(function(){function aI(n,l){var q;n||(n={});for(q in l){n[q]=l[q]}return n}function aD(n,l){return parseInt(n,l||10)}function g(l){return typeof l==="string"}function bl(l){return typeof l==="object"}function bg(l){return typeof l==="number"}function aj(l){return ax.log(l)/ax.LN10}function H(n,l){for(var q=n.length;q--;){if(n[q]===l){n.splice(q,1);break}}}function ad(l){return l!==bo&&l!==null}function aH(n,l,z){var y,q;if(g(l)){ad(z)?n.setAttribute(l,z):n&&n.getAttribute&&(q=n.getAttribute(l))}else{if(ad(l)&&bl(l)){for(y in l){n.setAttribute(y,l[y])}}}return q}function aO(l){return Object.prototype.toString.call(l)==="[object Array]"?l:[l]}function af(){var n=arguments,l,y,q=n.length;for(l=0;l3?E.length%3:0;return z+(q?E.substr(0,q)+C:"")+E.substr(q).replace(/(\d{3})(?=\d)/g,"$1"+C)+(y?l+a9(n-E).toFixed(y).slice(2):"")}function aG(n){for(var l={left:n.offsetLeft,top:n.offsetTop},n=n.offsetParent;n;){l.left+=n.offsetLeft,l.top+=n.offsetTop,n!==aF.body&&n!==aF.documentElement&&(l.left-=n.scrollLeft,l.top-=n.scrollTop),n=n.offsetParent}return l}function al(){this.symbol=this.color=0}function aR(Q,K,G,F,E,C,z){var y=z.x,z=z.y,q=y-Q+G-25,n=z-K+F+10,l;q<7&&(q=G+y+15);q+Q>G+E&&(q-=q+Q-(G+E),n-=K,l=!0);n<5?(n=5,l&&z>=n&&z<=n+K&&(n=z+K-5)):n+K>F+C&&(n=F+C-K-5);return{x:q,y:n}}function J(n,l){var y=n.length,q;for(q=0;qc1?c1=dJ:dJc1?c1=dN:dK=0?(cE=0,c7=!0):c1<0&&(c1=0,cb=!0)))}})}function dw(S,y){var ba,U;cc=y?1:ax.pow(10,aL(ax.log(S)/ax.LN10));ba=S/cc;if(!y&&(y=[1,2,2.5,5,10],dj.allowDecimals===!1||cK)){cc===1?y=[1,2,5,10]:cc<=0.1&&(y=[1/cc])}for(U=0;U0||!cb)){cM+=dI*ca}}cA=cN===cM?1:cF&&!dE&&dD===dG.options.tickPixelInterval?dG.tickInterval:af(dE,dk?1:(cM-cN)*dD/dh);!dq&&!ad(dj.tickInterval)&&(cA=dw(cA));cW.tickInterval=cA;cY=dj.minorTickInterval==="auto"&&cA?cA/5:dj.minorTickInterval;if(dq){cI=[];var dE=a5.global.useUTC,ba=1000/u,S=60000/u,da=3600000/u,dD=86400000/u;dI=604800000/u;dF=2592000000/u;var y=31556952000/u,dK=[["second",ba,[1,2,5,10,15,30]],["minute",S,[1,2,5,10,15,30]],["hour",da,[1,2,3,4,6,8,12]],["day",dD,[1,2]],["week",dI,[1,2]],["month",dF,[1,2,3,4,6]],["year",y,null]],dJ=dK[6],U=dJ[1],dL=dJ[2];for(dG=0;dG=ba&&dL.setSeconds(U>=S?0:dK*aL(dL.getSeconds()/dK));if(U>=S){dL[p](U>=da?0:dK*aL(dL[ab]()/dK))}if(U>=da){dL[bm](U>=dD?0:dK*aL(dL[A]()/dK))}if(U>=dD){dL[bc](U>=dF?1:dK*aL(dL[b]()/dK))}U>=dF&&(dL[a3](U>=y?0:dK*aL(dL[am]()/dK)),dH=dL[L]());U>=y&&(dH-=dH%dK,dL[aN](dH));if(U===dI){dL[bc](dL[b]()-dL[f]()+dj.startOfWeek)}dG=1;dH=dL[L]();ba=dL.getTime()/u;S=dL[am]();for(da=dL[b]();badH&&cI.shift();dj.endOnTick?cM=dG:cMbW[c5]){bW[c5]=cI.length}}}function dt(){var S,y;cD=cN;dC=cM;dx();du();c8=c0;c0=dh/(cM-cN||1);if(!dp){for(S in de){for(y in de[S]){de[S][y].cum=de[S][y].total}}}if(!cW.isDirty){cW.isDirty=cN!==cD||cM!==dC}}function ds(y){y=(new dz(y)).render();cB.push(y);return y}function dr(){var dG=dj.title,dF=dj.stackLabels,dE=dj.alternateGridColor,dD=dj.lineWidth,da,ba,U=(da=bF.hasRendered)&&ad(cD)&&!isNaN(cD);ba=cR.length&&ad(cN)&&ad(cM);dh=dl?bY:b4;c0=dh/(cM-cN||1);cP=dl?ch:cy;if(ba||cF){if(cY&&!dk){for(ba=cN+(cI[0]-cN)%cY;ba<=cM;ba+=cY){c6[ba]||(c6[ba]=new dA(ba,!0)),U&&c6[ba].isNew&&c6[ba].render(null,!0),c6[ba].isActive=!0,c6[ba].render()}}ah(cI,function(dI,dH){if(!cF||dI>=cN&&dI<=cM){U&&cH[dI].isNew&&cH[dI].render(dH,!0),cH[dI].isActive=!0,cH[dI].render(dH)}});dE&&ah(cI,function(dI,dH){if(dH%2===0&&dI=1000?a0(y,0):y},dm=dl&&dj.labels.staggerLines,cJ=dj.reversed,cZ=dk&&dj.tickmarkPlacement==="between"?0.5:0;dA.prototype={addLabel:function(){var S=this.pos,y=dj.labels,dD=!(S===cN&&!af(dj.showFirstLabel,1)||S===cM&&!af(dj.showLastLabel,0)),da=dk&&dl&&dk.length&&!y.step&&!y.staggerLines&&!y.rotation&&bY/dk.length||!dl&&bY/2,ba=dk&&ad(dk[S])?dk[S]:S,U=this.label,S=cL.call({isFirst:S===cI[0],isLast:S===cI[cI.length-1],dateTimeLabelFormat:di,value:cK?ax.pow(10,ba):ba}),da=da&&{width:au(1,T(da-2*(y.padding||10)))+an},da=aI(da,y.style);U===bo?this.label=ad(S)&&dD&&y.enabled?cd.text(S,0,0,y.useHTML).attr({align:y.align,rotation:y.rotation}).css(da).add(dc):null:U&&U.attr({text:S}).css(da)},getLabelSize:function(){var y=this.label;return y?(this.labelBBox=y.getBBox())[dl?"height":"width"]:0},render:function(dP,dO){var dN=!this.minor,dL=this.label,dK=this.pos,dJ=dj.labels,dI=this.gridLine,dH=dN?dj.gridLineWidth:dj.minorGridLineWidth,dG=dN?dj.gridLineColor:dj.minorGridLineColor,dF=dN?dj.gridLineDashStyle:dj.minorGridLineDashStyle,da=this.mark,dE=dN?dj.tickLength:dj.minorTickLength,y=dN?dj.tickWidth:dj.minorTickWidth||0,U=dN?dj.tickColor:dj.minorTickColor,dD=dN?dj.tickPosition:dj.minorTickPosition,dM=dJ.step,S=dO&&cs||cv,ba;ba=dl?cX(dK+cZ,null,null,dO)+cP:ch+db+(dg?(dO&&l||K)-bC-ch:0);S=dl?S-cy+db-(dg?b4:0):S-cX(dK+cZ,null,null,dO)-cP;if(dH){dK=cz(dK+cZ,dH,dO);if(dI===bo){dI={stroke:dG,"stroke-width":dH};if(dF){dI.dashstyle=dF}if(dN){dI.zIndex=1}this.gridLine=dI=dH?cd.path(dK).attr(dI).add(cQ):null}!dO&&dI&&dK&&dI.animate({d:dK})}if(y){dD==="inside"&&(dE=-dE),dg&&(dE=-dE),dN=cd.crispLine([R,ba,S,aV,ba+(dl?0:-dE),S+(dl?dE:0)],y),da?da.animate({d:dN}):this.mark=cd.path(dN).attr({stroke:U,"stroke-width":y}).add(dc)}if(dL&&!isNaN(ba)){ba=ba+dJ.x-(cZ&&dl?cZ*c0*(cJ?-1:1):0);S=S+dJ.y-(cZ&&!dl?cZ*c0*(cJ?1:-1):0);ad(dJ.y)||(S+=aD(dL.styles.lineHeight)*0.9-dL.getBBox().height/2);dm&&(S+=dP/(dM||1)%dm*16);if(dM){dL[dP%dM?"hide":"show"]()}dL[this.isNew?"attr":"animate"]({x:ba,y:S})}this.isNew=!1},destroy:function(){aq(this)}};dz.prototype={render:function(){var dL=this,dK=dL.options,dJ=dK.label,dI=dL.label,dH=dK.width,dG=dK.to,dF=dK.from,dE=dK.value,dD,ba=dK.dashStyle,y=dL.svgElem,U=[],da,dM,dN=dK.color;dM=dK.zIndex;var S=dK.events;cK&&(dF=aj(dF),dG=aj(dG),dE=aj(dE));if(dH){if(U=cz(dE,dH),dK={stroke:dN,"stroke-width":dH},ba){dK.dashstyle=ba}}else{if(ad(dF)&&ad(dG)){dF=au(dF,cN),dG=N(dG,cM),dD=cz(dG),(U=cz(dF))&&dD?U.push(dD[4],dD[5],dD[1],dD[2]):U=null,dK={fill:dN}}else{return}}if(ad(dM)){dK.zIndex=dM}if(y){U?y.animate({d:U},null,y.onGetPath):(y.hide(),y.onGetPath=function(){y.show()})}else{if(U&&U.length&&(dL.svgElem=y=cd.path(U).attr(dK).add(),S)){for(da in ba=function(dO){y.on(dO,function(dP){S[dO].apply(dL,[dP])})},S){ba(da)}}}if(dJ&&ad(dJ.text)&&U&&U.length&&bY>0&&b4>0){dJ=aA({align:dl&&dD&&"center",x:dl?!dD&&4:10,verticalAlign:!dl&&dD&&"middle",y:dl?dD?16:10:dD?6:-4,rotation:dl&&!dD&&90},dJ);if(!dI){dL.label=dI=cd.text(dJ.text,0,0).attr({align:dJ.textAlign||dJ.align,rotation:dJ.rotation,zIndex:dM}).css(dJ.style).add()}dD=[U[1],U[4],af(U[6],U[1])];U=[U[2],U[5],af(U[7],U[2])];da=N.apply(ax,dD);dM=N.apply(ax,U);dI.align(dJ,!1,{x:da,y:dM,width:au.apply(ax,dD)-da,height:au.apply(ax,U)-dM});dI.show()}else{dI&&dI.hide()}return dL},destroy:function(){aq(this);H(cB,this)}};dy.prototype={destroy:function(){aq(this)},setTotal:function(y){this.cum=this.total=y},render:function(S){var y=this.options.formatter.call(this);this.label?this.label.attr({text:y,visibility:ao}):this.label=bF.renderer.text(y,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:ao}).add(S)},setOffset:function(S,y){var dE=this.isNegative,dD=cW.translate(this.total),da=cW.translate(0),da=a9(dD-da),ba=bF.xAxis[0].translate(this.x)+S,U=bF.plotHeight,dE={x:b6?dE?dD:dD-da:ba,y:b6?U-ba-y:dE?U-dD-da:U-dD,width:b6?da:y,height:b6?y:da};this.label&&this.label.align(this.alignOptions,null,dE).attr({visibility:ar})}};cX=function(S,y,dF,dE,dD){var da=1,ba=0,U=dE?c8:c0,dE=dE?cD:cN;U||(U=c0);dF&&(da*=-1,ba=dh);cJ&&(da*=-1,ba-=da*dh);y?(cJ&&(S=dh-S),S=S/U+dE,cK&&dD&&(S=ax.pow(10,S))):(cK&&dD&&(S=aj(S)),S=da*(S-dE)*U+ba);return S};cz=function(dG,dF,dE){var dD,da,ba,dG=cX(dG,null,null,dE),U=dE&&cs||cv,S=dE&&l||K,y,dE=da=T(dG+cP);dD=ba=T(U-dG-cP);if(isNaN(dG)){y=!0}else{if(dl){if(dD=cf,ba=U-cy,dEch+bY){y=!0}}else{if(dE=ch,da=S-bC,dDcf+b4){y=!0}}}return y?null:cd.crispLine([R,dE,dD,aV,da,ba],dF||0)};b6&&dp&&cJ===bo&&(cJ=!0);aI(cW,{addPlotBand:ds,addPlotLine:ds,adjustTickAmount:function(){if(bW&&!dq&&!dk&&!cF){var S=cC,y=cI.length;cC=bW[c5];if(yy?y=cN:cM'+(cQ?aP("%A, %b %e, %Y",cP):cP)+""]:[];ah(cM,function(cR){cN.push(cR.point.tooltipFormatter(cO))});return cN.join("
")}function cJ(cN,cM){cz=U?cN:(2*cz+cN)/3;S=U?cM:(S+cM)/2;ba.translate(cz,S);b1=a9(cN-cz)>1||a9(cM-S)>1?function(){cJ(cN,cM)}:null}function cI(){if(!U){var cM=bF.hoverPoints;ba.hide();ah(cE,function(cN){cN&&cN.hide()});cM&&ah(cM,function(cN){cN.setState()});bF.hoverPoints=null;U=!0}}var cH,cG=cL.borderWidth,cF=cL.crosshairs,cE=[],cD=cL.style,cC=cL.shared,cB=aD(cD.padding),y=cG+cB,U=!0,cc,ca,cz=0,S=0;cD.padding=0;var ba=cd.g("tooltip").attr({zIndex:8}).add(),cA=cd.rect(y,y,0,0,cL.borderRadius,cG).attr({fill:cL.backgroundColor,"stroke-width":cG}).add(ba).shadow(cL.shadow),cb=cd.text("",cB+y,aD(cD.fontSize)+cB+y,cL.useHTML).attr({zIndex:1}).css(cD).add(ba);ba.hide();return{shared:cC,refresh:function(cQ){var cO,cM,cS,cR=0,cP={},cN=[];cS=cQ.tooltipPos;cO=cL.formatter||cK;cP=bF.hoverPoints;cC?(cP&&ah(cP,function(cT){cT.setState()}),bF.hoverPoints=cQ,ah(cQ,function(cT){cT.setState(d);cR+=cT.plotY;cN.push(cT.getLabelConfig())}),cM=cQ[0].plotX,cR=T(cR)/cQ.length,cP={x:cQ[0].category},cP.points=cN,cQ=cQ[0]):cP=cQ.getLabelConfig();cP=cO.call(cP);cH=cQ.series;cM=cC?cM:cQ.plotX;cR=cC?cR:cQ.plotY;cO=T(cS?cS[0]:b6?bY-cR:cM);cM=T(cS?cS[1]:b6?b4-cM:cR);cS=cC||!cQ.series.isCartesian||W(cO,cM);cP===!1||!cS?cI():(U&&(ba.show(),U=!1),cb.attr({text:cP}),cS=cb.getBBox(),cc=cS.width+2*cB,ca=cS.height+2*cB,cA.attr({width:cc,height:ca,stroke:cL.borderColor||cQ.color||cH.color||"#606060"}),cO=aR(cc,ca,ch,cf,bY,b4,{x:cO,y:cM}),cJ(T(cO.x-y),T(cO.y-y)));if(cF){cF=aO(cF);for(cO=cF.length;cO--;){if(cM=cQ.series[cO?"yAxis":"xAxis"],cF[cO]&&cM){if(cM=cM.getPlotLinePath(cQ[cO?"y":"x"],1),cE[cO]){cE[cO].attr({d:cM,visibility:ar})}else{cS={"stroke-width":cF[cO].width||1,stroke:cF[cO].color||"#C0C0C0",zIndex:2};if(cF[cO].dashStyle){cS.dashstyle=cF[cO].dashStyle}cE[cO]=cd.path(cM).attr(cS).add()}}}}},hide:cI,destroy:function(){ah(cE,function(cM){cM&&cM.destroy()});ah([cA,cb,ba],function(cM){cM&&cM.destroy()});cA=cb=ba=null}}}function bN(cE){function cD(cH){var cM,cL=O&&aF.width/aF.body.scrollWidth-1,cK,cJ,cI,cH=cH||m.event;if(!cH.target){cH.target=cH.srcElement}cM=cH.touches?cH.touches.item(0):cH;if(cH.type!=="mousemove"||m.opera||cL){bL=aG(ce),cK=bL.left,cJ=bL.top}a1?(cI=cH.x,cM=cH.y):cM.layerX===bo?(cI=cM.pageX-cK,cM=cM.pageY-cJ):(cI=cH.layerX,cM=cH.layerY);cL&&(cI+=T((cL+1)*cK-cK),cM+=T((cL+1)*cJ-cJ));return aI(cH,{chartX:cI,chartY:cM})}function cC(cI){var cH={xAxis:[],yAxis:[]};ah(X,function(cL){var cK=cL.translate,cJ=cL.isXAxis;cH[cJ?"xAxis":"yAxis"].push({axis:cL,value:cK((b6?!cJ:cJ)?cI.chartX-ch:b4-cI.chartY+cf,!0)})});return cH}function cB(){var cI=bF.hoverSeries,cH=bF.hoverPoint;if(cH){cH.onMouseOut()}if(cI){cI.onMouseOut()}q&&q.hide();by=null}function cA(){if(ba){var cI={xAxis:[],yAxis:[]},cH=ba.getBBox(),cK=cH.x-ch,cJ=cH.y-cf;ca&&(ah(X,function(cP){var cO=cP.translate,cN=cP.isXAxis,cM=b6?!cN:cN,cL=cO(cM?cK:b4-cJ-cH.height,!0,0,0,1),cO=cO(cM?cK+cH.width:b4-cJ,!0,0,0,1);cI[cN?"xAxis":"yAxis"].push({axis:cP,min:N(cL,cO),max:au(cL,cO)})}),aY(bF,"selection",cI,V));ba=ba.destroy()}bF.mouseIsDown=n=ca=!1;a6(aF,aQ?"touchend":"mouseup",cA)}function cz(cI){var cH=ad(cI.pageX)?cI.pageX:cI.page.x,cI=ad(cI.pageX)?cI.pageY:cI.page.y;bL&&!W(cH-bL.left-ch,cI-bL.top-cf)&&cB()}var cc,cb,ca,ba,cF=bA.zoomType,cG=/x/.test(cF),S=/y/.test(cF),y=cG&&!b6||S&&b6,U=S&&!b6||cG&&b6;bT=function(){cm?(cm.translate(ch,cf),b6&&cm.attr({width:bF.plotWidth,height:bF.plotHeight}).invert()):bF.trackerGroup=cm=cd.g("tracker").attr({zIndex:9}).add()};bT();if(cE.enabled){bF.tooltip=q=bO(cE)}(function(){ce.onmousedown=function(cI){cI=cD(cI);!aQ&&cI.preventDefault&&cI.preventDefault();bF.mouseIsDown=n=!0;cc=cI.chartX;cb=cI.chartY;aE(aF,aQ?"touchend":"mouseup",cA)};var cH=function(cP){if(!cP||!(cP.touches&&cP.touches.length>1)){cP=cD(cP);if(!aQ){cP.returnValue=!1}var cO=cP.chartX,cN=cP.chartY,cM=!W(cO-ch,cN-cf);bL||(bL=aG(ce));aQ&&cP.type==="touchstart"&&(aH(cP.target,"isTracker")?bF.runTrackerClick||cP.preventDefault():!cw&&!cM&&cP.preventDefault());cM&&(cOch+bY&&(cO=ch+bY),cNcf+b4&&(cN=cf+b4));if(n&&cP.type!=="touchstart"){if(ca=Math.sqrt(Math.pow(cc-cO,2)+Math.pow(cb-cN,2)),ca>10){if(ac&&(cG||S)&&W(cc-ch,cb-cf)){ba||(ba=cd.rect(ch,cf,y?1:bY,U?1:b4,0).attr({fill:bA.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add())}ba&&y&&(cO-=cc,ba.attr({width:a9(cO),x:(cO>0?0:cO)+cc}));ba&&U&&(cN-=cb,ba.attr({height:a9(cN),y:(cN>0?0:cN)+cb}))}}else{if(!cM){var cL,cN=bF.hoverPoint,cO=bF.hoverSeries,cK,cQ,cJ=K,cI=b6?cP.chartY:cP.chartX-ch;if(q&&cE.shared){cL=[];cK=bV.length;for(cQ=0;cQcJ&&cL.splice(cK,1)}if(cL.length&&cL[0].plotX!==by){q.refresh(cL),by=cL[0].plotX}}if(cO&&cO.tracker&&(cP=cO.tooltipPoints[cI])&&cP!==cN){cP.onMouseOver()}}}return cM||!ac}};ce.onmousemove=cH;aE(ce,"mouseleave",cB);aE(aF,"mousemove",cz);ce.ontouchstart=function(cI){if(cG||S){ce.onmousedown(cI)}cH(cI)};ce.ontouchmove=cH;ce.ontouchend=function(){ca&&cB()};ce.onclick=function(cI){var cL=bF.hoverPoint,cI=cD(cI);cI.cancelBubble=!0;if(!ca){if(cL&&aH(cI.target,"isTracker")){var cK=cL.plotX,cJ=cL.plotY;aI(cL,{pageX:bL.left+ch+(b6?bY-cJ:cK),pageY:bL.top+cf+(b6?b4-cK:cJ)});aY(cL.series,"click",aI(cI,{point:cL}));cL.firePointEvent("click",cI)}else{aI(cI,cC(cI)),W(cI.chartX-ch,cI.chartY-cf)&&aY(bF,"click",cI)}}ca=!1}})();cr=setInterval(function(){b1&&b1()},32);aI(this,{zoomX:cG,zoomY:S,resetTracker:cB,destroy:function(){if(bF.trackerGroup){bF.trackerGroup=cm=bF.trackerGroup.destroy()}a6(aF,"mousemove",cz);ce.onclick=ce.onmousedown=ce.onmousemove=ce.ontouchstart=ce.ontouchend=ce.ontouchmove=null}})}function bM(S){var y=S.type||bA.type||bA.defaultSeriesType,ba=bj[y],U=bF.hasRendered;if(U){if(b6&&y==="column"){ba=bj.bar}else{if(!b6&&y==="bar"){ba=bj.column}}}y=new ba;y.init(bF,S);!U&&y.inverted&&(b6=!0);if(y.isCartesian){ac=y.isCartesian}bV.push(y);return y}function bK(){bA.alignTicks!==!1&&ah(X,function(y){y.adjustTickAmount()});bW=null}function bI(S){var y=bF.isDirtyLegend,cc,cb=bF.isDirtyBox,ca=bV.length,ba=ca,U=bF.clipRect;for(j(S,bF);ba--;){if(S=bV[ba],S.isDirty&&S.options.stacking){cc=!0;break}}if(cc){for(ba=ca;ba--;){if(S=bV[ba],S.options.stacking){S.isDirty=!0}}}ah(bV,function(cz){cz.isDirty&&(cz.cleanData(),cz.getSegments(),cz.options.legendType==="point"&&(y=!0))});if(y&&b9.renderLegend){b9.renderLegend(),bF.isDirtyLegend=!1}ac&&(bp||(bW=null,ah(X,function(cz){cz.setScale()})),bK(),bH(),ah(X,function(cz){if(cz.isDirty||cb){cz.redraw(),cb=!0}}));cb&&(ct(),bT(),U&&(I(U),U.animate({width:bF.plotSizeX,height:bF.plotSizeY})));ah(bV,function(cz){cz.isDirty&&cz.visible&&(!cz.isCartesian||cz.xAxis)&&cz.redraw()});cg&&cg.resetTracker&&cg.resetTracker();aY(bF,"redraw")}function bG(){var y=bS.xAxis||{},U=bS.yAxis||{},S,y=aO(y);ah(y,function(ca,ba){ca.index=ba;ca.isX=!0});U=aO(U);ah(U,function(ca,ba){ca.index=ba});X=y.concat(U);bF.xAxis=[];bF.yAxis=[];X=r(X,function(ba){S=new bQ(ba);bF[S.isXAxis?"xAxis":"yAxis"].push(S);return S});bK()}function bD(y,S){b3=aA(bS.title,y);bJ=aA(bS.subtitle,S);ah([["title",y,b3],["subtitle",S,bJ]],function(ba){var U=ba[0],cb=bF[U],ca=ba[1],ba=ba[2];cb&&ca&&(cb=cb.destroy());ba&&ba.text&&!cb&&(bF[U]=cd.text(ba.text,0,0,ba.useHTML).attr({align:ba.align,"class":"highcharts-"+U,zIndex:1}).css(ba.style).add().align(ba,!1,z))})}function bu(){b0=bA.renderTo;E=bn+aW++;g(b0)&&(b0=aF.getElementById(b0));b0.innerHTML="";b0.offsetWidth||(bX=b0.cloneNode(0),aM(bX,{position:bf,top:"-9999px",display:""}),aF.body.appendChild(bX));F=(bX||b0).offsetWidth;cu=(bX||b0).offsetHeight;bF.chartWidth=K=bA.width||F||600;bF.chartHeight=cv=bA.height||(cu>19?cu:400);bF.container=ce=aw(bd,{className:"highcharts-container"+(bA.className?" "+bA.className:""),id:E},aI({position:v,overflow:ao,width:K+an,height:cv+an,textAlign:"left"},bA.style),bX||b0);bF.renderer=cd=bA.forExport?new x(ce,K,cv,!0):new c(ce,K,cv);var S,y;a&&ce.getBoundingClientRect&&(S=function(){aM(ce,{left:0,top:0});y=ce.getBoundingClientRect();aM(ce,{left:-(y.left-aD(y.left))+an,top:-(y.top-aD(y.top))+an})},S(),aE(m,"resize",S),aE(bF,"destroy",function(){a6(m,"resize",S)}))}function b5(){function S(){var ba=bA.width||b0.offsetWidth,U=bA.height||b0.offsetHeight;if(ba&&U){if(ba!==F||U!==cu){clearTimeout(y),y=setTimeout(function(){b7(ba,U,!1)},100)}F=ba;cu=U}}var y;aE(m,"resize",S);aE(bF,"destroy",function(){a6(m,"resize",S)})}function bs(){aY(bF,"endResize",null,function(){bp-=1})}function bw(){var y=bS.labels,U=bS.credits,S;bD();b9=bF.legend=new bU;bH();ah(X,function(ba){ba.setTickPositions(!0)});bK();bH();ct();ac&&ah(X,function(ba){ba.render()});if(!bF.seriesGroup){bF.seriesGroup=cd.g("series-group").attr({zIndex:3}).add()}ah(bV,function(ba){ba.translate();ba.setTooltipPoints();ba.render()});y.items&&ah(y.items,function(){var ba=aI(y.style,this.style),cb=aD(ba.left)+ch,ca=aD(ba.top)+cf+12;delete ba.left;delete ba.top;cd.text(this.html,cb,ca).attr({zIndex:2}).css(ba).add()});if(!bF.toolbar){bF.toolbar=bP()}if(U.enabled&&!bF.credits){S=U.href,bF.credits=cd.text(U.text,0,0).on("click",function(){if(S){location.href=S}}).attr({align:U.position.align,zIndex:8}).css(U.style).add().align(U.position)}bT();bF.hasRendered=!0;bX&&(b0.appendChild(ce),s(bX))}function bx(){var S,y=ce&&ce.parentNode;if(bF!==null){aY(bF,"destroy");a6(m,"unload",bx);a6(bF);for(S=X.length;S--;){X[S]=X[S].destroy()}for(S=bV.length;S--;){bV[S]=bV[S].destroy()}ah("title,subtitle,seriesGroup,clipRect,credits,tracker".split(","),function(ba){var U=bF[ba];U&&(bF[ba]=U.destroy())});ah([cq,b9,q,cd,cg],function(U){U&&U.destroy&&U.destroy()});cq=b9=q=cd=cg=null;if(ce){ce.innerHTML="",a6(ce),y&&y.removeChild(ce),ce=null}clearInterval(cr);for(S in bF){delete bF[S]}bF=null}}function cp(){!k&&m==m.top&&aF.readyState!=="complete"?aF.attachEvent("onreadystatechange",function(){aF.detachEvent("onreadystatechange",cp);aF.readyState==="complete"&&cp()}):(bu(),bE(),Z(),ah(bS.series||[],function(y){bM(y)}),bF.inverted=b6=af(b6,bS.chart.inverted),bG(),bF.render=bw,bF.tracker=cg=new bN(bS.tooltip),bw(),aY(bF,"load"),bR&&bR.apply(bF,[bF]),ah(bF.callbacks,function(y){y.apply(bF,[bF])}))}a4=aA(a4,a5.xAxis);aU=aA(aU,a5.yAxis);a5.xAxis=a5.yAxis=null;var bS=aA(a5,bS),bA=bS.chart,ci=bA.margin,ci=bl(ci)?ci:[ci,ci,ci,ci],bz=af(bA.marginTop,ci[0]),bv=af(bA.marginRight,ci[1]),aa=af(bA.marginBottom,ci[2]),br=af(bA.marginLeft,ci[3]),bq=bA.spacingTop,bt=bA.spacingRight,cl=bA.spacingBottom,bZ=bA.spacingLeft,z,b3,bJ,cf,bC,cy,ch,co,b0,bX,ce,E,F,cu,K,cv,l,cs,cq,cn,Q,cj,bF=this,cw=(ci=bA.events)&&!!ci.click,bB,W,q,n,b8,G,C,b4,bY,cg,cm,bT,b9,ck,b2,bL,ac=bA.showAxes,bp=0,X=[],bW,bV=[],b6,cd,b1,cr,by,ct,bH,bE,Z,b7,V,cx,bU=function(){function cV(y,c2){var c1=y.legendItem,c0=y.legendLine,cZ=y.legendSymbol,cY=cI.color,cX=c2?cQ.itemStyle.color:cY,cW=c2?y.color:cY,cY=c2?y.pointAttr[M]:{stroke:cY,fill:cY};c1&&c1.css({fill:cX});c0&&c0.attr({stroke:cW});cZ&&cZ.attr(cY)}function cU(y,c0,cZ){var cY=y.legendItem,cX=y.legendLine,cW=y.legendSymbol,y=y.checkbox;cY&&cY.attr({x:c0,y:cZ});cX&&cX.translate(c0,cZ-4);cW&&cW.attr({x:c0+cW.xOff,y:cZ+cW.yOff});if(y){y.x=c0,y.y=cZ}}function cT(){ah(cM,function(cW){var y=cW.checkbox,cX=S.alignAttr;y&&aM(y,{left:cX.translateX+cW.legendItemWidth+y.x-40+an,top:cX.translateY+y.y-11+an})})}function cS(c1){var c0,cZ,cW,cY,cX=c1.legendItem;cY=c1.series||c1;var y=cY.options,c3=y&&y.borderWidth||0;if(!cX){cY=/^(bar|pie|area|column)$/.test(cY.type);c1.legendItem=cX=cd.text(cQ.labelFormatter.call(c1),0,0).css(c1.visible?cz:cI).on("mouseover",function(){c1.setState(d);cX.css(cA)}).on("mouseout",function(){cX.css(c1.visible?cz:cI);c1.setState()}).on("click",function(){var c4=function(){c1.setVisible()};c1.firePointEvent?c1.firePointEvent("legendItemClick",null,c4):aY(c1,"legendItemClick",null,c4)}).attr({zIndex:2}).add(S);if(!cY&&y&&y.lineWidth){var c2={"stroke-width":y.lineWidth,zIndex:2};if(y.dashStyle){c2.dashstyle=y.dashStyle}c1.legendLine=cd.path([R,-cO-cN,0,aV,-cN,0]).attr(c2).add(S)}cY?c0=cd.rect(cZ=-cO-cN,cW=-11,cO,12,2).attr({zIndex:3}).add(S):y&&y.marker&&y.marker.enabled&&(c0=cd.symbol(c1.symbol,cZ=-cO/2-cN,cW=-4,y.marker.radius).attr({zIndex:3}).add(S));if(c0){c0.xOff=cZ+c3%2/2,c0.yOff=cW+c3%2/2}c1.legendSymbol=c0;cV(c1,c1.visible);if(y&&y.showCheckbox){c1.checkbox=aw("input",{type:"checkbox",checked:c1.selected,defaultChecked:c1.selected},cQ.itemCheckboxStyle,ce),aE(c1.checkbox,"click",function(c4){aY(c1,"checkboxClick",{checked:c4.target.checked},function(){c1.select()})})}}c0=cX.getBBox();cZ=c1.legendItemWidth=cQ.itemWidth||cO+cN+c0.width+cE;U=c0.height;if(cP&&cD-cK+cZ>(cF||K-2*cE-cK)){cD=cK,cH+=U}cG=cH;cU(c1,cD,cH);cP?cD+=cZ:cH+=U;ba=cF||au(cP?cD-cK:cZ,ba)}function cR(){cD=cK;cH=cJ;cG=ba=0;S||(S=cd.g("legend").attr({zIndex:7}).add());cM=[];ah(ca,function(cZ){var cY=cZ.options;cY.showInLegend&&(cM=cM.concat(cY.legendType==="point"?cZ.data:cZ))});J(cM,function(cZ,cY){return(cZ.options.legendIndex||0)-(cY.options.legendIndex||0)});cC&&cM.reverse();ah(cM,cS);ck=cF||ba;b2=cG-cJ+U;if(cc||cb){ck+=2*cE;b2+=2*cE;if(cB){if(ck>0&&b2>0){cB[cB.isNew?"attr":"animate"](cB.crisp(null,null,null,ck,b2)),cB.isNew=!1}}else{cB=cd.rect(0,0,ck,b2,cQ.borderRadius,cc||0).attr({stroke:cQ.borderColor,"stroke-width":cc||0,fill:cb||av}).add(S).shadow(cQ.shadow),cB.isNew=!0}cB[cM.length?"show":"hide"]()}for(var cW=["left","right","top","bottom"],y,cX=4;cX--;){y=cW[cX],cL[y]&&cL[y]!=="auto"&&(cQ[cX<2?"align":"verticalAlign"]=y,cQ[cX<2?"x":"y"]=aD(cL[y])*(cX%2?-1:1))}cM.length&&S.align(aI(cQ,{width:ck,height:b2}),!0,z);bp||cT()}var cQ=bF.options.legend;if(cQ.enabled){var cP=cQ.layout==="horizontal",cO=cQ.symbolWidth,cN=cQ.symbolPadding,cM,cL=cQ.style,cz=cQ.itemStyle,cA=cQ.itemHoverStyle,cI=cQ.itemHiddenStyle,cE=aD(cL.padding),cJ=18,cK=4+cE+cO+cN,cD,cH,cG,U=0,cB,cc=cQ.borderWidth,cb=cQ.backgroundColor,S,ba,cF=cQ.width,ca=bF.series,cC=cQ.reversed;cR();aE(bF,"endResize",cT);return{colorizeItem:cV,destroyItem:function(cW){var y=cW.checkbox;ah(["legendItem","legendLine","legendSymbol"],function(cX){cW[cX]&&cW[cX].destroy()});y&&s(cW.checkbox)},renderLegend:cR,destroy:function(){cB&&(cB=cB.destroy());S&&(S=S.destroy())}}}};W=function(S,y){return S>=0&&S<=bY&&y>=0&&y<=b4};cx=function(){aY(bF,"selection",{resetSelection:!0},V);bF.toolbar.remove("zoom")};V=function(S){var y=a5.lang,U=bF.pointCount<100;bF.toolbar.add("zoom",y.resetZoom,y.resetZoomTitle,cx);!S||S.resetSelection?ah(X,function(ba){ba.setExtremes(null,null,!1,U)}):ah(S.xAxis.concat(S.yAxis),function(ca){var ba=ca.axis;bF.tracker[ba.isXAxis?"zoomX":"zoomY"]&&ba.setExtremes(ca.min,ca.max,!1,U)});bI()};bH=function(){var y=bS.legend,cc=af(y.margin,10),cb=y.x,ca=y.y,ba=y.align,U=y.verticalAlign,S;bE();if((bF.title||bF.subtitle)&&!ad(bz)){(S=au(bF.title&&!b3.floating&&!b3.verticalAlign&&b3.y||0,bF.subtitle&&!bJ.floating&&!bJ.verticalAlign&&bJ.y||0))&&(cf=au(cf,S+af(b3.margin,15)+bq))}y.enabled&&!y.floating&&(ba==="right"?ad(bv)||(bC=au(bC,ck-cb+cc+bt)):ba==="left"?ad(br)||(ch=au(ch,ck+cb+cc+bZ)):U==="top"?ad(bz)||(cf=au(cf,b2+ca+cc+bq)):U==="bottom"&&(ad(aa)||(cy=au(cy,b2-ca+cc+cl))));ac&&ah(X,function(cz){cz.getOffset()});ad(br)||(ch+=co[3]);ad(bz)||(cf+=co[0]);ad(aa)||(cy+=co[2]);ad(bv)||(bC+=co[1]);Z()};b7=function(S,y,ca){var ba=bF.title,U=bF.subtitle;bp+=1;j(ca,bF);cs=cv;l=K;bF.chartWidth=K=T(S);bF.chartHeight=cv=T(y);aM(ce,{width:K+an,height:cv+an});cd.setSize(K,cv,ca);bY=K-ch-bC;b4=cv-cf-cy;bW=null;ah(X,function(cb){cb.isDirty=!0;cb.setScale()});ah(bV,function(cb){cb.isDirty=!0});bF.isDirtyLegend=!0;bF.isDirtyBox=!0;bH();ba&&ba.align(null,null,z);U&&U.align(null,null,z);bI(ca);cs=null;aY(bF,"resize");P===!1?bs():setTimeout(bs,P&&P.duration||500)};Z=function(){bF.plotLeft=ch=T(ch);bF.plotTop=cf=T(cf);bF.plotWidth=bY=T(K-ch-bC);bF.plotHeight=b4=T(cv-cf-cy);bF.plotSizeX=b6?b4:bY;bF.plotSizeY=b6?bY:b4;z={x:bZ,y:bq,width:K-bZ-bt,height:cv-bq-cl}};bE=function(){cf=af(bz,bq);bC=af(bv,bt);cy=af(aa,cl);ch=af(br,bZ);co=[0,0,0,0]};ct=function(){var S=bA.borderWidth||0,y=bA.backgroundColor,cb=bA.plotBackgroundColor,ca=bA.plotBackgroundImage,ba,U={x:ch,y:cf,width:bY,height:b4};ba=S+(bA.shadow?8:0);if(S||y){cq?cq.animate(cq.crisp(null,null,null,K-ba,cv-ba)):cq=cd.rect(ba/2,ba/2,K-ba,cv-ba,bA.borderRadius,S).attr({stroke:bA.borderColor,"stroke-width":S,fill:y||av}).add().shadow(bA.shadow)}cb&&(cn?cn.animate(U):cn=cd.rect(ch,cf,bY,b4,0).attr({fill:cb}).add().shadow(bA.plotShadow));ca&&(Q?Q.animate(U):Q=cd.image(ca,ch,cf,bY,b4).add());bA.plotBorderWidth&&(cj?cj.animate(cj.crisp(null,ch,cf,bY,b4)):cj=cd.rect(ch,cf,bY,b4,0,bA.plotBorderWidth).attr({stroke:bA.plotBorderColor,"stroke-width":bA.plotBorderWidth,zIndex:4}).add());bF.isDirtyBox=!1};aE(m,"unload",bx);bA.reflow!==!1&&aE(bF,"load",b5);if(ci){for(bB in ci){aE(bF,bB,ci[bB])}}bF.options=bS;bF.series=bV;bF.addSeries=function(S,y,ba){var U;S&&(j(ba,bF),y=af(y,!0),aY(bF,"addSeries",{options:S},function(){U=bM(S);U.isDirty=!0;bF.isDirtyLegend=!0;y&&bF.redraw()}));return U};bF.animation=af(bA.animation,!0);bF.destroy=bx;bF.get=function(S){var y,ba,U;for(y=0;y=l){this.color=0}},wrapSymbol:function(l){if(this.symbol>=l){this.symbol=0}}};aZ={init:function(K,G,F){var G=G||"",E=K.shift,C=G.indexOf("C")>-1,z=C?7:3,y,G=G.split(" "),F=[].concat(F),q,n,l=function(Q){for(y=Q.length;y--;){Q[y]===R&&Q.splice(y+1,0,Q[y+1],Q[y+2],Q[y+1],Q[y+2])}};C&&(l(G),l(F));K.isArea&&(q=G.splice(G.length-6,6),n=F.splice(F.length-6,6));if(E){F=[].concat(F).splice(0,z).concat(F),K.shift=!1}if(G.length){for(K=F.length;G.length255&&(l[z]=255)}}return this},setOpacity:function(y){l[3]=y;return this}}};bi.prototype={init:function(n,l){this.element=aF.createElementNS("http://www.w3.org/2000/svg",l);this.renderer=n},animate:function(n,l,q){if(l=af(l,P,!0)){l=aA(l);if(q){l.complete=q}aS(this,n,l)}else{this.attr(n),q&&q()}},attr:function(X,V){var U,S,Q,K,G=this.element,F=G.nodeName,E=this.renderer,C,y=this.shadows,z=this.htmlNode,q,W=this;g(X)&&ad(V)&&(U=X,X={},X[U]=V);if(g(X)){U=X,F==="circle"?U={x:"cx",y:"cy"}[U]||U:U==="strokeWidth"&&(U="stroke-width"),W=aH(G,U)||this[U]||0,U!=="d"&&U!=="visibility"&&(W=parseFloat(W))}else{for(U in X){C=!1;S=X[U];if(U==="d"){S&&S.join&&(S=S.join(" ")),/(NaN| {2}|^$)/.test(S)&&(S="M 0 0"),this.d=S}else{if(U==="x"&&F==="text"){for(Q=0;Qq||!ad(q)&&ad(l))){return C.insertBefore(y,n),this}}}C.appendChild(y);this.added=!0;return this},destroy:function(){var n=this.element||{},l=this.shadows,z=n.parentNode,y,q;n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=null;I(this);if(this.clipPath){this.clipPath=this.clipPath.destroy()}if(this.stops){for(q=0;q/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g),K=S.childNodes,G=/style="([^"]+)"/,F=/href="([^"]+)"/,E=aH(S,"x"),C=V.styles,z=C&&V.useHTML&&!this.forExport,y=V.htmlNode,n=C&&aD(C.width),W=C&&C.lineHeight,l,U=K.length;U--;){S.removeChild(K[U])}n&&!V.added&&this.box.appendChild(S);ah(Q,function(ac,aa){var Z,X=0,q,ac=ac.replace(//g,"|||");Z=ac.split("|||");ah(Z,function(bs){if(bs!==""||Z.length===1){var bp={},br=aF.createElementNS("http://www.w3.org/2000/svg","tspan");G.test(bs)&&aH(br,"style",bs.match(G)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));F.test(bs)&&(aH(br,"onclick",'location.href="'+bs.match(F)[1]+'"'),aM(br,{cursor:"pointer"}));bs=(bs.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">");br.appendChild(aF.createTextNode(bs));X?bp.dx=3:bp.x=E;if(!X){if(aa){!k&&V.renderer.forExport&&aM(br,{display:"block"});q=m.getComputedStyle&&aD(m.getComputedStyle(l,null).getPropertyValue("line-height"));if(!q||isNaN(q)){q=W||l.offsetHeight||18}aH(br,"dy",q)}l=br}aH(br,bp);S.appendChild(br);X++;if(n){for(var bs=bs.replace(/-/g,"- ").split(" "),bq,ba=[];bs.length||ba.length;){bq=S.getBBox().width,bp=bq>n,!bp||bs.length===1?(bs=ba,ba=[],bs.length&&(br=aF.createElementNS("http://www.w3.org/2000/svg","tspan"),aH(br,{dy:W||16,x:E}),S.appendChild(br),bq>n&&(n=bq))):(br.removeChild(br.firstChild),ba.unshift(bs.pop())),bs.length&&br.appendChild(aF.createTextNode(bs.join(" ").replace(/- /g,"-")))}}}})});if(z){if(!y){y=V.htmlNode=aw("span",null,aI(C,{position:bf,top:0,left:0}),this.box.parentNode)}y.innerHTML=V.textStr;for(U=K.length;U--;){K[U].style.visibility=ao}}},crispLine:function(n,l){n[1]===n[4]&&(n[1]=n[4]=T(n[1])+l%2/2);n[2]===n[5]&&(n[2]=n[5]=T(n[2])+l%2/2);return n},path:function(l){return this.createElement("path").attr({d:l,fill:av})},circle:function(n,l,q){n=bl(n)?n:{x:n,y:l,r:q};return this.createElement("circle").attr(n)},arc:function(n,l,C,z,y,q){if(bl(n)){l=n.y,C=n.r,z=n.innerR,y=n.start,q=n.end,n=n.x}return this.symbol("arc",n||0,l||0,C||0,{innerR:z||0,start:y||0,end:q||0})},rect:function(n,l,C,z,y,q){if(bl(n)){l=n.y,C=n.width,z=n.height,y=n.r,q=n.strokeWidth,n=n.x}y=this.createElement("rect").attr({rx:y,ry:y,fill:av});return y.attr(y.crisp(q,n,l,au(C,0),au(z,0)))},setSize:function(n,l,z){var y=this.alignedObjects,q=y.length;this.width=n;this.height=l;for(this.boxWrapper[af(z,!0)?"animate":"attr"]({width:n,height:l});q--;){y[q].align()}},g:function(n){var l=this.createElement("g");return ad(n)?l.attr({"class":bn+n}):l},image:function(n,l,C,z,y){var q={preserveAspectRatio:av};arguments.length>1&&aI(q,{x:l,y:C,width:z,height:y});q=this.createElement("image").attr(q);q.element.setAttributeNS?q.element.setAttributeNS("http://www.w3.org/1999/xlink","href",n):q.element.setAttribute("hc-svg-href",n);return q},symbol:function(K,G,F,E,C){var z,y=this.symbols[K],y=y&&y(T(G),T(F),E,C),q=/^url\((.*?)\)$/,n;if(y){z=this.path(y),aI(z,{symbolName:K,x:G,y:F,r:E}),C&&aI(z,C)}else{if(q.test(K)){var l=function(S,Q){S.attr({width:Q[0],height:Q[1]}).translate(-T(Q[0]/2),-T(Q[1]/2))};n=K.match(q)[1];K=at[n];z=this.image(n).attr({x:G,y:F});K?l(z,K):(z.attr({width:0,height:0}),aw("img",{onload:function(){l(z,at[n]=[this.width,this.height])},src:n}))}else{z=this.circle(G,F,E)}}return z},symbols:{square:function(n,l,q){q*=0.707;return[R,n-q,l-q,aV,n+q,l-q,n+q,l+q,n-q,l+q,"Z"]},triangle:function(n,l,q){return[R,n,l-1.33*q,aV,n+q,l+0.67*q,n-q,l+0.67*q,"Z"]},"triangle-down":function(n,l,q){return[R,n,l+1.33*q,aV,n-q,l-0.67*q,n+q,l-0.67*q,"Z"]},diamond:function(n,l,q){return[R,n,l-q,aV,n+q,l,n,l+q,n-q,l,"Z"]},arc:function(K,G,F,E){var C=E.start,z=E.end-0.000001,y=E.innerR,q=az(C),n=a2(C),l=az(z),z=a2(z),E=E.end-C');if(l){y=l===bd||l==="span"||l==="img"?y.join(""):n.prepVML(y),this.element=aw(y)}this.renderer=n},add:function(n){var l=this.renderer,y=this.element,q=l.box,q=n?n.element||n:q;n&&n.inverted&&l.invertChild(y,q);bb&&q.gVis===ao&&aM(y,{visibility:ao});q.appendChild(y);this.added=!0;this.alignOnAdd&&this.updateTransform();return this},attr:function(X,V){var U,S,Q,K=this.element||{},G=K.style,F=K.nodeName,E=this.renderer,C=this.symbolName,y,z,q=this.shadows,W=this;g(X)&&ad(V)&&(U=X,X={},X[U]=V);if(g(X)){U=X,W=U==="strokeWidth"||U==="stroke-width"?this.strokeweight:this[U]}else{for(U in X){S=X[U];y=!1;if(C&&/^(x|y|r|start|end|width|height|innerR)/.test(U)){z||(this.symbolAttr(X),z=!0),y=!0}else{if(U==="d"){S=S||[];this.d=S.join(" ");Q=S.length;for(y=[];Q--;){y[Q]=bg(S[Q])?T(S[Q]*10)-5:S[Q]==="Z"?"x":S[Q]}S=y.join(" ")||"x";K.path=S;if(q){for(Q=q.length;Q--;){q[Q].path=S}}y=!0}else{if(U==="zIndex"||U==="visibility"){if(bb&&U==="visibility"&&F==="DIV"){K.gVis=S;y=K.childNodes;for(Q=y.length;Q--;){aM(y[Q],{visibility:S})}S===ar&&(S=null)}S&&(G[U]=S);y=!0}else{if(/^(width|height)$/.test(U)){this[U]=S,this.updateClipping?(this[U]=S,this.updateClipping()):G[U]=S,y=!0}else{if(/^(x|y)$/.test(U)){this[U]=S,K.tagName==="SPAN"?this.updateTransform():G[{x:"left",y:"top"}[U]]=S}else{if(U==="class"){K.className=S}else{if(U==="stroke"){S=E.color(S,K,U),U="strokecolor"}else{if(U==="stroke-width"||U==="strokeWidth"){K.stroked=S?!0:!1,U="strokeweight",this[U]=S,bg(S)&&(S+=an)}else{if(U==="dashstyle"){(K.getElementsByTagName("stroke")[0]||aw(E.prepVML([""]),null,null,K))[U]=S||"solid",this.dashstyle=S,y=!0}else{if(U==="fill"){F==="SPAN"?G.color=S:(K.filled=S!==av?!0:!1,S=E.color(S,K,U),U="fillcolor")}else{if(U==="translateX"||U==="translateY"||U==="rotation"||U==="align"){U==="align"&&(U="textAlign"),this[U]=S,this.updateTransform(),y=!0}else{if(U==="text"){this.bBox=null,K.innerHTML=S,y=!0}}}}}}}}}}}}if(q&&U==="visibility"){for(Q=q.length;Q--;){q[Q].style[U]=S}}y||(bb?K[U]=S:aH(K,U,S))}}return W},clip:function(n){var l=this,q=n.members;q.push(l);l.destroyClip=function(){H(q,l)};return l.css(n.getCSS(l.inverted))},css:function(n){var l=this.element;if(l=n&&l.tagName==="SPAN"&&n.width){delete n.width,this.textWidth=l,this.updateTransform()}this.styles=aI(this.styles,n);aM(this.element,n);return this},destroy:function(){this.destroyClip&&this.destroyClip();return bi.prototype.destroy.apply(this)},empty:function(){for(var n=this.element.childNodes,l=n.length,q;l--;){q=n[l],q.parentNode.removeChild(q)}},getBBox:function(){var n=this.element,l=this.bBox;if(!l){if(n.nodeName==="text"){n.style.position=bf}l=this.bBox={x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}}return l},on:function(n,l){this.element["on"+n]=function(){var q=m.event;q.target=q.srcElement;l(q)};return this},updateTransform:function(){if(this.added){var Z=this,W=Z.element,V=Z.translateX||0,U=Z.translateY||0,S=Z.x||0,K=Z.y||0,G=Z.textAlign||"left",F={left:0,center:0.5,right:1}[G],E=G&&G!=="left";(V||U)&&Z.css({marginLeft:V,marginTop:U});Z.inverted&&ah(W.childNodes,function(n){Z.renderer.invertChild(n,W)});if(W.tagName==="SPAN"){var z,y,V=Z.rotation,q;z=0;var U=1,Q=0,X;q=aD(Z.textWidth);var aa=Z.xCorr||0,l=Z.yCorr||0,C=[V,G,W.innerHTML,Z.textWidth].join(",");if(C!==Z.cTT){ad(V)&&(z=V*bk,U=az(z),Q=a2(z),aM(W,{filter:V?["progid:DXImageTransform.Microsoft.Matrix(M11=",U,", M12=",-Q,", M21=",Q,", M22=",U,", sizingMethod='auto expand')"].join(""):av})),z=W.offsetWidth,y=W.offsetHeight,z>q&&(aM(W,{width:q+an,display:"block",whiteSpace:"normal"}),z=q),q=T((aD(W.style.fontSize)||12)*1.2),aa=U<0&&-z,l=Q<0&&-y,X=U*Q<0,aa+=Q*q*(X?1-F:F),l-=U*q*(V?X?F:1-F:1),E&&(aa-=z*F*(U<0?-1:1),V&&(l-=y*F*(Q<0?-1:1)),aM(W,{textAlign:G})),Z.xCorr=aa,Z.yCorr=l}aM(W,{left:S+aa,top:K+l});Z.cTT=C}}else{this.alignOnAdd=!0}},shadow:function(K,G){var F=[],E,C=this.element,z=this.renderer,y,q=C.style,n,l=C.path;l&&typeof l.value!=="string"&&(l="x");if(K){for(E=1;E<=3;E++){n=[''],y=aw(z.prepVML(n),null,{left:aD(q.left)+1,top:aD(q.top)+1}),n=[''],aw(z.prepVML(n),null,null,y),G?G.element.appendChild(y):C.parentNode.insertBefore(y,C),F.push(y)}this.shadows=F}return this}}),Y=function(){this.init.apply(this,arguments)},Y.prototype=aA(x.prototype,{Element:ay,isIE8:e.indexOf("MSIE 8.0")>-1,init:function(n,l,y){var q;this.alignedObjects=[];q=this.createElement(bd);n.appendChild(q.element);this.box=q.element;this.boxWrapper=q;this.setSize(l,y,!1);if(!aF.namespaces.hcv){aF.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),aF.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(n,l,z,y){var q=this.createElement();return aI(q,{members:[],left:n,top:l,width:z,height:y,getCSS:function(E){var C=this.top,K=this.left,G=K+this.width,F=C+this.height,C={clip:"rect("+T(E?K:C)+"px,"+T(E?F:G)+"px,"+T(E?G:F)+"px,"+T(E?C:K)+"px)"};!E&&bb&&aI(C,{width:G+an,height:F+an});return C},updateClipping:function(){ah(q.members,function(C){C.css(q.getCSS(C.inverted))})}})},color:function(U,S,Q){var K,G=/^rgba/;if(U&&U.linearGradient){var F,E,C=U.linearGradient,z,y,q,l;ah(U.stops,function(V,n){G.test(V[1])?(K=o(V[1]),F=K.get("rgb"),E=K.get("a")):(F=V[1],E=1);n?(q=F,l=E):(z=F,y=E)});U=90-ax.atan((C[3]-C[1])/(C[2]-C[0]))*180/t;U=["<",Q,' colors="0% ',z,",100% ",q,'" angle="',U,'" opacity="',l,'" o:opacity2="',y,'" type="gradient" focus="100%" />'];aw(this.prepVML(U),null,null,S)}else{if(G.test(U)&&S.tagName!=="IMG"){return K=o(U),U=["<",Q,' opacity="',K.get("a"),'"/>'],aw(this.prepVML(U),null,null,S),K.get("rgb")}else{S=S.getElementsByTagName(Q);if(S.length){S[0].opacity=1}return U}}},prepVML:function(n){var l=this.isIE8,n=n.join("");l?(n=n.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),n=n.indexOf('style="')===-1?n.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):n.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):n=n.replace("<","1&&q.css({left:l,top:C,width:z,height:y});return q},rect:function(n,l,E,C,z,y){if(bl(n)){l=n.y,E=n.width,C=n.height,z=n.r,y=n.strokeWidth,n=n.x}var q=this.symbol("rect");q.r=z;return q.attr(q.crisp(y,n,l,au(E,0),au(C,0)))},invertChild:function(n,l){var q=l.style;aM(n,{flip:"x",left:aD(q.width)-10,top:aD(q.height)-10,rotation:-90})},symbols:{arc:function(U,S,Q,K){var G=K.start,F=K.end,E=az(G),C=a2(G),z=az(F),y=a2(F),K=K.innerR,n=0.07/Q,q=K&&0.1/K||0;if(F-G===0){return["x"]}else{2*t-F+G',this.name||l.name,": ",!n?"x = "+(this.name||this.x)+", ":"","",!n?"y = ":"",this.y,""].join("")},update:function(n,l,E){var C=this,z=C.series,y=C.graphic,q=z.chart,l=af(l,!0);C.firePointEvent("update",{options:n},function(){C.applyOptions(n);bl(n)&&(z.getAttribs(),y&&y.attr(C.pointAttr[z.state]));z.isDirty=!0;l&&q.redraw(E)})},remove:function(n,l){var C=this,z=C.series,y=z.chart,q=z.data;j(l,y);n=af(n,!0);C.firePointEvent("remove",null,function(){H(q,C);C.destroy();z.isDirty=!0;n&&y.redraw()})},firePointEvent:function(n,l,z){var y=this,q=this.series.options;(q.point.events[n]||y.options&&y.options.events&&y.options.events[n])&&this.importEvents();n==="click"&&q.allowPointSelect&&(z=function(C){y.select(null,C.ctrlKey||C.metaKey||C.shiftKey)});aY(this,n,l,z)},importEvents:function(){if(!this.hasImportedEvents){var n=aA(this.series.options.point,this.options).events,l;this.events=n;for(l in n){aE(this,l,n[l])}this.hasImportedEvents=!0}},setState:function(G){var F=this.series,E=F.options.states,C=ak[F.type].marker&&F.options.marker,z=C&&!C.enabled,y=(C=C&&C.states[G])&&C.enabled===!1,q=F.stateMarkerGraphic,n=F.chart,l=this.pointAttr,G=G||M;if(!(G===this.state||this.selected&&G!=="select"||E[G]&&E[G].enabled===!1||G&&(y||z&&!C.enabled))){if(this.graphic){this.graphic.attr(l[G])}else{if(G){if(!q){F.stateMarkerGraphic=q=n.renderer.circle(0,0,l[G].r).attr(l[G]).add(F.group)}q.translate(this.plotX,this.plotY)}if(q){q[G?"show":"hide"]()}}this.state=G}}};var aB=function(){};aB.prototype={isCartesian:!0,type:"line",pointClass:B,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(n,l){var y,q;q=n.series.length;this.chart=n;l=this.setOptions(l);aI(this,{index:q,options:l,name:l.name||"Series "+(q+1),state:M,pointAttr:{},visible:l.visible!==!1,selected:l.selected===!0});q=l.events;for(y in q){aE(this,y,q[y])}if(q&&q.click||l.point&&l.point.events&&l.point.events.click||l.allowPointSelect){n.runTrackerClick=!0}this.getColor();this.getSymbol();this.setData(l.data,!1)},autoIncrement:function(){var n=this.options,l=this.xIncrement,l=af(l,n.pointStart,0);this.pointInterval=af(this.pointInterval,n.pointInterval,1);this.xIncrement=l+this.pointInterval;return l},cleanData:function(){var n=this.chart,l=this.data,E,C,z=n.smallestInterval,y,q;J(l,function(G,F){return G.x-F.x});if(this.options.connectNulls){for(q=l.length-1;q>=0;q--){l[q].y===null&&l[q-1]&&l[q+1]&&l.splice(q,1)}}for(q=l.length-1;q>=0;q--){if(l[q-1]&&(y=l[q].x-l[q-1].x,y>0&&(C===bo||yn+1&&l.push(q.slice(n+1,y)),n=y):y===q.length-1&&l.push(q.slice(n+1,y+1))});this.segments=l},setOptions:function(n){var l=this.chart.options.plotOptions;return aA(l[this.type],l.series,n)},getColor:function(){var n=this.chart.options.colors,l=this.chart.counters;this.color=this.options.color||n[l.color++]||"#0000ff";l.wrapColor(n.length)},getSymbol:function(){var n=this.chart.options.symbols,l=this.chart.counters;this.symbol=this.options.marker.symbol||n[l.symbol++];l.wrapSymbol(n.length)},addPoint:function(n,l,F,E){var C=this.data,z=this.graph,y=this.area,q=this.chart,n=(new this.pointClass).init(this,n);j(E,q);if(z&&F){z.shift=F}if(y){y.shift=F,y.isArea=!0}l=af(l,!0);C.push(n);F&&C[0].remove(!1);this.getAttribs();this.isDirty=!0;l&&q.redraw()},setData:function(n,l){var E=this,C=E.data,z=E.initialColor,y=E.chart,q=C&&C.length||0;E.xIncrement=null;if(ad(z)){y.counters.color=z}for(n=r(aO(n||[]),function(F){return(new E.pointClass).init(E,F)});q--;){C[q].destroy()}E.data=n;E.cleanData();E.getSegments();E.getAttribs();E.isDirty=!0;y.isDirtyBox=!0;af(l,!0)&&y.redraw(!1)},remove:function(n,l){var y=this,q=y.chart,n=af(n,!0);if(!y.isRemoving){y.isRemoving=!0,aY(y,"remove",null,function(){y.destroy();q.isDirtyLegend=q.isDirtyBox=!0;n&&q.redraw(l)})}y.isRemoving=!1},translate:function(){for(var Q=this.chart,K=this.options.stacking,G=this.xAxis.categories,F=this.yAxis,E=this.data,C=E.length;C--;){var z=E[C],y=z.x,q=z.y,n=z.low,l=F.stacks[(q<0?"-":"")+this.stackKey];z.plotX=this.xAxis.translate(y);if(K&&this.visible&&l&&l[y]){n=l[y],y=n.total,n.cum=n=n.cum-q,q=n+q,K==="percent"&&(n=y?n*100/y:0,q=y?q*100/y:0),z.percentage=y?z.y*100/y:0,z.stackTotal=y}if(ad(n)){z.yBottom=F.translate(n,0,1,0,1)}if(q!==null){z.plotY=F.translate(q,0,1,0,1)}z.clientX=Q.inverted?Q.plotHeight-z.plotX:z.plotX;z.category=G&&G[z.x]!==bo?G[z.x]:z.x}},setTooltipPoints:function(n){var l=this.chart,F=l.inverted,E=[],C=T((F?l.plotTop:l.plotLeft)+l.plotSizeX),z,y,q=[];if(n){this.tooltipPoints=null}ah(this.segments,function(G){E=E.concat(G)});this.xAxis&&this.xAxis.reversed&&(E=E.reverse());ah(E,function(K,G){z=E[G-1]?E[G-1]._high+1:0;for(y=K._high=E[G+1]?aL((K.plotX+(E[G+1]?E[G+1].plotX:C))/2):C;z<=y;){q[F?C-z++:z++]=K}});this.tooltipPoints=q},onMouseOver:function(){var n=this.chart,l=n.hoverSeries;if(aQ||!n.mouseIsDown){if(l&&l!==this){l.onMouseOut()}this.options.events.mouseOver&&aY(this,"mouseOver");this.tracker&&this.tracker.toFront();this.setState(d);n.hoverSeries=this}},onMouseOut:function(){var n=this.options,l=this.chart,y=l.tooltip,q=l.hoverPoint;if(q){q.onMouseOut()}this&&n.events.mouseOut&&aY(this,"mouseOut");y&&!n.stickyTracking&&y.hide();this.setState();l.hoverSeries=null},animate:function(n){var l=this.chart,y=this.clipRect,q=this.options.animation;q&&!bl(q)&&(q={});if(n){if(!y.isAnimating){y.attr("width",0),y.isAnimating=!0}}else{y.animate({width:l.plotSizeX},q),this.animate=null}},drawPoints:function(){var G,F=this.data,E=this.chart,C,z,y,q,n,l;if(this.options.marker.enabled){for(y=F.length;y--;){if(q=F[y],C=q.plotX,z=q.plotY,l=q.graphic,z!==bo&&!isNaN(z)){G=q.pointAttr[q.selected?"select":M],n=G.r,l?l.animate({x:C,y:z,r:n}):q.graphic=E.renderer.symbol(af(q.marker&&q.marker.symbol,this.symbol),C,z,n).attr(G).add(this.group)}}}},convertAttribs:function(n,l,F,E){var C=this.pointAttrToOptions,z,y,q={},n=n||{},l=l||{},F=F||{},E=E||{};for(z in C){y=C[z],q[z]=af(n[y],l[z],F[z],E[z])}return q},getAttribs:function(){var U=this,S=ak[U.type].marker?U.options.marker:U.options,Q=S.states,K=Q[d],G,F=U.color,E={stroke:F,fill:F},C=U.data,z=[],y,q=U.pointAttrToOptions,l;U.options.marker?(K.radius=K.radius||S.radius+2,K.lineWidth=K.lineWidth||S.lineWidth+1):K.color=K.color||o(K.color||F).brighten(K.brightness).get();z[M]=U.convertAttribs(S,E);ah([d,"select"],function(n){z[n]=U.convertAttribs(Q[n],z[M])});U.pointAttr=z;for(F=C.length;F--;){E=C[F];if((S=E.options&&E.options.marker||E.options)&&S.enabled===!1){S.radius=0}G=!1;if(E.options){for(l in q){ad(S[q[l]])&&(G=!0)}}if(G){y=[];Q=S.states||{};G=Q[d]=Q[d]||{};if(!U.options.marker){G.color=o(G.color||E.options.color).brighten(G.brightness||K.brightness).get()}y[M]=U.convertAttribs(S,z[M]);y[d]=U.convertAttribs(Q[d],z[d],y[M]);y.select=U.convertAttribs(Q.select,z.select,y[M])}else{y=z}E.pointAttr=y}},destroy:function(){var n=this,l=n.chart,C=n.clipRect,z=/\/5[0-9\.]+ (Safari|Mobile)\//.test(e),y,q;aY(n,"destroy");a6(n);n.legendItem&&n.chart.legend.destroyItem(n);ah(n.data,function(E){E.destroy()});if(C&&C!==l.clipRect){n.clipRect=C.destroy()}ah(["area","graph","dataLabelsGroup","group","tracker"],function(E){n[E]&&(y=z&&E==="group"?"hide":"destroy",n[E][y]())});if(l.hoverSeries===n){l.hoverSeries=null}H(l.series,n);for(q in n){delete n[q]}},drawDataLabels:function(){if(this.options.dataLabels.enabled){var V,S,Q=this.data,G=this.options,F=G.dataLabels,E,C=this.dataLabelsGroup,y=this.chart,q=y.renderer,n=y.inverted,l=this.type,W;W=G.stacking;var K=l==="column"||l==="bar",U=F.verticalAlign===null,X=F.y===null;K&&(W?(U&&(F=aA(F,{verticalAlign:"middle"})),X&&(F=aA(F,{y:{top:14,middle:4,bottom:-6}[F.verticalAlign]}))):U&&(F=aA(F,{verticalAlign:"top"})));C?C.translate(y.plotLeft,y.plotTop):C=this.dataLabelsGroup=q.g("data-labels").attr({visibility:this.visible?ar:ao,zIndex:6}).translate(y.plotLeft,y.plotTop).add();W=F.color;W==="auto"&&(W=null);F.style.color=af(W,this.color,"black");ah(Q,function(bq){var aa=bq.barX,bp=aa&&aa+bq.barW/2||bq.plotX||-999,Z=af(bq.plotY,-999),ba=bq.dataLabel,ac=F.align,z=X?bq.y>=0?-6:12:F.y;E=F.formatter.call(bq.getLabelConfig());V=(n?y.plotWidth-Z:bp)+F.x;S=(n?y.plotHeight-bp:Z)+z;l==="column"&&(V+={left:-1,right:1}[ac]*bq.barW/2||0);n&&bq.y<0&&(ac="right",V-=10);if(ba){n&&!F.y&&(S=S+aD(ba.styles.lineHeight)*0.9-ba.getBBox().height/2),ba.attr({text:E}).animate({x:V,y:S})}else{if(ad(E)){ba=bq.dataLabel=q.text(E,V,S).attr({align:ac,rotation:F.rotation,zIndex:1}).css(F.style).add(C),n&&!F.y&&ba.attr({y:S+aD(ba.styles.lineHeight)*0.9-ba.getBBox().height/2})}}if(K&&G.stacking&&ba){bp=bq.barY,Z=bq.barW,bq=bq.barH,ba.align(F,null,{x:n?y.plotWidth-bp-bq:aa,y:n?y.plotHeight-aa-Z:bp,width:n?bq:Z,height:n?Z:bq})}})}},drawGraph:function(){var W=this,U=W.options,S=W.graph,Q=[],K,G=W.area,F=W.group,E=U.lineColor||W.color,C=U.lineWidth,z=U.dashStyle,y,X=W.chart.renderer,n=W.yAxis.getThreshold(U.threshold||0),V=/^area/.test(W.type),Z=[],l=[];ah(W.segments,function(ba){y=[];ah(ba,function(bq,bp){W.getPointSpline?y.push.apply(y,W.getPointSpline(ba,bq,bp)):(y.push(bp?aV:R),bp&&U.step&&y.push(bq.plotX,ba[bp-1].plotY),y.push(bq.plotX,bq.plotY))});ba.length>1?Q=Q.concat(y):Z.push(ba[0]);if(V){var ac=[],aa,q=y.length;for(aa=0;aa=0;aa--){ac.push(ba[aa].plotX,ba[aa].yBottom)}}else{ac.push(aV,ba[ba.length-1].plotX,n,aV,ba[0].plotX,n)}l=l.concat(ac)}});W.graphPath=Q;W.singlePoints=Z;if(V){K=af(U.fillColor,o(W.color).setOpacity(U.fillOpacity||0.75).get()),G?G.animate({d:l}):W.area=W.chart.renderer.path(l).attr({fill:K}).add(F)}if(S){I(S),S.animate({d:Q})}else{if(C){S={stroke:E,"stroke-width":C};if(z){S.dashstyle=z}W.graph=X.path(Q).attr(S).add(F).shadow(U.shadow)}}},render:function(){var G=this,F=G.chart,E,C,z=G.options,y=z.animation,q=y&&G.animate,y=q?y&&y.duration||500:0,n=G.clipRect,l=F.renderer;if(!n&&(n=G.clipRect=!F.hasRendered&&F.clipRect?F.clipRect:l.clipRect(0,0,F.plotSizeX,F.plotSizeY),!F.clipRect)){F.clipRect=n}if(!G.group){E=G.group=l.g("series"),F.inverted&&(C=function(){E.attr({width:F.plotWidth,height:F.plotHeight}).invert()},C(),aE(F,"resize",C),aE(G,"destroy",function(){a6(F,"resize",C)})),E.clip(G.clipRect).attr({visibility:G.visible?ar:ao,zIndex:z.zIndex}).translate(F.plotLeft,F.plotTop).add(F.seriesGroup)}G.drawDataLabels();q&&G.animate(!0);G.drawGraph&&G.drawGraph();G.drawPoints();G.options.enableMouseTracking!==!1&&G.drawTracker();q&&G.animate();setTimeout(function(){n.isAnimating=!1;if((E=G.group)&&n!==F.clipRect&&n.renderer){E.clip(G.clipRect=F.clipRect),n.destroy()}},y);G.isDirty=!1},redraw:function(){var n=this.chart,l=this.group;l&&(n.inverted&&l.attr({width:n.plotWidth,height:n.plotHeight}),l.animate({translateX:n.plotLeft,translateY:n.plotTop}));this.translate();this.setTooltipPoints(!0);this.render()},setState:function(n){var l=this.options,y=this.graph,q=l.states,l=l.lineWidth,n=n||M;if(this.state!==n){this.state=n,q[n]&&q[n].enabled===!1||(n&&(l=q[n].lineWidth||l+1),y&&!y.dashstyle&&y.attr({"stroke-width":l},n?0:500))}},setVisible:function(K,G){var F=this.chart,E=this.legendItem,C=this.group,z=this.tracker,y=this.dataLabelsGroup,q,n=this.data,l=F.options.chart.ignoreHiddenSeries;q=this.visible;q=(this.visible=K=K===bo?!q:K)?"show":"hide";if(C){C[q]()}if(z){z[q]()}else{for(C=n.length;C--;){if(z=n[C],z.tracker){z.tracker[q]()}}}if(y){y[q]()}E&&F.legend.colorizeItem(this,K);this.isDirty=!0;this.options.stacking&&ah(F.series,function(Q){if(Q.options.stacking&&Q.visible){Q.isDirty=!0}});if(l){F.isDirtyBox=!0}G!==!1&&F.redraw();aY(this,q)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(l){this.selected=l=l===bo?!this.selected:l;if(this.checkbox){this.checkbox.checked=l}aY(this,l?"select":"unselect")},drawTracker:function(){var K=this,G=K.options,F=[].concat(K.graphPath),E=F.length,C=K.chart,z=C.options.tooltip.snap,y=K.tracker,q=G.cursor,q=q&&{cursor:q},n=K.singlePoints,l;if(E){for(l=E+1;l--;){F[l]===R&&F.splice(l+1,0,F[l+1]-z,F[l+2],aV),(l&&F[l]===R||l===E)&&F.splice(l,0,aV,F[l-2]+z,F[l-1])}}for(l=0;lU&&z>G?(z=au(U,G),n=2*G-z):zE&&n>G?(n=au(E,G),z=2*G-n):nG?bt-G:K-(bu<=K?G:0)),bw=br-3);aI(bv,{barX:bs,barY:br,barW:n,barH:y});bv.shapeType="rect";bu=aI(bp.renderer.Element.prototype.crisp.apply({},[aa,bs,br,n,y]),{r:ba.borderRadius});aa%2&&(bu.y-=1,bu.height+=1);bv.shapeArgs=bu;bv.trackerArgs=ad(bw)&&aA(bv.shapeArgs,{height:au(6,y+3),y:bw})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var n=this,l=n.options,z=n.chart.renderer,y,q;ah(n.data,function(E){var C=E.plotY;if(C!==bo&&!isNaN(C)&&E.y!==null){y=E.graphic,q=E.shapeArgs,y?(I(y),y.animate(q)):E.graphic=z[E.shapeType](q).attr(E.pointAttr[E.selected?"select":M]).add(n.group).shadow(l.shadow)}})},drawTracker:function(){var K=this,G=K.chart,F=G.renderer,E,C,z=+new Date,y=K.options,q=y.cursor,n=q&&{cursor:q},l;ah(K.data,function(Q){C=Q.tracker;E=Q.trackerArgs||Q.shapeArgs;delete E.strokeWidth;if(Q.y!==null){C?C.attr(E):Q.tracker=F[Q.shapeType](E).attr({isTracker:z,fill:a7,visibility:K.visible?ar:ao,zIndex:y.zIndex||1}).on(aQ?"touchstart":"mouseover",function(S){l=S.relatedTarget||S.fromElement;if(G.hoverSeries!==K&&aH(l,"isTracker")!==z){K.onMouseOver()}Q.onMouseOver()}).on("mouseout",function(S){if(!y.stickyTracking&&(l=S.relatedTarget||S.toElement,aH(l,"isTracker")!==z)){K.onMouseOut()}}).css(n).add(Q.group||G.trackerGroup)}})},animate:function(n){var l=this,q=l.data;if(!n){ah(q,function(y){var z=y.graphic,y=y.shapeArgs;z&&(z.attr({height:0,y:l.yAxis.translate(0,0,1)}),z.animate({height:y.height,y:y.y},l.options.animation))}),l.animate=null}},remove:function(){var n=this,l=n.chart;l.hasRendered&&ah(l.series,function(q){if(q.type===n.type){q.isDirty=!0}});aB.prototype.remove.apply(n,arguments)}});bj.column=ae;Y=ag(ae,{type:"bar",init:function(l){l.inverted=this.inverted=!0;ae.prototype.init.apply(this,arguments)}});bj.bar=Y;Y=ag(aB,{type:"scatter",translate:function(){var l=this;aB.prototype.translate.apply(l);ah(l.data,function(n){n.shapeType="circle";n.shapeArgs={x:n.plotX,y:n.plotY,r:l.chart.options.tooltip.snap}})},drawTracker:function(){var n=this,l=n.options.cursor,y=l&&{cursor:l},q;ah(n.data,function(z){(q=z.graphic)&&q.attr({isTracker:!0}).on("mouseover",function(){n.onMouseOver();z.onMouseOver()}).on("mouseout",function(){if(!n.options.stickyTracking){n.onMouseOut()}}).css(y)})},cleanData:function(){}});bj.scatter=Y;Y=ag(B,{init:function(){B.prototype.init.apply(this,arguments);var n=this,l;aI(n,{visible:n.visible!==!1,name:af(n.name,"Slice")});l=function(){n.slice()};aE(n,"select",l);aE(n,"unselect",l);return n},setVisible:function(n){var l=this.series.chart,E=this.tracker,C=this.dataLabel,z=this.connector,y=this.shadowGroup,q;q=(this.visible=n=n===bo?!this.visible:n)?"show":"hide";this.group[q]();if(E){E[q]()}if(C){C[q]()}if(z){z[q]()}if(y){y[q]()}this.legendItem&&l.legend.colorizeItem(this,n)},slice:function(n,l,z){var y=this.series.chart,q=this.slicedTranslation;j(z,y);af(l,!0);n=this.sliced=ad(n)?n:!this.sliced;n={translateX:n?q[0]:y.plotLeft,translateY:n?q[1]:y.plotTop};this.group.animate(n);this.shadowGroup&&this.shadowGroup.animate(n)}});Y=ag(aB,{type:"pie",isCartesian:!1,pointClass:Y,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var l=this;ah(l.data,function(n){var y=n.graphic,n=n.shapeArgs,q=-t/2;y&&(y.attr({r:0,start:q,end:q}),y.animate({r:n.r,start:n.start,end:n.end},l.options.animation))});l.animate=null},translate:function(){var br=0,bq=-0.25,bp=this.options,ba=bp.slicedOffset,ac=ba+bp.borderWidth,aa=bp.center.concat([bp.size,bp.innerSize||0]),Z=this.chart,X=Z.plotWidth,W=Z.plotHeight,V,U,S,F=this.data,z=2*t,C,E=N(X,W),l,Q,K,G=bp.dataLabels.distance,aa=r(aa,function(q,n){return(l=/%$/.test(q))?[X,W,E,E][n]*aD(q)/100:q});this.getX=function(q,n){S=ax.asin((q-aa[1])/(aa[2]/2+G));return aa[0]+(n?-1:1)*az(S)*(aa[2]/2+G)};this.center=aa;ah(F,function(n){br+=n.y});ah(F,function(n){C=br?n.y/br:0;V=T(bq*z*1000)/1000;bq+=C;U=T(bq*z*1000)/1000;n.shapeType="arc";n.shapeArgs={x:aa[0],y:aa[1],r:aa[2]/2,innerR:aa[3]/2,start:V,end:U};S=(U+V)/2;n.slicedTranslation=r([az(S)*ba+Z.plotLeft,a2(S)*ba+Z.plotTop],T);Q=az(S)*aa[2]/2;K=a2(S)*aa[2]/2;n.tooltipPos=[aa[0]+Q*0.7,aa[1]+K*0.7];n.labelPos=[aa[0]+Q+az(S)*G,aa[1]+K+a2(S)*G,aa[0]+Q+az(S)*ac,aa[1]+K+a2(S)*ac,aa[0]+Q,aa[1]+K,G<0?"center":S0,K=[[],[]],W,Z,n,bp,ba=2,ac;if(bx.enabled){aB.prototype.drawDataLabels.apply(this);ah(bA,function(q){q.dataLabel&&K[q.labelPos[7]n){bt=[].concat(V);bt.sort(bp);for(ac=S;ac--;){bt[ac].rank=ac}for(ac=S;ac--;){V[ac].rank>=n&&V.splice(ac,1)}S=V.length}for(ac=0;acZ&&U[X+1]!==null||W