PageSourceSearch

https://nfthive.io/_next/static/chunks/4b358913-322928946fea1264.js

js nfthive.io collected 2026-09-25 18:39:44 UTC 297,168 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6898],{78840:function(t,e,i){var o,s,r;s="undefined"!=typeof window?window:this,r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],function(){var e,i,o=void 0!==t?t:"undefined"!=typeof window?window:{};return(e=i||(i={})).SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="9.3.3",e.win=o,e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0,i}),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],function(t){function e(i,o,s,r){var n=o?"Highcharts error":"Highcharts warning";32===i&&(i=n+": Deprecated member");var a=h(i),l=a?n+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==r){var c="";a&&(l+="?"),g(r,function(t,e){c+="\n - "+e+": "+t,a&&(l+=encodeURI(e)+"="+encodeURI(t))}),l+=c}y(t,"displayError",{chart:s,code:i,message:l,params:r},function(){if(o)throw Error(l);b.console&&-1===e.messages.indexOf(l)&&console.warn(l)}),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!!t&&"object"==typeof t&&(!e||!s(t))}function n(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||n(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function c(t,e,i){var s;return o(e)?l(i)?t.setAttribute(e,i):t&&t.getAttribute&&((s=t.getAttribute(e))||"class"!==e||(s=t.getAttribute(e+"Name"))):g(e,function(e,i){l(e)?t.setAttribute(i,e):t.removeAttribute(i)}),s}function d(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function p(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function u(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),d(e.style,i)}function f(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function m(e,i,o){function s(i,o){var s=e.removeEventListener||t.removeEventListenerPolyfill;s&&s.call(e,i,o,!1)}function r(t){var o;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;g(r,function(e,i){if(t[i])for(o=t[i].length;o--;)s(i,t[i][o].fn)})}}var n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){var a=n.hcEvents;i?(n=a[i]||[],o?(a[i]=n.filter(function(t){return o!==t.fn}),s(i,o)):(r(a),a[i]=[])):(r(a),delete n.hcEvents)}}function y(e,i,o,s){if(o=o||{},x.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=x.createEvent("Events");r.initEvent(i,!0,!0),o=d(r,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(i,o)}else if(e.hcEvents){o.target||d(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:i}),r=[];for(var n=e,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,n.hcEvents[i])),n=Object.getPrototypeOf(n);a&&r.sort(function(t,e){return t.order-e.order}),r.forEach(function(t){!1===t.fn.call(e,o)&&o.preventDefault()})}s&&!o.defaultPrevented&&s.call(e,o)}var v=t.charts,x=t.doc,b=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var S=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};
1g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,o){t[o]=function(t){var s;return e(32,!1,void 0,((s={})["Highcharts."+o]="use Array."+i,s)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});var k,C,w,M=(k=Math.random().toString(36).substring(2,9)+"-",C=0,function(){return"highcharts-"+(w?"":k)+C++});return b.jQuery&&(b.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new t[o(e[0])?e.shift():"Chart"](this[0],e[0],e[1]),this):v[c(this[0],"data-highcharts-chart")]}),S={addEvent:function(e,i,o,s){void 0===s&&(s={});var r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={}),r=r.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var n=e.addEventListener||t.addEventListenerPolyfill;return n&&n.call(e,i,o,!!t.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:o,order:"number"==typeof s.order?s.order:1/0}),r[i].sort(function(t,e){return t.order-e.order}),function(){m(e,i,o)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:c,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function t(e,i){var o={};return g(e,function(s,n){r(e[n],!0)&&!e.nodeType&&i[n]?Object.keys(s=t(e[n],i[n])).length&&(o[n]=s):(r(e[n])||e[n]!==i[n])&&(o[n]=e[n])}),o},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:f,createElement:function(t,e,i,o,s){return t=x.createElement(t),e&&d(t,e),s&&u(t,{padding:"0",border:"none",margin:"0"}),i&&u(t,i),o&&o.appendChild(t),t},css:u,defined:l,destroyObjectProperties:function(t,e){g(t,function(i,o){i&&i!==e&&i.destroy&&i.destroy(),delete t[o]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:d,extendClass:function(t,e){var i=function(){};return i.prototype=new t,d(i.prototype,e),i},find:S,fireEvent:y,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var i=t.shift();if(void 0===i||"__proto__"===i||!l(e=e[i])||"function"==typeof e||"number"==typeof e.nodeType||e===b)return}return e},getStyle:function o(s,r,n){var a=t.getStyle||o;if("width"===r)return r=Math.min(s.offsetWidth,s.scrollWidth),(n=s.getBoundingClientRect&&s.getBoundingClientRect().width)<r&&n>=r-1&&(r=Math.floor(n)),Math.max(0,r-(a(s,"padding-left",!0)||0)-(a(s,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(a(s,"padding-top",!0)||0)-(a(s,"padding-bottom",!0)||0));if(b.getComputedStyle||e(27,!0),s=b.getComputedStyle(s,void 0)){var h=s.getPropertyValue(r);p(n,"opacity"!==r)&&(h=i(h))}return h},inArray:function(t,i,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:s,isClass:a,isDOMElement:n,isFunction:function(t){return"function"==typeof t},isNumber:h,isObject:r,isString:o,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),g(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||a(i)||n(i)?t[s]=e[s]:t[s]=o(t[s]||{},i))}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=o(i,e[t]);return i},normalizeTickInterval:function(t,e,i,o,s){var r=t,n=t/(i=p(i,1));for(e||(e=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return 0==t%1}):.1>=i&&(e=[1/i]))),o=0;o<e.length&&(r=e[o],(!s||!(r*i>=t))&&(s||!(n<=(e[o]+(e[o+1]||e[o]))/2)));o++);return f(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=x.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}
1).top+(b.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(b.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:m,splat:function(t){return s(t)?t:[t]},stableSort:function(t,e){var i,o,s=t.length;for(o=0;o<s;o++)t[o].safeI=o;for(t.sort(function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i}),o=0;o<s;o++)delete t[o].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:M,useSerialIds:function(t){return w=p(t,w)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,s=this;return s.proceed=function(){o.apply(s,arguments.length?arguments:e)},t.unshift(o),t=i.apply(this,t),s.proceed=null,t}}}}),e(i,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.isNumber,o=e.merge,s=e.pInt;return e=function(){function e(i){this.rgba=[NaN,NaN,NaN,NaN],this.input=i;var o=t.Color;return o&&o!==e?new o(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var i;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var o=t.length,s=parseInt(t.substr(1),16);7===o?i=[(16711680&s)>>16,(65280&s)>>8,255&s,1]:4===o&&(i=[(3840&s)>>4|(3840&s)>>8,(240&s)>>4|240&s,(15&s)<<4|15&s,1])}if(!i)for(s=e.parsers.length;s--&&!i;){var r=e.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,s=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=o(e);return r.stops=[].slice.call(r.stops),this.stops.forEach(function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}),r}return s&&i(s[0])?"rgb"!==t&&(t||1!==s[3])?"a"===t?""+s[3]:"rgba("+s.join(",")+")":"rgb("+s[0]+","+s[1]+","+s[2]+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(var o=0;3>o;o++)e[o]+=s(255*t),0>e[o]&&(e[o]=0),255<e[o]&&(e[o]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var o=this.rgba,s=t.rgba;return i(o[0])&&i(s[0])?((t=1!==s[3]||1!==o[3])?"rgba(":"rgb(")+Math.round(s[0]+(o[0]-s[0])*(1-e))+","+Math.round(s[1]+(o[1]-s[1])*(1-e))+","+Math.round(s[2]+(o[2]-s[2])*(1-e))+(t?","+(s[3]+(o[3]-s[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],e.None=new e(""),e}()}),e(i,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.win,o=e.defined,s=e.error,r=e.extend,n=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,d=e.splat,p=e.timeUnits,u=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),o=i-this.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()}
1,e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var o=this.getTimezoneOffset(e);return o=e.getTime()-o,e.setTime(o),e["setUTC"+t](i),t=this.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}return this.useUTC||u&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=c(t&&t.useUTC,!0);this.options=t=a(!0,this.options||{},t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,i,o,s,r){if(this.useUTC){var n=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(n);n+=a;var h=this.getTimezoneOffset(n);a!==h?n+=h-a:a-36e5!==this.getTimezoneOffset(n-36e5)||f||(n-=36e5)}else n=new this.Date(t,e,c(i,1),c(o,0),c(s,0),c(r,0)).getTime();return n},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,o=e.getTimezoneOffset,r=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(r)return function(t){return-(6e4*r.tz(t,e.timezone).utcOffset())};s(25)}return this.useUTC&&o?function(t){return 6e4*o(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,s){if(!o(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var n=this,a=new this.Date(i),d=this.get("Hours",a),p=this.get("Day",a),u=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,y=m&&m.weekdays,v=m&&m.shortWeekdays;return h(a=r({a:v?v[p]:y[p].substr(0,3),A:y[p],d:l(u),e:l(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),function(t,o){for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof t?t.call(n,i):t)}),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return n(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var n,a=this,h=[],l={},d=new a.Date(e),u=t.unitRange,f=t.count||1;if(s=c(s,1),o(e)){if(a.set("Milliseconds",d,u>=p.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),u>=p.second&&a.set("Seconds",d,u>=p.minute?0:f*Math.floor(a.get("Seconds",d)/f)),u>=p.minute&&a.set("Minutes",d,u>=p.hour?0:f*Math.floor(a.get("Minutes",d)/f)),u>=p.hour&&a.set("Hours",d,u>=p.day?0:f*Math.floor(a.get("Hours",d)/f)),u>=p.day&&a.set("Date",d,u>=p.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),u>=p.month){a.set("Month",d,u>=p.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}u>=p.year&&a.set("FullYear",d,g-g%f),u===p.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+s+(g<s?-7:0))),g=a.get("FullYear",d),s=a.get("Month",d);var m=a.get("Date",d),y=a.get("Hours",d);for(e=d.getTime(),(a.variableTimezone||!a.useUTC)&&o(i)&&(n=i-e>4*p.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;e<i;)h.push(e),e=u===p.year?a.makeTime(g+d*f,0):u===p.month?a.makeTime(g,s+d*f):n&&(u===p.day||u===p.week)?a.makeTime(g,s,m+d*f*(u===p.day?1:7)):n&&u===p.hour&&1<f?a.makeTime(g,s,m,y+d*f):e+u*f,d++;h.push(e),u<=p.hour&&1e4>h.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,o){var s=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(a in p){if(t===p.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===s.substr(6)){var a="week";break}if(p[a]>t){a=n;break}if(r[a]&&s.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(n=a)}if(a)var h=this.resolveDTLFormat(o[a]).main;return h},e}()}),e(i,"Core/DefaultOptions.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,
1i,o,s,r){e=e.parse;var n=r.merge,a={colors:o.colors,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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:i.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:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var h=new s(n(a.global,a.time));return t={defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return n(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(n(a.global,a.time,t.global,t.time)):i.time=h),a}}}),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var o=t.parse,s=e.win,r=i.isNumber,n=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,o=[];if(1!==i&&e&&t){if(e.length===t.length&&1>i)for(var s=0;s<t.length;s++){for(var n=e[s],a=t[s],h=[],l=0;l<a.length;l++){var c=n[l],d=a[l];r(c)&&r(d)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+i*(d-c):h[l]=d}o.push(h)}else o=t}else o=this.toD||[];this.elem.attr("d",o,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,a=function(t){return!a.stopped&&r.step(t)},h=s.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,i=this.options,o=this.elem,s=i.complete,r=i.duration,a=i.curAnim;if(o.attr&&!o.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;n(a,function(t){!0!==t&&(h=!1)}),h&&s&&s.call(o),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t}
1,t.prototype.initPath=function(t,e,i){var o=t.startX,s=t.endX;i=i.slice();var n=t.isArea,a=n?2:1;if(!(e=e&&e.slice()))return[i,i];if(o&&s&&s.length){for(t=0;t<o.length;t++)if(o[t]===s[0]){var h=t;break}else if(o[0]===s[s.length-o.length+t]){h=t;break}else if(o[o.length-1]===s[s.length-o.length+t]){h=o.length-t;break}void 0===h&&(e=[])}if(e.length&&r(h)){var l=i.length+h*a;(function(t,e){for(;t.length<l;){var i=t[0],o=e[l-t.length];o&&"M"===i[0]&&(t[0]="C"===o[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),n&&(i=t.pop(),t.push(t[t.length-1],i))}})(e,i),function(t,e){for(;t.length<l;)if("C"===(e=t[Math.floor(t.length/a)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),n){var i=t[Math.floor(t.length/a)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}(i,e)}return[e,i]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Utilities.js"]],function(t,e){function i(t){return h(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function o(e,i){for(var o=t.timers.length;o--;)t.timers[o].elem!==e||i&&i!==t.timers[o].prop||(t.timers[o].stopped=!0)}var s=e.defined,r=e.getStyle,n=e.isArray,a=e.isNumber,h=e.isObject,l=e.merge,c=e.objectEach,d=e.pick;return{animate:function(e,i,s){var d,p,u,f="";if(!h(s)){var g=arguments;s={duration:g[2],easing:g[3],complete:g[4]}}a(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=l(i),c(i,function(a,h){o(e,h),u=new t(e,s,h),p=void 0,"d"===h&&n(i.d)?(u.paths=u.initPath(e,e.pathArray,i.d),u.toD=i.d,d=0,p=1):e.attr?d=e.attr(h):(d=parseFloat(r(e,h))||0,"opacity"!==h&&(f="px")),p||(p=a),"string"==typeof p&&p.match("px")&&(p=p.replace(/px/g,"")),u.run(d,p,f)})},animObject:i,getDeferredAnimation:function(t,e,o){var r=i(e),n=0,a=0;return(o?[o]:t.series).forEach(function(t){t=i(t.options.animation),n=e&&s(e.defer)?r.defer:Math.max(n,t.duration+t.defer),a=Math.min(r.duration,t.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-a),duration:Math.min(n,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},stop:o}}),e(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.SVG_NS,o=e.attr,s=e.createElement,r=e.error,n=e.isFunction,a=e.isString,h=e.objectEach,l=e.splat,c=(e=t.win.trustedTypes)&&n(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),d=c?c.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(d,"text/html")}catch(t){p=!1}return function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return h(t,function(i,o){var s=!0;-1===e.allowedAttributes.indexOf(o)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(s=a(i)&&e.allowedReferences.some(function(t){return 0===i.indexOf(t)})),s||(r("Highcharts warning: Invalid attribute '"+o+"' in config"),delete t[o])}),t},e.setElementHTML=function(t,i){t.innerHTML=e.emptyHTML,i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(s){return function s(n,a){var c;return l(n).forEach(function(n){var l=n.tagName,d=n.textContent?t.doc.createTextNode(n.textContent):void 0;if(l){if("#text"===l)var p=d;else if(-1!==e.allowedTags.indexOf(l)){l=t.doc.createElementNS("svg"===l?i:a.namespaceURI||i,l);var u=n.attributes||{};h(n,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(u[e]=t)}),o(l,e.filterUserAttributes(u)),d&&l.appendChild(d),s(n.children||[],l),p=l}else r("Highcharts warning: Invalid tagName "+l+" in config")}p&&a.appendChild(p),c=p}),c}(this.nodes,s)},e.prototype.parseMarkup=function(t){var e=[];if(t=t.trim(),p)t=(new DOMParser).parseFromString(c?c.createHTML(t):t,"text/html");else{var i=s("div");i.innerHTML=t,t={body:i}}var o=function(t,e){var i=t.nodeName.toLowerCase(),s={tagName:i};if("#text"===i&&(s.textContent=t.textContent||""),i=t.attributes){var r={};[].forEach.call(i,function(t){r[t.name]=t.value}),s.attributes=r}if(t.childNodes.length){var n=[];[].forEach.call(t.childNodes,function(t){o(t,n)}),n.length&&(s.children=n)}e.push(s)};return[].forEach.call(t.body.childNodes,function(t){return o(t,e)}),e},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength t
1itle type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=d,e}()}),e(i,"Core/FormatUtilities.js",[i["Core/DefaultOptions.js"],i["Core/Utilities.js"]],function(t,e){function i(t,e,i,s){t=+t||0,e=+e;var r=o.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),d=e;if(-1===e)e=Math.min(l,20);else if(n(e)){if(e&&c[1]&&0>c[1]){var p=e+ +c[1];0<=p?(c[0]=(+c[0]).toExponential(p).split("e")[0],e=p):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;var u=3<(l=String(h(p=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e)))).length?l.length%3:0;return i=a(i,r.decimalPoint),s=a(s,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+s:""),t=0>+c[1]&&!d?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+p.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var o=t.defaultOptions,s=t.defaultTime,r=e.getNestedProperty,n=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:function(t,e,n){var a="{",h=!1,l=/f$/,c=/\.([0-9])/,d=o.lang,p=n&&n.time||s;n=n&&n.numberFormatter||i;for(var u=[];t;){var f=t.indexOf(a);if(-1===f)break;var g=t.slice(0,f);if(h){if(a=r((g=g.split(":")).shift()||"",e),g.length&&"number"==typeof a){if(g=g.join(":"),l.test(g)){var m=parseInt((g.match(c)||["","-1"])[1],10);null!==a&&(a=n(a,m,d.decimalPoint,-1<g.indexOf(",")?d.thousandsSep:""))}else a=p.dateFormat(g,a)}u.push(a)}else u.push(g);t=t.slice(f+1),a=(h=!h)?"}":"{"}return u.push(t),u.join("")},numberFormat:i}}),e(i,"Core/Renderer/RendererUtilities.js",[i["Core/Utilities.js"]],function(t){var e,i=t.clamp,o=t.pick,s=t.stableSort;return(e||(e={})).distribute=function t(e,r,n){var a,h=e,l=h.reducedLen||r,c=function(t,e){return(e.rank||0)-(t.rank||0)},d=function(t,e){return t.target-e.target},p=!0,u=[],f=0;for(a=e.length;a--;)f+=e[a].size;if(f>l){for(s(e,c),f=a=0;f<=l;)f+=e[a].size,a++;u=e.splice(a-1,e.length)}for(s(e,d),e=e.map(function(t){return{size:t.size,targets:[t.target],align:o(t.align,.5)}});p;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(c-l.size*l.align,0,r-l.size);for(a=e.length,p=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>r&&(e[a-1].pos=r-e[a-1].size),e.splice(a,1),p=!0)}return h.push.apply(h,u),a=0,e.some(function(e){var i=0;return(e.targets||[]).some(function(){return(h[a].pos=e.pos+i,void 0!==n&&Math.abs(h[a].pos-h[a].target)>n)?(h.slice(0,a+1).forEach(function(t){return delete t.pos}),h.reducedLen=(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,n),!0):(i+=h[a].size,a++,!1)})}),s(h,d),h},e}),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=t.animate,n=t.animObject,a=t.stop,h=o.deg2rad,l=o.doc,c=o.noop,d=o.svg,p=o.SVG_NS,u=o.win,f=s.addEvent,g=s.attr,m=s.createElement,y=s.css,v=s.defined,x=s.erase,b=s.extend,S=s.fireEvent,k=s.isArray,C=s.isFunction,w=s.isNumber,M=s.isString,T=s.merge,A=s.objectEach,P=s.pick,L=s.pInt,O=s.syncTimeout,E=s.uniqueKey;return(t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=p,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
1ded".split(" ")}return t.prototype._defaultGetter=function(t){return t=P(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return -1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var o,s,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||M(i))&&(this.alignTo=o=i||"renderer",x(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=P(i,a[o],"scrollablePlotBox"===o?a.plotBox:void 0,a),o=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===o?s=1:"center"===o&&(s=2),s&&(a+=(i.width-(t.width||0))/s),n[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](n),this.placed=!0,this.alignAttr=n,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,s=n(P(e,this.renderer.globalAnimation,!0));return e=s.defer,P(l.hidden,l.msHidden,l.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),O(function(){o.element&&r(o,t,s)},e)):(this.attr(t,void 0,i),A(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.split(" ");if(t=i[i.length-1],(i=i[0])&&"none"!==i&&o.svg){this.fakeTS=!0,this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var s=l.createElementNS(p,"tspan");g(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":i,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),s.appendChild(e)});var r=l.createElementNS(p,"tspan");r.textContent="​",["x","y"].forEach(function(t){var i=e.getAttribute(t);i&&r.setAttribute(t,i)}),s.appendChild(r),e.insertBefore(s,e.firstChild)}},t.prototype.attr=function(t,e,i,o){var s,r,n,h=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(A(t,function(e,i){r=!1,o||a(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),r=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),r||((n=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,n))},this),this.afterSetters()),i&&i.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){var i=Math.round(e=e||t.strokeWidth||0)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),v(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,o){var s,r,n,a,h,l,c,d,p,u,f,g=this.renderer,m=[];S(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],h=g.gradients,l=t.stops,p=o.radialReference,k(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!v(n.gradientUnits)&&(a=n,n=T(n,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),A(n,function(t,e){"id"!==e&&m.push(e,t)}),A(l,function(t){m.push(t)}),h[m=m.join(",")])u=h[m].attr("id");else{n.id=u=E();var y=h[m]=g.createElement(r).attr(n).add(g.defs);y.radAttr=a,y.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(c=(s=i.parse(t[1])
1).get("rgb"),d=s.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(y),y.stops.push(t)})}f="url("+g.url+"#"+u+")",o.setAttribute(e,f),o.gradient=m,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,s=["textOutline","textOverflow","width"],r="",n=!e;if(t&&t.color&&(t.fill=t.color),e&&A(t,function(t,o){e&&e[o]!==t&&(i[o]=t,n=!0)}),n){if(e&&(t=b(e,i)),t){if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var a=this.textWidth=L(t.width)}if(this.styles=t,a&&!d&&this.renderer.forExport&&delete t.width,o.namespaceURI===this.SVG_NS){var h=function(t,e){return"-"+e.toLowerCase()};A(t,function(t,e){-1===s.indexOf(e)&&(r+=e.replace(/([A-Z])/g,h)+":"+t+";")}),r&&g(o,"style",r)}else y(o,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=i.length;t--;)i[t]=""+L(i[t])*P(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,o=e.ownerSVGElement,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,a(t),t.clipPath&&o){var r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(r.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=r.destroy()}if(t.stops){for(o=0;o<t.stops.length;o++)t.stops[o].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&x(i.alignedObjects,t),A(t,function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,i){k(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0}
1,{duration:P(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var o=this.renderer,s=this.element,r=this.styles,n=this.textStr,a=o.cache,l=o.cacheKeys,c=s.namespaceURI===this.SVG_NS;i=P(i,this.rotation,0);var d,p=o.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):r&&r.fontSize;if(v(n)){var u=n.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0")),u+=["",i,p,this.textWidth,r&&r.textOverflow,r&&r.fontWeight].join()}if(u&&!e&&(d=a[u]),!d){if(c||o.forExport){try{var f=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&y(e,{display:t})};C(f)&&f("none"),d=s.getBBox?b({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},C(f)&&f("")}catch(t){}(!d||0>d.width)&&(d={width:0,height:0})}else d=this.htmlGetBBox();if(o.isSVG&&(e=d.width,o=d.height,c&&(d.height=o=({"11px,17":14,"13px,20":16})[(p||"")+","+Math.round(o)]||o),i&&(c=i*h,d.width=Math.abs(o*Math.sin(c))+Math.abs(e*Math.cos(c)),d.height=Math.abs(o*Math.cos(c))+Math.abs(e*Math.sin(c)))),u&&(""===n||0<d.height)){for(;250<l.length;)delete a[l.shift()];a[u]||l.push(u),a[u]=d}}return d},t.prototype.getStyle=function(t){return u.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?m(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,S(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=f(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(M(t)?RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,i){var o=this.element,s=this.text?this.text.element:o,r={textAnchor:"text-anchor"},n=!1,a=this.textPathWrapper,h=!a;i=T(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i);var l=e.filterUserAttributes(i.attributes);if(t&&i&&i.enabled){a&&null===a.element.parentNode?(h=!0,a=a.destroy()):a&&this.removeTextOutline.call(a.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),n=!0);var d=a.element;if((i=t.element.getAttribute("id"))||t.element.setAttribute("id",i=E()),h)for(s.setAttribute("y",0),w(l.dx)&&s.setAttribute("x",-l.dx),t=[].slice.call(s.childNodes),h=0;h<t.length;h++){var p=t[h];p.nodeType!==u.Node.TEXT_NODE&&"tspan"!==p.nodeName||d.appendChild(p)}n&&a&&a.add({element:s}),d.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),v(l.dy)&&(d.parentNode.setAttribute("dy",l.dy),delete l.dy),v(l.dx)&&(d.parentNode.setAttribute("dx",l.dx),delete l.dx),A(l,function(t,e){d.setAttribute(r[e]||e,t)}),o.removeAttribute("transform"),this.removeTextOutline.call(a),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=c}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(o,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this}
1,t.prototype.shadow=function(t,e,i){var o,s=[],r=this.element,n=this.oldShadowOptions,a={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},h=!1;if(!0===t?o=a:"object"==typeof t&&(o=b(a,t)),o&&(o&&n&&A(o,function(t,e){t!==n[e]&&(h=!0)}),h&&this.destroyShadows(),this.oldShadowOptions=o),o){if(!this.shadows){var l=o.opacity/o.width,c=this.parentInverted?"translate("+o.offsetY+", "+o.offsetX+")":"translate("+o.offsetX+", "+o.offsetY+")";for(a=1;a<=o.width;a++){var d=r.cloneNode(!1),p=2*o.width+1-2*a;g(d,{stroke:t.color||"#000000","stroke-opacity":l*a,"stroke-width":p,transform:c,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),i&&(g(d,"height",Math.max(g(d,"height")-p,0)),d.cutHeight=p),e?e.element.appendChild(d):r.parentNode&&r.parentNode.insertBefore(d,r),s.push(d)}this.shadows=s}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,i,o){this[i]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",o),o.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===e&&this.hasStroke?(o.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(o.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=L(t);else if(""!==t){var i=l.createElementNS(p,"rect");g(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(i){e[i]=P(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(P(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var o=this.shadows;if(o)for(var s=o.length;s--;)i.call(o[s],"height"===t?Math.max(e-(o[s].cutHeight||0),0):"d"===t?this.d:e,t,o[s])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,i=this.inverted,o=this.rotation,s=this.matrix,r=this.element,n=this.translateX||0,a=this.translateY||0;i&&(n+=this.width,a+=this.height),n=["translate("+n+","+a+")"],v(s)&&n.push("matrix("+s.join(",")+")"),i?n.push("rotate(90) scale(-1,1)"):o&&n.push("rotate("+o+" "+P(this.rotationOriginX,r.getAttribute("x"),0)+" "+P(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(t)||v(e))&&n.push("scale("+P(t,1)+" "+P(e,1)+")"),n.length&&r.setAttribute("transform",n.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i,o=this.renderer,s=this.parentGroup,r=(s||o).element||o.box,n=this.element;o=r===o.box;var a=!1,h=this.added;if(v(t)?(n.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):v(this[e])&&n.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&s&&(s.handleZ=!0),i=(e=r.childNodes).length-1;0<=i&&!a;i--){var l=!v(h=(s=e[i]).getAttribute("data-z-index"));s!==n&&(0>t&&l&&!o&&!i?(r.insertBefore(n,e[i]),a=!0):(L(h)<=t||l&&(!v(t)||0<=t))&&(r.insertBefore(n,e[i+1]||null),a=!0))}a||(r.insertBefore(n,e[o?3:0]||null),a=!0)}return a},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t}),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],function(t){var e,i,o;return(i=e||(e={})).rendererTypes={},i.getRendererType=function(t){return void 0===t&&(t=o),i.rendererTypes[t]||i.rendererTypes[o]},i.registerRendererType=function(e,s,r){i.rendererTypes[e]=s,(!o||r)&&(o=e,t.Renderer=s)},e}
1),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e){var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=e.defined,r=e.extend,n=e.isNumber,a=e.merge,h=e.pick,l=e.removeEvent;return function(e){function i(t,o,s,r,n,a,h,l,c,d){var p,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=o,u.x=s,u.y=r,u.anchorX=a,u.anchorY=h,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof n&&((p=/^url\((.*?)\)$/.test(n))||u.renderer.symbols[n])&&(u.symbolKey=n),u.bBox=i.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return o(i,e),i.prototype.alignSetter=function(t){(t=({left:0,center:.5,right:1})[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&n(this.xSetting)&&this.attr({x:this.xSetting}))},i.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},i.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},i.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},i.prototype.css=function(e){if(e){var o={};e=a(e),i.textProps.forEach(function(t){void 0!==e[t]&&(o[t]=e[t],delete e[t])}),this.text.css(o);var s="width"in o;"fontSize"in o||"fontWeight"in o?this.updateTextPadding():s&&this.updateBoxSize()}return t.prototype.css.call(this,e)},i.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},i.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},i.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=h(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},i.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},i.prototype.heightSetter=function(t){this.heightSetting=t},i.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},i.prototype.paddingSetter=function(t,e){n(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},i.prototype.rSetter=function(t,e){this.boxAttr(e,t)},i.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},i.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},i.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},i.prototype["text-alignSetter"]=function(t){this.textAlign=t},i.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},i.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},o=this.padding,a=this.bBox=n(this.widthSetting)&&n(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?i.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*o,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=o+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((o=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),o.add(this)),o=this.getCrispAdjust(),e.x=o,e.y=(this.baseline?-this.baselineOffset:0)+o,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},i.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=h(this.paddingLeft,this.padding);s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+=({center:.5,right:1})[this.textAlign]*(this.widthSetting-this.bBox.width)),(i!==t.x||e!==t.y)&&(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},i.prototype.widthSetter=function(t){this.widthSetting=n(t)?t:void 0},i.prototype.getPaddedWidth=function(){var t=this.padding,e=h(this.paddingLeft,t);return t=h(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},i.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},i.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},i.emptyBBox={width:0,height:0,x:0,y:0},i.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),i}(t)}),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],function(t){function e(t,e,i,o,r){var a=[];if(r){var h=r.start||0,l=n(r.r,i);i=n(r.r,o||i);var c=(r.end||0)-.001;o=r.innerR;var d=n(r.open,.001>Math.abs((r.end||0)-h-2*Math.PI)),p=Math.cos(h),u=Math.sin(h),f=Math.cos(c),g=Math.sin(c);h=n(r.longArc,.001>c-h-Math.PI?0:1),a.push(["M",t+l*p,e+i*u],["A",l,i,0,h,n(r.clockwise,1),t+l*f,e+i*g]),s(o)&&a.push(d?["M",t+o*f,e+o*g]:["L",t+o*f,e+o*g],["A",o,o,0,h,s(r.clockwise)?1-r.clockwise:0,t+o*p,e+o*u]),d||a.push(["Z"])}return a}
1function i(t,e,i,s,r){return r&&r.r?o(t,e,i,s,r):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function o(t,e,i,o,s){return[["M",t+(s=s&&s.r||0),e],["L",t+i-s,e],["C",t+i,e,t+i,e,t+i,e+s],["L",t+i,e+o-s],["C",t+i,e+o,t+i,e+o,t+i-s,e+o],["L",t+s,e+o],["C",t,e+o,t,e+o,t,e+o-s],["L",t,e+s],["C",t,e,t,e,t+s,e]]}var s=t.defined,r=t.isNumber,n=t.pick;return{arc:e,callout:function(t,e,i,s,n){var a=Math.min(n&&n.r||0,i,s),h=a+6,l=n&&n.anchorX;n=n&&n.anchorY||0;var c=o(t,e,i,s,{r:a});return r(l)&&(t+l>=i?n>e+h&&n<e+s-h?c.splice(3,1,["L",t+i,n-6],["L",t+i+6,n],["L",t+i,n+6],["L",t+i,e+s-a]):c.splice(3,1,["L",t+i,s/2],["L",l,n],["L",t+i,s/2],["L",t+i,e+s-a]):0>=t+l?n>e+h&&n<e+s-h?c.splice(7,1,["L",t,n+6],["L",t-6,n],["L",t,n-6],["L",t,e+a]):c.splice(7,1,["L",t,s/2],["L",l,n],["L",t,s/2],["L",t,e+a]):n&&n>s&&l>t+h&&l<t+i-h?c.splice(5,1,["L",l+6,e+s],["L",l,e+s+6],["L",l-6,e+s],["L",t+a,e+s]):n&&0>n&&l>t+h&&l<t+i-h&&c.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",i-a,e])),c},circle:function(t,i,o,s){return e(t+o/2,i+s/2,o/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:i,roundedRect:o,square:i,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}}}),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i){var o=e.doc,s=e.SVG_NS,r=e.win,n=i.attr,a=i.isString,h=i.objectEach,l=i.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,i=e.element,s=e.renderer,r=l(e.textStr,"").toString(),n=-1!==r.indexOf("<"),h=i.childNodes;s=this.width&&!e.added&&s.box;var c=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(c!==e.textCache){for(e.textCache=c,delete e.actualWidth,c=h.length;c--;)i.removeChild(h[c]);n||this.ellipsis||this.width||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(s&&s.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(i)):i.appendChild(o.createTextNode(this.unescapeEntities(r))),a(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=n(i.element,"x");for(i.firstLineMetrics=void 0;t=i.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))i.element.removeChild(t);else break;[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,o){t.nextSibling&&t.previousSibling&&(0===o&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),n(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1<c.length||1<i.element.childNodes.length),p=e.getLineHeight(r),u=0,f=i.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,h-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(d){for(l=[],d=[];r.firstChild&&r.firstChild!==t;)d.push(r.firstChild),r.removeChild(r.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<u&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===u&&f||0,h,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),f=i.actualWidth,u++;d.forEach(function(e){r.insertBefore(e,t)}),l.forEach(function(e){r.insertBefore(o.createTextNode(e),t),(e=o.createElementNS(s,"tspan")).textContent="​",n(e,{dy:p,x:a}),r.insertBefore(e,t)})}}
1,c=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===r.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),c(e))})};c(i.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,i=function(o,s){var r=o.attributes;r=void 0===r?{}:r;var n=o.children,h=o.tagName,l=e.renderer.styledMode;"b"===h||"strong"===h?l?r.class="highcharts-strong":r.style="font-weight:bold;"+(r.style||""):("i"===h||"em"===h)&&(l?r.class="highcharts-emphasized":r.style="font-style:italic;"+(r.style||"")),a(r.style)&&(r.style=r.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===h?(r.class="highcharts-br",o.textContent="​",(s=t[s+1])&&s.textContent&&(s.textContent=s.textContent.replace(/^ +/gm,""))):"a"===h&&n&&n.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:n,tagName:"tspan"}]),"#text"!==h&&"a"!==h&&(o.tagName="tspan"),o.attributes=r,n&&n.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i)},e.prototype.truncate=function(t,e,i,o,s,r){var n,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],d=i?1:0,p=(e||i||"").length,u=p,f=function(s,n){n=n||s;var l=t.parentNode;if(l&&void 0===c[n]){if(l.getSubStringLength)try{c[n]=o+l.getSubStringLength(0,i?n+1:n)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,s),c[n]=o+h.getSpanWidth(a,t))}return c[n]};a.rotation=0;var g=f(t.textContent.length);if(o+g>s){for(;d<=p;)u=Math.ceil((d+p)/2),i&&(n=r(i,u)),g=f(u,n&&n.length-1),d===p?d=p+1:g>s?p=u-1:d=u;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=n||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return h(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},e}()}),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h){var l,c=i.charts,d=i.deg2rad,p=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,y=i.SVG_NS,v=i.symbolSizes,x=i.win,b=h.addEvent,S=h.attr,k=h.createElement,C=h.css,w=h.defined,M=h.destroyObjectProperties,T=h.extend,A=h.isArray,P=h.isNumber,L=h.isObject,O=h.isString,E=h.merge,D=h.pick,j=h.pInt,I=h.uniqueKey;return i=function(){function i(t,e,i,o,s,r,n){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,o,s,r,n)}return i.prototype.init=function(t,e,i,o,s,r,n){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;n||h.css(this.getStyle(o)),t.appendChild(l),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 9.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=s,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){C(t,{left:0,top:0}),a=t.getBoundingClientRect(),C(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(x,"resize",e))},i.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},i.prototype.getReferenceURL=function(){if((u||g)&&p.getElementsByTagName("base").length){if(!w(l)){var e=I();C(e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(p.body),{position:"fixed",top:0,left:0,zIndex:9e5});var i=p.elementFromPoint(6,6);l="hitme"===(i&&i.id),p.body.removeChild(e)}if(l)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},i.prototype.getStyle=function(t){return this.style=T({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},i.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},i.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},i.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),M(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},i.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},i.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},i.prototype.buildText=function(t){new a(t).buildSVG()},i.prototype.getContrast=function(t){return t=e.parse(t).rgba,t[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},i.prototype.button=function(e,i,o,s,r,n,a,h,l,c){var d=this.label(e,i,o,l,void 0,void 0,c,void 0,"button"),p=this.styledMode,u=0,g=r?E(r):{};if(e=g&&g.style||{},g=t.filterUserAttributes(g),d.attr(E({padding:8,r:2},g)),!p){var m=(g=E({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:e},g)).style;delete g.style;
1var y=(n=E(g,{fill:"#e6e6e6"},t.filterUserAttributes(n||{}))).style;delete n.style;var v=(a=E(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||{}))).style;delete a.style;var x=(h=E(g,{style:{color:"#cccccc"}},t.filterUserAttributes(h||{}))).style;delete h.style}return b(d.element,f?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),b(d.element,f?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p||d.attr([g,n,a,h][t||0]).css([m,y,v,x][t||0])},p||d.attr(g).css(T({cursor:"default"},m)),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&s.call(d,t)})},i.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],s=t[1];return w(o[1])&&o[1]===s[1]&&(o[1]=s[1]=Math[i](o[1])-e%2/2),w(o[2])&&o[2]===s[2]&&(o[2]=s[2]=Math[i](o[2])+e%2/2),t},i.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return A(t)?e.d=t:L(t)&&T(e,t),this.createElement("path").attr(e)},i.prototype.circle=function(t,e,i){return t=L(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},i.prototype.arc=function(t,e,i,o,s,r){return L(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:s,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},i.prototype.rect=function(t,e,i,o,s,r){s=L(t)?t.r:s;var n=this.createElement("rect");return t=L(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=n.crisp(t)),t.fill="none"),s&&(t.r=s),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},i.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:D(i,!0)?void 0:0}),this.alignElements()},i.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},i.prototype.image=function(t,e,i,o,s,r){var n={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};P(e)&&(n.x=e),P(i)&&(n.y=i),P(o)&&(n.width=o),P(s)&&(n.height=s);var h=this.createElement("image").attr(n);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),b(i=new x.Image,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},i.prototype.symbol=function(t,e,i,o,s,r){var n,a=this,h=/^url\((.*?)\)$/,l=h.test(t),d=!l&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d];if(u){"number"==typeof e&&(n=u.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,s||0,r));var f=this.path(n);a.styledMode||f.attr("fill","none"),T(f,{symbolName:d||void 0,x:e,y:i,width:o,height:s}),r&&T(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=D(v[g]&&v[g].width,r&&r.width),m.imgheight=D(v[g]&&v[g].height,r&&r.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach(function(t){m[t+"Setter"]=function(t,e){var i=this["img"+e];this[e]=t,w(i)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(i=Math.round(i*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,i),this.alignByTranslate||(t=((this[e]||0)-i)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}}),w(e)&&m.attr({x:e,y:i}),m.isImg=!0,w(m.imgwidth)&&w(m.imgheight)?y(m):(m.attr({width:0,height:0}),k("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(C(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),v[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&y(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f}
1,i.prototype.clipRect=function(t,e,i,o){var s=I()+"-",r=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=s,t.clipPath=r,t.count=0,t},i.prototype.text=function(t,e,i,o){var s={};return o&&(this.allowHTML||!this.forExport)?this.html(t,e,i):(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),w(t)&&(s.text=t),t=this.createElement("text").attr(s),o&&(!this.forExport||this.allowHTML)||(t.xSetter=function(t,e,i){for(var o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0;n<s.length;n++)(o=s[n]).getAttribute(e)===r&&o.setAttribute(e,t);i.setAttribute(e,t)}),t)},i.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!x.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&s.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?j(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},i.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:o}},i.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},s=0;s<t.length;s++)O(i[0])&&P(t[s])&&i.length===o[i[0].toUpperCase()]&&t.splice(s,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[s]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[s]);return e.push(i.slice(0)),e},i.prototype.label=function(t,e,i,o,s,n,a,h,l){return new r(this,t,e,i,o,s,n,a,h,l)},i.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},i}(),T(i.prototype,{Element:s,SVG_NS:y,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:n,draw:m}),o.registerRendererType("svg",i,!0),i}),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=t.isFirefox,n=t.isMS,a=t.isWebKit,h=t.win,l=i.css,c=i.defined,d=i.extend,p=i.pick,u=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,o=t.prototype;o.getSpanCorrection=i.getSpanCorrection,o.htmlCss=i.htmlCss,o.htmlGetBBox=i.htmlGetBBox,o.htmlUpdateTransform=i.htmlUpdateTransform,o.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=p(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var o=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=d(this.styles,t),l(this.element,t),o&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,n=this.textAlign||"left",a={left:0,center:.5,right:1}[n],h=this.styles;if(h=h&&h.whiteSpace,l(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){l(t,{marginLeft:i+1,marginTop:o+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var d=this.rotation,p=this.textWidth&&u(this.textWidth),f=[d,n,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,p!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else l(e,{width:"",whiteSpace:h||"nowrap"}),m=e.offsetWidth;(p>this.oldTextWidth||m>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:m>p||d?p+"px":"auto",display:"block",whiteSpace:h||"normal"}),this.oldTextWidth=p,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,c(d)&&(d!==(this.oldRotation||0)||n!==this.oldAlign)&&this.setSpanRotation(d,a,g),this.get
1SpanCorrection(!c(d)&&this.textPxLength||e.offsetWidth,g,a,d,n)),l(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=d,this.oldAlign=n}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var o={},s=n&&!/Edge/.test(h.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":h.opera?"-o-transform":void 0;s&&(o[s]=o.transform="rotate("+t+"deg)",o[s+(r?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",l(this.element,o))},e.composedClasses=[],e}(e)}),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=o.attr,a=o.createElement,h=o.extend,l=o.pick;return function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return r(o,i),o.compose=function(t){return -1===o.composedClasses.indexOf(t)&&(o.composedClasses.push(t),t.prototype.html=o.prototype.html),t},o.prototype.html=function(i,o,s){var r=this.createElement("span"),c=r.element,d=r.renderer,p=d.isSVG,u=function(t,i){["opacity","visibility"].forEach(function(o){t[o+"Setter"]=function(s,r,n){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,s,r,n),a&&(a[r]=s)}}),t.addedSetters=!0};return r.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,r.doTransform=!0)},p&&u(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e?r.alignValue=r.textAlign=t:r[e]=t,r.doTransform=!0},r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},r.attr({text:i,x:Math.round(o),y:Math.round(s)}).css({position:"absolute"}),d.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",r.css=r.htmlCss,p&&(r.add=function(t){var e=d.box.parentNode,i=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach(function(t){function s(e,i){t[i]=e,"translateX"===i?p.left=e+"px":p.top=e+"px",t.doTransform=!0}var l,c=n(t.element,"class"),d=t.styles||{},p=(o=t.div=t.div||a("div",c?{className:c}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:d.cursor,pointerEvents:d.pointerEvents,visibility:t.visibility},o||e)).style;h(t,{classSetter:(l=o,function(t){this.element.setAttribute("class",t),l.className=t}),on:function(){return i[0].div&&r.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:s,translateYSetter:s}),t.addedSetters||u(t)})}}else o=e;return o.appendChild(c),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r},o.composedClasses=[],o}(i)}),e(i,"Core/Axis/AxisDefaults.js",[],function(){var t,e;return(e=t||(t={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t}),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.isFunction,s=t.objectEach,r=t.removeEvent;return(e||(e={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},s(e.events,function(e,s){t.eventOptions[s]!==e&&(t.eventOptions[s]&&(r(t,s,t.eventOptions[s]),delete t.eventOptions[s]),o(e)&&(t.eventOptions[s]=e,i(t,s,e)))})},e}),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,
1i){var o=e.deg2rad,s=i.clamp,r=i.correctFloat,n=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,p=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,o,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,o=i.options,s=i.chart,a=i.categories,d=i.logarithmic,p=i.names,f=e.pos,g=u(e.options&&e.options.labels,o.labels),m=i.tickPositions,y=f===m[0],v=f===m[m.length-1],x=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,S=e.label;if(a=this.parameters.category||(a?u(a[f],p[f],f):f),d&&c(a)&&(a=r(d.lin2log(a))),i.dateTime){if(m)var k=s.time.resolveDTLFormat(o.dateTimeLabelFormats[!o.grid&&m.higherRanks[f]||m.unitName]),C=k.main;else c(a)&&(C=i.dateTime.getXDateFormat(a,o.dateTimeLabelFormats||{}))}e.isFirst=y,e.isLast=v;var w={axis:i,chart:s,dateTimeLabelFormat:C,isFirst:y,isLast:v,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",w);var M=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e),t.format(g.format,e,s)):i.defaultLabelFormatter.call(e,e)};o=M.call(w,w);var T=k&&k.list;e.shortenLabel=T?function(){for(b=0;b<T.length;b++)if(h(w,{dateTimeLabelFormat:T[b]}),S.attr({text:M.call(w,w)}),S.getBBox().width<i.getSlotWidth(e)-2*g.padding)return;S.attr({text:""})}:void 0,x&&i._addedPlotLB&&e.moveLabel(o,g),n(S)||e.movedLabel?S&&S.textStr!==o&&!x&&(!S.textWidth||g.style.width||S.styles.width||S.css({width:null}),S.attr({text:o}),S.textPxLength=S.getBBox().width):(e.label=S=e.createLabel({x:0,y:0},o,g),e.rotation=0)},e.prototype.createLabel=function(t,e,i){var o=this.axis,s=o.chart;return(t=n(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null)&&(s.styledMode||t.css(d(i.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,i,o){var n=this.axis,a=n.chart,h=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(n.translate(e+i,null,null,o)+n.transB):n.left+n.offset+(n.opposite?(o&&a.oldChartWidth||a.chartWidth)-n.right-n.left:0),y:t?h-n.bottom+n.offset-(n.opposite?n.height:0):r(h-n.translate(e+i,null,null,o)-n.transB)}).y=s(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,s,r,a,h,c){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=s||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={},v=r.y;return n(v)||(v=0===d.side?i.rotation?-8:-i.getBBox().height:2===d.side?g.y+8:Math.cos(i.rotation*o)*(g.y-i.getBBox(!1,0).height/2)),t=t+r.x+m+g.x-(a&&s?a*p*(u?-1:1):0),e=e+v-(a&&!s?a*p*(u?1:-1):0),f&&(i=h/(c||1)%f,d.opposite&&(i=f-i-1),e+=d.labelOffset/f*i),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:a,index:h}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,o,s,r){return r.crispLine([["M",t,e],["L",t+(s?0:-i),e+(s?i:0)]],o)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,s=t.x,r=e.chart.chartWidth,n=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,n[3]));n=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-n[1]));var h,l=this.label,c=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),g={},m=f,y=1;c||"justify"!==i.overflow?0>c&&s-d*p<a?h=Math.round(s/Math.cos(c*o)-a):0<c&&s+d*p>n&&(h=Math.round((r-s)/Math.cos(c*o))):(r=s+(1-d)*p,s-d*p<a?m=t.x+m*(1-d)-a:r>n&&(m=n-t.x+m*d,y=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=y*(f-m-d*(f-Math.min(p,m)))),(p>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,s=i.axis,r=s.reversed,n=!1;if(o&&o.textStr===t?(i.movedLabel=o,n=!0,delete i.label):p(s.ticks,function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!n&&(i.labelPos||o)){var a=i.labelPos||o.xy;o=s.horiz?r?0:s.width+s.left:a.x,s=s.horiz?a.y:r?s.width+s.left:0,i.movedLabel=i.createLabel({x:o,y:s},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0}
1)}},e.prototype.render=function(t,e,i){var o=this.axis,s=o.horiz,r=this.pos,n=u(this.tickmarkOffset,o.tickmarkOffset);n=(r=this.getPosition(s,r,n,e)).x;var a=r.y;o=s&&n===o.pos+o.len||!s&&a===o.pos?-1:1,s=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,o),this.renderMark(r,i,o),this.renderLabel(r,e,s,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,s=o.options,r={},n=this.pos,a=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,c=this.gridLine,d=s.gridLineWidth,p=s.gridLineColor,f=s.gridLineDashStyle;"minor"===this.type&&(d=s.minorGridLineWidth,p=s.minorGridLineColor,f=s.minorGridLineDashStyle),c||(o.chart.styledMode||(r.stroke=p,r["stroke-width"]=d||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),c&&(i=o.getPlotLinePath({value:n+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,s=o.options,r=o.chart.renderer,n=this.type,a=o.tickSize(n?n+"Tick":"tick"),h=t.x;t=t.y;var l=u(s["minor"!==n?"tickWidth":"minorTickWidth"],!n&&o.isXAxis?1:0);s=s["minor"!==n?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(o.opposite&&(a[0]=-a[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||c.attr({stroke:s,"stroke-width":l})),c[d?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,r=s.horiz,n=s.options,a=this.label,h=n.labels,l=h.step;s=u(this.tickmarkOffset,s.tickmarkOffset);var d=t.x;t=t.y;var p=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,r,h,s,o,l),(!this.isFirst||this.isLast||n.showFirstLabel)&&(!this.isLast||this.isFirst||n.showLastLabel)?!r||h.step||h.rotation||e||0===i||this.handleOverflow(t):p=!1,l&&o%l&&(p=!1),p&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var o=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:o,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}()}),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/DefaultOptions.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a){var h=t.animObject,l=o.defaultOptions,c=s.registerEventOptions,d=r.deg2rad,p=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,y=a.destroyObjectProperties,v=a.erase,x=a.error,b=a.extend,S=a.fireEvent,k=a.getMagnitude,C=a.isArray,w=a.isNumber,M=a.isString,T=a.merge,A=a.normalizeTickInterval,P=a.objectEach,L=a.pick,O=a.relativeLength,E=a.removeEvent,D=a.splat,j=a.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=L(e.opposite,this.opposite),this.side=L(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var o=this.options,s=o.labels,r=o.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=L(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames="category"===r||!0===o.categories,this.categories=o.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.min=this.max=null,e=L(o.crosshair,D(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=w(s.rotation)?s.rotation:void 0,c(this,o),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=T(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],T(l[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=w(this.value)?this.value:NaN,o=e.chart.time,s=this.dateTimeLabelFormat,r=l.lang,n=r.numericSymbol
1s;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=n&&n.length;if(e.categories)var c=""+this.value;else if(s)c=o.dateFormat(s,i);else if(h&&1e3<=a)for(;h--&&void 0===c;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==n[h]&&0!==i&&(c=t(i/e,-1)+n[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;S(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var s=o.options,r=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((s=o.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var n=(t=o.getXExtremes(s)).min,a=t.max;w(n)||n instanceof Date||(s=s.filter(w),n=(t=o.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(L(e.dataMin,n),n),e.dataMax=Math.max(L(e.dataMax,a),a))}}else w((o=o.applyExtremes()).dataMin)&&(n=o.dataMin,e.dataMin=Math.min(L(e.dataMin,n),n)),w(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(L(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,s,r){var n=this.linkedParent||this,a=o&&n.old?n.old.min:n.min,h=n.minPixelPadding;s=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&s)&&n.lin2val;var l=1,c=0;return(o=o&&n.old?n.old.transA:n.transA)||(o=n.transA),i&&(l*=-1,c=n.len),n.reversed&&(l*=-1,c-=l*(n.sector||n.len)),e?(t=(t*l+c-h)/o+a,s&&(t=n.lin2val(t))):(s&&(t=n.val2lin(t)),t=w(a)?l*(t-a)*o+c+l*h+(w(r)?o*r:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==x&&t<e||t>i)&&(x?t=f(t,e,i):n=!0),t}var i,o,s,r,n,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,p=t.value,u=t.lineWidth,g=d&&h.oldChartHeight||h.chartHeight,m=d&&h.oldChartWidth||h.chartWidth,y=a.transB,v=t.translatedValue,x=t.force;return S(this,"getPlotLinePath",t={value:p,lineWidth:u,old:d,force:x,acrossPanes:t.acrossPanes,translatedValue:v},function(t){i=s=Math.round((v=f(v=L(v,a.translate(p,null,null,d)),-1e5,1e5))+y),o=r=Math.round(g-v-y),w(v)?a.horiz?(o=c,r=g-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=m-a.right,o=r=e(o,c,c+a.height)):(n=!0,x=!1),t.path=n&&!x?null:h.renderer.crispLine([["M",i,o],["L",s,r]],u||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var s,r=[];if(g(o+t)===o&&(s=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=g(e+t,s))!==n);)var n=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?L(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,o=this.pointRangePadding||0,s=this.min-o,r=(o=this.max+o)-s,n=[];if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,o){e&&n.push.apply(n,a.getLogTickPositions(i,o[e-1],o[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),s,o,t.startOfWeek));else for(t=s+(e[0]-s)%i;t<=o&&t!==n[0];t+=i)n.push(t)}return 0!==n.length&&this.trimTicks(n),n},t.prototype.adjustForMinRange=function(){var t,e,i,o,s=this.options,r=this.logarithmic,n=this.min,a=this.max,h=0;if(this.isXAxis&&void 0===this.minRange&&!r&&(m(s.min)||m(s.max)||m(s.floor)||m(s.ceiling)?this.minRange=null:(this.series.forEach(function(s){if(i=s.xData,o=s.xIncrement?1:i.length-1,1<i.length)for(t=o;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)}),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),a-n<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,d=(c-a+n)/2;d=[n-d,L(s.min,n-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(n=p(d))+c,L(s.max,n+c)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-n<c&&(d[0]=a-c,d[1]=L(s.min,a-c),n=p(d))}this.min=n,this.max=a},t.prototype.getClosest=function(){var t;
1return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,o=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(i)&&o&&(t=m(t)?Math.min(t,i):i)}),t},t.prototype.nameToX=function(t){var e=C(this.categories),i=e?this.categories:this.names,o=t.options.x;if(t.series.requireSorting=!1,m(o)||(o=this.options.uniqueNames?e?i.indexOf(t.name):L(i.keys[t.name],-1):t.series.autoIncrement()),-1===o){if(!e)var s=i.length}else s=o;return void 0!==s&&(this.names[s]=t.name,this.names.keys[t.name]=s),s},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,o){if(i&&i.options&&void 0!==i.name){var s=t.nameToX(i);void 0!==s&&s!==i.x&&(i.x=s,e.xData[o]=s)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.linkedParent,o=!!t.categories,s=t.isXAxis,r=t.axisPointRange||0,n=0,a=0,h=t.transA;if(s||o||r){var l=t.getClosest();i?(n=i.minPointOffset,a=i.pointRangePadding):t.series.forEach(function(e){var i=o?1:s?L(e.options.pointRange,l,0):t.axisPointRange||0,h=e.options.pointPlacement;r=Math.max(r,i),(!t.single||o)&&(n=Math.max(n,(e=e.is("xrange")?!s:s)&&M(h)?0:i/2),a=Math.max(a,e&&"on"===h?0:i))}),i=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=n*=i,t.pointRangePadding=a*=i,t.pointRange=Math.min(r,t.single&&o?1:e),s&&(t.closestPointRange=l)}t.translationSlope=t.transA=h=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=h*n,S(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,i=this.logarithmic,o=this.options,s=this.isXAxis,r=this.isLinked,n=o.tickPixelInterval,a=this.categories,h=this.softThreshold,l=o.maxPadding,c=o.minPadding,d=w(o.tickInterval)&&0<=o.tickInterval?o.tickInterval:void 0,p=w(this.threshold)?this.threshold:null;this.dateTime||a||r||this.getTickAmount();var u=L(this.userMin,o.min),f=L(this.userMax,o.max);if(r){this.linkedParent=e[this.coll][o.linkedTo];var y=this.linkedParent.getExtremes();this.min=L(y.min,y.dataMin),this.max=L(y.max,y.dataMax),o.type!==this.linkedParent.options.type&&x(11,1,e)}else{if(h&&m(p)){if(this.dataMin>=p)y=p,c=0;else if(this.dataMax<=p){var v=p;l=0}}this.min=L(u,y,this.dataMin),this.max=L(f,v,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,L(this.dataMin,this.min))&&x(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&c&&(this.min-=e*c),!m(f)&&l&&(this.max+=e*l)),w(this.userMin)||(w(o.softMin)&&o.softMin<this.min&&(this.min=u=o.softMin),w(o.floor)&&(this.min=Math.max(this.min,o.floor))),w(this.userMax)||(w(o.softMax)&&o.softMax>this.max&&(this.max=f=o.softMax),w(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling))),h&&m(this.dataMin)&&(p=p||0,!m(u)&&this.min<p&&this.dataMin>=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!m(f)&&this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p)),w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:r&&this.linkedParent&&!d&&n===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:L(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*n/Math.max(this.len,n)),s&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);
1this.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)}),S(this,"postProcessData",{hasExtemesChanged:b})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=L(o.minTickInterval,this.dateTime&&!this.series.some(function(t){return t.noSharedTooltip})?this.closestPointRange:0),!d&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||d||(this.tickInterval=A(this.tickInterval,void 0,k(this.tickInterval),L(o.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),o=this.hasVerticalPanning(),s="colorAxis"===this.coll,r=(s||!o)&&t.startOnTick;o=(s||!o)&&t.endOnTick,s=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],x(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,r,o),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],s=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=s;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&m(o)&&!this.options.tickPositions&&t.push((s+o)/2)}},t.prototype.alignToOthers=function(){var t,e={},i=this.options;return!1!==this.chart.options.chart.alignTicks&&i.alignTicks&&!1!==i.startOnTick&&!1!==i.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(i){var o=i.options;o=[i.horiz?o.left:o.top,o.width,o.height,o.pane].join(),i.series.length&&(e[o]?t=!0:e[o]=1)}),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;m(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),4>i&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,i=this.tickPositions,o=this.tickAmount,s=this.finalTickAmt,r=i&&i.length,n=L(this.threshold,this.softThreshold?0:null);if(this.hasData()&&w(this.min)&&w(this.max)){if(r<o){for(;i.length<o;)i.length%2||this.min===n?i.push(g(i[i.length-1]+e)):i.unshift(g(i[0]-e));this.transA*=(r-1)/(o-1),this.min=t.startOnTick?i[0]:Math.min(this.min,i[0]),this.max=t.endOnTick?i[i.length-1]:Math.max(this.max,i[i.length-1])}else r>o&&(this.tickInterval*=2,this.setTickPositions());if(m(s)){for(e=t=i.length;e--;)(3===s&&1==e%2||2>=s&&0<e&&e<t-1)&&i.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach(function(i){t=t||i.isDirtyData||i.isDirty,e=e||i.xAxis&&i.xAxis.isDirty||!1}),this.setAxisSize();var i=this.len!==(this.old&&this.old.len);i||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.get
1SeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=i||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),S(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,s){var r=this,n=r.chart;i=L(i,!0),r.series.forEach(function(t){delete t.kdTree}),S(r,"setExtremes",s=b(s,{min:t,max:e}),function(){r.userMin=t,r.userMax=e,r.eventArgs=s,i&&n.redraw(o)})},t.prototype.zoom=function(t,e){var i=this,o=this.dataMin,s=this.dataMax,r=this.options,n=Math.min(o,L(r.min,o)),a=Math.max(s,L(r.max,s));return S(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,r=t.newMax;(e!==i.min||r!==i.max)&&(i.allowZoomOutside||(m(o)&&(e<n&&(e=n),e>a&&(e=a)),m(s)&&(r<n&&(r=n),r>a&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,s=this.width=Math.round(O(L(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(O(L(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(O(L(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(O(L(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-s-e,this.len=Math.max(o?s:r,0),this.pos=o?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(L(t,0)-90*this.side+720)%360;return S(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},t.prototype.tickSize=function(t){var e=this.options,i=L(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=e["tick"===t?"tickLength":"minorTickLength"];if(i&&o){"inside"===e[t+"Position"]&&(o=-o);var s=[o,i]}return S(this,"afterTickSize",t={tickSize:s}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=this.horiz,s=this.tickInterval,r=this.len/(((this.categories?1:0)+this.max-this.min)/s),n=i.rotation,a=this.labelMetrics(),h=Math.max(this.max-this.min,0),l=function(t){var e=t/(r||1);return(e=1<e?Math.ceil(e):1)*s>h&&1/0!==t&&1/0!==r&&h&&(e=Math.ceil(h/s)),g(e*s)},c=s,p=Number.MAX_VALUE;if(o){if(!i.staggerLines&&!i.step){if(w(n))var u=[n];else r<i.autoRotationLimit&&(u=i.autoRotation)}u&&u.forEach(function(i){if(i===n||i&&-90<=i&&90>=i){var o=(e=l(Math.abs(a.h/Math.sin(d*i))))+Math.abs(i/360);o<p&&(p=o,t=i,c=e)}})}else i.step||(c=l(a.h));return this.autoRotation=u,this.labelRotation=L(t,w(n)?n:0),c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,s=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&w(t.slotWidth))return t.slotWidth;if(i&&2>o.step)return o.rotation?0:(this.staggerLines||1)*this.len/s;if(!i){if(void 0!==(t=o.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,o=this.ticks,s=this.options.labels,r=s.style,n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*s.padding)),l={},c=this.labelMetrics(),d=r.textOverflow,p=0;if(M(s.rotation)||(l.rotation=s.rotation||0),i.forEach(function(t){(t=o[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)}),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!n&&h--;){var g=i[h];(g=o[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEac
1h(function(t){var e=(t=o[t])&&t.label,i=r.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(s.width=u+"px",d||(s.textOverflow=e.specificTextOverflow||f),e.css(s)):e.styles&&e.styles.width&&!s.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,s=this.opposite,r=this.options.title,n=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation,align:e}).addClass("highcharts-axis-title"),n||this.axisTitle.css(T(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new n(this,t)},t.prototype.getOffset=function(){var t=this,e=this,i=e.chart,o=e.horiz,s=e.options,r=e.side,n=e.ticks,a=e.tickPositions,h=e.coll,l=e.axisParent,c=i.renderer,d=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,p=e.hasData(),u=s.title,f=s.labels,g=i.axisOffset;i=i.clipOffset;var y,v=[-1,1,1,-1][r],x=s.className,b=0,k=0,C=0;if(e.showAxis=y=p||s.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var w=function(e,i,o){return c.g(e).attr({zIndex:o}).addClass("highcharts-"+h.toLowerCase()+i+" "+(t.isRadial?"highcharts-radial-axis"+i+" ":"")+(x||"")).add(l)};e.gridGroup=w("grid","-grid",s.gridZIndex),e.axisGroup=w("axis","",s.zIndex),e.labelGroup=w("axis-labels","-labels",f.zIndex)}if(p||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===r||2===r||({1:"left",3:"right"})[r]===e.labelAlign,L(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){C=Math.max(n[t].getLabelSize(),C)}),e.staggerLines&&(C*=e.staggerLines),e.labelOffset=C*(e.opposite?-1:1)):P(n,function(t,e){t.destroy(),delete n[e]}),u&&u.text&&!1!==u.enabled&&(e.addTitle(y),y&&!1!==u.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[o?"height":"width"];var M=u.offset;k=m(M)?0:L(u.margin,o?5:10)}e.renderLine(),e.offset=v*L(s.offset,g[r]?g[r]+(s.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},u=0===r?-e.labelMetrics().h:2===r?e.tickRotCorr.y:0,p=Math.abs(C)+k,C&&(p=p-u+v*(o?L(f.y,e.tickRotCorr.y+8*v):f.x)),e.axisTitleMargin=L(M,p),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(n,a)),"colorAxis"!==h&&(o=this.tickSize("tick"),g[r]=Math.max(g[r],(e.axisTitleMargin||0)+b+v*e.offset,p,a&&a.length&&o?o[0]+v*e.offset:0),s=!e.axisLine||s.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[d]=Math.max(i[d],s)),S(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,s=this.horiz,r=this.left+(i?this.width:0)+o;return o=e.chartHeight-this.bottom-(i?this.height:0)+o,i&&(t*=-1),e.renderer.crispLine([["M",s?this.left:r,s?o:this.top],["L",s?e.chartWidth-this.right:r,s?o:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,o=this.len,s=this.options.title,r=t?e:i,n=this.opposite,a=this.offset,h=s.x,l=s.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(s.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-d.h-1,0),o=({low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)})[s.align],e=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side],S(this,"afterGetTitlePosition",{titlePosition:t={x:t?o+h:e+(n?this.width:0)+a+h,y:t?e+l-(n?this.height:0)+a:o+l}}),t},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new n(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}
1,t.prototype.renderTick=function(t,e,i){var o=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new n(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,s=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,d=i.axisTitle,p=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,y=i.tickmarkOffset,v=i.axisLine,x=i.showAxis,b=h(o.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[p,u,f].forEach(function(t){P(t,function(t){t.isActive=!1})}),i.hasData()||l){var k=i.chart.hasRendered&&i.old&&w(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,k)}),c.length&&(c.forEach(function(t,e){i.renderTick(t,e,k)}),y&&(0===i.min||i.single)&&(p[-1]||(p[-1]=new n(i,-1,null,!0)),p[-1].render(-1))),m&&c.forEach(function(n,a){e=void 0!==c[a+1]?c[a+1]+y:i.max-y,0==a%2&&n<i.max&&e<=i.max+(o.polar?-y:y)&&(f[n]||(f[n]=new r.PlotLineOrBand(i)),t=n+y,f[n].options={from:s?s.lin2log(t):t,to:s?s.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[n].render(),f[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[p,u,f].forEach(function(t){var e=[],i=b.duration;P(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),j(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==f&&o.hasRendered&&i?i:0)}),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[x?"show":"hide"](x)),d&&x&&(w((a=i.getTitlePosition()).y)?(d[d.isNew?"attr":"animate"](a),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),g&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,S(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(S(this,"destroy",{keepEvents:t}),t||E(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){y(t)}),i)for(t=i.length;t--;)i[t].destroy();for(var s in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[s]=e.plotLinesAndBandsGroups[s].destroy();P(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var o,s=this.crosshair,r=L(s&&s.snap,!0),n=this.chart,a=this.cross;if(S(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),s&&!1!==(m(e)||!r)){if(r?m(e)&&(o=L("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(o)){var h={value:e&&(this.isXAxis?e.x:L(e.stackY,e.y)),translatedValue:o};n.polar&&b(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),h=this.getPlotLinePath(h)||null}if(!m(h)){this.hideCrosshair();return}r=this.categories&&!this.isRadial,a||(this.cross=a=n.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(s.className||"")).attr({zIndex:L(s.zIndex,2)}).add(),n.styledMode||(a.attr({stroke:s.color||(r?i.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":L(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&a.attr({dashstyle:s.dashStyle}))),a.show().attr({d:h}),r&&!s.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();S(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),S(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return w(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart;t=T(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,L(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,s=o.length;s--;)o[s]&&o[s].remove(!1);
1v(e.axes,this),v(e[i],this),e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,L(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}()}),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.getMagnitude,s=t.normalizeTickInterval,r=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var a=[];t.compose=function(t){return -1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,i(t,"init",n)),t};var h=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],a=r[(e=n[n.length-1])[0]],h=e[1];for(i=0;i<n.length&&(a=r[(e=n[i])[0]],h=e[1],!n[i+1]||!(t<=(a*h[h.length-1]+r[n[i+1][0]])/2));i++);return a===r.year&&t<5*a&&(h=[1,2,5]),t=s(t/a,h,"year"===e[0]?Math.max(o(t/a),1):1),{unitRange:a,count:t,unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis;return i.closestPointRange?i.chart.time.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||e.year:e.day},t}();t.Additions=h}(e||(e={})),e}),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Utilities.js"]],function(t){var e,i=t.addEvent,o=t.getMagnitude,s=t.normalizeTickInterval,r=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new h(this))}function n(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var a=[];t.compose=function(t){return -1===a.indexOf(t)&&(a.push(t),t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",n)),t};var h=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,n){var a=this.axis,h=a.len,l=a.options,c=[];if(n||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),c=a.getLinearTickPositions(t,e,i);else if(.08<=t){var d,p=Math.floor(e),u=l=void 0;for(h=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];p<i+1&&!u;p++){var f=h.length;for(d=0;d<f&&!u;d++){var g=this.log2lin(this.lin2log(p)*h[d]);g>e&&(!n||l<=i)&&void 0!==l&&c.push(l),l>i&&(u=!0),l=g}}}else e=this.lin2log(e),i=this.lin2log(i),t=s(t=r("auto"===(t=n?a.getMinorTickInterval():l.tickInterval)?null:t,this.minorAutoInterval,l.tickPixelInterval/(n?5:1)*(i-e)/((n?h/a.tickPositions.length:h)||1)),void 0,o(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this.minorAutoInterval=t/5);return n||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=h}(e||(e={})),e}),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],function(t){var e,i,o,s,r=t.erase,n=t.extend,a=t.isNumber;return i=[],(s||(s={})).compose=function(t,s){return e||(e=t),-1===i.indexOf(s)&&(i.push(s),n(s.prototype,o.prototype)),s},o=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],r=this.horiz;if(e=!a(this.min)||!a(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&o){if(e){var n=t.toString()===o.toString();i=0}for(e=0;e<t.length;e+=2){var h=t[e],l=t[e+1],c=o[e],d=o[e+1];"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||(r&&c[1]===h[1]?(c[1]+=i,d[1]+=i):r||c[2]!==h[2]||(c[2]+=i,d[2]+=i),s.push(["M",h[1],h[2]],["L",l[1],l[2]],["L",d[1],d[2]],["L",c[1],c[2]],["Z"])),s.isFlat=n}}return s},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,i){var o=this,s=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEac
1h(function(t){o.addPlotBandOrLine(t)})),i){var n=s[i]||[];n.push(t),s[i]=n}this.plotLinesAndBands.push(r)}return r},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(e){for(var s=e.length;s--;)e[s].id===t&&e[s].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){for(s=e.length;s--;)(e[s]||{}).id===t&&r(e,e[s])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}(),s}),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[i["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.arrayMax,o=e.arrayMin,s=e.defined,r=e.destroyObjectProperties,n=e.erase,a=e.fireEvent,h=e.merge,l=e.objectEach,c=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(i){return t.compose(e,i)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,i=e.horiz,o=e.logarithmic,r=t.options,n=r.color,d=c(r.zIndex,0),p=r.events,u={},f=e.chart.renderer,g=r.label,m=t.label,y=r.to,v=r.from,x=r.value,b=t.svgElem,S=[],k=s(v)&&s(y);S=s(x);var C=!b,w={class:"highcharts-plot-"+(k?"band ":"line ")+(r.className||"")},M=k?"bands":"lines";if(o&&(v=o.log2lin(v),y=o.log2lin(y),x=o.log2lin(x)),e.chart.styledMode||(S?(w.stroke=n||"#999999",w["stroke-width"]=c(r.width,1),r.dashStyle&&(w.dashstyle=r.dashStyle)):k&&(w.fill=n||"#e6ebf5",r.borderWidth&&(w.stroke=r.borderColor,w["stroke-width"]=r.borderWidth))),u.zIndex=d,M+="-"+d,(o=e.plotLinesAndBandsGroups[M])||(e.plotLinesAndBandsGroups[M]=o=f.g("plot-"+M).attr(u).add()),C&&(t.svgElem=b=f.path().attr(w).add(o)),S)S=e.getPlotLinePath({value:x,lineWidth:b.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!k)return;S=e.getPlotBandPath(v,y,r)}return!t.eventsAdded&&p&&(l(p,function(e,i){b.on(i,function(e){p[i].apply(t,[e])})}),t.eventsAdded=!0),(C||!b.d)&&S&&S.length?b.attr({d:S}):b&&(S?(b.show(!0),b.animate({d:S})):b.d&&(b.hide(),m&&(t.label=m=m.destroy()))),g&&(s(g.text)||s(g.formatter))&&S&&S.length&&0<e.width&&0<e.height&&!S.isFlat?(g=h({align:i&&k&&"center",x:i?!k&&4:10,verticalAlign:!i&&k&&"middle",y:i?k?16:10:k?6:-4,rotation:i&&!k&&90},g),this.renderLabel(g,S,k,d)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,s,r){var n=this.axis,a=n.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(s?"band":"line")+"-label "+(t.className||""),zIndex:r}).add(),n.chart.styledMode||l.css(h({textOverflow:"ellipsis"},t.style))),r=e.xBounds||[e[0][1],e[1][1],s?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],s?e[2][2]:e[0][2]],s=o(r),a=o(e),l.align(t,!1,{x:s,y:a,width:i(r)-s,height:i(e)-a}),l.alignValue&&"left"!==l.alignValue||l.css({width:(90===l.rotation?n.height-(l.alignAttr.y-n.top):n.width-(l.alignAttr.x-n.left))+"px"}),l.show(!0)},e.prototype.getLabelText=function(t){return s(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){n(this.axis.plotLinesAndBands,this),delete this.axis,r(this)},e}()}),e(i,"Core/Tooltip.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=t.format,n=e.doc,a=i.distribute,h=s.addEvent,l=s.clamp,c=s.css,d=s.defined,p=s.discardElement,u=s.extend,f=s.fireEvent,g=s.isArray,m=s.isNumber,y=s.isString,v=s.merge,x=s.pick,b=s.splat,S=s.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})}
1,t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e=this.points||b(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),p(this.container)),s.clearTimeout(this.hideTimer),s.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i,o,s=this.chart,r=s.pointer,n=s.inverted,a=s.plotTop,h=s.plotLeft,l=0,c=0;return t=b(t),this.followPointer&&e?(void 0===e.chartX&&(e=r.normalize(e)),r=[e.chartX-h,e.chartY-a]):t[0].tooltipPos?r=t[0].tooltipPos:(t.forEach(function(t){i=t.series.yAxis,o=t.series.xAxis,l+=t.plotX||0,c+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,o&&i&&(n?(l+=a+s.plotHeight-o.len-o.pos,c+=h+s.plotWidth-i.len-i.pos):(l+=o.pos-h,c+=i.pos-a))}),l/=t.length,c/=t.length,r=[n?s.plotWidth-c:l,n?s.plotHeight-l:c],this.shared&&1<t.length&&e&&(n?r[0]=e.chartX-h:r[1]=e.chartY-a)),r.map(Math.round)},t.prototype.getLabel=function(){var t,i=this,s=this.chart.styledMode,r=this.options,n=this.split&&this.allowShared,a="tooltip"+(d(r.className)?" "+r.className:""),l=r.style.pointerEvents||(!this.followPointer&&r.stickOnContact?"auto":"none"),p=function(){i.inContact=!0},u=function(t){var e=i.chart.hoverSeries;i.inContact=i.shouldStickOnContact()&&i.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!i.inContact&&e&&e.onMouseOut&&e.onMouseOut()},f=this.chart.renderer;if(i.label){var g=!i.label.hasClass("highcharts-label");(n&&!g||!n&&g)&&i.destroy()}if(!this.label){if(this.outside){g=this.chart.options.chart.style;var m=o.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",c(t,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(g&&g.zIndex||0)+3)}),h(t,"mouseenter",p),h(t,"mouseleave",u),e.doc.body.appendChild(t),this.renderer=f=new m(t,0,0,g,void 0,void 0,f.styledMode)}if(n?this.label=f.g(a):(this.label=f.label("",0,0,r.shape,void 0,void 0,r.useHTML,void 0,a).attr({padding:r.padding,r:r.borderRadius}),s||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:l}).shadow(r.shadow)),s&&r.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),i.outside&&!i.split){var y=this.label,v=y.xSetter,x=y.ySetter;y.xSetter=function(e){v.call(y,i.distance),t.style.left=e+"px"},y.ySetter=function(e){x.call(y,i.distance),t.style.top=e+"px"}}this.label.on("mouseenter",p).on("mouseleave",u).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var o,s=this.chart,r=this.distance,a={},h=s.inverted&&i.h||0,l=this.outside,c=l?n.documentElement.clientWidth-2*r:s.chartWidth,d=l?Math.max(n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight,n.documentElement.clientHeight):s.chartHeight,p=s.pointer.getChartPosition(),u=function(o){var n="x"===o;return[o,n?c:d,n?t:e].concat(l?[n?t*p.scaleX:e*p.scaleY,n?p.left-r+(i.plotX+s.plotLeft)*p.scaleX:p.top-r+(i.plotY+s.plotTop)*p.scaleY,0,n?c:d]:[n?t:e,n?i.plotX+s.plotLeft:i.plotY+s.plotTop,n?s.plotLeft:s.plotTop,n?s.plotLeft+s.plotWidth:s.plotTop+s.plotHeight])},f=u("y"),g=u("x");u=!!i.negative,!s.polar&&s.hoverSeries&&s.hoverSeries.yAxis&&s.hoverSeries.yAxis.reversed&&(u=!u);var m=!this.followPointer&&x(i.ttBelow,!s.inverted===u),y=function(t,e,i,o,s,n,c){var d=l?"y"===t?r*p.scaleY:r*p.scaleX:r,u=(i-o)/2,f=o<s-r,g=s+r+o<e,y=s-d-i+u;if(s=s+d-u,m&&g)a[t]=s;else if(!m&&f)a[t]=y;else if(f)a[t]=Math.min(c-o,0>y-h?y:y-h);else{if(!g)return!1;a[t]=Math.max(n,s+h+i>e?s:s+h)}},v=function(t,e,i,o,s){var n;return s<r||s>e-r?n=!1:a[t]=s<i/2?1:s>e-o/2?e-o-2:s-i/2,n},b=function(t){var e=f;f=g,g=e,o=t},S=function(){!1!==y.apply(0,f)?!1!==v.apply(0,g)||o||(b(!0),S()):o?a.x=a.y=0:(b(!0),S())};return(s.inverted||1<this.len)&&b(),S(),a},t.prototype.hide=function(t){var e=this;s.clearTimeout(this.hideTimer),t=x(t,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=x(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},t.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)}
1,t.prototype.move=function(t,e,i,o){var r=this,n=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-n.x)||1<Math.abs(e-n.y)),h=r.followPointer||1<r.len;u(n,{x:a?(2*n.x+t)/3:t,y:a?(n.y+e)/2:e,anchorX:h?void 0:a?(2*n.anchorX+i)/3:i,anchorY:h?void 0:a?(n.anchorY+o)/2:o}),r.getLabel().attr(n),r.drawTracker(),a&&(s.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,e,i,o)},32))},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=b(t),n=r[0],a=[],h=o.formatter||this.defaultFormatter,l=this.shared,c=i.styledMode,d={};if(o.enabled){s.clearTimeout(this.hideTimer),this.allowShared=!(!g(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&n.series.tooltipOptions.followPointer;var p=(t=this.getAnchor(t,e))[0],u=t[1];if(l&&this.allowShared?(i.pointer.applyInactiveState(r),r.forEach(function(t){t.setState("hover"),a.push(t.getLabelConfig())}),(d={x:n.category,y:n.y}).points=a):d=n.getLabelConfig(),this.len=a.length,h=h.call(d,this),l=n.series,this.distance=x(l.tooltipOptions.distance,16),!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,r);else{var m=p,y=u;if(e&&i.pointer.isDirectTouch&&(m=e.chartX-i.plotLeft,y=e.chartY-i.plotTop),i.polar||!1===l.options.clip||r.some(function(t){return t.series.shouldShowTooltip(m,y)}))e=this.getLabel(),o.style.width&&!c||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:h&&h.join?h.join(""):h}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+x(n.colorIndex,l.colorIndex)),c||e.attr({stroke:o.borderColor||n.color||l.color||"#666666"}),this.updatePosition({plotX:p,plotY:u,negative:n.negative,ttBelow:n.ttBelow,h:t[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}f(this,"refresh")}},t.prototype.renderSplit=function(t,e){function i(t,e,i,s,r){return void 0===r&&(r=!0),i?(e=L?0:j,t=l(t-s/2,T.left,T.right-s-(o.outside?O:0))):(e-=E,t=l(t=r?t-s-C:t+C,r?t:T.left,T.right)),{x:t,y:e}}var o=this,s=o.chart,r=o.chart,h=r.chartWidth,c=r.chartHeight,d=r.plotHeight,p=r.plotLeft,f=r.plotTop,g=r.pointer,m=r.scrollablePixelsY;m=void 0===m?0:m;var v=r.scrollablePixelsX,b=r.scrollingContainer,S=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var k=r.styledMode,C=o.distance,w=o.options,M=o.options.positioner,T=o.outside&&"number"!=typeof v?n.documentElement.getBoundingClientRect():{left:S,right:S+h,top:b,bottom:b+c},A=o.getLabel(),P=this.renderer||s.renderer,L=!(!s.xAxis[0]||!s.xAxis[0].opposite),O=(s=g.getChartPosition()).left;s=s.top;var E=f+b,D=0,j=d-m;y(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,s,r){if(!1!==s&&""!==s){var n=(r=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,a=n?o:r.series;s=s.toString();var h=a.tt,c=r.isHeader,u=r.series,g="highcharts-color-"+x(r.colorIndex,u.colorIndex,"none");if(h||(h={padding:w.padding,r:w.borderRadius},k||(h.fill=w.backgroundColor,h["stroke-width"]=w.borderWidth),h=P.label("",0,0,w[c?"headerShape":"shape"],void 0,void 0,w.useHTML).addClass((c?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+g).attr(h).add(A)),h.isActive=!0,h.attr({text:s}),k||h.css(w.style).shadow(w.shadow).attr({stroke:w.borderColor||r.color||u.color||"#333333"}),s=(c=(a=a.tt=h).getBBox()).width+a.strokeWidth(),n&&(j+=D=c.height,L&&(E-=D)),u=void 0===(u=r.plotX)?0:u,g=void 0===(g=r.plotY)?0:g,h=r.series,r.isHeader){u=p+u;var m=f+d/2}else{var y=h.xAxis,v=h.yAxis;u=y.pos+l(u,-C,y.len+C),h.shouldShowTooltip(0,v.pos-f+g,{ignoreX:!0})&&(m=v.pos+g)}u=l(u,T.left-C,T.right+C),"number"==typeof m?(c=c.height+1,g=M?M.call(o,s,c,r):i(u,m,n,s),t.push({align:M?0:void 0,anchorX:u,anchorY:m,boxWidth:s,point:r,rank:x(g.rank,n?1:0),size:c,target:g.y,tt:a,x:g.x})):a.isActive=!1}return t},[]),!M&&t.some(function(t){var e=(o.outside?O:0)+t.anchorX;return e<T.left&&e+t.boxWidth<T.right||e<O-T.left+t.boxWidth&&T.right-e>e})&&(t=t.map(function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return u(t,{target:e.y,x:e.x})})),o.cleanSplit(),a(t,j);var I=O,B=O;t.forEach(function(t){var e=t.x,i=t.boxWidth;
1(t=t.isHeader)||(o.outside&&O+e<I&&(I=O+e),!t&&o.outside&&I+i>B&&(B=O+e))}),t.forEach(function(t){var e=t.x,i=t.anchorX,s=t.pos,r=t.point.isHeader;if(s={visibility:void 0===s?"hidden":"inherit",x:e,y:s+E,anchorX:i,anchorY:t.anchorY},o.outside&&e<i){var n=O-I;0<n&&(r||(s.x=e+n,s.anchorX=i+n),r&&(s.x=(B-I)/2,s.anchorX=i+n))}t.tt.attr(s)}),t=o.container,m=o.renderer,o.outside&&t&&m&&(r=A.getBBox(),m.setSize(r.width+r.x,r.height+r.y,!1),t.style.left=I+"px",t.style.top=s+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var s=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=0>i[0]?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,s=i.xAxis,n=s&&s.dateTime;s={isFooter:e,labelConfig:t};var a=o.xDateFormat,h=o[e?"footerFormat":"headerFormat"];return f(this,"headerFormatter",s,function(e){n&&!a&&m(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h(function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")}),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)}),s.text},t.prototype.update=function(t){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,v(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.options,o=e.pointer,s=this.getLabel();o=o.getChartPosition();var r=(i.positioner||this.getPosition).call(this,s.width,s.height,t),n=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(i=i.borderWidth+2*this.distance,this.renderer.setSize(s.width+i,s.height+i,!1),(1!==o.scaleX||1!==o.scaleY)&&(c(this.container,{transform:"scale("+o.scaleX+", "+o.scaleY+")"}),n*=o.scaleX,t*=o.scaleY),n+=o.left-r.x,t+=o.top-r.y),this.move(Math.round(r.x),Math.round(r.y||0),n,t)},t}()}),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/DefaultOptions.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r=e.animObject,n=i.defaultOptions,a=o.format,h=s.addEvent,l=s.defined,c=s.erase,d=s.extend,p=s.fireEvent,u=s.getNestedProperty,f=s.isArray,g=s.isFunction,m=s.isNumber,y=s.isObject,v=s.merge,x=s.objectEach,b=s.pick,S=s.syncTimeout,k=s.removeEvent,C=s.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},e.prototype.applyOptions=function(t,i){var o=this.series,s=o.options.pointValKey||o.pointValKey;return d(this,t=e.prototype.optionsToObject.call(this,t)),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=void 0===i?o.autoIncrement():i:m(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.dataLabel||e.dataLabels)&&(k(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var s,n=o.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),n&&(e.setState(),c(n,e),n.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),S(t,a.duration)):t(),o.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.destroy()}),delete e[t]})},e.prototype.firePointEvent=function(t,e,i){var o=this,s=this.series.options;(s.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),p(o,t,e,i)},e.prototype.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",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,o=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
1).graphic&&o.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&s.singular.push(r)}return["dataLabel","connector"].forEach(function(e){var o=e+"s";t[e]&&i[o]&&s.plural.push(o)}),s},e.prototype.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=e[0];this[t]>=i.value;)i=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:C(),this.resolveColor(),t.chart.pointCount++,p(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,s=o||i.pointArrayMap||["y"],r=s.length,n={},a=0,h=0;if(m(t)||null===t)n[s[0]]=t;else if(f(t))for(!o&&t.length>r&&("string"==(i=typeof t[0])?n.name=t[0]:"number"===i&&(n.x=t[0]),a++);h<r;)o&&void 0===t[a]||(0<s[h].indexOf(".")?e.prototype.setNestedProperty(n,t[a],s[h]):n[s[h]]=t[a]),a++,h++;else"object"==typeof t&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var o=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else e||(o=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,o)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,s){return t[i]=s.length-1===o?e:y(t[i],!0)?t[i]:{},t[i]},t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,o=b(i.valueDecimals,""),s=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h(function(e){e="{point."+e,(s||r)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,o){function s(){n.applyOptions(t);var o=h&&n.hasDummyGraphic;o=null===n.y?!o:o,h&&o&&(n.graphic=h.destroy(),delete n.hasDummyGraphic),y(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=h.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),r=n.index,a.updateParallelArrays(n,r),c.data[r]=y(c.data[r],!0)||y(t,!0)?n.options:b(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var r,n=this,a=n.series,h=n.graphic,l=a.chart,c=a.options;e=b(e,!0),!1===o?s():n.firePointEvent("update",{options:t},s)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,o=i.series,s=o.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||s.getSelectedPoints().forEac
1h(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(s.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=v(t.series.options.point,t.options).events;t.events=e,x(e,function(e,i){g(e)&&h(t,i,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var o,s=this.series,r=this.state,a=s.options.states[e||"normal"]||{},h=n.plotOptions[s.type].marker&&s.options.marker,l=h&&!1===h.enabled,c=h&&h.states&&h.states[e||"normal"]||{},u=!1===c.enabled,f=this.marker||{},g=s.chart,y=h&&s.markerAttribs,v=s.halo,x=s.stateMarkerGraphic;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(u||l&&!1===c.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,y&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){var S=s.pointAttribs(this,e),k=b(g.options.chart.animation,a.animation);s.options.inactiveOtherPoints&&m(S.opacity)&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:S.opacity},k)}),this.connector&&this.connector.animate({opacity:S.opacity},k)),this.graphic.animate(S,k)}o&&this.graphic.animate(o,b(g.options.chart.animation,c.animation,h.animation)),x&&x.hide()}else e&&c&&(r=f.symbol||s.symbol,x&&x.currentSymbol!==r&&(x=x.destroy()),o&&(x?x[i?"animate":"attr"]({x:o.x,y:o.y}):r&&(s.stateMarkerGraphic=x=g.renderer.symbol(r,o.x,o.y,o.width,o.height).add(s.markerGroup),x.currentSymbol=r)),!g.styledMode&&x&&"inactive"!==this.state&&x.attr(s.pointAttribs(this,e))),x&&(x[e&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));a=a.halo,o=(x=this.graphic||x)&&x.visibility||"inherit",a&&a.size&&x&&"hidden"!==o&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(x.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(a.size)}),v.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),v.point=this,g.styledMode||v.attr(d({fill:this.color||s.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),p(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}()}),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s=t.parse,r=e.charts,n=e.noop,a=o.addEvent,h=o.attr,l=o.css,c=o.defined,d=o.extend,p=o.find,u=o.fireEvent,f=o.isNumber,g=o.isObject,m=o.objectEach,y=o.offset,v=o.pick,x=o.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var i=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),m(i,function(t,e){i[e]=void 0})},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,o=this.zoomHor,r=this.zoomVert,n=e.plotLeft,a=e.plotTop,h=e.plotWidth,l=e.plotHeight,c=this.mouseDownX||0,d=this.mouseDownY||0,p=g(i.panning)?i.panning&&i.panning.enabled:i.panning,u=i.panKey&&t[i.panKey+"Key"],f=t.chartX,m=t.chartY,y=this.selectionMarker;if((!y||!y.touch)&&(f<n?f=n:f>n+h&&(f=n+h),m<a?m=a:m>a+l&&(m=a+l),this.hasDragged=Math.sqrt(Math.pow(c-f,2)+Math.pow(d-m,2)),10<this.hasDragged)){var v=e.isInsidePlot(c-n,d-a,{visiblePlotOnly:!0});(e.hasCartesianSeries||e.mapView)&&(this.zoomX||this.zoomY)&&v&&!u&&!y&&(this.selectionMarker=y=e.renderer.rect(n,a,o?1:h,r?1:l,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||y.attr({fill:i.selectionMarkerFill||s("#335cad").setOpacity(.25).get()})),y&&o&&(o=f-c,y.attr({width:Math.abs(o),x:(0<o?0:o)+c}
1)),y&&r&&(o=m-d,y.attr({height:Math.abs(o),y:(0<o?0:o)+d})),v&&!y&&p&&e.pan(t,i.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,i=this.chart,o=this.hasPinched;if(this.selectionMarker){var s=this.selectionMarker,r=s.attr?s.attr("x"):s.x,n=s.attr?s.attr("y"):s.y,a=s.attr?s.attr("width"):s.width,h=s.attr?s.attr("height"):s.height,p={originalEvent:t,xAxis:[],yAxis:[],x:r,y:n,width:a,height:h},g=!!i.mapView;(this.hasDragged||o)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&c(i.min)&&(o||e[({xAxis:"zoomX",yAxis:"zoomY"})[i.coll]])&&f(r)&&f(n)){var s=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((s?r:n)+l);s=i.toValue((s?r+a:n+h)-l),p[i.coll].push({axis:i,min:Math.min(d,s),max:Math.max(d,s)}),g=!0}}),g&&u(i,"selection",p,function(t){i.zoom(d(t,o?{animation:!1}:null))})),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),o&&this.scaleGroups()}i&&f(i.index)&&(l(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var o,s=this.chart,r=s.hoverPoint;return(s=s.tooltip,r&&s&&s.isStickyOnContact())?r:(t.forEach(function(t){var s=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if((s=g(t=t.searchPoint(i,s),!0)&&t.series)&&!(s=!g(o,!0))){s=o.distX-t.distX;var r=o.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==r?r:0!==n?n:o.series.index>t.series.index?-1:1)}s&&(o=t)}),o)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var s=t.shapeArgs;if(o&&i){var r=v(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&s&&f(s.x)&&f(s.y)&&(r=s.x,n=s.y),e?{chartX:i.len+i.pos-n,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:n+i.pos}}if(s&&s.x&&s.y)return{chartX:s.x,chartY:s.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,i,o,s,r){var n=[];o=!(!o||!t);var a={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:s};u(this,"beforeGetHoverData",a);var h=e&&!e.stickyTracking?[e]:i.filter(function(t){return a.filter?a.filter(t):t.visible&&!(!s&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking}),l=o||!r?t:this.findNearestKDPoint(h,s,r);return e=l&&l.series,l&&(s&&!e.noSharedTooltip?(h=i.filter(function(t){return a.filter?a.filter(t):t.visible&&!(!s&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=p(t.points,function(t){return t.x===l.x&&!t.isNull});g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),n.push(e))}):n.push(l)),u(this,"afterGetHoverData",a={hoverPoint:l}),{hoverPoint:a.hoverPoint,hoverSeries:e,hoverPoints:n}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=o.pageX-e.left,o=o.pageY-e.top,d(t,{chartX:Math.round(i/=e.scaleX),chartY:Math.round(o/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var o=e.plotLeft,s=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",d(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-o,t.chartY-s,{visiblePlotOnly:!0})&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=r[v(t.hoverChartIndex,-1)],o=this.chart.tooltip;o&&o.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset())},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),!e.openMenu&&(this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0}))&&(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var o=e.tooltip;!i||o&&o.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,i=e.chart,o=e.pinchDown,s=t.touches||[],r=s.length,a=e.lastValidTouch,h=e.hasZoom,l={},c=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={},f=e.selectionMarker;1<r?e.initiated=!0:1===r&&this.followTouchMove&&(e.initiated=!1),h&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(s,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(s,function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[o[0].chartX,o[1]&&o[1].chartX],a.y=[o[0].chartY,o[1]&&o[1].chartY],i.axes.forEac
1h(function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],o=t.minPixelPadding,s=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),n=Math.max(s,r);e.min=Math.min(t.pos,Math.min(s,r)-o),e.max=Math.max(t.pos+t.len,n+o)}}),e.res=!0):e.followTouchMove&&1===r?this.runPointActions(e.normalize(t)):o.length&&(u(i,"touchpan",{originalEvent:t},function(){f||(e.selectionMarker=f=d({destroy:n,touch:!0},i.plotBox)),e.pinchTranslate(o,s,l,f,p,a),e.hasPinched=h,e.scaleGroups(l,p)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,o,s,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,s,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,s,r)},t.prototype.pinchTranslateDirection=function(t,e,i,o,s,r,n,a){var h=this.chart,l=t?"x":"y",c=t?"X":"Y",d="chart"+c,p=t?"width":"height",u=h["plot"+(t?"Left":"Top")],f=h.inverted,g=h.bounds[t?"h":"v"],m=1===e.length,y=e[0][d],v=!m&&e[1][d];e=function(){"number"==typeof C&&20<Math.abs(y-v)&&(S=a||Math.abs(k-C)/Math.abs(y-v)),b=(u-k)/S+y,x=h["plot"+(t?"Width":"Height")]/S};var x,b,S=a||1,k=i[0][d],C=!m&&i[1][d];if(e(),(i=b)<g.min){i=g.min;var w=!0}else i+x>g.max&&(i=g.max-x,w=!0);w?(k-=.8*(k-n[l][0]),"number"==typeof C&&(C-=.8*(C-n[l][1])),e()):n[l]=[k,C],f||(r[l]=b-u,r[p]=x),r=f?1/S:S,s[p]=x,s[l]=i,o[f?t?"scaleY":"scaleX":"scale"+c]=S,o["translate"+c]=r*u+(k-r*y)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,s=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:s;t&&a&&x(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?n&&a&&x(a).length&&(n.refresh(a),n.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):s&&(s.setState(s.state,!0),i.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),r&&r.forEach(function(t){t.setState()}),o&&o.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(e,i){var o=this.chart,s=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,n=!!s&&s.shared,h=i||o.hoverPoint,l=h&&h.series||o.hoverSeries;h=(i=this.getHoverData(h,l,o.series,(!e||"touchmove"!==e.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),n,e)).hoverPoint,l=i.hoverSeries;var c=i.hoverPoints;if(i=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,n=n&&l&&!l.noSharedTooltip,h&&(h!==o.hoverPoint||s&&s.isHidden)){if((o.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),o.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!h.series)return;o.hoverPoints=c,o.hoverPoint=h,h.firePointEvent("mouseOver"),s&&s.refresh(n?c:h,e)}else i&&s&&!s.isHidden&&(h=s.getAnchor([{}],e),o.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(o.container.ownerDocument,"mousemove",function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach(function(t){var i,s=v((t.crosshair||{}).snap,!0);s&&((i=o.hoverPoint)&&i.series[t.coll]===t||(i=p(c,function(e){return e.series[t.coll]===t}))),i||!s?t.drawCrosshair(e,i):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach(function(o){var s=t||o.getPlotBox();o.group&&(o.xAxis&&o.xAxis.zoomEnabled||i.mapView)&&(o.group.attr(s),o.markerGroup&&(o.markerGroup.attr(s),o.markerGroup.clip(e?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(s))}),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,o=this.chart.container,s=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(o,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(s,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",function(){delete i.chartPosition})),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(s,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,o=e.charts[v(t.hoverChartIndex,-1)];o&&o!==i&&o.pointer.onContainerMouseLeave({relatedTarget:!0}),o&&o.mouseIsDown||(t.hoverChartIndex=i.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length){if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(o,!0)&&this.pinch(t)}else e&&this.reset()}else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart;e=e.inverted;var o=i.zoomType||"";/touch/.test(t.type)&&(o=v(i.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}()}),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],function(t,e,
1i){function o(t,i,o,s){var r,a=n[e.hoverChartIndex||NaN];("touch"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_TOUCH)&&a&&(a=a.pointer,s(t),a[i]({type:o,target:t.currentTarget,preventDefault:h,touches:((r=[]).item=function(t){return this[t]},p(f,function(t){r.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),r)}))}var s,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.charts,a=t.doc,h=t.noop,l=t.win,c=i.addEvent,d=i.css,p=i.objectEach,u=i.removeEvent,f={},g=!!l.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(u),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){o(t,"onContainerTouchStart","touchstart",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},i.prototype.onContainerPointerMove=function(t){o(t,"onContainerTouchMove","touchmove",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)})},i.prototype.onDocumentPointerUp=function(t){o(t,"onDocumentTouchEnd","touchend",function(t){delete f[t.pointerId]})},i.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},i}(e)}),e(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r){var n=t.animObject,a=t.setAnimation,h=e.format;t=i.isFirefox;var l=i.marginNames;i=i.win;var c=s.distribute,d=r.addEvent,p=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,b=r.pick,S=r.relativeLength,k=r.stableSort,C=r.syncTimeout;return s=r.wrap,r=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,o=t.legendItem,s=t.legendLine,r=t.legendSymbol,n=this.itemHiddenStyle.color;i=e?i.itemStyle.color:n;var a=e&&t.color||n,h=t.options&&t.options.marker,l={fill:a};o&&o.css({fill:i,color:i}),s&&s.attr({stroke:a}),r&&(h&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=n)),r.attr(l))}y(this,"afterColorizeItem",{item:t,visible:e})}
1,t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,o=i.symbolPadding,s=!i.rtl,r=t._legendItemPos;i=r[0],r=r[1];var n=t.checkbox,a=t.legendGroup;a&&a.element&&(o={translateX:s?i:this.legendWidth-i-2*o-4,translateY:r},s=function(){y(e,"afterPositionItem",{item:t})},f(a.translateY)?a.animate(o,void 0,s):(a.attr(o),s())),n&&(n.x=i,n.y=r)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&g(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var o=t.translateY;this.allItems.forEach(function(s){var r=s.checkbox;if(r){var n=o+i+r.y+(this.scrollOffset||0)+3;u(r,{left:t.translateX+s.checkboxOffset+r.x-20+"px",top:n+"px",display:this.proximate||n>o-6&&n<o+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?h(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,i=e.renderer,o=this.options,s=this.symbolWidth,r=o.symbolPadding||0,n=this.itemStyle,a=this.itemHiddenStyle,h="horizontal"===o.layout?b(o.itemDistance,20):0,l=!o.rtl,c=!t.series,d=!c&&t.series.drawLegendSymbol?t.series:t,p=d.options,u=this.createCheckboxForItem&&p&&p.showCheckbox,f=o.useHTML,g=t.options.className,m=t.legendItem;p=s+r+h+(u?20:0),m||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(c?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=m=i.text("",l?s+r:-r,this.baseline||0,f),e.styledMode||m.css(x(t.visible?n:a)),m.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:n.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=o.symbolHeight||this.fontMetrics.f,o.squareSymbol&&(this.symbolWidth=b(o.symbolWidth,Math.max(this.symbolHeight,16)),p=this.symbolWidth+r+h+(u?20:0),l&&m.attr("x",this.symbolWidth+r))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),u&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&n.width||m.css({width:(o.itemWidth||this.widthOption||e.spacingBox.width)-p+"px"}),this.setText(t),e=m.getBBox(),i=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=o.itemWidth||t.legendItemWidth||e.width+p,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*i?e.height:i))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,s=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=o?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=e:(this.itemY+=n+s+r,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];
1return this.chart.series.forEach(function(e){var i=e&&e.options;e&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),y(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,n){r.test(s)&&!f(t[n])&&(i[l[n]]=Math.max(i[l[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*o[n%2?"x":"y"]+b(o.margin,12)+e[n]+(i.titleOffset[n]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach(function(o){var s,r=i;if(o.yAxis){o.xAxis.options.reversed&&(r=!r),o.points&&(s=m(r?o.points:o.points.slice(0).reverse(),function(t){return v(t.plotY)})),r=this.itemMarginTop+o.legendItem.getBBox().height+this.itemMarginBottom;var n=o.yAxis.top-t.plotTop;s=o.visible?(s?s.plotY:o.yAxis.height)+(n-.3*r):n+o.yAxis.height,e.push({target:s,size:r,item:o})}},this),c(e,t.plotHeight).forEach(function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)})},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.options,o=this.padding,s=this.getAllItems(),r=this.group,n=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(i.width,t.spacingBox.width-o);var a=t.spacingBox.width-2*o-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,r||(this.group=r=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(r),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),k(s,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&s.reverse(),this.allItems=s,this.display=a=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEac
1h(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+o;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h)+o,n||(this.box=n=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r),n.isNew=!0),t.styledMode||n.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<s&&0<h&&(n[n.isNew?"attr":"animate"](n.crisp.call({},{x:0,y:0,width:s,height:h},n.strokeWidth())),n.isNew=!1),n[a?"show":"hide"](),t.styledMode&&"none"===r.getStyle("display")&&(s=h=0),this.legendWidth=s,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(o-=e.titleOffset[2]),o!==t.y&&(t=x(t,{y:o})),this.group.align(x(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o=this,s=this.chart,r=s.renderer,n=this.options,a=n.y,h="top"===n.verticalAlign,l=this.padding,c=n.maxHeight,d=n.navigation,p=b(d.animation,!0),u=d.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?x.attr({height:t}):x&&(o.clipRect=x.destroy(),o.contentGroup.clip()),o.contentGroup.div&&(o.contentGroup.div.style.clip=t?"rect("+l+"px,9999px,"+(l+t)+"px,0)":"auto")},y=function(t){return o[t]=r.circle(0,0,1.3*u).translate(u/2,u/2).add(v),s.styledMode||o[t].attr("fill","rgba(0,0,0,0.0001)"),o[t]};a=s.spacingBox.height+(h?-a:a)-l;var v=this.nav,x=this.clipRect;return"horizontal"!==n.layout||"middle"===n.verticalAlign||n.floating||(a/=2),c&&(a=Math.min(a,c)),f.length=0,t&&0<a&&t>a&&!1!==d.enabled?(this.clipHeight=e=Math.max(a-20-this.titleHeight-l,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,o){var s=t._legendItemPos[1],r=Math.round(t.legendItem.getBBox().height),n=f.length;(!n||s-f[n-1]>e&&(i||s)!==f[n-1])&&(f.push(i||s),n++),t.pageIx=n-1,i&&(g[o-1].pageIx=n-1),o===g.length-1&&s+r-f[n-1]>e&&r<=e&&(f.push(s),t.pageIx=n),s!==i&&(i=s)}),x||(x=o.clipRect=r.clipRect(0,l,9999,0),o.contentGroup.clip(x)),m(e),v||(this.nav=v=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,u,u).add(v),y("upTracker").on("click",function(){o.scroll(-1,p)}),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation"),s.styledMode||this.pager.css(d.style),this.pager.add(v),this.down=r.symbol("triangle-down",0,0,u,u).add(v),y("downTracker").on("click",function(){o.scroll(1,p)})),o.scroll(0),t=a):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,s=this.pages,r=s.length,h=this.clipHeight,l=this.options.navigation,c=this.pager,d=this.padding,p=this.currentPage+t;p>r&&(p=r),0<p&&(void 0!==e&&a(e,o),this.nav.attr({translateX:d,translateY:h+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),c.attr({text:p+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:p===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===p?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:p===r?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),C(function(){y(i,"afterScroll",{currentPage:p})},(t=n(b(e,o.renderer.globalAnimation,!0))).duration))},t.prototype.setItemEvents=function(t,e,i){var s=this,r=s.chart.renderer.boxWrapper,n=t instanceof o,a="highcharts-legend-"+(n?"point":"series")+"-active",h=s.chart.styledMode,l=function(e){s.allItems.forEac
1h(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!n)})})};(i?[e,t.legendSymbol]:[t.legendGroup]).forEach(function(i){i&&i.on("mouseover",function(){t.visible&&l("inactive"),t.setState("hover"),t.visible&&r.addClass(a),h||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(x(t.visible?s.itemStyle:s.itemHiddenStyle)),l(""),r.removeClass(a),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),l(t.visible?"inactive":"")};r.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):y(t,"legendItemClick",e,i)})})},t.prototype.createCheckboxForItem=function(t){t.checkbox=p("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),d(t.checkbox,"click",function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}(),(/Trident\/7\.0/.test(i.navigator&&i.navigator.userAgent)||t)&&s(r.prototype,"positionItem",function(t,e){var i=this,o=function(){e._legendItemPos&&t.call(i,e)};o(),i.bubbleLegend||setTimeout(o)}),r}),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/DefaultOptions.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=e.defaultOptions,n=o.error,a=o.extendClass,h=o.merge;return function(e){function o(t,o){var s=r.plotOptions||{},n=o.defaultOptions;o.prototype.pointClass||(o.prototype.pointClass=i),o.prototype.type=t,n&&(s[t]=n),e.seriesTypes[t]=o}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,i){void 0===i&&(i={});var o=t.options.chart;o=i.type||o.type||o.defaultSeriesType||"";var s=e.seriesTypes[o];return e||n(17,!0,t,{missingModuleFor:o}),"function"==typeof(o=new s).init&&o.init(t,i),o},e.registerSeriesType=o,e.seriesType=function(t,s,n,l,c){var d=r.plotOptions||{};return s=s||"",d[t]=h(d[s],n),o(t,a(e.seriesTypes[s]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=a(i,c)),e.seriesTypes[t]}}(s||(s={})),s}),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/FormatUtilities.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/Legend.js"],i["Core/MSPointer.js"],i["Core/DefaultOptions.js"],i["Core/Pointer.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],function(t,e,i,o,s,r,n,a,h,l,c,d,p,u,f){var g=t.animate,m=t.animObject,y=t.setAnimation,v=i.numberFormat,x=o.registerEventOptions,b=s.charts,S=s.doc,k=s.marginNames,C=s.svg,w=s.win,M=a.defaultOptions,T=a.defaultTime,A=c.seriesTypes,P=u.addEvent,L=u.attr,O=u.cleanRecursively,E=u.createElement,D=u.css,j=u.defined,I=u.discardElement,B=u.erase,R=u.error,z=u.extend,N=u.find,W=u.fireEvent,G=u.getStyle,H=u.isArray,X=u.isNumber,Y=u.isObject,F=u.isString,_=u.merge,U=u.objectEach,V=u.pick,K=u.pInt,Z=u.relativeLength,q=u.removeEvent,$=u.splat,J=u.syncTimeout,Q=u.uniqueKey;return t=function(){function t(t,e,i){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,i)}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.getArgs=function(t,e,i){F(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};W(this,"init",{args:arguments},function(){var o=_(M,t),r=o.chart;U(o.plotOptions,function(t,e){Y(t)&&(t.tooltip=i[e]&&_(i[e].tooltip)||void 0)}),o.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=o,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new p(t.time):s.time,this.numberFormatter=r.numberFormatter||v,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=b.length,b.push(this),s.chartCount++,x(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,W(this,"afterInit"),this.firstRen
1der()})},t.prototype.initSeries=function(t){var e=this.options.chart,i=A[e=t.type||e.type||e.defaultSeriesType];return i||R(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var i=e.length;t<i;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o=this.inverted,s=this.plotBox,r=this.plotLeft,n=this.plotTop,a=this.scrollablePlotBox,h=0,l=0;i.visiblePlotOnly&&this.scrollingContainer&&(h=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var c=i.series;if(s=i.visiblePlotOnly&&a||s,a=i.inverted?e:t,e=i.inverted?t:e,t={x:a,y:e,isInsidePlot:!0},!i.ignoreX){var d=c&&(o?c.yAxis:c.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?d.pos+a:r+a)>=Math.max(h+r,d.pos)&&a<=Math.min(h+r+s.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=c&&(o?c.xAxis:c.yAxis)||{pos:n,len:1/0},(i=i.paneCoordinates?o.pos+e:n+e)>=Math.max(l+n,o.pos)&&i<=Math.min(l+n+s.height,o.pos+o.len)||(t.isInsidePlot=!1)),W(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){W(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,s=this.legend,r=this.userOptions.legend,n=this.renderer,a=n.isHidden(),h=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var d=i[t];if(d.options.stacking||d.options.centerInCategory){var p=!0;if(d.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(d=i[t]).options.stacking&&(d.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):r&&(r.labelFormatter||r.labelFormat)&&(c=!0)),t.isDirtyData&&W(t,"updatedData")}),c&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),p&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push(function(){W(t,"afterSetExtremes",z(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||p)&&t.redraw()}),l&&this.drawChartBox(),W(this,"predraw"),i.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),o&&o.reset(!0),n.draw(),W(this,"redraw"),W(this,"render"),a&&this.temporaryDisplay(!0),h.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var i=this.series,o=N(this.axes,e)||N(this.series,e),s=0;!o&&s<i.length;s++)o=N(i[s].points||[],e);return o},t.prototype.getAxes=function(){var t=this,i=this.options,o=i.xAxis=$(i.xAxis||{});i=i.yAxis=$(i.yAxis||{}),W(this,"getAxes"),o.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),o.concat(i).forEach(function(i){new e(t,i)}),W(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){V(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,o="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};o=this.options[t]=_(!this.styledMode&&{style:o},this.options[t],e);var s=this[t];s&&e&&(this[t]=s=s.destroy()),o&&!s&&((s=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+t,zIndex:o.zIndex||4}
1).add()).update=function(e){i[({title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"})[t]](e)},this.styledMode||s.css(o.style),this[t]=s)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,o=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var s,r=this[t],n=this.options[t],a=n.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,r){this.styledMode||(s=n.style&&n.style.fontSize),s=i.fontMetrics(s,r).b,r.css({width:(n.width||o.width+(n.widthAdjust||0))+"px"});var h=Math.round(r.getBBox(n.useHTML).height);r.align(z({y:"bottom"===a?s:t+s,height:h},n),!1,"spacingBox"),n.floating||("top"===a?e[0]=Math.ceil(e[0]+h):"bottom"===a&&(e[2]=Math.ceil(e[2]+h)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,W(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;j(e)||(this.containerWidth=G(i,"width")),j(t)||(this.containerHeight=G(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,Z(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(D(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(S.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(S.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,S.body.appendChild(e)),("none"===G(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),D(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==S.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,i=e.chart,o=Q(),s=this.renderTo;s||(this.renderTo=s=i.renderTo),F(s)&&(this.renderTo=s=S.getElementById(s)),s||R(13,!0,this);var r=K(L(s,"data-highcharts-chart"));X(r)&&b[r]&&b[r].hasRendered&&b[r].destroy(),L(s,"data-highcharts-chart",this.index),s.innerHTML=f.emptyHTML,i.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize(),r=this.chartWidth;var n=this.chartHeight;if(D(s,{overflow:"hidden"}),this.styledMode||(t=z({position:"relative",overflow:"hidden",width:r+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{})),this.container=o=E("div",{id:o},t,s),this._cursor=o.style.cursor,this.renderer=new(i.renderer||!C?l.getRendererType(i.renderer):d)(o,r,n,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(i.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,W(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!j(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!j(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),W(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,s=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),k.forEach(function(i,s){j(o[s])||(t[i]+=e[s])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,s=j(i.width)&&j(i.height),r=i.width||G(o,"width");
1i=i.height||G(o,"height"),o=t?t.target:w,delete e.pointer.chartPosition,!s&&!e.isPrinting&&r&&i&&(o===w||o===S)&&((r!==e.containerWidth||i!==e.containerHeight)&&(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=J(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=r,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=P(w,"resize",function(t){e.options&&e.reflow(t)}),P(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var o=this,s=o.renderer;o.isResizing+=1,y(i,o),i=s.globalAnimation,o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||(i?g:D)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},i),o.setChartSize(!0),s.setSize(o.chartWidth,o.chartHeight,i),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,W(o,"resize"),J(function(){o&&W(o,"endResize",null,function(){--o.isResizing})},m(i).duration)},t.prototype.setChartSize=function(t){var e,i,o,s,r=this.inverted,n=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?s:o,this.plotSizeY=r?o:s,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=n.plotBox={x:e,y:i,width:o,height:s},a=Math.ceil(Math.max(r=2*Math.floor(this.plotBorderWidth/2),d[3])/2),h=Math.ceil(Math.max(r,d[0])/2),this.clipBox={x:a,y:h,width:Math.floor(this.plotSizeX-Math.max(r,d[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,d[2])/2-h))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),n.alignElements()),W(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){W(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var o=e[i],s=Y(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,r){t[i][r]=V(e[i+o],s[r])})}),k.forEach(function(e,i){t[e]=V(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,o=this.chartWidth,s=this.chartHeight,r=this.styledMode,n=this.plotBGImage,a=e.backgroundColor,h=e.plotBackgroun
1dColor,l=e.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,p=this.plotWidth,u=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,y=this.chartBackground,v=this.plotBackground,x=this.plotBorder,b="animate";if(y||(this.chartBackground=y=i.rect().addClass("highcharts-background").add(),b="attr"),r)var S=t=y.strokeWidth();else t=(S=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(S||y["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=S),y.attr(a).shadow(e.shadow);y[b]({x:t/2,y:t/2,width:o-t-S%2,height:s-t-S%2,r:e.borderRadius}),b="animate",v||(b="attr",this.plotBackground=v=i.rect().addClass("highcharts-plot-background").add()),v[b](f),r||(v.attr({fill:h||"none"}).shadow(e.plotShadow),l&&(n?(l!==n.attr("href")&&n.attr("href",l),n.animate(f)):this.plotBGImage=i.image(l,c,d,p,u).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=i.clipRect(m),b="animate",x||(b="attr",this.plotBorder=x=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||x.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),x[b](x.crisp({x:c,y:d,width:p,height:u},-x.strokeWidth())),this.isDirtyBox=!1,W(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,s=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach(function(n){for(e=A[s.type||s.defaultSeriesType],i=s[n]||e&&e.prototype[n],t=r&&r.length;!i&&t--;)(e=A[r[t].type])&&e.prototype[n]&&(i=!0);o[n]=i})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;F(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,i.options.visible,e.visible))}),W(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(i){var o=z(e.style,i.style),s=K(o.left)+t.plotLeft,r=K(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(i.html,s,r).attr({zIndex:2}).css(o).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,o=this.options,s=function(t){t.forEach(function(t){t.visible&&t.render()})},n=0;this.setTitle(),this.legend=new r(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return n=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-n,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var h=1.1<o/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach(function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?s(t):e&&e.length&&s(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=_(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(w.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,r=e.container,n=r&&r.parentNode;for(W(e,"destroy"),e.renderer.forExport?B(b,e):b[e.index]=void 0,s.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),q(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML=f.emptyHTML,q(r),n&&I(r)),U(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t=this,e=t.options;(!t.isReadyToRender||t.isReadyToRender())&&(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(H(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),W(t,"beforeRender"),h&&(n.isRequired()?t.pointer=new n(t,e):t.pointer=new h(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),W(this,"load"),W(this,"render"),j(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,i){var o,s=this;return t&&(e=V(e,!0),W(s,"addSeries",{options:t},function(){o=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),W(s,"afterAddSeries",{series:o}),e&&s.redraw(i)})),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,i){return t=new e(this,_(i.axis,{index:this[t].length,isX:"xAxis"===t})),V(i.redraw,!0)&&this.redraw(i.animation),t},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,s=function(){r&&D(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,n=e.loadingSpan;r||(e.loadingDiv=r=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=E("span",{className:"highcharts-loading-inner"},null,r),P(e,"redraw",s)),r.className="highcharts-loading",f.setElementHTML(n,V(t,i.lang.loading,"")),e.styledMode||(D(r,z(o.style,{zIndex:10})),D(n,o.labelStyle),e.loadingShown||(D(r,{opacity:0,display:""}),g(r,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,s()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){D(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var s,r,n=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,l=[];W(n,"update",{options:t}),h||n.setResponsive(!1,!0),t=O(t,n.options),n.userOptions=_(n.userOptions,t);var c=t.chart;if(c){if(_(!0,n.options.chart,c),"className"in c&&n.setClassName(c.className),"reflow"in c&&n.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){n.propFromSeries();var d=!0}"alignTicks"in c&&(d=!0),"events"in c&&x(this,c),U(c,function(t,e){-1!==n.propsRequireUpdateSeries.indexOf("chart."+e)&&(s=!0),-1!==n.propsRequireDirtyBox.indexOf(e)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(e)&&(h?n.isDirtyBox=!0:r=!0)}),!n.styledMode&&c.style&&n.renderer.setStyle(n.options.chart.style||{})}!n.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===T&&(this.time=new p(t.time)),_(!0,n.options.time,t.time)),U(t,function(e,i){n[i]&&"function"==typeof n[i].update?n[i].update(e,!1):"function"==typeof n[a[i]]?n[a[i]](e):"colors"!==i&&-1===n.collectionsWithUpdate.indexOf(i)&&_(!0,n.options[i],t[i]),"chart"!==i&&-1!==n.propsRequireUpdateSeries.indexOf(i)&&(s=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var o=[];n[e].forEach(function(t,e){t.options.isInternal||o.push(V(t.options.index,e))}),$(t[e]).forEach(function(t,s){var r,a=j(t.id);a&&(r=n.get(t.id)),!r&&n[e]&&(r=n[e][o?o[s]:s])&&a&&j(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&n.collectionsWithInit[e]&&(n.collectionsWithInit[e][0].apply(n,[t].concat(n.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&n[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}
1),d&&n.axes.forEach(function(t){t.update({},!1)}),s&&n.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),d=c&&c.width,c=c&&(F(c.height)?Z(c.height,d||n.chartWidth):c.height),r||X(d)&&d!==n.chartWidth||X(c)&&c!==n.chartHeight?n.setSize(d,c,o):V(e,!0)&&n.redraw(o),W(n,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,i=M.lang,o=e.options.chart.resetZoomButton,s=o.theme,r=s.states,n="chart"===o.relativeTo||"spacingBox"===o.relativeTo?null:"scrollablePlotBox";W(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s,r&&r.hover).attr({align:o.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(o.position,!1,n)}),W(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){W(this,"selection",{resetSelection:!0}
1,this.zoom)},t.prototype.zoom=function(t){var e,i=this,o=i.pointer,s=i.inverted?o.mouseDownX:o.mouseDownY,r=!1;!t||t.resetSelection?(i.axes.forEach(function(t){e=t.zoom()}),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var n=t.axis,a=i.inverted?n.left:n.top,h=i.inverted?a+n.width:a+n.height,l=n.isXAxis,c=!1;(!l&&s>=a&&s<=h||l||!j(s))&&(c=!0),o[l?"zoomX":"zoomY"]&&c&&(e=n.zoom(t.min,t.max),n.displayBtn&&(r=!0))});var n=i.resetZoomButton;r&&!n?i.showResetZoom():!r&&Y(n)&&(i.resetZoomButton=n.destroy()),e&&i.redraw(V(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i=this,o=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var s=i.options.chart,r=i.options.mapNavigation&&i.options.mapNavigation.enabled;s&&s.panning&&(s.panning=e);var n,a=e.type;W(this,"pan",{originalEvent:t},function(){o&&o.forEach(function(t){t.setState()});var e=i.xAxis;"xy"===a?e=e.concat(i.yAxis):"y"===a&&(e=i.yAxis);var s={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var o=e.horiz,h=t[o?"chartX":"chartY"],l=i[o=o?"mouseDownX":"mouseDownY"],c=e.minPointOffset||0,d=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,p=e.getExtremes(),u=e.toValue(l-h,!0)+c*d,f=e.toValue(l+e.len-h,!0)-(c*d||e.isXAxis&&e.pointRangePadding||0),g=f<u;d=e.hasVerticalPanning(),l=g?f:u,u=g?u:f;var m=e.panningState;!d||e.isXAxis||m&&!m.isDirty||e.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),X(e.dataMin)&&X(e.dataMax)&&(m.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,m.startMax))}),d=Math.min(V(m&&m.startMin,p.dataMin),c?p.min:e.toValue(e.toPixels(p.min)-e.minPixelPadding)),f=Math.max(V(m&&m.startMax,p.dataMax),c?p.max:e.toValue(e.toPixels(p.max)+e.minPixelPadding)),e.panningState=m,e.isOrdinal||(0<(c=d-l)&&(u+=c,l=d),0<(c=u-f)&&(u=f,l-=c),e.series.length&&l!==p.min&&u!==p.max&&l>=d&&u<=f&&(e.setExtremes(l,u,!1,!1,{trigger:"pan"}),i.resetZoomButton||r||l===d||u===f||!a.match("y")||(i.showResetZoom(),e.displayBtn=!1),n=!0),s[o]=h)}}),U(s,function(t,e){i[e]=t}),n&&i.redraw(!1),D(i.container,{cursor:"move"})})},t}(),z(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
1dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t}),e(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],function(t){var e,i,o=t.merge,s=t.pick;return(e=i||(i={})).drawLineMarker=function(t){var e=this.options,i=t.symbolWidth,r=t.symbolHeight,n=r/2,a=this.chart.renderer,h=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var l={},c=e.marker;this.chart.styledMode||(l={"stroke-width":e.lineWidth||0},e.dashStyle&&(l.dashstyle=e.dashStyle)),this.legendLine=a.path([["M",0,t],["L",i,t]]).addClass("highcharts-graph").attr(l).add(h),c&&!1!==c.enabled&&i&&(e=Math.min(s(c.radius,n),n),0===this.symbol.indexOf("url")&&(c=o(c,{width:r,height:r}),e=0),this.legendSymbol=i=a.symbol(this.symbol,i/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(h),i.isMarker=!0)},e.drawRectangle=function(t,e){var i=t.symbolHeight,o=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,s(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},i}),e(i,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/DefaultOptions.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h,l){var c=t.animObject,d=t.setAnimation,p=e.defaultOptions,u=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,y=a.seriesTypes,v=l.addEvent,x=l.arrayMax,b=l.arrayMin,S=l.clamp,k=l.cleanRecursively,C=l.correctFloat,w=l.defined,M=l.erase,T=l.error,A=l.extend,P=l.find,L=l.fireEvent,O=l.getNestedProperty,E=l.isArray,D=l.isNumber,j=l.isString,I=l.merge,B=l.objectEach,R=l.pick,z=l.removeEvent,N=l.splat,W=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){L(this,"init",{options:e});var i,o=this,s=t.series;this.eventsToUnbind=[],o.chart=t,o.options=o.setOptions(e),e=o.options,o.linkedSeries=[],o.bindAxes(),A(o,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach(function(t){o[t+"Data"]||(o[t+"Data"]=[])}),o.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),o._i=R(i&&i._i,-1)+1,o.opacity=o.options.opacity,t.orderSeries(this.insert(s)),e.dataSorting&&e.dataSorting.enabled?o.setDataSortingOptions():o.points||o.data||o.setData(e.data,!1),L(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(D(i)){for(e=t.length;e--;)if(i>=R(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return R(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;
1L(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(s){var r=0;o[s].forEach(function(o){t=o.options,(i[s]!==r||t.isInternal)&&(void 0===i[s]||i[s]!==t.id)&&(void 0!==i[s]||0!==t.index)||(e.insert(o.series),e[s]=o,o.isDirty=!0),t.isInternal||r++}),e[s]||e.optionalAxis===s||T(18,!0,o)})}),L(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,s=D(e)?function(o){var s="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(s)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,i=this.options,o=i.pointIntervalUnit,s=i.relativeXValue,r=this.chart.time,n=this.xIncrement;return(n=R(n,i.pointStart,0),this.pointInterval=e=R(this.pointInterval,i.pointInterval,1),s&&D(t)&&(e*=t),o&&(i=new r.Date(n),"day"===o?r.set("Date",i,r.get("Date",i)+e):"month"===o?r.set("Month",i,r.get("Month",i)+e):"year"===o&&r.set("FullYear",i,r.get("FullYear",i)+e),e=i.getTime()-n),s&&D(t))?n+e:(this.xIncrement=n+e,n)},t.prototype.setDataSortingOptions=function(){var t=this.options;A(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,s=e.userOptions||{};t=I(t),e=e.styledMode;var r={plotOptions:o,userOptions:t};L(this,"setOptions",r);var n=r.plotOptions[this.type],a=s.plotOptions||{};return this.userOptions=r.userOptions,s=I(n,o.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=I(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=R(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||s.stickyTracking),null===n.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,o=this.zones=(s.zones||[]).slice(),(s.negativeColor||s.negativeFillColor)&&!s.zones&&(i={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(i.color=s.negativeColor,i.fillColor=s.negativeFillColor),o.push(i)),o.length&&w(o[o.length-1].value)&&o.push(e?{}:{color:this.color,fillColor:this.fillColor}),L(this,"afterSetOptions",{options:s}),s},t.prototype.getName=function(){return R(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o=this.chart,s=this.userOptions,r=t+"Index",n=t+"Counter",a=i?i.length:R(o.options.chart[t+"Count"],o[t+"Count"]);if(!e){var h=R(s[r],s["_"+r]);w(h)||(o.series.length||(o[n]=0),s["_"+r]=h=o[n]%a,o[n]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var i,o,s=t.id,n=t.x,a=this.points,h=this.options.dataSorting;if(s)(h=this.chart.get(s))instanceof r&&(i=h);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(i=function(e){return!e.touched&&e.index===t.index},h&&h.matchByName?i=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(i=function(e){return!e.touched&&e.options.x===t.x}),!(i=P(a,i))))return;if(i){var l=i&&i.index;void 0!==l&&(o=!0)}return void 0===l&&D(n)&&(l=this.xData.indexOf(n,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!o&&D(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,s,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach(function(t,e){var o=w(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=o.x;o.id||D(d)?(-1===(o=this.findPointIndex(o,s))||void 0===o?h.push(t):a[o]&&t!==r.data[o]?(a[o].update(t,!1,null,!1),a[o].touched=!0,l&&(s=o+1)):a[o]&&(a[o].touched=!0),(!c||e!==o||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)},this),i)for(t=a.length;t--;)(o=a[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!c||n&&n.enabled?d=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),h.length=0);return a.forEach(function(t){t&&(t.touched=!1)}
1),!!d&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){var s=this,r=s.points,n=r&&r.length||0,a=s.options,h=s.chart,l=a.dataSorting,c=s.xAxis,d=a.turboThreshold,p=this.xData,u=this.yData,f=s.pointArrayMap;f=f&&f.length;var g,m=a.keys,y=0,v=1,x=null,b=(t=t||[]).length;if(e=R(e,!0),l&&l.enabled&&(t=this.sortData(t)),!1!==o&&b&&n&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.isSeriesBoosting&&(g=this.updateData(t,i)),!g){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach(function(t){s[t+"Data"].length=0}),d&&b>d){if(D(x=s.getFirstValidPoint(t)))for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else if(E(x)){if(f){if(x.length===f)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else for(i=0;i<b;i++)o=t[i],p[i]=o[0],u[i]=o.slice(1,f+1)}else if(m&&(y=m.indexOf("x"),v=m.indexOf("y"),y=0<=y?y:0,v=0<=v?v:1),1===x.length&&(v=0),y===v)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i][v];else for(i=0;i<b;i++)o=t[i],p[i]=o[y],u[i]=o[v]}else T(12,!1,h)}else for(i=0;i<b;i++)void 0!==t[i]&&(o={series:s},s.pointClass.prototype.applyOptions.apply(o,[t[i]]),s.updateParallelArrays(o,i));for(u&&j(u[0])&&T(14,!0,h),s.data=[],s.options.data=s.userOptions.data=t,i=n;i--;)r[i]&&r[i].destroy&&r[i].destroy();c&&(c.minRange=c.userMinRange),s.isDirty=h.isDirtyBox=!0,s.isDirtyData=!!r,i=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&h.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return w(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,s){t[s]=o(e,i),t[s].index=s},this),t.concat().sort(function(t,e){return t=O(i,t),(e=O(i,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach(function(i,r){s[r]=o(e,i),t[r]&&(s[r].x=t[r].x,s[r].index=r)}),e.setData(s,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,o=i.cropThreshold,s=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var n=0,a=this.xData,h=this.yData,l=this.requireSorting,c=!1,d=a.length;if(e){var p=(c=e.getExtremes()).min,u=c.max;c=e.categories&&!e.names.length}if(r&&this.sorted&&!s&&(!o||d>o||this.forceCrop)){if(a[d-1]<p||a[0]>u)a=[],h=[];else if(this.yData&&(a[0]<p||a[d-1]>u)){var f=this.cropData(this.xData,this.yData,p,u);a=f.xData,h=f.yData,n=f.start,f=!0}}for(o=a.length||1;--o;)if(0<(e=i?t(a[o])-t(a[o-1]):a[o]-a[o-1])&&(void 0===g||e<g))var g=e;else 0>e&&l&&!c&&(T(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:n,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,L(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,o,s){var r,n=t.length,a=0,h=n;for(r=0,s=R(s,this.cropShoulder);r<n;r++)if(t[r]>=i){a=Math.max(0,r-s);break}for(i=r;i<n;i++)if(t[i]>o){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,i=this.processedXData,o=this.processedYData,s=this.pointClass,r=i.length,n=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?n:0;var c,d,p=this.data;if(!p&&!a){var u=[];u.length=e.length,p=this.data=u}for(h&&a&&(this.options.keys=!1),d=0;d<r;d++){if(u=n+d,a){var f=(new s).init(this,[i[d]].concat(N(o[d])));f.dataGroup=this.groupMap[t+d],f.dataGroup.options&&(f.options=f.dataGroup.options,A(f,f.dataGroup.options),delete f.dataLabels)}else(f=p[u])||void 0===e[u]||(p[u]=f=(new s).init(this,e[u],i[d]));f&&(f.index=a?t+d:u,l[d]=f)}if(this.options.keys=h,p&&(r!==(c=p.length)||a))for(d=0;d<c;d++)d!==n||a||(d+=r),p[d]&&(p[d].destroyElements(),p[d].plotX=void 0);this.data=p,this.points=l,L(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:b(t),max:x(t)}},t.prototype.getExtremes=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.processedXData||this.xData,r=[],n=this.requireSorting?this.cropShoulder:0;o=!!o&&o.positiveValuesOnly;var a,h=0,l=0,c=0,d=(t=t||this.stackedYData||this.processedYData||[]).length;if(i){var p=i.getExtremes();h=p.min,l=p.max}for(a=0;a<d;a++){var u=s[a],f=(D(p=t[a])||E(p))&&(p.length||0<p||!o);if(u=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(s[a+n]||u)>=h&&(s[a-n]||u)<=l,f&&u){if(f=p.length)for(;f--;)D(p[f])&&(r[c++]=p[f]);else r[c++]=p}}return L(this,"afterGetExtremes",{dataExtremes:t={activeYData:r,dataMin:b(r),dataMax:x(r)}}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i<e;)o=t[i],i++;return o},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,o=i.stacking,s=this.xAxis,r=s.categories,n=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=this.pointPlacementToXValue(),d=!!c,p=i.threshold,u=i.startFromThreshold?p:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var m=h[t],y=m.x,v=void 0,x=void 0,b=m.y,k=m.low,M=o&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(u?0:p)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||s.positiveValuesOnly&&!s.validatePositiveValue(y))&&(m.isNull=!0),m.plotX=e=C(S(s.translate(y,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),o&&this.visible&&M&&M[y]){var T=this.getStackIndicator(T,y,this.index);m.isNull||(x=(v=M[y]).points[T.key])}if(E(x)&&(k=x[0],b=x[1],k===u&&T.key===M[y].base&&(k=R(D(p)&&p,a.min)),a.positiveValuesOnly&&0>=k&&(k=null),m.total=m.stackTotal=v.total,m.percentage=v.total&&m.y/v.total*100,m.stackY=b,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0)),m.yBottom=w(k)?S(a.translate(k,0,1,0,1),-1e5,1e5):null,this.dataModify&&(b=this.dataModify.modifyValue(b,t)),m.plotY=void 0,D(b)&&void 0!==(v=a.translate(b,!1,!0,!1,!0))&&(m.plotY=S(v,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=d?C(s.translate(y,0,0,0,1,c)):e,m.negative=m[f]<(i[f+"Threshold"]||p||0),m.category=r&&void 0!==r[m.x]?r[m.x]:m.x,!m.isNull&&!1!==m.visible){void 0!==A&&(g=Math.min(g,Math.abs(e-A)));var A=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&n&&(m.isNew=!0)}this.closestPointRangePx=g,L(this,"afterTranslate")}
1,t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){return(!e||!!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=I(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips;t=t.renderer;var s=this.getClipBox(),r=this.getSharedClipKey(),n=o[r];n?n.animate(s):o[r]=n=t.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,s=e.inverted,r=c(this.options.animation),n=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedClips[n],h=e.sharedClips[n+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,s&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[n]=a,h=e.renderer.clipRect({x:s?(e.plotSizeX||0)+99:-99,y:s?-e.plotLeft:-e.plotTop,width:99,height:s?e.chartWidth:e.chartHeight}),e.sharedClips[n+"m"]=h),i.clip(a),o&&o.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;o&&o.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),h&&h.element&&h.attr(e.prop,"width"===e.prop?t+99:t)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),B(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,L(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,i=this.points,o=this.chart,s=this.options.marker,r=this[this.specialGroup]||this.markerGroup,n=this.xAxis,a=R(s.enabled,!n||!!n.isRadial||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var h=i[t],l=(e=h.graphic)?"animate":"attr",c=h.marker||{},d=!!h.marker;if((a&&void 0===c.enabled||c.enabled)&&!h.isNull&&!1!==h.visible){var p=R(c.symbol,this.symbol,"rect"),u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=n.reversed?-(u.width||0):n.width);var f=!1!==h.isInside;e?e[f?"show":"hide"](f).animate(u):f&&(0<(u.width||0)||h.hasImage)&&(h.graphic=e=o.renderer.symbol(p,u.x,u.y,u.width,u.height,d?c:s).add(r),this.enabledDataSorting&&o.hasRendered&&(e.attr({x:h.startXPos}),l="animate")),e&&"animate"===l&&e[f?"show":"hide"](f).animate(u),e&&!o.styledMode&&e[l](this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,s=t.marker||{},r=s.symbol||o.symbol,n=R(s.radius,o.radius);return e&&(o=o.states[e],n=R((e=s.states&&s.states[e])&&e.radius,o&&o.radius,n+(o&&o.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(n=0),t={x:i.crisp?Math.floor(t.plotX-n):t.plotX-n,y:t.plotY-n},n&&(t.width=t.height=2*n),t},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,s=o&&o.marker||{},r=o&&o.color,n=t&&t.color,a=t&&t.zone&&t.zone.color,h=this.color;return t=R(s.lineWidth,i.lineWidth),o=1,h=r||a||n||h,r=s.fillColor||i.fillColor||h,n=s.lineColor||i.lineColor||h,e=e||"normal",i=i.states[e]||{},t=R((e=s.states&&s.states[e]||{}).lineWidth,i.lineWidth,t+R(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,n=e.lineColor||i.lineColor||n,o=R(e.opacity,i.opacity,o),{stroke:n,"stroke-width":t,fill:r,opacity:o}},t.prototype.destroy=function(t){var e,i,o,s=this,r=s.chart,n=/AppleWebKit\/533/.test(m.navigator.userAgent),a=s.data||[];for(L(s,"destroy"),this.removeEvents(t),(s.axisTypes||[]).forEach(function(t){(o=s[t])&&o.series&&(M(o.series,s),o.isDirty=o.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();s.clips&&s.clips.forEach(function(t){return t.destroy()}),l.clearTimeout(s.animationTimeout),B(s,function(t,e){t instanceof h&&!t.survive&&t[n&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===s&&(r.hoverSeries=void 0),M(r.series,s),r.orderSeries(),B(s,function(e,i){t&&"hcEvents"===i||delete s[i]})},t.prototype.applyZones=function(){var t,e,i,o,s,r,n,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(d.length&&(u||f)&&m&&void 0!==m.min){var x=m.reversed,b=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var k=m.getExtremes();d.forEach(function(d,C){t=S(R(e,t=x?b?l.plotWidth:0:b?0:m.toPixels(k.min)||0),0,g),e=S(Math.round(m.toPixels(R(d.value,k.max),!0)||0),0,g),v&&(t=e=m.toPi
1xels(k.max)),o=Math.abs(t-e),s=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:y?r:s,y:0,width:o,height:g},b||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?r:s,width:g,height:o},b&&(i.y=l.plotWidth-i.y)),y&&c.isVML&&(i=m.isXAxis?{x:0,y:x?s:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),p[C]?p[C].animate(i):p[C]=c.clipRect(i),n=h["zone-area-"+C],a=h["zone-graph-"+C],u&&a&&a.clip(p[C]),f&&n&&n.clip(p[C]),v=d.value>k.max,h.resetZones&&0===e&&(e=void 0)}),this.clips=p}else h.visible&&(u&&u.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(o.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))})}var i=this,o=i.chart;i.xAxis&&(i.eventsToUnbind.push(v(o,"resize",e)),e(),i.invertGroups=e)},t.prototype.plotGroup=function(t,e,i,o,s){var r=this[t],n=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(s)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox()),r},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||z(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=c(i.animation),s=t.visible?"inherit":"hidden",r=i.zIndex,n=t.hasRendered,a=e.seriesGroup,h=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?o.duration:0,L(this,"render");var l=t.plotGroup("group","series",s,r,a);t.markerGroup=t.plotGroup("markerGroup","markers",s,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),l.inverted=!!R(t.invertible,t.isCartesian)&&h,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(h),t.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=W(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,L(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,o=this.xAxis,s=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:R(o&&o.left,t.plotLeft),translateY:R(s&&s.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,i=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,W(function(){e.kdTree=function t(i,o,s){var r=i&&i.length;if(r){var n=e.kdAxisArray[o%s];return i.sort(function(t,e){return t[n]-e[n]}),{point:i[r=Math.floor(r/2)],left:t(i.slice(0,r),o+1,s),right:t(i.slice(r+1),o+1,s)}}}(e.getValidPoints(null,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var o=this,s=this.kdAxisArray[0],r=this.kdAxisArray[1],n=e?"distX":"dist";if(e=-1<o.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,c=o.kdAxisArray[a%h],d=l,p=w(e[s])&&w(l[s])?Math.pow(e[s]-l[s],2):null,u=w(e[r])&&w(l[r])?Math.pow(e[r]-l[r],2):null;return u=(p||0)+(u||0),l.dist=w(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=w(p)?Math.sqrt(p):Number.MAX_VALUE,u=0>(c=e[c]-l[c])?"left":"right",p=0>c?"right":"left",i[u]&&(d=(u=t(e,i[u],a+1,h))[n]<d[n]?u:l),i[p]&&Math.sqrt(c*c)<d[n]&&(d=(e=t(e,i[p],a+1,h))[n]<d[n]?e:d),d}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),D(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(o?o.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,o=[].concat(i?t.areaPath:t.graphPath),s=t.chart,r=s.pointer,n=s.renderer,a=s.options.tooltip.snap,h=t.tracker,l=function(e){s.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(g?1e-4:.002)+")";h?h.attr({d:o}):t.graph&&(t.tracker=n.path(o).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}
1),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){r.onTrackerMouseOut(t)}),e.cursor&&!s.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)})),L(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,s){var r=this.options,n=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=r.data,d=this.xData;e=R(e,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[t]);var u=p.x,f=d.length;if(this.requireSorting&&u<d[f-1])for(l=!0;f&&d[f-1]>u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),l&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==s&&L(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,s=o.data,r=s[t],n=o.points,a=o.chart,h=function(){n&&n.length===s.length&&n.splice(t,1),s.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(r||{series:o},"splice",t,1),r&&r.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&a.redraw()};d(i,a),e=R(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),R(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?L(r,"remove",null,s):s()},t.prototype.update=function(t,e){L(this,"update",{options:t=k(t,this.userOptions)});var i,o=this,s=o.chart,r=o.userOptions,n=o.initialType||o.type,a=s.options.plotOptions,h=y[n].prototype,l=o.finishedAnimating&&{animation:!1},c={},d=["eventOptions","navigatorSeries","baseSeries"],p=t.type||r.type||s.options.chart.type,u=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||o.hasOptionChanged("dataGrouping")||o.hasOptionChanged("pointStart")||o.hasOptionChanged("pointInterval")||o.hasOptionChanged("pointIntervalUnit")||o.hasOptionChanged("keys"));if(p=p||n,u&&(d.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),o.parallelArrays.forEach(function(t){d.push(t+"Data")}),t.data&&(t.dataSorting&&A(o.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=I(r,l,{index:void 0===r.index?o.index:r.index,pointStart:R(a&&a.series&&a.series.pointStart,r.pointStart,o.xData[0])},!u&&{data:o.options.data},t),u&&t.data&&(t.data=o.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach(function(t){d[t]=o[t],delete o[t]}),a=!1,y[p]){if(a=p!==o.type,o.remove(!1,!1,!1,!0),a){if(Object.setPrototypeOf)Object.setPrototypeOf(o,y[p].prototype);else{for(i in l=Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents,h)o[i]=void 0;A(o,y[p].prototype),l?o.hcEvents=l:delete o.hcEvents}}}else T(17,!0,s,{missingModuleFor:p});if(d.forEach(function(t){o[t]=d[t]}),o.init(s,t),u&&this.points){var f=o.options;!1===f.visible?(c.graphic=1,c.dataLabel=1):o._hasPointLabels||(t=f.marker,h=f.dataLabels,t&&(!1===t.enabled||(r.marker&&r.marker.symbol)!==t.symbol)&&(c.graphic=1),h&&!1===h.enabled&&(c.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===f.showInLegend&&t.legendItem&&s.legend.destroyItem(t))},this)}o.initialType=n,s.linkSeries(),a&&o.linkedSeries.length&&(o.isDirtyData=!0),L(this,"afterUpdate"),R(e,!0)&&s.redraw(!!u&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,o=this.userOptions[t];return o?e!==o:e!==R(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&L(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEac
1h(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i=this,o=i.options,s=i.graph,r=o.inactiveOtherPoints,n=o.states,a=R(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=0,c=o.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(n[t]&&!1===n[t].enabled)return;if(t&&(h=n[t].lineWidth||h+(n[t].lineWidthPlus||0),c=R(n[t].opacity,c)),s&&!s.dashstyle)for(o={"stroke-width":h},s.animate(o,a);i["zone-graph-"+l];)i["zone-graph-"+l].animate(o,a),l+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i=this,o=i.chart,s=i.legendItem,r=o.options.chart.ignoreHiddenSeries,n=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!n:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),(o.hoverSeries===i||(o.hoverPoint&&o.hoverPoint.series)===i)&&i.onMouseOut(),s&&o.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&o.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),r&&(o.isDirtyBox=!0),L(i,a),!1!==e&&o.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),L(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions=n,t}(),A(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:s.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=t,t}),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r){var n=t.stop,a=r.addEvent,h=r.createElement,l=r.merge,c=r.pick;a(i,"afterSetChartSize",function(t){var i=this.options.chart.scrollablePlotArea,o=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(o){if(this.scrollablePixelsX=o=Math.max(0,o-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=o,this.inverted?this.clipBox.height+=o:this.clipBox.width+=o;var s={1:{name:"right",value:o}}}}else i&&(this.scrollablePixelsY=o=Math.max(0,i-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=o,this.inverted?this.clipBox.width+=o:this.clipBox.height+=o,s={2:{name:"bottom",value:o}});s&&!t.skipAxes&&this.axes.forEach(function(t){s[t.side]?t.getPlotLinePath=function(){var i=s[t.side].name,o=this[i];this[i]=o-s[t.side].value;var r=e.prototype.getPlotLinePath.apply(this,arguments);return this[i]=o,r}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(i,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),i.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){t.pointer&&delete t.pointer.chartPosition}),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,o=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&o.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),o.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,o=s.getRendererType();t?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||
10)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new o(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),o=this.chartHeight+(this.scrollablePixelsY||0),n(this.container),this.container.style.width=e+"px",this.container.style.height=o+"px",this.renderer.boxWrapper.attr({width:e,height:o,viewBox:[0,0,e,o].join(" ")}),this.chartBackground.attr({width:e,height:o}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),o=this.axisOffset,t=this.plotTop-o[0]-1,i=this.plotLeft-o[3]-1,e=this.plotTop+this.plotHeight+o[2]+1,o=this.plotLeft+this.plotWidth+o[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",r,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",r,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",o,this.plotTop-1],["L",o,0],["Z"],["M",i,l],["L",i,this.chartHeight],["L",o,this.chartHeight],["L",o,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(o,"show",function(){this.chart.scrollableDirty=!0})}),e(i,"Core/Axis/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=t.getDeferredAnimation,r=i.addEvent,n=i.destroyObjectProperties,a=i.fireEvent,h=i.isNumber,l=i.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;l(e,function(t,i){n(t),e[i]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function i(){this.stacking||(this.stacking=new c(this))}var o=[];t.compose=function(t){return -1===o.indexOf(t)&&(o.push(t),r(t,"init",i),r(t,"destroy",e)),t};var c=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,o=e.options.reversedStacks,s=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=s;t--;){var r=i[o?t:s-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<s;t++)i[t].modifyStacks();a(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;l(t,function(t){l(t,function(t){t.cumulative=t.total})})}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||l(e,function(e){l(e,function(i,o){h(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,o=this.stacks;t=s(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),l(o,function(t){l(t,function(t){t.render(r)})}),r.animate({opacity:1},t)},t}();t.Additions=c}(o||(o={})),o}),e(i,"Extensions/Stacking.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Axis/StackingAxis.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n){var a=i.format,h=n.correctFloat,l=n.defined,c=n.destroyObjectProperties,d=n.isArray,p=n.isNumber,u=n.objectEach,f=n.pick,g=function(){function t(t,e,i,o,s){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=o,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}return t.prototype.destroy=function(){c(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,o=i.format;o=o?a(o,this,e):i.formatter.call(this),this.label?this.label.attr({text:o,visibility:"hidden"}):(this.label=e.renderer.label(o,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),o={r:i.borderRadius||0,text:o,rotation:i.rotation,padding:f(i.padding,5),visibility:"hidden"},e.styledMode||(o.fill=i.backgroundColor,o.stroke=i.borderColor,o["stroke-width"]=i.borderWidth,this.label.css(i.style)),this.label.attr(o),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY}
1,t.prototype.setOffset=function(t,e,i,o,r){var n=this.axis,a=n.chart;o=n.translate(n.stacking.usePercentage?100:o||this.total,0,0,0,1),i=n.translate(i||0),i=l(o)&&Math.abs(o-i),t=f(r,a.xAxis[0].translate(this.x))+t,n=l(o)&&this.getStackBox(a,this,t,o,e,i,n),e=this.label,i=this.isNegative,t="justify"===f(this.options.overflow,"justify");var h=this.textAlign;e&&n&&(r=e.getBBox(),o=e.padding,h="left"===h?a.inverted?-o:o:"right"===h?r.width:a.inverted&&"center"===h?r.width/2:a.inverted?i?r.width+o:-o:r.width/2,i=a.inverted?r.height/2:i?-o:r.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),n.x-=h,n.y-=i,e.align(this.alignOptions,null,n),a.isInsidePlot(e.alignAttr.x+h-this.alignOptions.x,e.alignAttr.y+i-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&s.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,r,n),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),f(!t&&this.options.crop,!0)&&((a=p(e.x)&&p(e.y)&&a.isInsidePlot(e.x-o+e.width,e.y)&&a.isInsidePlot(e.x+o,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,i,o,s,r,n){var a=e.axis.reversed,h=t.inverted,l=n.height+n.pos-(h?t.plotLeft:t.plotTop);return e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?o-n.right:o-r+n.pos-t.plotLeft:i+t.xAxis[0].transB-t.plotLeft,y:h?n.height-i-s:e?l-o-r:l-o,width:h?r:s,height:h?s:r}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),t.series.forEach(function(i){var o=i.xAxis&&i.xAxis.options||{};i.options.stacking&&(!0===i.visible||!1===t.options.chart.ignoreHiddenSeries)&&(i.stackKey=[i.type,f(i.options.stack,""),e?o.top:o.left,e?o.height:o.width].join())})},r.compose(t),s.prototype.setGroupedPoints=function(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?s.prototype.setStackedPoints.call(this,"group"):t&&u(t.stacks,function(e,i){"group"===i.slice(-5)&&(u(e,function(t){return t.destroy()}),delete t.stacks[i])})},s.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var i=this.processedXData,o=this.processedYData,s=[],r=o.length,n=this.options,a=n.threshold,c=f(n.startFromThreshold&&a,0);n=n.stack;var p,u,m="-"+(t=t?this.type+","+e:this.stackKey),y=this.negStacks,v=this.yAxis,x=v.stacking.stacks,b=v.stacking.oldStacks;for(v.stacking.stacksTouched+=1,u=0;u<r;u++){var S=i[u],k=o[u],C=this.getStackIndicator(C,S,this.index),w=C.key,M=(p=y&&k<(c?0:a))?m:t;x[M]||(x[M]={}),x[M][S]||(b[M]&&b[M][S]?(x[M][S]=b[M][S],x[M][S].total=null):x[M][S]=new g(v,v.options.stackLabels,p,S,n)),M=x[M][S],null!==k?(M.points[w]=M.points[this.index]=[f(M.cumulative,c)],l(M.cumulative)||(M.base=w),M.touched=v.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(M.points[w][0]=M.points[this.index+","+S+",0"][0])):M.points[w]=M.points[this.index]=null,"percent"===e?(p=p?t:m,y&&x[p]&&x[p][S]?(p=x[p][S],M.total=p.total=Math.max(p.total,M.total)+Math.abs(k)||0):M.total=h(M.total+(Math.abs(k)||0))):"group"===e?(d(k)&&(k=k[0]),null!==k&&(M.total=(M.total||0)+1)):M.total=h(M.total+(k||0)),M.cumulative="group"===e?(M.total||1)-1:f(M.cumulative,c)+(k||0),null!==k&&(M.points[w].push(M.cumulative),s[u]=M.cumulative,M.hasValidPoints=!0)}"percent"===e&&(v.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=s),v.stacking.oldStacks={}}},s.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,o=e.yAxis.stacking.stacks,s=e.processedXData,r=e.options.stacking;e[r+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var n,a,h=s.length;h--;)n=s[h],t=e.getStackIndicator(t,n,e.index,i),(a=(n=o[i]&&o[i][n])&&n.points[t.key])&&e[r+"Stacker"](a,n,h)})},s.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=h(t[0]*e),t[1]=h(t[1]*e),this.stackedYData[i]=t[1]},s.prototype.getStackIndicator=function(t,e,i,o){return!l(t)||t.x!==e||o&&t.key!==o?t={x:e,index:0,key:o}:t.index++,t.key=[i,e,t.index].join(),t},o.StackItem=g,o.StackItem}),e(i,"Series/Line/LineSeries.js",[i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,
1i){var o,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=i.defined,n=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(i,e),i.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode,s=[["graph","highcharts-graph"]];o||s[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(s=t.getZonesGraphs(s)).forEach(function(s,r){var n=s[0],a=t[n],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[n]=a=t.chart.renderer.path(i).addClass(s[1]).attr({zIndex:1}).add(t.group)),a&&!o&&(n={stroke:s[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},s[3]?n.dashstyle=s[3]:"square"!==e.linecap&&(n["stroke-linecap"]=n["stroke-linejoin"]="round"),a[h](n).shadow(2>r&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},i.prototype.getGraphPath=function(t,e,i){var o,s=this,n=s.options,a=[],h=[],l=n.step,c=(t=t||s.points).reversed;return c&&t.reverse(),(l=({right:1,center:2})[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach(function(c,d){var p=c.plotX,u=c.plotY,f=t[d-1];(c.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),c.isNull&&!r(e)&&0<d?o=!n.connectNulls:c.isNull&&!e?o=!0:(0===d||o?d=[["M",c.plotX,c.plotY]]:s.getPointSpline?d=[s.getPointSpline(t,c,d)]:l?(d=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):d=[["L",p,u]],h.push(c.x),l&&(h.push(c.x),2===l&&h.push(c.x)),a.push.apply(a,d),o=!1)}),a.xMap=h,s.graphPath=a},i.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},i.defaultOptions=n(t.defaultOptions,{}),i}(t),e.registerSeriesType("line",i),i}),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.parse,a=i.seriesTypes.line;t=o.extend;var h=o.merge,l=o.objectEach,c=o.pick;return t((o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,o=this.options,s=[["area","highcharts-area",this.color,o.fillColor]];this.zones.forEach(function(t,i){s.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||o.fillColor])}),s.forEach(function(t){var s=t[0],r=e[s],a=r?"animate":"attr",h={};r?(r.endX=e.preventGraphAnimation?null:i.xMap,r.animate({d:i})):(h.zIndex=0,(r=e[s]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(h.fill=c(t[3],n(t[2]).setOpacity(c(o.fillOpacity,.75)).get())),r[a](h),r.startX=i.xMap,r.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i=a.prototype.getGraphPath,o=this.options,s=o.stacking,r=this.yAxis,n=[],h=[],l=this.index,d=r.stacking.stacks[this.stackKey],p=o.threshold,u=Math.round(r.getThreshold(o.threshold));o=c(o.connectNulls,"percent"===s);var f=function(e,i,o){var a=t[e];e=s&&d[a.x].points[l];var c=a[o+"Null"]||0;if(o=a[o+"Cliff"]||0,a=!0,o||c){var f=(c?e[0]:e[1])+o,g=e[0]+o;a=!!c}else!s&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(h.push({plotX:m,plotY:null===f?u:r.getThreshold(f),isNull:a,isCliff:!0}),n.push({plotX:m,plotY:null===g?u:r.getThreshold(g),doCurve:!1}))};for(t=t||this.points,s&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){s||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=c(t[e].rectPlotX,t[e].plotX),y=s?c(t[e].yBottom,u):u;(!g||o)&&(o||f(e,e-1,"left"),g&&!s&&o||(h.push(t[e]),n.push({x:e,plotX:m,plotY:y})),o||f(e,e+1,"right"))}return e=i.call(this,h,!0,!0),n.reversed=!0,(y=(g=i.call(this,n,!0,!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),(g=e.concat(g)).length&&g.push(["Z"]),i=i.call(this,h,!1,o),g.xMap=e.xMap,this.areaPath=g,i},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],s=this.xAxis,r=this.yAxis,n=r.stacking.stacks[this.stackKey],a={},h=r.series,d=h.length,p=r.options.reversedStacks?1:-1,u=h.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,a[t[f].x]=t[f];l(n,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var g=h.map(function(t){return t.visible});o.forEach(function(t,l){var f,m,y=0;
1if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var s=1===i?"rightNull":"leftNull",r=0,c=n[o[l+i]];if(c)for(var y=u;0<=y&&y<d;){var v=h[y].index;(f=c.points[v])||(v===e.index?a[t][s]=!0:g[y]&&(m=n[t].points[v])&&(r-=m[1]-m[0])),y+=p}a[t][1===i?"rightCliff":"leftCliff"]=r});else{for(var v=u;0<=v&&v<d;){if(f=n[t].points[h[v].index]){y=f[1];break}v+=p}y=c(y,0),y=r.translate(y,0,1,0,1),i.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}})}return i},e.defaultOptions=h(a.defaultOptions,{threshold:0}),e}(a)).prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",o),o}),e(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e){var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=t.seriesTypes.line,r=e.merge,n=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return o(e,t),e.prototype.getPointSpline=function(t,e,i){var o=e.plotX||0,s=e.plotY||0,r=t[i-1];if(i=t[i+1],r&&!r.isNull&&!1!==r.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=r.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*o+(r.plotX||0))/2.5,c=(1.5*s+t)/2.5,d=(1.5*s+i)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(d-c)*(a-o)/(a-l)+s-d),c+=h,d+=h,c>t&&c>s?(c=Math.max(t,s),d=2*s-c):c<t&&c<s&&(c=Math.min(t,s),d=2*s-c),d>i&&d>s?(d=Math.max(i,s),c=2*s-d):d<i&&d<s&&(d=Math.min(i,s),c=2*s-d),e.rightContX=a,e.rightContY=d}return e=["C",n(r.rightContX,r.plotX,0),n(r.rightContY,r.plotY,0),n(l,o,0),n(c,s,0),o,s],r.rightContX=r.rightContY=void 0,e},e.defaultOptions=r(s.defaultOptions),e}(s),t.registerSeriesType("spline",e),e}),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Area/AreaSeries.js"],i["Series/Spline/SplineSeries.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=t.prototype,h=s.extend,l=s.merge;return h((s=function(i){function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return n(o,i),o.defaultOptions=l(e.defaultOptions,t.defaultOptions),o}(e)).prototype,{getGraphPath:a.getGraphPath,getStackPoints:a.getStackPoints,drawGraph:a.drawGraph,drawLegendSymbol:i.drawRectangle}),o.registerSeriesType("areaspline",s),s}),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n){var a,h=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=t.animObject,c=e.parse,d=i.hasTouch;t=i.noop;var p=n.clamp,u=n.css,f=n.defined,g=n.extend,m=n.fireEvent,y=n.isArray,v=n.isNumber,x=n.merge,b=n.pick,S=n.objectEach;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,o=e.options,s=this.chart.inverted,r={},n=s?"translateX":"translateY";if(t)r.scaleY=.001,t=p(i.toPixels(o.threshold),i.pos,i.pos+i.len),s?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(n));e.group.animate({scaleY:1},g(l(e.options.animation),{step:function(t,o){e.group&&(r[n]=a+o.pos*(i.pos-a),e.group.attr(r))}}))}}
1,e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,o=t.yAxis,s=i.options.reversedStacks;s=i.reversed&&!s||!i.reversed&&s;var r,n={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var i=e.yAxis,s=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&o.len===i.len&&o.pos===i.pos){if(s.stacking&&"group"!==s.stacking){void 0===n[r=e.stackKey]&&(n[r]=a++);var h=n[r]}else!1!==s.grouping&&(h=a++);e.columnIndex=h}});var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,c=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,b(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(s?1:0))*c-h/2)*(s?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var s=this.chart,r=this.borderWidth,n=-(r%2?.5:0);return r=r%2?.5:1,s.inverted&&s.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+n-(t=Math.round(t)+n)),o=Math.round(e+o)+r,n=.5>=Math.abs(e)&&.5<o,o-=e=Math.round(e)+r,n&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var s=this,r=this.options.stacking;if(!i.isNull&&1<o.columnCount){var n=0,a=0;S(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof i.x&&(t=t[i.x.toString()])){var e=t.points[s.index],o=t.total;r?(e&&(n=a),t.hasValidPoints&&a++):y(e)&&(n=e[1],a=o||0)}}),t=(i.plotX||0)+((a-1)*o.paddedWidth+e)/2-e-n*o.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=b(i.borderWidth,o?0:1);var r=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),l=b(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,u=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,y=t.barW=Math.max(d,1+2*o);e.inverted&&(h-=.5),i.pointPadding&&(y=Math.ceil(y)),s.prototype.translate.apply(t),t.points.forEach(function(o){var s=b(o.yBottom,h),x=999+Math.abs(s),S=o.plotX||0,k=Math.min(x=p(o.plotY,-x,n.len+x),s),C=Math.max(x,s)-k,w=d,M=S+u,T=y;l&&Math.abs(C)<l&&(C=l,S=!n.reversed&&!o.negative||n.reversed&&o.negative,v(a)&&v(m)&&o.y===a&&m<=a&&(n.min||0)<a&&(g!==m||(n.max||0)<=a)&&(S=!S),k=Math.abs(k-h)>l?s-l:h-(S?l:0)),f(o.options.pointWidth)&&(w=T=Math.ceil(o.options.pointWidth),M-=Math.round((w-d)/2)),i.centerInCategory&&(M=t.adjustForMissingColumns(M,w,o,c)),o.barX=M,o.pointWidth=w,o.tooltipPos=e.inverted?[p(n.len+n.pos-e.plotLeft-x,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),r.len+r.pos-e.plotTop-M-T/2,C]:[r.left-e.plotLeft+M+T/2,p(x+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),C],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[M,h,T,0]:[M,k,T,C])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,o=this.pointAttrToOptions||{},s=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[s]||i[s]||n;o=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,l=b(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var d=t.getZone();n=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(a=d.borderColor||a,o=d.dashStyle||o,h=d.borderWidth||h)}return e&&t&&(e=(t=x(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&c(n).brighten(t.brightness).get()||n,a=t[s]||a,h=t[r]||h,o=t.dashStyle||o,l=b(t.opacity,l)),s={fill:n,stroke:a,"stroke-width":h,opacity:l},o&&(s.dashstyle=o),s},e.prototype.drawPoints=function(){var t,e=this,i=this.chart,o=e.options,s=i.renderer,r=o.animationLimit||250;e.points.forEach(function(n){var a=n.graphic,h=!!a,l=a&&i.pointCount<r?"animate":"attr";v(n.plotY)&&null!==n.y?(t=n.shapeArgs,a&&n.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(n.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),a||(n.graphic=a=s[n.shapeType](t).add(n.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<r&&(
1a.attr({x:n.startXPos}),h=!0,l="animate"),a&&h&&a[l](x(t)),o.borderRadius&&a[l]({r:o.borderRadius}),i.styledMode||a[l](e.pointAttribs(n,n.selected&&"select")).shadow(!1!==n.allowShadow&&o.shadow,null,o.stacking&&!o.borderRadius),a&&(a.addClass(n.getClassName(),!0),a.attr({visibility:n.visible?"inherit":"hidden"}))):a&&(n.graphic=a.destroy())})},e.prototype.drawTracker=function(){var t,e=this,i=e.chart,o=i.pointer,s=function(t){var e=o.getPointFromEvent(t);void 0!==e&&(o.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach(function(e){t=y(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||(e.trackerGroups.forEach(function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){o.onTrackerMouseOut(t)}),d&&e[t].on("touchstart",s),!i.styledMode&&e.options.cursor&&e[t].css(u).css({cursor:e.options.cursor}))}),e._hasTracking=!0),m(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),s.prototype.remove.apply(t,arguments)},e.defaultOptions=x(s.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),e}(s),g(n.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:o.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("column",n),n}),e(i,"Core/Series/DataLabel.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=t.getDeferredAnimation,r=e.format,n=i.defined,a=i.extend,h=i.fireEvent,l=i.isArray,c=i.merge,d=i.objectEach,p=i.pick,u=i.splat;return function(t){function e(t,e,i,o,s){var r=this,n=this.chart,h=this.isCartesian&&n.inverted,l=this.enabledDataSorting,c=p(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=p(t.plotY,-9999),u=e.getBBox(),f=i.rotation,g=i.align,m=n.isInsidePlot(c,Math.round(d),{inverted:h,paneCoordinates:!0,series:r}),y=function(i){l&&r.xAxis&&!v&&r.setDataLabelStartPos(t,e,s,m,i)},v="justify"===p(i.overflow,l?"none":"justify"),x=this.visible&&!1!==t.visible&&(t.series.forceDL||l&&!v||m||p(i.inside,!!this.options.stacking)&&o&&n.isInsidePlot(c,h?o.x+1:o.y+o.height-1,{inverted:h,paneCoordinates:!0,series:r}));if(x){var b=n.renderer.fontMetrics(n.styledMode?void 0:i.style.fontSize,e).b;o=a({x:h?this.yAxis.len-d:c,y:Math.round(h?this.xAxis.len-c:d),width:0,height:0},o),a(i,{width:u.width,height:u.height}),f?(v=!1,c=n.renderer.rotCorr(b,f),y(c={x:o.x+(i.x||0)+o.width/2+c.x,y:o.y+(i.y||0)+({top:0,middle:.5,bottom:1})[i.verticalAlign]*o.height}),e[s?"attr":"animate"](c).attr({align:g}),y=180<(y=(f+720)%360)&&360>y,"left"===g?c.y-=y?u.height:0:"center"===g?(c.x-=u.width/2,c.y-=u.height/2):"right"===g&&(c.x-=u.width,c.y-=y?0:u.height),e.placed=!0,e.alignAttr=c):(y(o),e.align(i,void 0,o),c=e.alignAttr),v&&0<=o.height?this.justifyDataLabel(e,i,c,u,o,s):p(i.crop,!0)&&(x=n.isInsidePlot(c.x,c.y,{paneCoordinates:!0,series:r})&&n.isInsidePlot(c.x+u.width,c.y+u.height,{paneCoordinates:!0,series:r})),i.shape&&!f&&e[s?"attr":"animate"]({anchorX:h?n.plotWidth-t.plotY:t.plotX,anchorY:h?n.plotHeight-t.plotX:t.plotY})}s&&l&&(e.placed=!1),x||l&&!v||(e.hide(!0),e.placed=!1)}function i(){var t=this,e=t.chart,i=t.options,o=t.points,a=t.hasRendered||0,c=e.renderer,g=i.dataLabels,m=g.animation;if(m=g.defer?s(e,m,t):{defer:0,duration:0},g=f(f(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),h(this,"drawDataLabels"),l(g)||g.enabled||t._hasPointLabels){var y=t.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",g.zIndex||6);y.attr({opacity:+a}),!a&&(a=t.dataLabelsGroup)&&(t.visible&&y.show(!0),a[i.animation?"animate":"attr"]({opacity:1},m)),o.forEach(function(o){u(f(g,o.dlOptions||o.options&&o.options.dataLabels)).forEac
1h(function(s,a){var h,l,u,f=s.enabled&&(!o.isNull||o.dataLabelOnNull)&&(h=o,!(u=(l=s).filter)||(l=u.operator,h=h[u.property],u=u.value,">"===l&&h>u||"<"===l&&h<u||">="===l&&h>=u||"<="===l&&h<=u||"=="===l&&h==u||"==="===l&&h===u)),g=o.connectors?o.connectors[a]:o.connector,m=o.dataLabels?o.dataLabels[a]:o.dataLabel,v=p(s.distance,o.labelDistance),x=!m;if(f){var b=o.getLabelConfig(),S=p(s[o.formatPrefix+"Format"],s.format);b=n(S)?r(S,b,e):(s[o.formatPrefix+"Formatter"]||s.formatter).call(b,s),S=s.style;var k=s.rotation;e.styledMode||(S.color=p(s.color,S.color,t.color,"#000000"),"contrast"===S.color?(o.contrastColor=c.getContrast(o.color||t.color),S.color=!n(v)&&s.inside||0>v||i.stacking?o.contrastColor:"#000000"):delete o.contrastColor,i.cursor&&(S.cursor=i.cursor));var C={r:s.borderRadius||0,rotation:k,padding:s.padding,zIndex:1};e.styledMode||(C.fill=s.backgroundColor,C.stroke=s.borderColor,C["stroke-width"]=s.borderWidth),d(C,function(t,e){void 0===t&&delete C[e]})}!m||f&&n(b)&&!!m.div==!!s.useHTML||(o.dataLabel=m=o.dataLabel&&o.dataLabel.destroy(),o.dataLabels&&(1===o.dataLabels.length?delete o.dataLabels:delete o.dataLabels[a]),a||delete o.dataLabel,g&&(o.connector=o.connector.destroy(),o.connectors&&(1===o.connectors.length?delete o.connectors:delete o.connectors[a]))),f&&n(b)&&(m?C.text=b:(o.dataLabels=o.dataLabels||[],m=o.dataLabels[a]=k?c.text(b,0,-9999,s.useHTML).addClass("highcharts-data-label"):c.label(b,0,-9999,s.shape,null,null,s.useHTML,null,"data-label"),a||(o.dataLabel=m),m.addClass(" highcharts-data-label-color-"+o.colorIndex+" "+(s.className||"")+(s.useHTML?" highcharts-tracker":""))),m.options=s,m.attr(C),e.styledMode||m.css(S).shadow(s.shadow),m.added||m.add(y),s.textPath&&!s.useHTML&&(m.setTextPath(o.getDataLabelPath&&o.getDataLabelPath(m)||o.graphic,s.textPath),o.dataLabelPath&&!s.textPath.enabled&&(o.dataLabelPath=o.dataLabelPath.destroy())),t.alignDataLabel(o,m,s,null,x))})})}h(this,"afterDrawDataLabels")}function o(t,e,i,o,s,r){var n=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var d=e.y;d=void 0===d?0:d;var p=(i.x||0)+l;if(0>p){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=p;var u=!0}return(p=(i.x||0)+o.width-l)>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.plotWidth-p,u=!0),0>(p=i.y+l)&&("bottom"===h&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=p,u=!0),(p=(i.y||0)+o.height-l)>n.plotHeight&&("top"===h&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=n.plotHeight-p,u=!0),u&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,s)),u}function f(t,e){var i,o=[];if(l(t)&&!l(e))o=t.map(function(t){return c(t,e)});else if(l(e)&&!l(t))o=e.map(function(e){return c(t,e)});else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)o[i]=c(t[i],e[i]);else o=c(t,e);return o}function g(t,e,i,o,s){var r=this.chart,n=r.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=n?s.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:s.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
1,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var s=t.prototype;m.push(t),s.alignDataLabel=e,s.drawDataLabels=i,s.justifyDataLabel=o,s.setDataLabelStartPos=g}}}(o||(o={})),o}),e(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=e.series,r=i.merge,n=i.pick;return function(e){function i(t,e,i,o,a){var h=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,p=n(t.below,t.plotY>n(this.translatedThreshold,l)),u=n(i.inside,!!this.options.stacking);d&&(0>(o=r(d)).y&&(o.height+=o.y,o.y=0),0<(d=o.y+o.height-l)&&d<o.height&&(o.height-=d),h&&(o={x:l-o.y-o.height,y:c-o.x-o.width,width:o.height,height:o.width}),u||(h?(o.x+=p?0:o.width,o.width=0):(o.y+=p?o.height:0,o.height=0))),i.align=n(i.align,!h||u?"center":p?"right":"left"),i.verticalAlign=n(i.verticalAlign,h||u?"middle":p?"top":"bottom"),s.prototype.alignDataLabel.call(this,t,e,i,o,a),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var o=[];e.compose=function(e){t.compose(s),-1===o.indexOf(e)&&(o.push(e),e.prototype.alignDataLabel=i)}}(o||(o={})),o}),e(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=i.extend,n=i.merge;return r((i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(i,e),i.defaultOptions=n(t.defaultOptions,{}),i}(t)).prototype,{inverted:!0}),e.registerSeriesType("bar",i),i}),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Column/ColumnSeries.js"],i["Series/Line/LineSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o){var s,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=o.addEvent,a=o.extend,h=o.merge;return a((o=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(i,t),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,s){["x","y"].forEach(function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!o.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,o[a]-l);h=Math.min(h.len,o[a]+l),n=1e4*Math.sin(s+n*i),o[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(o.clientX=o.plotX)}}})})},i.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=h(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),i}(e)).prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),n(o,"afterTranslate",function(){this.applyJitter()}),i.registerSeriesType("scatter",o),o}),e(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s,r=t.deg2rad,n=i.isNumber,a=i.pick,h=i.relativeLength;return(o=s||(s={})).getCenter=function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),s=i.plotWidth-2*o,r=i.plotHeight-2*o,n=t.center,l=Math.min(s,r),c=t.size,d=t.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof d&&(d=parseFloat(d)),t=[a(n[0],"50%"),a(n[1],"50%"),a(c&&0>c?void 0:t.size,"100%"),a(d&&0>d?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),n=0;4>n;++n)c=t[n],i=2>n||2===n&&/%$/.test(c),t[n]=h(c,[s,r,l,t[2]][n])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),t},o.getStartAndEndRadians=function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}},s}
1),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i){var o,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=t.setAnimation,n=i.addEvent,a=i.defined;t=i.extend;var h=i.isNumber,l=i.pick,c=i.relativeLength;return t((e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return s(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return i[o]&&(o=i[o]),o.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return n(this,"select",i),n(this,"unselect",i),this},e.prototype.isValid=function(){return h(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,o=this.series,s=o.chart,r=o.options.ignoreHiddenPoint;e=l(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,o.options.data[o.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](t)}),this.legendItem&&s.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(o.isDirty=!0),e&&s.redraw())},e.prototype.slice=function(t,e,i){var o=this.series;r(i,o.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e)).prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var o=this.series,s=o.center[0],r=o.chart.plotWidth,n=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=c(i.crookDistance,1),i=["L",r="left"===o?s+a+(r+n-s-a)*(1-i):n+(s-a)*i,t.y],s=!0,("left"===o?r>t.x||r<e.x:r<t.x||r>e.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e}),e(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Series/Pie/PiePoint.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],function(t,e,i,o,s,r,n,a,h){var l,c=this&&this.__extends||(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=t.getStartAndEndRadians;i=i.noop;var p=h.clamp,u=h.extend,f=h.fireEvent,g=h.merge,m=h.pick,y=h.relativeLength;return u((h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,s=t.shapeArgs;
1i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var o=this.center[0],s=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,s,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(o,s,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var o=this.center,s=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(p((t-o[1])/(s+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,o,s=this,r=s.chart,n=r.renderer,a=s.options.shadow;this.drawEmpty(),!a||s.shadowGroup||r.styledMode||(s.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(s.group)),s.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){var c=void 0;o=h.shapeArgs,t=h.getTranslate(),r.styledMode||(c=h.shadowGroup,a&&!c&&(c=h.shadowGroup=n.g("shadow").add(s.shadowGroup)),c&&c.attr(t),i=s.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(s.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(s.center),r.styledMode||g(!0,l,i),g(!0,l,o,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){this.generatePoints();var e=this.options,i=e.slicedOffset,o=i+(e.borderWidth||0),s=d(e.startAngle,e.endAngle),r=this.startAngleRad=s.start;s=(this.endAngleRad=s.end)-r;var n=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var h,l=n.length,c=0;for(t||(this.center=t=this.getCenter()),h=0;h<l;h++){var p=n[h],u=r+c*s;p.isValid()&&(!e||p.visible)&&(c+=p.percentage/100);var g=r+c*s,v={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*u)/1e3,end:Math.round(1e3*g)/1e3};p.shapeType="arc",p.shapeArgs=v,p.labelDistance=m(p.options.dataLabels&&p.options.dataLabels.distance,a),p.labelDistance=y(p.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,p.labelDistance),(g=(g+u)/2)>1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(g)*i),translateY:Math.round(Math.sin(g)*i)},v=Math.cos(g)*t[2]/2;var x=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*v,t[1]+.7*x],p.half=g<-Math.PI/2||g>Math.PI/2?1:0,p.angle=g,u=Math.min(o,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+v+Math.cos(g)*p.labelDistance,y:t[1]+x+Math.sin(g)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+v,y:t[1]+x}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,s=0;for(t=0;t<i;t++){var r=e[t];r.isValid()&&(!o||r.visible)&&(s+=r.y)}for(t=0,this.total=s;t<i;t++)(r=e[t]).percentage=0<s&&(r.visible||!o)?r.y/s*100:0,r.total=s},e.defaultOptions=g(r.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendT
1ype:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(r)).prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:o.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:s,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("pie",h),h}),e(i,"Series/Pie/PieDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,o,s){var r,n=e.noop,a=i.distribute,h=o.series,l=s.arrayMax,c=s.clamp,d=s.defined,p=s.merge,u=s.pick,f=s.relativeLength;return function(e){function i(){var t,e,i,o,s,r,n,c,f,g,m,y,v=this,x=v.data,b=v.chart,S=v.options.dataLabels||{},k=S.connectorPadding,C=b.plotWidth,w=b.plotHeight,M=b.plotLeft,T=Math.round(b.chartWidth/3),A=v.center,P=A[2]/2,L=A[1],O=[[],[]],E=[0,0,0,0],D=v.dataLabelPositioners;v.visible&&(S.enabled||v._hasPointLabels)&&(x.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),h.prototype.drawDataLabels.apply(v),x.forEach(function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,d(S.style.width)||d(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)||!(t.dataLabel.getBBox().width>T)||(t.dataLabel.css({width:Math.round(.7*T)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),O.forEach(function(e,i){var h,l=e.length,p=[];if(l){if(v.sortByAngle(e,i-.5),0<v.maxLabelDistance){var x=Math.max(0,L-P-v.maxLabelDistance),T=Math.min(L+P+v.maxLabelDistance,b.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,L-P-t.labelDistance),t.bottom=Math.min(L+P+t.labelDistance,b.plotHeight),h=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+h/2,size:h,rank:t.y},p.push(t.distributeBox))}),a(p,x=T+h-x,x/5)}for(m=0;m<l;m++){if(r=(t=e[m]).labelPosition,o=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=x=r.natural.y,p&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(n=t.distributeBox.size,f=D.radialDistributionY(t))),delete t.positionIndex,S.justify)c=D.justify(t,P,A);else switch(S.alignTo){case"connectors":c=D.alignToConnectors(e,i,C,M);break;case"plotEdges":c=D.alignToPlotEdges(o,i,C,M);break;default:c=D.radialDistributionX(v,t,f,x)}o._attr={visibility:g,align:r.alignment},y=t.options.dataLabels||{},o._pos={x:c+u(y.x,S.x)+(({left:k,right:-k})[r.alignment]||0),y:f+u(y.y,S.y)-10},r.final.x=c,r.final.y=f,u(S.crop,!0)&&(s=o.getBBox().width,x=null,c-s<k&&1===i?(x=Math.round(s-c+k),E[3]=Math.max(x,E[3])):c+s>C-k&&0===i&&(x=Math.round(c+s-C+k),E[1]=Math.max(x,E[1])),0>f-n/2?E[0]=Math.max(Math.round(-f+n/2),E[0]):f+n/2>w&&(E[2]=Math.max(Math.round(f+n/2-w),E[2])),o.sideOverflow=x)}}}),0===l(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach(function(t){if(e=u((y=p(S,t.options.dataLabels)).connectorWidth,1)){var s;i=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0<t.labelDistance?(g=o._attr.visibility,(s=!i)&&(t.connector=i=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||i.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),i[s?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",g)):i&&(t.connector=i.destroy())}}))}function o(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)}function s(t){var e=this.center,i=this.options,o=i.center,s=i.minSize||80,r=null!==i.size;if(!r){if(null!==o[0])var n=Math.max(e[2]-Math.max(t[1],t[3]),s);else n=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2;null!==o[1]?n=c(n,s,e[2]-Math.max(t[0],t[2])):(n=c(n,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(f(i.innerSize||0,n),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var r=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos}
1,radialDistributionX:function(t,e,i,o){return t.getX(i<e.top+2||i>e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){return t=t.getBBox().width,e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var s,r=0;return t.forEach(function(t){(s=t.dataLabel.getBBox().width)>r&&(r=s)}),e?r+o:i-r-o}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=n,e.drawDataLabels=i,e.placeDataLabels=o,e.verifyDataLabelOverflow=s)}}(r||(r={})),r}),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){function i(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})}),s(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,s=e.fireEvent,r=e.isArray,n=e.isNumber,a=e.objectEach,h=e.pick;o(t,"render",function(){var t=this,e=[];(this.labelCollectors||[]).forEach(function(t){e=e.concat(t())}),(this.yAxis||[]).forEach(function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,function(t){a(t,function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)})})}),(this.series||[]).forEach(function(o){var s=o.options.dataLabels;o.visible&&(!1!==s.enabled||o._hasPointLabels)&&((s=function(o){return o.forEach(function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach(function(s){var r=s.options;s.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(s.oldOpacity=s.opacity,s.newOpacity=1,i(s,t)):e.push(s)})})})(o.nodes||[]),s(o.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,c=!1,d=function(t){var e,i,o=t.box?0:t.padding||0,s=e=0;if(t&&(!t.alignAttr||t.placed)){var r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var h=t.width-2*o;return(i=({left:"0",center:"0.5",right:"1"})[t.alignValue])?s=+i*h:n(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(s||0),y:r.y+(a.translateY||0)+o-e,width:t.width-2*o,height:t.height-2*o}}};for(o=0;o<h;o++)(e=t[o])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=d(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),o=0;o<h;o++){var p=(d=t[o])&&d.absoluteBox;for(e=o+1;e<h;++e){var u=(r=t[e])&&r.absoluteBox;!p||!u||d===r||0===d.newOpacity||0===r.newOpacity||u.x>=p.x+p.width||u.x+u.width<=p.x||u.y>=p.y+p.height||u.y+u.height<=p.y||((d.labelrank<r.labelrank?d:r).newOpacity=0)}}t.forEach(function(t){i(t,a)&&(c=!0)}),c&&s(a,"afterHideAllOverlappingLabels")}}),e(i,"Core/Responsive.js",[i["Core/Utilities.js"]],function(t){var e,i,o,s=t.extend,r=t.find,n=t.isArray,a=t.isObject,h=t.merge,l=t.objectEach,c=t.pick,d=t.splat,p=t.uniqueKey;return e=[],(o||(o={})).compose=function(t){return -1===e.indexOf(t)&&(e.push(t),s(t.prototype,i.prototype)),t},i=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,o,s,r){var h;l(i,function(i,l){if(!r&&-1<e.collectionsWithUpdate.indexOf(l)&&o[l])for(i=d(i),s[l]=[],h=0;h<Math.max(i.length,o[l].length);h++)o[l][h]&&(void 0===i[h]?s[l][h]=o[l][h]:(s[l][h]={},t(i[h],o[l][h],s[l][h],r+1)));else a(i)?(s[l]=n(i)?[]:{},t(i,o[l]||{},s[l],r+1)):s[l]=void 0===o[l]?null:o[l]})}(t,this.options,i,0),i},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=c(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=c(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=c(i.minWidth,0)&&this.chartHeight>=c(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,o=this.options.responsive,s=this.currentResponsive,n=[];
1!e&&o&&o.rules&&o.rules.forEach(function(t){void 0===t._id&&(t._id=p()),i.matchResponsiveRule(t,n)},this),(e=h.apply(void 0,n.map(function(t){return r((o||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions}))).isResponsiveOptions=!0,(n=n.toString()||void 0)!==(s&&s.ruleIds)&&(s&&this.update(s.undoOptions,t,!0),n?((s=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:e,undoOptions:s},this.update(e,t,!0)):this.currentResponsive=void 0)},t}(),o}),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/DefaultOptions.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/MSPointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],function(t,e,i,o,s,r,n,a,h,l,c,d,p,u,f,g,m,y,v,x,b,S,k,C,w,M,T,A,P,L,O,E,D){return t.animate=s.animate,t.animObject=s.animObject,t.getDeferredAnimation=s.getDeferredAnimation,t.setAnimation=s.setAnimation,t.stop=s.stop,t.timers=o.timers,t.AST=r,t.Axis=p,t.Chart=k,t.chart=k.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=C,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=D,t.Tooltip=y,t.Color=E,t.color=E.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=w.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,T.compose(M),L.compose(C),u.compose(p),f.compose(p),P.compose(A),g.compose(p),O.compose(k),t}),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=s.document?r(s):r):void 0!==(o=(function(){return r(s)}).call(e,i,e,t))&&(t.exports=o)}}]);
2//# sourceMappingURL=4b358913-322928946fea1264.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.