/*
 Highstock JS v1.0.1 (2011-10-25)

 (c) 2009-2011 Torstein H?nsi

 License: www.highcharts.com/license
*/
(function(){function aa(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function Ob(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function ca(a,b){return parseInt(a,b||10)}function Bc(a){return typeof a==="string"}function oc(a){return typeof a==="object"}function ld(a){return typeof a==="number"}function Nc(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function Q(a){return a!==ma&&a!==null}function Ma(a,b,c){var d,e;if(Bc(b))if(Q(c))a.setAttribute(b,
c);else{if(a&&a.getAttribute)e=a.getAttribute(b)}else if(Q(b)&&oc(b))for(d in b)a.setAttribute(d,b[d]);return e}function pc(a){if(!a||a.constructor!==Array)a=[a];return a}function z(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++){c=a[b];if(typeof c!=="undefined"&&c!==null)return c}}function Na(a,b){if(md)if(b&&b.opacity!==ma)b.filter="alpha(opacity="+b.opacity*100+")";aa(a.style,b)}function pb(a,b,c,d,e){a=Aa.createElement(a);b&&aa(a,b);e&&Na(a,{padding:0,border:Ib,margin:0});c&&Na(a,c);d&&d.appendChild(a);
return a}function Bb(a,b){var c=function(){};c.prototype=new a;aa(c.prototype,b);return c}function nd(a,b,c,d){var e=Wa.lang;a=a;var f=isNaN(b=kb(b))?2:b;b=c===undefined?e.decimalPoint:c;d=d===undefined?e.thousandsSep:d;e=a<0?"-":"";c=String(ca(a=kb(+a||0).toFixed(f)));var g=c.length>3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+kb(a-c).toFixed(f).slice(2):"")}function be(a){var b={left:a.offsetLeft,top:a.offsetTop};for(a=a.offsetParent;a;){b.left+=
a.offsetLeft;b.top+=a.offsetTop;if(a!==Aa.body&&a!==Aa.documentElement){b.left-=a.scrollLeft;b.top-=a.scrollTop}a=a.offsetParent}return b}function ce(a,b,c,d){var e;c=z(c,1);e=a/c;if(!b){b=[1,2,2.5,5,10];if(d&&d.allowDecimals===false)if(c===1)b=[1,2,5,10];else if(c<=0.1)b=[1/c]}for(d=0;d<b.length;d++){a=b[d];if(e<=(b[d]+(b[d+1]||b[d]))/2)break}a*=c;return a}function de(a,b,c,d,e){var f=[],g=Wa.global.useUTC,h=e||[[bd,[1,2,5,10,20,25,50,100,200,500]],[Oc,[1,2,5,10,15,30]],[Cc,[1,2,5,10,15,30]],[Dc,
[1,2,3,4,6,8,12]],[Zb,[1,2]],[qc,[1,2]],[rc,[1,2,3,4,6]],[ic,null]],j=h[h.length-1],i=Qa[j[0]],k=j[1];for(e=0;e<h.length;e++){j=h[e];i=Qa[j[0]];k=j[1];if(h[e+1])if(a<=(i*k[k.length-1]+Qa[h[e+1][0]])/2)break}if(i===Qa[ic]&&a<5*i)k=[1,2,5];a=ce(a/i,k);var m;b=new Date(b);b.setMilliseconds(0);if(i>=Qa[Oc])b.setSeconds(i>=Qa[Cc]?0:a*Jb(b.getSeconds()/a));if(i>=Qa[Cc])b[ee](i>=Qa[Dc]?0:a*Jb(b[Hd]()/a));if(i>=Qa[Dc])b[fe](i>=Qa[Zb]?0:a*Jb(b[Id]()/a));if(i>=Qa[Zb])b[Jd](i>=Qa[rc]?1:a*Jb(b[cd]()/a));if(i>=
Qa[rc]){b[ge](i>=Qa[ic]?0:a*Jb(b[od]()/a));m=b[pd]()}if(i>=Qa[ic]){m-=m%a;b[he](m)}i===Qa[qc]&&b[Jd](b[cd]()-b[Kd]()+z(d,1));e=1;m=b[pd]();d=b.getTime();h=b[od]();for(b=b[cd]();d<c;){f.push(d);if(i===Qa[ic])d=qd(m+e*a,0);else if(i===Qa[rc])d=qd(m,h+e*a);else if(!g&&(i===Qa[Zb]||i===Qa[qc]))d=qd(m,h,b+e*a*(i===Qa[Zb]?1:7));else d+=i*a;e++}f.push(d);f.info={unitName:j[0],unitRange:i,count:a,totalRange:i*a};return f}function ie(){this.symbol=this.color=0}function Ce(a,b,c,d,e,f,g,h){var j=g.x;g=g.y;
var i=j-a+c-h,k=g-b+d+15,m;if(i<7)i=c+j+h;if(i+a>c+e){i-=i+a-(c+e);k-=b;m=true}if(k<d+5){k=d+5;if(m&&g>=k&&g<=k+b)k=g+b-h}else if(k+b>d+f)k=d+f-b-h;return{x:i,y:k}}function De(a,b){var c=a.length,d;for(d=0;d<c;d++)a[d].ss_i=d;a.sort(function(e,f){var g=b(e,f);return g===0?e.ss_i-f.ss_i:g});for(d=0;d<c;d++)delete a[d].ss_i}function Pc(a,b){rd=z(a,b.animation)}function je(){var a=Wa.global.useUTC;qd=a?Date.UTC:function(b,c,d,e,f,g){return(new Date(b,c,z(d,1),z(e,0),z(f,0),z(g,0))).getTime()};Hd=a?"getUTCMinutes":
"getMinutes";Id=a?"getUTCHours":"getHours";Kd=a?"getUTCDay":"getDay";cd=a?"getUTCDate":"getDate";od=a?"getUTCMonth":"getMonth";pd=a?"getUTCFullYear":"getFullYear";ee=a?"setUTCMinutes":"setMinutes";fe=a?"setUTCHours":"setHours";Jd=a?"setUTCDate":"setDate";ge=a?"setUTCMonth":"setMonth";he=a?"setUTCFullYear":"setFullYear"}function sd(a){td||(td=pb(sc));a&&td.appendChild(a);td.innerHTML=""}function ud(){}function vd(a,b){function c(l){function u(n,v){this.pos=n;this.minor=v;this.isNew=true;v||this.addLabel()}
function G(n){if(n){this.options=n;this.id=n.id}return this}function K(n,v,I){this.isNegative=v;this.options=n;this.x=I;this.alignOptions={align:n.align||(Ba?v?"left":"right":"center"),verticalAlign:n.verticalAlign||(Ba?"middle":v?"bottom":"top"),y:z(n.y,Ba?4:v?14:-6),x:z(n.x,Ba?v?-6:6:0)};this.textAlign=n.textAlign||(Ba?v?"right":"left":"center")}function na(){var n=[],v=[],I;wb=xb=null;y(J.series,function(w){if(w.visible||!r.ignoreHiddenSeries){var L=w.options,U,Z,ha,ab,ia,da,Ha,Da,$b=L.threshold,
tc,bb=[],Pb=0;if(oa){L=w.xData;wb=Fa(z(wb,L[0]),Fa.apply(pa,L));xb=ba(z(xb,L[0]),ba.apply(pa,L))}else{var Ld,wd,Qc,Ee=w.cropped,ke=w.xAxis.getExtremes(),le,dd,Fe=!!w.modifyValue;U=L.stacking;xd=U==="percent";if(U){ab=w.type+z(L.stack,"");ia="-"+ab;w.stackKey=ab;Z=n[ab]||[];n[ab]=Z;ha=v[ia]||[];v[ia]=ha}if(xd){wb=0;xb=99}w.processData();le=w.pointRange===null;L=w.processedXData;da=w.processedYData;tc=da.length;for(I=0;I<tc;I++){Ha=L[I];Da=da[I];if(Da!==null&&Da!==ma&&(Ee||(L[I+1]||Ha)>=ke.min&&(L[I+
1]||Ha)<=ke.max)){if(U){wd=(Ld=Da<0)?ha:Z;Qc=Ld?ia:ab;Da=wd[Ha]=Q(wd[Ha])?wd[Ha]+Da:Da;Ia[Qc]||(Ia[Qc]={});Ia[Qc][Ha]||(Ia[Qc][Ha]=new K(l.stackLabels,Ld,Ha));Ia[Qc][Ha].setTotal(Da)}else if(Fe)Da=w.modifyValue(Da);if(Ha=Da.length)for(;Ha--;){if(Da[Ha]!==null)bb[Pb++]=Da[Ha]}else bb[Pb++]=Da;if(I){Da=kb(L[I]-L[I-1]);dd=dd===ma?Da:Fa(Da,dd)}}}if(le)w.pointRange=dd||1;w.closestPointRange=dd;if(!xd&&bb.length){wb=Fa(z(wb,bb[0]),Fa.apply(pa,bb));xb=ba(z(xb,bb[0]),ba.apply(pa,bb))}if(w.useThreshold&&$b!==
null)if(wb>=$b){wb=$b;me=true}else if(xb<$b){xb=$b;ne=true}}}})}function qa(n){var v;v=n;Rc=z(Rc,pa.pow(10,Jb(pa.log(lb)/pa.LN10)));if(Rc<1){v=O(1/Rc)*10;v=O(n*v)/v}return v}function $(n){var v,I,w=l.tickInterval,L=l.tickPixelInterval;if(n)ac=l.maxZoom||(oa&&!Q(l.min)&&!Q(l.max)?Fa(J.closestPointRange*5,xb-wb):null);if(jc){v=o[oa?"xAxis":"yAxis"][l.linkedTo];I=v.getExtremes();la=z(I.min,I.dataMin);ra=z(I.max,I.dataMax)}else{la=z(Ec,l.min,wb);ra=z(Fc,l.max,xb)}if(R){la=pa.log(la)/pa.LN10;ra=pa.log(ra)/
pa.LN10}if(Md){Ec=la=ra-Md;Fc=ra;if(n)Md=null}if(ra-la<ac){n=(ac-ra+la)/2;la=ba(la-n,z(l.min,la-n),wb);ra=Fa(la+ac,z(l.max,la+ac),xb)}if(!Fb&&!xd&&!jc&&Q(la)&&Q(ra)){n=ra-la||1;if(!Q(l.min)&&!Q(Ec)&&oe&&(wb<0||!me))la-=n*oe;if(!Q(l.max)&&!Q(Fc)&&pe&&(xb>0||!ne))ra+=n*pe}lb=la===ra||la===undefined||ra===undefined?1:jc&&!w&&L===v.options.tickPixelInterval?v.tickInterval:z(w,Fb?1:(ra-la)*L/(fa||1));if(!M){Rc=pa.pow(10,Jb(pa.log(lb)/pa.LN10));Q(l.tickInterval)||(lb=ce(lb,null,Rc,l))}J.tickInterval=lb;
yd=l.minorTickInterval==="auto"&&lb?lb/5:l.minorTickInterval;if(M){za=de(lb,la,ra,l.startOfWeek);zd=l.dateTimeLabelFormats[za.info.unitName]}else{w=qa(Jb(la/lb)*lb);v=qa(Ad(ra/lb)*lb);za=[];for(w=qa(w);w<=v;){za.push(w);w=qa(w+lb)}}if(!jc){v=za[0];w=za[za.length-1];if(l.startOnTick)la=v;else la>v&&za.shift();if(l.endOnTick)ra=w;else ra<w&&za.pop();kc||(kc={x:0,y:0});if(!M&&za.length>kc[ja]&&l.alignTicks!==false)kc[ja]=za.length}}function sa(n){n=(new G(n)).render();uc.push(n);return n}function ib(){var n=
l.title,v=l.stackLabels,I=l.alternateGridColor,w=l.lineWidth,L,U,Z=(L=o.hasRendered)&&Q(ed)&&!isNaN(ed);if(J.series.length&&Q(la)&&Q(ra)||jc){if(yd&&!Fb)for(U=la+(za[0]-la)%yd;U<=ra;U+=yd){Gc[U]||(Gc[U]=new u(U,true));Z&&Gc[U].isNew&&Gc[U].render(null,true);Gc[U].isActive=true;Gc[U].render()}y(za,function(ia,da){if(!jc||ia>=la&&ia<=ra){Z&&Cb[ia].isNew&&Cb[ia].render(da,true);Cb[ia].isActive=true;Cb[ia].render(da)}});I&&y(za,function(ia,da){if(da%2===0&&ia<ra){Sc[ia]||(Sc[ia]=new G);Sc[ia].options=
{from:ia,to:za[da+1]!==ma?za[da+1]:ra,color:I};Sc[ia].render();Sc[ia].isActive=true}});L||y((l.plotLines||[]).concat(l.plotBands||[]),function(ia){uc.push((new G(ia)).render())})}y([Cb,Gc,Sc],function(ia){for(var da in ia)if(ia[da].isActive)ia[da].isActive=false;else{ia[da].destroy();delete ia[da]}});if(w){L=mb+(Oa?bc:0)+S;U=Xa-P-(Oa?Qb:0)+S;L=ta.crispLine([Ra,W?mb:L,W?U:Kb,Ga,W?Za-ya:L,W?U:Xa-P],w);if(jb)jb.animate({d:L});else jb=ta.path(L).attr({stroke:l.lineColor,"stroke-width":w,zIndex:7}).add()}if(H){L=
W?mb:Kb;w=ca(n.style.fontSize||12);L={low:L+(W?0:fa),middle:L+fa/2,high:L+(W?fa:0)}[n.align];w=(W?Kb+Qb:mb)+(W?1:-1)*(Oa?-1:1)*Nd+(Ya===2?w:0);H[H.isNew?"attr":"animate"]({x:W?L:w+(Oa?bc:0)+S+(n.x||0),y:W?w-(Oa?Qb:0)+S:L+(n.y||0)});H.isNew=false}if(v&&v.enabled){var ha,ab;v=J.stackTotalGroup;if(!v)J.stackTotalGroup=v=ta.g("stack-labels").attr({visibility:Rb,zIndex:6}).translate(ga,ka).add();for(ha in Ia){n=Ia[ha];for(ab in n)n[ab].render(v)}}J.isDirty=false}function cb(n){for(var v=uc.length;v--;)uc[v].id===
n&&uc[v].destroy()}var oa=l.isX,Oa=l.opposite,W=Ba?!oa:oa,Ya=W?Oa?0:2:Oa?1:3,Ia={};l=X(oa?Bd:Od,[Ge,He,qe,Ie][Ya],l);var J=this,H,s=l.type,M=s==="datetime",R=s==="logarithmic",S=l.offset||0,ja=oa?"x":"y",fa=0,db,nb,vc,Sb,mb,Kb,bc,Qb,P,ya,xa,Ca,$a,fb,jb,wb,xb,ac,Md=l.range,Ec,Fc,ra=null,la=null,ed,re,oe=l.minPadding,pe=l.maxPadding,se=0,jc=Q(l.linkedTo),me,ne,xd;s=l.events;var Pd,uc=[],lb,yd,Rc,za,Cb={},Gc={},Sc={},Tc,Uc,Nd,zd,Fb=l.categories,Je=l.labels.formatter||function(){var n=this.value;return zd?
wc(zd,n):lb%1E6===0?n/1E6+"M":lb%1E3===0?n/1E3+"k":!Fb&&n>=1E3?nd(n,0):n},Cd=W&&l.labels.staggerLines,Hc=l.reversed,Ic=Fb&&l.tickmarkPlacement==="between"?0.5:0;u.prototype={attachLabel:function(){var n=this.label;if(n&&!this.added){n.deferUpdateTransform=true;n.add($a)}},updateTransformLabel:function(){var n=this.label;if(n){n.deferUpdateTransform=false;n.updateTransform()}},computeBBox:function(){var n=this.label,v;if(n){v=n.getBBox();n.elemWidth=v.width;n.elemHeight=v.height}},addLabel:function(){var n=
this.pos,v=l.labels,I=!(n===la&&!z(l.showFirstLabel,1)||n===ra&&!z(l.showLastLabel,1)),w=Fb&&W&&Fb.length&&!v.step&&!v.staggerLines&&!v.rotation&&Ka/Fb.length||!W&&Ka/2,L=this.label;n=Je.call({isFirst:n===za[0],isLast:n===za[za.length-1],dateTimeLabelFormat:zd,value:Fb&&Fb[n]?Fb[n]:n});w=w&&{width:ba(1,O(w-2*(v.padding||10)))+qb};w=aa(w,v.style);if(Q(L))L&&L.attr({text:n}).css(w);else this.label=Q(n)&&I&&v.enabled?ta.text(n,0,0).attr({align:v.align,rotation:v.rotation}).css(w):null},getLabelSize:function(){var n=
this.label;return n?(this.labelBBox=n.getBBox())[W?"height":"width"]:0},render:function(n,v){var I=!this.minor,w=this.label,L=this.pos,U=l.labels,Z=this.gridLine,ha=I?l.gridLineWidth:l.minorGridLineWidth,ab=I?l.gridLineColor:l.minorGridLineColor,ia=I?l.gridLineDashStyle:l.minorGridLineDashStyle,da=this.mark,Ha=I?l.tickLength:l.minorTickLength,Da=I?l.tickWidth:l.minorTickWidth||0,$b=I?l.tickColor:l.minorTickColor,tc=I?l.tickPosition:l.minorTickPosition;I=U.step;var bb=v&&Jc||Xa,Pb;Pb=W?xa(L+Ic,null,
null,v)+vc:mb+S+(Oa?(v&&cc||Za)-ya-mb:0);bb=W?bb-P+S-(Oa?Qb:0):bb-xa(L+Ic,null,null,v)-vc;if(ha){L=Ca(L+Ic,ha,v);if(Z===ma){Z={stroke:ab,"stroke-width":ha};if(ia)Z.dashstyle=ia;this.gridLine=Z=ha?ta.path(L).attr(Z).add(fb):null}Z&&L&&Z.animate({d:L})}if(Da){if(tc==="inside")Ha=-Ha;if(Oa)Ha=-Ha;ha=ta.crispLine([Ra,Pb,bb,Ga,Pb+(W?0:-Ha),bb+(W?Ha:0)],Da);if(da)da.animate({d:ha});else this.mark=ta.path(ha).attr({stroke:$b,"stroke-width":Da}).add($a)}if(w&&!isNaN(Pb)){Pb=Pb+U.x-(Ic&&W?Ic*nb*(Hc?-1:1):
0);bb=bb+U.y-(Ic&&!W?Ic*nb*(Hc?1:-1):0);Q(U.y)||(bb+=ca(w.styles.lineHeight)*0.9-w.getBBox().height/2);if(Cd)bb+=n/(I||1)%Cd*16;if(I)w[n%I?"hide":"show"]();w[this.isNew?"attr":"animate"]({x:Pb,y:bb})}this.isNew=false},destroy:function(){for(var n in this)this[n]&&this[n].destroy&&this[n].destroy()}};G.prototype={render:function(){var n=this,v=n.options,I=v.label,w=n.label,L=v.width,U=v.to,Z,ha=v.from,ab=v.dashStyle,ia=n.svgElem,da=[],Ha,Da,$b=v.color;Da=v.zIndex;var tc=v.events;if(L){da=Ca(v.value,
L);v={stroke:$b,"stroke-width":L};if(ab)v.dashstyle=ab}else if(Q(ha)&&Q(U)){ha=ba(ha,la);U=Fa(U,ra);Z=Ca(U);if((da=Ca(ha))&&Z)da.push(Z[4],Z[5],Z[1],Z[2]);else da=null;v={fill:$b}}else return;if(Q(Da))v.zIndex=Da;if(ia)if(da)ia.animate({d:da},null,ia.onGetPath);else{ia.hide();ia.onGetPath=function(){ia.show()}}else if(da&&da.length){n.svgElem=ia=ta.path(da).attr(v).add();if(tc){ab=function(bb){ia.on(bb,function(Pb){tc[bb].apply(n,[Pb])})};for(Ha in tc)ab(Ha)}}if(I&&Q(I.text)&&da&&da.length&&bc>0&&
Qb>0){I=X({align:W&&Z&&"center",x:W?!Z&&4:10,verticalAlign:!W&&Z&&"middle",y:W?Z?16:10:Z?6:-4,rotation:W&&!Z&&90},I);if(!w)n.label=w=ta.text(I.text,0,0).attr({align:I.textAlign||I.align,rotation:I.rotation,zIndex:Da}).css(I.style).add();Z=[da[1],da[4],z(da[6],da[1])];da=[da[2],da[5],z(da[7],da[2])];Ha=Fa.apply(pa,Z);Da=Fa.apply(pa,da);w.align(I,false,{x:Ha,y:Da,width:ba.apply(pa,Z)-Ha,height:ba.apply(pa,da)-Da});w.show()}else w&&w.hide();return n},destroy:function(){for(var n in this){this[n]&&this[n].destroy&&
this[n].destroy();delete this[n]}Nc(uc,this)}};K.prototype={setTotal:function(n){this.cum=this.total=n},render:function(n){var v=this.options.formatter.call(this);if(this.label)this.label.attr({text:v,visibility:Lb});else this.label=o.renderer.text(v,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:Lb}).add(n)},setOffset:function(n,v){var I=this.isNegative,w=J.translate(this.total),L=J.translate(0);L=kb(w-L);var U=o.xAxis[0].translate(this.x)+n,Z=o.plotHeight;
I={x:Ba?I?w:w-L:U,y:Ba?Z-U-v:I?Z-w-L:Z-w,width:Ba?L:v,height:Ba?v:L};this.label&&this.label.align(this.alignOptions,null,I).attr({visibility:Rb})}};xa=function(n,v,I,w,L){var U=1,Z=0,ha=w?Sb:nb;w=w?ed:la;ha||(ha=nb);if(I){U*=-1;Z=fa}if(Hc){U*=-1;Z-=U*fa}if(v){if(Hc)n=fa-n;n=n/ha+w;if(R&&L)n=pa.pow(10,n)}else{if(R&&L)n=pa.log(n)/pa.LN10;n=U*(n-w)*ha+Z+U*se}return n};Ca=function(n,v,I){var w,L,U;n=xa(n,null,null,I);var Z=I&&Jc||Xa,ha=I&&cc||Za,ab;I=L=O(n+vc);w=U=O(Z-n-vc);if(isNaN(n))ab=true;else if(W){w=
Kb;U=Z-P;if(I<mb||I>mb+bc)ab=true}else{I=mb;L=ha-ya;if(w<Kb||w>Kb+Qb)ab=true}return ab?null:ta.crispLine([Ra,I,w,Ga,L,U],v||0)};rb.push(J);o[oa?"xAxis":"yAxis"].push(J);if(Ba&&oa&&Hc===ma)Hc=true;aa(J,{addPlotBand:sa,addPlotLine:sa,adjustTickAmount:function(){if(kc&&!M&&!Fb&&!jc&&l.alignTicks!==false){var n=Tc,v=za.length;Tc=kc[ja];if(v<Tc){for(;za.length<Tc;)za.push(qa(za[za.length-1]+lb));nb*=(v-1)/(Tc-1);ra=za[za.length-1]}if(Q(n)&&Tc!==n)J.isDirty=true}},categories:Fb,getExtremes:function(){return{min:la,
max:ra,dataMin:wb,dataMax:xb,userMin:Ec,userMax:Fc}},getPlotLinePath:Ca,getThreshold:function(n){if(la>n||n===null)n=la;else if(ra<n)n=ra;return xa(n,0,1)},isXAxis:oa,options:l,plotLinesAndBands:uc,getOffset:function(){var n=J.series.length&&Q(la)&&Q(ra),v=0,I=0,w=l.title,L=l.labels,U=[-1,1,1,-1][Ya],Z;if(!$a){$a=ta.g("axis").attr({zIndex:7}).add();fb=ta.g("grid").attr({zIndex:1}).add()}Uc=0;if(n||jc){y(za,function(ha){if(Cb[ha])Cb[ha].addLabel();else Cb[ha]=new u(ha)});y(za,function(ha){Cb[ha].attachLabel()});
y(za,function(ha){Cb[ha].computeBBox()});y(za,function(ha){Cb[ha].updateTransformLabel()});y(za,function(ha){if(Ya===0||Ya===2||{1:"left",3:"right"}[Ya]===L.align)Uc=ba(Cb[ha].getLabelSize(),Uc)});if(Cd)Uc+=(Cd-1)*16}else for(Z in Cb){Cb[Z].destroy();delete Cb[Z]}if(w&&w.text){if(!H){H=J.axisTitle=ta.text(w.text,0,0).attr({zIndex:7,rotation:w.rotation||0,align:w.textAlign||{low:"left",middle:"center",high:"right"}[w.align]}).css(w.style).add();H.isNew=true}v=H.getBBox()[W?"height":"width"];I=z(w.margin,
W?5:10)}S=U*z(l.offset,sb[Ya]);Nd=Uc+(Ya!==2&&Uc&&U*l.labels[W?"y":"x"])+I;sb[Ya]=ba(sb[Ya],Nd+v+U*S)},render:ib,setAxisSize:function(){var n=l.offsetLeft||0,v=l.offsetRight||0,I=ra-la,w=0,L;mb=z(l.left,ga+n);Kb=z(l.top,ka);bc=z(l.width,Ka-n+v);Qb=z(l.height,Ea);P=Xa-Qb-Kb;ya=Za-bc-mb;fa=W?bc:Qb;if(oa){y(J.series,function(U){w=ba(w,U.pointRange);U.noSharedTooltip||(L=Q(L)?Fa(L,U.closestPointRange):U.closestPointRange)});if((Q(Ec)||Q(Fc))&&w>lb/2)w=0;J.pointRange=w;J.closestPointRange=L}nb=fa/(I+w||
1);vc=W?mb:P;se=nb*(w/2);J.left=mb;J.top=Kb;J.len=fa},setCategories:function(n,v){J.categories=Fb=n;y(J.series,function(I){I.translate();I.setTooltipPoints(true)});J.isDirty=true;z(v,true)&&o.redraw()},setExtremes:function(n,v,I,w){I=z(I,true);La(J,"setExtremes",{min:n,max:v},function(){Ec=n;Fc=v;I&&o.redraw(w)});La(J,"afterSetExtremes",{min:la,max:ra})},setScale:function(){var n,v,I;ed=la;re=ra;db=fa;fa=W?bc:Qb;y(J.series,function(w){if(w.isDirtyData||w.isDirty||w.xAxis.isDirty)I=true});if(fa!==
db||I||jc||Ec!==void 0||Fc!==void 0){na();$();Sb=nb;nb=fa/(ra-la+(J.pointRange||0)||1);if(!oa)for(n in Ia)for(v in Ia[n])Ia[n][v].cum=Ia[n][v].total;if(!J.isDirty)J.isDirty=la!==ed||ra!==re}},setTickPositions:$,translate:xa,redraw:function(){dc.resetTracker&&dc.resetTracker();ib();y(uc,function(n){n.render()});y(J.series,function(n){n.isDirty=true})},removePlotBand:cb,removePlotLine:cb,reversed:Hc,series:[],stacks:Ia});for(Pd in s)ua(J,Pd,s[Pd])}function d(){var l={};return{add:function(u,G,K,na){if(!l[u]){G=
ta.text(G,0,0).css(a.toolbar.itemStyle).align({align:"right",x:-ec-20,y:ka+30}).on("click",na).attr({align:"right",zIndex:20}).add();l[u]=G}},remove:function(u){sd(l[u].element);l[u]=null}}}function e(l){function u(){var J=this.points||pc(this),H=J[0].series,s;s=[H.tooltipHeaderFormatter(J[0].key)];y(J,function(M){H=M.series;s.push(H.tooltipFormatter&&H.tooltipFormatter(M)||M.point.tooltipFormatter(H.tooltipOptions.pointFormat))});return s.join("")}function G(J,H){W=Oa?J:(2*W+J)/3;Ya=Oa?H:(Ya+H)/
2;Ia.attr({x:W,y:Ya});Qd=kb(J-W)>1||kb(H-Ya)>1?function(){G(J,H)}:null}function K(){if(!Oa){var J=o.hoverPoints;Ia.hide();y(sa,function(H){H&&H.hide()});J&&y(J,function(H){H.setState()});o.hoverPoints=null;Oa=true}}var na,qa=l.borderWidth,$=l.crosshairs,sa=[],ib=l.style,cb=l.shared,oa=ca(ib.padding),Oa=true,W=0,Ya=0;ib.padding=0;var Ia=ta.label("",0,0).attr({padding:oa,fill:l.backgroundColor,"stroke-width":qa,r:l.borderRadius,zIndex:8}).css(ib).hide().add().shadow(l.shadow);return{shared:cb,refresh:function(J){var H,
s,M,R,S={},ja=[];M=J.tooltipPos;H=l.formatter||u;S=o.hoverPoints;if(cb&&!(J.series&&J.series.noSharedTooltip)){R=0;S&&y(S,function(fa){fa.setState()});o.hoverPoints=J;y(J,function(fa){fa.setState(Vb);R+=fa.plotY;ja.push(fa.getLabelConfig())});s=J[0].plotX;R=O(R)/J.length;S={x:J[0].category};S.points=ja;J=J[0]}else S=J.getLabelConfig();S=H.call(S);na=J.series;s=z(s,J.plotX);R=z(R,J.plotY);H=O(M?M[0]:Ba?Ka-R:s);s=O(M?M[1]:Ba?Ea-s:R);M=cb||!J.series.isCartesian||Sa(H,s);if(S===false||!M)K();else{if(Oa){Ia.show();
Oa=false}Ia.attr({text:S});Ia.attr({stroke:l.borderColor||J.color||na.color||"#606060"});s=Ce(Ia.width,Ia.height,ga,ka,Ka,Ea,{x:H,y:s},z(l.distance,12));G(O(s.x),O(s.y))}if($){$=pc($);for(s=$.length;s--;){M=J.series[s?"yAxis":"xAxis"];if($[s]&&M){M=M.getPlotLinePath(J[s?"y":"x"],1);if(sa[s])sa[s].attr({d:M,visibility:Rb});else{H={"stroke-width":$[s].width||1,stroke:$[s].color||"#C0C0C0",zIndex:2};if($[s].dashStyle)H.dashstyle=$[s].dashStyle;sa[s]=ta.path(M).attr(H).add()}}}}},hide:K}}function f(l,
u){function G(H){var s,M=te&&Aa.width/Aa.body.scrollWidth-1,R,S,ja;H=H||tb.event;if(!H.target)H.target=H.srcElement;if(H.originalEvent)H=H.originalEvent;if(H.event)H=H.event;s=H.touches?H.touches.item(0):H;if(H.type!=="mousemove"||tb.opera||M){fc=be(wa);R=fc.left;S=fc.top}if(md){ja=H.x;s=H.y}else if(s.layerX===ma){ja=s.pageX-R;s=s.pageY-S}else{ja=H.layerX;s=H.layerY}if(M){ja+=O((M+1)*R-R);s+=O((M+1)*S-S)}return aa(H,{chartX:ja,chartY:s})}function K(H){var s={xAxis:[],yAxis:[]};y(rb,function(M){var R=
M.translate,S=M.isXAxis;s[S?"xAxis":"yAxis"].push({axis:M,value:R((Ba?!S:S)?H.chartX-ga:Ea-H.chartY+ka,true)})});return s}function na(H){var s,M=l.hoverPoint,R=l.hoverSeries,S,ja,fa=Za,db=Ba?H.chartY:H.chartX-ga;if(yb&&u.shared&&!(R&&R.noSharedTooltip)){s=[];S=Ta.length;for(ja=0;ja<S;ja++)if(Ta[ja].visible&&Ta[ja].options.enableMouseTracking!==false&&!Ta[ja].noSharedTooltip&&Ta[ja].tooltipPoints.length){H=Ta[ja].tooltipPoints[db];H._dist=kb(db-H.plotX);fa=Fa(fa,H._dist);s.push(H)}for(S=s.length;S--;)s[S]._dist>
fa&&s.splice(S,1);if(s.length&&s[0].plotX!==Rd){yb.refresh(s);Rd=s[0].plotX}}if(R&&R.tracker)(H=R.tooltipPoints[db])&&H!==M&&H.onMouseOver()}function qa(){var H=l.hoverSeries,s=l.hoverPoint;s&&s.onMouseOut();H&&H.onMouseOut();yb&&yb.hide();Rd=null}function $(){if(oa){var H={xAxis:[],yAxis:[]},s=oa.getBBox(),M=s.x-ga,R=s.y-ka;if(cb){y(rb,function(S){if(S.options.zoomEnabled!==false){var ja=S.translate,fa=S.isXAxis,db=Ba?!fa:fa,nb=ja(db?M:Ea-R-s.height,true,0,0,1);ja=ja(db?M+s.width:Ea-R,true,0,0,1);
H[fa?"xAxis":"yAxis"].push({axis:S,min:Fa(nb,ja),max:ba(nb,ja)})}});La(l,"selection",H,Sd)}oa=oa.destroy()}Na(wa,{cursor:"auto"});l.mouseIsDown=zb=cb=false;Tb(Aa,Db?"touchend":"mouseup",$)}var sa,ib,cb,oa,Oa=r.zoomType,W=/x/.test(Oa),Ya=/y/.test(Oa),Ia=W&&!Ba||Ya&&Ba,J=Ya&&!Ba||W&&Ba;lc=function(){if(mc){mc.translate(ga,ka);Ba&&mc.attr({width:l.plotWidth,height:l.plotHeight}).invert()}else l.trackerGroup=mc=ta.g("tracker").attr({zIndex:9}).add()};lc();if(u.enabled)l.tooltip=yb=e(u);(function(){wa.onmousedown=
function(s){s=G(s);!Db&&s.preventDefault&&s.preventDefault();l.mouseIsDown=zb=true;sa=s.chartX;ib=s.chartY;ua(Aa,Db?"touchend":"mouseup",$)};var H=function(s){if(!(s&&s.touches&&s.touches.length>1)){s=G(s);if(!Db)s.returnValue=false;var M=s.chartX,R=s.chartY,S=!Sa(M-ga,R-ka);fc||(fc=be(wa));if(Db&&s.type==="touchstart")if(Ma(s.target,"isTracker"))l.runTrackerClick||s.preventDefault();else!gb&&!S&&s.preventDefault();if(S){if(M<ga)M=ga;else if(M>ga+Ka)M=ga+Ka;if(R<ka)R=ka;else if(R>ka+Ea)R=ka+Ea}if(zb&&
s.type!=="touchstart"){cb=Math.sqrt(Math.pow(sa-M,2)+Math.pow(ib-R,2));if(cb>10){var ja=Sa(sa-ga,ib-ka);s=l.hoverPoints;if(Vc&&(W||Ya)&&ja)oa||(oa=ta.rect(ga,ka,Ia?1:Ka,J?1:Ea,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add());if(oa&&Ia){var fa=M-sa;oa.attr({width:kb(fa),x:(fa>0?0:fa)+sa})}if(oa&&J){R=R-ib;oa.attr({height:kb(R),y:(R>0?0:R)+ib})}if(ja&&!oa&&r.panning){R=l.xAxis[0];ja=R.getExtremes();fa=R.translate(sa-M,true);var db=R.translate(sa+Ka-M,true);s&&y(s,function(nb){nb.setState()});
fa>Fa(ja.dataMin,ja.min)&&db<ba(ja.dataMax,ja.max)&&R.setExtremes(fa,db,true,false);sa=M;Na(wa,{cursor:"move"})}}}else S||na(s);return S||!Vc}};wa.onmousemove=H;ua(wa,"mouseleave",qa);ua(Aa,"mousemove",function(s){if(s.event)s=s.event;fc&&!Sa(s.pageX-fc.left-ga,s.pageY-fc.top-ka)&&qa()});wa.ontouchstart=function(s){if(W||Ya)wa.onmousedown(s);H(s)};wa.ontouchmove=H;wa.ontouchend=function(){cb&&qa()};wa.onclick=function(s){var M=l.hoverPoint;s=G(s);s.cancelBubble=true;if(!cb)if(M&&Ma(s.target,"isTracker")){var R=
M.plotX,S=M.plotY;aa(M,{pageX:fc.left+ga+(Ba?Ka-S:R),pageY:fc.top+ka+(Ba?Ea-R:S)});La(M.series,"click",aa(s,{point:M}));M.firePointEvent("click",s)}else{aa(s,K(s));Sa(s.chartX-ga,s.chartY-ka)&&La(l,"click",s)}cb=false}})();ue=setInterval(function(){Qd&&Qd()},32);aa(this,{zoomX:W,zoomY:Ya,resetTracker:qa,normalizeMouseEvent:G})}function g(l){var u=l.type||r.type||r.defaultSeriesType,G=hb[u],K=o.hasRendered;if(K)if(Ba&&u==="column")G=hb.bar;else if(!Ba&&u==="bar")G=hb.column;u=new G;u.init(o,l);if(!K&&
u.inverted)Ba=true;if(u.isCartesian)Vc=u.isCartesian;Ta.push(u);return u}function h(){r.alignTicks!==false&&y(rb,function(l){l.adjustTickAmount()});kc=null}function j(l){var u=o.isDirtyLegend,G,K=o.isDirtyBox,na=Ta.length,qa=na,$=o.clipRect;for(Pc(l,o);qa--;){l=Ta[qa];if(l.isDirty&&l.options.stacking){G=true;break}}if(G)for(qa=na;qa--;){l=Ta[qa];if(l.options.stacking)l.isDirty=true}y(Ta,function(sa){if(sa.isDirty)if(sa.options.legendType==="point")u=true});if(u&&Wc.renderLegend){Wc.renderLegend();
o.isDirtyLegend=false}if(Vc){if(!Dd){kc=null;y(rb,function(sa){sa.setScale()})}h();fd();y(rb,function(sa){sa.isDirty&&sa.redraw()})}if(K){Td();lc();if($){gd($);$.animate({width:o.plotSizeX,height:o.plotSizeY})}}y(Ta,function(sa){if(sa.isDirty&&sa.visible&&(!sa.isCartesian||sa.xAxis))sa.redraw()});dc&&dc.resetTracker&&dc.resetTracker();La(o,"redraw")}function i(){var l=a.xAxis||{},u=a.yAxis||{};l=pc(l);y(l,function(G,K){G.index=K;G.isX=true});u=pc(u);y(u,function(G,K){G.index=K});l=l.concat(u);y(l,
function(G){new c(G)});h()}function k(l,u){Ub=X(a.title,l);ea=X(a.subtitle,u);y([["title",l,Ub],["subtitle",u,ea]],function(G){var K=G[0],na=o[K],qa=G[1];G=G[2];if(na&&qa){na.destroy();na=null}if(G&&G.text&&!na)o[K]=ta.text(G.text,0,0).attr({align:G.align,"class":gc+K,zIndex:1}).css(G.style).add().align(G,false,Ja)})}function m(){Ua=r.renderTo;Wb=gc+Ud++;if(Bc(Ua))Ua=Aa.getElementById(Ua);Ua.innerHTML="";if(!Ua.offsetWidth){ub=Ua.cloneNode(0);Na(ub,{position:Xc,top:"-9999px",display:""});Aa.body.appendChild(ub)}Kc=
(ub||Ua).offsetWidth;xc=(ub||Ua).offsetHeight;o.chartWidth=Za=r.width||Kc||600;o.chartHeight=Xa=r.height||(xc>19?xc:400);o.container=wa=pb(sc,{className:gc+"container"+(r.className?" "+r.className:""),id:Wb},aa({position:ve,overflow:Lb,width:Za+qb,height:Xa+qb,textAlign:"left"},r.style),ub||Ua);o.renderer=ta=r.forExport?new Ed(wa,Za,Xa,true):new hd(wa,Za,Xa);var l,u;if(we&&wa.getBoundingClientRect){l=function(){Na(wa,{left:0,top:0});u=wa.getBoundingClientRect();Na(wa,{left:-(u.left-ca(u.left))+qb,
top:-(u.top-ca(u.top))+qb})};l();ua(tb,"resize",l);ua(o,"destroy",function(){Tb(tb,"resize",l)})}}function q(){function l(){var G=r.width||Ua.offsetWidth,K=r.height||Ua.offsetHeight;if(G&&K){if(G!==Kc||K!==xc){clearTimeout(u);u=setTimeout(function(){Vd(G,K,false)},100)}Kc=G;xc=K}}var u;ua(tb,"resize",l);ua(o,"destroy",function(){Tb(tb,"resize",l)})}function D(){for(var l=z(Ba,r.inverted,r.type==="bar",r.defaultSeriesType==="bar"),u=a.series,G=u&&u.length;!l&&G--;)if(u[G].type==="bar")l=true;o.inverted=
Ba=l}function C(){var l=a.labels,u=a.credits,G;k();Wc=o.legend=new Ke(o);y(rb,function(K){K.setScale()});fd();y(rb,function(K){K.setTickPositions(true)});h();fd();Td();Vc&&y(rb,function(K){K.render()});if(!o.seriesGroup)o.seriesGroup=ta.g("series-group").attr({zIndex:3}).add();y(Ta,function(K){K.translate();K.setTooltipPoints();K.render()});l.items&&y(l.items,function(){var K=aa(l.style,this.style),na=ca(K.left)+ga,qa=ca(K.top)+ka+12;delete K.left;delete K.top;ta.text(this.html,na,qa).attr({zIndex:2}).css(K).add()});
if(!o.toolbar)o.toolbar=d(o);if(u.enabled&&!o.credits){G=u.href;ta.text(u.text,0,0).on("click",function(){if(G)location.href=G}).attr({align:u.position.align,zIndex:8}).css(u.style).add().align(u.position)}lc();o.hasRendered=true;if(ub){Ua.appendChild(wa);sd(ub)}}function E(){var l=Ta.length,u=wa&&wa.parentNode;La(o,"destroy");Tb(tb,"unload",E);Tb(o);for(y(rb,function(G){Tb(G)});l--;)Ta[l].destroy();if(wa){wa.innerHTML="";Tb(wa);u&&u.removeChild(wa);wa=null}if(ta)ta.alignedObjects=null;clearInterval(ue);
for(l in o)delete o[l]}function F(){if(!id&&tb==tb.top&&Aa.readyState!=="complete")Aa.attachEvent("onreadystatechange",function(){Aa.detachEvent("onreadystatechange",F);Aa.readyState==="complete"&&F()});else{m();La(o,"init");if(Highcharts.RangeSelector&&a.rangeSelector.enabled)o.rangeSelector=new Highcharts.RangeSelector(o);Wd();Xd();D();i();y(a.series||[],function(l){g(l)});if(Highcharts.Scroller&&(a.navigator.enabled||a.scrollbar.enabled))o.scroller=new Highcharts.Scroller(o);o.render=C;o.tracker=
dc=new f(o,a.tooltip);C();b&&b.apply(o,[o]);y(o.callbacks,function(l){l.apply(o,[o])});La(o,"load")}}Bd=X(Bd,Wa.xAxis);Od=X(Od,Wa.yAxis);Wa.xAxis=Wa.yAxis=null;var B=a.series;a.series=null;a=X(Wa,a);a.series=B;var r=a.chart;B=r.margin;B=oc(B)?B:[B,B,B,B];var t=z(r.marginTop,B[0]),p=z(r.marginRight,B[1]),x=z(r.marginBottom,B[2]),Y=z(r.marginLeft,B[3]),A=r.spacingTop,N=r.spacingRight,va=r.spacingBottom,Pa=r.spacingLeft,Ja,Ub,ea,ka,ec,vb,ga,sb,Ua,ub,wa,Wb,Kc,xc,Za,Xa,cc,Jc,Lc,Yc,yc,T,o=this,gb=(B=r.events)&&
!!B.click,Gb,Sa,yb,zb,ob,Eb,nc,Ea,Ka,dc,mc,lc,Wc,Xb,hc,fc,Vc=r.showAxes,Dd=0,rb=[],kc,Ta=[],Ba,ta,Qd,ue,Rd,Td,fd,Wd,Xd,Vd,Sd,xe,Ke=function(l){function u(P,ya){var xa=P.legendItem,Ca=P.legendLine,$a=P.legendSymbol,fb=Ia.color,jb=ya?$.itemStyle.color:fb;fb=ya?P.color:fb;xa&&xa.css({fill:jb});Ca&&Ca.attr({stroke:fb});$a&&$a.attr({stroke:fb,fill:fb})}function G(P,ya,xa){var Ca=P.legendItem,$a=P.legendLine,fb=P.legendSymbol;P=P.checkbox;Ca&&Ca.attr({x:ya,y:xa});$a&&$a.translate(ya,xa-4);fb&&fb.attr({x:ya+
fb.xOff,y:xa+fb.yOff});if(P){P.x=ya;P.y=xa}}function K(){y(oa,function(P){var ya=P.checkbox,xa=Sb.alignAttr;ya&&Na(ya,{left:xa.translateX+P.legendItemWidth+ya.x-40+qb,top:xa.translateY+ya.y-11+qb})})}function na(P){var ya,xa,Ca,$a,fb=P.legendItem;$a=P.series||P;var jb=$a.options,wb=jb&&jb.borderWidth||0;if(!fb){$a=/^(bar|pie|area|column)$/.test($a.type);P.legendItem=fb=ta.text($.labelFormatter.call(P),0,0).css(P.visible?W:Ia).on("mouseover",function(){P.setState(Vb);fb.css(Ya)}).on("mouseout",function(){fb.css(P.visible?
W:Ia);P.setState()}).on("click",function(){var ac=function(){P.setVisible()};P.firePointEvent?P.firePointEvent("legendItemClick",null,ac):La(P,"legendItemClick",null,ac)}).attr({zIndex:2}).add(Sb);if(!$a&&jb&&jb.lineWidth){var xb={"stroke-width":jb.lineWidth,zIndex:2};if(jb.dashStyle)xb.dashstyle=jb.dashStyle;P.legendLine=ta.path([Ra,-ib-cb,0,Ga,-cb,0]).attr(xb).add(Sb)}if($a)Ca=ta.rect(ya=-ib-cb,xa=-11,ib,12,2).attr({zIndex:3}).add(Sb);else if(jb&&jb.marker&&jb.marker.enabled){Ca=jb.marker.radius;
Ca=ta.symbol(P.symbol,ya=-ib/2-cb-Ca,xa=-4-Ca,2*Ca,2*Ca).attr(P.pointAttr[Hb]).attr({zIndex:3}).add(Sb)}if(Ca){Ca.xOff=ya+wb%2/2;Ca.yOff=xa+wb%2/2}P.legendSymbol=Ca;u(P,P.visible);if(jb&&jb.showCheckbox){P.checkbox=pb("input",{type:"checkbox",checked:P.selected,defaultChecked:P.selected},$.itemCheckboxStyle,wa);ua(P.checkbox,"click",function(ac){La(P,"checkboxClick",{checked:ac.target.checked},function(){P.select()})})}}ya=fb.getBBox();xa=P.legendItemWidth=$.itemWidth||ib+cb+ya.width+H;fa=ya.height;
if(sa&&R-M+xa>(Kb||Za-2*J-M)){R=M;S+=fa}ja=S;G(P,R,S);if(sa)R+=xa;else S+=fa;mb=Kb||ba(sa?R-M:xa,mb)}function qa(){R=M;S=s;ja=mb=0;Sb||(Sb=ta.g("legend").attr({zIndex:10}).add());oa=[];y(bc,function(Ca){var $a=Ca.options;if($a.showInLegend)oa=oa.concat($a.legendType==="point"?Ca.data:Ca)});De(oa,function(Ca,$a){return(Ca.options.legendIndex||0)-($a.options.legendIndex||0)});Qb&&oa.reverse();y(oa,na);Xb=Kb||mb;hc=ja-s+fa;if(nb||vc){Xb+=2*J;hc+=2*J;if(db){if(Xb>0&&hc>0){db[db.isNew?"attr":"animate"](db.crisp(null,
null,null,Xb,hc));db.isNew=false}}else{db=ta.rect(0,0,Xb,hc,$.borderRadius,nb||0).attr({stroke:$.borderColor,"stroke-width":nb||0,fill:vc||Ib}).add(Sb).shadow($.shadow);db.isNew=true}db[oa.length?"show":"hide"]()}for(var P=["left","right","top","bottom"],ya,xa=4;xa--;){ya=P[xa];if(Oa[ya]&&Oa[ya]!=="auto"){$[xa<2?"align":"verticalAlign"]=ya;$[xa<2?"x":"y"]=ca(Oa[ya])*(xa%2?-1:1)}}oa.length&&Sb.align(aa($,{width:Xb,height:hc}),true,Ja);Dd||K()}var $=l.options.legend;if($.enabled){var sa=$.layout===
"horizontal",ib=$.symbolWidth,cb=$.symbolPadding,oa,Oa=$.style,W=$.itemStyle,Ya=$.itemHoverStyle,Ia=$.itemHiddenStyle,J=ca(Oa.padding),H=20,s=18,M=4+J+ib+cb,R,S,ja,fa=0,db,nb=$.borderWidth,vc=$.backgroundColor,Sb,mb,Kb=$.width,bc=l.series,Qb=$.reversed;qa();ua(l,"endResize",K);return{colorizeItem:u,destroyItem:function(P){var ya=P.checkbox;y(["legendItem","legendLine","legendSymbol"],function(xa){P[xa]&&P[xa].destroy()});ya&&sd(P.checkbox)},renderLegend:qa}}};Sa=function(l,u){return l>=0&&l<=Ka&&
u>=0&&u<=Ea};xe=function(){La(o,"selection",{resetSelection:true},Sd);o.toolbar.remove("zoom")};Sd=function(l){var u=Wa.lang,G=o.pointCount<100;o.resetZoomEnabled!==false&&o.toolbar.add("zoom",u.resetZoom,u.resetZoomTitle,xe);!l||l.resetSelection?y(rb,function(K){K.options.zoomEnabled!==false&&K.setExtremes(null,null,true,G)}):y(l.xAxis.concat(l.yAxis),function(K){var na=K.axis;if(o.tracker[na.isXAxis?"zoomX":"zoomY"])na.setExtremes(K.min,K.max,true,G)})};fd=function(){var l=a.legend,u=z(l.margin,
10),G=l.x,K=l.y,na=l.align,qa=l.verticalAlign,$;Wd();if((o.title||o.subtitle)&&!Q(t))if($=ba(o.title&&!Ub.floating&&!Ub.verticalAlign&&Ub.y||0,o.subtitle&&!ea.floating&&!ea.verticalAlign&&ea.y||0))ka=ba(ka,$+z(Ub.margin,15)+A);if(l.enabled&&!l.floating)if(na==="right")Q(p)||(ec=ba(ec,Xb-G+u+N));else if(na==="left")Q(Y)||(ga=ba(ga,Xb+G+u+Pa));else if(qa==="top")Q(t)||(ka=ba(ka,hc+K+u+A));else if(qa==="bottom")Q(x)||(vb=ba(vb,hc-K+u+va));if(o.extraBottomMargin)vb+=o.extraBottomMargin;if(o.extraTopMargin)ka+=
o.extraTopMargin;Vc&&y(rb,function(sa){sa.getOffset()});Q(Y)||(ga+=sb[3]);Q(t)||(ka+=sb[0]);Q(x)||(vb+=sb[2]);Q(p)||(ec+=sb[1]);Xd()};Vd=function(l,u,G){var K=o.title,na=o.subtitle;Dd+=1;Pc(G,o);Jc=Xa;cc=Za;if(Q(l))o.chartWidth=Za=O(l);if(Q(u))o.chartHeight=Xa=O(u);Na(wa,{width:Za+qb,height:Xa+qb});ta.setSize(Za,Xa,G);Ka=Za-ga-ec;Ea=Xa-ka-vb;kc=null;y(rb,function(qa){qa.isDirty=true;qa.setScale()});y(Ta,function(qa){qa.isDirty=true});o.isDirtyLegend=true;o.isDirtyBox=true;fd();K&&K.align(null,null,
Ja);na&&na.align(null,null,Ja);j(G);Jc=null;La(o,"resize");setTimeout(function(){La(o,"endResize",null,function(){Dd-=1})},rd&&rd.duration||500)};Xd=function(){o.plotLeft=ga=O(ga);o.plotTop=ka=O(ka);o.plotWidth=Ka=O(Za-ga-ec);o.plotHeight=Ea=O(Xa-ka-vb);o.plotSizeX=Ba?Ea:Ka;o.plotSizeY=Ba?Ka:Ea;Ja={x:Pa,y:A,width:Za-Pa-N,height:Xa-A-va};y(rb,function(l){l.isDirty&&l.setAxisSize()})};Wd=function(){ka=z(t,A);ec=z(p,N);vb=z(x,va);ga=z(Y,Pa);sb=[0,0,0,0]};Td=function(){var l=r.borderWidth||0,u=r.backgroundColor,
G=r.plotBackgroundColor,K=r.plotBackgroundImage,na,qa={x:ga,y:ka,width:Ka,height:Ea};na=l+(r.shadow?8:0);if(l||u)if(Lc)Lc.animate(Lc.crisp(null,null,null,Za-na,Xa-na));else Lc=ta.rect(na/2,na/2,Za-na,Xa-na,r.borderRadius,l).attr({stroke:r.borderColor,"stroke-width":l,fill:u||Ib}).add().shadow(r.shadow);if(G)if(Yc)Yc.animate(qa);else Yc=ta.rect(ga,ka,Ka,Ea,0).attr({fill:G}).add().shadow(r.plotShadow);if(K)if(yc)yc.animate(qa);else yc=ta.image(K,ga,ka,Ka,Ea).add();if(r.plotBorderWidth)if(T)T.animate(T.crisp(null,
ga,ka,Ka,Ea));else T=ta.rect(ga,ka,Ka,Ea,0,r.plotBorderWidth).attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth,zIndex:4}).add();o.isDirtyBox=false};ua(tb,"unload",E);r.reflow!==false&&ua(o,"load",q);if(B)for(Gb in B)ua(o,Gb,B[Gb]);o.options=a;o.series=Ta;o.xAxis=[];o.yAxis=[];o.addSeries=function(l,u,G){var K;if(l){Pc(G,o);u=z(u,true);La(o,"addSeries",{options:l},function(){K=g(l);K.isDirty=true;o.isDirtyLegend=true;u&&o.redraw()})}return K};o.animation=z(r.animation,true);o.Axis=c;
o.destroy=E;o.get=function(l){var u,G,K;for(u=0;u<rb.length;u++)if(rb[u].options.id===l)return rb[u];for(u=0;u<Ta.length;u++)if(Ta[u].options.id===l)return Ta[u];for(u=0;u<Ta.length;u++){K=Ta[u].points;for(G=0;G<K.length;G++)if(K[G].id===l)return K[G]}return null};o.getSelectedPoints=function(){var l=[];y(Ta,function(u){l=l.concat(Yd(u.points,function(G){return G.selected}))});return l};o.getSelectedSeries=function(){return Yd(Ta,function(l){return l.selected})};o.hideLoading=function(){Fd(ob,{opacity:0},
{duration:a.loading.hideDuration||100,complete:function(){Na(ob,{display:Ib})}});nc=false};o.initSeries=g;o.isInsidePlot=Sa;o.redraw=j;o.setSize=Vd;o.setTitle=k;o.showLoading=function(l){var u=a.loading;if(!ob){ob=pb(sc,{className:gc+"loading"},aa(u.style,{left:ga+qb,top:ka+qb,width:Ka+qb,height:Ea+qb,zIndex:10,display:Ib}),wa);Eb=pb("span",null,u.labelStyle,ob)}Eb.innerHTML=l||a.lang.loading;if(!nc){Na(ob,{opacity:0,display:""});Fd(ob,{opacity:u.style.opacity},{duration:u.showDuration||0});nc=true}};
o.pointCount=0;o.counters=new ie;F()}var Aa=document,tb=window,pa=Math,O=pa.round,Jb=pa.floor,Ad=pa.ceil,ba=pa.max,Fa=pa.min,kb=pa.abs,Mb=pa.cos,Yb=pa.sin,Mc=pa.PI,ye=Mc*2/360,Zc=navigator.userAgent,md=/msie/i.test(Zc)&&!tb.opera,jd=Aa.documentMode===8,te=/AppleWebKit/.test(Zc),we=/Firefox/.test(Zc),id=!!Aa.createElementNS&&!!Aa.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,hd,Db=Aa.documentElement.ontouchstart!==undefined,ze={},Ud=0,td,Wa,wc,rd,kd,Qa,ma,sc="div",Xc="absolute",
ve="relative",Lb="hidden",gc="highcharts-",Rb="visible",qb="px",Ib="none",Ra="M",Ga="L",Ae="rgba(192,192,192,"+(id?1.0E-6:0.0020)+")",Hb="",Vb="hover",bd="millisecond",Oc="second",Cc="minute",Dc="hour",Zb="day",qc="week",rc="month",ic="year",qd,Hd,Id,Kd,cd,od,pd,ee,fe,Jd,ge,he,V=tb.HighchartsAdapter,eb=V||{},y=eb.each,Yd=eb.grep,$c=eb.map,X=eb.merge,ua=eb.addEvent,Tb=eb.removeEvent,La=eb.fireEvent,Fd=eb.animate,gd=eb.stop,hb={};tb.Highcharts={};wc=function(a,b,c){function d(D,C){D=D.toString().replace(/^([0-9])$/,
"0$1");if(C===3)D=D.toString().replace(/^([0-9]{2})$/,"0$1");return D}if(!Q(b)||isNaN(b))return"Invalid date";a=z(a,"%Y-%m-%d %H:%M:%S");var e=new Date(b),f,g=e[Id](),h=e[Kd](),j=e[cd](),i=e[od](),k=e[pd](),m=Wa.lang,q=m.weekdays;m=m.months;b={a:q[h].substr(0,3),A:q[h],d:d(j),e:j,b:m[i].substr(0,3),B:m[i],m:d(i+1),y:k.toString().substr(2,2),Y:k,H:d(g),I:d(g%12||12),l:g%12||12,M:d(e[Hd]()),p:g<12?"AM":"PM",P:g<12?"am":"pm",S:d(e.getSeconds()),L:d(b%1E3,3)};for(f in b)a=a.replace("%"+f,b[f]);return c?
a.substr(0,1).toUpperCase()+a.substr(1):a};ie.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};Qa=Ob(bd,1,Oc,1E3,Cc,6E4,Dc,36E5,Zb,864E5,qc,6048E5,rc,2592E6,ic,31556952E3);kd={init:function(a,b,c){b=b||"";var d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g;b=b.split(" ");c=[].concat(c);var h,j,i=function(k){for(g=k.length;g--;)k[g]===Ra&&k.splice(g+1,0,k[g+1],k[g+2],k[g+1],k[g+2])};if(e){i(b);i(c)}if(a.isArea){h=b.splice(b.length-6,6);
j=c.splice(c.length-6,6)}if(d===1)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);if(e){d[f-6]=d[f-2];d[f-5]=d[f-1]}b=b.concat(d)}if(h){b=b.concat(h);c=c.concat(j)}return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(c===1)e=d;else if(f===b.length&&c<1)for(;f--;){d=parseFloat(a[f]);e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d}else e=b;return e}};V&&V.init&&V.init(kd);if(!V&&tb.jQuery){var Nb=jQuery;y=function(a,b){for(var c=
0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===false)return c};Yd=Nb.grep;$c=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c};X=function(){var a=arguments;return Nb.extend(true,null,a[0],a[1],a[2],a[3])};ua=function(a,b,c){Nb(a).bind(b,c)};Tb=function(a,b,c){var d=Aa.removeEventListener?"removeEventListener":"detachEvent";if(Aa[d]&&!a[d])a[d]=function(){};Nb(a).unbind(b,c)};La=function(a,b,c,d){var e=Nb.Event(b),f="detached"+b;aa(e,c);if(a[b]){a[f]=a[b];a[b]=
null}Nb(a).trigger(e);if(a[f]){a[b]=a[f];a[f]=null}d&&!e.isDefaultPrevented()&&d(e)};Fd=function(a,b,c){var d=Nb(a);if(b.d){a.toD=b.d;b.d=1}d.stop();d.animate(b,c)};gd=function(a){Nb(a).stop()};Nb.extend(Nb.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var Le=jQuery.fx.step._default,Me=jQuery.fx.prototype.cur;Nb.fx.step._default=function(a){var b=a.elem;b.attr?b.attr(a.prop,a.now):Le.apply(this,arguments)};Nb.fx.step.d=function(a){var b=a.elem;if(!a.started){var c=kd.init(b,b.d,
b.toD);a.start=c[0];a.end=c[1];a.started=true}b.attr("d",kd.step(a.start,a.end,a.pos,b.toD))};Nb.fx.prototype.cur=function(){var a=this.elem;return a.attr?a.attr(this.prop):Me.apply(this,arguments)}}V={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};Wa={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January",
"February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,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"},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:false,showCheckbox:false,animation:{duration:1E3},events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:X(V,
{enabled:false,y:-6,formatter:function(){return this.y}}),cropThreshold:300,pointRange:0,showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:Xc,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},
itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:Xc,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:ve,top:"1em"},style:{position:Xc,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,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:true,snap:Db?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,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 Bd={dateTimeLabelFormats:Ob(bd,"%H:%M:%S.%L",Oc,"%H:%M:%S",Cc,"%H:%M",Dc,"%H:%M",Zb,"%e. %b",qc,"%e. %b",rc,"%b '%y",ic,"%Y"),endOnTick:false,gridLineColor:"#C0C0C0",
labels:V,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},Od=X(Bd,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,
showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:false,formatter:function(){return this.total},style:V.style}}),Ie={labels:{align:"right",x:-8,y:null},title:{rotation:270}},He={labels:{align:"left",x:8,y:null},title:{rotation:90}},qe={labels:{align:"center",x:0,y:14},title:{rotation:0}},Ge=X(qe,{labels:{y:-5}}),Va=Wa.plotOptions;V=Va.line;Va.spline=X(V);Va.scatter=X(V,
{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/>"}});Va.area=X(V,{threshold:0});Va.areaspline=X(Va.area);Va.column=X(V,{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:false},select:{color:"#C0C0C0",borderColor:"#000000",
shadow:false}},dataLabels:{y:null,verticalAlign:null},threshold:0});Va.bar=X(Va.column,{dataLabels:{align:"left",x:5,y:0}});Va.pie=X(V,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});je();var zc=function(a){var b=[],c;(function(d){if(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(d))b=
[ca(c[1]),ca(c[2]),ca(c[3]),parseFloat(c[4],10)];else if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))b=[ca(c[1],16),ca(c[2],16),ca(c[3],16),1]})(a);return{get:function(d){return b&&!isNaN(b[0])?d==="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":d==="a"?b[3]:"rgba("+b.join(",")+")":a},brighten:function(d){if(ld(d)&&d!==0){var e;for(e=0;e<3;e++){b[e]+=ca(d*255);if(b[e]<0)b[e]=0;if(b[e]>255)b[e]=255}}return this},setOpacity:function(d){b[3]=d;return this}}};ud.prototype={init:function(a,b){this.element=
Aa.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a;this.attrSetters={}},animate:function(a,b,c){if(b=z(b,rd,true)){b=X(b);if(c)b.complete=c;Fd(this,a,b)}else{this.attr(a);c&&c()}},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName,j=this.renderer,i,k=this.attrSetters,m=this.shadows,q,D=this;if(Bc(a)&&Q(b)){c=a;a={};a[c]=b}if(Bc(a)){c=a;if(h==="circle")c={x:"cx",y:"cy"}[c]||c;else if(c==="strokeWidth")c="stroke-width";D=Ma(g,c)||this[c]||0;if(c!=="d"&&c!=="visibility")D=parseFloat(D)}else for(c in a){i=
false;d=a[c];e=k[c]&&k[c](d,c);if(e!==false){if(e!==ma)d=e;if(c==="d"){if(d&&d.join)d=d.join(" ");if(/(NaN| {2}|^$)/.test(d))d="M 0 0";this.d=d}else if(c==="x"&&h==="text"){for(e=0;e<g.childNodes.length;e++){f=g.childNodes[e];Ma(f,"x")===Ma(g,"x")&&Ma(f,"x",d)}if(this.rotation)Ma(g,"transform","rotate("+this.rotation+" "+d+" "+ca(a.y||Ma(g,"y"))+")")}else if(c==="fill")d=j.color(d,g,c);else if(h==="circle"&&(c==="x"||c==="y"))c={x:"cx",y:"cy"}[c]||c;else if(h==="rect"&&c==="r"){Ma(g,{rx:d,ry:d});
i=true}else if(c==="translateX"||c==="translateY"||c==="rotation"||c==="verticalAlign"){this[c]=d;this.updateTransform();i=true}else if(c==="stroke")d=j.color(d,g,c);else if(c==="dashstyle"){c="stroke-dasharray";d=d&&d.toLowerCase();if(d==="solid")d=Ib;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]=ca(d[e])*a["stroke-width"];d=d.join(",")}}else if(c==="isTracker")this[c]=d;else if(c==="width")d=ca(d);else if(c==="align"){c="text-anchor";d={left:"start",center:"middle",right:"end"}[d]}else if(c==="title"){e=Aa.createElementNS("http://www.w3.org/2000/svg","title");e.appendChild(Aa.createTextNode(d));g.appendChild(e)}if(c==="strokeWidth")c="stroke-width";if(te&&c==="stroke-width"&&d===0)d=1.0E-6;if(this.symbolName&&/^(x|y|r|start|end|innerR|anchorX|anchorY)/.test(c)){if(!q){this.symbolAttr(a);
q=true}i=true}if(m&&/^(width|height|visibility|x|y|d|transform)$/.test(c))for(e=m.length;e--;)Ma(m[e],c,d);if((c==="width"||c==="height")&&h==="rect"&&d<0)d=0;if(c==="text"){this.textStr=d;this.added&&j.buildText(this)}else i||Ma(g,c,d)}}return D},symbolAttr:function(a){var b=this;y(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(c){b[c]=z(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",
"url("+this.renderer.url+"#"+a.id+")")},crisp:function(a,b,c,d,e){var f,g={},h={},j;a=a||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;j=O(a)%2/2;h.x=Jb(b||this.x||0)+j;h.y=Jb(c||this.y||0)+j;h.width=Jb((d||this.width||0)-2*j);h.height=Jb((e||this.height||0)-2*j);h.strokeWidth=a;for(f in h)if(this[f]!==h[f])this[f]=g[f]=h[f];return g},css:function(a){var b=this.element;b=a&&a.width&&b.nodeName==="text";var c,d="",e=function(f,g){return"-"+g.toLowerCase()};if(a&&a.color)a.fill=a.color;
this.styles=a=aa(this.styles,a);if(md&&!id){b&&delete a.width;Na(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){var c=b;if(Db&&a==="click"){a="touchstart";c=function(d){d.preventDefault();b()}}this.element["on"+a]=c;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=true;this.updateTransform();return this},updateTransform:function(){var a=
this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];if(c){a+=this.attr("width");b+=this.attr("height")}if(a||b)e.push("translate("+a+","+b+")");if(c)e.push("rotate(90) scale(-1,1)");else d&&e.push("rotate("+d+" "+this.x+" "+this.y+")");e.length&&Ma(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){if(a){this.alignOptions=a;this.alignByTranslate=b;c||this.renderer.alignedObjects.push(this)}else{a=
this.alignOptions;b=this.alignByTranslate}c=z(c,this.renderer);var d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};if(/^(right|center)$/.test(d))f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=O(f);if(/^(bottom|middle)$/.test(e))g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=O(g);this[this.placed?"animate":"attr"](h);this.placed=true;this.alignAttr=h;return this},getBBox:function(){var a,b,c,d=this.rotation,e=d*ye;try{a=
aa({},this.element.getBBox())}catch(f){a={width:0,height:0}}b=a.width;c=a.height;if(d){a.width=kb(c*Yb(e))+kb(b*Mb(e));a.height=kb(c*Mb(e))+kb(b*Yb(e))}return a},show:function(){return this.attr({visibility:Rb})},hide:function(){return this.attr({visibility:Lb})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=Ma(f,"zIndex"),h;this.parentInverted=a&&a.inverted;this.textStr!==undefined&&b.buildText(this);if(g){c.handleZ=true;g=ca(g)}if(c.handleZ)for(c=
0;c<e.length;c++){a=e[c];b=Ma(a,"zIndex");if(a!==f&&(ca(b)>g||!Q(g)&&Q(b))){d.insertBefore(f,a);h=true;break}}h||d.appendChild(f);this.added=true;La(this,"add");return this},destroy:function(){var a=this.element||{},b=this.shadows,c=this.box,d=a.parentNode,e;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=null;gd(this);d&&d.removeChild(a);b&&y(b,function(f){(d=f.parentNode)&&d.removeChild(f)});c&&c.destroy();Nc(this.renderer.alignedObjects,this);for(e in this)delete this[e];return null},empty:function(){for(var a=
this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a,b){var c=[],d,e,f=this.element,g=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(d=1;d<=3;d++){e=f.cloneNode(0);Ma(e,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*d,"stroke-width":7-2*d,transform:"translate"+g,fill:Ib});b?b.element.appendChild(e):f.parentNode.insertBefore(e,f);c.push(e)}this.shadows=c}return this}};var Ed=function(){this.init.apply(this,arguments)};Ed.prototype={Element:ud,init:function(a,
b,c,d){var e=location,f;f=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"});a.appendChild(f.element);this.box=f.element;this.boxWrapper=f;this.alignedObjects=[];this.url=md?"":e.href.replace(/#.*?$/,"");this.defs=this.createElement("defs").add();this.forExport=d;this.setSize(b,c,false)},createElement:function(a){var b=new this.Element;b.init(this,a);return b},buildText:function(a){for(var b=a.element,c=z(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=Ma(b,"x"),h=a.styles,j=we&&h&&h.HcDirection==="rtl"&&!this.forExport&&ca(Zc.split("Firefox/")[1])<4,i,k=h&&ca(h.width),m=h&&h.lineHeight,q,D=d.length;D--;)b.removeChild(d[D]);k&&!a.added&&this.box.appendChild(b);c[c.length-1]===""&&c.pop();y(c,function(C,E){var F,B=0,r;C=C.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");
F=C.split("|||");y(F,function(t){if(t!==""||F.length===1){var p={},x=Aa.createElementNS("http://www.w3.org/2000/svg","tspan");e.test(t)&&Ma(x,"style",t.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));if(f.test(t)){Ma(x,"onclick",'location.href="'+t.match(f)[1]+'"');Na(x,{cursor:"pointer"})}t=(t.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");if(j){i=[];for(D=t.length;D--;)i.push(t.charAt(D));t=i.join("")}x.appendChild(Aa.createTextNode(t));if(B)p.dx=3;else p.x=g;if(!B){if(E){!id&&
a.renderer.forExport&&Na(x,{display:"block"});r=tb.getComputedStyle&&ca(tb.getComputedStyle(q,null).getPropertyValue("line-height"));if(!r||isNaN(r))r=m||q.offsetHeight||18;Ma(x,"dy",r)}q=x}Ma(x,p);b.appendChild(x);B++;if(k){t=t.replace(/-/g,"- ").split(" ");for(var Y,A=[];t.length||A.length;){Y=b.getBBox().width;p=Y>k;if(!p||t.length===1){t=A;A=[];if(t.length){x=Aa.createElementNS("http://www.w3.org/2000/svg","tspan");Ma(x,{dy:m||16,x:g});b.appendChild(x);if(Y>k)k=Y}}else{x.removeChild(x.firstChild);
A.unshift(t.pop())}t.length&&x.appendChild(Aa.createTextNode(t.join(" ").replace(/- /g,"-")))}}}})})},button:function(a,b,c,d,e,f,g){var h=this.label(a,b,c),j=0,i,k,m,q,D;a={x1:0,y1:0,x2:0,y2:1};e=X(Ob("stroke-width",1,"stroke","#999","fill",Ob("linearGradient",a,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",Ob("color","black")),e);m=e.style;delete e.style;f=X(e,Ob("stroke","#68A","fill",Ob("linearGradient",a,"stops",[[0,"#FFF"],[1,"#ACF"]])),f);q=f.style;delete f.style;g=X(e,Ob("stroke",
"#68A","fill",Ob("linearGradient",a,"stops",[[0,"#9BD"],[1,"#CDF"]])),g);D=g.style;delete g.style;ua(h.element,"mouseenter",function(){h.attr(f).css(q)});ua(h.element,"mouseleave",function(){i=[e,f,g][j];k=[m,q,D][j];h.attr(i).css(k)});h.setState=function(C){if(j=C)C===2&&h.attr(g).css(D);else h.attr(e).css(m)};return h.on("click",function(){d.call(h)}).attr(e).css(aa({cursor:"default"},m))},crispLine:function(a,b){if(a[1]===a[4])a[1]=a[4]=O(a[1])+b%2/2;if(a[2]===a[5])a[2]=a[5]=O(a[2])+b%2/2;return a},
path:function(a){return this.createElement("path").attr({d:a,fill:Ib})},circle:function(a,b,c){a=oc(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(oc(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){if(oc(a)){b=a.y;c=a.width;d=a.height;e=a.r;f=a.strokeWidth;a=a.x}e=this.createElement("rect").attr({rx:e,ry:e,fill:Ib});return e.attr(e.crisp(f,a,
b,ba(c,0),ba(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[z(c,true)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return Q(a)?b.attr({"class":gc+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:Ib};arguments.length>1&&aa(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(O(b),O(c),d,e,f);var j=/^url\((.*?)\)$/,i;if(h){g=this.path(h);aa(g,{symbolName:a,x:b,y:c,width:d,height:e});f&&aa(g,f)}else if(j.test(a)){var k=function(m,q){m.attr({width:q[0],height:q[1]}).translate(-O(q[0]/2),-O(q[1]/2))};i=a.match(j)[1];a=ze[i];g=this.image(i).attr({x:b,y:c});if(a)k(g,a);else{g.attr({width:0,height:0});pb("img",{onload:function(){k(g,ze[i]=[this.width,this.height])},
src:i})}}return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return[Ra,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[Ra,a,b,Ga,a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return[Ra,a+c/2,b,Ga,a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return[Ra,a,b,Ga,a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return[Ra,a+c/2,b,Ga,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=c||d;var g=e.end-1.0E-6;
d=e.innerR;var h=Mb(f),j=Yb(f),i=Mb(g);g=Yb(g);e=e.end-f<Mc?0:1;return[Ra,a+c*h,b+c*j,"A",c,c,0,e,1,a+c*i,b+c*g,Ga,a+d*i,b+d*g,"A",d,d,0,e,0,a+d*h,b+d*j,"Z"]}},clipRect:function(a,b,c,d){var e=gc+Ud++,f=this.createElement("clipPath").attr({id:e}).add(this.defs);a=this.rect(a,b,c,d,0).add(f);a.id=e;return a},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f=this;b=a.linearGradient;c=!b.length;var g=gc+Ud++,h,j,i;h=f.createElement("linearGradient").attr(aa({id:g,x1:b.x1||b[0]||0,y1:b.y1||
b[1]||0,x2:b.x2||b[2]||0,y2:b.y2||b[3]||0},c?null:{gradientUnits:"userSpaceOnUse"})).add(f.defs);y(a.stops,function(k){if(e.test(k[1])){d=zc(k[1]);j=d.get("rgb");i=d.get("a")}else{j=k[1];i=1}f.createElement("stop").attr({offset:k[0],"stop-color":j,"stop-opacity":i}).add(h)});return"url("+this.url+"#"+g+")"}else if(e.test(a)){d=zc(a);Ma(b,c+"-opacity",d.get("a"));return d.get("rgb")}else{b.removeAttribute(c+"-opacity");return a}},text:function(a,b,c){var d=Wa.chart.style;b=O(z(b,0));c=O(z(c,0));a=
this.createElement("text").attr({x:b,y:c,text:a}).css({fontFamily:d.fontFamily,fontSize:d.fontSize});a.x=b;a.y=c;return a},label:function(a,b,c,d,e,f){function g(){var A=i.styles;A=A&&A.textAlign;var N=C,va=C+O(ca(i.element.style.fontSize||11)*1.2);if(Q(E)&&(A==="center"||A==="right"))N+={center:0.5,right:1}[A]*(E-q.width);if(N!==k.x||va!==k.y)k.attr({x:N,y:va});k.x=N;k.y=va}function h(A,N){if(m)m.attr(A,N);else p[A]=N}var j=this,i=j.g(),k=j.text().attr({zIndex:1}).add(i),m,q,D="left",C=3,E,F,B,r,
t=0,p={},x=i.attrSetters;ua(i,"add",function(){i.attr({text:a,x:b,y:c,anchorX:e,anchorY:f})});x.width=function(A){E=A;return false};x.height=function(A){F=A;return false};x.padding=function(A){C=A;g();return false};x.align=function(A){D=A;return false};x.text=function(A,N){k.attr(N,A);q=(E===undefined||F===undefined||i.styles.textAlign)&&k.getBBox(true);i.width=(E||q.width)+2*C;i.height=(F||q.height)+2*C;if(!m){i.box=m=d?j.symbol(d,0,0,i.width,i.height):j.rect(0,0,i.width,i.height,0,p["stroke-width"]);
m.add(i)}m.attr(X({width:i.width,height:i.height},p));p=null;g();return false};x["stroke-width"]=function(A,N){t=A%2/2;h(N,A);return false};x.stroke=x.fill=x.r=function(A,N){h(N,A);return false};x.anchorX=function(A,N){e=A;h(N,A+t-B);return false};x.anchorY=function(A,N){f=A;h(N,A-r);return false};x.x=function(A){B=A;B-={left:0,center:0.5,right:1}[D]*((E||q.width)+C);i.attr("translateX",O(B));return false};x.y=function(A){r=A;i.attr("translateY",O(A));return false};var Y=i.css;return aa(i,{css:function(A){if(A){var N=
{};y(["fontSize","fontWeight","fontFamily","color","lineHeight"],function(va){if(A[va]!==ma){N[va]=A[va];delete A[va]}});k.css(N)}return Y.call(i,A)},getBBox:function(){return m.getBBox()},shadow:function(A){m.shadow(A);return i}})}};hd=Ed;if(!id){eb=Bb(ud,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",Xc,";"];if(b==="shape"||b===sc)d.push("left:0;top:0;width:10px;height:10px;");if(jd)d.push("visibility: ",b===sc?Lb:Rb);c.push(' style="',d.join(""),'"/>');if(b){c=b===
sc||b==="span"||b==="img"?c.join(""):a.prepVML(c);this.element=pb(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);jd&&d.gVis===Lb&&Na(c,{visibility:Lb});d.appendChild(c);this.added=true;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();La(this,"add");return this},attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,j=this.renderer,i=this.symbolName,k,m,q=this.shadows,
D=this.attrSetters,C=this;if(Bc(a)&&Q(b)){c=a;a={};a[c]=b}if(Bc(a)){c=a;C=c==="strokeWidth"||c==="stroke-width"?this.strokeweight:this[c]}else for(c in a){d=a[c];k=false;e=D[c]&&D[c](d,c);if(e!==false){if(e!==ma)d=e;if(i&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c)){if(!m){this.symbolAttr(a);m=true}k=true}else if(c==="d"){d=d||[];this.d=d.join(" ");e=d.length;for(k=[];e--;)k[e]=ld(d[e])?O(d[e]*10)-5:d[e]==="Z"?"x":d[e];d=k.join(" ")||"x";f.path=d;if(q)for(e=q.length;e--;)q[e].path=
d;k=true}else if(c==="zIndex"||c==="visibility"){if(jd&&c==="visibility"&&h==="DIV"){f.gVis=d;k=f.childNodes;for(e=k.length;e--;)Na(k[e],{visibility:d});if(d===Rb)d=null}if(d)g[c]=d;k=true}else if(c==="width"||c==="height"){this[c]=d;if(this.updateClipping){this[c]=d;this.updateClipping()}else g[c]=d;k=true}else if(/^(x|y)$/.test(c)){this[c]=d;if(f.tagName==="SPAN")this.updateTransform();else g[{x:"left",y:"top"}[c]]=d}else if(c==="class")f.className=d;else if(c==="stroke"){d=j.color(d,f,c);c="strokecolor"}else if(c===
"stroke-width"||c==="strokeWidth"){f.stroked=d?true:false;c="strokeweight";this[c]=d;if(ld(d))d+=qb}else if(c==="dashstyle"){(f.getElementsByTagName("stroke")[0]||pb(j.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid";this.dashstyle=d;k=true}else if(c==="fill")if(h==="SPAN")g.color=d;else{f.filled=d!==Ib?true:false;d=j.color(d,f,c);c="fillcolor"}else if(c==="translateX"||c==="translateY"||c==="rotation"||c==="align"){if(c==="align")c="textAlign";this[c]=d;this.updateTransform();k=true}else if(c===
"text"){this.bBox=null;f.innerHTML=d;k=true}if(q&&c==="visibility")for(e=q.length;e--;)q[e].style[c]=d;if(!k)if(jd)f[c]=d;else Ma(f,c,d)}}return C},clip:function(a){var b=this,c=a.members;c.push(b);b.destroyClip=function(){Nc(c,b)};return b.css(a.getCSS(b.inverted))},css:function(a){var b=this.element;if(b=a&&b.tagName==="SPAN"&&a.width){delete a.width;this.textWidth=b;this.updateTransform()}this.styles=aa(this.styles,a);Na(this.element,a);return this},destroy:function(){this.destroyClip&&this.destroyClip();
ud.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;){c=a[b];c.parentNode.removeChild(c)}},getBBox:function(a){var b=this.element,c=this.bBox;if(!c||a){if(b.nodeName==="text")b.style.position=Xc;c=this.bBox={x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}}return c},on:function(a,b){this.element["on"+a]=function(){var c=tb.event;c.target=c.srcElement;b(c)};return this},updateTransform:function(){if(this.added){var a=this,b=a.element,
c=a.translateX||0,d=a.translateY||0,e=a.x||0,f=a.y||0,g=a.textAlign||"left",h={left:0,center:0.5,right:1}[g],j=g&&g!=="left",i=a.shadows;if(c||d){Na(b,{marginLeft:c,marginTop:d});i&&y(i,function(t){Na(t,{marginLeft:c+1,marginTop:d+1})})}a.inverted&&y(b.childNodes,function(t){a.renderer.invertChild(t,b)});if(b.tagName==="SPAN"){var k,m;i=a.rotation;var q;k=0;var D=1,C=0,E;q=ca(a.textWidth);var F=a.xCorr||0,B=a.yCorr||0,r=[i,g,b.innerHTML,a.textWidth].join(",");if(r!==a.cTT){if(Q(i)){k=i*ye;D=Mb(k);
C=Yb(k);Na(b,{filter:i?["progid:DXImageTransform.Microsoft.Matrix(M11=",D,", M12=",-C,", M21=",C,", M22=",D,", sizingMethod='auto expand')"].join(""):Ib})}k=z(a.elemWidth,b.offsetWidth);m=z(a.elemHeight,b.offsetHeight);if(k>q){Na(b,{width:q+qb,display:"block",whiteSpace:"normal"});k=q}q=O((ca(b.style.fontSize)||12)*1.2);F=D<0&&-k;B=C<0&&-m;E=D*C<0;F+=C*q*(E?1-h:h);B-=D*q*(i?E?h:1-h:1);if(j){F-=k*h*(D<0?-1:1);if(i)B-=m*h*(C<0?-1:1);Na(b,{textAlign:g})}a.xCorr=F;a.yCorr=B}Na(b,{left:e+F,top:f+B});a.cTT=
r}}else this.alignOnAdd=true},shadow:function(a,b){var c=[],d,e=this.element,f=this.renderer,g,h=e.style,j,i=e.path;if(i&&typeof i.value!=="string")i="x";if(a){for(d=1;d<=3;d++){j=['<shape isShadow="true" strokeweight="',7-2*d,'" filled="false" path="',i,'" coordsize="100,100" style="',e.style.cssText,'" />'];g=pb(f.prepVML(j),null,{left:ca(h.left)+1,top:ca(h.top)+1});j=['<stroke color="black" opacity="',0.05*d,'"/>'];pb(f.prepVML(j),null,null,g);b?b.element.appendChild(g):e.parentNode.insertBefore(g,
e);c.push(g)}this.shadows=c}return this}});V=function(){this.init.apply(this,arguments)};V.prototype=X(Ed.prototype,{Element:eb,isIE8:Zc.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d;this.alignedObjects=[];d=this.createElement(sc);a.appendChild(d.element);this.box=d.element;this.boxWrapper=d;this.setSize(b,c,false);if(!Aa.namespaces.hcv){Aa.namespaces.add("hcv","urn:schemas-microsoft-com:vml");Aa.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},
clipRect:function(a,b,c,d){var e=this.createElement();return aa(e,{members:[],left:a,top:b,width:c,height:d,getCSS:function(f){var g=this.top,h=this.left,j=h+this.width,i=g+this.height;g={clip:"rect("+O(f?h:g)+"px,"+O(f?i:j)+"px,"+O(f?j:i)+"px,"+O(f?g:h)+"px)"};!f&&jd&&aa(g,{width:j+qb,height:i+qb});return g},updateClipping:function(){y(e.members,function(f){f.css(e.getCSS(f.inverted))})}})},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f,g,h=a.linearGradient,j=h.x1||h[0]||0,i=
h.y1||h[1]||0,k=h.x2||h[2]||0;h=h.y2||h[3]||0;var m,q,D,C;y(a.stops,function(E,F){if(e.test(E[1])){d=zc(E[1]);f=d.get("rgb");g=d.get("a")}else{f=E[1];g=1}if(F){D=f;C=g}else{m=f;q=g}});a=90-pa.atan((h-i)/(k-j))*180/Mc;a=["<",c,' colors="0% ',m,",100% ",D,'" angle="',a,'" opacity="',C,'" o:opacity2="',q,'" type="gradient" focus="100%" method="any" />'];pb(this.prepVML(a),null,null,b)}else if(e.test(a)&&b.tagName!=="IMG"){d=zc(a);a=["<",c,' opacity="',d.get("a"),'"/>'];pb(this.prepVML(a),null,null,b);
return d.get("rgb")}else{b=b.getElementsByTagName(c);if(b.length)b[0].opacity=1;return a}},prepVML:function(a){var b=this.isIE8;a=a.join("");if(b){a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')}else a=a.replace("<","<hcv:");return a},text:function(a,b,c){var d=Wa.chart.style;return this.createElement("span").attr({text:a,
x:O(b),y:O(c)}).css({whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize})},path:function(a){return this.createElement("shape").attr({coordsize:"100 100",d:a})},circle:function(a,b,c){return this.symbol("circle").attr({x:a,y:b,r:c})},g:function(a){var b;if(a)b={className:gc+a,"class":gc+a};return this.createElement(sc).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,
c,d,e,f){if(oc(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,ba(c,0),ba(d,0)))},invertChild:function(a,b){var c=b.style;Na(a,{flip:"x",left:ca(c.width)-10,top:ca(c.height)-10,rotation:-90})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end;c=c||d;d=Mb(f);var h=Yb(f),j=Mb(g),i=Yb(g);e=e.innerR;var k=0.07/c,m=e&&0.1/e||0;if(g-f===0)return["x"];else if(2*Mc-g+f<k)j=-k;else if(g-f<m)j=Mb(f+m);return["wa",a-c,b-c,a+c,b+c,a+c*d,b+
c*h,a+c*j,b+c*i,"at",a-e,b-e,a+e,b+e,a+e*j,b+e*i,a+e*d,b+e*h,"x","e"]},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){if(!Q(e))return[];var f=a+c,g=b+d;c=Fa(e.r||0,c,d);return[Ra,a+c,b,Ga,f-c,b,"wa",f-2*c,b,f,b+2*c,f-c,b,f,b+c,Ga,f,g-c,"wa",f-2*c,g-2*c,f,g,f,g-c,f-c,g,Ga,a+c,g,"wa",a,g-2*c,a+2*c,g,a+c,g,a,g-c,Ga,a,b+c,"wa",a,b,a+2*c,b+2*c,a,b+c,a+c,b,"x","e"]}}});hd=V}vd.prototype.callbacks=[];var Ac=function(){};Ac.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;if(!this.options)this.options={};this.color=this.options.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(d==="number"||a===null)this.y=a;else if(typeof a[0]==="number"){this.x=a[0];this.y=a[1]}else if(d==="object"&&typeof a.length!=="number"){aa(this,a);this.options=
a}else if(typeof a[0]==="string"){this.name=a[0];this.y=a[1]}if(this.x===ma)this.x=b===ma?c.autoIncrement():b},destroy:function(){var a=this.series,b=a.chart.hoverPoints,c;a.chart.pointCount--;if(b){this.setState();Nc(b,this)}this===a.chart.hoverPoint&&this.onMouseOut();a.chart.hoverPoints=null;if(this.graphic||this.dataLabel){Tb(this);this.destroyElements()}this.legendItem&&this.series.chart.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a=["graphic","tracker",
"dataLabel","group","connector"],b,c=5;c--;){b=a[c];if(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;c.selected=a=z(a,!c.selected);c.firePointEvent(a?"select":"unselect");c.setState(a&&"select");b||y(d.getSelectedPoints(),function(e){if(e.selected&&e!==c){e.selected=false;e.setState(Hb);
e.firePointEvent("unselect")}})},onMouseOver:function(){var a=this.series,b=a.chart,c=b.tooltip,d=b.hoverPoint;d&&d!==this&&d.onMouseOut();this.firePointEvent("mouseOver");if(c&&(!c.shared||a.noSharedTooltip))c.refresh(this);this.setState(Vb);b.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut");this.setState();this.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=String(this.y).split(".");d=d[1]?d[1].length:0;var e=a.match(/\{(series|point)\.[a-zA-Z]+\}/g),
f=/[\.}]/,g,h,j;for(j in e){h=e[j];if(Bc(h)&&h!==a){g=h.indexOf("point")===1?this:b;g=h==="{point.y}"?(c.yPrefix||"")+nd(this.y,z(c.yDecimals,d))+(c.ySuffix||""):g[e[j].split(f)[1]];a=a.replace(e[j],g)}}return a},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g,h=e.data,j=h.length,i=e.chart;b=z(b,true);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);if(oc(a)){e.getAttribs();f&&f.attr(d.pointAttr[e.state])}for(g=0;g<j;g++)if(h[g]===d){e.xData[g]=d.x;e.yData[g]=d.y;e.options.data[g]=
a;break}e.isDirty=true;e.isDirtyData=true;b&&i.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f,g=d.data,h=g.length;Pc(b,e);a=z(a,true);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=true;d.isDirtyData=true;a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;if(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])this.importEvents();
if(a==="click"&&e.allowPointSelect)c=function(f){d.select(null,f.ctrlKey||f.metaKey||f.shiftKey)};La(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=X(this.series.options.point,this.options).events,b;this.events=a;for(b in a)ua(this,b,a[b]);this.hasImportedEvents=true}},setState:function(a){var b=this.plotX,c=this.plotY,d=this.series,e=d.options.states,f=Va[d.type].marker&&d.options.marker,g=f&&!f.enabled,h=f&&f.states[a],j=h&&h.enabled===false,i=d.stateMarkerGraphic,k=d.chart,
m=this.pointAttr;a=a||Hb;if(!(a===this.state||this.selected&&a!=="select"||e[a]&&e[a].enabled===false||a&&(j||g&&!h.enabled))){if(this.graphic){e=m[a].r;this.graphic.attr(X(m[a],e?aa({x:b-e,y:c-e},this.graphic.symbolName?{width:2*e,height:2*e}:{}):{}))}else{if(a){if(!i){e=f.radius;d.stateMarkerGraphic=i=k.renderer.symbol(d.symbol,-e,-e,2*e,2*e).attr(m[a]).add(d.group)}i.translate(b,c)}if(i)i[a?"show":"hide"]()}this.state=a}}};var Ab=function(){};Ab.prototype={isCartesian:true,type:"line",pointClass:Ac,
pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;d=a.series.length;this.chart=a;this.options=b=this.setOptions(b);this.bindAxes();aa(this,{index:d,name:b.name||"Series "+(d+1),state:Hb,pointAttr:{},visible:b.visible!==false,selected:b.selected===true});d=b.events;for(c in d)ua(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=true;this.getColor();this.getSymbol();
this.setData(b.data,false)},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;a.isCartesian&&y(["xAxis","yAxis"],function(e){y(c[e],function(f){d=f.options;if(b[e]===d.index||b[e]===ma&&d.index===0){f.series.push(a);a[e]=f;f.isDirty=true}})})},autoIncrement:function(){var a=this.options,b=this.xIncrement;b=z(b,a.pointStart,0);this.pointInterval=z(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval;return b},getSegments:function(){var a=-1,b=[],c=this.points;y(c,function(d,
e){if(d.y===null){e>a+1&&b.push(c.slice(a+1,e));a=e}else e===c.length-1&&b.push(c.slice(a+1,e+1))});this.segments=b},setOptions:function(a){var b=this.chart.options,c=b.plotOptions,d=a.data;a.data=null;a=X(c[this.type],c.series,a);a.data=d;this.tooltipOptions=X(b.tooltip,a.tooltip);return a},getColor:function(){var a=this.chart.options.colors,b=this.chart.counters;this.color=this.options.color||a[b.color++]||"#0000ff";b.wrapColor(a.length)},getSymbol:function(){var a=this.chart.options.symbols,b=
this.chart.counters;this.symbol=this.options.marker.symbol||a[b.symbol++];b.wrapSymbol(a.length)},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,h=this.chart,j=this.xData,i=this.yData,k=f&&f.shift||0,m=this.options.data;Pc(d,h);if(f&&c)f.shift=k+1;if(g){g.shift=k+1;g.isArea=true}b=z(b,true);d={series:this};this.pointClass.prototype.applyOptions.apply(d,[a]);j.push(d.x);i.push(d.y);m.push(a);if(c)if(e[0])e[0].remove(false);else{e.shift();j.shift();i.shift();m.shift()}this.getAttribs();
this.isDirtyData=this.isDirty=true;b&&h.redraw()},setData:function(a,b){var c=this.points,d=this.options,e=this.initialColor,f=this.chart,g=null;this.xIncrement=null;this.pointRange=this.xAxis&&this.xAxis.categories&&1||d.pointRange;if(Q(e))f.counters.color=e;var h=[],j=[],i=a.length,k=this.valueCount===4;if(i>(d.turboThreshold||1E3)){for(e=0;g===null&&e<i;){g=a[e];e++}if(ld(g)){g=z(d.pointStart,0);d=z(d.pointInterval,1);for(e=0;e<i;e++){h[e]=g;j[e]=a[e];g+=d}this.xIncrement=g}else if(g.constructor===
Array)if(k)for(e=0;e<i;e++){d=a[e];h[e]=d[0];j[e]=d.slice(1,5)}else for(e=0;e<i;e++){d=a[e];h[e]=d[0];j[e]=d[1]}}else for(e=0;e<i;e++){d={series:this};this.pointClass.prototype.applyOptions.apply(d,[a[e]]);h[e]=d.x;j[e]=k?[d.open,d.high,d.low,d.close]:d.y}this.data=[];this.options.data=a;this.xData=h;this.yData=j;for(e=c&&c.length||0;e--;)c[e]&&c[e].destroy&&c[e].destroy();this.isDirty=this.isDirtyData=f.isDirtyBox=true;z(b,true)&&f.redraw(false)},remove:function(a,b){var c=this,d=c.chart;a=z(a,true);
if(!c.isRemoving){c.isRemoving=true;La(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=true;a&&d.redraw(b)})}c.isRemoving=false},processData:function(){var a=this.xData,b=this.yData,c=a.length,d=0,e=c,f,g=this.options.cropThreshold;if(!g||c>g||this.forceCrop){var h=this.xAxis.getExtremes();g=h.min;h=h.max;if(a[c-1]<g||a[0]>h){a=[];b=[]}else if(a[0]<g||a[c-1]>h){for(f=0;f<c;f++)if(a[f]>=g){d=ba(0,f-1);break}for(;f<c;f++)if(a[f]>h){e=f+1;break}a=a.slice(d,e);b=b.slice(d,e);f=true}}this.cropped=
f;this.cropStart=d;this.processedXData=a;this.processedYData=b},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,j,i=this.hasGroupedData,k=[],m;if(!b&&!i){b=[];b.length=a.length;b=this.data=b}for(m=0;m<g;m++){j=h+m;if(i)k[m]=(new f).init(this,[d[m]].concat(pc(e[m])));else{if(b[j])j=b[j];else b[j]=j=(new f).init(this,a[j],d[m]);k[m]=j}}if(b&&g!==(c=b.length))for(m=0;m<c;m++){if(m===h&&!i)m+=
g;b[m]&&b[m].destroyElements()}this.data=b;this.points=k},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.chart,b=this.options.stacking,c=this.xAxis.categories,d=this.yAxis,e=this.points,f=e.length,g=!!this.modifyValue,h;for(h=0;h<f;h++){var j=e[h],i=j.x,k=j.y,m=j.low,q=d.stacks[(k<0?"-":"")+this.stackKey];j.plotX=this.xAxis.translate(i);if(b&&this.visible&&q&&q[i]){m=q[i];i=m.total;m.cum=m=m.cum-k;k=m+k;if(b==="percent"){m=i?m*100/i:0;k=i?k*100/i:0}j.percentage=
i?j.y*100/i:0;j.stackTotal=i}if(Q(m))j.yBottom=d.translate(m,0,1,0,1);if(g)k=this.modifyValue(k,j);if(k!==null)j.plotY=d.translate(k,0,1,0,1);j.clientX=a.inverted?a.plotHeight-j.plotX:j.plotX;j.category=c&&c[j.x]!==ma?c[j.x]:j.x}this.getSegments()},setTooltipPoints:function(a){var b=this.chart,c=b.inverted,d=[];b=O((c?b.plotTop:b.plotLeft)+b.plotSizeX);var e,f;e=this.xAxis;var g,h,j=[];if(this.options.enableMouseTracking!==false){if(a)this.tooltipPoints=null;y(this.segments||this.points,function(i){d=
d.concat(i)});if(e&&e.reversed)d=d.reverse();a=d.length;for(h=0;h<a;h++){g=d[h];e=d[h-1]?d[h-1]._high+1:0;for(f=g._high=d[h+1]?Jb((g.plotX+(d[h+1]?d[h+1].plotX:b))/2):b;e<=f;)j[c?b-e++:e++]=g}this.tooltipPoints=j}},tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat||"%A, %b %e, %Y",d=this.xAxis;return b.headerFormat.replace("{point.key}",d&&d.options.type==="datetime"?wc(c,a):a).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var a=
this.chart,b=a.hoverSeries;if(!(!Db&&a.mouseIsDown)){b&&b!==this&&b.onMouseOut();this.options.events.mouseOver&&La(this,"mouseOver");this.setState(Vb);a.hoverSeries=this}},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;d&&d.onMouseOut();this&&a.events.mouseOut&&La(this,"mouseOut");c&&!a.stickyTracking&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this.chart,c=this.clipRect,d=this.options.animation;if(d&&!oc(d))d={};if(a){if(!c.isAnimating){c.attr("width",
0);c.isAnimating=true}}else{c.animate({width:b.plotSizeX},d);this.animate=null}},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,j;if(this.options.marker.enabled)for(f=b.length;f--;){g=b[f];d=g.plotX;e=g.plotY;j=g.graphic;if(e!==ma&&!isNaN(e)){a=g.pointAttr[g.selected?"select":Hb];h=a.r;if(j)j.animate(aa({x:d-h,y:e-h},j.symbolName?{width:2*h,height:2*h}:{}));else g.graphic=c.renderer.symbol(z(g.marker&&g.marker.symbol,this.symbol),d-h,e-h,2*h,2*h).attr(a).add(this.group)}}},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]=z(a[g],b[f],c[f],d[f])}return h},getAttribs:function(){var a=this,b=Va[a.type].marker?a.options.marker:a.options,c=b.states,d=c[Vb],e,f=a.color,g={stroke:f,fill:f},h=a.points,j=[],i,k=a.pointAttrToOptions,m;if(a.options.marker){d.radius=d.radius||b.radius+2;d.lineWidth=d.lineWidth||b.lineWidth+1}else d.color=d.color||zc(d.color||f).brighten(d.brightness).get();j[Hb]=a.convertAttribs(b,g);y([Vb,"select"],
function(q){j[q]=a.convertAttribs(c[q],j[Hb])});a.pointAttr=j;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&b.enabled===false)b.radius=0;e=false;if(g.options)for(m in k)if(Q(b[k[m]]))e=true;if(e){i=[];c=b.states||{};e=c[Vb]=c[Vb]||{};if(!a.options.marker)e.color=zc(e.color||g.options.color).brighten(e.brightness||d.brightness).get();i[Hb]=a.convertAttribs(b,j[Hb]);i[Vb]=a.convertAttribs(c[Vb],j[Vb],i[Hb]);i.select=a.convertAttribs(c.select,j.select,i[Hb])}else i=j;g.pointAttr=
i}},destroy:function(){var a=this,b=a.chart,c=/\/5[0-9\.]+ (Safari|Mobile)\//.test(Zc),d,e,f=a.data||[],g,h,j;La(a,"destroy");Tb(a);y(["xAxis","yAxis"],function(i){if(j=a[i]){Nc(j.series,a);j.isDirty=true}});a.legendItem&&a.chart.legend.destroyItem(a);for(e=f.length;e--;)(g=f[e])&&g.destroy&&g.destroy();a.points=null;y(["area","graph","dataLabelsGroup","group","tracker"],function(i){if(a[i]){d=c&&i==="group"?"hide":"destroy";a[i][d]()}});if(b.hoverSeries===a)b.hoverSeries=null;Nc(b.series,a);for(h in a)delete a[h]},
drawDataLabels:function(){if(this.options.dataLabels.enabled){var a,b,c=this.points,d=this.options,e=d.dataLabels,f,g=this.dataLabelsGroup,h=this.chart,j=h.renderer,i=h.inverted,k=this.type,m;m=d.stacking;var q=k==="column"||k==="bar",D=e.verticalAlign===null,C=e.y===null;if(q)if(m){if(D)e=X(e,{verticalAlign:"middle"});if(C)e=X(e,{y:{top:14,middle:4,bottom:-6}[e.verticalAlign]})}else if(D)e=X(e,{verticalAlign:"top"});if(g)g.translate(h.plotLeft,h.plotTop);else g=this.dataLabelsGroup=j.g("data-labels").attr({visibility:this.visible?
Rb:Lb,zIndex:6}).translate(h.plotLeft,h.plotTop).add();m=e.color;if(m==="auto")m=null;e.style.color=z(m,this.color,"black");y(c,function(E){var F=E.barX,B=F&&F+E.barW/2||E.plotX||-999,r=z(E.plotY,-999),t=E.dataLabel,p=e.align,x=C?E.y>0?-6:12:e.y;f=e.formatter.call(E.getLabelConfig());a=(i?h.plotWidth-r:B)+e.x;b=(i?h.plotHeight-B:r)+x;if(k==="column")a+={left:-1,right:1}[p]*E.barW/2||0;if(i&&E.y<0){p="right";a-=10}if(t){if(i&&!e.y)b=b+ca(t.styles.lineHeight)*0.9-t.getBBox().height/2;t.attr({text:f}).animate({x:a,
y:b})}else if(Q(f)){t=E.dataLabel=j.text(f,a,b).attr({align:p,rotation:e.rotation,zIndex:1}).css(e.style).add(g);i&&!e.y&&t.attr({y:b+ca(t.styles.lineHeight)*0.9-t.getBBox().height/2})}if(q&&d.stacking&&t){B=E.barY;r=E.barW;E=E.barH;t.align(e,null,{x:i?h.plotWidth-B-E:F,y:i?h.plotHeight-F-r:B,width:i?E:r,height:i?r:E})}})}},drawGraph:function(){var a=this,b=a.options,c=a.graph,d=[],e,f=a.area,g=a.group,h=b.lineColor||a.color,j=b.lineWidth,i=b.dashStyle,k,m=a.chart.renderer,q=a.yAxis.getThreshold(b.threshold),
D=/^area/.test(a.type),C=[],E=[];y(a.segments,function(F){k=[];y(F,function(p,x){if(a.getPointSpline)k.push.apply(k,a.getPointSpline(F,p,x));else{k.push(x?Ga:Ra);x&&b.step&&k.push(p.plotX,F[x-1].plotY);k.push(p.plotX,p.plotY)}});if(F.length>1)d=d.concat(k);else C.push(F[0]);if(D){var B=[],r,t=k.length;for(r=0;r<t;r++)B.push(k[r]);t===3&&B.push(Ga,k[1],k[2]);if(b.stacking&&a.type!=="areaspline")for(r=F.length-1;r>=0;r--)B.push(F[r].plotX,F[r].yBottom);else B.push(Ga,F[F.length-1].plotX,q,Ga,F[0].plotX,
q);E=E.concat(B)}});a.graphPath=d;a.singlePoints=C;if(D){e=z(b.fillColor,zc(a.color).setOpacity(b.fillOpacity||0.75).get());if(f)f.animate({d:E});else a.area=a.chart.renderer.path(E).attr({fill:e}).add(g)}if(c){gd(c);c.animate({d:d})}else if(j){c={stroke:h,"stroke-width":j};if(i)c.dashstyle=i;a.graph=m.path(d).attr(c).add(g).shadow(b.shadow)}},render:function(){var a=this,b=a.chart,c,d,e=a.options,f=e.clip!==false,g=e.animation,h=g&&a.animate;g=h?g&&g.duration||500:0;var j=a.clipRect,i=b.renderer;
if(!j){j=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:i.clipRect(0,0,b.plotSizeX,b.plotSizeY);if(!b.clipRect)b.clipRect=j}if(!a.group){c=a.group=i.g("series");if(b.inverted){d=function(){c.attr({width:b.plotWidth,height:b.plotHeight}).invert()};d();ua(b,"resize",d);ua(a,"destroy",function(){Tb(b,"resize",d)})}f&&c.clip(a.clipRect);c.attr({visibility:a.visible?Rb:Lb,zIndex:e.zIndex}).translate(a.xAxis.left,a.yAxis.top).add(b.seriesGroup)}a.drawDataLabels();h&&a.animate(true);a.getAttribs();a.drawGraph&&
a.drawGraph();a.drawPoints();a.options.enableMouseTracking!==false&&a.drawTracker();h&&a.animate();setTimeout(function(){j.isAnimating=false;if((c=a.group)&&j!==b.clipRect&&j.renderer){if(f)c.clip(a.clipRect=b.clipRect);j.destroy()}},g);a.isDirty=a.isDirtyData=false},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group;if(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(true);
this.render();b&&La(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=b.states;b=b.lineWidth;a=a||Hb;if(this.state!==a){this.state=a;if(!(d[a]&&d[a].enabled===false)){if(a)b=d[a].lineWidth||b+1;if(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,j=this.points,i=c.options.chart.ignoreHiddenSeries;h=this.visible;h=(this.visible=a=a===ma?!h:a)?"show":"hide";
e&&e[h]();if(f)f[h]();else if(j)for(e=j.length;e--;){f=j[e];f.tracker&&f.tracker[h]()}g&&g[h]();d&&c.legend.colorizeItem(this,a);this.isDirty=true;this.options.stacking&&y(c.series,function(k){if(k.options.stacking&&k.visible)k.isDirty=true});if(i)c.isDirtyBox=true;b!==false&&c.redraw();La(this,h)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(a){this.selected=a=a===ma?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;La(this,a?"select":"unselect")},
drawTracker:function(){var a=this,b=a.options,c=[].concat(a.graphPath),d=c.length,e=a.chart,f=e.options.tooltip.snap,g=a.tracker,h=b.cursor;h=h&&{cursor:h};var j=a.singlePoints,i;if(d)for(i=d+1;i--;){c[i]===Ra&&c.splice(i+1,0,c[i+1]-f,c[i+2],Ga);if(i&&c[i]===Ra||i===d)c.splice(i,0,Ga,c[i-2]+f,c[i-1])}for(i=0;i<j.length;i++){d=j[i];c.push(Ra,d.plotX-f,d.plotY,Ga,d.plotX+f,d.plotY)}if(g)g.attr({d:c});else a.tracker=e.renderer.path(c).attr({isTracker:true,stroke:Ae,fill:Ib,"stroke-width":b.lineWidth+
2*f,visibility:a.visible?Rb:Lb,zIndex:1}).on(Db?"touchstart":"mouseover",function(){e.hoverSeries!==a&&a.onMouseOver()}).on("mouseout",function(){b.stickyTracking||a.onMouseOut()}).css(h).add(e.trackerGroup)}};V=Bb(Ab);hb.line=V;V=Bb(Ab,{type:"area",useThreshold:true});hb.area=V;V=Bb(Ab,{type:"spline",getPointSpline:function(a,b,c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,j,i,k;if(c&&c<a.length-1){a=f.plotY;i=g.plotX;g=g.plotY;var m;h=(1.5*d+f.plotX)/2.5;j=(1.5*e+a)/2.5;i=(1.5*d+i)/2.5;k=(1.5*
e+g)/2.5;m=(k-j)*(i-d)/(i-h)+e-k;j+=m;k+=m;if(j>a&&j>e){j=ba(a,e);k=2*e-j}else if(j<a&&j<e){j=Fa(a,e);k=2*e-j}if(k>g&&k>e){k=ba(g,e);j=2*e-k}else if(k<g&&k<e){k=Fa(g,e);j=2*e-k}b.rightContX=i;b.rightContY=k}if(c){b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,j||e,d,e];f.rightContX=f.rightContY=null}else b=[Ra,d,e];return b}});hb.spline=V;V=Bb(V,{type:"areaspline",useThreshold:true});hb.areaspline=V;var Gd=Bb(Ab,{type:"column",useThreshold:true,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",
fill:"color",r:"borderRadius"},init:function(){Ab.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&y(b.series,function(c){if(c.type===a.type)c.isDirty=true})},translate:function(){var a=this,b=a.chart,c=a.options,d=c.stacking,e=c.borderWidth,f=0,g=a.xAxis,h=g.reversed,j={},i,k;Ab.prototype.translate.apply(a);y(b.series,function(p){if(p.type===a.type&&p.visible&&a.options.group===p.options.group){if(p.options.stacking){i=p.stackKey;if(j[i]===ma)j[i]=f++;k=j[i]}else k=f++;p.columnIndex=
k}});var m=a.points,q=z(a.pointRange,g.pointRange);g=kb(g.translate(0)-g.translate(q));q=g*c.groupPadding;var D=(g-2*q)/f,C=c.pointWidth,E=Q(C)?(D-C)/2:D*c.pointPadding,F=Ad(ba(z(C,D-2*E),1)),B=E+(q+((h?f-a.columnIndex:a.columnIndex)||0)*D-g/2)*(h?-1:1),r=a.yAxis.getThreshold(c.threshold),t=z(c.minPointLength,5);y(m,function(p){var x=p.plotY,Y=p.yBottom||r,A=p.plotX+B,N=Ad(Fa(x,Y)),va=Ad(ba(x,Y)-N),Pa=a.yAxis.stacks[(p.y<0?"-":"")+a.stackKey],Ja;d&&a.visible&&Pa&&Pa[p.x]&&Pa[p.x].setOffset(B,F);if(kb(va)<
t){if(t){va=t;N=kb(N-r)>t?Y-t:r-(x<=r?t:0)}Ja=N-3}aa(p,{barX:A,barY:N,barW:F,barH:va});p.shapeType="rect";x=aa(b.renderer.Element.prototype.crisp.apply({},[e,A,N,F,va]),{r:c.borderRadius});if(e%2){x.y-=1;x.height+=1}p.shapeArgs=x;p.trackerArgs=Q(Ja)&&X(p.shapeArgs,{height:ba(6,va+3),y:Ja})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;y(a.points,function(f){var g=f.plotY;if(g!==ma&&!isNaN(g)&&f.y!==null){d=f.graphic;e=f.shapeArgs;
if(d){gd(d);d.animate(e)}else f.graphic=d=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":Hb]).add(a.group).shadow(b.shadow)}})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options.cursor,h=g&&{cursor:g},j;y(a.points,function(i){e=i.tracker;d=i.trackerArgs||i.shapeArgs;delete d.strokeWidth;if(i.y!==null)if(e)e.attr(d);else i.tracker=c[i.shapeType](d).attr({isTracker:f,fill:Ae,visibility:a.visible?Rb:Lb,zIndex:1}).on(Db?"touchstart":"mouseover",function(k){j=
k.relatedTarget||k.fromElement;b.hoverSeries!==a&&Ma(j,"isTracker")!==f&&a.onMouseOver();i.onMouseOver()}).on("mouseout",function(k){if(!a.options.stickyTracking){j=k.relatedTarget||k.toElement;Ma(j,"isTracker")!==f&&a.onMouseOut()}}).css(h).add(i.group||b.trackerGroup)})},animate:function(a){var b=this,c=b.points;if(!a){y(c,function(d){var e=d.graphic;d=d.shapeArgs;if(e){e.attr({height:0,y:b.yAxis.translate(0,0,1)});e.animate({height:d.height,y:d.y},b.options.animation)}});b.animate=null}},remove:function(){var a=
this,b=a.chart;b.hasRendered&&y(b.series,function(c){if(c.type===a.type)c.isDirty=true});Ab.prototype.remove.apply(a,arguments)}});hb.column=Gd;V=Bb(Gd,{type:"bar",init:function(){this.inverted=true;Gd.prototype.init.apply(this,arguments)}});hb.bar=V;V=Bb(Ab,{type:"scatter",translate:function(){var a=this;Ab.prototype.translate.apply(a);y(a.points,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){var a=this,b=a.options.cursor,
c=b&&{cursor:b},d;y(a.points,function(e){(d=e.graphic)&&d.attr({isTracker:true}).on("mouseover",function(){a.onMouseOver();e.onMouseOver()}).on("mouseout",function(){a.options.stickyTracking||a.onMouseOut()}).css(c)})}});hb.scatter=V;V=Bb(Ac,{init:function(){Ac.prototype.init.apply(this,arguments);var a=this,b;aa(a,{visible:a.visible!==false,name:z(a.name,"Slice")});b=function(){a.slice()};ua(a,"select",b);ua(a,"unselect",b);return a},setVisible:function(a){var b=this.series.chart,c=this.tracker,
d=this.dataLabel,e=this.connector,f=this.shadowGroup,g;g=(this.visible=a=a===ma?!this.visible:a)?"show":"hide";this.group[g]();c&&c[g]();d&&d[g]();e&&e[g]();f&&f[g]();this.legendItem&&b.legend.colorizeItem(this,a)},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;Pc(c,d);z(b,true);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)}});V=Bb(Ab,{type:"pie",isCartesian:false,
pointClass:V,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this;y(a.points,function(b){var c=b.graphic;b=b.shapeArgs;var d=-Mc/2;if(c){c.attr({r:0,start:d,end:d});c.animate({r:b.r,start:b.start,end:b.end},a.options.animation)}});a.animate=null},setData:function(){Ab.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()},translate:function(){var a=
0,b=-0.25,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f=c.center.concat([c.size,c.innerSize||0]),g=this.chart,h=g.plotWidth,j=g.plotHeight,i,k,m,q=this.points,D=2*Mc,C,E=Fa(h,j),F,B,r,t=c.dataLabels.distance;f=$c(f,function(p,x){return(F=/%$/.test(p))?[h,j,E,E][x]*ca(p)/100:p});this.getX=function(p,x){m=pa.asin((p-f[1])/(f[2]/2+t));return f[0]+(x?-1:1)*Mb(m)*(f[2]/2+t)};this.center=f;y(q,function(p){a+=p.y});y(q,function(p){C=a?p.y/a:0;i=O(b*D*1E3)/1E3;b+=C;k=O(b*D*1E3)/1E3;p.shapeType="arc";
p.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:i,end:k};m=(k+i)/2;p.slicedTranslation=$c([Mb(m)*d+g.plotLeft,Yb(m)*d+g.plotTop],O);B=Mb(m)*f[2]/2;r=Yb(m)*f[2]/2;p.tooltipPos=[f[0]+B*0.7,f[1]+r*0.7];p.labelPos=[f[0]+B+Mb(m)*t,f[1]+r+Yb(m)*t,f[0]+B+Mb(m)*e,f[1]+r+Yb(m)*e,f[0]+B,f[1]+r,t<0?"center":m<D/4?"left":"right",m];p.percentage=C*100;p.total=a});this.setTooltipPoints()},render:function(){this.getAttribs();this.drawPoints();this.options.enableMouseTracking!==false&&this.drawTracker();
this.drawDataLabels();this.options.animation&&this.animate&&this.animate();this.isDirty=false},drawPoints:function(){var a=this.chart,b=a.renderer,c,d,e,f=this.options.shadow,g,h;y(this.points,function(j){d=j.graphic;h=j.shapeArgs;e=j.group;g=j.shadowGroup;if(f&&!g)g=j.shadowGroup=b.g("shadow").attr({zIndex:4}).add();if(!e)e=j.group=b.g("point").attr({zIndex:5}).add();c=j.sliced?j.slicedTranslation:[a.plotLeft,a.plotTop];e.translate(c[0],c[1]);g&&g.translate(c[0],c[1]);if(d)d.animate(h);else j.graphic=
b.arc(h).attr(aa(j.pointAttr[Hb],{"stroke-linejoin":"round"})).add(j.group).shadow(f,g);j.visible===false&&j.setVisible(false)})},drawDataLabels:function(){var a=this.data,b,c=this.chart,d=this.options.dataLabels,e=z(d.connectorPadding,10),f=z(d.connectorWidth,1),g,h,j=z(d.softConnector,true),i=d.distance,k=this.center,m=k[2]/2;k=k[1];var q=i>0,D=[[],[]],C,E,F,B,r=2,t;if(d.enabled){Ab.prototype.drawDataLabels.apply(this);y(a,function(va){if(va.dataLabel)D[va.labelPos[7]<Mc/2?0:1].push(va)});D[1].reverse();
B=function(va,Pa){return Pa.y-va.y};for(a=D[0][0]&&D[0][0].dataLabel&&ca(D[0][0].dataLabel.styles.lineHeight);r--;){var p=[],x=[],Y=D[r],A=Y.length,N;for(t=k-m-i;t<=k+m+i;t+=a)p.push(t);F=p.length;if(A>F){h=[].concat(Y);h.sort(B);for(t=A;t--;)h[t].rank=t;for(t=A;t--;)Y[t].rank>=F&&Y.splice(t,1);A=Y.length}for(t=0;t<A;t++){b=Y[t];h=b.labelPos;b=9999;for(E=0;E<F;E++){g=kb(p[E]-h[1]);if(g<b){b=g;N=E}}if(N<t&&p[t]!==null)N=t;else{if(F<A-t+N&&p[t]!==null)N=F-A+t;for(;p[N]===null;)N++}x.push({i:N,y:p[N]});
p[N]=null}x.sort(B);for(t=0;t<A;t++){b=Y[t];h=b.labelPos;g=b.dataLabel;E=x.pop();C=h[1];F=b.visible===false?Lb:Rb;N=E.i;E=E.y;if(C>E&&p[N+1]!==null||C<E&&p[N-1]!==null)E=C;C=this.getX(N===0||N===p.length-1?C:E,r);g.attr({visibility:F,align:h[6]})[g.moved?"animate":"attr"]({x:C+d.x+({left:e,right:-e}[h[6]]||0),y:E+d.y});g.moved=true;if(q&&f){g=b.connector;h=j?[Ra,C+(h[6]==="left"?5:-5),E,"C",C,E,2*h[2]-h[4],2*h[3]-h[5],h[2],h[3],Ga,h[4],h[5]]:[Ra,C+(h[6]==="left"?5:-5),E,Ga,h[2],h[3],Ga,h[4],h[5]];
if(g){g.animate({d:h});g.attr("visibility",F)}else b.connector=g=this.chart.renderer.path(h).attr({"stroke-width":f,stroke:d.connectorColor||b.color||"#606060",visibility:F,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}}},drawTracker:Gd.prototype.drawTracker,getSymbol:function(){}});hb.pie=V;V=Ab.prototype;var Ne=V.processData,Oe=V.generatePoints,Pe=V.destroy,Qe=V.tooltipHeaderFormatter,ad={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=
a.length;a=ad.sum(a);if(typeof a==="number"&&b)a/=b;return a},open:function(a){return a.length?a[0]:a.hasNulls?null:ma},high:function(a){return a.length?ba.apply(0,a):a.hasNulls?null:ma},low:function(a){return a.length?Fa.apply(0,a):a.hasNulls?null:ma},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:ma},ohlc:function(a,b,c,d){a=ad.open(a);b=ad.high(b);c=ad.low(c);d=ad.close(d);if(typeof a==="number"||typeof b==="number"||typeof c==="number"||typeof d==="number")return[a,b,c,d]}};V.groupData=
function(a,b,c,d){var e=this.data,f=this.options.data,g=[],h=[],j=a.length,i,k;k=[];var m=[],q=[],D=[],C;for(C=0;C<=j;C++){for(;c[1]!==ma&&a[C]>=c[1]||C===j;){i=c.shift();k=typeof d==="function"?d(k,m,q,D):ad[d](k,m,q,D);if(k!==ma){g.push(i);h.push(k)}k=[];m=[];q=[];D=[];if(C===j)break}if(C===j)break;i=b[C];if(d==="ohlc"){i=this.cropStart+C;var E=e&&e[i]||this.pointClass.prototype.applyOptions.apply({},[f[i]]);i=E.open;var F=E.high,B=E.low;E=E.close;if(typeof i==="number")k.push(i);else if(i===null)k.hasNulls=
true;if(typeof F==="number")m.push(F);else if(F===null)m.hasNulls=true;if(typeof B==="number")q.push(B);else if(B===null)q.hasNulls=true;if(typeof E==="number")D.push(E);else if(E===null)D.hasNulls=true}else if(typeof i==="number")k.push(i);else if(i===null)k.hasNulls=true}return[g,h]};V.processData=function(){var a=this.options,b=a.dataGrouping,c=b&&b.enabled;this.forceCrop=c;Ne.apply(this);if(c){c=this.chart;var d=this.processedXData,e=this.processedYData,f=c.plotSizeX,g=this.xAxis,h=z(g.groupPixelWidth,
b.groupPixelWidth),j=f/h,i=d.length,k=this.groupedData,m=c.series;if(!g.groupPixelWidth){for(c=m.length;c--;)if(m[c].xAxis===g&&m[c].options.dataGrouping)h=ba(h,m[c].options.dataGrouping.groupPixelWidth);g.groupPixelWidth=h}y(k||[],function(q,D){if(q)k[D]=q.destroy?q.destroy():null});if(i>j||b.forced){this.hasGroupedData=true;this.points=null;g=d[0];i=d[i-1];f=h*(i-g)/f;h=de(f,g,i,null,b.units);c=this.groupData(d,e,h,b.approximation);d=c[0];e=c[1];if(b.smoothed){c=d.length-1;for(d[c]=i;c--&&c>0;)d[c]+=
f/2;d[0]=g}this.currentDataGrouping=h.info;if(a.pointRange===null)this.pointRange=h.info.totalRange;this.processedXData=d;this.processedYData=e}else{this.currentDataGrouping=null;this.pointRange=a.pointRange}}};V.generatePoints=function(){Oe.apply(this);this.groupedData=this.hasGroupedData?this.points:null};V.tooltipHeaderFormatter=function(a){var b=this.tooltipOptions,c=this.options.dataGrouping,d=b.xDateFormat,e,f=this.xAxis,g,h;if(f.options.type==="datetime"&&c){g=this.currentDataGrouping;c=c.dateTimeLabelFormats;
if(g){f=c[g.unitName];if(g.count===1)d=f[0];else{d=f[1];e=f[2]}}else if(!d)for(h in Qa)if(Qa[h]>=f.closestPointRange){d=c[h][0];break}d=wc(d,a);if(e)d+=wc(e,a+g.totalRange-1);a=b.headerFormat.replace("{point.key}",d)}else a=Qe.apply(this,[a]);return a};V.destroy=function(){for(var a=this.groupedData||[],b=a.length;b--;)a[b]&&a[b].destroy();Pe.apply(this)};eb={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:Ob(bd,["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],Oc,
["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],Cc,["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],Dc,["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],Zb,["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],qc,["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],rc,["%B %Y","%B","-%B %Y"],ic,["%Y","%Y","-%Y"]),units:[[bd,[1,2,5,10,20,25,50,100,200,500]],[Oc,[1,2,5,10,15,30]],[Cc,[1,2,5,10,15,30]],[Dc,[1,2,3,4,6,8,12]],[Zb,[1]],[qc,[1]],[rc,[1,3,6]],[ic,null]]};Va.line.dataGrouping=Va.spline.dataGrouping=
Va.area.dataGrouping=Va.areaspline.dataGrouping=eb;Va.column.dataGrouping=X(eb,{approximation:"sum",groupPixelWidth:10});Va.ohlc=X(Va.column,{lineWidth:1,dataGrouping:{approximation:"ohlc",enabled:true,groupPixelWidth:5},states:{hover:{lineWidth:3}}});eb=Bb(Ac,{applyOptions:function(a){var b=this.series,c=0;if(typeof a==="object"&&typeof a.length!=="number"){aa(this,a);this.options=a}else if(a.length){if(a.length===5){if(typeof a[0]==="string")this.name=a[0];else if(typeof a[0]==="number")this.x=
a[0];c++}this.open=a[c++];this.high=a[c++];this.low=a[c++];this.close=a[c++]}this.y=this.high;if(this.x===ma&&b)this.x=b.autoIncrement();return this},tooltipFormatter:function(){var a=this.series;return['<span style="color:'+a.color+';font-weight:bold">',this.name||a.name,"</span><br/>Open: ",this.open,"<br/>High: ",this.high,"<br/>Low: ",this.low,"<br/>Close: ",this.close,"<br/>"].join("")}});var Zd=Bb(hb.column,{type:"ohlc",valueCount:4,pointClass:eb,useThreshold:false,pointAttrToOptions:{stroke:"color",
"stroke-width":"lineWidth"},translate:function(){var a=this.yAxis;hb.column.prototype.translate.apply(this);y(this.points,function(b){if(b.open!==null)b.plotOpen=a.translate(b.open,0,1);if(b.close!==null)b.plotClose=a.translate(b.close,0,1)})},drawPoints:function(){var a=this,b=a.chart,c,d,e,f,g,h,j,i;y(a.points,function(k){if(k.plotY!==ma){j=k.graphic;c=k.pointAttr[k.selected?"selected":""];f=c["stroke-width"]%2/2;i=O(k.plotX)+f;g=O(k.barW/2);h=["M",i,O(k.yBottom),"L",i,O(k.plotY)];if(k.open!==null){d=
O(k.plotOpen)+f;h.push("M",i,d,"L",i-g,d)}if(k.close!==null){e=O(k.plotClose)+f;h.push("M",i,e,"L",i+g,e)}if(j)j.animate({d:h});else k.graphic=b.renderer.path(h).attr(c).add(a.group)}})},animate:null});hb.ohlc=Zd;Va.candlestick=X(Va.column,{dataGrouping:{approximation:"ohlc",enabled:true},lineColor:"black",lineWidth:1,upColor:"white",states:{hover:{lineWidth:2}}});eb=Bb(Zd,{type:"candlestick",pointAttrToOptions:{fill:"color",stroke:"lineColor","stroke-width":"lineWidth"},getAttribs:function(){Zd.prototype.getAttribs.apply(this,
arguments);var a=this.options,b=a.states;a=a.upColor;var c=X(this.pointAttr);c[""].fill=a;c.hover.fill=b.hover.upColor||a;c.select.fill=b.select.upColor||a;y(this.points,function(d){if(d.open<d.close)d.pointAttr=c})},drawPoints:function(){var a=this,b=a.chart,c,d,e,f,g,h,j,i,k,m;y(a.points,function(q){i=q.graphic;if(q.plotY!==ma){c=q.pointAttr[q.selected?"selected":""];h=c["stroke-width"]%2/2;j=O(q.plotX)+h;d=O(q.plotOpen)+h;e=O(q.plotClose)+h;f=pa.min(d,e);g=pa.max(d,e);m=O(q.barW/2);k=["M",j-m,
g,"L",j-m,f,"L",j+m,f,"L",j+m,g,"L",j-m,g,"M",j,g,"L",j,O(q.yBottom),"M",j,f,"L",j,O(q.plotY),"Z"];if(i)i.animate({d:k});else q.graphic=b.renderer.path(k).attr(c).add(a.group)}})}});hb.candlestick=eb;var $d=hd.prototype.symbols;Va.flags=X(Va.column,{fillColor:"white",lineWidth:1,shape:"flag",stackDistance:7,states:{hover:{lineColor:"black",fillColor:"#FCFFC5"}},style:{fontSize:"11px",fontWeight:"bold",textAlign:"center"},y:-30});hb.flags=Bb(hb.column,{type:"flags",noSharedTooltip:true,useThreshold:false,
init:Ab.prototype.init,pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth",r:"radius"},translate:function(){hb.column.prototype.translate.apply(this);var a=this.chart,b=this.points,c=b.length-1,d,e,f,g=(d=this.options.onSeries)&&a.get(d),h,j;if(g){h=g.points;d=h.length;for(b.sort(function(i,k){return i.x-k.x});d--&&b[c];){e=b[c];j=h[d];if(j.x<=e.x){e.plotY=j.plotY;c--;d++;if(c<0)break}}}y(b,function(i,k){if(!g)i.plotY=i.y===ma?a.plotHeight:i.plotY;if((f=b[k-1])&&f.plotX===
i.plotX){if(f.stackIndex===ma)f.stackIndex=0;i.stackIndex=f.stackIndex+1}})},drawPoints:function(){var a,b=this.points,c=this.chart.renderer,d,e,f=this.options,g=f.y,h=f.shape,j,i,k,m,q=f.lineWidth%2/2,D;for(i=b.length;i--;){k=b[i];d=k.plotX+q;a=k.stackIndex;e=k.plotY+g+q-(a!==ma&&a*f.stackDistance);if(isNaN(e))e=0;j=a?ma:k.plotX+q;D=a?ma:k.plotY;m=k.graphic;if(e!==ma){a=k.pointAttr[k.selected?"select":""];if(m)m.attr({x:d,y:e,r:a.r,anchorX:j,anchorY:D});else m=k.graphic=c.label(k.options.title||
f.title||"A",d,e,h,j,D).css(X(f.style,k.style)).attr(a).attr({align:h==="flag"?"left":"center",width:f.width,height:f.height}).add(this.group).shadow(f.shadow);j=m.box;a=j.getBBox();k.shapeArgs=aa(a,{x:d-(h==="flag"?0:j.attr("width")/2),y:e})}}},drawTracker:function(){hb.column.prototype.drawTracker.apply(this);y(this.points,function(a){ua(a.tracker.element,"mouseover",function(){a.graphic.toFront()})})},tooltipFormatter:function(a){return a.point.text},animate:function(){}});$d.flag=function(a,b,
c,d,e){var f=e&&e.anchorX||a;e=e&&e.anchorY||b;return["M",f,e,"L",a,b+d,a,b,a+c,b,a+c,b+d,a,b+d,"M",f,e,"Z"]};y(["circle","square"],function(a){$d[a+"pin"]=function(b,c,d,e,f){var g=f&&f.anchorX;f=f&&f.anchorY;b=$d[a](b,c,d,e);g&&f&&b.push("M",g,c+e,"L",g,f);return b}});var Be=Db?"touchstart":"mousedown",Re=Db?"touchmove":"mousemove",Se=Db?"touchend":"mouseup";eb=Ob("linearGradient",{x1:0,y1:0,x2:0,y2:1},"stops",[[0,"#FFF"],[1,"#CCC"]]);var ae=[].concat(Va.line.dataGrouping.units);ae[4]=[Zb,[1,2,
3,4]];ae[5]=[qc,[1,2,3]];aa(Wa,{navigator:{handles:{backgroundColor:"#FFF",borderColor:"#666"},height:40,margin:10,maskFill:"rgba(255, 255, 255, 0.75)",outlineColor:"#444",outlineWidth:1,series:{type:"areaspline",color:"#4572A7",compare:null,fillOpacity:0.4,dataGrouping:{approximation:"average",smoothed:true,units:ae},dataLabels:{enabled:false},lineWidth:1,marker:{enabled:false},pointRange:0,shadow:false},xAxis:{tickWidth:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",x:3,
y:-4}},yAxis:{gridLineWidth:0,startOnTick:false,endOnTick:false,minPadding:0.1,maxPadding:0.1,labels:{enabled:false},title:{text:null},tickWidth:0}},scrollbar:{height:Db?20:14,barBackgroundColor:eb,barBorderRadius:2,barBorderWidth:1,barBorderColor:"#666",buttonArrowColor:"#666",buttonBackgroundColor:eb,buttonBorderColor:"#666",buttonBorderRadius:2,buttonBorderWidth:1,rifleColor:"#666",trackBackgroundColor:Ob("linearGradient",{x1:0,y1:0,x2:0,y2:1},"stops",[[0,"#EEE"],[1,"#FFF"]]),trackBorderColor:"#CCC",
trackBorderWidth:1}});Highcharts.Scroller=function(a){function b(T,o){var gb={fill:Pa.backgroundColor,stroke:Pa.borderColor,"stroke-width":1};if(!wa){Xa[o]=f.g().css({cursor:"e-resize"}).attr({zIndex:3}).add();f.rect(-4.5,0,9,16,3,1).attr(gb).add(Xa[o]);f.path(["M",-1.5,4,"L",-1.5,12,"M",0.5,4,"L",0.5,12]).attr(gb).add(Xa[o])}Xa[o].translate(Ua+ea+parseInt(T,10),vb+Ja/2-8)}function c(T){if(!wa){yc[T]=f.g().add(cc);f.rect(-0.5,-0.5,ea+1,ea+1,q.buttonBorderRadius,q.buttonBorderWidth).attr({stroke:q.buttonBorderColor,
"stroke-width":q.buttonBorderWidth,fill:q.buttonBackgroundColor}).add(yc[T]);f.path(["M",ea/2+(T?-1:1),ea/2-3,"L",ea/2+(T?-1:1),ea/2+3,ea/2+(T?2:-2),ea/2]).attr({fill:q.buttonArrowColor}).add(yc[T])}T&&yc[T].attr({translateX:ub-ea})}function d(T,o,gb,Gb){if(!isNaN(T)){var Sa=q.barBorderWidth;sb=vb+ga;i=z(p.left,a.plotLeft+ea);k=z(p.len,a.plotWidth-2*ea);Ua=i-ea;ub=k+2*ea;if(p.getExtremes){var yb=a.xAxis[0].getExtremes(),zb=yb.dataMin===null,ob=p.getExtremes(),Eb=Fa(yb.dataMin,ob.dataMin);yb=ba(yb.dataMax,
ob.dataMax);if(!zb&&(Eb!==ob.min||yb!==ob.max))p.setExtremes(Eb,yb,true,false)}gb=z(gb,p.translate(T));Gb=z(Gb,p.translate(o));x=ca(Fa(gb,Gb));Y=ca(ba(gb,Gb));A=Y-x;if(!wa){if(j){Kc=f.rect().attr({fill:h.maskFill,zIndex:3}).add();xc=f.rect().attr({fill:h.maskFill,zIndex:3}).add();Za=f.path().attr({"stroke-width":Ub,stroke:h.outlineColor,zIndex:3}).add()}if(D){cc=f.g().add();T=q.trackBorderWidth;Jc=f.rect().attr({y:-T%2/2,fill:q.trackBackgroundColor,stroke:q.trackBorderColor,"stroke-width":T,r:q.trackBorderRadius||
0,height:ea}).add(cc);Lc=f.rect().attr({y:-Sa%2/2,height:ea,fill:q.barBackgroundColor,stroke:q.barBorderColor,"stroke-width":Sa,rx:ec,ry:ec}).add(cc);Yc=f.path().attr({stroke:q.rifleColor,"stroke-width":1}).add(cc)}}if(j){Kc.attr({x:i,y:vb,width:x,height:Ja});xc.attr({x:i+Y,y:vb,width:k-Y,height:Ja});Za.attr({d:[Ra,Ua,sb,Ga,i+x+ga,sb,i+x+ga,sb+ka-ea,Ra,i+Y-ga,sb+ka-ea,Ga,i+Y-ga,sb,Ua+ub,sb]});b(x+ga,0);b(Y+ga,1)}if(D){c(0);c(1);cc.translate(Ua,O(sb+Ja));Jc.attr({width:ub});Lc.attr({x:O(ea+x)+Sa%2/
2,width:A-Sa});Sa=ea+x+A/2-0.5;Yc.attr({d:[Ra,Sa-3,ea/4,Ga,Sa-3,2*ea/3,Ra,Sa,ea/4,Ga,Sa,2*ea/3,Ra,Sa+3,ea/4,Ga,Sa+3,2*ea/3],visibility:A>12?Rb:Lb})}wa=true}}function e(){ua(a.container,Be,function(T){T=a.tracker.normalizeMouseEvent(T);var o=T.chartX,gb=T.chartY,Gb=Db?10:7;if(gb>vb&&gb<vb+Ja+ea)if((gb=!D||gb<vb+Ja)&&pa.abs(o-x-i)<Gb){C=true;B=Y}else if(gb&&pa.abs(o-Y-i)<Gb){E=true;B=x}else if(o>i+x&&o<i+Y){F=o;va=N.cursor;N.cursor="ew-resize";r=o-x}else if(o>Ua&&o<Ua+ub){o=gb?o-i-A/2:o<i?x-Fa(10,A):
o>Ua+ub-ea?x+Fa(10,A):o<i+x?x-A:Y;if(o<0)o=0;else if(o+A>k)o=k-A;o!==x&&a.xAxis[0].setExtremes(p.translate(o,true),p.translate(o+A,true),true,false)}T.preventDefault&&T.preventDefault()});ua(a.container,Re,function(T){T=a.tracker.normalizeMouseEvent(T);T=T.chartX;if(T<i)T=i;else if(T>Ua+ub-ea)T=Ua+ub-ea;if(C){t=true;d(0,0,T-i,B)}else if(E){t=true;d(0,0,B,T-i)}else if(F){t=true;if(T<r)T=r;else if(T>k+r-A)T=k+r-A;d(0,0,T-r,T-r+A)}});ua(document,Se,function(){t&&a.xAxis[0].setExtremes(p.translate(x,
true),p.translate(Y,true),true,false);C=E=F=t=r=null;N.cursor=va})}var f=a.renderer,g=a.options,h=g.navigator,j=h.enabled,i,k,m,q=g.scrollbar,D=q.enabled,C,E,F,B,r,t,p,x,Y,A,N=document.body.style,va,Pa=h.handles,Ja=j?h.height:0,Ub=h.outlineWidth,ea=D?q.height:0,ka=Ja+ea,ec=q.barBorderRadius,vb=h.top||a.chartHeight-Ja-ea-g.chart.spacingBottom,ga=Ub/2,sb,Ua,ub,wa;g=h.baseSeries;var Wb=a.series[g]||typeof g==="string"&&a.get(g)||a.series[0],Kc,xc,Za,Xa=[],cc,Jc,Lc,Yc,yc=[];a.resetZoomEnabled=false;(function(){var T=
a.xAxis.length,o=a.yAxis.length;a.extraBottomMargin=ka+h.margin;if(j){var gb=Wb.options,Gb=gb.data,Sa=h.series,yb=Sa.data;gb.data=Sa.data=null;p=new a.Axis(X(h.xAxis,{isX:true,type:"datetime",index:T,height:Ja,top:vb,offset:0,offsetLeft:ea,offsetRight:-ea,startOnTick:false,endOnTick:false,minPadding:0,maxPadding:0,zoomEnabled:false}));new a.Axis(X(h.yAxis,{alignTicks:false,height:Ja,top:vb,offset:0,index:o,zoomEnabled:false}));T=X(Wb.options,Sa,{threshold:null,clip:false,enableMouseTracking:false,
group:"nav",padXAxis:false,xAxis:T,yAxis:o,name:"Navigator",showInLegend:false,isInternal:true});gb.data=Gb;Sa.data=yb;T.data=yb||Gb;m=a.initSeries(T);ua(Wb,"updatedData",function(){var zb=Wb.xAxis.getExtremes(),ob=zb.min,Eb=zb.max,nc=zb.dataMin;zb=zb.dataMax;var Ea=Eb-ob,Ka,dc,mc,lc,Wc,Xb=Wb.xAxis,hc=!!Xb.setExtremes;dc=Eb>=m.xData[m.xData.length-1];Ka=ob-Ea<=m.xData[0];if(!yb){m.options.pointStart=Wb.xData[0];m.setData(Wb.options.data,false);Wc=true}if(Ka){lc=nc;mc=lc+Ea}if(dc){mc=zb;Ka||(lc=ba(mc-
Ea,m.xData[0]))}if(hc&&(Ka||dc))Xb.setExtremes(lc,mc,true,false);else{Wc&&a.redraw(false);d(ba(ob,nc),Fa(Eb,zb))}})}else p={translate:function(zb,ob){var Eb=Wb.xAxis.getExtremes(),nc=a.plotWidth-2*ea,Ea=Eb.dataMin;Eb=Eb.dataMax-Ea;return ob?zb*Eb/nc+Ea:nc*(zb-Ea)/Eb}};e()})();return{render:d}};aa(Wa,{rangeSelector:{buttonTheme:{width:28,height:16,padding:1,r:0,zIndex:10}}});Wa.lang=X(Wa.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From:",rangeSelectorTo:"To:"});Highcharts.RangeSelector=function(a){function b(F,
B,r){var t=a.xAxis[0],p=t&&t.getExtremes(),x,Y=p&&p.dataMin,A=p&&p.dataMax,N,va=t&&Fa(p.max,A);p=new Date(va);x=B.type;B=B.count;var Pa,Ja,Ub={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(!(Y===null||A===null||F===m)){if(Ub[x]){Pa=Ub[x]*B;N=ba(va-Pa,Y)}else if(x==="month"){p.setMonth(p.getMonth()-B);N=ba(p.getTime(),Y);Pa=2592E6*B}else if(x==="ytd"){p=new Date(0);x=new Date;Ja=x.getFullYear();p.setFullYear(Ja);String(Ja)!==wc("%Y",p)&&p.setFullYear(Ja-1);N=Ja=ba(Y||0,p.getTime());
x=x.getTime();va=Fa(A||x,x)}else if(x==="year"){p.setFullYear(p.getFullYear()-B);N=ba(Y,p.getTime());Pa=31536E6*B}else if(x==="all"&&t){N=Y;va=A}q[F]&&q[F].setState(2);if(t)setTimeout(function(){t.setExtremes(N,va,z(r,1),0);m=F},1);else{Y=a.options.xAxis;Y[0]=X(Y[0],{range:Pa,min:Ja});m=F}}}function c(F,B){var r=F.hasFocus?C.inputEditDateFormat||"%Y-%m-%d":C.inputDateFormat||"%b %e, %Y";if(B)F.HCTime=B;F.value=wc(r,F.HCTime)}function d(F){var B=F==="min",r;pb("span",{innerHTML:h[B?"rangeSelectorFrom":
"rangeSelectorTo"]},C.labelStyle,j);r=pb("input",{name:F,className:gc+"range-selector",type:"text"},aa({width:"80px",height:"16px",border:"1px solid silver",marginLeft:"5px",marginRight:B?"5px":"0",textAlign:"center"},C.inputStyle),j);r.onfocus=r.onblur=function(t){t=t||window.event;r.hasFocus=t.type==="focus";c(r)};r.onchange=function(){var t=r.value,p=Date.parse(t),x=a.xAxis[0].getExtremes();if(isNaN(p)){p=t.split("-");p=Date.UTC(ca(p[0]),ca(p[1])-1,ca(p[2]))}if(!isNaN(p)&&(B&&p>x.dataMin&&p<k.HCTime||
!B&&p<x.dataMax&&p>i.HCTime))a.xAxis[0].setExtremes(B?p:x.min,B?x.max:p)};return r}var e=a.renderer,f,g=a.container,h=Wa.lang,j,i,k,m,q=[],D,C,E=[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}];a.resetZoomEnabled=false;(function(){a.extraTopMargin=25;C=a.options.rangeSelector;D=C.buttons||E;var F=C.selected;ua(g,Be,function(){i&&i.blur();k&&k.blur()});F!==ma&&D[F]&&b(F,
D[F],false);ua(a,"load",function(){ua(a.xAxis[0],"afterSetExtremes",function(){q[m]&&q[m].setState(0);m=null})})})();return{render:function(F,B){var r=a.options.chart.style,t=C.buttonTheme,p=C.inputEnabled!==false,x=t&&t.states,Y=a.plotLeft,A,N;if(!f){N=e.text(h.rangeSelectorZoom,Y,a.plotTop-10).css(C.labelStyle).add();A=Y+N.getBBox().width+5;y(D,function(va,Pa){q[Pa]=e.button(va.text,A,a.plotTop-25,function(){b(Pa,va);this.isActive=true},t,x&&x.hover,x&&x.select).css({textAlign:"center"}).add();
A+=q[Pa].width+(C.buttonSpacing||0);m===Pa&&q[Pa].setState(2)});if(p){j=pb("div",null,{position:"relative",height:0,fontFamily:r.fontFamily,fontSize:r.fontSize,zIndex:1});g.parentNode.insertBefore(j,g);j=pb("div",null,aa({position:"absolute",top:a.plotTop-25+"px",right:a.chartWidth-a.plotLeft-a.plotWidth+"px"},C.inputBoxStyle),j);i=d("min");k=d("max")}}if(p){c(i,F);c(k,B)}f=true}}};vd.prototype.callbacks.push(function(a){function b(){d=a.xAxis[0].getExtremes();e.render(ba(d.min,d.dataMin),Fa(d.max,
d.dataMax))}function c(){d=a.xAxis[0].getExtremes();f.render(d.min,d.max)}var d,e=a.scroller,f=a.rangeSelector;if(e){ua(a.xAxis[0],"afterSetExtremes",function(g){e.render(g.min,g.max)});ua(a,"resize",b);b()}if(f){ua(a.xAxis[0],"afterSetExtremes",function(g){f.render(g.min,g.max)});ua(a,"resize",c);c()}});Highcharts.StockChart=function(a,b){var c=a.series,d={marker:{enabled:false,states:{hover:{enabled:true,radius:5}}},shadow:false,states:{hover:{lineWidth:2}},dataGrouping:{enabled:true}};a.xAxis=
$c(pc(a.xAxis||{}),function(e){return X({minPadding:0,maxPadding:0,title:{text:null},showLastLabel:true},e,{type:"datetime",categories:null})});a.yAxis=$c(pc(a.yAxis||{}),function(e){return X({labels:{align:"left",x:2,y:-2},showLastLabel:false,title:{text:null}},e)});a.series=null;a=X({chart:{panning:true},navigator:{enabled:true},scrollbar:{enabled:true},rangeSelector:{enabled:true},title:{text:null},tooltip:{shared:true,crosshairs:true},legend:{enabled:false},plotOptions:{line:d,spline:d,area:d,
areaspline:d,column:{shadow:false,borderWidth:0,dataGrouping:{enabled:true}}}},a,{chart:{inverted:false}});a.series=c;return new vd(a,b)};var Te=V.init,Ue=V.processData,Ve=Ac.prototype.tooltipFormatter;V.init=function(){Te.apply(this,arguments);var a=this.options.compare;if(a)this.modifyValue=function(b,c){var d=this.compareValue;b=a==="value"?b-d:b=100*(b/d)-100;if(c)c.change=b;return b}};V.processData=function(){Ue.apply(this);if(this.options.compare)for(var a=0,b=this.processedXData,c=this.processedYData,
d=c.length,e=this.xAxis.getExtremes().min;a<d;a++)if(typeof c[a]==="number"&&b[a]>=e){this.compareValue=c[a];break}};Ac.prototype.tooltipFormatter=function(a){a=a.replace("{point.change}",(this.change>0?"+":"")+nd(this.change,this.series.tooltipOptions.changeDecimals||2));return Ve.apply(this,[a])};aa(Highcharts,{Chart:vd,dateFormat:wc,pathAnim:kd,getOptions:function(){return Wa},numberFormat:nd,Point:Ac,Color:zc,Renderer:hd,seriesTypes:hb,setOptions:function(a){Wa=X(Wa,a);je();return Wa},Series:Ab,
addEvent:ua,removeEvent:Tb,createElement:pb,discardElement:sd,css:Na,each:y,extend:aa,map:$c,merge:X,pick:z,splat:pc,extendClass:Bb,product:"Highstock",version:"1.0.1"})})();
