/*
 Highcharts JS v2.0.3 (2010-08-07)

 (c) 2009-2010 Torstein Hønsi

 License: www.highcharts.com/license
*/
(function(){function R(a,b){a||(a={});for(var c in b)a[c]=b[c];return a}function S(a){return a!==Ra&&a!==null}function oa(a,b,c){var d,e="setAttribute",f;if(typeof b=="string")if(S(c))a[e](b,c);else{if(a&&a.getAttribute)f=a.getAttribute(b)}else if(S(b)&&typeof b=="object")for(d in b)a[e](d,b[d]);return f}function nc(a){if(!a||a.constructor!=Array)a=[a];return a}function A(){var a=arguments,b,c;for(b=0;b<a.length;b++){c=a[b];if(S(c))return c}}function oc(a){var b="",c;for(c in a)b+=pc(c)+":"+a[c]+
";";return b}function Sa(a,b){if(Yb)if(b&&b.opacity!==Ra)b.filter="alpha(opacity="+b.opacity*100+")";R(a.style,b)}function Da(a,b,c,d,e){a=ma.createElement(a);b&&R(a,b);e&&Sa(a,{padding:0,border:eb,margin:0});c&&Sa(a,c);d&&d.appendChild(a);return a}function Mc(){var a=sa.global.useUTC;Zb=a?Date.UTC:function(b,c,d,e,f,g){return(new Date(b,c,A(d,1),A(e,0),A(f,0),A(g,0))).getTime()};qc=a?"getUTCMinutes":"getMinutes";rc=a?"getUTCHours":"getHours";sc=a?"getUTCDay":"getDay";Ob=a?"getUTCDate":"getDate";
$b=a?"getUTCMonth":"getMonth";ac=a?"getUTCFullYear":"getFullYear";Nc=a?"setUTCMinutes":"setMinutes";Oc=a?"setUTCHours":"setHours";tc=a?"setUTCDate":"setDate";Pc=a?"setUTCMonth":"setMonth";Qc=a?"setUTCFullYear":"setFullYear"}function ed(a){sa=ka(sa,a);Mc();return sa}function fd(){return sa}function bc(a){cc||(cc=Da(xb));a&&cc.appendChild(a);cc.innerHTML=""}function fb(a,b){var c=function(){};c.prototype=new a;R(c.prototype,b);return c}function gd(a,b,c,d){var e=sa.lang;a=a;var f=isNaN(b=$a(b))?2:b;
b=c===undefined?e.decimalPoint:c;d=d===undefined?e.thousandsSep:d;e=a<0?"-":"";c=parseInt(a=$a(+a||0).toFixed(f),10)+"";var g=(g=c.length)>3?g%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+$a(a-c).toFixed(f).slice(2):"")}function hd(a){for(var b={x:a.offsetLeft,y:a.offsetTop};a.offsetParent;){a=a.offsetParent;b.x+=a.offsetLeft;b.y+=a.offsetTop;if(a!=ma.body&&a!=ma.documentElement){b.x-=a.scrollLeft;b.y-=a.scrollTop}}return b}function dc(){}function id(a){function b(m,
h){function r(){var k=[],o;G=L=null;T=[];p(ta,function(s){o=false;p(["xAxis","yAxis"],function(B){if(s.isCartesian&&(B=="xAxis"&&K||B=="yAxis"&&!K)&&(s.options[B]==h.index||s.options[B]===Ra&&h.index===0)){s[B]=U;T.push(s);o=true}});if(!s.visible&&F.ignoreHiddenSeries)o=false;if(o){var z,C;if(!K){z=s.options.stacking;ec=z=="percent";if(z){C=k[s.type]||[];k[s.type]=C}if(ec){G=0;L=99}}if(s.isCartesian){p(s.data,function(B){var H=B.x,fa=B.y;if(G===null)G=L=B[nb];if(K)if(H>L)L=H;else{if(H<G)G=H}else if(S(fa)){if(z)C[H]=
C[H]?C[H]+fa:fa;B=C?C[H]:fa;if(!ec)if(B>L)L=B;else if(B<G)G=B;if(z)ab[s.type][H]={total:B,cum:B}}});if(/(area|column|bar)/.test(s.type)&&!K)if(G>=0){G=0;Rc=true}else if(L<0){L=0;Sc=true}}}})}function w(k,o,s){var z=1,C=0;if(s){z*=-1;C=Ma}if(yb){z*=-1;C-=z*Ma}if(o){if(yb)k=Ma-k;k=k/gb+M}else k=z*(k-M)*gb+C;return k}function I(k,o,s){if(s){var z,C,B;z=w(k);var H;k=C=z+zb;z=B=Ea-z-zb;if(V){z=ga;B=Ea-Ab;if(k<Y||k>Y+wa)H=true}else{k=Y;C=Ta-uc;if(z<ga||z>ga+pa)H=true}H||N.path(N.crispLine([Ua,k,z,Ga,C,
B],s)).attr({stroke:o,"stroke-width":s}).add(O)}}function J(k,o,s){k=sb(k,M);o=Kb(o,W);var z=(o-k)*gb;I(k+(o-k)/2,s,z)}function D(k,o,s,z,C,B,H){var fa,pb,ca,Va=h.labels;if(o=="inside")C=-C;if(ha)C=-C;o=pb=w(k+Bb)+zb;fa=ca=Ea-w(k+Bb)-zb;if(V){fa=Ea-Ab-(ha?pa:0)+Wa;ca=fa+C}else{o=Y+(ha?wa:0)+Wa;pb=o-C}z&&N.path(N.crispLine([Ua,o,fa,Ga,pb,ca],z)).attr({stroke:s,"stroke-width":z}).add(q);if(B&&Va.enabled)if((k=jd.call({index:H,isFirst:k==da[0],isLast:k==da[da.length-1],dateTimeLabelFormat:fc,value:Na&&
Na[k]?Na[k]:k}))||k===0){o=o+Va.x-(Bb&&V?Bb*gb*(yb?-1:1):0);fa=fa+Va.y-(Bb&&!V?Bb*gb*(yb?1:-1):0);N.text(k,o,fa,Va.style,Va.rotation,Va.align).add(q)}}function la(k,o){var s;tb=o?1:Ha.pow(10,hb(Ha.log(k)/Ha.LN10));s=k/tb;if(!o){o=[1,2,2.5,5,10];if(h.allowDecimals===false)if(tb==1)o=[1,2,5,10];else if(tb<=0.1)o=[1/tb]}for(var z=0;z<o.length;z++){k=o[z];if(s<=(o[z]+(o[z+1]||o[z]))/2)break}k*=tb;return k}function ua(){da=[];var k,o=sa.global.useUTC,s=1E3/bb,z=6E4/bb,C=36E5/bb,B=864E5/bb,H=6048E5/bb,
fa=2592E6/bb,pb=31556952E3/bb,ca=[["second",s,[1,2,5,10,15,30]],["minute",z,[1,2,5,10,15,30]],["hour",C,[1,2,3,4,6,8,12]],["day",B,[1,2]],["week",H,[1,2]],["month",fa,[1,2,3,4,6]],["year",pb,null]],Va=ca[6],ia=Va[1],Z=Va[2];for(k=0;k<ca.length;k++){Va=ca[k];ia=Va[1];Z=Va[2];if(ca[k+1]){var kd=(ia*Z[Z.length-1]+ca[k+1][1])/2;if(Oa<=kd)break}}if(ia==pb&&Oa<5*ia)Z=[1,2,5];ca=la(Oa/ia,Z);var ub;Z=new Date(M*bb);Z.setMilliseconds(0);if(ia>=s)Z.setSeconds(ia>=z?0:ca*hb(Z.getSeconds()/ca));if(ia>=z)Z[Nc](ia>=
C?0:ca*hb(Z[qc]()/ca));if(ia>=C)Z[Oc](ia>=B?0:ca*hb(Z[rc]()/ca));if(ia>=B)Z[tc](ia>=fa?1:ca*hb(Z[Ob]()/ca));if(ia>=fa){Z[Pc](ia>=pb?0:ca*hb(Z[$b]()/ca));ub=Z[ac]()}if(ia>=pb){ub-=ub%ca;Z[Qc](ub)}ia==H&&Z[tc](Z[Ob]()-Z[sc]()+h.startOfWeek);k=1;ub=Z[ac]();s=Z.getTime()/bb;z=Z[$b]();for(C=Z[Ob]();s<W&&k<wa;){da.push(s);if(ia==pb)s=Zb(ub+k*ca,0)/bb;else if(ia==fa)s=Zb(ub,z+k*ca)/bb;else if(!o&&(ia==B||ia==H))s=Zb(ub,z,C+k*ca*(ia==B?1:7));else s+=ia*ca;k++}da.push(s);fc=h.dateTimeLabelFormats[Va[0]]}function ja(k){var o=
(tb<1?aa(1/tb):1)*10;return aa(k*o)/o}function Fa(){var k;k=hb(M/Oa)*Oa;var o=Ha.ceil(W/Oa)*Oa;da=[];for(k=ja(k);k<=o;){da.push(k);k=ja(k+Oa)}if(Na){M-=0.5;W+=0.5}}function xa(){ib?ua():Fa();var k=da[0],o=da[da.length-1];if(h.startOnTick)M=k;else M>k&&da.shift();if(h.endOnTick)W=o;else W<o&&da.pop()}function ya(){if(!ib&&!Na){var k=Lb,o=da.length;Lb=Mb[nb];if(o<Lb){for(;da.length<Lb;)da.push(ja(da[da.length-1]+Oa));gb*=(o-1)/(Lb-1)}if(S(k)&&Lb!=k)U.isDirty=true}}function cb(){var k,o,s,z=M,C=W;k=
h.maxZoom;var B;r();M=A(Aa,h.min,G);W=A(Pb,h.max,L);if(vc){B=m[K?"xAxis":"yAxis"][h.linkedTo];B=B.getExtremes();M=A(B.min,B.dataMin);W=A(B.max,B.dataMax)}if(W-M<k){B=(k-W+M)/2;M=sb(M-B,A(h.min,M-B));W=Kb(M+k,A(h.max,M+k))}if(!Na&&!ec&&!vc&&S(M)&&S(W)){k=W-M||1;if(!S(h.min)&&!S(Aa)&&Tc&&(G<0||!Rc))M-=k*Tc;if(!S(h.max)&&!S(Pb)&&Uc&&(L>0||!Sc))W+=k*Uc}Oa=Na||M==W?1:A(h.tickInterval,(W-M)*h.tickPixelInterval/Ma);if(!ib&&!S(h.tickInterval))Oa=la(Oa);wc=h.minorTickInterval==="auto"&&Oa?Oa/5:h.minorTickInterval;
xa();gb=Ma/(W-M||1);Mb||(Mb={x:0,y:0});if(!ib&&da.length>Mb[nb])Mb[nb]=da.length;if(!K)for(o in ab)for(s in ab[o])ab[o][s].cum=ab[o][s].total;if(!U.isDirty)U.isDirty=M!=z||W!=C}function Ia(k,o,s){s=A(s,true);za(U,"setExtremes",{min:k,max:o},function(){if(Na){if(k<0)k=0;if(o>Na.length-1)o=Na.length-1}Aa=k;Pb=o;s&&m.redraw()})}function Xa(){return{min:M,max:W,dataMin:G,dataMax:L}}function qb(k){if(M>k)k=M;else if(W<k)k=W;return w(k,0,1)}function ba(k){var o=k.width,s=o?xc:yc;s.push(k);o?I(k.value,k.color,
k.width):J(k.from,k.to,k.color)}function t(){var k=h.title,o=h.alternateGridColor,s=h.minorTickWidth,z=h.lineWidth,C,B;C=T.length&&S(M)&&S(W);if(q){q.empty();O.empty()}else{q=N.g("axis").attr({zIndex:7}).add();O=N.g("grid").attr({zIndex:1}).add()}if(C||vc){o&&p(da,function(H,fa){if(fa%2===0&&H<W)J(H,da[fa+1]!==Ra?da[fa+1]:W,o)});p(yc,function(H){J(H.from,H.to,H.color)});if(wc&&!Na)for(C=M;C<=W;C+=wc){I(C,h.minorGridLineColor,h.minorGridLineWidth);s&&D(C,h.minorTickPosition,h.minorTickColor,s,h.minorTickLength)}p(da,
function(H,fa){B=H+Bb;I(B,h.gridLineColor,h.gridLineWidth);D(H,h.tickPosition,h.tickColor,h.tickWidth,h.tickLength,!(H==M&&!h.showFirstLabel||H==W&&!h.showLastLabel),fa)});p(xc,function(H){I(H.value,H.color,H.width)})}if(!U.hasRenderedLine&&z){s=Y+(ha?wa:0)+Wa;C=Ea-Ab-(ha?pa:0)+Wa;N.path(N.crispLine([Ua,V?Y:s,V?C:ga,Ga,V?Ta-uc:s,V?C:Ea-Ab],z)).attr({stroke:h.lineColor,"stroke-width":z,zIndex:7}).add();U.hasRenderedLine=true}if(!U.hasRenderedTitle&&!U.axisTitle&&k&&k.text){z=V?Y:ga;z={low:z+(V?0:Ma),
middle:z+Ma/2,high:z+(V?Ma:0)}[k.align];s=(V?ga+pa:Y)+(V?1:-1)*(ha?-1:1)*k.margin-(Yb?parseInt(k.style.fontSize||12,10)/3:0);U.axisTitle=N.text(k.text,V?z:s+(ha?wa:0)+Wa,V?s-(ha?pa:0)+Wa:z,k.style,k.rotation||0,{low:"left",middle:"center",high:"right"}[k.align]).attr({zIndex:7}).add();U.hasRenderedTitle=true}U.isDirty=false}function v(k){p([yc,xc],function(o){for(var s=0;s<o.length;s++)if(o[s].id==k){o.splice(s,1);break}});t()}function E(){Nb.resetTracker&&Nb.resetTracker();t();p(T,function(k){k.isDirty=
true})}function Q(k,o){U.categories=Na=k;p(T,function(s){s.translate();s.setTooltipPoints(true)});U.isDirty=true;A(o,true)&&E()}var K=h.isX,ha=h.opposite,V=na?!K:K,ab={bar:{},column:{},area:{},areaspline:{},line:{}};h=ka(K?gc:zc,V?ha?ld:Vc:ha?md:nd,h);var U=this,ib=h.type=="datetime",Wa=h.offset||0,nb=K?"x":"y",Ma=V?wa:pa,gb,zb=V?Y:Ab,q,O,G,L,T,Aa,Pb,W=null,M=null,Tc=h.minPadding,Uc=h.maxPadding,vc=S(h.linkedTo),Rc,Sc,ec,Wc=h.events,Ac,yc=h.plotBands||[],xc=h.plotLines||[],Oa,wc,tb,da,Lb,fc,jd=h.labels.formatter||
function(){var k=this.value;return fc?hc(fc,k):k},Na=h.categories||K&&m.columnCount,yb=h.reversed,Bb=Na&&h.tickmarkPlacement=="between"?0.5:0;if(na&&K&&yb===Ra)yb=true;ha||(Wa*=-1);if(V)Wa*=-1;R(U,{addPlotBand:ba,addPlotLine:ba,adjustTickAmount:ya,categories:Na,getExtremes:Xa,getThreshold:qb,isXAxis:K,options:h,render:t,setExtremes:Ia,setScale:cb,setCategories:Q,translate:w,redraw:E,removePlotBand:v,removePlotLine:v,reversed:yb,stacks:ab});for(Ac in Wc)jb(U,Ac,Wc[Ac]);cb()}function c(){function m(w,
I,J,D){if(!r[w]){I=N.text(I,Y+wa-20,ga+30,a.toolbar.itemStyle,0,"right").on("click",D).attr({zIndex:20}).add();r[w]=I}}function h(w){bc(r[w].element);r[w]=null}var r={};return{add:m,remove:h}}function d(m){function h(ba,t){ya=ja?ba:(2*ya+ba)/3;cb=ja?t:(cb+t)/2;Ia.translate(ya,cb);Bc=$a(ba-ya)>1||$a(t-cb)>1?function(){h(ba,t)}:null}function r(){ja=true;Ia.hide()}function w(ba){var t=ba.series,v=m.borderColor||ba.color||t.color||"#606060",E,Q;Q=ba.tooltipText;E=ba.tooltipPos;I=t;t=E?E[0]:na?wa-ba.plotY:
ba.plotX;ba=E?E[1]:na?pa-ba.plotX:ba.plotY;E=Qb(t,ba);if(Q===false||!E)r();else{if(ja){Ia.show();ja=false}qb.attr({text:Q});Q=qb.getBBox();Fa=Q.width;xa=Q.height;Xa.attr({width:Fa+2*la,height:xa+2*la,stroke:v});v=t-Fa+Y-25;t=ba-xa+ga+10;if(v<7){v=7;t-=20}if(t<5)t=5;else if(t+xa>Ea)t=Ea-xa-5;h(aa(v-ua),aa(t-ua))}}var I,J=m.borderWidth,D=m.style,la=parseInt(D.padding,10),ua=J+la,ja=true,Fa,xa,ya=0,cb=0;D.padding=0;var Ia=N.g("tooltip").attr({zIndex:8}).add(),Xa=N.rect(ua,ua,0,0,m.borderRadius,J).attr({fill:m.backgroundColor,
"stroke-width":J}).add(Ia).shadow(m.shadow),qb=N.text("",la+ua,parseInt(D.fontSize,10)+la+ua).attr({zIndex:1}).css(D).add(Ia);return{refresh:w,hide:r}}function e(m,h){function r(t){t=t||kb.event;if(!t.target)t.target=t.srcElement;if(t.type!="mousemove"||kb.opera)Rb=hd(Ya);if(t.layerX===Ra)if(Yb){t.layerX=t.x;t.layerY=t.y}else{t.layerX=t.pageX-Rb.x;t.layerY=t.pageY-Rb.y}return t}function w(t){var v={xAxis:[],yAxis:[]};p(Pa,function(E){var Q=E.translate,K=E.isXAxis,ha=na?!K:K;v[K?"xAxis":"yAxis"].push({axis:E,
value:Q(ha?t.layerX-Y:pa-t.layerY+ga,true)})});return v}function I(t){var v=m.hoverPoint,E=m.hoverSeries;if(E&&E.tracker)(t=E.tooltipPoints[na?t.layerY:t.layerX-Y])&&t!=v&&t.onMouseOver()}function J(){var t=m.hoverSeries,v=m.hoverPoint;v&&v.onMouseOut();t&&t.onMouseOut();Cc&&Cc.hide()}function D(){if(ya){var t={xAxis:[],yAxis:[]},v=ya.getBBox(),E=v.x-Y,Q=v.y-ga;if(xa){p(Pa,function(K){var ha=K.translate,V=K.isXAxis,ab=na?!V:V,U=ha(ab?E:pa-Q-v.height,true);ha=ha(ab?E+v.width:pa-Q,true);t[V?"xAxis":
"yAxis"].push({axis:K,min:Kb(U,ha),max:sb(U,ha)})});za(m,"selection",t,Dc)}ya=ya.destroy()}m.mouseIsDown=Ec=xa=false}function la(){var t=true;Ya.onmousedown=function(v){v=r(v);v.preventDefault&&v.preventDefault();m.mouseIsDown=Ec=true;ja=v.layerX;Fa=v.layerY;if(ic&&(Ia||Xa))ya||(ya=N.rect(Y,ga,qb?1:wa,ba?1:pa,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add())};Ya.onmousemove=function(v){v=r(v);v.returnValue=false;var E=v.layerX,Q=v.layerY,K=!Qb(E-Y,Q-ga);if(Ec){xa=Math.sqrt(Math.pow(ja-E,2)+
Math.pow(Fa-Q,2))>10;if(qb){v=E-ja;ya.attr({width:$a(v),x:(v>0?0:v)+ja})}if(ba){Q=Q-Fa;ya.attr({height:$a(Q),y:(Q>0?0:Q)+Fa})}}else K||I(v);if(K&&!t){J();D()}t=K;return false};Ya.onmouseup=function(){D()};Ya.onclick=function(v){var E=m.hoverPoint;v=r(v);v.cancelBubble=true;if(!xa)if(E&&oa(v.target,"isTracker")){var Q=E.plotX,K=E.plotY;R(E,{pageX:Rb.x+Y+(na?wa-K:Q),pageY:Rb.y+ga+(na?pa-Q:K)});za(m.hoverSeries,"click",R(v,{point:E}));E.firePointEvent("click",v)}else{R(v,w(v));Qb(v.layerX-Y,v.layerY-
ga)&&za(m,"click",v)}xa=false}}function ua(){m.trackerGroup=Fc=N.g("tracker");na&&Fc.attr({width:m.plotWidth,height:m.plotHeight}).invert();Fc.attr({zIndex:9}).translate(Y,ga).add()}var ja,Fa,xa,ya,cb=F.zoomType,Ia=/x/.test(cb),Xa=/y/.test(cb),qb=Ia&&!na||Xa&&na,ba=Xa&&!na||Ia&&na;ua();if(h.enabled)m.tooltip=Cc=d(h);la();Xc=setInterval(function(){Bc&&Bc()},32);R(this,{zoomX:Ia,zoomY:Xa,resetTracker:J})}function f(m){var h=m.type||F.defaultSeriesType,r=db[h],w=x.hasRendered;if(w)if(na&&h=="column")r=
db.bar;else if(!na&&h=="bar")r=db.column;h=new r;h.init(x,m);if(!w&&h.inverted)na=true;if(h.isCartesian)ic=h.isCartesian;ta.push(h);return h}function g(m,h){var r;h=A(h,true);za(x,"addSeries",{options:m},function(){r=f(m);r.isDirty=true;x.isDirty=true;h&&x.redraw()});return r}function i(){F.alignTicks!==false&&p(Pa,function(m){m.adjustTickAmount()})}function j(){for(var m=x.isDirty,h,r=ta.length,w=r,I;w--;){I=ta[w];if(I.isDirty&&I.options.stacking){h=true;break}}if(h)for(w=r;w--;){I=ta[w];if(I.options.stacking)I.isDirty=
true}p(ta,function(J){if(J.isDirty){J.cleanData();J.getSegments();if(J.options.legendType=="point")m=true}});Mb=null;if(ic){p(Pa,function(J){J.setScale()});i();p(Pa,function(J){J.isDirty&&J.redraw()})}p(ta,function(J){J.isDirty&&J.visible&&J.redraw()});if(m&&Gc.renderLegend){Gc.renderLegend();x.isDirty=false}Nb&&Nb.resetTracker&&Nb.resetTracker();za(x,"redraw")}function l(){var m=a.loading;if(!Cb){Cb=Da(xb,{className:"highcharts-loading"},R(m.style,{left:Y+Ja,top:ga+Ja,width:wa+Ja,height:pa+Ja,zIndex:10,
display:eb}),Ya);Da("span",{innerHTML:a.lang.loading},m.labelStyle,Cb)}if(!Hc){Sa(Cb,{opacity:0,display:""});Sb(Cb,{opacity:m.style.opacity},{duration:m.showDuration});Hc=true}}function n(){Sb(Cb,{opacity:0},{duration:a.loading.hideDuration,complete:function(){Sa(Cb,{display:eb})}});Hc=false}function u(m){var h,r,w;for(h=0;h<Pa.length;h++)if(Pa[h].options.id==m)return Pa[h];for(h=0;h<ta.length;h++)if(ta[h].options.id==m)return ta[h];for(h=0;h<ta.length;h++){w=ta[h].data;for(r=0;r<w.length;r++)if(w[r].id==
m)return w[r]}return null}function y(){var m=a.xAxis||{},h=a.yAxis||{},r;m=nc(m);p(m,function(w,I){w.index=I;w.isX=true});h=nc(h);p(h,function(w,I){w.index=I});Pa=m.concat(h);x.xAxis=[];x.yAxis=[];Pa=Db(Pa,function(w){r=new b(x,w);x[r.isXAxis?"xAxis":"yAxis"].push(r);return r});i()}function X(){var m=[];p(ta,function(h){m=m.concat(jc(h.data,function(r){return r.selected}))});return m}function Ba(){return jc(ta,function(m){return m.selected})}function P(){var m=a.title,h=m.align,r=a.subtitle,w=r.align,
I={left:0,center:Ta/2,right:Ta};m&&m.text&&N.text(m.text,I[h]+m.x,m.y,m.style,0,h).attr({"class":"highcharts-title"}).add();r&&r.text&&N.text(r.text,I[w]+r.x,r.y,r.style,0,w).attr({"class":"highcharts-subtitle"}).add()}function ea(){lb=F.renderTo;Yc=Eb+Ic++;if(typeof lb=="string")lb=ma.getElementById(lb);lb.innerHTML="";if(!lb.offsetWidth){vb=lb.cloneNode(0);Sa(vb,{position:Tb,top:"-9999px",display:""});ma.body.appendChild(vb)}var m=(vb||lb).offsetHeight;x.chartWidth=Ta=F.width||(vb||lb).offsetWidth||
600;x.chartHeight=Ea=F.height||(m>ga+Ab?m:0)||400;x.plotWidth=wa=Ta-Y-uc;x.plotHeight=pa=Ea-ga-Ab;x.plotLeft=Y;x.plotTop=ga;x.container=Ya=Da(xb,{className:"highcharts-container"+(F.className?" "+F.className:""),id:Yc},R({position:Zc,overflow:Fb,width:Ta+Ja,height:Ea+Ja,textAlign:"left"},F.style),vb||lb);x.renderer=N=F.renderer=="SVG"?new Ub(Ya,Ta,Ea):new $c(Ya,Ta,Ea)}function mb(){var m,h=a.labels,r=a.credits,w=F.borderWidth||0,I=F.backgroundColor,J=F.plotBackgroundColor,D=F.plotBackgroundImage;
m=2*w+(F.shadow?8:0);if(w||I)N.rect(m/2,m/2,Ta-m,Ea-m,F.borderRadius,w).attr({stroke:F.borderColor,"stroke-width":w,fill:I||eb}).add().shadow(F.shadow);J&&N.rect(Y,ga,wa,pa,0).attr({fill:J}).add().shadow(F.plotShadow);D&&N.image(D,Y,ga,wa,pa).add();F.plotBorderWidth&&N.rect(Y,ga,wa,pa,0,F.plotBorderWidth).attr({stroke:F.plotBorderColor,"stroke-width":F.plotBorderWidth,zIndex:4}).add();ic&&p(Pa,function(la){la.render()});P();h.items&&p(h.items,function(){var la=R(h.style,this.style),ua=parseInt(la.left,
10)+Y,ja=parseInt(la.top,10)+ga+12;delete la.left;delete la.top;N.text(this.html,ua,ja,la).attr({zIndex:2}).add()});p(ta,function(la){la.render()});Gc=x.legend=new od(x);if(!x.toolbar)x.toolbar=c(x);r.enabled&&!x.credits&&N.text(r.text,Ta-10,Ea-5,r.style,0,"right").on("click",function(){location.href=r.href}).attr({zIndex:8}).add();x.hasRendered=true;if(vb){lb.appendChild(Ya);bc(vb)}}function Ka(){var m=ta.length;Gb(kb,"unload",Ka);Gb(x);for(p(Pa,function(h){Gb(h)});m--;)ta[m].destroy();Ya.innerHTML=
"";Ya=null;clearInterval(Xc);for(m in x)delete x[m]}function Vb(){var m="onreadystatechange";if(Yb&&ma.readyState!="complete")ma.attachEvent(m,function(){ma.detachEvent(m,arguments.callee);Vb()});else{ea();p(a.series||[],function(h){f(h)});x.inverted=na=A(na,a.chart.inverted);x.plotSizeX=pd=na?pa:wa;x.plotSizeY=qd=na?wa:pa;x.tracker=Nb=new e(x,a.tooltip);y();p(ta,function(h){h.translate();h.setTooltipPoints()});x.render=mb;mb();za(x,"load")}}gc=ka(gc,sa.xAxis);zc=ka(zc,sa.yAxis);sa.xAxis=sa.yAxis=
null;a=ka(sa,a);var F=a.chart,va=F.margin;va=typeof va=="number"?[va,va,va,va]:va;var ga=A(F.marginTop,va[0]),uc=A(F.marginRight,va[1]),Ab=A(F.marginBottom,va[2]),Y=A(F.marginLeft,va[3]),lb,vb,Ya,Yc,Ta,Ea,x=this;va=F.events;var Jc,Kc,Qb,Cc,Ec,Cb,Hc,pa,wa,pd,qd,Nb,Fc,Gc,Rb,ic=F.showAxes,Pa=[],Mb,ta=[],na,N,Bc,Xc,Dc,ad,od=function(m){function h(q,O){var G=q.legendItem,L=q.legendLine,T=q.legendSymbol,Aa=Ia.color,Pb=O?D.itemStyle.color:Aa;q=O?q.color:Aa;G&&G.attr({fill:Pb});L&&L.attr({stroke:q});T&&T.attr({stroke:q,
fill:q})}function r(q,O,G){var L=q.legendItem,T=q.legendLine,Aa=q.legendSymbol;q=q.checkbox;L&&L.attr({x:O,y:G});T&&T.translate(O,G-4);Aa&&Aa.translate(O,G);if(q){q.x=O;q.y=G}}function w(q){for(var O=Fa.length,G=q.checkbox;O--;)if(Fa[O]==q){Fa.splice(O,1);break}p(["legendItem","legendLine","legendSymbol"],function(L){q[L]&&q[L].destroy()});G&&bc(q.checkbox)}function I(q){var O,G,L=q.legendItem;G=q.series||q;if(!L){G=/^(bar|pie|area|column)$/.test(G.type);q.legendItem=L=N.text(D.labelFormatter.call(q),
0,0).css(ya).on("mouseover",function(){q.setState(ob);L.css(cb)}).on("mouseout",function(){L.css(q.visible?ya:Ia);q.setState()}).on("click",function(){var T="legendItemClick",Aa=function(){q.setVisible()};q.firePointEvent?q.firePointEvent(T,null,Aa):za(q,T,null,Aa)}).attr({zIndex:2}).add(U);if(!G&&q.options&&q.options.lineWidth)q.legendLine=N.path([Ua,-ua-ja,0,Ga,-ja,0]).attr({"stroke-width":q.options.lineWidth,zIndex:2}).add(U);if(G)O=N.rect(-ua-ja,-11,ua,12,2).attr({"stroke-width":0,zIndex:3}).add(U);
else if(q.options&&q.options.marker&&q.options.marker.enabled)O=N.symbol(q.symbol,-ua/2-ja,-4,q.options.marker.radius).attr(q.pointAttr[La]).attr({zIndex:3}).add(U);q.legendSymbol=O;h(q,q.visible);if(q.options&&q.options.showCheckbox){q.checkbox=Da("input",{type:"checkbox",checked:q.selected,defaultChecked:q.selected},D.itemCheckboxStyle,Ya);jb(q.checkbox,"click",function(T){T=T.target;za(q,"checkboxClick",{checked:T.checked},function(){q.select()})})}}r(q,E,Q);O=L.getBBox();K=Q;q.legendItemWidth=
O=D.itemWidth||ua+ja+O.width+qb;if(la){E+=O;ib=Wa||sb(E-v,ib);if(E-v+O>(Wa||Ta-2*Xa-v)){E=v;Q+=ba}}else{Q+=ba;ib=Wa||sb(O,ib)}Fa.push(q)}function J(){E=v;Q=t;K=ib=0;U||(U=N.g("legend").attr({zIndex:7}).add());zb&&gb.reverse();p(gb,function(T){if(T.options.showInLegend){T=T.options.legendType=="point"?T.data:[T];p(T,I)}});zb&&gb.reverse();nb=Wa||ib;Ma=K-t+ba;if(V||ab){nb+=2*Xa;Ma+=2*Xa;if(ha)ha.attr({height:Ma,width:nb});else ha=N.rect(0,0,nb,Ma,D.borderRadius,V||0).attr({stroke:D.borderColor,"stroke-width":V||
0,fill:ab||eb}).add(U).shadow(D.shadow)}for(var q=["left","right","top","bottom"],O,G=4;G--;){O=q[G];if(xa[O]&&xa[O]!="auto"){D[G<2?"align":"verticalAlign"]=O;D[G<2?"x":"y"]=parseInt(xa[O],10)*(G%2?-1:1)}}var L=Kc(R({width:nb,height:Ma},D));U.translate(L.x,L.y);p(Fa,function(T){var Aa=T.checkbox;Aa&&Sa(Aa,{left:L.x+T.legendItemWidth+Aa.x-40+Ja,top:L.y+Aa.y-11+Ja})})}var D=m.options.legend;if(D.enabled){var la=D.layout=="horizontal",ua=D.symbolWidth,ja=D.symbolPadding,Fa=[],xa=D.style,ya=D.itemStyle,
cb=D.itemHoverStyle,Ia=D.itemHiddenStyle,Xa=parseInt(xa.padding,10),qb=20,ba=D.lineHeight||16,t=18,v=4+Xa+ua+ja,E,Q,K,ha,V=D.borderWidth,ab=D.backgroundColor,U,ib,Wa=D.width,nb,Ma,gb=m.series,zb=D.reversed;J();return{colorizeItem:h,destroyItem:w,renderLegend:J}}};Qb=function(m,h){var r=0,w=0;return m>=r&&m<=r+wa&&h>=w&&h<=w+pa};ad=function(){za(x,"selection",{resetSelection:true},Dc);x.toolbar.remove("zoom")};Dc=function(m){var h=sa.lang;x.toolbar.add("zoom",h.resetZoom,h.resetZoomTitle,ad);!m||m.resetSelection?
p(Pa,function(r){r.setExtremes(null,null,false)}):p(m.xAxis.concat(m.yAxis),function(r){var w=r.axis;if(x.tracker[w.isXAxis?"zoomX":"zoomY"])w.setExtremes(r.min,r.max,false)});j()};Kc=function(m){var h=m.align,r=m.verticalAlign,w=m.x||0,I=m.y||0,J={x:w||0,y:I||0};if(/^(right|center)$/.test(h))J.x=(Ta-m.width)/{right:1,center:2}[h]+w;if(/^(bottom|middle)$/.test(r))J.y=(Ea-m.height)/{bottom:1,middle:2}[r]+I;return J};kc=rb=0;jb(kb,"unload",Ka);if(va)for(Jc in va)jb(x,Jc,va[Jc]);x.options=a;x.series=
ta;x.addSeries=g;x.destroy=Ka;x.get=u;x.getAlignment=Kc;x.getSelectedPoints=X;x.getSelectedSeries=Ba;x.hideLoading=n;x.isInsidePlot=Qb;x.redraw=j;x.showLoading=l;Vb()}function bd(a){var b=[],c=[],d;for(d=0;d<a.length;d++){b[d]=a[d].plotX;c[d]=a[d].plotY}this.xdata=b;this.ydata=c;a=[];this.y2=[];var e=c.length;this.n=e;this.y2[0]=0;this.y2[e-1]=0;a[0]=0;for(d=1;d<e-1;d++){var f=b[d+1]-b[d-1];f=(b[d]-b[d-1])/f;var g=f*this.y2[d-1]+2;this.y2[d]=(f-1)/g;a[d]=(c[d+1]-c[d])/(b[d+1]-b[d])-(c[d]-c[d-1])/
(b[d]-b[d-1]);a[d]=(6*a[d]/(b[d+1]-b[d-1])-f*a[d-1])/g}for(b=e-2;b>=0;b--)this.y2[b]=this.y2[b]*this.y2[b+1]+a[b]}var ma=document,kb=window,Ha=Math,aa=Ha.round,hb=Ha.floor,sb=Ha.max,Kb=Ha.min,$a=Ha.abs,Hb=Ha.cos,Ib=Ha.sin,qa=navigator.userAgent,Yb=/msie/i.test(qa)&&!kb.opera,rd=/AppleWebKit/.test(qa),cd=kb.SVGAngle||ma.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),rb,kc,sd={},Ic=0,bb=1,cc,sa,hc,Ra,xb="div",Tb="absolute",Zc="relative",Fb="hidden",Eb="highcharts-",
Wb="visible",Ja="px",eb="none",Ua="M",Ga="L",dd="rgba(192,192,192,0.005)",La="",ob="hover",wb="select",Zb,qc,rc,sc,Ob,$b,ac,Nc,Oc,tc,Pc,Qc,Ca=kb.HighchartsAdapter,ra=Ca||{},p=ra.each,jc=ra.grep,Db=ra.map,ka=ra.merge,pc=ra.hyphenate,jb=ra.addEvent,Gb=ra.removeEvent,za=ra.fireEvent,Sb=ra.animate,lc=ra.stop;ra=ra.getAjax;var db={};if(!Ca&&kb.jQuery){var Za=jQuery;p=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};jc=Za.grep;Db=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};ka=function(){var a=arguments;return Za.extend(true,null,a[0],a[1],a[2],a[3])};pc=function(a){return a.replace(/([A-Z])/g,function(b,c){return"-"+c.toLowerCase()})};jb=function(a,b,c){Za(a).bind(b,c)};Gb=function(a,b,c){var d=ma.removeEventListener?"removeEventListener":"detachEvent";if(ma[d]&&!a[d])a[d]=function(){};Za(a).unbind(b,c)};za=function(a,b,c,d){var e=Za.Event(b),f="detached"+b;R(e,c);if(a[b]){a[f]=a[b];a[b]=null}Za(a).trigger(e);if(a[f]){a[b]=
a[f];a[f]=null}d&&!e.isDefaultPrevented()&&d(e)};Sb=function(a,b,c){a=Za(a);a.stop();a.animate(b,c)};lc=function(a){Za(a).stop()};ra=function(a,b){Za.get(a,null,b)};Za.extend(Za.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var td=jQuery.fx.step._default,ud=jQuery.fx.prototype.cur;Za.fx.step._default=function(a){var b=a.elem;b.attr?b.attr(a.prop,a.now):td.apply(this,arguments)};Za.fx.prototype.cur=function(){var a=this.elem;return a=a.attr?a.attr(this.prop):ud.apply(this,arguments)}}else if(!Ca&&
kb.MooTools){p=$each;Db=function(a,b){return a.map(b)};jc=function(a,b){return a.filter(b)};ka=$merge;pc=function(a){return a.hyphenate()};jb=function(a,b,c){if(typeof b=="string"){if(b=="unload")b="beforeunload";if(!a.addEvent)if(a.nodeName)a=$(a);else R(a,new Events);a.addEvent(b,c)}};Gb=function(a,b,c){if(b){if(b=="unload")b="beforeunload";a.removeEvent(b,c)}};za=function(a,b,c,d){b=new Event({type:b,target:a});b=R(b,c);b.preventDefault=function(){d=null};a.fireEvent&&a.fireEvent(b.type,b);d&&
d(b)};Sb=function(a,b,c){var d=a.attr;if(d&&!a.setStyle){a.setStyle=a.getStyle=a.attr;a.$family=a.uid=true}lc(a);c=new Fx.Morph(d?a:$(a),R(c,{transition:Fx.Transitions.Quad.easeInOut}));c.start(b);a.fx=c};lc=function(a){a.fx&&a.fx.cancel()};ra=function(a,b){(new Request({url:a,method:"get",onSuccess:b})).send()}}Ca={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px"}};sa={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:{margin:[50,50,90,80],borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,
style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",x:0,y:20,align:"center",style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",x:0,y:40,align:"center",style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:true,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:ka(Ca,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{lineWidth:3,marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:Tb,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:{color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:Tb,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:15,y:-15},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:Zc,top:"1em"},showDuration:100,style:{position:Tb,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,formatter:function(){var a=this,b=a.series,c=b.xAxis,d=a.x;return"<b>"+(a.point.name||b.name)+"</b><br/>"+
(S(d)?"X value: "+(c&&c.options.type=="datetime"?hc(null,d):d)+"<br/>":"")+"Y value: "+a.y},backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap: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",style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var gc={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",
hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:Ca,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,maxZoom:null,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",minorTickWidth:1,showFirstLabel:true,showLastLabel:false,startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,
tickPosition:"outside",tickWidth:1,title:{align:"middle",margin:35,style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},zc=ka(gc,{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:{margin:40,rotation:270,text:"Y-values"}}),nd={labels:{align:"right",x:-8,y:3},title:{rotation:270}},md={labels:{align:"left",x:8,y:3},title:{rotation:90}},Vc={labels:{align:"center",x:0,
y:14},title:{rotation:0}},ld=ka(Vc,{labels:{y:-5}});Ca=sa.plotOptions;ra=Ca.line;Ca.spline=ka(ra);Ca.scatter=ka(ra,{lineWidth:0,states:{hover:{lineWidth:0}}});Ca.area=ka(ra,{});Ca.areaspline=ka(Ca.area);Ca.column=ka(ra,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}}});Ca.bar=ka(Ca.column,{dataLabels:{align:"left",x:5,y:0}});Ca.pie=
ka(ra,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,legendType:"point",marker:null,size:"90%",slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});Mc();var Jb=function(a){function b(i){if(g=/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(i))f=[parseInt(g[1],10),parseInt(g[2],10),parseInt(g[3],10),parseFloat(g[4],10)];else if(g=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(i))f=[parseInt(g[1],16),
parseInt(g[2],16),parseInt(g[3],16),1]}function c(i){return i=f&&!isNaN(f[0])?i=="rgb"?"rgb("+f[0]+","+f[1]+","+f[2]+")":i=="a"?f[3]:"rgba("+f.join(",")+")":a}function d(i){if(typeof i=="number"&&i!==0)for(var j=0;j<3;j++){f[j]+=parseInt(i*255,10);if(f[j]<0)f[j]=0;if(f[j]>255)f[j]=255}return this}function e(i){f[3]=i;return this}var f=[],g;b(a);return{get:c,brighten:d,setOpacity:e}};hc=function(a,b,c){function d(y){return y.toString().replace(/^([0-9])$/,"0$1")}if(!S(b)||isNaN(b))return"Invalid date";
a=A(a,"%Y-%m-%d %H:%M:%S");b=new Date(b*bb);var e=b[rc](),f=b[sc](),g=b[Ob](),i=b[$b](),j=b[ac](),l=sa.lang,n=l.weekdays;l=l.months;b={a:n[f].substr(0,3),A:n[f],d:d(g),e:g,b:l[i].substr(0,3),B:l[i],m:d(i+1),y:j.toString().substr(2,2),Y:j,H:d(e),I:d(e%12||12),l:e%12||12,M:d(b[qc]()),p:e<12?"AM":"PM",P:e<12?"am":"pm",S:d(b.getSeconds())};for(var u in b)a=a.replace("%"+u,b[u]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};dc.prototype={init:function(a,b){this.element=ma.createElementNS("http://www.w3.org/2000/svg",
b);this.renderer=a},animate:function(a,b){Sb(this,a,b)},attr:function(a,b){var c,d,e,f=this.element,g=f.nodeName,i=this.renderer,j,l=this.shadows,n,u=this;if(typeof a=="string"&&S(b)){c=a;a={};a[c]=b}if(typeof a=="string"){c=a;if(g=="circle")c={x:"cx",y:"cy"}[c]||c;else if(c=="strokeWidth")c="stroke-width";u=parseFloat(oa(f,c)||this[c]||0)}else for(c in a){b=a[c];if(c=="d"){if(typeof b!="string")b=b.join(" ")}else if(c=="x"&&g=="text")for(d=0;d<f.childNodes.length;d++){e=f.childNodes[d];oa(e,"x")==
oa(f,"x")&&oa(e,"x",b)}else if(c=="fill")b=i.color(b,f,c);else if(g=="circle")c={x:"cx",y:"cy"}[c]||c;else if(c=="translateX"||c=="translateY"){this[c]=b;this.updateTransform();j=true}else if(c=="stroke")b=i.color(b,f,c);else if(c=="isTracker")this[c]=b;if(c=="strokeWidth")c="stroke-width";if(rd&&c=="stroke-width"&&b===0)b=1.0E-6;if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(c)){if(!n){this.symbolAttr(a);n=true}j=true}if(l&&/^(width|height|visibility|x|y|d)$/.test(c))for(d=l.length;d--;)oa(l[d],
c,b);if(c=="text")i.buildText(f,b);else j||oa(f,c,b)}return u},symbolAttr:function(a){var b=this;b.x=A(a.x,b.x);b.y=A(a.y,b.y);b.r=A(a.r,b.r);b.start=A(a.start,b.start);b.end=A(a.end,b.end);b.width=A(a.width,b.width);b.height=A(a.height,b.height);b.innerR=A(a.innerR,b.innerR);b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.r,{start:b.start,end:b.end,width:b.width,height:b.height,innerR:b.innerR})})},clip:function(a){return this.attr("clip-path","url("+this.renderer.url+"#"+a.id+")")},css:function(a){var b=
this;if(a&&a.color)a.fill=a.color;a=R(b.styles,a);b.attr({style:oc(a)});b.styles=a;return b},on:function(a,b){this.element["on"+a]=b;return this},translate:function(a,b){var c=this;c.translateX=a;c.translateY=b;c.updateTransform();return c},invert:function(){var a=this;a.inverted=true;a.updateTransform();return a},updateTransform:function(){var a=this,b=a.translateX||0,c=a.translateY||0,d=a.inverted,e=[];if(d){b+=a.attr("width");c+=a.attr("height")}if(b||c)e.push("translate("+b+","+c+")");d&&e.push("rotate(90) scale(-1,1)");
e.length&&oa(a.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},getBBox:function(){return this.element.getBBox()},show:function(){return this.attr({visibility:Wb})},hide:function(){return this.attr({visibility:Fb})},add:function(a){var b=a?a.element:this.renderer.box,c=b.childNodes,d=this.element,e=oa(d,"zIndex"),f,g;this.parentInverted=a&&a.inverted;for(g=0;g<c.length;g++){a=c[g];f=oa(a,"zIndex");if(a!=d&&(f>e||!S(e)&&S(f))){b.insertBefore(d,
a);return this}}b.appendChild(d);return this},destroy:function(){var a=this,b=a.element,c=a.shadows,d=b.parentNode,e;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null;lc(a);d&&d.removeChild(b);c&&p(c,function(f){(d=f.parentNode)&&d.removeChild(f)});for(e in a)delete a[e];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a){var b=[],c,d=this.element,e=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(a=1;a<=3;a++){c=d.cloneNode(0);
oa(c,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*a,"stroke-width":7-2*a,transform:"translate"+e,fill:eb});d.parentNode.insertBefore(c,d);b.push(c)}this.shadows=b}return this}};var Ub=function(){this.init.apply(this,arguments)};Ub.prototype={init:function(a,b,c){var d=ma.createElementNS("http://www.w3.org/2000/svg","svg"),e=location;oa(d,{width:b,height:c,xmlns:"http://www.w3.org/2000/svg",version:"1.1"});a.appendChild(d);this.Element=dc;this.box=d;this.url=e.href.replace(/#.*?$/,
"");this.defs=this.createElement("defs").add()},createElement:function(a){var b=new this.Element;b.init(this,a);return b},buildText:function(a,b){b=b.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/>");var c=a.childNodes,d=/style="([ 0-9a-z:;\-]+)"/,e=/href="([^"]+)"/,f=oa(a,"x"),g;for(g=c.length-1;g>=0;g--)a.removeChild(c[g]);p(b,function(i,j){var l=
0;i=i.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");i=i.split("|||");p(i,function(n){if(n!==""){var u={},y=ma.createElementNS("http://www.w3.org/2000/svg","tspan");d.test(n)&&oa(y,"style",n.match(d)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));if(e.test(n)){oa(y,"onclick",'location.href="'+n.match(e)[1]+'"');Sa(y,{cursor:"pointer"})}n=n.replace(/<(.|\n)*?>/g,"");y.appendChild(ma.createTextNode(n));if(l)u.dx=3;else u.x=f;if(j&&!l)u.dy=16;oa(y,u);a.appendChild(y);l++}})})},crispLine:function(a,
b){if(a[1]==a[4])a[1]=a[4]=aa(a[1])+b%2/2;if(a[2]==a[5])a[2]=a[5]=aa(a[2])+b%2/2;return a},path:function(a){return this.createElement("path").attr({d:a,fill:eb})},circle:function(a,b,c){a=typeof a=="object"?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(typeof a=="object"){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,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){if(arguments.length>1){var g=(f||0)%
2/2;a=aa(a||0)+g;b=aa(b||0)+g;c=aa((c||0)-2*g);d=aa((d||0)-2*g)}g=typeof a=="object"?a:{x:a,y:b,width:sb(c,0),height:sb(d,0)};return this.createElement("rect").attr(R(g,{rx:e||g.r,ry:e||g.r,fill:eb}))},g:function(a){return this.createElement("g").attr(S(a)&&{"class":Eb+a})},image:function(a,b,c,d,e){b=this.createElement("image").attr({x:b,y:c,width:d,height:e,preserveAspectRatio:eb});b.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a);return b},symbol:function(a,b,c,d,e){var f,g=this.symbols[a];
g=g&&g(b,c,d,e);var i=/^url\((.*?)\)$/;if(g){f=this.path(g);R(f,{symbolName:a,x:b,y:c,r:d});e&&R(f,e)}else if(i.test(a)){a=a.match(i)[1];f=this.image(a).attr({visibility:Fb});Da("img",{onload:function(){var j=this;j=sd[j.src]||[j.width,j.height];f.attr({x:aa(b-j[0]/2)+Ja,y:aa(c-j[1]/2)+Ja,width:j[0],height:j[1],visibility:"inherit"})},src:a})}else f=this.circle(b,c,d);return f},symbols:{square:function(a,b,c){c=0.707*c;return[Ua,a-c,b-c,Ga,a+c,b-c,a+c,b+c,a-c,b+c,"Z"]},triangle:function(a,b,c){return[Ua,
a,b-1.33*c,Ga,a+c,b+0.67*c,a-c,b+0.67*c,"Z"]},"triangle-down":function(a,b,c){return[Ua,a,b+1.33*c,Ga,a-c,b-0.67*c,a+c,b-0.67*c,"Z"]},diamond:function(a,b,c){return[Ua,a,b-c,Ga,a+c,b,a,b+c,a-c,b,"Z"]},arc:function(a,b,c,d){var e=Math.PI,f=d.start,g=d.end-1.0E-6,i=d.innerR,j=Hb(f),l=Ib(f),n=Hb(g);g=Ib(g);d=d.end-f<e?0:1;return[Ua,a+c*j,b+c*l,"A",c,c,0,d,1,a+c*n,b+c*g,Ga,a+i*n,b+i*g,"A",i,i,0,d,0,a+i*j,b+i*l,"Z"]}},clipRect:function(a,b,c,d){var e=Eb+Ic++,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="linearGradient";c=a[b];var g=Eb+Ic++,i,j,l;i=f.createElement(b).attr({id:g,gradientUnits:"userSpaceOnUse",x1:c[0],y1:c[1],x2:c[2],y2:c[3]}).add(f.defs);p(a.stops,function(n){if(e.test(n[1])){d=Jb(n[1]);j=d.get("rgb");l=d.get("a")}else{j=n[1];l=1}f.createElement("stop").attr({offset:n[0],"stop-color":j,"stop-opacity":l}).add(i)});return"url("+this.url+"#"+g+")"}else if(e.test(a)){d=
Jb(a);oa(b,c+"-opacity",d.get("a"));return d.get("rgb")}else return a},text:function(a,b,c,d,e,f){d=d||{};f=f||"left";e=e||0;var g=d.color||"#000000",i=sa.chart.style;b=aa(A(b,0));c=aa(A(c,0));R(d,{fontFamily:d.fontFamily||i.fontFamily,fontSize:d.fontSize||i.fontSize});d=oc(d);a={x:b,y:c,text:a,fill:g,style:d.replace(/"/g,"'")};if(e||f!="left")a=R(a,{"text-anchor":{left:"start",center:"middle",right:"end"}[f],transform:"rotate("+e+" "+b+" "+c+")"});return this.createElement("text").attr(a)}};var Lc;
if(!cd){var vd=fb(dc,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",Tb,";"];if(b=="shape"||b==xb)d.push("left:0;top:0;width:10px;height:10px;");c.push(' style="',d.join(""),'"/>');if(b){c=b==xb||b=="span"||b=="img"?c.join(""):a.prepVML(c);this.element=Da(c)}this.renderer=a},add:function(a){var b=this,c=b.renderer,d=b.element,e=c.box;c=a&&a.inverted;a=a?a.element||a:e;if(c){c=a.style;Sa(d,{flip:"x",left:parseInt(c.width,10)-10,top:parseInt(c.height,10)-10,rotation:-90})}a.appendChild(d);
return b},attr:function(a,b){var c,d,e,f=this.element,g=f.style,i=f.nodeName,j=this.renderer,l=this.symbolName,n,u=this.shadows,y,X=this;if(typeof a=="string"&&S(b)){c=a;a={};a[c]=b}if(typeof a=="string"){c=a;X=c=="strokeWidth"||c=="stroke-width"?f.strokeweight:A(this[c],parseInt(g[{x:"left",y:"top"}[c]||c],10))}else for(c in a){d=a[c];y=false;if(l&&/^(x|y|r|start|end|width|height|innerR)/.test(c)){if(!n){this.symbolAttr(a);n=true}y=true}else if(c=="d"){e=d.length;for(y=[];e--;)y[e]=typeof d[e]==
"number"?aa(d[e]*10)-5:d[e]=="Z"?"x":d[e];d=y.join(" ")||"x";f.path=d;if(u)for(e=u.length;e--;)u[e].path=d;y=true}else if(c=="zIndex"||c=="visibility"){g[c]=d;y=true}else if(/^(width|height)$/.test(c)){g[c]=d;this.updateClipping&&this.updateClipping();y=true}else if(/^(x|y)$/.test(c)){if(c=="y"&&f.tagName=="SPAN"&&f.lineHeight)d-=f.lineHeight;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";if(typeof d=="number")d+=Ja}else if(c=="fill")if(i=="SPAN")g.color=d;else{f.filled=d!=eb?true:false;d=j.color(d,f,c);c="fillcolor"}else if(c=="translateX"||c=="translateY"){this[c]=b;this.updateTransform();y=true}if(u&&c=="visibility")for(e=u.length;e--;)u[e].style[c]=d;if(c=="text")f.innerHTML=d;else if(!y)if(ma.documentMode==8)f[c]=d;else oa(f,c,d)}return X},clip:function(a){var b=this,c=a.members,d=c.length;c.push(b);b.destroyClip=function(){c.splice(d,1)};return b.css({clip:a.getCSS(b.inverted)})},
css:function(a){var b=this;Sa(b.element,a);return b},destroy:function(){var a=this;a.destroyClip&&a.destroyClip();dc.prototype.destroy.apply(this)},empty:function(){var a=this.element;a=a.childNodes;for(var b=a.length,c;b--;){c=a[b];c.parentNode.removeChild(c)}},getBBox:function(){var a=this.element,b,c=a.offsetWidth,d=a.parentNode;c||ma.body.appendChild(a);b={x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight};c||(d?d.appendChild(a):ma.body.removeChild(a));return b},on:function(a,
b){this.element["on"+a]=function(){var c=kb.event;c.target=c.srcElement;b(c)};return this},updateTransform:function(){var a=this,b=a.translateX||0,c=a.translateY||0;if(b||c)a.css({left:b,top:c})},shadow:function(a){var b=[],c=this.element,d=this.renderer,e,f=c.style,g;if(a&&typeof c.path=="string"){for(a=1;a<=3;a++){g=['<shape isShadow="true" strokeweight="',7-2*a,'" filled="false" path="',c.path,'" coordsize="100,100" style="',c.style.cssText,'" />'];e=Da(d.prepVML(g),null,{left:parseInt(f.left,
10)+1,top:parseInt(f.top,10)+1});g=['<stroke color="black" opacity="',0.05*a,'"/>'];Da(d.prepVML(g),null,null,e);c.parentNode.insertBefore(e,c);b.push(e)}this.shadows=b}return this}});Lc=function(){this.init.apply(this,arguments)};Lc.prototype=ka(Ub.prototype,{isIE8:qa.indexOf("MSIE 8.0")>-1,init:function(a,b,c){this.box=Da(xb,null,{width:b+Ja,height:c+Ja},a);this.Element=vd;if(!ma.namespaces.hcv){ma.namespaces.add("hcv","urn:schemas-microsoft-com:vml");ma.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:textpath, hcv\\:shape, hcv\\:stroke, hcv\\:line { behavior:url(#default#VML); display: inline-block; } "}},
clipRect:function(a,b,c,d){var e=this.createElement();return R(e,{members:[],element:{style:{left:a,top:b,width:c,height:d}},getCSS:function(f){var g=e.element.style,i=g.top,j=g.left,l=j+g.width;g=i+g.height;return"rect("+(f?j:i)+"px,"+(f?g:l)+"px,"+(f?l:g)+"px,"+(f?i:j)+"px)"},updateClipping:function(){p(e.members,function(f){f.css({clip:e.getCSS(f.inverted)})})}})},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f,g;c=a.linearGradient;var i,j,l,n;p(a.stops,function(u,y){if(e.test(u[1])){d=
Jb(u[1]);f=d.get("rgb");g=d.get("a")}else{f=u[1];g=1}if(y){l=f;n=g}else{i=f;j=g}});a=90-Ha.atan((c[3]-c[1])/(c[2]-c[0]))*180/Ha.PI;a=['<fill colors="0% ',i,",100% ",l,'" angle="',a,'" opacity="',n,'" o:opacity2="',j,'" type="gradient" focus="100%" />'];Da(this.prepVML(a),null,null,b)}else if(e.test(a)){d=Jb(a);a=["<",c,' opacity="',d.get("a"),'"/>'];Da(this.prepVML(a),null,null,b);return d.get("rgb")}else return a},prepVML:function(a){var b="display:inline-block;behavior:url(#default#VML);",c=this.isIE8;
a=a.join("");if(c){a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');a=a.indexOf('style="')==-1?a.replace("/>",' style="'+b+'" />'):a.replace('style="','style="'+b)}else a=a.replace("<","<hcv:");return a},text:function(a,b,c,d,e,f){d=d||{};f=f||"left";e=e||0;var g=aa(parseInt(d.fontSize||12,10)*1.2),i=sa.chart.style;b=aa(b);c=aa(c);R(d,{color:d.color||"#000000",whiteSpace:"nowrap",fontFamily:d.fontFamily||i.fontFamily,fontSize:d.fontSize||i.fontSize});if(e){i=(e||0)*Ha.PI*2/360;e=Hb(i);
i=Ib(i);var j=10;g=g*0.3;var l=f=="left",n=f=="right",u=l?b:b-j*e;b=n?b:b+j*e;l=l?c:c-j*i;c=n?c:c+j*i;u+=g*i;b+=g*i;l-=g*e;c-=g*e;if($a(u-b)<0.1)u+=0.1;if($a(l-c)<0.1)l+=0.1;c=this.createElement("line").attr({from:u+", "+l,to:b+", "+c});e=c.element;Da("hcv:fill",{on:true,color:d.color},null,e);Da("hcv:path",{textpathok:true},null,e);Da('<hcv:textpath style="v-text-align:'+f+";"+oc(d).replace(/"/g,"'")+'" on="true" string="'+a+'">',null,null,e)}else{c=this.createElement("span").attr({x:b,y:c-g,text:a});
e=c.element;e.lineHeight=g;Sa(e,d);if(f!="left"){a=c.getBBox().width;Sa(e,{left:b-a/{right:1,center:2}[f]+Ja})}}return c},path:function(a){return this.createElement("shape").attr({coordsize:"100 100",d:a})},circle:function(a,b,c){return this.path(this.symbols.circle(a,b,c))},g:function(a){var b;if(a)b={className:Eb+a,"class":Eb+a};return a=this.createElement(xb).attr(b)},image:function(a,b,c,d,e){return this.createElement("img").attr({src:a}).css({left:b,top:c,width:d,height:e})},rect:function(a,
b,c,d,e,f){if(arguments.length>1){var g=(f||0)%2/2;a=aa(a||0)+g;b=aa(b||0)+g;c=aa((c||0)-2*g);d=aa((d||0)-2*g)}if(typeof a=="object"){b=a.y;c=a.width;d=a.height;e=a.r;a=a.x}return this.symbol("rect",a||0,b||0,e||0,{width:c||0,height:d||0})},symbol:function(a,b,c){var d;d=/^url\((.*?)\)$/;return d=d.test(a)?this.createElement("img").attr({onload:function(){var e=this,f=[e.width,e.height];Sa(e,{left:aa(b-f[0]/2),top:aa(c-f[1]/2)})},src:a.match(d)[1]}):Ub.prototype.symbol.apply(this,arguments)},symbols:{arc:function(a,
b,c,d){var e=d.start,f=d.end,g=f-e==2*Math.PI?f-0.0010:f,i=Hb(e),j=Ib(e),l=Hb(g);g=Ib(g);d=d.innerR;if(f-e===0)return["x"];return["wa",a-c,b-c,a+c,b+c,a+c*i,b+c*j,a+c*l,b+c*g,"at",a-d,b-d,a+d,b+d,a+d*l,b+d*g,a+d*i,b+d*j,"x","e"]},circle:function(a,b,c){return["wa",a-c,b-c,a+c,b+c,a+c,b,a+c,b,"e"]},rect:function(a,b,c,d){var e=d.width;d=d.height;var f=a+e,g=b+d;c=Kb(c,e,d);return[Ua,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"]}}})}var $c=cd?Ub:Lc,Xb=function(){};Xb.prototype={init:function(a,b){var c=this;c.series=a;c.applyOptions(b);c.pointAttr={};if(a.options.colorByPoint){a=sa.colors;if(!c.options)c.options={};c.color=c.options.color=c.color||a[rb++];if(rb>=a.length)rb=0}return c},applyOptions:function(a){var b=this,c=b.series;if(typeof a=="number"||a===null)b.y=a;else if(typeof a=="object"&&typeof a.length!="number"){R(b,a);b.options=a}else if(typeof a[0]==
"string"){b.name=a[0];b.y=a[1]}else if(typeof a[0]=="number"){b.x=a[0];b.y=a[1]}if(b.x===Ra)b.x=c.autoIncrement()},destroy:function(){var a=this,b;a==a.series.chart.hoverPoint&&a.onMouseOut();Gb(a);p(["dataLabel","graphic","tracker","group"],function(c){a[c]&&a[c].destroy()});a.legendItem&&a.series.chart.legend.destroyItem(a);for(b in a)a[b]=null},select:function(a,b){var c=this,d=c.series;d=d.chart;c.selected=a=A(a,!c.selected);c.firePointEvent(a?"select":"unselect");c.setState(wb);b||p(d.getSelectedPoints(),
function(e){if(e.selected&&e!=c){e.selected=false;e.setState(La);e.firePointEvent("unselect")}})},onMouseOver:function(){var a=this,b=a.series.chart,c=b.tooltip,d=b.hoverPoint;d&&d!=a&&d.onMouseOut();a.firePointEvent("mouseOver");c&&c.refresh(a);a.setState(ob);b.hoverPoint=a},onMouseOut:function(){var a=this;a.firePointEvent("mouseOut");a.setState(La);a.series.chart.hoverPoint=null},update:function(a,b){var c=this,d=c.series;b=A(b,true);c.firePointEvent("update",{options:a},function(){c.applyOptions(a);
d.isDirty=true;b&&d.chart.redraw()})},remove:function(a){var b=this,c=b.series,d=c.chart,e=c.data,f=e.length;a=A(a,true);b.firePointEvent("remove",null,function(){for(;f--;)if(e[f]==b){e.splice(f,1);break}b.destroy();c.isDirty=true;a&&d.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series;e=e.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)};
za(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=this,b=ka(a.series.options.point,a.options);b=b.events;var c;a.events=b;for(c in b)jb(a,c,b[c]);this.hasImportedEvents=true}},setState:function(a){var b=this,c=b.series,d=c.options.states,e=c.options.marker,f=e&&!e.enabled,g=(e=e&&e.states[a])&&e.enabled===false,i=c.chart,j=b.pointAttr;a||(a=La);if(!(b.selected&&a!=wb||d[a]&&d[a].enabled===false||a&&(g||f&&!e.enabled)))if(a&&!b.graphic){if(!c.stateMarkerGraphic)c.stateMarkerGraphic=
i.renderer.circle(0,0,j[a].r).attr(j[a]).add(c.group);c.stateMarkerGraphic.translate(b.plotX,b.plotY)}else b.graphic&&b.graphic.attr(j[a])},setTooltipText:function(){var a=this;a.tooltipText=a.series.chart.options.tooltip.formatter.call({series:a.series,point:a,x:a.category,y:a.y,percentage:a.percentage,total:a.total||a.stackTotal})}};var Qa=function(){};Qa.prototype={isCartesian:true,type:"line",pointClass:Xb,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},
init:function(a,b){var c=this,d,e=a.series.length;c.chart=a;b=c.setOptions(b);R(c,{index:e,options:b,name:b.name||"Series "+(e+1),state:La,pointAttr:{},visible:b.visible!==false,selected:b.selected===true});a=b.events;for(d in a)jb(c,d,a[d]);c.getColor();c.getSymbol();c.setData(b.data,false)},autoIncrement:function(){var a=this,b=a.options,c=a.xIncrement;c=A(c,b.pointStart,0);a.pointInterval=A(a.pointInterval,b.pointInterval,1);a.xIncrement=c+a.pointInterval;return c},cleanData:function(){var a=this;
a=a.data;var b;a.sort(function(c,d){return c.x-d.x});for(b=a.length-1;b>=0;b--)a[b-1]&&a[b-1].x==a[b].x&&a.splice(b-1,1)},getSegments:function(){var a=-1,b=[],c=this.data;p(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.plotOptions;return a=ka(b[this.type],b.series,a)},getColor:function(){var a=this.chart.options.colors;this.color=this.options.color||a[rb++]||"#0000ff";
if(rb>=a.length)rb=0},getSymbol:function(){var a=this.chart.options.symbols,b=this.options.marker.symbol||a[kc++];this.symbol=b;if(kc>=a.length)kc=0},addPoint:function(a,b,c){var d=this,e=d.data;a=(new d.pointClass).init(d,a);b=A(b,true);e.push(a);c&&e[0].remove(false);d.isDirty=true;b&&d.chart.redraw()},setData:function(a,b){var c=this,d=c.data,e=c.initialColor,f=d&&d.length||0;c.xIncrement=null;if(S(e))rb=e;for(a=Db(nc(a||[]),function(g){return(new c.pointClass).init(c,g)});f--;)d[f].destroy();
c.data=a;c.cleanData();c.getSegments();c.isDirty=true;A(b,true)&&c.chart.redraw()},remove:function(a){var b=this,c=b.chart;a=A(a,true);if(!b.isRemoving){b.isRemoving=true;za(b,"remove",null,function(){b.destroy();c.isDirty=true;a&&c.redraw()})}b.isRemoving=false},translate:function(){for(var a=this,b=a.chart,c=a.options.stacking,d=a.xAxis.categories,e=a.yAxis,f=e.stacks[a.type],g=a.data,i=g.length;i--;){var j=g[i],l=j.x,n=j.y,u;j.plotX=a.xAxis.translate(l);if(c&&a.visible&&f[l]){u=f[l];l=u.total;
u.cum=u=u.cum-n;n=u+n;if(c=="percent"){u=l?u*100/l:0;n=l?n*100/l:0}j.percentage=l?j.y*100/l:0;j.stackTotal=l;j.yBottom=e.translate(u,0,1)}if(n!==null)j.plotY=e.translate(n,0,1);j.clientX=b.inverted?b.plotHeight-j.plotX:j.plotX;j.category=d&&d[j.x]!==Ra?d[j.x]:j.x}},setTooltipPoints:function(a){var b=this,c=b.chart,d=c.inverted,e=[],f=(d?c.plotTop:c.plotLeft)+c.plotSizeX,g,i,j=[];if(a)b.tooltipPoints=null;p(b.segments,function(l){e=e.concat(l)});if(b.xAxis&&b.xAxis.reversed)e=e.reverse();p(e,function(l,
n){b.tooltipPoints||l.setTooltipText();g=e[n-1]?e[n-1].high+1:0;for(i=l.high=e[n+1]?hb((l.plotX+(e[n+1]?e[n+1].plotX:f))/2):f;g<=i;)j[d?f-g++:g++]=l});b.tooltipPoints=j},onMouseOver:function(){var a=this,b=a.chart,c=b.hoverSeries,d=a.stateMarkerGraphic;if(!b.mouseIsDown){d&&d.show();c&&c!=a&&c.onMouseOut();a.options.events.mouseOver&&za(a,"mouseOver");a.tracker&&a.tracker.toFront();a.setState(ob);b.hoverSeries=a}},onMouseOut:function(){var a=this,b=a.options,c=a.chart,d=c.tooltip,e=c.hoverPoint;e&&
e.onMouseOut();a&&b.events.mouseOut&&za(a,"mouseOut");d&&!b.stickyTracking&&d.hide();a.setState();c.hoverSeries=null},animate:function(a){var b=this,c=b.chart,d=b.clipRect;if(a){if(!d.isAnimating){d.attr("width",0);d.isAnimating=true}}else{d.animate({width:c.plotSizeX},{complete:function(){d.isAnimating=false},duration:1E3});this.animate=null}},drawPoints:function(){var a=this,b,c=a.data,d=a.chart,e,f,g,i,j,l;if(a.options.marker.enabled)for(g=c.length;g--;){i=c[g];e=i.plotX;f=i.plotY;l=i.graphic;
if(i.plotY!==Ra){b=i.pointAttr[i.selected?wb:La];j=b.r;if(l)l.attr({x:e,y:f,r:j});else i.graphic=d.renderer.symbol(A(i.marker&&i.marker.symbol,a.symbol),e,f,j).attr(b).add(a.group)}}},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,i={};a=a||{};b=b||{};c=c||{};d=d||{};for(f in e){g=e[f];i[f]=A(a[g],b[f],c[f],d[f])}return i},getAttribs:function(){var a=this,b=a.options.marker||a.options,c=b.states,d=c[ob],e,f={},g=a.color,i=a.data,j=[],l,n=a.pointAttrToOptions;if(a.options.marker){f=
{stroke:g,fill:g};d.radius=d.radius||b.radius+2;d.lineWidth=d.lineWidth||b.lineWidth+1}else{f={fill:g};d.color=d.color||Jb(d.color||g).brighten(d.brightness).get()}j[La]=a.convertAttribs(b,f);p([ob,wb],function(y){j[y]=a.convertAttribs(c[y],j[La])});a.pointAttr=j;for(f=i.length;f--;){g=i[f];b=g.options&&g.options.marker||g.options;e=false;if(g.options)for(var u in n)if(b[n[u]])e=true;if(e){l=[];c=b.states||{};e=c[ob]=c[ob]||{};if(!a.options.marker)e.color=Jb(e.color||g.options.color).brighten(e.brightness||
d.brightness).get();l[La]=a.convertAttribs(b,j[La]);l[ob]=a.convertAttribs(c[ob],j[ob],l[La]);l[wb]=a.convertAttribs(c[wb],j[wb],l[La])}else l=j;g.pointAttr=l}},destroy:function(){var a=this,b=a.chart,c=b.series,d=a.clipRect,e;Gb(a);a.legendItem&&a.chart.legend.destroyItem(a);p(a.data,function(f){f.destroy()});p(["area","graph","dataLabelsGroup","group","tracker"],function(f){a[f]&&a[f].destroy()});d&&d!=a.chart.clipRect&&d.destroy();if(b.hoverSeries==a)b.hoverSeries=null;p(c,function(f,g){f==a&&
c.splice(g,1)});for(e in a)delete a[e]},drawDataLabels:function(){if(this.options.dataLabels.enabled){var a=this,b,c,d=a.data,e=a.options.dataLabels,f,g=a.dataLabelsGroup,i=a.chart,j=i.inverted,l=a.type,n,u;if(!g)g=a.dataLabelsGroup=i.renderer.g(Eb+"data-labels").attr({visibility:a.visible?Wb:Fb,zIndex:4}).translate(i.plotLeft,i.plotTop).add();n=e.color;if(n=="auto")n=null;e.style.color=A(n,a.color);p(d,function(y){var X=A(y.barX,y.plotX),Ba=y.plotY,P=y.tooltipPos,ea=y.dataLabel;if(ea)y.dataLabel=
ea.destroy();f=e.formatter.call({x:y.x,y:y.y,series:a,point:y,percentage:y.percentage,total:y.total||y.stackTotal});b=(j?i.plotWidth-Ba:X)+e.x;c=(j?i.plotHeight-X:Ba)+e.y;if(P){b=P[0]+e.x;c=P[1]+e.y}u=e.align;if(l=="column")b+={center:y.barW/2,right:y.barW}[u]||0;if(f)y.dataLabel=i.renderer.text(f,b,c,e.style,e.rotation,u).attr({zIndex:1}).add(g);a.drawConnector&&a.drawConnector(y)})}},drawGraph:function(){var a=this,b=a.options,c=a.chart,d=a.graph,e=[],f=a.area,g=a.group,i=b.lineColor||a.color,j=
b.lineWidth,l;c=c.renderer;var n=a.yAxis.getThreshold(b.threshold||0),u=/^area/.test(a.type),y=[];p(a.segments,function(X){if(X.length>0){l=[];p(X,function(mb,Ka){Ka<2&&l.push([Ua,Ga][Ka]);if(Ka&&b.step){Ka=X[Ka-1];l.push(mb.plotX,Ka.plotY)}l.push(mb.plotX,mb.plotY)});e=e.concat(l);if(u&&X.length>1){var Ba=[],P,ea=l.length;for(P=0;P<ea;P++)Ba.push(l[P]);if(b.stacking&&a.type!="areaspline")for(P=X.length-1;P>=0;P--)Ba.push(X[P].plotX,X[P].yBottom);else Ba.push(X[X.length-1].plotX,n,X[0].plotX,n,"z");
y=y.concat(Ba)}}});a.graphPath=e;if(d)d.attr({d:e});else if(j)a.graph=c.path(e).attr({stroke:i,"stroke-width":j+Ja}).add(g).shadow(b.shadow);if(u){d=A(b.fillColor,Jb(a.color).setOpacity(b.fillOpacity||0.75).get());if(f)f.attr({d:y});else a.area=a.chart.renderer.path(y).attr({fill:d}).add(a.group)}},render:function(){var a=this,b=a.chart,c,d=a.options.animation&&a.animate;c=b.renderer;if(!a.clipRect){a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:c.clipRect(0,0,b.plotSizeX,b.plotSizeY);if(!b.clipRect)b.clipRect=
a.clipRect}if(!a.group){c=a.group=c.g("series");b.inverted&&c.attr({width:b.plotWidth,height:b.plotHeight}).invert();c.clip(a.clipRect).attr({visibility:a.visible?Wb:Fb,zIndex:3}).translate(b.plotLeft,b.plotTop).add()}a.drawDataLabels();d&&a.animate(true);a.getAttribs();a.drawGraph&&a.drawGraph();a.drawPoints();a.options.enableMouseTracking!==false&&a.drawTracker();d&&a.animate();a.isDirty=false},redraw:function(){var a=this;a.translate();a.setTooltipPoints(true);a.render()},setState:function(a){var b=
this,c=b.options,d=b.graph,e=c.states,f=b.stateMarkerGraphic;c=c.lineWidth;a=a||La;if(b.state!=a){b.state=a;if(!(e[a]&&e[a].enabled===false)){if(a)c=e[a].lineWidth||c;else f&&f.hide();if(d)d.animate({"stroke-width":c},a?0:500)}}},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f=c.group,g=c.tracker,i=c.dataLabelsGroup,j,l=c.data,n=d.options.chart.ignoreHiddenSeries;j=c.visible;j=(c.visible=a=a===Ra?!j:a)?"show":"hide";if(a)c.isDirty=n;f&&f[j]();if(g)g[j]();else for(f=l.length;f--;){g=
l[f];g.tracker&&g.tracker[j]()}i&&i[j]();e&&d.legend.colorizeItem(c,a);n&&c.options.stacking&&p(d.series,function(u){if(u.options.stacking&&u.visible)u.isDirty=true});b!==false&&d.redraw();za(c,j)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(a){var b=this;b.selected=a=a===Ra?!b.selected:a;if(b.checkbox)b.checkbox.checked=a;za(b,a?"select":"unselect")},drawTracker:function(){var a=this,b=a.options,c=a.graphPath,d=a.chart,e=d.options.tooltip.snap,f=
a.tracker,g=b.cursor;g=g&&{cursor:g};var i;for(i=0;i<c.length;i++)if(c[i]==Ua&&c[i+3]==Ua){c[i+1]-=2;c.splice(i+3,0,Ga,c[i+1]+4,c[i+2])}if(f)f.attr({d:c});else a.tracker=d.renderer.path(c).attr({isTracker:true,stroke:dd,fill:eb,"stroke-width":b.lineWidth+2*e,"stroke-linecap":"round",visibility:a.visible?Wb:Fb,zIndex:1}).on("mouseover",function(){d.hoverSeries!=a&&a.onMouseOver()}).on("mouseout",function(){b.stickyTracking||a.onMouseOut()}).css(g).add(d.trackerGroup)}};qa=fb(Qa);db.line=qa;qa=fb(Qa,
{type:"area"});db.area=qa;bd.prototype={get:function(a){a||(a=50);var b=this.n;b=(this.xdata[b-1]-this.xdata[0])/(a-1);var c=[],d=[];c[0]=this.xdata[0];d[0]=this.ydata[0];for(var e=[{plotX:c[0],plotY:d[0]}],f=1;f<a;f++){c[f]=c[0]+f*b;d[f]=this.interpolate(c[f]);e[f]={plotX:c[f],plotY:d[f]}}return e},interpolate:function(a){for(var b=this.n-1,c=0;b-c>1;){var d=(b+c)/2;if(this.xdata[hb(d)]>a)b=d;else c=d}b=hb(b);c=hb(c);d=this.xdata[b]-this.xdata[c];var e=(this.xdata[b]-a)/d;a=(a-this.xdata[c])/d;return e*
this.ydata[c]+a*this.ydata[b]+((e*e*e-e)*this.y2[c]+(a*a*a-a)*this.y2[b])*d*d/6}};qa=fb(Qa,{type:"spline",drawGraph:function(){var a=this,b=a.segments;a.splinedata=a.getSplineData();a.segments=a.splinedata;Qa.prototype.drawGraph.apply(a,arguments);a.segments=b},getSplineData:function(){var a=this,b=a.chart,c=[],d;p(a.segments,function(e){if(a.xAxis.reversed)e=e.reverse();var f=[],g,i;p(e,function(j,l){g=e[l+2]||e[l+1]||j;i=e[l-2]||e[l-1]||j;g.plotX>=0&&i.plotX<=b.plotWidth&&f.push(j)});if(f.length>
1)d=aa(sb(b.plotWidth,f[f.length-1].clientX-f[0].clientX)/3);c.push(e.length>1?d?(new bd(f)).get(d):[]:e)});return c}});db.spline=qa;qa=fb(qa,{type:"areaspline"});db.areaspline=qa;var mc=fb(Qa,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){Qa.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&p(b.series,function(c){if(c.type==a.type)c.isDirty=true})},translate:function(){var a=this,b=a.chart,
c=0,d=a.xAxis.reversed,e=a.xAxis.categories,f;Qa.prototype.translate.apply(a);p(b.series,function(P){if(P.type==a.type)if(P.options.stacking){S(f)||(f=c++);P.columnIndex=f}else P.columnIndex=c++});var g=a.options,i=a.data,j=a.closestPoints;b=$a(i[1]?i[j].plotX-i[j-1].plotX:b.plotSizeX/(e?e.length:1));e=b*g.groupPadding;j=b-2*e;j=j/c;var l=g.pointWidth,n=S(l)?(j-l)/2:j*g.pointPadding,u=A(l,j-2*n);l=(d?c-a.columnIndex:a.columnIndex)||0;var y=n+(e+l*j-b/2)*(d?-1:1),X=a.yAxis.getThreshold(g.threshold||
0),Ba=g.minPointLength;p(i,function(P){var ea=P.plotY,mb=P.plotX+y,Ka=Kb(ea,X),Vb=u,F=$a((P.yBottom||X)-ea),va;if($a(F)<(Ba||5)){if(Ba){F=Ba;Ka=X-(ea<=X?Ba:0)}va=Ka-3}R(P,{barX:mb,barY:Ka,barW:Vb,barH:F});P.shapeType="rect";P.shapeArgs={x:mb,y:Ka,width:Vb,height:F,r:g.borderRadius};if(S(va))P.trackerArgs=ka(P.shapeArgs,{height:6,y:va})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;p(a.data,function(f){if(S(f.plotY)){d=f.graphic;
e=f.shapeArgs;if(d)d.attr(e);else f.graphic=c[f.shapeType](e).attr(f.pointAttr[f.selected?wb:La]).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,i=g&&{cursor:g},j;p(a.data,function(l){e=l.tracker;d=l.trackerArgs||l.shapeArgs;if(e)e.attr(d);else l.tracker=c[l.shapeType](d).attr({isTracker:f,fill:dd,visibility:a.visible?Wb:Fb,zIndex:1}).on("mouseover",function(n){j=n.relatedTarget||n.fromElement;b.hoverSeries!=a&&oa(j,"isTracker")!=
f&&a.onMouseOver();l.onMouseOver()}).on("mouseout",function(n){if(!a.options.stickyTracking){j=n.relatedTarget||n.toElement;oa(j,"isTracker")!=f&&a.onMouseOut()}}).css(i).add(b.trackerGroup)})},cleanData:function(){var a=this,b=a.data,c,d,e,f;Qa.prototype.cleanData.apply(a);for(f=b.length-1;f>=0;f--)if(b[f-1]){c=b[f].x-b[f-1].x;if(d===Ra||c<d){d=c;e=f}}a.closestPoints=e},animate:function(a){var b=this,c=b.data;if(!a){p(c,function(d){var e=d.graphic;if(e){e.attr({height:0,y:b.yAxis.translate(0,0,1)});
e.animate({height:d.barH,y:d.barY},{duration:1E3})}});b.animate=null}},remove:function(){var a=this,b=a.chart;b.hasRendered&&p(b.series,function(c){if(c.type==a.type)c.isDirty=true});Qa.prototype.remove.apply(a,arguments)}});db.column=mc;qa=fb(mc,{type:"bar",init:function(a){a.inverted=this.inverted=true;mc.prototype.init.apply(this,arguments)}});db.bar=qa;qa=fb(Qa,{type:"scatter",translate:function(){var a=this;Qa.prototype.translate.apply(a);p(a.data,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;p(a.data,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)})},cleanData:function(){}});db.scatter=qa;qa=fb(Xb,{init:function(){Xb.prototype.init.apply(this,arguments);var a=this,b;R(a,{visible:a.visible!==false,name:A(a.name,"Slice")});b=
function(){a.slice()};jb(a,"select",b);jb(a,"unselect",b);return a},setVisible:function(a){var b=this,c=b.series.chart;if(b.visible=a=a===Ra?!b.visible:a){b.group.show();b.tracker.show()}else{b.group.hide();b.tracker.hide()}b.legendItem&&c.legend.colorizeItem(b,a)},slice:function(a,b){var c=this,d=c.series;d=d.chart;var e=c.slicedTranslation;A(b,true);a=c.sliced=S(a)?a:!c.sliced;c.group.animate({translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop},100)}});qa=fb(Qa,{type:"pie",isCartesian:false,
pointClass:qa,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=rb},translate:function(){var a=0,b=this,c=-0.25,d=b.options,e=d.slicedOffset,f=d.center,g=b.chart,i=g.plotWidth,j=g.plotHeight,l,n,u;b=b.data;var y=2*Ha.PI,X,Ba=Kb(i,j),P;f.push(d.size,d.innerSize||0);f=Db(f,function(ea,mb){return(P=/%$/.test(ea))?[i,j,Ba,Ba][mb]*parseInt(ea,10)/100:ea});p(b,function(ea){a+=ea.y});p(b,function(ea){X=a?ea.y/a:0;l=c*y;c+=X;n=c*y;ea.shapeType=
"arc";ea.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:l,end:n};u=(n+l)/2;ea.slicedTranslation=Db([Hb(u)*e+g.plotLeft,Ib(u)*e+g.plotTop],aa);ea.tooltipPos=[f[0]+Hb(u)*f[2]*0.35,f[1]+Ib(u)*f[2]*0.35];ea.percentage=X*100;ea.total=a});this.setTooltipPoints()},render:function(){var a=this;a.getAttribs();this.drawPoints();a.options.enableMouseTracking!==false&&a.drawTracker();this.drawDataLabels();a.isDirty=false},drawPoints:function(){var a=this,b=a.chart,c=b.renderer,d,e,f;p(a.data,function(g){e=
g.graphic;f=g.shapeArgs;if(!g.group){d=g.sliced?g.slicedTranslation:[b.plotLeft,b.plotTop];g.group=c.g("point").attr({zIndex:3}).add().translate(d[0],d[1])}if(e)e.attr(f);else g.graphic=c.arc(f).attr(g.pointAttr[La]).add(g.group);g.visible===false&&g.setVisible(false)})},drawTracker:mc.prototype.drawTracker,getSymbol:function(){}});db.pie=qa;kb.Highcharts={Chart:id,dateFormat:hc,getOptions:fd,numberFormat:gd,Point:Xb,Renderer:$c,seriesTypes:db,setOptions:ed,Series:Qa,addEvent:jb,createElement:Da,
discardElement:bc,css:Sa,each:p,extend:R,map:Db,merge:ka,pick:A,extendClass:fb}})();
