!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/standalone-navigator
 *
 * Standalone Navigator for Highcharts.
 *
 * (c) 2009-2026 Highsoft AS
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */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,r,n,s,a,h,l,c,d,p,u,f,g,v,m,y,x,b,k,w,M,S,T,A,C,O,P,L,E,I,D,B,z,R,N,W,H,X,G,F,Y,j,_,U,V,Z,K={};K.d=function(t,e){for(var i in e)K.o(e,i)&&!K.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},K.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var q={};K.d(q,{default:function(){return r7}}),(t=P||(P={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="13.0.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==(r=null==(o=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)?void 0:o.closest("[lang]"))?void 0:r.lang,t.userAgent=(null==(n=t.win.navigator)?void 0:n.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 $=P,J={dark:{backgroundColor:"#141414",neutralColor:"#ffffff",highlightColor:"#2caffe"},light:{backgroundColor:"#ffffff",neutralColor:"#000000",highlightColor:"#0022ff",positiveColor:"#06b535",negativeColor:"#f21313"}},Q=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},tt=$.doc,te=$.win;function ti(t,e,i,o){void 0===o&&(o={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var n=r.hcEvents;$.Point&&t instanceof $.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!$.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),n[e]||(n[e]=[]);var a={fn:i,order:"number"==typeof o.order?o.order:1/0};return n[e].push(a),n[e].sort(function(t,e){return t.order-e.order}),function(){tY(t,e,i)}}function to(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function tr(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function tn(t,e,i){var o,r=tP(e)&&!td(i),n=function(e,i){td(e)?t.setAttribute(i,e):r?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tP(e)?n(i,e):tz(e,n),o}function ts(t,e,i){return t>e?t<i?t:i:e}function ta(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function th(t,e,i,o,r){var n=tt.createElement(t);return e&&tv(n,e),r&&tc(n,{padding:"0",border:"none",margin:"0"}),i&&tc(n,i),o&&o.appendChild(n),n}function tl(t,e,i){void 0===e&&(e=0);var o=e%2/2,r=i?-1:1;return(Math.round(t*r-o)+o)*r}function tc(t,e){tv(t.style,e)}function td(t){return null!=t}function tp(t,e,i){tz(t,function(o,r){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[r]})}function tu(t){var e;null==(e=null==t?void 0:t.parentElement)||e.removeChild(t)}function tf(t,e,i,o){var r={};return!function t(e,r,n,s){var a=i?r:e;tz(e,function(i,h){if(!s&&o&&o.indexOf(h)>-1&&r[h]){i=tj(i),n[h]=[];for(var l=0;l<Math.max(i.length,r[h].length);l++)r[h][l]&&(void 0===i[l]?n[h][l]=r[h][l]:(n[h][l]={},t(i[l],r[h][l],n[h][l],s+1)))}else tI(i,!0)&&!i.nodeType?(n[h]=tL(i)?[]:{},t(i,r[h]||{},n[h],s+1),0===Object.keys(n[h]).length&&("colorAxis"!==h||0!==s)&&delete n[h]):(e[h]!==r[h]||h in e&&!(h in r))&&"__proto__"!==h&&"constructor"!==h&&(n[h]=a[h])})}(t,e,r,0),r}function tg(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function tv(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tm(t,e){var i=function(){};return i.prototype=new t,tv(i.prototype,e),i}function ty(t,e,i,o){if(i=i||{},(null==tt?void 0:tt.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==$)){var r=tt.createEvent("Events");r.initEvent(e,!0,!0),i=tv(r,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||tv(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});for(var n=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(n.length&&(a=!0),n.unshift.apply(n,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&n.sort(function(t,e){return t.order-e.order}),n.forEach(function(e){!1===e.fn.call(t,i,t)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tx=function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0};function tb(t,e){var i,o,r,n,s=!e;return t.forEach(function(t){if(t.length>1)for(n=o=t.length-1;n>0;n--)(r=t[n]-t[n-1])<0&&!s?(null==e||e(),e=void 0):r&&(void 0===i||r<i)&&(i=r)}),i}function tk(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tw(t,e){for(var i=t.split(".");i.length&&td(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var r=void 0;return tI(e)&&(r=e["@this"]),null!=r?r:e}var n=e[o.replace(/[\\'"]/g,"")];if(!td(n)||"function"==typeof n||"number"==typeof n.nodeType||n===te)return;e=n}return e}function tM(t,e,i){if("width"===e){var o,r,n=Math.min(t.offsetWidth,t.scrollWidth),s=null==(o=t.getBoundingClientRect)?void 0:o.call(t).width;return s<n&&s>=n-1&&(n=Math.floor(s)),Math.max(0,n-(tM(t,"padding-left",!0)||0)-(tM(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(tM(t,"padding-top",!0)||0)-(tM(t,"padding-bottom",!0)||0));var a=te.getComputedStyle(t,void 0);return a&&(r=a.getPropertyValue(e),tW(i,"opacity"!==e)&&(r=tH(r))),r}var tS=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 tT(t){td(t)&&clearTimeout(t)}function tA(t){return tI(t)&&"number"==typeof t.nodeType}function tC(t){var e=null==t?void 0:t.constructor;return!!(tI(t,!0)&&!tA(t)&&(null==e?void 0:e.name)&&"Object"!==e.name)}function tO(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tP(t){return"string"==typeof t}function tL(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function tE(t){return"function"==typeof t}function tI(t,e){return!!t&&"object"==typeof t&&(!e||!tL(t))}function tD(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,r=Q([t],e,!0),n={},s=function(t,e){return"object"!=typeof t&&(t={}),tz(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tI(i,!0)||tC(i)||tA(i)?t[o]=e[o]:t[o]=s(t[o]||{},i))}),t};!0===t&&(n=r[1],r=Array.prototype.slice.call(r,2));var a=r.length;for(o=0;o<a;o++)n=s(n,r[o]);return n}function tB(t,e,i,o,r){var n,s=t;i=tW(i,tk(t));var a=t/i;for(!e&&(e=r?[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]))),n=0;n<e.length&&(s=e[n],(!r||!(s*i>=t))&&(r||!(a<=(e[n]+(e[n+1]||e[n]))/2)));n++);return ta(s*i,-Math.round(Math.log(.001)/Math.LN10))}function tz(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tR(t){var e=tt.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(te.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(te.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function tN(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function tW(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tH(t,e){return parseInt(t,e||10)}function tX(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function tG(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function tF(t){for(var e,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];do{e=t;for(var n=0;n<o.length;n++)i=o[n],t=t.replace(i[0],i[1])}while(t!==e);return t}function tY(t,e,i){function o(e,i){var o=t.removeEventListener;o&&o.call(t,e,i,!1)}function r(i){var r,n;t.nodeName&&(e?(r={})[e]=!0:r=i,tz(r,function(t,e){if(i[e])for(n=i[e].length;n--;)o(e,i[e][n].fn)}))}var n="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var s=n.hcEvents;if(e){var a=s[e]||[];i?(s[e]=a.filter(function(t){return i!==t.fn}),o(e,i)):(r(s),s[e]=[])}else r(s),delete n.hcEvents}}function tj(t){return tL(t)?t:[t]}function t_(t,e){var i,o,r=t.length;for(o=0;o<r;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<r;o++)delete t[o].safeI}function tU(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function tV(t){return tP(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}var tZ=$.charts,tK=$.win;function tq(t,e,i,o){var r=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+r+": Deprecated member");var n=tO(t),s=n?""+r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";n&&(s+="?"),tz(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),n&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}ty($,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);tK.console&&-1===tq.messages.indexOf(s)&&console.warn(s)}),tq.messages.push(s)}function t$(t,e){var i,o=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i<r+1;i++)if(!e[i]||tO(o)&&o<tW(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(tq||(tq={})).messages=[];var tJ={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 tQ=(s=Math.random().toString(36).substring(2,9)+"-",a=0,function(){return"highcharts-"+(L?"":s)+a++});tK.jQuery&&(tK.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new $[tP(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tZ[tn(this[0],"data-highcharts-chart")]});var t0=$.pageLang,t1=$.win,t2=$.isSafari&&t1.Intl&&!t1.Intl.DateTimeFormat.prototype.formatRange,t5=function(){function t(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=t1.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=tD(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC,r=t.locale;this.Date=t.Date||t1.Date||Date;var n=t.timezone;td(o)&&(n=o?"UTC":void 0),i&&i%60==0&&(n="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==n&&(null==n?void 0:n.indexOf("Etc/GMT"))!==0,this.timezone=n,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(function(t){var i=/months/i.test(t),o=/short/.test(t),r={timeZone:"UTC"};r[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(r,(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],r=e[2];return[+e[3],r-1,+o,+e[4],+e[5],+e[6],Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(i)]},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||t0);var o=JSON.stringify(t)+i;tP(t)&&(t=this.str2dtf(t));var r=this.dTLCache[o];if(!r){null!=t.timeZone||(t.timeZone=this.timezone);try{r=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tq(34),t.timeZone="UTC",r=new Intl.DateTimeFormat(i,t)):tq(e.message,!1)}}return this.dTLCache[o]=r,(null==r?void 0:r.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)&&tv(e,i[o])}),e},t.prototype.makeTime=function(t,e,i,o,r,n,s){void 0===i&&(i=1),void 0===o&&(o=0);var a=this.Date.UTC(t,e,i,o,r||0,n||0,s||0);if("UTC"!==this.timezone){var h=this.getTimezoneOffset(a);if(a+=h,-1!==[2,3,8,9,10,11].indexOf(e)&&(o<5||o>20)){var l=this.getTimezoneOffset(a);h!==l?a+=l-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t2||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!tP(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(tO(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]),r=-(6e4*(60*(i+(void 0===o?0:o)/60)));if(tO(r))return r}return 0},t.prototype.dateFormat=function(t,e,i){var o,r=this.lang;if(!td(e)||isNaN(e))return(null==r?void 0:r.invalidDate)||"";if(tP(t=null!=t?t:"%Y-%m-%d %H:%M:%S"))for(var n=/%\[([a-zA-Z]+)\]/g,s=void 0;s=n.exec(t);)t=t.replace(s[0],this.dateTimeFormat(s[1],e,null==r?void 0:r.locale));if(tP(t)&&-1!==t.indexOf("%")){var a=this,h=this.toParts(e),l=h[0],c=h[1],d=h[2],p=h[3],u=h[4],f=h[5],g=h[6],v=h[7],m=(null==r?void 0:r.weekdays)||this.weekdays,y=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,x=(null==r?void 0:r.months)||this.months,b=(null==r?void 0:r.shortMonths)||this.shortMonths;tz(tv({a:y?y[v]:m[v].substr(0,3),A:m[v],d:tN(d),e:tN(d,2," "),w:v,v:null!=(o=null==r?void 0:r.weekFrom)?o:"",b:b[c],B:x[c],m:tN(c+1),o:c+1,y:l.toString().substr(2,2),Y:l,H:tN(p),k:p,I:tN(p%12||12),l:p%12||12,M:tN(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:tN(f),L:tN(g,3)},$.dateFormats),function(i,o){if(tP(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e,a):i)})}else if(tI(t)){var k=(this.getTimezoneOffset(e)||0)/36e5,w=this.timezone||"Etc/GMT"+(k>=0?"+":"")+k,M=t.prefix,S=t.suffix;t=(void 0===M?"":M)+this.dateTimeFormat(tv({timeZone:w},t),e)+(void 0===S?"":S)}return i?tV(t):t},t.prototype.resolveDTLFormat=function(t){return tI(t,!0)?tI(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=tj(t))[0],from:t[1],to:t[2]}},t.prototype.getDateFormat=function(t,e,i,o){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),n="01-01 00:00:00.000",s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",h=a;for(a in tJ){if(t&&t===tJ.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===n.substr(6)){a="week";break}if(t&&tJ[a]>t){a=h;break}if(s[a]&&r.substr(s[a])!==n.substr(s[a]))break;"week"!==a&&(h=a)}return this.resolveDTLFormat(o[a]).main},t}(),t3=(h=function(t,e){return(h=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}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),t6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t3(e,t),e.prototype.getBoundaryTicks=function(t,e,i,o){var r={};if(e===tJ.year)return r;var n=td(i)&&td(o),s=e<tJ.hour,a=e<tJ.day,h=e<tJ.month,l=e>=tJ.hour?9e5:e>=tJ.minute?6e4:e>=tJ.second&&1e3;if(t.length<1e4)for(var c=!0,d=0;d<t.length;d++){var p=t[d];if(n){if(p<i)continue;if(p>o)break}if(c){if(e===tJ.month){r[p]="year",c=!1;continue}if(e===tJ.hour){r[p]="day",c=!1;continue}}if(l&&p%l!=0){c=!1;continue}var u=this.toParts(p),f=u[1],g=u[2],v=u[3],m=u[4],y=u[5],x=u[6],b=!v&&!m&&!y&&!x;s&&0===m&&(r[p]="hour"),a&&b&&(r[p]="day"),h&&1===g&&b&&(r[p]="month"),0===f&&1===g&&b&&(r[p]="year"),c=!1}return r},e.prototype.getTimeTicks=function(t,e,i,o){var r,n=[],s=t.count,a=void 0===s?1:s,h=t.unitRange,l=e,c=this.toParts(e),d=c[0],p=c[1],u=c[2],f=c[3],g=c[4],v=c[5],m=(e||0)%1e3;if(null!=o||(o=1),td(e)){if(m=h>=tJ.second?0:a*Math.floor(m/a),h>=tJ.second&&(v=h>=tJ.minute?0:a*Math.floor(v/a)),h>=tJ.minute&&(g=h>=tJ.hour?0:a*Math.floor(g/a)),h>=tJ.hour&&(f=h>=tJ.day?0:a*Math.floor(f/a)),h>=tJ.day&&(u=h>=tJ.month?1:Math.max(1,a*Math.floor(u/a))),h>=tJ.month&&(p=h>=tJ.year?0:a*Math.floor(p/a)),h>=tJ.year&&(d-=d%a),h===tJ.week){a&&(e=this.makeTime(d,p,u,f,g,v,m));var y=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),x="DLMXJVS".indexOf(y);u+=-x+o+(x<o?-7:0)}e=this.makeTime(d,p,u,f,g,v,m),this.variableTimezone&&td(i)&&(r=i-e>4*tJ.month||this.getTimezoneOffset(e)!==this.getTimezoneOffset(i));for(var b=e,k=1;b<i;)n.push(b),h===tJ.year?b=this.makeTime(d+k*a,0):h===tJ.month?b=this.makeTime(d,p+k*a):r&&(h===tJ.day||h===tJ.week)?b=this.makeTime(d,p,u+k*a*(h===tJ.day?1:7)):r&&h===tJ.hour&&a>1?b=this.makeTime(d,p,u,f+k*a):b+=h*a,k++;n.push(b)}return n.info=tv(t,{boundaryTicks:this.getBoundaryTicks(n,h,l,i),totalRange:h*a}),n},e}(t5),t9=function(){return(t9=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},t4=$.isTouchDevice,t8={palette:J,colors:Array(10).fill(1).map(function(t,e){return"var(--highcharts-color-".concat(e,")")}),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:"var(--highcharts-neutral-color-3)",padding:8,r:2,stroke:"var(--highcharts-neutral-color-20)","stroke-width":1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"var(--highcharts-neutral-color-10)"},select:{fill:"var(--highcharts-highlight-color-10)",style:{color:"var(--highcharts-neutral-color-100)",fontWeight:"bold"}},disabled:{style:{color:"var(--highcharts-neutral-color-20)"}}}}},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,selectionMarkerFill:"color-mix(var(--highcharts-highlight-color-80) 25%, transparent)",type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"var(--highcharts-highlight-color-80)",backgroundColor:"var(--highcharts-background-color)",plotBorderColor:"var(--highcharts-neutral-color-20)"},title:{style:{color:"var(--highcharts-neutral-color-80)",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"var(--highcharts-neutral-color-60)",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:"var(--highcharts-neutral-color-40)",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"var(--highcharts-highlight-color-100)",inactiveColor:"var(--highcharts-neutral-color-20)"},itemStyle:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"var(--highcharts-neutral-color-100)"},itemHiddenStyle:{color:"var(--highcharts-neutral-color-60)",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:"var(--highcharts-neutral-color-80)",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"var(--highcharts-background-color)",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(t){return Math.sqrt(1-Math.pow(t-1,2))}},borderColor:"light-dark(var(--highcharts-neutral-color-5), var(--highcharts-neutral-color-20))",borderRadius:5,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%[Y]"},footerFormat:"",header:{distance:5,shape:"callout",style:{fontSize:"1em"}},hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:t4?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:"var(--highcharts-background-color)",borderWidth:void 0,stickOnContact:!1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",verticalAlign:"bottom",x:-10,y:-5},style:{cursor:"pointer",color:"var(--highcharts-neutral-color-40)",fontSize:"0.6em"},text:"Highcharts.com"}},t7=new t6(t8.time,t8.lang),et=$.win,ee=function(t,e,i){return 0===i?t:1===i?e:"color-mix(in srgb,".concat(t,",").concat(e," ").concat(100*i,"%)")},ei=function(t){return tP(t)&&!!t&&"none"!==t},eo=function(){var t;function e(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;var i,o,r,n,s=$.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,r=e.parsers.length;r--&&!o;)(i=(n=e.parsers[r]).regex.exec(t))&&(o=n.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=tD(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&&tO(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(tO(t)&&0!==t)if(tO(i[0]))for(var o=0;o<3;o++)i[o]+=tH(255*t),i[o]<0&&(i[o]=0),i[o]>255&&(i[o]=255);else e.useColorMix&&ei(this.input)&&(this.output=ee(this.input,t>0?"white":"black",Math.abs(t)));return this},e.prototype.setOpacity=function(t){return tO(this.rgba[0])?this.rgba[3]=t:e.useColorMix&&ei(this.input)&&(this.output=ee(this.input,"#0000",1-t)),this},e.prototype.tweenTo=function(t,i){var o=this.rgba,r=t.rgba;if(!tO(o[0])||!tO(r[0]))return e.useColorMix&&ei(this.input)&&ei(t.input)&&i<.99?ee(this.input,t.input,i):t.input||"none";var n=1!==r[3]||1!==o[3],s=function(t,e){return t+(o[e]-t)*(1-i)},a=r.slice(0,3).map(s).map(Math.round);return n&&a.push(s(r[3],3)),(n?"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[tH(t[1]),tH(t[2]),tH(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[tH(t[1]),tH(t[2]),tH(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[tH(t[1]+t[1],16),tH(t[2]+t[2],16),tH(t[3]+t[3],16),td(t[4])?tH(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[tH(t[1],16),tH(t[2],16),tH(t[3],16),td(t[4])?tH(t[4],16)/255:1]}}],e.useColorMix=null==(t=et.CSS)?void 0:t.supports("color","color-mix(in srgb,red,blue 9%)"),e.None=new e(""),e}(),er=eo.parse,en=$.win,es=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,r=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var n=0;n<i.length;n++){for(var s=e[n],a=i[n],h=[],l=0;l<a.length;l++){var c=s[l],d=a[l];tO(c)&&tO(d)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+o*(d-c):h[l]=d}r.push(h)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,s=function(t){return!s.stopped&&r.step(t)},a=en.requestAnimationFrame||function(t){setTimeout(t,13)},h=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(h)};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(h)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e,i,o=+new Date,r=this.options,n=this.elem,s=r.complete,a=r.duration,h=r.curAnim;return n.attr&&!n.element?e=!1:t||o>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,tz(h,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(n),e=!1):(this.pos=r.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,r,n,s,a=t.startX,h=t.endX,l=i.slice(),c=t.isArea,d=c?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=null==e?void 0:e.slice();if(!u||p)return[l,l];function f(t,e){for(;t.length<r;){var i=t[0],o=e[r-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),c){var n=t.pop();t.push(t[t.length-1],n)}}}function g(t){for(;t.length<r;){var e=t[Math.floor(t.length/d)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),c){var i=t[Math.floor(t.length/d)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&h&&h.length){for(n=0;n<a.length;n++)if(a[n]===h[0]){o=n;break}else if(a[0]===h[h.length-a.length+n]){o=n,s=!0;break}else if(a[a.length-1]===h[h.length-a.length+n]){o=a.length-n;break}void 0===o&&(u=[])}return u.length&&tO(o)&&(r=l.length+o*d,s?(f(u,l),g(l)):(f(l,u),g(u))),[u,l]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,er(this.start).tweenTo(er(this.end),this.pos),void 0,!0)},t.timers=[],t}();function ea(t){return tI(t)?tD({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function eh(t,e){for(var i=es.timers.length;i--;)es.timers[i].elem!==t||e&&e!==es.timers[i].prop||(es.timers[i].stopped=!0)}var el=function(t,e,i){var o,r,n,s,a="";tI(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),tO(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=tD(e),tz(e,function(s,h){eh(t,h),n=new es(t,i,h),r=void 0,"d"===h&&tL(e.d)?(n.paths=n.initPath(t,t.pathArray,e.d),n.toD=e.d,o=0,r=1):t.attr?o=t.attr(h):(o=parseFloat(tM(t,h))||0,"opacity"!==h&&(a="px")),r||(r=s),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),n.run(o,r,a)})},ec=function(t,e,i){var o=ea(e),r=i?[i]:t.series,n=0,s=0;return r.forEach(function(t){var i=ea(t.options.animation);n=tI(e)&&td(e.defer)?o.defer:Math.max(n,i.duration+i.defer),s=Math.min(o.duration,i.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-s),duration:Math.min(n,s)}},ed=function(t,e){e.renderer.globalAnimation=tW(t,e.options.chart.animation,!0)},ep=$.SVG_NS,eu=$.win.trustedTypes,ef=eu&&tE(eu.createPolicy)&&eu.createPolicy("highcharts",{createHTML:function(t){return t}}),eg=ef?ef.createHTML(""):"",ev=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return tz(e,function(i,o){var r=!0;-1===t.allowedAttributes.indexOf(o)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(r=tP(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),r||(tq(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),tP(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 r;return tj(i).forEach(function(i){var n,s=i.tagName,a=i.textContent?$.doc.createTextNode(i.textContent):void 0,h=t.bypassHTMLFiltering;if(s)if("#text"===s)n=a;else if(-1!==t.allowedTags.indexOf(s)||h){var l="svg"===s?ep:o.namespaceURI||ep,c=$.doc.createElementNS(l,s),d=i.attributes||{};tz(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(d[e]=t)}),tn(c,h?d:t.filterUserAttributes(d)),i.style&&tc(c,i.style),a&&c.appendChild(a),e(i.children||[],c),n=c}else tq(33,!1,void 0,{"Invalid tagName in config":s});n&&o.appendChild(n),r=n}),r}(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(ef?ef.createHTML(e):e,"text/html")}catch(t){}if(!i){var r=th("div");r.innerHTML=e,i={body:r}}var n=function(e,i){var o=e.nodeName.toLowerCase(),r={tagName:o};"#text"===o&&(r.textContent=e.textContent||"");var s=e.attributes;if(s){var a={};[].forEach.call(s,function(e){"data-style"===e.name?r.style=t.parseStyle(e.value):a[e.name]=e.value}),r.attributes=a}if(e.childNodes.length){var h=[];[].forEach.call(e.childNodes,function(t){n(t,h)}),h.length&&(r.children=h)}i.push(r)};return[].forEach.call(i.body.childNodes,function(t){return n(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","aria-sort","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=eg,t.bypassHTMLFiltering=!1,t}(),em=$.pageLang,ey={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?ta(t/e):""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!tL(t)&&t.map(function(i,o){return ek(e.body,tv(tI(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 ta(t*e,15)},ne:function(t,e){return t!=e},subtract:function(t,e){return t-e},ucfirst:tV,unless:function(t){return!t}},ex={},eb=function(t){return/^["'].+["']$/.test(t)};function ek(t,e,i){void 0===t&&(t="");for(var o,r,n,s,a=/\{([^{}]+)\}/g,h=/\(([^()]+)\)/g,l=[],c=/f$/,d=/\.(\d)/,p=(null==(o=null==i?void 0:i.options)?void 0:o.lang)||t8.lang,u=(null==i?void 0:i.time)||t7,f=(null==i?void 0:i.numberFormatter)||ew.bind(i),g=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:eb(t)?t.slice(1,-1):tw(t,e))},v=0;null!==(r=a.exec(t));){var m=r,y=h.exec(r[1]);y&&(r=y,s=!0),(null==n?void 0:n.isBlock)||(n={ctx:e,expression:r[1],find:r[0],isBlock:"#"===r[1].charAt(0),start:r.index,startInner:r.index+r[0].length,length:r[0].length});var x=(n.isBlock?m:r)[1].split(" ")[0].replace("#","");ey[x]&&(n.isBlock&&x===n.fn&&v++,n.fn||(n.fn=x));var b="else"===r[1];if(n.isBlock&&n.fn&&(r[1]==="/".concat(n.fn)||b))if(v)!b&&v--;else{var k=n.startInner,w=t.substr(k,r.index-k);void 0===n.body?(n.body=w,n.startInner=r.index+r[0].length):n.elseBody=w,n.find+=w+r[0],b||(l.push(n),n=void 0)}else n.isBlock||l.push(n);if(y&&!(null==n?void 0:n.isBlock))break}return l.forEach(function(o){var r,n,s=o.body,a=o.elseBody,l=o.expression,v=o.fn;if(v){var m=[o],y=[],x=l.length,b=0,k=void 0;for(n=0;n<=x;n++){var w=l.charAt(n);k||'"'!==w&&"'"!==w?k===w&&(k=""):k=w,k||" "!==w&&n!==x||(y.push(l.substr(b,n-b)),b=n+1)}for(n=ey[v].length;n--;)m.unshift(g(y[n+1]));r=ey[v].apply(e,m),o.isBlock&&"boolean"==typeof r&&(r=ek(r?s:a,e,i))}else{var M=eb(l)?[l]:l.split(":");if(r=g(M.shift()||""),M.length&&"number"==typeof r){var S=M.join(":");if(c.test(S)){var T=parseInt((S.match(d)||["","-1"])[1],10);null!==r&&(r=f(r,T,p.decimalPoint,S.indexOf(",")>-1?p.thousandsSep:""))}else r=u.dateFormat(S,r)}h.lastIndex=0,h.test(o.find)&&tP(r)&&(r='"'.concat(r,'"'))}t=t.replace(o.find,tW(r,""))}),s?ek(t,e,i):t}function ew(t,e,i,o){e*=1;var r,n,s,a,h=(t=+t||0).toString().split("e").map(Number),l=h[0],c=h[1],d=(null==(r=this===null||void 0===this?void 0:this.options)?void 0:r.lang)||t8.lang,p=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,f={};null!=i||(i=d.decimalPoint),null!=o||(o=d.thousandsSep),-1===e?e=Math.min(p,20):tO(e)?e&&c<0&&((a=e+c)>=0?(l=+l.toExponential(a).split("e")[0],e=a):(l=Math.floor(l),t=e<20?+(l*Math.pow(10,c)).toFixed(e):0,c=0)):e=2,c&&(null!=e||(e=2),t=l),tO(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)||d.locale||em,m=JSON.stringify(f)+v;return s=(null!=(n=ex[m])?n:ex[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)&&(!(c<0)||u)||(s="0"),c&&0!=+s&&(s+="e"+(c<0?"":"+")+c),s}var eM={dateFormat:function(t,e,i){return t7.dateFormat(t,e,i)},format:ek,helpers:ey,numberFormat:ew};(E||(E={})).distribute=function t(e,i,o){var r,n,s,a=e,h=a.reducedLen||i,l=function(t,e){return t.target-e.target},c=[],d=e.length,p=[],u=c.push,f=!0,g=0;for(r=d;r--;)g+=e[r].size;if(g>h){if(t_(e,function(t,e){return(e.rank||0)-(t.rank||0)}),e[0].rank===e[e.length-1].rank)for(var v=[[0,d-1]];v.length&&g>h;){var m=v.shift();if(!m)break;n=e[r=Math.floor((m[0]+m[1])/2)],tX(p,r)&&(g-=n.size),m[0]<r&&v.push([m[0],r-1]),r<m[1]&&v.push([r+1,m[1]])}else for(r=d-1;g>h&&r>=0;)n=e[r],tX(p,r)&&(g-=n.size),r--;p.sort(function(t,e){return e-t}).forEach(function(t){return u.apply(c,e.splice(t,1))})}for(t_(e,l),e=e.map(function(t){return{size:t.size,targets:[t.target],align:tW(t.align,.5)}});f;){for(r=e.length;r--;)n=e[r],s=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=ts(s-n.size*n.align,0,i-n.size);for(r=e.length,f=!1;r--;)r>0&&e[r-1].pos+e[r-1].size>e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),f=!0)}return u.apply(a,c),r=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return(a[r].pos=e.pos+n,void 0!==o&&Math.abs(a[r].pos-a[r].target)>o)?(a.slice(0,r+1).forEach(function(t){return delete t.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&t(a,i,o),!0):(n+=a[r].size,r++,!1)})}),t_(a,l),a};var eS=E,eT=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},eA=$.deg2rad,eC=$.doc,eO=$.svg,eP=$.SVG_NS,eL=$.win,eE=$.isFirefox,eI=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=eP,this.element="div"===e||"body"===e?th(e):eC.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},ty(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=tW(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 r=this.renderer,n=r.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||tP(i)?i||"renderer":void 0;a&&(s&&tX(n,this),i=void 0);var h=tW(i,r[a],r),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*tx(t.align),c=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*tx(t.verticalAlign),d={};return t.align&&(d["text-align"]=t.align),d[e?"translateX":"x"]=Math.round(l),d[e?"translateY":"y"]=Math.round(c),o&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,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,r=ea(tW(e,this.renderer.globalAnimation,!0)),n=r.defer;return eC.hidden&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),tU(function(){o.element&&el(o,t,r)},n)):(this.attr(t,void 0,i||r.complete),tz(t,function(t,e){r.step&&r.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),r=t.substring(0,i);if(r&&"none"!==r&&$.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var n=eC.createElementNS(eP,"tspan");tn(n,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"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)}),n.appendChild(e)});var a=0;[].forEach.call(s.querySelectorAll("text tspan"),function(t){a+=Number(t.getAttribute("dy"))});var h=eC.createElementNS(eP,"tspan");h.textContent="​",tn(h,{x:Number(e.getAttribute("x")),dy:-a}),n.appendChild(h),s.insertBefore(n,s.firstChild)}},t.prototype.attr=function(e,i,o,r){var n,s,a,h=this.element,l=t.symbolCustomAttribs,c=this;return"string"==typeof e&&void 0!==i&&(n=e,(e={})[n]=i),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,h):(tz(e,function(t,i){a=!1,r||eh(this,i),this.symbolName&&-1!==l.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,h)},this),this.afterSetters()),o&&o.call(this),c},t.prototype.clip=function(t){if(t&&!t.clipPath){var e=tQ()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);tv(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,r=(t.width||this.width||0)+i,n=(t.height||this.height||0)+o,s=tl(i,e),a=tl(o,e);return tv(t,{x:s,y:a,width:tl(r,e)-s,height:tl(n,e)-a}),td(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var o,r,n,s,a,h,l,c,d,p,u=this.renderer,f=[];ty(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],a=u.gradients,h=t.stops,c=i.radialReference,tL(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!td(n.gradientUnits)&&(s=n,n=tD(n,u.getRadialAttr(c,s),{gradientUnits:"userSpaceOnUse"})),tz(n,function(t,e){"id"!==e&&f.push(e,t)}),tz(h,function(t){f.push(t)}),a[f=f.join(",")])d=a[f].attr("id");else{n.id=d=tQ();var g=a[f]=u.createElement(r).attr(n).add(u.defs);g.radAttr=s,g.stops=[],h.forEach(function(t){var e=t[0],i=t[1];0===i.indexOf("rgba")?(i=(o=eo.parse(i)).get("rgb"),l=o.get("a")):l=1;var r=u.createElement("stop").attr({offset:e,"stop-color":i,"stop-opacity":l}).add(g);g.stops.push(r)})}p="url("+u.url+"#"+d+")",i.setAttribute(e,p),i.gradient=f,t.toString=function(){return p}}})},t.prototype.css=function(t){var e,i=this.styles,o={},r=this.element,n=this.renderer,s=!i;if(i&&tz(t,function(t,e){i&&i[e]!==t&&(o[e]=t,s=!0)}),s){i&&(t=tv(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=tH(t.width)),tv(this.styles,t),e&&!eO&&n.forExport&&delete t.width;var a=eE&&t.fontSize||null;a&&(tO(a)||/^\d+$/.test(a))&&(t.fontSize+="px");var h=tD(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return h&&delete h[t]}),h.color&&(h.fill=h.color,delete h.color)),tc(r,h)}return this.added&&("text"===this.element.nodeName&&n.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]=""+tH(o[e])*tW(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element,i=void 0===e?{}:e,o=t.renderer,r=t.stops,n=i.ownerSVGElement;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,eh(t),t.clipPath&&n){var s=t.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(s.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=s.destroy()}if(r){for(var a=0;a<r.length;a++)r[a].destroy();r.length=0}t.safeRemoveChild(i),t.alignOptions&&tg(o.alignedObjects,t),tz(t,function(e,i){var o,r,n;((null==(o=t[i])?void 0:o.parentGroup)===t||-1!==["connector","foreignObject"].indexOf(i))&&(null==(n=null==(r=t[i])?void 0:r.destroy)||n.call(r)),delete t[i]})},t.prototype.dSetter=function(t,e,i){tL(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,r,n,s=this.element,a=this.renderer,h=this.styles,l=this.textStr,c=a.cache,d=a.cacheKeys,p=s.namespaceURI===this.SVG_NS,u=tW(i,this.rotation,0),f=a.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):h.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,h.fontWeight,h.lineClamp,h.textOverflow,f,u]);if(g&&!e&&(o=c[g]),!o||o.polygon){if(p||a.forExport){try{n=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&tc(e,{display:t})},tE(n)&&n("none"),o=s.getBBox?tv({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},tE(n)&&n("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();r=o.height,p&&(o.height=r=({"11px,17":14,"13px,20":16})[""+(f||"")+",".concat(Math.round(r))]||r),u&&(o=this.getRotatedBox(o,u));var v={bBox:o};ty(this,"afterGetBBox",v),o=v.bBox}if(g&&(""===l||o.height>0)){for(;d.length>250;)delete c[d.shift()];c[g]||d.push(g),c[g]=o}return o},t.prototype.getBBoxCacheKey=function(t){if(td(this.textStr)){var e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),eT([e],t,!0).join(",")}},t.prototype.getRotatedBox=function(t,e){var i=t.x,o=t.y,r=t.width,n=t.height,s=this.alignValue,a=this.translateY,h=this.rotationOriginX,l=this.rotationOriginY,c=tx(s),d=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*eA,u=(e-90)*eA,f=Math.cos(p),g=Math.sin(p),v=r*f,m=r*g,y=Math.cos(u),x=Math.sin(u),b=[void 0===h?0:h,void 0===l?0:l].map(function(t){return[t-t*f,t*g]}),k=b[0],w=k[0],M=k[1],S=b[1],T=S[0],A=i+c*(r-v)+w+S[1]+d*y,C=A+v,O=C-n*y,P=O-v,L=o+d-c*m-M+T+d*x,E=L+m,I=E-n*x,D=I-m,B=Math.min(A,C,O,P),z=Math.min(L,E,I,D),R=Math.max(A,C,O,P)-B,N=Math.max(L,E,I,D)-z;return{x:B,y:z,width:R,height:N,polygon:[[A,L],[C,E],[O,I],[P,D]]}},t.prototype.getStyle=function(t){return eL.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]=ti(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(tP(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=tD((null==(e=this.parentGroup)?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},tI(t)?t:{}),r=i.shadowDefinition(o);return this.attr({filter:t?"url(".concat(i.url,"#").concat(r,")"):"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=tH(e):""!==e&&(tn(t=eC.createElementNS(eP,"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]=tW(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]||eC.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=tF(tW(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,r,n=this.element,s=this.foreignObject,a=this.matrix,h=this.rotation,l=void 0===h?0:h,c=this.rotationOriginX,d=this.rotationOriginY,p=this.scaleX,u=this.scaleY,f=this.text,g=this.translateX,v=this.translateY,m=["translate(".concat(void 0===g?0:g,",").concat(void 0===v?0:v,")")];td(a)&&m.push("matrix("+a.join(",")+")"),l&&m.push("rotate("+l+" "+(null!=(i=null!=(e=null!=c?c:n.getAttribute("x"))?e:this.x)?i:0)+" "+(null!=(r=null!=(o=null!=d?d:n.getAttribute("y"))?o:this.y)?r:0)+")"),(td(p)||td(u))&&m.push("scale(".concat(null!=p?p:1," ").concat(null!=u?u:1,")")),m.length&&!(f||this).textPath&&((null==s?void 0:s.element)||n).setAttribute(t,m.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,r,n,s,a=this.element,h=this.parentGroup,l=this.renderer,c=(null==h?void 0:h.element)||l.box,d=c===l.box,p=!1,u=this.added;if(td(t)?(a.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):td(this[e])&&a.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&h&&(h.handleZ=!0),s=(i=c.childNodes).length-1;s>=0&&!p;s--)n=!td(r=(o=i[s]).getAttribute("data-z-index")),o!==a&&(td(t)&&t<0&&n&&!d&&!s?(c.insertBefore(a,i[s]),p=!0):(td(t)&&parseFloat(r||"")<=t||n&&(!td(t)||t>=0))&&(c.insertBefore(a,i[s+1]),p=!0));p||(c.insertBefore(a,i[3*!!d]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();eI.prototype.strokeSetter=eI.prototype.fillSetter,eI.prototype.yGetter=eI.prototype.xGetter,eI.prototype.matrixSetter=eI.prototype.rotationOriginXSetter=eI.prototype.rotationOriginYSetter=eI.prototype.rotationSetter=eI.prototype.scaleXSetter=eI.prototype.scaleYSetter=eI.prototype.translateXSetter=eI.prototype.translateYSetter=eI.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var eD=$.charts,eB=["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],ez=[null,"#00e272","#efdf00"],eR=function(t,e){var i=function(t){var i="";return tz(e.light,function(o,r){i+=t&&o!==e.dark[r]?"  ".concat(r,": light-dark(").concat(o,", ").concat(e.dark[r],");\n"):"  ".concat(r,": ").concat(o,";\n")}),i};return""+(t||":root")+" {\n"+i()+"\n}\n@supports (color: light-dark(#fff, #000)) {\n  "+(t||":root")+" {\n"+i(!0)+"\n  }\n}\n.highcharts-container {\n  color-scheme: light dark;\n}\n.highcharts-light .highcharts-container {\n  color-scheme: light;\n}\n.highcharts-dark .highcharts-container {\n  color-scheme: dark;\n}"},eN=function(){function t(t,e){this.defaultOptions=J,this.options=tD(J),this.cssVars={light:{},dark:{}},this.renderer=t,this.update(e)}return t.prototype.injectCSS=function(t){for(var e,i,o,r,n=this.cssVars,s=this.renderer,a=Object.keys(tf(t,this.defaultOptions)).length>0,h=Math.max((null==(e=t.colors)?void 0:e.length)||0,eB.length),l="light",c=function(t,e){tP(t)&&(e=e.replace(/([0-9]+)/g,"-$1").replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())}),n[l]["--highcharts-".concat(e)]=t)},d=0,p=["light","dark"];d<p.length;d++)!function(e){var s=t[e]||{},a={},d=new eo((null==s?void 0:s.neutralColor)||""),p=new eo((null==s?void 0:s.backgroundColor)||""),u=new eo((null==s?void 0:s.highlightColor)||"");l=e,[3,5,10,20,40,60,80,100].forEach(function(t){a["neutralColor".concat(t)]=p.tweenTo(d,t/100),a["highlightColor".concat(t)]=p.tweenTo(u,t/100)});for(var f=0;f<h;f++)c((null==(i=null==s?void 0:s.colors)?void 0:i[f])||(null==(o=t.colors)?void 0:o[f])||(null==(r="dark"===e?ez:[])?void 0:r[f])||eB[f]||"#888a","color".concat(f));tz(s,c),tz(a,c),"light"===e&&tv(n.dark,n.light)}(p[d]);var u=s.defs.element,f=a?'*[data-highcharts-chart="'.concat(s.chartIndex,'"]'):"",g=u.querySelector("style.highcharts-palette")||s.box.ownerDocument.createElement("style");g.parentNode||(g.nonce="highcharts",g.className="highcharts-palette",u.appendChild(g)),g.textContent=eR(f,n)},t.prototype.update=function(t){var e=this.renderer.box.parentElement,i=null==eD?void 0:eD[this.renderer.chartIndex];t=tD(!0,this.options,t),i&&(i.options.palette=t),!1!==t.injectCSS&&this.injectCSS(t),e&&(tP(t.colorScheme)&&["light","dark","inherit"].includes(t.colorScheme)?e.style.colorScheme=t.colorScheme:e.style.removeProperty("color-scheme"))},t}(),eW=(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)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}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),eH=function(t){function e(i,o,r,n,s,a,h,l,c,d){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=r,u.y=n,u.anchorX=a,u.anchorY=h,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=i.text(void 0,0,0,l).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 eW(e,t),e.prototype.alignSetter=function(t){var e=tx(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&tO(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=tD(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(),"color"in i&&this.updateBackground()}return eI.prototype.css.call(this,t)},e.prototype.destroy=function(){tY(this.element,"mouseenter"),tY(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),eI.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,r=this.translateX,n=this.translateY,s=this.width,a=tW(this.paddingLeft,i),h=null!=e?e:this.rotation||0,l={width:void 0===s?0:s,height:void 0===o?0:o,x:(void 0===r?0:r)+this.bBox.x-a,y:(void 0===n?0:n)+this.bBox.y-i+this.baselineOffset};return h&&(l=this.getRotatedBox(l,h)),l},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),this.updateBackground()},e.prototype.onAdd=function(){this.text.add(this),this.attr({text:tW(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&td(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){tO(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.updateBackground=function(){var t;"contrast"===this.fill&&(null==(t=this.box)||t.attr({fill:this.renderer.getContrast(this.text.styles.color||"#000"),"fill-opacity":.65}))},e.prototype.updateBoxSize=function(){var t,i=this.text,o={},r=this.padding,n=this.bBox=(!tO(this.widthSetting)||!tO(this.heightSetting)||this.textAlign)&&td(i.textStr)?i.getBBox(void 0,0):e.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*r;var s=this.renderer.fontMetrics(i);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||s).b,n.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(tv(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 r=this.baseline?0:this.baselineOffset,n=(null!=(t=this.paddingLeft)?t:this.padding)+tx(o)*(null!=(e=this.widthSetting)?e:this.bBox.width);(n!==i.x||r!==i.y)&&(i.attr({align:o,x:n}),void 0!==r&&i.attr("y",r)),i.x=n,i.y=r}},e.prototype.widthSetter=function(t){this.widthSetting=tO(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=tW(this.paddingLeft,t),i=tW(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}(eI);function eX(t,e,i,o,r){var n=[];if(r){var s=r.start||0,a=r.end||0,h=tW(r.r,i),l=tW(r.r,o||i),c=1e-4>Math.abs(a-s-2*Math.PI);c&&(s=Math.PI/2,a=2.5*Math.PI-1e-4);var d=r.innerR,p=tW(r.open,c),u=c?0:Math.cos(s),f=c?1:Math.sin(s),g=c?0:Math.cos(a),v=c?1:Math.sin(a),m=tW(r.longArc,a-s-Math.PI<1e-4?0:1),y=["A",h,l,0,m,tW(r.clockwise,1),t+(c?.001:h*g),e+l*v];y.params={start:s,end:a,cx:t,cy:e},n.push(["M",t+h*u,e+l*f],y),td(d)&&((y=["A",d,d,0,m,td(r.clockwise)?1-r.clockwise:0,t+(c?-.001:d*u),e+d*f]).params={start:a,end:s,cx:t,cy:e},n.push(p?["M",t+d*g,e+d*v]:["L",t+d*g,e+d*v],y)),p||n.push(["Z"])}return n}function eG(t,e,i,o,r){return(null==r?void 0:r.r)?eF(t,e,i,o,r):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function eF(t,e,i,o,r){var n=(null==r?void 0:r.r)||0;return[["M",t+n,e],["L",t+i-n,e],["A",n,n,0,0,1,t+i,e+n],["L",t+i,e+o-n],["A",n,n,0,0,1,t+i-n,e+o],["L",t+n,e+o],["A",n,n,0,0,1,t,e+o-n],["L",t,e+n],["A",n,n,0,0,1,t+n,e],["Z"]]}var eY={arc:eX,callout:function(t,e,i,o,r){var n=Math.min((null==r?void 0:r.r)||0,i,o),s=n+6,a=null==r?void 0:r.anchorX,h=(null==r?void 0:r.anchorY)||0,l=eF(t,e,i,o,{r:n});if(!tO(a)||a<i&&a>0&&h<o&&h>0)return l;if(t+a>i-s)if(h>e+s&&h<e+o-s)l.splice(3,1,["L",t+i,h-6],["L",t+i+6,h],["L",t+i,h+6],["L",t+i,e+o-n]);else if(a<i){var c=h<e+s,d=c?e:e+o,p=c?2:5;l.splice(p,0,["L",a,h],["L",t+i-n,d])}else l.splice(3,1,["L",t+i,o/2],["L",a,h],["L",t+i,o/2],["L",t+i,e+o-n]);else if(t+a<s)if(h>e+s&&h<e+o-s)l.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+n]);else if(a>0){var c=h<e+s,d=c?e:e+o,p=c?1:6;l.splice(p,0,["L",a,h],["L",t+n,d])}else l.splice(7,1,["L",t,o/2],["L",a,h],["L",t,o/2],["L",t,e+n]);else h>o&&a<i-s?l.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+n,e+o]):h<0&&a>s&&l.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-n,e]);return l},circle:function(t,e,i,o){return eX(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:eG,roundedRect:eF,square:eG,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"]]}},ej=$.doc,e_=$.SVG_NS,eU=$.win,eV=function(t,e){return t.substring(0,e)+"…"},eZ=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=tW(t.textStr,"").toString(),r=-1!==o.indexOf("<"),n=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 h=n.length;h--;)e.removeChild(n[h]);if(r||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))){if(""!==o){s&&s.appendChild(e);var l=new ev(o);this.modifyTree(l.nodes),l.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(ej.createTextNode(this.unescapeEntities(o)));tP(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=tn(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,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),tn(t,{dy:e.getLineHeight(t.nextSibling),x:o}))});var r=this.width||0;if(r){var n=function(t,n){var s,a=t.textContent||"",h=a.replace(/([^\^])-/g,"$1- ").split(" "),l=!e.noWrap&&(h.length>1||i.element.childNodes.length>1),c=e.getLineHeight(n),d=Math.max(0,r-.8*c),p=0,u=i.actualWidth;if(l){for(var f=[],g=[];n.firstChild&&n.firstChild!==t;)g.push(n.firstChild),n.removeChild(n.firstChild);for(;h.length;)if(h.length&&!e.noWrap&&p>0&&(f.push(t.textContent||""),t.textContent=h.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,h,0===p&&u||0,r,d,function(t,e){return h.slice(0,e).join(" ").replace(/- /g,"-")}),u=i.actualWidth,p++,e.lineClamp&&p>=e.lineClamp){h.length&&(e.truncate(t,t.textContent||"",void 0,0,r,d,eV),t.textContent=(null==(s=t.textContent)?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){n.insertBefore(e,t)}),f.forEach(function(e){n.insertBefore(ej.createTextNode(e),t);var i=ej.createElementNS(e_,"tspan");i.textContent="​",tn(i,{dy:c,x:o}),n.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,r,d,eV)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===eU.Node.TEXT_NODE?n(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===eU.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,r){var n=o.attributes,s=void 0===n?{}:n,a=o.children,h=o.style,l=void 0===h?{}:h,c=o.tagName,d=e.renderer.styledMode;if("b"===c||"strong"===c?d?s.class="highcharts-strong":l.fontWeight="bold":("i"===c||"em"===c)&&(d?s.class="highcharts-emphasized":l.fontStyle="italic"),(null==l?void 0:l.color)&&(l.fill=l.color),"br"===c){s.class="highcharts-br",o.textContent="​";var p=t[r+1];(null==p?void 0:p.textContent)&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===c&&a&&a.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:a,tagName:"tspan"}]);"#text"!==c&&"a"!==c&&(o.tagName="tspan"),tv(o,{attributes:s,style:l}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),ty(this.svgElement,"afterModifyTree",{nodes:t})},t.prototype.truncate=function(t,e,i,o,r,n,s){var a,h,l=this.svgElement,c=l.rotation,d=[],p=i&&!o?1:0,u=(e||i||"").length,f=u;i||(r=n);var g=function(e,r){var n=r||e,s=t.parentNode;if(s&&void 0===d[n]&&s.getSubStringLength)try{d[n]=o+s.getSubStringLength(0,i?n+1:n)}catch(t){}return d[n]};if(l.rotation=0,o+(h=g(t.textContent.length))>r){for(;p<=u;)f=Math.ceil((p+u)/2),i&&(a=s(i,f)),h=g(f,a&&a.length-1),p===u?p=u+1:h>r?u=f-1:p=f;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=a||s(e||i,f)),this.ellipsis&&h>r&&this.truncate(t,t.textContent||"",void 0,0,r,n,eV)}i&&i.splice(0,f),l.actualWidth=h,l.rotation=c},t.prototype.unescapeEntities=function(t,e){return tz(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),eK=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},eq=$.charts,e$=$.deg2rad,eJ=$.doc,eQ=$.isFirefox,e0=$.isMS,e1=$.isWebKit,e2=$.noop,e5=$.SVG_NS,e3=$.symbolSizes,e6=$.win,e9=function(){function t(t,e,i,o,r,n,s,a,h){this.x=0,this.y=0;var l,c,d=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),p=d.element;t.appendChild(p),tn(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&tn(p,"xmlns",this.SVG_NS),this.box=p,this.boxWrapper=d,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(eJ.createTextNode("Created with Highcharts 13.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=s,this.chartIndex=h||0,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=d.getStyle("font-size"),this.setSize(e,i,!1),s||(d.css(this.getStyle(o||{})),this.palette=new eN(this,a||t8.palette)),eQ&&t.getBoundingClientRect&&((l=function(){tc(t,{left:0,top:0}),c=t.getBoundingClientRect(),tc(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=ti(e6,"resize",l))}return t.prototype.definition=function(t){return new ev([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((eQ||e1)&&eJ.getElementsByTagName("base").length){if(!td(I)){var t=tQ(),e=new ev([{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(eJ.body);tc(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=eJ.elementFromPoint(6,6);I=(null==i?void 0:i.id)==="hitme",eJ.body.removeChild(e)}if(I)return tF(e6.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=tv({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(),tp(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects.length=0,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=eK(["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=tD({color:"#000000",offsetX:0,offsetY:2,opacity:.05,width:6},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 eZ(t).buildSVG()},t.prototype.getContrast=function(t){if("transparent"===t)return"#000000";var e=eo.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tO(e[0])||!eo.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)}),r=.2126*o[0]+.7152*o[1]+.0722*o[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"},t.prototype.button=function(t,e,i,o,r,n,s,a,h,l){void 0===r&&(r={});var c=this.label(t,e,i,h,void 0,void 0,l,void 0,"button"),d=this.styledMode,p=arguments,u=0;r=tD(t8.global.buttonTheme,r),d&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);var f=r.states||{},g=r.style||{};delete r.states,delete r.style;var v=[ev.filterUserAttributes(r)],m=[g];return d||["hover","select","disabled"].forEach(function(t,e){v.push(tD(v[0],ev.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),ti(c.element,e0?"mouseover":"mouseenter",function(){3!==u&&c.setState(1)}),ti(c.element,e0?"mouseout":"mouseleave",function(){3!==u&&c.setState(u)}),c.setState=function(t){if(void 0===t&&(t=0),1!==t&&(c.state=u=t),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!d){c.attr(v[t]);var e=m[t];tI(e)&&c.css(e)}},c.attr(v[0]),!d&&(c.css(tv({cursor:"default"},g)),l&&c.text.css({pointerEvents:"none"})),c.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&(null==o||o.call(c,t))})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return td(i[1])&&i[1]===o[1]&&(i[1]=o[1]=tl(i[1],e)),td(i[2])&&i[2]===o[2]&&(i[2]=o[2]=tl(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return tL(t)?e.d=t:tI(t)&&tv(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=tI(t)?t:void 0===t?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},r.attr(o)},t.prototype.arc=function(t,e,i,o,r,n){tI(t)?(e=(s=t).y,i=s.r,o=s.innerR,r=s.start,n=s.end,t=s.x):s={innerR:o,start:r,end:n};var s,a=this.symbol("arc",t,e,i,i,s);return a.r=i,a},t.prototype.rect=function(t,e,i,o,r,n){var s=tI(t)?t:void 0===t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(o||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==n&&(s["stroke-width"]=n,tv(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,tn(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:tW(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,r,n){var s={preserveAspectRatio:"none"};tO(e)&&(s.x=e),tO(i)&&(s.y=i),tO(o)&&(s.width=o),tO(r)&&(s.height=r);var a=this.createElement("image").attr(s),h=function(e){a.attr({href:t}),n.call(a,e)};if(n){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var l=new e6.Image;ti(l,"load",h),l.src=t,l.complete&&h({})}else a.attr({href:t});return a},t.prototype.symbol=function(t,e,i,o,r,n){var s,a,h,l,c,d,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&&(l=v.call(this.symbols,e||0,i||0,o||0,r||0,n)),h=this.path(l),p.styledMode||h.attr("fill","none"),tv(h,{symbolName:g||void 0,x:e,y:i,width:o,height:r}),n&&tv(h,n);else if(f){c=t.match(u)[1];var m=h=this.image(c);m.imgwidth=tW(null==n?void 0:n.width,null==(s=e3[c])?void 0:s.width),m.imgheight=tW(null==n?void 0:n.height,null==(a=e3[c])?void 0:a.height),d=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,r=this.width,s=this.height,a=this.imgwidth,h=this.imgheight,l="width"===e?a:h,c=1;n&&"within"===n.backgroundSize&&r&&s&&a&&h?(c=Math.min(r/a,s/h),tn(o,{width:Math.round(a*c),height:Math.round(h*c)})):o&&l&&o.setAttribute(e,l),!i&&a&&h&&this.translate(((r||0)-a*c)/2,((s||0)-h*c)/2)}}),td(e)&&m.attr({x:e,y:i}),m.isImg=!0,td(m.imgwidth)&&td(m.imgheight)?d(m):(m.attr({width:0,height:0}),th("img",{onload:function(){var t=eq[p.chartIndex];0===this.width&&(tc(this,{position:"absolute",top:"-999em"}),eJ.body.appendChild(this)),e3[c]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&d(m),this.parentNode&&this.parentNode.removeChild(this),p.asyncCounter--,p.asyncCounter||!t||t.hasLoaded||t.onload()},src:c}),this.asyncCounter++)}return h},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 r={};if(o&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),td(t)&&(r.text=t);var n=this.createElement("text").attr(r);return o&&(!this.forExport||this.allowHTML)||(n.xSetter=function(t,e,i){for(var o=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0,s=void 0;n<o.length;n++)(s=o[n]).getAttribute(e)===r&&s.setAttribute(e,t);i.setAttribute(e,t)}),n},t.prototype.fontMetrics=function(t){var e=tO(t)?t:tH(eI.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*e$),4)),{x:-t/3*Math.sin(e*e$),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},r=0;r<t.length;r++)tP(i[0])&&tO(t[r])&&i.length===o[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e},t.prototype.label=function(t,e,i,o,r,n,s,a,h){return new eH(this,t,e,i,o,r,n,s,a,h)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();tv(e9.prototype,{Element:eI,SVG_NS:e5,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:eY,draw:e2}),$.Renderer=e9;var e4=(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)}),e8=$.composed,e7=$.isFirefox,it=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.foreignObject=e.createElement("foreignObject").attr({zIndex:2}),o.element.style.whiteSpace="nowrap",o}return e4(e,t),e.compose=function(t){tX(e8,"HTMLElement")&&(t.prototype.html=function(t,i,o){return new e(this,"div").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=t&&"width"in t,r=o&&t.width;return o&&(delete t.width,this.textWidth=tH(r)||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"):(null==t?void 0:t.lineClamp)===0&&(t.display="inline-block"),tO(Number(null==t?void 0:t.fontSize))&&(t.fontSize+="px"),tv(this.styles,t),tc(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,r=this.oldTextWidth,n=this.renderer,s=this.rotation,a=this.scaleX,h=this.styles,l=h.display,c=void 0===l?"inline-block":l,d=h.whiteSpace,p=this.textAlign,u=void 0===p?"left":p,f=this.textWidth,g=this.x,v=void 0===g?0:g,m=this.y,y=void 0===m?0:m,x=[s,u,i.innerHTML,f,this.textAlign].join(",");if(tc(i,{display:"inline-block",verticalAlign:"top"}),f!==r){var b=this.textPxLength?this.textPxLength:(tc(i,{width:"",whiteSpace:d||"nowrap"}),i.offsetWidth),k=f||0,w=!n.styledMode&&""===i.style.textOverflow&&i.style.webkitLineClamp;(k>r||b>k||w)&&(/[\-\s\u00AD]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)&&(tc(i,{width:(s||a||b>k)&&tO(f)?f+"px":w?Math.min(b+1,k)+"px":"auto",display:c,whiteSpace:d||"normal"}),this.oldTextWidth=f)}o.attr({width:n.width,height:n.height}),x!==this.cTT&&(e=n.fontMetrics(i).b,this.getSpanCorrection(!td(s)&&!this.textWidth&&this.textPxLength||i.offsetWidth,e,tx(u))),t.prototype.updateTransform.call(this),tO(v)&&tO(y)?(o.attr({x:v+(this.xCorr||0),y:y+(this.yCorr||0),width:i.offsetWidth+4,height:i.offsetHeight+1,"transform-origin":i.getAttribute("transform-origin")||"0 0"}),tc(i,{display:c,textAlign:u})):e7&&o.attr({width:0,height:0}),this.cTT=x},e.prototype.add=function(e){var i=this.foreignObject,o=this.renderer;return 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)),this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.oldTextWidth,ev.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}(eI),ie=it.prototype;ie.ySetter=ie.xSetter,(d=D||(D={})).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]",boundary:void 0,range:!1},day:{main:"%[eb]",boundary:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]",boundary:void 0},year:{main:"%[Y]",boundary:void 0}},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:"var(--highcharts-neutral-color-80)",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:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"var(--highcharts-neutral-color-5)",minorGridLineWidth:1,minorTickColor:"var(--highcharts-neutral-color-40)",lineColor:"var(--highcharts-neutral-color-80)",lineWidth:1,gridLineColor:"var(--highcharts-neutral-color-10)",gridLineWidth:void 0,tickColor:"var(--highcharts-neutral-color-80)"},d.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:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var ii=D;(B||(B={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},tz(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(tY(t,i,t.eventOptions[i]),delete t.eventOptions[i]),tE(e)&&(t.eventOptions[i]=e,ti(t,i,e,{order:0})))})};var io=B,ir=$.deg2rad,is=function(){function t(t,e,i,o,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,ty(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o,r,n,s=this,a=s.axis,h=a.options,l=a.chart,c=a.categories,d=a.logarithmic,p=a.names,u=s.pos,f=tW(null==(t=s.options)?void 0:t.labels,h.labels),g=a.tickPositions,v=u===g[0],m=u===g[g.length-1],y=g.info,x=null==y?void 0:y.boundaryTicks[u],b=h.dateTimeLabelFormats,k=s.label,w=this.parameters.category||(c?tW(c[u],p[u],u):u);if(d&&tO(w)&&(w=ta(d.lin2log(w))),a.dateTime&&b)if(y){var M=y.unitName,S={millisecond:"hour",second:"hour",minute:"hour",hour:"day",day:"month",week:"month",month:"year",year:"year"}[M],T=!(null==(e=h.grid)?void 0:e.enabled)&&x&&S&&(null==(i=b[S])?void 0:i.boundary)||b[M];o=(r=l.time.resolveDTLFormat(T)).main}else tO(w)&&(o=a.dateTime.getXDateFormat(w,b||{}));s.isFirst=v,s.isLast=m,s.boundary=x;var A={axis:a,chart:l,dateTimeLabelFormat:o,boundary:x,isFirst:v,isLast:m,pos:u,tick:s,tickPositionInfo:y,value:w};ty(this,"labelFormat",A);var C=function(t){return f.formatter?f.formatter.call(t,t):f.format?(t.text=a.defaultLabelFormatter.call(t),eM.format(f.format,t,l)):a.defaultLabelFormatter.call(t)},O=C.call(A,A),P=null==r?void 0:r.list;P?s.shortenLabel=function(){for(n=0;n<P.length;n++)if(tv(A,{dateTimeLabelFormat:P[n]}),k.attr({text:C.call(A,A)}),k.getBBox().width<a.getSlotWidth(s)-2*(f.padding||0))return;k.attr({text:""})}:s.shortenLabel=void 0,k?k.textStr!==O&&(!k.textWidth||f.style.width||k.styles.width||k.css({width:void 0}),k.attr({text:O}),k.textPxLength=k.getBBox().width):(s.label=k=s.createLabel(O,f),s.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,n=r.renderer,s=r.styledMode,a=e.style.whiteSpace,h=td(t)&&e.enabled?n.text(t,null==i?void 0:i.x,null==i?void 0:i.y,e.useHTML).add(o.labelGroup):void 0;return h&&(s||h.css(tD(e.style)),h.textPxLength=h.getBBox().width,!s&&a&&h.css({whiteSpace:a})),h},t.prototype.destroy=function(){tp(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var r=this.axis,n=r.chart,s=o&&n.oldChartHeight||n.chartHeight,a={x:t?ta(r.translate(e+i,void 0,void 0,o)+r.transB):r.left+r.offset+(r.opposite?(o&&n.oldChartWidth||n.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):ta(s-r.translate(e+i,void 0,void 0,o)-r.transB)};return a.y=ts(a.y,-1e9,1e9),ty(this,"afterGetPosition",{pos:a}),a},t.prototype.getLabelPosition=function(t,e,i,o,r,n,s,a){var h,l,c=this.axis,d=c.transA,p=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,u=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},g=o||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),v=r.distance,m={};return h=0===c.side?i.rotation?-v:-i.getBBox().height:2===c.side?f.y+v:Math.cos(i.rotation*ir)*(f.y-i.getBBox(!1,0).height/2),td(r.y)&&(h=0===c.side&&c.horiz?r.y+h:r.y),t=t+tW(r.x,[0,1,0,-1][c.side]*v)+g+f.x-(n&&o?n*d*(p?-1:1):0),e=e+h-(n&&!o?n*d*(p?1:-1):0),u&&(l=s/(a||1)%u,c.opposite&&(l=u-l-1),e+=l*(c.labelOffset/u)),m.x=t,m.y=Math.round(e),ty(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:n,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,r,n){return void 0===r&&(r=!1),n.crispLine([["M",t,e],["L",t+(r?0:-i),e+(r?i:0)]],o)},t.prototype.handleOverflow=function(t){var e,i,o=this.axis,r=o.options.labels,n=t.x,s=o.chart.chartWidth,a=o.chart.spacing,h=tW(o.labelLeft,Math.min(o.pos,a[3])),l=tW(o.labelRight,Math.max(o.isRadial?0:o.pos+o.len,s-a[1])),c=this.label,d=this.rotation,p=tx(o.labelAlign||c.attr("align")),u=c.getBBox().width,f=o.getSlotWidth(this),g=f,v=1;d||"justify"!==r.overflow?d<0&&n-p*u<h?i=Math.round(n/Math.cos(d*ir)-h):d>0&&n+p*u>l&&(i=Math.round((s-n)/Math.cos(d*ir))):(n-p*u<h?g=t.x+g*(1-p)-h:n+(1-p)*u>l&&(g=l-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==c?void 0:c.styles)?void 0:e.width))&&(i=g)),i&&c&&(this.shortenLabel?this.shortenLabel():c.css(tv({},{width:Math.floor(i)+"px",lineClamp:+!o.isRadial})))},t.prototype.render=function(t,e,i){var o,r=this.axis,n=r.horiz,s=this.pos,a=tW(this.tickmarkOffset,r.tickmarkOffset),h=this.getPosition(n,s,a,e),l=h.x,c=h.y,d=r.pos,p=d+r.len,u=n?l:c,f=tW(i,null==(o=this.label)?void 0:o.newOpacity,1);!r.chart.polar&&(ta(u)<d||u>p)&&(i=0),null!=i||(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(h,i),this.renderLabel(h,e,f,t),this.isNew=!1,ty(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,r=o.options,n={},s=this.pos,a=this.type,h=tW(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,c=this.gridLine,d=r.gridLineWidth,p=r.gridLineColor,u=r.gridLineDashStyle;"minor"===this.type&&(d=r.minorGridLineWidth,p=r.minorGridLineColor,u=r.minorGridLineDashStyle),c||(o.chart.styledMode||(n.stroke=p,n["stroke-width"]=d||0,n.dashstyle=u),a||(n.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(n).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),c&&(i=o.getPlotLinePath({value:s+h,lineWidth:c.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e){var i=this.axis,o=i.options,r=i.chart.renderer,n=this.type,s=i.tickSize(n?n+"Tick":"tick"),a=t.x,h=t.y,l=tW(o["minor"!==n?"tickWidth":"minorTickWidth"],!n&&i.isXAxis?1:0),c=o["minor"!==n?"tickColor":"minorTickColor"],d=this.mark,p=!d;s&&(i.opposite&&(s[0]=-s[0]),!d&&(this.mark=d=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:c,"stroke-width":l})),d[p?"attr":"animate"]({d:this.getMarkPath(a,h,s[0],d.strokeWidth(),i.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,o){var r=this.axis,n=r.horiz,s=r.options,a=this.label,h=s.labels,l=h.step,c=tW(this.tickmarkOffset,r.tickmarkOffset),d=t.x,p=t.y,u=!0;a&&tO(d)&&(a.xy=t=this.getLabelPosition(d,p,a,n,h,c,o,l),(!this.isFirst||this.isLast||s.showFirstLabel)&&(!this.isLast||this.isFirst||s.showLastLabel)?n&&!e&&0!==i&&this.handleOverflow(t):u=!1,l&&o%l&&(u=!1),u&&tO(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},t}(),ia=ii.xAxis,ih=ii.yAxis,il=eo.parse,ic=io.registerEventOptions,id=$.deg2rad,ip=function(t,e){return tB(e,void 0,void 0,tW(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};tv(t8,{xAxis:ia,yAxis:tD(ia,ih)});var iu=function(){function t(t,e,i){this.clippable=!0,this.init(t,e,i)}return t.prototype.init=function(t,e,i){void 0===i&&(i=this.coll);var o,r="xAxis"===i,n=this.isZAxis||(t.inverted?!r:r);this.chart=t,this.horiz=n,this.isXAxis=r,this.coll=i,ty(this,"init",{userOptions:e}),this.opposite=tW(e.opposite,this.opposite),this.side=tW(e.side,this.side,n?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),ty(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=tW(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=tL(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[]),this.namesMap||(this.namesMap={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=td(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.max=void 0,this.min=void 0;var h=tW(s.crosshair,tj(t.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===h?{}:h,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t$(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&!td(this.reversed)&&(this.reversed=!0),this.labelRotation=tO(a.rotation)?a.rotation:void 0,ic(this,s),ty(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=tD(e,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},t8[this.coll],t),ty(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart,r=o.numberFormatter,n=tO(this.value)?this.value:NaN,s=i.chart.time,a=i.categories,h=this.dateTimeLabelFormat,l=t8.lang,c=l.numericSymbols,d=l.numericSymbolMagnitude||1e3,p=i.logarithmic?Math.abs(n):i.tickInterval,u=null==c?void 0:c.length;if(a)e="".concat(this.value);else if(h)e=s.dateFormat(h,n,!0);else if(u&&c&&p>=1e3)for(;u--&&void 0===e;)p>=(t=Math.pow(d,u+1))&&10*n%t==0&&null!==c[u]&&0!==n&&(e=r(n/t,-1,void 0,void 0,o)+c[u]);return null!=e||(e=r(n,-1,void 0,1e4>Math.abs(n)?"":void 0,o)),e},t.prototype.getSeriesExtremes=function(){var t,e=this;ty(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,r=void 0,n=o.threshold,s=void 0,a=void 0;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(n||0)&&(n=void 0),e.isXAxis)(r=i.getColumn("x")).length&&(r=e.logarithmic?r.filter(function(t){return t>0}):r,s=(t=i.getXExtremes(r)).min,a=t.max,tO(s)||s instanceof Date||(r=r.filter(tO),s=(t=i.getXExtremes(r)).min,a=t.max),r.length&&(e.dataMin=Math.min(tW(e.dataMin,s),s),e.dataMax=Math.max(tW(e.dataMax,a),a)));else{var h=i.applyExtremes();tO(h.dataMin)&&(s=h.dataMin,e.dataMin=Math.min(tW(e.dataMin,s),s)),tO(h.dataMax)&&(a=h.dataMax,e.dataMax=Math.max(tW(e.dataMax,a),a)),td(n)&&(e.threshold=n),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),ty(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,r,n){var s,a=this.linkedParent||this,h=o&&a.old?a.old.min:a.min;if(!tO(h))return NaN;var l=a.minPixelPadding,c=(a.isOrdinal||(null==(s=a.brokenAxis)?void 0:s.hasBreaks)||a.logarithmic&&r)&&!!a.lin2val,d=1,p=0,u=o&&a.old?a.old.transA:a.transA,f=0;return u||(u=a.transA),i&&(d*=-1,p=a.len),a.reversed&&(d*=-1,p-=d*(a.sector||a.len)),e?(f=(t=t*d+p-l)/u+h,c&&(f=a.lin2val(f))):(c&&(t=a.val2lin(t)),f=d*(t-h)*u+p+d*l+(tO(n)?u*n:0),a.isRadial||(f=ta(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,r,n,s=this,a=s.chart,h=s.left,l=s.top,c=t.old,d=t.value,p=t.lineWidth,u=c&&a.oldChartHeight||a.chartHeight,f=c&&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=ts(t,e,i):n=!0),t}var x={value:d,lineWidth:p,old:c,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return ty(this,"getPlotLinePath",x,function(t){e=o=(v=ts(v=tW(v,s.translate(d,void 0,void 0,c)),-1e9,1e9))+g,i=r=u-v-g,tO(v)?s.horiz?(i=l,r=u-s.bottom+(s.options.isInternal?0:a.scrollablePixelsY||0),e=o=y(e,h,h+s.width)):(e=h,o=f-s.right+(a.scrollablePixelsX||0),i=r=y(i,l,l+s.height)):(n=!0,m=!1),t.path=n&&!m?void 0:a.renderer.crispLine([["M",e,i],["L",o,r]],p||1)}),x.path},t.prototype.getLinearTickPositions=function(t,e,i){var o,r,n,s=ta(Math.floor(e/t)*t),a=ta(Math.ceil(i/t)*t),h=[];if(ta(s+t)===s&&(n=20),this.single)return[e];for(o=s;o<=a&&(h.push(o),(o=ta(o+t,n))!==r);)r=o;return h},t.prototype.getMinorTickInterval=function(){var t=this.options,e=t.minorTicks,i=t.minorTickInterval;return!0===e?tW(i,"auto"):!1!==e?i:void 0},t.prototype.getMinorTickPositions=function(){var t,e,i=this.options,o=this.tickPositions,r=this.minorTickInterval,n=this.pointRangePadding||0,s=(this.min||0)-n,a=(this.max||0)+n,h=(null==(t=this.brokenAxis)?void 0:t.hasBreaks)?this.brokenAxis.unitLength:a-s,l=[];if(h&&h/r<this.len/3){var c=this.logarithmic;if(c)this.paddedTicks.forEach(function(t,e,i){e&&l.push.apply(l,c.getLogTickPositions(r,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),s,a,i.startOfWeek));else for(e=s+(o[0]-s)%r;e<=a&&e!==l[0];e+=r)l.push(e)}return 0!==l.length&&this.trimTicks(l),l},t.prototype.adjustForMinRange=function(){var t,e,i,o,r,n,s,a=this.options,h=this.logarithmic,l=this.chart.time,c=this.max,d=this.min,p=this.minRange;this.isXAxis&&void 0===p&&!h&&(p=td(a.min)||td(a.max)||td(a.floor)||td(a.ceiling)?null:Math.min(5*(tb(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),tO(c)&&tO(d)&&tO(p)&&c-d<p&&(r=this.dataMax-this.dataMin>=p,o=(p-c+d)/2,n=[d-o,null!=(t=l.parse(a.min))?t:d-o],r&&(n[2]=h?h.log2lin(this.dataMin):this.dataMin),s=[(d=tr(n))+p,null!=(e=l.parse(a.max))?e:d+p],r&&(s[2]=h?h.log2lin(this.dataMax):this.dataMax),(c=to(s))-d<p&&(n[0]=c-p,n[1]=null!=(i=l.parse(a.min))?i:c-p,d=tr(n))),this.minRange=p,this.min=d,this.max=c},t.prototype.getClosest=function(){var t,e;if(this.categories)e=1;else{var i=[];this.series.forEach(function(t){var o=t.closestPointRange,r=t.getColumn("x");1===r.length?i.push(r[0]):t.sorted&&td(o)&&t.reserveSpace()&&(e=td(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=tb([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t,e){var i,o,r=tL(this.options.categories),n=t.name,s=t.series,a=r?this.categories:this.names,h=this.namesMap;return s.requireSorting=!1,td(e)||(e=this.uniqueNames&&a?r?a.indexOf(n):null!=(i=h[n])?i:-1:s.autoIncrement()),-1===e?!r&&a&&(o=a.length):tO(e)&&(o=e),void 0!==o?(this.names[o]=t.name,h[t.name]=o):o=tO(t.x)?t.x:s.autoIncrement(),o},t.prototype.updateNames=function(){var t=this,e=this.names,i=this.namesMap;e.length>0&&(Object.keys(i).forEach(function(t){delete i[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){var i;if(e.xIncrement=null,delete e.xColumn,!e.points||e.isDirtyData)t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints();else{var o=e.getColumn("x");null==(i=e.points)||i.forEach(function(t){t.x=o[t.index]})}}))},t.prototype.setAxisTranslation=function(){var t,e,i,o=this,r=o.max-o.min,n=o.linkedParent,s=!!o.categories,a=o.isXAxis,h=o.axisPointRange||0,l=0,c=0,d=o.transA;(a||s||h)&&(e=o.getClosest(),n?(l=n.minPointOffset,c=n.pointRangePadding):o.series.forEach(function(t){var i=s?1:a?tW(t.options.pointRange,e,0):o.axisPointRange||0,r=t.options.pointPlacement;if(h=Math.max(h,i),!o.single||s){var n=t.is("xrange")?!a:a;l=Math.max(l,n&&tP(r)?0:i/2),c=Math.max(c,n&&"on"===r?0:i)}}),i=(null==(t=o.ordinal)?void 0:t.slope)&&e?o.ordinal.slope/e:1,o.minPointOffset=l*=i,o.pointRangePadding=c*=i,o.pointRange=Math.min(h,o.single&&s?1:r),a&&(o.closestPointRange=e)),o.translationSlope=o.transA=d=o.staticScale||o.len/(r+c||1),o.transB=o.horiz?o.left:o.bottom,o.minPixelPadding=d*l,ty(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return tO(t)&&tO(e)&&t-e||void 0},t.prototype.setTickInterval=function(t){var e,i,o,r,n,s,a,h,l,c=this.categories,d=this.chart,p=this.dataMax,u=this.dataMin,f=this.dateTime,g=this.isXAxis,v=this.logarithmic,m=this.options,y=this.softThreshold,x=d.time,b=tO(this.threshold)?this.threshold:void 0,k=this.minRange||0,w=m.ceiling,M=m.floor,S=m.linkedTo,T=m.softMax,A=m.softMin,C=tO(S)&&(null==(e=d[this.coll])?void 0:e[S]),O=m.tickPixelInterval,P=m.maxPadding,L=m.minPadding,E=0,I=tO(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||c||C||this.getTickAmount(),h=tW(this.userMin,x.parse(m.min)),l=tW(this.userMax,x.parse(m.max)),C?(this.linkedParent=C,n=C.getExtremes(),this.min=tW(n.min,n.dataMin),this.max=tW(n.max,n.dataMax),this.type!==C.type&&tq(11,!0,d)):(y&&td(b)&&tO(p)&&tO(u)&&(u>=b?(s=b,L=0):p<=b&&(a=b,P=0)),this.min=tW(h,s,u),this.max=tW(l,a,p)),tO(this.max)&&tO(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,tW(u,this.min))&&tq(10,!0,d),this.min=ta(v.log2lin(this.min),16),this.max=ta(v.log2lin(this.max),16)),this.range&&tO(u)&&(this.userMin=this.min=h=Math.max(u,this.minFromRange()||0),this.userMax=l=this.max,this.range=void 0)),ty(this,"foundExtremes"),this.adjustForMinRange(),tO(this.min)&&tO(this.max)){if(!tO(this.userMin)&&tO(A)&&A<this.min&&(this.min=h=A),!tO(this.userMax)&&tO(T)&&T>this.max&&(this.max=l=T),c||this.axisPointRange||(null==(i=this.stacking)?void 0:i.usePercentage)||C||(E=this.max-this.min)&&(!td(h)&&L&&(this.min-=E*L),!td(l)&&P&&(this.max+=E*P)),!tO(this.userMin)&&tO(M)&&(this.min=Math.max(this.min,M)),!tO(this.userMax)&&tO(w)&&(this.max=Math.min(this.max,w)),y&&tO(u)&&tO(p)){var D=b||0;!td(h)&&this.min<D&&u>=D?this.min=m.minRange?Math.min(D,this.max-k):D:!td(l)&&this.max>D&&p<=D&&(this.max=m.minRange?Math.max(D,this.min+k):D)}!d.polar&&this.min>this.max&&(td(m.min)?this.max=this.min:td(m.max)&&(this.min=this.max)),E=this.max-this.min}if(this.min!==this.max&&tO(this.min)&&tO(this.max)?C&&!I&&O===C.options.tickPixelInterval?this.tickInterval=I=C.tickInterval:this.tickInterval=tW(I,this.tickAmount?E/Math.max(this.tickAmount-1,1):void 0,c?1:E*O/Math.max(this.len,O)):this.tickInterval=1,g&&!t){var B=this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max);this.series.forEach(function(t){var e;t.forceCrop=null==(e=t.forceCropping)?void 0:e.call(t),t.processData(B)}),ty(this,"postProcessData",{hasExtremesChanged:B})}this.setAxisTranslation(),ty(this,"initialAxisTranslation"),this.pointRange&&!I&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=tW(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!I&&z&&this.tickInterval<z&&(this.tickInterval=z),f||v||I||(this.tickInterval=ip(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o,r=this.options,n=r.tickPositions,s=r.tickPositioner,a=this.getMinorTickInterval(),h=!this.isPanning,l=h&&r.startOnTick,c=h&&r.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===r.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&td(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==r.allowDecimals),n)d=n.slice();else if(tO(this.min)&&tO(this.max)){if(!(null==(t=this.ordinal)?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],tq(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,r.units),this.min,this.max,r.startOfWeek,null==(e=this.ordinal)?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var p=this.tickInterval,u=p;u<=2*p;)if(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount)this.tickInterval=ip(this,u*=1.1);else break;d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),s&&(this.tickPositions=d,(o=s.apply(this,[this.min,this.max,this]))&&(d=o))}this.isDirty||d.length===(null==(i=this.tickPositions)?void 0:i.length)||(this.isDirty=!0),this.tickPositions=d,this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/r.minorTicksPerMajor:a,this.paddedTicks=d.slice(0),this.trimTicks(d,l,c),!this.isLinked&&tO(this.min)&&tO(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),n||o||this.adjustTickAmount()),ty(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(ty(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&tO(o))this.min=o;else if(t.length)for(;this.min-n>t[0];)t.shift();if(i&&tO(r))this.max=r;else for(;this.max+n<t[t.length-1];)t.pop();0===t.length&&td(o)&&!this.options.tickPositions&&t.push((r+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=e.chart,o=[this],r=e.options,n=i.options.chart,s="yAxis"===this.coll&&n.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==n.alignTicks&&r.alignTicks||s)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var h=function(t){var e=t.horiz,i=t.options;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},l=h(this);i[this.coll].forEach(function(i){var r=i.series;r.length&&r.some(function(t){return t.visible})&&i!==e&&h(i)===l&&(t=!0,o.push(i))})}if(t&&s){o.forEach(function(t){var i=t.getThresholdAlignment(e);tO(i)&&a.push(i)});var c=a.length>1?a.reduce(function(t,e){return t+e},0)/a.length:void 0;o.forEach(function(t){t.thresholdAlignment=c})}return t},t.prototype.getThresholdAlignment=function(t){if((!tO(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(),tO(this.threshold)){var e=ts((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;td(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,r=o.finalTickAmt,n=o.max,s=o.min,a=o.options,h=o.tickPositions,l=o.tickAmount,c=o.thresholdAlignment,d=null==h?void 0:h.length,p=tW(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return h.push(ta(h[h.length-1]+u))},g=function(){return h.unshift(ta(h[0]-u))};if(tO(c)&&(i=0===c?0:1===c?l-1:Math.round(ts(c*(l-1),1,l-2)),a.reversed&&(i=l-1-i)),o.hasData()&&tO(s)&&tO(n)){var v=function(){o.transA*=(d-1)/(l-1),o.min=a.startOnTick?h[0]:Math.min(s,h[0]),o.max=a.endOnTick?h[h.length-1]:Math.max(n,h[h.length-1])};if(tO(i)&&tO(o.threshold)){for(;h[i]!==p||h.length!==l||h[0]>s||h[h.length-1]<n;){for(h.length=0,h.push(o.threshold);h.length<l;)void 0===h[i]||h[i]>o.threshold?g():f();if(u>8*o.tickInterval)break;u*=2}v()}else if(d<l){for(;h.length<l;)h.length%2||s===p?f():g();v()}if(td(r)){for(e=t=h.length;e--;)(3===r&&e%2==1||r<=2&&e>0&&e<t-1)&&h.splice(e,1);o.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i,o,r,n=this.coll,s=this.stacking,a=!1,h=!1;this.series.forEach(function(t){var e;a=a||t.isDirtyData||t.isDirty,h=h||(null==(e=t.xAxis)?void 0:e.isDirty)||!1}),this.setAxisSize();var l=this.len!==(null==(t=this.old)?void 0:t.len);l||a||h||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"===n&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&"xAxis"===n&&s.buildStacks(),this.isDirty||(this.isDirty=l||this.min!==(null==(o=this.old)?void 0:o.min)||this.max!==(null==(r=this.old)?void 0:r.max))):s&&s.cleanStacks(),a&&delete this.allExtremes,ty(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,r){var n=this;void 0===i&&(i=!0);var s=this.chart;this.series.forEach(function(t){delete t.kdTree}),ty(this,"setExtremes",r=tv(r,{min:t=s.time.parse(t),max:e=s.time.parse(e)}),function(t){n.userMin=t.min,n.userMax=t.max,n.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,r=this.width=Math.round(tG(tW(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(tG(tW(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(tG(tW(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(tG(tW(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-n-s,this.right=t.chartWidth-r-a,this.len=Math.max(o?r:n,0),this.pos=o?a:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?ta(t.lin2log(this.min)):this.min,max:t?ta(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 ty(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=tW(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];o&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,o]);var n={tickSize:e,prefix:t};return ty(this,"afterTickSize",n),n.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||t.box)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=i.padding||0,r=this.horiz,n=this.tickInterval,s=this.len/((+!!this.categories+this.max-this.min)/n),a=i.rotation,h=ta(.8*this.labelMetrics().h),l=Math.max(this.max-this.min,0),c=function(t){var e=(t+2*o)/(s||1);return(e=e>1?Math.ceil(e):1)*n>l&&t!==1/0&&s!==1/0&&l&&(e=Math.ceil(l/n)),ta(e*n)},d=n,p=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(tO(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=c(Math.abs(h/Math.sin(id*m))))+Math.abs(m/360))<p&&(p=f,t=m,d=u)}}else d=c(.75*h);return this.autoRotation=e,this.labelRotation=tW(t,tO(a)?a:0),i.step?n:d},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-!this.categories,1),n=e.margin[3];if(t&&tO(t.slotWidth))return t.slotWidth;if(i&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){var s=o.style.width;if(void 0!==s)return parseInt(String(s),10);if(!this.opposite&&n)return n-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t,e=this.chart,i=e.renderer,o=this.tickPositions,r=this.ticks,n=this.options.labels,s=n.style,a=this.horiz,h=this.getSlotWidth(),l=Math.max(1,Math.round(h-(a?2*(n.padding||0):n.distance||0))),c={},d=this.labelMetrics(),p=s.lineClamp,u=null!=p?p:Math.floor(this.len/(o.length*d.h))||1,f=0;tP(n.rotation)||(c.rotation=n.rotation||0),o.forEach(function(t){var e;f=Math.max(f,(null==(e=r[t].label)?void 0:e.textPxLength)||0)}),this.maxLabelLength=f,this.autoRotation?f>l&&f>d.h?c.rotation=this.labelRotation:this.labelRotation=0:h&&(t=l),c.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,p||(u=1)),this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(c.align=this.labelAlign),o.forEach(function(e){var i=r[e],o=null==i?void 0:i.label,n=s.width,a={};o&&(o.attr(c),i.shortenLabel?i.shortenLabel():t&&!n&&"nowrap"!==s.whiteSpace&&(t<(o.textPxLength||0)||"DIV"===o.element.tagName)?o.css(tv(a,{width:""+t+"px",lineClamp:u})):(o.styles.width||o.textWidth||o.styles.lineClamp)&&!a.width&&!n&&o.css({width:"auto",lineClamp:0}),i.rotation=c.rotation)},this),this.tickRotCorr=i.rotCorr(d.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&td(this.min)&&td(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,r=this.opposite,n=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[n.align]),this.axisTitle=i.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(tD(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||n.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 is(this,t)},t.prototype.createGroups=function(){var t=this,e=this.axisParent,i=this.chart,o=this.coll,r=this.options,n=i.renderer,s=function(i,s,a){return n.g(i).attr({zIndex:a}).addClass("highcharts-".concat(o.toLowerCase()).concat(s," ")+(t.isRadial?"highcharts-radial-axis".concat(s," "):"")+(r.className||"")).add(e)};this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex).clip(this.clippable?i.plotClipInner:void 0),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))},t.prototype.shuffleTicks=function(){var t,e=this,i=this.ticks,o=null==(t=this.old)?void 0:t.names;if("category"===this.type&&o){o.forEach(function(t,r){var n=e.namesMap[t];td(n)&&r!==n&&(i[r]&&(i[r].pos=n,e.isDirty=!0),i[n]&&-1===e.names.indexOf(o[n])&&(i[n].pos=NaN))});var r=Object.values(i);Object.keys(i).forEach(function(t){delete i[t]}),r.forEach(function(t){isNaN(t.pos)?t.destroy():i[t.pos]=t})}},t.prototype.getOffset=function(){var t,e,i,o,r,n,s,a,h,l,c,d=this.chart,p=this.horiz,u=this.options,f=this.side,g=this.ticks,v=this.tickPositions,m=this.coll,y=this.hasData(),x=u.title,b=u.labels,k=tO(u.crossing),w=d.axisOffset,M=d.clipOffset,S=[-1,1,1,-1][f],T=this.tickRotCorr||{x:0,y:0},A=0,C=0,O=0,P=0;if(this.showAxis=s=y||u.showEmpty,this.staggerLines=this.horiz&&b.staggerLines||void 0,this.createGroups(),y||this.isLinked?(this.shuffleTicks(),v.forEach(this.generateTick.bind(this)),this.renderUnsquish(),A=Math.abs((T=this.tickRotCorr).x),c=this.reserveSpaceDefault=0===f||2===f||({1:"left",3:"right"})[f]===this.labelAlign,(null!=(i=null!=(e=null!=(t=b.reserveSpace)?t:!k&&null)?e:"center"===this.labelAlign||null)?i:c)&&v.forEach(function(t){P=Math.max(g[t].getLabelSize(),P)}),this.staggerLines&&(P*=this.staggerLines),!p&&tO(this.labelRotation)&&c&&(P-=A),this.labelOffset=P*(this.opposite?-1:1)):tz(g,function(t,e){t.destroy(),delete g[e]}),(null==x?void 0:x.text)&&!1!==x.enabled&&(this.addTitle(s),s&&!k&&!1!==x.reserveSpace&&(this.titleOffset=C=this.axisTitle.getBBox()[p?"height":"width"],O=td(a=x.offset)?0:tW(x.margin,p?5:10))),this.renderLine(),this.offset=S*(tO(u.offset)?u.offset:w[f]?w[f]+(u.margin||0):0),l=0===f?-this.labelMetrics().h:2===f?T.y:0,h=Math.abs(P)+O,P&&(h-=l,h+=S*(p?null!=(o=b.y)?o:T.y+S*b.distance:null!=(r=b.x)?r:c?S*(b.distance-A):T.x+S*b.distance),!p&&!c&&"center"===this.labelAlign&&tO(this.labelRotation)&&(h+=A)),this.axisTitleMargin=null!=a?a:h,this.maxLabelDimensions=null==(n=this.getMaxLabelDimensions)?void 0:n.call(this,g,v),"colorAxis"!==m&&M){var L=this.tickSize("tick");w[f]=Math.max(w[f],(this.axisTitleMargin||0)+C+S*this.offset,h,(null==v?void 0:v.length)&&L?L[0]+S*this.offset:0);var E=!this.axisLine||u.offset?0:this.axisLine.strokeWidth()/2;M[f]=Math.max(M[f],E)}ty(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,r=this.horiz,n=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",r?this.left:n,r?s:this.top],["L",r?e.chartWidth-this.right:n,r?s:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){var t=this.chart,e=this.offset,i=this.options;this.axisLine||(this.axisLine=t.renderer.path().addClass("highcharts-axis-line").attr(t.styledMode?{}:{stroke:i.lineColor,"stroke-width":i.lineWidth,zIndex:7}).clip(this.clippable&&(void 0===e?0:e)<=0?t.plotClipOuter:void 0).add(this.axisGroup))},t.prototype.getTitlePosition=function(t){var e=this.horiz,i=this.left,o=this.top,r=this.len,n=this.options.title,s=e?i:o,a=this.opposite,h=this.offset,l=n.x,c=n.y,d=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-d.h-1,0):0,u={low:s+(e?0:r),middle:s+r/2,high:s+(e?r:0)}[n.align],f=(e?o+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,d.f,-p][this.side],g={x:e?u+l:f+(a?this.width:0)+h+l,y:e?f+c-(a?this.height:0)+h:u+c};return ty(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new is(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,r=this.isLinked,n=this.ticks;(!r||t>=this.min&&t<=this.max||(null==(o=this.grid)?void 0:o.isColumn))&&(n[t]||(n[t]=new is(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,r=i.logarithmic,n=o.renderer,s=i.options,a=i.isLinked,h=i.tickPositions,l=i.axisTitle,c=i.ticks,d=i.minorTicks,p=i.alternateBands,u=s.stackLabels,f=s.alternateGridColor,g=s.crossing,v=i.tickmarkOffset,m=i.axisLine,y=i.showAxis,x=ea(n.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[c,d,p].forEach(function(t){tz(t,function(t){t.isActive=!1})}),tO(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],k=[1,-1,-1,1][this.side];if(b){var w=b.toPixels(g,!0);i.horiz&&(w=b.len-w),i.offset=k*w}}if(i.hasData()||a){var M=i.chart.hasRendered&&i.old&&tO(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,M)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,M)}),v&&(0===i.min||i.single)&&(c[-1]||(c[-1]=new is(i,-1,null,!0)),c[-1].render(-1))),f&&h.forEach(function(n,s){e=void 0!==h[s+1]?h[s+1]+v:i.max-v,s%2==0&&n<i.max&&e<=i.max+(o.polar?-v:v)&&(p[n]||(p[n]=new $.PlotLineOrBand(i,{})),t=n+v,p[n].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},p[n].render(),p[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[c,d,p].forEach(function(t){var e=[],i=x.duration;tz(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),tU(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)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),(null==u?void 0:u.enabled)&&i.stacking&&i.stacking.renderStackTotals(),this.old||this.saveOld(),i.isDirty=!1,ty(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.saveOld=function(){this.old=tO(this.min)?{len:this.len,max:this.max,min:this.min,names:this.names.slice(),transA:this.transA,userMax:this.userMax,userMin:this.userMin}:void 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(ty(this,"destroy",{keepEvents:t}),t||tY(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){tp(t)}),i)for(var r=i.length;r--;)i[r].destroy();for(var n in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();tz(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var i,o,r,n,s,a,h=this,l=this.crosshair,c=null==(i=null==l?void 0:l.snap)||i,d=this.chart,p=this.cross;if(ty(this,"drawCrosshair",{e:t,point:e}),t||(t=null==(o=this.cross)?void 0:o.e),l&&!1!==(td(e)||!c)){if(clearTimeout(this.crossShowTimer),c?td(e)&&(n=tW("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),td(n)&&(a={value:e&&(this.isXAxis?e.x:tW(e.stackY,e.y)),translatedValue:n},d.polar&&tv(a,{isCrosshair:!0,chartX:null==t?void 0:t.chartX,chartY:null==t?void 0:t.chartY,point:e}),r=this.getPlotLinePath(a)||null),!td(r))return void this.hideCrosshair();s=this.categories&&!this.isRadial,this.crossShowTimer=tU(function(){var e=h.cross;e||(h.cross=e=d.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(l.className||"")).attr({zIndex:tW(l.zIndex,2)}).clip(!1===l.clip?void 0:d.plotClipInner).add(),!d.styledMode&&(e.attr({stroke:l.color||(s?il("var(--highcharts-highlight-color-20)").setOpacity(.25).get():"var(--highcharts-neutral-color-20)"),"stroke-width":tW(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&e.attr({dashstyle:l.dashStyle}))),e.show().animate({d:r},ea(null==l?void 0:l.animation)),s&&!l.width&&e.attr({"stroke-width":h.transA}),h.cross&&(h.cross.e=t)},(!p||"hidden"===p.attr("visibility"))&&l.showDelay||0)}else this.hideCrosshair();ty(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),ty(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=tD(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,tW(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);tg(e.axes,this),tg(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,tW(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,ti(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o,r=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],n=r[r.length-1],s=tJ[n[0]],a=n[1];for(i=0;i<r.length;i++)if(s=tJ[(n=r[i])[0]],a=n[1],r[i+1]){var h=(s*a[a.length-1]+tJ[r[i+1][0]])/2;if(t<=h){o=h/t;break}}s===tJ.year&&t<5*s&&(a=[1,2,5]);var l=tB(t/s,a,"year"===n[0]?Math.max(tk(t/s),1):1);return{unitRange:s,count:l,unitName:n[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}(z||(z={}));var ig=z;!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"),ti(t,"afterSetType",e),ti(t,"afterInit",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,o){var r=this.axis,n=r.len,s=r.options,a=[];if(o||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=r.getLinearTickPositions(t,e,i);else if(t>=.08){var h=Math.floor(e),l=void 0,c=void 0,d=void 0,p=void 0,u=void 0,f=void 0,g=void 0;for(l=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],c=h;c<i+1&&!g;c++)for(d=0,p=l.length;d<p&&!g;d++)(u=this.log2lin(this.lin2log(c)*l[d]))>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?r.getMinorTickInterval():s.tickInterval,x=s.tickPixelInterval/(o?5:1),b=o?n/r.tickPositions.length:n;t=tB(t=tW("auto"===y?null:y,this.minorAutoInterval,(m-v)*x/(b||1))),a=r.getLinearTickPositions(t,v,m).map(this.log2lin),o||(this.minorAutoInterval=t/5)}return o||(r.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}(R||(R={}));var iv=R;!function(t){var e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){var o=this,r=this.userOptions,n=new e(this,t);if(this.visible&&(n=n.render()),n){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),i){var s=r[i]||[];s.push(t),r[i]=s}this.plotLinesAndBands.push(n)}return n}function r(t){return this.addPlotBandOrLine(t,"plotLines")}function n(t,e,i){i=i||this.options;var o,r,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],a=this.horiz,h=!tO(this.min)||!tO(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,l=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),c=1;if(l&&n)for(h&&(r=l.toString()===n.toString(),c=0),o=0;o<l.length;o+=2){var d=l[o],p=l[o+1],u=n[o],f=n[o+1];("M"===d[0]||"L"===d[0])&&("M"===p[0]||"L"===p[0])&&("M"===u[0]||"L"===u[0])&&("M"===f[0]||"L"===f[0])&&(a&&u[1]===d[1]?(u[1]+=c,f[1]+=c):a||u[2]!==d[2]||(u[2]+=c,f[2]+=c),s.push(["M",d[1],d[2]],["L",p[1],p[2]],["L",f[1],f[2]],["L",u[1],u[2]],["Z"])),s.isFlat=r}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 r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){var i;for(r=e.length;r--;)(null==(i=e[r])?void 0:i.id)===t&&tg(e,e[r])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){var c=l.prototype;return c.addPlotBand||(e=t,tv(c,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:o,getPlotBandPath:n,removePlotBand:s,removePlotLine:h,removePlotBandOrLine:a})),l}}(N||(N={}));var im=N,iy=function(){return(iy=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},ix=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return ti(e,"afterInit",function(){var t=this;this.labelCollectors.push(function(){for(var e,i=[],o=0,r=t.axes;o<r.length;o++)for(var n=r[o],s=0,a=n.plotLinesAndBands;s<a.length;s++){var h=a[s],l=h.label,c=h.options;!l||(null==(e=null==c?void 0:c.label)?void 0:e.allowOverlap)||i.push(l)}return i})}),im.compose(t,i)},t.prototype.render=function(){var t=this;ty(this,"render");var e,i,o,r,n=this.axis,s=this.options,a=n.chart,h=n.horiz,l=n.logarithmic,c=s.color,d=s.events,p=s.zIndex,u=void 0===p?0:p,f=n.chart,g=f.renderer,v=f.time,m={},y=v.parse(s.to),x=v.parse(s.from),b=v.parse(s.value),k=s.borderWidth,w=s.label,M=this.label,S=this.svgElem,T=[],A=td(x)&&td(y),C=td(b),O=!S,P={class:"highcharts-plot-"+(A?"band ":"line ")+(s.className||"")},L=A?"bands":"lines";if(!a.styledMode&&(C?(P.stroke=c||"var(--highcharts-neutral-color-40)",P["stroke-width"]=tW(s.width,1),s.dashStyle&&(P.dashstyle=s.dashStyle)):A&&(P.fill=c||"var(--highcharts-highlight-color-10)",k&&(P.stroke=s.borderColor,P["stroke-width"]=k))),m.zIndex=u,L+="-"+u,(r=n.plotLinesAndBandsGroups[L])||(n.plotLinesAndBandsGroups[L]=r=g.g("plot-"+L).clip(a.plotClipOuter).attr(m).add()),S||(this.svgElem=S=g.path().attr(P).add(r)),td(b))T=n.getPlotLinePath({value:null!=(e=null==l?void 0:l.log2lin(b))?e:b,lineWidth:S.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(td(x)&&td(y)))return;T=n.getPlotBandPath(null!=(i=null==l?void 0:l.log2lin(x))?i:x,null!=(o=null==l?void 0:l.log2lin(y))?o:y,s)}return!this.eventsAdded&&d&&(tz(d,function(e,i){null==S||S.on(i,function(e){d[i].apply(t,[e,t])})}),this.eventsAdded=!0),(O||!S.d)&&(null==T?void 0:T.length)?S.attr({d:T}):S&&(T?(S.show(),S.animate({d:T})):S.d&&(S.hide(),M&&(this.label=M=M.destroy()))),w&&(td(w.text)||td(w.formatter))&&(null==T?void 0:T.length)&&n.width>0&&n.height>0&&!T.isFlat?(w=tD(iy({align:h&&A?"center":void 0,x:h?!A&&4:10,verticalAlign:!h&&A?"middle":void 0,y:h?A?16:10:A?6:-4,rotation:h&&!A?90:0},A?{inside:!0}:{}),w),this.renderLabel(w,T,A,u)):M&&M.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var r,n,s,a=this.axis,h=a.chart.renderer,l=t.inside,c=this.label;c||(this.label=c=h.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||c.css(tD({color:null==(n=null==(r=a.chart.options.title)?void 0:r.style)?void 0:n.color,fontSize:"0.8em",textOverflow:i&&!l?"":"ellipsis"},t.style)),c.add());var d=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=to(d),f=to(p),g=tr(d)-u;c.align(t,!1,{x:u,y:f,width:g,height:tr(p)-f}),c.alignAttr.y-=h.fontMetrics(c).b,(!c.alignValue||"left"===c.alignValue||td(l))&&c.css({width:((null==(s=t.style)?void 0:s.width)||(i&&l?g:90===c.rotation?a.height-(c.alignAttr.y-a.top):(t.clip?a.width+a.left:a.chart.chartWidth)-c.alignAttr.x))+"px"}),c.show(!0)},t.prototype.getLabelText=function(t){return td(t.formatter)?t.formatter.call(this,this):t.text},t.prototype.destroy=function(){tg(this.axis.plotLinesAndBands,this),delete this.axis,tp(this)},t}(),ib=eM.format,ik=$.composed,iw=$.dateFormats,iM=$.doc,iS=$.isSafari,iT=eS.distribute,iA=function(t){clearTimeout(t.hideTimer),clearTimeout(t.showTimer)},iC=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||tj(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(),tu(this.container)),tT(this.hideTimer),iA(this)},t.prototype.getAnchor=function(t,e){var i,o,r=this.chart,n=this.pointer,s=r.inverted,a=r.plotTop,h=r.plotLeft;if((null==(i=(t=tj(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=n.normalize(e)),o=[e.chartX-h,e.chartY-a];else if(t[0].tooltipPos)o=t[0].tooltipPos;else{var l=0,c=0;t.forEach(function(t){var e=t.pos(!0);e&&(l+=e[0],c+=e[1])}),l/=t.length,c/=t.length,this.shared&&t.length>1&&e&&(s?l=e.chartX:c=e.chartY),o=[l-h,c-a]}var d={point:t[0],ret:o};return ty(this,"getAnchor",d),d.ret.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=this.options,r=t.series,n=r.options;return[o.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+tW(t.colorIndex,r.colorIndex),null==n?void 0:n.className].filter(tP).join(" ")},t.prototype.getLabel=function(t){var e,i,o=void 0===t?{anchorX:0,anchorY:0}:t,r=o.anchorX,n=o.anchorY,s=this,a=this.chart.styledMode,h=this.options,l=this.split&&this.allowShared,c=this.container,d=this.chart.renderer;if(this.label){var p=!this.label.hasClass("highcharts-label");(!l&&p||l&&!p)&&this.destroy()}if(!this.label){if(this.outside){var u=this.chart,f=u.options.chart.style;this.container=c=$.doc.createElement("div"),c.className="highcharts-container highcharts-tooltip-container "+(u.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),c.dataset.highchartsChart=u.index.toString(),tc(c,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(h.style.zIndex||0,((null==f?void 0:f.zIndex)||0)+3)}),this.renderer=d=new e9(c,0,0,f,void 0,void 0,d.styledMode)}if(l?this.label=d.g("tooltip"):(this.label=d.label("",r,n,h.shape||"callout",void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),a||this.label.attr({fill:h.backgroundColor,"stroke-width":null!=(e=h.borderWidth)?e:+!h.fixed}).css(h.style).css({pointerEvents:h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),s.outside){var g=this.label;[g.xSetter,g.ySetter].forEach(function(t,e){g[e?"ySetter":"xSetter"]=function(i){t.call(g,s.distance),g[e?"y":"x"]=i,c&&(c.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(null!=(i=h.shadow)?i:!h.fixed).add()}return c&&!c.parentElement&&$.doc.body.appendChild(c),this.label},t.prototype.getPlayingField=function(){var t=iM.body,e=iM.documentElement,i=this.chart,o=this.distance,r=this.outside;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*o-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}},t.prototype.getPosition=function(t,e,i){var o,r,n,s=this.distance,a=this.chart,h=this.outside,l=this.pointer,c=a.inverted,d=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=c&&i.h||0,b=this.getPlayingField(),k=b.height,w=b.width,M=l.getChartPosition(),S=function(t){return t*M.scaleX},T=function(t){return t*M.scaleY},A=function(i){var o="x"===i;return[i,o?w:k,o?t:e].concat(h?[o?S(t):T(e),o?M.left-s+S(g+d):M.top-s+T(m+p),0,o?w:k]:[o?t:e,o?g+d:m+p,o?d:p,o?d+a.plotWidth:p+a.plotHeight])},C=A("y"),O=A("x"),P=!!i.negative;!u&&(null==(r=null==(o=a.hoverSeries)?void 0:o.yAxis)?void 0:r.reversed)&&(P=!P);var L=!this.followPointer&&tW(i.ttBelow,!u&&!c===P),E=function(t,e,i,o,r,n,a){var l=h?"y"===t?T(s):S(s):s,c=(i-o)/2,d=o<r-s,p=r+s+o<e,u=r-l-i+c,f=r+l-c;if(L&&p)y[t]=f;else if(!L&&d)y[t]=u;else if(d)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return y[t]=0,!1;y[t]=Math.max(n,f+x+i>e?f:f+x)}},I=function(t,e,i,o,r){if(r<s||r>e-s)return!1;r<i/2?y[t]=1:r>e-o/2?y[t]=e-o-2:y[t]=r-i/2},D=function(t){var e;C=(e=[O,C])[0],O=e[1],n=t},B=function(){!1!==E.apply(0,C)?!1!==I.apply(0,O)||n||(D(!0),B()):n?y.x=y.y=0:(D(!0),B())};return(c&&!u||this.len>1)&&D(),B(),h&&(y.x-=M.left,y.y-=M.top),y},t.prototype.getFixedPosition=function(t,e,i){var o,r=i.series,n=this.chart,s=this.options,a=this.split,h=s.position,l=h.relativeTo,c=s.shared||(null==(o=null==r?void 0:r.yAxis)?void 0:o.isRadial)&&("pane"===l||!l)?"plotBox":l,d="chart"===c?n.renderer:n[c]||n.getClipBox(r,!0);return{x:d.x+(d.width-t)*tx(h.align)+h.x,y:d.y+(d.height-e)*tx(h.verticalAlign)+(!a&&h.y||0)}},t.prototype.hide=function(t){var e=this;iA(this),t=tW(t,this.options.hideDelay),this.isHidden||(this.hideTimer=tU(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=tW(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 r=this,n=this.followPointer,s=this.options,a=ea(!n&&!this.isHidden&&!s.fixed&&s.animation),h=n||(this.len||0)>1,l={x:t,y:e};h?l.anchorX=l.anchorY=NaN:(l.anchorX=i,l.anchorY=o),a.step=function(){return r.drawTracker()},this.getLabel().animate(l,a)},t.prototype.refresh=function(t,e){var i=this,o=this,r=this.chart,n=this.options,s=this.pointer,a=this.shared,h=tj(t),l=h[0],c=n.format,d=n.formatter||o.defaultFormatter,p=r.styledMode,u=o.allowShared;if(n.enabled&&l.series){iA(this),o.allowShared=!(!tL(t)&&t.series&&t.series.noSharedTooltip),u=u&&!o.allowShared,o.followPointer=!o.split&&l.series.tooltipOptions.followPointer;var f=o.getAnchor(t,e),g=f[0],v=f[1];a&&o.allowShared&&(s.applyInactiveState(h),h.forEach(function(t){return t.setState("hover")}),l.points=h),this.len=h.length;var m=tP(c)?ib(c,l,r):d.call(l,o,l);l.points=void 0;var y=l.series;this.distance=tW(y.tooltipOptions.distance,16),!1===m?this.hide():this.showTimer=tU(function(){if(o.split&&o.allowShared)o.renderSplit(m,h);else{var t=g,a=v;if(e&&s.isDirectTouch&&(t=e.chartX-r.plotLeft,a=e.chartY-r.plotTop),!(r.polar||!1===y.options.clip||h.some(function(e){return s.isDirectTouch||e.series.shouldShowTooltip(t,a)})))return void o.hide();var c=o.getLabel(u&&o.tt||{});(!n.style.width||p)&&c.css({width:(i.outside?i.getPlayingField():r.spacingBox).width-2*n.padding+"px"}),c.attr({class:o.getClassName(l),text:tL(m)?m.join(""):m}),i.outside&&c.attr({x:ts(c.x||0,0,i.getPlayingField().width-(c.width||0)-1)}),p||c.attr({stroke:n.borderColor||l.color||y.color||"var(--highcharts-neutral-color-60)"}),o.updatePosition({plotX:g,plotY:v,negative:l.negative,ttBelow:l.ttBelow,series:y,h:f[2]||0})}o.isHidden&&o.label&&o.label.attr({opacity:1}).show(),o.isHidden=!1},o.isHidden&&n.showDelay||0),ty(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o,r=this,n=this,s=n.chart,a=n.chart,h=a.chartWidth,l=a.chartHeight,c=a.plotHeight,d=a.plotLeft,p=a.plotTop,u=a.scrollablePixelsY,f=a.scrollablePixelsX,g=a.styledMode,v=n.distance,m=n.options,y=n.options,x=y.fixed,b=y.position,k=y.positioner,w=n.pointer,M=(null==(i=s.scrollablePlotArea)?void 0:i.scrollingContainer)||{},S=M.scrollLeft,T=void 0===S?0:S,A=M.scrollTop,C=void 0===A?0:A,O=n.outside&&"number"!=typeof f?iM.documentElement.getBoundingClientRect():{left:T,right:T+h,top:C,bottom:C+l},P=n.getLabel(),L=this.renderer||s.renderer,E=!!(null==(o=s.xAxis[0])?void 0:o.opposite),I=w.getChartPosition(),D=I.left,B=I.top,z=k||x,R=p+C,N=0,W=c-(void 0===u?0:u),H=function(t,e,i,o,r,s){if(void 0===r&&(r=[0,0]),void 0===s&&(s=!0),i.isHeader)h=E?0:W,a=ts(r[0]-t/2,O.left,O.right-t-(n.outside?D:0));else if(x&&i){var a,h,l=n.getFixedPosition(t,e,i);a=l.x,h=l.y-R}else h=r[1]-R,a=ts(a=s?r[0]-t-v:r[0]+v,s?a:O.left,O.right);return{x:a,y:h}};tP(t)&&(t=[!1,t]);var X=t.slice(0,e.length+1).reduce(function(t,i,o){if(!1!==i&&""!==i){var r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:c,series:{}},s=r.isHeader,a=s?n:r.series,h=a.tt=function(t,e,i){var o,r=t,s=e.isHeader,a=e.series,h=a.tooltipOptions||m,l=s?tD(h,h.header):h;if(!r){var c={padding:h.padding,r:h.borderRadius};g||(c.fill=l.backgroundColor,c["stroke-width"]=null!=(o=l.borderWidth)?o:+!h.fixed),r=L.label("",0,0,l.shape||(x&&!s?"rect":"callout"),void 0,void 0,h.useHTML).addClass(n.getClassName(e,!0,s)).attr(c).add(P)}return r.isActive=!0,g||r.css(l.style),r.attr({text:i}),g||r.attr({stroke:l.borderColor||e.color||a.color||"var(--highcharts-neutral-color-80)"}),r}(a.tt,r,i.toString()),l=h.getBBox(),u=l.width+h.strokeWidth();s&&(N=l.height+m.header.distance,W+=N,E&&(R-=N));var f=function(t){var e,i,o=t.isHeader,r=t.plotX,n=void 0===r?0:r,s=t.plotY,a=void 0===s?0:s,h=t.series;if(o)e=Math.max(d+n,d),i=p+c/2;else{var l=h.xAxis,u=h.yAxis;e=l.pos+ts(n,-v,l.len+v),h.shouldShowTooltip(0,u.pos-p+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=ts(e,O.left-v,O.right+v),anchorY:i}}(r),y=f.anchorX,b=f.anchorY;if("number"==typeof b){var w=l.height+1,M=(k||H).call(n,u,w,r,n,[y,b]);t.push({align:z?0:void 0,anchorX:y,anchorY:b,boxWidth:u,point:r,rank:tW(M.rank,+!!s),size:w,target:M.y,tt:h,x:M.x})}else h.isActive=!1}return t},[]);!z&&X.some(function(t){var e=(n.outside?D:0)+t.anchorX;return e<O.left&&e+t.boxWidth<O.right||e<D-O.left+t.boxWidth&&O.right-e>e})&&(X=X.map(function(t){var e=H.call(r,t.boxWidth,t.size,t.point,void 0,[t.anchorX,t.anchorY],!1),i=e.x;return tv(t,{target:e.y,x:i})})),n.cleanSplit(),iT(X,W);var G={left:D,right:D};X.forEach(function(t){var e=t.x,i=t.boxWidth;!t.isHeader&&(n.outside&&D+e<G.left&&(G.left=D+e),n.outside&&G.left+i>G.right&&(G.right=D+e))}),X.forEach(function(t){var e=t.x,i=t.anchorX,o=t.anchorY,r=t.pos,s=t.point.isHeader,a={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+R+(x&&b.y||0),anchorX:i,anchorY:o};if(n.outside&&e<i){var h=D-G.left;h>0&&(a.x=s?(G.right-G.left)/2:e+h,a.anchorX=i+h)}t.tt.attr(a)});var F=n.container,Y=n.outside,j=n.renderer;if(Y&&F&&j){var _=P.getBBox(),U=_.width,V=_.height,Z=_.x,K=_.y;j.setSize(U+Z,V+K,!1),F.style.left=G.left+"px",F.style.top=B+"px"}iS&&P.attr({opacity:1===P.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 r={x:0,y:0,width:0,height:0},n=this.getAnchor(o),s=i.getBBox();n[0]+=e.plotLeft-(i.translateX||0),n[1]+=e.plotTop-(i.translateY||0),r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=n[0]<0?Math.max(Math.abs(n[0]),s.width-n[0]):Math.max(Math.abs(n[0]),s.width),r.height=n[1]<0?Math.max(Math.abs(n[1]),s.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),s.height),t.tracker?t.tracker.attr(r):(t.tracker=i.renderer.rect(r).addClass("highcharts-tracker").add(i),ti(t.tracker.element,"mouseenter",function(){return iA(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,r=i.xAxis,n=null==r?void 0:r.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",h=o[e?"footerFormat":"headerFormat"];return ty(this,"headerFormatter",s,function(e){if(n&&!a&&tO(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a){if(tI(a)){var r=a;iw[0]=function(t){return i.chart.time.dateFormat(r,t)},a="%0"}(t.tooltipDateKeys||["key"]).forEach(function(t){h=h.replace(RegExp("point\\."+t+"([ \\)}])"),"(point.".concat(t,":").concat(a,")$1"))})}i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=ib(h,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,tD(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i,o,r=this.chart,n=this.container,s=this.distance,a=this.options,h=this.pointer,l=this.renderer,c=this.getLabel(),d=c.height,p=void 0===d?0:d,u=c.width,f=void 0===u?0:u,g=a.fixed,v=a.positioner,m=h.getChartPosition(),y=m.left,x=m.top,b=m.scaleX,k=m.scaleY,w=(v||g&&this.getFixedPosition||this.getPosition).call(this,f,p,t,this),M=$.doc,S=(t.plotX||0)+r.plotLeft,T=(t.plotY||0)+r.plotTop;if(l&&n){if(w.x+=y,w.y+=x,v||g){var A=(null==(e=r.scrollablePlotArea)?void 0:e.scrollingContainer)||{},C=A.scrollLeft,O=A.scrollTop;w.x+=void 0===C?0:C,w.y+=void 0===O?0:O}o=(null!=(i=a.borderWidth)?i:+!g)+2*s+2,l.setSize(ts(f+o,0,M.documentElement.clientWidth)-1,p+o,!1),(1!==b||1!==k)&&(tc(n,{transform:"scale(".concat(b,", ").concat(k,")")}),S*=b,T*=k),S+=y-w.x,T+=x-w.y}this.move(Math.round(w.x),Math.round(w.y||0),S,T)},t}();(p=iC||(iC={})).compose=function(t){tX(ik,"Core.Tooltip")&&ti(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new p(t,t.options.tooltip,this))})};var iO=iC,iP=eM.format,iL=function(){function t(t,e,i){var o,r,n,s;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!=this.id||(this.id=tQ()),this.resolveColor(),null!=this.dataLabelOnNull||(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=null!=(n=null==(r=null==(o=t.xAxis)?void 0:o.categories)?void 0:r[this.x])?n:this.x,this.key=null!=(s=this.name)?s:this.category,ty(this,"afterInit")}return t.prototype.applyOptions=function(e,i,o){var r=this.series,n=r.options.pointValKey||r.pointValKey;return tv(this,e=t.prototype.optionsToObject.call(this,e)),this.options?this.options=r.chart.options.chart.allowMutatingData?tv(this.options,e):tD(this.options,e):this.options=e,n&&(this.y=t.prototype.getNestedProperty.call(this,n)),tO(i)&&(this.x=i),o||(this.selected&&(this.state="select"),e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point"),this},t.prototype.getOrigin=function(t,e){var i,o=t.x,r=void 0===o?0:o,n=t.y,s=void 0===n?0:n;void 0===e&&(e={});var a=this.graphic,h=this.series;if(h.chart.inverted&&(null==a?void 0:a.parentGroup)&&!(null==(i=null==a?void 0:a.parentGroup)?void 0:i.rotation)){var l=this.pos(!1,r,s);l&&(r=l[0],s=l[1])}r-=(e.width||0)/2,s-=(e.height||0)/2;var c={x:r};return h.is("column")||this.plotHigh||(c.y=s),c},t.prototype.destroy=function(){var t;if(!this.condemned){var e=this,i=e.series,o=i.chart,r=o.hoverPoints,n=ea(e.series.chart.renderer.globalAnimation).duration,s=function(){for(var t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(tY(e),e.destroyElements()),e)delete e[t]};e.legendItem&&o.legend.destroyItem(e),r&&(e.setState(),tg(r,e),r.length||(o.hoverPoints=void 0)),e===o.hoverPoint&&e.onMouseOut(),n&&i.condemnedPoints?(i.condemnedPoints.push(this),null==(t=this.graphic)||t.addClass("highcharts-point-condemned"),setTimeout(s,n)):s(),o.pointCount--}this.condemned=!0},t.prototype.destroyElements=function(t){void 0===t&&(t={graphic:1,dataLabel:1});var e,i,o=this,r=[];for(t.graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)o[e=r[i]]&&(o[e]=o[e].destroy());["graphic","dataLabel"].forEach(function(e){var i=""+e+"s";t[e]&&o[i]&&(o[i].forEach(function(t){(null==t?void 0:t.element)&&t.destroy()}),delete o[i])})},t.prototype.firePointEvent=function(t,e,i){var o=this,r=this.series.options;o.manageEvent(t),"click"===t&&r.allowPointSelect&&(i=function(t){!o.condemned&&o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),ty(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.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?tw(t,this.options):this[t]},t.prototype.getZone=function(){var t,e=this.series,i=e.zones,o=e.zoneAxis||"y",r=0;for(t=i[0];this[o]>=t.value;)t=i[++r];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(tO(this.x)||this.x instanceof Date)&&tO(this.y)},t.prototype.optionsToObject=function(e){var i,o,r=this.series,n=r.options.keys,s=n||r.pointArrayMap||["y"],a=s.length,h={},l=0,c=0;if(tO(e)||null===e)h[s[0]]=e;else if(tL(e))for(!n&&e.length>a&&("string"==(o=typeof e[0])?(null==(i=r.xAxis)?void 0:i.dateTime)?h.x=r.chart.time.parse(e[0]):h[r.tupleKey||"name"]=e[0]:"number"===o&&(h.x=e[0]),l++);c<a;)n&&void 0===e[l]||(h[s[c]]=e[l]),l++,c++;else"object"==typeof e&&(h=e,e.dataLabels&&(r.hasDataLabels=function(){return!0}),e.marker&&(r._hasPointMarkers=!0));return(n||!r.options.data)&&Object.keys(h).forEach(function(e){e.indexOf(".")>0&&(t.prototype.setNestedProperty(h,h[e],e),delete h[e])}),h},t.prototype.pos=function(t,e,i){void 0===e&&(e=this.plotX),void 0===i&&(i=this.plotY);var o=this.series||{},r=o.chart,n=o.xAxis,s=o.yAxis,a=0,h=0;if(r&&tO(e)&&tO(i))return t&&(a=n?n.pos:r.plotLeft,h=s?s.pos:r.plotTop),r.inverted&&n&&s?[s.len-i+h,n.len-e+a]:[e+a,i+h]},t.prototype.resolveColor=function(){var t,e,i,o,r=this.options,n=this.series,s=n.chart,a=s.options.chart,h=s.styledMode,l=a.colorCount;if(delete this.nonZonedColor,n.options.colorByPoint){if(!h){var c=n.options.colors||s.options.colors;i=null==c?void 0:c[n.colorCounter],l=null==c?void 0:c.length}o=n.colorCounter,n.colorCounter++,n.colorCounter===l&&(n.colorCounter=0)}else h||(i=n.color),o=n.colorIndex;this.colorIndex=null!=(t=r.colorIndex)?t:o,this.color=null!=(e=r.color)?e:i},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,r){var n=r.length-1===o;return t[i]=n?e:tI(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,r=i.pointArrayMap,n=i.tooltipOptions,s=n.valueDecimals,a=void 0===s?"":s,h=n.valuePrefix,l=void 0===h?"":h,c=n.valueSuffix,d=void 0===c?"":c;return o.styledMode&&(t=(null==(e=o.tooltip)?void 0:e.styledModeFormat(t))||t),(void 0===r?["y"]:r).forEach(function(e){e="{point."+e,(l||d)&&(t=t.replace(RegExp(e+"}","g"),l+e+"}"+d)),t=t.replace(RegExp(e+"}","g"),e+":,."+a+"f}")}),iP(t,this,o)},t.prototype.update=function(t,e,i,o){void 0===e&&(e=!0);var r=this,n=r.series,s=r.graphic,a=n.chart,h=n.options,l=h.data;function c(){r.applyOptions(t);var o=s&&r.hasMockGraphic,c=r.index,d=null===r.y?!o:o;s&&d&&(r.graphic=s.destroy(),delete r.hasMockGraphic),tI(t,!0)&&((null==s?void 0:s.element)&&(null==t?void 0:t.marker)&&void 0!==t.marker.symbol&&(r.graphic=s.destroy()),(null==t?void 0:t.dataLabels)&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy()));var p=r.optionsToObject(t);!n.hasProcessedDataTable&&(n.dataTable.setRow(p,c),l&&(l[c]=tI(l[c],!0)||tI(t,!0)?r.options:null!=t?t:l[c])),n.isDirty=n.isDirtyData=!0,"x"in p&&(tP(p.x)&&(n.xColumnIsNumbers=void 0),r.x=n.getX(p.x),r.isNull=r.isValid&&!r.isValid(),n.xColumn&&(n.xColumn[c]=r.x)),!n.fixedBox&&n.hasCartesianSeries&&(a.isDirtyBox=!0),"point"===h.legendType&&(a.isDirtyLegend=!0),e&&a.redraw(i)}!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,r=o.chart;t=tW(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data&&(o.options.data[o.data.indexOf(i)]=i.options),i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){var e=t.series,o=e.options;t.selected&&t!==i&&(t.selected=t.options.selected=!1,o.data&&(o.data[e.data.indexOf(t)]=t.options),t.setState(r.hoverPoints&&o.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(){if(this.series){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,r,n,s,a,h=null==(e=tD(this.series.options.point,this.options).events)?void 0:e[t];!tE(h)||(null==(i=this.hcEvents)?void 0:i[t])&&(null==(r=null==(o=this.hcEvents)?void 0:o[t])?void 0:r.map(function(t){return t.fn}).indexOf(h))!==-1?this.importedUserEvent&&!h&&(null==(s=this.hcEvents)?void 0:s[t])&&(null==(a=this.hcEvents)?void 0:a[t].userEvent)&&(tY(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(n=this.importedUserEvent)||n.call(this),this.importedUserEvent=ti(this,t,h),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,r,n,s,a,h=this.series,l=this.state,c=h.options.states[t||"normal"]||{},d=t8.plotOptions[h.type].marker&&h.options.marker,p=d&&!1===d.enabled,u=(null==(i=null==d?void 0:d.states)?void 0:i[t||"normal"])||{},f=!1===u.enabled,g=this.marker||{},v=h.chart,m=d&&h.markerAttribs,y=h.halo,x=h.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==c.enabled&&(!t||!f&&(!p||!1!==u.enabled))&&(!t||!g.states||!g.states[t]||!1!==g.states[t].enabled)){if(this.state=t,m&&(r=h.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),t&&this.graphic.addClass("highcharts-point-"+t),!v.styledMode){n=h.pointAttribs(this,t),s=tW(v.options.chart.animation,c.animation);var b=n.opacity;h.options.inactiveOtherPoints&&tO(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(n,s)}r&&this.graphic.animate(r,tW(v.options.chart.animation,u.animation,d.animation)),x&&x.hide()}else t&&u&&(a=g.symbol||h.symbol,x&&x.currentSymbol!==a&&(x=x.destroy()),r&&(x?x[e?"animate":"attr"]({x:r.x,y:r.y}):a&&(h.stateMarkerGraphic=x=v.renderer.symbol(a,r.x,r.y,r.width,r.height,tD(d,u)).add(h.markerGroup),x.currentSymbol=a)),!v.styledMode&&x&&"inactive"!==this.state&&x.attr(h.pointAttribs(this,t))),x&&(x[t&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));var k=c.halo,w=this.graphic||x,M=(null==w?void 0:w.visibility)||"inherit";(null==k?void 0:k.size)&&w&&"hidden"!==M&&!this.isCluster?(y||(h.halo=y=v.renderer.path().add(w.parentGroup)),y.show()[e?"animate":"attr"]({d:this.haloPath(k.size)}),y.attr({class:"highcharts-halo highcharts-color-"+tW(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),y.point=this,v.styledMode||y.attr(tv({fill:this.color||h.color,"fill-opacity":k.opacity},ev.filterUserAttributes(k.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),ty(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(tl(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),iE=function(){return(iE=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iI=$.charts,iD=$.composed,iB=$.isTouchDevice,iz=function(t,e){return!td(e)||t[""+e+"Key"]},iR=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(),ty(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i,o=this;void 0===t&&(t=[]);var r=[];t.forEach(function(t){var e=t.series;r.push(e),e.linkedParent&&r.push(e.linkedParent),e.linkedSeries&&r.push.apply(r,e.linkedSeries),e.navigatorSeries&&r.push(e.navigatorSeries),e.boosted&&e.markerGroup&&r.push.apply(r,o.chart.series.filter(function(t){return t.markerGroup===e.markerGroup}))});for(var n=0,s=this.chart.series;n<s.length;n++){var a=s[n],h=a.options;(null==(i=null==(e=h.states)?void 0:e.inactive)?void 0:i.enabled)!==!1&&(-1===r.indexOf(a)?a.setState("inactive",!0):h.inactiveOtherPoints&&a.setAllPointsToState("inactive"))}},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!$.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),tz(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 ty(this,"getSelectionMarkerAttrs",o,function(o){var r,n=i.chart,s=i.zoomHor,a=i.zoomVert,h=n.mouseDownX,l=void 0===h?0:h,c=n.mouseDownY,d=void 0===c?0:c,p=o.attrs;p.x=n.plotLeft,p.y=n.plotTop,p.width=s?1:n.plotWidth,p.height=a?1:n.plotHeight,s&&(p.width=Math.max(1,Math.abs(r=t-l)),p.x=(r>0?0:r)+l),a&&(p.height=Math.max(1,Math.abs(r=e-d)),p.y=(r>0?0:r)+d)}),o},t.prototype.drag=function(t){var e,i=this.chart,o=i.mouseDownX,r=void 0===o?0:o,n=i.mouseDownY,s=void 0===n?0:n,a=i.options.chart,h=a.panning,l=a.panKey,c=a.selectionMarkerFill,d=i.plotLeft,p=i.plotTop,u=i.plotWidth,f=i.plotHeight,g=tI(h)?h.enabled:h,v=l&&t[""+l+"Key"],m=t.chartX,y=t.chartY,x=this.selectionMarker;if((!x||!x.touch)&&(m<d?m=d:m>d+u&&(m=d+u),y<p?y=p:y>p+f&&(y=p+f),this.hasDragged=Math.sqrt(Math.pow(r-m,2)+Math.pow(s-y,2)),this.hasDragged>10)){e=i.isInsidePlot(r-d,s-p,{visiblePlotOnly:!0});var b=this.getSelectionMarkerAttrs(m,y),k=b.shapeType,w=b.attrs;this.hasZoom&&e&&!v&&!x&&(this.selectionMarker=x=i.renderer[k](),x.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||x.attr({fill:c})),x&&x.attr(w),e&&!x&&g&&iz(t,l)&&i.pan(t,h)}},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 ty(this,"getSelectionBox",e),e.result},t.prototype.drop=function(t){for(var e,i=this,o=this.chart,r=this.selectionMarker,n=0,s=o.axes;n<s.length;n++){var a=s[n];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(),r&&t){if(this.hasDragged){var h=this.getSelectionBox(r);o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&("xAxis"===t.coll&&i.zoomX||"yAxis"===t.coll&&i.zoomY)}),selection:iE({originalEvent:t,xAxis:[],yAxis:[]},h),from:h})}tO(o.index)&&(this.selectionMarker=r.destroy())}o&&tO(o.index)&&(tc(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 r,n,s,a,h,l,c=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),d=t.searchPoint(i,c);tI(d,!0)&&d.series&&(!tI(o,!0)||(a=(r=o).distX-d.distX,h=r.dist-d.dist,l=(null==(n=d.series.group)?void 0:n.zIndex)-(null==(s=r.series.group)?void 0:s.zIndex),(0!==a&&e?a:0!==h?h:0!==l?l:r.series.index>d.series.index?-1:1)>0))&&(o=d)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,n=r.xAxis,s=r.yAxis,a=t.shapeArgs;if(n&&s){var h=null!=(o=null!=(i=t.clientX)?i:t.plotX)?o:0,l=t.plotY||0;return t.isNode&&a&&tO(a.x)&&tO(a.y)&&(h=a.x,l=a.y),e?{chartX:s.len+s.pos-l,chartY:n.len+n.pos-h}:{chartX:h+n.pos,chartY:l+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=tR(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 r=o[i];e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}return e},t.prototype.getHoverData=function(t,e,i,o,r,n){var s,a=[],h=function(t){return t.visible&&!(!r&&t.directTouch)&&tW(t.options.enableMouseTracking,!0)},l=e,c={chartX:n?n.chartX:void 0,chartY:n?n.chartY:void 0,shared:r};ty(this,"beforeGetHoverData",c),s=l&&!l.stickyTracking?[l]:i.filter(function(t){return t.stickyTracking&&(c.filter||h)(t)});var d=o&&t||!n?t:this.findNearestKDPoint(s,r,n);return l=null==d?void 0:d.series,d&&(r&&!l.noSharedTooltip?(s=i.filter(function(t){return c.filter?c.filter(t):h(t)&&!t.noSharedTooltip})).forEach(function(t){var e,i=null==(e=t.options)?void 0:e.nullInteraction,o=tS(t.points,function(t){return t.x===d.x&&(!t.isNull||!!i)});tI(o)&&(t.boosted&&t.boost&&(o=t.boost.getPoint(o)),a.push(o))}):a.push(d)),ty(this,"afterGetHoverData",c={hoverPoint:d}),{hoverPoint:c.hoverPoint,hoverSeries:l,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=tn(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):tW(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var r=o.pageX-e.left,n=o.pageY-e.top;return tv(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(n/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,o=this.normalize(t),r=e.plotLeft,n=e.plotTop;!e.cancelClick&&(i&&this.inClass(o.target,"highcharts-tracker")?(ty(i.series,"click",tv(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(tv(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-r,o.chartY-n,{visiblePlotOnly:!0})&&ty(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),$.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=(iI[tW(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,r=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===i.mouseIsDown||this.touchSelect(r))&&this.drag(r),!(!(null==(e=i.exporting)?void 0:e.openMenu)&&(this.inClass(r.target,"highcharts-tracker")||i.isInsidePlot(r.chartX-i.plotLeft,r.chartY-i.plotTop,{visiblePlotOnly:!0})))||(null==o?void 0:o.shouldStickOnContact(r))||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},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,r=this.normalize(t,o);!o||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||(null==i?void 0:i.shouldStickOnContact(r))||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(i=null==e?void 0:e.preventDefault)||i.call(e)),null==(r=null==(o=iI[tW(t.hoverChartIndex,-1)])?void 0:o.pointer)||r.drop(e)},t.prototype.pinch=function(t){var e,i,o=this,r=this,n=r.chart,s=r.hasZoom,a=r.lastTouches,h=[].map.call(t.touches||[],function(t){return r.normalize(t)}),l=h.length,c=1===l&&(r.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||r.runChartClick),d=1===l&&(null==(i=null==(e=n.tooltip)?void 0:e.options.followTouchMove)||i);l>1?r.initiated=!0:d&&(r.initiated=!1),s&&r.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(r.pinchDown=h,r.res=!0,n.mouseDownX=t.chartX):d?this.runPointActions(r.normalize(t)):a&&(ty(n,"touchpan",{originalEvent:t,touches:h},function(){var e=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}};n.transform({axes:n.axes.filter(function(t){return t.zoomEnabled&&(o.zoomHor&&t.horiz||o.zoomVert&&!t.horiz)}),to:e(h),from:e(a),trigger:t.type})}),r.res&&(r.res=!1,this.reset(!1,0))),r.lastTouches=h},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,r=i.hoverPoint,n=i.hoverPoints,s=i.tooltip,a=(null==s?void 0:s.shared)?n:r;t&&a&&tj(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&tj(a).length&&(s.refresh(a),s.shared&&n?n.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))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),n&&n.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 r,n=this.chart,s=n.series,a=(null==(r=n.tooltip)?void 0:r.options.enabled)?n.tooltip:void 0,h=!!a&&a.shared,l=i||n.hoverPoint,c=(null==l?void 0:l.series)||n.hoverSeries,d=(!e||"touchmove"!==e.type)&&(!!i||(null==c?void 0:c.directTouch)&&this.isDirectTouch),p=this.getHoverData(l,c,s,d,h,e);l=p.hoverPoint,c=p.hoverSeries;var u=p.hoverPoints,f=(null==c?void 0:c.tooltipOptions.followPointer)&&!c.tooltipOptions.split,g=h&&c&&!c.noSharedTooltip;if(l&&(o||l!==n.hoverPoint||(null==a?void 0:a.isHidden))){if((n.hoverPoints||[]).forEach(function(t){-1===u.indexOf(t)&&t.setState()}),n.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!l.series)return;n.hoverPoints=u,n.hoverPoint=l,l.firePointEvent("mouseOver",void 0,function(){a&&l&&a.refresh(g?u:l,e)})}else if(f&&a&&!a.isHidden){var v=a.getAnchor([{}],e);n.isInsidePlot(v[0],v[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:v[0],plotY:v[1]})}this.unDocMouseMove||(this.unDocMouseMove=ti(n.container.ownerDocument,"mousemove",function(e){var i,o,r;return null==(r=null==(o=iI[null!=(i=t.hoverChartIndex)?i:-1])?void 0:o.pointer)?void 0:r.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){var i,o,r,s=null==(o=null==(i=t.crosshair)?void 0:i.snap)||o;s&&((r=n.hoverPoint)&&r.series[t.coll]===t||(r=tS(u,function(e){var i;return(null==(i=e.series)?void 0:i[t.coll])===t}))),r||!s?t.drawCrosshair(e,r):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument,r=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(ti(i,"mouseenter",this.onContainerMouseEnter.bind(this)),ti(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:ti(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var n=r(this.chart.renderTo);n&&"BODY"!==n.tagName;)this.eventsToUnbind.push(ti(n,"scroll",function(){delete e.chartPosition})),n=r(n);this.eventsToUnbind.push(ti(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),ti(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=ti(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),ti(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(iB){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,r=o.container,n=(null==(e=null==(t=o.options.tooltip)?void 0:t.followTouchMove)||e)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&n?(i.push(ti(r,"pointerdown",function(t){var e,i;(null==(e=t.target)?void 0:e.hasPointerCapture(t.pointerId))&&(null==(i=t.target)||i.releasePointerCapture(t.pointerId))}),ti(r,"pointermove",function(t){var e,i;null==(i=null==(e=o.pointer)?void 0:e.getPointFromEvent(t))||i.onMouseOver(t)})),this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(i.forEach(function(t){return t()}),i.length=0,this.hasPointerCapture=!1)}},t.prototype.setHoverChartIndex=function(e){var i,o=this.chart,r=$.charts[tW(t.hoverChartIndex,-1)];if(r&&r!==o){var n={relatedTarget:o.container};!e||(null==e?void 0:e.relatedTarget)||Object.assign({},e,n),null==(i=r.pointer)||i.onContainerMouseLeave(e||n)}(null==r?void 0:r.mouseIsDown)||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o,r,n,s,a=this.chart,h=this.pinchDown,l=void 0===h?[]:h;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?((s=a.isInsidePlot(t.chartX-a.plotLeft,t.chartY-a.plotTop,{visiblePlotOnly:!0}))&&(null==(i=a.exporting)||!i.openMenu)?(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=n=!!l[0]&&Math.pow(l[0].chartX-t.chartX,2)+Math.pow(l[0].chartY-t.chartY,2)>=16),tW(n,!0)&&this.pinch(t)):e&&this.reset(),(null==(r=null==(o=a.tooltip)?void 0:o.options.followTouchMove)||r)&&s&&t.preventDefault()):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,r=o.inverted,n=o.zooming.type||"";/touch/.test(t.type)&&(n=tW(o.zooming.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=i=/y/.test(n),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=(e||i)&&iz(t,o.zooming.key)},t.unbindDocumentMouseUp=[],t}();(u=iR||(iR={})).compose=function(t){tX(iD,"Core.Pointer")&&ti(t,"beforeRender",function(){this.pointer=new u(this,this.options)})};var iN=iR,iW=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iH=function(t,e,i,o,r){if(void 0===r&&(r=[]),Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice.apply(t,iW([e,i],r,!1)),array:t};var n=Object.getPrototypeOf(t).constructor,s=t[o?"subarray":"slice"](e,e+i),a=new n(t.length-i+r.length);return a.set(t.subarray(0,e),0),a.set(r,e),a.set(t.subarray(e+i),e+r.length),{removed:s,array:a}},iX=function(){function t(t){void 0===t&&(t={});var e=this;this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||tQ(),this.rowCount=0,this.versionTag=tQ();var i=0;tz(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,tz(this.columns,function(i,o){var r,n;i.length!==t&&(e.columns[o]=(r=i,n=t,Array.isArray(r)?(r.length=n,r):r.slice(0,n)))})},t.prototype.deleteRows=function(t,e){var i=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var o=0;tz(this.columns,function(r,n){i.columns[n]=iH(r,t,e).array,o=r.length}),this.rowCount=o}ty(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=tQ()},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.getRowObject=function(t,e){var i,o={},r=this.columns;null!=e||(e=Object.keys(this.columns));for(var n=0,s=e;n<s.length;n++){var a=s[n];o[a]=null==(i=r[a])?void 0:i[t]}return o},t.prototype.setColumn=function(t,e,i,o){var r;void 0===e&&(e=[]),void 0===i&&(i=0),this.setColumns(((r={})[t]=e,r),i,o)},t.prototype.setColumns=function(t,e,i){var o=this,r=this.rowCount;tz(t,function(t,e){o.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==i?void 0:i.silent)||(ty(this,"afterSetColumns"),this.versionTag=tQ())},t.prototype.setRow=function(t,e,i,o){void 0===e&&(e=this.rowCount);var r,n=this.columns,s=i?this.rowCount+1:e+1,a=Object.keys(t);if((null==o?void 0:o.addColumns)!==!1)for(var h=0,l=a.length;h<l;h++)n[r=a[h]]||(n[r]=Array(this.rowCount));tz(n,function(o,r){o&&(i?o=iH(o,e,0,!0,[t[r]]).array:o[e]=r in t?t[r]:o[e],n[r]=o)}),this.applyRowCount(Math.max(s,this.rowCount)),(null==o?void 0:o.silent)||(ty(this,"afterSetRows",{rowIndex:e}),this.versionTag=tQ())},t.prototype.getModified=function(){return this.modified||this},t}(),iG=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iF=W||(W={});function iY(t,e,i){var o,r,n,s=this.legendItem=this.legendItem||{},a=this.chart,h=this.options,l=t.baseline,c=void 0===l?0:l,d=t.symbolWidth,p=t.symbolHeight,u=this.symbol||"circle",f=p/2,g=a.renderer,v=s.group,m=c-Math.round(((null==(o=t.fontMetrics)?void 0:o.b)||p)*(i?.4:.3)),y={},x=h.marker,b=0;if(a.styledMode||(y["stroke-width"]=Math.min(h.lineWidth||0,24),h.dashStyle?y.dashstyle=h.dashStyle:"square"!==h.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(),d)/2),d){var k=[["M",b,m],["L",d-b,m]];s.line.attr({d:k}),null==(r=s.area)||r.attr({d:iG(iG([],k,!0),[["L",d-b,c],["L",b,c]],!1)})}if(x&&!1!==x.enabled&&d){var w=Math.min(tW(x.radius,f),f);0===u.indexOf("url")&&(x=tD(x,{width:p,height:p}),w=0),s.symbol=n=g.symbol(u,d/2-w,m-w,2*w,2*w,tv({context:"legend"},x)).addClass("highcharts-point").add(v),n.isMarker=!0}}iF.areaMarker=function(t,e){iY.call(this,t,e,!0)},iF.lineMarker=iY;var ij=W,i_={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"var(--highcharts-background-color)",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"var(--highcharts-neutral-color-20)",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,distance:4,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:[1,3],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"},iU=(f=function(t,e){return(f=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}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),iV=H||(H={});function iZ(t,e){var i=t8.plotOptions||{},o=e.defaultOptions,r=e.prototype;return r.type=t,r.pointClass||(r.pointClass=iL),!iV.seriesTypes[t]&&(o&&(i[t]=o),iV.seriesTypes[t]=e,!0)}iV.seriesTypes=$.seriesTypes,iV.registerSeriesType=iZ,iV.seriesType=function(t,e,i,o,r){var n=t8.plotOptions||{};if(e=e||"",n[t]=tD(n[e],i),delete iV.seriesTypes[t],iZ(t,tm(iV.seriesTypes[e]||$.Series,o)),iV.seriesTypes[t].prototype.type=t,r){var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iU(e,t),e}(iL);tv(s.prototype,r),iV.seriesTypes[t].prototype.pointClass=s}return iV.seriesTypes[t]};var iK=H,iq=function(){return(iq=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i$=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iJ=io.registerEventOptions,iQ=$.svg,i0=$.win,i1=iK.seriesTypes,i2=eM.format,i5=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){ty(this,"init",{options:e});var i,o,r,n,s=t.series;this.eventsToUnbind=[],this.condemnedPoints||(this.condemnedPoints=[]),this.chart=t,this.options=this.setOptions(e);var a=this.options,h=!1!==a.visible;null!=this.dataTable||(this.dataTable=(null==(i=a.dataTable)?void 0:i.isDataTable)?a.dataTable:new iX(a.dataTable)),this.linkedSeries=[],this.bindAxes(),tv(this,{name:a.name,state:"",visible:h,selected:!0===a.selected}),iJ(this,a);var l=a.events;((null==l?void 0:l.click)||(null==(r=null==(o=a.point)?void 0:o.events)?void 0:r.click)||a.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(n=s[s.length-1]),this._i=tW(null==n?void 0:n._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",t$(this,s)),this.points||this.data||this.setData(a.data,!1),ty(this,"afterInit")},t.prototype.is=function(t){return i1[t]&&this instanceof i1[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;ty(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(o[r]||[]).forEach(function(o){t=o.options,(tW(i[r],0)===o.index||void 0!==i[r]&&i[r]===t.id)&&(t$(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||tq(18,!0,o)})}),ty(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,r=this.options,n=this.options,s=n.pointIntervalUnit,a=n.relativeXValue,h=this.chart.time,l=null!=(i=null!=(e=this.xIncrement)?e:h.parse(r.pointStart))?i:0;if(this.pointInterval=o=tW(this.pointInterval,r.pointInterval,1),a&&tO(t)&&(o*=t),s){var c=h.toParts(l);"day"===s?c[2]+=o:"month"===s?c[1]+=o:"year"===s&&(c[0]+=o),o=h.makeTime.apply(h,c)-l}return a&&tO(t)?l+o:(this.xIncrement=l+o,l)},t.prototype.setOptions=function(t){var e,i,o,r=this.chart,n=r.options.plotOptions,s=r.userOptions||{},a=tD(t),h=r.styledMode,l={plotOptions:n,userOptions:a};ty(this,"setOptions",l);var c=l.plotOptions[this.type],d=s.plotOptions||{},p=d.series||{},u=t8.plotOptions[this.type]||{},f=d[this.type]||{};c.dataLabels=this.mergeArrays(u.dataLabels,c.dataLabels),this.userOptions=l.userOptions;var g=tD(c,n.series,f,a),v=g.negativeColor,m=g.negativeFillColor,y=g.zoneAxis,x=void 0===y?"y":y,b=g.zones,k=(b||[]).map(function(t){return iq({},t)});return this.tooltipOptions=tD(t8.tooltip,null==(e=t8.plotOptions.series)?void 0:e.tooltip,null==u?void 0:u.tooltip,r.userOptions.tooltip,null==(i=d.series)?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=tW(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===c.marker&&delete g.marker,this.zones||(this.zones=k),this.zoneAxis=x,(v||m)&&!b&&(o={value:g[x+"Threshold"]||g.threshold||0,className:"highcharts-negative"},h||("boolean"!=typeof v&&(o.color=v),o.fillColor=m),k.push(o)),k.length&&td(k[k.length-1].value)&&k.push(h?{}:{color:this.color,fillColor:this.fillColor}),ty(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){var t=this.chart,e=this.options,i=e.dataMapping,o=e.name,r=(null==i?void 0:i.y)||(null==i?void 0:i.value),n=tP(r)?r:null==r?void 0:r.column;return null!=o?o:tP(n)?n:i2(t.options.lang.seriesName,this,t)},t.prototype.getCyclic=function(t,e,i){var o,r,n=this.chart,s=""+t+"Index",a=""+t+"Counter",h=(null==i?void 0:i.length)||n.options.chart.colorCount;!e&&(td(r=tW("color"===t?this.options.colorIndex:void 0,this[s]))?o=r:(n.series.length||(n[a]=0),o=n[a]%h,n[a]+=1),i&&(e=i[o])),void 0!==o&&(this[s]=o),this[t]=e},t.prototype.getColor=function(){var t,e=this.chart;e.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="var(--highcharts-neutral-color-20)":this.getCyclic("color",this.options.color||(null==(t=t8.plotOptions[this.type])?void 0:t.color),e.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,i){var o,r,n=this,s=e?this.dataTable.getModified():this.dataTable,a=s.rowCount,h=this.dataTable!==s,l=s.getColumn(t,!0);if("x"===t&&!h){if(this.xColumn)return this.xColumn;var c=s.getColumn("name",!0),d=this.options;if(this.xIncrement=null,!l||(null==(o=this.xAxis)?void 0:o.hasNames)||d.relativeXValue||l.length<(d.turboThreshold||1/0)&&!this.boosted&&!function(t){if(void 0!==n.xColumnIsNumbers)return n.xColumnIsNumbers;for(var e=0;e<t.length;e++)if("number"!=typeof t[e])return n.xColumnIsNumbers=!1;return n.xColumnIsNumbers=!0}(l)){for(var p=[],u=0;u<a;u++){var f=null==l?void 0:l[u];td(f)||null!=this.xIncrement||(this.xIncrement=null!=(r=p[p.length-1])?r:null),p.push(this.getX(f,null==c?void 0:c[u]))}return this.xColumn=p}}return l||Array(i?a:0)},t.prototype.getX=function(t,e){var i;return(null==(i=this.xAxis)?void 0:i.hasNames)&&this.dataTable.getColumn("name",!0)&&td(e)?this.xAxis.nameToX({name:e,series:this},t):void 0===t||tO(t)&&this.options.relativeXValue?this.autoIncrement(t):("string"==typeof t&&tO(t=this.chart.time.parse(t)),t)},t.prototype.matchPoints=function(t,e,i,o){var r,n,s,a,h=this.dataTable,l=this.options,c=this.requireSorting,d=l.dataSorting,p=this.data,u=[],f=[],g=h.rowCount===p.length,v=0,m=!0;this.xIncrement=null,delete this.xColumn;var y=h.getColumn("x"),x=h.getColumn("id"),b=(null==d?void 0:d.matchByName)?h.getColumn("name"):void 0,k=h.getColumn("index");for(s=0;s<h.rowCount;s++){var w=null==y?void 0:y[s],M=null==x?void 0:x[s],S=null==b?void 0:b[s],T=null==k?void 0:k[s],A=M&&e?[M,e]:S&&i?[S,i]:td(T)&&o?[T,o]:td(w)&&t?[w,t]:[],C=A[0],O=A[1],P=-1;if(O){if(-1===(P=O.indexOf(C,v))){for(var L=null==y?void 0:y[s],E=null!=(r=null==t?void 0:t.length)?r:h.rowCount;E&&t&&"number"==typeof L&&t[E-1]>L;)E--;u.push({newIndex:E,oldIndex:s})}else p[P]&&(f.push({newIndex:P,oldIndex:s}),p[P].touched=!0,c&&(v=P+1));(!g||s!==P||(null==d?void 0:d.enabled)||this.hasDerivedData)&&(n=!0)}else u.push({newIndex:s,oldIndex:s})}if(n){for(f.forEach(function(t){p[t.newIndex].applyOptions(h.getRowObject(t.oldIndex))}),u.sort(function(t,e){return e.newIndex-t.newIndex}),u.forEach(function(t){p.splice(t.newIndex,0,void 0)}),s=p.length;s--;)(a=p[s])&&!a.touched&&(a.destroy(),p.splice(s,1));this.isDirtyData=this.isDirty=!0}else if(!g||(null==d?void 0:d.enabled))m=!1;else for(s=0;s<h.rowCount;s++)!function(){if(!p[s].destroyed&&!p[s].condemned){var t=h.getRowObject(s);t&&(Object.keys(t).forEach(function(e){td(t[e])||delete t[e]}),Object.keys(t).length&&p[s].update(t,!1,void 0,!1))}}();if(p.forEach(function(t){t&&(t.touched=!1)}),!m)return!1;var I=this.getColumn("x");return null===this.xIncrement&&I.length&&(this.xIncrement=tr(I),this.autoIncrement()),!0},t.prototype.getDataColumnKeys=function(){return this.dataColumnKeys||i$(["x"],this.pointArrayMap||["y"],!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,n,s,a,h,l=this.dataTable,c=this.options,d=this.points,p=(null==d?void 0:d.length)||0,u=l.getColumn("x"),f=l.getColumn("id"),g=(null==(r=c.dataSorting)?void 0:r.matchByName)&&(null==d?void 0:d.map(function(t){return t.name}))||l.getColumn("name"),v=l.getColumn("index"),m=this.chart,y=this.xAxis;if(m.options.chart.allowMutatingData||(c.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,h=tD(!0,t)),t=h||t,this.xIncrement=null,delete this.xColumn,delete this.xColumnIsNumbers,l!==c.dataTable&&delete l.columns.x,this.colorCounter=0,tL(t)?this.setDataFromArray(t):this.setDataFromTable(t),!1===o||!p||this.cropped||this.hasGroupedData||!this.visible||this.boosted||(s=this.matchPoints(u,f,g,v)),!s){for(tP(this.getColumn("y")[0])&&tq(14,!0,m),this.data=[],a=p;a--;)null==(n=d[a])||n.destroy();y&&(y.minRange=y.userMinRange),this.isDirty=m.isDirtyBox=!0,this.isDirtyData=!!d,i=!1}tL(t)&&(this.options.data=this.userOptions.data=t),"point"===c.legendType&&(this.processData(),this.generatePoints()),e&&m.redraw(i)},t.prototype.setDataFromArray=function(t){var e,i,o=t.length,r=this.options,n=r.keys,s=r.turboThreshold,a=this.pointValKey,h=void 0===a?"y":a,l=this.pointArrayMap,c=void 0===l?[]:l,d=c.length,p=this.dataTable,u=this.getDataColumnKeys(),f=s&&o>s,g=0,v=1;if(f){var m=this.getFirstValidPoint(t),y=this.getFirstValidPoint(t,o-1,-1),x=function(t){return!!(tL(t)&&(n||tO(t[0])))};if(tO(m)&&tO(y))p.setColumn(h,t);else if(x(m)&&x(y))if(d){for(var b=m.length===d,k=Array(m.length).fill(0).map(function(){return[]}),w=0;w<t.length;w++)for(var M=t[w],S=0;S<=d;S++)null==(i=k[S])||i.push(M[S]);p.setColumns((b?c:u).reduce(function(t,e,i){return t[e]=k[i],t},{}))}else{n&&(g=n.indexOf("x"),v=n.indexOf("y"),g=g>=0?g:0,v=v>=0?v:1),1===m.length&&(v=0);var T=[],A=[];if(g===v){for(var C=0;C<t.length;C++){var M=t[C];A.push(M[v])}p.setColumn(h,A)}else{for(var O=0;O<t.length;O++){var M=t[O];T.push(M[g]),A.push(M[v])}p.setColumns(((e={x:T})[h]=A,e))}}else f=!1}if(!f){for(var P={},L=0;L<o;L++)for(var E=this.pointClass.prototype.optionsToObject.call({series:this},t[L]),I=0,D=Object.keys(E);I<D.length;I++){var B=D[I];P[B]||(P[B]=Array(o)),P[B][L]=E[B]}o?p.setColumns(P):p.deleteRows(0,p.rowCount)}},t.prototype.setDataFromTable=function(t){var e=this,i=this.chart,o=this.options,r=this.dataTable,n=i.getDataTable(o),s=t?[t]:n.length?n:i.dataTable,a=this.getDataColumnKeys(),h=o.dataMapping,l=a.slice();h&&(Object.keys(h).forEach(function(t){tX(l,t)}),this.dataColumnKeys=l),s.forEach(function(t,i){var o=l.reduce(function(e,o){var r=null==h?void 0:h[o],n=t.columns||{},s=t.id,a=tP(r)?0===i&&n[r]:(((null==r?void 0:r.dataTable)||0)===i||s&&(null==r?void 0:r.dataTable)===s)&&(tO(null==r?void 0:r.column)?Object.values(n)[r.column]:n[(null==r?void 0:r.column)||o]);return a&&(e[o]=a),e},{});(h||t)&&r.setColumns(o),t.isDataTable&&e.bindDataTableEvents(t,o)})},t.prototype.bindDataTableEvents=function(t,e){var i=this;if(!this.hasBoundDataTableEvents){var o=this.chart,r=this.eventsToUnbind,n=function(){clearTimeout(o.redrawTimeout),o.redrawTimeout=setTimeout(function(){return o.renderer&&o.redraw()},0)};r.push(ti(t,"afterSetRows",function(t){var o=t.rowIndex;if(tO(o)){var r=iX.prototype.getRowObject.call({columns:e},o),s=i.data[o];r&&(i.currentDataGrouping?i.setData():(s?s.update(r,!1):i.addPoint(r,!1),n()))}})),r.push(ti(t,"afterDeleteRows",function(t){var e=t.rowCount,o=t.rowIndex;if(tO(o)){for(var r=o+e-1;r>=o;r--)i.removePoint(r,!1);n()}})),r.push(ti(t,"afterSetColumns",function(t){i.setData(t.target)})),this.hasBoundDataTableEvents=!0}},t.prototype.getProcessedData=function(t){var e,i,o,r,n,s=this,a=s.dataTable,h=s.isCartesian,l=s.options,c=s.xAxis,d=l.cropThreshold,p=t||s.getExtremesFromAll,u=null==c?void 0:c.logarithmic,f=a.rowCount,g=0,v=s.getColumn("x"),m=a,y=!1;return c&&(r=(o=c.getExtremes()).min,n=o.max,y=!!(c.categories&&!c.names.length),h&&s.sorted&&!p&&(!d||f>d||s.forceCrop)&&(v[f-1]<r||v[0]>n?m=new iX:s.getColumn(s.pointValKey||"y").length&&(v[0]<r||v[f-1]>n)&&(m=(e=this.cropData(a,r,n)).modified,g=e.start,i=!0))),v=this.getColumn("x",!0),{modified:m,cropped:i,cropStart:g,closestPointRange:tb([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&tq(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,ty(this,"afterProcessData")},t.prototype.cropData=function(t,e,i){var o,r,n=t===this.dataTable?this.getColumn("x"):t.getColumn("x",!0),s=n.length,a=0,h=s;for(o=0;o<s;o++)if(n[o]>=e){a=Math.max(0,o-1);break}for(r=o;r<s;r++)if(n[r]>i){h=r+1;break}var l=Object.keys(t.columns).reduce(function(e,i){return e[i]=(t.getColumn(i,!0)||[]).slice(a,h),e},{});return l.x=n.slice(a,h),{modified:new iX({columns:l}),start:a,end:h}},t.prototype.generatePoints=function(){var t,e,i,o,r,n,s,a,h,l,c,d,p,u=this.options,f=this.hasProcessedDataTable?void 0:u.data,g=this.dataTable.getModified(),v=this.getColumn("x",!0),m=this.pointClass,y=g.rowCount,x=this.cropStart||0,b=this.hasGroupedData,k=u.keys,w=[],M=(null==(t=u.dataGrouping)?void 0:t.groupAll)?x:0,S=this.getDataColumnKeys(),T=this.data;if(!T&&!b){var A=[];A.length=(null==f?void 0:f.length)||0,T=this.data=A}for(k&&b&&(this.options.keys=!1),d=0;d<y;d++)l=x+d,b?((c=new m(this,g.getRowObject(d,S))).dataGroup=null==(n=this.groupMap)?void 0:n[M+d],(null==(s=c.dataGroup)?void 0:s.options)&&(c.options=c.dataGroup.options,tv(c,c.dataGroup.options),delete c.dataLabels,c.key=null!=(a=c.name)?a:c.category)):(c=T[l],p=f?f[l]:g.getRowObject(d),c||void 0===p?c&&(c.category=null!=(o=null==(i=null==(e=this.xAxis)?void 0:e.categories)?void 0:i[c.x])?o:c.x,c.key=null!=(r=c.name)?r:c.category):T[l]=c=new m(this,p,v[d])),c&&(c.index=b?M+d:l,w[d]=c);if(this.options.keys=k,T&&(y!==(h=T.length)||b))for(d=0;d<h;d++)d!==x||b||(d+=y),T[d]&&(T[d].destroyElements(),T[d].plotX=void 0);this.data=T,this.points=w,ty(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:to(t),max:tr(t)}},t.prototype.getExtremes=function(t,e){var i,o,r,n,s=this.xAxis,a=this.yAxis,h=e||this.getExtremesFromAll||this.options.getExtremesFromAll,l=h&&this.cropped?this.dataTable:this.dataTable.getModified(),c=l.rowCount,d=t||this.stackedYData,p=d?[d]:(null==(i=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:i.map(function(t){return l.getColumn(t,!0)||[]}))||[],u=this.getColumn("x",!0),f=[],g=this.requireSorting&&!this.is("column")?1:0,v=!!a&&a.positiveValuesOnly,m=h||this.cropped||!s,y=0,x=0;for(s&&(y=(o=s.getExtremes()).min,x=o.max),n=0;n<c;n++)if(r=u[n],m||(u[n+g]||r)>=y&&(u[n-g]||r)<=x)for(var b=0;b<p.length;b++){var k=p[b][n];tO(k)&&(k>0||!v)&&f.push(k)}var w={activeYData:f,dataMin:to(f),dataMax:tr(f)};return ty(this,"afterGetExtremes",{dataExtremes:w}),w},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,r=e;r>=0&&r<o;){if(td(t[r]))return t[r];r+=i}},t.prototype.translate=function(){this.generatePoints();var t,e,i,o,r,n=this.options,s=this.xAxis,a=this.yAxis,h=n.stacking,l=n.threshold,c=this.chart,d=c.hasRendered,p=c.polar,u=this.points.concat(this.condemnedPoints),f=u.length,g=this.pointPlacementToXValue(),v=!!g,m=n.startFromThreshold?l:0,y=(null==n?void 0:n.nullInteraction)&&a.len,x=Number.MAX_VALUE;function b(t){return ts(t,-1e9,1e9)}var k=function(t,e){var i=s.translate(t,!1,!1,e,!0,g);return tO(i)?ta(b(i)):void 0},w=function(t,e,i){if(tO(t)&&void 0!==e.plotX){var o=a.translate(t,!1,!0,i,!0);return tO(o)?b(o):void 0}if(!tO(t)&&y)return y};for(e=0;e<f;e++){var M=u[e],S=M.x,T=void 0,A=void 0,C=M.y,O=M.low,P=h&&(null==(t=a.stacking)?void 0:t.stacks[(this.negStacks&&C<(m?0:l)?"-":"")+this.stackKey]);M.plotX=i=k(S),h&&this.visible&&P&&P[S]&&(r=this.getStackIndicator(r,S,this.index),!M.isNull&&r.key&&(A=(T=P[S]).points[r.key]),T&&tL(A)&&(O=A[0],C=A[1],O===m&&r.key===P[S].base&&(O=tW(tO(l)?l:a.min)),a.positiveValuesOnly&&td(O)&&O<=0&&(O=void 0),M.total=M.stackTotal=tW(T.total),M.percentage=td(M.y)&&T.total?M.y/T.total*100:void 0,M.stackY=C,this.irregularWidths||T.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),M.yBottom=td(O)?b(a.translate(O,!1,!0,!1,!0)):void 0,this.dataModify&&(C=this.dataModify.modifyValue(C,e)),M.plotY=w(C,M),M.origin=!d||M.graphic||p?void 0:{x:k(S,!0),y:w(C,M,!0)},M.isInside=this.isPointInside(M),M.clientX=v?ta(s.translate(S,!1,!1,!1,!0,g)):i,M.negative=(M.y||0)<(l||0),!M.isNull&&!1!==M.visible&&tO(i)&&(tO(o)&&(x=Math.min(x,Math.abs(i-o))),o=i),M.zone=this.zones.length?M.getZone():void 0}this.closestPointRangePx=x,ty(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){var r=t.plotX,n=t.plotY;return(!!i||!t.isNull&&!!tO(n))&&(!e||!!o.isInsidePlot(r,n,{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,e=this.chart,i=this.group,o=this.markerGroup,r=this.options,n=this.plotClipGroup,s=e.sharedClips,a=e.renderer,h=e.getClipBox(this),l=null==(t=r.clip)||t,c=this.getSharedClipKey(),d=s[c];d?d.animate(h):s[c]=d=a.clipRect(h),null==i||i.clip(l?d:void 0),null==o||o.clip(),null==n||n.clip(l&&this.yAxis.clippable?e.plotClipInner:void 0)},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,r=e.inverted,n=ea(this.options.animation),s=[this.getSharedClipKey(),n.duration,n.easing,n.defer].join(","),a=e.sharedClips[s],h=e.sharedClips[s+"m"];if(t&&i){var l=e.getClipBox(this);if(a)a.attr("height",l.height);else{l.width=0,r&&(l.x=e.plotHeight),a=e.renderer.clipRect(l),e.sharedClips[s]=a;var c={x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199};h=e.renderer.clipRect(c),e.sharedClips[s+"m"]=h}i.clip(a),null==o||o.clip(h)}else if(a&&!a.hasClass("highcharts-animating")){var d=e.getClipBox(this),p=n.step;((null==o?void 0:o.element.childNodes.length)||e.series.length>1)&&(n.step=function(t,e){p&&p.apply(e,arguments),"width"===e.prop&&(null==h?void 0:h.element)&&h.attr(r?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(d,n)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),tz(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,ty(this,"afterAnimate")},t.prototype.drawPoints=function(t){t||(t=this.points.concat(this.condemnedPoints));var e,i,o,r,n,s,a,h=this.chart,l=h.styledMode,c=this.colorAxis,d=this.options,p=d.marker,u=d.nullInteraction,f=this[this.specialGroup||"markerGroup"],g=this.xAxis,v=tW(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++){r=(o=(i=t[e]).graphic)?"animate":"attr",n=i.marker||{},s=!!i.marker;var m=i.isNull;if((v&&!td(n.enabled)||n.enabled)&&(!m||u)&&!1!==i.visible){var y=tW(n.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select");var x=!1!==i.isInside;if(!o&&x&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=h.renderer.symbol(y,a.x,a.y,a.width,a.height,s?n:p).add(f),i.origin)){var b=i.getOrigin(i.origin,a);l||(b.opacity=0),o.attr(b),r="animate"}if(o){"animate"===r&&(null==o||o.animate(a));var k=this.pointAttribs(i,l||!i.selected?void 0:"select");l?c&&o.css({fill:k.fill}):o[r](k),o.addClass(i.getClassName(),!0)}}else o&&(i.graphic=o.destroy())}},t.prototype.markerAttribs=function(t,e){var i,o,r,n,s=this.options,a=s.marker,h=t.marker||{},l=h.symbol||a.symbol,c={},d=tW(h.radius,null==a?void 0:a.radius);e&&(r=null==(i=null==a?void 0:a.states)?void 0:i[e],d=tW(null==(n=null==(o=h.states)?void 0:o[e])?void 0:n.radius,null==r?void 0:r.radius,d&&d+((null==r?void 0:r.radiusPlus)||0))),t.hasImage=l&&0===l.indexOf("url"),t.hasImage&&(d=0);var p=t.pos();return tO(d)&&p&&(s.crisp&&(p[0]=tl(p[0],t.hasImage?0:"rect"===l?(null==a?void 0:a.lineWidth)||0:1)),c.x=p[0]-d,c.y=p[1]-d),d&&(c.width=c.height=2*d),c},t.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a=this.options,h=a.marker,l=null==t?void 0:t.options,c=(null==l?void 0:l.marker)||{},d=null==l?void 0:l.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=tW(c.lineWidth,h.lineWidth),v=(null==t?void 0:t.isNull)&&a.nullInteraction?0:1;return f=d||u||p||f,n=c.fillColor||h.fillColor||f,s=c.lineColor||h.lineColor||f,e=e||"normal",o=h.states[e]||{},g=tW((r=c.states&&c.states[e]||{}).lineWidth,o.lineWidth,g+tW(r.lineWidthPlus,o.lineWidthPlus,0)),n=r.fillColor||o.fillColor||n,s=r.lineColor||o.lineColor||s,v=tW(r.opacity,o.opacity,v),{stroke:s,"stroke-width":g,fill:n,opacity:(null==t?void 0:t.condemned)||(null==t?void 0:t.isInside)===!1?0:v}},t.prototype.destroy=function(t){var e,i,o,r,n=this,s=n.chart,a=/AppleWebKit\/533/.test(i0.navigator.userAgent),h=n.data||[];for(ty(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){(null==(r=n[t])?void 0:r.series)&&(tg(r.series,n),r.isDirty=r.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),o=h.length;o--;)null==(i=null==(e=h[o])?void 0:e.destroy)||i.call(e);for(var l=0,c=n.zones||[];l<c.length;l++)tp(c[l],void 0,!0);tT(n.animationTimeout),tz(n,function(t,e){t instanceof eI&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===n&&(s.hoverSeries=void 0),tg(s.series,n),s.orderItems("series"),tz(n,function(e,i){t&&"hcEvents"===i||delete n[i]})},t.prototype.applyZones=function(){var t=this.area,e=this.chart,i=this.graph,o=this.zones,r=this.points,n=this.xAxis,s=this.yAxis,a=this.zoneAxis,h=e.inverted,l=e.renderer,c=this[""+a+"Axis"],d=c||{},p=d.isXAxis,u=d.len,f=void 0===u?0:u,g=d.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),h&&(i=f-i);var o=t.translated,r=void 0===o?0:o,n=t.lineClip,s=t.value,a=i-r;null==n||n.push(["L",e,Math.abs(a)<m?i-m*(a<0||0===a&&td(s)?-1:1):r])};if(o.length&&(i||t)&&c&&tO(c.min)){var x=c.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=ts(c.toPixels(tW(t.value,x),!0)||0,0,f)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&r.length<n.len)for(var k=0;k<r.length;k++){var w=r[k],M=w.plotX,S=w.plotY,T=w.zone,A=T&&o[o.indexOf(T)-1];T&&y(T,M,S),A&&y(A,M,S)}var C=[],O=c.toPixels(c.getExtremes().min-v,!0);o.forEach(function(e){var o,r,a=e.lineClip||[],c=Math.round(e.translated||0);n.reversed&&a.reverse();var d=e.clip,u=e.simpleClip,f=0,g=0,v=n.len,m=s.len;p?(f=c,v=O):(g=c,m=O);var y=[["M",f,g],["L",v,g],["L",v,m],["L",f,m],["Z"]],x=i$(i$(i$(i$([y[0]],a,!0),[y[1],y[2]],!1),C,!0),[y[3],y[4]],!1);C=a.reverse(),O=c,h&&(b(x),t&&b(y)),d?(d.animate({d:x}),null==u||u.animate({d:y})):(d=e.clip=l.path(x),t&&(u=e.simpleClip=l.path(y))),i&&(null==(o=e.graph)||o.clip(d)),t&&(null==(r=e.area)||r.clip(u))})}else this.visible&&(i&&i.show(),t&&t.show())},t.prototype.plotGroup=function(t,e,i,o,r){var n=this[t],s=!n,a={visibility:i,zIndex:o||.1};return td(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),n||(this[t]=n=this.chart.renderer.g().add(r)),n.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(td(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(n.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),n.attr(a)[s?"attr":"animate"](this.getPlotBox(e)),n},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,r=o.inverted&&!o.polar&&e&&this.invertible&&"series"===t;o.inverted&&(e=i,i=this.xAxis);var n={scale:1,translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,name:t};ty(this,"getPlotBox",n);var s=n.scale;return{translateX:n.translateX,translateY:n.translateY,rotation:90*!!r,rotationOriginX:r?s*(e.len-i.len)/2:0,rotationOriginY:r?s*(e.len+i.len)/2:0,scaleX:r?-s:s,scaleY:s}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||tY(this),e.length&&(e.forEach(function(t){t()}),e.length=0)},t.prototype.render=function(){var t,e,i,o,r,n=this,s=n.chart,a=n.options,h=n.hasRendered,l=ea(a.animation),c=n.visible?"inherit":"hidden",d=a.zIndex,p=s.seriesGroup,u=n.finishedAnimating?0:l.duration;ty(this,"render"),s.plotClipInner&&(n.plotClipGroup||(n.plotClipGroup=s.renderer.g().add(p))),n.plotGroup("group","series",c,d,n.plotClipGroup||p),n.markerGroup=n.plotGroup("markerGroup","markers",c,d,p),!1!==a.clip&&n.setClip(),u&&(null==(t=n.animate)||t.call(n,!0)),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),null==(e=n.drawDataLabels)||e.call(n),null==(i=n.redrawPoints)||i.call(n),a.enableMouseTracking&&(null==(o=n.drawTracker)||o.call(n)),u&&(null==(r=n.animate)||r.call(n)),h||(u&&l.defer&&(u+=l.defer),n.animationTimeout=tU(function(){n.afterAnimate()},u||0)),n.isDirty=!1,n.hasRendered=!0,ty(n,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree,this.condemnedPoints.length=0},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,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?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,tU(function(){e.kdTree=function t(i,o,r){var n,s,a=null==i?void 0:i.length;if(a)return n=e.kdAxisArray[o%r],i.sort(function(t,e){return(t[n]||0)-(e[n]||0)}),{point:i[s=Math.floor(a/2)],left:t(i.slice(0,s),o+1,r),right:t(i.slice(s+1),o+1,r)}}(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,r){var n=this,s=this.kdAxisArray,a=s[0],h=s[1],l=e?"distX":"dist",c=(n.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!n.isBubble,p=o||function(t,e,i){var o=t[i]||0,r=e[i]||0;return[o===r&&t.index>e.index||o<r?t:e,!1]},u=r||function(t,e){return t<e};if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,o,r){var s,c,f,g,v,m,y,x,b,k,w=i.point,M=n.kdAxisArray[o%r],S=w,T=!1;c=e[a],f=w[a],g=td(c)&&td(f)?c-f:null,v=e[h],m=w[h],y=td(v)&&td(m)?v-m:0,x=d&&(null==(s=w.marker)?void 0:s.radius)||0,w.dist=Math.sqrt((g&&g*g||0)+y*y)-x,w.distX=td(g)?Math.abs(g)-x:Number.MAX_VALUE;var A=(e[M]||0)-(w[M]||0)+(d&&(null==(k=w.marker)?void 0:k.radius)||0),C=A<0?"left":"right",O=A<0?"right":"left";return i[C]&&(S=(b=p(w,t(e,i[C],o+1,r),l))[0],T=b[1]),i[O]&&u(Math.sqrt(A*A),S[l],T)&&(S=p(S,t(e,i[O],o+1,r),l)[0]),S}(t,this.kdTree,c,c)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=this.xAxis,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),tO(i)?i*(t.pointRange||e.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis,r=t.plotX,n=void 0===r?-1:r,s=t.plotY,a=void 0===s?-1:s;return a>=0&&a<=(o?o.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t,e=this,i=e.options,o=i.trackByArea,r=[].concat((o?e.areaPath:e.graphPath)||[]),n=e.chart,s=n.pointer,a=n.renderer,h=(null==(t=n.options.tooltip)?void 0:t.snap)||0,l=function(){i.enableMouseTracking&&n.hoverSeries!==e&&e.onMouseOver()},c="rgba(192,192,192,"+(iQ?1e-4:.002)+")",d=e.tracker;d?d.attr({d:r}):e.graph&&(e.tracker=d=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(o?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),n.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:o?c:"none","stroke-width":e.graph.strokeWidth()+(o?0:2*h)}),i$([e.tracker,e.markerGroup],e.dataLabelsGroups||[],!0).forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){null==s||s.onTrackerMouseOut(t)}),i.cursor&&!n.styledMode&&t.css({cursor:i.cursor}),t.on("touchstart",l))})),ty(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,r){var n,s,a,h=this.options,l=this.chart,c=this.data,d=this.dataTable,p=this.xAxis,u=(null==p?void 0:p.hasNames)&&p.names,f=h.data,g=this.getColumn("x");e=tW(e,!0);var v=this.pointClass.prototype,m=v.applyOptions,y=v.optionsToObject,x={series:this},b=y.call(x,t);m.call(x,b,void 0,!1);var k=x.x;if(a=g.length,this.requireSorting&&k<g[a-1])for(s=!0;a&&g[a-1]>k;)a--;d.setRow(b,a,!0),null==(n=this.xColumn)||n.splice(a,0,this.getX(k)),u&&x.name&&(u[k]=x.name),null==f||f.splice(a,0,t),(s||this.hasProcessedDataTable)&&(this.data.splice(a,0,null),this.processData()),"point"===h.legendType&&this.generatePoints(),i&&(c[0]&&c[0].remove?c[0].remove(!1):([c,f,this.xColumn].filter(td).forEach(function(t){t.shift()}),d.deleteRows(0))),!1!==r&&ty(this,"addPoint",{point:x}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,r=o.chart,n=o.data,s=o.points,a=o.dataTable,h=n[t],l=function(){[(null==s?void 0:s.length)===n.length?s:void 0,n,o.options.data,o.xColumn].filter(td).forEach(function(e){e.splice(t,1)}),a.deleteRows(t),a.modified=a,null==h||h.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&r.redraw()};ed(i,r),e=tW(e,!0),h?h.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,i,o){var r=this,n=r.chart;function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(o),tW(t,!0)&&n.redraw(e)}!1!==i?ty(r,"remove",null,s):s()},t.prototype.update=function(e,i){ty(this,"update",{options:e=tf(e,this.userOptions)});var o,r,n,s,a,h=this,l=h.chart,c=h.userOptions,d=h.initialType||h.type,p=l.options.plotOptions,u=i1[d].prototype,f=h.finishedAnimating&&{animation:!1},g={},v=e.data||e.dataTable,m=t.keepProps.slice(),y=e.type||c.type||l.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||d,x?(m.push.apply(m,t.keepPropsForPoints),!1!==e.visible&&(m.push("area","graph"),"zones"in e||m.push("zones")),h.parallelArrays.forEach(function(t){m.push(t+"Data")}),v&&(e.dataSorting&&tv(h.options.dataSorting,e.dataSorting),this.setData(v,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&c.dataLabels&&(e.dataLabels=this.mergeArrays(c.dataLabels,e.dataLabels)),e=tD(c,{index:void 0===c.index?h.index:c.index,pointStart:null!=(r=null==(o=null==p?void 0:p.series)?void 0:o.pointStart)?r:c.pointStart},!x&&{data:h.options.data},e,f),x&&e.data&&(e.data=h.options.data),(m=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","plotClipGroup","transformGroup"].concat(m)).forEach(function(t){m[t]=h[t],delete h[t]});var b=!1;if(i1[y]){if(b=y!==h.type,h.remove(!1,!1,!1,!0),b)if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(h,i1[y].prototype);else{var k=Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents;for(a in u)h[a]=void 0;tv(h,i1[y].prototype),k?h.hcEvents=k:delete h.hcEvents}}else tq(17,!0,l,{missingModuleFor:y});if(m.forEach(function(t){h[t]=m[t]}),h.init(l,e),x&&this.points){!1===(s=h.options).visible?(g.graphic=1,g.dataLabel=1):(this.hasMarkerChanged(s,c)&&(g.graphic=1),(null==(n=h.hasDataLabels)?void 0:n.call(h))||(g.dataLabel=1));for(var w=0,M=this.points;w<M.length;w++){var S=M[w];(null==S?void 0:S.series)&&(S.resolveColor(),Object.keys(g).length&&S.destroyElements(g),!1===s.showInLegend&&S.legendItem&&l.legend.destroyItem(S))}}h.initialType=d,l.linkSeries(),b&&h.linkedSeries.length&&(h.isDirtyData=!0),ty(this,"afterUpdate"),tW(i,!0)&&l.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,r=this.options[t],n=o.options.plotOptions,s=this.userOptions[t],a=tW(null==(e=null==n?void 0:n[this.type])?void 0:e[t],null==(i=null==n?void 0:n.series)?void 0:i[t]);return s&&!td(a)?r!==s:r!==tW(a,r)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries,i=t.pointer;null==i||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),ty(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.chart,e=t.tooltip,i=t.hoverPoint;t.hoverSeries=null,i&&i.onMouseOut(),ty(this,"mouseOut"),e&&!this.stickyTracking&&(!e.shared||this.noSharedTooltip)&&e.hide(),t.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i,o,r=this,n=r.graph,s=r.options,a=s.inactiveOtherPoints,h=s.states,l=tW(null==(i=null==h?void 0:h[t||"normal"])?void 0:i.animation,r.chart.options.chart.animation),c=s.lineWidth,d=s.opacity;if(t=t||"",r.state!==t&&(i$([r.group,r.markerGroup],r.dataLabelsGroups||[],!0).forEach(function(e){e&&(r.state&&e.removeClass("highcharts-series-"+r.state),t&&e.addClass("highcharts-series-"+t))}),r.state=t,!r.chart.styledMode)){if((null==(o=h[t])?void 0:o.enabled)===!1)return;if(t&&(c=h[t].lineWidth||c+(h[t].lineWidthPlus||0),d=tW(h[t].opacity,d)),n&&!n.dashstyle&&tO(c))for(var p=0,u=i$([n],this.zones.map(function(t){return t.graph}),!0);p<u.length;p++){var f=u[p];null==f||f.animate({"stroke-width":c},l)}a||i$(i$([r.group,r.markerGroup],r.dataLabelsGroups||[],!0),[r.labelBySeries],!1).forEach(function(t){null==t||t.animate({opacity:d},l)})}e&&a&&r.points&&r.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,r=this,n=r.chart,s=n.options.chart.ignoreHiddenSeries,a=r.visible;r.visible=t=r.options.visible=r.userOptions.visible=void 0===t?!a:t;var h=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(function(t){var e;null==(e=r[t])||e[h]()}),null==(i=r.dataLabelsGroups)||i.forEach(function(t){null==t||t[h]()}),(n.hoverSeries===r||(null==(o=n.hoverPoint)?void 0:o.series)===r)&&r.onMouseOut(),r.legendItem&&n.legend.colorizeItem(r,t),r.isDirty=!0,r.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),r.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),s&&(n.isDirtyBox=!0),ty(r,h),!1!==e&&n.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),ty(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,r=this.chart.renderer,n=this.options.legendSymbol||"rectangle",s=e.legendItem||{},a=t.options,h=t.symbolHeight,l=t.symbolWidth,c=a.squareSymbol,d=c?h:l,p=c?(l-h)/2:0,u=(t.baseline||0)-h+1,f=null!=(i=a.symbolRadius)?i:h,g="rectangle"===n?r.rect(p,u,d,h,f):r.symbols[n]&&r.symbol(n,p,u,d,h,{r:f});g?s.symbol=g.addClass("highcharts-point").attr({zIndex:3}).add(s.group):null==(o=ij[n])||o.call(this,t,e)},t.defaultOptions=i_,t.types=iK.seriesTypes,t.registerType=iK.registerSeriesType,t.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],t.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","condemnedPoints","dataTable","hasProcessedDataTable","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],t}();tv(i5.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:iL,requireSorting:!0,sorted:!0}),iK.series=i5;var i3=io.registerEventOptions,i6=$.composed,i9=$.marginNames,i4=eS.distribute,i8=eM.format,i7=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(),i3(this,e),ti(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),ti(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=tW(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=tD(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=tW(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(tD(!0,this.options,t)),"events"in this.options&&i3(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,tW(e,!0)&&i.redraw(),ty(this,"afterUpdate",{redraw:e})},t.prototype.colorizeItem=function(t,e){var i,o,r,n,s,a=t.color,h=t.legendItem||{},l=h.area,c=h.group,d=h.label,p=h.line,u=h.symbol;if((t instanceof i5||t instanceof iL)&&(t.color=(null==(i=t.options)?void 0:i.legendSymbolColor)||a),null==c||c[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var f=this.itemHiddenStyle,g=void 0===f?{}:f,v=g.color,m=t.options,y=m.fillColor,x=m.lineColor,b=function(t){return!e&&(t.fill&&(t.fill=v),t.stroke&&(t.stroke=v)),t};null==d||d.css(tD(e?this.itemStyle:g)),null==p||p.attr(b({stroke:x||t.color})),null==u||u.attr(b(t.series?null==(r=(o=t.series).pointAttribs)?void 0:r.call(o,t):(null==(n=t.pointAttribs)?void 0:n.call(t))||{fill:t.color})),null==l||l.attr(b({fill:y||t.color,"fill-opacity":y?1:null!=(s=t.options.fillOpacity)?s:.75}))}t.color=a,ty(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,r=i.x,n=void 0===r?0:r,s=i.y,a=void 0===s?0:s,h=this.options,l=h.symbolPadding,c=!h.rtl,d=t.checkbox;if(null==o?void 0:o.element){var p={translateX:c?n:this.legendWidth-n-2*l-4,translateY:a};o[td(o.translateY)?"animate":"attr"](p,void 0,function(){ty(e,"afterPositionItem",{item:t})})}d&&(d.x=n,d.y=a)},t.prototype.destroyItem=function(t){for(var e=t.legendItem||{},i=0,o=["group","label","line","symbol"];i<o.length;i++){var r=o[i];e[r]&&(e[r]=e[r].destroy())}t.checkbox=tu(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,r=["clipRect","up","down","pager","nav","box","title","group"];o<r.length;o++){var n=r[o];this[n]&&(this[n]=this[n].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,r=this.titleHeight;i&&(e=i.translateY,this.allItems.forEach(function(t){var n,s=t.checkbox;s&&(n=e+r+s.y+(this.scrollOffset||0)+3,tc(s,{left:i.translateX+t.checkboxOffset+s.x-20+"px",top:n+"px",display:this.proximate||n>e-6&&n<e+o-6?"":"none"}))},this))},t.prototype.renderTitle=function(){var t,e=this.options,i=this.padding,o=e.title,r=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"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?i8(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,r=o.renderer,n=this.options,s="horizontal"===n.layout,a=this.symbolWidth,h=n.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,d=s?tW(n.itemDistance,20):0,p=!n.rtl,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options,v=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=n.useHTML,y=t.options.className,x=i.label,b=a+h+d+20*!!v;!x&&(i.group=r.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=r.text("",p?a+h:-h,this.baseline||0,m),o.styledMode||x.css(tD(t.visible?l:c)),x.attr({align:p?"left":"right",zIndex:2}).add(i.group),!this.baseline&&(this.fontMetrics=r.fontMetrics(x),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,x.attr("y",this.baseline),this.symbolHeight=tW(n.symbolHeight,this.fontMetrics.f),n.squareSymbol&&(this.symbolWidth=tW(n.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+h+d+20*!!v,p&&x.attr("x",this.symbolWidth+h))),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||!l.width)&&x.css({width:Math.min(n.itemWidth||this.widthOption||o.spacingBox.width,n.maxWidth?tG(n.maxWidth,o.chartWidth):1/0)-b+"px"}),this.setText(t);var k=x.getBBox(),w=(null==(e=this.fontMetrics)?void 0:e.h)||0;t.itemWidth=t.checkboxOffset=n.itemWidth||i.labelWidth||k.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(k.height>1.5*w?k.height:w))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,r=t.itemHeight,n=this.itemMarginBottom,s=this.itemMarginTop,a=o?tW(e.itemDistance,20):0,h=this.maxLegendWidth,l=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,c=t.legendItem||{};o&&this.itemX-i+l>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=s+this.itemY+n,this.lastLineHeight=Math.max(r,this.lastLineHeight),c.x=this.itemX,c.y=this.itemY,o?this.itemX+=l:(this.itemY+=s+r+n,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):l)+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&&tW(o.showInLegend,!td(o.linkedTo)&&void 0,!0)&&(t=t.concat((null==(i=e.legendItem)?void 0:i.labels)||("point"===o.legendType?e.data:e)))}),ty(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,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,s){var a;n.test(r)&&!td(t[s])&&(i[i9[s]]=Math.max(i[i9[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 r,n,s,a,h=o;t.yAxis&&(t.xAxis.options.reversed&&(h=!h),t.points&&(r=tS(h?t.points:t.points.slice(0).reverse(),function(t){return tO(t.plotY)})),n=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,s=t.visible?(r?r.plotY:t.yAxis.height)+(a-.3*n):a+t.yAxis.height,i.push({target:s,size:n,item:t}))},this);for(var r=0,n=i4(i,e.plotHeight);r<n.length;r++){var s=n[r];t=s.item.legendItem||{},tO(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}},t.prototype.render=function(){var t,e,i,o,r=this.chart,n=r.spacingBox.width,s=r.renderer,a=this.options,h=this.padding,l=this.getAllItems(),c=this.group,d=this.box;this.itemX=h,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=tG(a.width,n-h),o=n-2*h-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,c||(this.group=c=s.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(c),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),t_(l,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&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(a.maxWidth?Math.min(this.widthOption||this.offsetWidth,o,tG(a.maxWidth,r.chartWidth)||1/0):this.widthOption||this.offsetWidth)+h,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+h,d||(this.box=d=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(c)),r.styledMode||d.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),e>0&&i>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:e,height:i},d.strokeWidth())),c[t?"show":"hide"](),r.styledMode&&"none"===c.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),ty(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=tD(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(tD(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,r,n=this,s=this.chart,a=s.renderer,h=this.options,l=h.y,c="top"===h.verticalAlign,d=this.padding,p=h.maxHeight,u=h.navigation,f=tW(u.animation,!0),g=u.arrowSize||12,v=this.pages,m=this.allItems,y=function(t){"number"==typeof t?w.attr({height:t}):w&&(n.clipRect=w.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+d+"px,9999px,"+(d+t)+"px,0)":"auto")},x=function(t){return n[t]=a.circle(0,0,1.3*g).translate(g/2,g/2).add(k),s.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]},b=s.spacingBox.height+(c?-l:l)-d,k=this.nav,w=this.clipRect;return"horizontal"!==h.layout||"middle"===h.verticalAlign||h.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-d,0),this.currentPage=tW(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,n){var s=(o=t.legendItem||{}).y||0,a=Math.round(o.label.getBBox().height),h=v.length;(!h||s-v[h-1]>e&&(i||s)!==v[h-1])&&(v.push(i||s),h++),o.pageIx=h-1,i&&r&&(r.pageIx=h-1),n===m.length-1&&s+a-v[h-1]>e&&s>v[h-1]&&(v.push(s),o.pageIx=h),s!==i&&(i=s),r=o}),w||(w=n.clipRect=a.clipRect(0,d-2,9999,0),n.contentGroup.clip(w)),y(e),k||(this.nav=k=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,g,g).add(k),x("upTracker").on("click",function(){n.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(k),this.down=a.symbol("triangle-down",0,0,g,g).add(k),x("downTracker").on("click",function(){n.scroll(1,f)})),n.scroll(0),t=b):k&&(y(),this.nav=k.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,n=r.length,s=this.clipHeight,a=this.options.navigation,h=this.pager,l=this.padding,c=this.currentPage+t;c>n&&(c=n),c>0&&(void 0!==e&&ed(e,o),this.nav.attr({translateX:l,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:c+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:c===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===n?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===n?"default":"pointer"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),tU(function(){ty(i,"afterScroll",{currentPage:c})},ea(tW(e,o.renderer.globalAnimation,!0)).duration))},t.prototype.setItemEvents=function(t,e,i){for(var o=this,r=t.legendItem||{},n=o.chart.renderer.boxWrapper,s=t instanceof iL,a=t instanceof i5,h="highcharts-legend-"+(s?"point":"series")+"-active",l=o.chart.styledMode,c=i?[e,r.symbol]:[r.group],d=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})},p=0;p<c.length;p++){var u=c[p];u&&u.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&n.addClass(h),l||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(tD(t.visible?o.itemStyle:o.itemHiddenStyle)),d(""),n.removeClass(h),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")};n.removeClass(h),ty(o,"itemClick",{browserEvent:e,legendItem:t,context:o},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&ty(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=th("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),ti(t.checkbox,"click",function(e){var i=e.target;ty(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(g=i7||(i7={})).compose=function(t){tX(i6,"Core.Legend")&&ti(t,"beforeMargins",function(){this.legend=new g(this,this.options.legend)})};var ot=i7,oe=function(){return(oe=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},oi=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oo=eM.numberFormat,or=io.registerEventOptions,on=$.charts,os=$.doc,oa=$.marginNames,oh=$.win,ol=iK.seriesTypes,oc=function(){function t(t,e,i){if(this.sharedClips={},!os)return void tq(36,!1,this);var o=oi([],arguments,!0);(tP(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return t.chart=function(e,i,o){var r=new t(e,i,o);return r.promise||r},t.prototype.setZoomOptions=function(){var t=this.options.chart,e=t.zooming;this.zooming=oe(oe({},e),{type:tW(t.zoomType,e.type),key:tW(t.zoomKey,e.key),pinchType:tW(t.pinchType,e.pinchType),singleTouch:tW(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:tD(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){ty(this,"init",{args:arguments},function(){var i,o,r=this,n=tD(t8,t),s=n.chart,a=this.renderTo||s.renderTo;this.userOptions=tv({},t),(this.renderTo=tP(a)?os.getElementById(a):a)||tq(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],!0===e?this.promise=new Promise(function(t){r.callback=t}):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 t6(tv(n.time||{},{locale:this.locale}),n.lang),n.time=this.time.options,this.numberFormatter=(s.numberFormatter||oo).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=on.length,this.dataTable=this.getDataTable(n),on.push(this),$.chartCount++,or(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),ty(this,"afterInit"),this.firstRender()})},t.prototype.getDataTable=function(t){return(t.dataTable?tj(t.dataTable):[]).map(function(t){return t.isDataTable?t:new iX(t)})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=ol[i];o||tq(17,!0,this,{missingModuleFor:i});var r=new o;return"function"==typeof r.init&&r.init(this,t),r},t.prototype.orderItems=function(t,e){void 0===e&&(e=0);var i=this[t],o=this.options[t]=tj(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?tj(this.userOptions[t]).slice():[];if(this.hasRendered&&(o.splice(e),r.splice(e)),i)for(var n=e,s=i.length;n<s;++n){var a=i[n];a&&(a.index=n,a instanceof i5&&(a.name=a.getName()),a.options.isInternal||(o[n]=a.options,r[n]=a.userOptions))}},t.prototype.getClipBox=function(t,e){var i,o,r,n,s,a=this.inverted,h=t||{},l=h.xAxis,c=h.yAxis,d=tD(this.clipBox),p=d.x,u=d.y,f=d.width,g=d.height;return t&&(l&&l.len!==this.plotSizeX&&!l.isRadial&&(f=l.len),c&&c.len!==this.plotSizeY&&!c.isRadial&&(g=c.len),a&&!t.invertible&&(f=(i=[g,f])[0],g=i[1])),e&&(p+=null!=(r=null==(o=a?c:l)?void 0:o.pos)?r:this.plotLeft,u+=null!=(s=null==(n=a?l:c)?void 0:n.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,r=this.inverted,n=this.plotBox,s=this.plotLeft,a=this.plotTop,h=this.scrollablePlotBox,l=i.visiblePlotOnly&&(null==(o=this.scrollablePlotArea)?void 0:o.scrollingContainer)||{},c=l.scrollLeft,d=void 0===c?0:c,p=l.scrollTop,u=void 0===p?0:p,f=i.series,g=i.visiblePlotOnly&&h||n,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&&(r&&!this.polar?f.yAxis:f.xAxis)||{pos:s,len:1/0},b=i.paneCoordinates?x.pos+v:s+v;b>=Math.max(d+s,x.pos)&&b<=Math.min(d+s+g.width,x.pos+x.len)||(y.isInsidePlot=!1)}if(!i.ignoreY&&y.isInsidePlot){var k=!r&&i.axis&&!i.axis.isXAxis&&i.axis||f&&(r?f.xAxis:f.yAxis)||{pos:a,len:1/0},w=i.paneCoordinates?k.pos+m:a+m;w>=Math.max(u+a,k.pos)&&w<=Math.min(u+a+g.height,k.pos+k.len)||(y.isInsidePlot=!1)}return ty(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){ty(this,"beforeRedraw");var e,i,o,r,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],s=this.series,a=this.pointer,h=this.legend,l=this.userOptions.legend,c=this.renderer,d=c.isHidden(),p=[],u=this.isDirtyBox,f=this.isDirtyLegend;for(c.rootFontSize=c.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),ed(!!this.hasRendered&&t,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),o=s.length;o--;)if(((r=s[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=s.length;o--;)(r=s[o]).options.stacking&&(r.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):l&&(l.labelFormatter||l.labelFormat)&&(f=!0)),t.isDirtyData&&ty(t,"updatedData")}),f&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1),i&&this.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),n.forEach(function(t){t.isDirty&&(u=!0)}),n.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){ty(t,"afterSetExtremes",tv(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),ty(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),c.draw(),n.forEach(function(t){t.saveOld()}),ty(this,"redraw"),ty(this,"render"),d&&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=tS(this.axes,i)||tS(this.series,i),r=0;!o&&r<e.length;r++)o=tS(e[r].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;ty(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],r=t[o]=tj(t[o]||{}),n=0;n<r.length;n++)new iu(this,r[n],o);ty(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){tW(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,r=this.options[t]=tD(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),r&&!n&&((n=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,i){o.applyDescription(t,e),o.layOutTitles(i)},this.styledMode||n.css(tv("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),n.textPxLength=n.getBBox().width,n.css({whiteSpace:null==(i=r.style)?void 0:i.whiteSpace}),this[t]=n)},t.prototype.layOutTitles=function(t){var e,i,o,r,n=this;void 0===t&&(t=!0);var s=[0,0,0],a=this.options,h=this.renderer,l=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,i=n[t],o=n.options[t],r=tD(l),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){ty(n,"layOutTitle",{alignTo:r,key:t,textPxLength:a});var c=h.fontMetrics(i),d=c.b,p=c.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(r.width/a,1),y=Math.max(g,m),x=tD({y:"bottom"===u?d:v+d},o),b=(o.width||(m>g?n.chartWidth:r.width)/y)+"px";null!=x.align||(x.align="title"===t?m<g?"left":"center":null==(e=n.title)?void 0:e.alignValue),i.alignValue!==x.align&&(i.placed=!1);var k=Math.round(i.css({width:b}).getBBox(o.useHTML).height);if(x.height=k,i.align(x,!1,r).attr({align:x.align,scaleX:y,scaleY:y,"transform-origin":""+(r.x+a*y*tx(x.align))+" ".concat(p)}),!o.floating){var w=k*(k<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+w):"bottom"===u&&(s[2]=Math.ceil(s[2]+w))}}},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==(r=a.caption)?void 0:r.margin)||0);var c=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,ty(this,"afterLayOutTitles"),!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,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:tM(this.renderTo,"width",!0)||0,height:tM(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,r=this.getContainerBox(),n=r.height<=1||!(null==(t=this.renderTo.parentElement)?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||r.width||600),this.chartHeight=Math.max(0,tG(o,this.chartWidth)||(n?400:r.height)),this.containerBox=r},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;null==i?void 0:i.style;)i.hcOrigStyle&&(tc(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(os.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;(null==i?void 0:i.style)&&(os.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,os.body.appendChild(i)),("none"===tM(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),tc(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==os.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i,o=this.options,r=o.chart,n="data-highcharts-chart",s=tQ(),a=this.renderTo,h=tH(tn(a,n));tO(h)&&on[h]&&on[h].hasRendered&&on[h].destroy(),tn(a,n,this.index),a.innerHTML=ev.emptyHTML,r.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();var l=this.chartHeight,c=this.chartWidth;this.styledMode||tc(a,{overflow:"hidden"}),this.styledMode||(i=tv({position:"relative",overflow:"hidden",width:c+"px",height:l+"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"},r.style||{}));var d=th("div",{id:s},i,a);if(this.container=d,this.getChartSize(),c!==this.chartWidth&&(c=this.chartWidth,this.styledMode||tc(d,{width:tW(null==(t=r.style)?void 0:t.width,c+"px")})),this._cursor=d.style.cursor,this.renderer=new e9(d,c,l,void 0,r.forExport,null==(e=o.exporting)?void 0:e.allowHTML,this.styledMode,o.palette,this.index),this.containerBox=this.getContainerBox(),ed(void 0,this),this.setClassName(r.className),this.styledMode)for(var p in o.defs)this.renderer.definition(o.defs[p]);else this.renderer.setStyle(r.style),this.palette=this.renderer.palette;ty(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e,i=this.spacing,o=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!td(o[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+i[0])),r[2]&&!td(o[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+i[2])),(null==(e=this.legend)?void 0:e.display)&&this.legend.adjustMargins(o,i),ty(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,r=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?r(t.axes):(null==i?void 0:i.length)&&r(i),oa.forEach(function(i,r){td(o[r])||(t[i]+=e[r])}),t.setChartSize()},t.prototype.getOptions=function(){return tf(this.userOptions,t8)},t.prototype.reflow=function(t){var e,i,o=this,r=o.containerBox,n=o.getContainerBox();null==(e=o.pointer)||delete e.chartPosition,(null==(i=o.exporting)?void 0:i.isPrinting)||o.isResizing||!r||!n.width||((n.width!==r.width||n.height!==r.height)&&(tT(o.reflowTimeout),o.reflowTimeout=tU(function(){if(o.container){o.setSize(void 0,void 0,!1);var t=o.containerBox;t&&(t.height=o.chartHeight)}},100*!!t)),o.containerBox=n)},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=ti(oh,"resize",e);ti(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,r=o.renderer;o.isResizing+=1,ed(i,o);var n=r.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,h=o.scrollablePixelsX,l=o.scrollablePixelsY;(o.isDirtyBox||s!==o.oldChartWidth||a!==o.oldChartHeight)&&(o.styledMode||(n?el:tc)(o.container,{width:""+(s+(void 0===h?0:h))+"px",height:""+(a+(void 0===l?0:l))+"px"},n),o.setChartSize(!0),r.setSize(s,a,n),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=void 0,ty(o,"resize"),setTimeout(function(){o&&ty(o,"endResize")},ea(n).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,r,n,s,a=this.chartHeight,h=this.chartWidth,l=this.clipOffset,c=this.inverted,d=this.spacing,p=this.renderer,u=Math[c?"floor":"round"];if(this.plotLeft=o=Math.round(this.plotLeft),this.plotTop=r=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(h-o-(null!=(e=this.marginRight)?e:0))),this.plotHeight=s=Math.max(0,Math.round(a-r-(null!=(i=this.marginBottom)?i:0))),this.plotSizeX=c?s:n,this.plotSizeY=c?n:s,this.spacingBox=p.spacingBox={x:d[3],y:d[0],width:h-d[3]-d[1],height:a-d[0]-d[2]},this.plotBox=p.plotBox={x:o,y:r,width:n,height:s},l&&(this.clipBox={x:u(l[c?2:3]),y:u(l[+!!c]),width:u(this.plotSizeX-l[+!c]-l[c?2:3]),height:u(this.plotSizeY-l[+!!c]-l[c?3:2])}),!t){for(var f=0,g=this.axes;f<g.length;f++){var v=g[f];v.setAxisSize(),v.setAxisTranslation()}p.alignElements()}ty(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){ty(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],r=tI(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,n){var s;t[i][n]=null!=(s=e["".concat(i).concat(o)])?s:r[n]})}),oa.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,r=o.options.chart,n=r.backgroundColor,s=r.plotBackgroundColor,a=r.plotBackgroundImage,h=r.plotBorderRadius,l=void 0===h?0:h,c=r.shadow,d=o.chartWidth,p=o.chartHeight,u=o.clipBox,f=o.clipOffset,g=o.clipRect,v=o.plotBGImage,m=o.plotBox,y=o.plotLeft,x=o.plotTop,b=o.plotWidth,k=o.plotHeight,w=o.renderer,M=o.styledMode,S=o.chartBackground,T=o.plotBackground,A=o.plotBorder,C="animate";S||(o.chartBackground=S=w.rect().addClass("highcharts-background").add(),C="attr"),M?t=e=S.strokeWidth():(e=(t=r.borderWidth||0)+8*!!c,i={fill:n||"none"},(t||S["stroke-width"])&&(i.stroke=r.borderColor,i["stroke-width"]=t),S.attr(i).shadow(c)),S[C]({x:e/2,y:e/2,width:d-e-t%2,height:p-e-t%2,r:r.borderRadius}),C="animate",T||(C="attr",o.plotBackground=T=w.rect().addClass("highcharts-plot-background").add()),T[C](oe(oe({},m),{r:l})),!M&&(T.attr({fill:s||"none"}).shadow(r.plotShadow),a&&(v?(a!==v.attr("href")&&v.attr("href",a),v.animate(m)):o.plotBGImage=w.image(a,y,x,b,k).add())),g?g.animate({width:u.width,height:u.height}):o.clipRect=w.clipRect(u),C="animate",A||(C="attr",o.plotBorder=A=w.rect().addClass("highcharts-plot-border").attr({zIndex:1.5}).add()),A.attr(M?void 0:{stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"})[C]({r:l});var O=A.strokeWidth(),P=tD(A.crisp(m,-O));if(f&&!M){var L=f[0]-O/2,E=f[3]-O/2;P.x-=E,P.y-=L,P.width+=E+f[1]-O/2,P.height+=L+f[2]-O/2}A[C](P),["plotClipOuter","plotClipInner"].forEach(function(t,e){var i,r=o[t],n=e?-O:O;null==r||r[l?C:"attr"]({x:P.x-n/2,y:P.y-n/2,width:P.width+n,height:P.height+n,r:l?l+n/2:0}),null==(i=null==r?void 0:r.parentGroup)||i.attr({display:l?"":"none"})}),o.isDirtyBox=!1,ty(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,r=o.options.chart,n=o.options.series;["inverted","angular","polar"].forEach(function(s){for(e=ol[r.type],i=r[s]||e&&e.prototype[s],t=null==n?void 0:n.length;!i&&t--;)(e=ol[n[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,r,n=t.options.linkedTo,s=tP(n)&&(":previous"===n?i[t.index-1]:e.get(n));s&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,t.visible=null!=(r=null!=(o=t.options.visible)?o:s.options.visible)?r:t.visible)}),ty(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,r=this.axes,n=this.colorAxis,s=this.renderer,a=this.options.chart,h=a.axisLayoutRuns,l=void 0===h?2:h,c=a.plotBorderRadius,d=function(t){t.forEach(function(t){t.visible&&t.render()})},p=0,u=!0,f=0;c&&(this.plotClipOuter||(this.plotClipOuter=s.clipRect()),this.plotClipInner||(this.plotClipInner=s.clipRect())),this.setTitle(),ty(this,"beforeMargins"),null==(t=this.getStacks)||t.call(this),this.getMargins(!0),this.setChartSize();for(var g=0;g<r.length;g++){var v=r[g],m=v.options,y=m.labels,x=m.offset;if(this.hasCartesianSeries&&v.horiz&&v.visible&&y.enabled&&v.series.length&&"colorAxis"!==v.coll&&!v.isRadial){p=m.tickLength,v.createGroups();var b=new is(v,0,"",!0),k=b.createLabel("x",y);if(b.destroy(),k&&tW(y.reserveSpace,!tO(m.crossing))&&(p=k.getBBox().height+y.distance+Math.max(tO(x)?x:0,0)),p){null==k||k.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-p,0);(u||o||l>1)&&f<l;){for(var w=this.plotWidth,M=this.plotHeight,S=[1.05,1.1],T=0;T<r.length;T++){var v=r[T],A=+(v.horiz||0);if(0===f){v.setScale();var C=null==(i=null==(e=v.tickPositions)?void 0:e.info)?void 0:i.match;C&&(S[A]=Math.min(C,S[A]))}else(A&&u||!A&&o)&&v.setTickInterval(!0)}0===f?this.getAxisMargins():this.getMargins(),u=w/this.plotWidth>(f?1:S[1]),o=M/this.plotHeight>(f?1:S[0]),f++}this.drawChartBox(),this.hasCartesianSeries?d(r):(null==n?void 0:n.length)&&d(n),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=tD(!0,this.options.credits,t);o.enabled&&!this.credits&&(this.credits=this.renderer.text(o.text+(this.mapCredits||""),0,0,o.useHTML).addClass("highcharts-credits").on("click",function(t){ty(i,"creditsClick",t,function(){o.href&&(oh.location.href=o.href)})}).attr({align:o.position.align,zIndex:8}),(null==(e=o.events)?void 0:e.click)&&ti(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,r=o.axes,n=o.series,s=o.container,a=null==s?void 0:s.parentNode;for(ty(o,"destroy"),o.renderer.forExport?tg(on,o):on[o.index]=void 0,$.chartCount--,o.renderTo.removeAttribute("data-highcharts-chart"),tY(o),i=r.length;i--;)r[i]=r[i].destroy();for(null==(e=null==(t=this.scroller)?void 0:t.destroy)||e.call(t),i=n.length;i--;)n[i]=n[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=ev.emptyHTML,tY(s),a&&tu(s)),tz(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=tL(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),ty(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),ty(this,"load"),ty(this,"render"),td(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||tq('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"!==oh.getComputedStyle(this.container).zIndex&&tq(35,!1,this)},t.prototype.addSeries=function(t,e,i){var o,r=this;return t&&(e=tW(e,!0),ty(r,"addSeries",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),ty(r,"afterAddSeries",{series:o}),e&&r.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 iu(this,e.axis,t);return tW(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e,i,o,r,n=this,s=n.options,a=s.loading,h=null!=(e=null==a?void 0:a.style)?e:{},l=function(){var t,e,i,o;c&&tc(c,{left:null!=(t=h.left)?t:n.plotLeft+"px",top:null!=(e=h.top)?e:n.plotTop+"px",width:null!=(i=h.width)?i:n.plotWidth+"px",height:null!=(o=h.height)?o:n.plotHeight+"px"})},c=n.loadingDiv,d=n.loadingSpan;c||(n.loadingDiv=c=th("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container)),d||(n.loadingSpan=d=th("span",{className:"highcharts-loading-inner"},null,c),ti(n,"redraw",l)),c.className="highcharts-loading",ev.setElementHTML(d,tW(t,s.lang.loading,"")),!n.styledMode&&(tc(c,tv(h,{zIndex:10})),tc(d,null!=(i=null==a?void 0:a.labelStyle)?i:{}),n.loadingShown||(tc(c,{opacity:0,display:""}),el(c,{opacity:null!=(o=h.opacity)?o:.5},{duration:null!=(r=null==a?void 0:a.showDuration)?r:0}))),n.loadingShown=!0,l()},t.prototype.hideLoading=function(){var t,e,i=this.options,o=this.loadingDiv;o&&(o.className="highcharts-loading highcharts-loading-hidden",this.styledMode||el(o,{opacity:0},{duration:null!=(e=null==(t=i.loading)?void 0:t.hideDuration)?e:100,complete:function(){tc(o,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var r,n,s,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,c=[];ty(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=tf(t,a.options),a.userOptions=tD(a.userOptions,t);var d=t.chart;d&&(tD(!0,a.options.chart,d),this.setZoomOptions(),"className"in d&&a.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(a.propFromSeries(),r=!0),"alignTicks"in d&&(r=!0),"events"in d&&or(this,d),tz(d,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(a.isDirtyBox=!0,l||(s=!0))}),!a.styledMode&&d.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),tz(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[h[i]]?a[h[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&tD(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(tj(t[e]).forEach(function(t,o){if(t){var r,n=td(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][tW(t.index,o)])&&(n&&td(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&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:c.push(t)}))}),c.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),r&&a.axes.forEach(function(t){t.update({},!1)}),n&&a.series.forEach(function(t){t.chart&&t.update({},!1)});var p=null==d?void 0:d.width,u=d&&(tP(d.height)?tG(d.height,p||a.chartWidth):d.height);s||tO(p)&&p!==a.chartWidth||tO(u)&&u!==a.chartHeight?a.setSize(p,u,o):tW(e,!0)&&a.redraw(o),ty(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=t.options.lang,i=t.zooming.resetButton,o=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function n(){t.zoomOut()}ty(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,n,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),ty(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;ty(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"},r=o.type,n=r&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[r]].filter(function(t){return t.options.panningEnabled&&!t.options.isInternal}),s=i.options.chart;(null==s?void 0:s.panning)&&(s.panning=o),ty(this,"pan",{originalEvent:t},function(){i.transform({axes:n,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),tc(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e=this,i=t.axes,o=void 0===i?this.axes:i,r=t.event,n=t.from,s=void 0===n?{}:n,a=t.reset,h=t.selection,l=t.to,c=void 0===l?{}:l,d=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()}),ty(this,"transform",t);for(var v,m,y,x,b,k,w=t.hasZoomed||!1,M=0;M<o.length;M++){var S=o[M],T=S.horiz,A=S.len,C=S.minPointOffset,O=void 0===C?0:C,P=S.options,L=S.reversed,E=T?"width":"height",I=T?"x":"y",D=tW(c[E],S.len),B=tW(s[E],S.len),z=10>Math.abs(D)?1:D/B,R=(s[I]||0)+B/2-S.pos,N=R-((null!=(y=c[I])?y:S.pos)+D/2-S.pos)/z,W=L&&!f||!L&&f?-1:1;if(a||!(R<0)&&!(R>S.len)){var H=S.chart.polar||S.isOrdinal&&z<=1?0:O*W||0,X=S.toValue(N,!0),G=S.toValue(N+A/z,!0),F=X+H,Y=G-H,j=S.allExtremes;if(h&&h[S.coll].push({axis:S,min:Math.min(X,G),max:Math.max(X,G)}),F>Y&&(F=(v=[Y,F])[0],Y=v[1]),1===z&&!a&&"yAxis"===S.coll&&!j){for(var _=0,U=S.series;_<U.length;_++){var V=U[_],Z=V.getExtremes(V.getProcessedData(!0).modified.getColumn(V.pointValKey||"y")||[],!0);null!=j||(j={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),tO(Z.dataMin)&&tO(Z.dataMax)&&(j.dataMin=Math.min(Z.dataMin,j.dataMin),j.dataMax=Math.max(Z.dataMax,j.dataMax))}S.allExtremes=j}var K=tv(S.getExtremes(),j||{}),q=K.dataMin,$=K.dataMax,J=K.min,Q=K.max,tt=g.parse(P.min),te=g.parse(P.max),ti=null!=q?q:tt,to=null!=$?$:te,tr=Y-F,tn=S.categories?0:Math.min(tr,to-ti),ts=ti-tn*(td(tt)?0:P.minPadding),ta=to+tn*(td(te)?0:P.maxPadding),th=S.allowZoomOutside||1===z||"zoom"!==d&&z>1,tl=Math.min(null!=tt?tt:ts,ts,th?J:ts),tc=Math.max(null!=te?te:ta,ta,th?Q:ta);(!S.isOrdinal||1!==z||a)&&(F<tl&&(F=tl,z>=1&&(Y=F+tr)),Y>tc&&(Y=tc,z>=1&&(F=Y-tr)),(a||S.series.length&&(F!==J||Y!==Q)&&F>=tl&&Y<=tc)&&(h?h[S.coll].push({axis:S,min:F,max:Y}):(S.isPanning="zoom"!==d,S.isPanning&&"mousewheel"!==d&&(k=!0),S.setExtremes(a?void 0:F,a?void 0:Y,!1,!1,{move:N,trigger:d,scale:z}),!a&&(F>tl||Y<tc)&&(b=u)),w=!0),this.hasCartesianSeries||a||(b=u),r&&(this[T?"mouseDownX":"mouseDownY"]=r[T?"chartX":"chartY"]))}}return w&&(h?ty(this,"selection",h,function(){delete t.selection,t.trigger="zoom",e.transform(t)}):(!b||k||this.resetZoomButton?!b&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===d&&(null!=(x=this.options.chart.animation)?x:this.pointCount<100)))),w},t}();tv(oc.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oc.prototype.addAxis,[!0]],yAxis:[oc.prototype.addAxis,[!1]],series:[oc.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderRadius","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 od=$.composed;function op(){var t;(this.scrollablePixelsX||this.scrollablePixelsY)&&!this.scrollablePlotArea&&(this.scrollablePlotArea=new of(this)),null==(t=this.scrollablePlotArea)||t.applyFixed()}function ou(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var of=function(){function t(t){var e,i,o,r=t.options.chart,n=r.scrollablePlotArea||{},s=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(a.overflowX="auto"),t.scrollablePixelsY&&(a.overflowY="auto"),this.chart=t;var h=this.parentDiv=th("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),l=this.scrollingContainer=th("div",{className:"highcharts-scrolling"},a,h),c=this.innerContainer=th("div",{className:"highcharts-inner-container"},void 0,l),d=this.fixedDiv=th("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(e=r.style)?void 0:e.zIndex)||0)+2,top:0},void 0,!0),p=this.fixedRenderer=new e9(d,t.chartWidth,t.chartHeight,r.style);this.mask=p.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":null!=(i=n.opacity)?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(d,l),tc(t.renderTo,{overflow:"visible"}),ti(t,"afterShowResetZoom",s),ti(t,"afterApplyDrilldown",s),ti(t,"afterLayOutTitles",s),ti(l,"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;tX(od,"ScrollablePlotArea")&&(ti(t,"afterInit",ou),ti(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),ti(e,"render",op),ti(i,"show",ou))},t.afterSetSize=function(t,e){var i,o,r,n=t.options.chart.scrollablePlotArea||{},s=n.minWidth,a=n.minHeight,h=t.clipBox,l=t.plotBox,c=t.inverted;if(!t.renderer.forExport)if(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=tD(t.plotBox),l.width=t.plotWidth+=i,h[c?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),td(o)&&(t.scrollablePlotBox=tD(t.plotBox),l.height=t.plotHeight+=o,h[c?"width":"height"]+=o,r=!1)),td(r)){if(!e.skipAxes)for(var d=0,p=t.axes;d<p.length;d++){var u=p[d];(u.horiz===r||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,r=this.scrollingContainer,n=e.axisOffset,s=e.chartWidth,a=e.chartHeight,h=e.container,l=e.plotHeight,c=e.plotLeft,d=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,k=a+v;i.setSize(s,a),(null==o||o)&&(this.isDirty=!1,this.moveFixedElements()),eh(e.container),tc(h,{width:""+b+"px",height:""+k+"px"}),e.renderer.boxWrapper.attr({width:b,height:k,viewBox:["0 0",b,k].join(" ")}),null==(t=e.chartBackground)||t.attr({width:b,height:k}),tc(r,{width:""+s+"px",height:""+a+"px"}),td(o)||(r.scrollLeft=f*(void 0===y?0:y),r.scrollTop=v*(void 0===x?0:x));var w=d-n[0]-1,M=c-n[3]-1,S=d+l+n[2]+1,T=c+p+n[1]+1,A=c+p-f,C=d+l-v,O=[["M",0,0]];f?O=[["M",0,w],["L",c-1,w],["L",c-1,S],["L",0,S],["Z"],["M",A,w],["L",s,w],["L",s,S],["L",A,S],["Z"]]:v&&(O=[["M",M,0],["L",M,d-1],["L",T,d-1],["L",T,0],["Z"],["M",M,C],["L",M,a],["L",T,a],["L",T,C],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:O})},t.prototype.moveFixedElements=function(){var e,i=this.chart,o=i.container,r=i.inverted,n=i.scrollablePixelsX,s=i.scrollablePixelsY,a=this.fixedRenderer,h=t.fixedSelectors.slice();if(n&&!r?e=".highcharts-yaxis":n&&r||s&&!r?e=".highcharts-xaxis":s&&r&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e))for(var l=0,c=[""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)"];l<c.length;l++){var d=c[l];tX(h,d)}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 d=v[g];tg(h,d)}for(var m=0;m<h.length;m++){var d=h[m];[].forEach.call(o.querySelectorAll(d),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}(),og=eM.format,ov=iK.series,om=function(){function t(t,e,i,o,r){var n=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=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(n?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?a?"right":"left":"center")}return t.prototype.destroy=function(){tp(this,this.axis)},t.prototype.render=function(t){var e,i=this.axis.chart,o=this.options,r=o.format,n=(r?og(r,this,i):null==(e=o.formatter)?void 0:e.call(this,this))||"";if(this.label)this.label.attr({text:n,visibility:"hidden"});else{this.label=i.renderer.label(n,null,void 0,o.shape,void 0,void 0,o.useHTML,!1,"stack-labels");var s={r:o.borderRadius||0,text:n,padding:tW(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,ty(this,"afterRender")},t.prototype.setOffset=function(t,e,i,o,r,n){var s=this.alignOptions,a=this.axis,h=this.label,l=this.options,c=this.textAlign,d=a.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:n}),u=s.verticalAlign;if(h&&p){var f=h.getBBox(void 0,0),g=h.padding,v="justify"===tW(l.overflow,"justify"),m=void 0;s.x=l.x||0,s.y=l.y||0;var y=this.adjustStackPosition({labelBox:f,verticalAlign:u,textAlign:c}),x=y.x,b=y.y;p.x-=x,p.y-=b,h.align(s,!1,p),(m=d.isInsidePlot(h.alignAttr.x+s.x+x,h.alignAttr.y+s.y+b))||(v=!1),v&&ov.prototype.justifyDataLabel.call(a,h,s,h.alignAttr,f,p),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:f.width*tx(l.textAlign||"center"),rotationOriginY:f.height/2}),tW(!v&&l.crop,!0)&&(m=tO(h.x)&&tO(h.y)&&d.isInsidePlot(h.x-g+(h.width||0),h.y)&&d.isInsidePlot(h.x+g,h.y)),h[m?"show":"hide"]()}ty(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*tx(o)-1),y:e.height/2*2*(1-tx(i))}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,r=t.defaultX,n=t.xOffset,s=t.width,a=t.boxBottom,h=e.stacking.usePercentage?100:tW(o,this.total,0),l=e.toPixels(h),c=t.xAxis||i.xAxis[0],d=tW(r,c.translate(this.x))+n,p=Math.abs(l-e.toPixels(a||tO(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,f=this.isNegative;return u?{x:(f?l:l-p)-i.plotLeft,y:c.height-d-s+c.top-i.plotTop,width:p,height:s}:{x:d+c.transB-i.plotLeft,y:(f?l-p:l)-i.plotTop,width:s,height:p}},t}(),oy=iK.series.prototype;function ox(){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,tW(e.options.stack,""),t?o.top:o.left,t?o.height:o.width].join(","))})}function ob(){var t,e=this.stacking;if(e){var i=e.stacks;tz(i,function(t,e){tp(t),delete i[e]}),null==(t=e.stackTotalGroup)||t.destroy()}}function ok(){this.stacking||(this.stacking=new oC(this))}function ow(t,e,i,o){return!td(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 oM(){var t,e=this,i=e.yAxis,o=e.stackKey||"",r=i.stacking.stacks,n=e.getColumn("x",!0),s=e.options.stacking,a=e[s+"Stacker"];a&&[o,"-"+o].forEach(function(i){for(var o,s,h,l,c=n.length;c--;)s=n[c],t=e.getStackIndicator(t,s,e.index,i),(l=null==(h=null==(o=r[i])?void 0:o[s])?void 0:h.points[t.key||""])&&a.call(e,l,h,c)})}function oS(t,e,i){var o=e.total?100/e.total:0;t[0]=ta(t[0]*o),t[1]=ta(t[1]*o),this.stackedYData[i]=t[1]}function oT(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?oy.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function oA(t,e){var i,o,r,n,s,a,h,l,c,d=e||this.options.stacking;if(d&&this.reserveSpace()&&(({group:"xAxis"})[d]||"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(d):this.stackKey||"",k="-"+b,w=this.negStacks,M=t.stacking,S=M.stacks,T=M.oldStacks;for(M.stacksTouched+=1,c=0;c<g;c++){var A=p[c]||0,C=u[c],O=tO(C)&&C||0;l=(r=this.getStackIndicator(r,A,this.index)).key||"",S[h=(n=w&&O<(y?0:m))?k:b]||(S[h]={}),S[h][A]||((null==(i=T[h])?void 0:i[A])?(S[h][A]=T[h][A],S[h][A].total=null):S[h][A]=new om(t,t.options.stackLabels,!!n,A,x)),s=S[h][A],null!==C?(s.points[l]=s.points[this.index]=[tW(s.cumulative,y)],td(s.cumulative)||(s.base=l),s.touched=M.stacksTouched,r.index>0&&!1===this.singleStacks&&(s.points[l][0]=s.points[this.index+","+A+",0"][0])):(delete s.points[l],delete s.points[this.index]);var P=s.total||0;"percent"===d?(a=n?b:k,P=w&&(null==(o=S[a])?void 0:o[A])?(a=S[a][A]).total=Math.max(a.total||0,P)+Math.abs(O):ta(P+Math.abs(O))):"group"===d?tO(C)&&P++:P=ta(P+O),"group"===d?s.cumulative=(P||1)-1:s.cumulative=ta(tW(s.cumulative,y)+O),s.total=P,null!==C&&(s.points[l].push(s.cumulative),f[c]=s.cumulative,s.hasValidPoints=!0)}"percent"===d&&(M.usePercentage=!0),"group"!==d&&(this.stackedYData=f),M.oldStacks={}}}var oC=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,r="xAxis"===i.coll,n=i.options.reversedStacks,s=o.length;for(this.resetStacks(),this.usePercentage=!1,e=s;e--;)t=o[n?e:s-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<s;e++)o[e].modifyStacks();ty(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,tz(this.stacks,function(t){tz(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;tz(this.stacks,function(e){tz(e,function(i,o){tO(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,r=this.stacks,n=ec(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),tz(r,function(t){tz(t,function(t){t.render(s)})}),s.animate({opacity:1},n)},t}();(X||(X={})).compose=function(t,e,i){var o=e.prototype,r=i.prototype;o.getStacks||(ti(t,"init",ok),ti(t,"destroy",ob),o.getStacks=ox,r.getStackIndicator=ow,r.modifyStacks=oM,r.percentStacker=oS,r.setGroupedPoints=oT,r.setStackedPoints=oA)};var oO=X,oP=(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)}),oL=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oP(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;oL([this],this.zones,!0).forEach(function(r,n){var s,a=r.graph,h=a?"animate":"attr",l=r.dashStyle||e.dashStyle;if(a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(r.graph=a=t.chart.renderer.path(i).addClass("highcharts-graph"+(n?" highcharts-zone-graph-".concat(n-1," "):" ")+(n&&r.className||"")).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:!n&&e.lineColor||r.color||t.color||"var(--highcharts-neutral-color-20)","stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},l?s.dashstyle=l:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[h](s),e.shadow)){var c=t.chart.inverted,d={filterUnits:"userSpaceOnUse"},p=tI(e.shadow)?tD(c?{}:d,e.shadow):!!c||d;a.shadow(p)}a&&(a.startX=i.xMap,a.isArea=i.isArea)})},e.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,s=[],a=[],h=n.step,l=(t=t||r.points).reversed;return l&&t.reverse(),(h=({right:1,center:2})[h]||h&&3)&&l&&(h=4-h),(t=this.getValidPoints(t,!1,n.nullInteraction||!(n.connectNulls&&!e&&!i))).forEach(function(l,c){var d,p=l.plotX,u=l.plotY,f=t[c-1],g=l.isNull||"number"!=typeof u;(l.leftCliff||(null==f?void 0:f.rightCliff))&&!i&&(o=!0),g&&!td(e)&&c>0?o=!n.connectNulls:g&&!e?o=!0:(0===c||o?d=[["M",l.plotX,l.plotY]]:r.getPointSpline?d=[r.getPointSpline(t,l,c)]:h?(d=1===h?[["L",f.plotX,u]]:2===h?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):d=[["L",p,u]],a.push(l.x),h&&(a.push(l.x),2===h&&a.push(l.x)),s.push.apply(s,d),o=!1)}),s.xMap=a,r.graphPath=s,s},e.defaultOptions=tD(i5.defaultOptions,{legendSymbol:"lineMarker"}),e}(i5);iK.registerSeriesType("line",oE);var oI={threshold:0,legendSymbol:"areaMarker"},oD=(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)}),oB=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},oz=iK.seriesTypes.line,oR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oD(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;oB([this],this.zones,!0).forEach(function(t,r){var n,s={},a=t.fillColor||o.fillColor,h=t.area,l=h?"animate":"attr";h?(h.endX=e.preventGraphAnimation?null:i.xMap,h.animate({d:i})):(s.zIndex=0,(h=t.area=e.chart.renderer.path(i).addClass("highcharts-area"+(r?" highcharts-zone-area-".concat(r-1," "):" ")+(r&&t.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=a||t.color||e.color,s["fill-opacity"]=a?1:null!=(n=o.fillOpacity)?n:.75,h.css({pointerEvents:e.stickyTracking?"none":"auto"})),h[l](s),h.startX=i.xMap,h.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i,o,r=oz.prototype.getGraphPath,n=this.options,s=n.stacking,a=this.yAxis,h=[],l=[],c=this.index,d=a.stacking.stacks[this.stackKey],p=n.threshold,u=Math.round(a.getThreshold(n.threshold)),f=tW(n.connectNulls,"percent"===s),g=function(i,o,r){var n,f,g=t[i],v=t[o],m=s&&d[g.x].points[c],y=g[r+"Null"]||0,x=g[r+"Cliff"]||0,b=!0;m&&(x||y)?(n=(y?m[0]:m[1])+x,f=m[0]+x,b=!!y):!s&&v&&(v.isNull||!td(v.plotY))&&(n=f=p),void 0!==n&&(l.push({plotX:e,plotY:null===n?u:a.getThreshold(n),isNull:b,isCliff:!0}),h.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||!td(t[v].plotY),e=tW(t[v].rectPlotX,t[v].plotX),o=s?tW(t[v].yBottom,u):u,(!i||f)&&(f||g(v,v-1,"left"),i&&!s&&f||(l.push(t[v]),h.push({x:v,plotX:e,plotY:o})),f||g(v,v+1,"right"));var y=r.call(this,l,!0,!0);h.reversed=!0;var x=r.call(this,h,!0,!0),b=x[0];b&&"M"===b[0]&&(x[0]=["L",b[1],b[2]]);var k=y.concat(x);k.length&&k.push(["Z"]);var w=r.call(this,l,!1,f);return this.chart.series.length>1&&s&&l.some(function(t){return t.isCliff})&&(k.hasStackedCliffs=w.hasStackedCliffs=!0),k.xMap=y.xMap,this.areaPath=k,w},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],r=this.xAxis,n=this.yAxis,s=n.stacking.stacks[this.stackKey],a={},h=n.series,l=h.length,c=n.options.reversedStacks?1:-1,d=h.indexOf(e),p=n.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];tz(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var f=h.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 r=1===i?"rightNull":"leftNull",n=s[o[u+i]],p=0;if(n)for(var m=d;m>=0&&m<l;){var y=h[m].index;!(g=n.points[y])&&(y===e.index?a[t][r]=!0:f[m]&&(v=s[t].points[y])&&(p-=v[1]-v[0])),m+=c}a[t][1===i?"rightCliff":"leftCliff"]=p});else{for(var y=d;y>=0&&y<l;){var x=h[y].index;if(g=s[t].points[x]){m=g[1];break}y+=c}m||(m=0);var b=n.positiveValuesOnly&&m<=0?p:n.translate(m,!1,!0,!1,!0);i.push({isNull:!0,plotX:r.translate(t,!1,!1,!1,!0),x:t,plotY:b,yBottom:b})}})}return i},e.defaultOptions=tD(oz.defaultOptions,oI),e}(oz);tv(oR.prototype,{singleStacks:!1}),iK.registerSeriesType("area",oR);var oN=(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)}),oW=iK.seriesTypes.line,oH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oN(e,t),e.prototype.getPointSpline=function(t,e,i){var o,r,n,s,a=e.plotX||0,h=e.plotY||0,l=t[i-1],c=t[i+1];function d(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(d(l)&&d(c)){var p=l.plotX||0,u=l.plotY||0,f=c.plotX||0,g=c.plotY||0,v=0;o=(1.5*a+p)/2.5,r=(1.5*h+u)/2.5,n=(1.5*a+f)/2.5,s=(1.5*h+g)/2.5,n!==o&&(v=(s-r)*(n-a)/(n-o)+h-s),r+=v,s+=v,r>u&&r>h?(r=Math.max(u,h),s=2*h-r):r<u&&r<h&&(r=Math.min(u,h),s=2*h-r),s>g&&s>h?(s=Math.max(g,h),r=2*h-s):s<g&&s<h&&(s=Math.min(g,h),r=2*h-s),e.rightContX=n,e.rightContY=s,e.controlPoints={low:[o,r],high:[n,s]}}var m=["C",tW(l.rightContX,l.plotX,0),tW(l.rightContY,l.plotY,0),tW(o,a,0),tW(r,h,0),a,h];return l.rightContX=l.rightContY=void 0,m},e.defaultOptions=tD(oW.defaultOptions),e}(oW);iK.registerSeriesType("spline",oH);var oX=(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)}),oG=iK.seriesTypes,oF=oG.area,oY=oG.area.prototype,oj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oX(e,t),e.defaultOptions=tD(oH.defaultOptions,oF.defaultOptions),e}(oH);tv(oj.prototype,{getGraphPath:oY.getGraphPath,getStackPoints:oY.getStackPoints,drawGraph:oY.drawGraph}),iK.registerSeriesType("areaspline",oj);var o_={borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.2},select:{color:"var(--highcharts-neutral-color-20)",borderColor:"var(--highcharts-neutral-color-100)"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"var(--highcharts-background-color)"},oU=(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)}),oV=eo.parse,oZ=$.noop,oK=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oU(e,t),e.prototype.animate=function(t){var e,i,o=this,r=this.yAxis,n=r.pos,s=r.reversed,a=o.options,h=this.chart,l=h.clipOffset,c=h.inverted,d={},p=c?"translateX":"translateY";t&&l?(d.scaleY=.001,i=ts(r.toPixels(a.threshold||0),n,n+r.len),c?d.translateX=(i+=s?-Math.floor(l[+!!c]):Math.ceil(l[c?3:2]))-r.len:d.translateY=i+=s?Math.ceil(l[+!!c]):-Math.floor(l[c?3:2]),o.clipBox&&o.setClip(),o.group.attr(d)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},tv(ea(o.options.animation),{step:function(t,i){o.group&&(d[p]=e+i.pos*(n-e),o.group.attr(d))}})))},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,r=o.options,n=o.xAxis,s=o.yAxis,a=n.options.reversedStacks,h=n.reversed&&!a||!n.reversed&&a,l={},c=0;!1===r.grouping?c=1:o.chart.series.forEach(function(t){var e,r=t.yAxis,n=t.options;t.type===o.type&&t.reserveSpace()&&s.len===r.len&&s.pos===r.pos&&(n.stacking&&"group"!==n.stacking?(void 0===l[i=t.stackKey]&&(l[i]=c++),e=l[i]):!1!==n.grouping&&(e=c++),t.columnIndex=e)});var d=Math.min(Math.abs(n.transA)*(!(null==(t=n.brokenAxis)?void 0:t.hasBreaks)&&(null==(e=n.ordinal)?void 0:e.slope)||r.pointRange||n.closestPointRange||n.tickInterval||1),n.len),p=d*r.groupPadding,u=(d-2*p)/(c||1),f=Math.min(r.maxPointWidth||n.len,tW(r.pointWidth,u*(1-2*r.pointPadding))),g=(o.columnIndex||0)+ +!!h;return o.columnMetrics={width:f,offset:(u-f)/2+(p+g*u-d/2)*(h?-1:1),paddedWidth:u,columnCount:c},o.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var r=this.borderWidth,n=this.chart.inverted;return o=tl(e+o,r,n)-(e=tl(e,r,n)),this.options.crisp&&(i=tl(t+i,r)-(t=tl(t,r))),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var r,n=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,h=0;tz(null==(r=this.xAxis.stacking)?void 0:r.stacks,function(t){var e,o="number"==typeof i.x?null==(e=t[i.x.toString()])?void 0:e.points:void 0,r=null==o?void 0:o[n.index],l={};if(o&&tL(r)){var c=n.index,d=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=n.chart.series[t].options,i=e.stacking&&e.stack;if(td(i)){if(tO(l[i]))return c===t&&(c=l[i]),!1;l[i]=t}return!0}).sort(function(t,e){return e-t});a=d.indexOf(c),h=d.length}}),a=this.xAxis.reversed?h-1-a:a;var l=(h-1)*o.paddedWidth+e;t=(i.plotX||0)+l/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t,e,i=this,o=i.chart,r=i.options,n=i.dense=i.closestPointRange*i.xAxis.transA<2,s=i.borderWidth=null!=(t=r.borderWidth)?t:+!n,a=i.xAxis,h=i.yAxis,l=r.threshold,c=null!=(e=r.minPointLength)?e:5,d=i.getColumnMetrics(),p=d.width,u=i.pointXOffset=d.offset,f=i.dataMin,g=i.dataMax,v=i.translatedThreshold=h.getThreshold(l),m=i.barW=Math.max(p,1+2*s);r.pointPadding&&r.crisp&&(m=Math.ceil(m)),i5.prototype.translate.apply(i),i.points.concat(i.condemnedPoints).forEach(function(t){var e,n,s=null!=(e=t.yBottom)?e:v,y=999+Math.abs(s),x=t.plotX||0,b=ts(t.plotY,-y,h.len+y),k=Math.min(b,s),w=Math.max(b,s)-k,M=p,S=x+u,T=m;c&&Math.abs(w)<c&&(w=c,n=!h.reversed&&!t.negative||h.reversed&&t.negative,tO(l)&&tO(g)&&t.y===l&&g<=l&&(h.min||0)<l&&(f!==g||(h.max||0)<=l)&&(n=!n,t.negative=!t.negative),k=Math.abs(k-v)>c?s-(n?c:0):v-(n?c:0)),td(t.options.pointWidth)&&(S-=Math.round(((M=T=Math.ceil(t.options.pointWidth))-p)/2)),r.centerInCategory&&(S=i.adjustForMissingColumns(S,M,t,d)),t.barX=S,t.pointWidth=M,t.tooltipPos=o.inverted?[ts(h.len+h.pos-o.plotLeft-b,h.pos-o.plotLeft,h.len+h.pos-o.plotLeft),a.len+a.pos-o.plotTop-S-T/2,w]:[a.left-o.plotLeft+S+T/2,ts(b+h.pos-o.plotTop,h.pos-o.plotTop,h.len+h.pos-o.plotTop),w],t.shapeType=i.pointClass.prototype.shapeType||"roundedRect",t.shapeArgs=i.crispCol(S,k,T,t.isNull?0:w)}),ty(this,"afterColumnTranslate")},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i,o,r,n,s,a,h,l,c,d=this.options,p=this.pointAttrToOptions||{},u=p.stroke||"borderColor",f=p["stroke-width"]||"borderWidth",g=t&&t.color||this.color,v=t&&t[u]||d[u]||g,m=t&&t.options.dashStyle||d.dashStyle,y=null!=(r=null!=(o=null!=(i=null==t?void 0:t[f])?i:d[f])?o:this[f])?r:1,x=(null==t?void 0:t.isNull)&&d.nullInteraction?0:null!=(s=null!=(n=null==t?void 0:t.opacity)?n:d.opacity)?s:1;t&&this.zones.length&&(l=t.getZone(),g=t.options.color||l&&(l.color||t.nonZonedColor)||this.color,l&&(v=l.borderColor||v,m=l.dashStyle||m,y=l.borderWidth||y)),e&&t&&(c=(h=tD(d.states[e],(null==(a=t.options.states)?void 0:a[e])||{})).brightness,g=h.color||void 0!==c&&oV(g).brighten(h.brightness).get()||g,v=h[u]||v,y=h[f]||y,m=h.dashStyle||m,x=tW(h.opacity,x));var b={fill:g,stroke:v,"stroke-width":y,opacity:(null==t?void 0:t.condemned)?0:x};return m&&(b.dashstyle=m),b},e.prototype.drawPoints=function(t){t||(t=this.points.concat(this.condemnedPoints));var e,i=this,o=this.chart,r=i.options,n=r.nullInteraction,s=o.styledMode,a=o.renderer,h=r.animationLimit||250;t.forEach(function(t){var l=t.plotY,c=t.graphic,d=!!c,p=c&&o.pointCount<h?"animate":"attr";if(tO(l)&&(null!==t.y||n)){if(e=t.shapeArgs,c&&t.hasNewShapeType()&&(c=c.destroy()),!c){var u=e;t.origin&&o.pointCount<h&&(u=tD(e,t.getOrigin(t.origin,e)),s||(u.opacity=0),d=!0,p="animate"),t.graphic=c=a[t.shapeType](u).add(t.group||i.group)}d&&c[p](tD(e)),s||c[p](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),c.addClass(t.getClassName(),!0).attr({visibility:t.visible?"inherit":"hidden"})}else c&&(t.graphic=c.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i,o=this,r=o.chart,n=r.pointer,s=function(t){null==n||n.normalize(t);var e=null==n?void 0:n.getPointFromEvent(t);n&&e&&o.options.enableMouseTracking&&(r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})||o.allowOutsidePlotInteraction&&(null==n?void 0:n.inClass(t.target,"highcharts-point"))||(null==n?void 0:n.inClass(t.target,"highcharts-data-label")))&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){i=tL(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==n||n.onTrackerMouseOut(t)}).on("touchstart",s),!r.styledMode&&o.options.cursor&&t.css({cursor:o.options.cursor}))}),o._hasTracking=!0),ty(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)}),i5.prototype.remove.apply(t,arguments)},e.defaultOptions=tD(i5.defaultOptions,o_),e}(i5);tv(oK.prototype,{directTouch:!0,getSymbol:oZ,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),iK.registerSeriesType("column",oK);var oq=eM.format;!function(t){function e(){return h(this).some(function(t){return null==t?void 0:t.enabled})}function i(t,e,i,o,r){var n,s=this.chart,a=this.isCartesian&&s.inverted,h=t.condemned,l=t.origin,c=t.plotX,d=t.plotY,p=i.crop,u=i.distance,f=i.overflow,g=i.rotation,v=void 0===g?0:g,m=tx(i.align),y=tx(i.verticalAlign),x=t.pos(),b=td(c)&&td(d)&&s.isInsidePlot(c,Math.round(d),{inverted:a,paneCoordinates:!0,series:this}),k=this.visible&&t.visible&&td(c)&&(this.forceDL||h||b||tW(i.inside,!!this.options.stacking)&&o&&s.isInsidePlot(c,a?o.x+1:o.y+o.height-1,{inverted:a,paneCoordinates:!0,series:this}));if(x){var w=e.getBBox(),M=e.getBBox(void 0,0);o=tv({x:x[0],y:Math.round(x[1]),width:0,height:0},o||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(o[a?"x":"y"]=0,o[a?"width":"height"]=(null==(n=this.yAxis)?void 0:n.len)||0),tv(i,{width:w.width,height:w.height});var S=0,T=0;tO(u)&&!i.inside&&(S=u*(1-2*m),T=u*(1-2*y)),e.align(tD(i,{x:(i.x||0)+S,y:(i.y||0)+T,width:M.width,height:M.height}),!1,o,!1),e.distX=S,e.distY=T,e.alignAttr.x+=m*(M.width-w.width),e.alignAttr.y+=y*(M.height-w.height);var A=e.alignAttr.x+(w.width-M.width)/2,C=e.alignAttr.y+(w.height-M.height)/2;if(l){var O=t.pos(!1,l.x,l.y);if(O){var P=[O[0]-x[0],O[1]-x[1]];(this.is("column")||t.plotHigh)&&(P[+!a]=0),e.attr({x:A+P[0],y:C+P[1],opacity:.01}),e.placed=!0,r=!1}}var L={"text-align":e.alignAttr["text-align"]||"center",x:A,y:C,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2};if((h||!k)&&(L.opacity=0),e[e.placed?"animate":"attr"](L),0===v&&!h&&"justify"===(void 0===f?"justify":f)&&k&&o.height>=0)this.justifyDataLabel(e,i,e.alignAttr,w,o,r);else if((void 0===p||p)&&!h){var E=e.alignAttr,I=E.x,D=E.y;k=s.isInsidePlot(I,D,{paneCoordinates:!0,series:this})&&s.isInsidePlot(I+w.width-1,D+w.height-1,{paneCoordinates:!0,series:this})}i.shape&&!v&&e[r?"attr":"animate"]({anchorX:x[0],anchorY:x[1]})}e[r?"attr":"animate"]({visibility:k?"inherit":"hidden"}),e.placed=k}function o(t,e){ty(this,"initDataLabelsGroup",{index:t,zIndex:null==e?void 0:e.zIndex}),this.dataLabelsGroup=null==(i=this.dataLabelsGroups)?void 0:i[t];var i,o,r,n=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",null!=(o=null==e?void 0:e.zIndex)?o:6,null==(r=this.dataLabelsParentGroups)?void 0:r[t]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[t]=n,this.dataLabelsGroup=this.dataLabelsGroups[0],n}function r(t,e,i){var o=!!this.hasRendered,r=this.initDataLabelsGroup(t,i).attr({opacity:+o});return!o&&r&&(this.visible&&r.show(),this.options.animation?r.animate({opacity:1},e):r.attr({opacity:1})),r}function n(t){var e,i=this;t=t||this.points;var o=this,r=o.chart,n=o.options,s=r.renderer,l=r.options.chart,c=l.backgroundColor,d=l.plotBackgroundColor,p=s.getContrast(tP(d)&&d||tP(c)&&c||"var(--highcharts-background-color)"),u=[],f=h(o),g=f[0],v=g.animation,m=g.defer?ec(r,v,o):{defer:0,duration:0};ty(this,"drawDataLabels"),(null==(e=o.hasDataLabels)?void 0:e.call(o))&&t.concat(o.condemnedPoints).forEach(function(t){var e,h,l,c=t.dataLabels||[],d=t.color||o.color;tj(a(f,t.dlOptions||(null==(e=t.options)?void 0:e.dataLabels))).forEach(function(e,a){var h,l,f,g,v,y,x=e.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;if(i){var o=i.operator,r=t[i.property],n=i.value;return">"===o&&r>n||"<"===o&&r<n||">="===o&&r>=n||"<="===o&&r<=n||"=="===o&&r==n||"==="===o&&r===n||"!="===o&&r!=n||"!=="===o&&r!==n||!1}return!0}(t,e),b=e.backgroundColor,k=e.borderColor,w=e.distance,M=e.style,S=void 0===M?{}:M,T=tj(e.padding||0),A={},C=c[a],O=!C;if(x&&(g=td(f=tW(e[t.formatPrefix+"Format"],e.format))?oq(f,t,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e,t),v=e.rotation,!r.styledMode&&(S.color=tW(e.color,S.color,tP(o.color)?o.color:void 0,"var(--highcharts-neutral-color-100)"),"contrast"===S.color?("none"!==b&&(y=b),t.contrastColor=s.getContrast("auto"!==y&&"contrast"!==y&&tP(y)&&y||(tP(d)?d:"")),S.color=y&&"contrast"!==y||e.inside||0>tH(w||0)||n.stacking?t.contrastColor:p):delete t.contrastColor,n.cursor&&(S.cursor=n.cursor)),A={r:null!=(h=e.borderRadius)?h:3,rotation:v,padding:T[0],paddingLeft:T[3%T.length],paddingRight:T[1%T.length],zIndex:1},r.styledMode||(A.fill="auto"===b?t.color:b,A.stroke="auto"===k?t.color:k,A["stroke-width"]=e.borderWidth),tz(A,function(t,e){void 0===t&&delete A[e]})),!C||x&&td(g)&&!!(C.div||(null==(l=C.text)?void 0:l.foreignObject))==!!e.useHTML&&(C.rotation&&e.rotation||C.rotation===e.rotation)||(C=void 0,O=!0),x&&td(g)&&""!==g&&(C?A.text=g:(C=s.label(g,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":"")),C)){C.options=e,C.attr(A),r.styledMode?S.width&&C.css({width:S.width,textOverflow:S.textOverflow,whiteSpace:S.whiteSpace}):C.css(S).shadow(e.shadow),ty(C,"beforeAddingDataLabel",{labelOptions:e,point:t});var P=u[a]=u[a]||i.initDataLabels(a,m,e);C.added||C.add(P),o.alignDataLabel(t,C,e,void 0,O),C.isActive=!0,c[a]&&c[a]!==C&&c[a].destroy(),c[a]=C}});for(var g=c.length;g--;)(null==(h=c[g])?void 0:h.isActive)?c[g].isActive=!1:(null==(l=c[g])||l.destroy(),c.splice(g,1));t.dataLabel=c[0],t.dataLabels=c}),ty(this,"afterDrawDataLabels")}function s(t,e,i,o,r,n){var s,a,h,l=this.chart,c=e.align,d=e.verticalAlign,p=t.distX,u=void 0===p?0:p,f=t.distY,g=void 0===f?0:f,v=t.box?0:t.padding||0,m=l.inverted?this.yAxis:this.xAxis,y=m?m.left-l.plotLeft:0,x=l.inverted?this.xAxis:this.yAxis,b=x?x.top-l.plotTop:0,k=e.x,w=void 0===k?0:k,M=e.y,S=void 0===M?0:M;return(s=(i.x||0)-u+v+y)<0&&("right"===c&&w>=0?(e.align="left",e.inside=!0,w-=u):w-=s,a=!0),(s=(i.x||0)+o.width-u-v+y)>l.plotWidth&&("left"===c&&w<=0?(e.align="right",e.inside=!0,w-=u):w+=l.plotWidth-s,a=!0),(s=(i.y||0)-g+v+b)<0&&("bottom"===d&&S>=0?(e.verticalAlign="top",e.inside=!0,S-=g):S-=s,h=!0),(s=(i.y||0)+o.height-g-v+b)>l.plotHeight&&("top"===d&&S<=0?(e.verticalAlign="bottom",e.inside=!0,S-=g):S+=l.plotHeight-s,h=!0),(a||h)&&(e.x=a?w:w+u,e.y=h?S:S+g,t.placed=!n,t.align(e,void 0,r)),a||h}function a(t,e){var i,o=[];if(tL(t)&&!tL(e))o=t.map(function(t){return tD(t,e)});else if(tL(e)&&!tL(t))o=e.map(function(e){return tD(t,e)});else if(tL(t)||tL(e)){if(tL(t)&&tL(e))for(i=Math.max(t.length,e.length);i--;)o[i]=tD(t[i],e[i])}else o=tD(t,e);return o}function h(t){var e,i,o=t.chart.options.plotOptions;return tj(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))}t.compose=function(t){var h=t.prototype;h.initDataLabels||(h.initDataLabels=r,h.initDataLabelsGroup=o,h.alignDataLabel=i,h.drawDataLabels=n,h.justifyDataLabel=s,h.mergeArrays=a,h.hasDataLabels=e)}}(G||(G={}));var o$=G,oJ=$.composed,oQ=iK.series;function o0(t,e,i,o,r){var n,s,a,h,l,c=this.chart,d=this.options,p=c.inverted,u=(null==(n=this.xAxis)?void 0:n.len)||c.plotSizeX||0,f=(null==(s=this.yAxis)?void 0:s.len)||c.plotSizeY||0,g=t.dlBox||t.shapeArgs,v=null!=(a=t.below)?a:(t.plotY||0)>(null!=(h=this.translatedThreshold)?h:f),m=null!=(l=i.inside)?l:!!d.stacking;if(g){if(o=tD(g),"allow"!==i.overflow||!1!==i.crop||!1!==d.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"),oQ.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}(F||(F={})).compose=function(t){o$.compose(oQ),tX(oJ,"ColumnDataLabel")&&(t.prototype.alignDataLabel=o0)};var o1=F,o2=(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)}),o5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o2(e,t),e.defaultOptions=tD(oK.defaultOptions,{}),e}(oK);tv(o5.prototype,{inverted:!0}),iK.registerSeriesType("bar",o5);var o3={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/>"}},o6=(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)}),o9=iK.seriesTypes,o4=o9.column,o8=o9.line,o7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o6(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,r){["x","y"].forEach(function(n,s){if(e[n]&&!o.isNull){var a="plot".concat(n.toUpperCase()),h=t[""+n+"Axis"],l=e[n]*h.transA;if(h&&!h.logarithmic){var c,d=Math.max(0,(o[a]||0)-l),p=Math.min(h.len,(o[a]||0)+l);o[a]=d+(p-d)*((c=1e4*Math.sin(r+s*i))-Math.floor(c)),"x"===n&&(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=tD(o8.defaultOptions,o3),e}(o8);tv(o7.prototype,{allowOutsidePlotInteraction:!0,drawTracker:o4.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),ti(o7,"afterTranslate",function(){this.applyJitter()}),iK.registerSeriesType("scatter",o7);var rt=$.deg2rad;(M=Y||(Y={})).getCenter=function(){var t,e,i,o=this.options,r=this.chart,n=2*(o.slicedOffset||0),s=r.plotWidth-2*n,a=r.plotHeight-2*n,h=o.center,l=Math.min(s,a),c=o.thickness,d=o.size,p=o.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof p&&(p=parseFloat(p));var u=[tW(null==h?void 0:h[0],"50%"),tW(null==h?void 0:h[1],"50%"),tW(d&&d<0?void 0:o.size,"100%"),tW(p&&p<0?void 0:o.innerSize||0,"0%")];for(e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=tG(i,[s,a,l,u[2]][e])+(t?n:0);return u[3]>u[2]&&(u[3]=u[2]),tO(c)&&2*c<u[2]&&c>0&&(u[3]=u[2]-2*c),ty(this,"afterGetCenter",{positions:u}),u},M.getStartAndEndRadians=function(t,e){var i=tO(t)?t:0,o=tO(e)&&e>i&&e-i<360?e:i+360;return{start:rt*(i+-90),end:rt*(o+-90)}};var re=Y,ri=(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)}),ro=function(){return(ro=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},rr=function(t){function e(e,i,o){var r=t.call(this,e,i,o)||this;r.half=0,null!=r.name||(r.name=e.chart.options.lang.pieSliceName);var n=function(t){r.slice("select"===t.type)};return ti(r,"select",n),ti(r,"unselect",n),r}return ri(e,t),e.prototype.getConnectorPath=function(t){var e=t.dataLabelPosition,i=t.options||{},o=i.connectorShape,r=this.connectorShapes[o]||o;return e&&r.call(this,ro(ro({},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 tO(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,r=this.series;ed(i,r.chart),e=tW(e,!0),this.sliced=this.options.sliced=null!=t?t:!this.sliced,r.options.data&&(r.options.data[r.data.indexOf(this)]=this.options),null==(o=this.graphic)||o.animate(this.getTranslate())},e}(iL);tv(rr.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,r=e.touchingSliceAt,n=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-r.x,2*o.y-r.y,o.x,o.y]:["L",o.x,o.y];return[["M",t.x,t.y],n,["L",r.x,r.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,r=void 0===o?this.angle||0:o,n=e.breakAt,s=e.touchingSliceAt,a=this.series,h=a.center,l=h[0],c=h[1],d=h[2]/2,p=a.chart,u=p.plotLeft,f=p.plotWidth,g="left"===t.alignment,v=t.x,m=t.y,y=n.x;if(i.crookDistance){var x=tG(i.crookDistance,1);y=g?l+d+(f+u-l-d)*(1-x):u+(l-d)*x}else y=l+(c-m)*Math.tan(r-Math.PI/2);var b=[["M",v,m]];return(g?y<=v&&y>=n.x:y>=v&&y<=n.x)&&b.push(["L",y,m]),b.push(["L",n.x,n.y],["L",s.x,s.y]),b}}});var rn={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:"var(--highcharts-background-color)",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},rs=(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)}),ra=re.getStartAndEndRadians,rh=$.noop,rl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rs(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,r=t.shapeArgs;i&&r&&(i.attr({r:tW(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=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:eY.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":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"var(--highcharts-neutral-color-20)"})):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.getXPos=function(t,e,i,o){var r=this.center,n=this.radii?this.radii[i.index]||0:r[2]/2,s=o.dataLabelPosition,a=(null==s?void 0:s.distance)||0,h=Math.asin(ts((t-r[1])/(n+a),-1,1));return r[0]+Math.cos(h)*(n+a)*(e?-1:1)+(a>0?e?-5:5:0)},e.prototype.hasData=function(){return this.points.some(function(t){return t.visible})},e.prototype.redrawPoints=function(){var t,e,i,o,r=this,n=r.chart;this.drawEmpty(),r.group&&!n.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(s){var a={};e=s.graphic,!s.isNull&&e?(o=s.shapeArgs,t=s.getTranslate(),n.styledMode||(i=r.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(r.center).attr(o).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),s.delayedRendering=!1):(e.setRadialReference(r.center),n.styledMode||tD(!0,a,i),tD(!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){ty(this,"translate"),this.generatePoints();var e,i,o,r,n,s,a,h=this.options,l=h.slicedOffset,c=ra(h.startAngle,h.endAngle),d=this.startAngleRad=c.start,p=(this.endAngleRad=c.end)-d,u=this.points,f=h.ignoreHiddenPoint,g=u.length,v=0;for(t||(this.center=t=this.getCenter()),s=0;s<g;s++){a=u[s],e=d+v*p,a.isValid()&&(!f||a.visible)&&(v+=a.percentage/100),i=d+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)*l),translateY:Math.round(Math.sin(o)*l)},r=Math.cos(o)*t[2]/2,n=Math.sin(o)*t[2]/2,a.tooltipPos=[t[0]+.7*r,t[1]+.7*n],a.half=+(o<-Math.PI/2||o>Math.PI/2),a.angle=o}ty(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e,i=this.points,o=i.length,r=this.options.ignoreHiddenPoint,n=0;for(t=0;t<o;t++)(e=i[t]).isValid()&&(!r||e.visible)&&(n+=e.y);for(t=0,this.total=n;t<o;t++)(e=i[t]).percentage=n>0&&(e.visible||!r)?e.y/n*100:0,e.total=n},e.defaultOptions=tD(i5.defaultOptions,rn),e}(i5);tv(rl.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:oK.prototype.drawTracker,getCenter:re.getCenter,getSymbol:rh,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:oK.prototype.pointAttribs,pointClass:rr,requireSorting:!1,searchPoint:rh,trackerGroups:["group","dataLabelsGroup"]}),iK.registerSeriesType("pie",rl);var rc=$.composed,rd=$.noop,rp=eS.distribute,ru=iK.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,r){var n=r.dataLabelPosition;return t.getXPos(i<((null==n?void 0:n.top)||0)+2||i>((null==n?void 0:n.bottom)||0)-2?o:i,e.half,e,r)},justify:function(t,e,i,o){var r;return o[0]+(t.half?-1:1)*(i+((null==(r=e.dataLabelPosition)?void 0:r.distance)||0))},alignToPlotEdges:function(t,e,i,o){var r=t.getBBox().width;return e?r+o:i-r-o},alignToConnectors:function(t,e,i,o){var r,n=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>n&&(n=r)}),e?n+o:i-n-o}};function i(t,e){var i=Math.PI/2,o=t.shapeArgs||{},r=o.start,n=void 0===r?0:r,s=o.end,a=void 0===s?0:s,h=t.angle||0;e>0&&n<i&&a>i&&h>i/2&&h<1.5*i&&(h=h<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+a)/2));var l=this.center,c=this.options,d=l[2]/2,p=Math.cos(h),u=Math.sin(h),f=l[0]+p*d,g=l[1]+u*d,v=Math.min((c.slicedOffset||0)+(c.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:h,breakAt:{x:f+p*v,y:g+u*v},touchingSliceAt:{x:f,y:g}},distance:e}}function o(){var t,e,i,o,r=this,n=this,s=n.points,a=n.chart,h=a.plotWidth,l=a.plotHeight,c=a.plotLeft,d=Math.round(a.chartWidth/3),p=n.center,u=p[2]/2,f=p[1],g=[[],[]],v=[0,0,0,0],m=n.dataLabelPositioners,y=0;n.visible&&(null==(t=n.hasDataLabels)?void 0:t.call(n))&&(s.forEach(function(t){(t.dataLabels||[]).forEach(function(t){t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),ru.prototype.drawDataLabels.apply(n),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,n=p[2]/2,s=e.options,a=tG((null==s?void 0:s.distance)||0,n);0===i&&g[t.half].push(t),!td(null==(o=null==s?void 0:s.style)?void 0:o.width)&&e.getBBox().width>d&&(e.css({width:Math.round(.7*d)+"px"}),e.shortened=!0),e.dataLabelPosition=r.getDataLabelPosition(t,a),y=Math.max(y,a)})}),g.forEach(function(t,e){var r,s,d,g=t.length,x=[],b=0;g&&(n.sortByAngle(t,e-.5),y>0&&(r=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))})}),rp(x,d=s+b-r,d/5)),t.forEach(function(r){(r.dataLabels||[]).forEach(function(s){var a=s.options||{},d=r.distributeBox,f=s.dataLabelPosition,g=(null==f?void 0:f.natural.y)||0,y=a.connectorPadding||0,b=s.lineHeight||21,k=(b-s.getBBox().height)/2,w=0,M=g,S="inherit";if(f){if(x&&td(d)&&f.distance>0&&(void 0===d.pos?S="hidden":(o=d.size,M=m.radialDistributionY(r,s))),a.justify)w=m.justify(r,s,u,p);else switch(a.alignTo){case"connectors":w=m.alignToConnectors(t,e,h,c);break;case"plotEdges":w=m.alignToPlotEdges(s,e,h,c);break;default:w=m.radialDistributionX(n,r,M-k,g,s)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:w+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:M+(a.y||0)-b/2},f.computed.x=w,f.computed.y=M-k,tW(a.crop,!0)){i=s.getBBox().width;var T=void 0;w-i<y&&1===e?(T=Math.round(i-w+y),v[3]=Math.max(T,v[3])):w+i>h-y&&0===e&&(T=Math.round(w+i-h+y),v[1]=Math.max(T,v[1])),M-o/2<0?v[0]=Math.max(Math.round(-M+o/2),v[0]):M+o/2>l&&(v[2]=Math.max(Math.round(M+o/2-l),v[2])),f.sideOverflow=T}}})}))}),(0===tr(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;null==(i=t.dataLabels)||i.forEach(function(i,o){var r,s,h=i.options||{},l=h.connectorColor,c=h.connectorWidth,d=void 0===c?1:c,p=i.dataLabelPosition;if(tO(d)){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==(r=n.dataLabelsGroups)?void 0:r[o])),a.styledMode||e.attr({"stroke-width":d,stroke:l||t.color||"var(--highcharts-neutral-color-60)"}),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 r(){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 n(t){var e=this.center,i=this.options,o=i.center,r=i.minSize||80,n=r,s=null!==i.size;return!s&&(null!==o[0]?n=Math.max(e[2]-Math.max(t[1],t[3]),r):(n=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==o[1]?n=ts(n,r,e[2]-Math.max(t[0],t[2])):(n=ts(n,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,tG(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(o$.compose(ru),tX(rc,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=rd,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=r,s.verifyDataLabelOverflow=n}}}(j||(j={}));var rf=j;(A=_||(_={})).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}},A.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},A.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},A.pointInPolygon=function(t,e){var i,o,r=t.x,n=t.y,s=e.length,a=!1;for(i=0,o=s-1;i<s;o=i++){var h=e[i],l=h[0],c=h[1],d=e[o],p=d[0],u=d[1];c>n!=u>n&&r<(p-l)*(n-c)/(u-c)+l&&(a=!a)}return a};var rg=_.pointInPolygon;function rv(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||t.placed?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),ty(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),o}var rm=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},ry=$.noop,rx={radius:0,scope:"stack",where:void 0},rb=ry,rk=ry;function rw(t,e,i,o,r){void 0===r&&(r={});var n=rb(t,e,i,o,r),s=r.brStart,a=void 0===s||s,h=r.brEnd,l=void 0===h||h,c=r.innerR,d=void 0===c?0:c,p=r.r,u=void 0===p?i:p,f=r.start,g=r.end;if(r.open||!r.borderRadius)return n;for(var v=(void 0===g?0:g)-(void 0===f?0:f),m=Math.sin(v/2),y=Math.max(Math.min(tG(r.borderRadius||0,u-d),(u-d)/2,u*m/(1+m)),0),x=Math.min(y,v/Math.PI*2*d),b=n.length-1;b--;)(a||0!==b&&3!==b)&&(l||1!==b&&2!==b)&&!function(t,e,i){var o,r,n,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,r=a,n=!0):"A"===s[0]&&("M"===a[0]||"L"===a[0])&&(o=a,r=s),o&&r&&r.params){var h=r[1],l=r[5],c=r.params,d=c.start,p=c.end,u=c.cx,f=c.cy,g=l?h-i:h+i,v=g?Math.asin(i/g):0,m=l?v:-v,y=Math.cos(v)*g;n?(c.start=d+m,o[1]=u+y*Math.cos(d),o[2]=f+y*Math.sin(d),t.splice(e+1,0,["A",i,i,0,0,1,u+h*Math.cos(c.start),f+h*Math.sin(c.start)])):(c.end=p-m,r[6]=u+h*Math.cos(c.end),r[7]=f+h*Math.sin(c.end),t.splice(e+1,0,["A",i,i,0,0,1,u+y*Math.cos(p),f+y*Math.sin(p)])),r[4]=Math.abs(c.end-c.start)<Math.PI?0:1}}(n,b,b>1?x:y);return n}function rM(){var t,e;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d()))for(var i=this.options,o=this.yAxis,r="percent"===i.stacking,n=null==(e=null==(t=t8.plotOptions)?void 0:t[this.type])?void 0:e.borderRadius,s=rS(i.borderRadius,tI(n)?n:{}),a=o.options.reversed,h=0,l=this.points;h<l.length;h++){var c=l[h],d=c.shapeArgs;if("roundedRect"===c.shapeType&&d){var p=d.width,u=void 0===p?0:p,f=d.height,g=void 0===f?0:f,v=d.y,m=void 0===v?0:v,y=g;if("stack"===s.scope&&c.stackTotal){var x=o.translate(r?100:c.stackTotal,!1,!0,!1,!0),b=o.translate(i.threshold||0,!1,!0,!1,!0),k=this.crispCol(0,Math.min(x,b),0,Math.abs(x-b));m=k.y,y=k.height}var w=(c.negative?-1:1)*(a?-1:1)==-1,M=s.where;!M&&this.is("waterfall")&&Math.abs((c.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(M="all"),M||(M="end");var S=Math.min(tG(s.radius,u),u/2,"all"===M?y/2:1/0)||0;"end"===M&&(w&&(m-=S),y+=S),tv(d,{brBoxHeight:y,brBoxY:m,r:S})}}}function rS(t,e){return tI(t)||(t={radius:t||0}),tD(rx,e,t)}function rT(){for(var t=rS(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=tG(t.radius,(o.r||0)-(o.innerR||0)))}}function rA(t,e,i,o,r){void 0===r&&(r={});var n=rk(t,e,i,o,r),s=r.r,a=void 0===s?0:s,h=r.brBoxHeight,l=void 0===h?o:h,c=r.brBoxY,d=void 0===c?e:c,p=e-d,u=d+l-(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],k=[t+i,e+o-g],w=[t+i-g,e+o],M=[t+g,e+o],S=[t,e+o-g],T=[t,e+f],A=function(t,e){return Math.sqrt(Math.pow(t,2)-Math.pow(e,2))};if(v){var C=A(f,f-v);y[0]-=C,x[0]+=C,b[1]=T[1]=e+f-v}if(o<f-v){var C=A(f,f-v-o);b[0]=k[0]=t+i-f+C,w[0]=Math.min(b[0],w[0]),M[0]=Math.max(k[0],M[0]),S[0]=T[0]=t+f-C,b[1]=T[1]=e+o}if(m){var C=A(g,g-m);w[0]+=C,M[0]-=C,k[1]=S[1]=e+o-g+m}if(o<g-m){var C=A(g,g-m-o);b[0]=k[0]=t+i-g+C,x[0]=Math.min(b[0],x[0]),y[0]=Math.max(k[0],y[0]),S[0]=T[0]=t+g-C,k[1]=S[1]=e}return n.length=0,n.push(rm(["M"],y,!0),rm(["L"],x,!0),rm(["A",f,f,0,0,1],b,!0),rm(["L"],k,!0),rm(["A",g,g,0,0,1],w,!0),rm(["L"],M,!0),rm(["A",g,g,0,0,1],S,!0),rm(["L"],T,!0),rm(["A",f,f,0,0,1],y,!0),["Z"]),n}function rC(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=tW(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=tW(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=tW(i.minWidth,0)&&this.chartHeight>=tW(i.minHeight,0)}).call(this,this)&&e.push(t._id)}function rO(t,e){var i,o=this,r=this.options.responsive,n=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach(function(t){void 0===t._id&&(t._id=tQ()),o.matchResponsiveRule(t,s)},this);var a=tD.apply(void 0,s.map(function(t){return tS((null==r?void 0:r.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 h=null==n?void 0:n.ruleIds;s!==h&&(n&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(n.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=tf(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)}(U||(U={})).compose=function(t){var e=t.prototype;return e.matchResponsiveRule||tv(e,{matchResponsiveRule:rC,setResponsive:rO}),t};var rP=U;$.AST=ev,$.Axis=iu,$.Chart=oc,$.Color=eo,$.DataLabel=o$,$.DataTable=iX,$.DataTableCore=iX,$.Fx=es,$.HTMLElement=it,$.Legend=ot,$.LegendSymbol=ij,$.PlotLineOrBand=ix,$.Point=iL,$.Pointer=iN,$.Series=i5,$.SeriesRegistry=iK,$.StackItem=om,$.SVGElement=eI,$.SVGRenderer=e9,$.Templating=eM,$.Tick=is,$.Time=t6,$.Tooltip=iO,$.addEvent=ti,$.animObject=ea,$.animate=el,$.arrayMax=tr,$.arrayMin=to,$.attr=tn,$.chart=oc.chart,$.clamp=ts,$.color=eo.parse,$.correctFloat=ta,$.createElement=th,$.css=tc,$.crisp=tl,$.dateFormat=eM.dateFormat,$.defaultOptions=t8,$.defined=td,$.destroyObjectProperties=tp,$.diffObjects=tf,$.discardElement=tu,$.distribute=eS.distribute,$.erase=tg,$.error=tq,$.extend=tv,$.extendClass=tm,$.find=tS,$.fireEvent=ty,$.format=eM.format,$.getAlignFactor=tx,$.getClosestDistance=tb,$.getDeferredAnimation=ec,$.getMagnitude=tk,$.getNestedProperty=tw,$.getOptions=function(){return t8},$.getStyle=tM,$.insertItem=t$,$.isArray=tL,$.isClass=tC,$.isDOMElement=tA,$.isFunction=tE,$.isNumber=tO,$.isObject=tI,$.isString=tP,$.internalClearTimeout=tT,$.merge=tD,$.normalizeTickInterval=tB,$.numberFormat=eM.numberFormat,$.objectEach=tz,$.offset=tR,$.pad=tN,$.pick=tW,$.pushUnique=tX,$.pInt=tH,$.relativeLength=tG,$.removeEvent=tY,$.replaceNested=tF,$.seriesType=iK.seriesType,$.setAnimation=ed,$.setOptions=function(t){var e;return ty($,"setOptions",{options:t}),tD(!0,t8,t),t.time&&t7.update(t8.time),t.lang&&"locale"in t.lang&&t7.update({locale:t.lang.locale}),(null==(e=t.lang)?void 0:e.chartTitle)&&(t8.title=t9(t9({},t8.title),{text:t.lang.chartTitle})),t8},$.splat=tj,$.stableSort=t_,$.stop=eh,$.syncTimeout=tU,$.time=t7,$.ucfirst=tV,$.timers=es.timers,$.timeUnits=tJ,$.uniqueKey=tQ,$.useSerialIds=function(t){return L=tW(t,L)},$.wrap=function(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)))}},function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var r=i.prototype.symbols;ti(t,"afterColumnTranslate",rM,{order:9}),ti(o,"afterTranslate",rT),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),rb=r.arc,rk=r.roundedRect,r.arc=rw,r.roundedRect=rA}}($.Series,$.SVGElement,$.SVGRenderer),o1.compose($.Series.types.column),o$.compose($.Series),ig.compose($.Axis),it.compose($.SVGRenderer),ot.compose($.Chart),iv.compose($.Axis),(O=(C=$.Chart).prototype).hideOverlappingLabels||(O.hideOverlappingLabels=function(t){for(var e,i,o,r,n,s=t.length,a=!1,h=0;h<s;h++)(e=t[h])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i,o;if(t&&(!t.alignAttr||t.placed)){var r=t.box?0:t.padding||0,n=(null==(e=t.dataLabelPosition)?void 0:e.posAttribs)||t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.getBBox(),a=s.height,h=s.polygon,l=s.width,c=tx(t.alignValue)*l;return t.width=l,t.height=a,{x:n.x+((null==(i=t.parentGroup)?void 0:i.translateX)||0)+r-c,y:n.y+((null==(o=t.parentGroup)?void 0:o.translateY)||0)+r,width:l-2*r,height:a-2*r,polygon:h}}}(e));t.sort(function(t,e){return((null==e?void 0:e.labelrank)||0)-((null==t?void 0:t.labelrank)||0)});for(var h=0;h<s;++h)for(var l=null==(r=(i=t[h])&&i.absoluteBox)?void 0:r.polygon,c=h+1;c<s;++c){n=(o=t[c])&&o.absoluteBox;var d=!1;if(r&&n&&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=n.polygon;if(l&&p&&l!==p?function(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(rg({x:o[0],y:o[1]},e))return!0}return!1}(l,p)&&(d=!0):n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y||(d=!0),d){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&&rv(v,this)&&(a=!0)}a&&ty(this,"afterHideAllOverlappingLabels")},ti(C,"render",function(){for(var t,e=this,i=[],o=0,r=e.labelCollectors||[];o<r.length;o++){var n=r[o];i=i.concat(n())}for(var s=0,a=e.yAxis||[];s<a.length;s++){var h=a[s];h.stacking&&h.options.stackLabels&&!h.options.stackLabels.allowOverlap&&tz(h.stacking.stacks,function(t){tz(t,function(t){t.label&&i.push(t.label)})})}for(var l=function(o){if(o.visible&&(null==(t=o.hasDataLabels)?void 0:t.call(o))){var r=function(t){for(var r=function(t){t.visible&&(t.dataLabels||[]).forEach(function(r){var n,s,a=r.options||{};r.labelrank=tW(a.labelrank,t.labelrank,null==(n=t.shapeArgs)?void 0:n.height),(null!=(s=a.allowOverlap)?s:o.is("pie")&&Number(a.distance)>0)?(r.oldOpacity=r.opacity,r.newOpacity=1,rv(r,e)):i.push(r)})},n=0;n<t.length;n++)r(t[n])};r(o.nodes||[]),r(o.points)}},c=0,d=e.series||[];c<d.length;c++)l(d[c]);this.hideOverlappingLabels(i)})),rf.compose($.Series.types.pie),ix.compose($.Chart,$.Axis),iN.compose($.Chart),rP.compose($.Chart),of.compose($.Axis,$.Chart,$.Series),oO.compose($.Axis,$.Chart,$.Series),iO.compose($.Pointer);var rL=$.isTouchDevice,rE=[];function rI(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function rD(){var t,e,i,o,r=this.legend,n=this.navigator;if(n){e=r&&r.options,i=n.xAxis,o=n.yAxis;var s=n.scrollbarHeight,a=n.scrollButtonSize;this.inverted?(n.left=n.opposite?this.chartWidth-s-n.height:this.spacing[3]+s,n.top=this.plotTop+a):(n.left=tW(i.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.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?r.legendHeight+tW(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&o&&(this.inverted?i.options.left=o.options.left=n.left:i.options.top=o.options.top=n.top,i.setAxisSize(),o.setAxisSize())}}function rB(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new V(this),tW(t.redraw,!0)&&this.redraw(t.animation))}function rz(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new V(this))}function rR(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!rL&&"x"===this.zooming.type||rL&&"x"===this.zooming.pinchType))return!1}function rN(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function rW(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(tD(!0,this.options.navigator,e),tD(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var rH=function(t,e){if(tX(rE,t)){var i=t.prototype;V=e,i.callbacks.push(rN),ti(t,"afterAddSeries",rI),ti(t,"afterSetChartSize",rD),ti(t,"afterUpdate",rB),ti(t,"beforeRender",rz),ti(t,"beforeShowResetZoom",rR),ti(t,"update",rW)}},rX=$.isTouchDevice;function rG(){this.navigatorAxis||(this.navigatorAxis=new rY(this))}function rF(t){var e,i=this.chart,o=i.options,r=o.navigator,n=this.navigatorAxis,s=i.zooming.pinchType,a=o.rangeSelector,h=i.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==a?void 0:a.enabled))){if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||rX&&"xy"===s)&&this.options.range){var l=n.previousZoom;td(t.min)?n.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],n.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}var rY=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),ti(t,"init",rG),ti(t,"setExtremes",rF))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var r=this.axis,n=(r.pointRange||0)/2,s=tW(i,r.translate(t,!0,!r.horiz)),a=tW(o,r.translate(e,!0,!r.horiz));return td(i)||(s=ta(s+n)),td(o)||(a=ta(a-n)),tO(s)&&tO(a)||(s=a=void 0),{min:s,max:a}},t}(),rj={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===iK.seriesTypes.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:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",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}},r_=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},rU={"navigator-handle":function(t,e,i,o,r){void 0===r&&(r={});var n=r.width?r.width/2:i,s=tG(r.borderRadius||0,Math.min(2*n,o));return r_([["M",-1.5,(o=r.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],eY.rect(-n-1,.5,2*n+1,o,{r:s}),!0)}},rV=$.composed,rZ={setFixedRange:function(t){var e=this.xAxis[0];td(e.dataMax)&&td(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}}.setFixedRange;function rK(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var rq=function(t,e,i){rY.compose(e),tX(rV,"Navigator")&&(t.prototype.setFixedRange=rZ,tv(e9.prototype.symbols,rU),tv(t8,{navigator:rj}),ti(i,"afterUpdate",rK))},r$=$.composed;!function(t){var e;function i(t){var e,i,o,r,n,s,a,h,l=tW(null==(e=t.options)?void 0:e.min,t.min),c=tW(null==(i=t.options)?void 0:i.max,t.max);return{axisMin:l,axisMax:c,scrollMin:td(t.dataMin)?Math.min(l,null!=(o=t.min)?o:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):l,scrollMax:null!=(s=null==(n=t.treeGrid)?void 0:n.adjustedMax)?s:td(t.dataMax)?Math.max(c,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):c}}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 r(){var t,o,r=this;(null==(o=null==(t=r.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(r.options.scrollbar.vertical=!r.horiz,r.options.startOnTick=r.options.endOnTick=!1,r.scrollbar=new e(r.chart.renderer,r.options.scrollbar,r.chart),ti(r.scrollbar,"changed",function(t){var e,o,n=i(r),s=n.axisMin,a=n.axisMax,h=n.scrollMin,l=n.scrollMax,c=r.toPixels(h),d=r.toPixels(l)-c;if(td(s)&&td(a))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(e=Math.min(l,r.toValue(c+d*this.to)),o=Math.max(h,r.toValue(c+d*this.from))):(e=Math.min(l,r.toValue(c+d*(1-this.from))),o=Math.max(h,r.toValue(c+d*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes(ta(o),ta(e),!0,p,t)}else this.setRange(this.from,this.to)}))}function n(){var t,e,o,r=i(this),n=r.scrollMin,s=r.scrollMax,a=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,c=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=h),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?c:0),this.width,this.height),this.opposite||(l[1]+=c),t=1;else{this.opposite&&(l[0]+=h);var d=void 0;d=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:c):this.opposite?0:c,a.position(d,this.top,this.width,this.height),this.opposite&&(l[0]+=c),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(s)||!td(this.min)||!td(this.max)||td(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(n))/(this.toPixels(s)-this.toPixels(n)),o=(this.toPixels(this.max)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){tX(r$,"Axis.Scrollbar")&&(e=i,ti(t,"afterGetOffset",o),ti(t,"afterInit",r),ti(t,"afterRender",n))}}(Z||(Z={}));var rJ=Z,rQ={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},r0=$.composed,r1=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){rJ.compose(e,t),tX(r0,"Scrollbar")&&tv(t8,{scrollbar:rQ})},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,r=this.mouseDownHandler.bind(this),n=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",r],[i.ownerDocument,"mousemove",n],[i.ownerDocument,"mouseup",s],[i,"touchstart",r],[i.ownerDocument,"touchmove",n],[i.ownerDocument,"touchend",s]];a.forEach(function(t){ti.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*tW(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),ty(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=ta(this.to-this.from)*tW(this.options.step,.2);this.updatePosition(ta(this.from-e),ta(this.to-e)),ty(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,tp(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,r=this.options,n=this.size,s=i.g().add(this.group);if(o.push(s),r.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:n,height:n,r:r.buttonBorderRadius},a.strokeWidth()));var h=i.path(t.swapXY([["M",n/2+(e?-1:1),n/2-3],["L",n/2+(e?-1:1),n/2+3],["L",n/2+(e?2:-2),n/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]);this.chart.styledMode||h.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=tD(rQ,t8.scrollbar,e),this.options.margin=tW(this.options.margin,10),this.chart=i,this.size=tW(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,r=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(i=this.cursorToScrollbarPosition(o)[r]-this[r],this.hasDragged=!0,this.updatePosition(n[0]+i,n[1]+i),this.hasDragged&&ty(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&ty(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 r=this.options,n=r.buttonsEnabled,s=r.margin,a=void 0===s?0:s,h=r.vertical,l=this.rendered?"animate":"attr",c=o,d=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=c,this.yOffset=d,h?(this.width=this.yOffset=i=d=this.size,this.xOffset=c=0,this.yOffset=d=n?this.size:0,this.barWidth=o-(n?2*i:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=c=n?this.size:0,this.barWidth=i-(n?2*o:0),this.y=this.y+a),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:i,height:o}),this.scrollbarButtons[1][l]({translateX:h?0:i-c,translateY:h?o-d:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){tY.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,r=this.chart.styledMode,n=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=n,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:o,width:o}).add(n),r||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tl(0,s),y:-tl(0,s)}),this.scrollbarGroup=e.g().add(n),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),r||(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(-tl(0,this.scrollbarStrokeWidth),-tl(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,o,r=this.options,n=r.vertical,s=r.minWidth,a=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(td(a)){var l=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=ta(l-i),o<s&&(i=(a-s+o)*t,o=s);var c=Math.floor(i+this.xOffset+this.yOffset),d=o/2-.5;this.from=t,this.to=e,n?(this.scrollbarGroup[h]({translateY:c}),this.scrollbar[h]({height:o}),this.scrollbarRifles[h]({translateY:d}),this.scrollbarTop=c,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:c}),this.scrollbar[h]({width:o}),this.scrollbarRifles[h]({translateX:d}),this.scrollbarLeft=c,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return tW(this.options.liveRedraw,$.svg&&!$.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!td(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,r=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&i.chartY>r||!this.options.vertical&&i.chartX>n?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),ty(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tD(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=ta(1-ta(e-t)),e=1),t<0&&(e=ta(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=rQ,t}(),r2=function(){return(r2=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r5=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},r3=$.isTouchDevice;function r6(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,tO);if(o.length)return Math[t].apply(0,o)}var r9=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){rH(e,t),rq(e,i,o)},t.prototype.drawHandle=function(t,e,i,o){var r=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-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,e,i,o){var r,n,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),h=a/2,l=a%2/2,c=this.scrollButtonSize,d=this.size,p=this.top,u=this.height,f=p-h,g=p+u,v=this.left;i?(r=p+e+l,e=p+t+l,n=[["M",v+u,p-c-l],["L",v+u,r],["L",v,r],["M",v,e],["L",v+u,e],["L",v+u,p+d+c]],s&&n.push(["M",v+u,r-h],["L",v+u,e+h])):(v-=c,t+=v+c-l,e+=v+c-l,n=[["M",v,f],["L",t,f],["L",t,g],["M",e,g],["L",e,f],["L",v+d+2*c,f]],s&&n.push(["M",t-h,f],["L",e+h,f])),this.outline[o]({d:n})},t.prototype.drawMasks=function(t,e,i,o){var r,n,s,a,h=this.left,l=this.top,c=this.height;i?(s=[h,h,h],a=[l,l+t,l+e],n=[c,c,c],r=[t,e-t,this.size-e]):(s=[h,h+t,h+e],a=[l,l,l],n=[t,e-t,this.size-e],r=[c,c,c]),this.shades.forEach(function(t,e){t[o]({x:s[e],y:a[e],width:n[e],height:r[e]})})},t.prototype.renderElements=function(){var t,e,i,o=this,r=o.navigatorOptions,n=r.maskInside,s=o.chart,a=s.inverted,h=s.renderer,l={cursor:a?"ns-resize":"ew-resize"},c=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!n,n,!n].forEach(function(t,e){var i,n=null!=(i=o.shades[e])?i:o.shades[e]=h.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(c);s.styledMode||(n.attr({fill:t?r.maskFill:"rgba(0,0,0,0)"}),1===e&&n.css(l))}),o.outline||(o.outline=h.path().addClass("highcharts-navigator-outline").add(c)),s.styledMode||o.outline.attr({"stroke-width":r.outlineWidth,stroke:r.outlineColor}),null==(e=r.handles)?void 0:e.enabled){var d=!1,p=r.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var e,i,r=p.symbols[t];(d=d||(null==(e=o.handles[t])?void 0:e.symbolName)!==r)&&(null==(i=o.handles[t])||i.destroy(),o.handles[t]=h.symbol(r,-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(c)),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(l)}),d&&(null==(i=o.partsEventsToUnbind)||i.forEach(function(t){t()}),o.partsEventsToUnbind=r5(r5([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,e){var i,o,r,n,s=this;void 0===e&&(e=!1);var a=this.chart,h=a.options.chart.inverted!==(null==(r=a.scrollbar)?void 0:r.options.vertical);if(tD(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),td(t.enabled)||h)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){tY(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(ti(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(n=t.height)?n:this.height;var l=this.getXAxisOffsets();this.xAxis.update(r2(r2({},t.xAxis),((i={offsets:l})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(r2(r2({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}e&&a.redraw()},t.prototype.render=function(t,e,i,o){var r,n,s,a,h,l,c=this.chart,d=this.xAxis,p=d.pointRange||0,u=d.navigatorAxis.fake?c.xAxis[0]:d,f=this.navigatorEnabled,g=this.rendered,v=c.inverted,m=c.xAxis[0].minRange,y=c.xAxis[0].options.maxRange,x=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||td(i)){if(this.isDirty&&this.renderElements(),t=ta(t-p/2),e=ta(e+p/2),!tO(t)||!tO(e))if(!g)return;else i=0,o=tW(d.width,u.width);this.left=tW(d.left,c.plotLeft+x+(v?c.plotWidth:0));var k=this.size=h=tW(d.len,(v?c.plotHeight:c.plotWidth)-2*x);n=v?b:h+2*x,i=tW(i,d.toPixels(t,!0)),o=tW(o,d.toPixels(e,!0)),tO(i)&&Math.abs(i)!==1/0||(i=0,o=n);var w=d.toValue(i,!0),M=d.toValue(o,!0),S=Math.abs(ta(M-w));td(m)&&S<m?this.grabbedLeft?i=d.toPixels(M-m-p,!0):this.grabbedRight&&(o=d.toPixels(w+m+p,!0)):td(y)&&ta(S-p)>y&&(this.grabbedLeft?i=d.toPixels(M-y-p,!0):this.grabbedRight&&(o=d.toPixels(w+y+p,!0))),this.zoomedMax=ts(Math.max(i,o),0,k),this.zoomedMin=ts(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,k),this.range=this.zoomedMax-this.zoomedMin,k=Math.round(this.zoomedMax);var T=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=g&&!this.hasDragged?"animate":"attr",this.drawMasks(T,k,v,l),this.drawOutline(T,k,v,l),(null==(r=this.navigatorOptions.handles)?void 0:r.enabled)&&(this.drawHandle(T,0,v,l),this.drawHandle(k,1,v,l))),this.scrollbar&&(v?(a=this.top-x,s=this.left-b+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=h+2*x):(a=this.top+(f?this.height:-b),s=this.left-x),this.scrollbar.position(s,a,n,b),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1))),this.rendered=!0,this.isDirty=!1,ty(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,r=o.container,n=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},n.push(ti(o.renderTo,"mousemove",t),ti(r.ownerDocument,"mouseup",e),ti(o.renderTo,"touchmove",t),ti(r.ownerDocument,"touchend",e)),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(ti(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(r,n){i.push(ti(r.element,t,function(t){e[""+o+"Mousedown"](t,n)}))})}),i},t.prototype.shadesMousedown=function(t,e){t=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t;var i,o,r,n,s,a,h,l=this.chart,c=this.xAxis,d=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;l.inverted&&(g=t.chartY,f=this.top),1===e?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-d):(h=g-f-u/2,0===e?h=Math.max(0,h):2===e&&h+u>=p&&(h=p-u,this.reversedExtremes?(h-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):n=null==(r=this.getUnionExtremes())?void 0:r.dataMax),h!==d&&(this.fixedWidth=u,td((a=c.navigatorAxis.toFixedRange(h,h+u,s,n)).min)&&ty(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,r=o.xAxis[0],n=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?r.max:r.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var e,i,o,r=this,n=r.chart,s=r.navigatorSize,a=r.range,h=r.dragOffset,l=n.inverted,c=r.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(e=n.pointer)?void 0:e.normalize(t))||t).chartX,l&&(c=r.top,o=t.chartY),r.grabbedLeft?(r.hasDragged=!0,r.render(0,0,o-c,r.otherHandlePos)):r.grabbedRight?(r.hasDragged=!0,r.render(0,0,r.otherHandlePos,o-c)):r.grabbedCenter&&h&&(r.hasDragged=!0,o<h?o=h:o>s+h-a&&(o=s+h-a),r.render(0,0,o-h,o-h+a)),r.hasDragged&&tW(null==(i=r.scrollbarOptions)?void 0:i.liveRedraw,!r3&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){r.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,r,n,s,a,h=this.chart,l=this.xAxis,c=this.scrollbar,d=t.DOMEvent||t,p=h.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!c||!c.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(n=this.reversedExtremes?r.dataMax:r.dataMin),td((a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,n,s)).min)&&ty(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:d}})),"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&&tO(this.zoomedMin)&&tO(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){tY(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&tY(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,r,n=t.options,s=n.navigator||{},a=s.enabled,h=n.scrollbar||{},l=h.enabled,c=a&&s.height||0,d=l&&h.height||0,p=h.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=c,this.scrollbarHeight=d,this.scrollButtonSize=p,this.scrollbarEnabled=l,this.navigatorEnabled=!!a,this.navigatorOptions=s,this.scrollbarOptions=h,this.setOpposite();var u=this,f=u.baseSeries,g=t.xAxis.length,v=t.yAxis.length,m=f&&f[0]&&f[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,u.navigatorEnabled){var y=this.getXAxisOffsets();u.xAxis=new iu(t,tD({breaks:m.options.breaks,ordinal:m.options.ordinal,overscroll:m.options.overscroll},s.xAxis,{type:"datetime",yAxis:null==(e=s.yAxis)?void 0:e.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:m.options.ordinal?0:m.options.minPadding,maxPadding:m.options.ordinal?0:m.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:y,width:c}:{offsets:y,height:c}),"xAxis"),u.yAxis=new iu(t,tD(s.yAxis,{alignTicks:!1,offset:0,index:v,isInternal:!0,reversed:tW(s.yAxis&&s.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:c}:{height:c}),"yAxis"),u.xAxis.clippable=!1,u.yAxis.clippable=!1,f||(null==(i=s.series)?void 0:i.data)||(null==(o=s.series)?void 0:o.dataTable)?u.updateNavigatorSeries(!1):0===t.series.length&&(u.unbindRedraw=ti(t,"beforeRedraw",function(){var e;t.series.length>0&&!u.series&&(u.setBaseSeries(),null==(e=u.unbindRedraw)||e.call(u))})),u.reversedExtremes=t.inverted&&!u.xAxis.reversed||!t.inverted&&u.xAxis.reversed,u.renderElements(),u.addMouseEvents()}else u.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*p,s=r6("min",o.options.min,r.dataMin),a=r6("max",o.options.max,r.dataMax)-s;return i?e*a/n+s:n*(e-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},u.xAxis.navigatorAxis.axis=u.xAxis,u.xAxis.navigatorAxis.toFixedRange=rY.prototype.toFixedRange.bind(u.xAxis.navigatorAxis);if(null==(r=t.options.scrollbar)?void 0:r.enabled){var x=tD(t.options.scrollbar,{vertical:t.inverted});tO(x.margin)||(x.margin=t.inverted?-3:3),t.scrollbar=u.scrollbar=new r1(t.renderer,x,t),ti(u.scrollbar,"changed",function(t){var e,i=u.size,o=i*this.to,r=i*this.from;u.hasDragged=null==(e=u.scrollbar)?void 0:e.hasDragged,u.render(0,0,r,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){u.onMouseUp(t)})})}u.addBaseSeriesEvents(),u.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=tW(t.opposite,!!(!e&&i.inverted))},t.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.chart.time,r=this.xAxis,n=r.options,s=i.options;return t&&null===i.dataMin||(e={dataMin:tW(o.parse(null==n?void 0:n.min),r6("min",o.parse(s.min),i.dataMin,r.dataMin,r.min)),dataMax:tW(o.parse(null==n?void 0:n.max),r6("max",o.parse(s.max),i.dataMax,r.dataMax,r.max))}),e},t.prototype.setBaseSeries=function(t,e){var i,o=this.chart,r=this.baseSeries=[];t=t||(null==(i=o.options.navigator)?void 0:i.baseSeries)||(o.series.length?tS(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)&&r.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},t.prototype.updateNavigatorSeries=function(t,e){var i,o,r,n,s,a=this,h=a.chart,l=a.baseSeries,c={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}}},d=a.series=(a.series||[]).filter(function(t){var e=t.baseSeries;return!(e&&0>l.indexOf(e))||(e&&(tY(e,"updatedData",a.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;if(l&&l.length&&l.forEach(function(t){var i,o,u=t.navigatorSeries,f=tv({color:t.color,visible:t.visible},tL(p)?t8.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){c.name="Navigator "+l.length,s=(r=t.options||{}).navigatorOptions||{},f.dataLabels=tj(f.dataLabels),(n=tD(r,c,f,s)).pointRange=tW(f.pointRange,s.pointRange,null==(i=t8.plotOptions[n.type||"line"])?void 0:i.pointRange);var g=s.data||f.data,v=s.dataTable||f.dataTable;a.hasNavigatorData=a.hasNavigatorData||!!g||!!v,n.data=g||(null==(o=r.data)?void 0:o.slice(0)),n.dataTable=v||r.dataTable,u&&u.options?u.update(n,e):(t.navigatorSeries=h.initSeries(n),ty(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,d.push(t.navigatorSeries))}}),((null==p?void 0:p.data)||(null==p?void 0:p.dataTable))&&!(l&&l.length)||tL(p)){var u=h.options.colors||[];a.hasNavigatorData=!1,(p=tj(p)).forEach(function(t,e){var i;c.name="Navigator "+(d.length+1),(n=tD(null==(i=t8.navigator)?void 0:i.series,{color:h.series[e]&&!h.series[e].options.isInternal&&h.series[e].color||u[e]||u[0]},c,t)).data=t.data,n.dataTable=t.dataTable,(n.data||n.dataTable)&&(a.hasNavigatorData=!0,d.push(h.initSeries(n)))})}t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(ti(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(ti(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(ti(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(ti(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(ti(o,"remove",function(){i&&tg(i,o),this.navigatorSeries&&e.series&&(tg(e.series,this.navigatorSeries),td(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,r=this.getExtremes(),n=r.min,s=r.max,a=r.dataMin,h=r.dataMax,l=s-n,c=null==o?void 0:o.stickToMin,d=null==o?void 0:o.stickToMax,p=tW(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)&&(c&&(e=(i=a)+l),d&&(e=h+p,c||(i=Math.max(a,e-l,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(c||d)&&tO(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=tW(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||this.options.dataTable,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,r=o.max,n=o.min,s=o.options.range;return!!(tO(r)&&tO(n))&&(s&&r-i>0?r-i<s:n<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(ti(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)}),ti(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)}),ti(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&&(tg(this.chart.xAxis,this.xAxis),tg(this.chart.axes,this.xAxis)),this.yAxis&&(tg(this.chart.yAxis,this.yAxis),tg(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){tp(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),r4={chart:{height:70,margin:[0,5,0,5]},exporting:{enabled:!1},legend:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}},marker:{enabled:!1}}},scrollbar:{enabled:!1},title:{text:""},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{height:0,visible:!1}},r8=function(){function t(t,e){this.boundAxes=[],this.userOptions=e,this.chartOptions=tD($.getOptions(),r4,e.chart,{navigator:e}),this.chartOptions.chart&&e.height&&(this.chartOptions.chart.height=e.height);var i=new oc(t,this.chartOptions);i.options=tD(i.options,{navigator:{enabled:!0},scrollbar:{enabled:!0}}),this.chartOptions.navigator&&this.chartOptions.scrollbar&&(this.chartOptions.navigator.enabled=!0,this.chartOptions.scrollbar.enabled=!0),this.navigator=new r9(i),i.navigator=this.navigator,this.initNavigator()}return t.navigator=function(e,i){var o=new t(e,i);return $.navigators?$.navigators.push(o):$.navigators=[o],o},t.prototype.bind=function(t,e){var i=this;void 0===e&&(e=!0);var o=this,r=t instanceof oc?t.xAxis[0]:t;if(r instanceof iu){var n=this.navigator.xAxis,s=n.min,a=n.max,h=[];if(e){var l=ti(r,"setExtremes",function(t){("pan"===t.trigger||"zoom"===t.trigger||"mousewheel"===t.trigger||"rangeSelectorButton"===t.trigger||"rangeSelectorInput"===t.trigger)&&o.setRange(t.min,t.max,!0,"pan"!==t.trigger&&"mousewheel"!==t.trigger,{trigger:r})});h.push(l)}var c=ti(this.navigator,"setRange",function(t){r.setExtremes(t.min,t.max,t.redraw,t.animation)});h.push(c);var d=this.boundAxes.filter(function(t){return t.axis===r})[0];d||(d={axis:r,callbacks:[]},this.boundAxes.push(d)),d.callbacks=h,r.series.forEach(function(t){t.options.showInNavigator&&o.addSeries(t.options)}),r.setExtremes(s,a),ti(r,"destroy",function(t){t.keepEvents||i.unbind(r)})}},t.prototype.unbind=function(t){if(!t){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0;return}for(var e=t instanceof iu?t:t.xAxis[0],i=this.boundAxes.length-1;i>=0;i--)this.boundAxes[i].axis===e&&(this.boundAxes[i].callbacks.forEach(function(t){return t()}),this.boundAxes.splice(i,1))},t.prototype.destroy=function(){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0,this.navigator.destroy(),this.navigator.chart.destroy()},t.prototype.update=function(t,e){this.chartOptions=tD(this.chartOptions,t.height&&{chart:{height:t.height}},t.chart,{navigator:t}),this.navigator.chart.update(this.chartOptions,e)},t.prototype.redraw=function(){this.navigator.chart.redraw()},t.prototype.addSeries=function(t){this.navigator.chart.addSeries(tD(t,{showInNavigator:tW(t.showInNavigator,!0)})),this.navigator.setBaseSeries()},t.prototype.initNavigator=function(){var t,e=this.navigator;e.top=1,e.xAxis.setScale(),e.yAxis.setScale(),e.xAxis.render(),e.yAxis.render(),null==(t=e.series)||t.forEach(function(t){t.translate(),t.render(),t.redraw()});var i=this.getInitialExtremes(),o=i.min,r=i.max;e.chart.xAxis[0].userMin=o,e.chart.xAxis[0].userMax=r,e.render(o,r)},t.prototype.getRange=function(){var t=this.navigator.chart.xAxis[0].getExtremes(),e=t.min,i=t.max,o=this.navigator.xAxis.getExtremes(),r=o.userMin,n=o.userMax,s=o.min,a=o.max;return{min:tW(e,s),max:tW(i,a),dataMin:s,dataMax:a,userMin:r,userMax:n}},t.prototype.setRange=function(t,e,i,o,r){ty(this.navigator,"setRange",{min:t,max:e,redraw:i,animation:o,eventArguments:tD(r,{trigger:"navigator"})})},t.prototype.getInitialExtremes=function(){var t=this.navigator.xAxis.getExtremes();return{min:t.min,max:t.max}},t}();$.StandaloneNavigator=$.StandaloneNavigator||r8,$.navigator=$.StandaloneNavigator.navigator,rq($.Chart,$.Axis,$.Series);var r7=$;return q.default}()});