/*
 Highcharts JS v2.3.5 (2012-12-19)

 (c) 2009-2012 Torstein H?nsi

 License: www.highcharts.com/license
 Highcharts JS v2.3.5 (2012-12-19)
 Exporting module

 (c) 2010-2011 Torstein H?nsi

 License: www.highcharts.com/license
 Highcharts JS v2.3.5 (2012-12-19)

 (c) 2009-2011 Torstein H?nsi

 License: www.highcharts.com/license
*/
(function(){function n(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function aa(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function z(a,b){return parseInt(a,b||10)}function ia(a){return"string"===typeof a}function ba(a){return"object"===typeof a}function V(a){return"[object Array]"===Object.prototype.toString.call(a)}function fa(a){return"number"===typeof a}function R(a){return W.log(a)/W.LN10}function Y(a){return W.pow(10,a)}function O(a,b){for(var c=a.length;c--;)if(a[c]===
b){a.splice(c,1);break}}function q(a){return a!==I&&null!==a}function s(a,b,c){var d,e;if(ia(b))q(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(q(b)&&ba(b))for(d in b)a.setAttribute(d,b[d]);return e}function A(a){return V(a)?a:[a]}function l(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],"undefined"!==typeof c&&null!==c)return c}function M(a,b){if(Ca&&b&&b.opacity!==I)b.filter="alpha(opacity="+100*b.opacity+")";n(a.style,b)}function F(a,b,c,d,e){a=L.createElement(a);
b&&n(a,b);e&&M(a,{padding:0,border:ga,margin:0});c&&M(a,c);d&&d.appendChild(a);return a}function S(a,b){var c=function(){};c.prototype=new a;n(c.prototype,b);return c}function v(a,b,c,d){var e=ca.lang,f=a;-1===b?(b=(a||0).toString(),a=-1<b.indexOf(".")?b.split(".")[1].length:0):a=isNaN(b=Z(b))?2:b;var b=a,c=void 0===c?e.decimalPoint:c,d=void 0===d?e.thousandsSep:d,e=0>f?"-":"",a=""+z(f=Z(+f||0).toFixed(b)),g=3<a.length?a.length%3:0;return e+(g?a.substr(0,g)+d:"")+a.substr(g).replace(/(\d{3})(?=\d)/g,
"$1"+d)+(b?c+Z(f-a).toFixed(b).slice(2):"")}function G(a,b){return Array((b||2)+1-(""+a).length).join(0)+a}function E(a,b,c,d){var e,c=l(c,1);e=a/c;b||(b=[1,2,2.5,5,10],d&&!1===d.allowDecimals&&(1===c?b=[1,2,5,10]:0.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 H(a,b){var c=b||[[Ab,[1,2,5,10,20,25,50,100,200,500]],[fb,[1,2,5,10,15,30]],[Pa,[1,2,5,10,15,30]],[Ea,[1,2,3,4,6,8,12]],[ta,[1,2]],[Qa,[1,2]],[Fa,[1,2,3,4,6]],[ya,null]],d=c[c.length-1],
e=P[d[0]],f=d[1],g;for(g=0;g<c.length&&!(d=c[g],e=P[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+P[c[g+1][0]])/2);g++);e===P[ya]&&a<5*e&&(f=[1,2,5]);e===P[ya]&&a<5*e&&(f=[1,2,5]);c=E(a/e,f);return{unitRange:e,count:c,unitName:d[0]}}function x(a,b,c,d){var e=[],f={},g=ca.global.useUTC,h,k=new Date(b),o=a.unitRange,r=a.count;if(q(b)){o>=P[fb]&&(k.setMilliseconds(0),k.setSeconds(o>=P[Pa]?0:r*ja(k.getSeconds()/r)));if(o>=P[Pa])k[Bb](o>=P[Ea]?0:r*ja(k[gb]()/r));if(o>=P[Ea])k[Cb](o>=P[ta]?0:r*ja(k[hb]()/r));
if(o>=P[ta])k[ib](o>=P[Fa]?1:r*ja(k[Ga]()/r));o>=P[Fa]&&(k[Db](o>=P[ya]?0:r*ja(k[Ra]()/r)),h=k[Sa]());if(o>=P[ya])k[Eb](h-h%r);if(o===P[Qa])k[ib](k[Ga]()-k[jb]()+l(d,1));b=1;h=k[Sa]();for(var d=k.getTime(),C=k[Ra](),N=k[Ga](),k=g?0:(864E5+6E4*k.getTimezoneOffset())%864E5;d<c;)e.push(d),o===P[ya]?d=Ta(h+b*r,0):o===P[Fa]?d=Ta(h,C+b*r):!g&&(o===P[ta]||o===P[Qa])?d=Ta(h,C,N+b*r*(o===P[ta]?1:7)):(d+=o*r,o<=P[Ea]&&d%P[ta]===k&&(f[d]=ta)),b++;e.push(d)}e.info=n(a,{higherRanks:f,totalRange:o*r});return e}
function Ua(){this.symbol=this.color=0}function Ha(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 na(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function j(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function i(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function m(a){Va||(Va=F(sa));a&&Va.appendChild(a);Va.innerHTML=""}function u(a,
b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;X.console&&console.log(c)}function y(a){return parseFloat(a.toPrecision(14))}function t(a,b){Ia=l(a,b.animation)}function p(){var a=ca.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";Ta=a?Date.UTC:function(a,b,c,g,h,k){return(new Date(a,b,l(c,1),l(g,0),l(h,0),l(k,0))).getTime()};gb=b+"Minutes";hb=b+"Hours";jb=b+"Day";Ga=b+"Date";Ra=b+"Month";Sa=b+"FullYear";Bb=c+"Minutes";Cb=c+"Hours";ib=c+"Date";Db=c+"Month";Eb=c+"FullYear"}
function K(){}function $(a,b,c){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||this.addLabel()}function kb(a,b){this.axis=a;if(b)this.options=b,this.id=b.id;return this}function Fb(a,b,c,d,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.stack=e;this.percent="percent"===f;this.alignOptions={align:b.align||(g?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(g?"middle":c?"bottom":"top"),y:l(b.y,g?4:c?14:-6),x:l(b.x,g?c?-6:6:0)};this.textAlign=
b.textAlign||(g?c?"right":"left":"center")}function lb(){this.init.apply(this,arguments)}function mb(a,b){var c=b.borderWidth,d=b.style,e=z(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,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}).hide().add();ka||this.label.shadow(b.shadow);this.shared=b.shared}function nb(a,
b){var c=ka?"":b.chart.zoomType;this.zoomX=/x/.test(c);this.zoomY=/y/.test(c);this.options=b;this.chart=a;this.init(a,b.tooltip)}function ob(a){this.init(a)}function pb(){this.init.apply(this,arguments)}var I,L=document,X=window,W=Math,B=W.round,ja=W.floor,za=W.ceil,D=W.max,da=W.min,Z=W.abs,la=W.cos,pa=W.sin,Aa=W.PI,Wa=2*Aa/360,ua=navigator.userAgent,Gb=X.opera,Ca=/msie/i.test(ua)&&!Gb,Ja=8===L.documentMode,Xa=/AppleWebKit/.test(ua),Ya=/Firefox/.test(ua),Hb=/(Mobile|Android|Windows Phone)/.test(ua),
va="http://www.w3.org/2000/svg",ra=!!L.createElementNS&&!!L.createElementNS(va,"svg").createSVGRect,Ob=Ya&&4>parseInt(ua.split("Firefox/")[1],10),ka=!ra&&!Ca&&!!L.createElement("canvas").getContext,Ka,Ba=L.documentElement.ontouchstart!==I,Ib={},qb=0,Va,ca,Za,Ia,rb,P,$a=function(){},Da=[],sa="div",ga="none",sb="rgba(192,192,192,"+(ra?1.0E-4:0.002)+")",Ab="millisecond",fb="second",Pa="minute",Ea="hour",ta="day",Qa="week",Fa="month",ya="year",tb="stroke-width",Ta,gb,hb,jb,Ga,Ra,Sa,Bb,Cb,ib,Db,Eb,qa=
{};X.Highcharts={};Za=function(a,b,c){if(!q(b)||isNaN(b))return"Invalid date";var a=l(a,"%Y-%m-%d %H:%M:%S"),d=new Date(b),e,f=d[hb](),g=d[jb](),h=d[Ga](),k=d[Ra](),o=d[Sa](),r=ca.lang,C=r.weekdays,b={a:C[g].substr(0,3),A:C[g],d:G(h),e:h,b:r.shortMonths[k],B:r.months[k],m:G(k+1),y:o.toString().substr(2,2),Y:o,H:G(f),I:G(f%12||12),l:f%12||12,M:G(d[gb]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:G(d.getSeconds()),L:G(B(b%1E3),3)};for(e in b)for(;-1!==a.indexOf("%"+e);)a=a.replace("%"+e,b[e]);return c?a.substr(0,
1).toUpperCase()+a.substr(1):a};Ua.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};P=aa(Ab,1,fb,1E3,Pa,6E4,Ea,36E5,ta,864E5,Qa,6048E5,Fa,26784E5,ya,31556952E3);rb={init:function(a,b,c){var b=b||"",d=a.shift,e=-1<b.indexOf("C"),f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,k,o=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&&(o(b),o(c));a.isArea&&(h=b.splice(b.length-6,6),k=c.splice(c.length-
6,6));if(d<=c.length/f)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(k));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){X.HighchartsAdapter=X.HighchartsAdapter||a&&{init:function(b){var c=
a.fx,d=c.step,e,f=a.Tween,g=f&&f.propHooks;a.extend(a.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});a.each(["cur","_default","width","height"],function(a,b){var e=d,r,C;"cur"===b?e=c.prototype:"_default"===b&&f&&(e=g[b],b="set");(r=e[b])&&(e[b]=function(c){c=a?c:this;C=c.elem;return C.attr?C.attr(c.prop,"cur"===b?I:c.now):r.apply(this,arguments)})});e=function(a){var c=a.elem,d;if(!a.started)d=b.init(c,c.d,c.toD),a.start=d[0],a.end=d[1],a.started=!0;c.attr("d",b.step(a.start,
a.end,a.pos,c.toD))};f?g.d={set:e}:d.d=e;this.each=Array.prototype.forEach?function(a,b){return Array.prototype.forEach.call(a,b)}:function(a,b){for(var c=0,d=a.length;c<d;c++)if(!1===b.call(a[c],a[c],c,a))return 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},merge:function(){var b=arguments;return a.extend(!0,null,b[0],b[1],b[2],b[3])},offset:function(b){return a(b).offset()},
addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){var e=L.removeEventListener?"removeEventListener":"detachEvent";L[e]&&!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;!Ca&&d&&(delete d.layerX,delete d.layerY);n(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;if(c.pageX===I)c.pageX=a.pageX,c.pageY=a.pageY;return c},animate:function(b,c,d){var e=a(b);if(c.d)b.toD=c.d,c.d=1;e.stop();e.animate(c,d)},stop:function(b){a(b).stop()}}})(X.jQuery);var ab=X.HighchartsAdapter,ma=ab||{};ab&&ab.init.call(ab,rb);var bb=ma.adapterRun,Pb=ma.getScript,Qb=ma.inArray,w=ma.each,Jb=ma.grep,Rb=ma.offset,La=ma.map,J=ma.merge,T=ma.addEvent,ha=ma.removeEvent,Q=ma.fireEvent,Kb=ma.washMouseEvent,
ub=ma.animate,cb=ma.stop,vb={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};ca={colors:"#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92".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:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.3.5/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/2.3.5/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',
fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0},select:{fillColor:"#FFFFFF",
lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:J(vb,{enabled:!1,formatter:function(){return this.y},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#3E576F",inactiveColor:"#CCC"},
shadow:!1,itemStyle:{cursor:"pointer",color:"#3E576F",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"1em"},style:{position:"absolute",backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,
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}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,shared:ka,snap:Hb?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",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:"10px"}}};var oa=ca.plotOptions,Ma=oa.line;p();var wa=function(a){var b=[],c;(function(a){(c=/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*\)/.exec(a))?b=[z(c[1]),z(c[2]),z(c[3]),parseFloat(c[4],10)]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(b=[z(c[1],16),z(c[2],16),z(c[3],
16),1])})(a);return{get:function(c){return b&&!isNaN(b[0])?"rgb"===c?"rgb("+b[0]+","+b[1]+","+b[2]+")":"a"===c?b[3]:"rgba("+b.join(",")+")":a},brighten:function(a){if(fa(a)&&0!==a){var c;for(c=0;3>c;c++)b[c]+=z(255*a),0>b[c]&&(b[c]=0),255<b[c]&&(b[c]=255)}return this},setOpacity:function(a){b[3]=a;return this}}};K.prototype={init:function(a,b){this.element="span"===b?F(b):L.createElementNS(va,b);this.renderer=a;this.attrSetters={}},animate:function(a,b,c){b=l(b,Ia,!0);cb(this);if(b){b=J(b);if(c)b.complete=
c;ub(this,a,b)}else this.attr(a),c&&c()},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName.toLowerCase(),k=this.renderer,o,r=this.attrSetters,C=this.shadows,N,U,j=this;ia(a)&&q(b)&&(c=a,a={},a[c]=b);if(ia(a))c=a,"circle"===h?c={x:"cx",y:"cy"}[c]||c:"strokeWidth"===c&&(c="stroke-width"),j=s(g,c)||this[c]||0,"d"!==c&&"visibility"!==c&&(j=parseFloat(j));else for(c in a)if(o=!1,d=a[c],e=r[c]&&r[c].call(this,d,c),!1!==e){e!==I&&(d=e);if("d"===c)d&&d.join&&(d=d.join(" ")),/(NaN| {2}|^$)/.test(d)&&
(d="M 0 0");else if("x"===c&&"text"===h){for(e=0;e<g.childNodes.length;e++)f=g.childNodes[e],s(f,"x")===s(g,"x")&&s(f,"x",d);this.rotation&&s(g,"transform","rotate("+this.rotation+" "+d+" "+z(a.y||s(g,"y"))+")")}else if("fill"===c)d=k.color(d,g,c);else if("circle"===h&&("x"===c||"y"===c))c={x:"cx",y:"cy"}[c]||c;else if("rect"===h&&"r"===c)s(g,{rx:d,ry:d}),o=!0;else if("translateX"===c||"translateY"===c||"rotation"===c||"verticalAlign"===c)o=U=!0;else if("stroke"===c)d=k.color(d,g,c);else if("dashstyle"===
c)if(c="stroke-dasharray",d=d&&d.toLowerCase(),"solid"===d)d=ga;else{if(d){d=d.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(e=d.length;e--;)d[e]=z(d[e])*a["stroke-width"];d=d.join(",")}}else if("isTracker"===c)this[c]=d;else if("width"===c)d=z(d);else if("align"===c)c="text-anchor",d={left:"start",center:"middle",
right:"end"}[d];else if("title"===c)e=g.getElementsByTagName("title")[0],e||(e=L.createElementNS(va,"title"),g.appendChild(e)),e.textContent=d;"strokeWidth"===c&&(c="stroke-width");if("stroke-width"===c&&0===d&&(Xa||k.forExport))d=1.0E-6;this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(N||(this.symbolAttr(a),N=!0),o=!0);if(C&&/^(width|height|visibility|x|y|d|transform)$/.test(c))for(e=C.length;e--;)s(C[e],c,"height"===c?D(d-(C[e].cutHeight||0),0):d);if(("width"===
c||"height"===c)&&"rect"===h&&0>d)d=0;this[c]=d;U&&this.updateTransform();"text"===c?(d!==this.textStr&&delete this.bBox,this.textStr=d,this.added&&k.buildText(this)):o||s(g,c,d)}return j},symbolAttr:function(a){var b=this;w("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=l(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+")":ga)},crisp:function(a,
b,c,d,e){var f,g={},h={},k,a=a||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;k=B(a)%2/2;h.x=ja(b||this.x||0)+k;h.y=ja(c||this.y||0)+k;h.width=ja((d||this.width||0)-2*k);h.height=ja((e||this.height||0)-2*k);h.strokeWidth=a;for(f in h)this[f]!==h[f]&&(this[f]=g[f]=h[f]);return g},css:function(a){var b=this.element,b=a&&a.width&&"text"===b.nodeName.toLowerCase(),c,d="",e=function(a,b){return"-"+b.toLowerCase()};if(a&&a.color)a.fill=a.color;this.styles=a=n(this.styles,a);ka&&b&&delete a.width;
if(Ca&&!ra)b&&delete a.width,M(this.element,a);else{for(c in a)d+=c.replace(/([A-Z])/g,e)+":"+a[c]+";";this.attr({style:d})}b&&this.added&&this.renderer.buildText(this);return this},on:function(a,b){if(Ba&&"click"===a)this.element.ontouchstart=function(a){a.preventDefault();b()};this.element["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},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=n(this.styles,a);M(this.element,a);return this},htmlGetBBox:function(){var a=this.element,b=this.bBox;if(!b){if("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:0.5,right:1}[g],k=g&&"left"!==g,o=this.shadows;if(c||d)M(b,{marginLeft:c,marginTop:d}),o&&w(o,function(a){M(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&w(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var r,C,o=this.rotation,N,U=0,j=1,U=0,i;N=z(this.textWidth);var m=this.xCorr||0;i=this.yCorr||0;var u=[o,g,b.innerHTML,this.textWidth].join();r={};if(u!==this.cTT){if(q(o))a.isSVG?(m=
Ca?"-ms-transform":Xa?"-webkit-transform":Ya?"MozTransform":Gb?"-o-transform":"",r[m]=r.transform="rotate("+o+"deg)"):(U=o*Wa,j=la(U),U=pa(U),r.filter=o?["progid:DXImageTransform.Microsoft.Matrix(M11=",j,", M12=",-U,", M21=",U,", M22=",j,", sizingMethod='auto expand')"].join(""):ga),M(b,r);r=l(this.elemWidth,b.offsetWidth);C=l(this.elemHeight,b.offsetHeight);if(r>N&&/[ \-]/.test(b.textContent||b.innerText))M(b,{width:N+"px",display:"block",whiteSpace:"normal"}),r=N;N=a.fontMetrics(b.style.fontSize).b;
i=0>j*U;m=(0>j&&-r)+U*N*(i?1-h:h);i=(0>U&&-C)-j*N*(o?i?h:1-h:1);k&&(m-=r*h*(0>j?-1:1),o&&(i-=C*h*(0>U?-1:1)),M(b,{textAlign:g}));this.xCorr=m;this.yCorr=i}M(b,{left:e+m+"px",top:f+i+"px"});if(Xa)C=b.offsetHeight;this.cTT=u}}else this.alignOnAdd=!0},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];c&&(a+=this.attr("width"),b+=this.attr("height"));(a||b)&&e.push("translate("+a+","+b+")");c?e.push("rotate(90) scale(-1,1)"):d&&e.push("rotate("+
d+" "+(this.x||0)+" "+(this.y||0)+")");e.length&&s(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){a?(this.alignOptions=a,this.alignByTranslate=b,c||this.renderer.alignedObjects.push(this)):(a=this.alignOptions,b=this.alignByTranslate);var c=l(c,this.renderer),d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};if("right"===d||"center"===d)f+=(c.width-(a.width||0))/{right:1,center:2}[d];
h[b?"translateX":"x"]=B(f);if("bottom"===e||"middle"===e)g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=B(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=this.rotation;c=this.element;var e=this.styles,f=d*Wa;if(!a){if(c.namespaceURI===va||b.forExport){try{a=c.getBBox?n({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(g){}if(!a||0>a.width)a={width:0,height:0}}else a=
this.htmlGetBBox();if(b.isSVG){b=a.width;c=a.height;if(Ca&&e&&"11px"===e.fontSize&&22.700000762939453===c)a.height=c=14;if(d)a.width=Z(c*pa(f))+Z(b*la(f)),a.height=Z(c*la(f))+Z(b*pa(f))}this.bBox=a}return a},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=s(f,"zIndex"),h;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;void 0!==this.textStr&&
b.buildText(this);if(g)c.handleZ=!0,g=z(g);if(c.handleZ)for(c=0;c<e.length;c++)if(a=e[c],b=s(a,"zIndex"),a!==f&&(z(b)>g||!q(g)&&q(b))){d.insertBefore(f,a);h=!0;break}h||d.appendChild(f);this.added=!0;Q(this,"add");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,e;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null;cb(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(e=0;e<a.stops.length;e++)a.stops[e]=
a.stops[e].destroy();a.stops=null}a.safeRemoveChild(b);c&&w(c,function(b){a.safeRemoveChild(b)});O(a.renderer.alignedObjects,a);for(d in a)delete a[d];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a,b,c){var d=[],e,f,g=this.element,h,k,o,r;if(a){k=l(a.width,3);o=(a.opacity||0.15)/k;r=this.parentInverted?"(-1,-1)":"("+l(a.offsetX,1)+", "+l(a.offsetY,1)+")";for(e=1;e<=k;e++){f=g.cloneNode(0);h=2*k+1-2*e;s(f,{isShadow:"true",
stroke:a.color||"black","stroke-opacity":o*e,"stroke-width":h,transform:"translate"+r,fill:ga});if(c)s(f,"height",D(s(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}};var xa=function(){this.init.apply(this,arguments)};xa.prototype={Element:K,init:function(a,b,c,d){var e=location,f;f=this.createElement("svg").attr({xmlns:va,version:"1.1"});a.appendChild(f.element);this.isSVG=!0;this.box=f.element;this.boxWrapper=f;this.alignedObjects=
[];this.url=(Ya||Xa)&&L.getElementsByTagName("base").length?e.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.defs=this.createElement("defs").add();this.forExport=d;this.gradients={};this.setSize(b,c,!1);var g;if(Ya&&a.getBoundingClientRect)this.subPixelFix=b=function(){M(a,{left:0,top:0});g=a.getBoundingClientRect();M(a,{left:za(g.left)-g.left+"px",top:za(g.top)-g.top+"px"})},b(),T(X,"resize",b)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=
this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();i(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy();this.subPixelFix&&ha(X,"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=l(a.textStr,"").toString().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),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=s(b,"x"),h=a.styles,k=h&&h.width&&z(h.width),o=h&&h.lineHeight,r,h=d.length,C=[];h--;)b.removeChild(d[h]);k&&!a.added&&this.box.appendChild(b);""===c[c.length-1]&&c.pop();w(c,function(c,d){var h,j=0,i,c=c.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");h=c.split("|||");w(h,function(c){if(""!==c||1===h.length){var N={},m=L.createElementNS(va,"tspan"),l;e.test(c)&&
(l=c.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),s(m,"style",l));f.test(c)&&(s(m,"onclick",'location.href="'+c.match(f)[1]+'"'),M(m,{cursor:"pointer"}));c=(c.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");m.appendChild(L.createTextNode(c));j?N.dx=3:N.x=g;if(!j){if(d){!ra&&a.renderer.forExport&&M(m,{display:"block"});i=X.getComputedStyle&&z(X.getComputedStyle(r,null).getPropertyValue("line-height"));if(!i||isNaN(i)){var u;if(!(u=o))if(!(u=r.offsetHeight))C[d]=b.getBBox?
b.getBBox().height:a.renderer.fontMetrics(b.style.fontSize).h,u=B(C[d]-(C[d-1]||0))||18;i=u}s(m,"dy",i)}r=m}s(m,N);b.appendChild(m);j++;if(k)for(var c=c.replace(/([^\^])-/g,"$1- ").split(" "),t=[];c.length||t.length;)delete a.bBox,u=a.getBBox().width,N=u>k,!N||1===c.length?(c=t,t=[],c.length&&(m=L.createElementNS(va,"tspan"),s(m,{dy:o||16,x:g}),l&&s(m,"style",l),b.appendChild(m),u>k&&(k=u))):(m.removeChild(m.firstChild),t.unshift(c.pop())),c.length&&m.appendChild(L.createTextNode(c.join(" ").replace(/- /g,
"-")))}})})},button:function(a,b,c,d,e,f,g){var h=this.label(a,b,c),k=0,o,r,C,N,j,a={x1:0,y1:0,x2:0,y2:1},e=J(aa(tb,1,"stroke","#999","fill",aa("linearGradient",a,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",aa("color","black")),e);C=e.style;delete e.style;f=J(e,aa("stroke","#68A","fill",aa("linearGradient",a,"stops",[[0,"#FFF"],[1,"#ACF"]])),f);N=f.style;delete f.style;g=J(e,aa("stroke","#68A","fill",aa("linearGradient",a,"stops",[[0,"#9BD"],[1,"#CDF"]])),g);j=g.style;delete g.style;
T(h.element,"mouseenter",function(){h.attr(f).css(N)});T(h.element,"mouseleave",function(){o=[e,f,g][k];r=[C,N,j][k];h.attr(o).css(r)});h.setState=function(a){(k=a)?2===a&&h.attr(g).css(j):h.attr(e).css(C)};return h.on("click",function(){d.call(h)}).attr(e).css(n({cursor:"default"},C))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=B(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=B(a[2])+b%2/2);return a},path:function(a){var b={fill:ga};V(a)?b.d=a:ba(a)&&n(b,a);return this.createElement("path").attr(b)},
circle:function(a,b,c){a=ba(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(ba(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;return this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){e=ba(a)?a.r:e;e=this.createElement("rect").attr({rx:e,ry:e,fill:ga});return e.attr(ba(a)?a:e.crisp(f,a,b,D(c,0),D(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[l(c,
!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return q(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:ga};1<arguments.length&&n(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(B(b),
B(c),d,e,f),k=/^url\((.*?)\)$/,o,r;h?(g=this.path(h),n(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&n(g,f)):k.test(a)&&(r=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(B((d-b[0])/2),B((e-b[1])/2)))},o=a.match(k)[1],a=Ib[o],g=this.image(o).attr({x:b,y:c}),a?r(g,a):(g.attr({width:0,height:0}),F("img",{onload:function(){r(g,Ib[o]=[this.width,this.height])},src:o})));return g},symbols:{circle:function(a,b,c,d){var e=0.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,g=e.end-1.0E-6,d=e.innerR,h=e.open,k=la(f),o=pa(f),r=la(g),g=pa(g),e=e.end-f<Aa?0:1;return["M",a+c*k,
b+c*o,"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*k,b+d*o,h?"":"Z"]}},clipRect:function(a,b,c,d){var e="highcharts-"+qb++,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},color:function(a,b,c){var d=this,e,f=/^rgba/,g,h,k,o,r,C,N,j=[];a&&a.linearGradient?g="linearGradient":a&&a.radialGradient&&(g="radialGradient");if(g){c=a[g];h=d.gradients;o=a.stops;b=b.radialReference;V(c)&&(a[g]=c={x1:c[0],y1:c[1],x2:c[2],
y2:c[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===g&&b&&!q(c.gradientUnits)&&n(c,{cx:b[0]-b[2]/2+c.cx*b[2],cy:b[1]-b[2]/2+c.cy*b[2],r:c.r*b[2],gradientUnits:"userSpaceOnUse"});for(N in c)"id"!==N&&j.push(N,c[N]);for(N in o)j.push(o[N]);j=j.join(",");h[j]?a=h[j].id:(c.id=a="highcharts-"+qb++,h[j]=k=d.createElement(g).attr(c).add(d.defs),k.stops=[],w(o,function(a){f.test(a[1])?(e=wa(a[1]),r=e.get("rgb"),C=e.get("a")):(r=a[1],C=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":r,
"stop-opacity":C}).add(k);k.stops.push(a)}));return"url("+d.url+"#"+a+")"}if(f.test(a))return e=wa(a),s(b,c+"-opacity",e.get("a")),e.get("rgb");b.removeAttribute(c+"-opacity");return a},text:function(a,b,c,d){var e=ca.chart.style,f=ka||!ra&&this.forExport;if(d&&!this.forExport)return this.html(a,b,c);b=B(l(b,0));c=B(l(c,0));a=this.createElement("text").attr({x:b,y:c,text:a}).css({fontFamily:e.fontFamily,fontSize:e.fontSize});f&&a.css({position:"absolute"});a.x=b;a.y=c;return a},html:function(a,b,
c){var d=ca.chart.style,e=this.createElement("span"),f=e.attrSetters,g=e.element,h=e.renderer;f.text=function(a){a!==g.innerHTML&&delete this.bBox;g.innerHTML=a;return!1};f.x=f.y=f.align=function(a,b){"align"===b&&(b="textAlign");e[b]=a;e.htmlUpdateTransform();return!1};e.attr({text:a,x:B(b),y:B(c)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize});e.css=e.htmlCss;if(h.isSVG)e.add=function(a){var b,c=h.box.parentNode,d=[];if(a){if(b=a.div,!b){for(;a;)d.push(a),
a=a.parentGroup;w(d.reverse(),function(a){var d;b=a.div=a.div||F(sa,{className:s(a.element,"class")},{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c);d=b.style;n(a.attrSetters,{translateX:function(a){d.left=a+"px"},translateY:function(a){d.top=a+"px"},visibility:function(a,b){d[b]=a}})})}}else b=c;b.appendChild(g);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e};return e},fontMetrics:function(a){var a=z(a||11),a=24>a?a+4:B(1.2*a),b=B(0.8*a);return{h:a,b:b}},
label:function(a,b,c,d,e,f,g,h,k){function o(){var a;a=u.element.style;t=(void 0===v||void 0===G||i.styles.textAlign)&&u.getBBox();i.width=(v||t.width||0)+2*p;i.height=(G||t.height||0)+2*p;$=p+m.fontMetrics(a&&a.fontSize).b;if(D){if(!l)a=h?-$:0,i.box=l=d?m.symbol(d,-y*p,a,i.width,i.height):m.rect(-y*p,a,i.width,i.height,0,s[tb]),l.add(i);l.attr(J({width:i.width,height:i.height},s));s=null}}function r(){var a=i.styles,a=a&&a.textAlign,b=p*(1-y),c;c=h?0:$;if(q(v)&&("center"===a||"right"===a))b+={center:0.5,
right:1}[a]*(v-t.width);(b!==u.x||c!==u.y)&&u.attr({x:b,y:c});u.x=b;u.y=c}function C(a,b){l?l.attr(a,b):s[a]=b}function j(){u.add(i);i.attr({text:a,x:b,y:c});l&&q(e)&&i.attr({anchorX:e,anchorY:f})}var m=this,i=m.g(k),u=m.text("",0,0,g).attr({zIndex:1}),l,t,y=0,p=3,v,G,E,Lb,H=0,s={},$,g=i.attrSetters,D;T(i,"add",j);g.width=function(a){v=a;return!1};g.height=function(a){G=a;return!1};g.padding=function(a){q(a)&&a!==p&&(p=a,r());return!1};g.align=function(a){y={left:0,center:0.5,right:1}[a];return!1};
g.text=function(a,b){u.attr(b,a);o();r();return!1};g[tb]=function(a,b){D=!0;H=a%2/2;C(b,a);return!1};g.stroke=g.fill=g.r=function(a,b){"fill"===b&&(D=!0);C(b,a);return!1};g.anchorX=function(a,b){e=a;C(b,a+H-E);return!1};g.anchorY=function(a,b){f=a;C(b,a-Lb);return!1};g.x=function(a){i.x=a;a-=y*((v||t.width)+p);E=B(a);i.attr("translateX",E);return!1};g.y=function(a){Lb=i.y=B(a);i.attr("translateY",a);return!1};var x=i.css;return n(i,{css:function(a){if(a){var b={},a=J({},a);w("fontSize,fontWeight,fontFamily,color,lineHeight,width".split(","),
function(c){a[c]!==I&&(b[c]=a[c],delete a[c])});u.css(b)}return x.call(i,a)},getBBox:function(){return{width:t.width+2*p,height:t.height+2*p,x:t.x-p,y:t.y-p}},shadow:function(a){l&&l.shadow(a);return i},destroy:function(){ha(i,"add",j);ha(i.element,"mouseenter");ha(i.element,"mouseleave");u&&(u=u.destroy());l&&(l=l.destroy());K.prototype.destroy.call(i);i=m=o=r=C=j=null}})}};Ka=xa;var Na;if(!ra&&!ka){var wb={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"];
("shape"===b||b===sa)&&d.push("left:0;top:0;width:1px;height:1px;");Ja&&d.push("visibility: ",b===sa?"hidden":"visible");c.push(' style="',d.join(""),'"/>');if(b)c=b===sa||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=F(c);this.renderer=a;this.attrSetters={}},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();Q(this,"add");return this},
updateTransform:K.prototype.htmlUpdateTransform,attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,k=this.renderer,o=this.symbolName,r,C=this.shadows,j,i=this.attrSetters,m=this;ia(a)&&q(b)&&(c=a,a={},a[c]=b);if(ia(a))c=a,m="strokeWidth"===c||"stroke-width"===c?this.strokeweight:this[c];else for(c in a)if(d=a[c],j=!1,e=i[c]&&i[c].call(this,d,c),!1!==e&&null!==d){e!==I&&(d=e);if(o&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c))r||(this.symbolAttr(a),r=!0),j=!0;
else if("d"===c){d=d||[];this.d=d.join(" ");e=d.length;for(j=[];e--;)j[e]=fa(d[e])?B(10*d[e])-5:"Z"===d[e]?"x":d[e];d=j.join(" ")||"x";f.path=d;if(C)for(e=C.length;e--;)C[e].path=C[e].cutOff?this.cutOffPath(d,C[e].cutOff):d;j=!0}else if("visibility"===c){if(C)for(e=C.length;e--;)C[e].style[c]=d;"DIV"===h&&(d="hidden"===d?"-999em":0,c="top");g[c]=d;j=!0}else if("zIndex"===c)d&&(g[c]=d),j=!0;else if("width"===c||"height"===c)d=D(0,d),this[c]=d,this.updateClipping?(this[c]=d,this.updateClipping()):g[c]=
d,j=!0;else if("x"===c||"y"===c)this[c]=d,g[{x:"left",y:"top"}[c]]=d;else if("class"===c)f.className=d;else if("stroke"===c)d=k.color(d,f,c),c="strokecolor";else if("stroke-width"===c||"strokeWidth"===c)f.stroked=d?!0:!1,c="strokeweight",this[c]=d,fa(d)&&(d+="px");else if("dashstyle"===c)(f.getElementsByTagName("stroke")[0]||F(k.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid",this.dashstyle=d,j=!0;else if("fill"===c)if("SPAN"===h)g.color=d;else{if("IMG"!==h)f.filled=d!==ga?!0:!1,d=k.color(d,f,
c,this),c="fillcolor"}else if("shape"===h&&"rotation"===c)this[c]=d,f.style.left=-B(pa(d*Wa)+1)+"px",f.style.top=B(la(d*Wa))+"px";else if("translateX"===c||"translateY"===c||"rotation"===c)this[c]=d,this.updateTransform(),j=!0;else if("text"===c)this.bBox=null,f.innerHTML=d,j=!0;j||(Ja?f[c]=d:s(f,c,d))}return m},clip:function(a){var b=this,c,d=b.element,e=d.parentNode;a?(c=a.members,O(c,b),c.push(b),b.destroyClip=function(){O(c,b)},e&&"highcharts-tracker"===e.className&&!Ja&&M(d,{visibility:"hidden"}),
a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:Ja?"inherit":"rect(auto)"});return b.css(a)},css:K.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&m(a)},destroy:function(){this.destroyClip&&this.destroyClip();return K.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;)c=a[b],c.parentNode.removeChild(c)},on:function(a,b){this.element["on"+a]=function(){var a=X.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,
a=a.split(/[ ,]/);c=a.length;if(9===c||11===c)a[c-4]=a[c-2]=z(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,k=f.style,o,r=f.path,C,j,i,m;r&&"string"!==typeof r.value&&(r="x");j=r;if(a){i=l(a.width,3);m=(a.opacity||0.15)/i;for(e=1;3>=e;e++){C=2*i+1-2*e;c&&(j=this.cutOffPath(r.value,C+0.5));o=['<shape isShadow="true" strokeweight="',C,'" filled="false" path="',j,'" coordsize="10 10" style="',f.style.cssText,'" />'];h=F(g.prepVML(o),null,{left:z(k.left)+
l(a.offsetX,1),top:z(k.top)+l(a.offsetY,1)});if(c)h.cutOff=C+1;o=['<stroke color="',a.color||"black",'" opacity="',m*e,'"/>'];F(g.prepVML(o),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this}},wb=S(K,wb),Sb={Element:wb,isIE8:-1<ua.indexOf("MSIE 8.0"),init:function(a,b,c){var d,e;this.alignedObjects=[];d=this.createElement(sa);e=d.element;e.style.position="relative";a.appendChild(d.element);this.box=e;this.boxWrapper=d;this.setSize(b,c,!1);
if(!L.namespaces.hcv)L.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),L.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=ba(a);return n(e,{members:[],left:f?a.x:a,top:f?a.y:b,width:f?a.width:c,height:f?a.height:d,getCSS:function(a){var b=a.inverted,c=this.top,d=this.left,e=d+this.width,f=c+this.height,
c={clip:"rect("+B(b?d:c)+"px,"+B(b?f:e)+"px,"+B(b?e:f)+"px,"+B(b?c:d)+"px)"};!b&&Ja&&"IMG"!==a.element.nodeName&&n(c,{width:e+"px",height:f+"px"});return c},updateClipping:function(){w(e.members,function(a){a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,k,o=ga;a&&a.linearGradient?k="gradient":a&&a.radialGradient&&(k="pattern");if(k){var r,C,j=a.linearGradient||a.radialGradient,i,m,u,l,t,p="",a=a.stops,y,v=[],G=function(){h=['<fill colors="'+v.join(",")+'" opacity="',u,'" o:opacity2="',
m,'" type="',k,'" ',p,'focus="100%" method="any" />'];F(e.prepVML(h),null,null,b)};i=a[0];y=a[a.length-1];0<i[0]&&a.unshift([0,i[1]]);1>y[0]&&a.push([1,y[1]]);w(a,function(a,b){g.test(a[1])?(f=wa(a[1]),r=f.get("rgb"),C=f.get("a")):(r=a[1],C=1);v.push(100*a[0]+"% "+r);b?(u=C,l=r):(m=C,t=r)});if("fill"===c)if("gradient"===k)c=j.x1||j[0]||0,a=j.y1||j[1]||0,i=j.x2||j[2]||0,j=j.y2||j[3]||0,p='angle="'+(90-180*W.atan((j-a)/(i-c))/Aa)+'"',G();else{var o=j.r,n=2*o,q=2*o,E=j.cx,K=j.cy,H=b.radialReference,
s,o=function(){H&&(s=d.getBBox(),E+=(H[0]-s.x)/s.width-0.5,K+=(H[1]-s.y)/s.height-0.5,n*=H[2]/s.width,q*=H[2]/s.height);p='src="'+ca.global.VMLRadialGradientURL+'" size="'+n+","+q+'" origin="0.5,0.5" position="'+E+","+K+'" color2="'+t+'" ';G()};d.added?o():T(d,"add",o);o=l}else o=r}else if(g.test(a)&&"IMG"!==b.tagName)f=wa(a),h=["<",c,' opacity="',f.get("a"),'"/>'],F(this.prepVML(h),null,null,b),o=f.get("rgb");else{o=b.getElementsByTagName(c);if(o.length)o[0].opacity=1;o=a}return o},prepVML:function(a){var b=
this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:");return a},text:xa.prototype.html,path:function(a){var b={coordsize:"10 10"};V(a)?b.d=a:ba(a)&&n(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){return this.symbol("circle").attr({x:a-
c,y:b-c,width:2*c,height:2*c})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement(sa).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});1<arguments.length&&f.attr({x:b,y:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(ba(a))b=a.y,c=a.width,d=a.height,f=a.strokeWidth,a=a.x;var g=this.symbol("rect");g.r=e;return g.attr(g.crisp(f,a,b,D(c,0),D(d,0)))},invertChild:function(a,b){var c=b.style;M(a,{flip:"x",
left:z(c.width)-1,top:z(c.height)-1,rotation:-90})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=la(f),d=pa(f),k=la(g),o=pa(g),r=e.innerR,j=0.08/h,i=r&&0.1/r||0;if(0===g-f)return["x"];2*Aa-g+f<j?k=-j:g-f<i&&(k=la(f+i));f=["wa",a-h,b-h,a+h,b+h,a+h*c,b+h*d,a+h*k,b+h*o];e.open&&!r&&f.push("e","M",a,b);f.push("at",a-r,b-r,a+r,b+r,a+r*k,b+r*o,a+r*c,b+r*d,"x","e");return f},circle:function(a,b,c,d){return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){var f=
a+c,g=b+d,h;!q(e)||!e.r?f=xa.prototype.symbols.square.apply(0,arguments):(h=da(e.r,c,d),f=["M",a+h,b,"L",f-h,b,"wa",f-2*h,b,f,b+2*h,f-h,b,f,b+h,"L",f,g-h,"wa",f-2*h,g-2*h,f,g,f,g-h,f-h,g,"L",a+h,g,"wa",a,g-2*h,a+2*h,g,a+h,g,a,g-h,"L",a,b+h,"wa",a,b,a+2*h,b+2*h,a,b+h,a+h,b,"x","e"]);return f}}};Na=function(){this.init.apply(this,arguments)};Na.prototype=J(xa.prototype,Sb);Ka=Na}var db,Mb;if(ka)db=function(){va="http://www.w3.org/1999/xhtml"},db.prototype.symbols={},Mb=function(){function a(){var a=
b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){0===b.length&&Pb(d,a);b.push(c)}}}();Ka=Na||db||xa;$.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.horiz,e=a.categories,f=this.pos,g=b.labels,h=a.tickPositions,d=e&&d&&e.length&&!g.step&&!g.staggerLines&&!g.rotation&&c.plotWidth/h.length||!d&&c.plotWidth/2,k=f===h[0],o=f===h[h.length-1],r=e&&q(e[f])?e[f]:f,e=this.label,h=h.info,j;a.isDatetimeAxis&&h&&(j=b.dateTimeLabelFormats[h.higherRanks[f]||h.unitName]);
this.isFirst=k;this.isLast=o;b=a.labelFormatter.call({axis:a,chart:c,isFirst:k,isLast:o,dateTimeLabelFormat:j,value:a.isLog?y(Y(r)):r});f=d&&{width:D(1,B(d-2*(g.padding||10)))+"px"};f=n(f,g.style);if(q(e))e&&e.attr({text:b}).css(f);else{d={align:g.align};if(fa(g.rotation))d.rotation=g.rotation;this.label=q(b)&&g.enabled?c.renderer.text(b,0,0,g.useHTML).attr(d).css(f).add(a.labelGroup):null}},getLabelSize:function(){var a=this.label,b=this.axis;return a?(this.labelBBox=a.getBBox())[b.horiz?"height":
"width"]:0},getLabelSides:function(){var a=this.axis.options.labels,b=this.labelBBox.width,a=b*{left:0,center:0.5,right:1}[a.align]-a.x;return[-a,b-a]},handleOverflow:function(a,b){var c=!0,d=this.axis,e=d.chart,f=this.isFirst,g=this.isLast,h=b.x,k=d.reversed,o=d.tickPositions;if(f||g){var r=this.getLabelSides(),j=r[0],r=r[1],e=e.plotLeft,i=e+d.len,o=(d=d.ticks[o[a+(f?1:-1)]])&&d.label.xy&&d.label.xy.x+d.getLabelSides()[f?0:1];f&&!k||g&&k?h+j<e&&(h=e-j,d&&h+r>o&&(c=!1)):h+r>i&&(h=i-r,d&&h+j<o&&(c=
!1));b.x=h}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 k=this.axis,o=k.transA,r=k.reversed,k=k.staggerLines,a=a+e.x-(f&&d?f*o*(r?-1:1):0),b=b+e.y-(f&&!d?f*o*(r?1:-1):0);q(e.y)||
(b+=0.9*z(c.styles.lineHeight)-c.getBBox().height/2);k&&(b+=16*(g/(h||1)%k));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){var c=this.axis,d=c.options,e=c.chart.renderer,f=c.horiz,g=this.type,h=this.label,k=this.pos,o=d.labels,r=this.gridLine,j=g?g+"Grid":"grid",i=g?g+"Tick":"tick",m=d[j+"LineWidth"],u=d[j+"LineColor"],t=d[j+"LineDashStyle"],p=d[i+"Length"],j=d[i+"Width"]||0,y=d[i+"Color"],v=d[i+"Position"],i=this.mark,
w=o.step,G=!0,n=c.tickmarkOffset,q=this.getPosition(f,k,n,b),E=q.x,q=q.y,H=c.staggerLines;if(m){k=c.getPlotLinePath(k+n,m,b);if(r===I){r={stroke:u,"stroke-width":m};if(t)r.dashstyle=t;if(!g)r.zIndex=1;this.gridLine=r=m?e.path(k).attr(r).add(c.gridGroup):null}if(!b&&r&&k)r[this.isNew?"attr":"animate"]({d:k})}if(j&&p)"inside"===v&&(p=-p),c.opposite&&(p=-p),g=this.getMarkPath(E,q,p,j,f,e),i?i.animate({d:g}):this.mark=e.path(g).attr({stroke:y,"stroke-width":j}).add(c.axisGroup);if(h&&!isNaN(E))h.xy=q=
this.getLabelPosition(E,q,h,f,o,n,a,w),this.isFirst&&!l(d.showFirstLabel,1)||this.isLast&&!l(d.showLastLabel,1)?G=!1:!H&&f&&"justify"===o.overflow&&!this.handleOverflow(a,q)&&(G=!1),w&&a%w&&(G=!1),G?(h[this.isNew?"attr":"animate"](q),this.isNew=!1):h.attr("y",-9999)},destroy:function(){i(this,this.axis)}};kb.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,k=e.to,o=e.from,r=q(o)&&q(k),i=e.value,m=e.dashStyle,U=a.svgElem,u=[],
t,p=e.color,y=e.zIndex,v=e.events,w=b.chart.renderer;b.isLog&&(o=R(o),k=R(k),i=R(i));if(h){if(u=b.getPlotLinePath(i,h),d={stroke:p,"stroke-width":h},m)d.dashstyle=m}else if(r){if(o=D(o,b.min-d),k=da(k,b.max+d),u=b.getPlotBandPath(o,k,e),d={fill:p},e.borderWidth)d.stroke=e.borderColor,d["stroke-width"]=e.borderWidth}else return;if(q(y))d.zIndex=y;if(U)u?U.animate({d:u},null,U.onGetPath):(U.hide(),U.onGetPath=function(){U.show()});else if(u&&u.length&&(a.svgElem=U=w.path(u).attr(d).add(),v))for(t in e=
function(b){U.on(b,function(c){v[b].apply(a,[c])})},v)e(t);if(f&&q(f.text)&&u&&u.length&&0<b.width&&0<b.height){f=J({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);if(!g)a.label=g=w.text(f.text,0,0).attr({align:f.textAlign||f.align,rotation:f.rotation,zIndex:y}).css(f.style).add();b=[u[1],u[4],l(u[6],u[1])];u=[u[2],u[5],l(u[7],u[2])];c=na(b);r=na(u);g.align(f,!1,{x:c,y:r,width:j(b)-c,height:j(u)-r});g.show()}else g&&g.hide();return a},destroy:function(){O(this.axis.plotLinesAndBands,
this);i(this,this.axis)}};Fb.prototype={destroy:function(){i(this,this.axis)},setTotal:function(a){this.cum=this.total=a},render:function(a){var b=this.options.formatter.call(this);this.label?this.label.attr({text:b,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(b,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.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(this.percent?
100:this.total,0,0,0,1),c=c.translate(0),c=Z(g-c),h=d.xAxis[0].translate(this.x)+a,k=d.plotHeight,f={x:e?f?g:g-c:h,y:e?k-h-b:f?k-g-c:k-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e.attr({visibility:!1===this.options.crop||d.isInsidePlot(f.x,f.y)?ra?"inherit":"visible":"hidden"})}};lb.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:vb,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,
tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:vb.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",
x:0,y:-5},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.xOrY=(this.isXAxis=c)?"x":"y";this.opposite=b.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(b);var d=this.options,e=d.type,f="datetime"===e;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.staggerLines=this.horiz&&d.labels.staggerLines;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.categories=d.categories;this.isLog=
"logarithmic"===e;this.isLinked=q(d.linkedTo);this.isDatetimeAxis=f;this.tickmarkOffset=d.categories&&"between"===d.tickmarkPlacement?0.5:0;this.ticks={};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.min=this.max=null;var g,d=this.options.events;a.axes.push(this);a[c?"xAxis":"yAxis"].push(this);this.series=[];if(a.inverted&&c&&this.reversed===I)this.reversed=
!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;this.addPlotLine=this.addPlotBand=this.addPlotBandOrLine;for(g in d)T(this,g,d[g]);if(this.isLog)this.val2lin=R,this.lin2val=Y},setOptions:function(a){this.options=J(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],J(ca[this.isXAxis?"xAxis":"yAxis"],a))},defaultLabelFormatter:function(){var a=
this.axis,b=this.value,c=this.dateTimeLabelFormat,d=ca.lang.numericSymbols,e=d&&d.length,f,g=a.isLog?b:a.tickInterval;if(a.categories)f=b;else if(c)f=Za(c,b);else if(e&&1E3<=g)for(;e--&&f===I;)a=Math.pow(1E3,e+1),g>=a&&null!==d[e]&&(f=v(b/a,-1)+d[e]);f===I&&(f=1E3<=b?v(b,0):v(b,-1));return f},getSeriesExtremes:function(){var a=this,b=a.chart,c=a.stacks,d=[],e=[],f;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=null;w(a.series,function(g){if(g.visible||!b.options.chart.ignoreHiddenSeries){var h=g.options,
k,o,r,i,m,u,t,p,v,w=h.threshold,G,n=[],E=0;a.hasVisibleSeries=!0;if(a.isLog&&0>=w)w=h.threshold=null;if(a.isXAxis){if(h=g.xData,h.length)a.dataMin=da(l(a.dataMin,h[0]),na(h)),a.dataMax=D(l(a.dataMax,h[0]),j(h))}else{var H,K,s,$=g.cropped,B=g.xAxis.getExtremes(),x=!!g.modifyValue;k=h.stacking;a.usePercentage="percent"===k;if(k)m=h.stack,i=g.type+l(m,""),u="-"+i,g.stackKey=i,o=d[i]||[],d[i]=o,r=e[u]||[],e[u]=r;if(a.usePercentage)a.dataMin=0,a.dataMax=99;h=g.processedXData;t=g.processedYData;G=t.length;
for(f=0;f<G;f++)if(p=h[f],v=t[f],k&&(K=(H=v<w)?r:o,s=H?u:i,q(K[p])?(K[p]=y(K[p]+v),v=[v,K[p]]):K[p]=v,c[s]||(c[s]={}),c[s][p]||(c[s][p]=new Fb(a,a.options.stackLabels,H,p,m,k)),c[s][p].setTotal(K[p])),null!==v&&v!==I&&(x&&(v=g.modifyValue(v)),$||(h[f+1]||p)>=B.min&&(h[f-1]||p)<=B.max))if(p=v.length)for(;p--;)null!==v[p]&&(n[E++]=v[p]);else n[E++]=v;if(!a.usePercentage&&n.length)a.dataMin=da(l(a.dataMin,n[0]),na(n)),a.dataMax=D(l(a.dataMax,n[0]),j(n));if(q(w))if(a.dataMin>=w)a.dataMin=w,a.ignoreMinPadding=
!0;else if(a.dataMax<w)a.dataMax=w,a.ignoreMaxPadding=!0}}})},translate:function(a,b,c,d,e,f){var g=this.len,h=1,k=0,o=d?this.oldTransA:this.transA,d=d?this.oldMin:this.min,e=this.options.ordinal||this.isLog&&e;if(!o)o=this.transA;c&&(h*=-1,k=g);this.reversed&&(h*=-1,k-=h*g);b?(this.reversed&&(a=g-a),a=a/o+d,e&&(a=this.lin2val(a))):(e&&(a=this.val2lin(a)),a=h*(a-d)*o+k+h*this.minPixelPadding+(f?o*this.pointRange/2:0));return a},getPlotLinePath:function(a,b,c){var d=this.chart,e=this.left,f=this.top,
g,h,k,a=this.translate(a,null,null,c),o=c&&d.oldChartHeight||d.chartHeight,r=c&&d.oldChartWidth||d.chartWidth,j;g=this.transB;c=h=B(a+g);g=k=B(o-a-g);if(isNaN(a))j=!0;else if(this.horiz){if(g=f,k=o-this.bottom,c<e||c>e+this.width)j=!0}else if(c=e,h=r-this.right,g<f||g>f+this.height)j=!0;return j?null:d.renderer.crispLine(["M",c,g,"L",h,k],b||0)},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},getLinearTickPositions:function(a,
b,c){for(var d,b=y(ja(b/a)*a),c=y(za(c/a)*a),e=[];b<=c;){e.push(b);b=y(b+a);if(b===d)break;d=b}return e},getLogTickPositions:function(a,b,c,d){var e=this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null;if(0.5<=a)a=B(a),g=this.getLinearTickPositions(a,b,c);else if(0.08<=a)for(var f=ja(b),h,k,o,r,j,e=0.3<a?[1,2,4]:0.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!j;f++){k=e.length;for(h=0;h<k&&!j;h++)o=R(Y(f)*e[h]),o>b&&g.push(r),r>c&&(j=!0),r=o}else if(b=Y(b),c=Y(c),a=e[d?"minorTickInterval":
"tickInterval"],a=l("auto"===a?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=E(a,null,W.pow(10,ja(W.log(a)/W.LN10))),g=La(this.getLinearTickPositions(a,b,c),R),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e;if(this.isLog){e=b.length;for(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(x(H(c),this.min,this.max,a.startOfWeek));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,k,o;if(this.isXAxis&&this.minRange===I&&!this.isLog)q(a.min)||q(a.max)?this.minRange=null:(w(this.series,function(a){k=a.xData;for(g=o=a.xIncrement?1:k.length-1;0<g;g--)if(h=k[g]-k[g-1],f===I||h<f)f=h}),this.minRange=da(5*f,
this.dataMax-this.dataMin));if(c-b<this.minRange){var r=this.minRange;d=(r-c+b)/2;d=[b-d,l(a.min,b-d)];if(e)d[2]=this.dataMin;b=j(d);c=[b+r,l(a.max,b+r)];if(e)c[2]=this.dataMax;c=na(c);c-b<r&&(d[0]=c-r,d[1]=l(a.min,c-r),b=j(d))}this.min=b;this.max=c},setAxisTranslation:function(){var a=this.max-this.min,b=0,c,d=0,e=0,f=this.linkedParent,g=this.transA;if(this.isXAxis)f?(d=f.minPointOffset,e=f.pointRangePadding):w(this.series,function(a){var f=a.pointRange,g=a.options.pointPlacement,r=a.closestPointRange;
b=D(b,f);d=D(d,g?0:f/2);e=D(e,"on"===g?0:f);!a.noSharedTooltip&&q(r)&&(c=q(c)?da(c,r):r)}),this.minPointOffset=d,this.pointRangePadding=e,this.pointRange=b,this.closestPointRange=c;this.oldTransA=g;this.translationSlope=this.transA=g=this.len/(a+e||1);this.transB=this.horiz?this.left:this.bottom;this.minPixelPadding=g*d},setTickPositions:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,h=b.isLinked,k=b.options.tickPositioner,o=d.maxPadding,r=d.minPadding,j=d.tickInterval,
i=d.minTickInterval,m=d.tickPixelInterval,p=b.categories;h?(b.linkedParent=c[g?"xAxis":"yAxis"][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=l(c.min,c.dataMin),b.max=l(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&u(11,1)):(b.min=l(b.userMin,d.min,b.dataMin),b.max=l(b.userMax,d.max,b.dataMax));if(e)!a&&0>=da(b.min,l(b.dataMin,b.min))&&u(10,1),b.min=y(R(b.min)),b.max=y(R(b.max));if(b.range&&(b.userMin=b.min=D(b.min,b.max-b.range),b.userMax=b.max,a))b.range=null;b.adjustForMinRange();if(!p&&
!b.usePercentage&&!h&&q(b.min)&&q(b.max)&&(c=b.max-b.min)){if(!q(d.min)&&!q(b.userMin)&&r&&(0>b.dataMin||!b.ignoreMinPadding))b.min-=c*r;if(!q(d.max)&&!q(b.userMax)&&o&&(0<b.dataMax||!b.ignoreMaxPadding))b.max+=c*o}b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:h&&!j&&m===b.linkedParent.options.tickPixelInterval?b.linkedParent.tickInterval:l(j,p?1:(b.max-b.min)*m/(b.len||1));g&&!a&&w(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(a);b.beforeSetTickPositions&&
b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);if(!j&&b.tickInterval<i)b.tickInterval=i;if(!f&&!e&&(a=W.pow(10,ja(W.log(b.tickInterval)/W.LN10)),!j))b.tickInterval=E(b.tickInterval,null,a,d);b.minorTickInterval="auto"===d.minorTickInterval&&b.tickInterval?b.tickInterval/5:d.minorTickInterval;b.tickPositions=k=d.tickPositions||k&&k.apply(b,[b.min,b.max]);if(!k)k=f?(b.getNonLinearTimeTicks||x)(H(b.tickInterval,d.units),b.min,b.max,d.startOfWeek,
b.ordinalPositions,b.closestPointRange,!0):e?b.getLogTickPositions(b.tickInterval,b.min,b.max):b.getLinearTickPositions(b.tickInterval,b.min,b.max),b.tickPositions=k;if(!h)e=k[0],f=k[k.length-1],h=b.minPointOffset||0,d.startOnTick?b.min=e:b.min-h>e&&k.shift(),d.endOnTick?b.max=f:b.max+h<f&&k.pop(),1===k.length&&(b.min-=1.0E-9,b.max+=1.0E-9)},setMaxTicks:function(){var a=this.chart,b=a.maxTicks,c=this.tickPositions,d=this.xOrY;b||(b={x:0,y:0});if(!this.isLinked&&!this.isDatetimeAxis&&c.length>b[d]&&
!1!==this.options.alignTicks)b[d]=c.length;a.maxTicks=b},adjustTickAmount:function(){var a=this.xOrY,b=this.tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&!1!==this.options.alignTicks){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(e<a){for(;b.length<a;)b.push(y(b[b.length-1]+this.tickInterval));this.transA*=(e-1)/(a-1);this.max=b[b.length-1]}if(q(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;w(this.series,function(a){if(a.isDirtyData||a.isDirty||a.xAxis.isDirty)d=!0});if(e||d||this.isLinked||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax)if(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;if(!this.isXAxis)for(b in 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=l(c,!0),e=n(e,{min:a,max:b});Q(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.isDirtyExtremes=!0;c&&g.redraw(d)})},zoom:function(a,b){this.setExtremes(a,b,!1,I,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=b.offsetRight||0;this.left=l(b.left,a.plotLeft+c);this.top=l(b.top,a.plotTop);this.width=l(b.width,a.plotWidth-c+d);this.height=l(b.height,a.plotHeight);
this.bottom=a.chartHeight-this.height-this.top;this.right=a.chartWidth-this.width-this.left;this.len=D(this.horiz?this.width:this.height,0)},getExtremes:function(){var a=this.isLog;return{min:a?y(Y(this.min)):this.min,max:a?y(Y(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?Y(this.min):this.min,b=b?Y(this.max):this.max;c>a||null===a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},addPlotBandOrLine:function(a){a=
(new kb(this,a)).render();this.plotLinesAndBands.push(a);return a},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,k,o=0,r,j=0,i=d.title,m=d.labels,u=0,p=b.axisOffset,t=[-1,1,1,-1][h],v;a.hasData=b=a.hasVisibleSeries||q(a.min)&&q(a.max)&&!!e;a.showAxis=k=b||l(d.showEmpty,!0);if(!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:m.zIndex||
7}).add();if(b||a.isLinked)w(e,function(b){f[b]?f[b].addLabel():f[b]=new $(a,b)}),w(e,function(a){if(0===h||2===h||{1:"left",3:"right"}[h]===m.align)u=D(f[a].getLabelSize(),u)}),a.staggerLines&&(u+=16*(a.staggerLines-1));else for(v in f)f[v].destroy(),delete f[v];if(i&&i.text){if(!a.axisTitle)a.axisTitle=c.text(i.text,0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:i.textAlign||{low:"left",middle:"center",high:"right"}[i.align]}).css(i.style).add(a.axisGroup),a.axisTitle.isNew=!0;if(k)o=
a.axisTitle.getBBox()[g?"height":"width"],j=l(i.margin,g?5:10),r=i.offset;a.axisTitle[k?"show":"hide"]()}a.offset=t*l(d.offset,p[h]);a.axisTitleMargin=l(r,u+j+(2!==h&&u&&t*d.labels[g?"y":"x"]));p[h]=D(p[h],a.axisTitleMargin+o+t*a.offset)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d;this.lineTop=c=b.chartHeight-this.bottom-(c?this.height:0)+d;return b.renderer.crispLine(["M",e?this.left:f,e?c:this.top,"L",e?b.chartWidth-this.right:
f,e?c: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,k=z(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?k: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.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,
g=a.tickPositions,h=a.axisTitle,k=a.stacks,o=a.ticks,r=a.minorTicks,j=a.alternateBands,i=d.stackLabels,m=d.alternateGridColor,u=a.tickmarkOffset,p=d.lineWidth,t,l=b.hasRendered&&q(a.oldMin)&&!isNaN(a.oldMin),v=a.showAxis,y,n;if(a.hasData||f)if(a.minorTickInterval&&!a.categories&&w(a.getMinorTickPositions(),function(b){r[b]||(r[b]=new $(a,b,"minor"));l&&r[b].isNew&&r[b].render(null,!0);r[b].isActive=!0;r[b].render()}),g.length&&w(g.slice(1).concat([g[0]]),function(b,c){c=c===g.length-1?0:c+1;if(!f||
b>=a.min&&b<=a.max)o[b]||(o[b]=new $(a,b)),l&&o[b].isNew&&o[b].render(c,!0),o[b].isActive=!0,o[b].render(c)}),m&&w(g,function(b,c){if(0===c%2&&b<a.max)j[b]||(j[b]=new kb(a)),y=b+u,n=g[c+1]!==I?g[c+1]+u:a.max,j[b].options={from:e?Y(y):y,to:e?Y(n):n,color:m},j[b].render(),j[b].isActive=!0}),!a._addedPlotLB)w((d.plotLines||[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0;w([o,r,j],function(a){for(var b in a)a[b].isActive?a[b].isActive=!1:(a[b].destroy(),delete a[b])});
if(p)t=a.getLinePath(p),a.axisLine?a.axisLine.animate({d:t}):a.axisLine=c.path(t).attr({stroke:d.lineColor,"stroke-width":p,zIndex:7}).add(a.axisGroup),a.axisLine[v?"show":"hide"]();if(h&&v)h[h.isNew?"attr":"animate"](a.getTitlePosition()),h.isNew=!1;if(i&&i.enabled){var G,E,d=a.stackTotalGroup;if(!d)a.stackTotalGroup=d=c.g("stack-labels").attr({visibility:"visible",zIndex:6}).add();d.translate(b.plotLeft,b.plotTop);for(G in k)for(E in b=k[G],b)b[E].render(d)}a.isDirty=!1},removePlotBandOrLine:function(a){for(var b=
this.plotLinesAndBands,c=b.length;c--;)b[c].id===a&&b[c].destroy()},setTitle:function(a,b){var c=this.chart,d=this.options,e=this.axisTitle;d.title=J(d.title,a);this.axisTitle=e&&e.destroy();this.isDirty=!0;l(b,!0)&&c.redraw()},redraw:function(){var a=this.chart;a.tracker.resetTracker&&a.tracker.resetTracker(!0);this.render();w(this.plotLinesAndBands,function(a){a.render()});w(this.series,function(a){a.isDirty=!0})},setCategories:function(a,b){var c=this.chart;this.categories=this.userOptions.categories=
a;w(this.series,function(a){a.translate();a.setTooltipPoints(!0)});this.isDirty=!0;l(b,!0)&&c.redraw()},destroy:function(){var a=this,b=a.stacks,c;ha(a);for(c in b)i(b[c]),b[c]=null;w([a.ticks,a.minorTicks,a.alternateBands,a.plotLinesAndBands],function(a){i(a)});w("stackTotalGroup,axisLine,axisGroup,gridGroup,labelGroup,axisTitle".split(","),function(b){a[b]&&(a[b]=a[b].destroy())})}};mb.prototype={destroy:function(){w(this.crosshairs,function(a){a&&a.destroy()});if(this.label)this.label=this.label.destroy()},
move:function(a,b,c,d){var e=this,f=e.now,g=!1!==e.options.animation&&!e.isHidden;n(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:g?(2*f.anchorX+c)/3:c,anchorY:g?(f.anchorY+d)/2:d});e.label.attr(f);if(g&&(1<Z(a-f.x)||1<Z(b-f.y)))clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32)},hide:function(){if(!this.isHidden){var a=this.chart.hoverPoints;this.label.hide();a&&w(a,function(a){a.setState()});this.chart.hoverPoints=null;this.isHidden=!0}},hideCrosshairs:function(){w(this.crosshairs,
function(a){a&&a.hide()})},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=0,g=0,h,a=A(a);c=a[0].tooltipPos;c||(w(a,function(a){h=a.series.yAxis;f+=a.plotX;g+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&h?h.top-d.plotTop:0)}),f/=a.length,g/=a.length,c=[e?d.plotWidth-g:f,this.shared&&!e&&1<a.length&&b?b.chartY-d.plotTop:e?d.plotHeight-f:g]);return La(c,B)},getPosition:function(a,b,c){var d=this.chart,e=d.plotLeft,f=d.plotTop,g=d.plotWidth,h=d.plotHeight,k=l(this.options.distance,12),
o=c.plotX,c=c.plotY,d=o+e+(d.inverted?k:-a-k),r=c-b+f+15,j;7>d&&(d=e+D(o,0)+k);d+a>e+g&&(d-=d+a-(e+g),r=c-b+f-k,j=!0);r<f+5&&(r=f+5,j&&c>=r&&c<=r+b&&(r=c+f+k));r+b>f+h&&(r=D(f,f+h-b-k));return{x:d,y:r}},refresh:function(a,b){function c(){var a=this.points||A(this),b=a[0].series,c;c=[b.tooltipHeaderFormatter(a[0].key)];w(a,function(a){b=a.series;c.push(b.tooltipFormatter&&b.tooltipFormatter(a)||a.point.tooltipFormatter(b.tooltipOptions.pointFormat))});c.push(f.footerFormat||"");return c.join("")}var d=
this.chart,e=this.label,f=this.options,g,h,k,o={},r,j=[];r=f.formatter||c;var o=d.hoverPoints,i,m=f.crosshairs;k=this.shared;h=this.getAnchor(a,b);g=h[0];h=h[1];k&&(!a.series||!a.series.noSharedTooltip)?(d.hoverPoints=a,o&&w(o,function(a){a.setState()}),w(a,function(a){a.setState("hover");j.push(a.getLabelConfig())}),o={x:a[0].category,y:a[0].y},o.points=j,a=a[0]):o=a.getLabelConfig();r=r.call(o);o=a.series;k=k||!o.isCartesian||o.tooltipOutsidePlot||d.isInsidePlot(g,h);!1===r||!k?this.hide():(this.isHidden&&
e.show(),e.attr({text:r}),i=f.borderColor||a.color||o.color||"#606060",e.attr({stroke:i}),e=(f.positioner||this.getPosition).call(this,e.width,e.height,{plotX:g,plotY:h}),this.move(B(e.x),B(e.y),g+d.plotLeft,h+d.plotTop),this.isHidden=!1);if(m){m=A(m);for(e=m.length;e--;)if(k=a.series[e?"yAxis":"xAxis"],m[e]&&k)if(k=k.getPlotLinePath(e?l(a.stackY,a.y):a.x,1),this.crosshairs[e])this.crosshairs[e].attr({d:k,visibility:"visible"});else{o={"stroke-width":m[e].width||1,stroke:m[e].color||"#C0C0C0",zIndex:m[e].zIndex||
2};if(m[e].dashStyle)o.dashstyle=m[e].dashStyle;this.crosshairs[e]=d.renderer.path(k).attr(o).add()}}Q(d,"tooltipRefresh",{text:r,x:g+d.plotLeft,y:h+d.plotTop,borderColor:i})}};nb.prototype={normalizeMouseEvent:function(a){var b,c,d,a=a||X.event;if(!a.target)a.target=a.srcElement;a=Kb(a);d=a.touches?a.touches.item(0):a;this.chartPosition=b=Rb(this.chart.container);d.pageX===I?(c=a.x,b=a.y):(c=d.pageX-b.left,b=d.pageY-b.top);return n(a,{chartX:B(c),chartY:B(b)})},getMouseCoordinates:function(a){var b=
{xAxis:[],yAxis:[]},c=this.chart;w(c.axes,function(d){var e=d.isXAxis;b[e?"xAxis":"yAxis"].push({axis:d,value:d.translate(((c.inverted?!e:e)?a.chartX-c.plotLeft:d.top+d.len-a.chartY)-d.minPixelPadding,!0)})});return b},getIndex:function(a){var b=this.chart;return b.inverted?b.plotHeight+b.plotTop-a.chartY:a.chartX-b.plotLeft},onmousemove:function(a){var b=this.chart,c=b.series,d=b.tooltip,e,f=b.hoverPoint,g=b.hoverSeries,h,k,o=b.chartWidth,r=this.getIndex(a);if(d&&this.options.tooltip.shared&&(!g||
!g.noSharedTooltip)){e=[];h=c.length;for(k=0;k<h;k++)if(c[k].visible&&!1!==c[k].options.enableMouseTracking&&!c[k].noSharedTooltip&&c[k].tooltipPoints&&c[k].tooltipPoints.length)b=c[k].tooltipPoints[r],b._dist=Z(r-b[c[k].xAxis.tooltipPosName||"plotX"]),o=da(o,b._dist),e.push(b);for(h=e.length;h--;)e[h]._dist>o&&e.splice(h,1);if(e.length&&e[0].plotX!==this.hoverX)d.refresh(e,a),this.hoverX=e[0].plotX}if(g&&g.tracker&&(b=g.tooltipPoints[r])&&b!==f)b.onMouseOver()},resetTracker:function(a){var b=this.chart,
c=b.hoverSeries,d=b.hoverPoint,e=b.tooltip,b=e&&e.shared?b.hoverPoints:d;(a=a&&e&&b)&&A(b)[0].plotX===I&&(a=!1);if(a)e.refresh(b);else{if(d)d.onMouseOut();if(c)c.onMouseOut();e&&(e.hide(),e.hideCrosshairs());this.hoverX=null}},setDOMEvents:function(){function a(){if(b.selectionMarker){var f={xAxis:[],yAxis:[]},g=b.selectionMarker.getBBox(),h=g.x-c.plotLeft,j=g.y-c.plotTop,i;e&&(w(c.axes,function(a){if(!1!==a.options.zoomEnabled){var b=a.isXAxis,d=c.inverted?!b:b,e=a.translate(d?h:c.plotHeight-j-g.height,
!0,0,0,1),d=a.translate((d?h+g.width:c.plotHeight-j)-2*a.minPixelPadding,!0,0,0,1);!isNaN(e)&&!isNaN(d)&&(f[b?"xAxis":"yAxis"].push({axis:a,min:da(e,d),max:D(e,d)}),i=!0)}}),i&&Q(c,"selection",f,function(a){c.zoom(a)}));b.selectionMarker=b.selectionMarker.destroy()}if(c)M(d,{cursor:"auto"}),c.cancelClick=e,c.mouseIsDown=e=!1;ha(L,"mouseup",a);Ba&&ha(L,"touchend",a)}var b=this,c=b.chart,d=c.container,e,f=b.zoomX&&!c.inverted||b.zoomY&&c.inverted,g=b.zoomY&&!c.inverted||b.zoomX&&c.inverted;b.hideTooltipOnMouseMove=
function(a){a=Kb(a);b.chartPosition&&c.hoverSeries&&c.hoverSeries.isCartesian&&!c.isInsidePlot(a.pageX-b.chartPosition.left-c.plotLeft,a.pageY-b.chartPosition.top-c.plotTop)&&b.resetTracker()};b.hideTooltipOnMouseLeave=function(){b.resetTracker();b.chartPosition=null};d.onmousedown=function(d){d=b.normalizeMouseEvent(d);-1===d.type.indexOf("touch")&&d.preventDefault&&d.preventDefault();c.mouseIsDown=!0;c.cancelClick=!1;c.mouseDownX=b.mouseDownX=d.chartX;b.mouseDownY=d.chartY;T(L,"mouseup",a);Ba&&
T(L,"touchend",a)};var h=function(a){if(!a||!(a.touches&&1<a.touches.length)){var a=b.normalizeMouseEvent(a),d=a.type,h=a.chartX,j=a.chartY,i=!c.isInsidePlot(h-c.plotLeft,j-c.plotTop);if(-1===d.indexOf("touch"))a.returnValue=!1;"touchstart"===d&&(s(a.target,"isTracker")?c.runTrackerClick||a.preventDefault():!c.runChartClick&&!i&&a.preventDefault());if(i)h<c.plotLeft?h=c.plotLeft:h>c.plotLeft+c.plotWidth&&(h=c.plotLeft+c.plotWidth),j<c.plotTop?j=c.plotTop:j>c.plotTop+c.plotHeight&&(j=c.plotTop+c.plotHeight);
if(c.mouseIsDown&&"touchstart"!==d&&(e=Math.sqrt(Math.pow(b.mouseDownX-h,2)+Math.pow(b.mouseDownY-j,2)),10<e)){d=c.isInsidePlot(b.mouseDownX-c.plotLeft,b.mouseDownY-c.plotTop);if(c.hasCartesianSeries&&(b.zoomX||b.zoomY)&&d&&!b.selectionMarker)b.selectionMarker=c.renderer.rect(c.plotLeft,c.plotTop,f?1:c.plotWidth,g?1:c.plotHeight,0).attr({fill:b.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();if(b.selectionMarker&&f){var m=h-b.mouseDownX;b.selectionMarker.attr({width:Z(m),
x:(0<m?0:m)+b.mouseDownX})}b.selectionMarker&&g&&(j-=b.mouseDownY,b.selectionMarker.attr({height:Z(j),y:(0<j?0:j)+b.mouseDownY}));d&&!b.selectionMarker&&b.options.chart.panning&&c.pan(h)}if(!i)b.onmousemove(a);return i||!c.hasCartesianSeries}};if(!/Android 4\.0/.test(ua))d.onmousemove=h;T(d,"mouseleave",b.hideTooltipOnMouseLeave);Ba||T(L,"mousemove",b.hideTooltipOnMouseMove);d.ontouchstart=function(a){if(b.zoomX||b.zoomY)d.onmousedown(a);h(a)};d.ontouchmove=h;d.ontouchend=function(){e&&b.resetTracker()};
d.onclick=function(a){var d=c.hoverPoint,e,f,a=b.normalizeMouseEvent(a);a.cancelBubble=!0;if(!c.cancelClick)d&&(s(a.target,"isTracker")||s(a.target.parentNode,"isTracker"))?(e=d.plotX,f=d.plotY,n(d,{pageX:b.chartPosition.left+c.plotLeft+(c.inverted?c.plotWidth-f:e),pageY:b.chartPosition.top+c.plotTop+(c.inverted?c.plotHeight-e:f)}),Q(d.series,"click",n(a,{point:d})),d.firePointEvent("click",a)):(n(a,b.getMouseCoordinates(a)),c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&Q(c,"click",a))}},
destroy:function(){var a=this.chart,b=a.container;if(a.trackerGroup)a.trackerGroup=a.trackerGroup.destroy();ha(b,"mouseleave",this.hideTooltipOnMouseLeave);ha(L,"mousemove",this.hideTooltipOnMouseMove);b.onclick=b.onmousedown=b.onmousemove=b.ontouchstart=b.ontouchend=b.ontouchmove=null;clearInterval(this.tooltipTimeout)},init:function(a,b){if(!a.trackerGroup)a.trackerGroup=a.renderer.g("tracker").attr({zIndex:9}).add();if(b.enabled)a.tooltip=new mb(a,b);this.setDOMEvents()}};ob.prototype={init:function(a){var b=
this,c=b.options=a.options.legend;if(c.enabled){var d=c.itemStyle,e=l(c.padding,8),f=c.itemMarginTop||0;b.baseline=z(d.fontSize)+3+f;b.itemStyle=d;b.itemHiddenStyle=J(d,c.itemHiddenStyle);b.itemMarginTop=f;b.padding=e;b.initialItemX=e;b.initialItemY=e-5;b.maxItemWidth=0;b.chart=a;b.itemHeight=0;b.lastLineHeight=0;b.render();T(b.chart,"endResize",function(){b.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.color:g,g=a.options&&a.options.marker,k={stroke:h,fill:h},o;d&&d.css({fill:c});e&&e.attr({stroke:h});if(f){if(g)for(o in g=a.convertAttribs(g),g)d=g[o],d!==I&&(k[o]=d);f.attr(k)}},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);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;w(["legendItem","legendLine","legendSymbol",
"legendGroup"],function(b){a[b]&&a[b].destroy()});b&&m(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight;if(b)c=b.translateY,w(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,M(f,{left:b.translateX+e.legendItemWidth+f.x-20+"px",top:g+"px",display:g>c-6&&g<c+d-6?"":ga}))})},renderItem:function(a){var C;var b=this,c=b.chart,
d=c.renderer,e=b.options,f="horizontal"===e.layout,g=e.symbolWidth,h=e.symbolPadding,k=b.itemStyle,o=b.itemHiddenStyle,r=b.padding,j=!e.rtl,i=e.width,m=e.itemMarginBottom||0,u=b.itemMarginTop,p=b.initialItemX,t=a.legendItem,l=a.series||a,v=l.options,y=v.showCheckbox,w=e.useHTML;if(!t&&(a.legendGroup=d.g("legend-item").attr({zIndex:1}).add(b.scrollGroup),l.drawLegendSymbol(b,a),a.legendItem=t=d.text(e.labelFormatter.call(a),j?g+h:-h,b.baseline,w).css(J(a.visible?k:o)).attr({align:j?"left":"right",
zIndex:2}).add(a.legendGroup),(w?t:a.legendGroup).on("mouseover",function(){a.setState("hover");t.css(b.options.itemHoverStyle)}).on("mouseout",function(){t.css(a.visible?k:o);a.setState()}).on("click",function(b){var c=function(){a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):Q(a,"legendItemClick",b,c)}),b.colorizeItem(a,a.visible),v&&y))a.checkbox=F("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},e.itemCheckboxStyle,c.container),
T(a.checkbox,"click",function(b){Q(a,"checkboxClick",{checked:b.target.checked},function(){a.select()})});d=t.getBBox();C=a.legendItemWidth=e.itemWidth||g+h+d.width+r+(y?20:0),e=C;b.itemHeight=g=d.height;if(f&&b.itemX-p+e>(i||c.chartWidth-2*r-p))b.itemX=p,b.itemY+=u+b.lastLineHeight+m,b.lastLineHeight=0;b.maxItemWidth=D(b.maxItemWidth,e);b.lastItemY=u+b.itemY+m;b.lastLineHeight=D(g,b.lastLineHeight);a._legendItemPos=[b.itemX,b.itemY];f?b.itemX+=e:(b.itemY+=u+g+m,b.lastLineHeight=g);b.offsetWidth=
i||D(f?b.itemX-p:e,b.offsetWidth)},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,k=a.box,o=a.options,r=a.padding,j=o.borderWidth,i=o.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!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.clipRect=c.clipRect(0,0,9999,b.chartHeight),a.contentGroup.clip(a.clipRect);e=[];w(b.series,function(a){var b=a.options;
b.showInLegend&&(e=e.concat(a.legendItems||("point"===b.legendType?a.data:a)))});Ha(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});o.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;w(e,function(b){a.renderItem(b)});g=o.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight;h=a.handleOverflow(h);if(j||i){g+=r;h+=r;if(k){if(0<g&&0<h)k[k.isNew?"attr":"animate"](k.crisp(null,null,null,g,h)),k.isNew=!1}else a.box=k=c.rect(0,0,g,h,o.borderRadius,
j||0).attr({stroke:o.borderColor,"stroke-width":j||0,fill:i||ga}).add(d).shadow(o.shadow),k.isNew=!0;k[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;w(e,function(b){a.positionItem(b)});f&&d.align(n({width:g,height:h},o),!0,b.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=this.clipRect,k=e.navigation,o=l(k.animation,!0),j=
k.arrowSize||12,i=this.nav;"horizontal"===e.layout&&(f/=2);g&&(f=da(f,g));if(a>f){this.clipHeight=c=f-20;this.pageCount=za(a/c);this.currentPage=l(this.currentPage,1);this.fullHeight=a;h.attr({height:c});if(!i)this.nav=i=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,j,j).on("click",function(){b.scroll(-1,o)}).add(i),this.pager=d.text("",15,10).css(k.style).add(i),this.down=d.symbol("triangle-down",0,0,j,j).on("click",function(){b.scroll(1,o)}).add(i);b.scroll(0);a=f}else if(i)h.attr({height:c.chartHeight}),
i.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0;return a},scroll:function(a,b){var c=this.pageCount,d=this.currentPage+a,e=this.clipHeight,f=this.options.navigation,g=f.activeColor,h=f.inactiveColor,f=this.pager,k=this.padding;d>c&&(d=c);if(0<d)b!==I&&t(b,this.chart),this.nav.attr({translateX:k,translateY:e+7,visibility:"visible"}),this.up.attr({fill:1===d?h:g}).css({cursor:1===d?"default":"pointer"}),f.attr({text:d+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,
fill:d===c?h:g}).css({cursor:d===c?"default":"pointer"}),e=-da(e*(d-1),this.fullHeight-e+k)+1,this.scrollGroup.animate({translateY:e}),f.attr({text:d+"/"+c}),this.currentPage=d,this.positionCheckboxes(e)}};pb.prototype={init:function(a,b){var c,d=a.series;a.series=null;c=J(ca,a);c.series=a.series=d;var d=c.chart,e=d.margin,e=ba(e)?e:[e,e,e,e];this.optionsMarginTop=l(d.marginTop,e[0]);this.optionsMarginRight=l(d.marginRight,e[1]);this.optionsMarginBottom=l(d.marginBottom,e[2]);this.optionsMarginLeft=
l(d.marginLeft,e[3]);this.runChartClick=(e=d.events)&&!!e.click;this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f;this.index=Da.length;Da.push(this);!1!==d.reflow&&T(this,"load",this.initReflow);if(e)for(f in e)T(this,f,e[f]);this.xAxis=[];this.yAxis=[];this.animation=ka?!1:l(d.animation,!0);this.pointCount=0;this.counters=new Ua;this.firstRender()},initSeries:function(a){var b=this.options.chart,b=new qa[a.type||b.type||b.defaultSeriesType];
b.init(this,a);return b},addSeries:function(a,b,c){var d,e=this;a&&(t(c,e),b=l(b,!0),Q(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;b&&e.redraw()}));return d},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&&w(this.axes,function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series,d=this.tracker,e=this.legend,
f=this.isDirtyLegend,g,h=this.isDirtyBox,k=c.length,o=k,j=this.renderer,i=j.isHidden(),m=[];t(a,this);for(i&&this.cloneRenderTo();o--;)if(a=c[o],a.isDirty&&a.options.stacking){g=!0;break}if(g)for(o=k;o--;)if(a=c[o],a.options.stacking)a.isDirty=!0;w(c,function(a){a.isDirty&&"point"===a.options.legendType&&(f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;if(this.hasCartesianSeries){if(!this.isResizing)this.maxTicks=null,w(b,function(a){a.setScale()});this.adjustTickAmounts();this.getMargins();
w(b,function(a){if(a.isDirtyExtremes)a.isDirtyExtremes=!1,m.push(function(){Q(a,"afterSetExtremes",a.getExtremes())});if(a.isDirty||h||g)a.redraw(),h=!0})}h&&this.drawChartBox();w(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.resetTracker&&d.resetTracker(!0);j.draw();Q(this,"redraw");i&&this.cloneRenderTo(!0);w(m,function(a){a.call()})},showLoading:function(a){var b=this.options,c=this.loadingDiv,d=b.loading;if(!c)this.loadingDiv=c=F(sa,{className:"highcharts-loading"},
n(d.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:ga}),this.container),this.loadingSpan=F("span",null,d.labelStyle,c);this.loadingSpan.innerHTML=a||b.lang.loading;if(!this.loadingShown)M(c,{opacity:0,display:""}),ub(c,{opacity:d.style.opacity},{duration:d.showDuration||0}),this.loadingShown=!0},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&ub(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){M(b,
{display:ga})}});this.loadingShown=!1},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++){e=c[d].points||[];for(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||{},b=b.yAxis||{},c=A(c);w(c,function(a,b){a.index=b;a.isX=!0});b=A(b);w(b,function(a,b){a.index=b});c=c.concat(b);w(c,function(b){new lb(a,
b)});a.adjustTickAmounts()},getSelectedPoints:function(){var a=[];w(this.series,function(b){a=a.concat(Jb(b.points,function(a){return a.selected}))});return a},getSelectedSeries:function(){return Jb(this.series,function(a){return a.selected})},showResetZoom:function(){var a=this,b=ca.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,a[f]);this.resetZoomButton.alignTo=f},zoomOut:function(){var a=this,b=a.resetZoomButton;Q(a,"selection",{resetSelection:!0},function(){a.zoom()});if(b)a.resetZoomButton=b.destroy()},zoom:function(a){var b=this,c;!a||a.resetSelection?w(b.axes,function(a){c=a.zoom()}):w(a.xAxis.concat(a.yAxis),function(a){var e=a.axis;if(b.tracker[e.isXAxis?"zoomX":"zoomY"])c=e.zoom(a.min,a.max)});b.resetZoomButton||b.showResetZoom();c&&b.redraw(l(b.options.chart.animation,
100>b.pointCount))},pan:function(a){var b=this.xAxis[0],c=this.mouseDownX,d=b.pointRange/2,e=b.getExtremes(),f=b.translate(c-a,!0)+d,c=b.translate(c+this.plotWidth-a,!0)-d;(d=this.hoverPoints)&&w(d,function(a){a.setState()});b.series.length&&f>da(e.dataMin,e.min)&&c<D(e.dataMax,e.max)&&b.setExtremes(f,c,!0,!1,{trigger:"pan"});this.mouseDownX=a;M(this.container,{cursor:"move"})},setTitle:function(a,b){var c=this,d=c.options,e;c.chartTitleOptions=e=J(d.title,a);c.chartSubtitleOptions=d=J(d.subtitle,
b);w([["title",a,e],["subtitle",b,d]],function(a){var b=a[0],d=c[b],e=a[1],a=a[2];d&&e&&(c[b]=d=d.destroy());a&&a.text&&!d&&(c[b]=c.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add().align(a,!1,c.spacingBox))})},getChartSize:function(){var a=this.options.chart,b=this.renderToClone||this.renderTo;this.containerWidth=bb(b,"width");this.containerHeight=bb(b,"height");this.chartWidth=D(0,l(a.width,this.containerWidth,600));this.chartHeight=
D(0,l(a.height,19<this.containerHeight?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),m(b),delete this.renderToClone):(c&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),M(b,{position:"absolute",top:"-9999px",display:"block"}),L.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-"+qb++;if(ia(a))this.renderTo=
a=L.getElementById(a);a||u(13,!0);c=z(s(a,"data-highcharts-chart"));!isNaN(c)&&Da[c]&&Da[c].destroy();s(a,"data-highcharts-chart",this.index);a.innerHTML="";a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=F(sa,{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},n({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0},b.style),this.renderToClone||a);this.renderer=
b.forExport?new xa(a,c,d,!0):new Ka(a,c,d);ka&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.options.chart,b=a.spacingTop,c=a.spacingRight,d=a.spacingBottom,a=a.spacingLeft,e,f=this.legend,g=this.optionsMarginTop,h=this.optionsMarginLeft,k=this.optionsMarginRight,o=this.optionsMarginBottom,j=this.chartTitleOptions,i=this.chartSubtitleOptions,m=this.options.legend,u=l(m.margin,10),p=m.x,t=m.y,v=m.align,y=m.verticalAlign;this.resetMargins();e=this.axisOffset;if((this.title||this.subtitle)&&
!q(this.optionsMarginTop))if(i=D(this.title&&!j.floating&&!j.verticalAlign&&j.y||0,this.subtitle&&!i.floating&&!i.verticalAlign&&i.y||0))this.plotTop=D(this.plotTop,i+l(j.margin,15)+b);if(f.display&&!m.floating)if("right"===v){if(!q(k))this.marginRight=D(this.marginRight,f.legendWidth-p+u+c)}else if("left"===v){if(!q(h))this.plotLeft=D(this.plotLeft,f.legendWidth+p+u+a)}else if("top"===y){if(!q(g))this.plotTop=D(this.plotTop,f.legendHeight+t+u+b)}else if("bottom"===y&&!q(o))this.marginBottom=D(this.marginBottom,
f.legendHeight-t+u+d);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&w(this.axes,function(a){a.getOffset()});q(h)||(this.plotLeft+=e[3]);q(g)||(this.plotTop+=e[0]);q(o)||(this.marginBottom+=e[2]);q(k)||(this.marginRight+=e[1]);this.setChartSize()},initReflow:function(){function a(a){var g=c.width||bb(d,"width"),h=c.height||bb(d,"height"),a=a?a.target:X;if(!b.hasUserSize&&g&&h&&(a===X||a===L)){if(g!==
b.containerWidth||h!==b.containerHeight)clearTimeout(e),b.reflowTimeout=e=setTimeout(function(){if(b.container)b.setSize(g,h,!1),b.hasUserSize=null},100);b.containerWidth=g;b.containerHeight=h}}var b=this,c=b.options.chart,d=b.renderTo,e;T(X,"resize",a);T(b,"destroy",function(){ha(X,"resize",a)})},setSize:function(a,b,c){var d=this,e,f,g=d.resetZoomButton,h=d.title,k=d.subtitle,o;d.isResizing+=1;o=function(){d&&Q(d,"endResize",null,function(){d.isResizing-=1})};t(c,d);d.oldChartHeight=d.chartHeight;
d.oldChartWidth=d.chartWidth;if(q(a))d.chartWidth=e=D(0,B(a)),d.hasUserSize=!!e;if(q(b))d.chartHeight=f=D(0,B(b));M(d.container,{width:e+"px",height:f+"px"});d.renderer.setSize(e,f,c);d.plotWidth=e-d.plotLeft-d.marginRight;d.plotHeight=f-d.plotTop-d.marginBottom;d.maxTicks=null;w(d.axes,function(a){a.isDirty=!0;a.setScale()});w(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.getMargins();a=d.spacingBox;h&&h.align(null,null,a);k&&k.align(null,null,a);g&&g.align&&g.align(null,
null,d[g.alignTo]);d.redraw(c);d.oldChartHeight=null;Q(d,"resize");!1===Ia?o():setTimeout(o,Ia&&Ia.duration||500)},setChartSize:function(){var a=this.inverted,b=this.chartWidth,c=this.chartHeight,d=this.options.chart,e=d.spacingTop,f=d.spacingRight,g=d.spacingBottom,h=d.spacingLeft,k,o,j,i;this.plotLeft=k=B(this.plotLeft);this.plotTop=o=B(this.plotTop);this.plotWidth=j=D(0,B(b-k-this.marginRight));this.plotHeight=i=D(0,B(c-o-this.marginBottom));this.plotSizeX=a?i:j;this.plotSizeY=a?j:i;this.plotBorderWidth=
a=d.plotBorderWidth||0;this.spacingBox={x:h,y:e,width:b-h-f,height:c-e-g};this.plotBox={x:k,y:o,width:j,height:i};this.clipBox={x:a/2,y:a/2,width:this.plotSizeX-a,height:this.plotSizeY-a};w(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this.options.chart,b=a.spacingRight,c=a.spacingBottom,d=a.spacingLeft;this.plotTop=l(this.optionsMarginTop,a.spacingTop);this.marginRight=l(this.optionsMarginRight,b);this.marginBottom=l(this.optionsMarginBottom,c);this.plotLeft=
l(this.optionsMarginLeft,d);this.axisOffset=[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,k=a.borderWidth||0,o=a.backgroundColor,j=a.plotBackgroundColor,i=a.plotBackgroundImage,m=a.plotBorderWidth||0,u,p=this.plotLeft,t=this.plotTop,l=this.plotWidth,v=this.plotHeight,y=this.plotBox,w=this.clipRect,n=this.clipBox;u=k+(a.shadow?8:0);if(k||o)if(e)e.animate(e.crisp(null,
null,null,c-u,d-u));else{e={fill:o||ga};if(k)e.stroke=a.borderColor,e["stroke-width"]=k;this.chartBackground=b.rect(u/2,u/2,c-u,d-u,a.borderRadius,k).attr(e).add().shadow(a.shadow)}if(j)f?f.animate(y):this.plotBackground=b.rect(p,t,l,v,0).attr({fill:j}).add().shadow(a.plotShadow);if(i)h?h.animate(y):this.plotBGImage=b.image(i,p,t,l,v).add();w?w.animate({width:n.width,height:n.height}):this.clipRect=b.clipRect(n);if(m)g?g.animate(g.crisp(null,p,t,l,v)):this.plotBorder=b.rect(p,t,l,v,0,m).attr({stroke:a.plotBorderColor,
"stroke-width":m,zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;w(["inverted","angular","polar"],function(g){c=qa[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=qa[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},render:function(){var a=this,b=a.axes,c=a.renderer,d=a.options,e=d.labels,d=d.credits,f;a.setTitle();a.legend=new ob(a);w(b,function(a){a.setScale()});a.getMargins();a.maxTicks=
null;w(b,function(a){a.setTickPositions(!0);a.setMaxTicks()});a.adjustTickAmounts();a.getMargins();a.drawChartBox();a.hasCartesianSeries&&w(b,function(a){a.render()});if(!a.seriesGroup)a.seriesGroup=c.g("series-group").attr({zIndex:3}).add();w(a.series,function(a){a.translate();a.setTooltipPoints();a.render()});e.items&&w(e.items,function(b){var d=n(e.style,b.style),f=z(d.left)+a.plotLeft,o=z(d.top)+a.plotTop+12;delete d.left;delete d.top;c.text(b.html,f,o).attr({zIndex:2}).css(d).add()});if(d.enabled&&
!a.credits)f=d.href,a.credits=c.text(d.text,0,0).on("click",function(){if(f)location.href=f}).attr({align:d.position.align,zIndex:8}).css(d.style).add().align(d.position);a.hasRendered=!0},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;Q(a,"destroy");Da[a.index]=I;a.renderTo.removeAttribute("data-highcharts-chart");ha(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();w("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),
function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});if(d)d.innerHTML="",ha(d),f&&m(d);for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!ra&&X==X.top&&"complete"!==L.readyState||ka&&!X.canvg?(ka?Mb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):L.attachEvent("onreadystatechange",function(){L.detachEvent("onreadystatechange",a.firstRender);"complete"===L.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;if(a.isReadyToRender()){a.getContainer();
Q(a,"init");if(Highcharts.RangeSelector&&b.rangeSelector.enabled)a.rangeSelector=new Highcharts.RangeSelector(a);a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();w(b.series||[],function(b){a.initSeries(b)});if(Highcharts.Scroller&&(b.navigator.enabled||b.scrollbar.enabled))a.scroller=new Highcharts.Scroller(a);a.tracker=new nb(a,b);a.render();a.renderer.draw();c&&c.apply(a,[a]);w(a.callbacks,function(b){b.apply(a,[a])});a.cloneRenderTo(!0);Q(a,"load")}}};pb.prototype.callbacks=[];
var Oa=function(){};Oa.prototype={init:function(a,b,c){var d=a.chart.counters;this.series=a;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint)b=a.chart.options.colors,this.color=this.color||b[d.color++],d.wrapColor(b.length);a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=typeof a;this.config=a;if("number"===d||null===a)this.y=a;else if("number"===typeof a[0])this.x=a[0],this.y=a[1];else if("object"===d&&"number"!==typeof a.length){n(this,a);this.options=
a;if(a.dataLabels)c._hasPointLabels=!0;if(a.marker)c._hasPointMarkers=!0}else if("string"===typeof a[0])this.name=a[0],this.y=a[1];if(this.x===I)this.x=b===I?c.autoIncrement():b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;if(b&&(this.setState(),O(b,this),!b.length))a.hoverPoints=null;if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)ha(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a=
"graphic,tracker,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}},select:function(a,b){var c=this,d=c.series.chart,a=l(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=a;c.setState(a&&"select");b||w(d.getSelectedPoints(),
function(a){if(a.selected&&a!==c)a.selected=!1,a.setState(""),a.firePointEvent("unselect")})})},onMouseOver:function(){var a=this.series,b=a.chart,c=b.tooltip,d=b.hoverPoint;if(d&&d!==this)d.onMouseOut();this.firePointEvent("mouseOver");c&&(!c.shared||a.noSharedTooltip)&&c.refresh(this);this.setState("hover");b.hoverPoint=this},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;if(!b||-1===Qb(this,b))this.firePointEvent("mouseOut"),this.setState(),a.hoverPoint=null},tooltipFormatter:function(a){var b=
this.series,c=b.tooltipOptions,d=a.match(/\{(series|point)\.[a-zA-Z]+\}/g),e=/[{\.}]/,f,g,h,k,o={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};c.valuePrefix=c.valuePrefix||c.yPrefix;c.valueDecimals=l(c.valueDecimals,c.yDecimals);c.valueSuffix=c.valueSuffix||c.ySuffix;for(k in d)g=d[k],ia(g)&&g!==a&&(h=(" "+g).split(e),f={point:this,series:b}[h[1]],h=h[2],f===this&&o.hasOwnProperty(h)?(f=o[h]?h:"value",f=(c[f+"Prefix"]||"")+v(this[h],l(c[f+"Decimals"],-1))+(c[f+"Suffix"]||"")):f=f[h],a=a.replace(g,
f));return a},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g,h=e.data,k=h.length,o=e.chart,b=l(b,!0);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);ba(a)&&(e.getAttribs(),f&&f.attr(d.pointAttr[e.state]));for(g=0;g<k;g++)if(h[g]===d){e.xData[g]=d.x;e.yData[g]=d.toYData?d.toYData():d.y;e.options.data[g]=a;break}e.isDirty=!0;e.isDirtyData=!0;b&&o.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f,g=d.data,h=g.length;t(b,e);a=l(a,!0);c.firePointEvent("remove",
null,function(){for(f=0;f<h;f++)if(g[f]===c){g.splice(f,1);d.options.data.splice(f,1);d.xData.splice(f,1);d.yData.splice(f,1);break}c.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&e.redraw()})},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)});Q(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=
J(this.series.options.point,this.options).events,b;this.events=a;for(b in a)T(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a){var b=this.plotX,c=this.plotY,d=this.series,e=d.options.states,f=oa[d.type].marker&&d.options.marker,g=f&&!f.enabled,h=f&&f.states[a],k=h&&!1===h.enabled,o=d.stateMarkerGraphic,j=d.chart,i=this.pointAttr,a=a||"";if(!(a===this.state||this.selected&&"select"!==a||e[a]&&!1===e[a].enabled||a&&(k||g&&!h.enabled))){if(this.graphic)e=f&&this.graphic.symbolName&&i[a].r,
this.graphic.attr(J(i[a],e?{x:b-e,y:c-e,width:2*e,height:2*e}:{}));else{if(a&&h)e=h.radius,o?o.attr({x:b-e,y:c-e}):d.stateMarkerGraphic=o=j.renderer.symbol(d.symbol,b-e,c-e,2*e,2*e).attr(i[a]).add(d.markerGroup);if(o)o[a&&j.isInsidePlot(b,c)?"show":"hide"]()}this.state=a}}};var ea=function(){};ea.prototype={isCartesian:!0,type:"line",pointClass:Oa,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;this.chart=
a;this.options=b=this.setOptions(b);this.bindAxes();n(this,{name:b.name,state:"",pointAttr:{},visible:!1!==b.visible,selected:!0===b.selected});if(ka)b.animation=!1;d=b.events;for(c in d)T(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;this.getColor();this.getSymbol();this.setData(b.data,!1);if(this.isCartesian)a.hasCartesianSeries=!0;a.series.push(this);Ha(a.series,function(a,b){return(a.options.index||0)-(b.options.index||0)});
w(a.series,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;a.isCartesian&&w(["xAxis","yAxis"],function(e){w(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]===I&&0===d.index)c.series.push(a),a[e]=c,c.isDirty=!0})})},autoIncrement:function(){var a=this.options,b=this.xIncrement,b=l(b,a.pointStart,0);this.pointInterval=l(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 w(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.options,c=b.plotOptions,d=c[this.type],e=a.data;a.data=null;c=J(d,c.series,a);c.data=a.data=e;this.tooltipOptions=J(b.tooltip,c.tooltip);null===d.marker&&delete c.marker;return c},getColor:function(){var a=this.options,
b=this.chart.options.colors,c=this.chart.counters;this.color=a.color||!a.colorByPoint&&b[c.color++]||"gray";c.wrapColor(b.length)},getSymbol:function(){var a=this.options.marker,b=this.chart,c=b.options.symbols,b=b.counters;this.symbol=a.symbol||c[b.symbol++];if(/^url/.test(this.symbol))a.radius=0;b.wrapSymbol(c.length)},drawLegendSymbol:function(a){var b=this.options,c=b.marker,d=a.options.symbolWidth,e=this.chart.renderer,f=this.legendGroup,a=a.baseline,g;if(b.lineWidth){g={"stroke-width":b.lineWidth};
if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a-4,"L",d,a-4]).attr(g).add(f)}if(c&&c.enabled)b=c.radius,this.legendSymbol=e.symbol(this.symbol,d/2-b,a-4-b,2*b,2*b).add(f)},addPoint:function(a,b,c,d){var e=this.options,f=this.data,g=this.graph,h=this.area,k=this.chart,o=this.xData,j=this.yData,i=g&&g.shift||0,m=e.data,u=this.pointClass.prototype;t(d,k);if(g&&c)g.shift=i+1;if(h){if(c)h.shift=i+1;h.isArea=!0}b=l(b,!0);d={series:this};u.applyOptions.apply(d,[a]);o.push(d.x);j.push(u.toYData?
u.toYData.call(d):d.y);m.push(a);"point"===e.legendType&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),o.shift(),j.shift(),m.shift()));this.getAttribs();this.isDirtyData=this.isDirty=!0;b&&k.redraw()},setData:function(a,b){var c=this.points,d=this.options,e=this.initialColor,f=this.chart,g=null,h=this.xAxis,k,j=this.pointClass.prototype;this.xIncrement=null;this.pointRange=h&&h.categories?1:d.pointRange;if(q(e))f.counters.color=e;var e=[],i=[],m=a?a.length:[],p=(k=this.pointArrayMap)&&
k.length;if(m>(d.turboThreshold||1E3)){for(k=0;null===g&&k<m;)g=a[k],k++;if(fa(g)){j=l(d.pointStart,0);d=l(d.pointInterval,1);for(k=0;k<m;k++)e[k]=j,i[k]=a[k],j+=d;this.xIncrement=j}else if(V(g))if(p)for(k=0;k<m;k++)d=a[k],e[k]=d[0],i[k]=d.slice(1,p+1);else for(k=0;k<m;k++)d=a[k],e[k]=d[0],i[k]=d[1]}else for(k=0;k<m;k++)d={series:this},j.applyOptions.apply(d,[a[k]]),e[k]=d.x,i[k]=j.toYData?j.toYData.call(d):d.y;this.requireSorting&&1<e.length&&e[1]<e[0]&&u(15);ia(i[0])&&u(14,!0);this.data=[];this.options.data=
a;this.xData=e;this.yData=i;for(k=c&&c.length||0;k--;)c[k]&&c[k].destroy&&c[k].destroy();if(h)h.minRange=h.userMinRange;this.isDirty=this.isDirtyData=f.isDirtyBox=!0;l(b,!0)&&f.redraw(!1)},remove:function(a,b){var c=this,d=c.chart,a=l(a,!0);if(!c.isRemoving)c.isRemoving=!0,Q(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;a&&d.redraw(b)});c.isRemoving=!1},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e=0,f=d,g,h,k=this.xAxis,j=this.options,i=j.cropThreshold,
m=this.isCartesian;if(m&&!this.isDirty&&!k.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(m&&this.sorted&&(!i||d>i||this.forceCrop))if(a=k.getExtremes(),k=a.min,i=a.max,b[d-1]<k||b[0]>i)b=[],c=[];else if(b[0]<k||b[d-1]>i){for(a=0;a<d;a++)if(b[a]>=k){e=D(0,a-1);break}for(;a<d;a++)if(b[a]>i){f=a+1;break}b=b.slice(e,f);c=c.slice(e,f);g=!0}for(a=b.length-1;0<a;a--)if(d=b[a]-b[a-1],0<d&&(h===I||d<h))h=d;this.cropped=g;this.cropStart=e;this.processedXData=b;this.processedYData=c;if(null===j.pointRange)this.pointRange=
h||1;this.closestPointRange=h},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,k,j=this.hasGroupedData,i,m=[],u;if(!b&&!j)b=[],b.length=a.length,b=this.data=b;for(u=0;u<g;u++)k=h+u,j?m[u]=(new f).init(this,[d[u]].concat(A(e[u]))):(b[k]?i=b[k]:a[k]!==I&&(b[k]=i=(new f).init(this,a[k],d[u])),m[u]=i);if(b&&(g!==(c=b.length)||j))for(u=0;u<c;u++)if(u===h&&!j&&(u+=g),b[u])b[u].destroyElements(),
b[u].plotX=I;this.data=b;this.points=m},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.chart,b=this.options,c=b.stacking,d=this.xAxis,e=d.categories,f=this.yAxis,g=this.points,h=g.length,k=!!this.modifyValue,j,i=f.series,m=i.length,u="between"===b.pointPlacement;m--;)if(i[m].visible){i[m]===this&&(j=!0);break}for(m=0;m<h;m++){var i=g[m],p=i.x,t=i.y,v=i.low,y=f.stacks[(t<b.threshold?"-":"")+this.stackKey];i.plotX=d.translate(p,0,0,0,1,u);if(c&&this.visible&&
y&&y[p])v=y[p],p=v.total,v.cum=v=v.cum-t,t=v+t,j&&(v=l(b.threshold,f.min)),f.isLog&&0>=v&&(v=null),"percent"===c&&(v=p?100*v/p:0,t=p?100*t/p:0),i.percentage=p?100*i.y/p:0,i.total=i.stackTotal=p,i.stackY=t;i.yBottom=q(v)?f.translate(v,0,1,0,1):null;k&&(t=this.modifyValue(t,i));i.plotY="number"===typeof t?B(10*f.translate(t,0,1,0,1))/10:I;i.clientX=a.inverted?a.plotHeight-i.plotX:i.plotX;i.category=e&&e[i.x]!==I?e[i.x]:i.x}this.getSegments()},setTooltipPoints:function(a){var b=[],c,d,e=(c=this.xAxis)?
c.tooltipLen||c.len:this.chart.plotSizeX,f=c&&c.tooltipPosName||"plotX",g,h,k=[];if(!1!==this.options.enableMouseTracking){if(a)this.tooltipPoints=null;w(this.segments||this.points,function(a){b=b.concat(a)});c&&c.reversed&&(b=b.reverse());a=b.length;for(h=0;h<a;h++){g=b[h];c=b[h-1]?d+1:0;for(d=b[h+1]?D(0,ja((g[f]+(b[h+1]?b[h+1][f]:e))/2)):e;0<=c&&c<=d;)k[c++]=g}this.tooltipPoints=k}},tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat,d=this.xAxis,e=d&&"datetime"===d.options.type,
f;if(e&&!c)for(f in P)if(P[f]>=d.closestPointRange){c=b.dateTimeLabelFormats[f];break}return b.headerFormat.replace("{point.key}",e&&fa(a)?Za(c,a):a).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&Q(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&&Q(this,"mouseOut");c&&!a.stickyTracking&&!c.shared&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this,c=b.chart,d=c.renderer,e;e=b.options.animation;var f=c.clipBox,g=c.inverted,h;if(e&&!ba(e))e=oa[b.type].animation;h="_sharedClip"+e.duration+e.easing;if(a)a=c[h],e=c[h+"m"],a||(c[h]=a=d.clipRect(n(f,{width:0})),c[h+"m"]=e=d.clipRect(-99,g?-c.plotLeft:-c.plotTop,99,g?c.chartWidth:c.chartHeight)),b.group.clip(a),b.markerGroup.clip(e),b.sharedClipKey=
h;else{if(a=c[h])a.animate({width:c.plotSizeX},e),c[h+"m"].animate({width:c.plotSizeX+99},e);b.animate=null;b.animationTimeout=setTimeout(function(){b.afterAnimate()},e.duration)}},afterAnimate:function(){var a=this.chart,b=this.sharedClipKey,c=this.group,d=this.trackerGroup;c&&!1!==this.options.clip&&(c.clip(a.clipRect),d&&d.clip(a.clipRect),this.markerGroup.clip());setTimeout(function(){b&&a[b]&&(a[b]=a[b].destroy(),a[b+"m"]=a[b+"m"].destroy())},100)},drawPoints:function(){var a,b=this.points,c=
this.chart,d,e,f,g,h,k,j,i,m=this.options.marker,u,p=this.markerGroup;if(m.enabled||this._hasPointMarkers)for(f=b.length;f--;)if(g=b[f],d=g.plotX,e=g.plotY,i=g.graphic,k=g.marker||{},a=m.enabled&&k.enabled===I||k.enabled,u=c.isInsidePlot(d,e,c.inverted),a&&e!==I&&!isNaN(e))if(a=g.pointAttr[g.selected?"select":""],h=a.r,k=l(k.symbol,this.symbol),j=0===k.indexOf("url"),i)i.attr({visibility:u?ra?"inherit":"visible":"hidden"}).animate(n({x:d-h,y:e-h},i.symbolName?{width:2*h,height:2*h}:{}));else{if(u&&
(0<h||j))g.graphic=c.renderer.symbol(k,d-h,e-h,2*h,2*h).attr(a).add(p)}else if(i)g.graphic=i.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]=l(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=oa[a.type].marker?a.options.marker:a.options,c=b.states,d=c.hover,e,f=a.color,g={stroke:f,fill:f},h=a.points||[],k=[],j,i=a.pointAttrToOptions,m;a.options.marker?(d.radius=d.radius||b.radius+2,d.lineWidth=
d.lineWidth||b.lineWidth+1):d.color=d.color||wa(d.color||f).brighten(d.brightness).get();k[""]=a.convertAttribs(b,g);w(["hover","select"],function(b){k[b]=a.convertAttribs(c[b],k[""])});a.pointAttr=k;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&!1===b.enabled)b.radius=0;e=a.options.colorByPoint;if(g.options)for(m in i)q(b[i[m]])&&(e=!0);if(e){b=b||{};j=[];c=b.states||{};e=c.hover=c.hover||{};if(!a.options.marker)e.color=wa(e.color||g.color).brighten(e.brightness||d.brightness).get();
j[""]=a.convertAttribs(n({color:g.color},b),k[""]);j.hover=a.convertAttribs(c.hover,k.hover,j[""]);j.select=a.convertAttribs(c.select,k.select,j[""])}else j=k;g.pointAttr=j}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(ua),d,e,f=a.data||[],g,h,k;Q(a,"destroy");ha(a);w(["xAxis","yAxis"],function(b){if(k=a[b])O(k.series,a),k.isDirty=!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);
w("area,graph,dataLabelsGroup,group,markerGroup,tracker,trackerGroup".split(","),function(b){a[b]&&(d=c&&"group"===b?"hide":"destroy",a[b][d]())});if(b.hoverSeries===a)b.hoverSeries=null;O(b.series,a);for(h in a)delete a[h]},drawDataLabels:function(){var a=this,b=a.options.dataLabels,c=a.points,d,e,f,g;if(b.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(b),g=a.plotGroup("dataLabelsGroup","data-labels",a.visible?"visible":"hidden",b.zIndex||6),e=b,w(c,function(c){var k,j=c.dataLabel,
i,m=!0;d=c.options&&c.options.dataLabels;k=e.enabled||d&&d.enabled;if(j&&!k)c.dataLabel=j.destroy();else if(k){k=b.rotation;b=J(e,d);f=b.formatter.call(c.getLabelConfig(),b);b.style.color=l(b.color,b.style.color,a.color,"black");if(j)j.attr({text:f}),m=!1;else if(q(f)){j={fill:b.backgroundColor,stroke:b.borderColor,"stroke-width":b.borderWidth,r:b.borderRadius||0,rotation:k,padding:b.padding,zIndex:1};for(i in j)j[i]===I&&delete j[i];j=c.dataLabel=a.chart.renderer[k?"text":"label"](f,0,-999,null,
null,null,b.useHTML).attr(j).css(b.style).add(g).shadow(b.shadow)}j&&a.alignDataLabel(c,j,b,null,m)}})},alignDataLabel:function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=l(a.plotX,-999),a=l(a.plotY,-999),k=b.getBBox(),d=n({x:g?f.plotWidth-a:h,y:B(g?f.plotHeight-h:a),width:0,height:0},d);n(c,{width:k.width,height:k.height});c.rotation?(d={align:c.align,x:d.x+c.x+d.width/2,y:d.y+c.y+d.height/2},b[e?"attr":"animate"](d)):(b.align(c,null,d),d=b.alignAttr);b.attr({visibility:!1===c.crop||f.isInsidePlot(d.x,
d.y)||f.isInsidePlot(h,a,g)?f.renderer.isSVG?"inherit":"visible":"hidden"})},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;w(a,function(e,f){var g=e.plotX,h=e.plotY,k;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(k=a[f-1],"right"===d?c.push(k.plotX,h):"center"===d?c.push((k.plotX+g)/2,k.plotY,(k.plotX+g)/2,h):c.push(g,k.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=[],c,d=[];w(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.options,b=this.graph,c=this.group,d=a.lineColor||this.color,e=a.lineWidth,f=a.dashStyle,g=this.getGraphPath();if(b)cb(b),b.animate({d:g});else if(e){b={stroke:d,"stroke-width":e,zIndex:1};if(f)b.dashstyle=f;this.graph=this.chart.renderer.path(g).attr(b).add(c).shadow(a.shadow)}},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};w(["group","trackerGroup","markerGroup"],
function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;T(c,"resize",a);T(b,"destroy",function(){ha(c,"resize",a)});a();b.invertGroups=a},plotGroup:function(a,b,c,d,e){var f=this[a],g=this.chart,h=this.xAxis,k=this.yAxis;f||(this[a]=f=g.renderer.g(b).attr({visibility:c,zIndex:d||0.1}).add(e));f.translate(h?h.left:g.plotLeft,k?k.top:g.plotTop);return f},render:function(){var a=this.chart,b,c=this.options,d=c.animation&&!!this.animate,e=this.visible?"visible":"hidden",f=c.zIndex,g=this.hasRendered,
h=a.seriesGroup;b=this.plotGroup("group","series",e,f,h);this.markerGroup=this.plotGroup("markerGroup","markers",e,f,h);d&&this.animate(!0);this.getAttribs();b.inverted=a.inverted;this.drawGraph&&this.drawGraph();this.drawPoints();this.drawDataLabels();!1!==this.options.enableMouseTracking&&this.drawTracker();a.inverted&&this.invertGroups();!1!==c.clip&&!this.sharedClipKey&&!g&&(b.clip(a.clipRect),this.trackerGroup&&this.trackerGroup.clip(a.clipRect));d?this.animate():g||this.afterAnimate();this.isDirty=
this.isDirtyData=!1;this.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:this.xAxis.left,translateY:this.yAxis.top}));this.translate();this.setTooltipPoints(!0);this.render();b&&Q(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=b.states,b=b.lineWidth,a=a||"";if(this.state!==a)this.state=a,d[a]&&!1===d[a].enabled||(a&&(b=d[a].lineWidth||b+1),c&&!c.dashstyle&&
c.attr({"stroke-width":b},a?0:500))},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,h=this.markerGroup,k,j=this.points,i=c.options.chart.ignoreHiddenSeries;k=this.visible;k=(this.visible=a=a===I?!k:a)?"show":"hide";if(e)e[k]();if(h)h[k]();if(f)f[k]();else if(j)for(e=j.length;e--;)if(f=j[e],f.tracker)f.tracker[k]();if(c.hoverSeries===this)this.onMouseOut();if(g)g[k]();d&&c.legend.colorizeItem(this,a);this.isDirty=!0;this.options.stacking&&
w(c.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0});if(i)c.isDirtyBox=!0;!1!==b&&c.redraw();Q(this,k)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===I?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;Q(this,a?"select":"unselect")},drawTracker: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.renderer,h=f.options.tooltip.snap,k=a.tracker,j=b.cursor,
j=j&&{cursor:j},i=a.singlePoints,m=this.isCartesian&&this.plotGroup("trackerGroup",null,"visible",b.zIndex||1,f.trackerGroup),u,p=function(){if(f.hoverSeries!==a)a.onMouseOver()},t=function(){if(!b.stickyTracking)a.onMouseOut()};if(e&&!c)for(u=e+1;u--;)"M"===d[u]&&d.splice(u+1,0,d[u+1]-h,d[u+2],"L"),(u&&"M"===d[u]||u===e)&&d.splice(u,0,"L",d[u-2]+h,d[u-1]);for(u=0;u<i.length;u++)e=i[u],d.push("M",e.plotX-h,e.plotY,"L",e.plotX+h,e.plotY);if(k)k.attr({d:d});else if(a.tracker=k=g.path(d).attr({isTracker:!0,
"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:sb,fill:c?sb:ga,"stroke-width":b.lineWidth+(c?0:2*h)}).on("mouseover",p).on("mouseout",t).css(j).add(m),Ba)k.on("touchstart",p)}};var Tb=S(ea);qa.line=Tb;oa.area=J(Ma,{threshold:0});var eb=S(ea,{type:"area",getSegmentPath:function(a){var b=ea.prototype.getSegmentPath.call(this,a),c=[].concat(b),d,e=this.options;3===b.length&&c.push("L",b[1],b[2]);if(e.stacking&&!this.closedStacks)for(d=a.length-1;0<=d;d--)d<a.length-1&&e.step&&
c.push(a[d+1].plotX,a[d].yBottom),c.push(a[d].plotX,a[d].yBottom);else this.closeSegment(c,a);this.areaPath=this.areaPath.concat(c);return b},closeSegment:function(a,b){var c=this.yAxis.getThreshold(this.options.threshold);a.push("L",b[b.length-1].plotX,c,"L",b[0].plotX,c)},drawGraph:function(){this.areaPath=[];ea.prototype.drawGraph.apply(this);var a=this.areaPath,b=this.options,c=this.area;c?c.animate({d:a}):this.area=this.chart.renderer.path(a).attr({fill:l(b.fillColor,wa(this.color).setOpacity(b.fillOpacity||
0.75).get()),zIndex:0}).add(this.group)},drawLegendSymbol:function(a,b){b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,a.options.symbolWidth,12,2).attr({zIndex:3}).add(b.legendGroup)}});qa.area=eb;oa.spline=J(Ma);var Nb=S(ea,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,k,j,i;if(f&&g){a=f.plotY;j=g.plotX;var g=g.plotY,m;h=(1.5*d+f.plotX)/2.5;k=(1.5*e+a)/2.5;j=(1.5*d+j)/2.5;i=(1.5*e+g)/2.5;m=(i-k)*(j-d)/(j-h)+e-i;k+=m;i+=m;k>a&&k>e?(k=D(a,e),i=2*
e-k):k<a&&k<e&&(k=da(a,e),i=2*e-k);i>g&&i>e?(i=D(g,e),k=2*e-i):i<g&&i<e&&(i=da(g,e),k=2*e-i);b.rightContX=j;b.rightContY=i}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,k||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});qa.spline=Nb;oa.areaspline=J(oa.area);var xb=eb.prototype,Ub=S(Nb,{type:"areaspline",closedStacks:!0,getSegmentPath:xb.getSegmentPath,closeSegment:xb.closeSegment,drawGraph:xb.drawGraph});qa.areaspline=Ub;oa.column=J(Ma,{borderColor:"#FFFFFF",borderWidth:1,
borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},threshold:0});var yb=S(ea,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){ea.prototype.init.apply(this,arguments);var a=this,b=a.chart;
b.hasRendered&&w(b.series,function(b){if(b.type===a.type)b.isDirty=!0})},translate:function(){var a=this,b=a.chart,c=a.options,d=c.stacking,e=c.borderWidth,f=0,g=a.xAxis,h=a.yAxis,j=g.reversed,i={},m,u;ea.prototype.translate.apply(a);!1===c.grouping?f=1:w(b.series,function(b){var c=b.options;if(b.type===a.type&&b.visible&&a.options.group===c.group)c.stacking?(m=b.stackKey,i[m]===I&&(i[m]=f++),u=i[m]):!1!==c.grouping&&(u=f++),b.columnIndex=u});var p=a.points,g=Z(g.transA)*(g.ordinalSlope||c.pointRange||
g.closestPointRange||1),t=g*c.groupPadding,v=(g-2*t)/f,y=c.pointWidth,n=q(y)?(v-y)/2:v*c.pointPadding,G=l(y,v-2*n),E=za(D(G,1+2*e)),K=n+(t+((j?f-(a.columnIndex||0):a.columnIndex)||0)*v-g/2)*(j?-1:1),H=a.translatedThreshold=h.getThreshold(c.threshold),s=l(c.minPointLength,5);w(p,function(c){var f=da(D(-999,c.plotY),h.len+999),g=l(c.yBottom,H),j=c.plotX+K,k=za(da(f,g)),i=za(D(f,g)-k),m=h.stacks[(0>c.y?"-":"")+a.stackKey];d&&a.visible&&m&&m[c.x]&&m[c.x].setOffset(K,E);Z(i)<s&&s&&(i=s,k=Z(k-H)>s?g-s:
H-(f<=H?s:0));c.barX=j;c.pointWidth=G;c.shapeType="rect";c.shapeArgs=f=b.renderer.Element.prototype.crisp.call(0,e,j,k,E,i);e%2&&(f.y-=1,f.height+=1);c.trackerArgs=3>Z(i)&&J(c.shapeArgs,{height:6,y:k-3})})},getSymbol:$a,drawLegendSymbol:eb.prototype.drawLegendSymbol,drawGraph:$a,drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d;w(a.points,function(e){var f=e.plotY,g=e.graphic;if(f!==I&&!isNaN(f)&&null!==e.y)d=e.shapeArgs,g?(cb(g),g.animate(J(d))):e.graphic=c[e.shapeType](d).attr(e.pointAttr[e.selected?
"select":""]).add(a.group).shadow(b.shadow,null,b.stacking&&!b.borderRadius);else if(g)e.graphic=g.destroy()})},drawTracker:function(){for(var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options,h=(d=g.cursor)&&{cursor:d},j=a.isCartesian&&a.plotGroup("trackerGroup",null,"visible",g.zIndex||1,b.trackerGroup),i,m,u=a.points,p,t=u.length,v=function(c){i=c.relatedTarget||c.fromElement;if(b.hoverSeries!==a&&s(i,"isTracker")!==f)a.onMouseOver();u[c.target._i].onMouseOver()},l=function(b){if(!g.stickyTracking&&
(i=b.relatedTarget||b.toElement,s(i,"isTracker")!==f))a.onMouseOut()};t--;)if(p=u[t],e=p.tracker,d=p.trackerArgs||p.shapeArgs,m=p.plotY,m=!a.isCartesian||m!==I&&!isNaN(m),delete d.strokeWidth,null!==p.y&&m){if(e)e.attr(d);else if(p.tracker=e=c[p.shapeType](d).attr({isTracker:f,fill:sb,visibility:a.visible?"visible":"hidden"}).on("mouseover",v).on("mouseout",l).css(h).add(p.group||j),Ba)e.on("touchstart",v);e.element._i=t}},alignDataLabel:function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=a.below||
a.plotY>l(this.translatedThreshold,f.plotSizeY),j=this.options.stacking||c.inside;if(a.shapeArgs&&(d=J(a.shapeArgs),g&&(d={x:f.plotWidth-d.y-d.height,y:f.plotHeight-d.x-d.width,width:d.height,height:d.width}),!j))g?(d.x+=h?0:d.width,d.width=0):(d.y+=h?d.height:0,d.height=0);c.align=l(c.align,!g||j?"center":h?"right":"left");c.verticalAlign=l(c.verticalAlign,g||j?"middle":h?"top":"bottom");ea.prototype.alignDataLabel.call(this,a,b,c,d,e)},animate:function(a){var b=this,c=b.points,d=b.options;if(!a)w(c,
function(a){var c=a.graphic,a=a.shapeArgs,g=b.yAxis,h=d.threshold;c&&(c.attr({height:0,y:q(h)?g.getThreshold(h):g.translate(g.getExtremes().min,0,1,0,1)}),c.animate({height:a.height,y:a.y},d.animation))}),b.animate=null},remove:function(){var a=this,b=a.chart;b.hasRendered&&w(b.series,function(b){if(b.type===a.type)b.isDirty=!0});ea.prototype.remove.apply(a,arguments)}});qa.column=yb;oa.bar=J(oa.column);var Vb=S(yb,{type:"bar",inverted:!0});qa.bar=Vb;oa.scatter=J(Ma,{lineWidth:0,states:{hover:{lineWidth:0}},
tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});var Wb=S(ea,{type:"scatter",sorted:!1,requireSorting:!1,translate:function(){var a=this;ea.prototype.translate.apply(a);w(a.points,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){for(var a=this,b=a.options.cursor,b=b&&{cursor:b},c=a.points,d=c.length,e,f=a.markerGroup,
g=function(b){a.onMouseOver();if(b.target._i!==I)c[b.target._i].onMouseOver()};d--;)if(e=c[d].graphic)e.element._i=d;if(a._hasTracking)a._hasTracking=!0;else if(f.attr({isTracker:!0}).on("mouseover",g).on("mouseout",function(){if(!a.options.stickyTracking)a.onMouseOut()}).css(b),Ba)f.on("touchstart",g)},setTooltipPoints:$a});qa.scatter=Wb;oa.pie=J(Ma,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},
legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}}});var zb={type:"pie",isCartesian:!1,pointClass:S(Oa,{init:function(){Oa.prototype.init.apply(this,arguments);var a=this,b;n(a,{visible:!1!==a.visible,name:l(a.name,"Slice")});b=function(){a.slice()};T(a,"select",b);T(a,"unselect",b);return a},setVisible:function(a){var b=this.series,c=b.chart,d=this.tracker,e=this.dataLabel,f=this.connector,g=this.shadowGroup,h;h=(this.visible=a=a===
I?!this.visible:a)?"show":"hide";this.group[h]();if(d)d[h]();if(e)e[h]();if(f)f[h]();if(g)g[h]();this.legendItem&&c.legend.colorizeItem(this,a);if(!b.isDirty&&b.options.ignoreHiddenPoint)b.isDirty=!0,c.redraw()},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;t(c,d);l(b,!0);a=this.sliced=q(a)?a:!this.sliced;a={translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop};this.group.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}}),requireSorting:!1,pointAttrToOptions:{stroke:"borderColor",
"stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this,b=a.startAngleRad;w(a.points,function(c){var d=c.graphic,c=c.shapeArgs;d&&(d.attr({r:a.center[3]/2,start:b,end:b}),d.animate({r:c.r,start:c.start,end:c.end},a.options.animation))});a.animate=null},setData:function(a,b){ea.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();l(b,!0)&&this.chart.redraw()},getCenter:function(){var a=this.options,
b=this.chart,c=b.plotWidth,d=b.plotHeight,a=a.center.concat([a.size,a.innerSize||0]),e=da(c,d),f;return La(a,function(a,b){return(f=/%$/.test(a))?[c,d,e,e][b]*z(a)/100:a})},translate:function(){this.generatePoints();var a=0,b=0,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g=this.chart,h,j,i,m=this.startAngleRad=Aa/180*((c.startAngle||0)%360-90),u=this.points,p=2*Aa,t=c.dataLabels.distance,v=c.ignoreHiddenPoint,l,y=u.length,w;this.center=f=this.getCenter();this.getX=function(a,b){i=W.asin((a-
f[1])/(f[2]/2+t));return f[0]+(b?-1:1)*la(i)*(f[2]/2+t)};for(l=0;l<y;l++)w=u[l],a+=v&&!w.visible?0:w.y;for(l=0;l<y;l++){w=u[l];c=a?w.y/a:0;h=B(1E3*(m+b*p))/1E3;if(!v||w.visible)b+=c;j=B(1E3*(m+b*p))/1E3;w.shapeType="arc";w.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:h,end:j};i=(j+h)/2;i>0.75*p&&(i-=2*Aa);w.slicedTranslation=La([la(i)*d+g.plotLeft,pa(i)*d+g.plotTop],B);h=la(i)*f[2]/2;j=pa(i)*f[2]/2;w.tooltipPos=[f[0]+0.7*h,f[1]+0.7*j];w.half=i<p/4?0:1;w.angle=i;w.labelPos=[f[0]+h+la(i)*t,
f[1]+j+pa(i)*t,f[0]+h+la(i)*e,f[1]+j+pa(i)*e,f[0]+h,f[1]+j,0>t?"center":w.half?"right":"left",i];w.percentage=100*c;w.total=a}this.setTooltipPoints()},render:function(){this.getAttribs();this.drawPoints();!1!==this.options.enableMouseTracking&&this.drawTracker();this.drawDataLabels();this.options.animation&&this.animate&&this.animate();this.isDirty=!1},drawPoints:function(){var a=this,b=a.chart,c=b.renderer,d,e,f,g=a.options.shadow,h,j;w(a.points,function(i){e=i.graphic;j=i.shapeArgs;f=i.group;h=
i.shadowGroup;if(g&&!h)h=i.shadowGroup=c.g("shadow").attr({zIndex:4}).add();if(!f)f=i.group=c.g("point").attr({zIndex:5}).add();d=i.sliced?i.slicedTranslation:[b.plotLeft,b.plotTop];f.translate(d[0],d[1]);h&&h.translate(d[0],d[1]);e?e.animate(j):i.graphic=e=c.arc(j).setRadialReference(a.center).attr(n(i.pointAttr[""],{"stroke-linejoin":"round"})).add(i.group).shadow(g,h);!1===i.visible&&i.setVisible(!1)})},drawDataLabels:function(){var a=this.data,b,c=this.chart,d=this.options.dataLabels,e=l(d.connectorPadding,
10),f=l(d.connectorWidth,1),g,h,i=l(d.softConnector,!0),j=d.distance,m=this.center,u=m[2]/2,p=m[1],t=0<j,v=[[],[]],y,n,G,E=2,q,H=function(a,b){return b.y-a.y},K=function(a,b){a.sort(function(a,c){return(c.angle-a.angle)*b})};if(d.enabled||this._hasPointLabels){ea.prototype.drawDataLabels.apply(this);w(a,function(a){a.dataLabel&&v[a.half].push(a)});for(a=v[0][0]&&v[0][0].dataLabel&&(v[0][0].dataLabel.getBBox().height||21);E--;){var s=[],$=[],B=v[E],D=B.length,x;K(B,E-0.5);if(0<j){for(q=p-u-j;q<=p+
u+j;q+=a)s.push(q);G=s.length;if(D>G){h=[].concat(B);h.sort(H);for(q=D;q--;)h[q].rank=q;for(q=D;q--;)B[q].rank>=G&&B.splice(q,1);D=B.length}for(q=0;q<D;q++){b=B[q];h=b.labelPos;b=9999;for(n=0;n<G;n++)g=Z(s[n]-h[1]),g<b&&(b=g,x=n);if(x<q&&null!==s[q])x=q;else for(G<D-q+x&&null!==s[q]&&(x=G-D+q);null===s[x];)x++;$.push({i:x,y:s[x]});s[x]=null}$.sort(H)}for(q=0;q<D;q++){b=B[q];h=b.labelPos;g=b.dataLabel;G=!1===b.visible?"hidden":"visible";y=h[1];if(0<j){if(n=$.pop(),x=n.i,n=n.y,y>n&&null!==s[x+1]||y<
n&&null!==s[x-1])n=y}else n=y;y=d.justify?m[0]+(E?-1:1)*(u+j):this.getX(0===x||x===s.length-1?y:n,E);g.attr({visibility:G,align:h[6]})[g.moved?"animate":"attr"]({x:y+d.x+({left:e,right:-e}[h[6]]||0),y:n+d.y-10});g.moved=!0;if(t&&f)g=b.connector,h=i?["M",y+("left"===h[6]?5:-5),n,"C",y,n,2*h[2]-h[4],2*h[3]-h[5],h[2],h[3],"L",h[4],h[5]]:["M",y+("left"===h[6]?5:-5),n,"L",h[2],h[3],"L",h[4],h[5]],g?(g.animate({d:h}),g.attr("visibility",G)):b.connector=g=this.chart.renderer.path(h).attr({"stroke-width":f,
stroke:d.connectorColor||b.color||"#606060",visibility:G,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}},alignDataLabel:$a,drawTracker:yb.prototype.drawTracker,drawLegendSymbol:eb.prototype.drawLegendSymbol,getSymbol:function(){}},zb=S(ea,zb);qa.pie=zb;n(Highcharts,{Axis:lb,CanVGRenderer:db,Chart:pb,Color:wa,Legend:ob,MouseTracker:nb,Point:Oa,Tick:$,Tooltip:mb,Renderer:Ka,Series:ea,SVGRenderer:xa,VMLRenderer:Na,arrayMin:na,arrayMax:j,charts:Da,dateFormat:Za,pathAnim:rb,getOptions:function(){return ca},
hasBidiBug:Ob,isTouchDevice:Hb,numberFormat:v,seriesTypes:qa,setOptions:function(a){ca=J(ca,a);p();return ca},addEvent:T,removeEvent:ha,createElement:F,discardElement:m,css:M,each:w,extend:n,map:La,merge:J,pick:l,splat:A,extendClass:S,pInt:z,wrap:function(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)}},svg:ra,canvas:ka,vml:!ra&&!ka,product:"Highcharts",version:"2.3.5"})})();
(function(n){function aa(v){for(var l=v.length;l--;)"number"===typeof v[l]&&(v[l]=Math.round(v[l])-0.5);return v}var z=n.Chart,ia=n.addEvent,ba=n.removeEvent,V=n.createElement,fa=n.discardElement,R=n.css,Y=n.merge,O=n.each,q=n.extend,s=Math.max,A=document,l=window,M=n.isTouchDevice,F=n.Renderer.prototype.symbols,S=n.getOptions();q(S.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",
printButtonTitle:"Print the chart"});S.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:"none",color:"#303030",fontSize:M?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[0.4,"#F7F7F7"],[0.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",
symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}};S.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{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"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}};n.post=function(v,l){var n,q;q=V("form",{method:"post",action:v,enctype:"multipart/form-data"},{display:"none"},A.body);for(n in l)V("input",{type:"hidden",name:n,value:l[n]},null,q);
q.submit();fa(q)};q(z.prototype,{getSVG:function(v){var l=this,E,s,x,z=Y(l.options,v);if(!A.createElementNS)A.createElementNS=function(l,v){return A.createElement(v)};v=V("div",null,{position:"absolute",top:"-9999em",width:l.chartWidth+"px",height:l.chartHeight+"px"},A.body);q(z.chart,{renderTo:v,forExport:!0});z.exporting.enabled=!1;z.chart.plotBackgroundImage=null;z.series=[];O(l.series,function(l){x=Y(l.options,{animation:!1,showCheckbox:!1,visible:l.visible});x.isInternal||z.series.push(x)});
E=new n.Chart(z);O(["xAxis","yAxis"],function(v){O(l[v],function(l,j){var i=E[v][j],m=l.getExtremes(),u=m.userMin,m=m.userMax;(void 0!==u||void 0!==m)&&i.setExtremes(u,m,!0,!1)})});s=E.container.innerHTML;z=null;E.destroy();fa(v);s=s.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/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(/&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(l){return l.toLowerCase()});s=s.replace(/(url\(#highcharts-[0-9]+)&quot;/g,
"$1").replace(/&quot;/g,"'");2===s.match(/ xmlns="/g).length&&(s=s.replace(/xmlns="[^"]+"/,""));return s},exportChart:function(l,q){var s=this.options.exporting,H=this.getSVG(Y(s.chartOptions,q)),l=Y(s,l);n.post(l.url,{filename:l.filename||"chart",type:l.type,width:l.width,scale:l.scale||2,svg:H})},print:function(){var v=this,n=v.container,q=[],s=n.parentNode,x=A.body,z=x.childNodes;if(!v.isPrinting)v.isPrinting=!0,O(z,function(l,v){if(1===l.nodeType)q[v]=l.style.display,l.style.display="none"}),
x.appendChild(n),l.print(),setTimeout(function(){s.appendChild(n);O(z,function(l,v){if(1===l.nodeType)l.style.display=q[v]});v.isPrinting=!1},1E3)},contextMenu:function(l,n,E,H,x,z){var A=this,F=A.options.navigation,j=F.menuItemStyle,i=A.chartWidth,m=A.chartHeight,u="cache-"+l,y=A[u],t=s(x,z),p,K,$;if(!y)A[u]=y=V("div",{className:"highcharts-"+l},{position:"absolute",zIndex:1E3,padding:t+"px"},A.container),p=V("div",null,q({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},
F.menuStyle),y),K=function(){R(y,{display:"none"})},ia(y,"mouseleave",function(){$=setTimeout(K,500)}),ia(y,"mouseenter",function(){clearTimeout($)}),O(n,function(i){if(i){var m=V("div",{onmouseover:function(){R(this,F.menuItemHoverStyle)},onmouseout:function(){R(this,j)},innerHTML:i.text||A.options.lang[i.textKey]},q({cursor:"pointer"},j),p);m.onclick=function(){K();i.onclick.apply(A,arguments)};A.exportDivElements.push(m)}}),A.exportDivElements.push(p,y),A.exportMenuWidth=y.offsetWidth,A.exportMenuHeight=
y.offsetHeight;l={display:"block"};E+A.exportMenuWidth>i?l.right=i-E-x-t+"px":l.left=E-t+"px";H+z+A.exportMenuHeight>m?l.bottom=m-H-t+"px":l.top=H+z-t+"px";R(y,l)},addButton:function(l){function n(){m.attr(p);i.attr(t)}var s=this,H=s.renderer,x=Y(s.options.navigation.buttonOptions,l),z=x.onclick,A=x.menuItems,F=x.width,j=x.height,i,m,u,y,l=x.borderWidth,t={stroke:x.borderColor},p={stroke:x.symbolStroke,fill:x.symbolFill},K=x.symbolSize||12;if(!s.btnCount)s.btnCount=0;y=s.btnCount++;if(!s.exportDivElements)s.exportDivElements=
[],s.exportSVGElements=[];!1!==x.enabled&&(i=H.rect(0,0,F,j,x.borderRadius,l).align(x,!0).attr(q({fill:x.backgroundColor,"stroke-width":l,zIndex:19},t)).add(),u=H.rect(0,0,F,j,0).align(x).attr({id:x._id,fill:"rgba(255, 255, 255, 0.001)",title:s.options.lang[x._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){m.attr({stroke:x.hoverSymbolStroke,fill:x.hoverSymbolFill});i.attr({stroke:x.hoverBorderColor})}).on("mouseout",n).on("click",n).add(),A&&(z=function(){n();var i=u.getBBox();
s.contextMenu("menu"+y,A,i.x,i.y,F,j)}),u.on("click",function(){z.apply(s,arguments)}),m=H.symbol(x.symbol,x.symbolX-K/2,x.symbolY-K/2,K,K).align(x,!0).attr(q(p,{"stroke-width":x.symbolStrokeWidth||1,zIndex:20})).add(),s.exportSVGElements.push(i,u,m))},destroyExport:function(){var l,n;for(l=0;l<this.exportSVGElements.length;l++)n=this.exportSVGElements[l],n.onclick=n.ontouchstart=null,this.exportSVGElements[l]=n.destroy();for(l=0;l<this.exportDivElements.length;l++)n=this.exportDivElements[l],ba(n,
"mouseleave"),this.exportDivElements[l]=n.onmouseout=n.onmouseover=n.ontouchstart=n.onclick=null,fa(n)}});F.exportIcon=function(l,n,q,s){return aa(["M",l,n+q,"L",l+q,n+s,l+q,n+0.8*s,l,n+0.8*s,"Z","M",l+0.5*q,n+0.8*s,"L",l+0.8*q,n+0.4*s,l+0.4*q,n+0.4*s,l+0.4*q,n,l+0.6*q,n,l+0.6*q,n+0.4*s,l+0.2*q,n+0.4*s,"Z"])};F.printIcon=function(l,n,q,s){return aa(["M",l,n+0.7*s,"L",l+q,n+0.7*s,l+q,n+0.4*s,l,n+0.4*s,"Z","M",l+0.2*q,n+0.4*s,"L",l+0.2*q,n,l+0.8*q,n,l+0.8*q,n+0.4*s,"Z","M",l+0.2*q,n+0.7*s,"L",l,n+s,
l+q,n+s,l+0.8*q,n+0.7*s,"Z"])};z.prototype.callbacks.push(function(l){var n,q=l.options.exporting,s=q.buttons;if(!1!==q.enabled){for(n in s)l.addButton(s[n]);ia(l,"destroy",l.destroyExport)}})})(Highcharts);
(function(n,aa){function z(j,i,m){this.init.call(this,j,i,m)}function ia(j,i,m){j.call(this,i,m);if(this.chart.polar)this.closeSegment=function(i){var j=this.xAxis.center;i.push("L",j[0],j[1])},this.closedStacks=!0}function ba(j,i){var m=this.chart,u=this.options.animation,l=this.group,t=this.markerGroup,p=this.xAxis.center,n=m.plotLeft,q=m.plotTop;if(m.polar){if(m.renderer.isSVG)if(!0===u&&(u={}),i){if(l.attrSetters.scaleX=l.attrSetters.scaleY=function(i,j){this[j]=i;this.scaleX!==aa&&this.scaleY!==
aa&&this.element.setAttribute("transform","translate("+this.translateX+","+this.translateY+") scale("+this.scaleX+","+this.scaleY+")");return!1},m={translateX:p[0]+n,translateY:p[1]+q,scaleX:0,scaleY:0},l.attr(m),t)t.attrSetters=l.attrSetters,t.attr(m)}else m={translateX:n,translateY:q,scaleX:1,scaleY:1},l.animate(m,u),t&&t.animate(m,u),this.animate=null}else j.call(this,i)}var V=n.each,fa=n.extend,R=n.merge,Y=n.map,O=n.pick,q=n.pInt,s=n.getOptions().plotOptions,A=n.seriesTypes,l=n.extendClass,M=
n.splat,F=n.wrap,S=n.Axis,v=n.Tick,G=n.Series,E=A.column.prototype,H=function(){};fa(z.prototype,{init:function(j,i,m){var l=this,n=l.defaultOptions;l.chart=i;if(i.angular)n.background={};l.options=j=R(n,j);(j=j.background)&&V([].concat(M(j)).reverse(),function(i){var j=i.backgroundColor,i=R(l.defaultBackgroundOptions,i);if(j)i.backgroundColor=j;i.color=i.backgroundColor;m.options.plotBands.unshift(i)})},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.MIN_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var x=S.prototype,S=v.prototype,Ua={getOffset:H,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:H,setCategories:H,setTitle:H},Ha={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",
minorTickWidth:1,plotBands:[],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,plotBands:[],showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},plotBands:[],showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(j){this.options=R(this.defaultOptions,this.defaultRadialOptions,j)},getOffset:function(){x.getOffset.call(this);
this.chart.axisOffset[this.side]=0;this.center=this.pane.center=A.pie.prototype.getCenter.call(this.pane)},getLinePath:function(j,i){var m=this.center,i=O(i,m[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+m[0],this.top+m[1],i,i,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){x.setAxisTranslation.call(this);if(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.isXAxis))this.minPixelPadding=this.transA*this.minPointOffset+(this.reversed?(this.endAngleRad-this.startAngleRad)/4:0)},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange)},setAxisSize:function(){x.setAxisSize.call(this);if(this.center)this.len=this.width=this.height=this.isCircular?this.center[2]*(this.endAngleRad-this.startAngleRad)/2:this.center[2]/2},getPosition:function(j,i){if(!this.isCircular)i=
this.translate(j),j=this.min;return this.postTranslate(this.translate(j),O(i,this.center[2]/2)-this.offset)},postTranslate:function(j,i){var m=this.chart,l=this.center,j=this.startAngleRad+j;return{x:m.plotLeft+l[0]+Math.cos(j)*i,y:m.plotTop+l[1]+Math.sin(j)*i}},getPlotBandPath:function(j,i,m){var l=this.center,n=this.startAngleRad,t=l[2]/2,p=[O(m.outerRadius,"100%"),m.innerRadius,O(m.thickness,10)],s=/%$/,v,x=this.isCircular;"polygon"===this.options.gridLineInterpolation?l=this.getPlotLinePath(j).concat(this.getPlotLinePath(i,
!0)):(x||(p[0]=this.translate(j),p[1]=this.translate(i)),p=Y(p,function(i){s.test(i)&&(i=q(i,10)*t/100);return i}),"circle"===m.shape||!x?(j=-Math.PI/2,i=1.5*Math.PI,v=!0):(j=n+this.translate(j),i=n+this.translate(i)),l=this.chart.renderer.symbols.arc(this.left+l[0],this.top+l[1],p[0],p[0],{start:j,end:i,innerR:O(p[1],p[0]-p[2]),open:v}));return l},getPlotLinePath:function(j,i){var m=this.center,l=this.chart,n=this.getPosition(j),t,p,q;this.isCircular?q=["M",m[0]+l.plotLeft,m[1]+l.plotTop,"L",n.x,
n.y]:"circle"===this.options.gridLineInterpolation?(j=this.translate(j))&&(q=this.getLinePath(0,j)):(t=l.xAxis[0],q=[],j=this.translate(j),m=t.tickPositions,t.autoConnect&&(m=m.concat([m[0]])),i&&(m=[].concat(m).reverse()),V(m,function(i,m){p=t.getPosition(i,j);q.push(m?"L":"M",p.x,p.y)}));return q},getTitlePosition:function(){var j=this.center,i=this.chart,m=this.options.title;return{x:i.plotLeft+j[0]+(m.x||0),y:i.plotTop+j[1]-{high:0.5,middle:0.25,low:0}[m.align]*j[2]+(m.y||0)}}};F(x,"init",function(j,
i,m){var l=i.angular,n=i.polar,t=m.isX,p=l&&t,q,s;s=i.options;var v=m.pane||0;if(l){if(fa(this,p?Ua:Ha),q=!t)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else if(n)fa(this,Ha),this.defaultRadialOptions=(q=t)?this.defaultRadialXOptions:R(this.defaultYAxisOptions,this.defaultRadialYOptions);j.call(this,i,m);if(!p&&(l||n)){j=this.options;if(!i.panes)i.panes=[];this.pane=i.panes[v]=v=new z(M(s.pane)[v],i,this);v=v.options;i.inverted=!1;s.chart.zoomType=null;this.startAngleRad=i=(v.startAngle-
90)*Math.PI/180;this.endAngleRad=s=(O(v.endAngle,v.startAngle+360)-90)*Math.PI/180;this.offset=j.offset||0;if((this.isCircular=q)&&m.max===aa&&s-i===2*Math.PI)this.autoConnect=!0}});F(S,"getPosition",function(j,i,m,l,n){var t=this.axis;return t.getPosition?t.getPosition(m):j.call(this,i,m,l,n)});F(S,"getLabelPosition",function(j,i,m,l,n,t,p,s,v){var x=this.axis,z=t.y,A=t.align,E=180*((x.translate(this.pos)+x.startAngleRad+Math.PI/2)/Math.PI);x.isRadial?(j=x.getPosition(this.pos,x.center[2]/2+O(t.distance,
-25)),"auto"===t.rotation?l.attr({rotation:E}):null===z&&(z=0.9*q(l.styles.lineHeight)-l.getBBox().height/2),null===A&&(A=x.isCircular?20<E&&160>E?"left":200<E&&340>E?"right":"center":"center",l.attr({align:A})),j.x+=t.x,j.y+=z):j=j.call(this,i,m,l,n,t,p,s,v);return j});F(S,"getMarkPath",function(j,i,m,l,n,t,p){var q=this.axis;q.isRadial?(j=q.getPosition(this.pos,q.center[2]/2+l),i=["M",i,m,"L",j.x,j.y]):i=j.call(this,i,m,l,n,t,p);return i});s.arearange=R(s.area,{lineWidth:1,marker:null,threshold:null,
tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},shadow:!1});S=n.extendClass(n.Point,{applyOptions:function(j,i){var m=this.series,l=m.pointArrayMap,n=0,t=0,p=l.length;if("object"===typeof j&&"number"!==typeof j.length)fa(this,j),this.options=j;else if(j.length){if(j.length>p){if("string"===typeof j[0])this.name=j[0];else if("number"===typeof j[0])this.x=
j[0];n++}for(;t<p;)this[l[t++]]=j[n++]}this.y=this[m.pointValKey];if(this.x===aa&&m)this.x=i===aa?m.autoIncrement():i;return this},toYData:function(){return[this.low,this.high]}});A.arearange=n.extendClass(A.area,{type:"arearange",pointArrayMap:["low","high"],pointClass:S,pointValKey:"low",translate:function(){var j=this.yAxis;A.area.prototype.translate.apply(this);V(this.points,function(i){if(null!==i.y)i.plotLow=i.plotY,i.plotHigh=j.translate(i.high,0,1,0,1)})},getSegmentPath:function(j){var i=
[],m=j.length,l=G.prototype.getSegmentPath,n,t;t=this.options;for(var p=t.step;m--;)n=j[m],i.push({plotX:n.plotX,plotY:n.plotHigh});j=l.call(this,j);if(p)!0===p&&(p="left"),t.step={left:"right",center:"center",right:"left"}[p];i=l.call(this,i);t.step=p;t=[].concat(j,i);i[0]="L";this.areaPath=this.areaPath.concat(j,i);return t},drawDataLabels:function(){var j=this.data,i=j.length,m,l=[],n=G.prototype,t=this.options.dataLabels,p,q=this.chart.inverted;if(t.enabled||this._hasPointLabels){for(m=i;m--;)p=
j[m],p.y=p.high,p.plotY=p.plotHigh,l[m]=p.dataLabel,p.dataLabel=p.dataLabelUpper,p.below=!1,q?(t.align="left",t.x=t.xHigh):t.y=t.yHigh;n.drawDataLabels.apply(this,arguments);for(m=i;m--;)p=j[m],p.dataLabelUpper=p.dataLabel,p.dataLabel=l[m],p.y=p.low,p.plotY=p.plotLow,p.below=!0,q?(t.align="right",t.x=t.xLow):t.y=t.yLow;n.drawDataLabels.apply(this,arguments)}},alignDataLabel:A.column.prototype.alignDataLabel,getSymbol:A.column.prototype.getSymbol,drawPoints:H});s.areasplinerange=R(s.arearange);A.areasplinerange=
l(A.arearange,{type:"areasplinerange",getPointSpline:A.spline.prototype.getPointSpline});s.columnrange=R(s.column,s.arearange,{lineWidth:1,pointRange:null});A.columnrange=l(A.arearange,{type:"columnrange",translate:function(){var j=this.yAxis,i;E.translate.apply(this);V(this.points,function(m){var l=m.shapeArgs;m.plotHigh=i=j.translate(m.high,0,1,0,1);m.plotLow=m.plotY;l.y=i;l.height=m.plotY-i;m.trackerArgs=l})},drawGraph:H,pointAttrToOptions:E.pointAttrToOptions,drawPoints:E.drawPoints,drawTracker:E.drawTracker,
animate:E.animate});s.gauge=R(s.line,{dataLabels:{enabled:!0,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,style:{fontWeight:"bold"},verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});s={type:"gauge",pointClass:n.extendClass(n.Point,{setState:function(j){this.state=j}}),angular:!0,translate:function(){var j=this,i=j.yAxis,m=i.center;j.generatePoints();V(j.points,function(l){var n=R(j.options.dial,l.dial),t=q(O(n.radius,80))*m[2]/200,p=q(O(n.baseLength,
70))*t/100,s=q(O(n.rearLength,10))*t/100,v=n.baseWidth||3,x=n.topWidth||1;l.shapeType="path";l.shapeArgs={d:n.path||["M",-s,-v/2,"L",p,-v/2,t,-x/2,t,x/2,p,v/2,-s,v/2,"z"],translateX:m[0],translateY:m[1],rotation:180*(i.startAngleRad+i.translate(l.y,null,null,null,!0))/Math.PI};l.plotX=m[0];l.plotY=m[1]})},drawPoints:function(){var j=this,i=j.yAxis.center,m=j.pivot,l=j.options,n=l.pivot,t=j.chart.renderer;V(j.points,function(i){var m=i.graphic,n=i.shapeArgs,q=n.d,s=R(l.dial,i.dial);m?(m.animate(n),
n.d=q):i.graphic=t[i.shapeType](n).attr({stroke:s.borderColor||"none","stroke-width":s.borderWidth||0,fill:s.backgroundColor||"black",rotation:n.rotation}).add(j.group)});m?m.animate({translateX:i[0],translateY:i[1]}):j.pivot=t.circle(0,0,O(n.radius,5)).attr({"stroke-width":n.borderWidth||0,stroke:n.borderColor||"silver",fill:n.backgroundColor||"black"}).translate(i[0],i[1]).add(j.group)},animate:function(){var j=this;V(j.points,function(i){var m=i.graphic;m&&(m.attr({rotation:180*j.yAxis.startAngleRad/
Math.PI}),m.animate({rotation:i.shapeArgs.rotation},j.options.animation))});j.animate=null},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);A.pie.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:A.pie.prototype.setData,drawTracker:A.column.prototype.drawTracker};A.gauge=n.extendClass(A.line,s);var na=G.prototype,s=n.MouseTracker.prototype;na.toXY=function(j){var i,m=this.chart;i=j.plotX;
var l=j.plotY;j.rectPlotX=i;j.rectPlotY=l;j.deg=180*(i/Math.PI);i=this.xAxis.postTranslate(j.plotX,this.yAxis.len-l);j.plotX=j.polarPlotX=i.x-m.plotLeft;j.plotY=j.polarPlotY=i.y-m.plotTop};F(A.area.prototype,"init",ia);F(A.areaspline.prototype,"init",ia);F(A.spline.prototype,"getPointSpline",function(j,i,m,l){var n,t,p,q,s,v,x;if(this.chart.polar){n=m.plotX;t=m.plotY;j=i[l-1];p=i[l+1];this.connectEnds&&(j||(j=i[i.length-2]),p||(p=i[1]));if(j&&p)q=j.plotX,s=j.plotY,i=p.plotX,v=p.plotY,q=(1.5*n+q)/
2.5,s=(1.5*t+s)/2.5,p=(1.5*n+i)/2.5,x=(1.5*t+v)/2.5,i=Math.sqrt(Math.pow(q-n,2)+Math.pow(s-t,2)),v=Math.sqrt(Math.pow(p-n,2)+Math.pow(x-t,2)),q=Math.atan2(s-t,q-n),s=Math.atan2(x-t,p-n),x=Math.PI/2+(q+s)/2,Math.abs(q-x)>Math.PI/2&&(x-=Math.PI),q=n+Math.cos(x)*i,s=t+Math.sin(x)*i,p=n+Math.cos(Math.PI+x)*v,x=t+Math.sin(Math.PI+x)*v,m.rightContX=p,m.rightContY=x;l?(m=["C",j.rightContX||j.plotX,j.rightContY||j.plotY,q||n,s||t,n,t],j.rightContX=j.rightContY=null):m=["M",n,t]}else m=j.call(this,i,m,l);
return m});F(na,"translate",function(j){j.call(this);if(this.chart.polar&&!this.preventPostTranslate)for(var j=this.points,i=j.length;i--;)this.toXY(j[i])});F(na,"getSegmentPath",function(j,i){var l=this.points;if(this.chart.polar&&!1!==this.options.connectEnds&&i[i.length-1]===l[l.length-1]&&null!==l[0].y)this.connectEnds=!0,i=[].concat(i,[l[0]]);return j.call(this,i)});F(na,"animate",ba);F(E,"animate",ba);F(na,"setTooltipPoints",function(j,i){this.chart.polar&&fa(this.xAxis,{tooltipLen:360,tooltipPosName:"deg"});
return j.call(this,i)});F(E,"translate",function(j){var i=this.xAxis,l=this.yAxis.len,n=i.center,q=i.startAngleRad,t=this.chart.renderer,p,s;this.preventPostTranslate=!0;j.call(this);if(i.isRadial){i=this.points;for(s=i.length;s--;)p=i[s],j=p.barX+q,p.shapeType="path",p.shapeArgs={d:t.symbols.arc(n[0],n[1],l-p.plotY,null,{start:j,end:j+p.pointWidth,innerR:l-O(p.yBottom,l)})},this.toXY(p)}});F(E,"alignDataLabel",function(j,i,l,n,q,t){if(this.chart.polar){j=180*(i.rectPlotX/Math.PI);if(null===n.align)n.align=
20<j&&160>j?"left":200<j&&340>j?"right":"center";if(null===n.verticalAlign)n.verticalAlign=45>j||315<j?"bottom":135<j&&225>j?"top":"middle";na.alignDataLabel.call(this,i,l,n,q,t)}else j.call(this,i,l,n,q,t)});F(s,"getIndex",function(j,i){var l,n=this.chart,q;n.polar?(q=n.xAxis[0].center,l=i.chartX-q[0]-n.plotLeft,n=i.chartY-q[1]-n.plotTop,l=180-Math.round(180*(Math.atan2(l,n)/Math.PI))):l=j.call(this,i);return l});F(s,"getMouseCoordinates",function(j,i){var l=this.chart,n={xAxis:[],yAxis:[]};l.polar?
V(l.axes,function(j){var q=j.isXAxis,p=j.center,s=i.chartX-p[0]-l.plotLeft,p=i.chartY-p[1]-l.plotTop;n[q?"xAxis":"yAxis"].push({axis:j,value:j.translate(q?Math.PI-Math.atan2(s,p):Math.sqrt(Math.pow(s,2)+Math.pow(p,2)),!0)})}):n=j.call(this,i);return n})})(Highcharts);
