!/**
 * Highcharts Gantt JS v12.6.0 (2026-04-13)
 * @module highcharts/highcharts-gantt
 *
 * (c) 2017-2026 Highsoft AS
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 *
 * Authors:
 * - Lars Cabrera
 * - Torstein Hønsi
 * - Jon Arild Nygård
 * - Øystein Moseng
 */function(t,e){"object"==typeof exports&&"object"==typeof module?(t._Highcharts=e(),module.exports=t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],function(){return e()}):"object"==typeof exports?(t._Highcharts=e(),exports.highcharts=t._Highcharts):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}("u"<typeof window?this:window,function(){return function(){"use strict";var t,e,i,o,n,r,s,a,l,h,d,c,p,u,f,g,v,m,y,x,b,M,k,w,S,A,T,P,C,O,L,E,B,I,D,z,R,N,W,G,X,H,F,Y,_,j,U,V,Z,K,q,$,J,Q,tt,te,ti,to,tn,tr,ts,ta,tl,th,td={};td.d=function(t,e){for(var i in e)td.o(e,i)&&!td.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},td.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var tc={};td.d(tc,{default:function(){return s2}}),(t=W||(W={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.6.0",t.win="u">typeof window?window:{},t.doc=t.win.document,t.svg=!!(null==(i=null==(e=null===t.doc||void 0===t.doc?void 0:t.doc.createElementNS)?void 0:e.call(t.doc,t.SVG_NS,"svg"))?void 0:i.createSVGRect),t.pageLang=null==(n=null==(o=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)?void 0:o.closest("[lang]"))?void 0:n.lang,t.userAgent=(null==(r=t.win.navigator)?void 0:r.userAgent)||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0;var tp=W,tu=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},tf=tp.doc,tg=tp.win;function tv(t,e,i,o){void 0===o&&(o={});var n="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});var r=n.hcEvents;tp.Point&&t instanceof tp.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!tp.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),r[e]||(r[e]=[]);var a={fn:i,order:"number"==typeof o.order?o.order:1/0};return r[e].push(a),r[e].sort(function(t,e){return t.order-e.order}),function(){t3(t,e,i)}}function tm(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function ty(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function tx(t,e,i){var o,n=tY(e)&&!tA(i),r=function(e,i){tA(e)?t.setAttribute(i,e):n?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tY(e)?r(i,e):tK(e,r),o}function tb(t,e,i){return t>e?t<i?t:i:e}function tM(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function tk(t,e,i,o,n){var r=tf.createElement(t);return e&&tL(r,e),n&&tS(r,{padding:"0",border:"none",margin:"0"}),i&&tS(r,i),o&&o.appendChild(r),r}function tw(t,e,i){void 0===e&&(e=0);var o=e%2/2,n=i?-1:1;return(Math.round(t*n-o)+o)*n}function tS(t,e){tL(t.style,e)}function tA(t){return null!=t}function tT(t,e,i){tK(t,function(o,n){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[n]})}function tP(t){var e;null==(e=null==t?void 0:t.parentElement)||e.removeChild(t)}function tC(t,e,i,o){var n={};return!function t(e,n,r,s){var a=i?n:e;tK(e,function(i,l){if(!s&&o&&o.indexOf(l)>-1&&n[l]){i=t5(i),r[l]=[];for(var h=0;h<Math.max(i.length,n[l].length);h++)n[l][h]&&(void 0===i[h]?r[l][h]=n[l][h]:(r[l][h]={},t(i[h],n[l][h],r[l][h],s+1)))}else tU(i,!0)&&!i.nodeType?(r[l]=t_(i)?[]:{},t(i,n[l]||{},r[l],s+1),0===Object.keys(r[l]).length&&("colorAxis"!==l||0!==s)&&delete r[l]):(e[l]!==n[l]||l in e&&!(l in n))&&"__proto__"!==l&&"constructor"!==l&&(r[l]=a[l])})}(t,e,n,0),n}function tO(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function tL(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tE(t,e){var i=function(){};return i.prototype=new t,tL(i.prototype,e),i}function tB(t,e,i,o){if(i=i||{},(null==tf?void 0:tf.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==tp)){var n=tf.createEvent("Events");n.initEvent(e,!0,!0),i=tL(n,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||tL(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});for(var r=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(r.length&&(a=!0),r.unshift.apply(r,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&r.sort(function(t,e){return t.order-e.order}),r.forEach(function(e){!1===e.fn.call(t,i,t)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tI=function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0};function tD(t,e){var i,o,n,r,s=!e;return t.forEach(function(t){if(t.length>1)for(r=o=t.length-1;r>0;r--)(n=t[r]-t[r-1])<0&&!s?(null==e||e(),e=void 0):n&&(void 0===i||n<i)&&(i=n)}),i}function tz(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tR(t,e){for(var i=t.split(".");i.length&&tA(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var n=void 0;return tU(e)&&(n=e["@this"]),null!=n?n:e}var r=e[o.replace(/[\\'"]/g,"")];if(!tA(r)||"function"==typeof r||"number"==typeof r.nodeType||r===tg)return;e=r}return e}function tN(t,e,i){if("width"===e){var o,n,r=Math.min(t.offsetWidth,t.scrollWidth),s=null==(o=t.getBoundingClientRect)?void 0:o.call(t).width;return s<r&&s>=r-1&&(r=Math.floor(s)),Math.max(0,r-(tN(t,"padding-left",!0)||0)-(tN(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(tN(t,"padding-top",!0)||0)-(tN(t,"padding-bottom",!0)||0));var a=tg.getComputedStyle(t,void 0);return a&&(n=a.getPropertyValue(e),tJ(i,"opacity"!==e)&&(n=tQ(n))),n}var tW=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]};function tG(t){tA(t)&&clearTimeout(t)}function tX(t){return tU(t)&&"number"==typeof t.nodeType}function tH(t){var e=null==t?void 0:t.constructor;return!!(tU(t,!0)&&!tX(t)&&(null==e?void 0:e.name)&&"Object"!==e.name)}function tF(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tY(t){return"string"==typeof t}function t_(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function tj(t){return"function"==typeof t}function tU(t,e){return!!t&&"object"==typeof t&&(!e||!t_(t))}function tV(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,n=tu([t],e,!0),r={},s=function(t,e){return"object"!=typeof t&&(t={}),tK(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tU(i,!0)||tH(i)||tX(i)?t[o]=e[o]:t[o]=s(t[o]||{},i))}),t};!0===t&&(r=n[1],n=Array.prototype.slice.call(n,2));var a=n.length;for(o=0;o<a;o++)r=s(r,n[o]);return r}function tZ(t,e,i,o,n){var r,s=t;i=tJ(i,tz(t));var a=t/i;for(!e&&(e=n?[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 t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(s=e[r],(!n||!(s*i>=t))&&(n||!(a<=(e[r]+(e[r+1]||e[r]))/2)));r++);return tM(s*i,-Math.round(Math.log(.001)/Math.LN10))}function tK(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tq(t){var e=tf.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(tg.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(tg.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function t$(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function tJ(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tQ(t,e){return parseInt(t,e||10)}function t0(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function t1(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function t2(t){for(var e,i,o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];do{e=t;for(var r=0;r<o.length;r++)i=o[r],t=t.replace(i[0],i[1])}while(t!==e);return t}function t3(t,e,i){function o(e,i){var o=t.removeEventListener;o&&o.call(t,e,i,!1)}function n(i){var n,r;t.nodeName&&(e?(n={})[e]=!0:n=i,tK(n,function(t,e){if(i[e])for(r=i[e].length;r--;)o(e,i[e][r].fn)}))}var r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){var s=r.hcEvents;if(e){var a=s[e]||[];i?(s[e]=a.filter(function(t){return i!==t.fn}),o(e,i)):(n(s),s[e]=[])}else n(s),delete r.hcEvents}}function t5(t){return t_(t)?t:[t]}function t6(t,e){var i,o,n=t.length;for(o=0;o<n;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<n;o++)delete t[o].safeI}function t9(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function t4(t){return tY(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}function t8(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}var t7=tp.charts,et=tp.win;function ee(t,e,i,o){var n=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+n+": Deprecated member");var r=tF(t),s=r?""+n+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";r&&(s+="?"),tK(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),r&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}tB(tp,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);et.console&&-1===ee.messages.indexOf(s)&&console.warn(s)}),ee.messages.push(s)}function ei(t,e){var i,o=t.options.index,n=e.length;for(i=t.options.isInternal?n:0;i<n+1;i++)if(!e[i]||tF(o)&&o<tJ(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(ee||(ee={})).messages=[];var eo={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var en=(s=Math.random().toString(36).substring(2,9)+"-",a=0,function(){return"highcharts-"+(G?"":s)+a++});et.jQuery&&(et.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new tp[tY(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):t7[tx(this[0],"data-highcharts-chart")]});var er=tp.pageLang,es=tp.win,ea=tp.isSafari&&es.Intl&&!es.Intl.DateTimeFormat.prototype.formatRange,el=function(){function t(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=es.Date,this.update(t),this.lang=e}return t.prototype.update=function(t){var e=this;void 0===t&&(t={}),this.dTLCache={},this.options=t=tV(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC,n=t.locale;this.Date=t.Date||es.Date||Date;var r=t.timezone;tA(o)&&(r=o?"UTC":void 0),i&&i%60==0&&(r="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==r&&(null==r?void 0:r.indexOf("Etc/GMT"))!==0,this.timezone=r,this.lang&&n&&(this.lang.locale=n),["months","shortMonths","weekdays","shortWeekdays"].forEach(function(t){var i=/months/i.test(t),o=/short/.test(t),n={timeZone:"UTC"};n[i?"month":"weekday"]=o?"short":"long",e[t]=(i?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(function(t){return e.dateFormat(n,(i?31:1)*24*36e5*t)})})},t.prototype.toParts=function(t){var e=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g),i=e[0],o=e[1],n=e[2];return[e[3],n-1,o,e[4],e[5],e[6],Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(i)].map(Number)},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||er);var o=JSON.stringify(t)+i;tY(t)&&(t=this.str2dtf(t));var n=this.dTLCache[o];if(!n){null!=t.timeZone||(t.timeZone=this.timezone);try{n=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(ee(34),t.timeZone="UTC",n=new Intl.DateTimeFormat(i,t)):ee(e.message,!1)}}return this.dTLCache[o]=n,(null==n?void 0:n.format(e))||""},t.prototype.str2dtf=function(t,e){void 0===e&&(e={});var i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(function(o){-1!==t.indexOf(o)&&tL(e,i[o])}),e},t.prototype.makeTime=function(t,e,i,o,n,r,s){void 0===i&&(i=1),void 0===o&&(o=0);var a=this.Date.UTC(t,e,i,o,n||0,r||0,s||0);if("UTC"!==this.timezone){var l=this.getTimezoneOffset(a);if(a+=l,-1!==[2,3,8,9,10,11].indexOf(e)&&(o<5||o>20)){var h=this.getTimezoneOffset(a);l!==h?a+=h-l:l-36e5!==this.getTimezoneOffset(a-36e5)||ea||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!tY(t))return null!=t?t:void 0;var e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(t);e||i||(t+="Z");var o=Date.parse(t);if(tF(o))return o+(!e||i?this.getTimezoneOffset(o):0)},t.prototype.getTimezoneOffset=function(t){if("UTC"!==this.timezone){var e=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),i=(e[0],e[1],e[2]),o=(e[3],e[4]),n=-(6e4*(60*(i+(void 0===o?0:o)/60)));if(tF(n))return n}return 0},t.prototype.dateFormat=function(t,e,i){var o,n=this.lang;if(!tA(e)||isNaN(e))return(null==n?void 0:n.invalidDate)||"";if(tY(t=null!=t?t:"%Y-%m-%d %H:%M:%S"))for(var r=/%\[([a-zA-Z]+)\]/g,s=void 0;s=r.exec(t);)t=t.replace(s[0],this.dateTimeFormat(s[1],e,null==n?void 0:n.locale));if(tY(t)&&-1!==t.indexOf("%")){var a=this,l=this.toParts(e),h=l[0],d=l[1],c=l[2],p=l[3],u=l[4],f=l[5],g=l[6],v=l[7],m=(null==n?void 0:n.weekdays)||this.weekdays,y=(null==n?void 0:n.shortWeekdays)||this.shortWeekdays,x=(null==n?void 0:n.months)||this.months,b=(null==n?void 0:n.shortMonths)||this.shortMonths;tK(tL({a:y?y[v]:m[v].substr(0,3),A:m[v],d:t$(c),e:t$(c,2," "),w:v,v:null!=(o=null==n?void 0:n.weekFrom)?o:"",b:b[d],B:x[d],m:t$(d+1),o:d+1,y:h.toString().substr(2,2),Y:h,H:t$(p),k:p,I:t$(p%12||12),l:p%12||12,M:t$(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:t$(f),L:t$(g,3)},tp.dateFormats),function(i,o){if(tY(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e,a):i)})}else if(tU(t)){var M=(this.getTimezoneOffset(e)||0)/36e5,k=this.timezone||"Etc/GMT"+(M>=0?"+":"")+M,w=t.prefix,S=t.suffix;t=(void 0===w?"":w)+this.dateTimeFormat(tL({timeZone:k},t),e)+(void 0===S?"":S)}return i?t4(t):t},t.prototype.resolveDTLFormat=function(t){return tU(t,!0)?tU(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=t5(t))[0],from:t[1],to:t[2]}},t.prototype.getDateFormat=function(t,e,i,o){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",l=a;for(a in eo){if(t&&t===eo.week&&+this.dateFormat("%w",e)===i&&n.substr(6)===r.substr(6)){a="week";break}if(t&&eo[a]>t){a=l;break}if(s[a]&&n.substr(s[a])!==r.substr(s[a]))break;"week"!==a&&(l=a)}return this.resolveDTLFormat(o[a]).main},t}(),eh=(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)}),ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eh(e,t),e.prototype.getTimeTicks=function(t,e,i,o){var n,r=this,s=[],a={},l=t.count,h=void 0===l?1:l,d=t.unitRange,c=r.toParts(e),p=c[0],u=c[1],f=c[2],g=c[3],v=c[4],m=c[5],y=(e||0)%1e3;if(null!=o||(o=1),tA(e)){if(y=d>=eo.second?0:h*Math.floor(y/h),d>=eo.second&&(m=d>=eo.minute?0:h*Math.floor(m/h)),d>=eo.minute&&(v=d>=eo.hour?0:h*Math.floor(v/h)),d>=eo.hour&&(g=d>=eo.day?0:h*Math.floor(g/h)),d>=eo.day&&(f=d>=eo.month?1:Math.max(1,h*Math.floor(f/h))),d>=eo.month&&(u=d>=eo.year?0:h*Math.floor(u/h)),d>=eo.year&&(p-=p%h),d===eo.week){h&&(e=r.makeTime(p,u,f,g,v,m,y));var x=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),b="DLMXJVS".indexOf(x);f+=-b+o+(b<o?-7:0)}e=r.makeTime(p,u,f,g,v,m,y),r.variableTimezone&&tA(i)&&(n=i-e>4*eo.month||r.getTimezoneOffset(e)!==r.getTimezoneOffset(i));for(var M=e,k=1;M<i;)s.push(M),d===eo.year?M=r.makeTime(p+k*h,0):d===eo.month?M=r.makeTime(p,u+k*h):n&&(d===eo.day||d===eo.week)?M=r.makeTime(p,u,f+k*h*(d===eo.day?1:7)):n&&d===eo.hour&&h>1?M=r.makeTime(p,u,f,g+k*h):M+=d*h,k++;s.push(M),d<=eo.hour&&s.length<1e4&&s.forEach(function(t){t%18e5==0&&"000000000"===r.dateFormat("%H%M%S%L",t)&&(a[t]="day")})}return s.info=tL(t,{higherRanks:a,totalRange:d*h}),s},e}(el),ec=function(){return(ec=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},ep={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(t){return Math.sqrt(1-Math.pow(t-1,2))}},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:tp.isTouchDevice?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},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:"0.6em"},text:"Highcharts.com"}},eu=new ed(ep.time,ep.lang),ef=function(t){var e;return tB(tp,"setOptions",{options:t}),tV(!0,ep,t),t.time&&eu.update(ep.time),t.lang&&"locale"in t.lang&&eu.update({locale:t.lang.locale}),(null==(e=t.lang)?void 0:e.chartTitle)&&(ep.title=ec(ec({},ep.title),{text:t.lang.chartTitle})),ep},eg=tp.win,ev=function(t,e,i){return"color-mix(in srgb,".concat(t,",").concat(e," ").concat(100*i,"%)")},em=function(t){return tY(t)&&!!t&&"none"!==t},ey=function(){var t;function e(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;var i,o,n,r,s=tp.Color;if(s&&s!==e)return new s(t);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)for(this.input=t=e.names[t.toLowerCase()]||t,n=e.parsers.length;n--&&!o;)(i=(r=e.parsers[n]).regex.exec(t))&&(o=r.parse(i));o&&(this.rgba=o)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.get=function(t){var e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){var o=tV(e);return o.stops=[].slice.call(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}),o}return i&&tF(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e},e.prototype.brighten=function(t){var i=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(tF(t)&&0!==t)if(tF(i[0]))for(var o=0;o<3;o++)i[o]+=tQ(255*t),i[o]<0&&(i[o]=0),i[o]>255&&(i[o]=255);else e.useColorMix&&em(this.input)&&(this.output=ev(this.input,t>0?"white":"black",Math.abs(t)));return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,i){var o=this.rgba,n=t.rgba;if(!tF(o[0])||!tF(n[0]))return e.useColorMix&&em(this.input)&&em(t.input)&&i<.99?ev(this.input,t.input,i):t.input||"none";var r=1!==n[3]||1!==o[3],s=function(t,e){return t+(o[e]-t)*(1-i)},a=n.slice(0,3).map(s).map(Math.round);return r&&a.push(s(n[3],3)),(r?"rgba(":"rgb(")+a.join(",")+")"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[tQ(t[1]),tQ(t[2]),tQ(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[tQ(t[1]),tQ(t[2]),tQ(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[tQ(t[1]+t[1],16),tQ(t[2]+t[2],16),tQ(t[3]+t[3],16),tA(t[4])?tQ(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[tQ(t[1],16),tQ(t[2],16),tQ(t[3],16),tA(t[4])?tQ(t[4],16)/255:1]}}],e.useColorMix=null==(t=eg.CSS)?void 0:t.supports("color","color-mix(in srgb,red,blue 9%)"),e.None=new e(""),e}(),ex=ey.parse,eb=tp.win,eM=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=null==t?void 0:t[0],i=null==t?void 0:t[1],o=this.now||0,n=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var r=0;r<i.length;r++){for(var s=e[r],a=i[r],l=[],h=0;h<a.length;h++){var d=s[h],c=a[h];tF(d)&&tF(c)&&("A"!==a[0]||4!==h&&5!==h)?l[h]=d+o*(c-d):l[h]=c}n.push(l)}else n=i;else n=this.toD||[];this.elem.attr("d",n,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 n=this,r=n.options,s=function(t){return!s.stopped&&n.step(t)},a=eb.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&&a(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,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&a(l)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))},t.prototype.step=function(t){var e,i,o=+new Date,n=this.options,r=this.elem,s=n.complete,a=n.duration,l=n.curAnim;return r.attr&&!r.element?e=!1:t||o>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,tK(l,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(r),e=!1):(this.pos=n.easing((o-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},t.prototype.initPath=function(t,e,i){var o,n,r,s,a=t.startX,l=t.endX,h=i.slice(),d=t.isArea,c=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=null==e?void 0:e.slice();if(!u||p)return[h,h];function f(t,e){for(;t.length<n;){var i=t[0],o=e[n-t.length];if(o&&"M"===i[0]&&("C"===o[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),d){var r=t.pop();t.push(t[t.length-1],r)}}}function g(t){for(;t.length<n;){var e=t[Math.floor(t.length/c)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){var i=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&l&&l.length){for(r=0;r<a.length;r++)if(a[r]===l[0]){o=r;break}else if(a[0]===l[l.length-a.length+r]){o=r,s=!0;break}else if(a[a.length-1]===l[l.length-a.length+r]){o=a.length-r;break}void 0===o&&(u=[])}return u.length&&tF(o)&&(n=h.length+o*c,s?(f(u,h),g(h)):(f(h,u),g(u))),[u,h]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,ex(this.start).tweenTo(ex(this.end),this.pos),void 0,!0)},t.timers=[],t}();function ek(t){return tU(t)?tV({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function ew(t,e){for(var i=eM.timers.length;i--;)eM.timers[i].elem!==t||e&&e!==eM.timers[i].prop||(eM.timers[i].stopped=!0)}var eS=function(t,e,i){var o,n,r,s,a="";tU(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),tF(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=tV(e),tK(e,function(s,l){ew(t,l),r=new eM(t,i,l),n=void 0,"d"===l&&t_(e.d)?(r.paths=r.initPath(t,t.pathArray,e.d),r.toD=e.d,o=0,n=1):t.attr?o=t.attr(l):(o=parseFloat(tN(t,l))||0,"opacity"!==l&&(a="px")),n||(n=s),"string"==typeof n&&n.match("px")&&(n=n.replace(/px/g,"")),r.run(o,n,a)})},eA=function(t,e,i){var o=ek(e),n=i?[i]:t.series,r=0,s=0;return n.forEach(function(t){var i=ek(t.options.animation);r=tU(e)&&tA(e.defer)?o.defer:Math.max(r,i.duration+i.defer),s=Math.min(o.duration,i.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-s),duration:Math.min(r,s)}},eT=function(t,e){e.renderer.globalAnimation=tJ(t,e.options.chart.animation,!0)},eP=tp.SVG_NS,eC=tp.win.trustedTypes,eO=eC&&tj(eC.createPolicy)&&eC.createPolicy("highcharts",{createHTML:function(t){return t}}),eL=eO?eO.createHTML(""):"",eE=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return tK(e,function(i,o){var n=!0;-1===t.allowedAttributes.indexOf(o)&&(n=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(n=tY(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),n||(ee(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),tY(i)&&e[o]&&(e[o]=i.replace(/</g,"&lt;"))}),e},t.parseStyle=function(t){return t.split(";").reduce(function(t,e){var i=e.split(":").map(function(t){return t.trim()}),o=i.shift();return o&&i.length&&(t[o.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=i.join(":")),t},{})},t.setElementHTML=function(e,i){e.innerHTML=t.emptyHTML,i&&new t(i).addToDOM(e)},t.prototype.addToDOM=function(e){return function e(i,o){var n;return t5(i).forEach(function(i){var r,s=i.tagName,a=i.textContent?tp.doc.createTextNode(i.textContent):void 0,l=t.bypassHTMLFiltering;if(s)if("#text"===s)r=a;else if(-1!==t.allowedTags.indexOf(s)||l){var h="svg"===s?eP:o.namespaceURI||eP,d=tp.doc.createElementNS(h,s),c=i.attributes||{};tK(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),tx(d,l?c:t.filterUserAttributes(c)),i.style&&tS(d,i.style),a&&d.appendChild(a),e(i.children||[],d),r=d}else ee(33,!1,void 0,{"Invalid tagName in config":s});r&&o.appendChild(r),n=r}),n}(this.nodes,e)},t.prototype.parseMarkup=function(e){var i,o=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{i=new DOMParser().parseFromString(eO?eO.createHTML(e):e,"text/html")}catch(t){}if(!i){var n=tk("div");n.innerHTML=e,i={body:n}}var r=function(e,i){var o=e.nodeName.toLowerCase(),n={tagName:o};"#text"===o&&(n.textContent=e.textContent||"");var s=e.attributes;if(s){var a={};[].forEach.call(s,function(e){"data-style"===e.name?n.style=t.parseStyle(e.value):a[e.name]=e.value}),n.attributes=a}if(e.childNodes.length){var l=[];[].forEach.call(e.childNodes,function(t){r(t,l)}),l.length&&(n.children=l)}i.push(n)};return[].forEach.call(i.body.childNodes,function(t){return r(t,o)}),o},t.allowedAttributes=["alt","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","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","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","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],t.emptyHTML=eL,t.bypassHTMLFiltering=!1,t}(),eB=tp.pageLang,eI={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?t/e:""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!t_(t)&&t.map(function(i,o){return eR(e.body,tL(tU(i)?i:{"@this":i},{"@index":o,"@first":0===o,"@last":o===t.length-1}))}).join("")},ge:function(t,e){return t>=e},gt:function(t,e){return t>e},if:function(t){return!!t},le:function(t,e){return t<=e},lt:function(t,e){return t<e},multiply:function(t,e){return t*e},ne:function(t,e){return t!=e},subtract:function(t,e){return t-e},ucfirst:t4,unless:function(t){return!t}},eD={},ez=function(t){return/^["'].+["']$/.test(t)};function eR(t,e,i){void 0===t&&(t="");for(var o,n,r,s,a=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'’= #\\(\\)]+)\\}","gu"),l=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),h=[],d=/f$/,c=/\.(\d)/,p=(null==(o=null==i?void 0:i.options)?void 0:o.lang)||ep.lang,u=(null==i?void 0:i.time)||eu,f=(null==i?void 0:i.numberFormatter)||eN.bind(i),g=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:ez(t)?t.slice(1,-1):tR(t,e))},v=0;null!==(n=a.exec(t));){var m=n,y=l.exec(n[1]);y&&(n=y,s=!0),(null==r?void 0:r.isBlock)||(r={ctx:e,expression:n[1],find:n[0],isBlock:"#"===n[1].charAt(0),start:n.index,startInner:n.index+n[0].length,length:n[0].length});var x=(r.isBlock?m:n)[1].split(" ")[0].replace("#","");eI[x]&&(r.isBlock&&x===r.fn&&v++,r.fn||(r.fn=x));var b="else"===n[1];if(r.isBlock&&r.fn&&(n[1]==="/".concat(r.fn)||b))if(v)!b&&v--;else{var M=r.startInner,k=t.substr(M,n.index-M);void 0===r.body?(r.body=k,r.startInner=n.index+n[0].length):r.elseBody=k,r.find+=k+n[0],b||(h.push(r),r=void 0)}else r.isBlock||h.push(r);if(y&&!(null==r?void 0:r.isBlock))break}return h.forEach(function(o){var n,r,s=o.body,a=o.elseBody,h=o.expression,v=o.fn;if(v){var m=[o],y=[],x=h.length,b=0,M=void 0;for(r=0;r<=x;r++){var k=h.charAt(r);M||'"'!==k&&"'"!==k?M===k&&(M=""):M=k,M||" "!==k&&r!==x||(y.push(h.substr(b,r-b)),b=r+1)}for(r=eI[v].length;r--;)m.unshift(g(y[r+1]));n=eI[v].apply(e,m),o.isBlock&&"boolean"==typeof n&&(n=eR(n?s:a,e,i))}else{var w=ez(h)?[h]:h.split(":");if(n=g(w.shift()||""),w.length&&"number"==typeof n){var S=w.join(":");if(d.test(S)){var A=parseInt((S.match(c)||["","-1"])[1],10);null!==n&&(n=f(n,A,p.decimalPoint,S.indexOf(",")>-1?p.thousandsSep:""))}else n=u.dateFormat(S,n)}l.lastIndex=0,l.test(o.find)&&tY(n)&&(n='"'.concat(n,'"'))}t=t.replace(o.find,tJ(n,""))}),s?eR(t,e,i):t}function eN(t,e,i,o){e*=1;var n,r,s,a,l=(t=+t||0).toString().split("e").map(Number),h=l[0],d=l[1],c=(null==(n=this===null||void 0===this?void 0:this.options)?void 0:n.lang)||ep.lang,p=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,f={};null!=i||(i=c.decimalPoint),null!=o||(o=c.thousandsSep),-1===e?e=Math.min(p,20):tF(e)?e&&d<0&&((a=e+d)>=0?(h=+h.toExponential(a).split("e")[0],e=a):(h=Math.floor(h),t=e<20?+(h*Math.pow(10,d)).toFixed(e):0,d=0)):e=2,d&&(null!=e||(e=2),t=h),tF(e)&&e>=0&&(f.minimumFractionDigits=e,f.maximumFractionDigits=e),""===o&&(f.useGrouping=!1);var g=o||i,v=g?"en":(this===null||void 0===this?void 0:this.locale)||c.locale||eB,m=JSON.stringify(f)+v;return s=(null!=(r=eD[m])?r:eD[m]=new Intl.NumberFormat(v,f)).format(t),g&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,null!=o?o:",").replace("_.",null!=i?i:".")),(e||0!=+s)&&(!(d<0)||u)||(s="0"),d&&0!=+s&&(s+="e"+(d<0?"":"+")+d),s}var eW={dateFormat:function(t,e,i){return eu.dateFormat(t,e,i)},format:eR,helpers:eI,numberFormat:eN};(h=X||(X={})).rendererTypes={},h.getRendererType=function(t){return void 0===t&&(t=d),h.rendererTypes[t]||h.rendererTypes[d]},h.registerRendererType=function(t,e,i){h.rendererTypes[t]=e,(!d||i)&&(d=t,tp.Renderer=e)};var eG=X;(H||(H={})).distribute=function t(e,i,o){var n,r,s,a=e,l=a.reducedLen||i,h=function(t,e){return t.target-e.target},d=[],c=e.length,p=[],u=d.push,f=!0,g=0;for(n=c;n--;)g+=e[n].size;if(g>l){if(t6(e,function(t,e){return(e.rank||0)-(t.rank||0)}),e[0].rank===e[e.length-1].rank)for(var v=[[0,c-1]];v.length&&g>l;){var m=v.shift();if(!m)break;r=e[n=Math.floor((m[0]+m[1])/2)],t0(p,n)&&(g-=r.size),m[0]<n&&v.push([m[0],n-1]),n<m[1]&&v.push([n+1,m[1]])}else for(n=c-1;g>l&&n>=0;)r=e[n],t0(p,n)&&(g-=r.size),n--;p.sort(function(t,e){return e-t}).forEach(function(t){return u.apply(d,e.splice(t,1))})}for(t6(e,h),e=e.map(function(t){return{size:t.size,targets:[t.target],align:tJ(t.align,.5)}});f;){for(n=e.length;n--;)r=e[n],s=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=tb(s-r.size*r.align,0,i-r.size);for(n=e.length,f=!1;n--;)n>0&&e[n-1].pos+e[n-1].size>e[n].pos&&(e[n-1].size+=e[n].size,e[n-1].targets=e[n-1].targets.concat(e[n].targets),e[n-1].align=.5,e[n-1].pos+e[n-1].size>i&&(e[n-1].pos=i-e[n-1].size),e.splice(n,1),f=!0)}return u.apply(a,d),n=0,e.some(function(e){var r=0;return(e.targets||[]).some(function(){return(a[n].pos=e.pos+r,void 0!==o&&Math.abs(a[n].pos-a[n].target)>o)?(a.slice(0,n+1).forEach(function(t){return delete t.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&t(a,i,o),!0):(r+=a[n].size,n++,!1)})}),t6(a,h),a};var eX=H,eH=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},eF=tp.deg2rad,eY=tp.doc,e_=tp.svg,ej=tp.SVG_NS,eU=tp.win,eV=tp.isFirefox,eZ=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=ej,this.element="span"===e||"body"===e?tk(e):eY.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},tB(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=tJ(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(o),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,o){void 0===o&&(o=!0);var n=this.renderer,r=n.alignedObjects,s=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);var a=!i||tY(i)?i||"renderer":void 0;a&&(s&&t0(r,this),i=void 0);var l=tJ(i,n[a],n),h=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*tI(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*tI(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(h),c[e?"translateY":"y"]=Math.round(d),o&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,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,n=ek(tJ(e,this.renderer.globalAnimation,!0)),r=n.defer;return eY.hidden&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),t9(function(){o.element&&eS(o,t,n)},r)):(this.attr(t,void 0,i||n.complete),tK(t,function(t,e){n.step&&n.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.indexOf(" "),o=t.substring(i+1),n=t.substring(0,i);if(n&&"none"!==n&&tp.svg){this.fakeTS=!0,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var r=eY.createElementNS(ej,"tspan");tx(r,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":n,"stroke-linejoin":"round"});var s=e.querySelector("textPath")||e;[].forEach.call(s.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),r.appendChild(e)});var a=0;[].forEach.call(s.querySelectorAll("text tspan"),function(t){a+=Number(t.getAttribute("dy"))});var l=eY.createElementNS(ej,"tspan");l.textContent="​",tx(l,{x:Number(e.getAttribute("x")),dy:-a}),r.appendChild(l),s.insertBefore(r,s.firstChild)}},t.prototype.attr=function(e,i,o,n){var r,s,a,l=this.element,h=t.symbolCustomAttribs,d=this;return"string"==typeof e&&void 0!==i&&(r=e,(e={})[r]=i),"string"==typeof e?d=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(tK(e,function(t,i){a=!1,n||ew(this,i),this.symbolName&&-1!==h.indexOf(i)&&(s||(this.symbolAttr(e),s=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,l)},this),this.afterSetters()),o&&o.call(this),d},t.prototype.clip=function(t){if(t&&!t.clipPath){var e=en()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);tL(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?"url(".concat(this.renderer.url,"#").concat(t.id,")"):"none")},t.prototype.crisp=function(t,e){e=Math.round(e||t.strokeWidth||0);var i=t.x||this.x||0,o=t.y||this.y||0,n=(t.width||this.width||0)+i,r=(t.height||this.height||0)+o,s=tw(i,e),a=tw(o,e);return tL(t,{x:s,y:a,width:tw(n,e)-s,height:tw(r,e)-a}),tA(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var o,n,r,s,a,l,h,d,c,p,u,f=this.renderer,g=[];tB(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?n="radialGradient":t.linearGradient&&(n="linearGradient"),n){if(r=t[n],a=f.gradients,l=t.stops,c=i.radialReference,t_(r)&&(t[n]=r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===n&&c&&!tA(r.gradientUnits)&&(s=r,r=tV(r,f.getRadialAttr(c,s),{gradientUnits:"userSpaceOnUse"})),tK(r,function(t,e){"id"!==e&&g.push(e,t)}),tK(l,function(t){g.push(t)}),a[g=g.join(",")])p=a[g].attr("id");else{r.id=p=en();var v=a[g]=f.createElement(n).attr(r).add(f.defs);v.radAttr=s,v.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(h=(o=ey.parse(t[1])).get("rgb"),d=o.get("a")):(h=t[1],d=1);var e=f.createElement("stop").attr({offset:t[0],"stop-color":h,"stop-opacity":d}).add(v);v.stops.push(e)})}u="url("+f.url+"#"+p+")",i.setAttribute(e,u),i.gradient=g,t.toString=function(){return u}}})},t.prototype.css=function(t){var e,i=this.styles,o={},n=this.element,r=!i;if(i&&tK(t,function(t,e){i&&i[e]!==t&&(o[e]=t,r=!0)}),r){i&&(t=tL(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===n.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=tQ(t.width)),tL(this.styles,t),e&&!e_&&this.renderer.forExport&&delete t.width;var s=eV&&t.fontSize||null;s&&(tF(s)||/^\d+$/.test(s))&&(t.fontSize+="px");var a=tV(t);n.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return a&&delete a[t]}),a.color&&(a.fill=a.color,delete a.color)),tS(n,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this},t.prototype.dashstyleSetter=function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){var o=(t=t.toLowerCase()).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(e=o.length;e--;)o[e]=""+tQ(o[e])*tJ(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t,e=this,i=e.element,o=void 0===i?{}:i,n=e.renderer,r=e.stops,s=o.ownerSVGElement,a="SPAN"===o.nodeName&&e.parentGroup||void 0;if(o.onclick=o.onmouseout=o.onmouseover=o.onmousemove=o.point=null,ew(e),e.clipPath&&s){var l=e.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(l.element.id)>-1&&t.removeAttribute("clip-path")}),e.clipPath=l.destroy()}if(r){for(var h=0;h<r.length;h++)r[h].destroy();r.length=0}for(e.safeRemoveChild(o);(null==a?void 0:a.div)&&0===a.div.childNodes.length;)t=a.parentGroup,e.safeRemoveChild(a.div),delete a.div,a=t;e.alignOptions&&tO(n.alignedObjects,e),tK(e,function(t,i){var o,n,r;((null==(o=e[i])?void 0:o.parentGroup)===e||-1!==["connector","foreignObject"].indexOf(i))&&(null==(r=null==(n=e[i])?void 0:n.destroy)||r.call(n)),delete e[i]})},t.prototype.dSetter=function(t,e,i){t_(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return(null==e?void 0: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.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.hrefSetter=function(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)},t.prototype.getBBox=function(e,i){var o,n,r,s=this.element,a=this.renderer,l=this.styles,h=this.textStr,d=a.cache,c=a.cacheKeys,p=s.namespaceURI===this.SVG_NS,u=tJ(i,this.rotation,0),f=a.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):l.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,l.fontWeight,l.lineClamp,l.textOverflow,f,u]);if(g&&!e&&(o=d[g]),!o||o.polygon){if(p||a.forExport){try{r=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&tS(e,{display:t})},tj(r)&&r("none"),o=s.getBBox?tL({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},tj(r)&&r("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();n=o.height,p&&(o.height=n=({"11px,17":14,"13px,20":16})[""+(f||"")+",".concat(Math.round(n))]||n),u&&(o=this.getRotatedBox(o,u));var v={bBox:o};tB(this,"afterGetBBox",v),o=v.bBox}if(g&&(""===h||o.height>0)){for(;c.length>250;)delete d[c.shift()];d[g]||c.push(g),d[g]=o}return o},t.prototype.getBBoxCacheKey=function(t){if(tA(this.textStr)){var e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),eH([e],t,!0).join(",")}},t.prototype.getRotatedBox=function(t,e){var i=t.x,o=t.y,n=t.width,r=t.height,s=this.alignValue,a=this.translateY,l=this.rotationOriginX,h=this.rotationOriginY,d=tI(s),c=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*eF,u=(e-90)*eF,f=Math.cos(p),g=Math.sin(p),v=n*f,m=n*g,y=Math.cos(u),x=Math.sin(u),b=[void 0===l?0:l,void 0===h?0:h].map(function(t){return[t-t*f,t*g]}),M=b[0],k=M[0],w=M[1],S=b[1],A=S[0],T=i+d*(n-v)+k+S[1]+c*y,P=T+v,C=P-r*y,O=C-v,L=o+c-d*m-w+A+c*x,E=L+m,B=E-r*x,I=B-m,D=Math.min(T,P,C,O),z=Math.min(L,E,B,I),R=Math.max(T,P,C,O)-D,N=Math.max(L,E,B,I)-z;return{x:D,y:z,width:R,height:N,polygon:[[T,L],[P,E],[C,B],[O,I]]}},t.prototype.getStyle=function(t){return eU.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=tv(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){var o=Number(Number(t).toFixed(3));this.opacity=o,i.setAttribute(e,o)},t.prototype.reAlign=function(){var t;(null==(t=this.alignOptions)?void 0:t.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(tY(t)?new RegExp("(^| )".concat(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]||void 0;return this.element.radialReference=t,(null==e?void 0:e.radAttr)&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.shadow=function(t){var e,i=this.renderer,o=tV((null==(e=this.parentGroup)?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},tU(t)?t:{}),n=i.shadowDefinition(o);return this.attr({filter:t?"url(".concat(i.url,"#").concat(n,")"):"none"})},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=tQ(e):""!==e&&(tx(t=eY.createElementNS(ej,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},t.prototype.symbolAttr=function(e){var i=this;t.symbolCustomAttribs.forEach(function(t){i[t]=tJ(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||eY.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=t2(tJ(t,""),[/<[^>]*>/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.updateTransform=function(t){void 0===t&&(t="transform");var e,i,o,n,r=this.element,s=this.foreignObject,a=this.matrix,l=this.padding,h=this.rotation,d=void 0===h?0:h,c=this.rotationOriginX,p=this.rotationOriginY,u=this.scaleX,f=this.scaleY,g=this.text,v=this.translateX,m=this.translateY,y=["translate(".concat(void 0===v?0:v,",").concat(void 0===m?0:m,")")];tA(a)&&y.push("matrix("+a.join(",")+")"),d&&(y.push("rotate("+d+" "+(null!=(i=null!=(e=null!=c?c:r.getAttribute("x"))?e:this.x)?i:0)+" "+(null!=(n=null!=(o=null!=p?p:r.getAttribute("y"))?o:this.y)?n:0)+")"),(null==g?void 0:g.element.tagName)!=="SPAN"||(null==g?void 0:g.foreignObject)||g.attr({rotation:d,rotationOriginX:(c||0)-l,rotationOriginY:(p||0)-l})),(tA(u)||tA(f))&&y.push("scale(".concat(null!=u?u:1," ").concat(null!=f?f:1,")")),y.length&&!(g||this).textPath&&((null==s?void 0:s.element)||r).setAttribute(t,y.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,n,r,s,a=this.renderer,l=this.parentGroup,h=(l||a).element||a.box,d=this.element,c=h===a.box,p=!1,u=this.added;if(tA(t)?(d.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):tA(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&l&&(l.handleZ=!0),s=(i=h.childNodes).length-1;s>=0&&!p;s--)r=!tA(n=(o=i[s]).getAttribute("data-z-index")),o!==d&&(t<0&&r&&!c&&!s?(h.insertBefore(d,i[s]),p=!0):(tQ(n)<=t||r&&(!tA(t)||t>=0))&&(h.insertBefore(d,i[s+1]),p=!0));p||(h.insertBefore(d,i[3*!!c]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();eZ.prototype.strokeSetter=eZ.prototype.fillSetter,eZ.prototype.yGetter=eZ.prototype.xGetter,eZ.prototype.matrixSetter=eZ.prototype.rotationOriginXSetter=eZ.prototype.rotationOriginYSetter=eZ.prototype.rotationSetter=eZ.prototype.scaleXSetter=eZ.prototype.scaleYSetter=eZ.prototype.translateXSetter=eZ.prototype.translateYSetter=eZ.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var eK=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),eq=function(t){function e(i,o,n,r,s,a,l,h,d,c){var p,u=t.call(this,i,"g")||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.doUpdate=!1,u.textStr=o,u.x=n,u.y=r,u.anchorX=a,u.anchorY=l,u.baseline=d,u.className=c,u.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&u.addClass("highcharts-"+c),u.text=i.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof s&&((p=/^url\((.*?)\)$/.test(s))||u.renderer.symbols[s])&&(u.symbolKey=s),u.bBox=e.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=i.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return eK(e,t),e.prototype.alignSetter=function(t){var e=tI(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&tF(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())},e.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},e.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},e.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},e.prototype.css=function(t){if(t){var i={};t=tV(t),e.textProps.forEach(function(e){void 0!==t[e]&&(i[e]=t[e],delete t[e])}),this.text.css(i),"fontSize"in i||"fontWeight"in i||"width"in i?this.updateTextPadding():"textOverflow"in i&&this.updateBoxSize()}return eZ.prototype.css.call(this,t)},e.prototype.destroy=function(){t3(this.element,"mouseenter"),t3(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),eZ.prototype.destroy.call(this)},e.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},e.prototype.getBBox=function(t,e){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();var i=this.padding,o=this.height,n=this.translateX,r=this.translateY,s=this.width,a=tJ(this.paddingLeft,i),l=null!=e?e:this.rotation||0,h={width:void 0===s?0:s,height:void 0===o?0:o,x:(void 0===n?0:n)+this.bBox.x-a,y:(void 0===r?0:r)+this.bBox.y-i+this.baselineOffset};return l&&(h=this.getRotatedBox(h,l)),h},e.prototype.getCrispAdjust=function(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},e.prototype.heightSetter=function(t){this.heightSetting=t,this.doUpdate=!0},e.prototype.afterSetters=function(){t.prototype.afterSetters.call(this),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)},e.prototype.onAdd=function(){this.text.add(this),this.attr({text:tJ(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&tA(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){tF(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},e.prototype.rSetter=function(t,e){this.boxAttr(e,t)},e.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},e.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},e.prototype["text-alignSetter"]=function(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()},e.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()},e.prototype.updateBoxSize=function(){var t,i=this.text,o={},n=this.padding,r=this.bBox=(!tF(this.widthSetting)||!tF(this.heightSetting)||this.textAlign)&&tA(i.textStr)?i.getBBox(void 0,0):e.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*n;var s=this.renderer.fontMetrics(i);if(this.baselineOffset=n+Math.min((this.text.firstLineMetrics||s).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!i.textPath){if(!this.box){var a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}o.x=t=this.getCrispAdjust(),o.y=(this.baseline?-this.baselineOffset:0)+t,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(tL(o,this.deferredAttr)),this.deferredAttr={}}},e.prototype.updateTextPadding=function(){var t,e,i=this.text,o=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();var n=this.baseline?0:this.baselineOffset,r=(null!=(t=this.paddingLeft)?t:this.padding)+tI(o)*(null!=(e=this.widthSetting)?e:this.bBox.width);(r!==i.x||n!==i.y)&&(i.attr({align:o,x:r}),void 0!==n&&i.attr("y",n)),i.x=r,i.y=n}},e.prototype.widthSetter=function(t){this.widthSetting=tF(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=tJ(this.paddingLeft,t),i=tJ(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i},e.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},e.prototype.ySetter=function(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},e.emptyBBox={width:0,height:0,x:0,y:0},e.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],e}(eZ);function e$(t,e,i,o,n){var r=[];if(n){var s=n.start||0,a=n.end||0,l=tJ(n.r,i),h=tJ(n.r,o||i),d=1e-4>Math.abs(a-s-2*Math.PI);d&&(s=Math.PI/2,a=2.5*Math.PI-1e-4);var c=n.innerR,p=tJ(n.open,d),u=d?0:Math.cos(s),f=d?1:Math.sin(s),g=d?0:Math.cos(a),v=d?1:Math.sin(a),m=tJ(n.longArc,a-s-Math.PI<1e-4?0:1),y=["A",l,h,0,m,tJ(n.clockwise,1),t+(d?.001:l*g),e+h*v];y.params={start:s,end:a,cx:t,cy:e},r.push(["M",t+l*u,e+h*f],y),tA(c)&&((y=["A",c,c,0,m,tA(n.clockwise)?1-n.clockwise:0,t+(d?-.001:c*u),e+c*f]).params={start:a,end:s,cx:t,cy:e},r.push(p?["M",t+c*g,e+c*v]:["L",t+c*g,e+c*v],y)),p||r.push(["Z"])}return r}function eJ(t,e,i,o,n){return(null==n?void 0:n.r)?eQ(t,e,i,o,n):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function eQ(t,e,i,o,n){var r=(null==n?void 0:n.r)||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+o-r],["A",r,r,0,0,1,t+i-r,e+o],["L",t+r,e+o],["A",r,r,0,0,1,t,e+o-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}var e0={arc:e$,callout:function(t,e,i,o,n){var r=Math.min((null==n?void 0:n.r)||0,i,o),s=r+6,a=null==n?void 0:n.anchorX,l=(null==n?void 0:n.anchorY)||0,h=eQ(t,e,i,o,{r:r});if(!tF(a)||a<i&&a>0&&l<o&&l>0)return h;if(t+a>i-s)if(l>e+s&&l<e+o-s)h.splice(3,1,["L",t+i,l-6],["L",t+i+6,l],["L",t+i,l+6],["L",t+i,e+o-r]);else if(a<i){var d=l<e+s,c=d?e:e+o,p=d?2:5;h.splice(p,0,["L",a,l],["L",t+i-r,c])}else h.splice(3,1,["L",t+i,o/2],["L",a,l],["L",t+i,o/2],["L",t+i,e+o-r]);else if(t+a<s)if(l>e+s&&l<e+o-s)h.splice(7,1,["L",t,l+6],["L",t-6,l],["L",t,l-6],["L",t,e+r]);else if(a>0){var d=l<e+s,c=d?e:e+o,p=d?1:6;h.splice(p,0,["L",a,l],["L",t+r,c])}else h.splice(7,1,["L",t,o/2],["L",a,l],["L",t,o/2],["L",t,e+r]);else l>o&&a<i-s?h.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+r,e+o]):l<0&&a>s&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-r,e]);return h},circle:function(t,e,i,o){return e$(t+i/2,e+o/2,i/2,o/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:eJ,roundedRect:eQ,square:eJ,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"]]}},e1=tp.doc,e2=tp.SVG_NS,e3=tp.win,e5=function(t,e){return t.substring(0,e)+"…"},e6=function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=null==e?void 0:e.lineHeight,this.textOutline=null==e?void 0:e.textOutline,this.ellipsis=(null==e?void 0:e.textOverflow)==="ellipsis",this.lineClamp=null==e?void 0:e.lineClamp,this.noWrap=(null==e?void 0:e.whiteSpace)==="nowrap"}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=tJ(t.textStr,"").toString(),n=-1!==o.indexOf("<"),r=e.childNodes,s=!t.added&&i.box,a=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(a!==t.textCache){t.textCache=a,delete t.actualWidth;for(var l=r.length;l--;)e.removeChild(r[l]);if(n||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))){if(""!==o){s&&s.appendChild(e);var h=new eE(o);this.modifyTree(h.nodes),h.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(e)}}else e.appendChild(e1.createTextNode(this.unescapeEntities(o)));tY(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=tx(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,n){t.nextSibling&&t.previousSibling&&(0===n&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),tx(t,{dy:e.getLineHeight(t.nextSibling),x:o}))});var n=this.width||0;if(n){var r=function(t,r){var s,a=t.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(l.length>1||i.element.childNodes.length>1),d=e.getLineHeight(r),c=Math.max(0,n-.8*d),p=0,u=i.actualWidth;if(h){for(var f=[],g=[];r.firstChild&&r.firstChild!==t;)g.push(r.firstChild),r.removeChild(r.firstChild);for(;l.length;)if(l.length&&!e.noWrap&&p>0&&(f.push(t.textContent||""),t.textContent=l.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,l,0===p&&u||0,n,c,function(t,e){return l.slice(0,e).join(" ").replace(/- /g,"-")}),u=i.actualWidth,p++,e.lineClamp&&p>=e.lineClamp){l.length&&(e.truncate(t,t.textContent||"",void 0,0,n,c,e5),t.textContent=(null==(s=t.textContent)?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){r.insertBefore(e,t)}),f.forEach(function(e){r.insertBefore(e1.createTextNode(e),t);var i=e1.createElementNS(e2,"tspan");i.textContent="​",tx(i,{dy:d,x:o}),r.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,n,c,e5)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===e3.Node.TEXT_NODE?r(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),s(e))})};s(i.element)}},t.prototype.getLineHeight=function(t){var e=t.nodeType===e3.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h},t.prototype.modifyTree=function(t){var e=this,i=function(o,n){var r=o.attributes,s=void 0===r?{}:r,a=o.children,l=o.style,h=void 0===l?{}:l,d=o.tagName,c=e.renderer.styledMode;if("b"===d||"strong"===d?c?s.class="highcharts-strong":h.fontWeight="bold":("i"===d||"em"===d)&&(c?s.class="highcharts-emphasized":h.fontStyle="italic"),(null==h?void 0:h.color)&&(h.fill=h.color),"br"===d){s.class="highcharts-br",o.textContent="​";var p=t[n+1];(null==p?void 0:p.textContent)&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===d&&a&&a.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:a,tagName:"tspan"}]);"#text"!==d&&"a"!==d&&(o.tagName="tspan"),tL(o,{attributes:s,style:h}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),tB(this.svgElement,"afterModifyTree",{nodes:t})},t.prototype.truncate=function(t,e,i,o,n,r,s){var a,l,h=this.svgElement,d=h.rotation,c=[],p=i&&!o?1:0,u=(e||i||"").length,f=u;i||(n=r);var g=function(e,n){var r=n||e,s=t.parentNode;if(s&&void 0===c[r]&&s.getSubStringLength)try{c[r]=o+s.getSubStringLength(0,i?r+1:r)}catch(t){}return c[r]};if(h.rotation=0,o+(l=g(t.textContent.length))>n){for(;p<=u;)f=Math.ceil((p+u)/2),i&&(a=s(i,f)),l=g(f,a&&a.length-1),p===u?p=u+1:l>n?u=f-1:p=f;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=a||s(e||i,f)),this.ellipsis&&l>n&&this.truncate(t,t.textContent||"",void 0,0,n,r,e5)}i&&i.splice(0,f),h.actualWidth=l,h.rotation=d},t.prototype.unescapeEntities=function(t,e){return tK(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),e9=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},e4=tp.charts,e8=tp.deg2rad,e7=tp.doc,it=tp.isFirefox,ie=tp.isMS,ii=tp.isWebKit,io=tp.noop,ir=tp.SVG_NS,is=tp.symbolSizes,ia=tp.win,il=function(){function t(t,e,i,o,n,r,s){this.x=0,this.y=0;var a,l,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=h.element;s||h.css(this.getStyle(o||{})),t.appendChild(d),tx(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&tx(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(e7.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=n,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=h.getStyle("font-size"),this.setSize(e,i,!1),it&&t.getBoundingClientRect&&((a=function(){tS(t,{left:0,top:0}),l=t.getBoundingClientRect(),tS(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=tv(ia,"resize",a))}return t.prototype.definition=function(t){return new eE([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((it||ii)&&e7.getElementsByTagName("base").length){if(!tA(F)){var t=en(),e=new eE([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(e7.body);tS(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=e7.elementFromPoint(6,6);F=(null==i?void 0:i.id)==="hitme",e7.body.removeChild(e)}if(F)return t2(ia.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=tL({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style},t.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},t.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},t.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),tT(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null},t.prototype.createElement=function(t){return new this.Element(this,t)},t.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]}},t.prototype.shadowDefinition=function(t){var e=e9(["highcharts-drop-shadow-".concat(this.chartIndex)],Object.keys(t).map(function(e){return""+e+"-".concat(t[e])}),!0).join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=tV({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e},t.prototype.getShadowFilterContent=function(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]},t.prototype.buildText=function(t){new e6(t).buildSVG()},t.prototype.getContrast=function(t){if("transparent"===t)return"#000000";var e=ey.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tF(e[0])||!ey.useColorMix){var o=e.map(function(t){var e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),n=.2126*o[0]+.7152*o[1]+.0722*o[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"},t.prototype.button=function(t,e,i,o,n,r,s,a,l,h){void 0===n&&(n={});var d=this.label(t,e,i,l,void 0,void 0,h,void 0,"button"),c=this.styledMode,p=arguments,u=0;n=tV(ep.global.buttonTheme,n),c&&(delete n.fill,delete n.stroke,delete n["stroke-width"]);var f=n.states||{},g=n.style||{};delete n.states,delete n.style;var v=[eE.filterUserAttributes(n)],m=[g];return c||["hover","select","disabled"].forEach(function(t,e){v.push(tV(v[0],eE.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),tv(d.element,ie?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),tv(d.element,ie?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){if(void 0===t&&(t=0),1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!c){d.attr(v[t]);var e=m[t];tU(e)&&d.css(e)}},d.attr(v[0]),!c&&(d.css(tL({cursor:"default"},g)),h&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&(null==o||o.call(d,t))})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return tA(i[1])&&i[1]===o[1]&&(i[1]=o[1]=tw(i[1],e)),tA(i[2])&&i[2]===o[2]&&(i[2]=o[2]=tw(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return t_(t)?e.d=t:tU(t)&&tL(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=tU(t)?t:void 0===t?{}:{x:t,y:e,r:i},n=this.createElement("circle");return n.xSetter=n.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},n.attr(o)},t.prototype.arc=function(t,e,i,o,n,r){tU(t)?(e=(s=t).y,i=s.r,o=s.innerR,n=s.start,r=s.end,t=s.x):s={innerR:o,start:n,end:r};var s,a=this.symbol("arc",t,e,i,i,s);return a.r=i,a},t.prototype.rect=function(t,e,i,o,n,r){var s=tU(t)?t:void 0===t?{}:{x:t,y:e,r:n,width:Math.max(i||0,0),height:Math.max(o||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==r&&(s["stroke-width"]=r,tL(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,tx(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(s)},t.prototype.roundedRect=function(t){return this.symbol("roundedRect").attr(t)},t.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:tJ(i,!0)?void 0:0}),this.alignElements()},t.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},t.prototype.image=function(t,e,i,o,n,r){var s={preserveAspectRatio:"none"};tF(e)&&(s.x=e),tF(i)&&(s.y=i),tF(o)&&(s.width=o),tF(n)&&(s.height=n);var a=this.createElement("image").attr(s),l=function(e){a.attr({href:t}),r.call(a,e)};if(r){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var h=new ia.Image;tv(h,"load",l),h.src=t,h.complete&&l({})}else a.attr({href:t});return a},t.prototype.symbol=function(t,e,i,o,n,r){var s,a,l,h,d,c,p=this,u=/^url\((.*?)\)$/,f=u.test(t),g=!f&&(this.symbols[t]?t:"circle"),v=g&&this.symbols[g];if(v)"number"==typeof e&&(h=v.call(this.symbols,e||0,i||0,o||0,n||0,r)),l=this.path(h),p.styledMode||l.attr("fill","none"),tL(l,{symbolName:g||void 0,x:e,y:i,width:o,height:n}),r&&tL(l,r);else if(f){d=t.match(u)[1];var m=l=this.image(d);m.imgwidth=tJ(null==r?void 0:r.width,null==(s=is[d])?void 0:s.width),m.imgheight=tJ(null==r?void 0:r.height,null==(a=is[d])?void 0:a.height),c=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach(function(t){m[""+t+"Setter"]=function(t,e){this[e]=t;var i=this.alignByTranslate,o=this.element,n=this.width,s=this.height,a=this.imgwidth,l=this.imgheight,h="width"===e?a:l,d=1;r&&"within"===r.backgroundSize&&n&&s&&a&&l?(d=Math.min(n/a,s/l),tx(o,{width:Math.round(a*d),height:Math.round(l*d)})):o&&h&&o.setAttribute(e,h),!i&&a&&l&&this.translate(((n||0)-a*d)/2,((s||0)-l*d)/2)}}),tA(e)&&m.attr({x:e,y:i}),m.isImg=!0,tA(m.imgwidth)&&tA(m.imgheight)?c(m):(m.attr({width:0,height:0}),tk("img",{onload:function(){var t=e4[p.chartIndex];0===this.width&&(tS(this,{position:"absolute",top:"-999em"}),e7.body.appendChild(this)),is[d]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&c(m),this.parentNode&&this.parentNode.removeChild(this),p.asyncCounter--,p.asyncCounter||!t||t.hasLoaded||t.onload()},src:d}),this.asyncCounter++)}return l},t.prototype.clipRect=function(t,e,i,o){return this.rect(t,e,i,o,0)},t.prototype.text=function(t,e,i,o){var n={};if(o&&(this.allowHTML||!this.forExport))return this.html(t,e,i);n.x=Math.round(e||0),i&&(n.y=Math.round(i)),tA(t)&&(n.text=t);var r=this.createElement("text").attr(n);return o&&(!this.forExport||this.allowHTML)||(r.xSetter=function(t,e,i){for(var o=i.getElementsByTagName("tspan"),n=i.getAttribute(e),r=0,s=void 0;r<o.length;r++)(s=o[r]).getAttribute(e)===n&&s.setAttribute(e,t);i.setAttribute(e,t)}),r},t.prototype.fontMetrics=function(t){var e=tF(t)?t:tQ(eZ.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),o=Math.round(.8*i);return{h:i,b:o,f:e}},t.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*e8),4)),{x:-t/3*Math.sin(e*e8),y:o}},t.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},n=0;n<t.length;n++)tY(i[0])&&tF(t[n])&&i.length===o[i[0].toUpperCase()]&&t.splice(n,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[n]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[n]);return e.push(i.slice(0)),e},t.prototype.label=function(t,e,i,o,n,r,s,a,l){return new eq(this,t,e,i,o,n,r,s,a,l)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();tL(il.prototype,{Element:eZ,SVG_NS:ir,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:e0,draw:io}),eG.registerRendererType("svg",il,!0);var ih=(p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),id=function(){return(id=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},ic=tp.composed,ip=tp.isFirefox;function iu(t,e,i){var o,n=null==(o=this.div)?void 0:o.style;eZ.prototype[""+e+"Setter"].call(this,t,e,i),n&&(i.style[e]=n[e]=t)}var ig=function(t,e){var i;if(!t.div){var o=tx(t.element,"class"),n=t.css,r=tk("div",o?{className:o}:void 0,id(id({position:"absolute",left:""+(t.translateX||0)+"px",top:""+(t.translateY||0)+"px"},t.styles),{display:t.display,opacity:t.opacity,visibility:t.visibility}),(null==(i=t.parentGroup)?void 0:i.div)||e);t.classSetter=function(t,e,i){i.setAttribute("class",t),r.className=t},t.translateXSetter=t.translateYSetter=function(e,i){t[i]=e,r.style["translateX"===i?"left":"top"]=""+e+"px",t.doTransform=!0},t.scaleXSetter=t.scaleYSetter=function(e,i){t[i]=e,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=iu,t.css=function(e){return n.call(t,e),e.cursor&&(r.style.cursor=e.cursor),e.pointerEvents&&(r.style.pointerEvents=e.pointerEvents),t},t.on=function(){return eZ.prototype.on.apply({element:r,onEvents:t.onEvents},arguments),t},t.div=r}return t.div},iv=function(t){function e(i,o){var n=t.call(this,i,o)||this;return e.useForeignObject?n.foreignObject=i.createElement("foreignObject").attr({zIndex:2}):n.css(id({position:"absolute"},i.styledMode?{}:{fontFamily:i.style.fontFamily,fontSize:i.style.fontSize})),n.element.style.whiteSpace="nowrap",n}return ih(e,t),e.compose=function(t){t0(ic,this.compose)&&(t.prototype.html=function(t,i,o){return new e(this,"span").attr({text:t,x:Math.round(i),y:Math.round(o)})})},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.css=function(t){var e,i=this.element,o="SPAN"===i.tagName&&t&&"width"in t,n=o&&t.width;return o&&(delete t.width,this.textWidth=tQ(n)||void 0,e=!0),(null==t?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),(null==t?void 0:t.lineClamp)&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),tF(Number(null==t?void 0:t.fontSize))&&(t.fontSize+="px"),tL(this.styles,t),tS(i,t),e&&this.updateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.updateTransform=function(){if(!this.added){this.alignOnAdd=!0;return}var e,i=this.element,o=this.foreignObject,n=this.oldTextWidth,r=this.renderer,s=this.rotation,a=this.rotationOriginX,l=this.rotationOriginY,h=this.scaleX,d=this.scaleY,c=this.styles,p=c.display,u=void 0===p?"inline-block":p,f=c.whiteSpace,g=this.textAlign,v=void 0===g?"left":g,m=this.textWidth,y=this.translateX,x=this.translateY,b=this.x,M=void 0===b?0:b,k=this.y,w=void 0===k?0:k;if(o||tS(i,{marginLeft:""+(void 0===y?0:y)+"px",marginTop:""+(void 0===x?0:x)+"px"}),"SPAN"===i.tagName){var S=[s,v,i.innerHTML,m,this.textAlign].join(","),A=-((null==(e=this.parentGroup)?void 0:e.padding)*1)||0,T=void 0;if(m!==n){var P=this.textPxLength?this.textPxLength:(tS(i,{width:"",whiteSpace:f||"nowrap"}),i.offsetWidth),C=m||0,O=!r.styledMode&&""===i.style.textOverflow&&i.style.webkitLineClamp;(C>n||P>C||O)&&(/[\-\s\u00AD]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)&&(tS(i,{width:(s||h||P>C)&&tF(m)?m+"px":O?Math.min(P+1,C)+"px":"auto",display:u,whiteSpace:f||"normal"}),this.oldTextWidth=m)}o&&(tS(i,{display:"inline-block",verticalAlign:"top"}),o.attr({width:r.width,height:r.height})),S!==this.cTT&&(T=r.fontMetrics(i).b,tA(s)&&!o&&(s!==(this.oldRotation||0)||v!==this.oldAlign)&&tS(i,{transform:"rotate(".concat(s,"deg)"),transformOrigin:""+A+"% "+A+"px"}),this.getSpanCorrection(!tA(s)&&!this.textWidth&&this.textPxLength||i.offsetWidth,T,tI(v)));var L=this.xCorr,E=void 0===L?0:L,B=this.yCorr,I=void 0===B?0:B,D=(null!=a?a:M)-E-M-A,z=(null!=l?l:w)-I-w-A,R={left:""+(M+E)+"px",top:""+(w+I)+"px",textAlign:v,transformOrigin:""+D+"px "+z+"px"};(h||d)&&(R.transform="scale(".concat(null!=h?h:1,",").concat(null!=d?d:1,")")),o?(t.prototype.updateTransform.call(this),tF(M)&&tF(w)?(o.attr({x:M+E,y:w+I,width:i.offsetWidth+3,height:i.offsetHeight,"transform-origin":i.getAttribute("transform-origin")||"0 0"}),tS(i,{display:u,textAlign:v})):ip&&o.attr({width:0,height:0})):tS(i,R),this.cTT=S,this.oldRotation=s,this.oldAlign=v}},e.prototype.add=function(e){var i=this.foreignObject,o=this.renderer,n=o.box.parentNode,r=[];if(i)i.add(e),t.prototype.add.call(this,o.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(i));else{var s=void 0;if(this.parentGroup=e,e&&!(s=e.div)){for(var a=e;a;)r.push(a),a=a.parentGroup;for(var l=0,h=r.reverse();l<h.length;l++)s=ig(h[l],n)}(s||n).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,eE.setElementHTML(this.element,null!=t?t:""),this.textStr=t,this.doTransform=!0)},e.prototype.alignSetter=function(t){this.alignValue=this.textAlign=t,this.doTransform=!0},e.prototype.xSetter=function(t,e){this[e]=t,this.doTransform=!0},e}(eZ),im=iv.prototype;im.visibilitySetter=im.opacitySetter=iu,im.ySetter=im.rotationSetter=im.rotationOriginXSetter=im.rotationOriginYSetter=im.xSetter,(u=Y||(Y={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},u.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var iy=Y;(_||(_={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},tK(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(t3(t,i,t.eventOptions[i]),delete t.eventOptions[i]),tj(e)&&(t.eventOptions[i]=e,tv(t,i,e,{order:0})))})};var ix=_,ib=tp.deg2rad,iM=function(){function t(t,e,i,o,n){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,tB(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o,n,r=this,s=r.axis,a=s.options,l=s.chart,h=s.categories,d=s.logarithmic,c=s.names,p=r.pos,u=tJ(null==(t=r.options)?void 0:t.labels,a.labels),f=s.tickPositions,g=p===f[0],v=p===f[f.length-1],m=(!u.step||1===u.step)&&1===s.tickInterval,y=f.info,x=r.label,b=this.parameters.category||(h?tJ(h[p],c[p],p):p);d&&tF(b)&&(b=tM(d.lin2log(b))),s.dateTime&&(y?i=(o=l.time.resolveDTLFormat(a.dateTimeLabelFormats[!(null==(e=a.grid)?void 0:e.enabled)&&y.higherRanks[p]||y.unitName])).main:tF(b)&&(i=s.dateTime.getXDateFormat(b,a.dateTimeLabelFormats||{}))),r.isFirst=g,r.isLast=v;var M={axis:s,chart:l,dateTimeLabelFormat:i,isFirst:g,isLast:v,pos:p,tick:r,tickPositionInfo:y,value:b};tB(this,"labelFormat",M);var k=function(t){return u.formatter?u.formatter.call(t,t):u.format?(t.text=s.defaultLabelFormatter.call(t),eW.format(u.format,t,l)):s.defaultLabelFormatter.call(t)},w=k.call(M,M),S=null==o?void 0:o.list;S?r.shortenLabel=function(){for(n=0;n<S.length;n++)if(tL(M,{dateTimeLabelFormat:S[n]}),x.attr({text:k.call(M,M)}),x.getBBox().width<s.getSlotWidth(r)-2*(u.padding||0))return;x.attr({text:""})}:r.shortenLabel=void 0,m&&s._addedPlotLB&&r.moveLabel(w,u),tA(x)||r.movedLabel?x&&x.textStr!==w&&!m&&(!x.textWidth||u.style.width||x.styles.width||x.css({width:null}),x.attr({text:w}),x.textPxLength=x.getBBox().width):(r.label=x=r.createLabel(w,u),r.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,n=o.chart,r=n.renderer,s=n.styledMode,a=e.style.whiteSpace,l=tA(t)&&e.enabled?r.text(t,null==i?void 0:i.x,null==i?void 0:i.y,e.useHTML).add(o.labelGroup):void 0;return l&&(s||l.css(tV(e.style)),l.textPxLength=l.getBBox().width,!s&&a&&l.css({whiteSpace:a})),l},t.prototype.destroy=function(){tT(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var n=this.axis,r=n.chart,s=o&&r.oldChartHeight||r.chartHeight,a={x:t?tM(n.translate(e+i,void 0,void 0,o)+n.transB):n.left+n.offset+(n.opposite?(o&&r.oldChartWidth||r.chartWidth)-n.right-n.left:0),y:t?s-n.bottom+n.offset-(n.opposite?n.height:0):tM(s-n.translate(e+i,void 0,void 0,o)-n.transB)};return a.y=tb(a.y,-1e9,1e9),tB(this,"afterGetPosition",{pos:a}),a},t.prototype.getLabelPosition=function(t,e,i,o,n,r,s,a){var l,h,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,u=d.staggerLines,f=d.tickRotCorr||{x:0,y:0},g=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v=n.distance,m={};return l=0===d.side?i.rotation?-v:-i.getBBox().height:2===d.side?f.y+v:Math.cos(i.rotation*ib)*(f.y-i.getBBox(!1,0).height/2),tA(n.y)&&(l=0===d.side&&d.horiz?n.y+l:n.y),t=t+tJ(n.x,[0,1,0,-1][d.side]*v)+g+f.x-(r&&o?r*c*(p?-1:1):0),e=e+l-(r&&!o?r*c*(p?1:-1):0),u&&(h=s/(a||1)%u,d.opposite&&(h=u-h-1),e+=h*(d.labelOffset/u)),m.x=t,m.y=Math.round(e),tB(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:r,index:s}),m},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,o,n,r){return void 0===n&&(n=!1),r.crispLine([["M",t,e],["L",t+(n?0:-i),e+(n?i:0)]],o)},t.prototype.handleOverflow=function(t){var e,i,o=this.axis,n=o.options.labels,r=t.x,s=o.chart.chartWidth,a=o.chart.spacing,l=tJ(o.labelLeft,Math.min(o.pos,a[3])),h=tJ(o.labelRight,Math.max(o.isRadial?0:o.pos+o.len,s-a[1])),d=this.label,c=this.rotation,p=tI(o.labelAlign||d.attr("align")),u=d.getBBox().width,f=o.getSlotWidth(this),g=f,v=1;c||"justify"!==n.overflow?c<0&&r-p*u<l?i=Math.round(r/Math.cos(c*ib)-l):c>0&&r+p*u>h&&(i=Math.round((s-r)/Math.cos(c*ib))):(r-p*u<l?g=t.x+g*(1-p)-l:r+(1-p)*u>h&&(g=h-t.x+g*p,v=-1),(g=Math.min(f,g))<f&&"center"===o.labelAlign&&(t.x+=v*(f-g-p*(f-Math.min(u,g)))),(u>g||o.autoRotation&&(null==(e=null==d?void 0:d.styles)?void 0:e.width))&&(i=g)),i&&d&&(this.shortenLabel?this.shortenLabel():d.css(tL({},{width:Math.floor(i)+"px",lineClamp:+!o.isRadial})))},t.prototype.moveLabel=function(t,e){var i,o=this,n=o.label,r=o.axis,s=!1;n&&n.textStr===t?(o.movedLabel=n,s=!0,delete o.label):tK(r.ticks,function(e){s||e.isNew||e===o||!e.label||e.label.textStr!==t||(o.movedLabel=e.label,s=!0,e.labelPos=o.movedLabel.xy,delete e.label)}),!s&&(o.labelPos||n)&&(i=o.labelPos||n.xy,o.movedLabel=o.createLabel(t,e,i),o.movedLabel&&o.movedLabel.attr({opacity:0}))},t.prototype.render=function(t,e,i){var o,n=this.axis,r=n.horiz,s=this.pos,a=tJ(this.tickmarkOffset,n.tickmarkOffset),l=this.getPosition(r,s,a,e),h=l.x,d=l.y,c=n.pos,p=c+n.len,u=r?h:d,f=tJ(i,null==(o=this.label)?void 0:o.newOpacity,1);!n.chart.polar&&(tM(u)<c||u>p)&&(i=0),null!=i||(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(l,i),this.renderLabel(l,e,f,t),this.isNew=!1,tB(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,n=o.options,r={},s=this.pos,a=this.type,l=tJ(this.tickmarkOffset,o.tickmarkOffset),h=o.chart.renderer,d=this.gridLine,c=n.gridLineWidth,p=n.gridLineColor,u=n.gridLineDashStyle;"minor"===this.type&&(c=n.minorGridLineWidth,p=n.minorGridLineColor,u=n.minorGridLineDashStyle),d||(o.chart.styledMode||(r.stroke=p,r["stroke-width"]=c||0,r.dashstyle=u),a||(r.zIndex=1),t&&(e=0),this.gridLine=d=h.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),d&&(i=o.getPlotLinePath({value:s+l,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&d[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e){var i=this.axis,o=i.options,n=i.chart.renderer,r=this.type,s=i.tickSize(r?r+"Tick":"tick"),a=t.x,l=t.y,h=tJ(o["minor"!==r?"tickWidth":"minorTickWidth"],!r&&i.isXAxis?1:0),d=o["minor"!==r?"tickColor":"minorTickColor"],c=this.mark,p=!c;s&&(i.opposite&&(s[0]=-s[0]),!c&&(this.mark=c=n.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":h})),c[p?"attr":"animate"]({d:this.getMarkPath(a,l,s[0],c.strokeWidth(),i.horiz,n),opacity:e}))},t.prototype.renderLabel=function(t,e,i,o){var n=this.axis,r=n.horiz,s=n.options,a=this.label,l=s.labels,h=l.step,d=tJ(this.tickmarkOffset,n.tickmarkOffset),c=t.x,p=t.y,u=!0;a&&tF(c)&&(a.xy=t=this.getLabelPosition(c,p,a,r,l,d,o,h),(!this.isFirst||this.isLast||s.showFirstLabel)&&(!this.isLast||this.isFirst||s.showLastLabel)?r&&!e&&0!==i&&this.handleOverflow(t):u=!1,h&&o%h&&(u=!1),u&&tF(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),ik=iy.xAxis,iw=iy.yAxis,iS=ix.registerEventOptions,iA=tp.deg2rad,iT=function(t,e){return tZ(e,void 0,void 0,tJ(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};tL(ep,{xAxis:ik,yAxis:tV(ik,iw)});var iP=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){void 0===i&&(i=this.coll);var o,n="xAxis"===i,r=this.isZAxis||(t.inverted?!n:n);this.chart=t,this.horiz=r,this.isXAxis=n,this.coll=i,tB(this,"init",{userOptions:e}),this.opposite=tJ(e.opposite,this.opposite),this.side=tJ(e.side,this.side,r?2*!this.opposite:this.opposite?1:3),this.setOptions(e);var s=this.options,a=s.labels;null!=this.type||(this.type=s.type||"linear"),null!=this.uniqueNames||(this.uniqueNames=null==(o=s.uniqueNames)||o),tB(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=tJ(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=t_(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=tA(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!=this.len||(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.max=void 0,this.min=void 0;var l=tJ(s.crosshair,t5(t.options.tooltip.crosshairs)[+!n]);this.crosshair=!0===l?{}:l,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),ei(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&!tA(this.reversed)&&(this.reversed=!0),this.labelRotation=tF(a.rotation)?a.rotation:void 0,iS(this,s),tB(this,"afterInit")},t.prototype.setOptions=function(t){var e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tV(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},ep[this.coll],t),tB(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart,n=o.numberFormatter,r=tF(this.value)?this.value:NaN,s=i.chart.time,a=i.categories,l=this.dateTimeLabelFormat,h=ep.lang,d=h.numericSymbols,c=h.numericSymbolMagnitude||1e3,p=i.logarithmic?Math.abs(r):i.tickInterval,u=null==d?void 0:d.length;if(a)e="".concat(this.value);else if(l)e=s.dateFormat(l,r,!0);else if(u&&d&&p>=1e3)for(;u--&&void 0===e;)p>=(t=Math.pow(c,u+1))&&10*r%t==0&&null!==d[u]&&0!==r&&(e=n(r/t,-1,void 0,void 0,o)+d[u]);return null!=e||(e=n(r,-1,void 0,1e4>Math.abs(r)?"":void 0,o)),e},t.prototype.getSeriesExtremes=function(){var t,e=this;tB(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(function(i){if(i.reserveSpace()){var o=i.options,n=void 0,r=o.threshold,s=void 0,a=void 0;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(r||0)&&(r=void 0),e.isXAxis)(n=i.getColumn("x")).length&&(n=e.logarithmic?n.filter(function(t){return t>0}):n,s=(t=i.getXExtremes(n)).min,a=t.max,tF(s)||s instanceof Date||(n=n.filter(tF),s=(t=i.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(tJ(e.dataMin,s),s),e.dataMax=Math.max(tJ(e.dataMax,a),a)));else{var l=i.applyExtremes();tF(l.dataMin)&&(s=l.dataMin,e.dataMin=Math.min(tJ(e.dataMin,s),s)),tF(l.dataMax)&&(a=l.dataMax,e.dataMax=Math.max(tJ(e.dataMax,a),a)),tA(r)&&(e.threshold=r),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),tB(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,n,r){var s,a=this.linkedParent||this,l=o&&a.old?a.old.min:a.min;if(!tF(l))return NaN;var h=a.minPixelPadding,d=(a.isOrdinal||(null==(s=a.brokenAxis)?void 0:s.hasBreaks)||a.logarithmic&&n)&&!!a.lin2val,c=1,p=0,u=o&&a.old?a.old.transA:a.transA,f=0;return u||(u=a.transA),i&&(c*=-1,p=a.len),a.reversed&&(c*=-1,p-=c*(a.sector||a.len)),e?(f=(t=t*c+p-h)/u+l,d&&(f=a.lin2val(f))):(d&&(t=a.val2lin(t)),f=c*(t-l)*u+p+c*h+(tF(r)?u*r:0),a.isRadial||(f=tM(f))),f},t.prototype.toPixels=function(t,e){var i,o;return this.translate(null!=(o=null==(i=this.chart)?void 0:i.time.parse(t))?o:NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){var e,i,o,n,r,s=this,a=s.chart,l=s.left,h=s.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&a.oldChartHeight||a.chartHeight,f=d&&a.oldChartWidth||a.chartWidth,g=s.transB,v=t.translatedValue,m=t.force;function y(t,e,i){return"pass"!==m&&(t<e||t>i)&&(m?t=tb(t,e,i):r=!0),t}var x={value:c,lineWidth:p,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return tB(this,"getPlotLinePath",x,function(t){e=o=(v=tb(v=tJ(v,s.translate(c,void 0,void 0,d)),-1e9,1e9))+g,i=n=u-v-g,tF(v)?s.horiz?(i=h,n=u-s.bottom+(s.options.isInternal?0:a.scrollablePixelsY||0),e=o=y(e,l,l+s.width)):(e=l,o=f-s.right+(a.scrollablePixelsX||0),i=n=y(i,h,h+s.height)):(r=!0,m=!1),t.path=r&&!m?void 0:a.renderer.crispLine([["M",e,i],["L",o,n]],p||1)}),x.path},t.prototype.getLinearTickPositions=function(t,e,i){var o,n,r,s=tM(Math.floor(e/t)*t),a=tM(Math.ceil(i/t)*t),l=[];if(tM(s+t)===s&&(r=20),this.single)return[e];for(o=s;o<=a&&(l.push(o),(o=tM(o+t,r))!==n);)n=o;return l},t.prototype.getMinorTickInterval=function(){var t=this.options,e=t.minorTicks,i=t.minorTickInterval;return!0===e?tJ(i,"auto"):!1!==e?i:void 0},t.prototype.getMinorTickPositions=function(){var t,e,i=this.options,o=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,s=(this.min||0)-r,a=(this.max||0)+r,l=(null==(t=this.brokenAxis)?void 0:t.hasBreaks)?this.brokenAxis.unitLength:a-s,h=[];if(l&&l/n<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(t,e,i){e&&h.push.apply(h,d.getLogTickPositions(n,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),s,a,i.startOfWeek));else for(e=s+(o[0]-s)%n;e<=a&&e!==h[0];e+=n)h.push(e)}return 0!==h.length&&this.trimTicks(h),h},t.prototype.adjustForMinRange=function(){var t,e,i,o,n,r,s,a=this.options,l=this.logarithmic,h=this.chart.time,d=this.max,c=this.min,p=this.minRange;this.isXAxis&&void 0===p&&!l&&(p=tA(a.min)||tA(a.max)||tA(a.floor)||tA(a.ceiling)?null:Math.min(5*(tD(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),tF(d)&&tF(c)&&tF(p)&&d-c<p&&(n=this.dataMax-this.dataMin>=p,o=(p-d+c)/2,r=[c-o,null!=(t=h.parse(a.min))?t:c-o],n&&(r[2]=l?l.log2lin(this.dataMin):this.dataMin),s=[(c=ty(r))+p,null!=(e=h.parse(a.max))?e:c+p],n&&(s[2]=l?l.log2lin(this.dataMax):this.dataMax),(d=tm(s))-c<p&&(r[0]=d-p,r[1]=null!=(i=h.parse(a.min))?i:d-p,c=ty(r))),this.minRange=p,this.min=c,this.max=d},t.prototype.getClosest=function(){var t,e;if(this.categories)e=1;else{var i=[];this.series.forEach(function(t){var o=t.closestPointRange,n=t.getColumn("x");1===n.length?i.push(n[0]):t.sorted&&tA(o)&&t.reserveSpace()&&(e=tA(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=tD([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t){var e,i=t_(this.options.categories),o=i?this.categories:this.names,n=t.options.x;return t.series.requireSorting=!1,tA(n)||(n=this.uniqueNames&&o?i?o.indexOf(t.name):tJ(o.keys[t.name],-1):t.series.autoIncrement()),-1===n?!i&&o&&(e=o.length):tF(n)&&(e=n),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e},t.prototype.updateNames=function(){var t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());var i=e.getColumn("x").slice();e.data.forEach(function(e,o){var n=i[o];(null==e?void 0:e.options)&&void 0!==e.name&&void 0!==(n=t.nameToX(e))&&n!==e.x&&(i[o]=e.x=n)}),e.dataTable.setColumn("x",i)}))},t.prototype.setAxisTranslation=function(){var t,e,i,o=this,n=o.max-o.min,r=o.linkedParent,s=!!o.categories,a=o.isXAxis,l=o.axisPointRange||0,h=0,d=0,c=o.transA;(a||s||l)&&(e=o.getClosest(),r?(h=r.minPointOffset,d=r.pointRangePadding):o.series.forEach(function(t){var i=s?1:a?tJ(t.options.pointRange,e,0):o.axisPointRange||0,n=t.options.pointPlacement;if(l=Math.max(l,i),!o.single||s){var r=t.is("xrange")?!a:a;h=Math.max(h,r&&tY(n)?0:i/2),d=Math.max(d,r&&"on"===n?0:i)}}),i=(null==(t=o.ordinal)?void 0:t.slope)&&e?o.ordinal.slope/e:1,o.minPointOffset=h*=i,o.pointRangePadding=d*=i,o.pointRange=Math.min(l,o.single&&s?1:n),a&&(o.closestPointRange=e)),o.translationSlope=o.transA=c=o.staticScale||o.len/(n+d||1),o.transB=o.horiz?o.left:o.bottom,o.minPixelPadding=c*h,tB(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return tF(t)&&tF(e)&&t-e||void 0},t.prototype.setTickInterval=function(t){var e,i,o,n,r,s,a,l,h,d=this.categories,c=this.chart,p=this.dataMax,u=this.dataMin,f=this.dateTime,g=this.isXAxis,v=this.logarithmic,m=this.options,y=this.softThreshold,x=c.time,b=tF(this.threshold)?this.threshold:void 0,M=this.minRange||0,k=m.ceiling,w=m.floor,S=m.linkedTo,A=m.softMax,T=m.softMin,P=tF(S)&&(null==(e=c[this.coll])?void 0:e[S]),C=m.tickPixelInterval,O=m.maxPadding,L=m.minPadding,E=0,B=tF(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||d||P||this.getTickAmount(),l=tJ(this.userMin,x.parse(m.min)),h=tJ(this.userMax,x.parse(m.max)),P?(this.linkedParent=P,r=P.getExtremes(),this.min=tJ(r.min,r.dataMin),this.max=tJ(r.max,r.dataMax),this.type!==P.type&&ee(11,!0,c)):(y&&tA(b)&&tF(p)&&tF(u)&&(u>=b?(s=b,L=0):p<=b&&(a=b,O=0)),this.min=tJ(l,s,u),this.max=tJ(h,a,p)),tF(this.max)&&tF(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,tJ(u,this.min))&&ee(10,!0,c),this.min=tM(v.log2lin(this.min),16),this.max=tM(v.log2lin(this.max),16)),this.range&&tF(u)&&(this.userMin=this.min=l=Math.max(u,this.minFromRange()||0),this.userMax=h=this.max,this.range=void 0)),tB(this,"foundExtremes"),this.adjustForMinRange(),tF(this.min)&&tF(this.max)){if(!tF(this.userMin)&&tF(T)&&T<this.min&&(this.min=l=T),!tF(this.userMax)&&tF(A)&&A>this.max&&(this.max=h=A),d||this.axisPointRange||(null==(i=this.stacking)?void 0:i.usePercentage)||P||(E=this.max-this.min)&&(!tA(l)&&L&&(this.min-=E*L),!tA(h)&&O&&(this.max+=E*O)),!tF(this.userMin)&&tF(w)&&(this.min=Math.max(this.min,w)),!tF(this.userMax)&&tF(k)&&(this.max=Math.min(this.max,k)),y&&tF(u)&&tF(p)){var I=b||0;!tA(l)&&this.min<I&&u>=I?this.min=m.minRange?Math.min(I,this.max-M):I:!tA(h)&&this.max>I&&p<=I&&(this.max=m.minRange?Math.max(I,this.min+M):I)}!c.polar&&this.min>this.max&&(tA(m.min)?this.max=this.min:tA(m.max)&&(this.min=this.max)),E=this.max-this.min}if(this.min!==this.max&&tF(this.min)&&tF(this.max)?P&&!B&&C===P.options.tickPixelInterval?this.tickInterval=B=P.tickInterval:this.tickInterval=tJ(B,this.tickAmount?E/Math.max(this.tickAmount-1,1):void 0,d?1:E*C/Math.max(this.len,C)):this.tickInterval=1,g&&!t){var D=this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(n=this.old)?void 0:n.max);this.series.forEach(function(t){var e;t.forceCrop=null==(e=t.forceCropping)?void 0:e.call(t),t.processData(D)}),tB(this,"postProcessData",{hasExtremesChanged:D})}this.setAxisTranslation(),tB(this,"initialAxisTranslation"),this.pointRange&&!B&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=tJ(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!B&&z&&this.tickInterval<z&&(this.tickInterval=z),f||v||B||(this.tickInterval=iT(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o,n=this.options,r=n.tickPositions,s=n.tickPositioner,a=this.getMinorTickInterval(),l=!this.isPanning,h=l&&n.startOnTick,d=l&&n.endOnTick,c=[];if(this.tickmarkOffset=this.categories&&"between"===n.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&tA(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==n.allowDecimals),r)c=r.slice();else if(tF(this.min)&&tF(this.max)){if(!(null==(t=this.ordinal)?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))c=[this.min,this.max],ee(19,!1,this.chart);else if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,null==(e=this.ordinal)?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var p=this.tickInterval,u=p;u<=2*p;)if(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount)this.tickInterval=iT(this,u*=1.1);else break;c.length>this.len&&(c=[c[0],c[c.length-1]])[0]===c[1]&&(c.length=1),s&&(this.tickPositions=c,(o=s.apply(this,[this.min,this.max,this]))&&(c=o))}this.isDirty||c.length===(null==(i=this.tickPositions)?void 0:i.length)||(this.isDirty=!0),this.tickPositions=c,this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/n.minorTicksPerMajor:a,this.paddedTicks=c.slice(0),this.trimTicks(c,h,d),!this.isLinked&&tF(this.min)&&tF(this.max)&&(this.single&&c.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),r||o||this.adjustTickAmount()),tB(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],n=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(tB(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&o!==-1/0)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=n;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&tA(o)&&!this.options.tickPositions&&t.push((n+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=e.chart,o=[this],n=e.options,r=i.options.chart,s="yAxis"===this.coll&&r.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==r.alignTicks&&n.alignTicks||s)&&!1!==n.startOnTick&&!1!==n.endOnTick&&!e.logarithmic){var l=function(t){var e=t.horiz,i=t.options;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},h=l(this);i[this.coll].forEach(function(i){var n=i.series;n.length&&n.some(function(t){return t.visible})&&i!==e&&l(i)===h&&(t=!0,o.push(i))})}if(t&&s){o.forEach(function(t){var i=t.getThresholdAlignment(e);tF(i)&&a.push(i)});var d=a.length>1?a.reduce(function(t,e){return t+e},0)/a.length:void 0;o.forEach(function(t){t.thresholdAlignment=d})}return t},t.prototype.getThresholdAlignment=function(t){if((!tF(this.dataMin)||this!==t&&this.series.some(function(t){var e;return t.isDirty||t.isDirtyData||(null==(e=t.xAxis)?void 0:e.isDirty)}))&&this.getSeriesExtremes(),tF(this.threshold)){var e=tb((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;tA(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),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t,e,i,o=this,n=o.finalTickAmt,r=o.max,s=o.min,a=o.options,l=o.tickPositions,h=o.tickAmount,d=o.thresholdAlignment,c=null==l?void 0:l.length,p=tJ(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return l.push(tM(l[l.length-1]+u))},g=function(){return l.unshift(tM(l[0]-u))};if(tF(d)&&(i=0===d?0:1===d?h-1:Math.round(tb(d*(h-1),1,h-2)),a.reversed&&(i=h-1-i)),o.hasData()&&tF(s)&&tF(r)){var v=function(){o.transA*=(c-1)/(h-1),o.min=a.startOnTick?l[0]:Math.min(s,l[0]),o.max=a.endOnTick?l[l.length-1]:Math.max(r,l[l.length-1])};if(tF(i)&&tF(o.threshold)){for(;l[i]!==p||l.length!==h||l[0]>s||l[l.length-1]<r;){for(l.length=0,l.push(o.threshold);l.length<h;)void 0===l[i]||l[i]>o.threshold?g():f();if(u>8*o.tickInterval)break;u*=2}v()}else if(c<h){for(;l.length<h;)l.length%2||s===p?f():g();v()}if(tA(n)){for(e=t=l.length;e--;)(3===n&&e%2==1||n<=2&&e>0&&e<t-1)&&l.splice(e,1);o.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i,o,n,r=this.coll,s=this.stacking,a=!1,l=!1;this.series.forEach(function(t){var e;a=a||t.isDirtyData||t.isDirty,l=l||(null==(e=t.xAxis)?void 0:e.isDirty)||!1}),this.setAxisSize();var h=this.len!==(null==(t=this.old)?void 0:t.len);h||a||l||this.isLinked||this.forceRedraw||this.userMin!==(null==(e=this.old)?void 0:e.userMin)||this.userMax!==(null==(i=this.old)?void 0:i.userMax)||this.alignToOthers()?(s&&"yAxis"===r&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&"xAxis"===r&&s.buildStacks(),this.isDirty||(this.isDirty=h||this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(n=this.old)?void 0:n.max))):s&&s.cleanStacks(),a&&delete this.allExtremes,tB(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,n){var r=this;void 0===i&&(i=!0);var s=this.chart;this.series.forEach(function(t){delete t.kdTree}),tB(this,"setExtremes",n=tL(n,{min:t=s.time.parse(t),max:e=s.time.parse(e)}),function(t){r.userMin=t.min,r.userMax=t.max,r.eventArgs=t,i&&s.redraw(o)})},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,n=this.width=Math.round(t1(tJ(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(t1(tJ(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(t1(tJ(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(t1(tJ(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-s,this.right=t.chartWidth-n-a,this.len=Math.max(o?n:r,0),this.pos=o?a:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?tM(t.lin2log(this.min)):this.min,max:t?tM(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,o=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=o:i>t?t=i:o<t&&(t=o),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=((t-90*this.side)%360+360)%360,i={align:"center"};return tB(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align},t.prototype.tickSize=function(t){var e,i=this.options,o=tJ(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),n=i["tick"===t?"tickLength":"minorTickLength"];o&&n&&("inside"===i[t+"Position"]&&(n=-n),e=[n,o]);var r={tickSize:e};return tB(this,"afterTickSize",r),r.tickSize},t.prototype.labelMetrics=function(){var t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=i.padding||0,n=this.horiz,r=this.tickInterval,s=this.len/((+!!this.categories+this.max-this.min)/r),a=i.rotation,l=tM(.8*this.labelMetrics().h),h=Math.max(this.max-this.min,0),d=function(t){var e=(t+2*o)/(s||1);return(e=e>1?Math.ceil(e):1)*r>h&&t!==1/0&&s!==1/0&&h&&(e=Math.ceil(h/r)),tM(e*r)},c=r,p=Number.MAX_VALUE;if(n){if(!i.staggerLines&&(tF(a)?e=[a]:s<i.autoRotationLimit&&(e=i.autoRotation)),e)for(var u=void 0,f=void 0,g=0,v=e;g<v.length;g++){var m=v[g];(m===a||m&&m>=-90&&m<=90)&&(f=(u=d(Math.abs(l/Math.sin(iA*m))))+Math.abs(m/360))<p&&(p=f,t=m,c=u)}}else c=d(.75*l);return this.autoRotation=e,this.labelRotation=tJ(t,tF(a)?a:0),i.step?r:c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,n=Math.max(this.tickPositions.length-!this.categories,1),r=e.margin[3];if(t&&tF(t.slotWidth))return t.slotWidth;if(i&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/n;if(!i){var s=o.style.width;if(void 0!==s)return parseInt(String(s),10);if(!this.opposite&&r)return r-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t,e=this.chart,i=e.renderer,o=this.tickPositions,n=this.ticks,r=this.options.labels,s=r.style,a=this.horiz,l=this.getSlotWidth(),h=Math.max(1,Math.round(l-(a?2*(r.padding||0):r.distance||0))),d={},c=this.labelMetrics(),p=s.lineClamp,u=null!=p?p:Math.floor(this.len/(o.length*c.h))||1,f=0;tY(r.rotation)||(d.rotation=r.rotation||0),o.forEach(function(t){var e,i=n[t];i.movedLabel&&i.replaceMovedLabel();var o=(null==(e=i.label)?void 0:e.textPxLength)||0;o>f&&(f=o)}),this.maxLabelLength=f,this.autoRotation?f>h&&f>c.h?d.rotation=this.labelRotation:this.labelRotation=0:l&&(t=h),d.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,p||(u=1)),this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(d.align=this.labelAlign),o.forEach(function(e){var i=n[e],o=null==i?void 0:i.label,r=s.width,a={};o&&(o.attr(d),i.shortenLabel?i.shortenLabel():t&&!r&&"nowrap"!==s.whiteSpace&&(t<(o.textPxLength||0)||"SPAN"===o.element.tagName)?o.css(tL(a,{width:""+t+"px",lineClamp:u})):!o.styles.width||a.width||r||o.css({width:"auto"}),i.rotation=d.rotation)},this),this.tickRotCorr=i.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&&tA(this.min)&&tA(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,n=this.opposite,r=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(tV(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||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 iM(this,t)},t.prototype.createGroups=function(){var t=this,e=this.axisParent,i=this.chart,o=this.coll,n=this.options,r=i.renderer,s=function(i,s,a){return r.g(i).attr({zIndex:a}).addClass("highcharts-".concat(o.toLowerCase()).concat(s," ")+(t.isRadial?"highcharts-radial-axis".concat(s," "):"")+(n.className||"")).add(e)};this.axisGroup||(this.gridGroup=s("grid","-grid",n.gridZIndex),this.axisGroup=s("axis","",n.zIndex),this.labelGroup=s("axis-labels","-labels",n.labels.zIndex))},t.prototype.getOffset=function(){var t,e,i,o,n=this,r=n.chart,s=n.horiz,a=n.options,l=n.side,h=n.ticks,d=n.tickPositions,c=n.coll,p=r.inverted&&!n.isZAxis?[1,0,3,2][l]:l,u=n.hasData(),f=a.title,g=a.labels,v=tF(a.crossing),m=r.axisOffset,y=r.clipOffset,x=[-1,1,1,-1][l],b=0,M=0,k=0;if(n.showAxis=t=u||a.showEmpty,n.staggerLines=n.horiz&&g.staggerLines||void 0,n.createGroups(),u||n.isLinked?(d.forEach(function(t){n.generateTick(t)}),n.renderUnsquish(),n.reserveSpaceDefault=0===l||2===l||({1:"left",3:"right"})[l]===n.labelAlign,tJ(g.reserveSpace,!v&&null,"center"===n.labelAlign||null,n.reserveSpaceDefault)&&d.forEach(function(t){k=Math.max(h[t].getLabelSize(),k)}),n.staggerLines&&(k*=n.staggerLines),n.labelOffset=k*(n.opposite?-1:1)):tK(h,function(t,e){t.destroy(),delete h[e]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(n.addTitle(t),t&&!v&&!1!==f.reserveSpace&&(n.titleOffset=b=n.axisTitle.getBBox()[s?"height":"width"],M=tA(e=f.offset)?0:tJ(f.margin,s?5:10))),n.renderLine(),n.offset=x*tJ(a.offset,m[l]?m[l]+(a.margin||0):0),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},o=0===l?-n.labelMetrics().h:2===l?n.tickRotCorr.y:0,i=Math.abs(k)+M,k&&(i-=o,i+=x*(s?tJ(g.y,n.tickRotCorr.y+x*g.distance):tJ(g.x,x*g.distance))),n.axisTitleMargin=tJ(e,i),n.getMaxLabelDimensions&&(n.maxLabelDimensions=n.getMaxLabelDimensions(h,d)),"colorAxis"!==c&&y){var w=this.tickSize("tick");m[l]=Math.max(m[l],(n.axisTitleMargin||0)+b+x*n.offset,i,(null==d?void 0:d.length)&&w?w[0]+x*n.offset:0);var S=!n.axisLine||a.offset?0:n.axisLine.strokeWidth()/2;y[p]=Math.max(y[p],S)}tB(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,n=this.horiz,r=this.left+(i?this.width:0)+o,s=e.chartHeight-this.bottom-(i?this.height:0)+o;return i&&(t*=-1),e.renderer.crispLine([["M",n?this.left:r,n?s:this.top],["L",n?e.chartWidth-this.right:r,n?s: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(t){var e=this.horiz,i=this.left,o=this.top,n=this.len,r=this.options.title,s=e?i:o,a=this.opposite,l=this.offset,h=r.x,d=r.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:s+(e?0:n),middle:s+n/2,high:s+(e?n:0)}[r.align],f=(e?o+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],g={x:e?u+h:f+(a?this.width:0)+l+h,y:e?f+d-(a?this.height:0)+l:u+d};return tB(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new iM(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o,n=this.isLinked,r=this.ticks;(!n||t>=this.min&&t<=this.max||(null==(o=this.grid)?void 0:o.isColumn))&&(r[t]||(r[t]=new iM(this,t)),i&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,n=i.logarithmic,r=o.renderer,s=i.options,a=i.isLinked,l=i.tickPositions,h=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,u=s.stackLabels,f=s.alternateGridColor,g=s.crossing,v=i.tickmarkOffset,m=i.axisLine,y=i.showAxis,x=ek(r.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){tK(t,function(t){t.isActive=!1})}),tF(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],M=[1,-1,-1,1][this.side];if(b){var k=b.toPixels(g,!0);i.horiz&&(k=b.len-k),i.offset=M*k}}if(i.hasData()||a){var w=i.chart.hasRendered&&i.old&&tF(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,w)}),l.length&&(l.forEach(function(t,e){i.renderTick(t,e,w)}),v&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new iM(i,-1,null,!0)),d[-1].render(-1))),f&&l.forEach(function(r,s){e=void 0!==l[s+1]?l[s+1]+v:i.max-v,s%2==0&&r<i.max&&e<=i.max+(o.polar?-v:v)&&(p[r]||(p[r]=new tp.PlotLineOrBand(i,{})),t=r+v,p[r].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},p[r].render(),p[r].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){var e=[],i=x.duration;tK(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),t9(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&o.hasRendered&&i?i:0)}),m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[y?"show":"hide"](y)),h&&y&&(h[h.isNew?"attr":"animate"](i.getTitlePosition(h)),h.isNew=!1),(null==u?void 0:u.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,tB(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(tB(this,"destroy",{keepEvents:t}),t||t3(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){tT(t)}),i)for(var n=i.length;n--;)i[n].destroy();for(var r in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[r]=e.plotLinesAndBandsGroups[r].destroy();tK(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var i,o,n,r,s,a,l=this,h=this.crosshair,d=null==(i=null==h?void 0:h.snap)||i,c=this.chart,p=this.cross;if(tB(this,"drawCrosshair",{e:t,point:e}),t||(t=null==(o=this.cross)?void 0:o.e),h&&!1!==(tA(e)||!d)){if(clearTimeout(this.crossShowTimer),d?tA(e)&&(r=tJ("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):r=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),tA(r)&&(a={value:e&&(this.isXAxis?e.x:tJ(e.stackY,e.y)),translatedValue:r},c.polar&&tL(a,{isCrosshair:!0,chartX:null==t?void 0:t.chartX,chartY:null==t?void 0:t.chartY,point:e}),n=this.getPlotLinePath(a)||null),!tA(n))return void this.hideCrosshair();s=this.categories&&!this.isRadial,this.crossShowTimer=t9(function(){var e=l.cross;e||(l.cross=e=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(h.className||"")).attr({zIndex:tJ(h.zIndex,2)}).add(),!c.styledMode&&(e.attr({stroke:h.color||(s?ey.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":tJ(h.width,1)}).css({"pointer-events":"none"}),h.dashStyle&&e.attr({dashstyle:h.dashStyle}))),e.show().animate({d:n},ek(null==h?void 0:h.animation)),s&&!h.width&&e.attr({"stroke-width":l.transA}),l.cross&&(l.cross.e=t)},(!p||"hidden"===p.attr("visibility"))&&h.showDelay||0)}else this.hideCrosshair();tB(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),tB(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=tV(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,tJ(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,n=o.length;n--;)o[n]&&o[n].remove(!1);tO(e.axes,this),tO(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,tJ(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.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],t}();!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if("datetime"!==this.type){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new o(this))}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,tv(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o,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]],r=n[n.length-1],s=eo[r[0]],a=r[1];for(i=0;i<n.length;i++)if(s=eo[(r=n[i])[0]],a=r[1],n[i+1]){var l=(s*a[a.length-1]+eo[n[i+1][0]])/2;if(t<=l){o=l/t;break}}s===eo.year&&t<5*s&&(a=[1,2,5]);var h=tZ(t/s,a,"year"===r[0]?Math.max(tz(t/s),1):1);return{unitRange:s,count:h,unitName:r[0],match:o}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=o}(j||(j={}));var iC=j;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:null!=this.logarithmic||(this.logarithmic=new o(this))}function i(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),tv(t,"afterSetType",e),tv(t,"afterInit",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,o){var n=this.axis,r=n.len,s=n.options,a=[];if(o||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=n.getLinearTickPositions(t,e,i);else if(t>=.08){var l=Math.floor(e),h=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0,g=void 0;for(h=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=l;d<i+1&&!g;d++)for(c=0,p=h.length;c<p&&!g;c++)(u=this.log2lin(this.lin2log(d)*h[c]))>e&&(!o||f<=i)&&void 0!==f&&a.push(f),f>i&&(g=!0),f=u}else{var v=this.lin2log(e),m=this.lin2log(i),y=o?n.getMinorTickInterval():s.tickInterval,x=s.tickPixelInterval/(o?5:1),b=o?r/n.tickPositions.length:r;t=tZ(t=tJ("auto"===y?null:y,this.minorAutoInterval,(m-v)*x/(b||1))),a=n.getLinearTickPositions(t,v,m).map(this.log2lin),o||(this.minorAutoInterval=t/5)}return o||(n.tickInterval=t),a},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=o}(U||(U={}));var iO=U;!function(t){var e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){var o=this,n=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),i){var s=n[i]||[];s.push(t),n[i]=s}this.plotLinesAndBands.push(r)}return r}function n(t){return this.addPlotBandOrLine(t,"plotLines")}function r(t,e,i){i=i||this.options;var o,n,r=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],a=this.horiz,l=!tF(this.min)||!tF(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(h&&r)for(l&&(n=h.toString()===r.toString(),d=0),o=0;o<h.length;o+=2){var c=h[o],p=h[o+1],u=r[o],f=r[o+1];("M"===c[0]||"L"===c[0])&&("M"===p[0]||"L"===p[0])&&("M"===u[0]||"L"===u[0])&&("M"===f[0]||"L"===f[0])&&(a&&u[1]===c[1]?(u[1]+=d,f[1]+=d):a||u[2]!==c[2]||(u[2]+=d,f[2]+=d),s.push(["M",c[1],c[2]],["L",p[1],p[2]],["L",f[1],f[2]],["L",u[1],u[2]],["Z"])),s.isFlat=n}return s}function s(t){this.removePlotBandOrLine(t)}function a(t){var e=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(e){for(var n=e.length;n--;)e[n].id===t&&e[n].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){var i;for(n=e.length;n--;)(null==(i=e[n])?void 0:i.id)===t&&tO(e,e[n])})}}function l(t){this.removePlotBandOrLine(t)}t.compose=function(t,h){var d=h.prototype;return d.addPlotBand||(e=t,tL(d,{addPlotBand:i,addPlotLine:n,addPlotBandOrLine:o,getPlotBandPath:r,removePlotBand:s,removePlotLine:l,removePlotBandOrLine:a})),h}}(V||(V={}));var iL=V,iE=function(){return(iE=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},iB=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return tv(e,"afterInit",function(){var t=this;this.labelCollectors.push(function(){for(var e,i=[],o=0,n=t.axes;o<n.length;o++)for(var r=n[o],s=0,a=r.plotLinesAndBands;s<a.length;s++){var l=a[s],h=l.label,d=l.options;!h||(null==(e=null==d?void 0:d.label)?void 0:e.allowOverlap)||i.push(h)}return i})}),iL.compose(t,i)},t.prototype.render=function(){var t=this;tB(this,"render");var e,i,o,n,r=this.axis,s=this.options,a=r.horiz,l=r.logarithmic,h=s.color,d=s.events,c=s.zIndex,p=void 0===c?0:c,u=r.chart,f=u.renderer,g=u.time,v={},m=g.parse(s.to),y=g.parse(s.from),x=g.parse(s.value),b=s.borderWidth,M=s.label,k=this.label,w=this.svgElem,S=[],A=tA(y)&&tA(m),T=tA(x),P=!w,C={class:"highcharts-plot-"+(A?"band ":"line ")+(s.className||"")},O=A?"bands":"lines";if(!r.chart.styledMode&&(T?(C.stroke=h||"#999999",C["stroke-width"]=tJ(s.width,1),s.dashStyle&&(C.dashstyle=s.dashStyle)):A&&(C.fill=h||"#e6e9ff",b&&(C.stroke=s.borderColor,C["stroke-width"]=b))),v.zIndex=p,O+="-"+p,(n=r.plotLinesAndBandsGroups[O])||(r.plotLinesAndBandsGroups[O]=n=f.g("plot-"+O).attr(v).add()),w||(this.svgElem=w=f.path().attr(C).add(n)),tA(x))S=r.getPlotLinePath({value:null!=(e=null==l?void 0:l.log2lin(x))?e:x,lineWidth:w.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(tA(y)&&tA(m)))return;S=r.getPlotBandPath(null!=(i=null==l?void 0:l.log2lin(y))?i:y,null!=(o=null==l?void 0:l.log2lin(m))?o:m,s)}return!this.eventsAdded&&d&&(tK(d,function(e,i){null==w||w.on(i,function(e){d[i].apply(t,[e,t])})}),this.eventsAdded=!0),(P||!w.d)&&(null==S?void 0:S.length)?w.attr({d:S}):w&&(S?(w.show(),w.animate({d:S})):w.d&&(w.hide(),k&&(this.label=k=k.destroy()))),M&&(tA(M.text)||tA(M.formatter))&&(null==S?void 0:S.length)&&r.width>0&&r.height>0&&!S.isFlat?(M=tV(iE({align:a&&A?"center":void 0,x:a?!A&&4:10,verticalAlign:!a&&A?"middle":void 0,y:a?A?16:10:A?6:-4,rotation:a&&!A?90:0},A?{inside:!0}:{}),M),this.renderLabel(M,S,A,p)):k&&k.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var n,r,s,a=this.axis,l=a.chart.renderer,h=t.inside,d=this.label;d||(this.label=d=l.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}),a.chart.styledMode||d.css(tV({color:null==(r=null==(n=a.chart.options.title)?void 0:n.style)?void 0:r.color,fontSize:"0.8em",textOverflow:i&&!h?"":"ellipsis"},t.style)),d.add());var c=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],p=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],u=tm(c),f=tm(p),g=ty(c)-u;d.align(t,!1,{x:u,y:f,width:g,height:ty(p)-f}),d.alignAttr.y-=l.fontMetrics(d).b,(!d.alignValue||"left"===d.alignValue||tA(h))&&d.css({width:((null==(s=t.style)?void 0:s.width)||(i&&h?g:90===d.rotation?a.height-(d.alignAttr.y-a.top):(t.clip?a.width+a.left:a.chart.chartWidth)-d.alignAttr.x))+"px"}),d.show(!0)},t.prototype.getLabelText=function(t){return tA(t.formatter)?t.formatter.call(this,this):t.text},t.prototype.destroy=function(){tO(this.axis.plotLinesAndBands,this),delete this.axis,tT(this)},t}(),iI=eW.format,iD=tp.composed,iz=tp.dateFormats,iR=tp.doc,iN=tp.isSafari,iW=eX.distribute,iG=function(t){clearTimeout(t.hideTimer),clearTimeout(t.showTimer)},iX=function(){function t(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}return t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"",t)})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=null==e?void 0:e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e,i=this.points||t5(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),tP(this.container)),tG(this.hideTimer),iG(this)},t.prototype.getAnchor=function(t,e){var i,o,n=this.chart,r=this.pointer,s=n.inverted,a=n.plotTop,l=n.plotLeft;if((null==(i=(t=t5(t))[0].series)?void 0:i.yAxis)&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=r.normalize(e)),o=[e.chartX-l,e.chartY-a];else if(t[0].tooltipPos)o=t[0].tooltipPos;else{var h=0,d=0;t.forEach(function(t){var e=t.pos(!0);e&&(h+=e[0],d+=e[1])}),h/=t.length,d/=t.length,this.shared&&t.length>1&&e&&(s?h=e.chartX:d=e.chartY),o=[h-l,d-a]}var c={point:t[0],ret:o};return tB(this,"getAnchor",c),c.ret.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=this.options,n=t.series,r=n.options;return[o.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+tJ(t.colorIndex,n.colorIndex),null==r?void 0:r.className].filter(tY).join(" ")},t.prototype.getLabel=function(t){var e,i=void 0===t?{anchorX:0,anchorY:0}:t,o=i.anchorX,n=i.anchorY,r=this,s=this.chart.styledMode,a=this.options,l=this.split&&this.allowShared,h=this.container,d=this.chart.renderer;if(this.label){var c=!this.label.hasClass("highcharts-label");(!l&&c||l&&!c)&&this.destroy()}if(!this.label){if(this.outside){var p=this.chart,u=p.options.chart.style,f=eG.getRendererType();this.container=h=tp.doc.createElement("div"),h.className="highcharts-tooltip-container "+(p.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),tS(h,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((null==u?void 0:u.zIndex)||0)+3)}),this.renderer=d=new f(h,0,0,u,void 0,void 0,d.styledMode)}if(l?this.label=d.g("tooltip"):(this.label=d.label("",o,n,a.shape||"callout",void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),s||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth||0}).css(a.style).css({pointerEvents:a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),r.outside){var g=this.label;[g.xSetter,g.ySetter].forEach(function(t,e){g[e?"ySetter":"xSetter"]=function(i){t.call(g,r.distance),g[e?"y":"x"]=i,h&&(h.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(null!=(e=a.shadow)?e:!a.fixed).add()}return h&&!h.parentElement&&tp.doc.body.appendChild(h),this.label},t.prototype.getPlayingField=function(){var t=iR.body,e=iR.documentElement,i=this.chart,o=this.distance,n=this.outside;return{width:n?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*o-2:i.chartWidth,height:n?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}},t.prototype.getPosition=function(t,e,i){var o,n,r,s=this.distance,a=this.chart,l=this.outside,h=this.pointer,d=a.inverted,c=a.plotLeft,p=a.plotTop,u=a.polar,f=i.plotX,g=void 0===f?0:f,v=i.plotY,m=void 0===v?0:v,y={},x=d&&i.h||0,b=this.getPlayingField(),M=b.height,k=b.width,w=h.getChartPosition(),S=function(t){return t*w.scaleX},A=function(t){return t*w.scaleY},T=function(i){var o="x"===i;return[i,o?k:M,o?t:e].concat(l?[o?S(t):A(e),o?w.left-s+S(g+c):w.top-s+A(m+p),0,o?k:M]:[o?t:e,o?g+c:m+p,o?c:p,o?c+a.plotWidth:p+a.plotHeight])},P=T("y"),C=T("x"),O=!!i.negative;!u&&(null==(n=null==(o=a.hoverSeries)?void 0:o.yAxis)?void 0:n.reversed)&&(O=!O);var L=!this.followPointer&&tJ(i.ttBelow,!u&&!d===O),E=function(t,e,i,o,n,r,a){var h=l?"y"===t?A(s):S(s):s,d=(i-o)/2,c=o<n-s,p=n+s+o<e,u=n-h-i+d,f=n+h-d;if(L&&p)y[t]=f;else if(!L&&c)y[t]=u;else if(c)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return y[t]=0,!1;y[t]=Math.max(r,f+x+i>e?f:f+x)}},B=function(t,e,i,o,n){if(n<s||n>e-s)return!1;n<i/2?y[t]=1:n>e-o/2?y[t]=e-o-2:y[t]=n-i/2},I=function(t){var e;P=(e=[C,P])[0],C=e[1],r=t},D=function(){!1!==E.apply(0,P)?!1!==B.apply(0,C)||r||(I(!0),D()):r?y.x=y.y=0:(I(!0),D())};return(d&&!u||this.len>1)&&I(),D(),l&&(y.x-=w.left,y.y-=w.top),y},t.prototype.getFixedPosition=function(t,e,i){var o,n=i.series,r=this.chart,s=this.options,a=this.split,l=s.position,h=l.relativeTo,d=s.shared||(null==(o=null==n?void 0:n.yAxis)?void 0:o.isRadial)&&("pane"===h||!h)?"plotBox":h,c="chart"===d?r.renderer:r[d]||r.getClipBox(n,!0);return{x:c.x+(c.width-t)*tI(l.align)+l.x,y:c.y+(c.height-e)*tI(l.verticalAlign)+(!a&&l.y||0)}},t.prototype.hide=function(t){var e=this;iG(this),t=tJ(t,this.options.hideDelay),this.isHidden||(this.hideTimer=t9(function(){var i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:function(){i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=tJ(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))},t.prototype.move=function(t,e,i,o){var n=this,r=this.followPointer,s=this.options,a=ek(!r&&!this.isHidden&&!s.fixed&&s.animation),l=r||(this.len||0)>1,h={x:t,y:e};l?h.anchorX=h.anchorY=NaN:(h.anchorX=i,h.anchorY=o),a.step=function(){return n.drawTracker()},this.getLabel().animate(h,a)},t.prototype.refresh=function(t,e){var i=this,o=this,n=this.chart,r=this.options,s=this.pointer,a=this.shared,l=t5(t),h=l[0],d=r.format,c=r.formatter||o.defaultFormatter,p=n.styledMode,u=o.allowShared;if(r.enabled&&h.series){iG(this),o.allowShared=!(!t_(t)&&t.series&&t.series.noSharedTooltip),u=u&&!o.allowShared,o.followPointer=!o.split&&h.series.tooltipOptions.followPointer;var f=o.getAnchor(t,e),g=f[0],v=f[1];a&&o.allowShared&&(s.applyInactiveState(l),l.forEach(function(t){return t.setState("hover")}),h.points=l),this.len=l.length;var m=tY(d)?iI(d,h,n):c.call(h,o,h);h.points=void 0;var y=h.series;this.distance=tJ(y.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=t9(function(){if(o.split&&o.allowShared)o.renderSplit(m,l);else{var t=g,a=v;if(e&&s.isDirectTouch&&(t=e.chartX-n.plotLeft,a=e.chartY-n.plotTop),!(n.polar||!1===y.options.clip||l.some(function(e){return s.isDirectTouch||e.series.shouldShowTooltip(t,a)})))return void o.hide();var d=o.getLabel(u&&o.tt||{});(!r.style.width||p)&&d.css({width:(i.outside?i.getPlayingField():n.spacingBox).width-2*r.padding+"px"}),d.attr({class:o.getClassName(h),text:t_(m)?m.join(""):m}),i.outside&&d.attr({x:tb(d.x||0,0,i.getPlayingField().width-(d.width||0)-1)}),p||d.attr({stroke:r.borderColor||h.color||y.color||"#666666"}),o.updatePosition({plotX:g,plotY:v,negative:h.negative,ttBelow:h.ttBelow,series:y,h:f[2]||0})}o.isHidden&&o.label&&o.label.attr({opacity:1}).show(),o.isHidden=!1},o.isHidden&&r.showDelay||0),tB(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o,n=this,r=this,s=r.chart,a=r.chart,l=a.chartWidth,h=a.chartHeight,d=a.plotHeight,c=a.plotLeft,p=a.plotTop,u=a.scrollablePixelsY,f=a.scrollablePixelsX,g=a.styledMode,v=r.distance,m=r.options,y=r.options,x=y.fixed,b=y.position,M=y.positioner,k=r.pointer,w=(null==(i=s.scrollablePlotArea)?void 0:i.scrollingContainer)||{},S=w.scrollLeft,A=void 0===S?0:S,T=w.scrollTop,P=void 0===T?0:T,C=r.outside&&"number"!=typeof f?iR.documentElement.getBoundingClientRect():{left:A,right:A+l,top:P,bottom:P+h},O=r.getLabel(),L=this.renderer||s.renderer,E=!!(null==(o=s.xAxis[0])?void 0:o.opposite),B=k.getChartPosition(),I=B.left,D=B.top,z=M||x,R=p+P,N=0,W=d-(void 0===u?0:u),G=function(t,e,i,o,n,s){if(void 0===n&&(n=[0,0]),void 0===s&&(s=!0),i.isHeader)l=E?0:W,a=tb(n[0]-t/2,C.left,C.right-t-(r.outside?I:0));else if(x&&i){var a,l,h=r.getFixedPosition(t,e,i);a=h.x,l=h.y-R}else l=n[1]-R,a=tb(a=s?n[0]-t-v:n[0]+v,s?a:C.left,C.right);return{x:a,y:l}};tY(t)&&(t=[!1,t]);var X=t.slice(0,e.length+1).reduce(function(t,i,o){if(!1!==i&&""!==i){var n=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}},s=n.isHeader,a=s?r:n.series,l=a.tt=function(t,e,i){var o,n=t,s=e.isHeader,a=e.series,l=a.tooltipOptions||m;if(!n){var h={padding:l.padding,r:l.borderRadius};g||(h.fill=l.backgroundColor,h["stroke-width"]=null!=(o=l.borderWidth)?o:x&&!s?0:1),n=L.label("",0,0,l[s?"headerShape":"shape"]||(x&&!s?"rect":"callout"),void 0,void 0,l.useHTML).addClass(r.getClassName(e,!0,s)).attr(h).add(O)}return n.isActive=!0,n.attr({text:i}),g||n.css(l.style).attr({stroke:l.borderColor||e.color||a.color||"#333333"}),n}(a.tt,n,i.toString()),h=l.getBBox(),u=h.width+l.strokeWidth();s&&(N=h.height,W+=N,E&&(R-=N));var f=function(t){var e,i,o=t.isHeader,n=t.plotX,r=void 0===n?0:n,s=t.plotY,a=void 0===s?0:s,l=t.series;if(o)e=Math.max(c+r,c),i=p+d/2;else{var h=l.xAxis,u=l.yAxis;e=h.pos+tb(r,-v,h.len+v),l.shouldShowTooltip(0,u.pos-p+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=tb(e,C.left-v,C.right+v),anchorY:i}}(n),y=f.anchorX,b=f.anchorY;if("number"==typeof b){var k=h.height+1,w=(M||G).call(r,u,k,n,r,[y,b]);t.push({align:z?0:void 0,anchorX:y,anchorY:b,boxWidth:u,point:n,rank:tJ(w.rank,+!!s),size:k,target:w.y,tt:l,x:w.x})}else l.isActive=!1}return t},[]);!z&&X.some(function(t){var e=(r.outside?I:0)+t.anchorX;return e<C.left&&e+t.boxWidth<C.right||e<I-C.left+t.boxWidth&&C.right-e>e})&&(X=X.map(function(t){var e=G.call(n,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1),i=e.x;return tL(t,{target:e.y,x:i})})),r.cleanSplit(),iW(X,W);var H={left:I,right:I};X.forEach(function(t){var e=t.x,i=t.boxWidth,o=t.isHeader;!o&&(r.outside&&I+e<H.left&&(H.left=I+e),!o&&r.outside&&H.left+i>H.right&&(H.right=I+e))}),X.forEach(function(t){var e=t.x,i=t.anchorX,o=t.anchorY,n=t.pos,s=t.point.isHeader,a={visibility:void 0===n?"hidden":"inherit",x:e,y:(n||0)+R+(x&&b.y||0),anchorX:i,anchorY:o};if(r.outside&&e<i){var l=I-H.left;l>0&&(s||(a.x=e+l,a.anchorX=i+l),s&&(a.x=(H.right-H.left)/2,a.anchorX=i+l))}t.tt.attr(a)});var F=r.container,Y=r.outside,_=r.renderer;if(Y&&F&&_){var j=O.getBBox(),U=j.width,V=j.height,Z=j.x,K=j.y;_.setSize(U+Z,V+K,!1),F.style.left=H.left+"px",F.style.top=D+"px"}iN&&O.attr({opacity:1===O.opacity?.999:1})},t.prototype.drawTracker=function(){var t=this;if(!this.shouldStickOnContact()){t.tracker&&(t.tracker=t.tracker.destroy());return}var e=t.chart,i=t.label,o=t.shared?e.hoverPoints:e.hoverPoint;if(i&&o){var n={x:0,y:0,width:0,height:0},r=this.getAnchor(o),s=i.getBBox();r[0]+=e.plotLeft-(i.translateX||0),r[1]+=e.plotTop-(i.translateY||0),n.x=Math.min(0,r[0]),n.y=Math.min(0,r[1]),n.width=r[0]<0?Math.max(Math.abs(r[0]),s.width-r[0]):Math.max(Math.abs(r[0]),s.width),n.height=r[1]<0?Math.max(Math.abs(r[1]),s.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),s.height),t.tracker?t.tracker.attr(n):(t.tracker=i.renderer.rect(n).addClass("highcharts-tracker").add(i),tv(t.tracker.element,"mouseenter",function(){return iG(t)}),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}))}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.headerFooterFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,n=i.xAxis,r=null==n?void 0:n.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",l=o[e?"footerFormat":"headerFormat"];return tB(this,"headerFormatter",s,function(e){if(r&&!a&&tF(t.key)&&(a=r.getXDateFormat(t.key,o.dateTimeLabelFormats)),r&&a){if(tU(a)){var n=a;iz[0]=function(t){return i.chart.time.dateFormat(n,t)},a="%0"}(t.tooltipDateKeys||["key"]).forEach(function(t){l=l.replace(RegExp("point\\."+t+"([ \\)}])"),"(point.".concat(t,":").concat(a,")$1"))})}i.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=iI(l,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,tV(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i,o=this.chart,n=this.container,r=this.distance,s=this.options,a=this.pointer,l=this.renderer,h=this.getLabel(),d=h.height,c=void 0===d?0:d,p=h.width,u=void 0===p?0:p,f=s.fixed,g=s.positioner,v=a.getChartPosition(),m=v.left,y=v.top,x=v.scaleX,b=v.scaleY,M=(g||f&&this.getFixedPosition||this.getPosition).call(this,u,c,t,this),k=tp.doc,w=(t.plotX||0)+o.plotLeft,S=(t.plotY||0)+o.plotTop;if(l&&n){var A=(null==(e=o.scrollablePlotArea)?void 0:e.scrollingContainer)||{},T=A.scrollLeft,P=A.scrollTop;M.x+=(void 0===T?0:T)+m,M.y+=(void 0===P?0:P)+y,i=(s.borderWidth||0)+2*r+2,l.setSize(tb(u+i,0,k.documentElement.clientWidth)-1,c+i,!1),(1!==x||1!==b)&&(tS(n,{transform:"scale(".concat(x,", ").concat(b,")")}),w*=x,S*=b),w+=m-M.x,S+=y-M.y}this.move(Math.round(M.x),Math.round(M.y||0),w,S)},t}();(f=iX||(iX={})).compose=function(t){t0(iD,"Core.Tooltip")&&tv(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new f(t,t.options.tooltip,this))})};var iH=iX,iF=eW.format,iY=function(){function t(t,e,i){var o,n,r,s;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!=this.id||(this.id=en()),this.resolveColor(),null!=this.dataLabelOnNull||(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=null!=(r=null==(n=null==(o=t.xAxis)?void 0:o.categories)?void 0:n[this.x])?r:this.x,this.key=null!=(s=this.name)?s:this.category,tB(this,"afterInit")}return t.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(tL({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},t.prototype.applyOptions=function(e,i){var o=this.series,n=o.options.pointValKey||o.pointValKey;return tL(this,e=t.prototype.optionsToObject.call(this,e)),this.options?this.options=o.chart.options.chart.allowMutatingData?tL(this.options,e):tV(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,n&&(this.y=t.prototype.getNestedProperty.call(this,n)),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=null!=i?i:o.autoIncrement():tF(e.x)&&o.options.relativeXValue?this.x=o.autoIncrement(e.x):"string"==typeof this.x&&(null!=i||(i=o.chart.time.parse(this.x)),tF(i)&&(this.x=i)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this},t.prototype.destroy=function(){if(!this.destroyed){var t=this,e=t.series,i=e.chart,o=e.options.dataSorting,n=i.hoverPoints,r=ek(t.series.chart.renderer.globalAnimation),s=function(){for(var e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(t3(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),n&&(t.setState(),tO(n,t),n.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),(null==o?void 0:o.enabled)?(this.animateBeforeDestroy(),t9(s,r.duration)):s(),i.pointCount--}this.destroyed=!0},t.prototype.destroyElements=function(t){var e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){(null==t?void 0:t.element)&&t.destroy()}),delete e[t]})},t.prototype.firePointEvent=function(t,e,i){var o=this,n=this.series.options;o.manageEvent(t),"click"===t&&n.allowPointSelect&&(i=function(t){!o.destroyed&&o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),tB(o,t,e,i)},t.prototype.getClassName=function(){var t;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(t=this.zone)?void 0:t.className)?" "+this.zone.className.replace("highcharts-negative",""):"")},t.prototype.getGraphicalProps=function(t){var e,i,o=this,n=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","connector"),t.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper"),i=n.length;i--;)o[e=n[i]]&&r.singular.push(e);return["graphic","dataLabel"].forEach(function(e){var i=e+"s";t[e]&&o[i]&&r.plural.push(i)}),r},t.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?tR(t,this.options):this[t]},t.prototype.getZone=function(){var t,e=this.series,i=e.zones,o=e.zoneAxis||"y",n=0;for(t=i[0];this[o]>=t.value;)t=i[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==t?void 0:t.color)&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.isValid=function(){return(tF(this.x)||this.x instanceof Date)&&tF(this.y)},t.prototype.optionsToObject=function(e){var i,o,n=this.series,r=n.options.keys,s=r||n.pointArrayMap||["y"],a=s.length,l={},h=0,d=0;if(tF(e)||null===e)l[s[0]]=e;else if(t_(e))for(!r&&e.length>a&&("string"==(o=typeof e[0])?(null==(i=n.xAxis)?void 0:i.dateTime)?l.x=n.chart.time.parse(e[0]):l.name=e[0]:"number"===o&&(l.x=e[0]),h++);d<a;)r&&void 0===e[h]||(s[d].indexOf(".")>0?t.prototype.setNestedProperty(l,e[h],s[d]):l[s[d]]=e[h]),h++,d++;else"object"==typeof e&&(l=e,e.dataLabels&&(n.hasDataLabels=function(){return!0}),e.marker&&(n._hasPointMarkers=!0));return l},t.prototype.pos=function(t,e){if(void 0===e&&(e=this.plotY),!this.destroyed){var i=this.plotX,o=this.series,n=o.chart,r=o.xAxis,s=o.yAxis,a=0,l=0;if(tF(i)&&tF(e))return t&&(a=r?r.pos:n.plotLeft,l=s?s.pos:n.plotTop),n.inverted&&r&&s?[s.len-e+l,r.len-i+a]:[i+a,e+l]}},t.prototype.resolveColor=function(){var t,e,i,o=this.series,n=o.chart.options.chart,r=o.chart.styledMode,s=n.colorCount;delete this.nonZonedColor,o.options.colorByPoint?(r||(t=(e=o.options.colors||o.chart.options.colors)[o.colorCounter],s=e.length),i=o.colorCounter,o.colorCounter++,o.colorCounter===s&&(o.colorCounter=0)):(r||(t=o.color),i=o.colorIndex),this.colorIndex=tJ(this.options.colorIndex,i),this.color=tJ(this.options.color,t)},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,n){var r=n.length-1===o;return t[i]=r?e:tU(t[i],!0)?t[i]:{},t[i]},t),t},t.prototype.shouldDraw=function(){return!this.isNull},t.prototype.tooltipFormatter=function(t){var e,i=this.series,o=i.chart,n=i.pointArrayMap,r=i.tooltipOptions,s=r.valueDecimals,a=void 0===s?"":s,l=r.valuePrefix,h=void 0===l?"":l,d=r.valueSuffix,c=void 0===d?"":d;return o.styledMode&&(t=(null==(e=o.tooltip)?void 0:e.styledModeFormat(t))||t),(void 0===n?["y"]:n).forEach(function(e){e="{point."+e,(h||c)&&(t=t.replace(RegExp(e+"}","g"),h+e+"}"+c)),t=t.replace(RegExp(e+"}","g"),e+":,."+a+"f}")}),iF(t,this,o)},t.prototype.update=function(t,e,i,o){var n,r=this,s=r.series,a=r.graphic,l=s.chart,h=s.options,d=h.data;function c(){r.applyOptions(t);var o=a&&r.hasMockGraphic,c=null===r.y?!o:o;a&&c&&(r.graphic=a.destroy(),delete r.hasMockGraphic),tU(t,!0)&&((null==a?void 0:a.element)&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=a.destroy()),(null==t?void 0:t.dataLabels)&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy())),n=r.index;for(var p={},u=0,f=s.dataColumnKeys();u<f.length;u++){var g=f[u];p[g]=r[g]}s.dataTable.setRow(p,n),d&&!s.processedData&&(d[n]=tU(d[n],!0)||tU(t,!0)?r.options:null!=t?t:d[n]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===h.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=tJ(e,!0),!1===o?c():r.firePointEvent("update",{options:t},c)},t.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},t.prototype.select=function(t,e){var i=this,o=i.series,n=o.chart;t=tJ(t,!i.selected),this.selectedStaging=t,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||n.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.inverted,o=e.pointer;o&&(t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i),o.runPointActions(t,this))},t.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},t.prototype.manageEvent=function(t){var e,i,o,n,r,s,a,l=null==(e=tV(this.series.options.point,this.options).events)?void 0:e[t];!tj(l)||(null==(i=this.hcEvents)?void 0:i[t])&&(null==(n=null==(o=this.hcEvents)?void 0:o[t])?void 0:n.map(function(t){return t.fn}).indexOf(l))!==-1?this.importedUserEvent&&!l&&(null==(s=this.hcEvents)?void 0:s[t])&&(null==(a=this.hcEvents)?void 0:a[t].userEvent)&&(t3(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(r=this.importedUserEvent)||r.call(this),this.importedUserEvent=tv(this,t,l),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,n,r,s,a,l=this.series,h=this.state,d=l.options.states[t||"normal"]||{},c=ep.plotOptions[l.type].marker&&l.options.marker,p=c&&!1===c.enabled,u=(null==(i=null==c?void 0:c.states)?void 0:i[t||"normal"])||{},f=!1===u.enabled,g=this.marker||{},v=l.chart,m=c&&l.markerAttribs,y=l.halo,x=l.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==d.enabled&&(!t||!f&&(!p||!1!==u.enabled))&&(!t||!g.states||!g.states[t]||!1!==g.states[t].enabled)){if(this.state=t,m&&(n=l.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(h&&this.graphic.removeClass("highcharts-point-"+h),t&&this.graphic.addClass("highcharts-point-"+t),!v.styledMode){r=l.pointAttribs(this,t),s=tJ(v.options.chart.animation,d.animation);var b=r.opacity;l.options.inactiveOtherPoints&&tF(b)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:b},s),t.connector&&t.connector.animate({opacity:b},s))}),this.graphic.animate(r,s)}n&&this.graphic.animate(n,tJ(v.options.chart.animation,u.animation,c.animation)),x&&x.hide()}else t&&u&&(a=g.symbol||l.symbol,x&&x.currentSymbol!==a&&(x=x.destroy()),n&&(x?x[e?"animate":"attr"]({x:n.x,y:n.y}):a&&(l.stateMarkerGraphic=x=v.renderer.symbol(a,n.x,n.y,n.width,n.height,tV(c,u)).add(l.markerGroup),x.currentSymbol=a)),!v.styledMode&&x&&"inactive"!==this.state&&x.attr(l.pointAttribs(this,t))),x&&(x[t&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));var M=d.halo,k=this.graphic||x,w=(null==k?void 0:k.visibility)||"inherit";(null==M?void 0:M.size)&&k&&"hidden"!==w&&!this.isCluster?(y||(l.halo=y=v.renderer.path().add(k.parentGroup)),y.show()[e?"animate":"attr"]({d:this.haloPath(M.size)}),y.attr({class:"highcharts-halo highcharts-color-"+tJ(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:w,zIndex:-1}),y.point=this,v.styledMode||y.attr(tL({fill:this.color||l.color,"fill-opacity":M.opacity},eE.filterUserAttributes(M.attributes||{})))):(null==(o=null==y?void 0:y.point)?void 0:o.haloPath)&&!y.point.destroyed&&y.animate({d:y.point.haloPath(0)},null,y.hide),tB(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(tw(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),i_=function(){return(i_=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},ij=ey.parse,iU=tp.charts,iV=tp.composed,iZ=tp.isTouchDevice,iK=function(t,e){return!tA(e)||t[""+e+"Key"]},iq=function(){function t(t,e){var i;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!(null==(i=e.chart.events)?void 0:i.click),this.pinchDown=[],this.setDOMEvents(),tB(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i,o=this;void 0===t&&(t=[]);var n=[];t.forEach(function(t){var e=t.series;n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&n.push.apply(n,e.linkedSeries),e.navigatorSeries&&n.push(e.navigatorSeries),e.boosted&&e.markerGroup&&n.push.apply(n,o.chart.series.filter(function(t){return t.markerGroup===e.markerGroup}))});for(var r=0,s=this.chart.series;r<s.length;r++){var a=s[r],l=a.options;(null==(i=null==(e=l.states)?void 0:e.inactive)?void 0:i.enabled)!==!1&&(-1===n.indexOf(a)?a.setState("inactive",!0):l.inactiveOtherPoints&&a.setAllPointsToState("inactive"))}},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!tp.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),tK(e,function(t,i){e[i]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return tB(this,"getSelectionMarkerAttrs",o,function(o){var n,r=i.chart,s=i.zoomHor,a=i.zoomVert,l=r.mouseDownX,h=void 0===l?0:l,d=r.mouseDownY,c=void 0===d?0:d,p=o.attrs;p.x=r.plotLeft,p.y=r.plotTop,p.width=s?1:r.plotWidth,p.height=a?1:r.plotHeight,s&&(p.width=Math.max(1,Math.abs(n=t-h)),p.x=(n>0?0:n)+h),a&&(p.height=Math.max(1,Math.abs(n=e-c)),p.y=(n>0?0:n)+c)}),o},t.prototype.drag=function(t){var e,i=this.chart,o=i.mouseDownX,n=void 0===o?0:o,r=i.mouseDownY,s=void 0===r?0:r,a=i.options.chart,l=a.panning,h=a.panKey,d=a.selectionMarkerFill,c=i.plotLeft,p=i.plotTop,u=i.plotWidth,f=i.plotHeight,g=tU(l)?l.enabled:l,v=h&&t[""+h+"Key"],m=t.chartX,y=t.chartY,x=this.selectionMarker;if((!x||!x.touch)&&(m<c?m=c:m>c+u&&(m=c+u),y<p?y=p:y>p+f&&(y=p+f),this.hasDragged=Math.sqrt(Math.pow(n-m,2)+Math.pow(s-y,2)),this.hasDragged>10)){e=i.isInsidePlot(n-c,s-p,{visiblePlotOnly:!0});var b=this.getSelectionMarkerAttrs(m,y),M=b.shapeType,k=b.attrs;this.hasZoom&&e&&!v&&!x&&(this.selectionMarker=x=i.renderer[M](),x.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||x.attr({fill:d||ij("#334eff").setOpacity(.25).get()})),x&&x.attr(k),e&&!x&&g&&iK(t,h)&&i.pan(t,l)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:t.getBBox()};return tB(this,"getSelectionBox",e),e.result},t.prototype.drop=function(t){for(var e,i=this,o=this.chart,n=this.selectionMarker,r=0,s=o.axes;r<s.length;r++){var a=s[r];a.isPanning&&(a.isPanning=!1,(a.options.startOnTick||a.options.endOnTick||a.series.some(function(t){return t.boosted}))&&(a.forceRedraw=!0,a.setExtremes(a.userMin,a.userMax,!1),e=!0))}if(e&&o.redraw(),n&&t){if(this.hasDragged){var l=this.getSelectionBox(n);o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&("xAxis"===t.coll&&i.zoomX||"yAxis"===t.coll&&i.zoomY)}),selection:i_({originalEvent:t,xAxis:[],yAxis:[]},l),from:l})}tF(o.index)&&(this.selectionMarker=n.destroy())}o&&tF(o.index)&&(tS(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach(function(t){var n,r,s,a,l,h,d=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),c=t.searchPoint(i,d);tU(c,!0)&&c.series&&(!tU(o,!0)||(a=(n=o).distX-c.distX,l=n.dist-c.dist,h=(null==(r=c.series.group)?void 0:r.zIndex)-(null==(s=n.series.group)?void 0:s.zIndex),(0!==a&&e?a:0!==l?l:0!==h?h:n.series.index>c.series.index?-1:1)>0))&&(o=c)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,n=t.series,r=n.xAxis,s=n.yAxis,a=t.shapeArgs;if(r&&s){var l=null!=(o=null!=(i=t.clientX)?i:t.plotX)?o:0,h=t.plotY||0;return t.isNode&&a&&tF(a.x)&&tF(a.y)&&(l=a.x,h=a.y),e?{chartX:s.len+s.pos-h,chartY:r.len+r.pos-l}:{chartX:l+r.pos,chartY:h+s.pos}}if((null==a?void 0:a.x)&&a.y)return{chartX:a.x,chartY:a.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=tq(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetHeight,o=t.offsetWidth;return o>2&&i>2&&(this.chartPosition.scaleX=e.width/o,this.chartPosition.scaleY=e.height/i),this.chartPosition},t.prototype.getCoordinates=function(t){for(var e={xAxis:[],yAxis:[]},i=0,o=this.chart.axes;i<o.length;i++){var n=o[i];e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}return e},t.prototype.getHoverData=function(t,e,i,o,n,r){var s,a=[],l=function(t){return t.visible&&!(!n&&t.directTouch)&&tJ(t.options.enableMouseTracking,!0)},h=e,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:n};tB(this,"beforeGetHoverData",d),s=h&&!h.stickyTracking?[h]:i.filter(function(t){return t.stickyTracking&&(d.filter||l)(t)});var c=o&&t||!r?t:this.findNearestKDPoint(s,n,r);return h=null==c?void 0:c.series,c&&(n&&!h.noSharedTooltip?(s=i.filter(function(t){return d.filter?d.filter(t):l(t)&&!t.noSharedTooltip})).forEach(function(t){var e,i=null==(e=t.options)?void 0:e.nullInteraction,o=tW(t.points,function(t){return t.x===c.x&&(!t.isNull||!!i)});tU(o)&&(t.boosted&&t.boost&&(o=t.boost.getPoint(o)),a.push(o))}):a.push(c)),tB(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:h,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){var e=this.chart,i=t.relatedTarget,o=e.hoverSeries;this.isDirectTouch=!1,!o||!i||o.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+o.index)&&this.inClass(i,"highcharts-tracker")||o.onMouseOut()},t.prototype.inClass=function(t,e){for(var i,o=t;o;){if(i=tx(o,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}o=o.parentElement}},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):tJ(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var n=o.pageX-e.left,r=o.pageY-e.top;return tL(t,{chartX:Math.round(n/=e.scaleX),chartY:Math.round(r/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,o=this.normalize(t),n=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(o.target,"highcharts-tracker")?(tB(i.series,"click",tL(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(tL(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-n,o.chartY-r,{visiblePlotOnly:!0})&&tB(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),tp.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&(null==(e=t.preventDefault)||e.call(t)),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=(iU[tJ(t.hoverChartIndex,-1)]||{}).pointer;e=this.normalize(e),this.onContainerMouseMove(e),i&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(i.reset(),i.chartPosition=void 0)},t.prototype.onContainerMouseEnter=function(){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e,i=this.chart,o=i.tooltip,n=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===i.mouseIsDown||this.touchSelect(n))&&this.drag(n),!(!(null==(e=i.exporting)?void 0:e.openMenu)&&(this.inClass(n.target,"highcharts-tracker")||i.isInsidePlot(n.chartX-i.plotLeft,n.chartY-i.plotTop,{visiblePlotOnly:!0})))||(null==o?void 0:o.shouldStickOnContact(n))||(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))},t.prototype.onDocumentTouchEnd=function(t){this.onDocumentMouseUp(t)},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=e.tooltip,o=this.chartPosition,n=this.normalize(t,o);!o||e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop,{visiblePlotOnly:!0})||(null==i?void 0:i.shouldStickOnContact(n))||n.target!==e.container.ownerDocument&&this.inClass(n.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o,n;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(i=null==e?void 0:e.preventDefault)||i.call(e)),null==(n=null==(o=iU[tJ(t.hoverChartIndex,-1)])?void 0:o.pointer)||n.drop(e)},t.prototype.pinch=function(t){var e=this,i=this,o=i.chart,n=i.hasZoom,r=i.lastTouches,s=[].map.call(t.touches||[],function(t){return i.normalize(t)}),a=s.length,l=1===a&&(i.inClass(t.target,"highcharts-tracker")&&o.runTrackerClick||i.runChartClick),h=o.tooltip,d=1===a&&tJ(null==h?void 0:h.options.followTouchMove,!0);a>1?i.initiated=!0:d&&(i.initiated=!1),n&&i.initiated&&!l&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(i.pinchDown=s,i.res=!0,o.mouseDownX=t.chartX):d?this.runPointActions(i.normalize(t)):r&&(tB(o,"touchpan",{originalEvent:t,touches:s},function(){var i=function(t){var e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&(e.zoomHor&&t.horiz||e.zoomVert&&!t.horiz)}),to:i(s),from:i(r),trigger:t.type})}),i.res&&(i.res=!1,this.reset(!1,0))),i.lastTouches=s},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,n=i.hoverPoint,r=i.hoverPoints,s=i.tooltip,a=(null==s?void 0:s.shared)?r:n;t&&a&&t5(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&t5(a).length&&(s.refresh(a),s.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))}):n&&(n.setState(n.state,!0),i.axes.forEach(function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),r&&r.forEach(function(t){t.setState()}),o&&o.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)},t.prototype.runPointActions=function(e,i,o){var n,r=this.chart,s=r.series,a=(null==(n=r.tooltip)?void 0:n.options.enabled)?r.tooltip:void 0,l=!!a&&a.shared,h=i||r.hoverPoint,d=(null==h?void 0:h.series)||r.hoverSeries,c=(!e||"touchmove"!==e.type)&&(!!i||(null==d?void 0:d.directTouch)&&this.isDirectTouch),p=this.getHoverData(h,d,s,c,l,e);h=p.hoverPoint,d=p.hoverSeries;var u=p.hoverPoints,f=(null==d?void 0:d.tooltipOptions.followPointer)&&!d.tooltipOptions.split,g=l&&d&&!d.noSharedTooltip;if(h&&(o||h!==r.hoverPoint||(null==a?void 0:a.isHidden))){if((r.hoverPoints||[]).forEach(function(t){-1===u.indexOf(t)&&t.setState()}),r.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(t){t.setState("hover")}),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!h.series)return;r.hoverPoints=u,r.hoverPoint=h,h.firePointEvent("mouseOver",void 0,function(){a&&h&&a.refresh(g?u:h,e)})}else if(f&&a&&!a.isHidden){var v=a.getAnchor([{}],e);r.isInsidePlot(v[0],v[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:v[0],plotY:v[1]})}this.unDocMouseMove||(this.unDocMouseMove=tv(r.container.ownerDocument,"mousemove",function(e){var i,o,n;return null==(n=null==(o=iU[null!=(i=t.hoverChartIndex)?i:-1])?void 0:o.pointer)?void 0:n.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(t){var i,o,n,s=null==(o=null==(i=t.crosshair)?void 0:i.snap)||o;s&&((n=r.hoverPoint)&&n.series[t.coll]===t||(n=tW(u,function(e){var i;return(null==(i=e.series)?void 0:i[t.coll])===t}))),n||!s?t.drawCrosshair(e,n):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument,n=function(t){var e,i;return t.parentElement||(null==(i=null==(e=t.getRootNode())?void 0:e.host)?void 0:i.parentElement)};i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(tv(i,"mouseenter",this.onContainerMouseEnter.bind(this)),tv(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:tv(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var r=n(this.chart.renderTo);r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(tv(r,"scroll",function(){delete e.chartPosition})),r=n(r);this.eventsToUnbind.push(tv(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),tv(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=tv(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),tv(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(iZ){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,n=o.container,r=tJ(null==(t=o.options.tooltip)?void 0:t.followTouchMove,!0)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&r?(i.push(tv(n,"pointerdown",function(t){var e,i;(null==(e=t.target)?void 0:e.hasPointerCapture(t.pointerId))&&(null==(i=t.target)||i.releasePointerCapture(t.pointerId))}),tv(n,"pointermove",function(t){var e,i;null==(i=null==(e=o.pointer)?void 0:e.getPointFromEvent(t))||i.onMouseOver(t)})),o.styledMode||tS(n,{"touch-action":"none"}),n.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!r&&(i.forEach(function(t){return t()}),i.length=0,o.styledMode||tS(n,{"touch-action":tJ(null==(e=o.options.chart.style)?void 0:e["touch-action"],"manipulation")}),n.className=n.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}},t.prototype.setHoverChartIndex=function(e){var i,o=this.chart,n=tp.charts[tJ(t.hoverChartIndex,-1)];if(n&&n!==o){var r={relatedTarget:o.container};!e||(null==e?void 0:e.relatedTarget)||Object.assign({},e,r),null==(i=n.pointer)||i.onContainerMouseLeave(e||r)}(null==n?void 0:n.mouseIsDown)||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o,n=this.chart,r=this.pinchDown,s=void 0===r?[]:r;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?!n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})||(null==(i=n.exporting)?void 0:i.openMenu)?e&&this.reset():(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=o=!!s[0]&&Math.pow(s[0].chartX-t.chartX,2)+Math.pow(s[0].chartY-t.chartY,2)>=16),tJ(o,!0)&&this.pinch(t)):2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!!(this.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},t.prototype.zoomOption=function(t){var e,i,o=this.chart,n=o.inverted,r=o.zooming.type||"";/touch/.test(t.type)&&(r=tJ(o.zooming.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=i=/y/.test(r),this.zoomHor=e&&!n||i&&n,this.zoomVert=i&&!n||e&&n,this.hasZoom=(e||i)&&iK(t,o.zooming.key)},t.unbindDocumentMouseUp=[],t}();(g=iq||(iq={})).compose=function(t){t0(iV,"Core.Pointer")&&tv(t,"beforeRender",function(){this.pointer=new g(this,this.options)})};var i$=iq,iJ=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},iQ=function(t,e,i,o,n){if(void 0===n&&(n=[]),Array.isArray(t))return Array.isArray(n)||(n=Array.from(n)),{removed:t.splice.apply(t,iJ([e,i],n,!1)),array:t};var r=Object.getPrototypeOf(t).constructor,s=t[o?"subarray":"slice"](e,e+i),a=new r(t.length-i+n.length);return a.set(t.subarray(0,e),0),a.set(n,e),a.set(t.subarray(e+i),e+n.length),{removed:s,array:a}},i0=function(){function t(t){void 0===t&&(t={});var e=this;this.autoId=!t.id,this.columns={},this.id=t.id||en(),this.rowCount=0,this.versionTag=en();var i=0;tK(t.columns||{},function(t,o){e.columns[o]=t.slice(),i=Math.max(i,t.length)}),this.applyRowCount(i)}return t.prototype.applyRowCount=function(t){var e=this;this.rowCount=t,tK(this.columns,function(i,o){var n,r;i.length!==t&&(e.columns[o]=(n=i,r=t,Array.isArray(n)?(n.length=r,n):n.slice(0,r)))})},t.prototype.deleteRows=function(t,e){var i=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var o=0;tK(this.columns,function(n,r){i.columns[r]=iQ(n,t,e).array,o=n.length}),this.rowCount=o}tB(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=en()},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var i=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=i.columns[e],t},{})},t.prototype.getRow=function(t,e){var i=this;return(e||Object.keys(this.columns)).map(function(e){var o;return null==(o=i.columns[e])?void 0:o[t]})},t.prototype.setColumn=function(t,e,i,o){var n;void 0===e&&(e=[]),void 0===i&&(i=0),this.setColumns(((n={})[t]=e,n),i,o)},t.prototype.setColumns=function(t,e,i){var o=this,n=this.rowCount;tK(t,function(t,e){o.columns[e]=t.slice(),n=t.length}),this.applyRowCount(n),(null==i?void 0:i.silent)||(tB(this,"afterSetColumns"),this.versionTag=en())},t.prototype.setRow=function(t,e,i,o){void 0===e&&(e=this.rowCount);var n=this.columns,r=i?this.rowCount+1:e+1,s=Object.keys(t);if((null==o?void 0:o.addColumns)!==!1)for(var a=0,l=s.length;a<l;a++){var h=s[a];n[h]||(n[h]=[])}tK(n,function(s,a){var l,h;s||(null==o?void 0:o.addColumns)===!1||(s=Array(r)),s&&(i?s=iQ(s,e,0,!0,[null!=(l=t[a])?l:null]).array:s[e]=null!=(h=t[a])?h:null,n[a]=s)}),r>this.rowCount&&this.applyRowCount(r),(null==o?void 0:o.silent)||(tB(this,"afterSetRows"),this.versionTag=en())},t.prototype.getModified=function(){return this.modified||this},t}(),i1=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},i2=Z||(Z={});function i3(t,e,i){var o,n,r,s=this.legendItem=this.legendItem||{},a=this.chart,l=this.options,h=t.baseline,d=void 0===h?0:h,c=t.symbolWidth,p=t.symbolHeight,u=this.symbol||"circle",f=p/2,g=a.renderer,v=s.group,m=d-Math.round(((null==(o=t.fontMetrics)?void 0:o.b)||p)*(i?.4:.3)),y={},x=l.marker,b=0;if(a.styledMode||(y["stroke-width"]=Math.min(l.lineWidth||0,24),l.dashStyle?y.dashstyle=l.dashStyle:"square"!==l.linecap&&(y["stroke-linecap"]="round")),s.line=g.path().addClass("highcharts-graph").attr(y).add(v),i&&(s.area=g.path().addClass("highcharts-area").add(v)),y["stroke-linecap"]&&(b=Math.min(s.line.strokeWidth(),c)/2),c){var M=[["M",b,m],["L",c-b,m]];s.line.attr({d:M}),null==(n=s.area)||n.attr({d:i1(i1([],M,!0),[["L",c-b,d],["L",b,d]],!1)})}if(x&&!1!==x.enabled&&c){var k=Math.min(tJ(x.radius,f),f);0===u.indexOf("url")&&(x=tV(x,{width:p,height:p}),k=0),s.symbol=r=g.symbol(u,c/2-k,m-k,2*k,2*k,tL({context:"legend"},x)).addClass("highcharts-point").add(v),r.isMarker=!0}}i2.areaMarker=function(t,e){i3.call(this,t,e,!0)},i2.lineMarker=i3;var i5=Z,i6={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},i9=(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i4=K||(K={});function i8(t,e){var i=ep.plotOptions||{},o=e.defaultOptions,n=e.prototype;return n.type=t,n.pointClass||(n.pointClass=iY),!i4.seriesTypes[t]&&(o&&(i[t]=o),i4.seriesTypes[t]=e,!0)}i4.seriesTypes=tp.seriesTypes,i4.registerSeriesType=i8,i4.seriesType=function(t,e,i,o,n){var r=ep.plotOptions||{};if(e=e||"",r[t]=tV(r[e],i),delete i4.seriesTypes[t],i8(t,tE(i4.seriesTypes[e]||tp.Series,o)),i4.seriesTypes[t].prototype.type=t,n){var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i9(e,t),e}(iY);tL(s.prototype,n),i4.seriesTypes[t].prototype.pointClass=s}return i4.seriesTypes[t]};var i7=K,ot=function(){return(ot=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},oe=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},oi=ix.registerEventOptions,oo=tp.svg,on=tp.win,or=i7.seriesTypes,os=eW.format,oa=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){tB(this,"init",{options:e}),null!=this.dataTable||(this.dataTable=new i0);var i,o,n,r,s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);var a=this.options,l=!1!==a.visible;this.linkedSeries=[],this.bindAxes(),tL(this,{name:a.name,state:"",visible:l,selected:!0===a.selected}),oi(this,a);var h=a.events;((null==h?void 0:h.click)||(null==(o=null==(i=a.point)?void 0:i.events)?void 0:o.click)||a.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(r=s[s.length-1]),this._i=tJ(null==r?void 0:r._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",ei(this,s)),(null==(n=a.dataSorting)?void 0:n.enabled)?this.setDataSortingOptions():this.points||this.data||this.setData(a.data,!1),tB(this,"afterInit")},t.prototype.is=function(t){return or[t]&&this instanceof or[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;tB(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(n){(o[n]||[]).forEach(function(o){t=o.options,(tJ(i[n],0)===o.index||void 0!==i[n]&&i[n]===t.id)&&(ei(e,o.series),e[n]=o,o.isDirty=!0)}),e[n]||e.optionalAxis===n||ee(18,!0,o)})}),tB(this,"afterBindAxes")},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0},t.prototype.hasMarkerChanged=function(t,e){var i=t.marker,o=e.marker||{};return i&&(o.enabled&&!i.enabled||o.symbol!==i.symbol||o.height!==i.height||o.width!==i.width)},t.prototype.autoIncrement=function(t){var e,i,o,n=this.options,r=this.options,s=r.pointIntervalUnit,a=r.relativeXValue,l=this.chart.time,h=null!=(i=null!=(e=this.xIncrement)?e:l.parse(n.pointStart))?i:0;if(this.pointInterval=o=tJ(this.pointInterval,n.pointInterval,1),a&&tF(t)&&(o*=t),s){var d=l.toParts(h);"day"===s?d[2]+=o:"month"===s?d[1]+=o:"year"===s&&(d[0]+=o),o=l.makeTime.apply(l,d)-h}return a&&tF(t)?h+o:(this.xIncrement=h+o,h)},t.prototype.setDataSortingOptions=function(){var t=this.options;tL(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),tA(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e,i,o,n=this.chart,r=n.options.plotOptions,s=n.userOptions||{},a=tV(t),l=n.styledMode,h={plotOptions:r,userOptions:a};tB(this,"setOptions",h);var d=h.plotOptions[this.type],c=s.plotOptions||{},p=c.series||{},u=ep.plotOptions[this.type]||{},f=c[this.type]||{};d.dataLabels=this.mergeArrays(u.dataLabels,d.dataLabels),this.userOptions=h.userOptions;var g=tV(d,r.series,f,a);this.tooltipOptions=tV(ep.tooltip,null==(e=ep.plotOptions.series)?void 0:e.tooltip,null==u?void 0:u.tooltip,n.userOptions.tooltip,null==(i=c.series)?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=tJ(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===d.marker&&delete g.marker;var v=g.negativeColor,m=g.negativeFillColor,y=g.zoneAxis,x=void 0===y?"y":y,b=g.zones,M=this.zones=(b||[]).map(function(t){return ot({},t)});return this.zoneAxis=x,(v||m)&&!b&&(o={value:g[x+"Threshold"]||g.threshold||0,className:"highcharts-negative"},l||("boolean"!=typeof v&&(o.color=v),o.fillColor=m),M.push(o)),M.length&&tA(M[M.length-1].value)&&M.push(l?{}:{color:this.color,fillColor:this.fillColor}),tB(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){var t;return null!=(t=this.options.name)?t:os(this.chart.options.lang.seriesName,this,this.chart)},t.prototype.getCyclic=function(t,e,i){var o,n,r=this.chart,s=""+t+"Index",a=""+t+"Counter",l=(null==i?void 0:i.length)||r.options.chart.colorCount;!e&&(tA(n=tJ("color"===t?this.options.colorIndex:void 0,this[s]))?o=n:(r.series.length||(r[a]=0),o=r[a]%l,r[a]+=1),i&&(e=i[o])),void 0!==o&&(this[s]=o),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||ep.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)},t.prototype.getColumn=function(t,e){return(e?this.dataTable.getModified():this.dataTable).getColumn(t,!0)||[]},t.prototype.findPointIndex=function(t,e){var i,o,n,r,s=t.id,a=t.x,l=this.points,h=this.options.dataSorting,d=this.cropStart||0;if(s){var c=this.chart.get(s);c instanceof iY&&(o=c)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var p=function(e){return!e.touched&&e.index===t.index};if((null==h?void 0:h.matchByName)?p=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(p=function(e){return!e.touched&&e.options.x===t.x}),!(o=tW(l,p)))return}return o&&void 0!==(r=null==o?void 0:o.index)&&(n=!0),void 0===r&&tF(a)&&(r=this.getColumn("x").indexOf(a,e)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=d?r-d:r),!n&&tF(r)&&(null==(i=l[r])?void 0:i.touched)&&(r=void 0),r},t.prototype.updateData=function(t,e){var i,o,n,r,s,a=this,l=this.options,h=this.requireSorting,d=l.dataSorting,c=this.points,p=[],u=t.length===c.length,f=this.xIncrement,g=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i,n,r=tA(t)&&a.pointClass.prototype.optionsToObject.call({series:a},t)||{},f=r.id,g=r.x;f||tF(g)?(-1===(n=a.findPointIndex(r,s))||void 0===n?p.push(t):c[n]&&t!==(null==(i=l.data)?void 0:i[n])?(c[n].update(t,!1,void 0,!1),c[n].touched=!0,h&&(s=n+1)):c[n]&&(c[n].touched=!0),(!u||e!==n||(null==d?void 0:d.enabled)||a.hasDerivedData)&&(o=!0)):p.push(t)},this),o)for(n=c.length;n--;)(r=c[n])&&!r.touched&&(null==(i=r.remove)||i.call(r,!1,e));else!u||(null==d?void 0:d.enabled)?g=!1:(t.forEach(function(t,e){t===c[e].y||c[e].destroyed||c[e].update(t,!1,void 0,!1)}),p.length=0);if(c.forEach(function(t){t&&(t.touched=!1)}),!g)return!1;p.forEach(function(t){a.addPoint(t,!1,void 0,void 0,!1)},this);var v=this.getColumn("x");return null!==f&&null===this.xIncrement&&v.length&&(this.xIncrement=ty(v),this.autoIncrement()),!0},t.prototype.dataColumnKeys=function(){return oe(["x"],this.pointArrayMap||["y"],!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var n,r,s,a,l,h,d,c,p,u,f,g=this.points,v=(null==g?void 0:g.length)||0,m=this.options,y=this.chart,x=m.dataSorting,b=this.xAxis,M=m.turboThreshold,k=this.dataTable,w=this.dataColumnKeys(),S=this.pointValKey||"y",A=(this.pointArrayMap||[]).length,T=m.keys,P=0,C=1;y.options.chart.allowMutatingData||(m.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,f=tV(!0,t));var O=(t=f||t||[]).length;if((null==x?void 0:x.enabled)&&(t=this.sortData(t)),!1!==o&&O&&v&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(u=this.updateData(t,i)),!u){this.xIncrement=null,this.colorCounter=0;var L=M&&!m.relativeXValue&&O>M;if(L){var E=this.getFirstValidPoint(t),B=this.getFirstValidPoint(t,O-1,-1),I=function(t){return!!(t_(t)&&(T||tF(t[0])))};if(tF(E)&&tF(B)){for(var D=[],z=[],R=0,N=t;R<N.length;R++){var W=N[R];D.push(this.autoIncrement()),z.push(W)}k.setColumns(((n={x:D})[S]=z,n))}else if(I(E)&&I(B))if(A){for(var G=+(E.length===A),X=Array(w.length).fill(0).map(function(){return[]}),H=0,F=t;H<F.length;H++){var Y=F[H];G&&X[0].push(this.autoIncrement());for(var _=G;_<=A;_++)null==(s=X[_])||s.push(Y[_-G])}k.setColumns(w.reduce(function(t,e,i){return t[e]=X[i],t},{}))}else{T&&(P=T.indexOf("x"),C=T.indexOf("y"),P=P>=0?P:0,C=C>=0?C:1),1===E.length&&(C=0);for(var j=[],z=[],U=0,V=t;U<V.length;U++){var Y=V[U];P===C?j.push(this.autoIncrement()):j.push(null!=(l=null!=(a=Y[P])?a:Y.x)?l:null),z.push(null!=(d=null!=(h=Y[C])?h:Y.y)?d:null)}k.setColumns(((r={x:j})[S]=z,r))}else L=!1}if(!L){var Z=w.reduce(function(t,e){return t[e]=[],t},{});for(p=0;p<O;p++)for(var Y=this.pointClass.prototype.applyOptions.apply({series:this},[t[p]]),K=0;K<w.length;K++){var q=w[K];Z[q][p]=Y[q]}k.setColumns(Z)}for(tY(this.getColumn("y")[0])&&ee(14,!0,y),this.data=[],this.options.data=this.userOptions.data=t,p=v;p--;)null==(c=g[p])||c.destroy();b&&(b.minRange=b.userMinRange),this.isDirty=y.isDirtyBox=!0,this.isDirtyData=!!g,i=!1}"point"===m.legendType&&(this.processData(),this.generatePoints()),e&&y.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return tA(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,n){t[n]=o(e,i),t[n].index=n},this),t.concat().sort(function(t,e){var o=tR(i,t),n=tR(i,e);return n<o?-1:+(n>o)}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i,n=e.options,r=n.data;(null==(i=n.dataSorting)?void 0:i.enabled)||!r||(r.forEach(function(i,n){r[n]=o(e,i),t[n]&&(r[n].x=t[n].x,r[n].index=n)}),e.setData(r,!1))}),t},t.prototype.getProcessedData=function(t){var e,i,o,n,r,s=this,a=s.dataTable,l=s.isCartesian,h=s.options,d=s.xAxis,c=h.cropThreshold,p=t||s.getExtremesFromAll,u=null==d?void 0:d.logarithmic,f=a.rowCount,g=0,v=s.getColumn("x"),m=a,y=!1;return d&&(n=(o=d.getExtremes()).min,r=o.max,y=!!(d.categories&&!d.names.length),l&&s.sorted&&!p&&(!c||f>c||s.forceCrop)&&(v[f-1]<n||v[0]>r?m=new i0:s.getColumn(s.pointValKey||"y").length&&(v[0]<n||v[f-1]>r)&&(m=(e=this.cropData(a,n,r)).modified,g=e.start,i=!0))),v=m.getColumn("x")||[],{modified:m,cropped:i,cropStart:g,closestPointRange:tD([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&ee(15,!1,s.chart)})}},t.prototype.processData=function(t){var e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;var o=this.getProcessedData();i.modified=o.modified,this.cropped=o.cropped,this.cropStart=o.cropStart,this.closestPointRange=this.basePointRange=o.closestPointRange,tB(this,"afterProcessData")},t.prototype.cropData=function(t,e,i){var o,n,r=t.getColumn("x",!0)||[],s=r.length,a={},l=0,h=s;for(o=0;o<s;o++)if(r[o]>=e){l=Math.max(0,o-1);break}for(n=o;n<s;n++)if(r[n]>i){h=n+1;break}for(var d=0,c=this.dataColumnKeys();d<c.length;d++){var p=c[d],u=t.getColumn(p,!0);u&&(a[p]=u.slice(l,h))}return{modified:new i0({columns:a}),start:l,end:h}},t.prototype.generatePoints=function(){var t,e,i,o,n,r,s,a,l,h,d,c,p,u=this.options,f=this.processedData||u.data,g=this.dataTable.getModified(),v=this.getColumn("x",!0),m=this.pointClass,y=g.rowCount,x=this.cropStart||0,b=this.hasGroupedData,M=u.keys,k=[],w=(null==(t=u.dataGrouping)?void 0:t.groupAll)?x:0,S=this.pointArrayMap||["y"],A=this.dataColumnKeys(),T=this.data;if(!T&&!b){var P=[];P.length=(null==f?void 0:f.length)||0,T=this.data=P}for(M&&b&&(this.options.keys=!1),c=0;c<y;c++)h=x+c,b?((d=new m(this,g.getRow(c,A)||[])).dataGroup=null==(r=this.groupMap)?void 0:r[w+c],(null==(s=d.dataGroup)?void 0:s.options)&&(d.options=d.dataGroup.options,tL(d,d.dataGroup.options),delete d.dataLabels,d.key=null!=(a=d.name)?a:d.category)):(d=T[h],p=f?f[h]:g.getRow(c,S),d||void 0===p?d&&(d.category=null!=(o=null==(i=null==(e=this.xAxis)?void 0:e.categories)?void 0:i[d.x])?o:d.x,d.key=null!=(n=d.name)?n:d.category):T[h]=d=new m(this,p,v[c])),d&&(d.index=b?w+c:h,k[c]=d);if(this.options.keys=M,T&&(y!==(l=T.length)||b))for(c=0;c<l;c++)c!==x||b||(c+=y),T[c]&&(T[c].destroyElements(),T[c].plotX=void 0);this.data=T,this.points=k,tB(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:tm(t),max:ty(t)}},t.prototype.getExtremes=function(t,e){var i,o,n,r,s=this.xAxis,a=this.yAxis,l=e||this.getExtremesFromAll||this.options.getExtremesFromAll,h=l&&this.cropped?this.dataTable:this.dataTable.getModified(),d=h.rowCount,c=t||this.stackedYData,p=c?[c]:(null==(i=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:i.map(function(t){return h.getColumn(t,!0)||[]}))||[],u=this.getColumn("x",!0),f=[],g=this.requireSorting&&!this.is("column")?1:0,v=!!a&&a.positiveValuesOnly,m=l||this.cropped||!s,y=0,x=0;for(s&&(y=(o=s.getExtremes()).min,x=o.max),r=0;r<d;r++)if(n=u[r],m||(u[r+g]||n)>=y&&(u[r-g]||n)<=x)for(var b=0;b<p.length;b++){var M=p[b][r];tF(M)&&(M>0||!v)&&f.push(M)}var k={activeYData:f,dataMin:tm(f),dataMax:ty(f)};return tB(this,"afterGetExtremes",{dataExtremes:k}),k},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=1);for(var o=t.length,n=e;n>=0&&n<o;){if(tA(t[n]))return t[n];n+=i}},t.prototype.translate=function(){this.generatePoints();var t,e,i,o,n,r=this.options,s=r.stacking,a=this.xAxis,l=this.enabledDataSorting,h=this.yAxis,d=this.points,c=d.length,p=this.pointPlacementToXValue(),u=!!p,f=r.threshold,g=r.startFromThreshold?f:0,v=(null==r?void 0:r.nullInteraction)&&h.len,m=Number.MAX_VALUE;function y(t){return tb(t,-1e9,1e9)}for(e=0;e<c;e++){var x=d[e],b=x.x,M=void 0,k=void 0,w=x.y,S=x.low,A=s&&(null==(t=h.stacking)?void 0:t.stacks[(this.negStacks&&w<(g?0:f)?"-":"")+this.stackKey]);x.plotX=tF(i=a.translate(b,!1,!1,!1,!0,p))?tM(y(i)):void 0,s&&this.visible&&A&&A[b]&&(n=this.getStackIndicator(n,b,this.index),!x.isNull&&n.key&&(k=(M=A[b]).points[n.key]),M&&t_(k)&&(S=k[0],w=k[1],S===g&&n.key===A[b].base&&(S=tJ(tF(f)?f:h.min)),h.positiveValuesOnly&&tA(S)&&S<=0&&(S=void 0),x.total=x.stackTotal=tJ(M.total),x.percentage=tA(x.y)&&M.total?x.y/M.total*100:void 0,x.stackY=w,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=tA(S)?y(h.translate(S,!1,!0,!1,!0)):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,e));var T=void 0;tF(w)&&void 0!==x.plotX?T=tF(T=h.translate(w,!1,!0,!1,!0))?y(T):void 0:!tF(w)&&v&&(T=v),x.plotY=T,x.isInside=this.isPointInside(x),x.clientX=u?tM(a.translate(b,!1,!1,!1,!0,p)):i,x.negative=(x.y||0)<(f||0),x.isNull||!1===x.visible||(void 0!==o&&(m=Math.min(m,Math.abs(i-o))),o=i),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&l&&(x.isNew=!0)}this.closestPointRangePx=m,tB(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){var n=t.plotX,r=t.plotY;return(!!i||!t.isNull&&!!tF(r))&&(!e||!!o.isInsidePlot(n,r,{inverted:o.inverted}))&&!1!==t.visible})},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips,n=t.renderer,r=t.getClipBox(this),s=this.getSharedClipKey(),a=o[s];tB(this,"setClip",{clipBox:r}),a?a.animate(r):o[s]=a=n.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,n=e.inverted,r=ek(this.options.animation),s=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),a=e.sharedClips[s],l=e.sharedClips[s+"m"];if(t&&i){var h=e.getClipBox(this);if(a)a.attr("height",h.height);else{h.width=0,n&&(h.x=e.plotHeight),a=e.renderer.clipRect(h),e.sharedClips[s]=a;var d={x:-99,y:-99,width:n?e.plotWidth+199:99,height:n?99:e.plotHeight+199};l=e.renderer.clipRect(d),e.sharedClips[s+"m"]=l}i.clip(a),null==o||o.clip(l)}else if(a&&!a.hasClass("highcharts-animating")){var c=e.getClipBox(this),p=r.step;((null==o?void 0:o.element.childNodes.length)||e.series.length>1)&&(r.step=function(t,e){p&&p.apply(e,arguments),"width"===e.prop&&(null==l?void 0:l.element)&&l.attr(n?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(c,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),tK(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,tB(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o,n,r,s,a,l=this.chart,h=l.styledMode,d=this.colorAxis,c=this.options,p=c.marker,u=c.nullInteraction,f=this[this.specialGroup||"markerGroup"],g=this.xAxis,v=tJ(p.enabled,!g||!!g.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){n=(o=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},s=!!i.marker;var m=i.isNull;if((v&&!tA(r.enabled)||r.enabled)&&(!m||u)&&!1!==i.visible){var y=tJ(r.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=g.reversed?-(a.width||0):g.width);var x=!1!==i.isInside;if(!o&&x&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=l.renderer.symbol(y,a.x,a.y,a.width,a.height,s?r:p).add(f),this.enabledDataSorting&&l.hasRendered&&(o.attr({x:i.startXPos}),n="animate")),o&&"animate"===n&&o[x?"show":"hide"](x).animate(a),o){var b=this.pointAttribs(i,h||!i.selected?void 0:"select");h?d&&o.css({fill:b.fill}):o[n](b)}o&&o.addClass(i.getClassName(),!0)}else o&&(i.graphic=o.destroy())}},t.prototype.markerAttribs=function(t,e){var i,o,n,r,s=this.options,a=s.marker,l=t.marker||{},h=l.symbol||a.symbol,d={},c=tJ(l.radius,null==a?void 0:a.radius);e&&(n=null==(i=null==a?void 0:a.states)?void 0:i[e],c=tJ(null==(r=null==(o=l.states)?void 0:o[e])?void 0:r.radius,null==n?void 0:n.radius,c&&c+((null==n?void 0:n.radiusPlus)||0))),t.hasImage=h&&0===h.indexOf("url"),t.hasImage&&(c=0);var p=t.pos();return tF(c)&&p&&(s.crisp&&(p[0]=tw(p[0],t.hasImage?0:"rect"===h?(null==a?void 0:a.lineWidth)||0:1)),d.x=p[0]-c,d.y=p[1]-c),c&&(d.width=d.height=2*c),d},t.prototype.pointAttribs=function(t,e){var i,o,n,r,s,a=this.options,l=a.marker,h=null==t?void 0:t.options,d=(null==h?void 0:h.marker)||{},c=null==h?void 0:h.color,p=null==t?void 0:t.color,u=null==(i=null==t?void 0:t.zone)?void 0:i.color,f=this.color,g=tJ(d.lineWidth,l.lineWidth),v=(null==t?void 0:t.isNull)&&a.nullInteraction?0:1;return f=c||u||p||f,r=d.fillColor||l.fillColor||f,s=d.lineColor||l.lineColor||f,e=e||"normal",o=l.states[e]||{},g=tJ((n=d.states&&d.states[e]||{}).lineWidth,o.lineWidth,g+tJ(n.lineWidthPlus,o.lineWidthPlus,0)),r=n.fillColor||o.fillColor||r,s=n.lineColor||o.lineColor||s,{stroke:s,"stroke-width":g,fill:r,opacity:v=tJ(n.opacity,o.opacity,v)}},t.prototype.destroy=function(t){var e,i,o,n,r=this,s=r.chart,a=/AppleWebKit\/533/.test(on.navigator.userAgent),l=r.data||[];for(tB(r,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(r.axisTypes||[]).forEach(function(t){(null==(n=r[t])?void 0:n.series)&&(tO(n.series,r),n.isDirty=n.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),o=l.length;o--;)null==(i=null==(e=l[o])?void 0:e.destroy)||i.call(e);for(var h=0,d=r.zones;h<d.length;h++)tT(d[h],void 0,!0);tG(r.animationTimeout),tK(r,function(t,e){t instanceof eZ&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===r&&(s.hoverSeries=void 0),tO(s.series,r),s.orderItems("series"),tK(r,function(e,i){t&&"hcEvents"===i||delete r[i]})},t.prototype.applyZones=function(){var t=this.area,e=this.chart,i=this.graph,o=this.zones,n=this.points,r=this.xAxis,s=this.yAxis,a=this.zoneAxis,l=e.inverted,h=e.renderer,d=this[""+a+"Axis"],c=d||{},p=c.isXAxis,u=c.len,f=void 0===u?0:u,g=c.minPointOffset,v=void 0===g?0:g,m=((null==i?void 0:i.strokeWidth())||0)/2+1,y=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),l&&(i=f-i);var o=t.translated,n=void 0===o?0:o,r=t.lineClip,s=i-n;null==r||r.push(["L",e,Math.abs(s)<m?i-m*(s<=0?-1:1):n])};if(o.length&&(i||t)&&d&&tF(d.min)){var x=d.getExtremes().max+v,b=function(t){t.forEach(function(e,i){("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],p?f-e[1]:e[1],p?e[2]:f-e[2]])})};if(o.forEach(function(t){t.lineClip=[],t.translated=tb(d.toPixels(tJ(t.value,x),!0)||0,0,f)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&n.length<r.len)for(var M=0;M<n.length;M++){var k=n[M],w=k.plotX,S=k.plotY,A=k.zone,T=A&&o[o.indexOf(A)-1];A&&y(A,w,S),T&&y(T,w,S)}var P=[],C=d.toPixels(d.getExtremes().min-v,!0);o.forEach(function(e){var o,n,a=e.lineClip||[],d=Math.round(e.translated||0);r.reversed&&a.reverse();var c=e.clip,u=e.simpleClip,f=0,g=0,v=r.len,m=s.len;p?(f=d,v=C):(g=d,m=C);var y=[["M",f,g],["L",v,g],["L",v,m],["L",f,m],["Z"]],x=oe(oe(oe(oe([y[0]],a,!0),[y[1],y[2]],!1),P,!0),[y[3],y[4]],!1);P=a.reverse(),C=d,l&&(b(x),t&&b(y)),c?(c.animate({d:x}),null==u||u.animate({d:y})):(c=e.clip=h.path(x),t&&(u=e.simpleClip=h.path(y))),i&&(null==(o=e.graph)||o.clip(c)),t&&(null==(n=e.area)||n.clip(u))})}else this.visible&&(i&&i.show(),t&&t.show())},t.prototype.plotGroup=function(t,e,i,o,n){var r=this[t],s=!r,a={visibility:i,zIndex:o||.1};return tA(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(n)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(tA(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(a)[s?"attr":"animate"](this.getPlotBox(e)),r},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,n=o.inverted&&!o.polar&&e&&this.invertible&&"series"===t;o.inverted&&(e=i,i=this.xAxis);var r={scale:1,translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,name:t};tB(this,"getPlotBox",r);var s=r.scale;return{translateX:r.translateX,translateY:r.translateY,rotation:90*!!n,rotationOriginX:n?s*(e.len-i.len)/2:0,rotationOriginY:n?s*(e.len+i.len)/2:0,scaleX:n?-s:s,scaleY:s}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||t3(this),e.length&&(e.forEach(function(t){t()}),e.length=0)},t.prototype.render=function(){var t,e,i,o,n,r=this,s=r.chart,a=r.options,l=r.hasRendered,h=ek(a.animation),d=r.visible?"inherit":"hidden",c=a.zIndex,p=s.seriesGroup,u=r.finishedAnimating?0:h.duration;tB(this,"render"),r.plotGroup("group","series",d,c,p),r.markerGroup=r.plotGroup("markerGroup","markers",d,c,p),!1!==a.clip&&r.setClip(),u&&(null==(t=r.animate)||t.call(r,!0)),r.drawGraph&&(r.drawGraph(),r.applyZones()),r.visible&&r.drawPoints(),null==(e=r.drawDataLabels)||e.call(r),null==(i=r.redrawPoints)||i.call(r),a.enableMouseTracking&&(null==(o=r.drawTracker)||o.call(r)),u&&(null==(n=r.animate)||n.call(r)),l||(u&&h.defer&&(u+=h.defer),r.animationTimeout=t9(function(){r.afterAnimate()},u||0)),r.isDirty=!1,r.hasRendered=!0,tB(r,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.reserveSpace=function(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,i=e.options,o=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,t9(function(){e.kdTree=function t(i,o,n){var r,s,a=null==i?void 0:i.length;if(a)return r=e.kdAxisArray[o%n],i.sort(function(t,e){return(t[r]||0)-(e[r]||0)}),{point:i[s=Math.floor(a/2)],left:t(i.slice(0,s),o+1,n),right:t(i.slice(s+1),o+1,n)}}(e.getValidPoints(void 0,!e.directTouch,null==i?void 0:i.nullInteraction),o,o),e.buildingKdTree=!1},i.kdNow||(null==t?void 0:t.type)==="touchstart"?0:1)},t.prototype.searchKDTree=function(t,e,i,o,n){var r=this,s=this.kdAxisArray,a=s[0],l=s[1],h=e?"distX":"dist",d=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!r.isBubble,p=o||function(t,e,i){var o=t[i]||0,n=e[i]||0;return[o===n&&t.index>e.index||o<n?t:e,!1]},u=n||function(t,e){return t<e};if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,o,n){var s,d,f,g,v,m,y,x,b,M,k=i.point,w=r.kdAxisArray[o%n],S=k,A=!1;d=e[a],f=k[a],g=tA(d)&&tA(f)?d-f:null,v=e[l],m=k[l],y=tA(v)&&tA(m)?v-m:0,x=c&&(null==(s=k.marker)?void 0:s.radius)||0,k.dist=Math.sqrt((g&&g*g||0)+y*y)-x,k.distX=tA(g)?Math.abs(g)-x:Number.MAX_VALUE;var T=(e[w]||0)-(k[w]||0)+(c&&(null==(M=k.marker)?void 0:M.radius)||0),P=T<0?"left":"right",C=T<0?"right":"left";return i[P]&&(S=(b=p(k,t(e,i[P],o+1,n),h))[0],A=b[1]),i[C]&&u(Math.sqrt(T*T),S[h],A)&&(S=p(S,t(e,i[C],o+1,n),h)[0]),S}(t,this.kdTree,d,d)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=this.xAxis,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),tF(i)?i*(t.pointRange||e.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis,n=t.plotX,r=void 0===n?-1:n,s=t.plotY,a=void 0===s?-1:s;return a>=0&&a<=(o?o.len:e.plotHeight)&&r>=0&&r<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t,e=this,i=e.options,o=i.trackByArea,n=[].concat((o?e.areaPath:e.graphPath)||[]),r=e.chart,s=r.pointer,a=r.renderer,l=(null==(t=r.options.tooltip)?void 0:t.snap)||0,h=function(){i.enableMouseTracking&&r.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(oo?1e-4:.002)+")",c=e.tracker;c?c.attr({d:n}):e.graph&&(e.tracker=c=a.path(n).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(o?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:o?d:"none","stroke-width":e.graph.strokeWidth()+(o?0:2*l)}),oe([e.tracker,e.markerGroup],e.dataLabelsGroups||[],!0).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",function(t){null==s||s.onTrackerMouseOut(t)}),i.cursor&&!r.styledMode&&t.css({cursor:i.cursor}),t.on("touchstart",h))})),tB(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,n){var r,s,a=this.options,l=this.chart,h=this.data,d=this.dataTable,c=this.xAxis,p=(null==c?void 0:c.hasNames)&&c.names,u=a.data,f=this.getColumn("x");e=tJ(e,!0);var g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);var v=g.x;if(s=f.length,this.requireSorting&&v<f[s-1])for(r=!0;s&&f[s-1]>v;)s--;d.setRow(g,s,!0,{addColumns:!1}),p&&g.name&&(p[v]=g.name),null==u||u.splice(s,0,t),(r||this.processedData)&&(this.data.splice(s,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):([h,u].filter(tA).forEach(function(t){t.shift()}),d.deleteRows(0))),!1!==n&&tB(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,n=o.chart,r=o.data,s=o.points,a=o.dataTable,l=r[t],h=function(){[(null==s?void 0:s.length)===r.length?s:void 0,r,o.options.data].filter(tA).forEach(function(e){e.splice(t,1)}),a.deleteRows(t),null==l||l.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&n.redraw()};eT(i,n),e=tJ(e,!0),l?l.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){var n=this,r=n.chart;function s(){n.destroy(o),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(o),tJ(t,!0)&&r.redraw(e)}!1!==i?tB(n,"remove",null,s):s()},t.prototype.update=function(e,i){tB(this,"update",{options:e=tC(e,this.userOptions)});var o,n,r,s,a,l,h=this,d=h.chart,c=h.userOptions,p=h.initialType||h.type,u=d.options.plotOptions,f=or[p].prototype,g=h.finishedAnimating&&{animation:!1},v={},m=t.keepProps.slice(),y=e.type||c.type||d.options.chart.type,x=!(this.hasDerivedData||y&&y!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(function(t){return h.hasOptionChanged(t)}));y=y||p,x?(m.push.apply(m,t.keepPropsForPoints),!1!==e.visible&&m.push("area","graph"),h.parallelArrays.forEach(function(t){m.push(t+"Data")}),e.data&&(e.dataSorting&&tL(h.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&c.dataLabels&&(e.dataLabels=this.mergeArrays(c.dataLabels,e.dataLabels)),e=tV(c,{index:void 0===c.index?h.index:c.index,pointStart:null!=(r=null!=(n=null==(o=null==u?void 0:u.series)?void 0:o.pointStart)?n:c.pointStart)?r:h.getColumn("x")[0]},!x&&{data:h.options.data},e,g),x&&e.data&&(e.data=h.options.data),(m=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(m)).forEach(function(t){m[t]=h[t],delete h[t]});var b=!1;if(or[y]){if(b=y!==h.type,h.remove(!1,!1,!1,!0),b)if(d.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(h,or[y].prototype);else{var M=Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents;for(l in f)h[l]=void 0;tL(h,or[y].prototype),M?h.hcEvents=M:delete h.hcEvents}}else ee(17,!0,d,{missingModuleFor:y});if(m.forEach(function(t){h[t]=m[t]}),h.init(d,e),x&&this.points){!1===(a=h.options).visible?(v.graphic=1,v.dataLabel=1):(this.hasMarkerChanged(a,c)&&(v.graphic=1),(null==(s=h.hasDataLabels)?void 0:s.call(h))||(v.dataLabel=1));for(var k=0,w=this.points;k<w.length;k++){var S=w[k];(null==S?void 0:S.series)&&(S.resolveColor(),Object.keys(v).length&&S.destroyElements(v),!1===a.showInLegend&&S.legendItem&&d.legend.destroyItem(S))}}h.initialType=p,d.linkSeries(),d.setSortedData(),b&&h.linkedSeries.length&&(h.isDirtyData=!0),tB(this,"afterUpdate"),tJ(i,!0)&&d.redraw(!!x&&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,i,o=this.chart,n=this.options[t],r=o.options.plotOptions,s=this.userOptions[t],a=tJ(null==(e=null==r?void 0:r[this.type])?void 0:e[t],null==(i=null==r?void 0:r.series)?void 0:i[t]);return s&&!tA(a)?n!==s:n!==tJ(a,n)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries,i=t.pointer;null==i||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&tB(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&&tB(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i,o,n=this,r=n.graph,s=n.options,a=s.inactiveOtherPoints,l=s.states,h=tJ(null==(i=null==l?void 0:l[t||"normal"])?void 0:i.animation,n.chart.options.chart.animation),d=s.lineWidth,c=s.opacity;if(t=t||"",n.state!==t&&(oe([n.group,n.markerGroup],n.dataLabelsGroups||[],!0).forEach(function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))}),n.state=t,!n.chart.styledMode)){if((null==(o=l[t])?void 0:o.enabled)===!1)return;if(t&&(d=l[t].lineWidth||d+(l[t].lineWidthPlus||0),c=tJ(l[t].opacity,c)),r&&!r.dashstyle&&tF(d))for(var p=0,u=oe([r],this.zones.map(function(t){return t.graph}),!0);p<u.length;p++){var f=u[p];null==f||f.animate({"stroke-width":d},h)}a||oe(oe([n.group,n.markerGroup],n.dataLabelsGroups||[],!0),[n.labelBySeries],!1).forEach(function(t){null==t||t.animate({opacity:c},h)})}e&&a&&n.points&&n.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,o,n=this,r=n.chart,s=r.options.chart.ignoreHiddenSeries,a=n.visible;n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t;var l=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(function(t){var e;null==(e=n[t])||e[l]()}),null==(i=n.dataLabelsGroups)||i.forEach(function(t){null==t||t[l]()}),(r.hoverSeries===n||(null==(o=r.hoverPoint)?void 0:o.series)===n)&&n.onMouseOut(),n.legendItem&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),n.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),s&&(r.isDirtyBox=!0),tB(n,l),!1!==e&&r.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),tB(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.prototype.drawLegendSymbol=function(t,e){var i,o,n=this.chart.renderer,r=this.options.legendSymbol||"rectangle",s=e.legendItem||{},a=t.options,l=t.symbolHeight,h=t.symbolWidth,d=a.squareSymbol,c=d?l:h,p=d?(h-l)/2:0,u=(t.baseline||0)-l+1,f=null!=(i=a.symbolRadius)?i:l,g="rectangle"===r?n.rect(p,u,c,l,f):n.symbols[r]&&n.symbol(r,p,u,c,l,{r:f});g?s.symbol=g.addClass("highcharts-point").attr({zIndex:3}).add(s.group):null==(o=i5[r])||o.call(this,t,e)},t.defaultOptions=i6,t.types=i7.seriesTypes,t.registerType=i7.registerSeriesType,t.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],t.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],t}();tL(oa.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:iY,requireSorting:!0,sorted:!0}),i7.series=oa;var ol=ix.registerEventOptions,oh=tp.composed,od=tp.marginNames,oc=eX.distribute,op=eW.format,ou=function(){function t(t,e){var i=this;this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),ol(this,e),tv(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),tv(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=tJ(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=tV(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=tJ(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(tV(!0,this.options,t)),"events"in this.options&&ol(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,tJ(e,!0)&&i.redraw(),tB(this,"afterUpdate",{redraw:e})},t.prototype.colorizeItem=function(t,e){var i,o=t.color,n=t.legendItem||{},r=n.area,s=n.group,a=n.label,l=n.line,h=n.symbol;if((t instanceof oa||t instanceof iY)&&(t.color=(null==(i=t.options)?void 0:i.legendSymbolColor)||o),null==s||s[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var d=this.itemHiddenStyle,c=void 0===d?{}:d,p=c.color,u=t.options,f=u.fillColor,g=u.fillOpacity,v=u.lineColor,m=u.marker,y=function(t){return!e&&(t.fill&&(t.fill=p),t.stroke&&(t.stroke=p)),t};null==a||a.css(tV(e?this.itemStyle:c)),null==l||l.attr(y({stroke:v||t.color})),h&&h.attr(y(m&&h.isMarker?t.pointAttribs():{fill:t.color})),null==r||r.attr(y({fill:f||t.color,"fill-opacity":f?1:null!=g?g:.75}))}t.color=o,tB(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,n=i.x,r=void 0===n?0:n,s=i.y,a=void 0===s?0:s,l=this.options,h=l.symbolPadding,d=!l.rtl,c=t.checkbox;if(null==o?void 0:o.element){var p={translateX:d?r:this.legendWidth-r-2*h-4,translateY:a};o[tA(o.translateY)?"animate":"attr"](p,void 0,function(){tB(e,"afterPositionItem",{item:t})})}c&&(c.x=r,c.y=a)},t.prototype.destroyItem=function(t){for(var e=t.legendItem||{},i=0,o=["group","label","line","symbol"];i<o.length;i++){var n=o[i];e[n]&&(e[n]=e[n].destroy())}t.checkbox=tP(t.checkbox),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++){var i=e[t];this.destroyItem(i)}for(var o=0,n=["clipRect","up","down","pager","nav","box","title","group"];o<n.length;o++){var r=n[o];this[r]&&(this[r]=this[r].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t,e,i=null==(t=this.group)?void 0:t.alignAttr,o=this.clipHeight||this.legendHeight,n=this.titleHeight;i&&(e=i.translateY,this.allItems.forEach(function(t){var r,s=t.checkbox;s&&(r=e+n+s.y+(this.scrollOffset||0)+3,tS(s,{left:i.translateX+t.checkboxOffset+s.x-20+"px",top:r+"px",display:this.proximate||r>e-6&&r<e+o-6?"":"none"}))},this))},t.prototype.renderTitle=function(){var t,e=this.options,i=this.padding,o=e.title,n=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?op(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})},t.prototype.renderItem=function(t){var e,i=t.legendItem=t.legendItem||{},o=this.chart,n=o.renderer,r=this.options,s="horizontal"===r.layout,a=this.symbolWidth,l=r.symbolPadding||0,h=this.itemStyle,d=this.itemHiddenStyle,c=s?tJ(r.itemDistance,20):0,p=!r.rtl,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options,v=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=r.useHTML,y=t.options.className,x=i.label,b=a+l+c+20*!!v;!x&&(i.group=n.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=x=n.text("",p?a+l:-l,this.baseline||0,m),o.styledMode||x.css(tV(t.visible?h:d)),x.attr({align:p?"left":"right",zIndex:2}).add(i.group),!this.baseline&&(this.fontMetrics=n.fontMetrics(x),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,x.attr("y",this.baseline),this.symbolHeight=tJ(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=tJ(r.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+l+c+20*!!v,p&&x.attr("x",this.symbolWidth+l))),f.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,x,m)),v&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(o.styledMode||!h.width)&&x.css({width:Math.min(r.itemWidth||this.widthOption||o.spacingBox.width,r.maxWidth?t1(r.maxWidth,o.chartWidth):1/0)-b+"px"}),this.setText(t);var M=x.getBBox(),k=(null==(e=this.fontMetrics)?void 0:e.h)||0;t.itemWidth=t.checkboxOffset=r.itemWidth||i.labelWidth||M.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(M.height>1.5*k?M.height:k))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,n=t.itemHeight,r=this.itemMarginBottom,s=this.itemMarginTop,a=o?tJ(e.itemDistance,20):0,l=this.maxLegendWidth,h=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};o&&this.itemX-i+h>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,o?this.itemX+=h:(this.itemY+=s+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):h)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i,o=null==e?void 0:e.options;e&&tJ(o.showInLegend,!tA(o.linkedTo)&&void 0,!0)&&(t=t.concat((null==(i=e.legendItem)?void 0:i.labels)||("point"===o.legendType?e.data:e)))}),tB(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,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,s){var a;r.test(n)&&!tA(t[s])&&(i[od[s]]=Math.max(i[od[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+(null!=(a=o.margin)?a:12)+e[s]+(i.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t,e=this.chart,i=[],o="left"===this.options.align;this.allItems.forEach(function(t){var n,r,s,a,l=o;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(n=tW(l?t.points:t.points.slice(0).reverse(),function(t){return tF(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,s=t.visible?(n?n.plotY:t.yAxis.height)+(a-.3*r):a+t.yAxis.height,i.push({target:s,size:r,item:t}))},this);for(var n=0,r=oc(i,e.plotHeight);n<r.length;n++){var s=r[n];t=s.item.legendItem||{},tF(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}},t.prototype.render=function(){var t,e,i,o,n=this.chart,r=n.spacingBox.width,s=n.renderer,a=this.options,l=this.padding,h=this.getAllItems(),d=this.group,c=this.box;this.itemX=l,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=t1(a.width,r-l),o=r-2*l-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,d||(this.group=d=s.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(d),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),t6(h,function(t,e){var i,o;return((null==(i=t.options)?void 0:i.legendIndex)||0)-((null==(o=e.options)?void 0:o.legendIndex)||0)}),a.reversed&&h.reverse(),this.allItems=h,this.display=t=!!h.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),e=(a.maxWidth?Math.min(this.widthOption||this.offsetWidth,o,t1(a.maxWidth,n.chartWidth)||1/0):this.widthOption||this.offsetWidth)+l,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+l,c||(this.box=c=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(d)),n.styledMode||c.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),e>0&&i>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:e,height:i},c.strokeWidth())),d[t?"show":"hide"](),n.styledMode&&"none"===d.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),tB(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())&&e.titleOffset[0]>0?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(o-=e.titleOffset[2]),o!==t.y&&(t=tV(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(tV(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,n,r=this,s=this.chart,a=s.renderer,l=this.options,h=l.y,d="top"===l.verticalAlign,c=this.padding,p=l.maxHeight,u=l.navigation,f=tJ(u.animation,!0),g=u.arrowSize||12,v=this.pages,m=this.allItems,y=function(t){"number"==typeof t?k.attr({height:t}):k&&(r.clipRect=k.destroy(),r.contentGroup.clip()),r.contentGroup.div&&(r.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},x=function(t){return r[t]=a.circle(0,0,1.3*g).translate(g/2,g/2).add(M),s.styledMode||r[t].attr("fill","rgba(0,0,0,0.0001)"),r[t]},b=s.spacingBox.height+(d?-h:h)-c,M=this.nav,k=this.clipRect;return"horizontal"!==l.layout||"middle"===l.verticalAlign||l.floating||(b/=2),p&&(b=Math.min(b,p)),v.length=0,t&&b>0&&t>b&&!1!==u.enabled?(this.clipHeight=e=Math.max(b-20-this.titleHeight-c,0),this.currentPage=tJ(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,r){var s=(o=t.legendItem||{}).y||0,a=Math.round(o.label.getBBox().height),l=v.length;(!l||s-v[l-1]>e&&(i||s)!==v[l-1])&&(v.push(i||s),l++),o.pageIx=l-1,i&&n&&(n.pageIx=l-1),r===m.length-1&&s+a-v[l-1]>e&&s>v[l-1]&&(v.push(s),o.pageIx=l),s!==i&&(i=s),n=o}),k||(k=r.clipRect=a.clipRect(0,c-2,9999,0),r.contentGroup.clip(k)),y(e),M||(this.nav=M=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,g,g).add(M),x("upTracker").on("click",function(){r.scroll(-1,f)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(M),this.down=a.symbol("triangle-down",0,0,g,g).add(M),x("downTracker").on("click",function(){r.scroll(1,f)})),r.scroll(0),t=b):M&&(y(),this.nav=M.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,n=this.pages,r=n.length,s=this.clipHeight,a=this.options.navigation,l=this.pager,h=this.padding,d=this.currentPage+t;d>r&&(d=r),d>0&&(void 0!==e&&eT(e,o),this.nav.attr({translateX:h,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:d+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:d===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===d?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===r?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:d===r?"default":"pointer"})),this.scrollOffset=-n[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t9(function(){tB(i,"afterScroll",{currentPage:d})},ek(tJ(e,o.renderer.globalAnimation,!0)).duration))},t.prototype.setItemEvents=function(t,e,i){for(var o=this,n=t.legendItem||{},r=o.chart.renderer.boxWrapper,s=t instanceof iY,a=t instanceof oa,l="highcharts-legend-"+(s?"point":"series")+"-active",h=o.chart.styledMode,d=i?[e,n.symbol]:[n.group],c=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})},p=0;p<d.length;p++){var u=d[p];u&&u.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&r.addClass(l),h||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(tV(t.visible?o.itemStyle:o.itemHiddenStyle)),c(""),r.removeClass(l),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};r.removeClass(l),tB(o,"itemClick",{browserEvent:e,legendItem:t,context:o},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&tB(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=tk("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),tv(t.checkbox,"click",function(e){var i=e.target;tB(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(m=ou||(ou={})).compose=function(t){t0(oh,"Core.Legend")&&tv(t,"beforeMargins",function(){this.legend=new m(this,this.options.legend)})};var of=ou,og=function(){return(og=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},ov=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},om=eW.numberFormat,oy=ix.registerEventOptions,ox=tp.charts,ob=tp.doc,oM=tp.marginNames,ok=tp.svg,ow=tp.win,oS=i7.seriesTypes,oA=function(){function t(t,e,i){if(this.sharedClips={},!ob)return void ee(36,!1,this);var o=ov([],arguments,!0);(tY(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.setZoomOptions=function(){var t=this.options.chart,e=t.zooming;this.zooming=og(og({},e),{type:tJ(t.zoomType,e.type),key:tJ(t.zoomKey,e.key),pinchType:tJ(t.pinchType,e.pinchType),singleTouch:tJ(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:tV(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){tB(this,"init",{args:arguments},function(){var i,o,n=tV(ep,t),r=n.chart,s=this.renderTo||r.renderTo;this.userOptions=tL({},t),(this.renderTo=tY(s)?ob.getElementById(s):s)||ee(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.locale=null!=(i=n.lang.locale)?i:null==(o=this.renderTo.closest("[lang]"))?void 0:o.lang,this.time=new ed(tL(n.time||{},{locale:this.locale}),n.lang),n.time=this.time.options,this.numberFormatter=(r.numberFormatter||om).bind(this),this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=ox.length,ox.push(this),tp.chartCount++,oy(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tB(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=oS[i];o||ee(17,!0,this,{missingModuleFor:i});var n=new o;return"function"==typeof n.init&&n.init(this,t),n},t.prototype.setSortedData=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.orderItems=function(t,e){void 0===e&&(e=0);var i=this[t],o=this.options[t]=t5(this.options[t]).slice(),n=this.userOptions[t]=this.userOptions[t]?t5(this.userOptions[t]).slice():[];if(this.hasRendered&&(o.splice(e),n.splice(e)),i)for(var r=e,s=i.length;r<s;++r){var a=i[r];a&&(a.index=r,a instanceof oa&&(a.name=a.getName()),a.options.isInternal||(o[r]=a.options,n[r]=a.userOptions))}},t.prototype.getClipBox=function(t,e){var i,o,n,r,s,a=this.inverted,l=t||{},h=l.xAxis,d=l.yAxis,c=tV(this.clipBox),p=c.x,u=c.y,f=c.width,g=c.height;return t&&(h&&h.len!==this.plotSizeX&&(f=h.len),d&&d.len!==this.plotSizeY&&(g=d.len),a&&!t.invertible&&(f=(i=[g,f])[0],g=i[1])),e&&(p+=null!=(n=null==(o=a?d:h)?void 0:o.pos)?n:this.plotLeft,u+=null!=(s=null==(r=a?h:d)?void 0:r.pos)?s:this.plotTop),{x:p,y:u,width:f,height:g}},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o,n=this.inverted,r=this.plotBox,s=this.plotLeft,a=this.plotTop,l=this.scrollablePlotBox,h=i.visiblePlotOnly&&(null==(o=this.scrollablePlotArea)?void 0:o.scrollingContainer)||{},d=h.scrollLeft,c=void 0===d?0:d,p=h.scrollTop,u=void 0===p?0:p,f=i.series,g=i.visiblePlotOnly&&l||r,v=i.inverted?e:t,m=i.inverted?t:e,y={x:v,y:m,isInsidePlot:!0,options:i};if(!i.ignoreX){var x=f&&(n&&!this.polar?f.yAxis:f.xAxis)||{pos:s,len:1/0},b=i.paneCoordinates?x.pos+v:s+v;b>=Math.max(c+s,x.pos)&&b<=Math.min(c+s+g.width,x.pos+x.len)||(y.isInsidePlot=!1)}if(!i.ignoreY&&y.isInsidePlot){var M=!n&&i.axis&&!i.axis.isXAxis&&i.axis||f&&(n?f.xAxis:f.yAxis)||{pos:a,len:1/0},k=i.paneCoordinates?M.pos+m:a+m;k>=Math.max(u+a,M.pos)&&k<=Math.min(u+a+g.height,M.pos+M.len)||(y.isInsidePlot=!1)}return tB(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){tB(this,"beforeRedraw");var e,i,o,n,r=this.hasCartesianSeries?this.axes:this.colorAxis||[],s=this.series,a=this.pointer,l=this.legend,h=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,f=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),eT(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),o=s.length;o--;)if(((n=s[o]).options.stacking||n.options.centerInCategory)&&(i=!0,n.isDirty)){e=!0;break}if(e)for(o=s.length;o--;)(n=s[o]).options.stacking&&(n.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):h&&(h.labelFormatter||h.labelFormat)&&(f=!0)),t.isDirtyData&&tB(t,"updatedData")}),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),r.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),r.forEach(function(t){t.isDirty&&(u=!0)}),r.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){tB(t,"afterSetExtremes",tL(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),tB(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),tB(this,"redraw"),tB(this,"render"),c&&this.temporaryDisplay(!0),p.forEach(function(t){t.call()})},t.prototype.get=function(t){var e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}for(var o=tW(this.axes,i)||tW(this.series,i),n=0;!o&&n<e.length;n++)o=tW(e[n].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;tB(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],n=t[o]=t5(t[o]||{}),r=0;r<n.length;r++)new iP(this,n[r],o);tB(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){tJ(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,o=this,n=this.options[t]=tV(this.options[t],e),r=this[t];r&&e&&(this[t]=r=r.destroy()),n&&!r&&((r=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,i){o.applyDescription(t,e),o.layOutTitles(i)},this.styledMode||r.css(tL("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},n.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:null==(i=n.style)?void 0:i.whiteSpace}),this[t]=r)},t.prototype.layOutTitles=function(t){var e,i,o,n,r=this;void 0===t&&(t=!0);var s=[0,0,0],a=this.options,l=this.renderer,h=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,i=r[t],o=r.options[t],n=tV(h),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){tB(r,"layOutTitle",{alignTo:n,key:t,textPxLength:a});var d=l.fontMetrics(i),c=d.b,p=d.h,u=o.verticalAlign||"top",f="top"===u,g=f&&o.minScale||1,v="title"===t?f?-3:0:f?s[0]+2:0,m=Math.min(n.width/a,1),y=Math.max(g,m),x=tV({y:"bottom"===u?c:v+c},o),b=(o.width||(m>g?r.chartWidth:n.width)/y)+"px";null!=x.align||(x.align="title"===t?m<g?"left":"center":null==(e=r.title)?void 0:e.alignValue),i.alignValue!==x.align&&(i.placed=!1);var M=Math.round(i.css({width:b}).getBBox(o.useHTML).height);if(x.height=M,i.align(x,!1,n).attr({align:x.align,scaleX:y,scaleY:y,"transform-origin":""+(n.x+a*y*tI(x.align))+" ".concat(p)}),!o.floating){var k=M*(M<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+k):"bottom"===u&&(s[2]=Math.ceil(s[2]+k))}}},this),s[0]&&"top"===((null==(e=a.title)?void 0:e.verticalAlign)||"top")&&(s[0]+=(null==(i=a.title)?void 0:i.margin)||0),s[2]&&(null==(o=a.caption)?void 0:o.verticalAlign)==="bottom"&&(s[2]+=(null==(n=a.caption)?void 0:n.margin)||0);var d=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,tB(this,"afterLayOutTitles"),!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())},t.prototype.getContainerBox=function(){var t=this,e=[].map.call(this.renderTo.children,function(e){if(e!==t.container){var i=e.style.display;return e.style.display="none",[e,i]}}),i={width:tN(this.renderTo,"width",!0)||0,height:tN(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(function(t){var e=t[0],i=t[1];e.style.display=i}),i},t.prototype.getChartSize=function(){var t,e=this.options.chart,i=e.width,o=e.height,n=this.getContainerBox(),r=n.height<=1||!(null==(t=this.renderTo.parentElement)?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||n.width||600),this.chartHeight=Math.max(0,t1(o,this.chartWidth)||(r?400:n.height)),this.containerBox=n},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;null==i?void 0:i.style;)i.hcOrigStyle&&(tS(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(ob.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;(null==i?void 0:i.style)&&(ob.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,ob.body.appendChild(i)),("none"===tN(i,"display",!1)||i.hcOrigDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),tS(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==ob.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i,o=this.options,n=o.chart,r="data-highcharts-chart",s=en(),a=this.renderTo,l=tQ(tx(a,r));tF(l)&&ox[l]&&ox[l].hasRendered&&ox[l].destroy(),tx(a,r,this.index),a.innerHTML=eE.emptyHTML,n.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();var h=this.chartHeight,d=this.chartWidth;tS(a,{overflow:"hidden"}),this.styledMode||(i=tL({position:"relative",overflow:"hidden",width:d+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},n.style||{}));var c=tk("div",{id:s},i,a);this.container=c,this.getChartSize(),d!==this.chartWidth&&(d=this.chartWidth,this.styledMode||tS(c,{width:tJ(null==(t=n.style)?void 0:t.width,d+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;var p=n.renderer||!ok?eG.getRendererType(n.renderer):il;if(this.renderer=new p(c,d,h,void 0,n.forExport,null==(e=o.exporting)?void 0:e.allowHTML,this.styledMode),eT(void 0,this),this.setClassName(n.className),this.styledMode)for(var u in o.defs)this.renderer.definition(o.defs[u]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,tB(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e,i=this.spacing,o=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!tA(o[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+i[0])),n[2]&&!tA(o[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+i[2])),(null==(e=this.legend)?void 0:e.display)&&this.legend.adjustMargins(o,i),tB(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,n=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?n(t.axes):(null==i?void 0:i.length)&&n(i),oM.forEach(function(i,n){tA(o[n])||(t[i]+=e[n])}),t.setChartSize()},t.prototype.getOptions=function(){return tC(this.userOptions,ep)},t.prototype.reflow=function(t){var e,i,o=this,n=o.containerBox,r=o.getContainerBox();null==(e=o.pointer)||delete e.chartPosition,(null==(i=o.exporting)?void 0:i.isPrinting)||o.isResizing||!n||!r.width||((r.width!==n.width||r.height!==n.height)&&(tG(o.reflowTimeout),o.reflowTimeout=t9(function(){if(o.container){o.setSize(void 0,void 0,!1);var t=o.containerBox;t&&(t.height=o.chartHeight)}},100*!!t)),o.containerBox=r)},t.prototype.setReflow=function(){var t=this,e=function(e){var i;(null==(i=t.options)?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{var i=tv(ow,"resize",e);tv(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,n=o.renderer;o.isResizing+=1,eT(i,o);var r=n.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();var s=o.chartWidth,a=o.chartHeight,l=o.scrollablePixelsX,h=o.scrollablePixelsY;(o.isDirtyBox||s!==o.oldChartWidth||a!==o.oldChartHeight)&&(o.styledMode||(r?eS:tS)(o.container,{width:""+(s+(void 0===l?0:l))+"px",height:""+(a+(void 0===h?0:h))+"px"},r),o.setChartSize(!0),n.setSize(s,a,r),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(r),o.oldChartHeight=void 0,tB(o,"resize"),setTimeout(function(){o&&tB(o,"endResize")},ek(r).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,n,r,s,a=this.chartHeight,l=this.chartWidth,h=this.inverted,d=this.spacing,c=this.renderer,p=this.clipOffset,u=Math[h?"floor":"round"];this.plotLeft=o=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(l-o-(null!=(e=this.marginRight)?e:0))),this.plotHeight=s=Math.max(0,Math.round(a-n-(null!=(i=this.marginBottom)?i:0))),this.plotSizeX=h?s:r,this.plotSizeY=h?r:s,this.spacingBox=c.spacingBox={x:d[3],y:d[0],width:l-d[3]-d[1],height:a-d[0]-d[2]},this.plotBox=c.plotBox={x:o,y:n,width:r,height:s},p&&(this.clipBox={x:u(p[3]),y:u(p[0]),width:u(this.plotSizeX-p[1]-p[3]),height:u(this.plotSizeY-p[0]-p[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),c.alignElements()),tB(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){tB(this,"resetMargins");var t=this,e=t.options.chart,i=e.plotBorderWidth||0,o=Math.round(i)/2;["margin","spacing"].forEach(function(i){var o=e[i],n=tU(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,r){var s;t[i][r]=null!=(s=e["".concat(i).concat(o)])?s:n[r]})}),oM.forEach(function(e,i){var o;t[e]=null!=(o=t.margin[i])?o:t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[o,o,o,o],t.plotBorderWidth=i},t.prototype.drawChartBox=function(){var t,e,i,o=this.options.chart,n=this.renderer,r=this.chartWidth,s=this.chartHeight,a=this.styledMode,l=this.plotBGImage,h=o.backgroundColor,d=o.plotBackgroundColor,c=o.plotBackgroundImage,p=this.plotLeft,u=this.plotTop,f=this.plotWidth,g=this.plotHeight,v=this.plotBox,m=this.clipRect,y=this.clipBox,x=this.chartBackground,b=this.plotBackground,M=this.plotBorder,k="animate";x||(this.chartBackground=x=n.rect().addClass("highcharts-background").add(),k="attr"),a?t=e=x.strokeWidth():(e=(t=o.borderWidth||0)+8*!!o.shadow,i={fill:h||"none"},(t||x["stroke-width"])&&(i.stroke=o.borderColor,i["stroke-width"]=t),x.attr(i).shadow(o.shadow)),x[k]({x:e/2,y:e/2,width:r-e-t%2,height:s-e-t%2,r:o.borderRadius}),k="animate",b||(k="attr",this.plotBackground=b=n.rect().addClass("highcharts-plot-background").add()),b[k](v),!a&&(b.attr({fill:d||"none"}).shadow(o.plotShadow),c&&(l?(c!==l.attr("href")&&l.attr("href",c),l.animate(v)):this.plotBGImage=n.image(c,p,u,f,g).add())),m?m.animate({width:y.width,height:y.height}):this.clipRect=n.clipRect(y),k="animate",M||(k="attr",this.plotBorder=M=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||M.attr({stroke:o.plotBorderColor,"stroke-width":o.plotBorderWidth||0,fill:"none"}),M[k](M.crisp(v,-M.strokeWidth())),this.isDirtyBox=!1,tB(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,n=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach(function(s){for(e=oS[n.type],i=n[s]||e&&e.prototype[s],t=null==r?void 0:r.length;!i&&t--;)(e=oS[r[t].type])&&e.prototype[s]&&(i=!0);o[s]=i})},t.prototype.linkSeries=function(t){var e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){var o,n,r=t.options.linkedTo,s=tY(r)&&(":previous"===r?i[t.index-1]:e.get(r));s&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,s.enabledDataSorting&&t.setDataSortingOptions(),t.visible=null!=(n=null!=(o=t.options.visible)?o:s.options.visible)?n:t.visible)}),tB(this,"afterLinkSeries",{isUpdating:t})},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.render=function(){var t,e,i,o,n=this.axes,r=this.colorAxis,s=this.renderer,a=this.options.chart.axisLayoutRuns||2,l=function(t){t.forEach(function(t){t.visible&&t.render()})},h=0,d=!0,c=0;this.setTitle(),tB(this,"beforeMargins"),null==(t=this.getStacks)||t.call(this),this.getMargins(!0),this.setChartSize();for(var p=0;p<n.length;p++){var u=n[p],f=u.options,g=f.labels;if(this.hasCartesianSeries&&u.horiz&&u.visible&&g.enabled&&u.series.length&&"colorAxis"!==u.coll&&!this.polar){h=f.tickLength,u.createGroups();var v=new iM(u,0,"",!0),m=v.createLabel("x",g);if(v.destroy(),m&&tJ(g.reserveSpace,!tF(f.crossing))&&(h=m.getBBox().height+g.distance+Math.max(f.offset||0,0)),h){null==m||m.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-h,0);(d||o||a>1)&&c<a;){for(var y=this.plotWidth,x=this.plotHeight,b=[1.05,1.1],M=0;M<n.length;M++){var u=n[M],k=+(u.horiz||0);if(0===c){u.setScale();var w=null==(i=null==(e=u.tickPositions)?void 0:e.info)?void 0:i.match;w&&(b[k]=Math.min(w,b[k]))}else(k&&d||!k&&o)&&u.setTickInterval(!0)}0===c?this.getAxisMargins():this.getMargins(),d=y/this.plotWidth>(c?1:b[1]),o=x/this.plotHeight>(c?1:b[0]),c++}this.drawChartBox(),this.hasCartesianSeries?l(n):(null==r?void 0:r.length)&&l(r),this.seriesGroup||(this.seriesGroup=s.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e,i=this,o=tV(!0,this.options.credits,t);o.enabled&&!this.credits&&(this.credits=this.renderer.text(o.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(t){tB(i,"creditsClick",t,function(){o.href&&(ow.location.href=o.href)})}).attr({align:o.position.align,zIndex:8}),(null==(e=o.events)?void 0:e.click)&&tv(i,"creditsClick",o.events.click),i.styledMode||this.credits.css(o.style),this.credits.add().align(o.position),this.credits.update=function(t){i.credits=i.credits.destroy(),i.addCredits(t)})},t.prototype.destroy=function(){var t,e,i,o=this,n=o.axes,r=o.series,s=o.container,a=null==s?void 0:s.parentNode;for(tB(o,"destroy"),o.renderer.forExport?tO(ox,o):ox[o.index]=void 0,tp.chartCount--,o.renderTo.removeAttribute("data-highcharts-chart"),t3(o),i=n.length;i--;)n[i]=n[i].destroy();for(null==(e=null==(t=this.scroller)?void 0:t.destroy)||e.call(t),i=r.length;i--;)r[i]=r[i].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var e,i;o[t]=null==(i=null==(e=o[t])?void 0:e.destroy)?void 0:i.call(e)}),s&&(s.innerHTML=eE.emptyHTML,t3(s),a&&tP(s)),tK(o,function(t,e){delete o[e]})},t.prototype.firstRender=function(){var t,e=this,i=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();var o=t_(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),tB(e,"beforeRender"),e.render(),null==(t=e.pointer)||t.getChartPosition(),e.renderer.asyncCounter||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),tB(this,"load"),tB(this,"render"),tA(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==e?void 0:e.element.textContent)||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||ee('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.warnIfCSSNotLoaded=function(){this.styledMode&&"0"!==ow.getComputedStyle(this.container).zIndex&&ee(35,!1,this)},t.prototype.addSeries=function(t,e,i){var o,n=this;return t&&(e=tJ(e,!0),tB(n,"addSeries",{options:t},function(){o=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),tB(n,"afterAddSeries",{series:o}),e&&n.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,e){var i=new iP(this,e.axis,t);return tJ(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e,i,o,n,r=this,s=r.options,a=s.loading,l=null!=(e=null==a?void 0:a.style)?e:{},h=function(){var t,e,i,o;d&&tS(d,{left:null!=(t=l.left)?t:r.plotLeft+"px",top:null!=(e=l.top)?e:r.plotTop+"px",width:null!=(i=l.width)?i:r.plotWidth+"px",height:null!=(o=l.height)?o:r.plotHeight+"px"})},d=r.loadingDiv,c=r.loadingSpan;d||(r.loadingDiv=d=tk("div",{className:"highcharts-loading highcharts-loading-hidden"},null,r.container)),c||(r.loadingSpan=c=tk("span",{className:"highcharts-loading-inner"},null,d),tv(r,"redraw",h)),d.className="highcharts-loading",eE.setElementHTML(c,tJ(t,s.lang.loading,"")),!r.styledMode&&(tS(d,tL(l,{zIndex:10})),tS(c,null!=(i=null==a?void 0:a.labelStyle)?i:{}),r.loadingShown||(tS(d,{opacity:0,display:""}),eS(d,{opacity:null!=(o=l.opacity)?o:.5},{duration:null!=(n=null==a?void 0:a.showDuration)?n:0}))),r.loadingShown=!0,h()},t.prototype.hideLoading=function(){var t,e,i=this.options,o=this.loadingDiv;o&&(o.className="highcharts-loading highcharts-loading-hidden",this.styledMode||eS(o,{opacity:0},{duration:null!=(e=null==(t=i.loading)?void 0:t.hideDuration)?e:100,complete:function(){tS(o,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var n,r,s,a=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,d=[];tB(a,"update",{options:t}),h||a.setResponsive(!1,!0),t=tC(t,a.options),a.userOptions=tV(a.userOptions,t);var c=t.chart;c&&(tV(!0,a.options.chart,c),this.setZoomOptions(),"className"in c&&a.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(a.propFromSeries(),n=!0),"alignTicks"in c&&(n=!0),"events"in c&&oy(this,c),tK(c,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(a.isDirtyBox=!0,h||(s=!0))}),!a.styledMode&&c.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),tK(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[l[i]]?a[l[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&tV(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(r=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(t5(t[e]).forEach(function(t,o){if(t){var n,r=tA(t.id);r&&(n=a.get(t.id)),!n&&a[e]&&(n=a[e][tJ(t.index,o)])&&(r&&tA(n.options.id)||n.options.isInternal)&&(n=void 0),n&&n.coll===e&&(n.update(t,!1),i&&(n.touched=!0)),!n&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),n&&a.axes.forEach(function(t){t.update({},!1)}),r&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);var p=null==c?void 0:c.width,u=c&&(tY(c.height)?t1(c.height,p||a.chartWidth):c.height);s||tF(p)&&p!==a.chartWidth||tF(u)&&u!==a.chartHeight?a.setSize(p,u,o):tJ(e,!0)&&a.redraw(o),tB(a,"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(){var t=this,e=ep.lang,i=t.zooming.resetButton,o=i.theme,n="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function r(){t.zoomOut()}tB(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,n)}),tB(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;tB(this,"selection",{resetSelection:!0},function(){return t.transform({reset:!0,trigger:"zoom"})})},t.prototype.pan=function(t,e){var i=this,o="object"==typeof e?e:{enabled:e,type:"x"},n=o.type,r=n&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[n]].filter(function(t){return t.options.panningEnabled&&!t.options.isInternal}),s=i.options.chart;(null==s?void 0:s.panning)&&(s.panning=o),tB(this,"pan",{originalEvent:t},function(){i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),tS(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e=this,i=t.axes,o=void 0===i?this.axes:i,n=t.event,r=t.from,s=void 0===r?{}:r,a=t.reset,l=t.selection,h=t.to,d=void 0===h?{}:h,c=t.trigger,p=t.allowResetButton,u=void 0===p||p,f=this.inverted,g=this.time;null==(m=this.hoverPoints)||m.forEach(function(t){return t.setState()}),tB(this,"transform",t);for(var v,m,y,x,b,M,k=t.hasZoomed||!1,w=0;w<o.length;w++){var S=o[w],A=S.horiz,T=S.len,P=S.minPointOffset,C=void 0===P?0:P,O=S.options,L=S.reversed,E=A?"width":"height",B=A?"x":"y",I=tJ(d[E],S.len),D=tJ(s[E],S.len),z=10>Math.abs(I)?1:I/D,R=(s[B]||0)+D/2-S.pos,N=R-((null!=(y=d[B])?y:S.pos)+I/2-S.pos)/z,W=L&&!f||!L&&f?-1:1;if(a||!(R<0)&&!(R>S.len)){var G=S.chart.polar||S.isOrdinal?0:C*W||0,X=S.toValue(N,!0),H=S.toValue(N+T/z,!0),F=X+G,Y=H-G,_=S.allExtremes;if(l&&l[S.coll].push({axis:S,min:Math.min(X,H),max:Math.max(X,H)}),F>Y&&(F=(v=[Y,F])[0],Y=v[1]),1===z&&!a&&"yAxis"===S.coll&&!_){for(var j=0,U=S.series;j<U.length;j++){var V=U[j],Z=V.getExtremes(V.getProcessedData(!0).modified.getColumn(V.pointValKey||"y")||[],!0);null!=_||(_={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),tF(Z.dataMin)&&tF(Z.dataMax)&&(_.dataMin=Math.min(Z.dataMin,_.dataMin),_.dataMax=Math.max(Z.dataMax,_.dataMax))}S.allExtremes=_}var K=tL(S.getExtremes(),_||{}),q=K.dataMin,$=K.dataMax,J=K.min,Q=K.max,tt=g.parse(O.min),te=g.parse(O.max),ti=null!=q?q:tt,to=null!=$?$:te,tn=Y-F,tr=S.categories?0:Math.min(tn,to-ti),ts=ti-tr*(tA(tt)?0:O.minPadding),ta=to+tr*(tA(te)?0:O.maxPadding),tl=S.allowZoomOutside||1===z||"zoom"!==c&&z>1,th=Math.min(null!=tt?tt:ts,ts,tl?J:ts),td=Math.max(null!=te?te:ta,ta,tl?Q:ta);(!S.isOrdinal||1!==z||a)&&(F<th&&(F=th,z>=1&&(Y=F+tn)),Y>td&&(Y=td,z>=1&&(F=Y-tn)),(a||S.series.length&&(F!==J||Y!==Q)&&F>=th&&Y<=td)&&(l?l[S.coll].push({axis:S,min:F,max:Y}):(S.isPanning="zoom"!==c,S.isPanning&&"mousewheel"!==c&&(M=!0),S.setExtremes(a?void 0:F,a?void 0:Y,!1,!1,{move:N,trigger:c,scale:z}),!a&&(F>th||Y<td)&&(b=u)),k=!0),this.hasCartesianSeries||a||(b=u),n&&(this[A?"mouseDownX":"mouseDownY"]=n[A?"chartX":"chartY"]))}}return k&&(l?tB(this,"selection",l,function(){delete t.selection,t.trigger="zoom",e.transform(t)}):(!b||M||this.resetZoomButton?!b&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(null!=(x=this.options.chart.animation)?x:this.pointCount<100)))),k},t}();tL(oA.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oA.prototype.addAxis,[!0]],yAxis:[oA.prototype.addAxis,[!1]],series:[oA.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});var oT=tp.composed;function oP(){var t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new oO(this)),null==t||t.applyFixed()}function oC(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var oO=function(){function t(t){var e,i,o,n=t.options.chart,r=eG.getRendererType(),s=n.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),l={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(l.overflowX="auto"),t.scrollablePixelsY&&(l.overflowY="auto"),this.chart=t;var h=this.parentDiv=tk("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),d=this.scrollingContainer=tk("div",{className:"highcharts-scrolling"},l,h),c=this.innerContainer=tk("div",{className:"highcharts-inner-container"},void 0,d),p=this.fixedDiv=tk("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(e=n.style)?void 0:e.zIndex)||0)+2,top:0},void 0,!0),u=this.fixedRenderer=new r(p,t.chartWidth,t.chartHeight,n.style);this.mask=u.path().attr({fill:n.backgroundColor||"#fff","fill-opacity":null!=(i=s.opacity)?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(p,d),tS(t.renderTo,{overflow:"visible"}),tv(t,"afterShowResetZoom",a),tv(t,"afterApplyDrilldown",a),tv(t,"afterLayOutTitles",a),tv(d,"scroll",function(){var e=t.pointer,i=t.hoverPoint;e&&(delete e.chartPosition,i&&(o=i),e.runPointActions(void 0,o,!0))}),c.appendChild(t.container)}return t.compose=function(t,e,i){var o=this;t0(oT,this.compose)&&(tv(t,"afterInit",oC),tv(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),tv(e,"render",oP),tv(i,"show",oC))},t.afterSetSize=function(t,e){var i,o,n,r=t.options.chart.scrollablePlotArea||{},s=r.minWidth,a=r.minHeight,l=t.clipBox,h=t.plotBox,d=t.inverted;if(!t.renderer.forExport)if(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=tV(t.plotBox),h.width=t.plotWidth+=i,l[d?"height":"width"]+=i,n=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),tA(o)&&(t.scrollablePlotBox=tV(t.plotBox),h.height=t.plotHeight+=o,l[d?"width":"height"]+=o,n=!1)),tA(n)){if(!e.skipAxes)for(var c=0,p=t.axes;c<p.length;c++){var u=p[c];(u.horiz===n||t.hasParallelCoordinates&&"yAxis"===u.coll)&&(u.setAxisSize(),u.setAxisTranslation())}}else delete t.scrollablePlotBox},t.prototype.applyFixed=function(){var t,e=this.chart,i=this.fixedRenderer,o=this.isDirty,n=this.scrollingContainer,r=e.axisOffset,s=e.chartWidth,a=e.chartHeight,l=e.container,h=e.plotHeight,d=e.plotLeft,c=e.plotTop,p=e.plotWidth,u=e.scrollablePixelsX,f=void 0===u?0:u,g=e.scrollablePixelsY,v=void 0===g?0:g,m=e.options.chart.scrollablePlotArea||{},y=m.scrollPositionX,x=m.scrollPositionY,b=s+f,M=a+v;i.setSize(s,a),(null==o||o)&&(this.isDirty=!1,this.moveFixedElements()),ew(e.container),tS(l,{width:""+b+"px",height:""+M+"px"}),e.renderer.boxWrapper.attr({width:b,height:M,viewBox:["0 0",b,M].join(" ")}),null==(t=e.chartBackground)||t.attr({width:b,height:M}),tS(n,{width:""+s+"px",height:""+a+"px"}),tA(o)||(n.scrollLeft=f*(void 0===y?0:y),n.scrollTop=v*(void 0===x?0:x));var k=c-r[0]-1,w=d-r[3]-1,S=c+h+r[2]+1,A=d+p+r[1]+1,T=d+p-f,P=c+h-v,C=[["M",0,0]];f?C=[["M",0,k],["L",d-1,k],["L",d-1,S],["L",0,S],["Z"],["M",T,k],["L",s,k],["L",s,S],["L",T,S],["Z"]]:v&&(C=[["M",w,0],["L",w,c-1],["L",A,c-1],["L",A,0],["Z"],["M",w,P],["L",w,a],["L",A,a],["L",A,P],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:C})},t.prototype.moveFixedElements=function(){var e,i=this.chart,o=i.container,n=i.inverted,r=i.scrollablePixelsX,s=i.scrollablePixelsY,a=this.fixedRenderer,l=t.fixedSelectors.slice();if(r&&!n?e=".highcharts-yaxis":r&&n||s&&!n?e=".highcharts-xaxis":s&&n&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e))for(var h=0,d=[""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)"];h<d.length;h++){var c=d[h];t0(l,c)}else for(var p=0,u=[".highcharts-xaxis",".highcharts-yaxis"];p<u.length;p++)for(var f=u[p],g=0,v=[""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)"];g<v.length;g++){var c=v[g];tO(l,c)}for(var m=0;m<l.length;m++){var c=l[m];[].forEach.call(o.querySelectorAll(c),function(t){(t.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}},t.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],t}(),oL=eW.format,oE=i7.series,oB=function(){function t(t,e,i,o,n){var r=t.chart.inverted,s=t.reversed;this.axis=t;var a=this.isNegative=!!i!=!!s;this.options=e=e||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=n,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?a?"right":"left":"center")}return t.prototype.destroy=function(){tT(this,this.axis)},t.prototype.render=function(t){var e,i=this.axis.chart,o=this.options,n=o.format,r=(n?oL(n,this,i):null==(e=o.formatter)?void 0:e.call(this,this))||"";if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=i.renderer.label(r,null,void 0,o.shape,void 0,void 0,o.useHTML,!1,"stack-labels");var s={r:o.borderRadius||0,text:r,padding:tJ(o.padding,5),visibility:"hidden"};i.styledMode||(s.fill=o.backgroundColor,s.stroke=o.borderColor,s["stroke-width"]=o.borderWidth,this.label.css(o.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=i.plotSizeY,tB(this,"afterRender")},t.prototype.setOffset=function(t,e,i,o,n,r){var s=this.alignOptions,a=this.axis,l=this.label,h=this.options,d=this.textAlign,c=a.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:n,xAxis:r}),u=s.verticalAlign;if(l&&p){var f=l.getBBox(void 0,0),g=l.padding,v="justify"===tJ(h.overflow,"justify"),m=void 0;s.x=h.x||0,s.y=h.y||0;var y=this.adjustStackPosition({labelBox:f,verticalAlign:u,textAlign:d}),x=y.x,b=y.y;p.x-=x,p.y-=b,l.align(s,!1,p),(m=c.isInsidePlot(l.alignAttr.x+s.x+x,l.alignAttr.y+s.y+b))||(v=!1),v&&oE.prototype.justifyDataLabel.call(a,l,s,l.alignAttr,f,p),l.attr({x:l.alignAttr.x,y:l.alignAttr.y,rotation:h.rotation,rotationOriginX:f.width*tI(h.textAlign||"center"),rotationOriginY:f.height/2}),tJ(!v&&h.crop,!0)&&(m=tF(l.x)&&tF(l.y)&&c.isInsidePlot(l.x-g+(l.width||0),l.y)&&c.isInsidePlot(l.x+g,l.y)),l[m?"show":"hide"]()}tB(this,"afterSetOffset",{xOffset:t,width:e})},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i=t.verticalAlign,o=t.textAlign;return{x:e.width/2+e.width/2*(2*tI(o)-1),y:e.height/2*2*(1-tI(i))}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,n=t.defaultX,r=t.xOffset,s=t.width,a=t.boxBottom,l=e.stacking.usePercentage?100:tJ(o,this.total,0),h=e.toPixels(l),d=t.xAxis||i.xAxis[0],c=tJ(n,d.translate(this.x))+r,p=Math.abs(h-e.toPixels(a||tF(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,f=this.isNegative;return u?{x:(f?h:h-p)-i.plotLeft,y:d.height-c-s+d.top-i.plotTop,width:p,height:s}:{x:c+d.transB-i.plotLeft,y:(f?h-p:h)-i.plotTop,width:s,height:p}},t}(),oI=i7.series.prototype;function oD(){var t=this.inverted;this.axes.forEach(function(t){var e;(null==(e=t.stacking)?void 0:e.stacks)&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(function(e){var i,o=(null==(i=e.xAxis)?void 0:i.options)||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,tJ(e.options.stack,""),t?o.top:o.left,t?o.height:o.width].join(","))})}function oz(){var t,e=this.stacking;if(e){var i=e.stacks;tK(i,function(t,e){tT(t),delete i[e]}),null==(t=e.stackTotalGroup)||t.destroy()}}function oR(){this.stacking||(this.stacking=new oF(this))}function oN(t,e,i,o){return!tA(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(","),t}function oW(){var t,e=this,i=e.yAxis,o=e.stackKey||"",n=i.stacking.stacks,r=e.getColumn("x",!0),s=e.options.stacking,a=e[s+"Stacker"];a&&[o,"-"+o].forEach(function(i){for(var o,s,l,h,d=r.length;d--;)s=r[d],t=e.getStackIndicator(t,s,e.index,i),(h=null==(l=null==(o=n[i])?void 0:o[s])?void 0:l.points[t.key||""])&&a.call(e,h,l,d)})}function oG(t,e,i){var o=e.total?100/e.total:0;t[0]=tM(t[0]*o),t[1]=tM(t[1]*o),this.stackedYData[i]=t[1]}function oX(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?oI.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function oH(t,e){var i,o,n,r,s,a,l,h,d,c=e||this.options.stacking;if(c&&this.reserveSpace()&&(({group:"xAxis"})[c]||"yAxis")===t.coll){var p=this.getColumn("x",!0),u=this.getColumn(this.pointValKey||"y",!0),f=[],g=u.length,v=this.options,m=v.threshold||0,y=v.startFromThreshold?m:0,x=v.stack,b=e?""+this.type+",".concat(c):this.stackKey||"",M="-"+b,k=this.negStacks,w=t.stacking,S=w.stacks,A=w.oldStacks;for(w.stacksTouched+=1,d=0;d<g;d++){var T=p[d]||0,P=u[d],C=tF(P)&&P||0;h=(n=this.getStackIndicator(n,T,this.index)).key||"",S[l=(r=k&&C<(y?0:m))?M:b]||(S[l]={}),S[l][T]||((null==(i=A[l])?void 0:i[T])?(S[l][T]=A[l][T],S[l][T].total=null):S[l][T]=new oB(t,t.options.stackLabels,!!r,T,x)),s=S[l][T],null!==P?(s.points[h]=s.points[this.index]=[tJ(s.cumulative,y)],tA(s.cumulative)||(s.base=h),s.touched=w.stacksTouched,n.index>0&&!1===this.singleStacks&&(s.points[h][0]=s.points[this.index+","+T+",0"][0])):(delete s.points[h],delete s.points[this.index]);var O=s.total||0;"percent"===c?(a=r?b:M,O=k&&(null==(o=S[a])?void 0:o[T])?(a=S[a][T]).total=Math.max(a.total||0,O)+Math.abs(C):tM(O+Math.abs(C))):"group"===c?tF(P)&&O++:O=tM(O+C),"group"===c?s.cumulative=(O||1)-1:s.cumulative=tM(tJ(s.cumulative,y)+C),s.total=O,null!==P&&(s.points[h].push(s.cumulative),f[d]=s.cumulative,s.hasValidPoints=!0)}"percent"===c&&(w.usePercentage=!0),"group"!==c&&(this.stackedYData=f),w.oldStacks={}}}var oF=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e,i=this.axis,o=i.series,n="xAxis"===i.coll,r=i.options.reversedStacks,s=o.length;for(this.resetStacks(),this.usePercentage=!1,e=s;e--;)t=o[r?e:s-e-1],n&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!n)for(e=0;e<s;e++)o[e].modifyStacks();tB(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,tK(this.stacks,function(t){tK(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;tK(this.stacks,function(e){tK(e,function(i,o){tF(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t,e=this.axis,i=e.chart,o=i.renderer,n=this.stacks,r=eA(i,(null==(t=e.options.stackLabels)?void 0:t.animation)||!1),s=this.stackTotalGroup=this.stackTotalGroup||o.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),tK(n,function(t){tK(t,function(t){t.render(s)})}),s.animate({opacity:1},r)},t}();(q||(q={})).compose=function(t,e,i){var o=e.prototype,n=i.prototype;o.getStacks||(tv(t,"init",oR),tv(t,"destroy",oz),o.getStacks=oD,n.getStackIndicator=oN,n.modifyStacks=oW,n.percentStacker=oG,n.setGroupedPoints=oX,n.setStackedPoints=oH)};var oY=q,o_=(y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oj=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},oU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o_(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;oj([this],this.zones,!0).forEach(function(n,r){var s,a=n.graph,l=a?"animate":"attr",h=n.dashStyle||e.dashStyle;if(a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(n.graph=a=t.chart.renderer.path(i).addClass("highcharts-graph"+(r?" highcharts-zone-graph-".concat(r-1," "):" ")+(r&&n.className||"")).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:!r&&e.lineColor||n.color||t.color||"#cccccc","stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},h?s.dashstyle=h:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[l](s),e.shadow)){var d=t.chart.inverted,c={filterUnits:"userSpaceOnUse"},p=tU(e.shadow)?tV(d?{}:c,e.shadow):!!d||c;a.shadow(p)}a&&(a.startX=i.xMap,a.isArea=i.isArea)})},e.prototype.getGraphPath=function(t,e,i){var o,n=this,r=n.options,s=[],a=[],l=r.step,h=(t=t||n.points).reversed;return h&&t.reverse(),(l=({right:1,center:2})[l]||l&&3)&&h&&(l=4-l),(t=this.getValidPoints(t,!1,r.nullInteraction||!(r.connectNulls&&!e&&!i))).forEach(function(h,d){var c,p=h.plotX,u=h.plotY,f=t[d-1],g=h.isNull||"number"!=typeof u;(h.leftCliff||(null==f?void 0:f.rightCliff))&&!i&&(o=!0),g&&!tA(e)&&d>0?o=!r.connectNulls:g&&!e?o=!0:(0===d||o?c=[["M",h.plotX,h.plotY]]:n.getPointSpline?c=[n.getPointSpline(t,h,d)]:l?(c=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]):c=[["L",p,u]],a.push(h.x),l&&(a.push(h.x),2===l&&a.push(h.x)),s.push.apply(s,c),o=!1)}),s.xMap=a,n.graphPath=s,s},e.defaultOptions=tV(oa.defaultOptions,{legendSymbol:"lineMarker"}),e}(oa);i7.registerSeriesType("line",oU);var oV={threshold:0,legendSymbol:"areaMarker"},oZ=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oK=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},oq=i7.seriesTypes.line,o$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oZ(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;oK([this],this.zones,!0).forEach(function(t,n){var r,s={},a=t.fillColor||o.fillColor,l=t.area,h=l?"animate":"attr";l?(l.endX=e.preventGraphAnimation?null:i.xMap,l.animate({d:i})):(s.zIndex=0,(l=t.area=e.chart.renderer.path(i).addClass("highcharts-area"+(n?" highcharts-zone-area-".concat(n-1," "):" ")+(n&&t.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=a||t.color||e.color,s["fill-opacity"]=a?1:null!=(r=o.fillOpacity)?r:.75,l.css({pointerEvents:e.stickyTracking?"none":"auto"})),l[h](s),l.startX=i.xMap,l.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i,o,n=oq.prototype.getGraphPath,r=this.options,s=r.stacking,a=this.yAxis,l=[],h=[],d=this.index,c=a.stacking.stacks[this.stackKey],p=r.threshold,u=Math.round(a.getThreshold(r.threshold)),f=tJ(r.connectNulls,"percent"===s),g=function(i,o,n){var r,f,g=t[i],v=t[o],m=s&&c[g.x].points[d],y=g[n+"Null"]||0,x=g[n+"Cliff"]||0,b=!0;m&&(x||y)?(r=(y?m[0]:m[1])+x,f=m[0]+x,b=!!y):!s&&v&&(v.isNull||!tA(v.plotY))&&(r=f=p),void 0!==r&&(h.push({plotX:e,plotY:null===r?u:a.getThreshold(r),isNull:b,isCliff:!0}),l.push({plotX:e,plotY:null===f?u:a.getThreshold(f),doCurve:!1}))};t=t||this.points,s&&(t=this.getStackPoints(t));for(var v=0,m=t.length;v<m;++v)s||(t[v].leftCliff=t[v].rightCliff=t[v].leftNull=t[v].rightNull=void 0),i=t[v].isNull||!tA(t[v].plotY),e=tJ(t[v].rectPlotX,t[v].plotX),o=s?tJ(t[v].yBottom,u):u,(!i||f)&&(f||g(v,v-1,"left"),i&&!s&&f||(h.push(t[v]),l.push({x:v,plotX:e,plotY:o})),f||g(v,v+1,"right"));var y=n.call(this,h,!0,!0);l.reversed=!0;var x=n.call(this,l,!0,!0),b=x[0];b&&"M"===b[0]&&(x[0]=["L",b[1],b[2]]);var M=y.concat(x);M.length&&M.push(["Z"]);var k=n.call(this,h,!1,f);return this.chart.series.length>1&&s&&h.some(function(t){return t.isCliff})&&(M.hasStackedCliffs=k.hasStackedCliffs=!0),M.xMap=y.xMap,this.areaPath=M,k},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],n=this.xAxis,r=this.yAxis,s=r.stacking.stacks[this.stackKey],a={},l=r.series,h=l.length,d=r.options.reversedStacks?1:-1,c=l.indexOf(e),p=r.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(var u=0;u<t.length;u++)t[u].leftNull=t[u].rightNull=void 0,a[t[u].x]=t[u];tK(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var f=l.map(function(t){return t.visible});o.forEach(function(t,u){var g,v,m=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var n=1===i?"rightNull":"leftNull",r=s[o[u+i]],p=0;if(r)for(var m=c;m>=0&&m<h;){var y=l[m].index;!(g=r.points[y])&&(y===e.index?a[t][n]=!0:f[m]&&(v=s[t].points[y])&&(p-=v[1]-v[0])),m+=d}a[t][1===i?"rightCliff":"leftCliff"]=p});else{for(var y=c;y>=0&&y<h;){var x=l[y].index;if(g=s[t].points[x]){m=g[1];break}y+=d}m||(m=0);var b=r.positiveValuesOnly&&m<=0?p:r.translate(m,!1,!0,!1,!0);i.push({isNull:!0,plotX:n.translate(t,!1,!1,!1,!0),x:t,plotY:b,yBottom:b})}})}return i},e.defaultOptions=tV(oq.defaultOptions,oV),e}(oq);tL(o$.prototype,{singleStacks:!1}),i7.registerSeriesType("area",o$);var oJ=(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oQ=i7.seriesTypes.line,o0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oJ(e,t),e.prototype.getPointSpline=function(t,e,i){var o,n,r,s,a=e.plotX||0,l=e.plotY||0,h=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(h)&&c(d)){var p=h.plotX||0,u=h.plotY||0,f=d.plotX||0,g=d.plotY||0,v=0;o=(1.5*a+p)/2.5,n=(1.5*l+u)/2.5,r=(1.5*a+f)/2.5,s=(1.5*l+g)/2.5,r!==o&&(v=(s-n)*(r-a)/(r-o)+l-s),n+=v,s+=v,n>u&&n>l?(n=Math.max(u,l),s=2*l-n):n<u&&n<l&&(n=Math.min(u,l),s=2*l-n),s>g&&s>l?(s=Math.max(g,l),n=2*l-s):s<g&&s<l&&(s=Math.min(g,l),n=2*l-s),e.rightContX=r,e.rightContY=s,e.controlPoints={low:[o,n],high:[r,s]}}var m=["C",tJ(h.rightContX,h.plotX,0),tJ(h.rightContY,h.plotY,0),tJ(o,a,0),tJ(n,l,0),a,l];return h.rightContX=h.rightContY=void 0,m},e.defaultOptions=tV(oQ.defaultOptions),e}(oQ);i7.registerSeriesType("spline",o0);var o1=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o2=i7.seriesTypes,o3=o2.area,o5=o2.area.prototype,o6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o1(e,t),e.defaultOptions=tV(o0.defaultOptions,o3.defaultOptions),e}(o0);tL(o6.prototype,{getGraphPath:o5.getGraphPath,getStackPoints:o5.getStackPoints,drawGraph:o5.drawGraph}),i7.registerSeriesType("areaspline",o6);var o9={borderRadius:3,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"},o4=(k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o8=ey.parse,o7=tp.noop,nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o4(e,t),e.prototype.animate=function(t){var e,i,o=this,n=this.yAxis,r=n.pos,s=n.reversed,a=o.options,l=this.chart,h=l.clipOffset,d=l.inverted,c={},p=d?"translateX":"translateY";t&&h?(c.scaleY=.001,i=tb(n.toPixels(a.threshold||0),r,r+n.len),d?c.translateX=(i+=s?-Math.floor(h[0]):Math.ceil(h[2]))-n.len:c.translateY=i+=s?Math.ceil(h[0]):-Math.floor(h[2]),o.clipBox&&o.setClip(),o.group.attr(c)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},tL(ek(o.options.animation),{step:function(t,i){o.group&&(c[p]=e+i.pos*(r-e),o.group.attr(c))}})))},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,e,i,o=this,n=o.options,r=o.xAxis,s=o.yAxis,a=r.options.reversedStacks,l=r.reversed&&!a||!r.reversed&&a,h={},d=0;!1===n.grouping?d=1:o.chart.series.forEach(function(t){var e,n=t.yAxis,r=t.options;t.type===o.type&&t.reserveSpace()&&s.len===n.len&&s.pos===n.pos&&(r.stacking&&"group"!==r.stacking?(void 0===h[i=t.stackKey]&&(h[i]=d++),e=h[i]):!1!==r.grouping&&(e=d++),t.columnIndex=e)});var c=Math.min(Math.abs(r.transA)*(!(null==(t=r.brokenAxis)?void 0:t.hasBreaks)&&(null==(e=r.ordinal)?void 0:e.slope)||n.pointRange||r.closestPointRange||r.tickInterval||1),r.len),p=c*n.groupPadding,u=(c-2*p)/(d||1),f=Math.min(n.maxPointWidth||r.len,tJ(n.pointWidth,u*(1-2*n.pointPadding))),g=(o.columnIndex||0)+ +!!l;return o.columnMetrics={width:f,offset:(u-f)/2+(p+g*u-c/2)*(l?-1:1),paddedWidth:u,columnCount:d},o.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var n=this.borderWidth,r=this.chart.inverted;return o=tw(e+o,n,r)-(e=tw(e,n,r)),this.options.crisp&&(i=tw(t+i,n)-(t=tw(t,n))),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var n,r=this;if(!i.isNull&&o.columnCount>1){var s=this.xAxis.series.filter(function(t){return t.visible}).map(function(t){return t.index}),a=0,l=0;tK(null==(n=this.xAxis.stacking)?void 0:n.stacks,function(t){var e,o="number"==typeof i.x?null==(e=t[i.x.toString()])?void 0:e.points:void 0,n=null==o?void 0:o[r.index],h={};if(o&&t_(n)){var d=r.index,c=Object.keys(o).filter(function(t){return!t.match(",")&&o[t]&&o[t].length>1}).map(parseFloat).filter(function(t){return -1!==s.indexOf(t)}).filter(function(t){var e=r.chart.series[t].options,i=e.stacking&&e.stack;if(tA(i)){if(tF(h[i]))return d===t&&(d=h[i]),!1;h[i]=t}return!0}).sort(function(t,e){return e-t});a=c.indexOf(d),l=c.length}}),a=this.xAxis.reversed?l-1-a:a;var h=(l-1)*o.paddedWidth+e;t=(i.plotX||0)+h/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t,e,i=this,o=i.chart,n=i.options,r=i.dense=i.closestPointRange*i.xAxis.transA<2,s=i.borderWidth=null!=(t=n.borderWidth)?t:+!r,a=i.xAxis,l=i.yAxis,h=n.threshold,d=null!=(e=n.minPointLength)?e:5,c=i.getColumnMetrics(),p=c.width,u=i.pointXOffset=c.offset,f=i.dataMin,g=i.dataMax,v=i.translatedThreshold=l.getThreshold(h),m=i.barW=Math.max(p,1+2*s);n.pointPadding&&n.crisp&&(m=Math.ceil(m)),oa.prototype.translate.apply(i),i.points.forEach(function(t){var e,r,s=null!=(e=t.yBottom)?e:v,y=999+Math.abs(s),x=t.plotX||0,b=tb(t.plotY,-y,l.len+y),M=Math.min(b,s),k=Math.max(b,s)-M,w=p,S=x+u,A=m;d&&Math.abs(k)<d&&(k=d,r=!l.reversed&&!t.negative||l.reversed&&t.negative,tF(h)&&tF(g)&&t.y===h&&g<=h&&(l.min||0)<h&&(f!==g||(l.max||0)<=h)&&(r=!r,t.negative=!t.negative),M=Math.abs(M-v)>d?s-(r?d:0):v-(r?d:0)),tA(t.options.pointWidth)&&(S-=Math.round(((w=A=Math.ceil(t.options.pointWidth))-p)/2)),n.centerInCategory&&(S=i.adjustForMissingColumns(S,w,t,c)),t.barX=S,t.pointWidth=w,t.tooltipPos=o.inverted?[tb(l.len+l.pos-o.plotLeft-b,l.pos-o.plotLeft,l.len+l.pos-o.plotLeft),a.len+a.pos-o.plotTop-S-A/2,k]:[a.left-o.plotLeft+S+A/2,tb(b+l.pos-o.plotTop,l.pos-o.plotTop,l.len+l.pos-o.plotTop),k],t.shapeType=i.pointClass.prototype.shapeType||"roundedRect",t.shapeArgs=i.crispCol(S,M,A,t.isNull?0:k)}),tB(this,"afterColumnTranslate")},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i,o,n,r,s,a,l=this.options,h=this.pointAttrToOptions||{},d=h.stroke||"borderColor",c=h["stroke-width"]||"borderWidth",p=t&&t.color||this.color,u=t&&t[d]||l[d]||p,f=t&&t.options.dashStyle||l.dashStyle,g=t&&t[c]||l[c]||this[c]||0,v=(null==t?void 0:t.isNull)&&l.nullInteraction?0:null!=(o=null!=(i=null==t?void 0:t.opacity)?i:l.opacity)?o:1;t&&this.zones.length&&(s=t.getZone(),p=t.options.color||s&&(s.color||t.nonZonedColor)||this.color,s&&(u=s.borderColor||u,f=s.dashStyle||f,g=s.borderWidth||g)),e&&t&&(a=(r=tV(l.states[e],(null==(n=t.options.states)?void 0:n[e])||{})).brightness,p=r.color||void 0!==a&&o8(p).brighten(r.brightness).get()||p,u=r[d]||u,g=r[c]||g,f=r.dashStyle||f,v=tJ(r.opacity,v));var m={fill:p,stroke:u,"stroke-width":g,opacity:v};return f&&(m.dashstyle=f),m},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,n=i.options,r=n.nullInteraction,s=o.renderer,a=n.animationLimit||250;t.forEach(function(t){var l=t.plotY,h=t.graphic,d=!!h,c=h&&o.pointCount<a?"animate":"attr";tF(l)&&(null!==t.y||r)?(e=t.shapeArgs,h&&t.hasNewShapeType()&&(h=h.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!h&&(t.graphic=h=s[t.shapeType](e).add(t.group||i.group),h&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<a&&(h.attr({x:t.startXPos}),d=!0,c="animate")),h&&d&&h[c](tV(e)),o.styledMode||h[c](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&n.shadow),h&&(h.addClass(t.getClassName(),!0),h.attr({visibility:t.visible?"inherit":"hidden"}))):h&&(t.graphic=h.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i,o=this,n=o.chart,r=n.pointer,s=function(t){null==r||r.normalize(t);var e=null==r?void 0:r.getPointFromEvent(t);r&&e&&o.options.enableMouseTracking&&(n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})||o.allowOutsidePlotInteraction&&(null==r?void 0:r.inClass(t.target,"highcharts-point"))||(null==r?void 0:r.inClass(t.target,"highcharts-data-label")))&&(r.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){i=t_(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),i.forEach(function(e){(e.div||e.element).point=t})}),o._hasTracking||(null==(e=o.trackerGroups)||e.reduce(function(t,e){return"dataLabelsGroup"===e?t.push.apply(t,o.dataLabelsGroups||[]):t.push(o[e]),t},[]).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){null==r||r.onTrackerMouseOut(t)}).on("touchstart",s),!n.styledMode&&o.options.cursor&&t.css({cursor:o.options.cursor}))}),o._hasTracking=!0),tB(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)}),oa.prototype.remove.apply(t,arguments)},e.defaultOptions=tV(oa.defaultOptions,o9),e}(oa);tL(nt.prototype,{directTouch:!0,getSymbol:o7,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),i7.registerSeriesType("column",nt);var ne=eW.format;!function(t){function e(){return l(this).some(function(t){return null==t?void 0:t.enabled})}function i(t,e,i,o,n){var r,s=this.chart,a=this.enabledDataSorting,l=this.isCartesian&&s.inverted,h=t.plotX,d=t.plotY,c=i.rotation||0,p=tA(h)&&tA(d)&&s.isInsidePlot(h,Math.round(d),{inverted:l,paneCoordinates:!0,series:this}),u=0===c&&"justify"===tJ(i.overflow,a?"none":"justify"),f=this.visible&&!1!==t.visible&&tA(h)&&(t.series.forceDL||a&&!u||p||tJ(i.inside,!!this.options.stacking)&&o&&s.isInsidePlot(h,l?o.x+1:o.y+o.height-1,{inverted:l,paneCoordinates:!0,series:this})),g=t.pos();if(f&&g){var v,m=e.getBBox(),y=e.getBBox(void 0,0);if(o=tL({x:g[0],y:Math.round(g[1]),width:0,height:0},o||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(o[l?"x":"y"]=0,o[l?"width":"height"]=(null==(r=this.yAxis)?void 0:r.len)||0),tL(i,{width:m.width,height:m.height}),v=o,a&&this.xAxis&&!u&&this.setDataLabelStartPos(t,e,n,p,v),e.align(tV(i,{width:y.width,height:y.height}),!1,o,!1),e.alignAttr.x+=tI(i.align)*(y.width-m.width),e.alignAttr.y+=tI(i.verticalAlign)*(y.height-m.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(m.width-y.width)/2,y:e.alignAttr.y+(m.height-y.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),u&&o.height>=0)this.justifyDataLabel(e,i,e.alignAttr,m,o,n);else if(tJ(i.crop,!0)){var x=e.alignAttr,b=x.x,M=x.y;f=s.isInsidePlot(b,M,{paneCoordinates:!0,series:this})&&s.isInsidePlot(b+m.width-1,M+m.height-1,{paneCoordinates:!0,series:this})}i.shape&&!c&&e[n?"attr":"animate"]({anchorX:g[0],anchorY:g[1]})}n&&a&&(e.placed=!1),f||a&&!u?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function o(t,e){tB(this,"initDataLabelsGroup",{index:t,zIndex:null!=(i=null==e?void 0:e.zIndex)?i:6}),this.dataLabelsGroup=null==(o=this.dataLabelsGroups)?void 0:o[t];var i,o,n,r,s=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",null!=(n=null==e?void 0:e.zIndex)?n:6,null==(r=this.dataLabelsParentGroups)?void 0:r[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=s,this.dataLabelsGroup=this.dataLabelsGroups[0],s}function n(t,e,i){var o=!!this.hasRendered,n=this.initDataLabelsGroup(t,i).attr({opacity:+o});return!o&&n&&(this.visible&&n.show(),this.options.animation?n.animate({opacity:1},e):n.attr({opacity:1})),n}function r(t){var e,i,o=this;t=t||this.points;var n=this,r=n.chart,s=n.options,h=r.renderer,d=r.options.chart,c=d.backgroundColor,p=d.plotBackgroundColor,u=h.getContrast(tY(p)&&p||tY(c)&&c||"#000000"),f=l(n),g=f[0],v=g.animation,m=g.defer?eA(r,v,n):{defer:0,duration:0};tB(this,"drawDataLabels"),(null==(e=n.hasDataLabels)?void 0:e.call(n))&&t.forEach(function(t){var e,l,d,c=t.dataLabels||[],p=t.color||n.color;t5(a(f,t.dlOptions||(null==(e=t.options)?void 0:e.dataLabels))).forEach(function(e,a){i=o.initDataLabels(a,m,e);var l,d,f,g,v,y=e.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;if(i){var o=i.operator,n=t[i.property],r=i.value;return">"===o&&n>r||"<"===o&&n<r||">="===o&&n>=r||"<="===o&&n<=r||"=="===o&&n==r||"==="===o&&n===r||"!="===o&&n!=r||"!=="===o&&n!==r||!1}return!0}(t,e),x=e.backgroundColor,b=e.borderColor,M=e.distance,k=e.style,w=void 0===k?{}:k,S={},A=c[a],T=!A;y&&(f=tA(d=tJ(e[t.formatPrefix+"Format"],e.format))?ne(d,t,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e,t),g=e.rotation,!r.styledMode&&(w.color=tJ(e.color,w.color,tY(n.color)?n.color:void 0,"#000000"),"contrast"===w.color?("none"!==x&&(v=x),t.contrastColor=h.getContrast("auto"!==v&&tY(v)&&v||(tY(p)?p:"")),w.color=v||!tA(M)&&e.inside||0>tQ(M||0)||s.stacking?t.contrastColor:u):delete t.contrastColor,s.cursor&&(w.cursor=s.cursor)),S={r:e.borderRadius||0,rotation:g,padding:e.padding,zIndex:1},r.styledMode||(S.fill="auto"===x?t.color:x,S.stroke="auto"===b?t.color:b,S["stroke-width"]=e.borderWidth),tK(S,function(t,e){void 0===t&&delete S[e]})),!A||y&&tA(f)&&!!(A.div||(null==(l=A.text)?void 0:l.foreignObject))==!!e.useHTML&&(A.rotation&&e.rotation||A.rotation===e.rotation)||(A=void 0,T=!0),y&&tA(f)&&""!==f&&(A?S.text=f:(A=h.label(f,0,0,e.shape,void 0,void 0,e.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":"")),A&&(A.options=e,A.attr(S),r.styledMode?w.width&&A.css({width:w.width,textOverflow:w.textOverflow,whiteSpace:w.whiteSpace}):A.css(w).shadow(e.shadow),tB(A,"beforeAddingDataLabel",{labelOptions:e,point:t}),A.added||A.add(i),n.alignDataLabel(t,A,e,void 0,T),A.isActive=!0,c[a]&&c[a]!==A&&c[a].destroy(),c[a]=A))});for(var g=c.length;g--;)(null==(l=c[g])?void 0:l.isActive)?c[g].isActive=!1:(null==(d=c[g])||d.destroy(),c.splice(g,1));t.dataLabel=c[0],t.dataLabels=c}),tB(this,"afterDrawDataLabels")}function s(t,e,i,o,n,r){var s,a,l=this.chart,h=e.align,d=e.verticalAlign,c=t.box?0:t.padding||0,p=l.inverted?this.yAxis:this.xAxis,u=p?p.left-l.plotLeft:0,f=l.inverted?this.xAxis:this.yAxis,g=f?f.top-l.plotTop:0,v=e.x,m=void 0===v?0:v,y=e.y,x=void 0===y?0:y;return(s=(i.x||0)+c+u)<0&&("right"===h&&m>=0?(e.align="left",e.inside=!0):m-=s,a=!0),(s=(i.x||0)+o.width-c+u)>l.plotWidth&&("left"===h&&m<=0?(e.align="right",e.inside=!0):m+=l.plotWidth-s,a=!0),(s=i.y+c+g)<0&&("bottom"===d&&x>=0?(e.verticalAlign="top",e.inside=!0):x-=s,a=!0),(s=(i.y||0)+o.height-c+g)>l.plotHeight&&("top"===d&&x<=0?(e.verticalAlign="bottom",e.inside=!0):x+=l.plotHeight-s,a=!0),a&&(e.x=m,e.y=x,t.placed=!r,t.align(e,void 0,n)),a}function a(t,e){var i,o=[];if(t_(t)&&!t_(e))o=t.map(function(t){return tV(t,e)});else if(t_(e)&&!t_(t))o=e.map(function(e){return tV(t,e)});else if(t_(t)||t_(e)){if(t_(t)&&t_(e))for(i=Math.max(t.length,e.length);i--;)o[i]=tV(t[i],e[i])}else o=tV(t,e);return o}function l(t){var e,i,o=t.chart.options.plotOptions;return t5(a(a(null==(e=null==o?void 0:o.series)?void 0:e.dataLabels,null==(i=null==o?void 0:o[t.type])?void 0:i.dataLabels),t.options.dataLabels))}function h(t,e,i,o,n){var r=this.chart,s=r.inverted,a=this.xAxis,l=a.reversed,h=((s?e.height:e.width)||0)/2,d=t.pointWidth,c=d?d/2:0;e.startXPos=s?n.x:l?-h-c:a.width-h+c,e.startYPos=s?l?this.yAxis.height-h+c:-h-c:n.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){var l=t.prototype;l.initDataLabels||(l.initDataLabels=n,l.initDataLabelsGroup=o,l.alignDataLabel=i,l.drawDataLabels=r,l.justifyDataLabel=s,l.mergeArrays=a,l.setDataLabelStartPos=h,l.hasDataLabels=e)}}($||($={}));var ni=$,no=tp.composed,nn=i7.series;function nr(t,e,i,o,n){var r,s,a,l,h,d=this.chart,c=this.options,p=d.inverted,u=(null==(r=this.xAxis)?void 0:r.len)||d.plotSizeX||0,f=(null==(s=this.yAxis)?void 0:s.len)||d.plotSizeY||0,g=t.dlBox||t.shapeArgs,v=null!=(a=t.below)?a:(t.plotY||0)>(null!=(l=this.translatedThreshold)?l:f),m=null!=(h=i.inside)?h:!!c.stacking;if(g){if(o=tV(g),"allow"!==i.overflow||!1!==i.crop||!1!==c.clip){o.y<0&&(o.height+=o.y,o.y=0);var y=o.y+o.height-f;y>0&&y<o.height-1&&(o.height-=y)}p&&(o={x:f-o.y-o.height,y:u-o.x-o.width,width:o.height,height:o.width}),m||(p?(o.x+=v?0:o.width,o.width=0):(o.y+=v?o.height:0,o.height=0))}null!=i.align||(i.align=!p||m?"center":v?"right":"left"),null!=i.verticalAlign||(i.verticalAlign=p||m?"middle":v?"top":"bottom"),nn.prototype.alignDataLabel.call(this,t,e,i,o,n),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}(J||(J={})).compose=function(t){ni.compose(nn),t0(no,"ColumnDataLabel")&&(t.prototype.alignDataLabel=nr)};var ns=J,na=(w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return na(e,t),e.defaultOptions=tV(nt.defaultOptions,{}),e}(nt);tL(nl.prototype,{inverted:!0}),i7.registerSeriesType("bar",nl);var nh={lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},nd=(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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),nc=i7.seriesTypes,np=nc.column,nu=nc.line,nf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nd(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,n){["x","y"].forEach(function(r,s){if(e[r]&&!o.isNull){var a="plot".concat(r.toUpperCase()),l=t[""+r+"Axis"],h=e[r]*l.transA;if(l&&!l.logarithmic){var d,c=Math.max(0,(o[a]||0)-h),p=Math.min(l.len,(o[a]||0)+h);o[a]=c+(p-c)*((d=1e4*Math.sin(n+s*i))-Math.floor(d)),"x"===r&&(o.clientX=o.plotX)}}})})},e.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},e.defaultOptions=tV(nu.defaultOptions,nh),e}(nu);tL(nf.prototype,{allowOutsidePlotInteraction:!0,drawTracker:np.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),tv(nf,"afterTranslate",function(){this.applyJitter()}),i7.registerSeriesType("scatter",nf);var ng=tp.deg2rad;(A=Q||(Q={})).getCenter=function(){var t,e,i,o=this.options,n=this.chart,r=2*(o.slicedOffset||0),s=n.plotWidth-2*r,a=n.plotHeight-2*r,l=o.center,h=Math.min(s,a),d=o.thickness,c=o.size,p=o.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof p&&(p=parseFloat(p));var u=[tJ(null==l?void 0:l[0],"50%"),tJ(null==l?void 0:l[1],"50%"),tJ(c&&c<0?void 0:o.size,"100%"),tJ(p&&p<0?void 0:o.innerSize||0,"0%")];for(!n.angular||this instanceof oa||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=t1(i,[s,a,h,u[2]][e])+(t?r:0);return u[3]>u[2]&&(u[3]=u[2]),tF(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),tB(this,"afterGetCenter",{positions:u}),u},A.getStartAndEndRadians=function(t,e){var i=tF(t)?t:0,o=tF(e)&&e>i&&e-i<360?e:i+360;return{start:ng*(i+-90),end:ng*(o+-90)}};var nv=Q,nm=(T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ny=function(){return(ny=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},nx=function(t){function e(e,i,o){var n=t.call(this,e,i,o)||this;n.half=0,null!=n.name||(n.name=e.chart.options.lang.pieSliceName);var r=function(t){n.slice("select"===t.type)};return tv(n,"select",r),tv(n,"unselect",r),n}return nm(e,t),e.prototype.getConnectorPath=function(t){var e=t.dataLabelPosition,i=t.options||{},o=i.connectorShape,n=this.connectorShapes[o]||o;return e&&n.call(this,ny(ny({},e.computed),{alignment:e.alignment}),e.connectorPosition,i)||[]},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,borderRadius:e.borderRadius})},e.prototype.isValid=function(){return tF(this.y)&&this.y>=0},e.prototype.setVisible=function(t,e){void 0===e&&(e=!0),t!==this.visible&&this.update({visible:null!=t?t:!this.visible},e,void 0,!1)},e.prototype.slice=function(t,e,i){var o=this.series;eT(i,o.chart),e=tJ(e,!0),this.sliced=this.options.sliced=t=tA(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())},e}(iY);tL(nx.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,n=e.touchingSliceAt,r=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-n.x,2*o.y-n.y,o.x,o.y]:["L",o.x,o.y];return[["M",t.x,t.y],r,["L",n.x,n.y]]},straight:function(t,e){var i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){var o=e.angle,n=void 0===o?this.angle||0:o,r=e.breakAt,s=e.touchingSliceAt,a=this.series,l=a.center,h=l[0],d=l[1],c=l[2]/2,p=a.chart,u=p.plotLeft,f=p.plotWidth,g="left"===t.alignment,v=t.x,m=t.y,y=r.x;if(i.crookDistance){var x=t1(i.crookDistance,1);y=g?h+c+(f+u-h-c)*(1-x):u+(h-c)*x}else y=h+(d-m)*Math.tan(n-Math.PI/2);var b=[["M",v,m]];return(g?y<=v&&y>=r.x:y>=v&&y<=r.x)&&b.push(["L",y,m]),b.push(["L",r.x,r.y],["L",s.x,s.y]),b}}});var nb={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},nM=(P=function(t,e){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),nk=nv.getStartAndEndRadians,nw=tp.noop,nS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nM(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,n=t.shapeArgs;i&&n&&(i.attr({r:tJ(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,n=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:e0.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})):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,o){var n=this.center,r=this.radii?this.radii[i.index]||0:n[2]/2,s=o.dataLabelPosition,a=(null==s?void 0:s.distance)||0,l=Math.asin(tb((t-n[1])/(r+a),-1,1));return n[0]+Math.cos(l)*(r+a)*(e?-1:1)+(a>0?(e?-1:1)*(o.padding||0):0)},e.prototype.hasData=function(){return this.points.some(function(t){return t.visible})},e.prototype.redrawPoints=function(){var t,e,i,o,n=this,r=n.chart;this.drawEmpty(),n.group&&!r.styledMode&&n.group.shadow(n.options.shadow),n.points.forEach(function(s){var a={};e=s.graphic,!s.isNull&&e?(o=s.shapeArgs,t=s.getTranslate(),r.styledMode||(i=n.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(n.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),s.delayedRendering=!1):(e.setRadialReference(n.center),r.styledMode||tV(!0,a,i),tV(!0,a,o,t),e.animate(a)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName(),!0)):e&&(s.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){tB(this,"translate"),this.generatePoints();var e,i,o,n,r,s,a,l=this.options,h=l.slicedOffset,d=nk(l.startAngle,l.endAngle),c=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-c,u=this.points,f=l.ignoreHiddenPoint,g=u.length,v=0;for(t||(this.center=t=this.getCenter()),s=0;s<g;s++){a=u[s],e=c+v*p,a.isValid()&&(!f||a.visible)&&(v+=a.percentage/100),i=c+v*p;var m={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i};a.shapeType="arc",a.shapeArgs=m,(o=(i+e)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(o)*h),translateY:Math.round(Math.sin(o)*h)},n=Math.cos(o)*t[2]/2,r=Math.sin(o)*t[2]/2,a.tooltipPos=[t[0]+.7*n,t[1]+.7*r],a.half=+(o<-Math.PI/2||o>Math.PI/2),a.angle=o}tB(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e,i=this.points,o=i.length,n=this.options.ignoreHiddenPoint,r=0;for(t=0;t<o;t++)(e=i[t]).isValid()&&(!n||e.visible)&&(r+=e.y);for(t=0,this.total=r;t<o;t++)(e=i[t]).percentage=r>0&&(e.visible||!n)?e.y/r*100:0,e.total=r},e.defaultOptions=tV(oa.defaultOptions,nb),e}(oa);tL(nS.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:nt.prototype.drawTracker,getCenter:nv.getCenter,getSymbol:nw,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:nt.prototype.pointAttribs,pointClass:nx,requireSorting:!1,searchPoint:nw,trackerGroups:["group","dataLabelsGroup"]}),i7.registerSeriesType("pie",nS);var nA=tp.composed,nT=tp.noop,nP=eX.distribute,nC=i7.series;!function(t){var e={radialDistributionY:function(t,e){var i;return((null==(i=e.dataLabelPosition)?void 0:i.top)||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,o,n){var r=n.dataLabelPosition;return t.getX(i<((null==r?void 0:r.top)||0)+2||i>((null==r?void 0:r.bottom)||0)-2?o:i,e.half,e,n)},justify:function(t,e,i,o){var n;return o[0]+(t.half?-1:1)*(i+((null==(n=e.dataLabelPosition)?void 0:n.distance)||0))},alignToPlotEdges:function(t,e,i,o){var n=t.getBBox().width;return e?n+o:i-n-o},alignToConnectors:function(t,e,i,o){var n,r=0;return t.forEach(function(t){(n=t.dataLabel.getBBox().width)>r&&(r=n)}),e?r+o:i-r-o}};function i(t,e){var i=Math.PI/2,o=t.shapeArgs||{},n=o.start,r=void 0===n?0:n,s=o.end,a=void 0===s?0:s,l=t.angle||0;e>0&&r<i&&a>i&&l>i/2&&l<1.5*i&&(l=l<=i?Math.max(i/2,(r+i)/2):Math.min(1.5*i,(i+a)/2));var h=this.center,d=this.options,c=h[2]/2,p=Math.cos(l),u=Math.sin(l),f=h[0]+p*c,g=h[1]+u*c,v=Math.min((d.slicedOffset||0)+(d.borderWidth||0),e/5);return{natural:{x:f+p*e,y:g+u*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:l,breakAt:{x:f+p*v,y:g+u*v},touchingSliceAt:{x:f,y:g}},distance:e}}function o(){var t,e,i,o,n=this,r=this,s=r.points,a=r.chart,l=a.plotWidth,h=a.plotHeight,d=a.plotLeft,c=Math.round(a.chartWidth/3),p=r.center,u=p[2]/2,f=p[1],g=[[],[]],v=[0,0,0,0],m=r.dataLabelPositioners,y=0;r.visible&&(null==(t=r.hasDataLabels)?void 0:t.call(r))&&(s.forEach(function(t){(t.dataLabels||[]).forEach(function(t){t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),nC.prototype.drawDataLabels.apply(r),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,r=p[2]/2,s=e.options,a=t1((null==s?void 0:s.distance)||0,r);0===i&&g[t.half].push(t),!tA(null==(o=null==s?void 0:s.style)?void 0:o.width)&&e.getBBox().width>c&&(e.css({width:Math.round(.7*c)+"px"}),e.shortened=!0),e.dataLabelPosition=n.getDataLabelPosition(t,a),y=Math.max(y,a)})}),g.forEach(function(t,e){var n,s,c,g=t.length,x=[],b=0;g&&(r.sortByAngle(t,e-.5),y>0&&(n=Math.max(0,f-u-y),s=Math.min(f+u+y,a.plotHeight),t.forEach(function(t){(t.dataLabels||[]).forEach(function(e){var i,o=e.dataLabelPosition;o&&o.distance>0&&(o.top=Math.max(0,f-u-o.distance),o.bottom=Math.min(f+u+o.distance,a.plotHeight),b=e.getBBox().height||21,e.lineHeight=a.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:((null==(i=e.dataLabelPosition)?void 0:i.natural.y)||0)-o.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),nP(x,c=s+b-n,c/5)),t.forEach(function(n){(n.dataLabels||[]).forEach(function(s){var a=s.options||{},c=n.distributeBox,f=s.dataLabelPosition,g=(null==f?void 0:f.natural.y)||0,y=a.connectorPadding||0,b=s.lineHeight||21,M=(b-s.getBBox().height)/2,k=0,w=g,S="inherit";if(f){if(x&&tA(c)&&f.distance>0&&(void 0===c.pos?S="hidden":(o=c.size,w=m.radialDistributionY(n,s))),a.justify)k=m.justify(n,s,u,p);else switch(a.alignTo){case"connectors":k=m.alignToConnectors(t,e,l,d);break;case"plotEdges":k=m.alignToPlotEdges(s,e,l,d);break;default:k=m.radialDistributionX(r,n,w-M,g,s)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:k+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:w+(a.y||0)-b/2},f.computed.x=k,f.computed.y=w-M,tJ(a.crop,!0)){i=s.getBBox().width;var A=void 0;k-i<y&&1===e?(A=Math.round(i-k+y),v[3]=Math.max(A,v[3])):k+i>l-y&&0===e&&(A=Math.round(k+i-l+y),v[1]=Math.max(A,v[1])),w-o/2<0?v[0]=Math.max(Math.round(-w+o/2),v[0]):w+o/2>h&&(v[2]=Math.max(Math.round(w+o/2-h),v[2])),f.sideOverflow=A}}})}))}),(0===ty(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;null==(i=t.dataLabels)||i.forEach(function(i,o){var n,s,l=i.options||{},h=l.connectorColor,d=l.connectorWidth,c=void 0===d?1:d,p=i.dataLabelPosition;if(tF(c)){var u=void 0;e=i.connector,p&&p.distance>0?(u=!e,e||(i.connector=e=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(null==(n=r.dataLabelsGroups)?void 0:n[o])),a.styledMode||e.attr({"stroke-width":c,stroke:h||t.color||"#666666"}),e[u?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null==(s=p.attribs)?void 0:s.visibility})):e&&(i.connector=e.destroy())}})})))}function n(){this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(t){var e,i,o=t.dataLabelPosition;o?(o.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-o.sideOverflow,0)+"px",textOverflow:(null==(i=null==(e=t.options)?void 0:e.style)?void 0:i.textOverflow)||"ellipsis"}),t.shortened=!0),t.attr(o.attribs),t[t.moved?"animate":"attr"](o.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function r(t){var e=this.center,i=this.options,o=i.center,n=i.minSize||80,r=n,s=null!==i.size;return!s&&(null!==o[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),n):(r=Math.max(e[2]-t[1]-t[3],n),e[0]+=(t[3]-t[1])/2),null!==o[1]?r=tb(r,n,e[2]-Math.max(t[0],t[2])):(r=tb(r,n,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(i.thickness?Math.max(0,r-2*i.thickness):Math.max(0,t1(i.innerSize||0,r)),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(ni.compose(nC),t0(nA,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=nT,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=n,s.verifyDataLabelOverflow=r}}}(tt||(tt={}));var nO=tt;(C=te||(te={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},C.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},C.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},C.pointInPolygon=function(t,e){var i,o,n=t.x,r=t.y,s=e.length,a=!1;for(i=0,o=s-1;i<s;o=i++){var l=e[i],h=l[0],d=l[1],c=e[o],p=c[0],u=c[1];d>r!=u>r&&n<(p-h)*(r-d)/(u-d)+h&&(a=!a)}return a};var nL=te.pointInPolygon;function nE(t,e){var i,o=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),o=!0,t[t.isOld?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),tB(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),o}var nB=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},nI=tp.noop,nD={radius:0,scope:"stack",where:void 0},nz=nI,nR=nI;function nN(t,e,i,o,n){void 0===n&&(n={});var r=nz(t,e,i,o,n),s=n.brStart,a=void 0===s||s,l=n.brEnd,h=void 0===l||l,d=n.innerR,c=void 0===d?0:d,p=n.r,u=void 0===p?i:p,f=n.start,g=n.end;if(n.open||!n.borderRadius)return r;for(var v=(void 0===g?0:g)-(void 0===f?0:f),m=Math.sin(v/2),y=Math.max(Math.min(t1(n.borderRadius||0,u-c),(u-c)/2,u*m/(1+m)),0),x=Math.min(y,v/Math.PI*2*c),b=r.length-1;b--;)(a||0!==b&&3!==b)&&(h||1!==b&&2!==b)&&!function(t,e,i){var o,n,r,s=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),("M"===s[0]||"L"===s[0])&&"A"===a[0]?(o=s,n=a,r=!0):"A"===s[0]&&("M"===a[0]||"L"===a[0])&&(o=a,n=s),o&&n&&n.params){var l=n[1],h=n[5],d=n.params,c=d.start,p=d.end,u=d.cx,f=d.cy,g=h?l-i:l+i,v=g?Math.asin(i/g):0,m=h?v:-v,y=Math.cos(v)*g;r?(d.start=c+m,o[1]=u+y*Math.cos(c),o[2]=f+y*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,u+l*Math.cos(d.start),f+l*Math.sin(d.start)])):(d.end=p-m,n[6]=u+l*Math.cos(d.end),n[7]=f+l*Math.sin(d.end),t.splice(e+1,0,["A",i,i,0,0,1,u+y*Math.cos(p),f+y*Math.sin(p)])),n[4]=Math.abs(d.end-d.start)<Math.PI?0:1}}(r,b,b>1?x:y);return r}function nW(){var t,e;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d()))for(var i=this.options,o=this.yAxis,n="percent"===i.stacking,r=null==(e=null==(t=ep.plotOptions)?void 0:t[this.type])?void 0:e.borderRadius,s=nG(i.borderRadius,tU(r)?r:{}),a=o.options.reversed,l=0,h=this.points;l<h.length;l++){var d=h[l],c=d.shapeArgs;if("roundedRect"===d.shapeType&&c){var p=c.width,u=void 0===p?0:p,f=c.height,g=void 0===f?0:f,v=c.y,m=void 0===v?0:v,y=g;if("stack"===s.scope&&d.stackTotal){var x=o.translate(n?100:d.stackTotal,!1,!0,!1,!0),b=o.translate(i.threshold||0,!1,!0,!1,!0),M=this.crispCol(0,Math.min(x,b),0,Math.abs(x-b));m=M.y,y=M.height}var k=(d.negative?-1:1)*(a?-1:1)==-1,w=s.where;!w&&this.is("waterfall")&&Math.abs((d.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(w="all"),w||(w="end");var S=Math.min(t1(s.radius,u),u/2,"all"===w?y/2:1/0)||0;"end"===w&&(k&&(m-=S),y+=S),tL(c,{brBoxHeight:y,brBoxY:m,r:S})}}}function nG(t,e){return tU(t)||(t={radius:t||0}),tV(nD,e,t)}function nX(){for(var t=nG(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=t1(t.radius,(o.r||0)-(o.innerR||0)))}}function nH(t,e,i,o,n){void 0===n&&(n={});var r=nR(t,e,i,o,n),s=n.r,a=void 0===s?0:s,l=n.brBoxHeight,h=void 0===l?o:l,d=n.brBoxY,c=void 0===d?e:d,p=e-c,u=c+h-(e+o),f=p-a>-.1?0:a,g=u-a>-.1?0:a,v=Math.max(f&&p,0),m=Math.max(g&&u,0),y=[t+f,e],x=[t+i-f,e],b=[t+i,e+f],M=[t+i,e+o-g],k=[t+i-g,e+o],w=[t+g,e+o],S=[t,e+o-g],A=[t,e+f],T=function(t,e){return Math.sqrt(Math.pow(t,2)-Math.pow(e,2))};if(v){var P=T(f,f-v);y[0]-=P,x[0]+=P,b[1]=A[1]=e+f-v}if(o<f-v){var P=T(f,f-v-o);b[0]=M[0]=t+i-f+P,k[0]=Math.min(b[0],k[0]),w[0]=Math.max(M[0],w[0]),S[0]=A[0]=t+f-P,b[1]=A[1]=e+o}if(m){var P=T(g,g-m);k[0]+=P,w[0]-=P,M[1]=S[1]=e+o-g+m}if(o<g-m){var P=T(g,g-m-o);b[0]=M[0]=t+i-g+P,x[0]=Math.min(b[0],x[0]),y[0]=Math.max(M[0],y[0]),S[0]=A[0]=t+g-P,M[1]=S[1]=e}return r.length=0,r.push(nB(["M"],y,!0),nB(["L"],x,!0),nB(["A",f,f,0,0,1],b,!0),nB(["L"],M,!0),nB(["A",g,g,0,0,1],k,!0),nB(["L"],w,!0),nB(["A",g,g,0,0,1],S,!0),nB(["L"],A,!0),nB(["A",f,f,0,0,1],y,!0),["Z"]),r}function nF(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=tJ(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tJ(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tJ(i.minWidth,0)&&this.chartHeight>=tJ(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function nY(t,e){var i,o=this,n=this.options.responsive,r=this.currentResponsive,s=[];!e&&n&&n.rules&&n.rules.forEach(function(t){void 0===t._id&&(t._id=en()),o.matchResponsiveRule(t,s)},this);var a=tV.apply(void 0,s.map(function(t){return tW((null==n?void 0:n.rules)||[],function(e){return e._id===t})}).map(function(t){return null==t?void 0:t.chartOptions}));a.isResponsiveOptions=!0,s=s.toString()||void 0;var l=null==r?void 0:r.ruleIds;s!==l&&(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=tC(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(ti||(ti={})).compose=function(t){var e=t.prototype;return e.matchResponsiveRule||tL(e,{matchResponsiveRule:nF,setResponsive:nY}),t};var n_=ti;function nj(t,e,i,o){return[["M",t,e+o/2],["L",t+i,e],["L",t,e+o/2],["L",t+i,e+o]]}function nU(t,e,i,o){return nj(t,e,i/2,o)}function nV(t,e,i,o){return[["M",t+i,e],["L",t,e+o/2],["L",t+i,e+o],["Z"]]}function nZ(t,e,i,o){return nV(t,e,i/2,o)}tp.AST=eE,tp.Axis=iP,tp.Chart=oA,tp.Color=ey,tp.DataLabel=ni,tp.DataTableCore=i0,tp.Fx=eM,tp.HTMLElement=iv,tp.Legend=of,tp.LegendSymbol=i5,tp.PlotLineOrBand=iB,tp.Point=iY,tp.Pointer=i$,tp.RendererRegistry=eG,tp.Series=oa,tp.SeriesRegistry=i7,tp.StackItem=oB,tp.SVGElement=eZ,tp.SVGRenderer=il,tp.Templating=eW,tp.Tick=iM,tp.Time=ed,tp.Tooltip=iH,tp.addEvent=tv,tp.animObject=ek,tp.animate=eS,tp.arrayMax=ty,tp.arrayMin=tm,tp.attr=tx,tp.chart=oA.chart,tp.clamp=tb,tp.color=ey.parse,tp.correctFloat=tM,tp.createElement=tk,tp.css=tS,tp.dateFormat=eW.dateFormat,tp.defaultOptions=ep,tp.defined=tA,tp.destroyObjectProperties=tT,tp.diffObjects=tC,tp.discardElement=tP,tp.distribute=eX.distribute,tp.erase=tO,tp.error=ee,tp.extend=tL,tp.extendClass=tE,tp.find=tW,tp.fireEvent=tB,tp.format=eW.format,tp.getDeferredAnimation=eA,tp.getMagnitude=tz,tp.getOptions=function(){return ep},tp.getStyle=tN,tp.insertItem=ei,tp.isArray=t_,tp.isClass=tH,tp.isDOMElement=tX,tp.isFunction=tj,tp.isNumber=tF,tp.isObject=tU,tp.isString=tY,tp.merge=tV,tp.normalizeTickInterval=tZ,tp.numberFormat=eW.numberFormat,tp.objectEach=tK,tp.offset=tq,tp.pad=t$,tp.pick=tJ,tp.pInt=tQ,tp.relativeLength=t1,tp.removeEvent=t3,tp.seriesType=i7.seriesType,tp.setAnimation=eT,tp.setOptions=ef,tp.splat=t5,tp.stableSort=t6,tp.stop=ew,tp.syncTimeout=t9,tp.time=eu,tp.timers=eM.timers,tp.timeUnits=eo,tp.uniqueKey=en,tp.useSerialIds=function(t){return G=tJ(t,G)},tp.wrap=t8,({compose:function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var n=i.prototype.symbols;tv(t,"afterColumnTranslate",nW,{order:9}),tv(o,"afterTranslate",nX),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),nz=n.arc,nR=n.roundedRect,n.arc=nN,n.roundedRect=nH}},optionsToObject:nG}).compose(tp.Series,tp.SVGElement,tp.SVGRenderer),ns.compose(tp.Series.types.column),ni.compose(tp.Series),iC.compose(tp.Axis),iv.compose(tp.SVGRenderer),of.compose(tp.Chart),iO.compose(tp.Axis),(L=(O=tp.Chart).prototype).hideOverlappingLabels||(L.hideOverlappingLabels=function(t){for(var e,i,o,n,r,s=t.length,a=!1,l=0;l<s;l++)(e=t[l])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i;if(t&&(!t.alignAttr||t.placed)){var o=t.box?0:t.padding||0,n=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},r=t.getBBox(),s=r.height,a=r.polygon,l=r.width,h=tI(t.alignValue)*l;return t.width=l,t.height=s,{x:n.x+((null==(e=t.parentGroup)?void 0:e.translateX)||0)+o-h,y:n.y+((null==(i=t.parentGroup)?void 0:i.translateY)||0)+o,width:l-2*o,height:s-2*o,polygon:a}}}(e));t.sort(function(t,e){return((null==e?void 0:e.labelrank)||0)-((null==t?void 0:t.labelrank)||0)});for(var l=0;l<s;++l)for(var h=null==(n=(i=t[l])&&i.absoluteBox)?void 0:n.polygon,d=l+1;d<s;++d){r=(o=t[d])&&o.absoluteBox;var c=!1;if(n&&r&&i!==o&&(null==i?void 0:i.newOpacity)!==0&&(null==o?void 0:o.newOpacity)!==0&&(null==i?void 0:i.visibility)!=="hidden"&&(null==o?void 0:o.visibility)!=="hidden"){var p=r.polygon;if(h&&p&&h!==p?function(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(nL({x:o[0],y:o[1]},e))return!0}return!1}(h,p)&&(c=!0):r.x>=n.x+n.width||r.x+r.width<=n.x||r.y>=n.y+n.height||r.y+r.height<=n.y||(c=!0),c){var u=(null==i?void 0:i.labelrank)<(null==o?void 0:o.labelrank)?i:o,f=null==u?void 0:u.text;u&&(u.newOpacity=0),(null==f?void 0:f.element.querySelector("textPath"))&&f.hide()}}}for(var g=0;g<t.length;g++){var v=t[g];v&&nE(v,this)&&(a=!0)}a&&tB(this,"afterHideAllOverlappingLabels")},tv(O,"render",function(){for(var t,e=this,i=[],o=0,n=e.labelCollectors||[];o<n.length;o++){var r=n[o];i=i.concat(r())}for(var s=0,a=e.yAxis||[];s<a.length;s++){var l=a[s];l.stacking&&l.options.stackLabels&&!l.options.stackLabels.allowOverlap&&tK(l.stacking.stacks,function(t){tK(t,function(t){t.label&&i.push(t.label)})})}for(var h=0,d=e.series||[];h<d.length;h++){var c=d[h];if(c.visible&&(null==(t=c.hasDataLabels)?void 0:t.call(c))){var p=function(t){for(var o=function(t){t.visible&&(t.dataLabels||[]).forEach(function(o){var n,r,s=o.options||{};o.labelrank=tJ(s.labelrank,t.labelrank,null==(n=t.shapeArgs)?void 0:n.height),(null!=(r=s.allowOverlap)?r:Number(s.distance)>0)?(o.oldOpacity=o.opacity,o.newOpacity=1,nE(o,e)):i.push(o)})},n=0;n<t.length;n++)o(t[n])};p(c.nodes||[]),p(c.points)}}this.hideOverlappingLabels(i)})),nO.compose(tp.Series.types.pie),iB.compose(tp.Chart,tp.Axis),i$.compose(tp.Chart),n_.compose(tp.Chart),oO.compose(tp.Axis,tp.Chart,tp.Series),oY.compose(tp.Axis,tp.Chart,tp.Series),iH.compose(tp.Pointer);var nK=function(t){var e=t.prototype.symbols;e.arrow=nj,e["arrow-filled"]=nV,e["arrow-filled-half"]=nZ,e["arrow-half"]=nU,e["triangle-left"]=nV,e["triangle-left-half"]=nZ},nq=tp.deg2rad,n$=Math.max,nJ=Math.min,nQ=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){this.fromPoint=t,this.toPoint=e,this.options=i,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder},t.prototype.renderPath=function(t,e){var i=this.chart,o=i.styledMode,n=this.pathfinder,r={},s=this.graphics&&this.graphics.path;n.group||(n.group=i.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(i.seriesGroup)),n.group.translate(i.plotLeft,i.plotTop),!(s&&s.renderer)&&(s=i.renderer.path().add(n.group),o||s.attr({opacity:0})),s.attr(e),r.d=t,o||(r.opacity=1),s.animate(r),this.graphics=this.graphics||{},this.graphics.path=s},t.prototype.addMarker=function(t,e,i){var o,n,r,s,a,l,h,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,f=u.getPathfinderAnchorPoint(e);e.enabled&&((h="start"===t?i[1]:i[i.length-2])&&"M"===h[0]||"L"===h[0])&&(l={x:h[1],y:h[2]},n=u.getRadiansToVector(l,f),o=u.getMarkerVector(n,e.radius,f),e.width&&e.height?(s=e.width,a=e.height):s=a=2*e.radius,this.graphics=this.graphics||{},r={x:o.x-s/2,y:o.y-a/2,width:s,height:a,rotation:-n/nq,rotationOriginX:o.x,rotationOriginY:o.y},this.graphics[t]?this.graphics[t].animate(r):(this.graphics[t]=p.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(r).add(c.group),p.styledMode||this.graphics[t].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))},t.prototype.getPath=function(t){var e=this.pathfinder,i=this.chart,o=e.algorithms[t.type],n=e.chartObstacles;return"function"!=typeof o?(ee('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(o.requiresObstacles&&!n&&(n=e.chartObstacles=e.getChartObstacles(t),i.options.connectors.algorithmMargin=t.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(n)),o(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),tV({chartObstacles:n,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:i.plotWidth,yMin:0,yMax:i.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(t.startMarker)},t)))},t.prototype.render=function(){var t=this.fromPoint,e=t.series,i=e.chart,o=i.pathfinder,n={},r=tV(i.options.connectors,e.options.connectors,t.options.connectors,this.options);!i.styledMode&&(n.stroke=r.lineColor||t.color,n["stroke-width"]=r.lineWidth,r.dashStyle&&(n.dashstyle=r.dashStyle)),n.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,tA((r=tV(n,r)).marker.radius)||(r.marker.radius=nJ(n$(Math.ceil((r.algorithmMargin||8)/2)-1,1),5));var s=this.getPath(r),a=s.path;s.obstacles&&(o.lineObstacles=o.lineObstacles||[],o.lineObstacles=o.lineObstacles.concat(s.obstacles)),this.renderPath(a,n),this.addMarker("start",tV(r.marker,r.startMarker),a),this.addMarker("end",tV(r.marker,r.endMarker),a)},t.prototype.destroy=function(){this.graphics&&(tK(this.graphics,function(t){t.destroy()}),delete this.graphics)},t}(),n0=tp.composed,n1={color:"#ccd3ff",width:2,label:{format:"%[abdYHM]",formatter:function(t,e){return this.axis.chart.time.dateFormat(e||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}};function n2(){var t=this.options,e=t.currentDateIndicator;if(e){var i="object"==typeof e?tV(n1,e):tV(n1);i.value=Date.now(),i.className="highcharts-current-date-indicator",t.plotLines||(t.plotLines=[]),t.plotLines.push(i)}}function n3(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}function n5(t,e){var i=this.options;return i&&i.className&&-1!==i.className.indexOf("highcharts-current-date-indicator")&&i.label&&"function"==typeof i.label.formatter?(i.value=Date.now(),i.label.formatter.call(this,i.value,i.label.format,this)):t.call(this,e)}var n6=(E=function(t,e){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n6(e,t),e.prototype.init=function(e,i){var o,n=e.xAxis,r=e.yAxis;e.xAxis=e.yAxis=void 0;var s=tV(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},e,{isGantt:!0});e.xAxis=n,e.yAxis=r,s.xAxis=(!t_(e.xAxis)?[e.xAxis||{},{}]:e.xAxis).map(function(t,e){var i,n,r,s,a;return 1===e&&(o=0),tV({grid:{borderColor:(null==(n=null==(i=ep.xAxis)?void 0:i.grid)?void 0:n.borderColor)||"#cccccc",enabled:!0},opposite:null==(a=null!=(s=null==(r=ep.xAxis)?void 0:r.opposite)?s:t.opposite)||a,linkedTo:o},t,{type:"datetime"})}),s.yAxis=t5(e.yAxis||{}).map(function(t){var e,i;return tV({grid:{borderColor:(null==(i=null==(e=ep.yAxis)?void 0:e.grid)?void 0:i.borderColor)||"#cccccc",enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)}),t.prototype.init.call(this,s,i)},e}(oA);(B=n9||(n9={})).ganttChart=function(t,e,i){return new B(t,e,i)};var n4=n9,n8=tp.isTouchDevice,n7=[];function rt(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function re(){var t,e,i,o,n=this.legend,r=this.navigator;if(r){e=n&&n.options,i=r.xAxis,o=r.yAxis;var s=r.scrollbarHeight,a=r.scrollButtonSize;this.inverted?(r.left=r.opposite?this.chartWidth-s-r.height:this.spacing[3]+s,r.top=this.plotTop+a):(r.left=tJ(i.left,this.plotLeft+a),r.top=r.navigatorOptions.top||this.chartHeight-r.height-s-((null==(t=this.scrollbar)?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?n.legendHeight+tJ(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&o&&(this.inverted?i.options.left=o.options.left=r.left:i.options.top=o.options.top=r.top,i.setAxisSize(),o.setAxisSize())}}function ri(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new to(this),tJ(t.redraw,!0)&&this.redraw(t.animation))}function ro(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new to(this))}function rn(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!n8&&"x"===this.zooming.type||n8&&"x"===this.zooming.pinchType))return!1}function rr(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function rs(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(tV(!0,this.options.navigator,e),tV(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var ra=function(t,e){if(t0(n7,t)){var i=t.prototype;to=e,i.callbacks.push(rr),tv(t,"afterAddSeries",rt),tv(t,"afterSetChartSize",re),tv(t,"afterUpdate",ri),tv(t,"beforeRender",ro),tv(t,"beforeShowResetZoom",rn),tv(t,"update",rs)}},rl=tp.isTouchDevice;function rh(){this.navigatorAxis||(this.navigatorAxis=new rc(this))}function rd(t){var e,i=this.chart,o=i.options,n=o.navigator,r=this.navigatorAxis,s=i.zooming.pinchType,a=o.rangeSelector,l=i.zooming.type;if(this.isXAxis&&((null==n?void 0:n.enabled)||(null==a?void 0:a.enabled))){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||rl&&"xy"===s)&&this.options.range){var h=r.previousZoom;tA(t.min)?r.previousZoom=[this.min,this.max]:h&&(t.min=h[0],t.max=h[1],r.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}var rc=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),tv(t,"init",rh),tv(t,"setExtremes",rd))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var n=this.axis,r=(n.pointRange||0)/2,s=tJ(i,n.translate(t,!0,!n.horiz)),a=tJ(o,n.translate(e,!0,!n.horiz));return tA(i)||(s=tM(s+r)),tA(o)||(a=tM(a-r)),tF(s)&&tF(a)||(s=a=void 0),{min:s,max:a}},t}(),rp=ey.parse,ru=i7.seriesTypes,rf={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:rp("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===ru.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},rg=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},rv={"navigator-handle":function(t,e,i,o,n){void 0===n&&(n={});var r=n.width?n.width/2:i,s=t1(n.borderRadius||0,Math.min(2*r,o));return rg([["M",-1.5,(o=n.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],e0.rect(-r-1,.5,2*r+1,o,{r:s}),!0)}},rm=tp.composed,ry=eG.getRendererType,rx={setFixedRange:function(t){var e=this.xAxis[0];tA(e.dataMax)&&tA(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}}.setFixedRange;function rb(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var rM=function(t,e,i){rc.compose(e),t0(rm,"Navigator")&&(t.prototype.setFixedRange=rx,tL(ry().prototype.symbols,rv),tL(ep,{navigator:rf}),tv(i,"afterUpdate",rb))},rk=tp.composed;!function(t){var e;function i(t){var e,i,o,n,r,s,a,l,h=tJ(null==(e=t.options)?void 0:e.min,t.min),d=tJ(null==(i=t.options)?void 0:i.max,t.max);return{axisMin:h,axisMax:d,scrollMin:tA(t.dataMin)?Math.min(h,null!=(o=t.min)?o:1/0,t.dataMin,null!=(n=t.threshold)?n:1/0):h,scrollMax:null!=(s=null==(r=t.treeGrid)?void 0:r.adjustedMax)?s:tA(t.dataMax)?Math.max(d,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(l=t.threshold)?l:-1/0):d}}function o(){var t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function n(){var t,o,n=this;(null==(o=null==(t=n.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(n.options.scrollbar.vertical=!n.horiz,n.options.startOnTick=n.options.endOnTick=!1,n.scrollbar=new e(n.chart.renderer,n.options.scrollbar,n.chart),tv(n.scrollbar,"changed",function(t){var e,o,r=i(n),s=r.axisMin,a=r.axisMax,l=r.scrollMin,h=r.scrollMax,d=n.toPixels(l),c=n.toPixels(h)-d;if(tA(s)&&tA(a))if(n.horiz&&!n.reversed||!n.horiz&&n.reversed?(e=Math.min(h,n.toValue(d+c*this.to)),o=Math.max(l,n.toValue(d+c*this.from))):(e=Math.min(h,n.toValue(d+c*(1-this.from))),o=Math.max(l,n.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;n.setExtremes(tM(o),tM(e),!0,p,t)}else this.setRange(this.from,this.to)}))}function r(){var t,e,o,n=i(this),r=n.scrollMin,s=n.scrollMax,a=this.scrollbar,l=(this.axisTitleMargin||0)+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&h){if(this.horiz)this.opposite||(h[1]+=l),a.position(this.left,this.top+this.height+2+h[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(h[1]+=d),t=1;else{this.opposite&&(h[0]+=l);var c=void 0;c=a.options.opposite?this.left+this.width+2+h[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(h[0]+=d),t=0}if(h[t]+=a.size+(a.options.margin||0),isNaN(r)||isNaN(s)||!tA(this.min)||!tA(this.max)||tA(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);e=p*this.min,o=p*(this.max+1),a.setRange(e,o)}else e=(this.toPixels(this.min)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),o=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){t0(rk,"Axis.Scrollbar")&&(e=i,tv(t,"afterGetOffset",o),tv(t,"afterInit",n),tv(t,"afterRender",r))}}(tn||(tn={}));var rw=tn,rS={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},rA=tp.composed,rT=function(){function t(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}return t.compose=function(e){rw.compose(e,t),t0(rA,"Scrollbar")&&tL(ep,{scrollbar:rS})},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,o=this.track.element,n=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[i,"mousedown",n],[i.ownerDocument,"mousemove",r],[i.ownerDocument,"mouseup",s],[i,"touchstart",n],[i.ownerDocument,"touchmove",r],[i.ownerDocument,"touchend",s]];a.forEach(function(t){tv.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*tJ(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=tM(this.to-this.from)*tJ(this.options.step,.2);this.updatePosition(tM(this.from-e),tM(this.to-e)),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,tT(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,n=this.options,r=this.size,s=i.g().add(this.group);if(o.push(s),n.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:n.buttonBorderColor,"stroke-width":n.buttonBorderWidth,fill:n.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:r,height:r,r:n.buttonBorderRadius},a.strokeWidth()));var l=i.path(t.swapXY([["M",r/2+(e?-1:1),r/2-3],["L",r/2+(e?-1:1),r/2+3],["L",r/2+(e?2:-2),r/2]],n.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]);this.chart.styledMode||l.attr({fill:n.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=tV(rS,ep.scrollbar,e),this.options.margin=tJ(this.options.margin,10),this.chart=i,this.size=tJ(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.cursorToScrollbarPosition(i);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e,i,o=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,n=this.options.vertical?"chartY":"chartX",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][n])&&(i=this.cursorToScrollbarPosition(o)[n]-this[n],this.hasDragged=!0,this.updatePosition(r[0]+i,r[1]+i),this.hasDragged&&tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var n=this.options,r=n.buttonsEnabled,s=n.margin,a=void 0===s?0:s,l=n.vertical,h=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=d,this.yOffset=c,l?(this.width=this.yOffset=i=c=this.size,this.xOffset=d=0,this.yOffset=c=r?this.size:0,this.barWidth=o-(r?2*i:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=r?this.size:0,this.barWidth=i-(r?2*o:0),this.y=this.y+a),this.group[h]({translateX:t,translateY:this.y}),this.track[h]({width:i,height:o}),this.scrollbarButtons[1][h]({translateX:l?0:i-d,translateY:l?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){t3.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,n=this.chart.styledMode,r=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=r,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:o,width:o}).add(r),n||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tw(0,s),y:-tw(0,s)}),this.scrollbarGroup=e.g().add(r),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-tw(0,this.scrollbarStrokeWidth),-tw(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,o,n=this.options,r=n.vertical,s=n.minWidth,a=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(tA(a)){var h=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=tM(h-i),o<s&&(i=(a-s+o)*t,o=s);var d=Math.floor(i+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=e,r?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:o}),this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:o}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===n.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return tJ(this.options.liveRedraw,tp.svg&&!tp.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!tA(t)},t.prototype.trackClick=function(t){var e,i=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t,o=this.to-this.from,n=this.y+this.scrollbarTop,r=this.x+this.scrollbarLeft;this.options.vertical&&i.chartY>n||!this.options.vertical&&i.chartX>r?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),tB(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tV(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=tM(1-tM(e-t)),e=1),t<0&&(e=tM(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=rS,t}(),rP=function(){return(rP=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},rC=function(t,e,i){if(i||2==arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},rO=tp.isTouchDevice;function rL(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,tF);if(o.length)return Math[t].apply(0,o)}var rE=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){ra(e,t),rM(e,i,o)},t.prototype.drawHandle=function(t,e,i,o){var n=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-n)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-n/2-1)})},t.prototype.drawOutline=function(t,e,i,o){var n,r,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),l=a/2,h=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-l,g=p+u,v=this.left;i?(n=p+e+h,e=p+t+h,r=[["M",v+u,p-d-h],["L",v+u,n],["L",v,n],["M",v,e],["L",v+u,e],["L",v+u,p+c+d]],s&&r.push(["M",v+u,n-l],["L",v+u,e+l])):(v-=d,t+=v+d-h,e+=v+d-h,r=[["M",v,f],["L",t,f],["L",t,g],["M",e,g],["L",e,f],["L",v+c+2*d,f]],s&&r.push(["M",t-l,f],["L",e+l,f])),this.outline[o]({d:r})},t.prototype.drawMasks=function(t,e,i,o){var n,r,s,a,l=this.left,h=this.top,d=this.height;i?(s=[l,l,l],a=[h,h+t,h+e],r=[d,d,d],n=[t,e-t,this.size-e]):(s=[l,l+t,l+e],a=[h,h,h],r=[t,e-t,this.size-e],n=[d,d,d]),this.shades.forEach(function(t,e){t[o]({x:s[e],y:a[e],width:r[e],height:n[e]})})},t.prototype.renderElements=function(){var t,e,i,o=this,n=o.navigatorOptions,r=n.maskInside,s=o.chart,a=s.inverted,l=s.renderer,h={cursor:a?"ns-resize":"ew-resize"},d=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,e){var i,r=null!=(i=o.shades[e])?i:o.shades[e]=l.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(d);s.styledMode||(r.attr({fill:t?n.maskFill:"rgba(0,0,0,0)"}),1===e&&r.css(h))}),o.outline||(o.outline=l.path().addClass("highcharts-navigator-outline").add(d)),s.styledMode||o.outline.attr({"stroke-width":n.outlineWidth,stroke:n.outlineColor}),null==(e=n.handles)?void 0:e.enabled){var c=!1,p=n.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var e,i,n=p.symbols[t];(c=c||(null==(e=o.handles[t])?void 0:e.symbolName)!==n)&&(null==(i=o.handles[t])||i.destroy(),o.handles[t]=l.symbol(n,-f/2-1,0,f,u,p),o.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),s.inverted&&o.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-f/2),rotationOriginY:(u+f)/2}),s.styledMode||o.handles[t].attr({fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.lineWidth,width:p.width,height:p.height,x:-f/2-1,y:0}).css(h)}),c&&(null==(i=o.partsEventsToUnbind)||i.forEach(function(t){t()}),o.partsEventsToUnbind=rC(rC([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,e){var i,o,n,r,s=this;void 0===e&&(e=!1);var a=this.chart,l=a.options.chart.inverted!==(null==(n=a.scrollbar)?void 0:n.options.vertical);if(tV(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),tA(t.enabled)||l)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t3(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(tv(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(r=t.height)?r:this.height;var h=this.getXAxisOffsets();this.xAxis.update(rP(rP({},t.xAxis),((i={offsets:h})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(rP(rP({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}e&&a.redraw()},t.prototype.render=function(t,e,i,o){var n,r,s,a,l,h,d=this.chart,c=this.xAxis,p=c.pointRange||0,u=c.navigatorAxis.fake?d.xAxis[0]:c,f=this.navigatorEnabled,g=this.rendered,v=d.inverted,m=d.xAxis[0].minRange,y=d.xAxis[0].options.maxRange,x=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||tA(i)){if(this.isDirty&&this.renderElements(),t=tM(t-p/2),e=tM(e+p/2),!tF(t)||!tF(e))if(!g)return;else i=0,o=tJ(c.width,u.width);this.left=tJ(c.left,d.plotLeft+x+(v?d.plotWidth:0));var M=this.size=l=tJ(c.len,(v?d.plotHeight:d.plotWidth)-2*x);r=v?b:l+2*x,i=tJ(i,c.toPixels(t,!0)),o=tJ(o,c.toPixels(e,!0)),tF(i)&&Math.abs(i)!==1/0||(i=0,o=r);var k=c.toValue(i,!0),w=c.toValue(o,!0),S=Math.abs(tM(w-k));tA(m)&&S<m?this.grabbedLeft?i=c.toPixels(w-m-p,!0):this.grabbedRight&&(o=c.toPixels(k+m+p,!0)):tA(y)&&tM(S-p)>y&&(this.grabbedLeft?i=c.toPixels(w-y-p,!0):this.grabbedRight&&(o=c.toPixels(k+y+p,!0))),this.zoomedMax=tb(Math.max(i,o),0,M),this.zoomedMin=tb(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);var A=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),h=g&&!this.hasDragged?"animate":"attr",this.drawMasks(A,M,v,h),this.drawOutline(A,M,v,h),(null==(n=this.navigatorOptions.handles)?void 0:n.enabled)&&(this.drawHandle(A,0,v,h),this.drawHandle(M,1,v,h))),this.scrollbar&&(v?(a=this.top-x,s=this.left-b+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=l+2*x):(a=this.top+(f?this.height:-b),s=this.left-x),this.scrollbar.position(s,a,r,b),this.scrollbar.setRange(this.zoomedMin/(l||1),this.zoomedMax/(l||1))),this.rendered=!0,this.isDirty=!1,tB(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,n=o.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},r.push(tv(o.renderTo,"mousemove",t),tv(n.ownerDocument,"mouseup",e),tv(o.renderTo,"touchmove",t),tv(n.ownerDocument,"touchend",e)),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(tv(i.series[0].xAxis,"foundExtremes",function(){var t;null==(t=o.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(o){e[o].forEach(function(n,r){i.push(tv(n.element,t,function(t){e[""+o+"Mousedown"](t,r)}))})}),i},t.prototype.shadesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o,n,r,s,a,l,h=this.chart,d=this.xAxis,c=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;h.inverted&&(g=t.chartY,f=this.top),1===e?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-c):(l=g-f-u/2,0===e?l=Math.max(0,l):2===e&&l+u>=p&&(l=p-u,this.reversedExtremes?(l-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):r=null==(n=this.getUnionExtremes())?void 0:n.dataMax),l!==c&&(this.fixedWidth=u,tA((a=d.navigatorAxis.toFixedRange(l,l+u,s,r)).min)&&tB(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o=this.chart,n=o.xAxis[0],r=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?n.max:n.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var e,i,o,n=this,r=n.chart,s=n.navigatorSize,a=n.range,l=n.dragOffset,h=r.inverted,d=n.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(e=r.pointer)?void 0:e.normalize(t))||t).chartX,h&&(d=n.top,o=t.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,o-d,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,o-d)):n.grabbedCenter&&l&&(n.hasDragged=!0,o<l?o=l:o>s+l-a&&(o=s+l-a),n.render(0,0,o-l,o-l+a)),n.hasDragged&&tJ(null==(i=n.scrollbarOptions)?void 0:i.liveRedraw,!rO&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){n.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,n,r,s,a,l=this.chart,h=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,p=l.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(n=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?n.dataMin:n.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?n.dataMax:n.dataMin),tA((a=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,s)).min)&&tB(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&tF(this.zoomedMin)&&tF(this.zoomedMax)&&(o=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,i,p,u),this.outline&&this.drawOutline(o,i,p,u),(null==(e=this.navigatorOptions.handles)?void 0:e.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,p,u),this.drawHandle(i,1,p,u)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.forEach(function(t){t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){t3(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&t3(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var e,i,o,n=t.options,r=n.navigator||{},s=r.enabled,a=n.scrollbar||{},l=a.enabled,h=s&&r.height||0,d=l&&a.height||0,c=a.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=h,this.scrollbarHeight=d,this.scrollButtonSize=c,this.scrollbarEnabled=l,this.navigatorEnabled=!!s,this.navigatorOptions=r,this.scrollbarOptions=a,this.setOpposite();var p=this,u=p.baseSeries,f=t.xAxis.length,g=t.yAxis.length,v=u&&u[0]&&u[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,p.navigatorEnabled){var m=this.getXAxisOffsets();p.xAxis=new iP(t,tV({breaks:v.options.breaks,ordinal:v.options.ordinal,overscroll:v.options.overscroll},r.xAxis,{type:"datetime",yAxis:null==(e=r.yAxis)?void 0:e.id,index:f,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:v.options.ordinal?0:v.options.minPadding,maxPadding:v.options.ordinal?0:v.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:m,width:h}:{offsets:m,height:h}),"xAxis"),p.yAxis=new iP(t,tV(r.yAxis,{alignTicks:!1,offset:0,index:g,isInternal:!0,reversed:tJ(r.yAxis&&r.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:h}:{height:h}),"yAxis"),u||(null==(i=r.series)?void 0:i.data)?p.updateNavigatorSeries(!1):0===t.series.length&&(p.unbindRedraw=tv(t,"beforeRedraw",function(){var e;t.series.length>0&&!p.series&&(p.setBaseSeries(),null==(e=p.unbindRedraw)||e.call(p))})),p.reversedExtremes=t.inverted&&!p.xAxis.reversed||!t.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()}else p.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],n=o.getExtremes(),r=o.len-2*c,s=rL("min",o.options.min,n.dataMin),a=rL("max",o.options.max,n.dataMax)-s;return i?e*a/r+s:r*(e-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=rc.prototype.toFixedRange.bind(p.xAxis.navigatorAxis);if(null==(o=t.options.scrollbar)?void 0:o.enabled){var y=tV(t.options.scrollbar,{vertical:t.inverted});tF(y.margin)||(y.margin=t.inverted?-3:3),t.scrollbar=p.scrollbar=new rT(t.renderer,y,t),tv(p.scrollbar,"changed",function(t){var e,i=p.size,o=i*this.to,n=i*this.from;p.hasDragged=null==(e=p.scrollbar)?void 0:e.hasDragged,p.render(0,0,n,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})}p.addBaseSeriesEvents(),p.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=tJ(t.opposite,!!(!e&&i.inverted))},t.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.chart.time,n=this.xAxis,r=n.options,s=i.options;return t&&null===i.dataMin||(e={dataMin:tJ(o.parse(null==r?void 0:r.min),rL("min",o.parse(s.min),i.dataMin,n.dataMin,n.min)),dataMax:tJ(o.parse(null==r?void 0:r.max),rL("max",o.parse(s.max),i.dataMax,n.dataMax,n.max))}),e},t.prototype.setBaseSeries=function(t,e){var i,o=this.chart,n=this.baseSeries=[];t=t||(null==(i=o.options.navigator)?void 0:i.baseSeries)||(o.series.length?tW(o.series,function(t){return!t.options.isInternal}).index:0),(o.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&n.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},t.prototype.updateNavigatorSeries=function(t,e){var i,o,n,r,s,a=this,l=a.chart,h=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(i=this.navigatorOptions.xAxis)?void 0:i.id,yAxis:null==(o=this.navigatorOptions.yAxis)?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var e=t.baseSeries;return!(e&&0>h.indexOf(e))||(e&&(t3(e,"updatedData",a.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;h&&h.length&&h.forEach(function(t){var i,o,u=t.navigatorSeries,f=tL({color:t.color,visible:t.visible},t_(p)?ep.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+h.length,s=(n=t.options||{}).navigatorOptions||{},f.dataLabels=t5(f.dataLabels),(r=tV(n,d,f,s)).pointRange=tJ(f.pointRange,s.pointRange,null==(i=ep.plotOptions[r.type||"line"])?void 0:i.pointRange);var g=s.data||f.data;a.hasNavigatorData=a.hasNavigatorData||!!g,r.data=g||(null==(o=n.data)?void 0:o.slice(0)),u&&u.options?u.update(r,e):(t.navigatorSeries=l.initSeries(r),l.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),((null==p?void 0:p.data)&&!(h&&h.length)||t_(p))&&(a.hasNavigatorData=!1,(p=t5(p)).forEach(function(t,e){var i,o,n;d.name="Navigator "+(c.length+1),(r=tV(null==(i=ep.navigator)?void 0:i.series,{color:l.series[e]&&!l.series[e].options.isInternal&&l.series[e].color||(null==(o=l.options.colors)?void 0:o[e])||(null==(n=l.options.colors)?void 0:n[0])},d,t)).data=t.data,r.data&&(a.hasNavigatorData=!0,c.push(l.initSeries(r)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(tv(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(tv(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(tv(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(tv(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(tv(o,"remove",function(){i&&tO(i,o),this.navigatorSeries&&e.series&&(tO(e.series,this.navigatorSeries),tA(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){var i;return Math.min(t,null!=(i=e.getColumn("x")[0])?i:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,e,i,o=this.chart.navigator,n=this.getExtremes(),r=n.min,s=n.max,a=n.dataMin,l=n.dataMax,h=s-r,d=null==o?void 0:o.stickToMin,c=null==o?void 0:o.stickToMax,p=tJ(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(e=(i=a)+h),c&&(e=l+p,d||(i=Math.max(a,e-h,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&tF(i)&&(this.min=this.userMin=i,this.max=this.userMax=e)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=tJ(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,n=o.max,r=o.min,s=o.options.range;return!!(tF(n)&&tF(r))&&(s&&n-i>0?n-i<s:r<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tv(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),tv(this.chart,"getMargins",function(){var t,e=this.navigator,i=e.opposite?"plotTop":"marginBottom";this.inverted&&(i=e.opposite?"marginRight":"plotLeft"),this[i]=(this[i]||0)+(e.navigatorEnabled||!this.inverted?e.height+((null==(t=this.scrollbar)?void 0:t.options.margin)||0)+e.scrollbarHeight:0)+(e.navigatorOptions.margin||0)}),tv(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(tO(this.chart.xAxis,this.xAxis),tO(this.chart.axes,this.xAxis)),this.yAxis&&(tO(this.chart.yAxis,this.yAxis),tO(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null}),[this.handles].forEach(function(t){tT(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),rB={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},rI={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}},rD=tp.composed,rz=[];function rR(){var t,e,i=this.range,o=i.type,n=this.max,r=this.chart.time,s=function(t,e){var i=r.toParts(t),n=i.slice();"year"===o?n[0]+=e:n[1]+=e;var s=r.makeTime.apply(r,n),a=r.toParts(s);return"month"===o&&i[1]===a[1]&&1===Math.abs(e)&&(n[0]=i[0],n[1]=i[1],n[2]=0),(s=r.makeTime.apply(r,n))-t};tF(i)?(t=n-i,e=i):i&&(t=n+s(n,-(i.count||1)),this.chart&&this.chart.setFixedRange(n-t));var a=tJ(this.dataMin,5e-324);return tF(t)||(t=a),t<=a&&(t=a,void 0===e&&(e=s(t,i.count)),this.newMax=Math.min(t+e,tJ(this.dataMax,Number.MAX_VALUE))),tF(n)?!tF(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function rN(){var t;null==(t=this.rangeSelector)||t.redrawElements()}function rW(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new tr(this))}function rG(){var t=this.rangeSelector;if(t){tF(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"===e&&(this.extraTopMargin=!0))}}function rX(){var t,e=this.rangeSelector;if(e){var i=this.xAxis[0].getExtremes(),o=this.legend,n=e&&e.options.verticalAlign;tF(i.min)&&e.render(i.min,i.max),(null==o?void 0:o.display)&&"top"===n&&n===o.options.verticalAlign&&(t=tV(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),o.group.placed=!1,o.align(t))}}function rH(){for(var t=0,e=rz.length;t<e;++t){var i=rz[t];if(i[0]===this){i[1].forEach(function(t){return t()}),rz.splice(t,1);return}}}function rF(){var t,e=this.rangeSelector;if(null==(t=null==e?void 0:e.options)?void 0:t.enabled){var i=this.xAxis[0].getExtremes(),o=i.min,n=i.max;tF(o)&&e.inputGroup&&e.inputGroup.getBBox().width<20&&e.render(o,n);var r=e.getHeight(),s=e.options.verticalAlign;e.options.floating||("bottom"===s?this.marginBottom+=r:"middle"!==s&&(this.plotTop+=r))}}function rY(t){var e=t.options.rangeSelector,i=this.extraBottomMargin,o=this.extraTopMargin,n=this.rangeSelector;if(e&&e.enabled&&!tA(n)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=n=new tr(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,n){var r=e&&e.verticalAlign||n.options&&n.options.verticalAlign;n.options.floating||("bottom"===r?this.extraBottomMargin=!0:"middle"!==r&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==i||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var r_=function(t,e,i){if(tr=i,t0(rD,"RangeSelector")){var o=e.prototype;t.prototype.minFromRange=rR,tv(e,"afterGetContainer",rW),tv(e,"beforeRender",rG),tv(e,"destroy",rH),tv(e,"getMargins",rF),tv(e,"redraw",rX),tv(e,"update",rY),tv(e,"beforeRedraw",rN),o.callbacks.push(rX),tL(ep,{rangeSelector:rI}),tL(ep.lang,rB)}},rj=eW.format;function rU(t){var e=function(e){return new RegExp("%[[a-zA-Z]*".concat(e)).test(t)};if(tY(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var i=tY(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,o=tY(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&o?"datetime-local":i?"date":o?"time":"text"}var rV=function(){function t(t){var e=this;this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return e.buttons.forEach(function(e){var i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(t)}return t.compose=function(e,i){r_(e,i,t)},t.prototype.clickButton=function(t,e){var i,o,n,r,s,a=this.chart,l=this.buttonOptions[t],h=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||h||{},c=l.type,p=l.dataGrouping,u=d.dataMin,f=d.dataMax,g=tF(null==h?void 0:h.max)?Math.round(Math.min(h.max,null!=f?f:h.max)):void 0,v=l._range,m=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,iP.prototype.setDataGrouping.call(h||{chart:this.chart},p,!1),this.frozenStates=l.preserveDataGrouping),"month"===c||"year"===c)h?(r={range:l,max:g,chart:a,dataMin:u,dataMax:f},i=h.minFromRange.call(r),tF(r.newMax)&&(g=r.newMax),m=!1):v=l;else if(v)tF(g)&&(g=Math.min((i=Math.max(g-v,u))+v,f),m=!1);else if("ytd"===c)if(h)!h.hasData()||tF(f)&&tF(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var e=t.getColumn("x");e.length&&(u=Math.min(e[0],u),f=Math.max(e[e.length-1],f))}),e=!1),tF(f)&&tF(u)&&(i=n=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}else"all"===c&&h&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),i=u,g=f);if(m&&l._offsetMin&&tA(i)&&(i+=l._offsetMin),l._offsetMax&&tA(g)&&(g+=l._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),h)(tF(i)||tF(g))&&(h.setExtremes(i,g,tJ(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:l}),a.setFixedRange(l._range));else{o=t5(a.options.xAxis||{})[0];var y=tv(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=v,t.min=t.options.min=n});tv(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(l._range),t.options.range=o.range,t.options.min=o.min,y()})}tB(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=t.options.lang,n=i.buttons,r=i.selected,s=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&tB(t,"blur"),i&&i.blur&&tB(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=n.map(function(t){return t.type&&o.rangeSelector&&(null!=t.text||(t.text=o.rangeSelector[""+t.type+"Text"]),null!=t.title||(t.title=o.rangeSelector[""+t.type+"Title"])),t.text=rj(t.text,{count:t.count||1}),t.title=rj(t.title,{count:t.count||1}),t}),this.eventsToUnbind=[],this.eventsToUnbind.push(tv(t.container,"mousedown",s)),this.eventsToUnbind.push(tv(t,"resize",s)),n.forEach(e.computeButtonRange),void 0!==r&&n[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(tv(t,"load",function(){t.xAxis&&t.xAxis[0]&&tv(t.xAxis[0],"setExtremes",function(i){tF(this.max)&&tF(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=this.dropdownLabel,n=e.xAxis[0],r=Math.round(n.max-n.min),s=!n.hasVisibleSeries,a=24*36e5,l=e.scroller&&e.scroller.getUnionExtremes()||n,h=l.dataMin,d=l.dataMax,c=t.getYTDExtremes(d,h),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,v=Array(t.buttonOptions.length).fill(0),m=tF(f),y=t.buttons,x=!1,b=null;t.buttonOptions.forEach(function(e,i){var o,l=e._range,c=e.type,y=e.count||1,M=e._offsetMax-e._offsetMin,k=i===f,w=l>d-h,S=l<n.minRange,A=!1,T=l===r;if(k&&w&&(x=!0),n.isOrdinal&&(null==(o=n.ordinal)?void 0:o.positions)&&l&&r<l){var P=n.ordinal.positions;P[P.length-1]-P[0]>l&&(T=!0)}else("month"===c||"year"===c)&&r+36e5>=({month:28,year:365})[c]*a*y-M&&r-36e5<=({month:31,year:366})[c]*a*y+M?T=!0:"ytd"===c?(T=u-p+M===r,A=!k):"all"===c&&(T=n.max-n.min>=d-h);var C=!g&&!(x&&"all"===c)&&(w||S||s),O=x&&"all"===c||!A&&T||k&&t.frozenStates;C?v[i]=3:O&&(!m||i===f)&&(b=i)}),null!==b?(v[b]=2,t.setSelected(b),this.dropdown&&(this.dropdown.selectedIndex=b+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(ep.lang.rangeSelectorZoom||"")+" ▾"})));for(var M=0;M<v.length;M++){var k=v[M],w=y[M];if(w.state!==k&&(w.setState(k),i)){i.options[M+1].disabled=3===k,2===k&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[M].text+" ▾"})),i.selectedIndex=M+1);var S=o.getBBox();tS(i,{width:""+S.width+"px",height:""+S.height+"px"})}}},t.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=tJ(t.offsetMin,0),t._offsetMax=tJ(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,n="min"===t?this.minInput:this.maxInput,r="min"===t?this.minDateBox:this.maxDateBox;if(n){n.setAttribute("type",rU(i.inputDateFormat||"%e %b %Y"));var s=n.getAttribute("data-hc-time"),a=tA(s)?Number(s):void 0;if(tA(e)){var l=a;tA(l)&&n.setAttribute("data-hc-time-previous",l),n.setAttribute("data-hc-time",e),a=e}n.value=o.dateFormat(this.inputTypeFormats[n.type]||i.inputEditDateFormat,a),r&&r.attr({text:o.dateFormat(i.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,e,i){var o="min"===t?this.minInput:this.maxInput;if(o){var n=this.inputTypeFormats[o.type],r=this.chart.time;if(n){var s=r.dateFormat(n,e);o.min!==s&&(o.min=s);var a=r.dateFormat(n,i);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){var o="text"===i.type,n=this.inputGroup,r=n.translateX,s=void 0===r?0:r,a=n.translateY,l=void 0===a?0:a,h=e.x,d=void 0===h?0:h,c=e.width,p=void 0===c?0:c,u=e.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;tS(i,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?tS(i,{left:s+d+"px",top:l+"px"}):tS(i,{left:Math.min(Math.round(d+s-(i.offsetWidth-p)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:l-(i.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var e="min"===t?this.minInput:this.maxInput;e&&tS(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,e,i){return(null==i?void 0:i.parse(t))||0},t.prototype.drawInput=function(t){var e=this.chart,i=this.div,o=this.inputGroup,n=this,r=e.renderer.style||{},s=e.renderer,a=e.options.rangeSelector,l=ep.lang,h="min"===t;function d(t){var i,o=n.maxInput,r=n.minInput,s=e.xAxis[0],a=(null==(i=e.scroller)?void 0:i.getUnionExtremes())||s,l=a.dataMin,d=a.dataMax,c=e.xAxis[0].getExtremes()[t],p=n.getInputValue(t);tF(p)&&p!==c&&(h&&o&&tF(l)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<l&&(p=l):r&&tF(d)&&(p<Number(r.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(h?p:s.min,h?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=l[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){n.showInput(t),n[t+"Input"].focus()});e.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=tk("input",{name:t,className:"highcharts-range-selector"},void 0,i);f.setAttribute("type",rU(a.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css(tV(r,a.labelStyle)),u.css(tV({color:"#333333"},r,a.inputStyle)),tS(f,tL({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:r.fontSize,fontFamily:r.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){n.showInput(t)},f.onblur=function(){f===tp.doc.activeElement&&d(t),n.hideInput(t),n.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),n.hideInput(t),f.blur())},f.onkeypress=function(e){13===e.keyCode&&d(t)},f.onkeydown=function(e){g=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,e){var i=this.chart.time,o=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(o,0))}},t.prototype.createElements=function(){var t,e=this.chart,i=e.renderer,o=e.container,n=e.options,r=n.rangeSelector,s=r.inputEnabled,a=tJ(null==(t=n.chart.style)?void 0:t.zIndex,0)+1;!1!==r.enabled&&(this.group=i.g("range-selector-group").attr({zIndex:7}).add(),this.div=tk("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input},t.prototype.render=function(t,e){if(!1!==this.options.enabled){var i,o,n=this.chart,r=n.options.rangeSelector;if(r.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(null==(i=this.maxLabel)||i.css(r.labelStyle),null==(o=this.minLabel)||o.css(r.labelStyle));var s=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{};if(tA(s.dataMin)&&tA(s.dataMax)){var a=n.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:l}),l+=e+r.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(r.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,e,i=this,o=this.chart,n=this.options,r=ep.lang,s=o.renderer,a=tV(n.buttonTheme),l=a&&a.states;delete a.width,delete a.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var h=this.dropdown=tk("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),d=null==(t=o.userOptions.rangeSelector)?void 0:t.buttonTheme;this.dropdownLabel=s.button("",0,0,function(){},tV(a,{"stroke-width":tJ(a["stroke-width"],0),width:"auto",paddingLeft:tJ(n.buttonTheme.paddingLeft,null==d?void 0:d.padding,8),paddingRight:tJ(n.buttonTheme.paddingRight,null==d?void 0:d.padding,8)}),l&&l.hover,l&&l.select,l&&l.disabled).hide().add(this.group),tv(h,"touchstart",function(){h.style.fontSize="16px"});var c=tp.isMS?"mouseover":"mouseenter",p=tp.isMS?"mouseout":"mouseleave";tv(h,c,function(){tB(i.dropdownLabel.element,c)}),tv(h,p,function(){tB(i.dropdownLabel.element,p)}),tv(h,"change",function(){tB(i.buttons[h.selectedIndex-1].element,"click")}),this.zoomText=s.label(r.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),null!=(e=n.buttonTheme)["stroke-width"]||(e["stroke-width"]=0)),tk("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,h),this.createButtons()},t.prototype.createButtons=function(){var t=this,e=tV(this.options.buttonTheme),i=e&&e.states,o=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach(function(e,n){t.createButton(e,n,o,i)})},t.prototype.createButton=function(t,e,i,o){var n,r=this,s=this.dropdown,a=this.buttons,l=this.chart,h=this.options,d=l.renderer,c=tV(h.buttonTheme);null==s||s.add(tk("option",{textContent:t.title||t.text}),e+2),a[e]=d.button(null!=(n=t.text)?n:"",0,0,function(i){var o,n=t.events&&t.events.click;n&&(o=n.call(t,i)),!1!==o&&r.clickButton(e),r.isActive=!0},c,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&a[e].attr("title",t.title)},t.prototype.alignElements=function(){var t,e=this,i=this.buttonGroup,o=this.buttons,n=this.chart,r=this.group,s=this.inputGroup,a=this.options,l=this.zoomText,h=n.options,d=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,i,o){return d&&e.titleCollision(n)&&"top"===u&&o&&i.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+n.spacing[0]?-40:0},g=n.plotLeft;if(r&&c&&p){var v=c.x-n.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;l&&(m+=l.getBBox().width+5),o.forEach(function(t,e){m+=t.width||0,e!==o.length-1&&(m+=a.buttonSpacing)}),this.initialButtonGroupWidth=m}g-=n.spacing[3];var y=f(i,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(y),(null==(t=this.buttonGroup)?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),r.placed=i.placed=n.hasLoaded}var x=0;a.inputEnabled&&s&&(x=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?v=g:"right"===p.align&&(v=-Math.max(n.axisOffset[1],-x)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+v-2},!0,n.spacingBox),s.placed=n.hasLoaded),this.handleCollision(x),r.align({verticalAlign:u},!0,n.spacingBox);var b=r.alignAttr.translateY,M=r.getBBox().height+20,k=0;if("bottom"===u){var w=n.legend&&n.legend.options;k=b-(M=M+(w&&"bottom"===w.verticalAlign&&w.enabled&&!w.floating?n.legend.legendHeight+tJ(w.margin,10):0)-20)-(a.floating?0:a.y)-(n.titleOffset?n.titleOffset[2]:0)-10}"top"===u?(a.floating&&(k=0),n.titleOffset&&n.titleOffset[0]&&(k=n.titleOffset[0]),k+=n.margin[0]-n.spacing[0]||0):"middle"===u&&(p.y===c.y?k=b:(p.y||c.y)&&(p.y<0||c.y<0?k-=Math.min(p.y,c.y):k=b-M)),r.translate(a.x,a.y+Math.floor(k));var S=this.minInput,A=this.maxInput,T=this.dropdown;a.inputEnabled&&S&&A&&(S.style.marginTop=r.translateY+"px",A.style.marginTop=r.translateY+"px"),T&&(T.style.marginTop=r.translateY+"px")}},t.prototype.redrawElements=function(){var t,e,i,o,n,r,s,a=this.chart,l=this.options,h=l.inputBoxHeight,d=l.inputBoxBorderColor;if(null==(t=this.maxDateBox)||t.attr({height:h}),null==(e=this.minDateBox)||e.attr({height:h}),a.styledMode||(null==(i=this.maxDateBox)||i.attr({stroke:d}),null==(o=this.minDateBox)||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!=(n=this.options.buttons)?n:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=tV(this.options.buttonTheme),g=f&&f.states,v=f.width||28;if(c.length<this.buttonOptions.length)for(var m=this.buttonOptions.length-1;m>=c.length;m--){var y=this.buttons.pop();null==y||y.destroy(),null==(r=this.dropdown)||r.options.remove(m+1)}for(var m=p-1;m>=0;m--){var x=c[m];this.buttons[m].destroy(),null==u||u.options.remove(m+1),this.createButton(x,m,v,g),this.computeButtonRange(x)}if(c.length>this.buttonOptions.length)for(var m=this.buttonOptions.length;m<c.length;m++)this.createButton(c[m],m,v,g),this.computeButtonRange(c[m]);this.buttonOptions=null!=(s=this.options.buttons)?s:[],tA(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.options,n=this.buttonGroup,r=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,l=i.plotLeft-i.spacing[3],h=a.x-i.spacing[3],d=i.plotLeft;"right"===a.align?(h+=t-l,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(h-=l/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),r&&tS(r,{left:d+"px",top:(null==n?void 0:n.translateY)+"px"}),null==s||s.attr({x:d}),n&&n.align({y:a.y,width:tJ(e,this.initialButtonGroupWidth),align:a.align,x:h},!0,i.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,n=e.hasLoaded?"animate":"attr",r=i.buttonPosition,s=e.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[n]({x:tJ(s+r.x,s)}),a+=r.x+o.getBBox().width+5);for(var l=0,h=this.buttonOptions.length;l<h;++l)"hidden"!==t[l].visibility?(t[l][n]({x:a}),a+=(t[l].width||0)+i.buttonSpacing):t[l][n]({x:s})},t.prototype.handleCollision=function(t){var e=this.chart,i=this.buttonGroup,o=this.inputGroup,n=this.initialButtonGroupWidth,r=this.options,s=r.buttonPosition,a=r.dropdown,l=r.inputPosition,h=function(){o&&i&&o.attr({translateX:o.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+i.getBBox().height+10})};o&&i?l.align===s.align?(h(),n>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):n-t+o.getBBox().width>e.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():h():this.expandButtons():i&&"responsive"===a&&(n>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,e=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,e=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.dropdownLabel,i=this.dropdown;t&&i&&(e.show(),tS(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),tS(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.inputPosition,o=t.buttonPosition,n=t.y,r=o.y,s=i.y,a=0;if(t.height)return t.height;this.alignElements(),a=e?e.getBBox(!0).height+13+n:0;var l=Math.min(s,r);return(s<0&&r<0||s>0&&r>0)&&(a+=Math.abs(l)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=this.chart;if(tV(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),tA(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons||!!t.buttonTheme,e&&this.render()},t.prototype.destroy=function(){var e=this,i=e.minInput,o=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach(function(t){return t()}),e.eventsToUnbind=void 0),tT(e.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),tK(e,function(i,o){i&&"chart"!==o&&(i instanceof eZ?i.destroy():i instanceof window.HTMLElement&&tP(i),delete e[o]),i!==t.prototype[o]&&(e[o]=null)},this),this.buttons=[]},t}();tL(rV.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});function rZ(t,e){for(var i=[],o=0;o<t.length;o++){var n=t[o][1],r=t[o][2];if("number"==typeof n&&"number"==typeof r)if(0===o)i.push(["M",n,r]);else if(o===t.length-1)i.push(["L",n,r]);else if(e){var s=t[o-1],a=t[o+1];if(s&&a){var l=s[1],h=s[2],d=a[1],c=a[2];if("number"==typeof l&&"number"==typeof d&&"number"==typeof h&&"number"==typeof c&&l!==d&&h!==c){var p=l<d?1:-1,u=h<c?1:-1;i.push(["L",n-p*Math.min(Math.abs(n-l),e),r-u*Math.min(Math.abs(r-h),e)],["C",n,r,n,r,n+p*Math.min(Math.abs(n-d),e),r+u*Math.min(Math.abs(r-c),e)])}}}else i.push(["L",n,r])}return i}var rK=Math.min,rq=Math.max,r$=Math.abs;function rJ(t,e,i){for(var o,n,r=e-1e-7,s=i||0,a=t.length-1;s<=a;)if((n=r-t[o=a+s>>1].xMin)>0)s=o+1;else{if(!(n<0))return o;a=o-1}return s>0?s-1:0}function rQ(t,e){for(var i,o=rJ(t,e.x+1)+1;o--;)if(t[o].xMax>=e.x&&(i=t[o],e.x<=i.xMax&&e.x>=i.xMin&&e.y<=i.yMax&&e.y>=i.yMin))return o;return -1}function r0(t){var e=[];if(t.length){e.push(["M",t[0].start.x,t[0].start.y]);for(var i=0;i<t.length;++i)e.push(["L",t[i].end.x,t[i].end.y])}return e}function r1(t,e){t.yMin=rq(t.yMin,e.yMin),t.yMax=rK(t.yMax,e.yMax),t.xMin=rq(t.xMin,e.xMin),t.xMax=rK(t.xMax,e.xMax)}var r2=function(t,e,i){var o,n,r,s,a,l=[],h=i.chartObstacles,d=rQ(h,t),c=rQ(h,e),p=tJ(i.startDirectionX,r$(e.x-t.x)>r$(e.y-t.y))?"x":"y";function u(t,e,i,o,n){var r={x:t.x,y:t.y};return r[e]=i[o||e]+(n||0),r}function f(t,e,i){var o=r$(e[i]-t[i+"Min"])>r$(e[i]-t[i+"Max"]);return u(e,i,t,i+(o?"Max":"Min"),o?1:-1)}c>-1?(o={start:r=f(h[c],e,p),end:e},a=r):a=e,d>-1&&(r=f(n=h[d],t,p),l.push({start:t,end:r}),r[p]>=t[p]==r[p]>=a[p]&&(s=t[p="y"===p?"x":"y"]<e[p],l.push({start:r,end:u(r,p,n,p+(s?"Max":"Min"),s?1:-1)}),p="y"===p?"x":"y"));var g=l.length?l[l.length-1].end:t;r=u(g,p,a),l.push({start:g,end:r});var v=u(r,p="y"===p?"x":"y",a);return l.push({start:r,end:v}),l.push(o),{path:rZ(r0(l),i.radius),obstacles:l}};function r3(t,e,i){var o,n,r,s,a,l,h,d=tJ(i.startDirectionX,r$(e.x-t.x)>r$(e.y-t.y)),c=d?"x":"y",p=[],u=i.obstacleMetrics,f=rK(t.x,e.x)-u.maxWidth-10,g=rq(t.x,e.x)+u.maxWidth+10,v=rK(t.y,e.y)-u.maxHeight-10,m=rq(t.y,e.y)+u.maxHeight+10,y=!1,x=i.chartObstacles,b=rJ(x,g),M=rJ(x,f);function k(t,e,i){var o,n,r,s,a=t.x<e.x?1:-1;t.x<e.x?(o=t,n=e):(o=e,n=t),t.y<e.y?(s=t,r=e):(s=e,r=t);for(var l=a<0?rK(rJ(x,n.x),x.length-1):0;x[l]&&(a>0&&x[l].xMin<=n.x||a<0&&x[l].xMax>=o.x);){if(x[l].xMin<=n.x&&x[l].xMax>=o.x&&x[l].yMin<=r.y&&x[l].yMax>=s.y){if(i)return{y:t.y,x:t.x<e.x?x[l].xMin-1:x[l].xMax+1,obstacle:x[l]};return{x:t.x,y:t.y<e.y?x[l].yMin-1:x[l].yMax+1,obstacle:x[l]}}l+=a}return e}function w(t,e,i,o,n){var r=n.soft,s=n.hard,a=o?"x":"y",l={x:e.x,y:e.y},h={x:e.x,y:e.y},d=t[a+"Max"]>=r[a+"Max"],c=t[a+"Min"]<=r[a+"Min"],p=t[a+"Max"]>=s[a+"Max"],u=t[a+"Min"]<=s[a+"Min"],f=r$(t[a+"Min"]-e[a]),g=r$(t[a+"Max"]-e[a]),v=10>r$(f-g)?e[a]<i[a]:g<f;h[a]=t[a+"Min"],l[a]=t[a+"Max"];var m=k(e,h,o)[a]!==h[a],y=k(e,l,o)[a]!==l[a];return v=m?!y||v:!y&&v,v=c?!d||v:!d&&v,v=u?!p||v:!p&&v}for((b=rQ(x=x.slice(M,b+1),e))>-1&&(o=x[b],n=e,r=rK(o.xMax-n.x,n.x-o.xMin)<rK(o.yMax-n.y,n.y-o.yMin),s=w(o,n,t,r,{soft:i.hardBounds,hard:i.hardBounds}),h=r?{y:n.y,x:o[s?"xMax":"xMin"]+(s?1:-1)}:{x:n.x,y:o[s?"yMax":"yMin"]+(s?1:-1)},p.push({end:e,start:h}),e=h);(b=rQ(x,e))>-1;)l=e[c]-t[c]<0,(h={x:e.x,y:e.y})[c]=x[b][l?c+"Max":c+"Min"]+(l?1:-1),p.push({end:e,start:h}),e=h;return{path:r0(a=(a=function t(e,o,n){if(e.x===o.x&&e.y===o.y)return[];var r,s,a,l,h,d,c,p=n?"x":"y",u=i.obstacleOptions.margin,b={soft:{xMin:f,xMax:g,yMin:v,yMax:m},hard:i.hardBounds};return(h=rQ(x,e))>-1?(l=w(h=x[h],e,o,n,b),r1(h,i.hardBounds),c=n?{y:e.y,x:h[l?"xMax":"xMin"]+(l?1:-1)}:{x:e.x,y:h[l?"yMax":"yMin"]+(l?1:-1)},(d=rQ(x,c))>-1&&(r1(d=x[d],i.hardBounds),c[p]=l?rq(h[p+"Max"]-u+1,(d[p+"Min"]+h[p+"Max"])/2):rK(h[p+"Min"]+u-1,(d[p+"Max"]+h[p+"Min"])/2),e.x===c.x&&e.y===c.y?(y&&(c[p]=l?rq(h[p+"Max"],d[p+"Max"])+1:rK(h[p+"Min"],d[p+"Min"])-1),y=!y):y=!1),s=[{start:e,end:c}]):(r=k(e,{x:n?o.x:e.x,y:n?e.y:o.y},n),s=[{start:e,end:{x:r.x,y:r.y}}],r[n?"x":"y"]!==o[n?"x":"y"]&&(l=w(r.obstacle,r,o,!n,b),r1(r.obstacle,i.hardBounds),a={x:n?r.x:r.obstacle[l?"xMax":"xMin"]+(l?1:-1),y:n?r.obstacle[l?"yMax":"yMin"]+(l?1:-1):r.y},n=!n,s=s.concat(t({x:r.x,y:r.y},a,n)))),s=s.concat(t(s[s.length-1].end,o,!n))}(t,e,d)).concat(p.reverse())),obstacles:a}}r2.requiresObstacles=!0,r3.requiresObstacles=!0;var r5={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}};function r6(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}!function(t){function e(t){var e,i,o=r6(this);switch(t.align){case"right":e="xMax";break;case"left":e="xMin"}switch(t.verticalAlign){case"top":i="yMin";break;case"bottom":i="yMax"}return{x:e?o[e]:(o.xMin+o.xMax)/2,y:i?o[i]:(o.yMin+o.yMax)/2}}function i(t,e){var i;return!tA(e)&&(i=r6(this))&&(e={x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2}),Math.atan2(e.y-t.y,t.x-e.x)}function o(t,e,i){for(var o=2*Math.PI,n=r6(this),r=n.xMax-n.xMin,s=n.yMax-n.yMin,a=Math.atan2(s,r),l=r/2,h=s/2,d=n.xMin+l,c=n.yMin+h,p={x:d,y:c},u=t,f=1,g=!1,v=1,m=1;u<-Math.PI;)u+=o;for(;u>Math.PI;)u-=o;return f=Math.tan(u),u>-a&&u<=a?(m=-1,g=!0):u>a&&u<=Math.PI-a?m=-1:u>Math.PI-a||u<=-(Math.PI-a)?(v=-1,g=!0):v=-1,g?(p.x+=v*l,p.y+=m*l*f):(p.x+=s/(2*f)*v,p.y+=m*h),i.x!==d&&(p.x=i.x),i.y!==c&&(p.y=i.y),{x:p.x+e*Math.cos(u),y:p.y-e*Math.sin(u)}}t.compose=function(t,n,r){var s=r.prototype;s.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,e){return e.options&&tV(!0,e.options.connectors=e.options.connectors||{},e.options.pathfinder),t||e.options&&e.options.pathfinder},!1))&&(tV(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),ee('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new n(this),this.pathfinder.update(!0))}),s.getMarkerVector=o,s.getPathfinderAnchorPoint=e,s.getRadiansToVector=i,ef(r5))}}(ts||(ts={}));var r9=ts,r4=Math.max,r8=Math.min,r7=function(){function t(t){this.init(t)}return t.compose=function(e,i){r9.compose(e,t,i)},t.prototype.init=function(t){this.chart=t,this.connections=[],tv(t,"redraw",function(){this.pathfinder.update()})},t.prototype.update=function(t){var e=this.chart,i=this,o=i.connections;i.connections=[],e.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){var o,n,r=t.options;r&&r.dependency&&(r.connect=r.dependency);var s=(null==(o=t.options)?void 0:o.connect)?t5(t.options.connect):[];t.visible&&!1!==t.isInside&&s.forEach(function(o){var r="string"==typeof o?o:o.to;r&&(n=e.get(r)),n instanceof iY&&n.series.visible&&n.visible&&!1!==n.isInside&&i.connections.push(new nQ(t,n,"string"==typeof o?{}:o))})})});for(var n=0,r=void 0,s=void 0,a=o.length,l=i.connections.length;n<a;++n){s=!1;var h=o[n];for(r=0;r<l;++r){var d=i.connections[r];if((h.options&&h.options.type)===(d.options&&d.options.type)&&h.fromPoint===d.fromPoint&&h.toPoint===d.toPoint){d.graphics=h.graphics,s=!0;break}}s||h.destroy()}delete this.chartObstacles,delete this.lineObstacles,i.renderConnections(t)},t.prototype.renderConnections=function(t){t?this.chart.series.forEach(function(t){var e=function(){var e=t.chart.pathfinder;(e&&e.connections||[]).forEach(function(e){e.fromPoint&&e.fromPoint.series===t&&e.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?e():t.pathfinderRemoveRenderEvent=tv(t,"afterAnimate",e)}):this.connections.forEach(function(t){t.render()})},t.prototype.getChartObstacles=function(t){for(var e,i=this.chart.series,o=tJ(t.algorithmMargin,0),n=[],r=0,s=i.length;r<s;++r)if(i[r].visible&&!i[r].options.isInternal)for(var a=0,l=i[r].points.length,h=void 0,d=void 0;a<l;++a)(d=i[r].points[a]).visible&&(h=function(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}(d))&&n.push({xMin:h.xMin-o,xMax:h.xMax+o,yMin:h.yMin-o,yMax:h.yMax+o});return n=n.sort(function(t,e){return t.xMin-e.xMin}),tA(t.algorithmMargin)||(e=t.algorithmMargin=function(t){for(var e,i=t.length,o=[],n=0;n<i;++n)for(var r=n+1;r<i;++r)(e=function t(e,i,o){var n=tJ(o,10),r=e.yMax+n>i.yMin-n&&e.yMin-n<i.yMax+n,s=e.xMax+n>i.xMin-n&&e.xMin-n<i.xMax+n,a=r?e.xMin>i.xMax?e.xMin-i.xMax:i.xMin-e.xMax:1/0,l=s?e.yMin>i.yMax?e.yMin-i.yMax:i.yMin-e.yMax:1/0;return s&&r?n?t(e,i,Math.floor(n/2)):1/0:r8(a,l)}(t[n],t[r]))<80&&o.push(e);return o.push(80),r4(Math.floor(o.sort(function(t,e){return t-e})[Math.floor(o.length/10)]/2-1),1)}(n),n.forEach(function(t){t.xMin-=e,t.xMax+=e,t.yMin-=e,t.yMax+=e})),n},t.prototype.getObstacleMetrics=function(t){for(var e,i,o=0,n=0,r=t.length;r--;)e=t[r].xMax-t[r].xMin,i=t[r].yMax-t[r].yMin,o<e&&(o=e),n<i&&(n=i);return{maxHeight:n,maxWidth:o}},t.prototype.getAlgorithmStartDirection=function(t){var e="left"!==t.align&&"right"!==t.align,i="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return e?!!i&&void 0:!!i||void 0},t}();function st(){var t,e=this.chart.userOptions.chart;!this.horiz&&tF(this.options.staticScale)&&(!(null==e?void 0:e.height)||(null==(t=e.scrollablePlotArea)?void 0:t.minHeight))&&(this.staticScale=this.options.staticScale)}function se(){var t,e;if("adjustHeight"!==this.redrawTrigger){for(var i=0,o=this.axes||[];i<o.length;i++)!function(i){var o=i.chart,n=i.options.staticScale;if(i.staticScale&&n&&tA(i.min)&&tA(i.max)){var r=(null!=(e=null==(t=i.brokenAxis)?void 0:t.unitLength)?e:i.max+i.tickInterval-i.min)*n,s=(r=Math.max(r,n))-o.plotHeight;!o.scrollablePixelsY&&Math.abs(s)>=1&&(o.plotHeight=r,o.redrawTrigger="adjustHeight",o.setSize(void 0,o.chartHeight+s,!!o.initiatedScale&&void 0)),i.series.forEach(function(t){var e=t.sharedClipKey&&o.sharedClips[t.sharedClipKey];e&&e.attr(o.inverted?{width:o.plotHeight}:{height:o.plotHeight})})}}(o[i]);this.initiatedScale=!0}this.redrawTrigger=void 0}r7.prototype.algorithms={fastAvoid:r3,straight:function(t,e){return{path:[["M",t.x,t.y],["L",e.x,e.y]],obstacles:[{start:t,end:e}]}},simpleConnect:r2},tp.Pathfinder=tp.Pathfinder||r7,nK(tp.SVGRenderer),tp.Pathfinder.compose(tp.Chart,tp.Point);var si=function(t,e){var i=e.prototype;i.adjustHeight||(tv(t,"afterSetOptions",st),i.adjustHeight=se,tv(e,"render",i.adjustHeight))};si(tp.Axis,tp.Chart);var so={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if(tU(t)&&(t=t.amount),tF(t)&&t>0)return tM(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},sn=(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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sr=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.y||(o.y=0),o}return sn(e,t),e.getColorByCategory=function(t,e){var i=t.options.colors||t.chart.options.colors,o=i?i.length:t.chart.options.chart.colorCount,n=e.y%o,r=null==i?void 0:i[n];return{colorIndex:n,color:r}},e.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var i=e.getColorByCategory(t,this);t.chart.styledMode||(this.color=i.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=i.colorIndex)}else this.color=this.options.color||t.color},e.prototype.applyOptions=function(e,i){var o;return t.prototype.applyOptions.call(this,e,i),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null==(o=this.isValid)?void 0:o.call(this)),this.formatPrefix=this.isNull?"null":"point",this},e.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},e.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},e}(i7.seriesTypes.column.prototype.pointClass);tL(sr.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var ss=(D=function(t,e){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sa=tp.composed,sl=tp.noop,sh=ey.parse,sd=i7.seriesTypes.column;function sc(){var t,e;if(this.isXAxis){t=tJ(this.dataMax,-Number.MAX_VALUE);for(var i=0,o=this.series;i<o.length;i++){var n=o[i],r=n.dataTable.getColumn("x2",!0)||n.dataTable.getColumn("end",!0);if(r)for(var s=0;s<r.length;s++){var a=r[s];tF(a)&&a>t&&(t=a,e=!0)}}e&&(this.dataMax=t)}}var sp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ss(e,t),e.compose=function(t){t0(sa,"Series.XRange")&&tv(t,"afterGetSeriesExtremes",sc)},e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},e.prototype.getColumnMetrics=function(){var e=this,i=function(){for(var t=0,i=e.chart.series;t<i.length;t++){var o=i[t],n=o.xAxis;o.xAxis=o.yAxis,o.yAxis=n}};i();var o=t.prototype.getColumnMetrics.call(this);return i(),o},e.prototype.cropData=function(e,i,o){var n=e.getColumn("x")||[],r=e.getColumn("x2");e.setColumn("x",r,void 0,{silent:!0});var s=t.prototype.cropData.call(this,e,i,o);return e.setColumn("x",n.slice(s.start,s.end),void 0,{silent:!0}),s},e.prototype.findPointIndex=function(t){var e,i=this.cropStart,o=this.points,n=t.id;if(n){var r=tW(o,function(t){return t.id===n});e=r?r.index:void 0}if(void 0===e){var r=tW(o,function(e){return e.x===t.x&&e.x2===t.x2&&!e.touched});e=r?r.index:void 0}return this.cropped&&tF(e)&&tF(i)&&e>=i&&(e-=i),e},e.prototype.alignDataLabel=function(e){var i,o,n=e.plotX;e.plotX=tJ(null==(i=e.dlBox)?void 0:i.centerX,e.plotX),e.dataLabel&&(null==(o=e.shapeArgs)?void 0:o.width)&&e.dataLabel.css({width:""+e.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),e.plotX=n},e.prototype.translatePoint=function(t){var e,i,o,n,r,s,a,l,h,d,c=this.xAxis,p=this.yAxis,u=this.columnMetrics,f=this.options,g=f.minPointLength||0,v=((null==(e=t.shapeArgs)?void 0:e.width)||0)/2,m=this.pointXOffset=u.offset,y=tJ(t.x2,t.x+(t.len||0)),x=f.borderRadius,b=this.chart.plotTop,M=this.chart.plotLeft,k=t.plotX,w=c.translate(y,0,0,0,1),S=Math.abs(w-k),A=this.chart.inverted,T=tJ(f.borderWidth,1),P=u.offset,C=Math.round(u.width);g&&((r=g-S)<0&&(r=0),k-=r/2,w+=r/2),k=Math.max(k,-10),w=tb(w,-10,c.len+10),tA(t.options.pointWidth)&&(P-=(Math.ceil(t.options.pointWidth)-C)/2,C=Math.ceil(t.options.pointWidth)),f.pointPlacement&&tF(t.plotY)&&p.categories&&(t.plotY=p.translate(t.y,0,1,0,1,f.pointPlacement));var O=tw(Math.min(k,w),T),L=tw(Math.max(k,w),T)-O,E=Math.min(t1("object"==typeof x?x.radius:x||0,C),Math.min(L,C)/2),B={x:O,y:tw((t.plotY||0)+P,T),width:L,height:C,r:E};t.shapeArgs=B,A?t.tooltipPos[1]+=m+v:t.tooltipPos[0]-=v+m-B.width/2,l=(a=B.x)+B.width,a<0||l>c.len?(a=tb(a,0,c.len),h=(l=tb(l,0,c.len))-a,t.dlBox=tV(B,{x:a,width:l-a,centerX:h?h/2:null})):t.dlBox=null;var I=t.tooltipPos,D=+!!A,z=+!A,R=this.columnMetrics?this.columnMetrics.offset:-u.width/2;A?I[D]+=B.width/2:I[D]=tb(I[D]+(c.reversed?-1:0)*B.width,c.left-M,c.left+c.len-M-1),I[z]=tb(I[z]+(A?-1:1)*R,p.top-b,p.top+p.len-b-1),(s=null!=(i=t.partialFill)?i:0)&&(tU(s)&&(s=s.amount||0),tF(s)||(s=0),t.partShapeArgs=tV(B),d=Math.max(Math.round(S*s+t.plotX-k),0),t.clipRectArgs={x:c.reversed?B.x+S-d:B.x,y:B.y,width:d,height:B.height}),t.key=t.category||t.name,t.yCategory=null==(o=p.categories)?void 0:o[null!=(n=t.y)?n:-1]},e.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var e=0,i=this.points;e<i.length;e++){var o=i[e];this.translatePoint(o)}},e.prototype.drawPoint=function(t,e){var i=this.options,o=this.chart.renderer,n=t.shapeType,r=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,l=t.state,h=i.states[l||"normal"]||{},d=void 0===l?"attr":e,c=this.pointAttribs(t,l),p=tJ(this.chart.options.chart.animation,h.animation),u=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else if(u?u.rect[e](r):(t.graphic=u=o.g("point").addClass(t.getClassName()).add(t.group||this.group),u.rect=o[n](tV(r)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(u)),s&&(u.partRect?(u.partRect[e](tV(s)),u.partialClipRect[e](tV(a))):(u.partialClipRect=o.clipRect(a.x,a.y,a.width,a.height),u.partRect=o[n](s).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[e](c,p).shadow(i.shadow),s)){tU(f)||(f={}),tU(i.partialFill)&&(f=tV(i.partialFill,f));var g=f.fill||sh(c.fill).brighten(-.3).get()||sh(t.color||this.color).brighten(-.3).get();c.fill=g,u.partRect[d](c,p).shadow(i.shadow)}},e.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),e=0,i=this.points;e<i.length;e++){var o=i[e];this.drawPoint(o,t)}},e.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},e.prototype.isPointInside=function(e){var i=e.shapeArgs,o=e.plotX,n=e.plotY;return i?void 0!==o&&void 0!==n&&n>=0&&n<=this.yAxis.len&&(i.x||0)+(i.width||0)>=0&&o<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},e.defaultOptions=tV(sd.defaultOptions,so),e}(sd);tL(sp.prototype,{pointClass:sr,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:i7.series.prototype.animate,autoIncrement:sl,buildKDTree:sl}),i7.registerSeriesType("xrange",sp),sp.compose(tp.Axis);var su=(z=function(t,e){return(z=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return su(e,t),e.setGanttPointAliases=function(t,e){var i,o,n;t.x=t.start=e.time.parse(null!=(i=t.start)?i:t.x),t.x2=t.end=e.time.parse(null!=(o=t.end)?o:t.x2),t.partialFill=t.completed=null!=(n=t.completed)?n:t.partialFill},e.prototype.applyOptions=function(i,o){var n,r=t.prototype.applyOptions.call(this,i,o);return e.setGanttPointAliases(r,r.series.chart),this.isNull=!(null==(n=this.isValid)?void 0:n.call(this)),this.formatPrefix=this.isNull?"null":"point",r},e.prototype.isValid=function(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)},e}(i7.seriesTypes.xrange.prototype.pointClass),sg={grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var t=this.series,e=t.xAxis,i=t.tooltipOptions.dateTimeLabelFormats,o=e.options.startOfWeek,n=t.tooltipOptions,r=this.options.milestone,s=n.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(n.pointFormat)return this.tooltipFormatter(n.pointFormat);!s&&tF(this.start)&&(s=t.chart.time.getDateFormat(e.closestPointRange,this.start,o,i||{}));var l=t.chart.time.dateFormat(s,this.start),h=t.chart.time.dateFormat(s,this.end);return a+="<br/>",r?a+=l+"<br/>":a+="Start: "+l+"<br/>"+("End: "+h)+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}};!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){var t;Object.keys((null==(t=this.options.breaks)?void 0:t[0])||{}).length&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],n=0;n<e.length;n++)t.isInAnyBreak(e[n])||o.push(e[n]);this.tickPositions=o,this.tickPositions.info=i}}function n(){this.brokenAxis||(this.brokenAxis=new h(this))}function r(){var t,e,i=this.isDirty,o=this.options.connectNulls,n=this.points,r=this.xAxis,s=this.yAxis;if(i)for(var a=n.length;a--;){var l=n[a],h=(null!==l.y||!1!==o)&&((null==(t=null==r?void 0:r.brokenAxis)?void 0:t.isInAnyBreak(l.x,!0))||(null==(e=null==s?void 0:s.brokenAxis)?void 0:e.isInAnyBreak(l.y,!0)));l.visible=!h&&!1!==l.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,tJ(this.pointArrayMap,["y"]))}function a(t,e){var i,o,n,r,s=this,a=s.points;if(null==(i=null==t?void 0:t.brokenAxis)?void 0:i.hasBreaks){var l=t.brokenAxis;e.forEach(function(e){o=(null==l?void 0:l.breakArray)||[],n=t.isXAxis?t.min:tJ(s.options.threshold,t.min),a.forEach(function(i){var s;r=null!=(s=i["stack"+e.toUpperCase()])?s:i[e],o.forEach(function(e){if(tF(n)&&tF(r)){var o="";n<e.from&&r>e.to||n>e.from&&r<e.from?o="pointBreak":(n<e.from&&r>e.from&&r<e.to||n>e.from&&r>e.to&&r<e.from)&&(o="pointInBreak"),o&&tB(t,o,{point:i,brk:e})}})})})}}function l(){var t,e=this.currentDataGrouping,i=null==e?void 0:e.gapSize,o=this.points.slice(),n=this.yAxis,r=this.options.gapSize,s=o.length-1;if(r&&s>0){"value"!==this.options.gapUnit&&(r*=this.basePointRange),i&&i>r&&i>=this.basePointRange&&(r=i);for(var a=void 0,l=void 0;s--;)if(l&&!1!==l.visible||(l=o[s+1]),a=o[s],!1!==l.visible&&!1!==a.visible){if(l.x-a.x>r){var h=(a.x+l.x)/2;o.splice(s+1,0,{isNull:!0,x:h}),n.stacking&&this.options.stacking&&((n.stacking.stacks[this.stackKey][h]=new oB(n,n.options.stackLabels,!1,h,null!=(t=this.stack)?t:"")).total=0)}l=a}}return this.getGraphPath(o)}t.compose=function(t,h){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),tv(t,"init",n),tv(t,"afterInit",e),tv(t,"afterSetTickPositions",o),tv(t,"afterSetOptions",i);var d=h.prototype;d.drawBreaks=a,d.gappedPath=l,tv(h,"afterGeneratePoints",r),tv(h,"afterRender",s)}return t};var h=function(){function t(t){this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,n=t.to-t.from,r=e>=o?(e-o)%i:i-(o-e)%i;return t.inclusive?r<=n:r<n&&0!==r},t.lin2Val=function(e){var i=this.min||0,o=this.brokenAxis,n=null==o?void 0:o.breakArray;if(!(null==n?void 0:n.length)||!tF(e))return e;var r=e;if(e>i)for(var s=0;s<n.length;s++){var a=n[s];if(a.from>r)break;a.to<=r&&a.to>i?r+=a.len:t.isInBreak(a,r)&&(r+=a.len)}else if(e<i)for(var l=0;l<n.length;l++){var a=n[l];if(a.from>i)break;a.from>=r&&a.from<i?r-=a.len:t.isInBreak(a,r)&&(r-=a.len)}return r},t.val2Lin=function(e){var i=this.min||0,o=this.brokenAxis,n=null==o?void 0:o.breakArray;if(!(null==n?void 0:n.length)||!tF(e))return e;var r=e;if(e>i)for(var s=0;s<n.length;s++){var a=n[s];if(a.to<=e&&a.to>i)r-=a.len;else if(a.from>e)break;else if(t.isInBreak(a,e)){r-=e-a.from;break}}else if(e<i)for(var l=0;l<n.length;l++){var a=n[l];if(a.from>=e&&a.from<i)r+=a.len;else if(a.from>i)break;else if(t.isInBreak(a,e)){r+=a.to-e;break}}return r},t.prototype.findBreakAt=function(t,e){return tW(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,i){var o,n,r,s=this.axis,a=s.options.breaks||[],l=a.length;if(l&&tF(e)){for(;l--;)t.isInBreak(a[l],e)&&(o=!0,n||(n=tJ(a[l].showPoints,!s.isXAxis)));r=o&&i?o&&!n:o}return r},t.prototype.setBreaks=function(e,i){var o,n=this,r=n.axis,s=r.chart.time,a=t_(e)&&!!Object.keys((null==e?void 0:e[0])||{}).length;r.isDirty=(null!=(o=n.hasBreaks)&&o)!==a,n.hasBreaks=a,null==e||e.forEach(function(t){t.from=s.parse(t.from)||0,t.to=s.parse(t.to)||0}),e!==r.options.breaks&&(r.options.breaks=r.userOptions.breaks=e),r.forceRedraw=!0,r.series.forEach(function(t){t.isDirty=!0}),a||r.val2lin!==t.val2Lin||(delete r.val2lin,delete r.lin2val),a&&(r.userOptions.ordinal=!1,r.lin2val=t.lin2Val,r.val2lin=t.val2Lin,r.setExtremes=function(t,e,i,o,s){var a;if(n.hasBreaks&&!(null==(a=r.treeGrid)?void 0:a.tree)){for(var l=this.brokenAxis.breakArray||[],h=void 0;h=n.findBreakAt(t,l);)t=h.to;for(;h=n.findBreakAt(e,l);)e=h.from;e<t&&(e=t)}r.constructor.prototype.setExtremes.call(this,t,e,i,o,s)},r.setAxisTranslation=function(){if(r.constructor.prototype.setAxisTranslation.call(this),n.unitLength=void 0,n.hasBreaks){var e,i,o,s,a,l,h,d,c,p,u=r.options.breaks||[],f=[],g=[],v=null!=(e=r.pointRangePadding)?e:0,m=0,y=null!=(i=r.userMin)?i:r.min,x=null!=(o=r.userMax)?o:r.max,b=null!=(s=r.dataMin)?s:y,M=null!=(a=r.dataMax)?a:x;tF(r.threshold)&&(b=Math.min(null!=b?b:r.threshold,r.threshold),M=Math.max(null!=M?M:r.threshold,r.threshold)),(null==(l=r.treeGrid)?void 0:l.tree)||u.forEach(function(e){d=e.repeat||1/0,tF(y)&&tF(x)&&(t.isInBreak(e,y)&&(y+=e.to%d-y%d),t.isInBreak(e,x)&&(x-=x%d-e.from%d))}),tF(b)&&tF(M)&&u.forEach(function(t){for(c=t.from,d=t.repeat||1/0;c-d>b;)c-=d;for(;c<b;)c+=d;for(p=c;p<M;p+=d)f.push({value:p,move:"in"}),f.push({value:p+t.to-t.from,move:"out",size:t.breakSize})}),f.sort(function(t,e){return t.value===e.value?("in"!==t.move)-("in"!==e.move):t.value-e.value}),h=0,c=b,f.forEach(function(t){1===(h+="in"===t.move?1:-1)&&"in"===t.move&&(c=t.value),0===h&&tF(c)&&(g.push({from:c,to:t.value,len:t.value-c-(t.size||0)}),tF(y)&&tF(x)&&c<x&&t.value>y&&(m+=t.value-c-(t.size||0)))}),n.breakArray=g,tF(y)&&tF(x)&&tF(r.min)&&(n.unitLength=x-y-m+v,tB(r,"afterBreaks"),r.staticScale?r.transA=r.staticScale:n.unitLength&&(r.transA*=(x-r.min+v)/n.unitLength),v&&(r.minPixelPadding=r.transA*(r.minPointOffset||0)),r.min=y,r.max=x)}}),tJ(i,!0)&&r.chart.redraw()},t}();t.Additions=h}(ta||(ta={}));var sv=ta,sm=tp.dateFormats;(R=tl||(tl={}))[R.top=0]="top",R[R.right=1]="right",R[R.bottom=2]="bottom",R[R.left=3]="left";function sy(t,e){var i={width:0,height:0};if(e.forEach(function(e){var o,n=t[e],r=0,s=0;tU(n,!0)&&(r=(o=tU(n.label,!0)?n.label:{}).getBBox?o.getBBox().height:0,o.textStr&&!tF(o.textPxLength)&&(o.textPxLength=o.getBBox().width),s=tF(o.textPxLength)?Math.round(o.textPxLength):0,o.textStr&&(s=Math.round(o.getBBox().width)),i.height=Math.max(r,i.height),i.width=Math.max(s,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var o=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(o-1)}return i}function sx(t){var e=this.grid,i=3===this.side;if(i||t.apply(this),!(null==e?void 0:e.isColumn)){var o=(null==e?void 0:e.columns)||[];i&&(o=o.slice().reverse()),o.forEach(function(t){t.getOffset()})}i&&t.apply(this)}function sb(t){if(!0===(this.options.grid||{}).enabled){var e=this.axisTitle,i=this.height,o=this.horiz,n=this.left,r=this.offset,s=this.opposite,a=this.options,l=this.top,h=this.width,d=this.tickSize(),c=null==e?void 0:e.getBBox().width,p=a.title.x,u=a.title.y,f=tJ(a.title.margin,o?5:10),g=e?this.chart.renderer.fontMetrics(e).f:0,v=(o?l+i:n)+(o?1:-1)*(s?-1:1)*(d?d[0]/2:0)+(this.side===tl.bottom?g:0);t.titlePosition.x=o?n-(c||0)/2-f+p:v+(s?h:0)+r+p,t.titlePosition.y=o?v-(s?i:0)+(s?g:-g)/2+r+u:l-f+u}}function sM(){var t,e=this.chart,i=this.options.grid,o=void 0===i?{}:i,n=this.userOptions;if(o.enabled&&((t=this.options).labels.align=tJ(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),o.columns)for(var r=this.grid.columns=[],s=this.grid.columnIndex=0;++s<o.columns.length;){var a=tV(n,o.columns[s],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),l=new iP(this.chart,a,this.coll);l.grid.isColumn=!0,l.grid.columnIndex=s,tO(e.axes,l),tO(e[this.coll]||[],l),r.push(l)}}function sk(){var t,e,i=this.axisTitle,o=this.grid,n=this.options;if(!0===(n.grid||{}).enabled){var r=this.min||0,s=this.max||0,a=this.ticks[this.tickPositions[0]];if(i&&!this.chart.styledMode&&(null==a?void 0:a.slotWidth)&&!this.options.title.style.width&&i.css({width:""+a.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),(null==(t=this.grid)?void 0:t.isOuterAxis())&&this.axisLine){var l=n.lineWidth;if(l){var h=this.getLinePath(l),d=h[0],c=h[1],p=(this.tickSize("tick")||[1])[0]*(this.side===tl.top||this.side===tl.left?-1:1);if("M"===d[0]&&"L"===c[0]&&(this.horiz?(d[2]+=p,c[2]+=p):(d[1]+=p,c[1]+=p)),!this.horiz&&this.chart.marginRight){var u=["L",this.left,d[2]||0],f=[d,u],g=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(s+this.tickmarkOffset)],v=[["M",c[1]||0,this.toPixels(s+this.tickmarkOffset)],g];this.grid.upperBorder||r%1==0||(this.grid.upperBorder=this.grid.renderBorder(f)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.upperBorder.animate({d:f})),this.grid.lowerBorder||s%1==0||(this.grid.lowerBorder=this.grid.renderBorder(v)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.lowerBorder.animate({d:v}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:n.lineColor,"stroke-width":n.lineWidth}),this.grid.axisLineExtra.animate({d:h})):this.grid.axisLineExtra=this.grid.renderBorder(h),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==o?void 0:o.columns)||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null==(e=this.linkedParent)?void 0:e.scrollbar))&&this.tickPositions.length){for(var m=this.tickmarkOffset,y=this.tickPositions[this.tickPositions.length-1],x=this.tickPositions[0],b=void 0,M=void 0;(b=this.hiddenLabels.pop())&&b.element;)b.show();for(;(M=this.hiddenMarks.pop())&&M.element;)M.show();(b=this.ticks[x].label)&&(r-x>m?this.hiddenLabels.push(b.hide()):b.show()),(b=this.ticks[y].label)&&(y-s>m?this.hiddenLabels.push(b.hide()):b.show());var k=this.ticks[y].mark;k&&y-s<m&&y-s>0&&this.ticks[y].isLast&&this.hiddenMarks.push(k.hide())}}}function sw(){var t,e=null==(t=this.tickPositions)?void 0:t.info,i=this.options,o=i.grid||{},n=this.userOptions.labels||{};o.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),e&&i.dateTimeLabelFormats&&i.labels&&!tA(n.align)&&(!1===i.dateTimeLabelFormats[e.unitName].range||e.count>1)&&(i.labels.align="left",tA(n.x)||(i.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function sS(t){var e,i=this.options,o=t.userOptions,n=i&&tU(i.grid,!0)?i.grid:{};!0===n.enabled&&(e=tV(!0,{className:"highcharts-grid-axis "+(o.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},o),"xAxis"===this.coll&&(tA(o.linkedTo)&&!tA(o.tickPixelInterval)&&(e.tickPixelInterval=350),!(!tA(o.tickPixelInterval)&&tA(o.linkedTo))||tA(o.tickPositioner)||tA(o.tickInterval)||tA(o.units)||(e.tickPositioner=function(t,i){var o,n,r=null==(n=null==(o=this.linkedParent)?void 0:o.tickPositions)?void 0:n.info;if(r){for(var s=e.units||[],a=void 0,l=1,h="year",d=0;d<s.length;d++){var c=s[d];if(c&&c[0]===r.unitName){a=d;break}}var p=tF(a)&&s[a+1];if(p){h=p[0]||"year";var u=p[1];l=(null==u?void 0:u[0])||1}else"year"===r.unitName&&(l=10*r.count);var f=eo[h];return this.tickInterval=f*l,this.chart.time.getTimeTicks({unitRange:f,count:l,unitName:h},t,i,this.options.startOfWeek)}})),tV(!0,this.options,e),this.horiz&&(i.minPadding=tJ(o.minPadding,0),i.maxPadding=tJ(o.maxPadding,0)),tF(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=n.borderWidth))}function sA(t){var e=t.userOptions,i=(null==e?void 0:e.grid)||{},o=i.columns;i.enabled&&o&&tV(!0,this.options,o[0])}function sT(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function sP(t){var e=this.horiz,i=this.maxLabelDimensions,o=this.options.grid,n=void 0===o?{}:o;if(n.enabled&&i){var r=2*this.options.labels.distance,s=e?n.cellHeight||r+i.height:r+i.width;t_(t.tickSize)?t.tickSize[0]=s:t.tickSize=[s,0]}}function sC(){this.axes.forEach(function(t){var e;((null==(e=t.grid)?void 0:e.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function sO(t){var e=this.grid;(e.columns||[]).forEach(function(e){return e.destroy(t.keepEvents)}),e.columns=void 0}function sL(t){var e=t.userOptions||{},i=e.grid||{};i.enabled&&tA(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new sz(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function sE(t){var e=this.label,i=this.axis,o=i.reversed,n=i.chart,r=i.options.grid||{},s=i.options.labels,a=s.align,l=tl[i.side],h=t.tickmarkOffset,d=i.tickPositions,c=this.pos-h,p=tF(d[t.index+1])?d[t.index+1]-h:(i.max||0)+h,u=i.tickSize("tick"),f=u?u[0]:0,g=u?u[1]/2:0;if(!0===r.enabled){var v,m=void 0,y=void 0,x=void 0;if("top"===l?v=(m=i.top+i.offset)-f:"bottom"===l?m=(v=n.chartHeight-i.bottom+i.offset)+f:(m=i.top+i.len-(i.translate(o?p:c)||0),v=i.top+i.len-(i.translate(o?c:p)||0)),"right"===l?x=(y=n.chartWidth-i.right+i.offset)+f:"left"===l?y=(x=i.left+i.offset)-f:(y=Math.round(i.left+(i.translate(o?p:c)||0))-g,x=Math.min(Math.round(i.left+(i.translate(o?c:p)||0))-g,i.left+i.len)),this.slotWidth=x-y,t.pos.x="left"===a?y:"right"===a?x:y+(x-y)/2,t.pos.y=v+(m-v)/2,e){var b=n.renderer.fontMetrics(e),M=e.getBBox().height;if(s.useHTML)t.pos.y+=b.b+-(M/2);else{var k=Math.round(M/b.h);t.pos.y+=(b.b-(b.h-b.f))/2+-((k-1)*b.h/2)}}t.pos.x+=i.horiz&&s.x||0}}function sB(t){var e,i=t.axis,o=t.value;if(null==(e=i.options.grid)?void 0:e.enabled){var n=i.tickPositions,r=(i.linkedParent||i).series[0],s=o===n[0],a=o===n[n.length-1],l=r&&tW(r.options.data,function(t){return t[i.isXAxis?"x":"y"]===o}),h=void 0;l&&r.is("gantt")&&(h=tV(l),tp.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(h,i.chart)),t.isFirst=s,t.isLast=a,t.point=h}}function sI(){var t,e,i=this.options,o=i.grid||{},n=this.categories,r=this.tickPositions,s=r[0],a=r[1],l=r[r.length-1],h=r[r.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(e=this.linkedParent)?void 0:e.max,p=d||this.min,u=c||this.max,f=this.tickInterval,g=tF(p)&&p>=s+f&&p<a,v=tF(p)&&s<p&&s+f>p,m=tF(u)&&l>u&&l-f<u,y=tF(u)&&u<=l-f&&u>h;!0===o.enabled&&!n&&(this.isXAxis||this.isLinked)&&((v||g)&&!i.startOnTick&&(r[0]=p),(m||y)&&!i.endOnTick&&(r[r.length-1]=u))}function sD(t){var e,i=this.options.grid;return!0===(void 0===i?{}:i).enabled&&this.categories?this.tickInterval:t.apply(this,(e=arguments,Array.prototype.slice.call(e,1)))}var sz=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,e=this.axis,i=e.chart,o=e.grid.columnIndex,n=(null==(t=e.linkedParent)?void 0:t.grid.columns)||e.grid.columns||[],r=o?e.linkedParent:e,s=-1,a=0;return 3===e.side&&!i.inverted&&n.length?!e.linkedParent:((i[e.coll]||[]).forEach(function(t,i){t.side!==e.side||t.options.isInternal||(a=i,t===r&&(s=i))}),a===s&&(!tF(o)||n.length===o))},t.prototype.renderBorder=function(t){var e=this.axis,i=e.chart.renderer,o=e.options,n=i.path(t).addClass("highcharts-axis-line").add(e.axisGroup);return i.styledMode||n.attr({stroke:o.lineColor,"stroke-width":o.lineWidth,zIndex:7}),n},t}();sm.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},sm.W=function(t){var e=this.toParts(t),i=(e[7]+6)%7,o=e.slice(0);o[2]=e[2]-i+3;var n=this.toParts(this.makeTime(o[0],0,1));return 4!==n[7]&&(e[1]=0,e[2]=1+(11-n[7])%7),(1+Math.floor((this.makeTime(o[0],o[1],o[2])-this.makeTime(n[0],n[1],n[2]))/6048e5)).toString()};var sR=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)0>e.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i};function sN(t,e,i,o,n,r){var s,a,l=r&&r.after,h=r&&r.before,d={data:o,depth:i-1,id:t,level:i,parent:e||""},c=0,p=0;"function"==typeof h&&h(d,r);var u=(n[t]||[]).map(function(e){var o=sN(e.id,t,i+1,e,n,r),l=e.start||NaN,h=!0===e.milestone?l:e.end||NaN;return s=!tF(s)||l<s?l:s,a=!tF(a)||h>a?h:a,c=c+1+o.descendants,p=Math.max(o.height+1,p),o});return o&&(o.start=tJ(o.start,s),o.end=tJ(o.end,a)),tL(d,{children:u,descendants:c,height:p}),"function"==typeof l&&l(d,r),d}var sW=function(t,e){var i,o;return sN("",null,1,null,(i=[],Object.keys(o=t.reduce(function(t,e){var o=e.parent,n=void 0===o?"":o,r=e.id;return void 0===t[n]&&(t[n]=[]),t[n].push(e),r&&i.push(r),t},{})).forEach(function(t){var e;if(""!==t&&-1===i.indexOf(t)){var n=o[t].map(function(t){return sR(t,[])});(e=o[""]).push.apply(e,n),delete o[t]}}),o),e)};function sG(){this.treeGrid||(this.treeGrid=new sF(this))}function sX(t,e,i,o,n,r,s,a,l){var h,d,c,p,u=tJ(null==(h=this.options)?void 0:h.labels,r),f=this.pos,g=this.axis,v="treegrid"===g.type,m=t.apply(this,[e,i,o,n,u,s,a,l]);if(v){var y=u&&tU(u.symbol,!0)?u.symbol:{},x=y.width,b=y.padding,M=void 0===b?5*!g.linkedParent:b,k=u&&tF(u.indentation)?u.indentation:0;p=(null==(c=null==(d=g.treeGrid.mapOfPosToGridNode)?void 0:d[f])?void 0:c.depth)||1,m.x+=(void 0===x?0:x)+2*M+(p-1)*k}return m}function sH(t){var e,i,o,n,r,s,a,l,h,d,c,p,u,f,g,v=this.pos,m=this.axis,y=this.label,x=this.treeGrid,b=this.options,M=null==x?void 0:x.labelIcon,k=null==y?void 0:y.element,w=m.treeGrid,S=m.options,A=m.chart,T=m.tickPositions,P=w.mapOfPosToGridNode,C=tJ(null==b?void 0:b.labels,null==S?void 0:S.labels),O=C&&tU(C.symbol,!0)?C.symbol:{},L=null==P?void 0:P[v],E=L||{},B=E.descendants,I=E.depth,D=L&&B&&B>0,z="treegrid"===m.type&&k,R=T.indexOf(v)>-1,N="highcharts-treegrid-node-",W=N+"level-",G=A.styledMode;(z&&L&&y.removeClass(RegExp(W+".*")).addClass(W+I),t.apply(this,Array.prototype.slice.call(arguments,1)),z&&D)?(g=w.isCollapsed(L),e={color:!G&&y.styles.color||"",collapsed:g,group:y.parentGroup,options:O,renderer:y.renderer,show:R,xy:y.xy},n=!(o=this.treeGrid).labelIcon,r=e.renderer,s=e.xy,l=(a=e.options).width||0,h=a.height||0,d=5*(null!=(i=a.padding)?!i:!this.axis.linkedParent),c={x:s.x-l/2-d,y:s.y-h/2},p=e.collapsed?90:180,u=e.show&&tF(c.y),(f=o.labelIcon)||(o.labelIcon=f=r.path(r.symbols[a.type](a.x||0,a.y||0,l,h)).addClass("highcharts-label-icon").add(e.group)),f[u?"show":"hide"](),r.styledMode||f.attr({cursor:"pointer",fill:tJ(e.color,"#666666"),"stroke-width":1,stroke:a.lineColor,strokeWidth:a.lineWidth||0}),f[n?"attr":"animate"]({translateX:c.x,translateY:c.y,rotation:p}),y.addClass(N+(g?"collapsed":"expanded")).removeClass(N+(g?"expanded":"collapsed")),G||y.css({cursor:"pointer"}),[y,M].forEach(function(t){t&&!t.attachedTreeGridEvents&&(tv(t.element,"mouseover",function(){y.addClass("highcharts-treegrid-node-active"),y.renderer.styledMode||y.css({textDecoration:"underline"})}),tv(t.element,"mouseout",function(){var t;t=tU(C.style)?C.style:{},y.removeClass("highcharts-treegrid-node-active"),y.renderer.styledMode||y.css({textDecoration:t.textDecoration||"none"})}),tv(t.element,"click",function(){x.toggleCollapse()}),t.attachedTreeGridEvents=!0)})):M&&(t3(k),null==y||y.css({cursor:"default"}),M.destroy(),x.labelIcon=void 0)}var sF=function(){function t(t){this.tick=t}return t.compose=function(t){var e=t.prototype;e.toggleCollapse||(tv(t,"init",sG),t8(e,"getLabelPosition",sX),t8(e,"renderLabel",sH),e.collapse=function(t){this.treeGrid.collapse(t)},e.expand=function(t){this.treeGrid.expand(t)},e.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})},t.prototype.collapse=function(t){var e=this.tick,i=e.pos,o=e.axis,n=o.treeGrid,r=o.brokenAxis,s=n.mapOfPosToGridNode;r&&s&&r.setBreaks(n.collapse(s[i]),null==t||t)},t.prototype.destroy=function(){var t;null==(t=this.labelIcon)||t.destroy()},t.prototype.expand=function(t){var e=this.tick,i=e.pos,o=e.axis,n=o.treeGrid,r=o.brokenAxis,s=n.mapOfPosToGridNode;r&&s&&r.setBreaks(n.expand(s[i]),null==t||t)},t.prototype.toggleCollapse=function(t){void 0===t&&(t=!0);var e,i,o=this.tick,n=o.axis,r=o.pos,s=n.brokenAxis,a=n.treeGrid;if(s&&a.mapOfPosToGridNode){var l=!!(n.scrollbar&&n.staticScale),h=n.pos+n.len+(a.pendingSizeAdjustment||0);if(a.pendingSizeAdjustment=0,s.setBreaks(a.toggleCollapse(a.mapOfPosToGridNode[r]),l&&t),l){var d=n.toValue(n.toPixels(n.dataMax)),c=n.toValue(h)-n.tickmarkOffset,p=null!=(e=n.userMin)?e:n.min;if(a.adjustedMax=d!==n.dataMax?d-n.tickmarkOffset:void 0,c>n.dataMax){var u=h-n.toPixels(n.dataMax+n.tickmarkOffset);c=null!=(i=a.adjustedMax)?i:n.dataMax,(p=n.toValue(n.toPixels(p-n.tickmarkOffset)-u)+n.tickmarkOffset)<n.dataMin&&(u=n.toPixels(n.dataMin)-n.toPixels(p),p=n.dataMin,a.pendingSizeAdjustment=u)}n.setExtremes(tM(p),tM(c),!1,!1,{trigger:"toggleCollapse"})}t&&n.chart.redraw()}},t}(),sY=function(t){var e,i,o,n,r,s,a={};if(tU(t))for(n=tF(t.from)?t.from:1,s=t.levels,i={},e=tU(t.defaults)?t.defaults:{},t_(s)&&(i=s.reduce(function(t,i){var o,r,s;return tU(i)&&tF(i.level)&&(r=tJ((s=tV({},i)).levelIsConstant,e.levelIsConstant),delete s.levelIsConstant,delete s.level,tU(t[o=i.level+(r?0:n-1)])?tV(!0,t[o],s):t[o]=s),t},{})),r=tF(t.to)?t.to:1,o=0;o<=r;o++)a[o]=tV({},e,tU(i[o])?i[o]:{});return a};function s_(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function sj(t,e,i){var o,n,r=[],s=[],a={},l=e||!1,h={},d=-1,c=sW(t,{after:function(t){var e=h[t.pos],i=0,o=0;e.children.forEach(function(t){o+=(t.descendants||0)+1,i=Math.max((t.height||0)+1,i)}),e.descendants=o,e.height=i,e.collapsed&&s.push(e)},before:function(t){var e,i,o=tU(t.data,!0)?t.data:{},n=tY(o.name)?o.name:"",s=a[t.parent],c=tU(s,!0)?h[s.pos]:null;l&&tU(c,!0)&&(e=tW(c.children,function(t){return t.name===n}))?(i=e.pos,e.nodes.push(t)):i=d++,!h[i]&&(h[i]=e={depth:c?c.depth+1:0,name:n,id:o.id,nodes:[t],children:[],pos:i},-1!==i&&r.push(n),tU(c,!0)&&c.children.push(e)),tY(t.id)&&(a[t.id]=t),e&&!0===o.collapsed&&(e.collapsed=!0),t.pos=i}});return o=h,{categories:r,mapOfIdToNode:a,mapOfPosToGridNode:h=(n=function(t,e,o){var r=t.nodes,s=e+(-1===e?0:i-1),a=(s-e)/2,l=e+a;return r.forEach(function(t){var i=t.data;tU(i,!0)&&(i.y=e+(i.seriesIndex||0),delete i.seriesIndex),t.pos=l}),o[l]=t,t.pos=l,t.tickmarkOffset=a+.5,t.collapseStart=s+.5,t.children.forEach(function(t){n(t,s+1,o),s=(t.collapseEnd||0)-.5}),t.collapseEnd=s+.5,o})(o["-1"],-1,{}),collapsedNodes:s,tree:c}}function sU(t){var e=t.target;e.axes.filter(function(t){return"treegrid"===t.type}).forEach(function(i){var o,n,r,s=i.options,a=s.labels,l=i.uniqueNames,h=e.time.parse(s.max),d=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),c=0;if(d){var p=[];if(n=i.series.reduce(function(t,i){var o=i.options.data||[],n=o[0],r=Array.isArray(n)&&!n.find(function(t){return"object"==typeof t});return p.push(r),i.visible&&(o.forEach(function(o){var n;(r||(null==(n=i.options.keys)?void 0:n.length))&&(o=i.pointClass.prototype.optionsToObject.call({series:i},o),i.pointClass.setGanttPointAliases(o,e)),tU(o,!0)&&(o.seriesIndex=c,t.push(o))}),!0===l&&c++),t},[]),h&&n.length<h)for(var u=n.length;u<=h;u++)n.push({name:u+"​"});i.categories=(r=sj(n,l||!1,!0===l?c:1)).categories,i.treeGrid.mapOfPosToGridNode=r.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=r.tree,i.series.forEach(function(t,e){var i=(t.options.data||[]).map(function(i){var o;return(p[e]||t_(i)&&(null==(o=t.options.keys)?void 0:o.length))&&n.forEach(function(t){var e=t5(i);e.indexOf(t.x||0)>=0&&e.indexOf(t.x2||0)>=0&&(i=t)}),tU(i,!0)?tV(i):i});t.visible&&t.setData(i,!1)}),i.treeGrid.mapOptionsToLevel=sY({defaults:a,from:1,levels:null==a?void 0:a.levels,to:null==(o=i.treeGrid.tree)?void 0:o.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=r.collapsedNodes)}})}function sV(t,e){var i,o,n,r=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,a=this.ticks,l=a[e];s&&this.treeGrid.mapOfPosToGridNode?((i=r[(n=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(o={labels:i}),!l&&th?a[e]=l=new th(this,e,void 0,void 0,{category:n.name,tickmarkOffset:n.tickmarkOffset,options:o}):(l.parameters.category=n.name,l.options=o,l.addLabel())):t.apply(this,Array.prototype.slice.call(arguments,1))}function sZ(t,e,i,o){var n=this,r="treegrid"===i.type;n.treeGrid||(n.treeGrid=new s$(n)),r&&(tv(e,"beforeRender",sU),tv(e,"beforeRedraw",sU),tv(e,"addSeries",function(t){if(t.options.data){var e=sj(t.options.data,i.uniqueNames||!1,1);n.treeGrid.collapsedNodes=(n.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),tv(n,"foundExtremes",function(){var t;null==(t=n.treeGrid.collapsedNodes)||t.forEach(function(t){var e=n.treeGrid.collapse(t);n.brokenAxis&&(n.brokenAxis.setBreaks(e,!1),n.treeGrid.collapsedNodes&&(n.treeGrid.collapsedNodes=n.treeGrid.collapsedNodes.filter(function(e){return t.collapseStart!==e.collapseStart||t.collapseEnd!==e.collapseEnd})))})}),tv(n,"afterBreaks",function(){"yAxis"===n.coll&&!n.staticScale&&n.chart.options.chart.height&&(n.isDirty=!0)}),i=tV({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10}},uniqueNames:!1},i,{reversed:!0})),t.apply(n,[e,i,o]),r&&(n.hasNames=!0,n.options.showLastLabel=!0)}function sK(t){var e,i,o,n,r,s,a,l=this.options,h=this.chart.time,d="number"==typeof l.linkedTo?null==(e=this.chart[this.coll])?void 0:e[l.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=null!=(o=null!=(i=this.userMin)?i:h.parse(l.min))?o:this.dataMin,this.max=null!=(r=null!=(n=this.userMax)?n:h.parse(l.max))?r:this.dataMax,tB(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],d){var c=d.getExtremes();this.min=null!=(s=c.min)?s:c.dataMin,this.max=null!=(a=c.max)?a:c.dataMax,this.tickPositions=d.tickPositions}this.linkedParent=d}else t.apply(this,Array.prototype.slice.call(arguments,1))}function sq(t){var e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){var i,o=e.ticks[t];(null==(i=o.label)?void 0:i.attachedTreeGridEvents)&&(t3(o.label.element),o.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}var s$=function(){function t(t){this.pendingSizeAdjustment=0,this.axis=t}return t.compose=function(t,e,i,o){if(!t.keepProps.includes("treeGrid")){var n,r,s,a=t.prototype;t.keepProps.push("treeGrid"),t8(a,"generateTick",sV),t8(a,"init",sZ),t8(a,"setTickInterval",sK),t8(a,"redraw",sq),a.utils={getNode:sN},th||(th=o)}return n=t,r=e,s=o,n.keepProps.includes("grid")||(n.keepProps.push("grid"),n.prototype.getMaxLabelDimensions=sy,t8(n.prototype,"unsquish",sD),t8(n.prototype,"getOffset",sx),tv(n,"init",sL),tv(n,"afterGetTitlePosition",sb),tv(n,"afterInit",sM),tv(n,"afterRender",sk),tv(n,"afterSetAxisTranslation",sw),tv(n,"afterSetOptions",sS),tv(n,"afterSetOptions",sA),tv(n,"afterSetScale",sT),tv(n,"afterTickSize",sP),tv(n,"trimTicks",sI),tv(n,"destroy",sO),tv(r,"afterSetChartSize",sC),tv(s,"afterGetLabelPosition",sE),tv(s,"labelFormat",sB)),sv.compose(t,i),sF.compose(o),t},t.prototype.setCollapsedStatus=function(t){var e=this.axis,i=e.chart;e.series.forEach(function(e){var o=e.options.data;if(t.id&&o){var n=i.get(t.id),r=o[e.data.indexOf(n)];n&&r&&(n.collapsed=t.collapsed,r.collapsed=t.collapsed)}})},t.prototype.collapse=function(t){var e=this.axis,i=e.options.breaks||[],o=s_(t);return i.push(o),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i},t.prototype.expand=function(t){var e,i=this.axis,o=s_(t);return t.collapsed=!1,i.treeGrid.setCollapsedStatus(t),(null==(e=i.options.breaks)?void 0:e.reduce(function(t,e){return(e.to!==o.to||e.from!==o.from)&&t.push(e),t},[]))||[]},t.prototype.getTickPositions=function(){var t=this.axis,e=Math.floor(t.min/t.tickInterval)*t.tickInterval,i=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(o,n){var r,s=+n;return s>=e&&s<=i&&!(null==(r=t.brokenAxis)?void 0:r.isInAnyBreak(s))&&o.push(s),o},[])},t.prototype.isCollapsed=function(t){var e=this.axis.options.breaks||[],i=s_(t);return e.some(function(t){return t.from===i.from&&t.to===i.to})},t.prototype.toggleCollapse=function(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)},t}(),sJ=(N=function(t,e){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}N(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),sQ=i7.series,s0=i7.seriesTypes.xrange,s1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sJ(e,t),e.compose=function(t,e,i,o){s0.compose(t),e&&(si(t,e),!i||(r7.compose(e,i.prototype.pointClass),o&&s$.compose(t,e,i,o)))},e.prototype.drawPoint=function(e,i){var o,n=this.options,r=this.chart.renderer,s=e.shapeArgs,a=e.plotY,l=e.selected&&"select",h=n.stacking&&!n.borderRadius,d=e.graphic;e.options.milestone?tF(a)&&null!==e.y&&!1!==e.visible?(o=r.symbols.diamond(s.x||0,s.y||0,s.width||0,s.height||0),d?d[i]({d:o}):e.graphic=d=r.path(o).addClass(e.getClassName(),!0).add(e.group||this.group),this.chart.styledMode||e.graphic.attr(this.pointAttribs(e,l)).shadow(n.shadow,null,h)):d&&(e.graphic=d.destroy()):t.prototype.drawPoint.call(this,e,i)},e.prototype.translatePoint=function(e){var i,o;t.prototype.translatePoint.call(this,e),e.options.milestone&&(o=(i=e.shapeArgs).height||0,e.shapeArgs={x:(i.x||0)-o/2,y:i.y,width:o,height:o})},e.defaultOptions=tV(s0.defaultOptions,sg),e}(s0);tL(s1.prototype,{pointArrayMap:["start","end","y"],pointClass:sf,setData:sQ.prototype.setData}),i7.registerSeriesType("gantt",s1),tp.Connection=tp.Connection||nQ,tp.GanttChart=tp.GanttChart||n4,tp.Navigator=tp.Navigator||rE,tp.RangeSelector=tp.RangeSelector||rV,tp.Scrollbar=tp.Scrollbar||rT,tp.ganttChart=tp.GanttChart.ganttChart,nK(tp.SVGRenderer),({compose:function(t,e){t0(n0,"CurrentDateIndication")&&(tv(t,"afterSetOptions",n2),tv(e,"render",n3),t8(e.prototype,"getLabelText",n5))}}).compose(tp.Axis,tp.PlotLineOrBand),s1.compose(tp.Axis,tp.Chart,tp.Series,tp.Tick),tp.Navigator.compose(tp.Chart,tp.Axis,tp.Series),tp.RangeSelector.compose(tp.Axis,tp.Chart),tp.Scrollbar.compose(tp.Axis),tp.product="Highcharts Gantt";var s2=tp;return tc.default}()});