text: (function(){function D(t,i){var e;t||(t={});for(e in i)t[e]=i[e];return t}function I(){var t,i=arguments.length,e={},n=function(t,i){var e,s;typeof t!=="object"&&(t={});for(s in i)i.hasOwnProperty(s)&&(e=i[s],t[s]=e&&typeof e==="object"&&Object.prototype.toString.call(e)!=="[object Array]"&&typeof e.nodeType!=="number"?n(t[s]||{},e):i[s]);return t};for(t=0;t<i;t++)e=n(e,arguments[t]);return e}function w(t,i){return parseInt(t,i||10)}function g(t){return typeof t==="string"}function c(t){return typeof t==="object"}function m(t){return Object.prototype.toString.call(t)==="[object Array]"}function x(t){return typeof t==="number"}function b(t){return U.log(t)/U.LN10}function T(t){return U.pow(10,t)}function l(t,i){for(var e=t.length;e--;)if(t[e]===i){t.splice(e,1);break}}function z(t){return t!==V&&t!==null}function S(t,i,e){var s,n;if(g(i))z(e)?t.setAttribute(i,e):t&&t.getAttribute&&(n=t.getAttribute(i));else if(z(i)&&c(i))for(s in i)t.setAttribute(s,i[s]);return n}function f(t){return m(t)?t:[t]}function O(){var t=arguments,i,e,s=t.length;for(i=0;i<s;i++)if(e=t[i],typeof e!=="undefined"&&e!==null)return e}function L(t,i){if(rt&&i&&i.opacity!==V)i.filter="alpha(opacity="+i.opacity*100+")";D(t.style,i)}function C(t,i,e,s,n){t=j.createElement(t);i&&D(t,i);n&&L(t,{padding:0,border:Ct,margin:0});e&&L(t,e);s&&s.appendChild(t);return t}function t(t,i){var e=function(){};e.prototype=new t;D(e.prototype,i);return e}function d(t,i,e,s){var n=bt.lang,t=+t||0,o=i===-1?(t.toString().split(".")[1]||"").length:isNaN(i=Q(i))?2:i,i=e===void 0?n.decimalPoint:e,s=s===void 0?n.thousandsSep:s,n=t<0?"-":"",e=String(w(t=Q(t).toFixed(o))),r=e.length>3?e.length%3:0;return n+(r?e.substr(0,r)+s:"")+e.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?i+Q(t-e).toFixed(o).slice(2):"")}function p(t,i){return Array((i||2)+1-String(t).length).join(0)+t}function i(t,i,e){var s=t[i];t[i]=function(){var t=Array.prototype.slice.call(arguments);t.unshift(s);return e.apply(this,t)}}function P(t,i){for(var e="{",s=!1,n,o,r,a,h,l=[];(e=t.indexOf(e))!==-1;){n=t.slice(0,e);if(s){o=n.split(":");r=o.shift().split(".");h=r.length;n=i;for(a=0;a<h;a++)n=n[r[a]];if(o.length)o=o.join(":"),r=/\.([0-9])/,a=bt.lang,h=void 0,/f$/.test(o)?(h=(h=o.match(r))?h[1]:-1,n=d(n,h,a.decimalPoint,o.indexOf(",")>-1?a.thousandsSep:"")):n=kt(o,n)}l.push(n);t=t.slice(e+1);e=(s=!s)?"}":"{"}l.push(t);return l.join("")}function y(t){return U.pow(10,K(U.log(t)/U.LN10))}function v(t,i,e,s){var n,e=O(e,1);n=t/e;i||(i=[1,2,2.5,5,10],s&&s.allowDecimals===!1&&(e===1?i=[1,2,5,10]:e<=.1&&(i=[1/e])));for(s=0;s<i.length;s++)if(t=i[s],n<=(i[s]+(i[s+1]||i[s]))/2)break;t*=e;return t}function k(t,i){var e=i||[[Dt,[1,2,5,10,20,25,50,100,200,500]],[It,[1,2,5,10,15,30]],[zt,[1,2,5,10,15,30]],[Bt,[1,2,3,4,6,8,12]],[Ot,[1,2]],[Ht,[1,2]],[Rt,[1,2,3,4,6]],[Xt,null]],s=e[e.length-1],n=St[s[0]],o=s[1],r;for(r=0;r<e.length;r++)if(s=e[r],n=St[s[0]],o=s[1],e[r+1]&&t<=(n*o[o.length-1]+St[e[r+1][0]])/2)break;n===St[Xt]&&t<5*n&&(o=[1,2,5]);e=v(t/n,o,s[0]===Xt?y(t/n):1);return{unitRange:n,count:e,unitName:s[0]}}function A(t,i,e,s){var n=[],o={},r=bt.global.useUTC,a,h=new Date(i),l=t.unitRange,c=t.count;if(z(i)){l>=St[It]&&(h.setMilliseconds(0),h.setSeconds(l>=St[zt]?0:c*K(h.getSeconds()/c)));if(l>=St[zt])h[_t](l>=St[Bt]?0:c*K(h[Et]()/c));if(l>=St[Bt])h[Ut](l>=St[Ot]?0:c*K(h[Gt]()/c));if(l>=St[Ot])h[Zt](l>=St[Rt]?1:c*K(h[Ft]()/c));l>=St[Rt]&&(h[Kt](l>=St[Xt]?0:c*K(h[Vt]()/c)),a=h[jt]());l>=St[Xt]&&(a-=a%c,h[$t](a));if(l===St[Ht])h[Zt](h[Ft]()-h[Nt]()+O(s,1));i=1;a=h[jt]();for(var s=h.getTime(),d=h[Vt](),p=h[Ft](),f=r?0:(864e5+h.getTimezoneOffset()*6e4)%864e5;s<e;)n.push(s),l===St[Xt]?s=Yt(a+i*c,0):l===St[Rt]?s=Yt(a,d+i*c):!r&&(l===St[Ot]||l===St[Ht])?s=Yt(a,d,p+i*c*(l===St[Ot]?1:7)):s+=l*c,i++;n.push(s);si(ni(n,function(t){return l<=St[Bt]&&t%St[Ot]===f}),function(t){o[t]=Ot})}n.info=D(t,{higherRanks:o,totalRange:l*c});return n}function a(){this.symbol=this.color=0}function u(t,e){var i=t.length,s,n;for(n=0;n<i;n++)t[n].ss_i=n;t.sort(function(t,i){s=e(t,i);return s===0?t.ss_i-i.ss_i:s});for(n=0;n<i;n++)delete t[n].ss_i}function M(t){for(var i=t.length,e=t[0];i--;)t[i]<e&&(e=t[i]);return e}function H(t){for(var i=t.length,e=t[0];i--;)t[i]>e&&(e=t[i]);return e}function o(t,i){for(var e in t)t[e]&&t[e]!==i&&t[e].destroy&&t[e].destroy(),delete t[e]}function r(t){vt||(vt=C(At));t&&vt.appendChild(t);vt.innerHTML=""}function B(t,i){var e="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(i)throw e;else _.console&&console.log(e)}function R(t){return parseFloat(t.toPrecision(14))}function X(t,i){wt=O(t,i.animation)}function e(){var t=bt.global.useUTC,i=t?"getUTC":"get",e=t?"setUTC":"set";Yt=t?Date.UTC:function(t,i,e,s,n,o){return new Date(t,i,O(e,1),O(s,0),O(n,0),O(o,0)).getTime()};Et=i+"Minutes";Gt=i+"Hours";Nt=i+"Day";Ft=i+"Date";Vt=i+"Month";jt=i+"FullYear";_t=e+"Minutes";Ut=e+"Hours";Zt=e+"Date";Kt=e+"Month";$t=e+"FullYear"}function W(){}function Y(t,i,e,s){this.axis=t;this.pos=i;this.type=e||"";this.isNew=!0;!e&&!s&&this.addLabel()}function E(t,i){this.axis=t;if(i)this.options=i,this.id=i.id}function G(t,i,e,s,n,o){var r=t.chart.inverted;this.axis=t;this.isNegative=e;this.options=i;this.x=s;this.total=null;this.points={};this.stack=n;this.percent=o==="percent";this.alignOptions={align:i.align||(r?e?"left":"right":"center"),verticalAlign:i.verticalAlign||(r?"middle":e?"bottom":"top"),y:O(i.y,r?4:e?14:-6),x:O(i.x,r?e?-6:6:0)};this.textAlign=i.textAlign||(r?e?"right":"left":"center")}function h(){this.init.apply(this,arguments)}function N(){this.init.apply(this,arguments)}function s(t,i){this.init(t,i)}function F(t,i){this.init(t,i)}function n(){this.init.apply(this,arguments)}var V,j=document,_=window,U=Math,Z=U.round,K=U.floor,$=U.ceil,q=U.max,J=U.min,Q=U.abs,tt=U.cos,it=U.sin,et=U.PI,st=et*2/360,nt=navigator.userAgent,ot=_.opera,rt=/msie/i.test(nt)&&!ot,at=j.documentMode===8,ht=/AppleWebKit/.test(nt),lt=/Firefox/.test(nt),ct=/(Mobile|Android|Windows Phone)/.test(nt),dt="http://www.w3.org/2000/svg",pt=!!j.createElementNS&&!!j.createElementNS(dt,"svg").createSVGRect,ft=lt&&parseInt(nt.split("Firefox/")[1],10)<4,ut=!pt&&!rt&&!!j.createElement("canvas").getContext,gt,mt=j.documentElement.ontouchstart!==V,xt={},yt=0,vt,bt,kt,wt,Tt,St,Lt=function(){},Pt=[],At="div",Ct="none",Mt="rgba(192,192,192,"+(pt?1e-4:.002)+")",Dt="millisecond",It="second",zt="minute",Bt="hour",Ot="day",Ht="week",Rt="month",Xt="year",Wt="stroke-width",Yt,Et,Gt,Nt,Ft,Vt,jt,_t,Ut,Zt,Kt,$t,qt={};_.Highcharts=_.Highcharts?B(16,!0):{};kt=function(t,i,e){if(!z(i)||isNaN(i))return"Invalid date";var t=O(t,"%Y-%m-%d %H:%M:%S"),s=new Date(i),n,o=s[Gt](),r=s[Nt](),a=s[Ft](),h=s[Vt](),l=s[jt](),c=bt.lang,d=c.weekdays,s=D({a:d[r].substr(0,3),A:d[r],d:p(a),e:a,b:c.shortMonths[h],B:c.months[h],m:p(h+1),y:l.toString().substr(2,2),Y:l,H:p(o),I:p(o%12||12),l:o%12||12,M:p(s[Et]()),p:o<12?"AM":"PM",P:o<12?"am":"pm",S:p(s.getSeconds()),L:p(Z(i%1e3),3)},Highcharts.dateFormats);for(n in s)for(;t.indexOf("%"+n)!==-1;)t=t.replace("%"+n,typeof s[n]==="function"?s[n](i):s[n]);return e?t.substr(0,1).toUpperCase()+t.substr(1):t};a.prototype={wrapColor:function(t){if(this.color>=t)this.color=0},wrapSymbol:function(t){if(this.symbol>=t)this.symbol=0}};St=function(){for(var t=0,i=arguments,e=i.length,s={};t<e;t++)s[i[t++]]=i[t];return s}(Dt,1,It,1e3,zt,6e4,Bt,36e5,Ot,864e5,Ht,6048e5,Rt,26784e5,Xt,31556952e3);Tt={init:function(t,i,e){var i=i||"",s=t.shift,n=i.indexOf("C")>-1,o=n?7:3,r,i=i.split(" "),e=[].concat(e),a,h,l=function(t){for(r=t.length;r--;)t[r]==="M"&&t.splice(r+1,0,t[r+1],t[r+2],t[r+1],t[r+2])};n&&(l(i),l(e));t.isArea&&(a=i.splice(i.length-6,6),h=e.splice(e.length-6,6));if(s<=e.length/o&&i.length===e.length)for(;s--;)e=[].concat(e).splice(0,o).concat(e);t.shift=0;if(i.length)for(t=e.length;i.length<t;)s=[].concat(i).splice(i.length-o,o),n&&(s[o-6]=s[o-2],s[o-5]=s[o-1]),i=i.concat(s);a&&(i=i.concat(a),e=e.concat(h));return[i,e]},step:function(t,i,e,s){var n=[],o=t.length;if(e===1)n=s;else if(o===i.length&&e<1)for(;o--;)s=parseFloat(t[o]),n[o]=isNaN(s)?t[o]:e*parseFloat(i[o]-s)+s;else n=i;return n}};(function(l){_.HighchartsAdapter=_.HighchartsAdapter||l&&{init:function(s){var o=l.fx,r=o.step,t,a=l.Tween,h=a&&a.propHooks;t=l.cssHooks.opacity;l.extend(l.easing,{easeOutQuad:function(t,i,e,s,n){return-s*(i/=n)*(i-2)+e}});l.each(["cur","_default","width","height","opacity"],function(i,e){var t=r,s,n;e==="cur"?t=o.prototype:e==="_default"&&a&&(t=h[e],e="set");(s=t[e])&&(t[e]=function(t){t=i?t:this;if(t.prop!=="align")return n=t.elem,n.attr?n.attr(t.prop,e==="cur"?V:t.now):s.apply(this,arguments)})});i(t,"get",function(t,i,e){return i.attr?i.opacity||0:t.call(this,i,e)});t=function(t){var i=t.elem,e;if(!t.started)e=s.init(i,i.d,i.toD),t.start=e[0],t.end=e[1],t.started=!0;i.attr("d",s.step(t.start,t.end,t.pos,i.toD))};a?h.d={set:t}:r.d=t;this.each=Array.prototype.forEach?function(t,i){return Array.prototype.forEach.call(t,i)}:function(t,i){for(var e=0,s=t.length;e<s;e++)if(i.call(t[e],t[e],e,t)===!1)return e};l.fn.highcharts=function(){var t="Chart",i=arguments,e,s;g(i[0])&&(t=i[0],i=Array.prototype.slice.call(i,1));e=i[0];if(e!==V)e.chart=e.chart||{},e.chart.renderTo=this[0],new Highcharts[t](e,i[1]),s=this;e===V&&(s=Pt[S(this[0],"data-highcharts-chart")]);return s}},getScript:l.getScript,inArray:l.inArray,adapterRun:function(t,i){return l(t)[i]()},grep:l.grep,map:function(t,i){for(var e=[],s=0,n=t.length;s<n;s++)e[s]=i.call(t[s],t[s],s,t);return e},offset:function(t){return l(t).offset()},addEvent:function(t,i,e){l(t).bind(i,e)},removeEvent:function(t,i,e){var s=j.removeEventListener?"removeEventListener":"detachEvent";j[s]&&t&&!t[s]&&(t[s]=function(){});l(t).unbind(i,e)},fireEvent:function(t,i,e,s){var n=l.Event(i),o="detached"+i,r;!rt&&e&&(delete e.layerX,delete e.layerY);D(n,e);t[i]&&(t[o]=t[i],t[i]=null);l.each(["preventDefault","stopPropagation"],function(t,i){var e=n[i];n[i]=function(){try{e.call(n)}catch(t){i==="preventDefault"&&(r=!0)}}});l(t).trigger(n);t[o]&&(t[i]=t[o],t[o]=null);s&&!n.isDefaultPrevented()&&!r&&s(n)},washMouseEvent:function(t){var i=t.originalEvent||t;if(i.pageX===V)i.pageX=t.pageX,i.pageY=t.pageY;return i},animate:function(t,i,e){var s=l(t);if(!t.style)t.style={};if(i.d)t.toD=i.d,i.d=1;s.stop();i.opacity!==V&&t.attr&&(i.opacity+="px");s.animate(i,e)},stop:function(t){l(t).stop()}}})(_.jQuery);var Jt=_.HighchartsAdapter,Qt=Jt||{};Jt&&Jt.init.call(Jt,Tt);var ti=Qt.adapterRun,ii=Qt.getScript,ei=Qt.inArray,si=Qt.each,ni=Qt.grep,oi=Qt.offset,ri=Qt.map,ai=Qt.addEvent,hi=Qt.removeEvent,li=Qt.fireEvent,ci=Qt.washMouseEvent,di=Qt.animate,pi=Qt.stop,Qt={enabled:!0,x:0,y:15,style:{color:"#666",cursor:"default",fontSize:"11px",lineHeight:"14px"}};bt={colors:"#2f7ed8,#0d233a,#8bbc21,#910000,#1aadce,#492970,#f28f43,#77a1e5,#c42525,#a6c96a".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/3.0.6/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/3.0.6/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#274b6d",fontSize:"16px"}},subtitle:{text:"",align:"center",style:{color:"#4d759e"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:I(Qt,{align:"center",enabled:!1,formatter:function(){return this.y===null?"":d(this.y,-1)},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{cursor:"pointer",color:"#274b6d",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"1em"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:pt,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,snap:ct?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var fi=bt.plotOptions,Jt=fi.line;e();var ui=function(t){var n=[],i,o;(function(t){t&&t.stops?o=ri(t.stops,function(t){return ui(t[1])}):(i=/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(t))?n=[w(i[1]),w(i[2]),w(i[3]),parseFloat(i[4],10)]:(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?n=[w(i[1],16),w(i[2],16),w(i[3],16),1]:(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))&&(n=[w(i[1]),w(i[2]),w(i[3]),1])})(t);return{get:function(e){var s;o?(s=I(t),s.stops=[].concat(s.stops),si(o,function(t,i){s.stops[i]=[s.stops[i][0],t.get(e)]})):s=n&&!isNaN(n[0])?e==="rgb"?"rgb("+n[0]+","+n[1]+","+n[2]+")":e==="a"?n[3]:"rgba("+n.join(",")+")":t;return s},brighten:function(i){if(o)si(o,function(t){t.brighten(i)});else if(x(i)&&i!==0){var t;for(t=0;t<3;t++)n[t]+=w(i*255),n[t]<0&&(n[t]=0),n[t]>255&&(n[t]=255)}return this},rgba:n,setOpacity:function(t){n[3]=t;return this}}};W.prototype={init:function(t,i){this.element=i==="span"?C(i):j.createElementNS(dt,i);this.renderer=t;this.attrSetters={}},opacity:1,animate:function(t,i,e){i=O(i,wt,!0);pi(this);if(i){i=I(i);if(e)i.complete=e;di(this,t,i)}else this.attr(t),e&&e()},attr:function(t,i){var e,s,n,o,r=this.element,a=r.nodeName.toLowerCase(),h=this.renderer,l,c=this.attrSetters,d=this.shadows,p,f,u=this;g(t)&&z(i)&&(e=t,t={},t[e]=i);if(g(t))e=t,a==="circle"?e={x:"cx",y:"cy"}[e]||e:e==="strokeWidth"&&(e="stroke-width"),u=S(r,e)||this[e]||0,e!=="d"&&e!=="visibility"&&e!=="fill"&&(u=parseFloat(u));else{for(e in t)if(l=!1,s=t[e],n=c[e]&&c[e].call(this,s,e),n!==!1){n!==V&&(s=n);if(e==="d")s&&s.join&&(s=s.join(" ")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0");else if(e==="x"&&a==="text")for(n=0;n<r.childNodes.length;n++)o=r.childNodes[n],S(o,"x")===S(r,"x")&&S(o,"x",s);else if(this.rotation&&(e==="x"||e==="y"))f=!0;else if(e==="fill")s=h.color(s,r,e);else if(a==="circle"&&(e==="x"||e==="y"))e={x:"cx",y:"cy"}[e]||e;else if(a==="rect"&&e==="r")S(r,{rx:s,ry:s}),l=!0;else if(e==="translateX"||e==="translateY"||e==="rotation"||e==="verticalAlign"||e==="scaleX"||e==="scaleY")l=f=!0;else if(e==="stroke")s=h.color(s,r,e);else if(e==="dashstyle")if(e="stroke-dasharray",s=s&&s.toLowerCase(),s==="solid")s=Ct;else{if(s){s=s.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(n=s.length;n--;)s[n]=w(s[n])*O(t["stroke-width"],this["stroke-width"]);s=s.join(",")}}else if(e==="width")s=w(s);else if(e==="align")e="text-anchor",s={left:"start",center:"middle",right:"end"}[s];else if(e==="title")n=r.getElementsByTagName("title")[0],n||(n=j.createElementNS(dt,"title"),r.appendChild(n)),n.textContent=s;e==="strokeWidth"&&(e="stroke-width");if(e==="stroke-width"||e==="stroke"){this[e]=s;if(this.stroke&&this["stroke-width"])S(r,"stroke",this.stroke),S(r,"stroke-width",this["stroke-width"]),this.hasStroke=!0;else if(e==="stroke-width"&&s===0&&this.hasStroke)r.removeAttribute("stroke"),this.hasStroke=!1;l=!0}this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(e)&&(p||(this.symbolAttr(t),p=!0),l=!0);if(d&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e))for(n=d.length;n--;)S(d[n],e,e==="height"?q(s-(d[n].cutHeight||0),0):s);if((e==="width"||e==="height")&&a==="rect"&&s<0)s=0;this[e]=s;e==="text"?(s!==this.textStr&&delete this.bBox,this.textStr=s,this.added&&h.buildText(this)):l||S(r,e,s)}f&&this.updateTransform()}return u},addClass:function(t){var i=this.element,e=S(i,"class")||"";e.indexOf(t)===-1&&S(i,"class",e+" "+t);return this},symbolAttr:function(i){var e=this;si("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(t){e[t]=O(i[t],e[t])});e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":Ct)},crisp:function(t,i,e,s,n){var o,r={},a={},h,t=t||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;h=Z(t)%2/2;a.x=K(i||this.x||0)+h;a.y=K(e||this.y||0)+h;a.width=K((s||this.width||0)-2*h);a.height=K((n||this.height||0)-2*h);a.strokeWidth=t;for(o in a)this[o]!==a[o]&&(this[o]=r[o]=a[o]);return r},css:function(t){var i=this.element,e=t&&t.width&&i.nodeName.toLowerCase()==="text",s,n="",o=function(t,i){return"-"+i.toLowerCase()};if(t&&t.color)t.fill=t.color;this.styles=t=D(this.styles,t);ut&&e&&delete t.width;if(rt&&!pt)e&&delete t.width,L(this.element,t);else{for(s in t)n+=s.replace(/([A-Z])/g,o)+":"+t[s]+";";S(i,"style",n)}e&&this.added&&this.renderer.buildText(this);return this},on:function(t,i){var e=this,s=e.element;mt&&t==="click"?(s.ontouchstart=function(t){e.touchEventFired=Date.now();t.preventDefault();i.call(s,t)},s.onclick=function(t){(nt.indexOf("Android")===-1||Date.now()-(e.touchEventFired||0)>1100)&&i.call(s,t)}):s["on"+t]=i;return this},setRadialReference:function(t){this.element.radialReference=t;return this},translate:function(t,i){return this.attr({translateX:t,translateY:i})},invert:function(){this.inverted=!0;this.updateTransform();return this},htmlCss:function(t){var i=this.element;if(i=t&&i.tagName==="SPAN"&&t.width)delete t.width,this.textWidth=i,this.updateTransform();this.styles=D(this.styles,t);L(this.element,t);return this},htmlGetBBox:function(){var t=this.element,i=this.bBox;if(!i){if(t.nodeName==="text")t.style.position="absolute";i=this.bBox={x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}return i},htmlUpdateTransform:function(){if(this.added){var i=this.renderer,e=this.element,s=this.translateX||0,n=this.translateY||0,t=this.x||0,o=this.y||0,r=this.textAlign||"left",a={left:0,center:.5,right:1}[r],h=r&&r!=="left",l=this.shadows;L(e,{marginLeft:s,marginTop:n});l&&si(l,function(t){L(t,{marginLeft:s+1,marginTop:n+1})});this.inverted&&si(e.childNodes,function(t){i.invertChild(t,e)});if(e.tagName==="SPAN"){var c,d,l=this.rotation,p;c=0;var f=1,u=0,g;p=w(this.textWidth);var m=this.xCorr||0,x=this.yCorr||0,y=[l,r,e.innerHTML,this.textWidth].join(",");if(y!==this.cTT){z(l)&&(c=l*st,f=tt(c),u=it(c),this.setSpanRotation(l,u,f));c=O(this.elemWidth,e.offsetWidth);d=O(this.elemHeight,e.offsetHeight);if(c>p&&/[ \-]/.test(e.textContent||e.innerText))L(e,{width:p+"px",display:"block",whiteSpace:"normal"}),c=p;p=i.fontMetrics(e.style.fontSize).b;m=f<0&&-c;x=u<0&&-d;g=f*u<0;m+=u*p*(g?1-a:a);x-=f*p*(l?g?a:1-a:1);h&&(m-=c*a*(f<0?-1:1),l&&(x-=d*a*(u<0?-1:1)),L(e,{textAlign:r}));this.xCorr=m;this.yCorr=x}L(e,{left:t+m+"px",top:o+x+"px"});if(ht)d=e.offsetHeight;this.cTT=y}}else this.alignOnAdd=!0},setSpanRotation:function(t){var i={};i[rt?"-ms-transform":ht?"-webkit-transform":lt?"MozTransform":ot?"-o-transform":""]=i.transform="rotate("+t+"deg)";L(this.element,i)},updateTransform:function(){var t=this.translateX||0,i=this.translateY||0,e=this.scaleX,s=this.scaleY,n=this.inverted,o=this.rotation;n&&(t+=this.attr("width"),i+=this.attr("height"));t=["translate("+t+","+i+")"];n?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+(this.x||0)+" "+(this.y||0)+")");(z(e)||z(s))&&t.push("scale("+O(e,1)+" "+O(s,1)+")");t.length&&S(this.element,"transform",t.join(" "))},toFront:function(){var t=this.element;t.parentNode.appendChild(t);return this},align:function(t,i,e){var s,n,o,r,a={};n=this.renderer;o=n.alignedObjects;if(t){if(this.alignOptions=t,this.alignByTranslate=i,!e||g(e))this.alignTo=s=e||"renderer",l(o,this),o.push(this),e=null}else t=this.alignOptions,i=this.alignByTranslate,s=this.alignTo;e=O(e,n[s],n);s=t.align;n=t.verticalAlign;o=(e.x||0)+(t.x||0);r=(e.y||0)+(t.y||0);if(s==="right"||s==="center")o+=(e.width-(t.width||0))/{right:1,center:2}[s];a[i?"translateX":"x"]=Z(o);if(n==="bottom"||n==="middle")r+=(e.height-(t.height||0))/({bottom:1,middle:2}[n]||1);a[i?"translateY":"y"]=Z(r);this[this.placed?"animate":"attr"](a);this.placed=!0;this.alignAttr=a;return this},getBBox:function(){var t=this.bBox,i=this.renderer,e,s=this.rotation;e=this.element;var n=this.styles,o=s*st;if(!t){if(e.namespaceURI===dt||i.forExport){try{t=e.getBBox?D({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight}}catch(t){}if(!t||t.width<0)t={width:0,height:0}}else t=this.htmlGetBBox();if(i.isSVG){i=t.width;e=t.height;if(rt&&n&&n.fontSize==="11px"&&e.toPrecision(3)==="22.7")t.height=e=14;if(s)t.width=Q(e*it(o))+Q(i*tt(o)),t.height=Q(e*tt(o))+Q(i*it(o))}this.bBox=t}return t},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var i=this;i.animate({opacity:0},{duration:t||150,complete:function(){i.hide()}})},add:function(t){var i=this.renderer,e=t||i,s=e.element||i.box,n=s.childNodes,o=this.element,r=S(o,"zIndex"),a;if(t)this.parentGroup=t;this.parentInverted=t&&t.inverted;this.textStr!==void 0&&i.buildText(this);if(r)e.handleZ=!0,r=w(r);if(e.handleZ)for(e=0;e<n.length;e++)if(t=n[e],i=S(t,"zIndex"),t!==o&&(w(i)>r||!z(r)&&z(i))){s.insertBefore(o,t);a=!0;break}a||s.appendChild(o);this.added=!0;li(this,"add");return this},safeRemoveChild:function(t){var i=t.parentNode;i&&i.removeChild(t)},destroy:function(){var i=this,t=i.element||{},e=i.shadows,s=i.renderer.isSVG&&t.nodeName==="SPAN"&&t.parentNode,n,o;t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null;pi(i);if(i.clipPath)i.clipPath=i.clipPath.destroy();if(i.stops){for(o=0;o<i.stops.length;o++)i.stops[o]=i.stops[o].destroy();i.stops=null}i.safeRemoveChild(t);for(e&&si(e,function(t){i.safeRemoveChild(t)});s&&s.childNodes.length===0;)t=s.parentNode,i.safeRemoveChild(s),s=t;i.alignTo&&l(i.renderer.alignedObjects,i);for(n in i)delete i[n];return null},shadow:function(t,i,e){var s=[],n,o,r=this.element,a,h,l,c;if(t){h=O(t.width,3);l=(t.opacity||.15)/h;c=this.parentInverted?"(-1,-1)":"("+O(t.offsetX,1)+", "+O(t.offsetY,1)+")";for(n=1;n<=h;n++){o=r.cloneNode(0);a=h*2+1-2*n;S(o,{isShadow:"true",stroke:t.color||"black","stroke-opacity":l*n,"stroke-width":a,transform:"translate"+c,fill:Ct});if(e)S(o,"height",q(S(o,"height")-a,0)),o.cutHeight=a;i?i.element.appendChild(o):r.parentNode.insertBefore(o,r);s.push(o)}this.shadows=s}return this}};var gi=function(){this.init.apply(this,arguments)};gi.prototype={Element:W,init:function(t,i,e,s){var n=location,o,r;o=this.createElement("svg").attr({version:"1.1"});r=o.element;t.appendChild(r);t.innerHTML.indexOf("xmlns")===-1&&S(r,"xmlns",dt);this.isSVG=!0;this.box=r;this.boxWrapper=o;this.alignedObjects=[];this.url=(lt||ht)&&j.getElementsByTagName("base").length?n.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(j.createTextNode("Created with Highcharts 3.0.6"));this.defs=this.createElement("defs").add();this.forExport=s;this.gradients={};this.setSize(i,e,!1);var a;if(lt&&t.getBoundingClientRect)this.subPixelFix=i=function(){L(t,{left:0,top:0});a=t.getBoundingClientRect();L(t,{left:$(a.left)-a.left+"px",top:$(a.top)-a.top+"px"})},i(),ai(_,"resize",i)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();o(this.gradients||{});this.gradients=null;if(t)this.defs=t.destroy();this.subPixelFix&&hi(_,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(t){var i=new this.Element;i.init(this,t);return i},draw:function(){},buildText:function(p){for(var f=p.element,u=this,g=u.forExport,t=O(p.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),i=f.childNodes,m=/style="([^"]+)"/,x=/href="(http[^"]+)"/,y=S(f,"x"),v=p.styles,b=v&&v.width&&w(v.width),k=v&&v.lineHeight,e=i.length;e--;)f.removeChild(i[e]);b&&!p.added&&this.box.appendChild(f);t[t.length-1]===""&&t.pop();si(t,function(t,l){var c,d=0,t=t.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");c=t.split("|||");si(c,function(t){if(t!==""||c.length===1){var i={},e=j.createElementNS(dt,"tspan"),s;m.test(t)&&(s=t.match(m)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),S(e,"style",s));x.test(t)&&!g&&(S(e,"onclick",'location.href="'+t.match(x)[1]+'"'),L(e,{cursor:"pointer"}));t=(t.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");if(t!==" "&&(e.appendChild(j.createTextNode(t)),d?i.dx=0:i.x=y,S(e,i),!d&&l&&(!pt&&g&&L(e,{display:"block"}),S(e,"dy",k||u.fontMetrics(/px$/.test(e.style.fontSize)?e.style.fontSize:v.fontSize).h,ht&&e.offsetHeight)),f.appendChild(e),d++,b))for(var t=t.replace(/([^\^])-/g,"$1- ").split(" "),n,o,i=p._clipHeight,r=[],a=w(k||16),h=1;t.length||r.length;)delete p.bBox,n=p.getBBox(),o=n.width,n=o>b,!n||t.length===1?(t=r,r=[],t.length&&(h++,i&&h*a>i?(t=["..."],p.attr("title",p.textStr)):(e=j.createElementNS(dt,"tspan"),S(e,{dy:a,x:y}),s&&S(e,"style",s),f.appendChild(e),o>b&&(b=o)))):(e.removeChild(e.firstChild),r.unshift(t.pop())),t.length&&e.appendChild(j.createTextNode(t.join(" ").replace(/- /g,"-")))}})})},button:function(t,i,e,s,n,o,r,a){var h=this.label(t,i,e,null,null,null,null,null,"button"),l=0,c,d,p,f,u,g,t={x1:0,y1:0,x2:0,y2:1},n=I({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:t,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},n);p=n.style;delete n.style;o=I(n,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#FFF"],[1,"#ACF"]]}},o);f=o.style;delete o.style;r=I(n,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#9BD"],[1,"#CDF"]]}},r);u=r.style;delete r.style;a=I(n,{style:{color:"#CCC"}},a);g=a.style;delete a.style;ai(h.element,rt?"mouseover":"mouseenter",function(){l!==3&&h.attr(o).css(f)});ai(h.element,rt?"mouseout":"mouseleave",function(){l!==3&&(c=[n,o,r][l],d=[p,f,u][l],h.attr(c).css(d))});h.setState=function(t){(h.state=l=t)?t===2?h.attr(r).css(u):t===3&&h.attr(a).css(g):h.attr(n).css(p)};return h.on("click",function(){l!==3&&s.call(h)}).attr(n).css(D({cursor:"default"},p))},crispLine:function(t,i){t[1]===t[4]&&(t[1]=t[4]=Z(t[1])-i%2/2);t[2]===t[5]&&(t[2]=t[5]=Z(t[2])+i%2/2);return t},path:function(t){var i={fill:Ct};m(t)?i.d=t:c(t)&&D(i,t);return this.createElement("path").attr(i)},circle:function(t,i,e){t=c(t)?t:{x:t,y:i,r:e};return this.createElement("circle").attr(t)},arc:function(t,i,e,s,n,o){if(c(t))i=t.y,e=t.r,s=t.innerR,n=t.start,o=t.end,t=t.x;t=this.symbol("arc",t||0,i||0,e||0,e||0,{innerR:s||0,start:n||0,end:o||0});t.r=e;return t},rect:function(t,i,e,s,n,o){n=c(t)?t.r:n;n=this.createElement("rect").attr({rx:n,ry:n,fill:Ct});return n.attr(c(t)?t:n.crisp(o,t,i,q(e,0),q(s,0)))},setSize:function(t,i,e){var s=this.alignedObjects,n=s.length;this.width=t;this.height=i;for(this.boxWrapper[O(e,!0)?"animate":"attr"]({width:t,height:i});n--;)s[n].align()},g:function(t){var i=this.createElement("g");return z(t)?i.attr({class:"highcharts-"+t}):i},image:function(t,i,e,s,n){var o={preserveAspectRatio:Ct};arguments.length>1&&D(o,{x:i,y:e,width:s,height:n});o=this.createElement("image").attr(o);o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t);return o},symbol:function(t,i,e,s,n,o){var r,a=this.symbols[t],a=a&&a(Z(i),Z(e),s,n,o),h=/^url\((.*?)\)$/,l,c;if(a)r=this.path(a),D(r,{symbolName:t,x:i,y:e,width:s,height:n}),o&&D(r,o);else if(h.test(t))c=function(t,i){t.element&&(t.attr({width:i[0],height:i[1]}),t.alignByTranslate||t.translate(Z((s-i[0])/2),Z((n-i[1])/2)))},l=t.match(h)[1],t=xt[l],r=this.image(l).attr({x:i,y:e}),r.isImg=!0,t?c(r,t):(r.attr({width:0,height:0}),C("img",{onload:function(){c(r,xt[l]=[this.width,this.height])},src:l}));return r},symbols:{circle:function(t,i,e,s){var n=.166*e;return["M",t+e/2,i,"C",t+e+n,i,t+e+n,i+s,t+e/2,i+s,"C",t-n,i+s,t-n,i,t+e/2,i,"Z"]},square:function(t,i,e,s){return["M",t,i,"L",t+e,i,t+e,i+s,t,i+s,"Z"]},triangle:function(t,i,e,s){return["M",t+e/2,i,"L",t+e,i+s,t,i+s,"Z"]},"triangle-down":function(t,i,e,s){return["M",t,i,"L",t+e,i,t+e/2,i+s,"Z"]},diamond:function(t,i,e,s){return["M",t+e/2,i,"L",t+e,i+s/2,t+e/2,i+s,t,i+s/2,"Z"]},arc:function(t,i,e,s,n){var o=n.start,e=n.r||e||s,r=n.end-.001,s=n.innerR,a=n.open,h=tt(o),l=it(o),c=tt(r),r=it(r),n=n.end-o<et?0:1;return["M",t+e*h,i+e*l,"A",e,e,0,n,1,t+e*c,i+e*r,a?"M":"L",t+s*c,i+s*r,"A",s,s,0,n,0,t+s*h,i+s*l,a?"":"Z"]}},clipRect:function(t,i,e,s){var n="highcharts-"+yt++,o=this.createElement("clipPath").attr({id:n}).add(this.defs),t=this.rect(t,i,e,s,0).add(o);t.id=n;t.clipPath=o;return t},color:function(t,i,e){var s=this,n,o=/^rgba/,r,a,h,l,c,d,p,f=[];t&&t.linearGradient?r="linearGradient":t&&t.radialGradient&&(r="radialGradient");if(r){e=t[r];a=s.gradients;l=t.stops;i=i.radialReference;m(e)&&(t[r]=e={x1:e[0],y1:e[1],x2:e[2],y2:e[3],gradientUnits:"userSpaceOnUse"});r==="radialGradient"&&i&&!z(e.gradientUnits)&&(e=I(e,{cx:i[0]-i[2]/2+e.cx*i[2],cy:i[1]-i[2]/2+e.cy*i[2],r:e.r*i[2],gradientUnits:"userSpaceOnUse"}));for(p in e)p!=="id"&&f.push(p,e[p]);for(p in l)f.push(l[p]);f=f.join(",");a[f]?t=a[f].id:(e.id=t="highcharts-"+yt++,a[f]=h=s.createElement(r).attr(e).add(s.defs),h.stops=[],si(l,function(t){o.test(t[1])?(n=ui(t[1]),c=n.get("rgb"),d=n.get("a")):(c=t[1],d=1);t=s.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(h);h.stops.push(t)}));return"url("+s.url+"#"+t+")"}else return o.test(t)?(n=ui(t),S(i,e+"-opacity",n.get("a")),n.get("rgb")):(i.removeAttribute(e+"-opacity"),t)},text:function(t,i,e,s){var n=bt.chart.style,o=ut||!pt&&this.forExport;if(s&&!this.forExport)return this.html(t,i,e);i=Z(O(i,0));e=Z(O(e,0));t=this.createElement("text").attr({x:i,y:e,text:t}).css({fontFamily:n.fontFamily,fontSize:n.fontSize});o&&t.css({position:"absolute"});t.x=i;t.y=e;return t},html:function(t,i,e){var s=bt.chart.style,n=this.createElement("span"),o=n.attrSetters,r=n.element,a=n.renderer;o.text=function(t){t!==r.innerHTML&&delete this.bBox;r.innerHTML=t;return!1};o.x=o.y=o.align=function(t,i){i==="align"&&(i="textAlign");n[i]=t;n.htmlUpdateTransform();return!1};n.attr({text:t,x:Z(i),y:Z(e)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:s.fontFamily,fontSize:s.fontSize});n.css=n.htmlCss;if(a.isSVG)n.add=function(t){var i,s=a.box.parentNode,e=[];if(t){if(i=t.div,!i){for(;t;)e.push(t),t=t.parentGroup;si(e.reverse(),function(t){var e;i=t.div=t.div||C(At,{className:S(t.element,"class")},{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px"},i||s);e=i.style;D(t.attrSetters,{translateX:function(t){e.left=t+"px"},translateY:function(t){e.top=t+"px"},visibility:function(t,i){e[i]=t}})})}}else i=s;i.appendChild(r);n.added=!0;n.alignOnAdd&&n.htmlUpdateTransform();return n};return n},fontMetrics:function(t){var t=w(t||11),t=t<24?t+4:Z(t*1.2),i=Z(t*.8);return{h:t,b:i}},label:function(t,i,e,s,n,o,r,a,h){function l(){var t,i;t=g.element.style;x=(k===void 0||w===void 0||u.styles.textAlign)&&g.getBBox();u.width=(k||x.width||0)+2*v+b;u.height=(w||x.height||0)+2*v;A=v+f.fontMetrics(t&&t.fontSize).b;if(C){if(!m)t=Z(-y*v),i=a?-A:0,u.box=m=s?f.symbol(s,t,i,u.width,u.height):f.rect(t,i,u.width,u.height,0,P[Wt]),m.add(u);m.isImg||m.attr(I({width:u.width,height:u.height},P));P=null}}function c(){var t=u.styles,t=t&&t.textAlign,i=b+v*(1-y),e;e=a?0:A;if(z(k)&&(t==="center"||t==="right"))i+={center:.5,right:1}[t]*(k-x.width);(i!==g.x||e!==g.y)&&g.attr({x:i,y:e});g.x=i;g.y=e}function d(t,i){m?m.attr(t,i):P[t]=i}function p(){g.add(u);u.attr({text:t,x:i,y:e});m&&z(n)&&u.attr({anchorX:n,anchorY:o})}var f=this,u=f.g(h),g=f.text("",0,0,r).attr({zIndex:1}),m,x,y=0,v=3,b=0,k,w,T,S,L=0,P={},A,r=u.attrSetters,C;ai(u,"add",p);r.width=function(t){k=t;return!1};r.height=function(t){w=t;return!1};r.padding=function(t){z(t)&&t!==v&&(v=t,c());return!1};r.paddingLeft=function(t){z(t)&&t!==b&&(b=t,c());return!1};r.align=function(t){y={left:0,center:.5,right:1}[t];return!1};r.text=function(t,i){g.attr(i,t);l();c();return!1};r[Wt]=function(t,i){C=!0;L=t%2/2;d(i,t);return!1};r.stroke=r.fill=r.r=function(t,i){i==="fill"&&(C=!0);d(i,t);return!1};r.anchorX=function(t,i){n=t;d(i,t+L-T);return!1};r.anchorY=function(t,i){o=t;d(i,t-S);return!1};r.x=function(t){u.x=t;t-=y*((k||x.width)+v);T=Z(t);u.attr("translateX",T);return!1};r.y=function(t){S=u.y=Z(t);u.attr("translateY",S);return!1};var M=u.css;return D(u,{css:function(i){if(i){var e={},i=I(i);si("fontSize,fontWeight,fontFamily,color,lineHeight,width,textDecoration,textShadow".split(","),function(t){i[t]!==V&&(e[t]=i[t],delete i[t])});g.css(e)}return M.call(u,i)},getBBox:function(){return{width:x.width+2*v,height:x.height+2*v,x:x.x-v,y:x.y-v}},shadow:function(t){m&&m.shadow(t);return u},destroy:function(){hi(u,"add",p);hi(u.element,"mouseenter");hi(u.element,"mouseleave");g&&(g=g.destroy());m&&(m=m.destroy());W.prototype.destroy.call(u);u=f=l=c=d=p=null}})}};gt=gi;var mi;if(!pt&&!ut){Highcharts.VMLElement=mi={init:function(t,i){var e=["<",i,' filled="f" stroked="f"'],s=["position: ","absolute",";"],n=i===At;(i==="shape"||n)&&s.push("left:0;top:0;width:1px;height:1px;");s.push("visibility: ",n?"hidden":"visible");e.push(' style="',s.join(""),'"/>');if(i)e=n||i==="span"||i==="img"?e.join(""):t.prepVML(e),this.element=C(e);this.renderer=t;this.attrSetters={}},add:function(t){var i=this.renderer,e=this.element,s=i.box,s=t?t.element||t:s;t&&t.inverted&&i.invertChild(e,s);s.appendChild(e);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();li(this,"add");return this},updateTransform:W.prototype.htmlUpdateTransform,setSpanRotation:function(t,i,e){L(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):Ct})},pathToVML:function(t){for(var i=t.length,e=[],s;i--;)if(x(t[i]))e[i]=Z(t[i]*10)-5;else if(t[i]==="Z")e[i]="x";else if(e[i]=t[i],t.isArc&&(t[i]==="wa"||t[i]==="at"))s=t[i]==="wa"?1:-1,e[i+5]===e[i+7]&&(e[i+7]-=s),e[i+6]===e[i+8]&&(e[i+8]-=s);return e.join(" ")||"x"},attr:function(t,i){var e,s,n,o=this.element||{},r=o.style,a=o.nodeName,h=this.renderer,l=this.symbolName,c,d=this.shadows,p,f=this.attrSetters,u=this;g(t)&&z(i)&&(e=t,t={},t[e]=i);if(g(t))e=t,u=e==="strokeWidth"||e==="stroke-width"?this.strokeweight:this[e];else for(e in t)if(s=t[e],p=!1,n=f[e]&&f[e].call(this,s,e),n!==!1&&s!==null){n!==V&&(s=n);if(l&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(e))c||(this.symbolAttr(t),c=!0),p=!0;else if(e==="d"){s=s||[];this.d=s.join(" ");o.path=s=this.pathToVML(s);if(d)for(n=d.length;n--;)d[n].path=d[n].cutOff?this.cutOffPath(s,d[n].cutOff):s;p=!0}else if(e==="visibility"){if(d)for(n=d.length;n--;)d[n].style[e]=s;a==="DIV"&&(s=s==="hidden"?"-999em":0,at||(r[e]=s?"visible":"hidden"),e="top");r[e]=s;p=!0}else if(e==="zIndex")s&&(r[e]=s),p=!0;else if(ei(e,["x","y","width","height"])!==-1)this[e]=s,e==="x"||e==="y"?e={x:"left",y:"top"}[e]:s=q(0,s),this.updateClipping?(this[e]=s,this.updateClipping()):r[e]=s,p=!0;else if(e==="class"&&a==="DIV")o.className=s;else if(e==="stroke")s=h.color(s,o,e),e="strokecolor";else if(e==="stroke-width"||e==="strokeWidth")o.stroked=s?!0:!1,e="strokeweight",this[e]=s,x(s)&&(s+="px");else if(e==="dashstyle")(o.getElementsByTagName("stroke")[0]||C(h.prepVML(["<stroke/>"]),null,null,o))[e]=s||"solid",this.dashstyle=s,p=!0;else if(e==="fill")if(a==="SPAN")r.color=s;else{if(a!=="IMG")o.filled=s!==Ct?!0:!1,s=h.color(s,o,e,this),e="fillcolor"}else if(e==="opacity")p=!0;else if(a==="shape"&&e==="rotation")this[e]=o.style[e]=s,o.style.left=-Z(it(s*st)+1)+"px",o.style.top=Z(tt(s*st))+"px";else if(e==="translateX"||e==="translateY"||e==="rotation")this[e]=s,this.updateTransform(),p=!0;else if(e==="text")this.bBox=null,o.innerHTML=s,p=!0;p||(at?o[e]=s:S(o,e,s))}return u},clip:function(t){var i=this,e;t?(e=t.members,l(e,i),e.push(i),i.destroyClip=function(){l(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:at?"inherit":"rect(auto)"});return i.css(t)},css:W.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&r(t)},destroy:function(){this.destroyClip&&this.destroyClip();return W.prototype.destroy.apply(this)},on:function(t,i){this.element["on"+t]=function(){var t=_.event;t.target=t.srcElement;i(t)};return this},cutOffPath:function(t,i){var e,t=t.split(/[ ,]/);e=t.length;if(e===9||e===11)t[e-4]=t[e-2]=w(t[e-2])-10*i;return t.join(" ")},shadow:function(t,i,e){var s=[],n,o=this.element,r=this.renderer,a,h=o.style,l,c=o.path,d,p,f,u;c&&typeof c.value!=="string"&&(c="x");p=c;if(t){f=O(t.width,3);u=(t.opacity||.15)/f;for(n=1;n<=3;n++){d=f*2+1-2*n;e&&(p=this.cutOffPath(c.value,d+.5));l=['<shape isShadow="true" strokeweight="',d,'" filled="false" path="',p,'" coordsize="10 10" style="',o.style.cssText,'" />'];a=C(r.prepVML(l),null,{left:w(h.left)+O(t.offsetX,1),top:w(h.top)+O(t.offsetY,1)});if(e)a.cutOff=d+1;l=['<stroke color="',t.color||"black",'" opacity="',u*n,'"/>'];C(r.prepVML(l),null,null,a);i?i.element.appendChild(a):o.parentNode.insertBefore(a,o);s.push(a)}this.shadows=s}return this}};mi=t(W,mi);var xi={Element:mi,isIE8:nt.indexOf("MSIE 8.0")>-1,init:function(t,i,e){var s,n;this.alignedObjects=[];s=this.createElement(At);n=s.element;n.style.position="relative";t.appendChild(s.element);this.isVML=!0;this.box=n;this.boxWrapper=s;this.setSize(i,e,!1);j.namespaces.hcv||(j.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),(j.styleSheets.length?j.styleSheets[0]:j.createStyleSheet()).cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,i,e,s){var n=this.createElement(),o=c(t);return D(n,{members:[],left:(o?t.x:t)+1,top:(o?t.y:i)+1,width:(o?t.width:e)-1,height:(o?t.height:s)-1,getCSS:function(t){var i=t.element,e=i.nodeName,t=t.inverted,s=this.top-(e==="shape"?i.offsetTop:0),n=this.left,i=n+this.width,o=s+this.height,s={clip:"rect("+Z(t?n:s)+"px,"+Z(t?o:i)+"px,"+Z(t?i:o)+"px,"+Z(t?s:n)+"px)"};!t&&at&&e==="DIV"&&D(s,{width:i+"px",height:o+"px"});return s},updateClipping:function(){si(n.members,function(t){t.css(n.getCSS(t))})}})},color:function(t,i,e,s){var n=this,o,r=/^rgba/,a,h,l=Ct;t&&t.linearGradient?h="gradient":t&&t.radialGradient&&(h="pattern");if(h){var c,d,p=t.linearGradient||t.radialGradient,f,u,g,m,x,y="",t=t.stops,v,b=[],k=function(){a=['<fill colors="'+b.join(",")+'" opacity="',g,'" o:opacity2="',u,'" type="',h,'" ',y,'focus="100%" method="any" />'];C(n.prepVML(a),null,null,i)};f=t[0];v=t[t.length-1];f[0]>0&&t.unshift([0,f[1]]);v[0]<1&&t.push([1,v[1]]);si(t,function(t,i){r.test(t[1])?(o=ui(t[1]),c=o.get("rgb"),d=o.get("a")):(c=t[1],d=1);b.push(t[0]*100+"% "+c);i?(g=d,m=c):(u=d,x=c)});if(e==="fill")if(h==="gradient")e=p.x1||p[0]||0,t=p.y1||p[1]||0,f=p.x2||p[2]||0,p=p.y2||p[3]||0,y='angle="'+(90-U.atan((p-t)/(f-e))*180/et)+'"',k();else{var l=p.r,w=l*2,T=l*2,S=p.cx,L=p.cy,P=i.radialReference,A,l=function(){P&&(A=s.getBBox(),S+=(P[0]-A.x)/A.width-.5,L+=(P[1]-A.y)/A.height-.5,w*=P[2]/A.width,T*=P[2]/A.height);y='src="'+bt.global.VMLRadialGradientURL+'" size="'+w+","+T+'" origin="0.5,0.5" position="'+S+","+L+'" color2="'+x+'" ';k()};s.added?l():ai(s,"add",l);l=m}else l=c}else if(r.test(t)&&i.tagName!=="IMG")o=ui(t),a=["<",e,' opacity="',o.get("a"),'"/>'],C(this.prepVML(a),null,null,i),l=o.get("rgb");else{l=i.getElementsByTagName(e);if(l.length)l[0].opacity=1,l[0].type="solid";l=t}return l},prepVML:function(t){var i=this.isIE8,t=t.join("");i?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=t.indexOf('style="')===-1?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:");return t},text:gi.prototype.html,path:function(t){var i={coordsize:"10 10"};m(t)?i.d=t:c(t)&&D(i,t);return this.createElement("shape").attr(i)},circle:function(t,i,e){var s=this.symbol("circle");if(c(t))e=t.r,i=t.y,t=t.x;s.isCircle=!0;s.r=e;return s.attr({x:t,y:i})},g:function(t){var i;t&&(i={className:"highcharts-"+t,class:"highcharts-"+t});return this.createElement(At).attr(i)},image:function(t,i,e,s,n){var o=this.createElement("img").attr({src:t});arguments.length>1&&o.attr({x:i,y:e,width:s,height:n});return o},rect:function(t,i,e,s,n,o){var r=this.symbol("rect");r.r=c(t)?t.r:n;return r.attr(c(t)?t:r.crisp(o,t,i,q(e,0),q(s,0)))},invertChild:function(t,i){var e=i.style;L(t,{flip:"x",left:w(e.width)-1,top:w(e.height)-1,rotation:-90})},symbols:{arc:function(t,i,e,s,n){var o=n.start,r=n.end,a=n.r||e||s,e=n.innerR,s=tt(o),h=it(o),l=tt(r),c=it(r);if(r-o===0)return["x"];o=["wa",t-a,i-a,t+a,i+a,t+a*s,i+a*h,t+a*l,i+a*c];n.open&&!e&&o.push("e","M",t,i);o.push("at",t-e,i-e,t+e,i+e,t+e*l,i+e*c,t+e*s,i+e*h,"x","e");o.isArc=!0;return o},circle:function(t,i,e,s,n){n&&(e=s=2*n.r);n&&n.isCircle&&(t-=e/2,i-=s/2);return["wa",t,i,t+e,i+s,t+e,i+s/2,t+e,i+s/2,"e"]},rect:function(t,i,e,s,n){var o=t+e,r=i+s,a;!z(n)||!n.r?o=gi.prototype.symbols.square.apply(0,arguments):(a=J(n.r,e,s),o=["M",t+a,i,"L",o-a,i,"wa",o-2*a,i,o,i+2*a,o-a,i,o,i+a,"L",o,r-a,"wa",o-2*a,r-2*a,o,r,o,r-a,o-a,r,"L",t+a,r,"wa",t,r-2*a,t+2*a,r,t+a,r,t,r-a,"L",t,i+a,"wa",t,i,t+2*a,i+2*a,t,i+a,t+a,i,"x","e"]);return o}}};Highcharts.VMLRenderer=mi=function(){this.init.apply(this,arguments)};mi.prototype=I(gi.prototype,xi);gt=mi}var yi;if(ut)Highcharts.CanVGRenderer=mi=function(){dt="http://www.w3.org/1999/xhtml"},mi.prototype.symbols={},yi=function(){function e(){var t=s.length,i;for(i=0;i<t;i++)s[i]();s=[]}var s=[];return{push:function(t,i){s.length===0&&ii(i,e);s.push(t)}}}(),gt=mi;Y.prototype={addLabel:function(){var t=this.axis,i=t.options,e=t.chart,s=t.horiz,n=t.categories,o=t.series[0]&&t.series[0].names,r=this.pos,a=i.labels,h=t.tickPositions,s=s&&n&&!a.step&&!a.staggerLines&&!a.rotation&&e.plotWidth/h.length||!s&&(e.margin[3]||e.chartWidth*.33),l=r===h[0],c=r===h[h.length-1],d,o=n?O(n[r],o&&o[r],r):r,n=this.label,p=h.info;t.isDatetimeAxis&&p&&(d=i.dateTimeLabelFormats[p.higherRanks[r]||p.unitName]);this.isFirst=l;this.isLast=c;i=t.labelFormatter.call({axis:t,chart:e,isFirst:l,isLast:c,dateTimeLabelFormat:d,value:t.isLog?R(T(o)):o});r=s&&{width:q(1,Z(s-2*(a.padding||10)))+"px"};r=D(r,a.style);if(z(n))n&&n.attr({text:i}).css(r);else{d={align:t.labelAlign};if(x(a.rotation))d.rotation=a.rotation;if(s&&a.ellipsis)d._clipHeight=t.len/h.length;this.label=z(i)&&a.enabled?e.renderer.text(i,0,0,a.useHTML).attr(d).css(r).add(t.labelGroup):null}},getLabelSize:function(){var t=this.label,i=this.axis;return t?(this.labelBBox=t.getBBox())[i.horiz?"height":"width"]:0},getLabelSides:function(){var t=this.axis,i=this.labelBBox.width,t=i*{left:0,center:.5,right:1}[t.labelAlign]-t.options.labels.x;return[-t,i-t]},handleOverflow:function(t,i){var e=!0,s=this.axis,n=s.chart,o=this.isFirst,r=this.isLast,a=i.x,h=s.reversed,l=s.tickPositions;if(o||r){var c=this.getLabelSides(),d=c[0],c=c[1],n=n.plotLeft,p=n+s.len,l=(s=s.ticks[l[t+(o?1:-1)]])&&s.label.xy&&s.label.xy.x+s.getLabelSides()[o?0:1];o&&!h||r&&h?a+d<n&&(a=n-d,s&&a+c>l&&(e=!1)):a+c>p&&(a=p-c,s&&a+d<l&&(e=!1));i.x=a}return e},getPosition:function(t,i,e,s){var n=this.axis,o=n.chart,r=s&&o.oldChartHeight||o.chartHeight;return{x:t?n.translate(i+e,null,null,s)+n.transB:n.left+n.offset+(n.opposite?(s&&o.oldChartWidth||o.chartWidth)-n.right-n.left:0),y:t?r-n.bottom+n.offset-(n.opposite?n.height:0):r-n.translate(i+e,null,null,s)-n.transB}},getLabelPosition:function(t,i,e,s,n,o,r,a){var h=this.axis,l=h.transA,c=h.reversed,d=h.staggerLines,p=h.chart.renderer.fontMetrics(n.style.fontSize).b,f=n.rotation,t=t+n.x-(o&&s?o*l*(c?-1:1):0),i=i+n.y-(o&&!s?o*l*(c?1:-1):0);f&&h.side===2&&(i-=p-p*tt(f*st));!z(n.y)&&!f&&(i+=p-e.getBBox().height/2);d&&(i+=r/(a||1)%d*(h.labelOffset/d));return{x:t,y:i}},getMarkPath:function(t,i,e,s,n,o){return o.crispLine(["M",t,i,"L",t+(n?0:-e),i+(n?e:0)],s)},render:function(t,i,e){var s=this.axis,n=s.options,o=s.chart.renderer,r=s.horiz,a=this.type,h=this.label,l=this.pos,c=n.labels,d=this.gridLine,p=a?a+"Grid":"grid",f=a?a+"Tick":"tick",u=n[p+"LineWidth"],g=n[p+"LineColor"],m=n[p+"LineDashStyle"],x=n[f+"Length"],p=n[f+"Width"]||0,y=n[f+"Color"],v=n[f+"Position"],f=this.mark,b=c.step,k=!0,w=s.tickmarkOffset,T=this.getPosition(r,l,w,i),S=T.x,T=T.y,L=r&&S===s.pos+s.len||!r&&T===s.pos?-1:1,P=s.staggerLines;this.isActive=!0;if(u){l=s.getPlotLinePath(l+w,u*L,i,!0);if(d===V){d={stroke:g,"stroke-width":u};if(m)d.dashstyle=m;if(!a)d.zIndex=1;if(i)d.opacity=0;this.gridLine=d=u?o.path(l).attr(d).add(s.gridGroup):null}if(!i&&d&&l)d[this.isNew?"attr":"animate"]({d:l,opacity:e})}if(p&&x)v==="inside"&&(x=-x),s.opposite&&(x=-x),i=this.getMarkPath(S,T,x,p*L,r,o),f?f.animate({d:i,opacity:e}):this.mark=o.path(i).attr({stroke:y,"stroke-width":p,opacity:e}).add(s.axisGroup);if(h&&!isNaN(S))h.xy=T=this.getLabelPosition(S,T,h,r,c,w,t,b),this.isFirst&&!this.isLast&&!O(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!O(n.showLastLabel,1)?k=!1:!P&&r&&c.overflow==="justify"&&!this.handleOverflow(t,T)&&(k=!1),b&&t%b&&(k=!1),k&&!isNaN(T.y)?(T.opacity=e,h[this.isNew?"attr":"animate"](T),this.isNew=!1):h.attr("y",-9999)},destroy:function(){o(this,this.axis)}};E.prototype={render:function(){var e=this,t=e.axis,i=t.horiz,s=(t.pointRange||0)/2,n=e.options,o=n.label,r=e.label,a=n.width,h=n.to,l=n.from,c=z(l)&&z(h),d=n.value,p=n.dashStyle,f=e.svgElem,u=[],g,m=n.color,x=n.zIndex,y=n.events,v=t.chart.renderer;t.isLog&&(l=b(l),h=b(h),d=b(d));if(a){if(u=t.getPlotLinePath(d,a),s={stroke:m,"stroke-width":a},p)s.dashstyle=p}else if(c){if(l=q(l,t.min-s),h=J(h,t.max+s),u=t.getPlotBandPath(l,h,n),s={fill:m},n.borderWidth)s.stroke=n.borderColor,s["stroke-width"]=n.borderWidth}else return;if(z(x))s.zIndex=x;if(f)u?f.animate({d:u},null,f.onGetPath):(f.hide(),f.onGetPath=function(){f.show()});else if(u&&u.length&&(e.svgElem=f=v.path(u).attr(s).add(),y))for(g in n=function(i){f.on(i,function(t){y[i].apply(e,[t])})},y)n(g);if(o&&z(o.text)&&u&&u.length&&t.width>0&&t.height>0){o=I({align:i&&c&&"center",x:i?!c&&4:10,verticalAlign:!i&&c&&"middle",y:i?c?16:10:c?6:-4,rotation:i&&!c&&90},o);if(!r)e.label=r=v.text(o.text,0,0,o.useHTML).attr({align:o.textAlign||o.align,rotation:o.rotation,zIndex:x}).css(o.style).add();t=[u[1],u[4],O(u[6],u[1])];u=[u[2],u[5],O(u[7],u[2])];i=M(t);c=M(u);r.align(o,!1,{x:i,y:c,width:H(t)-i,height:H(u)-c});r.show()}else r&&r.hide();return e},destroy:function(){l(this.axis.plotLinesAndBands,this);delete this.axis;o(this)}};G.prototype={destroy:function(){o(this,this.axis)},render:function(t){var i=this.options,e=i.format,e=e?P(e,this):i.formatter.call(this);this.label?this.label.attr({text:e,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(e,0,0,i.useHTML).css(i.style).attr({align:this.textAlign,rotation:i.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,i){var e=this.axis,s=e.chart,n=s.inverted,o=this.isNegative,r=e.translate(this.percent?100:this.total,0,0,0,1),e=e.translate(0),e=Q(r-e),a=s.xAxis[0].translate(this.x)+t,h=s.plotHeight,o={x:n?o?r:r-e:a,y:n?h-a-i:o?h-r-e:h-r,width:n?e:i,height:n?i:e};if(n=this.label)n.align(this.alignOptions,null,o),o=n.alignAttr,n.attr({visibility:this.options.crop===!1||s.isInsidePlot(o.x,o.y)?pt?"inherit":"visible":"hidden"})}};h.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:Qt,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#4d759e",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return d(this.total,-1)},style:Qt.style}},defaultLeftAxisOptions:{labels:{x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-5},title:{rotation:0}},init:function(t,i){var e=i.isX;this.horiz=t.inverted?!e:e;this.xOrY=(this.isXAxis=e)?"x":"y";this.opposite=i.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(i);var s=this.options,n=s.type;this.labelFormatter=s.labels.formatter||this.defaultLabelFormatter;this.userOptions=i;this.minPixelPadding=0;this.chart=t;this.reversed=s.reversed;this.zoomEnabled=s.zoomEnabled!==!1;this.categories=s.categories||n==="category";this.isLog=n==="logarithmic";this.isDatetimeAxis=n==="datetime";this.isLinked=z(s.linkedTo);this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"?.5:0;this.ticks={};this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=s.minRange||s.maxZoom;this.range=s.range;this.offset=s.offset||0;this.stacks={};this.oldStacks={};this.stackExtremes={};this.min=this.max=null;var o,s=this.options.events;ei(this,t.axes)===-1&&(t.axes.push(this),t[e?"xAxis":"yAxis"].push(this));this.series=this.series||[];if(t.inverted&&e&&this.reversed===V)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in s)ai(this,o,s[o]);if(this.isLog)this.val2lin=b,this.lin2val=T},setOptions:function(t){this.options=I(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],I(bt[this.isXAxis?"xAxis":"yAxis"],t))},update:function(t,i){var e=this.chart,t=e.options[this.xOrY+"Axis"][this.options.index]=I(this.userOptions,t);this.destroy(!0);this._addedPlotLB=this.userMin=this.userMax=V;this.init(e,D(t,{events:V}));e.isDirtyBox=!0;O(i,!0)&&e.redraw()},remove:function(t){var i=this.chart,e=this.xOrY+"Axis";si(this.series,function(t){t.remove(!1)});l(i.axes,this);l(i[e],this);i.options[e].splice(this.options.index,1);si(i[e],function(t,i){t.options.index=i});this.destroy();i.isDirtyBox=!0;O(t,!0)&&i.redraw()},defaultLabelFormatter:function(){var t=this.axis,i=this.value,e=t.categories,s=this.dateTimeLabelFormat,n=bt.lang.numericSymbols,o=n&&n.length,r,a=t.options.labels.format,t=t.isLog?i:t.tickInterval;if(a)r=P(a,this);else if(e)r=i;else if(s)r=kt(s,i);else if(o&&t>=1e3)for(;o--&&r===V;)e=Math.pow(1e3,o+1),t>=e&&n[o]!==null&&(r=d(i/e,-1)+n[o]);r===V&&(r=i>=1e3?d(i,0):d(i,-1));return r},getSeriesExtremes:function(){var s=this,n=s.chart;s.hasVisibleSeries=!1;s.dataMin=s.dataMax=null;s.stackExtremes={};s.buildStacks();si(s.series,function(t){if(t.visible||!n.options.chart.ignoreHiddenSeries){var i;i=t.options.threshold;var e;s.hasVisibleSeries=!0;s.isLog&&i<=0&&(i=null);if(s.isXAxis){if(i=t.xData,i.length)s.dataMin=J(O(s.dataMin,i[0]),M(i)),s.dataMax=q(O(s.dataMax,i[0]),H(i))}else{t.getExtremes();e=t.dataMax;t=t.dataMin;if(z(t)&&z(e))s.dataMin=J(O(s.dataMin,t),t),s.dataMax=q(O(s.dataMax,e),e);if(z(i))if(s.dataMin>=i)s.dataMin=i,s.ignoreMinPadding=!0;else if(s.dataMax<i)s.dataMax=i,s.ignoreMaxPadding=!0}}})},translate:function(t,i,e,s,n,o){var r=this.len,a=1,h=0,l=s?this.oldTransA:this.transA,s=s?this.oldMin:this.min,c=this.minPixelPadding,n=(this.options.ordinal||this.isLog&&n)&&this.lin2val;if(!l)l=this.transA;e&&(a*=-1,h=r);this.reversed&&(a*=-1,h-=a*r);i?(t=t*a+h,t-=c,t=t/l+s,n&&(t=this.lin2val(t))):(n&&(t=this.val2lin(t)),o==="between"&&(o=.5),t=a*(t-s)*l+h+a*c+(x(o)?l*o*this.pointRange:0));return t},toPixels:function(t,i){return this.translate(t,!1,!this.horiz,null,!0)+(i?0:this.pos)},toValue:function(t,i){return this.translate(t-(i?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,i,e,s){var n=this.chart,o=this.left,r=this.top,a,h,l,t=this.translate(t,null,null,e),c=e&&n.oldChartHeight||n.chartHeight,d=e&&n.oldChartWidth||n.chartWidth,p;a=this.transB;e=h=Z(t+a);a=l=Z(c-t-a);if(isNaN(t))p=!0;else if(this.horiz){if(a=r,l=c-this.bottom,e<o||e>o+this.width)p=!0}else if(e=o,h=d-this.right,a<r||a>r+this.height)p=!0;return p&&!s?null:n.renderer.crispLine(["M",e,a,"L",h,l],i||0)},getPlotBandPath:function(t,i){var e=this.getPlotLinePath(i),s=this.getPlotLinePath(t);s&&e?s.push(e[4],e[5],e[1],e[2]):s=null;return s},getLinearTickPositions:function(t,i,e){for(var s,i=R(K(i/t)*t),e=R($(e/t)*t),n=[];i<=e;){n.push(i);i=R(i+t);if(i===s)break;s=i}return n},getLogTickPositions:function(t,i,e,s){var n=this.options,o=this.len,r=[];if(!s)this._minorAutoInterval=null;if(t>=.5)t=Z(t),r=this.getLinearTickPositions(t,i,e);else if(t>=.08)for(var o=K(i),a,h,l,c,d,n=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];o<e+1&&!d;o++){h=n.length;for(a=0;a<h&&!d;a++)l=b(T(o)*n[a]),l>i&&(!s||c<=e)&&r.push(c),c>e&&(d=!0),c=l}else if(i=T(i),e=T(e),t=n[s?"minorTickInterval":"tickInterval"],t=O(t==="auto"?null:t,this._minorAutoInterval,(e-i)*(n.tickPixelInterval/(s?5:1))/((s?o/this.tickPositions.length:o)||1)),t=v(t,null,y(t)),r=ri(this.getLinearTickPositions(t,i,e),b),!s)this._minorAutoInterval=t/5;if(!s)this.tickInterval=t;return r},getMinorTickPositions:function(){var t=this.options,i=this.tickPositions,e=this.minorTickInterval,s=[],n;if(this.isLog){n=i.length;for(t=1;t<n;t++)s=s.concat(this.getLogTickPositions(e,i[t-1],i[t],!0))}else if(this.isDatetimeAxis&&t.minorTickInterval==="auto")s=s.concat(A(k(e),this.min,this.max,t.startOfWeek)),s[0]<this.min&&s.shift();else for(i=this.min+(i[0]-this.min)%e;i<=this.max;i+=e)s.push(i);return s},adjustForMinRange:function(){var t=this.options,i=this.min,e=this.max,s,n=this.dataMax-this.dataMin>=this.minRange,o,r,a,h,l;if(this.isXAxis&&this.minRange===V&&!this.isLog)z(t.min)||z(t.max)?this.minRange=null:(si(this.series,function(t){h=t.xData;for(r=l=t.xIncrement?1:h.length-1;r>0;r--)if(a=h[r]-h[r-1],o===V||a<o)o=a}),this.minRange=J(o*5,this.dataMax-this.dataMin));if(e-i<this.minRange){var c=this.minRange;s=(c-e+i)/2;s=[i-s,O(t.min,i-s)];if(n)s[2]=this.dataMin;i=H(s);e=[i+c,O(t.max,i+c)];if(n)e[2]=this.dataMax;e=M(e);e-i<c&&(s[0]=e-c,s[1]=O(t.min,e-c),i=H(s))}this.min=i;this.max=e},setAxisTranslation:function(t){var n=this.max-this.min,o=0,r,a=0,h=0,i=this.linkedParent,e=this.transA;if(this.isXAxis)i?(a=i.minPointOffset,h=i.pointRangePadding):si(this.series,function(t){var i=t.pointRange,e=t.options.pointPlacement,s=t.closestPointRange;i>n&&(i=0);o=q(o,i);a=q(a,g(e)?0:i/2);h=q(h,e==="on"?0:i);!t.noSharedTooltip&&z(s)&&(r=z(r)?J(r,s):s)}),i=this.ordinalSlope&&r?this.ordinalSlope/r:1,this.minPointOffset=a*=i,this.pointRangePadding=h*=i,this.pointRange=J(o,n),this.closestPointRange=r;if(t)this.oldTransA=e;this.translationSlope=this.transA=e=this.len/(n+h||1);this.transB=this.horiz?this.left:this.bottom;this.minPixelPadding=e*a},setTickPositions:function(t){var i=this,e=i.chart,s=i.options,n=i.isLog,o=i.isDatetimeAxis,r=i.isXAxis,a=i.isLinked,h=i.options.tickPositioner,l=s.maxPadding,c=s.minPadding,d=s.tickInterval,p=s.minTickInterval,f=s.tickPixelInterval,u,g=i.categories;a?(i.linkedParent=e[r?"xAxis":"yAxis"][s.linkedTo],e=i.linkedParent.getExtremes(),i.min=O(e.min,e.dataMin),i.max=O(e.max,e.dataMax),s.type!==i.linkedParent.options.type&&B(11,1)):(i.min=O(i.userMin,s.min,i.dataMin),i.max=O(i.userMax,s.max,i.dataMax));if(n)!t&&J(i.min,O(i.dataMin,i.min))<=0&&B(10,1),i.min=R(b(i.min)),i.max=R(b(i.max));if(i.range&&(i.userMin=i.min=q(i.min,i.max-i.range),i.userMax=i.max,t))i.range=null;i.beforePadding&&i.beforePadding();i.adjustForMinRange();if(!g&&!i.usePercentage&&!a&&z(i.min)&&z(i.max)&&(e=i.max-i.min)){if(!z(s.min)&&!z(i.userMin)&&c&&(i.dataMin<0||!i.ignoreMinPadding))i.min-=e*c;if(!z(s.max)&&!z(i.userMax)&&l&&(i.dataMax>0||!i.ignoreMaxPadding))i.max+=e*l}i.min===i.max||i.min===void 0||i.max===void 0?i.tickInterval=1:a&&!d&&f===i.linkedParent.options.tickPixelInterval?i.tickInterval=i.linkedParent.tickInterval:(i.tickInterval=O(d,g?1:(i.max-i.min)*f/q(i.len,f)),!z(d)&&i.len<f&&!this.isRadial&&(u=!0,i.tickInterval/=4));r&&!t&&si(i.series,function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)});i.setAxisTranslation(!0);i.beforeSetTickPositions&&i.beforeSetTickPositions();if(i.postProcessTickInterval)i.tickInterval=i.postProcessTickInterval(i.tickInterval);if(i.pointRange)i.tickInterval=q(i.pointRange,i.tickInterval);if(!d&&i.tickInterval<p)i.tickInterval=p;if(!o&&!n&&!d)i.tickInterval=v(i.tickInterval,null,y(i.tickInterval),s);i.minorTickInterval=s.minorTickInterval==="auto"&&i.tickInterval?i.tickInterval/5:s.minorTickInterval;i.tickPositions=t=s.tickPositions?[].concat(s.tickPositions):h&&h.apply(i,[i.min,i.max]);if(!t)!i.ordinalPositions&&(i.max-i.min)/i.tickInterval>q(2*i.len,200)&&B(19,!0),t=o?(i.getNonLinearTimeTicks||A)(k(i.tickInterval,s.units),i.min,i.max,s.startOfWeek,i.ordinalPositions,i.closestPointRange,!0):n?i.getLogTickPositions(i.tickInterval,i.min,i.max):i.getLinearTickPositions(i.tickInterval,i.min,i.max),u&&t.splice(1,t.length-2),i.tickPositions=t;if(!a)n=t[0],o=t[t.length-1],a=i.minPointOffset||0,s.startOnTick?i.min=n:i.min-a>n&&t.shift(),s.endOnTick?i.max=o:i.max+a<o&&t.pop(),t.length===1&&(i.min-=.001,i.max+=.001)},setMaxTicks:function(){var t=this.chart,i=t.maxTicks||{},e=this.tickPositions,s=this._maxTicksKey=[this.xOrY,this.pos,this.len].join("-");if(!this.isLinked&&!this.isDatetimeAxis&&e&&e.length>(i[s]||0)&&this.options.alignTicks!==!1)i[s]=e.length;t.maxTicks=i},adjustTickAmount:function(){var t=this._maxTicksKey,i=this.tickPositions,e=this.chart.maxTicks;if(e&&e[t]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var s=this.tickAmount,n=i.length;this.tickAmount=t=e[t];if(n<t){for(;i.length<t;)i.push(R(i[i.length-1]+this.tickInterval));this.transA*=(n-1)/(t-1);this.max=i[i.length-1]}if(z(s)&&t!==s)this.isDirty=!0}},setScale:function(){var t=this.stacks,i,e,s,n;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();n=this.len!==this.oldAxisLength;si(this.series,function(t){if(t.isDirtyData||t.isDirty||t.xAxis.isDirty)s=!0});if(n||s||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(i in t)delete t[i];this.forceRedraw=!1;this.getSeriesExtremes();this.setTickPositions();this.oldUserMin=this.userMin;this.oldUserMax=this.userMax;if(!this.isDirty)this.isDirty=n||this.min!==this.oldMin||this.max!==this.oldMax}else if(!this.isXAxis){if(this.oldStacks)t=this.stacks=this.oldStacks;for(i in t)for(e in t[i])t[i][e].cum=t[i][e].total}this.setMaxTicks()},setExtremes:function(t,i,e,s,n){var o=this,r=o.chart,e=O(e,!0),n=D(n,{min:t,max:i});li(o,"setExtremes",n,function(){o.userMin=t;o.userMax=i;o.eventArgs=n;o.isDirtyExtremes=!0;e&&r.redraw(s)})},zoom:function(t,i){this.allowZoomOutside||(z(this.dataMin)&&t<=this.dataMin&&(t=V),z(this.dataMax)&&i>=this.dataMax&&(i=V));this.displayBtn=t!==V||i!==V;this.setExtremes(t,i,!1,V,{trigger:"zoom"});return!0},setAxisSize:function(){var t=this.chart,i=this.options,e=i.offsetLeft||0,s=i.offsetRight||0,n=this.horiz,o,r;this.left=r=O(i.left,t.plotLeft+e);this.top=o=O(i.top,t.plotTop);this.width=e=O(i.width,t.plotWidth-e+s);this.height=i=O(i.height,t.plotHeight);this.bottom=t.chartHeight-i-o;this.right=t.chartWidth-e-r;this.len=q(n?e:i,0);this.pos=n?r:o},getExtremes:function(){var t=this.isLog;return{min:t?R(T(this.min)):this.min,max:t?R(T(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var i=this.isLog,e=i?T(this.min):this.min,i=i?T(this.max):this.max;e>t||t===null?t=e:i<t&&(t=i);return this.translate(t,0,1,0,1)},addPlotBand:function(t){this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,i){var e=new E(this,t).render(),s=this.userOptions;e&&(i&&(s[i]=s[i]||[],s[i].push(t)),this.plotLinesAndBands.push(e));return e},autoLabelAlign:function(t){t=(O(t,0)-this.side*90+720)%360;return t>15&&t<165?"right":t>195&&t<345?"left":"center"},getOffset:function(){var i=this,t=i.chart,e=t.renderer,s=i.options,n=i.tickPositions,o=i.ticks,r=i.horiz,a=i.side,h=t.inverted?[1,0,3,2][a]:a,l,c=0,d,p=0,f=s.title,u=s.labels,g=0,m=t.axisOffset,x=t.clipOffset,y=[-1,1,1,-1][a],v,b=1,k=O(u.maxStaggerLines,5),w,T,S,L;i.hasData=l=i.hasVisibleSeries||z(i.min)&&z(i.max)&&!!n;i.showAxis=t=l||O(s.showEmpty,!0);i.staggerLines=i.horiz&&u.staggerLines;if(!i.axisGroup)i.gridGroup=e.g("grid").attr({zIndex:s.gridZIndex||1}).add(),i.axisGroup=e.g("axis").attr({zIndex:s.zIndex||2}).add(),i.labelGroup=e.g("axis-labels").attr({zIndex:u.zIndex||7}).add();if(l||i.isLinked){i.labelAlign=O(u.align||i.autoLabelAlign(u.rotation));si(n,function(t){o[t]?o[t].addLabel():o[t]=new Y(i,t)});if(i.horiz&&!i.staggerLines&&k&&!u.rotation){for(v=i.reversed?[].concat(n).reverse():n;b<k;){l=[];w=!1;for(u=0;u<v.length;u++)T=v[u],S=(S=o[T].label&&o[T].label.getBBox())?S.width:0,L=u%b,S&&(T=i.translate(T),l[L]!==V&&T<l[L]&&(w=!0),l[L]=T+S);if(w)b++;else break}if(b>1)i.staggerLines=b}si(n,function(t){if(a===0||a===2||{1:"left",3:"right"}[a]===i.labelAlign)g=q(o[t].getLabelSize(),g)});if(i.staggerLines)g*=i.staggerLines,i.labelOffset=g}else for(v in o)o[v].destroy(),delete o[v];if(f&&f.text&&f.enabled!==!1){if(!i.axisTitle)i.axisTitle=e.text(f.text,0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:f.textAlign||{low:"left",middle:"center",high:"right"}[f.align]}).css(f.style).add(i.axisGroup),i.axisTitle.isNew=!0;if(t)c=i.axisTitle.getBBox()[r?"height":"width"],p=O(f.margin,r?5:10),d=f.offset;i.axisTitle[t?"show":"hide"]()}i.offset=y*O(s.offset,m[a]);i.axisTitleMargin=O(d,g+p+(a!==2&&g&&y*s.labels[r?"y":"x"]));m[a]=q(m[a],i.axisTitleMargin+c+y*i.offset);x[h]=q(x[h],K(s.lineWidth/2)*2)},getLinePath:function(t){var i=this.chart,e=this.opposite,s=this.offset,n=this.horiz,o=this.left+(e?this.width:0)+s,s=i.chartHeight-this.bottom-(e?this.height:0)+s;e&&(t*=-1);return i.renderer.crispLine(["M",n?this.left:o,n?s:this.top,"L",n?i.chartWidth-this.right:o,n?s:i.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,i=this.left,e=this.top,s=this.len,n=this.options.title,o=t?i:e,r=this.opposite,a=this.offset,h=w(n.style.fontSize||12),s={low:o+(t?0:s),middle:o+s/2,high:o+(t?s:0)}[n.align],i=(t?e+this.height:i)+(t?1:-1)*(r?-1:1)*this.axisTitleMargin+(this.side===2?h:0);return{x:t?s:i+(r?this.width:0)+a+(n.x||0),y:t?i-(r?this.height:0)+a:s+(n.y||0)}},render:function(){var e=this,r=e.chart,t=r.renderer,i=e.options,s=e.isLog,n=e.isLinked,o=e.tickPositions,a=e.axisTitle,h=e.stacks,l=e.ticks,c=e.minorTicks,d=e.alternateBands,p=i.stackLabels,f=i.alternateGridColor,u=e.tickmarkOffset,g=i.lineWidth,m,x=r.hasRendered&&z(e.oldMin)&&!isNaN(e.oldMin);m=e.hasData;var y=e.showAxis,v,b;si([l,c,d],function(t){for(var i in t)t[i].isActive=!1});if(m||n)if(e.minorTickInterval&&!e.categories&&si(e.getMinorTickPositions(),function(t){c[t]||(c[t]=new Y(e,t,"minor"));x&&c[t].isNew&&c[t].render(null,!0);c[t].render(null,!1,1)}),o.length&&(si(o.slice(1).concat([o[0]]),function(t,i){i=i===o.length-1?0:i+1;if(!n||t>=e.min&&t<=e.max)l[t]||(l[t]=new Y(e,t)),x&&l[t].isNew&&l[t].render(i,!0),l[t].render(i,!1,1)}),u&&e.min===0&&(l[-1]||(l[-1]=new Y(e,-1,null,!0)),l[-1].render(-1))),f&&si(o,function(t,i){if(i%2===0&&t<e.max)d[t]||(d[t]=new E(e)),v=t+u,b=o[i+1]!==V?o[i+1]+u:e.max,d[t].options={from:s?T(v):v,to:s?T(b):b,color:f},d[t].render(),d[t].isActive=!0}),!e._addedPlotLB)si((i.plotLines||[]).concat(i.plotBands||[]),function(t){e.addPlotBandOrLine(t)}),e._addedPlotLB=!0;si([l,c,d],function(t){var i,e,s=[],n=wt?wt.duration||500:0,o=function(){for(e=s.length;e--;)t[s[e]]&&!t[s[e]].isActive&&(t[s[e]].destroy(),delete t[s[e]])};for(i in t)if(!t[i].isActive)t[i].render(i,!1,0),t[i].isActive=!1,s.push(i);t===d||!r.hasRendered||!n?o():n&&setTimeout(o,n)});if(g)m=e.getLinePath(g),e.axisLine?e.axisLine.animate({d:m}):e.axisLine=t.path(m).attr({stroke:i.lineColor,"stroke-width":g,zIndex:7}).add(e.axisGroup),e.axisLine[y?"show":"hide"]();if(a&&y)a[a.isNew?"attr":"animate"](e.getTitlePosition()),a.isNew=!1;if(p&&p.enabled){var k,w,i=e.stackTotalGroup;if(!i)e.stackTotalGroup=i=t.g("stack-labels").attr({visibility:"visible",zIndex:6}).add();i.translate(r.plotLeft,r.plotTop);for(k in h)for(w in t=h[k],t)t[w].render(i)}e.isDirty=!1},removePlotBandOrLine:function(i){for(var t=this.plotLinesAndBands,e=this.options,s=this.userOptions,n=t.length;n--;)t[n].id===i&&t[n].destroy();si([e.plotLines||[],s.plotLines||[],e.plotBands||[],s.plotBands||[]],function(t){for(n=t.length;n--;)t[n].id===i&&l(t,t[n])})},setTitle:function(t,i){this.update({title:t},i)},redraw:function(){var t=this.chart.pointer;t.reset&&t.reset(!0);this.render();si(this.plotLinesAndBands,function(t){t.render()});si(this.series,function(t){t.isDirty=!0})},buildStacks:function(){var t=this.series,i=t.length;if(!this.isXAxis){for(;i--;)t[i].setStackedPoints();if(this.usePercentage)for(i=0;i<t.length;i++)t[i].setPercentStacks()}},setCategories:function(t,i){this.update({categories:t},i)},destroy:function(t){var i=this,e=i.stacks,s,n=i.plotLinesAndBands;t||hi(i);for(s in e)o(e[s]),e[s]=null;si([i.ticks,i.minorTicks,i.alternateBands],function(t){o(t)});for(t=n.length;t--;)n[t].destroy();si("stackTotalGroup,axisLine,axisGroup,gridGroup,labelGroup,axisTitle".split(","),function(t){i[t]&&(i[t]=i[t].destroy())})}};N.prototype={init:function(t,i){var e=i.borderWidth,s=i.style,n=w(s.padding);this.chart=t;this.options=i;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=t.renderer.label("",0,0,i.shape,null,null,i.useHTML,null,"tooltip").attr({padding:n,fill:i.backgroundColor,"stroke-width":e,r:i.borderRadius,zIndex:8}).css(s).css({padding:0}).add().attr({y:-999});ut||this.label.shadow(i.shadow);this.shared=i.shared},destroy:function(){si(this.crosshairs,function(t){t&&t.destroy()});if(this.label)this.label=this.label.destroy();clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(t,i,e,s){var n=this,o=n.now,r=n.options.animation!==!1&&!n.isHidden;D(o,{x:r?(2*o.x+t)/3:t,y:r?(o.y+i)/2:i,anchorX:r?(2*o.anchorX+e)/3:e,anchorY:r?(o.anchorY+s)/2:s});n.label.attr(o);if(r&&(Q(t-o.x)>1||Q(i-o.y)>1))clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){n&&n.move(t,i,e,s)},32)},hide:function(){var t=this,i;clearTimeout(this.hideTimer);if(!this.isHidden)i=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){t.label.fadeOut();t.isHidden=!0},O(this.options.hideDelay,500)),i&&si(i,function(t){t.setState()}),this.chart.hoverPoints=null},hideCrosshairs:function(){si(this.crosshairs,function(t){t&&t.hide()})},getAnchor:function(t,i){var e,s=this.chart,n=s.inverted,o=s.plotTop,r=0,a=0,h,t=f(t);e=t[0].tooltipPos;this.followPointer&&i&&(i.chartX===V&&(i=s.pointer.normalize(i)),e=[i.chartX-s.plotLeft,i.chartY-o]);e||(si(t,function(t){h=t.series.yAxis;r+=t.plotX;a+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!n&&h?h.top-o:0)}),r/=t.length,a/=t.length,e=[n?s.plotWidth-a:r,this.shared&&!n&&t.length>1&&i?i.chartY-o:n?s.plotHeight-r:a]);return ri(e,Z)},getPosition:function(t,i,e){var s=this.chart,n=s.plotLeft,o=s.plotTop,r=s.plotWidth,a=s.plotHeight,h=O(this.options.distance,12),l=e.plotX,e=e.plotY,s=l+n+(s.inverted?h:-t-h),c=e-i+o+15,d;s<7&&(s=n+q(l,0)+h);s+t>n+r&&(s-=s+t-(n+r),c=e-i+o-h,d=!0);c<o+5&&(c=o+5,d&&e>=c&&e<=c+i&&(c=e+o+h));c+i>o+a&&(c=q(o,o+a-i-h));return{x:s,y:c}},defaultFormatter:function(t){var i=this.points||f(this),e=i[0].series,s;s=[e.tooltipHeaderFormatter(i[0])];si(i,function(t){e=t.series;s.push(e.tooltipFormatter&&e.tooltipFormatter(t)||t.point.tooltipFormatter(e.tooltipOptions.pointFormat))});s.push(t.options.footerFormat||"");return s.join("")},refresh:function(t,i){var e=this.chart,s=this.label,n=this.options,o,r,a={},h,l=[];h=n.formatter||this.defaultFormatter;var a=e.hoverPoints,c,d=n.crosshairs,p=this.shared;clearTimeout(this.hideTimer);this.followPointer=f(t)[0].series.tooltipOptions.followPointer;r=this.getAnchor(t,i);o=r[0];r=r[1];p&&(!t.series||!t.series.noSharedTooltip)?(e.hoverPoints=t,a&&si(a,function(t){t.setState()}),si(t,function(t){t.setState("hover");l.push(t.getLabelConfig())}),a={x:t[0].category,y:t[0].y},a.points=l,t=t[0]):a=t.getLabelConfig();h=h.call(a,this);a=t.series;h===!1?this.hide():(this.isHidden&&(pi(s),s.attr("opacity",1).show()),s.attr({text:h}),c=n.borderColor||t.color||a.color||"#606060",s.attr({stroke:c}),this.updatePosition({plotX:o,plotY:r}),this.isHidden=!1);if(d){d=f(d);for(s=d.length;s--;)if(p=t.series,n=p[s?"yAxis":"xAxis"],d[s]&&n)if(a=s?O(t.stackY,t.y):t.x,n.isLog&&(a=b(a)),s===1&&p.modifyValue&&(a=p.modifyValue(a)),n=n.getPlotLinePath(a,1),this.crosshairs[s])this.crosshairs[s].attr({d:n,visibility:"visible"});else{a={"stroke-width":d[s].width||1,stroke:d[s].color||"#C0C0C0",zIndex:d[s].zIndex||2};if(d[s].dashStyle)a.dashstyle=d[s].dashStyle;this.crosshairs[s]=e.renderer.path(n).attr(a).add()}}li(e,"tooltipRefresh",{text:h,x:o+e.plotLeft,y:r+e.plotTop,borderColor:c})},updatePosition:function(t){var i=this.chart,e=this.label,e=(this.options.positioner||this.getPosition).call(this,e.width,e.height,t);this.move(Z(e.x),Z(e.y),t.plotX+i.plotLeft,t.plotY+i.plotTop)}};s.prototype={init:function(t,i){var e=i.chart,s=e.events,n=ut?"":e.zoomType,e=t.inverted,o;this.options=i;this.chart=t;this.zoomX=o=/x/.test(n);this.zoomY=n=/y/.test(n);this.zoomHor=o&&!e||n&&e;this.zoomVert=n&&!e||o&&e;this.runChartClick=s&&!!s.click;this.pinchDown=[];this.lastValidTouch={};if(i.tooltip.enabled)t.tooltip=new N(t,i.tooltip);this.setDOMEvents()},normalize:function(t,i){var e,s,t=t||_.event;if(!t.target)t.target=t.srcElement;t=ci(t);s=t.touches?t.touches.item(0):t;if(!i)this.chartPosition=i=oi(this.chart.container);s.pageX===V?(e=q(t.x,t.clientX-i.left),s=t.y):(e=s.pageX-i.left,s=s.pageY-i.top);return D(t,{chartX:Z(e),chartY:Z(s)})},getCoordinates:function(i){var e={xAxis:[],yAxis:[]};si(this.chart.axes,function(t){e[t.isXAxis?"xAxis":"yAxis"].push({axis:t,value:t.toValue(i[t.horiz?"chartX":"chartY"])})});return e},getIndex:function(t){var i=this.chart;return i.inverted?i.plotHeight+i.plotTop-t.chartY:t.chartX-i.plotLeft},runPointActions:function(t){var i=this.chart,e=i.series,s=i.tooltip,n,o=i.hoverPoint,r=i.hoverSeries,a,h,l=i.chartWidth,c=this.getIndex(t);if(s&&this.options.tooltip.shared&&(!r||!r.noSharedTooltip)){n=[];a=e.length;for(h=0;h<a;h++)if(e[h].visible&&e[h].options.enableMouseTracking!==!1&&!e[h].noSharedTooltip&&e[h].tooltipPoints.length&&(i=e[h].tooltipPoints[c])&&i.series)i._dist=Q(c-i.clientX),l=J(l,i._dist),n.push(i);for(a=n.length;a--;)n[a]._dist>l&&n.splice(a,1);if(n.length&&n[0].clientX!==this.hoverX)s.refresh(n,t),this.hoverX=n[0].clientX}if(r&&r.tracker){if((i=r.tooltipPoints[c])&&i!==o)i.onMouseOver(t)}else s&&s.followPointer&&!s.isHidden&&(t=s.getAnchor([{}],t),s.updatePosition({plotX:t[0],plotY:t[1]}))},reset:function(t){var i=this.chart,e=i.hoverSeries,s=i.hoverPoint,n=i.tooltip,i=n&&n.shared?i.hoverPoints:s;(t=t&&n&&i)&&f(i)[0].plotX===V&&(t=!1);if(t)n.refresh(i);else{if(s)s.onMouseOut();if(e)e.onMouseOut();n&&(n.hide(),n.hideCrosshairs());this.hoverX=null}},scaleGroups:function(i,e){var s=this.chart,n;si(s.series,function(t){n=i||t.getPlotBox();t.xAxis&&t.xAxis.zoomEnabled&&(t.group.attr(n),t.markerGroup&&(t.markerGroup.attr(n),t.markerGroup.clip(e?s.clipRect:null)),t.dataLabelsGroup&&t.dataLabelsGroup.attr(n))});s.clipRect.attr(e||s.clipBox)},pinchTranslateDirection:function(t,i,e,s,n,o,r){var a=this.chart,h=t?"x":"y",l=t?"X":"Y",c="chart"+l,d=t?"width":"height",p=a["plot"+(t?"Left":"Top")],f,u,g=1,m=a.inverted,x=a.bounds[t?"h":"v"],y=i.length===1,v=i[0][c],b=e[0][c],k=!y&&i[1][c],w=!y&&e[1][c],T,e=function(){!y&&Q(v-k)>20&&(g=Q(b-w)/Q(v-k));u=(p-b)/g+v;f=a["plot"+(t?"Width":"Height")]/g};e();i=u;i<x.min?(i=x.min,T=!0):i+f>x.max&&(i=x.max-f,T=!0);T?(b-=.8*(b-r[h][0]),y||(w-=.8*(w-r[h][1])),e()):r[h]=[b,w];m||(o[h]=u-p,o[d]=f);o=m?1/g:g;n[d]=f;n[h]=i;s[m?t?"scaleY":"scaleX":"scale"+l]=g;s["translate"+l]=o*p+(b-o*v)},pinch:function(t){var i=this,r=i.chart,e=i.pinchDown,s=r.tooltip&&r.tooltip.options.followTouchMove,n=t.touches,o=n.length,a=i.lastValidTouch,h=i.zoomHor||i.pinchHor,l=i.zoomVert||i.pinchVert,c=h||l,d=i.selectionMarker,p={},f=o===1&&(i.inClass(t.target,"highcharts-tracker")&&r.runTrackerClick||r.runChartClick),u={};(c||s)&&!f&&t.preventDefault();ri(n,function(t){return i.normalize(t)});if(t.type==="touchstart")si(n,function(t,i){e[i]={chartX:t.chartX,chartY:t.chartY}}),a.x=[e[0].chartX,e[1]&&e[1].chartX],a.y=[e[0].chartY,e[1]&&e[1].chartY],si(r.axes,function(t){if(t.zoomEnabled){var i=r.bounds[t.horiz?"h":"v"],e=t.minPixelPadding,s=t.toPixels(t.dataMin),n=t.toPixels(t.dataMax),o=J(s,n),s=q(s,n);i.min=J(t.pos,o-e);i.max=q(t.pos+t.len,s+e)}});else if(e.length){if(!d)i.selectionMarker=d=D({destroy:Lt},r.plotBox);h&&i.pinchTranslateDirection(!0,e,n,p,d,u,a);l&&i.pinchTranslateDirection(!1,e,n,p,d,u,a);i.hasPinched=c;i.scaleGroups(p,u);!c&&s&&o===1&&this.runPointActions(i.normalize(t))}},dragStart:function(t){var i=this.chart;i.mouseIsDown=t.type;i.cancelClick=!1;i.mouseDownX=this.mouseDownX=t.chartX;i.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var i=this.chart,e=i.options.chart,s=t.chartX,n=t.chartY,o=this.zoomHor,r=this.zoomVert,a=i.plotLeft,h=i.plotTop,l=i.plotWidth,c=i.plotHeight,d,p=this.mouseDownX,f=this.mouseDownY;s<a?s=a:s>a+l&&(s=a+l);n<h?n=h:n>h+c&&(n=h+c);this.hasDragged=Math.sqrt(Math.pow(p-s,2)+Math.pow(f-n,2));if(this.hasDragged>10){d=i.isInsidePlot(p-a,f-h);if(i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&d&&!this.selectionMarker)this.selectionMarker=i.renderer.rect(a,h,o?1:l,r?1:c,0).attr({fill:e.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();this.selectionMarker&&o&&(s-=p,this.selectionMarker.attr({width:Q(s),x:(s>0?0:s)+p}));this.selectionMarker&&r&&(s=n-f,this.selectionMarker.attr({height:Q(s),y:(s>0?0:s)+f}));d&&!this.selectionMarker&&e.panning&&i.pan(t,e.panning)}},drop:function(t){var i=this.chart,e=this.hasPinched;if(this.selectionMarker){var s={xAxis:[],yAxis:[],originalEvent:t.originalEvent||t},n=this.selectionMarker,o=n.x,r=n.y,a;if(this.hasDragged||e)si(i.axes,function(t){if(t.zoomEnabled){var i=t.horiz,e=t.toValue(i?o:r),i=t.toValue(i?o+n.width:r+n.height);!isNaN(e)&&!isNaN(i)&&(s[t.xOrY+"Axis"].push({axis:t,min:J(e,i),max:q(e,i)}),a=!0)}}),a&&li(i,"selection",s,function(t){i.zoom(D(t,e?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();e&&this.scaleGroups()}if(i)L(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[]},onContainerMouseDown:function(t){t=this.normalize(t);t.preventDefault&&t.preventDefault();this.dragStart(t)},onDocumentMouseUp:function(t){this.drop(t)},onDocumentMouseMove:function(t){var i=this.chart,e=this.chartPosition,s=i.hoverSeries,t=this.normalize(t,e);e&&s&&!this.inClass(t.target,"highcharts-tracker")&&!i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&this.reset()},onContainerMouseLeave:function(){this.reset();this.chartPosition=null},onContainerMouseMove:function(t){var i=this.chart,t=this.normalize(t);t.returnValue=!1;i.mouseIsDown==="mousedown"&&this.drag(t);(this.inClass(t.target,"highcharts-tracker")||i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop))&&!i.openMenu&&this.runPointActions(t)},inClass:function(t,i){for(var e;t;){if(e=S(t,"class"))if(e.indexOf(i)!==-1)return!0;else if(e.indexOf("highcharts-container")!==-1)return!1;t=t.parentNode}},onTrackerMouseOut:function(t){var i=this.chart.hoverSeries;if(i&&!i.options.stickyTracking&&!this.inClass(t.toElement||t.relatedTarget,"highcharts-tooltip"))i.onMouseOut()},onContainerClick:function(t){var i=this.chart,e=i.hoverPoint,s=i.plotLeft,n=i.plotTop,o=i.inverted,r,a,h,t=this.normalize(t);t.cancelBubble=!0;if(!i.cancelClick)e&&this.inClass(t.target,"highcharts-tracker")?(r=this.chartPosition,a=e.plotX,h=e.plotY,D(e,{pageX:r.left+s+(o?i.plotWidth-h:a),pageY:r.top+n+(o?i.plotHeight-a:h)}),li(e.series,"click",D(t,{point:e})),i.hoverPoint&&e.firePointEvent("click",t)):(D(t,this.getCoordinates(t)),i.isInsidePlot(t.chartX-s,t.chartY-n)&&li(i,"click",t))},onContainerTouchStart:function(t){var i=this.chart;t.touches.length===1?(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)?(this.runPointActions(t),this.pinch(t)):this.reset()):t.touches.length===2&&this.pinch(t)},onContainerTouchMove:function(t){(t.touches.length===1||t.touches.length===2)&&this.pinch(t)},onDocumentTouchEnd:function(t){this.drop(t)},setDOMEvents:function(){var e=this,t=e.chart.container,i;this._events=i=[[t,"onmousedown","onContainerMouseDown"],[t,"onmousemove","onContainerMouseMove"],[t,"onclick","onContainerClick"],[t,"mouseleave","onContainerMouseLeave"],[j,"mousemove","onDocumentMouseMove"],[j,"mouseup","onDocumentMouseUp"]];mt&&i.push([t,"ontouchstart","onContainerTouchStart"],[t,"ontouchmove","onContainerTouchMove"],[j,"touchend","onDocumentTouchEnd"]);si(i,function(i){e["_"+i[2]]=function(t){e[i[2]](t)};i[1].indexOf("on")===0?i[0][i[1]]=e["_"+i[2]]:ai(i[0],i[1],e["_"+i[2]])})},destroy:function(){var i=this;si(i._events,function(t){t[1].indexOf("on")===0?t[0][t[1]]=null:hi(t[0],t[1],i["_"+t[2]])});delete i._events;clearInterval(i.tooltipTimeout)}};F.prototype={init:function(t,i){var e=this,s=i.itemStyle,n=O(i.padding,8),o=i.itemMarginTop||0;this.options=i;if(i.enabled)e.baseline=w(s.fontSize)+3+o,e.itemStyle=s,e.itemHiddenStyle=I(s,i.itemHiddenStyle),e.itemMarginTop=o,e.padding=n,e.initialItemX=n,e.initialItemY=n-5,e.maxItemWidth=0,e.chart=t,e.itemHeight=0,e.lastLineHeight=0,e.render(),ai(e.chart,"endResize",function(){e.positionCheckboxes()})},colorizeItem:function(t,i){var e=this.options,s=t.legendItem,n=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color,e=i?e.itemStyle.color:r,a=i?t.color:r,r=t.options&&t.options.marker,h={stroke:a,fill:a},l;s&&s.css({fill:e,color:e});n&&n.attr({stroke:a});if(o){if(r&&o.isMarker)for(l in r=t.convertAttribs(r),r)s=r[l],s!==V&&(h[l]=s);o.attr(h)}},positionItem:function(t){var i=this.options,e=i.symbolPadding,i=!i.rtl,s=t._legendItemPos,n=s[0],s=s[1],o=t.checkbox;t.legendGroup&&t.legendGroup.translate(i?n:this.legendWidth-n-2*e-4,s);if(o)o.x=n,o.y=s},destroyItem:function(i){var t=i.checkbox;si(["legendItem","legendLine","legendSymbol","legendGroup"],function(t){i[t]&&(i[t]=i[t].destroy())});t&&r(i.checkbox)},destroy:function(){var t=this.group,i=this.box;if(i)this.box=i.destroy();if(t)this.group=t.destroy()},positionCheckboxes:function(s){var n=this.group.alignAttr,o,r=this.clipHeight||this.legendHeight;if(n)o=n.translateY,si(this.allItems,function(t){var i=t.checkbox,e;i&&(e=o+i.y+(s||0)+3,L(i,{left:n.translateX+t.legendItemWidth+i.x-20+"px",top:e+"px",display:e>o-6&&e<o+r-6?"":Ct}))})},renderTitle:function(){var t=this.padding,i=this.options.title,e=0;if(i.text){if(!this.title)this.title=this.chart.renderer.label(i.text,t-3,t-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(i.style).add(this.group);t=this.title.getBBox();e=t.height;this.offsetWidth=t.width;this.contentGroup.attr({translateY:e})}this.titleHeight=e},renderItem:function(e){var t;var i=this,s=i.chart,n=s.renderer,o=i.options,r=o.layout==="horizontal",a=o.symbolWidth,h=o.symbolPadding,l=i.itemStyle,c=i.itemHiddenStyle,d=i.padding,p=r?O(o.itemDistance,8):0,f=!o.rtl,u=o.width,g=o.itemMarginBottom||0,m=i.itemMarginTop,x=i.initialItemX,y=e.legendItem,v=e.series||e,b=v.options,k=b.showCheckbox,w=o.useHTML;if(!y&&(e.legendGroup=n.g("legend-item").attr({zIndex:1}).add(i.scrollGroup),v.drawLegendSymbol(i,e),e.legendItem=y=n.text(o.labelFormat?P(o.labelFormat,e):o.labelFormatter.call(e),f?a+h:-h,i.baseline,w).css(I(e.visible?l:c)).attr({align:f?"left":"right",zIndex:2}).add(e.legendGroup),(w?y:e.legendGroup).on("mouseover",function(){e.setState("hover");y.css(i.options.itemHoverStyle)}).on("mouseout",function(){y.css(e.visible?l:c);e.setState()}).on("click",function(t){var i=function(){e.setVisible()},t={browserEvent:t};e.firePointEvent?e.firePointEvent("legendItemClick",t,i):li(e,"legendItemClick",t,i)}),i.colorizeItem(e,e.visible),b&&k))e.checkbox=C("input",{type:"checkbox",checked:e.selected,defaultChecked:e.selected},o.itemCheckboxStyle,s.container),ai(e.checkbox,"click",function(t){li(e,"checkboxClick",{checked:t.target.checked},function(){e.select()})});n=y.getBBox();t=e.legendItemWidth=o.itemWidth||a+h+n.width+p+(k?20:0),o=t;i.itemHeight=a=n.height;if(r&&i.itemX-x+o>(u||s.chartWidth-2*d-x))i.itemX=x,i.itemY+=m+i.lastLineHeight+g,i.lastLineHeight=0;i.maxItemWidth=q(i.maxItemWidth,o);i.lastItemY=m+i.itemY+g;i.lastLineHeight=q(a,i.lastLineHeight);e._legendItemPos=[i.itemX,i.itemY];r?i.itemX+=o:(i.itemY+=m+a+g,i.lastLineHeight=a);i.offsetWidth=u||q((r?i.itemX-x-p:o)+d,i.offsetWidth)},render:function(){var i=this,t=i.chart,e=t.renderer,s=i.group,n,o,r,a,h=i.box,l=i.options,c=i.padding,d=l.borderWidth,p=l.backgroundColor;i.itemX=i.initialItemX;i.itemY=i.initialItemY;i.offsetWidth=0;i.lastItemY=0;if(!s)i.group=s=e.g("legend").attr({zIndex:7}).add(),i.contentGroup=e.g().attr({zIndex:1}).add(s),i.scrollGroup=e.g().add(i.contentGroup);i.renderTitle();n=[];si(t.series,function(t){var i=t.options;i.showInLegend&&!z(i.linkedTo)&&(n=n.concat(t.legendItems||(i.legendType==="point"?t.data:t)))});u(n,function(t,i){return(t.options&&t.options.legendIndex||0)-(i.options&&i.options.legendIndex||0)});l.reversed&&n.reverse();i.allItems=n;i.display=o=!!n.length;si(n,function(t){i.renderItem(t)});r=l.width||i.offsetWidth;a=i.lastItemY+i.lastLineHeight+i.titleHeight;a=i.handleOverflow(a);if(d||p){r+=c;a+=c;if(h){if(r>0&&a>0)h[h.isNew?"attr":"animate"](h.crisp(null,null,null,r,a)),h.isNew=!1}else i.box=h=e.rect(0,0,r,a,l.borderRadius,d||0).attr({stroke:l.borderColor,"stroke-width":d||0,fill:p||Ct}).add(s).shadow(l.shadow),h.isNew=!0;h[o?"show":"hide"]()}i.legendWidth=r;i.legendHeight=a;si(n,function(t){i.positionItem(t)});o&&s.align(D({width:r,height:a},l),!0,"spacingBox");t.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var i=this,e=this.chart,s=e.renderer,n=this.options,o=n.y,o=e.spacingBox.height+(n.verticalAlign==="top"?-o:o)-this.padding,r=n.maxHeight,a=this.clipRect,h=n.navigation,l=O(h.animation,!0),c=h.arrowSize||12,d=this.nav;n.layout==="horizontal"&&(o/=2);r&&(o=J(o,r));if(t>o&&!n.useHTML){this.clipHeight=e=o-20-this.titleHeight;this.pageCount=$(t/e);this.currentPage=O(this.currentPage,1);this.fullHeight=t;if(!a)a=i.clipRect=s.clipRect(0,0,9999,0),i.contentGroup.clip(a);a.attr({height:e});if(!d)this.nav=d=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,c,c).on("click",function(){i.scroll(-1,l)}).add(d),this.pager=s.text("",15,10).css(h.style).add(d),this.down=s.symbol("triangle-down",0,0,c,c).on("click",function(){i.scroll(1,l)}).add(d);i.scroll(0);t=o}else if(d)a.attr({height:e.chartHeight}),d.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0;return t},scroll:function(t,i){var e=this.pageCount,s=this.currentPage+t,n=this.clipHeight,o=this.options.navigation,r=o.activeColor,a=o.inactiveColor,o=this.pager,h=this.padding;s>e&&(s=e);if(s>0)i!==V&&X(i,this.chart),this.nav.attr({translateX:h,translateY:n+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:s===1?a:r}).css({cursor:s===1?"default":"pointer"}),o.attr({text:s+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:s===e?a:r}).css({cursor:s===e?"default":"pointer"}),n=-J(n*(s-1),this.fullHeight-n+h)+1,this.scrollGroup.animate({translateY:n}),o.attr({text:s+"/"+e}),this.currentPage=s,this.positionCheckboxes(n)}};/Trident.*?11\.0/.test(nt)&&i(F.prototype,"positionItem",function(t,i){var e=this;setTimeout(function(){t.call(e,i)})});n.prototype={init:function(t,i){var e,s=t.series;t.series=null;e=I(bt,t);e.series=t.series=s;s=e.chart;this.margin=this.splashArray("margin",s);this.spacing=this.splashArray("spacing",s);var n=s.events;this.bounds={h:{},v:{}};this.callback=i;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.hasCartesianSeries=s.showAxes;var o=this,r;o.index=Pt.length;Pt.push(o);s.reflow!==!1&&ai(o,"load",function(){o.initReflow()});if(n)for(r in n)ai(o,r,n[r]);o.xAxis=[];o.yAxis=[];o.animation=ut?!1:O(s.animation,!0);o.pointCount=0;o.counters=new a;o.firstRender()},initSeries:function(t){var i=this.options.chart;(i=qt[t.type||i.type||i.defaultSeriesType])||B(17,!0);i=new i;i.init(this,t);return i},addSeries:function(t,i,e){var s,n=this;t&&(i=O(i,!0),li(n,"addSeries",{options:t},function(){s=n.initSeries(t);n.isDirtyLegend=!0;n.linkSeries();i&&n.redraw(e)}));return s},addAxis:function(t,i,e,s){var n=i?"xAxis":"yAxis",o=this.options;new h(this,I(t,{index:this[n].length,isX:i}));o[n]=f(o[n]||{});o[n].push(t);O(e,!0)&&this.redraw(s)},isInsidePlot:function(t,i,e){var s=e?i:t,t=e?t:i;return s>=0&&s<=this.plotWidth&&t>=0&&t<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&si(this.axes,function(t){t.adjustTickAmount()});this.maxTicks=null},redraw:function(t){var i=this.axes,e=this.series,s=this.pointer,n=this.legend,o=this.isDirtyLegend,r,a,h=this.isDirtyBox,l=e.length,c=l,d=this.renderer,p=d.isHidden(),f=[];X(t,this);p&&this.cloneRenderTo();for(this.layOutTitles();c--;)if(t=e[c],t.options.stacking&&(r=!0,t.isDirty)){a=!0;break}if(a)for(c=l;c--;)if(t=e[c],t.options.stacking)t.isDirty=!0;si(e,function(t){t.isDirty&&t.options.legendType==="point"&&(o=!0)});if(o&&n.options.enabled)n.render(),this.isDirtyLegend=!1;r&&this.getStacks();if(this.hasCartesianSeries){if(!this.isResizing)this.maxTicks=null,si(i,function(t){t.setScale()});this.adjustTickAmounts();this.getMargins();si(i,function(t){t.isDirty&&(h=!0)});si(i,function(t){if(t.isDirtyExtremes)t.isDirtyExtremes=!1,f.push(function(){li(t,"afterSetExtremes",D(t.eventArgs,t.getExtremes()));delete t.eventArgs});(h||r)&&t.redraw()})}h&&this.drawChartBox();si(e,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()});s&&s.reset&&s.reset(!0);d.draw();li(this,"redraw");p&&this.cloneRenderTo(!0);si(f,function(t){t.call()})},showLoading:function(t){var i=this.options,e=this.loadingDiv,s=i.loading;if(!e)this.loadingDiv=e=C(At,{className:"highcharts-loading"},D(s.style,{zIndex:10,display:Ct}),this.container),this.loadingSpan=C("span",null,s.labelStyle,e);this.loadingSpan.innerHTML=t||i.lang.loading;if(!this.loadingShown)L(e,{opacity:0,display:"",left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px"}),di(e,{opacity:s.style.opacity},{duration:s.showDuration||0}),this.loadingShown=!0},hideLoading:function(){var t=this.options,i=this.loadingDiv;i&&di(i,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){L(i,{display:Ct})}});this.loadingShown=!1},get:function(t){var i=this.axes,e=this.series,s,n;for(s=0;s<i.length;s++)if(i[s].options.id===t)return i[s];for(s=0;s<e.length;s++)if(e[s].options.id===t)return e[s];for(s=0;s<e.length;s++){n=e[s].points||[];for(i=0;i<n.length;i++)if(n[i].id===t)return n[i]}return null},getAxes:function(){var i=this,t=this.options,e=t.xAxis=f(t.xAxis||{}),t=t.yAxis=f(t.yAxis||{});si(e,function(t,i){t.index=i;t.isX=!0});si(t,function(t,i){t.index=i});e=e.concat(t);si(e,function(t){new h(i,t)});i.adjustTickAmounts()},getSelectedPoints:function(){var i=[];si(this.series,function(t){i=i.concat(ni(t.points||[],function(t){return t.selected}))});return i},getSelectedSeries:function(){return ni(this.series,function(t){return t.selected})},getStacks:function(){var i=this;si(i.yAxis,function(t){if(t.stacks&&t.hasVisibleSeries)t.oldStacks=t.stacks});si(i.series,function(t){if(t.options.stacking&&(t.visible===!0||i.options.chart.ignoreHiddenSeries===!1))t.stackKey=t.type+O(t.options.stack,"")})},showResetZoom:function(){var t=this,i=bt.lang,e=t.options.chart.resetZoomButton,s=e.theme,n=s.states,o=e.relativeTo==="chart"?null:"plotBox";this.resetZoomButton=t.renderer.button(i.resetZoom,null,null,function(){t.zoomOut()},s,n&&n.hover).attr({align:e.position.align,title:i.resetZoomTitle}).add().align(e.position,!1,o)},zoomOut:function(){var t=this;li(t,"selection",{resetSelection:!0},function(){t.zoom()})},zoom:function(t){var s,n=this.pointer,o=!1,i;!t||t.resetSelection?si(this.axes,function(t){s=t.zoom()}):si(t.xAxis.concat(t.yAxis),function(t){var i=t.axis,e=i.isXAxis;if(n[e?"zoomX":"zoomY"]||n[e?"pinchX":"pinchY"])s=i.zoom(t.min,t.max),i.displayBtn&&(o=!0)});i=this.resetZoomButton;if(o&&!i)this.showResetZoom();else if(!o&&c(i))this.resetZoomButton=i.destroy();s&&this.redraw(O(this.options.chart.animation,t&&t.animation,this.pointCount<100))},pan:function(a,t){var h=this,i=h.hoverPoints,l;i&&si(i,function(t){t.setState()});si(t==="xy"?[1,0]:[1],function(t){var i=a[t?"chartX":"chartY"],e=h[t?"xAxis":"yAxis"][0],s=h[t?"mouseDownX":"mouseDownY"],n=(e.pointRange||0)/2,o=e.getExtremes(),r=e.toValue(s-i,!0)+n,s=e.toValue(s+h[t?"plotWidth":"plotHeight"]-i,!0)-n;e.series.length&&r>J(o.dataMin,o.min)&&s<q(o.dataMax,o.max)&&(e.setExtremes(r,s,!1,!1,{trigger:"pan"}),l=!0);h[t?"mouseDownX":"mouseDownY"]=i});l&&h.redraw(!1);L(h.container,{cursor:"move"})},setTitle:function(t,i){var e;var n=this,s=n.options,o;o=s.title=I(s.title,t);e=s.subtitle=I(s.subtitle,i),s=e;si([["title",t,o],["subtitle",i,s]],function(t){var i=t[0],e=n[i],s=t[1],t=t[2];e&&s&&(n[i]=e=e.destroy());t&&t.text&&!e&&(n[i]=n.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,class:"highcharts-"+i,zIndex:t.zIndex||4}).css(t.style).add())});n.layOutTitles()},layOutTitles:function(){var t=0,i=this.title,e=this.subtitle,s=this.options,n=s.title,s=s.subtitle,o=this.spacingBox.width-44;if(i&&(i.css({width:(n.width||o)+"px"}).align(D({y:15},n),!1,"spacingBox"),!n.floating&&!n.verticalAlign))t=i.getBBox().height,t>=18&&t<=25&&(t=15);e&&(e.css({width:(s.width||o)+"px"}).align(D({y:t+n.margin},s),!1,"spacingBox"),!s.floating&&!s.verticalAlign&&(t=$(t+e.getBBox().height)));this.titleOffset=t},getChartSize:function(){var t=this.options.chart,i=this.renderToClone||this.renderTo;this.containerWidth=ti(i,"width");this.containerHeight=ti(i,"height");this.chartWidth=q(0,t.width||this.containerWidth||600);this.chartHeight=q(0,O(t.height,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(t){var i=this.renderToClone,e=this.container;t?i&&(this.renderTo.appendChild(e),r(i),delete this.renderToClone):(e&&e.parentNode===this.renderTo&&this.renderTo.removeChild(e),this.renderToClone=i=this.renderTo.cloneNode(0),L(i,{position:"absolute",top:"-9999px",display:"block"}),j.body.appendChild(i),e&&i.appendChild(e))},getContainer:function(){var t,i=this.options.chart,e,s,n;this.renderTo=t=i.renderTo;n="highcharts-"+yt++;if(g(t))this.renderTo=t=j.getElementById(t);t||B(13,!0);e=w(S(t,"data-highcharts-chart"));!isNaN(e)&&Pt[e]&&Pt[e].destroy();S(t,"data-highcharts-chart",this.index);t.innerHTML="";t.offsetWidth||this.cloneRenderTo();this.getChartSize();e=this.chartWidth;s=this.chartHeight;this.container=t=C(At,{className:"highcharts-container"+(i.className?" "+i.className:""),id:n},D({position:"relative",overflow:"hidden",width:e+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},i.style),this.renderToClone||t);this._cursor=t.style.cursor;this.renderer=i.forExport?new gi(t,e,s,!0):new gt(t,e,s);ut&&this.renderer.create(this,t,e,s)},getMargins:function(){var t=this.spacing,i,e=this.legend,s=this.margin,n=this.options.legend,o=O(n.margin,10),r=n.x,a=n.y,h=n.align,l=n.verticalAlign,c=this.titleOffset;this.resetMargins();i=this.axisOffset;if(c&&!z(s[0]))this.plotTop=q(this.plotTop,c+this.options.title.margin+t[0]);if(e.display&&!n.floating)if(h==="right"){if(!z(s[1]))this.marginRight=q(this.marginRight,e.legendWidth-r+o+t[1])}else if(h==="left"){if(!z(s[3]))this.plotLeft=q(this.plotLeft,e.legendWidth+r+o+t[3])}else if(l==="top"){if(!z(s[0]))this.plotTop=q(this.plotTop,e.legendHeight+a+o+t[0])}else if(l==="bottom"&&!z(s[2]))this.marginBottom=q(this.marginBottom,e.legendHeight-a+o+t[2]);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&si(this.axes,function(t){t.getOffset()});z(s[3])||(this.plotLeft+=i[3]);z(s[0])||(this.plotTop+=i[0]);z(s[2])||(this.marginBottom+=i[2]);z(s[1])||(this.marginRight+=i[1]);this.setChartSize()},initReflow:function(){function t(t){var i=n.width||ti(o,"width"),e=n.height||ti(o,"height"),t=t?t.target:_;if(!s.hasUserSize&&i&&e&&(t===_||t===j)){if(i!==s.containerWidth||e!==s.containerHeight)clearTimeout(r),s.reflowTimeout=r=setTimeout(function(){if(s.container)s.setSize(i,e,!1),s.hasUserSize=null},100);s.containerWidth=i;s.containerHeight=e}}var s=this,n=s.options.chart,o=s.renderTo,r;s.reflow=t;ai(_,"resize",t);ai(s,"destroy",function(){hi(_,"resize",t)})},setSize:function(t,i,e){var s=this,n,o,r;s.isResizing+=1;r=function(){s&&li(s,"endResize",null,function(){s.isResizing-=1})};X(e,s);s.oldChartHeight=s.chartHeight;s.oldChartWidth=s.chartWidth;if(z(t))s.chartWidth=n=q(0,Z(t)),s.hasUserSize=!!n;if(z(i))s.chartHeight=o=q(0,Z(i));L(s.container,{width:n+"px",height:o+"px"});s.setChartSize(!0);s.renderer.setSize(n,o,e);s.maxTicks=null;si(s.axes,function(t){t.isDirty=!0;t.setScale()});si(s.series,function(t){t.isDirty=!0});s.isDirtyLegend=!0;s.isDirtyBox=!0;s.getMargins();s.redraw(e);s.oldChartHeight=null;li(s,"resize");wt===!1?r():setTimeout(r,wt&&wt.duration||500)},setChartSize:function(t){var i=this.inverted,e=this.renderer,s=this.chartWidth,n=this.chartHeight,o=this.options.chart,r=this.spacing,a=this.clipOffset,h,l,c,d;this.plotLeft=h=Z(this.plotLeft);this.plotTop=l=Z(this.plotTop);this.plotWidth=c=q(0,Z(s-h-this.marginRight));this.plotHeight=d=q(0,Z(n-l-this.marginBottom));this.plotSizeX=i?d:c;this.plotSizeY=i?c:d;this.plotBorderWidth=o.plotBorderWidth||0;this.spacingBox=e.spacingBox={x:r[3],y:r[0],width:s-r[3]-r[1],height:n-r[0]-r[2]};this.plotBox=e.plotBox={x:h,y:l,width:c,height:d};s=2*K(this.plotBorderWidth/2);i=$(q(s,a[3])/2);e=$(q(s,a[0])/2);this.clipBox={x:i,y:e,width:K(this.plotSizeX-q(s,a[1])/2-i),height:K(this.plotSizeY-q(s,a[2])/2-e)};t||si(this.axes,function(t){t.setAxisSize();t.setAxisTranslation()})},resetMargins:function(){var t=this.spacing,i=this.margin;this.plotTop=O(i[0],t[0]);this.marginRight=O(i[1],t[1]);this.marginBottom=O(i[2],t[2]);this.plotLeft=O(i[3],t[3]);this.axisOffset=[0,0,0,0];this.clipOffset=[0,0,0,0]},drawChartBox:function(){var t=this.options.chart,i=this.renderer,e=this.chartWidth,s=this.chartHeight,n=this.chartBackground,o=this.plotBackground,r=this.plotBorder,a=this.plotBGImage,h=t.borderWidth||0,l=t.backgroundColor,c=t.plotBackgroundColor,d=t.plotBackgroundImage,p=t.plotBorderWidth||0,f,u=this.plotLeft,g=this.plotTop,m=this.plotWidth,x=this.plotHeight,y=this.plotBox,v=this.clipRect,b=this.clipBox;f=h+(t.shadow?8:0);if(h||l)if(n)n.animate(n.crisp(null,null,null,e-f,s-f));else{n={fill:l||Ct};if(h)n.stroke=t.borderColor,n["stroke-width"]=h;this.chartBackground=i.rect(f/2,f/2,e-f,s-f,t.borderRadius,h).attr(n).add().shadow(t.shadow)}if(c)o?o.animate(y):this.plotBackground=i.rect(u,g,m,x,0).attr({fill:c}).add().shadow(t.plotShadow);if(d)a?a.animate(y):this.plotBGImage=i.image(d,u,g,m,x).add();v?v.animate({width:b.width,height:b.height}):this.clipRect=i.clipRect(b);if(p)r?r.animate(r.crisp(null,u,g,m,x)):this.plotBorder=i.rect(u,g,m,x,0,-p).attr({stroke:t.plotBorderColor,"stroke-width":p,zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var i=this,e=i.options.chart,s,n=i.options.series,o,r;si(["inverted","angular","polar"],function(t){s=qt[e.type||e.defaultSeriesType];r=i[t]||e[t]||s&&s.prototype[t];for(o=n&&n.length;!r&&o--;)(s=qt[n[o].type])&&s.prototype[t]&&(r=!0);i[t]=r})},linkSeries:function(){var e=this,t=e.series;si(t,function(t){t.linkedSeries.length=0});si(t,function(t){var i=t.options.linkedTo;if(g(i)&&(i=i===":previous"?e.series[t.index-1]:e.get(i)))i.linkedSeries.push(t),t.linkedParent=i})},render:function(){var n=this,t=n.axes,o=n.renderer,i=n.options,r=i.labels,e=i.credits,s;n.setTitle();n.legend=new F(n,i.legend);n.getStacks();si(t,function(t){t.setScale()});n.getMargins();n.maxTicks=null;si(t,function(t){t.setTickPositions(!0);t.setMaxTicks()});n.adjustTickAmounts();n.getMargins();n.drawChartBox();n.hasCartesianSeries&&si(t,function(t){t.render()});if(!n.seriesGroup)n.seriesGroup=o.g("series-group").attr({zIndex:3}).add();si(n.series,function(t){t.translate();t.setTooltipPoints();t.render()});r.items&&si(r.items,function(t){var i=D(r.style,t.style),e=w(i.left)+n.plotLeft,s=w(i.top)+n.plotTop+12;delete i.left;delete i.top;o.text(t.html,e,s).attr({zIndex:2}).css(i).add()});if(e.enabled&&!n.credits)s=e.href,n.credits=o.text(e.text,0,0).on("click",function(){if(s)location.href=s}).attr({align:e.position.align,zIndex:8}).css(e.style).add().align(e.position);n.hasRendered=!0},destroy:function(){var e=this,t=e.axes,i=e.series,s=e.container,n,o=s&&s.parentNode;li(e,"destroy");Pt[e.index]=V;e.renderTo.removeAttribute("data-highcharts-chart");hi(e);for(n=t.length;n--;)t[n]=t[n].destroy();for(n=i.length;n--;)i[n]=i[n].destroy();si("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())});if(s)s.innerHTML="",hi(s),o&&r(s);for(n in e)delete e[n]},isReadyToRender:function(){var t=this;return!pt&&_==_.top&&j.readyState!=="complete"||ut&&!_.canvg?(ut?yi.push(function(){t.firstRender()},t.options.global.canvasToolsURL):j.attachEvent("onreadystatechange",function(){j.detachEvent("onreadystatechange",t.firstRender);j.readyState==="complete"&&t.firstRender()}),!1):!0},firstRender:function(){var i=this,t=i.options,e=i.callback;if(i.isReadyToRender())i.getContainer(),li(i,"init"),i.resetMargins(),i.setChartSize(),i.propFromSeries(),i.getAxes(),si(t.series||[],function(t){i.initSeries(t)}),i.linkSeries(),li(i,"beforeRender"),i.pointer=new s(i,t),i.render(),i.renderer.draw(),e&&e.apply(i,[i]),si(i.callbacks,function(t){t.apply(i,[i])}),i.cloneRenderTo(!0),li(i,"load")},splashArray:function(t,i){var e=i[t],e=c(e)?e:[e,e,e,e];return[O(i[t+"Top"],e[0]),O(i[t+"Right"],e[1]),O(i[t+"Bottom"],e[2]),O(i[t+"Left"],e[3])]}};n.prototype.callbacks=[];var vi=function(){};vi.prototype={init:function(t,i,e){this.series=t;this.applyOptions(i,e);this.pointAttr={};if(t.options.colorByPoint&&(i=t.options.colors||t.chart.options.colors,this.color=this.color||i[t.colorCounter++],t.colorCounter===i.length))t.colorCounter=0;t.chart.pointCount++;return this},applyOptions:function(t,i){var e=this.series,s=e.pointValKey,t=vi.prototype.optionsToObject.call(this,t);D(this,t);this.options=this.options?D(this.options,t):t;if(s)this.y=this[s];if(this.x===V&&e)this.x=i===V?e.autoIncrement():i;return this},optionsToObject:function(t){var i,e=this.series,s=e.pointArrayMap||["y"],n=s.length,o=0,r=0;if(typeof t==="number"||t===null)i={y:t};else if(m(t)){i={};if(t.length>n){e=typeof t[0];if(e==="string")i.name=t[0];else if(e==="number")i.x=t[0];o++}for(;r<n;)i[s[r++]]=t[o++]}else if(typeof t==="object"){i=t;if(t.dataLabels)e._hasPointLabels=!0;if(t.marker)e._hasPointMarkers=!0}return i},destroy:function(){var t=this.series.chart,i=t.hoverPoints,e;t.pointCount--;if(i&&(this.setState(),l(i,this),!i.length))t.hoverPoints=null;if(this===t.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)hi(this),this.destroyElements();this.legendItem&&t.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var t="graphic,dataLabel,dataLabelUpper,group,connector,shadowGroup".split(","),i,e=6;e--;)i=t[e],this[i]&&(this[i]=this[i].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(t,i){var e=this,s=e.series,n=s.chart,t=O(t,!e.selected);e.firePointEvent(t?"select":"unselect",{accumulate:i},function(){e.selected=e.options.selected=t;s.options.data[ei(e,s.data)]=e.options;e.setState(t&&"select");i||si(n.getSelectedPoints(),function(t){if(t.selected&&t!==e)t.selected=t.options.selected=!1,s.options.data[ei(t,s.data)]=t.options,t.setState(""),t.firePointEvent("unselect")})})},onMouseOver:function(t){var i=this.series,e=i.chart,s=e.tooltip,n=e.hoverPoint;if(n&&n!==this)n.onMouseOut();this.firePointEvent("mouseOver");s&&(!s.shared||i.noSharedTooltip)&&s.refresh(this,t);this.setState("hover");e.hoverPoint=this},onMouseOut:function(){var t=this.series.chart,i=t.hoverPoints;if(!i||ei(this,i)===-1)this.firePointEvent("mouseOut"),this.setState(),t.hoverPoint=null},tooltipFormatter:function(i){var t=this.series,e=t.tooltipOptions,s=O(e.valueDecimals,""),n=e.valuePrefix||"",o=e.valueSuffix||"";si(t.pointArrayMap||["y"],function(t){t="{point."+t;if(n||o)i=i.replace(t+"}",n+t+"}"+o);i=i.replace(t+"}",t+":,."+s+"f}")});return P(i,{point:this,series:this.series})},update:function(t,i,e){var s=this,n=s.series,o=s.graphic,r,a=n.data,h=n.chart,l=n.options,i=O(i,!0);s.firePointEvent("update",{options:t},function(){s.applyOptions(t);if(c(t)&&(n.getAttribs(),o))t.marker&&t.marker.symbol?s.graphic=o.destroy():o.attr(s.pointAttr[s.state||""]);r=ei(s,a);n.xData[r]=s.x;n.yData[r]=n.toYData?n.toYData(s):s.y;n.zData[r]=s.z;l.data[r]=s.options;n.isDirty=n.isDirtyData=!0;if(!n.fixedBox&&n.hasCartesianSeries)h.isDirtyBox=!0;l.legendType==="point"&&h.legend.destroyItem(s);i&&h.redraw(e)})},remove:function(t,i){var e=this,s=e.series,n=s.points,o=s.chart,r,a=s.data;X(i,o);t=O(t,!0);e.firePointEvent("remove",null,function(){r=ei(e,a);a.length===n.length&&n.splice(r,1);a.splice(r,1);s.options.data.splice(r,1);s.xData.splice(r,1);s.yData.splice(r,1);s.zData.splice(r,1);e.destroy();s.isDirty=!0;s.isDirtyData=!0;t&&o.redraw()})},firePointEvent:function(t,i,e){var s=this,n=this.series.options;(n.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents();t==="click"&&n.allowPointSelect&&(e=function(t){s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)});li(this,t,i,e)},importEvents:function(){if(!this.hasImportedEvents){var t=I(this.series.options.point,this.options).events,i;this.events=t;for(i in t)ai(this,i,t[i]);this.hasImportedEvents=!0}},setState:function(t){var i=this.plotX,e=this.plotY,s=this.series,n=s.options.states,o=fi[s.type].marker&&s.options.marker,r=o&&!o.enabled,a=o&&o.states[t],h=a&&a.enabled===!1,l=s.stateMarkerGraphic,c=this.marker||{},d=s.chart,p=this.pointAttr,t=t||"";if(!(t===this.state||this.selected&&t!=="select"||n[t]&&n[t].enabled===!1||t&&(h||r&&!a.enabled))){if(this.graphic)n=o&&this.graphic.symbolName&&p[t].r,this.graphic.attr(I(p[t],n?{x:i-n,y:e-n,width:2*n,height:2*n}:{}));else{if(t&&a)n=a.radius,c=c.symbol||s.symbol,l&&l.currentSymbol!==c&&(l=l.destroy()),l?l.attr({x:i-n,y:e-n}):(s.stateMarkerGraphic=l=d.renderer.symbol(c,i-n,e-n,2*n,2*n).attr(p[t]).add(s.markerGroup),l.currentSymbol=c);if(l)l[t&&d.isInsidePlot(i,e)?"show":"hide"]()}this.state=t}}};var bi=function(){};bi.prototype={isCartesian:!0,type:"line",pointClass:vi,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},colorCounter:0,init:function(t,i){var e,s,n=t.series;this.chart=t;this.options=i=this.setOptions(i);this.linkedSeries=[];this.bindAxes();D(this,{name:i.name,state:"",pointAttr:{},visible:i.visible!==!1,selected:i.selected===!0});if(ut)i.animation=!1;s=i.events;for(e in s)ai(this,e,s[e]);if(s&&s.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)t.runTrackerClick=!0;this.getColor();this.getSymbol();this.setData(i.data,!1);if(this.isCartesian)t.hasCartesianSeries=!0;n.push(this);this._i=n.length-1;u(n,function(t,i){return O(t.options.index,t._i)-O(i.options.index,t._i)});si(n,function(t,i){t.index=i;t.name=t.name||"Series "+(i+1)})},bindAxes:function(){var e=this,s=e.options,t=e.chart,n;e.isCartesian&&si(["xAxis","yAxis"],function(i){si(t[i],function(t){n=t.options;if(s[i]===n.index||s[i]!==V&&s[i]===n.id||s[i]===V&&n.index===0)t.series.push(e),e[i]=t,t.isDirty=!0});e[i]||B(18,!0)})},autoIncrement:function(){var t=this.options,i=this.xIncrement,i=O(i,t.pointStart,0);this.pointInterval=O(this.pointInterval,t.pointInterval,1);this.xIncrement=i+this.pointInterval;return i},getSegments:function(){var e=-1,s=[],t,n=this.points,o=n.length;if(o)if(this.options.connectNulls){for(t=o;t--;)n[t].y===null&&n.splice(t,1);n.length&&(s=[n])}else si(n,function(t,i){t.y===null?(i>e+1&&s.push(n.slice(e+1,i)),e=i):i===o-1&&s.push(n.slice(e+1,i+1))});this.segments=s},setOptions:function(t){var i=this.chart.options,e=i.plotOptions,s=e[this.type];this.userOptions=t;t=I(s,e.series,t);this.tooltipOptions=I(i.tooltip,t.tooltip);s.marker===null&&delete t.marker;return t},getColor:function(){var t=this.options,i=this.userOptions,e=this.chart.options.colors,s=this.chart.counters,n;n=t.color||fi[this.type].color;if(!n&&!t.colorByPoint)z(i._colorIndex)?t=i._colorIndex:(i._colorIndex=s.color,t=s.color++),n=e[t];this.color=n;s.wrapColor(e.length)},getSymbol:function(){var t=this.userOptions,i=this.options.marker,e=this.chart,s=e.options.symbols,e=e.counters;this.symbol=i.symbol;if(!this.symbol)z(t._symbolIndex)?t=t._symbolIndex:(t._symbolIndex=e.symbol,t=e.symbol++),this.symbol=s[t];if(/^url/.test(this.symbol))i.radius=0;e.wrapSymbol(s.length)},drawLegendSymbol:function(t){var i=this.options,e=i.marker,s=t.options,n;n=s.symbolWidth;var o=this.chart.renderer,r=this.legendGroup,t=t.baseline-Z(o.fontMetrics(s.itemStyle.fontSize).b*.3);if(i.lineWidth){s={"stroke-width":i.lineWidth};if(i.dashStyle)s.dashstyle=i.dashStyle;this.legendLine=o.path(["M",0,t,"L",n,t]).attr(s).add(r)}if(e&&e.enabled)i=e.radius,this.legendSymbol=n=o.symbol(this.symbol,n/2-i,t-i,2*i,2*i).add(r),n.isMarker=!0},addPoint:function(t,i,e,s){var n=this.options,o=this.data,r=this.graph,a=this.area,h=this.chart,l=this.xData,c=this.yData,d=this.zData,p=this.names,f=r&&r.shift||0,u=n.data,g;X(s,h);e&&si([r,a,this.graphNeg,this.areaNeg],function(t){if(t)t.shift=f+1});if(a)a.isArea=!0;i=O(i,!0);s={series:this};this.pointClass.prototype.applyOptions.apply(s,[t]);r=s.x;a=l.length;if(this.requireSorting&&r<l[a-1])for(g=!0;a&&l[a-1]>r;)a--;l.splice(a,0,r);c.splice(a,0,this.toYData?this.toYData(s):s.y);d.splice(a,0,s.z);if(p)p[r]=s.name;u.splice(a,0,t);g&&(this.data.splice(a,0,null),this.processData());n.legendType==="point"&&this.generatePoints();e&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),l.shift(),c.shift(),d.shift(),u.shift()));this.isDirtyData=this.isDirty=!0;i&&(this.getAttribs(),h.redraw())},setData:function(t,i){var e=this.points,s=this.options,n=this.chart,o=null,r=this.xAxis,a=r&&r.categories&&!r.categories.length?[]:null,h;this.xIncrement=null;this.pointRange=r&&r.categories?1:s.pointRange;this.colorCounter=0;var l=[],c=[],d=[],p=t?t.length:[];h=O(s.turboThreshold,1e3);var f=this.pointArrayMap,f=f&&f.length,u=!!this.toYData;if(h&&p>h){for(h=0;o===null&&h<p;)o=t[h],h++;if(x(o)){o=O(s.pointStart,0);s=O(s.pointInterval,1);for(h=0;h<p;h++)l[h]=o,c[h]=t[h],o+=s;this.xIncrement=o}else if(m(o))if(f)for(h=0;h<p;h++)s=t[h],l[h]=s[0],c[h]=s.slice(1,f+1);else for(h=0;h<p;h++)s=t[h],l[h]=s[0],c[h]=s[1];else B(12)}else for(h=0;h<p;h++)if(t[h]!==V&&(s={series:this},this.pointClass.prototype.applyOptions.apply(s,[t[h]]),l[h]=s.x,c[h]=u?this.toYData(s):s.y,d[h]=s.z,a&&s.name))a[s.x]=s.name;g(c[0])&&B(14,!0);this.data=[];this.options.data=t;this.xData=l;this.yData=c;this.zData=d;this.names=a;for(h=e&&e.length||0;h--;)e[h]&&e[h].destroy&&e[h].destroy();if(r)r.minRange=r.userMinRange;this.isDirty=this.isDirtyData=n.isDirtyBox=!0;O(i,!0)&&n.redraw(!1)},remove:function(t,i){var e=this,s=e.chart,t=O(t,!0);if(!e.isRemoving)e.isRemoving=!0,li(e,"remove",null,function(){e.destroy();s.isDirtyLegend=s.isDirtyBox=!0;s.linkSeries();t&&s.redraw(i)});e.isRemoving=!1},processData:function(t){var i=this.xData,e=this.yData,s=i.length,n;n=0;var o,r,a=this.xAxis,h=this.options,l=h.cropThreshold,c=this.isCartesian;if(c&&!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!t)return!1;if(c&&this.sorted&&(!l||s>l||this.forceCrop))if(t=a.min,a=a.max,i[s-1]<t||i[0]>a)i=[],e=[];else if(i[0]<t||i[s-1]>a)n=this.cropData(this.xData,this.yData,t,a),i=n.xData,e=n.yData,n=n.start,o=!0;for(a=i.length-1;a>=0;a--)s=i[a]-i[a-1],s>0&&(r===V||s<r)?r=s:s<0&&this.requireSorting&&B(15);this.cropped=o;this.cropStart=n;this.processedXData=i;this.processedYData=e;if(h.pointRange===null)this.pointRange=r||1;this.closestPointRange=r},cropData:function(t,i,e,s){var n=t.length,o=0,r=n,a=O(this.cropShoulder,1),h;for(h=0;h<n;h++)if(t[h]>=e){o=q(0,h-a);break}for(;h<n;h++)if(t[h]>s){r=h+a;break}return{xData:t.slice(o,r),yData:i.slice(o,r),start:o,end:r}},generatePoints:function(){var t=this.options.data,i=this.data,e,s=this.processedXData,n=this.processedYData,o=this.pointClass,r=s.length,a=this.cropStart||0,h,l=this.hasGroupedData,c,d=[],p;if(!i&&!l)i=[],i.length=t.length,i=this.data=i;for(p=0;p<r;p++)h=a+p,l?d[p]=(new o).init(this,[s[p]].concat(f(n[p]))):(i[h]?c=i[h]:t[h]!==V&&(i[h]=c=(new o).init(this,t[h],s[p])),d[p]=c);if(i&&(r!==(e=i.length)||l))for(p=0;p<e;p++)if(p===a&&!l&&(p+=r),i[p])i[p].destroyElements(),i[p].plotX=V;this.data=i;this.points=d},setStackedPoints:function(){if(this.options.stacking&&!(this.visible!==!0&&this.chart.options.chart.ignoreHiddenSeries!==!1)){var t=this.processedXData,i=this.processedYData,e=[],s=i.length,n=this.options,o=n.threshold,r=n.stack,n=n.stacking,a=this.stackKey,h="-"+a,l=this.negStacks,c=this.yAxis,d=c.stacks,p=c.oldStacks,f,u,g,m,x;for(g=0;g<s;g++){m=t[g];x=i[g];u=(f=l&&x<o)?h:a;d[u]||(d[u]={});if(!d[u][m])p[u]&&p[u][m]?(d[u][m]=p[u][m],d[u][m].total=null):d[u][m]=new G(c,c.options.stackLabels,f,m,r,n);u=d[u][m];u.points[this.index]=[u.cum||0];n==="percent"?(f=f?a:h,l&&d[f]&&d[f][m]?(f=d[f][m],u.total=f.total=q(f.total,u.total)+Q(x)||0):u.total+=Q(x)||0):u.total+=x||0;u.cum=(u.cum||0)+(x||0);u.points[this.index].push(u.cum);e[g]=u.cum}if(n==="percent")c.usePercentage=!0;this.stackedYData=e;c.oldStacks={}}},setPercentStacks:function(){var o=this,t=o.stackKey,r=o.yAxis.stacks;si([t,"-"+t],function(t){var i;for(var e=o.xData.length,s,n;e--;)if(s=o.xData[e],i=(n=r[t]&&r[t][s])&&n.points[o.index],s=i)n=n.total?100/n.total:0,s[0]=R(s[0]*n),s[1]=R(s[1]*n),o.stackedYData[e]=s[1]})},getExtremes:function(){var t=this.yAxis,i=this.processedXData,e=this.stackedYData||this.processedYData,s=e.length,n=[],o=0,r=this.xAxis.getExtremes(),a=r.min,r=r.max,h,l,c,d;for(d=0;d<s;d++)if(l=i[d],c=e[d],h=c!==null&&c!==V&&(!t.isLog||c.length||c>0),l=this.getExtremesFromAll||this.cropped||(i[d+1]||l)>=a&&(i[d-1]||l)<=r,h&&l)if(h=c.length)for(;h--;)c[h]!==null&&(n[o++]=c[h]);else n[o++]=c;this.dataMin=O(void 0,M(n));this.dataMax=O(void 0,H(n))},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var t=this.options,i=t.stacking,e=this.xAxis,s=e.categories,n=this.yAxis,o=this.points,r=o.length,a=!!this.modifyValue,h=t.pointPlacement,l=h==="between"||x(h),c=t.threshold,t=0;t<r;t++){var d=o[t],p=d.x,f=d.y,u=d.low,g=n.stacks[(this.negStacks&&f<c?"-":"")+this.stackKey];if(n.isLog&&f<=0)d.y=f=null;d.plotX=e.translate(p,0,0,0,1,h,this.type==="flags");if(i&&this.visible&&g&&g[p])g=g[p],f=g.points[this.index],u=f[0],f=f[1],u===0&&(u=O(c,n.min)),n.isLog&&u<=0&&(u=null),d.percentage=i==="percent"&&f,d.total=d.stackTotal=g.total,d.stackY=f,g.setOffset(this.pointXOffset||0,this.barW||0);d.yBottom=z(u)?n.translate(u,0,1,0,1):null;a&&(f=this.modifyValue(f,d));d.plotY=typeof f==="number"&&f!==Infinity?n.translate(f,0,1,0,1):V;d.clientX=l?e.translate(p,0,0,0,1):d.plotX;d.negative=d.y<(c||0);d.category=s&&s[d.x]!==V?s[d.x]:d.x}this.getSegments()},setTooltipPoints:function(t){var i=[],e,s,n=this.xAxis,o=n&&n.getExtremes(),r=n?n.tooltipLen||n.len:this.chart.plotSizeX,a,h,l=[];if(this.options.enableMouseTracking!==!1){if(t)this.tooltipPoints=null;si(this.segments||this.points,function(t){i=i.concat(t)});n&&n.reversed&&(i=i.reverse());this.orderTooltipPoints&&this.orderTooltipPoints(i);t=i.length;for(h=0;h<t;h++)if(n=i[h],e=n.x,e>=o.min&&e<=o.max){a=i[h+1];e=s===V?0:s+1;for(s=i[h+1]?J(q(0,K((n.clientX+(a?a.wrappedClientX||a.clientX:r))/2)),r):r;e>=0&&e<=s;)l[e++]=n}this.tooltipPoints=l}},tooltipHeaderFormatter:function(t){var i=this.tooltipOptions,e=i.xDateFormat,s=i.dateTimeLabelFormats,n=this.xAxis,o=n&&n.options.type==="datetime",i=i.headerFormat,n=n&&n.closestPointRange,r;if(o&&!e)if(n)for(r in St){if(St[r]>=n){e=s[r];break}}else e=s.day;o&&e&&x(t.key)&&(i=i.replace("{point.key}","{point.key:"+e+"}"));return P(i,{point:t,series:this})},onMouseOver:function(){var t=this.chart,i=t.hoverSeries;if(i&&i!==this)i.onMouseOut();this.options.events.mouseOver&&li(this,"mouseOver");this.setState("hover");t.hoverSeries=this},onMouseOut:function(){var t=this.options,i=this.chart,e=i.tooltip,s=i.hoverPoint;if(s)s.onMouseOut();this&&t.events.mouseOut&&li(this,"mouseOut");e&&!t.stickyTracking&&(!e.shared||this.noSharedTooltip)&&e.hide();this.setState();i.hoverSeries=null},animate:function(t){var i=this,e=i.chart,s=e.renderer,n;n=i.options.animation;var o=e.clipBox,r=e.inverted,a;if(n&&!c(n))n=fi[i.type].animation;a="_sharedClip"+n.duration+n.easing;if(t)t=e[a],n=e[a+"m"],t||(e[a]=t=s.clipRect(D(o,{width:0})),e[a+"m"]=n=s.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),i.group.clip(t),i.markerGroup.clip(n),i.sharedClipKey=a;else{if(t=e[a])t.animate({width:e.plotSizeX},n),e[a+"m"].animate({width:e.plotSizeX+99},n);i.animate=null;i.animationTimeout=setTimeout(function(){i.afterAnimate()},n.duration)}},afterAnimate:function(){var t=this.chart,i=this.sharedClipKey,e=this.group;e&&this.options.clip!==!1&&(e.clip(t.clipRect),this.markerGroup.clip());setTimeout(function(){i&&t[i]&&(t[i]=t[i].destroy(),t[i+"m"]=t[i+"m"].destroy())},100)},drawPoints:function(){var t,i=this.points,e=this.chart,s,n,o,r,a,h,l,c,d=this.options.marker,p,f=this.markerGroup;if(d.enabled||this._hasPointMarkers)for(o=i.length;o--;)if(r=i[o],s=K(r.plotX),n=r.plotY,c=r.graphic,h=r.marker||{},t=d.enabled&&h.enabled===V||h.enabled,p=e.isInsidePlot(Z(s),n,e.inverted),t&&n!==V&&!isNaN(n)&&r.y!==null)if(t=r.pointAttr[r.selected?"select":""],a=t.r,h=O(h.symbol,this.symbol),l=h.indexOf("url")===0,c)c.attr({visibility:p?pt?"inherit":"visible":"hidden"}).animate(D({x:s-a,y:n-a},c.symbolName?{width:2*a,height:2*a}:{}));else{if(p&&(a>0||l))r.graphic=e.renderer.symbol(h,s-a,n-a,2*a,2*a).attr(t).add(f)}else if(c)r.graphic=c.destroy()},convertAttribs:function(t,i,e,s){var n=this.pointAttrToOptions,o,r,a={},t=t||{},i=i||{},e=e||{},s=s||{};for(o in n)r=n[o],a[o]=O(t[r],i[o],e[o],s[o]);return a},getAttribs:function(){var i=this,t=i.options,e=fi[i.type].marker?t.marker:t,s=e.states,n=s.hover,o,r=i.color,a={stroke:r,fill:r},h=i.points||[],l=[],c,d=i.pointAttrToOptions,p=t.negativeColor,f=e.lineColor,u;t.marker?(n.radius=n.radius||e.radius+2,n.lineWidth=n.lineWidth||e.lineWidth+1):n.color=n.color||ui(n.color||r).brighten(n.brightness).get();l[""]=i.convertAttribs(e,a);si(["hover","select"],function(t){l[t]=i.convertAttribs(s[t],l[""])});i.pointAttr=l;for(r=h.length;r--;){a=h[r];if((e=a.options&&a.options.marker||a.options)&&e.enabled===!1)e.radius=0;if(a.negative&&p)a.color=a.fillColor=p;o=t.colorByPoint||a.color;if(a.options)for(u in d)z(e[d[u]])&&(o=!0);if(o){e=e||{};c=[];s=e.states||{};o=s.hover=s.hover||{};if(!t.marker)o.color=ui(o.color||a.color).brighten(o.brightness||n.brightness).get();c[""]=i.convertAttribs(D({color:a.color,fillColor:a.color,lineColor:f===null?a.color:V},e),l[""]);c.hover=i.convertAttribs(s.hover,l.hover,c[""]);c.select=i.convertAttribs(s.select,l.select,c[""])}else c=l;a.pointAttr=c}},update:function(t,i){var e=this.chart,s=this.type,n=qt[s].prototype,o,t=I(this.userOptions,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},t);this.remove(!1);for(o in n)n.hasOwnProperty(o)&&(this[o]=V);D(this,qt[t.type||s].prototype);this.init(e,t);O(i,!0)&&e.redraw(!1)},destroy:function(){var i=this,t=i.chart,e=/AppleWebKit\/533/.test(nt),s,n,o=i.data||[],r,a,h;li(i,"destroy");hi(i);si(["xAxis","yAxis"],function(t){if(h=i[t])l(h.series,i),h.isDirty=h.forceRedraw=!0,h.stacks={}});i.legendItem&&i.chart.legend.destroyItem(i);for(n=o.length;n--;)(r=o[n])&&r.destroy&&r.destroy();i.points=null;clearTimeout(i.animationTimeout);si("area,graph,dataLabelsGroup,group,markerGroup,tracker,graphNeg,areaNeg,posClip,negClip".split(","),function(t){i[t]&&(s=e&&t==="group"?"hide":"destroy",i[t][s]())});if(t.hoverSeries===i)t.hoverSeries=null;l(t.series,i);for(a in i)delete i[a]},drawDataLabels:function(){var a=this,h=a.options.dataLabels,t=a.points,l,c,d,p;if(h.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(h),p=a.plotGroup("dataLabelsGroup","data-labels",a.visible?"visible":"hidden",h.zIndex||6),c=h,si(t,function(t){var i,e=t.dataLabel,s,n,o=t.connector,r=!0;l=t.options&&t.options.dataLabels;i=O(l&&l.enabled,c.enabled);if(e&&!i)t.dataLabel=e.destroy();else if(i){h=I(c,l);i=h.rotation;s=t.getLabelConfig();d=h.format?P(h.format,s):h.formatter.call(s,h);h.style.color=O(h.color,h.style.color,a.color,"black");if(e)if(z(d))e.attr({text:d}),r=!1;else{if(t.dataLabel=e=e.destroy(),o)t.connector=o.destroy()}else if(z(d)){e={fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.borderWidth,r:h.borderRadius||0,rotation:i,padding:h.padding,zIndex:1};for(n in e)e[n]===V&&delete e[n];e=t.dataLabel=a.chart.renderer[i?"text":"label"](d,0,-999,null,null,null,h.useHTML).attr(e).css(h.style).add(p).shadow(h.shadow)}e&&a.alignDataLabel(t,e,h,null,r)}})},alignDataLabel:function(t,i,e,s,n){var o=this.chart,r=o.inverted,a=O(t.plotX,-999),h=O(t.plotY,-999),l=i.getBBox();if(t=this.visible&&o.isInsidePlot(t.plotX,t.plotY,r))s=D({x:r?o.plotWidth-h:a,y:Z(r?o.plotHeight-a:h),width:0,height:0},s),D(e,{width:l.width,height:l.height}),e.rotation?(r={align:e.align,x:s.x+e.x+s.width/2,y:s.y+e.y+s.height/2},i[n?"attr":"animate"](r)):(i.align(e,null,s),r=i.alignAttr,O(e.overflow,"justify")==="justify"?this.justifyDataLabel(i,e,r,l,s,n):O(e.crop,!0)&&(t=o.isInsidePlot(r.x,r.y)&&o.isInsidePlot(r.x+l.width,r.y+l.height)));t||i.attr({y:-999})},justifyDataLabel:function(t,i,e,s,n,o){var r=this.chart,a=i.align,h=i.verticalAlign,l,c;l=e.x;if(l<0)a==="right"?i.align="left":i.x=-l,c=!0;l=e.x+s.width;if(l>r.plotWidth)a==="left"?i.align="right":i.x=r.plotWidth-l,c=!0;l=e.y;if(l<0)h==="bottom"?i.verticalAlign="top":i.y=-l,c=!0;l=e.y+s.height;if(l>r.plotHeight)h==="top"?i.verticalAlign="bottom":i.y=r.plotHeight-l,c=!0;if(c)t.placed=!o,t.align(i,null,n)},getSegmentPath:function(o){var r=this,a=[],h=r.options.step;si(o,function(t,i){var e=t.plotX,s=t.plotY,n;r.getPointSpline?a.push.apply(a,r.getPointSpline(o,t,i)):(a.push(i?"L":"M"),h&&i&&(n=o[i-1],h==="right"?a.push(n.plotX,s):h==="center"?a.push((n.plotX+e)/2,n.plotY,(n.plotX+e)/2,s):a.push(e,n.plotY)),a.push(t.plotX,t.plotY))});return a},getGraphPath:function(){var i=this,e=[],s,n=[];si(i.segments,function(t){s=i.getSegmentPath(t);t.length>1?e=e.concat(s):n.push(t[0])});i.singlePoints=n;return i.graphPath=e},drawGraph:function(){var n=this,o=this.options,t=[["graph",o.lineColor||this.color]],r=o.lineWidth,a=o.dashStyle,h=this.getGraphPath(),i=o.negativeColor;i&&t.push(["graphNeg",i]);si(t,function(t,i){var e=t[0],s=n[e];if(s)pi(s),s.animate({d:h});else if(r&&h.length)s={stroke:t[1],"stroke-width":r,zIndex:1},a?s.dashstyle=a:s["stroke-linecap"]=s["stroke-linejoin"]="round",n[e]=n.chart.renderer.path(h).attr(s).add(n.group).shadow(!i&&o.shadow)})},clipNeg:function(){var t=this.options,i=this.chart,e=i.renderer,s=t.negativeColor||t.negativeFillColor,n,o=this.graph,r=this.area,a=this.posClip,h=this.negClip;n=i.chartWidth;var l=i.chartHeight,c=q(n,l),d=this.yAxis;if(s&&(o||r)){s=Z(d.toPixels(t.threshold||0,!0));t={x:0,y:0,width:c,height:s};c={x:0,y:s,width:c,height:c};if(i.inverted)t.height=c.y=i.plotWidth-s,e.isVML&&(t={x:i.plotWidth-s-i.plotLeft,y:0,width:n,height:l},c={x:s+i.plotLeft-n,y:0,width:i.plotLeft+s,height:n});d.reversed?(i=c,n=t):(i=t,n=c);a?(a.animate(i),h.animate(n)):(this.posClip=a=e.clipRect(i),this.negClip=h=e.clipRect(n),o&&this.graphNeg&&(o.clip(a),this.graphNeg.clip(h)),r&&(r.clip(a),this.areaNeg.clip(h)))}},invertGroups:function(){function t(){var i={width:e.yAxis.len,height:e.xAxis.len};si(["group","markerGroup"],function(t){e[t]&&e[t].attr(i).invert()})}var e=this,i=e.chart;if(e.xAxis)ai(i,"resize",t),ai(e,"destroy",function(){hi(i,"resize",t)}),t(),e.invertGroups=t},plotGroup:function(t,i,e,s,n){var o=this[t],r=!o;r&&(this[t]=o=this.chart.renderer.g(i).attr({visibility:e,zIndex:s||.1}).add(n));o[r?"attr":"animate"](this.getPlotBox());return o},getPlotBox:function(){return{translateX:this.xAxis?this.xAxis.left:this.chart.plotLeft,translateY:this.yAxis?this.yAxis.top:this.chart.plotTop,scaleX:1,scaleY:1}},render:function(){var t=this.chart,i,e=this.options,s=e.animation&&!!this.animate&&t.renderer.isSVG,n=this.visible?"visible":"hidden",o=e.zIndex,r=this.hasRendered,a=t.seriesGroup;i=this.plotGroup("group","series",n,o,a);this.markerGroup=this.plotGroup("markerGroup","markers",n,o,a);s&&this.animate(!0);this.getAttribs();i.inverted=this.isCartesian?t.inverted:!1;this.drawGraph&&(this.drawGraph(),this.clipNeg());this.drawDataLabels();this.drawPoints();this.options.enableMouseTracking!==!1&&this.drawTracker();t.inverted&&this.invertGroups();e.clip!==!1&&!this.sharedClipKey&&!r&&i.clip(t.clipRect);s?this.animate():r||this.afterAnimate();this.isDirty=this.isDirtyData=!1;this.hasRendered=!0},redraw:function(){var t=this.chart,i=this.isDirtyData,e=this.group,s=this.xAxis,n=this.yAxis;e&&(t.inverted&&e.attr({width:t.plotWidth,height:t.plotHeight}),e.animate({translateX:O(s&&s.left,t.plotLeft),translateY:O(n&&n.top,t.plotTop)}));this.translate();this.setTooltipPoints(!0);this.render();i&&li(this,"updatedData")},setState:function(t){var i=this.options,e=this.graph,s=this.graphNeg,n=i.states,i=i.lineWidth,t=t||"";if(this.state!==t)this.state=t,n[t]&&n[t].enabled===!1||(t&&(i=n[t].lineWidth||i+1),e&&!e.dashstyle&&(t={"stroke-width":i},e.attr(t),s&&s.attr(t)))},setVisible:function(i,t){var e=this,s=e.chart,n=e.legendItem,o,r=s.options.chart.ignoreHiddenSeries,a=e.visible;o=(e.visible=i=e.userOptions.visible=i===V?!a:i)?"show":"hide";si(["group","dataLabelsGroup","markerGroup","tracker"],function(t){if(e[t])e[t][o]()});if(s.hoverSeries===e)e.onMouseOut();n&&s.legend.colorizeItem(e,i);e.isDirty=!0;e.options.stacking&&si(s.series,function(t){if(t.options.stacking&&t.visible)t.isDirty=!0});si(e.linkedSeries,function(t){t.setVisible(i,!1)});if(r)s.isDirtyBox=!0;t!==!1&&s.redraw();li(e,o)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===V?!this.selected:t;if(this.checkbox)this.checkbox.checked=t;li(this,t?"select":"unselect")},drawTracker:function(){var t=this,i=t.options,e=i.trackByArea,s=[].concat(e?t.areaPath:t.graphPath),n=s.length,o=t.chart,r=o.pointer,a=o.renderer,h=o.options.tooltip.snap,l=t.tracker,c=i.cursor,d=c&&{cursor:c},c=t.singlePoints,p,f=function(){if(o.hoverSeries!==t)t.onMouseOver()};if(n&&!e)for(p=n+1;p--;)s[p]==="M"&&s.splice(p+1,0,s[p+1]-h,s[p+2],"L"),(p&&s[p]==="M"||p===n)&&s.splice(p,0,"L",s[p-2]+h,s[p-1]);for(p=0;p<c.length;p++)n=c[p],s.push("M",n.plotX-h,n.plotY,"L",n.plotX+h,n.plotY);l?l.attr({d:s}):(t.tracker=a.path(s).attr({"stroke-linejoin":"round",visibility:t.visible?"visible":"hidden",stroke:Mt,fill:e?Mt:Ct,"stroke-width":i.lineWidth+(e?0:2*h),zIndex:2}).add(t.group),si([t.tracker,t.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(t){r.onTrackerMouseOut(t)}).css(d);if(mt)t.on("touchstart",f)}))}};Qt=t(bi);qt.line=Qt;fi.area=I(Jt,{threshold:0});Qt=t(bi,{type:"area",getSegments:function(){var t=[],i=[],e=[],s=this.xAxis,n=this.yAxis,o=n.stacks[this.stackKey],r={},a,h,l=this.points,c=this.options.connectNulls,d,p,f;if(this.options.stacking&&!this.cropped){for(p=0;p<l.length;p++)r[l[p].x]=l[p];for(f in o)e.push(+f);e.sort(function(t,i){return t-i});si(e,function(t){if(!c||r[t]&&r[t].y!==null)r[t]?i.push(r[t]):(a=s.translate(t),d=o[t].percent?o[t].total?o[t].cum*100/o[t].total:0:o[t].cum,h=n.toPixels(d,!0),i.push({y:null,plotX:a,clientX:a,plotY:h,yBottom:h,onMouseOver:Lt}))});i.length&&t.push(i)}else bi.prototype.getSegments.call(this),t=this.segments;this.segments=t},getSegmentPath:function(t){var i=bi.prototype.getSegmentPath.call(this,t),e=[].concat(i),s,n=this.options;s=i.length;var o=this.yAxis.getThreshold(n.threshold),r;s===3&&e.push("L",i[1],i[2]);if(n.stacking&&!this.closedStacks)for(s=t.length-1;s>=0;s--)r=O(t[s].yBottom,o),s<t.length-1&&n.step&&e.push(t[s+1].plotX,r),e.push(t[s].plotX,r);else this.closeSegment(e,t,o);this.areaPath=this.areaPath.concat(e);return i},closeSegment:function(t,i,e){t.push("L",i[i.length-1].plotX,e,"L",i[0].plotX,e)},drawGraph:function(){this.areaPath=[];bi.prototype.drawGraph.apply(this);var s=this,n=this.areaPath,o=this.options,t=o.negativeColor,i=o.negativeFillColor,e=[["area",this.color,o.fillColor]];(t||i)&&e.push(["areaNeg",t,i]);si(e,function(t){var i=t[0],e=s[i];e?e.animate({d:n}):s[i]=s.chart.renderer.path(n).attr({fill:O(t[2],ui(t[1]).setOpacity(O(o.fillOpacity,.75)).get()),zIndex:0}).add(s.group)})},drawLegendSymbol:function(t,i){i.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,t.options.symbolWidth,12,2).attr({zIndex:3}).add(i.legendGroup)}});qt.area=Qt;fi.spline=I(Jt);mi=t(bi,{type:"spline",getPointSpline:function(t,i,e){var s=i.plotX,n=i.plotY,o=t[e-1],r=t[e+1],a,h,l,c;if(o&&r){t=o.plotY;l=r.plotX;var r=r.plotY,d;a=(1.5*s+o.plotX)/2.5;h=(1.5*n+t)/2.5;l=(1.5*s+l)/2.5;c=(1.5*n+r)/2.5;d=(c-h)*(l-s)/(l-a)+n-c;h+=d;c+=d;h>t&&h>n?(h=q(t,n),c=2*n-h):h<t&&h<n&&(h=J(t,n),c=2*n-h);c>r&&c>n?(c=q(r,n),h=2*n-c):c<r&&c<n&&(c=J(r,n),h=2*n-c);i.rightContX=l;i.rightContY=c}e?(i=["C",o.rightContX||o.plotX,o.rightContY||o.plotY,a||s,h||n,s,n],o.rightContX=o.rightContY=null):i=["M",s,n];return i}});qt.spline=mi;fi.areaspline=I(fi.area);xi=Qt.prototype;mi=t(mi,{type:"areaspline",closedStacks:!0,getSegmentPath:xi.getSegmentPath,closeSegment:xi.closeSegment,drawGraph:xi.drawGraph,drawLegendSymbol:xi.drawLegendSymbol});qt.areaspline=mi;fi.column=I(Jt,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:!1,threshold:0});mi=t(bi,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},cropShoulder:0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){bi.prototype.init.apply(this,arguments);var i=this,t=i.chart;t.hasRendered&&si(t.series,function(t){if(t.type===i.type)t.isDirty=!0})},getColumnMetrics:function(){var s=this,t=s.options,i=s.xAxis,n=s.yAxis,e=i.reversed,o,r={},a,h=0;t.grouping===!1?h=1:si(s.chart.series,function(t){var i=t.options,e=t.yAxis;if(t.type===s.type&&t.visible&&n.len===e.len&&n.pos===e.pos)i.stacking?(o=t.stackKey,r[o]===V&&(r[o]=h++),a=r[o]):i.grouping!==!1&&(a=h++),t.columnIndex=a});var i=J(Q(i.transA)*(i.ordinalSlope||t.pointRange||i.closestPointRange||1),i.len),l=i*t.groupPadding,c=(i-2*l)/h,d=t.pointWidth,t=z(d)?(c-d)/2:c*t.pointPadding,d=O(d,c-2*t);return s.columnMetrics={width:d,offset:t+(l+((e?h-(s.columnIndex||0):s.columnIndex)||0)*c-i/2)*(e?-1:1)}},translate:function(){var t=this.chart,i=this.options,e=i.borderWidth,a=this.yAxis,h=this.translatedThreshold=a.getThreshold(i.threshold),l=O(i.minPointLength,5),i=this.getColumnMetrics(),c=i.width,d=this.barW=$(q(c,1+2*e)),p=this.pointXOffset=i.offset,f=-(e%2?.5:0),u=e%2?.5:1;t.renderer.isVML&&t.inverted&&(u+=1);bi.prototype.translate.apply(this);si(this.points,function(t){var i=O(t.yBottom,h),e=J(q(-999-i,t.plotY),a.len+999+i),s=t.plotX+p,n=d,o=J(e,i),r,e=q(e,i)-o;Q(e)<l&&l&&(e=l,o=Z(Q(o-h)>l?i-l:h-(a.translate(t.y,0,1,0,1)<=h?l:0)));t.barX=s;t.pointWidth=c;i=Q(s)<.5;n=Z(s+n)+f;s=Z(s)+f;n-=s;r=Q(o)<.5;e=Z(o+e)+u;o=Z(o)+u;e-=o;i&&(s+=1,n-=1);r&&(o-=1,e+=1);t.shapeType="rect";t.shapeArgs={x:s,y:o,width:n,height:e}})},getSymbol:Lt,drawLegendSymbol:Qt.prototype.drawLegendSymbol,drawGraph:Lt,drawPoints:function(){var s=this,n=s.options,o=s.chart.renderer,r;si(s.points,function(t){var i=t.plotY,e=t.graphic;if(i!==V&&!isNaN(i)&&t.y!==null)r=t.shapeArgs,e?(pi(e),e.animate(I(r))):t.graphic=o[t.shapeType](r).attr(t.pointAttr[t.selected?"select":""]).add(s.group).shadow(n.shadow,null,n.stacking&&!n.borderRadius);else if(e)t.graphic=e.destroy()})},drawTracker:function(){var s=this,n=s.chart,i=n.pointer,t=s.options.cursor,e=t&&{cursor:t},o=function(t){var i=t.target,e;if(n.hoverSeries!==s)s.onMouseOver();for(;i&&!e;)e=i.point,i=i.parentNode;if(e!==V&&e!==n.hoverPoint)e.onMouseOver(t)};si(s.points,function(t){if(t.graphic)t.graphic.element.point=t;if(t.dataLabel)t.dataLabel.element.point=t});if(!s._hasTracking)si(s.trackerGroups,function(t){if(s[t]&&(s[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(e),mt))s[t].on("touchstart",o)}),s._hasTracking=!0},alignDataLabel:function(t,i,e,s,n){var o=this.chart,r=o.inverted,a=t.dlBox||t.shapeArgs,h=t.below||t.plotY>O(this.translatedThreshold,o.plotSizeY),l=O(e.inside,!!this.options.stacking);if(a&&(s=I(a),r&&(s={x:o.plotWidth-s.y-s.height,y:o.plotHeight-s.x-s.width,width:s.height,height:s.width}),!l))r?(s.x+=h?0:s.width,s.width=0):(s.y+=h?s.height:0,s.height=0);e.align=O(e.align,!r||l?"center":h?"right":"left");e.verticalAlign=O(e.verticalAlign,r||l?"middle":h?"top":"bottom");bi.prototype.alignDataLabel.call(this,t,i,e,s,n)},animate:function(t){var i=this.yAxis,e=this.options,s=this.chart.inverted,n={};if(pt)t?(n.scaleY=.001,t=J(i.pos+i.len,q(i.pos,i.toPixels(e.threshold))),s?n.translateX=t-i.len:n.translateY=t,this.group.attr(n)):(n.scaleY=1,n[s?"translateX":"translateY"]=i.pos,this.group.animate(n,this.options.animation),this.animate=null)},remove:function(){var i=this,t=i.chart;t.hasRendered&&si(t.series,function(t){if(t.type===i.type)t.isDirty=!0});bi.prototype.remove.apply(i,arguments)}});qt.column=mi;fi.bar=I(fi.column);xi=t(mi,{type:"bar",inverted:!0});qt.bar=xi;fi.scatter=I(Jt,{lineWidth:0,tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>",followPointer:!0},stickyTracking:!1});xi=t(bi,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup"],drawTracker:mi.prototype.drawTracker,setTooltipPoints:Lt});qt.scatter=xi;fi.pie=I(Jt,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});Jt={type:"pie",isCartesian:!1,pointClass:t(vi,{init:function(){vi.prototype.init.apply(this,arguments);var i=this,t;if(i.y<0)i.y=null;D(i,{visible:i.visible!==!1,name:O(i.name,"Slice")});t=function(t){i.slice(t.type==="select")};ai(i,"select",t);ai(i,"unselect",t);return i},setVisible:function(t){var i=this,e=i.series,s=e.chart,n;i.visible=i.options.visible=t=t===V?!i.visible:t;e.options.data[ei(i,e.data)]=i.options;n=t?"show":"hide";si(["graphic","dataLabel","connector","shadowGroup"],function(t){if(i[t])i[t][n]()});i.legendItem&&s.legend.colorizeItem(i,t);if(!e.isDirty&&e.options.ignoreHiddenPoint)e.isDirty=!0,s.redraw()},slice:function(t,i,e){var s=this.series;X(e,s.chart);O(i,!0);this.sliced=this.options.sliced=t=z(t)?t:!this.sliced;s.options.data[ei(this,s.data)]=this.options;t=t?this.slicedTranslation:{translateX:0,translateY:0};this.graphic.animate(t);this.shadowGroup&&this.shadowGroup.animate(t)}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:Lt,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;if(!t)si(i,function(t){var i=t.graphic,t=t.shapeArgs;i&&(i.attr({r:e.center[3]/2,start:s,end:s}),i.animate({r:t.r,start:t.start,end:t.end},e.options.animation))}),e.animate=null},setData:function(t,i){bi.prototype.setData.call(this,t,!1);this.processData();this.generatePoints();O(i,!0)&&this.chart.redraw()},generatePoints:function(){var t,i=0,e,s,n,o=this.options.ignoreHiddenPoint;bi.prototype.generatePoints.call(this);e=this.points;s=e.length;for(t=0;t<s;t++)n=e[t],i+=o&&!n.visible?0:n.y;this.total=i;for(t=0;t<s;t++)n=e[t],n.percentage=i>0?n.y/i*100:0,n.total=i},getCenter:function(){var t=this.options,i=this.chart,e=2*(t.slicedOffset||0),s,n=i.plotWidth-2*e,o=i.plotHeight-2*e,i=t.center,t=[O(i[0],"50%"),O(i[1],"50%"),t.size||"100%",t.innerSize||0],r=J(n,o),a;return ri(t,function(t,i){a=/%$/.test(t);s=i<2||i===2&&a;return(a?[n,o,r,r][i]*w(t)/100:t)+(s?e:0)})},translate:function(e){this.generatePoints();var t=0,i=this.options,s=i.slicedOffset,n=s+i.borderWidth,o,r,a,h=i.startAngle||0,l=this.startAngleRad=et/180*(h-90),h=(this.endAngleRad=et/180*((i.endAngle||h+360)-90))-l,c=this.points,d=i.dataLabels.distance,i=i.ignoreHiddenPoint,p,f=c.length,u;if(!e)this.center=e=this.getCenter();this.getX=function(t,i){a=U.asin((t-e[1])/(e[2]/2+d));return e[0]+(i?-1:1)*tt(a)*(e[2]/2+d)};for(p=0;p<f;p++){u=c[p];o=l+t*h;if(!i||u.visible)t+=u.percentage/100;r=l+t*h;u.shapeType="arc";u.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Z(o*1e3)/1e3,end:Z(r*1e3)/1e3};a=(r+o)/2;a>.75*h&&(a-=2*et);u.slicedTranslation={translateX:Z(tt(a)*s),translateY:Z(it(a)*s)};o=tt(a)*e[2]/2;r=it(a)*e[2]/2;u.tooltipPos=[e[0]+o*.7,e[1]+r*.7];u.half=a<-et/2||a>et/2?1:0;u.angle=a;n=J(n,d/2);u.labelPos=[e[0]+o+tt(a)*d,e[1]+r+it(a)*d,e[0]+o+tt(a)*n,e[1]+r+it(a)*n,e[0]+o,e[1]+r,d<0?"center":u.half?"right":"left",a]}},setTooltipPoints:Lt,drawGraph:null,drawPoints:function(){var i=this,e=i.chart.renderer,s,n,o=i.options.shadow,r,a;if(o&&!i.shadowGroup)i.shadowGroup=e.g("shadow").add(i.group);si(i.points,function(t){n=t.graphic;a=t.shapeArgs;r=t.shadowGroup;if(o&&!r)r=t.shadowGroup=e.g("shadow").add(i.shadowGroup);s=t.sliced?t.slicedTranslation:{translateX:0,translateY:0};r&&r.attr(s);n?n.animate(D(a,s)):t.graphic=n=e.arc(a).setRadialReference(i.center).attr(t.pointAttr[t.selected?"select":""]).attr({"stroke-linejoin":"round"}).attr(s).add(i.group).shadow(o,r);t.visible===!1&&t.setVisible(!1)})},sortByAngle:function(t,e){t.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*e})},drawDataLabels:function(){var i=this,t=i.data,e,s=i.chart,n=i.options.dataLabels,o=O(n.connectorPadding,10),r=O(n.connectorWidth,1),a=s.plotWidth,s=s.plotHeight,h,l,c=O(n.softConnector,!0),d=n.distance,p=i.center,f=p[2]/2,u=p[1],g=d>0,m,x,y,v,b=[[],[]],k,w,T,S,L,P=[0,0,0,0],A=function(t,i){return i.y-t.y};if(i.visible&&(n.enabled||i._hasPointLabels)){bi.prototype.drawDataLabels.apply(i);si(t,function(t){t.dataLabel&&b[t.half].push(t)});for(S=0;!v&&t[S];)v=t[S]&&t[S].dataLabel&&(t[S].dataLabel.getBBox().height||21),S++;for(S=2;S--;){var t=[],C=[],M=b[S],D=M.length,I;i.sortByAngle(M,S-.5);if(d>0){for(L=u-f-d;L<=u+f+d;L+=v)t.push(L);x=t.length;if(D>x){e=[].concat(M);e.sort(A);for(L=D;L--;)e[L].rank=L;for(L=D;L--;)M[L].rank>=x&&M.splice(L,1);D=M.length}for(L=0;L<D;L++){e=M[L];y=e.labelPos;e=9999;var z,B;for(B=0;B<x;B++)z=Q(t[B]-y[1]),z<e&&(e=z,I=B);if(I<L&&t[L]!==null)I=L;else for(x<D-L+I&&t[L]!==null&&(I=x-D+L);t[I]===null;)I++;C.push({i:I,y:t[I]});t[I]=null}C.sort(A)}for(L=0;L<D;L++){e=M[L];y=e.labelPos;m=e.dataLabel;T=e.visible===!1?"hidden":"visible";e=y[1];if(d>0){if(x=C.pop(),I=x.i,w=x.y,e>w&&t[I+1]!==null||e<w&&t[I-1]!==null)w=e}else w=e;k=n.justify?p[0]+(S?-1:1)*(f+d):i.getX(I===0||I===t.length-1?e:w,S);m._attr={visibility:T,align:y[6]};m._pos={x:k+n.x+({left:o,right:-o}[y[6]]||0),y:w+n.y-10};m.connX=k;m.connY=w;if(this.options.size===null)x=m.width,k-x<o?P[3]=q(Z(x-k+o),P[3]):k+x>a-o&&(P[1]=q(Z(k+x-a+o),P[1])),w-v/2<0?P[0]=q(Z(-w+v/2),P[0]):w+v/2>s&&(P[2]=q(Z(w+v/2-s),P[2]))}}if(H(P)===0||this.verifyDataLabelOverflow(P))this.placeDataLabels(),g&&r&&si(this.points,function(t){h=t.connector;y=t.labelPos;if((m=t.dataLabel)&&m._pos)T=m._attr.visibility,k=m.connX,w=m.connY,l=c?["M",k+(y[6]==="left"?5:-5),w,"C",k,w,2*y[2]-y[4],2*y[3]-y[5],y[2],y[3],"L",y[4],y[5]]:["M",k+(y[6]==="left"?5:-5),w,"L",y[2],y[3],"L",y[4],y[5]],h?(h.animate({d:l}),h.attr("visibility",T)):t.connector=h=i.chart.renderer.path(l).attr({"stroke-width":r,stroke:n.connectorColor||t.color||"#606060",visibility:T}).add(i.group);else if(h)t.connector=h.destroy()})}},verifyDataLabelOverflow:function(t){var i=this.center,e=this.options,s=e.center,n=e=e.minSize||80,o;s[0]!==null?n=q(i[2]-q(t[1],t[3]),e):(n=q(i[2]-t[1]-t[3],e),i[0]+=(t[3]-t[1])/2);s[1]!==null?n=q(J(n,i[2]-q(t[0],t[2])),e):(n=q(J(n,i[2]-t[0]-t[2]),e),i[1]+=(t[0]-t[2])/2);n<i[2]?(i[2]=n,this.translate(i),si(this.points,function(t){if(t.dataLabel)t.dataLabel._pos=null}),this.drawDataLabels()):o=!0;return o},placeDataLabels:function(){si(this.points,function(t){var t=t.dataLabel,i;if(t)(i=t._pos)?(t.attr(t._attr),t[t.moved?"animate":"attr"](i),t.moved=!0):t&&t.attr({y:-999})})},alignDataLabel:Lt,drawTracker:mi.prototype.drawTracker,drawLegendSymbol:Qt.prototype.drawLegendSymbol,getSymbol:Lt};Jt=t(bi,Jt);qt.pie=Jt;D(Highcharts,{Axis:h,Chart:n,Color:ui,Legend:F,Pointer:s,Point:vi,Tick:Y,Tooltip:N,Renderer:gt,Series:bi,SVGElement:W,SVGRenderer:gi,arrayMin:M,arrayMax:H,charts:Pt,dateFormat:kt,format:P,pathAnim:Tt,getOptions:function(){return bt},hasBidiBug:ft,isTouchDevice:ct,numberFormat:d,seriesTypes:qt,setOptions:function(t){bt=I(bt,t);e();return bt},addEvent:ai,removeEvent:hi,createElement:C,discardElement:r,css:L,each:si,extend:D,map:ri,merge:I,pick:O,splat:f,extendClass:t,pInt:w,wrap:i,svg:pt,canvas:ut,vml:!pt&&!ut,product:"Highcharts",version:"3.0.6"})})();