text: "use strict";!function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,function(t){var e={};function i(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}return i(e,"parts/Globals.js",[],function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s="http://www.w3.org/2000/svg",n=e.navigator&&e.navigator.userAgent||"",o=i&&i.createElementNS&&!!i.createElementNS(s,"svg").createSVGRect,r=/(edge|msie|trident)/i.test(n)&&!e.opera,a=-1!==n.indexOf("Firefox"),h=-1!==n.indexOf("Chrome"),l=a&&parseInt(n.split("Firefox/")[1],10)<4;return{product:"Highcharts",version:"8.0.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:r,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:a,isChrome:h,isSafari:!h&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:s,chartCount:0,seriesTypes:{},symbolSizes:{},svg:o,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),i(e,"parts/Utilities.js",[e["parts/Globals.js"]],function(t){t.timers=[];var e,i,s=t.charts,n=t.doc,o=t.win;function r(t,e){return parseInt(t,e||10)}function a(t){return"string"==typeof t}function h(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function l(t,e){return!(!t||"object"!=typeof t||e&&h(t))}function c(t){return l(t)&&"number"==typeof t.nodeType}function d(t){var e=t&&t.constructor;return!(!l(t,!0)||c(t)||!e||!e.name||"Object"===e.name)}function p(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function u(t){return null!=t}function f(t,e,i){var s;return a(e)?u(i)?t.setAttribute(e,i):t&&t.getAttribute&&((s=t.getAttribute(e))||"class"!==e||(s=t.getAttribute(e+"Name"))):b(e,function(e,i){t.setAttribute(i,e)}),s}function g(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function m(){for(var t=arguments,e=t.length,i=0;i<e;i++){var s=t[i];if(null!=s)return s}}function x(t,e){var i=function(){};return g(i.prototype=new t,e),i}function v(t,e){return parseFloat(t.toPrecision(e||14))}function y(e,i,s,n){e=+e||0,i=+i;var o,a,h,l,c,d=t.defaultOptions.lang,u=(e.toString().split(".")[1]||"").split("e")[0].length,f=e.toString().split("e");return-1===i?i=Math.min(u,20):p(i)?i&&f[1]&&f[1]<0&&((c=i+ +f[1])>=0?(f[0]=(+f[0]).toExponential(c).split("e")[0],i=c):(f[0]=f[0].split(".")[0]||0,e=i<20?(f[0]*Math.pow(10,f[1])).toFixed(i):0,f[1]=0)):i=2,l=(Math.abs(f[1]?f[0]:e)+Math.pow(10,-Math.max(i,u)-1)).toFixed(i),a=(o=String(r(l))).length>3?o.length%3:0,s=m(s,d.decimalPoint),n=m(n,d.thousandsSep),h=e<0?"-":"",h+=a?o.substr(0,a)+n:"",h+=o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+n),i&&(h+=s+l.slice(-i)),f[1]&&0!=+h&&(h+="e"+f[1]),h}function b(t,e,i){for(var s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}return t.error=function(e,i,s,n){var r=p(e),a=r?"Highcharts error #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(),h=function(){if(i)throw new Error(a);o.console&&console.log(a)};if(void 0!==n){var l="";r&&(a+="?"),t.objectEach(n,function(t,e){l+="\n"+e+": "+t,r&&(a+=encodeURI(e)+"="+encodeURI(t))}),a+=l}s?t.fireEvent(s,"displayError",{code:e,message:a,params:n},h):h()},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],s=[],n=this.now,o=e.length;if(1===n)s=this.toD;else if(o===i.length&&n<1)for(;o--;)t=parseFloat(e[o]),s[o]=isNaN(t)||"A"===i[o-4]||"A"===i[o-5]?i[o]:n*parseFloat(""+(i[o]-t))+t;else s=i;this.elem.attr("d",s,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)},run:function(e,i,s){var n=this,r=n.options,a=function(t){return!a.stopped&&n.step(t)},h=o.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=s,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))},step:function(t){var e,i,s=+new Date,n=this.options,o=this.elem,r=n.complete,a=n.duration,h=n.curAnim;return o.attr&&!o.element?e=!1:t||s>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,b(h,function(t){!0!==t&&(i=!1)}),i&&r&&r.call(o),e=!1):(this.pos=n.easing((s-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(t,e,i){e=e||"";var s,n,o,r,a,h=t.startX,l=t.endX,c=e.indexOf("C")>-1,d=c?7:3,u=e.split(" "),f=i.slice(),g=t.isArea,m=g?2:1;function x(t){var e,i;for(r=t.length;r--;)e="M"===t[r]||"L"===t[r],i=/[a-zA-Z]/.test(t[r+3]),e&&i&&t.splice(r+1,0,t[r+1],t[r+2],t[r+1],t[r+2])}function v(t,e,i){[].splice.apply(t,[i,0].concat(e))}function y(t,e){for(;t.length<n;)t[0]=e[n-t.length],v(t,t.slice(0,d),0),g&&(v(t,t.slice(t.length-d),t.length),r--);t[0]="M"}function b(t,e){for(var i=(n-t.length)/d;i>0&&i--;)(o=t.slice().splice(t.length/m-d,d*m))[0]=e[n-d-i*d],c&&(o[d-6]=o[d-2],o[d-5]=o[d-1]),v(t,o,t.length/m),g&&i--}if(c&&(x(u),x(f)),h&&l){for(r=0;r<h.length;r++){if(h[r]===l[0]){s=r;break}if(h[0]===l[l.length-h.length+r]){s=r,a=!0;break}if(h[h.length-1]===l[l.length-h.length+r]){s=h.length-r;break}}void 0===s&&(u=[])}return u.length&&p(s)&&(n=f.length+s*m*d,a?(y(u,f),b(f,u)):(y(f,u),b(u,f))),[u,f]},fillSetter:function(){t.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)}},t.merge=function(){var t,e,i=arguments,s={},n=function(t,e){return"object"!=typeof t&&(t={}),b(e,function(i,s){!l(i,!0)||d(i)||c(i)?t[s]=e[s]:t[s]=n(t[s]||{},i)}),t};for(!0===i[0]&&(s=i[1],i=Array.prototype.slice.call(i,2)),e=i.length,t=0;t<e;t++)s=n(s,i[t]);return s},t.clearTimeout=function(t){u(t)&&clearTimeout(t)},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),g(e.style,i)},t.createElement=function(e,i,s,o,r){var a=n.createElement(e),h=t.css;return i&&g(a,i),r&&h(a,{padding:"0",border:"none",margin:"0"}),s&&h(a,s),o&&o.appendChild(a),a},t.datePropsToTimestamps=function(e){b(e,function(i,s){l(i)&&"function"==typeof i.getTime?e[s]=i.getTime():(l(i)||h(i))&&t.datePropsToTimestamps(i)})},t.formatSingle=function(e,i,s){var n,o=t.defaultOptions.lang,r=s&&s.time||t.time,a=s&&s.numberFormatter||y;return/f$/.test(e)?(n=(n=e.match(/\.([0-9])/))?n[1]:-1,null!==i&&(i=a(i,n,o.decimalPoint,e.indexOf(",")>-1?o.thousandsSep:""))):i=r.dateFormat(e,i),i},t.format=function(e,i,s){for(var n,o,r,a,h,l,c,d="{",p=!1,u=[];e&&-1!==(c=e.indexOf(d));){if(n=e.slice(0,c),p){for(h=(r=(o=n.split(":")).shift().split(".")).length,l=i,a=0;a<h;a++)l&&(l=l[r[a]]);o.length&&(l=t.formatSingle(o.join(":"),l,s)),u.push(l)}else u.push(n);e=e.slice(c+1),d=(p=!p)?"}":"{"}return u.push(e),u.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(t,e,i,s,n){var o,r,a=t;for(o=t/(i=m(i,1)),e||(e=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(a=e[r],!(n&&a*i>=t||!n&&o<=(e[r]+(e[r+1]||e[r]))/2));r++);return a=v(a*i,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;s<n;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<n;s++)delete t[s].safeI},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,i,s){var n;if("width"===i){var a=Math.min(e.offsetWidth,e.scrollWidth),h=e.getBoundingClientRect&&e.getBoundingClientRect().width;return h<a&&h>=a-1&&(a=Math.floor(h)),Math.max(0,a-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"))}return"height"===i?Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom")):(o.getComputedStyle||t.error(27,!0),(n=o.getComputedStyle(e,void 0))&&(n=n.getPropertyValue(i),m(s,"opacity"!==i)&&(n=r(n))),n)},t.inArray=function(t,e,i){return e.indexOf(t,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]},t.keys=Object.keys,t.stop=function(e,i){for(var s=t.timers.length;s--;)t.timers[s].elem!==e||i&&i!==t.timers[s].prop||(t.timers[s].stopped=!0)},b({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,i){t[i]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}}),t.addEvent=function(e,i,s,n){void 0===n&&(n={});var o,r=e.addEventListener||t.addEventListenerPolyfill;o="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{},t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),r&&r.call(e,i,s,!1),o[i]||(o[i]=[]);var a={fn:s,order:"number"==typeof n.order?n.order:1/0};return o[i].push(a),o[i].sort(function(t,e){return t.order-e.order}),function(){t.removeEvent(e,i,s)}},t.removeEvent=function(e,i,s){var n;function o(i,s){var n=e.removeEventListener||t.removeEventListenerPolyfill;n&&n.call(e,i,s,!1)}function r(t){var s,n;e.nodeName&&(i?(s={})[i]=!0:s=t,b(s,function(e,i){if(t[i])for(n=t[i].length;n--;)o(i,t[i][n].fn)}))}["protoEvents","hcEvents"].forEach(function(t,a){var h=a?e:e.prototype,l=h&&h[t];l&&(i?(n=l[i]||[],s?(l[i]=n.filter(function(t){return s!==t.fn}),o(i,s)):(r(l),l[i]=[])):(r(l),h[t]={}))})},t.fireEvent=function(t,e,i,s){var o,r;if(i=i||{},n.createEvent&&(t.dispatchEvent||t.fireEvent))(o=n.createEvent("Events")).initEvent(e,!0,!0),g(o,i),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o);else{i.target||g(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});!function(e,s){void 0===e&&(e=[]),void 0===s&&(s=[]);var n=0,o=0,a=e.length+s.length;for(r=0;r<a;r++)!1===(e[n]?s[o]?e[n].order<=s[o].order?e[n++]:s[o++]:e[n++]:s[o++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e])}s&&!i.defaultPrevented&&s.call(t,i)},t.animate=function(e,i,s){var n,o,r,a,h="";l(s)||(s={duration:(a=arguments)[2],easing:a[3],complete:a[4]}),p(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=t.merge(i),b(i,function(a,l){t.stop(e,l),r=new t.Fx(e,s,l),o=null,"d"===l?(r.paths=r.initPath(e,e.d,i.d),r.toD=i.d,n=0,o=1):e.attr?n=e.attr(l):(n=parseFloat(t.getStyle(e,l))||0,"opacity"!==l&&(h="px")),o||(o=a),o&&o.match&&o.match("px")&&(o=o.replace(/px/g,"")),r.run(n,o,h)})},t.seriesType=function(e,i,s,n,o){var r=t.getOptions(),a=t.seriesTypes;return r.plotOptions[e]=t.merge(r.plotOptions[i],s),a[e]=x(a[i]||function(){},n),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=x(t.Point,o)),a[e]},t.uniqueKey=(e=Math.random().toString(36).substring(2,9),i=0,function(){return"highcharts-"+e+"-"+i++}),t.isFunction=function(t){return"function"==typeof t},o.jQuery&&(o.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[a(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):s[f(this[0],"data-highcharts-chart")]}),{animObject:function(e){return l(e)?t.merge(e):{duration:e?500:0}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:f,clamp:function(t,e,i){return t>e?t<i?t:i:e},correctFloat:v,defined:u,destroyObjectProperties:function(t,e){b(t,function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]})},discardElement:function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:g,extendClass:x,isArray:h,isClass:d,isDOMElement:c,isNumber:p,isObject:l,isString:a,numberFormat:y,objectEach:b,offset:function(t){var e=n.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0};return{top:i.top+(o.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(o.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},pad:function(t,e,i){return new Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:m,pInt:r,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},setAnimation:function(t,e){e.renderer.globalAnimation=m(t,e.options.chart.animation,!0)},splat:function(t){return h(t)?t:[t]},syncTimeout:function(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)},wrap:function(t,e,i){var s=t[e];t[e]=function(){var t,e=Array.prototype.slice.call(arguments),n=arguments,o=this;return o.proceed=function(){s.apply(o,arguments.length?arguments:n)},e.unshift(s),t=i.apply(this,e),o.proceed=null,t}}}}),i(e,"parts/Color.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.isNumber,s=e.pInt,n=t.merge;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/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*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,s,n,o,r;if(this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e,e&&e.stops)this.stops=e.stops.map(function(e){return new t.Color(e[1])});else if(e&&e.charAt&&"#"===e.charAt()&&(r=e.length,e=parseInt(e.substr(1),16),7===r?s=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===r&&(s=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!s)for(n=this.parsers.length;n--&&!s;)(i=(o=this.parsers[n]).regex.exec(e))&&(s=o.parse(i));this.rgba=s||[]},get:function(t){var e,s=this.input,o=this.rgba;return this.stops?((e=n(s)).stops=[].concat(e.stops),this.stops.forEach(function(i,s){e.stops[s]=[e.stops[s][0],i.get(t)]})):e=o&&i(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?o[3]:"rgba("+o.join(",")+")":s,e},brighten:function(t){var e,n=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(e=0;e<3;e++)n[e]+=s(255*t),n[e]<0&&(n[e]=0),n[e]>255&&(n[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i,s=this.rgba,n=t.rgba;return n.length&&s&&s.length?((i=1!==n[3]||1!==s[3])?"rgba(":"rgb(")+Math.round(n[0]+(s[0]-n[0])*(1-e))+","+Math.round(n[1]+(s[1]-n[1])*(1-e))+","+Math.round(n[2]+(s[2]-n[2])*(1-e))+(i?","+(n[3]+(s[3]-n[3])*(1-e)):"")+")":t.input||"none"}},t.color=function(e){return new t.Color(e)}}),i(e,"parts/SvgRenderer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i,s,n=e.animObject,o=e.attr,r=e.defined,a=e.destroyObjectProperties,h=e.erase,l=e.extend,c=e.isArray,d=e.isNumber,p=e.isObject,u=e.isString,f=e.objectEach,g=e.pick,m=e.pInt,x=e.splat,v=t.addEvent,y=t.animate,b=t.charts,k=t.color,M=t.css,w=t.createElement,S=t.deg2rad,T=t.doc,A=t.hasTouch,P=t.isFirefox,L=t.isMS,C=t.isWebKit,O=t.merge,E=t.noop,D=t.removeEvent,I=t.stop,z=t.svg,B=t.SVG_NS,R=t.symbolSizes,N=t.win;i=t.SVGElement=function(){return this},l(i.prototype,{opacity:1,SVG_NS:B,textProps:["direction","fontSize","fontWeight","fontFamily","fontStyle","color","lineHeight","width","textAlign","textDecoration","textOverflow","textOutline","cursor"],init:function(e,i){this.element="span"===i?w(i):T.createElementNS(this.SVG_NS,i),this.renderer=e,t.fireEvent(this,"afterInit")},animate:function(t,e,i){var s=n(g(e,this.renderer.globalAnimation,!0));return g(T.hidden,T.msHidden,T.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),y(this,t,s)):(this.attr(t,void 0,i),f(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1})},this)),this},complexColor:function(e,i,s){var n,o,a,h,l,d,p,u,g,m,x,v,y=this.renderer,b=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},function(){e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o&&(a=e[o],l=y.gradients,p=e.stops,m=s.radialReference,c(a)&&(e[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&m&&!r(a.gradientUnits)&&(h=a,a=O(a,y.getRadialAttr(m,h),{gradientUnits:"userSpaceOnUse"})),f(a,function(t,e){"id"!==e&&b.push(e,t)}),f(p,function(t){b.push(t)}),b=b.join(","),l[b]?x=l[b].attr("id"):(a.id=x=t.uniqueKey(),l[b]=d=y.createElement(o).attr(a).add(y.defs),d.radAttr=h,d.stops=[],p.forEach(function(e){var i;0===e[1].indexOf("rgba")?(n=t.color(e[1]),u=n.get("rgb"),g=n.get("a")):(u=e[1],g=1),i=y.createElement("stop").attr({offset:e[0],"stop-color":u,"stop-opacity":g}).add(d),d.stops.push(i)})),v="url("+y.url+"#"+x+")",s.setAttribute(i,v),s.gradient=b,e.toString=function(){return v})})},applyTextOutline:function(e){var i,s,n,r,a=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(a.style.fill))),e=e.split(" "),s=e[e.length-1],(n=e[0])&&"none"!==n&&t.svg&&(this.fakeTS=!0,i=[].slice.call(a.getElementsByTagName("tspan")),this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),this.removeTextOutline(i),r=a.firstChild,i.forEach(function(t,e){var i;0===e&&(t.setAttribute("x",a.getAttribute("x")),e=a.getAttribute("y"),t.setAttribute("y",e||0),null===e&&a.setAttribute("y",0)),i=t.cloneNode(1),o(i,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":n,"stroke-linejoin":"round"}),a.insertBefore(i,r)}))},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&h(t,this.element.removeChild(e))},symbolCustomAttribs:["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"],attr:function(e,i,s,n){var o,r,a,h,l=this.element,c=this,d=this.symbolCustomAttribs;return"string"==typeof e&&void 0!==i&&(o=e,(e={})[o]=i),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(f(e,function(i,s){a=!1,n||I(this,s),this.symbolName&&-1!==t.inArray(s,d)&&(r||(this.symbolAttr(e),r=!0),a=!0),!this.rotation||"x"!==s&&"y"!==s||(this.doTransform=!0),a||((h=this[s+"Setter"]||this._defaultSetter).call(this,i,s,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(s)&&this.updateShadows(s,i,h))},this),this.afterSetters()),s&&s.call(this),c},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var s=this.shadows,n=s.length;n--;)i.call(s[n],"height"===t?Math.max(e-(s[n].cutHeight||0),0):"d"===t?this.d:e,t,s[n])},addClass:function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(u(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(t){var e=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(i){e[i]=g(t[i],e[i])}),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+")":"none")},crisp:function(t,e){var i;return e=e||t.strokeWidth||0,i=Math.round(e)%2/2,t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),r(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e,i,s=this.styles,n={},r=this.element,a="",h=!s,c=["textOutline","textOverflow","width"];return t&&t.color&&(t.fill=t.color),s&&f(t,function(t,e){t!==s[e]&&(n[e]=t,h=!0)}),h&&(s&&(t=l(s,n)),t&&(null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=m(t.width))),this.styles=t,e&&!z&&this.renderer.forExport&&delete t.width,r.namespaceURI===this.SVG_NS?(i=function(t,e){return"-"+e.toLowerCase()},f(t,function(t,e){-1===c.indexOf(e)&&(a+=e.replace(/([A-Z])/g,i)+":"+t+";")}),a&&o(r,"style",a)):M(r,t),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))),this},getStyle:function(t){return N.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return e.indexOf("px")===e.length-2?i=m(e):""!==e&&(t=T.createElementNS(B,"rect"),o(t,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},on:function(t,e){var i=this,s=i.element;return A&&"click"===t?(s.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(s,t)},s.onclick=function(t){(-1===N.navigator.userAgent.indexOf("Android")||Date.now()-(i.touchEventFired||0)>1100)&&e.call(s,t)}):s["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t,e=this.translateX||0,i=this.translateY||0,s=this.scaleX,n=this.scaleY,o=this.inverted,a=this.rotation,h=this.matrix,l=this.element;o&&(e+=this.width,i+=this.height),t=["translate("+e+","+i+")"],r(h)&&t.push("matrix("+h.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):a&&t.push("rotate("+a+" "+g(this.rotationOriginX,l.getAttribute("x"),0)+" "+g(this.rotationOriginY,l.getAttribute("y")||0)+")"),(r(s)||r(n))&&t.push("scale("+g(s,1)+" "+g(n,1)+")"),t.length&&l.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var s,n,o,r,a,l,c,d={},p=this.renderer,f=p.alignedObjects;return t?(this.alignOptions=t,this.alignByTranslate=e,i&&!u(i)||(this.alignTo=a=i||"renderer",h(f,this),f.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,a=this.alignTo),i=g(i,p[a],p),s=t.align,n=t.verticalAlign,o=(i.x||0)+(t.x||0),r=(i.y||0)+(t.y||0),"right"===s?l=1:"center"===s&&(l=2),l&&(o+=(i.width-(t.width||0))/l),d[e?"translateX":"x"]=Math.round(o),"bottom"===n?c=1:"middle"===n&&(c=2),c&&(r+=(i.height-(t.height||0))/c),d[e?"translateY":"y"]=Math.round(r),this[this.placed?"animate":"attr"](d),this.placed=!0,this.alignAttr=d,this},getBBox:function(t,e){var s,n,o,a,h,c,d=this.renderer,p=this.element,u=this.styles,f=this.textStr,m=d.cache,x=d.cacheKeys,v=p.namespaceURI===this.SVG_NS,y=g(e,this.rotation,0);if(a=d.styledMode?p&&i.prototype.getStyle.call(p,"font-size"):u&&u.fontSize,r(f)&&(-1===(c=f.toString()).indexOf("<")&&(c=c.replace(/[0-9]/g,"0")),c+=["",y,a,this.textWidth,u&&u.textOverflow].join(",")),c&&!t&&(s=m[c]),!s){if(v||d.forExport){try{(h=this.fakeTS&&function(t){[].forEach.call(p.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&h("none"),s=p.getBBox?l({},p.getBBox()):{width:p.offsetWidth,height:p.offsetHeight},h&&h("")}catch(t){}(!s||s.width<0)&&(s={width:0,height:0})}else s=this.htmlGetBBox();if(d.isSVG&&(n=s.width,o=s.height,v&&(s.height=o={"11px,17":14,"13px,20":16}[u&&u.fontSize+","+Math.round(o)]||o),y)){var b=y*S;s.width=Math.abs(o*Math.sin(b))+Math.abs(n*Math.cos(b)),s.height=Math.abs(o*Math.cos(b))+Math.abs(n*Math.sin(b))}if(c&&s.height>0){for(;x.length>250;)delete m[x.shift()];m[c]||x.push(c),m[c]=s}}return s},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,s=i.element||{},n=i.renderer,o=n.isSVG&&"SPAN"===s.nodeName&&i.parentGroup,r=s.ownerSVGElement,a=i.clipPath;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=s.point=null,I(i),a&&r&&([].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(a.element.id)>-1&&t.removeAttribute("clip-path")}),i.clipPath=a.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}for(i.safeRemoveChild(s),n.styledMode||i.destroyShadows();o&&o.div&&0===o.div.childNodes.length;)t=o.parentGroup,i.safeRemoveChild(o.div),delete o.div,o=t;i.alignTo&&h(n.alignedObjects,i),f(i,function(t,e){i[e]&&i[e].parentGroup===i&&i[e].destroy&&i[e].destroy(),delete i[e]})},shadow:function(t,e,i){var s,n,r,a,h,l,c=[],d=this.element;if(t){if(!this.shadows){for(a=g(t.width,3),h=(t.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+g(t.offsetX,1)+", "+g(t.offsetY,1)+")",s=1;s<=a;s++)n=d.cloneNode(0),r=2*a+1-2*s,o(n,{stroke:t.color||"#000000","stroke-opacity":h*s,"stroke-width":r,transform:"translate"+l,fill:"none"}),n.setAttribute("class",(n.getAttribute("class")||"")+" highcharts-shadow"),i&&(o(n,"height",Math.max(o(n,"height")-r,0)),n.cutHeight=r),e?e.element.appendChild(n):d.parentNode&&d.parentNode.insertBefore(n,d),c.push(n);this.shadows=c}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){var e=g(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.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(",")).length;e--;)t[e]=m(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=T.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(T.createTextNode(String(g(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(e,i){var s,n,o,a,h=this.element,l={textAnchor:"text-anchor"},c=!1,p=this.textPathWrapper,u=!p;if(s=(i=O(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i)).attributes,e&&i&&i.enabled){if(p&&null===p.element.parentNode?(u=!0,p=p.destroy()):p&&this.removeTextOutline.call(p.parentGroup,[].slice.call(h.getElementsByTagName("tspan"))),this.options&&this.options.padding&&(s.dx=-this.options.padding),p||(this.textPathWrapper=p=this.renderer.createElement("textPath"),c=!0),n=p.element,(o=e.element.getAttribute("id"))||e.element.setAttribute("id",o=t.uniqueKey()),u)for(a=h.getElementsByTagName("tspan");a.length;)a[0].setAttribute("y",0),d(s.dx)&&a[0].setAttribute("x",-s.dx),n.appendChild(a[0]);c&&p.add({element:this.text?this.text.element:h}),n.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+o),r(s.dy)&&(n.parentNode.setAttribute("dy",s.dy),delete s.dy),r(s.dx)&&(n.parentNode.setAttribute("dx",s.dx),delete s.dx),f(s,function(t,e){n.setAttribute(l[e]||e,t)}),h.removeAttribute("transform"),this.removeTextOutline.call(p,[].slice.call(h.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.updateTransform=E,this.applyTextOutline=E}else p&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(h,e),this.updateTransform(),this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},destroyTextPath:function(t,e){var i,s=t.getElementsByTagName("text")[0];if(s){if(s.removeAttribute("dx"),s.removeAttribute("dy"),e.element.setAttribute("id",""),s.getElementsByTagName("textPath").length){for(i=this.textPathWrapper.element.childNodes;i.length;)s.appendChild(i[0]);s.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper=this.textPathWrapper.destroy()},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,s,n,o,a,h=this.renderer,l=this.parentGroup,c=(l||h).element||h.box,d=this.element,p=!1,u=c===h.box,f=this.added;if(r(t)?(d.setAttribute("data-z-index",t),t=+t,this[e]===t&&(f=!1)):r(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,f){for((t=this.zIndex)&&l&&(l.handleZ=!0),a=(i=c.childNodes).length-1;a>=0&&!p;a--)n=(s=i[a]).getAttribute("data-z-index"),o=!r(n),s!==d&&(t<0&&o&&!u&&!a?(c.insertBefore(d,i[a]),p=!0):(m(n)<=t||o&&(!r(t)||t>=0))&&(c.insertBefore(d,i[a+1]||null),p=!0));p||(c.insertBefore(d,i[u?3:0]||null),p=!0)}return p},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),i.prototype.yGetter=i.prototype.xGetter,i.prototype.translateXSetter=i.prototype.translateYSetter=i.prototype.rotationSetter=i.prototype.verticalAlignSetter=i.prototype.rotationOriginXSetter=i.prototype.rotationOriginYSetter=i.prototype.scaleXSetter=i.prototype.scaleYSetter=i.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},i.prototype["stroke-widthSetter"]=i.prototype.strokeSetter=function(t,e,s){this[e]=t,this.stroke&&this["stroke-width"]?(i.prototype.fillSetter.call(this,this.stroke,"stroke",s),s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke?(s.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},s=t.SVGRenderer=function(){this.init.apply(this,arguments)},l(s.prototype,{Element:i,SVG_NS:B,init:function(t,e,i,s,n,r,a){var h,l,c,d;h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),a||h.css(this.getStyle(s)),l=h.element,t.appendChild(l),o(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&o(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=(P||C)&&T.getElementsByTagName("base").length?N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(T.createTextNode("Created with Highcharts 8.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=n,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),P&&t.getBoundingClientRect&&((c=function(){M(t,{left:0,top:0}),d=t.getBoundingClientRect(),M(t,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})})(),this.unSubPixelFix=v(N,"resize",c))},definition:function(t){var e=this;return function t(i,s){var n;return x(i).forEach(function(i){var o=e.createElement(i.tagName),r={};f(i,function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(r[e]=t)}),o.attr(r),o.add(s||e.defs),i.textContent&&o.element.appendChild(T.createTextNode(i.textContent)),t(i.children||[],o),n=o}),n}(t)},getStyle:function(t){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t),this.style},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),a(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:E,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,s,n,o,r){var a,h,l,c=this,d=t.rotation,p=s?1:0,u=(i||s).length,f=u,g=[],m=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(T.createTextNode(t))},x=function(o,a){var h=a||o;if(void 0===g[h])if(e.getSubStringLength)try{g[h]=n+e.getSubStringLength(0,s?h+1:h)}catch(t){}else c.getSpanWidth&&(m(r(i||s,o)),g[h]=n+c.getSpanWidth(t,e));return g[h]};if(t.rotation=0,h=x(e.textContent.length),l=n+h>o){for(;p<=u;)f=Math.ceil((p+u)/2),s&&(a=r(s,f)),h=x(f,a&&a.length-1),p===u?p=u+1:h>o?u=f-1:p=f;0===u?m(""):i&&u===i.length-1||m(a||r(i||s,f))}return s&&s.splice(0,f),t.actualWidth=h,t.rotation=d,l},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(t){var e,i,s,n=t.element,r=this,a=r.forExport,h=g(t.textStr,"").toString(),l=-1!==h.indexOf("<"),c=n.childNodes,d=o(n,"x"),p=t.styles,u=t.textWidth,x=p&&p.lineHeight,v=p&&p.textOutline,y=p&&"ellipsis"===p.textOverflow,b=p&&"nowrap"===p.whiteSpace,k=p&&p.fontSize,w=c.length,S=u&&!t.added&&this.box,A=function(t){var e;return r.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:k||r.style.fontSize||12),x?m(x):r.fontMetrics(e,t.getAttribute("style")?t:n).h},P=function(t,e){return f(r.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))}),t},L=function(t,e){var i,s;if(i=t.indexOf("<"),-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(s=t.charAt(i))||"'"===s))return(t=t.substring(i+1)).substring(0,t.indexOf(s))},C=/<br.*?>/g;if((i=[h,y,b,x,v,k,u].join(","))!==t.textCache){for(t.textCache=i;w--;)n.removeChild(c[w]);l||v||y||u||-1!==h.indexOf(" ")&&(!b||C.test(h))?(S&&S.appendChild(n),(l?(r.styledMode?h.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):h.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(C):[h]).filter(function(t){return""!==t}).forEach(function(i,h){var l,c=0,p=0;i=i.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),(l=i.split("|||")).forEach(function(i){if(""!==i||1===l.length){var f,g,m,x={},v=T.createElementNS(r.SVG_NS,"tspan");if((f=L(i,"class"))&&o(v,"class",f),(g=L(i,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),o(v,"style",g)),(m=L(i,"href"))&&!a&&(o(v,"onclick",'location.href="'+m+'"'),o(v,"class","highcharts-anchor"),r.styledMode||M(v,{cursor:"pointer"}))," "!==(i=P(i.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(T.createTextNode(i)),c?x.dx=0:h&&null!==d&&(x.x=d),o(v,x),n.appendChild(v),!c&&s&&(!z&&a&&M(v,{display:"block"}),o(v,"dy",A(v))),u){var w=i.replace(/([^\^])-/g,"$1- ").split(" "),S=!b&&(l.length>1||h||w.length>1),C=0,O=A(v);if(y)e=r.truncate(t,v,i,void 0,0,Math.max(0,u-parseInt(k||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(S)for(;w.length;)w.length&&!b&&C>0&&(v=T.createElementNS(B,"tspan"),o(v,{dy:O,x:d}),g&&o(v,"style",g),v.appendChild(T.createTextNode(w.join(" ").replace(/- /g,"-"))),n.appendChild(v)),r.truncate(t,v,null,w,0===C?p:0,u,function(t,e){return w.slice(0,e).join(" ").replace(/- /g,"-")}),p=t.actualWidth,C++}c++}}}),s=s||n.childNodes.length}),y&&e&&t.attr("title",P(t.textStr,["&lt;","&gt;"])),S&&S.removeChild(n),v&&t.applyTextOutline&&t.applyTextOutline(v)):n.appendChild(T.createTextNode(P(h)))}},getContrast:function(t){return(t=k(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,t[0]+t[1]+t[2]>459?"#000000":"#FFFFFF"},button:function(t,e,i,s,n,o,r,a,h,c){var d,p,u,f,g=this.label(t,e,i,h,null,null,c,null,"button"),m=0,x=this.styledMode;(g.attr(O({padding:8,r:2},n)),x)||(n=O({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},n),d=n.style,delete n.style,o=O(n,{fill:"#e6e6e6"},o),p=o.style,delete o.style,r=O(n,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},r),u=r.style,delete r.style,a=O(n,{style:{color:"#cccccc"}},a),f=a.style,delete a.style);return v(g.element,L?"mouseover":"mouseenter",function(){3!==m&&g.setState(1)}),v(g.element,L?"mouseout":"mouseleave",function(){3!==m&&g.setState(m)}),g.setState=function(t){1!==t&&(g.state=m=t),g.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),x||g.attr([n,o,r,a][t||0]).css([d,p,u,f][t||0])},x||g.attr(n).css(l({cursor:"default"},d)),g.on("click",function(t){3!==m&&s.call(g,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return c(t)?e.d=t:p(t)&&l(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){var s=p(t)?t:void 0===t?{}:{x:t,y:e,r:i},n=this.createElement("circle");return n.xSetter=n.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},n.attr(s)},arc:function(t,e,i,s,n,o){var r,a;return p(t)?(e=(a=t).y,i=a.r,s=a.innerR,n=a.start,o=a.end,t=a.x):a={innerR:s,start:n,end:o},(r=this.symbol("arc",t,e,i,i,a)).r=i,r},rect:function(t,e,i,s,n,r){n=p(t)?t.r:n;var a=this.createElement("rect"),h=p(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(s,0)};return this.styledMode||(void 0!==r&&(h.strokeWidth=r,h=a.crisp(h)),h.fill="none"),n&&(h.r=n),a.rSetter=function(t,e,i){a.r=t,o(i,{rx:t,ry:t})},a.rGetter=function(){return a.r},a.attr(h)},setSize:function(t,e,i){var s=this.alignedObjects,n=s.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:g(i,!0)?void 0:0});n--;)s[n].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,s,n,o){var r,a,h={preserveAspectRatio:"none"},c=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},d=function(e){c(r.element,t),o.call(r,e)};return arguments.length>1&&l(h,{x:e,y:i,width:s,height:n}),r=this.createElement("image").attr(h),o?(c(r.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new N.Image,v(a,"load",d),a.src=t,a.complete&&d({})):c(r.element,t),r},symbol:function(t,e,i,s,n,o){var a,h,c,d=this,p=/^url\((.*?)\)$/,u=p.test(t),f=!u&&(this.symbols[t]?t:"circle"),m=f&&this.symbols[f],x=r(e)&&m&&m.call(this.symbols,Math.round(e),Math.round(i),s,n,o);return m?(a=this.path(x),d.styledMode||a.attr("fill","none"),l(a,{symbolName:f,x:e,y:i,width:s,height:n}),o&&l(a,o)):u&&(h=t.match(p)[1],(a=this.image(h)).imgwidth=g(R[h]&&R[h].width,o&&o.width),a.imgheight=g(R[h]&&R[h].height,o&&o.height),c=function(){a.attr({width:a.width,height:a.height})},["width","height"].forEach(function(t){a[t+"Setter"]=function(t,e){var i={},s=this["img"+e],n="width"===e?"translateX":"translateY";this[e]=t,r(s)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(s=Math.round(s*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,s),this.alignByTranslate||(i[n]=((this[e]||0)-s)/2,this.attr(i)))}}),r(e)&&a.attr({x:e,y:i}),a.isImg=!0,r(a.imgwidth)&&r(a.imgheight)?c():(a.attr({width:0,height:0}),w("img",{onload:function(){var t=b[d.chartIndex];0===this.width&&(M(this,{position:"absolute",top:"-999em"}),T.body.appendChild(this)),R[h]={width:this.width,height:this.height},a.imgwidth=this.width,a.imgheight=this.height,a.element&&c(),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,!d.imgCount&&t&&t.onload&&t.onload()},src:h}),this.imgCount++)),a},symbols:{circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i,e+s,t,e+s,"Z"]},triangle:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s,t,e+s,"Z"]},"triangle-down":function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i/2,e+s,"Z"]},diamond:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s/2,t+i/2,e+s,t,e+s/2,"Z"]},arc:function(t,e,i,s,n){var o,a=n.start,h=n.r||i,l=n.r||s||i,c=Math.abs(n.end-n.start-2*Math.PI)<.001,d=n.end-.001,p=n.innerR,u=g(n.open,c),f=Math.cos(a),m=Math.sin(a),x=Math.cos(d),v=Math.sin(d),y=g(n.longArc,n.end-a-Math.PI<.001?0:1);return o=["M",t+h*f,e+l*m,"A",h,l,0,y,g(n.clockwise,1),t+h*x,e+l*v],r(p)&&o.push(u?"M":"L",t+p*x,e+p*v,"A",p,p,0,y,r(n.clockwise)?1-n.clockwise:0,t+p*f,e+p*m),o.push(u?"":"Z"),o},callout:function(t,e,i,s,n){var o,r=Math.min(n&&n.r||0,i,s),a=r+6,h=n&&n.anchorX,l=n&&n.anchorY;return o=["M",t+r,e,"L",t+i-r,e,"C",t+i,e,t+i,e,t+i,e+r,"L",t+i,e+s-r,"C",t+i,e+s,t+i,e+s,t+i-r,e+s,"L",t+r,e+s,"C",t,e+s,t,e+s,t,e+s-r,"L",t,e+r,"C",t,e,t,e,t+r,e],h&&h>i?l>e+a&&l<e+s-a?o.splice(13,3,"L",t+i,l-6,t+i+6,l,t+i,l+6,t+i,e+s-r):o.splice(13,3,"L",t+i,s/2,h,l,t+i,s/2,t+i,e+s-r):h&&h<0?l>e+a&&l<e+s-a?o.splice(33,3,"L",t,l+6,t-6,l,t,l-6,t,e+r):o.splice(33,3,"L",t,s/2,h,l,t,s/2,t,e+r):l&&l>s&&h>t+a&&h<t+i-a?o.splice(23,3,"L",h+6,e+s,h,e+s+6,h-6,e+s,t+r,e+s):l&&l<0&&h>t+a&&h<t+i-a&&o.splice(3,3,"L",h-6,e,h,e-6,h+6,e,i-r,e),o}},clipRect:function(e,i,s,n){var o,r=t.uniqueKey()+"-",a=this.createElement("clipPath").attr({id:r}).add(this.defs);return(o=this.rect(e,i,s,n,0).add(a)).id=r,o.clipPath=a,o.count=0,o},text:function(t,e,i,s){var n,o={};return!s||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),r(t)&&(o.text=t),n=this.createElement("text").attr(o),s||(n.xSetter=function(t,e,i){var s,n,o=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(n=0;n<o.length;n++)(s=o[n]).getAttribute(e)===r&&s.setAttribute(e,t);i.setAttribute(e,t)}),n):this.html(t,e,i)},fontMetrics:function(t,e){var s;return t=!this.styledMode&&/px/.test(t)||!N.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&i.prototype.getStyle.call(e,"font-size"),{h:s=(t=/px/.test(t)?m(t):12)<24?t+3:Math.round(1.2*t),b:Math.round(.8*s),f:t}},rotCorr:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*S),4)),{x:-t/3*Math.sin(e*S),y:s}},label:function(t,e,s,n,o,a,h,c,p){var u,f,g,m,x,v,y,b,k,M,w,S,T=this,A=T.styledMode,P=T.g("button"!==p&&"label"),L=P.text=T.text("",0,0,h).attr({zIndex:1}),C=0,E=3,I=0,z={},B=/^url\((.*?)\)$/.test(n),R=A||B,N=function(){return A?u.strokeWidth()%2/2:(b?parseInt(b,10):0)%2/2};p&&P.addClass("highcharts-"+p),M=function(){var t,e=L.element.style,i={};f=(void 0===g||void 0===m||y)&&r(L.textStr)&&L.getBBox(),P.width=(g||f.width||0)+2*E+I,P.height=(m||f.height||0)+2*E,k=E+Math.min(T.fontMetrics(e&&e.fontSize,L).b,f?f.height:1/0),R&&(u||(P.box=u=T.symbols[n]||B?T.symbol(n):T.rect(),u.addClass(("button"===p?"":"highcharts-label-box")+(p?" highcharts-"+p+"-box":"")),u.add(P),t=N(),i.x=t,i.y=(c?-k:0)+t),i.width=Math.round(P.width),i.height=Math.round(P.height),u.attr(l(i,z)),z={})},w=function(){var t,e=I+E;t=c?0:k,r(g)&&f&&("center"===y||"right"===y)&&(e+={center:.5,right:1}[y]*(g-f.width)),e===L.x&&t===L.y||(L.attr("x",e),L.hasBoxWidthChanged&&(f=L.getBBox(!0),M()),void 0!==t&&L.attr("y",t)),L.x=e,L.y=t},S=function(t,e){u?u.attr(t,e):z[t]=e},P.onAdd=function(){L.add(P),P.attr({text:t||0===t?t:"",x:e,y:s}),u&&r(o)&&P.attr({anchorX:o,anchorY:a})},P.widthSetter=function(t){g=d(t)?t:null},P.heightSetter=function(t){m=t},P["text-alignSetter"]=function(t){y=t},P.paddingSetter=function(t){r(t)&&t!==E&&(E=P.padding=t,w())},P.paddingLeftSetter=function(t){r(t)&&t!==I&&(I=t,w())},P.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==C&&(C=t,f&&P.attr({x:x}))},P.textSetter=function(t){void 0!==t&&L.attr({text:t}),M(),w()},P["stroke-widthSetter"]=function(t,e){t&&(R=!0),b=this["stroke-width"]=t,S(e,t)},A?P.rSetter=function(t,e){S(e,t)}:P.strokeSetter=P.fillSetter=P.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(R=!0),P[e]=t),S(e,t)},P.anchorXSetter=function(t,e){o=P.anchorX=t,S(e,Math.round(t)-N()-x)},P.anchorYSetter=function(t,e){a=P.anchorY=t,S(e,t-v)},P.xSetter=function(t){P.x=t,C&&(t-=C*((g||f.width)+2*E),P["forceAnimate:x"]=!0),x=Math.round(t),P.attr("translateX",x)},P.ySetter=function(t){v=P.y=Math.round(t),P.attr("translateY",v)};var W=P.css,G={css:function(t){if(t){var e={};t=O(t),P.textProps.forEach(function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])}),L.css(e),"width"in e&&M(),"fontSize"in e&&(M(),w())}return W.call(P,t)},getBBox:function(){return{width:f.width+2*E,height:f.height+2*E,x:f.x-E,y:f.y-E}},destroy:function(){D(P.element,"mouseenter"),D(P.element,"mouseleave"),L&&(L=L.destroy()),u&&(u=u.destroy()),i.prototype.destroy.call(P),P=T=M=w=S=null}};return A||(G.shadow=function(t){return t&&(M(),u&&u.shadow(t)),P}),l(P,G)}}),t.Renderer=s}),i(e,"parts/Html.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.attr,s=e.defined,n=e.extend,o=e.pick,r=e.pInt,a=t.createElement,h=t.css,l=t.isFirefox,c=t.isMS,d=t.isWebKit,p=t.SVGElement,u=t.SVGRenderer,f=t.win;n(p.prototype,{htmlCss:function(t){var e,i="SPAN"===this.element.tagName&&t&&"width"in t,s=o(i&&t.width,void 0);return i&&(delete t.width,this.textWidth=s,e=!0),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=n(this.styles,t),h(this.element,t),e&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,n=this.translateY||0,o=this.x||0,a=this.y||0,l=this.textAlign||"left",c={left:0,center:.5,right:1}[l],d=this.styles,p=d&&d.whiteSpace;if(h(e,{marginLeft:i,marginTop:n}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){h(t,{marginLeft:i+1,marginTop:n+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var u,f=this.rotation,g=this.textWidth&&r(this.textWidth),m=[f,l,e.innerHTML,this.textWidth,this.textAlign].join(",");g!==this.oldTextWidth&&(g>this.oldTextWidth||(this.textPxLength||(h(e,{width:"",whiteSpace:p||"nowrap"}),e.offsetWidth))>g)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(h(e,{width:g+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,m!==this.cTT&&(u=t.fontMetrics(e.style.fontSize,e).b,!s(f)||f===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(f,c,u),this.getSpanCorrection(!s(f)&&this.textPxLength||e.offsetWidth,u,c,f,l)),h(e,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=f,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},n=this.renderer.getTransformKey();s[n]=s.transform="rotate("+t+"deg)",s[n+(l?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",h(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),n(u.prototype,{getTransformKey:function(){return c&&!/Edge/.test(f.navigator.userAgent)?"-ms-transform":d?"-webkit-transform":l?"MozTransform":f.opera?"-o-transform":""},html:function(t,e,s){var r=this.createElement("span"),h=r.element,l=r.renderer,c=l.isSVG,d=function(t,e){["opacity","visibility"].forEach(function(i){t[i+"Setter"]=function(s,n,o){var r=t.div?t.div.style:e;p.prototype[i+"Setter"].call(this,s,n,o),r&&(r[n]=s)}}),t.addedSetters=!0};return r.textSetter=function(t){t!==h.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,h.innerHTML=o(t,""),r.doTransform=!0},c&&d(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),r[e]=t,r.doTransform=!0},r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},r.attr({text:t,x:Math.round(e),y:Math.round(s)}).css({position:"absolute"}),l.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),h.style.whiteSpace="nowrap",r.css=r.htmlCss,c&&(r.add=function(t){var e,s,o=l.box.parentNode,c=[];if(this.parentGroup=t,t){if(!(e=t.div)){for(s=t;s;)c.push(s),s=s.parentGroup;c.reverse().forEach(function(t){var s,h=i(t.element,"class");function l(e,i){t[i]=e,"translateX"===i?s.left=e+"px":s.top=e+"px",t.doTransform=!0}e=t.div=t.div||a("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},e||o),s=e.style,n(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(e),on:function(){return c[0].div&&r.on.apply({element:c[0].div},arguments),t},translateXSetter:l,translateYSetter:l}),t.addedSetters||d(t)})}}else e=o;return e.appendChild(h),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r}})}),i(e,"parts/Time.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.defined,s=e.extend,n=e.isObject,o=e.objectEach,r=e.pad,a=e.pick,h=e.splat,l=t,c=l.merge,d=l.timeUnits,p=l.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=a(t&&t.useUTC,!0),i=this;this.options=t=c(!0,this.options||{},t),this.Date=t.Date||p.Date||Date,this.useUTC=e,this.timezoneOffset=e&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone),this.variableTimezone||this.timezoneOffset?(this.get=function(t,e){var s,n=e.getTime(),o=n-i.getTimezoneOffset(e);return e.setTime(o),s=e["getUTC"+t](),e.setTime(n),s},this.set=function(t,e,s){var n,o,r;"Milliseconds"===t||"Seconds"===t||"Minutes"===t&&e.getTimezoneOffset()%60==0?e["set"+t](s):(o=i.getTimezoneOffset(e),n=e.getTime()-o,e.setTime(n),e["setUTC"+t](s),r=i.getTimezoneOffset(e),n=e.getTime()+r,e.setTime(n))}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(t,e,i,s,n,o){var r,h,c;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=h=this.getTimezoneOffset(r),h!==(c=this.getTimezoneOffset(r))?r+=c-h:h-36e5!==this.getTimezoneOffset(r-36e5)||l.isSafari||(r-=36e5)):r=new this.Date(t,e,a(i,1),a(s,0),a(n,0),a(o,0)).getTime(),r},timezoneOffsetFunction:function(){var t=this,e=this.options,i=p.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};l.error(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t)}:function(){return 6e4*(t.timezoneOffset||0)}},dateFormat:function(t,e,n){if(!i(e)||isNaN(e))return l.defaultOptions.lang.invalidDate||"";t=a(t,"%Y-%m-%d %H:%M:%S");var h=this,c=new this.Date(e),d=this.get("Hours",c),p=this.get("Day",c),u=this.get("Date",c),f=this.get("Month",c),g=this.get("FullYear",c),m=l.defaultOptions.lang,x=m.weekdays,v=m.shortWeekdays,y=s({a:v?v[p]:x[p].substr(0,3),A:x[p],d:r(u),e:r(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:r(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:r(d),k:d,I:r(d%12||12),l:d%12||12,M:r(h.get("Minutes",c)),p:d<12?"AM":"PM",P:d<12?"am":"pm",S:r(c.getSeconds()),L:r(Math.floor(e%1e3),3)},l.dateFormats);return o(y,function(i,s){for(;-1!==t.indexOf("%"+s);)t=t.replace("%"+s,"function"==typeof i?i.call(h,e):i)}),n?t.substr(0,1).toUpperCase()+t.substr(1):t},resolveDTLFormat:function(t){return n(t,!0)?t:{main:(t=h(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,n,o){var r,h,l,c,p=this,u=p.Date,f=[],g={},m=new u(e),x=t.unitRange,v=t.count||1;if(o=a(o,1),i(e)){p.set("Milliseconds",m,x>=d.second?0:v*Math.floor(p.get("Milliseconds",m)/v)),x>=d.second&&p.set("Seconds",m,x>=d.minute?0:v*Math.floor(p.get("Seconds",m)/v)),x>=d.minute&&p.set("Minutes",m,x>=d.hour?0:v*Math.floor(p.get("Minutes",m)/v)),x>=d.hour&&p.set("Hours",m,x>=d.day?0:v*Math.floor(p.get("Hours",m)/v)),x>=d.day&&p.set("Date",m,x>=d.month?1:Math.max(1,v*Math.floor(p.get("Date",m)/v))),x>=d.month&&(p.set("Month",m,x>=d.year?0:v*Math.floor(p.get("Month",m)/v)),h=p.get("FullYear",m)),x>=d.year&&(h-=h%v,p.set("FullYear",m,h)),x===d.week&&(c=p.get("Day",m),p.set("Date",m,p.get("Date",m)-c+o+(c<o?-7:0))),h=p.get("FullYear",m);var y=p.get("Month",m),b=p.get("Date",m),k=p.get("Hours",m);e=m.getTime(),p.variableTimezone&&(l=n-e>4*d.month||p.getTimezoneOffset(e)!==p.getTimezoneOffset(n));var M=m.getTime();for(r=1;M<n;)f.push(M),x===d.year?M=p.makeTime(h+r*v,0):x===d.month?M=p.makeTime(h,y+r*v):!l||x!==d.day&&x!==d.week?l&&x===d.hour&&v>1?M=p.makeTime(h,y,b,k+r*v):M+=x*v:M=p.makeTime(h,y,b+r*v*(x===d.day?1:7)),r++;f.push(M),x<=d.hour&&f.length<1e4&&f.forEach(function(t){t%18e5==0&&"000000000"===p.dateFormat("%H%M%S%L",t)&&(g[t]="day")})}return f.info=s(t,{higherRanks:g,totalRange:x*v}),f}}}),i(e,"parts/Options.js",[e["parts/Globals.js"]],function(t){var e=t.color,i=t.isTouchDevice,s=t.merge,n=t.svg;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n,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"},footerFormat:"",padding:8,snap:i?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=s(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(s(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)}}),i(e,"parts/Tick.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.clamp,s=e.correctFloat,n=e.defined,o=e.destroyObjectProperties,r=e.extend,a=e.isNumber,h=e.objectEach,l=e.pick,c=t.fireEvent,d=t.merge,p=t.deg2rad;t.Tick=function(t,e,i,s,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,this.isNewLabel=!0,this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||s||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,e,i,o,a,h=this,c=h.axis,d=c.options,p=c.chart,u=c.categories,f=c.names,g=h.pos,m=l(h.options&&h.options.labels,d.labels),x=c.tickPositions,v=g===x[0],y=g===x[x.length-1],b=this.parameters.category||(u?l(u[g],f[g],g):g),k=h.label,M=(!m.step||1===m.step)&&1===c.tickInterval,w=x.info;c.isDatetimeAxis&&w&&(e=(i=p.time.resolveDTLFormat(d.dateTimeLabelFormats[!d.grid&&w.higherRanks[g]||w.unitName])).main),h.isFirst=v,h.isLast=y,h.formatCtx={axis:c,chart:p,isFirst:v,isLast:y,dateTimeLabelFormat:e,tickPositionInfo:w,value:c.isLog?s(c.lin2log(b)):b,pos:g},t=c.labelFormatter.call(h.formatCtx,this.formatCtx),(a=i&&i.list)&&(h.shortenLabel=function(){for(o=0;o<a.length;o++)if(k.attr({text:c.labelFormatter.call(r(h.formatCtx,{dateTimeLabelFormat:a[o]}))}),k.getBBox().width<c.getSlotWidth(h)-2*l(m.padding,5))return;k.attr({text:""})}),M&&c._addedPlotLB&&c.isXAxis&&h.moveLabel(t,m),n(k)||h.movedLabel?k&&k.textStr!==t&&!M&&(!k.textWidth||m.style&&m.style.width||k.styles.width||k.css({width:null}),k.attr({text:t}),k.textPxLength=k.getBBox().width):(h.label=k=h.createLabel({x:0,y:0},t,m),h.rotation=0)},moveLabel:function(t,e){var i,s,n,o=this,r=o.label,a=!1,l=o.axis,c=l.chart,d=l.reversed,p=c.inverted;r&&r.textStr===t?(o.movedLabel=r,a=!0,delete o.label):h(l.ticks,function(e){a||e.isNew||e===o||!e.label||e.label.textStr!==t||(o.movedLabel=e.label,a=!0,e.labelPos=o.movedLabel.xy,delete e.label)}),a||!o.labelPos&&!r||(i=o.labelPos||r.xy,s=p?i.x:d?0:l.width+l.left,n=p?d?l.width+l.left:0:i.y,o.movedLabel=o.createLabel({x:s,y:n},t,e),o.movedLabel&&o.movedLabel.attr({opacity:0}))},createLabel:function(t,e,i){var s=this.axis,o=s.chart,r=n(e)&&i.enabled?o.renderer.text(e,t.x,t.y,i.useHTML).add(s.labelGroup):null;return r&&(o.styledMode||r.css(d(i.style)),r.textPxLength=r.getBBox().width),r},replaceMovedLabel:function(){var t,e,i=this.label,s=this.axis,n=s.reversed,o=this.axis.chart.inverted;i&&!this.isNew&&(t=o?i.xy.x:n?s.left:s.width+s.left,e=o?n?s.width+s.top:s.top:i.xy.y,i.animate({x:t,y:e,opacity:0},void 0,i.destroy),delete this.label),s.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i,s=this.axis,n=s.options.labels,o=t.x,r=s.chart.chartWidth,a=s.chart.spacing,h=l(s.labelLeft,Math.min(s.pos,a[3])),c=l(s.labelRight,Math.max(s.isRadial?0:s.pos+s.len,r-a[1])),d=this.label,u=this.rotation,f={left:0,center:.5,right:1}[s.labelAlign||d.attr("align")],g=d.getBBox().width,m=s.getSlotWidth(this),x=m,v=f,y=1,b={};u||"justify"!==l(n.overflow,"justify")?u<0&&o-f*g<h?i=Math.round(o/Math.cos(u*p)-h):u>0&&o+f*g>c&&(i=Math.round((r-o)/Math.cos(u*p))):(e=o+(1-f)*g,o-f*g<h?x=t.x+x*(1-f)-h:e>c&&(x=c-t.x+x*f,y=-1),(x=Math.min(m,x))<m&&"center"===s.labelAlign&&(t.x+=y*(m-x-v*(m-Math.min(g,x)))),(g>x||s.autoRotation&&(d.styles||{}).width)&&(i=x)),i&&(this.shortenLabel?this.shortenLabel():(b.width=Math.floor(i),(n.style||{}).textOverflow||(b.textOverflow="ellipsis"),d.css(b)))},getPosition:function(t,e,n,o){var r,a=this.axis,h=a.chart,l=o&&h.oldChartHeight||h.chartHeight;return(r={x:t?s(a.translate(e+n,null,null,o)+a.transB):a.left+a.offset+(a.opposite?(o&&h.oldChartWidth||h.chartWidth)-a.right-a.left:0),y:t?l-a.bottom+a.offset-(a.opposite?a.height:0):s(l-a.translate(e+n,null,null,o)-a.transB)}).y=i(r.y,-1e5,1e5),c(this,"afterGetPosition",{pos:r}),r},getLabelPosition:function(t,e,i,s,o,r,a,h){var l,d=this.axis,u=d.transA,f=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,g=d.staggerLines,m=d.tickRotCorr||{x:0,y:0},x=o.y,v=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={};return n(x)||(x=0===d.side?i.rotation?-8:-i.getBBox().height:2===d.side?m.y+8:Math.cos(i.rotation*p)*(m.y-i.getBBox(!1,0).height/2)),t=t+o.x+v+m.x-(r&&s?r*u*(f?-1:1):0),e=e+x-(r&&!s?r*u*(f?1:-1):0),g&&(l=a/(h||1)%g,d.opposite&&(l=g-l-1),e+=l*(d.labelOffset/g)),y.x=t,y.y=Math.round(e),c(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:r,index:a}),y},getMarkPath:function(t,e,i,s,n,o){return o.crispLine(["M",t,e,"L",t+(n?0:-i),e+(n?i:0)],s)},renderGridLine:function(t,e,i){var s,n=this.axis,o=n.options,r=this.gridLine,a={},h=this.pos,c=this.type,d=l(this.tickmarkOffset,n.tickmarkOffset),p=n.chart.renderer,u=c?c+"Grid":"grid",f=o[u+"LineWidth"],g=o[u+"LineColor"],m=o[u+"LineDashStyle"];r||(n.chart.styledMode||(a.stroke=g,a["stroke-width"]=f,m&&(a.dashstyle=m)),c||(a.zIndex=1),t&&(e=0),this.gridLine=r=p.path().attr(a).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(n.gridGroup)),r&&(s=n.getPlotLinePath({value:h+d,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:s,opacity:e})},renderMark:function(t,e,i){var s=this.axis,n=s.options,o=s.chart.renderer,r=this.type,a=r?r+"Tick":"tick",h=s.tickSize(a),c=this.mark,d=!c,p=t.x,u=t.y,f=l(n[a+"Width"],!r&&s.isXAxis?1:0),g=n[a+"Color"];h&&(s.opposite&&(h[0]=-h[0]),d&&(this.mark=c=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||c.attr({stroke:g,"stroke-width":f})),c[d?"attr":"animate"]({d:this.getMarkPath(p,u,h[0],c.strokeWidth()*i,s.horiz,o),opacity:e}))},renderLabel:function(t,e,i,s){var n=this.axis,o=n.horiz,r=n.options,h=this.label,c=r.labels,d=c.step,p=l(this.tickmarkOffset,n.tickmarkOffset),u=!0,f=t.x,g=t.y;h&&a(f)&&(h.xy=t=this.getLabelPosition(f,g,h,o,c,p,s,d),this.isFirst&&!this.isLast&&!l(r.showFirstLabel,1)||this.isLast&&!this.isFirst&&!l(r.showLastLabel,1)?u=!1:!o||c.step||c.rotation||e||0===i||this.handleOverflow(t),d&&s%d&&(u=!1),u&&a(t.y)?(t.opacity=i,h[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(h.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,s){var n=this.axis,o=n.horiz,r=this.pos,a=l(this.tickmarkOffset,n.tickmarkOffset),h=this.getPosition(o,r,a,i),c=h.x,d=h.y,p=o&&c===n.pos+n.len||!o&&d===n.pos?-1:1;s=l(s,1),this.isActive=!0,this.renderGridLine(i,s,p),this.renderMark(h,s,p),this.renderLabel(h,i,s,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){o(this,this.axis)}}}),i(e,"parts/Axis.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.arrayMax,n=e.arrayMin,o=e.clamp,r=e.correctFloat,a=e.defined,h=e.destroyObjectProperties,l=e.extend,c=e.isArray,d=e.isNumber,p=e.isString,u=e.objectEach,f=e.pick,g=e.relativeLength,m=e.splat,x=e.syncTimeout,v=t.addEvent,y=t.color,b=t.defaultOptions,k=t.deg2rad,M=t.fireEvent,w=t.format,S=t.getMagnitude,T=t.merge,A=t.normalizeTickInterval,P=t.removeEvent,L=t.seriesTypes,C=t.Tick,O=function(){this.init.apply(this,arguments)};return l(O.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,i){var s=i.isX,n=this;n.chart=e,n.horiz=e.inverted&&!n.isZAxis?!s:s,n.isXAxis=s,n.coll=n.coll||(s?"xAxis":"yAxis"),M(this,"init",{userOptions:i}),n.opposite=i.opposite,n.side=i.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(i);var o=this.options,r=o.type,h="datetime"===r;n.labelFormatter=o.labels.formatter||n.defaultLabelFormatter,n.userOptions=i,n.minPixelPadding=0,n.reversed=o.reversed,n.visible=!1!==o.visible,n.zoomEnabled=!1!==o.zoomEnabled,n.hasNames="category"===r||!0===o.categories,n.categories=o.categories||n.hasNames,n.names||(n.names=[],n.names.keys={}),n.plotLinesAndBandsGroups={},n.isLog="logarithmic"===r,n.isDatetimeAxis=h,n.positiveValuesOnly=n.isLog&&!n.allowNegativeLog,n.isLinked=a(o.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=o.minRange||o.maxZoom,n.range=o.range,n.offset=o.offset||0,n.stacks={},n.oldStacks={},n.stacksTouched=0,n.max=null,n.min=null,n.crosshair=f(o.crosshair,m(e.options.tooltip.crosshairs)[s?0:1],!1);var l=n.options.events;-1===e.axes.indexOf(n)&&(s?e.axes.splice(e.xAxis.length,0,n):e.axes.push(n),e[n.coll].push(n)),n.series=n.series||[],e.inverted&&!n.isZAxis&&s&&void 0===n.reversed&&(n.reversed=!0),u(l,function(e,i){t.isFunction(e)&&v(n,i,e)}),n.lin2log=o.linearToLogConverter||n.lin2log,n.isLog&&(n.val2lin=n.log2lin,n.lin2val=n.lin2log),M(this,"afterInit")},setOptions:function(t){this.options=T(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],T(b[this.coll],t)),M(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var t,e,i=this.axis,s=this.value,n=i.chart.time,o=i.categories,r=this.dateTimeLabelFormat,a=b.lang,h=a.numericSymbols,l=a.numericSymbolMagnitude||1e3,c=h&&h.length,d=i.options.labels.format,p=i.isLog?Math.abs(s):i.tickInterval,u=this.chart,f=u.numberFormatter;if(d)e=w(d,this,u);else if(o)e=s;else if(r)e=n.dateFormat(r,s);else if(c&&p>=1e3)for(;c--&&void 0===e;)p>=(t=Math.pow(l,c+1))&&10*s%t==0&&null!==h[c]&&0!==s&&(e=f(s/t,-1)+h[c]);return void 0===e&&(e=Math.abs(s)>=1e4?f(s,-1):f(s,-1,void 0,"")),e},getSeriesExtremes:function(){var t,e=this,i=e.chart;M(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),e.series.forEach(function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var n,o,r,h=s.options,l=h.threshold;e.hasVisibleSeries=!0,e.positiveValuesOnly&&l<=0&&(l=null),e.isXAxis?(n=s.xData).length&&(o=(t=s.getXExtremes(n)).min,r=t.max,d(o)||o instanceof Date||(n=n.filter(d),o=(t=s.getXExtremes(n)).min,r=t.max),n.length&&(e.dataMin=Math.min(f(e.dataMin,o),o),e.dataMax=Math.max(f(e.dataMax,r),r))):(s.getExtremes(),r=s.dataMax,o=s.dataMin,a(o)&&a(r)&&(e.dataMin=Math.min(f(e.dataMin,o),o),e.dataMax=Math.max(f(e.dataMax,r),r)),a(l)&&(e.threshold=l),h.softThreshold&&!e.positiveValuesOnly||(e.softThreshold=!1))}})}),M(this,"afterGetSeriesExtremes")},translate:function(t,e,i,s,n,o){var r=this.linkedParent||this,a=1,h=0,l=s?r.oldTransA:r.transA,c=s?r.oldMin:r.min,p=0,u=r.minPixelPadding,f=(r.isOrdinal||r.isBroken||r.isLog&&n)&&r.lin2val;return l||(l=r.transA),i&&(a*=-1,h=r.len),r.reversed&&(h-=(a*=-1)*(r.sector||r.len)),e?(t=t*a+h,p=(t-=u)/l+c,f&&(p=r.lin2val(p))):(f&&(t=r.val2lin(t)),p=d(c)?a*(t-c)*l+h+a*u+(d(o)?l*o:0):void 0),p},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t){var e,i,s,n,r,a,h=this,l=h.chart,c=h.left,p=h.top,u=t.old,g=t.value,m=t.translatedValue,x=t.lineWidth,v=t.force,y=u&&l.oldChartHeight||l.chartHeight,b=u&&l.oldChartWidth||l.chartWidth,k=h.transB,w=function(t,e,i){return("pass"!==v&&t<e||t>i)&&(v?t=o(t,e,i):r=!0),t};return a={value:g,lineWidth:x,old:u,force:v,acrossPanes:t.acrossPanes,translatedValue:m},M(this,"getPlotLinePath",a,function(t){m=f(m,h.translate(g,null,null,u)),m=o(m,-1e5,1e5),e=s=Math.round(m+k),i=n=Math.round(y-m-k),d(m)?h.horiz?(i=p,n=y-h.bottom,e=s=w(e,c,c+h.width)):(e=c,s=b-h.right,i=n=w(i,p,p+h.height)):(r=!0,v=!1),t.path=r&&!v?null:l.renderer.crispLine(["M",e,i,"L",s,n],x||1)}),a.path},getLinearTickPositions:function(t,e,i){var s,n,o,a=r(Math.floor(e/t)*t),h=r(Math.ceil(i/t)*t),l=[];if(r(a+t)===a&&(o=20),this.single)return[e];for(s=a;s<=h&&(l.push(s),(s=r(s+t,o))!==n);)n=s;return l},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?f(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t,e=this,i=e.options,s=e.tickPositions,n=e.minorTickInterval,o=[],r=e.pointRangePadding||0,a=e.min-r,h=e.max+r,l=h-a;if(l&&l/n<e.len/3)if(e.isLog)this.paddedTicks.forEach(function(t,i,s){i&&o.push.apply(o,e.getLogTickPositions(n,s[i-1],s[i],!0))});else if(e.isDatetimeAxis&&"auto"===this.getMinorTickInterval())o=o.concat(e.getTimeTicks(e.normalizeTimeTickInterval(n),a,h,i.startOfWeek));else for(t=a+(s[0]-a)%n;t<=h&&t!==o[0];t+=n)o.push(t);return 0!==o.length&&e.trimTicks(o),o},adjustForMinRange:function(){var t,e,i,o,r,h,l,c,d,p,u=this.options,g=this.min,m=this.max;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(a(u.min)||a(u.max)?this.minRange=null:(this.series.forEach(function(t){for(h=t.xData,l=t.xIncrement?1:h.length-1,o=l;o>0;o--)r=h[o]-h[o-1],(void 0===i||r<i)&&(i=r)}),this.minRange=Math.min(5*i,this.dataMax-this.dataMin))),m-g<this.minRange&&(e=this.dataMax-this.dataMin>=this.minRange,c=[g-(t=((p=this.minRange)-m+g)/2),f(u.min,g-t)],e&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=[(g=s(c))+p,f(u.max,g+p)],e&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(m=n(d))-g<p&&(c[0]=m-p,c[1]=f(u.min,m-p),g=s(c))),this.min=g,this.max=m},getClosest:function(){var t;return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,s=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&a(i)&&s&&(t=a(t)?Math.min(t,i):i)}),t},nameToX:function(t){var e,i=c(this.categories),s=i?this.categories:this.names,n=t.options.x;return t.series.requireSorting=!1,a(n)||(n=!1===this.options.uniqueNames?t.series.autoIncrement():i?s.indexOf(t.name):f(s.keys[t.name],-1)),-1===n?i||(e=s.length):e=n,void 0!==e&&(this.names[e]=t.name,this.names.keys[t.name]=e),e},updateNames:function(){var t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,s){var n;i&&i.options&&void 0!==i.name&&void 0!==(n=t.nameToX(i))&&n!==i.x&&(i.x=n,e.xData[s]=n)})}))},setAxisTranslation:function(t){var e,i,s=this,n=s.max-s.min,o=s.axisPointRange||0,r=0,a=0,h=s.linkedParent,l=!!s.categories,c=s.transA,d=s.isXAxis;(d||l||o)&&(e=s.getClosest(),h?(r=h.minPointOffset,a=h.pointRangePadding):s.series.forEach(function(t){var i=l?1:d?f(t.options.pointRange,e,0):s.axisPointRange||0,n=t.options.pointPlacement;if(o=Math.max(o,i),!s.single||l){var h=L.xrange&&t instanceof L.xrange?!d:d;r=Math.max(r,h&&p(n)?0:i/2),a=Math.max(a,h&&"on"===n?0:i)}}),i=s.ordinalSlope&&e?s.ordinalSlope/e:1,s.minPointOffset=r*=i,s.pointRangePadding=a*=i,s.pointRange=Math.min(o,s.single&&l?1:n),d&&(s.closestPointRange=e)),t&&(s.oldTransA=c),s.translationSlope=s.transA=c=s.staticScale||s.len/(n+a||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=c*r,M(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i,s,n,o,h,l,c,p=this,u=p.chart,g=p.options,m=p.isLog,x=p.isDatetimeAxis,v=p.isXAxis,y=p.isLinked,b=g.maxPadding,k=g.minPadding,w=g.tickInterval,T=g.tickPixelInterval,P=p.categories,L=d(p.threshold)?p.threshold:null,C=p.softThreshold;x||P||y||this.getTickAmount(),l=f(p.userMin,g.min),c=f(p.userMax,g.max),y?(p.linkedParent=u[p.coll][g.linkedTo],s=p.linkedParent.getExtremes(),p.min=f(s.min,s.dataMin),p.max=f(s.max,s.dataMax),g.type!==p.linkedParent.options.type&&t.error(11,1,u)):(!C&&a(L)&&(p.dataMin>=L?(o=L,k=0):p.dataMax<=L&&(h=L,b=0)),p.min=f(l,o,p.dataMin),p.max=f(c,h,p.dataMax)),m&&(p.positiveValuesOnly&&!e&&Math.min(p.min,f(p.dataMin,p.min))<=0&&t.error(10,1,u),p.min=r(p.log2lin(p.min),16),p.max=r(p.log2lin(p.max),16)),p.range&&a(p.max)&&(p.userMin=p.min=l=Math.max(p.dataMin,p.minFromRange()),p.userMax=c=p.max,p.range=null),M(p,"foundExtremes"),p.beforePadding&&p.beforePadding(),p.adjustForMinRange(),P||p.axisPointRange||p.usePercentage||y||!a(p.min)||!a(p.max)||(i=p.max-p.min)&&(!a(l)&&k&&(p.min-=i*k),!a(c)&&b&&(p.max+=i*b)),d(p.userMin)||(d(g.softMin)&&g.softMin<p.min&&(p.min=l=g.softMin),d(g.floor)&&(p.min=Math.max(p.min,g.floor))),d(p.userMax)||(d(g.softMax)&&g.softMax>p.max&&(p.max=c=g.softMax),d(g.ceiling)&&(p.max=Math.min(p.max,g.ceiling))),C&&a(p.dataMin)&&(L=L||0,!a(l)&&p.min<L&&p.dataMin>=L?p.min=p.options.minRange?Math.min(L,p.max-p.minRange):L:!a(c)&&p.max>L&&p.dataMax<=L&&(p.max=p.options.minRange?Math.max(L,p.min+p.minRange):L)),p.min===p.max||void 0===p.min||void 0===p.max?p.tickInterval=1:y&&!w&&T===p.linkedParent.options.tickPixelInterval?p.tickInterval=w=p.linkedParent.tickInterval:p.tickInterval=f(w,this.tickAmount?(p.max-p.min)/Math.max(this.tickAmount-1,1):void 0,P?1:(p.max-p.min)*T/Math.max(p.len,T)),v&&!e&&p.series.forEach(function(t){t.processData(p.min!==p.oldMin||p.max!==p.oldMax)}),p.setAxisTranslation(!0),p.beforeSetTickPositions&&p.beforeSetTickPositions(),p.postProcessTickInterval&&(p.tickInterval=p.postProcessTickInterval(p.tickInterval)),p.pointRange&&!w&&(p.tickInterval=Math.max(p.pointRange,p.tickInterval)),n=f(g.minTickInterval,p.isDatetimeAxis&&p.closestPointRange),!w&&p.tickInterval<n&&(p.tickInterval=n),x||m||w||(p.tickInterval=A(p.tickInterval,null,S(p.tickInterval),f(g.allowDecimals,!(p.tickInterval>.5&&p.tickInterval<5&&p.max>1e3&&p.max<9999)),!!this.tickAmount)),this.tickAmount||(p.tickInterval=p.unsquish()),this.setTickPositions()},setTickPositions:function(){var e,i=this.options,s=i.tickPositions,n=this.getMinorTickInterval(),o=i.tickPositioner,r=i.startOnTick,h=i.endOnTick;this.tickmarkOffset=this.categories&&"between"===i.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&a(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==i.allowDecimals),this.tickPositions=e=s&&s.slice(),e||(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(e=[this.min,this.max],t.error(19,!1,this.chart)):e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e.length>this.len&&(e=[e[0],e.pop()])[0]===e[1]&&(e.length=1),this.tickPositions=e,o&&(o=o.apply(this,[this.min,this.max]))&&(this.tickPositions=e=o)),this.paddedTicks=e.slice(0),this.trimTicks(e,r,h),this.isLinked||(this.single&&e.length<2&&!this.categories&&(this.min-=.5,this.max+=.5),s||o||this.adjustTickAmount()),M(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var s=t[0],n=t[t.length-1],o=this.minPointOffset||0;if(M(this,"trimTicks"),!this.isLinked){if(e&&s!==-1/0)this.min=s;else for(;this.min-o>t[0];)t.shift();if(i)this.max=n;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&a(s)&&!this.options.tickPositions&&t.push((n+s)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.isLog||this.chart[this.coll].forEach(function(i){var s=i.options,n=[i.horiz?s.left:s.top,s.width,s.height,s.pane].join(",");i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!a(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),e<4&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e,i,s=this.options,n=this.tickInterval,o=this.tickPositions,h=this.tickAmount,l=this.finalTickAmt,c=o&&o.length,d=f(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(c<h){for(t=this.min;o.length<h;)o.length%2||t===d?o.push(r(o[o.length-1]+n)):o.unshift(r(o[0]-n));this.transA*=(c-1)/(h-1),this.min=s.startOnTick?o[0]:Math.min(this.min,o[0]),this.max=s.endOnTick?o[o.length-1]:Math.max(this.max,o[o.length-1])}else c>h&&(this.tickInterval*=2,this.setTickPositions());if(a(l)){for(i=e=o.length;i--;)(3===l&&i%2==1||l<=2&&i>0&&i<e-1)&&o.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some(function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty});this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),M(this,"afterSetScale")},setExtremes:function(t,e,i,s,n){var o=this,r=o.chart;i=f(i,!0),o.series.forEach(function(t){delete t.kdTree}),n=l(n,{min:t,max:e}),M(o,"setExtremes",n,function(){o.userMin=t,o.userMax=e,o.eventArgs=n,i&&r.redraw(s)})},zoom:function(t,e){var i=this.dataMin,s=this.dataMax,n=this.options,o=Math.min(i,f(n.min,i)),r=Math.max(s,f(n.max,s)),h={newMin:t,newMax:e};return M(this,"zoom",h,function(t){var e=t.newMin,n=t.newMax;e===this.min&&n===this.max||(this.allowZoomOutside||(a(i)&&(e<o&&(e=o),e>r&&(e=r)),a(s)&&(n<o&&(n=o),n>r&&(n=r))),this.displayBtn=void 0!==e||void 0!==n,this.setExtremes(e,n,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),h.zoomed},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(g(f(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(g(f(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),r=this.top=Math.round(g(f(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(g(f(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-o-r,this.right=t.chartWidth-n-a,this.len=Math.max(s?n:o,0),this.pos=s?a:r},getExtremes:function(){var t=this.isLog;return{min:t?r(this.lin2log(this.min)):this.min,max:t?r(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?this.lin2log(this.min):this.min,s=e?this.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(f(t,0)-90*this.side+720)%360,i={align:"center"};return M(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align},tickSize:function(t){var e,i,s=this.options,n=s[t+"Length"],o=f(s[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);return o&&n&&("inside"===s[t+"Position"]&&(n=-n),i=[n,o]),M(this,"afterTickSize",e={tickSize:i}),e.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,s=this.options.labels,n=this.horiz,o=this.tickInterval,h=o,l=this.len/(((this.categories?1:0)+this.max-this.min)/o),c=s.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,u=this.max-this.min,g=function(t){var e=t/(l||1);return(e=e>1?Math.ceil(e):1)*o>u&&t!==1/0&&l!==1/0&&u&&(e=Math.ceil(u/o)),r(e*o)};return n?(i=!s.staggerLines&&!s.step&&(a(c)?[c]:l<f(s.autoRotationLimit,80)&&s.autoRotation))&&i.forEach(function(i){var s;(i===c||i&&i>=-90&&i<=90)&&(s=(e=g(Math.abs(d.h/Math.sin(k*i))))+Math.abs(i/360))<p&&(p=s,t=i,h=e)}):s.step||(h=g(d.h)),this.autoRotation=i,this.labelRotation=f(t,c),h},getSlotWidth:function(t){var e=this.chart,i=this.horiz,s=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];return t&&t.slotWidth||i&&(s.step||0)<2&&!s.rotation&&(this.staggerLines||1)*this.len/n||!i&&(s.style&&parseInt(s.style.width,10)||o&&o-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t,e,i,s,n,o=this.chart,r=o.renderer,a=this.tickPositions,h=this.ticks,l=this.options.labels,c=l&&l.style||{},d=this.horiz,u=this.getSlotWidth(),f=Math.max(1,Math.round(u-2*(l.padding||5))),g={},m=this.labelMetrics(),x=l.style&&l.style.textOverflow,v=0;if(p(l.rotation)||(g.rotation=l.rotation||0),a.forEach(function(t){(t=h[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>v&&(v=t.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>f&&v>m.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(u&&(t=f,!x))for(e="clip",s=a.length;!d&&s--;)n=a[s],(i=h[n].label)&&(i.styles&&"ellipsis"===i.styles.textOverflow?i.css({textOverflow:"clip"}):i.textPxLength>u&&i.css({width:u+"px"}),i.getBBox().height>this.len/a.length-(m.h-m.f)&&(i.specificTextOverflow="ellipsis"));g.rotation&&(t=v>.5*o.chartHeight?.33*o.chartHeight:v,x||(e="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(g.align=this.labelAlign),a.forEach(function(i){var s=h[i],n=s&&s.label,o=c.width,r={};n&&(n.attr(g),s.shortenLabel?s.shortenLabel():t&&!o&&"nowrap"!==c.whiteSpace&&(t<n.textPxLength||"SPAN"===n.element.tagName)?(r.width=t,x||(r.textOverflow=n.specificTextOverflow||e),n.css(r)):n.styles&&n.styles.width&&!r.width&&!o&&n.css({width:null}),delete n.specificTextOverflow,s.rotation=g.rotation)},this),this.tickRotCorr=r.rotCorr(m.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&a(this.min)&&a(this.max)},addTitle:function(t){var e,i=this.chart.renderer,s=this.horiz,n=this.opposite,o=this.options.title,r=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),r||this.axisTitle.css(T(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),r||o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new C(this,t)},getOffset:function(){var t,e,i,s,n,o,r,h=this,l=h.chart,c=l.renderer,d=h.options,p=h.tickPositions,g=h.ticks,m=h.horiz,x=h.side,v=l.inverted&&!h.isZAxis?[1,0,3,2][x]:x,y=0,b=0,k=d.title,w=d.labels,S=0,T=l.axisOffset,A=l.clipOffset,P=[-1,1,1,-1][x],L=d.className,C=h.axisParent;t=h.hasData(),h.showAxis=e=t||f(d.showEmpty,!0),h.staggerLines=h.horiz&&w.staggerLines,h.axisGroup||(h.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(L||"")).add(C),h.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(L||"")).add(C),h.labelGroup=c.g("axis-labels").attr({zIndex:w.zIndex||7}).addClass("highcharts-"+h.coll.toLowerCase()+"-labels "+(L||"")).add(C)),t||h.isLinked?(p.forEach(function(t,e){h.generateTick(t,e)}),h.renderUnsquish(),h.reserveSpaceDefault=0===x||2===x||{1:"left",3:"right"}[x]===h.labelAlign,f(w.reserveSpace,"center"===h.labelAlign||null,h.reserveSpaceDefault)&&p.forEach(function(t){S=Math.max(g[t].getLabelSize(),S)}),h.staggerLines&&(S*=h.staggerLines),h.labelOffset=S*(h.opposite?-1:1)):u(g,function(t,e){t.destroy(),delete g[e]}),k&&k.text&&!1!==k.enabled&&(h.addTitle(e),e&&!1!==k.reserveSpace&&(h.titleOffset=y=h.axisTitle.getBBox()[m?"height":"width"],i=k.offset,b=a(i)?0:f(k.margin,m?5:10))),h.renderLine(),h.offset=P*f(d.offset,T[x]?T[x]+(d.margin||0):0),h.tickRotCorr=h.tickRotCorr||{x:0,y:0},o=0===x?-h.labelMetrics().h:2===x?h.tickRotCorr.y:0,s=Math.abs(S)+b,S&&(s-=o,s+=P*(m?f(w.y,h.tickRotCorr.y+8*P):w.x)),h.axisTitleMargin=f(i,s),h.getMaxLabelDimensions&&(h.maxLabelDimensions=h.getMaxLabelDimensions(g,p)),r=this.tickSize("tick"),T[x]=Math.max(T[x],h.axisTitleMargin+y+P*h.offset,s,p&&p.length&&r?r[0]+P*h.offset:0),n=d.offset?0:2*Math.floor(h.axisLine.strokeWidth()/2),A[v]=Math.max(A[v],n),M(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,s=this.offset,n=this.horiz,o=this.left+(i?this.width:0)+s,r=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine(["M",n?this.left:o,n?r:this.top,"L",n?e.chartWidth-this.right:o,n?r:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,s=this.len,n=this.options.title,o=t?e:i,r=this.opposite,a=this.offset,h=n.x||0,l=n.y||0,c=this.axisTitle,d=this.chart.renderer.fontMetrics(n.style&&n.style.fontSize,c),p=Math.max(c.getBBox(null,0).height-d.h-1,0),u={low:o+(t?0:s),middle:o+s/2,high:o+(t?s:0)}[n.align],f=(t?i+this.height:e)+(t?1:-1)*(r?-1:1)*this.axisTitleMargin+[-p,p,d.f,-p][this.side],g={x:t?u+h:f+(r?this.width:0)+a+h,y:t?f+l-(r?this.height:0)+a:u+l};return M(this,"afterGetTitlePosition",{titlePosition:g}),g},renderMinorTick:function(t){var e=this.chart.hasRendered&&d(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new C(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,s=this.ticks,n=this.chart.hasRendered&&d(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(s[t]||(s[t]=new C(this,t)),n&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))},render:function(){var e,s,n=this,o=n.chart,r=o.renderer,a=n.options,h=n.isLog,l=n.isLinked,c=n.tickPositions,p=n.axisTitle,f=n.ticks,g=n.minorTicks,m=n.alternateBands,v=a.stackLabels,y=a.alternateGridColor,b=n.tickmarkOffset,k=n.axisLine,w=n.showAxis,S=i(r.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[f,g,m].forEach(function(t){u(t,function(t){t.isActive=!1})}),(n.hasData()||l)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(t){n.renderMinorTick(t)}),c.length&&(c.forEach(function(t,e){n.renderTick(t,e)}),b&&(0===n.min||n.single)&&(f[-1]||(f[-1]=new C(n,-1,null,!0)),f[-1].render(-1))),y&&c.forEach(function(i,r){s=void 0!==c[r+1]?c[r+1]+b:n.max-b,r%2==0&&i<n.max&&s<=n.max+(o.polar?-b:b)&&(m[i]||(m[i]=new t.PlotLineOrBand(n)),e=i+b,m[i].options={from:h?n.lin2log(e):e,to:h?n.lin2log(s):s,color:y},m[i].render(),m[i].isActive=!0)}),n._addedPlotLB||((a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),[f,g,m].forEach(function(t){var e,i=[],s=S.duration;u(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),x(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==m&&o.hasRendered&&s?s:0)}),k&&(k[k.isPlaced?"animate":"attr"]({d:this.getLinePath(k.strokeWidth())}),k.isPlaced=!0,k[w?"show":"hide"](w)),p&&w){var T=n.getTitlePosition();d(T.y)?(p[p.isNew?"attr":"animate"](T),p.isNew=!1):(p.attr("y",-9999),p.isNew=!0)}v&&v.enabled&&n.renderStackTotals(),n.isDirty=!1,M(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},keepProps:["extKey","hcEvents","names","series","userMax","userMin"],destroy:function(t){var e,i,s=this,n=s.stacks,o=s.plotLinesAndBands;if(M(this,"destroy",{keepEvents:t}),t||P(s),u(n,function(t,e){h(t),n[e]=null}),[s.ticks,s.minorTicks,s.alternateBands].forEach(function(t){h(t)}),o)for(i=o.length;i--;)o[i].destroy();for(e in["stackTotalGroup","axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){s[t]&&(s[t]=s[t].destroy())}),s.plotLinesAndBandsGroups)s.plotLinesAndBandsGroups[e]=s.plotLinesAndBandsGroups[e].destroy();u(s,function(t,e){-1===s.keepProps.indexOf(e)&&delete s[e]})},drawCrosshair:function(t,e){var i,s,n,o,r=this.crosshair,h=f(r.snap,!0),c=this.cross;if(M(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(a(e)||!h)){if(h?a(e)&&(s=f("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),a(s)&&(o={value:e&&(this.isXAxis?e.x:f(e.stackY,e.y)),translatedValue:s},this.chart.polar&&l(o,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),i=this.getPlotLinePath(o)||null),!a(i))return void this.hideCrosshair();n=this.categories&&!this.isRadial,c||(this.cross=c=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(n?"category ":"thin ")+r.className).attr({zIndex:f(r.zIndex,2)}).add(),this.chart.styledMode||(c.attr({stroke:r.color||(n?y("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":f(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&c.attr({dashstyle:r.dashStyle}))),c.show().attr({d:i}),n&&!r.width&&c.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();M(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),M(this,"afterHideCrosshair")}}),t.Axis=O,O}),i(e,"parts/DateTimeAxis.js",[e["parts/Globals.js"]],function(t){var e=t.Axis,i=t.getMagnitude,s=t.normalizeTickInterval,n=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){var o,r=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],a=r[r.length-1],h=n[a[0]],l=a[1];for(o=0;o<r.length;o++){if(a=r[o],h=n[a[0]],l=a[1],r[o+1])if(t<=(h*l[l.length-1]+n[r[o+1][0]])/2)break}return h===n.year&&t<5*h&&(l=[1,2,5]),{unitRange:h,count:s(t/h,l,"year"===a[0]?Math.max(i(t/h),1):1),unitName:a[0]}}}),i(e,"parts/LogarithmicAxis.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.pick,s=t.Axis,n=t.getMagnitude,o=t.normalizeTickInterval;s.prototype.getLogTickPositions=function(t,e,s,r){var a=this.options,h=this.len,l=[];if(r||(this._minorAutoInterval=null),t>=.5)t=Math.round(t),l=this.getLinearTickPositions(t,e,s);else if(t>=.08){var c,d,p,u,f,g,m;for(c=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=Math.floor(e);d<s+1&&!m;d++)for(u=c.length,p=0;p<u&&!m;p++)(f=this.log2lin(this.lin2log(d)*c[p]))>e&&(!r||g<=s)&&void 0!==g&&l.push(g),g>s&&(m=!0),g=f}else{var x=this.lin2log(e),v=this.lin2log(s),y=r?this.getMinorTickInterval():a.tickInterval,b="auto"===y?null:y,k=a.tickPixelInterval/(r?5:1),M=r?h/this.tickPositions.length:h;t=i(b,this._minorAutoInterval,(v-x)*k/(M||1)),t=o(t,null,n(t)),l=this.getLinearTickPositions(t,x,v).map(this.log2lin),r||(this._minorAutoInterval=t/5)}return r||(this.tickInterval=t),l},s.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},s.prototype.lin2log=function(t){return Math.pow(10,t)}}),i(e,"parts/PlotLineOrBand.js",[e["parts/Globals.js"],e["parts/Axis.js"],e["parts/Utilities.js"]],function(t,e,i){var s=i.arrayMax,n=i.arrayMin,o=i.defined,r=i.destroyObjectProperties,a=i.erase,h=i.extend,l=i.objectEach,c=i.pick,d=t.merge;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){t.fireEvent(this,"render");var e,i=this,s=i.axis,n=s.horiz,r=i.options,a=r.label,h=i.label,p=r.to,u=r.from,f=r.value,g=o(u)&&o(p),m=o(f),x=i.svgElem,v=!x,y=[],b=r.color,k=c(r.zIndex,0),M=r.events,w={class:"highcharts-plot-"+(g?"band ":"line ")+(r.className||"")},S={},T=s.chart.renderer,A=g?"bands":"lines";if(s.isLog&&(u=s.log2lin(u),p=s.log2lin(p),f=s.log2lin(f)),s.chart.styledMode||(m?(w.stroke=b||"#999999",w["stroke-width"]=c(r.width,1),r.dashStyle&&(w.dashstyle=r.dashStyle)):g&&(w.fill=b||"#e6ebf5",r.borderWidth&&(w.stroke=r.borderColor,w["stroke-width"]=r.borderWidth))),S.zIndex=k,A+="-"+k,(e=s.plotLinesAndBandsGroups[A])||(s.plotLinesAndBandsGroups[A]=e=T.g("plot-"+A).attr(S).add()),v&&(i.svgElem=x=T.path().attr(w).add(e)),m)y=s.getPlotLinePath({value:f,lineWidth:x.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!g)return;y=s.getPlotBandPath(u,p,r)}return(v||!x.d)&&y&&y.length?(x.attr({d:y}),M&&l(M,function(t,e){x.on(e,function(t){M[e].apply(i,[t])})})):x&&(y?(x.show(!0),x.animate({d:y})):x.d&&(x.hide(),h&&(i.label=h=h.destroy()))),a&&(o(a.text)||o(a.formatter))&&y&&y.length&&s.width>0&&s.height>0&&!y.isFlat?(a=d({align:n&&g&&"center",x:n?!g&&4:10,verticalAlign:!n&&g&&"middle",y:n?g?16:10:g?6:-4,rotation:n&&!g&&90},a),this.renderLabel(a,y,g,k)):h&&h.hide(),i},renderLabel:function(t,e,i,o){var r,a,h,l,c,d,p=this.label,u=this.axis.chart.renderer;p||((r={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=o,d=this.getLabelText(t),this.label=p=u.text(d,0,0,t.useHTML).attr(r).add(),this.axis.chart.styledMode||p.css(t.style)),a=e.xBounds||[e[1],e[4],i?e[6]:e[1]],h=e.yBounds||[e[2],e[5],i?e[7]:e[2]],l=n(a),c=n(h),p.align(t,!1,{x:l,y:c,width:s(a)-l,height:s(h)-c}),p.show(!0)},getLabelText:function(t){return o(t.formatter)?t.formatter.call(this):t.text},destroy:function(){a(this.axis.plotLinesAndBands,this),delete this.axis,r(this)}},h(e.prototype,{getPlotBandPath:function(t,e){var i,s,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),o=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),r=[],a=this.horiz,h=1,l=t<this.min&&e<this.min||t>this.max&&e>this.max;if(o&&n)for(l&&(s=o.toString()===n.toString(),h=0),i=0;i<o.length;i+=6)a&&n[i+1]===o[i+1]?(n[i+1]+=h,n[i+4]+=h):a||n[i+2]!==o[i+2]||(n[i+2]+=h,n[i+5]+=h),r.push("M",o[i+1],o[i+2],"L",o[i+4],o[i+5],n[i+4],n[i+5],n[i+1],n[i+2],"z"),r.isFlat=s;else o=null;return r},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var s=new t.PlotLineOrBand(this,e).render(),n=this.userOptions;if(s){if(i){var o=n[i]||[];o.push(e),n[i]=o}this.plotLinesAndBands.push(s)}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,s=this.userOptions,n=e.length;n--;)e[n].id===t&&e[n].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach(function(e){for(n=e.length;n--;)e[n].id===t&&a(e,e[n])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}),i(e,"parts/Tooltip.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.clamp,s=e.defined,n=e.discardElement,o=e.extend,r=e.isNumber,a=e.isString,h=e.pick,l=e.splat,c=e.syncTimeout,d=t.doc,p=t.format,u=t.merge,f=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=h(e.outside,Boolean(t.scrollablePixelsX||t.scrollablePixelsY))},cleanSplit:function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var e,i,n=this,o=this.chart.renderer,r=this.chart.styledMode,a=this.options,h="tooltip"+(s(a.className)?" "+a.className:"");return this.label||(this.outside&&(this.container=e=t.doc.createElement("div"),e.className="highcharts-tooltip-container",t.css(e,{position:"absolute",top:"1px",pointerEvents:a.style&&a.style.pointerEvents,zIndex:3}),t.doc.body.appendChild(e),this.renderer=o=new t.Renderer(e,0,0,{},void 0,void 0,o.styledMode)),this.split?this.label=o.g(h):(this.label=o.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,h).attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).shadow(a.shadow)),r&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),n.outside&&!n.split&&(i={x:this.label.xSetter,y:this.label.ySetter},this.label.xSetter=function(t,s){i[s].call(this.label,n.distance),e.style.left=t+"px"},this.label.ySetter=function(t,s){i[s].call(this.label,n.distance),e.style.top=t+"px"}),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,u(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),n(this.container)),t.clearTimeout(this.hideTimer),t.clearTimeout(this.tooltipTimeout)},move:function(e,i,s,n){var r=this,a=r.now,h=!1!==r.options.animation&&!r.isHidden&&(Math.abs(e-a.x)>1||Math.abs(i-a.y)>1),l=r.followPointer||r.len>1;o(a,{x:h?(2*a.x+e)/3:e,y:h?(a.y+i)/2:i,anchorX:l?void 0:h?(2*a.anchorX+s)/3:s,anchorY:l?void 0:h?(a.anchorY+n)/2:n}),r.getLabel().attr(a),h&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(e,i,s,n)},32))},hide:function(e){var i=this;t.clearTimeout(this.hideTimer),e=h(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=c(function(){i.getLabel()[e?"fadeOut":"hide"](),i.isHidden=!0},e))},getAnchor:function(t,e){var i,s,n,o=this.chart,r=o.pointer,a=o.inverted,h=o.plotTop,c=o.plotLeft,d=0,p=0;return t=l(t),this.followPointer&&e?(void 0===e.chartX&&(e=r.normalize(e)),i=[e.chartX-o.plotLeft,e.chartY-h]):t[0].tooltipPos?i=t[0].tooltipPos:(t.forEach(function(t){s=t.series.yAxis,n=t.series.xAxis,d+=t.plotX+(!a&&n?n.left-c:0),p+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&s?s.top-h:0)}),d/=t.length,p/=t.length,i=[a?o.plotWidth-p:d,this.shared&&!a&&t.length>1&&e?e.chartY-h:a?o.plotHeight-d:p]),i.map(Math.round)},getPosition:function(t,e,i){var s,n=this.chart,o=this.distance,r={},a=n.inverted&&i.h||0,l=this.outside,c=l?d.documentElement.clientWidth-2*o:n.chartWidth,p=l?Math.max(d.body.scrollHeight,d.documentElement.scrollHeight,d.body.offsetHeight,d.documentElement.offsetHeight,d.documentElement.clientHeight):n.chartHeight,u=n.pointer.getChartPosition(),f=n.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},x=function(s){var r="x"===s;return[s,r?c:p,r?t:e].concat(l?[r?g(t):m(e),r?u.left-o+g(i.plotX+n.plotLeft):u.top-o+m(i.plotY+n.plotTop),0,r?c:p]:[r?t:e,r?i.plotX+n.plotLeft:i.plotY+n.plotTop,r?n.plotLeft:n.plotTop,r?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])},v=x("y"),y=x("x"),b=!this.followPointer&&h(i.ttBelow,!n.inverted==!!i.negative),k=function(t){var e=v;v=y,y=e,s=t},M=function(){!1!==function(t,e,i,s,n,h,l){var c="y"===t?m(o):g(o),d=(i-s)/2,p=s<n-o,u=n+o+s<e,f=n-c-i+d,x=n+c-d;if(b&&u)r[t]=x;else if(!b&&p)r[t]=f;else if(p)r[t]=Math.min(l-s,f-a<0?f:f-a);else{if(!u)return!1;r[t]=Math.max(h,x+a+i>e?x:x+a)}}.apply(0,v)?!1!==function(t,e,i,s,n){var a;return n<o||n>e-o?a=!1:r[t]=n<i/2?1:n>e-s/2?e-s-2:n-i/2,a}.apply(0,y)||s||(k(!0),M()):s?r.x=r.y=0:(k(!0),M())};return(n.inverted||this.len>1)&&k(),M(),r},defaultFormatter:function(t){var e,i=this.points||l(this);return(e=(e=[t.tooltipFooterHeaderFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.tooltipFooterHeaderFormatter(i[0],!0)),e},refresh:function(e,i){var s,n,o,r,a,c=this.chart,d=this.options,p=e,u={},f=[],g=d.formatter||this.defaultFormatter,m=this.shared,x=c.styledMode;if(d.enabled){if(t.clearTimeout(this.hideTimer),this.followPointer=l(p)[0].series.tooltipOptions.followPointer,s=(o=this.getAnchor(p,i))[0],n=o[1],!m||p.series&&p.series.noSharedTooltip?u=p.getLabelConfig():(c.pointer.applyInactiveState(p),p.forEach(function(t){t.setState("hover"),f.push(t.getLabelConfig())}),(u={x:p[0].category,y:p[0].y}).points=f,p=p[0]),this.len=f.length,r=g.call(u,this),a=p.series,this.distance=h(a.tooltipOptions.distance,16),!1===r)this.hide();else{if(this.split)this.renderSplit(r,l(e));else{var v=this.getLabel();d.style.width&&!x||v.css({width:this.chart.spacingBox.width}),v.attr({text:r&&r.join?r.join(""):r}),v.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+h(p.colorIndex,a.colorIndex)),x||v.attr({stroke:d.borderColor||p.color||a.color||"#666666"}),this.updatePosition({plotX:s,plotY:n,negative:p.negative,ttBelow:p.ttBelow,h:o[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}t.fireEvent(this,"refresh")}},renderSplit:function(e,s){var n=this,r=n.chart,l=n.chart,c=l.chartWidth,d=l.chartHeight,p=l.plotHeight,u=l.plotLeft,f=l.plotTop,g=l.plotWidth,m=l.pointer,x=l.renderer,v=l.scrollablePixelsX,y=void 0===v?0:v,b=l.scrollablePixelsY,k=void 0===b?0:b,M=l.scrollingContainer,w=void 0===M?{scrollLeft:0,scrollTop:0}:M,S=w.scrollLeft,T=w.scrollTop,A=l.styledMode,P=n.distance,L=n.options,C=n.options.positioner,O={left:y?u:0,right:y?u+g-y:c,top:k?f:0,bottom:k?f+p-k:d},E=n.getLabel(),D=Boolean(r.xAxis[0]&&r.xAxis[0].opposite),I=f,z=0,B=p-k;function R(t,e,s,n,o){var r,a;return void 0===o&&(o=!0),s?(r=D?0:B,a=i(t-n/2,O.left,O.right-n)):(r=e-I,a=i(a=o?t-n-P:t+P,o?a:O.left,O.right)),{x:a,y:r}}a(e)&&(e=[!1,e]);var N=e.slice(0,s.length+1).reduce(function(t,e,o){if(!1!==e&&""!==e){var r=s[o-1]||{isHeader:!0,plotX:s[0].plotX,plotY:p,series:{}},a=r.isHeader,l=a?n:r.series,c=l.tt=function(t,e,i){var s=t,n=e.isHeader,o=e.series,r="highcharts-color-"+h(e.colorIndex,o.colorIndex,"none");if(!s){var a={padding:L.padding,r:L.borderRadius};A||(a.fill=L.backgroundColor,a["stroke-width"]=L.borderWidth),s=x.label(null,null,null,L[n?"headerShape":"shape"]||"callout",null,null,L.useHTML).addClass(n?"highcharts-tooltip-header ":"highcharts-tooltip-box "+r).attr(a).add(E)}return s.isActive=!0,s.attr({text:i}),A||s.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||e.color||o.color||"#333333"}),s}(l.tt,r,e),d=c.getBBox(),g=d.width+c.strokeWidth();a&&(z=d.height,B+=z,D&&(I-=z));var m=function(t){var e,s,n=t.isHeader,o=t.plotX,r=void 0===o?0:o,a=t.plotY,h=void 0===a?0:a,l=t.series;if(n)e=u+r-S,s=f+(p-k)/2;else{var c=l.xAxis,d=l.yAxis;e=c.pos+i(r,-P,c.len+P)-S,s=d.pos+i(h,0,d.len)-T}return{anchorX:e=i(e,O.left-P,O.right+P),anchorY:s=i(s,O.top,O.bottom)}}(r),v=m.anchorX,y=m.anchorY,b=d.height+1,M=C?C.call(n,g,b,r):R(v,y,a,g);t.push({align:C?0:void 0,anchorX:v,anchorY:y,boxWidth:g,point:r,rank:h(M.rank,a?1:0),size:b,target:M.y,tt:c,x:M.x})}return t},[]);!C&&N.some(function(t){return t.x<0})&&(N=N.map(function(t){var e=R(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1),i=e.x,s=e.y;return o(t,{target:s,x:i})})),n.cleanSplit(),t.distribute(N,B,void 0),N.forEach(function(t){var e=t.anchorX,i=t.anchorY,s=t.pos,n=t.x;t.tt.attr({visibility:void 0===s?"hidden":"inherit",x:n,y:s+I,anchorX:e,anchorY:i})});var W=n.container,G=n.outside,X=n.renderer;if(G&&W&&X){var j=E.getBBox(),H=j.width,Y=j.height,F=j.x,U=j.y;X.setSize(H+F,Y+U,!1);var V=m.getChartPosition();W.style.left=V.left+"px",W.style.top=V.top+"px"}},updatePosition:function(e){var i,s,n=this.chart,o=n.pointer,r=this.getLabel(),a=e.plotX+n.plotLeft,h=e.plotY+n.plotTop,l=o.getChartPosition();if(i=(this.options.positioner||this.getPosition).call(this,r.width,r.height,e),this.outside){s=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(r.width+s,r.height+s,!1);var c=n.containerScaling;c&&(t.css(this.container,{transform:"scale("+c.scaleX+", "+c.scaleY+")"}),a*=c.scaleX,h*=c.scaleY),a+=l.left-i.x,h+=l.top-i.y}this.move(Math.round(i.x),Math.round(i.y||0),a,h)},getDateFormat:function(t,e,i,s){var n,o,r=this.chart.time,a=r.dateFormat("%m-%d %H:%M:%S.%L",e),h="01-01 00:00:00.000",l={millisecond:15,second:12,minute:9,hour:6,day:3},c="millisecond";for(o in f){if(t===f.week&&+r.dateFormat("%w",e)===i&&a.substr(6)===h.substr(6)){o="week";break}if(f[o]>t){o=c;break}if(l[o]&&a.substr(l[o])!==h.substr(l[o]))break;"week"!==o&&(c=o)}return o&&(n=r.resolveDTLFormat(s[o]).main),n},getXDateFormat:function(t,e,i){var s=e.dateTimeLabelFormats,n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,s):s.day)||s.year},tooltipFooterHeaderFormatter:function(e,i){var s=i?"footer":"header",n=e.series,o=n.tooltipOptions,a=o.xDateFormat,h=n.xAxis,l=h&&"datetime"===h.options.type&&r(e.key),c=o[s+"Format"],d={isFooter:i,labelConfig:e};return t.fireEvent(this,"headerFormatter",d,function(t){l&&!a&&(a=this.getXDateFormat(e,o,h)),l&&a&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach(function(t){c=c.replace("{point."+t+"}","{point."+t+":"+a+"}")}),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=p(c,{point:e,series:n},this.chart)}),d.text},bodyFormatter:function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}}),i(e,"parts/Pointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.attr,s=e.defined,n=e.extend,o=e.isNumber,r=e.isObject,a=e.objectEach,h=e.offset,l=e.pick,c=e.splat,d=t,p=d.addEvent,u=d.charts,f=d.color,g=d.css,m=d.find,x=d.fireEvent,v=d.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},v&&(t.tooltip=new v(t,e.tooltip),this.followTouchMove=l(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e,i,s=this.chart,n=s.options.chart,o=n.zoomType||"",r=s.inverted;/touch/.test(t.type)&&(o=l(n.pinchType,o)),this.zoomX=e=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=e||i},getChartPosition:function(){var t=this.chart,e=t.scrollingContainer||t.container;return this.chartPosition||(this.chartPosition=h(e))},normalize:function(t,e){var i;i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(e=this.getChartPosition());var s=i.pageX-e.left,o=i.pageY-e.top,r=this.chart.containerScaling;return r&&(s/=r.scaleX,o/=r.scaleY),n(t,{chartX:Math.round(s),chartY:Math.round(o)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,i){var s;return t.forEach(function(t){var n,o,a,h,l,c=!(t.noSharedTooltip&&e)&&t.options.findNearestPointBy.indexOf("y")<0,d=t.searchPoint(i,c);r(d,!0)&&(!r(s,!0)||(o=d,a=(n=s).distX-o.distX,h=n.dist-o.dist,l=(o.series.group&&o.series.group.zIndex)-(n.series.group&&n.series.group.zIndex),(0!==a&&e?a:0!==h?h:0!==l?l:n.series.index>o.series.index?-1:1)>0))&&(s=d)}),s},getPointFromEvent:function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,s=i.xAxis,n=i.yAxis,o=l(t.clientX,t.plotX),r=t.shapeArgs;return s&&n?e?{chartX:s.len+s.pos-o,chartY:n.len+n.pos-t.plotY}:{chartX:o+s.pos,chartY:t.plotY+n.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},getHoverData:function(t,e,i,s,n,o){var a,h=[],c=e,d=!(!s||!t),p=c&&!c.stickyTracking,u=function(t){return t.visible&&!(!n&&t.directTouch)&&l(t.options.enableMouseTracking,!0)},f=p?[c]:i.filter(function(t){return u(t)&&t.stickyTracking});return c=(a=d||!o?t:this.findNearestKDPoint(f,n,o))&&a.series,a&&(n&&!c.noSharedTooltip?(f=i.filter(function(t){return u(t)&&!t.noSharedTooltip})).forEach(function(t){var e=m(t.points,function(t){return t.x===a.x&&!t.isNull});r(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),h.push(e))}):h.push(a)),{hoverPoint:a,hoverSeries:c,hoverPoints:h}},runPointActions:function(t,e){var i,s,n,o,r=this.chart,a=r.series,h=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,c=!!h&&h.shared,f=e||r.hoverPoint,g=f&&f.series||r.hoverSeries,m=(!t||"touchmove"!==t.type)&&(!!e||g&&g.directTouch&&this.isDirectTouch),x=this.getHoverData(f,g,a,m,c,t);if(f=x.hoverPoint,o=x.hoverPoints,s=(g=x.hoverSeries)&&g.tooltipOptions.followPointer,i=c&&g&&!g.noSharedTooltip,f&&(f!==r.hoverPoint||h&&h.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===o.indexOf(t)&&t.setState()}),r.hoverSeries!==g&&g.onMouseOver(),this.applyInactiveState(o),(o||[]).forEach(function(t){t.setState("hover")}),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!f.series)return;f.firePointEvent("mouseOver"),r.hoverPoints=o,r.hoverPoint=f,h&&h.refresh(i?o:f,t)}else s&&h&&!h.isHidden&&(n=h.getAnchor([{}],t),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=p(r.container.ownerDocument,"mousemove",function(t){var e=u[d.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)})),r.axes.forEach(function(e){var i=l(e.crosshair.snap,!0),s=i?d.find(o,function(t){return t.series[e.coll]===e}):void 0;s||!i?e.drawCrosshair(t,s):e.hideCrosshair()})},applyInactiveState:function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},reset:function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r&&r.shared?o:n;t&&a&&c(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?r&&a&&c(a).length&&(r.refresh(a),r.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):n&&(n.setState(n.state,!0),i.axes.forEach(function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),o&&o.forEach(function(t){t.setState()}),s&&s.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,s=this.chart;s.series.forEach(function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))}),s.clipRect.attr(e||s.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i,s=this.chart,n=s.options.chart,o=t.chartX,a=t.chartY,h=this.zoomHor,l=this.zoomVert,c=s.plotLeft,d=s.plotTop,p=s.plotWidth,u=s.plotHeight,g=this.selectionMarker,m=this.mouseDownX,x=this.mouseDownY,v=r(n.panning)?n.panning&&n.panning.enabled:n.panning,y=n.panKey&&t[n.panKey+"Key"];g&&g.touch||(o<c?o=c:o>c+p&&(o=c+p),a<d?a=d:a>d+u&&(a=d+u),this.hasDragged=Math.sqrt(Math.pow(m-o,2)+Math.pow(x-a,2)),this.hasDragged>10&&(e=s.isInsidePlot(m-c,x-d),s.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!y&&(g||(this.selectionMarker=g=s.renderer.rect(c,d,h?1:p,l?1:u,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),s.styledMode||g.attr({fill:n.selectionMarkerFill||f("#335cad").setOpacity(.25).get()}))),g&&h&&(i=o-m,g.attr({width:Math.abs(i),x:(i>0?0:i)+m})),g&&l&&(i=a-x,g.attr({height:Math.abs(i),y:(i>0?0:i)+x})),e&&!g&&v&&s.pan(t,n.panning)))},drop:function(t){var e=this,i=this.chart,r=this.hasPinched;if(this.selectionMarker){var a,h={originalEvent:t,xAxis:[],yAxis:[]},l=this.selectionMarker,c=l.attr?l.attr("x"):l.x,d=l.attr?l.attr("y"):l.y,p=l.attr?l.attr("width"):l.width,u=l.attr?l.attr("height"):l.height;(this.hasDragged||r)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&s(i.min)&&(r||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var n=i.horiz,o="touchend"===t.type?i.minPixelPadding:0,l=i.toValue((n?c:d)+o),f=i.toValue((n?c+p:d+u)-o);h[i.coll].push({axis:i,min:Math.min(l,f),max:Math.max(l,f)}),a=!0}}),a&&x(i,"selection",h,function(t){i.zoom(n(t,r?{animation:!1}:null))})),o(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}i&&o(i.index)&&(g(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(t){u[d.hoverChartIndex]&&u[d.hoverChartIndex].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(t){var e=u[d.hoverChartIndex];e&&(t.relatedTarget||t.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=void 0)},onContainerMouseMove:function(t){var e=this.chart;s(d.hoverChartIndex)&&u[d.hoverChartIndex]&&u[d.hoverChartIndex].mouseIsDown||(d.hoverChartIndex=e.index),(t=this.normalize(t)).preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||e.openMenu||this.runPointActions(t)},inClass:function(t,e){for(var s;t;){if(s=i(t,"class")){if(-1!==s.indexOf(e))return!0;if(-1!==s.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,i=t.relatedTarget||t.toElement;this.isDirectTouch=!1,!e||!i||e.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+e.index)&&this.inClass(i,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,s=e.plotLeft,o=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(x(i.series,"click",n(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(n(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-o)&&x(e,"click",t)))},setDOMEvents:function(){var t=this,e=t.chart.container,i=e.ownerDocument;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},this.unbindContainerMouseLeave=p(e,"mouseleave",t.onContainerMouseLeave),d.unbindDocumentMouseUp||(d.unbindDocumentMouseUp=p(i,"mouseup",t.onDocumentMouseUp)),d.hasTouch&&(p(e,"touchstart",function(e){t.onContainerTouchStart(e)}),p(e,"touchmove",function(e){t.onContainerTouchMove(e)}),d.unbindDocumentTouchEnd||(d.unbindDocumentTouchEnd=p(i,"touchend",t.onDocumentTouchEnd)))},destroy:function(){var t=this;t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),d.chartCount||(d.unbindDocumentMouseUp&&(d.unbindDocumentMouseUp=d.unbindDocumentMouseUp()),d.unbindDocumentTouchEnd&&(d.unbindDocumentTouchEnd=d.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),a(t,function(e,i){t[i]=null})}}}),i(e,"parts/TouchPointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.extend,s=e.pick,n=t.charts,o=t.noop,r=t.Pointer;i(r.prototype,{pinchTranslate:function(t,e,i,s,n,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,s,n,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,s,n,o)},pinchTranslateDirection:function(t,e,i,s,n,o,r,a){var h,l,c,d,p,u,f=this.chart,g=t?"x":"y",m=t?"X":"Y",x="chart"+m,v=t?"width":"height",y=f["plot"+(t?"Left":"Top")],b=a||1,k=f.inverted,M=f.bounds[t?"h":"v"],w=1===e.length,S=e[0][x],T=i[0][x],A=!w&&e[1][x],P=!w&&i[1][x],L=function(){!w&&Math.abs(S-A)>20&&(b=a||Math.abs(T-P)/Math.abs(S-A)),c=(y-T)/b+S,h=f["plot"+(t?"Width":"Height")]/b};L(),(l=c)<M.min?(l=M.min,d=!0):l+h>M.max&&(l=M.max-h,d=!0),d?(T-=.8*(T-r[g][0]),w||(P-=.8*(P-r[g][1])),L()):r[g]=[T,P],k||(o[g]=c-y,o[v]=h),u=k?t?"scaleY":"scaleX":"scale"+m,p=k?1/b:b,n[v]=h,n[g]=l,s[u]=b,s["translate"+m]=p*y+(T-p*S)},pinch:function(t){var e=this,n=e.chart,r=e.pinchDown,a=t.touches,h=a.length,l=e.lastValidTouch,c=e.hasZoom,d=e.selectionMarker,p={},u=1===h&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),f={};h>1&&(e.initiated=!0),c&&e.initiated&&!u&&t.preventDefault(),[].map.call(a,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(a,function(t,e){r[e]={chartX:t.chartX,chartY:t.chartY}}),l.x=[r[0].chartX,r[1]&&r[1].chartX],l.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach(function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,o=t.toPixels(Math.min(s(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(s(t.options.max,t.dataMax),t.dataMax)),a=Math.min(o,r),h=Math.max(o,r);e.min=Math.min(t.pos,a-i),e.max=Math.max(t.pos+t.len,h+i)}}),e.res=!0):e.followTouchMove&&1===h?this.runPointActions(e.normalize(t)):r.length&&(d||(e.selectionMarker=d=i({destroy:o,touch:!0},n.plotBox)),e.pinchTranslate(r,a,p,d,f,l),e.hasPinched=c,e.scaleGroups(p,f),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var n,o,r=this.chart;r.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=r.index,1===e.touches.length?(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu?(i&&this.runPointActions(e),"touchmove"===e.type&&(n=!!(o=this.pinchDown)[0]&&Math.sqrt(Math.pow(o[0].chartX-e.chartX,2)+Math.pow(o[0].chartY-e.chartY,2))>=4),s(n,!0)&&this.pinch(e)):i&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(e){n[t.hoverChartIndex]&&n[t.hoverChartIndex].pointer.drop(e)}})}),i(e,"parts/MSPointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.extend,s=e.objectEach,n=e.wrap,o=t.addEvent,r=t.charts,a=t.css,h=t.doc,l=t.hasTouch,c=t.noop,d=t.Pointer,p=t.removeEvent,u=t.win;if(!l&&(u.PointerEvent||u.MSPointerEvent)){var f={},g=!!u.PointerEvent,m=function(e,i,n,o){var a;"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!r[t.hoverChartIndex]||(o(e),r[t.hoverChartIndex].pointer[i]({type:n,target:e.currentTarget,preventDefault:c,touches:(a=[],a.item=function(t){return this[t]},s(f,function(t){a.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),a)}))};i(d.prototype,{onContainerPointerDown:function(t){m(t,"onContainerTouchStart","touchstart",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){m(t,"onContainerTouchMove","touchmove",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){m(t,"onDocumentTouchEnd","touchend",function(t){delete f[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(h,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),n(d.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&a(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),n(d.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(o)}),n(d.prototype,"destroy",function(t){this.batchMSEvents(p),t.call(this)})}}),i(e,"parts/Legend.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.defined,s=e.discardElement,n=e.isNumber,o=e.pick,r=e.relativeLength,a=e.setAnimation,h=e.syncTimeout,l=e.wrap,c=t,d=c.addEvent,p=c.css,u=c.fireEvent,f=c.isFirefox,g=c.marginNames,m=c.merge,x=c.stableSort,v=c.win;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=o(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=m(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=o(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(m(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,o(e,!0)&&i.redraw(),u(this,"afterUpdate")},colorizeItem:function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,n=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color,a=e?i.itemStyle.color:r,h=e&&t.color||r,l=t.options&&t.options.marker,c={fill:h};s&&s.css({fill:a,color:a}),n&&n.attr({stroke:h}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=r)),o.attr(c))}u(this,"afterColorizeItem",{item:t,visible:e})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=this.options,s=e.symbolPadding,n=!e.rtl,o=t._legendItemPos,r=o[0],a=o[1],h=t.checkbox,l=t.legendGroup;l&&l.element&&l[i(l.translateY)?"animate":"attr"]({translateX:n?r:this.legendWidth-r-2*s-4,translateY:a}),h&&(h.x=r,h.y=a)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&s(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),["clipRect","up","down","pager","nav","box","title","group"].forEach(t,this),this.display=null},positionCheckboxes:function(){var t,e=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(n){var o,r=n.checkbox;r&&(o=t+s+r.y+(this.scrollOffset||0)+3,p(r,{left:e.translateX+n.checkboxOffset+r.x-20+"px",top:o+"px",display:this.proximate||o>t-6&&o<t+i-6?"":"none"}))},this))},renderTitle:function(){var t,e=this.options,i=this.padding,s=e.title,n=0;s.text&&(this.title||(this.title=this.chart.renderer.label(s.text,i-3,i-4,null,null,null,e.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(s.style),this.title.add(this.group)),s.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?c.format(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},renderItem:function(t){var e,i=this.chart,s=i.renderer,n=this.options,r="horizontal"===n.layout,a=this.symbolWidth,h=n.symbolPadding,l=this.itemStyle,c=this.itemHiddenStyle,d=r?o(n.itemDistance,20):0,p=!n.rtl,u=t.legendItem,f=!t.series,g=!f&&t.series.drawLegendSymbol?t.series:t,x=g.options,v=this.createCheckboxForItem&&x&&x.showCheckbox,y=a+h+d+(v?20:0),b=n.useHTML,k=t.options.className;u||(t.legendGroup=s.g("legend-item").addClass("highcharts-"+g.type+"-series highcharts-color-"+t.colorIndex+(k?" "+k:"")+(f?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=u=s.text("",p?a+h:-h,this.baseline||0,b),i.styledMode||u.css(m(t.visible?l:c)),u.attr({align:p?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=s.fontMetrics(i.styledMode?12:l.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,g.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,b)),v&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&l.width||u.css({width:(n.itemWidth||this.widthOption||i.spacingBox.width)-y}),this.setText(t),e=u.getBBox(),t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+y,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,s="horizontal"===e.layout,n=t.itemHeight,r=this.itemMarginBottom,a=this.itemMarginTop,h=s?o(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth;s&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=c:(this.itemY+=a+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:h):c)+i,this.offsetWidth)},getAllItems:function(){var t=[];return this.chart.series.forEach(function(e){var s=e&&e.options;e&&o(s.showInLegend,!i(s.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===s.legendType?e.data:e)))}),u(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var s=this.chart,n=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,h){a.test(r)&&!i(t[h])&&(s[g[h]]=Math.max(s[g[h]],s.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*n[h%2?"x":"y"]+o(n.margin,12)+e[h]+(s.titleOffset[h]||0)))})},proximatePositions:function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach(function(s){var o,r,a,h,l=i;s.yAxis&&s.points&&(s.xAxis.options.reversed&&(l=!l),o=c.find(l?s.points:s.points.slice(0).reverse(),function(t){return n(t.plotY)}),r=this.itemMarginTop+s.legendItem.getBBox().height+this.itemMarginBottom,h=s.yAxis.top-t.plotTop,s.visible?(a=o?o.plotY:s.yAxis.height,a+=h-.3*r):a=h+s.yAxis.height,e.push({target:a,size:r,item:s}))},this),c.distribute(e,t.plotHeight),e.forEach(function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos})},render:function(){var t,e,i,s,n,o=this.chart,a=o.renderer,h=this.group,l=this.box,c=this.options,d=this.padding;if(this.itemX=d,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=r(c.width,o.spacingBox.width-d),n=o.spacingBox.width-2*d-c.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(n/=2),this.maxLegendWidth=this.widthOption||n,h||(this.group=h=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(h),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),t=this.getAllItems(),x(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&t.reverse(),this.allItems=t,this.display=e=!!t.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,t.forEach(this.renderItem,this),t.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+d,s=this.lastItemY+this.lastLineHeight+this.titleHeight,s=this.handleOverflow(s),s+=d,l||(this.box=l=a.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(h),l.isNew=!0),o.styledMode||l.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow),i>0&&s>0&&(l[l.isNew?"attr":"animate"](l.crisp.call({},{x:0,y:0,width:i,height:s},l.strokeWidth())),l.isNew=!1),l[e?"show":"hide"](),o.styledMode&&"none"===h.getStyle("display")&&(i=s=0),this.legendWidth=i,this.legendHeight=s,e){var p=o.spacingBox,f=p.y;/(lth|ct|rth)/.test(this.getAlignment())&&o.titleOffset[0]>0?f+=o.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&o.titleOffset[2]>0&&(f-=o.titleOffset[2]),f!==p.y&&(p=m(p,{y:f})),h.align(m(c,{width:i,height:s,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,p)}this.proximate||this.positionItems(),u(this,"afterRender")},handleOverflow:function(t){var e,i,s=this,n=this.chart,r=n.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,c=this.padding,d=n.spacingBox.height+(l?-h:h)-c,p=a.maxHeight,u=this.clipRect,f=a.navigation,g=o(f.animation,!0),m=f.arrowSize||12,x=this.nav,v=this.pages,y=this.allItems,b=function(t){"number"==typeof t?u.attr({height:t}):u&&(s.clipRect=u.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},k=function(t){return s[t]=r.circle(0,0,1.3*m).translate(m/2,m/2).add(x),n.styledMode||s[t].attr("fill","rgba(0,0,0,0.0001)"),s[t]};return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(d/=2),p&&(d=Math.min(d,p)),v.length=0,t>d&&!1!==f.enabled?(this.clipHeight=e=Math.max(d-20-this.titleHeight-c,0),this.currentPage=o(this.currentPage,1),this.fullHeight=t,y.forEach(function(t,s){var n=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),r=v.length;(!r||n-v[r-1]>e&&(i||n)!==v[r-1])&&(v.push(i||n),r++),t.pageIx=r-1,i&&(y[s-1].pageIx=r-1),s===y.length-1&&n+o-v[r-1]>e&&n!==i&&(v.push(n),t.pageIx=r),n!==i&&(i=n)}),u||(u=s.clipRect=r.clipRect(0,c,9999,0),s.contentGroup.clip(u)),b(e),x||(this.nav=x=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,m,m).add(x),k("upTracker").on("click",function(){s.scroll(-1,g)}),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation"),n.styledMode||this.pager.css(f.style),this.pager.add(x),this.down=r.symbol("triangle-down",0,0,m,m).add(x),k("downTracker").on("click",function(){s.scroll(1,g)})),s.scroll(0),t=d):x&&(b(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this,s=this.chart,n=this.pages,r=n.length,l=this.currentPage+t,d=this.clipHeight,p=this.options.navigation,f=this.pager,g=this.padding;if(l>r&&(l=r),l>0){void 0!==e&&a(e,s),this.nav.attr({translateX:g,translateY:d+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===l?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),f.attr({text:l+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:l===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),s.styledMode||(this.up.attr({fill:1===l?p.inactiveColor:p.activeColor}),this.upTracker.css({cursor:1===l?"default":"pointer"}),this.down.attr({fill:l===r?p.inactiveColor:p.activeColor}),this.downTracker.css({cursor:l===r?"default":"pointer"})),this.scrollOffset=-n[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes();var m=c.animObject(o(e,s.renderer.globalAnimation,!0));h(function(){u(i,"afterScroll",{currentPage:l})},m.duration||0)}}},c.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.options,s=t.symbolHeight,n=i.squareSymbol,r=n?s:t.symbolWidth;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-s)/2:0,t.baseline-s+1,r,s,o(t.options.symbolRadius,s/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i,s=this.options,n=s.marker,r=t.symbolWidth,a=t.symbolHeight,h=a/2,l=this.chart.renderer,c=this.legendGroup,d=t.baseline-Math.round(.3*t.fontMetrics.b),p={};this.chart.styledMode||(p={"stroke-width":s.lineWidth||0},s.dashStyle&&(p.dashstyle=s.dashStyle)),this.legendLine=l.path(["M",0,d,"L",r,d]).addClass("highcharts-graph").attr(p).add(c),n&&!1!==n.enabled&&r&&(e=Math.min(o(n.radius,h),h),0===this.symbol.indexOf("url")&&(n=m(n,{width:a,height:a}),e=0),this.legendSymbol=i=l.symbol(this.symbol,r/2-e,d-e,2*e,2*e,n).addClass("highcharts-point").add(c),i.isMarker=!0)}},(/Trident\/7\.0/.test(v.navigator&&v.navigator.userAgent)||f)&&l(t.Legend.prototype,"positionItem",function(t,e){var i=this,s=function(){e._legendItemPos&&t.call(i,e)};s(),i.bubbleLegend||setTimeout(s)})}),i(e,"parts/Chart.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.attr,n=e.defined,o=e.discardElement,r=e.erase,a=e.extend,h=e.isArray,l=e.isNumber,c=e.isObject,d=e.isString,p=e.numberFormat,u=e.objectEach,f=e.pick,g=e.pInt,m=e.relativeLength,x=e.setAnimation,v=e.splat,y=e.syncTimeout,b=t.addEvent,k=t.animate,M=t.doc,w=t.Axis,S=t.createElement,T=t.defaultOptions,A=t.charts,P=t.css,L=t.find,C=t.fireEvent,O=t.Legend,E=t.marginNames,D=t.merge,I=t.Pointer,z=t.removeEvent,B=t.seriesTypes,R=t.win,N=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new N(t,e,i)},a(N.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(d(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(e,i){var s,n=e.series,o=e.plotOptions||{};C(this,"init",{args:arguments},function(){e.series=null,s=D(T,e),u(s.plotOptions,function(t,e){c(t)&&(t.tooltip=o[e]&&D(o[e].tooltip)||void 0)}),s.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,s.series=e.series=n,this.userOptions=e;var r=s.chart,a=r.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=i,this.isResizing=0,this.options=s,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new t.Time(e.time):t.time,this.numberFormatter=r.numberFormatter||p,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;var h=this;h.index=A.length,A.push(h),t.chartCount++,a&&u(a,function(e,i){t.isFunction(e)&&b(h,i,e)}),h.xAxis=[],h.yAxis=[],h.pointCount=h.colorCounter=h.symbolCounter=0,C(h,"afterInit"),h.firstRender()})},initSeries:function(e){var i,s=this.options.chart,n=e.type||s.type||s.defaultSeriesType,o=B[n];return o||t.error(17,!0,this,{missingModuleFor:n}),(i=new o).init(this,e),i},setSeriesData:function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},getSeriesOrderByLinks:function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},orderSeries:function(t){for(var e=this.series,i=t||0;i<e.length;i++)e[i]&&(e[i].index=i,e[i].name=e[i].getName())},isInsidePlot:function(t,e,i){var s=i?e:t,n=i?t:e;return s>=0&&s<=this.plotWidth&&n>=0&&n<=this.plotHeight},redraw:function(t){C(this,"beforeRedraw");var e,i,s,n,o=this.axes,r=this.series,h=this.pointer,l=this.legend,c=this.userOptions.legend,d=this.isDirtyLegend,p=this.hasCartesianSeries,u=this.isDirtyBox,f=this.renderer,g=f.isHidden(),m=[];for(this.setResponsive&&this.setResponsive(!1),x(t,this),g&&this.temporaryDisplay(),this.layOutTitles(),s=r.length;s--;)if((n=r[s]).options.stacking&&(e=!0,n.isDirty)){i=!0;break}if(i)for(s=r.length;s--;)(n=r[s]).options.stacking&&(n.isDirty=!0);r.forEach(function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),d=!0):c&&(c.labelFormatter||c.labelFormat)&&(d=!0)),t.isDirtyData&&C(t,"updatedData")}),d&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),e&&this.getStacks(),p&&o.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),p&&(o.forEach(function(t){t.isDirty&&(u=!0)}),o.forEach(function(t){var i=t.min+","+t.max;t.extKey!==i&&(t.extKey=i,m.push(function(){C(t,"afterSetExtremes",a(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||e)&&t.redraw()})),u&&this.drawChartBox(),C(this,"predraw"),r.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),h&&h.reset(!0),f.draw(),C(this,"redraw"),C(this,"render"),g&&this.temporaryDisplay(!0),m.forEach(function(t){t.call()})},get:function(t){var e,i,s=this.series;function n(e){return e.id===t||e.options&&e.options.id===t}for(e=L(this.axes,n)||L(this.series,n),i=0;!e&&i<s.length;i++)e=L(s[i].points||[],n);return e},getAxes:function(){var t=this,e=this.options,i=e.xAxis=v(e.xAxis||{}),s=e.yAxis=v(e.yAxis||{});C(this,"getAxes"),i.forEach(function(t,e){t.index=e,t.isX=!0}),s.forEach(function(t,e){t.index=e}),i.concat(s).forEach(function(e){new w(t,e)}),C(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach(function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter(function(t){return f(t.selectedStaging,t.selected)}))}),t},getSelectedSeries:function(){return this.series.filter(function(t){return t.selected})},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(t,e){var i=this,s="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},n=this.options[t]=D(!this.styledMode&&{style:s},this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),n&&!o&&((o=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||o.css(n.style),this[t]=o)},layOutTitles:function(t){var e,i=[0,0,0],s=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,o,r=this[t],h=this.options[t],l=h.verticalAlign||"top",c="title"===t?-3:"top"===l?i[0]+2:0;r&&(this.styledMode||(e=h.style.fontSize),e=s.fontMetrics(e,r).b,r.css({width:(h.width||n.width+(h.widthAdjust||0))+"px"}),o=Math.round(r.getBBox(h.useHTML).height),r.align(a({y:"bottom"===l?e:c+e,height:o},h),!1,"spacingBox"),h.floating||("top"===l?i[0]=Math.ceil(i[0]+o):"bottom"===l&&(i[2]=Math.ceil(i[2]+o))))},this),i[0]&&"top"===(this.options.title.verticalAlign||"top")&&(i[0]+=this.options.title.margin),i[2]&&"bottom"===this.options.caption.verticalAlign&&(i[2]+=this.options.caption.margin),e=!this.titleOffset||this.titleOffset.join(",")!==i.join(","),this.titleOffset=i,C(this,"afterLayOutTitles"),!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&f(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,i=e.width,s=e.height,o=this.renderTo;n(i)||(this.containerWidth=t.getStyle(o,"width")),n(s)||(this.containerHeight=t.getStyle(o,"height")),this.chartWidth=Math.max(0,i||this.containerWidth||600),this.chartHeight=Math.max(0,m(s,this.chartWidth)||(this.containerHeight>1?this.containerHeight:400))},temporaryDisplay:function(e){var i,s=this.renderTo;if(e)for(;s&&s.style;)s.hcOrigStyle&&(t.css(s,s.hcOrigStyle),delete s.hcOrigStyle),s.hcOrigDetached&&(M.body.removeChild(s),s.hcOrigDetached=!1),s=s.parentNode;else for(;s&&s.style&&(M.body.contains(s)||s.parentNode||(s.hcOrigDetached=!0,M.body.appendChild(s)),("none"===t.getStyle(s,"display",!1)||s.hcOricDetached)&&(s.hcOrigStyle={display:s.style.display,height:s.style.height,overflow:s.style.overflow},i={display:"block",overflow:"hidden"},s!==this.renderTo&&(i.height=0),t.css(s,i),s.offsetWidth||s.style.setProperty("display","block","important")),(s=s.parentNode)!==M.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,i,n,o,r,h,c,p=this.options,u=p.chart,f=this.renderTo,m=t.uniqueKey();if(f||(this.renderTo=f=u.renderTo),d(f)&&(this.renderTo=f=M.getElementById(f)),f||t.error(13,!0,this),o=g(s(f,"data-highcharts-chart")),l(o)&&A[o]&&A[o].hasRendered&&A[o].destroy(),s(f,"data-highcharts-chart",this.index),f.innerHTML="",u.skipClone||f.offsetWidth||this.temporaryDisplay(),this.getChartSize(),i=this.chartWidth,n=this.chartHeight,P(f,{overflow:"hidden"}),this.styledMode||(h=a({position:"relative",overflow:"hidden",width:i+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},u.style)),e=S("div",{id:m},h,f),this.container=e,this._cursor=e.style.cursor,r=t[u.renderer]||t.Renderer,this.renderer=new r(e,i,n,null,u.forExport,p.exporting&&p.exporting.allowHTML,this.styledMode),this.setClassName(u.className),this.styledMode)for(c in p.defs)this.renderer.definition(p.defs[c]);else this.renderer.setStyle(u.style);this.renderer.chartIndex=this.index,C(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,s=this.titleOffset;this.resetMargins(),s[0]&&!n(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!n(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),C(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),E.forEach(function(i,o){n(s[o])||(t[i]+=e[o])}),t.setChartSize()},reflow:function(e){var i=this,s=i.options.chart,o=i.renderTo,r=n(s.width)&&n(s.height),a=s.width||t.getStyle(o,"width"),h=s.height||t.getStyle(o,"height"),l=e?e.target:R;r||i.isPrinting||!a||!h||l!==R&&l!==M||(a===i.containerWidth&&h===i.containerHeight||(t.clearTimeout(i.reflowTimeout),i.reflowTimeout=y(function(){i.container&&i.setSize(void 0,void 0,!1)},e?100:0)),i.containerWidth=a,i.containerHeight=h)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=b(R,"resize",function(t){e.options&&e.reflow(t)}),b(this,"destroy",this.unbindReflow))},setSize:function(t,e,s){var n,o=this,r=o.renderer;o.isResizing+=1,x(s,o),o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||((n=r.globalAnimation)?k:P)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},n),o.setChartSize(!0),r.setSize(o.chartWidth,o.chartHeight,s),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(s),o.oldChartHeight=null,C(o,"resize"),y(function(){o&&C(o,"endResize",null,function(){o.isResizing-=1})},i(n).duration||0)},setChartSize:function(t){var e,i,s,n,o,r,a,h=this.inverted,l=this.renderer,c=this.chartWidth,d=this.chartHeight,p=this.options.chart,u=this.spacing,f=this.clipOffset;this.plotLeft=s=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(c-s-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(d-n-this.marginBottom)),this.plotSizeX=h?r:o,this.plotSizeY=h?o:r,this.plotBorderWidth=p.plotBorderWidth||0,this.spacingBox=l.spacingBox={x:u[3],y:u[0],width:c-u[3]-u[1],height:d-u[0]-u[2]},this.plotBox=l.plotBox={x:s,y:n,width:o,height:r},a=2*Math.floor(this.plotBorderWidth/2),e=Math.ceil(Math.max(a,f[3])/2),i=Math.ceil(Math.max(a,f[0])/2),this.clipBox={x:e,y:i,width:Math.floor(this.plotSizeX-Math.max(a,f[1])/2-e),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,f[2])/2-i))},t||this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),C(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){C(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var s=e[i],n=c(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach(function(s,o){t[i][o]=f(e[i+s],n[o])})}),E.forEach(function(e,i){t[e]=f(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e,i,s=this.options.chart,n=this.renderer,o=this.chartWidth,r=this.chartHeight,a=this.chartBackground,h=this.plotBackground,l=this.plotBorder,c=this.styledMode,d=this.plotBGImage,p=s.backgroundColor,u=s.plotBackgroundColor,f=s.plotBackgroundImage,g=this.plotLeft,m=this.plotTop,x=this.plotWidth,v=this.plotHeight,y=this.plotBox,b=this.clipRect,k=this.clipBox,M="animate";a||(this.chartBackground=a=n.rect().addClass("highcharts-background").add(),M="attr"),c?t=e=a.strokeWidth():(e=(t=s.borderWidth||0)+(s.shadow?8:0),i={fill:p||"none"},(t||a["stroke-width"])&&(i.stroke=s.borderColor,i["stroke-width"]=t),a.attr(i).shadow(s.shadow)),a[M]({x:e/2,y:e/2,width:o-e-t%2,height:r-e-t%2,r:s.borderRadius}),M="animate",h||(M="attr",this.plotBackground=h=n.rect().addClass("highcharts-plot-background").add()),h[M](y),c||(h.attr({fill:u||"none"}).shadow(s.plotShadow),f&&(d?(f!==d.attr("href")&&d.attr("href",f),d.animate(y)):this.plotBGImage=n.image(f,g,m,x,v).add())),b?b.animate({width:k.width,height:k.height}):this.clipRect=n.clipRect(k),M="animate",l||(M="attr",this.plotBorder=l=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),c||l.attr({stroke:s.plotBorderColor,"stroke-width":s.plotBorderWidth||0,fill:"none"}),l[M](l.crisp({x:g,y:m,width:x,height:v},-l.strokeWidth())),this.isDirtyBox=!1,C(this,"afterDrawChartBox")},propFromSeries:function(){var t,e,i,s=this,n=s.options.chart,o=s.options.series;["inverted","angular","polar"].forEach(function(r){for(t=B[n.type||n.defaultSeriesType],i=n[r]||t&&t.prototype[r],e=o&&o.length;!i&&e--;)(t=B[o[e].type])&&t.prototype[r]&&(i=!0);s[r]=i})},linkSeries:function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;d(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=f(e.options.visible,i.options.visible,e.visible))}),C(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(i){var s=a(e.style,i.style),n=g(s.left)+t.plotLeft,o=g(s.top)+t.plotTop+12;delete s.left,delete s.top,t.renderer.text(i.html,n,o).attr({zIndex:2}).css(s).add()})},render:function(){var t,e,i,s,n=this.axes,o=this.colorAxis,r=this.renderer,a=this.options,h=0,l=function(t){t.forEach(function(t){t.visible&&t.render()})};this.setTitle(),this.legend=new O(this,a.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),t=this.plotWidth,n.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return h=21,!0}),this.plotHeight=Math.max(this.plotHeight-h,0),e=this.plotHeight,n.forEach(function(t){t.setScale()}),this.getAxisMargins(),i=t/this.plotWidth>1.1,s=e/this.plotHeight>1.05,(i||s)&&(n.forEach(function(t){(t.horiz&&i||!t.horiz&&s)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?l(n):o&&o.length&&l(o),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=D(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){t.href&&(R.location.href=t.href)}).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t=this.container;if(t.offsetWidth&&t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth,s=e.height/t.offsetHeight;1!==i||1!==s?this.containerScaling={scaleX:i,scaleY:s}:delete this.containerScaling}},destroy:function(){var e,i=this,s=i.axes,n=i.series,a=i.container,h=a&&a.parentNode;for(C(i,"destroy"),i.renderer.forExport?r(A,i):A[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),z(i),e=s.length;e--;)s[e]=s[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=n.length;e--;)n[e]=n[e].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),a&&(a.innerHTML="",z(a),h&&o(a)),u(i,function(t,e){delete i[e]})},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(h(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),C(t,"beforeRender"),I&&(t.pointer=new I(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),C(this,"load"),C(this,"render"),n(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})}),i(e,"parts/ScrollablePlotArea.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.pick,s=t.addEvent,n=t.Chart;s(n,"afterSetChartSize",function(e){var i,s,n,o=this.options.chart.scrollablePlotArea,r=o&&o.minWidth,a=o&&o.minHeight;this.renderer.forExport||(r?(this.scrollablePixelsX=i=Math.max(0,r-this.chartWidth),i&&(this.plotWidth+=i,this.inverted?(this.clipBox.height+=i,this.plotBox.height+=i):(this.clipBox.width+=i,this.plotBox.width+=i),n={1:{name:"right",value:i}})):a&&(this.scrollablePixelsY=s=Math.max(0,a-this.chartHeight),s&&(this.plotHeight+=s,this.inverted?(this.clipBox.width+=s,this.plotBox.width+=s):(this.clipBox.height+=s,this.plotBox.height+=s),n={2:{name:"bottom",value:s}})),n&&!e.skipAxes&&this.axes.forEach(function(e){n[e.side]?e.getPlotLinePath=function(){var i,s=n[e.side].name,o=n[e.side].value,r=this[s];return this[s]=r-o,i=t.Axis.prototype.getPlotLinePath.apply(this,arguments),this[s]=r,i}:(e.setAxisSize(),e.setAxisTranslation())}))}),s(n,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),n.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=t.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=t.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,s=[".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),s.push(t,t+"-labels"),s.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},n.prototype.applyFixed=function(){var e,n,o,r=!this.fixedDiv,a=this.options.chart.scrollablePlotArea;r?(this.fixedDiv=t.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new t.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":i(a.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),n=this.chartWidth+(this.scrollablePixelsX||0),o=this.chartHeight+(this.scrollablePixelsY||0),t.stop(this.container),this.container.style.width=n+"px",this.container.style.height=o+"px",this.renderer.boxWrapper.attr({width:n,height:o,viewBox:[0,0,n,o].join(" ")}),this.chartBackground.attr({width:n,height:o}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),r&&(a.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*a.scrollPositionX),a.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*a.scrollPositionY));var h,l=this.axisOffset,c=this.plotTop-l[0]-1,d=this.plotLeft-l[3]-1,p=this.plotTop+this.plotHeight+l[2]+1,u=this.plotLeft+this.plotWidth+l[1]+1,f=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),g=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);h=this.scrollablePixelsX?["M",0,c,"L",this.plotLeft-1,c,"L",this.plotLeft-1,p,"L",0,p,"Z","M",f,c,"L",this.chartWidth,c,"L",this.chartWidth,p,"L",f,p,"Z"]:this.scrollablePixelsY?["M",d,0,"L",d,this.plotTop-1,"L",u,this.plotTop-1,"L",u,0,"Z","M",d,g,"L",d,this.chartHeight,"L",u,this.chartHeight,"L",u,g,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:h})}}),i(e,"parts/Point.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i,s=e.animObject,n=e.defined,o=e.erase,r=e.extend,a=e.isArray,h=e.isNumber,l=e.isObject,c=e.syncTimeout,d=e.pick,p=t,u=p.fireEvent,f=p.format,g=p.uniqueKey,m=p.removeEvent;t.Point=i=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=n(this.id)?this.id:g(),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit"),this},resolveColor:function(){var t,e,i=this.series,s=i.chart.options.chart.colorCount,n=i.chart.styledMode;n||this.options.color||(this.color=i.color),i.options.colorByPoint?(n||(t=i.options.colors||i.chart.options.colors,this.color=this.color||t[i.colorCounter],s=t.length),e=i.colorCounter,i.colorCounter++,i.colorCounter===s&&(i.colorCounter=0)):e=i.colorIndex,this.colorIndex=d(this.colorIndex,e)},applyOptions:function(t,e){var s=this.series,n=s.options.pointValKey||s.pointValKey;return t=i.prototype.optionsToObject.call(this,t),r(this,t),this.options=this.options?r(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=this[n]),this.isNull=d(this.isValid&&!this.isValid(),null===this.x||!h(this.y)),this.formatPrefix=this.isNull?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===e&&s.xAxis&&s.xAxis.hasNames&&(this.x=s.xAxis.nameToX(this)),void 0===this.x&&s&&(this.x=void 0===e?s.autoIncrement(this):e),this},setNestedProperty:function(t,e,i){return i.split(".").reduce(function(t,i,s,n){var o=n.length-1===s;return t[i]=o?e:l(t[i],!0)?t[i]:{},t[i]},t),t},optionsToObject:function(t){var e,i={},s=this.series,n=s.options.keys,o=n||s.pointArrayMap||["y"],r=o.length,l=0,c=0;if(h(t)||null===t)i[o[0]]=t;else if(a(t))for(!n&&t.length>r&&("string"===(e=typeof t[0])?i.name=t[0]:"number"===e&&(i.x=t[0]),l++);c<r;)n&&void 0===t[l]||(o[c].indexOf(".")>0?p.Point.prototype.setNestedProperty(i,t[l],o[c]):i[o[c]]=t[l]),l++,c++;else"object"==typeof t&&(i=t,t.dataLabels&&(s._hasPointLabels=!0),t.marker&&(s._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t,e=this.series,i=e.zones,s=e.zoneAxis||"y",n=0;for(t=i[n];this[s]>=t.value;)t=i[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},hasNewShapeType:function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},destroy:function(){var t,e=this,i=e.series,n=i.chart,r=i.options.dataSorting,a=n.hoverPoints,h=e.series.chart.renderer.globalAnimation,l=s(h);function d(){for(t in a&&(e.setState(),o(a,e),a.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(e.graphic||e.dataLabel||e.dataLabels)&&(m(e),e.destroyElements()),e)e[t]=null}r&&r.enabled?(this.animateBeforeDestroy(),c(d,l.duration)):d(),n.pointCount--,e.legendItem&&n.legend.destroyItem(e)},animateBeforeDestroy:function(){var t,e=this,i={x:e.startXPos,opacity:0},s=e.getGraphicalProps();s.singular.forEach(function(s){t="dataLabel"===s,e[s]=e[s].animate(t?{x:e[s].startXPos,y:e[s].startYPos,opacity:0}:i)}),s.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(r({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},destroyElements:function(t){var e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.destroy()}),delete e[t]})},getGraphicalProps:function(t){var e,i,s=this,n=[],o={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelUpper","connector"),i=n.length;i--;)e=n[i],s[e]&&o.singular.push(e);return["dataLabel","connector"].forEach(function(e){var i=e+"s";t[e]&&s[i]&&o.plural.push(i)}),o},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,s=d(i.valueDecimals,""),n=i.valuePrefix||"",o=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(n||o)&&(t=t.replace(RegExp(e+"}","g"),n+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")}),f(t,{point:this,series:this.series},e.chart)},firePointEvent:function(t,e,i){var s=this,n=this.series.options;(n.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents(),"click"===t&&n.allowPointSelect&&(i=function(t){s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(this,t,e,i)},visible:!0}}),i(e,"parts/Series.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.arrayMax,n=e.arrayMin,o=e.clamp,r=e.correctFloat,a=e.defined,h=e.erase,l=e.extend,c=e.isArray,d=e.isNumber,p=e.isString,u=e.objectEach,f=e.pick,g=e.splat,m=e.syncTimeout,x=t.addEvent,v=t.defaultOptions,y=t.defaultPlotOptions,b=t.fireEvent,k=t.LegendSymbolMixin,M=t.merge,w=t.Point,S=t.removeEvent,T=t.SVGElement,A=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){var t=this.series.chart.numberFormatter;return null===this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,eventsToUnbind:[],isCartesian:!0,parallelArrays:["x","y"],pointClass:w,requireSorting:!0,sorted:!0,init:function(e,i){b(this,"init",{options:i});var s,n,o=this,r=e.series;this.eventOptions=this.eventOptions||{},o.chart=e,o.options=i=o.setOptions(i),o.linkedSeries=[],o.bindAxes(),l(o,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected}),s=i.events,u(s,function(e,i){t.isFunction(e)&&o.eventOptions[i]!==e&&(t.isFunction(o.eventOptions[i])&&S(o,i,o.eventOptions[i]),o.eventOptions[i]=e,x(o,i,e))}),(s&&s.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach(function(t){o[t+"Data"]||(o[t+"Data"]=[])}),o.isCartesian&&(e.hasCartesianSeries=!0),r.length&&(n=r[r.length-1]),o._i=f(n&&n._i,-1)+1,e.orderSeries(this.insert(r)),i.dataSorting&&i.dataSorting.enabled?o.setDataSortingOptions():o.points||o.data||o.setData(i.data,!1),b(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(d(i)){for(e=t.length;e--;)if(i>=f(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return f(e,t.length-1)},bindAxes:function(){var e,i=this,s=i.options,n=i.chart;b(this,"bindAxes",null,function(){(i.axisTypes||[]).forEach(function(o){n[o].forEach(function(t){e=t.options,(s[o]===e.index||void 0!==s[o]&&s[o]===e.id||void 0===s[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)}),i[o]||i.optionalAxis===o||t.error(18,!0,n)})})},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=d(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(n)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0},autoIncrement:function(){var t,e,i=this.options,s=this.xIncrement,n=i.pointIntervalUnit,o=this.chart.time;return s=f(s,i.pointStart,0),this.pointInterval=e=f(this.pointInterval,i.pointInterval,1),n&&(t=new o.Date(s),"day"===n?o.set("Date",t,o.get("Date",t)+e):"month"===n?o.set("Month",t,o.get("Month",t)+e):"year"===n&&o.set("FullYear",t,o.get("FullYear",t)+e),e=t.getTime()-s),this.xIncrement=s+e,s},setDataSortingOptions:function(){var t=this.options;l(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),a(t.pointRange)||(t.pointRange=1)},setOptions:function(t){var e,i,s,n=this.chart,o=n.options,r=o.plotOptions,h=n.userOptions||{},l=M(t),c=n.styledMode,d={plotOptions:r,userOptions:l};b(this,"setOptions",d);var p=d.plotOptions[this.type],u=h.plotOptions||{};return this.userOptions=d.userOptions,e=M(p,r.series,h.plotOptions&&h.plotOptions[this.type],l),this.tooltipOptions=M(v.tooltip,v.plotOptions.series&&v.plotOptions.series.tooltip,v.plotOptions[this.type].tooltip,o.tooltip.userOptions,r.series&&r.series.tooltip,r[this.type].tooltip,l.tooltip),this.stickyTracking=f(l.stickyTracking,u[this.type]&&u[this.type].stickyTracking,u.series&&u.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===p.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,i=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||(s={value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative"},c||(s.color=e.negativeColor,s.fillColor=e.negativeFillColor),i.push(s)),i.length&&a(i[i.length-1].value)&&i.push(c?{}:{color:this.color,fillColor:this.fillColor}),b(this,"afterSetOptions",{options:e}),e},getName:function(){return f(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var s,n,o=this.chart,r=this.userOptions,h=t+"Index",l=t+"Counter",c=i?i.length:f(o.options.chart[t+"Count"],o[t+"Count"]);e||(n=f(r[h],r["_"+h]),a(n)?s=n:(o.series.length||(o[l]=0),r["_"+h]=s=o[l]%c,o[l]+=1),i&&(e=i[s])),void 0!==s&&(this[h]=s),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||y[this.type].color,this.chart.options.colors)},getSymbol:function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)},findPointIndex:function(e,i){var s,n,o,r,a=e.id,h=e.x,l=this.points,c=this.options.dataSorting;if(a)s=this.chart.get(a);else if((this.linkedParent||this.enabledDataSorting)&&(r=c&&c.matchByName?"name":"index",!(s=t.find(l,function(t){return!t.touched&&t[r]===e[r]}))))return;return s&&void 0!==(o=s&&s.index)&&(n=!0),void 0===o&&d(h)&&(o=this.xData.indexOf(h,i)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=this.cropStart?o-this.cropStart:o),!n&&l[o]&&l[o].touched&&(o=void 0),o},drawLegendSymbol:k.drawLineMarker,updateData:function(t,e){var i,n,o,r,h=this.options,l=h.dataSorting,c=this.points,p=[],u=this.requireSorting,f=t.length===c.length,g=!0;if(this.xIncrement=null,t.forEach(function(t,e){var s,n,o=a(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{};s=o.x,o.id||d(s)?(-1===(n=this.findPointIndex(o,r))||void 0===n?p.push(t):c[n]&&t!==h.data[n]?(c[n].update(t,!1,null,!1),c[n].touched=!0,u&&(r=n+1)):c[n]&&(c[n].touched=!0),(!f||e!==n||l&&l.enabled||this.hasDerivedData)&&(i=!0)):p.push(t)},this),i)for(n=c.length;n--;)(o=c[n])&&!o.touched&&o.remove&&o.remove(!1,e);else!f||l&&l.enabled?g=!1:(t.forEach(function(t,e){c[e].update&&t!==c[e].y&&c[e].update(t,!1,null,!1)}),p.length=0);return c.forEach(function(t){t&&(t.touched=!1)}),!!g&&(p.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=s(this.xData),this.autoIncrement()),!0)},setData:function(e,i,s,n){var o,r,a,h,l=this,u=l.points,g=u&&u.length||0,m=l.options,x=l.chart,v=m.dataSorting,y=null,b=l.xAxis,k=m.turboThreshold,M=this.xData,w=this.yData,S=l.pointArrayMap,T=S&&S.length,A=m.keys,P=0,L=1;if(o=(e=e||[]).length,i=f(i,!0),v&&v.enabled&&(e=this.sortData(e)),!1!==n&&o&&g&&!l.cropped&&!l.hasGroupedData&&l.visible&&!l.isSeriesBoosting&&(h=this.updateData(e,s)),!h){if(l.xIncrement=null,l.colorCounter=0,this.parallelArrays.forEach(function(t){l[t+"Data"].length=0}),k&&o>k)if(y=l.getFirstValidPoint(e),d(y))for(r=0;r<o;r++)M[r]=this.autoIncrement(),w[r]=e[r];else if(c(y))if(T)for(r=0;r<o;r++)a=e[r],M[r]=a[0],w[r]=a.slice(1,T+1);else for(A&&(P=(P=A.indexOf("x"))>=0?P:0,L=(L=A.indexOf("y"))>=0?L:1),r=0;r<o;r++)a=e[r],M[r]=a[P],w[r]=a[L];else t.error(12,!1,x);else for(r=0;r<o;r++)void 0!==e[r]&&(a={series:l},l.pointClass.prototype.applyOptions.apply(a,[e[r]]),l.updateParallelArrays(a,r));for(w&&p(w[0])&&t.error(14,!0,x),l.data=[],l.options.data=l.userOptions.data=e,r=g;r--;)u[r]&&u[r].destroy&&u[r].destroy();b&&(b.minRange=b.userMinRange),l.isDirty=x.isDirtyBox=!0,l.isDirtyData=!!u,s=!1}"point"===m.legendType&&(this.processData(),this.generatePoints()),i&&x.redraw(s)},sortData:function(t){var e=this,i=e.options.dataSorting.sortKey||"y",s=function(t,e){return a(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,n){t[n]=s(e,i),t[n].index=n},this),t.concat().sort(function(t,e){return d(e[i])?e[i]-t[i]:-1}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach(function(i,o){n[o]=s(e,i),t[o]&&(n[o].x=t[o].x,n[o].index=o)}),e.setData(n,!1))}),t},processData:function(e){var i,s,n,o,r,a,h,l,c=this.xData,d=this.yData,p=c.length,u=0,f=this.xAxis,g=this.options,m=g.cropThreshold,x=this.getExtremesFromAll||g.getExtremesFromAll,v=this.isCartesian,y=f&&f.val2lin,b=f&&f.isLog,k=this.requireSorting;if(v&&!this.isDirty&&!f.isDirty&&!this.yAxis.isDirty&&!e)return!1;for(f&&(h=(a=f.getExtremes()).min,l=a.max),v&&this.sorted&&!x&&(!m||p>m||this.forceCrop)&&(c[p-1]<h||c[0]>l?(c=[],d=[]):this.yData&&(c[0]<h||c[p-1]>l)&&(c=(i=this.cropData(this.xData,this.yData,h,l)).xData,d=i.yData,u=i.start,s=!0)),r=c.length||1;--r;)(n=b?y(c[r])-y(c[r-1]):c[r]-c[r-1])>0&&(void 0===o||n<o)?o=n:n<0&&k&&(t.error(15,!1,this.chart),k=!1);this.cropped=s,this.cropStart=u,this.processedXData=c,this.processedYData=d,this.closestPointRange=this.basePointRange=o},cropData:function(t,e,i,s,n){var o,r,a=t.length,h=0,l=a;for(n=f(n,this.cropShoulder),o=0;o<a;o++)if(t[o]>=i){h=Math.max(0,o-n);break}for(r=o;r<a;r++)if(t[r]>s){l=r+n;break}return{xData:t.slice(h,l),yData:e.slice(h,l),start:h,end:l}},generatePoints:function(){var t,e,i,s,n=this.options,o=n.data,r=this.data,a=this.processedXData,h=this.processedYData,c=this.pointClass,d=a.length,p=this.cropStart||0,u=this.hasGroupedData,f=n.keys,m=[];if(!r&&!u){var x=[];x.length=o.length,r=this.data=x}for(f&&u&&(this.options.keys=!1),s=0;s<d;s++)e=p+s,u?((i=(new c).init(this,[a[s]].concat(g(h[s])))).dataGroup=this.groupMap[s],i.dataGroup.options&&(i.options=i.dataGroup.options,l(i,i.dataGroup.options),delete i.dataLabels)):(i=r[e])||void 0===o[e]||(r[e]=i=(new c).init(this,o[e],a[s])),i&&(i.index=e,m[s]=i);if(this.options.keys=f,r&&(d!==(t=r.length)||u))for(s=0;s<t;s++)s!==p||u||(s+=d),r[s]&&(r[s].destroyElements(),r[s].plotX=void 0);this.data=r,this.points=m,b(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:n(t),max:s(t)}},getExtremes:function(t){var e,i,o,r,a,h,l,p,u=this.xAxis,f=this.yAxis,g=this.processedXData||this.xData,m=[],x=0,v=0,y=0,k=this.requireSorting?this.cropShoulder:0,M=!!f&&f.positiveValuesOnly;for(e=(t=t||this.stackedYData||this.processedYData||[]).length,u&&(v=(i=u.getExtremes()).min,y=i.max),l=0;l<e;l++)if(a=g[l],h=t[l],o=(d(h)||c(h))&&(h.length||h>0||!M),r=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(g[l+k]||a)>=v&&(g[l-k]||a)<=y,o&&r)if(p=h.length)for(;p--;)d(h[p])&&(m[x++]=h[p]);else m[x++]=h;this.dataMin=n(m),this.dataMax=s(m),b(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s<i;)e=t[s],s++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,s,n,h=this.options,l=h.stacking,p=this.xAxis,u=p.categories,g=this.enabledDataSorting,m=this.yAxis,x=this.points,v=x.length,y=!!this.modifyValue,k=this.pointPlacementToXValue(),M=d(k),w=h.threshold,S=h.startFromThreshold?w:0,T=this.zoneAxis||"y",A=Number.MAX_VALUE;function P(t){return o(t,-1e5,1e5)}for(t=0;t<v;t++){var L,C,O=x[t],E=O.x,D=O.y,I=O.low,z=l&&m.stacks[(this.negStacks&&D<(S?0:w)?"-":"")+this.stackKey];m.positiveValuesOnly&&null!==D&&D<=0&&(O.isNull=!0),O.plotX=e=r(P(p.translate(E,0,0,0,1,k,"flags"===this.type))),l&&this.visible&&z&&z[E]&&(n=this.getStackIndicator(n,E,this.index),O.isNull||(C=(L=z[E]).points[n.key])),c(C)&&(I=C[0],D=C[1],I===S&&n.key===z[E].base&&(I=f(d(w)&&w,m.min)),m.positiveValuesOnly&&I<=0&&(I=null),O.total=O.stackTotal=L.total,O.percentage=L.total&&O.y/L.total*100,O.stackY=D,this.irregularWidths||L.setOffset(this.pointXOffset||0,this.barW||0)),O.yBottom=a(I)?P(m.translate(I,0,1,0,1)):null,y&&(D=this.modifyValue(D,O)),O.plotY=i="number"==typeof D&&D!==1/0?P(m.translate(D,0,1,0,1)):void 0,O.isInside=void 0!==i&&i>=0&&i<=m.len&&e>=0&&e<=p.len,O.clientX=M?r(p.translate(E,0,0,0,1,k)):e,O.negative=O[T]<(h[T+"Threshold"]||w||0),O.category=u&&void 0!==u[O.x]?u[O.x]:O.x,O.isNull||!1===O.visible||(void 0!==s&&(A=Math.min(A,Math.abs(e-s))),s=e),O.zone=this.zones.length&&O.getZone(),!O.graphic&&this.group&&g&&(O.isNew=!0)}this.closestPointRangePx=A,b(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&(!1!==t.visible&&(i||!t.isNull))})},getClipBox:function(t,e){var i,s=this.options,n=this.chart,o=n.inverted,r=this.xAxis,a=r&&this.yAxis;return t&&!1===s.clip&&a?i=o?{y:-n.chartWidth+a.len+a.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+r.len+r.pos}:{y:-a.pos,height:n.chartHeight,width:n.chartWidth,x:-r.pos}:(i=this.clipBox||n.clipBox,e&&(i.width=n.plotSizeX,i.x=0)),e?{width:i.width,x:i.x}:i},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,o=this.clipBox,r=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height,i.xAxis,i.yAxis].join(","),h=e[a],l=e[a+"m"];h||(t&&(r.width=0,n&&(r.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[a+"m"]=l=s.clipRect(n?e.plotSizeX+99:-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(r),h.count={length:0}),t&&(h.count[this.index]||(h.count[this.index]=!0,h.count.length+=1)),(!1!==i.clip||t)&&(this.group.clip(t||o?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],h.count.length-=1),0===h.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,s,n,o=this.chart,r=i(this.options.animation);t?this.setClip(r):(e=o[s=this.sharedClipKey],n=this.getClipBox(r,!0),e&&e.animate(n,r),o[s+"m"]&&o[s+"m"].animate({width:n.width+99,x:n.x-(o.inverted?0:99)},r),this.animate=null)},afterAnimate:function(){this.setClip(),b(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i,s,n,o,r,a=this.points,h=this.chart,l=this.options.marker,c=this[this.specialGroup]||this.markerGroup,d=this.xAxis,p=f(l.enabled,!(d&&!d.isRadial)||null,this.closestPointRangePx>=l.enabledThreshold*l.radius);if(!1!==l.enabled||this._hasPointMarkers)for(t=0;t<a.length;t++){if(s=(i=(e=a[t]).graphic)?"animate":"attr",n=e.marker||{},o=!!e.marker,(p&&void 0===n.enabled||n.enabled)&&!e.isNull&&!1!==e.visible){var u=f(n.symbol,this.symbol);r=this.markerAttribs(e,e.selected&&"select"),this.enabledDataSorting&&(e.startXPos=d.reversed?-r.width:d.width);var g=!1!==e.isInside;i?i[g?"show":"hide"](g).animate(r):g&&(r.width>0||e.hasImage)&&(e.graphic=i=h.renderer.symbol(u,r.x,r.y,r.width,r.height,o?n:l).add(c),this.enabledDataSorting&&h.hasRendered&&(i.attr({x:e.startXPos}),s="animate")),i&&"animate"===s&&i[g?"show":"hide"](g).animate(r),i&&!h.styledMode&&i[s](this.pointAttribs(e,e.selected&&"select")),i&&i.addClass(e.getClassName(),!0)}else i&&(e.graphic=i.destroy())}},markerAttribs:function(t,e){var i,s,n,o=this.options.marker,r=t.marker||{},a=r.symbol||o.symbol,h=f(r.radius,o.radius);return e&&(i=o.states[e],s=r.states&&r.states[e],h=f(s&&s.radius,i&&i.radius,h+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(h=0),n={x:Math.floor(t.plotX)-h,y:t.plotY-h},h&&(n.width=n.height=2*h),n},pointAttribs:function(t,e){var i,s,n,o,r=this.options.marker,a=t&&t.options,h=a&&a.marker||{},l=this.color,c=a&&a.color,d=t&&t.color,p=f(h.lineWidth,r.lineWidth),u=t&&t.zone&&t.zone.color,g=1;return l=c||u||d||l,n=h.fillColor||r.fillColor||l,o=h.lineColor||r.lineColor||l,(e=e||"normal")&&(i=r.states[e],s=h.states&&h.states[e]||{},p=f(s.lineWidth,i.lineWidth,p+f(s.lineWidthPlus,i.lineWidthPlus,0)),n=s.fillColor||i.fillColor||n,o=s.lineColor||i.lineColor||o,g=f(s.opacity,i.opacity,g)),{stroke:o,"stroke-width":p,fill:n,opacity:g}},destroy:function(e){var i,s,n,o=this,r=o.chart,a=/AppleWebKit\/533/.test(A.navigator.userAgent),l=o.data||[];for(b(o,"destroy"),this.removeEvents(e),(o.axisTypes||[]).forEach(function(t){(n=o[t])&&n.series&&(h(n.series,o),n.isDirty=n.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),i=l.length;i--;)(s=l[i])&&s.destroy&&s.destroy();o.points=null,t.clearTimeout(o.animationTimeout),u(o,function(t,e){t instanceof T&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===o&&(r.hoverSeries=null),h(r.series,o),r.orderSeries(),u(o,function(t,i){e&&"hcEvents"===i||delete o[i]})},getGraphPath:function(t,e,i){var s,n,o=this,r=o.options,h=r.step,l=[],c=[];return(s=(t=t||o.points).reversed)&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&s&&(h=4-h),(t=this.getValidPoints(t,!1,!(r.connectNulls&&!e&&!i))).forEach(function(s,d){var p,u=s.plotX,f=s.plotY,g=t[d-1];(s.leftCliff||g&&g.rightCliff)&&!i&&(n=!0),s.isNull&&!a(e)&&d>0?n=!r.connectNulls:s.isNull&&!e?n=!0:(0===d||n?p=["M",s.plotX,s.plotY]:o.getPointSpline?p=o.getPointSpline(t,s,d):h?(p=1===h?["L",g.plotX,f]:2===h?["L",(g.plotX+u)/2,g.plotY,"L",(g.plotX+u)/2,f]:["L",u,g.plotY]).push("L",u,f):p=["L",u,f],c.push(s.x),h&&(c.push(s.x),2===h&&c.push(s.x)),l.push.apply(l,p),n=!1)}),l.xMap=c,o.graphPath=l,l},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,n=[["graph","highcharts-graph"]];s||n[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(n=t.getZonesGraphs(n)).forEach(function(n,o){var r,a=n[0],h=t[a],l=h?"animate":"attr";h?(h.endX=t.preventGraphAnimation?null:i.xMap,h.animate({d:i})):i.length&&(t[a]=h=t.chart.renderer.path(i).addClass(n[1]).attr({zIndex:1}).add(t.group)),h&&!s&&(r={stroke:n[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},n[3]?r.dashstyle=n[3]:"square"!==e.linecap&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),h[l](r).shadow(o<2&&e.shadow)),h&&(h.startX=i.xMap,h.isArea=i.isArea)})},getZonesGraphs:function(t){return this.zones.forEach(function(e,i){var s=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")];this.chart.styledMode||s.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(s)},this),t},applyZones:function(){var t,e,i,s,n,r,a,h,l,c=this,d=this.chart,p=d.renderer,u=this.zones,g=this.clips||[],m=this.graph,x=this.area,v=Math.max(d.chartWidth,d.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],b=d.inverted,k=!1;u.length&&(m||x)&&y&&void 0!==y.min?(n=y.reversed,r=y.horiz,m&&!this.showLine&&m.hide(),x&&x.hide(),s=y.getExtremes(),u.forEach(function(u,M){t=n?r?d.plotWidth:0:r?0:y.toPixels(s.min)||0,t=o(f(e,t),0,v),e=o(Math.round(y.toPixels(f(u.value,s.max),!0)||0),0,v),k&&(t=e=y.toPixels(s.max)),a=Math.abs(t-e),h=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(i={x:b?l:h,y:0,width:a,height:v},r||(i.x=d.plotHeight-i.x)):(i={x:0,y:b?l:h,width:v,height:a},r&&(i.y=d.plotWidth-i.y)),b&&p.isVML&&(i=y.isXAxis?{x:0,y:n?h:l,height:i.width,width:d.chartWidth}:{x:i.y-d.plotLeft-d.spacingBox.x,y:0,width:i.height,height:d.chartHeight}),g[M]?g[M].animate(i):g[M]=p.clipRect(i),m&&c["zone-graph-"+M].clip(g[M]),x&&c["zone-area-"+M].clip(g[M]),k=u.value>s.max,c.resetZones&&0===e&&(e=void 0)}),this.clips=g):c.visible&&(m&&m.show(!0),x&&x.show(!0))},invertGroups:function(t){var e=this,i=e.chart;function s(){["group","markerGroup"].forEach(function(s){e[s]&&(i.renderer.isVML&&e[s].attr({width:e.yAxis.len,height:e.xAxis.len}),e[s].width=e.yAxis.len,e[s].height=e.xAxis.len,e[s].invert(!e.isRadialSeries&&t))})}e.xAxis&&(e.eventsToUnbind.push(x(i,"resize",s)),s(),e.invertGroups=s)},plotGroup:function(t,e,i,s,n){var o=this[t],r=!o;return r&&(this[t]=o=this.chart.renderer.g().attr({zIndex:s||.1}).add(n)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr({visibility:i})[r?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0):S(this)},render:function(){var t,e=this,s=e.chart,n=e.options,o=!!e.animate&&s.renderer.isSVG&&i(n.animation).duration,r=e.visible?"inherit":"hidden",a=n.zIndex,h=e.hasRendered,l=s.seriesGroup,c=s.inverted;b(this,"render"),t=e.plotGroup("group","series",r,a,l),e.markerGroup=e.plotGroup("markerGroup","markers",r,a,l),o&&e.animate(!0),t.inverted=!(!e.isCartesian&&!e.invertable)&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===n.clip||e.sharedClipKey||h||t.clip(s.clipRect),o&&e.animate(),h||(e.animationTimeout=m(function(){e.afterAnimate()},o||0)),e.isDirty=!1,e.hasRendered=!0,b(e,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:f(s&&s.left,t.plotLeft),translateY:f(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var e=this,i=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,m(function(){e.kdTree=function t(i,s,n){var o,r,a=i&&i.length;if(a)return o=e.kdAxisArray[s%n],i.sort(function(t,e){return t[o]-e[o]}),{point:i[r=Math.floor(a/2)],left:t(i.slice(0,r),s+1,n),right:t(i.slice(r+1),s+1,n)}}(e.getValidPoints(null,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var s=this,n=this.kdAxisArray[0],o=this.kdAxisArray[1],r=e?"distX":"dist",h=s.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,h,l){var c,d,p,u,f,g,m,x,v,y=i.point,b=s.kdAxisArray[h%l],k=y;return m=y,x=a((g=e)[n])&&a(m[n])?Math.pow(g[n]-m[n],2):null,v=(x||0)+((a(g[o])&&a(m[o])?Math.pow(g[o]-m[o],2):null)||0),m.dist=a(v)?Math.sqrt(v):Number.MAX_VALUE,m.distX=a(x)?Math.sqrt(x):Number.MAX_VALUE,p=(c=e[b]-y[b])<0?"right":"left",i[d=c<0?"left":"right"]&&(k=(u=t(e,i[d],h+1,l))[r]<k[r]?u:y),i[p]&&Math.sqrt(c*c)<k[r]&&(k=(f=t(e,i[p],h+1,l))[r]<k[r]?f:k),k}(t,this.kdTree,h,h)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),d(e)&&(e*=f(this.options.pointRange||t.pointRange)),e}})}),i(e,"parts/Stacking.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.correctFloat,s=e.defined,n=e.destroyObjectProperties,o=e.objectEach,r=e.pick,a=t.Axis,h=t.Chart,l=t.format,c=t.Series;t.StackItem=function(t,e,i,s,n){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=s,this.total=null,this.points={},this.stack=n,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){n(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,s=i.format,n={},o=s?l(s,this,e):i.formatter.call(this);this.label?this.label.attr({text:o,visibility:"hidden"}):(this.label=e.renderer.label(o,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={text:o,align:this.textAlign,rotation:i.rotation,padding:r(i.padding,0),visibility:"hidden"},this.label.attr(n),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,i,n,o){var a,h=this.axis,l=h.chart,d=h.translate(h.usePercentage?100:n||this.total,0,0,0,1),p=h.translate(i||0),u=s(d)&&Math.abs(d-p),f=r(o,l.xAxis[0].translate(this.x))+t,g=s(d)&&this.getStackBox(l,this,f,d,e,u,h),m=this.label,x=this.isNegative,v="justify"===r(this.options.overflow,"justify");if(m&&g){var y=m.getBBox(),b=l.inverted?x?y.width:0:y.width/2,k=l.inverted?y.height/2:x?-4:y.height+4;this.alignOptions.x=r(this.options.x,0),m.align(this.alignOptions,null,g),a=m.alignAttr,m.show(),a.y-=k,v&&(a.x-=b,c.prototype.justifyDataLabel.call(this.axis,m,this.alignOptions,a,y,g),a.x+=b),a.x=m.alignAttr.x,m.attr({x:a.x,y:a.y}),r(!v&&this.options.crop,!0)&&(l.isInsidePlot(m.x+(l.inverted?0:-y.width/2),m.y)&&l.isInsidePlot(m.x+(l.inverted?x?-y.width:y.width:y.width/2),m.y+y.height)||m.hide())}},getStackBox:function(t,e,i,s,n,o,r){var a=e.axis.reversed,h=t.inverted,l=r.height+r.pos-(h?t.plotLeft:t.plotTop),c=e.isNegative&&!a||!e.isNegative&&a;return{x:h?c?s:s-o:i,y:h?l-i-n:c?l-s-o:l-s,width:h?o:n,height:h?n:o}}},h.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),t.series.forEach(function(i){var s=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,r(i.options.stack,""),e?s.top:s.left,e?s.height:s.width].join(","))})},a.prototype.buildStacks=function(){var e,i=this.series,s=r(this.options.reversedStacks,!0),n=i.length;if(!this.isXAxis){for(this.usePercentage=!1,e=n;e--;)i[s?e:n-e-1].setStackedPoints();for(e=0;e<n;e++)i[e].modifyStacks();t.fireEvent(this,"afterBuildStacks")}},a.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,s=this.stackTotalGroup;s||(this.stackTotalGroup=s=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),s.translate(t.plotLeft,t.plotTop),o(i,function(t){o(t,function(t){t.render(s)})})},a.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||o(e,function(e){o(e,function(i,s){i.touched<t.stacksTouched?(i.destroy(),delete e[s]):(i.total=null,i.cumulative=null)})})},a.prototype.cleanStacks=function(){var t;this.isXAxis||(this.oldStacks&&(t=this.stacks=this.oldStacks),o(t,function(t){o(t,function(t){t.cumulative=t.total})}))},c.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e,n,o,a,h,l,c,d,p,u=this.processedXData,f=this.processedYData,g=[],m=f.length,x=this.options,v=x.threshold,y=r(x.startFromThreshold&&v,0),b=x.stack,k=x.stacking,M=this.stackKey,w="-"+M,S=this.negStacks,T=this.yAxis,A=T.stacks,P=T.oldStacks;for(T.stacksTouched+=1,c=0;c<m;c++)d=u[c],p=f[c],l=(e=this.getStackIndicator(e,d,this.index)).key,A[h=(n=S&&p<(y?0:v))?w:M]||(A[h]={}),A[h][d]||(P[h]&&P[h][d]?(A[h][d]=P[h][d],A[h][d].total=null):A[h][d]=new t.StackItem(T,T.options.stackLabels,n,d,b)),o=A[h][d],null!==p?(o.points[l]=o.points[this.index]=[r(o.cumulative,y)],s(o.cumulative)||(o.base=l),o.touched=T.stacksTouched,e.index>0&&!1===this.singleStacks&&(o.points[l][0]=o.points[this.index+","+d+",0"][0])):o.points[l]=o.points[this.index]=null,"percent"===k?(a=n?M:w,S&&A[a]&&A[a][d]?(a=A[a][d],o.total=a.total=Math.max(a.total,o.total)+Math.abs(p)||0):o.total=i(o.total+(Math.abs(p)||0))):o.total=i(o.total+(p||0)),o.cumulative=r(o.cumulative,y)+(p||0),null!==p&&(o.points[l].push(o.cumulative),g[c]=o.cumulative);"percent"===k&&(T.usePercentage=!0),this.stackedYData=g,T.oldStacks={}}},c.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,s=e.yAxis.stacks,n=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var r,a,h,l=n.length;l--;)r=n[l],t=e.getStackIndicator(t,r,e.index,i),(h=(a=s[i]&&s[i][r])&&a.points[t.key])&&e[o+"Stacker"](h,a,l)})},c.prototype.percentStacker=function(t,e,s){var n=e.total?100/e.total:0;t[0]=i(t[0]*n),t[1]=i(t[1]*n),this.stackedYData[s]=t[1]},c.prototype.getStackIndicator=function(t,e,i,n){return!s(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[i,e,t.index].join(","),t}}),i(e,"parts/Dynamics.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.defined,s=e.erase,n=e.extend,o=e.isArray,r=e.isNumber,a=e.isObject,h=e.isString,l=e.objectEach,c=e.pick,d=e.relativeLength,p=e.setAnimation,u=e.splat,f=t.addEvent,g=t.animate,m=t.Axis,x=t.Chart,v=t.createElement,y=t.css,b=t.fireEvent,k=t.merge,M=t.Point,w=t.Series,S=t.seriesTypes;t.cleanRecursively=function(e,i){var s={};return l(e,function(n,o){var r;a(e[o],!0)&&!e.nodeType&&i[o]?(r=t.cleanRecursively(e[o],i[o]),Object.keys(r).length&&(s[o]=r)):(a(e[o])||e[o]!==i[o])&&(s[o]=e[o])}),s},n(x.prototype,{addSeries:function(t,e,i){var s,n=this;return t&&(e=c(e,!0),b(n,"addSeries",{options:t},function(){s=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),b(n,"afterAddSeries",{series:s}),e&&n.redraw(i)})),s},addAxis:function(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(e,i){var s,n=this.options,o="colorAxis"===e,r=i.axis,a=i.redraw,h=i.animation,l=k(r,{index:this[e].length,isX:"xAxis"===e});return s=o?new t.ColorAxis(this,l):new m(this,l),n[e]=u(n[e]||{}),n[e].push(l),o&&(this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0})),c(a,!0)&&this.redraw(h),s},showLoading:function(t){var e=this,i=e.options,s=e.loadingDiv,o=i.loading,r=function(){s&&y(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};s||(e.loadingDiv=s=v("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=v("span",{className:"highcharts-loading-inner"},null,s),f(e,"redraw",r)),s.className="highcharts-loading",e.loadingSpan.innerHTML=c(t,i.lang.loading,""),e.styledMode||(y(s,n(o.style,{zIndex:10})),y(e.loadingSpan,o.labelStyle),e.loadingShown||(y(s,{opacity:0,display:""}),g(s,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){y(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"],collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(e,s,n,o){var a,p,f,g,m,x,v=this,y={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},M=e.isResponsiveOptions,w=[];b(v,"update",{options:e}),M||v.setResponsive(!1,!0),e=t.cleanRecursively(e,v.options),k(!0,v.userOptions,e),(a=e.chart)&&(k(!0,v.options.chart,a),"className"in a&&v.setClassName(a.className),"reflow"in a&&v.setReflow(a.reflow),("inverted"in a||"polar"in a||"type"in a)&&(v.propFromSeries(),p=!0),"alignTicks"in a&&(p=!0),l(a,function(t,e){-1!==v.propsRequireUpdateSeries.indexOf("chart."+e)&&(f=!0),-1!==v.propsRequireDirtyBox.indexOf(e)&&(v.isDirtyBox=!0),M||-1===v.propsRequireReflow.indexOf(e)||(x=!0)}),!v.styledMode&&"style"in a&&v.renderer.setStyle(a.style)),!v.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&k(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===t.time&&(this.time=new t.Time(e.time)),l(e,function(t,e){v[e]&&"function"==typeof v[e].update?v[e].update(t,!1):"function"==typeof v[y[e]]&&v[y[e]](t),"chart"!==e&&-1!==v.propsRequireUpdateSeries.indexOf(e)&&(f=!0)}),this.collectionsWithUpdate.forEach(function(t){var s;e[t]&&("series"===t&&(s=[],v[t].forEach(function(t,e){t.options.isInternal||s.push(c(t.options.index,e))})),u(e[t]).forEach(function(e,o){var r=i(e.id)&&v.get(e.id)||v[t][s?s[o]:o];r&&r.coll===t&&(r.update(e,!1),n&&(r.touched=!0)),!r&&n&&v.collectionsWithInit[t]&&(v.collectionsWithInit[t][0].apply(v,[e].concat(v.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),n&&v[t].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:w.push(t)}))}),w.forEach(function(t){t.remove&&t.remove(!1)}),p&&v.axes.forEach(function(t){t.update({},!1)}),f&&v.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),e.loading&&k(!0,v.options.loading,e.loading),g=a&&a.width,m=a&&a.height,h(m)&&(m=d(m,g||v.chartWidth)),x||r(g)&&g!==v.chartWidth||r(m)&&m!==v.chartHeight?v.setSize(g,m,o):c(s,!0)&&v.redraw(o),b(v,"afterUpdate",{options:e,redraw:s,animation:o})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),x.prototype.collectionsWithInit={xAxis:[x.prototype.addAxis,[!0]],yAxis:[x.prototype.addAxis,[!1]],series:[x.prototype.addSeries]},n(M.prototype,{update:function(t,e,i,s){var n,o=this,r=o.series,h=o.graphic,l=r.chart,d=r.options;function p(){o.applyOptions(t),null===o.y&&h&&(o.graphic=h.destroy()),a(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(o.graphic=h.destroy()),t&&t.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),o.connector&&(o.connector=o.connector.destroy())),n=o.index,r.updateParallelArrays(o,n),d.data[n]=a(d.data[n],!0)||a(t,!0)?o.options:c(t,d.data[n]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===d.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=c(e,!0),!1===s?p():o.firePointEvent("update",{options:t},p)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),n(w.prototype,{addPoint:function(t,e,i,s,n){var o,r,a,h,l=this.options,d=this.data,p=this.chart,u=this.xAxis,f=u&&u.hasNames&&u.names,g=l.data,m=this.xData;if(e=c(e,!0),o={series:this},this.pointClass.prototype.applyOptions.apply(o,[t]),h=o.x,a=m.length,this.requireSorting&&h<m[a-1])for(r=!0;a&&m[a-1]>h;)a--;this.updateParallelArrays(o,"splice",a,0,0),this.updateParallelArrays(o,a),f&&o.name&&(f[h]=o.name),g.splice(a,0,t),r&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(d[0]&&d[0].remove?d[0].remove(!1):(d.shift(),this.updateParallelArrays(o,"shift"),g.shift())),!1!==n&&b(this,"addPoint",{point:o}),this.isDirty=!0,this.isDirtyData=!0,e&&p.redraw(s)},removePoint:function(t,e,i){var s=this,n=s.data,o=n[t],r=s.points,a=s.chart,h=function(){r&&r.length===n.length&&r.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(o||{series:s},"splice",t,1),o&&o.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};p(i,a),e=c(e,!0),o?o.firePointEvent("remove",null,h):h()},remove:function(t,e,i,s){var n=this,o=n.chart;function r(){n.destroy(s),n.remove=null,o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),c(t,!0)&&o.redraw(e)}!1!==i?b(n,"remove",null,r):r()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),b(this,"update",{options:e});var s,o,r=this,a=r.chart,h=r.userOptions,l=r.initialType||r.type,d=e.type||h.type||a.options.chart.type,p=!(this.hasDerivedData||e.dataGrouping||d&&d!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),u=S[l].prototype,f=["group","markerGroup","dataLabelsGroup","transformGroup"],g=["eventOptions","navigatorSeries","baseSeries"],m=r.finishedAnimating&&{animation:!1},x={};for(o in p&&(g.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&g.push("area","graph"),r.parallelArrays.forEach(function(t){g.push(t+"Data")}),e.data&&(e.dataSorting&&n(r.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=k(h,m,{index:void 0===h.index?r.index:h.index,pointStart:c(h.pointStart,r.xData[0])},!p&&{data:r.options.data},e),p&&e.data&&(e.data=r.options.data),(g=f.concat(g)).forEach(function(t){g[t]=r[t],delete r[t]}),r.remove(!1,null,!1,!0),u)r[o]=void 0;if(S[d||l]?n(r,S[d||l].prototype):t.error(17,!0,a,{missingModuleFor:d||l}),g.forEach(function(t){r[t]=g[t]}),r.init(a,e),p&&this.points){if(!1===(s=r.options).visible)x.graphic=1,x.dataLabel=1;else if(!r._hasPointLabels){var v=s.marker,y=s.dataLabels;v&&(!1===v.enabled||"symbol"in v)&&(x.graphic=1),y&&!1===y.enabled&&(x.dataLabel=1)}this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(x).length&&t.destroyElements(x),!1===s.showInLegend&&t.legendItem&&a.legend.destroyItem(t))},this)}e.zIndex!==h.zIndex&&f.forEach(function(t){r[t]&&r[t].attr({zIndex:e.zIndex})}),r.initialType=l,a.linkSeries(),b(this,"afterUpdate"),c(i,!0)&&a.redraw(!!p&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),n(m.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=k(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),l(i.options[this.coll].events,function(t,e){void 0===s[e]&&(s[e]=void 0)}),this.destroy(!0),this.init(i,n(t,{events:s})),i.isDirtyBox=!0,c(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,r=n.length;r--;)n[r]&&n[r].remove(!1);s(e.axes,this),s(e[i],this),o(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,c(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),i(e,"parts/AreaSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.objectEach,s=e.pick,n=t.color,o=t.LegendSymbolMixin,r=t.Series;(0,t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,n,o=[],r=[],a=this.xAxis,h=this.yAxis,l=h.stacks[this.stackKey],c={},d=this.index,p=h.series,u=p.length,f=s(h.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(n=0;n<t.length;n++)t[n].leftNull=t[n].rightNull=void 0,c[t[n].x]=t[n];i(l,function(t,e){null!==t.total&&r.push(e)}),r.sort(function(t,e){return t-e}),e=p.map(function(t){return t.visible}),r.forEach(function(t,i){var s,p,g=0;if(c[t]&&!c[t].isNull)o.push(c[t]),[-1,1].forEach(function(o){var a=1===o?"rightNull":"leftNull",h=1===o?"rightCliff":"leftCliff",g=0,m=l[r[i+o]];if(m)for(n=d;n>=0&&n<u;)(s=m.points[n])||(n===d?c[t][a]=!0:e[n]&&(p=l[t].points[n])&&(g-=p[1]-p[0])),n+=f;c[t][h]=g});else{for(n=d;n>=0&&n<u;){if(s=l[t].points[n]){g=s[1];break}n+=f}g=h.translate(g,0,1,0,1),o.push({isNull:!0,plotX:a.translate(t,0,0,0,1),x:t,plotY:g,yBottom:g})}})}return o},getGraphPath:function(t){var e,i,n,o,a,h,l,c,d=r.prototype.getGraphPath,p=this.options,u=p.stacking,f=this.yAxis,g=[],m=[],x=this.index,v=f.stacks[this.stackKey],y=p.threshold,b=Math.round(f.getThreshold(p.threshold)),k=s(p.connectNulls,"percent"===u),M=function(e,i,s){var n,o,r=t[e],a=u&&v[r.x].points[x],l=r[s+"Null"]||0,c=r[s+"Cliff"]||0,d=!0;c||l?(n=(l?a[0]:a[1])+c,o=a[0]+c,d=!!l):!u&&t[i]&&t[i].isNull&&(n=o=y),void 0!==n&&(m.push({plotX:h,plotY:null===n?b:f.getThreshold(n),isNull:d,isCliff:!0}),g.push({plotX:h,plotY:null===o?b:f.getThreshold(o),doCurve:!1}))};for(t=t||this.points,u&&(t=this.getStackPoints(t)),o=0;o<t.length;o++)u||(t[o].leftCliff=t[o].rightCliff=t[o].leftNull=t[o].rightNull=void 0),l=t[o].isNull,h=s(t[o].rectPlotX,t[o].plotX),c=s(t[o].yBottom,b),l&&!k||(k||M(o,o-1,"left"),l&&!u&&k||(m.push(t[o]),g.push({x:o,plotX:h,plotY:c})),k||M(o,o+1,"right"));return i=d.call(this,m,!0,!0),g.reversed=!0,(n=d.call(this,g,!0,!0)).length&&(n[0]="L"),a=i.concat(n),e=d.call(this,m,!1,k),a.xMap=i.xMap,this.areaPath=a,e},drawGraph:function(){this.areaPath=[],r.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,o=this.zones,a=[["area","highcharts-area",this.color,i.fillColor]];o.forEach(function(e,s){a.push(["zone-area-"+s,"highcharts-area highcharts-zone-area-"+s+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])}),a.forEach(function(o){var r=o[0],a=t[r],h=a?"animate":"attr",l={};a?(a.endX=t.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(l.zIndex=0,(a=t[r]=t.chart.renderer.path(e).addClass(o[1]).add(t.group)).isArea=!0),t.chart.styledMode||(l.fill=s(o[3],n(o[2]).setOpacity(s(i.fillOpacity,.75)).get())),a[h](l),a.startX=e.xMap,a.shiftUnit=i.step?2:1})},drawLegendSymbol:o.drawRectangle})}),i(e,"parts/SplineSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.pick;(0,t.seriesType)("spline","line",{},{getPointSpline:function(t,e,s){var n,o,r,a,h,l=e.plotX,c=e.plotY,d=t[s-1],p=t[s+1];function u(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(u(d)&&u(p)){var f=d.plotX,g=d.plotY,m=p.plotX,x=p.plotY,v=0;o=(1.5*c+g)/2.5,a=(1.5*c+x)/2.5,(r=(1.5*l+m)/2.5)!==(n=(1.5*l+f)/2.5)&&(v=(a-o)*(r-l)/(r-n)+c-a),a+=v,(o+=v)>g&&o>c?a=2*c-(o=Math.max(g,c)):o<g&&o<c&&(a=2*c-(o=Math.min(g,c))),a>x&&a>c?o=2*c-(a=Math.max(x,c)):a<x&&a<c&&(o=2*c-(a=Math.min(x,c))),e.rightContX=r,e.rightContY=a}return h=["C",i(d.rightContX,d.plotX),i(d.rightContY,d.plotY),i(n,l),i(o,c),l,c],d.rightContX=d.rightContY=null,h}})}),i(e,"parts/AreaSplineSeries.js",[e["parts/Globals.js"]],function(t){var e=t.seriesTypes.area.prototype,i=t.defaultPlotOptions,s=t.LegendSymbolMixin;(0,t.seriesType)("areaspline","spline",i.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:s.drawRectangle})}),i(e,"parts/ColumnSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.clamp,n=e.defined,o=e.extend,r=e.isNumber,a=e.pick,h=t.color,l=t.LegendSymbolMixin,c=t.merge,d=t.noop,p=t.Series,u=t.seriesType,f=t.svg;u("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){p.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e=this,i=e.options,s=e.xAxis,n=e.yAxis,o=s.options.reversedStacks,r=s.reversed&&!o||!s.reversed&&o,h={},l=0;!1===i.grouping?l=1:e.chart.series.forEach(function(i){var s,o=i.yAxis,r=i.options;i.type!==e.type||!i.visible&&e.chart.options.chart.ignoreHiddenSeries||n.len!==o.len||n.pos!==o.pos||(r.stacking?(t=i.stackKey,void 0===h[t]&&(h[t]=l++),s=h[t]):!1!==r.grouping&&(s=l++),i.columnIndex=s)});var c=Math.min(Math.abs(s.transA)*(s.ordinalSlope||i.pointRange||s.closestPointRange||s.tickInterval||1),s.len),d=c*i.groupPadding,p=(c-2*d)/(l||1),u=Math.min(i.maxPointWidth||s.len,a(i.pointWidth,p*(1-2*i.pointPadding))),f=(p-u)/2+(d+((e.columnIndex||0)+(r?1:0))*p-c/2)*(r?-1:1);return e.columnMetrics={width:u,offset:f},e.columnMetrics},crispCol:function(t,e,i,s){var n,o,r=this.chart,a=this.borderWidth,h=-(a%2?.5:0),l=a%2?.5:1;return r.inverted&&r.renderer.isVML&&(l+=1),this.options.crisp&&(i=Math.round(t+i)+h-(t=Math.round(t)+h)),n=Math.round(e+s)+l,o=Math.abs(e)<=.5&&n>.5,s=n-(e=Math.round(e)+l),o&&s&&(e-=1,s+=1),{x:t,y:e,width:i,height:s}},translate:function(){var t=this,e=t.chart,i=t.options,o=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=a(i.borderWidth,o?0:1),h=t.yAxis,l=i.threshold,c=t.translatedThreshold=h.getThreshold(l),d=a(i.minPointLength,5),u=t.getColumnMetrics(),f=u.width,g=t.barW=Math.max(f,1+2*r),m=t.pointXOffset=u.offset,x=t.dataMin,v=t.dataMax;e.inverted&&(c-=.5),i.pointPadding&&(g=Math.ceil(g)),p.prototype.translate.apply(t),t.points.forEach(function(i){var o,r=a(i.yBottom,c),p=999+Math.abs(r),u=f,y=s(i.plotY,-p,h.len+p),b=i.plotX+m,k=g,M=Math.min(y,r),w=Math.max(y,r)-M;d&&Math.abs(w)<d&&(w=d,o=!h.reversed&&!i.negative||h.reversed&&i.negative,i.y===l&&t.dataMax<=l&&h.min<l&&x!==v&&(o=!o),M=Math.abs(M-c)>d?r-d:c-(o?d:0)),n(i.options.pointWidth)&&(u=k=Math.ceil(i.options.pointWidth),b-=Math.round((u-f)/2)),i.barX=b,i.pointWidth=u,i.tooltipPos=e.inverted?[h.len+h.pos-e.plotLeft-y,t.xAxis.len-b-k/2,w]:[b+k/2,y+h.pos-e.plotTop,w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[b,c,k,0]:[b,M,k,w])})},getSymbol:d,drawLegendSymbol:l.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,s,n,o,r=this.options,l=this.pointAttrToOptions||{},d=l.stroke||"borderColor",p=l["stroke-width"]||"borderWidth",u=t&&t.color||this.color,f=t&&t[d]||r[d]||this.color||u,g=t&&t[p]||r[p]||this[p]||0,m=t&&t.options.dashStyle||r.dashStyle,x=a(t&&t.opacity,r.opacity,1);return t&&this.zones.length&&(n=t.getZone(),u=t.options.color||n&&(n.color||t.nonZonedColor)||this.color,n&&(f=n.borderColor||f,m=n.dashStyle||m,g=n.borderWidth||g)),e&&t&&(o=(i=c(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,u=i.color||void 0!==o&&h(u).brighten(i.brightness).get()||u,f=i[d]||f,g=i[p]||g,m=i.dashStyle||m,x=a(i.opacity,x)),s={fill:u,stroke:f,"stroke-width":g,opacity:x},m&&(s.dashstyle=m),s},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,n=i.renderer,o=s.animationLimit||250;e.points.forEach(function(a){var h=a.plotY,l=a.graphic,d=!!l,p=l&&i.pointCount<o?"animate":"attr";r(h)&&null!==a.y?(t=a.shapeArgs,l&&a.hasNewShapeType()&&(l=l.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(t?t.width:0):e.xAxis.width),l||(a.graphic=l=n[a.shapeType](t).add(a.group||e.group),l&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<o&&(l.attr({x:a.startXPos}),d=!0,p="animate")),l&&d&&l[p](c(t)),s.borderRadius&&l[p]({r:s.borderRadius}),i.styledMode||l[p](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),l.addClass(a.getClassName(),!0)):l&&(a.graphic=l.destroy())})},animate:function(t){var e,n,r=this,a=this.yAxis,h=r.options,l=this.chart.inverted,c={},d=l?"translateX":"translateY";f&&(t?(c.scaleY=.001,n=s(a.toPixels(h.threshold),a.pos,a.pos+a.len),l?c.translateX=n-a.len:c.translateY=n,r.clipBox&&r.setClip(),r.group.attr(c)):(e=r.group.attr(d),r.group.animate({scaleY:1},o(i(r.options.animation),{step:function(t,i){c[d]=e+i.pos*(a.pos-e),r.group.attr(c)}})),r.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),p.prototype.remove.apply(t,arguments)}})}),i(e,"parts/BarSeries.js",[e["parts/Globals.js"]],function(t){(0,t.seriesType)("bar","column",null,{inverted:!0})}),i(e,"parts/ScatterSeries.js",[e["parts/Globals.js"]],function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,n){["x","y"].forEach(function(o,r){var a,h,l,c,d,p,u="plot"+o.toUpperCase();e[o]&&!s.isNull&&(a=t[o+"Axis"],c=e[o]*a.transA,a&&!a.isLog&&(h=Math.max(0,s[u]-c),l=Math.min(a.len,s[u]+c),s[u]=h+(l-h)*(d=n+r*i,(p=1e4*Math.sin(d))-Math.floor(p)),"x"===o&&(s.clientX=s.plotX)))})})}}),t.addEvent(e,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),i(e,"mixins/centered-series.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.isNumber,s=e.pick,n=e.relativeLength,o=t.deg2rad;t.CenteredSeriesMixin={getCenter:function(){var t,e,i,o=this.options,r=this.chart,a=2*(o.slicedOffset||0),h=r.plotWidth-2*a,l=r.plotHeight-2*a,c=o.center,d=[s(c[0],"50%"),s(c[1],"50%"),o.size||"100%",o.innerSize||0],p=Math.min(h,l);for(e=0;e<4;++e)i=d[e],t=e<2||2===e&&/%$/.test(i),d[e]=n(i,[h,l,p,d[2]][e])+(t?a:0);return d[3]>d[2]&&(d[3]=d[2]),d},getStartAndEndRadians:function(t,e){var s=i(t)?t:0,n=i(e)&&e>s&&e-s<360?e:s+360;return{start:o*(s+-90),end:o*(n+-90)}}}}),i(e,"parts/PieSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.clamp,s=e.defined,n=e.isNumber,o=e.pick,r=e.relativeLength,a=e.setAnimation,h=t.addEvent,l=t.CenteredSeriesMixin,c=l.getStartAndEndRadians,d=t.LegendSymbolMixin,p=t.merge,u=t.noop,f=t.Point,g=t.Series,m=t.seriesType,x=t.seriesTypes,v=t.fireEvent;m("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:x.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;t||(i.forEach(function(t){var i=t.graphic,n=t.shapeArgs;i&&n&&(i.attr({r:o(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}),e.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e,i=0,s=this.points,n=s.length,o=this.options.ignoreHiddenPoint;for(t=0;t<n;t++)e=s[t],i+=o&&!e.visible?0:e.isNull?0:e.y;for(this.total=i,t=0;t<n;t++)(e=s[t]).percentage=i>0&&(e.visible||!o)?e.y/i*100:0,e.total=i},generatePoints:function(){g.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,s){var n,o=this.center,r=this.radii?this.radii[s.index]:o[2]/2;return n=Math.asin(i((t-o[1])/(r+s.labelDistance),-1,1)),o[0]+(e?-1:1)*(Math.cos(n)*(r+s.labelDistance))+(s.labelDistance>0?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(t){this.generatePoints();var e,i,s,n,a,h,l,d,p=0,u=this.options,f=u.slicedOffset,g=f+(u.borderWidth||0),m=c(u.startAngle,u.endAngle),x=this.startAngleRad=m.start,y=(this.endAngleRad=m.end)-x,b=this.points,k=u.dataLabels.distance,M=u.ignoreHiddenPoint,w=b.length;for(t||(this.center=t=this.getCenter()),l=0;l<w;l++)d=b[l],i=x+p*y,M&&!d.visible||(p+=d.percentage/100),s=x+p*y,d.shapeType="arc",d.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*i)/1e3,end:Math.round(1e3*s)/1e3},d.labelDistance=o(d.options.dataLabels&&d.options.dataLabels.distance,k),d.labelDistance=r(d.labelDistance,d.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,d.labelDistance),(n=(s+i)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(n)*f),translateY:Math.round(Math.sin(n)*f)},a=Math.cos(n)*t[2]/2,h=Math.sin(n)*t[2]/2,d.tooltipPos=[t[0]+.7*a,t[1]+.7*h],d.half=n<-Math.PI/2||n>Math.PI/2?1:0,d.angle=n,e=Math.min(g,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+a+Math.cos(n)*d.labelDistance,y:t[1]+h+Math.sin(n)*d.labelDistance},final:{},alignment:d.labelDistance<0?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+a+Math.cos(n)*e,y:t[1]+h+Math.sin(n)*e},touchingSliceAt:{x:t[0]+a,y:t[1]+h}}};v(this,"afterTranslate")},drawEmpty:function(){var t,e,i=this.options;0===this.total?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.circle(t,e,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":i.borderWidth,cx:t,cy:e,r:this.center[2]/2,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,n=this,o=n.chart,r=o.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||o.styledMode||(n.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){if(s=h.shapeArgs,t=h.getTranslate(),!o.styledMode){var c=h.shadowGroup;a&&!c&&(c=h.shadowGroup=r.g("shadow").add(n.shadowGroup)),c&&c.attr(t),i=n.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(n.center),o.styledMode||p(!0,l,i),p(!0,l,s,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName())}else e&&(h.graphic=e.destroy())})},drawPoints:function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},searchPoint:u,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:d.drawRectangle,getCenter:l.getCenter,getSymbol:u,drawGraph:null},{init:function(){f.prototype.init.apply(this,arguments);var t,e=this;return e.name=o(e.name,"Slice"),t=function(t){e.slice("select"===t.type)},h(e,"select",t),h(e,"unselect",t),e},isValid:function(){return n(this.y)&&this.y>=0},setVisible:function(t,e){var i=this,s=i.series,n=s.chart,r=s.options.ignoreHiddenPoint;e=o(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&n.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(s.isDirty=!0),e&&n.redraw())},slice:function(t,e,i){var n=this.series,r=n.chart;a(i,r),e=o(e,!0),this.sliced=this.options.sliced=t=s(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt,n=e.touchingSliceAt,o=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-n.x,2*s.y-n.y,s.x,s.y]:["L",s.x,s.y];return["M",t.x,t.y].concat(o).concat(["L",n.x,n.y])},straight:function(t,e){var i=e.touchingSliceAt;return["M",t.x,t.y,"L",i.x,i.y]},crookedLine:function(t,e,i){var s=e.touchingSliceAt,n=this.series,o=n.center[0],a=n.chart.plotWidth,h=n.chart.plotLeft,l=t.alignment,c=this.shapeArgs.r,d=r(i.crookDistance,1),p="left"===l?o+c+(a+h-o-c)*(1-d):h+(o-c)*d,u=["L",p,t.y];return("left"===l?p>t.x||p<s.x:p<t.x||p>s.x)&&(u=[]),["M",t.x,t.y].concat(u).concat(["L",s.x,s.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})}),i(e,"parts/DataLabels.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.arrayMax,n=e.clamp,o=e.defined,r=e.extend,a=e.isArray,h=e.objectEach,l=e.pick,c=e.relativeLength,d=e.splat,p=t.format,u=t.merge,f=t.noop,g=t.Series,m=t.seriesTypes,x=t.stableSort;t.distribute=function(e,i,s){var o,r,a,h=!0,c=e,d=[],p=0,u=c.reducedLen||i;function f(t,e){return t.target-e.target}for(o=e.length;o--;)p+=e[o].size;if(p>u){for(x(e,function(t,e){return(e.rank||0)-(t.rank||0)}),o=0,p=0;p<=u;)p+=e[o].size,o++;d=e.splice(o-1,e.length)}for(x(e,f),e=e.map(function(t){return{size:t.size,targets:[t.target],align:l(t.align,.5)}});h;){for(o=e.length;o--;)r=e[o],a=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=n(a-r.size*r.align,0,i-r.size);for(o=e.length,h=!1;o--;)o>0&&e[o-1].pos+e[o-1].size>e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),h=!0)}c.push.apply(c,d),o=0,e.some(function(e){var n=0;if(e.targets.some(function(){if(c[o].pos=e.pos+n,Math.abs(c[o].pos-c[o].target)>s)return c.slice(0,o+1).forEach(function(t){delete t.pos}),c.reducedLen=(c.reducedLen||i)-.1*i,c.reducedLen>.1*i&&t.distribute(c,i,s),!0;n+=c[o].size,o++}))return!0}),x(c,f)},g.prototype.drawDataLabels=function(){var e,s=this,n=s.chart,r=s.options,c=r.dataLabels,f=s.points,g=s.hasRendered||0,m=i(r.animation).duration,x=Math.min(m,200),v=!n.renderer.forExport&&l(c.defer,x>0),y=n.renderer;function b(t,e){var i,s=[];if(a(t)&&!a(e))s=t.map(function(t){return u(t,e)});else if(a(e)&&!a(t))s=e.map(function(e){return u(t,e)});else if(a(t)||a(e))for(i=Math.max(t.length,e.length);i--;)s[i]=u(t[i],e[i]);else s=u(t,e);return s}c=b(b(n.options.plotOptions&&n.options.plotOptions.series&&n.options.plotOptions.series.dataLabels,n.options.plotOptions&&n.options.plotOptions[s.type]&&n.options.plotOptions[s.type].dataLabels),c),t.fireEvent(this,"drawDataLabels"),(a(c)||c.enabled||s._hasPointLabels)&&(e=s.plotGroup("dataLabelsGroup","data-labels",v&&!g?"hidden":"inherit",c.zIndex||6),v&&(e.attr({opacity:+g}),g||setTimeout(function(){var t=s.dataLabelsGroup;t&&(s.visible&&e.show(!0),t[r.animation?"animate":"attr"]({opacity:1},{duration:x}))},m-x)),f.forEach(function(t){d(b(c,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(i,a){var c,d,u,f,g,m,x=i.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i,s,n,o=e.filter;return!o||(i=o.operator,s=t[o.property],n=o.value,">"===i&&s>n||"<"===i&&s<n||">="===i&&s>=n||"<="===i&&s<=n||"=="===i&&s==n||"==="===i&&s===n)}(t,i),v=t.dataLabels?t.dataLabels[a]:t.dataLabel,b=t.connectors?t.connectors[a]:t.connector,k=l(i.distance,t.labelDistance),M=!v;x&&(c=t.getLabelConfig(),d=l(i[t.formatPrefix+"Format"],i.format),u=o(d)?p(d,c,n):(i[t.formatPrefix+"Formatter"]||i.formatter).call(c,i),f=i.style,g=i.rotation,n.styledMode||(f.color=l(i.color,f.color,s.color,"#000000"),"contrast"===f.color?(t.contrastColor=y.getContrast(t.color||s.color),f.color=!o(k)&&i.inside||k<0||r.stacking?t.contrastColor:"#000000"):delete t.contrastColor,r.cursor&&(f.cursor=r.cursor)),m={r:i.borderRadius||0,rotation:g,padding:i.padding,zIndex:1},n.styledMode||(m.fill=i.backgroundColor,m.stroke=i.borderColor,m["stroke-width"]=i.borderWidth),h(m,function(t,e){void 0===t&&delete m[e]})),!v||x&&o(u)?x&&o(u)&&(v?m.text=u:(t.dataLabels=t.dataLabels||[],v=t.dataLabels[a]=g?y.text(u,0,-9999).addClass("highcharts-data-label"):y.label(u,0,-9999,i.shape,null,null,i.useHTML,null,"data-label"),a||(t.dataLabel=v),v.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(i.className||"")+(i.useHTML?" highcharts-tracker":""))),v.options=i,v.attr(m),n.styledMode||v.css(f).shadow(i.shadow),v.added||v.add(e),i.textPath&&!i.useHTML&&(v.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(v)||t.graphic,i.textPath),t.dataLabelPath&&!i.textPath.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),s.alignDataLabel(t,v,i,null,M)):(t.dataLabel=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,b&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a])))})})),t.fireEvent(this,"afterDrawDataLabels")},g.prototype.alignDataLabel=function(t,e,i,s,n){var o,a,h,c,d,p=this,u=this.chart,f=this.isCartesian&&u.inverted,g=this.enabledDataSorting,m=l(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),x=l(t.plotY,-9999),v=e.getBBox(),y=i.rotation,b=i.align,k=u.isInsidePlot(m,Math.round(x),f),M="justify"===l(i.overflow,g?"none":"justify"),w=this.visible&&(t.series.forceDL||g&&!M||k||s&&u.isInsidePlot(m,f?s.x+1:s.y+s.height-1,f)),S=function(i){g&&p.xAxis&&!M&&p.setDataLabelStartPos(t,e,n,k,i)};w&&(o=u.renderer.fontMetrics(u.styledMode?void 0:i.style.fontSize,e).b,s=r({x:f?this.yAxis.len-x:m,y:Math.round(f?this.xAxis.len-m:x),width:0,height:0},s),r(i,{width:v.width,height:v.height}),y?(M=!1,c=u.renderer.rotCorr(o,y),S(d={x:s.x+i.x+s.width/2+c.x,y:s.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height}),e[n?"attr":"animate"](d).attr({align:b}),h=(a=(y+720)%360)>180&&a<360,"left"===b?d.y-=h?v.height:0:"center"===b?(d.x-=v.width/2,d.y-=v.height/2):"right"===b&&(d.x-=v.width,d.y-=h?0:v.height),e.placed=!0,e.alignAttr=d):(S(s),e.align(i,null,s),d=e.alignAttr),M&&s.height>=0?this.justifyDataLabel(e,i,d,v,s,n):l(i.crop,!0)&&(w=u.isInsidePlot(d.x,d.y)&&u.isInsidePlot(d.x+v.width,d.y+v.height)),i.shape&&!y&&e[n?"attr":"animate"]({anchorX:f?u.plotWidth-t.plotY:t.plotX,anchorY:f?u.plotHeight-t.plotX:t.plotY})),n&&g&&(e.placed=!1),w||g&&!M||(e.hide(!0),e.placed=!1)},g.prototype.setDataLabelStartPos=function(t,e,i,s,n){var o,r,a=this.chart,h=a.inverted,l=this.xAxis,c=l.reversed,d=h?e.height/2:e.width/2,p=t.pointWidth,u=p?p/2:0;o=h?n.x:c?-d-u:l.width-d+u,r=h?c?this.yAxis.height-d+u:-d-u:n.y,e.startXPos=o,e.startYPos=r,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),a.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},g.prototype.justifyDataLabel=function(t,e,i,s,n,o){var r,a,h=this.chart,l=e.align,c=e.verticalAlign,d=t.box?0:t.padding||0;return(r=i.x+d)<0&&("right"===l?(e.align="left",e.inside=!0):e.x=-r,a=!0),(r=i.x+s.width-d)>h.plotWidth&&("left"===l?(e.align="right",e.inside=!0):e.x=h.plotWidth-r,a=!0),(r=i.y+d)<0&&("bottom"===c?(e.verticalAlign="top",e.inside=!0):e.y=-r,a=!0),(r=i.y+s.height-d)>h.plotHeight&&("top"===c?(e.verticalAlign="bottom",e.inside=!0):e.y=h.plotHeight-r,a=!0),a&&(t.placed=!o,t.align(e,null,n)),a},m.pie&&(m.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(i<e.top+2||i>e.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){var n=t.getBBox().width;return e?n+s:i-n-s},alignToConnectors:function(t,e,i,s){var n,o=0;return t.forEach(function(t){(n=t.dataLabel.getBBox().width)>o&&(o=n)}),e?o+s:i-o-s}},m.pie.prototype.drawDataLabels=function(){var e,i,n,r,a,h,c,d,p,f,m,x,v=this,y=v.data,b=v.chart,k=v.options.dataLabels,M=k.connectorPadding,w=b.plotWidth,S=b.plotHeight,T=b.plotLeft,A=Math.round(b.chartWidth/3),P=v.center,L=P[2]/2,C=P[1],O=[[],[]],E=[0,0,0,0],D=v.dataLabelPositioners;v.visible&&(k.enabled||v._hasPointLabels)&&(y.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),g.prototype.drawDataLabels.apply(v),y.forEach(function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,o(k.style.width)||o(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)||t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:.7*A}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),O.forEach(function(i,s){var n,u,g,x,y,A,O=i.length,I=[];if(O)for(v.sortByAngle(i,s-.5),v.maxLabelDistance>0&&(n=Math.max(0,C-L-v.maxLabelDistance),u=Math.min(C+L+v.maxLabelDistance,b.plotHeight),i.forEach(function(t){t.labelDistance>0&&t.dataLabel&&(t.top=Math.max(0,C-L-t.labelDistance),t.bottom=Math.min(C+L+t.labelDistance,b.plotHeight),y=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+y/2,size:y,rank:t.y},I.push(t.distributeBox))}),A=u+y-n,t.distribute(I,A,A/5)),m=0;m<O;m++){if(e=i[m],h=e.labelPosition,r=e.dataLabel,f=!1===e.visible?"hidden":"inherit",g=h.natural.y,p=g,I&&o(e.distributeBox)&&(void 0===e.distributeBox.pos?f="hidden":(c=e.distributeBox.size,p=D.radialDistributionY(e))),delete e.positionIndex,k.justify)d=D.justify(e,L,P);else switch(k.alignTo){case"connectors":d=D.alignToConnectors(i,s,w,T);break;case"plotEdges":d=D.alignToPlotEdges(r,s,w,T);break;default:d=D.radialDistributionX(v,e,p,g)}r._attr={visibility:f,align:h.alignment},r._pos={x:d+k.x+({left:M,right:-M}[h.alignment]||0),y:p+k.y-10},h.final.x=d,h.final.y=p,l(k.crop,!0)&&(a=r.getBBox().width,x=null,d-a<M&&1===s?(x=Math.round(a-d+M),E[3]=Math.max(x,E[3])):d+a>w-M&&0===s&&(x=Math.round(d+a-w+M),E[1]=Math.max(x,E[1])),p-c/2<0?E[0]=Math.max(Math.round(c/2-p),E[0]):p+c/2>S&&(E[2]=Math.max(Math.round(p+c/2-S),E[2])),r.sideOverflow=x)}}),(0===s(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach(function(t){var e;(x=u(k,t.options.dataLabels),i=l(x.connectorWidth,1))&&(n=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&t.labelDistance>0?(f=r._attr.visibility,(e=!n)&&(t.connector=n=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||n.attr({"stroke-width":i,stroke:x.connectorColor||t.color||"#666666"})),n[e?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",f)):n&&(t.connector=n.destroy()))})))},m.pie.prototype.placeDataLabels=function(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)},m.pie.prototype.alignDataLabel=f,m.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,s=i.center,o=i.minSize||80,r=o,a=null!==i.size;return a||(null!==s[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),o):(r=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2),null!==s[1]?r=n(r,o,e[2]-Math.max(t[0],t[2])):(r=n(r,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(c(i.innerSize||0,r),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}),m.column&&(m.column.prototype.alignDataLabel=function(t,e,i,s,n){var o,r=this.chart.inverted,a=t.series,h=t.dlBox||t.shapeArgs,c=l(t.below,t.plotY>l(this.translatedThreshold,a.yAxis.len)),d=l(i.inside,!!this.options.stacking);h&&((s=u(h)).y<0&&(s.height+=s.y,s.y=0),(o=s.y+s.height-a.yAxis.len)>0&&(s.height-=o),r&&(s={x:a.yAxis.len-s.y-s.height,y:a.xAxis.len-s.x-s.width,width:s.height,height:s.width}),d||(r?(s.x+=c?0:s.width,s.width=0):(s.y+=c?s.height:0,s.height=0))),i.align=l(i.align,!r||d?"center":c?"right":"left"),i.verticalAlign=l(i.verticalAlign,r||d?"middle":c?"top":"bottom"),g.prototype.alignDataLabel.call(this,t,e,i,s,n),s&&(s.height<=0&&s.y===this.chart.plotHeight||s.width<=0&&0===s.x)&&(e.hide(!0),e.placed=!1),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})}),i(e,"modules/overlapping-datalabels.src.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.isArray,s=e.objectEach,n=e.pick,o=t.Chart,r=t.addEvent,a=t.fireEvent;r(o,"render",function(){var t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&s(e.stacks,function(e){s(e,function(e){t.push(e.label)})})}),(this.series||[]).forEach(function(e){var s=e.options.dataLabels;e.visible&&(!1!==s.enabled||e._hasPointLabels)&&e.points.forEach(function(e){e.visible&&(i(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach(function(i){var s=i.options;i.labelrank=n(s.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),s.allowOverlap||t.push(i)})})}),this.hideOverlappingLabels(t)}),o.prototype.hideOverlappingLabels=function(t){var e,i,s,n,o,r,h,l=this,c=t.length,d=l.renderer,p=!1,u=function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},f=function(t){var e,i,s,n=t.box?0:t.padding||0,o=0;if(t&&(!t.alignAttr||t.placed))return e=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},i=t.parentGroup,t.width||(s=t.getBBox(),t.width=s.width,t.height=s.height,o=d.fontMetrics(null,t.element).h),{x:e.x+(i.translateX||0)+n,y:e.y+(i.translateY||0)+n-o,width:t.width-2*n,height:t.height-2*n}};for(i=0;i<c;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=f(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<c;i++)for(r=(n=t[i])&&n.absoluteBox,s=i+1;s<c;++s)h=(o=t[s])&&o.absoluteBox,r&&h&&n!==o&&0!==n.newOpacity&&0!==o.newOpacity&&u(r,h)&&((n.labelrank<o.labelrank?n:o).newOpacity=0);t.forEach(function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},p=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),a(l,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0)}),p&&a(l,"afterHideAllOverlappingLabels")}}),i(e,"parts/Interaction.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i,s=e.defined,n=e.extend,o=e.isArray,r=e.isObject,a=e.objectEach,h=e.pick,l=t.addEvent,c=t.Chart,d=t.createElement,p=t.css,u=t.defaultOptions,f=t.defaultPlotOptions,g=t.fireEvent,m=t.hasTouch,x=t.Legend,v=t.merge,y=t.Point,b=t.Series,k=t.seriesTypes,M=t.svg;i=t.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,s=i.pointer,n=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach(function(e){t=o(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||(e.trackerGroups.forEach(function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(t){s.onTrackerMouseOut(t)}),m&&e[t].on("touchstart",n),!i.styledMode&&e.options.cursor&&e[t].css(p).css({cursor:e.options.cursor}))}),e._hasTracking=!0),g(this,"afterDrawTracker")},drawTrackerGraph:function(){var t,e=this,i=e.options,s=i.trackByArea,n=[].concat(s?e.areaPath:e.graphPath),o=n.length,r=e.chart,a=r.pointer,h=r.renderer,l=r.options.tooltip.snap,c=e.tracker,d=function(){r.hoverSeries!==e&&e.onMouseOver()},p="rgba(192,192,192,"+(M?1e-4:.002)+")";if(o&&!s)for(t=o+1;t--;)"M"===n[t]&&n.splice(t+1,0,n[t+1]-l,n[t+2],"L"),(t&&"M"===n[t]||t===o)&&n.splice(t,0,"L",n[t-2]+l,n[t-1]);c?c.attr({d:n}):e.graph&&(e.tracker=h.path(n).attr({visibility:e.visible?"visible":"hidden",zIndex:2}).addClass(s?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||e.tracker.attr({"stroke-linejoin":"round",stroke:p,fill:s?p:"none","stroke-width":e.graph.strokeWidth()+(s?0:2*l)}),[e.tracker,e.markerGroup].forEach(function(t){t.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(t){a.onTrackerMouseOut(t)}),i.cursor&&!r.styledMode&&t.css({cursor:i.cursor}),m&&t.on("touchstart",d)})),g(this,"afterDrawTracker")}},k.column&&(k.column.prototype.drawTracker=i.drawTrackerPoint),k.pie&&(k.pie.prototype.drawTracker=i.drawTrackerPoint),k.scatter&&(k.scatter.prototype.drawTracker=i.drawTrackerPoint),n(x.prototype,{setItemEvents:function(t,e,i){var s=this,n=s.chart.renderer.boxWrapper,o=t instanceof y,r="highcharts-legend-"+(o?"point":"series")+"-active",a=s.chart.styledMode;(i?e:t.legendGroup).on("mouseover",function(){t.visible&&s.allItems.forEach(function(e){t!==e&&e.setState("inactive",!o)}),t.setState("hover"),t.visible&&n.addClass(r),a||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(v(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach(function(e){t!==e&&e.setState("",!o)}),n.removeClass(r),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach(function(e){t!==e&&e.setState(t.visible?"inactive":"",!o)})};n.removeClass(r),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):g(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),l(t.checkbox,"click",function(e){var i=e.target;g(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}),n(c.prototype,{showResetZoom:function(){var t=this,e=u.lang,i=t.options.chart.resetZoomButton,s=i.theme,n=s.states,o="chart"===i.relativeTo||"spaceBox"===i.relativeTo?null:"plotBox";function r(){t.zoomOut()}g(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,s,n&&n.hover).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),g(this,"afterShowResetZoom")},zoomOut:function(){g(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var e,i,n=this,o=n.pointer,a=!1,l=n.inverted?o.mouseDownX:o.mouseDownY;!t||t.resetSelection?(n.axes.forEach(function(t){e=t.zoom()}),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var i=t.axis,r=n.inverted?i.left:i.top,h=n.inverted?r+i.width:r+i.height,c=i.isXAxis,d=!1;(!c&&l>=r&&l<=h||c||!s(l))&&(d=!0),o[c?"zoomX":"zoomY"]&&d&&(e=i.zoom(t.min,t.max),i.displayBtn&&(a=!0))}),i=n.resetZoomButton,a&&!i?n.showResetZoom():!a&&r(i)&&(n.resetZoomButton=i.destroy()),e&&n.redraw(h(n.options.chart.animation,t&&t.animation,n.pointCount<100))},pan:function(t,e){var i,s,n,o=this,r=o.hoverPoints,a=o.options.chart;i="object"==typeof e?e:{enabled:e,type:"x"},a&&a.panning&&(a.panning=i),n=i.type,g(this,"pan",{originalEvent:t},function(){r&&r.forEach(function(t){t.setState()});var e=[1];"xy"===n?e=[1,0]:"y"===n&&(e=[0]),e.forEach(function(e){var i,n=o[e?"xAxis":"yAxis"][0],r=n.options,a=n.horiz,h=t[a?"chartX":"chartY"],l=a?"mouseDownX":"mouseDownY",c=o[l],d=(n.pointRange||0)/2,p=n.reversed&&!o.inverted||!n.reversed&&o.inverted?-1:1,u=n.getExtremes(),f=n.toValue(c-h,!0)+d*p,g=n.toValue(c+n.len-h,!0)-d*p,m=g<f,x=m?g:f,v=m?f:g,y=Math.min(u.dataMin,d?u.min:n.toValue(n.toPixels(u.min)-n.minPixelPadding)),b=Math.max(u.dataMax,d?u.max:n.toValue(n.toPixels(u.max)+n.minPixelPadding));r.ordinal||(e&&((i=y-x)>0&&(v+=i,x=y),(i=v-b)>0&&(v=b,x-=i)),(n.series.length&&x!==u.min&&v!==u.max&&e||n.panningState&&x>=n.panningState.startMin&&v<=n.panningState.startMax)&&(n.setExtremes(x,v,!1,!1,{trigger:"pan"}),s=!0),o[l]=h)}),s&&o.redraw(!1),p(o.container,{cursor:"move"})})}}),n(y.prototype,{select:function(t,e){var i=this,s=i.series,n=s.chart;t=h(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,i=v(e.series.options.point,e.options).events;e.events=i,a(i,function(i,s){t.isFunction(i)&&l(e,s,i)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,s,o,r,a,l=this.series,c=this.state,d=l.options.states[t||"normal"]||{},p=f[l.type].marker&&l.options.marker,u=p&&!1===p.enabled,m=p&&p.states&&p.states[t||"normal"]||{},x=!1===m.enabled,v=l.stateMarkerGraphic,y=this.marker||{},b=l.chart,k=l.halo,M=p&&l.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===d.enabled||t&&(x||u&&!1===m.enabled)||t&&y.states&&y.states[t]&&!1===y.states[t].enabled)){this.state=t,M&&(s=l.markerAttribs(this,t)),this.graphic?(c&&this.graphic.removeClass("highcharts-point-"+c),t&&this.graphic.addClass("highcharts-point-"+t),b.styledMode||(o=l.pointAttribs(this,t),r=h(b.options.chart.animation,d.animation),l.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:o.opacity},r)}),this.connector&&this.connector.animate({opacity:o.opacity},r)),this.graphic.animate(o,r)),s&&this.graphic.animate(s,h(b.options.chart.animation,m.animation,p.animation)),v&&v.hide()):(t&&m&&(a=y.symbol||l.symbol,v&&v.currentSymbol!==a&&(v=v.destroy()),s&&(v?v[e?"animate":"attr"]({x:s.x,y:s.y}):a&&(l.stateMarkerGraphic=v=b.renderer.symbol(a,s.x,s.y,s.width,s.height).add(l.markerGroup),v.currentSymbol=a)),!b.styledMode&&v&&v.attr(l.pointAttribs(this,t))),v&&(v[t&&this.isInside?"show":"hide"](),v.element.point=this)),i=d.halo;var w=this.graphic||v,S=w&&w.visibility||"inherit";i&&i.size&&w&&"hidden"!==S&&!this.isCluster?(k||(l.halo=k=b.renderer.path().add(w.parentGroup)),k.show()[e?"animate":"attr"]({d:this.haloPath(i.size)}),k.attr({class:"highcharts-halo highcharts-color-"+h(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:S,zIndex:-1}),k.point=this,b.styledMode||k.attr(n({fill:this.color||l.color,"fill-opacity":i.opacity},i.attributes))):k&&k.point&&k.point.haloPath&&k.animate({d:k.point.haloPath(0)},null,k.hide),g(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),n(b.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&g(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&g(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},setState:function(t,e){var i,s=this,n=s.options,o=s.graph,r=n.inactiveOtherPoints,a=n.states,l=n.lineWidth,c=n.opacity,d=h(a[t||"normal"]&&a[t||"normal"].animation,s.chart.options.chart.animation),p=0;if(t=t||"",s.state!==t&&([s.group,s.markerGroup,s.dataLabelsGroup].forEach(function(e){e&&(s.state&&e.removeClass("highcharts-series-"+s.state),t&&e.addClass("highcharts-series-"+t))}),s.state=t,!s.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=h(a[t].opacity,c)),o&&!o.dashstyle)for(i={"stroke-width":l},o.animate(i,d);s["zone-graph-"+p];)s["zone-graph-"+p].attr(i),p+=1;r||[s.group,s.markerGroup,s.dataLabelsGroup,s.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},d)})}e&&r&&s.points&&s.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},setVisible:function(t,e){var i,s=this,n=s.chart,o=s.legendItem,r=n.options.chart.ignoreHiddenSeries,a=s.visible;s.visible=t=s.options.visible=s.userOptions.visible=void 0===t?!a:t,i=t?"show":"hide",["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){s[t]&&s[t][i]()}),n.hoverSeries!==s&&(n.hoverPoint&&n.hoverPoint.series)!==s||s.onMouseOut(),o&&n.legend.colorizeItem(s,t),s.isDirty=!0,s.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),s.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),r&&(n.isDirtyBox=!0),g(s,i),!1!==e&&n.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),g(this,t?"select":"unselect")},drawTracker:i.drawTrackerGraph})}),i(e,"parts/Responsive.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.isArray,s=e.isObject,n=e.objectEach,o=e.pick,r=e.splat,a=t.Chart;a.prototype.setResponsive=function(e,i){var s,n,o=this.options.responsive,r=[],a=this.currentResponsive;!i&&o&&o.rules&&o.rules.forEach(function(e){void 0===e._id&&(e._id=t.uniqueKey()),this.matchResponsiveRule(e,r)},this);var h=t.merge.apply(0,r.map(function(e){return t.find(o.rules,function(t){return t._id===e}).chartOptions}));h.isResponsiveOptions=!0,r=r.toString()||void 0,s=a&&a.ruleIds,r!==s&&(a&&this.update(a.undoOptions,e,!0),r?((n=this.currentOptions(h)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:h,undoOptions:n},this.update(h,e,!0)):this.currentResponsive=void 0)},a.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},a.prototype.currentOptions=function(t){var e=this,o={};return function t(o,a,h,l){var c;n(o,function(n,o){if(!l&&e.collectionsWithUpdate.indexOf(o)>-1)for(n=r(n),h[o]=[],c=0;c<n.length;c++)a[o][c]&&(h[o][c]={},t(n[c],a[o][c],h[o][c],l+1));else s(n)?(h[o]=i(n)?[]:{},t(n,a[o]||{},h[o],l+1)):void 0===a[o]?h[o]=null:h[o]=a[o]})}(t,this.options,o,0),o}}),i(e,"masters/highcharts.src.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){return(0,e.extend)(t,{animObject:e.animObject,arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,correctFloat:e.correctFloat,defined:e.defined,destroyObjectProperties:e.destroyObjectProperties,discardElement:e.discardElement,erase:e.erase,extend:e.extend,extendClass:e.extendClass,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,numberFormat:e.numberFormat,objectEach:e.objectEach,offset:e.offset,pad:e.pad,pick:e.pick,pInt:e.pInt,relativeLength:e.relativeLength,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout,wrap:e.wrap}),t}),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]});