sigpro 2.0.7 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ var ga=Object.create;var{getPrototypeOf:fa,defineProperty:wo,getOwnPropertyNames:ma}=Object;var ko=Object.prototype.hasOwnProperty;function xa(S){return this[S]}var ya,ba,va=(S,I,R)=>{var Q=S!=null&&typeof S==="object";if(Q){var q=I?ya??=new WeakMap:ba??=new WeakMap,lt=q.get(S);if(lt)return lt}R=S!=null?ga(fa(S)):{};let gt=I||!S||!S.__esModule||!ko.call(S,"default")?wo(R,"default",{value:S,enumerable:!0}):R;if(S&&typeof S==="object"||typeof S==="function"){for(let w of ma(S))if(!ko.call(gt,w))wo(gt,w,{get:xa.bind(S,w),enumerable:!0})}if(Q)q.set(S,gt);return gt};var wa=(S,I)=>()=>(I||S((I={exports:{}}).exports,I),I.exports);var Eo=wa(function(We,ps){(function(S,I){typeof We=="object"&&typeof ps=="object"?(S._Highcharts=I(),ps.exports=S._Highcharts):typeof define=="function"&&define.amd?define("highcharts/highcharts",[],I):typeof We=="object"?(S._Highcharts=I(),We.highcharts=S._Highcharts):(S.Highcharts&&S.Highcharts.error(16,!0),S.Highcharts=I())})("u"<typeof window?We:window,()=>(()=>{let S,I,R,Q,q,lt={};lt.d=(t,e)=>{for(var i in e)lt.o(e,i)&&!lt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},lt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let gt={};lt.d(gt,{default:()=>ua}),(st=Ri||(Ri={})).SVG_NS="http://www.w3.org/2000/svg",st.product="Highcharts",st.version="13.1.1",st.win="u">typeof window?window:{},st.doc=st.win.document,st.svg=!!st.doc?.createElementNS?.(st.SVG_NS,"svg")?.createSVGRect,st.pageLang=st.doc?.documentElement?.closest("[lang]")?.lang,st.userAgent=st.win.navigator?.userAgent||"",st.isChrome=st.win.chrome,st.isFirefox=st.userAgent.indexOf("Firefox")!==-1,st.isMS=/(edge|msie|trident)/i.test(st.userAgent)&&!st.win.opera,st.isSafari=!st.isChrome&&st.userAgent.indexOf("Safari")!==-1,st.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(st.userAgent),st.isWebKit=st.userAgent.indexOf("AppleWebKit")!==-1,st.deg2rad=2*Math.PI/360,st.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],st.noop=function(){},st.supportsPassiveEvents=function(){let t=!1;if(!st.isMS){let e={get passive(){return t=!0}};st.win.addEventListener&&st.win.removeEventListener&&(st.win.addEventListener("testPassive",st.noop,e),st.win.removeEventListener("testPassive",st.noop,e))}return t}(),st.charts=[],st.composed=[],st.dateFormats={},st.seriesTypes={},st.symbolSizes={},st.chartCount=0;let w=Ri,dt={dark:{backgroundColor:"#141414",neutralColor:"#ffffff",highlightColor:"#2caffe"},light:{backgroundColor:"#ffffff",neutralColor:"#000000",highlightColor:"#0022ff",positiveColor:"#06b535",negativeColor:"#f21313"}},{doc:V,win:F}=w;function N(t,e,i,s={}){let o=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;w.Point&&t instanceof w.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let a=t.addEventListener;a&&a.call(t,e,i,!!w.supportsPassiveEvents&&{passive:s.passive===void 0?e.indexOf("touch")!==-1:s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:typeof s.order=="number"?s.order:1/0};return r[e].push(n),r[e].sort((l,h)=>l.order-h.order),function(){Vt(t,e,i)}}function it(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function Y(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function _(t,e,i){let s,o=ot(e)&&!E(i),r=(a,n)=>{E(a)?t.setAttribute(n,a):o?(s=t.getAttribute(n))||n!=="class"||(s=t.getAttribute(n+"Name")):t.removeAttribute(n)};return ot(e)?r(i,e):K(e,r),s}function U(t,e,i){return t>e?t<i?t:i:e}function J(t,e){return t>100000000000000?t:parseFloat(t.toPrecision(e||14))}function Ot(t,e,i,s,o){let r=V.createElement(t);return e&&G(r,e),o&&ct(r,{padding:"0",border:"none",margin:"0"}),i&&ct(r,i),s&&s.appendChild(r),r}function Nt(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function ct(t,e){G(t.style,e)}function E(t){return t!=null}function re(t,e,i){K(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function He(t){t?.parentElement?.removeChild(t)}function xe(t,e,i,s){let o={};return function r(a,n,l,h){let d=i?n:a;K(a,function(c,p){if(!h&&s&&s.indexOf(p)>-1&&n[p]){c=Ct(c),l[p]=[];for(let u=0;u<Math.max(c.length,n[p].length);u++)n[p][u]&&(c[u]===void 0?l[p][u]=n[p][u]:(l[p][u]={},r(c[u],n[p][u],l[p][u],h+1)))}else pt(c,!0)&&!c.nodeType?(l[p]=ut(c)?[]:{},r(c,n[p]||{},l[p],h+1),Object.keys(l[p]).length===0&&(p!=="colorAxis"||h!==0)&&delete l[p]):(a[p]!==n[p]||(p in a)&&!(p in n))&&p!=="__proto__"&&p!=="constructor"&&(l[p]=d[p])})}(t,e,o,0),o}function jt(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function G(t,e){let i;for(i in t||(t={}),e)i!=="__proto__"&&i!=="constructor"&&(t[i]=e[i]);return t}function us(t,e){let i=function(){};return i.prototype=new t,G(i.prototype,e),i}function P(t,e,i,s){if(i=i||{},V?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==w)){let o=V.createEvent("Events");o.initEvent(e,!0,!0),i=G(o,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||G(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let o=[],r=t,a=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[e]&&(o.length&&(a=!0),o.unshift.apply(o,r.hcEvents[e])),r=Object.getPrototypeOf(r);a&&o.sort((n,l)=>n.order-l.order),o.forEach((n)=>{n.fn.call(t,i,t)===!1&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let Et=(t="")=>({center:0.5,right:1,middle:0.5,bottom:1})[t]||0;function Xe(t,e){let i,s,o,r,a=!e;return t.forEach((n)=>{if(n.length>1)for(r=s=n.length-1;r>0;r--)(o=n[r]-n[r-1])<0&&!a?(e?.(),e=void 0):o&&(i===void 0||o<i)&&(i=o)}),i}function fi(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function mi(t,e){let i=t.split(".");for(;i.length&&E(e);){let s=i.shift();if(s===void 0||s==="__proto__")return;if(s==="this"){let r;return pt(e)&&(r=e["@this"]),r??e}let o=e[s.replace(/[\\'"]/g,"")];if(!E(o)||typeof o=="function"||typeof o.nodeType=="number"||o===F)return;e=o}return e}function Qt(t,e,i){let s;if(e==="width"){let r=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect?.().width;return a<r&&a>=r-1&&(r=Math.floor(a)),Math.max(0,r-(Qt(t,"padding-left",!0)||0)-(Qt(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(Qt(t,"padding-top",!0)||0)-(Qt(t,"padding-bottom",!0)||0));let o=F.getComputedStyle(t,void 0);return o&&(s=o.getPropertyValue(e),(i??e!=="opacity")&&(s=wt(s))),s}let te=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function Ge(t){E(t)&&clearTimeout(t)}function xi(t){return pt(t)&&typeof t.nodeType=="number"}function gs(t){let e=t?.constructor;return!!(pt(t,!0)&&!xi(t)&&e?.name&&e.name!=="Object")}function A(t){return typeof t=="number"&&!isNaN(t)&&t<1/0&&t>-1/0}function ot(t){return typeof t=="string"}function ut(t){let e=Object.prototype.toString.call(t);return e==="[object Array]"||e==="[object Array Iterator]"}function ye(t){return typeof t=="function"}function pt(t,e){return!!t&&typeof t=="object"&&(!e||!ut(t))}function W(t,...e){let i,s=[t,...e],o={},r=function(n,l){return typeof n!="object"&&(n={}),K(l,function(h,d){d!=="__proto__"&&d!=="constructor"&&(!pt(h,!0)||gs(h)||xi(h)?n[d]=l[d]:n[d]=r(n[d]||{},h))}),n};t===!0&&(o=s[1],s=Array.prototype.slice.call(s,2));let a=s.length;for(i=0;i<a;i++)o=r(o,s[i]);return o}function Fe(t,e,i,s,o){let r,a=t;i=i??fi(t);let n=t/i;for(!e&&(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],s===!1&&(i===1?e=e.filter(function(l){return l%1==0}):i<=0.1&&(e=[1/i]))),r=0;r<e.length&&(a=e[r],(!o||!(a*i>=t))&&(o||!(n<=(e[r]+(e[r+1]||e[r]))/2)));r++);return J(a*i,-Math.round(Math.log(0.001)/Math.LN10))}function K(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function fs(t){let e=V.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(F.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(F.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function ee(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function wt(t,e){return parseInt(t,e||10)}function Rt(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function It(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function yi(t,...e){let i,s;do for(s of(i=t,e))t=t.replace(s[0],s[1]);while(t!==i);return t}function Vt(t,e,i){function s(a,n){let l=t.removeEventListener;l&&l.call(t,a,n,!1)}function o(a){let n,l;t.nodeName&&(e?(n={})[e]=!0:n=a,K(n,function(h,d){if(a[d])for(l=a[d].length;l--;)s(d,a[d][l].fn)}))}let r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let a=r.hcEvents;if(e){let n=a[e]||[];i?(a[e]=n.filter(function(l){return i!==l.fn}),s(e,i)):(o(a),a[e]=[])}else o(a),delete r.hcEvents}}function Ct(t){return ut(t)?t:[t]}function Ae(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(r,a){return(i=e(r,a))===0?r.safeI-a.safeI:i}),s=0;s<o;s++)delete t[s].safeI}function Zt(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function bi(t){return ot(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}let{charts:Bo,win:vi}=w;function Mt(t,e,i,s){let o=e?"Highcharts error":"Highcharts warning";t===32&&(t=`${o}: Deprecated member`);let r=A(t),a=r?`${o} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(s!==void 0){let n="";r&&(a+="?"),K(s,function(l,h){n+=`
2
+ - ${h}: ${l}`,r&&(a+=encodeURI(h)+"="+encodeURI(l))}),a+=n}P(w,"displayError",{chart:i,code:t,message:a,params:s},function(){if(e)throw Error(a);vi.console&&Mt.messages.indexOf(a)===-1&&console.warn(a)}),Mt.messages.push(a)}function Ye(t,e){let i,s=t.options.index,o=e.length;for(i=t.options.isInternal?o:0;i<o+1;i++)if(!e[i]||A(s)&&s<(e[i].options.index??e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(Mt||(Mt={})).messages=[];let rt={millisecond:1,second:1000,minute:60000,hour:3600000,day:86400000,week:604800000,month:2419200000,year:31449600000};Math.easeInOutSine=function(t){return-0.5*(Math.cos(Math.PI*t)-1)};let Xt=(R=Math.random().toString(36).substring(2,9)+"-",Q=0,function(){return"highcharts-"+(S?"":R)+Q++});vi.jQuery&&(vi.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new w[ot(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):Bo[_(this[0],"data-highcharts-chart")]});let{pageLang:Ro,win:je}=w,zo=w.isSafari&&je.Intl&&!je.Intl.DateTimeFormat.prototype.formatRange,No=class{constructor(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=je.Date,this.lang=e,this.update(t)}update(t={}){this.dTLCache={},this.options=t=W(!0,this.options,t);let{timezoneOffset:e,useUTC:i,locale:s}=t;this.Date=t.Date||je.Date||Date;let o=t.timezone;E(i)&&(o=i?"UTC":void 0),e&&e%60==0&&(o="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone=o!=="UTC"&&o?.indexOf("Etc/GMT")!==0,this.timezone=o,this.lang&&s&&(this.lang.locale=s),["months","shortMonths","weekdays","shortWeekdays"].forEach((r)=>{let a=/months/i.test(r),n=/short/.test(r),l={timeZone:"UTC"};l[a?"month":"weekday"]=n?"short":"long",this[r]=(a?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map((h)=>this.dateFormat(l,(a?31:1)*86400000*h))})}toParts(t){let[e,i,s,o,r,a,n]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g);return[+o,s-1,+i,+r,+a,+n,Math.floor(Number(t)||0)%1000,"DLMXJVS".indexOf(e)]}dateTimeFormat(t,e,i=this.options.locale||this.lang?.locale||Ro){let s=JSON.stringify(t)+i;ot(t)&&(t=this.str2dtf(t));let o=this.dTLCache[s];if(!o){t.timeZone??(t.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(i,t)}catch(r){/Invalid time zone/i.test(r.message)?(Mt(34),t.timeZone="UTC",o=new Intl.DateTimeFormat(i,t)):Mt(r.message,!1)}}return this.dTLCache[s]=o,o?.format(e)||""}str2dtf(t,e={}){let 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((s)=>{t.indexOf(s)!==-1&&G(e,i[s])}),e}makeTime(t,e,i=1,s=0,o,r,a){let n=this.Date.UTC(t,e,i,s,o||0,r||0,a||0);if(this.timezone!=="UTC"){let l=this.getTimezoneOffset(n),h=(s-l/rt.hour+24)%24;if(n+=l,[2,3,8,9,10,11].indexOf(e)!==-1&&(h<5||h>20)){let d=this.getTimezoneOffset(n);l!==d?n+=d-l:l-3600000!==this.getTimezoneOffset(n-3600000)||zo||(n-=3600000)}}return n}parse(t){if(!ot(t))return t??void 0;let 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");let s=Date.parse(t);if(A(s))return s+(!e||i?this.getTimezoneOffset(s):0)}getTimezoneOffset(t){if(this.timezone!=="UTC"){let[e,i,s,o,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),a=-(60*(s+r/60)*60000);if(A(a))return a}return 0}dateFormat(t,e,i){let s=this.lang;if(!E(e)||isNaN(e))return s?.invalidDate||"";if(ot(t=t??"%Y-%m-%d %H:%M:%S")){let o,r=/%\[([a-zA-Z]+)\]/g;for(;o=r.exec(t);)t=t.replace(o[0],this.dateTimeFormat(o[1],e,s?.locale))}if(ot(t)&&t.indexOf("%")!==-1){let o=this,[r,a,n,l,h,d,c,p]=this.toParts(e),u=s?.weekdays||this.weekdays,g=s?.shortWeekdays||this.shortWeekdays,f=s?.months||this.months,m=s?.shortMonths||this.shortMonths;K(G({a:g?g[p]:u[p].substr(0,3),A:u[p],d:ee(n),e:ee(n,2," "),w:p,v:s?.weekFrom??"",b:m[a],B:f[a],m:ee(a+1),o:a+1,y:r.toString().substr(2,2),Y:r,H:ee(l),k:l,I:ee(l%12||12),l:l%12||12,M:ee(h),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:ee(d),L:ee(c,3)},w.dateFormats),function(x,y){if(ot(t))for(;t.indexOf("%"+y)!==-1;)t=t.replace("%"+y,typeof x=="function"?x.call(o,e,o):x)})}else if(pt(t)){let o=(this.getTimezoneOffset(e)||0)/3600000,r=this.timezone||"Etc/GMT"+(o>=0?"+":"")+o,{prefix:a="",suffix:n=""}=t;t=a+this.dateTimeFormat(G({timeZone:r},t),e)+n}return i?bi(t):t}resolveDTLFormat(t){return pt(t,!0)?pt(t,!0)&&t.main===void 0?{main:t}:t:{main:(t=Ct(t))[0],from:t[1],to:t[2]}}getDateFormat(t,e,i,s){let o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond",l=n;for(n in rt){if(t&&t===rt.week&&+this.dateFormat("%w",e)===i&&o.substr(6)===r.substr(6)){n="week";break}if(t&&rt[n]>t){n=l;break}if(a[n]&&o.substr(a[n])!==r.substr(a[n]))break;n!=="week"&&(l=n)}return this.resolveDTLFormat(s[n]).main}},wi=class extends No{getBoundaryTicks(t,e,i,s){let o={};if(e===rt.year)return o;let r=E(i)&&E(s),a=e<rt.hour,n=e<rt.day,l=e<rt.month,h=e>=rt.hour?900000:e>=rt.minute?60000:e>=rt.second&&1000;if(t.length<1e4){let d=!0;for(let c=0;c<t.length;c++){let p=t[c];if(r){if(p<i)continue;if(p>s)break}if(d){if(e===rt.month){o[p]="year",d=!1;continue}if(e===rt.hour){o[p]="day",d=!1;continue}}if(h&&p%h!=0){d=!1;continue}let[,u,g,f,m,x,y]=this.toParts(p),b=!f&&!m&&!x&&!y;a&&m===0&&(o[p]="hour"),n&&b&&(o[p]="day"),l&&g===1&&b&&(o[p]="month"),u===0&&g===1&&b&&(o[p]="year"),d=!1}}return o}getTimeTicks(t,e,i,s){let o=[],{count:r=1,unitRange:a}=t,n=e,[l,h,d,c,p,u]=this.toParts(e),g=(e||0)%1000,f;if(s??(s=1),E(e)){if(g=a>=rt.second?0:r*Math.floor(g/r),a>=rt.second&&(u=a>=rt.minute?0:r*Math.floor(u/r)),a>=rt.minute&&(p=a>=rt.hour?0:r*Math.floor(p/r)),a>=rt.hour&&(c=a>=rt.day?0:r*Math.floor(c/r)),a>=rt.day&&(d=a>=rt.month?1:Math.max(1,r*Math.floor(d/r))),a>=rt.month&&(h=a>=rt.year?0:r*Math.floor(h/r)),a>=rt.year&&(l-=l%r),a===rt.week){r&&(e=this.makeTime(l,h,d,c,p,u,g));let y=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),b="DLMXJVS".indexOf(y);d+=-b+s+(b<s?-7:0)}e=this.makeTime(l,h,d,c,p,u,g),this.variableTimezone&&E(i)&&(f=i-e>4*rt.month||this.getTimezoneOffset(e)!==this.getTimezoneOffset(i));let m=e,x=1;for(;m<i;)o.push(m),a===rt.year?m=this.makeTime(l+x*r,0):a===rt.month?m=this.makeTime(l,h+x*r):f&&(a===rt.day||a===rt.week)?m=this.makeTime(l,h,d+x*r*(a===rt.day?1:7)):f&&a===rt.hour&&r>1?m=this.makeTime(l,h,d,c+x*r):m+=a*r,x++;o.push(m)}return o.info=G(t,{boundaryTicks:this.getBoundaryTicks(o,a,n,i),totalRange:a*r}),o}},{isTouchDevice:Wo}=w,ie={palette:dt,colors:Array(10).fill(1).map((t,e)=>`var(--highcharts-color-${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(in srgb, 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:0.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:0.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:(t)=>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:Wo?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"}},ki=new wi(ie.time,ie.lang),Wt={defaultOptions:ie,defaultTime:ki,getOptions:function(){return ie},setOptions:function(t){return P(w,"setOptions",{options:t}),W(!0,ie,t),t.time&&ki.update(ie.time),t.lang&&"locale"in t.lang&&ki.update({locale:t.lang.locale}),t.lang?.chartTitle&&(ie.title={...ie.title,text:t.lang.chartTitle}),ie}},{win:Ho}=w,Mi=(t,e,i)=>i===0?t:i===1?e:`color-mix(in srgb,${t},${e} ${100*i}%)`,Ve=(t)=>ot(t)&&!!t&&t!=="none";class ft{static parse(t){return t?new ft(t):ft.None}constructor(t){let e,i,s,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let r=w.Color;if(r&&r!==ft)return new r(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map((a)=>new ft(a[1]));else if(typeof t=="string")for(this.input=t=ft.names[t.toLowerCase()]||t,s=ft.parsers.length;s--&&!i;)(e=(o=ft.parsers[s]).regex.exec(t))&&(i=o.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if(typeof e=="object"&&this.stops!==void 0){let s=W(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((o,r)=>{s.stops[r]=[s.stops[r][0],o.get(t)]}),s}return i&&A(i[0])?t!=="rgb"&&(t||i[3]!==1)?t==="a"?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(t)});else if(A(t)&&t!==0)if(A(e[0]))for(let i=0;i<3;i++)e[i]+=wt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else ft.useColorMix&&Ve(this.input)&&(this.output=Mi(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return A(this.rgba[0])?this.rgba[3]=t:ft.useColorMix&&Ve(this.input)&&(this.output=Mi(this.input,"#0000",1-t)),this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!A(i[0])||!A(s[0]))return ft.useColorMix&&Ve(this.input)&&Ve(t.input)&&e<0.99?Mi(this.input,t.input,e):t.input||"none";let o=s[3]!==1||i[3]!==1,r=(n,l)=>n+(i[l]-n)*(1-e),a=s.slice(0,3).map(r).map(Math.round);return o&&a.push(r(s[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}ft.names={white:"#ffffff",black:"#000000"},ft.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[wt(t[1]),wt(t[2]),wt(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[wt(t[1]),wt(t[2]),wt(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[wt(t[1]+t[1],16),wt(t[2]+t[2],16),wt(t[3]+t[3],16),E(t[4])?wt(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[wt(t[1],16),wt(t[2],16),wt(t[3],16),E(t[4])?wt(t[4],16)/255:1]}}],ft.useColorMix=Ho.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),ft.None=new ft("");let{parse:ms}=ft,{win:Xo}=w;class Gt{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=t?.[1],s=this.now||0,o=[];if(s!==1&&e&&i)if(e.length===i.length&&s<1)for(let r=0;r<i.length;r++){let a=e[r],n=i[r],l=[];for(let h=0;h<n.length;h++){let d=a[h],c=n[h];A(d)&&A(c)&&(n[0]!=="A"||h!==4&&h!==5)?l[h]=d+s*(c-d):l[h]=c}o.push(l)}else o=i;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now??1,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t&&t.attr?t.element&&t.attr(e,i,void 0,!0):t&&(t.style[e]=i+(this.unit||"")),s?.call(t,i,this)}run(t,e,i){let{elem:s,options:o}=this,{complete:r,curAnim:a={}}=o,n=(d)=>!n.stopped&&this.step(d),l=Xo.requestAnimationFrame||function(d){setTimeout(d,13)},h=()=>{for(let d=0;d<Gt.timers.length;d++)Gt.timers[d]()||Gt.timers.splice(d--,1);Gt.timers.length&&l(h)};t!==e||s["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,n.elem=s,n.prop=this.prop,n()&&Gt.timers.push(n)===1&&l(h)):(delete a[this.prop],r&&Object.keys(a).length===0&&r.call(s))}step(t){let e,i,s=+new Date,o=this.options,r=this.elem,{complete:a,duration:n,curAnim:l}=o;return r?.attr&&!r.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,K(l,function(h){h!==!0&&(i=!1)}),i&&a&&a.call(r),e=!1):(this.pos=o.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let{startX:s,endX:o}=t,r=i.slice(),a=t.isArea,n=a?2:1,l=e&&i.length>e.length&&i.hasStackedCliffs,h,d,c,p,u=e?.slice();if(!u||l)return[r,r];function g(m,x){for(;m.length<d;){let y=m[0],b=x[d-m.length];if(b&&y[0]==="M"&&(b[0]==="C"?m[0]=["C",y[1],y[2],y[1],y[2],y[1],y[2]]:m[0]=["L",y[1],y[2]]),m.unshift(y),a){let k=m.pop();m.push(m[m.length-1],k)}}}function f(m){for(;m.length<d;){let x=m[Math.floor(m.length/n)-1].slice();if(x[0]==="C"&&(x[1]=x[5],x[2]=x[6]),a){let y=m[Math.floor(m.length/n)].slice();m.splice(m.length/2,0,x,y)}else m.push(x)}}if(s&&o&&o.length){for(c=0;c<s.length;c++)if(s[c]===o[0]){h=c;break}else if(s[0]===o[o.length-s.length+c]){h=c,p=!0;break}else if(s[s.length-1]===o[o.length-s.length+c]){h=s.length-c;break}h===void 0&&(u=[])}return u.length&&A(h)&&(d=r.length+h*n,p?(g(u,r),f(r)):(g(r,u),f(u))),[u,r]}fillSetter(){Gt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,ms(this.start).tweenTo(ms(this.end),this.pos),void 0,!0)}}function ce(t,e){e.renderer.globalAnimation=t??e.options.chart.animation??!0}function Ht(t){return pt(t)?W({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function Ci(t,e,i){let s=Ht(e),o=i?[i]:t.series,r=0,a=0;return o.forEach((n)=>{let l=Ht(n.options.animation);r=pt(e)&&E(e.defer)?s.defer:Math.max(r,l.duration+l.defer),a=Math.min(s.duration,l.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-a),duration:Math.min(r,a)}}function Pe(t,e={pos:1},i){pt(i)||(i={duration:arguments[2],easing:arguments[3],complete:arguments[4]}),A(i.duration)||(i.duration=400),i.easing=typeof i.easing=="function"?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=W(e),K(e,(s,o)=>{t&&be(t,o);let r=new Gt(t,i,o),a=e.d,n=o==="dashstyle",l=0,h,d="";o==="d"&&ut(a)?(r.paths=r.initPath(t,t.pathArray,a),r.toD=a,h=1):t?.attr?(l=t.attr(o),n&&t.attr(o,s)):t&&(l=+(Qt(t,o)||0),o!=="opacity"&&(d="px")),h||(h=s),typeof h=="string"&&h.match("px")&&(h=h.replace(/px/g,"")),E(h)&&!n&&r.run(l,h,d)})}Gt.timers=[];let be=(t,e)=>Gt.timers.forEach((i)=>{i.elem!==t||e&&e!==i.prop||(i.stopped=!0)}),{SVG_NS:xs,win:Go}=w,{trustedTypes:Si}=Go,$e=Si&&ye(Si.createPolicy)&&Si.createPolicy("highcharts",{createHTML:(t)=>t}),Fo=$e?$e.createHTML(""):"";class yt{static filterUserAttributes(t){return K(t,(e,i)=>{let s=!0;yt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src","xlink:href"].indexOf(i)!==-1&&(s=ot(e)&&yt.allowedReferences.some((o)=>e.indexOf(o)===0)),s||(Mt(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),ot(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map((r)=>r.trim()),o=s.shift();return o&&s.length&&(e[o.replace(/-([a-z])/g,(r)=>r[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=yt.emptyHTML,e&&new yt(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return function e(i,s){let o;return Ct(i).forEach(function(r){let a,n=r.tagName,l=r.textContent?w.doc.createTextNode(r.textContent):void 0,h=yt.bypassHTMLFiltering;if(n)if(n==="#text")a=l;else if(yt.allowedTags.indexOf(n)!==-1||h){let d=n==="svg"?xs:s.namespaceURI||xs,c=w.doc.createElementNS(d,n),p=r.attributes||{};K(r,function(u,g){g!=="tagName"&&g!=="attributes"&&g!=="children"&&g!=="style"&&g!=="textContent"&&(p[g]=u)}),_(c,h?p:yt.filterUserAttributes(p)),r.style&&ct(c,r.style),l&&c.appendChild(l),e(r.children||[],c),a=c}else Mt(33,!1,void 0,{"Invalid tagName in config":n});a&&s.appendChild(a),o=a}),o}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString($e?$e.createHTML(t):t,"text/html")}catch{try{e=new DOMParser().parseFromString(t,"text/html")}catch{}}e||((e=w.doc.implementation.createHTMLDocument("")).body.innerHTML=t);let s=(o,r)=>{let a=o.localName||o.nodeName.toLowerCase(),n={tagName:a};a==="#text"&&(n.textContent=o.textContent||"");let l=o.attributes;if(l){let h={};[].forEach.call(l,(d)=>{d.name==="data-style"?n.style=yt.parseStyle(d.value):h[d.name]=d.value}),n.attributes=h}if(o.childNodes.length){let h=[];[].forEach.call(o.childNodes,(d)=>{s(d,h)}),h.length&&(n.children=h)}r.push(n)};return[].forEach.call(e.body.childNodes,(o)=>s(o,i)),i}}yt.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","stop-color","stop-opacity","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"],yt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],yt.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","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],yt.emptyHTML=Fo,yt.bypassHTMLFiltering=!1;let{defaultOptions:ys,defaultTime:bs}=Wt,{pageLang:Yo}=w,_e={add:(t,e)=>t+e,divide:(t,e)=>e!==0?J(t/e):"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!ut(t)&&t.map((i,s)=>Ue(e.body,G(pt(i)?i:{"@this":i},{"@index":s,"@first":s===0,"@last":s===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:(t)=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>J(t*e,15),ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:bi,unless:(t)=>!t},vs={};function Ue(t="",e,i){let s=/\{([^{}]+)\}/g,o=/\(([^()]+)\)/g,r=[],a=/f$/,n=/\.(\d)/,l=i?.options?.lang||ys.lang,h=i?.time||bs,d=i?.numberFormatter||ws.bind(i),c=(m="")=>{let x;return m==="true"||m!=="false"&&((x=Number(m)).toString()===m?x:/^["'].+["']$/.test(m)?m.slice(1,-1):mi(m,e))},p,u,g=0,f;for(;(p=s.exec(t))!==null;){let m=p,x=o.exec(p[1]);x&&(p=x,f=!0),u?.isBlock||(u={ctx:e,expression:p[1],find:p[0],isBlock:p[1].charAt(0)==="#",start:p.index,startInner:p.index+p[0].length,length:p[0].length});let y=(u.isBlock?m:p)[1].split(" ")[0].replace("#","");_e[y]&&(u.isBlock&&y===u.fn&&g++,u.fn||(u.fn=y));let b=p[1]==="else";if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||b))if(g)!b&&g--;else{let k=u.startInner,v=t.substr(k,p.index-k);u.body===void 0?(u.body=v,u.startInner=p.index+p[0].length):u.elseBody=v,u.find+=v+p[0],b||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(x&&!u?.isBlock)break}return r.forEach((m)=>{let x,y,{body:b,elseBody:k,expression:v,fn:M}=m;if(M){let C=[m],T=[],L=v.length,O=0,D;for(y=0;y<=L;y++){let z=v.charAt(y);D||z!=='"'&&z!=="'"?D===z&&(D=""):D=z,D||z!==" "&&y!==L||(T.push(v.substr(O,y-O)),O=y+1)}for(y=_e[M].length;y--;)C.unshift(c(T[y+1]));x=_e[M].apply(e,C),m.isBlock&&typeof x=="boolean"&&(x=Ue(x?b:k,e,i))}else{let C=/^["'].+["']$/.test(v)?[v]:v.split(":");if(x=c(C.shift()||""),C.length&&typeof x=="number"){let T=C.join(":");if(a.test(T)){let L=parseInt((T.match(n)||["","-1"])[1],10);x!==null&&(x=d(x,L,l.decimalPoint,T.indexOf(",")>-1?l.thousandsSep:""))}else x=h.dateFormat(T,x)}o.lastIndex=0,o.test(m.find)&&ot(x)&&(x=`"${x}"`)}t=t.replace(m.find,x??"")}),f?Ue(t,e,i):t}function ws(t,e,i,s){e*=1;let o,r,[a,n]=(t=+t||0).toString().split("e").map(Number),l=this?.options?.lang||ys.lang,h=(t.toString().split(".")[1]||"").split("e")[0].length,d=e,c={};i??(i=l.decimalPoint),s??(s=l.thousandsSep),e===-1?e=Math.min(h,20):A(e)?e&&n<0&&((r=e+n)>=0?(a=+a.toExponential(r).split("e")[0],e=r):(a=Math.floor(a),t=e<20?+(a*Math.pow(10,n)).toFixed(e):0,n=0)):e=2,n&&(e??(e=2),t=a),A(e)&&e>=0&&(c.minimumFractionDigits=e,c.maximumFractionDigits=e),s===""&&(c.useGrouping=!1);let p=s||i,u=p?"en":this?.locale||l.locale||Yo,g=JSON.stringify(c)+u;return o=(vs[g]??(vs[g]=new Intl.NumberFormat(u,c))).format(t),p&&(o=o.replace(/([,\.])/g,"_$1").replace(/_\,/g,s??",").replace("_.",i??".")),(e||+o!=0)&&(!(n<0)||d)||(o="0"),n&&+o!=0&&(o+="e"+(n<0?"":"+")+n),o}let Ft={dateFormat:function(t,e,i){return bs.dateFormat(t,e,i)},format:Ue,helpers:_e,numberFormat:ws};(zi||(zi={})).distribute=function t(e,i,s){let o=e,r=o.reducedLen||i,a=(m,x)=>m.target-x.target,n=[],l=e.length,h=[],d=n.push,c,p=!0,u,g,f=0;for(c=l;c--;)f+=e[c].size;if(f>r){if(Ae(e,(m,x)=>(x.rank||0)-(m.rank||0)),e[0].rank===e[e.length-1].rank){let m=[[0,l-1]];for(;m.length&&f>r;){let x=m.shift();if(!x)break;u=e[c=Math.floor((x[0]+x[1])/2)],Rt(h,c)&&(f-=u.size),x[0]<c&&m.push([x[0],c-1]),c<x[1]&&m.push([c+1,x[1]])}}else for(c=l-1;f>r&&c>=0;)u=e[c],Rt(h,c)&&(f-=u.size),c--;h.sort((m,x)=>x-m).forEach((m)=>d.apply(n,e.splice(m,1)))}for(Ae(e,a),e=e.map((m)=>({size:m.size,targets:[m.target],align:m.align??0.5}));p;){for(c=e.length;c--;)u=e[c],g=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=U(g-u.size*u.align,0,i-u.size);for(c=e.length,p=!1;c--;)c>0&&e[c-1].pos+e[c-1].size>e[c].pos&&(e[c-1].size+=e[c].size,e[c-1].targets=e[c-1].targets.concat(e[c].targets),e[c-1].align=0.5,e[c-1].pos+e[c-1].size>i&&(e[c-1].pos=i-e[c-1].size),e.splice(c,1),p=!0)}return d.apply(o,n),c=0,e.some((m)=>{let x=0;return(m.targets||[]).some(()=>(o[c].pos=m.pos+x,s!==void 0&&Math.abs(o[c].pos-o[c].target)>s)?(o.slice(0,c+1).forEach((y)=>delete y.pos),o.reducedLen=(o.reducedLen||i)-0.1*i,o.reducedLen>0.1*i&&t(o,i,s),!0):(x+=o[c].size,c++,!1))}),Ae(o,a),o};let Ze=zi,{deg2rad:ks,doc:ve,svg:jo,SVG_NS:qe,win:Vo,isFirefox:$o}=w;class Tt{_defaultGetter(t){let e=this[t+"Value"]??this[t]??(this.element?this.element.getAttribute(t):null)??this.box?.[t]??0;return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),this.textStr!==void 0&&this.element.nodeName==="text"&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(s,o){return i.indexOf(o)===-1&&s.push(o),s},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let o=this.renderer,r=o.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||ot(i)?i||"renderer":void 0;n&&(a&&Rt(r,this),i=void 0);let l=i??o[n]??o,h=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*Et(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*Et(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(h),c[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=Ht(e??this.renderer.globalAnimation??!0),o=s.defer;return ve.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),Zt(()=>{this.element&&Pe(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),K(t,function(r,a){s.step&&s.step.call(this,r,{prop:a,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;t.indexOf("contrast")!==-1&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),o=t.substring(0,i);if(o&&o!=="none"&&w.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(h,d,c){return 2*Number(d)+c}),this.removeTextOutline();let r=ve.createElementNS(qe,"tspan");_(r,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":o,"stroke-linejoin":"round"});let a=e.querySelector("textPath")||e;[].forEach.call(a.childNodes,(h)=>{let d=h.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((c)=>d.removeAttribute(c)),r.appendChild(d)});let n=0;[].forEach.call(a.querySelectorAll("text tspan"),(h)=>{n+=Number(h.getAttribute("dy"))});let l=ve.createElementNS(qe,"tspan");l.textContent="​",_(l,{x:Number(e.getAttribute("x")),dy:-n}),r.appendChild(l),a.insertBefore(r,a.firstChild)}}attr(t,e,i,s){let{element:o}=this,r=Tt.symbolCustomAttribs,a,n,l=this,h;return typeof t=="string"&&e!==void 0&&(a=t,(t={})[a]=e),typeof t=="string"?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,o):(K(t,function(d,c){h=!1,s||be(this,c),this.symbolName&&r.indexOf(c)!==-1&&(n||(this.symbolAttr(t),n=!0),h=!0),this.rotation&&(c==="x"||c==="y")&&(this.doTransform=!0),h||(this[c+"Setter"]||this._defaultSetter).call(this,d,c,o)},this),this.afterSetters()),i&&i.call(this),l}clip(t){if(t&&!t.clipPath){let e=Xt()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);G(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,o=(t.width||this.width||0)+i,r=(t.height||this.height||0)+s,a=Nt(i,e),n=Nt(s,e);return G(t,{x:a,y:n,width:Nt(o,e)-a,height:Nt(r,e)-n}),E(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,o,r,a,n,l,h,d,c,p,u=[],g;P(this.renderer,"complexColor",{args:arguments},()=>{if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(a=t[r],l=s.gradients,h=t.stops,c=i.radialReference,ut(a)&&(t[r]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),r==="radialGradient"&&c&&!E(a.gradientUnits)&&(n=a,a=W(a,s.getRadialAttr(c,n),{gradientUnits:"userSpaceOnUse"})),K(a,function(f,m){m!=="id"&&u.push(m,f)}),K(h,function(f){u.push(f)}),l[u=u.join(",")])p=l[u].attr("id");else{a.id=p=Xt();let f=l[u]=s.createElement(r).attr(a).add(s.defs);f.radAttr=n,f.stops=[],h.forEach(([m,x])=>{x.indexOf("rgba")===0?(x=(o=ft.parse(x)).get("rgb"),d=o.get("a")):d=1;let y=s.createElement("stop").attr({offset:m,"stop-color":x,"stop-opacity":d}).add(f);f.stops.push(y)})}g="url("+s.url+"#"+p+")",i.setAttribute(e,g),i.gradient=u,t.toString=function(){return g}}})}css(t){let e=this.styles,i={},s=this.element,o=this.renderer,r,a=!e;if(e&&K(t,function(n,l){e&&e[l]!==n&&(i[l]=n,a=!0)}),a){e&&(t=G(e,i)),t.width===null||t.width==="auto"?delete this.textWidth:s.nodeName.toLowerCase()==="text"&&t.width&&(r=this.textWidth=wt(t.width)),G(this.styles,t),r&&!jo&&o.forExport&&delete t.width;let n=$o&&t.fontSize||null;n&&(A(n)||/^\d+$/.test(n))&&(t.fontSize+="px");let l=W(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach((h)=>l&&delete l[h]),l.color&&(l.fill=l.color,delete l.color)),ct(s,l)}return this.added&&(this.element.nodeName==="text"&&o.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if(i==="inherit"&&(i=1),t){let s=(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=s.length;e--;)s[e]=""+wt(s[e])*(i??NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t=this,{element:e={},renderer:i,stops:s}=t,o=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,be(t),t.clipPath&&o){let r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){a.getAttribute("clip-path").indexOf(r.element.id)>-1&&a.removeAttribute("clip-path")}),t.clipPath=r.destroy()}if(s){for(let r of s)r.destroy();s.length=0}t.safeRemoveChild(e),t.alignOptions&&jt(i.alignedObjects,t),K(t,(r,a)=>{(t[a]?.parentGroup===t||["connector","foreignObject"].indexOf(a)!==-1)&&t[a]?.destroy?.(),delete t[a]})}dSetter(t,e,i){ut(t)&&(typeof t[0]=="string"&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((s,o,r)=>o?.join?(r?s+" ":"")+o.join(" "):(o||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){typeof t=="string"?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,o,{element:r,renderer:a,styles:n,textStr:l}=this,{cache:h,cacheKeys:d}=a,c=r.namespaceURI===this.SVG_NS,p=e??this.rotation??0,u=a.styledMode?r&&Tt.prototype.getStyle.call(r,"font-size"):n.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,n.fontWeight,n.lineClamp,n.textOverflow,u,p]);if(g&&!t&&(i=h[g]),!i||i.polygon){if(c||a.forExport){try{o=this.fakeTS&&function(m){let x=r.querySelector(".highcharts-text-outline");x&&ct(x,{display:m})},ye(o)&&o("none"),i=r.getBBox?G({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight,x:0,y:0},ye(o)&&o("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,c&&(i.height=s={"11px,17":14,"13px,20":16}[`${u||""},${Math.round(s)}`]||s),p&&(i=this.getRotatedBox(i,p));let f={bBox:i};P(this,"afterGetBBox",f),i=f.bBox}if(g&&(l===""||i.height>0)){for(;d.length>250;)delete h[d.shift()];h[g]||d.push(g),h[g]=i}return i}getBBoxCacheKey(t){if(E(this.textStr)){let e=""+this.textStr;return e.indexOf("<")===-1&&(e=e.replace(/\d/g,"0")),[e,...t].join(",")}}getRotatedBox(t,e){let{x:i,y:s,width:o,height:r}=t,{alignValue:a,translateY:n,rotationOriginX:l=0,rotationOriginY:h=0}=this,d=Et(a),c=Number(this.element.getAttribute("y")||0)-(n?0:s),p=e*ks,u=(e-90)*ks,g=Math.cos(p),f=Math.sin(p),m=o*g,x=o*f,y=Math.cos(u),b=Math.sin(u),[[k,v],[M,C]]=[l,h].map((et)=>[et-et*g,et*f]),T=i+d*(o-m)+k+C+c*y,L=T+m,O=L-r*y,D=O-m,z=s+c-d*x-v+M+c*b,B=z+x,X=B-r*b,j=X-x,H=Math.min(T,L,O,D),at=Math.min(z,B,X,j),St=Math.max(T,L,O,D)-H,ht=Math.max(z,B,X,j)-at;return{x:H,y:at,width:St,height:ht,polygon:[[T,z],[L,B],[O,X],[D,j]]}}getStyle(t){return Vo.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return(""+this.attr("class")).split(" ").indexOf(t)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=qe,this.element=e==="div"||e==="body"?Ot(e):ve.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},P(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=N(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(ot(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,e?.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=W(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},pt(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t=this.getStyle("stroke-width"),e=0,i;return/px$/.test(t)?e=wt(t):t!==""&&(_(i=ve.createElementNS(qe,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)),e}symbolAttr(t){let e=this;Tt.symbolCustomAttribs.forEach(function(i){e[i]=t[i]??e[i]}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||ve.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=yi(t??"",[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,foreignObject:i,matrix:s,rotation:o=0,rotationOriginX:r,rotationOriginY:a,scaleX:n,scaleY:l,text:h,translateX:d=0,translateY:c=0}=this,p=[`translate(${d},${c})`];E(s)&&p.push("matrix("+s.join(",")+")"),o&&p.push("rotate("+o+" "+(r??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),(E(n)||E(l))&&p.push(`scale(${n??1} ${l??1})`),p.length&&!(h||this).textPath&&(i?.element||e).setAttribute(t,p.join(" "))}visibilitySetter(t,e,i){t==="inherit"?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return this.element.nodeName==="circle"&&(t==="x"?t="cx":t==="y"&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let{element:i,parentGroup:s,renderer:o}=this,r=s?.element||o.box,a=r===o.box,n,l,h,d=!1,c,p=this.added,u;if(E(t)?(i.setAttribute("data-z-index",t),t*=1,this[e]===t&&(p=!1)):E(this[e])&&i.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&s&&(s.handleZ=!0),u=(n=r.childNodes).length-1;u>=0&&!d;u--)c=!E(h=(l=n[u]).getAttribute("data-z-index")),l!==i&&(E(t)&&t<0&&c&&!a&&!u?(r.insertBefore(i,n[u]),d=!0):(E(t)&&parseFloat(h||"")<=t||c&&(!E(t)||t>=0))&&(r.insertBefore(i,n[u+1]),d=!0));d||(r.insertBefore(i,n[3*!!a]),d=!0)}return d}}Tt.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Tt.prototype.strokeSetter=Tt.prototype.fillSetter,Tt.prototype.yGetter=Tt.prototype.xGetter,Tt.prototype.matrixSetter=Tt.prototype.rotationOriginXSetter=Tt.prototype.rotationOriginYSetter=Tt.prototype.rotationSetter=Tt.prototype.scaleXSetter=Tt.prototype.scaleYSetter=Tt.prototype.translateXSetter=Tt.prototype.translateYSetter=Tt.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let ae=Tt,{charts:_o}=w,Ms=["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],Uo=[null,"#00e272","#efdf00"];class Cs{constructor(t,e){this.defaultOptions=dt,this.options=W(dt),this.cssVars={light:{},dark:{}},this.renderer=t,this.update(e)}injectCSS(t){let e,i,s,{cssVars:o,renderer:r}=this,a=Object.keys(xe(t,this.defaultOptions)).length>0,n=Math.max(t.colors?.length||0,Ms.length),l="light",h=(u,g)=>{ot(u)&&(g=g.replace(/([0-9]+)/g,"-$1").replace(/[A-Z]/g,(f)=>`-${f.toLowerCase()}`),o[l][`--highcharts-${g}`]=u)};for(let u of["light","dark"]){let g=t[u]||{},f={},m=new ft(g?.neutralColor||""),x=new ft(g?.backgroundColor||""),y=new ft(g?.highlightColor||"");l=u,[3,5,10,20,40,60,80,100].forEach((b)=>{f[`neutralColor${b}`]=x.tweenTo(m,b/100),f[`highlightColor${b}`]=x.tweenTo(y,b/100)});for(let b=0;b<n;b++)h(g?.colors?.[b]||t.colors?.[b]||(u==="dark"?Uo:[])?.[b]||Ms[b]||"#888a",`color${b}`);K(g,h),K(f,h),u==="light"&&G(o.dark,o.light)}let d=r.defs.element,c=a?`*[data-highcharts-chart="${r.chartIndex}"]`:"",p=d.querySelector("style.highcharts-palette")||r.box.ownerDocument.createElement("style");p.parentNode||(p.nonce="highcharts",p.className="highcharts-palette",d.appendChild(p)),i=(e=(u)=>{let g="";return K(o.light,(f,m)=>{g+=u&&f!==o.dark[m]?` ${m}: light-dark(${f}, ${o.dark[m]});
3
+ `:` ${m}: ${f};
4
+ `}),g})(),s=e(!0),p.textContent=`${c||":root"} {
5
+ ${i}
6
+ }
7
+ @supports (color: light-dark(#fff, #000)) {
8
+ ${c||":root"} {
9
+ ${s}
10
+ }
11
+ }
12
+ .highcharts-container {
13
+ color-scheme: light dark;
14
+ }
15
+ .highcharts-light .highcharts-container {
16
+ color-scheme: light;
17
+ }
18
+ .highcharts-dark .highcharts-container {
19
+ color-scheme: dark;
20
+ }`}update(t){let e=this.renderer.box.parentElement,i=_o?.[this.renderer.chartIndex];t=W(!0,this.options,t),i&&(i.options.palette=t),t.injectCSS!==!1&&this.injectCSS(t),e&&(ot(t.colorScheme)&&["light","dark","inherit"].includes(t.colorScheme)?e.style.colorScheme=t.colorScheme:e.style.removeProperty("color-scheme"))}}class pe extends ae{constructor(t,e,i,s,o,r,a,n,l,h){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=a,this.baseline=l,this.className=h,this.addClass(h==="button"?"highcharts-no-tooltip":"highcharts-label"),h&&this.addClass("highcharts-"+h),this.text=t.text(void 0,0,0,n).attr({zIndex:1}),typeof o=="string"&&((d=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=pe.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=Et(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=W(t),pe.textProps.forEach((i)=>{t[i]!==void 0&&(e[i]=t[i],delete t[i])}),this.text.css(e),"fontSize"in e||"fontWeight"in e||"width"in e?this.updateTextPadding():("textOverflow"in e)&&this.updateBoxSize(),"color"in e&&this.updateBackground()}return ae.prototype.css.call(this,t)}destroy(){Vt(this.element,"mouseenter"),Vt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),ae.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){(this.textStr&&this.bBox.width===0&&this.bBox.height===0||this.rotation)&&this.updateBoxSize();let{padding:i,height:s=0,translateX:o=0,translateY:r=0,width:a=0}=this,n=this.paddingLeft??i,l=e??(this.rotation||0),h={width:a,height:s,x:o+this.bBox.x-n,y:r+this.bBox.y-i+this.baselineOffset};return l&&(h=this.getRotatedBox(h,l)),h}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1),this.updateBackground()}onAdd(){this.text.add(this),this.attr({text:this.textStr??"",x:this.x||0,y:this.y||0}),this.box&&E(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){A(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){t!==void 0&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBackground(){this.fill==="contrast"&&this.box?.attr({fill:this.renderer.getContrast(this.text.styles.color||"#000"),"fill-opacity":0.65})}updateBoxSize(){let t,e=this.text,i={},s=this.padding,o=this.bBox=(!A(this.widthSetting)||!A(this.heightSetting)||this.textAlign)&&E(e.textStr)?e.getBBox(void 0,0):pe.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*s;let r=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||r).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-r.h)/2),this.needsBox&&!e.textPath){if(!this.box){let a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}i.x=t=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(G(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,s=(this.paddingLeft??this.padding)+Et(e)*(this.widthSetting??this.bBox.width);(s!==t.x||i!==t.y)&&(t.attr({align:e,x:s}),i!==void 0&&t.attr("y",i)),t.x=s,t.y=i}}widthSetter(t){this.widthSetting=A(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=this.paddingLeft??t,i=this.paddingRight??t;return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(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)}ySetter(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}function Ss(t,e,i,s,o){let r=[];if(o){let a=o.start||0,n=o.end||0,l=o.r??i,h=o.r??(s||i),d=0.0001>Math.abs(n-a-2*Math.PI);d&&(a=Math.PI/2,n=2.5*Math.PI-0.0001);let c=o.innerR,p=o.open??d,u=d?0:Math.cos(a),g=d?1:Math.sin(a),f=d?0:Math.cos(n),m=d?1:Math.sin(n),x=o.longArc??(n-a-Math.PI<0.0001?0:1),y=["A",l,h,0,x,o.clockwise??1,t+(d?0.001:l*f),e+h*m];y.params={start:a,end:n,cx:t,cy:e},r.push(["M",t+l*u,e+h*g],y),E(c)&&((y=["A",c,c,0,x,E(o.clockwise)?1-o.clockwise:0,t+(d?-0.001:c*u),e+c*g]).params={start:n,end:a,cx:t,cy:e},r.push(p?["M",t+c*f,e+c*m]:["L",t+c*f,e+c*m],y)),p||r.push(["Z"])}return r}function Ts(t,e,i,s,o){return o?.r?Ti(t,e,i,s,o):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function Ti(t,e,i,s,o){let r=o?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}pe.emptyBBox={width:0,height:0,x:0,y:0},pe.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let As={arc:Ss,callout:function(t,e,i,s,o){let r=o?.arrowLength??6,a=Math.min(o?.r||0,i,s),n=a+6,l=o?.anchorX,h=o?.anchorY||0,d=Ti(t,e,i,s,{r:a});if(!A(l)||l<i&&l>0&&h<s&&h>0)return d;if(t+l>i-n)if(h>e+n&&h<e+s-n)d.splice(3,1,["L",t+i,h-6],["L",t+i+r,h],["L",t+i,h+6],["L",t+i,e+s-a]);else if(l<i){let c=h<e+n,p=c?e:e+s;d.splice(c?2:5,0,["L",l,h],["L",t+i-a,p])}else d.splice(3,1,["L",t+i,s/2],["L",l,h],["L",t+i,s/2],["L",t+i,e+s-a]);else if(t+l<n)if(h>e+n&&h<e+s-n)d.splice(7,1,["L",t,h+6],["L",t-r,h],["L",t,h-6],["L",t,e+a]);else if(l>0){let c=h<e+n,p=c?e:e+s;d.splice(c?1:6,0,["L",l,h],["L",t+a,p])}else d.splice(7,1,["L",t,s/2],["L",l,h],["L",t,s/2],["L",t,e+a]);else h>s&&l<i-n?d.splice(5,1,["L",l+6,e+s],["L",l,e+s+r],["L",l-6,e+s],["L",t+a,e+s]):h<0&&l>n&&d.splice(1,1,["L",l-6,e],["L",l,e-r],["L",l+6,e],["L",i-a,e]);return d},circle:function(t,e,i,s){return Ss(t+i/2,e+s/2,i/2,s/2,{start:0.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},rect:Ts,roundedRect:Ti,square:Ts,triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]}},{doc:Ai,SVG_NS:Zo,win:Ps}=w,Pi=(t,e)=>t.substring(0,e)+"…",qo=class{constructor(t){let e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e?.lineHeight,this.textOutline=e?.textOutline,this.ellipsis=e?.textOverflow==="ellipsis",this.lineClamp=e?.lineClamp,this.noWrap=e?.whiteSpace==="nowrap"}buildSVG(){let t=this.svgElement,{element:e,renderer:i}=t,s=(t.textStr??"").toString(),o=s.indexOf("<")!==-1,r=e.childNodes,a=!t.added&&i.box,n=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(n!==t.textCache){t.textCache=n,delete t.actualWidth;for(let l=r.length;l--;)e.removeChild(r[l]);if(o||this.ellipsis||this.width||t.textPath||s.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(s))){if(s!==""){a&&a.appendChild(e);let l=new yt(s);this.modifyTree(l.nodes),l.addToDOM(e),this.modifyDOM(),this.ellipsis&&(e.textContent||"").indexOf("…")!==-1&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),a&&a.removeChild(e)}}else e.appendChild(Ai.createTextNode(this.unescapeEntities(s)));ot(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=_(e.element,"x");for(e.firstLineMetrics=void 0;t=e.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))e.element.removeChild(t);else break;[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(a,n)=>{a.nextSibling&&a.previousSibling&&(n===0&&a.previousSibling.nodeType===1&&(e.firstLineMetrics=e.renderer.fontMetrics(a.previousSibling)),_(a,{dy:this.getLineHeight(a.nextSibling),x:i}))});let s=this.width||0;if(!s)return;let o=(a,n)=>{let l=a.textContent||"",h=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!this.noWrap&&(h.length>1||e.element.childNodes.length>1),c=this.getLineHeight(n),p=Math.max(0,s-0.8*c),u=0,g=e.actualWidth;if(d){let f=[],m=[];for(;n.firstChild&&n.firstChild!==a;)m.push(n.firstChild),n.removeChild(n.firstChild);for(;h.length;)if(h.length&&!this.noWrap&&u>0&&(f.push(a.textContent||""),a.textContent=h.join(" ").replace(/- /g,"-")),this.truncate(a,void 0,h,u===0&&g||0,s,p,(x,y)=>h.slice(0,y).join(" ").replace(/- /g,"-")),g=e.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){h.length&&(this.truncate(a,a.textContent||"",void 0,0,s,p,Pi),a.textContent&&(a.textContent=a.textContent?.replace("…","")+"…"));break}m.forEach((x)=>{n.insertBefore(x,a)}),f.forEach((x)=>{n.insertBefore(Ai.createTextNode(x),a);let y=Ai.createElementNS(Zo,"tspan");y.textContent="​",_(y,{dy:c,x:i}),n.insertBefore(y,a)})}else this.ellipsis&&l&&this.truncate(a,l,void 0,0,s,p,Pi)},r=(a)=>{[].slice.call(a.childNodes).forEach((n)=>{n.nodeType===Ps.Node.TEXT_NODE?o(n,a):(n.className.baseVal.indexOf("highcharts-br")!==-1&&(e.actualWidth=0),r(n))})};r(e.element)}getLineHeight(t){let e=t.nodeType===Ps.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,s)=>{let{attributes:o={},children:r,style:a={},tagName:n}=i,l=this.renderer.styledMode;if(n==="b"||n==="strong"?l?o.class="highcharts-strong":a.fontWeight="bold":(n==="i"||n==="em")&&(l?o.class="highcharts-emphasized":a.fontStyle="italic"),a?.color&&(a.fill=a.color),n==="br"){o.class="highcharts-br",i.textContent="​";let h=t[s+1];h?.textContent&&(h.textContent=h.textContent.replace(/^ +/gm,""))}else n==="a"&&r&&r.some((h)=>h.tagName==="#text")&&(i.children=[{children:r,tagName:"tspan"}]);n!=="#text"&&n!=="a"&&(i.tagName="tspan"),G(i,{attributes:o,style:a}),r&&r.filter((h)=>h.tagName!=="#text").forEach(e)};t.forEach(e),P(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,s,o,r,a){let n,l,h=this.svgElement,{rotation:d}=h,c=[],p=i&&!s?1:0,u=(e||i||"").length,g=u;i||(o=r);let f=function(m,x){let y=x||m,b=t.parentNode;if(b&&c[y]===void 0&&b.getSubStringLength)try{c[y]=s+b.getSubStringLength(0,i?y+1:y)}catch{}return c[y]};if(h.rotation=0,s+(l=f(t.textContent.length))>o){for(;p<=u;)g=Math.ceil((p+u)/2),i&&(n=a(i,g)),l=f(g,n&&n.length-1),p===u?p=u+1:l>o?u=g-1:p=g;u===0?t.textContent="":e&&u===e.length-1||(t.textContent=n||a(e||i,g)),this.ellipsis&&l>o&&this.truncate(t,t.textContent||"",void 0,0,o,r,Pi)}i&&i.splice(0,g),h.actualWidth=l,h.rotation=d}unescapeEntities(t,e){return K(this.renderer.escapes,function(i,s){e&&e.indexOf(i)!==-1||(t=t.toString().replace(RegExp(i,"g"),s))}),t}},{defaultOptions:Os}=Wt,{charts:Ko,deg2rad:Ls,doc:we,isFirefox:Es,isMS:Is,isWebKit:Jo,noop:Qo,SVG_NS:tr,symbolSizes:Oi,win:Li}=w;class ue{constructor(t,e,i,s,o,r,a,n,l){let h,d;this.x=0,this.y=0;let c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),p=c.element;t.appendChild(p),_(t,"dir","ltr"),t.innerHTML.indexOf("xmlns")===-1&&_(p,"xmlns",this.SVG_NS),this.box=p,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(we.createTextNode("Created with Highcharts 13.1.1")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=a,this.chartIndex=l||0,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),a||(c.css(this.getStyle(s||{})),this.palette=new Cs(this,n||Os.palette)),Es&&t.getBoundingClientRect&&((h=function(){ct(t,{left:0,top:0}),d=t.getBoundingClientRect(),ct(t,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})})(),this.unSubPixelFix=N(Li,"resize",h))}definition(t){return new yt([t]).addToDOM(this.defs.element)}getReferenceURL(){if((Es||Jo)&&we.getElementsByTagName("base").length){if(!E(I)){let t=Xt(),e=new yt([{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(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(we.body);ct(e,{position:"fixed",top:0,left:0,zIndex:900000}),I=we.elementFromPoint(6,6)?.id==="hitme",we.body.removeChild(e)}if(I)return yi(Li.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=G({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}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),re(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects.length=0,null}createElement(t){return new this.Element(this,t)}getRadialAttr(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]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map((s)=>`${s}-${t[s]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=W({color:"#000000",offsetX:0,offsetY:2,opacity:0.05,width:6},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(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}}]}buildText(t){new qo(t).buildSVG()}getContrast(t){if(t==="transparent")return"#000000";let e=ft.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(A(e[0])||!ft.useColorMix){let s=e.map((r)=>{let a=r/255;return a<=0.04?a/12.92:Math.pow((a+0.055)/1.055,2.4)}),o=0.2126*s[0]+0.7152*s[1]+0.0722*s[2];return 1.05/(o+0.05)>(o+0.05)/0.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,o={},r,a,n,l,h){let d=this.label(t,e,i,l,void 0,void 0,h,void 0,"button"),c=this.styledMode,p=arguments,u=0;o=W(Os.global.buttonTheme,o),c&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let g=o.states||{},f=o.style||{};delete o.states,delete o.style;let m=[yt.filterUserAttributes(o)],x=[f];return c||["hover","select","disabled"].forEach((y,b)=>{m.push(W(m[0],yt.filterUserAttributes(p[b+5]||g[y]||{}))),x.push(m[b+1].style),delete m[b+1].style}),N(d.element,Is?"mouseover":"mouseenter",function(){u!==3&&d.setState(1)}),N(d.element,Is?"mouseout":"mouseleave",function(){u!==3&&d.setState(u)}),d.setState=(y=0)=>{if(y!==1&&(d.state=u=y),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][y]),!c){d.attr(m[y]);let b=x[y];pt(b)&&d.css(b)}},d.attr(m[0]),!c&&(d.css(G({cursor:"default"},f)),h&&d.text.css({pointerEvents:"none"})),d.on("touchstart",(y)=>y.stopPropagation()).on("click",function(y){u!==3&&s?.call(d,y)})}crispLine(t,e){let[i,s]=t;return E(i[1])&&i[1]===s[1]&&(i[1]=s[1]=Nt(i[1],e)),E(i[2])&&i[2]===s[2]&&(i[2]=s[2]=Nt(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return ut(t)?e.d=t:pt(t)&&G(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=pt(t)?t:t===void 0?{}:{x:t,y:e,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(r,a,n){n.setAttribute("c"+a,r)},o.attr(s)}arc(t,e,i,s,o,r){let a;pt(t)?(e=(a=t).y,i=a.r,s=a.innerR,o=a.start,r=a.end,t=a.x):a={innerR:s,start:o,end:r};let n=this.symbol("arc",t,e,i,i,a);return n.r=i,n}rect(t,e,i,s,o,r){let a=pt(t)?t:t===void 0?{}:{x:t,y:e,r:o,width:Math.max(i||0,0),height:Math.max(s||0,0)},n=this.createElement("rect");return this.styledMode||(r!==void 0&&(a["stroke-width"]=r,G(a,n.crisp(a))),a.fill="none"),n.rSetter=function(l,h,d){n.r=l,_(d,{rx:l,ry:l})},n.rGetter=function(){return n.r||0},n.attr(a)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(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:i??!0?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,o,r){let a={preserveAspectRatio:"none"};A(e)&&(a.x=e),A(i)&&(a.y=i),A(s)&&(a.width=s),A(o)&&(a.height=o);let n=this.createElement("image").attr(a),l=function(h){n.attr({href:t}),r.call(n,h)};if(r){n.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let h=new Li.Image;N(h,"load",l),h.src=t,h.complete&&l({})}else n.attr({href:t});return n}symbol(t,e,i,s,o,r){let a,n,l,h,d=this,c=/^url\((.*?)\)$/,p=c.test(t),u=!p&&(this.symbols[t]?t:"circle"),g=u&&this.symbols[u];if(g)typeof e=="number"&&(n=g.call(this.symbols,e||0,i||0,s||0,o||0,r)),a=this.path(n),d.styledMode||a.attr("fill","none"),G(a,{symbolName:u||void 0,x:e,y:i,width:s,height:o}),r&&G(a,r);else if(p){l=t.match(c)[1];let f=a=this.image(l);f.imgwidth=r?.width??Oi[l]?.width,f.imgheight=r?.height??Oi[l]?.height,h=(m)=>m.attr({width:m.width,height:m.height}),["width","height"].forEach((m)=>{f[`${m}Setter`]=function(x,y){this[y]=x;let{alignByTranslate:b,element:k,width:v,height:M,imgwidth:C,imgheight:T}=this,L=y==="width"?C:T,O=1;r&&r.backgroundSize==="within"&&v&&M&&C&&T?(O=Math.min(v/C,M/T),_(k,{width:Math.round(C*O),height:Math.round(T*O)})):k&&L&&k.setAttribute(y,L),!b&&C&&T&&this.translate(((v||0)-C*O)/2,((M||0)-T*O)/2)}}),E(e)&&f.attr({x:e,y:i}),f.isImg=!0,E(f.imgwidth)&&E(f.imgheight)?h(f):(f.attr({width:0,height:0}),Ot("img",{onload:function(){let m=Ko[d.chartIndex];this.width===0&&(ct(this,{position:"absolute",top:"-999em"}),we.body.appendChild(this)),Oi[l]={width:this.width,height:this.height},f.imgwidth=this.width,f.imgheight=this.height,f.element&&h(f),this.parentNode&&this.parentNode.removeChild(this),d.asyncCounter--,d.asyncCounter||!m||m.hasLoaded||m.onload()},src:l}),this.asyncCounter++)}return a}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let o={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);o.x=Math.round(e||0),i&&(o.y=Math.round(i)),E(t)&&(o.text=t);let r=this.createElement("text").attr(o);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(a,n,l){let h=l.getElementsByTagName("tspan"),d=l.getAttribute(n);for(let c=0,p;c<h.length;c++)(p=h[c]).getAttribute(n)===d&&p.setAttribute(n,a);l.setAttribute(n,a)}),r}fontMetrics(t){let e=A(t)?t:wt(ae.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),s=Math.round(0.8*i);return{h:i,b:s,f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*Ls),4)),{x:-t/3*Math.sin(e*Ls),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<t.length;o++)ot(i[0])&&A(t[o])&&i.length===s[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),typeof t[o]=="string"&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e}label(t,e,i,s,o,r,a,n,l){return new pe(this,t,e,i,s,o,r,a,n,l)}alignElements(){this.alignedObjects.forEach((t)=>t.align())}}G(ue.prototype,{Element:ae,SVG_NS:tr,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:As,draw:Qo}),w.Renderer=ue;let{composed:er,isFirefox:ir}=w;class Oe extends ae{static compose(t){Rt(er,"HTMLElement")&&(t.prototype.html=function(e,i,s){return new Oe(this,"div").attr({text:e,x:Math.round(i),y:Math.round(s),xmlns:"http://www.w3.org/1999/xhtml"})})}constructor(t,e){super(t,e),this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s=t&&"width"in t,o=s&&t.width;return s&&(delete t.width,this.textWidth=wt(o)||void 0,e=!0),t?.textOverflow==="ellipsis"&&(t.overflow="hidden",(t.lineClamp??this.styles.lineClamp)||(t.whiteSpace="nowrap")),t?.lineClamp?(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"):t?.lineClamp===0&&(t.display="inline-block"),A(Number(t?.fontSize))&&(t.fontSize+="px"),G(this.styles,t),ct(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){let t;if(!this.added){this.alignOnAdd=!0;return}let{element:e,foreignObject:i,oldTextWidth:s,renderer:o,rotation:r,scaleX:a,styles:{display:n="inline-block",whiteSpace:l},textAlign:h="left",textWidth:d,x:c=0,y:p=0}=this,u=()=>this.textPxLength?this.textPxLength:(ct(e,{width:"",whiteSpace:l||"nowrap"}),e.offsetWidth),g=[r,h,e.innerHTML,d,this.textAlign].join(",");if(ct(e,{display:"inline-block",verticalAlign:"top"}),d!==s){let f=u(),m=d||0,x=!o.styledMode&&e.style.textOverflow===""&&e.style.webkitLineClamp;(m>s||f>m||x)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||e.style.textOverflow==="ellipsis")&&(ct(e,{width:(r||a||f>m)&&A(d)?d+"px":x?Math.min(f+1,m)+"px":"auto",display:n,whiteSpace:l||"normal"}),this.oldTextWidth=d)}i.attr({width:o.width,height:o.height}),g!==this.cTT&&(t=o.fontMetrics(e).b,this.getSpanCorrection(!E(r)&&!this.textWidth&&this.textPxLength||e.offsetWidth,t,Et(h))),super.updateTransform(),A(c)&&A(p)?(i.attr({x:c+(this.xCorr||0),y:p+(this.yCorr||0),width:e.offsetWidth+4,height:e.offsetHeight+1,"transform-origin":e.getAttribute("transform-origin")||"0 0"}),ct(e,{display:n,textAlign:h})):ir&&i.attr({width:0,height:0}),this.cTT=g}add(t){let{foreignObject:e}=this;return e.add(t),super.add(e),this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.oldTextWidth,yt.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}visibilitySetter(t,e){this.foreignObject.attr({[e]:t}),this[e]=t}}let Ke=Oe.prototype;Ke.ySetter=Ke.xSetter,Ke.opacitySetter=Ke.visibilitySetter,(Fs=Ni||(Ni={})).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,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:0.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:0.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)"},Fs.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:0.05,minPadding:0.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};let sr=Ni;(Wi||(Wi={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},K(e.events,function(i,s){t.eventOptions[s]!==i&&(t.eventOptions[s]&&(Vt(t,s,t.eventOptions[s]),delete t.eventOptions[s]),ye(i)&&(t.eventOptions[s]=i,N(t,s,i,{order:0})))})};let Je=Wi,{deg2rad:Ei}=w,ke=class{constructor(t,e,i,s,o){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,P(this,"init"),i||s||this.addLabel()}addLabel(){let t,e,i,s=this,o=s.axis,{options:r,chart:a,categories:n,logarithmic:l,names:h}=o,d=s.pos,c=s.options?.labels??r.labels,p=o.tickPositions,u=d===p[0],g=d===p[p.length-1],f=p.info,m=f?.boundaryTicks[d],x=r.dateTimeLabelFormats,y=this.parameters.category||(n?n[d]??h[d]??d:d);if(l&&A(y)&&(y=J(l.lin2log(y))),o.dateTime&&x)if(f){let C=f.unitName,T={millisecond:"hour",second:"hour",minute:"hour",hour:"day",day:"month",week:"month",month:"year",year:"year"}[C],L=!r.grid?.enabled&&m&&T&&x[T]?.boundary||x[C];t=(e=a.time.resolveDTLFormat(L)).main}else A(y)&&(t=o.dateTime.getXDateFormat(y,x||{}));s.isFirst=u,s.isLast=g,s.boundary=m;let b={axis:o,chart:a,dateTimeLabelFormat:t,boundary:m,isFirst:u,isLast:g,pos:d,tick:s,tickPositionInfo:f,value:y};P(this,"labelFormat",b);let k=(C)=>c.formatter?c.formatter.call(C,C):c.format?(C.text=o.defaultLabelFormatter.call(C),Ft.format(c.format,C,a)):o.defaultLabelFormatter.call(C);s.label=s.createLabel(k.call(b,b),c);let v=e?.list,M=s.label;v&&M?s.shortenLabel=function(){for(i=0;i<v.length;i++)if(G(b,{dateTimeLabelFormat:v[i]}),M.attr({text:k.call(b,b)}),M.getBBox().width<o.getSlotWidth(s)-2*(c.padding||0))return;M.attr({text:""})}:s.shortenLabel=void 0}createLabel(t,e,i){let s=this.axis,{renderer:o,styledMode:r}=s.chart,a=e.style,n=a.whiteSpace,l=this.label;return E(t)&&e.enabled?l||(l=o.text(t,i?.x,i?.y,e.useHTML).add(s.labelGroup)):l&&(l=l.destroy(),this.isNewLabel=!0),l&&(l.labelStyle!==a||t!==l.textStr)&&(l.labelStyle=a,t!==l.textStr&&(l.attr({text:t}),delete l.textPxLength),r||l.css(W(a)),l.textPxLength??(l.textPxLength=l.getBBox().width),!r&&n&&l.css({whiteSpace:n})),l}destroy(){re(this,this.axis)}getPosition(t,e,i,s){let o=this.axis,r=o.chart,a=s&&r.oldChartHeight||r.chartHeight,n={x:t?J(o.translate(e+i,void 0,void 0,s)+o.transB):o.left+o.offset+(o.opposite?(s&&r.oldChartWidth||r.chartWidth)-o.right-o.left:0),y:t?a-o.bottom+o.offset-(o.opposite?o.height:0):J(a-o.translate(e+i,void 0,void 0,s)-o.transB)};return n.y=U(n.y,-1e9,1e9),P(this,"afterGetPosition",{pos:n}),n}getLabelPosition(t,e,i,s,o,r,a,n){let l,h,d=this.axis,{labelAlign:c,side:p,staggerLines:u,transA:g}=d,f=d.linkedParent?d.linkedParent.reversed:d.reversed,m=d.tickRotCorr||{x:0,y:0},x=s||d.reserveSpaceDefault?0:-(d.labelOffset||0)*(d.labelAlign==="center"?0.5:1),y=o.distance??((p!==1||c!=="right"||o.reserveSpace)&&(p!==3||c!=="left"||o.reserveSpace)?15:0),b={};return l=p===0?i.rotation?-y:-i.getBBox().height:p===2?m.y+y:Math.cos(i.rotation*Ei)*(m.y-i.getBBox(!1,0).height/2),E(o.y)&&(l=p===0&&d.horiz?o.y+l:o.y),t=t+(o.x??[0,1,0,-1][p]*y)+x+m.x-(r&&s?r*g*(f?-1:1):0),e=e+l-(r&&!s?r*g*(f?1:-1):0),u&&(h=a/(n||1)%u,d.opposite&&(h=u-h-1),e+=h*(d.labelOffset/u)),b.x=t,b.y=Math.round(e),P(this,"afterGetLabelPosition",{pos:b,tickmarkOffset:r,index:a}),b}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,i,s,o=!1,r){return r.crispLine([["M",t,e],["L",t+(o?0:-i),e+(o?i:0)]],s)}handleOverflow(t){let{axis:e,label:i}=this,s=e.options.labels,o=t.x,{chartWidth:r,spacing:a}=e.chart,n=e.labelLeft??Math.min(e.pos,a[3]),l=e.labelRight??Math.max(e.isRadial?0:e.pos+e.len,r-a[1]),h=i?.rotation||0,d=Et(e.labelAlign||i?.attr("align")),c=i?.getBBox().width||0,p=e.getSlotWidth(this),u=p,g=1,f;h||s.overflow!=="justify"?h<0&&o-d*c<n?f=Math.round(o/Math.cos(h*Ei)-n):h>0&&o+d*c>l&&(f=Math.round((r-o)/Math.cos(h*Ei))):(o-d*c<n?u=t.x+u*(1-d)-n:o+(1-d)*c>l&&(u=l-t.x+u*d,g=-1),(u=Math.min(p,u))<p&&e.labelAlign==="center"&&(t.x+=g*(p-u-d*(p-Math.min(c,u)))),(c>u||e.autoRotation&&i?.styles?.width)&&(f=u)),f&&i&&(this.shortenLabel?this.shortenLabel():i.css({width:Math.floor(f)+"px",lineClamp:+!e.isRadial}))}render(t,e,i){let s=this.axis,o=(e?s.old?.horiz:void 0)??s.horiz,r=this.pos,a=this.tickmarkOffset??s.tickmarkOffset,n=this.getPosition(o,r,a,e),{x:l,y:h}=n,d=s.pos,c=d+s.len,p=o?l:h;s.visible||(i=0);let u=i??1;!s.chart.polar&&(J(p)<d||p>c)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(n,i),this.renderLabel(n,e,u,t),this.isNew=!1,P(this,"afterRender")}renderGridLine(t,e){let i=this.axis,s=i.options,o={},r=this.pos,a=this.type,n=this.tickmarkOffset??i.tickmarkOffset,{renderer:l,styledMode:h}=i.chart,d=this.gridLine,{gridLineWidth:c,gridLineColor:p,gridLineDashStyle:u}=s;this.type==="minor"&&(c=s.minorGridLineWidth,p=s.minorGridLineColor,u=s.minorGridLineDashStyle),h||(o["stroke-width"]=c||0),d||(a||(o.zIndex=1),this.gridLine=d=l.path().attr(o).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(i.gridGroup));let g=i.getPlotLinePath({value:r+n,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1});g&&(o.d=g,o.opacity=t?0:e,h||(o.stroke=p,o.dashstyle=u),d[t||this.isNew?"attr":"animate"](o))}renderMark(t,e){let i=this.axis,{chart:s,options:o}=i,r=s.renderer,a=this.type,n=i.tickSize(a?a+"Tick":"tick"),{x:l,y:h}=t,d=o[a!=="minor"?"tickWidth":"minorTickWidth"]??(!a&&i.isXAxis?1:0),c=o[a!=="minor"?"tickColor":"minorTickColor"],p=this.mark,u=p?"animate":"attr";(n||p)&&(i.opposite&&n&&(n[0]=-n[0]),p||(this.mark=p=r.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup)),s.styledMode||p[u]({stroke:c,"stroke-width":d}),p[u]({d:this.getMarkPath(l,h,n?.[0]||0,p.strokeWidth(),i.horiz,r),opacity:n?e:0}))}renderLabel(t,e,i,s){let o=this.axis,{horiz:r,options:a}=o,n=this.label,l=a.labels,h=l.step,d=this.tickmarkOffset??o.tickmarkOffset,c=t.x,p=t.y,u=!0;n&&A(c)&&(n.xy=t=this.getLabelPosition(c,p,n,r,l,d,s,h),(!this.isFirst||this.isLast||a.showFirstLabel)&&(!this.isLast||this.isFirst||a.showLastLabel)?r&&!e&&i!==0&&this.handleOverflow(t):u=!1,h&&s%h&&(u=!1),u&&A(t.y)?(t.opacity=i,n[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(n.hide(),this.isNewLabel=!0))}},{xAxis:Ds,yAxis:or}=sr,{parse:rr}=ft,{defaultOptions:Ii}=Wt,{registerEventOptions:ar}=Je,{deg2rad:nr}=w,Bs=(t,e)=>Fe(e,void 0,void 0,t.options.allowDecimals??(e<0.5||t.tickAmount!==void 0),!!t.tickAmount);G(Ii,{xAxis:Ds,yAxis:W(Ds,or)});let Di=class{constructor(t,e,i){this.clippable=!0,this.init(t,e,i)}init(t,e,i=this.coll){let s=i==="xAxis",o=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=o,this.isXAxis=s,this.coll=i,P(this,"init",{userOptions:e}),this.opposite=e.opposite??this.opposite,this.side=e.side??(o?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let r=this.options,a=r.labels;this.type=r.type||"linear",this.uniqueNames=r.uniqueNames??!0,P(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=r.reversed,this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames=this.type==="category"||r.categories===!0,this.categories=ut(r.categories)&&r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[]),this.namesMap||(this.namesMap={}),this.plotLinesAndBandsGroups||(this.plotLinesAndBandsGroups={}),this.positiveValuesOnly=!!this.logarithmic,this.ticks||(this.ticks={}),this.labelEdge||(this.labelEdge=[]),this.minorTicks||(this.minorTicks={}),this.alternateBands||(this.alternateBands={}),this.len??(this.len=0),this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.max=void 0,this.min=void 0;let n=r.crosshair??Ct(t.options.tooltip?.crosshairs)[+!s];this.crosshair=n===!0?{}:n,t.axes.indexOf(this)===-1&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),Ye(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!E(this.reversed)&&(this.reversed=!0),this.labelRotation=A(a.rotation)?a.rotation:void 0,ar(this,r),P(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:this.side===1?90:-90}};this.options=W(e,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},Ii[this.coll],t),P(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t=this.axis,e=this.chart,{numberFormatter:i}=e,s=A(this.value)?this.value:NaN,o=t.chart.time,r=t.categories,a=this.dateTimeLabelFormat,n=Ii.lang,l=n.numericSymbols,h=n.numericSymbolMagnitude||1000,d=t.logarithmic?Math.abs(s):t.tickInterval,c=l?.length,p,u;if(r)u=`${this.value}`;else if(a)u=o.dateFormat(a,s,!0);else if(c&&l&&d>=1000)for(;c--&&u===void 0;)d>=(p=Math.pow(h,c+1))&&10*s%p==0&&l[c]!==null&&s!==0&&(u=i(s/p,-1,void 0,void 0,e)+l[c]);return u??(u=i(s,-1,void 0,1e4>Math.abs(s)?"":void 0,e)),u}getSeriesExtremes(){let t,e=this;P(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach((i)=>{if(i.reserveSpace()){let s=i.options,o,r=s.threshold,a,n;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(r||0)&&(r=void 0),e.isXAxis)(o=i.getColumn("x")).length&&(o=e.logarithmic?o.filter((l)=>l>0):o,a=(t=i.getXExtremes(o)).min,n=t.max,A(a)||a instanceof Date||(o=o.filter(A),a=(t=i.getXExtremes(o)).min,n=t.max),o.length&&(e.dataMin=Math.min(e.dataMin??a,a),e.dataMax=Math.max(e.dataMax??n,n)));else{let l=i.applyExtremes();A(l.dataMin)&&(a=l.dataMin,e.dataMin=Math.min(e.dataMin??a,a)),A(l.dataMax)&&(n=l.dataMax,e.dataMax=Math.max(e.dataMax??n,n)),E(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),P(this,"afterGetSeriesExtremes")}translate(t,e,i,s,o,r){let a=this.linkedParent||this,n=s&&a.old?a.old.min:a.min;if(!A(n))return NaN;let l=a.minPixelPadding,h=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&o)&&!!a.lin2val,d=1,c=0,p=s&&a.old?a.old.transA:a.transA,u=0;return p||(p=a.transA),i&&(d*=-1,c=a.len),a.reversed&&(d*=-1,c-=d*(a.sector||a.len)),e?(u=(t=t*d+c-l)/p+n,h&&(u=a.lin2val(u))):(h&&(t=a.val2lin(t)),u=d*(t-n)*p+c+d*l+(A(r)?p*r:0),a.isRadial||(u=J(u)),0.000000001>Math.abs(u)&&(u=0)),u}toPixels(t,e){return this.translate(this.chart?.time.parse(t)??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e=this,{chart:i,left:s,top:o,transB:r}=e,{lineWidth:a,old:n,value:l}=t,h=(n?e.old?.horiz:void 0)??e.horiz,d=n&&i.oldChartHeight||i.chartHeight,c=n&&i.oldChartWidth||i.chartWidth,{translatedValue:p,force:u}=t,g,f,m,x,y;function b(v,M,C){return u!=="pass"&&(v<M||v>C)&&(u?v=U(v,M,C):y=!0),v}let k={value:l,lineWidth:a,old:n,force:u,acrossPanes:t.acrossPanes,translatedValue:p};return P(this,"getPlotLinePath",k,function(v){g=m=(p=U(p=p??e.translate(l,void 0,void 0,n),-1e9,1e9))+r,f=x=d-p-r,A(p)?h?(f=o,x=d-e.bottom+(e.options.isInternal?0:i.scrollablePixelsY||0),g=m=b(g,s,s+e.width)):(g=s,m=c-e.right+(i.scrollablePixelsX||0),f=x=b(f,o,o+e.height)):(y=!0,u=!1),v.path=y&&!u?void 0:i.renderer.crispLine([["M",g,f],["L",m,x]],a||1)}),k.path}getLinearTickPositions(t,e,i){let s,o,r,a=J(Math.floor(e/t)*t),n=J(Math.ceil(i/t)*t),l=[];if(J(a+t)===a&&(r=20),this.single)return[e];for(s=a;s<=n&&(l.push(s),(s=J(s+t,r))!==o);)o=s;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return t===!0?e??"auto":t!==!1?e:void 0}getMinorTickPositions(){let t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=this.pointRangePadding||0,o=(this.min||0)-s,r=(this.max||0)+s,a=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:r-o,n=[],l;if(a&&a/i<this.len/3){let h=this.logarithmic;if(h)this.paddedTicks.forEach(function(d,c,p){c&&n.push.apply(n,h.getLogTickPositions(i,p[c-1],p[c],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),o,r,t.startOfWeek));else for(l=o+(e[0]-o)%i;l<=r&&l!==n[0];l+=i)n.push(l)}return n.length!==0&&this.trimTicks(n),n}adjustForMinRange(){let t=this.options,e=this.logarithmic,i=this.chart.time,{max:s,min:o,minRange:r}=this,a,n,l,h;this.isXAxis&&r===void 0&&!e&&(r=E(t.min)||E(t.max)||E(t.floor)||E(t.ceiling)?null:Math.min(5*(Xe(this.series.map((d)=>{let c=d.getColumn("x");return d.xIncrement?c.slice(0,2):c}))||0),this.dataMax-this.dataMin)),A(s)&&A(o)&&A(r)&&s-o<r&&(n=this.dataMax-this.dataMin>=r,a=(r-s+o)/2,l=[o-a,i.parse(t.min)??o-a],n&&(l[2]=e?e.log2lin(this.dataMin):this.dataMin),h=[(o=Y(l))+r,i.parse(t.max)??o+r],n&&(h[2]=e?e.log2lin(this.dataMax):this.dataMax),(s=it(h))-o<r&&(l[0]=s-r,l[1]=i.parse(t.min)??s-r,o=Y(l))),this.minRange=r,this.min=o,this.max=s}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(s){let o=s.closestPointRange,r=s.getColumn("x");r.length===1?i.push(r[0]):s.sorted&&E(o)&&s.reserveSpace()&&(e=E(e)?Math.min(e,o):o)}),i.length&&(i.sort((s,o)=>s-o),t=Xe([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t,e){let i,s=ut(this.options.categories),{name:o,series:r}=t,a=s?this.categories:this.names,n=this.namesMap;return r.requireSorting=!1,E(e)||(e=this.uniqueNames&&a?s?a.indexOf(o):n[o]??-1:r.autoIncrement()),e===-1?!s&&a&&(i=a.length):A(e)&&(i=e),i!==void 0?(this.names[i]=t.name,n[t.name]=i):i=A(t.x)?t.x:r.autoIncrement(),i}updateNames(){let t=this,{names:e,namesMap:i}=this;e.length>0&&(Object.keys(i).forEach(function(s){delete i[s]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((s)=>{if(s.xIncrement=null,delete s.xColumn,!s.points||s.isDirtyData)t.max=Math.max(t.max||0,s.dataTable.rowCount-1),s.processData(),s.generatePoints();else{let o=s.getColumn("x");s.points?.forEach((r)=>{r.x=o[r.index]})}}))}setAxisTranslation(){let t=this,e=t.max-t.min,i=t.linkedParent,s=!!t.categories,o=t.isXAxis,r=t.axisPointRange||0,a,n=0,l=0,h,d=t.transA;(o||s||r)&&(a=t.getClosest(),i?(n=i.minPointOffset,l=i.pointRangePadding):t.series.forEach(function(c){let p=s?1:o?c.options.pointRange??a??0:t.axisPointRange||0,u=c.options.pointPlacement;if(r=Math.max(r,p),!t.single||s){let g=c.is("xrange")?!o:o;n=Math.max(n,g&&ot(u)?0:p/2),l=Math.max(l,g&&u==="on"?0:p)}}),h=t.ordinal?.slope&&a?t.ordinal.slope/a:1,t.minPointOffset=n*=h,t.pointRangePadding=l*=h,t.pointRange=Math.min(r,t.single&&s?1:e),o&&(t.closestPointRange=a)),t.translationSlope=t.transA=d=t.staticScale||t.len/(e+l||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=d*n,P(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return A(t)&&A(e)&&t-e||void 0}setTickInterval(t){let{categories:e,chart:i,dataMax:s,dataMin:o,dateTime:r,isXAxis:a,logarithmic:n,options:l,softThreshold:h}=this,d=i.time,c=A(this.threshold)?this.threshold:void 0,p=this.minRange||0,{ceiling:u,floor:g,softMax:f,softMin:m}=l,x=this.linkedParent,{tickPixelInterval:y,maxPadding:b,minPadding:k}=l,v=0,M,C=A(l.tickInterval)&&l.tickInterval>=0?l.tickInterval:void 0,T,L,O,D;if(r||e||x||this.getTickAmount(),O=this.userMin??d.parse(l.min),D=this.userMax??d.parse(l.max),x?(M=x.getExtremes(),this.min=M.min??M.dataMin,this.max=M.max??M.dataMax,this.type!==x.type&&Mt(11,!0,i)):(h&&E(c)&&A(s)&&A(o)&&(o>=c?(T=c,k=0):s<=c&&(L=c,b=0)),this.min=O??T??o,this.max=D??L??s),A(this.max)&&A(this.min)&&(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,o??this.min)&&Mt(10,!0,i),this.min=J(n.log2lin(this.min),16),this.max=J(n.log2lin(this.max),16)),this.range&&A(o)&&(this.userMin=this.min=O=Math.max(o,this.minFromRange()||0),this.userMax=D=this.max,this.range=void 0)),P(this,"foundExtremes"),this.adjustForMinRange(),A(this.min)&&A(this.max)){if(!A(this.userMin)&&A(m)&&m<this.min&&(this.min=O=m),!A(this.userMax)&&A(f)&&f>this.max&&(this.max=D=f),e||this.axisPointRange||this.stacking?.usePercentage||x||(v=this.max-this.min)&&(!E(O)&&k&&(this.min-=v*k),!E(D)&&b&&(this.max+=v*b)),!A(this.userMin)&&A(g)&&(this.min=Math.max(this.min,g)),!A(this.userMax)&&A(u)&&(this.max=Math.min(this.max,u)),h&&A(o)&&A(s)){let B=c||0;!E(O)&&this.min<B&&o>=B?this.min=l.minRange?Math.min(B,this.max-p):B:!E(D)&&this.max>B&&s<=B&&(this.max=l.minRange?Math.max(B,this.min+p):B)}!i.polar&&this.min>this.max&&(E(l.min)?this.max=this.min:E(l.max)&&(this.min=this.max)),v=this.max-this.min}if(this.min!==this.max&&A(this.min)&&A(this.max)?x&&!C&&y===x.options.tickPixelInterval?this.tickInterval=C=x.tickInterval:this.tickInterval=C??(this.tickAmount?v/Math.max(this.tickAmount-1,1):e?1:v*y/Math.max(this.len,y)):this.tickInterval=1,a&&!t){let B=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(X){X.forceCrop=X.forceCropping?.(),X.processData(B)}),P(this,"postProcessData",{hasExtremesChanged:B})}this.setAxisTranslation(),P(this,"initialAxisTranslation"),this.pointRange&&!C&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let z=l.minTickInterval??(r&&!this.series.some((B)=>!B.sorted)?this.closestPointRange:0);!C&&z&&this.tickInterval<z&&(this.tickInterval=z),r||n||C||(this.tickInterval=Bs(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t=this.options,{tickPositions:e,tickPositioner:i}=t,s=this.getMinorTickInterval(),o=!this.isPanning,r=o&&t.startOnTick,a=o&&t.endOnTick,n=[],l;if(this.tickmarkOffset=this.categories&&t.tickmarkPlacement==="between"&&this.tickInterval===1?0.5:0,this.single=this.min===this.max&&E(this.min)&&!this.tickAmount&&(this.min%1==0||t.allowDecimals!==!1),e)n=e.slice();else if(A(this.min)&&A(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))n=[this.min,this.max],Mt(19,!1,this.chart);else if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let h=this.tickInterval,d=h;for(;d<=2*h;)if(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount)this.tickInterval=Bs(this,d*=1.1);else break}n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),i&&(this.tickPositions=n,(l=i.apply(this,[this.min,this.max,this]))&&(n=l))}this.isDirty||n.length===this.tickPositions?.length||(this.isDirty=!0),this.tickPositions=n,this.minorTickInterval=s==="auto"&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:s,this.paddedTicks=n.slice(0),this.trimTicks(n,r,a),!this.linkedParent&&A(this.min)&&A(this.max)&&(this.single&&n.length<2&&!this.categories&&!this.series.some((h)=>h.is("heatmap")&&h.options.pointPlacement==="between")&&(this.min-=0.5,this.max+=0.5),e||l||this.adjustTickAmount()),P(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(P(this,"trimTicks"),!this.linkedParent||!this.grid){if(e&&A(s))this.min=s;else if(t.length)for(;this.min-r>t[0];)t.shift();if(i&&A(o))this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();t.length===0&&E(s)&&!this.options.tickPositions&&t.push((o+s)/2)}}alignToOthers(){let t,e=this,i=e.chart,s=[this],o=e.options,r=i.options.chart,a=this.coll==="yAxis"&&r.alignThresholds,n=[];if(e.thresholdAlignment=void 0,(r.alignTicks!==!1&&o.alignTicks||a)&&o.startOnTick!==!1&&o.endOnTick!==!1&&!e.logarithmic){let l=(d)=>{let{horiz:c,options:p}=d;return[c?p.left:p.top,p.width,p.height,p.pane].join(",")},h=l(this);i[this.coll].forEach(function(d){let{series:c}=d;c.length&&c.some((p)=>p.visible)&&d!==e&&l(d)===h&&(t=!0,s.push(d))})}if(t&&a){s.forEach((h)=>{let d=h.getThresholdAlignment(e);A(d)&&n.push(d)});let l=n.length>1?n.reduce((h,d)=>h+=d,0)/n.length:void 0;s.forEach((h)=>{h.thresholdAlignment=l})}return t}getThresholdAlignment(t){if((!A(this.dataMin)||this!==t&&this.series.some((e)=>e.isDirty||e.isDirtyData||e.xAxis?.isDirty))&&this.getSeriesExtremes(),A(this.threshold)){let e=U((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let t=this.options,{tickPixelInterval:e,tickAmount:i}=t;E(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}adjustTickAmount(){let t=this,{finalTickAmt:e,max:i,min:s,options:o,tickPositions:r,tickAmount:a,thresholdAlignment:n}=t,l=r?.length,h=t.threshold??(t.softThreshold?0:null),d,c,p=t.tickInterval,u,g=()=>r.push(J(r[r.length-1]+p)),f=()=>r.unshift(J(r[0]-p));if(A(n)&&(u=n===0?0:n===1?a-1:Math.round(U(n*(a-1),1,a-2)),o.reversed&&(u=a-1-u)),t.hasData()&&A(s)&&A(i)){let m=()=>{t.transA*=(l-1)/(a-1),t.min=o.startOnTick?r[0]:Math.min(s,r[0]),t.max=o.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])};if(A(u)&&A(t.threshold)){for(;r[u]!==h||r.length!==a||r[0]>s||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<a;)r[u]===void 0||r[u]>t.threshold?f():g();if(p>8*t.tickInterval)break;p*=2}m()}else if(l<a){for(;r.length<a;)r.length%2||s===h?g():f();m()}if(E(e)){for(c=d=r.length;c--;)(e===3&&c%2==1||e<=2&&c>0&&c<d-1)&&r.splice(c,1);t.finalTickAmt=void 0}}}setScale(){let{chart:t,coll:e,options:i,stacking:s}=this,{linkedTo:o}=i,r=t[e]||[],a=r.indexOf(this),n=ot(o)?te(r,(p)=>p.options.id===o):A(o)?r[o]:void 0,l=this.linkedParent=n===this?void 0:n;l&&a>-1&&r.indexOf(l)>a&&l.setScale();let h=!1,d=!1;this.series.forEach((p)=>{h=h||p.isDirtyData||p.isDirty,d=d||p.xAxis?.isDirty||!1}),this.setAxisSize();let c=this.len!==this.old?.len;c||h||d||this.linkedParent||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(s&&e==="yAxis"&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&e==="xAxis"&&s.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==this.old?.min||this.max!==this.old?.max)):s&&s.cleanStacks(),h&&delete this.allExtremes,P(this,"afterSetScale")}setExtremes(t,e,i=!0,s,o){let r=this.chart;this.series.forEach((a)=>{delete a.kdTree}),t=r.time.parse(t),e=r.time.parse(e),P(this,"setExtremes",o=G(o,{min:t,max:e}),(a)=>{this.userMin=a.min,this.userMax=a.max,this.eventArgs=a,i&&r.redraw(s)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(It(e.width??t.plotWidth-i[3]+i[1],t.plotWidth)),r=this.height=Math.round(It(e.height??t.plotHeight-i[0]+i[2],t.plotHeight)),a=this.top=Math.round(It(e.top??t.plotTop+i[0],t.plotHeight,t.plotTop)),n=this.left=Math.round(It(e.left??t.plotLeft+i[3],t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-a,this.right=t.chartWidth-o-n,this.len=Math.max(s?o:r,0),this.pos=s?n:a}getExtremes(){let t=this.logarithmic;return{min:t?J(t.lin2log(this.min)):this.min,max:t?J(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return t===null||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=((t-90*this.side)%360+360)%360,i={align:"center"};return P(this,"autoLabelAlign",i,function(s){e>15&&e<165?s.align="right":e>195&&e<345&&(s.align="left")}),i.align}tickSize(t){let e=this.options,i=e[t==="tick"?"tickWidth":"minorTickWidth"]??(t==="tick"&&this.isXAxis&&!this.categories?1:0),s=e[t==="tick"?"tickLength":"minorTickLength"],o;i&&s&&(e[t+"Position"]==="inside"&&(s=-s),o=[s,i]);let r={tickSize:o,prefix:t};return P(this,"afterTickSize",r),r.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||t.box)}unsquish(){let t=this.options.labels,e=t.padding||0,i=this.horiz,s=this.tickInterval,o=this.len/((+!!this.categories+this.max-this.min)/s),r=t.rotation,a=J(0.8*this.labelMetrics().h),n=Math.max(this.max-this.min,0),l=function(u){let g=(u+2*e)/(o||1);return(g=g>1?Math.ceil(g):1)*s>n&&u!==1/0&&o!==1/0&&n&&(g=Math.ceil(n/s)),J(g*s)},h=s,d,c=Number.MAX_VALUE,p;if(i){if(!t.staggerLines&&(A(r)?p=[r]:o<t.autoRotationLimit&&(p=t.autoRotation)),p){let u,g;for(let f of p)(f===r||f&&f>=-90&&f<=90)&&(g=(u=l(Math.abs(a/Math.sin(nr*f))))+Math.abs(f/360))<c&&(c=g,d=f,h=u)}}else h=l(0.75*a);return this.autoRotation=p,this.labelRotation=d??(A(r)?r:0),t.step?s:h}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),r=e.margin[3];if(t&&A(t.slotWidth))return t.slotWidth;if(i&&s.step<2&&!this.isRadial)return s.rotation?0:(this.staggerLines||1)*this.len/o;if(!i){let a=s.style.width;if(a!==void 0)return parseInt(String(a),10);if(!this.opposite&&r)return r-e.spacing[3]}return 0.33*e.chartWidth}renderUnsquish(){let t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,o=this.options.labels,r=o.style,a=this.horiz,n=this.getSlotWidth(),l=Math.max(1,Math.round(n-(a?2*(o.padding||0):o.distance??15))),h={},d=this.labelMetrics(),c=r.lineClamp,p,u=c??(Math.floor(this.len/(i.length*d.h))||1),g=0;ot(o.rotation)||(h.rotation=o.rotation||0),i.forEach(function(f){g=Math.max(g,s[f].label?.textPxLength||0)}),this.maxLabelLength=g,this.autoRotation?g>l&&g>d.h?h.rotation=this.labelRotation:this.labelRotation=0:n&&(p=l),h.rotation&&(p=g>0.5*t.chartHeight?0.33*t.chartHeight:g,c||(u=1)),this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(h.align=this.labelAlign),i.forEach(function(f){let m=s[f],x=m?.label,y=r.width,b={};x&&(x.attr(h),m.shortenLabel?m.shortenLabel():p&&!y&&r.whiteSpace!=="nowrap"&&(p<(x.textPxLength||0)||x.element.tagName==="DIV")?x.css(G(b,{width:`${p}px`,lineClamp:u})):(x.styles.width||x.textWidth||x.styles.lineClamp)&&!b.width&&!y&&x.css({width:"auto",lineClamp:0}))},this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&E(this.min)&&E(this.max)}addTitle(t){let e=this.chart.renderer,i=this.horiz,s=this.opposite,o=this.options.title,r=this.chart.styledMode,a=o.textAlign||(i?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[o.align],n={text:o.text||"",zIndex:7,align:a},l={rotation:o.rotation||0},h=this.axisTitle;if(h?h.attr(n).animate(l):((h=e.text("",0,0,o.useHTML).attr(G(n,l)).addClass("highcharts-axis-title")).add(this.axisGroup),h.isNew=!0),!r){let d=W(o.style);o.style.width||this.isRadial||(d.width=this.len+"px"),h.css(d)}h[t?"show":"hide"](t),this.axisTitle=h}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new ke(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,o=e.renderer,r=(a,n)=>o.g(a).addClass(`highcharts-${i.toLowerCase()}${n} `+(this.isRadial?`highcharts-radial-axis${n} `:"")+(s.className||"")).add(t);(this.axisGroup||(this.axisGroup=r("axis",""))).attr({zIndex:s.zIndex}),(this.gridGroup||(this.gridGroup=r("grid","-grid"))).clip(this.clippable?e.plotClipInner:void 0).attr({zIndex:s.gridZIndex}),(this.labelGroup||(this.labelGroup=r("axis-labels","-labels"))).attr({zIndex:s.labels.zIndex})}shuffleTicks(){let t=this.ticks,e=this.old?.names,i=(s)=>new Set(s).size!==s.length;if(this.type==="category"&&e&&!i(e)&&!i(this.names)){e.forEach((o,r)=>{let a=this.namesMap[o];E(a)&&r!==a&&(t[r]&&(t[r].pos=a,this.isDirty=!0),t[a]&&this.names.indexOf(e[a])===-1&&(t[a].pos=NaN))});let s=Object.values(t);Object.keys(t).forEach((o)=>{delete t[o]}),s.forEach((o)=>{isNaN(o.pos)?o.destroy():t[o.pos]=o})}}getOffset(){let{chart:t,horiz:e,options:i,side:s,ticks:o,tickPositions:r,coll:a}=this,n=this.hasData(),{title:l,labels:h}=i,d=A(i.crossing),{axisOffset:c,clipOffset:p}=t,u=[-1,1,1,-1][s],g=h.distance??15,f=this.tickRotCorr||{x:0,y:0},m=0,x,y=0,b,k=0,v=0,M,C,T;if(this.showAxis=x=n||i.showEmpty,this.staggerLines=this.horiz&&h.staggerLines||void 0,this.createGroups(),n||this.linkedParent?(this.shuffleTicks(),r.forEach(this.generateTick.bind(this)),this.renderUnsquish(),m=Math.abs((f=this.tickRotCorr).x),T=this.reserveSpaceDefault=s===0||s===2||{1:"left",3:"right"}[s]===this.labelAlign,(h.reserveSpace??(!d&&null)??(this.labelAlign==="center"||null)??T)&&r.forEach(function(L){v=Math.max(o[L].getLabelSize(),v)}),this.staggerLines&&(v*=this.staggerLines),!e&&A(this.labelRotation)&&T&&(v-=m),this.labelOffset=v*(this.opposite?-1:1)):K(o,function(L,O){L.destroy(),delete o[O]}),l?.text&&l.enabled!==!1?(this.addTitle(x),x&&!d&&l.reserveSpace!==!1&&(this.titleOffset=y=this.axisTitle.getBBox()[e?"height":"width"],k=E(b=l.offset)?0:l.margin??(e?5:10))):this.axisTitle=this.axisTitle?.destroy(),this.renderLine(),this.offset=u*(A(i.offset)?i.offset:c[s]?c[s]+(i.margin||0):0),C=s===0?-this.labelMetrics().h:s===2?f.y:0,M=Math.abs(v)+k,v&&(M-=C,M+=u*(e?h.y??f.y+u*g:h.x??(T?u*(g-m):f.x+u*g)),!e&&!T&&this.labelAlign==="center"&&A(this.labelRotation)&&(M+=m)),this.axisTitleMargin=b??M,this.maxLabelDimensions=this.getMaxLabelDimensions?.(o,r),a!=="colorAxis"&&p){let L=this.tickSize("tick");c[s]=Math.max(c[s],Math.max((this.axisTitleMargin||0)+y,M)+u*this.offset,M,r?.length&&L?L[0]+u*this.offset:0);let O=!this.axisLine||i.offset?0:this.axisLine.strokeWidth()/2;p[s]=Math.max(p[s],O)}P(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+s,a=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?a:this.top],["L",o?e.chartWidth-this.right:r,o?a:e.chartHeight-this.bottom]],t)}renderLine(){let{chart:t,offset:e=0,options:i}=this,s=this.axisLine?"animate":"attr";this.axisLine||(this.axisLine=t.renderer.path().addClass("highcharts-axis-line").attr({zIndex:7}).clip(this.clippable&&e<=0?t.plotClipOuter:void 0).add(this.axisGroup)),t.styledMode||this.axisLine[s]({stroke:i.lineColor,"stroke-width":i.lineWidth})}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,o=this.len,r=this.options.title,a=e?i:s,n=this.opposite,l=this.offset,{x:h,y:d}=r,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:a+(e?0:o),middle:a+o/2,high:a+(e?o:0)}[r.align],g=(e?s+this.height:i)+(e?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],f={x:e?u+h:g+(n?this.width:0)+l+h,y:e?g+d-(n?this.height:0)+l:u+d};return P(this,"afterGetTitlePosition",{titlePosition:f}),f}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new ke(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let s=this.ticks;(!this.linkedParent||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(s[t]||(s[t]=new ke(this,t)),i&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))}render(){let t,e,i=this,{chart:s,logarithmic:o}=i,r=s.renderer,{options:a,tickPositions:n,axisTitle:l,ticks:h,minorTicks:d,alternateBands:c}=i,{alternateGridColor:p,crossing:u}=a,{tickmarkOffset:g,axisLine:f,showAxis:m}=i,x=+i.visible,y=Ht(r.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,this.createGroups(),[h,d,c].forEach(function(b){K(b,function(k){k.isActive=!1})}),A(u)){let b=this.isXAxis?s.yAxis[0]:s.xAxis[0],k=[1,-1,-1,1][this.side];if(b){let v=b.toPixels(u,!0);i.horiz&&(v=b.len-v),i.offset=k*v}}if(i.hasData()||i.linkedParent){let b=i.chart.hasRendered&&i.old&&A(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(k){i.renderMinorTick(k,b)}),n.length&&(n.forEach(function(k,v){i.renderTick(k,v,b)}),g&&(i.min===0||i.single)&&(h[-1]||(h[-1]=new ke(i,-1,null,!0)),h[-1].render(-1))),p&&n.forEach(function(k,v){e=n[v+1]!==void 0?n[v+1]+g:i.max-g,v%2==0&&k<i.max&&e<=i.max+(s.polar?-g:g)&&(c[k]||(c[k]=new w.PlotLineOrBand(i,{},"plotBands")),t=k+g,c[k].options={from:o?o.lin2log(t):t,to:o?o.lin2log(e):e,color:p,className:"highcharts-alternate-grid"},c[k].render(),c[k].isActive=!0)})}for(let b of["plotBands","plotLines"])for(let k of this[b])k.render();[h,d,c].forEach(function(b){let k=[],v=y.duration;K(b,function(M,C){M.isActive||(M.render(C,!1,0),M.isActive=!1,k.push(C))}),Zt(function(){let M=k.length;for(;M--;)b[k[M]]&&!b[k[M]].isActive&&(b[k[M]].destroy(),delete b[k[M]])},b!==c&&s.hasRendered&&v?v:0)}),f&&(f[f.isPlaced?"animate":"attr"]({d:this.getLinePath(f.strokeWidth()),opacity:x}),f.isPlaced=!0,f[m?"show":"hide"](m)),l&&m&&(l[l.isNew?"attr":"animate"]({opacity:x,...i.getTitlePosition(l)}),l.isNew=!1),i.stacking?.renderStackTotals(),this.old||this.saveOld(),i.isDirty=!1,P(this,"afterRender")}redraw(){(this.visible||this.axisGroup)&&this.render(),this.series.forEach(function(t){t.isDirty=!0})}saveOld(){this.old=A(this.min)?{horiz:this.horiz,len:this.len,max:this.max,min:this.min,names:this.names.slice(),transA:this.transA,userMax:this.userMax,userMin:this.userMin}:void 0}destroy(){P(this,"destroy"),Vt(this),[this.ticks,this.minorTicks,this.alternateBands,this.plotBands,this.plotLines,this.plotLinesAndBandsGroups].forEach(re),["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach((t)=>{this[t]=this[t]?.destroy()}),K(this,(t,e)=>{delete this[e]})}drawCrosshair(t,e){let i,s,o,r,a=this.crosshair,n=a?.snap??!0,l=this.chart,h=this.cross;if(P(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross?.e),a&&(E(e)||!n)!==!1){if(clearTimeout(this.crossShowTimer),n?E(e)&&(s=(this.coll!=="colorAxis"?e.crosshairPos:null)??(this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),E(s)&&(r={value:e&&(this.isXAxis?e.x:e.stackY??e.y??void 0),translatedValue:s},l.polar&&G(r,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),i=this.getPlotLinePath(r)||null),!E(i))return void this.hideCrosshair();o=this.categories&&!this.isRadial,this.crossShowTimer=Zt(()=>{let d=this.cross;d||(this.cross=d=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(a.className||"")).attr({zIndex:a.zIndex??2}).clip(a.clip===!1?void 0:l.plotClipInner).add()),l.styledMode||d.attr({stroke:a.color||(o?rr("var(--highcharts-highlight-color-20)").setOpacity(0.25).get():"var(--highcharts-neutral-color-20)"),"stroke-width":a.width??1,dashstyle:a.dashStyle||"Solid"}).css({"pointer-events":"none"}),d.show().animate({d:i},Ht(a?.animation)),o&&!a.width&&d.attr({"stroke-width":this.transA}),d.e=t},(!h||h.attr("visibility")==="hidden")&&a.showDelay||0)}else this.hideCrosshair();P(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),P(this,"afterHideCrosshair")}update(t={},e=!0){let i=this.chart;P(this,"update",{options:t}),t=W(this.userOptions,t),this.isDirty=this.forceRedraw=!0,this.init(i,t),i.isDirtyBox=!0,e&&i.redraw()}remove(t){let e=this.chart,i=this.coll,s=this.series,o=s.length;for(;o--;)s[o]&&s[o].remove(!1);jt(e.axes,this),jt(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,(t??!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}},{composed:lr}=w;(function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new s(this))}t.compose=function(o){return Rt(lr,"Axis.DateTime")&&(o.prototype.getTimeTicks=e,N(o,"afterSetType",i)),o};class s{constructor(o){this.axis=o}normalizeTimeTickInterval(o,r){let a=r||[["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=a[a.length-1],l=rt[n[0]],h=n[1],d,c;for(d=0;d<a.length;d++)if(l=rt[(n=a[d])[0]],h=n[1],a[d+1]){let u=(l*h[h.length-1]+rt[a[d+1][0]])/2;if(o<=u){c=u/o;break}}l===rt.year&&o<5*l&&(h=[1,2,5]);let p=Fe(o/l,h,n[0]==="year"?Math.max(fi(o/l),1):1);return{unitRange:l,count:p,unitName:n[0],match:c}}getXDateFormat(o,r){let{axis:a}=this,n=a.chart.time;return a.closestPointRange?n.getDateFormat(a.closestPointRange,o,a.options.startOfWeek,r)||n.resolveDTLFormat(r.year).main:n.resolveDTLFormat(r.day).main}}t.Additions=s})(Hi||(Hi={}));let hr=Hi,{composed:dr}=w;(function(t){function e(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new s(this))}function i(){let o=this.logarithmic;o&&(this.lin2val=function(r){return o.lin2log(r)},this.val2lin=function(r){return o.log2lin(r)})}t.compose=function(o){return Rt(dr,"Axis.Logarithmic")&&(N(o,"afterSetType",e),N(o,"afterInit",i)),o};class s{constructor(o){this.axis=o}getLogTickPositions(o,r,a,n){let l=this.axis,{len:h,options:d}=l,c=[];if(n||(this.minorAutoInterval=void 0),o>=0.5)o=Math.round(o),c=l.getLinearTickPositions(o,r,a);else if(o>=0.08){let p,u,g,f,m,x,y,b=Math.floor(r);for(p=o>0.3?[1,2,4]:o>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=b;u<a+1&&!y;u++)for(f=p.length,g=0;g<f&&!y;g++)(m=this.log2lin(this.lin2log(u)*p[g]))>r&&(!n||x<=a)&&x!==void 0&&c.push(x),x>a&&(y=!0),x=m}else{let p=this.lin2log(r),u=this.lin2log(a),g=n?l.getMinorTickInterval():d.tickInterval,f=d.tickPixelInterval/(n?5:1),m=n?h/l.tickPositions.length:h;o=Fe(o=(g==="auto"?null:g)??this.minorAutoInterval??(u-p)*f/(m||1)),c=l.getLinearTickPositions(o,p,u).map(this.log2lin),n||(this.minorAutoInterval=o/5)}return n||(l.tickInterval=o),c}lin2log(o){return Math.pow(10,o)}log2lin(o){return Math.log(o)/Math.LN10}}t.Additions=s})(Xi||(Xi={}));let cr=Xi;(function(t){let e,i=(r)=>function(a){var n;let l=new e(this,a,r);return this.visible&&l.render(),(n=this.options)[r]||(n[r]=this.userOptions[r]=[]),this.options[r].push(a),this[r].push(l),l};function s(r,a,n){n=n||this.options;let l=this.getPlotLinePath({value:a,force:!0,acrossPanes:n.acrossPanes}),h=[],d=this.horiz,c=!A(this.min)||!A(this.max)||r<this.min&&a<this.min||r>this.max&&a>this.max,p=this.getPlotLinePath({value:r,force:!0,acrossPanes:n.acrossPanes}),u,g=1,f;if(p&&l)for(c&&(f=p.toString()===l.toString(),g=0),u=0;u<p.length;u+=2){let m=p[u],x=p[u+1],y=l[u],b=l[u+1];(m[0]==="M"||m[0]==="L")&&(x[0]==="M"||x[0]==="L")&&(y[0]==="M"||y[0]==="L")&&(b[0]==="M"||b[0]==="L")&&(d&&y[1]===m[1]?(y[1]+=g,b[1]+=g):d||y[2]!==m[2]||(y[2]+=g,b[2]+=g),h.push(["M",m[1],m[2]],["L",x[1],x[2]],["L",b[1],b[2]],["L",y[1],y[2]],["Z"])),h.isFlat=f}return h}function o(r){[...this.plotBands||[],...this.plotLines||[]].find((a)=>a.id===r)?.remove()}t.compose=function(r,a){let n=a.prototype;return n.addPlotBand||(e=r,G(n,{addPlotBand:i("plotBands"),addPlotLine:i("plotLines"),getPlotBandPath:s,removePlotBand:o,removePlotLine:o}),N(a,"afterInit",function(){if(!this.plotBands)for(let l of(this.plotLinesAndBandsGroups={},["plotBands","plotLines"]))for(let h of(this[l]=[],Ct(this.options[l]||[])))this[l].push(new e(this,h,l))}),N(a,"update",function({options:l}){for(let h of["plotBands","plotLines"])if(l[h]){let d=this[h];Ct(l[h]).forEach((p={},u)=>{let g;p?.id&&(g=d.find((f)=>f.id===p.id)),g||(g=d[u]),g?(g.update(p,!1),l[h][u]=g.options):g=this[h==="plotBands"?"addPlotBand":"addPlotLine"](p),g.isActive=!0});let c=d.length;for(;c--;)d[c].isActive?delete d[c].isActive:d[c].remove()}})),a}})(Gi||(Gi={}));let pr=Gi,Rs=class t{static compose(e,i){return N(e,"afterInit",function(){this.labelCollectors.push(()=>{let s=[];for(let o of this.axes)for(let r of["plotBands","plotLines"])for(let{label:a,options:n}of o[r])a&&!n?.label?.allowOverlap&&s.push(a);return s})}),pr.compose(t,i)}constructor(e,i,s){this.axis=e,this.options=i,this.id=i.id,this.coll=s}render(){let e;P(this,"render");let{axis:i,options:s}=this,{chart:o,horiz:r,logarithmic:a}=i,{color:n,events:l,zIndex:h=0}=s,{renderer:d,styledMode:c,time:p}=i.chart,u=p.parse(s.to),g=p.parse(s.from),f=p.parse(s.value),{borderWidth:m,label:x}=s,{label:y,svgElem:b}=this,k,v=this.coll==="plotBands",M=v?"band":"line",C=`${M}s-${h}`,T=!b,L={class:`highcharts-plot-${M} ${s.className||""}`},O=v?m||0:s.width??1;return c||(L["stroke-width"]=O),(k=i.plotLinesAndBandsGroups[C])||(i.plotLinesAndBandsGroups[C]=k=d.g("plot-"+C).clip(o.plotClipOuter).attr({zIndex:h}).add()),k[T?"attr":"animate"]({opacity:+i.visible}),b||(this.svgElem=b=d.path().attr(L)),b.parentGroup!==k&&b.add(k),!v&&E(f)?e=i.getPlotLinePath({value:a?.log2lin(f)??f,lineWidth:b.strokeWidth(),acrossPanes:s.acrossPanes}):v&&E(g)&&E(u)&&(e=i.getPlotBandPath(a?.log2lin(g)??g,a?.log2lin(u)??u,s)),e&&(L.d=e),!c&&(v?(L.fill=n||"var(--highcharts-highlight-color-10)",m&&(L.stroke=s.borderColor)):(L.stroke=n||"var(--highcharts-neutral-color-40)",s.dashStyle&&(L.dashstyle=s.dashStyle))),T&&l&&K(l,(D,z)=>{b?.on(z,(B)=>{l[z].apply(this,[B,this])})}),(T||!b.d)&&e?.length?b.attr(L):b&&(e?(b.show(),b.animate(L)):b.d&&(b.hide(),y&&(this.label=y=y.destroy()))),x&&(E(x.text)||E(x.formatter))&&e?.length&&i.width>0&&i.height>0&&!e.isFlat?(x=W({align:r&&v?"center":void 0,x:r?!v&&4:10,verticalAlign:!r&&v?"middle":void 0,y:r?v?16:10:v?6:-4,rotation:r&&!v?90:0,...v?{inside:!0}:{}},x),this.renderLabel(x,e,v,h)):y&&y.hide(),this}renderLabel(e,i,s,o){let r=this.axis,a=r.chart,n=a.renderer,l=e.inside,h=this.label;h||(this.label=h=n.text("",0,0,e.useHTML).attr({zIndex:o})),h.attr({text:this.getLabelText(e),align:e.textAlign||e.align,class:"highcharts-plot-"+(s?"band":"line")+"-label "+(e.className||"")})[h.placed?"animate":"attr"]({opacity:1,rotation:e.rotation}),a.styledMode||h.css(W({color:a.options.title?.style?.color,fontSize:"0.8em",textOverflow:s&&!l?"":"ellipsis"},e.style)),h.added||h.add();let d=i.xBounds||[i[0][1],i[1][1],s?i[2][1]:i[0][1]],c=i.yBounds||[i[0][2],i[1][2],s?i[2][2]:i[0][2]],p=it(d),u=it(c),g=Y(d)-p;h.align(e,!1,{x:p,y:u,width:g,height:Y(c)-u}),h.alignAttr.y-=n.fontMetrics(h).b,!h.alignValue||h.alignValue==="left"||E(l)?h.css({width:(e.style?.width||(s&&l?g:h.rotation===90?r.height-(h.alignAttr.y-r.top):(e.clip?r.width+r.left:a.chartWidth)-h.alignAttr.x))+"px"}):h.textWidth&&h.css({width:"auto"}),h.show(!0)}update(e,i=!0){W(!0,this.options,e),i&&this.render()}getLabelText(e){return E(e.formatter)?e.formatter.call(this,this):e.text}destroy(){re(this,this.axis)}remove(){jt(this.axis[this.coll],this),jt(this.axis.options[this.coll]||[],this.options),this.destroy()}},{format:zs}=Ft,{composed:ur,dateFormats:gr,doc:Ns,isSafari:fr}=w,{distribute:mr}=Ze,Qe=(t)=>{clearTimeout(t.hideTimer),clearTimeout(t.showTimer)};class ti{constructor(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}bodyFormatter(t){return t.map((e)=>{let i=e.series.tooltipOptions,s=e.formatPrefix||"point";return(i[s+"Formatter"]||e.tooltipFormatter).call(e,i[s+"Format"]||"",e)})}cleanSplit(t){this.chart.series.forEach(function(e){let i=e?.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||Ct(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){this.tracker=this.tracker?.destroy(),this.label=this.label?.destroy(),this.split&&(this.cleanSplit(!0),this.tt=this.tt?.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),He(this.container)),Ge(this.hideTimer),Qe(this)}getAnchor(t,e){let i,{chart:s,pointer:o}=this,{inverted:r,plotTop:a,plotLeft:n}=s;if(t=Ct(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)e.chartX===void 0&&(e=o.normalize(e)),i=[e.chartX-n,e.chartY-a];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let h=0,d=0;t.forEach(function(c){let p=c.pos(!0);p&&(h+=p[0],d+=p[1])}),h/=t.length,d/=t.length,this.shared&&t.length>1&&e&&(r?h=e.chartX:d=e.chartY),i=[h-n,d-a]}let l={point:t[0],ret:i};return P(this,"getAnchor",l),l.ret.map(Math.round)}getClassName(t,e,i){let s=this.options,o=t.series,r=o.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+(t.colorIndex??o.colorIndex),r?.className].filter(ot).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,o=this.options,r=this.split&&this.allowShared,a=this.container,n=this.chart.renderer;if(this.label){let l=!this.label.hasClass("highcharts-label");(!r&&l||r&&!l)&&this.destroy()}if(!this.label){if(this.outside){let l=this.chart,h=l.options.chart.style;this.container=a=w.doc.createElement("div"),a.className="highcharts-container highcharts-tooltip-container "+(l.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),a.dataset.highchartsChart=l.index.toString(),ct(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(o.style.zIndex||0,(h?.zIndex||0)+3)}),this.renderer=n=new ue(a,0,0,h,void 0,void 0,n.styledMode)}if(r?this.label=n.g("tooltip"):(this.label=n.label("",t,e,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),s||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth??+!o.fixed}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let l=this.label;[l.xSetter,l.ySetter].forEach((h,d)=>{l[d?"ySetter":"xSetter"]=(c)=>{h.call(l,i.distance),l[d?"y":"x"]=c,a&&(a.style[d?"top":"left"]=`${c}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&w.doc.body.appendChild(a),this.label}getPlayingField(){let{body:t,documentElement:e}=Ns,{chart:i,distance:s,outside:o}=this;return{width:o?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:o?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let{distance:s,chart:o,outside:r,pointer:a}=this,{inverted:n,plotLeft:l,plotTop:h,polar:d}=o,{plotX:c=0,plotY:p=0}=i,u={},g=n&&i.h||0,{height:f,width:m}=this.getPlayingField(),x=a.getChartPosition(),y=(z)=>{let B=z==="x";return[z,B?m:f,B?t:e].concat(r?[B?t*x.scaleX:e*x.scaleY,B?x.left-s+(c+l)*x.scaleX:x.top-s+(p+h)*x.scaleY,0,B?m:f]:[B?t:e,B?c+l:p+h,B?l:h,B?l+o.plotWidth:h+o.plotHeight])},b=y("y"),k=y("x"),v,M=!!i.negative;!d&&o.hoverSeries?.yAxis?.reversed&&(M=!M);let C=!this.followPointer&&(i.ttBelow??(!d&&!n===M)),T=function(z,B,X,j,H,at,St){let ht=r?z==="y"?s*x.scaleY:s*x.scaleX:s,et=(X-j)/2,tt=j<H-s,Z=H+s+j<B,mt=H-ht-X+et,nt=H+ht-et;if(C&&Z)u[z]=nt;else if(!C&&tt)u[z]=mt;else if(tt)u[z]=Math.min(St-j,mt-g<0?mt:mt-g);else{if(!Z)return u[z]=0,!1;u[z]=Math.max(at,nt+g+X>B?nt:nt+g)}},L=function(z,B,X,j,H){if(H<s||H>B-s)return!1;H<X/2?u[z]=1:H>B-j/2?u[z]=B-j-2:u[z]=H-X/2},O=function(z){[b,k]=[k,b],v=z},D=()=>{T.apply(0,b)!==!1?L.apply(0,k)!==!1||v||(O(!0),D()):v?u.x=u.y=0:(O(!0),D())};return(n&&!d||this.len>1)&&O(),D(),r&&(u.x-=x.left,u.y-=x.top),u}getFixedPosition(t,e,i){let s=i.series,{chart:o,options:r,split:a}=this,n=r.position,l=n.relativeTo,h=r.shared||s?.yAxis?.isRadial&&(l==="pane"||!l)?"plotBox":l,d=h==="chart"?o.renderer:o[h]||o.getClipBox(s,!0);return{x:d.x+(d.width-t)*Et(n.align)+n.x,y:d.y+(d.height-e)*Et(n.verticalAlign)+(!a&&n.y||0)}}hide(t){let e=this;Qe(this),t=t??this.options.hideDelay,this.isHidden||(this.hideTimer=Zt(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(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=e.outside??!!(t.scrollablePixelsX||t.scrollablePixelsY)}shouldStickOnContact(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))}move(t,e,i,s){let{followPointer:o,options:r}=this,a=Ht(!o&&!this.isHidden&&!r.fixed&&r.animation),n=o||(this.len||0)>1,l={x:t,y:e};this.anchorX=i,this.anchorY=s,n?l.anchorX=l.anchorY=NaN:(l.anchorX=i,l.anchorY=s),a.step=()=>this.drawTracker(),this.getLabel().animate(l,a)}refresh(t,e){let i=this,{chart:s,options:o,pointer:r,shared:a}=this,n=Ct(t),l=n[0],h=o.format,d=o.formatter||i.defaultFormatter,c=s.styledMode,p=i.allowShared;if(!o.enabled||!l.series)return;Qe(this),i.allowShared=!(!ut(t)&&t.series&&t.series.noSharedTooltip),p=p&&!i.allowShared,i.followPointer=!i.split&&l.series.tooltipOptions.followPointer;let u=i.getAnchor(t,e),g=u[0],f=u[1];a&&i.allowShared&&(r.applyInactiveState(n),n.forEach((y)=>y.setState("hover")),l.points=n),this.len=n.length;let m=ot(h)?zs(h,l,s):d.call(l,i,l);l.points=void 0;let x=l.series;this.distance=x.tooltipOptions.distance??16,m===!1?this.hide():this.showTimer=Zt(()=>{if(i.split&&i.allowShared)i.renderSplit(m,n);else{let y=g,b=f;if(e&&r.isDirectTouch&&(y=e.chartX-s.plotLeft,b=e.chartY-s.plotTop),!(s.polar||x.options.clip===!1||n.some((k)=>r.isDirectTouch||k.series.shouldShowTooltip(y,b))))return void i.hide();{let k=i.getLabel(p&&i.tt||{});(!o.style.width||c)&&k.css({width:(this.outside?this.getPlayingField():s.spacingBox).width-2*o.padding+"px"}),k.attr({class:i.getClassName(l),text:ut(m)?m.join(""):m}),this.outside&&k.attr({x:U(k.x||0,0,this.getPlayingField().width-(k.width||0)-1)}),c||k.attr({stroke:o.borderColor||l.color||x.color||"var(--highcharts-neutral-color-60)"}),i.updatePosition({plotX:g,plotY:f,negative:l.negative,ttBelow:l.ttBelow,series:x,h:u[2]||0})}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1},i.isHidden&&o.showDelay||0),P(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:o,chartHeight:r,plotHeight:a,plotLeft:n,plotTop:l,scrollablePixelsY:h=0,scrollablePixelsX:d,styledMode:c},distance:p,options:u,options:{fixed:g,position:f,positioner:m},pointer:x}=i,{scrollLeft:y=0,scrollTop:b=0}=s.scrollablePlotArea?.scrollingContainer||{},k=i.outside&&typeof d!="number"?Ns.documentElement.getBoundingClientRect():{left:y,right:y+o,top:b,bottom:b+r},v=i.getLabel(),M=this.renderer||s.renderer,C=!!s.xAxis[0]?.opposite,{left:T,top:L}=x.getChartPosition(),O=m||g,D=l+b,z=0,B=a-h,X=function(et,tt,Z,mt,nt=[0,0],bt=!0){let vt,xt;if(Z.isHeader)xt=C?0:B,vt=U(nt[0]-et/2,k.left,k.right-et-(i.outside?T:0));else if(g&&Z){let Lt=i.getFixedPosition(et,tt,Z);vt=Lt.x,xt=Lt.y-D}else xt=nt[1]-D,vt=U(vt=bt?nt[0]-et-p:nt[0]+p,bt?vt:k.left,k.right);return{x:vt,y:xt}};ot(t)&&(t=[!1,t]);let j=t.slice(0,e.length+1).reduce(function(et,tt,Z){if(tt!==!1&&tt!==""){let mt=e[Z-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},nt=mt.isHeader,bt=nt?i:mt.series,vt=bt.tt=function(_t,Bt,Kt){let se=_t,{isHeader:Se,series:Be}=Bt,Jt=Be.tooltipOptions||u,he=Se?W(Jt,Jt.header):Jt;if(!se){let Te={padding:Jt.padding,r:Jt.borderRadius};c||(Te.fill=he.backgroundColor,Te["stroke-width"]=he.borderWidth??+!Jt.fixed),se=M.label("",0,0,he.shape||(g&&!Se?"rect":"callout"),void 0,void 0,Jt.useHTML).addClass(i.getClassName(Bt,!0,Se)).attr(Te).add(v)}return se.isActive=!0,c||se.css(he.style),se.attr({text:Kt}),c||se.attr({stroke:he.borderColor||Bt.color||Be.color||"var(--highcharts-neutral-color-80)"}),se}(bt.tt,mt,tt.toString()),xt=vt.getBBox(),Lt=xt.width+vt.strokeWidth();nt&&(z=xt.height+u.header.distance,B+=z,C&&(D-=z));let{anchorX:zt,anchorY:Dt}=function(_t){let Bt,Kt,{isHeader:se,plotX:Se=0,plotY:Be=0,series:Jt}=_t;if(se)Bt=Math.max(n+Se,n),Kt=l+a/2;else{let{xAxis:he,yAxis:Te}=Jt;Bt=he.pos+U(Se,-p,he.len+p),Jt.shouldShowTooltip(0,Te.pos-l+Be,{ignoreX:!0})&&(Kt=Te.pos+Be)}return{anchorX:Bt=U(Bt,k.left-p,k.right+p),anchorY:Kt}}(mt);if(typeof Dt=="number"){let _t=xt.height+1,Bt=(m||X).call(i,Lt,_t,mt,i,[zt,Dt]);et.push({align:O?0:void 0,anchorX:zt,anchorY:Dt,boxWidth:Lt,point:mt,rank:Bt.rank??+!!nt,size:_t,target:Bt.y,tt:vt,x:Bt.x})}else vt.isActive=!1}return et},[]);!O&&j.some((et)=>{let{outside:tt}=i,Z=(tt?T:0)+et.anchorX;return Z<k.left&&Z+et.boxWidth<k.right||Z<T-k.left+et.boxWidth&&k.right-Z>Z})&&(j=j.map((et)=>{let{x:tt,y:Z}=X.call(this,et.boxWidth,et.size,et.point,void 0,[et.anchorX,et.anchorY],!1);return G(et,{target:Z,x:tt})})),i.cleanSplit(),mr(j,B);let H={left:T,right:T};j.forEach(function(et){let{x:tt,boxWidth:Z,isHeader:mt}=et;!mt&&(i.outside&&T+tt<H.left&&(H.left=T+tt),i.outside&&H.left+Z>H.right&&(H.right=T+tt))}),j.forEach(function(et){let{x:tt,anchorX:Z,anchorY:mt,pos:nt,point:{isHeader:bt}}=et,vt={visibility:nt===void 0?"hidden":"inherit",x:tt,y:(nt||0)+D+(g&&f.y||0),anchorX:Z,anchorY:mt};if(i.outside&&tt<Z){let xt=T-H.left;xt>0&&(vt.x=bt?(H.right-H.left)/2:tt+xt,vt.anchorX=Z+xt)}et.tt.attr(vt)});let{container:at,outside:St,renderer:ht}=i;if(St&&at&&ht){let{width:et,height:tt,x:Z,y:mt}=v.getBBox();ht.setSize(et+Z,tt+mt,!1),at.style.left=H.left+"px",at.style.top=L+"px"}fr&&v.attr({opacity:v.opacity===1?0.999:1})}drawTracker(){let t=this;if(!t.shouldStickOnContact()){t.tracker=t.tracker?.destroy();return}let{chart:e,label:i}=t,s=t.shared?e.hoverPoints:e.hoverPoint,o=i?.box;if(!o||!s)return;let{height:r,r:a,width:n,x:l,y:h}=o,{anchorX:d,anchorY:c}=o;A(d)||(d=(t.anchorX||0)-(i.translateX||0),c=(t.anchorY||0)-(i.translateY||0));let p=i.renderer.symbols.callout(l,h,n,r,{anchorX:d,anchorY:c,arrowLength:Math.max(d-n,-d,c-r,-c,0),r:a});!t.tracker&&(t.tracker=i.renderer.path().addClass("highcharts-tracker").add(i),N(t.tracker.element,"mouseenter",()=>Qe(t)),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)","stroke-linejoin":"round","stroke-width":10})),t.tracker.attr({d:p})}styledModeFormat(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}"')}headerFooterFormatter(t,e){let i=t.series,{tooltipOptions:s,xAxis:o}=i,r=o?.dateTime,a={isFooter:e,point:t},n=s.xDateFormat||"",l=s[e?"footerFormat":"headerFormat"];return P(this,"headerFormatter",a,function(h){if(r&&!n&&A(t.key)&&(n=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&n){if(pt(n)){let d=n;gr[0]=(c)=>i.chart.time.dateFormat(d,c),n="%0"}(t.tooltipDateKeys||["key"]).forEach((d)=>{l=l.replace(RegExp("point\\."+d+"([ \\)}])"),`(point.${d}:${n})$1`)})}i.chart.styledMode&&(l=this.styledModeFormat(l)),h.text=zs(l,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,W(!0,this.options,t))}updatePosition(t){let{chart:e,container:i,distance:s,options:o,pointer:r,renderer:a}=this,{height:n=0,width:l=0}=this.getLabel(),{fixed:h,positioner:d}=o,{left:c,top:p,scaleX:u,scaleY:g}=r.getChartPosition(),f=(d||h&&this.getFixedPosition||this.getPosition).call(this,l,n,t,this),m=w.doc,x=(t.plotX||0)+e.plotLeft,y=(t.plotY||0)+e.plotTop,b;if(a&&i){if(f.x+=c,f.y+=p,d||h){let{scrollLeft:k=0,scrollTop:v=0}=e.scrollablePlotArea?.scrollingContainer||{};f.x+=k,f.y+=v}b=(o.borderWidth??+!h)+2*s+2,a.setSize(U(l+b,0,m.documentElement.clientWidth)-1,n+b,!1),(u!==1||g!==1)&&(ct(i,{transform:`scale(${u}, ${g})`}),x*=u,y*=g),x+=c-f.x,y+=p-f.y}this.move(Math.round(f.x),Math.round(f.y||0),x,y)}}(Ys=ti||(ti={})).compose=function(t){Rt(ur,"Core.Tooltip")&&N(t,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new Ys(e,e.options.tooltip,this))})};let Ws=ti,{defaultOptions:xr}=Wt,{format:yr}=Ft;class Le{constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=Xt()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,this.category=t.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,P(this,"afterInit")}applyOptions(t,e,i){let s=this.series,o=s.options.pointValKey||s.pointValKey;return G(this,t=Le.prototype.optionsToObject.call(this,t)),this.options?this.options=s.chart.options.chart.allowMutatingData?G(this.options,t):W(this.options,t):this.options=t,o&&(this.y=Le.prototype.getNestedProperty.call(this,o)),A(e)&&(this.x=e),i||(this.selected&&(this.state="select"),t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point"),this}getOrigin({x:t=0,y:e=0},i={}){let{graphic:s,series:o}=this;if(o.chart.inverted&&s?.parentGroup&&!s?.parentGroup?.rotation){let a=this.pos(!1,t,e);a&&(t=a[0],e=a[1])}t-=(i.width||0)/2,e-=(i.height||0)/2;let r={x:t};return o.is("column")||this.plotHigh||(r.y=e),r}destroy(t){if(!this.destroyed&&!this.condemned){let e=this,i=e.series,s=i.chart,o=s.hoverPoints,{duration:r}=Ht(e.series.chart.renderer.globalAnimation),a=()=>{for(let n in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Vt(e),e.destroyElements()),e)delete e[n];this.destroyed=!0};e.legendItem&&s.legend.destroyItem(e),o&&(e.setState(),jt(o,e),o.length||(s.hoverPoints=void 0)),e===s.hoverPoint&&e.onMouseOut(),r&&!t&&i.condemnedPoints?(i.condemnedPoints.push(this),this.graphic?.addClass("highcharts-point-condemned"),setTimeout(a,r)):a(),s.pointCount--}this.condemned=!0}destroyElements(t={graphic:1,dataLabel:1}){let e,i,s=this,o=[];for(t.graphic&&o.push("graphic","connector"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),i=o.length;i--;)s[e=o[i]]&&(s[e]=s[e].destroy());["graphic","dataLabel"].forEach((r)=>{let a=`${r}s`;t[r]&&s[a]&&(s[a].forEach((n)=>{n?.element&&n.destroy()}),delete s[a])})}firePointEvent(t,e,i){let s=this,o=this.series.options;s.manageEvent(t),t==="click"&&o.allowPointSelect&&(i=function(r){!s.condemned&&s.select&&s.select(null,r.ctrlKey||r.metaKey||r.shiftKey)}),P(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&this.series.options.negativeColor!==!1?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getNestedProperty(t){if(t)return t.indexOf("custom.")===0?mi(t,this.options):this[t]}getZone(){let t=this.series,e=t.zones,i=t.zoneAxis||"y",s,o=0;for(s=e[0];o<e.length&&this[i]>=s.value;)s=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),s?.color&&!this.options.color?this.color=s.color:this.color=this.nonZonedColor,s}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(A(this.x)||this.x instanceof Date)&&A(this.y)}optionsToObject(t){let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],o=s.length,r={},a,n=0,l=0;if(A(t)||t===null)r[s[0]]=t;else if(ut(t))for(!i&&t.length>o&&((a=typeof t[0])=="string"?e.xAxis?.dateTime?r.x=e.chart.time.parse(t[0]):r[e.tupleKey||"name"]=t[0]:a==="number"&&(r.x=t[0]),n++);l<o;)i&&t[n]===void 0||(r[s[l]]=t[n]),n++,l++;else typeof t=="object"&&(r=t,t.dataLabels&&(e.hasDataLabels=()=>!0),t.marker&&(e._hasPointMarkers=!0));return(i||!e.options.data)&&Object.keys(r).forEach((h)=>{h.indexOf(".")>0&&(Le.prototype.setNestedProperty(r,r[h],h),delete r[h])}),r}pos(t,e=this.plotX,i=this.plotY){let{series:s}=this,{chart:o,xAxis:r,yAxis:a}=s||{},n=0,l=0;if(o&&A(e)&&A(i))return t&&(n=r?r.pos:o.plotLeft,l=a?a.pos:o.plotTop),o.inverted&&r&&a?[a.len-i+l,r.len-e+n]:[e+n,i+l]}resolveColor(){let{options:t,series:e}=this,i=e.chart,s=i.options.chart,o=i.styledMode,r,a=s.colorCount,n;if(delete this.nonZonedColor,e.options.colorByPoint){if(!o){let l=e.options.colors||i.options.colors;r=l?.[e.colorCounter],a=l?.length}n=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)}else o||(r=e.color),n=e.colorIndex;this.colorIndex=t.colorIndex??n,this.color=t.color??r}setNestedProperty(t,e,i){let s=i.split(".");return s.some((o)=>o==="__proto__"||o==="constructor")||s.reduce(function(o,r,a,n){let l=n.length-1===a;return o[r]=l?e:pt(o[r],!0)&&Object.hasOwnProperty.call(o,r)?o[r]:{},o[r]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:o="",valuePrefix:r="",valueSuffix:a=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach((n)=>{n="{point."+n,(r||a)&&(t=t.replace(RegExp(n+"}","g"),r+n+"}"+a)),t=t.replace(RegExp(n+"}","g"),n+":,."+o+"f}")}),yr(t,this,e)}update(t,e=!0,i,s){let o=this,{series:r,graphic:a}=o,{chart:n,options:l}=r,h=l.data;function d(){o.applyOptions(t),a&&o.y===null&&!o.hasMockGraphic&&(o.graphic=a.destroy()),pt(t,!0)&&(a?.element&&t?.marker&&t.marker.symbol!==void 0&&(o.graphic=a.destroy()),t?.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()));let c=o.index,p=o.optionsToObject(t);!r.hasProcessedDataTable&&(r.dataTable.setRow(p,c),h&&(h[c]=pt(h[c],!0)||pt(t,!0)?o.options:t??h[c])),r.isDirty=r.isDirtyData=!0,"x"in p&&(ot(p.x)&&(r.xColumnIsNumbers=void 0),o.x=r.getX(p.x),o.isNull=o.isValid&&!o.isValid(),r.xColumn&&(r.xColumn[c]=o.x)),!r.fixedBox&&r.hasCartesianSeries&&(n.isDirtyBox=!0),l.legendType==="point"&&(n.isDirtyLegend=!0),e&&n.redraw(i)}s===!1?d():o.firePointEvent("update",{options:t},d)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,o=s.chart;t=t??!i.selected,this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data&&(s.options.data[s.data.indexOf(i)]=i.options),i.setState(t&&"select"),e||o.getSelectedPoints().forEach(function(r){let a=r.series,n=a.options;r.selected&&r!==i&&(r.selected=r.options.selected=!1,n.data&&(n.data[a.data.indexOf(r)]=r.options),r.setState(o.hoverPoints&&n.inactiveOtherPoints?"inactive":""),r.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){if(!this.series)return;let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(e){e.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=W(this.series.options.point,this.options),i=e.events?.[t];ye(i)&&(!this.hcEvents?.[t]||this.hcEvents?.[t]?.map((s)=>s.fn).indexOf(i)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=N(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(Vt(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(t,e){let i=this.series,s=this.state,o=i.options.states?.[t||"normal"]||{},r=xr.plotOptions?.[i.type]?.marker&&i.options.marker,a=r?.enabled===!1,n=r?.states?.[t||"normal"]||{},l=n.enabled===!1,h=this.marker||{},d=i.chart,c=r&&i.markerAttribs,p=i.halo,u,g,f,m=i.stateMarkerGraphic,x;if((t=t||"")===this.state&&!e||this.selected&&t!=="select"||o.enabled===!1||t&&(l||a&&n.enabled===!1)||t&&h.states?.[t]?.enabled===!1)return;if(this.state=t,c&&(u=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!d.styledMode){g=i.pointAttribs(this,t),f=d.options.chart.animation??o.animation;let v=g.opacity;i.options.inactiveOtherPoints&&A(v)&&(this.dataLabels||[]).forEach(function(M){M&&!M.hasClass("highcharts-data-label-hidden")&&(M.animate({opacity:v},f),M.connector&&M.connector.animate({opacity:v},f))}),this.graphic.animate(g,f)}u&&this.graphic.animate(u,d.options.chart.animation??n.animation??r.animation),m&&m.hide()}else t&&n&&(x=h.symbol||i.symbol,m&&m.currentSymbol!==x&&(m=m.destroy()),u&&(m?m[e?"animate":"attr"]({x:u.x,y:u.y}):x&&(i.stateMarkerGraphic=m=d.renderer.symbol(x,u.x,u.y,u.width,u.height,W(r,n)).add(i.markerGroup),m.currentSymbol=x)),!d.styledMode&&m&&this.state!=="inactive"&&m.attr(i.pointAttribs(this,t))),m&&(m[t&&this.isInside?"show":"hide"](),m.element.point=this,m.addClass(this.getClassName(),!0));let y=pt(o.halo)?o.halo:{},b=this.graphic||m,k=b?.visibility||"inherit";y.size&&b&&k!=="hidden"&&!this.isCluster?(p||(i.halo=p=d.renderer.path().add(b.parentGroup)),p.show()[e?"animate":"attr"]({d:this.haloPath(y.size)}),p.attr({class:"highcharts-halo highcharts-color-"+(this.colorIndex??i.colorIndex)+(this.className?" "+this.className:""),visibility:k,zIndex:-1}),p.point=this,d.styledMode||p.attr(G({fill:this.color||i.color,"fill-opacity":y.opacity},yt.filterUserAttributes(y.attributes||{})))):p?.point?.haloPath&&!p.point.destroyed&&p.animate({d:p.point.haloPath(0)},null,p.hide),P(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(Nt(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let ge=Le,{charts:Bi,composed:br,isTouchDevice:vr}=w,Hs=(t,e)=>!E(e)||t[`${e}Key`];class At{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach((s)=>{let o=s.series;e.push(o),o.linkedParent&&e.push(o.linkedParent),o.linkedSeries&&e.push.apply(e,o.linkedSeries),o.navigatorSeries&&e.push(o.navigatorSeries),o.boosted&&o.markerGroup&&e.push.apply(e,this.chart.series.filter((r)=>r.markerGroup===o.markerGroup))}),this.chart.series)){let s=i.options;s.states?.inactive?.enabled!==!1&&(e.indexOf(i)===-1?i.setState("inactive",!0):s.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let t=this;this.eventsToUnbind.forEach((e)=>e()),this.eventsToUnbind=[],!w.chartCount&&(At.unbindDocumentMouseUp.forEach((e)=>e.unbind()),At.unbindDocumentMouseUp.length=0,At.unbindDocumentTouchEnd&&(At.unbindDocumentTouchEnd=At.unbindDocumentTouchEnd())),K(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return P(this,"getSelectionMarkerAttrs",i,(s)=>{let o,{chart:r,zoomHor:a,zoomVert:n}=this,{mouseDownX:l=0,mouseDownY:h=0}=r,d=s.attrs;d.x=r.plotLeft,d.y=r.plotTop,d.width=a?1:r.plotWidth,d.height=n?1:r.plotHeight,a&&(d.width=Math.max(1,Math.abs(o=t-l)),d.x=(o>0?0:o)+l),n&&(d.height=Math.max(1,Math.abs(o=e-h)),d.y=(o>0?0:o)+h)}),i}drag(t){let{chart:e}=this,{mouseDownX:i=0,mouseDownY:s=0}=e,{panning:o,panKey:r,selectionMarkerFill:a}=e.options.chart,{plotLeft:n,plotTop:l,plotWidth:h,plotHeight:d}=e,c=pt(o)?o.enabled:o,p=r&&t[`${r}Key`],{chartX:u,chartY:g}=t,f,m=this.selectionMarker;if((!m||!m.touch)&&(u<n?u=n:u>n+h&&(u=n+h),g<l?g=l:g>l+d&&(g=l+d),this.hasDragged=Math.sqrt(Math.pow(i-u,2)+Math.pow(s-g,2)),this.hasDragged>10)){f=e.isInsidePlot(i-n,s-l,{visiblePlotOnly:!0});let{shapeType:x,attrs:y}=this.getSelectionMarkerAttrs(u,g);this.hasZoom&&f&&!p&&!m&&(this.selectionMarker=m=e.renderer[x](),m.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||m.attr({fill:a})),m&&m.attr(y),f&&!m&&c&&Hs(t,r)&&e.pan(t,o)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return P(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let o of i.axes)o.isPanning&&(o.isPanning=!1,(o.options.startOnTick||o.options.endOnTick||o.series.some((r)=>r.boosted))&&(o.forceRedraw=!0,o.setExtremes(o.userMin,o.userMax,!1),e=!0));if(t?.type==="touchend"&&this.hasDragged&&i.transform({trigger:"drop"}),e&&i.redraw(),s&&t){if(this.hasDragged){let o=this.getSelectionBox(s);i.transform({axes:i.axes.filter((r)=>r.zoomEnabled&&(r.coll==="xAxis"&&this.zoomX||r.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...o},from:o})}A(i.index)&&(this.selectionMarker=s.destroy())}i&&A(i.index)&&(ct(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(t,e,i){let s;return t.forEach(function(o){var r;let a,n,l,h=!(o.noSharedTooltip&&e)&&0>o.options.findNearestPointBy.indexOf("y"),d=o.searchPoint(i,h);pt(d,!0)&&d.series&&(!pt(s,!0)||(a=(r=s).distX-d.distX,n=r.dist-d.dist,l=d.series.group?.zIndex-r.series.group?.zIndex,(a!==0&&e?a:n!==0?n:l!==0?l:r.series.index>d.series.index?-1:1)>0))&&(s=d)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,o=t.shapeArgs;if(i&&s){let r=t.clientX??t.plotX??0,a=t.plotY||0;return t.isNode&&o&&A(o.x)&&A(o.y)&&(r=o.x,a=o.y),e?{chartX:s.len+s.pos-a,chartY:i.len+i.pos-r}:{chartX:r+i.pos,chartY:a+s.pos}}if(o?.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=fs(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,o,r){let a=[],n=function(p){return p.visible&&!(!o&&p.directTouch)&&(p.options.enableMouseTracking??!0)},l=e,h,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};P(this,"beforeGetHoverData",d),h=l&&!l.stickyTracking?[l]:i.filter((p)=>p.stickyTracking&&(d.filter||n)(p));let c=s&&t||!r?t:this.findNearestKDPoint(h,o,r);return l=c?.series,c&&(o&&!l.noSharedTooltip?(h=i.filter(function(p){return d.filter?d.filter(p):n(p)&&!p.noSharedTooltip})).forEach(function(p){let u=p.options?.nullInteraction,g=te(p.points,function(f){return f.x===c.x&&(!f.isNull||!!u)});pt(g)&&(p.boosted&&p.boost&&(g=p.boost.getPoint(g)),a.push(g))}):a.push(c)),P(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:a}}getPointFromEvent(t){let e=t.target,i;for(;e&&!i;)i=e.point,e=e.parentNode;return i}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i=t,s;for(;i;){if(s=_(i,"class")){if(s.indexOf(e)!==-1)return!0;if(s.indexOf("highcharts-container")!==-1)return!1}i=i.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),P(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):(i.changedTouches??t.changedTouches)[0]:t;e||(e=this.getChartPosition());let o=s.pageX-e.left,r=s.pageY-e.top;return G(t,{chartX:Math.round(o/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),{plotLeft:o,plotTop:r}=e;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(P(i.series,"click",G(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(G(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-o,s.chartY-r,{visiblePlotOnly:!0})&&P(e,"click",s)))}onContainerMouseDown(t){let e=(1&(t.buttons||t.button))==1;t=this.normalize(t),w.isFirefox&&t.button!==0&&this.onContainerMouseMove(t),(t.button===void 0||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=Bi[At.hoverChartIndex??-1]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),(e.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),!e.exporting?.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(s)&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,o=this.normalize(t,s);!s||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(o)||o.target!==e.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),Bi[At.hoverChartIndex??-1]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:o}=e,r=[].map.call(t.touches||[],(h)=>e.normalize(h)),a=r.length,n=a===1&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),l=a===1&&(i.tooltip?.options.followTouchMove??!0);a>1?e.initiated=!0:l&&(e.initiated=!1),s&&e.initiated&&!n&&t.cancelable!==!1&&t.preventDefault(),t.type==="touchstart"?(e.pinchDown=r,e.res=!0,i.mouseDownX=t.chartX):l?this.runPointActions(e.normalize(t)):o&&(P(i,"touchpan",{originalEvent:t,touches:r},()=>{let h=(d)=>{let c=d[0],p=d[1]||c;return{x:c.chartX,y:c.chartY,width:p.chartX-c.chartX,height:p.chartY-c.chartY}};i.transform({axes:i.axes.filter((d)=>d.zoomEnabled&&(this.zoomHor&&d.horiz||this.zoomVert&&!d.horiz)),to:h(r),from:h(o),trigger:t.type}),e.hasDragged=1}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=r}reset(t,e){let i=this.chart,{hoverSeries:s,hoverPoint:o,hoverPoints:r,tooltip:a}=i,n=a?.shared?r:o;t&&n&&Ct(n).forEach(function(l){l.series.isCartesian&&l.plotX===void 0&&(t=!1)}),t?a&&n&&Ct(n).length&&(a.refresh(n),a.shared&&r?r.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(l){l.crosshair&&o.series[l.coll]===l&&l.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(l){l.setState()}),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(l){l.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,o=s.series,r=s.tooltip?.options.enabled?s.tooltip:void 0,a=!!r&&r.shared,n=e||s.hoverPoint,l=n?.series||s.hoverSeries,h=(!t||t.type!=="touchmove")&&(!!e||l?.directTouch&&this.isDirectTouch),d=this.getHoverData(n,l,o,h,a,t);n=d.hoverPoint,l=d.hoverSeries;let c=d.hoverPoints,p=l?.tooltipOptions.followPointer&&!l.tooltipOptions.split,u=a&&l&&!l.noSharedTooltip;if(n&&(i||n!==s.hoverPoint||r?.isHidden)){if((s.hoverPoints||[]).forEach(function(g){c.indexOf(g)===-1&&g.setState()}),s.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(g){g.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!n.series)return;s.hoverPoints=c,s.hoverPoint=n,n.firePointEvent("mouseOver",void 0,()=>{r&&n&&r.refresh(u?c:n,t)})}else if(p&&r&&!r.isHidden){let g=r.getAnchor([{}],t);s.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:g[0],plotY:g[1]})}this.unDocMouseMove||(this.unDocMouseMove=N(s.container.ownerDocument,"mousemove",(g)=>Bi[At.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(g)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(g){let f,m=g.crosshair?.snap??!0;m&&((f=s.hoverPoint)&&f.series[g.coll]===g||(f=te(c,(x)=>x.series?.[g.coll]===g))),f||!m?g.drawCrosshair(t,f):g.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument,i=(o)=>o.parentElement||o.getRootNode()?.host?.parentElement;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(N(t,"mouseenter",this.onContainerMouseEnter.bind(this)),N(t,"mouseleave",this.onContainerMouseLeave.bind(this))),At.unbindDocumentMouseUp.some((o)=>o.doc===e)||At.unbindDocumentMouseUp.push({doc:e,unbind:N(e,"mouseup",this.onDocumentMouseUp.bind(this))});let s=i(this.chart.renderTo);for(;s&&s.tagName!=="BODY";)this.eventsToUnbind.push(N(s,"scroll",()=>{delete this.chartPosition})),s=i(s);this.eventsToUnbind.push(N(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),N(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),At.unbindDocumentTouchEnd||(At.unbindDocumentTouchEnd=N(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),N(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!vr)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=(e.options.tooltip?.followTouchMove??!0)&&e.series.some((o)=>o.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(N(i,"pointerdown",(o)=>{o.target?.hasPointerCapture(o.pointerId)&&o.target?.releasePointerCapture(o.pointerId)}),N(i,"pointermove",(o)=>{e.pointer?.getPointFromEvent(o)?.onMouseOver(o)})),this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach((o)=>o()),t.length=0,this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,i=w.charts[At.hoverChartIndex??-1];if(i&&i!==e){let s={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,s),i.pointer?.onContainerMouseLeave(t||s)}i?.mouseIsDown||(At.hoverChartIndex=e.index)}touch(t,e){let i,{chart:s,pinchDown:o=[]}=this;this.setHoverChartIndex(),(t=this.normalize(t)).touches.length===1?s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.exporting?.openMenu?(e&&this.runPointActions(t),t.type==="touchmove"&&(this.hasPinchMoved=i=!!o[0]&&Math.pow(o[0].chartX-t.chartX,2)+Math.pow(o[0].chartY-t.chartY,2)>=16),(i??!0)&&this.pinch(t),this.hasPointerCapture&&t.type==="touchmove"&&!(s.scrollablePixelsX||s.scrollablePixelsY)&&t.preventDefault()):e&&this.reset():t.touches.length===2&&this.pinch(t)}touchSelect(t){return!!(this.chart.zooming.singleTouch&&t.touches&&t.touches.length===1)}zoomOption(t){let e=this.chart,i=e.inverted,s=e.zooming.type||"",o,r;/touch/.test(t.type)&&(s=e.zooming.pinchType??s),this.zoomX=o=/x/.test(s),this.zoomY=r=/y/.test(s),this.zoomHor=o&&!i||r&&i,this.zoomVert=r&&!i||o&&i,this.hasZoom=(o||r)&&Hs(t,e.zooming.key)}}At.unbindDocumentMouseUp=[],(js=At||(At={})).compose=function(t){Rt(br,"Core.Pointer")&&N(t,"beforeRender",function(){this.pointer=new js(this,this.options)})};let Xs=At,{setLength:wr,splice:Gs}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new r(t.length-i+o.length);return n.set(t.subarray(0,e),0),n.set(o,e),n.set(t.subarray(e+i),e+o.length),{removed:a,array:n}}},ne=class{constructor(t={}){this.isDataTable=!0;let e=this.isPollutingKey(t.id)?void 0:t.id;this.autoId=!e,this.columns={},this.id=e||Xt(),this.rowCount=0,this.versionTag=Xt();let i=0;K(t.columns||{},(s,o)=>{o!=="__proto__"&&o!=="constructor"&&(this.columns[o]=s.slice(),i=Math.max(i,s.length))}),this.applyRowCount(i)}isPollutingKey(t){return t==="__proto__"||t==="constructor"}applyRowCount(t){this.rowCount=t,K(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=wr(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;K(this.columns,(s,o)=>{this.columns[o]=Gs(s,t,e).array,i=s.length}),this.rowCount=i}P(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=Xt()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((i,s)=>(i[s]=this.columns[s],i),{})}getRowObject(t,e){let i={},s=this.columns;for(let o of(e??(e=Object.keys(this.columns)),e))i[o]=s[o]?.[t];return i}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;K(t,(o,r)=>{r!=="__proto__"&&r!=="constructor"&&(this.columns[r]=o.slice(),s=o.length)}),this.applyRowCount(s),i?.silent||(P(this,"afterSetColumns"),this.versionTag=Xt())}setRow(t,e=this.rowCount,i,s){let{columns:o}=this,r=i?this.rowCount+1:e+1,a=Object.keys(t);if(s?.addColumns!==!1)for(let n=0,l=a.length;n<l;n++){let h=a[n];this.isPollutingKey(h)||Object.hasOwnProperty.call(o,h)||(o[h]=Array(this.rowCount))}K(o,(n,l)=>{n&&(i?n=Gs(n,e,0,!0,[t[l]]).array:n[e]=(l in t)?t[l]:n[e],o[l]=n)}),this.applyRowCount(Math.max(r,this.rowCount)),s?.silent||(P(this,"afterSetRows",{rowIndex:e}),this.versionTag=Xt())}getModified(){return this.modified||this}};var Ri,zi,Ni,Wi,Hi,Xi,Gi,Fi,Yi,ji,Vi,$i,_i,Ui,Zi,qi,st,Fs,Ys,js,Vs,$s,ei,_s,Us=Fi||(Fi={});function Zs(t,e,i){let s=this.legendItem=this.legendItem||{},{chart:o,options:r}=this,{baseline:a=0,symbolWidth:n,symbolHeight:l}=t,h=this.symbol||"circle",d=l/2,c=o.renderer,p=s.group,u=a-Math.round((t.fontMetrics?.b||l)*(i?0.4:0.3)),g={},f,m=r.marker,x=0;if(o.styledMode||(g["stroke-width"]=Math.min(r.lineWidth||0,24),r.dashStyle?g.dashstyle=r.dashStyle:r.linecap!=="square"&&(g["stroke-linecap"]="round")),s.line=c.path().addClass("highcharts-graph").attr(g).add(p),i&&(s.area=c.path().addClass("highcharts-area").add(p)),g["stroke-linecap"]&&(x=Math.min(s.line.strokeWidth(),n)/2),n){let y=[["M",x,u],["L",n-x,u]];s.line.attr({d:y}),s.area?.attr({d:[...y,["L",n-x,a],["L",x,a]]})}if(m&&m.enabled!==!1&&n){let y=Math.min(m.radius??d,d);h.indexOf("url")===0&&(m=W(m,{width:l,height:l}),y=0),s.symbol=f=c.symbol(h,n/2-y,u-y,2*y,2*y,G({context:"legend"},m)).addClass("highcharts-point").add(p),f.isMarker=!0}}Us.areaMarker=function(t,e){Zs.call(this,t,e,!0)},Us.lineMarker=Zs;let qs=Fi,{defaultOptions:Ks}=Wt;var qt=Yi||(Yi={});function Js(t,e){let i=Ks.plotOptions||{},{defaultOptions:s,prototype:o}=e;return o.type=t,o.pointClass||(o.pointClass=ge),!qt.seriesTypes[t]&&(s&&(i[t]=s),qt.seriesTypes[t]=e,!0)}qt.seriesTypes=w.seriesTypes,qt.registerSeriesType=Js,qt.seriesType=function(t,e,i,s,o){let r=Ks.plotOptions||{};if(e=e||"",r[t]=W(r[e],i),delete qt.seriesTypes[t],Js(t,us(qt.seriesTypes[e]||w.Series,s)),qt.seriesTypes[t].prototype.type=t,o){class a extends ge{}G(a.prototype,o),qt.seriesTypes[t].prototype.pointClass=a}return qt.seriesTypes[t]};let kt=Yi,{defaultOptions:ii}=Wt,{registerEventOptions:kr}=Je,{svg:Mr,win:Cr}=w,{seriesTypes:Me}=kt,{format:Sr}=Ft;class $t{constructor(){this.zoneAxis="y"}init(t,e){let i;P(this,"init",{options:e});let s=t.series;this.eventsToUnbind=[],this.condemnedPoints||(this.condemnedPoints=[]),this.chart=t,this.options=this.setOptions(e);let o=this.options,r=o.visible!==!1;this.dataTable??(this.dataTable=ut(o.dataTable)?new ne:o.dataTable?.isDataTable?o.dataTable:new ne(o.dataTable)),this.linkedSeries=[],this.bindAxes(),G(this,{name:o.name,state:"",visible:r,selected:o.selected===!0}),kr(this,o),(o.events?.click||o.point?.events?.click||o.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),this._i=(i?._i??-1)+1,this.opacity=this.options.opacity,t.orderItems("series",Ye(this,s)),this.points||this.data||this.setData(o.data,!1),P(this,"afterInit")}is(t){return Me[t]&&this instanceof Me[t]}bindAxes(){let t,e=this,{options:i,chart:s}=e;P(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){(s[o]||[]).forEach(function(r){t=r.options,((i[o]??0)===r.index||i[o]!==void 0&&i[o]===t.id)&&(Ye(e,r.series),e[o]=r,r.isDirty=!0)}),e[o]||e.optionalAxis===o||Mt(18,!0,s)})}),P(this,"afterBindAxes")}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker;return i&&s&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:s,relativeXValue:o}=this.options,r=this.chart.time,a=this.xIncrement??r.parse(i.pointStart)??0;if(this.pointInterval=e=this.pointInterval??i.pointInterval??1,o&&A(t)&&(e*=t),s){let n=r.toParts(a);s==="day"?n[2]+=e:s==="month"?n[1]+=e:s==="year"&&(n[0]+=e),e=r.makeTime.apply(r,n)-a}return o&&A(t)?a+e:(this.xIncrement=a+e,a)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,o=i.userOptions||{},r=W(t),a=i.styledMode,n={plotOptions:s,userOptions:r};P(this,"setOptions",n);let l=n.plotOptions[this.type],h=o.plotOptions||{},d=h.series||{},c=ii.plotOptions[this.type]||{},p=h[this.type]||{};l.dataLabels=this.mergeArrays(c.dataLabels,l.dataLabels),this.userOptions=n.userOptions;let u=W(l,s.series,p,r),{negativeColor:g,negativeFillColor:f,zoneAxis:m="y",zones:x}=u,y=(x||[]).map((b)=>({...b}));return this.tooltipOptions=W(ii.tooltip,ii.plotOptions.series?.tooltip,c?.tooltip,i.userOptions.tooltip,h.series?.tooltip,p.tooltip,r.tooltip),this.stickyTracking=r.stickyTracking??p.stickyTracking??d.stickyTracking??(!!this.tooltipOptions.shared&&!this.noSharedTooltip||u.stickyTracking),l.marker===null&&delete u.marker,this.zones||(this.zones=y),this.zoneAxis=m,(g||f)&&!x&&(e={value:u[m+"Threshold"]||u.threshold||0,className:"highcharts-negative"},a||(typeof g!="boolean"&&(e.color=g),e.fillColor=f),y.push(e)),y.length&&E(y[y.length-1].value)&&y.push(a?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:u}),u}getName(){let{chart:t,options:e}=this,{dataMapping:i,name:s}=e,o=i?.y||i?.value,r=ot(o)?o:o?.column;return s??(ot(r)?r:Sr(t.options.lang.seriesName,this,t))}getCyclic(t,e,i){let s,o,r=this.chart,a=`${t}Index`,n=`${t}Counter`,l=i?.length||r.options.chart.colorCount;!e&&(E(o=t==="color"?this.options.colorIndex??this[a]:this[a])?s=o:(r.series.length||(r[n]=0),s=r[n]%l,r[n]+=1),i&&(e=i[s])),s!==void 0&&(this[a]=s),this[t]=e}getColor(){let t=this.chart;t.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="var(--highcharts-neutral-color-20)":this.getCyclic("color",this.options.color||ii.plotOptions[this.type]?.color,t.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t?.symbol,this.chart.options.symbols)}getColumn(t,e,i){let s=e?this.dataTable.getModified():this.dataTable,o=s.rowCount,r=this.dataTable!==s,a=s.getColumn(t,!0);if(t==="x"&&!r){if(this.xColumn)return this.xColumn;let n=s.getColumn("name",!0),l=this.options,h=(d)=>{if(this.xColumnIsNumbers!==void 0)return this.xColumnIsNumbers;for(let c of d)if(typeof c!="number")return this.xColumnIsNumbers=!1;return this.xColumnIsNumbers=!0};if(this.xIncrement=null,!a||this.xAxis?.hasNames||l.relativeXValue||a.length<(l.turboThreshold||1/0)&&!this.boosted&&!h(a)){let d=[];for(let c=0;c<o;c++){let p=a?.[c];E(p)||(this.xIncrement??(this.xIncrement=d[d.length-1]??null)),d.push(this.getX(p,n?.[c]))}return this.xColumn=d}}return a||Array(i?o:0)}getX(t,e){return this.xAxis?.hasNames&&this.dataTable.getColumn("name",!0)&&E(e)?this.xAxis.nameToX({name:e,series:this},t):t===void 0||A(t)&&this.options.relativeXValue?this.autoIncrement(t):(typeof t=="string"&&A(t=this.chart.time.parse(t)),t)}matchPoints(t,e,i,s){let{dataTable:o,options:r,requireSorting:a}=this,n=r.dataSorting,l=this.data,h=[],d=[],c=o.rowCount===l.length,p,u,g,f=0,m=!0;this.xIncrement=null,delete this.xColumn;let x=o.getColumn("x"),y=o.getColumn("id"),b=n?.matchByName?o.getColumn("name"):void 0,k=o.getColumn("index");for(u=0;u<o.rowCount;u++){let M=x?.[u],C=y?.[u],T=b?.[u],L=k?.[u],[O,D]=C&&e?[C,e]:T&&i?[T,i]:E(L)&&s?[L,s]:E(M)&&t?[M,t]:[],z=-1;if(D){if((z=D.indexOf(O,f))===-1){let B=x?.[u],X=t?.length??o.rowCount;for(;X&&t&&typeof B=="number"&&t[X-1]>B;)X--;h.push({newIndex:X,oldIndex:u})}else l[z]&&(d.push({newIndex:z,oldIndex:u}),l[z].touched=!0,a&&(f=z+1));(!c||u!==z||n?.enabled||this.hasDerivedData)&&(p=!0)}else h.push({newIndex:u,oldIndex:u})}if(p){for(d.forEach((M)=>{l[M.newIndex].applyOptions(o.getRowObject(M.oldIndex))}),h.sort((M,C)=>C.newIndex-M.newIndex),h.forEach((M)=>{l.splice(M.newIndex,0,void 0)}),u=l.length;u--;)(g=l[u])&&!g.touched&&(g.destroy(),l.splice(u,1));this.isDirtyData=this.isDirty=!0}else if(c&&!n?.enabled){for(u=0;u<o.rowCount;u++)if(!l[u].destroyed&&!l[u].condemned){let M=o.getRowObject(u);M&&(Object.keys(M).forEach((C)=>{M[C]===void 0&&delete M[C]}),Object.keys(M).length&&l[u].update(M,!1,void 0,!1))}}else m=!1;if(l.forEach((M)=>{M&&(M.touched=!1)}),!m)return!1;let v=this.getColumn("x");return this.xIncrement===null&&v.length&&(this.xIncrement=Y(v),this.autoIncrement()),!0}getDataColumnKeys(){return this.dataColumnKeys||["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let o,r,a,n=this.dataTable,l=this.options,h=this.points,d=h?.length||0,c=n.getColumn("x"),p=n.getColumn("id"),u=l.dataSorting?.matchByName&&h?.map((x)=>x.name)||n.getColumn("name"),g=n.getColumn("index"),f=this.chart,m=this.xAxis;if(f.options.chart.allowMutatingData||(l.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,a=W(!0,t)),t=a||t,this.xIncrement=null,delete this.xColumn,delete this.xColumnIsNumbers,n!==l.dataTable&&delete n.columns.x,this.colorCounter=0,ut(t)?this.setDataFromArray(t):this.setDataFromTable(t),s===!1||!d||this.cropped||this.hasGroupedData||!this.visible||this.boosted||(o=this.matchPoints(c,p,u,g)),!o){for(ot(this.getColumn("y")[0])&&Mt(14,!0,f),this.data=[],r=d;r--;)h[r]?.destroy();m&&(m.minRange=m.userMinRange),this.isDirty=f.isDirtyBox=!0,this.isDirtyData=!!h,i=!1}ut(t)&&(this.options.data=this.userOptions.data=t),l.legendType==="point"&&(this.processData(),this.generatePoints()),e&&f.redraw(i)}setDataFromArray(t){let e=t.length,{keys:i,turboThreshold:s}=this.options,{pointValKey:o="y",pointArrayMap:r=[]}=this,a=r.length,n=this.dataTable,l=this.getDataColumnKeys(),h=s&&e>s,d=0,c=1;if(h){let p=this.getFirstValidPoint(t),u=this.getFirstValidPoint(t,e-1,-1),g=(f)=>!!(ut(f)&&(i||A(f[0])));if(A(p)&&A(u))n.setColumn(o,t);else if(g(p)&&g(u))if(a){let f=p.length===a,m=Array(p.length).fill(0).map(()=>[]);for(let x of t)for(let y=0;y<=a;y++)m[y]?.push(x[y]);n.setColumns((f?r:l).reduce((x,y,b)=>(x[y]=m[b],x),{}))}else{i&&(d=i.indexOf("x"),c=i.indexOf("y"),d=d>=0?d:0,c=c>=0?c:1),p.length===1&&(c=0);let f=[],m=[];if(d===c){for(let x of t)m.push(x[c]);n.setColumn(o,m)}else{for(let x of t)f.push(x[d]),m.push(x[c]);n.setColumns({x:f,[o]:m})}}else h=!1}if(!h){let p={};for(let u=0;u<e;u++){let g=this.pointClass.prototype.optionsToObject.call({series:this},t[u]);for(let f of Object.keys(g))f!=="__proto__"&&f!=="constructor"&&(Object.hasOwnProperty.call(p,f)||(p[f]=Array(e)),p[f][u]=g[f])}e?n.setColumns(p):n.deleteRows(0,n.rowCount)}}setDataFromTable(t){let{chart:e,options:i,dataTable:s}=this,o=e.getDataTable(i),r=t?[t]:o.length?o:e.dataTable,a=this.getDataColumnKeys(),n=i.dataMapping,l=a.slice();n&&(Object.keys(n).forEach((h)=>{Rt(l,h)}),this.dataColumnKeys=l),r.forEach((h,d)=>{let c=l.reduce((p,u)=>{let g=n?.[u],f=h.columns||{},m=h.id,x=ot(g)?d===0&&f[g]:((g?.dataTable||0)===d||m&&g?.dataTable===m)&&(A(g?.column)?Object.values(f)[g.column]:f[g?.column||u]);return x&&(p[u]=x),p},{});(n||h)&&s.setColumns(c),h.isDataTable&&this.bindDataTableEvents(h,c)})}bindDataTableEvents(t,e){if(this.hasBoundDataTableEvents)return;let{chart:i,eventsToUnbind:s}=this,o=()=>{clearTimeout(i.redrawTimeout),i.redrawTimeout=setTimeout(()=>i.renderer&&i.redraw(),0)};s.push(N(t,"afterSetRows",(r)=>{let a=r.rowIndex;if(A(a)){let n=ne.prototype.getRowObject.call({columns:e},a),l=this.data[a];n&&(this.currentDataGrouping?this.setData():(l?l.update(n,!1):this.addPoint(n,!1),o()))}})),s.push(N(t,"afterDeleteRows",(r)=>{let{rowCount:a,rowIndex:n}=r;if(A(n)){for(let l=n+a-1;l>=n;l--)this.removePoint(l,!1);o()}})),s.push(N(t,"afterSetColumns",(r)=>{this.setData(r.target)})),this.hasBoundDataTableEvents=!0}getProcessedData(t){let e=this,{dataTable:i,isCartesian:s,options:o,xAxis:r}=e,a=o.cropThreshold,n=t||e.getExtremesFromAll,l=r?.logarithmic,h=i.rowCount,d,c,p=0,u,g,f,m=e.getColumn("x"),x=i,y=!1;return r&&(g=(u=r.getExtremes()).min,f=u.max,y=!!(r.categories&&!r.names.length),s&&e.sorted&&!n&&(!a||h>a||e.forceCrop)&&(m[h-1]<g||m[0]>f?x=new ne:e.getColumn(e.pointValKey||"y").length&&(m[0]<g||m[h-1]>f)&&(x=(d=this.cropData(i,g,f)).modified,p=d.start,c=!0))),x!==i&&(m=x.getColumn("x",!0)||[]),{modified:x,cropped:c,cropStart:p,closestPointRange:Xe([l?m.map(l.log2lin):m],()=>e.requireSorting&&!y&&Mt(15,!1,e.chart))}}processData(t){let e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let s=this.getProcessedData();i.modified=s.modified,this.cropped=s.cropped,this.cropStart=s.cropStart,this.closestPointRange=this.basePointRange=s.closestPointRange,P(this,"afterProcessData")}cropData(t,e,i){let s=t===this.dataTable?this.getColumn("x"):t.getColumn("x",!0),o=s.length,r,a,n=0,l=o;for(r=0;r<o;r++)if(s[r]>=e){n=Math.max(0,r-1);break}for(a=r;a<o;a++)if(s[a]>i){l=a+1;break}let h=Object.keys(t.columns).reduce((d,c)=>(d[c]=(t.getColumn(c,!0)||[]).slice(n,l),d),{});return h.x=s.slice(n,l),{modified:new ne({columns:h}),start:n,end:l}}generatePoints(){let t=this.options,e=this.hasProcessedDataTable?void 0:t.data,i=this.dataTable.getModified(),s=this.getColumn("x",!0),o=this.pointClass,r=i.rowCount,a=this.cropStart||0,n=this.hasGroupedData,l=t.keys,h=[],d=t.dataGrouping?.groupAll?a:0,c=this.getDataColumnKeys(),p,u,g,f,m=this.data,x;if(!m&&!n){let y=[];y.length=e?.length||0,m=this.data=y}for(l&&n&&(this.options.keys=!1),f=0;f<r;f++)u=a+f,n?((g=new o(this,i.getRowObject(f,c))).dataGroup=this.groupMap?.[d+f],g.dataGroup?.options&&(g.options=g.dataGroup.options,G(g,g.dataGroup.options),delete g.dataLabels,g.key=g.name??g.category)):(g=m[u],x=e?e[u]:i.getRowObject(f),g||x===void 0?g&&(g.category=this.xAxis?.categories?.[g.x]??g.x,g.key=g.name??g.category):m[u]=g=new o(this,x,s[f])),g&&(g.index=n?d+f:u,h[f]=g);if(this.options.keys=l,m&&(r!==(p=m.length)||n))for(f=0;f<p;f++)f!==a||n||(f+=r),m[f]&&(m[f].destroyElements(),m[f].plotX=void 0);this.data=m,this.points=h,P(this,"afterGeneratePoints")}getXExtremes(t){return{min:it(t),max:Y(t)}}getExtremes(t,e){let{options:i,xAxis:s,yAxis:o}=this,r=e||this.getExtremesFromAll||i.getExtremesFromAll,a=r&&this.cropped?this.dataTable:this.dataTable.getModified(),n=a.rowCount,l=t||this.stackedYData,h=l?[l]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map((M)=>a.getColumn(M,!0)||[])||[],d=this.getColumn("x",!0),c=[],p=this.requireSorting&&!this.is("column")?1:0,u=i.cumulative&&i.cumulativeStart&&p&&!r,g=!!o&&o.positiveValuesOnly,f=r||this.cropped||!s,m,x,y,b=0,k=0;for(s&&(b=(m=s.getExtremes()).min,k=m.max),y=0;y<n;y++)if(x=d[y],(f||(d[y+p]||x)>=b&&(d[y-p]||x)<=k)&&(!u||x>=b))for(let M of h){let C=M[y];A(C)&&(C>0||!g)&&c.push(C)}let v={activeYData:c,dataMin:it(c),dataMax:Y(c)};return P(this,"afterGetExtremes",{dataExtremes:v}),v}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,o=e;for(;o>=0&&o<s;){if(E(t[o]))return t[o];o+=i}}translate(){this.generatePoints();let{hasRendered:t,options:e,xAxis:i,yAxis:s}=this,{stacking:o,threshold:r}=e,{polar:a}=this.chart,n=this.points.concat(this.condemnedPoints),l=n.length,h=this.pointPlacementToXValue(),d=!!h,c=e.startFromThreshold?r:0,p=e?.nullInteraction&&s.len,u,g,f,m,x=Number.MAX_VALUE;function y(v){return U(v,-1e9,1e9)}let b=(v,M)=>{let C=i.translate(v,!1,!1,M,!0,h);return A(C)?J(y(C)):void 0},k=(v,M,C)=>{if(A(v)&&M.plotX!==void 0){let T=s.translate(v,!1,!0,C,!0);return A(T)?y(T):void 0}if(!A(v)&&p)return p};for(u=0;u<l;u++){let v=n[u],M=v.x,C,T,{y:L,low:O}=v,D=o&&s.stacking?.stacks[(this.negStacks&&L<(c?0:r)?"-":"")+this.stackKey];v.plotX=g=b(M),o&&this.visible&&D&&D[M]&&(m=this.getStackIndicator(m,M,this.index),!v.isNull&&m.key&&(T=(C=D[M]).points[m.key]),C&&ut(T)&&(O=T[0],L=T[1],O===c&&m.key===D[M].base&&(O=A(r)?r:s.min),s.positiveValuesOnly&&E(O)&&O<=0&&(O=void 0),v.total=v.stackTotal=C.total??void 0,v.percentage=E(v.y)&&C.total?v.y/C.total*100:void 0,v.stackY=L,this.irregularWidths||C.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),v.yBottom=E(O)?y(s.translate(O,!1,!0,!1,!0)):void 0,this.dataModify&&(L=this.dataModify.modifyValue(L,u)),v.plotY=k(L,v),v.origin=!t||v.graphic||a?void 0:{x:b(M,!0),y:k(L,v,!0)},v.isInside=this.isPointInside(v),v.clientX=d?J(i.translate(M,!1,!1,!1,!0,h)):g,v.negative=(v.y||0)<(r||0),!v.isNull&&v.visible!==!1&&A(g)&&(A(f)&&(x=Math.min(x,Math.abs(g-f))),f=g),v.zone=this.zones.length?v.getZone():void 0}this.closestPointRangePx=x,P(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(o){let{plotX:r,plotY:a}=o;return(!!i||!o.isNull&&!!A(a))&&(!e||!!s.isInsidePlot(r,a,{inverted:s.inverted}))&&o.visible!==!1})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i,options:s,plotClipGroup:o}=this,{sharedClips:r,renderer:a}=t,n=t.getClipBox(this),l=s.clip??!0,h=this.getSharedClipKey(),d=r[h];d?d.animate(n):r[h]=d=a.clipRect(n),e?.clip(l?d:void 0),i?.clip(),o?.clip(l&&this.yAxis?.clippable?t.plotClipInner:void 0)}animate(t){let{chart:e,group:i,markerGroup:s}=this,o=e.inverted,r=Ht(this.options.animation),a=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),n=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&i){let h=e.getClipBox(this);if(n)n.attr("height",h.height);else{h.width=0,o&&(h.x=e.plotHeight),n=e.renderer.clipRect(h),e.sharedClips[a]=n;let d={x:-99,y:-99,width:o?e.plotWidth+199:99,height:o?99:e.plotHeight+199};l=e.renderer.clipRect(d),e.sharedClips[a+"m"]=l}i.clip(n),s?.clip(l)}else if(n&&!n.hasClass("highcharts-animating")){let h=e.getClipBox(this),d=r.step;(s?.element.childNodes.length||e.series.length>1)&&(r.step=function(c,p){d&&d.apply(p,arguments),p.prop==="width"&&l?.element&&l.attr(o?"height":"width",c+99)}),n.addClass("highcharts-animating").animate(h,r)}}afterAnimate(){this.setClip(),K(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,P(this,"afterAnimate")}drawPoints(t){let e,i,s,o,r,a,n;t||(t=this.points.concat(this.condemnedPoints));let l=this.chart,h=l.styledMode,{colorAxis:d,options:c}=this,p=c.marker||{},u=c.nullInteraction,g=this[this.specialGroup||"markerGroup"],f=this.xAxis,m=p.enabled??(!f||!!f.isRadial||null)??(this.closestPointRangePx??-1/0)>=(p.enabledThreshold??2)*p.radius;if(p.enabled!==!1||this._hasPointMarkers)for(e=0;e<t.length;e++){o=(s=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},a=!!i.marker;let x=i.isNull;if((m&&!E(r.enabled)||r.enabled)&&(!x||u)&&i.visible!==!1){let y=r.symbol??this.symbol??"rect";n=this.markerAttribs(i,i.selected?"select":"");let b=i.isInside!==!1;if(!s&&b&&((n.width||0)>0||i.hasImage)&&(i.graphic=s=l.renderer.symbol(y,n.x,n.y,n.width,n.height,a?r:p).add(g),i.origin)){let k=i.getOrigin(i.origin,n);h||(k.opacity=0),s.attr(k),o="animate"}if(s){o==="animate"&&s?.animate(n);let k=this.pointAttribs(i,h||!i.selected?void 0:"select");h?d&&s.css({fill:k.fill}):s[o](k),s.addClass(i.getClassName(),!0)}}else s&&(i.graphic=s.destroy())}}markerAttribs(t,e){let i=this.options,s=i.marker??{},o=t.marker||{},r=o.symbol||s.symbol,a={},n,l,h=o.radius??s.radius;e&&(n=s.states?.[e],l=o.states?.[e],h=l?.radius??n?.radius??(h&&h+(n?.radiusPlus||0))),t.hasImage=r&&r.indexOf("url")===0,t.hasImage&&(h=0);let d=t.pos();return A(h)&&d&&(i.crisp&&(d[0]=Nt(d[0],t.hasImage?0:r==="rect"?s.lineWidth||0:1)),a.x=d[0]-h,a.y=d[1]-h),h&&(a.width=a.height=2*h),a}pointAttribs(t,e){let i=this.options,s=i.marker??{},o=t?.options,r=o?.marker||{},a=o?.color,n=t?.color,l=t?.zone?.color,h=this.color,d,c,p=r.lineWidth??s.lineWidth,u=t?.isNull&&i.nullInteraction?0:1;h=a||l||n||h,d=r.fillColor||s.fillColor||h,c=r.lineColor||s.lineColor||h,e=e||"normal";let g=s.states?.[e]||{},f=r.states?.[e]||{};return p=f.lineWidth??g.lineWidth??(p||0)+(f.lineWidthPlus??g.lineWidthPlus??0),d=f.fillColor||g.fillColor||d,c=f.lineColor||g.lineColor||c,u=f.opacity??g.opacity??u,{stroke:c,"stroke-width":p,fill:d,opacity:t?.condemned||t?.isInside===!1?0:u}}destroy(t){let e,i=this,s=i.chart,o=/AppleWebKit\/533/.test(Cr.navigator.userAgent);for(let r of(P(i,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),i.axisTypes||[]))e=i[r],e?.series&&(jt(e.series,i),e.isDirty=e.forceRedraw=!0);for(let r of(i.legendItem&&i.chart.legend.destroyItem(i),i.points||[]))r?.destroy?.(!0);for(let r of i.zones||[])re(r,void 0,!0);Ge(i.animationTimeout),K(i,function(r,a){r instanceof ae&&!r.survive&&r[o&&a==="group"?"hide":"destroy"]()}),s.hoverSeries===i&&(s.hoverSeries=void 0),jt(s.series,i),s.orderItems("series"),K(i,function(r,a){t&&a==="hcEvents"||delete i[a]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:o,xAxis:r,yAxis:a,zoneAxis:n}=this,{inverted:l,renderer:h}=e,d=this[`${n}Axis`],{isXAxis:c,len:p=0,minPointOffset:u=0}=d||{},g=(i?.strokeWidth()||0)/2+1,f=(m,x=0,y=0)=>{l&&(y=p-y);let{translated:b=0,lineClip:k,value:v}=m,M=y-b;k?.push(["L",x,Math.abs(M)<g?y-g*(M<0||M===0&&E(v)?-1:1):b])};if(s.length&&(i||t)&&d&&A(d.min)){let m=d.getExtremes().max+u,x=(k)=>{k.forEach((v,M)=>{(v[0]==="M"||v[0]==="L")&&(k[M]=[v[0],c?p-v[1]:v[1],c?v[2]:p-v[2]])})};if(s.forEach((k)=>{k.lineClip=[],k.translated=U(d.toPixels(k.value??m,!0)||0,0,p)}),i&&!this.showLine&&i.hide(),t&&t.hide(),n==="y"&&o.length<r.len)for(let k of o){let{plotX:v,plotY:M,zone:C}=k,T=C&&s[s.indexOf(C)-1];C&&f(C,v,M),T&&f(T,v,M)}let y=[],b=d.toPixels(d.getExtremes().min-u,!0);s.forEach((k)=>{let v=k.lineClip||[],M=Math.round(k.translated||0);r.reversed&&v.reverse();let{clip:C,simpleClip:T}=k,L=0,O=0,D=r.len,z=a.len;c?(L=M,D=b):(O=M,z=b);let B=[["M",L,O],["L",D,O],["L",D,z],["L",L,z],["Z"]],X=[B[0],...v,B[1],B[2],...y,B[3],B[4]];y=v.reverse(),b=M,l&&(x(X),t&&x(B)),C?(C.animate({d:X}),T?.animate({d:B})):(C=k.clip=h.path(X),t&&(T=k.simpleClip=h.path(B))),i&&k.graph?.clip(C),t&&k.area?.clip(T)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,o){let r=this[t],a=!r,n={visibility:i,zIndex:s||0.1};return E(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(n.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(E(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(n)[a?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,o=s.inverted&&!s.polar&&e&&this.invertible&&t==="series";s.inverted&&(e=i,i=this.xAxis);let r={scale:1,translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,name:t};P(this,"getPlotBox",r);let{scale:a,translateX:n,translateY:l}=r;return{translateX:n,translateY:l,rotation:90*!!o,rotationOriginX:o?a*(e.len-i.len)/2:0,rotationOriginY:o?a*(e.len+i.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(t){let{eventsToUnbind:e}=this;t||Vt(this),e.length&&(e.forEach((i)=>{i()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,o=Ht(i.animation),r=t.visible?"inherit":"hidden",a=i.zIndex,n=e.seriesGroup,l=t.finishedAnimating?0:o.duration;P(this,"render"),e.plotClipInner&&(t.plotClipGroup||(t.plotClipGroup=e.renderer.g().add(n))),t.plotGroup("group","series",r,a,t.plotClipGroup||n),t.markerGroup=t.plotGroup("markerGroup","markers",r,a,n),i.clip!==!1&&t.setClip(),l&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),l&&t.animate?.(),s||(l&&o.defer&&(l+=o.defer),t.animationTimeout=Zt(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree,this.condemnedPoints.length=0}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,s=(i.findNearestPointBy??"").indexOf("y")>-1?2:1;delete e.kdTree,Zt(function(){e.kdTree=function o(r,a,n){let l,h,d=r?.length;if(d)return l=e.kdAxisArray[a%n],r.sort((c,p)=>(c[l]||0)-(p[l]||0)),{point:r[h=Math.floor(d/2)],left:o(r.slice(0,h),a+1,n),right:o(r.slice(h+1),a+1,n)}}(e.getValidPoints(void 0,!e.directTouch,i?.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||t?.type==="touchstart"?0:1)}searchKDTree(t,e,i,s,o){let r=this,[a,n]=this.kdAxisArray,l=e?"distX":"dist",h=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!r.isBubble,c=s||((u,g,f)=>{let m=u[f]||0,x=g[f]||0;return[m===x&&u.index>g.index||m<x?u:g,!1]}),p=o||((u,g)=>u<g);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function u(g,f,m,x){let y,b,k,v,M,C,T,L=f.point,O=r.kdAxisArray[m%x],D=L,z=!1;y=g[a],b=L[a],k=E(y)&&E(b)?y-b:null,v=g[n],M=L[n],C=E(v)&&E(M)?v-M:0,T=d&&L.marker?.radius||0,L.dist=Math.sqrt((k&&k*k||0)+C*C)-T,L.distX=E(k)?Math.abs(k)-T:Number.MAX_VALUE;let B=(g[O]||0)-(L[O]||0)+(d&&L.marker?.radius||0),X=B<0?"left":"right",j=B<0?"right":"left";return f[X]&&([D,z]=c(L,u(g,f[X],m+1,x),l)),f[j]&&p(Math.sqrt(B*B),D[l],z)&&(D=c(D,u(g,f[j],m+1,x),l)[0]),D}(t,this.kdTree,h,h)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return i==="between"&&(i=e.reversed?-0.5:0.5),A(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:o=-1,plotY:r=-1}=t;return r>=0&&r<=(s?s.len:e.plotHeight)&&o>=0&&o<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),o=t.chart,{pointer:r,renderer:a}=o,n=o.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&o.hoverSeries!==t&&t.onMouseOver()},h="rgba(192,192,192,"+(Mr?0.0001:0.002)+")",d=t.tracker;d?d.attr({d:s}):t.graph&&(t.tracker=d=a.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:i?h:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*n)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach((c)=>{c&&(c.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",(p)=>{r?.onTrackerMouseOut(p)}),e.cursor&&!o.styledMode&&c.css({cursor:e.cursor}),c.on("touchstart",l))})),P(this,"afterDrawTracker")}addPoint(t,e,i,s,o){let r,a,n=this.options,{chart:l,data:h,dataTable:d,xAxis:c}=this,p=c?.hasNames&&c.names,u=n.data,g=this.getColumn("x");e=e??!0;let{applyOptions:f,optionsToObject:m}=this.pointClass.prototype,x={series:this},y=m.call(x,t);f.call(x,y,void 0,!1);let b=x.x;if(a=g.length,this.requireSorting&&b<g[a-1])for(r=!0;a&&g[a-1]>b;)a--;d.setRow(y,a,!0),this.xColumn?.splice(a,0,this.getX(b)),p&&x.name&&(p[b]=x.name),u?.splice(a,0,t),(r||this.hasProcessedDataTable)&&(this.data.splice(a,0,null),this.processData()),n.legendType==="point"&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):([h,u,this.xColumn].filter(E).forEach((k)=>{k.shift()}),d.deleteRows(0))),o!==!1&&P(this,"addPoint",{point:x}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(s)}removePoint(t,e,i){let s=this,{chart:o,data:r,points:a,dataTable:n}=s,l=r[t],h=function(){[a?.length===r.length?a:void 0,r,s.options.data,s.xColumn].filter(E).forEach((d)=>{d.splice(t,1)}),n.deleteRows(t),n.modified=n,l?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&o.redraw()};ce(i,o),e=e??!0,l?l.firePointEvent("remove",null,h):h()}remove(t,e,i,s){let o=this,r=o.chart;function a(){o.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),(t??!0)&&r.redraw(e)}i!==!1?P(o,"remove",null,a):a()}update(t,e){P(this,"update",{options:t=xe(t,this.userOptions)});let i=this,{chart:s,userOptions:o}=i,r=i.initialType||i.type,a=s.options.plotOptions,n=Me[r].prototype,l=i.finishedAnimating&&{animation:!1},h={},d=t.data||t.dataTable,c,p,u=$t.keepProps.slice(),g=t.type||o.type||s.options.chart.type,f=!(this.hasDerivedData||g&&g!==this.type||t.keys!==void 0||t.pointStart!==void 0||t.pointInterval!==void 0||t.relativeXValue!==void 0||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((x)=>i.hasOptionChanged(x)));g=g||r,f?(u.push.apply(u,$t.keepPropsForPoints),t.visible!==!1&&(u.push("area","graph"),("zones"in t)||u.push("zones")),i.parallelArrays.forEach(function(x){u.push(x+"Data")}),d&&(t.dataSorting&&G(i.options.dataSorting,t.dataSorting),this.setData(d,!1))):this.dataTable.modified=this.dataTable,t.dataLabels&&o.dataLabels&&(t.dataLabels=this.mergeArrays(o.dataLabels,t.dataLabels)),t=W(o,{index:o.index===void 0?i.index:o.index,pointStart:a?.series?.pointStart??o.pointStart},!f&&{data:i.options.data},t,l),f&&t.data&&(t.data=i.options.data),(u=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","plotClipGroup","transformGroup"].concat(u)).forEach(function(x){u[x]=i[x],delete i[x]});let m=!1;if(Me[g]){if(m=g!==i.type,i.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,Me[g].prototype);else{let x=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in n)i[p]=void 0;G(i,Me[g].prototype),x?i.hcEvents=x:delete i.hcEvents}}else Mt(17,!0,s,{missingModuleFor:g});if(u.forEach(function(x){i[x]=u[x]}),i.init(s,t),f&&this.points)for(let x of((c=i.options).visible===!1?(h.graphic=1,h.dataLabel=1):(this.hasMarkerChanged(c,o)&&(h.graphic=1),i.hasDataLabels?.()||(h.dataLabel=1)),this.points))x?.series&&(x.resolveColor(),Object.keys(h).length&&x.destroyElements(h),c.showInLegend===!1&&x.legendItem&&s.legend.destroyItem(x));i.initialType=r,s.linkSeries(),m&&i.linkedSeries.length&&(i.isDirtyData=!0),P(this,"afterUpdate"),(e??!0)&&s.redraw(!!f&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],s=e.options.plotOptions,o=this.userOptions[t],r=s?.[this.type]?.[t]??s?.series?.[t];return o&&!E(r)?i!==o:i!==(r??i)}onMouseOver(){let t=this.chart,e=t.hoverSeries;t.pointer?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),P(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.chart,{tooltip:e,hoverPoint:i}=t;t.hoverSeries=null,i&&i.onMouseOut(),P(this,"mouseOut"),e&&!this.stickyTracking&&(!e.shared||this.noSharedTooltip)&&e.hide(),t.series.forEach(function(s){s.setState("",!0)})}setState(t,e){let i=this,{graph:s,options:o}=i,{inactiveOtherPoints:r,states:a={}}=o,n=a[t||"normal"]?.animation??i.chart.options.chart.animation,{lineWidth:l,opacity:h}=o;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,...i.dataLabelsGroups||[]].forEach(function(d){d&&(i.state&&d.removeClass("highcharts-series-"+i.state),t&&d.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(a[t]?.enabled===!1)return;if(t&&(l=a[t]?.lineWidth??(A(l)?l+(a?.[t]?.lineWidthPlus||0):void 0),h=a[t]?.opacity??h),s&&!s.dashstyle&&A(l))for(let d of[s,...this.zones.map((c)=>c.graph)])d?.animate({"stroke-width":l},n);r||[i.group,i.markerGroup,...i.dataLabelsGroups||[],i.labelBySeries].forEach(function(d){d?.animate({opacity:h},n)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach((e)=>e.setState?.(t))}setVisible(t,e){let i=this,s=i.chart,o=s.options.chart.ignoreHiddenSeries,r=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=t===void 0?!r:t;let a=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach((n)=>{i[n]?.[a]()}),i.dataLabelsGroups?.forEach((n)=>{n?.[a]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach((n)=>{n.options.stacking&&n.visible&&(n.isDirty=!0)}),i.linkedSeries.forEach((n)=>{n.setVisible(t,!1)}),o&&(s.isDirtyBox=!0),P(i,a),e!==!1&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=t===void 0?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),P(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){let i=this.chart.renderer,s=this.options.legendSymbol||"rectangle",o=e.legendItem||{},{options:r,symbolHeight:a,symbolWidth:n}=t,l=r.squareSymbol,h=l?a:n,d=l?(n-a)/2:0,c=(t.baseline||0)-a+1,p=r.symbolRadius??a,u=s==="rectangle"?i.rect(d,c,h,a,p):i.symbols[s]&&i.symbol(s,d,c,h,a,{r:p});u?o.symbol=u.addClass("highcharts-point").attr({zIndex:3}).add(o.group):qs[s]?.call(this,t,e)}}$t.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1000},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(){let{numberFormatter:t}=this.series.chart;return typeof this.y!="number"?"":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:0.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:0.2}},stickyTracking:!0,turboThreshold:1000,findNearestPointBy:"x"},$t.types=kt.seriesTypes,$t.registerType=kt.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"],G($t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:ge,requireSorting:!0,sorted:!0}),kt.series=$t;let Yt=$t,{registerEventOptions:Qs}=Je,{composed:Tr,marginNames:to}=w,{distribute:Ar}=Ze,{format:Pr}=Ft;class si{constructor(t,e){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(),Qs(this,e),N(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),N(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=t.padding??8;this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=W(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=t.symbolWidth??16,this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(W(!0,this.options,t)),"events"in this.options&&Qs(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,(e??!0)&&i.redraw(),P(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:s,group:o,label:r,line:a,symbol:n}=t.legendItem||{};if((t instanceof Yt||t instanceof ge)&&(t.color=t.options?.legendSymbolColor||i),o?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:l={}}=this,h=l.color,{fillColor:d,lineColor:c}=t.options,p=(u)=>(!e&&(u.fill&&(u.fill=h),u.stroke&&(u.stroke=h)),u);r?.css(W(e?this.itemStyle:l)),a?.attr(p({stroke:c||t.color})),n?.attr(p(t.series?t.series.pointAttribs?.(t):t.pointAttribs?.()||{fill:t.color})),s?.attr(p({fill:d||t.color,"fill-opacity":d?1:t.options.fillOpacity??0.75}))}t.color=i,P(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},o=this.options,r=o.symbolPadding,a=!o.rtl,n=t.checkbox;if(e?.element){let l={translateX:a?i:this.legendWidth-i-2*r-4,translateY:s},h=()=>{P(this,"afterPositionItem",{item:t})};e[E(e.translateY)?"animate":"attr"](l,void 0,h)}n&&(n.x=i,n.y=s)}destroyItem(t){let e=t.legendItem||{};for(let i of["group","label","line","symbol"])e[i]&&(e[i]=e[i].destroy());t.checkbox=He(t.checkbox),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(o){let r,a=o.checkbox;a&&(r=t+s+a.y+(this.scrollOffset||0)+3,ct(a,{left:e.translateX+o.checkboxOffset+a.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r<t+i-6?"":"none"}))},this))}renderTitle(){let t=this.options,e=this.padding,i=t.title,s,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(s=this.title.getBBox()).height,this.offsetWidth=s.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?Pr(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,o=this.options,r=o.layout==="horizontal",a=this.symbolWidth,n=o.symbolPadding||0,l=this.itemStyle,h=this.itemHiddenStyle,d=r?o.itemDistance??20:0,c=!o.rtl,p=!t.series,u=!p&&t.series.drawLegendSymbol?t.series:t,g=u.options,f=!!this.createCheckboxForItem&&g&&g.showCheckbox,m=o.useHTML,x=t.options.className,y=e.label,b=a+n+d+20*!!f;!y&&(e.group=s.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=s.text("",c?a+n:-n,this.baseline||0,m),i.styledMode||y.css(W(t.visible?l:h)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=o.symbolHeight??this.fontMetrics.f,o.squareSymbol&&(this.symbolWidth=o.symbolWidth??Math.max(this.symbolHeight,16),b=this.symbolWidth+n+d+20*!!f,c&&y.attr("x",this.symbolWidth+n))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,m)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!l.width)&&y.css({width:Math.min(o.itemWidth||this.widthOption||i.spacingBox.width,o.maxWidth?It(o.maxWidth,i.chartWidth):1/0)-b+"px"}),this.setText(t);let k=y.getBBox(),v=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=o.itemWidth||e.labelWidth||k.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(k.height>1.5*v?k.height:v))}layoutItem(t){let e=this.options,i=this.padding,s=e.layout==="horizontal",o=t.itemHeight,r=this.itemMarginBottom,a=this.itemMarginTop,n=s?e.itemDistance??20:0,l=this.maxLegendWidth,h=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+h>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=h:(this.itemY+=a+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:n):h)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&(i.showInLegend??!E(i.linkedTo))&&(t=t.concat(e.legendItem?.labels||(i.legendType==="point"?e.data:e)))}),P(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let 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)}adjustMargins(t,e){let i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((r,a)=>{r.test(o)&&!E(t[a])&&(i[to[a]]=Math.max(i[to[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+(s.margin??12)+e[a]+(i.titleOffset[a]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s=this.options.align==="left";for(let o of(this.allItems.forEach(function(r){let a,n,l=s,h,d;r.yAxis&&(r.xAxis.options.reversed&&(l=!l),r.points&&(a=te(l?r.points:r.points.slice(0).reverse(),function(c){return A(c.plotY)})),n=this.itemMarginTop+r.legendItem.label.getBBox().height+this.itemMarginBottom,d=r.yAxis.top-e.plotTop,h=r.visible?(a?a.plotY:r.yAxis.height)+(d-0.3*n):d+r.yAxis.height,i.push({target:h,size:n,item:r}))},this),Ar(i,e.plotHeight)))t=o.item.legendItem||{},A(o.pos)&&(t.y=e.plotTop-e.spacing[0]+o.pos)}render(){let t=this.chart,e=t.spacingBox.width,i=t.renderer,s=this.options,o=this.padding,r=this.getAllItems(),a,n,l,h=this.group,d,c=this.box;this.itemX=o,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=It(s.width,e-o),d=e-2*o-s.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(d/=2),this.maxLegendWidth=this.widthOption||d,h||(this.group=h=i.g("legend").addClass(s.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(h),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),Ae(r,(p,u)=>(p.options?.legendIndex||0)-(u.options?.legendIndex||0)),s.reversed&&r.reverse(),this.allItems=r,this.display=a=!!r.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),n=(s.maxWidth?Math.min(this.widthOption||this.offsetWidth,d,It(s.maxWidth,t.chartWidth)||1/0):this.widthOption||this.offsetWidth)+o,l=this.lastItemY+this.lastLineHeight+this.titleHeight,l=this.handleOverflow(l)+o,c||(this.box=c=i.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(h)),t.styledMode||c.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),n>0&&l>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:n,height:l},c.strokeWidth())),h[a?"show":"hide"](),t.styledMode&&h.getStyle("display")==="none"&&(n=l=0),this.legendWidth=n,this.legendHeight=l,a&&this.align(),this.proximate||this.positionItems(),P(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=W(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(W(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e=this,i=this.chart,s=i.renderer,o=this.options,r=o.y,a=o.verticalAlign==="top",n=this.padding,{maxHeight:l,navigation:h}=o,d=h.animation??!0,c=h.arrowSize||12,p=this.pages,u=this.allItems,g=function(C){typeof C=="number"?M.attr({height:C}):M&&(e.clipRect=M.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=C?"rect("+n+"px,9999px,"+(n+C)+"px,0)":"auto")},f=function(C){return e[C]=s.circle(0,0,1.3*c).translate(c/2,c/2).add(v),i.styledMode||e[C].attr("fill","rgba(0,0,0,0.0001)"),e[C]},m,x,y,b,k=i.spacingBox.height+(a?-r:r)-n,v=this.nav,M=this.clipRect;return o.layout!=="horizontal"||o.verticalAlign==="middle"||o.floating||(k/=2),l&&(k=Math.min(k,l)),p.length=0,t&&k>0&&t>k&&h.enabled!==!1?(this.clipHeight=m=Math.max(k-20-this.titleHeight-n,0),this.currentPage=this.currentPage??1,this.fullHeight=t,u.forEach((C,T)=>{let L=(y=C.legendItem||{}).y||0,O=Math.round(y.label.getBBox().height),D=p.length;(!D||L-p[D-1]>m&&(x||L)!==p[D-1])&&(p.push(x||L),D++),y.pageIx=D-1,x&&b&&(b.pageIx=D-1),T===u.length-1&&L+O-p[D-1]>m&&L>p[D-1]&&(p.push(L),y.pageIx=D),L!==x&&(x=L),b=y}),M||(M=e.clipRect=s.clipRect(0,n-2,9999,0),e.contentGroup.clip(M)),g(m),v||(this.nav=v=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,c,c).add(v),f("upTracker").on("click",function(){e.scroll(-1,d)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&h.style&&this.pager.css(h.style),this.pager.add(v),this.down=s.symbol("triangle-down",0,0,c,c).add(v),f("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=k):v&&(g(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,o=s.length,r=this.clipHeight,a=this.options.navigation,n=this.pager,l=this.padding,h=this.currentPage+t;h>o&&(h=o),h>0&&(e!==void 0&&ce(e,i),this.nav.attr({translateX:l,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(d){d.attr({class:h===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:h+"/"+o}),[this.down,this.downTracker].forEach(function(d){d.attr({x:18+this.pager.getBBox().width,class:h===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:h===1?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:h===1?"default":"pointer"}),this.down.attr({fill:h===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:h===o?"default":"pointer"})),this.scrollOffset=-s[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),Zt(()=>{P(this,"afterScroll",{currentPage:h})},Ht(e??i.renderer.globalAnimation??!0).duration))}setItemEvents(t,e,i){let s=this,o=t.legendItem||{},r=s.chart.renderer.boxWrapper,a=t instanceof ge,n=t instanceof Yt,l="highcharts-legend-"+(a?"point":"series")+"-active",h=s.chart.styledMode,d=i?[e,o.symbol]:[o.group],c=(p)=>{s.allItems.forEach((u)=>{t!==u&&[u].concat(u.linkedSeries||[]).forEach((g)=>{g.setState(p,!a)})})};for(let p of d)p&&p.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&r.addClass(l),h||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(W(t.visible?s.itemStyle:s.itemHiddenStyle)),c(""),r.removeClass(l),t.setState()}).on("click",function(u){let g=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};r.removeClass(l),P(s,"itemClick",{browserEvent:u,legendItem:t,context:s},g),a?t.firePointEvent("legendItemClick",{browserEvent:u}):n&&P(t,"legendItemClick",{browserEvent:u})})}createCheckboxForItem(t){t.checkbox=Ot("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),N(t.checkbox,"click",function(e){let i=e.target;P(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(Vs=si||(si={})).compose=function(t){Rt(Tr,"Core.Legend")&&N(t,"beforeMargins",function(){this.legend=new Vs(this,this.options.legend)})};let eo=si,{defaultOptions:io}=Wt,{numberFormat:Or}=Ft,{registerEventOptions:so}=Je,{charts:fe,doc:Ce,marginNames:oo,win:Ki}=w,{seriesTypes:Ji}=kt;class le{static chart(t,e,i){let s=new le(t,e,i);return s.promise??s}constructor(t,e,i){if(this.sharedClips={},!Ce)return void Mt(36,!1,this);let s=[...arguments];(ot(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:t.zoomType??e.type,key:t.zoomKey??e.key,pinchType:t.pinchType??e.pinchType,singleTouch:t.zoomBySingleTouch??e.singleTouch??!1,resetButton:W(e.resetButton,t.resetZoomButton)}}init(t,e){P(this,"init",{args:arguments},function(){let i=W(io,t),s=i.chart,o=this.renderTo||s.renderTo;this.userOptions=G({},t),(this.renderTo=ot(o)?Ce.getElementById(o):o)||Mt(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],e===!0?this.promise=new Promise((r)=>{this.callback=r}):this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new wi(G(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||Or).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=fe.length,this.dataTable=this.getDataTable(i),fe.push(this),w.chartCount++,so(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),P(this,"afterInit"),this.firstRender()})}getDataTable(t){return(t.dataTable?Ct(t.dataTable):[]).map((e)=>e.isDataTable?e:new ne(e))}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=Ji[i];s||Mt(17,!0,this,{missingModuleFor:i});let o=new s;return typeof o.init=="function"&&o.init(this,t),o}orderItems(t,e=0){let i=this[t],s=this.options[t]=Ct(this.options[t]).slice(),o=this.userOptions[t]=this.userOptions[t]?Ct(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),o.splice(e)),i)for(let r=e,a=i.length;r<a;++r){let n=i[r];n&&(n.index=r,n instanceof Yt&&(n.name=n.getName()),n.options.isInternal||(s[r]=n.options,o[r]=n.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:o}=t||{},{x:r,y:a,width:n,height:l}=W(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&!s.isRadial&&(n=s.len),o&&o.len!==this.plotSizeY&&!o.isRadial&&(l=o.len),i&&!t.invertible&&([n,l]=[l,n])),e&&(r+=(i?o:s)?.pos??this.plotLeft,a+=(i?s:o)?.pos??this.plotTop),{x:r,y:a,width:n,height:l}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:o,plotLeft:r,plotTop:a,scrollablePlotBox:n}=this,{scrollLeft:l=0,scrollTop:h=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},d=i.series,c=i.visiblePlotOnly&&n||o,p=i.inverted?e:t,u=i.inverted?t:e,g={x:p,y:u,isInsidePlot:!0,options:i};if(!i.ignoreX){let f=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:r,len:1/0},m=i.paneCoordinates?f.pos+p:r+p;m>=Math.max(l+r,f.pos)&&m<=Math.min(l+r+c.width,f.pos+f.len)||(g.isInsidePlot=!1)}if(!i.ignoreY&&g.isInsidePlot){let f=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:a,len:1/0},m=i.paneCoordinates?f.pos+u:a+u;m>=Math.max(h+a,f.pos)&&m<=Math.min(h+a+c.height,f.pos+f.len)||(g.isInsidePlot=!1)}return P(this,"afterIsInsidePlot",g),g.isInsidePlot}redraw(t){P(this,"beforeRedraw");let e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,s=this.pointer,o=this.legend,r=this.userOptions.legend,a=this.renderer,n=a.isHidden(),l=[],h,d,c,p=this.isDirtyLegend,u;for(a.rootFontSize=a.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),ce(!!this.hasRendered&&t,this),n&&this.temporaryDisplay(),this.layOutTitles(!1),c=i.length;c--;)if(((u=i[c]).options.stacking||u.options.centerInCategory)&&(d=!0,u.isDirty)){h=!0;break}if(h)for(c=i.length;c--;)(u=i[c]).options.stacking&&(u.isDirty=!0);i.forEach(function(f){f.isDirty&&(f.options.legendType==="point"?(typeof f.updateTotals=="function"&&f.updateTotals(),p=!0):r&&(r.labelFormatter||r.labelFormat)&&(p=!0)),f.isDirtyData&&P(f,"updatedData")}),p&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach(function(f){f.updateNames(),f.setScale()}),this.getMargins();let g=this.isDirtyBox;e.forEach(function(f){f.isDirty&&(g=!0)}),e.forEach(function(f){let m=f.min+","+f.max;f.extKey!==m&&(f.extKey=m,l.push(function(){P(f,"afterSetExtremes",G(f.eventArgs,f.getExtremes())),delete f.eventArgs})),(g||d)&&f.redraw()}),g&&this.drawChartBox(),P(this,"predraw"),i.forEach(function(f){(g||f.isDirty)&&f.visible&&f.redraw(),f.isDirtyData=!1}),s&&s.reset(!0),a.draw(),e.forEach((f)=>{f.saveOld()}),P(this,"redraw"),P(this,"render"),n&&this.temporaryDisplay(!0),l.forEach(function(f){f.call()})}get(t){let e=this.series;function i(o){return o.id===t||o.options&&o.options.id===t}let s=te(this.axes,i)||te(this.series,i);for(let o=0;!s&&o<e.length;o++)s=te(e[o].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(P(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=Ct(t[e]||{}))new Di(this,i,e);P(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach((i)=>{(i.selectedStaging??i.selected)&&t.push(i)}),t),[])}getSelectedSeries(){return this.series.filter((t)=>t.selected)}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=W(this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:[s.className,"highcharts-"+t].filter(ot).join(" "),zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(r,a){i.applyDescription(t,r),i.layOutTitles(a)},this.styledMode||o.css(G(t==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),o.textPxLength=o.getBBox().width,o.css({whiteSpace:s.style?.whiteSpace}),this[t]=o)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:o}=this;["title","subtitle","caption"].forEach((a)=>{let n=this[a],l=this.options[a],h=W(o),d=n?.textPxLength||0;if(n&&l){P(this,"layOutTitle",{alignTo:h,key:a,textPxLength:d});let c=s.fontMetrics(n),{b:p,h:u}=c,g=l.verticalAlign||"top",f=g==="top",m=f&&l.minScale||1,x=a==="title"?f?-3:0:f?e[0]+2:0,y=Math.min(h.width/d,1),b=Math.max(m,y),k=W({y:g==="bottom"?p:x+p},l),v=(l.width||(y>m?this.chartWidth:h.width)/b)+"px";k.align??(k.align=a==="title"?y<m?"left":"center":this.title?.alignValue),n.alignValue!==k.align&&(n.placed=!1);let M=Math.round(n.css({width:v}).getBBox(l.useHTML).height);if(k.height=M,n.align(k,!1,h).attr({align:k.align,scaleX:b,scaleY:b,"transform-origin":`${h.x+d*b*Et(k.align)} ${u}`}),!l.floating){let C=M*(M<1.2*u?1:b);g==="top"?e[0]=Math.ceil(e[0]+C):g==="bottom"&&(e[2]=Math.ceil(e[2]+C))}}},this),e[0]&&(i.title?.verticalAlign||"top")==="top"&&(e[0]+=i.title?.margin||0),e[2]&&i.caption?.verticalAlign==="bottom"&&(e[2]+=i.caption?.margin||0);let r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,P(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,(i)=>{if(i!==this.container){let s=i.style.display;return i.style.display="none",[i,s]}}),e={width:Qt(this.renderTo,"width",!0)||0,height:Qt(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([i,s])=>{i.style.display=s}),e}getChartSize(){let t=this.options.chart,{width:e,height:i}=t,s=this.getContainerBox(),o=s.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,It(i,this.chartWidth)||(o?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e?.style;)e.hcOrigStyle&&(ct(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(Ce.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e?.style&&(Ce.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,Ce.body.appendChild(e)),(Qt(e,"display",!1)==="none"||e.hcOrigDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},i={display:"block",overflow:"hidden"},e!==this.renderTo&&(i.height=0),ct(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==Ce.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",o=Xt(),r=this.renderTo,a=wt(_(r,s));A(a)&&fe[a]&&fe[a].hasRendered&&fe[a].destroy(),_(r,s,this.index),r.innerHTML=yt.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let n=this.chartHeight,l=this.chartWidth;ct(r,{overflow:"hidden"}),this.styledMode||(t=G({position:"relative",overflow:"hidden",width:l+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let h=Ot("div",{id:o},t,r);if(this.container=h,this.getChartSize(),l!==this.chartWidth&&(l=this.chartWidth,this.styledMode||ct(h,{width:i.style?.width??l+"px"})),this._cursor=h.style.cursor,this.renderer=new ue(h,l,n,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode,e.palette,this.index),this.containerBox=this.getContainerBox(),ce(void 0,this),this.setClassName(i.className),this.styledMode)for(let d in e.defs)this.renderer.definition(e.defs[d]);else this.renderer.setStyle(i.style),this.palette=this.renderer.palette;P(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!E(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!E(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),P(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],{colorAxis:i,margin:s}=t,o=(r)=>{r.forEach((a)=>{a.visible&&a.getOffset()})};t.hasCartesianSeries?o(t.axes):i?.length&&o(i),oo.forEach((r,a)=>{E(s[a])||(t[r]+=e[a])}),t.setChartSize()}getOptions(){return xe(this.userOptions,io)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.exporting?.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(Ge(e.reflowTimeout),e.reflowTimeout=Zt(function(){if(e.container){e.setSize(void 0,void 0,!1);let o=e.containerBox;o&&(o.height=e.chartHeight)}},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=(i)=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(i)};if(typeof ResizeObserver=="function")new ResizeObserver(e).observe(t.renderTo);else{let i=N(Ki,"resize",e);N(this,"destroy",i)}}setSize(t,e,i){let s=this,o=s.renderer;s.isResizing+=1,ce(i,s);let r=o.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,t!==void 0&&(s.options.chart.width=t),e!==void 0&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:a,chartHeight:n,scrollablePixelsX:l=0,scrollablePixelsY:h=0}=s;(s.isDirtyBox||a!==s.oldChartWidth||n!==s.oldChartHeight)&&(s.styledMode||(r?Pe:ct)(s.container,{width:`${a+l}px`,height:`${n+h}px`},r),s.setChartSize(!0),o.setSize(a,n,r),s.axes.forEach(function(d){d.isDirty=!0,d.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,P(s,"resize"),setTimeout(()=>{s&&P(s,"endResize")},Ht(r).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,o,{chartHeight:r,chartWidth:a,clipOffset:n,inverted:l,spacing:h,renderer:d}=this,c=Math[l?"floor":"round"];if(this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(r-i-(this.marginBottom??0))),this.plotSizeX=l?o:s,this.plotSizeY=l?s:o,this.spacingBox=d.spacingBox={x:h[3],y:h[0],width:a-h[3]-h[1],height:r-h[0]-h[2]},this.plotBox=d.plotBox={x:e,y:i,width:s,height:o},n&&(this.clipBox={x:c(n[l?2:3]),y:c(n[+!!l]),width:c(this.plotSizeX-n[+!l]-n[l?2:3]),height:c(this.plotSizeY-n[+!!l]-n[l?3:2])}),!t){for(let p of this.axes)p.setAxisSize(),p.setAxisTranslation();d.alignElements()}P(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){P(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach((o)=>{let r=e[o],a=pt(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((n,l)=>{t[o][l]=e[`${o}${n}`]??a[l]})}),oo.forEach((o,r)=>{t[o]=t.margin[r]??t.spacing[r]}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t=this,e=t.options.chart,{backgroundColor:i,plotBackgroundColor:s,plotBackgroundImage:o,plotBorderRadius:r=0,shadow:a}=e,{chartWidth:n,chartHeight:l,clipBox:h,clipOffset:d,clipRect:c,plotBGImage:p,plotBox:u,plotLeft:g,plotTop:f,plotWidth:m,plotHeight:x,renderer:y,styledMode:b}=t,{chartBackground:k,plotBackground:v,plotBorder:M}=t,C,T,L,O="animate";k||(t.chartBackground=k=y.rect().addClass("highcharts-background").add(),O="attr"),b?C=T=k.strokeWidth():(T=(C=e.borderWidth||0)+8*!!a,L={fill:i||"none"},(C||k["stroke-width"])&&(L.stroke=e.borderColor,L["stroke-width"]=C),k.attr(L).shadow(a)),k[O]({x:T/2,y:T/2,width:n-T-C%2,height:l-T-C%2,r:e.borderRadius}),O="animate",v||(O="attr",t.plotBackground=v=y.rect().addClass("highcharts-plot-background").add()),v[O]({...u,r}),!b&&(v.attr({fill:s||"none"}).shadow(e.plotShadow),o&&(p?(o!==p.attr("href")&&p.attr("href",o),p.animate(u)):t.plotBGImage=y.image(o,g,f,m,x).add())),c?c.animate({width:h.width,height:h.height}):t.clipRect=y.clipRect(h),O="animate",M||(O="attr",t.plotBorder=M=y.rect().addClass("highcharts-plot-border").attr({zIndex:1.5}).add()),M.attr(b?void 0:{stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"})[O]({r});let D=M.strokeWidth(),z=W(M.crisp(u,-D));if(d&&!b){let B=d[0]-D/2,X=d[3]-D/2;z.x-=X,z.y-=B,z.width+=X+d[1]-D/2,z.height+=B+d[2]-D/2}M[O](z),["plotClipOuter","plotClipInner"].forEach((B,X)=>{let j=t[B],H=X?-D:D;j?.[r?O:"attr"]({x:z.x-H/2,y:z.y-H/2,width:z.width+H,height:z.height+H,r:r?r+H/2:0}),j?.parentGroup?.attr({display:r?"":"none"})}),t.isDirtyBox=!1,P(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,o=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach(function(a){for(e=Ji[o.type],i=o[a]||e&&e.prototype[a],t=r?.length;!i&&t--;)(e=Ji[r[t].type])&&e.prototype[a]&&(i=!0);s[a]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(s){s.linkedSeries.length=0}),i.forEach(function(s){let{linkedTo:o}=s.options,r=ot(o)&&(o===":previous"?i[s.index-1]:e.get(o));r&&r.linkedParent!==s&&(r.linkedSeries.push(s),s.linkedParent=r,s.visible=s.options.visible??r.options.visible??s.visible)}),P(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t=this.axes,e=this.colorAxis,i=this.renderer,{axisLayoutRuns:s=2,plotBorderRadius:o}=this.options.chart,r=(d)=>{d.forEach((c)=>{c.visible&&c.render()})},a=0,n=!0,l,h=0;for(let d of(o&&(this.plotClipOuter||(this.plotClipOuter=i.clipRect()),this.plotClipInner||(this.plotClipInner=i.clipRect())),this.setTitle(),P(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:c}=d,{labels:p,offset:u}=c;if(this.hasCartesianSeries&&d.horiz&&d.visible&&p.enabled&&d.series.length&&d.coll!=="colorAxis"&&!d.isRadial){a=c.tickLength,d.createGroups();let g=new ke(d,0,"",!0),f=g.createLabel("x",p);if(g.destroy(),f&&(p.reserveSpace??!A(c.crossing))&&(a=f.getBBox().height+(p.distance??15)+Math.max(A(u)?u:0,0)),a){f?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(n||l||s>1)&&h<s;){let d=this.plotWidth,c=this.plotHeight,p=[1.05,1.1];for(let u of t){let g=+(u.horiz||0);if(h===0){u.setScale();let f=u.tickPositions?.info?.match;f&&(p[g]=Math.min(f,p[g]))}else(g&&n||!g&&l)&&u.setTickInterval(!0)}h===0?this.getAxisMargins():this.getMargins(),n=d/this.plotWidth>(h?1:p[1]),l=c/this.plotHeight>(h?1:p[0]),h++}this.drawChartBox(),this.hasCartesianSeries?r(t):e?.length&&r(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=W(!0,this.options.credits,t);if(i.enabled&&!this.credits){let s=i.href?yt.filterUserAttributes({href:i.href}).href:void 0;this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0,i.useHTML).addClass("highcharts-credits").on("click",function(o){P(e,"creditsClick",o,()=>{s&&(Ki.location.href=s)})}).attr({align:i.position.align,zIndex:8}),i.events?.click&&N(e,"creditsClick",i.events.click),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(o){e.credits=e.credits.destroy(),e.addCredits(o)}}}destroy(){let t,e=this,{axes:i,series:s,container:o}=e,r=o?.parentNode;for(P(e,"destroy"),e.renderer.forExport?jt(fe,e):fe[e.index]=void 0,w.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Vt(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((a)=>{e[a]=e[a]?.destroy?.()}),o&&(o.innerHTML=yt.emptyHTML,Vt(o),r&&He(o)),K(e,function(a,n){delete e[n]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=ut(e.series)?e.series:[];e.series=[],i.forEach(function(s){t.initSeries(s)}),t.linkSeries(),P(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&this.index!==void 0&&t.apply(this,[this])},this),P(this,"load"),P(this,"render"),E(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e?.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&t.accessibility.enabled===!1||Mt('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))}warnIfCSSNotLoaded(){this.styledMode&&Ki.getComputedStyle(this.container).zIndex!=="0"&&Mt(35,!1,this)}addSeries(t,e,i){let s,o=this;return t&&(e=e??!0,P(o,"addSeries",{options:t},function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),P(o,"afterAddSeries",{series:s}),e&&o.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new Di(this,e.axis,t);return(e.redraw??!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,o=s?.style??{},r=function(){a&&ct(a,{left:o.left??e.plotLeft+"px",top:o.top??e.plotTop+"px",width:o.width??e.plotWidth+"px",height:o.height??e.plotHeight+"px"})},{loadingDiv:a,loadingSpan:n}=e;a||(e.loadingDiv=a=Ot("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=Ot("span",{className:"highcharts-loading-inner"},null,a),N(e,"redraw",r)),a.className="highcharts-loading",yt.setElementHTML(n,t??i.lang.loading??""),!e.styledMode&&(ct(a,G(o,{zIndex:10})),ct(n,s?.labelStyle??{}),e.loadingShown||(ct(a,{opacity:0,display:""}),Pe(a,{opacity:o.opacity??0.5},{duration:s?.showDuration??0}))),e.loadingShown=!0,r()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||Pe(e,{opacity:0},{duration:t.loading?.hideDuration??100,complete:function(){ct(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let o,r,a,n=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,d=[],c={options:t=xe(t,n.options),hasChanged:!!Object.keys(t).length};if(P(n,"update",c),!c.hasChanged)return;h||n.setResponsive(!1,!0),n.userOptions=W(n.userOptions,t);let p=t.chart;p&&(W(!0,n.options.chart,p),this.setZoomOptions(),("className"in p)&&n.setClassName(p.className),(("inverted"in p)||("polar"in p)||("type"in p))&&(n.propFromSeries(),o=!0),("alignTicks"in p)&&(o=!0),("events"in p)&&so(this,p),K(p,function(f,m){n.propsRequireUpdateSeries.indexOf("chart."+m)!==-1&&(r=!0),n.propsRequireDirtyBox.indexOf(m)!==-1&&(n.isDirtyBox=!0),n.propsRequireReflow.indexOf(m)!==-1&&(n.isDirtyBox=!0,h||(a=!0))}),!n.styledMode&&p.style&&n.renderer.setStyle(n.options.chart.style||{})),!n.styledMode&&t.colors&&(this.options.colors=t.colors),K(t,function(f,m){n[m]&&typeof n[m].update=="function"?n[m].update(f,!1):typeof n[l[m]]=="function"?n[l[m]](f):m!=="colors"&&n.collectionsWithUpdate.indexOf(m)===-1&&W(!0,n.options[m],t[m]),m!=="chart"&&n.propsRequireUpdateSeries.indexOf(m)!==-1&&(r=!0)}),this.collectionsWithUpdate.forEach((f)=>{t[f]&&(Ct(t[f]).forEach((m,x)=>{let y;if(!m)return;let b=E(m.id);b&&(y=n.get(m.id)),!y&&n[f]&&(y=n[f][m.index??x])&&(b&&E(y.options.id)||y.options.isInternal)&&(y=void 0),y&&y.coll===f&&(y.update(m,!1),i&&(y.touched=!0)),!y&&i&&n.collectionsWithInit[f]&&(n.collectionsWithInit[f][0].apply(n,[m].concat(n.collectionsWithInit[f][1]||[]).concat([!1])).touched=!0)}),i&&n[f].forEach((m)=>{m.touched||m.options.isInternal?delete m.touched:d.push(m)}))}),d.forEach((f)=>{f.chart&&f.remove&&f.remove(!1)}),o&&n.axes.forEach(function(f){f.update({},!1)}),r&&n.series.forEach((f)=>{f.chart&&f.update({},!1)});let u=p?.width,g=p&&(ot(p.height)?It(p.height,u||n.chartWidth):p.height);a||A(u)&&u!==n.chartWidth||A(g)&&g!==n.chartHeight?n.setSize(u,g,s):(e??!0)&&n.redraw(s),P(n,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=t.options.lang,i=t.zooming.resetButton,s=i.theme,o=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?void 0:"plotBox";P(this,"beforeShowResetZoom",void 0,()=>{t.resetZoomButton=t.renderer.button(e.resetZoom,0,0,()=>t.zoomOut(),s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),P(this,"afterShowResetZoom")}zoomOut(){P(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s=typeof e=="object"?e:{enabled:e,type:"x"},o=s.type,r=o&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter((n)=>n.options.panningEnabled&&!n.options.isInternal),a=i.options.chart;a?.panning&&(a.panning=s),P(this,"pan",{originalEvent:t},()=>{i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),ct(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:o,selection:r,to:a={},trigger:n,allowResetButton:l=!0}=t,{time:h}=this;this.hoverPoints?.forEach((u)=>u.setState()),P(this,"transform",t);let d=t.hasZoomed||!1,c,p;for(let u of e){let{horiz:g,len:f,minPointOffset:m=0,options:x,reversed:y}=u,b=g?"width":"height",k=g?"x":"y",v=a[b]??u.len,M=s[b]??u.len,C=10>Math.abs(v)?1:v/M,T=(s[k]||0)+M/2-u.pos,L=T-((a[k]??u.pos)+v/2-u.pos)/C,O=g&&!y||!g&&y?1:-1;if(!o&&(T<0||T>u.len))continue;let D=r||u.chart.polar||u.isOrdinal&&C<=1?0:m*O||0,z=u.toValue(L,!0),B=u.toValue(L+f/C,!0),X=z+D,j=B-D,H=u.allExtremes;if(X>j&&([X,j]=[j,X]),C===1&&!o&&u.coll==="yAxis"&&!H){for(let Bt of u.series){let Kt=Bt.getExtremes(Bt.getProcessedData(!0).modified.getColumn(Bt.pointValKey||"y")||[],!0);H??(H={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),A(Kt.dataMin)&&A(Kt.dataMax)&&(H.dataMin=Math.min(Kt.dataMin,H.dataMin),H.dataMax=Math.max(Kt.dataMax,H.dataMax))}u.allExtremes=H}let{dataMin:at,dataMax:St,min:ht,max:et}=G(u.getExtremes(),H||{}),tt=h.parse(x.min),Z=h.parse(x.max),mt=at??tt,nt=St??Z,bt=j-X,vt=u.categories?0:Math.min(bt,nt-mt),xt=mt-vt*(E(tt)?0:x.minPadding),Lt=nt+vt*(E(Z)?0:x.maxPadding),zt=u.allowZoomOutside||C===1||n!=="zoom"&&C>1,Dt=Math.min(tt??xt,xt,zt?ht:xt),_t=Math.max(Z??Lt,Lt,zt?et:Lt);(!u.isOrdinal||C!==1||o)&&(X<Dt&&(X=Dt,C>=1&&(j=X+bt)),j>_t&&(j=_t,C>=1&&(X=j-bt)),(o||u.series.length&&(r||(X!==ht||j!==et)&&X>=Dt&&j<=_t))&&(r?r[u.coll].push({axis:u,min:Math.min(z,B),max:Math.max(z,B)}):(u.isPanning=n!=="zoom"&&n!=="drop",u.isPanning&&n!=="mousewheel"&&(p=!0),n!=="drop"&&u.setExtremes(o?void 0:X,o?void 0:j,!1,!1,{move:L,trigger:n,scale:C}),!o&&(X>Dt||j<_t)&&(c=l)),d=!0),this.hasCartesianSeries||o||(c=l),i&&(this[g?"mouseDownX":"mouseDownY"]=i[g?"chartX":"chartY"]))}return d&&(r?P(this,"selection",r,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!c||p||this.resetZoomButton?!c&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(n==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),d}}G(le.prototype,{callbacks:[],collectionsWithInit:{xAxis:[le.prototype.addAxis,[!0]],yAxis:[le.prototype.addAxis,[!1]],series:[le.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"]});let{composed:Lr}=w;function Er(){(this.scrollablePixelsX||this.scrollablePixelsY)&&!this.scrollablePlotArea&&(this.scrollablePlotArea=new Ee(this)),this.scrollablePlotArea?.applyFixed()}function ro(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Ee{static compose(t,e,i){Rt(Lr,"ScrollablePlotArea")&&(N(t,"afterInit",ro),N(e,"afterSetChartSize",(s)=>this.afterSetSize(s.target,s)),N(e,"render",Er),N(i,"show",ro))}static afterSetSize(t,e){let i,s,o,{minWidth:r,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:n,plotBox:l,inverted:h,renderer:d}=t;if(!d.forExport)if(r?(t.scrollablePixelsX=i=Math.max(0,r-t.chartWidth),i&&(t.scrollablePlotBox=W(t.plotBox),l.width=t.plotWidth+=i,n[h?"height":"width"]+=i,o=!0)):a&&(t.scrollablePixelsY=s=Math.max(0,a-t.chartHeight),E(s)&&(t.scrollablePlotBox=W(t.plotBox),l.height=t.plotHeight+=s,n[h?"width":"height"]+=s,o=!1)),E(o)){if(!e.skipAxes)for(let c of t.axes)(c.horiz===o||t.hasParallelCoordinates&&c.coll==="yAxis")&&(c.setAxisSize(),c.setAxisTranslation())}else delete t.scrollablePlotBox}constructor(t){let e,i=t.options.chart,s=i.scrollablePlotArea||{},o=this.moveFixedElements.bind(this),r={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(r.overflowX="auto"),t.scrollablePixelsY&&(r.overflowY="auto"),this.chart=t;let a=this.parentDiv=Ot("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),n=this.scrollingContainer=Ot("div",{className:"highcharts-scrolling"},r,a),l=this.innerContainer=Ot("div",{className:"highcharts-inner-container"},void 0,n),h=this.fixedDiv=Ot("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.zIndex||0)+2,top:0},void 0,!0),d=this.fixedRenderer=new ue(h,t.chartWidth,t.chartHeight,i.style);this.mask=d.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":s.opacity??0.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),n.parentNode.insertBefore(h,n),ct(t.renderTo,{overflow:"visible"}),N(t,"afterShowResetZoom",o),N(t,"afterApplyDrilldown",o),N(t,"afterLayOutTitles",o),N(n,"scroll",()=>{let{pointer:c,hoverPoint:p}=t;c&&(delete c.chartPosition,p&&(e=p),c.runPointActions(void 0,e,!0))}),l.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:o,chartWidth:r,chartHeight:a,container:n,plotHeight:l,plotLeft:h,plotTop:d,plotWidth:c,scrollablePixelsX:p=0,scrollablePixelsY:u=0}=t,{scrollPositionX:g=0,scrollPositionY:f=0}=t.options.chart.scrollablePlotArea||{},m=r+p,x=a+u;e.setSize(r,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),be(t.container),ct(n,{width:`${m}px`,height:`${x}px`}),t.renderer.boxWrapper.attr({width:m,height:x,viewBox:["0 0",m,x].join(" ")}),t.chartBackground?.attr({width:m,height:x}),ct(s,{width:`${r}px`,height:`${a}px`}),E(i)||(s.scrollLeft=p*g,s.scrollTop=u*f);let y=d-o[0]-1,b=h-o[3]-1,k=d+l+o[2]+1,v=h+c+o[1]+1,M=h+c-p,C=d+l-u,T=[["M",0,0]];p?T=[["M",0,y],["L",h-1,y],["L",h-1,k],["L",0,k],["Z"],["M",M,y],["L",r,y],["L",r,k],["L",M,k],["Z"]]:u&&(T=[["M",b,0],["L",b,d-1],["L",v,d-1],["L",v,0],["Z"],["M",b,C],["L",b,a],["L",v,a],["L",v,C],["Z"]]),t.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:T})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:o}=this.chart,r=this.fixedRenderer,a=Ee.fixedSelectors.slice();if(s&&!i?t=".highcharts-yaxis":s&&i||o&&!i?t=".highcharts-xaxis":o&&i&&(t=".highcharts-yaxis"),t&&!(this.chart.hasParallelCoordinates&&t===".highcharts-yaxis"))for(let n of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])Rt(a,n);else for(let n of[".highcharts-xaxis",".highcharts-yaxis"])for(let l of[`${n}:not(.highcharts-radial-axis)`,`${n}-labels:not(.highcharts-radial-axis-labels)`])jt(a,l);for(let n of a)[].forEach.call(e.querySelectorAll(n),(l)=>{(l.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(l),l.style.pointerEvents="auto"})}}Ee.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"];let{format:Ir}=Ft,{series:Dr}=kt,ao=class{constructor(t,e,i,s){this.axis=t,this.negativeValue=e,this.x=i,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.leftCliff=0,this.rightCliff=0}destroy(){re(this,this.axis)}render(t){let e=this.axis,i=e.chart,s=e.options.stackLabels||{},o=s.format,r=(o?Ir(o,this,i):s.formatter?.call(this,this))||"",a=this.label?"animate":"attr";this.label||(this.label=i.renderer.label(r,0,void 0,s.shape,void 0,void 0,s.useHTML,!1,"stack-labels"));let n=this.label,l={r:s.borderRadius||0,padding:s.padding??5};i.styledMode||(l.fill=s.backgroundColor,l.stroke=s.borderColor,l["stroke-width"]=s.borderWidth,n.css(s.style||{})),n.attr({text:r,visibility:"hidden"})[a](l),n.added||n.add(t),n.labelrank=i.plotSizeY,P(this,"afterRender")}setOffset(t,e,i,s,o,r){let{axis:a,label:n}=this,l=a.chart,h=a.options.stackLabels||{},d=l.inverted,c=!!a.reversed!==this.negativeValue,p=this.getStackBox({boxBottom:i,boxTop:s,defaultX:o,isNegative:c,width:e,xAxis:r,xOffset:t}),{align:u=d?c?"left":"right":"center",verticalAlign:g=d?"middle":c?"bottom":"top",textAlign:f=d?!c?"left":"right":"center",x:m=0,y:x=0}=h,y={align:u,verticalAlign:g,x:m,y:x};if(n&&p){let b=n.getBBox(void 0,0),k=n.padding,v=(h.overflow??"justify")==="justify",M,{x:C,y:T}=this.adjustStackPosition({labelBox:b,verticalAlign:g,textAlign:f});p.x-=C,p.y-=T,n.align(y,!1,p),(M=l.isInsidePlot(n.alignAttr.x+m+C,n.alignAttr.y+x+T))||(v=!1),v&&Dr.prototype.justifyDataLabel.call(a,n,y,n.alignAttr,b,p),n.attr({rotation:h.rotation,rotationOriginX:b.width*Et(h.textAlign||"center"),rotationOriginY:b.height/2}),((!v&&h.crop)??!0)&&(M=A(n.x)&&A(n.y)&&l.isInsidePlot(n.x-k+(n.width||0),n.y)&&l.isInsidePlot(n.x+k,n.y)),n[M?"show":"hide"]()}P(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){return{x:t.width/2+t.width/2*(2*Et(i)-1),y:t.height/2*2*(1-Et(e))}}getStackBox(t){let e=this.axis,i=e.chart,{boxBottom:s,boxTop:o,defaultX:r,isNegative:a,width:n,xOffset:l}=t,h=e.stacking.usePercentage?100:o??this.total??0,d=e.toPixels(h),c=t.xAxis||i.xAxis[0],p=(r??c.translate(this.x))+l,u=Math.abs(d-e.toPixels(s||A(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0));return i.inverted?{x:(a?d:d-u)-i.plotLeft,y:c.height-p-n+c.top-i.plotTop,width:u,height:n}:{x:p+c.transB-i.plotLeft,y:(a?d-u:d)-i.plotTop,width:n,height:u}}},{series:{prototype:Br}}=kt;function Rr(){let t=this.inverted;this.axes.forEach((e)=>{e.stacking?.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach((e)=>{let i=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,e.options.stack??"",t?i.top:i.left,t?i.height:i.width].join(","))})}function zr(){let t=this.stacking;if(t){let e=t.stacks;K(e,(i,s)=>{re(i),delete e[s]}),t.stackTotalGroup?.destroy()}}function Nr(){this.stacking||(this.stacking=new no(this))}function Wr(t,e,i,s){return!E(t)||t.x!==e||s&&t.stackKey!==s?t={x:e,index:0,key:s,stackKey:s}:t.index++,t.key=[i,e,t.index].join(","),t}function Hr(){let t,e=this,i=e.yAxis,s=e.stackKey||"",o=i.stacking.stacks,r=e.getColumn("x",!0),a=e.options.stacking,n=e[a+"Stacker"];n&&[s,"-"+s].forEach((l)=>{let h=r.length,d,c,p;for(;h--;)d=r[h],t=e.getStackIndicator(t,d,e.index,l),c=o[l]?.[d],(p=c?.points[t.key||""])&&n.call(e,p,c,h)})}function Xr(t,e,i){let s=e.total?100/e.total:0;t[0]=J(t[0]*s),t[1]=J(t[1]*s),this.stackedYData[i]=t[1]}function Gr(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Br.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function Fr(t,e){let i,s,o,r,a,n,l,h=e||this.options.stacking;if(!h||!this.reserveSpace()||({group:"xAxis"}[h]||"yAxis")!==t.coll)return;let d=this.getColumn("x",!0),c=this.getColumn(this.pointValKey||"y",!0),p=[],u=c.length,g=this.options,f=g.threshold||0,m=g.startFromThreshold?f:0,x=g.stack,y=e?`${this.type},${h}`:this.stackKey||"",b="-"+y,k=this.negStacks,v=t.stacking,{stacks:M,oldStacks:C}=v;for(v.stacksTouched+=1,l=0;l<u;l++){let T=d[l]||0,L=c[l],O=A(L)&&L||0;n=(i=this.getStackIndicator(i,T,this.index)).key||"",M[a=(s=k&&O<(m?0:f))?b:y]||(M[a]={}),M[a][T]||(C[a]?.[T]?(M[a][T]=C[a][T],M[a][T].total=null):M[a][T]=new ao(t,!!s,T,x)),o=M[a][T],L!==null?(o.points[n]=o.points[this.index]=[o.cumulative??m],E(o.cumulative)||(o.base=n),o.touched=v.stacksTouched,i.index>0&&this.singleStacks===!1&&(o.points[n][0]=o.points[this.index+","+T+",0"][0])):(delete o.points[n],delete o.points[this.index]);let D=o.total||0;h==="percent"?(r=s?y:b,D=k&&M[r]?.[T]?(r=M[r][T]).total=Math.max(r.total||0,D)+Math.abs(O):J(D+Math.abs(O))):h==="group"?A(L)&&D++:D=J(D+O),h==="group"?o.cumulative=(D||1)-1:o.cumulative=J((o.cumulative??m)+O),o.total=D,L!==null&&(o.points[n].push(o.cumulative),p[l]=o.cumulative,o.hasValidPoints=!0)}h==="percent"&&(v.usePercentage=!0),h!=="group"&&(this.stackedYData=p),v.oldStacks={}}class no{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,o=i.coll==="xAxis",r=i.options.reversedStacks,a=s.length;for(this.resetStacks(),this.usePercentage=!1,e=a;e--;)t=s[r?e:a-e-1],o&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!o)for(e=0;e<a;e++)s[e].modifyStacks();P(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,K(this.stacks,(t)=>{K(t,(e)=>{e.cumulative=e.total})}))}resetStacks(){K(this.stacks,(t)=>{K(t,(e,i)=>{A(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,{animation:o,enabled:r}=t.options.stackLabels||{},a=Ci(e,o||!1),n=this.stackTotalGroup=this.stackTotalGroup||(r?i.g("stack-labels").attr({zIndex:6,opacity:0}).add():void 0);n&&(n.translate(e.plotLeft,e.plotTop),K(s,(l)=>{K(l,(h)=>{r?h.render(n):h.label=h.label?.destroy()})}),n.animate({opacity:1},a))}}(ji||(ji={})).compose=function(t,e,i){let s=e.prototype,o=i.prototype;s.getStacks||(N(t,"init",Nr),N(t,"destroy",zr),s.getStacks=Rr,o.getStackIndicator=Wr,o.modifyStacks=Hr,o.percentStacker=Xr,o.setGroupedPoints=Gr,o.setStackedPoints=Fr)};let Yr=ji;class Qi extends Yt{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,o)=>{let r,a=s.graph,n=a?"animate":"attr",l=s.dashStyle||t.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):e.length&&(s.graph=a=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&s.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(r={stroke:!o&&t.lineColor||s.color||this.color||"var(--highcharts-neutral-color-20)","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?r.dashstyle=l:t.linecap!=="square"&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),a[n](r),t.shadow)){let h=this.chart.inverted,d={filterUnits:"userSpaceOnUse"},c=pt(t.shadow)?W(h?{}:d,t.shadow):!!h||d;a.shadow(c)}a&&(a.startX=e.xMap,a.isArea=e.isArea)})}getGraphPath(t,e,i){let s=this,o=s.options,r=[],a=[],n,l=o.step,h=(t=t||s.points).reversed;return h&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&h&&(l=4-l),(t=this.getValidPoints(t,!1,o.nullInteraction||!(o.connectNulls&&!e&&!i))).forEach(function(d,c){let p,{plotX:u,plotY:g}=d,f=t[c-1],m=d.isNull||typeof g!="number";(d.leftCliff||f?.rightCliff)&&!i&&(n=!0),m&&!E(e)&&c>0?n=!o.connectNulls:m&&!e?n=!0:(c===0||n?p=[["M",d.plotX,d.plotY]]:s.getPointSpline?p=[s.getPointSpline(t,d,c)]:l?(p=l===1?[["L",f.plotX,g]]:l===2?[["L",(f.plotX+u)/2,f.plotY],["L",(f.plotX+u)/2,g]]:[["L",u,f.plotY]]).push(["L",u,g]):p=[["L",u,g]],a.push(d.x),l&&(a.push(d.x),l===2&&a.push(d.x)),r.push.apply(r,p),n=!1)}),r.xMap=a,s.graphPath=r,r}}Qi.defaultOptions=W(Yt.defaultOptions,{legendSymbol:"lineMarker"}),kt.registerSeriesType("line",Qi);let{seriesTypes:{line:ts}}=kt;class oi extends ts{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let o={},r=i.fillColor||e.fillColor,a=i.area,n=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(o.zIndex=0,(a=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=r||i.color||this.color,o["fill-opacity"]=r?1:e.fillOpacity??0.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[n](o),a.startX=t.xMap,a.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,s,o=ts.prototype.getGraphPath,r=this.options,a=r.stacking,n=this.yAxis,l=[],h=[],d=this.index,c=n.stacking.stacks[this.stackKey],p=r.threshold,u=Math.round(n.getThreshold(r.threshold)),g=r.connectNulls??a==="percent",f=function(v,M,C){let T=t[v],L=t[M],O=a&&c[T.x].points[d],D=T[C+"Null"]||0,z=T[C+"Cliff"]||0,B,X,j=!0;O&&(z||D)?(B=(D?O[0]:O[1])+z,X=O[0]+z,j=!!D):!a&&L&&(L.isNull||!E(L.plotY))&&(B=X=p),B!==void 0&&(h.push({plotX:e,plotY:B===null?u:n.getThreshold(B),isNull:j,isCliff:!0}),l.push({plotX:e,plotY:X===null?u:n.getThreshold(X),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let v=0,M=t.length;v<M;++v)a||(t[v].leftCliff=t[v].rightCliff=t[v].leftNull=t[v].rightNull=void 0),i=t[v].isNull||!E(t[v].plotY),e=t[v].rectPlotX??t[v].plotX,s=a?t[v].yBottom??u:u,(!i||g)&&(g||f(v,v-1,"left"),i&&!a&&g||(h.push(t[v]),l.push({x:v,plotX:e,plotY:s})),g||f(v,v+1,"right"));let m=o.call(this,h,!0,!0);l.reversed=!0;let x=o.call(this,l,!0,!0),y=x[0];y&&y[0]==="M"&&(x[0]=["L",y[1],y[2]]);let b=m.concat(x);b.length&&b.push(["Z"]);let k=o.call(this,h,!1,g);return this.chart.series.length>1&&a&&h.some((v)=>v.isCliff)&&(b.hasStackedCliffs=k.hasStackedCliffs=!0),b.xMap=m.xMap,this.areaPath=b,k}getStackPoints(t){let e=this,i=[],s=[],o=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],n={},l=r.series,h=l.length,d=r.options.reversedStacks?1:-1,c=l.indexOf(e),p=r.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(let g=0;g<t.length;g++)t[g].leftNull=t[g].rightNull=void 0,n[t[g].x]=t[g];K(a,function(g,f){g.total!==null&&s.push(f)}),s.sort(function(g,f){return g-f});let u=l.map((g)=>g.visible);s.forEach(function(g,f){let m=0,x,y;if(n[g]&&!n[g].isNull)i.push(n[g]),[-1,1].forEach(function(b){let k=b===1?"rightNull":"leftNull",v=a[s[f+b]],M=0;if(v){let C=c;for(;C>=0&&C<h;){let T=l[C].index;!(x=v.points[T])&&(T===e.index?n[g][k]=!0:u[C]&&(y=a[g].points[T])&&(M-=y[1]-y[0])),C+=d}}n[g][b===1?"rightCliff":"leftCliff"]=M});else{let b=c;for(;b>=0&&b<h;){let v=l[b].index;if(x=a[g].points[v]){m=x[1];break}b+=d}m||(m=0);let k=r.positiveValuesOnly&&m<=0?p:r.translate(m,!1,!0,!1,!0);i.push({isNull:!0,plotX:o.translate(g,!1,!1,!1,!0),x:g,plotY:k,yBottom:k})}})}return i}}oi.defaultOptions=W(ts.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),G(oi.prototype,{singleStacks:!1}),kt.registerSeriesType("area",oi);let{line:lo}=kt.seriesTypes;class ri extends lo{getPointSpline(t,e,i){let s,o,r,a,n=e.plotX||0,l=e.plotY||0,h=t[i-1],d=t[i+1];function c(u){return u&&!u.isNull&&u.doCurve!==!1&&!e.isCliff}if(c(h)&&c(d)){let u=h.plotX||0,g=h.plotY||0,f=d.plotX||0,m=d.plotY||0,x=0;s=(1.5*n+u)/2.5,o=(1.5*l+g)/2.5,r=(1.5*n+f)/2.5,a=(1.5*l+m)/2.5,r!==s&&(x=(a-o)*(r-n)/(r-s)+l-a),o+=x,a+=x,o>g&&o>l?(o=Math.max(g,l),a=2*l-o):o<g&&o<l&&(o=Math.min(g,l),a=2*l-o),a>m&&a>l?(a=Math.max(m,l),o=2*l-a):a<m&&a<l&&(a=Math.min(m,l),o=2*l-a),e.rightContX=r,e.rightContY=a,e.controlPoints={low:[s,o],high:[r,a]}}let p=["C",h.rightContX??h.plotX??0,h.rightContY??h.plotY??0,s??n??0,o??l??0,n,l];return h.rightContX=h.rightContY=void 0,p}}ri.defaultOptions=W(lo.defaultOptions),kt.registerSeriesType("spline",ri);let ho=ri,{area:jr,area:{prototype:es}}=kt.seriesTypes;class ai extends ho{}ai.defaultOptions=W(ho.defaultOptions,jr.defaultOptions),G(ai.prototype,{getGraphPath:es.getGraphPath,getStackPoints:es.getStackPoints,drawGraph:es.drawGraph}),kt.registerSeriesType("areaspline",ai);let{parse:Vr}=ft,{noop:$r}=w;class Ie extends Yt{animate(t){let e,i,s=this,o=this.yAxis,{pos:r,reversed:a}=o,n=s.options,{clipOffset:l,inverted:h}=this.chart,d={},c=h?"translateX":"translateY";t&&l?(d.scaleY=0.001,i=U(o.toPixels(n.threshold||0),r,r+o.len),h?d.translateX=(i+=a?-Math.floor(l[+!!h]):Math.ceil(l[h?3:2]))-o.len:d.translateY=i+=a?Math.ceil(l[+!!h]):-Math.floor(l[h?3:2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(c)),s.group.animate({scaleY:1},G(Ht(s.options.animation),{step:function(p,u){s.group&&(d[c]=e+u.pos*(r-e),s.group.attr(d))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(s){s.type===i.type&&(s.isDirty=!0)})}getColumnMetrics(){let t=this,{options:e,xAxis:i,yAxis:s}=t,o=i.options.reversedStacks,r=i.reversed&&!o||!i.reversed&&o,a={},n,l=0;e.grouping===!1?l=1:t.chart.series.forEach(function(g){let f,{yAxis:m,options:x}=g;g.type===t.type&&g.reserveSpace()&&s.len===m.len&&s.pos===m.pos&&(x.stacking&&x.stacking!=="group"?(a[n=g.stackKey]===void 0&&(a[n]=l++),f=a[n]):x.grouping!==!1&&(f=l++),g.columnIndex=f)});let h=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),d=h*e.groupPadding,c=(h-2*d)/(l||1),p=Math.min(e.maxPointWidth||i.len,e.pointWidth??c*(1-2*e.pointPadding)),u=(t.columnIndex||0)+ +!!r;return t.columnMetrics={width:p,offset:(c-p)/2+(d+u*c-h/2)*(r?-1:1),paddedWidth:c,columnCount:l},t.columnMetrics}crispCol(t,e,i,s){let o=this.borderWidth,r=this.chart.inverted;return s=Nt(e+s,o,r)-(e=Nt(e,o,r)),this.options.crisp&&(i=Nt(t+i,o)-(t=Nt(t,o))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let o=this.xAxis.series.filter((l)=>l.visible).map((l)=>l.index),r=0,a=0;K(this.xAxis.stacking?.stacks,(l)=>{let h=typeof i.x=="number"?l[i.x.toString()]?.points:void 0,d=h?.[this.index],c={};if(h&&ut(d)){let p=this.index,u=Object.keys(h).filter((g)=>!g.match(",")&&h[g]&&h[g].length>1).map(parseFloat).filter((g)=>o.indexOf(g)!==-1).filter((g)=>{let f=this.chart.series[g].options,m=f.stacking&&f.stack;if(E(m)){if(A(c[m]))return p===g&&(p=c[m]),!1;c[m]=g}return!0}).sort((g,f)=>f-g);r=u.indexOf(p),a=u.length}}),r=this.xAxis.reversed?a-1-r:r;let n=(a-1)*s.paddedWidth+e;t=(i.plotX||0)+n/2-e-r*s.paddedWidth}return t}translate(){let t=this,{chart:e,options:i}=t,s=t.dense=t.closestPointRange*t.xAxis.transA<2,o=t.borderWidth=i.borderWidth??+!s,{xAxis:r,yAxis:a}=t,n=i.threshold,l=i.minPointLength??5,h=t.getColumnMetrics(),d=h.width,c=t.pointXOffset=h.offset,{dataMin:p,dataMax:u}=t,g=t.translatedThreshold=a.getThreshold(n),f=t.barW=Math.max(d,1+2*o);i.pointPadding&&i.crisp&&(f=Math.ceil(f)),Yt.prototype.translate.apply(t),t.points.concat(t.condemnedPoints).forEach(function(m){let x=m.yBottom??g,y=999+Math.abs(x),b=m.plotX||0,k=U(m.plotY,-y,a.len+y),v,M=Math.min(k,x),C=Math.max(k,x)-M,T=d,L=b+c,O=f;l&&Math.abs(C)<l&&(C=l,v=!a.reversed&&!m.negative||a.reversed&&m.negative,A(n)&&A(u)&&m.y===n&&u<=n&&(a.min||0)<n&&(p!==u||(a.max||0)<=n)&&(v=!v,m.negative=!m.negative),M=Math.abs(M-g)>l?x-(v?l:0):g-(v?l:0)),E(m.options.pointWidth)&&(L-=Math.round(((T=O=Math.ceil(m.options.pointWidth))-d)/2)),i.centerInCategory&&(L=t.adjustForMissingColumns(L,T,m,h)),m.barX=L,m.pointWidth=T,m.tooltipPos=e.inverted?[U(a.len+a.pos-e.plotLeft-k,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),r.len+r.pos-e.plotTop-L-O/2,C]:[r.left-e.plotLeft+L+O/2,U(k+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),C],m.shapeType=t.pointClass.prototype.shapeType||"roundedRect",m.shapeArgs=t.crispCol(L,M,O,m.isNull?0:C)}),P(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",a,n,l,h=t?.color||this.color,d=t?.[o]||i[o]||h,c=t?.options.dashStyle||i.dashStyle,p=t?.[r]??i[r]??this[r]??1,u=t?.isNull&&i.nullInteraction?0:t?.opacity??i.opacity??1;t&&this.zones.length&&(n=t.getZone(),h=t.options.color||n&&(n.color||t.nonZonedColor)||this.color,n&&(d=n.borderColor||d,c=n.dashStyle||c,p=n.borderWidth||p)),e&&t&&(l=(a=W(i.states?.[e],t.options.states?.[e]||{})).brightness,h=a.color||l!==void 0&&Vr(h).brighten(a.brightness).get()||h,d=a[o]||d,p=a[r]||p,c=a.dashStyle||c,u=a.opacity??u);let g={fill:h,stroke:d,"stroke-width":p,opacity:t?.condemned?0:u};return c&&(g.dashstyle=c),g}drawPoints(t){let e;t||(t=this.points.concat(this.condemnedPoints));let i=this,s=this.chart,o=i.options,r=o.nullInteraction,{styledMode:a,renderer:n}=s,l=o.animationLimit||250;t.forEach(function(h){let{plotY:d,graphic:c}=h,p=!!c,u=c&&s.pointCount<l?"animate":"attr";if(A(d)&&(h.y!==null||r)){if(e=h.shapeArgs,c&&h.hasNewShapeType()&&(c=c.destroy()),!c){let g=e;h.origin&&s.pointCount<l&&(g=W(e,h.getOrigin(h.origin,e)),a||(g.opacity=0,g["stroke-width"]=0),p=!0,u="animate"),h.graphic=c=n[h.shapeType](g).add(h.group||i.group)}p&&c[u](W(e)),a||c[u](i.pointAttribs(h,h.selected?"select":"")).shadow(h.allowShadow!==!1&&o.shadow),c.addClass(h.getClassName(),!0).attr({visibility:h.visible?"inherit":"hidden"})}else c&&(h.graphic=c.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,o=s.pointer,r=function(a){o?.normalize(a);let n=o?.getPointFromEvent(a);o&&n&&i.options.enableMouseTracking&&(s.isInsidePlot(a.chartX-s.plotLeft,a.chartY-s.plotTop,{visiblePlotOnly:!0})||i.allowOutsidePlotInteraction&&o?.inClass(a.target,"highcharts-point")||o?.inClass(a.target,"highcharts-data-label"))&&(o.isDirectTouch=!0,n.onMouseOver(a))};t.forEach(function(a){e=ut(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[],a.graphic&&(a.graphic.element.point=a),e.forEach(function(n){(n.div||n.element).point=a})}),i._hasTracking||(i.trackerGroups?.reduce((a,n)=>(n==="dataLabelsGroup"?a.push(...i.dataLabelsGroups||[]):a.push(i[n]),a),[]).forEach((a)=>{a&&(a.addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(n){o?.onTrackerMouseOut(n)}).on("touchstart",r),!s.styledMode&&i.options.cursor&&a.css({cursor:i.options.cursor}))}),i._hasTracking=!0),P(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)}),Yt.prototype.remove.apply(t,arguments)}}Ie.defaultOptions=W(Yt.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:0.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)"}),G(Ie.prototype,{directTouch:!0,getSymbol:$r,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),kt.registerSeriesType("column",Ie);let ni=Ie,{format:_r}=Ft;(function(t){function e(){return l(this).some((h)=>h?.enabled)}function i(h,d,c,p,u){let{chart:g}=this,f=this.isCartesian&&g.inverted,{condemned:m,origin:x,plotX:y,plotY:b}=h,{crop:k=!0,distance:v,overflow:M="justify",rotation:C=0}=c,T=Et(c.align),L=Et(c.verticalAlign),O=h.pos(),D=E(y)&&E(b)&&g.isInsidePlot(y,Math.round(b),{inverted:f,paneCoordinates:!0,series:this}),z=this.visible&&h.visible&&E(y)&&(this.forceDL||m||D||(c.inside??!!this.options.stacking)&&p&&g.isInsidePlot(y,f?p.x+1:p.y+p.height-1,{inverted:f,paneCoordinates:!0,series:this}));if(O){let B=d.getBBox(),X=d.getBBox(void 0,0);p=G({x:O[0],y:Math.round(O[1]),width:0,height:0},p||{}),c.alignTo==="plotEdges"&&this.isCartesian&&(p[f?"x":"y"]=0,p[f?"width":"height"]=this.yAxis?.len||0),G(c,{width:B.width,height:B.height});let j=0,H=0;A(v)&&!c.inside&&(j=v*(1-2*T),H=v*(1-2*L)),d.align(W(c,{x:(c.x||0)+j,y:(c.y||0)+H,width:X.width,height:X.height}),!1,p,!1),d.distX=j,d.distY=H,d.alignAttr.x+=T*(X.width-B.width),d.alignAttr.y+=L*(X.height-B.height);let at=d.alignAttr.x+(B.width-X.width)/2,St=d.alignAttr.y+(B.height-X.height)/2;if(x){let et=h.pos(!1,x.x,x.y);if(et){let tt=[et[0]-O[0],et[1]-O[1]];(this.is("column")||h.plotHigh)&&(tt[+!f]=0),d.attr({x:at+tt[0],y:St+tt[1],opacity:0.01}),d.placed=!0,u=!1}}let ht={"text-align":d.alignAttr["text-align"]||"center",x:at,y:St,rotationOriginX:(d.width||0)/2,rotationOriginY:(d.height||0)/2};if((m||!z)&&(ht.opacity=0),d[d.placed?"animate":"attr"](ht),C===0&&!m&&M==="justify"&&z&&p.height>=0)this.justifyDataLabel(d,c,d.alignAttr,B,p,u);else if(k&&!m){let{x:et,y:tt}=d.alignAttr;z=g.isInsidePlot(et,tt,{paneCoordinates:!0,series:this})&&g.isInsidePlot(et+B.width-1,tt+B.height-1,{paneCoordinates:!0,series:this})}c.shape&&!C&&d[u?"attr":"animate"]({anchorX:O[0],anchorY:O[1]})}d[u?"attr":"animate"]({visibility:z?"inherit":"hidden"}),d.placed=z}function s(h,d){P(this,"initDataLabelsGroup",{index:h,zIndex:d?.zIndex}),this.dataLabelsGroup=this.dataLabelsGroups?.[h];let c=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",d?.zIndex??6,this.dataLabelsParentGroups?.[h]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[h]=c,this.dataLabelsGroup=this.dataLabelsGroups[0],c}function o(h,d,c){let p=!!this.hasRendered,u=this.initDataLabelsGroup(h,c).attr({opacity:+p});return!p&&u&&(this.visible&&u.show(),this.options.animation?u.animate({opacity:1},d):u.attr({opacity:1})),u}function r(h){h=h||this.points;let d=this,{chart:c,options:p}=d,u=c.renderer,{backgroundColor:g,plotBackgroundColor:f}=c.options.chart,m=u.getContrast(ot(f)&&f||ot(g)&&g||"var(--highcharts-background-color)"),x=[],y=l(d),{animation:b,defer:k}=y[0],v=k?Ci(c,b,d):{defer:0,duration:0};P(this,"drawDataLabels"),d.hasDataLabels?.()&&h.concat(d.condemnedPoints).forEach((M)=>{let C=M.dataLabels||[],T=M.color||d.color;Ct(n(y,M.dlOptions||M.options?.dataLabels)).forEach((O,D)=>{let z=O.enabled&&(M.visible||M.dataLabelOnHidden)&&(!M.isNull||M.dataLabelOnNull)&&function(bt,vt){let xt=vt.filter;if(xt){let Lt=xt.operator,zt=bt[xt.property],Dt=xt.value;return Lt===">"&&zt>Dt||Lt==="<"&&zt<Dt||Lt===">="&&zt>=Dt||Lt==="<="&&zt<=Dt||Lt==="=="&&zt==Dt||Lt==="==="&&zt===Dt||Lt==="!="&&zt!=Dt||Lt==="!=="&&zt!==Dt||!1}return!0}(M,O),{backgroundColor:B,borderColor:X,distance:j,style:H={}}=O,at=Ct(O.padding||0),St,ht,et,tt={},Z=C[D],mt=!Z,nt;if(z&&(ht=E(St=O[M.formatPrefix+"Format"]??O.format)?_r(St,M,c):(O[M.formatPrefix+"Formatter"]||O.formatter).call(M,O,M),et=O.rotation,!c.styledMode&&(H.color=(ot(O.color)?O.color:void 0)??H.color??(ot(d.color)?d.color:void 0)??"var(--highcharts-neutral-color-100)",H.color==="contrast"?(B!=="none"&&(nt=B),M.contrastColor=u.getContrast(nt!=="auto"&&nt!=="contrast"&&ot(nt)&&nt||(ot(T)?T:"")),H.color=nt&&nt!=="contrast"||O.inside||0>wt(j||0)||p.stacking?M.contrastColor:m):delete M.contrastColor,p.cursor&&(H.cursor=p.cursor)),tt={r:O.borderRadius??3,rotation:et,padding:at[0],paddingLeft:at[3%at.length],paddingRight:at[1%at.length],zIndex:1},c.styledMode||(tt.fill=B==="auto"?M.color:B,tt.stroke=X==="auto"?M.color:X,tt["stroke-width"]=O.borderWidth),K(tt,(bt,vt)=>{bt===void 0&&delete tt[vt]})),!Z||z&&E(ht)&&!!(Z.div||Z.text?.foreignObject)==!!O.useHTML&&(Z.rotation&&O.rotation||Z.rotation===O.rotation)||(Z=void 0,mt=!0),z&&E(ht)&&ht!==""&&(Z?tt.text=ht:(Z=u.label(ht,0,0,O.shape,void 0,void 0,O.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+M.colorIndex+" "+(O.className||"")+(O.useHTML?" highcharts-tracker":"")),Z)){Z.options=O,Z.attr(tt),c.styledMode?H.width&&Z.css({width:H.width,textOverflow:H.textOverflow,whiteSpace:H.whiteSpace}):Z.css(H).shadow(O.shadow),P(Z,"beforeAddingDataLabel",{labelOptions:O,point:M});let bt=x[D]=x[D]||this.initDataLabels(D,v,O);Z.added||Z.add(bt),d.alignDataLabel(M,Z,O,void 0,mt),Z.isActive=!0,C[D]&&C[D]!==Z&&C[D].destroy(),C[D]=Z}});let L=C.length;for(;L--;)C[L]?.isActive?C[L].isActive=!1:(C[L]?.destroy(),C.splice(L,1));M.dataLabel=C[0],M.dataLabels=C}),P(this,"afterDrawDataLabels")}function a(h,d,c,p,u,g){let f=this.chart,{align:m,verticalAlign:x}=d,{distX:y=0,distY:b=0}=h,k=h.box?0:h.padding||0,v=f.inverted?this.yAxis:this.xAxis,M=v?v.left-f.plotLeft:0,C=f.inverted?this.xAxis:this.yAxis,T=C?C.top-f.plotTop:0,{x:L=0,y:O=0}=d,D,z,B;return(D=(c.x||0)-y+k+M)<0&&(m==="right"&&L>=0?(d.align="left",d.inside=!0,L-=y):L-=D,z=!0),(D=(c.x||0)+p.width-y-k+M)>f.plotWidth&&(m==="left"&&L<=0?(d.align="right",d.inside=!0,L-=y):L+=f.plotWidth-D,z=!0),(D=(c.y||0)-b+k+T)<0&&(x==="bottom"&&O>=0?(d.verticalAlign="top",d.inside=!0,O-=b):O-=D,B=!0),(D=(c.y||0)+p.height-b-k+T)>f.plotHeight&&(x==="top"&&O<=0?(d.verticalAlign="bottom",d.inside=!0,O-=b):O+=f.plotHeight-D,B=!0),(z||B)&&(d.x=z?L:L+y,d.y=B?O:O+b,h.placed=!g,h.align(d,void 0,u)),z||B}function n(h,d){let c=[],p;if(ut(h)&&!ut(d))c=h.map(function(u){return W(u,d)});else if(ut(d)&&!ut(h))c=d.map(function(u){return W(h,u)});else if(ut(h)||ut(d)){if(ut(h)&&ut(d))for(p=Math.max(h.length,d.length);p--;)c[p]=W(h[p],d[p])}else c=W(h,d);return c}function l(h){let d=h.chart.options.plotOptions;return Ct(n(n(d?.series?.dataLabels,d?.[h.type]?.dataLabels),h.options.dataLabels))}t.compose=function(h){let d=h.prototype;d.initDataLabels||(d.initDataLabels=o,d.initDataLabelsGroup=s,d.alignDataLabel=i,d.drawDataLabels=r,d.justifyDataLabel=a,d.mergeArrays=n,d.hasDataLabels=e)}})(Vi||(Vi={}));let li=Vi,{composed:Ur}=w,{series:co}=kt;function Zr(t,e,i,s,o){let{chart:r,options:a}=this,n=r.inverted,l=this.xAxis?.len||r.plotSizeX||0,h=this.yAxis?.len||r.plotSizeY||0,d=t.dlBox||t.shapeArgs,c=t.below??(t.plotY||0)>(this.translatedThreshold??h),p=i.inside??!!a.stacking;if(d){if(s=W(d),i.overflow!=="allow"||i.crop!==!1||a.clip!==!1){s.y<0&&(s.height+=s.y,s.y=0);let u=s.y+s.height-h;u>0&&u<s.height-1&&(s.height-=u)}n&&(s={x:h-s.y-s.height,y:l-s.x-s.width,width:s.height,height:s.width}),p||(n?(s.x+=c?0:s.width,s.width=0):(s.y+=c?s.height:0,s.height=0))}i.align??(i.align=!n||p?"center":c?"right":"left"),i.verticalAlign??(i.verticalAlign=n||p?"middle":c?"top":"bottom"),co.prototype.alignDataLabel.call(this,t,e,i,s,o),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}($i||($i={})).compose=function(t){li.compose(co),Rt(Ur,"ColumnDataLabel")&&(t.prototype.alignDataLabel=Zr)};let qr=$i;class hi extends ni{}hi.defaultOptions=W(ni.defaultOptions,{}),G(hi.prototype,{inverted:!0}),kt.registerSeriesType("bar",hi);let{column:Kr,line:po}=kt.seriesTypes;class De extends po{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((s,o)=>{["x","y"].forEach((r,a)=>{if(e[r]&&!s.isNull){let n=`plot${r.toUpperCase()}`,l=t[`${r}Axis`];if(l&&!l.logarithmic){let h,d=e[r]*l.transA*(l.reversed?-1:1),c=(s[n]||0)-d,p=(s[n]||0)+d;s[n]=c+(p-c)*((h=1e4*Math.sin(o+a*i))-Math.floor(h)),r==="x"&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}De.defaultOptions=W(po.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),G(De.prototype,{allowOutsidePlotInteraction:!0,drawTracker:Kr.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),N(De,"afterTranslate",function(){this.applyJitter()}),kt.registerSeriesType("scatter",De);let{deg2rad:uo}=w;($s=_i||(_i={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,a=Math.min(s,o),n=t.thickness,l,h=t.size,d=t.innerSize||0,c,p;typeof h=="string"&&(h=parseFloat(h)),typeof d=="string"&&(d=parseFloat(d));let u=[r?.[0]??"50%",r?.[1]??"50%",(h&&h<0?void 0:t.size)??"100%",(d&&d<0?void 0:t.innerSize||0)??"0%"];for(c=0;c<4;++c)p=u[c],l=c<2||c===2&&/%$/.test(p),u[c]=It(p,[s,o,a,u[2]][c])+(l?i:0);return u[3]>u[2]&&(u[3]=u[2]),A(n)&&2*n<u[2]&&n>0&&(u[3]=u[2]-2*n),P(this,"afterGetCenter",{positions:u}),u},$s.getStartAndEndRadians=function(t,e){let i=A(t)?t:0,s=A(e)&&e>i&&e-i<360?e:i+360;return{start:uo*(i+-90),end:uo*(s+-90)}};let go=_i;class is extends ge{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,o=this.connectorShapes[s]||s;return e&&o.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let 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})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name=t.chart.options.lang.pieSliceName);let s=(o)=>{this.slice(o.type==="select")};N(this,"select",s),N(this,"unselect",s)}isValid(){return A(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;ce(i,s.chart),e=e??!0,this.sliced=this.options.sliced=t??!this.sliced,s.options.data&&(s.options.data[s.data.indexOf(this)]=this.options),this.graphic?.animate(this.getTranslate())}}G(is.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let{breakAt:s,touchingSliceAt:o}=e,r=i.softConnector?["C",t.x+(t.alignment==="left"?-5:5),t.y,2*s.x-o.x,2*s.y-o.y,s.x,s.y]:["L",s.x,s.y];return[["M",t.x,t.y],r,["L",o.x,o.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{angle:s=this.angle||0,breakAt:o,touchingSliceAt:r}=e,{series:a}=this,[n,l,h]=a.center,d=h/2,{plotLeft:c,plotWidth:p}=a.chart,u=t.alignment==="left",{x:g,y:f}=t,m=o.x;if(i.crookDistance){let y=It(i.crookDistance,1);m=u?n+d+(p+c-n-d)*(1-y):c+(n-d)*y}else m=n+(l-f)*Math.tan(s-Math.PI/2);let x=[["M",g,f]];return(u?m<=g&&m>=o.x:m>=g&&m<=o.x)&&x.push(["L",m,f]),x.push(["L",o.x,o.y],["L",r.x,r.y]),x}}});let{getStartAndEndRadians:Jr}=go,{noop:fo}=w;class di extends Yt{animate(t){let e=this,{points:i,startAngleRad:s}=e;t||i.forEach(function(o){let{graphic:r,shapeArgs:a}=o;r&&a&&(r.attr({r:o.startR??(e.center&&e.center[3]/2),start:s,end:s}),r.animate({r:a.r,start:a.start,end:a.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,o=this.options;this.total===0&&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,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:As.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"var(--highcharts-neutral-color-20)"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let 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)})}generatePoints(){super.generatePoints(),this.updateTotals()}getXPos(t,e,i,s){let o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,a=s.dataLabelPosition,n=a?.distance||0,l=Math.asin(U((t-o[1])/(r+n),-1,1));return o[0]+Math.cos(l)*(r+n)*(e?-1:1)+(n>0?e?-5:5:0)}hasData(){return this.points.some((t)=>t.visible)}redrawPoints(){let t,e,i,s,o=this,r=o.chart;this.drawEmpty(),o.group&&!r.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let n={};e=a.graphic,!a.isNull&&e?(s=a.shapeArgs,t=a.getTranslate(),r.styledMode||(i=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||W(!0,n,i),W(!0,n,s,t),e.animate(n)),e.attr({visibility:a.visible?"inherit":"hidden"}),e.addClass(a.getClassName(),!0)):e&&(a.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(i,s){return i.angle!==void 0&&(s.angle-i.angle)*e})}translate(t){P(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=Jr(e.startAngle,e.endAngle),o=this.startAngleRad=s.start,r=(this.endAngleRad=s.end)-o,a=this.points,n=e.ignoreHiddenPoint,l=a.length,h,d,c,p,u,g,f,m=0;for(t||(this.center=t=this.getCenter()),g=0;g<l;g++){f=a[g],h=o+m*r,f.isValid()&&(!n||f.visible)&&(m+=f.percentage/100),d=o+m*r;let x={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:h,end:d};f.shapeType="arc",f.shapeArgs=x,(c=(d+h)/2)>1.5*Math.PI?c-=2*Math.PI:c<-Math.PI/2&&(c+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(c)*i),translateY:Math.round(Math.sin(c)*i)},p=Math.cos(c)*t[2]/2,u=Math.sin(c)*t[2]/2,f.tooltipPos=[t[0]+0.7*p,t[1]+0.7*u],f.half=+(c<-Math.PI/2||c>Math.PI/2),f.angle=c}P(this,"afterTranslate")}updateTotals(){let t=this.points,e=t.length,i=this.options.ignoreHiddenPoint,s,o,r=0;for(s=0;s<e;s++)(o=t[s]).isValid()&&(!i||o.visible)&&(r+=o.y);for(this.total=r,s=0;s<e;s++)(o=t[s]).percentage=r>0&&(o.visible||!i)?o.y/r*100:0,o.total=r}}di.defaultOptions=W(Yt.defaultOptions,{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:0.1}}}),G(di.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:ni.prototype.drawTracker,getCenter:go.getCenter,getSymbol:fo,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:ni.prototype.pointAttribs,pointClass:is,requireSorting:!1,searchPoint:fo,trackerGroups:["group","dataLabelsGroup"]}),kt.registerSeriesType("pie",di);let{composed:Qr,noop:ta}=w,{distribute:ea}=Ze,{series:mo}=kt;(function(t){let e={radialDistributionY:function(a,n){return(n.dataLabelPosition?.top||0)+a.distributeBox.pos},radialDistributionX:function(a,n,l,h,d){let c=d.dataLabelPosition;return a.getXPos(l<(c?.top||0)+2||l>(c?.bottom||0)-2?h:l,n.half,n,d)},justify:function(a,n,l,h){return h[0]+(a.half?-1:1)*(l+(n.dataLabelPosition?.distance||0))},alignToPlotEdges:function(a,n,l,h){let d=a.getBBox().width;return n?d+h:l-d-h},alignToConnectors:function(a,n,l,h){let d=0,c;return a.forEach(function(p){(c=p.dataLabel.getBBox().width)>d&&(d=c)}),n?d+h:l-d-h}};function i(a,n){let l=Math.PI/2,{start:h=0,end:d=0}=a.shapeArgs||{},c=a.angle||0;n>0&&h<l&&d>l&&c>l/2&&c<1.5*l&&(c=c<=l?Math.max(l/2,(h+l)/2):Math.min(1.5*l,(l+d)/2));let{center:p,options:u}=this,g=p[2]/2,f=Math.cos(c),m=Math.sin(c),x=p[0]+f*g,y=p[1]+m*g,b=Math.min((u.slicedOffset||0)+(u.borderWidth||0),n/5);return{natural:{x:x+f*n,y:y+m*n},computed:{},alignment:n<0?"center":a.half?"right":"left",connectorPosition:{angle:c,breakAt:{x:x+f*b,y:y+m*b},touchingSliceAt:{x,y}},distance:n}}function s(){let a=this,{points:n,chart:l}=a,{plotWidth:h,plotHeight:d,plotLeft:c}=l,p=Math.round(l.chartWidth/3),u=a.center,g=u[2]/2,f=u[1],m=[[],[]],x=[0,0,0,0],y=a.dataLabelPositioners,b,k,v,M=0;a.visible&&a.hasDataLabels?.()&&(n.forEach((C)=>{(C.dataLabels||[]).forEach((T)=>{T.shortened&&(T.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),T.shortened=!1)})}),mo.prototype.drawDataLabels.apply(a),n.forEach((C)=>{(C.dataLabels||[]).forEach((T,L)=>{let O=u[2]/2,D=T.options,z=It(D?.distance||0,O);L===0&&m[C.half].push(C),!E(D?.style?.width)&&T.getBBox().width>p&&(T.css({width:Math.round(0.7*p)+"px"}),T.shortened=!0),T.dataLabelPosition=this.getDataLabelPosition(C,z),M=Math.max(M,z)})}),m.forEach((C,T)=>{let L=C.length,O=[],D,z,B=0,X;L&&(a.sortByAngle(C,T-0.5),M>0&&(D=Math.max(0,f-g-M),z=Math.min(f+g+M,l.plotHeight),C.forEach((j)=>{(j.dataLabels||[]).forEach((H)=>{let at=H.dataLabelPosition;at&&at.distance>0&&(at.top=Math.max(0,f-g-at.distance),at.bottom=Math.min(f+g+at.distance,l.plotHeight),B=H.getBBox().height||21,H.lineHeight=l.renderer.fontMetrics(H.text||H).h+2*H.padding,j.distributeBox={target:(H.dataLabelPosition?.natural.y||0)-at.top+H.lineHeight/2,size:B,rank:j.y},O.push(j.distributeBox))})}),ea(O,X=z+B-D,X/5)),C.forEach((j)=>{(j.dataLabels||[]).forEach((H)=>{let at=H.options||{},St=j.distributeBox,ht=H.dataLabelPosition,et=ht?.natural.y||0,tt=at.connectorPadding||0,Z=H.lineHeight||21,mt=(Z-H.getBBox().height)/2,nt=0,bt=et,vt="inherit";if(ht){if(O&&E(St)&&ht.distance>0&&(St.pos===void 0?vt="hidden":(v=St.size,bt=y.radialDistributionY(j,H))),at.justify)nt=y.justify(j,H,g,u);else switch(at.alignTo){case"connectors":nt=y.alignToConnectors(C,T,h,c);break;case"plotEdges":nt=y.alignToPlotEdges(H,T,h,c);break;default:nt=y.radialDistributionX(a,j,bt-mt,et,H)}if(ht.attribs={visibility:vt,align:ht.alignment},ht.posAttribs={x:nt+(at.x||0)+({left:tt,right:-tt}[ht.alignment]||0),y:bt+(at.y||0)-Z/2},ht.computed.x=nt,ht.computed.y=bt-mt,at.crop??!0){let xt;nt-(k=H.getBBox().width)<tt&&T===1?(xt=Math.round(k-nt+tt),x[3]=Math.max(xt,x[3])):nt+k>h-tt&&T===0&&(xt=Math.round(nt+k-h+tt),x[1]=Math.max(xt,x[1])),bt-v/2<0?x[0]=Math.max(Math.round(-bt+v/2),x[0]):bt+v/2>d&&(x[2]=Math.max(Math.round(bt+v/2-d),x[2])),ht.sideOverflow=xt}}})}))}),(Y(x)===0||this.verifyDataLabelOverflow(x))&&(this.placeDataLabels(),this.points.forEach((C)=>{C.dataLabels?.forEach((T,L)=>{let{connectorColor:O,connectorWidth:D=1}=T.options||{},z=T.dataLabelPosition;if(A(D)){let B;b=T.connector,z&&z.distance>0?(B=!b,b||(T.connector=b=l.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+C.colorIndex+(C.className?" "+C.className:"")).add(a.dataLabelsGroups?.[L])),l.styledMode||b.attr({"stroke-width":D,stroke:O||C.color||"var(--highcharts-neutral-color-60)"}),b[B?"attr":"animate"]({d:C.getConnectorPath(T)}),b.attr({visibility:z.attribs?.visibility})):b&&(T.connector=b.destroy())}})})))}function o(){this.points.forEach((a)=>{(a.dataLabels||[]).forEach((n)=>{let l=n.dataLabelPosition;l?(l.sideOverflow&&(n.css({width:Math.max(n.getBBox().width-l.sideOverflow,0)+"px",textOverflow:n.options?.style?.textOverflow||"ellipsis"}),n.shortened=!0),n.attr(l.attribs),n[n.moved?"animate":"attr"](l.posAttribs),n.moved=!0):n&&n.attr({y:-9999})}),delete a.distributeBox},this)}function r(a){let n=this.center,l=this.options,h=l.center,d=l.minSize||80,c=d,p=l.size!==null;return!p&&(h[0]!==null?c=Math.max(n[2]-Math.max(a[1],a[3]),d):(c=Math.max(n[2]-a[1]-a[3],d),n[0]+=(a[3]-a[1])/2),h[1]!==null?c=U(c,d,n[2]-Math.max(a[0],a[2])):(c=U(c,d,n[2]-a[0]-a[2]),n[1]+=(a[0]-a[2])/2),c<n[2]?(n[2]=c,n[3]=Math.min(l.thickness?Math.max(0,c-2*l.thickness):Math.max(0,It(l.innerSize||0,c)),c),this.translate(n),this.drawDataLabels&&this.drawDataLabels()):p=!0),p}t.compose=function(a){if(li.compose(mo),Rt(Qr,"PieDataLabel")){let n=a.prototype;n.dataLabelPositioners=e,n.alignDataLabel=ta,n.drawDataLabels=s,n.getDataLabelPosition=i,n.placeDataLabels=o,n.verifyDataLabelOverflow=r}}})(Ui||(Ui={}));let ia=Ui;(ei=Zi||(Zi={})).getCenterOfPoints=function(t){let e=t.reduce((i,s)=>(i.x+=s.x,i.y+=s.y,i),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},ei.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ei.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},ei.pointInPolygon=function({x:t,y:e},i){let s=i.length,o,r,a=!1;for(o=0,r=s-1;o<s;r=o++){let[n,l]=i[o],[h,d]=i[r];l>e!=d>e&&t<(h-n)*(e-l)/(d-l)+n&&(a=!a)}return a};let{pointInPolygon:sa}=Zi;function xo(t,e){let i=!1;if(t){let s=t.newOpacity,o=t.hasClass("highcharts-data-label");o||be(t,"opacity"),t.oldOpacity!==s&&(o?(t[s?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t[t.isOld||t.placed?"animate":"attr"]({opacity:s},void 0,()=>{e.styledMode||t.css({pointerEvents:s?"auto":"none"})}),P(e,"afterHideOverlappingLabel")):t[t.placed?"animate":"attr"]({opacity:s})),t.isOld=!0}return i}let{defaultOptions:oa}=Wt,{noop:yo}=w,ra={radius:0,scope:"stack",where:void 0},bo=yo,vo=yo;function aa(t,e,i,s,o={}){let r=bo(t,e,i,s,o),{brStart:a=!0,brEnd:n=!0,innerR:l=0,r:h=i,start:d=0,end:c=0}=o;if(o.open||!o.borderRadius)return r;let p=c-d,u=Math.sin(p/2),g=Math.max(Math.min(It(ss(o.borderRadius).radius,h-l),(h-l)/2,h*u/(1+u)),0),f=Math.min(g,p/Math.PI*2*l),m=r.length-1;for(;m--;)(a||m!==0&&m!==3)&&(n||m!==1&&m!==2)&&function(x,y,b){let k,v,M,C=x[y],T=x[y+1];if(T[0]==="Z"&&(T=x[0]),(C[0]==="M"||C[0]==="L")&&T[0]==="A"?(k=C,v=T,M=!0):C[0]==="A"&&(T[0]==="M"||T[0]==="L")&&(k=T,v=C),k&&v&&v.params){let L=v[1],O=v[5],D=v.params,{start:z,end:B,cx:X,cy:j}=D,H=O?L-b:L+b,at=H?Math.asin(b/H):0,St=O?at:-at,ht=Math.cos(at)*H;M?(D.start=z+St,k[1]=X+ht*Math.cos(z),k[2]=j+ht*Math.sin(z),x.splice(y+1,0,["A",b,b,0,0,1,X+L*Math.cos(D.start),j+L*Math.sin(D.start)])):(D.end=B-St,v[6]=X+L*Math.cos(D.end),v[7]=j+L*Math.sin(D.end),x.splice(y+1,0,["A",b,b,0,0,1,X+ht*Math.cos(B),j+ht*Math.sin(B)])),v[4]=Math.abs(D.end-D.start)<Math.PI?0:1}}(r,m,m>1?f:g);return r}function na(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:t,yAxis:e}=this,i=t.stacking==="percent",s=oa.plotOptions?.[this.type]?.borderRadius,o=ss(t.borderRadius,pt(s)?s:{}),r=e.options.reversed;for(let a of this.points){let{shapeArgs:n}=a;if(a.shapeType==="roundedRect"&&n){let{width:l=0,height:h=0,y:d=0}=n,c=d,p=h;if(o.scope==="stack"&&a.stackTotal){let m=e.translate(i?100:a.stackTotal,!1,!0,!1,!0),x=e.translate(t.threshold||0,!1,!0,!1,!0),y=this.crispCol(0,Math.min(m,x),0,Math.abs(m-x));c=y.y,p=y.height}let u=(a.negative?-1:1)*(r?-1:1)==-1,g=o.where;!g&&this.is("waterfall")&&Math.abs((a.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(g="all"),g||(g="end");let f=Math.min(It(o.radius,l),l/2,g==="all"?p/2:1/0)||0;g==="end"&&(u&&(c-=f),p+=f),G(n,{brBoxHeight:p,brBoxY:c,r:f})}}}}function ss(t,e){return pt(t)||(t={radius:t||0}),W(ra,e,t)}function la(){let t=ss(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=It(t.radius,(i.r||0)-(i.innerR||0)))}}function ha(t,e,i,s,o={}){let r=vo(t,e,i,s,o),{r:a=0,brBoxHeight:n=s,brBoxY:l=e}=o,h=e-l,d=l+n-(e+s),c=h-a>-0.1?0:a,p=d-a>-0.1?0:a,u=Math.max(c&&h,0),g=Math.max(p&&d,0),f=[t+c,e],m=[t+i-c,e],x=[t+i,e+c],y=[t+i,e+s-p],b=[t+i-p,e+s],k=[t+p,e+s],v=[t,e+s-p],M=[t,e+c],C=(T,L)=>Math.sqrt(Math.pow(T,2)-Math.pow(L,2));if(u){let T=C(c,c-u);f[0]-=T,m[0]+=T,x[1]=M[1]=e+c-u}if(s<c-u){let T=C(c,c-u-s);x[0]=y[0]=t+i-c+T,b[0]=Math.min(x[0],b[0]),k[0]=Math.max(y[0],k[0]),v[0]=M[0]=t+c-T,x[1]=M[1]=e+s}if(g){let T=C(p,p-g);b[0]+=T,k[0]-=T,y[1]=v[1]=e+s-p+g}if(s<p-g){let T=C(p,p-g-s);x[0]=y[0]=t+i-p+T,m[0]=Math.min(x[0],m[0]),f[0]=Math.max(y[0],f[0]),v[0]=M[0]=t+p-T,y[1]=v[1]=e}return r.length=0,r.push(["M",...f],["L",...m],["A",c,c,0,0,1,...x],["L",...y],["A",p,p,0,0,1,...b],["L",...k],["A",p,p,0,0,1,...v],["L",...M],["A",c,c,0,0,1,...f],["Z"]),r}function da(t,e){let i=t.condition;(i.callback||function(){return this.chartWidth<=(i.maxWidth??Number.MAX_VALUE)&&this.chartHeight<=(i.maxHeight??Number.MAX_VALUE)&&this.chartWidth>=(i.minWidth??0)&&this.chartHeight>=(i.minHeight??0)}).call(this,this)&&e.push(t._id)}function ca(t,e){let i=this.options.responsive,s=this.currentResponsive,o=[],r;!e&&i&&i.rules&&i.rules.forEach((l)=>{l._id===void 0&&(l._id=Xt()),this.matchResponsiveRule(l,o)},this);let a=W(...o.map((l)=>te(i?.rules||[],(h)=>h._id===l)).map((l)=>l?.chartOptions));a.isResponsiveOptions=!0,o=o.toString()||void 0;let n=s?.ruleIds;o!==n&&(s&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(s.undoOptions,t,!0),this.updatingResponsive=!1),o?((r=xe(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:o,mergedOptions:a,undoOptions:r},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}(qi||(qi={})).compose=function(t){let e=t.prototype;return e.matchResponsiveRule||G(e,{matchResponsiveRule:da,setResponsive:ca}),t};let pa=qi;w.AST=yt,w.Axis=Di,w.Chart=le,w.Color=ft,w.DataLabel=li,w.DataTable=ne,w.DataTableCore=ne,w.Fx=Gt,w.HTMLElement=Oe,w.Legend=eo,w.LegendSymbol=qs,w.PlotLineOrBand=Rs,w.Point=ge,w.Pointer=Xs,w.Series=Yt,w.SeriesRegistry=kt,w.StackItem=ao,w.SVGElement=ae,w.SVGRenderer=ue,w.Templating=Ft,w.Tick=ke,w.Time=class extends wi{constructor(t,e){let i=Wt.getOptions();super(t??i.time,e??i.lang)}},w.Tooltip=Ws,w.addEvent=N,w.animObject=Ht,w.animate=Pe,w.arrayMax=Y,w.arrayMin=it,w.attr=_,w.chart=le.chart,w.clamp=U,w.color=ft.parse,w.correctFloat=J,w.createElement=Ot,w.css=ct,w.crisp=Nt,w.dateFormat=Ft.dateFormat,w.defaultOptions=Wt.defaultOptions,w.defined=E,w.destroyObjectProperties=re,w.diffObjects=xe,w.discardElement=He,w.distribute=Ze.distribute,w.erase=jt,w.error=Mt,w.extend=G,w.extendClass=us,w.find=te,w.fireEvent=P,w.format=Ft.format,w.getAlignFactor=Et,w.getClosestDistance=Xe,w.getDeferredAnimation=Ci,w.getMagnitude=fi,w.getNestedProperty=mi,w.getOptions=Wt.getOptions,w.getStyle=Qt,w.insertItem=Ye,w.isArray=ut,w.isClass=gs,w.isDOMElement=xi,w.isFunction=ye,w.isNumber=A,w.isObject=pt,w.isString=ot,w.internalClearTimeout=Ge,w.merge=W,w.normalizeTickInterval=Fe,w.numberFormat=Ft.numberFormat,w.objectEach=K,w.offset=fs,w.pad=ee,w.pick=function(...t){let e=t.length;for(let i=0;i<e;i++){let s=t[i];if(s!=null)return s}},w.pushUnique=Rt,w.pInt=wt,w.relativeLength=It,w.removeEvent=Vt,w.replaceNested=yi,w.seriesType=kt.seriesType,w.setAnimation=ce,w.setOptions=Wt.setOptions,w.splat=Ct,w.stableSort=Ae,w.stop=be,w.syncTimeout=Zt,w.time=Wt.defaultTime,w.ucfirst=bi,w.timers=Gt.timers,w.timeUnits=rt,w.uniqueKey=Xt,w.useSerialIds=function(t){return S=t??S},w.wrap=function(t,e,i){let s=t[e];t[e]=function(){let o=arguments,r=this;return i.apply(this,[function(){return s.apply(r,arguments.length?arguments:o)}].concat([].slice.call(arguments)))}},function(t,e,i){let s=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let o=i.prototype.symbols;N(t,"afterColumnTranslate",na,{order:9}),N(s,"afterTranslate",la),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),bo=o.arc,vo=o.roundedRect,o.arc=aa,o.roundedRect=ha}}(w.Series,w.SVGElement,w.SVGRenderer),qr.compose(w.Series.types.column),li.compose(w.Series),hr.compose(w.Axis),Oe.compose(w.SVGRenderer),eo.compose(w.Chart),cr.compose(w.Axis),(q=(_s=w.Chart).prototype).hideOverlappingLabels||(q.hideOverlappingLabels=function(t){let e=t.length,i=(d,c)=>!(c.x>=d.x+d.width||c.x+c.width<=d.x||c.y>=d.y+d.height||c.y+c.height<=d.y),s=(d,c)=>{for(let p of d)if(sa({x:p[0],y:p[1]},c))return!0;return!1},o,r,a,n,l,h=!1;for(let d=0;d<e;d++)(o=t[d])&&(o.oldOpacity=o.opacity,o.newOpacity=1,o.absoluteBox=function(c){if(c&&(!c.alignAttr||c.placed)){let p=c.box?0:c.padding||0,u=c.dataLabelPosition?.posAttribs||c.alignAttr||{x:c.attr("x"),y:c.attr("y")},{height:g,polygon:f,width:m}=c.getBBox(),x=Et(c.alignValue)*m;return c.width=m,c.height=g,{x:u.x+(c.parentGroup?.translateX||0)+p-x,y:u.y+(c.parentGroup?.translateY||0)+p,width:m-2*p,height:g-2*p,polygon:f}}}(o));t.sort((d,c)=>(c?.labelrank||0)-(d?.labelrank||0));for(let d=0;d<e;++d){n=(r=t[d])&&r.absoluteBox;let c=n?.polygon;for(let p=d+1;p<e;++p){l=(a=t[p])&&a.absoluteBox;let u=!1;if(n&&l&&r!==a&&r?.newOpacity!==0&&a?.newOpacity!==0&&r?.visibility!=="hidden"&&a?.visibility!=="hidden"){let g=l.polygon;if(c&&g&&c!==g?s(c,g)&&(u=!0):i(n,l)&&(u=!0),u){let f=r?.labelrank<a?.labelrank?r:a,m=f?.text;f&&(f.newOpacity=0),m?.element.querySelector("textPath")&&m.hide()}}}}for(let d of t)d&&xo(d,this)&&(h=!0);h&&P(this,"afterHideAllOverlappingLabels")},N(_s,"render",function(){let t=this,e=(s,o)=>{o?(s.oldOpacity=s.opacity,s.newOpacity=1,xo(s,t)):i.push(s)},i=[];for(let s of t.labelCollectors||[])i=i.concat(s());for(let{options:s,stacking:o}of t.yAxis||[])K(o?.stacks,(r)=>{K(r,({label:a})=>{a&&e(a,s.stackLabels?.allowOverlap)})});for(let s of t.series||[])if(s.visible&&s.hasDataLabels?.()){let o=(r)=>{for(let a of r)a.visible&&(a.dataLabels||[]).forEach((n)=>{let l=n.options||{};n.labelrank=l.labelrank??a.labelrank??a.shapeArgs?.height,e(n,l.allowOverlap??(s.is("pie")&&Number(l.distance)>0))})};o(s.nodes||[]),o(s.points)}this.hideOverlappingLabels(i)})),ia.compose(w.Series.types.pie),Rs.compose(w.Chart,w.Axis),Xs.compose(w.Chart),pa.compose(w.Chart),Ee.compose(w.Axis,w.Chart,w.Series),Yr.compose(w.Axis,w.Chart,w.Series),Ws.compose(w.Pointer);let ua=w;return gt.default})())});var Mo;function rs(S,I){if(Mo)try{Mo(S,I)}catch{}else console.error("[sigpro] error in",I,S)}function ka({update:S,notify:I,unwatched:R}){return{link:Q,unlink:q,propagate:lt,checkDirty:gt,shallowPropagate:w};function Q(V,F,N){let it=F.depsTail;if(it!==void 0&&it.dep===V)return;let Y=it!==void 0?it.nextDep:F.deps;if(Y!==void 0&&Y.dep===V){Y.version=N,F.depsTail=Y;return}let _=V.subsTail;if(_!==void 0&&_.version===N&&_.sub===F)return;let U=F.depsTail=V.subsTail={version:N,dep:V,sub:F,prevDep:it,nextDep:Y,prevSub:_,nextSub:void 0};if(Y!==void 0)Y.prevDep=U;if(it!==void 0)it.nextDep=U;else F.deps=U;if(_!==void 0)_.nextSub=U;else V.subs=U}function q(V,F=V.sub){let{dep:N,prevDep:it,nextDep:Y,nextSub:_,prevSub:U}=V;if(Y!==void 0)Y.prevDep=it;else F.depsTail=it;if(it!==void 0)it.nextDep=Y;else F.deps=Y;if(_!==void 0)_.prevSub=U;else N.subsTail=U;if(U!==void 0)U.nextSub=_;else if((N.subs=_)===void 0)R(N);return Y}function lt(V,F){let N=V.nextSub,it;t:do{let Y=V.sub,_=Y.flags;if(!(_&60)){if(Y.flags=_|32,F)Y.flags|=8}else if(!(_&12))_=0;else if(!(_&4))Y.flags=_&-9|32;else if(!(_&48)&&dt(V,Y))Y.flags=_|8|32,_&=1;else _=0;if(_&2)I(Y);if(_&1){let U=Y.subs;if(U!==void 0){let J=(V=U).nextSub;if(J!==void 0)it={value:N,prev:it},N=J;continue}}if((V=N)!==void 0){N=V.nextSub;continue}while(it!==void 0)if(V=it.value,it=it.prev,V!==void 0){N=V.nextSub;continue t}break}while(!0)}function gt(V,F){let N,it=0,Y=!1;t:do{let _=V.dep,U=_.flags;if(F.flags&16)Y=!0;else if((U&17)===17){let J=_.subs;if(S(_)){if(J.nextSub!==void 0)w(J);Y=!0}}else if((U&33)===33){N={value:V,prev:N},V=_.deps,F=_,++it;continue}if(!Y){let J=V.nextDep;if(J!==void 0){V=J;continue}}while(it--){if(V=N.value,N=N.prev,Y){let Ot=F.subs;if(S(F)){if(Ot.nextSub!==void 0)w(Ot);F=V.sub;continue}Y=!1}else F.flags&=-33;F=V.sub;let J=V.nextDep;if(J!==void 0){V=J;continue t}}return Y&&!!F.flags}while(!0)}function w(V){do{let F=V.sub,N=F.flags;if((N&48)===32){if(F.flags=N|16,(N&6)===2)I(F)}}while((V=V.nextSub)!==void 0)}function dt(V,F){let N=F.depsTail;while(N!==void 0){if(N===V)return!0;N=N.prevDep}return!1}}var as=0,ze=0,Ma=0,me=0,Re=0,Pt,Ut=[],{link:ns,unlink:Ne,propagate:Ca,checkDirty:Sa,shallowPropagate:Ta}=ka({update(S){if("getter"in S)return Aa(S);if("currentValue"in S)return So(S);return S.flags=1,!0},notify(S){let I=Re,R=I;do if(Ut[I++]=S,S.flags&=-3,S=S.subs?.sub,S===void 0||!(S.flags&2))break;while(!0);Re=I;while(R<--I){let Q=Ut[R];Ut[R++]=Ut[I],Ut[I]=Q}},unwatched(S){if("getter"in S){if(S.depsTail!==void 0)S.flags=17,gi(S)}else if("currentValue"in S);else if("fn"in S)Ao.call(S);else ls.call(S)}});function ui(S){return La.bind({currentValue:S,pendingValue:S,subs:void 0,subsTail:void 0,flags:1})}function oe(S){if(typeof S!=="function")return console.error("[sigpro] effect() expects a function, got",typeof S),()=>{};let I={fn:S,cleanup:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:6},R=Pt;if(Pt=I,R!==void 0)ns(I,R,0),R.flags|=64;try{++ze;let Q=I.fn();I.cleanup=typeof Q==="function"?Q:void 0}catch(Q){I.flags=0,gi(I),rs(Q,I.fn)}finally{--ze,Pt=R,I.flags&=-5}return Ao.bind(I)}function Co(S){let I={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:1},R=Pt;if(Pt=I,R!==void 0)ns(I,R,0),R.flags|=64;try{S()}finally{Pt=R}return ls.bind(I)}function Aa(S){if(S.flags&64){let R=S.depsTail;while(R!==void 0){let Q=R.prevDep,q=R.dep;if(!("getter"in q)&&!("currentValue"in q))Ne(R,S);R=Q}}S.depsTail=void 0,S.flags=5;let I=Pt;Pt=S;try{++as;let R=S.value;return!Object.is(R,S.value=S.getter(R))}finally{Pt=I,S.flags&=-5,Po(S)}}function So(S){return S.flags=1,!Object.is(S.currentValue,S.currentValue=S.pendingValue)}function Pa(S){let I=S.flags;if(I&16||I&32&&Sa(S.deps,S)){if(I&64){let Q=S.depsTail;while(Q!==void 0){let q=Q.prevDep,lt=Q.dep;if(!("getter"in lt)&&!("currentValue"in lt))Ne(Q,S);Q=q}}if(S.cleanup){if(To(S),!S.flags)return}S.depsTail=void 0,S.flags=6;let R=Pt;Pt=S;try{++as,++ze;let Q=S.fn();S.cleanup=typeof Q==="function"?Q:void 0}catch(Q){S.flags=0,gi(S),rs(Q,S.fn)}finally{--ze,Pt=R,S.flags&=-5,Po(S)}}else if(S.deps!==void 0)S.flags=2|I&64}function Oa(){try{while(me<Re){let S=Ut[me];Ut[me++]=void 0,Pa(S)}}finally{while(me<Re){let S=Ut[me];Ut[me++]=void 0,S.flags|=10}if(me=0,Re=0,Ut.length>64)Ut.length=64}}function La(...S){if(S.length){if(!Object.is(this.pendingValue,this.pendingValue=S[0])){this.flags=17;let I=this.subs;if(I!==void 0){if(Ca(I,!!ze),!Ma)Oa()}}}else{if(this.flags&16){if(So(this)){let R=this.subs;if(R!==void 0)Ta(R)}}let I=Pt;if(I!==void 0)ns(this,I,as);return this.currentValue}}function To(S){let I=S.cleanup;S.cleanup=void 0;let R=Pt;Pt=void 0;try{I()}finally{Pt=R}}function Ao(){if(ls.call(this),this.cleanup)To(this)}function ls(){this.flags=0,gi(this);let S=this.subs;if(S!==void 0)Ne(S)}function gi(S){let I=S.depsTail;while(I!==void 0){let R=I.prevDep;Ne(I,S),I=R}}function Po(S){let I=S.depsTail,R=I!==void 0?I.nextDep:S.deps;while(R!==void 0)R=Ne(R,S)}function hs(S){let I=Pt;Pt=void 0;try{return S()}finally{Pt=I}}var de=typeof document<"u"?document:null,Ea="http://www.w3.org/2000/svg",Ia=new Set("svg path circle rect line polyline polygon g defs text textPath tspan use symbol image marker ellipse foreignObject clipPath mask linearGradient radialGradient pattern filter stop animate animateMotion animateTransform view desc metadata title switch feGaussianBlur feOffset feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feImage feMerge feMergeNode feMorphology fePointLight feSpecularLighting feSpotLight feTile feTurbulence".split(" ")),Da=new Set(["allowFullscreen","async","autofocus","autoplay","checked","controls","defer","disabled","formNoValidate","hidden","inert","loop","multiple","muted","noValidate","open","playsInline","readOnly","required","reversed","selected"]);function ci(S,I,R,Q){let q=I.toLowerCase();if(q==="innerhtml"||q==="outerhtml"||q==="srcdoc")return;if(q.startsWith("on")&&R!=null&&R!==!1)return;if(/^(href|src|action|formaction|poster|data|xlink:href)$/i.test(I)&&R!=null&&R!==!1){if(typeof R!=="string")return;try{let lt=new URL(R,"https://placeholder.invalid/").protocol,gt=lt==="data:"&&q==="src"&&/^(img|source|video|audio|track|input)$/i.test(S.tagName)&&/^data:image\/(png|jpe?g|gif|webp|avif|bmp);/i.test(R.trim());if(!/^(https?|mailto|tel|blob):$/.test(lt)&&!gt)return}catch{return}}if(I==="class"||I==="className"){if(Q)if(R==null||R===!1)S.removeAttribute("class");else S.setAttribute("class",R===!0?"":R);else S.className=R??"";return}if(Da.has(I)&&!Q&&I in S){let lt=R!=null&&R!==!1;if(S[I]=lt,lt)S.setAttribute(I,"");else S.removeAttribute(I);return}if(R==null||R===!1){if(I==="style")S._lastStyle=void 0;S.removeAttribute(I);return}if(I==="style"){let lt=S._lastStyle;if(typeof R==="string"){if(lt!==void 0)S.removeAttribute("style"),S._lastStyle=void 0;S.setAttribute("style",R);return}if(typeof R==="object"){if(lt){for(let gt in lt)if(!(gt in R))if(gt.startsWith("--"))S.style.removeProperty(gt);else S.style[gt]=""}for(let gt in R){let w=R[gt];if(gt.startsWith("--"))if(w==null||w===!1)S.style.removeProperty(gt);else S.style.setProperty(gt,String(w));else S.style[gt]=w==null||w===!1?"":String(w)}S._lastStyle=R;return}}if(Q){S.setAttribute(I,R===!0?"":R);return}if(I in S&&typeof S[I]!=="function")S[I]=R;else S.setAttribute(I,R===!0?"":R)}function Oo(S){let I=[S];while(I.length){let R=I.pop();if(R._stopScope)R._stopScope(),R._stopScope=null;if(R._cln){for(let q of R._cln)q();R._cln=null}let Q=R.childNodes;for(let q=0,lt=Q.length;q<lt;q++)I.push(Q[q])}}function pi(S,I={},...R){if(S==null)return console.error("[sigpro] h() called with no tag"),de.createComment("invalid tag");if(typeof S==="function"){let w,dt=Co(()=>{try{w=S(I,R)}catch(F){rs(F,S),w=de.createComment("error")}}),V=(F)=>{if(F instanceof Node)F._stopScope=dt;else if(Array.isArray(F))F.forEach(V)};return V(w),w}if(typeof S!=="string")return console.error("[sigpro] h() tag must be string or function, got",typeof S),de.createComment("invalid tag");if(I instanceof Node||Array.isArray(I)||I!==null&&typeof I!=="object")R=[I,...R],I={};let Q=Ia.has(S),q=Q?de.createElementNS(Ea,S):de.createElement(S),lt;for(let w of Object.keys(I||{})){let dt=I[w];if(w==="ref"){if(typeof dt==="function")dt(q);else if(dt!=null&&typeof dt==="object")dt.current=q;continue}if(S==="select"&&w==="value"){lt=dt;continue}if(w.startsWith("on")&&typeof dt==="function"){let V=w.slice(2).toLowerCase();q.addEventListener(V,dt),(q._cln||(q._cln=[])).push(()=>q.removeEventListener(V,dt))}else if(w.startsWith("on")&&dt!=null&&dt!==!1)console.error(`[sigpro] "${w}" expects a function, got ${typeof dt}`);else if(typeof dt==="function")oe(()=>ci(q,w,dt(),Q));else ci(q,w,dt,Q)}if(S==="a"&&q.target==="_blank"&&!q.rel)q.rel="noopener noreferrer";let gt=(w)=>{if(Array.isArray(w)){for(let dt of w)gt(dt);return}if(w==null||w===!1||w===!0)return;if(typeof w==="function"){let dt=de.createComment("");q.appendChild(dt);let V=oe(()=>{let F=w(),N=Array.isArray(F)?F:[F],it=[];for(let Y of N){if(Y==null||Y===!1||Y===!0)continue;it.push(Y instanceof Node?Y:de.createTextNode(String(Y)))}for(let Y of it)q.insertBefore(Y,dt);return()=>{for(let Y of it)Oo(Y),Y.remove()}});(q._cln||(q._cln=[])).push(V);return}q.appendChild(w instanceof Node?w:de.createTextNode(String(w)))};if(gt(R),lt!==void 0)if(typeof lt==="function")oe(()=>ci(q,"value",lt(),Q));else ci(q,"value",lt,Q);return q}var ds=ui(typeof window<"u"?window.location.hash.slice(1)||"/":"/"),Ba=ui({});if(typeof window<"u")window.addEventListener("hashchange",()=>{ds(window.location.hash.slice(1)||"/")});var Lo=new Map,os=ui(0);if(typeof window<"u")window.__sigpro_hmr_page__=(S,I)=>{Lo.set(S,I),os(os()+1)};var cs=(S)=>()=>{S=[...S].sort((w,dt)=>(w.path==="*")-(dt.path==="*")||w.path.split("/").filter((V)=>V[0]===":").length-dt.path.split("/").filter((V)=>V[0]===":").length);let I=pi("div",{class:"router-hook"}),R,Q,q,lt=()=>{for(let w of I.childNodes)Oo(w);I.replaceChildren()},gt=oe(()=>{os();let w=ds(),V=w.split(/[?#]/)[0].split("/").filter(Boolean),F=S.find((Y)=>{let _=Y.path.split("/").filter(Boolean);return _.length===V.length&&_.every((U,J)=>U[0]===":"||U===V[J])})||S.find((Y)=>Y.path==="*");if(!F){if(R)R(),R=void 0;lt(),Q=q=void 0;return}let N={};F.path.split("/").filter(Boolean).forEach((Y,_)=>{if(Y[0]===":")try{N[Y.slice(1)]=decodeURIComponent(V[_])}catch{N[Y.slice(1)]=V[_]}});let it=Lo.get(F.path)??F.component;if(w===Q&&it===q)return;if(Q=w,q=it,R)R(),R=void 0;lt(),Ba(N),R=Co(()=>{let Y=typeof it==="function"?pi(it,N):it,_=Y==null?[]:Array.isArray(Y)?Y:[Y];I.replaceChildren(..._)})});return I._stopScope=()=>{if(R)R(),R=void 0;gt()},I};cs.to=(S)=>{if(typeof window<"u")window.location.hash=S.replace(/^#?\/?/,"#/")};cs.back=()=>{if(typeof window<"u")window.history.back()};cs.path=()=>ds();var Na=ui("en");var Io=va(Eo(),1),Do=(S)=>S[0]!=null&&typeof S[0]==="object"&&!Array.isArray(S[0])&&("data"in S[0]),Ra=(S)=>S==null?void 0:Array.isArray(S[0])?S.map((I)=>({data:I})):Do(S)?S:[{data:S}],Ua=(S)=>{let{options:I,data:R,api:Q,on:q,class:lt,style:gt="height: 100%; width: 100%",dark:w}=S;return pi("div",{class:lt,style:gt,ref:(V)=>{let F;return oe(()=>{let it=hs(()=>typeof I==="function"?I():I)||{},Y=hs(()=>typeof R==="function"?R():R);if(F=Io.default.chart(V,{...it,credits:{enabled:!1,...it.credits||{}},series:Ra(Y)??it.series,chart:{...it.chart||{},events:{...it.chart?.events||{},load(){q?.onLoad?.(F)},redraw(){q?.onRedraw?.(F)},click(U){q?.onClick?.(U,F)}}}}),Q)Q.current=F;oe(()=>{let U=typeof R==="function"?R():R;if(U&&F&&!F.renderer.forExport)if(Array.isArray(U[0]))U.forEach((J,Ot)=>F.series[Ot]?.setData(J,!1)),F.redraw();else if(Do(U))U.forEach((J,Ot)=>F.series[Ot]?.update(J,!1)),F.redraw();else F.series[0]?.setData(U,!0)});let _=!0;if(oe(()=>{let U=typeof I==="function"?I():I;if(_){_=!1;return}if(U&&F)F.update(U,!0,!0)}),w!==void 0){let U=null;oe(()=>{let J=typeof w==="function"?w():w;if(J===U)return;U=J,F.update({chart:{backgroundColor:J?"#1d1d1d":"#ffffff"},title:{style:{color:J?"#ffffff":"#333333"}}})})}return()=>{if(F){if(F.destroy(),Q)Q.current=null}}})}})};export{Ua as Chart};