/*
 Highmaps JS v6.1.4 (2018-09-25)

 (c) 2011-2016 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(S,K){"object"===typeof module&&module.exports?module.exports=S.document?K(S):K:"function"===typeof define&&define.amd?define(function(){return K(S)}):S.Highcharts=K(S)})("undefined"!==typeof window?window:this,function(S){var K=function(){var a="undefined"===typeof S?window:S,A=a.document,y=a.navigator&&a.navigator.userAgent||"",C=A&&A.createElementNS&&!!A.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,l=/(edge|msie|trident)/i.test(y)&&!a.opera,e=-1!==y.indexOf("Firefox"),
g=-1!==y.indexOf("Chrome"),r=e&&4>parseInt(y.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highmaps",version:"6.1.4",deg2rad:2*Math.PI/360,doc:A,hasBidiBug:r,hasTouch:A&&void 0!==A.documentElement.ontouchstart,isMS:l,isWebKit:-1!==y.indexOf("AppleWebKit"),isFirefox:e,isChrome:g,isSafari:!g&&-1!==y.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(y),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:C,win:a,marginNames:["plotTop",
"marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){a.timers=[];var A=a.charts,y=a.doc,C=a.win;a.error=function(l,e){l=a.isNumber(l)?"Highcharts error #"+l+": www.highcharts.com/errors/"+l:l;if(e)throw Error(l);C.console&&console.log(l)};a.Fx=function(a,e,g){this.options=e;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],e=this.paths[1],g=[],r=this.now,w=a.length,n;if(1===r)g=this.toD;else if(w===e.length&&1>r)for(;w--;)n=parseFloat(a[w]),
g[w]=isNaN(n)?e[w]:r*parseFloat(e[w]-n)+n;else g=e;this.elem.attr("d",g,null,!0)},update:function(){var a=this.elem,e=this.prop,g=this.now,r=this.options.step;if(this[e+"Setter"])this[e+"Setter"]();else a.attr?a.element&&a.attr(e,g,null,!0):a.style[e]=g+this.unit;r&&r.call(a,g,this)},run:function(l,e,g){var r=this,w=r.options,n=function(a){return n.stopped?!1:r.step(a)},d=C.requestAnimationFrame||function(a){setTimeout(a,13)},k=function(){for(var h=0;h<a.timers.length;h++)a.timers[h]()||a.timers.splice(h--,
1);a.timers.length&&d(k)};l!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=l,this.end=e,this.unit=g,this.now=this.start,this.pos=0,n.elem=this.elem,n.prop=this.prop,n()&&1===a.timers.push(n)&&d(k)):(delete w.curAnim[this.prop],w.complete&&0===a.keys(w.curAnim).length&&w.complete.call(this.elem))},step:function(l){var e=+new Date,g,r=this.options,w=this.elem,n=r.complete,d=r.duration,k=r.curAnim;w.attr&&!w.element?l=!1:l||e>=d+this.startTime?(this.now=this.end,this.pos=
1,this.update(),g=k[this.prop]=!0,a.objectEach(k,function(a){!0!==a&&(g=!1)}),g&&n&&n.call(w),l=!1):(this.pos=r.easing((e-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0);return l},initPath:function(l,e,g){function r(a){var b,c;for(f=a.length;f--;)b="M"===a[f]||"L"===a[f],c=/[a-zA-Z]/.test(a[f+3]),b&&c&&a.splice(f+1,0,a[f+1],a[f+2],a[f+1],a[f+2])}function w(a,b){for(;a.length<c;){a[0]=b[c-a.length];var d=a.slice(0,m);[].splice.apply(a,[0,0].concat(d));p&&(d=
a.slice(a.length-m),[].splice.apply(a,[a.length,0].concat(d)),f--)}a[0]="M"}function n(a,f){for(var d=(c-a.length)/m;0<d&&d--;)b=a.slice().splice(a.length/H-m,m*H),b[0]=f[c-m-d*m],u&&(b[m-6]=b[m-2],b[m-5]=b[m-1]),[].splice.apply(a,[a.length/H,0].concat(b)),p&&d--}e=e||"";var d,k=l.startX,h=l.endX,u=-1<e.indexOf("C"),m=u?7:3,c,b,f;e=e.split(" ");g=g.slice();var p=l.isArea,H=p?2:1,x;u&&(r(e),r(g));if(k&&h){for(f=0;f<k.length;f++)if(k[f]===h[0]){d=f;break}else if(k[0]===h[h.length-k.length+f]){d=f;x=
!0;break}void 0===d&&(e=[])}e.length&&a.isNumber(d)&&(c=g.length+d*H*m,x?(w(e,g),n(g,e)):(w(g,e),n(e,g)));return[e,g]},fillSetter:function(){a.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)}};a.merge=function(){var l,e=arguments,g,r={},w=function(g,d){"object"!==typeof g&&(g={});a.objectEach(d,function(k,h){!a.isObject(k,!0)||a.isClass(k)||a.isDOMElement(k)?g[h]=d[h]:g[h]=w(g[h]||{},
k)});return g};!0===e[0]&&(r=e[1],e=Array.prototype.slice.call(e,2));g=e.length;for(l=0;l<g;l++)r=w(r,e[l]);return r};a.pInt=function(a,e){return parseInt(a,e||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a};a.isObject=function(l,e){return!!l&&"object"===typeof l&&(!e||!a.isArray(l))};a.isDOMElement=function(l){return a.isObject(l)&&"number"===typeof l.nodeType};a.isClass=function(l){var e=
l&&l.constructor;return!(!a.isObject(l,!0)||a.isDOMElement(l)||!e||!e.name||"Object"===e.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a};a.erase=function(a,e){for(var g=a.length;g--;)if(a[g]===e){a.splice(g,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(l,e,g){var r;a.isString(e)?a.defined(g)?l.setAttribute(e,g):l&&l.getAttribute&&((r=l.getAttribute(e))||"class"!==e||(r=l.getAttribute(e+"Name"))):a.defined(e)&&a.isObject(e)&&
a.objectEach(e,function(a,g){l.setAttribute(g,a)});return r};a.splat=function(l){return a.isArray(l)?l:[l]};a.syncTimeout=function(a,e,g){if(e)return setTimeout(a,e,g);a.call(0,g)};a.clearTimeout=function(l){a.defined(l)&&clearTimeout(l)};a.extend=function(a,e){var g;a||(a={});for(g in e)a[g]=e[g];return a};a.pick=function(){var a=arguments,e,g,r=a.length;for(e=0;e<r;e++)if(g=a[e],void 0!==g&&null!==g)return g};a.css=function(l,e){a.isMS&&!a.svg&&e&&void 0!==e.opacity&&(e.filter="alpha(opacity\x3d"+
100*e.opacity+")");a.extend(l.style,e)};a.createElement=function(l,e,g,r,w){l=y.createElement(l);var n=a.css;e&&a.extend(l,e);w&&n(l,{padding:0,border:"none",margin:0});g&&n(l,g);r&&r.appendChild(l);return l};a.extendClass=function(l,e){var g=function(){};g.prototype=new l;a.extend(g.prototype,e);return g};a.pad=function(a,e,g){return Array((e||2)+1-String(a).replace("-","").length).join(g||0)+a};a.relativeLength=function(a,e,g){return/%$/.test(a)?e*parseFloat(a)/100+(g||0):parseFloat(a)};a.wrap=
function(a,e,g){var l=a[e];a[e]=function(){var a=Array.prototype.slice.call(arguments),e=arguments,d=this;d.proceed=function(){l.apply(d,arguments.length?arguments:e)};a.unshift(l);a=g.apply(this,a);d.proceed=null;return a}};a.formatSingle=function(l,e,g){var r=/\.([0-9])/,w=a.defaultOptions.lang;/f$/.test(l)?(g=(g=l.match(r))?g[1]:-1,null!==e&&(e=a.numberFormat(e,g,w.decimalPoint,-1<l.indexOf(",")?w.thousandsSep:""))):e=(g||a.time).dateFormat(l,e);return e};a.format=function(l,e,g){for(var r="{",
w=!1,n,d,k,h,u=[],m;l;){r=l.indexOf(r);if(-1===r)break;n=l.slice(0,r);if(w){n=n.split(":");d=n.shift().split(".");h=d.length;m=e;for(k=0;k<h;k++)m&&(m=m[d[k]]);n.length&&(m=a.formatSingle(n.join(":"),m,g));u.push(m)}else u.push(n);l=l.slice(r+1);r=(w=!w)?"}":"{"}u.push(l);return u.join("")};a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(l,e,g,r,w){var n,d=l;g=a.pick(g,1);n=l/g;e||(e=w?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],
!1===r&&(1===g?e=a.grep(e,function(a){return 0===a%1}):.1>=g&&(e=[1/g])));for(r=0;r<e.length&&!(d=e[r],w&&d*g>=l||!w&&n<=(e[r]+(e[r+1]||e[r]))/2);r++);return d=a.correctFloat(d*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,e){var g=a.length,l,w;for(w=0;w<g;w++)a[w].safeI=w;a.sort(function(a,d){l=e(a,d);return 0===l?a.safeI-d.safeI:l});for(w=0;w<g;w++)delete a[w].safeI};a.arrayMin=function(a){for(var e=a.length,g=a[0];e--;)a[e]<g&&(g=a[e]);return g};a.arrayMax=function(a){for(var e=
a.length,g=a[0];e--;)a[e]>g&&(g=a[e]);return g};a.destroyObjectProperties=function(l,e){a.objectEach(l,function(a,r){a&&a!==e&&a.destroy&&a.destroy();delete l[r]})};a.discardElement=function(l){var e=a.garbageBin;e||(e=a.createElement("div"));l&&e.appendChild(l);e.innerHTML=""};a.correctFloat=function(a,e){return parseFloat(a.toPrecision(e||14))};a.setAnimation=function(l,e){e.renderer.globalAnimation=a.pick(l,e.options.chart.animation,!0)};a.animObject=function(l){return a.isObject(l)?a.merge(l):
{duration:l?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(l,e,g,r){l=+l||0;e=+e;var w=a.defaultOptions.lang,n=(l.toString().split(".")[1]||"").split("e")[0].length,d,k,h=l.toString().split("e");-1===e?e=Math.min(n,20):a.isNumber(e)?e&&h[1]&&0>h[1]&&(d=e+ +h[1],0<=d?(h[0]=(+h[0]).toExponential(d).split("e")[0],e=d):(h[0]=h[0].split(".")[0]||0,l=20>e?(h[0]*Math.pow(10,h[1])).toFixed(e):0,h[1]=0)):e=2;k=(Math.abs(h[1]?
h[0]:l)+Math.pow(10,-Math.max(e,n)-1)).toFixed(e);n=String(a.pInt(k));d=3<n.length?n.length%3:0;g=a.pick(g,w.decimalPoint);r=a.pick(r,w.thousandsSep);l=(0>l?"-":"")+(d?n.substr(0,d)+r:"");l+=n.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+r);e&&(l+=g+k.slice(-e));h[1]&&0!==+l&&(l+="e"+h[1]);return l};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(l,e,g){if("width"===e)return Math.max(0,Math.min(l.offsetWidth,l.scrollWidth)-a.getStyle(l,"padding-left")-a.getStyle(l,
"padding-right"));if("height"===e)return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-a.getStyle(l,"padding-top")-a.getStyle(l,"padding-bottom"));C.getComputedStyle||a.error(27,!0);if(l=C.getComputedStyle(l,void 0))l=l.getPropertyValue(e),a.pick(g,"opacity"!==e)&&(l=a.pInt(l));return l};a.inArray=function(l,e,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(e,l,g)};a.grep=function(l,e){return(a.filterPolyfill||Array.prototype.filter).call(l,e)};a.find=Array.prototype.find?function(a,
e){return a.find(e)}:function(a,e){var g,l=a.length;for(g=0;g<l;g++)if(e(a[g],g))return a[g]};a.some=function(l,e,g){return(a.somePolyfill||Array.prototype.some).call(l,e,g)};a.map=function(a,e){for(var g=[],l=0,w=a.length;l<w;l++)g[l]=e.call(a[l],a[l],l,a);return g};a.keys=function(l){return(a.keysPolyfill||Object.keys).call(void 0,l)};a.reduce=function(l,e,g){return(a.reducePolyfill||Array.prototype.reduce).apply(l,2<arguments.length?[e,g]:[e])};a.offset=function(a){var e=y.documentElement;a=a.parentElement||
a.parentNode?a.getBoundingClientRect():{top:0,left:0};return{top:a.top+(C.pageYOffset||e.scrollTop)-(e.clientTop||0),left:a.left+(C.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};a.stop=function(l,e){for(var g=a.timers.length;g--;)a.timers[g].elem!==l||e&&e!==a.timers[g].prop||(a.timers[g].stopped=!0)};a.each=function(l,e,g){return(a.forEachPolyfill||Array.prototype.forEach).call(l,e,g)};a.objectEach=function(a,e,g){for(var l in a)a.hasOwnProperty(l)&&e.call(g||a[l],a[l],l,a)};a.addEvent=function(l,
e,g,r){var w,n=l.addEventListener||a.addEventListenerPolyfill;w="function"===typeof l&&l.prototype?l.prototype.protoEvents=l.prototype.protoEvents||{}:l.hcEvents=l.hcEvents||{};a.Point&&l instanceof a.Point&&l.series&&l.series.chart&&(l.series.chart.runTrackerClick=!0);n&&n.call(l,e,g,!1);w[e]||(w[e]=[]);w[e].push(g);r&&a.isNumber(r.order)&&(g.order=r.order,w[e].sort(function(a,k){return a.order-k.order}));return function(){a.removeEvent(l,e,g)}};a.removeEvent=function(l,e,g){function r(d,h){var k=
l.removeEventListener||a.removeEventListenerPolyfill;k&&k.call(l,d,h,!1)}function w(d){var h,k;l.nodeName&&(e?(h={},h[e]=!0):h=d,a.objectEach(h,function(a,c){if(d[c])for(k=d[c].length;k--;)r(c,d[c][k])}))}var n,d;a.each(["protoEvents","hcEvents"],function(k){var h=l[k];h&&(e?(n=h[e]||[],g?(d=a.inArray(g,n),-1<d&&(n.splice(d,1),h[e]=n),r(e,g)):(w(h),h[e]=[])):(w(h),l[k]={}))})};a.fireEvent=function(l,e,g,r){var w,n,d,k,h;g=g||{};y.createEvent&&(l.dispatchEvent||l.fireEvent)?(w=y.createEvent("Events"),
w.initEvent(e,!0,!0),a.extend(w,g),l.dispatchEvent?l.dispatchEvent(w):l.fireEvent(e,w)):a.each(["protoEvents","hcEvents"],function(u){if(l[u])for(n=l[u][e]||[],d=n.length,g.target||a.extend(g,{preventDefault:function(){g.defaultPrevented=!0},target:l,type:e}),k=0;k<d;k++)(h=n[k])&&!1===h.call(l,g)&&g.preventDefault()});r&&!g.defaultPrevented&&r.call(l,g)};a.animate=function(l,e,g){var r,w="",n,d,k;a.isObject(g)||(k=arguments,g={duration:k[2],easing:k[3],complete:k[4]});a.isNumber(g.duration)||(g.duration=
400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;g.curAnim=a.merge(e);a.objectEach(e,function(h,k){a.stop(l,k);d=new a.Fx(l,g,k);n=null;"d"===k?(d.paths=d.initPath(l,l.d,e.d),d.toD=e.d,r=0,n=1):l.attr?r=l.attr(k):(r=parseFloat(a.getStyle(l,k))||0,"opacity"!==k&&(w="px"));n||(n=h);n&&n.match&&n.match("px")&&(n=n.replace(/px/g,""));d.run(r,n,w)})};a.seriesType=function(l,e,g,r,w){var n=a.getOptions(),d=a.seriesTypes;n.plotOptions[l]=a.merge(n.plotOptions[e],g);
d[l]=a.extendClass(d[e]||function(){},r);d[l].prototype.type=l;w&&(d[l].prototype.pointClass=a.extendClass(a.Point,w));return d[l]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+a+"-"+e++}}();C.jQuery&&(C.jQuery.fn.highcharts=function(){var l=[].slice.call(arguments);if(this[0])return l[0]?(new (a[a.isString(l[0])?l.shift():"Chart"])(this[0],l[0],l[1]),this):A[a.attr(this[0],"data-highcharts-chart")]})})(K);(function(a){var A=a.each,
y=a.isNumber,C=a.map,l=a.merge,e=a.pInt;a.Color=function(g){if(!(this instanceof a.Color))return new a.Color(g);this.init(g)};a.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(a){return[e(a[1]),e(a[2]),e(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[e(a[1]),e(a[2]),e(a[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(g){var e,
w,n,d;if((this.input=g=this.names[g&&g.toLowerCase?g.toLowerCase():""]||g)&&g.stops)this.stops=C(g.stops,function(d){return new a.Color(d[1])});else if(g&&g.charAt&&"#"===g.charAt()&&(e=g.length,g=parseInt(g.substr(1),16),7===e?w=[(g&16711680)>>16,(g&65280)>>8,g&255,1]:4===e&&(w=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!w)for(n=this.parsers.length;n--&&!w;)d=this.parsers[n],(e=d.regex.exec(g))&&(w=d.parse(e));this.rgba=w||[]},get:function(a){var g=this.input,e=this.rgba,n;this.stops?
(n=l(g),n.stops=[].concat(n.stops),A(this.stops,function(d,k){n.stops[k]=[n.stops[k][0],d.get(a)]})):n=e&&y(e[0])?"rgb"===a||!a&&1===e[3]?"rgb("+e[0]+","+e[1]+","+e[2]+")":"a"===a?e[3]:"rgba("+e.join(",")+")":g;return n},brighten:function(a){var g,l=this.rgba;if(this.stops)A(this.stops,function(g){g.brighten(a)});else if(y(a)&&0!==a)for(g=0;3>g;g++)l[g]+=e(255*a),0>l[g]&&(l[g]=0),255<l[g]&&(l[g]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,e){var g=this.rgba,
n=a.rgba;n.length&&g&&g.length?(a=1!==n[3]||1!==g[3],e=(a?"rgba(":"rgb(")+Math.round(n[0]+(g[0]-n[0])*(1-e))+","+Math.round(n[1]+(g[1]-n[1])*(1-e))+","+Math.round(n[2]+(g[2]-n[2])*(1-e))+(a?","+(n[3]+(g[3]-n[3])*(1-e)):"")+")"):e=a.input||"none";return e}};a.color=function(e){return new a.Color(e)}})(K);(function(a){var A=a.defined,y=a.each,C=a.extend,l=a.merge,e=a.pick,g=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(a){var g=e(a&&a.useUTC,
!0),d=this;this.options=a=l(!0,this.options||{},a);this.Date=a.Date||r.Date;this.timezoneOffset=(this.useUTC=g)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(g&&!a.getTimezoneOffset&&!a.timezone))||this.timezoneOffset?(this.get=function(a,h){var k=h.getTime(),m=k-d.getTimezoneOffset(h);h.setTime(m);a=h["getUTC"+a]();h.setTime(k);return a},this.set=function(a,h,e){var k;if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===h.getTimezoneOffset()%
60)h["set"+a](e);else k=d.getTimezoneOffset(h),k=h.getTime()-k,h.setTime(k),h["setUTC"+a](e),a=d.getTimezoneOffset(h),k=h.getTime()+a,h.setTime(k)}):g?(this.get=function(a,d){return d["getUTC"+a]()},this.set=function(a,d,e){return d["setUTC"+a](e)}):(this.get=function(a,d){return d["get"+a]()},this.set=function(a,d,e){return d["set"+a](e)})},makeTime:function(g,n,d,k,h,u){var m,c,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),c=this.getTimezoneOffset(m),m+=c,b=this.getTimezoneOffset(m),c!==b?m+=
b-c:c-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(g,n,e(d,1),e(k,0),e(h,0),e(u,0))).getTime();return m},timezoneOffsetFunction:function(){var e=this,g=this.options,d=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(g.timezone){if(d)return function(a){return 6E4*-d.tz(a,g.timezone).utcOffset()};a.error(25)}return this.useUTC&&g.getTimezoneOffset?function(a){return 6E4*g.getTimezoneOffset(a)}:function(){return 6E4*(e.timezoneOffset||
0)}},dateFormat:function(e,g,d){if(!a.defined(g)||isNaN(g))return a.defaultOptions.lang.invalidDate||"";e=a.pick(e,"%Y-%m-%d %H:%M:%S");var k=this,h=new this.Date(g),u=this.get("Hours",h),m=this.get("Day",h),c=this.get("Date",h),b=this.get("Month",h),f=this.get("FullYear",h),p=a.defaultOptions.lang,H=p.weekdays,x=p.shortWeekdays,n=a.pad,h=a.extend({a:x?x[m]:H[m].substr(0,3),A:H[m],d:n(c),e:n(c,2," "),w:m,b:p.shortMonths[b],B:p.months[b],m:n(b+1),o:b+1,y:f.toString().substr(2,2),Y:f,H:n(u),k:u,I:n(u%
12||12),l:u%12||12,M:n(k.get("Minutes",h)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:n(h.getSeconds()),L:n(Math.floor(g%1E3),3)},a.dateFormats);a.objectEach(h,function(a,b){for(;-1!==e.indexOf("%"+b);)e=e.replace("%"+b,"function"===typeof a?a.call(k,g):a)});return d?e.substr(0,1).toUpperCase()+e.substr(1):e},getTimeTicks:function(a,n,d,k){var h=this,u=[],m,c={},b;m=new h.Date(n);var f=a.unitRange,p=a.count||1,H;k=e(k,1);if(A(n)){h.set("Milliseconds",m,f>=g.second?0:p*Math.floor(h.get("Milliseconds",m)/
p));f>=g.second&&h.set("Seconds",m,f>=g.minute?0:p*Math.floor(h.get("Seconds",m)/p));f>=g.minute&&h.set("Minutes",m,f>=g.hour?0:p*Math.floor(h.get("Minutes",m)/p));f>=g.hour&&h.set("Hours",m,f>=g.day?0:p*Math.floor(h.get("Hours",m)/p));f>=g.day&&h.set("Date",m,f>=g.month?1:p*Math.floor(h.get("Date",m)/p));f>=g.month&&(h.set("Month",m,f>=g.year?0:p*Math.floor(h.get("Month",m)/p)),b=h.get("FullYear",m));f>=g.year&&h.set("FullYear",m,b-b%p);f===g.week&&(b=h.get("Day",m),h.set("Date",m,h.get("Date",m)-
b+k+(b<k?-7:0)));b=h.get("FullYear",m);k=h.get("Month",m);var x=h.get("Date",m),l=h.get("Hours",m);n=m.getTime();h.variableTimezone&&(H=d-n>4*g.month||h.getTimezoneOffset(n)!==h.getTimezoneOffset(d));n=m.getTime();for(m=1;n<d;)u.push(n),n=f===g.year?h.makeTime(b+m*p,0):f===g.month?h.makeTime(b,k+m*p):!H||f!==g.day&&f!==g.week?H&&f===g.hour&&1<p?h.makeTime(b,k,x,l+m*p):n+f*p:h.makeTime(b,k,x+m*p*(f===g.day?1:7)),m++;u.push(n);f<=g.hour&&1E4>u.length&&y(u,function(a){0===a%18E5&&"000000000"===h.dateFormat("%H%M%S%L",
a)&&(c[a]="day")})}u.info=C(a,{higherRanks:c,totalRange:f*p});return u}}})(K);(function(a){var A=a.merge;a.defaultOptions={symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),
resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:a.Time.prototype.defaultOptions,chart:{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},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},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:{},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{}},loading:{},tooltip:{enabled:!0,animation:a.svg,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:a.isTouchDevice?25:10,headerFormat:'\x3cspan class\x3d"highcharts-header"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cspan class\x3d"highcharts-strong"\x3e{point.y}\x3c/span\x3e\x3cbr/\x3e'},credits:{enabled:!0,href:"https://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",
y:-5},text:"Highcharts.com"}};a.setOptions=function(y){a.defaultOptions=A(!0,a.defaultOptions,y);a.time.update(A(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(A(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(y,A,l){return a.time.dateFormat(y,A,l)}})(K);(function(a){var A,y,C=a.addEvent,l=a.animate,e=a.attr,g=a.charts,r=a.color,w=
a.css,n=a.createElement,d=a.defined,k=a.deg2rad,h=a.destroyObjectProperties,u=a.doc,m=a.each,c=a.extend,b=a.erase,f=a.grep,p=a.hasTouch,H=a.inArray,x=a.isArray,J=a.isFirefox,E=a.isMS,z=a.isObject,v=a.isString,B=a.isWebKit,G=a.merge,M=a.noop,I=a.objectEach,q=a.pick,D=a.pInt,N=a.removeEvent,t=a.splat,F=a.stop,T=a.svg,Q=a.SVG_NS,O=a.symbolSizes,P=a.win;A=a.SVGElement=function(){return this};c(A.prototype,{opacity:1,SVG_NS:Q,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),
init:function(a,b){this.element="span"===b?n(b):u.createElementNS(this.SVG_NS,b);this.renderer=a},animate:function(b,c,t){c=a.animObject(q(c,this.renderer.globalAnimation,!0));0!==c.duration?(t&&(c.complete=t),l(this,b,c)):(this.attr(b,null,t),c.step&&c.step.call(this));return this},complexColor:function(b,c,q){var t=this.renderer,f,D,L,h,p,v,k,B,e,F,g,N=[],z;a.fireEvent(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?D="radialGradient":b.linearGradient&&(D="linearGradient");
D&&(L=b[D],p=t.gradients,k=b.stops,F=q.radialReference,x(L)&&(b[D]=L={x1:L[0],y1:L[1],x2:L[2],y2:L[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===D&&F&&!d(L.gradientUnits)&&(h=L,L=G(L,t.getRadialAttr(F,h),{gradientUnits:"userSpaceOnUse"})),I(L,function(a,b){"id"!==b&&N.push(b,a)}),I(k,function(a){N.push(a)}),N=N.join(","),p[N]?g=p[N].attr("id"):(L.id=g=a.uniqueKey(),p[N]=v=t.createElement(D).attr(L).add(t.defs),v.radAttr=h,v.stops=[],m(k,function(b){0===b[1].indexOf("rgba")?(f=a.color(b[1]),
B=f.get("rgb"),e=f.get("a")):(B=b[1],e=1);b=t.createElement("stop").attr({offset:b[0],"stop-color":B,"stop-opacity":e}).add(v);v.stops.push(b)})),z="url("+t.url+"#"+g+")",q.setAttribute(c,z),q.gradient=N,b.toString=function(){return z})})},applyTextOutline:function(c){var q=this.element,t,f,D,L,d;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(q.style.fill)));c=c.split(" ");f=c[c.length-1];if((D=c[0])&&"none"!==D&&a.svg){this.fakeTS=!0;c=[].slice.call(q.getElementsByTagName("tspan"));
this.ySetter=this.xSetter;D=D.replace(/(^[\d\.]+)(.*?)$/g,function(a,b,c){return 2*b+c});for(d=c.length;d--;)t=c[d],"highcharts-text-outline"===t.getAttribute("class")&&b(c,q.removeChild(t));L=q.firstChild;m(c,function(a,b){0===b&&(a.setAttribute("x",q.getAttribute("x")),b=q.getAttribute("y"),a.setAttribute("y",b||0),null===b&&q.setAttribute("y",0));a=a.cloneNode(1);e(a,{"class":"highcharts-text-outline",fill:f,stroke:f,"stroke-width":D,"stroke-linejoin":"round"});q.insertBefore(a,L)})}},attr:function(a,
b,c,q){var t,f=this.element,D,d=this,L,p;"string"===typeof a&&void 0!==b&&(t=a,a={},a[t]=b);"string"===typeof a?d=(this[a+"Getter"]||this._defaultGetter).call(this,a,f):(I(a,function(b,c){L=!1;q||F(this,c);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(c)&&(D||(this.symbolAttr(a),D=!0),L=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);L||(p=this[c+"Setter"]||this._defaultSetter,p.call(this,b,c,f))},this),this.afterSetters());c&&c.call(this);return d},afterSetters:function(){this.doTransform&&
(this.updateTransform(),this.doTransform=!1)},addClass:function(a,b){var c=this.attr("class")||"";-1===c.indexOf(a)&&(b||(a=(c+(c?" ":"")+a).replace("  "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==H(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var b=this;m("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=q(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,
b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,b){var c;b=b||a.strokeWidth||0;c=Math.round(b)%2/2;a.x=Math.floor(a.x||this.x||0)+c;a.y=Math.floor(a.y||this.y||0)+c;a.width=Math.floor((a.width||this.width||0)-2*c);a.height=Math.floor((a.height||this.height||0)-2*c);d(a.strokeWidth)&&(a.strokeWidth=b);return a},css:function(a){var b=this.styles,q={},t=this.element,f,d="",p,h=!b,L=["textOutline","textOverflow",
"width"];a&&a.color&&(a.fill=a.color);b&&I(a,function(a,c){a!==b[c]&&(q[c]=a,h=!0)});h&&(b&&(a=c(b,q)),a&&(null===a.width||"auto"===a.width?delete this.textWidth:"text"===t.nodeName.toLowerCase()&&a.width&&(f=this.textWidth=D(a.width))),this.styles=a,f&&!T&&this.renderer.forExport&&delete a.width,t.namespaceURI===this.SVG_NS?(p=function(a,b){return"-"+b.toLowerCase()},I(a,function(a,b){-1===H(b,L)&&(d+=b.replace(/([A-Z])/g,p)+":"+a+";")}),d&&e(t,"style",d)):w(t,a),this.added&&("text"===this.element.nodeName&&
this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},getStyle:function(a){return P.getComputedStyle(this.element||this,"").getPropertyValue(a)},strokeWidth:function(){var a=this.getStyle("stroke-width"),b;a.indexOf("px")===a.length-2?a=D(a):(b=u.createElementNS(Q,"rect"),e(b,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(b),a=b.getBBox().width,b.parentNode.removeChild(b));return a},on:function(a,b){var c=this,q=c.element;p&&"click"===
a?(q.ontouchstart=function(a){c.touchEventFired=Date.now();a.preventDefault();b.call(q,a)},q.onclick=function(a){(-1===P.navigator.userAgent.indexOf("Android")||1100<Date.now()-(c.touchEventFired||0))&&b.call(q,a)}):q["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},
invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,t=this.scaleY,f=this.inverted,D=this.rotation,p=this.matrix,h=this.element;f&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];d(p)&&a.push("matrix("+p.join(",")+")");f?a.push("rotate(90) scale(-1,1)"):D&&a.push("rotate("+D+" "+q(this.rotationOriginX,h.getAttribute("x"),0)+" "+q(this.rotationOriginY,h.getAttribute("y")||0)+")");(d(c)||
d(t))&&a.push("scale("+q(c,1)+" "+q(t,1)+")");a.length&&h.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,c,t){var f,D,d,p,h={};D=this.renderer;d=D.alignedObjects;var k,L;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!t||v(t))this.alignTo=f=t||"renderer",b(d,this),d.push(this),t=null}else a=this.alignOptions,c=this.alignByTranslate,f=this.alignTo;t=q(t,D[f],D);f=a.align;D=a.verticalAlign;d=(t.x||0)+(a.x||
0);p=(t.y||0)+(a.y||0);"right"===f?k=1:"center"===f&&(k=2);k&&(d+=(t.width-(a.width||0))/k);h[c?"translateX":"x"]=Math.round(d);"bottom"===D?L=1:"middle"===D&&(L=2);L&&(p+=(t.height-(a.height||0))/L);h[c?"translateY":"y"]=Math.round(p);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a,b){var t,f=this.renderer,D,p=this.element,h=this.styles,v,L=this.textStr,B,e=f.cache,F=f.cacheKeys,x;b=q(b,this.rotation);D=b*k;v=p&&A.prototype.getStyle.call(p,"font-size");
d(L)&&(x=L.toString(),-1===x.indexOf("\x3c")&&(x=x.replace(/[0-9]/g,"0")),x+=["",b||0,v,this.textWidth,h&&h.textOverflow].join());x&&!a&&(t=e[x]);if(!t){if(p.namespaceURI===this.SVG_NS||f.forExport){try{(B=this.fakeTS&&function(a){m(p.querySelectorAll(".highcharts-text-outline"),function(b){b.style.display=a})})&&B("none"),t=p.getBBox?c({},p.getBBox()):{width:p.offsetWidth,height:p.offsetHeight},B&&B("")}catch(W){}if(!t||0>t.width)t={width:0,height:0}}else t=this.htmlGetBBox();f.isSVG&&(a=t.width,
f=t.height,h&&"11px"===h.fontSize&&17===Math.round(f)&&(t.height=f=14),b&&(t.width=Math.abs(f*Math.sin(D))+Math.abs(a*Math.cos(D)),t.height=Math.abs(f*Math.cos(D))+Math.abs(a*Math.sin(D))));if(x&&0<t.height){for(;250<F.length;)delete e[F.shift()];e[x]||F.push(x);e[x]=t}}return t},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},
add:function(a){var b=this.renderer,c=this.element,q;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)q=this.zIndexSetter();q||(a?a.element:b.box).appendChild(c);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,c=a.element||{},q=a.renderer.isSVG&&"SPAN"===c.nodeName&&a.parentGroup,t=c.ownerSVGElement,f=a.clipPath;c.onclick=
c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;F(a);f&&t&&(m(t.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){var b=a.getAttribute("clip-path"),c=f.element.id;(-1<b.indexOf("(#"+c+")")||-1<b.indexOf('("#'+c+'")'))&&a.removeAttribute("clip-path")}),a.clipPath=f.destroy());if(a.stops){for(t=0;t<a.stops.length;t++)a.stops[t]=a.stops[t].destroy();a.stops=null}for(a.safeRemoveChild(c);q&&q.div&&0===q.div.childNodes.length;)c=q.parentGroup,a.safeRemoveChild(q.div),delete q.div,q=c;a.alignTo&&
b(a.renderer.alignedObjects,a);I(a,function(b,c){delete a[c]});return null},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=q(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[b]!==a&&(c.setAttribute(b,a),this[b]=a)},alignSetter:function(a){this.alignValue=
a;this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a;c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=u.createElementNS(this.SVG_NS,"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(u.createTextNode(String(q(a),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e")))},textSetter:function(a){a!==this.textStr&&
(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"===typeof a?c.setAttribute(b,a):a&&this.complexColor(a,b,c)},visibilitySetter:function(a,b,c){"inherit"===a?c.removeAttribute(b):this[b]!==a&&c.setAttribute(b,a);this[b]=a},zIndexSetter:function(a,b){var c=this.renderer,q=this.parentGroup,t=(q||c).element||c.box,f,p=this.element,h,v,c=t===c.box;f=this.added;var k;d(a)?(p.setAttribute("data-z-index",a),a=+a,this[b]===a&&(f=!1)):d(this[b])&&
p.removeAttribute("data-z-index");this[b]=a;if(f){(a=this.zIndex)&&q&&(q.handleZ=!0);b=t.childNodes;for(k=b.length-1;0<=k&&!h;k--)if(q=b[k],f=q.getAttribute("data-z-index"),v=!d(f),q!==p)if(0>a&&v&&!c&&!k)t.insertBefore(p,b[k]),h=!0;else if(D(f)<=a||v&&(!d(a)||0<=a))t.insertBefore(p,b[k+1]||null),h=!0;h||(t.insertBefore(p,b[c?3:0]||null),h=!0)}return h},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}});A.prototype.yGetter=A.prototype.xGetter;A.prototype.translateXSetter=A.prototype.translateYSetter=
A.prototype.rotationSetter=A.prototype.verticalAlignSetter=A.prototype.rotationOriginXSetter=A.prototype.rotationOriginYSetter=A.prototype.scaleXSetter=A.prototype.scaleYSetter=A.prototype.matrixSetter=function(a,b){this[b]=a;this.doTransform=!0};y=a.SVGRenderer=function(){this.init.apply(this,arguments)};c(y.prototype,{Element:A,SVG_NS:Q,init:function(a,b,c,q,t,f){var D;q=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});D=q.element;a.appendChild(D);e(a,"dir","ltr");-1===
a.innerHTML.indexOf("xmlns")&&e(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=q;this.alignedObjects=[];this.url=(J||B)&&u.getElementsByTagName("base").length?P.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highmaps 6.1.4"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=t;this.gradients={};this.cache={};this.cacheKeys=
[];this.imgCount=0;this.setSize(b,c,!1);var d;J&&a.getBoundingClientRect&&(b=function(){w(a,{left:0,top:0});d=a.getBoundingClientRect();w(a,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},b(),this.unSubPixelFix=C(P,"resize",b))},definition:function(a){function b(a,q){var f;m(t(a),function(a){var t=c.createElement(a.tagName),D={};I(a,function(a,b){"tagName"!==b&&"children"!==b&&"textContent"!==b&&(D[b]=a)});t.attr(D);t.add(q||c.defs);a.textContent&&t.element.appendChild(u.createTextNode(a.textContent));
b(a.children||[],t);f=t});return f}var c=this;return b(a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();h(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:M,getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-
a[2]/2+b.cy*a[2],r:b.r*a[2]}},truncate:function(a,b,c,q,t,f,D){var d=this,p=a.rotation,h,v=q?1:0,k=(c||q).length,m=k,x=[],B=function(a){b.firstChild&&b.removeChild(b.firstChild);a&&b.appendChild(u.createTextNode(a))},e=function(f,p){p=p||f;if(void 0===x[p])if(b.getSubStringLength)try{x[p]=t+b.getSubStringLength(0,q?p+1:p)}catch(X){}else B(D(c||q,f)),x[p]=t+d.getSpanWidth(a,b);return x[p]},F,g;a.rotation=0;F=e(b.textContent.length);if(g=t+F>f){for(;v<=k;)m=Math.ceil((v+k)/2),q&&(h=D(q,m)),F=e(m,h&&
h.length-1),v===k?v=k+1:F>f?k=m-1:v=m;0===k?B(""):c&&k===c.length-1||B(h||D(c||q,m))}q&&q.splice(0,m);a.actualWidth=F;a.rotation=p;return g},escapes:{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;","'":"\x26#39;",'"':"\x26quot;"},buildText:function(a){var b=a.element,c=this,t=c.forExport,d=q(a.textStr,"").toString(),p=-1!==d.indexOf("\x3c"),h=b.childNodes,v,k=e(b,"x"),x=a.styles,B=a.textWidth,F=x&&x.lineHeight,g=x&&x.textOutline,G=x&&"ellipsis"===x.textOverflow,N=x&&"nowrap"===x.whiteSpace,z=
x&&x.fontSize,n,l,E=h.length,x=B&&!a.added&&this.box,L=function(a){return F?D(F):c.fontMetrics(void 0,a.getAttribute("style")?a:b).h},M=function(a,b){I(c.escapes,function(c,q){b&&-1!==H(c,b)||(a=a.toString().replace(new RegExp(c,"g"),q))});return a},J=function(a,b){var c;c=a.indexOf("\x3c");a=a.substring(c,a.indexOf("\x3e")-c);c=a.indexOf(b+"\x3d");if(-1!==c&&(c=c+b.length+1,b=a.charAt(c),'"'===b||"'"===b))return a=a.substring(c+1),a.substring(0,a.indexOf(b))};n=[d,G,N,F,g,z,B].join();if(n!==a.textCache){for(a.textCache=
n;E--;)b.removeChild(h[E]);p||g||G||B||-1!==d.indexOf(" ")?(x&&x.appendChild(b),d=p?d.replace(/<(b|strong)>/g,'\x3cspan class\x3d"highcharts-strong"\x3e').replace(/<(i|em)>/g,'\x3cspan class\x3d"highcharts-emphasized"\x3e').replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[d],d=f(d,function(a){return""!==a}),m(d,function(q,f){var D,d=0,p=0;q=q.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");D=q.split("|||");
m(D,function(q){if(""!==q||1===D.length){var h={},m=u.createElementNS(c.SVG_NS,"tspan"),x,F;(x=J(q,"class"))&&e(m,"class",x);if(x=J(q,"style"))x=x.replace(/(;| |^)color([ :])/,"$1fill$2"),e(m,"style",x);(F=J(q,"href"))&&!t&&(e(m,"onclick",'location.href\x3d"'+F+'"'),e(m,"class","highcharts-anchor"));q=M(q.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==q){m.appendChild(u.createTextNode(q));d?h.dx=0:f&&null!==k&&(h.x=k);e(m,h);b.appendChild(m);!d&&l&&(!T&&t&&w(m,{display:"block"}),e(m,"dy",L(m)));
if(B){var g=q.replace(/([^\^])-/g,"$1- ").split(" "),h=!N&&(1<D.length||f||1<g.length);F=0;var H=L(m);if(G)v=c.truncate(a,m,q,void 0,0,Math.max(0,B-parseInt(z||12,10)),function(a,b){return a.substring(0,b)+"\u2026"});else if(h)for(;g.length;)g.length&&!N&&0<F&&(m=u.createElementNS(Q,"tspan"),e(m,{dy:H,x:k}),x&&e(m,"style",x),m.appendChild(u.createTextNode(g.join(" ").replace(/- /g,"-"))),b.appendChild(m)),c.truncate(a,m,null,g,0===F?p:0,B,function(a,b){return g.slice(0,b).join(" ").replace(/- /g,
"-")}),p=a.actualWidth,F++}d++}}});l=l||b.childNodes.length}),G&&v&&a.attr("title",M(a.textStr,["\x26lt;","\x26gt;"])),x&&x.removeChild(b),g&&a.applyTextOutline&&a.applyTextOutline(g)):b.appendChild(u.createTextNode(M(d)))}},getContrast:function(a){a=r(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,c,q,t,f,D,d,p){var h=this.label(a,b,c,p,null,null,null,null,"button"),v=0;h.attr(G({padding:8,r:2},t));C(h.element,E?"mouseover":"mouseenter",function(){3!==
v&&h.setState(1)});C(h.element,E?"mouseout":"mouseleave",function(){3!==v&&h.setState(v)});h.setState=function(a){1!==a&&(h.state=v=a);h.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0])};return h.on("click",function(a){3!==v&&q.call(h,a)})},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+b%2/2);return a},path:function(a){var b={};x(a)?b.d=a:
z(a)&&c(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=z(a)?a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,c){c.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,c,q,t,f){z(a)?(q=a,b=q.y,c=q.r,a=q.x):q={innerR:q,start:t,end:f};a=this.symbol("arc",a,b,c,c,q);a.r=c;return a},rect:function(a,b,c,q,t,f){t=z(a)?a.r:t;f=this.createElement("rect");a=z(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(c,0),height:Math.max(q,0)};t&&(a.r=t);f.rSetter=
function(a,b,c){e(c,{rx:a,ry:a})};return f.attr(a)},setSize:function(a,b,c){var t=this.alignedObjects,f=t.length;this.width=a;this.height=b;for(this.boxWrapper.animate({width:a,height:b},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:q(c,!0)?void 0:0});f--;)t[f].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,q,t,f,D){var d={preserveAspectRatio:"none"},h,p=function(a,b){a.setAttributeNS?
a.setAttributeNS("http://www.w3.org/1999/xlink","href",b):a.setAttribute("hc-svg-href",b)},v=function(b){p(h.element,a);D.call(h,b)};1<arguments.length&&c(d,{x:b,y:q,width:t,height:f});h=this.createElement("image").attr(d);D?(p(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d"),d=new P.Image,C(d,"load",v),d.src=a,d.complete&&v({})):p(h.element,a);return h},symbol:function(a,b,t,f,D,h){var p=this,v,k=/^url\((.*?)\)$/,x=k.test(a),F=!x&&(this.symbols[a]?a:"circle"),
B=F&&this.symbols[F],e=d(b)&&B&&B.call(this.symbols,Math.round(b),Math.round(t),f,D,h),G,N;B?(v=this.path(e),c(v,{symbolName:F,x:b,y:t,width:f,height:D}),h&&c(v,h)):x&&(G=a.match(k)[1],v=this.image(G),v.imgwidth=q(O[G]&&O[G].width,h&&h.width),v.imgheight=q(O[G]&&O[G].height,h&&h.height),N=function(){v.attr({width:v.width,height:v.height})},m(["width","height"],function(a){v[a+"Setter"]=function(a,b){var c={},q=this["img"+b],t="width"===b?"translateX":"translateY";this[b]=a;d(q)&&(this.element&&this.element.setAttribute(b,
q),this.alignByTranslate||(c[t]=((this[b]||0)-q)/2,this.attr(c)))}}),d(b)&&v.attr({x:b,y:t}),v.isImg=!0,d(v.imgwidth)&&d(v.imgheight)?N():(v.attr({width:0,height:0}),n("img",{onload:function(){var a=g[p.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this));O[G]={width:this.width,height:this.height};v.imgwidth=this.width;v.imgheight=this.height;v.element&&N();this.parentNode&&this.parentNode.removeChild(this);p.imgCount--;if(!p.imgCount&&a&&a.onload)a.onload()},
src:G}),this.imgCount++));return v},symbols:{circle:function(a,b,c,q){return this.arc(a+c/2,b+q/2,c/2,q/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,b,c,q){return["M",a,b,"L",a+c,b,a+c,b+q,a,b+q,"Z"]},triangle:function(a,b,c,q){return["M",a+c/2,b,"L",a+c,b+q,a,b+q,"Z"]},"triangle-down":function(a,b,c,q){return["M",a,b,"L",a+c,b,a+c/2,b+q,"Z"]},diamond:function(a,b,c,q){return["M",a+c/2,b,"L",a+c,b+q/2,a+c/2,b+q,a,b+q/2,"Z"]},arc:function(a,b,c,t,f){var D=f.start,h=f.r||c,p=f.r||t||c,v=f.end-
.001;c=f.innerR;t=q(f.open,.001>Math.abs(f.end-f.start-2*Math.PI));var k=Math.cos(D),m=Math.sin(D),x=Math.cos(v),v=Math.sin(v);f=.001>f.end-D-Math.PI?0:1;h=["M",a+h*k,b+p*m,"A",h,p,0,f,1,a+h*x,b+p*v];d(c)&&h.push(t?"M":"L",a+c*x,b+c*v,"A",c,c,0,f,0,a+c*k,b+c*m);h.push(t?"":"Z");return h},callout:function(a,b,c,q,t){var f=Math.min(t&&t.r||0,c,q),D=f+6,d=t&&t.anchorX;t=t&&t.anchorY;var h;h=["M",a+f,b,"L",a+c-f,b,"C",a+c,b,a+c,b,a+c,b+f,"L",a+c,b+q-f,"C",a+c,b+q,a+c,b+q,a+c-f,b+q,"L",a+f,b+q,"C",a,b+
q,a,b+q,a,b+q-f,"L",a,b+f,"C",a,b,a,b,a+f,b];d&&d>c?t>b+D&&t<b+q-D?h.splice(13,3,"L",a+c,t-6,a+c+6,t,a+c,t+6,a+c,b+q-f):h.splice(13,3,"L",a+c,q/2,d,t,a+c,q/2,a+c,b+q-f):d&&0>d?t>b+D&&t<b+q-D?h.splice(33,3,"L",a,t+6,a-6,t,a,t-6,a,b+f):h.splice(33,3,"L",a,q/2,d,t,a,q/2,a,b+f):t&&t>q&&d>a+D&&d<a+c-D?h.splice(23,3,"L",d+6,b+q,d,b+q+6,d-6,b+q,a+f,b+q):t&&0>t&&d>a+D&&d<a+c-D&&h.splice(3,3,"L",d-6,b,d,b-6,d+6,b,c-f,b);return h}},clipRect:function(b,c,q,t){var f=a.uniqueKey(),D=this.createElement("clipPath").attr({id:f}).add(this.defs);
b=this.rect(b,c,q,t,0).add(D);b.id=f;b.clipPath=D;b.count=0;return b},text:function(a,b,c,q){var t={};if(q&&(this.allowHTML||!this.forExport))return this.html(a,b,c);t.x=Math.round(b||0);c&&(t.y=Math.round(c));if(a||0===a)t.text=a;a=this.createElement("text").attr(t);q||(a.xSetter=function(a,b,c){var q=c.getElementsByTagName("tspan"),t,f=c.getAttribute(b),D;for(D=0;D<q.length;D++)t=q[D],t.getAttribute(b)===f&&t.setAttribute(b,a);c.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=b&&A.prototype.getStyle.call(b,
"font-size");a=/px/.test(a)?D(a):/em/.test(a)?parseFloat(a)*(b?this.fontMetrics(null,b.parentNode).f:16):12;b=24>a?a+3:Math.round(1.2*a);return{h:b,b:Math.round(.8*b),f:a}},rotCorr:function(a,b,c){var q=a;b&&c&&(q=Math.max(q*Math.cos(b*k),4));return{x:-a/3*Math.sin(b*k),y:q}},label:function(b,q,t,f,D,h,p,v,k){var x=this,F=x.g("button"!==k&&"label"),B=F.text=x.text("",0,0,p).attr({zIndex:1}),e,g,z=0,u=3,H=0,n,l,E,T,M,J={},I,Q=/^url\((.*?)\)$/.test(f),w=Q,r,O,L,P;k&&F.addClass("highcharts-"+k);w=!0;
r=function(){return e.strokeWidth()%2/2};O=function(){var a=B.element.style,b={};g=(void 0===n||void 0===l||M)&&d(B.textStr)&&B.getBBox();F.width=(n||g.width||0)+2*u+H;F.height=(l||g.height||0)+2*u;I=u+x.fontMetrics(a&&a.fontSize,B).b;w&&(e||(F.box=e=x.symbols[f]||Q?x.symbol(f):x.rect(),e.addClass(("button"===k?"":"highcharts-label-box")+(k?" highcharts-"+k+"-box":"")),e.add(F),a=r(),b.x=a,b.y=(v?-I:0)+a),b.width=Math.round(F.width),b.height=Math.round(F.height),e.attr(c(b,J)),J={})};L=function(){var a=
H+u,b;b=v?0:I;d(n)&&g&&("center"===M||"right"===M)&&(a+={center:.5,right:1}[M]*(n-g.width));if(a!==B.x||b!==B.y)B.attr("x",a),B.hasBoxWidthChanged&&(g=B.getBBox(!0),O()),void 0!==b&&B.attr("y",b);B.x=a;B.y=b};P=function(a,b){e?e.attr(a,b):J[a]=b};F.onAdd=function(){B.add(F);F.attr({text:b||0===b?b:"",x:q,y:t});e&&d(D)&&F.attr({anchorX:D,anchorY:h})};F.widthSetter=function(b){n=a.isNumber(b)?b:null};F.heightSetter=function(a){l=a};F["text-alignSetter"]=function(a){M=a};F.paddingSetter=function(a){d(a)&&
a!==u&&(u=F.padding=a,L())};F.paddingLeftSetter=function(a){d(a)&&a!==H&&(H=a,L())};F.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==z&&(z=a,g&&F.attr({x:E}))};F.textSetter=function(a){void 0!==a&&B.textSetter(a);O();L()};F["stroke-widthSetter"]=function(a,b){a&&(w=!0);this["stroke-width"]=a;P(b,a)};F.rSetter=function(a,b){P(b,a)};F.anchorXSetter=function(a,b){D=F.anchorX=a;P(b,Math.round(a)-r()-E)};F.anchorYSetter=function(a,b){h=F.anchorY=a;P(b,a-T)};F.xSetter=function(a){F.x=a;z&&
(a-=z*((n||g.width)+2*u),F["forceAnimate:x"]=!0);E=Math.round(a);F.attr("translateX",E)};F.ySetter=function(a){T=F.y=Math.round(a);F.attr("translateY",T)};var y=F.css;return c(F,{css:function(a){if(a){var b={};a=G(a);m(F.textProps,function(c){void 0!==a[c]&&(b[c]=a[c],delete a[c])});B.css(b);"width"in b&&O()}return y.call(F,a)},getBBox:function(){return{width:g.width+2*u,height:g.height+2*u,x:g.x-u,y:g.y-u}},destroy:function(){N(F.element,"mouseenter");N(F.element,"mouseleave");B&&(B=B.destroy());
e&&(e=e.destroy());A.prototype.destroy.call(F);F=x=O=L=P=null}})}});a.Renderer=y})(K);(function(a){var A=a.attr,y=a.createElement,C=a.css,l=a.defined,e=a.each,g=a.extend,r=a.isFirefox,w=a.isMS,n=a.isWebKit,d=a.pick,k=a.pInt,h=a.SVGRenderer,u=a.win,m=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b="SPAN"===this.element.tagName&&a&&"width"in a,c=d(b&&a.width,void 0);b&&(delete a.width,this.textWidth=c,this.htmlUpdateTransform());a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
"hidden");this.styles=g(this.styles,a);C(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,f=this.x||0,d=this.y||0,h=this.textAlign||"left",m={left:0,center:.5,right:1}[h],g=this.styles,u=g&&g.whiteSpace;C(b,{marginLeft:this.translateX||0,marginTop:this.translateY||0});this.inverted&&e(b.childNodes,function(c){a.invertChild(c,
b)});if("SPAN"===b.tagName){var g=this.rotation,z=this.textWidth&&k(this.textWidth),v=[g,h,b.innerHTML,this.textWidth,this.textAlign].join(),B;(B=z!==this.oldTextWidth)&&!(B=z>this.oldTextWidth)&&((B=this.textPxLength)||(C(b,{width:"",whiteSpace:u||"nowrap"}),B=b.offsetWidth),B=B>z);B&&/[ \-]/.test(b.textContent||b.innerText)?(C(b,{width:z+"px",display:"block",whiteSpace:u||"normal"}),this.oldTextWidth=z,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;v!==this.cTT&&(u=a.fontMetrics(b.style.fontSize).b,
!l(g)||g===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(g,m,u),this.getSpanCorrection(!l(g)&&this.textPxLength||b.offsetWidth,u,m,g,h));C(b,{left:f+(this.xCorr||0)+"px",top:d+(this.yCorr||0)+"px"});this.cTT=v;this.oldRotation=g;this.oldAlign=h}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,f){var c={},d=this.renderer.getTransformKey();c[d]=c.transform="rotate("+a+"deg)";c[d+(r?"Origin":"-origin")]=c.transformOrigin=100*b+"% "+f+"px";C(this.element,c)},getSpanCorrection:function(a,
b,f){this.xCorr=-a*f;this.yCorr=-b}});g(h.prototype,{getTransformKey:function(){return w&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":r?"MozTransform":u.opera?"-o-transform":""},html:function(a,b,f){var c=this.createElement("span"),h=c.element,k=c.renderer,u=k.isSVG,n=function(a,b){e(["opacity","visibility"],function(c){m(a,c+"Setter",function(a,c,f,q){a.call(this,c,f,q);b[f]=c})});a.addedSetters=!0};c.textSetter=function(a){a!==h.innerHTML&&delete this.bBox;this.textStr=
a;h.innerHTML=d(a,"");c.doTransform=!0};u&&n(c,c.element.style);c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(a,b){"align"===b&&(b="textAlign");c[b]=a;c.doTransform=!0};c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};c.attr({text:a,x:Math.round(b),y:Math.round(f)}).css({position:"absolute"});h.style.whiteSpace="nowrap";c.css=c.htmlCss;u&&(c.add=function(a){var b,f=k.box.parentNode,d=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)d.push(a),
a=a.parentGroup;e(d.reverse(),function(a){function h(b,c){a[c]=b;"translateX"===c?q.left=b+"px":q.top=b+"px";a.doTransform=!0}var q,D=A(a.element,"class");D&&(D={className:D});b=a.div=a.div||y("div",D,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||f);q=b.style;g(a,{classSetter:function(a){return function(b){this.element.setAttribute("class",b);a.className=b}}(b),on:function(){d[0].div&&
c.on.apply({element:d[0].div},arguments);return a},translateXSetter:h,translateYSetter:h});a.addedSetters||n(a,q)})}}else b=f;b.appendChild(h);c.added=!0;c.alignOnAdd&&c.htmlUpdateTransform();return c});return c}})})(K);(function(a){var A=a.correctFloat,y=a.defined,C=a.destroyObjectProperties,l=a.fireEvent,e=a.isNumber,g=a.pick,r=a.deg2rad;a.Tick=function(a,g,d,k){this.axis=a;this.pos=g;this.type=d||"";this.isNewLabel=this.isNew=!0;d||k||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=
this.axis,e=a.options,d=a.chart,k=a.categories,h=a.names,u=this.pos,m=e.labels,c=a.tickPositions,b=u===c[0],f=u===c[c.length-1],h=k?g(k[u],h[u],u):u,k=this.label,c=c.info,p;a.isDatetimeAxis&&c&&(p=e.dateTimeLabelFormats[c.higherRanks[u]||c.unitName]);this.isFirst=b;this.isLast=f;e={axis:a,chart:d,isFirst:b,isLast:f,dateTimeLabelFormat:p,value:a.isLog?A(a.lin2log(h)):h,pos:u};e=a.labelFormatter.call(e,e);if(y(k))k&&k.textStr!==e&&(!k.textWidth||m.style&&m.style.width||k.styles.width||k.css({width:null}),
k.attr({text:e}));else{if(this.label=k=y(e)&&m.enabled?d.renderer.text(e,0,0,m.useHTML).add(a.labelGroup):null)k.textPxLength=k.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var e=this.axis,d=e.options.labels,k=a.x,h=e.chart.chartWidth,u=e.chart.spacing,m=g(e.labelLeft,Math.min(e.pos,u[3])),u=g(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,h-u[1])),c=this.label,b=this.rotation,f={left:0,
center:.5,right:1}[e.labelAlign||c.attr("align")],p=c.getBBox().width,H=e.getSlotWidth(this),x=H,l=1,E,z={};if(b||"justify"!==g(d.overflow,"justify"))0>b&&k-f*p<m?E=Math.round(k/Math.cos(b*r)-m):0<b&&k+f*p>u&&(E=Math.round((h-k)/Math.cos(b*r)));else if(h=k+(1-f)*p,k-f*p<m?x=a.x+x*(1-f)-m:h>u&&(x=u-a.x+x*f,l=-1),x=Math.min(H,x),x<H&&"center"===e.labelAlign&&(a.x+=l*(H-x-f*(H-Math.min(p,x)))),p>x||e.autoRotation&&(c.styles||{}).width)E=x;E&&(z.width=E,(d.style||{}).textOverflow||(z.textOverflow="ellipsis"),
c.css(z))},getPosition:function(e,g,d,k){var h=this.axis,u=h.chart,m=k&&u.oldChartHeight||u.chartHeight;e={x:e?a.correctFloat(h.translate(g+d,null,null,k)+h.transB):h.left+h.offset+(h.opposite?(k&&u.oldChartWidth||u.chartWidth)-h.right-h.left:0),y:e?m-h.bottom+h.offset-(h.opposite?h.height:0):a.correctFloat(m-h.translate(g+d,null,null,k)-h.transB)};l(this,"afterGetPosition",{pos:e});return e},getLabelPosition:function(a,e,d,k,h,g,m,c){var b=this.axis,f=b.transA,p=b.reversed,u=b.staggerLines,x=b.tickRotCorr||
{x:0,y:0},n=h.y,E=k||b.reserveSpaceDefault?0:-b.labelOffset*("center"===b.labelAlign?.5:1),z={};y(n)||(n=0===b.side?d.rotation?-8:-d.getBBox().height:2===b.side?x.y+8:Math.cos(d.rotation*r)*(x.y-d.getBBox(!1,0).height/2));a=a+h.x+E+x.x-(g&&k?g*f*(p?-1:1):0);e=e+n-(g&&!k?g*f*(p?1:-1):0);u&&(d=m/(c||1)%u,b.opposite&&(d=u-d-1),e+=b.labelOffset/u*d);z.x=a;z.y=Math.round(e);l(this,"afterGetLabelPosition",{pos:z});return z},getMarkPath:function(a,e,d,k,h,g){return g.crispLine(["M",a,e,"L",a+(h?0:-d),e+
(h?d:0)],k)},renderGridLine:function(a,e,d){var k=this.axis,h=this.gridLine,g={},m=this.pos,c=this.type,b=k.tickmarkOffset,f=k.chart.renderer;h||(c||(g.zIndex=1),a&&(g.opacity=0),this.gridLine=h=f.path().attr(g).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(k.gridGroup));if(!a&&h&&(a=k.getPlotLinePath(m+b,h.strokeWidth()*d,a,!0)))h[this.isNew?"attr":"animate"]({d:a,opacity:e})},renderMark:function(a,e,d){var k=this.axis,h=k.chart.renderer,g=this.type,m=k.tickSize(g?g+"Tick":"tick"),c=this.mark,
b=!c,f=a.x;a=a.y;m&&(k.opposite&&(m[0]=-m[0]),b&&(this.mark=c=h.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(k.axisGroup)),c[b?"attr":"animate"]({d:this.getMarkPath(f,a,m[0],c.strokeWidth()*d,k.horiz,h),opacity:e}))},renderLabel:function(a,l,d,k){var h=this.axis,u=h.horiz,m=h.options,c=this.label,b=m.labels,f=b.step,h=h.tickmarkOffset,p=!0,H=a.x;a=a.y;c&&e(H)&&(c.xy=a=this.getLabelPosition(H,a,c,u,b,h,k,f),this.isFirst&&!this.isLast&&!g(m.showFirstLabel,1)||this.isLast&&!this.isFirst&&!g(m.showLastLabel,
1)?p=!1:!u||b.step||b.rotation||l||0===d||this.handleOverflow(a),f&&k%f&&(p=!1),p&&e(a.y)?(a.opacity=d,c[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))},render:function(e,l,d){var k=this.axis,h=k.horiz,u=this.getPosition(h,this.pos,k.tickmarkOffset,l),m=u.x,c=u.y,k=h&&m===k.pos+k.len||!h&&c===k.pos?-1:1;d=g(d,1);this.isActive=!0;this.renderGridLine(l,d,k);this.renderMark(u,d,k);this.renderLabel(u,l,d,e);this.isNew=!1;a.fireEvent(this,"afterRender")},
destroy:function(){C(this,this.axis)}}})(K);var V=function(a){var A=a.addEvent,y=a.animObject,C=a.arrayMax,l=a.arrayMin,e=a.correctFloat,g=a.defaultOptions,r=a.defined,w=a.deg2rad,n=a.destroyObjectProperties,d=a.each,k=a.extend,h=a.fireEvent,u=a.format,m=a.getMagnitude,c=a.grep,b=a.inArray,f=a.isArray,p=a.isNumber,H=a.isString,x=a.merge,J=a.normalizeTickInterval,E=a.objectEach,z=a.pick,v=a.removeEvent,B=a.splat,G=a.syncTimeout,M=a.Tick,I=function(){this.init.apply(this,arguments)};a.extend(I.prototype,
{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle"},type:"linear"},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,formatter:function(){return a.numberFormat(this.total,-1)}}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,c){var q=c.isX,t=this;t.chart=
a;t.horiz=a.inverted&&!t.isZAxis?!q:q;t.isXAxis=q;t.coll=t.coll||(q?"xAxis":"yAxis");h(this,"init",{userOptions:c});t.opposite=c.opposite;t.side=c.side||(t.horiz?t.opposite?0:2:t.opposite?1:3);t.setOptions(c);var f=this.options,d=f.type;t.labelFormatter=f.labels.formatter||t.defaultLabelFormatter;t.userOptions=c;t.minPixelPadding=0;t.reversed=f.reversed;t.visible=!1!==f.visible;t.zoomEnabled=!1!==f.zoomEnabled;t.hasNames="category"===d||!0===f.categories;t.categories=f.categories||t.hasNames;t.names||
(t.names=[],t.names.keys={});t.plotLinesAndBandsGroups={};t.isLog="logarithmic"===d;t.isDatetimeAxis="datetime"===d;t.positiveValuesOnly=t.isLog&&!t.allowNegativeLog;t.isLinked=r(f.linkedTo);t.ticks={};t.labelEdge=[];t.minorTicks={};t.plotLinesAndBands=[];t.alternateBands={};t.len=0;t.minRange=t.userMinRange=f.minRange||f.maxZoom;t.range=f.range;t.offset=f.offset||0;t.stacks={};t.oldStacks={};t.stacksTouched=0;t.max=null;t.min=null;t.crosshair=z(f.crosshair,B(a.options.tooltip.crosshairs)[q?0:1],
!1);c=t.options.events;-1===b(t,a.axes)&&(q?a.axes.splice(a.xAxis.length,0,t):a.axes.push(t),a[t.coll].push(t));t.series=t.series||[];a.inverted&&!t.isZAxis&&q&&void 0===t.reversed&&(t.reversed=!0);E(c,function(a,b){A(t,b,a)});t.lin2log=f.linearToLogConverter||t.lin2log;t.isLog&&(t.val2lin=t.log2lin,t.lin2val=t.lin2log);h(this,"afterInit")},setOptions:function(a){this.options=x(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,
this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],x(g[this.coll],a));h(this,"afterSetOptions",{userOptions:a})},defaultLabelFormatter:function(){var b=this.axis,c=this.value,f=b.chart.time,t=b.categories,d=this.dateTimeLabelFormat,h=g.lang,p=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,v=p&&p.length,k,e=b.options.labels.format,b=b.isLog?Math.abs(c):b.tickInterval;if(e)k=u(e,this,f);else if(t)k=c;else if(d)k=f.dateFormat(d,c);else if(v&&1E3<=b)for(;v--&&void 0===k;)f=Math.pow(h,
v+1),b>=f&&0===10*c%f&&null!==p[v]&&0!==c&&(k=a.numberFormat(c/f,-1)+p[v]);void 0===k&&(k=1E4<=Math.abs(c)?a.numberFormat(c,-1):a.numberFormat(c,-1,void 0,""));return k},getSeriesExtremes:function(){var a=this,b=a.chart;h(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();d(a.series,function(q){if(q.visible||!b.options.chart.ignoreHiddenSeries){var t=q.options,f=t.threshold,d;a.hasVisibleSeries=
!0;a.positiveValuesOnly&&0>=f&&(f=null);if(a.isXAxis)t=q.xData,t.length&&(q=l(t),d=C(t),p(q)||q instanceof Date||(t=c(t,p),q=l(t),d=C(t)),t.length&&(a.dataMin=Math.min(z(a.dataMin,t[0],q),q),a.dataMax=Math.max(z(a.dataMax,t[0],d),d)));else if(q.getExtremes(),d=q.dataMax,q=q.dataMin,r(q)&&r(d)&&(a.dataMin=Math.min(z(a.dataMin,q),q),a.dataMax=Math.max(z(a.dataMax,d),d)),r(f)&&(a.threshold=f),!t.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});h(this,"afterGetSeriesExtremes")},translate:function(a,
b,c,t,f,d){var q=this.linkedParent||this,h=1,D=0,v=t?q.oldTransA:q.transA;t=t?q.oldMin:q.min;var k=q.minPixelPadding;f=(q.isOrdinal||q.isBroken||q.isLog&&f)&&q.lin2val;v||(v=q.transA);c&&(h*=-1,D=q.len);q.reversed&&(h*=-1,D-=h*(q.sector||q.len));b?(a=(a*h+D-k)/v+t,f&&(a=q.lin2val(a))):(f&&(a=q.val2lin(a)),a=p(t)?h*(a-t)*v+D+h*k+(p(d)?v*d:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),
!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,t,f){var q=this.chart,d=this.left,h=this.top,D,v,k=c&&q.oldChartHeight||q.chartHeight,e=c&&q.oldChartWidth||q.chartWidth,m;D=this.transB;var g=function(a,b,c){if(a<b||a>c)t?a=Math.min(Math.max(b,a),c):m=!0;return a};f=z(f,this.translate(a,null,null,c));f=Math.min(Math.max(-1E5,f),1E5);a=c=Math.round(f+D);D=v=Math.round(k-f-D);p(f)?this.horiz?(D=h,v=k-this.bottom,a=c=g(a,d,d+this.width)):(a=d,c=e-this.right,D=v=g(D,h,h+this.height)):(m=!0,t=!1);
return m&&!t?null:q.renderer.crispLine(["M",a,D,"L",c,v],b||1)},getLinearTickPositions:function(a,b,c){var q,f=e(Math.floor(b/a)*a);c=e(Math.ceil(c/a)*a);var d=[],h;e(f+a)===f&&(h=20);if(this.single)return[b];for(b=f;b<=c;){d.push(b);b=e(b+a,h);if(b===q)break;q=b}return d},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?z(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,b=a.options,c=a.tickPositions,t=a.minorTickInterval,
f=[],h=a.pointRangePadding||0,p=a.min-h,h=a.max+h,v=h-p;if(v&&v/t<a.len/3)if(a.isLog)d(this.paddedTicks,function(b,c,q){c&&f.push.apply(f,a.getLogTickPositions(t,q[c-1],q[c],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())f=f.concat(a.getTimeTicks(a.normalizeTimeTickInterval(t),p,h,b.startOfWeek));else for(b=p+(c[0]-p)%t;b<=h&&b!==f[0];b+=t)f.push(b);0!==f.length&&a.trimTicks(f);return f},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,f,h,p,v,k,e,m,g;this.isXAxis&&
void 0===this.minRange&&!this.isLog&&(r(a.min)||r(a.max)?this.minRange=null:(d(this.series,function(a){e=a.xData;for(v=m=a.xIncrement?1:e.length-1;0<v;v--)if(k=e[v]-e[v-1],void 0===p||k<p)p=k}),this.minRange=Math.min(5*p,this.dataMax-this.dataMin)));c-b<this.minRange&&(h=this.dataMax-this.dataMin>=this.minRange,g=this.minRange,f=(g-c+b)/2,f=[b-f,z(a.min,b-f)],h&&(f[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=C(f),c=[b+g,z(a.max,b+g)],h&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),
c=l(c),c-b<g&&(f[0]=c-g,f[1]=z(a.min,c-g),b=C(f)));this.min=b;this.max=c},getClosest:function(){var a;this.categories?a=1:d(this.series,function(b){var c=b.closestPointRange,f=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&r(c)&&f&&(a=r(a)?Math.min(a,c):c)});return a},nameToX:function(a){var c=f(this.categories),q=c?this.categories:this.names,t=a.options.x,d;a.series.requireSorting=!1;r(t)||(t=!1===this.options.uniqueNames?a.series.autoIncrement():c?b(a.name,q):z(q.keys[a.name],
-1));-1===t?c||(d=q.length):d=t;void 0!==d&&(this.names[d]=a.name,this.names.keys[a.name]=d);return d},updateNames:function(){var b=this,c=this.names;0<c.length&&(d(a.keys(c.keys),function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,d(this.series||[],function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)a.processData(),a.generatePoints();d(a.points,function(c,f){var q;c.options&&(q=b.nameToX(c),void 0!==q&&q!==c.x&&(c.x=q,a.xData[f]=q))})}))},setAxisTranslation:function(a){var b=
this,c=b.max-b.min,f=b.axisPointRange||0,q,p=0,v=0,k=b.linkedParent,e=!!b.categories,g=b.transA,m=b.isXAxis;if(m||e||f)q=b.getClosest(),k?(p=k.minPointOffset,v=k.pointRangePadding):d(b.series,function(a){var c=e?1:m?z(a.options.pointRange,q,0):b.axisPointRange||0;a=a.options.pointPlacement;f=Math.max(f,c);b.single||(p=Math.max(p,H(a)?0:c/2),v=Math.max(v,"on"===a?0:c))}),k=b.ordinalSlope&&q?b.ordinalSlope/q:1,b.minPointOffset=p*=k,b.pointRangePadding=v*=k,b.pointRange=Math.min(f,c),m&&(b.closestPointRange=
q);a&&(b.oldTransA=g);b.translationSlope=b.transA=g=b.options.staticScale||b.len/(c+v||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=g*p;h(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(b){var c=this,f=c.chart,q=c.options,v=c.isLog,k=c.isDatetimeAxis,g=c.isXAxis,x=c.isLinked,B=q.maxPadding,G=q.minPadding,u=q.tickInterval,l=q.tickPixelInterval,H=c.categories,E=p(c.threshold)?c.threshold:null,n=c.softThreshold,M,I,w,y;k||H||x||this.getTickAmount();
w=z(c.userMin,q.min);y=z(c.userMax,q.max);x?(c.linkedParent=f[c.coll][q.linkedTo],f=c.linkedParent.getExtremes(),c.min=z(f.min,f.dataMin),c.max=z(f.max,f.dataMax),q.type!==c.linkedParent.options.type&&a.error(11,1)):(!n&&r(E)&&(c.dataMin>=E?(M=E,G=0):c.dataMax<=E&&(I=E,B=0)),c.min=z(w,M,c.dataMin),c.max=z(y,I,c.dataMax));v&&(c.positiveValuesOnly&&!b&&0>=Math.min(c.min,z(c.dataMin,c.min))&&a.error(10,1),c.min=e(c.log2lin(c.min),15),c.max=e(c.log2lin(c.max),15));c.range&&r(c.max)&&(c.userMin=c.min=
w=Math.max(c.dataMin,c.minFromRange()),c.userMax=y=c.max,c.range=null);h(c,"foundExtremes");c.beforePadding&&c.beforePadding();c.adjustForMinRange();!(H||c.axisPointRange||c.usePercentage||x)&&r(c.min)&&r(c.max)&&(f=c.max-c.min)&&(!r(w)&&G&&(c.min-=f*G),!r(y)&&B&&(c.max+=f*B));p(q.softMin)&&!p(c.userMin)&&(c.min=Math.min(c.min,q.softMin));p(q.softMax)&&!p(c.userMax)&&(c.max=Math.max(c.max,q.softMax));p(q.floor)&&(c.min=Math.max(c.min,q.floor));p(q.ceiling)&&(c.max=Math.min(c.max,q.ceiling));n&&r(c.dataMin)&&
(E=E||0,!r(w)&&c.min<E&&c.dataMin>=E?c.min=E:!r(y)&&c.max>E&&c.dataMax<=E&&(c.max=E));c.tickInterval=c.min===c.max||void 0===c.min||void 0===c.max?1:x&&!u&&l===c.linkedParent.options.tickPixelInterval?u=c.linkedParent.tickInterval:z(u,this.tickAmount?(c.max-c.min)/Math.max(this.tickAmount-1,1):void 0,H?1:(c.max-c.min)*l/Math.max(c.len,l));g&&!b&&d(c.series,function(a){a.processData(c.min!==c.oldMin||c.max!==c.oldMax)});c.setAxisTranslation(!0);c.beforeSetTickPositions&&c.beforeSetTickPositions();
c.postProcessTickInterval&&(c.tickInterval=c.postProcessTickInterval(c.tickInterval));c.pointRange&&!u&&(c.tickInterval=Math.max(c.pointRange,c.tickInterval));b=z(q.minTickInterval,c.isDatetimeAxis&&c.closestPointRange);!u&&c.tickInterval<b&&(c.tickInterval=b);k||v||u||(c.tickInterval=J(c.tickInterval,null,m(c.tickInterval),z(q.allowDecimals,!(.5<c.tickInterval&&5>c.tickInterval&&1E3<c.max&&9999>c.max)),!!this.tickAmount));this.tickAmount||(c.tickInterval=c.unsquish());this.setTickPositions()},setTickPositions:function(){var b=
this.options,c,f=b.tickPositions;c=this.getMinorTickInterval();var t=b.tickPositioner,d=b.startOnTick,p=b.endOnTick;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===c&&this.tickInterval?this.tickInterval/5:c;this.single=this.min===this.max&&r(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);this.tickPositions=c=f&&f.slice();!c&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>
Math.max(2*this.len,200)?(c=[this.min,this.max],a.error(19)):c=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),c.length>this.len&&(c=[c[0],c.pop()],c[0]===c[1]&&(c.length=1)),this.tickPositions=c,t&&(t=t.apply(this,[this.min,this.max])))&&
(this.tickPositions=c=t);this.paddedTicks=c.slice(0);this.trimTicks(c,d,p);this.isLinked||(this.single&&2>c.length&&(this.min-=.5,this.max+=.5),f||t||this.adjustTickAmount());h(this,"afterSetTickPositions")},trimTicks:function(a,b,c){var f=a[0],q=a[a.length-1],d=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==f)this.min=f;else for(;this.min-d>a[0];)a.shift();if(c)this.max=q;else for(;this.max+d<a[a.length-1];)a.pop();0===a.length&&r(f)&&!this.options.tickPositions&&a.push((q+f)/2)}},alignToOthers:function(){var a=
{},b,c=this.options;!1===this.chart.options.chart.alignTicks||!1===c.alignTicks||!1===c.startOnTick||!1===c.endOnTick||this.isLog||d(this.chart[this.coll],function(c){var f=c.options,f=[c.horiz?f.left:f.top,f.width,f.height,f.pane].join();c.series.length&&(a[f]?b=!0:a[f]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!r(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/
c)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,f=this.finalTickAmt,d=b&&b.length,h=z(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(d<c){for(;b.length<c;)b.length%2||this.min===h?b.push(e(b[b.length-1]+a)):b.unshift(e(b[0]-a));this.transA*=(d-1)/(c-1);this.min=b[0];this.max=b[b.length-1]}else d>c&&(this.tickInterval*=2,this.setTickPositions());if(r(f)){for(a=c=b.length;a--;)(3===f&&
1===a%2||2>=f&&0<a&&a<c-1)&&b.splice(a,1);this.finalTickAmt=void 0}}},setScale:function(){var a,b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;d(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});b||a||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=b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks();h(this,"afterSetScale")},setExtremes:function(a,b,c,f,p){var q=this,t=q.chart;c=z(c,!0);d(q.series,function(a){delete a.kdTree});p=k(p,{min:a,max:b});h(q,"setExtremes",p,function(){q.userMin=a;q.userMax=b;q.eventArgs=p;c&&t.redraw(f)})},zoom:function(a,b){var c=this.dataMin,f=this.dataMax,q=this.options,
d=Math.min(c,z(q.min,c)),q=Math.max(f,z(q.max,f));if(a!==this.min||b!==this.max)this.allowZoomOutside||(r(c)&&(a<d&&(a=d),a>q&&(a=q)),r(f)&&(b<d&&(b=d),b>q&&(b=q))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,f=c.offsets||[0,0,0,0],t=this.horiz,d=this.width=Math.round(a.relativeLength(z(c.width,b.plotWidth-f[3]+f[1]),b.plotWidth)),h=this.height=Math.round(a.relativeLength(z(c.height,b.plotHeight-
f[0]+f[2]),b.plotHeight)),p=this.top=Math.round(a.relativeLength(z(c.top,b.plotTop+f[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(z(c.left,b.plotLeft+f[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-h-p;this.right=b.chartWidth-d-c;this.len=Math.max(t?d:h,0);this.pos=t?c:p},getExtremes:function(){var a=this.isLog;return{min:a?e(this.lin2log(this.min)):this.min,max:a?e(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},
getThreshold:function(a){var b=this.isLog,c=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=c:Infinity===a?a=b:c>a?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(z(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var b=this.options,c=b[a+"Length"],f=z(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(f&&c)return"inside"===b[a+"Position"]&&(c=-c),[c,f]},labelMetrics:function(){var a=
this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,f=c,h=this.len/(((this.categories?1:0)+this.max-this.min)/c),p,v=a.rotation,k=this.labelMetrics(),g,m=Number.MAX_VALUE,x,B=function(a){a/=h||1;a=1<a?Math.ceil(a):1;return e(a*c)};b?(x=!a.staggerLines&&!a.step&&(r(v)?[v]:h<z(a.autoRotationLimit,
80)&&a.autoRotation))&&d(x,function(a){var b;if(a===v||a&&-90<=a&&90>=a)g=B(Math.abs(k.h/Math.sin(w*a))),b=g+Math.abs(a/360),b<m&&(m=b,p=a,f=g)}):a.step||(f=B(k.h));this.autoRotation=x;this.labelRotation=z(p,v);return f},getSlotWidth:function(){var a=this.chart,b=this.horiz,c=this.options.labels,f=Math.max(this.tickPositions.length-(this.categories?0:1),1),d=a.margin[3];return b&&2>(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/f||!b&&(c.style&&parseInt(c.style.width,10)||d&&d-a.spacing[3]||
.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,f=this.ticks,h=this.options.labels,p=h&&h.style||{},v=this.horiz,k=this.getSlotWidth(),e=Math.max(1,Math.round(k-2*(h.padding||5))),g={},m=this.labelMetrics(),x=h.style&&h.style.textOverflow,B,G,u=0,z;H(h.rotation)||(g.rotation=h.rotation||0);d(c,function(a){(a=f[a])&&a.label&&a.label.textPxLength>u&&(u=a.label.textPxLength)});this.maxLabelLength=u;if(this.autoRotation)u>e&&u>m.h?g.rotation=this.labelRotation:
this.labelRotation=0;else if(k&&(B=e,!x))for(G="clip",e=c.length;!v&&e--;)if(z=c[e],z=f[z].label)z.styles&&"ellipsis"===z.styles.textOverflow?z.css({textOverflow:"clip"}):z.textPxLength>k&&z.css({width:k+"px"}),z.getBBox().height>this.len/c.length-(m.h-m.f)&&(z.specificTextOverflow="ellipsis");g.rotation&&(B=u>.5*a.chartHeight?.33*a.chartHeight:u,x||(G="ellipsis"));if(this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation))g.align=this.labelAlign;d(c,function(a){var b=(a=f[a])&&a.label,c=
p.width,d={};b&&(b.attr(g),B&&!c&&"nowrap"!==p.whiteSpace&&(B<b.textPxLength||"SPAN"===b.element.tagName)?(d.width=B,x||(d.textOverflow=b.specificTextOverflow||G),b.css(d)):b.styles&&b.styles.width&&!d.width&&!c&&b.css({width:null}),delete b.specificTextOverflow,a.rotation=g.rotation)});this.tickRotCorr=b.rotCorr(m.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||r(this.min)&&r(this.max)&&this.tickPositions&&0<this.tickPositions.length},addTitle:function(a){var b=
this.chart.renderer,c=this.horiz,f=this.opposite,d=this.options.title,q;this.axisTitle||((q=d.textAlign)||(q=(c?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[d.align]),this.axisTitle=b.text(d.text,0,0,d.useHTML).attr({zIndex:7,rotation:d.rotation||0,align:q}).addClass("highcharts-axis-title").add(this.axisGroup),this.axisTitle.isNew=!0);this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var b=
this.ticks;b[a]?b[a].addLabel():b[a]=new M(this,a)},getOffset:function(){var a=this,b=a.chart,c=b.renderer,f=a.options,p=a.tickPositions,v=a.ticks,k=a.horiz,e=a.side,g=b.inverted&&!a.isZAxis?[1,0,3,2][e]:e,m,x,B=0,G,u=0,l=f.title,H=f.labels,n=0,M=b.axisOffset,b=b.clipOffset,I=[-1,1,1,-1][e],J=f.className,w=a.axisParent,y=this.tickSize("tick");m=a.hasData();a.showAxis=x=m||z(f.showEmpty,!0);a.staggerLines=a.horiz&&H.staggerLines;a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:f.gridZIndex||1}).addClass("highcharts-"+
this.coll.toLowerCase()+"-grid "+(J||"")).add(w),a.axisGroup=c.g("axis").attr({zIndex:f.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(J||"")).add(w),a.labelGroup=c.g("axis-labels").attr({zIndex:H.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(J||"")).add(w));m||a.isLinked?(d(p,function(b,c){a.generateTick(b,c)}),a.renderUnsquish(),a.reserveSpaceDefault=0===e||2===e||{1:"left",3:"right"}[e]===a.labelAlign,z(H.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&
d(p,function(a){n=Math.max(v[a].getLabelSize(),n)}),a.staggerLines&&(n*=a.staggerLines),a.labelOffset=n*(a.opposite?-1:1)):E(v,function(a,b){a.destroy();delete v[b]});l&&l.text&&!1!==l.enabled&&(a.addTitle(x),x&&!1!==l.reserveSpace&&(a.titleOffset=B=a.axisTitle.getBBox()[k?"height":"width"],G=l.offset,u=r(G)?0:z(l.margin,k?5:10)));a.renderLine();a.offset=I*z(f.offset,M[e]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=0===e?-a.labelMetrics().h:2===e?a.tickRotCorr.y:0;u=Math.abs(n)+u;n&&(u=u-c+I*(k?z(H.y,
a.tickRotCorr.y+8*I):H.x));a.axisTitleMargin=z(G,u);M[e]=Math.max(M[e],a.axisTitleMargin+B+I*a.offset,u,m&&p.length&&y?y[0]+I*a.offset:0);f=f.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[g]=Math.max(b[g],f);h(this,"afterGetOffset")},getLinePath:function(a){var b=this.chart,c=this.opposite,f=this.offset,d=this.horiz,h=this.left+(c?this.width:0)+f,f=b.chartHeight-this.bottom-(c?this.height:0)+f;c&&(a*=-1);return b.renderer.crispLine(["M",d?this.left:h,d?f:this.top,"L",d?b.chartWidth-this.right:
h,d?f:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup))},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,f=this.len,d=this.options.title,h=a?b:c,p=this.opposite,v=this.offset,k=d.x||0,e=d.y||0,g=this.axisTitle,m=this.chart.renderer.fontMetrics(d.style&&d.style.fontSize,g),g=Math.max(g.getBBox(null,0).height-m.h-1,0),f={low:h+(a?0:f),middle:h+f/2,high:h+(a?f:0)}[d.align],
b=(a?c+this.height:b)+(a?1:-1)*(p?-1:1)*this.axisTitleMargin+[-g,g,m.f,-g][this.side];return{x:a?f+k:b+(p?this.width:0)+v+k,y:a?b+e-(p?this.height:0)+v:f+e}},renderMinorTick:function(a){var b=this.chart.hasRendered&&p(this.oldMin),c=this.minorTicks;c[a]||(c[a]=new M(this,a,"minor"));b&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)},renderTick:function(a,b){var c=this.isLinked,f=this.ticks,d=this.chart.hasRendered&&p(this.oldMin);if(!c||a>=this.min&&a<=this.max)f[a]||(f[a]=new M(this,a)),
d&&f[a].isNew&&f[a].render(b,!0,.1),f[a].render(b)},render:function(){var b=this,c=b.chart,f=b.options,t=b.isLog,v=b.isLinked,k=b.tickPositions,e=b.axisTitle,g=b.ticks,m=b.minorTicks,x=b.alternateBands,B=f.stackLabels,u=f.alternateGridColor,z=b.tickmarkOffset,l=b.axisLine,H=b.showAxis,n=y(c.renderer.globalAnimation),I,J;b.labelEdge.length=0;b.overlap=!1;d([g,m,x],function(a){E(a,function(a){a.isActive=!1})});if(b.hasData()||v)b.minorTickInterval&&!b.categories&&d(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),
k.length&&(d(k,function(a,c){b.renderTick(a,c)}),z&&(0===b.min||b.single)&&(g[-1]||(g[-1]=new M(b,-1,null,!0)),g[-1].render(-1))),u&&d(k,function(f,d){J=void 0!==k[d+1]?k[d+1]+z:b.max-z;0===d%2&&f<b.max&&J<=b.max+(c.polar?-z:z)&&(x[f]||(x[f]=new a.PlotLineOrBand(b)),I=f+z,x[f].options={from:t?b.lin2log(I):I,to:t?b.lin2log(J):J,color:u},x[f].render(),x[f].isActive=!0)}),b._addedPlotLB||(d((f.plotLines||[]).concat(f.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=!0);d([g,m,x],function(a){var b,
f=[],d=n.duration;E(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,f.push(b))});G(function(){for(b=f.length;b--;)a[f[b]]&&!a[f[b]].isActive&&(a[f[b]].destroy(),delete a[f[b]])},a!==x&&c.hasRendered&&d?d:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[H?"show":"hide"](!0));e&&H&&(f=b.getTitlePosition(),p(f.y)?(e[e.isNew?"attr":"animate"](f),e.isNew=!1):(e.attr("y",-9999),e.isNew=!0));B&&B.enabled&&b.renderStackTotals();b.isDirty=!1;h(this,
"afterRender")},redraw:function(){this.visible&&(this.render(),d(this.plotLinesAndBands,function(a){a.render()}));d(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var c=this,f=c.stacks,t=c.plotLinesAndBands,p;h(this,"destroy",{keepEvents:a});a||v(c);E(f,function(a,b){n(a);f[b]=null});d([c.ticks,c.minorTicks,c.alternateBands],function(a){n(a)});if(t)for(a=t.length;a--;)t[a].destroy();d("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" "),
function(a){c[a]&&(c[a]=c[a].destroy())});for(p in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[p]=c.plotLinesAndBandsGroups[p].destroy();E(c,function(a,f){-1===b(f,c.keepProps)&&delete c[f]})},drawCrosshair:function(a,b){var c,f=this.crosshair,d=z(f.snap,!0),p,v=this.cross;h(this,"drawCrosshair",{e:a,point:b});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(r(b)||!d)){d?r(b)&&(p=z(b.crosshairPos,this.isXAxis?b.plotX:this.len-b.plotY)):p=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+
this.pos);r(p)&&(c=this.getPlotLinePath(b&&(this.isXAxis?b.x:z(b.stackY,b.y)),null,null,null,p)||null);if(!r(c)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;v||(this.cross=v=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(d?"category ":"thin ")+f.className).attr({zIndex:z(f.zIndex,2)}).add());v.show().attr({d:c});d&&!f.width&&v.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();h(this,"afterDrawCrosshair",{e:a,point:b})},
hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=I}(K);(function(a){var A=a.Axis,y=a.getMagnitude,C=a.map,l=a.normalizeTickInterval,e=a.pick;A.prototype.getLogTickPositions=function(a,r,w,n){var d=this.options,k=this.len,h=[];n||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),h=this.getLinearTickPositions(a,r,w);else if(.08<=a)for(var k=Math.floor(r),g,m,c,b,f,d=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];k<w+1&&!f;k++)for(m=d.length,g=0;g<m&&!f;g++)c=this.log2lin(this.lin2log(k)*
d[g]),c>r&&(!n||b<=w)&&void 0!==b&&h.push(b),b>w&&(f=!0),b=c;else r=this.lin2log(r),w=this.lin2log(w),a=n?this.getMinorTickInterval():d.tickInterval,a=e("auto"===a?null:a,this._minorAutoInterval,d.tickPixelInterval/(n?5:1)*(w-r)/((n?k/this.tickPositions.length:k)||1)),a=l(a,null,y(a)),h=C(this.getLinearTickPositions(a,r,w),this.log2lin),n||(this._minorAutoInterval=a/5);n||(this.tickInterval=a);return h};A.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};A.prototype.lin2log=function(a){return Math.pow(10,
a)}})(K);(function(a,A){var y=a.arrayMax,C=a.arrayMin,l=a.defined,e=a.destroyObjectProperties,g=a.each,r=a.erase,w=a.merge,n=a.pick;a.PlotLineOrBand=function(a,k){this.axis=a;k&&(this.options=k,this.id=k.id)};a.PlotLineOrBand.prototype={render:function(){var d=this,k=d.axis,h=k.horiz,e=d.options,m=e.label,c=d.label,b=e.to,f=e.from,p=e.value,g=l(f)&&l(b),x=l(p),J=d.svgElem,E=!J,z=[],v=n(e.zIndex,0),B=e.events,z={"class":"highcharts-plot-"+(g?"band ":"line ")+(e.className||"")},G={},M=k.chart.renderer,
I=g?"bands":"lines",q;k.isLog&&(f=k.log2lin(f),b=k.log2lin(b),p=k.log2lin(p));G.zIndex=v;I+="-"+v;(q=k.plotLinesAndBandsGroups[I])||(k.plotLinesAndBandsGroups[I]=q=M.g("plot-"+I).attr(G).add());E&&(d.svgElem=J=M.path().attr(z).add(q));if(x)z=k.getPlotLinePath(p,J.strokeWidth());else if(g)z=k.getPlotBandPath(f,b,e);else return;E&&z&&z.length?(J.attr({d:z}),B&&a.objectEach(B,function(a,b){J.on(b,function(a){B[b].apply(d,[a])})})):J&&(z?(J.show(),J.animate({d:z})):(J.hide(),c&&(d.label=c=c.destroy())));
m&&l(m.text)&&z&&z.length&&0<k.width&&0<k.height&&!z.isFlat?(m=w({align:h&&g&&"center",x:h?!g&&4:10,verticalAlign:!h&&g&&"middle",y:h?g?16:10:g?6:-4,rotation:h&&!g&&90},m),this.renderLabel(m,z,g,v)):c&&c.hide();return d},renderLabel:function(a,k,h,e){var d=this.label,c=this.axis.chart.renderer;d||(d={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(h?"band":"line")+"-label "+(a.className||"")},d.zIndex=e,this.label=d=c.text(a.text,0,0,a.useHTML).attr(d).add());e=k.xBounds||
[k[1],k[4],h?k[6]:k[1]];k=k.yBounds||[k[2],k[5],h?k[7]:k[2]];h=C(e);c=C(k);d.align(a,!1,{x:h,y:c,width:y(e)-h,height:y(k)-c});d.show()},destroy:function(){r(this.axis.plotLinesAndBands,this);delete this.axis;e(this)}};a.extend(A.prototype,{getPlotBandPath:function(a,k){var d=this.getPlotLinePath(k,null,null,!0),e=this.getPlotLinePath(a,null,null,!0),g=[],c=this.horiz,b=1,f;a=a<this.min&&k<this.min||a>this.max&&k>this.max;if(e&&d)for(a&&(f=e.toString()===d.toString(),b=0),a=0;a<e.length;a+=6)c&&d[a+
1]===e[a+1]?(d[a+1]+=b,d[a+4]+=b):c||d[a+2]!==e[a+2]||(d[a+2]+=b,d[a+5]+=b),g.push("M",e[a+1],e[a+2],"L",e[a+4],e[a+5],d[a+4],d[a+5],d[a+1],d[a+2],"z"),g.isFlat=f;return g},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(d,k){var h=(new a.PlotLineOrBand(this,d)).render(),e=this.userOptions;h&&(k&&(e[k]=e[k]||[],e[k].push(d)),this.plotLinesAndBands.push(h));return h},removePlotBandOrLine:function(a){for(var d=
this.plotLinesAndBands,h=this.options,e=this.userOptions,m=d.length;m--;)d[m].id===a&&d[m].destroy();g([h.plotLines||[],e.plotLines||[],h.plotBands||[],e.plotBands||[]],function(c){for(m=c.length;m--;)c[m].id===a&&r(c,c[m])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(K,V);(function(a){var A=a.doc,y=a.each,C=a.extend,l=a.format,e=a.isNumber,g=a.map,r=a.merge,w=a.pick,n=a.splat,d=a.syncTimeout,k=a.timeUnits;a.Tooltip=function(){this.init.apply(this,
arguments)};a.Tooltip.prototype={init:function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted;this.shared=d.shared||this.split;this.outside=d.outside&&!this.split},cleanSplit:function(a){y(this.chart.series,function(d){var h=d&&d.tt;h&&(!h.isActive||a?d.tt=h.destroy():h.isActive=!1)})},applyFilter:function(){var a=this.chart;a.renderer.definition({tagName:"filter",id:"drop-shadow-"+a.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"}]}]});a.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+a.index+"{filter:url(#drop-shadow-"+a.index+")}"})},getLabel:function(){var d=this.chart.renderer,e=this.options,k;this.label||(this.outside&&(this.container=k=a.doc.createElement("div"),
k.className="highcharts-tooltip-container",a.css(k,{position:"absolute",top:"1px",pointerEvents:e.style&&e.style.pointerEvents}),a.doc.body.appendChild(k),this.renderer=d=new a.Renderer(k,0,0)),this.label=this.split?d.g("tooltip"):d.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index),this.outside&&(this.label.attr({x:this.distance,y:this.distance}),this.label.xSetter=
function(a){k.style.left=a+"px"},this.label.ySetter=function(a){k.style.top=a+"px"}),this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();r(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,r(!0,this.options,a))},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(),a.discardElement(this.container));a.clearTimeout(this.hideTimer);
a.clearTimeout(this.tooltipTimeout)},move:function(d,k,e,c){var b=this,f=b.now,h=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(d-f.x)||1<Math.abs(k-f.y)),g=b.followPointer||1<b.len;C(f,{x:h?(2*f.x+d)/3:d,y:h?(f.y+k)/2:k,anchorX:g?void 0:h?(2*f.anchorX+e)/3:e,anchorY:g?void 0:h?(f.anchorY+c)/2:c});b.getLabel().attr(f);h&&(a.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(d,k,e,c)},32))},hide:function(h){var k=this;a.clearTimeout(this.hideTimer);h=w(h,this.options.hideDelay,
500);this.isHidden||(this.hideTimer=d(function(){k.getLabel()[h?"fadeOut":"hide"]();k.isHidden=!0},h))},getAnchor:function(a,d){var h=this.chart,c=h.pointer,b=h.inverted,f=h.plotTop,p=h.plotLeft,k=0,e=0,l,E;a=n(a);this.followPointer&&d?(void 0===d.chartX&&(d=c.normalize(d)),a=[d.chartX-h.plotLeft,d.chartY-f]):a[0].tooltipPos?a=a[0].tooltipPos:(y(a,function(a){l=a.series.yAxis;E=a.series.xAxis;k+=a.plotX+(!b&&E?E.left-p:0);e+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!b&&l?l.top-f:0)}),k/=a.length,
e/=a.length,a=[b?h.plotWidth-e:k,this.shared&&!b&&1<a.length&&d?d.chartY-f:b?h.plotHeight-k:e]);return g(a,Math.round)},getPosition:function(a,d,k){var c=this.chart,b=this.distance,f={},h=c.inverted&&k.h||0,e,g=this.outside,m=g?A.documentElement.clientWidth-2*b:c.chartWidth,l=g?Math.max(A.body.scrollHeight,A.documentElement.scrollHeight,A.body.offsetHeight,A.documentElement.offsetHeight,A.documentElement.clientHeight):c.chartHeight,z=c.pointer.chartPosition,v=["y",l,d,(g?z.top-b:0)+k.plotY+c.plotTop,
g?0:c.plotTop,g?l:c.plotTop+c.plotHeight],B=["x",m,a,(g?z.left-b:0)+k.plotX+c.plotLeft,g?0:c.plotLeft,g?m:c.plotLeft+c.plotWidth],G=!this.followPointer&&w(k.ttBelow,!c.inverted===!!k.negative),u=function(a,c,d,k,p,e){var t=d<k-b,v=k+b+d<c,q=k-b-d;k+=b;if(G&&v)f[a]=k;else if(!G&&t)f[a]=q;else if(t)f[a]=Math.min(e-d,0>q-h?q:q-h);else if(v)f[a]=Math.max(p,k+h+d>c?k:k+h);else return!1},n=function(a,c,d,h){var t;h<b||h>c-b?t=!1:f[a]=h<d/2?1:h>c-d/2?c-d-2:h-d/2;return t},q=function(a){var b=v;v=B;B=b;e=
a},D=function(){!1!==u.apply(0,v)?!1!==n.apply(0,B)||e||(q(!0),D()):e?f.x=f.y=0:(q(!0),D())};(c.inverted||1<this.len)&&q();D();return f},defaultFormatter:function(a){var d=this.points||n(this),h;h=[a.tooltipFooterHeaderFormatter(d[0])];h=h.concat(a.bodyFormatter(d));h.push(a.tooltipFooterHeaderFormatter(d[0],!0));return h},refresh:function(d,k){var h,c=this.options,b=d,f,p={},e=[];h=c.formatter||this.defaultFormatter;var p=this.shared,g;c.enabled&&(a.clearTimeout(this.hideTimer),this.followPointer=
n(b)[0].series.tooltipOptions.followPointer,f=this.getAnchor(b,k),k=f[0],c=f[1],!p||b.series&&b.series.noSharedTooltip?p=b.getLabelConfig():(y(b,function(a){a.setState("hover");e.push(a.getLabelConfig())}),p={x:b[0].category,y:b[0].y},p.points=e,b=b[0]),this.len=e.length,p=h.call(p,this),g=b.series,this.distance=w(g.tooltipOptions.distance,16),!1===p?this.hide():(h=this.getLabel(),this.isHidden&&h.attr({opacity:1}).show(),this.split?this.renderSplit(p,n(d)):(h.css({width:this.chart.spacingBox.width}),
h.attr({text:p&&p.join?p.join(""):p}),h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+w(b.colorIndex,g.colorIndex)),this.updatePosition({plotX:k,plotY:c,negative:b.negative,ttBelow:b.ttBelow,h:f[2]||0})),this.isHidden=!1))},renderSplit:function(d,k){var h=this,c=[],b=this.chart,f=b.renderer,e=!0,g=this.options,x=0,l,E=this.getLabel(),z=b.plotTop;a.isString(d)&&(d=[!1,d]);y(d.slice(0,k.length+1),function(a,d){if(!1!==a){d=k[d-1]||{isHeader:!0,plotX:k[0].plotX};var p=d.series||
h,v=p.tt,B="highcharts-color-"+w(d.colorIndex,(d.series||{}).colorIndex,"none");v||(p.tt=v=f.label(null,null,null,"callout",null,null,g.useHTML).addClass("highcharts-tooltip-box "+B+(d.isHeader?" highcharts-tooltip-header":"")).attr({padding:g.padding,r:g.borderRadius}).add(E));v.isActive=!0;v.attr({text:a});a=v.getBBox();B=a.width+v.strokeWidth();d.isHeader?(x=a.height,b.xAxis[0].opposite&&(l=!0,z-=x),B=Math.max(0,Math.min(d.plotX+b.plotLeft-B/2,b.chartWidth+(b.scrollablePixels?b.scrollablePixels-
b.marginRight:0)-B))):B=d.plotX+b.plotLeft-w(g.distance,16)-B;0>B&&(e=!1);a=(d.series&&d.series.yAxis&&d.series.yAxis.pos)+(d.plotY||0);a-=z;d.isHeader&&(a=l?-x:b.plotHeight+x);c.push({target:a,rank:d.isHeader?1:0,size:p.tt.getBBox().height+1,point:d,x:B,tt:v})}});this.cleanSplit();a.distribute(c,b.plotHeight+x);y(c,function(a){var c=a.point,f=c.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:e||c.isHeader?a.x:c.plotX+b.plotLeft+w(g.distance,16),y:a.pos+z,anchorX:c.isHeader?c.plotX+
b.plotLeft:c.plotX+f.xAxis.pos,anchorY:c.isHeader?b.plotTop+b.plotHeight/2:c.plotY+f.yAxis.pos})})},updatePosition:function(a){var d=this.chart,h=this.getLabel(),c=(this.options.positioner||this.getPosition).call(this,h.width,h.height,a),b=a.plotX+d.plotLeft;a=a.plotY+d.plotTop;var f;this.outside&&(f=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(h.width+f,h.height+f,!1),b+=d.pointer.chartPosition.left-c.x,a+=d.pointer.chartPosition.top-c.y);this.move(Math.round(c.x),Math.round(c.y||
0),b,a)},getDateFormat:function(a,d,e,c){var b=this.chart.time,f=b.dateFormat("%m-%d %H:%M:%S.%L",d),h,g,x={millisecond:15,second:12,minute:9,hour:6,day:3},m="millisecond";for(g in k){if(a===k.week&&+b.dateFormat("%w",d)===e&&"00:00:00.000"===f.substr(6)){g="week";break}if(k[g]>a){g=m;break}if(x[g]&&f.substr(x[g])!=="01-01 00:00:00.000".substr(x[g]))break;"week"!==g&&(m=g)}g&&(h=c[g]);return h},getXDateFormat:function(a,d,k){d=d.dateTimeLabelFormats;var c=k&&k.closestPointRange;return(c?this.getDateFormat(c,
a.x,k.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?"footer":"header";var h=a.series,c=h.tooltipOptions,b=c.xDateFormat,f=h.xAxis,k=f&&"datetime"===f.options.type&&e(a.key),g=c[d+"Format"];k&&!b&&(b=this.getXDateFormat(a,c,f));k&&b&&y(a.point&&a.point.tooltipDateKeys||["key"],function(a){g=g.replace("{point."+a+"}","{point."+a+":"+b+"}")});return l(g,{point:a,series:h},this.chart.time)},bodyFormatter:function(a){return g(a,function(a){var d=a.series.tooltipOptions;
return(d[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"])})}}})(K);(function(a){var A=a.addEvent,y=a.attr,C=a.charts,l=a.css,e=a.defined,g=a.each,r=a.extend,w=a.find,n=a.fireEvent,d=a.isNumber,k=a.isObject,h=a.offset,u=a.pick,m=a.splat,c=a.Tooltip;a.Pointer=function(a,c){this.init(a,c)};a.Pointer.prototype={init:function(a,f){this.options=f;this.chart=a;this.runChartClick=f.chart.events&&!!f.chart.events.click;this.pinchDown=
[];this.lastValidTouch={};c&&(a.tooltip=new c(a,f.tooltip),this.followTouchMove=u(f.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,d=c.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(d=u(c.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=d=/y/.test(d);this.zoomHor=a&&!b||d&&b;this.zoomVert=d&&!b||a&&b;this.hasZoom=a||d},normalize:function(a,c){var b;b=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;c||(this.chartPosition=
c=h(this.chart.container));return r(a,{chartX:Math.round(b.pageX-c.left),chartY:Math.round(b.pageY-c.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};g(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,c,d){var b;g(a,function(a){var f=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(d,f);if((f=k(a,!0))&&!(f=!k(b,!0)))var f=b.distX-a.distX,h=
b.dist-a.dist,e=(a.series.group&&a.series.group.zIndex)-(b.series.group&&b.series.group.zIndex),f=0<(0!==f&&c?f:0!==h?h:0!==e?e:b.series.index>a.series.index?-1:1);f&&(b=a)});return b},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,c){var b=a.series,f=b.xAxis,b=b.yAxis,d=u(a.clientX,a.plotX),h=a.shapeArgs;if(f&&b)return c?{chartX:f.len+f.pos-d,chartY:b.len+b.pos-a.plotY}:{chartX:d+f.pos,chartY:a.plotY+b.pos};if(h&&
h.x&&h.y)return{chartX:h.x,chartY:h.y}},getHoverData:function(b,c,d,h,e,m,l){var f,v=[],p=l&&l.isBoosting;h=!(!h||!b);l=c&&!c.stickyTracking?[c]:a.grep(d,function(a){return a.visible&&!(!e&&a.directTouch)&&u(a.options.enableMouseTracking,!0)&&a.stickyTracking});c=(f=h?b:this.findNearestKDPoint(l,e,m))&&f.series;f&&(e&&!c.noSharedTooltip?(l=a.grep(d,function(a){return a.visible&&!(!e&&a.directTouch)&&u(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),g(l,function(a){var b=w(a.points,function(a){return a.x===
f.x&&!a.isNull});k(b)&&(p&&(b=a.getPoint(b)),v.push(b))})):v.push(f));return{hoverPoint:f,hoverSeries:c,hoverPoints:v}},runPointActions:function(b,c){var f=this.chart,d=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,h=d?d.shared:!1,k=c||f.hoverPoint,e=k&&k.series||f.hoverSeries,e=this.getHoverData(k,e,f.series,"touchmove"!==b.type&&(!!c||e&&e.directTouch&&this.isDirectTouch),h,b,{isBoosting:f.isBoosting}),m,k=e.hoverPoint;m=e.hoverPoints;c=(e=e.hoverSeries)&&e.tooltipOptions.followPointer;
h=h&&e&&!e.noSharedTooltip;if(k&&(k!==f.hoverPoint||d&&d.isHidden)){g(f.hoverPoints||[],function(b){-1===a.inArray(b,m)&&b.setState()});g(m||[],function(a){a.setState("hover")});if(f.hoverSeries!==e)e.onMouseOver();f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;k.firePointEvent("mouseOver");f.hoverPoints=m;f.hoverPoint=k;d&&d.refresh(h?m:k,b)}else c&&d&&!d.isHidden&&(k=d.getAnchor([{}],b),d.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=
A(f.container.ownerDocument,"mousemove",function(b){var c=C[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));g(f.axes,function(c){var f=u(c.crosshair.snap,!0),d=f?a.find(m,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,c){var b=this.chart,f=b.hoverSeries,d=b.hoverPoint,h=b.hoverPoints,k=b.tooltip,e=k&&k.shared?h:d;a&&e&&g(m(e),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)k&&e&&(k.refresh(e),k.shared&&
h?g(h,function(a){a.setState(a.state,!0);a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a);a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a)}):d&&(d.setState(d.state,!0),g(b.axes,function(a){a.crosshair&&a.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();h&&g(h,function(a){a.setState()});if(f)f.onMouseOut();k&&k.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());g(b.axes,function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}},
scaleGroups:function(a,c){var b=this.chart,f;g(b.series,function(d){f=a||d.getPlotBox();d.xAxis&&d.xAxis.zoomEnabled&&d.group&&(d.group.attr(f),d.markerGroup&&(d.markerGroup.attr(f),d.markerGroup.clip(c?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(f))});b.clipRect.attr(c||b.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,
d=a.chartX,h=a.chartY,k=this.zoomHor,e=this.zoomVert,g=b.plotLeft,v=b.plotTop,B=b.plotWidth,m=b.plotHeight,l,n=this.selectionMarker,q=this.mouseDownX,u=this.mouseDownY,r=c.panKey&&a[c.panKey+"Key"];n&&n.touch||(d<g?d=g:d>g+B&&(d=g+B),h<v?h=v:h>v+m&&(h=v+m),this.hasDragged=Math.sqrt(Math.pow(q-d,2)+Math.pow(u-h,2)),10<this.hasDragged&&(l=b.isInsidePlot(q-g,u-v),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&l&&!r&&!n&&(this.selectionMarker=n=b.renderer.rect(g,v,k?1:B,e?1:m,0).attr({"class":"highcharts-selection-marker",
zIndex:7}).add()),n&&k&&(d-=q,n.attr({width:Math.abs(d),x:(0<d?0:d)+q})),n&&e&&(d=h-u,n.attr({height:Math.abs(d),y:(0<d?0:d)+u})),l&&!n&&c.panning&&b.pan(a,c.panning)))},drop:function(a){var b=this,c=this.chart,h=this.hasPinched;if(this.selectionMarker){var k={originalEvent:a,xAxis:[],yAxis:[]},m=this.selectionMarker,u=m.attr?m.attr("x"):m.x,z=m.attr?m.attr("y"):m.y,v=m.attr?m.attr("width"):m.width,B=m.attr?m.attr("height"):m.height,G;if(this.hasDragged||h)g(c.axes,function(c){if(c.zoomEnabled&&e(c.min)&&
(h||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,d="touchend"===a.type?c.minPixelPadding:0,g=c.toValue((f?u:z)+d),f=c.toValue((f?u+v:z+B)-d);k[c.coll].push({axis:c,min:Math.min(g,f),max:Math.max(g,f)});G=!0}}),G&&n(c,"selection",k,function(a){c.zoom(r(a,h?{animation:!1}:null))});d(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}c&&d(c.index)&&(l(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=
!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);2!==a.button&&(this.zoomOption(a),a.preventDefault&&a.preventDefault(),this.dragStart(a))},onDocumentMouseUp:function(b){C[a.hoverChartIndex]&&C[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition;a=this.normalize(a,c);!c||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var c=
C[a.hoverChartIndex];c&&(b.relatedTarget||b.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=null)},onContainerMouseMove:function(b){var c=this.chart;e(a.hoverChartIndex)&&C[a.hoverChartIndex]&&C[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=c.index);b=this.normalize(b);b.returnValue=!1;"mousedown"===c.mouseIsDown&&this.drag(b);!this.inClass(b.target,"highcharts-tracker")&&!c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop)||c.openMenu||this.runPointActions(b)},inClass:function(a,c){for(var b;a;){if(b=
y(a,"class")){if(-1!==b.indexOf(c))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,h=b.plotTop;a=this.normalize(a);b.cancelClick||
(c&&this.inClass(a.target,"highcharts-tracker")?(n(c.series,"click",r(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(r(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-h)&&n(b,"click",a)))},setDOMEvents:function(){var b=this,c=b.chart.container,d=c.ownerDocument;c.onmousedown=function(a){b.onContainerMouseDown(a)};c.onmousemove=function(a){b.onContainerMouseMove(a)};c.onclick=function(a){b.onContainerClick(a)};this.unbindContainerMouseLeave=A(c,"mouseleave",b.onContainerMouseLeave);
a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=A(d,"mouseup",b.onDocumentMouseUp));a.hasTouch&&(c.ontouchstart=function(a){b.onContainerTouchStart(a)},c.ontouchmove=function(a){b.onContainerTouchMove(a)},a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=A(d,"touchend",b.onDocumentTouchEnd)))},destroy:function(){var b=this;b.unDocMouseMove&&b.unDocMouseMove();this.unbindContainerMouseLeave();a.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&
(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,c){b[c]=null})}}})(K);(function(a){var A=a.charts,y=a.each,C=a.extend,l=a.map,e=a.noop,g=a.pick;C(a.Pointer.prototype,{pinchTranslate:function(a,e,g,d,k,h){this.zoomHor&&this.pinchTranslateDirection(!0,a,e,g,d,k,h);this.zoomVert&&this.pinchTranslateDirection(!1,a,e,g,d,k,h)},pinchTranslateDirection:function(a,e,g,d,k,h,l,m){var c=this.chart,b=a?"x":"y",f=a?"X":"Y",p="chart"+f,n=a?"width":
"height",x=c["plot"+(a?"Left":"Top")],u,E,z=m||1,v=c.inverted,B=c.bounds[a?"h":"v"],G=1===e.length,M=e[0][p],I=g[0][p],q=!G&&e[1][p],D=!G&&g[1][p],r;g=function(){!G&&20<Math.abs(M-q)&&(z=m||Math.abs(I-D)/Math.abs(M-q));E=(x-I)/z+M;u=c["plot"+(a?"Width":"Height")]/z};g();e=E;e<B.min?(e=B.min,r=!0):e+u>B.max&&(e=B.max-u,r=!0);r?(I-=.8*(I-l[b][0]),G||(D-=.8*(D-l[b][1])),g()):l[b]=[I,D];v||(h[b]=E-x,h[n]=u);h=v?1/z:z;k[n]=u;k[b]=e;d[v?a?"scaleY":"scaleX":"scale"+f]=z;d["translate"+f]=h*x+(I-h*M)},pinch:function(a){var r=
this,n=r.chart,d=r.pinchDown,k=a.touches,h=k.length,u=r.lastValidTouch,m=r.hasZoom,c=r.selectionMarker,b={},f=1===h&&(r.inClass(a.target,"highcharts-tracker")&&n.runTrackerClick||r.runChartClick),p={};1<h&&(r.initiated=!0);m&&r.initiated&&!f&&a.preventDefault();l(k,function(a){return r.normalize(a)});"touchstart"===a.type?(y(k,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),u.x=[d[0].chartX,d[1]&&d[1].chartX],u.y=[d[0].chartY,d[1]&&d[1].chartY],y(n.axes,function(a){if(a.zoomEnabled){var b=
n.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,d=a.toPixels(g(a.options.min,a.dataMin)),f=a.toPixels(g(a.options.max,a.dataMax)),h=Math.max(d,f);b.min=Math.min(a.pos,Math.min(d,f)-c);b.max=Math.max(a.pos+a.len,h+c)}}),r.res=!0):r.followTouchMove&&1===h?this.runPointActions(r.normalize(a)):d.length&&(c||(r.selectionMarker=c=C({destroy:e,touch:!0},n.plotBox)),r.pinchTranslate(d,k,b,c,p,u),r.hasPinched=m,r.scaleGroups(b,p),r.res&&(r.res=!1,this.reset(!1,0)))},touch:function(e,l){var n=this.chart,d,k;
if(n.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=n.index;1===e.touches.length?(e=this.normalize(e),(k=n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop))&&!n.openMenu?(l&&this.runPointActions(e),"touchmove"===e.type&&(l=this.pinchDown,d=l[0]?4<=Math.sqrt(Math.pow(l[0].chartX-e.chartX,2)+Math.pow(l[0].chartY-e.chartY,2)):!1),g(d,!0)&&this.pinch(e)):l&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(a){this.zoomOption(a);
this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(e){A[a.hoverChartIndex]&&A[a.hoverChartIndex].pointer.drop(e)}})})(K);(function(a){var A=a.addEvent,y=a.charts,C=a.css,l=a.doc,e=a.extend,g=a.noop,r=a.Pointer,w=a.removeEvent,n=a.win,d=a.wrap;if(!a.hasTouch&&(n.PointerEvent||n.MSPointerEvent)){var k={},h=!!n.PointerEvent,u=function(){var c=[];c.item=function(a){return this[a]};a.objectEach(k,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});
return c},m=function(c,b,d,h){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!y[a.hoverChartIndex]||(h(c),h=y[a.hoverChartIndex].pointer,h[b]({type:d,target:c.currentTarget,preventDefault:g,touches:u()}))};e(r.prototype,{onContainerPointerDown:function(a){m(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){m(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,
pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){m(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,h?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,h?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(l,h?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});d(r.prototype,"init",function(a,b,d){a.call(this,b,d);this.hasZoom&&
C(b.container,{"-ms-touch-action":"none","touch-action":"none"})});d(r.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(A)});d(r.prototype,"destroy",function(a){this.batchMSEvents(w);a.call(this)})}})(K);(function(a){var A=a.addEvent,y=a.css,C=a.discardElement,l=a.defined,e=a.each,g=a.fireEvent,r=a.isFirefox,w=a.marginNames,n=a.merge,d=a.pick,k=a.setAnimation,h=a.stableSort,u=a.win,m=a.wrap;a.Legend=function(a,b){this.init(a,b)};a.Legend.prototype=
{init:function(a,b){this.chart=a;this.setOptions(b);b.enabled&&(this.render(),A(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=A(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(a){var b=d(a.padding,8);this.options=a;this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=d(a.symbolWidth,16);this.pages=
[];this.proximate="proximate"===a.layout&&!this.chart.inverted},update:function(a,b){var c=this.chart;this.setOptions(n(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;d(b,!0)&&c.redraw();g(this,"afterUpdate")},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");g(this,"afterColorizeItem",{item:a,visible:b})},positionItems:function(){e(this.allItems,this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(a){var b=
this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,h=d[0],d=d[1],e=a.checkbox;if((a=a.legendGroup)&&a.element)a[l(a.translateY)?"animate":"attr"]({translateX:b?h:this.legendWidth-h-2*c-4,translateY:d});e&&(e.x=h,e.y=d)},destroyItem:function(a){var b=a.checkbox;e(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&C(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}e(this.getAllItems(),function(b){e(["legendItem",
"legendGroup"],a,b)});e("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(){var a=this.group&&this.group.alignAttr,b,d=this.clipHeight||this.legendHeight,h=this.titleHeight;a&&(b=a.translateY,e(this.allItems,function(c){var f=c.checkbox,e;f&&(e=b+h+f.y+(this.scrollOffset||0)+3,y(f,{left:a.translateX+c.checkboxOffset+f.x-20+"px",top:e+"px",display:e>b-6&&e<b+d-6?"":"none"}))},this))},renderTitle:function(){var a=this.options,b=this.padding,
d=a.title,h=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).add(this.group)),a=this.title.getBBox(),h=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:h}));this.titleHeight=h},setText:function(c){var b=this.options;c.legendItem.attr({text:b.labelFormat?a.format(b.labelFormat,c,this.chart.time):b.labelFormatter.call(c)})},renderItem:function(a){var b=this.chart,c=b.renderer,h=this.options,
e=this.symbolWidth,k=h.symbolPadding,g="horizontal"===h.layout?d(h.itemDistance,20):0,m=!h.rtl,l=a.legendItem,v=!a.series,B=!v&&a.series.drawLegendSymbol?a.series:a,G=B.options,G=this.createCheckboxForItem&&G&&G.showCheckbox,g=e+k+g+(G?20:0),n=h.useHTML,u=a.options.className;l||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+B.type+"-series highcharts-color-"+a.colorIndex+(u?" "+u:"")+(v?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=l=c.text("",m?
e+k:-k,this.baseline||0,n).attr({align:m?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(12,l),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,l.attr("y",this.baseline)),this.symbolHeight=h.symbolHeight||this.fontMetrics.f,B.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,l,n),G&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);l.css({width:(h.itemWidth||h.width||b.spacingBox.width)-g});this.setText(a);b=l.getBBox();
a.itemWidth=a.checkboxOffset=h.itemWidth||a.legendItemWidth||b.width+g;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||b.height||this.symbolHeight)},layoutItem:function(a){var b=this.options,c=this.padding,h="horizontal"===b.layout,e=a.itemHeight,k=b.itemMarginBottom||0,g=this.itemMarginTop,m=h?d(b.itemDistance,20):0,l=b.width,v=l||this.chart.spacingBox.width-2*c-b.x,b=b.alignColumns&&this.totalItemWidth>
v?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>v&&(this.itemX=c,this.itemY+=g+this.lastLineHeight+k,this.lastLineHeight=0);this.lastItemY=g+this.itemY+k;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=g+e+k,this.lastLineHeight=e);this.offsetWidth=l||Math.max((h?this.itemX-c-(a.checkbox?0:m):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];e(this.chart.series,function(b){var c=b&&b.options;b&&d(c.showInLegend,l(c.linkedTo)?
!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});g(this,"afterGetAllItems",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,h=this.options,k=this.getAlignment();k&&e([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,e){f.test(k)&&!l(a[e])&&(c[w[e]]=Math.max(c[w[e]],
c.legend[(e+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e]*h[e%2?"x":"y"]+d(h.margin,12)+b[e]+(0===e&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],d="left"===this.options.align;e(this.allItems,function(f){var h,e;h=d;f.xAxis&&f.points&&(f.xAxis.options.reversed&&(h=!h),h=a.find(h?f.points:f.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),e=f.legendGroup.getBBox().height,b.push({target:f.visible?
(h?h.plotY:f.xAxis.height)-.3*e:c.plotHeight,size:e,item:f}))},this);a.distribute(b,c.plotHeight);e(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,d=this.group,k,g,m,l=this.box,u=this.options,z=this.padding;this.itemX=z;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;d||(this.group=d=b.g("legend").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(d),this.scrollGroup=b.g().add(this.contentGroup));
this.renderTitle();k=this.getAllItems();h(k,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});u.reversed&&k.reverse();this.allItems=k;this.display=g=!!k.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e(k,this.renderItem,this);e(k,this.layoutItem,this);k=(u.width||this.offsetWidth)+z;m=this.lastItemY+this.lastLineHeight+this.titleHeight;m=this.handleOverflow(m);m+=z;l||(this.box=l=b.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(d),
l.isNew=!0);0<k&&0<m&&(l[l.isNew?"attr":"animate"](l.crisp.call({},{x:0,y:0,width:k,height:m},l.strokeWidth())),l.isNew=!1);l[g?"show":"hide"]();"none"===d.getStyle("display")&&(k=m=0);this.legendWidth=k;this.legendHeight=m;g&&(b=a.spacingBox,/(lth|ct|rth)/.test(this.getAlignment())&&(b=n(b,{y:b.y+a.titleOffset+a.options.title.margin})),d.align(n(u,{width:k,height:m,verticalAlign:this.proximate?"top":u.verticalAlign}),!0,b));this.proximate||this.positionItems()},handleOverflow:function(a){var b=this,
c=this.chart,h=c.renderer,k=this.options,g=k.y,m=this.padding,c=c.spacingBox.height+("top"===k.verticalAlign?-g:g)-m,g=k.maxHeight,l,n=this.clipRect,v=k.navigation,B=d(v.animation,!0),G=v.arrowSize||12,u=this.nav,I=this.pages,q,D=this.allItems,r=function(a){"number"===typeof a?n.attr({height:a}):n&&(b.clipRect=n.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+m+"px,9999px,"+(m+a)+"px,0)":"auto")};"horizontal"!==k.layout||"middle"===k.verticalAlign||k.floating||
(c/=2);g&&(c=Math.min(c,g));I.length=0;a>c&&!1!==v.enabled?(this.clipHeight=l=Math.max(c-20-this.titleHeight-m,0),this.currentPage=d(this.currentPage,1),this.fullHeight=a,e(D,function(a,b){var c=a._legendItemPos[1],d=Math.round(a.legendItem.getBBox().height),f=I.length;if(!f||c-I[f-1]>l&&(q||c)!==I[f-1])I.push(q||c),f++;a.pageIx=f-1;q&&(D[b-1].pageIx=f-1);b===D.length-1&&c+d-I[f-1]>l&&(I.push(c),a.pageIx=f);c!==q&&(q=c)}),n||(n=b.clipRect=h.clipRect(0,m,9999,0),b.contentGroup.clip(n)),r(l),u||(this.nav=
u=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,G,G).on("click",function(){b.scroll(-1,B)}).add(u),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation").add(u),this.down=h.symbol("triangle-down",0,0,G,G).on("click",function(){b.scroll(1,B)}).add(u)),b.scroll(0),a=c):u&&(r(),this.nav=u.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length;a=this.currentPage+a;var h=this.clipHeight,e=this.pager,
g=this.padding;a>d&&(a=d);0<a&&(void 0!==b&&k(b,this.chart),this.nav.attr({translateX:g,translateY:h+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),e.attr({text:a+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.scrollOffset=-c[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),
this.currentPage=a,this.positionCheckboxes())}};a.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,h=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(h?(a.symbolWidth-c)/2:0,a.baseline-c+1,h?c:a.symbolWidth,c,d(a.options.symbolRadius,c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options.marker,c,h=a.symbolWidth,e=a.symbolHeight;c=e/2;var k=this.chart.renderer,g=this.legendGroup;a=a.baseline-Math.round(.3*
a.fontMetrics.b);this.legendLine=k.path(["M",0,a,"L",h,a]).addClass("highcharts-graph").attr({}).add(g);b&&!1!==b.enabled&&h&&(c=Math.min(d(b.radius,c),c),0===this.symbol.indexOf("url")&&(b=n(b,{width:e,height:e}),c=0),this.legendSymbol=b=k.symbol(this.symbol,h/2-c,a-c,2*c,2*c,b).addClass("highcharts-point").add(g),b.isMarker=!0)}};(/Trident\/7\.0/.test(u.navigator.userAgent)||r)&&m(a.Legend.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)})})(K);
(function(a){var A=a.addEvent,y=a.animObject,C=a.attr,l=a.doc,e=a.Axis,g=a.createElement,r=a.defaultOptions,w=a.discardElement,n=a.charts,d=a.defined,k=a.each,h=a.extend,u=a.find,m=a.fireEvent,c=a.grep,b=a.isNumber,f=a.isObject,p=a.isString,H=a.Legend,x=a.marginNames,J=a.merge,E=a.objectEach,z=a.Pointer,v=a.pick,B=a.pInt,G=a.removeEvent,M=a.seriesTypes,I=a.splat,q=a.syncTimeout,D=a.win,N=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new N(a,b,c)};h(N.prototype,
{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(p(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(b,c){var d,f,h=b.series,e=b.plotOptions||{};m(this,"init",{args:arguments},function(){b.series=null;d=J(r,b);for(f in d.plotOptions)d.plotOptions[f].tooltip=e[f]&&J(e[f].tooltip)||void 0;d.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;d.series=b.series=h;this.userOptions=b;var k=d.chart,g=k.events;this.margin=[];this.spacing=
[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.time=b.time&&a.keys(b.time).length?new a.Time(b.time):a.time;this.hasCartesianSeries=k.showAxes;var t=this;t.index=n.length;n.push(t);a.chartCount++;g&&E(g,function(a,b){A(t,b,a)});t.xAxis=[];t.yAxis=[];t.pointCount=t.colorCounter=t.symbolCounter=0;m(t,"afterInit");t.firstRender()})},initSeries:function(b){var c=this.options.chart;(c=M[b.type||c.type||c.defaultSeriesType])||
a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].getName())},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&d<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){m(this,"beforeRedraw");var c=this.axes,d=this.series,f=this.pointer,e=this.legend,g=this.userOptions.legend,t=this.isDirtyLegend,v,q,B=this.hasCartesianSeries,l=this.isDirtyBox,p,G=this.renderer,x=G.isHidden(),n=
[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);x&&this.temporaryDisplay();this.layOutTitles();for(b=d.length;b--;)if(p=d[b],p.options.stacking&&(v=!0,p.isDirty)){q=!0;break}if(q)for(b=d.length;b--;)p=d[b],p.options.stacking&&(p.isDirty=!0);k(d,function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),t=!0):g&&(g.labelFormatter||g.labelFormat)&&(t=!0));a.isDirtyData&&m(a,"updatedData")});t&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);
v&&this.getStacks();B&&k(c,function(a){a.updateNames();a.setScale()});this.getMargins();B&&(k(c,function(a){a.isDirty&&(l=!0)}),k(c,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,n.push(function(){m(a,"afterSetExtremes",h(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(l||v)&&a.redraw()}));l&&this.drawChartBox();m(this,"predraw");k(d,function(a){(l||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);G.draw();m(this,"redraw");m(this,"render");x&&this.temporaryDisplay(!0);
k(n,function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var c,d=this.series,f;c=u(this.axes,b)||u(this.series,b);for(f=0;!c&&f<d.length;f++)c=u(d[f].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=I(b.xAxis||{}),b=b.yAxis=I(b.yAxis||{});m(this,"getAxes");k(c,function(a,b){a.index=b;a.isX=!0});k(b,function(a,b){a.index=b});c=c.concat(b);k(c,function(b){new e(a,b)});m(this,"afterGetAxes")},getSelectedPoints:function(){var a=
[];k(this.series,function(b){a=a.concat(c(b.data||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return c(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var d=this,f=d.options,h;h=f.title=J(f.title,a);f=f.subtitle=J(f.subtitle,b);k([["title",a,h],["subtitle",b,f]],function(a,b){var c=a[0],f=d[c],h=a[1];a=a[2];f&&h&&(d[c]=f=f.destroy());a&&!f&&(d[c]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||
4}).add(),d[c].update=function(a){d.setTitle(!b&&a,b&&a)})});d.layOutTitles(c)},layOutTitles:function(a){var b=0,c,d=this.renderer,f=this.spacingBox;k(["title","subtitle"],function(a){var c=this[a],e=this.options[a];a="title"===a?-3:e.verticalAlign?0:b+2;var k;c&&(k=d.fontMetrics(k,c).b,c.css({width:(e.width||f.width+e.widthAdjust)+"px"}).align(h({y:a+k},e),!1,"spacingBox"),e.floating||e.verticalAlign||(b=Math.ceil(b+c.getBBox(e.useHTML).height)))},this);c=this.titleOffset!==b;this.titleOffset=b;
!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&v(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var b=this.options.chart,c=b.width,b=b.height,f=this.renderTo;d(c)||(this.containerWidth=a.getStyle(f,"width"));d(b)||(this.containerHeight=a.getStyle(f,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,a.relativeLength(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(b){var c=
this.renderTo;if(b)for(;c&&c.style;)c.hcOrigStyle&&(a.css(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(l.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){l.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,l.body.appendChild(c));if("none"===a.getStyle(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},b={display:"block",overflow:"hidden"},c!==this.renderTo&&(b.height=0),a.css(c,b),
c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===l.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var c,d=this.options,f=d.chart,h,e;c=this.renderTo;var k=a.uniqueKey(),v;c||(this.renderTo=c=f.renderTo);p(c)&&(this.renderTo=c=l.getElementById(c));c||a.error(13,!0);h=B(C(c,"data-highcharts-chart"));b(h)&&n[h]&&n[h].hasRendered&&n[h].destroy();C(c,"data-highcharts-chart",this.index);c.innerHTML=
"";f.skipClone||c.offsetWidth||this.temporaryDisplay();this.getChartSize();h=this.chartWidth;e=this.chartHeight;this.container=c=g("div",{id:k},void 0,c);this._cursor=c.style.cursor;this.renderer=new (a[f.renderer]||a.Renderer)(c,h,e,null,f.forExport,d.exporting&&d.exporting.allowHTML);this.setClassName(f.className);for(v in d.defs)this.renderer.definition(d.defs[v]);this.renderer.chartIndex=this.index;m(this,"afterGetContainer")},getMargins:function(a){var b=this.spacing,c=this.margin,f=this.titleOffset;
this.resetMargins();f&&!d(c[0])&&(this.plotTop=Math.max(this.plotTop,f+this.options.title.margin+b[0]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);m(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&k(a.axes,function(a){a.visible&&a.getOffset()});k(x,function(f,h){d(c[h])||(a[f]+=b[h])});a.setChartSize()},reflow:function(b){var c=this,f=c.options.chart,h=c.renderTo,e=d(f.width)&&d(f.height),
k=f.width||a.getStyle(h,"width"),f=f.height||a.getStyle(h,"height"),h=b?b.target:D;if(!e&&!c.isPrinting&&k&&f&&(h===D||h===l)){if(k!==c.containerWidth||f!==c.containerHeight)a.clearTimeout(c.reflowTimeout),c.reflowTimeout=q(function(){c.container&&c.setSize(void 0,void 0,!1)},b?100:0);c.containerWidth=k;c.containerHeight=f}},setReflow:function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=A(D,"resize",function(a){b.reflow(a)}),
A(this,"destroy",this.unbindReflow))},setSize:function(b,c,d){var f=this,h=f.renderer;f.isResizing+=1;a.setAnimation(d,f);f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;void 0!==b&&(f.options.chart.width=b);void 0!==c&&(f.options.chart.height=c);f.getChartSize();f.setChartSize(!0);h.setSize(f.chartWidth,f.chartHeight,d);k(f.axes,function(a){a.isDirty=!0;a.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(d);f.oldChartHeight=null;m(f,"resize");q(function(){f&&
m(f,"endResize",null,function(){--f.isResizing})},y(void 0).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,f=this.chartHeight,h=this.options.chart,e=this.spacing,g=this.clipOffset,v,q,t,B;this.plotLeft=v=Math.round(this.plotLeft);this.plotTop=q=Math.round(this.plotTop);this.plotWidth=t=Math.max(0,Math.round(d-v-this.marginRight));this.plotHeight=B=Math.max(0,Math.round(f-q-this.marginBottom));this.plotSizeX=b?B:t;this.plotSizeY=b?t:B;this.plotBorderWidth=
h.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:e[3],y:e[0],width:d-e[3]-e[1],height:f-e[0]-e[2]};this.plotBox=c.plotBox={x:v,y:q,width:t,height:B};d=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(d,g[3])/2);c=Math.ceil(Math.max(d,g[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(d,g[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(d,g[2])/2-c))};a||k(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()});m(this,"afterSetChartSize",{skipAxes:a})},
resetMargins:function(){var a=this,b=a.options.chart;k(["margin","spacing"],function(c){var d=b[c],h=f(d)?d:[d,d,d,d];k(["Top","Right","Bottom","Left"],function(d,f){a[c][f]=v(b[c+d],h[f])})});k(x,function(b,c){a[b]=v(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,f=this.chartBackground,h=this.plotBackground,e=this.plotBorder,k,g,v=this.plotLeft,q=this.plotTop,B=this.plotWidth,
l=this.plotHeight,p=this.plotBox,G=this.clipRect,x=this.clipBox,n="animate";f||(this.chartBackground=f=b.rect().addClass("highcharts-background").add(),n="attr");k=g=f.strokeWidth();f[n]({x:g/2,y:g/2,width:c-g-k%2,height:d-g-k%2,r:a.borderRadius});n="animate";h||(n="attr",this.plotBackground=h=b.rect().addClass("highcharts-plot-background").add());h[n](p);G?G.animate({width:x.width,height:x.height}):this.clipRect=b.clipRect(x);n="animate";e||(n="attr",this.plotBorder=e=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());
e[n](e.crisp({x:v,y:q,width:B,height:l},-e.strokeWidth()));this.isDirtyBox=!1;m(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,f,h;k(["inverted","angular","polar"],function(e){c=M[b.type||b.defaultSeriesType];h=b[e]||c&&c.prototype[e];for(f=d&&d.length;!h&&f--;)(c=M[d[f].type])&&c.prototype[e]&&(h=!0);a[e]=h})},linkSeries:function(){var a=this,b=a.series;k(b,function(a){a.linkedSeries.length=0});k(b,function(b){var c=b.options.linkedTo;p(c)&&
(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=v(b.options.visible,c.options.visible,b.visible))});m(this,"afterLinkSeries")},renderSeries:function(){k(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&k(b.items,function(c){var d=h(b.style,c.style),f=B(d.left)+a.plotLeft,e=B(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,f,e).attr({zIndex:2}).css(d).add()})},
render:function(){var a=this.axes,b=this.renderer,c=this.options,d,f,h;this.setTitle();this.legend=new H(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;d=this.plotHeight=Math.max(this.plotHeight-21,0);k(a,function(a){a.setScale()});this.getAxisMargins();f=1.1<c/this.plotWidth;h=1.05<d/this.plotHeight;if(f||h)k(a,function(a){(a.horiz&&f||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&k(a,
function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0},addCredits:function(a){var b=this;a=J(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(D.location.href=a.href)}).attr({align:a.position.align,
zIndex:8}).add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},destroy:function(){var b=this,c=b.axes,d=b.series,f=b.container,h,e=f&&f.parentNode;m(b,"destroy");b.renderer.forExport?a.erase(n,b):n[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");G(b);for(h=c.length;h--;)c[h]=c[h].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(h=d.length;h--;)d[h]=d[h].destroy();k("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),
function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});f&&(f.innerHTML="",G(f),e&&w(f));E(b,function(a,c){delete b[c]})},firstRender:function(){var a=this,b=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();k(b.series||[],function(b){a.initSeries(b)});a.linkSeries();m(a,"beforeRender");z&&(a.pointer=new z(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){k([this.callback].concat(this.callbacks),
function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);m(this,"load");m(this,"render");d(this.index)&&this.setReflow(this.options.chart.reflow);this.onload=null}})})(K);(function(a){var A,y=a.each,C=a.extend,l=a.erase,e=a.fireEvent,g=a.format,r=a.isArray,w=a.isNumber,n=a.pick,d=a.removeEvent;a.Point=A=function(){};a.Point.prototype={init:function(a,d,g){var h=a.chart.options.chart.colorCount;this.series=a;this.applyOptions(d,g);a.options.colorByPoint?(d=a.colorCounter,a.colorCounter++,a.colorCounter===
h&&(a.colorCounter=0)):d=a.colorIndex;this.colorIndex=n(this.colorIndex,d);a.chart.pointCount++;e(this,"afterInit");return this},applyOptions:function(a,d){var h=this.series,e=h.options.pointValKey||h.pointValKey;a=A.prototype.optionsToObject.call(this,a);C(this,a);this.options=this.options?C(this.options,a):a;a.group&&delete this.group;e&&(this.y=this[e]);this.isNull=n(this.isValid&&!this.isValid(),null===this.x||!w(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===d&&h.xAxis&&
h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this));void 0===this.x&&h&&(this.x=void 0===d?h.autoIncrement(this):d);return this},setNestedProperty:function(d,h,e){e=e.split(".");a.reduce(e,function(d,c,b,f){d[c]=f.length-1===b?h:a.isObject(d[c],!0)?d[c]:{};return d[c]},d);return d},optionsToObject:function(d){var h={},e=this.series,k=e.options.keys,c=k||e.pointArrayMap||["y"],b=c.length,f=0,g=0;if(w(d)||null===d)h[c[0]]=d;else if(r(d))for(!k&&d.length>b&&(e=typeof d[0],"string"===e?h.name=d[0]:"number"===
e&&(h.x=d[0]),f++);g<b;)k&&void 0===d[f]||(0<c[g].indexOf(".")?a.Point.prototype.setNestedProperty(h,d[f],c[g]):h[c[g]]=d[f]),f++,g++;else"object"===typeof d&&(h=d,d.dataLabels&&(e._hasPointLabels=!0),d.marker&&(e._hasPointMarkers=!0));return h},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 a=this.series,d=a.zones,a=a.zoneAxis||"y",e=0,g;for(g=d[e];this[a]>=g.value;)g=d[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=g&&g.color&&!this.options.color?g.color:this.nonZonedColor;return g},destroy:function(){var a=this.series.chart,h=a.hoverPoints,e;a.pointCount--;h&&(this.setState(),l(h,this),h.length||(a.hoverPoints=null));
if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)d(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],d,e=6;e--;)d=a[e],this[d]&&(this[d]=this[d].destroy())},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(a){var d=this.series,e=d.tooltipOptions,k=n(e.valueDecimals,""),c=e.valuePrefix||"",b=e.valueSuffix||"";y(d.pointArrayMap||["y"],function(d){d="{point."+d;if(c||b)a=a.replace(RegExp(d+"}","g"),c+d+"}"+b);a=a.replace(RegExp(d+"}","g"),d+":,."+k+"f}")});return g(a,{point:this,series:this.series},d.chart.time)},firePointEvent:function(a,d,g){var h=this,c=this.series.options;(c.point.events[a]||h.options&&h.options.events&&h.options.events[a])&&
this.importEvents();"click"===a&&c.allowPointSelect&&(g=function(a){h.select&&h.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});e(this,a,d,g)},visible:!0}})(K);(function(a){var A=a.addEvent,y=a.animObject,C=a.arrayMax,l=a.arrayMin,e=a.correctFloat,g=a.defaultOptions,r=a.defined,w=a.each,n=a.erase,d=a.extend,k=a.fireEvent,h=a.grep,u=a.isArray,m=a.isNumber,c=a.isString,b=a.merge,f=a.objectEach,p=a.pick,H=a.removeEvent,x=a.splat,J=a.SVGElement,E=a.syncTimeout,z=a.win;a.Series=a.seriesType("line",null,
{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10}},
select:{}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(a,b){var c=this,h,e=a.series,g;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();d(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});h=b.events;f(h,function(a,b){A(c,b,a)});if(h&&h.click||b.point&&b.point.events&&
b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();w(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(g=e[e.length-1]);c._i=p(g&&g._i,-1)+1;a.orderSeries(this.insert(e));k(this,"afterInit")},insert:function(a){var b=this.options.index,c;if(m(b)){for(c=a.length;c--;)if(b>=p(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return p(c,a.length-
1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;w(b.axisTypes||[],function(h){w(d[h],function(a){f=a.options;if(c[h]===f.index||void 0!==c[h]&&c[h]===f.id||void 0===c[h]&&0===f.index)b.insert(a.series),b[h]=a,a.isDirty=!0});b[h]||b.optionalAxis===h||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments,f=m(b)?function(d){var f="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=f}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))};
w(c.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,f=this.chart.time,b=p(b,a.pointStart,0);this.pointInterval=c=p(this.pointInterval,a.pointInterval,1);d&&(a=new f.Date(b),"day"===d?f.set("Date",a,f.get("Date",a)+c):"month"===d?f.set("Month",a,f.get("Month",a)+c):"year"===d&&f.set("FullYear",a,f.get("FullYear",a)+c),c=a.getTime()-b);this.xIncrement=b+c;return b},setOptions:function(a){var c=this.chart,d=c.options,f=d.plotOptions,h=(c.userOptions||
{}).plotOptions||{},e=f[this.type];this.userOptions=a;c=b(e,f.series,a);this.tooltipOptions=b(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,a.tooltip);this.stickyTracking=p(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:c.stickyTracking);null===e.marker&&delete c.marker;this.zoneAxis=
c.zoneAxis;a=this.zones=(c.zones||[]).slice();!c.negativeColor&&!c.negativeFillColor||c.zones||a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,className:"highcharts-negative"});a.length&&r(a[a.length-1].value)&&a.push({});k(this,"afterSetOptions",{options:c});return c},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(a,b,c){var d,f=this.chart,h=this.userOptions,e=a+"Index",g=a+"Counter",k=c?c.length:p(f.options.chart[a+"Count"],f[a+"Count"]);b||(d=p(h[e],
h["_"+e]),r(d)||(f.series.length||(f[g]=0),h["_"+e]=d=f[g]%k,f[g]+=1),c&&(b=c[d]));void 0!==d&&(this[e]=d);this[a]=b},getColor:function(){this.getCyclic("color")},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],h,e,g,k=this.requireSorting;w(b,function(b){var e;e=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},
b).x;m(e)&&(e=a.inArray(e,this.xData,g),-1===e||d[e].touched?f.push(b):b!==c.data[e]?(d[e].update(b,!1,null,!1),d[e].touched=!0,k&&(g=e+1)):d[e]&&(d[e].touched=!0),h=!0)},this);if(h)for(b=d.length;b--;)e=d[b],e.touched||e.remove(!1),e.touched=!1;else if(b.length===d.length)w(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;w(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,d,f,h){var e=this,g=e.points,k=g&&g.length||0,v,t=e.options,l=e.chart,
B=null,x=e.xAxis,n=t.turboThreshold,z=this.xData,G=this.yData,E=(v=e.pointArrayMap)&&v.length,r;b=b||[];v=b.length;d=p(d,!0);!1!==h&&v&&k&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(r=this.updateData(b));if(!r){e.xIncrement=null;e.colorCounter=0;w(this.parallelArrays,function(a){e[a+"Data"].length=0});if(n&&v>n){for(f=0;null===B&&f<v;)B=b[f],f++;if(m(B))for(f=0;f<v;f++)z[f]=this.autoIncrement(),G[f]=b[f];else if(u(B))if(E)for(f=0;f<v;f++)B=b[f],z[f]=B[0],G[f]=B.slice(1,E+1);else for(f=
0;f<v;f++)B=b[f],z[f]=B[0],G[f]=B[1];else a.error(12)}else for(f=0;f<v;f++)void 0!==b[f]&&(B={series:e},e.pointClass.prototype.applyOptions.apply(B,[b[f]]),e.updateParallelArrays(B,f));G&&c(G[0])&&a.error(14,!0);e.data=[];e.options.data=e.userOptions.data=b;for(f=k;f--;)g[f]&&g[f].destroy&&g[f].destroy();x&&(x.minRange=x.userMinRange);e.isDirty=l.isDirtyBox=!0;e.isDirtyData=!!g;f=!1}"point"===t.legendType&&(this.processData(),this.generatePoints());d&&l.redraw(f)},processData:function(b){var c=this.xData,
d=this.yData,f=c.length,e;e=0;var h,g,k=this.xAxis,v,m=this.options;v=m.cropThreshold;var l=this.getExtremesFromAll||m.getExtremesFromAll,p=this.isCartesian,m=k&&k.val2lin,x=k&&k.isLog,n=this.requireSorting,z,u;if(p&&!this.isDirty&&!k.isDirty&&!this.yAxis.isDirty&&!b)return!1;k&&(b=k.getExtremes(),z=b.min,u=b.max);p&&this.sorted&&!l&&(!v||f>v||this.forceCrop)&&(c[f-1]<z||c[0]>u?(c=[],d=[]):this.yData&&(c[0]<z||c[f-1]>u)&&(e=this.cropData(this.xData,this.yData,z,u),c=e.xData,d=e.yData,e=e.start,h=
!0));for(v=c.length||1;--v;)f=x?m(c[v])-m(c[v-1]):c[v]-c[v-1],0<f&&(void 0===g||f<g)?g=f:0>f&&n&&(a.error(15),n=!1);this.cropped=h;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=g},cropData:function(a,b,c,d,f){var e=a.length,h=0,g=e,k;f=p(f,this.cropShoulder,1);for(k=0;k<e;k++)if(a[k]>=c){h=Math.max(0,k-f);break}for(c=k;c<e;c++)if(a[c]>d){g=c+f;break}return{xData:a.slice(h,g),yData:b.slice(h,g),start:h,end:g}},generatePoints:function(){var a=this.options,b=a.data,
c=this.data,f,e=this.processedXData,h=this.processedYData,g=this.pointClass,k=e.length,m=this.cropStart||0,l,p=this.hasGroupedData,a=a.keys,n,z=[],u;c||p||(c=[],c.length=b.length,c=this.data=c);a&&p&&(this.options.keys=!1);for(u=0;u<k;u++)l=m+u,p?(n=(new g).init(this,[e[u]].concat(x(h[u]))),n.dataGroup=this.groupMap[u],n.dataGroup.options&&(n.options=n.dataGroup.options,d(n,n.dataGroup.options))):(n=c[l])||void 0===b[l]||(c[l]=n=(new g).init(this,b[l],e[u])),n&&(n.index=l,z[u]=n);this.options.keys=
a;if(c&&(k!==(f=c.length)||p))for(u=0;u<f;u++)u!==m||p||(u+=k),c[u]&&(c[u].destroyElements(),c[u].plotX=void 0);this.data=c;this.points=z},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,d,f=[],e=0;d=this.xAxis.getExtremes();var h=d.min,g=d.max,k,v,p=this.requireSorting?1:0,x,n;a=a||this.stackedYData||this.processedYData||[];d=a.length;for(n=0;n<d;n++)if(v=c[n],x=a[n],k=(m(x,!0)||u(x))&&(!b.positiveValuesOnly||x.length||0<x),v=this.getExtremesFromAll||this.options.getExtremesFromAll||
this.cropped||(c[n+p]||v)>=h&&(c[n-p]||v)<=g,k&&v)if(k=x.length)for(;k--;)"number"===typeof x[k]&&(f[e++]=x[k]);else f[e++]=x;this.dataMin=l(f);this.dataMax=C(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,f=this.yAxis,h=this.points,g=h.length,l=!!this.modifyValue,t=a.pointPlacement,x="between"===t||m(t),n=a.threshold,z=a.startFromThreshold?n:0,u,E,w,J,H=Number.MAX_VALUE;"between"===t&&(t=.5);m(t)&&
(t*=p(a.pointRange||c.pointRange));for(a=0;a<g;a++){var y=h[a],A=y.x,C=y.y;E=y.low;var K=b&&f.stacks[(this.negStacks&&C<(z?0:n)?"-":"")+this.stackKey],U;f.positiveValuesOnly&&null!==C&&0>=C&&(y.isNull=!0);y.plotX=u=e(Math.min(Math.max(-1E5,c.translate(A,0,0,0,1,t,"flags"===this.type)),1E5));b&&this.visible&&!y.isNull&&K&&K[A]&&(J=this.getStackIndicator(J,A,this.index),U=K[A],C=U.points[J.key],E=C[0],C=C[1],E===z&&J.key===K[A].base&&(E=p(m(n)&&n,f.min)),f.positiveValuesOnly&&0>=E&&(E=null),y.total=
y.stackTotal=U.total,y.percentage=U.total&&y.y/U.total*100,y.stackY=C,U.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=r(E)?Math.min(Math.max(-1E5,f.translate(E,0,1,0,1)),1E5):null;l&&(C=this.modifyValue(C,y));y.plotY=E="number"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,f.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==E&&0<=E&&E<=f.len&&0<=u&&u<=c.len;y.clientX=x?e(c.translate(A,0,0,0,1,t)):u;y.negative=y.y<(n||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==
w&&(H=Math.min(H,Math.abs(u-w))),w=u);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=H;k(this,"afterTranslate")},getValidPoints:function(a,b){var c=this.chart;return h(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,f=b.inverted,e=this.clipBox,h=e||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,h.height,c.xAxis,c.yAxis].join(),k=b[g],m=b[g+
"m"];k||(a&&(h.width=0,f&&(h.x=b.plotSizeX),b[g+"m"]=m=d.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[g]=k=d.clipRect(h),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||e?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=g);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&g&&b[g]&&(e||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+
"m"].destroy())))},animate:function(a){var b=this.chart,c=y(this.options.animation),d;a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX,x:0},c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();k(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,d,f,e,h=this.options.marker,g,k,m,l=this[this.specialGroup]||this.markerGroup,x,n=p(h.enabled,this.xAxis.isRadial?
!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;c<a.length;c++)d=a[c],e=d.graphic,g=d.marker||{},k=!!d.marker,f=n&&void 0===g.enabled||g.enabled,m=d.isInside,f&&!d.isNull?(f=p(g.symbol,this.symbol),x=this.markerAttribs(d,d.selected&&"select"),e?e[m?"show":"hide"](!0).animate(x):m&&(0<x.width||d.hasImage)&&(d.graphic=e=b.renderer.symbol(f,x.x,x.y,x.width,x.height,k?g:h).add(l)),e&&e.addClass(d.getClassName(),!0)):e&&(d.graphic=e.destroy())},
markerAttribs:function(a,b){var c=this.options.marker,d=a.marker||{},f=d.symbol||c.symbol,e=p(d.radius,c.radius);b&&(c=c.states[b],b=d.states&&d.states[b],e=p(b&&b.radius,c&&c.radius,e+(c&&c.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(e=0);a={x:Math.floor(a.plotX)-e,y:a.plotY-e};e&&(a.width=a.height=2*e);return a},destroy:function(){var b=this,c=b.chart,d=/AppleWebKit\/533/.test(z.navigator.userAgent),e,h,g=b.data||[],m,l;k(b,"destroy");H(b);w(b.axisTypes||[],function(a){(l=b[a])&&
l.series&&(n(l.series,b),l.isDirty=l.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(h=g.length;h--;)(m=g[h])&&m.destroy&&m.destroy();b.points=null;a.clearTimeout(b.animationTimeout);f(b,function(a,b){a instanceof J&&!a.survive&&(e=d&&"group"===b?"hide":"destroy",a[e]())});c.hoverSeries===b&&(c.hoverSeries=null);n(c.series,b);c.orderSeries();f(b,function(a,c){delete b[c]})},getGraphPath:function(a,b,c){var d=this,f=d.options,e=f.step,h,g=[],k=[],m;a=a||d.points;(h=a.reversed)&&a.reverse();
(e={right:1,center:2}[e]||e&&3)&&h&&(e=4-e);!f.connectNulls||b||c||(a=this.getValidPoints(a));w(a,function(h,q){var l=h.plotX,p=h.plotY,v=a[q-1];(h.leftCliff||v&&v.rightCliff)&&!c&&(m=!0);h.isNull&&!r(b)&&0<q?m=!f.connectNulls:h.isNull&&!b?m=!0:(0===q||m?q=["M",h.plotX,h.plotY]:d.getPointSpline?q=d.getPointSpline(a,h,q):e?(q=1===e?["L",v.plotX,p]:2===e?["L",(v.plotX+l)/2,v.plotY,"L",(v.plotX+l)/2,p]:["L",l,v.plotY],q.push("L",l,p)):q=["L",l,p],k.push(h.x),e&&(k.push(h.x),2===e&&k.push(h.x)),g.push.apply(g,
q),m=!1)});g.xMap=k;return d.graphPath=g},drawGraph:function(){var a=this,b=(this.gappedPath||this.getGraphPath).call(this),c=[["graph","highcharts-graph"]],c=a.getZonesGraphs(c);w(c,function(c,d){d=c[0];var f=a[d];f?(f.endX=a.preventGraphAnimation?null:b.xMap,f.animate({d:b})):b.length&&(a[d]=a.chart.renderer.path(b).addClass(c[1]).attr({zIndex:1}).add(a.group));f&&(f.startX=b.xMap,f.isArea=b.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push(["zone-graph-"+c,"highcharts-graph highcharts-zone-graph-"+
c+" "+(b.className||"")])},this);return a},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,f,e,h=this.clips||[],g,k=this.graph,m=this.area,l=Math.max(b.chartWidth,b.chartHeight),x=this[(this.zoneAxis||"y")+"Axis"],n,z,u=b.inverted,E,r,J,H,y=!1;d.length&&(k||m)&&x&&void 0!==x.min&&(z=x.reversed,E=x.horiz,k&&!this.showLine&&k.hide(),m&&m.hide(),n=x.getExtremes(),w(d,function(d,q){f=z?E?b.plotWidth:0:E?0:x.toPixels(n.min);f=Math.min(Math.max(p(e,f),0),l);e=Math.min(Math.max(Math.round(x.toPixels(p(d.value,
n.max),!0)),0),l);y&&(f=e=x.toPixels(n.max));r=Math.abs(f-e);J=Math.min(f,e);H=Math.max(f,e);x.isXAxis?(g={x:u?H:J,y:0,width:r,height:l},E||(g.x=b.plotHeight-g.x)):(g={x:0,y:u?H:J,width:l,height:r},E&&(g.y=b.plotWidth-g.y));h[q]?h[q].animate(g):(h[q]=c.clipRect(g),k&&a["zone-graph-"+q].clip(h[q]),m&&a["zone-area-"+q].clip(h[q]));y=d.value>n.max;a.resetZones&&0===e&&(e=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w(["group","markerGroup"],function(b){c[b]&&(d.renderer.isVML&&c[b].attr({width:c.yAxis.len,
height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,d=c.chart,f;c.xAxis&&(f=A(d,"resize",b),A(c,"destroy",f),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,d,f){var e=this[a],h=!e;h&&(this[a]=e=this.chart.renderer.g().attr({zIndex:d||.1}).add(f));e.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e.hasClass("highcharts-tracker")?
" highcharts-tracker":""),!0);e.attr({visibility:c})[h?"attr":"animate"](this.getPlotBox());return e},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,f=!!a.animate&&b.renderer.isSVG&&y(d.animation).duration,e=a.visible?"inherit":"hidden",h=d.zIndex,g=a.hasRendered,m=b.seriesGroup,l=b.inverted;c=a.plotGroup("group",
"series",e,h,m);a.markerGroup=a.plotGroup("markerGroup","markers",e,h,m);f&&a.animate(!0);c.inverted=a.isCartesian?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);!1===d.clip||a.sharedClipKey||g||c.clip(b.clipRect);f&&a.animate();g||(a.animationTimeout=E(function(){a.afterAnimate()},f));a.isDirty=!1;a.hasRendered=!0;k(a,"afterRender")},redraw:function(){var a=
this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,f=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:p(d&&d.left,a.plotLeft),translateY:p(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:f?d.len-a.chartX+d.pos:a.chartY-
d.pos},b)},buildKDTree:function(){function a(c,d,f){var e,h;if(h=c&&c.length)return e=b.kdAxisArray[d%f],c.sort(function(a,b){return a[e]-b[e]}),h=Math.floor(h/2),{point:c[h],left:a(c.slice(0,h),d+1,f),right:a(c.slice(h+1),d+1,f)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;E(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,g,k){var m=b.point,
l=d.kdAxisArray[g%k],q,p,x=m;p=r(a[f])&&r(m[f])?Math.pow(a[f]-m[f],2):null;q=r(a[e])&&r(m[e])?Math.pow(a[e]-m[e],2):null;q=(p||0)+(q||0);m.dist=r(q)?Math.sqrt(q):Number.MAX_VALUE;m.distX=r(p)?Math.sqrt(p):Number.MAX_VALUE;l=a[l]-m[l];q=0>l?"left":"right";p=0>l?"right":"left";b[q]&&(q=c(a,b[q],g+1,k),x=q[h]<x[h]?q:m);b[p]&&Math.sqrt(l*l)<x[h]&&(a=c(a,b[p],g+1,k),x=a[h]<x[h]?a:x);return x}var d=this,f=this.kdAxisArray[0],e=this.kdAxisArray[1],h=b?"distX":"dist";b=-1<d.options.findNearestPointBy.indexOf("y")?
2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(K);(function(a){var A=a.addEvent,y=a.Axis,C=a.createElement,l=a.css,e=a.defined,g=a.each,r=a.erase,w=a.extend,n=a.fireEvent,d=a.inArray,k=a.isNumber,h=a.isObject,u=a.isArray,m=a.merge,c=a.objectEach,b=a.pick,f=a.Point,p=a.Series,H=a.seriesTypes,x=a.setAnimation,J=a.splat;w(a.Chart.prototype,{addSeries:function(a,c,d){var f,e=this;a&&(c=b(c,!0),n(e,"addSeries",{options:a},function(){f=e.initSeries(a);
e.isDirtyLegend=!0;e.linkSeries();n(e,"afterAddSeries");c&&e.redraw(d)}));return f},addAxis:function(a,c,d,f){var e=c?"xAxis":"yAxis",h=this.options;a=m(a,{index:this[e].length,isX:c});c=new y(this,a);h[e]=J(h[e]||{});h[e].push(a);b(d,!0)&&this.redraw(f);return c},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,f=function(){d&&l(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=C("div",{className:"highcharts-loading highcharts-loading-hidden"},
null,b.container),b.loadingSpan=C("span",{className:"highcharts-loading-inner"},null,d),A(b,"redraw",f));d.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown=!0;f()},hideLoading:function(){var a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden");this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),update:function(a,f,h,l){var p=this,x={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},v=a.chart,q,u,z=[];n(p,"update",{options:a});if(v){m(!0,p.options.chart,v);"className"in v&&p.setClassName(v.className);"reflow"in v&&p.setReflow(v.reflow);if("inverted"in v||"polar"in v||"type"in v)p.propFromSeries(),q=!0;"alignTicks"in v&&(q=!0);c(v,function(a,b){-1!==
d("chart."+b,p.propsRequireUpdateSeries)&&(u=!0);-1!==d(b,p.propsRequireDirtyBox)&&(p.isDirtyBox=!0)})}a.plotOptions&&m(!0,this.options.plotOptions,a.plotOptions);c(a,function(a,b){if(p[b]&&"function"===typeof p[b].update)p[b].update(a,!1);else if("function"===typeof p[x[b]])p[x[b]](a);"chart"!==b&&-1!==d(b,p.propsRequireUpdateSeries)&&(u=!0)});g("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){var c;a[b]&&("series"===b&&(c=[],g(p[b],function(a,b){a.options.isInternal||c.push(b)})),
g(J(a[b]),function(a,d){(d=e(a.id)&&p.get(a.id)||p[b][c?c[d]:d])&&d.coll===b&&(d.update(a,!1),h&&(d.touched=!0));if(!d&&h)if("series"===b)p.addSeries(a,!1).touched=!0;else if("xAxis"===b||"yAxis"===b)p.addAxis(a,"xAxis"===b,!1).touched=!0}),h&&g(p[b],function(a){a.touched||a.options.isInternal?delete a.touched:z.push(a)}))});g(z,function(a){a.remove(!1)});q&&g(p.axes,function(a){a.update({},!1)});u&&g(p.series,function(a){a.update({},!1)});a.loading&&m(!0,p.options.loading,a.loading);q=v&&v.width;
v=v&&v.height;k(q)&&q!==p.chartWidth||k(v)&&v!==p.chartHeight?p.setSize(q,v,l):b(f,!0)&&p.redraw(l);n(p,"afterUpdate",{options:a})},setSubtitle:function(a){this.setTitle(void 0,a)}});w(f.prototype,{update:function(a,c,d,f){function e(){g.applyOptions(a);null===g.y&&m&&(g.graphic=m.destroy());h(a,!0)&&(m&&m.element&&a&&a.marker&&void 0!==a.marker.symbol&&(g.graphic=m.destroy()),a&&a.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()),g.connector&&(g.connector=g.connector.destroy()));l=g.index;
k.updateParallelArrays(g,l);x.data[l]=h(x.data[l],!0)||h(a,!0)?g.options:b(a,x.data[l]);k.isDirty=k.isDirtyData=!0;!k.fixedBox&&k.hasCartesianSeries&&(p.isDirtyBox=!0);"point"===x.legendType&&(p.isDirtyLegend=!0);c&&p.redraw(d)}var g=this,k=g.series,m=g.graphic,l,p=k.chart,x=k.options;c=b(c,!0);!1===f?e():g.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(d(this,this.series.data),a,b)}});w(p.prototype,{addPoint:function(a,c,d,f){var e=this.options,h=this.data,g=
this.chart,k=this.xAxis,k=k&&k.hasNames&&k.names,m=e.data,l,p,x=this.xData,n,v;c=b(c,!0);l={series:this};this.pointClass.prototype.applyOptions.apply(l,[a]);v=l.x;n=x.length;if(this.requireSorting&&v<x[n-1])for(p=!0;n&&x[n-1]>v;)n--;this.updateParallelArrays(l,"splice",n,0,0);this.updateParallelArrays(l,n);k&&l.name&&(k[v]=l.name);m.splice(n,0,a);p&&(this.data.splice(n,0,null),this.processData());"point"===e.legendType&&this.generatePoints();d&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(l,
"shift"),m.shift()));this.isDirtyData=this.isDirty=!0;c&&g.redraw(f)},removePoint:function(a,c,d){var f=this,e=f.data,h=e[a],g=f.points,k=f.chart,m=function(){g&&g.length===e.length&&g.splice(a,1);e.splice(a,1);f.options.data.splice(a,1);f.updateParallelArrays(h||{series:f},"splice",a,1);h&&h.destroy();f.isDirty=!0;f.isDirtyData=!0;c&&k.redraw()};x(d,k);c=b(c,!0);h?h.firePointEvent("remove",null,m):m()},remove:function(a,c,d){function f(){e.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();
b(a,!0)&&h.redraw(c)}var e=this,h=e.chart;!1!==d?n(e,"remove",null,f):f()},update:function(c,f){var e=this,h=e.chart,k=e.userOptions,l=e.oldType||e.type,p=c.type||k.type||h.options.chart.type,q=H[l].prototype,x,u=["group","markerGroup","dataLabelsGroup"],t=["navigatorSeries","baseSeries"],z=e.finishedAnimating&&{animation:!1},r=["data","name","turboThreshold"],E=a.keys(c),J=0<E.length;g(E,function(a){-1===d(a,r)&&(J=!1)});if(J)c.data&&this.setData(c.data,!1),c.name&&this.setName(c.name,!1);else{t=
u.concat(t);g(t,function(a){t[a]=e[a];delete e[a]});c=m(k,z,{index:e.index,pointStart:b(k.pointStart,e.xData[0])},{data:e.options.data},c);e.remove(!1,null,!1);for(x in q)e[x]=void 0;H[p||l]?w(e,H[p||l].prototype):a.error(17,!0);g(t,function(a){e[a]=t[a]});e.init(h,c);c.zIndex!==k.zIndex&&g(u,function(a){e[a]&&e[a].attr({zIndex:c.zIndex})});e.oldType=l;h.linkSeries()}n(this,"afterUpdate");b(f,!0)&&h.redraw(J?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=
!0}});w(y.prototype,{update:function(a,d){var f=this.chart,e=a&&a.events||{};a=m(this.userOptions,a);f.options[this.coll].indexOf&&(f.options[this.coll][f.options[this.coll].indexOf(this.userOptions)]=a);c(f.options[this.coll].events,function(a,b){"undefined"===typeof e[b]&&(e[b]=void 0)});this.destroy(!0);this.init(f,w(a,{events:e}));f.isDirtyBox=!0;b(d,!0)&&f.redraw()},remove:function(a){for(var c=this.chart,d=this.coll,f=this.series,e=f.length;e--;)f[e]&&f[e].remove(!1);r(c.axes,this);r(c[d],this);
u(c.options[d])?c.options[d].splice(this.options.index,1):delete c.options[d];g(c[d],function(a,b){a.options.index=a.userOptions.index=b});this.destroy();c.isDirtyBox=!0;b(a,!0)&&c.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})})(K);(function(a){var A=a.animObject,y=a.each,C=a.extend,l=a.isNumber,e=a.merge,g=a.pick,r=a.Series,w=a.seriesType,n=a.svg;w("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,
minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){r.prototype.init.apply(this,arguments);var a=this,e=a.chart;e.hasRendered&&y(e.series,function(d){d.type===a.type&&(d.isDirty=!0)})},getColumnMetrics:function(){var a=this,e=a.options,
h=a.xAxis,l=a.yAxis,m=h.options.reversedStacks,m=h.reversed&&!m||!h.reversed&&m,c,b={},f=0;!1===e.grouping?f=1:y(a.chart.series,function(d){var e=d.options,h=d.yAxis,g;d.type!==a.type||!d.visible&&a.chart.options.chart.ignoreHiddenSeries||l.len!==h.len||l.pos!==h.pos||(e.stacking?(c=d.stackKey,void 0===b[c]&&(b[c]=f++),g=b[c]):!1!==e.grouping&&(g=f++),d.columnIndex=g)});var p=Math.min(Math.abs(h.transA)*(h.ordinalSlope||e.pointRange||h.closestPointRange||h.tickInterval||1),h.len),n=p*e.groupPadding,
x=(p-2*n)/(f||1),e=Math.min(e.maxPointWidth||h.len,g(e.pointWidth,x*(1-2*e.pointPadding)));a.columnMetrics={width:e,offset:(x-e)/2+(n+((a.columnIndex||0)+(m?1:0))*x-p/2)*(m?-1:1)};return a.columnMetrics},crispCol:function(a,e,h,g){var d=this.chart,c=this.borderWidth,b=-(c%2?.5:0),c=c%2?.5:1;d.inverted&&d.renderer.isVML&&(c+=1);this.options.crisp&&(h=Math.round(a+h)+b,a=Math.round(a)+b,h-=a);g=Math.round(e+g)+c;b=.5>=Math.abs(e)&&.5<g;e=Math.round(e)+c;g-=e;b&&g&&(--e,g+=1);return{x:a,y:e,width:h,
height:g}},translate:function(){var a=this,e=a.chart,h=a.options,l=a.dense=2>a.closestPointRange*a.xAxis.transA,l=a.borderWidth=g(h.borderWidth,l?0:1),m=a.yAxis,c=h.threshold,b=a.translatedThreshold=m.getThreshold(c),f=g(h.minPointLength,5),p=a.getColumnMetrics(),n=p.width,x=a.barW=Math.max(n,1+2*l),w=a.pointXOffset=p.offset;e.inverted&&(b-=.5);h.pointPadding&&(x=Math.ceil(x));r.prototype.translate.apply(a);y(a.points,function(d){var h=g(d.yBottom,b),k=999+Math.abs(h),k=Math.min(Math.max(-k,d.plotY),
m.len+k),l=d.plotX+w,p=x,u=Math.min(k,h),r,q=Math.max(k,h)-u;f&&Math.abs(q)<f&&(q=f,r=!m.reversed&&!d.negative||m.reversed&&d.negative,d.y===c&&a.dataMax<=c&&m.min<c&&(r=!r),u=Math.abs(u-b)>f?h-f:b-(r?f:0));d.barX=l;d.pointWidth=n;d.tooltipPos=e.inverted?[m.len+m.pos-e.plotLeft-k,a.xAxis.len-l-p/2,q]:[l+p/2,k+m.pos-e.plotTop,q];d.shapeType="rect";d.shapeArgs=a.crispCol.apply(a,d.isNull?[l,b,p,0]:[l,u,p,q])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?
"addClass":"removeClass"]("highcharts-dense-data")},drawPoints:function(){var a=this,g=this.chart,h=a.options,n=g.renderer,m=h.animationLimit||250,c;y(a.points,function(b){var d=b.graphic,k=d&&g.pointCount<m?"animate":"attr";if(l(b.plotY)&&null!==b.y){c=b.shapeArgs;if(d)d[k](e(c));else b.graphic=d=n[b.shapeType](c).add(b.group||a.group);h.borderRadius&&d.attr({r:h.borderRadius});d.addClass(b.getClassName(),!0)}else d&&(b.graphic=d.destroy())})},animate:function(a){var d=this,e=this.yAxis,g=d.options,
l=this.chart.inverted,c={},b=l?"translateX":"translateY",f;n&&(a?(c.scaleY=.001,a=Math.min(e.pos+e.len,Math.max(e.pos,e.toPixels(g.threshold))),l?c.translateX=a-e.len:c.translateY=a,d.group.attr(c)):(f=d.group.attr(b),d.group.animate({scaleY:1},C(A(d.options.animation),{step:function(a,h){c[b]=f+h.pos*(e.pos-f);d.group.attr(c)}})),d.animate=null))},remove:function(){var a=this,e=a.chart;e.hasRendered&&y(e.series,function(d){d.type===a.type&&(d.isDirty=!0)});r.prototype.remove.apply(a,arguments)}})})(K);
(function(a){var A=a.Series;a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cspan class\x3d"highcharts-header"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],
takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&A.prototype.drawGraph.call(this)}})})(K);(function(a){var A=a.addEvent,y=a.arrayMax,C=a.defined,l=a.each,e=a.extend,g=a.format,r=a.map,w=a.merge,n=a.noop,d=a.pick,k=a.relativeLength,h=a.Series,u=a.seriesTypes,m=a.some,c=a.stableSort;a.distribute=function(b,f,e){function h(a,b){return a.target-b.target}var g,k=!0,p=b,n=[],v;v=0;var u=p.reducedLen||f;for(g=b.length;g--;)v+=b[g].size;if(v>u){c(b,function(a,b){return(b.rank||0)-(a.rank||
0)});for(v=g=0;v<=u;)v+=b[g].size,g++;n=b.splice(g-1,b.length)}c(b,h);for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:d(a.align,.5)}});k;){for(g=b.length;g--;)k=b[g],v=(Math.min.apply(0,k.targets)+Math.max.apply(0,k.targets))/2,k.pos=Math.min(Math.max(0,v-k.size*k.align),f-k.size);g=b.length;for(k=!1;g--;)0<g&&b[g-1].pos+b[g-1].size>b[g].pos&&(b[g-1].size+=b[g].size,b[g-1].targets=b[g-1].targets.concat(b[g].targets),b[g-1].align=.5,b[g-1].pos+b[g-1].size>f&&(b[g-1].pos=f-b[g-1].size),
b.splice(g,1),k=!0)}p.push.apply(p,n);g=0;m(b,function(b){var c=0;if(m(b.targets,function(){p[g].pos=b.pos+c;if(Math.abs(p[g].pos-p[g].target)>e)return l(p.slice(0,g+1),function(a){delete a.pos}),p.reducedLen=(p.reducedLen||f)-.1*f,p.reducedLen>.1*f&&a.distribute(p,f,e),!0;c+=p[g].size;g++}))return!0});c(p,h)};h.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,"\x3e"===b&&a>c||"\x3c"===b&&a<c||"\x3e\x3d"===b&&a>=c||"\x3c\x3d"===b&&
a<=c||"\x3d\x3d"===b&&a==c||"\x3d\x3d\x3d"===b&&a===c?!0:!1):!0}var c=this,e=c.chart,h=c.options,k=h.dataLabels,m=c.points,n,u,v=c.hasRendered||0,r,y,M=d(k.defer,!!h.animation),I=e.renderer;if(k.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(k),y=c.plotGroup("dataLabelsGroup","data-labels",M&&!v?"hidden":"visible",k.zIndex||6),M&&(y.attr({opacity:+v}),v||A(c,"afterAnimate",function(){c.visible&&y.show(!0);y[h.animation?"animate":"attr"]({opacity:1},{duration:200})})),u=k,l(m,function(f){var h,
l=f.dataLabel,m,p,q=f.connector,x=!l,v;n=f.dlOptions||f.options&&f.options.dataLabels;(h=d(n&&n.enabled,u.enabled)&&!f.isNull)&&(h=!0===b(f,n||k));h&&(k=w(u,n),m=f.getLabelConfig(),v=k[f.formatPrefix+"Format"]||k.format,r=C(v)?g(v,m,e.time):(k[f.formatPrefix+"Formatter"]||k.formatter).call(m,k),m=k.rotation,p={r:k.borderRadius||0,rotation:m,padding:k.padding,zIndex:1},a.objectEach(p,function(a,b){void 0===a&&delete p[b]}));!l||h&&C(r)?h&&C(r)&&(l?p.text=r:(l=f.dataLabel=m?I.text(r,0,-9999,k.useHTML).addClass("highcharts-data-label"):
I.label(r,0,-9999,k.shape,null,null,k.useHTML,null,"data-label"),l.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),l.attr(p),l.added||l.add(y),c.alignDataLabel(f,l,k,null,x)):(f.dataLabel=l=l.destroy(),q&&(f.connector=q.destroy()))});a.fireEvent(this,"afterDrawDataLabels")};h.prototype.alignDataLabel=function(a,c,h,g,k){var b=this.chart,f=b.inverted,l=d(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),m=d(a.plotY,-9999),p=c.getBBox(),n,x=h.rotation,
u=h.align,q=this.visible&&(a.series.forceDL||b.isInsidePlot(l,Math.round(m),f)||g&&b.isInsidePlot(l,f?g.x+1:g.y+g.height-1,f)),r="justify"===d(h.overflow,"justify");if(q&&(n=b.renderer.fontMetrics(void 0,c).b,g=e({x:f?this.yAxis.len-m:l,y:Math.round(f?this.xAxis.len-l:m),width:0,height:0},g),e(h,{width:p.width,height:p.height}),x?(r=!1,l=b.renderer.rotCorr(n,x),l={x:g.x+h.x+g.width/2+l.x,y:g.y+h.y+{top:0,middle:.5,bottom:1}[h.verticalAlign]*g.height},c[k?"attr":"animate"](l).attr({align:u}),m=(x+
720)%360,m=180<m&&360>m,"left"===u?l.y-=m?p.height:0:"center"===u?(l.x-=p.width/2,l.y-=p.height/2):"right"===u&&(l.x-=p.width,l.y-=m?0:p.height),c.placed=!0,c.alignAttr=l):(c.align(h,null,g),l=c.alignAttr),r&&0<=g.height?a.isLabelJustified=this.justifyDataLabel(c,h,l,p,g,k):d(h.crop,!0)&&(q=b.isInsidePlot(l.x,l.y)&&b.isInsidePlot(l.x+p.width,l.y+p.height)),h.shape&&!x))c[k?"attr":"animate"]({anchorX:f?b.plotWidth-a.plotY:a.plotX,anchorY:f?b.plotHeight-a.plotX:a.plotY});q||(c.attr({y:-9999}),c.placed=
!1)};h.prototype.justifyDataLabel=function(a,c,d,e,h,g){var b=this.chart,f=c.align,k=c.verticalAlign,l,m,p=a.box?0:a.padding||0;l=d.x+p;0>l&&("right"===f?c.align="left":c.x=-l,m=!0);l=d.x+e.width-p;l>b.plotWidth&&("left"===f?c.align="right":c.x=b.plotWidth-l,m=!0);l=d.y+p;0>l&&("bottom"===k?c.verticalAlign="top":c.y=-l,m=!0);l=d.y+e.height-p;l>b.plotHeight&&("top"===k?c.verticalAlign="bottom":c.y=b.plotHeight-l,m=!0);m&&(a.placed=!g,a.align(c,null,h));return m};u.pie&&(u.pie.prototype.drawDataLabels=
function(){var b=this,c=b.data,e,g=b.chart,k=b.options.dataLabels,m=d(k.connectorPadding,10),n=d(k.connectorWidth,1),u=g.plotWidth,v=g.plotHeight,r=Math.round(g.chartWidth/3),w,A=b.center,I=A[2]/2,q=A[1],D,N,t,F,K=[[],[]],Q,O,P,L,R=[0,0,0,0];b.visible&&(k.enabled||b._hasPointLabels)&&(l(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),h.prototype.drawDataLabels.apply(b),l(c,function(a){a.dataLabel&&
(a.visible?(K[a.half].push(a),a.dataLabel._pos=null,a.dataLabel.getBBox().width>r&&(a.dataLabel.css({width:.7*r}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),l(K,function(c,f){var h,p,n=c.length,x=[],r;if(n)for(b.sortByAngle(c,f-.5),0<b.maxLabelDistance&&(h=Math.max(0,q-I-b.maxLabelDistance),p=Math.min(q+I+b.maxLabelDistance,g.plotHeight),l(c,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,q-I-a.labelDistance),a.bottom=Math.min(q+I+a.labelDistance,g.plotHeight),r=
a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPos[1]-a.top+r/2,size:r,rank:a.y},x.push(a.distributeBox))}),h=p+r-h,a.distribute(x,h,h/5)),L=0;L<n;L++)e=c[L],t=e.labelPos,D=e.dataLabel,P=!1===e.visible?"hidden":"inherit",O=h=t[1],x&&C(e.distributeBox)&&(void 0===e.distributeBox.pos?P="hidden":(F=e.distributeBox.size,O=e.top+e.distributeBox.pos)),delete e.positionIndex,Q=k.justify?A[0]+(f?-1:1)*(I+e.labelDistance):b.getX(O<e.top+2||O>e.bottom-2?h:O,f,e),D._attr={visibility:P,align:t[6]},
D._pos={x:Q+k.x+({left:m,right:-m}[t[6]]||0),y:O+k.y-10},t.x=Q,t.y=O,d(k.crop,!0)&&(N=D.getBBox().width,h=null,Q-N<m&&1===f?(h=Math.round(N-Q+m),R[3]=Math.max(h,R[3])):Q+N>u-m&&0===f&&(h=Math.round(Q+N-u+m),R[1]=Math.max(h,R[1])),0>O-F/2?R[0]=Math.max(Math.round(-O+F/2),R[0]):O+F/2>v&&(R[2]=Math.max(Math.round(O+F/2-v),R[2])),D.sideOverflow=h)}),0===y(R)||this.verifyDataLabelOverflow(R))&&(this.placeDataLabels(),n&&l(this.points,function(a){var c;w=a.connector;if((D=a.dataLabel)&&D._pos&&a.visible&&
0<a.labelDistance){P=D._attr.visibility;if(c=!w)a.connector=w=g.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+a.colorIndex+(a.className?" "+a.className:"")).add(b.dataLabelsGroup);w[c?"attr":"animate"]({d:b.connectorPath(a.labelPos)});w.attr("visibility",P)}else w&&(a.connector=w.destroy())}))},u.pie.prototype.connectorPath=function(a){var b=a.x,c=a.y;return d(this.options.dataLabels.softConnector,!0)?["M",b+("left"===a[6]?5:-5),c,"C",b,c,2*a[2]-a[4],2*a[3]-a[5],a[2],
a[3],"L",a[4],a[5]]:["M",b+("left"===a[6]?5:-5),c,"L",a[2],a[3],"L",a[4],a[5]]},u.pie.prototype.placeDataLabels=function(){l(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.sideOverflow&&(b._attr.width=b.getBBox().width-b.sideOverflow,b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},u.pie.prototype.alignDataLabel=
n,u.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e=c.minSize||80,h,g=null!==c.size;g||(null!==d[0]?h=Math.max(b[2]-Math.max(a[1],a[3]),e):(h=Math.max(b[2]-a[1]-a[3],e),b[0]+=(a[3]-a[1])/2),null!==d[1]?h=Math.max(Math.min(h,b[2]-Math.max(a[0],a[2])),e):(h=Math.max(Math.min(h,b[2]-a[0]-a[2]),e),b[1]+=(a[0]-a[2])/2),h<b[2]?(b[2]=h,b[3]=Math.min(k(c.innerSize||0,h),h),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):g=!0);return g});u.column&&
(u.column.prototype.alignDataLabel=function(a,c,e,g,k){var b=this.chart.inverted,f=a.series,l=a.dlBox||a.shapeArgs,m=d(a.below,a.plotY>d(this.translatedThreshold,f.yAxis.len)),p=d(e.inside,!!this.options.stacking);l&&(g=w(l),0>g.y&&(g.height+=g.y,g.y=0),l=g.y+g.height-f.yAxis.len,0<l&&(g.height-=l),b&&(g={x:f.yAxis.len-g.y-g.height,y:f.xAxis.len-g.x-g.width,width:g.height,height:g.width}),p||(b?(g.x+=m?0:g.width,g.width=0):(g.y+=m?g.height:0,g.height=0)));e.align=d(e.align,!b||p?"center":m?"right":
"left");e.verticalAlign=d(e.verticalAlign,b||p?"middle":m?"top":"bottom");h.prototype.alignDataLabel.call(this,a,c,e,g,k);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(K);(function(a){var A=a.Chart,y=a.each,C=a.objectEach,l=a.pick;a=a.addEvent;a(A,"render",function(){var a=[];y(this.labelCollectors||[],function(e){a=a.concat(e())});y(this.yAxis||[],function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&C(e.stacks,function(e){C(e,function(e){a.push(e.label)})})});
y(this.series||[],function(e){var g=e.options.dataLabels,w=e.dataLabelCollections||["dataLabel"];(g.enabled||e._hasPointLabels)&&!g.allowOverlap&&e.visible&&y(w,function(g){y(e.points,function(d){d[g]&&d.visible&&(d[g].labelrank=l(d.labelrank,d.shapeArgs&&d.shapeArgs.height),a.push(d[g]))})})});this.hideOverlappingLabels(a)});A.prototype.hideOverlappingLabels=function(a){var e=a.length,l=this.renderer,w,n,d,k,h,u,m=function(a,b,d,e,h,g,k,l){return!(h>a+d||h+k<a||g>b+e||g+l<b)};d=function(a){var b,
c,d,e=2*(a.box?0:a.padding||0);d=0;if(a&&(!a.alignAttr||a.placed))return b=a.alignAttr||{x:a.attr("x"),y:a.attr("y")},c=a.parentGroup,a.width||(d=a.getBBox(),a.width=d.width,a.height=d.height,d=l.fontMetrics(null,a.element).h),{x:b.x+(c.translateX||0),y:b.y+(c.translateY||0)-d,width:a.width-e,height:a.height-e}};for(n=0;n<e;n++)if(w=a[n])w.oldOpacity=w.opacity,w.newOpacity=1,w.absoluteBox=d(w);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(n=0;n<e;n++)for(u=(d=a[n])&&d.absoluteBox,
w=n+1;w<e;++w)if(h=(k=a[w])&&k.absoluteBox,u&&h&&d!==k&&0!==d.newOpacity&&0!==k.newOpacity&&(h=m(u.x,u.y,u.width,u.height,h.x,h.y,h.width,h.height)))(d.labelrank<k.labelrank?d:k).newOpacity=0;y(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&(a.alignAttr&&a.placed?(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)):a.attr({opacity:c})),a.isOld=!0)})}})(K);(function(a){var A=a.addEvent,y=a.Chart,C=a.createElement,l=a.css,e=a.defaultOptions,
g=a.defaultPlotOptions,r=a.each,w=a.extend,n=a.fireEvent,d=a.hasTouch,k=a.inArray,h=a.isObject,u=a.Legend,m=a.merge,c=a.pick,b=a.Point,f=a.Series,p=a.seriesTypes,H;H=a.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);void 0!==c&&(b.isDirectTouch=!0,c.onMouseOver(a))};r(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&(a.dataLabel.div?a.dataLabel.div.point=a:a.dataLabel.element.point=a)});a._hasTracking||(r(a.trackerGroups,
function(e){if(a[e]&&(a[e].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)}),d))a[e].on("touchstart",c)}),a._hasTracking=!0);n(this,"afterDrawTracker")},drawTrackerGraph:function(){var a=this,b=a.options.trackByArea,c=[].concat(b?a.areaPath:a.graphPath),e=c.length,f=a.chart,h=f.pointer,g=f.renderer,k=f.options.tooltip.snap,l=a.tracker,m,p=function(){if(f.hoverSeries!==a)a.onMouseOver()};if(e&&!b)for(m=e+1;m--;)"M"===c[m]&&c.splice(m+1,0,c[m+1]-k,c[m+
2],"L"),(m&&"M"===c[m]||m===e)&&c.splice(m,0,"L",c[m-2]+k,c[m-1]);l?l.attr({d:c}):a.graph&&(a.tracker=g.path(c).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),r([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){h.onTrackerMouseOut(a)});if(d)a.on("touchstart",p)}));n(this,"afterDrawTracker")}};p.column&&(p.column.prototype.drawTracker=H.drawTrackerPoint);
p.pie&&(p.pie.prototype.drawTracker=H.drawTrackerPoint);p.scatter&&(p.scatter.prototype.drawTracker=H.drawTrackerPoint);w(u.prototype,{setItemEvents:function(a,c,d){var e=this.chart.renderer.boxWrapper,f="highcharts-legend-"+(a instanceof b?"point":"series")+"-active";(d?c:a.legendGroup).on("mouseover",function(){a.setState("hover");e.addClass(f)}).on("mouseout",function(){e.removeClass(f);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};e.removeClass(f);b={browserEvent:b};
a.firePointEvent?a.firePointEvent("legendItemClick",b,c):n(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=C("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);A(a.checkbox,"click",function(b){n(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});w(y.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=
e.lang,d=b.options.chart.resetZoomButton,f=d.theme,h=f.states,g="chart"===d.relativeTo?null:"plotBox";n(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,f,h&&h.hover).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,g)})},zoomOut:function(){n(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var b,d=this.pointer,e=!1,f;!a||a.resetSelection?(r(this.axes,function(a){b=
a.zoom()}),d.initiated=!1):r(a.xAxis.concat(a.yAxis),function(a){var c=a.axis;d[c.isXAxis?"zoomX":"zoomY"]&&(b=c.zoom(a.min,a.max),c.displayBtn&&(e=!0))});f=this.resetZoomButton;e&&!f?this.showResetZoom():!e&&h(f)&&(this.resetZoomButton=f.destroy());b&&this.redraw(c(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,f=a[d?"chartX":
"chartY"],d=d?"mouseDownX":"mouseDownY",h=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),m=b.toValue(h-f,!0)+g*k,k=b.toValue(h+b.len-f,!0)-g*k,p=k<m,h=p?k:m,m=p?m:k,k=Math.min(l.dataMin,g?l.min:b.toValue(b.toPixels(l.min)-b.minPixelPadding)),g=Math.max(l.dataMax,g?l.max:b.toValue(b.toPixels(l.max)+b.minPixelPadding)),p=k-h;0<p&&(m+=p,h=k);p=m-g;0<p&&(m=g,h-=p);b.series.length&&h!==l.min&&m!==l.max&&(b.setExtremes(h,m,!1,!1,{trigger:"pan"}),e=!0);
c[d]=f});e&&c.redraw(!1);l(c.container,{cursor:"move"})}});w(b.prototype,{select:function(a,b){var d=this,e=d.series,f=e.chart;a=c(a,!d.selected);d.firePointEvent(a?"select":"unselect",{accumulate:b},function(){d.selected=d.options.selected=a;e.options.data[k(d,e.data)]=d.options;d.setState(a&&"select");b||r(f.getSelectedPoints(),function(a){a.selected&&a!==d&&(a.selected=a.options.selected=!1,e.options.data[k(a,e.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=
this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");r(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=m(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){A(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,b){var d=Math.floor(this.plotX),
e=this.plotY,f=this.series,h=f.options.states[a||"normal"]||{},k=g[f.type].marker&&f.options.marker,l=k&&!1===k.enabled,m=k&&k.states&&k.states[a||"normal"]||{},p=!1===m.enabled,u=f.stateMarkerGraphic,x=this.marker||{},t=f.chart,r=f.halo,w,y=k&&f.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===h.enabled||a&&(p||l&&!1===m.enabled)||a&&x.states&&x.states[a]&&!1===x.states[a].enabled)){y&&(w=f.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+
this.state),a&&this.graphic.addClass("highcharts-point-"+a),w&&this.graphic.animate(w,c(t.options.chart.animation,m.animation,k.animation)),u&&u.hide();else{if(a&&m)if(k=x.symbol||f.symbol,u&&u.currentSymbol!==k&&(u=u.destroy()),u)u[b?"animate":"attr"]({x:w.x,y:w.y});else k&&(f.stateMarkerGraphic=u=t.renderer.symbol(k,w.x,w.y,w.width,w.height).add(f.markerGroup),u.currentSymbol=k);u&&(u[a&&t.isInsidePlot(d,e,t.inverted)?"show":"hide"](),u.element.point=this)}(d=h.halo)&&d.size?(r||(f.halo=r=t.renderer.path().add((this.graphic||
u).parentGroup)),r.show()[b?"animate":"attr"]({d:this.haloPath(d.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+c(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),zIndex:-1}),r.point=this):r&&r.point&&r.point.haloPath&&r.animate({d:r.point.haloPath(0)},null,r.hide);this.state=a;n(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});w(f.prototype,{onMouseOver:function(){var a=
this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&n(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&n(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this;a=a||"";b.state!==a&&(r([b.group,b.markerGroup,b.dataLabelsGroup],function(c){c&&
(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a)},setVisible:function(a,b){var c=this,d=c.chart,f=c.legendItem,e,h=d.options.chart.ignoreHiddenSeries,g=c.visible;e=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!g:a)?"show":"hide";r(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][e]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();f&&d.legend.colorizeItem(c,a);
c.isDirty=!0;c.options.stacking&&r(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});r(c.linkedSeries,function(b){b.setVisible(a,!1)});h&&(d.isDirtyBox=!0);n(c,e);!1!==b&&d.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);n(this,a?"select":"unselect")},drawTracker:H.drawTrackerGraph})})(K);(function(a){var A=a.Chart,y=a.each,C=a.inArray,l=a.isArray,
e=a.isObject,g=a.pick,r=a.splat;A.prototype.setResponsive=function(e){var g=this.options.responsive,d=[],k=this.currentResponsive;g&&g.rules&&y(g.rules,function(h){void 0===h._id&&(h._id=a.uniqueKey());this.matchResponsiveRule(h,d,e)},this);var h=a.merge.apply(0,a.map(d,function(d){return a.find(g.rules,function(a){return a._id===d}).chartOptions})),d=d.toString()||void 0;d!==(k&&k.ruleIds)&&(k&&this.update(k.undoOptions,e),d?(this.currentResponsive={ruleIds:d,mergedOptions:h,undoOptions:this.currentOptions(h)},
this.update(h,e)):this.currentResponsive=void 0)};A.prototype.matchResponsiveRule=function(a,e){var d=a.condition;(d.callback||function(){return this.chartWidth<=g(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=g(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=g(d.minWidth,0)&&this.chartHeight>=g(d.minHeight,0)}).call(this)&&e.push(a._id)};A.prototype.currentOptions=function(g){function n(d,h,g,m){var c;a.objectEach(d,function(a,d){if(!m&&-1<C(d,["series","xAxis","yAxis"]))for(a=r(a),g[d]=[],c=0;c<
a.length;c++)h[d][c]&&(g[d][c]={},n(a[c],h[d][c],g[d][c],m+1));else e(a)?(g[d]=l(a)?[]:{},n(a,h[d]||{},g[d],m+1)):g[d]=h[d]||null})}var d={};n(g,this.options,d,0);return d}})(K);(function(a){var A=a.addEvent,y=a.Axis,C=a.each,l=a.pick;A(y,"getSeriesExtremes",function(){var a=[];this.isXAxis&&(C(this.series,function(e,l){e.useMapGeometry&&(a[l]=e.xData,e.xData=[])}),this.seriesXData=a)});A(y,"afterGetSeriesExtremes",function(){var a=this.seriesXData,g,r,w;this.isXAxis&&(g=l(this.dataMin,Number.MAX_VALUE),
r=l(this.dataMax,-Number.MAX_VALUE),C(this.series,function(e,d){e.useMapGeometry&&(g=Math.min(g,l(e.minX,g)),r=Math.max(r,l(e.maxX,r)),e.xData=a[d],w=!0)}),w&&(this.dataMin=g,this.dataMax=r),delete this.seriesXData)});A(y,"afterSetAxisTranslation",function(){var a=this.chart,g;g=a.plotWidth/a.plotHeight;var a=a.xAxis[0],l;"yAxis"===this.coll&&void 0!==a.transA&&C(this.series,function(a){a.preserveAspectRatio&&(l=!0)});if(l&&(this.transA=a.transA=Math.min(this.transA,a.transA),g/=(a.max-a.min)/(this.max-
this.min),g=1>g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});A(y,"render",function(){this.fixTo=null})})(K);(function(a){var A=a.addEvent,y=a.Axis,C=a.Chart,l=a.color,e,g=a.each,r=a.extend,w=a.isNumber,n=a.Legend,d=a.LegendSymbolMixin,k=a.noop,h=a.merge,u=a.pick;a.ColorAxis||(e=a.ColorAxis=function(){this.init.apply(this,
arguments)},r(e.prototype,y.prototype),r(e.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(y.prototype.keepProps),init:function(a,c){var b="vertical"!==a.options.legend.layout,
d;this.coll="colorAxis";d=h(this.defaultColorAxisOptions,{side:b?2:1,reversed:!b},c,{opposite:!b,showEmpty:!1,title:null,visible:a.options.legend.enabled});y.prototype.init.call(this,a,d);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=b;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c,b=0,d=this.chart.options.chart.colorCount,e=this.options,k=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,f){a=h(a);c.push(a);
"category"===e.dataClassColor?(a.colorIndex=b,b++,b===d&&(b=0)):a.color=l(e.minColor).tweenTo(l(e.maxColor),2>k?.5:f/(k-1))})},setTickPositions:function(){if(!this.dataClasses)return y.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=l(a[1])})},setOptions:function(a){y.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=
this.legendSymbol,c=this.chart,b=c.options.legend||{},d,e;a?(this.left=b=a.attr("x"),this.top=d=a.attr("y"),this.width=e=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-b-e,this.bottom=c.chartHeight-d-a,this.len=this.horiz?e:a,this.pos=this.horiz?b:d):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var b=this.stops,d,e,
h=this.dataClasses,g,k;if(h)for(k=h.length;k--;){if(g=h[k],d=g.from,b=g.to,(void 0===d||a>=d)&&(void 0===b||a<=b)){c&&(c.dataClass=k,c.colorIndex=g.colorIndex);break}}else{a=this.normalizedValue(a);for(k=b.length;k--&&!(a>b[k][0]););d=b[k]||b[k+1];b=b[k+1]||d;a=1-(b[0]-a)/(b[0]-d[0]||1);e=d.color.tweenTo(b.color,a)}return e},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,y.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=
0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var b=a.padding,d=a.options,e=this.horiz,h=u(d.symbolWidth,e?this.defaultLegendLength:12),g=u(d.symbolHeight,e?12:this.defaultLegendLength),k=u(d.labelPadding,e?16:30),d=u(d.itemDistance,10);this.setLegendColor();c.legendSymbol=
this.chart.renderer.rect(0,a.baseline-11,h,g).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=h+b+(e?d:k);this.legendItemHeight=g+b+(e?k:0)},setState:function(a){g(this.series,function(c){c.setState(a)})},visible:!0,setVisible:k,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,
c){var b=c&&c.plotX,d=c&&c.plotY,e,h=this.pos,g=this.len;c&&(e=this.toPixels(c[c.series.colorKey]),e<h?e=h-2:e>h+g&&(e=h+g+2),c.plotX=e,c.plotY=this.len-e,y.prototype.drawCrosshair.call(this,a,c),c.plotX=b,c.plotY=d,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0))},getPlotLinePath:function(a,c,b,d,e){return w(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",
this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:y.prototype.getPlotLinePath.call(this,a,c,b,d)},update:function(a,c){var b=this.chart,d=b.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),b.isDirtyLegend=!0);b.options[this.coll]=h(this.userOptions,a);y.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&
this.chart.legend.destroyItem(this);y.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,b=this.legendItems,f=c.options.legend,h=f.valueDecimals,l=f.valueSuffix||"",n;b.length||g(this.dataClasses,function(f,m){var p=!0,u=f.from,x=f.to;n="";void 0===u?n="\x3c ":void 0===x&&(n="\x3e ");void 0!==u&&(n+=a.numberFormat(u,h)+l);void 0!==u&&void 0!==x&&(n+=" - ");void 0!==x&&(n+=a.numberFormat(x,h)+l);b.push(r({chart:c,name:n,options:{},drawLegendSymbol:d.drawRectangle,
visible:!0,setState:k,isDataClass:!0,setVisible:function(){p=this.visible=!p;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(p)})});c.legend.colorizeItem(this,p)}},f))});return b},name:""}),g(["fill","stroke"],function(d){a.Fx.prototype[d+"Setter"]=function(){this.elem.attr(d,l(this.start).tweenTo(l(this.end),this.pos),null,!0)}}),A(C,"afterGetAxes",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new e(this,a)}),A(n,"afterGetAllItems",function(d){var c=[],
b=this.chart.colorAxis[0];b&&b.options&&b.options.showInLegend&&(b.options.dataClasses?c=b.getDataClassLegendSymbols():c.push(b),g(b.series,function(b){a.erase(d.allItems,b)}));for(b=c.length;b--;)d.allItems.unshift(c[b])}),A(n,"afterColorizeItem",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),A(n,"afterUpdate",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(K);(function(a){var A=a.defined,y=a.each,C=a.noop;a.colorPointMixin=
{isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var e=this,g=a?"show":"hide";e.visible=!!a;y(["graphic","dataLabel"],function(a){if(e[a])e[a][g]()})},setState:function(l){a.Point.prototype.setState.call(this,l);this.graphic&&this.graphic.attr({zIndex:"hover"===l?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],
getSymbol:C,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,e=this.options.nullColor,g=this.colorAxis,r=this.colorKey;y(this.data,function(l){var n=l[r];if(n=l.options.color||(l.isNull?e:g&&void 0!==n?g.toColor(n,l):l.color||a.color))l.color=n})},colorAttribs:function(a){var e={};A(a.color)&&(e[this.colorProp||"fill"]=a.color);return e}}})(K);(function(a){function A(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=
!0)}function y(a){this.init(a)}var C=a.addEvent,l=a.Chart,e=a.doc,g=a.each,r=a.extend,w=a.merge,n=a.pick;y.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};y.prototype.update=function(d){var e=this.chart,h=e.options.mapNavigation,g,l=function(a){this.handler.call(e,a);A(a)},c=e.mapNavButtons;d&&(h=e.options.mapNavigation=w(e.options.mapNavigation,d));for(;c.length;)c.pop().destroy();n(h.enableButtons,h.enabled)&&!e.renderer.forExport&&a.objectEach(h.buttons,function(a,d){g=w(h.buttonOptions,
a);a=e.renderer.button(g.text,0,0,l,void 0,void 0,void 0,0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:g.width,height:g.height,title:e.options.lang[d],padding:g.padding,zIndex:5}).add();a.handler=g.onclick;a.align(r(g,{width:a.width,height:2*a.height}),null,g.alignTo);C(a.element,"dblclick",A);c.push(a)});this.updateEvents(h)};y.prototype.updateEvents=function(a){var d=this.chart;n(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=
this.unbindDblClick||C(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());n(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||C(d.container,void 0===e.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){d.pointer.onContainerMouseWheel(a);A(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};r(l.prototype,{fitToBox:function(a,e){g([["x","width"],["y",
"height"]],function(d){var h=d[0];d=d[1];a[h]+a[d]>e[h]+e[d]&&(a[d]>e[d]?(a[d]=e[d],a[h]=e[h]):a[h]=e[h]+e[d]-a[d]);a[d]>e[d]&&(a[d]=e[d]);a[h]<e[h]&&(a[h]=e[h])});return a},mapZoom:function(a,e,h,g,l){var c=this.xAxis[0],b=c.max-c.min,d=n(e,c.min+b/2),k=b*a,b=this.yAxis[0],m=b.max-b.min,u=n(h,b.min+m/2),m=m*a,d=this.fitToBox({x:d-k*(g?(g-c.pos)/c.len:.5),y:u-m*(l?(l-b.pos)/b.len:.5),width:k,height:m},{x:c.dataMin,y:b.dataMin,width:c.dataMax-c.dataMin,height:b.dataMax-b.dataMin}),k=d.x<=c.dataMin&&
d.width>=c.dataMax-c.dataMin&&d.y<=b.dataMin&&d.height>=b.dataMax-b.dataMin;g&&(c.fixTo=[g-c.pos,e]);l&&(b.fixTo=[l-b.pos,h]);void 0===a||k?(c.setExtremes(void 0,void 0,!1),b.setExtremes(void 0,void 0,!1)):(c.setExtremes(d.x,d.x+d.width,!1),b.setExtremes(d.y,d.y+d.height,!1));this.redraw()}});C(l,"beforeRender",function(){this.mapNavigation=new y(this);this.mapNavigation.update()})})(K);(function(a){var A=a.extend,y=a.pick,C=a.Pointer;a=a.wrap;A(C.prototype,{onContainerDblClick:function(a){var e=
this.chart;a=this.normalize(a);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(a.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var e=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/120);e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(Math.pow(e.options.mapNavigation.mouseWheelSensitivity,
g),e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(C.prototype,"zoomOption",function(a){var e=this.chart.options.mapNavigation;y(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(C.prototype,"pinchTranslate",function(a,e,g,r,w,n,d){a.call(this,e,g,r,w,n,d);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=r.scaleX>r.scaleY,this.pinchTranslateDirection(!a,e,g,r,w,n,d,a?r.scaleX:r.scaleY))})})(K);
(function(a){var A=a.colorPointMixin,y=a.each,C=a.extend,l=a.isNumber,e=a.map,g=a.merge,r=a.noop,w=a.pick,n=a.isArray,d=a.Point,k=a.Series,h=a.seriesType,u=a.seriesTypes,m=a.splat;h("map","scatter",{allAreas:!0,animation:!1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},
hover:{halo:null,brightness:.2}}},g(a.colorSeriesMixin,{type:"map",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:r,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,h=-b,g=b,k=b,m=this.xAxis,n=this.yAxis,u;y(c||[],function(c){if(c.path){"string"===typeof c.path&&(c.path=a.splitPath(c.path));var f=c.path||[],m=f.length,p=!1,n=-b,r=b,v=-b,t=b,x=c.properties;if(!c._foundBox){for(;m--;)l(f[m])&&(p?(n=Math.max(n,f[m]),r=Math.min(r,
f[m])):(v=Math.max(v,f[m]),t=Math.min(t,f[m])),p=!p);c._midX=r+(n-r)*w(c.middleX,x&&x["hc-middle-x"],.5);c._midY=t+(v-t)*w(c.middleY,x&&x["hc-middle-y"],.5);c._maxX=n;c._minX=r;c._maxY=v;c._minY=t;c.labelrank=w(c.labelrank,(n-r)*(v-t));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,c._minX);h=Math.max(h,c._maxY);g=Math.min(g,c._minY);k=Math.min(c._maxX-c._minX,c._maxY-c._minY,k);u=!0}});u&&(this.minY=Math.min(g,w(this.minY,b)),this.maxY=Math.max(h,w(this.maxY,-b)),this.minX=Math.min(e,w(this.minX,
b)),this.maxX=Math.max(d,w(this.maxX,-b)),m&&void 0===m.options.minRange&&(m.minRange=Math.min(5*k,(this.maxX-this.minX)/5,m.minRange||b)),n&&void 0===n.options.minRange&&(n.minRange=Math.min(5*k,(this.maxY-this.minY)/5,n.minRange||b)))},getExtremes:function(){k.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var b=
!1,c=this.xAxis,d=this.yAxis,e=c.min,h=c.transA,c=c.minPixelPadding,g=d.min,k=d.transA,d=d.minPixelPadding,m,n=[];if(a)for(m=a.length;m--;)l(a[m])?(n[m]=b?(a[m]-e)*h+c:(a[m]-g)*k+d,b=!b):n[m]=a[m];return n},setData:function(c,b,d,h){var f=this.options,p=this.chart.options.chart,u=p&&p.map,r=f.mapData,w=f.joinBy,v=null===w,B=f.keys||this.pointArrayMap,A=[],C={},I=this.chart.mapTransforms;!r&&u&&(r="string"===typeof u?a.maps[u]:u);v&&(w="_i");w=this.joinBy=m(w);w[1]||(w[1]=w[0]);c&&y(c,function(b,d){var e=
0;if(l(b))c[d]={value:b};else if(n(b)){c[d]={};!f.keys&&b.length>B.length&&"string"===typeof b[0]&&(c[d]["hc-key"]=b[0],++e);for(var h=0;h<B.length;++h,++e)B[h]&&void 0!==b[e]&&(0<B[h].indexOf(".")?a.Point.prototype.setNestedProperty(c[d],b[e],B[h]):c[d][B[h]]=b[e])}v&&(c[d]._i=d)});this.getBox(c);(this.chart.mapTransforms=I=p&&p.mapTransforms||r&&r["hc-transform"]||I)&&a.objectEach(I,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(r){"FeatureCollection"===
r.type&&(this.mapTitle=r.title,r=a.geojson(r,this.type,this));this.mapData=r;this.mapMap={};for(I=0;I<r.length;I++)p=r[I],u=p.properties,p._i=I,w[0]&&u&&u[w[0]]&&(p[w[0]]=u[w[0]]),C[p[w[0]]]=p;this.mapMap=C;c&&w[1]&&y(c,function(a){C[a[w[1]]]&&A.push(C[a[w[1]]])});f.allAreas?(this.getBox(r),c=c||[],w[1]&&y(c,function(a){A.push(a[w[1]])}),A="|"+e(A,function(a){return a&&a[w[0]]}).join("|")+"|",y(r,function(a){w[0]&&-1!==A.indexOf("|"+a[w[0]]+"|")||(c.push(g(a,{value:null})),h=!1)})):this.getBox(A)}k.prototype.setData.call(this,
c,b,d,h)},drawGraph:r,drawDataLabels:r,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,d=a.yAxis,e=a.doFullTranslate();a.generatePoints();y(a.data,function(c){c.plotX=b.toPixels(c._midX,!0);c.plotY=d.toPixels(c._midY,!0);e&&(c.shapeType="path",c.shapeArgs={d:a.translatePath(c.path)})});a.translateColors()},pointAttribs:function(a,b){b=this.colorAttribs(a);b["stroke-width"]=w(a.options[this.pointAttrToOptions&&
this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b},drawPoints:function(){var a=this,b=a.xAxis,d=a.yAxis,e=a.group,h=a.chart,g=h.renderer,k,l,m,n,r=this.baseTrans,w,A,C,q,D;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(e),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,u.column.prototype.drawPoints.apply(a),a.group=e,y(a.points,function(b){b.graphic&&(b.name&&b.graphic.addClass("highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()),
b.properties&&b.properties["hc-key"]&&b.graphic.addClass("highcharts-key-"+b.properties["hc-key"].toLowerCase()),b.graphic.css(a.pointAttribs(b,b.selected&&"select")))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:d.min-d.minPixelPadding/d.transA+(d.reversed?0:d.len/d.transA),transAX:b.transA,transAY:d.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(k=b.transA/r.transAX,l=d.transA/r.transAY,m=b.toPixels(r.originX,!0),n=d.toPixels(r.originY,
!0),.99<k&&1.01>k&&.99<l&&1.01>l&&(l=k=1,m=Math.round(m),n=Math.round(n)),w=this.transformGroup,h.renderer.globalAnimation?(A=w.attr("translateX"),C=w.attr("translateY"),q=w.attr("scaleX"),D=w.attr("scaleY"),w.attr({animator:0}).animate({animator:1},{step:function(a,b){w.attr({translateX:A+(m-A)*b.pos,translateY:C+(n-C)*b.pos,scaleX:q+(k-q)*b.pos,scaleY:D+(l-D)*b.pos})}})):w.attr({translateX:m,translateY:n,scaleX:k,scaleY:l}));e.element.setAttribute("stroke-width",(a.options[a.pointAttrToOptions&&
a.pointAttrToOptions["stroke-width"]||"borderWidth"]||1)/(k||1));this.drawMapDataLabels()},drawMapDataLabels:function(){k.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=k.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)},animate:function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,h=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===
b&&(b={duration:1E3}),a?c.attr({translateX:h+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:h,translateY:g,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},y(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,
scaleY:1,translateX:0,translateY:0},e)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){u.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){u.column.prototype.animateDrillupTo.call(this,a)}}),C({applyOptions:function(a,b){a=d.prototype.applyOptions.call(this,a,b);b=this.series;var c=b.joinBy;b.mapData&&((c=void 0!==a[c[1]]&&b.mapMap[a[c[1]]])?(b.xyFromShape&&(a.x=c._midX,a.y=c._midY),C(a,c)):a.value=a.value||null);
return a},onMouseOver:function(c){a.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)d.prototype.onMouseOver.call(this,c);else this.series.onMouseOut(c)},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},A))})(K);(function(a){var A=a.seriesType;A("mapline","map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(K);
(function(a){var A=a.merge,y=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,l){a=void 0!==a.lat&&void 0!==a.lon?A(a,this.series.chart.fromLatLonToPoint(a)):a;return y.prototype.applyOptions.call(this,a,l)}})})(K);(function(a){var A=a.arrayMax,y=a.arrayMin,C=a.Axis,l=a.each,e=a.isNumber,g=a.noop,r=a.pick,w=a.pInt,n=a.Point,
d=a.seriesType,k=a.seriesTypes;d("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],
specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(a,d,g,c){var b,h,k,l=this.zData,m=[],n=this.options,u="width"!==n.sizeBy,r=n.zThreshold,v=d-a;h=0;for(b=l.length;h<b;h++)k=l[h],n.sizeByAbsoluteValue&&null!==k&&(k=Math.abs(k-r),d=v=Math.max(d-r,Math.abs(a-r)),a=0),e(k)?k<a?k=g/2-1:(k=0<v?(k-a)/v:.5,u&&0<=k&&(k=Math.sqrt(k)),k=Math.ceil(g+k*(c-g))/2):k=null,m.push(k);this.radii=m},animate:function(a){!a&&this.points.length<this.options.animationLimit&&(l(this.points,
function(a){var d=a.graphic,c;d&&d.width&&(c={x:d.x,y:d.y,width:d.width,height:d.height},d.attr({x:a.plotX,y:a.plotY,width:1,height:1}),d.animate(c,this.options.animation))},this),this.animate=null)},translate:function(){var d,g=this.data,l,c,b=this.radii;k.scatter.prototype.translate.call(this);for(d=g.length;d--;)l=g[d],c=b?b[d]:0,e(c)&&c>=this.minPxSize/2?(l.marker=a.extend(l.marker,{radius:c,width:2*c,height:2*c}),l.dlBox={x:l.plotX-c,y:l.plotY-c,width:2*c,height:2*c}):l.shapeArgs=l.plotY=l.dlBox=
void 0},alignDataLabel:k.column.prototype.alignDataLabel,buildKDTree:g,applyZones:g},{haloPath:function(a){return n.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});C.prototype.beforePadding=function(){var d=this,g=this.len,k=this.chart,c=0,b=g,f=this.isXAxis,n=f?"xData":"yData",C=this.min,x={},J=Math.min(k.plotWidth,k.plotHeight),E=Number.MAX_VALUE,z=-Number.MAX_VALUE,v=this.max-C,B=g/v,G=[];l(this.series,function(b){var c=b.options;!b.bubblePadding||!b.visible&&
k.options.chart.ignoreHiddenSeries||(d.allowZoomOutside=!0,G.push(b),f&&(l(["minSize","maxSize"],function(a){var b=c[a],d=/%$/.test(b),b=w(b);x[a]=d?J*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=a.grep(b.zData,a.isNumber),b.length&&(E=r(c.zMin,Math.min(E,Math.max(y(b),!1===c.displayNegative?c.zThreshold:-Number.MAX_VALUE))),z=r(c.zMax,Math.max(z,A(b))))))});l(G,function(a){var h=a[n],g=h.length,k;f&&a.getRadii(E,z,a.minPxSize,a.maxPxSize);if(0<v)for(;g--;)e(h[g])&&
d.dataMin<=h[g]&&h[g]<=d.dataMax&&(k=a.radii[g],c=Math.min((h[g]-C)*B-k,c),b=Math.max((h[g]-C)*B+k,b))});G.length&&0<v&&!this.isLog&&(b-=g,B*=(g+Math.max(0,c)-Math.min(b,g))/g,l([["min","userMin",c],["max","userMax",b]],function(a){void 0===r(d.options[a[0]],d[a[1]])&&(d[a[0]]+=a[2]/B)}))}})(K);(function(a){var A=a.merge,y=a.Point,C=a.seriesType,l=a.seriesTypes;l.bubble&&C("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],
getMapData:l.map.prototype.getMapData,getBox:l.map.prototype.getBox,setData:l.map.prototype.setData},{applyOptions:function(a,g){return a&&void 0!==a.lat&&void 0!==a.lon?y.prototype.applyOptions.call(this,A(a,this.series.chart.fromLatLonToPoint(a)),g):l.map.prototype.pointClass.prototype.applyOptions.call(this,a,g)},isValid:function(){return"number"===typeof this.z},ttBelow:!1})})(K);(function(a){var A=a.colorPointMixin,y=a.each,C=a.merge,l=a.noop,e=a.pick,g=a.Series,r=a.seriesType,w=a.seriesTypes;
r("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{hover:{halo:!1,brightness:.2}}},C(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;w.scatter.prototype.init.apply(this,arguments);a=this.options;
a.pointRange=e(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,d=this.xAxis,g=this.yAxis,h=a.pointPadding||0,l=function(a,c,b){return Math.min(Math.max(c,a),b)};this.generatePoints();y(this.points,function(k){var c=(a.colsize||1)/2,b=(a.rowsize||1)/2,f=l(Math.round(d.len-d.translate(k.x-c,0,1,0,1)),-d.len,2*d.len),c=l(Math.round(d.len-d.translate(k.x+c,0,1,0,1)),-d.len,2*d.len),m=l(Math.round(g.translate(k.y-b,0,1,0,1)),-g.len,2*g.len),b=
l(Math.round(g.translate(k.y+b,0,1,0,1)),-g.len,2*g.len),n=e(k.pointPadding,h);k.plotX=k.clientX=(f+c)/2;k.plotY=(m+b)/2;k.shapeType="rect";k.shapeArgs={x:Math.min(f,c)+n,y:Math.min(m,b)+n,width:Math.abs(c-f)-2*n,height:Math.abs(b-m)-2*n}});this.translateColors()},drawPoints:function(){w.column.prototype.drawPoints.call(this);y(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:l,getBox:l,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:w.column.prototype.alignDataLabel,
getExtremes:function(){g.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;g.prototype.getExtremes.call(this)}}),a.extend({haloPath:function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]}},A))})(K);(function(a){function A(a,d){var e,h,g,l=!1,c=a.x,b=a.y;a=0;for(e=d.length-1;a<d.length;e=a++)h=d[a][1]>b,g=d[e][1]>b,h!==g&&c<(d[e][0]-d[a][0])*(b-d[a][1])/
(d[e][1]-d[a][1])+d[a][0]&&(l=!l);return l}var y=a.Chart,C=a.each,l=a.extend,e=a.format,g=a.merge,r=a.win,w=a.wrap;y.prototype.transformFromLatLon=function(e,d){if(void 0===r.proj4)return a.error(21),{x:0,y:null};e=r.proj4(d.crs,[e.lon,e.lat]);var g=d.cosAngle||d.rotation&&Math.cos(d.rotation),h=d.sinAngle||d.rotation&&Math.sin(d.rotation);e=d.rotation?[e[0]*g+e[1]*h,-e[0]*h+e[1]*g]:e;return{x:((e[0]-(d.xoffset||0))*(d.scale||1)+(d.xpan||0))*(d.jsonres||1)+(d.jsonmarginX||0),y:(((d.yoffset||0)-e[1])*
(d.scale||1)+(d.ypan||0))*(d.jsonres||1)-(d.jsonmarginY||0)}};y.prototype.transformToLatLon=function(e,d){if(void 0===r.proj4)a.error(21);else{e={x:((e.x-(d.jsonmarginX||0))/(d.jsonres||1)-(d.xpan||0))/(d.scale||1)+(d.xoffset||0),y:((-e.y-(d.jsonmarginY||0))/(d.jsonres||1)+(d.ypan||0))/(d.scale||1)+(d.yoffset||0)};var g=d.cosAngle||d.rotation&&Math.cos(d.rotation),h=d.sinAngle||d.rotation&&Math.sin(d.rotation);d=r.proj4(d.crs,"WGS84",d.rotation?{x:e.x*g+e.y*-h,y:e.x*h+e.y*g}:e);return{lat:d.y,lon:d.x}}};
y.prototype.fromPointToLatLon=function(e){var d=this.mapTransforms,g;if(d){for(g in d)if(d.hasOwnProperty(g)&&d[g].hitZone&&A({x:e.x,y:-e.y},d[g].hitZone.coordinates[0]))return this.transformToLatLon(e,d[g]);return this.transformToLatLon(e,d["default"])}a.error(22)};y.prototype.fromLatLonToPoint=function(e){var d=this.mapTransforms,g,h;if(!d)return a.error(22),{x:0,y:null};for(g in d)if(d.hasOwnProperty(g)&&d[g].hitZone&&(h=this.transformFromLatLon(e,d[g]),A({x:h.x,y:-h.y},d[g].hitZone.coordinates[0])))return h;
return this.transformFromLatLon(e,d["default"])};a.geojson=function(a,d,g){var h=[],k=[],m=function(a){var b,c=a.length;k.push("M");for(b=0;b<c;b++)1===b&&k.push("L"),k.push(a[b][0],-a[b][1])};d=d||"map";C(a.features,function(a){var b=a.geometry,c=b.type,b=b.coordinates;a=a.properties;var e;k=[];"map"===d||"mapbubble"===d?("Polygon"===c?(C(b,m),k.push("Z")):"MultiPolygon"===c&&(C(b,function(a){C(a,m)}),k.push("Z")),k.length&&(e={path:k})):"mapline"===d?("LineString"===c?m(b):"MultiLineString"===c&&
C(b,m),k.length&&(e={path:k})):"mappoint"===d&&"Point"===c&&(e={x:b[0],y:-b[1]});e&&h.push(l(e,{name:a.name||a.NAME,properties:a}))});g&&a.copyrightShort&&(g.chart.mapCredits=e(g.chart.options.credits.mapText,{geojson:a}),g.chart.mapCreditsFull=e(g.chart.options.credits.mapTextFull,{geojson:a}));return h};w(y.prototype,"addCredits",function(a,d){d=g(!0,this.options.credits,d);this.mapCredits&&(d.href=null);a.call(this,d);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(K);
(function(a){function A(a,d,e,g,c,b,f,l){return["M",a+c,d,"L",a+e-b,d,"C",a+e-b/2,d,a+e,d+b/2,a+e,d+b,"L",a+e,d+g-f,"C",a+e,d+g-f/2,a+e-f/2,d+g,a+e-f,d+g,"L",a+l,d+g,"C",a+l/2,d+g,a,d+g-l/2,a,d+g-l,"L",a,d+c,"C",a,d+c/2,a+c/2,d,a+c,d,"Z"]}var y=a.Chart,C=a.defaultOptions,l=a.each,e=a.extend,g=a.merge,r=a.pick,w=a.Renderer,n=a.SVGRenderer,d=a.VMLRenderer;e(C.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});C.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,
padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var d;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(d=0;d<a.length;d++)/[a-zA-Z]/.test(a[d])||(a[d]=parseFloat(a[d]));return a};a.maps={};n.prototype.symbols.topbutton=function(a,d,e,g,c){return A(a-1,d-1,e,g,c.r,c.r,0,0)};n.prototype.symbols.bottombutton=function(a,
d,e,g,c){return A(a-1,d-1,e,g,0,0,c.r,c.r)};w===d&&l(["topbutton","bottombutton"],function(a){d.prototype.symbols[a]=n.prototype.symbols[a]});a.Map=a.mapChart=function(d,e,l){var h="string"===typeof d||d.nodeName,c=arguments[h?1:0],b={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},f,k=a.getOptions().credits;f=c.series;c.series=null;c=g({chart:{panning:"xy",type:"map"},credits:{mapText:r(k.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),
mapTextFull:r(k.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:b,yAxis:g(b,{reversed:!0})},c,{chart:{inverted:!1,alignTicks:!1}});c.series=f;return h?new y(d,c,l):new y(c,e)}})(K);return K});
//# sourceMappingURL=highmaps.js.map
