(function(){function e(n,t){var i;n||(n={});for(i in t)n[i]=t[i];return n}function o(){for(var r=arguments.length,t={},i=function(n,t){var r;for(var u in t)t.hasOwnProperty(u)&&(r=t[u],typeof n!="object"&&(n={}),n[u]=r&&typeof r=="object"&&Object.prototype.toString.call(r)!=="[object Array]"&&typeof r.nodeType!="number"?i(n[u]||{},r):t[u]);return n},n=0;n-1?t.split(".")[1].length:0):n=isNaN(t=b(t))?2:t;var t=n,i=i===void 0?f.decimalPoint:i,r=r===void 0?f.thousandsSep:r,f=u<0?"-":"",n=String(s(u=b(+u||0).toFixed(t))),e=n.length>3?n.length%3:0;return f+(e?n.substr(0,e)+r:"")+n.substr(e).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?i+b(u-n).toFixed(t).slice(2):"")}function ai(n,t){return Array((t||2)+1-String(n).length).join(0)+n}function gi(n,t){for(var e="{",s=!1,i,r,o,u,f,h=[];(e=n.indexOf(e))!==-1;){if(i=n.slice(0,e),s){for(r=i.split(":"),o=r.shift().split("."),f=o.length,i=t,u=0;u-1?u.thousandsSep:"")):i=nu(r,i))}h.push(i);n=n.slice(e+1);e=(s=!s)?"}":"{"}return h.push(n),h.join("")}function ou(t,i,r,u){var f,r=n(r,1);for(f=t/r,i||(i=[1,2,2.5,5,10],u&&u.allowDecimals===!1&&(r===1?i=[1,2,5,10]:r<=.1&&(i=[1/r]))),u=0;u=l[pu]&&(o.setMilliseconds(0),o.setSeconds(s>=l[tu]?0:h*it(o.getSeconds()/h)));s>=l[tu]&&o[vf](s>=l[cr]?0:h*it(o[wu]()/h));s>=l[cr]&&o[yf](s>=l[hi]?0:h*it(o[bu]()/h));s>=l[hi]&&o[du](s>=l[lr]?1:h*it(o[ar]()/h));s>=l[lr]&&(o[pf](s>=l[bi]?0:h*it(o[uu]()/h)),c=o[fu]());s>=l[bi]&&(c-=c%h,o[wf](c));s===l[iu]&&o[du](o[ar]()-o[ku]()+n(f,1));i=1;c=o[fu]();for(var f=o.getTime(),p=o[uu](),w=o[ar](),o=y?0:(864e5+o.getTimezoneOffset()*6e4)%864e5;fi&&(i=n[t]);return i}function tr(n,t){for(var i in n)n[i]&&n[i]!==t&&n[i].destroy&&n[i].destroy(),delete n[i]}function sr(n){gr||(gr=ut(wi));n&&gr.appendChild(n);gr.innerHTML=""}function fi(n,t){var i="Highcharts error #"+n+": www.highcharts.com/errors/"+n;if(t)throw i;else g.console&&console.log(i)}function dt(n){return parseFloat(n.toPrecision(14))}function ir(t,i){yi=n(t,i.animation)}function ff(){var r=nt.global.useUTC,t=r?"getUTC":"get",i=r?"setUTC":"set";ru=r?Date.UTC:function(t,i,r,u,f,e){return new Date(t,i,n(r,1),n(u,0),n(f,0),n(e,0)).getTime()};wu=t+"Minutes";bu=t+"Hours";ku=t+"Day";ar=t+"Date";uu=t+"Month";fu=t+"FullYear";vf=i+"Minutes";yf=i+"Hours";du=i+"Date";pf=i+"Month";wf=i+"FullYear"}function ei(){}function rr(n,t,i,r){this.axis=n;this.pos=t;this.type=i||"";this.isNew=!0;i||r||this.addLabel()}function su(n,t){this.axis=n;t&&(this.options=t,this.id=t.id)}function ef(t,i,r,u,f,e){var o=t.chart.inverted;this.axis=t;this.isNegative=r;this.options=i;this.x=u;this.stack=f;this.percent=e==="percent";this.alignOptions={align:i.align||(o?r?"left":"right":"center"),verticalAlign:i.verticalAlign||(o?"middle":r?"bottom":"top"),y:n(i.y,o?4:r?14:-6),x:n(i.x,o?r?-6:6:0)};this.textAlign=i.textAlign||(o?r?"right":"left":"center")}function yr(){this.init.apply(this,arguments)}function hu(){this.init.apply(this,arguments)}function cu(n,t){this.init(n,t)}function lu(n,t){this.init(n,t)}function au(){this.init.apply(this,arguments)}var f,c=document,g=window,w=Math,u=w.round,it=w.floor,gt=w.ceil,i=w.max,v=w.min,b=w.abs,st=w.cos,vt=w.sin,ur=w.PI,pr=ur/180,vi=navigator.userAgent,of=g.opera,fr=/msie/i.test(vi)&&!of,wr=c.documentMode===8,br=/AppleWebKit/.test(vi),kr=/Firefox/.test(vi),sf=/(Mobile|Android|Windows Phone)/.test(vi),oi="http://www.w3.org/2000/svg",ht=!!c.createElementNS&&!!c.createElementNS(oi,"svg").createSVGRect,gf=kr&&parseInt(vi.split("Firefox/")[1],10)<4,ct=!ht&&!fr&&!!c.createElement("canvas").getContext,hr,dr=c.documentElement.ontouchstart!==f,hf={},vu=0,gr,nt,nu,yi,yu,l,si=function(){},pi=[],wi="div",rt="none",cf="rgba(192,192,192,"+(ht?.0001:.002)+")",lf="millisecond",pu="second",tu="minute",cr="hour",hi="day",iu="week",lr="month",bi="year",af="stroke-width",ru,wu,bu,ku,ar,uu,fu,vf,yf,du,pf,wf,lt={},y,et,ft,ni,ci,d,ti,df,ki,tt;g.Highcharts=g.Highcharts?fi(16,!0):{};nu=function(t,i,f){if(!r(i)||isNaN(i))return"Invalid date";var t=n(t,"%Y-%m-%d %H:%M:%S"),o=new Date(i),s,h=o[bu](),a=o[ku](),v=o[ar](),c=o[uu](),y=o[fu](),l=nt.lang,p=l.weekdays,o=e({a:p[a].substr(0,3),A:p[a],d:ai(v),e:v,b:l.shortMonths[c],B:l.months[c],m:ai(c+1),y:y.toString().substr(2,2),Y:y,H:ai(h),I:ai(h%12||12),l:h%12||12,M:ai(o[wu]()),p:h<12?"AM":"PM",P:h<12?"am":"pm",S:ai(o.getSeconds()),L:ai(u(i%1e3),3)},Highcharts.dateFormats);for(s in o)for(;t.indexOf("%"+s)!==-1;)t=t.replace("%"+s,typeof o[s]=="function"?o[s](i):o[s]);return f?t.substr(0,1).toUpperCase()+t.substr(1):t};rf.prototype={wrapColor:function(n){this.color>=n&&(this.color=0)},wrapSymbol:function(n){this.symbol>=n&&(this.symbol=0)}};l=function(){for(var n=0,t=arguments,r=t.length,i={};n-1,u=e?7:3,f,t=t.split(" "),i=[].concat(i),o,s,h=function(n){for(f=n.length;f--;)n[f]==="M"&&n.splice(f+1,0,n[f+1],n[f+2],n[f+1],n[f+2])};if(e&&(h(t),h(i)),n.isArea&&(o=t.splice(t.length-6,6),s=i.splice(i.length-6,6)),r<=i.length/u)for(;r--;)i=[].concat(i).splice(0,u).concat(i);if(n.shift=0,t.length)for(n=i.length;t.length{point.key}<\/span>
',pointFormat:'{series.name}<\/span>: {point.y}<\/b>
',shadow:!0,snap:sf?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};et=nt.plotOptions;ft=et.line;ff();ni=function(n){var i=[],r,u;return function(n){n&&n.stops?u=er(n.stops,function(n){return ni(n[1])}):(r=/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(n))?i=[s(r[1]),s(r[2]),s(r[3]),parseFloat(r[4],10)]:(r=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))?i=[s(r[1],16),s(r[2],16),s(r[3],16),1]:(r=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))&&(i=[s(r[1]),s(r[2]),s(r[3]),1])}(n),{get:function(r){var f;return u?(f=o(n),f.stops=[].concat(f.stops),t(u,function(n,t){f.stops[t]=[f.stops[t][0],n.get(r)]})):f=i&&!isNaN(i[0])?r==="rgb"?"rgb("+i[0]+","+i[1]+","+i[2]+")":r==="a"?i[3]:"rgba("+i.join(",")+")":n,f},brighten:function(n){if(u)t(u,function(t){t.brighten(n)});else if(li(n)&&n!==0)for(var r=0;r<3;r++)i[r]+=s(n*255),i[r]<0&&(i[r]=0),i[r]>255&&(i[r]=255);return this},rgba:i,setOpacity:function(n){return i[3]=n,this}}};ei.prototype={init:function(n,t){this.element=t==="span"?ut(t):c.createElementNS(oi,t);this.renderer=n;this.attrSetters={}},opacity:1,animate:function(t,i,r){i=n(i,yi,!0);vr(this);i?(i=o(i),r&&(i.complete=r),gu(this,t,i)):(this.attr(t),r&&r())},attr:function(n,t){var u,e,o,w,l=this.element,v=l.nodeName.toLowerCase(),b=this.renderer,a,d=this.attrSetters,y=this.shadows,g,k,p=this;if(wt(n)&&r(t)&&(u=n,n={},n[u]=t),wt(n))u=n,v==="circle"?u={x:"cx",y:"cy"}[u]||u:u==="strokeWidth"&&(u="stroke-width"),p=h(l,u)||this[u]||0,u!=="d"&&u!=="visibility"&&(p=parseFloat(p));else{for(u in n)if(a=!1,e=n[u],o=d[u]&&d[u].call(this,e,u),o!==!1){if(o!==f&&(e=o),u==="d")e&&e.join&&(e=e.join(" ")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0");else if(u==="x"&&v==="text")for(o=0;oo&&/[ \-]/.test(i.textContent||i.innerText)&&(p(i,{width:o+"px",display:"block",whiteSpace:"normal"}),u=o),o=w.fontMetrics(i.style.fontSize).b,c=h<0&&-u,v=f<0&&-y,d=h*f<0,c+=f*o*(d?1-l:l),v-=h*o*(e?d?l:1-l:1),it&&(c-=u*l*(h<0?-1:1),e&&(v-=y*l*(f<0?-1:1)),p(i,{textAlign:a})),this.xCorr=c,this.yCorr=v);p(i,{left:nt+c+"px",top:tt+v+"px"});br&&(y=i.offsetHeight);this.cTT=g}}else this.alignOnAdd=!0},updateTransform:function(){var i=this.translateX||0,u=this.translateY||0,f=this.scaleX,e=this.scaleY,o=this.inverted,s=this.rotation,t=[];o&&(i+=this.attr("width"),u+=this.attr("height"));(i||u)&&t.push("translate("+i+","+u+")");o?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+(this.x||0)+" "+(this.y||0)+")");(r(f)||r(e))&&t.push("scale("+n(f,1)+" "+n(e,1)+")");t.length&&h(this.element,"transform",t.join(" "))},toFront:function(){var n=this.element;return n.parentNode.appendChild(n),this},align:function(t,i,r){var e,f,o,h,s={};return f=this.renderer,o=f.alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=i,!r||wt(r))&&(this.alignTo=e=r||"renderer",bt(o,this),o.push(this),r=null):(t=this.alignOptions,i=this.alignByTranslate,e=this.alignTo),r=n(r,f[e],f),e=t.align,f=t.verticalAlign,o=(r.x||0)+(t.x||0),h=(r.y||0)+(t.y||0),(e==="right"||e==="center")&&(o+=(r.width-(t.width||0))/{right:1,center:2}[e]),s[i?"translateX":"x"]=u(o),(f==="bottom"||f==="middle")&&(h+=(r.height-(t.height||0))/({bottom:1,middle:2}[f]||1)),s[i?"translateY":"y"]=u(h),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},getBBox:function(){var n=this.bBox,i=this.renderer,t,f=this.rotation,u,r;if(t=this.element,u=this.styles,r=f*pr,!n){if(t.namespaceURI===oi||i.forExport){try{n=t.getBBox?e({},t.getBBox()):{width:t.offsetWidth,height:t.offsetHeight}}catch(o){}(!n||n.width<0)&&(n={width:0,height:0})}else n=this.htmlGetBBox();i.isSVG&&(i=n.width,t=n.height,fr&&u&&u.fontSize==="11px"&&t.toPrecision(3)===22.7&&(n.height=t=14),f&&(n.width=b(t*vt(r))+b(i*st(r)),n.height=b(t*st(r))+b(i*vt(r))));this.bBox=n}return n},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(n){var t=this;t.animate({opacity:0},{duration:n||150,complete:function(){t.hide()}})},add:function(n){var i=this.renderer,t=n||i,e=t.element||i.box,o=e.childNodes,f=this.element,u=h(f,"zIndex"),c;if(n&&(this.parentGroup=n),this.parentInverted=n&&n.inverted,this.textStr!==void 0&&i.buildText(this),u&&(t.handleZ=!0,u=s(u)),t.handleZ)for(t=0;tu||!r(u)&&r(i))){e.insertBefore(f,n);c=!0;break}return c||e.appendChild(f),this.added=!0,a(this,"add"),this},safeRemoveChild:function(n){var t=n.parentNode;t&&t.removeChild(n)},destroy:function(){var n=this,i=n.element||{},u=n.shadows,f,r;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,vr(n),n.clipPath&&(n.clipPath=n.clipPath.destroy()),n.stops){for(r=0;r/g,'').replace(/<(i|em)>/g,'').replace(//g,"<\/span>").split(//g),a=r.childNodes,v=/style="([^"]+)"/,y=/href="([^"]+)"/,w=h(r,"x"),u=i.styles,f=u&&u.width&&s(u.width),b=u&&u.lineHeight,k=a.length;k--;)r.removeChild(a[k]);f&&!i.added&&this.box.appendChild(r);e[e.length-1]===""&&e.pop();t(e,function(n,e){var s,a=0,n=n.replace(//g,"<\/span>|||");s=n.split("|||");t(s,function(n){var k,t,g,n,nt,d;if((n!==""||s.length===1)&&(k={},t=c.createElementNS(oi,"tspan"),v.test(n)&&(g=n.match(v)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),h(t,"style",g)),y.test(n)&&!l&&(h(t,"onclick",'location.href="'+n.match(y)[1]+'"'),p(t,{cursor:"pointer"})),n=(n.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">"),t.appendChild(c.createTextNode(n)),a?k.dx=0:k.x=w,h(t,k),!a&&e&&(!ht&&l&&p(t,{display:"block"}),h(t,"dy",b||o.fontMetrics(/px$/.test(t.style.fontSize)?t.style.fontSize:u.fontSize).h,br&&t.offsetHeight)),r.appendChild(t),a++,f))for(n=n.replace(/([^\^])-/g,"$1- ").split(" "),d=[];n.length||d.length;)delete i.bBox,nt=i.getBBox().width,k=nt>f,!k||n.length===1?(n=d,d=[],n.length&&(t=c.createElementNS(oi,"tspan"),h(t,{dy:b||16,x:w}),g&&h(t,"style",g),r.appendChild(t),nt>f&&(f=nt))):(t.removeChild(t.firstChild),d.unshift(n.pop())),n.length&&t.appendChild(c.createTextNode(n.join(" ").replace(/- /g,"-")))})})},button:function(n,t,i,r,u,f,s){var h=this.label(n,t,i,null,null,null,null,null,"button"),l=0,y,p,c,a,v,n={x1:0,y1:0,x2:0,y2:1},u=o({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:n,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},u);return c=u.style,delete u.style,f=o(u,{stroke:"#68A",fill:{linearGradient:n,stops:[[0,"#FFF"],[1,"#ACF"]]}},f),a=f.style,delete f.style,s=o(u,{stroke:"#68A",fill:{linearGradient:n,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),v=s.style,delete s.style,k(h.element,"mouseenter",function(){h.attr(f).css(a)}),k(h.element,"mouseleave",function(){y=[u,f,s][l];p=[c,a,v][l];h.attr(y).css(p)}),h.setState=function(n){(l=n)?n===2&&h.attr(s).css(v):h.attr(u).css(c)},h.on("click",function(){r.call(h)}).attr(u).css(e({cursor:"default"},c))},crispLine:function(n,t){return n[1]===n[4]&&(n[1]=n[4]=u(n[1])-t%2/2),n[2]===n[5]&&(n[2]=n[5]=u(n[2])+t%2/2),n},path:function(n){var t={fill:rt};return di(n)?t.d=n:ot(n)&&e(t,n),this.createElement("path").attr(t)},circle:function(n,t,i){return n=ot(n)?n:{x:n,y:t,r:i},this.createElement("circle").attr(n)},arc:function(n,t,i,r,u,f){return ot(n)&&(t=n.y,i=n.r,r=n.innerR,u=n.start,f=n.end,n=n.x),this.symbol("arc",n||0,t||0,i||0,i||0,{innerR:r||0,start:u||0,end:f||0})},rect:function(n,t,r,u,f,e){return f=ot(n)?n.r:f,f=this.createElement("rect").attr({rx:f,ry:f,fill:rt}),f.attr(ot(n)?n:f.crisp(e,n,t,i(r,0),i(u,0)))},setSize:function(t,i,r){var u=this.alignedObjects,f=u.length;for(this.width=t,this.height=i,this.boxWrapper[n(r,!0)?"animate":"attr"]({width:t,height:i});f--;)u[f].align()},g:function(n){var t=this.createElement("g");return r(n)?t.attr({"class":"highcharts-"+n}):t},image:function(n,t,i,r,u){var f={preserveAspectRatio:rt};return arguments.length>1&&e(f,{x:t,y:i,width:r,height:u}),f=this.createElement("image").attr(f),f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",n):f.element.setAttribute("hc-svg-href",n),f},symbol:function(n,t,i,r,f,o){var s,c=this.symbols[n],c=c&&c(u(t),u(i),r,f,o),a=/^url\((.*?)\)$/,h,l;return c?(s=this.path(c),e(s,{symbolName:n,x:t,y:i,width:r,height:f}),o&&e(s,o)):a.test(n)&&(l=function(n,t){n.element&&(n.attr({width:t[0],height:t[1]}),n.alignByTranslate||n.translate(u((r-t[0])/2),u((f-t[1])/2)))},h=n.match(a)[1],n=hf[h],s=this.image(h).attr({x:t,y:i}),n?l(s,n):(s.attr({width:0,height:0}),ut("img",{onload:function(){l(s,hf[h]=[this.width,this.height])},src:h}))),s},symbols:{circle:function(n,t,i,r){var u=.166*i;return["M",n+i/2,t,"C",n+i+u,t,n+i+u,t+r,n+i/2,t+r,"C",n-u,t+r,n-u,t,n+i/2,t,"Z"]},square:function(n,t,i,r){return["M",n,t,"L",n+i,t,n+i,t+r,n,t+r,"Z"]},triangle:function(n,t,i,r){return["M",n+i/2,t,"L",n+i,t+r,n,t+r,"Z"]},"triangle-down":function(n,t,i,r){return["M",n,t,"L",n+i,t,n+i/2,t+r,"Z"]},diamond:function(n,t,i,r){return["M",n+i/2,t,"L",n+i,t+r/2,n+i/2,t+r,n,t+r/2,"Z"]},arc:function(n,t,i,r,u){var e=u.start,i=u.r||i||r,f=u.end-.001,r=u.innerR,o=u.open,s=st(e),h=vt(e),c=st(f),f=vt(f),u=u.end-e');t&&(i=u||t==="span"||t==="img"?i.join(""):n.prepVML(i),this.element=ut(i));this.renderer=n;this.attrSetters={}},add:function(n){var i=this.renderer,r=this.element,t=i.box,t=n?n.element||n:t;return n&&n.inverted&&i.invertChild(r,t),t.appendChild(r),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),a(this,"add"),this},updateTransform:ei.prototype.htmlUpdateTransform,attr:function(n,t){var e,o,s,l=this.element||{},v=l.style,y=l.nodeName,p=this.renderer,d=this.symbolName,w,a=this.shadows,c,b=this.attrSetters,k=this;if(wt(n)&&r(t)&&(e=n,n={},n[e]=t),wt(n))e=n,k=e==="strokeWidth"||e==="stroke-width"?this.strokeweight:this[e];else for(e in n)if(o=n[e],c=!1,s=b[e]&&b[e].call(this,o,e),s!==!1&&o!==null){if(s!==f&&(o=s),d&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(e))w||(this.symbolAttr(n),w=!0),c=!0;else if(e==="d"){for(o=o||[],this.d=o.join(" "),s=o.length,c=[];s--;)li(o[s])?c[s]=u(o[s]*10)-5:o[s]==="Z"?c[s]="x":(c[s]=o[s],o[s]==="wa"||o[s]==="at")&&(c[s+5]===c[s+7]&&(c[s+7]-=1),c[s+6]===c[s+8]&&(c[s+8]-=1));if(o=c.join(" ")||"x",l.path=o,a)for(s=a.length;s--;)a[s].path=a[s].cutOff?this.cutOffPath(o,a[s].cutOff):o;c=!0}else if(e==="visibility"){if(a)for(s=a.length;s--;)a[s].style[e]=o;y==="DIV"&&(o=o==="hidden"?"-999em":0,wr||(v[e]=o?"hidden":"visible"),e="top");v[e]=o;c=!0}else e==="zIndex"?(o&&(v[e]=o),c=!0):ii(e,["x","y","width","height"])!==-1?(this[e]=o,e==="x"||e==="y"?e={x:"left",y:"top"}[e]:o=i(0,o),this.updateClipping?(this[e]=o,this.updateClipping()):v[e]=o,c=!0):e==="class"&&y==="DIV"?l.className=o:e==="stroke"?(o=p.color(o,l,e),e="strokecolor"):e==="stroke-width"||e==="strokeWidth"?(l.stroked=o?!0:!1,e="strokeweight",this[e]=o,li(o)&&(o+="px")):e==="dashstyle"?((l.getElementsByTagName("stroke")[0]||ut(p.prepVML([""]),null,null,l))[e]=o||"solid",this.dashstyle=o,c=!0):e==="fill"?y==="SPAN"?v.color=o:y!=="IMG"&&(l.filled=o!==rt?!0:!1,o=p.color(o,l,e,this),e="fillcolor"):e==="opacity"?c=!0:y==="shape"&&e==="rotation"?(this[e]=o,l.style.left=-u(vt(o*pr)+1)+"px",l.style.top=u(st(o*pr))+"px"):e==="translateX"||e==="translateY"||e==="rotation"?(this[e]=o,this.updateTransform(),c=!0):e==="text"&&(this.bBox=null,l.innerHTML=o,c=!0);c||(wr?l[e]=o:h(l,e,o))}return k},clip:function(n){var t=this,i;return n?(i=n.members,bt(i,t),i.push(t),t.destroyClip=function(){bt(i,t)},n=n.getCSS(t)):(t.destroyClip&&t.destroyClip(),n={clip:wr?"inherit":"rect(auto)"}),t.css(n)},css:ei.prototype.htmlCss,safeRemoveChild:function(n){n.parentNode&&sr(n)},destroy:function(){return this.destroyClip&&this.destroyClip(),ei.prototype.destroy.apply(this)},on:function(n,t){return this.element["on"+n]=function(){var n=g.event;n.target=n.srcElement;t(n)},this},cutOffPath:function(n,t){var i,n=n.split(/[ ,]/);return i=n.length,(i===9||i===11)&&(n[i-4]=n[i-2]=s(n[i-2])-10*t),n.join(" ")},shadow:function(t,i,r){var v=[],f,e=this.element,y=this.renderer,u,p=e.style,h,o=e.path,c,l,a,w;if(o&&typeof o.value!="string"&&(o="x"),l=o,t){for(a=n(t.width,3),w=(t.opacity||.15)/a,f=1;f<=3;f++)c=a*2+1-2*f,r&&(l=this.cutOffPath(o.value,c+.5)),h=[''],u=ut(y.prepVML(h),null,{left:s(p.left)+n(t.offsetX,1),top:s(p.top)+n(t.offsetY,1)}),r&&(u.cutOff=c+1),h=[''],ut(y.prepVML(h),null,null,u),i?i.element.appendChild(u):e.parentNode.insertBefore(u,e),v.push(u);this.shadows=v}return this}},d=pt(ei,d),ti={Element:d,isIE8:vi.indexOf("MSIE 8.0")>-1,init:function(n,t,i){var r,u;this.alignedObjects=[];r=this.createElement(wi);u=r.element;u.style.position="relative";n.appendChild(r.element);this.isVML=!0;this.box=u;this.boxWrapper=r;this.setSize(t,i,!1);c.namespaces.hcv||(c.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),c.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(n,i,r,f){var s=this.createElement(),o=ot(n);return e(s,{members:[],left:o?n.x:n,top:o?n.y:i,width:o?n.width:r,height:o?n.height:f,getCSS:function(n){var t=n.element,o=t.nodeName,n=n.inverted,i=this.top-(o==="shape"?t.offsetTop:0),r=this.left,t=r+this.width,f=i+this.height,i={clip:"rect("+u(n?r:i)+"px,"+u(n?f:t)+"px,"+u(n?t:f)+"px,"+u(n?i:r)+"px)"};return!n&&wr&&o==="DIV"&&e(i,{width:t+"px",height:f+"px"}),i},updateClipping:function(){t(s.members,function(n){n.css(s.getCSS(n))})}})},color:function(n,i,r,u){var at=this,s,d=/^rgba/,v,c,f=rt;if(n&&n.linearGradient?c="gradient":n&&n.radialGradient&&(c="pattern"),c){var h,y,e=n.linearGradient||n.radialGradient,l,g,tt,it,ft,p="",n=n.stops,b,et=[],ot=function(){v=[''];ut(at.prepVML(v),null,null,i)};if(l=n[0],b=n[n.length-1],l[0]>0&&n.unshift([0,l[1]]),b[0]<1&&n.push([1,b[1]]),t(n,function(n,t){d.test(n[1])?(s=ni(n[1]),h=s.get("rgb"),y=s.get("a")):(h=n[1],y=1);et.push(n[0]*100+"% "+h);t?(tt=y,it=h):(g=y,ft=h)}),r==="fill")if(c==="gradient")r=e.x1||e[0]||0,n=e.y1||e[1]||0,l=e.x2||e[2]||0,e=e.y2||e[3]||0,p='angle="'+(90-w.atan((e-n)/(l-r))*180/ur)+'"',ot();else{var f=e.r,st=f*2,ht=f*2,ct=e.cx,lt=e.cy,a=i.radialReference,o,f=function(){a&&(o=u.getBBox(),ct+=(a[0]-o.x)/o.width-.5,lt+=(a[1]-o.y)/o.height-.5,st*=a[2]/o.width,ht*=a[2]/o.height);p='src="'+nt.global.VMLRadialGradientURL+'" size="'+st+","+ht+'" origin="0.5,0.5" position="'+ct+","+lt+'" color2="'+ft+'" ';ot()};u.added?f():k(u,"add",f);f=it}else f=h}else d.test(n)&&i.tagName!=="IMG"?(s=ni(n),v=["<",r,' opacity="',s.get("a"),'"/>'],ut(this.prepVML(v),null,null,i),f=s.get("rgb")):(f=i.getElementsByTagName(r),f.length&&(f[0].opacity=1,f[0].type="solid"),f=n);return f},prepVML:function(n){var t=this.isIE8,n=n.join("");return t?(n=n.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),n=n.indexOf('style="')===-1?n.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):n.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):n=n.replace("<","1&&f.attr({x:t,y:i,width:r,height:u}),f},rect:function(n,t,r,u,f,e){ot(n)&&(t=n.y,r=n.width,u=n.height,e=n.strokeWidth,n=n.x);var o=this.symbol("rect");return o.r=f,o.attr(o.crisp(e,n,t,i(r,0),i(u,0)))},invertChild:function(n,t){var i=t.style;p(n,{flip:"x",left:s(i.width)-1,top:s(i.height)-1,rotation:-90})},symbols:{arc:function(n,t,i,r,u){var e=u.start,o=u.end,f=u.r||i||r,i=u.innerR,r=st(e),s=vt(e),h=st(o),c=vt(o);return o-e==0?["x"]:(e=["wa",n-f,t-f,n+f,t+f,n+f*r,t+f*s,n+f*h,t+f*c],u.open&&!i&&e.push("e","M",n,t),e.push("at",n-i,t-i,n+i,t+i,n+i*h,t+i*c,n+i*r,t+i*s,"x","e"),e)},circle:function(n,t,i,r){return["wa",n,t,n+i,t+r,n+i,t+r/2,n+i,t+r/2,"e"]},rect:function(n,t,i,u,f){var o=n+i,s=t+u,e;return!r(f)||!f.r?o=ci.prototype.symbols.square.apply(0,arguments):(e=v(f.r,i,u),o=["M",n+e,t,"L",o-e,t,"wa",o-2*e,t,o,t+2*e,o-e,t,o,t+e,"L",o,s-e,"wa",o-2*e,s-2*e,o,s,o,s-e,o-e,s,"L",n+e,s,"wa",n,s-2*e,n+2*e,s,n+e,s,n,s-e,"L",n,t+e,"wa",n,t,n+2*e,t+2*e,n,t+e,n+e,t,"x","e"]),o}}},Highcharts.VMLRenderer=d=function(){this.init.apply(this,arguments)},d.prototype=o(ci.prototype,ti),hr=d);ct&&(Highcharts.CanVGRenderer=d=function(){oi="http://www.w3.org/1999/xhtml"},d.prototype.symbols={},df=function(){function t(){for(var i=n.length,t=0;ts&&(o=!1)):r+u>a&&(r=a-u,i&&r+h0&&f.height>0?(e=o({align:l&&s&&"center",x:l?!s&&4:10,verticalAlign:!l&&s&&"middle",y:l?s?16:10:s?6:-4,rotation:l&&!s&&90},e),y||(c.label=y=rt.text(e.text,0,0).attr({align:e.textAlign||e.align,rotation:e.rotation,zIndex:d}).css(e.style).add()),f=[t[1],t[4],n(t[6],t[1])],t=[t[2],t[5],n(t[7],t[2])],l=nr(f),s=nr(t),y.align(e,!1,{x:l,y:s,width:ui(f)-l,height:ui(t)-s}),y.show()):y&&y.hide(),c},destroy:function(){bt(this.axis.plotLinesAndBands,this);tr(this,this.axis)}};ef.prototype={destroy:function(){tr(this,this.axis)},setTotal:function(n){this.cum=this.total=n},render:function(n){var t=this.options,i=t.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(i,0,0,t.useHTML).css(t.style).attr({align:this.textAlign,rotation:t.rotation,visibility:"hidden"}).add(n)},setOffset:function(n,t){var i=this.axis,e=i.chart,r=e.inverted,u=this.isNegative,f=i.translate(this.percent?100:this.total,0,0,0,1),i=i.translate(0),i=b(f-i),s=e.xAxis[0].translate(this.x)+n,o=e.plotHeight,u={x:r?u?f:f-i:s,y:r?o-s-t:u?o-f-i:o-f,width:r?i:t,height:r?t:i};(r=this.label)&&(r.align(this.alignOptions,null,u),u=r.alignAttr,r.attr({visibility:this.options.crop===!1||e.isInsidePlot(u.x,u.y)?ht?"inherit":"visible":"hidden"}))}};yr.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:y,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:{align:"right",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 this.total},style:y.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(n,t){var u=t.isX,e,o,i;this.horiz=n.inverted?!u:u;this.xOrY=(this.isXAxis=u)?"x":"y";this.opposite=t.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(t);i=this.options;e=i.type;this.labelFormatter=i.labels.formatter||this.defaultLabelFormatter;this.staggerLines=this.horiz&&i.labels.staggerLines;this.userOptions=t;this.minPixelPadding=0;this.chart=n;this.reversed=i.reversed;this.zoomEnabled=i.zoomEnabled!==!1;this.categories=i.categories||e==="category";this.isLog=e==="logarithmic";this.isDatetimeAxis=e==="datetime";this.isLinked=r(i.linkedTo);this.tickmarkOffset=this.categories&&i.tickmarkPlacement==="between"?.5:0;this.ticks={};this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=i.minRange||i.maxZoom;this.range=i.range;this.offset=i.offset||0;this.stacks={};this._stacksTouched=0;this.min=this.max=null;i=this.options.events;ii(this,n.axes)===-1&&(n.axes.push(this),n[u?"xAxis":"yAxis"].push(this));this.series=this.series||[];n.inverted&&u&&this.reversed===f&&(this.reversed=!0);this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in i)k(this,o,i[o]);this.isLog&&(this.val2lin=ri,this.lin2val=yt)},setOptions:function(n){this.options=o(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],o(nt[this.isXAxis?"xAxis":"yAxis"],n))},update:function(t,i){var r=this.chart,t=r.options[this.xOrY+"Axis"][this.options.index]=o(this.userOptions,t);this.destroy();this._addedPlotLB=!1;this.init(r,t);r.isDirtyBox=!0;n(i,!0)&&r.redraw()},remove:function(i){var r=this.chart,u=this.xOrY+"Axis";t(this.series,function(n){n.remove(!1)});bt(r.axes,this);bt(r[u],this);r.options[u].splice(this.options.index,1);this.destroy();r.isDirtyBox=!0;n(i,!0)&&r.redraw()},defaultLabelFormatter:function(){var i=this.axis,t=this.value,u=i.categories,o=this.dateTimeLabelFormat,e=nt.lang.numericSymbols,r=e&&e.length,n,s=i.options.labels.format,i=i.isLog?t:i.tickInterval;if(s)n=gi(s,this);else if(u)n=t;else if(o)n=nu(o,t);else if(r&&i>=1e3)for(;r--&&n===f;)u=Math.pow(1e3,r+1),i>=u&&e[r]!==null&&(n=or(t/u,-1)+e[r]);return n===f&&(n=t>=1e3?or(t,0):or(t,-1)),n},getSeriesExtremes:function(){var u=this,a=u.chart,e=u.stacks,h=[],c=[],l=u._stacksTouched+=1,s,o;u.hasVisibleSeries=!1;u.dataMin=u.dataMax=null;t(u.series,function(t){if(t.visible||!a.options.chart.ignoreHiddenSeries){var p=t.options,w,it,rt,g,ut,tt,ft,s,y,b=p.threshold,ot,nt=[],st=0;if(u.hasVisibleSeries=!0,u.isLog&&b<=0&&(b=p.threshold=null),u.isXAxis)(p=t.xData,p.length)&&(u.dataMin=v(n(u.dataMin,p[0]),nr(p)),u.dataMax=i(n(u.dataMax,p[0]),ui(p)));else{var et,k,d,ct=t.cropped,ht=t.xAxis.getExtremes(),lt=!!t.modifyValue;for(w=p.stacking,u.usePercentage=w==="percent",w&&(ut=p.stack,g=t.type+n(ut,""),tt="-"+g,t.stackKey=g,it=h[g]||[],h[g]=it,rt=c[tt]||[],c[tt]=rt),u.usePercentage&&(u.dataMin=0,u.dataMax=99),p=t.processedXData,ft=t.processedYData,ot=ft.length,o=0;o0)&&(lt&&(y=t.modifyValue(y)),t.getExtremesFromAll||ct||(p[o+1]||s)>=ht.min&&(p[o-1]||s)<=ht.max))if(s=y.length)for(;s--;)y[s]!==null&&(nt[st++]=y[s]);else nt[st++]=y;!u.usePercentage&&nt.length&&(t.dataMin=w=nr(nt),t.dataMax=t=ui(nt),u.dataMin=v(n(u.dataMin,w),w),u.dataMax=i(n(u.dataMax,t),t));r(b)&&(u.dataMin>=b?(u.dataMin=b,u.ignoreMinPadding=!0):u.dataMaxs+this.width)&&(o=!0):(i=s,c=v-this.right,fh+this.height)&&(o=!0),o&&!r?null:e.renderer.crispLine(["M",i,f,"L",c,l],t||0)},getPlotBandPath:function(n,t){var i=this.getPlotLinePath(t),r=this.getPlotLinePath(n);return r&&i?r.push(i[4],i[5],i[1],i[2]):r=null,r},getLinearTickPositions:function(n,t,i){for(var r,t=dt(it(t/n)*n),i=dt(gt(i/n)*n),u=[];t<=i;){if(u.push(t),t=dt(t+n),t===r)break;r=t}return u},getLogTickPositions:function(t,i,r,f){var o=this.options,e=this.len,s=[],h,v,l,c,a;if(f||(this._minorAutoInterval=null),t>=.5)t=u(t),s=this.getLinearTickPositions(t,i,r);else if(t>=.08)for(e=it(i),o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];ei&&c<=r&&s.push(c),c>r&&(a=!0),c=l;else(i=yt(i),r=yt(r),t=o[f?"minorTickInterval":"tickInterval"],t=n(t==="auto"?null:t,this._minorAutoInterval,(r-i)*(o.tickPixelInterval/(f?5:1))/((f?e/this.tickPositions.length:e)||1)),t=ou(t,null,w.pow(10,it(w.log(t)/w.LN10))),s=er(this.getLinearTickPositions(t,i,r),ri),f)||(this._minorAutoInterval=t/5);return f||(this.tickInterval=t),s},getMinorTickPositions:function(){var i=this.options,n=this.tickPositions,r=this.minorTickInterval,t=[],u;if(this.isLog)for(u=n.length,i=1;i=this.minRange,c,h,a,l,p,o;this.isXAxis&&this.minRange===f&&!this.isLog&&(r(s.min)||r(s.max)?this.minRange=null:(t(this.series,function(n){for(l=n.xData,h=p=n.xIncrement?1:l.length-1;h>0;h--)(a=l[h]-l[h-1],c===f||ao&&(t=0);s=i(s,t);u=i(u,c?0:t/2);f=i(f,c==="on"?0:t);!n.noSharedTooltip&&r(h)&&(e=r(e)?v(e,h):h)}),this.minPointOffset=u,this.pointRangePadding=f,this.pointRange=v(s,o),this.closestPointRange=e);n&&(this.oldTransA=c);this.translationSlope=this.transA=c=this.len/(o+f||1);this.transB=this.horiz?this.left:this.bottom;this.minPixelPadding=c*u},setTickPositions:function(u){var f=this,s=f.chart,e=f.options,c=f.isLog,l=f.isDatetimeAxis,y=f.isXAxis,h=f.isLinked,o=f.options.tickPositioner,p=e.maxPadding,b=e.minPadding,a=e.tickInterval,k=e.minTickInterval,d=e.tickPixelInterval,g=f.categories;h?(f.linkedParent=s[y?"xAxis":"yAxis"][e.linkedTo],s=f.linkedParent.getExtremes(),f.min=n(s.min,s.dataMin),f.max=n(s.max,s.dataMax),e.type!==f.linkedParent.options.type&&fi(11,1)):(f.min=n(f.userMin,e.min,f.dataMin),f.max=n(f.userMax,e.max,f.dataMax));c&&(!u&&v(f.min,n(f.dataMin,f.min))<=0&&fi(10,1),f.min=dt(ri(f.min)),f.max=dt(ri(f.max)));f.range&&(f.userMin=f.min=i(f.min,f.max-f.range),f.userMax=f.max,u)&&(f.range=null);f.beforePadding&&f.beforePadding();f.adjustForMinRange();!g&&!f.usePercentage&&!h&&r(f.min)&&r(f.max)&&(s=f.max-f.min)&&(!r(e.min)&&!r(f.userMin)&&b&&(f.dataMin<0||!f.ignoreMinPadding)&&(f.min-=s*b),!r(e.max)&&!r(f.userMax)&&p&&(f.dataMax>0||!f.ignoreMaxPadding)&&(f.max+=s*p));f.tickInterval=f.min===f.max||f.min===void 0||f.max===void 0?1:h&&!a&&d===f.linkedParent.options.tickPixelInterval?f.linkedParent.tickInterval:n(a,g?1:(f.max-f.min)*d/(f.len||1));y&&!u&&t(f.series,function(n){n.processData(f.min!==f.oldMin||f.max!==f.oldMax)});f.setAxisTranslation(!0);f.beforeSetTickPositions&&f.beforeSetTickPositions();f.postProcessTickInterval&&(f.tickInterval=f.postProcessTickInterval(f.tickInterval));!a&&f.tickIntervalc&&o.shift(),e.endOnTick?f.max=l:f.max+h(n[r]||0)&&this.options.alignTicks!==!1&&(n[r]=t.length);i.maxTicks=n},adjustTickAmount:function(){var n=this._maxTicksKey,t=this.tickPositions,i=this.chart.maxTicks,u,f;if(i&&i[n]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){if(u=this.tickAmount,f=t.length,this.tickAmount=n=i[n],f=this.dataMax&&(t=f),this.displayBtn=n!==f||t!==f,this.setExtremes(n,t,!1,f,{trigger:"zoom"}),!0},setAxisSize:function(){var r=this.chart,t=this.options,u=t.offsetLeft||0,s=t.offsetRight||0,o=this.horiz,f,e;this.left=e=n(t.left,r.plotLeft+u);this.top=f=n(t.top,r.plotTop);this.width=u=n(t.width,r.plotWidth-u+s);this.height=t=n(t.height,r.plotHeight);this.bottom=r.chartHeight-t-f;this.right=r.chartWidth-u-e;this.len=i(o?u:t,0);this.pos=o?e:f},getExtremes:function(){var n=this.isLog;return{min:n?dt(yt(this.min)):this.min,max:n?dt(yt(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(n){var t=this.isLog,i=t?yt(this.min):this.min,t=t?yt(this.max):this.max;return i>n||n===null?n=i:t=n.min&&t<=n.max)&&(u[t]||(u[t]=new rr(n,t)),tt&&u[t].isNew&&u[t].render(i,!0),u[t].render(i,!1,1))}),a&&n.min===0&&(u[-1]||(u[-1]=new rr(n,-1,null,!0)),u[-1].render(-1))),nt&&t(o,function(t,i){i%2==0&&t1||b(t-u.y)>1)&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){f&&f.move(n,t,i,r)},32))},hide:function(){var r=this,i;this.isHidden||(i=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){r.label.fadeOut();r.isHidden=!0},n(this.options.hideDelay,500)),i&&t(i,function(n){n.setState()}),this.chart.hoverPoints=null)},hideCrosshairs:function(){t(this.crosshairs,function(n){n&&n.hide()})},getAnchor:function(n,i){var e,r=this.chart,o=r.inverted,c=r.plotTop,s=0,h=0,l,n=kt(n);return e=n[0].tooltipPos,this.followPointer&&i&&(i.chartX===f&&(i=r.pointer.normalize(i)),e=[i.chartX-r.plotLeft,i.chartY-c]),e||(t(n,function(n){l=n.series.yAxis;s+=n.plotX;h+=(n.plotLow?(n.plotLow+n.plotHigh)/2:n.plotY)+(!o&&l?l.top-c:0)}),s/=n.length,h/=n.length,e=[o?r.plotWidth-h:s,this.shared&&!o&&n.length>1&&i?i.chartY-c:o?r.plotHeight-s:h]),er(e,u)},getPosition:function(t,r,u){var f=this.chart,h=f.plotLeft,o=f.plotTop,c=f.plotWidth,l=f.plotHeight,s=n(this.options.distance,12),a=u.plotX,u=u.plotY,f=a+h+(f.inverted?s:-t-s),e=u-r+o+15,v;return f<7&&(f=h+i(a,0)+s),f+t>h+c&&(f-=f+t-(h+c),e=u-r+o-s,v=!0),e=e&&u<=e+r&&(e=u+o+s)),e+r>o+l&&(e=i(o,o+l-r-s)),{x:f,y:e}},defaultFormatter:function(n){var u=this.points||kt(this),i=u[0].series,r;return r=[i.tooltipHeaderFormatter(u[0])],t(u,function(n){i=n.series;r.push(i.tooltipFormatter&&i.tooltipFormatter(n)||n.point.tooltipFormatter(i.tooltipOptions.pointFormat))}),r.push(n.options.footerFormat||""),r.join("")},refresh:function(i,r){var h=this.chart,u=this.label,o=this.options,v,c,s,f={},l,p=[],y,e;if(l=o.formatter||this.defaultFormatter,f=h.hoverPoints,e=o.crosshairs,s=this.shared,clearTimeout(this.hideTimer),this.followPointer=kt(i)[0].series.tooltipOptions.followPointer,c=this.getAnchor(i,r),v=c[0],c=c[1],s&&(!i.series||!i.series.noSharedTooltip)?(h.hoverPoints=i,f&&t(f,function(n){n.setState()}),t(i,function(n){n.setState("hover");p.push(n.getLabelConfig())}),f={x:i[0].category,y:i[0].y},f.points=p,i=i[0]):f=i.getLabelConfig(),l=l.call(f,this),f=i.series,s=s||!f.isCartesian||f.tooltipOutsidePlot||h.isInsidePlot(v,c),l===!1||!s?this.hide():(this.isHidden&&(vr(u),u.attr("opacity",1).show()),u.attr({text:l}),y=o.borderColor||i.color||f.color||"#606060",u.attr({stroke:y}),this.updatePosition({plotX:v,plotY:c}),this.isHidden=!1),e)for(e=kt(e),u=e.length;u--;)(o=i.series[u?"yAxis":"xAxis"],e[u]&&o)&&((o=o.getPlotLinePath(u?n(i.stackY,i.y):i.x,1),this.crosshairs[u])?this.crosshairs[u].attr({d:o,visibility:"visible"}):(s={"stroke-width":e[u].width||1,stroke:e[u].color||"#C0C0C0",zIndex:e[u].zIndex||2},e[u].dashStyle&&(s.dashstyle=e[u].dashStyle),this.crosshairs[u]=h.renderer.path(o).attr(s).add()));a(h,"tooltipRefresh",{text:l,x:v+h.plotLeft,y:c+h.plotTop,borderColor:y})},updatePosition:function(n){var i=this.chart,t=this.label,t=(this.options.positioner||this.getPosition).call(this,t.width,t.height,n);this.move(u(t.x),u(t.y),n.plotX+i.plotLeft,n.plotY+i.plotTop)}};cu.prototype={init:function(n,t){var i=ct?"":t.chart.zoomType,r=n.inverted,u;this.options=t;this.chart=n;this.zoomX=u=/x/.test(i);this.zoomY=i=/y/.test(i);this.zoomHor=u&&!r||i&&r;this.zoomVert=i&&!r||u&&r;this.pinchDown=[];this.lastValidTouch={};t.tooltip.enabled&&(n.tooltip=new hu(n,t.tooltip));this.setDOMEvents()},normalize:function(n){var t,r,i,n=n||g.event;return n.target||(n.target=n.srcElement),n=kf(n),i=n.touches?n.touches.item(0):n,this.chartPosition=t=te(this.chart.container),i.pageX===f?(r=n.x,t=n.y):(r=i.pageX-t.left,t=i.pageY-t.top),e(n,{chartX:u(r),chartY:u(t)})},getCoordinates:function(n){var i={xAxis:[],yAxis:[]};return t(this.chart.axes,function(t){i[t.isXAxis?"xAxis":"yAxis"].push({axis:t,value:t.toValue(n[t.horiz?"chartX":"chartY"])})}),i},getIndex:function(n){var t=this.chart;return t.inverted?t.plotHeight+t.plotTop-n.chartY:n.chartX-t.plotLeft},runPointActions:function(n){var t=this.chart,f=t.series,u=t.tooltip,i,c=t.hoverPoint,o=t.hoverSeries,e,r,s=t.chartWidth,h=this.getIndex(n);if(u&&this.options.tooltip.shared&&(!o||!o.noSharedTooltip)){for(i=[],e=f.length,r=0;rs&&i.splice(e,1);i.length&&i[0].clientX!==this.hoverX&&(u.refresh(i,n),this.hoverX=i[0].clientX)}if(o&&o.tracker){if((t=o.tooltipPoints[h])&&t!==c)t.onMouseOver(n)}else u&&u.followPointer&&!u.isHidden&&(n=u.getAnchor([{}],n),u.updatePosition({plotX:n[0],plotY:n[1]}))},reset:function(n){var t=this.chart,u=t.hoverSeries,r=t.hoverPoint,i=t.tooltip,t=i&&i.shared?t.hoverPoints:r;(n=n&&i&&t)&&kt(t)[0].plotX===f&&(n=!1);n?i.refresh(t):(r&&r.onMouseOut(),u&&u.onMouseOut(),i&&(i.hide(),i.hideCrosshairs()),this.hoverX=null)},scaleGroups:function(n,i){var r=this.chart;t(r.series,function(t){t.xAxis.zoomEnabled&&(t.group.attr(n),t.markerGroup&&(t.markerGroup.attr(n),t.markerGroup.clip(i?r.clipRect:null)),t.dataLabelsGroup&&t.dataLabelsGroup.attr(n))});r.clipRect.attr(i||r.clipBox)},pinchTranslateDirection:function(n,t,i,r,u,f,e){var l=this.chart,h=n?"x":"y",k=n?"X":"Y",a="chart"+k,it=n?"width":"height",d=l["plot"+(n?"Left":"Top")],c,g,o=1,nt=l.inverted,v=l.bounds[n?"h":"v"],y=t.length===1,p=t[0][a],s=i[0][a],rt=!y&&t[1][a],w=!y&&i[1][a],tt,i=function(){!y&&b(p-rt)>20&&(o=b(s-w)/b(p-rt));g=(d-s)/o+p;c=l["plot"+(n?"Width":"Height")]/o};i();t=g;tv.max&&(t=v.max-c,tt=!0);tt?(s-=.8*(s-e[h][0]),y||(w-=.8*(w-e[h][1])),i()):e[h]=[s,w];nt||(f[h]=g-d,f[it]=c);f=nt?1/o:o;u[it]=c;u[h]=t;r[nt?n?"scaleY":"scaleX":"scale"+k]=o;r["translate"+k]=f*d+(s-f*p)},pinch:function(n){var r=this,f=r.chart,u=r.pinchDown,o=n.touches,s=r.lastValidTouch,a=r.zoomHor||r.pinchHor,y=r.zoomVert||r.pinchVert,h=r.selectionMarker,c={},l={};n.type==="touchstart"&&(r.inClass(n.target,"highcharts-tracker")?f.runTrackerClick||n.preventDefault():f.runChartClick||n.preventDefault());er(o,function(n){return r.normalize(n)});n.type==="touchstart"?(t(o,function(n,t){u[t]={chartX:n.chartX,chartY:n.chartY}}),s.x=[u[0].chartX,u[1]&&u[1].chartX],s.y=[u[0].chartY,u[1]&&u[1].chartY],t(f.axes,function(n){if(n.zoomEnabled){var r=f.bounds[n.horiz?"h":"v"],u=n.minPixelPadding,t=n.toPixels(n.dataMin),e=n.toPixels(n.dataMax),o=v(t,e),t=i(t,e);r.min=v(n.pos,o-u);r.max=i(n.pos+n.len,t+u)}})):u.length&&(h||(r.selectionMarker=h=e({destroy:si},f.plotBox)),a&&r.pinchTranslateDirection(!0,u,o,c,h,l,s),y&&r.pinchTranslateDirection(!1,u,o,c,h,l,s),r.hasPinched=a||y,r.scaleGroups(c,l))},dragStart:function(n){var t=this.chart;t.mouseIsDown=n.type;t.cancelClick=!1;t.mouseDownX=this.mouseDownX=n.chartX;this.mouseDownY=n.chartY},drag:function(n){var i=this.chart,l=i.options.chart,r=n.chartX,n=n.chartY,t=this.zoomHor,a=this.zoomVert,u=i.plotLeft,f=i.plotTop,s=i.plotWidth,h=i.plotHeight,c,e=this.mouseDownX,o=this.mouseDownY;ru+s&&(r=u+s);nf+h&&(n=f+h);this.hasDragged=Math.sqrt(Math.pow(e-r,2)+Math.pow(o-n,2));this.hasDragged>10&&(c=i.isInsidePlot(e-u,o-f),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&c&&!this.selectionMarker&&(this.selectionMarker=i.renderer.rect(u,f,t?1:s,a?1:h,0).attr({fill:l.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&t&&(t=r-e,this.selectionMarker.attr({width:b(t),x:(t>0?0:t)+e})),this.selectionMarker&&a&&(t=n-o,this.selectionMarker.attr({height:b(t),y:(t>0?0:t)+o})),c&&!this.selectionMarker&&l.panning&&i.pan(r))},drop:function(n){var r=this.chart,f=this.hasPinched;if(this.selectionMarker){var o={xAxis:[],yAxis:[],originalEvent:n.originalEvent||n},u=this.selectionMarker,s=u.x,h=u.y,c;(this.hasDragged||f)&&(t(r.axes,function(n){if(n.zoomEnabled){var t=n.horiz,f=n.minPixelPadding,r=n.toValue((t?s:h)+f),t=n.toValue((t?s+u.width:h+u.height)-f);isNaN(r)||isNaN(t)||(o[n.xOrY+"Axis"].push({axis:n,min:v(r,t),max:i(r,t)}),c=!0)}}),c&&a(r,"selection",o,function(n){r.zoom(e(n,f?{animation:!1}:null))}));this.selectionMarker=this.selectionMarker.destroy();f&&this.scaleGroups({translateX:r.plotLeft,translateY:r.plotTop,scaleX:1,scaleY:1})}r&&(p(r.container,{cursor:"auto"}),r.cancelClick=this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(n){n=this.normalize(n);n.preventDefault&&n.preventDefault();this.dragStart(n)},onDocumentMouseUp:function(n){this.drop(n)},onDocumentMouseMove:function(n){var t=this.chart,i=this.chartPosition,r=t.hoverSeries,n=kf(n);i&&r&&r.isCartesian&&!t.isInsidePlot(n.pageX-i.left-t.plotLeft,n.pageY-i.top-t.plotTop)&&this.reset()},onContainerMouseLeave:function(){this.reset();this.chartPosition=null},onContainerMouseMove:function(n){var t=this.chart,n=this.normalize(n);n.returnValue=!1;t.mouseIsDown==="mousedown"&&this.drag(n);t.isInsidePlot(n.chartX-t.plotLeft,n.chartY-t.plotTop)&&this.runPointActions(n)},inClass:function(n,t){for(var i;n;){if(i=h(n,"class")){if(i.indexOf(t)!==-1)return!0;if(i.indexOf("highcharts-container")!==-1)return!1}n=n.parentNode}},onTrackerMouseOut:function(n){var t=this.chart.hoverSeries;!t||t.options.stickyTracking||this.inClass(n.toElement||n.relatedTarget,"highcharts-tooltip")||t.onMouseOut()},onContainerClick:function(n){var t=this.chart,i=t.hoverPoint,o=t.plotLeft,s=t.plotTop,h=t.inverted,r,u,f,n=this.normalize(n);n.cancelBubble=!0;t.cancelClick||(i&&this.inClass(n.target,"highcharts-tracker")?(r=this.chartPosition,u=i.plotX,f=i.plotY,e(i,{pageX:r.left+o+(h?t.plotWidth-f:u),pageY:r.top+s+(h?t.plotHeight-u:f)}),a(i.series,"click",e(n,{point:i})),i.firePointEvent("click",n)):(e(n,this.getCoordinates(n)),t.isInsidePlot(n.chartX-o,n.chartY-s)&&a(t,"click",n)))},onContainerTouchStart:function(n){var t=this.chart;n.touches.length===1?(n=this.normalize(n),t.isInsidePlot(n.chartX-t.plotLeft,n.chartY-t.plotTop)&&(this.runPointActions(n),this.pinch(n))):n.touches.length===2&&this.pinch(n)},onContainerTouchMove:function(n){(n.touches.length===1||n.touches.length===2)&&this.pinch(n)},onDocumentTouchEnd:function(n){this.drop(n)},setDOMEvents:function(){var i=this,n=i.chart.container,r;this._events=r=[[n,"onmousedown","onContainerMouseDown"],[n,"onmousemove","onContainerMouseMove"],[n,"onclick","onContainerClick"],[n,"mouseleave","onContainerMouseLeave"],[c,"mousemove","onDocumentMouseMove"],[c,"mouseup","onDocumentMouseUp"]];dr&&r.push([n,"ontouchstart","onContainerTouchStart"],[n,"ontouchmove","onContainerTouchMove"],[c,"touchend","onDocumentTouchEnd"]);t(r,function(n){i["_"+n[2]]=function(t){i[n[2]](t)};n[1].indexOf("on")===0?n[0][n[1]]=i["_"+n[2]]:k(n[0],n[1],i["_"+n[2]])})},destroy:function(){var n=this;t(n._events,function(t){t[1].indexOf("on")===0?t[0][t[1]]=null:at(t[0],t[1],n["_"+t[2]])});delete n._events;clearInterval(n.tooltipTimeout)}};lu.prototype={init:function(t,i){var r=this,u=i.itemStyle,f=n(i.padding,8),e=i.itemMarginTop||0;this.options=i;i.enabled&&(r.baseline=s(u.fontSize)+3+e,r.itemStyle=u,r.itemHiddenStyle=o(u,i.itemHiddenStyle),r.itemMarginTop=e,r.padding=f,r.initialItemX=f,r.initialItemY=f-5,r.maxItemWidth=0,r.chart=t,r.itemHeight=0,r.lastLineHeight=0,r.render(),k(r.chart,"endResize",function(){r.positionCheckboxes()}))},colorizeItem:function(n,t){var u=this.options,r=n.legendItem,s=n.legendLine,h=n.legendSymbol,i=this.itemHiddenStyle.color,u=t?u.itemStyle.color:i,e=t?n.color:i,i=n.options&&n.options.marker,c={stroke:e,fill:e},o;if(r&&r.css({fill:u,color:u}),s&&s.attr({stroke:e}),h){if(i)for(o in i=n.convertAttribs(i),i)r=i[o],r!==f&&(c[o]=r);h.attr(c)}},positionItem:function(n){var i=this.options,f=i.symbolPadding,i=!i.rtl,t=n._legendItemPos,r=t[0],t=t[1],u=n.checkbox;n.legendGroup&&n.legendGroup.translate(i?r:this.legendWidth-r-2*f-4,t);u&&(u.x=r,u.y=t)},destroyItem:function(n){var i=n.checkbox;t(["legendItem","legendLine","legendSymbol","legendGroup"],function(t){n[t]&&n[t].destroy()});i&&sr(n.checkbox)},destroy:function(){var n=this.group,t=this.box;t&&(this.box=t.destroy());n&&(this.group=n.destroy())},positionCheckboxes:function(n){var r=this.group.alignAttr,i,u=this.clipHeight||this.legendHeight;r&&(i=r.translateY,t(this.allItems,function(t){var f=t.checkbox,e;f&&(e=i+f.y+(n||0)+3,p(f,{left:r.translateX+t.legendItemWidth+f.x-20+"px",top:e+"px",display:e>i-6&&e(nt||h.chartWidth-2*d-s)&&(t.itemX=s,t.itemY+=y+t.lastLineHeight+v,t.lastLineHeight=0);t.maxItemWidth=i(t.maxItemWidth,r);t.lastItemY=y+t.itemY+v;t.lastLineHeight=i(u,t.lastLineHeight);n._legendItemPos=[t.itemX,t.itemY];c?t.itemX+=r:(t.itemY+=y+u+v,t.lastLineHeight=u);t.offsetWidth=nt||i(c?t.itemX-s:r,t.offsetWidth)},render:function(){var n=this,l=n.chart,h=l.renderer,c=n.group,i,a,s,u,f=n.box,o=n.options,y=n.padding,v=o.borderWidth,p=o.backgroundColor;n.itemX=n.initialItemX;n.itemY=n.initialItemY;n.offsetWidth=0;n.lastItemY=0;c||(n.group=c=h.g("legend").attr({zIndex:7}).add(),n.contentGroup=h.g().attr({zIndex:1}).add(c),n.scrollGroup=h.g().add(n.contentGroup),n.clipRect=h.clipRect(0,0,9999,l.chartHeight),n.contentGroup.clip(n.clipRect));n.renderTitle();i=[];t(l.series,function(n){var t=n.options;t.showInLegend&&!r(t.linkedTo)&&(i=i.concat(n.legendItems||(t.legendType==="point"?n.data:n)))});uf(i,function(n,t){return(n.options&&n.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)});o.reversed&&i.reverse();n.allItems=i;n.display=a=!!i.length;t(i,function(t){n.renderItem(t)});s=o.width||n.offsetWidth;u=n.lastItemY+n.lastLineHeight+n.titleHeight;u=n.handleOverflow(u);(v||p)&&(s+=y,u+=y,f?s>0&&u>0&&(f[f.isNew?"attr":"animate"](f.crisp(null,null,null,s,u)),f.isNew=!1):(n.box=f=h.rect(0,0,s,u,o.borderRadius,v||0).attr({stroke:o.borderColor,"stroke-width":v||0,fill:p||rt}).add(c).shadow(o.shadow),f.isNew=!0),f[a?"show":"hide"]());n.legendWidth=s;n.legendHeight=u;t(i,function(t){n.positionItem(t)});a&&c.align(e({width:s,height:u},o),!0,"spacingBox");l.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var s=this,u=this.chart,e=u.renderer,f=this.options,i=f.y,i=u.spacingBox.height+(f.verticalAlign==="top"?-i:i)-this.padding,c=f.maxHeight,l=this.clipRect,h=f.navigation,a=n(h.animation,!0),o=h.arrowSize||12,r=this.nav;return f.layout==="horizontal"&&(i/=2),c&&(i=v(i,c)),t>i&&!f.useHTML?(this.clipHeight=u=i-20-this.titleHeight,this.pageCount=gt(t/u),this.currentPage=n(this.currentPage,1),this.fullHeight=t,l.attr({height:u}),r||(this.nav=r=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,o,o).on("click",function(){s.scroll(-1,a)}).add(r),this.pager=e.text("",15,10).css(h.style).add(r),this.down=e.symbol("triangle-down",0,0,o,o).on("click",function(){s.scroll(1,a)}).add(r)),s.scroll(0),t=i):r&&(l.attr({height:u.chartHeight}),r.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(n,t){var u=this.pageCount,i=this.currentPage+n,r=this.clipHeight,e=this.options.navigation,o=e.activeColor,s=e.inactiveColor,e=this.pager,h=this.padding;i>u&&(i=u);i>0&&(t!==f&&ir(t,this.chart),this.nav.attr({translateX:h,translateY:r+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:i===1?s:o}).css({cursor:i===1?"default":"pointer"}),e.attr({text:i+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:i===u?s:o}).css({cursor:i===u?"default":"pointer"}),r=-v(r*(i-1),this.fullHeight-r+h)+1,this.scrollGroup.animate({translateY:r}),e.attr({text:i+"/"+u}),this.currentPage=i,this.positionCheckboxes(r))}};au.prototype={init:function(t,i){var e,f=t.series,u,s;t.series=null;e=o(nt,t);e.series=t.series=f;var f=e.chart,r=f.margin,r=ot(r)?r:[r,r,r,r];if(this.optionsMarginTop=n(f.marginTop,r[0]),this.optionsMarginRight=n(f.marginRight,r[1]),this.optionsMarginBottom=n(f.marginBottom,r[2]),this.optionsMarginLeft=n(f.marginLeft,r[3]),this.runChartClick=(r=f.events)&&!!r.click,this.bounds={h:{},v:{}},this.callback=i,this.isResizing=0,this.options=e,this.axes=[],this.series=[],this.hasCartesianSeries=f.showAxes,u=this,u.index=pi.length,pi.push(u),f.reflow!==!1&&k(u,"load",function(){u.initReflow()}),r)for(s in r)k(u,s,r[s]);u.xAxis=[];u.yAxis=[];u.animation=ct?!1:n(f.animation,!0);u.pointCount=0;u.counters=new rf;u.firstRender()},initSeries:function(n){var t=this.options.chart;return(t=lt[n.type||t.type||t.defaultSeriesType])||fi(17,!0),t=new t,t.init(this,n),t},addSeries:function(t,i,r){var f,u=this;return t&&(i=n(i,!0),a(u,"addSeries",{options:t},function(){f=u.initSeries(t);u.isDirtyLegend=!0;i&&u.redraw(r)})),f},addAxis:function(t,i,r,u){var i=i?"xAxis":"yAxis",f=this.options;new yr(this,o(t,{index:this[i].length}));f[i]=kt(f[i]||{});f[i].push(t);n(r,!0)&&this.redraw(u)},isInsidePlot:function(n,t,i){var r=i?t:n,n=i?n:t;return r>=0&&r<=this.plotWidth&&n>=0&&n<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&t(this.axes,function(n){n.adjustTickAmount()});this.maxTicks=null},redraw:function(n){var o=this.axes,i=this.series,u=this.pointer,s=this.legend,h=this.isDirtyLegend,f,e=this.isDirtyBox,c=i.length,r=c,l=this.renderer,v=l.isHidden(),y=[];for(ir(n,this),v&&this.cloneRenderTo();r--;)if(n=i[r],n.isDirty&&n.options.stacking){f=!0;break}if(f)for(r=c;r--;)(n=i[r],n.options.stacking)&&(n.isDirty=!0);t(i,function(n){n.isDirty&&n.options.legendType==="point"&&(h=!0)});h&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1);this.hasCartesianSeries&&(this.isResizing||(this.maxTicks=null,t(o,function(n){n.setScale()})),this.adjustTickAmounts(),this.getMargins(),t(o,function(n){n.isDirtyExtremes&&(n.isDirtyExtremes=!1,y.push(function(){a(n,"afterSetExtremes",n.getExtremes())}));(n.isDirty||e||f)&&(n.redraw(),e=!0)}));e&&this.drawChartBox();t(i,function(n){n.isDirty&&n.visible&&(!n.isCartesian||n.xAxis)&&n.redraw()});u&&u.reset&&u.reset(!0);l.draw();a(this,"redraw");v&&this.cloneRenderTo(!0);t(y,function(n){n.call()})},showLoading:function(n){var r=this.options,t=this.loadingDiv,i=r.loading;t||(this.loadingDiv=t=ut(wi,{className:"highcharts-loading"},e(i.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:rt}),this.container),this.loadingSpan=ut("span",null,i.labelStyle,t));this.loadingSpan.innerHTML=n||r.lang.loading;this.loadingShown||(p(t,{opacity:0,display:""}),gu(t,{opacity:i.style.opacity},{duration:i.showDuration||0}),this.loadingShown=!0)},hideLoading:function(){var t=this.options,n=this.loadingDiv;n&&gu(n,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){p(n,{display:rt})}});this.loadingShown=!1},get:function(n){for(var i=this.axes,r=this.series,u,t=0;tv(e.dataMin,e.min)&&u19?this.containerHeight:400))},cloneRenderTo:function(n){var t=this.renderToClone,i=this.container;n?t&&(this.renderTo.appendChild(i),sr(t),delete this.renderToClone):(i&&this.renderTo.removeChild(i),this.renderToClone=t=this.renderTo.cloneNode(0),p(t,{position:"absolute",top:"-9999px",display:"block"}),c.body.appendChild(t),i&&t.appendChild(i))},getContainer:function(){var n,i=this.options.chart,t,r,u;this.renderTo=n=i.renderTo;u="highcharts-"+vu++;wt(n)&&(this.renderTo=n=c.getElementById(n));n||fi(13,!0);t=s(h(n,"data-highcharts-chart"));!isNaN(t)&&pi[t]&&pi[t].destroy();h(n,"data-highcharts-chart",this.index);n.innerHTML="";n.offsetWidth||this.cloneRenderTo();this.getChartSize();t=this.chartWidth;r=this.chartHeight;this.container=n=ut(wi,{className:"highcharts-container"+(i.className?" "+i.className:""),id:u},e({position:"relative",overflow:"hidden",width:t+"px",height:r+"px",textAlign:"left",lineHeight:"normal",zIndex:0},i.style),this.renderToClone||n);this.renderer=i.forExport?new ci(n,t,r,!0):new hr(n,t,r);ct&&this.renderer.create(this,n,t,r)},getMargins:function(){var f=this.options.chart,l=f.spacingTop,g=f.spacingRight,nt=f.spacingBottom,f=f.spacingLeft,e,o=this.legend,a=this.optionsMarginTop,v=this.optionsMarginLeft,y=this.optionsMarginRight,p=this.optionsMarginBottom,h=this.options.title,s=this.options.subtitle,u=this.options.legend,c=n(u.margin,10),w=u.x,b=u.y,k=u.align,d=u.verticalAlign;this.resetMargins();e=this.axisOffset;(this.title||this.subtitle)&&!r(this.optionsMarginTop)&&(s=i(this.title&&!h.floating&&!h.verticalAlign&&h.y||0,this.subtitle&&!s.floating&&!s.verticalAlign&&s.y||0))&&(this.plotTop=i(this.plotTop,s+n(h.margin,15)+l));o.display&&!u.floating&&(k==="right"?r(y)||(this.marginRight=i(this.marginRight,o.legendWidth-w+c+g)):k==="left"?r(v)||(this.plotLeft=i(this.plotLeft,o.legendWidth+w+c+f)):d==="top"?r(a)||(this.plotTop=i(this.plotTop,o.legendHeight+b+c+l)):d!=="bottom"||r(p)||(this.marginBottom=i(this.marginBottom,o.legendHeight-b+c+nt)));this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&t(this.axes,function(n){n.getOffset()});r(v)||(this.plotLeft+=e[3]);r(a)||(this.plotTop+=e[0]);r(p)||(this.marginBottom+=e[2]);r(y)||(this.marginRight+=e[1]);this.setChartSize()},initReflow:function(){function t(t){var f=i.width||eu(r,"width"),e=i.height||eu(r,"height"),t=t?t.target:g;!n.hasUserSize&&f&&e&&(t===g||t===c)&&((f!==n.containerWidth||e!==n.containerHeight)&&(clearTimeout(u),n.reflowTimeout=u=setTimeout(function(){n.container&&(n.setSize(f,e,!1),n.hasUserSize=null)},100)),n.containerWidth=f,n.containerHeight=e)}var n=this,i=n.options.chart,r=n.renderTo,u;k(g,"resize",t);k(n,"destroy",function(){at(g,"resize",t)})},setSize:function(n,f,e){var o=this,s,h,c;o.isResizing+=1;c=function(){o&&a(o,"endResize",null,function(){o.isResizing-=1})};ir(e,o);o.oldChartHeight=o.chartHeight;o.oldChartWidth=o.chartWidth;r(n)&&(o.chartWidth=s=i(0,u(n)),o.hasUserSize=!!s);r(f)&&(o.chartHeight=h=i(0,u(f)));p(o.container,{width:s+"px",height:h+"px"});o.setChartSize(!0);o.renderer.setSize(s,h,e);o.maxTicks=null;t(o.axes,function(n){n.isDirty=!0;n.setScale()});t(o.series,function(n){n.isDirty=!0});o.isDirtyLegend=!0;o.isDirtyBox=!0;o.getMargins();o.redraw(e);o.oldChartHeight=null;a(o,"resize");yi===!1?c():setTimeout(c,yi&&yi.duration||500)},setChartSize:function(n){var r=this.inverted,f=this.renderer,e=this.chartWidth,v=this.chartHeight,o=this.options.chart,y=o.spacingTop,w=o.spacingRight,b=o.spacingBottom,p=o.spacingLeft,s=this.clipOffset,l,a,h,c;this.plotLeft=l=u(this.plotLeft);this.plotTop=a=u(this.plotTop);this.plotWidth=h=i(0,u(e-l-this.marginRight));this.plotHeight=c=i(0,u(v-a-this.marginBottom));this.plotSizeX=r?c:h;this.plotSizeY=r?h:c;this.plotBorderWidth=r=o.plotBorderWidth||0;this.spacingBox=f.spacingBox={x:p,y:y,width:e-p-w,height:v-y-b};this.plotBox=f.plotBox={x:l,y:a,width:h,height:c};f=gt(i(r,s[3])/2);e=gt(i(r,s[0])/2);this.clipBox={x:f,y:e,width:it(this.plotSizeX-i(r,s[1])/2-f),height:it(this.plotSizeY-i(r,s[2])/2-e)};n||t(this.axes,function(n){n.setAxisSize();n.setAxisTranslation()})},resetMargins:function(){var t=this.options.chart,i=t.spacingRight,r=t.spacingBottom,u=t.spacingLeft;this.plotTop=n(this.optionsMarginTop,t.spacingTop);this.marginRight=n(this.optionsMarginRight,i);this.marginBottom=n(this.optionsMarginBottom,r);this.plotLeft=n(this.optionsMarginLeft,u);this.axisOffset=[0,0,0,0];this.clipOffset=[0,0,0,0]},drawChartBox:function(){var n=this.options.chart,r=this.renderer,a=this.chartWidth,v=this.chartHeight,t=this.chartBackground,y=this.plotBackground,h=this.plotBorder,p=this.plotBGImage,u=n.borderWidth||0,w=n.backgroundColor,b=n.plotBackgroundColor,k=n.plotBackgroundImage,c=n.plotBorderWidth||0,i,f=this.plotLeft,e=this.plotTop,o=this.plotWidth,s=this.plotHeight,d=this.plotBox,g=this.clipRect,l=this.clipBox;i=u+(n.shadow?8:0);(u||w)&&(t?t.animate(t.crisp(null,null,null,a-i,v-i)):(t={fill:w||rt},u&&(t.stroke=n.borderColor,t["stroke-width"]=u),this.chartBackground=r.rect(i/2,i/2,a-i,v-i,n.borderRadius,u).attr(t).add().shadow(n.shadow)));b&&(y?y.animate(d):this.plotBackground=r.rect(f,e,o,s,0).attr({fill:b}).add().shadow(n.plotShadow));k&&(p?p.animate(d):this.plotBGImage=r.image(k,f,e,o,s).add());g?g.animate({width:l.width,height:l.height}):this.clipRect=r.clipRect(l);c&&(h?h.animate(h.crisp(null,f,e,o,s)):this.plotBorder=r.rect(f,e,o,s,0,c).attr({stroke:n.plotBorderColor,"stroke-width":c,zIndex:1}).add());this.isDirtyBox=!1},propFromSeries:function(){var i=this,u=i.options.chart,n,f=i.options.series,e,r;t(["inverted","angular","polar"],function(t){for(n=lt[u.type||u.defaultSeriesType],r=i[t]||u[t]||n&&n.prototype[t],e=f&&f.length;!r&&e--;)(n=lt[f[e].type])&&n.prototype[t]&&(r=!0);i[t]=r})},render:function(){var n=this,r=n.axes,u=n.renderer,f=n.options,o=f.labels,i=f.credits,h;n.setTitle();n.legend=new lu(n,f.legend);t(r,function(n){n.setScale()});n.getMargins();n.maxTicks=null;t(r,function(n){n.setTickPositions(!0);n.setMaxTicks()});n.adjustTickAmounts();n.getMargins();n.drawChartBox();n.hasCartesianSeries&&t(r,function(n){n.render()});n.seriesGroup||(n.seriesGroup=u.g("series-group").attr({zIndex:3}).add());t(n.series,function(n){n.translate();n.setTooltipPoints();n.render()});o.items&&t(o.items,function(t){var i=e(o.style,t.style),r=s(i.left)+n.plotLeft,f=s(i.top)+n.plotTop+12;delete i.left;delete i.top;u.text(t.html,r,f).attr({zIndex:2}).css(i).add()});i.enabled&&!n.credits&&(h=i.href,n.credits=u.text(i.text,0,0).on("click",function(){h&&(location.href=h)}).attr({align:i.position.align,zIndex:8}).css(i.style).add().align(i.position));n.hasRendered=!0},destroy:function(){var n=this,u=n.axes,e=n.series,r=n.container,i,o=r&&r.parentNode;for(a(n,"destroy"),pi[n.index]=f,n.renderTo.removeAttribute("data-highcharts-chart"),at(n),i=u.length;i--;)u[i]=u[i].destroy();for(i=e.length;i--;)e[i]=e[i].destroy();t("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=n[t];i&&i.destroy&&(n[t]=i.destroy())});r&&(r.innerHTML="",at(r),o&&sr(r));for(i in n)delete n[i]},isReadyToRender:function(){var n=this;return!ht&&g==g.top&&c.readyState!=="complete"||ct&&!g.canvg?(ct?df.push(function(){n.firstRender()},n.options.global.canvasToolsURL):c.attachEvent("onreadystatechange",function(){c.detachEvent("onreadystatechange",n.firstRender);c.readyState==="complete"&&n.firstRender()}),!1):!0},firstRender:function(){var n=this,i=n.options,r=n.callback;n.isReadyToRender()&&(n.getContainer(),a(n,"init"),n.resetMargins(),n.setChartSize(),n.propFromSeries(),n.getAxes(),t(i.series||[],function(t){n.initSeries(t)}),a(n,"beforeRender"),n.pointer=new cu(n,i),n.render(),n.renderer.draw(),r&&r.apply(n,[n]),t(n.callbacks,function(t){t.apply(n,[n])}),n.cloneRenderTo(!0),a(n,"load"))}};au.prototype.callbacks=[];ki=function(){};ki.prototype={init:function(n,t,i){return this.series=n,this.applyOptions(t,i),this.pointAttr={},n.options.colorByPoint&&(t=n.options.colors||n.chart.options.colors,this.color=this.color||t[n.colorCounter++],n.colorCounter===t.length)&&(n.colorCounter=0),n.chart.pointCount++,this},applyOptions:function(n,t){var i=this.series,r=i.pointValKey,n=ki.prototype.optionsToObject.call(this,n);return e(this,n),this.options=this.options?e(this.options,n):n,r&&(this.y=this[r]),this.x===f&&i&&(this.x=t===f?i.autoIncrement():t),this},optionsToObject:function(n){var t,i=this.series,r=i.pointArrayMap||["y"],u=r.length,f=0,e=0;if(typeof n=="number"||n===null)t={y:n};else if(di(n))for(t={},n.length>u&&(i=typeof n[0],i==="string"?t.name=n[0]:i==="number"&&(t.x=n[0]),f++);ei+1&&r.push(n.slice(i+1,u)),i=u):u===f-1&&r.push(n.slice(i+1,u+1))});this.segments=r},setOptions:function(n){var t=this.chart.options,i=t.plotOptions,r=i[this.type];return this.userOptions=n,n=o(r,i.series,n),this.tooltipOptions=o(t.tooltip,n.tooltip),r.marker===null&&delete n.marker,n},getColor:function(){var n=this.options,i=this.userOptions,f=this.chart.options.colors,u=this.chart.counters,t;t=n.color||et[this.type].color;t||n.colorByPoint||(r(i._colorIndex)?n=i._colorIndex:(i._colorIndex=u.color,n=u.color++),t=f[n]);this.color=t;u.wrapColor(f.length)},getSymbol:function(){var n=this.userOptions,i=this.options.marker,t=this.chart,u=t.options.symbols,t=t.counters;this.symbol=i.symbol;this.symbol||(r(n._symbolIndex)?n=n._symbolIndex:(n._symbolIndex=t.symbol,n=t.symbol++),this.symbol=u[n]);/^url/.test(this.symbol)&&(i.radius=0);t.wrapSymbol(u.length)},drawLegendSymbol:function(n){var t=this.options,i=t.marker,u=n.options.symbolWidth,f=this.chart.renderer,e=this.legendGroup,n=n.baseline,r;t.lineWidth&&(r={"stroke-width":t.lineWidth},t.dashStyle&&(r.dashstyle=t.dashStyle),this.legendLine=f.path(["M",0,n-4,"L",u,n-4]).attr(r).add(e));i&&i.enabled&&(t=i.radius,this.legendSymbol=f.symbol(this.symbol,u/2-t,n-4-t,2*t,2*t).add(e))},addPoint:function(t,i,r,u){var s=this.options,f=this.data,e=this.graph,o=this.area,h=this.chart,c=this.xData,l=this.yData,a=this.zData,v=this.names,y=e&&e.shift||0,p=s.data;ir(u,h);e&&r&&(e.shift=y+1);o&&(r&&(o.shift=y+1),o.isArea=!0);i=n(i,!0);u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);c.push(u.x);l.push(this.toYData?this.toYData(u):u.y);a.push(u.z);v&&(v[u.x]=u.name);p.push(t);s.legendType==="point"&&this.generatePoints();r&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),c.shift(),l.shift(),a.shift(),p.shift()));this.getAttribs();this.isDirtyData=this.isDirty=!0;i&&h.redraw()},setData:function(t,i){var l=this.points,u=this.options,v=this.chart,e=null,o=this.xAxis,a=o&&o.categories&&!o.categories.length?[]:null,r;this.xIncrement=null;this.pointRange=o&&o.categories?1:u.pointRange;this.colorCounter=0;var s=[],h=[],y=[],c=t?t.length:[],p=(r=this.pointArrayMap)&&r.length,w=!!this.toYData;if(c>(u.turboThreshold||1e3)){for(r=0;e===null&&r1&&s[1]e||this.forceCrop))if(n=u.getExtremes(),u=n.min,e=n.max,t[r-1]e)t=[],s=[];else if(t[0]e){for(n=0;n=u){h=i(0,n-1);break}for(;ne){c=n+1;break}t=t.slice(h,c);s=s.slice(h,c);l=!0}for(n=t.length-1;n>0;n--)(r=t[n]-t[n-1],r>0&&(o===f||r=0&&u<=e;)h[u++]=o;this.tooltipPoints=h}},tooltipHeaderFormatter:function(n){var i=this.tooltipOptions,t=i.xDateFormat,r=this.xAxis,e=r&&r.options.type==="datetime",u=i.headerFormat,f;if(e&&!t)for(f in l)if(l[f]>=r.closestPointRange){t=i.dateTimeLabelFormats[f];break}return e&&t&&li(n.key)&&(u=u.replace("{point.key}","{point.key:"+t+"}")),gi(u,{point:n,series:this})},onMouseOver:function(){var t=this.chart,n=t.hoverSeries;n&&n!==this&&n.onMouseOut();this.options.events.mouseOver&&a(this,"mouseOver");this.setState("hover");t.hoverSeries=this},onMouseOut:function(){var i=this.options,n=this.chart,t=n.tooltip,r=n.hoverPoint;r&&r.onMouseOut();this&&i.events.mouseOut&&a(this,"mouseOut");t&&!i.stickyTracking&&(!t.shared||this.noSharedTooltip)&&t.hide();this.setState();n.hoverSeries=null},animate:function(n){var r=this,t=r.chart,o=t.renderer,i,s,f,u;i=r.options.animation;s=t.clipBox;f=t.inverted;i&&!ot(i)&&(i=et[r.type].animation);u="_sharedClip"+i.duration+i.easing;n?(n=t[u],i=t[u+"m"],n||(t[u]=n=o.clipRect(e(s,{width:0})),t[u+"m"]=i=o.clipRect(-99,f?-t.plotLeft:-t.plotTop,99,f?t.chartWidth:t.chartHeight)),r.group.clip(n),r.markerGroup.clip(i),r.sharedClipKey=u):((n=t[u])&&(n.animate({width:t.plotSizeX},i),t[u+"m"].animate({width:t.plotSizeX+99},i)),r.animate=null,r.animationTimeout=setTimeout(function(){r.afterAnimate()},i.duration))},afterAnimate:function(){var n=this.chart,t=this.sharedClipKey,i=this.group;i&&this.options.clip!==!1&&(i.clip(n.clipRect),this.markerGroup.clip());setTimeout(function(){t&&n[t]&&(n[t]=n[t].destroy(),n[t+"m"]=n[t+"m"].destroy())},100)},drawPoints:function(){var s,v=this.points,c=this.chart,h,u,l,t,i,r,y,o,p=this.options.marker,a,w=this.markerGroup;if(p.enabled||this._hasPointMarkers)for(l=v.length;l--;)(t=v[l],h=t.plotX,u=t.plotY,o=t.graphic,r=t.marker||{},s=p.enabled&&r.enabled===f||r.enabled,a=c.isInsidePlot(h,u,c.inverted),s&&u!==f&&!isNaN(u)&&t.y!==null)?(s=t.pointAttr[t.selected?"select":""],i=s.r,r=n(r.symbol,this.symbol),y=r.indexOf("url")===0,o)?o.attr({visibility:a?ht?"inherit":"visible":"hidden"}).animate(e({x:h-i,y:u-i},o.symbolName?{width:2*i,height:2*i}:{})):a&&(i>0||y)&&(t.graphic=c.renderer.symbol(r,h-i,u-i,2*i,2*i).attr(s).add(w)):o&&(t.graphic=o.destroy())},convertAttribs:function(t,i,r,u){var e=this.pointAttrToOptions,f,o,s={},t=t||{},i=i||{},r=r||{},u=u||{};for(f in e)o=e[f],s[f]=n(t[o],i[f],r[f],u[f]);return s},getAttribs:function(){var i=this,h=i.options,u=et[i.type].marker?h.marker:h,c=u.states,o=c.hover,l,a=i.color,n={stroke:a,fill:a},v=i.points||[],s=[],f,y=i.pointAttrToOptions,p=h.negativeColor,w;for(h.marker?(o.radius=o.radius||u.radius+2,o.lineWidth=o.lineWidth||u.lineWidth+1):o.color=o.color||ni(o.color||a).brighten(o.brightness).get(),s[""]=i.convertAttribs(u,n),t(["hover","select"],function(n){s[n]=i.convertAttribs(c[n],s[""])}),i.pointAttr=s,a=v.length;a--;){if(n=v[a],(u=n.options&&n.options.marker||n.options)&&u.enabled===!1&&(u.radius=0),n.negative&&(n.color=n.fillColor=p),l=h.colorByPoint||n.color,n.options)for(w in y)r(u[y[w]])&&(l=!0);l?(u=u||{},f=[],c=u.states||{},l=c.hover=c.hover||{},h.marker||(l.color=ni(l.color||n.color).brighten(l.brightness||o.brightness).get()),f[""]=i.convertAttribs(e({color:n.color},u),s[""]),f.hover=i.convertAttribs(c.hover,s.hover,f[""]),f.select=i.convertAttribs(c.select,s.select,f[""]),n.negative&&h.marker&&(f[""].fill=f.hover.fill=f.select.fill=i.convertAttribs({fillColor:p}).fill)):f=s;n.pointAttr=f}},update:function(t,i){var r=this.chart,u=this.type,t=o(this.userOptions,{animation:!1,index:this.index,pointStart:this.xData[0]},t);this.remove(!1);e(this,lt[t.type||u].prototype);this.init(r,t);n(i,!0)&&r.redraw(!1)},destroy:function(){var n=this,r=n.chart,h=/AppleWebKit\/533/.test(vi),e,u,o=n.data||[],f,s,i;for(a(n,"destroy"),at(n),t(["xAxis","yAxis"],function(t){(i=n[t])&&(bt(i.series,n),i.isDirty=i.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),u=o.length;u--;)(f=o[u])&&f.destroy&&f.destroy();n.points=null;clearTimeout(n.animationTimeout);t("area,graph,dataLabelsGroup,group,markerGroup,tracker,graphNeg,areaNeg,posClip,negClip".split(","),function(t){n[t]&&(e=h&&t==="group"?"hide":"destroy",n[t][e]())});r.hoverSeries===n&&(r.hoverSeries=null);bt(r.series,n);for(s in n)delete n[s]},drawDataLabels:function(){var u=this,i=u.options.dataLabels,l=u.points,s,h,e,c;(i.enabled||u._hasPointLabels)&&(u.dlProcessOptions&&u.dlProcessOptions(i),c=u.plotGroup("dataLabelsGroup","data-labels",u.visible?"visible":"hidden",i.zIndex||6),h=i,t(l,function(t){var a,l=t.dataLabel,v,y,p=t.connector,w=!0;if(s=t.options&&t.options.dataLabels,a=h.enabled||s&&s.enabled,l&&!a)t.dataLabel=l.destroy();else if(a){if(a=i.rotation,i=o(h,s),v=t.getLabelConfig(),e=i.format?gi(i.format,v):i.formatter.call(v,i),i.style.color=n(i.color,i.style.color,u.color,"black"),l)r(e)?(l.attr({text:e}),w=!1):(t.dataLabel=l=l.destroy(),p)&&(t.connector=p.destroy());else if(r(e)){l={fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.borderWidth,r:i.borderRadius||0,rotation:a,padding:i.padding,zIndex:1};for(y in l)l[y]===f&&delete l[y];l=t.dataLabel=u.chart.renderer[a?"text":"label"](e,0,-999,null,null,null,i.useHTML).attr(l).css(i.style).add(c).shadow(i.shadow)}l&&u.alignDataLabel(t,l,i,null,w)}}))},alignDataLabel:function(t,i,r,f,o){var s=this.chart,h=s.inverted,c=n(t.plotX,-999),t=n(t.plotY,-999),l=i.getBBox(),f=e({x:h?s.plotWidth-t:c,y:u(h?s.plotHeight-c:t),width:0,height:0},f);e(r,{width:l.width,height:l.height});r.rotation?(f={align:r.align,x:f.x+r.x+f.width/2,y:f.y+r.y+f.height/2},i[o?"attr":"animate"](f)):i.align(r,null,f);i.attr({visibility:r.crop===!1||s.isInsidePlot(c,t,h)?s.renderer.isSVG?"inherit":"visible":"hidden"})},getSegmentPath:function(n){var r=this,i=[],u=r.options.step;return t(n,function(t,f){var o=t.plotX,s=t.plotY,e;r.getPointSpline?i.push.apply(i,r.getPointSpline(n,t,f)):(i.push(f?"L":"M"),u&&f&&(e=n[f-1],u==="right"?i.push(e.plotX,s):u==="center"?i.push((e.plotX+o)/2,e.plotY,(e.plotX+o)/2,s):i.push(o,e.plotY)),i.push(t.plotX,t.plotY))}),i},getGraphPath:function(){var n=this,i=[],r,u=[];return t(n.segments,function(t){r=n.getSegmentPath(t);t.length>1?i=i.concat(r):u.push(t[0])}),n.singlePoints=u,n.graphPath=i},drawGraph:function(){var i=this,n=this.options,u=[["graph",n.lineColor||this.color]],f=n.lineWidth,e=n.dashStyle,r=this.getGraphPath(),o=n.negativeColor;o&&u.push(["graphNeg",o]);t(u,function(t,u){var s=t[0],o=i[s];o?(vr(o),o.animate({d:r})):f&&r.length&&(o={stroke:t[1],"stroke-width":f,zIndex:1},e&&(o.dashstyle=e),i[s]=i.chart.renderer.path(r).attr(o).add(i.group).shadow(!u&&n.shadow))})},clipNeg:function(){var f=this.options,n=this.chart,s=n.renderer,r=f.negativeColor,t,e=this.posClip,o=this.negClip,h,u;t=n.chartWidth;h=n.chartHeight;u=i(t,h);r&&this.graph&&(r=gt(this.yAxis.len-this.yAxis.translate(f.threshold||0)),f={x:0,y:0,width:u,height:r},u={x:0,y:r,width:u,height:u-r},n.inverted&&s.isVML&&(f={x:n.plotWidth-r-n.plotLeft,y:0,width:t,height:h},u={x:r+n.plotLeft-t,y:0,width:n.plotLeft+r,height:t}),this.yAxis.reversed?(n=u,t=f):(n=f,t=u),e?(e.animate(n),o.animate(t)):(this.posClip=e=s.clipRect(n),this.graph.clip(e),this.negClip=o=s.clipRect(t),this.graphNeg.clip(o),this.area&&(this.area.clip(e),this.areaNeg.clip(o))))},invertGroups:function(){function i(){var i={width:n.yAxis.len,height:n.xAxis.len};t(["group","markerGroup"],function(t){n[t]&&n[t].attr(i).invert()})}var n=this,r=n.chart;k(r,"resize",i);k(n,"destroy",function(){at(r,"resize",i)});i();n.invertGroups=i},plotGroup:function(n,t,i,r,u){var f=this[n],o=!f,e=this.chart,s=this.xAxis,h=this.yAxis;return o&&(this[n]=f=e.renderer.g(t).attr({visibility:i,zIndex:r||.1}).add(u)),f[o?"attr":"animate"]({translateX:s?s.left:e.plotLeft,translateY:h?h.top:e.plotTop}),f},render:function(){var n=this.chart,t,i=this.options,r=i.animation&&!!this.animate&&n.renderer.isSVG,u=this.visible?"visible":"hidden",f=i.zIndex,e=this.hasRendered,o=n.seriesGroup;t=this.plotGroup("group","series",u,f,o);this.markerGroup=this.plotGroup("markerGroup","markers",u,f,o);r&&this.animate(!0);this.getAttribs();t.inverted=n.inverted;this.drawGraph&&(this.drawGraph(),this.clipNeg());this.drawDataLabels();this.drawPoints();this.options.enableMouseTracking!==!1&&this.drawTracker();n.inverted&&this.invertGroups();i.clip===!1||this.sharedClipKey||e||t.clip(n.clipRect);r?this.animate():e||this.afterAnimate();this.isDirty=this.isDirtyData=!1;this.hasRendered=!0},redraw:function(){var t=this.chart,f=this.isDirtyData,i=this.group,r=this.xAxis,u=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:n(r&&r.left,t.plotLeft),translateY:n(u&&u.top,t.plotTop)}));this.translate();this.setTooltipPoints(!0);this.render();f&&a(this,"updatedData")},setState:function(n){var t=this.options,i=this.graph,u=this.graphNeg,r=t.states,t=t.lineWidth,n=n||"";this.state!==n&&(this.state=n,r[n]&&r[n].enabled===!1||(n&&(t=r[n].lineWidth||t+1),i&&!i.dashstyle&&(n={"stroke-width":t},i.attr(n),u&&u.attr(n))))},setVisible:function(n,i){var r=this,u=r.chart,o=r.legendItem,e,s=u.options.chart.ignoreHiddenSeries,h=r.visible;e=(r.visible=n=r.userOptions.visible=n===f?!h:n)?"show":"hide";t(["group","dataLabelsGroup","markerGroup","tracker"],function(n){r[n]&&r[n][e]()});u.hoverSeries===r&&r.onMouseOut();o&&u.legend.colorizeItem(r,n);r.isDirty=!0;r.options.stacking&&t(u.series,function(n){n.options.stacking&&n.visible&&(n.isDirty=!0)});t(r.linkedSeries,function(t){t.setVisible(n,!1)});s&&(u.isDirtyBox=!0);i!==!1&&u.redraw();a(r,e)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(n){this.selected=n=n===f?!this.selected:n;this.checkbox&&(this.checkbox.checked=n);a(this,n?"select":"unselect")},drawTracker:function(){var i=this,s=i.options,f=s.trackByArea,t=[].concat(f?i.areaPath:i.graphPath),r=t.length,e=i.chart,a=e.pointer,v=e.renderer,u=e.options.tooltip.snap,o=i.tracker,h=s.cursor,h=h&&{cursor:h},c=i.singlePoints,n,l=function(){e.hoverSeries!==i&&i.onMouseOver()};if(r&&!f)for(n=r+1;n--;)t[n]==="M"&&t.splice(n+1,0,t[n+1]-u,t[n+2],"L"),(n&&t[n]==="M"||n===r)&&t.splice(n,0,"L",t[n-2]+u,t[n-1]);for(n=0;n=0;t--)tn&&e>u?(e=i(n,u),f=2*u-e):es&&f>u?(f=i(s,u),e=2*u-f):ff?w-f:o-(e.translate(t.y,0,1,0,1)<=o?f:0));t.barX=d;t.pointWidth=h;t.shapeType="rect";t.shapeArgs=t=a.renderer.Element.prototype.crisp.call(0,s,d,p,c,u);s%2&&(t.y-=1,t.height+=1)})},getSymbol:si,drawLegendSymbol:y.prototype.drawLegendSymbol,drawGraph:si,drawPoints:function(){var n=this,i=n.options,u=n.chart.renderer,r;t(n.points,function(t){var s=t.plotY,e=t.graphic;s===f||isNaN(s)||t.y===null?e&&(t.graphic=e.destroy()):(r=t.shapeArgs,e?(vr(e),e.animate(o(r))):t.graphic=u[t.shapeType](r).attr(t.pointAttr[t.selected?"select":""]).add(n.group).shadow(i.shadow,null,i.stacking&&!i.borderRadius))})},drawTracker:function(){var n=this,u=n.chart.pointer,i=n.options.cursor,e=i&&{cursor:i},r=function(t){var i=t.target,r;for(n.onMouseOver();i&&!r;)r=i.point,i=i.parentNode;if(r!==f)r.onMouseOver(t)};t(n.points,function(n){n.graphic&&(n.graphic.element.point=n);n.dataLabel&&(n.dataLabel.element.point=n)});n._hasTracking?n._hasTracking=!0:t(n.trackerGroups,function(t){if(n[t]&&(n[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(n){u.onTrackerMouseOut(n)}).css(e),dr))n[t].on("touchstart",r)})},alignDataLabel:function(t,i,r,u,f){var e=this.chart,s=e.inverted,l=t.dlBox||t.shapeArgs,h=t.below||t.plotY>n(this.translatedThreshold,e.plotSizeY),c=n(r.inside,!!this.options.stacking);l&&(u=o(l),s&&(u={x:e.plotWidth-u.y-u.height,y:e.plotHeight-u.x-u.width,width:u.height,height:u.width}),!c)&&(s?(u.x+=h?0:u.width,u.width=0):(u.y+=h?u.height:0,u.height=0));r.align=n(r.align,!s||c?"center":h?"right":"left");r.verticalAlign=n(r.verticalAlign,s||c?"middle":h?"top":"bottom");tt.prototype.alignDataLabel.call(this,t,i,r,u,f)},animate:function(n){var r=this.yAxis,f=this.options,u=this.chart.inverted,t={};ht&&(n?(t.scaleY=.001,n=v(r.pos+r.len,i(r.pos,r.toPixels(f.threshold))),u?t.translateX=n-r.len:t.translateY=n,this.group.attr(t)):(t.scaleY=1,t[u?"translateX":"translateY"]=r.pos,this.group.animate(t,this.options.animation),this.animate=null))},remove:function(){var n=this,i=n.chart;i.hasRendered&&t(i.series,function(t){t.type===n.type&&(t.isDirty=!0)});tt.prototype.remove.apply(n,arguments)}});lt.column=d;et.bar=o(et.column);ti=pt(d,{type:"bar",inverted:!0});lt.bar=ti;et.scatter=o(ft,{lineWidth:0,tooltip:{headerFormat:'{series.name}<\/span>
',pointFormat:"x: {point.x}<\/b>
y: {point.y}<\/b>
",followPointer:!0},stickyTracking:!1});ti=pt(tt,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup"],drawTracker:d.prototype.drawTracker,setTooltipPoints:si});lt.scatter=ti;et.pie=o(ft,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],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}});ft={type:"pie",isCartesian:!1,pointClass:pt(ki,{init:function(){ki.prototype.init.apply(this,arguments);var t=this,i;return t.y<0&&(t.y=null),e(t,{visible:t.visible!==!1,name:n(t.name,"Slice")}),i=function(){t.slice()},k(t,"select",i),k(t,"unselect",i),t},setVisible:function(n){var i=this,r=i.series,u=r.chart,e;i.visible=i.options.visible=n=n===f?!i.visible:n;r.options.data[ii(i,r.data)]=i.options;e=n?"show":"hide";t(["graphic","dataLabel","connector","shadowGroup"],function(n){i[n]&&i[n][e]()});i.legendItem&&u.legend.colorizeItem(i,n);!r.isDirty&&r.options.ignoreHiddenPoint&&(r.isDirty=!0,u.redraw())},slice:function(t,i,u){var f=this.series;ir(u,f.chart);n(i,!0);this.sliced=this.options.sliced=t=r(t)?t:!this.sliced;f.options.data[ii(this,f.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:si,animate:function(n){var i=this,u=i.points,r=i.startAngleRad;n||(t(u,function(n){var t=n.graphic,n=n.shapeArgs;t&&(t.attr({r:i.center[3]/2,start:r,end:r}),t.animate({r:n.r,start:n.start,end:n.end},i.options.animation))}),i.animate=null)},setData:function(t,i){tt.prototype.setData.call(this,t,!1);this.processData();this.generatePoints();n(i,!0)&&this.chart.redraw()},getCenter:function(){var t=this.options,i=this.chart,r=2*(t.dataLabels&&t.dataLabels.enabled?0:t.slicedOffset||0),u=i.plotWidth-2*r,f=i.plotHeight-2*r,i=t.center,t=[n(i[0],"50%"),n(i[1],"50%"),t.size||"100%",t.innerSize||0],e=v(u,f),o;return er(t,function(n,t){return o=/%$/.test(n),(o?[u,f,e,e][t]*s(n)/100:n)+(t<3?r:0)})},translate:function(n){this.generatePoints();var h=0,l=0,r=this.options,a=r.slicedOffset,y=a+r.borderWidth,f,e,t,p=this.startAngleRad=ur/180*((r.startAngle||0)%360-90),v=this.points,c=2*ur,s=r.dataLabels.distance,b=r.ignoreHiddenPoint,o,k=v.length,i;for(n||(this.center=n=this.getCenter()),this.getX=function(i,r){return t=w.asin((i-n[1])/(n[2]/2+s)),n[0]+(r?-1:1)*st(t)*(n[2]/2+s)},o=0;o.75*c&&(t-=2*ur),i.slicedTranslation={translateX:u(st(t)*a),translateY:u(vt(t)*a)},f=st(t)*n[2]/2,e=vt(t)*n[2]/2,i.tooltipPos=[n[0]+f*.7,n[1]+e*.7],i.half=t0,v,c,f,nt,pt=[[],[]],a,s,et,l,r,y=[0,0,0,0],wt=function(n,t){return t.y-n.y},dt=function(n,t){n.sort(function(n,i){return n.angle!==void 0&&(i.angle-n.angle)*t})},lt,ut;if(w.enabled||p._hasPointLabels){for(tt.prototype.drawDataLabels.apply(p),t(o,function(n){n.dataLabel&&pt[n.half].push(n)}),l=0;!nt&&o[l];)nt=o[l]&&o[l].dataLabel&&(o[l].dataLabel.getBBox().height||21),l++;for(l=2;l--;){var o=[],ct=[],k=pt[l],d=k.length,h;if(dt(k,l-.5),rt>0){for(r=yt-ht-rt;r<=yt+ht+rt;r+=nt)o.push(r);if(c=o.length,d>c){for(e=[].concat(k),e.sort(wt),r=d;r--;)e[r].rank=r;for(r=d;r--;)k[r].rank>=c&&k.splice(r,1);d=k.length}for(r=0;r0?(c=ct.pop(),h=c.i,s=c.y,e>s&&o[h+1]!==null||evt-it&&(y[1]=i(u(a+c-vt+it),y[1])),s-nt/2<0?y[0]=i(u(-s+nt/2),y[0]):s+nt/2>ft&&(y[2]=i(u(s+nt/2-ft),y[2])))}(ui(y)===0||this.verifyDataLabelOverflow(y))&&(this.placeDataLabels(),kt&&at&&t(this.points,function(n){g=n.connector;f=n.labelPos;(v=n.dataLabel)&&v._pos?(a=v.connX,s=v.connY,ot=bt?["M",a+(f[6]==="left"?5:-5),s,"C",a,s,2*f[2]-f[4],2*f[3]-f[5],f[2],f[3],"L",f[4],f[5]]:["M",a+(f[6]==="left"?5:-5),s,"L",f[2],f[3],"L",f[4],f[5]],g?(g.animate({d:ot}),g.attr("visibility",et)):n.connector=g=p.chart.renderer.path(ot).attr({"stroke-width":at,stroke:w.connectorColor||n.color||"#606060",visibility:et}).add(p.group)):g&&(n.connector=g.destroy())}))}},verifyDataLabelOverflow:function(n){var r=this.center,f=this.options,e=f.center,u=f=f.minSize||80,o;return e[0]!==null?u=i(r[2]-i(n[1],n[3]),f):(u=i(r[2]-n[1]-n[3],f),r[0]+=(n[3]-n[1])/2),e[1]!==null?u=i(v(u,r[2]-i(n[0],n[2])),f):(u=i(v(u,r[2]-n[0]-n[2]),f),r[1]+=(n[0]-n[2])/2),u12&&(t=t.substring(0,12)+"."),t},cutString:function(n,t){var i=n.length;return i>t&&(n=n.substring(0,n.length-(i-t))+"."),n},hide:function(n){$(document).mouseup(function(t){var i=$("#"+n.id);i.has(t.target).length===0&&i.remove()})},createElement:function(n){var t;return t=document.createElement("div"),t.setAttribute("id",n.id),document.body.appendChild(t),t.style.display="block",t.style.position="absolute",t},setPosition:function(n,t,i){var r=$(n).offset();return r==undefined?!1:(t.style.top=r.top+i.top+"px",t.style.left=r.left+i.left+"px",!0)},arrangeStageSeason:function(n,t){return n.indexOf(t)!=-1?n+" ":t+" Sezonu "+n+" "},teamPartScorebox:function(n,t){return!n||n.Winner==""?"":n.TeamId==n.HomeTeamId&&t.Winner=="home"||n.TeamId==n.AwayTeamId&&t.Winner=="away"?"ourteam":n.TeamId==n.AwayTeamId&&t.Winner=="home"||n.TeamId==n.HomeTeamId&&t.Winner=="away"?"otherteam":"draw"},h2hScorebox:function(n,t){return!n||n.Winner==""?"":n.HomeTeamId==t.homeTeamId&&n.Winner=="home"||n.AwayTeamId==t.homeTeamId&&n.Winner=="away"?"home":n.AwayTeamId==t.awayTeamId&&n.Winner=="away"||n.HomeTeamId==t.awayTeamId&&n.Winner=="home"?"away":"draw"},h2hPartScorebox:function(n,t,i){return!n||n.Winner==""?"":n.HomeTeamId==t.homeTeamId&&i.Winner=="home"||n.AwayTeamId==t.homeTeamId&&i.Winner=="away"?"home":n.AwayTeamId==t.awayTeamId&&i.Winner=="away"||n.HomeTeamId==t.awayTeamId&&i.Winner=="home"?"away":"draw"}};String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})})