1import {d,q as a,c$ as To,d0 as m,d1 as vt,d2 as bi,d3 as ki,d4 as $i,d5 as ji,d6 as pe,d7 as Q$1,d8 as ye,d9 as ue,da as p,db as J,dc as li$1,dd as H,de as Vi,df as De,dg as Pi$2,dh as p$1,di as E}from'./chunk-BvHaT3Mc.js';import {cz as Bs,c2 as Pn$1,cp as xs,a$ as Zg,cA as Dh$1,cB as io,aF as it,l as lv,cC as St,u,H as Ha,cD as Is,aR as Pi$1,cE as ao,aT as qd,aN as To$1,ar as Bt,cF as me,cG as Jm,bB as x,aK as st,aL as rt,m as mr,cH as qe,cI as sr,cJ as Lr,cK as f,cL as Lt,cM as Je,Z as s,a1 as ut,c4 as wn,c6 as Lt$1,W as le,cw as ce,cq as Ps,cr as xi,cs as Ft,ct as ws,cu as Os,cv as So,aB as sn,ba as H$1,bv as ae,at as q,au as b,av as y,a0 as Pc,ax as Sc}from'./chunk-D5CP3uDr.js';import {y as yn,H as Ht,bc as O,J as Jt,aZ as G,a_ as F,d as d1,bM as L,g as ee,s as sv,m as m$1,i as ge,x as _o,l as mn,C as av,u as zy,Q,R,r as lt,bd as Ee,n as df,a as P,z as ze,$ as Zo,p as va$1,j as ED,b8 as YU,bN as qp,bO as YA,a4 as EL,a5 as tf,a7 as bo,ai as Vr,a9 as nf,a8 as _i,a6 as sf,aP as UC,aQ as BC,ae as Do,as as SS,ak as $r,ar as jy,ab as ur,bK as ZO,aE as af,aF as cf,aO as $S,au as Nt,ay as wi,aR as VS,ac as F1,ah as GS,am as H1,aj as _1,af as Oc,ao as z1,aC as Si,al as VU,aL as Ln,aM as S1,an as q1,bP as KO,aT as w1,ax as Ti,az as dL,b0 as lL,aB as fL}from'./main-KJRXNSUM.js';import'./chunk-BABTpi0f.js';var Jr=L((Mi,yn)=>{"use strict";(function(C,O){typeof Mi=="object"&&typeof yn=="object"?(C._Highcharts=O(),yn.exports=C._Highcharts):typeof define=="function"&&define.amd?define("highcharts/highcharts",[],O):typeof Mi=="object"?(C._Highcharts=O(),Mi.highcharts=C._Highcharts):(C.Highcharts&&C.Highcharts.error(16,!0),C.Highcharts=O());})("u"<typeof window?Mi:window,()=>(()=>{"use strict";let C,O,A,E,R,H;var z,U,Q,ot,ee,Ve,us,Be,wn,fs,ys,xs,bs,vs,Cs,Ms,Ps,ks,ws,Os,_s,Ts,Ss,As,Ds,Es,ci={};ci.d=(l,t)=>{for(var e in t)ci.o(t,e)&&!ci.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:t[e]});},ci.o=(l,t)=>Object.prototype.hasOwnProperty.call(l,t);var On={};ci.d(On,{default:()=>uh}),(z=fs||(fs={})).SVG_NS="http://www.w3.org/2000/svg",z.product="Highcharts",z.version="12.6.1",z.win="u">typeof window?window:{},z.doc=z.win.document,z.svg=!!z.doc?.createElementNS?.(z.SVG_NS,"svg")?.createSVGRect,z.pageLang=z.doc?.documentElement?.closest("[lang]")?.lang,z.userAgent=z.win.navigator?.userAgent||"",z.isChrome=z.win.chrome,z.isFirefox=z.userAgent.indexOf("Firefox")!==-1,z.isMS=/(edge|msie|trident)/i.test(z.userAgent)&&!z.win.opera,z.isSafari=!z.isChrome&&z.userAgent.indexOf("Safari")!==-1,z.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(z.userAgent),z.isWebKit=z.userAgent.indexOf("AppleWebKit")!==-1,z.deg2rad=2*Math.PI/360,z.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],z.noop=function(){},z.supportsPassiveEvents=(function(){let l=!1;if(!z.isMS){let t=Object.defineProperty({},"passive",{get:function(){l=!0;}});z.win.addEventListener&&z.win.removeEventListener&&(z.win.addEventListener("testPassive",z.noop,t),z.win.removeEventListener("testPassive",z.noop,t));}return l})(),z.charts=[],z.composed=[],z.dateFormats={},z.seriesTypes={},z.symbolSizes={},z.chartCount=0;let T=fs,{doc:ki,win:wi}=T;function J(l,t,e,i={}){let s=typeof l=="function"&&l.prototype||l;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let n=s.hcEvents;T.Point&&l instanceof T.Point&&l.series&&l.series.chart&&(l.series.chart.runTrackerClick=!0);let o=l.addEventListener;o&&o.call(l,t,e,!!T.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),n[t]||(n[t]=[]);let r={fn:e,order:typeof i.order=="number"?i.order:1/0};return n[t].push(r),n[t].sort((a,h)=>a.order-h.order),function(){ge(l,t,e);}}function je(l){let t=l.length,e=l[0];for(;t--;)l[t]<e&&(e=l[t]);return e}function ke(l){let t=l.length,e=l[0];for(;t--;)l[t]>e&&(e=l[t]);return e}function Gt(l,t,e){let i,s=lt(t)&&!B(e),n=(o,r)=>{B(o)?l.setAttribute(r,o):s?(i=l.getAttribute(r))||r!=="class"||(i=l.getAttribute(r+"Name")):l.removeAttribute(r);};return lt(t)?n(e,t):tt(t,n),i}function kt(l,t,e){return l>t?l<e?l:e:t}function xt(l,t){return l>1e14?l:parseFloat(l.toPrecision(t||14))}
1function re(l,t,e,i,s){let n=ki.createElement(l);return t&&Y(n,t),s&&nt(n,{padding:"0",border:"none",margin:"0"}),e&&nt(n,e),i&&i.appendChild(n),n}function ae(l,t=0,e){let i=t%2/2,s=e?-1:1;return (Math.round(l*s-i)+i)*s}function nt(l,t){Y(l.style,t);}function B(l){return l!=null}function Ne(l,t,e){tt(l,function(i,s){i!==t&&i?.destroy&&i.destroy(),(i?.destroy||!e)&&delete l[s];});}function Oi(l){l?.parentElement?.removeChild(l);}function di(l,t,e,i){let s={};return (function n(o,r,a,h){let d=e?r:o;tt(o,function(c,p){if(!h&&i&&i.indexOf(p)>-1&&r[p]){c=jt(c),a[p]=[];for(let m=0;m<Math.max(c.length,r[p].length);m++)r[p][m]&&(c[m]===void 0?a[p][m]=r[p][m]:(a[p][m]={},n(c[m],r[p][m],a[p][m],h+1)));}else ht(c,!0)&&!c.nodeType?(a[p]=ft(c)?[]:{},n(c,r[p]||{},a[p],h+1),Object.keys(a[p]).length===0&&(p!=="colorAxis"||h!==0)&&delete a[p]):(o[p]!==r[p]||p in o&&!(p in r))&&p!=="__proto__"&&p!=="constructor"&&(a[p]=d[p]);});})(l,t,s,0),s}function pe(l,t){let e=l.length;for(;e--;)if(l[e]===t){l.splice(e,1);break}}function Y(l,t){let e;for(e in l||(l={}),t)l[e]=t[e];return l}function _n(l,t){let e=function(){};return e.prototype=new l,Y(e.prototype,t),e}function D(l,t,e,i){if(e=e||{},ki?.createEvent&&(l.dispatchEvent||l.fireEvent&&l!==T)){let s=ki.createEvent("Events");s.initEvent(t,!0,!0),e=Y(s,e),l.dispatchEvent?l.dispatchEvent(e):l.fireEvent(t,e);}else if(l.hcEvents){e.target||Y(e,{preventDefault:function(){e.defaultPrevented=!0;},target:l,type:t});let s=[],n=l,o=!1;for(;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[t]&&(s.length&&(o=!0),s.unshift.apply(s,n.hcEvents[t])),n=Object.getPrototypeOf(n);o&&s.sort((r,a)=>r.order-a.order),s.forEach(r=>{r.fn.call(l,e,l)===!1&&e.preventDefault();});}i&&!e.defaultPrevented&&i.call(l,e);}let Vt=(l="")=>({center:.5,right:1,middle:.5,bottom:1})[l]||0;function Ls(l,t){let e,i,s,n,o=!t;return l.forEach(r=>{if(r.length>1)for(n=i=r.length-1;n>0;n--)(s=r[n]-r[n-1])<0&&!o?(t?.(),t=void 0):s&&(e===void 0||s<e)&&(e=s);}),e}function Is(l){return Math.pow(10,Math.floor(Math.log(l)/Math.LN10))}function _i(l,t){let e=l.split(".");for(;e.length&&B(t);){let i=e.shift();if(i===void 0||i==="__proto__")return;if(i==="this"){let n;return ht(t)&&(n=t["@this"]),n??t}let s=t[i.replace(/[\\'"]/g,"")];if(!B(s)||typeof s=="function"||typeof s.nodeType=="number"||s===wi)return;t=s;}return t}function we(l,t,e){let i;if(t==="width"){let n=Math.min(l.offsetWidth,l.scrollWidth),o=l.getBoundingClientRect?.().width;return o<n&&o>=n-1&&(n=Math.floor(o)),Math.max(0,n-(we(l,"padding-left",!0)||0)-(we(l,"padding-right",!0)||0))}if(t==="height")return Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(we(l,"padding-top",!0)||0)-(we(l,"padding-bottom",!0)||0));let s=wi.getComputedStyle(l,void 0);return s&&(i=s.getPropertyValue(t),_(e,t!=="opacity")&&(i=vt(i))),i}let Oe=Array.prototype.find?function(l,t){return l.find(t)}:function(l,t){let e,i=l.length;for(e=0;e<i;e++)if(t(l[e],e))return l[e]};function Bs(l){B(l)&&clearTimeout(l);}function Ns(l){return ht(l)&&typeof l.nodeType=="number"}function Tn(l){let t=l?.constructor;return !!(ht(l,!0)&&!Ns(l)&&t?.name&&t.name!=="Object")}function S(l){return typeof l=="number"&&!isNaN(l)&&l<1/0&&l>-1/0}function lt(l){return typeof l=="string"}function ft(l){let t=Object.prototype.toString.call(l);return t==="[object Array]"||t==="[object Array Iterator]"}function $e(l){return typeof l=="function"}function ht(l,t){return !!l&&typeof l=="object"&&(!t||!ft(l))}function X(l,...t){let e,i=[l,...t],s={},n=function(r,a){return typeof r!="object"&&(r={}),tt(a,function(h,d){d!=="__proto__"&&d!=="constructor"&&(!ht(h,!0)||Tn(h)||Ns(h)?r[d]=a[d]:r[d]=n(r[d]||{},h));}),r};l===!0&&(s=i[1],i=Array.prototype.slice.call(i,2));let o=i.length;for(e=0;e<o;e++)s=n(s,i[e]);return s}function Ti(l,t,e,i,s){let n,o=l;e=_(e,Is(l));let r=l/e;for(!t&&(t=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(e===1?t=t.filter(function(a){return a%1==0}):e<=.1&&(t=[1/e]))),n=0;n<t.length&&(o=t[n],(!s||!(o*e>=l))&&(s||!(r<=(t[n]+(t[n+1]||t[n]))/2)));n++);return xt(o*e,-Math.round(Math.log(.001)/Math.LN10))}function tt(l,t,e){for(let i in l)Object.hasOwnProperty.call(l,i)&&t.call(e||l[i],l[i],i,l);}function Sn(l){let t=ki.documentElement,e=l.parentElement||l.parentNode?l.getBoundingClientRect():{top:0,left:0,width:0,height:0};return {top:e.top+(wi.pageYOffset||t.scrollTop)-(t.clientTop||0),left
1:e.left+(wi.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}}function _e(l,t,e){return Array((t||2)+1-String(l).replace("-","").length).join(e||"0")+l}function _(){let l=arguments,t=l.length;for(let e=0;e<t;e++){let i=l[e];if(i!=null)return i}}function vt(l,t){return parseInt(l,t||10)}function me(l,t){return 0>l.indexOf(t)&&!!l.push(t)}function Ft(l,t,e){return /%$/.test(l)?t*parseFloat(l)/100+(e||0):parseFloat(l)}function An(l,...t){let e,i;do for(i of(e=l,t))l=l.replace(i[0],i[1]);while(l!==e);return l}function ge(l,t,e){function i(o,r){let a=l.removeEventListener;a&&a.call(l,o,r,!1);}function s(o){let r,a;l.nodeName&&(t?(r={})[t]=!0:r=o,tt(r,function(h,d){if(o[d])for(a=o[d].length;a--;)i(d,o[d][a].fn);}));}let n=typeof l=="function"&&l.prototype||l;if(Object.hasOwnProperty.call(n,"hcEvents")){let o=n.hcEvents;if(t){let r=o[t]||[];e?(o[t]=r.filter(function(a){return e!==a.fn}),i(t,e)):(s(o),o[t]=[]);}else s(o),delete n.hcEvents;}}function jt(l){return ft(l)?l:[l]}function pi(l,t){let e,i,s=l.length;for(i=0;i<s;i++)l[i].safeI=i;for(l.sort(function(n,o){return (e=t(n,o))===0?n.safeI-o.safeI:e}),i=0;i<s;i++)delete l[i].safeI;}function ue(l,t,e){return t>0?setTimeout(l,t,e):(l.call(0,e),-1)}function Dn(l){return lt(l)?l.substring(0,1).toUpperCase()+l.substring(1):String(l)}let{charts:Pa,win:Rs}=T;function Ot(l,t,e,i){let s=t?"Highcharts error":"Highcharts warning";l===32&&(l=`${s}: Deprecated member`);let n=S(l),o=n?`${s} #${l}: www.highcharts.com/errors/${l}/`:l.toString();if(i!==void 0){let r="";n&&(o+="?"),tt(i,function(a,h){r+=` 2 - ${h}: ${a}`,n&&(o+=encodeURI(h)+"="+encodeURI(a));}),o+=r;}D(T,"displayError",{chart:e,code:l,message:o,params:i},function(){if(t)throw Error(o);Rs.console&&Ot.messages.indexOf(o)===-1&&console.warn(o);}),Ot.messages.push(o);}function Si(l,t){let e,i=l.options.index,s=t.length;for(e=l.options.isInternal?s:0;e<s+1;e++)if(!t[e]||S(i)&&i<_(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,l);break}return e}(Ot||(Ot={})).messages=[];let gt={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(l){return -.5*(Math.cos(Math.PI*l)-1)};let le=(A=Math.random().toString(36).substring(2,9)+"-",E=0,function(){return "highcharts-"+(C?"":A)+E++});Rs.jQuery&&(Rs.jQuery.fn.highcharts=function(){let l=[].slice.call(arguments);if(this[0])return l[0]?(new T[lt(l[0])?l.shift():"Chart"](this[0],l[0],l[1]),this):Pa[Gt(this[0],"data-highcharts-chart")]});let{pageLang:ka,win:Ai}=T,wa=T.isSafari&&Ai.Intl&&!Ai.Intl.DateTimeFormat.prototype.formatRange,Oa=class{constructor(l,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ai.Date,this.update(l),this.lang=t;}update(l={}){this.dTLCache={},this.options=l=X(!0,this.options,l);let{timezoneOffset:t,useUTC:e,locale:i}=l;this.Date=l.Date||Ai.Date||Date;let s=l.timezone;B(e)&&(s=e?"UTC":void 0),t&&t%60==0&&(s="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=s!=="UTC"&&s?.indexOf("Etc/GMT")!==0,this.timezone=s,this.lang&&i&&(this.lang.locale=i),["months","shortMonths","weekdays","shortWeekdays"].forEach(n=>{let o=/months/i.test(n),r=/short/.test(n),a={timeZone:"UTC"};a[o?"month":"weekday"]=r?"short":"long",this[n]=(o?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(h=>this.dateFormat(a,(o?31:1)*24*36e5*h));});}toParts(l){let[t,e,i,s,n,o,r]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},l,"es").split(/(?:, | |\/|:)/g);return [s,i-1,e,n,o,r,Math.floor(Number(l)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(l,t,e=this.options.locale||ka){let i=JSON.stringify(l)+e;lt(l)&&(l=this.str2dtf(l));let s=this.dTLCache[i];if(!s){l.timeZone??(l.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,l);}catch(n){/Invalid time zone/i.test(n.message)?(Ot(34),l.timeZone="UTC",s=new Intl.DateTimeFormat(e,l)):Ot(n.message,!1);}}return this.dTLCache[i]=s,s?.format(t)||""}str2dtf(l,t={}){let e={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(e).forEach(i=>
2{l.indexOf(i)!==-1&&Y(t,e[i]);}),t}makeTime(l,t,e=1,i=0,s,n,o){let r=this.Date.UTC(l,t,e,i,s||0,n||0,o||0);if(this.timezone!=="UTC"){let a=this.getTimezoneOffset(r);if(r+=a,[2,3,8,9,10,11].indexOf(t)!==-1&&(i<5||i>20)){let h=this.getTimezoneOffset(r);a!==h?r+=h-a:a-36e5!==this.getTimezoneOffset(r-36e5)||wa||(r-=36e5);}}return r}parse(l){if(!lt(l))return l??void 0;let t=(l=l.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(l),e=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(l);t||e||(l+="Z");let i=Date.parse(l);if(S(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(l){if(this.timezone!=="UTC"){let[t,e,i,s,n=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},l,"en").split(/(GMT|:)/).map(Number),o=-(60*(i+n/60)*6e4);if(S(o))return o}return 0}dateFormat(l,t,e){let i=this.lang;if(!B(t)||isNaN(t))return i?.invalidDate||"";if(lt(l=l??"%Y-%m-%d %H:%M:%S")){let s,n=/%\[([a-zA-Z]+)\]/g;for(;s=n.exec(l);)l=l.replace(s[0],this.dateTimeFormat(s[1],t,i?.locale));}if(lt(l)&&l.indexOf("%")!==-1){let s=this,[n,o,r,a,h,d,c,p]=this.toParts(t),m=i?.weekdays||this.weekdays,y=i?.shortWeekdays||this.shortWeekdays,u=i?.months||this.months,g=i?.shortMonths||this.shortMonths;tt(Y({a:y?y[p]:m[p].substr(0,3),A:m[p],d:_e(r),e:_e(r,2," "),w:p,v:i?.weekFrom??"",b:g[o],B:u[o],m:_e(o+1),o:o+1,y:n.toString().substr(2,2),Y:n,H:_e(a),k:a,I:_e(a%12||12),l:a%12||12,M:_e(h),p:a<12?"AM":"PM",P:a<12?"am":"pm",S:_e(d),L:_e(c,3)},T.dateFormats),function(f,x){if(lt(l))for(;l.indexOf("%"+x)!==-1;)l=l.replace("%"+x,typeof f=="function"?f.call(s,t,s):f);});}else if(ht(l)){let s=(this.getTimezoneOffset(t)||0)/36e5,n=this.timezone||"Etc/GMT"+(s>=0?"+":"")+s,{prefix:o="",suffix:r=""}=l;l=o+this.dateTimeFormat(Y({timeZone:n},l),t)+r;}return e?Dn(l):l}resolveDTLFormat(l){return ht(l,!0)?ht(l,!0)&&l.main===void 0?{main:l}:l:{main:(l=jt(l))[0],from:l[1],to:l[2]}}getDateFormat(l,t,e,i){let s=this.dateFormat("%m-%d %H:%M:%S.%L",t),n="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},r="millisecond",a=r;for(r in gt){if(l&&l===gt.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===n.substr(6)){r="week";break}if(l&>[r]>l){r=a;break}if(o[r]&&s.substr(o[r])!==n.substr(o[r]))break;r!=="week"&&(a=r);}return this.resolveDTLFormat(i[r]).main}},zs=class extends Oa{getTimeTicks(l,t,e,i){let s=this,n=[],o={},{count:r=1,unitRange:a}=l,[h,d,c,p,m,y]=s.toParts(t),u=(t||0)%1e3,g;if(i??(i=1),B(t)){if(u=a>=gt.second?0:r*Math.floor(u/r),a>=gt.second&&(y=a>=gt.minute?0:r*Math.floor(y/r)),a>=gt.minute&&(m=a>=gt.hour?0:r*Math.floor(m/r)),a>=gt.hour&&(p=a>=gt.day?0:r*Math.floor(p/r)),a>=gt.day&&(c=a>=gt.month?1:Math.max(1,r*Math.floor(c/r))),a>=gt.month&&(d=a>=gt.year?0:r*Math.floor(d/r)),a>=gt.year&&(h-=h%r),a===gt.week){r&&(t=s.makeTime(h,d,c,p,m,y,u));let b=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),M="DLMXJVS".indexOf(b);c+=-M+i+(M<i?-7:0);}t=s.makeTime(h,d,c,p,m,y,u),s.variableTimezone&&B(e)&&(g=e-t>4*gt.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,x=1;for(;f<e;)n.push(f),a===gt.year?f=s.makeTime(h+x*r,0):a===gt.month?f=s.makeTime(h,d+x*r):g&&(a===gt.day||a===gt.week)?f=s.makeTime(h,d,c+x*r*(a===gt.day?1:7)):g&&a===gt.hour&&r>1?f=s.makeTime(h,d,c,p+x*r):f+=a*r,x++;
2n.push(f),a<=gt.hour&&n.length<1e4&&n.forEach(b=>{b%18e5==0&&s.dateFormat("%H%M%S%L",b)==="000000000"&&(o[b]="day");});}return n.info=Y(l,{higherRanks:o,totalRange:a*r}),n}},{isTouchDevice:_a}=T,Te={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:l=>Math.sqrt(1-Math.pow(l-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:_a?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},Hs=new zs(Te.time,Te.lang),he={defaultOptions:Te,defaultTime:Hs,getOptions:function(){return Te},setOptions:function(l){return D(T,"setOptions",{options:l}),X(!0,Te,l),l.time&&Hs.update(Te.time),l.lang&&"locale"in l.lang&&Hs.update({locale:l.lang.locale}),l.lang?.chartTitle&&(Te.title=G(F({},Te.title),{text:l.lang.chartTitle})),Te}},{win:Ta}=T,En=(l,t,e)=>`color-mix(in srgb,${l},${t} ${100*e}%)`,Ws=l=>lt(l)&&!!l&&l!=="none";class Mt{static parse(t){return t?new Mt(t):Mt.None}constructor(t){let e,i,s,n;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let o=T.Color;if(o&&o!==Mt)return new o(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(r=>new Mt(r[1]));else if(typeof t=="string")for(this.input=t=Mt.names[t.toLowerCase()]||t,s=Mt.parsers.length;s--&&!i;)(e=(n=Mt.parsers[s]).regex.exec(t))&&(i=n.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=X(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((n,o)=>{s.stops[o]=[s.stops[o][0],n.get(t)];}),s}return i&&S(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(S(t)&&t!==0)if(S(e[0]))for(let i=0;i<3;i++)e[i]+=vt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else Mt.useColorMix&&Ws(this.input)&&(this.output=En(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!S(i[0])||!S(s[0]))return Mt.useColorMix&&Ws(this.input)&&Ws(t.input)&&e<.99?En(this.input,t.input,e):t.input||"none";let n=s[3]!==1||i[3]!==1,o=(a,h)=>a+(i[h]-a)*(1-e),r=s.slice(0,3).map(o).map(Math.round);return n&&r.push(o(s[3],3)),(n?"rgba(":"rgb(")+r.join(",")+")"}}Mt.names={white:"#ffffff",black:"#000000"},Mt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(l){return [vt(l[1]),vt(l[2]),vt(l[3]),parseFloat(l[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(l){return [vt(l[1]),vt(l[2]),vt(l[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(l){return [vt(l[1]+l[1],16),vt(l[2]+l[2],16),vt(l[3]+l[3],16),B(l[4])?vt(l[4]+l[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(l){return [vt(l[1],16),vt(l[2],16),vt(l[3],16),B(l[4])?vt(l[4],16)/255:1]}}],Mt.useColorMix=Ta.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),Mt.None=new Mt("");let{parse:Ln}=Mt,{win:Sa}=T;class Zt{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,n=[];if(s!==1&&e&&i)if(e.length===i.length&&s<1)for(let o=0;o<i.length;o++){let r=e[o],a=i[o],h=[];for(let d=0;d<a.length;d++){let c=r[d],p=a[d];S(c)&&S(p)&&(a[0]!=="A"||d!==4&&d!==5)?h[d]=c+s*(p-c):h[d]=p;}n.push(h);}else n=i;else n=this.toD||[];this.elem.attr("d",n,void 0,!0);}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this);}run(t,e,i){let s=this,n=s.options,o=function(h){return !o.stopped&&s.step(h)},r=Sa.requestAnimationFrame||function(h){setTimeout(h,13);},a=function(){for(let h=0;h<Zt.timers.length;h++)Zt.timers[h]()||Zt.timers.splice(h--,1);
2Zt.timers.length&&r(a);};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&Zt.timers.push(o)===1&&r(a)):(delete n.curAnim[this.prop],n.complete&&Object.keys(n.curAnim).length===0&&n.complete.call(this.elem));}step(t){let e,i,s=+new Date,n=this.options,o=this.elem,r=n.complete,a=n.duration,h=n.curAnim;return o.attr&&!o.element?e=!1:t||s>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,tt(h,function(d){d!==!0&&(i=!1);}),i&&r&&r.call(o),e=!1):(this.pos=n.easing((s-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,n=t.endX,o=i.slice(),r=t.isArea,a=r?2:1,h=e&&i.length>e.length&&i.hasStackedCliffs,d,c,p,m,y=e?.slice();if(!y||h)return [o,o];function u(f,x){for(;f.length<c;){let b=f[0],M=x[c-f.length];if(M&&b[0]==="M"&&(M[0]==="C"?f[0]=["C",b[1],b[2],b[1],b[2],b[1],b[2]]:f[0]=["L",b[1],b[2]]),f.unshift(b),r){let v=f.pop();f.push(f[f.length-1],v);}}}function g(f){for(;f.length<c;){let x=f[Math.floor(f.length/a)-1].slice();if(x[0]==="C"&&(x[1]=x[5],x[2]=x[6]),r){let b=f[Math.floor(f.length/a)].slice();f.splice(f.length/2,0,x,b);}else f.push(x);}}if(s&&n&&n.length){for(p=0;p<s.length;p++)if(s[p]===n[0]){d=p;break}else if(s[0]===n[n.length-s.length+p]){d=p,m=!0;break}else if(s[s.length-1]===n[n.length-s.length+p]){d=s.length-p;break}d===void 0&&(y=[]);}return y.length&&S(d)&&(c=o.length+d*a,m?(u(y,o),g(o)):(u(o,y),g(y))),[y,o]}fillSetter(){Zt.prototype.strokeSetter.apply(this,arguments);}strokeSetter(){this.elem.attr(this.prop,Ln(this.start).tweenTo(Ln(this.end),this.pos),void 0,!0);}}function Gs(l){return ht(l)?X({duration:500,defer:0},l):{duration:500*!!l,defer:0}}function In(l,t){let e=Zt.timers.length;for(;e--;)Zt.timers[e].elem!==l||t&&t!==Zt.timers[e].prop||(Zt.timers[e].stopped=!0);}Zt.timers=[];let Xt={animate:function(l,t,e){let i,s="",n,o,r;ht(e)||(r=arguments,e={duration:r[2],easing:r[3],complete:r[4]}),S(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=X(t),tt(t,function(a,h){In(l,h),o=new Zt(l,e,h),n=void 0,h==="d"&&ft(t.d)?(o.paths=o.initPath(l,l.pathArray,t.d),o.toD=t.d,i=0,n=1):l.attr?i=l.attr(h):(i=parseFloat(we(l,h))||0,h!=="opacity"&&(s="px")),n||(n=a),typeof n=="string"&&n.match("px")&&(n=n.replace(/px/g,"")),o.run(i,n,s);});},animObject:Gs,getDeferredAnimation:function(l,t,e){let i=Gs(t),s=e?[e]:l.series,n=0,o=0;return s.forEach(r=>{let a=Gs(r.options.animation);n=ht(t)&&B(t.defer)?i.defer:Math.max(n,a.duration+a.defer),o=Math.min(i.duration,a.duration);}),l.renderer.forExport&&(n=0),{defer:Math.max(0,n-o),duration:Math.min(n,o)}},setAnimation:function(l,t){t.renderer.globalAnimation=_(l,t.options.chart.animation,!0);},stop:In},{SVG_NS:Bn,win:Aa}=T,{trustedTypes:Fs}=Aa,Di=Fs&&$e(Fs.createPolicy)&&Fs.createPolicy("highcharts",{createHTML:l=>l}),Da=Di?Di.createHTML(""):"";class bt{static filterUserAttributes(t){return tt(t,(e,i)=>{let s=!0;bt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=lt(e)&&bt.allowedReferences.some(n=>e.indexOf(n)===0)),s||(Ot(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),lt(e)&&t[i]&&(t[i]=e.replace(/</g,"<"));}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map(o=>o.trim()),n=s.shift();return n&&s.length&&(e[n.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=bt.emptyHTML,e&&new bt(e).addToDOM(t);}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t;}addToDOM(t){return (function e(i,s){let n;return jt(i).forEach(function(o){let r,a=o.tagName,h=o.textContent?T.doc.createTextNode(o.textContent):void 0,d=bt.bypassHTMLFiltering;if(a)if(a==="#text")r=h;else if(bt.allowedTags.indexOf(a)!==-1||d){let c=a==="svg"?Bn:s.namespaceURI||Bn,p=T.doc.createElementNS(c,a),m=o.attributes||{};tt(o,function(y,u){u!=="tagName"&&u!=="attributes"&&u!=="children"&&u!=="style"&&u!=="textContent"&&(m[u]=y);}),Gt(p,d?m:bt.filterUserAttributes(m)),o.style&&nt(p,o.style),h&&p.appendChild(h),e(o.children||[],p),r=p;}else Ot(33,!1,void 0,{"Invalid tagName in config":a});r&&s.appendChild(r),n=r;}),n})(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(Di?Di.createHTML(t):t,"text/html");}catch{try{e=new DOMParser().parseFromString(t,"text/html");}catch{}}e||((e=T.doc.implementation.createHTMLDocument("")).body.innerHTML=t);let s=(n,o)=>{let r=n.nodeName.toLowerCase(),a={tagName:r};r==="#text"&&(a.textContent=n.textContent||"");let h=n.attributes;if(h){let d={};[].forEach.call(h,c=>{c.name==="data-style"?a.style=bt.parseStyle(c.value):d[c.name]=c.value;}),a.attributes=d;}if(n.childNodes.length){let d=[];[].forEach.call(n.childNodes,c=>{s(c,d);}),d.length&&(a.children=d);}o.push(a);};return [].forEach.call(e.body.childNodes,n=>s(n,i)),i}}bt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","
2scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],bt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],bt.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],bt.emptyHTML=Da,bt.bypassHTMLFiltering=!1;let{defaultOptions:Nn,defaultTime:Rn}=he,{pageLang:Ea}=T,Ei={add:(l,t)=>l+t,divide:(l,t)=>t!==0?l/t:"",eq:(l,t)=>l==t,each:function(l){let t=arguments[arguments.length-1];return !!ft(l)&&l.map((e,i)=>Li(t.body,Y(ht(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===l.length-1}))).join("")},ge:(l,t)=>l>=t,gt:(l,t)=>l>t,if:l=>!!l,le:(l,t)=>l<=t,lt:(l,t)=>l<t,multiply:(l,t)=>l*t,ne:(l,t)=>l!=t,subtract:(l,t)=>l-t,ucfirst:Dn,unless:l=>!l},zn={};function Li(l="",t,e){let i=RegExp(`\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'\u2019= #\\(\\)]+)\\}`,"gu"),s=RegExp(`\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'= ]+)\\)`,"gu"),n=[],o=/f$/,r=/\.(\d)/,a=e?.options?.lang||Nn.lang,h=e?.time||Rn,d=e?.numberFormatter||Hn.bind(e),c=(g="")=>{let f;return g==="true"||g!=="false"&&((f=Number(g)).toString()===g?f:/^["'].+["']$/.test(g)?g.slice(1,-1):_i(g,t))},p,m,y=0,u;for(;(p=i.exec(l))!==null;){let g=p,f=s.exec(p[1]);f&&(p=f,u=!0),m?.isBlock||(m={ctx:t,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 x=(m.isBlock?g:p)[1].split(" ")[0].replace("#","");Ei[x]&&(m.isBlock&&x===m.fn&&y++,m.fn||(m.fn=x));let b=p[1]==="else";if(m.isBlock&&m.fn&&(p[1]===`/${m.fn}`||b))if(y)!b&&y--;else {let M=m.startInner,v=l.substr(M,p.index-M);m.body===void 0?(m.body=v,m.startInner=p.index+p[0].length):m.elseBody=v,m.find+=v+p[0],b||(n.push(m),m=void 0);}else m.isBlock||n.push(m);if(f&&!m?.isBlock)break}return n.forEach(g=>{let f,x,{body:b,elseBody:M,expression:v,fn:P}=g;if(P){let k=[g],w=[],I=v.length,N=0,L;for(x=0;x<=I;x++){let W=v.charAt(x);L||W!=='"'&&W!=="'"?L===W&&(L=""):L=W,L||W!==" "&&x!==I||(w.push(v.substr(N,x-N)),N=x+1);}for(x=Ei[P].length;x--;)k.unshift(c(w[x+1]));f=Ei[P].apply(t,k),g.isBlock&&typeof f=="boolean"&&(f=Li(f?b:M,t,e));}else {let k=/^["'].+["']$/.test(v)?[v]:v.split(":");if(f=c(k.shift()||""),k.length&&typeof f=="number"){let w=k.join(":");if(o.test(w)){let I=parseInt((w.match(r)||["","-1"])[1],10);f!==null&&(f=d(f,I,a.decimalPoint,w.indexOf(",")>-1?a.thousandsSep:""));}else f=h.dateFormat(w,f);}s.lastIndex=0,s.test(g.find)&<(f)&&(f=`"${f}"`);}l=l.replace(g.find,_(f,""));}),u?Li(l,t,e):l}function Hn(l,t,e,i){t*=1;let s,n,[o,r]=(l=+l||0).toString().split("e").map(Number),a=this?.options?.lang||Nn.lang,h=(l.toString().split(".")[1]||"").split("e")[0].length,d=t,c={};e??(e=a.decimalPoint),i??(i=a.thousandsSep),t===-1?t=Math.min(h,20):S(t)?t&&r<0&&((n=t+r)>=0?(o=+o.toExponential(n).split("e")[0],t=n):(o=Math.floor(o),l=t<20?+(o*Math.pow(10,r)).toFixed(t):0,r=0)):t=2,r&&(t??(t=2),l=o),S(t)&&t>=0&&(c.minimumFractionDigits=t,c.maximumFractionDigits=t),i===""&&(c.useGrouping=!1);let p=i||e,m=p?"en":this?.locale||a.locale||Ea,y=JSON.stringify(c)+m;return s=(zn[y]??(zn[y]=new Intl.NumberFormat(m,c))).format(l),p&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",e??".")),(t||+s!=0)&&(!(r<0)||d)||(s="0"),r&&+s!=0&&(s+="e"+(r<0?"":"+")+r),s}let ce={dateFormat:function(l,t,e){return Rn.dateFormat(l,t,e)},format:Li,helpers:Ei,numberFormat:Hn};(U=ys||(ys={})).rendererTypes={},U.getRendererType=function(l=R){return U.rendererTypes[l]||U.rendererTypes[R]}
2,U.registerRendererType=function(l,t,e){U.rendererTypes[l]=t,(!R||e)&&(R=l,T.Renderer=t);};let mi=ys;(xs||(xs={})).distribute=function l(t,e,i){let s=t,n=s.reducedLen||e,o=(g,f)=>g.target-f.target,r=[],a=t.length,h=[],d=r.push,c,p=!0,m,y,u=0;for(c=a;c--;)u+=t[c].size;if(u>n){if(pi(t,(g,f)=>(f.rank||0)-(g.rank||0)),t[0].rank===t[t.length-1].rank){let g=[[0,a-1]];for(;g.length&&u>n;){let f=g.shift();if(!f)break;m=t[c=Math.floor((f[0]+f[1])/2)],me(h,c)&&(u-=m.size),f[0]<c&&g.push([f[0],c-1]),c<f[1]&&g.push([c+1,f[1]]);}}else for(c=a-1;u>n&&c>=0;)m=t[c],me(h,c)&&(u-=m.size),c--;h.sort((g,f)=>f-g).forEach(g=>d.apply(r,t.splice(g,1)));}for(pi(t,o),t=t.map(g=>({size:g.size,targets:[g.target],align:_(g.align,.5)}));p;){for(c=t.length;c--;)m=t[c],y=(Math.min.apply(0,m.targets)+Math.max.apply(0,m.targets))/2,m.pos=kt(y-m.size*m.align,0,e-m.size);for(c=t.length,p=!1;c--;)c>0&&t[c-1].pos+t[c-1].size>t[c].pos&&(t[c-1].size+=t[c].size,t[c-1].targets=t[c-1].targets.concat(t[c].targets),t[c-1].align=.5,t[c-1].pos+t[c-1].size>e&&(t[c-1].pos=e-t[c-1].size),t.splice(c,1),p=!0);}return d.apply(s,r),c=0,t.some(g=>{let f=0;return (g.targets||[]).some(()=>(s[c].pos=g.pos+f,i!==void 0&&Math.abs(s[c].pos-s[c].target)>i?(s.slice(0,c+1).forEach(x=>delete x.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&l(s,e,i),!0):(f+=s[c].size,c++,!1)))}),pi(s,o),s};let Ii=xs,{animate:La,animObject:Ia,stop:Wn}=Xt,{deg2rad:Gn,doc:Ue,svg:Ba,SVG_NS:Bi,win:Na,isFirefox:Ra}=T;class Et{_defaultGetter(t){let e=_(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,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,n){return i.indexOf(n)===-1&&s.push(n),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 n=this.renderer,o=n.alignedObjects,r=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let a=!i||lt(i)?i||"renderer":void 0;a&&(r&&me(o,this),i=void 0);let h=_(i,n[a],n),d=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*Vt(t.align),c=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*Vt(t.verticalAlign),p={};return t.align&&(p["text-align"]=t.align),p[e?"translateX":"x"]=Math.round(d),p[e?"translateY":"y"]=Math.round(c),s&&(this[this.placed?"animate":"attr"](p),this.placed=!0),this.alignAttr=p,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=Ia(_(e,this.renderer.globalAnimation,!0)),n=s.defer;return Ue.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),ue(()=>{this.element&&La(this,t,s);},n)):(this.attr(t,void 0,i||s.complete),tt(t,function(o,r){s.step&&s.step.call(this,o,{prop:r,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),n=t.substring(0,i);if(n&&n!=="none"&&T.svg){this.fakeTS=!0,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(d,c,p){return 2*Number(c)+p}),this.removeTextOutline();let o=Ue.createElementNS(Bi,"tspan");Gt(o,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":n,"stroke-linejoin":"round"});let r=e.querySelector("textPath")||e;[].forEach.call(r.childNodes,d=>{let c=d.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(p=>c.removeAttribute(p)),o.appendChild(c);});let a=0;[].forEach.call(r.querySelectorAll("text tspan"),d=>{a+=Number(d.getAttribute("dy"));});let h=Ue.createElementNS(Bi,"tspan");h.textContent="\u200B",Gt(h,{x:Number(e.getAttribute("x")),dy:-a}),o.appendChild(h),r.insertBefore(o,r.firstChild);}}attr(t,e,i,s){let{element:n}=this,o=Et.symbolCustomAttribs,r,a,h=this,d;return typeof t=="string"&&e!==void 0&&(r=t,(t={})[r]=e),typeof t=="string"?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,n):(tt(t,function(c,p){d=!1,s||Wn(this,p),this.symbolName&&o.indexOf(p)!==-1&&(a||(this.symbolAttr(t),a=!0),d=!0),this.rotation&&(p==="x"||p==="y")&&(this.doTransform=!0),d||(this[p+"Setter"]||this._defaultSetter).call(this,c,p,n);},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=le()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);Y(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,n=(t.width||this.width||0)+i,o=(t.height||this.height||0)+s,r=ae(i,e),a=ae(s,e);return Y(t,{x:r,y:a,width:ae(n,e)-r,height:ae(o,e)-a}),B(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,n,o,r,a,h,d,c,p,m,y,u=[],g;D(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(r=t[o],h=s.gradients,d=t.stops,m=i.radialReference,ft(r)&&(t[o]=r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),o==="radialGradient"&&m&&!B(r.gradientUnits)&&(a=r,r=X(r,s.getRadialAttr(m,a),{gradientUnits:"userSpaceOnUse"})),tt(r,function(f,x){x!=="id"&&u.push(x,f);}),tt(d,function(f){u.push(f);}),h[u=u.join(",")])y=h[u].attr("id");else {r.id=y=le();let f=h[u]=s.createElement(o).attr(r).add(s.defs);f.radAttr=a,f.stops=[],d.forEach(function(x){x[1].indexOf("rgba")===0?(c=(n=Mt.parse(x[1])).get("rgb"),p=n.get("a")):(c=x[1],p=1);let b=s.createElement("stop").attr({offset:x[0],"stop-color":c,"stop-opacity":p}).add(f);f.stops.push(b);});}g="url("+s.url+"#"+y+")",i.setAttribute(e,g),i.gradient=u,t.toString=function(){return g};}});}css(t){let e=this.styles,i={},s=this.element,n,o=!e;if(e&&tt(t,function(r,a){e&&e[a]!==r&&(i[a]=r,o=!0);}),o){e&&(t=Y(e,i)),t.width===null||t.width==="auto"?delete this.textWidth:s.nodeName.toLowerCase()==="text"&&t.width&&(n=this.textWidth=vt(t.width)),Y(this.styles,t),n&&!B
2a&&this.renderer.forExport&&delete t.width;let r=Ra&&t.fontSize||null;r&&(S(r)||/^\d+$/.test(r))&&(t.fontSize+="px");let a=X(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(h=>a&&delete a[h]),a.color&&(a.fill=a.color,delete a.color)),nt(s,a);}return this.added&&(this.element.nodeName==="text"&&this.renderer.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]=""+vt(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,n=e.ownerSVGElement,o=e.nodeName==="SPAN"&&t.parentGroup||void 0,r;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,Wn(t),t.clipPath&&n){let a=t.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(h){h.getAttribute("clip-path").indexOf(a.element.id)>-1&&h.removeAttribute("clip-path");}),t.clipPath=a.destroy();}if(s){for(let a of s)a.destroy();s.length=0;}for(t.safeRemoveChild(e);o?.div&&o.div.childNodes.length===0;)r=o.parentGroup,t.safeRemoveChild(o.div),delete o.div,o=r;t.alignOptions&&pe(i.alignedObjects,t),tt(t,(a,h)=>{(t[h]?.parentGroup===t||["connector","foreignObject"].indexOf(h)!==-1)&&t[h]?.destroy?.(),delete t[h];});}dSetter(t,e,i){ft(t)&&(typeof t[0]=="string"&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((s,n,o)=>n?.join?(o?s+" ":"")+n.join(" "):(n||"").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,n,{element:o,renderer:r,styles:a,textStr:h}=this,{cache:d,cacheKeys:c}=r,p=o.namespaceURI===this.SVG_NS,m=_(e,this.rotation,0),y=r.styledMode?o&&Et.prototype.getStyle.call(o,"font-size"):a.fontSize,u=this.getBBoxCacheKey([r.rootFontSize,this.textWidth,this.alignValue,a.fontWeight,a.lineClamp,a.textOverflow,y,m]);if(u&&!t&&(i=d[u]),!i||i.polygon){if(p||r.forExport){try{n=this.fakeTS&&function(f){let x=o.querySelector(".highcharts-text-outline");x&&nt(x,{display:f});},$e(n)&&n("none"),i=o.getBBox?Y({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight,x:0,y:0},$e(n)&&n("");}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0});}else i=this.htmlGetBBox();s=i.height,p&&(i.height=s={"11px,17":14,"13px,20":16}[`${y||""},${Math.round(s)}`]||s),m&&(i=this.getRotatedBox(i,m));let g={bBox:i};D(this,"afterGetBBox",g),i=g.bBox;}if(u&&(h===""||i.height>0)){for(;c.length>250;)delete d[c.shift()];d[u]||c.push(u),d[u]=i;}return i}getBBoxCacheKey(t){if(B(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:n,height:o}=t,{alignValue:r,translateY:a,rotationOriginX:h=0,rotationOriginY:d=0}=this,c=Vt(r),p=Number(this.element.getAttribute("y")||0)-(a?0:s),m=e*Gn,y=(e-90)*Gn,u=Math.cos(m),g=Math.sin(m),f=n*u,x=n*g,b=Math.cos(y),M=Math.sin(y),[[v,P],[k,w]]=[h,d].map(K=>[K-K*u,K*g]),I=i+c*(n-f)+v+w+p*b,N=I+f,L=N-o*b,W=L-f,G=s+p-c*x-P+k+p*M,F=G+x,$=F-o*M,V=$-x,j=Math.min(I,N,L,W),ut=Math.min(G,F,$,V),mt=Math.max(I,N,L,W)-j,qt=Math.max(G,F,$,V)-ut;return {x:j,y:ut,width:mt,height:qt,polygon:[[I,G],[N,F],[L,$],[W,V]]}}getStyle(t){return Na.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=Bi,this.element=e==="span"||e==="body"?re(e):Ue.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},D(this,"afterInit");}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=J(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(lt(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=X(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},ht(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=vt(t):t!==""&&(Gt(i=Ue.createElementNS(Bi,"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;
2Et.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]||Ue.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=An(_(t,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/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,padding:n,rotation:o=0,rotationOriginX:r,rotationOriginY:a,scaleX:h,scaleY:d,text:c,translateX:p=0,translateY:m=0}=this,y=[`translate(${p},${m})`];B(s)&&y.push("matrix("+s.join(",")+")"),o&&(y.push("rotate("+o+" "+(r??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),c?.element.tagName!=="SPAN"||c?.foreignObject||c.attr({rotation:o,rotationOriginX:(r||0)-n,rotationOriginY:(a||0)-n})),(B(h)||B(d))&&y.push(`scale(${h??1} ${d??1})`),y.length&&!(c||this).textPath&&(i?.element||e).setAttribute(t,y.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 i=this.renderer,s=this.parentGroup,n=(s||i).element||i.box,o=this.element,r=n===i.box,a,h,d,c=!1,p,m=this.added,y;if(B(t)?(o.setAttribute("data-z-index",t),t*=1,this[e]===t&&(m=!1)):B(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,m){for((t=this.zIndex)&&s&&(s.handleZ=!0),y=(a=n.childNodes).length-1;y>=0&&!c;y--)p=!B(d=(h=a[y]).getAttribute("data-z-index")),h!==o&&(t<0&&p&&!r&&!y?(n.insertBefore(o,a[y]),c=!0):(vt(d)<=t||p&&(!B(t)||t>=0))&&(n.insertBefore(o,a[y+1]),c=!0));c||(n.insertBefore(o,a[3*!!r]),c=!0);}return c}}Et.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Et.prototype.strokeSetter=Et.prototype.fillSetter,Et.prototype.yGetter=Et.prototype.xGetter,Et.prototype.matrixSetter=Et.prototype.rotationOriginXSetter=Et.prototype.rotationOriginYSetter=Et.prototype.rotationSetter=Et.prototype.scaleXSetter=Et.prototype.scaleYSetter=Et.prototype.translateXSetter=Et.prototype.translateYSetter=Et.prototype.verticalAlignSetter=function(l,t){this[t]=l,this.doTransform=!0;};let ve=Et;class He extends ve{constructor(t,e,i,s,n,o,r,a,h,d){let c;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=o,this.anchorY=r,this.baseline=h,this.className=d,this.addClass(d==="button"?"highcharts-no-tooltip":"highcharts-label"),d&&this.addClass("highcharts-"+d),this.text=t.text(void 0,0,0,a).attr({zIndex:1}),typeof n=="string"&&((c=/^url\((.*?)\)$/.test(n))||this.renderer.symbols[n])&&(this.symbolKey=n),this.bBox=He.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||c,this.deferredAttr={},this.alignFactor=0;}alignSetter(t){let e=Vt(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&S(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=X(t),He.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();}return ve.prototype.css.call(this,t)}destroy(){ge(this.element,"mouseenter"),ge(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),ve.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:n=0,translateY:o=0,width:r=0}=this,a=_(this.paddingLeft,i),h=e??(this.rotation||0),d={width:r,height:s,x:n+this.bBox.x-a,y:o+this.bBox.y-i+this.baselineOffset};
2return h&&(d=this.getRotatedBox(d,h)),d}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);}onAdd(){this.text.add(this),this.attr({text:_(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY});}paddingSetter(t,e){S(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();}updateBoxSize(){let t,e=this.text,i={},s=this.padding,n=this.bBox=(!S(this.widthSetting)||!S(this.heightSetting)||this.textAlign)&&B(e.textStr)?e.getBBox(void 0,0):He.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*s;let o=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||o).b,n.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-o.h)/2),this.needsBox&&!e.textPath){if(!this.box){let r=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();r.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),r.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(Y(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)+Vt(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=S(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 Fn(l,t,e,i,s){let n=[];if(s){let o=s.start||0,r=s.end||0,a=_(s.r,e),h=_(s.r,i||e),d=1e-4>Math.abs(r-o-2*Math.PI);d&&(o=Math.PI/2,r=2.5*Math.PI-1e-4);let c=s.innerR,p=_(s.open,d),m=d?0:Math.cos(o),y=d?1:Math.sin(o),u=d?0:Math.cos(r),g=d?1:Math.sin(r),f=_(s.longArc,r-o-Math.PI<1e-4?0:1),x=["A",a,h,0,f,_(s.clockwise,1),l+(d?.001:a*u),t+h*g];x.params={start:o,end:r,cx:l,cy:t},n.push(["M",l+a*m,t+h*y],x),B(c)&&((x=["A",c,c,0,f,B(s.clockwise)?1-s.clockwise:0,l+(d?-.001:c*m),t+c*y]).params={start:r,end:o,cx:l,cy:t},n.push(p?["M",l+c*u,t+c*g]:["L",l+c*u,t+c*g],x)),p||n.push(["Z"]);}return n}function Xn(l,t,e,i,s){return s?.r?Xs(l,t,e,i,s):[["M",l,t],["L",l+e,t],["L",l+e,t+i],["L",l,t+i],["Z"]]}function Xs(l,t,e,i,s){let n=s?.r||0;return [["M",l+n,t],["L",l+e-n,t],["A",n,n,0,0,1,l+e,t+n],["L",l+e,t+i-n],["A",n,n,0,0,1,l+e-n,t+i],["L",l+n,t+i],["A",n,n,0,0,1,l,t+i-n],["L",l,t+n],["A",n,n,0,0,1,l+n,t],["Z"]]}He.emptyBBox={width:0,height:0,x:0,y:0},He.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let Yn={arc:Fn,callout:function(l,t,e,i,s){let n=Math.min(s?.r||0,e,i),o=n+6,r=s?.anchorX,a=s?.anchorY||0,h=Xs(l,t,e,i,{r:n});if(!S(r)||r<e&&r>0&&a<i&&a>0)return h;if(l+r>e-o)if(a>t+o&&a<t+i-o)h.splice(3,1,["L",l+e,a-6],["L",l+e+6,a],["L",l+e,a+6],["L",l+e,t+i-n]);else if(r<e){let d=a<t+o,c=d?t:t+i;h.splice(d?2:5,0,["L",r,a],["L",l+e-n,c]);}else h.splice(3,1,["L",l+e,i/2],["L",r,a],["L",l+e,i/2],["L",l+e,t+i-n]);else if(l+r<o)if(a>t+o&&a<t+i-o)h.splice(7,1,["L",l,a+6],["L",l-6,a],["L",l,a-6],["L",l,t+n]
2);else if(r>0){let d=a<t+o,c=d?t:t+i;h.splice(d?1:6,0,["L",r,a],["L",l+n,c]);}else h.splice(7,1,["L",l,i/2],["L",r,a],["L",l,i/2],["L",l,t+n]);else a>i&&r<e-o?h.splice(5,1,["L",r+6,t+i],["L",r,t+i+6],["L",r-6,t+i],["L",l+n,t+i]):a<0&&r>o&&h.splice(1,1,["L",r-6,t],["L",r,t-6],["L",r+6,t],["L",e-n,t]);return h},circle:function(l,t,e,i){return Fn(l+e/2,t+i/2,e/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(l,t,e,i){return [["M",l+e/2,t],["L",l+e,t+i/2],["L",l+e/2,t+i],["L",l,t+i/2],["Z"]]},rect:Xn,roundedRect:Xs,square:Xn,triangle:function(l,t,e,i){return [["M",l+e/2,t],["L",l+e,t+i],["L",l,t+i],["Z"]]},"triangle-down":function(l,t,e,i){return [["M",l,t],["L",l+e,t],["L",l+e/2,t+i],["Z"]]}},{doc:Ys,SVG_NS:za,win:Vn}=T,Vs=(l,t)=>l.substring(0,t)+"\u2026",Ha=class{constructor(l){let t=l.styles;this.renderer=l.renderer,this.svgElement=l,this.width=l.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow==="ellipsis",this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace==="nowrap";}buildSVG(){let l=this.svgElement,t=l.element,e=l.renderer,i=_(l.textStr,"").toString(),s=i.indexOf("<")!==-1,n=t.childNodes,o=!l.added&&e.box,r=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,l.getStyle("font-size"),l.styles.lineClamp,this.width].join(",");if(r!==l.textCache){l.textCache=r,delete l.actualWidth;for(let a=n.length;a--;)t.removeChild(n[a]);if(s||this.ellipsis||this.width||l.textPath||i.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(i))){if(i!==""){o&&o.appendChild(t);let a=new bt(i);this.modifyTree(a.nodes),a.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||"").indexOf("\u2026")!==-1&&l.attr("title",this.unescapeEntities(l.textStr||"",["<",">"])),o&&o.removeChild(t);}}else t.appendChild(Ys.createTextNode(this.unescapeEntities(i)));lt(this.textOutline)&&l.applyTextOutline&&l.applyTextOutline(this.textOutline);}}modifyDOM(){let l,t=this.svgElement,e=Gt(t.element,"x");for(t.firstLineMetrics=void 0;(l=t.element.firstChild)&&/^[\s\u200B]*$/.test(l.textContent||" ");)t.element.removeChild(l);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(o,r)=>{o.nextSibling&&o.previousSibling&&(r===0&&o.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(o.previousSibling)),Gt(o,{dy:this.getLineHeight(o.nextSibling),x:e}));});let i=this.width||0;if(!i)return;let s=(o,r)=>{let a=o.textContent||"",h=a.replace(/([^\^])-/g,"$1- ").split(" "),d=!this.noWrap&&(h.length>1||t.element.childNodes.length>1),c=this.getLineHeight(r),p=Math.max(0,i-.8*c),m=0,y=t.actualWidth;if(d){let u=[],g=[];for(;r.firstChild&&r.firstChild!==o;)g.push(r.firstChild),r.removeChild(r.firstChild);for(;h.length;)if(h.length&&!this.noWrap&&m>0&&(u.push(o.textContent||""),o.textContent=h.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,h,m===0&&y||0,i,p,(f,x)=>h.slice(0,x).join(" ").replace(/- /g,"-")),y=t.actualWidth,m++,this.lineClamp&&m>=this.lineClamp){h.length&&(this.truncate(o,o.textContent||"",void 0,0,i,p,Vs),o.textContent=o.textContent?.replace("\u2026","")+"\u2026");break}g.forEach(f=>{r.insertBefore(f,o);}),u.forEach(f=>{r.insertBefore(Ys.createTextNode(f),o);let x=Ys.createElementNS(za,"tspan");x.textContent="\u200B",Gt(x,{dy:c,x:e}),r.insertBefore(x,o);});}else this.ellipsis&&a&&this.truncate(o,a,void 0,0,i,p,Vs);},n=o=>{[].slice.call(o.childNodes).forEach(r=>{r.nodeType===Vn.Node.TEXT_NODE?s(r,o):(r.className.baseVal.indexOf("highcharts-br")!==-1&&(t.actualWidth=0),n(r));});};n(t.element);}getLineHeight(l){let t=l.nodeType===Vn.Node.TEXT_NODE?l.parentElement:l;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(l){let t=(e,i)=>{let{attributes:s={},children:n,style:o={},tagName:r}=e,a=this.renderer.styledMode;if(r==="b"||r==="strong"?a?s.class="highcharts-strong":o.fontWeight="bold":(r==="i"||r==="em")&&(a?s.class="highcharts-emphasized":o.fontStyle="italic"),o?.color&&(o.fill=o.color),r==="br"){s.class="highcharts-br",e.textContent="\u200B";let h=l[i+1];h?.textContent&&(h.textContent=h.textContent.replace(/^ +/gm,""));}else r==="a"&&n&&n.some(h=>h.tagName==="#text")&&(e.children=[{children:n,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(e.tagName="tspan"),Y(e,{attributes:s,style:o}),n&&n.filter(h=>h.tagName!=="#text").forEach(t);};l.forEach(t),D(this.svgElement,"afterModifyTree",{nodes:l});}truncate(l,t,e,i,s,n,o){let r,a,h=this.svgElement,{rotation:d}=h,c=[],p=e&&!i?1:0,m=(t||e||"").length,y=m;e||(s=n);let u=function(g,f){let x=f||g,b=l.parentNode;if(b&&c[x]===void 0&&b.getSubStringLength)try{c[x]=i+b.getSubStringLength(0,e?x+1:x);}catch{}return c[x]};if(h.rotation=0,i+(a=u(l.textContent.length))>s){for(;p<=m;)y=Math.ceil((p+m)/2),e&&(r=o(e,y)),a=u(y,r&&r.length-1),p===m?p=m+1:a>s?m=y-1:p=y;m===0?l.textContent="":t&&m===t.length-1||(l.textContent=r||o(t||e,y)),this.ellipsis&&a>s&&this.truncate(l,l.textContent||"",void 0,0,s,n,Vs);}e&&e.splice(0,y),h.actualWidth=a,h.rotation=d;}unescapeEntities(l,t){return tt(this.renderer.escapes,function(e,i){t&&t.indexOf(e)!==-1||(l=l.toString().replace(RegExp(e,"g"),i));}),l}},{defaultOptions:Wa}=he,{charts:Ga,deg2rad:jn,doc:Ze,isFirefox:$n,isMS:Un,isWebKit:Fa,noop:Xa,SVG_NS:Ya,symbolSizes:js,win:$s}=T;class Ni{constructor(t,e,i,s,n,o,r){let a,h;this.x=0,this.y=0;let d=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),c=d.element;r||d.css(this.getStyle(s||{})),t.appendChild(c),Gt(t,"dir","ltr"),t.innerHTML.indexOf("xmlns")===-1&&Gt(c,"xmlns",this.SVG_NS),this.box=c,this.boxWrapper=d,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Ze.createTextNode("Created with Highcharts 12.6.1")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=n,this.styledMode=r,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=d.getStyle("font-size"),this.setSize(e,i,!1),$n&&t.getBoundingClientRect&&((a=function(){nt(t,{left:0,top:0}),h=t.getBoundingClientRect(),nt(t,{left:Math.ceil(h.left)-h.left+"px",to
vendor: 4,109 bytes, line 2
2p:Math.ceil(h.top)-h.top+"px"});})(),this.unSubPixelFix=J($s,"resize",a));}definition(t){return new bt([t]).addToDOM(this.defs.element)}getReferenceURL(){if(($n||Fa)&&Ze.getElementsByTagName("base").length){if(!B(O)){let t=le(),e=new bt([{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(Ze.body);nt(e,{position:"fixed",top:0,left:0,zIndex:9e5}),O=Ze.elementFromPoint(6,6)?.id==="hitme",Ze.body.removeChild(e);}if(O)return An($s.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return ""}getStyle(t){return this.style=Y({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(),Ne(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,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=X({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},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 Ha(t).buildSVG();}getContrast(t){if(t==="transparent")return "#000000";let e=Mt.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(S(e[0])||!Mt.useColorMix){let s=e.map(o=>{let r=o/255;return r<=.04?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=.2126*s[0]+.7152*s[1]+.0722*s[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}return "color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,n={},o,r,a,h,d){let c=this.label(t,e,i,h,void 0,void 0,d,void 0,"button"),p=this.styledMode,m=arguments,y=0;n=X(Wa.global.buttonTheme,n),p&&(delete n.fill,delete n.stroke,delete n["stroke-width"]);let u=n.states||{},g=n.style||{};delete n.states,delete n.style;let f=[bt.filterUserAttributes(n)],x=[g];return p||["hover","select","disabled"].forEach((b,M)=>{f.push(X(f[0],bt.filterUserAttributes(m[M+5]||u[b]||{}))),x.push(f[M+1].style),delete f[M+1].style;}),J(c.element,Un?"mouseover":"mouseenter",function(){y!==3&&c.setState(1);}),J(c.element,Un?"mouseout":"mouseleave",function(){y!==3&&c.setState(y);}),c.setState=(b=0)=>{if(b!==1&&(c.state=y=b),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b]),!p){c.attr(f[b]);let M=x[b];ht(M)&&c.css(M);}},c.attr(f[0]),!p&&(c.css(Y({cursor:"default"},g)),d&&c.text.css({pointerEvents:"none"})),c.on("touchstart",b=>b.stopPropagation()).on("click",function(b){y!==3&&s?.call(c,b);})}crispLine(t,e){let[i,s]=t;return B(i[1])&&i[1]===s[1]&&(i[1]=s[1]=ae(i[1],e)),B(i[2])&&i[2]===s[2]&&(i[2]=s[2]=ae(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return ft(t)?e.d=t:ht(t)&&Y(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=ht(t)?t:t===void 0?{}:{x:t,y:e,r:i},n=this.createElement("circle");return n.xSetter=n.ySetter=function(o,r,a){a.setAttribute("c"+r,o);},n.attr(s)}arc(t,e,i,s,n,o){let r;ht(t)?(e=(r=t).y,i=r.r,s=r.innerR,n=r.start,o=r.end,t=r.x):r={innerR:s,start:n,end:o};let a=this.symbol("arc",t,e,i,i,r);return a.r=i,a}rect(t,e,i,s,n,o){let r=ht(t)?t:t===void 0?{}
2:{x:t,y:e,r:n,width:Math.max(i||0,0),height:Math.max(s||0,0)},a=this.createElement("rect");return this.styledMode||(o!==void 0&&(r["stroke-width"]=o,Y(r,a.crisp(r))),r.fill="none"),a.rSetter=function(h,d,c){a.r=h,Gt(c,{rx:h,ry:h});},a.rGetter=function(){return a.r||0},a.attr(r)}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,n,o){let r={preserveAspectRatio:"none"};S(e)&&(r.x=e),S(i)&&(r.y=i),S(s)&&(r.width=s),S(n)&&(r.height=n);let a=this.createElement("image").attr(r),h=function(d){a.attr({href:t}),o.call(a,d);};if(o){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let d=new $s.Image;J(d,"load",h),d.src=t,d.complete&&h({});}else a.attr({href:t});return a}symbol(t,e,i,s,n,o){let r,a,h,d,c=this,p=/^url\((.*?)\)$/,m=p.test(t),y=!m&&(this.symbols[t]?t:"circle"),u=y&&this.symbols[y];if(u)typeof e=="number"&&(a=u.call(this.symbols,e||0,i||0,s||0,n||0,o)),r=this.path(a),c.styledMode||r.attr("fill","none"),Y(r,{symbolName:y||void 0,x:e,y:i,width:s,height:n}),o&&Y(r,o);else if(m){h=t.match(p)[1];let g=r=this.image(h);g.imgwidth=_(o?.width,js[h]?.width),g.imgheight=_(o?.height,js[h]?.height),d=f=>f.attr({width:f.width,height:f.height}),["width","height"].forEach(f=>{g[`${f}Setter`]=function(x,b){this[b]=x;let{alignByTranslate:M,element:v,width:P,height:k,imgwidth:w,imgheight:I}=this,N=b==="width"?w:I,L=1;o&&o.backgroundSize==="within"&&P&&k&&w&&I?(L=Math.min(P/w,k/I),Gt(v,{width:Math.round(w*L),height:Math.round(I*L)})):v&&N&&v.setAttribute(b,N),!M&&w&&I&&this.translate(((P||0)-w*L)/2,((k||0)-I*L)/2);};}),B(e)&&g.attr({x:e,y:i}),g.isImg=!0,B(g.imgwidth)&&B(g.imgheight)?d(g):(g.attr({width:0,height:0}),re("img",{onload:function(){let f=Ga[c.chartIndex];this.width===0&&(nt(this,{position:"absolute",top:"-999em"}),Ze.body.appendChild(this)),js[h]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&d(g),this.parentNode&&this.parentNode.removeChild(this),c.asyncCounter--,c.asyncCounter||!f||f.hasLoaded||f.onload();},src:h}),this.asyncCounter++);}return r}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let n={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);n.x=Math.round(e||0),i&&(n.y=Math.round(i)),B(t)&&(n.text=t);let o=this.createElement("text").attr(n);return s&&(!this.forExport||this.allowHTML)||(o.xSetter=function(r,a,h){let d=h.getElementsByTagName("tspan"),c=h.getAttribute(a);for(let p=0,m;p<d.length;p++)(m=d[p]).getAttribute(a)===c&&m.setAttribute(a,r);h.setAttribute(a,r);}),o}fontMetrics(t){let e=S(t)?t:vt(ve.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),s=Math.round(.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*jn),4)),{x:-t/3*Math.sin(e*jn),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 n=0;n<t.length;n++)lt(i[0])&&S(t[n])&&i.length===s[i[0].toUpperCase()]&&t.splice(n,0,i[0].replace("M","L").replace("m","l")),typeof t[n]=="string"&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[n]);return e.push(i.slice(0)),e}label(t,e,i,s,n,o,r,a,h){return new He(this,t,e,i,s,n,o,r,a,h)}alignElements(){this.alignedObjects.forEach(t=>t.align());}}Y(Ni.prototype,{Element:ve,SVG_NS:Ya,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Yn,draw:Xa}),mi.registerRendererType("svg",Ni,!0);let{composed:Va,isFirefox:ja}=T;function Zn(l,t,e){let i=this.div?.style;ve.prototype[`${t}Setter`].call(this,l,t,e),i&&(e.style[t]=i[t]=l);}let $a=(l,t)=>{if(!l.div){let e=Gt(l.element,"class"),i=l.css,s=re("div",e?{className:e}:void 0,G(F({position:"absolute",left:`${l.translateX||0}px`,top:`${l.translateY||0}px`},l.styles),{display:l.display,opacity:l.opacity,visibility:l.visibility}),l.parentGroup?.div||t);l.classSetter=(n,o,r)=>{r.setAttribute("class",n),s.className=n;},l.translateXSetter=l.translateYSetter=(n,o)=>{l[o]=n,s.style[o==="translateX"?"left":"top"]=`${n}px`,l.doTransform=!0;},l.scaleXSetter=l.scaleYSetter=(n,o)=>{l[o]=n,l.doTransform=!0;},l.opacitySetter=l.visibilitySetter=Zn,l.css=n=>(i.call(l,n),n.cursor&&(s.style.cursor=n.cursor),n.pointerEvents&&(s.style.pointerEvents=n.pointerEvents),l),l.on=function(){return ve.prototype.on.apply({element:s,onEvents:l.onEvents},arguments),l},l.div=s;}return l.div};class qe extends ve{static compose(t){me(Va,this.compose)&&(t.prototype.html=function(e,i,s){return new qe(this,"span").attr({text:e,x:Math.round(i),y:Math.round(s)})});}constructor(t,e){super(t,e),qe.useForeignObject?this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}):this.css(F({position:"absolute"},t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize})),this.element.style.whiteSpace="nowrap";}
2getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e;}css(t){let e,{element:i}=this,s=i.tagName==="SPAN"&&t&&"width"in t,n=s&&t.width;return s&&(delete t.width,this.textWidth=vt(n)||void 0,e=!0),t?.textOverflow==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),S(Number(t?.fontSize))&&(t.fontSize+="px"),Y(this.styles,t),nt(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(){if(!this.added){this.alignOnAdd=!0;return}let{element:t,foreignObject:e,oldTextWidth:i,renderer:s,rotation:n,rotationOriginX:o,rotationOriginY:r,scaleX:a,scaleY:h,styles:{display:d="inline-block",whiteSpace:c},textAlign:p="left",textWidth:m,translateX:y=0,translateY:u=0,x:g=0,y:f=0}=this,x=()=>this.textPxLength?this.textPxLength:(nt(t,{width:"",whiteSpace:c||"nowrap"}),t.offsetWidth);if(e||nt(t,{marginLeft:`${y}px`,marginTop:`${u}px`}),t.tagName==="SPAN"){let b,M=[n,p,t.innerHTML,m,this.textAlign].join(","),v=-(this.parentGroup?.padding*1)||0;if(m!==i){let I=x(),N=m||0,L=!s.styledMode&&t.style.textOverflow===""&&t.style.webkitLineClamp;(N>i||I>N||L)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||t.style.textOverflow==="ellipsis")&&(nt(t,{width:(n||a||I>N)&&S(m)?m+"px":L?Math.min(I+1,N)+"px":"auto",display:d,whiteSpace:c||"normal"}),this.oldTextWidth=m);}e&&(nt(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:s.width,height:s.height})),M!==this.cTT&&(b=s.fontMetrics(t).b,B(n)&&!e&&(n!==(this.oldRotation||0)||p!==this.oldAlign)&&nt(t,{transform:`rotate(${n}deg)`,transformOrigin:`${v}% ${v}px`}
2),this.getSpanCorrection(!B(n)&&!this.textWidth&&this.textPxLength||t.offsetWidth,b,Vt(p)));let{xCorr:P=0,yCorr:k=0}=this,w={left:`${g+P}px`,top:`${f+k}px`,textAlign:p,transformOrigin:`${(o??g)-P-g-v}px ${(r??f)-k-f-v}px`};(a||h)&&(w.transform=`scale(${a??1},${h??1})`),e?(super.updateTransform(),S(g)&&S(f)?(e.attr({x:g+P,y:f+k,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),nt(t,{display:d,textAlign:p})):ja&&e.attr({width:0,height:0})):nt(t,w),this.cTT=M,this.oldRotation=n,this.oldAlign=p;}}add(t){let{foreignObject:e,renderer:i}=this,s=i.box.parentNode,n=[];if(e)e.add(t),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(e));else {let o;if(this.parentGroup=t,t&&!(o=t.div)){let r=t;for(;r;)n.push(r),r=r.parentGroup;for(let a of n.reverse())o=$a(a,s);}(o||s).appendChild(this.element);}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,bt.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;}}let We=qe.prototype;We.visibilitySetter=We.opacitySetter=Zn,We.ySetter=We.rotationSetter=We.rotationOriginXSetter=We.rotationOriginYSetter=We.xSetter,(Q=bs||(bs={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},Q.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let Ua=bs;(vs||(vs={})).registerEventOptions=function(l,t){l.eventOptions=l.eventOptions||{},tt(t.events,function(e,i){l.eventOptions[i]!==e&&(l.eventOptions[i]&&(ge(l,i,l.eventOptions[i]),delete l.eventOptions[i]),$e(e)&&(l.eventOptions[i]=e,J(l,i,e,{order:0})));});};let Ri=vs,{deg2rad:Us}=T,Ke=class{constructor(l,t,e,i,s){this.isNew=!0,this.isNewLabel=!0,this.axis=l,this.pos=t,this.type=e||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,D(this,"init"),e||i||this.addLabel();}addLabel(){let l=this,t=l.axis,e=t.options,i=t.chart,s=t.categories,n=t.logarithmic,o=t.names,r=l.pos,a=_(l.options?.labels,e.labels),h=t.tickPositions,d=r===h[0],c=r===h[h.length-1],p=(!a.step||a.step===1)&&t.tickInterval===1,m=h.info,y=l.label,u,g,f,x=this.parameters.category||(s?_(s[r],o[r],r):r);n&&S(x)&&(x=xt(n.lin2log(x))),t.dateTime&&(m?u=(g=i.time.resolveDTLFormat(e.dateTimeLabelFormats[!e.grid?.enabled&&m.higherRanks[r]||m.unitName])).main:S(x)&&(u=t.dateTime.getXDateFormat(x,e.dateTimeLabelFormats||{}))),l.isFirst=d,l.isLast=c;let b={axis:t,chart:i,dateTimeLabelFormat:u,isFirst:d,isLast:c,pos:r,tick:l,tickPositionInfo:m,value:x};D(this,"labelFormat",b);let M=k=>a.formatter?a.formatter.call(k,k):a.format?(k.text=t.defaultLabelFormatter.call(k),ce.format(a.format,k,i)):t.defaultLabelFormatter.call(k),v=M.call(b,b),P=g?.list;P?l.shortenLabel=function(){for(f=0;f<P.length;f++)if(Y(b,{dateTimeLabelFormat:P[f]}),y.attr({text:M.call(b,b)}),y.getBBox().width<t.getSlotWidth(l)-2*(a.padding||0))return;y.attr({text:""});}:l.shortenLabel=void 0,p&&t._addedPlotLB&&l.moveLabel(v,a),B(y)||l.movedLabel?y&&y.textStr!==v&&!p&&(!y.textWidth||a.style.width||y.styles.width||y.css({width:null}),y.attr({text:v}),y.textPxLength=y.getBBox().width):(l.label=y=l.createLabel(v,a),l.rotation=0);}createLabel(l,t,e){let i=this.axis,{renderer:s,styledMode:n}=i.chart,o=t.style.whiteSpace,r=B(l)&&t.enabled?s.text(l,e?.x,e?.y,t.useHTML).add(i.labelGroup):void 0;return r&&(n||r.css(X(t.style)),r.textPxLength=r.getBBox().width,!n&&o&&r.css({whiteSpace:o}
2)),r}destroy(){Ne(this,this.axis);}getPosition(l,t,e,i){let s=this.axis,n=s.chart,o=i&&n.oldChartHeight||n.chartHeight,r={x:l?xt(s.translate(t+e,void 0,void 0,i)+s.transB):s.left+s.offset+(s.opposite?(i&&n.oldChartWidth||n.chartWidth)-s.right-s.left:0),y:l?o-s.bottom+s.offset-(s.opposite?s.height:0):xt(o-s.translate(t+e,void 0,void 0,i)-s.transB)};return r.y=kt(r.y,-1e9,1e9),D(this,"afterGetPosition",{pos:r}),r}getLabelPosition(l,t,e,i,s,n,o,r){let a,h,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,m=d.staggerLines,y=d.tickRotCorr||{x:0,y:0},u=i||d.reserveSpaceDefault?0:-d.labelOffset*(d.labelAlign==="center"?.5:1),g=s.distance,f={};return a=d.side===0?e.rotation?-g:-e.getBBox().height:d.side===2?y.y+g:Math.cos(e.rotation*Us)*(y.y-e.getBBox(!1,0).height/2),B(s.y)&&(a=d.side===0&&d.horiz?s.y+a:s.y),l=l+_(s.x,[0,1,0,-1][d.side]*g)+u+y.x-(n&&i?n*c*(p?-1:1):0),t=t+a-(n&&!i?n*c*(p?1:-1):0),m&&(h=o/(r||1)%m,d.opposite&&(h=m-h-1),t+=h*(d.labelOffset/m)),f.x=l,f.y=Math.round(t),D(this,"afterGetLabelPosition",{pos:f,tickmarkOffset:n,index:o}),f}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(l,t,e,i,s=!1,n){return n.crispLine([["M",l,t],["L",l+(s?0:-e),t+(s?e:0)]],i)}handleOverflow(l){let t=this.axis,e=t.options.labels,i=l.x,s=t.chart.chartWidth,n=t.chart.spacing,o=_(t.labelLeft,Math.min(t.pos,n[3])),r=_(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,s-n[1])),a=this.label,h=this.rotation,d=Vt(t.labelAlign||a.attr("align")),c=a.getBBox().width,p=t.getSlotWidth(this),m=p,y=1,u;h||e.overflow!=="justify"?h<0&&i-d*c<o?u=Math.round(i/Math.cos(h*Us)-o):h>0&&i+d*c>r&&(u=Math.round((s-i)/Math.cos(h*Us))):(i-d*c<o?m=l.x+m*(1-d)-o:i+(1-d)*c>r&&(m=r-l.x+m*d,y=-1),(m=Math.min(p,m))<p&&t.labelAlign==="center"&&(l.x+=y*(p-m-d*(p-Math.min(c,m)))),(c>m||t.autoRotation&&a?.styles?.width)&&(u=m)),u&&a&&(this.shortenLabel?this.shortenLabel():a.css(Y({},{width:Math.floor(u)+"px",lineClamp:+!t.isRadial})));}moveLabel(l,t){let e=this,i=e.label,s=e.axis,n=!1,o;i&&i.textStr===l?(e.movedLabel=i,n=!0,delete e.label):tt(s.ticks,function(r){n||r.isNew||r===e||!r.label||r.label.textStr!==l||(e.movedLabel=r.label,n=!0,r.labelPos=e.movedLabel.xy,delete r.label);}),!n&&(e.labelPos||i)&&(o=e.labelPos||i.xy,e.movedLabel=e.createLabel(l,t,o),e.movedLabel&&e.movedLabel.attr({opacity:0}));}render(l,t,e){let i=this.axis,s=i.horiz,n=this.pos,o=_(this.tickmarkOffset,i.tickmarkOffset),r=this.getPosition(s,n,o,t),a=r.x,h=r.y,d=i.pos,c=d+i.len,p=s?a:h,m=_(e,this.label?.newOpacity,1);!i.chart.polar&&(xt(p)<d||p>c)&&(e=0),e??(e=1),this.isActive=!0,this.renderGridLine(t,e),this.renderMark(r,e),this.renderLabel(r,t,m,l),this.isNew=!1,D(this,"afterRender");}renderGridLine(l,t){let e=this.axis,i=e.options,s={},n=this.pos,o=this.type,r=_(this.tickmarkOffset,e.tickmarkOffset),a=e.chart.renderer,h=this.gridLine,d,c=i.gridLineWidth,p=i.gridLineColor,m=i.gridLineDashStyle;this.type==="minor"&&(c=i.minorGridLineWidth,p=i.minorGridLineColor,m=i.minorGridLineDashStyle),h||(e.chart.styledMode||(s.stroke=p,s["stroke-width"]=c||0,s.dashstyle=m),o||(s.zIndex=1),l&&(t=0),this.gridLine=h=a.path().attr(s).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(e.gridGroup)),h&&(d=e.getPlotLinePath({value:n+r,lineWidth:h.strokeWidth(),force:"pass",old:l,acrossPanes:!1}))&&h[l||this.isNew?"attr":"animate"]({d,opacity:t});}renderMark(l,t){let e=this.axis,i=e.options,s=e.chart.renderer,n=this.type,o=e.tickSize(n?n+"Tick":"tick"),r=l.x,a=l.y,h=_(i[n!=="minor"?"tickWidth":"minorTickWidth"],!n&&e.isXAxis?1:0),d=i[n!=="minor"?"tickColor":"minorTickColor"],c=this.mark,p=!c;o&&(e.opposite&&(o[0]=-o[0]),!c&&(this.mark=c=s.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||c.attr({stroke:d,"stroke-width":h})),c[p?"attr":"animate"]({d:this.getMarkPath(r,a,o[0],c.strokeWidth(),e.horiz,s),opacity:t}));}renderLabel(l,t,e,i){let s=this.axis,n=s.horiz,o=s.options,r=this.label,a=o.labels,h=a.step,d=_(this.tickmarkOffset,s.tickmarkOffset),c=l.x,p=l.y,m=!0;r&&S(c)&&(r.xy=l=this.getLabelPosition(c,p,r,n,a,d,i,h),(!this.isFirst||this.isLast||o.showFirstLabel)&&(!this.isLast||this.isFirst||o.showLastLabel)?n&&!t&&e!==0&&this.handleOverflow(l):m=!1,h&&i%h&&(m=!1),m&&S(l.y)?(l.opacity=e,r[this.isNewLabel?"attr":"animate"](l).show(!0),this.isNewLabel=!1):(r.hide(),this.isNewLabel=!0));}replaceMovedLabel(){let l=this.label,t=this.axis;l&&!this.isNew&&(l.animate({opacity:0}
2,void 0,l.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel;}},{animObject:qn}=Xt,{xAxis:Kn,yAxis:Za}=Ua,{defaultOptions:Zs}=he,{registerEventOptions:qa}=Ri,{deg2rad:Ka}=T,Qn=(l,t)=>Ti(t,void 0,void 0,_(l.options.allowDecimals,t<.5||l.tickAmount!==void 0),!!l.tickAmount);Y(Zs,{xAxis:Kn,yAxis:X(Kn,Za)});class Qe{constructor(t,e,i){this.init(t,e,i);}init(t,e,i=this.coll){let s=i==="xAxis",n=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=n,this.isXAxis=s,this.coll=i,D(this,"init",{userOptions:e}),this.opposite=_(e.opposite,this.opposite),this.side=_(e.side,this.side,n?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let o=this.options,r=o.labels;this.type??(this.type=o.type||"linear"),this.uniqueNames??(this.uniqueNames=o.uniqueNames??!0),D(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=_(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames=this.type==="category"||o.categories===!0,this.categories=ft(o.categories)&&o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=B(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.max=void 0,this.min=void 0;let a=_(o.crosshair,jt(t.options.tooltip.crosshairs)[+!s]);this.crosshair=a===!0?{}:a,t.axes.indexOf(this)===-1&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),Si(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!B(this.reversed)&&(this.reversed=!0),this.labelRotation=S(r.rotation)?r.rotation:void 0,qa(this,o),D(this,"afterInit");}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=X(e,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},Zs[this.coll],t),D(this,"afterSetOptions",{userOptions:t});}defaultLabelFormatter(){let t=this.axis,e=this.chart,{numberFormatter:i}=e,s=S(this.value)?this.value:NaN,n=t.chart.time,o=t.categories,r=this.dateTimeLabelFormat,a=Zs.lang,h=a.numericSymbols,d=a.numericSymbolMagnitude||1e3,c=t.logarithmic?Math.abs(s):t.tickInterval,p=h?.length,m,y;if(o)y=`${this.value}`;else if(r)y=n.dateFormat(r,s,!0);else if(p&&h&&c>=1e3)for(;p--&&y===void 0;)c>=(m=Math.pow(d,p+1))&&10*s%m==0&&h[p]!==null&&s!==0&&(y=i(s/m,-1,void 0,void 0,e)+h[p]);return y??(y=i(s,-1,void 0,1e4>Math.abs(s)?"":void 0,e)),y}getSeriesExtremes(){let t,e=this;D(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,n,o=s.threshold,r,a;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(o||0)&&(o=void 0),e.isXAxis)(n=i.getColumn("x")).length&&(n=e.logarithmic?n.filter(h=>h>0):n,r=(t=i.getXExtremes(n)).min,a=t.max,S(r)||r instanceof Date||(n=n.filter(S),r=(t=i.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(_(e.dataMin,r),r),e.dataMax=Math.max(_(e.dataMax,a),a)));else {let h=i.applyExtremes();S(h.dataMin)&&(r=h.dataMin,e.dataMin=Math.min(_(e.dataMin,r),r)),S(h.dataMax)&&(a=h.dataMax,e.dataMax=Math.max(_(e.dataMax,a),a)),B(o)&&(e.threshold=o),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1);}}});}),D(this,"afterGetSeriesExtremes");}translate(t,e,i,s,n,o){let r=this.linkedParent||this,a=s&&r.old?r.old.min:r.min;if(!S(a))return NaN;let h=r.minPixelPadding,d=(r.isOrdinal||r.brokenAxis?.hasBreaks||r.logarithmic&&n)&&!!r.lin2val,c=1,p=0,m=s&&r.old?r.old.transA:r.transA,y=0;return m||(m=r.transA),i&&(c*=-1,p=r.len),r.reversed&&(c*=-1,p-=c*(r.sector||r.len)),e?(y=(t=t*c+p-h)/m+a,d&&(y=r.lin2val(y))):(d&&(t=r.val2lin(t)),y=c*(t-a)*m+p+c*h+(S(o)?m*o:0),r.isRadial||(y=xt(y))),y}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,i=e.chart,s=e.left,n=e.top,o=t.old,r=t.value,a=t.lineWidth,h=o&&i.oldCh
2artHeight||i.chartHeight,d=o&&i.oldChartWidth||i.chartWidth,c=e.transB,p=t.translatedValue,m=t.force,y,u,g,f,x;function b(v,P,k){return m!=="pass"&&(v<P||v>k)&&(m?v=kt(v,P,k):x=!0),v}let M={value:r,lineWidth:a,old:o,force:m,acrossPanes:t.acrossPanes,translatedValue:p};return D(this,"getPlotLinePath",M,function(v){y=g=(p=kt(p=_(p,e.translate(r,void 0,void 0,o)),-1e9,1e9))+c,u=f=h-p-c,S(p)?e.horiz?(u=n,f=h-e.bottom+(e.options.isInternal?0:i.scrollablePixelsY||0),y=g=b(y,s,s+e.width)):(y=s,g=d-e.right+(i.scrollablePixelsX||0),u=f=b(u,n,n+e.height)):(x=!0,m=!1),v.path=x&&!m?void 0:i.renderer.crispLine([["M",y,u],["L",g,f]],a||1);}),M.path}getLinearTickPositions(t,e,i){let s,n,o,r=xt(Math.floor(e/t)*t),a=xt(Math.ceil(i/t)*t),h=[];if(xt(r+t)===r&&(o=20),this.single)return [e];for(s=r;s<=a&&(h.push(s),(s=xt(s+t,o))!==n);)n=s;return h}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,n=(this.min||0)-s,o=(this.max||0)+s,r=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:o-n,a=[],h;if(r&&r/i<this.len/3){let d=this.logarithmic;if(d)this.paddedTicks.forEach(function(c,p,m){p&&a.push.apply(a,d.getLogTickPositions(i,m[p-1],m[p],!0));});else if(this.dateTime&&this.getMinorTickInterval()==="auto")a=a.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),n,o,t.startOfWeek));else for(h=n+(e[0]-n)%i;h<=o&&h!==a[0];h+=i)a.push(h);}return a.length!==0&&this.trimTicks(a),a}adjustForMinRange(){let t=this.options,e=this.logarithmic,i=this.chart.time,{max:s,min:n,minRange:o}=this,r,a,h,d;this.isXAxis&&o===void 0&&!e&&(o=B(t.min)||B(t.max)||B(t.floor)||B(t.ceiling)?null:Math.min(5*(Ls(this.series.map(c=>{let p=c.getColumn("x");return c.xIncrement?p.slice(0,2):p}))||0),this.dataMax-this.dataMin)),S(s)&&S(n)&&S(o)&&s-n<o&&(a=this.dataMax-this.dataMin>=o,r=(o-s+n)/2,h=[n-r,i.parse(t.min)??n-r],a&&(h[2]=e?e.log2lin(this.dataMin):this.dataMin),d=[(n=ke(h))+o,i.parse(t.max)??n+o],a&&(d[2]=e?e.log2lin(this.dataMax):this.dataMax),(s=je(d))-n<o&&(h[0]=s-o,h[1]=i.parse(t.min)??s-o,n=ke(h))),this.minRange=o,this.min=n,this.max=s;}getClosest(){let t,e;if(this.categories)e=1;else {let i=[];this.series.forEach(function(s){let n=s.closestPointRange,o=s.getColumn("x");o.length===1?i.push(o[0]):s.sorted&&B(n)&&s.reserveSpace()&&(e=B(e)?Math.min(e,n):n);}),i.length&&(i.sort((s,n)=>s-n),t=Ls([i]));}return t&&e?Math.min(t,e):t||e}nameToX(t){let e=ft(this.options.categories),i=e?this.categories:this.names,s=t.options.x,n;return t.series.requireSorting=!1,B(s)||(s=this.uniqueNames&&i?e?i.indexOf(t.name):_(i.keys[t.name],-1):t.series.autoIncrement()),s===-1?!e&&i&&(n=i.length):S(s)&&(n=s),n!==void 0?(this.names[n]=t.name,this.names.keys[t.name]=n):t.x&&(n=t.x),n}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(i){delete e.keys[i];}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(i=>{i.xIncrement=null,(!i.points||i.isDirtyData)&&(t.max=Math.max(t.max||0,i.dataTable.rowCount-1),i.processData(),i.generatePoints());let s=i.getColumn("x").slice();i.data.forEach((n,o)=>{let r=s[o];n?.options&&n.name!==void 0&&(r=t.nameToX(n))!==void 0&&r!==n.x&&(s[o]=n.x=r);}),i.dataTable.setColumn("x",s);}));}setAxisTranslation(){let t=this,e=t.max-t.min,i=t.linkedParent,s=!!t.categories,n=t.isXAxis,o=t.axisPointRange||0,r,a=0,h=0,d,c=t.transA;(n||s||o)&&(r=t.getClosest(),i?(a=i.minPointOffset,h=i.pointRangePadding):t.series.forEach(function(p){let m=s?1:n?_(p.options.pointRange,r,0):t.axisPointRange||0,y=p.options.pointPlacement;if(o=Math.max(o,m),!t.single||s){let u=p.is("xrange")?!n:n;a=Math.max(a,u&<(y)?0:m/2),h=Math.max(h,u&&y==="on"?0:m);}}),d=t.ordinal?.slope&&r?t.ordinal.slope/r:1,t.minPointOffset=a*=d,t.pointRangePadding=h*=d,t.pointRange=Math.min(o,t.single&&s?1:e),n&&(t.closestPointRange=r)),t.translationSlope=t.transA=c=t.staticScale||t.len/(e+h||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=c*a,D(this,"afterSetAxisTranslation");}minFromRange(){let{max:t,min:e}=this;return S(t)&&S(e)&&t-e||void 0}setTickInterval(t){let{categories:e,chart:i,dataMax:s,dataMin:n,dateTime:o,isXAxis:r,logarithmic:a,options:h,softThreshold:d}=this,c=i.time,p=S(this.threshold)?this.threshold:void 0,m=this.minRange||0,{ceiling:y,floor:u,linkedTo:g,softMax:f,softMin:x}=h,b=S(g)&&i[this.coll]?.[g],M=h.tickPixelInterval,v=h.maxPadding,P=h.minPadding,k=0,w,I=S(h.tickInterval)&&h.tickInterval>=0?h.tickInterval:void 0,N,L,W,G;if(o||e||b||this.getTickAmount(),W=_(this.userMin,c.parse(h.min)),G=_(this.userMax,c.parse(h.max)),b?(this.linkedParent=b,w=b.getExtremes(),this.min=_(w.min,w.dataMin),this.max=_(w.max,w.dataMax),this.type!==b.type&&Ot(11,!0,i)):(d&&B(p)&&S(s)&&S(n)&&(n>=p?(N=p,P=0):s<=p&&(L=p,v=0)),this.min=_(W,N,n),this.max=_(G,L,s)),S(this.max)&&S(this.min)&&(a&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,_(n,this.min))&&Ot(10,!0,i),this.min=xt(a.log2lin(this.min),16),this.max=xt(a.log2lin(this.max),16)),this.range&&S(n)&&(this.userMin=this.min=W=Math.max(n,this.minFromRange()||0),this.userMax=G=this.max,this.range=void 0)),D(this,"foundExtremes"),this.adjustForMinRange(),S(this.min)&&S(this.max)){if(!S(this.userMin)&&S(x)&&x<this.min&&(this.min=W=x),!S(this.userMax)&&S(f)&&f>this.max&&(this.max=G=f),e||this.axisPointRange||this.stacking?.usePercentage||b||(k=this.max-this.min)&&(!B(W)&&P&&(this.min-=k*P),!B(G)&&v&&(this.max+=k*v)),!S(this.userMin)&&S(u)&&(this.min=Math.max(this.min,u)),!S(this.userMax)&&S(y)&&(this.max=Math.min(this.max,y)),d&&S(n)&&S(s)){let $=p||0;!B(W)&&this.min<$&&n>=$?this.min=h.minRange?Math.min($,this.max-m):$:!B(G)&&this.max>$&&s<=$&&(this.max=h.minRange?Math.max($,this.min+m):$);}!i.polar&&this.min>this.max&&(B(h.min)?this.max=this.min:B(h.max)&&(this.min=this.max)),k=this.max-this.min;}if(this.min!==this.max&&S(this.min)&&S(this.max)?b&&!I&&M===b.options.tickPixelInterval?this.tickInterval=I=b.tickInterval:this.tickInterval=_(I,this.tickAmount?k/Math.max(this.tickAmount-1,1):void 0,e?1:k*M/Math.max(this.len,M)):this.tickInterval=1,r&&!t){let $=this.min!==this.old?.min||this.max!==this.old?.max;
2this.series.forEach(function(V){V.forceCrop=V.forceCropping?.(),V.processData($);}),D(this,"postProcessData",{hasExtremesChanged:$});}this.setAxisTranslation(),D(this,"initialAxisTranslation"),this.pointRange&&!I&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let F=_(h.minTickInterval,o&&!this.series.some($=>!$.sorted)?this.closestPointRange:0);!I&&F&&this.tickInterval<F&&(this.tickInterval=F),o||a||I||(this.tickInterval=Qn(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions();}setTickPositions(){let t=this.options,e=t.tickPositions,i=t.tickPositioner,s=this.getMinorTickInterval(),n=!this.isPanning,o=n&&t.startOnTick,r=n&&t.endOnTick,a=[],h;if(this.tickmarkOffset=this.categories&&t.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&B(this.min)&&!this.tickAmount&&(this.min%1==0||t.allowDecimals!==!1),e)a=e.slice();else if(S(this.min)&&S(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))a=[this.min,this.max],Ot(19,!1,this.chart);else if(this.dateTime)a=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)a=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else {let d=this.tickInterval,c=d;for(;c<=2*d&&(a=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&a.length>this.tickAmount);)this.tickInterval=Qn(this,c*=1.1);}a.length>this.len&&(a=[a[0],a[a.length-1]])[0]===a[1]&&(a.length=1),i&&(this.tickPositions=a,(h=i.apply(this,[this.min,this.max,this]))&&(a=h));}this.isDirty||a.length===this.tickPositions?.length||(this.isDirty=!0),this.tickPositions=a,this.minorTickInterval=s==="auto"&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:s,this.paddedTicks=a.slice(0),this.trimTicks(a,o,r),!this.isLinked&&S(this.min)&&S(this.max)&&(this.single&&a.length<2&&!this.categories&&!this.series.some(d=>d.is("heatmap")&&d.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),e||h||this.adjustTickAmount()),D(this,"afterSetTickPositions");}trimTicks(t,e,i){let s=t[0],n=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(D(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&s!==-1/0)this.min=s;else for(;this.min-o>t[0];)t.shift();if(i)this.max=n;else for(;this.max+o<t[t.length-1];)t.pop();t.length===0&&B(s)&&!this.options.tickPositions&&t.push((n+s)/2);}}alignToOthers(){let t,e=this,i=e.chart,s=[this],n=e.options,o=i.options.chart,r=this.coll==="yAxis"&&o.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(o.alignTicks!==!1&&n.alignTicks||r)&&n.startOnTick!==!1&&n.endOnTick!==!1&&!e.logarithmic){let h=c=>{let{horiz:p,options:m}=c;return [p?m.left:m.top,m.width,m.height,m.pane].join(",")},d=h(this);i[this.coll].forEach(function(c){let{series:p}=c;p.length&&p.some(m=>m.visible)&&c!==e&&h(c)===d&&(t=!0,s.push(c));});}if(t&&r){s.forEach(d=>{let c=d.getThresholdAlignment(e);S(c)&&a.push(c);});let h=a.length>1?a.reduce((d,c)=>d+=c,0)/a.length:void 0;s.forEach(d=>{d.thresholdAlignment=h;});}return t}getThresholdAlignment(t){if((!S(this.dataMin)||this!==t&&this.series.some(e=>e.isDirty||e.isDirtyData||e.xAxis?.isDirty))&&this.getSeriesExtremes(),S(this.threshold)){let e=kt((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,e=t.tickPixelInterval,i=t.tickAmount;B(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:n,tickPositions:o,tickAmount:r,thresholdAlignment:a}=t,h=o?.length,d=_(t.threshold,t.softThreshold?0:null),c,p,m=t.tickInterval,y,u=()=>o.push(xt(o[o.length-1]+m)),g=()=>o.unshift(xt(o[0]-m));if(S(a)&&(y=a===0?0:a===1?r-1:Math.round(kt(a*(r-1),1,r-2)),n.reversed&&(y=r-1-y)),t.hasData()&&S(s)&&S(i)){let f=()=>{t.transA*=(h-1)/(r-1),t.min=n.startOnTick?o[0]:Math.min(s,o[0]),t.max=n.endOnTick?o[o.length-1]:Math.max(i,o[o.length-1]);};if(S(y)&&S(t.threshold)){for(;o[y]!==d||o.length!==r||o[0]>s||o[o.length-1]<i;){for(o.length=0,o.push(t.threshold);o.length<r;)o[y]===void 0||o[y]>t.threshold?g():u();if(m>8*t.tickInterval)break;m*=2;}f();}else if(h<r){for(;o.length<r;)o.length%2||s===d?u():g();f();}if(B(e)){for(p=c=o.length;p--;)(e===3&&p%2==1||e<=2&&p>0&&p<c-1)&&o.splice(p,1);t.finalTickAmt=void 0;}}}setScale(){let{coll:t,stacking:e}=this,i=!1,s=!1;
2this.series.forEach(o=>{i=i||o.isDirtyData||o.isDirty,s=s||o.xAxis?.isDirty||!1;}),this.setAxisSize();let n=this.len!==this.old?.len;n||i||s||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(e&&t==="yAxis"&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&t==="xAxis"&&e.buildStacks(),this.isDirty||(this.isDirty=n||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,D(this,"afterSetScale");}setExtremes(t,e,i=!0,s,n){let o=this.chart;this.series.forEach(r=>{delete r.kdTree;}),t=o.time.parse(t),e=o.time.parse(e),D(this,"setExtremes",n=Y(n,{min:t,max:e}),r=>{this.userMin=r.min,this.userMax=r.max,this.eventArgs=r,i&&o.redraw(s);});}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(Ft(_(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(Ft(_(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),r=this.top=Math.round(Ft(_(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(Ft(_(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-o-r,this.right=t.chartWidth-n-a,this.len=Math.max(s?n:o,0),this.pos=s?a:r;}getExtremes(){let t=this.logarithmic;return {min:t?xt(t.lin2log(this.min)):this.min,max:t?xt(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 D(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"],n;i&&s&&(e[t+"Position"]==="inside"&&(s=-s),n=[s,i]);let o={tickSize:n};return D(this,"afterTickSize",o),o.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t=this.options.labels,e=t.padding||0,i=this.horiz,s=this.tickInterval,n=this.len/((+!!this.categories+this.max-this.min)/s),o=t.rotation,r=xt(.8*this.labelMetrics().h),a=Math.max(this.max-this.min,0),h=function(y){let u=(y+2*e)/(n||1);return (u=u>1?Math.ceil(u):1)*s>a&&y!==1/0&&n!==1/0&&a&&(u=Math.ceil(a/s)),xt(u*s)},d=s,c,p=Number.MAX_VALUE,m;if(i){if(!t.staggerLines&&(S(o)?m=[o]:n<t.autoRotationLimit&&(m=t.autoRotation)),m){let y,u;for(let g of m)(g===o||g&&g>=-90&&g<=90)&&(u=(y=h(Math.abs(r/Math.sin(Ka*g))))+Math.abs(g/360))<p&&(p=u,c=g,d=y);}}else d=h(.75*r);return this.autoRotation=m,this.labelRotation=_(c,S(o)?o:0),t.step?s:d}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,n=Math.max(this.tickPositions.length-!this.categories,1),o=e.margin[3];if(t&&S(t.slotWidth))return t.slotWidth;if(i&&s.step<2&&!this.isRadial)return s.rotation?0:(this.staggerLines||1)*this.len/n;if(!i){let r=s.style.width;if(r!==void 0)return parseInt(String(r),10);if(!this.opposite&&o)return o-e.spacing[3]}return .33*e.chartWidth}renderUnsquish(){let t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,n=this.options.labels,o=n.style,r=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-(r?2*(n.padding||0):n.distance||0))),d={},c=this.labelMetrics(),p=o.lineClamp,m,y=p??(Math.floor(this.len/(i.length*c.h))||1),u=0;lt(n.rotation)||(d.rotation=n.rotation||0),i.forEach(function(g){let f=s[g];f.movedLabel&&f.replaceMovedLabel();let x=f.label?.textPxLength||0;x>u&&(u=x);}),this.maxLabelLength=u,this.autoRotation?u>h&&u>c.h?d.rotation=this.labelRotation:this.labelRotation=0:a&&(m=h),d.rotation&&(m=u>.5*t.chartHeight?.33*t.chartHeight:u,p||(y=1)),this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(d.align=this.labelAlign),i.forEac
2h(function(g){let f=s[g],x=f?.label,b=o.width,M={};x&&(x.attr(d),f.shortenLabel?f.shortenLabel():m&&!b&&o.whiteSpace!=="nowrap"&&(m<(x.textPxLength||0)||x.element.tagName==="SPAN")?x.css(Y(M,{width:`${m}px`,lineClamp:y})):!x.styles.width||M.width||b||x.css({width:"auto"}),f.rotation=d.rotation);},this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,this.side!==0);}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&B(this.min)&&B(this.max)}addTitle(t){let e,i=this.chart.renderer,s=this.horiz,n=this.opposite,o=this.options.title,r=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[o.align]),this.axisTitle=i.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),r||this.axisTitle.css(X(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),r||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t);}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,n=e.renderer,o=(r,a,h)=>n.g(r).attr({zIndex:h}).addClass(`highcharts-${i.toLowerCase()}${a} `+(this.isRadial?`highcharts-radial-axis${a} `:"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=o("grid","-grid",s.gridZIndex),this.axisGroup=o("axis","",s.zIndex),this.labelGroup=o("axis-labels","-labels",s.labels.zIndex));}getOffset(){let t=this,{chart:e,horiz:i,options:s,side:n,ticks:o,tickPositions:r,coll:a}=t,h=e.inverted&&!t.isZAxis?[1,0,3,2][n]:n,d=t.hasData(),c=s.title,p=s.labels,m=S(s.crossing),y=e.axisOffset,u=e.clipOffset,g=[-1,1,1,-1][n],f,x=0,b,M=0,v=0,P,k;if(t.showAxis=f=d||s.showEmpty,t.staggerLines=t.horiz&&p.staggerLines||void 0,t.createGroups(),d||t.isLinked?(r.forEach(function(w){t.generateTick(w);}),t.renderUnsquish(),t.reserveSpaceDefault=n===0||n===2||{1:"left",3:"right"}[n]===t.labelAlign,_(p.reserveSpace,!m&&null,t.labelAlign==="center"||null,t.reserveSpaceDefault)&&r.forEach(function(w){v=Math.max(o[w].getLabelSize(),v);}),t.staggerLines&&(v*=t.staggerLines),t.labelOffset=v*(t.opposite?-1:1)):tt(o,function(w,I){w.destroy(),delete o[I];}),c?.text&&c.enabled!==!1&&(t.addTitle(f),f&&!m&&c.reserveSpace!==!1&&(t.titleOffset=x=t.axisTitle.getBBox()[i?"height":"width"],M=B(b=c.offset)?0:_(c.margin,i?5:10))),t.renderLine(),t.offset=g*_(s.offset,y[n]?y[n]+(s.margin||0):0),t.tickRotCorr=t.tickRotCorr||{x:0,y:0},k=n===0?-t.labelMetrics().h:n===2?t.tickRotCorr.y:0,P=Math.abs(v)+M,v&&(P-=k,P+=g*(i?_(p.y,t.tickRotCorr.y+g*p.distance):_(p.x,g*p.distance))),t.axisTitleMargin=_(b,P),t.getMaxLabelDimensions&&(t.maxLabelDimensions=t.getMaxLabelDimensions(o,r)),a!=="colorAxis"&&u){let w=this.tickSize("tick");y[n]=Math.max(y[n],(t.axisTitleMargin||0)+x+g*t.offset,P,r?.length&&w?w[0]+g*t.offset:0);let I=!t.axisLine||s.offset?0:t.axisLine.strokeWidth()/2;u[h]=Math.max(u[h],I);}D(this,"afterGetOffset");}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,n=this.horiz,o=this.left+(i?this.width:0)+s,r=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",n?this.left:o,n?r:this.top],["L",n?e.chartWidth-this.right:o,n?r:e.chartHeight-this.bottom]],t)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}));}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,n=this.len,o=this.options.title,r=e?i:s,a=this.opposite,h=this.offset,d=o.x,c=o.y,p=this.chart.renderer.fontMetrics(t),m=t?Math.max(t.getBBox(!1,0).height-p.h-1,0):0,y={low:r+(e?0:n),middle:r+n/2,high:r+(e?n:0)}[o.align],u=(e?s+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-m,m,p.f,-m][this.side],g={x:e?y+d:u+(a?this.width:0)+h+d,y:e?u+c-(a?this.height:0)+h:y+c};return D(this,"afterGetTitlePosition",{titlePosition:g}),g}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);}
2renderTick(t,e,i){let s=this.isLinked,n=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(n[t]||(n[t]=new Ke(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e));}render(){let t,e,i=this,s=i.chart,n=i.logarithmic,o=s.renderer,r=i.options,a=i.isLinked,h=i.tickPositions,d=i.axisTitle,c=i.ticks,p=i.minorTicks,m=i.alternateBands,y=r.stackLabels,u=r.alternateGridColor,g=r.crossing,f=i.tickmarkOffset,x=i.axisLine,b=i.showAxis,M=qn(o.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[c,p,m].forEach(function(v){tt(v,function(P){P.isActive=!1;});}),S(g)){let v=this.isXAxis?s.yAxis[0]:s.xAxis[0],P=[1,-1,-1,1][this.side];if(v){let k=v.toPixels(g,!0);i.horiz&&(k=v.len-k),i.offset=P*k;}}if(i.hasData()||a){let v=i.chart.hasRendered&&i.old&&S(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(P){i.renderMinorTick(P,v);}),h.length&&(h.forEach(function(P,k){i.renderTick(P,k,v);}),f&&(i.min===0||i.single)&&(c[-1]||(c[-1]=new Ke(i,-1,null,!0)),c[-1].render(-1))),u&&h.forEach(function(P,k){e=h[k+1]!==void 0?h[k+1]+f:i.max-f,k%2==0&&P<i.max&&e<=i.max+(s.polar?-f:f)&&(m[P]||(m[P]=new T.PlotLineOrBand(i,{})),t=P+f,m[P].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:u,className:"highcharts-alternate-grid"},m[P].render(),m[P].isActive=!0);}),i._addedPlotLB||(i._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(P){i.addPlotBandOrLine(P);}));}[c,p,m].forEach(function(v){let P=[],k=M.duration;tt(v,function(w,I){w.isActive||(w.render(I,!1,0),w.isActive=!1,P.push(I));}),ue(function(){let w=P.length;for(;w--;)v[P[w]]&&!v[P[w]].isActive&&(v[P[w]].destroy(),delete v[P[w]]);},v!==m&&s.hasRendered&&k?k:0);}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[b?"show":"hide"](b)),d&&b&&(d[d.isNew?"attr":"animate"](i.getTitlePosition(d)),d.isNew=!1),y?.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,D(this,"afterRender");}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render();})),this.series.forEach(function(t){t.isDirty=!0;});}getKeepProps(){return this.keepProps||Qe.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(D(this,"destroy",{keepEvents:t}),t||ge(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(n){Ne(n);}),i){let n=i.length;for(;n--;)i[n].destroy();}for(let n in ["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(o){e[o]&&(e[o]=e[o].destroy());}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();tt(e,function(n,o){e.getKeepProps().indexOf(o)===-1&&delete e[o];}),this.eventOptions=s;}drawCrosshair(t,e){let i,s,n,o,r=this.crosshair,a=r?.snap??!0,h=this.chart,d=this.cross;if(D(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross?.e),r&&(B(e)||!a)!==!1){if(clearTimeout(this.crossShowTimer),a?B(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),B(s)&&(o={value:e&&(this.isXAxis?e.x:_(e.stackY,e.y)),translatedValue:s},h.polar&&Y(o,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),i=this.getPlotLinePath(o)||null),!B(i))return void this.hideCrosshair();n=this.categories&&!this.isRadial,this.crossShowTimer=ue(()=>{let c=this.cross;c||(this.cross=c=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(n?"category ":"thin ")+(r.className||"")).attr({zIndex:_(r.zIndex,2)}).add(),!h.styledMode&&(c.attr({stroke:r.color||(n?Mt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":_(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&c.attr({dashstyle:r.dashStyle}))),c.show().animate({d:i},qn(r?.animation)),n&&!r.width&&c.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=t);},(!d||d.attr("visibility")==="hidden")&&r.showDelay||0);}else this.hideCrosshair();D(this,"afterDrawCrosshair",{e:t,point:e});}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),D(this,"afterHideCrosshair");}update(t,e){let i=this.chart;t=X(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,_(e,!0)&&i.redraw();}remove(t){let e=this.chart,i=this.coll,s=this.series,n=s.length;for(;n--;)s[n]&&s[n].remove(!1);pe(e.axes,this),pe(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);}}Qe.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],(function(l){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}
2function e(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new i(this));}l.compose=function(s){return s.keepProps.includes("dateTime")||(s.keepProps.push("dateTime"),s.prototype.getTimeTicks=t,J(s,"afterSetType",e)),s};class i{constructor(n){this.axis=n;}normalizeTimeTickInterval(n,o){let r=o||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],a=r[r.length-1],h=gt[a[0]],d=a[1],c,p;for(c=0;c<r.length;c++)if(h=gt[(a=r[c])[0]],d=a[1],r[c+1]){let y=(h*d[d.length-1]+gt[r[c+1][0]])/2;if(n<=y){p=y/n;break}}h===gt.year&&n<5*h&&(d=[1,2,5]);let m=Ti(n/h,d,a[0]==="year"?Math.max(Is(n/h),1):1);return {unitRange:h,count:m,unitName:a[0],match:p}}getXDateFormat(n,o){let{axis:r}=this,a=r.chart.time;return r.closestPointRange?a.getDateFormat(r.closestPointRange,n,r.options.startOfWeek,o)||a.resolveDTLFormat(o.year).main:a.resolveDTLFormat(o.day).main}}l.Additions=i;})(Cs||(Cs={}));let Qa=Cs;(function(l){function t(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new i(this));}function e(){let s=this.logarithmic;s&&(this.lin2val=function(n){return s.lin2log(n)},this.val2lin=function(n){return s.log2lin(n)});}l.compose=function(s){return s.keepProps.includes("logarithmic")||(s.keepProps.push("logarithmic"),J(s,"afterSetType",t),J(s,"afterInit",e)),s};class i{constructor(n){this.axis=n;}getLogTickPositions(n,o,r,a){let h=this.axis,d=h.len,c=h.options,p=[];if(a||(this.minorAutoInterval=void 0),n>=.5)n=Math.round(n),p=h.getLinearTickPositions(n,o,r);else if(n>=.08){let m,y,u,g,f,x,b,M=Math.floor(o);for(m=n>.3?[1,2,4]:n>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],y=M;y<r+1&&!b;y++)for(u=0,g=m.length;u<g&&!b;u++)(f=this.log2lin(this.lin2log(y)*m[u]))>o&&(!a||x<=r)&&x!==void 0&&p.push(x),x>r&&(b=!0),x=f;}else {let m=this.lin2log(o),y=this.lin2log(r),u=a?h.getMinorTickInterval():c.tickInterval,g=c.tickPixelInterval/(a?5:1),f=a?d/h.tickPositions.length:d;n=Ti(n=_(u==="auto"?null:u,this.minorAutoInterval,(y-m)*g/(f||1))),p=h.getLinearTickPositions(n,m,y).map(this.log2lin),a||(this.minorAutoInterval=n/5);}return a||(h.tickInterval=n),p}lin2log(n){return Math.pow(10,n)}log2lin(n){return Math.log(n)/Math.LN10}}l.Additions=i;})(Ms||(Ms={}));let Ja=Ms;(function(l){let t;function e(h){return this.addPlotBandOrLine(h,"plotBands")}function i(h,d){let c=this.userOptions,p=new t(this,h);if(this.visible&&(p=p.render()),p){if(this._addedPlotLB||(this._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(m=>{this.addPlotBandOrLine(m);})),d){let m=c[d]||[];m.push(h),c[d]=m;}this.plotLinesAndBands.push(p);}return p}function s(h){return this.addPlotBandOrLine(h,"plotLines")}function n(h,d,c){c=c||this.options;let p=this.getPlotLinePath({value:d,force:!0,acrossPanes:c.acrossPanes}),m=[],y=this.horiz,u=!S(this.min)||!S(this.max)||h<this.min&&d<this.min||h>this.max&&d>this.max,g=this.getPlotLinePath({value:h,force:!0,acrossPanes:c.acrossPanes}),f,x=1,b;if(g&&p)for(u&&(b=g.toString()===p.toString(),x=0),f=0;f<g.length;f+=2){let M=g[f],v=g[f+1],P=p[f],k=p[f+1];(M[0]==="M"||M[0]==="L")&&(v[0]==="M"||v[0]==="L")&&(P[0]==="M"||P[0]==="L")&&(k[0]==="M"||k[0]==="L")&&(y&&P[1]===M[1]?(P[1]+=x,k[1]+=x):y||P[2]!==M[2]||(P[2]+=x,k[2]+=x),m.push(["M",M[1],M[2]],["L",v[1],v[2]],["L",k[1],k[2]],["L",P[1],P[2]],["Z"])),m.isFlat=b;}return m}function o(h){this.removePlotBandOrLine(h);}function r(h){let d=this.plotLinesAndBands,c=this.options,p=this.userOptions;if(d){let m=d.length;for(;m--;)d[m].id===h&&d[m].destroy();[c.plotLines||[],p.plotLines||[],c.plotBands||[],p.plotBands||[]].forEach(function(y){for(m=y.length;m--;)y[m]?.id===h&&pe(y,y[m]);});}}function a(h){this.removePlotBandOrLine(h);}l.compose=function(h,d){let c=d.prototype;return c.addPlotBand||(t=h,Y(c,{addPlotBand:e,addPlotLine:s,addPlotBandOrLine:i,getPlotBandPath:n,removePlotBand:o,removePlotLine:a,removePlotBandOrLine:r})),d};})(Ps||(Ps={}));let tl=Ps;class zi{static compose(t,e){return J(t,"afterInit",function(){this.labelCollectors.push(()=>{let i=[];for(let s of this.axes)for(let{label:n,options:o}of s.plotLinesAndBands)n&&!o?.label?.allowOverlap&&i.push(n);return i});}),tl.compose(zi,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id;}render(){D(this,"render");let{axis:t,options:e}=this,{horiz:i,logarithmic:s}=t,{color:n,events:o,zIndex:r=0}=e,{renderer:a,time:h}=t.chart,d={},c=h.parse(e.to),p=h.parse(e.from),m=h.parse(e.value),y=e.borderWidth,u=e.label,{label:g,svgElem:f}=this,x=[],b,M=B(p)&&B(c),v=B(m),P=!f,k={class:"highcharts-plot-"+(M?"band ":"line ")+(e.className||"")},w=M?"bands":"lines";if(!t.chart.styledMode&&(v?(k.stroke=n||"#999999",k["stroke-width"]=_(e.width,1),e.dashStyle&&(k.dashstyle=e.dashStyle)):M&&(k.fill=n||"#e6e9ff",y&&
2(k.stroke=e.borderColor,k["stroke-width"]=y))),d.zIndex=r,w+="-"+r,(b=t.plotLinesAndBandsGroups[w])||(t.plotLinesAndBandsGroups[w]=b=a.g("plot-"+w).attr(d).add()),f||(this.svgElem=f=a.path().attr(k).add(b)),B(m))x=t.getPlotLinePath({value:s?.log2lin(m)??m,lineWidth:f.strokeWidth(),acrossPanes:e.acrossPanes});else {if(!(B(p)&&B(c)))return;x=t.getPlotBandPath(s?.log2lin(p)??p,s?.log2lin(c)??c,e);}return !this.eventsAdded&&o&&(tt(o,(I,N)=>{f?.on(N,L=>{o[N].apply(this,[L,this]);});}),this.eventsAdded=!0),(P||!f.d)&&x?.length?f.attr({d:x}):f&&(x?(f.show(),f.animate({d:x})):f.d&&(f.hide(),g&&(this.label=g=g.destroy()))),u&&(B(u.text)||B(u.formatter))&&x?.length&&t.width>0&&t.height>0&&!x.isFlat?(u=X(F({align:i&&M?"center":void 0,x:i?!M&&4:10,verticalAlign:!i&&M?"middle":void 0,y:i?M?16:10:M?6:-4,rotation:i&&!M?90:0},M?{inside:!0}:{}),u),this.renderLabel(u,x,M,r)):g&&g.hide(),this}renderLabel(t,e,i,s){let n=this.axis,o=n.chart.renderer,r=t.inside,a=this.label;a||(this.label=a=o.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:s}),n.chart.styledMode||a.css(X({color:n.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!r?"":"ellipsis"},t.style)),a.add());let h=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],d=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],c=je(h),p=je(d),m=ke(h)-c;a.align(t,!1,{x:c,y:p,width:m,height:ke(d)-p}),a.alignAttr.y-=o.fontMetrics(a).b,(!a.alignValue||a.alignValue==="left"||B(r))&&a.css({width:(t.style?.width||(i&&r?m:a.rotation===90?n.height-(a.alignAttr.y-n.top):(t.clip?n.width+n.left:n.chart.chartWidth)-a.alignAttr.x))+"px"}),a.show(!0);}getLabelText(t){return B(t.formatter)?t.formatter.call(this,this):t.text}destroy(){pe(this.axis.plotLinesAndBands,this),delete this.axis,Ne(this);}}let{animObject:el}=Xt,{format:Jn}=ce,{composed:il,dateFormats:sl,doc:to,isSafari:nl}=T,{distribute:ol}=Ii,Hi=l=>{clearTimeout(l.hideTimer),clearTimeout(l.showTimer);};class qs{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||jt(this);return (e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),Oi(this.container)),Bs(this.hideTimer),Hi(this);}getAnchor(t,e){let i,{chart:s,pointer:n}=this,o=s.inverted,r=s.plotTop,a=s.plotLeft;if(t=jt(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)e.chartX===void 0&&(e=n.normalize(e)),i=[e.chartX-a,e.chartY-r];else if(t[0].tooltipPos)i=t[0].tooltipPos;else {let d=0,c=0;t.forEach(function(p){let m=p.pos(!0);m&&(d+=m[0],c+=m[1]);}),d/=t.length,c/=t.length,this.shared&&t.length>1&&e&&(o?d=e.chartX:c=e.chartY),i=[d-a,c-r];}let h={point:t[0],ret:i};return D(this,"getAnchor",h),h.ret.map(Math.round)}getClassName(t,e,i){let s=this.options,n=t.series,o=n.options;return [s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+_(t.colorIndex,n.colorIndex),o?.className].filter(lt).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,n=this.options,o=this.split&&this.allowShared,r=this.container,a=this.chart.renderer;if(this.label){let h=!this.label.hasClass("highcharts-label");(!o&&h||o&&!h)&&this.destroy();}if(!this.label){if(this.outside){let h=this.chart,d=h.options.chart.style,c=mi.getRendererType();this.container=r=T.doc.createElement("div"),r.className="highcharts-tooltip-container "+(h.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),nt(r,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||
20,(d?.zIndex||0)+3)}),this.renderer=a=new c(r,0,0,d,void 0,void 0,a.styledMode);}if(o?this.label=a.g("tooltip"):(this.label=a.label("",t,e,n.shape||"callout",void 0,void 0,n.useHTML,void 0,"tooltip").attr({padding:n.padding,r:n.borderRadius}),s||this.label.attr({fill:n.backgroundColor,"stroke-width":n.borderWidth||0}).css(n.style).css({pointerEvents:n.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let h=this.label;[h.xSetter,h.ySetter].forEach((d,c)=>{h[c?"ySetter":"xSetter"]=p=>{d.call(h,i.distance),h[c?"y":"x"]=p,r&&(r.style[c?"top":"left"]=`${p}px`);};});}this.label.attr({zIndex:8}).shadow(n.shadow??!n.fixed).add();}return r&&!r.parentElement&&T.doc.body.appendChild(r),this.label}getPlayingField(){let{body:t,documentElement:e}=to,{chart:i,distance:s,outside:n}=this;return {width:n?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:n?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let{distance:s,chart:n,outside:o,pointer:r}=this,{inverted:a,plotLeft:h,plotTop:d,polar:c}=n,{plotX:p=0,plotY:m=0}=i,y={},u=a&&i.h||0,{height:g,width:f}=this.getPlayingField(),x=r.getChartPosition(),b=G=>{let F=G==="x";return [G,F?f:g,F?t:e].concat(o?[F?t*x.scaleX:e*x.scaleY,F?x.left-s+(p+h)*x.scaleX:x.top-s+(m+d)*x.scaleY,0,F?f:g]:[F?t:e,F?p+h:m+d,F?h:d,F?h+n.plotWidth:d+n.plotHeight])},M=b("y"),v=b("x"),P,k=!!i.negative;!c&&n.hoverSeries?.yAxis?.reversed&&(k=!k);let w=!this.followPointer&&_(i.ttBelow,!c&&!a===k),I=function(G,F,$,V,j,ut,mt){let qt=o?G==="y"?s*x.scaleY:s*x.scaleX:s,K=($-V)/2,et=V<j-s,rt=j+s+V<F,st=j-qt-$+K,ct=j+qt-K;if(w&&rt)y[G]=ct;else if(!w&&et)y[G]=st;else if(et)y[G]=Math.min(mt-V,st-u<0?st:st-u);else {if(!rt)return y[G]=0,!1;y[G]=Math.max(ut,ct+u+$>F?ct:ct+u);}},N=function(G,F,$,V,j){if(j<s||j>F-s)return !1;j<$/2?y[G]=1:j>F-V/2?y[G]=F-V-2:y[G]=j-$/2;},L=function(G){[M,v]=[v,M],P=G;},W=()=>{I.apply(0,M)!==!1?N.apply(0,v)!==!1||P||(L(!0),W()):P?y.x=y.y=0:(L(!0),W());};return (a&&!c||this.len>1)&&L(),W(),o&&(y.x-=x.left,y.y-=x.top),y}getFixedPosition(t,e,i){let s=i.series,{chart:n,options:o,split:r}=this,a=o.position,h=a.relativeTo,d=o.shared||s?.yAxis?.isRadial&&(h==="pane"||!h)?"plotBox":h,c=d==="chart"?n.renderer:n[d]||n.getClipBox(s,!0);return {x:c.x+(c.width-t)*Vt(a.align)+a.x,y:c.y+(c.height-e)*Vt(a.verticalAlign)+(!r&&a.y||0)}}hide(t){let e=this;Hi(this),t=_(t,this.options.hideDelay),this.isHidden||(this.hideTimer=ue(function(){let i=e.getLabel();e.getLabel().animate({opacity:0}
2,{duration:t&&150,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:n,options:o}=this,r=el(!n&&!this.isHidden&&!o.fixed&&o.animation),a=n||(this.len||0)>1,h={x:t,y:e};a?h.anchorX=h.anchorY=NaN:(h.anchorX=i,h.anchorY=s),r.step=()=>this.drawTracker(),this.getLabel().animate(h,r);}refresh(t,e){let i=this,{chart:s,options:n,pointer:o,shared:r}=this,a=jt(t),h=a[0],d=n.format,c=n.formatter||i.defaultFormatter,p=s.styledMode,m=i.allowShared;if(!n.enabled||!h.series)return;Hi(this),i.allowShared=!(!ft(t)&&t.series&&t.series.noSharedTooltip),m=m&&!i.allowShared,i.followPointer=!i.split&&h.series.tooltipOptions.followPointer;let y=i.getAnchor(t,e),u=y[0],g=y[1];r&&i.allowShared&&(o.applyInactiveState(a),a.forEach(b=>b.setState("hover")),h.points=a),this.len=a.length;let f=lt(d)?Jn(d,h,s):c.call(h,i,h);h.points=void 0;let x=h.series;this.distance=_(x.tooltipOptions.distance,16),f===!1?this.hide():this.showTimer=ue(()=>{if(i.split&&i.allowShared)i.renderSplit(f,a);else {let b=u,M=g;if(e&&o.isDirectTouch&&(b=e.chartX-s.plotLeft,M=e.chartY-s.plotTop),!(s.polar||x.options.clip===!1||a.some(v=>o.isDirectTouch||v.series.shouldShowTooltip(b,M))))return void i.hide();{let v=i.getLabel(m&&i.tt||{});(!n.style.width||p)&&v.css({width:(this.outside?this.getPlayingField():s.spacingBox).width-2*n.padding+"px"}),v.attr({class:i.getClassName(h),text:ft(f)?f.join(""):f}),this.outside&&v.attr({x:kt(v.x||0,0,this.getPlayingField().width-(v.width||0)-1)}),p||v.attr({stroke:n.borderColor||h.color||x.color||"#666666"}),i.updatePosition({plotX:u,plotY:g,negative:h.negative,ttBelow:h.ttBelow,series:x,h:y[2]||0});}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1;},i.isHidden&&n.showDelay||0),D(this,"refresh");}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:n,chartHeight:o,plotHeight:r,plotLeft:a,plotTop:h,scrollablePixelsY:d=0,scrollablePixelsX:c,styledMode:p},distance:m,options:y,options:{fixed:u,position:g,positioner:f},pointer:x}=i,{scrollLeft:b=0,scrollTop:M=0}=s.scrollablePlotArea?.scrollingContainer||{},v=i.outside&&typeof c!="number"?to.documentElement.getBoundingClientRect():{left:b,right:b+n,top:M,bottom:M+o},P=i.getLabel(),k=this.renderer||s.renderer,w=!!s.xAxis[0]?.opposite,{left:I,top:N}=x.getChartPosition(),L=f||u,W=h+M,G=0,F=r-d,$=function(K,et,rt,st,ct=[0,0],Nt=!0){let dt,Ct;if(rt.isHeader)Ct=w?0:F,dt=kt(ct[0]-K/2,v.left,v.right-K-(i.outside?I:0));else if(u&&rt){let Rt=i.getFixedPosition(K,et,rt);dt=Rt.x,Ct=Rt.y-W;}else Ct=ct[1]-W,dt=kt(dt=Nt?ct[0]-K-m:ct[0]+m,Nt?dt:v.left,v.right);return {x:dt,y:Ct}};lt(t)&&(t=[!1,t]);let V=t.slice(0,e.length+1).reduce(function(K,et,rt){if(et!==!1&&et!==""){let st=e[rt-1]||{isHeader:!0,plotX:e[0].plotX,plotY:r,series:{}},ct=st.isHeader,Nt=ct?i:st.series,dt=Nt.tt=(function(ye,Yt,Se){let se=ye,{isHeader:Fe,series:ui}=Yt,xe=ui.tooltipOptions||y;if(!se){let ii={padding:xe.padding,r:xe.borderRadius};p||(ii.fill=xe.backgroundColor,ii["stroke-width"]=xe.borderWidth??(u&&!Fe?0:1)),se=k.label("",0,0,xe[Fe?"headerShape":"shape"]||(u&&!Fe?"rect":"callout"),void 0,void 0,xe.useHTML).addClass(i.getClassName(Yt,!0,Fe)).attr(ii).add(P);}return se.isActive=!0,se.attr({text:Se}),p||se.css(xe.style).attr({stroke:xe.borderColor||Yt.color||ui.color||"#333333"}),se})(Nt.tt,st,et.toString()),Ct=dt.getBBox(),Rt=Ct.width+dt.strokeWidth();ct&&(G=Ct.height,F+=G,w&&(W-=G));let{anchorX:Kt,anchorY:ei}=(function(ye){let Yt,Se,{isHeader:se,plotX:Fe=0,plotY:ui=0,series:xe}=ye;if(se)Yt=Math.max(a+Fe,a),Se=h+r/2;else {let{xAxis:ii,yAxis:Io}=xe;Yt=ii.pos+kt(Fe,-m,ii.len+m),xe.shouldShowTooltip(0,Io.pos-h+ui,{ignoreX:!0})&&(Se=Io.pos+ui);}return {anchorX:Yt=kt(Yt,v.left-m,v.right+m),anchorY:Se}})(st);if(typeof ei=="number"){let ye=Ct.height+1,Yt=(f||$).call(i,Rt,ye,st,i,[Kt,ei]);K.push({align:L?0:void 0,anchorX:Kt,anchorY:ei,boxWidth:Rt,point:st,rank:_(Yt.rank,+!!ct),size:ye,target:Yt.y,tt:dt,x:Yt.x});}else dt.isActive=!1;}return K},[]);!L&&V.some(K=>{let{outside:et}=i,rt=(et?I:0)+K.anchorX;return rt<v.left&&rt+K.boxWidth<v.right||rt<I-v.left+K.boxWidth&&v.right-rt>rt})&&(V=V.map(K=>{let{x:et,y:rt}=$.call(this,K.boxWidth,K.size,K.point,void 0,[K.anchorX,K.anchorY],!1);return Y(K,{target:rt,x:et})})),i.cleanSplit(),ol(V,F);let j={left:I,right:I};
2V.forEach(function(K){let{x:et,boxWidth:rt,isHeader:st}=K;!st&&(i.outside&&I+et<j.left&&(j.left=I+et),!st&&i.outside&&j.left+rt>j.right&&(j.right=I+et));}),V.forEach(function(K){let{x:et,anchorX:rt,anchorY:st,pos:ct,point:{isHeader:Nt}}=K,dt={visibility:ct===void 0?"hidden":"inherit",x:et,y:(ct||0)+W+(u&&g.y||0),anchorX:rt,anchorY:st};if(i.outside&&et<rt){let Ct=I-j.left;Ct>0&&(Nt||(dt.x=et+Ct,dt.anchorX=rt+Ct),Nt&&(dt.x=(j.right-j.left)/2,dt.anchorX=rt+Ct));}K.tt.attr(dt);});let{container:ut,outside:mt,renderer:qt}=i;if(mt&&ut&&qt){let{width:K,height:et,x:rt,y:st}=P.getBBox();qt.setSize(K+rt,et+st,!1),ut.style.left=j.left+"px",ut.style.top=N+"px";}nl&&P.attr({opacity:P.opacity===1?.999:1});}drawTracker(){let t=this;if(!this.shouldStickOnContact()){t.tracker&&(t.tracker=t.tracker.destroy());return}let e=t.chart,i=t.label,s=t.shared?e.hoverPoints:e.hoverPoint;if(!i||!s)return;let n={x:0,y:0,width:0,height:0},o=this.getAnchor(s),r=i.getBBox();o[0]+=e.plotLeft-(i.translateX||0),o[1]+=e.plotTop-(i.translateY||0),n.x=Math.min(0,o[0]),n.y=Math.min(0,o[1]),n.width=o[0]<0?Math.max(Math.abs(o[0]),r.width-o[0]):Math.max(Math.abs(o[0]),r.width),n.height=o[1]<0?Math.max(Math.abs(o[1]),r.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),r.height),t.tracker?t.tracker.attr(n):(t.tracker=i.renderer.rect(n).addClass("highcharts-tracker").add(i),J(t.tracker.element,"mouseenter",()=>Hi(t)),e.styledMode||t.tracker.attr({fill:"rgba(0,0,0,0)"}));}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,s=i.tooltipOptions,n=i.xAxis,o=n?.dateTime,r={isFooter:e,point:t},a=s.xDateFormat||"",h=s[e?"footerFormat":"headerFormat"];return D(this,"headerFormatter",r,function(d){if(o&&!a&&S(t.key)&&(a=o.getXDateFormat(t.key,s.dateTimeLabelFormats)),o&&a){if(ht(a)){let c=a;sl[0]=p=>i.chart.time.dateFormat(c,p),a="%0";}
2(t.tooltipDateKeys||["key"]).forEach(c=>{h=h.replace(RegExp("point\\."+c+"([ \\)}])"),`(point.${c}:${a})$1`);});}i.chart.styledMode&&(h=this.styledModeFormat(h)),d.text=Jn(h,t,this.chart);}),r.text||""}update(t){this.destroy(),this.init(this.chart,X(!0,this.options,t));}updatePosition(t){let{chart:e,container:i,distance:s,options:n,pointer:o,renderer:r}=this,{height:a=0,width:h=0}=this.getLabel(),{fixed:d,positioner:c}=n,{left:p,top:m,scaleX:y,scaleY:u}=o.getChartPosition(),g=(c||d&&this.getFixedPosition||this.getPosition).call(this,h,a,t,this),f=T.doc,x=(t.plotX||0)+e.plotLeft,b=(t.plotY||0)+e.plotTop,M;if(r&&i){let{scrollLeft:v=0,scrollTop:P=0}=e.scrollablePlotArea?.scrollingContainer||{};g.x+=v+p,g.y+=P+m,M=(n.borderWidth||0)+2*s+2,r.setSize(kt(h+M,0,f.documentElement.clientWidth)-1,a+M,!1),(y!==1||u!==1)&&(nt(i,{transform:`scale(${y}, ${u})`}),x*=y,b*=u),x+=p-g.x,b+=m-g.y;}this.move(Math.round(g.x),Math.round(g.y||0),x,b);}}(ot=qs||(qs={})).compose=function(l){me(il,"Core.Tooltip")&&J(l,"afterInit",function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new ot(t,t.options.tooltip,this));});};let eo=qs,{animObject:rl}=Xt,{defaultOptions:al}=he,{format:ll}=ce;class gi{constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=le()),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,D(this,"afterInit");}animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate(s==="dataLabel"?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:e);}),i.plural.forEach(function(s){t[s].forEach(function(n){n.element&&n.animate(Y({x:t.startXPos},n.startYPos?{x:n.startXPos,y:n.startYPos}:{}));});});}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return Y(this,t=gi.prototype.optionsToObject.call(this,t)),this.options?this.options=i.chart.options.chart.allowMutatingData?Y(this.options,t):X(this.options,t):this.options=t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=gi.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&e===void 0&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),this.x===void 0&&i?this.x=e??i.autoIncrement():S(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):typeof this.x=="string"&&(e??(e=i.chart.time.parse(this.x)),S(e)&&(this.x=e)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,n=i.hoverPoints,o=rl(t.series.chart.renderer.globalAnimation),r=()=>{for(let a in (t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(ge(t),t.destroyElements()),t)delete t[a];};t.legendItem&&i.legend.destroyItem(t),n&&(t.setState(),pe(n,t),n.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s?.enabled?(this.animateBeforeDestroy(),ue(r,o.duration)):r(),i.pointCount--;}this.destroyed=!0;}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(s){e[s]=e[s].destroy();}),i.plural.forEach(function(s){e[s].forEach(function(n){n?.element&&n.destroy();}),delete e[s];});}firePointEvent(t,e,i){let s=this,n=this.series.options;s.manageEvent(t),t==="click"&&n.allowPointSelect&&(i=function(o){!s.destroyed&&s.select&&s.select(null,o.ctrlKey||o.metaKey||o.shiftKey);}),D(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",""):"")}getGraphicalProps(t){let e,i,s=this,n=[],o={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","connector"),t.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper"),i=n.length;i--;)s[e=n[i]]&&o.singular.push(e);return ["graphic","dataLabel"].forEach(function(r){let a=r+"s";t[r]&&s[a]&&o.plural.push(a);}),o}getNestedProperty(t){if(t)return t.indexOf("custom.")===0?_i(t,this.options):this[t]}getZone(){let t=this.series,e=t.zones,i=t.zoneAxis||"y",s,n=0;for(s=e[0];this[i]>=s.value;)s=e[++n];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 (S(this.x)||this.x instanceof Date)&&S(this.y)}optionsToObject(t){let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],n=s.length,o={},r,a=0,h=0;if(S(t)||t===null)o[s[0]]=t;else if(ft(t))for(!i&&t.length>n&&((r=typeof t[0])=="string"?e.xAxis?.dateTime?o.x=e.chart.time.parse(t[0]):o.name=t[0]:r==="number"&&(o.x=t[0]),a++);h<n;)i&&t[a]===void 0||(s[h].indexOf(".")>0?gi.prototype.setNestedProperty(o,t[a],s[h]):o[s[h]]=t[a]),a++,h++;else typeof t=="object"&&(o=t,t.dataLabels&&(e.hasDataLabels=()=>!0),t.marker&&(e._hasPointMarkers=!0));return o}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:s}=this,{chart:n,xAxis:o,yAxis:r}=s,a=0,h=0;if(S(i)&&S(e))return t&&(a=o?o.pos:n.plotLeft,h=r?r.pos:n.plotTop),n.inverted&&o&&r?[r.len-e+h,o.len-i+a]:[i+a,e+h]}}resolveColor(){let t=this.series,e=t.chart.options.chart,i=t.chart.styledMode,s,n,o=e.colorCount,r;delete this.nonZonedColor,t.options.colorByPoint?(i||(s=(n=t.options.colors||t.chart.options.colors)[t.colorCounter],o=n.length),r=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)):(i||(s=t.color),r=t.colorIndex),this.colorIndex=_(this.options.colorIndex,r),this.color=_(this.options.color,s);}setNestedProperty(t,e,i){let s=i.split(".");return s.some(n=>n==="__proto__"||n==="constructor")||s.reduce(function(n,o,r,a){let h=a.length-1===r;return n[o]=h?e:ht(n[o],!0)&&Object.hasOwnProperty.call(n,o)?n[o]:{},n[o]},t),t}shouldDraw(){return !this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:n="",valuePrefix:o="",valueSuffix:r=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEac
2h(a=>{a="{point."+a,(o||r)&&(t=t.replace(RegExp(a+"}","g"),o+a+"}"+r)),t=t.replace(RegExp(a+"}","g"),a+":,."+n+"f}");}),ll(t,this,e)}update(t,e,i,s){let n,o=this,r=o.series,a=o.graphic,h=r.chart,d=r.options,c=d.data;function p(){o.applyOptions(t);let m=a&&o.hasMockGraphic,y=o.y===null?!m:m;a&&y&&(o.graphic=a.destroy(),delete o.hasMockGraphic),ht(t,!0)&&(a?.element&&t&&t.marker&&t.marker.symbol!==void 0&&(o.graphic=a.destroy()),t?.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy())),n=o.index;let u={};for(let g of r.dataColumnKeys())u[g]=o[g];r.dataTable.setRow(u,n),c&&!r.processedData&&(c[n]=ht(c[n],!0)||ht(t,!0)?o.options:t??c[n]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(h.isDirtyBox=!0),d.legendType==="point"&&(h.isDirtyLegend=!0),e&&h.redraw(i);}e=_(e,!0),s===!1?p():o.firePointEvent("update",{options:t},p);}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e);}select(t,e){let i=this,s=i.series,n=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.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEac
2h(function(o){let r=o.series;o.selected&&o!==i&&(o.selected=o.options.selected=!1,r.options.data[r.data.indexOf(o)]=o.options,o.setState(n.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),o.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(){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=X(this.series.options.point,this.options),i=e.events?.[t];$e(i)&&(!this.hcEvents?.[t]||this.hcEvents?.[t]?.map(s=>s.fn).indexOf(i)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=J(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(ge(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent);}setState(t,e){let i=this.series,s=this.state,n=i.options.states[t||"normal"]||{},o=al.plotOptions[i.type].marker&&i.options.marker,r=o&&o.enabled===!1,a=o?.states?.[t||"normal"]||{},h=a.enabled===!1,d=this.marker||{},c=i.chart,p=o&&i.markerAttribs,m=i.halo,y,u,g,f=i.stateMarkerGraphic,x;if((t=t||"")===this.state&&!e||this.selected&&t!=="select"||n.enabled===!1||t&&(h||r&&a.enabled===!1)||t&&d.states&&d.states[t]&&d.states[t].enabled===!1)return;if(this.state=t,p&&(y=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!c.styledMode){u=i.pointAttribs(this,t),g=_(c.options.chart.animation,n.animation);let P=u.opacity;i.options.inactiveOtherPoints&&S(P)&&(this.dataLabels||[]).forEach(function(k){k&&!k.hasClass("highcharts-data-label-hidden")&&(k.animate({opacity:P},g),k.connector&&k.connector.animate({opacity:P},g));}),this.graphic.animate(u,g);}y&&this.graphic.animate(y,_(c.options.chart.animation,a.animation,o.animation)),f&&f.hide();}else t&&a&&(x=d.symbol||i.symbol,f&&f.currentSymbol!==x&&(f=f.destroy()),y&&(f?f[e?"animate":"attr"]({x:y.x,y:y.y}):x&&(i.stateMarkerGraphic=f=c.renderer.symbol(x,y.x,y.y,y.width,y.height,X(o,a)).add(i.markerGroup),f.currentSymbol=x)),!c.styledMode&&f&&this.state!=="inactive"&&f.attr(i.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this,f.addClass(this.getClassName(),!0));let b=n.halo,M=this.graphic||f,v=M?.visibility||"inherit";b?.size&&M&&v!=="hidden"&&!this.isCluster?(m||(i.halo=m=c.renderer.path().add(M.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),m.attr({class:"highcharts-halo highcharts-color-"+_(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:v,zIndex:-1}),m.point=this,c.styledMode||m.attr(Y({fill:this.color||i.color,"fill-opacity":b.opacity},bt.filterUserAttributes(b.attributes||{})))):m?.point?.haloPath&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),D(this,"afterSetState",{state:t});}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(ae(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let Re=gi,{parse:hl}=Mt,{charts:Ks,composed:cl,isTouchDevice:dl}=T,io=(l,t)=>!B(t)||l[`${t}Key`];class Lt{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach(s=>{let n=s.series;e.push(n),n.linkedParent&&e.push(n.linkedParent),n.linkedSeries&&e.push.apply(e,n.linkedSeries),n.navigatorSeries&&e.push(n.navigatorSeries),n.boosted&&n.markerGroup&&e.push.apply(e,this.chart.series.filter(o=>o.markerGroup===n.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=[],!T.chartCount&&(Lt.unbindDocumentMouseUp.forEach(e=>e.unbind()),Lt.unbindDocumentMouseUp.length=0,Lt.unbindDocumentTouchEnd&&(Lt.unbindDocumentTouchEnd=Lt.unbindDocumentTouchEnd())),tt(t,function(e,i){t[i]=void 0;});}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return D(this,"getSelectionMarkerAttrs",i,s=>{let n,{chart:o,zoomHor:r,zoomVert:a}=this,{mouseDownX:h=0,mouseDownY:d=0}=o,c=s.attrs;c.x=o.plotLeft,c.y=o.plotTop,c.width=r?1:o.plotWidth,c.height=a?1:o.plotHeight,r&&(c.width=Math.max(1,Math.abs(n=t-h)),c.x=(n>0?0:n)+h),a&&(c.height=Math.max(1,Math.abs(n=e-d)),c.y=(n>0?0:n)+d);}),i}drag(t){let{chart:e}
2=this,{mouseDownX:i=0,mouseDownY:s=0}=e,{panning:n,panKey:o,selectionMarkerFill:r}=e.options.chart,a=e.plotLeft,h=e.plotTop,d=e.plotWidth,c=e.plotHeight,p=ht(n)?n.enabled:n,m=o&&t[`${o}Key`],y=t.chartX,u=t.chartY,g,f=this.selectionMarker;if((!f||!f.touch)&&(y<a?y=a:y>a+d&&(y=a+d),u<h?u=h:u>h+c&&(u=h+c),this.hasDragged=Math.sqrt(Math.pow(i-y,2)+Math.pow(s-u,2)),this.hasDragged>10)){g=e.isInsidePlot(i-a,s-h,{visiblePlotOnly:!0});let{shapeType:x,attrs:b}=this.getSelectionMarkerAttrs(y,u);this.hasZoom&&g&&!m&&!f&&(this.selectionMarker=f=e.renderer[x](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:r||hl("#334eff").setOpacity(.25).get()})),f&&f.attr(b),g&&!f&&p&&io(t,o)&&e.pan(t,n);}}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 D(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let n of i.axes)n.isPanning&&(n.isPanning=!1,(n.options.startOnTick||n.options.endOnTick||n.series.some(o=>o.boosted))&&(n.forceRedraw=!0,n.setExtremes(n.userMin,n.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let n=this.getSelectionBox(s);i.transform({axes:i.axes.filter(o=>o.zoomEnabled&&(o.coll==="xAxis"&&this.zoomX||o.coll==="yAxis"&&this.zoomY)),selection:F({originalEvent:t,xAxis:[],yAxis:[]},n),from:n});}S(i.index)&&(this.selectionMarker=s.destroy());}i&&S(i.index)&&(nt(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(n){var o;let r,a,h,d=!(n.noSharedTooltip&&e)&&0>n.options.findNearestPointBy.indexOf("y"),c=n.searchPoint(i,d);ht(c,!0)&&c.series&&(!ht(s,!0)||(r=(o=s).distX-c.distX,a=o.dist-c.dist,h=c.series.group?.zIndex-o.series.group?.zIndex,(r!==0&&e?r:a!==0?a:h!==0?h:o.series.index>c.series.index?-1:1)>0))&&(s=c);}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,n=t.shapeArgs;if(i&&s){let o=t.clientX??t.plotX??0,r=t.plotY||0;return t.isNode&&n&&S(n.x)&&S(n.y)&&(o=n.x,r=n.y),e?{chartX:s.len+s.pos-r,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:r+s.pos}}
2if(n?.x&&n.y)return {chartX:n.x,chartY:n.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=Sn(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,n,o){let r=[],a=function(m){return m.visible&&!(!n&&m.directTouch)&&_(m.options.enableMouseTracking,!0)},h=e,d,c={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:n};D(this,"beforeGetHoverData",c),d=h&&!h.stickyTracking?[h]:i.filter(m=>m.stickyTracking&&(c.filter||a)(m));let p=s&&t||!o?t:this.findNearestKDPoint(d,n,o);return h=p?.series,p&&(n&&!h.noSharedTooltip?(d=i.filter(function(m){return c.filter?c.filter(m):a(m)&&!m.noSharedTooltip})).forEach(function(m){let y=m.options?.nullInteraction,u=Oe(m.points,function(g){return g.x===p.x&&(!g.isNull||!!y)});ht(u)&&(m.boosted&&m.boost&&(u=m.boost.getPoint(u)),r.push(u));}):r.push(p)),D(this,"afterGetHoverData",c={hoverPoint:p}),{hoverPoint:c.hoverPoint,hoverSeries:h,hoverPoints:r}}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=Gt(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(),D(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 n=s.pageX-e.left,o=s.pageY-e.top;return Y(t,{chartX:Math.round(n/=e.scaleX),chartY:Math.round(o/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),n=e.plotLeft,o=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(D(i.series,"click",Y(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(Y(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-n,s.chartY-o,{visiblePlotOnly:!0})&&D(e,"click",s)));}onContainerMouseDown(t){let e=(1&(t.buttons||t.button))==1;t=this.normalize(t),T.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}=Ks[_(Lt.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,n=this.normalize(t,s);!s||e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(n)||n.target!==e.container.ownerDocument&&this.inClass(n.target,"highcharts-tracker")||this.reset();}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),Ks[_(Lt.hoverChartIndex,-1)]?.pointer?.drop(t);}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:n}=e,o=[].map.call(t.touches||[],c=>e.normalize(c)),r=o.length,a=r===1&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),h=i.tooltip,d=r===1&&_(h?.options.followTouchMove,!0);r>1?e.initiated=!0:d&&(e.initiated=!1),s&&e.initiated&&!a&&t.cancelable!==!1&&t.preventDefault(),t.type==="touchstart"?(e.pinchDown=o,e.res=!0,i.mouseDownX=t.chartX):d?this.runPointActions(e.normalize(t)):n&&(D(i,"touchpan",{originalEvent:t,touches:o},()=>{let c=p=>{let m=p[0],y=p[1]||m;return {x:m.chartX,y:m.chartY,width:y.chartX-m.chartX,height:y.chartY-m.chartY}};i.transform({axes:i.axes.filter(p=>p.zoomEnabled&&(this.zoomHor&&p.horiz||this.zoomVert&&!p.horiz)),to:c(o),from:c(n),trigger:t.type});}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=o;}reset(t,e){let i=this.chart,s=i.hoverSeries,n=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r?.shared?o:n;
2t&&a&&jt(a).forEach(function(h){h.series.isCartesian&&h.plotX===void 0&&(t=!1);}),t?r&&a&&jt(a).length&&(r.refresh(a),r.shared&&o?o.forEach(function(h){h.setState(h.state,!0),h.series.isCartesian&&(h.series.xAxis.crosshair&&h.series.xAxis.drawCrosshair(null,h),h.series.yAxis.crosshair&&h.series.yAxis.drawCrosshair(null,h));}):n&&(n.setState(n.state,!0),i.axes.forEach(function(h){h.crosshair&&n.series[h.coll]===h&&h.drawCrosshair(null,n);}))):(n&&n.onMouseOut(),o&&o.forEach(function(h){h.setState();}),s&&s.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(h){h.hideCrosshair();}),i.hoverPoints=i.hoverPoint=void 0);}runPointActions(t,e,i){let s=this.chart,n=s.series,o=s.tooltip?.options.enabled?s.tooltip:void 0,r=!!o&&o.shared,a=e||s.hoverPoint,h=a?.series||s.hoverSeries,d=(!t||t.type!=="touchmove")&&(!!e||h?.directTouch&&this.isDirectTouch),c=this.getHoverData(a,h,n,d,r,t);a=c.hoverPoint,h=c.hoverSeries;let p=c.hoverPoints,m=h?.tooltipOptions.followPointer&&!h.tooltipOptions.split,y=r&&h&&!h.noSharedTooltip;if(a&&(i||a!==s.hoverPoint||o?.isHidden)){if((s.hoverPoints||[]).forEach(function(u){p.indexOf(u)===-1&&u.setState();}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(u){u.setState("hover");}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!a.series)return;s.hoverPoints=p,s.hoverPoint=a,a.firePointEvent("mouseOver",void 0,()=>{o&&a&&o.refresh(y?p:a,t);});}else if(m&&o&&!o.isHidden){let u=o.getAnchor([{}],t);s.isInsidePlot(u[0],u[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:u[0],plotY:u[1]});}this.unDocMouseMove||(this.unDocMouseMove=J(s.container.ownerDocument,"mousemove",u=>Ks[Lt.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(u)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(u){let g,f=u.crosshair?.snap??!0;f&&((g=s.hoverPoint)&&g.series[u.coll]===u||(g=Oe(p,x=>x.series?.[u.coll]===u))),g||!f?u.drawCrosshair(t,g):u.hideCrosshair();});}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument,i=n=>n.parentElement||n.getRootNode()?.host?.parentElement;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(J(t,"mouseenter",this.onContainerMouseEnter.bind(this)),J(t,"mouseleave",this.onContainerMouseLeave.bind(this))),Lt.unbindDocumentMouseUp.some(n=>n.doc===e)||Lt.unbindDocumentMouseUp.push({doc:e,unbind:J(e,"mouseup",this.onDocumentMouseUp.bind(this))});let s=i(this.chart.renderTo);for(;s&&s.tagName!=="BODY";)this.eventsToUnbind.push(J(s,"scroll",()=>{delete this.chartPosition;})),s=i(s);this.eventsToUnbind.push(J(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),J(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Lt.unbindDocumentTouchEnd||(Lt.unbindDocumentTouchEnd=J(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),J(this.chart,"redraw",this.setPointerCapture.bind(this));}setPointerCapture(){if(!dl)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=_(e.options.tooltip?.followTouchMove,!0)&&e.series.some(n=>n.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(J(i,"pointerdown",n=>{n.target?.hasPointerCapture(n.pointerId)&&n.target?.releasePointerCapture(n.pointerId);}),J(i,"pointermove",n=>{e.pointer?.getPointFromEvent(n)?.onMouseOver(n);})),e.styledMode||nt(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(n=>n()),t.length=0,e.styledMode||nt(i,{"touch-action":_(e.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1);}setHoverChartIndex(t){let e=this.chart,i=T.charts[_(Lt.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||(Lt.hoverChartIndex=e.index);}touch(t,e){let i,{chart:s,pinchDown:n=[]}=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=!!n[0]&&Math.pow(n[0].chartX-t.chartX,2)+Math.pow(n[0].chartY-t.chartY,2)>=16),_(i,!0)&&this.pinch(t)):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||"",n,o;/touch/.test(t.type)&&(s=_(e.zooming.pinchType,s)),this.zoomX=n=/x
2/.test(s),this.zoomY=o=/y/.test(s),this.zoomHor=n&&!i||o&&i,this.zoomVert=o&&!i||n&&i,this.hasZoom=(n||o)&&io(t,e.zooming.key);}}Lt.unbindDocumentMouseUp=[],(ee=Lt||(Lt={})).compose=function(l){me(cl,"Core.Pointer")&&J(l,"beforeRender",function(){this.pointer=new ee(this,this.options);});};let so=Lt,{setLength:pl,splice:no}={convertToNumber:function(l,t){switch(typeof l){case "boolean":return +!!l;case "number":return isNaN(l)&&!t?null:l;default:return isNaN(l=parseFloat(`${l??""}`))&&!t?null:l}},setLength:function(l,t,e){return Array.isArray(l)?(l.length=t,l):l[e?"subarray":"slice"](0,t)},splice:function(l,t,e,i,s=[]){if(Array.isArray(l))return Array.isArray(s)||(s=Array.from(s)),{removed:l.splice(t,e,...s),array:l};let n=Object.getPrototypeOf(l).constructor,o=l[i?"subarray":"slice"](t,t+e),r=new n(l.length-e+s.length);return r.set(l.subarray(0,t),0),r.set(s,t),r.set(l.subarray(t+e),t+s.length),{removed:o,array:r}}},Wi=class{constructor(l={}){this.autoId=!l.id,this.columns={},this.id=l.id||le(),this.rowCount=0,this.versionTag=le();let t=0;tt(l.columns||{},(e,i)=>{this.columns[i]=e.slice(),t=Math.max(t,e.length);}),this.applyRowCount(t);}applyRowCount(l){this.rowCount=l,tt(this.columns,(t,e)=>{t.length!==l&&(this.columns[e]=pl(t,l));});}deleteRows(l,t=1){if(t>0&&l<this.rowCount){let e=0;tt(this.columns,(i,s)=>{this.columns[s]=no(i,l,t).array,e=i.length;}),this.rowCount=e;}D(this,"afterDeleteRows",{rowIndex:l,rowCount:t}),this.versionTag=le();}getColumn(l,t){return this.columns[l]}getColumns(l,t){return (l||Object.keys(this.columns)).reduce((e,i)=>(e[i]=this.columns[i],e),{})}getRow(l,t){return (t||Object.keys(this.columns)).map(e=>this.columns[e]?.[l])}setColumn(l,t=[],e=0,i){this.setColumns({[l]:t},e,i);}setColumns(l,t,e){let i=this.rowCount;tt(l,(s,n)=>{this.columns[n]=s.slice(),i=s.length;}),this.applyRowCount(i),e?.silent||(D(this,"afterSetColumns"),this.versionTag=le());}setRow(l,t=this.rowCount,e,i){let{columns:s}=this,n=e?this.rowCount+1:t+1,o=Object.keys(l);if(i?.addColumns!==!1)for(let r=0,a=o.length;r<a;r++){let h=o[r];s[h]||(s[h]=[]);}tt(s,(r,a)=>{r||i?.addColumns===!1||(r=Array(n)),r&&(e?r=no(r,t,0,!0,[l[a]??null]).array:r[t]=l[a]??null,s[a]=r);}),n>this.rowCount&&this.applyRowCount(n),i?.silent||(D(this,"afterSetRows"),this.versionTag=le());}getModified(){return this.modified||this}};var oo=ks||(ks={});function ro(l,t,e){let i=this.legendItem=this.legendItem||{},{chart:s,options:n}=this,{baseline:o=0,symbolWidth:r,symbolHeight:a}=l,h=this.symbol||"circle",d=a/2,c=s.renderer,p=i.group,m=o-Math.round((l.fontMetrics?.b||a)*(e?.4:.3)),y={},u,g=n.marker,f=0;if(s.styledMode||(y["stroke-width"]=Math.min(n.lineWidth||0,24),n.dashStyle?y.dashstyle=n.dashStyle:n.linecap!=="square"&&(y["stroke-linecap"]="round")),i.line=c.path().addClass("highcharts-graph").attr(y).add(p),e&&(i.area=c.path().addClass("highcharts-area").add(p)),y["stroke-linecap"]&&(f=Math.min(i.line.strokeWidth(),r)/2),r){let x=[["M",f,m],["L",r-f,m]];i.line.attr({d:x}),i.area?.attr({d:[...x,["L",r-f,o],["L",f,o]]});}if(g&&g.enabled!==!1&&r){let x=Math.min(_(g.radius,d),d);h.indexOf("url")===0&&(g=X(g,{width:a,height:a}),x=0),i.symbol=u=c.symbol(h,r/2-x,m-x,2*x,2*x,Y({context:"legend"},g)).addClass("highcharts-point").add(p),u.isMarker=!0;}}oo.areaMarker=function(l,t){ro.call(this,l,t,!0);},oo.lineMarker=ro;let ao=ks,{defaultOptions:lo}=he;var Ce=ws||(ws={});function ho(l,t){let e=lo.plotOptions||{},i=t.defaultOptions,s=t.prototype;return s.type=l,s.pointClass||(s.pointClass=Re),!Ce.seriesTypes[l]&&(i&&(e[l]=i),Ce.seriesTypes[l]=t,!0)}Ce.seriesTypes=T.seriesTypes,Ce.registerSeriesType=ho,Ce.seriesType=function(l,t,e,i,s){let n=lo.plotOptions||{};if(t=t||"",n[l]=X(n[t],e),delete Ce.seriesTypes[l],ho(l,_n(Ce.seriesTypes[t]||T.Series,i)),Ce.seriesTypes[l].prototype.type=l,s){class o extends Re{}Y(o.prototype,s),Ce.seriesTypes[l].prototype.pointClass=o;}return Ce.seriesTypes[l]};let Pt=ws,{animObject:co,setAnimation:ml}=Xt,{defaultOptions:Gi}=he,{registerEventOptions:gl}=Ri,{svg:ul,win:fl}=T,{seriesTypes:Je}=Pt,{format:yl}=ce;class fe{constructor(){this.zoneAxis="y";}init(t,e){let i;D(this,"init",{options:e}),this.dataTable??(this.dataTable=new Wi);let s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let n=this.options,o=n.visible!==!1;this.linkedSeries=[],this.bindAxes(),Y(this,{name:n.name,state:"",visible:o,selected:n.selected===!0}),gl(this,n),(n.events?.click||n.point?.events?.click||n.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.get
2Symbol(),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",Si(this,s)),n.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(n.data,!1),D(this,"afterInit");}is(t){return Je[t]&&this instanceof Je[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;D(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(n){(s[n]||[]).forEach(function(o){t=o.options,(_(i[n],0)===o.index||i[n]!==void 0&&i[n]===t.id)&&(Si(e,o.series),e[n]=o,o.isDirty=!0);}),e[n]||e.optionalAxis===n||Ot(18,!0,s);});}),D(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.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:n}=this.options,o=this.chart.time,r=this.xIncrement??o.parse(i.pointStart)??0;if(this.pointInterval=e=_(this.pointInterval,i.pointInterval,1),n&&S(t)&&(e*=t),s){let a=o.toParts(r);
2s==="day"?a[2]+=e:s==="month"?a[1]+=e:s==="year"&&(a[0]+=e),e=o.makeTime.apply(o,a)-r;}return n&&S(t)?r+e:(this.xIncrement=r+e,r)}setDataSortingOptions(){let t=this.options;Y(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),B(t.pointRange)||(t.pointRange=1);}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,n=i.userOptions||{},o=X(t),r=i.styledMode,a={plotOptions:s,userOptions:o};D(this,"setOptions",a);let h=a.plotOptions[this.type],d=n.plotOptions||{},c=d.series||{},p=Gi.plotOptions[this.type]||{},m=d[this.type]||{};h.dataLabels=this.mergeArrays(p.dataLabels,h.dataLabels),this.userOptions=a.userOptions;let y=X(h,s.series,m,o);this.tooltipOptions=X(Gi.tooltip,Gi.plotOptions.series?.tooltip,p?.tooltip,i.userOptions.tooltip,d.series?.tooltip,m.tooltip,o.tooltip),this.stickyTracking=_(o.stickyTracking,m.stickyTracking,c.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||y.stickyTracking),h.marker===null&&delete y.marker;let{negativeColor:u,negativeFillColor:g,zoneAxis:f="y",zones:x}=y,b=this.zones=(x||[]).map(M=>F({},M));return this.zoneAxis=f,(u||g)&&!x&&(e={value:y[f+"Threshold"]||y.threshold||0,className:"highcharts-negative"},r||(typeof u!="boolean"&&(e.color=u),e.fillColor=g),b.push(e)),b.length&&B(b[b.length-1].value)&&b.push(r?{}:{color:this.color,fillColor:this.fillColor}),D(this,"afterSetOptions",{options:y}),y}getName(){return this.options.name??yl(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let s,n,o=this.chart,r=`${t}Index`,a=`${t}Counter`,h=i?.length||o.options.chart.colorCount;!e&&(B(n=_(t==="color"?this.options.colorIndex:void 0,this[r]))?s=n:(o.series.length||(o[a]=0),s=o[a]%h,o[a]+=1),i&&(e=i[s])),s!==void 0&&(this[r]=s),this[t]=e;}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Gi.plotOptions[this.type].color,this.chart.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){return (e?this.dataTable.getModified():this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){let i,s,n,{id:o,x:r}=t,a=this.points,h=this.options.dataSorting,d=this.cropStart||0;if(o){let c=this.chart.get(o);c instanceof Re&&(i=c);}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let c=p=>!p.touched&&p.index===t.index;if(h?.matchByName?c=p=>!p.touched&&p.name===t.name:this.options.relativeXValue&&(c=p=>!p.touched&&p.options.x===t.x),!(i=Oe(a,c)))return}return i&&(n=i?.index)!==void 0&&(s=!0),n===void 0&&S(r)&&(n=this.getColumn("x").indexOf(r,e)),n!==-1&&n!==void 0&&this.cropped&&(n=n>=d?n-d:n),!s&&S(n)&&a[n]?.touched&&(n=void 0),n}updateData(t,e){let{options:i,requireSorting:s}=this,n=i.dataSorting,o=this.points,r=[],a=t.length===o.length,h=this.xIncrement,d,c,p,m,y=!0;if(this.xIncrement=null,t.forEach((g,f)=>{let x,b=B(g)&&this.pointClass.prototype.optionsToObject.call({series:this},g)||{},{id:M,x:v}=b;M||S(v)?((x=this.findPointIndex(b,m))===-1||x===void 0?r.push(g):o[x]&&g!==i.data?.[x]?(o[x].update(g,!1,void 0,!1),o[x].touched=!0,s&&(m=x+1)):o[x]&&(o[x].touched=!0),(!a||f!==x||n?.enabled||this.hasDerivedData)&&(d=!0)):r.push(g);},this),d)for(c=o.length;c--;)(p=o[c])&&!p.touched&&p.remove?.(!1,e);else a&&!n?.enabled?(t.forEach((g,f)=>{g===o[f].y||o[f].destroyed||o[f].update(g,!1,void 0,!1);}),r.length=0):y=!1;if(o.forEach(g=>{g&&(g.touched=!1);}),!y)return !1;r.forEach(g=>{this.addPoint(g,!1,void 0,void 0,!1);},this);let u=this.getColumn("x");return h!==null&&this.xIncrement===null&&u.length&&(this.xIncrement=ke(u),this.autoIncrement()),!0}dataColumnKeys(){return ["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let n=this.points,o=n?.length||0,r=this.options,a=this.chart,h=r.dataSorting,d=this.xAxis,c=r.turboThreshold,p=this.dataTable,m=this.dataColumnKeys(),y=this.pointValKey||"y",u=(this.pointArrayMap||[]).length,g=r.keys,f,x,b=0,M=1,v;a.options.chart.allowMutatingData||(r.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,v=X(!0,t));let P=(t=v||t||[]).length;if(h?.enabled&&(t=this.sortData(t)),s!==!1&&P&&o&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(x=this.updateData(t,i)),!x){this.xIncrement=null,this.colorCounter=0;let k=c&&!r.relativeXValue&&P>c;if(k){let w=this.getFirstValidPoint(t),I=this.getFirstValidPoint(t,P-1,-1),N=L=>!!(ft(L)&&(g||S(L[0])));if(S(w)&&S(I)){let L=[],W=[];
2for(let G of t)L.push(this.autoIncrement()),W.push(G);p.setColumns({x:L,[y]:W});}else if(N(w)&&N(I))if(u){let L=+(w.length===u),W=Array(m.length).fill(0).map(()=>[]);for(let G of t){L&&W[0].push(this.autoIncrement());for(let F=L;F<=u;F++)W[F]?.push(G[F-L]);}p.setColumns(m.reduce((G,F,$)=>(G[F]=W[$],G),{}));}else {g&&(b=g.indexOf("x"),M=g.indexOf("y"),b=b>=0?b:0,M=M>=0?M:1),w.length===1&&(M=0);let L=[],W=[];for(let G of t)b===M?L.push(this.autoIncrement()):L.push(G[b]??G.x??null),W.push(G[M]??G.y??null);p.setColumns({x:L,[y]:W});}else k=!1;}if(!k){let w=m.reduce((I,N)=>(I[N]=[],I),{});for(f=0;f<P;f++){let I=this.pointClass.prototype.applyOptions.apply({series:this},[t[f]]);for(let N of m)N!=="__proto__"&&N!=="constructor"&&(w[N][f]=I[N]);}p.setColumns(w);}for(lt(this.getColumn("y")[0])&&Ot(14,!0,a),this.data=[],this.options.data=this.userOptions.data=t,f=o;f--;)n[f]?.destroy();d&&(d.minRange=d.userMinRange),this.isDirty=a.isDirtyBox=!0,this.isDirtyData=!!n,i=!1;}r.legendType==="point"&&(this.processData(),this.generatePoints()),e&&a.redraw(i);}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",s=function(n,o){return B(o)&&n.pointClass.prototype.optionsToObject.call({series:n},o)||{}};return t.forEach(function(n,o){t[o]=s(e,n),t[o].index=o;},this),t.concat().sort((n,o)=>{let r=_i(i,n),a=_i(i,o);return a<r?-1:+(a>r)}).forEach(function(n,o){n.x=o;},this),e.linkedSeries&&e.linkedSeries.forEach(function(n){let o=n.options,r=o.data;!o.dataSorting?.enabled&&r&&(r.forEach(function(a,h){r[h]=s(n,a),t[h]&&(r[h].x=t[h].x,r[h].index=h);}),n.setData(r,!1));}),t}getProcessedData(t){let e=this,{dataTable:i,isCartesian:s,options:n,xAxis:o}=e,r=n.cropThreshold,a=t||e.getExtremesFromAll,h=o?.logarithmic,d=i.rowCount,c,p,m=0,y,u,g,f=e.getColumn("x"),x=i,b=!1;return o&&(u=(y=o.getExtremes()).min,g=y.max,b=!!(o.categories&&!o.names.length),s&&e.sorted&&!a&&(!r||d>r||e.forceCrop)&&(f[d-1]<u||f[0]>g?x=new Wi:e.getColumn(e.pointValKey||"y").length&&(f[0]<u||f[d-1]>g)&&(x=(c=this.cropData(i,u,g)).modified,m=c.start,p=!0))),f=x.getColumn("x")||[],{modified:x,cropped:p,cropStart:m,closestPointRange:Ls([h?f.map(h.log2lin):f],()=>e.requireSorting&&!b&&Ot(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,D(this,"afterProcessData");}cropData(t,e,i){let s=t.getColumn("x",!0)||[],n=s.length,o={},r,a,h=0,d=n;for(r=0;r<n;r++)if(s[r]>=e){h=Math.max(0,r-1);break}for(a=r;a<n;a++)if(s[a]>i){d=a+1;break}for(let c of this.dataColumnKeys()){let p=t.getColumn(c,!0);p&&(o[c]=p.slice(h,d));}return {modified:new Wi({columns:o}),start:h,end:d}}generatePoints(){let t=this.options,e=this.processedData||t.data,i=this.dataTable.getModified(),s=this.getColumn("x",!0),n=this.pointClass,o=i.rowCount,r=this.cropStart||0,a=this.hasGroupedData,h=t.keys,d=[],c=t.dataGrouping?.groupAll?r:0,p=this.pointArrayMap||["y"],m=this.dataColumnKeys(),y,u,g,f,x=this.data,b;if(!x&&!a){let M=[];M.length=e?.length||0,x=this.data=M;}for(h&&a&&(this.options.keys=!1),f=0;f<o;f++)u=r+f,a?((g=new n(this,i.getRow(f,m)||[])).dataGroup=this.groupMap?.[c+f],g.dataGroup?.options&&(g.options=g.dataGroup.options,Y(g,g.dataGroup.options),delete g.dataLabels,g.key=g.name??g.category)):(g=x[u],b=e?e[u]:i.getRow(f,p),g||b===void 0?g&&(g.category=this.xAxis?.categories?.[g.x]??g.x,g.key=g.name??g.category):x[u]=g=new n(this,b,s[f])),g&&(g.index=a?c+f:u,d[f]=g);if(this.options.keys=h,x&&(o!==(y=x.length)||a))for(f=0;f<y;f++)f!==r||a||(f+=o),x[f]&&(x[f].destroyElements(),x[f].plotX=void 0);this.data=x,this.points=d,D(this,"afterGeneratePoints");}getXExtremes(t){return {min:je(t),max:ke(t)}}getExtremes(t,e){let{xAxis:i,yAxis:s}=this,n=e||this.getExtremesFromAll||this.options.getExtremesFromAll,o=n&&this.cropped?this.dataTable:this.dataTable.getModified(),r=o.rowCount,a=t||this.stackedYData,h=a?[a]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(v=>o.getColumn(v,!0)||[])||[],d=this.getColumn("x",!0),c=[],p=this.requireSorting&&!this.is("column")?1:0,m=!!s&&s.positiveValuesOnly,y=n||this.cropped||!i,u,g,f,x=0,b=0;for(i&&(x=(u=i.getExtremes()).min,b=u.max),f=0;f<r;f++)if(g=d[f],y||(d[f+p]||g)>=x&&(d[f-p]||g)<=b)for(let v of h){let P=v[f];S(P)&&(P>0||!m)&&c.push(P);}let M={activeYData:c,dataMin:je(c),dataMax:ke(c)};return D(this,"afterGetExtremes",{dataExtremes:M}),M}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,n=e;for(;n>=0&&n<s;){if(B(t[n]))return t[n];n+=i;}}translate(){this.generatePoints();let t=this.options,e=t.stacking,i=this.xAxis,s=this.enabledDataSorting,n=this.yAxis,o=this.points,r=o.length,a=this.pointPlacementToXValue(),h=!!a,d=t.threshold,c=t.startFromThreshold?d:0,p=t?.nullInteraction&&n.len,m,y,u,g,f=Number.MAX_VALUE;function x(b){return kt(b,-1e9,1e9)}for(m=0;m<r;m++){let b,M=o[m],v=M.x,P,k,w=M.y,I=M.low,N=e&&n.stacking?.stacks[(this.negStacks&&w<(c?0:d)?"-":"")+this.stackKey];M.plotX=S(y=i.translate(v,!1,!1,!1,!0,a))?xt(x(y)):void 0,e&&this.visible&&N&&N[v]&&(g=this.getStackIndicator(g,v,this.index),!M.isNull&&g.key&&(k=(P=N[v]).points[g.key]),P&&ft(k)&&(I=k[0],w=k[1],I===c&&g.key===N[v].base&&(I=_(S(d)?d:n.min)),n.positiveValuesOnly&&B(I)&&I<=0&&(I=void 0),M.total=M.stackTotal=_(P.total),M.percentage=B(M.y)&&P.total?M.y/P.total*100:void 0,M.stackY=w,this.irregularWidths||P.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),M.yBottom=B(I)?x(n.translate(I,!1,!0,!1,!0)):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,m)),S(w)&&M.plotX!==void 0?b=S(b=n.translate(w,!1,!0,!1,!0))?x(b):void 0:!S(w)&&p&&(b=p),M.plotY=b,M.isInside=this.isPointInside(M),M.clientX=h?xt(i.translate(v,!1,!1,!1,!0,a)):y,M.negative=(M.y||0)<(d||0),M.isNull||M.visible===!1||(u!==void 0&&(f=Math.min(f,Math.abs(y-u))),u=y),M.zone=this.zones.length?M.getZone():void 0,!M.graphic&&this.group&&s&&(M.isNew=!0);}this.closestPointRangePx=f,D(this,"afterTranslate");}getValidPoints(t,e,i){let s=this.chart;return (t||this.points||[]).filter(function(n){let{plotX:o,plotY:r}=n;return (!!i||!n.isNull&&!!S(r))&&(!e||!!s.isInsidePlot(o,r,{inverted:s.inverted}))&&n.visible!==!1})}
2getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,s=t.sharedClips,n=t.renderer,o=t.getClipBox(this),r=this.getSharedClipKey(),a=s[r];D(this,"setClip",{clipBox:o}),a?a.animate(o):s[r]=a=n.clipRect(o),e&&e.clip(this.options.clip===!1?void 0:a),i&&i.clip();}animate(t){let{chart:e,group:i,markerGroup:s}=this,n=e.inverted,o=co(this.options.animation),r=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(","),a=e.sharedClips[r],h=e.sharedClips[r+"m"];if(t&&i){let d=e.getClipBox(this);if(a)a.attr("height",d.height);else {d.width=0,n&&(d.x=e.plotHeight),a=e.renderer.clipRect(d),e.sharedClips[r]=a;let c={x:-99,y:-99,width:n?e.plotWidth+199:99,height:n?99:e.plotHeight+199};h=e.renderer.clipRect(c),e.sharedClips[r+"m"]=h;}i.clip(a),s?.clip(h);}else if(a&&!a.hasClass("highcharts-animating")){let d=e.getClipBox(this),c=o.step;(s?.element.childNodes.length||e.series.length>1)&&(o.step=function(p,m){c&&c.apply(m,arguments),m.prop==="width"&&h?.element&&h.attr(n?"height":"width",p+99);}),a.addClass("highcharts-animating").animate(d,o);}}afterAnimate(){this.setClip(),tt(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e]);}),this.finishedAnimating=!0,D(this,"afterAnimate");}drawPoints(t=this.points){let e,i,s,n,o,r,a,h=this.chart,d=h.styledMode,{colorAxis:c,options:p}=this,m=p.marker,y=p.nullInteraction,u=this[this.specialGroup||"markerGroup"],g=this.xAxis,f=_(m.enabled,!g||!!g.isRadial||null,this.closestPointRangePx>=m.enabledThreshold*m.radius);if(m.enabled!==!1||this._hasPointMarkers)for(e=0;e<t.length;e++){n=(s=(i=t[e]).graphic)?"animate":"attr",o=i.marker||{},r=!!i.marker;let x=i.isNull;if((f&&!B(o.enabled)||o.enabled)&&(!x||y)&&i.visible!==!1){let b=_(o.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=g.reversed?-(a.width||0):g.width);let M=i.isInside!==!1;if(!s&&M&&((a.width||0)>0||i.hasImage)&&(i.graphic=s=h.renderer.symbol(b,a.x,a.y,a.width,a.height,r?o:m).add(u),this.enabledDataSorting&&h.hasRendered&&(s.attr({x:i.startXPos}),n="animate")),s&&n==="animate"&&s[M?"show":"hide"](M).animate(a),s){let v=this.pointAttribs(i,d||!i.selected?void 0:"select");d?c&&s.css({fill:v.fill}):s[n](v);}s&&s.addClass(i.getClassName(),!0);}else s&&(i.graphic=s.destroy());}}markerAttribs(t,e){let i=this.options,s=i.marker,n=t.marker||{},o=n.symbol||s.symbol,r={},a,h,d=_(n.radius,s?.radius);e&&(a=s?.states?.[e],h=n.states?.[e],d=_(h?.radius,a?.radius,d&&d+(a?.radiusPlus||0))),t.hasImage=o&&o.indexOf("url")===0,t.hasImage&&(d=0);let c=t.pos();return S(d)&&c&&(i.crisp&&(c[0]=ae(c[0],t.hasImage?0:o==="rect"?s?.lineWidth||0:1)),r.x=c[0]-d,r.y=c[1]-d),d&&(r.width=r.height=2*d),r}pointAttribs(t,e){let i=this.options,s=i.marker,n=t?.options,o=n?.marker||{},r=n?.color,a=t?.color,h=t?.zone?.color,d,c,p=this.color,m,y,u=_(o.lineWidth,s.lineWidth),g=t?.isNull&&i.nullInteraction?0:1;return p=r||h||a||p,m=o.fillColor||s.fillColor||p,y=o.lineColor||s.lineColor||p,e=e||"normal",d=s.states[e]||{},u=_((c=o.states&&o.states[e]||{}).lineWidth,d.lineWidth,u+_(c.lineWidthPlus,d.lineWidthPlus,0)),m=c.fillColor||d.fillColor||m,y=c.lineColor||d.lineColor||y,{stroke:y,"stroke-width":u,fill:m,opacity:g=_(c.opacity,d.opacity,g)}}
2destroy(t){let e,i,s=this,n=s.chart,o=/AppleWebKit\/533/.test(fl.navigator.userAgent),r=s.data||[];for(D(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(a){i=s[a],i?.series&&(pe(i.series,s),i.isDirty=i.forceRedraw=!0);}),s.legendItem&&s.chart.legend.destroyItem(s),e=r.length;e--;)r[e]?.destroy?.();for(let a of s.zones)Ne(a,void 0,!0);Bs(s.animationTimeout),tt(s,function(a,h){a instanceof ve&&!a.survive&&a[o&&h==="group"?"hide":"destroy"]();}),n.hoverSeries===s&&(n.hoverSeries=void 0),pe(n.series,s),n.orderItems("series"),tt(s,function(a,h){t&&h==="hcEvents"||delete s[h];});}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:n,xAxis:o,yAxis:r,zoneAxis:a}=this,{inverted:h,renderer:d}=e,c=this[`${a}Axis`],{isXAxis:p,len:m=0,minPointOffset:y=0}=c||{},u=(i?.strokeWidth()||0)/2+1,g=(f,x=0,b=0)=>{h&&(b=m-b);let{translated:M=0,lineClip:v}=f,P=b-M;v?.push(["L",x,Math.abs(P)<u?b-u*(P<=0?-1:1):M]);};if(s.length&&(i||t)&&c&&S(c.min)){let f=c.getExtremes().max+y,x=v=>{v.forEach((P,k)=>{(P[0]==="M"||P[0]==="L")&&(v[k]=[P[0],p?m-P[1]:P[1],p?P[2]:m-P[2]]);});};if(s.forEach(v=>{v.lineClip=[],v.translated=kt(c.toPixels(_(v.value,f),!0)||0,0,m);}),i&&!this.showLine&&i.hide(),t&&t.hide(),a==="y"&&n.length<o.len)for(let v of n){let{plotX:P,plotY:k,zone:w}=v,I=w&&s[s.indexOf(w)-1];w&&g(w,P,k),I&&g(I,P,k);}let b=[],M=c.toPixels(c.getExtremes().min-y,!0);s.forEach(v=>{let P=v.lineClip||[],k=Math.round(v.translated||0);o.reversed&&P.reverse();let{clip:w,simpleClip:I}=v,N=0,L=0,W=o.len,G=r.len;p?(N=k,W=M):(L=k,G=M);let F=[["M",N,L],["L",W,L],["L",W,G],["L",N,G],["Z"]],$=[F[0],...P,F[1],F[2],...b,F[3],F[4]];b=P.reverse(),M=k,h&&(x($),t&&x(F)),w?(w.animate({d:$}),I?.animate({d:F})):(w=v.clip=d.path($),t&&(I=v.simpleClip=d.path(F))),i&&v.graph?.clip(w),t&&v.area?.clip(I);});}else this.visible&&(i&&i.show(),t&&t.show());}plotGroup(t,e,i,s,n){let o=this[t],r=!o,a={visibility:i,zIndex:s||.1};return B(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(a.opacity=this.opacity),o||(this[t]=o=this.chart.renderer.g().add(n)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(B(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(a)[r?"attr":"animate"](this.getPlotBox(e)),o}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,n=s.inverted&&!s.polar&&e&&this.invertible&&t==="series";s.inverted&&(e=i,i=this.xAxis);let o={scale:1,translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,name:t};D(this,"getPlotBox",o);let{scale:r,translateX:a,translateY:h}=o;return {translateX:a,translateY:h,rotation:90*!!n,rotationOriginX:n?r*(e.len-i.len)/2:0,rotationOriginY:n?r*(e.len+i.len)/2:0,scaleX:n?-r:r,scaleY:r}}removeEvents(t){let{eventsToUnbind:e}=this;t||ge(this),e.length&&(e.forEach(i=>{i();}),e.length=0);}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,n=co(i.animation),o=t.visible?"inherit":"hidden",r=i.zIndex,a=e.seriesGroup,h=t.finishedAnimating?0:n.duration;D(this,"render"),t.plotGroup("group","series",o,r,a),t.markerGroup=t.plotGroup("markerGroup","markers",o,r,a),i.clip!==!1&&t.setClip(),h&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),h&&t.animate?.(),s||(h&&n.defer&&(h+=n.defer),t.animationTimeout=ue(()=>{t.afterAnimate();},h||0)),t.isDirty=!1,t.hasRendered=!0,D(t,"afterRender");}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree;}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?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,ue(function(){e.kdTree=(function n(o,r,a){let h,d,c=o?.length;if(c)return h=e.kdAxisArray[r%a],o.sort((p,m)=>(p[h]||0)-(m[h]||0)),{point:o[d=Math.floor(c/2)],left:n(o.slice(0,d),r+1,a),right:n(o.slice(d+1),r+1,a)}})(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,n){let o=this,[r,a]=this.kdAxisArray,h=e?"distX":"dist",d=(o.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!o.isBubble,p=s||((y,u,g)=>{let f=y[g]||0,x=u[g]||0;return [f===x&&y.index>u.index||f<x?y:u,!1]}),m=n||((y,u)=>y<u);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return (function y(u,g,f,x){let b,M,v,P,k,w,I,N=g.point,L=o.kdAxisArray[f%x],W=N,G=!1;b=u[r],M=N[r],v=B(b)&&B(M)?b-M:null,P=u[a],k=N[a],w=B(P)&&B(k)?P-k:0,I=c&&N.marker?.radius||0,N.dist=
2Math.sqrt((v&&v*v||0)+w*w)-I,N.distX=B(v)?Math.abs(v)-I:Number.MAX_VALUE;let F=(u[L]||0)-(N[L]||0)+(c&&N.marker?.radius||0),$=F<0?"left":"right",V=F<0?"right":"left";return g[$]&&([W,G]=p(N,y(u,g[$],f+1,x),h)),g[V]&&m(Math.sqrt(F*F),W[h],G)&&(W=p(W,y(u,g[V],f+1,x),h)[0]),W})(t,this.kdTree,d,d)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return i==="between"&&(i=e.reversed?-.5:.5),S(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:n=-1,plotY:o=-1}=t;return o>=0&&o<=(s?s.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),n=t.chart,o=n.pointer,r=n.renderer,a=n.options.tooltip?.snap||0,h=()=>{e.enableMouseTracking&&n.hoverSeries!==t&&t.onMouseOver();},d="rgba(192,192,192,"+(ul?1e-4:.002)+")",c=t.tracker;c?c.attr({d:s}):t.graph&&(t.tracker=c=r.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),n.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:i?d:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(p=>{p&&(p.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",m=>{o?.onTrackerMouseOut(m);}),e.cursor&&!n.styledMode&&p.css({cursor:e.cursor}),p.on("touchstart",h));})),D(this,"afterDrawTracker");}addPoint(t,e,i,s,n){let o,r,a=this.options,{chart:h,data:d,dataTable:c,xAxis:p}=this,m=p?.hasNames&&p.names,y=a.data,u=this.getColumn("x");e=_(e,!0);let g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);let f=g.x;if(r=u.length,this.requireSorting&&f<u[r-1])for(o=!0;r&&u[r-1]>f;)r--;c.setRow(g,r,!0,{addColumns:!1}),m&&g.name&&(m[f]=g.name),y?.splice(r,0,t),(o||this.processedData)&&(this.data.splice(r,0,null),this.processData()),a.legendType==="point"&&this.generatePoints(),i&&(d[0]&&d[0].remove?d[0].remove(!1):([d,y].filter(B).forEach(x=>{x.shift();}),c.deleteRows(0))),n!==!1&&D(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(s);}removePoint(t,e,i){let s=this,{chart:n,data:o,points:r,dataTable:a}=s,h=o[t],d=function(){[r?.length===o.length?r:void 0,o,s.options.data].filter(B).forEach(c=>{c.splice(t,1);}),a.deleteRows(t),h?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&n.redraw();};ml(i,n),e=_(e,!0),h?h.firePointEvent("remove",null,d):d();}remove(t,e,i,s){let n=this,o=n.chart;function r(){n.destroy(s),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(s),_(t,!0)&&o.redraw(e);}i!==!1?D(n,"remove",null,r):r();}update(t,e){D(this,"update",{options:t=di(t,this.userOptions)});let i=this,s=i.chart,n=i.userOptions,o=i.initialType||i.type,r=s.options.plotOptions,a=Je[o].prototype,h=i.finishedAnimating&&{animation:!1},d={},c,p,m=fe.keepProps.slice(),y=t.type||n.type||s.options.chart.type,u=!(this.hasDerivedData||y&&y!==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(f=>i.hasOptionChanged(f)));y=y||o,u?(m.push.apply(m,fe.keepPropsForPoints),t.visible!==!1&&m.push("area","graph"),i.parallelArrays.forEach(function(f){m.push(f+"Data");}),t.data&&(t.dataSorting&&Y(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t.dataLabels&&n.dataLabels&&(t.dataLabels=this.mergeArrays(n.dataLabels,t.dataLabels)),t=X(n,{index:n.index===void 0?i.index:n.index,pointStart:r?.series?.pointStart??n.pointStart??i.getColumn("x")[0]},!u&&{data:i.options.data},t,h),u&&t.data&&(t.data=i.options.data),(m=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(m)).forEach(function(f){m[f]=i[f],delete i[f];});let g=!1;if(Je[y]){if(g=y!==i.type,i.remove(!1,!1,!1,!0),g)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,Je[y].prototype);else {let f=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in a)i[p]=void 0;Y(i,Je[y].prototype),f?i.hcEvents=f:delete i.hcEvents;}}else Ot(17,!0,s,{missingModuleFor:y});if(m.forEach(function(f){i[f]=m[f];}),i.init(s,t),u&&this.points)for(let f of((c=i.options).visible===!1?(d.graphic=1,d.dataLabel=1):(this.hasMarkerChanged(c,n)&&(d.graphic=1),i.hasDataLabels?.()||(d.dataLabel=1)),this.points))f?.series&&(f.resolve
2Color(),Object.keys(d).length&&f.destroyElements(d),c.showInLegend===!1&&f.legendItem&&s.legend.destroyItem(f));i.initialType=o,s.linkSeries(),s.setSortedData(),g&&i.linkedSeries.length&&(i.isDirtyData=!0),D(this,"afterUpdate"),_(e,!0)&&s.redraw(!!u&&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,n=this.userOptions[t],o=_(s?.[this.type]?.[t],s?.series?.[t]);return n&&!B(o)?i!==n:i!==_(o,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries;t.pointer?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&D(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this;}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&D(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(n){n.setState("",!0);});}setState(t,e){let i=this,{graph:s,options:n}=i,{inactiveOtherPoints:o,states:r}=n,a=_(r?.[t||"normal"]?.animation,i.chart.options.chart.animation),{lineWidth:h,opacity:d}=n;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,...i.dataLabelsGroups||[]].forEach(function(c){c&&(i.state&&c.removeClass("highcharts-series-"+i.state),t&&c.addClass("highcharts-series-"+t));}),i.state=t,!i.chart.styledMode)){if(r[t]?.enabled===!1)return;if(t&&(h=r[t].lineWidth||h+(r[t].lineWidthPlus||0),d=_(r[t].opacity,d)),s&&!s.dashstyle&&S(h))for(let c of [s,...this.zones.map(p=>p.graph)])c?.animate({"stroke-width":h},a);o||[i.group,i.markerGroup,...i.dataLabelsGroups||[],i.labelBySeries].forEach(function(c){c?.animate({opacity:d},a);});}e&&o&&i.points&&i.setAllPointsToState(t||void 0);}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t);});}setVisible(t,e){let i=this,s=i.chart,n=s.options.chart.ignoreHiddenSeries,o=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=t===void 0?!o:t;let r=t?"show":"hide";["group","markerGroup","tracker","tt"].forEach(a=>{i[a]?.[r]();}),i.dataLabelsGroups?.forEach(a=>{a?.[r]();}),(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(a=>{a.options.stacking&&a.visible&&(a.isDirty=!0);}),i.linkedSeries.forEach(a=>{a.setVisible(t,!1);}),n&&(s.isDirtyBox=!0),D(i,r),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),D(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",n=e.legendItem||{},{options:o,symbolHeight:r,symbolWidth:a}=t,h=o.squareSymbol,d=h?r:a,c=h?(a-r)/2:0,p=(t.baseline||0)-r+1,m=o.symbolRadius??r,y=s==="rectangle"?i.rect(c,p,d,r,m):i.symbols[s]&&i.symbol(s,c,p,d,r,{r:m});y?n.symbol=y.addClass("highcharts-point").attr({zIndex:3}).add(n.group):ao[s]?.call(this,t,e);}}fe.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:l}=this.series.chart;return typeof this.y!="number"?"":l(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},fe.types=Pt.seriesTypes,fe.registerType=Pt.registerSeriesType,fe.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],fe.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Y(fe.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Re,requireSorting:!0,sorted:!0}
2),Pt.series=fe;let ie=fe,{animObject:xl,setAnimation:bl}=Xt,{registerEventOptions:po}=Ri,{composed:vl,marginNames:mo}=T,{distribute:Cl}=Ii,{format:Ml}=ce;class Qs{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(),po(this,e),J(this.chart,"endResize",function(){this.legend.positionCheckboxes();})),J(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=X(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(X(!0,this.options,t)),"events"in this.options&&po(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,_(e,!0)&&i.redraw(),D(this,"afterUpdate",{redraw:e});}colorizeItem(t,e){let i=t.color,{area:s,group:n,label:o,line:r,symbol:a}=t.legendItem||{};if((t instanceof ie||t instanceof Re)&&(t.color=t.options?.legendSymbolColor||i),n?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:h={}}=this,d=h.color,{fillColor:c,fillOpacity:p,lineColor:m,marker:y}=t.options,u=g=>(!e&&(g.fill&&(g.fill=d),g.stroke&&(g.stroke=d)),g);o?.css(X(e?this.itemStyle:h)),r?.attr(u({stroke:m||t.color})),a&&a.attr(u(y&&a.isMarker?t.pointAttribs():{fill:t.color})),s?.attr(u({fill:c||t.color,"fill-opacity":c?1:p??.75}));}t.color=i,D(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||{},n=this.options,o=n.symbolPadding,r=!n.rtl,a=t.checkbox;if(e?.element){let h={translateX:r?i:this.legendWidth-i-2*o-4,translateY:s},d=()=>{D(this,"afterPositionItem",{item:t});};e[B(e.translateY)?"animate":"attr"](h,void 0,d);}a&&(a.x=i,a.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=Oi(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(n){let o,r=n.checkbox;r&&(o=t+s+r.y+(this.scrollOffset||0)+3,nt(r,{left:e.translateX+n.checkboxOffset+r.x-20+"px",top:o+"px",display:this.proximate||o>t-6&&o<t+i-6?"":"none"}));},this));}renderTitle(){let t=this.options,e=this.padding,i=t.title,s,n=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"}),n=(s=this.title.getBBox()).height,this.offsetWidth=s.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n;}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?Ml(e.labelFormat,t,this.chart):e.labelFormatter.call(t,t)});}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,n=this.options,o=n.layout==="horizontal",r=this.symbolWidth,a=n.symbolPadding||0,h=this.itemStyle,d=this.itemHiddenStyle,c=o?_(n.itemDistance,20):0,p=!n.rtl,m=!t.series,y=!m&&t.series.drawLegendSymbol?t.series:t,u=y.options,g=!!this.createCheckboxForItem&&u&&u.showCheckbox,f=n.useHTML,x=t.options.className,b=e.label,M=r+a+c+20*!!g;!b&&(e.group=s.g("legend-item").addClass("highcharts-"+y.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(m?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=b=s.text("",p?r+a:-a,this.baseline||0,f),i.styledMode||b.css(X(t.visible?h:d)),b.attr({align:p?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=_(n.symbolHeight,this.fontMetrics.f),n.squareSymbol&&(this.symbolWi
2dth=_(n.symbolWidth,Math.max(this.symbolHeight,16)),M=this.symbolWidth+a+c+20*!!g,p&&b.attr("x",this.symbolWidth+a))),y.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,b,f)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!h.width)&&b.css({width:Math.min(n.itemWidth||this.widthOption||i.spacingBox.width,n.maxWidth?Ft(n.maxWidth,i.chartWidth):1/0)-M+"px"}),this.setText(t);let v=b.getBBox(),P=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||e.labelWidth||v.width+M,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(v.height>1.5*P?v.height:P));}layoutItem(t){let e=this.options,i=this.padding,s=e.layout==="horizontal",n=t.itemHeight,o=this.itemMarginBottom,r=this.itemMarginTop,a=s?_(e.itemDistance,20):0,h=this.maxLegendWidth,d=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,c=t.legendItem||{};s&&this.itemX-i+d>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=r+this.itemY+o,this.lastLineHeight=Math.max(n,this.lastLineHeight),c.x=this.itemX,c.y=this.itemY,s?this.itemX+=d:(this.itemY+=r+n+o,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):d)+i,this.offsetWidth);}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&_(i.showInLegend,!B(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||(i.legendType==="point"?e.data:e)));}),D(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,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
vendor: 5,778 bytes, line 2
2h((o,r)=>{o.test(n)&&!B(t[r])&&(i[mo[r]]=Math.max(i[mo[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*s[r%2?"x":"y"]+(s.margin??12)+e[r]+(i.titleOffset[r]||0)));});}proximatePositions(){let t,e=this.chart,i=[],s=this.options.align==="left";for(let n of(this.allItems.forEach(function(o){let r,a,h=s,d,c;o.yAxis&&(o.xAxis.options.reversed&&(h=!h),o.points&&(r=Oe(h?o.points:o.points.slice(0).reverse(),function(p){return S(p.plotY)})),a=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom,c=o.yAxis.top-e.plotTop,d=o.visible?(r?r.plotY:o.yAxis.height)+(c-.3*a):c+o.yAxis.height,i.push({target:d,size:a,item:o}));},this),Cl(i,e.plotHeight)))t=n.item.legendItem||{},S(n.pos)&&(t.y=e.plotTop-e.spacing[0]+n.pos);}render(){let t=this.chart,e=t.spacingBox.width,i=t.renderer,s=this.options,n=this.padding,o=this.getAllItems(),r,a,h,d=this.group,c,p=this.box;this.itemX=n,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Ft(s.width,e-n),c=e-2*n-s.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(c/=2),this.maxLegendWidth=this.widthOption||c,d||(this.group=d=i.g("legend").addClass(s.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(d),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),pi(o,(m,y)=>(m.options?.legendIndex||0)-(y.options?.legendIndex||0)),s.reversed&&o.reverse(),this.allItems=o,this.display=r=!!o.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,o.forEach(this.renderItem,this),o.forEach(this.layoutItem,this),a=(s.maxWidth?Math.min(this.widthOption||this.offsetWidth,c,Ft(s.maxWidth,t.chartWidth)||1/0):this.widthOption||this.offsetWidth)+n,h=this.lastItemY+this.lastLineHeight+this.titleHeight,h=this.handleOverflow(h)+n,p||(this.box=p=i.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(d)),t.styledMode||p.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),a>0&&h>0&&p[p.placed?"animate":"attr"](p.crisp.call({},{x:0,y:0,width:a,height:h},p.strokeWidth())),d[r?"show":"hide"](),t.styledMode&&d.getStyle("display")==="none"&&(a=h=0),this.legendWidth=a,this.legendHeight=h,r&&this.align(),this.proximate||this.positionItems(),D(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=X(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(X(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,n=this.options,o=n.y,r=n.verticalAlign==="top",a=this.padding,h=n.maxHeight,d=n.navigation,c=_(d.animation,!0),p=d.arrowSize||12,m=this.pages,y=this.allItems,u=function(w){typeof w=="number"?k.attr({height:w}):k&&(e.clipRect=k.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=w?"rect("+a+"px,9999px,"+(a+w)+"px,0)":"auto");},g=function(w){return e[w]=s.circle(0,0,1.3*p).translate(p/2,p/2).add(P),i.styledMode||e[w].attr("fill","rgba(0,0,0,0.0001)"),e[w]},f,x,b,M,v=i.spacingBox.height+(r?-o:o)-a,P=this.nav,k=this.clipRect;return n.layout!=="horizontal"||n.verticalAlign==="middle"||n.floating||(v/=2),h&&(v=Math.min(v,h)),m.length=0,t&&v>0&&t>v&&d.enabled!==!1?(this.clipHeight=f=Math.max(v-20-this.titleHeight-a,0),this.currentPage=_(this.currentPage,1),this.fullHeight=t,y.forEach((w,I)=>{let N=(b=w.legendItem||{}).y||0,L=Math.round(b.label.getBBox().height),W=m.length;(!W||N-m[W-1]>f&&(x||N)!==m[W-1])&&(m.push(x||N),W++),b.pageIx=W-1,x&&M&&(M.pageIx=W-1),I===y.length-1&&N+L-m[W-1]>f&&N>m[W-1]&&(m.push(N),b.pageIx=W),N!==x&&(x=N),M=b;}),k||(k=e.clipRect=s.clipRect(0,a-2,9999,0),e.contentGroup.clip(k)),u(f),P||(this.nav=P=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,p,p).add(P),g("upTracker").on("click",function(){e.scroll(-1,c);}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(P),this.down=s.symbol("triangle-down",0,0,p,p).add(P),g("downTracker").on("click",function(){e.scroll(1,c);})),e.scroll(0),t=v):P&&(u(),this.nav=P.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,n=s.length,o=this.clipHeight,r=this.options.navigation,a=this.pager,h=this.padding,d=this.currentPage+t;d>n&&(d=n),d>0&&(e!==void 0&&bl(e,i),this.nav.attr({translateX:h,translateY:o+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(c){c.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"});}),a.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"});},this),i.styledMode||(this.up.attr({fill:d===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),ue(()=>{D(this,"afterScroll",{currentPage:d});},xl(_(e,i.renderer.globalAnimation,!0)).duration));}setItemEvents(t,e,i){let s=this,n=t.legendItem||{},o=s.chart.renderer.boxWrapper,r=t instanceof Re,a=t instanceof ie,h="highcharts-legend-"+(r?"point":"series")+"-active",d=s.chart.styledMode,c=i?[e,n.symbol]:[n.group],p=m=>
2{s.allItems.forEach(y=>{t!==y&&[y].concat(y.linkedSeries||[]).forEach(u=>{u.setState(m,!r);});});};for(let m of c)m&&m.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&o.addClass(h),d||e.css(s.options.itemHoverStyle);}).on("mouseout",function(){s.chart.styledMode||e.css(X(t.visible?s.itemStyle:s.itemHiddenStyle)),p(""),o.removeClass(h),t.setState();}).on("click",function(y){let u=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"");};o.removeClass(h),D(s,"itemClick",{browserEvent:y,legendItem:t,context:s},u),r?t.firePointEvent("legendItemClick",{browserEvent:y}):a&&D(t,"legendItemClick",{browserEvent:y});});}createCheckboxForItem(t){t.checkbox=re("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),J(t.checkbox,"click",function(e){let i=e.target;D(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select();});});}}(Ve=Qs||(Qs={})).compose=function(l){me(vl,"Core.Legend")&&J(l,"beforeMargins",function(){this.legend=new Ve(this,this.options.legend);});};let go=Qs,{animate:Js,animObject:Pl,setAnimation:tn}=Xt,{defaultOptions:en}=he,{numberFormat:kl}=ce,{registerEventOptions:uo}=Ri,{charts:Ge,doc:ti,marginNames:fo,svg:wl,win:sn}=T,{seriesTypes:nn}=Pt;class ze{static chart(t,e,i){return new ze(t,e,i)}constructor(t,e,i){if(this.sharedClips={},!ti)return void Ot(36,!1,this);let s=[...arguments];(lt(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1]);}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming=G(F({},e),{type:_(t.zoomType,e.type),key:_(t.zoomKey,e.key),pinchType:_(t.pinchType,e.pinchType),singleTouch:_(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:X(e.resetButton,t.resetZoomButton)});}init(t,e){D(this,"init",{args:arguments},function(){let i=X(en,t),s=i.chart,n=this.renderTo||s.renderTo;this.userOptions=Y({},t),(this.renderTo=lt(n)?ti.getElementById(n):n)||Ot(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],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 zs(Y(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||kl).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=Ge.length,Ge.push(this),T.chartCount++,uo(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),D(this,"afterInit"),this.firstRender();});}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=nn[i];s||Ot(17,!0,this,{missingModuleFor:i});let n=new s;return typeof n.init=="function"&&n.init(this,t),n}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1);});}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let i=this[t],s=this.options[t]=jt(this.options[t]).slice(),n=this.userOptions[t]=this.userOptions[t]?jt(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),n.splice(e)),i)for(let o=e,r=i.length;o<r;++o){let a=i[o];a&&(a.index=o,a instanceof ie&&(a.name=a.getName()),a.options.isInternal||(s[o]=a.options,n[o]=a.userOptions));}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:n}=t||{},{x:o,y:r,width:a,height:h}=X(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&(a=s.len),n&&n.len!==this.plotSizeY&&(h=n.len),i&&!t.invertible&&([a,h]=[h,a])),e&&(o+=(i?n:s)?.pos??this.plotLeft,r+=(i?s:n)?.pos??this.plotTop),{x:o,y:r,width:a,height:h}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:n,plotLeft:o,plotTop:r,scrollablePlotBox:a}=this,{scrollLeft:h=0,scrollTop:d=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},c=i.series,p=i.visiblePlotOnly&&a||n,m=i.inverted?e:t,y=i.inverted?t:e,u={x:m,y,isInsidePlot:!0,options:i};if(!i.ignoreX){let g=c&&(s&&!this.polar?c.yAxis:c.xAxis)||{pos:o,len:1/0},f=i.paneCoordinates?g.pos+m:o+m;f>=Math.max(h+o,g.pos)&&f<=Math.min(h+o+p.width,g.pos+g.len)||(u.isInsidePlot=!1);}if(!i.ignoreY&&u.isInsidePlot){let g=!s&&i.axis&&!i.axis.isXAxis&&i.axis||c&&(s?c.xAxis:c.yAxis)||{pos:r,len:1/0},f=i.paneCoordinates?g.pos+y:r+y;f>=Math.max(d+r,g.pos)&&f<=Math.min(d+r+p.height,g.pos+g.len)||(u.isInsidePlot=!1);}return D(this,"afterIsInsidePlot",u),u.isInsidePlot}redraw(t){D(this,"beforeRedraw");let e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,s=this.pointer,n=this.legend,o=this.userOptions.legend,r=this.renderer,a=r.isHidden(),h=[],d,c,p,m=this.isDirtyBox,y=this.isDirtyLegend,u;
2for(r.rootFontSize=r.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),tn(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(!1),p=i.length;p--;)if(((u=i[p]).options.stacking||u.options.centerInCategory)&&(c=!0,u.isDirty)){d=!0;break}if(d)for(p=i.length;p--;)(u=i[p]).options.stacking&&(u.isDirty=!0);i.forEach(function(g){g.isDirty&&(g.options.legendType==="point"?(typeof g.updateTotals=="function"&&g.updateTotals(),y=!0):o&&(o.labelFormatter||o.labelFormat)&&(y=!0)),g.isDirtyData&&D(g,"updatedData");}),y&&n&&n.options.enabled&&(n.render(),this.isDirtyLegend=!1),c&&this.getStacks(),e.forEach(function(g){g.updateNames(),g.setScale();}),this.getMargins(),e.forEach(function(g){g.isDirty&&(m=!0);}),e.forEach(function(g){let f=g.min+","+g.max;g.extKey!==f&&(g.extKey=f,h.push(function(){D(g,"afterSetExtremes",Y(g.eventArgs,g.getExtremes())),delete g.eventArgs;})),(m||c)&&g.redraw();}),m&&this.drawChartBox(),D(this,"predraw"),i.forEach(function(g){(m||g.isDirty)&&g.visible&&g.redraw(),g.isDirtyData=!1;}),s&&s.reset(!0),r.draw(),D(this,"redraw"),D(this,"render"),a&&this.temporaryDisplay(!0),h.forEach(function(g){g.call();});}get(t){let e=this.series;function i(n){return n.id===t||n.options&&n.options.id===t}let s=Oe(this.axes,i)||Oe(this.series,i);for(let n=0;!s&&n<e.length;n++)s=Oe(e[n].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(D(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=jt(t[e]||{}))new Qe(this,i,e);D(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]=X(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),s&&!n&&((n=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(o,r){i.applyDescription(t,o),i.layOutTitles(r);},this.styledMode||n.css(Y(t==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),n.textPxLength=n.getBBox().width,n.css({whiteSpace:s.style?.whiteSpace}),this[t]=n);}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:n}=this;["title","subtitle","caption"].forEach(r=>{let a=this[r],h=this.options[r],d=X(n),c=a?.textPxLength||0;if(a&&h){D(this,"layOutTitle",{alignTo:d,key:r,textPxLength:c});let p=s.fontMetrics(a),m=p.b,y=p.h,u=h.verticalAlign||"top",g=u==="top",f=g&&h.minScale||1,x=r==="title"?g?-3:0:g?e[0]+2:0,b=Math.min(d.width/c,1),M=Math.max(f,b),v=X({y:u==="bottom"?m:x+m},h),P=(h.width||(b>f?this.chartWidth:d.width)/M)+"px";v.align??(v.align=r==="title"?b<f?"left":"center":this.title?.alignValue),a.alignValue!==v.align&&(a.placed=!1);let k=Math.round(a.css({width:P}).getBBox(h.useHTML).height);if(v.height=k,a.align(v,!1,d).attr({align:v.align,scaleX:M,scaleY:M,"transform-origin":`${d.x+c*M*Vt(v.align)} ${y}`}),!h.floating){let w=k*(k<1.2*y?1:M);u==="top"?e[0]=Math.ceil(e[0]+w):u==="bottom"&&(e[2]=Math.ceil(e[2]+w));}}},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 o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,D(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,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:we(this.renderTo,"width",!0)||0,height:we(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([i,s])=>{i.style.display=s;}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),n=s.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%";
2this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Ft(i,this.chartWidth)||(n?400:s.height)),this.containerBox=s;}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e?.style;)e.hcOrigStyle&&(nt(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(ti.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e?.style&&(ti.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,ti.body.appendChild(e)),(we(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),nt(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==ti.body););}setClassName(t){this.container.className="highcharts-container "+(t||"");}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",n=le(),o=this.renderTo,r=vt(Gt(o,s));S(r)&&Ge[r]&&Ge[r].hasRendered&&Ge[r].destroy(),Gt(o,s,this.index),o.innerHTML=bt.emptyHTML,i.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize();let a=this.chartHeight,h=this.chartWidth;nt(o,{overflow:"hidden"}),this.styledMode||(t=Y({position:"relative",overflow:"hidden",width:h+"px",height:a+"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 d=re("div",{id:n},t,o);this.container=d,this.getChartSize(),h!==this.chartWidth&&(h=this.chartWidth,this.styledMode||nt(d,{width:_(i.style?.width,h+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;let c=i.renderer||!wl?mi.getRendererType(i.renderer):Ni;if(this.renderer=new c(d,h,a,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode),tn(void 0,this),this.setClassName(i.className),this.styledMode)for(let p in e.defs)this.renderer.definition(e.defs[p]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,D(this,"afterGetContainer");}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!B(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!B(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),D(this,"getMargins"),t||this.getAxisMargins();}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,n=o=>{o.forEach(r=>{r.visible&&r.getOffset();});};t.hasCartesianSeries?n(t.axes):i?.length&&n(i),fo.forEach((o,r)=>{B(s[r])||(t[o]+=e[r]);}),t.setChartSize();}getOptions(){return di(this.userOptions,en)}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)&&(Bs(e.reflowTimeout),e.reflowTimeout=ue(function(){if(e.container){e.setSize(void 0,void 0,!1);let n=e.containerBox;n&&(n.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=J(sn,"resize",e);J(this,"destroy",i);}}setSize(t,e,i){let s=this,n=s.renderer;s.isResizing+=1,tn(i,s);let o=n.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:r,chartHeight:a,scrollablePixelsX:h=0,scrollablePixelsY:d=0}=s;(s.isDirtyBox||r!==s.oldChartWidth||a!==s.oldChartHeight)&&(s.styledMode||(o?Js:nt)(s.container,{width:`${r+h}px`,height:`${a+d}px`},o),s.setChartSize(!0),n.setSize(r,a,o),s.axes.forEach(function(c){c.isDirty=!0,c.setScale();}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(o),s.oldCh
2artHeight=void 0,D(s,"resize"),setTimeout(()=>{s&&D(s,"endResize");},Pl(o).duration)),s.isResizing-=1;}setChartSize(t){let e,i,s,n,{chartHeight:o,chartWidth:r,inverted:a,spacing:h,renderer:d}=this,c=this.clipOffset,p=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(r-e-(this.marginRight??0))),this.plotHeight=n=Math.max(0,Math.round(o-i-(this.marginBottom??0))),this.plotSizeX=a?n:s,this.plotSizeY=a?s:n,this.spacingBox=d.spacingBox={x:h[3],y:h[0],width:r-h[3]-h[1],height:o-h[0]-h[2]},this.plotBox=d.plotBox={x:e,y:i,width:s,height:n},c&&(this.clipBox={x:p(c[3]),y:p(c[0]),width:p(this.plotSizeX-c[1]-c[3]),height:p(this.plotSizeY-c[0]-c[2])}),t||(this.axes.forEach(function(m){m.setAxisSize(),m.setAxisTranslation();}),d.alignElements()),D(this,"afterSetChartSize",{skipAxes:t});}resetMargins(){D(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(n=>{let o=e[n],r=ht(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach((a,h)=>{t[n][h]=e[`${n}${a}`]??r[h];});}),fo.forEach((n,o)=>{t[n]=t.margin[o]??t.spacing[o];}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i;}drawChartBox(){let t=this.options.chart,e=this.renderer,i=this.chartWidth,s=this.chartHeight,n=this.styledMode,o=this.plotBGImage,r=t.backgroundColor,a=t.plotBackgroun
2dColor,h=t.plotBackgroundImage,d=this.plotLeft,c=this.plotTop,p=this.plotWidth,m=this.plotHeight,y=this.plotBox,u=this.clipRect,g=this.clipBox,f=this.chartBackground,x=this.plotBackground,b=this.plotBorder,M,v,P,k="animate";f||(this.chartBackground=f=e.rect().addClass("highcharts-background").add(),k="attr"),n?M=v=f.strokeWidth():(v=(M=t.borderWidth||0)+8*!!t.shadow,P={fill:r||"none"},(M||f["stroke-width"])&&(P.stroke=t.borderColor,P["stroke-width"]=M),f.attr(P).shadow(t.shadow)),f[k]({x:v/2,y:v/2,width:i-v-M%2,height:s-v-M%2,r:t.borderRadius}),k="animate",x||(k="attr",this.plotBackground=x=e.rect().addClass("highcharts-plot-background").add()),x[k](y),!n&&(x.attr({fill:a||"none"}).shadow(t.plotShadow),h&&(o?(h!==o.attr("href")&&o.attr("href",h),o.animate(y)):this.plotBGImage=e.image(h,d,c,p,m).add())),u?u.animate({width:g.width,height:g.height}):this.clipRect=e.clipRect(g),k="animate",b||(k="attr",this.plotBorder=b=e.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),n||b.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:"none"}),b[k](b.crisp(y,-b.strokeWidth())),this.isDirtyBox=!1,D(this,"afterDrawChartBox");}propFromSeries(){let t,e,i,s=this,n=s.options.chart,o=s.options.series;["inverted","angular","polar"].forEach(function(r){for(e=nn[n.type],i=n[r]||e&&e.prototype[r],t=o?.length;!i&&t--;)(e=nn[o[t].type])&&e.prototype[r]&&(i=!0);s[r]=i;});}linkSeries(t){let e=this,i=e.series;i.forEach(function(s){s.linkedSeries.length=0;}),i.forEach(function(s){let{linkedTo:n}=s.options,o=lt(n)&&(n===":previous"?i[s.index-1]:e.get(n));o&&o.linkedParent!==s&&(o.linkedSeries.push(s),s.linkedParent=o,o.enabledDataSorting&&s.setDataSortingOptions(),s.visible=s.options.visible??o.options.visible??s.visible);}),D(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,s=this.options.chart.axisLayoutRuns||2,n=d=>{d.forEach(c=>{c.visible&&c.render();});},o=0,r=!0,a,h=0;for(let d of(this.setTitle(),D(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:c}=d,{labels:p}=c;if(this.hasCartesianSeries&&d.horiz&&d.visible&&p.enabled&&d.series.length&&d.coll!=="colorAxis"&&!this.polar){o=c.tickLength,d.createGroups();let m=new Ke(d,0,"",!0),y=m.createLabel("x",p);if(m.destroy(),y&&_(p.reserveSpace,!S(c.crossing))&&(o=y.getBBox().height+p.distance+Math.max(c.offset||0,0)),o){y?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(r||a||s>1)&&h<s;){let d=this.plotWidth,c=this.plotHeight,p=[1.05,1.1];for(let m of t){let y=+(m.horiz||0);if(h===0){m.setScale();let u=m.tickPositions?.info?.match;u&&(p[y]=Math.min(u,p[y]));}else (y&&r||!y&&a)&&m.setTickInterval(!0);}h===0?this.getAxisMargins():this.getMargins(),r=d/this.plotWidth>(h?1:p[1]),a=c/this.plotHeight>(h?1:p[0]),h++;}this.drawChartBox(),this.hasCartesianSeries?n(t):e?.length&&n(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=X(!0,this.options.credits,t);if(i.enabled&&!this.credits){let s=i.href?bt.filterUserAttributes({href:i.href}).href:void 0;this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(n){D(e,"creditsClick",n,()=>{s&&(sn.location.href=s);});}).attr({align:i.position.align,zIndex:8}),i.events?.click&&J(e,"creditsClick",i.events.click),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(n){e.credits=e.credits.destroy(),e.addCredits(n);};}}destroy(){let t,e=this,i=e.axes,s=e.series,n=e.container,o=n?.parentNode;for(D(e,"destroy"),e.renderer.forExport?pe(Ge,e):Ge[e.index]=void 0,T.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),ge(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();
2["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(r=>{e[r]=e[r]?.destroy?.();}),n&&(n.innerHTML=bt.emptyHTML,ge(n),o&&Oi(n)),tt(e,function(r,a){delete e[a];});}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=ft(e.series)?e.series:[];e.series=[],i.forEach(function(s){t.initSeries(s);}),t.linkSeries(),t.setSortedData(),D(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),D(this,"load"),D(this,"render"),B(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,"<")}),t.accessibility&&t.accessibility.enabled===!1||Ot('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&&sn.getComputedStyle(this.container).zIndex!=="0"&&Ot(35,!1,this);}addSeries(t,e,i){let s,n=this;return t&&(e=_(e,!0),D(n,"addSeries",{options:t},function(){s=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),D(n,"afterAddSeries",{series:s}),e&&n.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 Qe(this,e.axis,t);return _(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,n=s?.style??{},o=function(){r&&nt(r,{left:n.left??e.plotLeft+"px",top:n.top??e.plotTop+"px",width:n.width??e.plotWidth+"px",height:n.height??e.plotHeight+"px"});},r=e.loadingDiv,a=e.loadingSpan;r||(e.loadingDiv=r=re("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=re("span",{className:"highcharts-loading-inner"},null,r),J(e,"redraw",o)),r.className="highcharts-loading",bt.setElementHTML(a,_(t,i.lang.loading,"")),!e.styledMode&&(nt(r,Y(n,{zIndex:10})),nt(a,s?.labelStyle??{}),e.loadingShown||(nt(r,{opacity:0,display:""}),Js(r,{opacity:n.opacity??.5},{duration:s?.showDuration??0}))),e.loadingShown=!0,o();}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||Js(e,{opacity:0},{duration:t.loading?.hideDuration??100,complete:function(){nt(e,{display:"none"});}})),this.loadingShown=!1;}update(t,e,i,s){let n,o,r,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},d=t.isResponsiveOptions,c=[];D(a,"update",{options:t}),d||a.setResponsive(!1,!0),t=di(t,a.options),a.userOptions=X(a.userOptions,t);let p=t.chart;p&&(X(!0,a.options.chart,p),this.setZoomOptions(),"className"in p&&a.setClassName(p.className),("inverted"in p||"polar"in p||"type"in p)&&(a.propFromSeries(),n=!0),"alignTicks"in p&&(n=!0),"events"in p&&uo(this,p),tt(p,function(u,g){a.propsRequireUpdateSeries.indexOf("chart."+g)!==-1&&(o=!0),a.propsRequireDirtyBox.indexOf(g)!==-1&&(a.isDirtyBox=!0),a.propsRequireReflow.indexOf(g)!==-1&&(a.isDirtyBox=!0,d||(r=!0));}),!a.styledMode&&p.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),tt(t,function(u,g){a[g]&&typeof a[g].update=="function"?a[g].update(u,!1):typeof a[h[g]]=="function"?a[h[g]](u):g!=="colors"&&a.collectionsWithUpdate.indexOf(g)===-1&&X(!0,a.options[g],t[g]),g!=="chart"&&a.propsRequireUpdateSeries.indexOf(g)!==-1&&(o=!0);}),this.collectionsWithUpdate.forEach(u=>
2{t[u]&&(jt(t[u]).forEach((g,f)=>{let x;if(!g)return;let b=B(g.id);b&&(x=a.get(g.id)),!x&&a[u]&&(x=a[u][_(g.index,f)])&&(b&&B(x.options.id)||x.options.isInternal)&&(x=void 0),x&&x.coll===u&&(x.update(g,!1),i&&(x.touched=!0)),!x&&i&&a.collectionsWithInit[u]&&(a.collectionsWithInit[u][0].apply(a,[g].concat(a.collectionsWithInit[u][1]||[]).concat([!1])).touched=!0);}),i&&a[u].forEach(g=>{g.touched||g.options.isInternal?delete g.touched:c.push(g);}));}),c.forEach(u=>{u.chart&&u.remove&&u.remove(!1);}),n&&a.axes.forEach(function(u){u.update({},!1);}),o&&a.getSeriesOrderByLinks().forEach(function(u){u.chart&&u.update({},!1);},this);let m=p?.width,y=p&&(lt(p.height)?Ft(p.height,m||a.chartWidth):p.height);r||S(m)&&m!==a.chartWidth||S(y)&&y!==a.chartHeight?a.setSize(m,y,s):_(e,!0)&&a.redraw(s),D(a,"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=en.lang,i=t.zooming.resetButton,s=i.theme,n=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?null:"plotBox";function o(){t.zoomOut();}D(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,o,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,n);}),D(this,"afterShowResetZoom");}zoomOut(){D(this,"selection",{resetSelection:!0}
2,()=>this.transform({reset:!0,trigger:"zoom"}));}pan(t,e){let i=this,s=typeof e=="object"?e:{enabled:e,type:"x"},n=s.type,o=n&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[n]].filter(a=>a.options.panningEnabled&&!a.options.isInternal),r=i.options.chart;r?.panning&&(r.panning=s),D(this,"pan",{originalEvent:t},()=>{i.transform({axes:o,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),nt(i.container,{cursor:"move"});});}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:n,selection:o,to:r={},trigger:a,allowResetButton:h=!0}=t,{inverted:d,time:c}=this;this.hoverPoints?.forEach(u=>u.setState()),D(this,"transform",t);let p=t.hasZoomed||!1,m,y;for(let u of e){let{horiz:g,len:f,minPointOffset:x=0,options:b,reversed:M}=u,v=g?"width":"height",P=g?"x":"y",k=_(r[v],u.len),w=_(s[v],u.len),I=10>Math.abs(k)?1:k/w,N=(s[P]||0)+w/2-u.pos,L=N-((r[P]??u.pos)+k/2-u.pos)/I,W=M&&!d||!M&&d?-1:1;if(!n&&(N<0||N>u.len))continue;let G=u.chart.polar||u.isOrdinal?0:x*W||0,F=u.toValue(L,!0),$=u.toValue(L+f/I,!0),V=F+G,j=$-G,ut=u.allExtremes;if(o&&o[u.coll].push({axis:u,min:Math.min(F,$),max:Math.max(F,$)}),V>j&&([V,j]=[j,V]),I===1&&!n&&u.coll==="yAxis"&&!ut){for(let Se of u.series){let se=Se.getExtremes(Se.getProcessedData(!0).modified.getColumn(Se.pointValKey||"y")||[],!0);ut??(ut={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),S(se.dataMin)&&S(se.dataMax)&&(ut.dataMin=Math.min(se.dataMin,ut.dataMin),ut.dataMax=Math.max(se.dataMax,ut.dataMax));}u.allExtremes=ut;}let{dataMin:mt,dataMax:qt,min:K,max:et}=Y(u.getExtremes(),ut||{}),rt=c.parse(b.min),st=c.parse(b.max),ct=mt??rt,Nt=qt??st,dt=j-V,Ct=u.categories?0:Math.min(dt,Nt-ct),Rt=ct-Ct*(B(rt)?0:b.minPadding),Kt=Nt+Ct*(B(st)?0:b.maxPadding),ei=u.allowZoomOutside||I===1||a!=="zoom"&&I>1,ye=Math.min(rt??Rt,Rt,ei?K:Rt),Yt=Math.max(st??Kt,Kt,ei?et:Kt);(!u.isOrdinal||I!==1||n)&&(V<ye&&(V=ye,I>=1&&(j=V+dt)),j>Yt&&(j=Yt,I>=1&&(V=j-dt)),(n||u.series.length&&(V!==K||j!==et)&&V>=ye&&j<=Yt)&&(o?o[u.coll].push({axis:u,min:V,max:j}):(u.isPanning=a!=="zoom",u.isPanning&&a!=="mousewheel"&&(y=!0),u.setExtremes(n?void 0:V,n?void 0:j,!1,!1,{move:L,trigger:a,scale:I}),!n&&(V>ye||j<Yt)&&(m=h)),p=!0),this.hasCartesianSeries||n||(m=h),i&&(this[g?"mouseDownX":"mouseDownY"]=i[g?"chartX":"chartY"]));}return p&&(o?D(this,"selection",o,()=>{delete t.selection,t.trigger="zoom",this.transform(t);}):(!m||y||this.resetZoomButton?!m&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(a==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),p}}Y(ze.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ze.prototype.addAxis,[!0]],yAxis:[ze.prototype.addAxis,[!1]],series:[ze.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
2dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:Ol}=Xt,{composed:_l}=T;function Tl(){let l=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!l&&(this.scrollablePlotArea=l=new xo(this)),l?.applyFixed();}function yo(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0);}let xo=(()=>{class l{static compose(e,i,s){me(_l,this.compose)&&(J(e,"afterInit",yo),J(i,"afterSetChartSize",n=>this.afterSetSize(n.target,n)),J(i,"render",Tl),J(s,"show",yo));}static afterSetSize(e,i){let s,n,o,{minWidth:r,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:h,plotBox:d,inverted:c,renderer:p}=e;if(!p.forExport)if(r?(e.scrollablePixelsX=s=Math.max(0,r-e.chartWidth),s&&(e.scrollablePlotBox=X(e.plotBox),d.width=e.plotWidth+=s,h[c?"height":"width"]+=s,o=!0)):a&&(e.scrollablePixelsY=n=Math.max(0,a-e.chartHeight),B(n)&&(e.scrollablePlotBox=X(e.plotBox),d.height=e.plotHeight+=n,h[c?"width":"height"]+=n,o=!1)),B(o)){if(!i.skipAxes)for(let m of e.axes)(m.horiz===o||e.hasParallelCoordinates&&m.coll==="yAxis")&&(m.setAxisSize(),m.setAxisTranslation());}else delete e.scrollablePlotBox;}constructor(e){let i,s=e.options.chart,n=mi.getRendererType(),o=s.scrollablePlotArea||{},r=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(a.overflowX="auto"),e.scrollablePixelsY&&(a.overflowY="auto"),this.chart=e;let h=this.parentDiv=re("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),d=this.scrollingContainer=re("div",{className:"highcharts-scrolling"},a,h),c=this.innerContainer=re("div",{className:"highcharts-inner-container"},void 0,d),p=this.fixedDiv=re("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(s.style?.zIndex||0)+2,top:0},void 0,!0),m=this.fixedRenderer=new n(p,e.chartWidth,e.chartHeight,s.style);this.mask=m.path().attr({fill:s.backgroundColor||"#fff","fill-opacity":o.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(p,d),nt(e.renderTo,{overflow:"visible"}),J(e,"afterShowResetZoom",r),J(e,"afterApplyDrilldown",r),J(e,"afterLayOutTitles",r),J(d,"scroll",()=>{let{pointer:y,hoverPoint:u}=e;y&&(delete y.chartPosition,u&&(i=u),y.runPointActions(void 0,i,!0));}),c.appendChild(e.container);}applyFixed(){let{chart:e,fixedRenderer:i,isDirty:s,scrollingContainer:n}=this,{axisOffset:o,chartWidth:r,chartHeight:a,container:h,plotHeight:d,plotLeft:c,plotTop:p,plotWidth:m,scrollablePixelsX:y=0,scrollablePixelsY:u=0}=e,{scrollPositionX:g=0,scrollPositionY:f=0}=e.options.chart.scrollablePlotArea||{},x=r+y,b=a+u;i.setSize(r,a),(s??!0)&&(this.isDirty=!1,this.moveFixedElements()),Ol(e.container),nt(h,{width:`${x}px`,height:`${b}px`}),e.renderer.boxWrapper.attr({width:x,height:b,viewBox:["0 0",x,b].join(" ")}),e.chartBackground?.attr({width:x,height:b}),nt(n,{width:`${r}px`,height:`${a}px`}),B(s)||(n.scrollLeft=y*g,n.scrollTop=u*f);let M=p-o[0]-1,v=c-o[3]-1,P=p+d+o[2]+1,k=c+m+o[1]+1,w=c+m-y,I=p+d-u,N=[["M",0,0]];y?N=[["M",0,M],["L",c-1,M],["L",c-1,P],["L",0,P],["Z"],["M",w,M],["L",r,M],["L",r,P],["L",w,P],["Z"]]:u&&(N=[["M",v,0],["L",v,p-1],["L",k,p-1],["L",k,0],["Z"],["M",v,I],["L",v,a],["L",k,a],["L",k,I],["Z"]]),e.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:N});}moveFixedElements(){let e,{container:i,inverted:s,scrollablePixelsX:n,scrollablePixelsY:o}=this.chart,r=this.fixedRenderer,a=l.fixedSelectors.slice();if(n&&!s?e=".highcharts-yaxis":n&&s||o&&!s?e=".highcharts-xaxis":o&&s&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&e===".highcharts-yaxis"))for(let h of [`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])me(a,h);else for(let h of [".highcharts-xaxis",".highcharts-yaxis"])for(let d of [`${h}:not(.highcharts-radial-axis)`,`${h}-labels:not(.highcharts-radial-axis-labels)`])pe(a,d);for(let h of a)[].forEach.call(i.querySelectorAll(h),d=>{(d.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(d),d.style.pointerEvents="auto";});}}return l.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"],l})(),{format:Sl}=ce,{series:Al}=Pt,bo=class{constructor(l,t,e,i,s){let n=l.chart.inverted,o=l.reversed;this.axis=l;let r=this.isNegative=!!e!=!!o;this.options=t=t||{},this.x=i,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(n?r?"left"
2:"right":"center"),verticalAlign:t.verticalAlign||(n?"middle":r?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(n?r?"right":"left":"center");}destroy(){Ne(this,this.axis);}render(l){let t=this.axis.chart,e=this.options,i=e.format,s=(i?Sl(i,this,t):e.formatter?.call(this,this))||"";if(this.label)this.label.attr({text:s,visibility:"hidden"});else {this.label=t.renderer.label(s,null,void 0,e.shape,void 0,void 0,e.useHTML,!1,"stack-labels");let n={r:e.borderRadius||0,text:s,padding:_(e.padding,5),visibility:"hidden"};t.styledMode||(n.fill=e.backgroundColor,n.stroke=e.borderColor,n["stroke-width"]=e.borderWidth,this.label.css(e.style||{})),this.label.attr(n),this.label.added||this.label.add(l);}this.label.labelrank=t.plotSizeY,D(this,"afterRender");}setOffset(l,t,e,i,s,n){let{alignOptions:o,axis:r,label:a,options:h,textAlign:d}=this,c=r.chart,p=this.getStackBox({xOffset:l,width:t,boxBottom:e,boxTop:i,defaultX:s,xAxis:n}),{verticalAlign:m}=o;if(a&&p){let y=a.getBBox(void 0,0),u=a.padding,g=_(h.overflow,"justify")==="justify",f;o.x=h.x||0,o.y=h.y||0;let{x,y:b}=this.adjustStackPosition({labelBox:y,verticalAlign:m,textAlign:d});p.x-=x,p.y-=b,a.align(o,!1,p),(f=c.isInsidePlot(a.alignAttr.x+o.x+x,a.alignAttr.y+o.y+b))||(g=!1),g&&Al.prototype.justifyDataLabel.call(r,a,o,a.alignAttr,y,p),a.attr({x:a.alignAttr.x,y:a.alignAttr.y,rotation:h.rotation,rotationOriginX:y.width*Vt(h.textAlign||"center"),rotationOriginY:y.height/2}),_(!g&&h.crop,!0)&&(f=S(a.x)&&S(a.y)&&c.isInsidePlot(a.x-u+(a.width||0),a.y)&&c.isInsidePlot(a.x+u,a.y)),a[f?"show":"hide"]();}D(this,"afterSetOffset",{xOffset:l,width:t});}adjustStackPosition({labelBox:l,verticalAlign:t,textAlign:e}){return {x:l.width/2+l.width/2*(2*Vt(e)-1),y:l.height/2*2*(1-Vt(t))}}getStackBox(l){let t=this.axis,e=t.chart,{boxTop:i,defaultX:s,xOffset:n,width:o,boxBottom:r}=l,a=t.stacking.usePercentage?100:_(i,this.total,0),h=t.toPixels(a),d=l.xAxis||e.xAxis[0],c=_(s,d.translate(this.x))+n,p=Math.abs(h-t.toPixels(r||S(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),m=e.inverted,y=this.isNegative;return m?{x:(y?h:h-p)-e.plotLeft,y:d.height-c-o+d.top-e.plotTop,width:p,height:o}:{x:c+d.transB-e.plotLeft,y:(y?h-p:h)-e.plotTop,width:o,height:p}}},{getDeferredAnimation:Dl}=Xt,{series:{prototype:El}}=Pt;function Ll(){let l=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks);}),this.series.forEach(t=>{let e=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,_(t.options.stack,""),l?e.top:e.left,l?e.height:e.width].join(","));});}function Il(){let l=this.stacking;if(l){let t=l.stacks;tt(t,(e,i)=>{Ne(e),delete t[i];}),l.stackTotalGroup?.destroy();}}function Bl(){this.stacking||(this.stacking=new Gl(this));}function Nl(l,t,e,i){return !B(l)||l.x!==t||i&&l.stackKey!==i?l={x:t,index:0,key:i,stackKey:i}:l.index++,l.key=[e,t,l.index].join(","),l}function Rl(){let l,t=this,e=t.yAxis,i=t.stackKey||"",s=e.stacking.stacks,n=t.getColumn("x",!0),o=t.options.stacking,r=t[o+"Stacker"];r&&[i,"-"+i].forEach(a=>{let h=n.length,d,c,p;for(;h--;)d=n[h],l=t.getStackIndicator(l,d,t.index,a),c=s[a]?.[d],(p=c?.points[l.key||""])&&r.call(t,p,c,h);});}function zl(l,t,e){let i=t.total?100/t.total:0;l[0]=xt(l[0]*i),l[1]=xt(l[1]*i),this.stackedYData[e]=l[1];}function Hl(l){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?El.setStackedPoints.call(this,l,"group"):l.stacking.resetStacks());}function Wl(l,t){let e,i,s,n,o,r,a,h=t||this.options.stacking;if(!h||!this.reserveSpace()||({group:"xAxis"}[h]||"yAxis")!==l.coll)return;let d=this.getColumn("x",!0),c=this.getColumn(this.pointValKey||"y",!0),p=[],m=c.length,y=this.options,u=y.threshold||0,g=y.startFromThreshold?u:0,f=y.stack,x=t?`${this.type},${h}`:this.stackKey||"",b="-"+x,M=this.negStacks,v=l.stacking,P=v.stacks,k=v.oldStacks;for(v.stacksTouched+=1,a=0;a<m;a++){let w=d[a]||0,I=c[a],N=S(I)&&I||0;r=(e=this.getStackIndicator(e,w,this.index)).key||"",P[o=(i=M&&N<(g?0:u))?b:x]||(P[o]={}),P[o][w]||(k[o]?.[w]?(P[o][w]=k[o][w],P[o][w].total=null):P[o][w]=new bo(l,l.options.stackLabels,!!i,w,f)),s=P[o][w],I!==null?(s.points[r]=s.points[this.index]=[_(s.cumulative,g)],B(s.cumulative)||(s.base=r),s.touched=v.stacksTouched,e.index>0&&this.singleStacks===!1&&(s.points[r][0]=s.points[this.index+","+w+",0"][0])):(delete s.points[r],delete s.points[this.index]);let L=s.total||0;h==="percent"?(n=i?x:b,L=M&&P[n]?.[w]?(n=P[n][w]).total=Math.max(n.total||0,L)+Math.abs(N):xt(L+Math.abs(N))):h==="group"?S(I)&&L++:L=xt(L+N),h==="group"?s.cumulative=(L||1)-1:s.cumulative=xt(_(s.cumulative,g)+N),s.total=L,I!==null&&(s.points[r].push(s.cumulative),p[a]=s.cumulative,s.hasValidPoints=!0);}h==="percent"&&(v.usePercentage=!0),h!=="group"&&(this.stackedYData=p),v.oldStacks={};}class Gl{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t;}buildStacks(){let t,e,i=this.axis,s=i.series,n=i.coll==="xAxis",o=i.options.reversedStacks,r=s.length;for(this.resetStacks(),this.usePercentage=!1,e=r;e--;)t=s[o?e:r-e-1],n&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!n)for(e=0;e<r;e++)s[e].modifyStacks();D(i,"afterBuildStacks");}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,tt(this.stacks,t=>{tt(t,e=>{e.cumulative=e.total;});}));}resetStacks(){tt(this.stacks,t=>{tt(t,(e,i)=>{S(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,n=Dl(e,t.options.stackLabels?.animation||!1),o=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}
2).add();o.translate(e.plotLeft,e.plotTop),tt(s,r=>{tt(r,a=>{a.render(o);});}),o.animate({opacity:1},n);}}(Os||(Os={})).compose=function(l,t,e){let i=t.prototype,s=e.prototype;i.getStacks||(J(l,"init",Bl),J(l,"destroy",Il),i.getStacks=Ll,s.getStackIndicator=Nl,s.modifyStacks=Rl,s.percentStacker=zl,s.setGroupedPoints=Hl,s.setStackedPoints=Wl);};let Fl=Os;class vo extends ie{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,n)=>{let o,r=s.graph,a=r?"animate":"attr",h=s.dashStyle||t.dashStyle;if(r?(r.endX=this.preventGraphAnimation?null:e.xMap,r.animate({d:e})):e.length&&(s.graph=r=this.chart.renderer.path(e).addClass("highcharts-graph"+(n?` highcharts-zone-graph-${n-1} `:" ")+(n&&s.className||"")).attr({zIndex:1}).add(this.group)),r&&!i&&(o={stroke:!n&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},h?o.dashstyle=h:t.linecap!=="square"&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),r[a](o),t.shadow)){let d=this.chart.inverted,c={filterUnits:"userSpaceOnUse"},p=ht(t.shadow)?X(d?{}:c,t.shadow):!!d||c;r.shadow(p);}r&&(r.startX=e.xMap,r.isArea=e.isArea);});}getGraphPath(t,e,i){let s=this,n=s.options,o=[],r=[],a,h=n.step,d=(t=t||s.points).reversed;return d&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&d&&(h=4-h),(t=this.getValidPoints(t,!1,n.nullInteraction||!(n.connectNulls&&!e&&!i))).forEach(function(c,p){let m,y=c.plotX,u=c.plotY,g=t[p-1],f=c.isNull||typeof u!="number";(c.leftCliff||g?.rightCliff)&&!i&&(a=!0),f&&!B(e)&&p>0?a=!n.connectNulls:f&&!e?a=!0:(p===0||a?m=[["M",c.plotX,c.plotY]]:s.getPointSpline?m=[s.getPointSpline(t,c,p)]:h?(m=h===1?[["L",g.plotX,u]]:h===2?[["L",(g.plotX+y)/2,g.plotY],["L",(g.plotX+y)/2,u]]:[["L",y,g.plotY]]).push(["L",y,u]):m=[["L",y,u]],r.push(c.x),h&&(r.push(c.x),h===2&&r.push(c.x)),o.push.apply(o,m),a=!1);}),o.xMap=r,s.graphPath=o,o}}vo.defaultOptions=X(ie.defaultOptions,{legendSymbol:"lineMarker"}),Pt.registerSeriesType("line",vo);let{seriesTypes:{line:on}}=Pt;class rn extends on{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let n={},o=i.fillColor||e.fillColor,r=i.area,a=r?"animate":"attr";r?(r.endX=this.preventGraphAnimation?null:t.xMap,r.animate({d:t})):(n.zIndex=0,(r=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||(n.fill=o||i.color||this.color,n["fill-opacity"]=o?1:e.fillOpacity??.75,r.css({pointerEvents:this.stickyTracking?"none":"auto"})),r[a](n),r.startX=t.xMap,r.shiftUnit=e.step?2:1;});}getGraphPath(t){let e,i,s,n=on.prototype.getGraphPath,o=this.options,r=o.stacking,a=this.yAxis,h=[],d=[],c=this.index,p=a.stacking.stacks[this.stackKey],m=o.threshold,y=Math.round(a.getThreshold(o.threshold)),u=_(o.connectNulls,r==="percent"),g=function(P,k,w){let I=t[P],N=t[k],L=r&&p[I.x].points[c],W=I[w+"Null"]||0,G=I[w+"Cliff"]||0,F,$,V=!0;L&&(G||W)?(F=(W?L[0]:L[1])+G,$=L[0]+G,V=!!W):!r&&N&&(N.isNull||!B(N.plotY))&&(F=$=m),F!==void 0&&(d.push({plotX:e,plotY:F===null?y:a.getThreshold(F),isNull:V,isCliff:!0}),h.push({plotX:e,plotY:$===null?y:a.getThreshold($),doCurve:!1}));};t=t||this.points,r&&(t=this.getStackPoints(t));for(let P=0,k=t.length;P<k;++P)r||(t[P].leftCliff=t[P].rightCliff=t[P].leftNull=t[P].rightNull=void 0),i=t[P].isNull||!B(t[P].plotY),e=_(t[P].rectPlotX,t[P].plotX),s=r?_(t[P].yBottom,y):y,(!i||u)&&(u||g(P,P-1,"left"),i&&!r&&u||(d.push(t[P]),h.push({x:P,plotX:e,plotY:s})),u||g(P,P+1,"right"));let f=n.call(this,d,!0,!0);h.reversed=!0;let x=n.call(this,h,!0,!0),b=x[0];b&&b[0]==="M"&&(x[0]=["L",b[1],b[2]]);let M=f.concat(x);M.length&&M.push(["Z"]);let v=n.call(this,d,!1,u);return this.chart.series.length>1&&r&&d.some(P=>P.isCliff)&&(M.hasStackedCliffs=v.hasStackedCliffs=!0),M.xMap=f.xMap,this.areaPath=M,v}getStackPoints(t){let e=this,i=[],s=[],n=this.xAxis,o=this.yAxis,r=o.stacking.stacks[this.stackKey],a={},h=o.series,d=h.length,c=o.options.reversedStacks?1:-1,p=h.indexOf(e),m=o.getThreshold(e.options.threshold||0);if(t=t||this.points,this.options.stacking){for(let u=0;u<t.length;u++)t[u].leftNull=t[u].rightNull=void 0,a[t[u].x]=t[u];tt(r,function(u,g){u.total!==null&&s.push(g);}),s.sort(function(u,g){return u-g});let y=h.map(u=>u.visible);
2s.forEach(function(u,g){let f=0,x,b;if(a[u]&&!a[u].isNull)i.push(a[u]),[-1,1].forEach(function(M){let v=M===1?"rightNull":"leftNull",P=r[s[g+M]],k=0;if(P){let w=p;for(;w>=0&&w<d;){let I=h[w].index;!(x=P.points[I])&&(I===e.index?a[u][v]=!0:y[w]&&(b=r[u].points[I])&&(k-=b[1]-b[0])),w+=c;}}a[u][M===1?"rightCliff":"leftCliff"]=k;});else {let M=p;for(;M>=0&&M<d;){let P=h[M].index;if(x=r[u].points[P]){f=x[1];break}M+=c;}f||(f=0);let v=o.positiveValuesOnly&&f<=0?m:o.translate(f,!1,!0,!1,!0);i.push({isNull:!0,plotX:n.translate(u,!1,!1,!1,!0),x:u,plotY:v,yBottom:v});}});}return i}}rn.defaultOptions=X(on.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Y(rn.prototype,{singleStacks:!1}),Pt.registerSeriesType("area",rn);let{line:Co}=Pt.seriesTypes;class an extends Co{getPointSpline(t,e,i){let s,n,o,r,a=e.plotX||0,h=e.plotY||0,d=t[i-1],c=t[i+1];function p(y){return y&&!y.isNull&&y.doCurve!==!1&&!e.isCliff}if(p(d)&&p(c)){let y=d.plotX||0,u=d.plotY||0,g=c.plotX||0,f=c.plotY||0,x=0;s=(1.5*a+y)/2.5,n=(1.5*h+u)/2.5,o=(1.5*a+g)/2.5,r=(1.5*h+f)/2.5,o!==s&&(x=(r-n)*(o-a)/(o-s)+h-r),n+=x,r+=x,n>u&&n>h?(n=Math.max(u,h),r=2*h-n):n<u&&n<h&&(n=Math.min(u,h),r=2*h-n),r>f&&r>h?(r=Math.max(f,h),n=2*h-r):r<f&&r<h&&(r=Math.min(f,h),n=2*h-r),e.rightContX=o,e.rightContY=r,e.controlPoints={low:[s,n],high:[o,r]};}let m=["C",_(d.rightContX,d.plotX,0),_(d.rightContY,d.plotY,0),_(s,a,0),_(n,h,0),a,h];return d.rightContX=d.rightContY=void 0,m}}an.defaultOptions=X(Co.defaultOptions),Pt.registerSeriesType("spline",an);let Mo=an,{area:Xl,area:{prototype:ln}}=Pt.seriesTypes;class hn extends Mo{}hn.defaultOptions=X(Mo.defaultOptions,Xl.defaultOptions),Y(hn.prototype,{getGraphPath:ln.getGraphPath,getStackPoints:ln.getStackPoints,drawGraph:ln.drawGraph}),Pt.registerSeriesType("areaspline",hn);let{animObject:Yl}=Xt,{parse:Vl}=Mt,{noop:jl}=T;class Fi extends ie{animate(t){let e,i,s=this,n=this.yAxis,o=n.pos,r=n.reversed,a=s.options,{clipOffset:h,inverted:d}=this.chart,c={},p=d?"translateX":"translateY";t&&h?(c.scaleY=.001,i=kt(n.toPixels(a.threshold||0),o,o+n.len),d?c.translateX=(i+=r?-Math.floor(h[0]):Math.ceil(h[2]))-n.len:c.translateY=i+=r?Math.ceil(h[0]):-Math.floor(h[2]),s.clipBox&&s.setClip(),s.group.attr(c)):(e=Number(s.group.attr(p)),s.group.animate({scaleY:1},Y(Yl(s.options.animation),{step:function(m,y){s.group&&(c[p]=e+y.pos*(o-e),s.group.attr(c));}})));}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,e=t.options,i=t.xAxis,s=t.yAxis,n=i.options.reversedStacks,o=i.reversed&&!n||!i.reversed&&n,r={},a,h=0;e.grouping===!1?h=1:t.chart.series.forEach(function(u){let g,f=u.yAxis,x=u.options;u.type===t.type&&u.reserveSpace()&&s.len===f.len&&s.pos===f.pos&&(x.stacking&&x.stacking!=="group"?(r[a=u.stackKey]===void 0&&(r[a]=h++),g=r[a]):x.grouping!==!1&&(g=h++),u.columnIndex=g);});let d=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),c=d*e.groupPadding,p=(d-2*c)/(h||1),m=Math.min(e.maxPointWidth||i.len,_(e.pointWidth,p*(1-2*e.pointPadding))),y=(t.columnIndex||0)+ +!!o;return t.columnMetrics={width:m,offset:(p-m)/2+(c+y*p-d/2)*(o?-1:1),paddedWidth:p,columnCount:h},t.columnMetrics}crispCol(t,e,i,s){let n=this.borderWidth,o=this.chart.inverted;return s=ae(e+s,n,o)-(e=ae(e,n,o)),this.options.crisp&&(i=ae(t+i,n)-(t=ae(t,n))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let n=this.xAxis.series.filter(h=>h.visible).map(h=>h.index),o=0,r=0;tt(this.xAxis.stacking?.stacks,h=>{let d=typeof i.x=="number"?h[i.x.toString()]?.points:void 0,c=d?.[this.index],p={};if(d&&ft(c)){let m=this.index,y=Object.keys(d).filter(u=>!u.match(",")&&d[u]&&d[u].length>1).map(parseFloat).filter(u=>n.indexOf(u)!==-1).filter(u=>{let g=this.chart.series[u].options,f=g.stacking&&g.stack;if(B(f)){if(S(p[f]))return m===u&&(m=p[f]),!1;p[f]=u;}return !0}).sort((u,g)=>g-u);o=y.indexOf(m),r=y.length;}}),o=this.xAxis.reversed?r-1-o:o;let a=(r-1)*s.paddedWidth+e;t=(i.plotX||0)+a/2-e-o*s.paddedWidth;}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,n=t.borderWidth=i.borderWidth??+!s,o=t.xAxis,r=t.yAxis,a=i.threshold,h=i.minPointLength??5,d=t.getColumnMetrics(),c=d.width,p=t.pointXOffset=d.offset,m=t.dataMin,y=t.dataMax,u=t.translatedThreshold=r.getThreshold(a),g=t.barW=Math.max(c,1+2*n);i.pointPadding&&i.crisp&&(g=Math.ceil(g)),ie.prototype.translate.apply(t),t.points.forEac
2h(function(f){let x=f.yBottom??u,b=999+Math.abs(x),M=f.plotX||0,v=kt(f.plotY,-b,r.len+b),P,k=Math.min(v,x),w=Math.max(v,x)-k,I=c,N=M+p,L=g;h&&Math.abs(w)<h&&(w=h,P=!r.reversed&&!f.negative||r.reversed&&f.negative,S(a)&&S(y)&&f.y===a&&y<=a&&(r.min||0)<a&&(m!==y||(r.max||0)<=a)&&(P=!P,f.negative=!f.negative),k=Math.abs(k-u)>h?x-(P?h:0):u-(P?h:0)),B(f.options.pointWidth)&&(N-=Math.round(((I=L=Math.ceil(f.options.pointWidth))-c)/2)),i.centerInCategory&&(N=t.adjustForMissingColumns(N,I,f,d)),f.barX=N,f.pointWidth=I,f.tooltipPos=e.inverted?[kt(r.len+r.pos-e.plotLeft-v,r.pos-e.plotLeft,r.len+r.pos-e.plotLeft),o.len+o.pos-e.plotTop-N-L/2,w]:[o.left-e.plotLeft+N+L/2,kt(v+r.pos-e.plotTop,r.pos-e.plotTop,r.len+r.pos-e.plotTop),w],f.shapeType=t.pointClass.prototype.shapeType||"roundedRect",f.shapeArgs=t.crispCol(N,k,L,f.isNull?0:w);}),D(this,"afterColumnTranslate");}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data");}pointAttribs(t,e){let i=this.options,s=this.pointAttrToOptions||{},n=s.stroke||"borderColor",o=s["stroke-width"]||"borderWidth",r,a,h,d=t&&t.color||this.color,c=t&&t[n]||i[n]||d,p=t&&t.options.dashStyle||i.dashStyle,m=t&&t[o]||i[o]||this[o]||0,y=t?.isNull&&i.nullInteraction?0:t?.opacity??i.opacity??1;t&&this.zones.length&&(a=t.getZone(),d=t.options.color||a&&(a.color||t.nonZonedColor)||this.color,a&&(c=a.borderColor||c,p=a.dashStyle||p,m=a.borderWidth||m)),e&&t&&(h=(r=X(i.states[e],t.options.states?.[e]||{})).brightness,d=r.color||h!==void 0&&Vl(d).brighten(r.brightness).get()||d,c=r[n]||c,m=r[o]||m,p=r.dashStyle||p,y=_(r.opacity,y));let u={fill:d,stroke:c,"stroke-width":m,opacity:y};return p&&(u.dashstyle=p),u}drawPoints(t=this.points){let e,i=this,s=this.chart,n=i.options,o=n.nullInteraction,r=s.renderer,a=n.animationLimit||250;t.forEach(function(h){let d=h.plotY,c=h.graphic,p=!!c,m=c&&s.pointCount<a?"animate":"attr";S(d)&&(h.y!==null||o)?(e=h.shapeArgs,c&&h.hasNewShapeType()&&(c=c.destroy()),i.enabledDataSorting&&(h.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!c&&(h.graphic=c=r[h.shapeType](e).add(h.group||i.group),c&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<a&&(c.attr({x:h.startXPos}),p=!0,m="animate")),c&&p&&c[m](X(e)),s.styledMode||c[m](i.pointAttribs(h,h.selected&&"select")).shadow(h.allowShadow!==!1&&n.shadow),c&&(c.addClass(h.getClassName(),!0),c.attr({visibility:h.visible?"inherit":"hidden"}))):c&&(h.graphic=c.destroy());});}drawTracker(t=this.points){let e,i=this,s=i.chart,n=s.pointer,o=function(r){n?.normalize(r);let a=n?.getPointFromEvent(r);n&&a&&i.options.enableMouseTracking&&(s.isInsidePlot(r.chartX-s.plotLeft,r.chartY-s.plotTop,{visiblePlotOnly:!0})||i.allowOutsidePlotInteraction&&n?.inClass(r.target,"highcharts-point")||n?.inClass(r.target,"highcharts-data-label"))&&(n.isDirectTouch=!0,a.onMouseOver(r));};t.forEach(function(r){e=ft(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[],r.graphic&&(r.graphic.element.point=r),e.forEach(function(a){(a.div||a.element).point=r;});}),i._hasTracking||(i.trackerGroups?.reduce((r,a)=>(a==="dataLabelsGroup"?r.push(...i.dataLabelsGroups||[]):r.push(i[a]),r),[]).forEach(r=>{r&&(r.addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(a){n?.onTrackerMouseOut(a);}).on("touchstart",o),!s.styledMode&&i.options.cursor&&r.css({cursor:i.options.cursor}));}),i._hasTracking=!0),D(this,"afterDrawTracker");}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0);}),ie.prototype.remove.apply(t,arguments);}}Fi.defaultOptions=X(ie.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),Y(Fi.prototype,{directTouch:!0,getSymbol:jl,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Pt.registerSeriesType("column",Fi);let Xi=Fi,{getDeferredAnimation:$l}=Xt,{format:Ul}=ce;(function(l){function t(){return a(this).some(d=>d?.enabled)}function e(d,c,p,m,y){let{chart:u,enabledDataSorting:g}=this,f=this.isCartesian&&u.inverted,x=d.plotX,b=d.plotY,M=p.rotation||0,v=B(x)&&B(b)&&u.isInsidePlot(x,Math.round(b),{inverted:f,paneCoordinates:!0,series:this}),P=M===0&&_(p.overflow,g?"none":"justify")==="justify",k=this.visible&&d.visible!==!1&&B(x)&&(d.series.forceDL||g&&!P||v||_(p.inside,!!this.options.stacking)&&m&&u.isInsidePlot(x,f?m.x+1:m.y+m.height-1,{inverted:f,paneCoordinates:!0,series:this})),w=d.pos();if(k&&w){var I;let N=c.getBBox(),L=c.getBBox(void 0,0);if(m=Y({x:w[0],y:Math.round(w[1]),width:0,height:0},m||{}),p.alignTo==="plotEdges"&&this.isCartesian&&(m[f?"x":"y"]=0,m[f?"width":"height"]=this.yAxis?.len||0),Y(p,{width:N.width,height:N.height}),I=m,g&&this.xAxis&&!P&&this.setDataLabelStartPos(d,c,y,v,I),c.align(X(p,{width:L.width,height:L.height}),!1,m,!1),c.alignAttr.x+=Vt(p.align)*(L.width-N.width),c.alignAttr.y+=Vt(p.verticalAlign)*(L.height-N.height),c[c.placed?"animate":"attr"]({"text-align":c.alignAttr["text-align"]||"center",x:c.alignAttr.x+(N.width-L.width)/2,y:c.alignAttr.y+(N.height-L.height)/2,rotationOriginX:(c.width||0)/2,rotationOriginY:(c.height||0)/2}),P&&m.height>=0)this.justifyDataLabel(c,p,c.alignAttr,N,m,y);else if(_(p.crop,!0)){let{x:W,y:G}=c.alignAttr;k=u.isInsidePlot(W,G,{paneCoordinates:!0,series:this})&&u.isInsidePlot(W+N.width-1,G+N.height-1,{paneCoordinates:!0,series:this});}p.shape&&!M&&c[y?"attr":"animate"]({anchorX:w[0],anchorY:w[1]});}y&&g&&(c.placed=!1),k||g&&!P?(c.show(),c.placed=!0):(c.hide(),c.placed=!1);}function i(d,c){D(this,"initDataLabelsGroup",{index:d,zIndex:c?.zIndex??6}),this.dataLabelsGroup=this.dataLabelsGroups?.[d];let p=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",c?.zIndex??6,this.dataLabelsParentGroups?.[d]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[d]=p,this.dataLabelsGroup=this.dataLabelsGroups[0],p}function s(d,c,p){let m=!!this.hasRendered,y=this.initDataLabelsGroup(d,p).attr({opacity:+m});return !m&&y&&(this.visible&&y.show(),this.options.animation?y.animate({opacity:1},c):y.attr({opacity:1})),y}function n(d){let c;d=d||this.points;let p=this,m=p.chart,y=p.options,u=m.renderer,{backgroundColor:g,plotBackgroun
2dColor:f}=m.options.chart,x=u.getContrast(lt(f)&&f||lt(g)&&g||"#000000"),b=a(p),{animation:M,defer:v}=b[0],P=v?$l(m,M,p):{defer:0,duration:0};D(this,"drawDataLabels"),p.hasDataLabels?.()&&d.forEach(k=>{let w=k.dataLabels||[],I=k.color||p.color;jt(r(b,k.dlOptions||k.options?.dataLabels)).forEach((L,W)=>{c=this.initDataLabels(W,P,L);let G=L.enabled&&(k.visible||k.dataLabelOnHidden)&&(!k.isNull||k.dataLabelOnNull)&&(function(ct,Nt){let dt=Nt.filter;if(dt){let Ct=dt.operator,Rt=ct[dt.property],Kt=dt.value;return Ct===">"&&Rt>Kt||Ct==="<"&&Rt<Kt||Ct===">="&&Rt>=Kt||Ct==="<="&&Rt<=Kt||Ct==="=="&&Rt==Kt||Ct==="==="&&Rt===Kt||Ct==="!="&&Rt!=Kt||Ct==="!=="&&Rt!==Kt||!1}return !0})(k,L),{backgroundColor:F,borderColor:$,distance:V,style:j={}}=L,ut,mt,qt,K={},et=w[W],rt=!et,st;G&&(mt=B(ut=_(L[k.formatPrefix+"Format"],L.format))?Ul(ut,k,m):(L[k.formatPrefix+"Formatter"]||L.formatter).call(k,L,k),qt=L.rotation,!m.styledMode&&(j.color=_(L.color,j.color,lt(p.color)?p.color:void 0,"#000000"),j.color==="contrast"?(F!=="none"&&(st=F),k.contrastColor=u.getContrast(st!=="auto"&<(st)&&st||(lt(I)?I:"")),j.color=st||!B(V)&&L.inside||0>vt(V||0)||y.stacking?k.contrastColor:x):delete k.contrastColor,y.cursor&&(j.cursor=y.cursor)),K={r:L.borderRadius||0,rotation:qt,padding:L.padding,zIndex:1},m.styledMode||(K.fill=F==="auto"?k.color:F,K.stroke=$==="auto"?k.color:$,K["stroke-width"]=L.borderWidth),tt(K,(ct,Nt)=>{ct===void 0&&delete K[Nt];})),!et||G&&B(mt)&&!!(et.div||et.text?.foreignObject)==!!L.useHTML&&(et.rotation&&L.rotation||et.rotation===L.rotation)||(et=void 0,rt=!0),G&&B(mt)&&mt!==""&&(et?K.text=mt:(et=u.label(mt,0,0,L.shape,void 0,void 0,L.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(L.className||"")+(L.useHTML?" highcharts-tracker":"")),et&&(et.options=L,et.attr(K),m.styledMode?j.width&&et.css({width:j.width,textOverflow:j.textOverflow,whiteSpace:j.whiteSpace}):et.css(j).shadow(L.shadow),D(et,"beforeAddingDataLabel",{labelOptions:L,point:k}),et.added||et.add(c),p.alignDataLabel(k,et,L,void 0,rt),et.isActive=!0,w[W]&&w[W]!==et&&w[W].destroy(),w[W]=et));});let N=w.length;for(;N--;)w[N]?.isActive?w[N].isActive=!1:(w[N]?.destroy(),w.splice(N,1));k.dataLabel=w[0],k.dataLabels=w;}),D(this,"afterDrawDataLabels");}function o(d,c,p,m,y,u){let g=this.chart,f=c.align,x=c.verticalAlign,b=d.box?0:d.padding||0,M=g.inverted?this.yAxis:this.xAxis,v=M?M.left-g.plotLeft:0,P=g.inverted?this.xAxis:this.yAxis,k=P?P.top-g.plotTop:0,{x:w=0,y:I=0}=c,N,L;return (N=(p.x||0)+b+v)<0&&(f==="right"&&w>=0?(c.align="left",c.inside=!0):w-=N,L=!0),(N=(p.x||0)+m.width-b+v)>g.plotWidth&&(f==="left"&&w<=0?(c.align="right",c.inside=!0):w+=g.plotWidth-N,L=!0),(N=p.y+b+k)<0&&(x==="bottom"&&I>=0?(c.verticalAlign="top",c.inside=!0):I-=N,L=!0),(N=(p.y||0)+m.height-b+k)>g.plotHeight&&(x==="top"&&I<=0?(c.verticalAlign="bottom",c.inside=!0):I+=g.plotHeight-N,L=!0),L&&(c.x=w,c.y=I,d.placed=!u,d.align(c,void 0,y)),L}function r(d,c){let p=[],m;if(ft(d)&&!ft(c))p=d.map(function(y){return X(y,c)});else if(ft(c)&&!ft(d))p=c.map(function(y){return X(d,y)});else if(ft(d)||ft(c)){if(ft(d)&&ft(c))for(m=Math.max(d.length,c.length);m--;)p[m]=X(d[m],c[m]);}else p=X(d,c);return p}function a(d){let c=d.chart.options.plotOptions;return jt(r(r(c?.series?.dataLabels,c?.[d.type]?.dataLabels),d.options.dataLabels))}function h(d,c,p,m,y){let u=this.chart,g=u.inverted,f=this.xAxis,x=f.reversed,b=((g?c.height:c.width)||0)/2,M=d.pointWidth,v=M?M/2:0;c.startXPos=g?y.x:x?-b-v:f.width-b+v,c.startYPos=g?x?this.yAxis.height-b+v:-b-v:y.y,m?c.visibility==="hidden"&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0}
2,void 0,c.hide),u.hasRendered&&(p&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0);}l.compose=function(d){let c=d.prototype;c.initDataLabels||(c.initDataLabels=s,c.initDataLabelsGroup=i,c.alignDataLabel=e,c.drawDataLabels=n,c.justifyDataLabel=o,c.mergeArrays=r,c.setDataLabelStartPos=h,c.hasDataLabels=t);};})(_s||(_s={}));let Yi=_s,{composed:Zl}=T,{series:Po}=Pt;function ql(l,t,e,i,s){let{chart:n,options:o}=this,r=n.inverted,a=this.xAxis?.len||n.plotSizeX||0,h=this.yAxis?.len||n.plotSizeY||0,d=l.dlBox||l.shapeArgs,c=l.below??(l.plotY||0)>(this.translatedThreshold??h),p=e.inside??!!o.stacking;if(d){if(i=X(d),e.overflow!=="allow"||e.crop!==!1||o.clip!==!1){i.y<0&&(i.height+=i.y,i.y=0);let m=i.y+i.height-h;m>0&&m<i.height-1&&(i.height-=m);}r&&(i={x:h-i.y-i.height,y:a-i.x-i.width,width:i.height,height:i.width}),p||(r?(i.x+=c?0:i.width,i.width=0):(i.y+=c?i.height:0,i.height=0));}e.align??(e.align=!r||p?"center":c?"right":"left"),e.verticalAlign??(e.verticalAlign=r||p?"middle":c?"top":"bottom"),Po.prototype.alignDataLabel.call(this,l,t,e,i,s),e.inside&&l.contrastColor&&t.css({color:l.contrastColor});}(Ts||(Ts={})).compose=function(l){Yi.compose(Po),me(Zl,"ColumnDataLabel")&&(l.prototype.alignDataLabel=ql);};let Kl=Ts;class cn extends Xi{}cn.defaultOptions=X(Xi.defaultOptions,{}),Y(cn.prototype,{inverted:!0}),Pt.registerSeriesType("bar",cn);let{column:Ql,line:ko}=Pt.seriesTypes;class Vi extends ko{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,n){["x","y"].forEach(function(o,r){if(e[o]&&!s.isNull){let a=`plot${o.toUpperCase()}`,h=t[`${o}Axis`],d=e[o]*h.transA;if(h&&!h.logarithmic){let c,p=Math.max(0,(s[a]||0)-d),m=Math.min(h.len,(s[a]||0)+d);s[a]=p+(m-p)*((c=1e4*Math.sin(n+r*i))-Math.floor(c)),o==="x"&&(s.clientX=s.plotX);}}});});}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy());}}Vi.defaultOptions=X(ko.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25CF</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Y(Vi.prototype,{allowOutsidePlotInteraction:!0,drawTracker:Ql.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),J(Vi,"afterTranslate",function(){this.applyJitter();}),Pt.registerSeriesType("scatter",Vi);let{deg2rad:wo}=T;(us=Ss||(Ss={})).getCenter=function(){let l=this.options,t=this.chart,e=2*(l.slicedOffset||0),i=t.plotWidth-2*e,s=t.plotHeight-2*e,n=l.center,o=Math.min(i,s),r=l.thickness,a,h=l.size,d=l.innerSize||0,c,p;typeof h=="string"&&(h=parseFloat(h)),typeof d=="string"&&(d=parseFloat(d));let m=[_(n?.[0],"50%"),_(n?.[1],"50%"),_(h&&h<0?void 0:l.size,"100%"),_(d&&d<0?void 0:l.innerSize||0,"0%")];for(!t.angular||this instanceof ie||(m[3]=0),c=0;c<4;++c)p=m[c],a=c<2||c===2&&/%$/.test(p),m[c]=Ft(p,[i,s,o,m[2]][c])+(a?e:0);return m[3]>m[2]&&(m[3]=m[2]),S(r)&&2*r<m[2]&&r>0&&(m[3]=m[2]-2*r),D(this,"afterGetCenter",{positions:m}),m},us.getStartAndEndRadians=function(l,t){let e=S(l)?l:0,i=S(t)&&t>e&&t-e<360?t:e+360;return {start:wo*(e+-90),end:wo*(i+-90)}};let Oo=Ss,{setAnimation:Jl}=Xt;class _o extends Re{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,n=this.connectorShapes[s]||s;return e&&n.call(this,G(F({},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=n=>{this.slice(n.type==="select");};J(this,"select",s),J(this,"unselect",s);}isValid(){return S(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;Jl(i,s.chart),e=_(e,!0),this.sliced=this.options.sliced=t=B(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate());}}Y(_o.prototype,{connectorShapes:{fixedOffset:function(l,t,e){let i=t.breakAt,s=t.touchingSliceAt,n=e.softConnector?["C",l.x+(l.alignment==="left"?-5:5),l.y,2*i.x-s.x,2*i.y-s.y,i.x,i.y]:["L",i.x,i.y];return [["M",l.x,l.y],n,["L",s.x,s.y]]},straight:function(l,t){let e=t.touchingSliceAt;return [["M",l.x,l.y],["L",e.x,e.y]]},crookedLine:function(l,t,e){let{angle:i=this.angle||0,breakAt:s,touchingSliceAt:n}=t,{series:o}=this,[r,a,h]=o.center,d=h/2,{plotLeft:c,plotWidth:p}=o.chart,m=l.alignment==="left",{x:y,y:u}=l,g=s.x;
vendor: 9,090 bytes, line 2
2if(e.crookDistance){let x=Ft(e.crookDistance,1);g=m?r+d+(p+c-r-d)*(1-x):c+(r-d)*x;}else g=r+(a-u)*Math.tan(i-Math.PI/2);let f=[["M",y,u]];return (m?g<=y&&g>=s.x:g>=y&&g<=s.x)&&f.push(["L",g,u]),f.push(["L",s.x,s.y],["L",n.x,n.y]),f}}});let{getStartAndEndRadians:th}=Oo,{noop:To}=T;class dn extends ie{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(n){let o=n.graphic,r=n.shapeArgs;o&&r&&(o.attr({r:_(n.startR,e.center&&e.center[3]/2),start:s,end:s}),o.animate({r:r.r,start:r.start,end:r.end},e.options.animation));});}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,n=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:Yn.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":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})):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();}getX(t,e,i,s){let n=this.center,o=this.radii?this.radii[i.index]||0:n[2]/2,r=s.dataLabelPosition,a=r?.distance||0,h=Math.asin(kt((t-n[1])/(o+a),-1,1));return n[0]+Math.cos(h)*(o+a)*(e?-1:1)+(a>0?(e?-1:1)*(s.padding||0):0)}hasData(){return this.points.some(t=>t.visible)}redrawPoints(){let t,e,i,s,n=this,o=n.chart;this.drawEmpty(),n.group&&!o.styledMode&&n.group.shadow(n.options.shadow),n.points.forEach(function(r){let a={};e=r.graphic,!r.isNull&&e?(s=r.shapeArgs,t=r.getTranslate(),o.styledMode||(i=n.pointAttribs(r,r.selected&&"select")),r.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),r.delayedRendering=!1):(e.setRadialReference(n.center),o.styledMode||X(!0,a,i),X(!0,a,s,t),e.animate(a)),e.attr({visibility:r.visible?"inherit":"hidden"}),e.addClass(r.getClassName(),!0)):e&&(r.graphic=e.destroy());});}sortByAngle(t,e){t.sort(function(i,s){return i.angle!==void 0&&(s.angle-i.angle)*e});}translate(t){D(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=th(e.startAngle,e.endAngle),n=this.startAngleRad=s.start,o=(this.endAngleRad=s.end)-n,r=this.points,a=e.ignoreHiddenPoint,h=r.length,d,c,p,m,y,u,g,f=0;for(t||(this.center=t=this.getCenter()),u=0;u<h;u++){g=r[u],d=n+f*o,g.isValid()&&(!a||g.visible)&&(f+=g.percentage/100),c=n+f*o;let x={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:d,end:c};g.shapeType="arc",g.shapeArgs=x,(p=(c+d)/2)>1.5*Math.PI?p-=2*Math.PI:p<-Math.PI/2&&(p+=2*Math.PI),g.slicedTranslation={translateX:Math.round(Math.cos(p)*i),translateY:Math.round(Math.sin(p)*i)},m=Math.cos(p)*t[2]/2,y=Math.sin(p)*t[2]/2,g.tooltipPos=[t[0]+.7*m,t[1]+.7*y],g.half=+(p<-Math.PI/2||p>Math.PI/2),g.angle=p;}D(this,"afterTranslate");}updateTotals(){let t=this.points,e=t.length,i=this.options.ignoreHiddenPoint,s,n,o=0;for(s=0;s<e;s++)(n=t[s]).isValid()&&(!i||n.visible)&&(o+=n.y);for(s=0,this.total=o;s<e;s++)(n=t[s]).percentage=o>0&&(n.visible||!i)?n.y/o*100:0,n.total=o;}}dn.defaultOptions=X(ie.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:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),Y(dn.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:Xi.prototype.drawTracker,getCenter:Oo.getCenter,getSymbol:To,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Xi.prototype.pointAttribs,pointClass:_o,requireSorting:!1,searchPoint:To,trackerGroups:["group","dataLabelsGroup"]}),Pt.registerSeriesType("pie",dn);let{composed:eh,noop:ih}=T,{distribute:sh}=Ii,{series:So}=Pt;(function(l){let t={radialDistributionY:function(o,r){return (r.dataLabelPosition?.top||0)+o.distributeBox.pos},radialDistributionX:function(o,r,a,h,d){let c=d.dataLabelPosition;return o.getX(a<(c?.top||0)+2||a>(c?.bottom||0)-2?h:a,r.half,r,d)},justify:function(o,r,a,h){return h[0]+(o.half?-1:1)*(a+(r.dataLabelPosition?.distance||0))},alignToPlotEdges:function(o,r,a,h){let d=o.getBBox().width;return r?d+h:a-d-h},alignToConnectors:function(o,r,a,h){let d=0,c;return o.forEach(function(p){(c=p.dataLabel.getBBox().width)>d&&(d=c);}),r?d+h:a-d-h}};function e(o,r){let a=Math.PI/2,{start:h=0,end:d=0}=o.shapeArgs||{},c=o.angle||0;r>0&&h<a&&d>a&&c>a/2&&c<1.5*a&&(c=c<=a?Math.max(a/2,(h+a)/2):Math.min(1.5*a,(a+d)/2));let{center:p,options:m}=this,y=p[2]/2,u=Math.cos(c),g=Math.sin(c),f=p[0]+u*y,x=p[1]+g*y,b=Math.min((m.slicedOffset||0)+(m.borderWidth||0),r/5);return {natural:{x:f+u*r,y:x+g*r},computed:{},alignment:r<0?"center":o.half?"right":"left",connectorPosition:{angle:c,breakAt:{x:f+u*b,y:x+g*b},touchingSliceAt:{x:f,y:x}},distance:r}}function i(){let o=this,r=o.points,a=o.chart,h=a.plotWidth,d=a.plotHeight,c=a.plotLeft,p=Math.round(a.chartWidth/3),m=o.center,y=m[2]/2,u=m[1],g=[[],[]],f=[0,0,0,0],x=o.dataLabelPositioners,b,M,v,P=0;o.visible&&o.hasDataLabels?.()&&(r.forEach(k=>{(k.dataLabels||[]).forEach(w=>{w.shortened&&(w.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),w.shortened=!1);});}),So.prototype.drawDataLabels.apply(o),r.forEach(k=>{(k.dataLabels||[]).forEach((w,I)=>{let N=m[2]/2,L=w.options,W=Ft(L?.distance||0,N);I===0&&g[k.half].push(k),!B(L?.style?.width)&&w.getBBox().width>p&&(w.css({width:Math.round(.7*p)+"px"}),w.shortened=!0),w.dataLabelPosition=this.getDataLabelPosition(k,W),P=Math.max(P,W);});}),g.forEach((k,w)=>{let I=k.length,N=[],L,W,G=0,F;I&&(o.sortByAngle(k,w-.5),P>0&&(L=Math.max(0,u-y-P),W=Math.min(u+y+P,a.plotHeight),k.forEach($=>{($.dataLabels||[]).forEach(V=>{let j=V.dataLabelPosition;j&&j.distance>0&&(j.top=Math.max(0,u-y-j.distance),j.bottom=Math.min(u+y+j.distance,a.plotHeight),G=V.getBBox().height||21,V.lineHeight=a.renderer.fontMetrics(V.text||V).h+2*V.padding,$.distributeBox={target:(V.dataLabelPosition?.natural.y||0)-j.top+V.lineHeight/2,size:G,rank:$.y},N.push($.distributeBox));});}),sh(N,F=W+G-L,F/5)),k.forEach($=>{($.dataLabels||[]).forEach(V=>{let j=V.options||{},ut=$.distributeBox,mt=V.dataLabelPosition,qt=mt?.natural.y||0,K=j.connectorPadding||0,et=V.lineHeight||21,rt=(et-V.getBBox().height)/2,st=0,ct=qt,Nt="inherit";if(mt){if(N&&B(ut)&&mt.distance>0&&(ut.pos===void 0?Nt="hidden":(v=ut.size,ct=x.radialDistributionY($,V))),j.justify)st=x.justify($,V,y,m);else switch(j.alignTo){case "connectors":st=x.alignToConnectors(k,w,h,c);break;case "plotEdges":st=x.alignToPlotEdges(V,w,h,c);break;default:st=x.radialDistributionX(o,$,ct-rt,qt,V);}if(mt.attribs={visibility:Nt,align:mt.alignment},mt.posAttribs={x:st+(j.x||0)+({left:K,right:-K}[mt.alignment]||0),y:ct+(j.y||0)-et/2},mt.computed.x=st,mt.computed.y=ct-rt,_(j.crop,!0)){let dt;st-(M=V.getBBox().width)<K&&w===1?(dt=Math.round(M-st+K),f[3]=Math.max(dt,f[3])):st+M>h-K&&w===0&&(dt=Math.round(st+M-h+K),f[1]=Math.max(dt,f[1])),ct-v/2<0?f[0]=Math.max(Math.round(-ct+v/2),f[0]):ct+v/2>d&&(f[2]=Math.max(Math.round(ct+v/2-d),f[2])),mt.sideOverflow=dt;}}});}));}),(ke(f)===0||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(k=>{k.dataLabels?.forEach((w,I)=>{let{connectorColor:N,connectorWidth:L=1}=w.options||{},W=w.dataLabelPosition;if(S(L)){let G;b=w.connector,W&&W.distance>0?(G=!b,b||(w.connector=b=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+k.colorIndex+(k.className?" "+k.className:"")).add(o.dataLabelsGroups?.[I])),a.styledMode||b.attr({"stroke-width":L,stroke:N||k.color||"#666666"}),b[G?"attr":"animate"]({d:k.getConnectorPath(w)}),b.attr({visibility:W.attribs?.visibility})):b&&(w.connector=b.destroy());}});})));}function s(){this.points.forEach(o=>{(o.dataLabels||[]).forEach(r=>{let a=r.dataLabelPosition;a?(a.sideOverflow&&(r.css({width:Math.max(r.getBBox().width-a.sideOverflow,0)+"px",textOverflow:r.options?.style?.textOverflow||"ellipsis"}),r.shortened=!0),r.attr(a.attribs),r[r.moved?"animate":"attr"](a.posAttribs),r.moved=!0):r&&r.attr({y:-9999});}),delete o.distributeBox;},this);}function n(o){let r=this.center,a=this.options,h=a.center,d=a.minSize||80,c=d,p=a.size!==null;return !p&&(h[0]!==null?c=Math.max(r[2]-Math.max(o[1],o[3]),d):(c=Math.max(r[2]-o[1]-o[3],d),r[0]+=(o[3]-o[1])/2),h[1]!==null?c=kt(c,d,r[2]-Math.max(o[0],o[2])):(c=kt(c,d,r[2]-o[0]-o[2]),r[1]+=(o[0]-o[2])/2),c<r[2]?(r[2]=c,r[3]=Math.min(a.thickness?Math.max(0,c-2*a.thickness):Math.max(0,Ft(a.innerSize||0,c)),c),this.translate(r),this.drawDataLabels&&this.drawDataLabels()):p=!0),p}
2l.compose=function(o){if(Yi.compose(So),me(eh,"PieDataLabel")){let r=o.prototype;r.dataLabelPositioners=t,r.alignDataLabel=ih,r.drawDataLabels=i,r.getDataLabelPosition=e,r.placeDataLabels=s,r.verifyDataLabelOverflow=n;}};})(As||(As={}));let nh=As;(Be=Ds||(Ds={})).getCenterOfPoints=function(l){let t=l.reduce((e,i)=>(e.x+=i.x,e.y+=i.y,e),{x:0,y:0});return {x:t.x/l.length,y:t.y/l.length}},Be.getDistanceBetweenPoints=function(l,t){return Math.sqrt(Math.pow(t.x-l.x,2)+Math.pow(t.y-l.y,2))},Be.getAngleBetweenPoints=function(l,t){return Math.atan2(t.x-l.x,t.y-l.y)},Be.pointInPolygon=function({x:l,y:t},e){let i=e.length,s,n,o=!1;for(s=0,n=i-1;s<i;n=s++){let[r,a]=e[s],[h,d]=e[n];a>t!=d>t&&l<(h-r)*(t-a)/(d-a)+r&&(o=!o);}return o};let{pointInPolygon:oh}=Ds;function Ao(l,t){let e,i=!1;return l&&(e=l.newOpacity,l.oldOpacity!==e&&(l.hasClass("highcharts-data-label")?(l[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,l[l.isOld?"animate":"attr"]({opacity:e},void 0,function(){t.styledMode||l.css({pointerEvents:e?"auto":"none"});}),D(t,"afterHideOverlappingLabel")):l.attr({opacity:e})),l.isOld=!0),i}let{defaultOptions:rh}=he,{noop:Do}=T,ah={radius:0,scope:"stack",where:void 0},Eo=Do,Lo=Do;function lh(l,t,e,i,s={}){let n=Eo(l,t,e,i,s),{brStart:o=!0,brEnd:r=!0,innerR:a=0,r:h=e,start:d=0,end:c=0}=s;if(s.open||!s.borderRadius)return n;let p=c-d,m=Math.sin(p/2),y=Math.max(Math.min(Ft(s.borderRadius||0,h-a),(h-a)/2,h*m/(1+m)),0),u=Math.min(y,p/Math.PI*2*a),g=n.length-1;for(;g--;)(o||g!==0&&g!==3)&&(r||g!==1&&g!==2)&&(function(f,x,b){let M,v,P,k=f[x],w=f[x+1];if(w[0]==="Z"&&(w=f[0]),(k[0]==="M"||k[0]==="L")&&w[0]==="A"?(M=k,v=w,P=!0):k[0]==="A"&&(w[0]==="M"||w[0]==="L")&&(M=w,v=k),M&&v&&v.params){let I=v[1],N=v[5],L=v.params,{start:W,end:G,cx:F,cy:$}=L,V=N?I-b:I+b,j=V?Math.asin(b/V):0,ut=N?j:-j,mt=Math.cos(j)*V;P?(L.start=W+ut,M[1]=F+mt*Math.cos(W),M[2]=$+mt*Math.sin(W),f.splice(x+1,0,["A",b,b,0,0,1,F+I*Math.cos(L.start),$+I*Math.sin(L.start)])):(L.end=G-ut,v[6]=F+I*Math.cos(L.end),v[7]=$+I*Math.sin(L.end),f.splice(x+1,0,["A",b,b,0,0,1,F+mt*Math.cos(G),$+mt*Math.sin(G)])),v[4]=Math.abs(L.end-L.start)<Math.PI?0:1;}})(n,g,g>1?u:y);return n}function hh(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:l,yAxis:t}=this,e=l.stacking==="percent",i=rh.plotOptions?.[this.type]?.borderRadius,s=pn(l.borderRadius,ht(i)?i:{}),n=t.options.reversed;for(let o of this.points){let{shapeArgs:r}=o;if(o.shapeType==="roundedRect"&&r){let{width:a=0,height:h=0,y:d=0}=r,c=d,p=h;if(s.scope==="stack"&&o.stackTotal){let g=t.translate(e?100:o.stackTotal,!1,!0,!1,!0),f=t.translate(l.threshold||0,!1,!0,!1,!0),x=this.crispCol(0,Math.min(g,f),0,Math.abs(g-f));c=x.y,p=x.height;}let m=(o.negative?-1:1)*(n?-1:1)==-1,y=s.where;!y&&this.is("waterfall")&&Math.abs((o.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(y="all"),y||(y="end");let u=Math.min(Ft(s.radius,a),a/2,y==="all"?p/2:1/0)||0;y==="end"&&(m&&(c-=u),p+=u),Y(r,{brBoxHeight:p,brBoxY:c,r:u});}}}}function pn(l,t){return ht(l)||(l={radius:l||0}),X(ah,t,l)}function ch(){let l=pn(this.options.borderRadius);for(let t of this.points){let e=t.shapeArgs;e&&(e.borderRadius=Ft(l.radius,(e.r||0)-(e.innerR||0)));}}function dh(l,t,e,i,s={}){let n=Lo(l,t,e,i,s),{r:o=0,brBoxHeight:r=i,brBoxY:a=t}=s,h=t-a,d=a+r-(t+i),c=h-o>-.1?0:o,p=d-o>-.1?0:o,m=Math.max(c&&h,0),y=Math.max(p&&d,0),u=[l+c,t],g=[l+e-c,t],f=[l+e,t+c],x=[l+e,t+i-p],b=[l+e-p,t+i],M=[l+p,t+i],v=[l,t+i-p],P=[l,t+c],k=(w,I)=>Math.sqrt(Math.pow(w,2)-Math.pow(I,2));if(m){let w=k(c,c-m);u[0]-=w,g[0]+=w,f[1]=P[1]=t+c-m;}if(i<c-m){let w=k(c,c-m-i);f[0]=x[0]=l+e-c+w,b[0]=Math.min(f[0],b[0]),M[0]=Math.max(x[0],M[0]),v[0]=P[0]=l+c-w,f[1]=P[1]=t+i;}if(y){let w=k(p,p-y);b[0]+=w,M[0]-=w,x[1]=v[1]=t+i-p+y;}if(i<p-y){let w=k(p,p-y-i);f[0]=x[0]=l+e-p+w,g[0]=Math.min(f[0],g[0]),u[0]=Math.max(x[0],u[0]),v[0]=P[0]=l+p-w,x[1]=v[1]=t;}return n.length=0,n.push(["M",...u],["L",...g],["A",c,c,0,0,1,...f],["L",...x],["A",p,p,0,0,1,...b],["L",...M],["A",p,p,0,0,1,...v],["L",...P],["A",c,c,0,0,1,...u],["Z"]),n}function ph(l,t){let e=l.condition;(e.callback||function(){return this.chartWidth<=_(e.maxWidth,Number.MAX_VALUE)&&this.chartHe
2ight<=_(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=_(e.minWidth,0)&&this.chartHeight>=_(e.minHeight,0)}).call(this,this)&&t.push(l._id);}function mh(l,t){let e=this.options.responsive,i=this.currentResponsive,s=[],n;!t&&e&&e.rules&&e.rules.forEach(a=>{a._id===void 0&&(a._id=le()),this.matchResponsiveRule(a,s);},this);let o=X(...s.map(a=>Oe(e?.rules||[],h=>h._id===a)).map(a=>a?.chartOptions));o.isResponsiveOptions=!0,s=s.toString()||void 0;let r=i?.ruleIds;s!==r&&(i&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(i.undoOptions,l,!0),this.updatingResponsive=!1),s?((n=di(o,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:o,undoOptions:n},this.updatingResponsive||this.update(o,l,!0)):this.currentResponsive=void 0);}(Es||(Es={})).compose=function(l){let t=l.prototype;return t.matchResponsiveRule||Y(t,{matchResponsiveRule:ph,setResponsive:mh}),l};let gh=Es;T.AST=bt,T.Axis=Qe,T.Chart=ze,T.Color=Mt,T.DataLabel=Yi,T.DataTableCore=Wi,T.Fx=Zt,T.HTMLElement=qe,T.Legend=go,T.LegendSymbol=ao,T.PlotLineOrBand=zi,T.Point=Re,T.Pointer=so,T.RendererRegistry=mi,T.Series=ie,T.SeriesRegistry=Pt,T.StackItem=bo,T.SVGElement=ve,T.SVGRenderer=Ni,T.Templating=ce,T.Tick=Ke,T.Time=zs,T.Tooltip=eo,T.addEvent=J,T.animObject=Xt.animObject,T.animate=Xt.animate,T.arrayMax=ke,T.arrayMin=je,T.attr=Gt,T.chart=ze.chart,T.clamp=kt,T.color=Mt.parse,T.correctFloat=xt,T.createElement=re,T.css=nt,T.dateFormat=ce.dateFormat,T.defaultOptions=he.defaultOptions,T.defined=B,T.destroyObjectProperties=Ne,T.diffObjects=di,T.discardElement=Oi,T.distribute=Ii.distribute,T.erase=pe,T.error=Ot,T.extend=Y,T.extendClass=_n,T.find=Oe,T.fireEvent=D,T.format=ce.format,T.getDeferredAnimation=Xt.getDeferredAnimation,T.getMagnitude=Is,T.getOptions=he.getOptions,T.getStyle=we,T.insertItem=Si,T.isArray=ft,T.isClass=Tn,T.isDOMElement=Ns,T.isFunction=$e,T.isNumber=S,T.isObject=ht,T.isString=lt,T.merge=X,T.normalizeTickInterval=Ti,T.numberFormat=ce.numberFormat,T.objectEach=tt,T.offset=Sn,T.pad=_e,T.pick=_,T.pInt=vt,T.relativeLength=Ft,T.removeEvent=ge,T.seriesType=Pt.seriesType,T.setAnimation=Xt.setAnimation,T.setOptions=he.setOptions,T.splat=jt,T.stableSort=pi,T.stop=Xt.stop,T.syncTimeout=ue,T.time=he.defaultTime,T.timers=Zt.timers,T.timeUnits=gt,T.uniqueKey=le,T.useSerialIds=function(l){return C=_(l,C)},T.wrap=function(l,t,e){let i=l[t];l[t]=function(){let s=arguments,n=this;return e.apply(this,[function(){return i.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))};},{compose:function(l,t,e){let i=l.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let s=e.prototype.symbols;J(l,"afterColumnTranslate",hh,{order:9}),J(i,"afterTranslate",ch),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Eo=s.arc,Lo=s.roundedRect,s.arc=lh,s.roundedRect=dh;}},optionsToObject:pn}.compose(T.Series,T.SVGElement,T.SVGRenderer),Kl.compose(T.Series.types.column),Yi.compose(T.Series),Qa.compose(T.Axis),qe.compose(T.SVGRenderer),go.compose(T.Chart),Ja.compose(T.Axis),(H=(wn=T.Chart).prototype).hideOverlappingLabels||(H.hideOverlappingLabels=function(l){let t=l.length,e=(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),i=(d,c)=>{for(let p of d)if(oh({x:p[0],y:p[1]},c))return !0;return !1},s,n,o,r,a,h=!1;for(let d=0;d<t;d++)(s=l[d])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=(function(c){if(c&&(!c.alignAttr||c.placed)){let p=c.box?0:c.padding||0,m=c.alignAttr||{x:c.attr("x"),y:c.attr("y")},{height:y,polygon:u,width:g}=c.getBBox(),f=Vt(c.alignValue)*g;return c.width=g,c.height=y,{x:m.x+(c.parentGroup?.translateX||0)+p-f,y:m.y+(c.parentGroup?.translateY||0)+p,width:g-2*p,height:y-2*p,polygon:u}}})(s));l.sort((d,c)=>(c?.labelrank||0)-(d?.labelrank||0));for(let d=0;d<t;++d){r=(n=l[d])&&n.absoluteBox;let c=r?.polygon;for(let p=d+1;p<t;++p){a=(o=l[p])&&o.absoluteBox;let m=!1;if(r&&a&&n!==o&&n?.newOpacity!==0&&o?.newOpacity!==0&&n?.visibility!=="hidden"&&o?.visibility!=="hidden"){let y=a.polygon;if(c&&y&&c!==y?i(c,y)&&(m=!0):e(r,a)&&(m=!0),m){let u=n?.labelrank<o?.labelrank?n:o,g=u?.text;u&&(u.newOpacity=0),g?.element.querySelector("textPath")&&g.hide();}}}}for(let d of l)d&&Ao(d,this)&&(h=!0);h&&D(this,"afterHideAllOverlappingLabels");},J(wn,"render",function(){let l=this,t=[];for(let e of l.labelCollectors||[])t=t.concat(e());for(let e of l.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&tt(e.stacking.stacks,i=>{tt(i,s=>{s.label&&t.push(s.label);});});for(let e of l.series||[])if(e.visible&&e.hasDataLabels?.()){let i=s=>
2{for(let n of s)n.visible&&(n.dataLabels||[]).forEach(o=>{let r=o.options||{};o.labelrank=_(r.labelrank,n.labelrank,n.shapeArgs?.height),r.allowOverlap??Number(r.distance)>0?(o.oldOpacity=o.opacity,o.newOpacity=1,Ao(o,l)):t.push(o);});};i(e.nodes||[]),i(e.points);}this.hideOverlappingLabels(t);})),nh.compose(T.Series.types.pie),zi.compose(T.Chart,T.Axis),so.compose(T.Chart),gh.compose(T.Chart),xo.compose(T.Axis,T.Chart,T.Series),Fl.compose(T.Axis,T.Chart,T.Series),eo.compose(T.Pointer);let uh=T;return On.default})());});function li(C){return qp(C,Date.now())}function fn(C,O){let A=YA(C,O?.in);return A.setMinutes(0,0,0),A}function ds(C,O,A){let[E,R]=Lt(A?.in,C,O);return +fn(E)==+fn(R)}function qr(C,O){return p$1(qp(C,C),li(C))}function Kr(C,O){return p$1(C,Je(li(C),1),O)}function Qr(C,O){return p$1(qp(C,C),E(li(C),1))}var ta=O(Jr()),ea=O(St());var vh=["dynamicHour"],Ch=["dynamicHourSelector"];function Mh(C,O){C&1&&(tf(0,"button",6),bo(1,"crnt-icon",9),nf());}var ia=(()=>{let O=class O{constructor(){this.rendering=ee.required(),this.vm=ee.required(),this.setSelectedHour=sv(),this.document=m$1(ge),this.windowRef=m$1(Ha),this.changeDetectorRef=m$1(_o),this.renderer=m$1(mn),this.documentElement=this.document.documentElement,this.selectedIndex=vt(new Date),this.showIndicator=false,this.currentValueDescription="",this.dynamicHourDiv=av.required("dynamicHour"),this.dynamicHourSelector=av.required("dynamicHourSelector"),this.onResizeEvent=(0, ea.default)(()=>{setTimeout(()=>{this.changeDetectorRef.detectChanges(),this.setButtonWrapperSizes(),this.setPosition();},100);},100),this.Highcharts=ta.default,this.onTouchEndEvent=()=>{this.documentElement.style.overflowY="",this.setPosition(),this.documentElement.removeEventListener("touchmove",this.onTouchEvent);},this.onTouchStartEvent=()=>{this.isTouchDevice&&(this.documentElement.style.overflowY="hidden",this.documentElement.addEventListener("touchmove",this.onTouchEvent));},this.onTouchEvent=E=>{if(this.chartRef){let R=Math.round(((E.touches[0].clientX-this.chartRef.plotLeft-this.chartRef.renderer.box.getBoundingClientRect().x)/this.chartRef.plotWidth-1/(2*this.vm().amountOfHours))*this.vm().amountOfHours);this.updateSelectedHour(R);}},zy(()=>{let R=this.vm()?.amountOfHours,H=this._previousAmountOfHours;this._previousAmountOfHours=R,R!==H&&(this.selectedIndex=this.hourToIndex(vt(new Date)),this.changeDetectorRef.detectChanges(),this.chartRef?.redraw());});}get touchStartElements(){return [this.dynamicHourSelector().nativeElement,...this.chartRef?.renderer?.box?[this.chartRef.renderer.box]:[]]}get isTouchDevice(){return "ontouchstart"in this.windowRef||this.windowRef.navigator.maxTouchPoints>0}chartCallback(E){this.chartRef=E,this.chartRef.series[0]?.update({type:"column",events:{afterAnimate:()=>this.afterAnimate()}}),this.chartRef.container&&(this.chartRef.container.setAttribute("tabindex","0"),this.chartRef.container.setAttribute("role","img"),this.chartRef.container.setAttribute("aria-label","Dynamische prijzen grafiek. Gebruik pijltjestoetsen om te navigeren."),this.chartRef.container.addEventListener("keydown",this.onKeyDown.bind(this))),this.touchStartElements.forEach(R=>R.addEventListener("touchstart",this.onTouchStartEvent));}onKeyDown(E){if(this.chartRef)switch(E.key){case "ArrowLeft":E.preventDefault(),this.updateSelectedHour(this.selectedIndex-1);break;case "ArrowRight":E.preventDefault(),this.updateSelectedHour(this.selectedIndex+1);break;case "Home":E.preventDefault(),this.updateSelectedHour(0);break;case "End":E.preventDefault(),this.updateSelectedHour(this.vm().amountOfHours-1);break}}getValueDescription(E){let R=this.vm().chartOptions.series?.[0]?.data;if(!R?.[E])return "";let H=R[E],z=H.name??E,U=H.y??0;return `${E+1}. ${z} uur, ${U.toFixed(2)} euro`}onMouseEvent(E){let R=this.chartRef?.xAxis[0];if(R){let H=Math.round(R.toValue(E.offsetX,false));this.updateSelectedHour(H);}}setButtonWrapperSizes(){this.chartRef&&(this.dynamicHourDiv().nativeElement.style.width=`${this.chartRef.plotWidth}px`,this.dynamicHourDiv().nativeElement.style.marginLeft=`${this.chartRef.plotLeft}px`);}setPosition(){let E=100/this.vm().amountOfHours*(this.selectedIndex+1)-100/(2*this.vm().amountOfHours);this.dynamicHourSelector().nativeElement.style.marginLeft=`${E}%`,this.dynamicHourDiv().nativeElement.style.display="block";}hourToIndex(E){return this.vm().chartOptions.series?.[0]?.data?.f
2indIndex(R=>+(R.name??"")===E)}updateSelectedHour(E){let R=Math.max(0,Math.min(this.vm().amountOfHours-1,E??this.selectedIndex));this.selectedIndex!==R&&(this.setSelectedHour.emit(R),this.selectedIndex=R,this.currentValueDescription=this.getValueDescription(R),this.changeDetectorRef.detectChanges(),this.setPosition());}ngOnDestroy(){this.touchStartElements.forEach(E=>E.removeEventListener("touchstart",this.onTouchStartEvent)),this.documentElement.removeEventListener("touchmove",this.onTouchEvent),this.chartRef?.container&&this.chartRef.container.removeEventListener("keydown",this.onKeyDown.bind(this));}ngOnInit(){setTimeout(()=>{this.showIndicator=true,this.changeDetectorRef.detectChanges();},300);}afterAnimate(){this.selectedIndex=this.selectedIndex??this.hourToIndex(vt(new Date)),this.setButtonWrapperSizes(),this.setPosition();}};O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-dynamic-prices-chart"]],viewQuery:function(R,H){R&1&&(af(H.dynamicHourDiv,vh,5),af(H.dynamicHourSelector,Ch,5)),R&2&&cf(2);},hostBindings:function(R,H){R&1&&sf("resize",function(){return H.onResizeEvent()},KO)("touchend",function(){return H.onTouchEndEvent()},ZO);},inputs:{rendering:[1,"rendering"],vm:[1,"vm"]},outputs:{setSelectedHour:"setSelectedHour"},standalone:false,decls:10,vars:5,consts:[["dynamicHour",""],["dynamicHourSelector",""],["ariaLiveRegion",""],[1,"dynamic-hour"],["wlAutomationId","dynamic-hour-selector",1,"dynamic-hour__selector"],[1,"dynamic-hour__selector__line"],[1,"dynamic-hour__selector__button","d-flex","justify-content-center","align-items-center"],["aria-live","polite","aria-atomic","true",1,"crnt-visually-hidden"],["wlAutomationId","dynamic_prices_chart","sessionReplay","capture",1,"graph-container",3,"chartInstance","mousemove","click","options"],["icon","arrow-right-arrow-left"]],template:function(R,H){if(R&1){let z=EL();tf(0,"div",3,0)(2,"div",4,1),bo(4,"div",5),Vr(5,Mh,2,0,"button",6),nf()(),tf(6,"div",7,2),_i(8),nf(),tf(9,"highcharts-chart",8),sf("chartInstance",function(Q){return UC(z),BC(H.chartCallback(Q))})("mousemove",function(Q){return UC(z),BC(H.onMouseEvent(Q))})("click",function(Q){return UC(z),BC(H.onMouseEvent(Q))}),nf();}R&2&&(Do(2),SS("dynamic-hour__selector--show",H.showIndicator),Do(3),$r(H.isTouchDevice?5:-1),Do(3),jy(" ",H.currentValueDescription,` 3`),Do(),ur("options",H.vm().chartOptions));},dependencies:[lv,s,To,ut],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}.ed[_nghost-%COMP%] highcharts-chart[_ngcontent-%COMP%], .ed [_nghost-%COMP%] highcharts-chart[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.ed[_nghost-%COMP%] .dynamic-hour[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour[_ngcontent-%COMP%]{position:absolute;bottom:0;transition:all .1s ease-in-out;z-index:11}.ed[_nghost-%COMP%] .dynamic-hour__selector[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour__selector[_ngcontent-%COMP%]{display:flex;position:absolute;flex-direction:column;opacity:0;transform:translate(-50%) translateY(-100%);transition:all .1s ease-in-out;align-items:center;justify-content:flex-end}.ed[_nghost-%COMP%] .dynamic-hour__selector--show[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour__selector--show[_ngcontent-%COMP%]{opacity:1}.ed[_nghost-%COMP%] .dynamic-hour__selector__button[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour__selector__button[_ngcontent-%COMP%]{width:2rem;height:2rem;background-color:#185ea5;border:0;border-radius:50%;color:#fff;z-index:1}.ed[_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%]{display:block;position:absolute;bottom:0;width:3px;height:300px;background-color:#000;border:1px solid var(--dynamic-prices-background-color)}@media(min-width:768px){.ed[_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%]{height:400px}} 4/*# sourceMappingURL=dynamic-prices-chart.component.ed-MOHOCM7E.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}.essent[_nghost-%COMP%] highcharts-chart[_ngcontent-%COMP%], .essent [_nghost-%COMP%] highcharts-chart[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.essent[_nghost-%COMP%] .dynamic-hour[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour[_ngcontent-%COMP%]{position:absolute;bottom:0;transition:all .1s ease-in-out;z-index:11}.essent[_nghost-%COMP%] .dynamic-hour__selector[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour__selector[_ngcontent-%COMP%]{display:flex;position:absolute;flex-direction:column;opacity:0;transform:translate(-50%) translateY(-100%);transition:all .1s ease-in-out;align-items:center;justify-content:flex-end}.essent[_nghost-%COMP%] .dynamic-hour__selector--show[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour__selector--show[_ngcontent-%COMP%]{opacity:1}.essent[_nghost-%COMP%] .dynamic-hour__selector__button[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour__selector__button[_ngcontent-%COMP%]{width:2rem;height:2rem;background-color:#0047ed;border:0;border-radius:50%;color:#fff;z-index:1}.essent[_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%]{display:block;position:absolute;bottom:0;width:3px;height:300px;background-color:#000;border:1px solid var(--dynamic-prices-background-color)}@media(min-width:768px){.essent[_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-hour__selector__line[_ngcontent-%COMP%]{height:400px}} 5/*# sourceMappingURL=dynamic-prices-chart.component.essent-UMMVN5QK.css.map */`],changeDetection:0});let C=O;return C})();var xn=-0.017,kh=(C,O,A)=>{let E=C+xn;return {startDateTime:`${A}T${String(O).padStart(2,"0")}:00:00.000`,endDateTime:`${A}T${String(O+1).padStart(2,"0")}:00:00.000`,totalAmount:E,totalAmountEx:E,totalAmountVat:0,groups:[{description:"Beursprijs",type:"MARKET_PRICE",amount:C,amountEx:C},{description:"Verkoopvergoeding",type:"SELLING_FEE",amount:xn,amountEx:xn}]}},sa=C=>{let O=sr(C,"yyyy-MM-dd"),A=Array.from({length:24},(U,Q)=>kh(.085-Q*.001,Q,O)),E=A.map(U=>
5U.totalAmount),R=Math.max(...E),H=Math.min(...E),z=E.reduce((U,Q)=>U+Q,0)/E.length;return {energyType:m.energyType.ELECTRICITY,unitOfMeasurement:m.unitOfMeasurement.K_WH,vatPercentage:0,tariffs:A,maxAmount:R,minAmount:H,averageAmount:z,maxAmountEx:R,minAmountEx:H,averageAmountEx:z}};var hi=G(F({},m.energyType),{ElectricityFeedIn:"ElectricityFeedIn"});var na=()=>({fields:{title:{value:"Dynamische energieprijzen"},electricity:{value:"Elektriciteit"},gas:{value:"Gas"},today:{value:"Vandaag"},tomorrow:{value:"Morgen"},yesterday:{value:"Gisteren"},tariffNowUntilX:{value:"Tarief nu tot 11:00"},tariffFromXUntilY:{value:"Tarief van 20:00 - 21:00"},maxTariff:{value:"Hoogste dagtarief"},minTariff:{value:"Laagste dagtarief"},dateElectricityErrorMessage:{value:"Op dit moment zijn je dynamische stroomtarieven van <datum> niet beschikbaar. Dit komt door een technische storing."},dateElectricityErrorTitle:{value:"Dynamische stroomtarieven niet beschikbaar"},dateGasErrorMessage:{value:"Op dit moment zijn je dynamische gastarieven van <datum> niet beschikbaar. Dit komt door een technische storing."},dateGasErrorTitle:{value:"Dynamische gastarieven niet beschikbaar"},futureDateElectricityErrorMessage:{value:"Op dit moment zijn je dynamische stroomtarieven van <datum> niet beschikbaar. Dit komt door een technische storing."},futureDateElectricityErrorTitle:{value:"Dynamische stroomtarieven niet beschikbaar"},futureDateGasErrorMessage:{value:"Op dit moment zijn je dynamische gastarieven van <datum> niet beschikbaar. Dit komt door een technische storing."},futureDateGasErrorTitle:{value:"Dynamische gastarieven niet beschikbaar"},availabilityErrorMessage:{value:"Op dit moment zijn je dynamische stroomtarieven niet beschikbaar. Probeer het later nog een keer."},availabilityErrorTitle:{value:"Dynamische tarieven niet beschikbaar"},tariffBreakdown:{value:"Tariefopbouw"},marketPriceWithoutVat:{value:"Marktprijs zonder BTW"},pricePerKwh:{value:"Je betaalt per kWh"},taxExplanation:{value:"Tarieven zijn inclusief 21% btw. Exclusief vaste kosten."}}});var oa="rgba(51, 153, 51, 0.3)",ra="rgba(51, 153, 51, 1)",aa="rgba(146, 146, 146, 0.1)";var wh=C=>{let O=Number(C.value),A=C.chart.series[0].data;return Number.isInteger(O)&&A?.[O]?A[O].name:""},bn="#ccd6eb",la={fontSize:"11px",fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif'},ms={chart:{spacingTop:40,backgroundColor:"transparent"},lang:{numericSymbols:null},plotOptions:{column:{pointPadding:.1,groupPadding:0,stacking:"normal",borderColor:"var(--dynamic-prices-background-color)"}},legend:{enabled:false},title:{text:void 0},tooltip:{enabled:false},credits:{enabled:false},series:[],xAxis:{labels:{rotation:0,padding:0,style:la,formatter:wh},scrollbar:{enabled:true},min:0,lineColor:bn,tickColor:bn},yAxis:{labels:{style:la},title:{rotation:0,y:-25,offset:15,align:"high",text:"Euro"},tickAmount:7,lineColor:bn},accessibility:{enabled:false}};var ha=(C,O)=>{let A=C.entity?.tariffs.length??24,E=C.entity?.tariffs?.map(R=>Th(vt(R.startDateTime),C.isLoading,R,O));return {selectedDate:C.lastLoadedDate,isLoading:C.isLoading,amountOfHours:A,chartOptions:G(F({},ms),{series:E?[{type:"column",animation:false,data:E}]:[],xAxis:G(F({},ms.xAxis),{max:A-1,tickPositions:_h(A),labels:F({},ms.xAxis.labels)}),accessibility:{screenReaderSection:{beforeChartFormat:Oh(C.lastLoadedDate,E)}}})}},Oh=(C,O)=>{let A=[`<{headingTagName}>Dynamische tarieven van ${C}</{headingTagName}>`];if(O?.length){let E=O.length>1;A.push(E?`<div>Staafdiagram met ${O.length} balken</div>`:`<div>Staafdiagram met ${O.length} balk</div>`);let R=O[0],H=E?O[O.length-1]:R;A.push(`<div>De grafiek heeft \xE9\xE9n x-as waarop de uren worden weergeeft. De gegevens vari\xEBren van ${R.name} tot ${H.name}</div>`),A.push(`<div>De grafiek heeft \xE9\xE9n y-as waarop de waarde in euro weergeeft. De gegevens vari\xEBren van ${R.y} tot ${H.y}</div>`);}return A.join("")},_h=C=>{let O=0;return C<24?O=-1:C>24&&(O=1),[0,...[3,6,9,12,15,18,21].map(A=>A+O)]},Th=(C,O,A,E)=>{let R,H=new Date;return O?R=aa:f(A.startDateTime,H)||ds(A.startDateTime,H)?R=ra:R=oa,{name:`${C}`,y:E?De(A.groups):A.totalAmount,color:R}};var vn=C=>new YU("nl").transform(C,"EUR","symbol","1.5")??"",ca=(C,O,{isLoading:A,entity:E},R)=>{let H=O.selectedTariff&&Ah(O.selectedTariff,E),z=H&&Sh(C,H),U=Q=>{let ot=Q&&vn(Q);return !A&&ot?ot:void 0};return {title:z,isLoading:A,unitOfMeasurement:O.unitOfMeasurement,selectedEnergyType:O.selectedEnergyType,minTariffLabel:Bt(C,"minTariff",""),minTariff:U(R?O.minTariffEx:O.minTariff),maxTariffLabel:Bt(C,"maxTariff",""),maxTariff:U(R?O.maxTariffEx:O.maxTariff),selectedTariff:U(R?De(O.selectedTariff?.groups):O.selectedTariff?.totalAmount),interpolation:H?.interpolation??{},tariffBreakdownTitle:Bt(C,"tariffBreakdown",""),tariffGroups:O.selectedTariff?.groups.map(({amount:Q,amountEx:ot,type:ee,description:Ve})=>({type:ee,description:Ve,amount:vn(R?ot:Q)}))??[],pricePerKwhLabel:Bt(C,"pricePerKwh",""),taxExplanation:Bt(C,"taxExplanation",""),isSmeOrSoho:R}},Sh=(C,O)=>Bt(C,O.isCurrentHour?"tariffNowUntilX":"tariffFromXUntilY",""),Ah=(C,O)=>({interpolation:{startTime:Pi$2(C.startDateTime),endTime:Pi$2(C.endDateTime),vatPercentage:O?.vatPercentage??21,unitOfMeasurement:O?.unitOfMeasurement??null},isCurrentHour:ds(C.startDateTime,new Date)});var da=(C,O,A)=>({dateLabel:Dh(C,O),currentState:O.currentPayload,electricity:Bt(C,"electricity",""),gas:Bt(C,"gas",""),availability:O.availability,selectedEnergyType:O.currentPayload.energyType,isSmeOrSoho:A}),Dh=(C,O)=>qr(O.currentPayload.date)?Bt(C,"today",""):Kr(O.currentPayload.date)?Bt(C,"tomorrow",""):Qr(O.currentPayload.date)?Bt(C,"yesterday",""):sr(O.currentPayload.date,"dd MMMM yyyy",{locale:Lr});var Eh=(C,O,A,E,R)=>{let H=A==="open",z=O.currentPayload.energyType===m.energyType.ELECTRICITY,U=Vi(O.currentPayload.date),{dateErrorMessage:Q,dateErrorTitle:ot}=ma(C,z),{futureDateErrorTitle:ee,futureDateErrorMessage:Ve}=pa(C,z),Be=Bt(C,"showExVat",void 0)||E.showExVat;return {title:Bt(C,"title",""),navigation:da(C,O,Be),isLoading:O.isLoading,info:ca(C,E,O,Be),chart:ha(O,Be),isOpenEnv:H,isFuture:U,invertWhiteGrey:Bt(C,"invertWhiteGrey",false),isDateError:O.isDateError,isAvailabilityError:O.
5isAvailabilityError,dateErrorMessage:{value:`${R.interpolate(Q?.value,{datum:sr(O.currentPayload.date,"dd MMMM yyyy",{locale:Lr})},"rich_text")}`},dateErrorTitle:ot,futureDateErrorTitle:ee,futureDateErrorMessage:{value:`${R.interpolate(Ve?.value,{datum:sr(O.currentPayload.date,"dd MMMM yyyy",{locale:Lr})},"rich_text")}`},availabilityErrorTitle:C.fields.availabilityErrorTitle,availabilityErrorMessage:C.fields.availabilityErrorMessage}},pa=(C,O)=>{let A=O?C.fields.futureDateElectricityErrorTitle:C.fields.futureDateGasErrorTitle,E=O?C.fields.futureDateElectricityErrorMessage:C.fields.futureDateGasErrorMessage;return {futureDateErrorTitle:A,futureDateErrorMessage:E}},ma=(C,O)=>{let A=O?C.fields.dateElectricityErrorTitle:C.fields.dateGasErrorTitle,E=O?C.fields.dateElectricityErrorMessage:C.fields.dateGasErrorMessage;return {dateErrorTitle:A,dateErrorMessage:E}},ga={createDynamicPricesViewModel:Eh,getDynamicPricesDateErrors:ma,getDynamicPricesFutureDateErrors:pa};var Pi=C=>{let O=H(C);return new qe(O.getFullYear(),O.getMonth()+1,O.getDate())},ua=C=>`${C.year}-${("0"+C.month).slice(-2)}-${("0"+C.day).slice(-2)}`;function Ih(C,O){if(C&1&&(tf(0,"div",5),_i(1),nf()),C&2){let A=O.$implicit,E=O.selected,R=O.disabled,H=O.focused;SS("text-light",E)("focused",H)("bg-primary",E)("text-body-secondary",R),Do(),jy(" ",A.day," ");}}var fa=(()=>{let O=class O{set date(E){E&&(this.modelDate=Pi(E),this.datepicker().navigateTo(this.modelDate));}set minDate(E){E&&(this.modelMinDate=Pi(E));}set maxDate(E){E&&(this.modelMaxDate=Pi(E));}constructor(){this.datepicker=av.required(Is),this.activeModal=m$1(Pi$1);let E=Pi(ao());this.modelDate=E,this.modelMinDate=E,this.modelMaxDate=E;}dateSelected(E){this.activeModal.close(ua(E));}close(){this.activeModal.dismiss(void 0);}};O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-dynamic-modal-date-picker"]],viewQuery:function(R,H){R&1&&af(H.datepicker,Is,5),R&2&&cf();},standalone:false,decls:6,vars:4,consts:[["customDay",""],[1,"modal-header"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],["wlAutomationId","dynamic_date_picker","navigation","arrows","outsideDays","hidden",1,"d-block",3,"ngModelChange","dateSelect","ngModel","minDate","maxDate","dayTemplate"],[1,"btn-primary","custom-day"]],template:function(R,H){if(R&1){let z=EL();tf(0,"div",1)(1,"button",2),sf("click",function(){return UC(z),BC(H.close())}),nf()(),tf(2,"div",3)(3,"ngb-datepicker",4),$S("ngModelChange",function(Q){return UC(z),w1(H.modelDate,Q)||(H.modelDate=Q),BC(Q)}),sf("dateSelect",function(Q){return UC(z),BC(H.dateSelected(Q))}),nf()(),Nt(4,Ih,2,9,"ng-template",null,0,Ti);}if(R&2){let z=wi(5);Do(3),VS("ngModel",H.modelDate),ur("minDate",H.modelMinDate)("maxDate",H.modelMaxDate)("dayTemplate",z);}},dependencies:[s,Is,wn,Lt$1],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}.ed[_nghost-%COMP%] .btn-primary.custom-day[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .btn-primary.custom-day[_ngcontent-%COMP%]{background:none;box-shadow:none;text-align:center}.ed[_nghost-%COMP%] .datepicker__button[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .datepicker__button[_ngcontent-%COMP%]{border-color:var(--crnt-color-common-border-subtle);border-inline-start-width:0}.ed[_nghost-%COMP%] .ngb-dp-arrow .ngb-dp-arrow-btn:focus, .ed [_nghost-%COMP%] .ngb-dp-arrow .ngb-dp-arrow-btn:focus{outline-style:none}.ed[_nghost-%COMP%] .ngb-dp-weekdays .ngb-dp-weekday, .ed [_nghost-%COMP%] .ngb-dp-weekdays .ngb-dp-weekday{font-style:normal;font-weight:700} 6/*# sourceMappingURL=dynamic-modal-date-picker.component.ed-XIHUG3DA.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}.essent[_nghost-%COMP%] .btn-primary.custom-day[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .btn-primary.custom-day[_ngcontent-%COMP%]{background:none;box-shadow:none;text-align:center}.essent[_nghost-%COMP%] .datepicker__button[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .datepicker__button[_ngcontent-%COMP%]{border-color:var(--crnt-color-common-border-subtle);border-inline-start-width:0}.essent[_nghost-%COMP%] .ngb-dp-arrow .ngb-dp-arrow-btn:focus, .essent [_nghost-%COMP%] .ngb-dp-arrow .ngb-dp-arrow-btn:focus{outline-style:none}.essent[_nghost-%COMP%] .ngb-dp-weekdays .ngb-dp-weekday, .essent [_nghost-%COMP%] .ngb-dp-weekdays .ngb-dp-weekday{font-style:normal;font-weight:700} 7/*# sourceMappingURL=dynamic-modal-date-picker.component.essent-LM563YAC.css.map */`],changeDetection:0});let C=O;return C})();
7var Cn=C=>({eventType:"button-click",rendering:C,field:"Datum prikker"});function Bh(C,O){if(C&1){let A=EL();tf(0,"div",1)(1,"wl-segmented-control",10),sf("entrySelected",function(R){UC(A);let H=Ln();return BC(H.changeEnergyTypeHandler(R))}),nf()();}if(C&2){let A=Ln();Do(),ur("entries",A.entries())("selected",A.selectedEntry());}}var ya=(()=>{var O,A,E;let R$1=class R$1{constructor(){Q(this,O);Q(this,A);Q(this,E);this.rendering=ee.required(),this.vm=ee.required(),this.changeDate=sv(),this.changeEnergyType=sv(),R(this,O,m$1(qd)),R(this,A,m$1(To$1)),R(this,E,lt(void 0)),this.onDestroy$=new Ee,this.entries=df(()=>{let z=Bt(this.rendering(),"terugleverTabEnabled",false);return [m.energyType.ELECTRICITY,...z?[hi.ElectricityFeedIn]:[],m.energyType.GAS].map(U=>this.mapToEntry(U)).filter(me.isDefined)}),this.selectedEntry=df(()=>this.mapToEntry(P(this,E).call(this)??this.vm().selectedEnergyType));}showModalDatePicker(){let z=P(this,O).open(fa,{size:"sm"}),U=z.componentInstance;U.date=this.vm().currentState.date;let Q=this.vm();U.minDate=Q.availability?.startDate,U.maxDate=Q.availability?.endDate,z.closed.pipe(ze(1),Zo(this.onDestroy$)).subscribe(ot=>{ot&&this.changeDate.emit({newDate:ot});});}mapToEntry(z){let U={[m.energyType.GAS]:{text:this.vm().gas,icon:"flame"},[m.energyType.ELECTRICITY]:{text:this.vm().electricity,icon:"plug"},[hi.ElectricityFeedIn]:{text:"Teruglevering",icon:"solar-panel"}},{text:Q,icon:ot}=U[z];return Q?{id:z.toLocaleLowerCase(),value:z,text:Q,icon:ot}:void 0}changeEnergyTypeHandler(z){P(this,E).set(z===hi.ElectricityFeedIn?z:void 0),this.changeEnergyType.emit(z),P(this,A).pushEvent({event:"filter-clickonresult",info:{name:"Dynamische tarieven filter",filter:z}});}ngOnDestroy(){this.onDestroy$.next(true),this.onDestroy$.complete();}};O=new WeakMap,A=new WeakMap,E=new WeakMap,R$1.\u0275fac=function(U){return new(U||R$1)},R$1.\u0275cmp=Jt({type:R$1,selectors:[["wl-dynamic-prices-navigation"]],inputs:{rendering:[1,"rendering"],vm:[1,"vm"]},outputs:{changeDate:"changeDate",changeEnergyType:"changeEnergyType"},standalone:false,decls:11,vars:27,consts:[[1,"d-flex","flex-column","align-items-center"],[1,"mb-1","w-100"],[1,"dynamic-prices-navigation","d-flex","justify-content-between","align-items-center","mb-1","w-100"],["wlAutomationId","previous_dynamic_day","wlTrackLink","","aria-label","Vorige dag",1,"btn","btn-link","no-underline","px-0",3,"click","disabled","trackLinkInfo"],["icon","chevron-left",1,"crnt-icon","d-essent"],["icon","arrow-left","size","large",1,"crnt-icon","d-ed"],["wlAutomationId","dynamic_date_label","wlTrackLink","",1,"btn","btn-link",3,"click","trackLinkInfo"],["wlAutomationId","next_dynamic_day","wlTrackLink","","aria-label","Volgende dag",1,"btn","btn-link","no-underline","px-0",3,"click","disabled","trackLinkInfo"],["icon","chevron-right",1,"crnt-icon","d-essent"],["icon","arrow-right","size","large",1,"crnt-icon","d-ed"],[1,"d-block","w-100",3,"entrySelected","entries","selected"]],template:function(U,Q){if(U&1){let ot=EL();tf(0,"div",0),Vr(1,Bh,2,2,"div",1),tf(2,"div",2)(3,"button",3),sf("click",function(){return UC(ot),BC(Q.changeDate.emit({offset:-1}))}),bo(4,"crnt-icon",4)(5,"crnt-icon",5),nf(),tf(6,"button",6),sf("click",function(){return UC(ot),BC(Q.showModalDatePicker())}),_i(7),nf(),tf(8,"button",7),sf("click",function(){return UC(ot),BC(Q.changeDate.emit({offset:1}))}),bo(9,"crnt-icon",8)(10,"crnt-icon",9),nf()()();}if(U&2){let ot=Q.vm(),ee=Q.rendering();Do(),$r(ot.isSmeOrSoho?-1:1),Do(2),SS("btn-link--loading",ot.availability.isPrevLoading)("btn-link--unavailable",!ot.availability.isPrevAvailable)("pt-0",ot.isSmeOrSoho),ur("disabled",!ot.availability.isPrevAvailable||ot.availability.isPrevLoading)("trackLinkInfo",F1(21,Cn,ee)),Do(3),SS("pt-0",ot.isSmeOrSoho),ur("trackLinkInfo",F1(23,Cn,ee)),Do(),jy(" ",ot.dateLabel," "),Do(),SS("btn-link--loading",ot.availability.isNextLoading)("btn-link--unavailable",!ot.availability.isNextAvailable)("pt-0",ot.isSmeOrSoho),ur("disabled",!ot.availability.isNextAvailable)("trackLinkInfo",F1(25,Cn,ee));}},dependencies:[lv,le,s,Dh$1],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}@media(min-width:576px){.ed[_nghost-%COMP%] .dynamic-prices-navigation[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-navigation[_ngcontent-%COMP%]{max-width:18rem;margin:0 auto}}.ed[_nghost-%COMP%] .btn-link[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]{background:none;border:unset;transition:all .2s ease-in-out}.ed[_nghost-%COMP%] .btn-link--unavailable[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .btn-link--unavailable[_ngcontent-%COMP%]{opacity:0}
7.ed[_nghost-%COMP%] .btn-link--loading[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .btn-link--loading[_ngcontent-%COMP%]{opacity:50%}.ed[_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]:focus-visible, .ed [_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]:focus-visible{outline:.25rem solid #185ea5;outline-offset:.25rem} 8/*# sourceMappingURL=dynamic-prices-navigation.component.ed-QHTQ7S6D.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}@media(min-width:576px){.essent[_nghost-%COMP%] .dynamic-prices-navigation[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-navigation[_ngcontent-%COMP%]{max-width:18rem;margin:0 auto}}.essent[_nghost-%COMP%] .btn-link[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]{background:none;border:unset;transition:all .2s ease-in-out}.essent[_nghost-%COMP%] .btn-link--unavailable[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .btn-link--unavailable[_ngcontent-%COMP%]{opacity:0}.essent[_nghost-%COMP%] .btn-link--loading[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .btn-link--loading[_ngcontent-%COMP%]{opacity:50%}.essent[_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]:focus-visible, .essent [_nghost-%COMP%] .btn-link[_ngcontent-%COMP%]:focus-visible{outline:.25rem solid #0047ed;outline-offset:.25rem} 9/*# sourceMappingURL=dynamic-prices-navigation.component.essent-MSOD6QVA.css.map */`],changeDetection:0});let C=R$1;return C})();var gs=C=>({variables:C}),Rh=()=>({name:"Tariefopbouw",subject:"Tariefopbouw"}),zh=C=>({value:C}),xa=()=>({});function Hh(C,O){if(C&1&&(tf(0,"div",1)(1,"div",16)(2,"div")(3,"span",17),_i(4),nf()(),tf(5,"span")(6,"span",18),_i(7),nf(),tf(8,"span",19),_i(9),nf()()(),tf(10,"div",16)(11,"div")(12,"span",17),_i(13),nf()(),tf(14,"span")(15,"span",20),_i(16),nf(),tf(17,"span",19),_i(18),nf()()()()),C&2){Ln();let A=S1(0);Do(4),Oc(A.minTariffLabel),Do(3),Oc(A.minTariff),Do(2),jy("/",A.unitOfMeasurement),Do(4),Oc(A.maxTariffLabel),Do(3),Oc(A.maxTariff),Do(2),jy("/",A.unitOfMeasurement);}}function Wh(C,O){if(C&1&&(tf(0,"tr")(1,"td",31),_i(2),H1(3,"interpolate"),nf()()),C&2){let A=Ln().$implicit;Ln(3);let E=S1(0);Do(2),jy(" ",z1(3,1,A.note,F1(5,gs,E.interpolation??Si(4,xa)))," ");}}function Gh(C,O){if(C&1&&(tf(0,"tr",28)(1,"th",29),_i(2),nf(),tf(3,"td",30),_i(4),nf()(),Vr(5,Wh,4,7,"tr")),C&2){let A=O.$implicit;Do(),SS("pb-0",A.note),Do(),jy(" ",A.description," "),Do(),SS("pb-0",A.note),Do(),jy(" ",A.amount," "),Do(),$r(A.note?5:-1);}}function Fh(C,O){if(C&1&&(tf(0,"table",21)(1,"caption",24),_i(2),nf(),tf(3,"tbody"),dL(4,Gh,6,7,null,null,lL),nf(),tf(6,"tfoot")(7,"tr",25)(8,"th",26),_i(9),H1(10,"interpolate"),nf(),tf(11,"td",27),_i(12),nf()()()()),C&2){Ln(2);let A=S1(0);Do(2),jy(" ",A.tariffBreakdownTitle," "),Do(2),fL(A.tariffGroups),Do(5),jy(" ",z1(10,3,A.pricePerKwhLabel,F1(7,gs,A.interpolation??Si(6,xa)))," "),Do(3),jy(" ",A.selectedTariff," ");}}function Xh(C,O){if(C&1&&(Vr(0,Fh,13,9,"table",21),tf(1,"wl-rich-text-wrapper",22),H1(2,"interpolate"),bo(3,"div",23),nf()),C&2){let A=Ln(),E=S1(0);$r(E.isSmeOrSoho?-1:0),Do(),ur("field",F1(9,zh,z1(2,4,E.taxExplanation,F1(7,gs,A.interpolation())))),Do(2),SS("text-end",!E.isSmeOrSoho);}}var ba=(()=>{let O=class O{constructor(){this.rendering=ee.required(),this.vm=ee.required(),this.config=m$1(va$1),this.isElectricity=df(()=>this.vm().selectedEnergyType===m.energyType.ELECTRICITY),this.interpolation=df(()=>this.vm().interpolation??Jm),this.isLoading=df(()=>{let E=this.vm();return !E||E.isLoading});}};O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-dynamic-prices-info"]],inputs:{rendering:[1,"rendering"],vm:[1,"vm"]},standalone:false,decls:25,vars:18,consts:[[1,"dynamic-prices-info"],[1,"d-flex","flex-wrap","gap-3","crnt-typography-microcopy-base","mb-2","w-100","px-2"],[1,"d-flex","flex-column","rounded","dynamic-prices-info__block","mb-4"],[1,"d-flex","flex-column","justify-content-between","w-100","p-2"],[1,"d-flex","flex-column","justify-content-center"],["wlAutomationId","dynamic_hour_label",1,"fw-bold","dypr-loading"],[1,"fw-bold","dypr-loading","dynamic-prices-info__amount","dynamic-prices-info__amount--large"],["wlAutomationId","dynamic_unit_of_measurement",1,"dypr-loading","mx-1"],[1,"w-auto","mx-2","my-0"],["ngbAccordion","",3,"className","id"],["interactionCategory","accordion","ngbAccordionItem","","trackInteraction","click",1,"accordion-item--small",3,"id","interactionData"],["ngbAccordionHeader",""],["ngbAccordionButton","",1,"accordion-button","px-2"],[3,"title"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[1,"d-flex","flex-column","flex-grow-1"],[1,"dynamic-prices-info__label","mb-1","dypr-loading"],[1,"fw-bold","text-brand-p","crnt-typography-body-expressive","dypr-loading","dynamic-prices-info__amount"],[1,"dypr-loading","mx-1"],[1,"fw-bold","crnt-typography-body-expressive","dypr-loading","dynamic-prices-info__amount"],[1,"w-100"],[3,"field"],[1,"crnt-typography-microcopy-base","dynamic-prices-info__note"],[1,"d-none"],[1,"fw-bolder"],["scope","row",1,"py-1"],[1,"text-end","py-1"],[1,"dynamic-prices-info__group"],["scope","row",1,"f
9w-normal"],[1,"text-end"],["colspan","2",1,"crnt-typography-microcopy-base","pt-0","pb-1","dynamic-prices-info__note"]],template:function(R,H){if(R&1&&(GS(0),tf(1,"div",0),Vr(2,Hh,19,6,"div",1),tf(3,"div",2)(4,"div",3)(5,"div",4)(6,"div")(7,"span")(8,"span",5),_i(9),H1(10,"interpolate"),nf()()()(),tf(11,"div")(12,"span",6),_i(13),nf(),tf(14,"span",7),_i(15),nf()()(),bo(16,"hr",8),tf(17,"div",9)(18,"div",10)(19,"div",11)(20,"button",12),bo(21,"wl-partial-accordion-title",13),nf()(),tf(22,"div",14)(23,"div",15),Nt(24,Xh,4,11,"ng-template"),nf()()()()()()),R&2){let z=_1(H.vm());Do(),SS("dynamic-prices-info--loading",H.isLoading()),Do(),$r(H.isElectricity()?2:-1),Do(7),Oc(z1(10,12,z.title,F1(15,gs,H.interpolation()))),Do(4),Oc(z.selectedTariff),Do(2),jy("/",z.unitOfMeasurement),Do(2),ur("className","accordion accordion--transparent accordion--small")("id","dynamic-prices-info-breakdown"),Do(),ur("id","dynamic-prices-info-breakdown-panel")("interactionData",Si(17,Rh)),Do(3),ur("title",z.tariffBreakdownTitle);}},dependencies:[ce,s,Ps,xi,Ft,ws,Os,So,sn,io,H$1],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}.ed[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type td[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type td[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type th[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type th[_ngcontent-%COMP%]{padding-bottom:.5rem}.ed[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) td[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) td[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) th[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) th[_ngcontent-%COMP%]{padding:.5rem 0;border-top:1px solid rgba(216,216,216,.5)}.ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid var(--crnt-color-common-border-subtle)}.ed[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{display:inline-block;border-radius:.25rem;line-height:1;transition:all .2s ease-in-out}.ed[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{background-color:#fff}@media(max-width:767.98px){.ed[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{box-shadow:0 .125rem .25rem #00000013}}.ed[_nghost-%COMP%] .dynamic-prices-info--loading[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info--loading[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{opacity:.2;background-color:#767676;color:transparent}
9.ed[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%]{min-width:60px;min-height:20px}.ed[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{min-width:100px}@media(min-width:768px){.ed[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{background-color:#c6c6c64d}}@media(max-width:767.98px){.ed[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{box-shadow:0 8px 28px #0000001f,0 .5px .5px #0000001f}}.ed[_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%]{color:#767676}.ed[_nghost-%COMP%] .dynamic-prices-info__note[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__note[_ngcontent-%COMP%]{padding-top:0;color:#ababab}.ed[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%]{color:#410073}.ed[_nghost-%COMP%] .dynamic-prices-info__amount--large[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__amount--large[_ngcontent-%COMP%]{font-size:1.75rem}.ed[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{min-height:1.75rem}.ed [_nghost-%COMP%] .accordion-button:focus-visible{outline:.125rem solid #185ea5!important;outline-offset:.25rem!important} 10/*# sourceMappingURL=dynamic-prices-info.component.ed-UVC7HEHC.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}.essent[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type td[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type td[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type th[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:first-of-type th[_ngcontent-%COMP%]{padding-bottom:.5rem}.essent[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) td[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) td[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) th[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__group[_ngcontent-%COMP%]:not(:first-of-type) th[_ngcontent-%COMP%]{padding:.5rem 0;border-top:1px solid rgba(249,249,249,.5)}.essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid var(--crnt-color-common-border-subtle)}.essent[_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{display:inline-block;border-radius:.25rem;line-height:1;transition:all .2s ease-in-out}.essent[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{background-color:#fff}@media(max-width:767.98px){.essent[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{box-shadow:0 .125rem .25rem #00000013}}.essent[_nghost-%COMP%] .dynamic-prices-info--loading[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info--loading[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{opacity:.2;background-color:#94949e;color:transparent}
10.essent[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%]{min-width:60px;min-height:20px}.essent[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{min-width:100px}.essent[_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%]{color:#94949e}@media(min-width:768px){.essent[_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__block[_ngcontent-%COMP%]{background-color:#cccccc59}}.essent[_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__label[_ngcontent-%COMP%]{color:#434751}.essent[_nghost-%COMP%] .dynamic-prices-info__note[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__note[_ngcontent-%COMP%]{padding-top:0;color:#94949e}.essent[_nghost-%COMP%] .dynamic-prices-info__amount--large[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__amount--large[_ngcontent-%COMP%]{font-size:1.728rem}.essent[_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices-info__amount[_ngcontent-%COMP%] .dypr-loading[_ngcontent-%COMP%]{min-height:1.728rem}.essent [_nghost-%COMP%] .accordion-button:focus-visible{outline:.125rem solid #0047ed!important;outline-offset:.25rem!important} 11/*# sourceMappingURL=dynamic-prices-info.component.essent-CSZFDBFB.css.map */`],changeDetection:0});let C=O;return C})();function Vh(C,O){if(C&1&&(tf(0,"h1",1),_i(1),nf()),C&2){Ln();let A=S1(0);Do(),jy(" ",A.title," ");}}function jh(C,O){if(C&1){let A=EL();tf(0,"wl-dynamic-prices-chart",10),sf("setSelectedHour",function(R){UC(A);let H=Ln(3);return BC(H.setSelectedHour.emit(R))}),nf();}if(C&2){Ln(3);let A=S1(0),E=S1(1);ur("rendering",E)("trackImpressionInfo",E)("vm",A.chart);}}function $h(C,O){if(C&1&&(bo(0,"wl-dynamic-prices-info",7),tf(1,"div",8),Vr(2,jh,1,3,"wl-dynamic-prices-chart",9),nf()),C&2){let A=Ln(2),E=S1(0),R=S1(1);ur("rendering",R)("vm",E.info),Do(2),$r(A.platformService.isClient()?2:-1);}}function Uh(C,O){if(C&1&&bo(0,"wl-info-card",5),C&2){Ln(2);let A=S1(0),E=S1(1);ur("backgroundGrey",true)("message",A.futureDateErrorMessage)("title",A.futureDateErrorTitle)("trackImpressionInfo",E)("type","warning");}}function Zh(C,O){if(C&1&&bo(0,"wl-info-card",6),C&2){Ln(2);let A=S1(0),E=S1(1);ur("backgroundGrey",true)("message",A.dateErrorMessage)("title",A.dateErrorTitle)("trackImpressionInfo",E)("type","warning");}}function qh(C,O){if(C&1){let A=EL();tf(0,"wl-dynamic-prices-navigation",4),sf("changeDate",function(R){UC(A);let H=Ln();return BC(H.changeDate.emit(R))})("changeEnergyType",function(R){UC(A);let H=Ln();return BC(H.changeEnergyType.emit(R))}),nf(),Vr(1,$h,3,3)(2,Uh,1,5,"wl-info-card",5)(3,Zh,1,5,"wl-info-card",6);}if(C&2){Ln();let A=S1(0),E=S1(1);ur("rendering",E)("vm",A.navigation),Do(),$r(A.isDateError?A.isFuture?2:3:1);}}function Kh(C,O){if(C&1&&bo(0,"wl-info-card",3),C&2){Ln();let A=S1(0),E=S1(1);ur("backgroundGrey",true)("message",A.availabilityErrorMessage)("title",A.availabilityErrorTitle)("trackImpressionInfo",E);}}var va=(()=>{let O=class O{constructor(){this.changeDate=sv(),this.changeEnergyType=sv(),this.setSelectedHour=sv(),this.platformService=m$1(ED),this.hourInfo=ee.required(),this.dynamicPrices=ee.required(),this.rendering=ee.required(),this.textInterpolationService=m$1(x),this.envConfig=m$1(va$1),this.vm=df(()=>ga.createDynamicPricesViewModel(this.rendering(),this.dynamicPrices(),this.envConfig.type,this.hourInfo(),this.textInterpolationService));}};O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-dynamic-prices"]],inputs:{hourInfo:[1,"hourInfo"],dynamicPrices:[1,"dynamicPrices"],rendering:[1,"rendering"]},outputs:{changeDate:"changeDate",changeEnergyType:"changeEnergyType",setSelectedHour:"setSelectedHour"},standalone:false,decls:7,vars:11,consts:[["trackImpression","contentblock-impression","trackImpressionName","Dynamische tarieven",1,"dynamic-prices",3,"trackImpressionInfo"],[1,"text-brand","mb-4"],[1,"px-md-4","py-md-4","rounded","dynamic-prices__card"],["trackImpression","contentblock-impression","trackImpressionName","Geen beschikbare datums ontvangen",1,"d-block","mt-4",3,"backgroundGrey","message","title","trackImpressionInfo"],[3,"changeDate","changeEnergyType","rendering","vm"],["trackImpression","contentblock-impression","trackImpressionName","Tarieven voor morgen nog niet beschikbaar",3,"backgroundGrey","message","title","trackImpressionInfo","type"],["trackImpression","contentblock-impression","trackImpressionName","Tarieven voor deze datum zijn niet beschikbaar",3,"backgroundGrey","message","title","trackImpressionInfo","type"],[3,"rendering","vm"],[1,"dynamic-prices__chart","position-relative"],["trackImpression","contentblock-impression","trackImpressionName","Dynamische tarieven grafiek",3,"rendering","trackImpressionInfo","vm"],["trackImpression","contentblock-impression","trackImpressionName","Dynamische tarieven grafiek",3,"setSelectedHour","rendering","trackImpressionInfo","vm"]],template:function(R,H){if(R&1&&(GS(0)(1),tf(2,"div",0),Vr(3,Vh,2,1,"h1",1),tf(4,"div",2),Vr(5,qh,4,3)(6,Kh,1,4,"wl-info-card",3),nf()()),R&2){let z=_1(H.vm());Do();let U=_1(H.rendering());Do(),SS("dynamic-prices--inverted",z.invertWhiteGrey)("dynamic-prices--mijn",!z.isOpenEnv)("dynamic-prices--open",z.isOpenEnv),ur("trackImpressionInfo",U),Do(),$r(z.title?3:-1),Do(2),$r(z.isAvailabilityError?6:5);}},dependencies:[ae,Zg,ya,ia,ba],styles:[`[_ngcontent-%COMP%]:root{--font-intro-color: #000}[_ngcontent-%COMP%]:root{--headings-color: #410073}.progress[_ngcontent-%COMP%]{border:2px solid var(--crnt-color-common-border-subtle)}.ed [_nghost-%COMP%]{position:relative}.ed[_nghost-%COMP%] .dynamic-prices[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices[_ngcontent-%COMP%]{--dynamic-prices-background-color: #fff;margin:0 auto}.ed[_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%]{height:300px}@media(min-width:768px){.ed[_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%]{height:400px}}@media(min-width:768px){.ed[_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 .125rem .25rem #00000013}}.ed[_nghost-%COMP%] .dynamic-prices--open[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices--open[_ngcontent-%COMP%]{max-width:728px}@media(max-width:767.98px){.ed[_nghost-%COMP%] .dynamic-prices--inverted[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices--inverted[_ngcontent-%COMP%]{--dynamic-prices-background-color: #f3f3f3}}@media(min-width:768px){.ed[_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%], .ed [_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%]{box-shadow:0 16px 56px #0000001f,0 .5px .5px #0000001f}} 12/*# sourceMappingURL=dynamic-prices.component.ed-5A3BG3VP.css.map */`,`.progress[_ngcontent-%COMP%]{border:1px solid var(--crnt-color-common-border-subtle)}.essent [_nghost-%COMP%]{position:relative}.essent[_nghost-%COMP%] .dynamic-prices[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices[_ngcontent-%COMP%]{--dynamic-prices-background-color: #fff;margin:0 auto}.essent[_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%]{height:300px}@media(min-width:768px){.essent[_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices__chart[_ngcontent-%COMP%]{height:400px}}@media(min-width:768px){.essent[_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices__card[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 .125rem .25rem #00000013}}.essent[_nghost-%COMP%] .dynamic-prices--open[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices--open[_ngcontent-%COMP%]{max-width:728px}@media(max-width:767.98px){.essent[_nghost-%COMP%] .dynamic-prices--inverted[_ngcontent-%COMP%], .essent [_nghost-%COMP%] .dynamic-prices--inverted[_ngcontent-%COMP%]{--dynamic-prices-background-color: #f1f1f1}} 13/*# sourceMappingURL=dynamic-prices.component.essent-EMJ5RUZA.css.map */`],changeDetection:0});let C=O;return C})();function tc(C,O){if(C&1){let A=EL();tf(0,"wl-dynamic-prices",3),sf("changeDate",function(R){UC(A);let H=Ln();return BC(H.changeDate(R))})("changeEnergyType",function(R){UC(A);let H=Ln();return BC(H.changeEnergyType(R))})("setSelectedHour",function(R){UC(A);let H=Ln();return BC(H.setSelectedHour(R))}),nf();}if(C&2){let A=Ln();ur("dynamicPrices",A.dynamicPrices())("hourInfo",A.hourInfo())("rendering",A.rendering());}}function ec(C,O){if(C&1&&bo(0,"wl-dynamic-prices",4),C&2){let A=Ln();ur("dynamicPrices",A.dynamicPricesMock)("hourInfo",A.hourInfoMock)("rendering",A.renderingMock);}}var Mn=(()=>{var O,A,E,R$1,H;let C=(H=class{constructor(){Q(this,O);Q(this,A);Q(this,E);Q(this,R$1);this.rendering=ee.required(),this.context=ee(),this.id=st(this.rendering),this.theme=rt(this.rendering),this.store=m$1(mr),R(this,O,this.store.selectSignal(bi)),R(this,A,this.store.selectSignal(ki)),this.dynamicPricesMock=$i(),this.renderingMock=na(),this.hourInfoMock=ji(),R(this,E,lt(false)),R(this,R$1,df(()=>sa(P(this,O).call(this).currentPayload.date))),this.dynamicPrices=df(()=>{let U=P(this,O).call(this);return P(this,E).call(this)?G(F({},U),{entity:P(this,R$1).call(this)}):U}),this.hourInfo=df(()=>{let U=P(this,A).call(this);if(!P(this,E).call(this))return U;let Q=P(this,R$1).call(this);return G(F({},U),{selectedTariff:Q.tariffs[U.selectedHour],unitOfMeasurement:Q.unitOfMeasurement,minTariff:Q.minAmount,maxTariff:Q.maxAmount,minTariffEx:Q.minAmountEx,maxTariffEx:Q.maxAmountEx})});}
13changeDate(U){this.store.dispatch(pe({payload:U}));}changeEnergyType(U){if(U===hi.ElectricityFeedIn){P(this,E).set(true);return}P(this,E).set(false),this.store.dispatch(Q$1({payload:U}));}setSelectedHour(U){this.store.dispatch(ye({payload:U}));}ngOnInit(){this.store.dispatch(ue());}ngOnDestroy(){this.store.dispatch(p.getDynamicPrices.clearAction()),this.store.dispatch(J({payload:null}));}},O=new WeakMap,A=new WeakMap,E=new WeakMap,R$1=new WeakMap,H.\u0275fac=function(Q){return new(Q||H)},H.\u0275cmp=Jt({type:H,selectors:[["wl-dynamic-prices-container"]],inputs:{rendering:[1,"rendering"],context:[1,"context"]},standalone:false,decls:4,vars:3,consts:[[3,"id","theme","hasContext"],["wlLive",""],["wlPreview",""],[3,"changeDate","changeEnergyType","setSelectedHour","dynamicPrices","hourInfo","rendering"],[3,"dynamicPrices","hourInfo","rendering"]],template:function(Q,ot){Q&1&&(tf(0,"wl-content-section",0)(1,"wl-experience-editor"),Nt(2,tc,1,3,"ng-template",1)(3,ec,1,3,"ng-template",2),nf()()),Q&2&&ur("id",ot.id())("theme",ot.theme())("hasContext",!!ot.context());},dependencies:[q,b,y,it,va],encapsulation:2,changeDetection:0}),H);return C=u([d1({name:"[taco] dynamic-prices-container"})],C),C})();var Ca={componentName:"GoToDynamicPrices",fields:{title:{value:"Dynamische tarieven"},description:{value:"Bekijk hier je dynamische tarieven"},dynamicPricesLink:{value:{text:"Naar je dynamische tarieven",href:"/dynamische-tarieven"}}}};var ic=()=>({queryParamsHandling:"merge"});function sc(C,O){if(C&1&&(tf(0,"h4",3),_i(1),nf()),C&2){let A=Ln();Do(),jy(" ",A.title.value," ");}}function nc(C,O){C&1&&bo(0,"p",4);}function oc(C,O){if(C&1&&Nt(0,nc,1,0,"p",6),C&2){let A=Ln();ur("wlGenericRichText",A.description);}}function rc(C,O){if(C&1&&(tf(0,"a",7)(1,"span",8),_i(2),nf()()),C&2){let A=Ln();Do(2),Oc(A.dynamicPricesLink.value.text);}}function ac(C,O){if(C&1&&(tf(0,"div",0)(1,"div",1)(2,"div",2),Vr(3,sc,2,1,"h4",3),Vr(4,oc,1,1,"p",4),tf(5,"div"),Nt(6,rc,3,1,"a",5),nf()()()()),C&2){let A=O;Do(3),$r(A.title?3:-1),Do(),$r(A.description?4:-1),Do(2),ur("wlGenericLink",A.dynamicPricesLink)("wlGenericLinkExtras",Si(4,ic));}}function lc(C,O){if(C&1&&Vr(0,ac,7,5,"div",0),C&2){let A,E=Ln();$r((A=(A=E.rendering())==null?null:A.fields)?0:-1,A);}}var Ma=(()=>{let O=class O{constructor(){this.rendering=ee.required(),this.isDynamicCustomer=ee(false);}};O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-go-to-dynamic-prices"]],inputs:{rendering:[1,"rendering"],isDynamicCustomer:[1,"isDynamicCustomer"]},standalone:false,decls:1,vars:1,consts:[[1,"card","card--info","shadow-sm","overflow-hidden","d-flex","mb-3"],[1,"card-body","d-flex"],[1,"info-card__content","d-sm-flex","flex-grow-1","flex-md-grow-0","flex-sm-column"],["sessionReplay","capture",1,"info-card__title","mb-1"],["wlAutomationId","go-to-dynamic-pricing-notification","sessionReplay","capture",1,"text-small","text-start","mb-2"],["role","button","class","btn btn-outline-primary mb-1",4,"wlGenericLink","wlGenericLinkExtras"],["wlAutomationId","go-to-dynamic-pricing-notification","class","text-small text-start mb-2","sessionReplay","capture",4,"wlGenericRichText"],["role","button",1,"btn","btn-outline-primary","mb-1"],["sessionReplay","capture",1,"mr-1"]],template:function(R,H){R&1&&Vr(0,lc,1,1),R&2&&$r(H.isDynamicCustomer()?0:-1);},dependencies:[s,Pc,Sc,ut],encapsulation:2,changeDetection:0});let C=O;return C})();function cc(C,O){if(C&1&&(bo(0,"wl-go-to-dynamic-prices",2),H1(1,"async")),C&2){let A=Ln();ur("rendering",A.rendering())("isDynamicCustomer",q1(1,2,A.isDynamicCustomer$));}}function dc(C,O){if(C&1&&bo(0,"wl-go-to-dynamic-prices",2),C&2){let A=Ln();ur("rendering",A.goToDynamicPricesRenderingMock)("isDynamicCustomer",true);}}var Pn=(()=>{var O;let C=(O=class{constructor(){this.rendering=ee(),this.store=m$1(mr),this.isDynamicCustomer$=this.store.select(li$1),this.goToDynamicPricesRenderingMock=Ca;}},O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=Jt({type:O,selectors:[["wl-go-to-dynamic-prices-container"]],inputs:{rendering:[1,"rendering"]},standalone:false,decls:3,vars:0,consts:[["wlLive",""],["wlPreview",""],[3,"rendering","isDynamicCustomer"]],template:function(R,H){R&1&&(tf(0,"wl-experience-editor"),Nt(1,cc,2,4,"ng-template",0)(2,dc,1,2,"ng-template",1),nf());},dependencies:[q,b,y,Ma,VU],encapsulation:2,changeDetection:0}),O);return C=u([d1({name:"[taco] go-to-dynamic-prices-container"})],C),C})();var kn=(()=>{let O=class O{};O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=yn({type:O}),O.\u0275inj=Ht({imports:[a,To,Bs,Pn$1,xs,Zg,Dh$1,io,it,lv]});let C=O;return C})();var rm=(()=>{let O=class O{};O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=yn({type:O}),O.\u0275inj=Ht({imports:[kn,d({DynamicPrices:Mn,GoToDynamicPrices:Pn})]});let C=O;return C})();
13export{rm as TariffsLazyModule};//# sourceMappingURL=chunk-DeMHs5bB.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.