/*
 Highcharts 4.0.4 JS v/Highstock 2.0.4 (2014-09-02)

 (c) 2009-2014 Torstein Honsi

 License: www.highcharts.com/license
 
 Highcharts funnel module

 (c) 2010-2014 Torstein Honsi

 License: www.highcharts.com/license
 Highcharts 4.0.4 JS v/Highstock 2.0.4 (2014-09-02)
 Exporting module

 (c) 2010-2014 Torstein Honsi

 License: www.highcharts.com/license
 Data plugin for Highcharts

 (c) 2012-2014 Torstein Honsi

 License: www.highcharts.com/license
 Highcharts 4.0.4 JS v/Highstock 2.0.4 (2014-09-02)
 Plugin for displaying a message when there is no data visible in chart.

 (c) 2010-2014 Highsoft AS
 Author: Oystein Moseng

 License: www.highcharts.com/license
 Highcharts 4.0.4 JS v/Highstock 2.0.4 (2014-09-02)

 (c) 2011-2014 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(){function q(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function u(){var a,b=arguments,c,d={},e=function(a,b){var c,d;"object"!==typeof a&&(a={});for(d in b)b.hasOwnProperty(d)&&((c=b[d])&&"object"===typeof c&&"[object Array]"!==Object.prototype.toString.call(c)&&"renderTo"!==d&&"number"!==typeof c.nodeType?a[d]=e(a[d]||{},c):a[d]=b[d]);return a};!0===b[0]&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a<c;a++)d=e(d,b[a]);return d}function E(a,b){return parseInt(a,
b||10)}function S(a){return"string"===typeof a}function R(a){return a&&"object"===typeof a}function Z(a){return"[object Array]"===Object.prototype.toString.call(a)}function m(a){return"number"===typeof a}function p(a){return ca.log(a)/ca.LN10}function A(a){return ca.pow(10,a)}function J(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function t(a){return a!==F&&null!==a}function x(a,b,c){var d,e;if(S(b))t(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(t(b)&&
R(b))for(d in b)a.setAttribute(d,b[d]);return e}function H(a){return Z(a)?a:[a]}function k(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==F&&null!==c)return c}function D(a,b){Ba&&!pa&&b&&b.opacity!==F&&(b.filter="alpha(opacity="+100*b.opacity+")");q(a.style,b)}function M(a,b,c,d,e){a=Y.createElement(a);b&&q(a,b);e&&D(a,{padding:0,border:"none",margin:0});c&&D(a,c);d&&d.appendChild(a);return a}function Q(a,b){var c=function(){return F};c.prototype=new a;q(c.prototype,b);return c}function O(a,
b,c,d){var e=ja.numberFormat,f=ha.lang,g=+a||0,h=-1===b?(g.toString().split(".")[1]||"").length:isNaN(b=fa(b))?2:b,l=void 0===c?f.decimalPoint:c,f=void 0===d?f.thousandsSep:d,n=0>g?"-":"",r=String(E(g=fa(g).toFixed(h))),v=3<r.length?r.length%3:0;return e!==O?e(a,b,c,d):n+(v?r.substr(0,v)+f:"")+r.substr(v).replace(/(\d{3})(?=\d)/g,"$1"+f)+(h?l+fa(g-r).toFixed(h).slice(2):"")}function U(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function B(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);
a.unshift(d);return c.apply(this,a)}}function s(a,b){for(var c="{",d=!1,e,f,g,h,l,n=[];-1!==(c=a.indexOf(c));){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");l=g.length;e=b;for(h=0;h<l;h++)e=e[g[h]];f.length&&(f=f.join(":"),g=/\.([0-9])/,h=ha.lang,l=void 0,/f$/.test(f)?(l=(l=f.match(g))?l[1]:-1,null!==e&&(e=O(e,l,h.decimalPoint,-1<f.indexOf(",")?h.thousandsSep:""))):e=Va(f,e))}n.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}n.push(a);return n.join("")}function K(a,b,c,d){var e;c=k(c,1);e=a/
c;b||(b=[1,2,2.5,5,10],!1===d&&(1===c?b=[1,2,5,10]:.1>=c&&(b=[1/c])));for(d=0;d<b.length&&!(a=b[d],e<=(b[d]+(b[d+1]||b[d]))/2);d++);return a*c}function T(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].ss_i=e;a.sort(function(a,c){d=b(a,c);return 0===d?a.ss_i-c.ss_i:d});for(e=0;e<c;e++)delete a[e].ss_i}function G(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function P(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function da(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&
a[c].destroy(),delete a[c]}function Wa(a){Xa||(Xa=M("div"));a&&Xa.appendChild(a);Xa.innerHTML=""}function qa(a){return parseFloat(a.toPrecision(14))}function sa(){var a=ha.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";Ca=ha.global.Date||window.Date;Ha=6E4*(a&&ha.global.timezoneOffset||0);Ya=a?Ca.UTC:function(a,b,c,g,h,l){return(new Ca(a,b,k(c,1),k(g,0),k(h,0),k(l,0))).getTime()};eb=b+"Minutes";fb=b+"Hours";gb=b+"Day";Na=b+"Date";Za=b+"Month";$a=b+"FullYear";rb=c+"Minutes";sb=c+"Hours";hb=c+
"Date";tb=c+"Month";ub=c+"FullYear"}function ia(){}function aa(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||d||this.addLabel()}function xa(){this.init.apply(this,arguments)}function na(){this.init.apply(this,arguments)}function la(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.total=null;this.points={};this.stack=e;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":
"top"),y:k(b.y,f?4:c?14:-6),x:k(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}function Oa(a,b,c){this.init.call(this,a,b,c)}var F,Y=document,ka=window,ca=Math,L=ca.round,ba=ca.floor,Ga=ca.ceil,I=ca.max,$=ca.min,fa=ca.abs,ya=ca.cos,Da=ca.sin,za=ca.PI,vb=2*za/360,Ea=navigator.userAgent,wb=ka.opera,Ba=/msie/i.test(Ea)&&!wb,ib=/AppleWebKit/.test(Ea),Ia=/Firefox/.test(Ea),xb=/(Mobile|Android|Windows Phone)/.test(Ea),pa=!!Y.createElementNS&&!!Y.createElementNS("http://www.w3.org/2000/svg",
"svg").createSVGRect,Hb=Ia&&4>parseInt(Ea.split("Firefox/")[1],10),wa=!pa&&!Ba&&!!Y.createElement("canvas").getContext,Pa,yb={},jb=0,Xa,ha,Va,ta,kb,W,ua,ma=function(){return F},ra=[],Qa=0,Ib=/^[0-9]+$/,Ca,Ya,Ha,eb,fb,gb,Na,Za,$a,rb,sb,hb,tb,ub,N={},ja;ka.Highcharts?ua(16,!0):ja=ka.Highcharts={};Va=function(a,b,c){if(!t(b)||isNaN(b))return"Invalid date";a=k(a,"%Y-%m-%d %H:%M:%S");var d=new Ca(b-Ha),e,f=d[fb](),g=d[gb](),h=d[Na](),l=d[Za](),n=d[$a](),r=ha.lang,v=r.weekdays,d=q({a:v[g].substr(0,3),A:v[g],
d:U(h),e:h,b:r.shortMonths[l],B:r.months[l],m:U(l+1),y:n.toString().substr(2,2),Y:n,H:U(f),I:U(f%12||12),l:f%12||12,M:U(d[eb]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:U(d.getSeconds()),L:U(L(b%1E3),3)},ja.dateFormats);for(e in d)for(;-1!==a.indexOf("%"+e);)a=a.replace("%"+e,"function"===typeof d[e]?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};ua=function(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;ka.console&&console.log(c)};W={millisecond:1,
second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:26784E5,year:31556952E3};kb={init:function(a,b,c){b=b||"";var d=a.shift,e=-1<b.indexOf("C"),f=e?7:3,g;b=b.split(" ");c=[].concat(c);var h,l,n=function(a){for(g=a.length;g--;)"M"===a[g]&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(n(b),n(c));a.isArea&&(h=b.splice(b.length-6,6),l=c.splice(c.length-6,6));if(d<=c.length/f&&b.length===c.length)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=
[].concat(b).splice(b.length-f,f),e&&(d[f-6]=d[f-2],d[f-5]=d[f-1]),b=b.concat(d);h&&(b=b.concat(h),c=c.concat(l));return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(1===c)e=d;else if(f===b.length&&1>c)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}};(function(a){ka.HighchartsAdapter=ka.HighchartsAdapter||a&&{init:function(b){var c=a.fx;a.extend(a.easing,{easeOutQuad:function(a,b,c,g,h){return-g*(b/=h)*(b-2)+c}});a.each(["cur","_default","width","height",
"opacity"],function(b,e){var f=c.step,g;"cur"===e?f=c.prototype:"_default"===e&&a.Tween&&(f=a.Tween.propHooks[e],e="set");(g=f[e])&&(f[e]=function(a){var c;a=b?a:this;if("align"!==a.prop)return c=a.elem,c.attr?c.attr(a.prop,"cur"===e?F:a.now):g.apply(this,arguments)})});B(a.cssHooks.opacity,"get",function(a,b,c){return b.attr?b.opacity||0:a.call(this,b,c)});this.addAnimSetter("d",function(a){var c=a.elem,f;a.started||(f=b.init(c,c.d,c.toD),a.start=f[0],a.end=f[1],a.started=!0);c.attr("d",b.step(a.start,
a.end,a.pos,c.toD))});this.each=Array.prototype.forEach?function(a,b){return Array.prototype.forEach.call(a,b)}:function(a,b){var c,g=a.length;for(c=0;c<g;c++)if(!1===b.call(a[c],a[c],c,a))return c};a.fn.highcharts=function(){var a="Chart",b=arguments,c,g;this[0]&&(S(b[0])&&(a=b[0],b=Array.prototype.slice.call(b,1)),c=b[0],c!==F&&(c.chart=c.chart||{},c.chart.renderTo=this[0],new ja[a](c,b[1]),g=this),c===F&&(g=ra[x(this[0],"data-highcharts-chart")]));return g}},addAnimSetter:function(b,c){a.Tween?
a.Tween.propHooks[b]={set:c}:a.fx.step[b]=c},getScript:a.getScript,inArray:a.inArray,adapterRun:function(b,c){return a(b)[c]()},grep:a.grep,map:function(a,c){for(var d=[],e=0,f=a.length;e<f;e++)d[e]=c.call(a[e],a[e],e,a);return d},offset:function(b){return a(b).offset()},addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){var e=Y.removeEventListener?"removeEventListener":"detachEvent";Y[e]&&b&&!b[e]&&(b[e]=function(){});a(b).unbind(c,d)},fireEvent:function(b,c,d,e){var f=a.Event(c),
g="detached"+c,h;!Ba&&d&&(delete d.layerX,delete d.layerY,delete d.returnValue);q(f,d);b[c]&&(b[g]=b[c],b[c]=null);a.each(["preventDefault","stopPropagation"],function(a,b){var c=f[b];f[b]=function(){try{c.call(f)}catch(a){"preventDefault"===b&&(h=!0)}}});a(b).trigger(f);b[g]&&(b[c]=b[g],b[g]=null);!e||f.isDefaultPrevented()||h||e(f)},washMouseEvent:function(a){var c=a.originalEvent||a;c.pageX===F&&(c.pageX=a.pageX,c.pageY=a.pageY);return c},animate:function(b,c,d){var e=a(b);b.style||(b.style={});
c.d&&(b.toD=c.d,c.d=1);e.stop();c.opacity!==F&&b.attr&&(c.opacity+="px");b.hasAnim=1;e.animate(c,d)},stop:function(b){b.hasAnim&&a(b).stop()}}})(ka.jQuery);var ab=ka.HighchartsAdapter,va=ab||{};ab&&ab.init.call(ab,kb);var bb=va.adapterRun,Ja=va.inArray,z=va.each,lb=va.grep,Jb=va.offset,Ra=va.map,ga=va.addEvent,oa=va.removeEvent,ea=va.fireEvent,Kb=va.washMouseEvent,zb=va.animate,Sa=va.stop,mb={enabled:!0,x:0,y:15,style:{color:"#606060",cursor:"default",fontSize:"11px"}};ha={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #8085e8 #8d4653 #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(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com@product.cdnpath@//Highstock 2.0.4/modules/canvas-tools.js",
VMLRadialGradientURL:"http://code.highcharts.com@product.cdnpath@//Highstock 2.0.4/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},
plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:u(mb,{align:"center",enabled:!1,formatter:function(){return null===this.y?"":O(this.y,-1)},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,
opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",
height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:pa,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,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"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:xb?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",
fontSize:"9px"}}};var X=ha.plotOptions,Ta=X.line;sa();var Lb=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,Mb=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,Nb=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,Fa=function(a){var b=[],c,d;(function(a){a&&a.stops?d=Ra(a.stops,function(a){return Fa(a[1])}):(c=Lb.exec(a))?b=[E(c[1]),E(c[2]),E(c[3]),parseFloat(c[4],10)]:(c=Mb.exec(a))?b=[E(c[1],16),E(c[2],16),E(c[3],16),1]:(c=Nb.exec(a))&&
(b=[E(c[1]),E(c[2]),E(c[3]),1])})(a);return{get:function(c){var f;d?(f=u(a),f.stops=[].concat(f.stops),z(d,function(a,b){f.stops[b]=[f.stops[b][0],a.get(c)]})):f=b&&!isNaN(b[0])?"rgb"===c?"rgb("+b[0]+","+b[1]+","+b[2]+")":"a"===c?b[3]:"rgba("+b.join(",")+")":a;return f},brighten:function(a){if(d)z(d,function(b){b.brighten(a)});else if(m(a)&&0!==a){var c;for(c=0;3>c;c++)b[c]+=E(255*a),0>b[c]&&(b[c]=0),255<b[c]&&(b[c]=255)}return this},rgba:b,setOpacity:function(a){b[3]=a;return this}}};ia.prototype=
{opacity:1,textProps:"fontSize fontWeight fontFamily color lineHeight width textDecoration textShadow HcTextStroke".split(" "),init:function(a,b){this.element="span"===b?M(b):Y.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a},animate:function(a,b,c){b=k(b,ta,!0);Sa(this);b?(b=u(b,{}),c&&(b.complete=c),zb(this,a,b)):(this.attr(a),c&&c());return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,l,n,r,v,y,w,C=[];a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");
if(f){g=a[f];h=d.gradients;n=a.stops;y=c.radialReference;Z(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&y&&!t(g.gradientUnits)&&(g=u(g,{cx:y[0]-y[2]/2+g.cx*y[2],cy:y[1]-y[2]/2+g.cy*y[2],r:g.r*y[2],gradientUnits:"userSpaceOnUse"}));for(w in g)"id"!==w&&C.push(w,g[w]);for(w in n)C.push(n[w]);C=C.join(",");h[C]?a=h[C].attr("id"):(g.id=a="highcharts-"+jb++,h[C]=l=d.createElement(f).attr(g).add(d.defs),l.stops=[],z(n,function(a){0===a[1].indexOf("rgba")?
(e=Fa(a[1]),r=e.get("rgb"),v=e.get("a")):(r=a[1],v=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":r,"stop-opacity":v}).add(l);l.stops.push(a)}));c.setAttribute(b,"url("+d.url+"#"+a+")")}},attr:function(a,b){var c,d,e=this.element,f,g=this,h;"string"===typeof a&&b!==F&&(c=a,a={},a[c]=b);if("string"===typeof a)g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(c in a)d=a[c],h=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(f||(this.symbolAttr(a),
f=!0),h=!0),!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0),h||(this[c+"Setter"]||this._defaultSetter).call(this,d,c,e),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return g},updateShadows:function(a,b){for(var c=this.shadows,d=c.length;d--;)c[d].setAttribute(a,"height"===a?I(b-(c[d].cutHeight||0),0):"d"===a?this.d:b)},addClass:function(a){var b=this.element,c=x(b,"class")||
"";-1===c.indexOf(a)&&x(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;z("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=k(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c={},d,e=a.strokeWidth||this.strokeWidth||0;d=L(e)%2/2;a.x=ba(a.x||this.x||0)+d;a.y=ba(a.y||this.y||0)+d;a.width=ba((a.width||
this.width||0)-2*d);a.height=ba((a.height||this.height||0)-2*d);a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=c[b]=a[b]);return c},css:function(a){var b=this.styles,c={},d=this.element,e,f,g="";e=!b;a&&a.color&&(a.fill=a.color);if(b)for(f in a)a[f]!==b[f]&&(c[f]=a[f],e=!0);if(e){e=this.textWidth=a&&a.width&&"text"===d.nodeName.toLowerCase()&&E(a.width);b&&(a=q(b,c));this.styles=a;e&&(wa||!pa&&this.renderer.forExport)&&delete a.width;if(Ba&&!pa)D(this.element,a);else{b=function(a,b){return"-"+
b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";x(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;Pa&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=Ca.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(-1===Ea.indexOf("Android")||1100<Ca.now()-(c.touchEventFired||0))&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){this.element.radialReference=a;return this},translate:function(a,
b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height"));a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")");(t(c)||t(d))&&a.push("scale("+k(c,
1)+" "+k(d,1)+")");a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||S(c))this.alignTo=d=c||"renderer",J(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=k(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x||0)+(a.x||0);g=(c.y||0)+(a.y||0);if("right"===
d||"center"===d)f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=L(f);if("bottom"===e||"middle"===e)g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=L(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(){var a=this.bBox,b=this.renderer,c,d,e=this.rotation;c=this.element;var f=this.styles,g=e*vb;d=this.textStr;var h;if(""===d||Ib.test(d))h="num."+d.toString().length+(f?"|"+f.fontSize+"|"+f.fontFamily:
"");h&&(a=b.cache[h]);if(!a){if("http://www.w3.org/2000/svg"===c.namespaceURI||b.forExport){try{a=c.getBBox?q({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(l){}if(!a||0>a.width)a={width:0,height:0}}else a=this.htmlGetBBox();b.isSVG&&(c=a.width,d=a.height,Ba&&f&&"11px"===f.fontSize&&"16.9"===d.toPrecision(3)&&(a.height=d=14),e&&(a.width=fa(d*Da(g))+fa(c*ya(g)),a.height=fa(d*ya(g))+fa(c*Da(g))));this.bBox=a;h&&(b.cache[h]=a)}return a},show:function(a){a&&"http://www.w3.org/2000/svg"===
this.element.namespaceURI?this.element.removeAttribute("visibility"):this.attr({visibility:a?"inherit":"visible"});return this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=this.element,f=this.zIndex,g,h;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);f&&(c.handleZ=
!0,f=E(f));if(c.handleZ)for(a=d.childNodes,g=0;g<a.length;g++)if(b=a[g],c=x(b,"zIndex"),b!==e&&(E(c)>f||!t(f)&&t(c))){d.insertBefore(e,b);h=!0;break}h||d.appendChild(e);this.added=!0;if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.renderer.isSVG&&"SPAN"===b.nodeName&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;Sa(a);a.clipPath&&(a.clipPath=
a.clipPath.destroy());if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);for(c&&z(c,function(b){a.safeRemoveChild(b)});d&&d.div&&0===d.div.childNodes.length;)b=d.parentGroup,a.safeRemoveChild(d.div),delete d.div,d=b;a.alignTo&&J(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},shadow:function(a,b,c){var d=[],e,f,g=this.element,h,l,n,r;if(a){l=k(a.width,3);n=(a.opacity||.15)/l;r=this.parentInverted?"(-1,-1)":"("+k(a.offsetX,1)+
", "+k(a.offsetY,1)+")";for(e=1;e<=l;e++)f=g.cloneNode(0),h=2*l+1-2*e,x(f,{isShadow:"true",stroke:a.color||"black","stroke-opacity":n*e,"stroke-width":h,transform:"translate"+r,fill:"none"}),c&&(x(f,"height",I(x(f,"height")-h,0)),f.cutHeight=h),b?b.element.appendChild(f):g.parentNode.insertBefore(f,g),d.push(f);this.shadows=d}return this},xGetter:function(a){"circle"===this.element.nodeName&&(a={x:"cx",y:"cy"}[a]||a);return this._defaultGetter(a)},_defaultGetter:function(a){a=k(this[a],this.element?
this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(b,a);this[b]=a},dashstyleSetter:function(a){var b;if(a=a&&a.toLowerCase()){a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");
for(b=a.length;b--;)a[b]=E(a[b])*this["stroke-width"];a=a.join(",").replace("NaN","none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a;c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=Y.createElementNS("http://www.w3.org/2000/svg","title"),this.element.appendChild(b));b.textContent=k(a,"").replace(/<[^>]*>/g,
"")},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"===typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},zIndexSetter:function(a,b,c){c.setAttribute(b,a);this[b]=a},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};ia.prototype.yGetter=ia.prototype.xGetter;ia.prototype.translateXSetter=ia.prototype.translateYSetter=ia.prototype.rotationSetter=ia.prototype.verticalAlignSetter=ia.prototype.scaleXSetter=
ia.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};ia.prototype["stroke-widthSetter"]=ia.prototype.strokeSetter=function(a,b,c){this[b]=a;this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],ia.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)};var Ka=function(){this.init.apply(this,arguments)};
Ka.prototype={Element:ia,init:function(a,b,c,d,e){var f=location,g;d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));g=d.element;a.appendChild(g);-1===a.innerHTML.indexOf("xmlns")&&x(g,"xmlns","http://www.w3.org/2000/svg");this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=[];this.url=(Ia||ib)&&Y.getElementsByTagName("base").length?f.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(Y.createTextNode("Created with Highcharts 4.0.4 /Highstock 2.0.4"));
this.defs=this.createElement("defs").add();this.forExport=e;this.gradients={};this.cache={};this.setSize(b,c,!1);var h;Ia&&a.getBoundingClientRect&&(this.subPixelFix=b=function(){D(a,{left:0,top:0});h=a.getBoundingClientRect();D(a,{left:Ga(h.left)-h.left+"px",top:Ga(h.top)-h.top+"px"})},b(),ga(ka,"resize",b))},getStyle:function(a){return this.style=q({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},
destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();da(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.subPixelFix&&oa(ka,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=k(a.textStr,"").toString(),f=-1!==e.indexOf("<"),g=b.childNodes,h,l,n=x(b,"x"),r=a.styles,v=a.textWidth,
y=r&&r.lineHeight,w=r&&r.HcTextStroke,C=g.length,s=function(a){return y?E(y):c.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:r&&r.fontSize||c.style.fontSize||12,a).h};C--;)b.removeChild(g[C]);f||w||-1!==e.indexOf(" ")?(h=/<.*style="([^"]+)".*>/,l=/<.*href="(http[^"]+)".*>/,v&&!a.added&&this.box.appendChild(b),e=f?e.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,
"</span>").split(/<br.*?>/g):[e],""===e[e.length-1]&&e.pop(),z(e,function(e,f){var g,y=0;e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");g=e.split("|||");z(g,function(e){if(""!==e||1===g.length){var w={},C=Y.createElementNS("http://www.w3.org/2000/svg","tspan"),k;h.test(e)&&(k=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),x(C,"style",k));l.test(e)&&!d&&(x(C,"onclick",'location.href="'+e.match(l)[1]+'"'),D(C,{cursor:"pointer"}));e=(e.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,
"<").replace(/&gt;/g,">");if(" "!==e){C.appendChild(Y.createTextNode(e));y?w.dx=0:f&&null!==n&&(w.x=n);x(C,w);b.appendChild(C);!y&&f&&(!pa&&d&&D(C,{display:"block"}),x(C,"dy",s(C)));if(v){e=e.replace(/([^\^])-/g,"$1- ").split(" ");for(var w=1<g.length||1<e.length&&"nowrap"!==r.whiteSpace,t,p,m=r.HcHeight,B=[],z=s(C),A=1;w&&(e.length||B.length);)delete a.bBox,t=a.getBBox(),p=t.width,!pa&&c.forExport&&(p=c.measureSpanWidth(C.firstChild.data,a.styles)),(t=p>v)&&1!==e.length?(C.removeChild(C.firstChild),
B.unshift(e.pop())):(e=B,B=[],e.length&&(A++,m&&A*z>m?(e=["..."],a.attr("title",a.textStr)):(C=Y.createElementNS("http://www.w3.org/2000/svg","tspan"),x(C,{dy:z,x:n}),k&&x(C,"style",k),b.appendChild(C))),p>v&&(v=p)),e.length&&C.appendChild(Y.createTextNode(e.join(" ").replace(/- /g,"-")))}y++}}})})):b.appendChild(Y.createTextNode(e))},button:function(a,b,c,d,e,f,g,h,l){var n=this.label(a,b,c,l,null,null,null,null,"button"),r=0,v,y,w,C,k,s;a={x1:0,y1:0,x2:0,y2:1};e=u({"stroke-width":1,stroke:"#CCCCCC",
fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);w=e.style;delete e.style;f=u(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);C=f.style;delete f.style;g=u(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);k=g.style;delete g.style;h=u(e,{style:{color:"#CCC"}},h);s=h.style;delete h.style;ga(n.element,Ba?"mouseover":"mouseenter",function(){3!==r&&n.attr(f).css(C)});ga(n.element,Ba?"mouseout":"mouseleave",
function(){3!==r&&(v=[e,f,g][r],y=[w,C,k][r],n.attr(v).css(y))});n.setState=function(a){(n.state=r=a)?2===a?n.attr(g).css(k):3===a&&n.attr(h).css(s):n.attr(e).css(w)};return n.on("click",function(){3!==r&&d.call(n)}).attr(e).css(q({cursor:"default"},w))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=L(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=L(a[2])+b%2/2);return a},path:function(a){var b={fill:"none"};Z(a)?b.d=a:R(a)&&q(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=R(a)?
a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=function(a){this.element.setAttribute("cx",a)};b.ySetter=function(a){this.element.setAttribute("cy",a)};return b.attr(a)},arc:function(a,b,c,d,e,f){R(a)&&(b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x);a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0});a.r=c;return a},rect:function(a,b,c,d,e,f){e=R(a)?a.r:e;var g=this.createElement("rect");a=R(a)?a:a===F?{}:{x:a,y:b,width:I(c,0),height:I(d,0)};f!==F&&(a.strokeWidth=
f,a=g.crisp(a));e&&(a.r=e);g.rSetter=function(a){x(this.element,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[k(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return t(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};1<arguments.length&&q(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);
f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(L(b),L(c),d,e,f),l=/^url\((.*?)\)$/,n,r;h?(g=this.path(h),q(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&q(g,f)):l.test(a)&&(r=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(L((d-b[0])/2),L((e-b[1])/2)))},n=a.match(l)[1],a=yb[n]||f&&f.width&&f.height&&[f.width,
f.height],g=this.image(n).attr({x:b,y:c}),g.isImg=!0,a?r(g,a):(g.attr({width:0,height:0}),M("img",{onload:function(){r(g,yb[n]=[this.width,this.height])},src:n})));return g},symbols:{circle:function(a,b,c,d){var e=.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,
b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start;c=e.r||c||d;var g=e.end-.001;d=e.innerR;var h=e.open,l=ya(f),n=Da(f),r=ya(g),g=Da(g);e=e.end-f<za?0:1;return["M",a+c*l,b+c*n,"A",c,c,0,e,1,a+c*r,b+c*g,h?"M":"L",a+d*r,b+d*g,"A",d,d,0,e,0,a+d*l,b+d*n,h?"":"Z"]},callout:function(a,b,c,d,e){var f=$(e&&e.r||0,c,d),g=f+6,h=e&&e.anchorX,l=e&&e.anchorY;e=L(e.strokeWidth||0)%2/2;a+=e;b+=e;e=["M",a+f,b,"L",a+c-f,b,"C",
a+c,b,a+c,b,a+c,b+f,"L",a+c,b+d-f,"C",a+c,b+d,a+c,b+d,a+c-f,b+d,"L",a+f,b+d,"C",a,b+d,a,b+d,a,b+d-f,"L",a,b+f,"C",a,b,a,b,a+f,b];h&&h>c&&l>b+g&&l<b+d-g?e.splice(13,3,"L",a+c,l-6,a+c+6,l,a+c,l+6,a+c,b+d-f):h&&0>h&&l>b+g&&l<b+d-g?e.splice(33,3,"L",a,l+6,a-6,l,a,l-6,a,b+f):l&&l>d&&h>a+g&&h<a+c-g?e.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):l&&0>l&&h>a+g&&h<a+c-g&&e.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b);return e}},clipRect:function(a,b,c,d){var e="highcharts-"+jb++,f=this.createElement("clipPath").attr({id:e}).add(this.defs);
a=this.rect(a,b,c,d,0).add(f);a.id=e;a.clipPath=f;return a},text:function(a,b,c,d){var e=wa||!pa&&this.forExport,f={};if(d&&!this.forExport)return this.html(a,b,c);f.x=Math.round(b||0);c&&(f.y=Math.round(c));if(a||0===a)f.text=a;a=this.createElement("text").attr(f);e&&a.css({position:"absolute"});d||(a.xSetter=function(a,b,c){var d=c.getElementsByTagName("tspan"),e,f=c.getAttribute(b),y;for(y=0;y<d.length;y++)e=d[y],e.getAttribute(b)===f&&e.setAttribute(b,a);c.setAttribute(b,a)});return a},fontMetrics:function(a,
b){a=a||this.style.fontSize;b&&ka.getComputedStyle&&(b=b.element||b,a=ka.getComputedStyle(b,"").fontSize);a=/px/.test(a)?E(a):/em/.test(a)?12*parseFloat(a):12;var c=24>a?a+4:L(1.2*a),d=L(.8*c);return{h:c,b:d,f:a}},label:function(a,b,c,d,e,f,g,h,l){function n(){var a,b;a=C.element.style;s=(void 0===A||void 0===x||w.styles.textAlign)&&C.textStr&&C.getBBox();w.width=(A||s.width||0)+2*m+B;w.height=(x||s.height||0)+2*m;T=m+y.fontMetrics(a&&a.fontSize,C).b;U&&(k||(a=L(-p*m),b=h?-T:0,w.box=k=d?y.symbol(d,
a,b,w.width,w.height,O):y.rect(a,b,w.width,w.height,0,O["stroke-width"]),k.attr("fill","none").add(w)),k.isImg||k.attr(q({width:L(w.width),height:L(w.height)},O)),O=null)}function r(){var a=w.styles,a=a&&a.textAlign,b=B+m*(1-p),c;c=h?0:T;t(A)&&s&&("center"===a||"right"===a)&&(b+={center:.5,right:1}[a]*(A-s.width));if(b!==C.x||c!==C.y)C.attr("x",b),c!==F&&C.attr("y",c);C.x=b;C.y=c}function v(a,b){k?k.attr(a,b):O[a]=b}var y=this,w=y.g(l),C=y.text("",0,0,g).attr({zIndex:1}),k,s,p=0,m=3,B=0,A,x,J,P,K=
0,O={},T,U;w.onAdd=function(){C.add(w);w.attr({text:a||0===a?a:"",x:b,y:c});k&&t(e)&&w.attr({anchorX:e,anchorY:f})};w.widthSetter=function(a){A=a};w.heightSetter=function(a){x=a};w.paddingSetter=function(a){t(a)&&a!==m&&(m=a,r())};w.paddingLeftSetter=function(a){t(a)&&a!==B&&(B=a,r())};w.alignSetter=function(a){p={left:0,center:.5,right:1}[a]};w.textSetter=function(a){a!==F&&C.textSetter(a);n();r()};w["stroke-widthSetter"]=function(a,b){a&&(U=!0);K=a%2/2;v(b,a)};w.strokeSetter=w.fillSetter=w.rSetter=
function(a,b){"fill"===b&&a&&(U=!0);v(b,a)};w.anchorXSetter=function(a,b){e=a;v(b,a+K-J)};w.anchorYSetter=function(a,b){f=a;v(b,a-P)};w.xSetter=function(a){w.x=a;p&&(a-=p*((A||s.width)+m));J=L(a);w.attr("translateX",J)};w.ySetter=function(a){P=w.y=L(a);w.attr("translateY",P)};var G=w.css;return q(w,{css:function(a){if(a){var b={};a=u(a);z(w.textProps,function(c){a[c]!==F&&(b[c]=a[c],delete a[c])});C.css(b)}return G.call(w,a)},getBBox:function(){return{width:s.width+2*m,height:s.height+2*m,x:s.x-m,
y:s.y-m}},shadow:function(a){k&&k.shadow(a);return w},destroy:function(){oa(w.element,"mouseenter");oa(w.element,"mouseleave");C&&(C=C.destroy());k&&(k=k.destroy());ia.prototype.destroy.call(w);w=y=n=r=v=null}})}};q(ia.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();this.styles=q(this.styles,a);D(this.element,a);return this},htmlGetBBox:function(){var a=this.element,b=this.bBox;b||("text"===a.nodeName&&(a.style.position=
"absolute"),b=this.bBox={x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight});return b},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,e=this.x||0,f=this.y||0,g=this.textAlign||"left",h={left:0,center:.5,right:1}[g],l=this.shadows;D(b,{marginLeft:c,marginTop:d});l&&z(l,function(a){D(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&z(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var n=
this.rotation,r,v=E(this.textWidth),y=[n,g,b.innerHTML,this.textWidth].join();y!==this.cTT&&(r=a.fontMetrics(b.style.fontSize).b,t(n)&&this.setSpanRotation(n,h,r),l=k(this.elemWidth,b.offsetWidth),l>v&&/[ \-]/.test(b.textContent||b.innerText)&&(D(b,{width:v+"px",display:"block",whiteSpace:"normal"}),l=v),this.getSpanCorrection(l,r,h,n,g));D(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});ib&&(r=b.offsetHeight);this.cTT=y}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d=
{},e=Ba?"-ms-transform":ib?"-webkit-transform":Ia?"MozTransform":wb?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)";d[e+(Ia?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px";D(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});q(Ka.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer;d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a};d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=
function(a,b){"align"===b&&(b="textAlign");d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:L(b),y:L(c)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});d.css=d.htmlCss;f.isSVG&&(d.add=function(a){var b,c=f.box.parentNode,n=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)n.push(a),a=a.parentGroup;z(n.reverse(),function(a){var d;b=a.div=a.div||M("div",{className:x(a.element,"class")},{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||
0)+"px"},b||c);d=b.style;q(a,{translateXSetter:function(b,c){d.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b,c){d.top=b+"px";a[c]=b;a.doTransform=!0},visibilitySetter:function(a,b){d[b]=a}})})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d});return d}});aa.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.horiz,e=a.categories,f=a.names,g=this.pos,h=b.labels,l=h.rotation,n=a.tickPositions,d=d&&e&&!h.step&&!h.staggerLines&&
!h.rotation&&c.plotWidth/n.length||!d&&(c.margin[3]||.33*c.chartWidth),r=g===n[0],v=g===n[n.length-1],y,f=e?k(e[g],f[g],g):g,e=this.label,w=n.info;a.isDatetimeAxis&&w&&(y=b.dateTimeLabelFormats[w.higherRanks[g]||w.unitName]);this.isFirst=r;this.isLast=v;b=a.labelFormatter.call({axis:a,chart:c,isFirst:r,isLast:v,dateTimeLabelFormat:y,value:a.isLog?qa(A(f)):f});g=d&&{width:I(1,L(d-2*(h.padding||10)))+"px"};t(e)?e&&e.attr({text:b}).css(g):(y={align:a.labelAlign},m(l)&&(y.rotation=l),d&&h.ellipsis&&(g.HcHeight=
a.len/n.length),this.label=e=t(b)&&h.enabled?c.renderer.text(b,0,0,h.useHTML).attr(y).css(q(g,h.style)).add(a.labelGroup):null,a.tickBaseline=c.renderer.fontMetrics(h.style.fontSize,e).b,l&&2===a.side&&(a.tickBaseline*=ya(l*vb)));this.yOffset=e?k(h.y,a.tickBaseline+(2===a.side?8:-(e.getBBox().height/2))):0},getLabelSize:function(){var a=this.label,b=this.axis;return a?a.getBBox()[b.horiz?"height":"width"]:0},getLabelSides:function(){var a=this.label.getBBox(),b=this.axis,c=b.horiz,d=b.options.labels,
a=c?a.width:a.height,b=c?d.x-a*{left:0,center:.5,right:1}[b.labelAlign]:0;return[b,c?a+b:a]},handleOverflow:function(a,b){var c=!0,d=this.axis,e=this.isFirst,f=this.isLast,g=d.horiz?b.x:b.y,h=d.reversed,l=d.tickPositions,n=this.getLabelSides(),r=n[0],n=n[1],v,y,w,C=this.label.line;v=C||0;y=d.labelEdge;w=d.justifyLabels&&(e||f);y[v]===F||g+r>y[v]?y[v]=g+n:w||(c=!1);if(w){v=(y=d.justifyToPlot)?d.pos:0;y=y?v+d.len:d.chart.chartWidth;do a+=e?1:-1,w=d.ticks[l[a]];while(l[a]&&(!w||!w.label||w.label.line!==
C));d=w&&w.label.xy&&w.label.xy.x+w.getLabelSides()[e?0:1];e&&!h||f&&h?g+r<v&&(g=v-r,w&&g+n>d&&(c=!1)):g+n>y&&(g=y-n,w&&g+r<d&&(c=!1));b.x=g}return c},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,
g,h){var l=this.axis,n=l.transA,r=l.reversed,v=l.staggerLines;a=a+e.x-(f&&d?f*n*(r?-1:1):0);b=b+this.yOffset-(f&&!d?f*n*(r?1:-1):0);v&&(c.line=g/(h||1)%v,b+=l.labelOffset/v*c.line);return{x:a,y:b}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,l=this.label,n=this.pos,r=e.labels,v=this.gridLine,y=h?h+"Grid":"grid",w=h?h+"Tick":"tick",C=e[y+"LineWidth"],s=e[y+"LineColor"],
p=e[y+"LineDashStyle"],m=e[w+"Length"],y=e[w+"Width"]||0,t=e[w+"Color"],B=e[w+"Position"],w=this.mark,z=r.step,A=!0,x=d.tickmarkOffset,q=this.getPosition(g,n,x,b),J=q.x,q=q.y,P=g&&J===d.pos+d.len||!g&&q===d.pos?-1:1;c=k(c,1);this.isActive=!0;if(C&&(n=d.getPlotLinePath(n+x,C*P,b,!0),v===F&&(v={stroke:s,"stroke-width":C},p&&(v.dashstyle=p),h||(v.zIndex=1),b&&(v.opacity=0),this.gridLine=v=C?f.path(n).attr(v).add(d.gridGroup):null),!b&&v&&n))v[this.isNew?"attr":"animate"]({d:n,opacity:c});y&&m&&("inside"===
B&&(m=-m),d.opposite&&(m=-m),h=this.getMarkPath(J,q,m,y*P,g,f),w?w.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:t,"stroke-width":y,opacity:c}).add(d.axisGroup));l&&!isNaN(J)&&(l.xy=q=this.getLabelPosition(J,q,l,g,r,x,a,z),this.isFirst&&!this.isLast&&!k(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!k(e.showLastLabel,1)?A=!1:d.isRadial||r.step||r.rotation||b||0===c||(A=this.handleOverflow(a,q)),z&&a%z&&(A=!1),A&&!isNaN(q.y)?(q.opacity=c,l[this.isNew?"attr":"animate"](q),this.isNew=
!1):l.attr("y",-9999))},destroy:function(){da(this,this.axis)}};ja.PlotLineOrBand=function(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)};ja.PlotLineOrBand.prototype={render:function(){var a=this,b=a.axis,c=b.horiz,d=(b.pointRange||0)/2,e=a.options,f=e.label,g=a.label,h=e.width,l=e.to,n=e.from,r=t(n)&&t(l),v=e.value,y=e.dashStyle,w=a.svgElem,C=[],k,s=e.color,m=e.zIndex,B=e.events,A={},z=b.chart.renderer;b.isLog&&(n=p(n),l=p(l),v=p(v));if(h)C=b.getPlotLinePath(v,h),A={stroke:s,"stroke-width":h},
y&&(A.dashstyle=y);else if(r)n=I(n,b.min-d),l=$(l,b.max+d),C=b.getPlotBandPath(n,l,e),s&&(A.fill=s),e.borderWidth&&(A.stroke=e.borderColor,A["stroke-width"]=e.borderWidth);else return;t(m)&&(A.zIndex=m);if(w)C?w.animate({d:C},null,w.onGetPath):(w.hide(),w.onGetPath=function(){w.show()},g&&(a.label=g=g.destroy()));else if(C&&C.length&&(a.svgElem=w=z.path(C).attr(A).add(),B))for(k in d=function(b){w.on(b,function(c){B[b].apply(a,[c])})},B)d(k);f&&t(f.text)&&C&&C.length&&0<b.width&&0<b.height?(f=u({align:c&&
r&&"center",x:c?!r&&4:10,verticalAlign:!c&&r&&"middle",y:c?r?16:10:r?6:-4,rotation:c&&!r&&90},f),g||(A={align:f.textAlign||f.align,rotation:f.rotation},t(m)&&(A.zIndex=m),a.label=g=z.text(f.text,0,0,f.useHTML).attr(A).css(f.style).add()),b=[C[1],C[4],r?C[6]:C[1]],r=[C[2],C[5],r?C[7]:C[2]],C=G(b),c=G(r),g.align(f,!1,{x:C,y:c,width:P(b)-C,height:P(r)-c}),g.show()):g&&g.hide();return a},destroy:function(){J(this.axis.plotLinesAndBands,this);delete this.axis;da(this)}};xa.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,gridLineColor:"#C0C0C0",labels:mb,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},
type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return O(this.total,-1)},style:mb.style}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:null},title:{rotation:0}},
defaultTopAxisOptions:{labels:{x:0,y:-15},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.coll=(this.isXAxis=c)?"xAxis":"yAxis";this.opposite=b.opposite;this.side=b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.zoomEnabled=!1!==d.zoomEnabled;this.categories=
d.categories||"category"===e;this.names=[];this.isLog="logarithmic"===e;this.isDatetimeAxis="datetime"===e;this.isLinked=t(d.linkedTo);this.tickmarkOffset=this.categories&&"between"===d.tickmarkPlacement&&1===k(d.tickInterval,1)?.5:0;this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};this.min=this.max=null;this.crosshair=
k(d.crosshair,H(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;-1===Ja(this,a.axes)&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&c&&this.reversed===F&&(this.reversed=!0);this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)ga(this,f,d[f]);this.isLog&&(this.val2lin=p,this.lin2val=A)},setOptions:function(a){this.options=u(this.defaultOptions,this.isXAxis?{}:
this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],u(ha[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=ha.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=s(h,this);else if(c)g=b;else if(d)g=Va(d,b);else if(f&&1E3<=a)for(;f--&&g===F;)c=Math.pow(1E3,f+1),a>=c&&null!==e[f]&&(g=O(b/
c,-1)+e[f]);g===F&&(g=1E4<=fa(b)?O(b,0):O(b,-1,F,""));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();z(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d;d=c.options.threshold;var e;a.hasVisibleSeries=!0;a.isLog&&0>=d&&(d=null);a.isXAxis?(d=c.xData,d.length&&(a.dataMin=$(k(a.dataMin,d[0]),G(d)),a.dataMax=I(k(a.dataMax,d[0]),P(d)))):(c.getExtremes(),
e=c.dataMax,c=c.dataMin,t(c)&&t(e)&&(a.dataMin=$(k(a.dataMin,c),c),a.dataMax=I(k(a.dataMax,e),e)),t(d)&&(a.dataMin>=d?(a.dataMin=d,a.ignoreMinPadding=!0):a.dataMax<d&&(a.dataMax=d,a.ignoreMaxPadding=!0)))}})},translate:function(a,b,c,d,e,f){var g=1,h=0,l=d?this.oldTransA:this.transA;d=d?this.oldMin:this.min;var n=this.minPixelPadding;e=(this.options.ordinal||this.isLog&&e)&&this.lin2val;l||(l=this.transA);c&&(g*=-1,h=this.len);this.reversed&&(g*=-1,h-=g*(this.sector||this.len));b?(a=a*g+h-n,a=a/l+
d,e&&(a=this.lin2val(a))):(e&&(a=this.val2lin(a)),"between"===f&&(f=.5),a=g*(a-d)*l+h+g*n+(m(f)?l*f*this.pointRange:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,d,e){var f=this.chart,g=this.left,h=this.top,l,n,r=c&&f.oldChartHeight||f.chartHeight,v=c&&f.oldChartWidth||f.chartWidth,y;l=this.transB;e=k(e,this.translate(a,null,null,
c));a=c=L(e+l);l=n=L(r-e-l);if(isNaN(e))y=!0;else if(this.horiz){if(l=h,n=r-this.bottom,a<g||a>g+this.width)y=!0}else if(a=g,c=v-this.right,l<h||l>h+this.height)y=!0;return y&&!d?null:f.renderer.crispLine(["M",a,l,"L",c,n],b||1)},getLinearTickPositions:function(a,b,c){var d,e=qa(ba(b/a)*a),f=qa(Ga(c/a)*a),g=[];if(b===c&&m(b))return[b];for(b=e;b<=f;){g.push(b);b=qa(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=
[],e;if(this.isLog)for(e=b.length,a=1;a<e;a++)d=d.concat(this.getLogTickPositions(c,b[a-1],b[a],!0));else if(this.isDatetimeAxis&&"auto"===a.minorTickInterval)d=d.concat(this.getTimeTicks(this.normalizeTimeTickInterval(c),this.min,this.max,a.startOfWeek)),d[0]<this.min&&d.shift();else for(b=this.min+(b[0]-this.min)%c;b<=this.max;b+=c)d.push(b);return d},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,l,n;this.isXAxis&&this.minRange===
F&&!this.isLog&&(t(a.min)||t(a.max)?this.minRange=null:(z(this.series,function(a){l=a.xData;for(g=n=a.xIncrement?1:l.length-1;0<g;g--)if(h=l[g]-l[g-1],f===F||h<f)f=h}),this.minRange=$(5*f,this.dataMax-this.dataMin)));if(c-b<this.minRange){var r=this.minRange;d=(r-c+b)/2;d=[b-d,k(a.min,b-d)];e&&(d[2]=this.dataMin);b=P(d);c=[b+r,k(a.max,b+r)];e&&(c[2]=this.dataMax);c=G(c);c-b<r&&(d[0]=c-r,d[1]=k(a.min,c-r),b=P(d))}this.min=b;this.max=c},setAxisTranslation:function(a){var b=this,c=b.max-b.min,d=b.axisPointRange||
0,e,f=0,g=0,h=b.linkedParent,l=!!b.categories,n=b.transA;if(b.isXAxis||l||d)h?(f=h.minPointOffset,g=h.pointRangePadding):z(b.series,function(a){var h=l?1:b.isXAxis?a.pointRange:b.axisPointRange||0,n=a.options.pointPlacement,w=a.closestPointRange;h>c&&(h=0);d=I(d,h);f=I(f,S(n)?0:h/2);g=I(g,"on"===n?0:h);!a.noSharedTooltip&&t(w)&&(e=t(e)?$(e,w):w)}),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=$(d,c),b.closestPointRange=e;a&&(b.oldTransA=n);b.translationSlope=
b.transA=n=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=n*f},setTickPositions:function(a){var b=this,c=b.chart,d=b.options,e=d.startOnTick,f=d.endOnTick,g=b.isLog,h=b.isDatetimeAxis,l=b.isXAxis,n=b.isLinked,r=b.options.tickPositioner,v=d.maxPadding,y=d.minPadding,w=d.tickInterval,C=d.minTickInterval,s=d.tickPixelInterval,B,A=b.categories;n?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=k(c.min,c.dataMin),b.max=k(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&
ua(11,1)):(b.min=k(b.userMin,d.min,b.dataMin),b.max=k(b.userMax,d.max,b.dataMax));g&&(!a&&0>=$(b.min,k(b.dataMin,b.min))&&ua(10,1),b.min=qa(p(b.min)),b.max=qa(p(b.max)));b.range&&t(b.max)&&(b.userMin=b.min=I(b.min,b.max-b.range),b.userMax=b.max,b.range=null);b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(A||b.axisPointRange||b.usePercentage||n)&&t(b.min)&&t(b.max)&&(c=b.max-b.min)&&(t(d.min)||t(b.userMin)||!y||!(0>b.dataMin)&&b.ignoreMinPadding||(b.min-=c*y),t(d.max)||t(b.userMax)||!v||
!(0<b.dataMax)&&b.ignoreMaxPadding||(b.max+=c*v));m(d.floor)&&(b.min=I(b.min,d.floor));m(d.ceiling)&&(b.max=$(b.max,d.ceiling));b.min===b.max||void 0===b.min||void 0===b.max?b.tickInterval=1:n&&!w&&s===b.linkedParent.options.tickPixelInterval?b.tickInterval=b.linkedParent.tickInterval:(b.tickInterval=k(w,A?1:(b.max-b.min)*s/I(b.len,s)),!t(w)&&b.len<s&&!this.isRadial&&!this.isLog&&!A&&e&&f&&(B=!0,b.tickInterval/=4));l&&!a&&z(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});
b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&(b.tickInterval=I(b.pointRange,b.tickInterval));!w&&b.tickInterval<C&&(b.tickInterval=C);h||g||w||(b.tickInterval=K(b.tickInterval,null,ca.pow(10,ba(ca.log(b.tickInterval)/ca.LN10)),k(d.allowDecimals,!(1<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max))));b.minorTickInterval="auto"===d.minorTickInterval&&b.tickInterval?
b.tickInterval/5:d.minorTickInterval;b.tickPositions=a=d.tickPositions?[].concat(d.tickPositions):r&&r.apply(b,[b.min,b.max]);a||(!b.ordinalPositions&&(b.max-b.min)/b.tickInterval>I(2*b.len,200)&&ua(19,!0),a=h?b.getTimeTicks(b.normalizeTimeTickInterval(b.tickInterval,d.units),b.min,b.max,d.startOfWeek,b.ordinalPositions,b.closestPointRange,!0):g?b.getLogTickPositions(b.tickInterval,b.min,b.max):b.getLinearTickPositions(b.tickInterval,b.min,b.max),B&&a.splice(1,a.length-2),b.tickPositions=a);n||(d=
a[0],g=a[a.length-1],h=b.minPointOffset||0,e?b.min=d:b.min-h>d&&a.shift(),f?b.max=g:b.max+h<g&&a.pop(),0===a.length&&t(d)&&a.push((g+d)/2),1===a.length&&(e=1E13<fa(b.max)?1:.001,b.min-=e,b.max+=e))},setMaxTicks:function(){var a=this.chart,b=a.maxTicks||{},c=this.tickPositions,d=this._maxTicksKey=[this.coll,this.pos,this.len].join("-");!this.isLinked&&!this.isDatetimeAxis&&c&&c.length>(b[d]||0)&&!1!==this.options.alignTicks&&(b[d]=c.length);a.maxTicks=b},adjustTickAmount:function(){var a=this._maxTicksKey,
b=this.tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&!1!==this.options.alignTicks&&this.min!==F){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(e<a){for(;b.length<a;)b.push(qa(b[b.length-1]+this.tickInterval));this.transA*=(e-1)/(a-1);this.max=b[b.length-1]}t(d)&&a!==d&&(this.isDirty=!0)}},setScale:function(){var a=this.stacks,b,c,d,e;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();e=this.len!==
this.oldAxisLength;z(this.series,function(a){if(a.isDirtyData||a.isDirty||a.xAxis.isDirty)d=!0});if(e||d||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].total=null,a[b][c].cum=0;this.forceRedraw=!1;this.getSeriesExtremes();this.setTickPositions();this.oldUserMin=this.userMin;this.oldUserMax=this.userMax;this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)}else if(!this.isXAxis)for(b in this.oldStacks&&
(a=this.stacks=this.oldStacks),a)for(c in a[b])a[b][c].cum=a[b][c].total;this.setMaxTicks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart;c=k(c,!0);e=q(e,{min:a,max:b});ea(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.eventArgs=e;f.isDirtyExtremes=!0;c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options;this.allowZoomOutside||(t(c)&&a<=$(c,k(e.min,c))&&(a=F),t(d)&&b>=I(d,k(e.max,d))&&(b=F));this.displayBtn=a!==F||b!==F;this.setExtremes(a,b,!1,F,{trigger:"zoom"});
return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=k(b.width,a.plotWidth-c+(b.offsetRight||0)),f=k(b.height,a.plotHeight),g=k(b.top,a.plotTop),b=k(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=parseInt(f,10)/100*a.plotHeight);c.test(g)&&(g=parseInt(g,10)/100*a.plotHeight+a.plotTop);this.left=b;this.top=g;this.width=e;this.height=f;this.bottom=a.chartHeight-f-g;this.right=a.chartWidth-e-b;this.len=I(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog;
return{min:a?qa(A(this.min)):this.min,max:a?qa(A(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?A(this.min):this.min,b=b?A(this.max):this.max;c>a||null===a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(k(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,
f=a.ticks,g=a.horiz,h=a.side,l=b.inverted?[1,0,3,2][h]:h,n,r,v=0,y,w=0,C=d.title,s=d.labels,m=0,p=b.axisOffset,b=b.clipOffset,B=[-1,1,1,-1][h],A,q=1,x=k(s.maxStaggerLines,5),J,P,O,K,T;a.hasData=n=a.hasVisibleSeries||t(a.min)&&t(a.max)&&!!e;a.showAxis=r=n||k(d.showEmpty,!0);a.staggerLines=a.horiz&&s.staggerLines;a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(),a.labelGroup=c.g("axis-labels").attr({zIndex:s.zIndex||7}).addClass("highcharts-"+
a.coll.toLowerCase()+"-labels").add());if(n||a.isLinked){a.labelAlign=k(s.align||a.autoLabelAlign(s.rotation));z(e,function(b){f[b]?f[b].addLabel():f[b]=new aa(a,b)});if(a.horiz&&!a.staggerLines&&x&&!s.rotation){for(n=a.reversed?[].concat(e).reverse():e;q<x;){J=[];P=!1;for(A=0;A<n.length;A++)O=n[A],K=(K=f[O].label&&f[O].label.getBBox())?K.width:0,T=A%q,K&&(O=a.translate(O),J[T]!==F&&O<J[T]&&(P=!0),J[T]=O+K);if(P)q++;else break}1<q&&(a.staggerLines=q)}z(e,function(b){if(0===h||2===h||{1:"left",3:"right"}[h]===
a.labelAlign)m=I(f[b].getLabelSize(),m)});a.staggerLines&&(m*=a.staggerLines,a.labelOffset=m)}else for(A in f)f[A].destroy(),delete f[A];C&&C.text&&!1!==C.enabled&&(a.axisTitle||(a.axisTitle=c.text(C.text,0,0,C.useHTML).attr({zIndex:7,rotation:C.rotation||0,align:C.textAlign||{low:"left",middle:"center",high:"right"}[C.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(C.style).add(a.axisGroup),a.axisTitle.isNew=!0),r&&(v=a.axisTitle.getBBox()[g?"height":"width"],y=C.offset,w=t(y)?
0:k(C.margin,g?5:10)),a.axisTitle[r?"show":"hide"]());a.offset=B*k(d.offset,p[h]);c=2===h?a.tickBaseline:0;g=m+w+(m&&B*(g?k(s.y,a.tickBaseline+8):s.x)-c);a.axisTitleMargin=k(y,g);p[h]=I(p[h],a.axisTitleMargin+v+B*a.offset,g);b[l]=I(b[l],2*ba(d.lineWidth/2))},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-
this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,l=E(e.style.fontSize||12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(2===this.side?l:0);return{x:a?d:b+(g?this.width:0)+h+(e.x||0),y:a?b-(g?this.height:0)+h:d+(e.y||0)}},render:function(){var a=this,b=a.horiz,c=a.reversed,d=a.chart,e=d.renderer,
f=a.options,g=a.isLog,h=a.isLinked,l=a.tickPositions,n,r=a.axisTitle,v=a.ticks,y=a.minorTicks,w=a.alternateBands,C=f.stackLabels,k=f.alternateGridColor,s=a.tickmarkOffset,m=f.lineWidth,p=d.hasRendered&&t(a.oldMin)&&!isNaN(a.oldMin),B=a.hasData,q=a.showAxis,x,J=f.labels.overflow,P=a.justifyLabels=b&&!1!==J,O;a.labelEdge.length=0;a.justifyToPlot="justify"===J;z([v,y,w],function(a){for(var b in a)a[b].isActive=!1});if(B||h)a.minorTickInterval&&!a.categories&&z(a.getMinorTickPositions(),function(b){y[b]||
(y[b]=new aa(a,b,"minor"));p&&y[b].isNew&&y[b].render(null,!0);y[b].render(null,!1,1)}),l.length&&(n=l.slice(),(b&&c||!b&&!c)&&n.reverse(),P&&(n=n.slice(1).concat([n[0]])),z(n,function(b,c){P&&(c=c===n.length-1?0:c+1);if(!h||b>=a.min&&b<=a.max)v[b]||(v[b]=new aa(a,b)),p&&v[b].isNew&&v[b].render(c,!0,.1),v[b].render(c)}),s&&0===a.min&&(v[-1]||(v[-1]=new aa(a,-1,null,!0)),v[-1].render(-1))),k&&z(l,function(b,c){0===c%2&&b<a.max&&(w[b]||(w[b]=new ja.PlotLineOrBand(a)),x=b+s,O=l[c+1]!==F?l[c+1]+s:a.max,
w[b].options={from:g?A(x):x,to:g?A(O):O,color:k},w[b].render(),w[b].isActive=!0)}),a._addedPlotLB||(z((f.plotLines||[]).concat(f.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);z([v,y,w],function(a){var b,c,e=[],f=ta?ta.duration||500:0,g=function(){for(c=e.length;c--;)a[e[c]]&&!a[e[c]].isActive&&(a[e[c]].destroy(),delete a[e[c]])};for(b in a)a[b].isActive||(a[b].render(b,!1,0),a[b].isActive=!1,e.push(b));a!==w&&d.hasRendered&&f?f&&setTimeout(g,f):g()});m&&(b=a.getLinePath(m),
a.axisLine?a.axisLine.animate({d:b}):a.axisLine=e.path(b).attr({stroke:f.lineColor,"stroke-width":m,zIndex:7}).add(a.axisGroup),a.axisLine[q?"show":"hide"]());r&&q&&(r[r.isNew?"attr":"animate"](a.getTitlePosition()),r.isNew=!1);C&&C.enabled&&a.renderStackTotals();a.isDirty=!1},redraw:function(){this.render();z(this.plotLinesAndBands,function(a){a.render()});z(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b=this,c=b.stacks,d,e=b.plotLinesAndBands;a||oa(b);for(d in c)da(c[d]),c[d]=
null;z([b.ticks,b.minorTicks,b.alternateBands],function(a){da(a)});for(a=e.length;a--;)e[a].destroy();z("stackTotalGroup axisLine axisTitle axisGroup cross gridGroup labelGroup".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});this.cross&&this.cross.destroy()},drawCrosshair:function(a,b){if(this.crosshair)if(!1===(t(b)||!k(this.crosshair.snap,!0)))this.hideCrosshair();else{var c,d=this.crosshair,e=d.animation;k(d.snap,!0)?t(b)&&(c=this.chart.inverted!=this.horiz?b.plotX:this.len-b.plotY):c=this.horiz?
a.chartX-this.pos:this.len-a.chartY+this.pos;c=this.isRadial?this.getPlotLinePath(this.isXAxis?b.x:k(b.stackY,b.y)):this.getPlotLinePath(null,null,null,null,c);if(null===c)this.hideCrosshair();else if(this.cross)this.cross.attr({visibility:"visible"})[e?"animate":"attr"]({d:c},e);else e={"stroke-width":d.width||1,stroke:d.color||"#C0C0C0",zIndex:d.zIndex||2},d.dashStyle&&(e.dashstyle=d.dashStyle),this.cross=this.chart.renderer.path(c).attr(e).add()}},hideCrosshair:function(){this.cross&&this.cross.hide()}};
q(xa.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath(a);d&&c?d.push(c[4],c[5],c[1],c[2]):d=null;return d},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,b){var c=(new ja.PlotLineOrBand(this,a)).render(),d=this.userOptions;c&&(b&&(d[b]=d[b]||[],d[b].push(a)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var b=
this.plotLinesAndBands,c=this.options,d=this.userOptions,e=b.length;e--;)b[e].id===a&&b[e].destroy();z([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&J(b,b[e])})}});xa.prototype.getTimeTicks=function(a,b,c,d){var e=[],f={},g=ha.global.useUTC,h,l=new Ca(b-Ha),n=a.unitRange,r=a.count;if(t(b)){n>=W.second&&(l.setMilliseconds(0),l.setSeconds(n>=W.minute?0:r*ba(l.getSeconds()/r)));if(n>=W.minute)l[rb](n>=W.hour?0:r*ba(l[eb]()/r));if(n>=W.hour)l[sb](n>=
W.day?0:r*ba(l[fb]()/r));if(n>=W.day)l[hb](n>=W.month?1:r*ba(l[Na]()/r));n>=W.month&&(l[tb](n>=W.year?0:r*ba(l[Za]()/r)),h=l[$a]());if(n>=W.year)l[ub](h-h%r);if(n===W.week)l[hb](l[Na]()-l[gb]()+k(d,1));b=1;Ha&&(l=new Ca(l.getTime()+Ha));h=l[$a]();d=l.getTime();for(var v=l[Za](),y=l[Na](),w=(W.day+(g?Ha:6E4*l.getTimezoneOffset()))%W.day;d<c;)e.push(d),d=n===W.year?Ya(h+b*r,0):n===W.month?Ya(h,v+b*r):g||n!==W.day&&n!==W.week?d+n*r:Ya(h,v,y+b*r*(n===W.day?1:7)),b++;e.push(d);z(lb(e,function(a){return n<=
W.hour&&a%W.day===w}),function(a){f[a]="day"})}e.info=q(a,{higherRanks:f,totalRange:n*r});return e};xa.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["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,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],d=c[c.length-1],e=W[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=W[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+W[c[g+1][0]])/2);g++);e===W.year&&
a<5*e&&(f=[1,2,5]);c=K(a/e,f,"year"===d[0]?I(ca.pow(10,ba(ca.log(a/e)/ca.LN10)),1):1);return{unitRange:e,count:c,unitName:d[0]}};var Ab=ja.Tooltip=function(){this.init.apply(this,arguments)};Ab.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=E(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=a.renderer.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,
zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999});wa||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){this.label&&(this.label=this.label.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=!1!==e.options.animation&&!e.isHidden&&(1<fa(a-f.x)||1<fa(b-f.y)),h=e.followPointer||1<e.len;q(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?F:g?(2*f.anchorX+c)/3:c,anchorY:h?F:g?(f.anchorY+d)/2:d});e.label.attr(f);g&&
(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32))},hide:function(a){var b=this,c;clearTimeout(this.hideTimer);this.isHidden||(c=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){b.label.fadeOut();b.isHidden=!0},k(a,this.options.hideDelay,500)),c&&z(c,function(a){a.setState()}),this.chart.hoverPoints=null)},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=0,h=0,l;a=H(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===
F&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-f]);c||(z(a,function(a){l=a.series.yAxis;g+=a.plotX;h+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&l?l.top-f:0)}),g/=a.length,h/=a.length,c=[e?d.plotWidth-h:g,this.shared&&!e&&1<a.length&&b?b.chartY-f:e?d.plotHeight-g:h]);return Ra(c,L)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g,h=["y",d.chartHeight,b,c.plotY+d.plotTop],l=["x",d.chartWidth,a,c.plotX+d.plotLeft],n=c.ttBelow||d.inverted&&!c.negative||!d.inverted&&
c.negative,r=function(a,b,c,d){var g=c<d-e;b=d+e+c<b;c=d-e-c;d+=e;if(n&&b)f[a]=d;else if(!n&&g)f[a]=c;else if(g)f[a]=c;else if(b)f[a]=d;else return!1},v=function(a,b,c,d){if(d<e||d>b-e)return!1;f[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2},y=function(a){var b=h;h=l;l=b;g=a},w=function(){!1!==r.apply(0,h)?!1!==v.apply(0,l)||g||(y(!0),w()):g?f.x=f.y=0:(y(!0),w())};(d.inverted||1<this.len)&&y();w();return f},defaultFormatter:function(a){var b=this.points||H(this),c=b[0].series,d;d=[a.tooltipHeaderFormatter(b[0])];
z(b,function(a){c=a.series;d.push(c.tooltipFormatter&&c.tooltipFormatter(a)||a.point.tooltipFormatter(c.tooltipOptions.pointFormat))});d.push(a.options.footerFormat||"");return d.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h={},l,n=[];l=e.formatter||this.defaultFormatter;var h=c.hoverPoints,r,v=this.shared;clearTimeout(this.hideTimer);this.followPointer=H(a)[0].series.tooltipOptions.followPointer;g=this.getAnchor(a,b);f=g[0];g=g[1];!v||a.series&&a.series.noSharedTooltip?
h=a.getLabelConfig():(c.hoverPoints=a,h&&z(h,function(a){a.setState()}),z(a,function(a){a.setState("hover");n.push(a.getLabelConfig())}),h={x:a[0].category,y:a[0].y},h.points=n,this.len=n.length,a=a[0]);l=l.call(h,this);h=a.series;this.distance=k(h.tooltipOptions.distance,16);!1===l?this.hide():(this.isHidden&&(Sa(d),d.attr("opacity",1).show()),d.attr({text:l}),r=e.borderColor||a.color||h.color||"#606060",d.attr({stroke:r}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow}),
this.isHidden=!1);ea(c,"tooltipRefresh",{text:l,x:f+c.plotLeft,y:g+c.plotTop,borderColor:r})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(L(c.x),L(c.y),a.plotX+b.plotLeft,a.plotY+b.plotTop)},tooltipHeaderFormatter:function(a){var b=a.series,c=b.tooltipOptions,d=c.dateTimeLabelFormats,e=c.xDateFormat,f=b.xAxis,g=f&&"datetime"===f.options.type&&m(a.key),c=c.headerFormat,f=f&&f.closestPointRange,h;if(g&&
!e){if(f)for(h in W){if(W[h]>=f||W[h]<=W.day&&0<a.key%W[h]){e=d[h];break}}else e=d.day;e=e||d.year}g&&e&&(c=c.replace("{point.key}","{point.key:"+e+"}"));return s(c,{point:a,series:b})}};var La;Pa=Y.documentElement.ontouchstart!==F;var Bb=ja.Pointer=function(a,b){this.init(a,b)};Bb.prototype={init:function(a,b){var c=b.chart,d=c.events,e=wa?"":c.zoomType,c=a.inverted,f;this.options=b;this.chart=a;this.zoomX=f=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=f&&!c||e&&c;this.zoomVert=e&&!c||f&&c;
this.hasZoom=f||e;this.runChartClick=d&&!!d.click;this.pinchDown=[];this.lastValidTouch={};ja.Tooltip&&b.tooltip.enabled&&(a.tooltip=new Ab(a,b.tooltip),this.followTouchMove=b.tooltip.followTouchMove);this.setDOMEvents()},normalize:function(a,b){var c,d;a=a||window.event;a=Kb(a);a.target||(a.target=a.srcElement);d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=Jb(this.chart.container));d.pageX===F?(c=I(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-
b.top);return q(a,{chartX:L(c),chartY:L(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};z(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},getIndex:function(a){var b=this.chart;return b.inverted?b.plotHeight+b.plotTop-a.chartY:a.chartX-b.plotLeft},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e,f,g=b.hoverPoint,h=b.hoverSeries,l,n,r=b.chartWidth,v=this.getIndex(a);if(d&&this.options.tooltip.shared&&
(!h||!h.noSharedTooltip)){f=[];l=c.length;for(n=0;n<l;n++)c[n].visible&&!1!==c[n].options.enableMouseTracking&&!c[n].noSharedTooltip&&!0!==c[n].singularTooltips&&c[n].tooltipPoints.length&&(e=c[n].tooltipPoints[v])&&e.series&&(e._dist=fa(v-e.clientX),r=$(r,e._dist),f.push(e));for(l=f.length;l--;)f[l]._dist>r&&f.splice(l,1);f.length&&f[0].clientX!==this.hoverX&&(d.refresh(f,a),this.hoverX=f[0].clientX)}c=h&&h.tooltipOptions.followPointer;if(h&&h.tracker&&!c){if((e=h.tooltipPoints[v])&&e!==g)e.onMouseOver(a)}else d&&
c&&!d.isHidden&&(h=d.getAnchor([{}],a),d.updatePosition({plotX:h[0],plotY:h[1]}));d&&!this._onDocumentMouseMove&&(this._onDocumentMouseMove=function(a){if(ra[La])ra[La].pointer.onDocumentMouseMove(a)},ga(Y,"mousemove",this._onDocumentMouseMove));z(b.axes,function(b){b.drawCrosshair(a,k(e,g))})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.tooltip,g=f&&f.shared?c.hoverPoints:e;(a=a&&f&&g)&&H(g)[0].plotX===F&&(a=!1);if(a)f.refresh(g),e&&e.setState(e.state,!0);else{if(e)e.onMouseOut();
if(d)d.onMouseOut();f&&f.hide(b);this._onDocumentMouseMove&&(oa(Y,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null);z(c.axes,function(a){a.hideCrosshair()});this.hoverX=null}},scaleGroups:function(a,b){var c=this.chart,d;z(c.series,function(e){d=a||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&(e.group.attr(d),e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(b?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});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,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,h=b.plotLeft,l=b.plotTop,n=b.plotWidth,r=b.plotHeight,v,y=this.mouseDownX,w=this.mouseDownY,k=c.panKey&&a[c.panKey+"Key"];d<h?d=h:d>h+n&&(d=h+n);e<l?e=l:e>l+r&&(e=l+r);this.hasDragged=Math.sqrt(Math.pow(y-d,2)+Math.pow(w-e,2));10<this.hasDragged&&(v=b.isInsidePlot(y-h,w-
l),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&v&&!k&&!this.selectionMarker&&(this.selectionMarker=b.renderer.rect(h,l,f?1:n,g?1:r,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&f&&(d-=y,this.selectionMarker.attr({width:fa(d),x:(0<d?0:d)+y})),this.selectionMarker&&g&&(d=e-w,this.selectionMarker.attr({height:fa(d),y:(0<d?0:d)+w})),v&&!this.selectionMarker&&c.panning&&b.pan(a,c.panning))},drop:function(a){var b=this.chart,c=this.hasPinched;if(this.selectionMarker){var d=
{xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},e=this.selectionMarker,f=e.attr?e.attr("x"):e.x,g=e.attr?e.attr("y"):e.y,h=e.attr?e.attr("width"):e.width,l=e.attr?e.attr("height"):e.height,n;if(this.hasDragged||c)z(b.axes,function(b){if(b.zoomEnabled){var c=b.horiz,e="touchend"===a.type?b.minPixelPadding:0,w=b.toValue((c?f:g)+e),c=b.toValue((c?f+h:g+l)-e);isNaN(w)||isNaN(c)||(d[b.coll].push({axis:b,min:$(w,c),max:I(w,c)}),n=!0)}}),n&&ea(b,"selection",d,function(a){b.zoom(q(a,c?{animation:!1}:
null))});this.selectionMarker=this.selectionMarker.destroy();c&&this.scaleGroups()}b&&(D(b.container,{cursor:b._cursor}),b.cancelClick=10<this.hasDragged,b.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(a){ra[La]&&ra[La].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,d=b.hoverSeries;a=this.normalize(a,c);
c&&d&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(){var a=ra[La];a&&(a.pointer.reset(),a.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;La=b.index;a=this.normalize(a);a.returnValue=!1;"mousedown"===b.mouseIsDown&&this.drag(a);!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||b.openMenu||this.runPointActions(a)},
inClass:function(a,b){for(var c;a;){if(c=x(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,c=(a=a.relatedTarget||a.toElement)&&a.point&&a.point.series;if(b&&!b.options.stickyTracking&&!this.inClass(a,"highcharts-tooltip")&&c!==b)b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop;a=this.normalize(a);a.cancelBubble=!0;b.cancelClick||
(c&&this.inClass(a.target,"highcharts-tracker")?(ea(c.series,"click",q(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(q(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&ea(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};ga(b,"mouseleave",a.onContainerMouseLeave);1===Qa&&ga(Y,"mouseup",a.onDocumentMouseUp);
Pa&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===Qa&&ga(Y,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;oa(this.chart.container,"mouseleave",this.onContainerMouseLeave);Qa||(oa(Y,"mouseup",this.onDocumentMouseUp),oa(Y,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};var cb=ja.Legend=function(a,b){this.init(a,b)};cb.prototype={init:function(a,b){var c=this,d=b.itemStyle,
e=k(b.padding,8),f=b.itemMarginTop||0;this.options=b;b.enabled&&(c.itemStyle=d,c.itemHiddenStyle=u(d,b.itemHiddenStyle),c.itemMarginTop=f,c.padding=e,c.initialItemX=e,c.initialItemY=e-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.lastLineHeight=0,c.symbolWidth=k(b.symbolWidth,16),c.pages=[],c.render(),ga(c.chart,"endResize",function(){c.positionCheckboxes()}))},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:
g,h=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,l={fill:h},n;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(n in l.stroke=h,g=a.convertAttribs(g),g)d=g[n],d!==F&&(l[n]=d);f.attr(l)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=a.checkbox;z(["legendItem","legendLine",
"legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Wa(a.checkbox)},destroy:function(){var a=this.group,b=this.box;b&&(this.box=b.destroy());a&&(this.group=a.destroy())},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight;b&&(c=b.translateY,z(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,D(f,{left:b.translateX+e.checkboxOffset+f.x-20+"px",top:g+"px",display:g>c-6&&g<c+d-6?"":"none"}))}))},renderTitle:function(){var a=
this.padding,b=this.options.title,c=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group)),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c}));this.titleHeight=c},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,e="horizontal"===d.layout,f=this.symbolWidth,g=d.symbolPadding,h=this.itemStyle,l=this.itemHiddenStyle,n=this.padding,
r=e?k(d.itemDistance,20):0,v=!d.rtl,y=d.width,w=d.itemMarginBottom||0,C=this.itemMarginTop,m=this.initialItemX,p=a.legendItem,A=a.series&&a.series.drawLegendSymbol?a.series:a,B=A.options,B=this.createCheckboxForItem&&B&&B.showCheckbox,t=d.useHTML;p||(a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),a.legendItem=p=c.text(d.labelFormat?s(d.labelFormat,a):d.labelFormatter.call(a),v?f+g:-g,this.baseline||0,t).css(u(a.visible?h:l)).attr({align:v?"left":"right",zIndex:2}).add(a.legendGroup),
this.baseline||(this.baseline=c.fontMetrics(h.fontSize,p).f+3+C,p.attr("y",this.baseline)),A.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,p,t,h,l),this.colorizeItem(a,a.visible),B&&this.createCheckboxForItem(a));c=p.getBBox();f=a.checkboxOffset=d.itemWidth||a.legendItemWidth||f+g+c.width+r+(B?20:0);this.itemHeight=g=L(a.legendItemHeight||c.height);e&&this.itemX-m+f>(y||b.chartWidth-2*n-m-d.x)&&(this.itemX=m,this.itemY+=C+this.lastLineHeight+w,this.lastLineHeight=0);this.maxItemWidth=
I(this.maxItemWidth,f);this.lastItemY=C+this.itemY+w;this.lastLineHeight=I(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=C+g+w,this.lastLineHeight=g);this.offsetWidth=y||I((e?this.itemX-m-r:f)+n,this.offsetWidth)},getAllItems:function(){var a=[];z(this.chart.series,function(b){var c=b.options;k(c.showInLegend,t(c.linkedTo)?!1:F,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});return a},render:function(){var a=this,b=a.chart,c=b.renderer,
d=a.group,e,f,g,h,l=a.box,n=a.options,r=a.padding,v=n.borderWidth,y=n.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;d||(a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup));a.renderTitle();e=a.getAllItems();T(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});n.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;z(e,function(b){a.renderItem(b)});
g=n.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);if(v||y)g+=r,h+=r,l?0<g&&0<h&&(l[l.isNew?"attr":"animate"](l.crisp({width:g,height:h})),l.isNew=!1):(a.box=l=c.rect(0,0,g,h,n.borderRadius,v||0).attr({stroke:n.borderColor,"stroke-width":v||0,fill:y||"none"}).add(d).shadow(n.shadow),l.isNew=!0),l[f?"show":"hide"]();a.legendWidth=g;a.legendHeight=h;z(e,function(b){a.positionItem(b)});f&&d.align(q({width:g,height:h},n),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},
handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+("top"===e.verticalAlign?-f:f)-this.padding,g=e.maxHeight,h,l=this.clipRect,n=e.navigation,r=k(n.animation,!0),v=n.arrowSize||12,y=this.nav,w=this.pages,C,s=this.allItems;"horizontal"===e.layout&&(f/=2);g&&(f=$(f,g));w.length=0;a>f&&!e.useHTML?(this.clipHeight=h=I(f-20-this.titleHeight-this.padding,0),this.currentPage=k(this.currentPage,1),this.fullHeight=a,z(s,function(a,b){var c=a._legendItemPos[1],
d=L(a.legendItem.getBBox().height),e=w.length;if(!e||c-w[e-1]>h&&(C||c)!==w[e-1])w.push(C||c),e++;b===s.length-1&&c+d-w[e-1]>h&&w.push(c);c!==C&&(C=c)}),l||(l=b.clipRect=d.clipRect(0,this.padding,9999,0),b.contentGroup.clip(l)),l.attr({height:h}),y||(this.nav=y=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,v,v).on("click",function(){b.scroll(-1,r)}).add(y),this.pager=d.text("",15,10).css(n.style).add(y),this.down=d.symbol("triangle-down",0,0,v,v).on("click",function(){b.scroll(1,
r)}).add(y)),b.scroll(0),a=f):y&&(l.attr({height:c.chartHeight}),y.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,l=this.pager,n=this.padding;e>d&&(e=d);0<e&&(b!==F&&(ta=k(b,this.chart.animation)),this.nav.attr({translateX:n,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===e?g:h}).css({cursor:1===
e?"default":"pointer"}),l.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}};var Ua=ja.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||12;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-5-c/2,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=
this.options,c=b.marker,d;d=a.symbolWidth;var e=this.chart.renderer,f=this.legendGroup;a=a.baseline-L(.3*e.fontMetrics(a.options.itemStyle.fontSize,this.legendItem).b);var g;b.lineWidth&&(g={"stroke-width":b.lineWidth},b.dashStyle&&(g.dashstyle=b.dashStyle),this.legendLine=e.path(["M",0,a,"L",d,a]).attr(g).add(f));c&&!1!==c.enabled&&(b=c.radius,this.legendSymbol=d=e.symbol(this.symbol,d/2-b,a-b,2*b,2*b).add(f),d.isMarker=!0)}};(/Trident\/7\.0/.test(Ea)||Ia)&&B(cb.prototype,"positionItem",function(a,
b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});na.prototype={init:function(a,b){var c,d=a.series;a.series=null;c=u(ha,a);c.series=a.series=d;this.userOptions=a;d=c.chart;this.margin=this.splashArray("margin",d);this.spacing=this.splashArray("spacing",d);var e=d.events;this.bounds={h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=ra.length;ra.push(f);Qa++;!1!==d.reflow&&ga(f,
"load",function(){f.initReflow()});if(e)for(g in e)ga(f,g,e[g]);f.xAxis=[];f.yAxis=[];f.animation=wa?!1:k(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=N[a.type||b.type||b.defaultSeriesType])||ua(17,!0);b=new b;b.init(this,a);return b},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&d<=this.plotWidth&&0<=a&&a<=this.plotHeight},adjustTickAmounts:function(){!1!==this.options.chart.alignTicks&&z(this.axes,
function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,l=this.hasCartesianSeries,n=this.isDirtyBox,r=c.length,v=r,y=this.renderer,w=y.isHidden(),C=[];ta=k(a,this.animation);w&&this.cloneRenderTo();for(this.layOutTitles();v--;)if(a=c[v],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(v=r;v--;)a=c[v],a.options.stacking&&(a.isDirty=!0);z(c,function(a){a.isDirty&&"point"===a.options.legendType&&
(f=!0)});f&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);g&&this.getStacks();l&&(this.isResizing||(this.maxTicks=null,z(b,function(a){a.setScale()})),this.adjustTickAmounts());this.getMargins();l&&(z(b,function(a){a.isDirty&&(n=!0)}),z(b,function(a){a.isDirtyExtremes&&(a.isDirtyExtremes=!1,C.push(function(){ea(a,"afterSetExtremes",q(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||g)&&a.redraw()}));n&&this.drawChartBox();z(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&
a.redraw()});d&&d.reset(!0);y.draw();ea(this,"redraw");w&&this.cloneRenderTo(!0);z(C,function(a){a.call()})},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d<b.length;d++)if(b[d].options.id===a)return b[d];for(d=0;d<c.length;d++)if(c[d].options.id===a)return c[d];for(d=0;d<c.length;d++)for(e=c[d].points||[],b=0;b<e.length;b++)if(e[b].id===a)return e[b];return null},getAxes:function(){var a=this,b=this.options,c=b.xAxis=H(b.xAxis||{}),b=b.yAxis=H(b.yAxis||{});z(c,function(a,b){a.index=b;
a.isX=!0});z(b,function(a,b){a.index=b});c=c.concat(b);z(c,function(b){new xa(a,b)});a.adjustTickAmounts()},getSelectedPoints:function(){var a=[];z(this.series,function(b){a=a.concat(lb(b.points||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return lb(this.series,function(a){return a.selected})},getStacks:function(){var a=this;z(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});z(a.series,function(b){!b.options.stacking||!0!==b.visible&&!1!==
a.options.chart.ignoreHiddenSeries||(b.stackKey=b.type+k(b.options.stack,""))})},setTitle:function(a,b,c){var d=this,e=d.options,f;f=e.title=u(e.title,a);e=e.subtitle=u(e.subtitle,b);z([["title",a,f],["subtitle",b,e]],function(a){var b=a[0],c=d[b],e=a[1];a=a[2];c&&e&&(d[b]=c=c.destroy());a&&a.text&&!c&&(d[b]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())});d.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=
this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox.width-44;c&&(c.css({width:(f.width||h)+"px"}).align(q({y:g.fontMetrics(f.style.fontSize,c).b-3},f),!1,"spacingBox"),f.floating||f.verticalAlign||(b=c.getBBox().height));d&&(d.css({width:(e.width||h)+"px"}).align(q({y:b+(f.margin-13)+g.fontMetrics(f.style.fontSize,d).b},e),!1,"spacingBox"),e.floating||e.verticalAlign||(b=Ga(b+d.getBBox().height)));c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=
c,this.hasRendered&&k(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;t(b)||(this.containerWidth=bb(c,"width"));t(a)||(this.containerHeight=bb(c,"height"));this.chartWidth=I(0,b||this.containerWidth||600);this.chartHeight=I(0,k(a,19<this.containerHeight?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Wa(b),delete this.renderToClone):
(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),D(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),Y.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+jb++;S(a)&&(this.renderTo=a=Y.getElementById(a));a||ua(13,!0);c=E(x(a,"data-highcharts-chart"));!isNaN(c)&&ra[c]&&ra[c].hasRendered&&
ra[c].destroy();x(a,"data-highcharts-chart",this.index);a.innerHTML="";b.skipClone||a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=M("div",{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},q({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},b.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=
b.forExport?new Ka(a,c,d,b.style,!0):new Ka(a,c,d,b.style);wa&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.spacing,b,c=this.legend,d=this.margin,e=this.options.legend,f=k(e.margin,20),g=e.x,h=e.y,l=e.align,n=e.verticalAlign,r=this.titleOffset;this.resetMargins();b=this.axisOffset;r&&!t(d[0])&&(this.plotTop=I(this.plotTop,r+this.options.title.margin+a[0]));c.display&&!e.floating&&("right"===l?t(d[1])||(this.marginRight=I(this.marginRight,c.legendWidth-g+f+a[1])):"left"===l?t(d[3])||
(this.plotLeft=I(this.plotLeft,c.legendWidth+g+f+a[3])):"top"===n?t(d[0])||(this.plotTop=I(this.plotTop,c.legendHeight+h+f+a[0])):"bottom"!==n||t(d[2])||(this.marginBottom=I(this.marginBottom,c.legendHeight-h+f+a[2])));this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&z(this.axes,function(a){a.getOffset()});t(d[3])||(this.plotLeft+=b[3]);t(d[0])||(this.plotTop+=b[0]);t(d[2])||(this.marginBottom+=b[2]);
t(d[1])||(this.marginRight+=b[1]);this.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=c.width||bb(d,"width"),f=c.height||bb(d,"height"),c=a?a.target:ka,d=function(){b.container&&(b.setSize(e,f,!1),b.hasUserSize=null)};if(!b.hasUserSize&&e&&f&&(c===ka||c===Y)){if(e!==b.containerWidth||f!==b.containerHeight)clearTimeout(b.reflowTimeout),a?b.reflowTimeout=setTimeout(d,100):d();b.containerWidth=e;b.containerHeight=f}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};
ga(ka,"resize",b);ga(a,"destroy",function(){oa(ka,"resize",b)})},setSize:function(a,b,c){var d=this,e,f,g;d.isResizing+=1;g=function(){d&&ea(d,"endResize",null,function(){--d.isResizing})};ta=k(c,d.animation);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;t(a)&&(d.chartWidth=e=I(0,L(a)),d.hasUserSize=!!e);t(b)&&(d.chartHeight=f=I(0,L(b)));(ta?zb:D)(d.container,{width:e+"px",height:f+"px"},ta);d.setChartSize(!0);d.renderer.setSize(e,f,c);d.maxTicks=null;z(d.axes,function(a){a.isDirty=
!0;a.setScale()});z(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;ea(d,"resize");!1===ta?g():setTimeout(g,ta&&ta.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,l,n,r,v;this.plotLeft=l=L(this.plotLeft);this.plotTop=n=L(this.plotTop);this.plotWidth=r=I(0,L(d-l-this.marginRight));this.plotHeight=
v=I(0,L(e-n-this.marginBottom));this.plotSizeX=b?v:r;this.plotSizeY=b?r:v;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:l,y:n,width:r,height:v};d=2*ba(this.plotBorderWidth/2);b=Ga(I(d,h[3])/2);c=Ga(I(d,h[0])/2);this.clipBox={x:b,y:c,width:ba(this.plotSizeX-I(d,h[1])/2-b),height:I(0,ba(this.plotSizeY-I(d,h[2])/2-c))};a||z(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=
this.spacing,b=this.margin;this.plotTop=k(b[0],a[0]);this.marginRight=k(b[1],a[1]);this.marginBottom=k(b[2],a[2]);this.plotLeft=k(b[3],a[3]);this.axisOffset=[0,0,0,0];this.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,l=a.borderWidth||0,n=a.backgroundColor,r=a.plotBackgroundColor,v=a.plotBackgroundImage,y=a.plotBorderWidth||0,w,k=this.plotLeft,
s=this.plotTop,m=this.plotWidth,p=this.plotHeight,B=this.plotBox,A=this.clipRect,t=this.clipBox;w=l+(a.shadow?8:0);if(l||n)e?e.animate(e.crisp({width:c-w,height:d-w})):(e={fill:n||"none"},l&&(e.stroke=a.borderColor,e["stroke-width"]=l),this.chartBackground=b.rect(w/2,w/2,c-w,d-w,a.borderRadius,l).attr(e).addClass("highcharts-background").add().shadow(a.shadow));r&&(f?f.animate(B):this.plotBackground=b.rect(k,s,m,p,0).attr({fill:r}).add().shadow(a.plotShadow));v&&(h?h.animate(B):this.plotBGImage=b.image(v,
k,s,m,p).add());A?A.animate({width:t.width,height:t.height}):this.clipRect=b.clipRect(t);y&&(g?g.animate(g.crisp({x:k,y:s,width:m,height:p,strokeWidth:-y})):this.plotBorder=b.rect(k,s,m,p,0,-y).attr({stroke:a.plotBorderColor,"stroke-width":y,fill:"none",zIndex:1}).add());this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;z(["inverted","angular","polar"],function(g){c=N[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&
e--;)(c=N[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;z(b,function(a){a.linkedSeries.length=0});z(b,function(b){var d=b.options.linkedTo;S(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&(d.linkedSeries.push(b),b.linkedParent=d)})},renderSeries:function(){z(this.series,function(a){a.translate();a.setTooltipPoints&&a.setTooltipPoints();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&z(b.items,function(c){var d=q(b.style,
c.style),e=E(d.left)+a.plotLeft,f=E(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options;this.setTitle();this.legend=new cb(this,c.legend);this.getStacks();z(a,function(a){a.setScale()});this.getMargins();this.maxTicks=null;z(a,function(a){a.setTickPositions(!0);a.setMaxTicks()});this.adjustTickAmounts();this.getMargins();this.drawChartBox();this.hasCartesianSeries&&z(a,function(a){a.render()});
this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.showCredits(c.credits);this.hasRendered=!0},showCredits:function(a){a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text,0,0).on("click",function(){a.href&&(location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position))},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;ea(a,"destroy");ra[a.index]=
F;Qa--;a.renderTo.removeAttribute("data-highcharts-chart");oa(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();z("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer scroller rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});d&&(d.innerHTML="",oa(d),f&&Wa(d));for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!pa&&ka==ka.top&&
"complete"!==Y.readyState||wa&&!ka.canvg?(wa?CanVGController.push(function(){a.firstRender()},a.options.global.canvasToolsURL):Y.attachEvent("onreadystatechange",function(){Y.detachEvent("onreadystatechange",a.firstRender);"complete"===Y.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;a.isReadyToRender()&&(a.getContainer(),ea(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),z(b.series||[],function(b){a.initSeries(b)}),a.linkSeries(),
ea(a,"beforeRender"),ja.Pointer&&(a.pointer=new Bb(a,b)),a.render(),a.renderer.draw(),c&&c.apply(a,[a]),z(a.callbacks,function(b){b.apply(a,[a])}),a.cloneRenderTo(!0),ea(a,"load"))},splashArray:function(a,b){var c=b[a],c=R(c)?c:[c,c,c,c];return[k(b[a+"Top"],c[0]),k(b[a+"Right"],c[1]),k(b[a+"Bottom"],c[2]),k(b[a+"Left"],c[3])]}};na.prototype.callbacks=[];var Cb=ja.CenteredSeriesMixin={getCenter:function(){var a=this.options,b=this.chart,c=2*(a.slicedOffset||0),d,e=b.plotWidth-2*c,f=b.plotHeight-2*
c,b=a.center,a=[k(b[0],"50%"),k(b[1],"50%"),a.size||"100%",a.innerSize||0],g=$(e,f),h;return Ra(a,function(a,b){h=/%$/.test(a);d=2>b||2===b&&h;return(h?[e,f,g,g][b]*E(a)/100:a)+(d?c:0)})}},Aa=function(){};Aa.prototype={init:function(a,b,c){this.series=a;this.applyOptions(b,c);this.pointAttr={};a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length&&(a.colorCounter=0));a.chart.pointCount++;return this},applyOptions:function(a,
b){var c=this.series,d=c.options.pointValKey||c.pointValKey;a=Aa.prototype.optionsToObject.call(this,a);q(this,a);this.options=this.options?q(this.options,a):a;d&&(this.y=this[d]);this.x===F&&c&&(this.x=b===F?c.autoIncrement():b);return this},optionsToObject:function(a){var b={},c=this.series,d=c.pointArrayMap||["y"],e=d.length,f=0,g=0;if("number"===typeof a||null===a)b[d[0]]=a;else if(Z(a))for(a.length>e&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),f++);g<e;)b[d[g++]]=a[f++];
else"object"===typeof a&&(b=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;b&&(this.setState(),J(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)oa(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a="graphic dataLabel dataLabelUpper group connector shadowGroup".split(" "),
b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,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,c=b.tooltipOptions,d=k(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";z(b.pointArrayMap||["y"],function(b){b="{point."+b;if(e||f)a=a.replace(b+"}",e+b+"}"+f);a=a.replace(b+"}",b+":,."+d+"f}")});return s(a,
{point:this,series:this.series})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();"click"===a&&e.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});ea(this,a,b,c)}};var V=function(){};V.prototype={isCartesian:!0,type:"line",pointClass:Aa,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis",
"yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c=this,d,e,f=a.series,g=function(a,b){return k(a.options.index,a._i)-k(b.options.index,b._i)};c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();q(c,{name:b.name,state:"",pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});wa&&(b.animation=!1);e=b.events;for(d in e)ga(c,d,e[d]);if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();
z(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);f.push(c);c._i=f.length-1;T(f,g);this.yAxis&&T(this.yAxis.series,g);z(f,function(a,b){a.index=b;a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;z(a.axisTypes||[],function(e){z(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]!==F&&b[e]===d.id||b[e]===F&&0===d.index)c.series.push(a),a[e]=c,c.isDirty=!0});a[e]||a.optionalAxis===e||ua(18,!0)})},updateParallelArrays:function(a,
b){var c=a.series,d=arguments;z(c.parallelArrays,"number"===typeof b?function(d){var f="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=f}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))})},autoIncrement:function(){var a=this.options,b=this.xIncrement,b=k(b,a.pointStart,0);this.pointInterval=k(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},getSegments:function(){var a=-1,b=[],c,d=this.points,e=d.length;if(e)if(this.options.connectNulls){for(c=
e;c--;)null===d[c].y&&d.splice(c,1);d.length&&(b=[d])}else z(d,function(c,g){null===c.y?(g>a+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,b=b.userOptions||{},d=b.plotOptions||{},e=c[this.type];this.userOptions=a;c=u(e,c.series,a);this.tooltipOptions=u(ha.tooltip,ha.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);null===e.marker&&delete c.marker;
return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(t(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]);this[a]=b},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||X[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);/^url/.test(this.symbol)&&(a.radius=0)},drawLegendSymbol:Ua.drawLineMarker,setData:function(a,
b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,l=e.options,n=e.chart,r=null,v=e.xAxis,y=v&&!!v.categories,w=e.tooltipPoints,s=l.turboThreshold,p=this.xData,B=this.yData,A=(h=e.pointArrayMap)&&h.length;a=a||[];h=a.length;b=k(b,!0);if(!1===d||!h||g!==h||e.cropped||e.hasGroupedData){e.xIncrement=null;e.pointRange=y?1:l.pointRange;e.colorCounter=0;z(this.parallelArrays,function(a){e[a+"Data"].length=0});if(s&&h>s){for(c=0;null===r&&c<h;)r=a[c],c++;if(m(r)){y=k(l.pointStart,0);l=k(l.pointInterval,1);
for(c=0;c<h;c++)p[c]=y,B[c]=a[c],y+=l;e.xIncrement=y}else if(Z(r))if(A)for(c=0;c<h;c++)l=a[c],p[c]=l[0],B[c]=l.slice(1,A+1);else for(c=0;c<h;c++)l=a[c],p[c]=l[0],B[c]=l[1];else ua(12)}else for(c=0;c<h;c++)a[c]!==F&&(l={series:e},e.pointClass.prototype.applyOptions.apply(l,[a[c]]),e.updateParallelArrays(l,c),y&&l.name&&(v.names[l.x]=l.name));S(B[0])&&ua(14,!0);e.data=[];e.options.data=a;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();w&&(w.length=0);v&&(v.minRange=v.userMinRange);e.isDirty=e.isDirtyData=
n.isDirtyBox=!0;c=!1}else z(a,function(a,b){f[b].update(a,!1,null,!1)});b&&n.redraw(c)},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e;e=0;var f,g,h=this.xAxis,l,n=this.options;l=n.cropThreshold;var r=0,v=this.isCartesian,y,w;if(v&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!a)return!1;h&&(y=h.getExtremes(),w=y.min,y=y.max);if(v&&this.sorted&&(!l||d>l||this.forceCrop))if(b[d-1]<w||b[0]>y)b=[],c=[];else if(b[0]<w||b[d-1]>y)e=this.cropData(this.xData,this.yData,w,y),b=e.xData,
c=e.yData,e=e.start,f=!0,r=b.length;for(l=b.length-1;0<=l;l--)d=b[l]-b[l-1],!f&&b[l]>w&&b[l]<y&&r++,0<d&&(g===F||d<g)?g=d:0>d&&this.requireSorting&&ua(15);this.cropped=f;this.cropStart=e;this.processedXData=b;this.processedYData=c;this.activePointCount=r;null===n.pointRange&&(this.pointRange=g||1);this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,f=0,g=e,h=k(this.cropShoulder,1),l;for(l=0;l<e;l++)if(a[l]>=c){f=I(0,l-h);break}for(;l<e;l++)if(a[l]>d){g=l+h;break}return{xData:a.slice(f,
g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,l,n=this.hasGroupedData,r,v=[],y;b||n||(b=[],b.length=a.length,b=this.data=b);for(y=0;y<g;y++)l=h+y,n?v[y]=(new f).init(this,[d[y]].concat(H(e[y]))):(b[l]?r=b[l]:a[l]!==F&&(b[l]=r=(new f).init(this,a[l],d[y])),v[y]=r),v[y].index=l;if(b&&(g!==(c=b.length)||n))for(y=0;y<c;y++)y!==h||n||(y+=g),b[y]&&(b[y].destroyElements(),
b[y].plotX=F);this.data=b;this.points=v},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,e=[],f=0;d=this.xAxis.getExtremes();var g=d.min,h=d.max,l,n,r,v;a=a||this.stackedYData||this.processedYData;d=a.length;for(v=0;v<d;v++)if(n=c[v],r=a[v],l=null!==r&&r!==F&&(!b.isLog||r.length||0<r),n=this.getExtremesFromAll||this.cropped||(c[v+1]||n)>=g&&(c[v-1]||n)<=h,l&&n)if(l=r.length)for(;l--;)null!==r[l]&&(e[f++]=r[l]);else e[f++]=r;this.dataMin=k(void 0,G(e));this.dataMax=k(void 0,P(e))},
translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,l=a.pointPlacement,n="between"===l||m(l),r=a.threshold,a=0;a<g;a++){var v=f[a],y=v.x,w=v.y,s=v.low,p=b&&e.stacks[(this.negStacks&&w<r?"-":"")+this.stackKey];e.isLog&&0>=w&&(v.y=w=null,ua(10));v.plotX=c.translate(y,0,0,0,1,l,"flags"===this.type);b&&this.visible&&p&&p[y]&&(p=p[y],w=p.points[this.index+
","+a],s=w[0],w=w[1],0===s&&(s=k(r,e.min)),e.isLog&&0>=s&&(s=null),v.total=v.stackTotal=p.total,v.percentage=p.total&&v.y/p.total*100,v.stackY=w,p.setOffset(this.pointXOffset||0,this.barW||0));v.yBottom=t(s)?e.translate(s,0,1,0,1):null;h&&(w=this.modifyValue(w,v));v.plotY="number"===typeof w&&Infinity!==w?e.translate(w,0,1,0,1):F;v.clientX=n?c.translate(y,0,0,0,1):v.plotX;v.negative=v.y<(r||0);v.category=d&&d[v.x]!==F?d[v.x]:v.x}this.getSegments()},animate:function(a){var b=this.chart,c=b.renderer,
d;d=this.options.animation;var e=this.clipBox||b.clipBox,f=b.inverted,g;d&&!R(d)&&(d=X[this.type].animation);g=["_sharedClip",d.duration,d.easing,e.height].join();a?(a=b[g],d=b[g+"m"],a||(b[g]=a=c.clipRect(q(e,{width:0})),b[g+"m"]=d=c.clipRect(-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),this.group.clip(a),this.markerGroup.clip(d),this.sharedClipKey=g):((a=b[g])&&a.animate({width:b.plotSizeX},d),b[g+"m"]&&b[g+"m"].animate({width:b.plotSizeX+99},d),this.animate=null)},afterAnimate:function(){var a=
this.chart,b=this.sharedClipKey,c=this.group,d=this.clipBox;c&&!1!==this.options.clip&&(b&&d||c.clip(d?a.renderer.clipRect(d):a.clipRect),this.markerGroup.clip());ea(this,"afterAnimate");setTimeout(function(){b&&a[b]&&(d||(a[b]=a[b].destroy()),a[b+"m"]&&(a[b+"m"]=a[b+"m"].destroy()))},100)},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,l,n,r,v=this.options.marker,y=this.pointAttr[""],w,s,p,m=this.markerGroup,B=k(v.enabled,!this.requireSorting||this.activePointCount<.5*this.xAxis.len/
v.radius);if(!1!==v.enabled||this._hasPointMarkers)for(f=b.length;f--;)g=b[f],d=ba(g.plotX),e=g.plotY,r=g.graphic,w=g.marker||{},s=!!g.marker,a=B&&w.enabled===F||w.enabled,p=c.isInsidePlot(L(d),e,c.inverted),a&&e!==F&&!isNaN(e)&&null!==g.y?(a=g.pointAttr[g.selected?"select":""]||y,h=a.r,l=k(w.symbol,this.symbol),n=0===l.indexOf("url"),r?r[p?"show":"hide"](!0).animate(q({x:d-h,y:e-h},r.symbolName?{width:2*h,height:2*h}:{})):p&&(0<h||n)&&(g.graphic=c.renderer.symbol(l,d-h,e-h,2*h,2*h,s?w:v).attr(a).add(m))):
r&&(g.graphic=r.destroy())},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e)g=e[f],h[f]=k(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=X[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color;f={stroke:g,fill:g};var h=a.points||[],l,n=[],r,v=a.pointAttrToOptions;r=a.hasPointSpecificOptions;var y=b.negativeColor,w=c.lineColor,k=c.fillColor;l=b.turboThreshold;var s;b.marker?(e.radius=e.radius||c.radius+
e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):e.color=e.color||Fa(e.color||g).brighten(e.brightness).get();n[""]=a.convertAttribs(c,f);z(["hover","select"],function(b){n[b]=a.convertAttribs(d[b],n[""])});a.pointAttr=n;g=h.length;if(!l||g<l||r)for(;g--;){l=h[g];(c=l.options&&l.options.marker||l.options)&&!1===c.enabled&&(c.radius=0);l.negative&&y&&(l.color=l.fillColor=y);r=b.colorByPoint||l.color;if(l.options)for(s in v)t(c[v[s]])&&(r=!0);r?(c=c||{},r=[],d=c.states||{},f=d.hover=
d.hover||{},b.marker||(f.color=f.color||!l.options.color&&e.color||Fa(l.color).brighten(f.brightness||e.brightness).get()),f={color:l.color},k||(f.fillColor=l.color),w||(f.lineColor=l.color),r[""]=a.convertAttribs(q(f,c),n[""]),r.hover=a.convertAttribs(d.hover,n.hover,r[""]),r.select=a.convertAttribs(d.select,n.select,r[""])):r=n;l.pointAttr=r}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ea),d,e,f=a.data||[],g,h,l;ea(a,"destroy");oa(a);z(a.axisTypes||[],function(b){if(l=a[b])J(l.series,
a),l.isDirty=l.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(e=f.length;e--;)(g=f[e])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);z("area graph dataLabelsGroup group markerGroup tracker graphNeg areaNeg posClip negClip".split(" "),function(b){a[b]&&(d=c&&"group"===b?"hide":"destroy",a[b][d]())});b.hoverSeries===a&&(b.hoverSeries=null);J(b.series,a);for(h in a)delete a[h]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;z(a,function(e,f){var g=
e.plotX,h=e.plotY,l;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(l=a[f-1],"right"===d?c.push(l.plotX,h):"center"===d?c.push((l.plotX+g)/2,l.plotY,(l.plotX+g)/2,h):c.push(g,l.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=[],c,d=[];z(a.segments,function(e){c=a.getSegmentPath(e);1<e.length?b=b.concat(c):d.push(e[0])});a.singlePoints=d;return a.graphPath=b},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||
this.color]],d=b.lineWidth,e=b.dashStyle,f="square"!==b.linecap,g=this.getGraphPath(),h=b.negativeColor;h&&c.push(["graphNeg",h]);z(c,function(c,h){var r=c[0],v=a[r];v?(Sa(v),v.animate({d:g})):d&&g.length&&(v={stroke:c[1],"stroke-width":d,fill:"none",zIndex:1},e?v.dashstyle=e:f&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),a[r]=a.chart.renderer.path(g).attr(v).add(a.group).shadow(!h&&b.shadow))})},clipNeg:function(){var a=this.options,b=this.chart,c=b.renderer,d=a.negativeColor||a.negativeFillColor,
e,f=this.graph,g=this.area,h=this.posClip,l=this.negClip;e=b.chartWidth;var n=b.chartHeight,r=I(e,n),v=this.yAxis;d&&(f||g)&&(d=L(v.toPixels(a.threshold||0,!0)),0>d&&(r-=d),a={x:0,y:0,width:r,height:d},r={x:0,y:d,width:r,height:r},b.inverted&&(a.height=r.y=b.plotWidth-d,c.isVML&&(a={x:b.plotWidth-d-b.plotLeft,y:0,width:e,height:n},r={x:d+b.plotLeft-e,y:0,width:b.plotLeft+d,height:e})),v.reversed?(b=r,e=a):(b=a,e=r),h?(h.animate(b),l.animate(e)):(this.posClip=h=c.clipRect(b),this.negClip=l=c.clipRect(e),
f&&this.graphNeg&&(f.clip(h),this.graphNeg.clip(l)),g&&(g.clip(h),this.areaNeg.clip(l))))},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};z(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&(ga(c,"resize",a),ga(b,"destroy",function(){oa(c,"resize",a)}),a(),b.invertGroups=a)},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({visibility:c,zIndex:d||.1}).add(e));f[g?"attr":"animate"](this.getPlotBox());
return f},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,c,d=a.options,e=(c=d.animation)&&!!a.animate&&b.renderer.isSVG&&k(c.duration,500)||0,f=a.visible?"visible":"hidden",g=d.zIndex,h=a.hasRendered,l=b.seriesGroup;c=a.plotGroup("group","series",f,g,l);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,l);e&&a.animate(!0);
a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.clipNeg());z(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();b.inverted&&a.invertGroups();!1===d.clip||a.sharedClipKey||h||c.clip(b.clipRect);e&&a.animate();h||(e?a.animationTimeout=setTimeout(function(){a.afterAnimate()},e):a.afterAnimate());a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=
this.chart,b=this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:k(d&&d.left,a.plotLeft),translateY:k(e&&e.top,a.plotTop)}));this.translate();this.setTooltipPoints&&this.setTooltipPoints(!0);this.render();b&&ea(this,"updatedData")}};la.prototype={destroy:function(){da(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?s(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):
this.label=this.axis.chart.renderer.text(c,null,null,b.useHTML).css(b.style).attr({align:this.textAlign,rotation:b.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=this.isNegative,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=fa(g-c),h=d.xAxis[0].translate(this.x)+a,l=d.plotHeight,f={x:e?f?g:g-c:h,y:e?l-h-b:f?l-g-c:l-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e[!1===this.options.crop||
d.isInsidePlot(f.x,f.y)?"show":"hide"](!0)}};xa.prototype.buildStacks=function(){var a=this.series,b=k(this.options.reversedStacks,!0),c=a.length;if(!this.isXAxis){for(this.usePercentage=!1;c--;)a[b?c:a.length-c-1].setStackedPoints();if(this.usePercentage)for(c=0;c<a.length;c++)a[c].setPercentStacks()}};xa.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,c=this.stacks,d,e,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=b.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());
f.translate(a.plotLeft,a.plotTop);for(d in c)for(e in a=c[d],a)a[e].render(f)};V.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var a=this.processedXData,b=this.processedYData,c=[],d=b.length,e=this.options,f=e.threshold,g=e.stack,e=e.stacking,h=this.stackKey,l="-"+h,n=this.negStacks,r=this.yAxis,v=r.stacks,y=r.oldStacks,w,k,s,p,m,B;for(p=0;p<d;p++)m=a[p],B=b[p],s=this.index+","+p,k=(w=n&&B<f)?l:h,v[k]||(v[k]=
{}),v[k][m]||(y[k]&&y[k][m]?(v[k][m]=y[k][m],v[k][m].total=null):v[k][m]=new la(r,r.options.stackLabels,w,m,g)),k=v[k][m],k.points[s]=[k.cum||0],"percent"===e?(w=w?h:l,n&&v[w]&&v[w][m]?(w=v[w][m],k.total=w.total=I(w.total,k.total)+fa(B)||0):k.total=qa(k.total+(fa(B)||0))):k.total=qa(k.total+(B||0)),k.cum=(k.cum||0)+(B||0),k.points[s].push(k.cum),c[p]=k.cum;"percent"===e&&(r.usePercentage=!0);this.stackedYData=c;r.oldStacks={}}};V.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,
d=a.processedXData;z([b,"-"+b],function(b){for(var f=d.length,g,h;f--;)if(g=d[f],g=(h=c[b]&&c[b][g])&&h.points[a.index+","+f])h=h.total?100/h.total:0,g[0]=qa(g[0]*h),g[1]=qa(g[1]*h),a.stackedYData[f]=g[1]})};var Ob=Q(V);N.line=Ob;X.area=u(Ta,{threshold:0});var Db=Q(V,{type:"area",getSegments:function(){var a=this,b=[],c=[],d=[],e=this.xAxis,f=this.yAxis,g=f.stacks[this.stackKey],h={},l,n,r=this.points,v=this.options.connectNulls,k,w;if(this.options.stacking&&!this.cropped){for(k=0;k<r.length;k++)h[r[k].x]=
r[k];for(w in g)null!==g[w].total&&d.push(+w);d.sort(function(a,b){return a-b});z(d,function(b){var d=0,r;if(!v||h[b]&&null!==h[b].y)if(h[b])c.push(h[b]);else{for(k=a.index;k<=f.series.length;k++)if(r=g[b].points[k+","+b]){d=r[1];break}l=e.translate(b);n=f.toPixels(d,!0);c.push({y:null,plotX:l,clientX:l,plotY:n,yBottom:n,onMouseOver:ma})}});c.length&&b.push(c)}else V.prototype.getSegments.call(this),b=this.segments;this.segments=b},getSegmentPath:function(a){var b=V.prototype.getSegmentPath.call(this,
a),c=[].concat(b),d,e=this.options;d=b.length;var f=this.yAxis.getThreshold(e.threshold),g;3===d&&c.push("L",b[1],b[2]);if(e.stacking&&!this.closedStacks)for(d=a.length-1;0<=d;d--)g=k(a[d].yBottom,f),d<a.length-1&&e.step&&c.push(a[d+1].plotX,g),c.push(a[d].plotX,g);else this.closeSegment(c,a,f);this.areaPath=this.areaPath.concat(c);return b},closeSegment:function(a,b,c){a.push("L",b[b.length-1].plotX,c,"L",b[0].plotX,c)},drawGraph:function(){this.areaPath=[];V.prototype.drawGraph.apply(this);var a=
this,b=this.areaPath,c=this.options,d=c.negativeColor,e=c.negativeFillColor,f=[["area",this.color,c.fillColor]];(d||e)&&f.push(["areaNeg",d,e]);z(f,function(d){var e=d[0],f=a[e];f?f.animate({d:b}):a[e]=a.chart.renderer.path(b).attr({fill:k(d[2],Fa(d[1]).setOpacity(k(c.fillOpacity,.75)).get()),zIndex:0}).add(a.group)})},drawLegendSymbol:Ua.drawRectangle});N.area=Db;X.spline=u(Ta);var Eb=Q(V,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,l,n,r;if(f&&g){a=f.plotY;
n=g.plotX;var g=g.plotY,k;h=(1.5*d+f.plotX)/2.5;l=(1.5*e+a)/2.5;n=(1.5*d+n)/2.5;r=(1.5*e+g)/2.5;k=(r-l)*(n-d)/(n-h)+e-r;l+=k;r+=k;l>a&&l>e?(l=I(a,e),r=2*e-l):l<a&&l<e&&(l=$(a,e),r=2*e-l);r>g&&r>e?(r=I(g,e),l=2*e-r):r<g&&r<e&&(r=$(g,e),l=2*e-r);b.rightContX=n;b.rightContY=r}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,l||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});N.spline=Eb;X.areaspline=u(X.area);var nb=Db.prototype,Pb=Q(Eb,{type:"areaspline",closedStacks:!0,getSegmentPath:nb.getSegmentPath,
closeSegment:nb.closeSegment,drawGraph:nb.drawGraph,drawLegendSymbol:Ua.drawRectangle});N.areaspline=Pb;X.column=u(Ta,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:!1,tooltip:{distance:6},threshold:0});var ob=Q(V,{type:"column",pointAttrToOptions:{stroke:"borderColor",
fill:"color",r:"borderRadius"},cropShoulder:0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){V.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&z(b.series,function(b){b.type===a.type&&(b.isDirty=!0)})},getColumnMetrics:function(){var a=this,b=a.options,c=a.xAxis,d=a.yAxis,e=c.reversed,f,g={},h,l=0;!1===b.grouping?l=1:z(a.chart.series,function(b){var c=b.options,e=b.yAxis;b.type===a.type&&b.visible&&d.len===e.len&&d.pos===e.pos&&(c.stacking?(f=b.stackKey,
g[f]===F&&(g[f]=l++),h=g[f]):!1!==c.grouping&&(h=l++),b.columnIndex=h)});var c=$(fa(c.transA)*(c.ordinalSlope||b.pointRange||c.closestPointRange||c.tickInterval||1),c.len),n=c*b.groupPadding,r=(c-2*n)/l,v=b.pointWidth,b=t(v)?(r-v)/2:r*b.pointPadding,v=k(v,r-2*b);return a.columnMetrics={width:v,offset:b+(n+((e?l-(a.columnIndex||0):a.columnIndex)||0)*r-c/2)*(e?-1:1)}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=k(c.borderWidth,a.activePointCount>.5*a.xAxis.len?0:1),e=a.yAxis,
f=a.translatedThreshold=e.getThreshold(c.threshold),g=k(c.minPointLength,5),h=a.getColumnMetrics(),l=h.width,n=a.barW=I(l,1+2*d),r=a.pointXOffset=h.offset,v=-(d%2?.5:0),y=d%2?.5:1;b.renderer.isVML&&b.inverted&&(y+=1);c.pointPadding&&(n=Ga(n));V.prototype.translate.apply(a);z(a.points,function(c){var d=k(c.yBottom,f),h=$(I(-999-d,c.plotY),e.len+999+d),s=c.plotX+r,p=n,m=$(h,d),B;B=I(h,d)-m;fa(B)<g&&g&&(B=g,m=L(fa(m-f)>g?d-g:f-(e.translate(c.y,0,1,0,1)<=f?g:0)));c.barX=s;c.pointWidth=l;c.tooltipPos=
b.inverted?[e.len-h,a.xAxis.len-s-p/2]:[s+p/2,h+e.pos-b.plotTop];p=L(s+p)+v;s=L(s)+v;p-=s;d=.5>fa(m);B=L(m+B)+y;m=L(m)+y;B-=m;d&&(--m,B+=1);c.shapeType="rect";c.shapeArgs={x:s,y:m,width:p,height:B}})},getSymbol:ma,drawLegendSymbol:Ua.drawRectangle,drawGraph:ma,drawPoints:function(){var a=this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;z(a.points,function(h){var l=h.plotY,n=h.graphic;l===F||isNaN(l)||null===h.y?n&&(h.graphic=n.destroy()):(f=h.shapeArgs,l=t(a.borderWidth)?{"stroke-width":a.borderWidth}:
{},g=h.pointAttr[h.selected?"select":""]||a.pointAttr[""],n?(Sa(n),n.attr(l)[b.pointCount<e?"animate":"attr"](u(f))):h.graphic=d[h.shapeType](f).attr(g).attr(l).add(a.group).shadow(c.shadow,null,c.stacking&&!c.borderRadius))})},animate:function(a){var b=this.yAxis,c=this.options,d=this.chart.inverted,e={};pa&&(a?(e.scaleY=.001,a=$(b.pos+b.len,I(b.pos,b.toPixels(c.threshold))),d?e.translateX=a-b.len:e.translateY=a,this.group.attr(e)):(e.scaleY=1,e[d?"translateX":"translateY"]=b.pos,this.group.animate(e,
this.options.animation),this.animate=null))},remove:function(){var a=this,b=a.chart;b.hasRendered&&z(b.series,function(b){b.type===a.type&&(b.isDirty=!0)});V.prototype.remove.apply(a,arguments)}});N.column=ob;X.bar=u(X.column);var Qb=Q(ob,{type:"bar",inverted:!0});N.bar=Qb;X.scatter=u(Ta,{lineWidth:0,tooltip:{headerFormat:'<span style="color:{series.color}">\u25cf</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"},stickyTracking:!1});
var Fb=Q(V,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,singularTooltips:!0,drawGraph:function(){this.options.lineWidth&&V.prototype.drawGraph.call(this)}});N.scatter=Fb;X.pie=u(Ta,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,
slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});var pb={type:"pie",isCartesian:!1,pointClass:Q(Aa,{init:function(){Aa.prototype.init.apply(this,arguments);var a=this,b;0>a.y&&(a.y=null);q(a,{visible:!1!==a.visible,name:k(a.name,"Slice")});b=function(b){a.slice("select"===b.type)};ga(a,"select",b);ga(a,"unselect",b);return a},setVisible:function(a){var b=this,c=b.series,d=c.chart;b.visible=b.options.visible=a=a===F?!b.visible:a;c.options.data[Ja(b,
c.data)]=b.options;z(["graphic","dataLabel","connector","shadowGroup"],function(c){if(b[c])b[c][a?"show":"hide"](!0)});b.legendItem&&d.legend.colorizeItem(b,a);!c.isDirty&&c.options.ignoreHiddenPoint&&(c.isDirty=!0,d.redraw())},slice:function(a,b,c){var d=this.series;ta=k(c,d.chart.animation);k(b,!0);this.sliced=this.options.sliced=a=t(a)?a:!this.sliced;d.options.data[Ja(this,d.data)]=this.options;a=a?this.slicedTranslation:{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)},
haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},singularTooltips:!0,getColor:ma,animate:function(a){var b=this,c=b.points,d=b.startAngleRad;
a||(z(c,function(a){var c=a.graphic;a=a.shapeArgs;c&&(c.attr({r:b.center[3]/2,start:d,end:d}),c.animate({r:a.r,start:a.start,end:a.end},b.options.animation))}),b.animate=null)},setData:function(a,b,c,d){V.prototype.setData.call(this,a,!1,c,d);this.processData();this.generatePoints();k(b,!0)&&this.chart.redraw(c)},generatePoints:function(){var a,b=0,c,d,e,f=this.options.ignoreHiddenPoint;V.prototype.generatePoints.call(this);c=this.points;d=c.length;for(a=0;a<d;a++)e=c[a],b+=f&&!e.visible?0:e.y;this.total=
b;for(a=0;a<d;a++)e=c[a],e.percentage=0<b?e.y/b*100:0,e.total=b},translate:function(a){this.generatePoints();var b=0,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g,h,l=c.startAngle||0,n=this.startAngleRad=za/180*(l-90),l=(this.endAngleRad=za/180*(k(c.endAngle,l+360)-90))-n,r=this.points,v=c.dataLabels.distance,c=c.ignoreHiddenPoint,s,w=r.length,m;a||(this.center=a=this.getCenter());this.getX=function(b,c){h=ca.asin($((b-a[1])/(a[2]/2+v),1));return a[0]+(c?-1:1)*ya(h)*(a[2]/2+v)};for(s=0;s<
w;s++){m=r[s];f=n+b*l;if(!c||m.visible)b+=m.percentage/100;g=n+b*l;m.shapeType="arc";m.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:L(1E3*f)/1E3,end:L(1E3*g)/1E3};h=(g+f)/2;h>1.5*za?h-=2*za:h<-za/2&&(h+=2*za);m.slicedTranslation={translateX:L(ya(h)*d),translateY:L(Da(h)*d)};f=ya(h)*a[2]/2;g=Da(h)*a[2]/2;m.tooltipPos=[a[0]+.7*f,a[1]+.7*g];m.half=h<-za/2||h>za/2?1:0;m.angle=h;e=$(e,v/2);m.labelPos=[a[0]+f+ya(h)*v,a[1]+g+Da(h)*v,a[0]+f+ya(h)*e,a[1]+g+Da(h)*e,a[0]+f,a[1]+g,0>v?"center":m.half?
"right":"left",h]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g;e&&!a.shadowGroup&&(a.shadowGroup=b.g("shadow").add(a.group));z(a.points,function(h){d=h.graphic;g=h.shapeArgs;f=h.shadowGroup;e&&!f&&(f=h.shadowGroup=b.g("shadow").add(a.shadowGroup));c=h.sliced?h.slicedTranslation:{translateX:0,translateY:0};f&&f.attr(c);d?d.animate(q(g,c)):h.graphic=d=b[h.shapeType](g).setRadialReference(a.center).attr(h.pointAttr[h.selected?"select":""]).attr({"stroke-linejoin":"round"}).attr(c).add(a.group).shadow(e,
f);void 0!==h.visible&&h.setVisible(h.visible)})},sortByAngle:function(a,b){a.sort(function(a,d){return void 0!==a.angle&&(d.angle-a.angle)*b})},drawLegendSymbol:Ua.drawRectangle,getCenter:Cb.getCenter,getSymbol:ma},pb=Q(V,pb);N.pie=pb;V.prototype.drawDataLabels=function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,h=a.hasRendered||0,l,n;if(d.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(d),n=a.plotGroup("dataLabelsGroup","data-labels",d.defer?"hidden":"visible",
d.zIndex||6),k(d.defer,!0)&&(n.attr({opacity:+h}),h||ga(a,"afterAnimate",function(){a.visible&&n.show();n[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,z(e,function(b){var e,h=b.dataLabel,w,m,p=b.connector,B=!0;f=b.options&&b.options.dataLabels;e=k(f&&f.enabled,g.enabled);if(h&&!e)b.dataLabel=h.destroy();else if(e){d=u(g,f);e=d.rotation;w=b.getLabelConfig();l=d.format?s(d.format,w):d.formatter.call(w,d);d.style.color=k(d.color,d.style.color,a.color,"black");if(h)t(l)?(h.attr({text:l}),
B=!1):(b.dataLabel=h=h.destroy(),p&&(b.connector=p.destroy()));else if(t(l)){h={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:e,padding:d.padding,zIndex:1};for(m in h)h[m]===F&&delete h[m];h=b.dataLabel=a.chart.renderer[e?"text":"label"](l,0,-999,null,null,null,d.useHTML).attr(h).css(q(d.style,c&&{cursor:c})).add(n).shadow(d.shadow)}h&&a.alignDataLabel(b,h,d,null,B)}})};V.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,
h=k(a.plotX,-999),l=k(a.plotY,-999),n=b.getBBox();if(a=this.visible&&(a.series.forceDL||f.isInsidePlot(h,L(l),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g)))d=q({x:g?f.plotWidth-l:h,y:L(g?f.plotHeight-h:l),width:0,height:0},d),q(c,{width:n.width,height:n.height}),c.rotation?b[e?"attr":"animate"]({x:d.x+c.x+d.width/2,y:d.y+c.y+d.height/2}).attr({align:c.align}):(b.align(c,null,d),g=b.alignAttr,"justify"===k(c.overflow,"justify")?this.justifyDataLabel(b,c,g,n,d,e):k(c.crop,!0)&&(a=f.isInsidePlot(g.x,
g.y)&&f.isInsidePlot(g.x+n.width,g.y+n.height)));a||(b.attr({y:-999}),b.placed=!1)};V.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,h=b.align,l=b.verticalAlign,n,r;n=c.x;0>n&&("right"===h?b.align="left":b.x=-n,r=!0);n=c.x+d.width;n>g.plotWidth&&("left"===h?b.align="right":b.x=g.plotWidth-n,r=!0);n=c.y;0>n&&("bottom"===l?b.verticalAlign="top":b.y=-n,r=!0);n=c.y+d.height;n>g.plotHeight&&("top"===l?b.verticalAlign="bottom":b.y=g.plotHeight-n,r=!0);r&&(a.placed=!f,a.align(b,null,e))};
N.pie&&(N.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=k(e.connectorPadding,10),g=k(e.connectorWidth,1),h=d.plotWidth,l=d.plotHeight,n,r,v=k(e.softConnector,!0),s=e.distance,m=a.center,p=m[2]/2,B=m[1],A=0<s,t,q,x,J=[[],[]],O,K,T,U,G,u=[0,0,0,0],D=function(a,b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){V.prototype.drawDataLabels.apply(a);z(b,function(a){a.dataLabel&&a.visible&&J[a.half].push(a)});for(U=2;U--;){var F=[],H=[],da=
J[U],Q=da.length,M;if(Q){a.sortByAngle(da,U-.5);for(G=b=0;!b&&da[G];)b=da[G]&&da[G].dataLabel&&(da[G].dataLabel.getBBox().height||21),G++;if(0<s){q=$(B+p+s,d.plotHeight);for(G=I(0,B-p-s);G<=q;G+=b)F.push(G);q=F.length;if(Q>q){c=[].concat(da);c.sort(D);for(G=Q;G--;)c[G].rank=G;for(G=Q;G--;)da[G].rank>=q&&da.splice(G,1);Q=da.length}for(G=0;G<Q;G++){c=da[G];x=c.labelPos;c=9999;var N,E;for(E=0;E<q;E++)N=fa(F[E]-x[1]),N<c&&(c=N,M=E);if(M<G&&null!==F[G])M=G;else for(q<Q-G+M&&null!==F[G]&&(M=q-Q+G);null===
F[M];)M++;H.push({i:M,y:F[M]});F[M]=null}H.sort(D)}for(G=0;G<Q;G++){c=da[G];x=c.labelPos;t=c.dataLabel;T=!1===c.visible?"hidden":"visible";c=x[1];if(0<s){if(q=H.pop(),M=q.i,K=q.y,c>K&&null!==F[M+1]||c<K&&null!==F[M-1])K=$(I(0,c),d.plotHeight)}else K=c;O=e.justify?m[0]+(U?-1:1)*(p+s):a.getX(K===B-p-s||K===B+p+s?c:K,U);t._attr={visibility:T,align:x[6]};t._pos={x:O+e.x+({left:f,right:-f}[x[6]]||0),y:K+e.y-10};t.connX=O;t.connY=K;null===this.options.size&&(q=t.width,O-q<f?u[3]=I(L(q-O+f),u[3]):O+q>h-
f&&(u[1]=I(L(O+q-h+f),u[1])),0>K-b/2?u[0]=I(L(-K+b/2),u[0]):K+b/2>l&&(u[2]=I(L(K+b/2-l),u[2])))}}}if(0===P(u)||this.verifyDataLabelOverflow(u))this.placeDataLabels(),A&&g&&z(this.points,function(b){n=b.connector;x=b.labelPos;(t=b.dataLabel)&&t._pos?(T=t._attr.visibility,O=t.connX,K=t.connY,r=v?["M",O+("left"===x[6]?5:-5),K,"C",O,K,2*x[2]-x[4],2*x[3]-x[5],x[2],x[3],"L",x[4],x[5]]:["M",O+("left"===x[6]?5:-5),K,"L",x[2],x[3],"L",x[4],x[5]],n?(n.animate({d:r}),n.attr("visibility",T)):b.connector=n=a.chart.renderer.path(r).attr({"stroke-width":g,
stroke:e.connectorColor||b.color||"#606060",visibility:T}).add(a.dataLabelsGroup)):n&&(b.connector=n.destroy())})}},N.pie.prototype.placeDataLabels=function(){z(this.points,function(a){a=a.dataLabel;var b;a&&((b=a._pos)?(a.attr(a._attr),a[a.moved?"animate":"attr"](b),a.moved=!0):a&&a.attr({y:-999}))})},N.pie.prototype.alignDataLabel=ma,N.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c=c.minSize||80,f;null!==d[0]?e=I(b[2]-I(a[1],a[3]),c):(e=I(b[2]-
a[1]-a[3],c),b[0]+=(a[3]-a[1])/2);null!==d[1]?e=I($(e,b[2]-I(a[0],a[2])),c):(e=I($(e,b[2]-a[0]-a[2]),c),b[1]+=(a[0]-a[2])/2);e<b[2]?(b[2]=e,this.translate(b),z(this.points,function(a){a.dataLabel&&(a.dataLabel._pos=null)}),this.drawDataLabels&&this.drawDataLabels()):f=!0;return f});N.column&&(N.column.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=a.dlBox||a.shapeArgs,l=a.below||a.plotY>k(this.translatedThreshold,f.plotSizeY),n=k(c.inside,!!this.options.stacking);h&&
(d=u(h),g&&(d={x:f.plotWidth-d.y-d.height,y:f.plotHeight-d.x-d.width,width:d.height,height:d.width}),n||(g?(d.x+=l?0:d.width,d.width=0):(d.y+=l?d.height:0,d.height=0)));c.align=k(c.align,!g||n?"center":l?"right":"left");c.verticalAlign=k(c.verticalAlign,g||n?"middle":l?"top":"bottom");V.prototype.alignDataLabel.call(this,a,b,c,d,e)});var Ma=ja.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(c){var d=c.target,e;if(b.hoverSeries!==
a)a.onMouseOver();for(;d&&!e;)e=d.point,d=d.parentNode;if(e!==F&&e!==b.hoverPoint)e.onMouseOver(c)};z(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.element.point=a)});a._hasTracking||(z(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),Pa))a[b].on("touchstart",f)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?
a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,l=f.options.tooltip.snap,n=a.tracker,r=b.cursor,k=r&&{cursor:r},r=a.singlePoints,s,m=function(){if(f.hoverSeries!==a)a.onMouseOver()},p="rgba(192,192,192,"+(pa?1E-4:.002)+")";if(e&&!c)for(s=e+1;s--;)"M"===d[s]&&d.splice(s+1,0,d[s+1]-l,d[s+2],"L"),(s&&"M"===d[s]||s===e)&&d.splice(s,0,"L",d[s-2]+l,d[s-1]);for(s=0;s<r.length;s++)e=r[s],d.push("M",e.plotX-l,e.plotY,"L",e.plotX+l,e.plotY);n?n.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",
visibility:a.visible?"visible":"hidden",stroke:p,fill:c?p:"none","stroke-width":b.lineWidth+(c?0:2*l),zIndex:2}).add(a.group),z([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(k);if(Pa)a.on("touchstart",m)}))}};N.column&&(ob.prototype.drawTracker=Ma.drawTrackerPoint);N.pie&&(N.pie.prototype.drawTracker=Ma.drawTrackerPoint);N.scatter&&(Fb.prototype.drawTracker=Ma.drawTrackerPoint);q(cb.prototype,{setItemEvents:function(a,
b,c,d,e){var f=this;(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");b.css(f.options.itemHoverStyle)}).on("mouseout",function(){b.css(a.visible?d:e);a.setState()}).on("click",function(b){var c=function(){a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):ea(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=M("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);
ga(a.checkbox,"click",function(b){ea(a,"checkboxClick",{checked:b.target.checked},function(){a.select()})})}});ha.legend.itemStyle.cursor="pointer";q(na.prototype,{showResetZoom:function(){var a=this,b=ha.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},zoomOut:function(){var a=
this;ea(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c=this.pointer,d=!1,e;!a||a.resetSelection?z(this.axes,function(a){b=a.zoom()}):z(a.xAxis.concat(a.yAxis),function(a){var e=a.axis,h=e.isXAxis;if(c[h?"zoomX":"zoomY"]||c[h?"pinchX":"pinchY"])b=e.zoom(a.min,a.max),e.displayBtn&&(d=!0)});e=this.resetZoomButton;d&&!e?this.showResetZoom():!d&&R(e)&&(this.resetZoomButton=e.destroy());b&&this.redraw(k(this.options.chart.animation,a&&a.animation,100>this.pointCount))},
pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&z(d,function(a){a.setState()});z("xy"===b?[1,0]:[1],function(b){var d=a[b?"chartX":"chartY"],h=c[b?"xAxis":"yAxis"][0],l=c[b?"mouseDownX":"mouseDownY"],n=(h.pointRange||0)/2,r=h.getExtremes(),k=h.toValue(l-d,!0)+n,l=h.toValue(l+c[b?"plotWidth":"plotHeight"]-d,!0)-n;h.series.length&&k>$(r.dataMin,r.min)&&l<I(r.dataMax,r.max)&&(h.setExtremes(k,l,!1,!1,{trigger:"pan"}),e=!0);c[b?"mouseDownX":"mouseDownY"]=d});e&&c.redraw(!1);D(c.container,{cursor:"move"})}});
q(Aa.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart;a=k(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[Ja(c,d.data)]=c.options;c.setState(a&&"select");b||z(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[Ja(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series,c=b.chart,d=c.tooltip,e=c.hoverPoint;
if(e&&e!==this)e.onMouseOut();this.firePointEvent("mouseOver");!d||d.shared&&!b.noSharedTooltip||d.refresh(this,a);this.setState("hover");c.hoverPoint=this},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;this.firePointEvent("mouseOut");b&&-1!==Ja(this,b)||(this.setState(),a.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var a=u(this.series.options.point,this.options).events,b;this.events=a;for(b in a)ga(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a,
b){var c=this.plotX,d=this.plotY,e=this.series,f=e.options.states,g=X[e.type].marker&&e.options.marker,h=g&&!g.enabled,l=g&&g.states[a],n=l&&!1===l.enabled,r=e.stateMarkerGraphic,k=this.marker||{},s=e.chart,m=e.halo,p;a=a||"";p=this.pointAttr[a]||e.pointAttr[a];if(!(a===this.state&&!b||this.selected&&"select"!==a||f[a]&&!1===f[a].enabled||a&&(n||h&&!1===l.enabled)||a&&k.states&&k.states[a]&&!1===k.states[a].enabled)){if(this.graphic)g=g&&this.graphic.symbolName&&p.r,this.graphic.attr(u(p,g?{x:c-g,
y:d-g,width:2*g,height:2*g}:{})),r&&r.hide();else{if(a&&l)if(g=l.radius,k=k.symbol||e.symbol,r&&r.currentSymbol!==k&&(r=r.destroy()),r)r[b?"animate":"attr"]({x:c-g,y:d-g});else k&&(e.stateMarkerGraphic=r=s.renderer.symbol(k,c-g,d-g,2*g,2*g).attr(p).add(e.markerGroup),r.currentSymbol=k);if(r)r[a&&s.isInsidePlot(c,d,s.inverted)?"show":"hide"]()}(c=f[a]&&f[a].halo)&&c.size?(m||(e.halo=m=s.renderer.path().add(e.seriesGroup)),m.attr(q({fill:Fa(this.color||e.color).setOpacity(c.opacity).get()},c.attributes))[b?
"animate":"attr"]({d:this.haloPath(c.size)})):m&&m.attr({d:[]});this.state=a}},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted;return c.renderer.symbols.circle(d.translateX+(e?b.yAxis.len-this.plotY:this.plotX)-a,d.translateY+(e?b.xAxis.len-this.plotX:this.plotY)-a,2*a,2*a)}});q(V.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&ea(this,"mouseOver");this.setState("hover");a.hoverSeries=this},
onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&&ea(this,"mouseOut");!c||a.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState();b.hoverSeries=null},setState:function(a){var b=this.options,c=this.graph,d=this.graphNeg,e=b.states,b=b.lineWidth;a=a||"";this.state!==a&&(this.state=a,e[a]&&!1===e[a].enabled||(a&&(b=e[a].lineWidth||b+(e[a].lineWidthPlus||0)),c&&!c.dashstyle&&(a={"stroke-width":b},c.attr(a),
d&&d.attr(a))))},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,h=c.visible;f=(c.visible=a=c.userOptions.visible=a===F?!h:a)?"show":"hide";z(["group","dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&z(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});z(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&
(d.isDirtyBox=!0);!1!==b&&d.redraw();ea(c,f)},setTooltipPoints:function(a){var b=[],c,d,e=this.xAxis,f=e&&e.getExtremes(),g=e?e.tooltipLen||e.len:this.chart.plotSizeX,h,l,n=[];if(!1!==this.options.enableMouseTracking&&!this.singularTooltips){a&&(this.tooltipPoints=null);z(this.segments||this.points,function(a){b=b.concat(a)});e&&e.reversed&&(b=b.reverse());this.orderTooltipPoints&&this.orderTooltipPoints(b);a=b.length;for(l=0;l<a;l++)if(e=b[l],c=e.x,c>=f.min&&c<=f.max)for(h=b[l+1],c=d===F?0:d+1,d=
b[l+1]?$(I(0,ba((e.clientX+(h?h.wrappedClientX||h.clientX:g))/2)),g):g;0<=c&&c<=d;)n[c++]=e;this.tooltipPoints=n}},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===F?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);ea(this,a?"select":"unselect")},drawTracker:Ma.drawTrackerGraph});q(Oa.prototype,{init:function(a,b,c){var d=this,e=d.defaultOptions;d.chart=b;b.angular&&(e.background={});d.options=a=u(e,a);(a=a.background)&&z([].concat(H(a)).reverse(),
function(a){var b=a.backgroundColor;a=u(d.defaultBackgroundOptions,a);b&&(a.backgroundColor=b);a.color=a.backgroundColor;c.options.plotBands.unshift(a)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var db=xa.prototype,qb=aa.prototype,Rb={getOffset:ma,
redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:ma,setCategories:ma,setTitle:ma},Gb={isRadial:!0,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},maxPadding:0,minPadding:0,showLastLabel:!1,
tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(a){a=this.options=u(this.defaultOptions,this.defaultRadialOptions,a);a.plotBands||(a.plotBands=[])},getOffset:function(){db.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center=Cb.getCenter.call(this.pane)},getLinePath:function(a,b){var c=this.center;b=k(b,c[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+
c[0],this.top+c[1],b,b,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){db.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(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)},setAxisSize:function(){db.setAxisSize.call(this);
this.isRadial&&(this.center=this.pane.center=ja.CenteredSeriesMixin.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*k(this.sector,1)/2)},getPosition:function(a,b){return this.postTranslate(this.isCircular?this.translate(a):0,k(this.isCircular?b:this.translate(a),this.center[2]/2)-this.offset)},postTranslate:function(a,b){var c=this.chart,d=this.center;a=this.startAngleRad+a;return{x:c.plotLeft+d[0]+Math.cos(a)*
b,y:c.plotTop+d[1]+Math.sin(a)*b}},getPlotBandPath:function(a,b,c){var d=this.center,e=this.startAngleRad,f=d[2]/2,g=[k(c.outerRadius,"100%"),c.innerRadius,k(c.thickness,10)],h=/%$/,l,n=this.isCircular;"polygon"===this.options.gridLineInterpolation?d=this.getPlotLinePath(a).concat(this.getPlotLinePath(b,!0)):(n||(g[0]=this.translate(a),g[1]=this.translate(b)),g=Ra(g,function(a){h.test(a)&&(a=E(a,10)*f/100);return a}),"circle"!==c.shape&&n?(a=e+this.translate(a),b=e+this.translate(b)):(a=-Math.PI/
2,b=1.5*Math.PI,l=!0),d=this.chart.renderer.symbols.arc(this.left+d[0],this.top+d[1],g[0],g[0],{start:a,end:b,innerR:k(g[1],g[0]-g[2]),open:l}));return d},getPlotLinePath:function(a,b){var c=this,d=c.center,e=c.chart,f=c.getPosition(a),g,h,l;c.isCircular?l=["M",d[0]+e.plotLeft,d[1]+e.plotTop,"L",f.x,f.y]:"circle"===c.options.gridLineInterpolation?(a=c.translate(a))&&(l=c.getLinePath(0,a)):(z(e.xAxis,function(a){a.pane===c.pane&&(g=a)}),l=[],a=c.translate(a),d=g.tickPositions,g.autoConnect&&(d=d.concat([d[0]])),
b&&(d=[].concat(d).reverse()),z(d,function(b,c){h=g.getPosition(b,a);l.push(c?"L":"M",h.x,h.y)}));return l},getTitlePosition:function(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:.5,middle:.25,low:0}[c.align]*a[2]+(c.y||0)}}};B(db,"init",function(a,b,c){var d=b.angular,e=b.polar,f=c.isX,g=d&&f,h,l;l=b.options;var n=c.pane||0;if(d){if(q(this,g?Rb:Gb),h=!f)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else e&&(q(this,Gb),this.defaultRadialOptions=
(h=f)?this.defaultRadialXOptions:u(this.defaultYAxisOptions,this.defaultRadialYOptions));a.call(this,b,c);g||!d&&!e||(a=this.options,b.panes||(b.panes=[]),this.pane=n=b.panes[n]=b.panes[n]||new Oa(H(l.pane)[n],b,this),n=n.options,b.inverted=!1,l.chart.zoomType=null,this.startAngleRad=b=(n.startAngle-90)*Math.PI/180,this.endAngleRad=l=(k(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=a.offset||0,(this.isCircular=h)&&c.max===F&&l-b===2*Math.PI&&(this.autoConnect=!0))});B(qb,"getPosition",
function(a,b,c,d,e){var f=this.axis;return f.getPosition?f.getPosition(c):a.call(this,b,c,d,e)});B(qb,"getLabelPosition",function(a,b,c,d,e,f,g,h,l){var n=this.axis,r=f.y,s=f.align,m=(n.translate(this.pos)+n.startAngleRad+Math.PI/2)/Math.PI*180%360;n.isRadial?(a=n.getPosition(this.pos,n.center[2]/2+k(f.distance,-25)),"auto"===f.rotation?d.attr({rotation:m}):null===r&&(r=n.chart.renderer.fontMetrics(d.styles.fontSize).b-d.getBBox().height/2),null===s&&(s=n.isCircular?20<m&&160>m?"left":200<m&&340>
m?"right":"center":"center",d.attr({align:s})),a.x+=f.x,a.y+=r):a=a.call(this,b,c,d,e,f,g,h,l);return a});B(qb,"getMarkPath",function(a,b,c,d,e,f,g){var h=this.axis;h.isRadial?(a=h.getPosition(this.pos,h.center[2]/2+d),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,d,e,f,g);return b});X.arearange=u(X.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,
verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}});N.arearange=Q(N.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",getSegments:function(){var a=this;z(a.points,function(b){a.options.connectNulls||null!==b.low&&null!==b.high?null===b.low&&null!==b.high&&(b.y=b.high):b.y=null});V.prototype.getSegments.call(this)},translate:function(){var a=this.yAxis;N.area.prototype.translate.apply(this);z(this.points,function(b){var c=
b.low,d=b.high,e=b.plotY;null===d&&null===c?b.y=null:null===c?(b.plotLow=b.plotY=null,b.plotHigh=a.translate(d,0,1,0,1)):null===d?(b.plotLow=e,b.plotHigh=null):(b.plotLow=e,b.plotHigh=a.translate(d,0,1,0,1))})},getSegmentPath:function(a){var b,c=[],d=a.length,e=V.prototype.getSegmentPath,f,g;g=this.options;var h=g.step;for(b=HighchartsAdapter.grep(a,function(a){return null!==a.plotLow});d--;)f=a[d],null!==f.plotHigh&&c.push({plotX:f.plotX,plotY:f.plotHigh});a=e.call(this,b);h&&(!0===h&&(h="left"),
g.step={left:"right",center:"center",right:"left"}[h]);c=e.call(this,c);g.step=h;g=[].concat(a,c);c[0]="L";this.areaPath=this.areaPath.concat(a,c);return g},drawDataLabels:function(){var a=this.data,b=a.length,c,d=[],e=V.prototype,f=this.options.dataLabels,g=f.align,h,l=this.chart.inverted;if(f.enabled||this._hasPointLabels){for(c=b;c--;)h=a[c],h.y=h.high,h._plotY=h.plotY,h.plotY=h.plotHigh,d[c]=h.dataLabel,h.dataLabel=h.dataLabelUpper,h.below=!1,l?(g||(f.align="left"),f.x=f.xHigh):f.y=f.yHigh;e.drawDataLabels&&
e.drawDataLabels.apply(this,arguments);for(c=b;c--;)h=a[c],h.dataLabelUpper=h.dataLabel,h.dataLabel=d[c],h.y=h.low,h.plotY=h._plotY,h.below=!0,l?(g||(f.align="right"),f.x=f.xLow):f.y=f.yLow;e.drawDataLabels&&e.drawDataLabels.apply(this,arguments)}f.align=g},alignDataLabel:function(){N.column.prototype.alignDataLabel.apply(this,arguments)},getSymbol:ma,drawPoints:ma});X.areasplinerange=u(X.arearange);N.areasplinerange=Q(N.arearange,{type:"areasplinerange",getPointSpline:N.spline.prototype.getPointSpline});
(function(){var a=N.column.prototype;X.columnrange=u(X.column,X.arearange,{lineWidth:1,pointRange:null});N.columnrange=Q(N.arearange,{type:"columnrange",translate:function(){var b=this,c=b.yAxis,d;a.translate.apply(b);z(b.points,function(a){var f=a.shapeArgs,g=b.options.minPointLength,h;a.tooltipPos=null;a.plotHigh=d=c.translate(a.high,0,1,0,1);a.plotLow=a.plotY;h=d;a=a.plotY-d;a<g&&(g-=a,a+=g,h-=g/2);f.height=a;f.y=h})},trackerGroups:["group","dataLabelsGroup"],drawGraph:ma,pointAttrToOptions:a.pointAttrToOptions,
drawPoints:a.drawPoints,drawTracker:a.drawTracker,animate:a.animate,getColumnMetrics:a.getColumnMetrics})})();X.gauge=u(X.line,{dataLabels:{enabled:!0,defer:!1,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,crop:!1,style:{fontWeight:"bold"},verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});var Sb={type:"gauge",pointClass:Q(Aa,{setState:function(a){this.state=a}}),angular:!0,drawGraph:ma,fixedBox:!0,forceDL:!0,trackerGroups:["group","dataLabelsGroup"],
translate:function(){var a=this.yAxis,b=this.options,c=a.center;this.generatePoints();z(this.points,function(d){var e=u(b.dial,d.dial),f=E(k(e.radius,80))*c[2]/200,g=E(k(e.baseLength,70))*f/100,h=E(k(e.rearLength,10))*f/100,l=e.baseWidth||3,n=e.topWidth||1,r=b.overshoot,s=a.startAngleRad+a.translate(d.y,null,null,null,!0);r&&"number"===typeof r?(r=r/180*Math.PI,s=Math.max(a.startAngleRad-r,Math.min(a.endAngleRad+r,s))):!1===b.wrap&&(s=Math.max(a.startAngleRad,Math.min(a.endAngleRad,s)));s=180*s/Math.PI;
d.shapeType="path";d.shapeArgs={d:e.path||["M",-h,-l/2,"L",g,-l/2,f,-n/2,f,n/2,g,l/2,-h,l/2,"z"],translateX:c[0],translateY:c[1],rotation:s};d.plotX=c[0];d.plotY=c[1]})},drawPoints:function(){var a=this,b=a.yAxis.center,c=a.pivot,d=a.options,e=d.pivot,f=a.chart.renderer;z(a.points,function(b){var c=b.graphic,e=b.shapeArgs,n=e.d,r=u(d.dial,b.dial);c?(c.animate(e),e.d=n):b.graphic=f[b.shapeType](e).attr({stroke:r.borderColor||"none","stroke-width":r.borderWidth||0,fill:r.backgroundColor||"black",rotation:e.rotation}).add(a.group)});
c?c.animate({translateX:b[0],translateY:b[1]}):a.pivot=f.circle(0,0,k(e.radius,5)).attr({"stroke-width":e.borderWidth||0,stroke:e.borderColor||"silver",fill:e.backgroundColor||"black"}).translate(b[0],b[1]).add(a.group)},animate:function(a){var b=this;a||(z(b.points,function(a){var d=a.graphic;d&&(d.attr({rotation:180*b.yAxis.startAngleRad/Math.PI}),d.animate({rotation:a.shapeArgs.rotation},b.options.animation))}),b.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?
"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);V.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(a,b){V.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();k(b,!0)&&this.chart.redraw()},drawTracker:Ma&&Ma.drawTrackerPoint};N.gauge=Q(N.line,Sb);X.boxplot=u(X.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},
whiskerLength:"50%",whiskerWidth:2});N.boxplot=Q(N.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:ma,translate:function(){var a=this.yAxis,b=this.pointArrayMap;N.column.prototype.translate.apply(this);z(this.points,function(c){z(b,function(b){null!==c[b]&&(c[b+"Plot"]=a.translate(c[b],0,1,0,1))})})},drawPoints:function(){var a=
this,b=a.points,c=a.options,d=a.chart.renderer,e,f,g,h,l,n,r,s,m,p,B,A,t,q,x,J,O,K,G,P,T,U,u=!1!==a.doQuartiles,D=parseInt(a.options.whiskerLength,10)/100;z(b,function(b){m=b.graphic;T=b.shapeArgs;B={};q={};J={};U=b.color||a.color;b.plotY!==F&&(e=b.pointAttr[b.selected?"selected":""],O=T.width,K=ba(T.x),G=K+O,P=L(O/2),f=ba(u?b.q1Plot:b.lowPlot),g=ba(u?b.q3Plot:b.lowPlot),h=ba(b.highPlot),l=ba(b.lowPlot),B.stroke=b.stemColor||c.stemColor||U,B["stroke-width"]=k(b.stemWidth,c.stemWidth,c.lineWidth),
B.dashstyle=b.stemDashStyle||c.stemDashStyle,q.stroke=b.whiskerColor||c.whiskerColor||U,q["stroke-width"]=k(b.whiskerWidth,c.whiskerWidth,c.lineWidth),J.stroke=b.medianColor||c.medianColor||U,J["stroke-width"]=k(b.medianWidth,c.medianWidth,c.lineWidth),J["stroke-linecap"]="round",r=B["stroke-width"]%2/2,s=K+P+r,p=["M",s,g,"L",s,h,"M",s,f,"L",s,l],u&&(r=e["stroke-width"]%2/2,s=ba(s)+r,f=ba(f)+r,g=ba(g)+r,K+=r,G+=r,A=["M",K,g,"L",K,f,"L",G,f,"L",G,g,"L",K,g,"z"]),D&&(r=q["stroke-width"]%2/2,h+=r,l+=
r,t=["M",s-P*D,h,"L",s+P*D,h,"M",s-P*D,l,"L",s+P*D,l]),r=J["stroke-width"]%2/2,n=L(b.medianPlot)+r,x=["M",K,n,"L",G,n],m?(b.stem.animate({d:p}),D&&b.whiskers.animate({d:t}),u&&b.box.animate({d:A}),b.medianShape.animate({d:x})):(b.graphic=m=d.g().add(a.group),b.stem=d.path(p).attr(B).add(m),D&&(b.whiskers=d.path(t).attr(q).add(m)),u&&(b.box=d.path(A).attr(e).add(m)),b.medianShape=d.path(x).attr(J).add(m)))})}});X.errorbar=u(X.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},
whiskerWidth:null});N.errorbar=Q(N.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:N.arearange?N.arearange.prototype.drawDataLabels:ma,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||N.column.prototype.getColumnMetrics.call(this)}});X.waterfall=u(X.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333",states:{hover:{lineWidthPlus:0}}});N.waterfall=
Q(N.column,{type:"waterfall",upColorProp:"fill",pointArrayMap:["low","y"],pointValKey:"y",init:function(a,b){b.stacking=!0;N.column.prototype.init.call(this,a,b)},translate:function(){var a=this.yAxis,b,c,d,e,f,g,h,l,n,r;b=this.options.threshold;N.column.prototype.translate.apply(this);l=n=b;d=this.points;c=0;for(b=d.length;c<b;c++)e=d[c],f=e.shapeArgs,g=this.getStack(c),r=g.points[this.index+","+c],isNaN(e.y)&&(e.y=this.yData[c]),h=I(l,l+e.y)+r[0],f.y=a.translate(h,0,1),e.isSum?(f.y=a.translate(r[1],
0,1),f.height=a.translate(r[0],0,1)-f.y):e.isIntermediateSum?(f.y=a.translate(r[1],0,1),f.height=a.translate(n,0,1)-f.y,n=r[1]):l+=g.total,0>f.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=L(f.y)-this.borderWidth%2/2,f.height=I(L(f.height),.001),e.yBottom=f.y+f.height,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=a.len-f:e.tooltipPos[1]=f},processData:function(a){var b=this.yData,c=this.points,d,e=b.length,f,g,h,l,n,r;g=f=h=l=this.options.threshold||0;for(r=0;r<e;r++)n=
b[r],d=c&&c[r]?c[r]:{},"sum"===n||d.isSum?b[r]=g:"intermediateSum"===n||d.isIntermediateSum?b[r]=f:(g+=n,f+=n),h=Math.min(g,h),l=Math.max(g,l);V.prototype.processData.call(this,a);this.dataMin=h;this.dataMax=l},toYData:function(a){return a.isSum?0===a.x?null:"sum":a.isIntermediateSum?0===a.x?null:"intermediateSum":a.y},getAttribs:function(){N.column.prototype.getAttribs.apply(this,arguments);var a=this.options,b=a.states,c=a.upColor||this.color,a=ja.Color(c).brighten(.1).get(),d=u(this.pointAttr),
e=this.upColorProp;d[""][e]=c;d.hover[e]=b.hover.upColor||a;d.select[e]=b.select.upColor||c;z(this.points,function(a){0<a.y&&!a.color&&(a.pointAttr=d,a.color=c)})},getGraphPath:function(){var a=this.data,b=a.length,c=L(this.options.lineWidth+this.borderWidth)%2/2,d=[],e,f,g;for(g=1;g<b;g++)f=a[g].shapeArgs,e=a[g-1].shapeArgs,f=["M",e.x+e.width,e.y+c,"L",f.x,e.y+c],0>a[g-1].y&&(f[2]+=e.height,f[5]+=e.height),d=d.concat(f);return d},getExtremes:ma,getStack:function(a){var b=this.yAxis.stacks,c=this.stackKey;
this.processedYData[a]<this.options.threshold&&(c="-"+c);return b[c][a]},drawGraph:V.prototype.drawGraph});X.bubble=u(X.scatter,{dataLabels:{formatter:function(){return this.point.z},inside:!0,style:{color:"white",textShadow:"0px 0px 3px black"},verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0});var Tb=Q(Aa,{haloPath:function(){return Aa.prototype.haloPath.call(this,
this.shapeArgs.r+this.series.options.states.hover.halo.size)}});N.bubble=Q(N.scatter,{type:"bubble",pointClass:Tb,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],bubblePadding:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(a){var b=this.options.marker,c=k(b.fillOpacity,.5);a=a||b.fillColor||this.color;1!==c&&(a=Fa(a).setOpacity(c).get("rgba"));return a},convertAttribs:function(){var a=V.prototype.convertAttribs.apply(this,
arguments);a.fill=this.applyOpacity(a.fill);return a},getRadii:function(a,b,c,d){var e,f,g,h=this.zData,l=[],n="width"!==this.options.sizeBy;f=0;for(e=h.length;f<e;f++)g=b-a,g=0<g?(h[f]-a)/(b-a):.5,n&&0<=g&&(g=Math.sqrt(g)),l.push(ca.ceil(c+g*(d-c))/2);this.radii=l},animate:function(a){var b=this.options.animation;a||(z(this.points,function(a){var d=a.graphic;a=a.shapeArgs;d&&a&&(d.attr("r",1),d.animate({r:a.r},b))}),this.animate=null)},translate:function(){var a,b=this.data,c,d,e=this.radii;N.scatter.prototype.translate.call(this);
for(a=b.length;a--;)c=b[a],d=e?e[a]:0,c.negative=c.z<(this.options.zThreshold||0),d>=this.minPxSize/2?(c.shapeType="circle",c.shapeArgs={x:c.plotX,y:c.plotY,r:d},c.dlBox={x:c.plotX-d,y:c.plotY-d,width:2*d,height:2*d}):c.shapeArgs=c.plotY=c.dlBox=F},drawLegendSymbol:function(a,b){var c=E(a.itemStyle.fontSize)/2;b.legendSymbol=this.chart.renderer.circle(c,a.baseline-c,c).attr({zIndex:3}).add(b.legendGroup);b.legendSymbol.isMarker=!0},drawPoints:N.column.prototype.drawPoints,alignDataLabel:N.column.prototype.alignDataLabel});
xa.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,e=b,f=this.isXAxis,g=f?"xData":"yData",h=this.min,l={},n=ca.min(c.plotWidth,c.plotHeight),r=Number.MAX_VALUE,s=-Number.MAX_VALUE,m=this.max-h,p=b/m,B=[];this.tickPositions&&(z(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,B.push(b),f&&(z(["minSize","maxSize"],function(a){var b=d[a],c=/%$/.test(b),b=E(b);l[a]=c?n*b/100:b}),b.minPxSize=l.minSize,
b=b.zData,b.length&&(r=k(d.zMin,ca.min(r,ca.max(G(b),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),s=k(d.zMax,ca.max(s,P(b))))))}),z(B,function(a){var b=a[g],c=b.length,n;f&&a.getRadii(r,s,l.minSize,l.maxSize);if(0<m)for(;c--;)"number"===typeof b[c]&&(n=a.radii[c],d=Math.min((b[c]-h)*p-n,d),e=Math.max((b[c]-h)*p+n,e))}),B.length&&0<m&&k(this.options.min,this.userMin)===F&&k(this.options.max,this.userMax)===F&&(e-=b,p*=(b+d-e)/b,this.min+=d/p,this.max+=e/p))};q(ja,{Axis:xa,Chart:na,Color:Fa,
Point:Aa,Tick:aa,Renderer:Ka,Series:V,SVGElement:ia,SVGRenderer:Ka,arrayMin:G,arrayMax:P,charts:ra,dateFormat:Va,format:s,pathAnim:kb,getOptions:function(){return ha},hasBidiBug:Hb,isTouchDevice:xb,numberFormat:O,seriesTypes:N,setOptions:function(a){ha=u(!0,ha,a);sa();return ha},addEvent:ga,removeEvent:oa,createElement:M,discardElement:Wa,css:D,each:z,extend:q,map:Ra,merge:u,pick:k,splat:H,extendClass:Q,pInt:E,wrap:B,svg:pa,canvas:wa,vml:!pa&&!wa,product:"Highcharts 4.0.4",version:"/Highstock 2.0.4"})})();
(function(q){var u=q.getOptions(),E=u.plotOptions,S=q.seriesTypes,R=q.merge,Z=function(){},m=q.each;E.funnel=R(E.pie,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,dataLabels:{connectorWidth:1,connectorColor:"#606060"},size:!0,states:{select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}}});S.funnel=q.extendClass(S.pie,{type:"funnel",animate:Z,singularTooltips:!0,translate:function(){var p=function(s,k){return/%$/.test(s)?k*parseInt(s,
10)/100:parseInt(s,10)},A=0,q=this.chart,t=this.options,x=t.reversed,u=q.plotWidth,k=q.plotHeight,D=0,q=t.center,M=p(q[0],u),Q=p(q[1],k),O=p(t.width,u),U,B,s=p(t.height,k),K=p(t.neckWidth,u),T=p(t.neckHeight,k),G=s-T,p=this.data,P,da,E="left"===t.dataLabels.position?1:0,R,sa,ia,aa,S,na,la;this.getWidthAt=B=function(k){return k>s-T||s===T?K:K+(s-T-k)/(s-T)*(O-K)};this.getX=function(s,m){return M+(m?-1:1)*(B(x?k-s:s)/2+t.dataLabels.distance)};this.center=[M,Q,s];this.centerX=M;m(p,function(s){A+=s.y});
m(p,function(k){la=null;da=A?k.y/A:0;sa=Q-s/2+D*s;S=sa+da*s;U=B(sa);R=M-U/2;ia=R+U;U=B(S);aa=M-U/2;na=aa+U;sa>G?(R=aa=M-K/2,ia=na=M+K/2):S>G&&(la=S,U=B(G),aa=M-U/2,na=aa+U,S=G);x&&(sa=s-sa,S=s-S,la=la?s-la:null);P=["M",R,sa,"L",ia,sa,na,S];la&&P.push(na,la,aa,la);P.push(aa,S,"Z");k.shapeType="path";k.shapeArgs={d:P};k.percentage=100*da;k.plotX=M;k.plotY=(sa+(la||S))/2;k.tooltipPos=[M,k.plotY];k.slice=Z;k.half=E;D+=da})},drawPoints:function(){var p=this,A=p.options,q=p.chart.renderer;m(p.data,function(m){var x=
m.graphic,u=m.shapeArgs;x?x.animate(u):m.graphic=q.path(u).attr({fill:m.color,stroke:A.borderColor,"stroke-width":A.borderWidth}).add(p.group)})},sortByAngle:function(m){m.sort(function(m,p){return m.plotY-p.plotY})},drawDataLabels:function(){var m=this.data,A=this.options.dataLabels.distance,q,t,x,u=m.length,k,D;for(this.center[2]-=2*A;u--;)x=m[u],t=(q=x.half)?1:-1,D=x.plotY,k=this.getX(D,q),x.labelPos=[0,D,k+(A-5)*t,D,k+A*t,D,q?"right":"left",0];S.pie.prototype.drawDataLabels.call(this)}});u.plotOptions.pyramid=
q.merge(u.plotOptions.funnel,{neckWidth:"0%",neckHeight:"0%",reversed:!0});q.seriesTypes.pyramid=q.extendClass(q.seriesTypes.funnel,{type:"pyramid"})})(Highcharts);
(function(q){var u=q.Chart,E=q.addEvent,S=q.removeEvent,R=q.createElement,Z=q.discardElement,m=q.css,p=q.merge,A=q.each,J=q.extend,t=Math.max,x=document,H=window,k=q.isTouchDevice,D=q.Renderer.prototype.symbols,M=q.getOptions(),Q;J(M.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});M.navigation={menuStyle:{border:"1px solid #A0A0A0",
background:"#FFFFFF",padding:"5px 0"},menuItemStyle:{padding:"0 10px",background:"none",color:"#303030",fontSize:k?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{symbolFill:"#E0E0E0",symbolSize:14,symbolStroke:"#666",symbolStrokeWidth:3,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,theme:{fill:"white",stroke:"none"},verticalAlign:"top",width:24}};M.exporting={type:"image/png",url:"http://export.highcharts.com/",buttons:{contextButton:{menuClassName:"highcharts-contextmenu",
symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};q.post=function(k,m,B){var s;k=R("form",p({method:"post",
action:k,enctype:"multipart/form-data"},B),{display:"none"},x.body);for(s in m)R("input",{type:"hidden",name:s,value:m[s]},null,k);k.submit();Z(k)};J(u.prototype,{getSVG:function(k){var m=this,B,s,t,T,G=p(m.options,k);x.createElementNS||(x.createElementNS=function(k,s){return x.createElement(s)});k=R("div",null,{position:"absolute",top:"-9999em",width:m.chartWidth+"px",height:m.chartHeight+"px"},x.body);s=m.renderTo.style.width;T=m.renderTo.style.height;s=G.exporting.sourceWidth||G.chart.width||/px$/.test(s)&&
parseInt(s,10)||600;T=G.exporting.sourceHeight||G.chart.height||/px$/.test(T)&&parseInt(T,10)||400;J(G.chart,{animation:!1,renderTo:k,forExport:!0,width:s,height:T});G.exporting.enabled=!1;G.series=[];A(m.series,function(s){t=p(s.options,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:s.visible});t.isInternal||G.series.push(t)});B=new q.Chart(G,m.callback);A(["xAxis","yAxis"],function(s){A(m[s],function(k,m){var p=B[s][m],q=k.getExtremes(),A=q.userMin,q=q.userMax;!p||void 0===A&&void 0===
q||p.setExtremes(A,q,!0,!1)})});s=B.container.innerHTML;G=null;B.destroy();Z(k);s=s.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g,
"\u00a0").replace(/&shy;/g,"\u00ad").replace(/<IMG /g,"<image ").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" >]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(s){return s.toLowerCase()});return s=s.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'")},exportChart:function(k,
m){k=k||{};var B=this.options.exporting,B=this.getSVG(p({chart:{borderRadius:0}},B.chartOptions,m,{exporting:{sourceWidth:k.sourceWidth||B.sourceWidth,sourceHeight:k.sourceHeight||B.sourceHeight}}));k=p(this.options.exporting,k);q.post(k.url,{filename:k.filename||"chart",type:k.type,width:k.width||0,scale:k.scale||2,svg:B},k.formAttributes)},print:function(){var k=this,m=k.container,p=[],s=m.parentNode,q=x.body,t=q.childNodes;k.isPrinting||(k.isPrinting=!0,A(t,function(k,s){1===k.nodeType&&(p[s]=
k.style.display,k.style.display="none")}),q.appendChild(m),H.focus(),H.print(),setTimeout(function(){s.appendChild(m);A(t,function(k,s){1===k.nodeType&&(k.style.display=p[s])});k.isPrinting=!1},1E3))},contextMenu:function(k,p,B,s,q,x,G){var P=this,u=P.options.navigation,D=u.menuItemStyle,M=P.chartWidth,Q=P.chartHeight,H="cache-"+k,aa=P[H],Z=t(q,x),na,la,Oa,F=function(s){P.pointer.inClass(s.target,k)||la()};aa||(P[H]=aa=R("div",{className:k},{position:"absolute",zIndex:1E3,padding:Z+"px"},P.container),
na=R("div",null,J({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},u.menuStyle),aa),la=function(){m(aa,{display:"none"});G&&G.setState(0);P.openMenu=!1},E(aa,"mouseleave",function(){Oa=setTimeout(la,500)}),E(aa,"mouseenter",function(){clearTimeout(Oa)}),E(document,"mouseup",F),E(P,"destroy",function(){S(document,"mouseup",F)}),A(p,function(k){if(k){var s=k.separator?R("hr",null,null,na):R("div",{onmouseover:function(){m(this,u.menuItemHoverStyle)},
onmouseout:function(){m(this,D)},onclick:function(){la();k.onclick.apply(P,arguments)},innerHTML:k.text||P.options.lang[k.textKey]},J({cursor:"pointer"},D),na);P.exportDivElements.push(s)}}),P.exportDivElements.push(na,aa),P.exportMenuWidth=aa.offsetWidth,P.exportMenuHeight=aa.offsetHeight);p={display:"block"};B+P.exportMenuWidth>M?p.right=M-B-q-Z+"px":p.left=B-Z+"px";s+x+P.exportMenuHeight>Q&&"top"!==G.alignOptions.verticalAlign?p.bottom=Q-s-Z+"px":p.top=s+x-Z+"px";m(aa,p);P.openMenu=!0},addButton:function(k){var m=
this,B=m.renderer,s=p(m.options.navigation.buttonOptions,k),A=s.onclick,t=s.menuItems,x,u,D={stroke:s.symbolStroke,fill:s.symbolFill},M=s.symbolSize||12;m.btnCount||(m.btnCount=0);m.exportDivElements||(m.exportDivElements=[],m.exportSVGElements=[]);if(!1!==s.enabled){var H=s.theme,E=H.states,S=E&&E.hover,E=E&&E.select,R;delete H.states;A?R=function(){A.apply(m,arguments)}:t&&(R=function(){m.contextMenu(u.menuClassName,t,u.translateX,u.translateY,u.width,u.height,u);u.setState(2)});s.text&&s.symbol?
H.paddingLeft=q.pick(H.paddingLeft,25):s.text||J(H,{width:s.width,height:s.height,padding:0});u=B.button(s.text,0,0,R,H,S,E).attr({title:m.options.lang[s._titleKey],"stroke-linecap":"round"});u.menuClassName=k.menuClassName||"highcharts-menu-"+m.btnCount++;s.symbol&&(x=B.symbol(s.symbol,s.symbolX-M/2,s.symbolY-M/2,M,M).attr(J(D,{"stroke-width":s.symbolStrokeWidth||1,zIndex:1})).add(u));u.add().align(J(s,{width:u.width,x:q.pick(s.x,Q)}),!0,"spacingBox");Q+=(u.width+s.buttonSpacing)*("right"===s.align?
-1:1);m.exportSVGElements.push(u,x)}},destroyExport:function(k){k=k.target;var m,p;for(m=0;m<k.exportSVGElements.length;m++)if(p=k.exportSVGElements[m])p.onclick=p.ontouchstart=null,k.exportSVGElements[m]=p.destroy();for(m=0;m<k.exportDivElements.length;m++)p=k.exportDivElements[m],S(p,"mouseleave"),k.exportDivElements[m]=p.onmouseout=p.onmouseover=p.ontouchstart=p.onclick=null,Z(p)}});D.menu=function(k,m,p,s){return["M",k,m+2.5,"L",k+p,m+2.5,"M",k,m+s/2+.5,"L",k+p,m+s/2+.5,"M",k,m+s-1.5,"L",k+p,
m+s-1.5]};u.prototype.callbacks.push(function(k){var m,p=k.options.exporting,s=p.buttons;Q=0;if(!1!==p.enabled){for(m in s)k.addButton(s[m]);E(k,"destroy",k.destroyExport)}})})(Highcharts);
(function(q){var u=q.each,E=HighchartsAdapter.inArray,S=q.splat,R,Z=function(m,p){this.init(m,p)};q.extend(Z.prototype,{init:function(m,p){this.options=m;this.chartOptions=p;this.columns=m.columns||this.rowsToColumns(m.rows)||[];this.rawColumns=[];this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var m=this.chartOptions,p=this.options,A=[],J=function(k){return(q.seriesTypes[k||"line"].prototype.pointArrayMap||[0]).length},
t=m&&m.chart&&m.chart.type,x=[],H=[],k,D;u(m&&m.series||[],function(k){x.push(J(k.type||t))});u(p&&p.seriesMapping||[],function(k){A.push(k.x||0)});0===A.length&&A.push(0);u(p&&p.seriesMapping||[],function(p){var A=new R,u,E=x[k]||J(t),B=q.seriesTypes[((m&&m.series||[])[k]||{}).type||t||"line"].prototype.pointArrayMap||["y"];A.addColumnReader(p.x,"x");for(u in p)p.hasOwnProperty(u)&&"x"!==u&&A.addColumnReader(p[u],u);for(D=0;D<E;D++)A.hasReader(B[D])||A.addColumnReader(void 0,B[D]);H.push(A);k++});
p=q.seriesTypes[t||"line"].prototype.pointArrayMap;void 0===p&&(p=["y"]);this.valueCount={global:J(t),xColumns:A,individual:x,seriesBuilders:H,globalPointArrayMap:p}},dataFound:function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns));this.getColumnDistribution();this.parseTypes();this.findHeaderRow();!1!==this.parsed()&&this.complete()},parseCSV:function(){var m=this,p=this.options,q=p.csv,J=this.columns,t=p.startRow||0,x=p.endRow||Number.MAX_VALUE,H=p.startColumn||
0,k=p.endColumn||Number.MAX_VALUE,D,E,Q=0;q&&(E=q.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(p.lineDelimiter||"\n"),D=p.itemDelimiter||(-1!==q.indexOf("\t")?"\t":","),u(E,function(p,q){var B=m.trim(p),s=0===B.indexOf("#");q>=t&&q<=x&&!s&&""!==B&&(B=p.split(D),u(B,function(s,m){m>=H&&m<=k&&(J[m-H]||(J[m-H]=[]),J[m-H][Q]=s)}),Q+=1)}),this.dataFound())},parseTable:function(){var m=this.options,p=m.table,q=this.columns,J=m.startRow||0,t=m.endRow||Number.MAX_VALUE,x=m.startColumn||0,H=m.endColumn||
Number.MAX_VALUE;p&&("string"===typeof p&&(p=document.getElementById(p)),u(p.getElementsByTagName("tr"),function(k,m){m>=J&&m<=t&&u(k.children,function(k,p){("TD"===k.tagName||"TH"===k.tagName)&&p>=x&&p<=H&&(q[p-x]||(q[p-x]=[]),q[p-x][m-J]=k.innerHTML)})}),this.dataFound())},parseGoogleSpreadsheet:function(){var m=this,p=this.options,q=p.googleSpreadsheetKey,u=this.columns,t=p.startRow||0,x=p.endRow||Number.MAX_VALUE,H=p.startColumn||0,k=p.endColumn||Number.MAX_VALUE,D,E;q&&jQuery.ajax({dataType:"json",
url:"https://spreadsheets.google.com/feeds/cells/"+q+"/"+(p.googleSpreadsheetWorksheet||"od6")+"/public/values?alt=json-in-script&callback=?",error:p.error,success:function(p){p=p.feed.entry;var q,A=p.length,B=0,s=0,K;for(K=0;K<A;K++)q=p[K],B=Math.max(B,q.gs$cell.col),s=Math.max(s,q.gs$cell.row);for(K=0;K<B;K++)K>=H&&K<=k&&(u[K-H]=[],u[K-H].length=Math.min(s,x-t));for(K=0;K<A;K++)q=p[K],D=q.gs$cell.row-1,E=q.gs$cell.col-1,E>=H&&E<=k&&D>=t&&D<=x&&(u[E-H][D-t]=q.content.$t);m.dataFound()}})},findHeaderRow:function(){var m=
0;u(this.columns,function(p){p.isNumeric&&"string"!==typeof p[0]&&(m=null)});this.headerRow=m},trim:function(m){return"string"===typeof m?m.replace(/^\s+|\s+$/g,""):m},parseTypes:function(){for(var m=this.columns,p=this.rawColumns,q=m.length,u,t,x,H,k,D,M=[],Q,O=this.chartOptions;q--;){u=m[q].length;p[q]=[];for(Q=(k=-1!==E(q,this.valueCount.xColumns))&&O&&O.xAxis&&"category"===S(O.xAxis)[0].type;u--;)t=M[u]||m[q][u],x=parseFloat(t),H=p[q][u]=this.trim(t),Q?m[q][u]=H:H==x?(m[q][u]=x,31536E6<x?m[q].isDatetime=
!0:m[q].isNumeric=!0):(x=this.parseDate(t),k&&"number"===typeof x&&!isNaN(x)?(M[u]=t,m[q][u]=x,m[q].isDatetime=!0,void 0!==m[q][u+1]&&(t=x>m[q][u+1],t!==D&&void 0!==D&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,u=m[q].length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):m[q].unsorted=!0),D=t)):(m[q][u]=""===H?null:H,0!==u&&(m[q].isDatetime||m[q].isNumeric)&&(m[q].mixed=!0)));k&&m[q].mixed&&(m[q]=p[q])}if(m[0].isDatetime&&D)for(p="number"!==typeof m[0][0],
q=0;q<m.length;q++)m[q].reverse(),p&&m[q].unshift(m[q].pop())},dateFormats:{"YYYY-mm-dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{2})[\-\/\.]([0-9]{2})$/,parser:function(m){return Date.UTC(+m[1],m[2]-1,+m[3])}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(m){return Date.UTC(+m[3],m[2]-1,+m[1])},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(m){return Date.UTC(+m[3],m[1]-1,+m[2])}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,
parser:function(m){return Date.UTC(+m[3]+2E3,m[2]-1,+m[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(m){console.log(m);return Date.UTC(+m[3]+2E3,m[1]-1,+m[2])}}},parseDate:function(m){var p=this.options.parseDate,q,u,t=this.options.dateFormat||this.dateFormat,x;p&&(q=p(m));if("string"===typeof m){if(t)p=this.dateFormats[t],(x=m.match(p.regex))&&(q=p.parser(x));else for(u in this.dateFormats)if(p=this.dateFormats[u],x=m.match(p.regex)){this.dateFormat=
u;this.alternativeFormat=p.alternative;q=p.parser(x);break}x||(x=Date.parse(m),"object"===typeof x&&null!==x&&x.getTime?q=x.getTime()-6E4*x.getTimezoneOffset():"number"!==typeof x||isNaN(x)||(q=x-6E4*(new Date(x)).getTimezoneOffset()))}return q},rowsToColumns:function(m){var p,q,u,t,x;if(m)for(x=[],q=m.length,p=0;p<q;p++)for(t=m[p].length,u=0;u<t;u++)x[u]||(x[u]=[]),x[u][p]=m[p][u];return x},parsed:function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},getFreeIndexes:function(m,
p){var q,u,t=[],x=[],E;for(u=0;u<m;u+=1)t.push(!0);for(q=0;q<p.length;q+=1)for(E=p[q].getReferencedColumnIndexes(),u=0;u<E.length;u+=1)t[E[u]]=!1;for(u=0;u<t.length;u+=1)t[u]&&x.push(u);return x},complete:function(){var m=this.columns,p,q=this.options,u,t,x,H,k=[],D;if(q.complete||q.afterComplete){for(x=0;x<m.length;x++)0===this.headerRow&&(m[x].name=m[x].shift());u=[];t=this.getFreeIndexes(m.length,this.valueCount.seriesBuilders);for(x=0;x<this.valueCount.seriesBuilders.length;x++)D=this.valueCount.seriesBuilders[x],
D.populateColumns(t)&&k.push(D);for(;0<t.length;){D=new R;D.addColumnReader(0,"x");x=E(0,t);-1!==x&&t.splice(x,1);for(x=0;x<this.valueCount.global;x++)D.addColumnReader(void 0,this.valueCount.globalPointArrayMap[x]);D.populateColumns(t)&&k.push(D)}0<k.length&&0<k[0].readers.length&&(D=m[k[0].readers[0].columnIndex],void 0!==D&&(D.isDatetime?p="datetime":D.isNumeric||(p="category")));if("category"===p)for(x=0;x<k.length;x++)for(D=k[x],t=0;t<D.readers.length;t++)"x"===D.readers[t].configName&&(D.readers[t].configName=
"name");for(x=0;x<k.length;x++){D=k[x];t=[];for(H=0;H<m[0].length;H++)t[H]=D.read(m,H);u[x]={data:t};D.name&&(u[x].name=D.name)}m={xAxis:{type:p},series:u};q.complete&&q.complete(m);q.afterComplete&&q.afterComplete(m)}}});q.Data=Z;q.data=function(m,p){return new Z(m,p)};q.wrap(q.Chart.prototype,"init",function(m,p,u){var E=this;p&&p.data?q.data(q.extend(p.data,{afterComplete:function(t){var x,H;if(p.hasOwnProperty("series"))if("object"===typeof p.series)for(x=Math.max(p.series.length,t.series.length);x--;)H=
p.series[x]||{},p.series[x]=q.merge(H,t.series[x]);else delete p.series;p=q.merge(t,p);m.call(E,p,u)}}),p):m.call(E,p,u)});R=function(){this.readers=[];this.pointIsArray=!0};R.prototype.populateColumns=function(m){var p=!0;u(this.readers,function(p){void 0===p.columnIndex&&(p.columnIndex=m.shift())});u(this.readers,function(m){void 0===m.columnIndex&&(p=!1)});return p};R.prototype.read=function(m,p){var q=this.pointIsArray,E=q?[]:{},t;u(this.readers,function(t){var u=m[t.columnIndex][p];q?E.push(u):
E[t.configName]=u});void 0===this.name&&2<=this.readers.length&&(t=this.getReferencedColumnIndexes(),2<=t.length&&(t.shift(),t.sort(),this.name=m[t.shift()].name));return E};R.prototype.addColumnReader=function(m,p){this.readers.push({columnIndex:m,configName:p});"x"!==p&&"y"!==p&&void 0!==p&&(this.pointIsArray=!1)};R.prototype.getReferencedColumnIndexes=function(){var m,p=[],q;for(m=0;m<this.readers.length;m+=1)q=this.readers[m],void 0!==q.columnIndex&&p.push(q.columnIndex);return p};R.prototype.hasReader=
function(m){var p,q;for(p=0;p<this.readers.length;p+=1)if(q=this.readers[p],q.configName===m)return!0}})(Highcharts);
(function(q){function u(){return!!this.points.length}function E(){this.hasData()?this.hideNoData():this.showNoData()}var S=q.seriesTypes,R=q.Chart.prototype,Z=q.getOptions(),m=q.extend;m(Z.lang,{noData:"No data to display"});Z.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"},attr:{},style:{fontWeight:"bold",fontSize:"12px",color:"#60606a"}};S.pie&&(S.pie.prototype.hasData=u);S.gauge&&(S.gauge.prototype.hasData=u);S.waterfall&&(S.waterfall.prototype.hasData=u);q.Series.prototype.hasData=
function(){return void 0!==this.dataMax&&void 0!==this.dataMin};R.showNoData=function(p){var q=this.options;p=p||q.lang.noData;q=q.noData;this.noDataLabel||(this.noDataLabel=this.renderer.label(p,0,0,null,null,null,null,null,"no-data").attr(q.attr).css(q.style).add(),this.noDataLabel.align(m(this.noDataLabel.getBBox(),q.position),!1,"plotBox"))};R.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};R.hasData=function(){for(var m=this.series,q=m.length;q--;)if(m[q].hasData()&&
!m[q].options.isInternal)return!0;return!1};R.callbacks.push(function(m){q.addEvent(m,"load",E);q.addEvent(m,"redraw",E)})})(Highcharts);
(function(q){var u=q.Axis,E=q.Chart,S=q.Color,R=q.Legend,Z=q.LegendSymbolMixin,m=q.Series,p=q.SVGRenderer,A=q.getOptions(),J=q.each,t=q.extend,x=q.extendClass,H=q.merge,k=q.pick,D=q.numberFormat,M=q.seriesTypes,Q=q.wrap,O=function(){},U=q.ColorAxis=function(){this.isColorAxis=!0;this.init.apply(this,arguments)};t(U.prototype,u.prototype);t(U.prototype,{defaultColorAxisOptions:{lineWidth:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},color:"gray",
width:.01},labels:{overflow:"justify"},minColor:"#EFEFFF",maxColor:"#003875",tickLength:5},init:function(k,m){var p="vertical"!==k.options.legend.layout,q;q=H(this.defaultColorAxisOptions,{side:p?2:1,reversed:!p},m,{isX:p,opposite:!p,showEmpty:!1,title:null,isColor:!0});u.prototype.init.call(this,k,q);m.dataClasses&&this.initDataClasses(m);this.initStops(m);this.isXAxis=!0;this.horiz=p;this.zoomEnabled=!1},tweenColors:function(k,m,p){var q=1!==m.rgba[3]||1!==k.rgba[3];return(q?"rgba(":"rgb(")+Math.round(m.rgba[0]+
(k.rgba[0]-m.rgba[0])*(1-p))+","+Math.round(m.rgba[1]+(k.rgba[1]-m.rgba[1])*(1-p))+","+Math.round(m.rgba[2]+(k.rgba[2]-m.rgba[2])*(1-p))+(q?","+(m.rgba[3]+(k.rgba[3]-m.rgba[3])*(1-p)):"")+")"},initDataClasses:function(k){var m=this,p=this.chart,q,t=0,u=this.options,x=k.dataClasses.length;this.dataClasses=q=[];this.legendItems=[];J(k.dataClasses,function(k,B){var A;k=H(k);q.push(k);k.color||("category"===u.dataClassColor?(A=p.options.colors,k.color=A[t++],t===A.length&&(t=0)):k.color=m.tweenColors(S(u.minColor),
S(u.maxColor),2>x?.5:B/(x-1)))})},initStops:function(k){this.stops=k.stops||[[0,this.options.minColor],[1,this.options.maxColor]];J(this.stops,function(k){k.color=S(k[1])})},setOptions:function(k){u.prototype.setOptions.call(this,k);this.options.crosshair=this.options.marker;this.coll="colorAxis"},setAxisSize:function(){var k=this.legendSymbol,m=this.chart,p,q,t;k&&(this.left=p=k.attr("x"),this.top=q=k.attr("y"),this.width=t=k.attr("width"),this.height=k=k.attr("height"),this.right=m.chartWidth-p-
t,this.bottom=m.chartHeight-q-k,this.len=this.horiz?t:k,this.pos=this.horiz?p:q)},toColor:function(k,m){var p,q=this.stops,t,u=this.dataClasses,x,A;if(u)for(A=u.length;A--;){if(x=u[A],t=x.from,q=x.to,(void 0===t||k>=t)&&(void 0===q||k<=q)){p=x.color;m&&(m.dataClass=A);break}}else{this.isLog&&(k=this.val2lin(k));p=1-(this.max-k)/(this.max-this.min||1);for(A=q.length;A--&&!(p>q[A][0]););t=q[A]||q[A+1];q=q[A+1]||t;p=1-(q[0]-p)/(q[0]-t[0]||1);p=this.tweenColors(t.color,q.color,p)}return p},getOffset:function(){var k=
this.legendGroup,m=this.chart.axisOffset[this.side];k&&(u.prototype.getOffset.call(this),this.axisGroup.parentGroup||(this.axisGroup.add(k),this.gridGroup.add(k),this.labelGroup.add(k),this.added=!0),this.chart.axisOffset[this.side]=m)},setLegendColor:function(){var k,m=this.options;k=this.horiz?[0,0,1,0]:[0,0,0,1];this.legendColor={linearGradient:{x1:k[0],y1:k[1],x2:k[2],y2:k[3]},stops:m.stops||[[0,m.minColor],[1,m.maxColor]]}},drawLegendSymbol:function(m,p){var q=m.padding,t=m.options,u=this.horiz,
x=k(t.symbolWidth,u?200:12),A=k(t.symbolHeight,u?12:200),D=k(t.labelPadding,u?16:30),t=k(t.itemDistance,10);this.setLegendColor();p.legendSymbol=this.chart.renderer.rect(0,m.baseline-11,x,A).attr({zIndex:1}).add(p.legendGroup);p.legendSymbol.getBBox();this.legendItemWidth=x+q+(u?t:D);this.legendItemHeight=A+q+(u?D:0)},setState:O,visible:!0,setVisible:O,getSeriesExtremes:function(){var k;this.series.length&&(k=this.series[0],this.dataMin=k.valueMin,this.dataMax=k.valueMax)},drawCrosshair:function(k,
m){var p=!this.cross,q=m&&m.plotX,t=m&&m.plotY,x,A=this.pos,D=this.len;m&&(x=this.toPixels(m.value),x<A?x=A-2:x>A+D&&(x=A+D+2),m.plotX=x,m.plotY=this.len-x,u.prototype.drawCrosshair.call(this,k,m),m.plotX=q,m.plotY=t,!p&&this.cross&&this.cross.attr({fill:this.crosshair.color}).add(this.labelGroup))},getPlotLinePath:function(k,m,p,q,t){return t?this.horiz?["M",t-4,this.top-6,"L",t+4,this.top-6,t,this.top,"Z"]:["M",this.left,t,"L",this.left-6,t+6,this.left-6,t-6,"Z"]:u.prototype.getPlotLinePath.call(this,
k,m,p,q)},update:function(k,m){J(this.series,function(k){k.isDirtyData=!0});u.prototype.update.call(this,k,m);this.legendItem&&(this.setLegendColor(),this.chart.legend.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var k=this,m=this.chart,p=this.legendItems,q=m.options.legend,u=q.valueDecimals,x=q.valueSuffix||"",A;p.length||J(this.dataClasses,function(q,E){var H=!0,T=q.from,M=q.to;A="";void 0===T?A="< ":void 0===M&&(A="> ");void 0!==T&&(A+=D(T,u)+x);void 0!==T&&void 0!==M&&(A+=" - ");
void 0!==M&&(A+=D(M,u)+x);p.push(t({chart:m,name:A,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,setState:O,setVisible:function(){H=this.visible=!H;J(k.series,function(k){J(k.points,function(k){k.dataClass===E&&k.setVisible(H)})});m.legend.colorizeItem(this,H)}},q))});return p},name:""});J(["fill","stroke"],function(k){HighchartsAdapter.addAnimSetter(k,function(m){m.elem.attr(k,U.prototype.tweenColors(S(m.start),S(m.end),m.pos))})});Q(E.prototype,"getAxes",function(k){var m=this.options.colorAxis;
k.call(this);this.colorAxis=[];m&&new U(this,m)});Q(R.prototype,"getAllItems",function(k){var m=[],p=this.chart.colorAxis[0];p&&(p.options.dataClasses?m=m.concat(p.getDataClassLegendSymbols()):m.push(p),J(p.series,function(k){k.options.showInLegend=!1}));return m.concat(k.call(this))});q={pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",dashstyle:"dashStyle"},pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group",
"markerGroup","dataLabelsGroup"],getSymbol:O,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var k=this,m=this.options.nullColor,p=this.colorAxis,q=this.colorKey;J(this.data,function(t){var u=t[q];if(u=null===u?m:p&&void 0!==u?p.toColor(u,t):t.color||k.color)t.color=u})}};Q(p.prototype,"buildText",function(k,m){var p=m.styles&&m.styles.HcTextStroke;k.call(this,m);p&&m.applyTextStroke&&m.applyTextStroke(p)});p.prototype.Element.prototype.applyTextStroke=function(k){var m=
this.element,p,q;k=k.split(" ");p=m.getElementsByTagName("tspan");q=m.firstChild;this.ySetter=this.xSetter;J([].slice.call(p),function(p,t){var u;0===t&&(p.setAttribute("x",m.getAttribute("x")),null!==(t=m.getAttribute("y"))&&p.setAttribute("y",t));u=p.cloneNode(1);u.setAttribute("stroke",k[1]);u.setAttribute("stroke-width",k[0]);u.setAttribute("stroke-linejoin","round");m.insertBefore(u,q)})};A.plotOptions.heatmap=H(A.plotOptions.scatter,{animation:!1,borderWidth:0,nullColor:"#F8F8F8",dataLabels:{formatter:function(){return this.point.value},
verticalAlign:"middle",crop:!1,overflow:!1,style:{color:"white",fontWeight:"bold",HcTextStroke:"1px rgba(0,0,0,0.5)"}},marker:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{normal:{animation:!0},hover:{brightness:.2}}});M.heatmap=x(M.scatter,H(q,{type:"heatmap",pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,init:function(){M.scatter.prototype.init.apply(this,arguments);this.pointRange=this.options.colsize||1;this.yAxis.axisPointRange=
this.options.rowsize||1},translate:function(){var k=this.options,m=this.xAxis,p=this.yAxis;this.generatePoints();J(this.points,function(q){var t=(k.colsize||1)/2,u=(k.rowsize||1)/2,x=Math.round(m.len-m.translate(q.x-t,0,1,0,1)),t=Math.round(m.len-m.translate(q.x+t,0,1,0,1)),A=Math.round(p.translate(q.y-u,0,1,0,1)),u=Math.round(p.translate(q.y+u,0,1,0,1));q.plotX=(x+t)/2;q.plotY=(A+u)/2;q.shapeType="rect";q.shapeArgs={x:Math.min(x,t),y:Math.min(A,u),width:Math.abs(t-x),height:Math.abs(u-A)}});this.translateColors();
this.chart.hasRendered&&J(this.points,function(k){k.shapeArgs.fill=k.options.color||k.color})},drawPoints:M.column.prototype.drawPoints,animate:O,getBox:O,drawLegendSymbol:Z.drawRectangle,getExtremes:function(){m.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;m.prototype.getExtremes.call(this)}}))})(Highcharts); 
