highmaps-release
Version:
Official shim repo for Highmaps releases.
105 lines (103 loc) • 209 kB
JavaScript
/*
Highmaps JS v6.0.3 (2017-11-14)
(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:S.Highcharts=K(S)})("undefined"!==typeof window?window:this,function(S){var K=function(){var a="undefined"===typeof S?window:S,y=a.document,C=a.navigator&&a.navigator.userAgent||"",x=y&&y.createElementNS&&!!y.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f=/(edge|msie|trident)/i.test(C)&&!a.opera,d=/Firefox/.test(C),v=d&&4>parseInt(C.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,
!0):{product:"Highmaps",version:"6.0.3",deg2rad:2*Math.PI/360,doc:y,hasBidiBug:v,hasTouch:y&&void 0!==y.documentElement.ontouchstart,isMS:f,isWebKit:/AppleWebKit/.test(C),isFirefox:d,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:x,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){a.timers=[];var y=a.charts,C=a.doc,x=a.win;a.error=function(f,d){f=
a.isNumber(f)?"Highcharts error #"+f+": www.highcharts.com/errors/"+f:f;if(d)throw Error(f);x.console&&console.log(f)};a.Fx=function(a,d,v){this.options=d;this.elem=a;this.prop=v};a.Fx.prototype={dSetter:function(){var a=this.paths[0],d=this.paths[1],v=[],t=this.now,q=a.length,n;if(1===t)v=this.toD;else if(q===d.length&&1>t)for(;q--;)n=parseFloat(a[q]),v[q]=isNaN(n)?d[q]:t*parseFloat(d[q]-n)+n;else v=d;this.elem.attr("d",v,null,!0)},update:function(){var a=this.elem,d=this.prop,v=this.now,t=this.options.step;
if(this[d+"Setter"])this[d+"Setter"]();else a.attr?a.element&&a.attr(d,v,null,!0):a.style[d]=v+this.unit;t&&t.call(a,v,this)},run:function(f,d,v){var t=this,q=t.options,n=function(a){return n.stopped?!1:t.step(a)},l=x.requestAnimationFrame||function(a){setTimeout(a,13)},g=function(){a.timers=a.grep(a.timers,function(a){return a()});a.timers.length&&l(g)};f===d?(delete q.curAnim[this.prop],q.complete&&0===a.keys(q.curAnim).length&&q.complete()):(this.startTime=+new Date,this.start=f,this.end=d,this.unit=
v,this.now=this.start,this.pos=0,n.elem=this.elem,n.prop=this.prop,n()&&1===a.timers.push(n)&&l(g))},step:function(f){var d=+new Date,v,t=this.options,q=this.elem,n=t.complete,l=t.duration,g=t.curAnim;q.attr&&!q.element?f=!1:f||d>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),v=g[this.prop]=!0,a.objectEach(g,function(a){!0!==a&&(v=!1)}),v&&n&&n.call(q),f=!1):(this.pos=t.easing((d-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),f=!0);return f},initPath:function(f,
d,v){function t(a){var b,e;for(c=a.length;c--;)b="M"===a[c]||"L"===a[c],e=/[a-zA-Z]/.test(a[c+3]),b&&e&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function q(a,b){for(;a.length<e;){a[0]=b[e-a.length];var g=a.slice(0,k);[].splice.apply(a,[0,0].concat(g));h&&(g=a.slice(a.length-k),[].splice.apply(a,[a.length,0].concat(g)),c--)}a[0]="M"}function n(a,c){for(var g=(e-a.length)/k;0<g&&g--;)b=a.slice().splice(a.length/D-k,k*D),b[0]=c[e-k-g*k],m&&(b[k-6]=b[k-2],b[k-5]=b[k-1]),[].splice.apply(a,[a.length/
D,0].concat(b)),h&&g--}d=d||"";var l,g=f.startX,r=f.endX,m=-1<d.indexOf("C"),k=m?7:3,e,b,c;d=d.split(" ");v=v.slice();var h=f.isArea,D=h?2:1,I;m&&(t(d),t(v));if(g&&r){for(c=0;c<g.length;c++)if(g[c]===r[0]){l=c;break}else if(g[0]===r[r.length-g.length+c]){l=c;I=!0;break}void 0===l&&(d=[])}d.length&&a.isNumber(l)&&(e=v.length+l*D*k,I?(q(d,v),n(v,d)):(q(v,d),n(d,v)));return[d,v]}};a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),
this.pos),null,!0)};a.extend=function(a,d){var f;a||(a={});for(f in d)a[f]=d[f];return a};a.merge=function(){var f,d=arguments,v,t={},q=function(f,l){"object"!==typeof f&&(f={});a.objectEach(l,function(g,r){!a.isObject(g,!0)||a.isClass(g)||a.isDOMElement(g)?f[r]=l[r]:f[r]=q(f[r]||{},g)});return f};!0===d[0]&&(t=d[1],d=Array.prototype.slice.call(d,2));v=d.length;for(f=0;f<v;f++)t=q(t,d[f]);return t};a.pInt=function(a,d){return parseInt(a,d||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(f,d){return!!f&&"object"===typeof f&&(!d||!a.isArray(f))};a.isDOMElement=function(f){return a.isObject(f)&&"number"===typeof f.nodeType};a.isClass=function(f){var d=f&&f.constructor;return!(!a.isObject(f,!0)||a.isDOMElement(f)||!d||!d.name||"Object"===d.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)};a.erase=function(a,d){for(var f=a.length;f--;)if(a[f]===
d){a.splice(f,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(f,d,v){var t;a.isString(d)?a.defined(v)?f.setAttribute(d,v):f&&f.getAttribute&&(t=f.getAttribute(d)):a.defined(d)&&a.isObject(d)&&a.objectEach(d,function(a,d){f.setAttribute(d,a)});return t};a.splat=function(f){return a.isArray(f)?f:[f]};a.syncTimeout=function(a,d,v){if(d)return setTimeout(a,d,v);a.call(0,v)};a.pick=function(){var a=arguments,d,v,t=a.length;for(d=0;d<t;d++)if(v=a[d],void 0!==v&&null!==v)return v};
a.css=function(f,d){a.isMS&&!a.svg&&d&&void 0!==d.opacity&&(d.filter="alpha(opacity\x3d"+100*d.opacity+")");a.extend(f.style,d)};a.createElement=function(f,d,v,t,q){f=C.createElement(f);var n=a.css;d&&a.extend(f,d);q&&n(f,{padding:0,border:"none",margin:0});v&&n(f,v);t&&t.appendChild(f);return f};a.extendClass=function(f,d){var v=function(){};v.prototype=new f;a.extend(v.prototype,d);return v};a.pad=function(a,d,v){return Array((d||2)+1-String(a).length).join(v||0)+a};a.relativeLength=function(a,
d,v){return/%$/.test(a)?d*parseFloat(a)/100+(v||0):parseFloat(a)};a.wrap=function(a,d,v){var f=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){f.apply(l,arguments.length?arguments:d)};a.unshift(f);a=v.apply(this,a);l.proceed=null;return a}};a.getTZOffset=function(f){var d=a.Date;return 6E4*(d.hcGetTimezoneOffset&&d.hcGetTimezoneOffset(f)||d.hcTimezoneOffset||0)};a.dateFormat=function(f,d,v){if(!a.defined(d)||isNaN(d))return a.defaultOptions.lang.invalidDate||
"";f=a.pick(f,"%Y-%m-%d %H:%M:%S");var t=a.Date,q=new t(d-a.getTZOffset(d)),n=q[t.hcGetHours](),l=q[t.hcGetDay](),g=q[t.hcGetDate](),r=q[t.hcGetMonth](),m=q[t.hcGetFullYear](),k=a.defaultOptions.lang,e=k.weekdays,b=k.shortWeekdays,c=a.pad,t=a.extend({a:b?b[l]:e[l].substr(0,3),A:e[l],d:c(g),e:c(g,2," "),w:l,b:k.shortMonths[r],B:k.months[r],m:c(r+1),y:m.toString().substr(2,2),Y:m,H:c(n),k:n,I:c(n%12||12),l:n%12||12,M:c(q[t.hcGetMinutes]()),p:12>n?"AM":"PM",P:12>n?"am":"pm",S:c(q.getSeconds()),L:c(Math.round(d%
1E3),3)},a.dateFormats);a.objectEach(t,function(a,b){for(;-1!==f.indexOf("%"+b);)f=f.replace("%"+b,"function"===typeof a?a(d):a)});return v?f.substr(0,1).toUpperCase()+f.substr(1):f};a.formatSingle=function(f,d){var v=/\.([0-9])/,t=a.defaultOptions.lang;/f$/.test(f)?(v=(v=f.match(v))?v[1]:-1,null!==d&&(d=a.numberFormat(d,v,t.decimalPoint,-1<f.indexOf(",")?t.thousandsSep:""))):d=a.dateFormat(f,d);return d};a.format=function(f,d){for(var v="{",t=!1,q,n,l,g,r=[],m;f;){v=f.indexOf(v);if(-1===v)break;
q=f.slice(0,v);if(t){q=q.split(":");n=q.shift().split(".");g=n.length;m=d;for(l=0;l<g;l++)m&&(m=m[n[l]]);q.length&&(m=a.formatSingle(q.join(":"),m));r.push(m)}else r.push(q);f=f.slice(v+1);v=(t=!t)?"}":"{"}r.push(f);return r.join("")};a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(f,d,v,t,q){var n,l=f;v=a.pick(v,1);n=f/v;d||(d=q?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===t&&(1===v?d=a.grep(d,function(a){return 0===a%1}):.1>=
v&&(d=[1/v])));for(t=0;t<d.length&&!(l=d[t],q&&l*v>=f||!q&&n<=(d[t]+(d[t+1]||d[t]))/2);t++);return l=a.correctFloat(l*v,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,d){var f=a.length,t,q;for(q=0;q<f;q++)a[q].safeI=q;a.sort(function(a,l){t=d(a,l);return 0===t?a.safeI-l.safeI:t});for(q=0;q<f;q++)delete a[q].safeI};a.arrayMin=function(a){for(var d=a.length,f=a[0];d--;)a[d]<f&&(f=a[d]);return f};a.arrayMax=function(a){for(var d=a.length,f=a[0];d--;)a[d]>f&&(f=a[d]);return f};a.destroyObjectProperties=
function(f,d){a.objectEach(f,function(a,t){a&&a!==d&&a.destroy&&a.destroy();delete f[t]})};a.discardElement=function(f){var d=a.garbageBin;d||(d=a.createElement("div"));f&&d.appendChild(f);d.innerHTML=""};a.correctFloat=function(a,d){return parseFloat(a.toPrecision(d||14))};a.setAnimation=function(f,d){d.renderer.globalAnimation=a.pick(f,d.options.chart.animation,!0)};a.animObject=function(f){return a.isObject(f)?a.merge(f):{duration:f?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,
day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(f,d,v,t){f=+f||0;d=+d;var q=a.defaultOptions.lang,n=(f.toString().split(".")[1]||"").split("e")[0].length,l,g,r=f.toString().split("e");-1===d?d=Math.min(n,20):a.isNumber(d)||(d=2);g=(Math.abs(r[1]?r[0]:f)+Math.pow(10,-Math.max(d,n)-1)).toFixed(d);n=String(a.pInt(g));l=3<n.length?n.length%3:0;v=a.pick(v,q.decimalPoint);t=a.pick(t,q.thousandsSep);f=(0>f?"-":"")+(l?n.substr(0,l)+t:"");f+=n.substr(l).replace(/(\d{3})(?=\d)/g,
"$1"+t);d&&(f+=v+g.slice(-d));r[1]&&(f+="e"+r[1]);return f};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(f,d,v){if("width"===d)return Math.min(f.offsetWidth,f.scrollWidth)-a.getStyle(f,"padding-left")-a.getStyle(f,"padding-right");if("height"===d)return Math.min(f.offsetHeight,f.scrollHeight)-a.getStyle(f,"padding-top")-a.getStyle(f,"padding-bottom");x.getComputedStyle||a.error(27,!0);if(f=x.getComputedStyle(f,void 0))f=f.getPropertyValue(d),a.pick(v,"opacity"!==
d)&&(f=a.pInt(f));return f};a.inArray=function(f,d){return(a.indexOfPolyfill||Array.prototype.indexOf).call(d,f)};a.grep=function(f,d){return(a.filterPolyfill||Array.prototype.filter).call(f,d)};a.find=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var f,t=a.length;for(f=0;f<t;f++)if(d(a[f],f))return a[f]};a.map=function(a,d){for(var f=[],t=0,q=a.length;t<q;t++)f[t]=d.call(a[t],a[t],t,a);return f};a.keys=function(f){return(a.keysPolyfill||Object.keys).call(void 0,f)};a.reduce=
function(f,d,v){return(a.reducePolyfill||Array.prototype.reduce).call(f,d,v)};a.offset=function(a){var d=C.documentElement;a=a.parentElement?a.getBoundingClientRect():{top:0,left:0};return{top:a.top+(x.pageYOffset||d.scrollTop)-(d.clientTop||0),left:a.left+(x.pageXOffset||d.scrollLeft)-(d.clientLeft||0)}};a.stop=function(f,d){for(var v=a.timers.length;v--;)a.timers[v].elem!==f||d&&d!==a.timers[v].prop||(a.timers[v].stopped=!0)};a.each=function(f,d,v){return(a.forEachPolyfill||Array.prototype.forEach).call(f,
d,v)};a.objectEach=function(a,d,v){for(var f in a)a.hasOwnProperty(f)&&d.call(v,a[f],f,a)};a.addEvent=function(f,d,v){var t,q,n=f.addEventListener||a.addEventListenerPolyfill;f.hcEvents&&!f.hasOwnProperty("hcEvents")&&(q={},a.objectEach(f.hcEvents,function(a,g){q[g]=a.slice(0)}),f.hcEvents=q);t=f.hcEvents=f.hcEvents||{};n&&n.call(f,d,v,!1);t[d]||(t[d]=[]);t[d].push(v);return function(){a.removeEvent(f,d,v)}};a.removeEvent=function(f,d,v){function t(g,l){var k=f.removeEventListener||a.removeEventListenerPolyfill;
k&&k.call(f,g,l,!1)}function q(){var g,m;f.nodeName&&(d?(g={},g[d]=!0):g=l,a.objectEach(g,function(a,e){if(l[e])for(m=l[e].length;m--;)t(e,l[e][m])}))}var n,l=f.hcEvents,g;l&&(d?(n=l[d]||[],v?(g=a.inArray(v,n),-1<g&&(n.splice(g,1),l[d]=n),t(d,v)):(q(),l[d]=[])):(q(),f.hcEvents={}))};a.fireEvent=function(f,d,v,t){var q;q=f.hcEvents;var n,l;v=v||{};if(C.createEvent&&(f.dispatchEvent||f.fireEvent))q=C.createEvent("Events"),q.initEvent(d,!0,!0),a.extend(q,v),f.dispatchEvent?f.dispatchEvent(q):f.fireEvent(d,
q);else if(q)for(q=q[d]||[],n=q.length,v.target||a.extend(v,{preventDefault:function(){v.defaultPrevented=!0},target:f,type:d}),d=0;d<n;d++)(l=q[d])&&!1===l.call(f,v)&&v.preventDefault();t&&!v.defaultPrevented&&t(v)};a.animate=function(f,d,v){var t,q="",n,l,g;a.isObject(v)||(g=arguments,v={duration:g[2],easing:g[3],complete:g[4]});a.isNumber(v.duration)||(v.duration=400);v.easing="function"===typeof v.easing?v.easing:Math[v.easing]||Math.easeInOutSine;v.curAnim=a.merge(d);a.objectEach(d,function(g,
m){a.stop(f,m);l=new a.Fx(f,v,m);n=null;"d"===m?(l.paths=l.initPath(f,f.d,d.d),l.toD=d.d,t=0,n=1):f.attr?t=f.attr(m):(t=parseFloat(a.getStyle(f,m))||0,"opacity"!==m&&(q="px"));n||(n=g);n&&n.match&&n.match("px")&&(n=n.replace(/px/g,""));l.run(t,n,q)})};a.seriesType=function(f,d,v,t,q){var n=a.getOptions(),l=a.seriesTypes;n.plotOptions[f]=a.merge(n.plotOptions[d],v);l[f]=a.extendClass(l[d]||function(){},t);l[f].prototype.type=f;q&&(l[f].prototype.pointClass=a.extendClass(a.Point,q));return l[f]};a.uniqueKey=
function(){var a=Math.random().toString(36).substring(2,9),d=0;return function(){return"highcharts-"+a+"-"+d++}}();x.jQuery&&(x.jQuery.fn.highcharts=function(){var f=[].slice.call(arguments);if(this[0])return f[0]?(new (a[a.isString(f[0])?f.shift():"Chart"])(this[0],f[0],f[1]),this):y[a.attr(this[0],"data-highcharts-chart")]})})(K);(function(a){var y=a.each,C=a.isNumber,x=a.map,f=a.merge,d=a.pInt;a.Color=function(d){if(!(this instanceof a.Color))return new a.Color(d);this.init(d)};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[d(a[1]),d(a[2]),d(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[d(a[1]),d(a[2]),d(a[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(d){var f,q,n,l;if((this.input=d=this.names[d&&d.toLowerCase?d.toLowerCase():""]||d)&&d.stops)this.stops=x(d.stops,
function(g){return new a.Color(g[1])});else if(d&&d.charAt&&"#"===d.charAt()&&(f=d.length,d=parseInt(d.substr(1),16),7===f?q=[(d&16711680)>>16,(d&65280)>>8,d&255,1]:4===f&&(q=[(d&3840)>>4|(d&3840)>>8,(d&240)>>4|d&240,(d&15)<<4|d&15,1])),!q)for(n=this.parsers.length;n--&&!q;)l=this.parsers[n],(f=l.regex.exec(d))&&(q=l.parse(f));this.rgba=q||[]},get:function(a){var d=this.input,q=this.rgba,n;this.stops?(n=f(d),n.stops=[].concat(n.stops),y(this.stops,function(l,g){n.stops[g]=[n.stops[g][0],l.get(a)]})):
n=q&&C(q[0])?"rgb"===a||!a&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===a?q[3]:"rgba("+q.join(",")+")":d;return n},brighten:function(a){var f,q=this.rgba;if(this.stops)y(this.stops,function(d){d.brighten(a)});else if(C(a)&&0!==a)for(f=0;3>f;f++)q[f]+=d(255*a),0>q[f]&&(q[f]=0),255<q[f]&&(q[f]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,d){var f=this.rgba,n=a.rgba;n.length&&f&&f.length?(a=1!==n[3]||1!==f[3],d=(a?"rgba(":"rgb(")+Math.round(n[0]+(f[0]-
n[0])*(1-d))+","+Math.round(n[1]+(f[1]-n[1])*(1-d))+","+Math.round(n[2]+(f[2]-n[2])*(1-d))+(a?","+(n[3]+(f[3]-n[3])*(1-d)):"")+")"):d=a.input||"none";return d}};a.color=function(d){return new a.Color(d)}})(K);(function(a){function y(){var d=a.defaultOptions.global,f=t.moment;if(d.timezone){if(f)return function(a){return-f.tz(a,d.timezone).utcOffset()};a.error(25)}return d.useUTC&&d.getTimezoneOffset}function C(){var d=a.defaultOptions.global,n,l=d.useUTC,g=l?"getUTC":"get",r=l?"setUTC":"set",m="Minutes Hours Day Date Month FullYear".split(" "),
k=m.concat(["Milliseconds","Seconds"]);a.Date=n=d.Date||t.Date;n.hcTimezoneOffset=l&&d.timezoneOffset;n.hcGetTimezoneOffset=y();n.hcMakeTime=function(a,b,c,k,g,d){var e;l?(e=n.UTC.apply(0,arguments),e+=f(e)):e=(new n(a,b,v(c,1),v(k,0),v(g,0),v(d,0))).getTime();return e};for(d=0;d<m.length;d++)n["hcGet"+m[d]]=g+m[d];for(d=0;d<k.length;d++)n["hcSet"+k[d]]=r+k[d]}var x=a.color,f=a.getTZOffset,d=a.merge,v=a.pick,t=a.win;a.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),
symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".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:{useUTC:!0},chart:{borderRadius:0,
defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},
borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",
backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation: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,backgroundColor:x("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'\x3cspan style\x3d"font-size: 10px"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',
pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.setOptions=function(f){a.defaultOptions=d(!0,a.defaultOptions,f);C();
return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;C()})(K);(function(a){var y,C,x=a.addEvent,f=a.animate,d=a.attr,v=a.charts,t=a.color,q=a.css,n=a.createElement,l=a.defined,g=a.deg2rad,r=a.destroyObjectProperties,m=a.doc,k=a.each,e=a.extend,b=a.erase,c=a.grep,h=a.hasTouch,D=a.inArray,I=a.isArray,B=a.isFirefox,J=a.isMS,F=a.isObject,z=a.isString,N=a.isWebKit,w=a.merge,G=a.noop,E=a.objectEach,H=a.pick,p=a.pInt,u=a.removeEvent,
Q=a.stop,M=a.svg,O=a.SVG_NS,L=a.symbolSizes,R=a.win;y=a.SVGElement=function(){return this};e(y.prototype,{opacity:1,SVG_NS:O,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(a,b){this.element="span"===b?n(b):m.createElementNS(this.SVG_NS,b);this.renderer=a},animate:function(b,p,c){p=a.animObject(H(p,this.renderer.globalAnimation,!0));0!==p.duration?(c&&(p.complete=c),f(this,b,p)):(this.attr(b,
null,c),p.step&&p.step.call(this));return this},colorGradient:function(b,p,c){var A=this.renderer,u,e,h,P,g,d,M,m,G,L,r=[],f;b.radialGradient?e="radialGradient":b.linearGradient&&(e="linearGradient");e&&(h=b[e],g=A.gradients,M=b.stops,L=c.radialReference,I(h)&&(b[e]=h={x1:h[0],y1:h[1],x2:h[2],y2:h[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===e&&L&&!l(h.gradientUnits)&&(P=h,h=w(h,A.getRadialAttr(L,P),{gradientUnits:"userSpaceOnUse"})),E(h,function(a,b){"id"!==b&&r.push(b,a)}),E(M,function(a){r.push(a)}),
r=r.join(","),g[r]?L=g[r].attr("id"):(h.id=L=a.uniqueKey(),g[r]=d=A.createElement(e).attr(h).add(A.defs),d.radAttr=P,d.stops=[],k(M,function(b){0===b[1].indexOf("rgba")?(u=a.color(b[1]),m=u.get("rgb"),G=u.get("a")):(m=b[1],G=1);b=A.createElement("stop").attr({offset:b[0],"stop-color":m,"stop-opacity":G}).add(d);d.stops.push(b)})),f="url("+A.url+"#"+L+")",c.setAttribute(p,f),c.gradient=r,b.toString=function(){return f})},applyTextOutline:function(A){var p=this.element,c,u,e,h,g;-1!==A.indexOf("contrast")&&
(A=A.replace(/contrast/g,this.renderer.getContrast(p.style.fill)));A=A.split(" ");u=A[A.length-1];if((e=A[0])&&"none"!==e&&a.svg){this.fakeTS=!0;A=[].slice.call(p.getElementsByTagName("tspan"));this.ySetter=this.xSetter;e=e.replace(/(^[\d\.]+)(.*?)$/g,function(a,b,A){return 2*b+A});for(g=A.length;g--;)c=A[g],"highcharts-text-outline"===c.getAttribute("class")&&b(A,p.removeChild(c));h=p.firstChild;k(A,function(a,b){0===b&&(a.setAttribute("x",p.getAttribute("x")),b=p.getAttribute("y"),a.setAttribute("y",
b||0),null===b&&p.setAttribute("y",0));a=a.cloneNode(1);d(a,{"class":"highcharts-text-outline",fill:u,stroke:u,"stroke-width":e,"stroke-linejoin":"round"});p.insertBefore(a,h)})}},attr:function(a,b,p,c){var A,u=this.element,e,k=this,h,g;"string"===typeof a&&void 0!==b&&(A=a,a={},a[A]=b);"string"===typeof a?k=(this[a+"Getter"]||this._defaultGetter).call(this,a,u):(E(a,function(b,A){h=!1;c||Q(this,A);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(A)&&(e||(this.symbolAttr(a),
e=!0),h=!0);!this.rotation||"x"!==A&&"y"!==A||(this.doTransform=!0);h||(g=this[A+"Setter"]||this._defaultSetter,g.call(this,b,A,u),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(A)&&this.updateShadows(A,b,g))},this),this.afterSetters());p&&p();return k},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,b,p){for(var A=this.shadows,c=A.length;c--;)p.call(A[c],"height"===a?Math.max(b-(A[c].cutHeight||0),0):"d"===
a?this.d:b,a,A[c])},addClass:function(a,b){var A=this.attr("class")||"";-1===A.indexOf(a)&&(b||(a=(A+(A?" ":"")+a).replace(" "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==D(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var b=this;k("x y r start end width height innerR anchorX anchorY".split(" "),function(A){b[A]=H(a[A],b[A])});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 A=this,p={},c;b=b||a.strokeWidth||0;c=Math.round(b)%2/2;a.x=Math.floor(a.x||A.x||0)+c;a.y=Math.floor(a.y||A.y||0)+c;a.width=Math.floor((a.width||A.width||0)-2*c);a.height=Math.floor((a.height||A.height||0)-2*c);l(a.strokeWidth)&&(a.strokeWidth=b);E(a,function(a,b){A[b]!==a&&(A[b]=p[b]=a)});return p},css:function(a){var b=this.styles,A={},c=this.element,
u,k="",h,g=!b,w=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);b&&E(a,function(a,p){a!==b[p]&&(A[p]=a,g=!0)});g&&(b&&(a=e(b,A)),u=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===c.nodeName.toLowerCase()&&p(a.width),this.styles=a,u&&!M&&this.renderer.forExport&&delete a.width,J&&!M?q(this.element,a):(h=function(a,b){return"-"+b.toLowerCase()},E(a,function(a,b){-1===D(b,w)&&(k+=b.replace(/([A-Z])/g,h)+":"+a+";")}),k&&d(c,"style",k)),this.added&&("text"===this.element.nodeName&&
this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},strokeWidth:function(){return this["stroke-width"]||0},on:function(a,b){var A=this,p=A.element;h&&"click"===a?(p.ontouchstart=function(a){A.touchEventFired=Date.now();a.preventDefault();b.call(p,a)},p.onclick=function(a){(-1===R.navigator.userAgent.indexOf("Android")||1100<Date.now()-(A.touchEventFired||0))&&b.call(p,a)}):p["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,p=this.scaleX,c=this.scaleY,u=this.inverted,e=this.rotation,k=this.matrix,h=this.element;u&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];l(k)&&a.push("matrix("+k.join(",")+
")");u?a.push("rotate(90) scale(-1,1)"):e&&a.push("rotate("+e+" "+H(this.rotationOriginX,h.getAttribute("x"),0)+" "+H(this.rotationOriginY,h.getAttribute("y")||0)+")");(l(p)||l(c))&&a.push("scale("+H(p,1)+" "+H(c,1)+")");a.length&&h.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,p,c){var A,u,e,k,h={};u=this.renderer;e=u.alignedObjects;var g,w;if(a){if(this.alignOptions=a,this.alignByTranslate=p,!c||z(c))this.alignTo=
A=c||"renderer",b(e,this),e.push(this),c=null}else a=this.alignOptions,p=this.alignByTranslate,A=this.alignTo;c=H(c,u[A],u);A=a.align;u=a.verticalAlign;e=(c.x||0)+(a.x||0);k=(c.y||0)+(a.y||0);"right"===A?g=1:"center"===A&&(g=2);g&&(e+=(c.width-(a.width||0))/g);h[p?"translateX":"x"]=Math.round(e);"bottom"===u?w=1:"middle"===u&&(w=2);w&&(k+=(c.height-(a.height||0))/w);h[p?"translateY":"y"]=Math.round(k);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a,
b){var p,A=this.renderer,c,u=this.element,h=this.styles,w,d=this.textStr,P,M=A.cache,m=A.cacheKeys,L;b=H(b,this.rotation);c=b*g;w=h&&h.fontSize;l(d)&&(L=d.toString(),-1===L.indexOf("\x3c")&&(L=L.replace(/[0-9]/g,"0")),L+=["",b||0,w,h&&h.width,h&&h.textOverflow].join());L&&!a&&(p=M[L]);if(!p){if(u.namespaceURI===this.SVG_NS||A.forExport){try{(P=this.fakeTS&&function(a){k(u.querySelectorAll(".highcharts-text-outline"),function(b){b.style.display=a})})&&P("none"),p=u.getBBox?e({},u.getBBox()):{width:u.offsetWidth,
height:u.offsetHeight},P&&P("")}catch(W){}if(!p||0>p.width)p={width:0,height:0}}else p=this.htmlGetBBox();A.isSVG&&(a=p.width,A=p.height,h&&"11px"===h.fontSize&&17===Math.round(A)&&(p.height=A=14),b&&(p.width=Math.abs(A*Math.sin(c))+Math.abs(a*Math.cos(c)),p.height=Math.abs(A*Math.cos(c))+Math.abs(a*Math.sin(c))));if(L&&0<p.height){for(;250<m.length;)delete M[m.shift()];M[L]||m.push(L);M[L]=p}}return p},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,p=this.element,c;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)c=this.zIndexSetter();c||(a?a.element:b.box).appendChild(p);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=
this,p=a.element||{},c=a.renderer.isSVG&&"SPAN"===p.nodeName&&a.parentGroup,u=p.ownerSVGElement;p.onclick=p.onmouseout=p.onmouseover=p.onmousemove=p.point=null;Q(a);a.clipPath&&u&&(k(u.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){b.getAttribute("clip-path").match(RegExp('[("]#'+a.clipPath.element.id+'[)"]'))&&b.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy());if(a.stops){for(u=0;u<a.stops.length;u++)a.stops[u]=a.stops[u].destroy();a.stops=null}a.safeRemoveChild(p);for(a.destroyShadows();c&&
c.div&&0===c.div.childNodes.length;)p=c.parentGroup,a.safeRemoveChild(c.div),delete c.div,c=p;a.alignTo&&b(a.renderer.alignedObjects,a);E(a,function(b,p){delete a[p]});return null},shadow:function(a,b,p){var c=[],u,A,e=this.element,k,h,g,w;if(!a)this.destroyShadows();else if(!this.shadows){h=H(a.width,3);g=(a.opacity||.15)/h;w=this.parentInverted?"(-1,-1)":"("+H(a.offsetX,1)+", "+H(a.offsetY,1)+")";for(u=1;u<=h;u++)A=e.cloneNode(0),k=2*h+1-2*u,d(A,{isShadow:"true",stroke:a.color||"#000000","stroke-opacity":g*
u,"stroke-width":k,transform:"translate"+w,fill:"none"}),p&&(d(A,"height",Math.max(d(A,"height")-k,0)),A.cutHeight=k),b?b.element.appendChild(A):e.parentNode&&e.parentNode.insertBefore(A,e),c.push(A);this.shadows=c}return this},destroyShadows:function(){k(this.shadows||[],function(a){this.safeRemoveChild(a)},this);this.shadows=void 0},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=H(this[a],this.element?
this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,p){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[b]!==a&&(p.setAttribute(b,a),this[b]=a)},dashstyleSetter:function(a){var b,c=this["stroke-width"];"inherit"===c&&(c=1);if(a=a&&a.toLowerCase()){a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,
"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=a.length;b--;)a[b]=p(a[b])*c;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,p){this[b]=a;p.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=m.createElementNS(this.SVG_NS,"title"),this.element.appendChild(b));
b.firstChild&&b.removeChild(b.firstChild);b.appendChild(m.createTextNode(String(H(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,p){"string"===typeof a?p.setAttribute(b,a):a&&this.colorGradient(a,b,p)},visibilitySetter:function(a,b,p){"inherit"===a?p.removeAttribute(b):this[b]!==a&&p.setAttribute(b,a);this[b]=a},zIndexSetter:function(a,b){var c=this.renderer,u=this.parentGroup,
e=(u||c).element||c.box,k,h=this.element,A,g,c=e===c.box;k=this.added;var w;l(a)&&(h.zIndex=a,a=+a,this[b]===a&&(k=!1),this[b]=a);if(k){(a=this.zIndex)&&u&&(u.handleZ=!0);b=e.childNodes;for(w=b.length-1;0<=w&&!A;w--)if(u=b[w],k=u.zIndex,g=!l(k),u!==h)if(0>a&&g&&!c&&!w)e.insertBefore(h,b[w]),A=!0;else if(p(k)<=a||g&&(!l(a)||0<=a))e.insertBefore(h,b[w+1]||null),A=!0;A||(e.insertBefore(h,b[c?3:0]||null),A=!0)}return A},_defaultSetter:function(a,b,p){p.setAttribute(b,a)}});y.prototype.yGetter=y.prototype.xGetter;
y.prototype.translateXSetter=y.prototype.translateYSetter=y.prototype.rotationSetter=y.prototype.verticalAlignSetter=y.prototype.rotationOriginXSetter=y.prototype.rotationOriginYSetter=y.prototype.scaleXSetter=y.prototype.scaleYSetter=y.prototype.matrixSetter=function(a,b){this[b]=a;this.doTransform=!0};y.prototype["stroke-widthSetter"]=y.prototype.strokeSetter=function(a,b,p){this[b]=a;this.stroke&&this["stroke-width"]?(y.prototype.fillSetter.call(this,this.stroke,"stroke",p),p.setAttribute("stroke-width",
this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&(p.removeAttribute("stroke"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};e(C.prototype,{Element:y,SVG_NS:O,init:function(a,b,p,c,u,e){var k;c=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}).css(this.getStyle(c));k=c.element;a.appendChild(k);d(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&d(k,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=k;this.boxWrapper=
c;this.alignedObjects=[];this.url=(B||N)&&m.getElementsByTagName("base").length?R.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(m.createTextNode("Created with Highmaps 6.0.3"));this.defs=this.createElement("defs").add();this.allowHTML=e;this.forExport=u;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,p,!1);var h;B&&a.getBoundingClientRect&&(b=function(){q(a,
{left:0,top:0});h=a.getBoundingClientRect();q(a,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})},b(),this.unSubPixelFix=x(R,"resize",b))},getStyle:function(a){return this.style=e({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();
r(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:G,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]}},getSpanWidth:function(a,b){var p=a.getBBox(!0).width;!M&&this.forExport&&(p=this.measureSpanWidth(b.firstChild.data,a.styles));return p},applyEllipsis:function(a,b,p,c){var u=a.rotation,
e=p,k,h=0,g=p.length,A=function(a){b.removeChild(b.firstChild);a&&b.appendChild(m.createTextNode(a))},w;a.rotation=0;e=this.getSpanWidth(a,b);if(w=e>c){for(;h<=g;)k=Math.ceil((h+g)/2),e=p.substring(0,k)+"\u2026",A(e),e=this.getSpanWidth(a,b),h===g?h=g+1:e>c?g=k-1:h=k;0===g&&A("")}a.rotation=u;return w},escapes:{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;","'":"\x26#39;",'"':"\x26quot"},buildText:function(a){var b=a.element,u=this,e=u.forExport,h=H(a.textStr,"").toString(),g=-1!==h.indexOf("\x3c"),
w=b.childNodes,A,l,L,G,r=d(b,"x"),f=a.styles,F=a.textWidth,B=f&&f.lineHeight,D=f&&f.textOutline,z=f&&"ellipsis"===f.textOverflow,n=f&&"nowrap"===f.whiteSpace,Q=f&&f.fontSize,I,R,v=w.length,f=F&&!a.added&&this.box,J=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:Q||u.style.fontSize||12;return B?p(B):u.fontMetrics(c,a.getAttribute("style")?a:b).h},t=function(a){E(u.escapes,function(b,p){a=a.replace(new RegExp(b,"g"),p)});return a};I=[h,z,n,B,D,Q,F].join();if(I!==a.textCache){for(a.textCache=
I;v--;)b.removeChild(w[v]);g||D||z||F||-1!==h.indexOf(" ")?(A=/<.*class="([^"]+)".*>/,l=/<.*style="([^"]+)".*>/,L=/<.*href="([^"]+)".*>/,f&&f.appendChild(b),h=g?h.replace(/<(b|strong)>/g,'\x3cspan style\x3d"font-weight:bold"\x3e').replace(/<(i|em)>/g,'\x3cspan style\x3d"font-style:italic"\x3e').replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[h],h=c(h,function(a){return""!==a}),k(h,function(p,c){var h,g=0;p=p.replace(/^\s+|\s+$/g,"").replace(/<span/g,
"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");h=p.split("|||");k(h,function(p){if(""!==p||1===h.length){var k={},w=m.createElementNS(u.SVG_NS,"tspan"),f,E;A.test(p)&&(f=p.match(A)[1],d(w,"class",f));l.test(p)&&(E=p.match(l)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),d(w,"style",E));L.test(p)&&!e&&(d(w,"onclick",'location.href\x3d"'+p.match(L)[1]+'"'),d(w,"class","highcharts-anchor"),q(w,{cursor:"pointer"}));p=t(p.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==p){w.appendChild(m.createTextNode(p));
g?k.dx=0:c&&null!==r&&(k.x=r);d(w,k);b.appendChild(w);!g&&R&&(!M&&e&&q(w,{display:"block"}),d(w,"dy",J(w)));if(F){k=p.replace(/([^\^])-/g,"$1- ").split(" ");f=1<h.length||c||1<k.length&&!n;var B=[],D,P=J(w),Q=a.rotation;for(z&&(G=u.applyEllipsis(a,w,p,F));!z&&f&&(k.length||B.length);)a.rotation=0,D=u.getSpanWidth(a,w),p=D>F,void 0===G&&(G=p),p&&1!==k.length?(w.removeChild(w.firstChild),B.unshift(k.pop())):(k=B,B=[],k.length&&!n&&(w=m.createElementNS(O,"tspan"),d(w,{dy:P,x:r}),E&&d(w,"style",E),b.appendChild(w)),
D>F&&(F=D)),k.length&&w.appendChild(m.createTextNode(k.join(" ").replace(/- /g,"-")));a.rotation=Q}g++}}});R=R||b.childNodes.length}),G&&a.attr("title",a.textStr),f&&f.removeChild(b),D&&a.applyTextOutline&&a.applyTextOutline(D)):b.appendChild(m.createTextNode(t(h)))}},getContrast:function(a){a=t(a).rgba;return 510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,p,c,u,h,k,g,d){var A=this.label(a,b,p,d,null,null,null,null,"button"),M=0;A.attr(w({padding:8,r:2},u));var l,m,L,G;u=w({fill:"#f7f7f7",
stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},u);l=u.style;delete u.style;h=w(u,{fill:"#e6e6e6"},h);m=h.style;delete h.style;k=w(u,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},k);L=k.style;delete k.style;g=w(u,{style:{color:"#cccccc"}},g);G=g.style;delete g.style;x(A.element,J?"mouseover":"mouseenter",function(){3!==M&&A.setState(1)});x(A.element,J?"mouseout":"mouseleave",function(){3!==M&&A.setState(M)});A.setState=function(a){1!==a&&
(A.state=M=a);A.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);A.attr([u,h,k,g][a||0]).css([l,m,L,G][a||0])};A.attr(u).css(e({cursor:"default"},l));return A.on("click",function(a){3!==M&&c.call(A,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={fill:"none"};I(a)?b.d=a:F(a)&&e(b,a);return this.createElement("path").attr(b)},
circle:function(a,b,p){a=F(a)?a:{x:a,y:b,r:p};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,p){p.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,p,c,u,e){F(a)?(c=a,b=c.y,p=c.r,a=c.x):c={innerR:c,start:u,end:e};a=this.symbol("arc",a,b,p,p,c);a.r=p;return a},rect:function(a,b,p,c,u,e){u=F(a)?a.r:u;var h=this.createElement("rect");a=F(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(p,0),height:Math.max(c,0)};void 0!==e&&(a.strokeWidth=e,a=h.crisp(a));a.fill="none";u&&(a.r=u);h.rSetter=
function(a,b,p){d(p,{rx:a,ry:a})};return h.attr(a)},setSize:function(a,b,p){var c=this.alignedObjects,u=c.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:H(p,!0)?void 0:0});u--;)c[u].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,p,c,u){var h={preserveAspectRatio:"none"};1<arguments.length&&e(h,{x:b,
y:p,width:c,height:u});h=this.createElement("image").attr(h);h.element.setAttributeNS?h.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):h.element.setAttribute("hc-svg-href",a);return h},symbol:function(a,b,p,c,u,h){var w=this,g,d=/^url\((.*?)\)$/,M=d.test(a),A=!M&&(this.symbols[a]?a:"circle"),G=A&&this.symbols[A],f=l(b)&&G&&G.call(this.symbols,Math.round(b),Math.round(p),c,u,h),r,E;G?(g=this.path(f),g.attr("fill","none"),e(g,{symbolName:A,x:b,y:p,width:c,height:u}),h&&e(g,h)):M&&(r=
a.match(d)[1],g=this.image(r),g.imgwidth=H(L[r]&&L[r].width,h&&h.width),g.imgheight=H(L[r]&&L[r].height,h&&h.height),E=function(){g.attr({width:g.width,height:g.height})},k(["width","height"],function(a){g[a+"Setter"]=function(a,b){var p={},c=this["img"+b],u="width"===b?"translateX":"translateY";this[b]=a;l(c)&&(this.element&&this.element.setAttribute(b,c),this.alignByTranslate||(p[u]=((this[b]||0)-c)/2,this.attr(p)))}}),l(b)&&g.attr({x:b,y:p}),g.isImg=!0,l(g.imgwidth)&&l(g.imgheight)?E():(g.attr({width:0,
height:0}),n("img",{onload:function(){var a=v[w.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),m.body.appendChild(this));L[r]={width:this.width,height:this.height};g.imgwidth=this.width;g.imgheight=this.height;g.element&&E();this.parentNode&&this.parentNode.removeChild(this);w.imgCount--;if(!w.imgCount&&a&&a.onload)a.onload()},src:r}),this.imgCount++));return g},symbols:{circle:function(a,b,p,c){return this.arc(a+p/2,b+c/2,p/2,c/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,
b,p,c){return["M",a,b,"L",a+p,b,a+p,b+c,a,b+c,"Z"]},triangle:function(a,b,p,c){return["M",a+p/2,b,"L",a+p,b+c,a,b+c,"Z"]},"triangle-down":function(a,b,p,c){return["M",a,b,"L",a+p,b,a+p/2,b+c,"Z"]},diamond:function(a,b,p,c){return["M",a+p/2,b,"L",a+p,b+c/2,a+p/2,b+c,a,b+c/2,"Z"]},arc:function(a,b,p,c,u){var e=u.start,h=u.r||p,k=u.r||c||p,g=u.end-.001;p=u.innerR;c=H(u.open,.001>Math.abs(u.end-u.start-2*Math.PI));var w=Math.cos(e),d=Math.sin(e),M=Math.cos(g),g=Math.sin(g);u=.001>u.end-e-Math.PI?0:1;
h=["M",a+h*w,b+k*d,"A",h,k,0,u,1,a+h*M,b+k*g];l(p)&&h.push(c?"M":"L",a+p*M,b+p*g,"A",p,p,0,u,0,a+p*w,b+p*d);h.push(c?"":"Z");return h},callout:function(a,b,p,c,u){var e=Math.min(u&&u.r||0,p,c),h=e+6,k=u&&u.anchorX;u=u&&u.anchorY;var g;g=["M",a+e,b,"L",a+p-e,b,"C",a+p,b,a+p,b,a+p,b+e,"L",a+p,b+c-e,"C",a+p,b+c,a+p,b+c,a+p-e,b+c,"L",a+e,b+c,"C",a,b+c,a,b+c,a,b+c-e,"L",a,b+e,"C",a,b,a,b,a+e,b];k&&k>p?u>b+h&&u<b+c-h?g.splice(13,3,"L",a+p,u-6,a+p+6,u,a+p,u+6,a+p,b+c-e):g.splice(13,3,"L",a+p,c/2,k,u,a+p,
c/2,a+p,b+c-e):k&&0>k?u>b+h&&u<b+c-h?g.splice(33,3,"L",a,u+6,a-6,u,a,u-6,a,b+e):g.splice(33,3,"L",a,c/2,k,u,a,c/2,a,b+e):u&&u>c&&k>a+h&&k<a+p-h?g.splice(23,3,"L",k+6,b+c,k,b+c+6,k-6,b+c,a+e,b+c):u&&0>u&&k>a+h&&k<a+p-h&&g.splice(3,3,"L",k-6,b,k,b-6,k+6,b,p-e,b);return g}},clipRect:function(b,p,c,u){var e=a.uniqueKey(),h=this.createElement("clipPath").attr({id:e}).add(this.defs);b=this.rect(b,p,c,u,0).add(h);b.id=e;b.clipPath=h;b.count=0;return b},text:function(a,b,p,c){var u={};if(c&&(this.allowHTML||
!this.forExport))return this.html(a,b,p);u.x=Math.round(b||0);p&&(u.y=Math.round(p));if(a||0===a)u.text=a;a=this.createElement("text").attr(u);c||(a.xSetter=function(a,b,p){var c=p.getElementsByTagName("tspan"),u,e=p.getAttribute(b),h;for(h=0;h<c.length;h++)u=c[h],u.getAttribute(b)===e&&u.setAttribute(b,a);p.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=a||b&&b.style&&b.style.fontSize||this.style&&this.style.fontSize;a=/px/.test(a)?p(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,p){var c=a;b&&p&&(c=Math.max(c*Math.cos(b*g),4));return{x:-a/3*Math.sin(b*g),y:c}},label:function(b,p,c,h,g,d,M,m,L){var G=this,f=G.g("button"!==L&&"label"),r=f.text=G.text("",0,0,M).attr({zIndex:1}),E,F,B=0,D=3,z=0,A,Q,n,q,H,I={},O,R,v=/^url\((.*?)\)$/.test(h),J=v,t,P,N,T;L&&f.addClass("highcharts-"+L);J=v;t=function(){return(O||0)%2/2};P=function(){var a=r.element.style,b={};F=(void 0===
A||void 0===Q||H)&&l(r.textStr)&&r.getBBox();f.width=(A||F.width||0)+2*D+z;f.height=(Q||F.height||0)+2*D;R=D+G.fontMetrics(a&&a.fontSize,r).b;J&&(E||(f.box=E=G.symbols[h]||v?G.symbol(h):G.rect(),E.addClass(("button"===L?"":"highcharts-label-box")+(L?" highcharts-"+L+"-box":"")),E.add(f),a=t(),b.x=a,b.y=(m?-R:0)+a),b.width=Math.round(f.width),b.height=Math.round(f.height),E.attr(e(b,I)),I={})};N=function(){var a=z+D,b;b=m?0:R;l(A)&&F&&("center"===H||"right"===H)&&(a+={center:.5,right:1}[H]*(A-F.width));
if(a!==r.x||b!==r.y)r.attr("x",a),void 0!==b&&r.attr("y",b);r.x=a;r.y=b};T=function(a,b){E?E.attr(a,b):I[a]=b};f.onAdd=function(){r.add(f);f.attr({text:b||0===b?b:"",x:p,y:c});E&&l(g)&&f.attr({anchorX:g,anchorY:d})};f.widthSetter=function(b){A=a.isNumber(b)?b:null};f.heightSetter=function(a){Q=a};f["text-alignSetter"]=function(a){H=a};f.paddingSetter=function(a){l(a)&&a!==D&&(D=f.padding=a,N())};f.paddingLeftSetter=function(a){l(a)&&a!==z&&(z=a,N())};f.alignSetter=function(a){a={left:0,center:.5,
right:1}[a];a!==B&&(B=a,F&&f.attr({x:n}))};f.textSetter=function(a){void 0!==a&&r.textSetter(a);P();N()};f["stroke-widthSetter"]=function(a,b){a&&(J=!0);O=this["stroke-width"]=a;T(b,a)};f.strokeSetter=f.fillSetter=f.rSetter=function(a,b){"r"!==b&&("fill"===b&&a&&(J=!0),f[b]=a);T(b,a)};f.anchorXSetter=function(a,b){g=f.anchorX=a;T(b,Math.round(a)-t()-n)};f.anchorYSetter=function(a,b){d=f.anchorY=a;T(b,a-q)};f.xSetter=function(a){f.x=a;B&&(a-=B*((A||F.width)+2*D));n=Math.round(a);f.attr("translateX",
n)};f.ySetter=function(a){q=f.y=Math.round(a);f.attr("translateY",q)};var U=f.css;return e(f,{css:function(a){if(a){var b={};a=w(a);k(f.textProps,function(p){void 0!==a[p]&&(b[p]=a[p],delete a[p])});r.css(b)}return U.call(f,a)},getBBox:function(){return{width:F.width+2*D,height:F.height+2*D,x:F.x-D,y:F.y-D}},shadow:function(a){a&&(P(),E&&E.shadow(a));return f},destroy:function(){u(f.element,"mouseenter");u(f.element,"mouseleave");r&&(r=r.destroy());E&&(E=E.destroy());y.prototype.destroy.call(f);f=
G=P=N=T=null}})}});a.Renderer=C})(K);(function(a){var y=a.attr,C=a.createElement,x=a.css,f=a.defined,d=a.each,v=a.extend,t=a.isFirefox,q=a.isMS,n=a.isWebKit,l=a.pick,g=a.pInt,r=a.SVGRenderer,m=a.win,k=a.wrap;v(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&"SPAN"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=v(this.styles,a);x(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,c=this.translateX||0,h=this.translateY||0,k=this.x||0,l=this.y||0,m=this.textAlign||"left",r={left:0,center:.5,right:1}[m],F=this.styles;x(b,{marginLeft:c,marginTop:h});this.shadows&&d(this.shadows,function(a){x(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&d(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var z=
this.rotation,q=g(this.textWidth),w=F&&F.whiteSpace,G=[z,m,b.innerHTML,this.textWidth,this.textAlign].join();G!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,f(z)&&this.setSpanRotation(z,r,F),x(b,{width:"",whiteSpace:w||"nowrap"}),b.offsetWidth>q&&/[ \-]/.test(b.textContent||b.innerText)&&x(b,{width:q+"px",display:"block",whiteSpace:w||"normal"}),this.getSpanCorrection(b.offsetWidth,F,r,z,m));x(b,{left:k+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"});n&&(F=b.offsetHeight);this.cTT=G}}else this.alignOnAdd=
!0},setSpanRotation:function(a,b,c){var h={},e=this.renderer.getTransformKey();h[e]=h.transform="rotate("+a+"deg)";h[e+(t?"Origin":"-origin")]=h.transformOrigin=100*b+"% "+c+"px";x(this.element,h)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});v(r.prototype,{getTransformKey:function(){return q&&!/Edge/.test(m.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":t?"MozTransform":m.opera?"-o-transform":""},html:function(a,b,c){var h=this.createElement("span"),e=h.element,
g=h.renderer,f=g.isSVG,m=function(a,b){d(["opacity","visibility"],function(c){k(a,c+"Setter",function(a,c,h,e){a.call(this,c,h,e);b[h]=c})})};h.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=l(a,"");h.htmlUpdateTransform()};f&&m(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(a,b){"align"===b&&(b="textAlign");h[b]=a;h.htmlUpdateTransform()};h.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,
position:"absolute"});e.style.whiteSpace="nowrap";h.css=h.htmlCss;f&&(h.add=function(a){var b,c=g.box.parentNode,k=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)k.push(a),a=a.parentGroup;d(k.reverse(),function(a){function e(b,p){a[p]=b;q?w[g.getTransformKey()]="translate("+(a.x||a.translateX)+"px,"+(a.y||a.translateY)+"px)":"translateX"===p?w.left=b+"px":w.top=b+"px";a.doTransform=!0}var w,p=y(a.element,"class");p&&(p={className:p});b=a.div=a.div||C("div",p,{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||c);w=b.style;v(a,{classSetter:function(a){this.element.setAttribute("class",a);b.className=a},on:function(){k[0].div&&h.on.apply({element:k[0].div},arguments);return a},translateXSetter:e,translateYSetter:e});m(a,w)})}}else b=c;b.appendChild(e);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h}})})(K);(function(a){var y=a.correctFloat,C=a.defined,x=a.destroyObjectProperties,
f=a.isNumber,d=a.merge,v=a.pick,t=a.deg2rad;a.Tick=function(a,d,f,g){this.axis=a;this.pos=d;this.type=f||"";this.isNewLabel=this.isNew=!0;f||g||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,f=a.options,l=a.chart,g=a.categories,r=a.names,m=this.pos,k=f.labels,e=a.tickPositions,b=m===e[0],c=m===e[e.length-1],r=g?v(g[m],r[m],m):m,g=this.label,e=e.info,h;a.isDatetimeAxis&&e&&(h=f.dateTimeLabelFormats[e.higherRanks[m]||e.unitName]);this.isFirst=b;this.isLast=c;f=a.labelFormatter.call({axis:a,
chart:l,isFirst:b,isLast:c,dateTimeLabelFormat:h,value:a.isLog?y(a.lin2log(r)):r,pos:m});C(g)?g&&g.attr({text:f}):(this.labelLength=(this.label=g=C(f)&&k.enabled?l.renderer.text(f,0,0,k.useHTML).css(d(k.style)).add(a.labelGroup):null)&&g.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var f=this.axis,d=a.x,g=f.chart.chartWidth,r=f.chart.spacing,m=v(f.labelLeft,Math.min(f.pos,r[3])),r=v(f.labelRight,
Math.max(f.pos+f.len,g-r[1])),k=this.label,e=this.rotation,b={left:0,center:.5,right:1}[f.labelAlign],c=k.getBBox().width,h=f.getSlotWidth(),D=h,q=1,B,J={};if(e)0>e&&d-b*c<m?B=Math.round(d/Math.cos(e*t)-m):0<e&&d+b*c>r&&(B=Math.round((g-d)/Math.cos(e*t)));else if(g=d+(1-b)*c,d-b*c<m?D=a.x+D*(1-b)-m:g>r&&(D=r-a.x+D*b,q=-1),D=Math.min(h,D),D<h&&"center"===f.labelAlign&&(a.x+=q*(h-D-b*(h-Math.min(c,D)))),c>D||f.autoRotation&&(k.styles||{}).width)B=D;B&&(J.width=B,(f.options.labels.style||{}).textOverflow||
(J.textOverflow="ellipsis"),k.css(J))},getPosition:function(a,f,d,g){var l=this.axis,m=l.chart,k=g&&m.oldChartHeight||m.chartHeight;return{x:a?l.translate(f+d,null,null,g)+l.transB:l.left+l.offset+(l.opposite?(g&&m.oldChartWidth|