PageSourceSearch

https://dash.infinityfree.com/build/assets/clients-Dk0Rg5jf.js

js infinityfree.com collected 2026-09-24 15:24:57 UTC 979,592 bytes, 1,801 lines download raw bytes

1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=((n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)))(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).ApexCharts=r()})(e,function(){var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&o(e,n,t[n]);return e},c=(e,r)=>t(e,n(r)),l=(e,t,n)=>o(e,typeof t==`symbol`?t:t+``,n),u=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});class d{static isSSR(){return typeof window>`u`||typeof document>`u`}static isBrowser(){return!this.isSSR()}static hasAPI(e){return!this.isSSR()&&window[e]!==void 0}static getApex(){return typeof window<`u`&&window.Apex?window.Apex:typeof global<`u`&&global.Apex?global.Apex:{}}}class f{constructor(e,t=null){this.nodeName=e,this.namespaceURI=t,this.attributes=new Map,this.children=[],this.textContent=``,this.style={},this.classList=new p,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){if(e&&e!==this){if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){let t=this.children.indexOf(e);t!==-1&&this.children.splice(t,1)}e.parentNode=this,this.children.push(e)}return e}removeChild(e){let t=this.children.indexOf(e);return t!==-1&&(this.children.splice(t,1),e.parentNode=null),e}insertBefore(e,t){if(!t)return this.appendChild(e);if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){let t=this.children.indexOf(e);t!==-1&&this.children.splice(t,1)}let n=this.children.indexOf(t);return n!==-1&&(e.parentNode=this,this.children.splice(n,0,e)),e}cloneNode(e=!1){let t=new f(this.nodeName,this.namespaceURI);return t.textContent=this.textContent,this.attributes.forEach((e,n)=>{t.attributes.set(n,e)}),Object.assign(t.style,this.style),e&&this.children.forEach(e=>{e.cloneNode&&t.appendChild(e.cloneNode(!0))}),t}getBoundingClientRect(){return{width:this._ssrWidth||0,height:this._ssrHeight||0,top:0,left:0,right:this._ssrWidth||0,bottom:this._ssrHeight||0,x:0,y:0}}getRootNode(){let e=this;for(;e.parentNode;)e=e.parentNode;return e}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let e=``;if(this.attributes.forEach((t,n)=>{e+=` ${n}="${t}"`}),this.children.length===0&&!this.textContent)return`<${this.nodeName}${e}/>`;let t=this.children.map(e=>e.toString()).join(``);return`<${this.nodeName}${e}>${this.textContent}${t}</${this.nodeName}>`}get innerHTML(){return this.children.map(e=>e.toString()).join(``)}set innerHTML(e){this.children=[],this.textContent=e}get outerHTML(){return this.toString()}get isConnected(){return!0}}class p{constructor(){this.classes=new Set}add(...e){e.forEach(e=>this.classes.add(e))}remove(...e){e.forEach(e=>this.classes.delete(e))}contains(e){return this.classes.has(e)}
1toggle(e,t){return!0===t?(this.classes.add(e),!0):!1===t||this.classes.has(e)?(this.classes.delete(e),!1):(this.classes.add(e),!0)}toString(){return Array.from(this.classes).join(` `)}}class m{constructor(){this.SVGNS=`http://www.w3.org/2000/svg`,this.XLINKNS=`http://www.w3.org/1999/xlink`}createElementNS(e,t){return new f(t,e)}createTextNode(e){let t={nodeName:`#text`,nodeType:3,textContent:e,toString:()=>t.textContent};return t}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString:e=>e.toString?e.toString():``}}createDOMParser(){return{parseFromString(e,t){let n=new f(`root`);return n.innerHTML=e,{documentElement:n}}}}}let h=null,g=null,_=null;class v{static init(){d.isSSR()&&!h&&(h=new m)}static createElement(e){return d.isSSR()?(h||this.init(),h.createElementNS(null,e)):document.createElement(e)}static createElementNS(e,t){return d.isSSR()?(h||this.init(),h.createElementNS(e,t)):document.createElementNS(e,t)}static createTextNode(e){return d.isSSR()?(h||this.init(),h.createTextNode(e)):document.createTextNode(e)}static querySelector(e){return d.isSSR()?null:document.querySelector(e)}static querySelectorAll(e){return d.isSSR()?[]:document.querySelectorAll(e)}static getComputedStyle(e){return d.isSSR()?{}:window.getComputedStyle(e)}static matchMedia(e){if(d.isSSR()||typeof window.matchMedia!=`function`)return null;try{return window.matchMedia(e)}catch(e){return null}}static getBoundingClientRect(e){return d.isSSR()?(h||this.init(),h.getBoundingClientRect(e)):e?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return d.isSSR()?(h||this.init(),g||(g=h.createXMLSerializer()),g):(g||(g=new XMLSerializer),g)}static getDOMParser(){return d.isSSR()?(h||this.init(),_||(_=h.createDOMParser()),_):(_||(_=new DOMParser),_)}static addWindowEventListener(e,t,n){d.isBrowser()&&window.addEventListener(e,t,n)}static removeWindowEventListener(e,t,n){d.isBrowser()&&window.removeEventListener(e,t,n)}static requestAnimationFrame(e){return d.isBrowser()?window.requestAnimationFrame(e):(e(0),null)}static cancelAnimationFrame(e){d.isBrowser()&&e&&window.cancelAnimationFrame(e)}static elementExists(e){return!!e&&(d.isSSR()?!0===e._ssrMode||e.nodeName!==void 0:!!e.getRootNode&&(e.getRootNode({composed:!0})===document||e.isConnected))}
1static getWindow(){return d.isBrowser()?window:null}static getDocument(){return d.isBrowser()?document:null}static _getShim(){return h}static _resetShim(){h=null,g=null,_=null}}let y=new WeakMap,b=0,x=class e{static isObject(e){return e&&typeof e==`object`&&!Array.isArray(e)}static is(e,t){return Object.prototype.toString.call(t)===`[object `+e+`]`}static isSafari(){return d.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(e,t){if(!this.isObject(e)&&this.isObject(t))return this.clone(t);let n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(r=>{this.isObject(t[r])&&r in e?n[r]=this.extend(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}static extendArray(t,n){let r=[];return t.map(t=>{r.push(e.extend(n,t))}),t=r}static monthMod(e){return e%12}static clone(e,t=new WeakMap,n=!1){if(typeof e!=`object`||!e)return e;if(t.has(e))return t.get(e);let r;if(Array.isArray(e)){if(n)r=e.slice();else{r=[],t.set(e,r);for(let n=0;n<e.length;n++)r[n]=this.clone(e[n],t,!1)}}else if(e instanceof Date)r=new Date(e.getTime());else if(n)r=Object.assign({},e);else{r={},t.set(e,r);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=this.clone(e[n],t,!1))}return r}static shallowClone(e){return typeof e!=`object`||!e?e:Array.isArray(e)?e.slice():Object.assign({},e)}static stringifyForCompare(e){return JSON.stringify(e,(e,t)=>{if(typeof t!=`function`)return t;let n=y.get(t);return n===void 0&&(n=++b,y.set(t,n)),`__apx_fn_${n}`})}static shallowEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;if(typeof e!=`object`||typeof t!=`object`)return e===t;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}static log10(e){return Math.log(e)/Math.LN10}static roundToBase10(e){return Math.pow(10,Math.floor(Math.log10(e)))}static roundToBase(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}static parseNumber(e){return typeof e==`number`||e===null?e:parseFloat(e)}static stripNumber(e,t=2){return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(e){return e.toString().includes(`e`)?Math.round(e):e}static elementExists(e){return!(!e||!e.isConnected)}static getDimensions(e){if(!e)return[0,0];if(d.isSSR())return[e._ssrWidth||400,e._ssrHeight||300];let t;try{t=getComputedStyle(e,null)}catch(t){return[e.clientWidth||0,e.clientHeight||0]}let n=e.clientWidth,r=e.clientHeight;if(!n||!r){let t=e.getBoundingClientRect();n=n||t.width,r=r||t.height}return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),[n,r]}static getBoundingClientRect(e){if(!e)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(d.isSSR())return v.getBoundingClientRect(e);let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}static getLargestStringFromArr(e){return e.reduce((e,t)=>(Array.isArray(t)&&(t=t.reduce((e,t)=>e.length>t.length?e:t)),e.length>t.length?e:t),0)}static hexToRgba(e=`#999999`,t=.6){e.substring(0,1)!==`#`&&(e=`#999999`);let n=e.replace(`#`,``),r=n.match(RegExp(`(.{`+n.length/3+`})`,`g`))||[];for(let e=0;e<r.length;e++)r[e]=parseInt(r[e].length===1?r[e]+r[e]:r[e],16);return t!==void 0&&r.push(t),`rgba(`+r.join(`,`)+`)`}static getOpacityFromRGBA(e){return parseFloat(e.replace(/^.*,(.+)\)/,`$1`))}static parseHex(e){if(typeof e!=`string`)return null;let t=e.trim().replace(`#`,``);return t.length===3&&(t=t.split(``).map(e=>e+e).join(``)),/^[0-9a-fA-F]{6}$/.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}static relativeLuminance([e,t,n]){let r=e=>{let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}static getContrastRatio(t,n){let r=e.parseHex(t),i=e.parseHex(n);if(!r||!i)return 0;let a=e.relativeLuminance(r),o=e.relativeLuminance(i);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}static rgb2hex(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&e.length===4?`#`+(`0`+parseInt(e[1],10).toString(16)).slice(-2)+(`0`+parseInt(e[2],10).toString(16)).slice(-2)+(`0`+parseInt(e[3],10).toString(16)).slice(-2):``}shadeRGBColor(e,t){let n=t.split(`,`),r=e<0?0:255,i=e<0?-1*e:e,a=parseInt(n[0].slice(4),10),o=parseInt(n[1],10),s=parseInt(n[2],10);
1return`rgb(`+(Math.round((r-a)*i)+a)+`,`+(Math.round((r-o)*i)+o)+`,`+(Math.round((r-s)*i)+s)+`)`}shadeHexColor(e,t){let n=parseInt(t.slice(1),16),r=e<0?0:255,i=e<0?-1*e:e,a=n>>16,o=n>>8&255,s=255&n;return`#`+(16777216+65536*(Math.round((r-a)*i)+a)+256*(Math.round((r-o)*i)+o)+(Math.round((r-s)*i)+s)).toString(16).slice(1)}shadeColor(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}static isColorHex(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}static isCSSVariable(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.startsWith(`var(`)&&t.endsWith(`)`)}static getThemeColor(t){if(!e.isCSSVariable(t)||d.isSSR())return t;let n=document.createElement(`div`),r;n.style.cssText=`position:fixed; left: -9999px; visibility:hidden;`,n.style.color=t,document.body.appendChild(n);try{r=window.getComputedStyle(n).color}finally{n.parentNode&&n.parentNode.removeChild(n)}return r}static applyOpacityToColor(e,t){let n=Number(t);return Number.isFinite(n)?n<=0?`transparent`:n>=1?e:`color-mix(in srgb, ${e} ${Math.round(100*n)}%, transparent)`:e}static getPolygonPos(e,t){let n=[],r=2*Math.PI/t;for(let i=0;i<t;i++){let t={};t.x=e*Math.sin(i*r),t.y=-e*Math.cos(i*r),n.push(t)}return n}static polarToCartesian(e,t,n,r){let i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}static escapeString(e,t=`x`){let n=e.toString().slice();return n=n.replace(/[` ~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi,t),n}static negToZero(e){return e<0?0:e}static moveIndexInArray(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e}static extractNumber(e){return parseFloat(e.replace(/[^\d.]*/g,``))}static findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}static setELstyles(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}static preciseAddition(e,t){let n=(String(e).split(`.`)[1]||``).length,r=(String(t).split(`.`)[1]||``).length,i=Math.pow(10,Math.max(n,r));return(Math.round(e*i)+Math.round(t*i))/i}static isNumber(e){return!isNaN(e)&&parseFloat(String(Number(e)))===e&&!isNaN(parseInt(e,10))}static isFloat(e){return Number(e)===e&&e%1!=0}static isMsEdge(){if(d.isSSR())return!1;let e=window.navigator.userAgent,t=e.indexOf(`Edge/`);return t>0&&parseInt(e.substring(t+5,e.indexOf(`.`,t)),10)}static getGCD(e,t,n=7){let r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(r>1?(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r)):r=1;t;){let n=t;t=e%t,e=n}return e/r}static getPrimeFactors(e){let t=[],n=2;for(;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}static mod(e,t,n=7){let r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}};class S{constructor(e){this.w=e,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}isValidDate(e){return typeof e!=`number`&&!isNaN(this.parseDate(e))}getTimeStamp(e){return isNaN(Date.parse(e))?e:this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime()}getDate(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}parseDate(e){if(!isNaN(Date.parse(e)))return this.getTimeStamp(e);let t=Date.parse(e.replace(/-/g,`/`).replace(/[a-z]+/gi,` `));return t=this.getTimeStamp(t),t}parseDateWithTimezone(e){return Date.parse(e.replace(/-/g,`/`).replace(/[a-z]+/gi,` `))}formatDate(e,t){let n=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,i=[`\0`,...n.months],a=[`�`,...n.shortMonths],o=[`�`,...n.days],s=[`�`,...n.shortDays];function c(e,t=2){let n=e+``;for(;n.length<t;)n=`0`+n;return n}let l=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,`$1`+l)).replace(/(^|[^\\])yy/g,`$1`+l.toString().substr(2,2))).replace(/(^|[^\\])y/g,`$1`+l);let u=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,`$1`+i[0])).replace(/(^|[^\\])MMM/g,`$1`+a[0])).replace(/(^|[^\\])MM/g,`$1`+c(u))).replace(/(^|[^\\])M/g,`$1`+u);let d=r?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,`$1`+o[0])).replace(/(^|[^\\])ddd/g,`$1`+s[0])).replace(/(^|[^\\])dd/g,`$1`+c(d))).replace(/(^|[^\\])d/g,`$1`+d);let f=r?e.getUTCHours():e.getHours(),p=f>12?f-12:f===0?12:f;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,`$1`+c(f))).replace(/(^|[^\\])H/g,`$1`+f)).replace(/(^|[^\\])hh+/g,`$1`+c(p))).replace(/(^|[^\\])h/g,`$1`+p);let m=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,`$1`+c(m))).replace(/(^|[^\\])m/g,`$1`+m);let h=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,`$1`+c(h))).replace(/(^|[^\\])s/g,`$1`+h);let g=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,`$1`+c(g,3)),g=Math.round(g/10),t=t.replace(/(^|[^\\])ff/g,`$1`+c(g)),g=Math.round(g/10);let _=f<12?`AM`:`PM`;t=(t=(t=t.replace(/(^|[^\\])f/g,`$1`+g)).replace(/(^|[^\\])TT+/g,`$1`+_)).replace(/(^|[^\\])T/g,`$1`+_.charAt(0));let v=_.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,`$1`+v)).replace(/(^|[^\\])t/g,`$1`+v.charAt(0));let y=-e.getTimezoneOffset(),b=r||!y?`Z`:y>0?`+`:`-`;if(!r){y=Math.abs(y);let e=y%60;b+=c(Math.floor(y/60))+`:`+c(e)}t=t.replace(/(^|[^\\])K/g,`$1`+b);let x=(r?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(o[0],`g`),o[x])).replace(new RegExp(s[0],`g`),s[x])).replace(new RegExp(i[0],`g`),i[u])).replace(new RegExp(a[0],`g`),a[u])).replace(/\\(.)/g,`$1`)}getTimeUnitsfromTimestamp(e,t){let n=this.w;n.config.xaxis.min!==void 0&&(e=n.config.xaxis.min),n.config.xaxis.max!==void 0&&(t=n.config.xaxis.max);let r=this.getDate(e),i=this.getDate(t),a=this.formatDate(r,`yyyy MM dd HH mm ss fff`).split(` `),o=this.formatDate(i,`yyyy MM dd HH mm ss fff`).split(` `);return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(o[2],10),minMonth:
1parseInt(a[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(o[0],10)}}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}calculcateLastDaysOfMonth(e,t,n){return this.determineDaysOfMonths(e,t)-n}determineDaysOfYear(e){let t=365;return this.isLeapYear(e)&&(t=366),t}determineRemainingDaysOfYear(e,t,n){let r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear(e)&&r++,r}determineDaysOfMonths(e,t){let n=30;switch(e=x.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}getDateFields(e,t){let n=new Date(e);return t?{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),ms:n.getUTCMilliseconds(),weekday:n.getUTCDay()}:{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),ms:n.getMilliseconds(),weekday:n.getDay()}}addInterval(e,t,n,r){let i=new Date(e);if(r)switch(t){case`year`:i.setUTCFullYear(i.getUTCFullYear()+n);break;case`month`:i.setUTCMonth(i.getUTCMonth()+n);break;case`week`:i.setUTCDate(i.getUTCDate()+7*n);break;case`day`:i.setUTCDate(i.getUTCDate()+n);break;case`hour`:i.setUTCHours(i.getUTCHours()+n);break;case`minute`:i.setUTCMinutes(i.getUTCMinutes()+n);break;case`second`:i.setUTCSeconds(i.getUTCSeconds()+n)}else switch(t){case`year`:i.setFullYear(i.getFullYear()+n);break;case`month`:i.setMonth(i.getMonth()+n);break;case`week`:i.setDate(i.getDate()+7*n);break;case`day`:i.setDate(i.getDate()+n);break;case`hour`:i.setHours(i.getHours()+n);break;case`minute`:i.setMinutes(i.getMinutes()+n);break;case`second`:i.setSeconds(i.getSeconds()+n)}return i.getTime()}ceilToBoundary(e,t,n,r){let i=new Date(e);if(r)switch(t){case`second`:{let t=i.getUTCSeconds(),r=Math.ceil(t/n)*n;return r===t&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(r),i.getTime())}case`minute`:{let t=i.getUTCMinutes(),r=Math.ceil(t/n)*n;return r===t&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(r),i.getTime())}case`hour`:{let t=i.getUTCHours(),r=Math.ceil(t/n)*n;return r===t&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(r),i.getTime())}case`day`:return i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0),i.setUTCDate(i.getUTCDate()+1),i.getTime());case`week`:{let t=6048e5,r=Date.UTC(1970,0,5);i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0);let a=i.getTime(),o=Math.ceil((a-r)/t),s=r+Math.ceil(o/n)*n*t;return s>=e?s:s+n*t}case`month`:{let t=i.getUTCMonth(),r=Math.ceil(t/n)*n;return r===t&&i.getUTCDate()===1&&i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0),i.setUTCDate(1),i.setUTCMonth(r),i.getTime())}case`year`:{let t=i.getUTCFullYear(),r=Math.ceil(t/n)*n;return r===t&&i.getUTCMonth()===0&&i.getUTCDate()===1&&i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:Date.UTC(r,0,1)}}else switch(t){case`second`:{let t=i.getSeconds(),r=Math.ceil(t/n)*n;return r===t&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(r),i.getTime())}case`minute`:{let t=i.getMinutes(),r=Math.ceil(t/n)*n;return r===t&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(r),i.getTime())}case`hour`:{let t=i.getHours(),r=Math.ceil(t/n)*n;return r===t&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(r),i.getTime())}case`day`:return i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),i.setDate(i.getDate()+1),i.getTime());case`week`:{let t=6048e5,r=new Date(1970,0,5).getTime();i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0);let a=i.getTime(),o=Math.ceil((a-r)/t),s=r+Math.ceil(o/n)*n*t;return s>=e?s:s+n*t}
1case`month`:{let t=i.getMonth(),r=Math.ceil(t/n)*n;return r===t&&i.getDate()===1&&i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),i.setDate(1),i.setMonth(r),i.getTime())}case`year`:{let t=i.getFullYear(),r=Math.ceil(t/n)*n;return r===t&&i.getMonth()===0&&i.getDate()===1&&i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:new Date(r,0,1).getTime()}}return e}isAtBoundary(e,t,n){let r=this.getDateFields(e,n);switch(t){case`year`:return r.month===0&&r.date===1&&r.hour===0&&r.minute===0&&r.second===0&&r.ms===0;case`month`:return r.date===1&&r.hour===0&&r.minute===0&&r.second===0&&r.ms===0;case`day`:return r.hour===0&&r.minute===0&&r.second===0&&r.ms===0;case`hour`:return r.minute===0&&r.second===0&&r.ms===0;case`minute`:return r.second===0&&r.ms===0;case`second`:return r.ms===0}return!1}}class C{constructor(e){this.w=e,this.tooltipKeyFormat=`dd MMM`}xLabelFormat(e,t,n,r){let i=this.w;if(i.config.xaxis.type===`datetime`&&i.config.xaxis.labels.formatter===void 0&&i.config.tooltip.x.formatter===void 0){let e=new S(this.w);return e.formatDate(e.getDate(t),i.config.tooltip.x.format)}return e(t,n,r)}defaultGeneralFormatter(e){return Array.isArray(e)?e.map(e=>e):e}defaultYFormatter(e,t){let n=this.w;if(x.isNumber(e)){if(n.globals.yValueDecimal!==0)e=e.toFixed(t.decimalsInFloat===void 0?n.globals.yValueDecimal:t.decimalsInFloat);else{let t=e.toFixed(0);e=Number(t)===e?t:e.toFixed(1)}}return e}setLabelFormatters(){let e=this.w,t=e.formatters;return t.xaxisTooltipFormatter=e=>this.defaultGeneralFormatter(e),t.ttKeyFormatter=e=>this.defaultGeneralFormatter(e),t.ttZFormatter=e=>e,t.legendFormatter=e=>this.defaultGeneralFormatter(e),t.xLabelFormatter=e.config.xaxis.labels.formatter===void 0?t=>{if(x.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type===`numeric`){if(x.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);{let n=e.globals.maxX-e.globals.minX;if(n>0){let e=n/10,r=Math.max(0,-Math.floor(Math.log10(e)));return t.toFixed(r)}return t.toFixed(0)}}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minY<4?t.toFixed(1):t.toFixed(0)}return t}:e.config.xaxis.labels.formatter,t.ttKeyFormatter=typeof e.config.tooltip.x.formatter==`function`?e.config.tooltip.x.formatter:t.xLabelFormatter,typeof e.config.xaxis.tooltip.formatter==`function`&&(t.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||e.config.tooltip.y.formatter!==void 0)&&(t.ttVal=e.config.tooltip.y),e.config.tooltip.z.formatter!==void 0&&(t.ttZFormatter=e.config.tooltip.z.formatter),e.config.legend.formatter!==void 0&&(t.legendFormatter=e.config.legend.formatter),t.yLabelFormatters=[],e.config.yaxis.forEach((n,r)=>{if(n.labels.formatter!==void 0)t.yLabelFormatters[r]=n.labels.formatter;else if(e.config.chart.type===`violin`){let n=e=>typeof e==`number`&&isFinite(e)?``+Math.round(100*e)/100:e;t.yLabelFormatters[r]=t=>e.globals.xyCharts?Array.isArray(t)?t.map(n):n(t):t}else t.yLabelFormatters[r]=t=>e.globals.xyCharts?Array.isArray(t)?t.map(e=>this.defaultYFormatter(e,n)):this.defaultYFormatter(t,n):t}),e.globals}heatmapLabelFormatters(){let e=this.w;if(e.config.chart.type===`heatmap`){e.globals.yAxisScale[0].result=e.seriesData.seriesNames.slice();let t=e.seriesData.seriesNames.reduce((e,t)=>e.length>t.length?e:t,0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}let w={name:`en`,options:{months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],toolbar:{exportToSVG:`Download SVG`,exportToPNG:`Download PNG`,exportToCSV:`Download CSV`,menu:`Menu`,selection:`Selection`,selectionZoom:`Selection Zoom`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`,pan:`Panning`,reset:`Reset Zoom`,measure:`Measure`}}};
vendor: 12,542 bytes, line 1
1class T{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:`11px`,fontWeight:400,fontFamily:void 0,cssClass:``},formatter:void 0},axisBorder:{show:!1,color:`#e0e0e0`,width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:`#e0e0e0`,width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:`11px`,fontWeight:900,fontFamily:void 0,cssClass:``}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:`front`,stroke:{color:`#b6b6b6`,width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:`#fff`,strokeWidth:2,strokeColor:`#333`,shape:`circle`,offsetX:0,offsetY:0,cssClass:``},label:{borderColor:`#c2c2c2`,borderWidth:1,borderRadius:2,text:void 0,textAnchor:`middle`,offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:`#fff`,color:void 0,fontSize:`11px`,fontFamily:void 0,fontWeight:400,cssClass:``,padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0},tooltip:{enabled:!1,text:void 0,formatter:void 0,theme:void 0,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:`#c2c2c2`,borderColor:`#c2c2c2`,borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:`100%`,yAxisIndex:0,label:{borderColor:`#c2c2c2`,borderWidth:1,borderRadius:2,text:void 0,textAnchor:`end`,position:`right`,offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:`#fff`,color:void 0,fontSize:`11px`,fontFamily:void 0,fontWeight:400,cssClass:``,padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:`#c2c2c2`,borderColor:`#c2c2c2`,borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:`#c2c2c2`,borderWidth:1,borderRadius:2,text:void 0,textAnchor:`middle`,orientation:`vertical`,position:`top`,offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:`#fff`,color:void 0,fontSize:`11px`,fontFamily:void 0,fontWeight:400,cssClass:``,padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:``,textAnchor:`start`,foreColor:void 0,fontSize:`13px`,fontFamily:void 0,fontWeight:400,appendTo:`.apexcharts-annotations`,backgroundColor:`transparent`,borderColor:`#c2c2c2`,borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},plugins:[],trellis:{by:void 0,row:void 0,column:void 0,emptyPanels:`placeholder`,data:void 0,x:void 0,y:void 0,seriesBy:void 0,columns:`auto`,minPanelWidth:220,gap:12,aspectRatio:1.6,panelHeight:void 0,order:`first-seen`,limit:void 0,virtualize:`auto`,scales:{x:`shared`,y:`shared`,color:`shared`,size:`shared`},header:{show:!0,formatter:void 0,style:{fontSize:void 0,fontWeight:void 0,color:void 0}},axes:{labels:`edges`},legend:`shared`,toolbar:`shared`,tooltip:`panel`,zoom:`sync`,promote:!0,radiusByTotal:!1,targetTicks:3,panel:void 0},chart:{animations:{enabled:!0,speed:800,easing:`easeInOutSine`,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350,easing:void 0},chartTypeMorph:{enabled:!0,speed:600},respectReducedMotion:!0,largeDatasetThreshold:1e3},background:``,locales:[w],defaultLocale:`en`,perspectives:{serializeOptions:[`theme`,`xaxis`,`yaxis`,`title`,`subtitle`]},history:{enabled:!1,maxDepth:100,coalesceMs:250,keyboard:!0},renderer:`svg`,rendererThreshold:8e3,layers:{series:`auto`,grid:`svg`,annotations:`svg`,dataLabels:`svg`},dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:`#000`,opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0,crossFilter:void 0,filterChange:void 0,annotationDragged:void 0,annotationEdited:void 0,annotationCreated:void 0,annotationStyled:void 0,annotationDeleted:void 0,measured:void 0,keyDown:void 0,keyUp:void 0},foreColor:`#373d3f`,fontFamily:`Helvetica, Arial, sans-serif`,height:`auto`,parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,license:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:`x`,fill:{color:`#24292e`,opacity:.1},stroke:{width:1,color:`#24292e`,opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},link:{enabled:!1,mode:`highlight`,dimOpacity:.2,id:void 0,dimension:void 0,reduce:void 0,type:void 0,bins:void 0,order:void 0,seriesName:void 0},ink:{enabled:!1,palette:!1,snap:!1,noteColors:void 0},measure:{enabled:!1,mode:`span`,key:`m`,pinOnRelease:!0,colors:{up:void 0,down:void 0,neutral:void 0,guide:void 0},band:!0,guides:!0,markers:!0,format:{x:void 0,y:void 0,percent:void 0},label:void 0},contextMenu:{enabled:!1,items:[`annotate`,`xline`,`yline`,`measure`],labels:{annotate:void 0,xline:void 0,yline:void 0,measure:void 0},noteText:`Note`,line:{text:``,strokeDashArray:4,color:void 0}},stacked:!1,stackOnlyBar:!0,stackType:`normal`,streaming:{enabled:!1,maxPoints:void 0},toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,measure:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:`,`,headerCategory:`category`,headerValue:`value`,categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0,embedFonts:!0},autoSelected:`zoom`},type:`line`,width:`100%`,zoom:{enabled:!0,type:`x`,autoScaleYaxis:!1,allowMouseWheelZoom:`auto`,pinch:`auto`,zoomedArea:{fill:{color:`#90CAF9`,opacity:.4},stroke:{color:`#0D47A1`,opacity:.4,width:1}}},pan:{inertia:!0,friction:.92},accessibility:{enabled:!0,description:void 0,announcements:{enabled:!0},keyboard:{enabled:!0,navigation:{enabled:!0,wrapAround:!1}}},dataReducer:{enabled:!1,algorithm:`lttb`,targetPoints:250,threshold:500}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:`origin`},bar:{horizontal:!1,columnWidth:`70%`,barHeight:`70%`,distributed:!1,borderRadius:0,borderRadiusApplication:`around`,rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:`top`,maxItems:100,hideOverflowingLabels:!0,orientation:`horizontal`,total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:`#373d3f`,fontSize:`12px`,fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0,minZ:void 0,maxZ:void 0},scatter:{jitter:{enabled:!1,x:0,y:0,distributed:!1,maxPoints:5e3}},candlestick:{colors:{upward:`#00B746`,downward:`#EF403C`},wick:{useFillColor:!0}},boxPlot:{colors:{upper:`#00E396`,lower:`#008FFB`},whiskers:`minmax`,points:{show:!1,shape:`circle`,size:2.5,jitter:.5,maxPoints:3e3,opacity:.9,fillColor:`series-dark`,strokeColor:`#fff`,strokeWidth:1}},violin:{bandwidthScale:1,kde:{bandwidth:void 0,resolution:64},normalize:`individual`,points:{show:!0,shape:`circle`,size:2.5,jitter:.5,constrainToViolin:!0,maxPoints:3e3,opacity:.9,fillColor:`series-dark`,strokeColor:`#fff`,strokeWidth:1}},histogram:{bins:`auto`,binWidth:void 0,range:void 0,normalize:`count`,cumulative:!1,overlap:!0},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0,gradientLegend:{enabled:!1,width:`70%`,height:`70%`,thickness:12,align:`center`,stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:`11px`,fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}}},funnel:{shape:`rectangle`,lastShape:`flat`},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:`scale`,minFontSize:4},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0,colorValue:void 0,gradient:{enabled:void 0,min:void 0,max:void 0,midpoint:void 0,symmetric:!0,colors:void 0,stops:void 0},gradientLegend:{enabled:!1,width:`70%`,height:`70%`,thickness:12,align:`center`,stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:`11px`,fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}},nested:{enabled:void 0,drilldownAsLevels:!1},parents:{show:`auto`,padding:4,fill:void 0,fillOpacity:1,borderColor:void 0,borderWidth:1,borderRadius:void 0,hover:{show:!0,color:void 0,width:2},header:{show:!0,height:22,minWidth:40,align:`left`,offsetX:0,offsetY:0,showValue:!1,formatter:void 0,style:{fontSize:`12px`,fontFamily:void 0,fontWeight:600,color:void 0,background:void 0,cssClass:``}},tooltip:{formatter:void 0}},levels:[],zoom:{enabled:!1,breadcrumb:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:`#000`,borderWidth:1,borderRadius:2,style:{background:`rgba(0, 0, 0, 0.6)`,color:`#fff`,fontSize:`12px`,fontFamily:void 0,fontWeight:400,cssClass:``,padding:{left:6,right:6,top:2,bottom:2}}}},unit:{layout:`grouped`,positions:void 0,transition:`group`,shape:`circle`,image:{src:void 0,width:20,height:20,tint:!1},pictogram:{mark:void 0,fit:`contain`,scale:1,padding:0,fallback:`circle`},size:`auto`,columns:{size:`inherit`},grid:{columns:10,total:void 0,fillFrom:`bottom`,split:!1,tileColumns:void 0,max:void 0,trackColor:void 0},scatter:{y:`lanes`,spread:`swarm`,orientation:`horizontal`,tickAmount:5,xMin:void 0,xMax:void 0,xTitle:void 0,xFormatter:void 0,yTickAmount:5,yMin:void 0,yMax:void 0,yTitle:void 0,yFormatter:void 0,sizeField:`z`,sizeRange:void 0,laneLabelWidth:void 0,gridlines:!0},sizeByValue:{enabled:!1,maxRadius:`auto`,minRadius:void 0,scale:`area`},spacing:1.05,borderRadius:0,gather:{motion:`auto`,spring:`crisp`,easing:`outCubic`,overshoot:1.70158,enter:`burst`},arc:{startAngle:-90,endAngle:90,innerRadiusRatio:.4,rows:`auto`},unitValue:1,maxUnits:5e3,sortByGroup:!0,clusterLabels:{show:!0,position:`top`,curved:!0,fontSize:`13px`,fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:void 0,external:{show:!1,connector:{show:!0,width:1.5,color:void 0,gap:8,length:22},offsetX:0,offsetY:0}},tooltip:{formatter:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:`arc`,min:0,max:100,bands:[],bandsStyle:{strokeWidth:`40%`,gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:`#666`,placement:`outside`},minor:{count:4,length:5,width:1,color:`#999`,placement:`outside`},labels:{show:!1,offset:6,fontSize:`11px`,fontFamily:void 0,fontWeight:400,color:`#666`,formatter:e=>String(e)}},needle:{color:`#333`,length:`85%`,baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:`ease-out`}},hollow:{margin:5,size:`50%`,background:`transparent`,image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:`front`,stroke:void 0,strokeWidth:1,strokeDasharray:void 0,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:`#000`,opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:`#f2f2f2`,strokeWidth:`97%`,opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:`#000`,opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:`16px`,fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:e=>e},value:{show:!0,fontSize:`14px`,fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:e=>e+`%`},total:{show:!1,label:`Total`,fontSize:`16px`,fontWeight:600,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>
vendor: 4,666 bytes, line 1
1e+t,0)/e.seriesData.series.length+`%`}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:`16px`,formatter:e=>e,onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,expandOffset:10,hoverOutline:{show:!0,size:8,gap:0,opacity:.3,color:void 0},borderRadius:0,spacing:0,dataLabels:{offset:0,minAngleToShowLabel:10,external:{show:!1,offsetX:0,offsetY:0,fontSize:void 0,fontFamily:void 0,fontWeight:void 0,color:void 0,formatter:void 0,connector:{show:!0,width:1,color:void 0,length:16,gap:6}}},donut:{size:`65%`,background:`transparent`,labels:{show:!1,name:{show:!0,fontSize:`16px`,fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:e=>e},value:{show:!0,fontSize:`20px`,fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:e=>e},total:{show:!1,showAlways:!1,label:`Total`,fontSize:`16px`,fontWeight:400,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>e+t,0)}}}},polarArea:{rings:{strokeWidth:1,strokeColor:`#e8e8e8`},spokes:{strokeWidth:1,connectorColors:`#e8e8e8`}},sunburst:{offsetX:0,offsetY:0,startAngle:0,endAngle:360,innerSize:`15%`,borderRadius:0,spacing:1,leaf:`extend`,partition:`normalize`,tint:.14,zoomOnClick:!0,dataLabels:{show:!0,minAngleToShow:8,style:{fontSize:`12px`,fontFamily:void 0,fontWeight:400,colors:void 0}}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:`#e8e8e8`,connectorColors:`#e8e8e8`,fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:e=>e===null?``:e,textAnchor:`middle`,distributed:!1,offsetX:0,offsetY:0,style:{fontSize:`12px`,fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:`#fff`,backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:`#fff`,dropShadow:{enabled:!1,top:1,left:1,blur:1,color:`#000`,opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:`#000`,opacity:.8},animate:{enabled:!0},countUp:{enabled:!1}},fill:{type:`solid`,colors:void 0,opacity:.85,gradient:{shade:`dark`,type:`horizontal`,shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:`squares`,width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:`#e0e0e0`,strokeDashArray:0,position:`back`,xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],drilldown:{enabled:!1,series:[],breadcrumb:{show:!0,position:`top-left`,separator:` / `,rootLabel:`All`,offsetX:0,offsetY:0},animation:{enabled:!0,zoomFromPoint:!1,speed:260},loading:{show:!0},cache:!0,marker:{show:!0,size:6,strokeColor:`#fff`}},legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:`bottom`,horizontalAlign:`center`,inverseOrder:!1,fontSize:`12px`,fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:`vertical`,labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:`#fff`,strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:`circle`,offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3},largeDatasetThreshold:0},noData:{text:void 0,align:`center`,offsetX:0,offsetY:0,style:{color:void 0,fontSize:`14px`,fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:`lighten`,value:.15}},active:{allowMultipleDataPointsSelection:!1,filter:{type:`darken`,value:.35}}},title:{text:void 0,align:`left`,margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:`14px`,fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:`left`,margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:`12px`,fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:`smooth`,lineCap:`butt`,width:2,colors:void 0,dashArray:0,fill:{type:`solid`,colors:void 0,opacity:.85,gradient:{shade:`dark`,type:`horizontal`,shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],c
1olorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,compact:!1,custom:void 0,fillSeriesColor:!1,theme:`light`,cssClass:``,style:{fontSize:`12px`,fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:`dd MMM`,formatter:void 0},y:{formatter:void 0,title:{formatter:e=>e?e+`: `:``}},z:{formatter:void 0,title:`Size: `},marker:{show:!0,fillColors:void 0},items:{display:`flex`},fixed:{enabled:!1,position:`topRight`,offsetX:0,offsetY:0}},xaxis:{type:`category`,categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:`12px`,fontWeight:400,fontFamily:void 0,cssClass:``},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:`yyyy`,month:`MMM`,day:`dd MMM`,hour:`HH:mm`,minute:`HH:mm`,second:`HH:mm:ss`}},group:{groups:[],style:{colors:[],fontSize:`12px`,fontWeight:400,fontFamily:void 0,cssClass:``}},axisBorder:{show:!0,color:`#e0e0e0`,width:`100%`,height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:`#e0e0e0`,height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:`on`,min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:`bottom`,title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:`12px`,fontWeight:900,fontFamily:void 0,cssClass:``}},crosshairs:{show:!0,width:1,position:`back`,opacity:.9,stroke:{color:`#b6b6b6`,width:1,dashArray:3},fill:{type:`solid`,color:`#B1B9C4`,gradient:{colorFrom:`#D8E3F0`,colorTo:`#BED1E6`,stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!1,offsetY:0,formatter:void 0,style:{fontSize:`12px`,fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:``,palette:`palette1`,tokens:!0,follow:!1,name:``,monochrome:{enabled:!1,color:`#008FFB`,shadeTo:`light`,shadeIntensity:.65},accessibility:{colorBlindMode:``}}}}}let E=`_apexOwnedByType`,D=(e,t)=>(t[E]=e,t),O=[`tooltip.custom`,`tooltip.shared`,`tooltip.intersect`,`tooltip.followCursor`,`dataLabels.enabled`,`dataLabels.formatter`,`plotOptions.bar.dataLabels.position`,`markers.size`,`states.hover.filter.type`,`states.active.filter.type`,`xaxis.crosshairs.width`,`xaxis.tickPlacement`,`xaxis.tooltip.enabled`,`chart.zoom.enabled`,`chart.animations.dynamicAnimation.enabled`],k=(e,t)=>{let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n},A=(e,t,n)=>{let r=t.split(`.`),i=r.pop(),a=e;for(let e of r)a[e]!=null&&typeof a[e]==`object`||(a[e]={}),a=a[e];n===void 0?delete a[i]:a[i]=n},j={funnel:`bar`,pyramid:`bar`,gauge:`radialBar`,waffle:`unit`,histogram:`bar`},M=(e,t)=>{var n,r;let i=j[e];return{chart:{type:i||e,requestedType:i?e:void 0,stacked:(n=t.chart)==null?void 0:n.stacked},plotOptions:{bar:{isFunnel:e===`funnel`||e===`pyramid`},histogram:(r=t.plotOptions)==null?void 0:r.histogram},series:t.series,yaxis:[{title:{},labels:{},axisBorder:{},axisTicks:{}}]}},N=(e,t)=>{if(typeof e==`function`)return!!Array.isArray(e[E])||typeof t==`function`&&String(e)===String(t);if(typeof t==`function`)return e===void 0;if(e===t)return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},P=({isTimeline:e,seriesIndex:t,dataPointIndex:n,y1:r,y2:i,w:a})=>{var o;let s=a.rangeData.seriesRangeStart[t][n],c=a.rangeData.seriesRangeEnd[t][n],l=a.labelData.labels[n],u=a.config.series[t].name?a.config.series[t].name:``,d=a.formatters.ttKeyFormatter,f=a.config.tooltip.y.title.formatter,p={w:a,seriesIndex:t,dataPointIndex:n,start:s,end:c};typeof f==`function`&&(u=f(u,p)),(o=a.config.series[t].data[n])!=null&&o.x&&(l=a.config.series[t].data[n].x),!e&&a.config.xaxis.type===`datetime`&&(l=new C(a).xLabelFormat(a.formatters.ttKeyFormatter,l,l,{i:void 0,dateFormatter:new S(a).formatDate,w:a})),typeof d==`function`&&(l=d(l,p)),Number.isFinite(r)&&Number.isFinite(i)&&(s=r,c=i);let m=``,h=``,g=a.globals.colors[t];if(a.config.tooltip.x.formatter===void 0){if(a.config.xaxis.type===`datetime`){let e=new S(a);m=e.formatDate(e.getDate(s),a.config.tooltip.x.format),h=e.formatDate(e.getDate(c),a.config.tooltip.x.format)}else m=s,h=c}else m=a.config.tooltip.x.formatter(s),h=a.config.tooltip.x.formatter(c);return{start:s,end:c,startVal:m,endVal:h,ylabel:l,color:g,seriesName:u}},F=e=>{let{color:t,seriesName:n,ylabel:r,start:i,end:a,seriesIndex:o,dataPointIndex:s}=e,c=e.w.globals.tooltip.tooltipLabels.getFormatters(o);i=c.yLbFormatter(i),a=c.yLbFormatter(a);let l=c.yLbFormatter(e.w.seriesData.series[o][s]),u=``,d=`<span class="value start-value">\n  ${i}\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ${a}\n  </span>`;return u=e.w.globals.comboCharts?e.w.config.series[o].type===`rangeArea`||e.w.config.series[o].type===`rangeBar`?d:`<span>${l}</span>`:d,`<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: `+t+`">`+(n||``)+`</span></div><div> <span class="category">`+r+`: </span> `+u+` </div></div>`};class I{constructor(e){this.opts=e}static forType(e){var t,n;let r=new I(e),i=e.chart.requestedType,a;return a=i===`funnel`||i===`pyramid`?r[i]():i===`gauge`?r.gauge():i===`histogram`?r.histogram():[`line`,`area`,`bar`,`candlestick`,`boxPlot`,`violin`,`rangeBar`,`rangeArea`,`bubble`,`scatter`,`heatmap`,`treemap`,`unit`,`sunburst`,`pie`,`polarArea`,`donut`,`radar`,`radialBar`].indexOf(e.chart.type)===-1?r.line():r[e.chart.type](),(n=(t=e.plotOptions)==null?void 0:t.bar)!=null&&n.isFunnel&&(a=r.funnel()),e.chart.stacked&&e.chart.type===`bar`&&(a=r.stackedBars()),a}static handOverTypeDefaults(e,t,n){let r=e.chart.requestedType||e.chart.type;if(!t||t===r)return;let i=new T().init(),a=x.extend(i,I.forType(M(t,e))),o=x.extend(i,I.forType(M(r,e)));for(let t of O){if(n&&k(n,t)!==void 0)continue;let r=k(a,t),i=k(o,t);r===void 0&&i===void 0||N(k(e,t),r)&&A(e,t,i)}}hideYAxis(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text=``,this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}line(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:`straight`},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}sparkline(e){return this.hideYAxis(),x.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(e,t){let n=t.w.config.series[t.seriesIndex].name;return e===null?``:n+`: `+e},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:`top`,labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}}
1,markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:`straight`}}}bar(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:`center`}}},dataLabels:{style:{colors:[`#fff`]},background:{enabled:!1}},stroke:{width:0,lineCap:`square`},fill:{opacity:.85},legend:{markers:{shape:`square`}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:`between`,crosshairs:{width:`barWidth`,position:`back`,fill:{type:`gradient`},dropShadow:{enabled:!1},stroke:{width:0}}}}}funnel(){return this.hideYAxis(),c(s({},this.bar()),{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:`around`,borderRadius:0,dataLabels:{position:`center`}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}pyramid(){return this.funnel()}gauge(){return c(s({},this.radialBar()),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:`60%`},track:{background:`#e7e7e7`,strokeWidth:`100%`,margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:`32px`,fontWeight:600,offsetY:8}}}}})}histogram(){var e,t,n,r;let i=Array.isArray((e=this.opts)==null?void 0:e.series)&&this.opts.series.length>1&&!1!==((r=(n=(t=this.opts)==null?void 0:t.plotOptions)==null?void 0:n.histogram)==null?void 0:r.overlap);return c(s({},this.bar()),{chart:{stacked:!1,zoom:{enabled:!1},animations:{animateGradually:{enabled:!1}}},plotOptions:{bar:{columnWidth:`100%`,borderRadius:0,dataLabels:{position:`top`}}},dataLabels:{enabled:!1},fill:i?{opacity:.65}:{},stroke:i?{show:!1}:{show:!0,width:1,colors:[`#fff`]},xaxis:{type:`numeric`,tooltip:{enabled:!1}},tooltip:{shared:i,intersect:!1,x:{formatter:(e,t)=>{var n,r;let i=(r=(n=t==null?void 0:t.w)==null?void 0:n.histogramData)==null?void 0:r.edges,a=t==null?void 0:t.dataPointIndex;if(!Array.isArray(i)||typeof a!=`number`||a<0)return String(e);let o=i[a],s=i[a+1];if(o===void 0||s===void 0)return String(e);let c=e=>Number.isInteger(e)?String(e):e.toFixed(2);return`${c(o)} to ${c(s)}`}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:D([`candlestick`],({seriesIndex:e,dataPointIndex:t,w:n})=>this._getBoxTooltip(n,e,t,[`Open`,`High`,``,`Low`,`Close`],`candlestick`))},states:{active:{filter:{type:`none`}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:[`#24292e`]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:D([`boxPlot`],({seriesIndex:e,dataPointIndex:t,w:n})=>this._getBoxTooltip(n,e,t,[`Minimum`,`Q1`,`Median`,`Q3`,`Maximum`],`boxPlot`))},markers:{size:7,strokeWidth:1,strokeColors:`#111`},xaxis:{crosshairs:{width:1}}}}violin(){return{chart:{zoom:{enabled:!1},animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:[`#24292e`]},fill:{opacity:.7},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:D([`violin`],({seriesIndex:e,dataPointIndex:t,w:n})=>this._getViolinTooltip(n,e,t))},states:{active:{filter:{type:`none`}}},xaxis:{crosshairs:{width:1}}}}rangeBar(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:`square`},plotOptions:{bar:{borderRadius:0,dataLabels:{position:`center`}}},dataLabels:{enabled:!1,formatter(e,{seriesIndex:t,dataPointIndex:n,w:r}){let i=()=>{let e=r.rangeData.seriesRangeStart[t][n];return r.rangeData.seriesRangeEnd[t][n]-e};return r.globals.comboCharts?r.config.series[t].type===`rangeBar`||r.config.series[t].type===`rangeArea`?i():e:i()},background:{enabled:!1},style:{colors:[`#fff`]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:D([`rangeBar`],e=>e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?(e=>{let{color:t,seriesName:n,ylabel:r,startVal:i,endVal:a}=P(c(s({},e),{isTimeline:!0}));return F(c(s({},e),{color:t,seriesName:n,ylabel:r,start:i,end:a}))})(e):(e=>{let{color:t,seriesName:n,ylabel:r,start:i,end:a}=P(e);return F(c(s({},e),{color:t,seriesName:n,ylabel:r,start:i,end:a}))})(e))},xaxis:{tickPlacement:`between`,tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(e){var t,n;return(t=e.plotOptions.bar)!=null&&t.barHeight||(e.plotOptions.bar.barHeight=2),(n=e.plotOptions.bar)!=null&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}area(){return{stroke:{width:4,fill:{type:`solid`,gradient:{inverseColors:!1,shade:`light`,type:`vertical`,opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:`gradient`,gradient:{inverseColors:!1,shade:`light`,type:`vertical`,opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}rangeArea(){return{stroke:{curve:`straight`,width:0},fill:{type:`solid`,opacity:.6},markers:{size:0},states:{hover:{filter:{type:`none`}},active:{filter:{type:`none`}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:D([`rangeArea`],e=>(e=>{let{color:t,seriesName:n,ylabel:r,start:i,end:a}=P(e);return F(c(s({},e),{color:t,seriesName:n,ylabel:r,start:i,end:a}))})(e))}}}brush(e){return x.extend(e,{chart:{toolbar:{autoSelected:`selection`,show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}stacked100(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;let t=e.dataLabels.formatter;return e.yaxis.forEach((t,n)=>{e.yaxis[n].min=0,e.yaxis[n].max=100}),e.chart.type===`bar`&&(e.dataLabels.formatter=t||function(e){return typeof e==`number`&&e?e.toFixed(0)+`%`:e}),e}stackedBars(){let e=this.bar();return c(s({},e),{plotOptions:c(s({},e.plotOptions),{bar:c(s({},e.plotOptions.bar),{borderRadiusApplication:`end`})})})}
vendor: 4,738 bytes, line 1
1convertCatToNumeric(e){return e.xaxis.convertedCatToNumeric=!0,e}convertCatToNumericXaxis(e,t){e.xaxis.type=`numeric`,e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return x.isNumber(e)?Math.floor(e):e};let n=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return t&&t.length&&(r=t.map(e=>Array.isArray(e)?e:String(e))),r&&r.length&&(e.xaxis.labels.formatter=function(e){return x.isNumber(e)?n(r[Math.floor(e)-1]):n(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||`dataPoints`,e}bubble(){return{dataLabels:{style:{colors:[`#fff`]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:`solid`,gradient:{shade:`light`,inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){return{chart:{stacked:!1,zoom:{enabled:!1}},fill:{opacity:1},dataLabels:{style:{colors:[`#fff`]}},stroke:{colors:[`#fff`]},tooltip:{followCursor:!1,marker:{show:!1},x:{show:!1}},legend:{position:`top`,markers:{shape:`square`}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:[`#fff`]}},stroke:{show:!0,width:2,colors:[`#fff`]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1},axisTicks:{show:!1}}}}unit(){return{chart:{toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{show:!1,width:0},fill:{opacity:1},tooltip:{followCursor:!0,x:{show:!1}},legend:{show:!0,position:`bottom`},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}sunburst(){return{chart:{toolbar:{show:!1}},dataLabels:{style:{colors:[`#fff`]},dropShadow:{enabled:!0}},stroke:{colors:[`#fff`]},fill:{opacity:1},legend:{position:`right`},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:e=>typeof e==`number`?e.toFixed(1)+`%`:e,style:{colors:[`#fff`]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:[`#fff`]},fill:{opacity:1,gradient:{shade:`light`,stops:[0,100]}},tooltip:{theme:`dark`,fillSeriesColor:!0},legend:{position:`right`},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}donut(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>typeof e==`number`?e.toFixed(1)+`%`:e,style:{colors:[`#fff`]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:[`#fff`]},fill:{opacity:1,gradient:{shade:`light`,shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:`dark`,fillSeriesColor:!0},legend:{position:`right`},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}polarArea(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>typeof e==`number`?e.toFixed(1)+`%`:e,enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:`dark`,fillSeriesColor:!0},legend:{position:`right`},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}radar(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:`11px`}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:e=>e,style:{colors:[`#a8a8a8`],fontSize:`11px`}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},stroke:{lineCap:`butt`},fill:{gradient:{shade:`dark`,shadeIntensity:.4,inverseColors:!1,type:`diagonal2`,opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:`right`},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(e,t,n,r,i){let a=e.candleData.seriesCandleO[t][n],o=e.candleData.seriesCandleH[t][n],s=e.candleData.seriesCandleM[t][n],c=e.candleData.seriesCandleL[t][n],l=e.candleData.seriesCandleC[t][n],u=e.config.series[t];return u.type&&u.type!==i?`<div class="apexcharts-custom-tooltip">\n          ${u.name?u.name:`series-`+(t+1)}: <strong>${e.seriesData.series[t][n]}</strong>\n        </div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div>${r[0]}: <span class="value">`+a+`</span></div><div>${r[1]}: <span class="value">`+o+`</span></div>`+(s?`<div>${r[2]}: <span class="value">`+s+`</span></div>`:``)+`<div>${r[3]}: <span class="value">`+c+`</span></div><div>${r[4]}: <span class="value">`+l+`</span></div></div>`}
1_getViolinTooltip(e,t,n){var r,i,a;let o=(r=e.violinData.seriesViolinMin[t])==null?void 0:r[n],s=(i=e.violinData.seriesViolinMax[t])==null?void 0:i[n],c=((a=e.violinData.seriesViolinPoints[t])==null?void 0:a[n])||[],l=e.config.series[t].name||`series-`+(t+1);return`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div class="apexcharts-tooltip-violin-name">${l}</div><div>Min: <span class="value">${o}</span></div><div>Max: <span class="value">${s}</span></div><div>Observations: <span class="value">${c.length}</span></div></div>`}}class L{constructor(e){this.opts=e}init({responsiveOverride:e}){var t,n,r,i,a,o,s,c;let l=this.opts,u=new T,f=new I(l);l=this.normalizeAliasedChartType(l),this.chartType=l.chart.type,l=this.extendYAxis(l),l=this.extendAnnotations(l);let p=u.init(),m={};if(l&&typeof l==`object`){let u=I.forType(l);(t=l.chart.brush)!=null&&t.enabled&&(u=f.brush(u)),(r=(n=l.plotOptions)==null?void 0:n.line)!=null&&r.isSlopeChart&&(u=f.slope()),l.chart.stacked&&l.chart.stackType===`100%`&&(l=f.stacked100(l)),(a=(i=l.plotOptions)==null?void 0:i.bar)!=null&&a.isDumbbell&&(l=f.dumbbell(l)),this.checkForDarkTheme(d.getApex()),this.checkForDarkTheme(l),l.xaxis=l.xaxis||d.getApex().xaxis||{},e||(l.xaxis.convertedCatToNumeric=!1),l=this.checkForCatToNumericXAxis(this.chartType,u,l),((o=l.chart.sparkline)!=null&&o.enabled||(c=(s=d.getApex().chart)==null?void 0:s.sparkline)!=null&&c.enabled)&&(u=f.sparkline(u)),m=x.extend(p,u)}let h=x.extend(m,d.getApex());return p=x.extend(h,l),p=this.handleUserInputErrors(p),p}normalizeAliasedChartType(e){if(!e||!e.chart)return e;let t=e.chart.type;return t!==`funnel`&&t!==`pyramid`&&t!==`gauge`&&t!==`waffle`&&t!==`histogram`||(e.chart.requestedType=t,t===`waffle`?(e.plotOptions=e.plotOptions||{},e.plotOptions.unit=e.plotOptions.unit||{},e.plotOptions.unit.layout==null&&(e.plotOptions.unit.layout=`grid`),e.plotOptions.unit.shape==null&&(e.plotOptions.unit.shape=`square`),e.chart.type=`unit`):t===`funnel`||t===`pyramid`?(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel=!0,e.plotOptions.bar.horizontal=!0,e.chart.type=`bar`,e.plotOptions.bar.isPyramid=t===`pyramid`):t===`gauge`?e.chart.type=`radialBar`:t===`histogram`&&(e.xaxis=e.xaxis||{},e.xaxis.type==null&&(e.xaxis.type=`numeric`),e.chart.type=`bar`)),e}checkForCatToNumericXAxis(e,t,n){var r,i,a,o,s;let c=new I(n),l=(e===`bar`||e===`boxPlot`||e===`violin`)&&((i=(r=n.plotOptions)==null?void 0:r.bar)==null?void 0:i.horizontal),u=e===`pie`||e===`polarArea`||e===`donut`||e===`radar`||e===`radialBar`||e===`heatmap`||e===`unit`||e===`sunburst`,d=n.xaxis.type!==`datetime`&&n.xaxis.type!==`numeric`,f=(e===`scatter`||e===`bubble`)&&((s=(o=(a=n.plotOptions)==null?void 0:a.scatter)==null?void 0:o.jitter)==null?void 0:s.enabled),p=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return l||u||f||!d||p===`between`||(n=c.convertCatToNumeric(n)),n}extendYAxis(e,t){let n=new T;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={});let r=d.getApex();e.yaxis.constructor!==Array&&r.yaxis&&r.yaxis.constructor!==Array&&(e.yaxis=x.extend(e.yaxis,r.yaxis)),e.yaxis=e.yaxis.constructor===Array?x.extendArray(e.yaxis,n.yAxis):[x.extend(n.yAxis,e.yaxis)];let i=!1;e.yaxis.forEach(e=>{e.logarithmic&&(i=!0)});let a=e.series;return t&&!a&&(a=t.config.series),i&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map((t,r)=>{if(t.name||(a[r].name=`series-${r+1}`),e.yaxis[r])return e.yaxis[r].seriesName=a[r].name,e.yaxis[r];{let t=x.extend(n.yAxis,e.yaxis[0]);return t.show=!1,t}})),i&&a.length>1&&(a.length,e.yaxis.length),e}extendAnnotations(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}extendYAxisAnnotations(e){let t=new T;return e.annotations.yaxis=x.extendArray(e.annotations.yaxis===void 0?[]:e.annotations.yaxis,t.yAxisAnnotation),e}extendXAxisAnnotations(e){let t=new T;return e.annotations.xaxis=x.extendArray(e.annotations.xaxis===void 0?[]:e.annotations.xaxis,t.xAxisAnnotation),e}extendPointAnnotations(e){let t=new T;return e.annotations.points=x.extendArray(e.annotations.points===void 0?[]:e.annotations.points,t.pointAnnotation),e}checkForDarkTheme(e){e.theme&&e.theme.mode===`dark`&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!==`light`&&(e.tooltip.theme=`dark`),e.chart.foreColor||(e.chart.foreColor=`#f6f7f8`),e.theme.palette||(e.theme.palette=`palette4`))}handleUserInputErrors(e){let t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw Error(`tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.`);if(t.chart.type===`bar`&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw Error(`Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false`);t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!==`bar`&&t.chart.type!==`rangeBar`||t.tooltip.shared&&t.xaxis.crosshairs.width===`barWidth`&&t.series.length>1&&(t.xaxis.crosshairs.width=`tickWidth`),t.chart.type!==`candlestick`&&t.chart.type!==`boxPlot`||t.yaxis[0].reversed&&(t.yaxis[0].reversed=!1),t}}let R=1.618,z=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],ee=[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24];class B{initGlobalVars(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.dataWasParsed=!1,e.originalSeries=null,e.maxValsInArrayIndex=0,e.yValueDecimal=0,e.allSeriesHasEqualX=!0,e.hasNullValues=!1,e.invali
vendor: 5,079 bytes, line 1
1dLogScale=!1,e.seriesRangeName={},e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0,e.disableZoomIn=!1,e.disableZoomOut=!1,e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.rotateXLabels=!1,e.overlappingXLabels=!1,e.radialSize=0,e.barHeight=0,e.barWidth=0,e.animationEnded=!1,e.isDestroyed=!1,e.bulkRevealScheduled=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.barCanvasCoords=null,e.activeRenderer=null,e.dataLabelsRects=[],e.lastDrawnDataLabelsIndexes=[],e.textRectsCache=new Map,e.domCache=new Map,e.dimensionCache={},e.cachedSelectors={},e.seriesNS||this._attachNamespaces(e)}_attachNamespaces(e){let t=(t,n,r=n)=>{Object.defineProperty(t,r,{get:()=>e[n],set(t){e[n]=t},enumerable:!0,configurable:!0})},n={};t(n,`series`,`data`);for(let e of`seriesNames.seriesX.seriesZ.seriesXvalues.seriesYvalues.seriesGoals.seriesLog.seriesColors.seriesPercent.seriesTotals.stackedSeriesTotals.seriesCandleO.seriesCandleH.seriesCandleM.seriesCandleL.seriesCandleC.seriesRangeStart.seriesRangeEnd.seriesRange.seriesYAxisMap.seriesYAxisReverseMap.seriesGroups.barGroups.lineGroups.areaGroups.originalSeries.collapsedSeries.collapsedSeriesIndices.ancillaryCollapsedSeries.ancillaryCollapsedSeriesIndices.collapsingSeriesIndices.allSeriesCollapsed.risingSeries.previousPaths.ignoreYAxisIndexes.labels.categoryLabels.timescaleLabels.groups`.split(`.`))t(n,e);Object.defineProperty(e,"seriesNS",{value:n,writable:!1,enumerable:!1,configurable:!0});let r={};for(let e of`minX.maxX.initialMinX.initialMaxX.minY.maxY.minYArr.maxYArr.minZ.maxZ.minDate.maxDate.minXDiff.xRange.yRange.zRange.xAxisScale.yAxisScale.xAxisTicksPositions.xTickAmount.multiAxisTickAmount.dataPoints.maxValsInArrayIndex.isXNumeric.isMultipleYAxis.isMultiLineX.isDataXYZ.dataFormatXNumeric.allSeriesHasEqualX.hasNullValues.dataWasParsed.hasXaxisGroups.hasSeriesGroups.skipFirstTimelinelabel.skipLastTimelinelabel.yValueDecimal.invalidLogScale.noLabelsProvided`.split(`.`))t(r,e);Object.defineProperty(e,"axes",{value:r,writable:!1,enumerable:!1,configurable:!0});let i={};for(let e of[`svgWidth`,`svgHeight`,`gridWidth`,`gridHeight`,`translateX`,`translateY`,`translateXAxisX`,`translateXAxisY`,`translateYAxisX`,`xAxisLabelsHeight`,`xAxisGroupLabelsHeight`,`xAxisLabelsWidth`,`yAxisLabelsWidth`,`yAxisWidths`,`yLabelsCoords`,`yTitleCoords`,`padHorizontal`,`barPadForNumericAxis`,`rotateXLabels`,`scaleX`,`scaleY`,`radialSize`,`defaultLabels`,`overlappingXLabels`])t(i,e);Object.defineProperty(e,"layout",{value:i,writable:!1,enumerable:!1,configurable:!0});let a={};for(let e of[`domCache`,`dimensionCache`,`cachedSelectors`,`textRectsCache`,`pointsArray`,`dataLabelsRects`,`lastDrawnDataLabelsIndexes`,`delayedElements`,`resizeTimer`,`selectionResizeTimer`,`resizeObserver`])t(a,e);Object.defineProperty(e,"cache",{value:a,writable:!1,enumerable:!1,configurable:!0})}globalVars(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},radialNeedleRAF:null,unitGatherRAF:null,unitExitRAF:null,stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0,batched:!1},LINE_HEIGHT_RATIO:R,axisCharts:!0,isSlopeChart:e.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],tokenSurface:void 0,lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],collapsingSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],prevPolarAngles:null,prevStreamFrame:null,streamScrolled:!1,prevChromeFrame:null,svgWidth:0,svgHeight:0,lastResizeSignature:null,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:z,niceScaleDefaultTicks:ee,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}defineLazyInitialSeries(e){let t=[],n=null;Object.defineProperty(e,"initialSeries",{configurable:!0,enumerable:!0,get:()=>(n===null&&(n=x.clone(t)),n),set(r){t=Array.isArray(r)?r.map(e=>
1e&&typeof e==`object`&&!Array.isArray(e)?s({},e):e):r,n=null,e._initialSeriesPeek=t}}),e._initialSeriesPeek=t}init(e){let t=this.globalVars(e);return this.initGlobalVars(t),this.defineLazyInitialSeries(t),t.initialConfig=x.extend({},e),t.initialSeries=e.series,t.lastXAxis=x.clone(t.initialConfig.xaxis),t.lastYAxis=x.clone(t.initialConfig.yaxis),t}}class te{constructor(e){this.opts=e}init(){let e=new L(this.opts).init({responsiveOverride:!1}),t=new B().init(e),n={config:e,globals:t,dom:{},interact:{zoomEnabled:e.chart.toolbar.autoSelected===`zoom`&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected===`pan`&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected===`selection`&&e.chart.toolbar.tools.selection,measureEnabled:e.chart.toolbar.autoSelected===`measure`&&!!e.chart.toolbar.tools.measure&&!(!e.chart.measure||!e.chart.measure.enabled),zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:!!d.isBrowser()&&(`ontouchstart`in window||navigator.maxTouchPoints>0)},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[],seriesBoxPoints:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},violinData:{seriesViolinDensity:[],seriesViolinPoints:[],seriesViolinMin:[],seriesViolinMax:[]},histogramData:{edges:[],binWidth:0,counts:[],rule:``,capped:!1},labelData:{labels:[],categoryLabels:[],timescaleLabels:[],hasXaxisGroups:!1,groups:[],seriesGroups:[]},axisFlags:{isXNumeric:!1,dataFormatXNumeric:!1,isDataXYZ:!1,isRangeData:!1,isRangeBar:!1,isMultiLineX:!1,noLabelsProvided:!1,dataWasParsed:!1},seriesData:{series:[],seriesNames:[],seriesX:[],seriesZ:[],seriesColors:[],seriesGoals:[],stackedSeriesTotals:[],stackedSeriesTotalsByGroups:[],unitData:[]},layout:{gridHeight:0,gridWidth:0,translateX:0,translateY:0,translateXAxisX:0,translateXAxisY:0,rotateXLabels:!1,xAxisHeight:0,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yLabelsCoords:[],yTitleCoords:[],gridPad:{top:0,right:0,bottom:0,left:0}}};Object.defineProperty(t,"dom",{get:()=>n.dom,set(e){n.dom=e},enumerable:!1,configurable:!0});for(let e of[`xLabelFormatter`,`yLabelFormatters`,`xaxisTooltipFormatter`,`ttKeyFormatter`,`ttVal`,`ttZFormatter`,`legendFormatter`])Object.defineProperty(t,e,{get:()=>n.formatters[e],set(t){n.formatters[e]=t},enumerable:!1,configurable:!0});for(let e of[`zoomEnabled`,`panEnabled`,`selectionEnabled`,`zoomed`,`selection`,`visibleXRange`,`selectedDataPoints`,`mousedown`,`clientX`,`clientY`,`lastClientPosition`,`capturedSeriesIndex`,`capturedDataPointIndex`,`disableZoomIn`,`disableZoomOut`,`isTouchDevice`])Object.defineProperty(t,e,{get:()=>n.interact[e],set(t){n.interact[e]=t},enumerable:!1,configurable:!0});for(let e of[`gridHeight`,`gridWidth`,`translateX`,`translateY`,`translateXAxisX`,`translateXAxisY`,`rotateXLabels`,`xAxisHeight`,`xAxisLabelsHeight`,`xAxisGroupLabelsHeight`,`xAxisLabelsWidth`,`yLabelsCoords`,`yTitleCoords`,`gridPad`])Object.defineProperty(t,e,{get:()=>n.layout[e],set(t){n.layout[e]=t},enumerable:!1,configurable:!0});for(let e of[`series`,`seriesNames`,`seriesX`,`seriesZ`,`seriesColors`,`seriesGoals`,`stackedSeriesTotals`,`stackedSeriesTotalsByGroups`])Object.defineProperty(t,e,{get:()=>n.seriesData[e],set(t){n.seriesData[e]=t},enumerable:!1,configurable:!0});for(let e of[`isXNumeric`,`dataFormatXNumeric`,`isDataXYZ`,`isRangeData`,`isRangeBar`,`isMultiLineX`,`noLabelsProvided`,`dataWasParsed`])Object.defineProperty(t,e,{get:()=>n.axisFlags[e],set(t){n.axisFlags[e]=t},enumerable:!1,configurable:!0});for(let e of[`labels`,`categoryLabels`,`timescaleLabels`,`hasXaxisGroups`,`groups`,`seriesGroups`])Object.defineProperty(t,e,{get:()=>n.labelData[e],set(t){n.labelData[e]=t}
1,enumerable:!1,configurable:!0});for(let e of[`seriesRangeStart`,`seriesRangeEnd`,`seriesRange`])Object.defineProperty(t,e,{get:()=>n.rangeData[e],set(t){n.rangeData[e]=t},enumerable:!1,configurable:!0});for(let e of[`seriesCandleO`,`seriesCandleH`,`seriesCandleM`,`seriesCandleL`,`seriesCandleC`])Object.defineProperty(t,e,{get:()=>n.candleData[e],set(t){n.candleData[e]=t},enumerable:!1,configurable:!0});for(let e of[`seriesViolinDensity`,`seriesViolinPoints`,`seriesViolinMin`,`seriesViolinMax`])Object.defineProperty(t,e,{get:()=>n.violinData[e],set(t){n.violinData[e]=t},enumerable:!1,configurable:!0});return n}}class V{constructor(e){this.w=e}static checkComboSeries(e,t){let n=!1,r=0,i=0;return t===void 0&&(t=`line`),e.length&&e[0].type!==void 0&&e.forEach(e=>{e.type!==`bar`&&e.type!==`column`&&e.type!==`candlestick`&&e.type!==`boxPlot`&&e.type!==`violin`||r++,e.type!==void 0&&e.type!==t&&i++}),i>0&&(n=!0),{comboBarCount:r,comboCharts:n}}getStackedSeriesTotals(e=[]){let t=this.w,n=[];if(t.seriesData.series.length===0)return n;for(let r=0;r<t.seriesData.series[t.globals.maxValsInArrayIndex].length;r++){let i=0;for(let n=0;n<t.seriesData.series.length;n++)t.seriesData.series[n][r]!==void 0&&e.indexOf(n)===-1&&(i+=t.seriesData.series[n][r]);n.push(i)}return n}getSeriesTotalByIndex(e=null){if(e===null)return this.w.config.series.reduce((e,t)=>e+t,0);{let t=this.w.seriesData.series[e];return Array.isArray(t)?t.reduce((e,t)=>e+t,0):t==null?0:t}}getStackedSeriesTotalsByGroups(){let e=this.w,t=[];return e.labelData.seriesGroups.forEach(n=>{let r=[];e.config.series.forEach((t,i)=>{n.indexOf(e.seriesData.seriesNames[i])>-1&&r.push(i)});let i=e.seriesData.series.map((e,t)=>r.indexOf(t)===-1?t:-1).filter(e=>e!==-1);t.push(this.getStackedSeriesTotals(i))}),t}setSeriesYAxisMappings(){let e=this.w.globals,t=this.w.config,n=[],r=[],i=[],a=this.w.seriesData.series.length>t.yaxis.length||t.yaxis.some(e=>Array.isArray(e.seriesName));t.series.forEach((e,t)=>{i.push(t),r.push(null)}),t.yaxis.forEach((e,t)=>{n[t]=[]});let o=[];t.yaxis.forEach((e,r)=>{let s=!1;if(e.seriesName){let o=[];Array.isArray(e.seriesName)?o=e.seriesName:o.push(e.seriesName),o.forEach(e=>{t.series.forEach((t,o)=>{if(t.name===e){let e=o;r===o||a?(!a||i.indexOf(o)>-1)&&n[r].push([r,o]):(n[o].push([o,r]),e=r),s=!0,e=i.indexOf(e),e!==-1&&i.splice(e,1)}})})}s||o.push(r)}),n=n.map(e=>{let t=[];return e.forEach(e=>{r[e[1]]=e[0],t.push(e[1])}),t});let s=t.yaxis.length-1;for(let e=0;e<o.length&&(s=o[e],n[s]=[],i);e++){let e=i[0];i.shift(),n[s].push(e),r[e]=s}i.forEach(e=>{n[s].push(e),r[e]=s}),e.seriesYAxisMap=n.map(e=>e),e.seriesYAxisReverseMap=r.map(e=>e),e.seriesYAxisMap.forEach((e,n)=>{e.forEach(e=>{t.series[e]&&t.series[e].group===void 0&&(t.series[e].group=`apexcharts-axis-${n.toString()}`)})})}isSeriesNull(e=null){let t=[],n=this.w.config.series;return t=e===null?n.filter(e=>e!==null):n[e]&&Array.isArray(n[e].data)?n[e].data.filter(e=>e!==null):n[e]!==null&&n[e]!==void 0?[n[e]]:[],t.length===0}seriesHaveSameValues(e){let t=this.w.seriesData.series[e];return!Array.isArray(t)||t.every((e,t,n)=>e===n[0])}getCategoryLabels(e){let t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map(e=>t.config.xaxis.labels.formatter(e-t.globals.minX+1))),n}getLargestSeries(){let e=this.w;e.globals.maxValsInArrayIndex=e.seriesData.series.map(e=>e.length).indexOf(Math.max.apply(Math,e.seriesData.series.map(e=>e.length)))}getLargestMarkerSize(){let e=this.w,t=0;return e.globals.markers.size.forEach(e=>{t=Math.max(t,e)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(e=>{t=Math.max(t,e.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}getSeriesTotals(){let e=this.w;e.globals.seriesTotals=e.seriesData.series.map(e=>{let t=0;if(Array.isArray(e))for(let n=0;n<e.length;n++)t+=e[n];else t+=e;return t})}getSeriesTotalsXRange(e,t){let n=this.w;return n.seriesData.series.map((r,i)=>{let a=0;for(let o=0;o<r.length;o++)n.seriesData.seriesX[i][o]>e&&n.seriesData.seriesX[i][o]<t&&(a+=r[o]);return a})}getPercentSeries(){let e=this.w;e.globals.seriesPercent=e.seriesData.series.map(t=>{let n=[];if(Array.isArray(t))for(let r=0;r<t.length;r++){let i=e.seriesData.stackedSeriesTotals[r],a=0;i&&(a=100*t[r]/i),n.push(a)}else{let r=100*t/e.globals.seriesTotals.reduce((e,t)=>
1e+t,0);n.push(r)}return n})}getCalculatedRatios(){let e=this.w,t=e.globals,n=[],r=0,i=0,a=0,o=0,s=[],c=.1,l=0;if(t.yRange=[],t.isMultipleYAxis)for(let e=0;e<t.minYArr.length;e++)t.yRange.push(Math.abs(t.minYArr[e]-t.maxYArr[e])),s.push(0);else t.yRange.push(Math.abs(t.minY-t.maxY));t.xRange=Math.abs(t.maxX-t.minX),t.zRange=Math.abs(t.maxZ-t.minZ);for(let e=0;e<t.yRange.length;e++)n.push(t.yRange[e]/this.w.layout.gridHeight);if(i=t.xRange/this.w.layout.gridWidth,r=t.yRange/this.w.layout.gridWidth,a=t.xRange/this.w.layout.gridHeight,o=t.zRange/this.w.layout.gridHeight*16,o||(o=1),t.minY!==Number.MIN_VALUE&&Math.abs(t.minY)!==0&&(t.hasNegs=!0),e.globals.seriesYAxisReverseMap.length>0){let a=(t,r)=>{let i=e.config.yaxis[e.globals.seriesYAxisReverseMap[r]];return!i||i.logarithmic?0:-(t<0?-1:1)*(t=Math.abs(t))/n[r]};if(t.isMultipleYAxis){s=[];for(let e=0;e<n.length;e++)s.push(a(t.minYArr[e],e))}else s=[],s.push(a(t.minY,0)),t.minY!==Number.MIN_VALUE&&Math.abs(t.minY)!==0&&(c=-t.minY/r,l=t.minX/i)}else s=[],s.push(0),c=0,l=0;return{yRatio:n,invertedYRatio:r,zRatio:o,xRatio:i,invertedXRatio:a,baseLineInvertedY:c,baseLineY:s,baseLineX:l}}getLogSeries(e){let t=this.w;return t.globals.seriesLog=e.map((e,n)=>{let r=t.globals.seriesYAxisReverseMap[n];return t.config.yaxis[r]&&t.config.yaxis[r].logarithmic?e.map(e=>e===null?null:this.getLogVal(t.config.yaxis[r].logBase,e,n)):e}),t.globals.invalidLogScale?e:t.globals.seriesLog}getLogValAtSeriesIndex(e,t){if(e===null)return null;let n=this.w,r=n.globals.seriesYAxisReverseMap[t];return n.config.yaxis[r]&&n.config.yaxis[r].logarithmic?this.getLogVal(n.config.yaxis[r].logBase,e,t):e}getBaseLog(e,t){return Math.log(t)/Math.log(e)}getLogVal(e,t,n){if(t<=0)return 0;let r=this.w,i=r.globals.minYArr[n]===0?-1:this.getBaseLog(e,r.globals.minYArr[n]),a=(r.globals.maxYArr[n]===0?0:this.getBaseLog(e,r.globals.maxYArr[n]))-i;return(this.getBaseLog(e,t)-i)/a}getLogYRatios(e){let t=this.w,n=this.w.globals,r=n;return r.yLogRatio=e.slice(),r.logYRange=n.yRange.map((e,i)=>{let a=t.globals.seriesYAxisReverseMap[i];return t.config.yaxis[a]&&this.w.config.yaxis[a].logarithmic?(r.yLogRatio[i]=1/this.w.layout.gridHeight,1):n.yRange[i]}),r.invalidLogScale?e.slice():r.yLogRatio}static extendArrayProps(e,t,n){var r,i;return t!=null&&t.yaxis&&(t=e.extendYAxis(t,n)),t!=null&&t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(r=t==null?void 0:t.annotations)!=null&&r.xaxis&&(t=e.extendXAxisAnnotations(t)),(i=t==null?void 0:t.annotations)!=null&&i.points&&(t=e.extendPointAnnotations(t))),t}drawSeriesByGroup(e,t,n,r){let i=this.w,a=[];return e.series.length>0&&t.forEach(t=>{let o=[],s=[];e.i.forEach((n,r)=>{i.config.series[n].group===t&&(o.push(e.series[r]),s.push(n))}),o.length>0&&a.push(r.draw(o,n,s))}),a}}let H=`http://www.w3.org/2000/svg`;class U{constructor(e,t){typeof e==`object`?(this.x=e.x,this.y=e.y):(this.x=e||0,this.y=t||0)}transform(e){return e.apply(this)}clone(){return new U(this.x,this.y)}}class ne{constructor(e,t,n,r,i,a){this.a=e==null?1:e,this.b=t==null?0:t,this.c=n==null?0:n,this.d=r==null?1:r,this.e=i==null?0:i,this.f=a==null?0:a}rotate(e){let t=e*Math.PI/180,n=Math.cos(t),r=Math.sin(t);return this.multiply(new ne(n,r,-r,n,0,0))}scale(e,t){return this.multiply(new ne(e,0,0,t==null?e:t,0,0))}multiply(e){return new ne(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}apply(e){return new U(this.a*e.x+this.c*e.y+this.e,this.b*e.x+this.d*e.y+this.f)}}class re{constructor(e,t,n,r){this.x=e,this.y=t,this.w=n,this.h=r,this.width=n,this.height=r,this.x2=e+n,this.y2=t+r}}function ie(e){if(!e||typeof e!=`string`)return[[`M`,0,0]];let t=[],n=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,r=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi,i,a=[],o=[];for(;(i=n.exec(e))!==null;)a.push(i[1]),o.push(i.index);for(let n=0;n<a.length;n++){let i=o[n]+a[n].length,s=n+1<o.length?o[n+1]:e.length,c=e.substring(i,s),l=[],u;for(r.lastIndex=0;(u=r.exec(c))!==null;)l.push(parseFloat(u[0]));let d=a[n].toUpperCase();if(d===`Z`)t.push([`Z`]);else if(d===`M`||d===`L`||d===`T`)for(let e=0;e<l.length;e+=2)t.push([d,l[e],l[e+1]]);else if(d===`H`)for(let e=0;e<l.length;e++)t.push([d,l[e]]);else if(d===`V`)for(let e=0;e<l.length;e++)t.push([d,l[e]]);else if(d===`C`)for(let e=0;e<l.length;e+=6)t.push([d,l[e],l[e+1],l[e+2],l[e+3],l[e+4],l[e+5]]);else if(d===`S`||d===`Q`)for(let e=0;e<l.length;e+=4)t.push([d,l[e],l[e+1],l[e+2],l[e+3]]);else if(d===`A`)for(let e=0;e<l.length;e+=7)t.push([d,l[e],l[e+1],l[e+2],l[e+3],l[e+4],l[e+5],l[e+6]])}return t.length===0&&t.push([`M`,0,0]),t}function ae(e){let t=1/0,n=1/0,r=-1/0,i=-1/0;
1return e.forEach(e=>{for(let a=1;a<e.length;a+=2)if(a+1<=e.length){let o=e[a],s=e[a+1];typeof o==`number`&&typeof s==`number`&&(o<t&&(t=o),o>r&&(r=o),s<n&&(n=s),s>i&&(i=s))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:n,width:r-t,height:i-n}}function oe(e){return e.map(e=>e.join(` `)).join(` `)}function se(e){switch(e[0]){case`z`:case`Z`:e[0]=`L`,e[1]=this.start[0],e[2]=this.start[1];break;case`H`:e[0]=`L`,e[2]=this.pos[1];break;case`V`:e[0]=`L`,e[2]=e[1],e[1]=this.pos[0];break;case`T`:e[0]=`Q`,e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case`S`:e[0]=`C`,e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function ce(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],`SCQT`.indexOf(e[0])!=-1&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function le(e){var t,n=[e];switch(e[0]){case`M`:return this.pos=this.start=[e[1],e[2]],n;case`L`:e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case`Q`:e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case`A`:n=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O=Math.abs(t[1]),k=Math.abs(t[2]),A=t[3]%360,j=t[4],M=t[5],N=t[6],P=t[7],F=new U(e[0],e[1]),I=new U(N,P),L=[];if(O===0||k===0||F.x===I.x&&F.y===I.y)return[[`C`,F.x,F.y,I.x,I.y,I.x,I.y]];for(n=new U((F.x-I.x)/2,(F.y-I.y)/2).transform(new ne().rotate(A)),(r=n.x*n.x/(O*O)+n.y*n.y/(k*k))>1&&(O*=r=Math.sqrt(r),k*=r),i=new ne().rotate(A).scale(1/O,1/k).rotate(-A),F=F.transform(i),I=I.transform(i),a=[I.x-F.x,I.y-F.y],s=a[0]*a[0]+a[1]*a[1],o=Math.sqrt(s),a[0]/=o,a[1]/=o,c=s<4?Math.sqrt(1-s/4):0,j===M&&(c*=-1),l=new U((I.x+F.x)/2+c*-a[1],(I.y+F.y)/2+c*a[0]),u=new U(F.x-l.x,F.y-l.y),d=new U(I.x-l.x,I.y-l.y),f=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(f*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),M&&f>p&&(p+=2*Math.PI),!M&&f<p&&(p-=2*Math.PI),h=Math.ceil(2*Math.abs(f-p)/Math.PI),_=[],v=f,m=(p-f)/h,g=4*Math.tan(m/4)/3,S=0;S<=h;S++)b=Math.cos(v),y=Math.sin(v),x=new U(l.x+b,l.y+y),_[S]=[new U(x.x+g*y,x.y-g*b),x,new U(x.x-g*y,x.y+g*b)],v+=m;for(_[0][0]=_[0][1].clone(),_[_.length-1][2]=_[_.length-1][1].clone(),i=new ne().rotate(A).scale(O,k).rotate(-A),S=0,C=_.length;S<C;S++)_[S][0]=_[S][0].transform(i),_[S][1]=_[S][1].transform(i),_[S][2]=_[S][2].transform(i);for(S=1,C=_.length;S<C;S++)w=(x=_[S-1][2]).x,T=x.y,E=(x=_[S][0]).x,D=x.y,N=(x=_[S][1]).x,P=x.y,L.push([`C`,w,T,E,D,N,P]);return L}((t=this.pos)==null?[]:t,e),e=n[0]}return e[0]=`C`,this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],n}function ue(e,t){if(!1===t)return!1;for(var n=t,r=e.length;n<r;++n)if(e[n][0]==`M`)return n;return!1}function de(e,t,n,r,i,a){for(var o=e.slice(t,n||void 0),s=r.slice(i,a||void 0),c=0,l={pos:[0,0],start:[0,0]},u={pos:[0,0],start:[0,0]};o[c]=se.call(l,o[c]),s[c]=se.call(u,s[c]),o[c][0]!=s[c][0]||o[c][0]==`M`||o[c][0]==`A`&&(o[c][4]!=s[c][4]||o[c][5]!=s[c][5])?(Array.prototype.splice.apply(o,[c,1].concat(le.call(l,o[c]))),Array.prototype.splice.apply(s,[c,1].concat(le.call(u,s[c])))):(o[c]=ce.call(l,o[c]),s[c]=ce.call(u,s[c])),++c!=o.length||c!=s.length;)c==o.length&&o.push([`C`,l.pos[0],l.pos[1],l.pos[0],l.pos[1],l.pos[0],l.pos[1]]),c==s.length&&s.push([`C`,u.pos[0],u.pos[1],u.pos[0],u.pos[1],u.pos[0],u.pos[1]]);return{start:o,dest:s}}function fe(e,t){var n=function(e,t){for(var n,r=ie(e),i=ie(t),a=0,o=0,s=!1,c=!1;!1!==a||!1!==o;){if(s=ue(r,!1!==a&&a+1),c=ue(i,!1!==o&&o+1),!1===a){let e=ae(n.start);a=e.height==0||e.width==0?r.push(r[0])-1:r.push([`M`,e.x+e.width/2,e.y+e.height/2])-1}if(!1===o){let e=ae(n.dest);o=e.height==0||e.width==0?i.push(i[0])-1:i.push([`M`,e.x+e.width/2,e.y+e.height/2])-1}n=de(r,a,s,i,o,c),r=r.slice(0,a).concat(n.start,!1===s?[]:r.slice(s)),i=i.slice(0,o).concat(n.dest,!1===c?[]:i.slice(c)),a=!1!==s&&a+n.start.length,o=!1!==c&&o+n.dest.length}return{start:r,dest:i}}(e,t),r=n.start,i=n.dest;return function(e){return oe(r.map(function(t,n){return i[n].map(function(r,a){return a===0?r:t[a]+(i[n][a]-t[a])*e})}))}}let pe=null,me=null;function he(e,t){let n=Array(t);if(!d.isBrowser()){let r=ae(ie(e)),i=r.x+r.width/2,a=r.y+r.height/2;
1for(let e=0;e<t;e++)n[e]={x:i,y:a};return n}pe||(pe=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),pe.setAttribute(`width`,`0`),pe.setAttribute(`height`,`0`),pe.setAttribute(`style`,`position:absolute;width:0;height:0;visibility:hidden;pointer-events:none;`),me=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),pe.appendChild(me),document.body.appendChild(pe)),me.setAttribute(`d`,e||`M0 0`);let r=0;try{r=me.getTotalLength()}catch(e){r=0}if(!r||!isFinite(r)){let r=ae(ie(e)),i=r.x+r.width/2,a=r.y+r.height/2;for(let e=0;e<t;e++)n[e]={x:i,y:a};return n}for(let e=0;e<t;e++)try{let i=me.getPointAtLength(e/t*r);n[e]={x:i.x,y:i.y}}catch(t){n[e]={x:0,y:0}}return n}function ge(e){return-Math.cos(e*Math.PI)/2+.5}let _e=ge;function ve(e){if(!e||typeof e!=`string`)return null;if(e[0]===`#`){let t=e.slice(1);t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n,1]}let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?[+t[1],+t[2],+t[3],t[4]===void 0?1:+t[4]]:null}function ye(e,t,n){return`rgba(${Math.round(e[0]+(t[0]-e[0])*n)},${Math.round(e[1]+(t[1]-e[1])*n)},${Math.round(e[2]+(t[2]-e[2])*n)},${e[3]+(t[3]-e[3])*n})`}class be{constructor(e,t,n){this.el=e,this.duration=t==null?300:t,this.delay=n||0,this._attrTarget=null,this._plotTarget=null,this._plotSnap=null,this._plotAlgorithm=`commands`,this._afterCb=null,this._duringCb=null,this._easing=null,this._next=null,this._root=null,this._scheduled=!1}ease(e){return typeof e==`function`&&(this._easing=e),this._schedule(),this}attr(e){return this._attrTarget=e,this._schedule(),this}plot(e,t,n){return this._plotTarget=e,t&&(this._plotAlgorithm=t),this._plotSnap=n||null,this._schedule(),this}after(e){return this._afterCb=e,this._schedule(),this}during(e){return this._duringCb=e,this._schedule(),this}animate(e,t){let n=new be(this.el,e,t);return this._next=n,n._root=this._root||this,n}_schedule(){let e=this._root||this;e._scheduled||(e._scheduled=!0,queueMicrotask(()=>e._executeChain()))}_executeChain(){let e=[],t=this;for(;t;)e.push(t),t=t._next;let n=0;e.forEach(e=>{n+=e.delay,e._execute(n),n+=e.duration})}_execute(e){let t=this.el,n=this.duration;if(n<=1){let n=()=>{this._attrTarget&&t.attr(this._attrTarget),this._plotTarget&&t.plot(this._plotSnap||this._plotTarget),this._afterCb&&this._afterCb.call(t)};e>0?setTimeout(n,e):n();return}let r=()=>{let e={},r={},i={};if(this._attrTarget)for(let n of Object.keys(this._attrTarget)){let a=t.attr(n);e[n]=a;let o=ve(a),s=ve(String(this._attrTarget[n]));o&&s&&(r[n]=o,i[n]=s)}let a=null;if(this._plotTarget){let e=t.attr(`d`)||``;try{a=this._plotAlgorithm===`polygons`?function(e,t,n=96){let r=he(e,n),i=he(t,n),a=0,o=1/0;for(let e=0;e<n;e++){let t=0;for(let a=0;a<n;a++){let s=r[(a+e)%n],c=i[a],l=s.x-c.x,u=s.y-c.y;if(t+=l*l+u*u,t>=o)break}t<o&&(o=t,a=e)}let s=Array(n);for(let e=0;e<n;e++)s[e]=r[(e+a)%n];return function(e){let t=``;for(let r=0;r<n;r++){let n=s[r],a=i[r],o=n.x+(a.x-n.x)*e,c=n.y+(a.y-n.y)*e;t+=(r===0?`M`:`L`)+o.toFixed(3)+` `+c.toFixed(3)+` `}return t+`Z`}}(e,this._plotTarget):fe(e,this._plotTarget)}catch(e){a=null}}let o=performance.now(),s=this._easing||_e,c=l=>{let u=l-o,d=Math.min(u/n,1),f=s(d);if(this._attrTarget){if(d>=1)t.attr(this._attrTarget);else{let n={};for(let t of Object.keys(this._attrTarget))if(r[t]&&i[t])n[t]=ye(r[t],i[t],f);else{let r=parseFloat(e[t]),i=parseFloat(this._attrTarget[t]);isNaN(r)||isNaN(i)||(n[t]=r+(i-r)*f)}t.attr(n)}}a&&d<1&&t.attr(`d`,a(f)),this._duringCb&&this._duringCb(f),d<1?v.requestAnimationFrame(c):(this._plotTarget&&t.attr(`d`,this._plotSnap||this._plotTarget),this._afterCb&&this._afterCb.call(t))};v.requestAnimationFrame(c)};e>0?setTimeout(r,e):r()}}function xe(e){e.prototype.animate=function(e,t){return new be(this,e,t)}}function Se(e){return-Math.cos(e*Math.PI)/2+.5}function Ce(e,t,n,r){e=Math.min(Math.max(e,0),1),n=Math.min(Math.max(n,0),1);let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,c=3*(r-t)-s,l=1-s-c,u=e=>((o*e+a)*e+i)*e;return e=>e<=0?0:e>=1?1:(e=>((l*e+c)*e+s)*e)((e=>{let t=0,n=1,r=e;if(r<t)return t;if(r>n)return n;for(;t<n;){let i=u(r);if(Math.abs(i-e)<1e-4)return r;e>i?t=r:n=r,r=(t+n)/2}return r})(e))}let W=new Map;function we(e){return typeof e==`function`?Te(e):(t=e,Array.isArray(t)&&t.length===4&&t.every(e=>typeof e==`number`)?Ce(e[0],e[1],e[2],e[3]):typeof e==`string`&&W.has(e)?Te(W.get(e)):Se);var t}function Te(e){return t=>{let n=e(t);
1return typeof n==`number`&&isFinite(n)?n:t}}W.set(`linear`,e=>e),W.set(`easeInOutSine`,Se),W.set(`easeInSine`,e=>1-Math.cos(e*Math.PI/2)),W.set(`easeOutSine`,e=>Math.sin(e*Math.PI/2)),W.set(`easeInQuad`,e=>e*e),W.set(`easeOutQuad`,e=>1-(1-e)*(1-e)),W.set(`easeInOutQuad`,e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2),W.set(`easeInCubic`,e=>e*e*e),W.set(`easeOutCubic`,e=>1-Math.pow(1-e,3)),W.set(`easeInOutCubic`,e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2),W.set(`easeOutBack`,e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)),W.set(`easeInOutBack`,e=>{let t=2.5949095;return e<.5?Math.pow(2*e,2)*(7.189819*e-t)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+t)+2)/2});let Ee=`http://www.w3.org/2000/svg`;function De(e){return 1-Math.pow(1-e,3)}let Oe=null;function ke(){if(!d.isBrowser())return!1;try{return Oe||(Oe=window.matchMedia(`(prefers-reduced-motion: reduce)`)),!!Oe.matches}catch(e){return!1}}function Ae(e,t,n){if(!d.isBrowser()||n.globals.dataChanged||n.globals.resized)return!1;let r=n.config.chart.animations;if(!r||!1===r.enabled)return!1;let i=n.config.chart.type;if(i!==`line`&&i!==`area`&&i!==`rangeArea`||!(n.layout.gridWidth>0))return!1;let a=2*(r.speed||800),o=Math.max(0,Math.min(1,t/n.layout.gridWidth)),s=(1-Math.cbrt(1-o))*a,c=e.node.style;c.opacity=`0`;let l=null,u=e=>{l===null&&(l=e),e-l>=s?c.opacity=``:v.requestAnimationFrame(u)};return v.requestAnimationFrame(u),!0}function je(e){let t=e.config.chart.animations;var n;t&&(!1!==t.respectReducedMotion&&ke()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1)),n=we(t.easing),_e=typeof n==`function`?n:ge)}function Me(e){let t=e.style,n=e.index||0,r=typeof e.baseDelay==`number`?e.baseDelay:40,i=e.row||0,a=e.col||0,o=e.groupIndex||0,s=e.perGroup||1,c=e.centerDistance||0;switch(t){case`none`:return 0;case`diagonal`:return(i+a)*r;case`group`:return o*r+n%s*(r/4);case`centroid`:return c*r*(n+1);default:return n*r}}class Ne{constructor(e,t){this.w=e,this.ctx=t}animateLine(e,t,n,r){e.attr(t).animate(r).attr(n)}animateMarker(e,t,n,r){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(()=>{r()})}animatePop(e,{speed:t,delay:n=0,onComplete:r}){let i=this.w;if(!d.isBrowser()||!i.globals.shouldAnimate||t<1)return void(r&&r());let a=e.node.style;a.transformBox=`fill-box`,a.transformOrigin=`center`,a.transform=`scale(0)`,a.opacity=`0`;let o=performance.now()+n,s=e=>{if(i.globals.isDestroyed)return;let n=Math.max(0,Math.min(1,(e-o)/t));a.transform=`scale(${function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)}(n)})`,a.opacity=String(Math.min(1,2*n)),n<1?v.requestAnimationFrame(s):(a.transform=``,a.transformOrigin=``,a.transformBox=``,a.opacity=``,r&&r())};v.requestAnimationFrame(s)}animateRect(e,t,n,r,i,a=0){e.attr(t).animate(r,a).attr(n).after(()=>i())}animatePathsGradually(e){let{el:t,realIndex:n,j:r,fill:i,pathFrom:a,pathTo:o,pathToInterp:s,speed:c,delay:l,scrollMorph:u}=e,d=this.w,f=0;d.config.chart.animations.animateGradually.enabled&&(f=d.config.chart.animations.animateGradually.delay),d.config.chart.animations.dynamicAnimation.enabled&&d.globals.dataChanged&&d.config.chart.type!==`bar`&&(f=0),this.morphSVG(t,n,r,d.config.chart.type!==`line`||d.globals.comboCharts?i:`stroke`,a,o,c,l*f,u,s)}revealBulk(e){let t=this.w;e.node.classList.add(`apexcharts-element-hidden`),t.globals.delayedElements.push({el:e.node}),d.isBrowser()&&t.globals.shouldAnimate?t.globals.bulkRevealScheduled||(t.globals.bulkRevealScheduled=!0,v.requestAnimationFrame(()=>{t.globals.isDestroyed||(t.globals.bulkRevealScheduled=!1,this.animationCompleted(e))})):this.animationCompleted(e)}showDelayedElements(){this.w.globals.delayedElements.forEach(e=>{if(e.holdUntilComplete&&!this.w.globals.animationEnded)return;let t=e.el;t.classList.remove(`apexcharts-element-hidden`),t.classList.add(`apexcharts-hidden-element-shown`)})}animationCompleted(e){let t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd==`function`&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}animateDraw(e,{realIndex:t,j:n,isFill:r,isLast:i,speed:a,delay:o,mask:s}){let c=this.w,l=this,u=()=>{i&&c.globals.shouldAnimate&&l.animationCompleted(e),l.showDelayedElements()};if(!d.isBrowser()||!c.globals.shouldAnimate||a<1)return void u();let f=e.node,p=()=>{let e=s&&s.type===`radial`,i=c.layout.gridWidth+8,l=s&&s.cx||0,d=s&&s.cy||0,p=(s&&s.r||c.layout.gridWidth/2)+4,m=`apexDrawMask${c.globals.cuid}-${t}-${n==null?0:n}-${r?`f`:`s`}`,h=v.createElementNS(Ee,`mask`),g;if(h.setAttribute(`id`,m),h.setAttribute(`maskUnits`,`userSpaceOnUse`),e){let e=p;h.setAttribute(`x`,String(l-e)),h.setAttribute(`y`,String(d-e)),h.setAttribute(`width`,String(2*e)),h.setAttribute(`height`,String(2*e)),g=v.createElementNS(Ee,`circle`),g.setAttribute(`cx`,String(l)),g.setAttribute(`cy`,String(d)),g.setAttribute(`r`,`0`),g.setAttribute(`fill`,`#fff`)}else h.setAttribute(`x`,`-4`),h.setAttribute(`y`,`-4`),h.setAttribute(`width`,String(i)),h.setAttribute(`height`,String(c.layout.gridHeight+8)),g=v.createElementNS(Ee,`rect`),g.setAttribute(`x`,`-4`),g.setAttribute(`y`,`-4`),g.setAttribute(`width`,`
10`),g.setAttribute(`height`,String(c.layout.gridHeight+8)),g.setAttribute(`fill`,`#fff`);h.appendChild(g),c.dom.elDefs.node.appendChild(h),f.setAttribute(`mask`,`url(#${m})`);let _=performance.now()+(o||0),y=t=>{if(c.globals.isDestroyed)return;let n=Math.max(0,Math.min(1,(t-_)/a)),r=De(n);e?g.setAttribute(`r`,String(r*p)):g.setAttribute(`width`,String(r*i)),n<1?v.requestAnimationFrame(y):(f.removeAttribute(`mask`),h.parentNode&&h.parentNode.removeChild(h),u())};v.requestAnimationFrame(y)};v.requestAnimationFrame(()=>{if(c.globals.isDestroyed)return;if(r)return void p();let e=f.getAttribute(`stroke-dasharray`);if(e&&e!==`0`&&e!==``)return void p();let t=0;try{typeof f.getTotalLength==`function`&&(t=f.getTotalLength())}catch(e){t=0}t?(e=>{f.setAttribute(`stroke-dasharray`,String(e)),f.setAttribute(`stroke-dashoffset`,String(e));let t=performance.now()+(o||0),n=r=>{if(c.globals.isDestroyed)return;let i=Math.max(0,Math.min(1,(r-t)/a));f.setAttribute(`stroke-dashoffset`,String(e*(1-De(i)))),i<1?v.requestAnimationFrame(n):(f.removeAttribute(`stroke-dasharray`),f.removeAttribute(`stroke-dashoffset`),u())};v.requestAnimationFrame(n)})(t):u()})}morphSVG(e,t,n,r,i,a,o,s,c,l){var u,d;let f=this.w;i||(i=e.attr(`pathFrom`)),a||(a=e.attr(`pathTo`));let p=()=>(f.config.chart.type===`radar`&&(o=1),`M 0 ${f.layout.gridHeight}`);(!i||i.indexOf(`undefined`)>-1||i.indexOf(`NaN`)>-1)&&(i=p()),(!a.trim()||a.indexOf(`undefined`)>-1||a.indexOf(`NaN`)>-1)&&(a=p(),l=void 0),l&&(!l.trim()||l.indexOf(`undefined`)>-1||l.indexOf(`NaN`)>-1)&&(l=void 0),f.globals.shouldAnimate||(o=1);let m=!0===((d=(u=this.ctx)==null?void 0:u.morphTypeChange)==null?void 0:d.isActive())?`polygons`:`commands`,h=null;if(f.globals.dataChanged){let e=f.config.chart.animations.dynamicAnimation.easing;e==null?c&&(h=we(`linear`)):h=we(e)}let g=e.plot(i).animate(o,s);h&&g.ease(h),g.plot(l||a,m,l?a:void 0).after(()=>{if(x.isNumber(n)){let t=f.seriesData.series[f.globals.maxValsInArrayIndex];t&&n===t.length-2&&f.globals.shouldAnimate&&this.animationCompleted(e)}else r!==`none`&&f.globals.shouldAnimate&&(!f.globals.comboCharts&&t===f.seriesData.series.length-1||f.globals.comboCharts)&&this.animationCompleted(e);this.showDelayedElements()})}}class G{constructor(e){this.w=e}static isSliceChart(e){let t=e.config.chart.type;return t===`pie`||t===`donut`||t===`polarArea`}static hoverOutlineOwnsHoverState(e){var t;return G.isSliceChart(e)&&e.config.states.hover.filter.type!==`none`&&!0===((t=e.config.plotOptions.pie.hoverOutline)==null?void 0:t.show)}static sliceOffsetOwnsActiveState(e){return G.isSliceChart(e)&&e.config.chart.type!==`polarArea`&&!0===e.config.plotOptions.pie.expandOnClick&&e.config.plotOptions.pie.expandOffset>0&&!G.drilldownBlocksSliceOffset(e)}static drilldownBlocksSliceOffset(e){var t;return G.isSliceChart(e)&&!0===((t=e.config.drilldown)==null?void 0:t.enabled)}getDefaultFilter(e,t){let n=this.w;e.unfilter&&e.unfilter(!0),n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}applyFilter(e,t,n,r){var i,a,o;let s=this.w;if(e.unfilter&&e.unfilter(!0),n===`none`)return void this.getDefaultFilter(e,t);let c=s.config.chart.dropShadow,l=Math.max(0,Math.min(1,typeof r==`number`?r:n===`lighten`?.15:.35)),u=1-l,d=n===`lighten`?l:0;e.filterWith&&(e.filterWith(e=>{e.colorMatrix({type:`matrix`,values:`\n            ${u} 0 0 0 ${d}\n            0 ${u} 0 0 ${d}\n            0 0 ${u} 0 ${d}\n            0 0 0 1 0\n          `,in:`SourceGraphic`,result:`brightness`}),c.enabled&&this.addShadow(e,t,c,`brightness`)}),c.noUserSpaceOnUse||(a=(i=e.filterer())==null?void 0:i.node)==null||a.setAttribute(`filterUnits`,`userSpaceOnUse`),this._scaleFilterSize((o=e.filterer())==null?void 0:o.node))}addShadow(e,t,n,r){var i;let a=this.w,{blur:o,top:s,left:c,color:l,opacity:u}=n;if(l=Array.isArray(l)?l[t]:l,((i=a.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.length)>0&&a.config.chart.dropShadow.enabledOnSeries.indexOf(t)===-1)return e;e.offset({in:r,dx:c,dy:s,result:`offset`}),e.gaussianBlur({in:`offset`,stdDeviation:o,result:`blur`}),e.flood({"flood-color":l,"flood-opacity":u,result:`flood`}
1),e.composite({in:`flood`,in2:`blur`,operator:`in`,result:`shadow`}),e.merge([`shadow`,r])}dropShadow(e,t,n=0){var r,i,a,o,s;let c=this.w;return e.unfilter&&e.unfilter(!0),x.isMsEdge()&&c.config.chart.type===`radialBar`||((r=c.config.chart.dropShadow.enabledOnSeries)==null?void 0:r.length)>0&&((i=c.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.indexOf(n))===-1||e.filterWith&&(e.filterWith(e=>{this.addShadow(e,n,t,`SourceGraphic`)}),t.noUserSpaceOnUse||(o=(a=e.filterer())==null?void 0:a.node)==null||o.setAttribute(`filterUnits`,`userSpaceOnUse`),this._scaleFilterSize((s=e.filterer())==null?void 0:s.node)),e}setSelectionFilter(e,t,n){let r=this.w;if(r.interact.selectedDataPoints[t]!==void 0&&r.interact.selectedDataPoints[t].indexOf(n)>-1){if(e.node.setAttribute(`selected`,!0),G.sliceOffsetOwnsActiveState(r))return;let n=r.config.states.active.filter;n.type!==`none`&&this.applyFilter(e,t,n.type,n.value)}}_scaleFilterSize(e){e&&(t=>{for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.setAttribute(n,t[n])})({width:`200%`,height:`200%`,x:`-50%`,y:`-50%`})}}class K{constructor(e,t=null){this.w=e,this.ctx=t}roundPathCorners(e,t){function n(e,t,n){var i=t.x-e.x,a=t.y-e.y,o=Math.sqrt(i*i+a*a);return o?r(e,t,Math.min(1,n/o)):{x:e.x,y:e.y}}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function a(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf(`NaN`)>-1&&(e=``);var o=e.split(/[,\s]/).reduce(function(e,t){var n=t.match(/^([a-zA-Z])(.+)/);return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(o.length>1){var c=a(o[0]),l=null;o[o.length-1][0]==`Z`&&o[0].length>2&&(l=[`L`,c.x,c.y],o[o.length-1]=l),s.push(o[0]);for(var u=1;u<o.length;u++){var d=s[s.length-1],f=o[u],p=f==l?o[1]:o[u+1];if(p&&d&&d.length>2&&f[0]==`L`&&p.length>2&&p[0]==`L`){var m,h,g=a(d),_=a(f),v=a(p);m=n(_,g,t),h=n(_,v,t),i(f,m),f.origPoint=_,s.push(f);var y=r(m,_,.5),b=r(_,h,.5),x=[`C`,y.x,y.y,b.x,b.y,h.x,h.y];x.origPoint=_,s.push(x)}else s.push(f)}if(l){var S=a(s[s.length-1]);s.push([`Z`]),i(s[0],S)}}else s=o;return s.reduce(function(e,t){return e+t.join(` `)+` `},``)}drawLine(e,t,n,r,i=`#a8a8a8`,a=0,o=null,s=`butt`){return this.w.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:i,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s})}drawRect(e=0,t=0,n=0,r=0,i=0,a=`#fefefe`,o=1,s=null,c=null,l=0){let u=this.w.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:i,ry:i,opacity:o,"stroke-width":s===null?0:s,stroke:c===null?`none`:c,"stroke-dasharray":l}),u.node.setAttribute(`fill`,a),u}drawPolygon(e,t=`#e1e1e1`,n=1,r=`none`){return this.w.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n})}drawCircle(e,t=null){e<0&&(e=0);let n=this.w.dom.Paper.circle(2*e);return t!==null&&n.attr(t),n}drawPath({d:e=``,stroke:t=`#a8a8a8`,strokeWidth:n=1,fill:r,fillOpacity:i=1,strokeOpacity:a=1,classes:o,strokeLinecap:s=null,strokeDashArray:c=0}){let l=this.w;return s===null&&(s=l.config.stroke.lineCap),(e.indexOf(`undefined`)>-1||e.indexOf(`NaN`)>-1)&&(e=`M 0 ${l.layout.gridHeight}`),l.dom.Paper.path(e).attr({fill:r,"fill-opacity":i,stroke:t,"stroke-opacity":a,"stroke-linecap":s,"stroke-width":n,"stroke-dasharray":c,class:o})}group(e=null){let t=this.w.dom.Paper.group();return e!==null&&t.attr(e),t}move(e,t){return[`M`,e,t].join(` `)}line(e,t,n=null){return n===`H`?[` H`,e].join(` `):n===`V`?[` V`,t].join(` `):[` L`,e,t].join(` `)}curve(e,t,n,r,i,a){return[`C`,e,t,n,r,i,a].join(` `)}quadraticCurve(e,t,n,r){return[`Q`,e,t,n,r].join(` `)}arc(e,t,n,r,i,a,o,s=!1){let c=`A`;return s&&(c=`a`),[c,e,t,n,r,i,a,o].join(` `)}renderPaths({j:e,realIndex:t,pathFrom:n,pathTo:r,pathToInterp:i,stroke:a,strokeWidth:o,strokeLinecap:l,fill:u,animationDelay:d,initialSpeed:f,dataChangeSpeed:p,className:m,chartType:h,shouldClipToGrid:g=!0,bindEventsOnPaths:_=!0,drawShadow:v=!0,drawMask:y=null,scrollMorph:b=!1}){var x,S,C,w;let T=this.w,E=new G(this.w),D=new Ne(this.w,(x=this.ctx)==null?void 0:x),O=this.w.config.chart.animations.enabled,k=O&&this.w.config.chart.animations.dynamicAnimation.enabled;if(n&&n.startsWith(`M 0 0 `)&&r){let e=r.match(/^M\s+[\d.-]+\s+[\d.-]+/);e&&(n=n.replace(/^M\s+0\s+0/,e[0]))}let A,j=!0===((C=(S=this.ctx)==null?void 0:S.morphTypeChange)==null?void 0:C.isActive()),M=!!(O&&!T.globals.resized||k&&T.globals.dataChanged&&T.globals.shouldAnimate||j&&O&&T.globals.shouldAnimate),N=typeof m==`string`&&(m.indexOf(`apexcharts-line`)>-1||m.indexOf(`apexcharts-area`)>-1||m.indexOf(`apexcharts-rangeArea`)>-1||m.indexOf(`apexcharts-radar`)>-1),P=!(!O||T.globals.resized||T.globals.dataChanged||!N),F=(w=T.config.chart.animations.largeDatasetThreshold)==null?0:w,I=!!(M&&!P&&F>0&&T.globals.dataPoints>F),L=!(h!==`candlestick`&&h!==`boxPlot`||!M||P||!T.globals.dataChanged||j),R=I||L;!M||P||R?(A=r,M||(T.globals.animationEnded=!0)):A=n;let z=T.config.stroke.dashArray,ee=0;ee=Array.isArray(z)?z[t]:T.config.stroke.dashArray;let B=this.drawPath({d:A,stroke:a,strokeWidth:o,fill:u,fillOpacity:1,classes:m,strokeLinecap:l,strokeDashArray:ee});B.attr(`index`,t),g&&(h===`bar`&&!T.globals.isBarHorizontal||T.globals.comboCharts?B.attr({"clip-path":`url(#gridRectBarMask${T.globals.cuid})`}):B.attr({"clip-path":`url(#gridRectMask${T.globals.cuid})`})),T.config.chart.dropShadow.enabled&&v&&E.dropShadow(B,T.config.chart.dropShadow,t),_&&(B.node.addEventListener(`mouseenter`,this.pathMouseEnter.bind(this,B)),B.node.addEventListener(`mouseleave`,this.pathMouseLeave.bind(this,B)),B.node.addEventListener(`mousedown`,this.pathMouseDown.bind(this,B))),B.attr({pathTo:r,pathFrom:n});let te={el:B,j:e,realIndex:t,pathFrom:n,pathTo:r,pathToInterp:i,fill:u,strokeWidth:o,delay:d,scrollMorph:b};if(!O||T.globals.resized||T.globals.dataChanged)!T.globals.resized&&T.globals.dataChanged||R||D.showDelayedElements();else if(P){let n=2*f,r=a===`none`||o===0,i=T.seriesData.series.length,s=!!T.globals.comboCharts||t===i-1;D.animateDraw(B,{realIndex:t,j:e,isFill:r,isLast:s,speed:n,delay:0,mask:y})}else R||D.animatePathsGradually(c(s({},te),{speed:f}));return M&&!R&&(T.globals.dataChanged&&k||j)&&D.animatePathsGradually(c(s({},te),{speed:p})),R&&D.revealBulk(B),B}drawPattern(e,t,n,r=`#a8a8a8`,i=0){return this.w.dom.Paper.pattern(t,n,a=>{e===`horizontalLines`?a.line(0,0,n,0).stroke({color:r,width:i+1}):e===`verticalLines`?a.line(0,0,0,t).stroke({color:r,width:i+1}):e===`slantedLines`?a.line(0,0,t,n).stroke({color:r,width:i}):e===`squares`?a.rect(t,n).fill(`none`).stroke({color:r,width:i}):e===`circles`&&a.circle(t).fill(`none`).stroke({color:r,width:i})})}drawGradient(e,t,n,r,i,a=null,o=null,s=[],c=0,l=!1){let u=this.w,d;t.length<9&&t.indexOf(`#`)===0&&(t=x.hexToRgba(t,r)),n.length<9&&n.indexOf(`#`)===0&&(n=x.hexToRgba(n,i));let f=0,p=1,m=1,h=null;o!==null&&(f=o[0]===void 0?0:o[0]/100,p=o[1]===void 0?1:o[1]/100,m=o[2]===void 0?1:o[2]/100,h=o[3]===void 0?null:o[3]/100);let g=u.config.chart.type===`donut`||u.config.chart.type===`pie`||u.config.chart.type===`polarArea`||u.config.chart.type===`bubble`;if(d=s&&s.length!==0?u.dom.Paper.gradient(g?`radial`:`linear`,e=>{(Array.isArray(s[c])?s[c]:Array.isArray(s[0])?s[0]||[]:s).forEac
1h(t=>{e.stop(t.offset/100,t.color,t.opacity)})}):u.dom.Paper.gradient(g?`radial`:`linear`,e=>{e.stop(f,t,r),e.stop(p,n,i),e.stop(m,n,i),h!==null&&e.stop(h,t,r)}),g){let e=u.layout.gridWidth/2,t=u.layout.gridHeight/2;u.config.chart.type===`bubble`?d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2}):d.attr({gradientUnits:`userSpaceOnUse`,cx:e,cy:t,r:a})}else e===`vertical`?l?(d.attr({gradientUnits:`userSpaceOnUse`}),d.from(0,0).to(0,u.layout.gridHeight)):d.from(0,0).to(0,1):e===`diagonal`?d.from(0,0).to(1,1):e===`horizontal`?d.from(0,1).to(1,1):e===`diagonal2`&&d.from(1,0).to(0,1);return d}getTextBasedOnMaxWidth({text:e,maxWidth:t,fontSize:n,fontFamily:r}){let i=this.getTextRects(e,n,r,``),a=i.width/e.length,o=Math.floor(t/a);return t<i.width?e.slice(0,o-3)+`...`:e}drawText({x:e,y:t,text:n,textAnchor:r,fontSize:i,fontFamily:a,fontWeight:o,foreColor:c,opacity:l,maxWidth:u,cssClass:d=``,isPlainText:f=!0,dominantBaseline:p=`auto`}){let m=this.w;n===void 0&&(n=``);let h=n;r||(r=`start`),c&&c.length||(c=m.config.chart.foreColor),a=a||m.config.chart.fontFamily,o=o||`regular`;let g={maxWidth:u,fontSize:i=i||`11px`,fontFamily:a},_;return Array.isArray(n)?_=m.dom.Paper.text(e=>{for(let t=0;t<n.length;t++)h=n[t],u&&(h=this.getTextBasedOnMaxWidth(s({text:n[t]},g))),t===0?e.tspan(h):e.tspan(h).newLine()}):(u&&(h=this.getTextBasedOnMaxWidth(s({text:n},g))),_=f?m.dom.Paper.plain(n):m.dom.Paper.text(e=>e.tspan(h))),_.attr({x:e,y:t,"text-anchor":r,"dominant-baseline":p,"font-size":i,"font-family":a,"font-weight":o,fill:c,class:`apexcharts-text `+d}),_.node.style.fontFamily=a,_.node.style.opacity=l,_}getMarkerPath(e,t,n,r){let i=``;switch(n){case`cross`:i=`M ${e-(r/=1.4)} ${t-r} L ${e+r} ${t+r}  M ${e-r} ${t+r} L ${e+r} ${t-r}`;break;case`plus`:i=`M ${e-(r/=1.12)} ${t} L ${e+r} ${t}  M ${e} ${t-r} L ${e} ${t+r}`;break;case`star`:case`sparkle`:{let a=5;r*=1.15,n===`sparkle`&&(r/=1.1,a=4);let o=Math.PI/a;for(let n=0;n<=2*a;n++){let a=n*o,s=n%2==0?r:r/2;i+=(n===0?`M`:`L`)+(e+s*Math.sin(a))+`,`+(t-s*Math.cos(a))}i+=`Z`;break}case`triangle`:i=`M ${e} ${t-r} \n             L ${e+r} ${t+r} \n             L ${e-r} ${t+r} \n             Z`;break;case`square`:case`rect`:i=`M ${e-(r/=1.125)} ${t-r} \n           L ${e+r} ${t-r} \n           L ${e+r} ${t+r} \n           L ${e-r} ${t+r} \n           Z`;break;case`diamond`:i=`M ${e} ${t-(r*=1.05)} \n             L ${e+r} ${t} \n             L ${e} ${t+r} \n             L ${e-r} ${t} \n            Z`;break;case`line`:i=`M ${e-(r/=1.1)} ${t} \n           L ${e+r} ${t}`;break;default:i=`M ${e}, ${t} \n           m -${(r*=2)/2}, 0 \n           a ${r/2},${r/2} 0 1,0 ${r},0 \n           a ${r/2},${r/2} 0 1,0 -${r},0`}return i}drawMarkerShape(e,t,n,r,i){let a=this.drawPath({d:this.getMarkerPath(e,t,n,r),stroke:i.pointStrokeColor,strokeDashArray:i.pointStrokeDashArray,strokeWidth:i.pointStrokeWidth,fill:i.pointFillColor,fillOpacity:i.pointFillOpacity,strokeOpacity:i.pointStrokeOpacity});return a.attr({cx:e,cy:t,shape:i.shape,class:i.class?i.class:``}),a}drawMarker(e,t,n){e=e||0;let r=n.pSize||0;return x.isNumber(t)||(r=0,t=0),this.drawMarkerShape(e,t,n==null?void 0:n.shape,r,s(s({},n),n.shape===`line`||n.shape===`plus`||n.shape===`cross`?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}pathMouseEnter(e,t){var n,r;let i=this.w,a=new G(this.w),o=parseInt((n=e.node.getAttribute(`index`))==null?``:n,10),s=parseInt((r=e.node.getAttribute(`j`))==null?``:r,10);if(!(isNaN(o)||isNaN(s)||(typeof i.config.chart.events.dataPointMouseEnter==`function`&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:o,dataPointIndex:s,w:i}),K._fireEvent(i,`dataPointMouseEnter`,[t,this.ctx,{seriesIndex:o,dataPointIndex:s,w:i}]),i.config.states.active.filter.type!==`none`&&e.node.getAttribute(`selected`)===`true`||G.hoverOutlineOwnsHoverState(i)||i.config.states.hover.filter.type===`none`||i.interact.isTouchDevice))){let t=i.config.states.hover.filter;a.applyFilter(e,o,t.type,t.value)}}pathMouseLeave(e,t){var n,r;let i=this.w,a=new G(this.w),o=parseInt((n=e.node.getAttribute(`index`))==null?``:n,10),s=parseInt((r=e.node.getAttribute(`j`))==null?``:r,10);isNaN(o)||isNaN(s)||(typeof i.config.chart.events.dataPointMouseLeave==`function`&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:o,dataPointIndex:s,w:i}),K._fireEvent(i,`dataPointMouseLeave`,[t,this.ctx,{seriesIndex:o,dataPointIndex:s,w:i}]),i.config.states.active.filter.type!==`none`&&e.node.getAttribute(`selected`)===`true`||G.hoverOutlineOwns
1HoverState(i)||i.config.states.hover.filter.type!==`none`&&a.getDefaultFilter(e,o))}_clearAllDataPointSelections(e,t){let n=this.w;n.interact.selectedDataPoints=[];let r=n.dom.Paper.find(`.apexcharts-series path:not(.apexcharts-decoration-element)`),i=n.dom.Paper.find(`.apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)`),a=n=>{Array.prototype.forEach.call(n,n=>{n.node.setAttribute(`selected`,`false`),e.getDefaultFilter(n,t)})};a(r),a(i)}_togglePointSelection(e,t,n,r){let i=this.w;if(e.node.getAttribute(`selected`)===`true`){e.node.setAttribute(`selected`,`false`);let t=i.interact.selectedDataPoints[n].indexOf(r);return t>-1&&i.interact.selectedDataPoints[n].splice(t,1),`false`}return!i.config.states.active.allowMultipleDataPointsSelection&&i.interact.selectedDataPoints.length>0&&this._clearAllDataPointSelections(t,n),e.node.setAttribute(`selected`,`true`),i.interact.selectedDataPoints[n]===void 0&&(i.interact.selectedDataPoints[n]=[]),i.interact.selectedDataPoints[n].push(r),`true`}_applyPointSelectionFilter(e,t,n,r){let i=this.w;if(!G.sliceOffsetOwnsActiveState(i)){if(r===`true`){let r=i.config.states.active.filter;if(r!==`none`)t.applyFilter(e,n,r.type,r.value);else if(i.config.states.hover.filter!==`none`&&!i.interact.isTouchDevice){let r=i.config.states.hover.filter;t.applyFilter(e,n,r.type,r.value)}}else if(i.config.states.active.filter.type!==`none`){if(i.config.states.hover.filter.type===`none`||i.interact.isTouchDevice)t.getDefaultFilter(e,n);else{let r=i.config.states.hover.filter;t.applyFilter(e,n,r.type,r.value)}}}}pathMouseDown(e,t){var n,r;let i=this.w,a=new G(this.w),o=parseInt((n=e.node.getAttribute(`index`))==null?``:n,10),s=parseInt((r=e.node.getAttribute(`j`))==null?``:r,10);if(isNaN(o)||isNaN(s))return;let c=i.config.chart.link;if(!c||typeof c.dimension!=`function`&&!c.enabled){let t=this._togglePointSelection(e,a,o,s);this._applyPointSelectionFilter(e,a,o,t)}typeof i.config.chart.events.dataPointSelection==`function`&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:s,w:i}),t&&K._fireEvent(i,`dataPointSelection`,[t,this.ctx,{selectedDataPoints:i.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:s,w:i}])}rotateAroundCenter(e){let t={};return e&&typeof e.getBBox==`function`&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}setupEventDelegation(e,t){let n=null;e.node.addEventListener(`mouseover`,r=>{let i=K._findDelegateTarget(r.target,e.node,t);i&&i!==n&&(n&&n.instance&&this.pathMouseLeave(n.instance,r),n=i,i.instance&&this.pathMouseEnter(i.instance,r))}),e.node.addEventListener(`mouseout`,r=>{n&&(r.relatedTarget?K._findDelegateTarget(r.relatedTarget,e.node,t):null)!==n&&(n&&n.instance&&this.pathMouseLeave(n.instance,r),n=null)}),e.node.addEventListener(`mousedown`,n=>{let r=K._findDelegateTarget(n.target,e.node,t);r&&r.instance&&this.pathMouseDown(r.instance,n)})}static _fireEvent(e,t,n){let r=e.globals.events;if(!r||!Object.prototype.hasOwnProperty.call(r,t))return;let i=r[t];for(let e=0;e<i.length;e++)i[e].apply(null,n)}static _findDelegateTarget(e,t,n){for(;e&&e!==t&&e!==document;){if(e.matches&&e.matches(n))return e;e=e.parentNode}return null}static setAttrs(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.setAttribute(n,t[n])}getTextRects(e,t,n,r,i=!0,a){let o=this.w,s=[e,t,n,r,i,a].join(`\0`),c=o.globals.textRectsCache;if(c&&c.has(s))return c.get(s);let l=this.drawText({x:-200,y:-200,text:e,textAnchor:`start`,fontSize:t,fontFamily:n,fontWeight:a,foreColor:`#fff`,opacity:0});r&&l.attr(`transform`,r),o.dom.Paper.add(l);let u=l.bbox(),d=u.y;i||(u=l.node.getBoundingClientRect()),l.remove();let f={width:u.width,height:u.height,centerOffset:i?d+u.height/2- -200:0};return c&&c.set(s,f),f}placeTextWithEllipsis(e,t,n){if(typeof e.getComputedTextLength==`function`&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(let r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+`...`);e.textContent=`.`}}}class Pe{constructor(e){this.w=e,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(e){let t=this.w,n=t.config,r=parseInt(String(t.layout.gridWidth),10),i=parseInt(String(t.layout.gridHeight),10),a=r>i?r:i,o=e.image,s=0,c=0;e.width===void 0&&e.height===void 0?n.fill.image.width!==void 0&&n.fill.image.height!==void 0?(s=n.fill.image.width+1,c=n.fill.image.height):(s=a+1,c=a):(s=e.width,c=e.height);let l=v.createElementNS(H,`pattern`);K.setAttrs(l,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:`userSpaceOnUse`,
1width:s+`px`,height:c+`px`});let u=v.createElementNS(H,`image`);l.appendChild(u);let f=d.isBrowser()?window.SVG:global.SVG;u.setAttributeNS(f.xlink,`href`,o),K.setAttrs(u,{x:0,y:0,preserveAspectRatio:`none`,width:s+`px`,height:c+`px`}),u.style.opacity=e.opacity,t.dom.elDefs.node.appendChild(l)}getSeriesIndex(e){let t=this.w,n=t.config.chart.type;return this.seriesIndex=(n===`bar`||n===`rangeBar`)&&t.config.plotOptions.bar.distributed||n===`heatmap`||n===`treemap`?e.seriesNumber:e.seriesNumber%t.seriesData.series.length,this.seriesIndex}getSeriesAxisRange(e){var t,n,r;let i=this.w,a=(n=(t=i.globals.seriesYAxisReverseMap)==null?void 0:t[e])==null?0:n;return{minY:x.isNumber(i.globals.minYArr[e])?i.globals.minYArr[e]:i.globals.minY,maxY:x.isNumber(i.globals.maxYArr[e])?i.globals.maxYArr[e]:i.globals.maxY,reversed:!!((r=i.config.yaxis[a])!=null&&r.reversed)}}computeColorStops(e,t){let n=this.w,{threshold:r,colorAboveThreshold:i,colorBelowThreshold:a}=t,{minY:o,maxY:s}=e,c=s-o,l=c===0?r>s?0:100:(s-r)/c*100;e.reversed&&(l=100-l),l=Math.max(0,Math.min(l,100));let u=Array.isArray(n.config.fill.opacity)?n.config.fill.opacity[this.seriesIndex]:n.config.fill.opacity,d={offset:l,color:i,opacity:u},f={offset:l,color:a,opacity:u};return e.reversed?[f,d]:[d,f]}fillPath(e){var t,n,r,i;let a=this.w;this.opts=e;let o=this.w.config,s,c,l;this.seriesIndex=this.getSeriesIndex(e);let u=o.plotOptions.line.colors.colorAboveThreshold&&o.plotOptions.line.colors.colorBelowThreshold,d=this.getFillColors()[this.seriesIndex];a.seriesData.seriesColors[this.seriesIndex]!==void 0&&(d=a.seriesData.seriesColors[this.seriesIndex]),typeof d==`function`&&(d=d({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:a}));let f=e.fillType?e.fillType:this.getFillType(this.seriesIndex),p=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity,m=f===`gradient`||u;e.color&&(d=e.color);let h=a.config.series[this.seriesIndex];(n=(t=h==null?void 0:h.data)==null?void 0:t[e.dataPointIndex])!=null&&n.fillColor&&(d=(i=(r=h==null?void 0:h.data)==null?void 0:r[e.dataPointIndex])==null?void 0:i.fillColor),d||(d=`#fff`),e.opacity!==void 0&&e.opacity!==null&&(p=e.opacity);let g=d;x.isCSSVariable(d)?g=x.applyOpacityToColor(d,p):d.indexOf(`rgb`)===-1?d.indexOf(`#`)===-1?g=d:d.length<9&&(g=x.hexToRgba(d,p)):d.indexOf(`rgba`)>-1?p=x.getOpacityFromRGBA(d):g=x.hexToRgba(x.rgb2hex(d),p);let _=x.isCSSVariable(d)?x.getThemeColor(d):d;if(f===`pattern`&&(c=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:c,fillColor:_,defaultColor:g})),m){let t=o.fill.gradient.colorStops?[...o.fill.gradient.colorStops]:[],n=o.fill.gradient.type;u&&(t[this.seriesIndex]=this.computeColorStops(this.getSeriesAxisRange(this.seriesIndex),o.plotOptions.line.colors),n=`vertical`),l=this.handleGradientFill({type:n,fillConfig:e.fillConfig,fillColor:_,fillOpacity:p,colorStops:t,i:this.seriesIndex,verticalUserSpace:u})}if(f===`image`){let t=o.fill.image.src,n=e.patternID?e.patternID:``,r=`pattern${a.globals.cuid}${e.seriesNumber+1}${n}`;this.patternIDs.indexOf(r)===-1&&(this.clippedImgArea({opacity:p,image:Array.isArray(t)?e.seriesNumber<t.length?t[e.seriesNumber]:t[0]:t,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:r}),this.patternIDs.push(r)),s=`url(#${r})`}else s=m?l:f===`pattern`?c:g;return e.solid&&(s=g),s}getFillType(e){let t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}getFillColors(){let e=this.w,t=e.config,n=this.opts,r=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type===`line`?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):t.chart.type===`line`?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),n.fillColors!==void 0&&(r=[],Array.isArray(n.fillColors)?r=n.fillColors.slice():r.push(n.fillColors)),r}handlePatternFill({fillConfig:e,patternFill:t,fillColor:n,defaultColor:r}){let i=this.w.config.fill;e&&(i=e);let a=this.opts,o=new K(this.w),s=Array.isArray(i.pattern.strokeWidth)?i.pattern.strokeWidth[this.seriesIndex]:i.pattern.strokeWidth,c=n;return t=Array.isArray(i.pattern.style)?i.pattern.style[a.seriesNumber]===void 0?r:o.drawPattern(i.pattern.style[a.seriesNumber],i.pattern.width,i.pattern.height,c,s):o.drawPattern(i.pattern.style,i.pattern.width,i.pattern.height,c,s),t}handleGradientFill({type:e,fillColor:t,fillOpacity:n,fillConfig:r,colorStops:i,i:a,verticalUserSpace:o=!1}){let c=this.w.config.fill;r&&(c=s(s({},c),r));let l=this.opts,u=new K(this.w),d=new x;e=e||c.gradient.type;let f,p=t,m=c.gradient.opacityFrom===void 0?n:Array.isArray(c.gradient.opacityFrom)?c.gradient.opacityFrom[a]:c.gradient.opacityFrom;p.indexOf(`rgba`)>-1&&(m=x.getOpacityFromRGBA(p));let h=c.gradient.opacityTo===void 0?n:Array.isArray(c.gradient.opacityTo)?c.gradient.opacityTo[a]:c.gradient.opacityTo;
1if(c.gradient.gradientToColors===void 0||c.gradient.gradientToColors.length===0)f=c.gradient.shade===`dark`?d.shadeColor(-1*parseFloat(c.gradient.shadeIntensity),t.indexOf(`rgb`)>-1?x.rgb2hex(t):t):d.shadeColor(parseFloat(c.gradient.shadeIntensity),t.indexOf(`rgb`)>-1?x.rgb2hex(t):t);else if(c.gradient.gradientToColors[l.seriesNumber]){let e=c.gradient.gradientToColors[l.seriesNumber];f=e,e.indexOf(`rgba`)>-1&&(h=x.getOpacityFromRGBA(e))}else f=t;if(c.gradient.gradientFrom&&(p=c.gradient.gradientFrom),c.gradient.gradientTo&&(f=c.gradient.gradientTo),c.gradient.inverseColors){let e=p;p=f,f=e}return p.indexOf(`rgb`)>-1&&(p=x.rgb2hex(p)),f.indexOf(`rgb`)>-1&&(f=x.rgb2hex(f)),u.drawGradient(e,p,f,m,h,l.size,c.gradient.stops,i,a,o)}}let Fe=[`none`,`lighten`,`darken`];function Ie(e,t){let n=e&&e.renderer;return n&&n.kind&&n.kind!==`svg`?n:t}function Le(e){var t,n;let r=e.config.fill&&e.config.fill.type,i=e=>e===`pattern`||e===`image`||e===`gradient`;if(Array.isArray(r)?r.some(i):i(r))return!0;let a=(n=(t=e.config.plotOptions)==null?void 0:t.line)==null?void 0:n.colors;if(a&&a.colorAboveThreshold&&a.colorBelowThreshold)return!0;let o=e.config.states||{},s=o.hover&&o.hover.filter&&o.hover.filter.type,c=o.active&&o.active.filter&&o.active.filter.type;return!(!s||Fe.includes(s))||!(!c||Fe.includes(c))}class Re{constructor(e,t){this.w=e,this.ctx=t,this._filters=new G(this.w),this._graphics=new K(this.w,this.ctx),this._seriesWrap=null,this._seriesWrapIndex=-1,this._batch=null}resetSeriesWrapCache(){this._seriesWrap=null,this._seriesWrapIndex=-1,this._batch=null}static markersAreInert(e){let t=e.config.chart.type;return!(t!==`line`&&t!==`area`||e.globals.comboCharts||e.config.tooltip.intersect)}_shouldBatch(){var e,t,n,r,i;let a=this.w,o=a.config.markers,s=(e=o.largeDatasetThreshold)==null?0:e;if(s<=0||((n=(t=this.ctx)==null?void 0:t.renderer)==null?void 0:n.kind)===`canvas`||!Re.markersAreInert(a)||o.discrete&&o.discrete.length||o.onClick||o.onDblClick||(r=a.config.chart.events)!=null&&r.dataPointSelection)return!1;let c=a.seriesData.series;if(!Array.isArray(c)||!c.length)return!1;let l=!1;for(let e=0;e<c.length;e++){if(!Array.isArray(c[e]))return!1;let t=!1,n=!1,r=(i=a.config.series[e])==null?void 0:i.data;for(let i=0;i<c[e].length;i++){c[e][i]===null&&(t=!0);let a=Array.isArray(r)?r[i]:null;if(a&&(a.fillColor||a.strokeColor)){n=!0;break}}if(n)return!1;(a.globals.markers.size[e]>0||t&&o.showNullDataPoints)&&c[e].length>s&&(l=!0)}return l}setGlobalMarkerSize(){let e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.seriesData.series.length+1)for(let t=0;t<=e.seriesData.series.length;t++)e.globals.markers.size[t]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(()=>e.config.markers.size);e.globals.markers.batched=this._shouldBatch()}plotChartMarkers({pointsPos:e,seriesIndex:t,j:n,pSize:r,alwaysDrawMarker:i=!1,isVirtualPoint:a=!1}){let o=this.w,s=t,c=e,l=null,u=new K(this.w),d=Ie(this.ctx,u),f=o.config.markers.discrete&&o.config.markers.discrete.length;if(Array.isArray(c.x))for(let e=0;e<c.x.length;e++){let p,m=n,h=!x.isNumber(c.y[e]);o.globals.markers.largestSize===0&&o.globals.hasNullValues&&o.seriesData.series[s][n+1]!==null&&!a&&(h=!0),n===1&&e===0&&(m=0),n===1&&e===1&&(m=1);let g=`apexcharts-marker`;Re.markersAreInert(o)&&(g+=` no-pointer-events`);let _=Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0;if(o.globals.markers.batched&&(_||i)&&!f&&!a)this._batchPoint(t,m,c.x[e],c.y[e],{invalid:h,graphics:u,pSize:i?r:void 0,trackPoint:!i});else if(_||i||f){d.kind===`canvas`&&(o.globals.pointsArray[t]===void 0&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t][m]=[c.x[e],c.y[e]]),h||(g+=` w${x.randomId()}`);let n=this.getMarkerConfig({cssClass:g,seriesIndex:t,dataPointIndex:m}),a=o.config.series[s];if(a.data[m]&&(a.data[m].fillColor&&(n.pointFillColor=a.data[m].fillColor),a.data[m].strokeColor&&(n.pointStrokeColor=a.data[m].strokeColor)),r!==void 0&&(n.pSize=r),(c.x[e]<-o.globals.markers.largestSize||c.x[e]>o.layout.gridWidth+o.globals.markers.largestSize||c.y[e]<-o.globals.markers.largestSize||c.y[e]>o.layout.gridHeight+o.globals.markers.largestSize)&&(n.pSize=0),!h){if
1((o.globals.markers.size[t]>0||i||f)&&!l){let e=!i&&!f;e&&this._seriesWrap&&this._seriesWrapIndex===t?l=this._seriesWrap:(l=d.group({class:e?`apexcharts-series-markers`:``}),l.attr(`clip-path`,`url(#gridRectMarkerMask${o.globals.cuid})`),this.setupMarkerDelegation(l),e&&(this._seriesWrap=l,this._seriesWrapIndex=t))}p=d.drawMarker(c.x[e],c.y[e],n),p.attr(`rel`,m),p.attr(`j`,m),p.attr(`index`,t),p.node.setAttribute(`default-marker-size`,n.pSize),Ae(p,c.x[e],o),this._filters.setSelectionFilter(p,t,m),l&&l.add(p)}}else o.globals.pointsArray[t]===void 0&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([c.x[e],c.y[e]])}return l}_batchPoint(e,t,n,r,{invalid:i,graphics:a,pSize:o,trackPoint:s}){let c=this.w;if(s&&(c.globals.pointsArray[e]===void 0&&(c.globals.pointsArray[e]=[]),c.globals.pointsArray[e][t]=[n,r]),i)return;this._batch&&this._batch.seriesIndex===e||(this._batch={seriesIndex:e,opts:this.getMarkerConfig({cssClass:``,seriesIndex:e}),sizes:new Map});let l=o===void 0?this._batch.opts.pSize:o;if(!(l>0))return;let u=c.globals.markers.largestSize;if(n<-u||n>c.layout.gridWidth+u||r<-u||r>c.layout.gridHeight+u)return;let d=this._batch.sizes.get(l);d||(d=[],this._batch.sizes.set(l,d)),d.push(a.getMarkerPath(n,r,this._batch.opts.shape,l))}flushBatch(e,t){let n=this._batch;if(this._batch=null,!n||n.seriesIndex!==t||!n.sizes.size)return[];let r=this.w,i=new K(this.w),a=n.opts,o=a.shape===`line`||a.shape===`plus`||a.shape===`cross`,s=o?a.pointFillColor:a.pointStrokeColor,c=o?a.pointFillOpacity:a.pointStrokeOpacity,l=[];
1return n.sizes.forEach((n,o)=>{if(!n.length)return;let u=i.drawPath({d:n.join(` `),fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,stroke:s,strokeOpacity:c,strokeWidth:a.pointStrokeWidth,strokeDashArray:a.pointStrokeDashArray});u.attr({class:`apexcharts-marker-batch`+(Re.markersAreInert(r)?` no-pointer-events`:``),"clip-path":`url(#gridRectMarkerMask${r.globals.cuid})`,shape:a.shape,index:t,"default-marker-size":o}),e.add(u),l.push(u)}),l}getMarkerConfig({cssClass:e,seriesIndex:t,dataPointIndex:n=null,radius:r=null,size:i=null,strokeWidth:a=null}){let o=this.w,s=this.getMarkerStyle(t),c=i===null?o.globals.markers.size[t]:i,l=o.config.markers;return n!==null&&l.discrete.length&&l.discrete.map(e=>{e.seriesIndex===t&&e.dataPointIndex===n&&(e.strokeColor!==void 0&&(s.pointStrokeColor=e.strokeColor),e.fillColor!==void 0&&(s.pointFillColor=e.fillColor),e.size!==void 0&&(c=e.size),e.shape!==void 0&&(s.pointShape=e.shape))}),{pSize:r===null?c:r,pRadius:r===null?l.radius:r,pointStrokeWidth:a===null?Array.isArray(l.strokeWidth)?l.strokeWidth[t]:l.strokeWidth:a,pointStrokeColor:s.pointStrokeColor,pointFillColor:s.pointFillColor,shape:s.pointShape||(Array.isArray(l.shape)?l.shape[t]:l.shape),class:e,pointStrokeOpacity:Array.isArray(l.strokeOpacity)?l.strokeOpacity[t]:l.strokeOpacity,pointStrokeDashArray:Array.isArray(l.strokeDashArray)?l.strokeDashArray[t]:l.strokeDashArray,pointFillOpacity:Array.isArray(l.fillOpacity)?l.fillOpacity[t]:l.fillOpacity,seriesIndex:t}}setupMarkerDelegation(e){let t=this.w,n=`.apexcharts-marker`;this._graphics.setupEventDelegation(e,n),e.node.addEventListener(`click`,r=>{t.config.markers.onClick&&K._findDelegateTarget(r.target,e.node,n)&&t.config.markers.onClick(r)}),e.node.addEventListener(`dblclick`,r=>{t.config.markers.onDblClick&&K._findDelegateTarget(r.target,e.node,n)&&t.config.markers.onDblClick(r)}),e.node.addEventListener(`touchstart`,t=>{let r=K._findDelegateTarget(t.target,e.node,n);r&&r.instance&&this._graphics.pathMouseDown(r.instance,t)},{passive:!0})}getMarkerStyle(e){let t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}class ze{constructor(e,t){this.ctx=t,this.w=e,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new Ne(this.w),this.filters=new G(this.w),this.fill=new Pe(this.w),this.markers=new Re(this.w,this.ctx),this.graphics=new K(this.w),this._elPointsWrap=null,this._elPointsWrapParent=null,this._perSeries=null}draw(e,t,n){let r=this.w,i=this.graphics,a=Ie(this.ctx,i),o=n.realIndex,s=n.pointsPos,c=n.zRatio,l=n.elParent,u=this._elPointsWrap;if(u&&this._elPointsWrapParent===l||(u=a.group({class:`apexcharts-series-markers apexcharts-series-${r.config.chart.type}`}),u.attr(`clip-path`,`url(#gridRectMarkerMask${r.globals.cuid})`),this.markers.setupMarkerDelegation(u),l.add(u),this._elPointsWrap=u,this._elPointsWrapParent=l,this._perSeries=this._buildPerSeriesCache(o,a)),Array.isArray(s.x))for(let e=0;e<s.x.length;e++){let n=t+1,i=!0;t===0&&e===0&&(n=0),t===0&&e===1&&(n=1);let l=r.globals.markers.size[o];if(c!==1/0){let e=r.config.plotOptions.bubble;l=r.seriesData.seriesZ[o][n],e.zScaling&&(l/=c),e.minBubbleRadius&&l<e.minBubbleRadius&&(l=e.minBubbleRadius),e.maxBubbleRadius&&l>e.maxBubbleRadius&&(l=e.maxBubbleRadius)}let d=s.x[e],f=s.y[e];if(l=l||0,f!==null&&r.seriesData.series[o][n]!==void 0||(i=!1),i){let e=this.drawPoint(d,f,l,o,n,t);u.add(e),a.kind===`canvas`&&(r.globals.pointsArray[o]===void 0&&(r.globals.pointsArray[o]=[]),r.globals.pointsArray[o][n]=[d,f])}}}_buildPerSeriesCache(e,t){var n;let r=this.w;return{realIndex:e,emit:t,isBubble:r.config.chart.type===`bubble`||r.globals.comboCharts&&r.config.series[e]&&r.config.series[e].type===`bubble`,canCacheConfig:!r.config.markers.discrete.length,markerConfig:null,fillCacheable:void 0,fillCircle:void 0,dropShadowEnabled:r.config.chart.dropShadow.enabled,doInitialAnim:this.initialAnim&&!r.globals.dataChanged&&!r.globals.resized,jitter:(n=r.config.plotOptions.scatter)==null?void 0:n.jitter,anim:null}}drawPoint(e,t,n,r,i,a){var o;let s=this.w,c=r,l=this.anim,u=this.filters,d=this.fill,f=this.markers,p=this._perSeries;p&&p.realIndex===r||(p=this._perSeries=this._buildPerSeriesCache(r,Ie(this.ctx,this.graphics)));let m=p.emit,h;p.canCacheConfig?(p.markerConfig||(p.markerConfig=f.getMarkerConfig({cssClass:`apexcharts-marker`,seriesIndex:c,dataPointIndex:i,radius:p.isBubble?n:null})),h=p.markerConfig,p.isBubble&&(h.pSize=n,h.pRadius=n)):h=f.getMarkerConfig({cssClass:`apexcharts-marker`,seriesIndex:c,dataPointIndex:i,radius:p.isBubble?n:null});let g=s.config.series[c].data[i],_;p.fillCircle===void 0?(_=d.fillPath({seriesNumber:r,dataPointIndex:i,color:h.pointFillColor,patternUnits:`objectBoundingBox`,value:s.seriesData.series[r][a]}),p.fillCacheable===void 0&&(p.fillCacheable=p.canCacheConfig&&d.getFillType(r)===`solid`&&typeof h.pointFillColor==`string`&&!!h.pointFillColor),p.fillCacheable&&!(g!=null&&g.fillColor)&&(p.fillCircle=_)):_=p.fillCircle;let v=m.drawMarker(e,t,h);g!=null&&g.fillColor&&(_=g.fillColor);let y=p.jitter;if(y!=null&&y.enabled&&y.distributed&&s.globals.colors.length){let e=Math.round((o=s.seriesData.seriesX[r])==null?void 0:o[i]);isNaN(e)||(_=s.globals.colors[e%s.globals.colors.length])}if(v.attr({fill:_}),p.dropShadowEnabled){let e=s.config.chart.dropShadow;u.dropShadow(v,e,r)}if(p.doInitialAnim){if(!p.anim){let e=s.config.chart.animations,t=s.globals.dataPoints||1,n=e.animateGradually,r=n&&!1!==n.enabled;p.anim={popSpeed:e.speed,baseDelay:r?Math.min(20,.5*e.speed/Math.max(1,t)):0}}let e=Me({style:p.anim.baseDelay>0?`sequential`:`none`,index:i,baseDelay:p.anim.baseDelay});l.animatePop(v,{speed:p.anim.popSpeed,delay:e,onComplete:()=>l.animationCompleted(v)})}else s.globals.animationEnded=!0;return v.attr({rel:i,j:i,index:r,"default-marker-size":h.pSize}),u.setSelectionFilter(v,r,i),v}centerTextInBubble(e){let t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}let Be=(e,t,n,r)=>{if(typeof e!=`function`)return e;let i=e({series:t.seriesData.series,seriesIndex:n,dataPointIndex:r,w:t});return Number.isFinite(i)?i:0};class Ve{constructor(e,t=null){this.w=e,this.ctx=t}dataLabelsCorrection(e,t,n,r,i,a,o){let s=this.w,c=!1,l=new K(this.w).getTextRects(n,o),u=l.width,d=l.height;t<0&&(t=0),t>s.layout.gridHeight+d&&(t=s.layout.gridHeight+d/2),s.globals.dataLabelsRects[r]===void 0&&(s.globals.dataLabelsRects[r]=[]),s.globals.dataLabelsRects[r].push({x:e,y:t,width:u,height:d});let f=s.globals.dataLabelsRects[r].length-2,p=s.globals.lastDrawnDataLabelsIndexes[r]===void 0?0:s.globals.lastDrawnDataLabelsIndexes[r][s.globals.lastDrawnDataLabelsIndexes[r].length-1];if(s.globals.dataLabelsRects[r][f]!==void 0){let n=s.globals.dataLabelsRects[r][p];(e>n.x+n.width||t>n.y+n.height||t+d<n.y||e+u<n.x)&&(c=!0)}return(i===0||a)&&(c=!0),{x:e,y:t,textRects:l,drawnextLabel:c}}drawDataLabel({type:e,pos:t,i:n,j:r,isRangeStart:i,strokeWidth:a=2}){let o=this.w,s=new K(this.w),c=o.config.dataLabels,l=0,u=0,d=r,f=null;if(o.globals.collapsedSeriesIndices.indexOf(n)!==-1||!c.enabled||!Array.isArray(t.x))return f;f=s.group({class:`apexcharts-data-labels`});for(let s=0;s<t.x.length;
1s++)if(r===1&&s===0&&(d=0),r===1&&s===1&&(d=1),l=t.x[s]+Be(c.offsetX,o,n,d),u=t.y[s]+Be(c.offsetY,o,n,d)+a,!isNaN(l)){let r=o.seriesData.series[n][d];e===`rangeArea`&&(r=i?o.rangeData.seriesRangeStart[n][d]:o.rangeData.seriesRangeEnd[n][d]);let a=``,c=e=>o.config.dataLabels.formatter(e,{seriesIndex:n,dataPointIndex:d,w:o});o.config.chart.type===`bubble`?(r=o.seriesData.seriesZ[n][d],a=c(r),u=t.y[s],u=new ze(this.w,this.ctx).centerTextInBubble(u).y):r!==void 0&&(a=c(r));let p=o.config.dataLabels.textAnchor;o.globals.isSlopeChart&&(p=d===0?`end`:d===o.config.series[n].data.length-1?`start`:`middle`),this.plotDataLabelsText({x:l,y:u,text:a,i:n,j:d,parent:f,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels,textAnchor:p})}return f}plotDataLabelsText(e){let t=this.w,n=new K(this.w),{x:r,y:i,i:a,j:o,text:s,textAnchor:c,fontSize:l,parent:u,dataLabelsConfig:d,color:f,alwaysDrawDataLabel:p,offsetCorrection:m,className:h,seriesIndex:g=a,dataPointIndex:_=o}=e,v=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(a)<0)return v;let y={x:r,y:i,drawnextLabel:!0,textRects:null};if(m&&(y=this.dataLabelsCorrection(r,i,s,a,o,p,parseInt(d.style.fontSize,10).toString())),t.interact.zoomed||(r=y.x,i=y.y),y.textRects){let e=t.globals.barPadForNumericAxis||0;(r<-(e+20)-y.textRects.width||r>t.layout.gridWidth+y.textRects.width+e+30)&&(s=``)}let b=t.globals.dataLabels.style.colors[a];((t.config.chart.type===`bar`||t.config.chart.type===`rangeBar`)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[o]),typeof b==`function`&&(b=b({series:t.seriesData.series,seriesIndex:a,dataPointIndex:o,w:t})),f&&(b=f);let x=t.config.chart.type===`bar`||t.config.chart.type===`rangeBar`,S=x?0:Be(d.offsetX,t,g,_),C=S,w=x?0:Be(d.offsetY,t,g,_);if(t.globals.isSlopeChart&&(o!==0&&(C=-2*S+5),o!==0&&o!==t.config.series[a].data.length-1&&(C=0)),y.drawnextLabel){if(c===`middle`&&r===t.layout.gridWidth&&(c=`end`),v=n.drawText({x:r+C,y:i+w,foreColor:b,textAnchor:c||d.textAnchor,text:s,fontSize:l||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||`normal`}),v.attr({class:h||`apexcharts-datalabel`,cx:r,cy:i}),d.dropShadow.enabled){let e=d.dropShadow;new G(this.w).dropShadow(v,e)}u.add(v),Ae(v,r,t),t.globals.lastDrawnDataLabelsIndexes[a]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}return v}addBackgroundToDataLabel(e,t){let n=this.w,r=n.config.dataLabels.background,i=r.padding,a=r.padding/2,o=t.width,s=t.height,c=new K(this.w).drawRect(t.x-i,t.y-a/2,o+2*i,s+a,r.borderRadius,n.config.chart.background!==`transparent`&&n.config.chart.background?n.config.chart.background:`#fff`,r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new G(this.w).dropShadow(c,r.dropShadow),c}dataLabelsBackground(){var e;let t=this.w;if(t.config.chart.type===`bubble`)return;let n=t.dom.baseEl.querySelectorAll(`.apexcharts-datalabels text`);for(let r=0;r<n.length;r++){let i=n[r],a=i.getBBox(),o=null;if(a.width&&a.height&&(o=this.addBackgroundToDataLabel(i,a)),o){(e=i.parentNode)==null||e.insertBefore(o.node,i);let n=t.config.dataLabels.background.backgroundColor||i.getAttribute(`fill`);t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:n}):o.attr({fill:n}),i.setAttribute(`fill`,t.config.dataLabels.background.foreColor);let r=i.getAttribute(`cx`);r!==null&&Ae(o,parseFloat(r),t)}}}bringForward(){let e=this.w,t=e.dom.baseEl.querySelectorAll(`.apexcharts-datalabels`),n=e.dom.baseEl.querySelector(`.apexcharts-plot-series:last-child`);for(let e=0;e<t.length;e++)n&&n.insertBefore(t[e],n.nextSibling)}}class He{static invalidateAll(e){e&&e.globals&&(e.globals.cachedSelectors&&(e.globals.cachedSelectors={}),e.globals.domCache&&e.globals.domCache.clear(),e.globals.dimensionCache={})}static invalidateDimensions(e){e&&e.globals&&(e.globals.dimensionCache={})}static invalidateSelectors(e){e&&e.globals&&e.globals.cachedSelectors&&(e.globals.cachedSelectors={})}static getCachedSelector(e,t,n){return e&&e.globals?(e.globals.cachedSelectors||(e.globals.cachedSelectors={}),e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=n()),e.globals.cachedSelectors[t]):n()}static getCachedDimension(e,t,n,r=1e3){if(!e||!e.globals)return n();e.globals.dimensionCache||(e.globals.dimensionCache={});let i=e.globals.dimensionCache[t],a=Date.now();if(i&&i.lastUpdate&&a-i.lastUpdate<r)return i.value;let o=n();return e.globals.dimensionCache[t]={value:o,lastUpdate:a},o}
1static cacheDOMElement(e,t,n){e&&e.globals&&(e.globals.domCache||(e.globals.domCache=new Map),e.globals.domCache.set(t,n))}static getCachedDOMElement(e,t){return e&&e.globals&&e.globals.domCache&&e.globals.domCache.get(t)||null}}class Ue{constructor(e,{theme:t=null,timeScale:n=null}={}){this.w=e,this.theme=t,this.timeScale=n}getLabel(e,t,n,r,i=[],a=`12px`,o=!0){let s=this.w,c=e[r]===void 0?``:e[r],l=c,u=s.formatters.xLabelFormatter,d=s.config.xaxis.labels.formatter,f=new C(this.w),p=c;o&&(l=f.xLabelFormat(u,c,p,{i:r,dateFormatter:new S(this.w).formatDate,w:s}),d!==void 0&&(l=d(c,e[r],{i:r,dateFormatter:new S(this.w).formatDate,w:s}))),t.length>0?(n=t[r].position,l=t[r].value):s.config.xaxis.type===`datetime`&&d===void 0&&(l=``),l===void 0&&(l=``),l=Array.isArray(l)?l:l.toString();let m=new K(this.w),h={};h=s.layout.rotateXLabels&&o?m.getTextRects(l,parseInt(a,10).toString(),null,`rotate(${s.config.xaxis.labels.rotate} 0 0)`,!1):m.getTextRects(l,parseInt(a,10).toString());let g=!s.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(l)&&(String(l)===`NaN`||i.indexOf(l)>=0&&g)&&(l=``),{x:n,text:l,textRect:h}}checkLabelBasedOnTickamount(e,t,n){let r=this.w,i=r.config.xaxis.tickAmount;return i===`dataPoints`&&(i=Math.round(r.layout.gridWidth/120)),i>n||e%Math.round(n/(i+1))===0||(t.text=``),t}checkForOverflowingLabels(e,t,n,r,i){let a=this.w;if(e===0&&a.globals.skipFirstTimelinelabel&&(t.text=``),e===n-1&&a.globals.skipLastTimelinelabel&&(t.text=``),a.config.xaxis.labels.hideOverlappingLabels&&r.length>0){let e=i[i.length-1];if(a.config.xaxis.labels.trim&&a.config.xaxis.type!==`datetime`)return t;t.x<e.textRect.width/(a.layout.rotateXLabels?Math.max(Math.abs(a.config.xaxis.labels.rotate),1)/12:1.01)+e.x&&(t.text=``)}return t}checkForReversedLabels(e,t){let n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}yAxisAllSeriesCollapsed(e){let t=this.w.globals;return!t.seriesYAxisMap[e].some(e=>t.collapsedSeriesIndices.indexOf(e)===-1)}translateYAxisIndex(e){let t=this.w,n=t.globals,r=t.config.yaxis;return t.seriesData.series.length>r.length||r.some(e=>Array.isArray(e.seriesName))?e:n.seriesYAxisReverseMap[e]}isYAxisHidden(e){let t=this.w,n=t.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;
1if(!n.showForNullSeries){let n=t.globals.seriesYAxisMap[e],r=new V(this.w);return n.every(e=>r.isSeriesNull(e))}return!1}getYAxisForeColor(e,t){var n;let r=this.w;return Array.isArray(e)&&r.globals.yAxisScale[t]&&((n=this.theme)==null||n.pushExtraColors(e,r.globals.yAxisScale[t].result.length,!1)),e}drawYAxisTicks(e,t,n,r,i,a,o){let s=this.w,c=new K(this.w),l=s.layout.translateY+s.config.yaxis[i].labels.offsetY;if(s.globals.isBarHorizontal?l=0:s.config.chart.type===`heatmap`&&(l+=a/2),r.show&&t>0){!0===s.config.yaxis[i].opposite&&(e+=r.width);for(let i=t;i>=0;i--){let t=c.drawLine(e+n.offsetX-r.width+r.offsetX,l+r.offsetY,e+n.offsetX+r.offsetX,l+r.offsetY,r.color);o.add(t),l+=a}}}}class We{constructor(e,t,n){this.w=e,this.ctx=t,this.elgrid=n,this.axesUtils=new Ue(e,{theme:t.theme,timeScale:t.timeScale}),this.xaxisLabels=e.labelData.labels.slice(),e.labelData.timescaleLabels.length>0&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.labelData.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],this.offY=e.config.xaxis.position===`top`?0:e.layout.gridHeight,this.offY+=e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=e.config.chart.type===`bar`&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth=String(this.xaxisBorderWidth).indexOf(`%`)>-1?e.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}drawXaxis(){let e=this.w,t=new K(this.w),n=t.group({class:`apexcharts-xaxis`,transform:`translate(${e.config.xaxis.offsetX}, ${e.config.xaxis.offsetY})`}),r=t.group({class:`apexcharts-xaxis-texts-g`,transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});n.add(r);let i=[];for(let e=0;e<this.xaxisLabels.length;e++)i.push(this.xaxisLabels[e]);if(this.drawXAxisLabelAndGroup(!0,t,r,i,e.axisFlags.isXNumeric,(e,t)=>t),e.labelData.hasXaxisGroups){let n=e.labelData.groups;i=[];for(let e=0;e<n.length;e++)i.push(n[e].title);let a={};e.config.xaxis.group.style&&(a.xaxisFontSize=e.config.xaxis.group.style.fontSize,a.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,a.xaxisForeColors=e.config.xaxis.group.style.colors,a.fontWeight=e.config.xaxis.group.style.fontWeight,a.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,i,!1,(e,t)=>n[e].cols*t,a)}if(e.config.xaxis.title.text!==void 0){let r=t.group({class:`apexcharts-xaxis-title`}),i=t.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position===`bottom`?e.layout.xAxisLabelsHeight:-e.layout.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:`middle`,fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:`apexcharts-xaxis-title-text `+e.config.xaxis.title.style.cssClass});r.add(i),n.add(r)}if(e.config.xaxis.axisBorder.show){let r=e.globals.barPadForNumericAxis,i=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-r,this.offY,this.xaxisBorderWidth+r,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(i):n.add(i)}return n}drawXAxisLabelAndGroup(e,t,n,r,i,a,o={}){var s,c;let l=[],u=[],d=this.w,f=o.xaxisFontSize||this.xaxisFontSize,p=o.xaxisFontFamily||this.xaxisFontFamily,m=o.xaxisForeColors||this.xaxisForeColors,h=o.fontWeight||d.config.xaxis.labels.style.fontWeight,g=o.cssClass||d.config.xaxis.labels.style.cssClass,_,y=d.globals.padHorizontal,b=r.length,x=d.config.xaxis.type===`category`?d.globals.dataPoints:b;if(x===0&&b>x&&(x=b),i){let e=Math.max(Number(d.config.xaxis.tickAmount)||1,x>1?x-1:x);_=d.layout.gridWidth/Math.min(e,b-1),y=y+a(0,_)/2+d.config.xaxis.labels.offsetX}
1else _=d.layout.gridWidth/x,y=y+a(0,_)+d.config.xaxis.labels.offsetX;for(let i=0;i<=b-1;i++){let o=y-a(i,_)/2+d.config.xaxis.labels.offsetX;i===0&&b===1&&_/2===y&&x===1&&(o=d.layout.gridWidth/2);let S=this.axesUtils.getLabel(r,d.labelData.timescaleLabels,o,i,l,f,e),C=28;d.layout.rotateXLabels&&e&&(C=22),d.config.xaxis.title.text&&d.config.xaxis.position===`top`&&(C+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(C=C+parseFloat(f)+(d.layout.xAxisLabelsHeight-d.layout.xAxisGroupLabelsHeight)+(d.layout.rotateXLabels?10:0)),S=d.config.xaxis.tickAmount!==void 0&&d.config.xaxis.tickAmount!==`dataPoints`&&d.config.xaxis.type!==`datetime`?this.axesUtils.checkLabelBasedOnTickamount(i,S,b):this.axesUtils.checkForOverflowingLabels(i,S,b,l,u);let w=()=>e&&d.config.xaxis.convertedCatToNumeric?m[d.globals.minX+i-1]:m[i],T=((c=(s=S.textRect)==null?void 0:s.width)==null?0:c)/2,E=S.x+T<0;if(d.config.xaxis.labels.show&&!E){let r=t.drawText({x:S.x,y:this.offY+d.config.xaxis.labels.offsetY+C-(d.config.xaxis.position===`top`?d.layout.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:S.text,textAnchor:`middle`,fontWeight:h,fontSize:f,fontFamily:p,foreColor:Array.isArray(m)?w():m,isPlainText:!1,cssClass:(e?`apexcharts-xaxis-label `:`apexcharts-xaxis-group-label `)+g});if(n.add(r),r.on(`click`,e=>{if(typeof d.config.chart.events.xAxisLabelClick==`function`){let t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,this.ctx,t)}}),e){let e=v.createElementNS(H,`title`);e.textContent=Array.isArray(S.text)?S.text.join(` `):S.text,r.node.appendChild(e),S.text!==``&&(l.push(S.text),u.push(S))}}i<b-1&&(y+=a(i+1,_))}}drawXaxisInversed(e){let t=this.w,n=new K(this.w),r=t.config.yaxis[0].opposite?t.globals.translateYAxisX[e]:0,i=n.group({class:`apexcharts-yaxis apexcharts-xaxis-inversed`,rel:e}),a=n.group({class:`apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g`,transform:`translate(`+r+`, 0)`});i.add(a);let o=[];if(t.config.yaxis[e].show)for(let e=0;e<this.xaxisLabels.length;e++)o.push(this.xaxisLabels[e]);let s=t.layout.gridHeight/o.length,c=-s/2.2,l=t.formatters.yLabelFormatters[0],u=t.config.yaxis[0].labels;if(u.show)for(let r=0;r<=o.length-1;r++){let i=o[r]===void 0?``:o[r];i=l(i,{seriesIndex:e,dataPointIndex:r,w:t});let d=this.axesUtils.getYAxisForeColor(u.style.colors,e),f=()=>Array.isArray(d)?d[r]:d,p=0;Array.isArray(i)&&(p=i.length/2*parseInt(u.style.fontSize,10));let m=u.offsetX-15,h=`end`;this.yaxis.opposite&&(h=`start`),t.config.yaxis[0].labels.align===`left`?(m=u.offsetX,h=`start`):t.config.yaxis[0].labels.align===`center`?(m=u.offsetX,h=`middle`):t.config.yaxis[0].labels.align===`right`&&(h=`end`);let g=n.drawText({x:m,y:c+s+u.offsetY-p,text:i,textAnchor:h,foreColor:f(),fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-yaxis-label `+u.style.cssClass,maxWidth:u.maxWidth});a.add(g),g.on(`click`,e=>{if(typeof t.config.chart.events.xAxisLabelClick==`function`){let n=Object.assign({},t,{labelIndex:r});t.config.chart.events.xAxisLabelClick(e,this.ctx,n)}});let _=v.createElementNS(H,`title`);if(_.textContent=Array.isArray(i)?i.join(` `):i,g.node.appendChild(_),t.config.yaxis[e].labels.rotate!==0){let r=n.rotateAroundCenter(g.node);g.node.setAttribute(`transform`,`rotate(${t.config.yaxis[e].labels.rotate} 0 ${r.y})`)}c+=s}if(t.config.yaxis[0].title.text!==void 0){let e=n.group({class:`apexcharts-yaxis-title apexcharts-xaxis-title-inversed`,transform:`translate(`+r+`, 0)`}),a=n.drawText({x:t.config.yaxis[0].title.offsetX,y:t.layout.gridHeight/2+t.config.yaxis[0].title.offsetY,text:t.config.yaxis[0].title.text,textAnchor:`middle`,foreColor:t.config.yaxis[0].title.style.color,fontSize:t.config.yaxis[0].title.style.fontSize,fontWeight:t.config.yaxis[0].title.style.fontWeight,fontFamily:t.config.yaxis[0].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text `+t.config.yaxis[0].title.style.cssClass});e.add(a),i.add(e)}let d=0;this.isCategoryBarHorizontal&&t.config.yaxis[0].opposite&&(d=t.layout.gridWidth);let f=t.config.xaxis.axisBorder;if(f.show){let e=n.drawLine(t.globals.padHorizontal+f.offsetX+d,1+f.offsetY,t.globals.padHorizontal+f.offsetX+d,t.layout.gridHeight+f.offsetY,f.color,0);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(e):i.add(e)}return t.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(d,o.length,t.config.yaxis[0].axisBorder,t.config.yaxis[0].axisTicks,0,s,i),i}drawXaxisTicks(e,t,n){let r=this.w,i=e;if(e<0||e-2>r.layout.gridWidth)return;let a=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+a+r.config.xaxis.axisTicks.height,r.config.xaxis.position===`top`&&(t=a-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){let o=new K(this.w).drawLine(e+r.config.xaxis.axisTicks.offsetX,a+r.config.xaxis.offsetY,i+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(o),o.node.classList.add(`apexcharts-xaxis-tick`)}}getXAxisTicksPositions(){let e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.labelData.timescaleLabels.length>0)for(let e=0;e<n;e++)r=this.xaxisLabels[e].position,t.push(r);else{let i=n;for(let n=0;n<i;n++){let n=i;e.axisFlags.isXNumeric&&e.config.chart.type!==`bar`&&--n,r+=e.layout.gridWidth/n,t.push(r)}}return t}xAxisLabelCorrections(){var e,t,n;let r=this.w,i=new K(this.w),a=r.dom.baseEl.querySelector(`.apexcharts-xaxis-texts-g`),o=r.dom.baseEl.querySelectorAll(`.apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)`),s=r.dom.baseEl.querySelectorAll(`.apexcharts-yaxis-inversed text`),c=r.dom.baseEl.querySelectorAll(`.apexcharts-xaxis-inversed-texts-g text tspan`);if(r.layout.rotateXLabels||r.config.xaxis.labels.rotateAlways)for(let e=0;e<o.length;
1e++){let t=i.rotateAroundCenter(o[e]);--t.y,t.x+=1,o[e].setAttribute(`transform`,`rotate(${r.config.xaxis.labels.rotate} ${t.x} ${t.y})`),o[e].setAttribute(`text-anchor`,`end`),a==null||a.setAttribute(`transform`,`translate(0, -10)`);let n=o[e].childNodes;r.config.xaxis.labels.trim&&Array.prototype.forEach.call(n,e=>{i.placeTextWithEllipsis(e,e.textContent,r.layout.xAxisLabelsHeight-(r.config.legend.position===`bottom`?20:10))})}else{let e=r.layout.gridWidth/(r.labelData.labels.length+1);for(let t=0;t<o.length;t++){let n=o[t].childNodes;r.config.xaxis.labels.trim&&r.config.xaxis.type!==`datetime`&&Array.prototype.forEach.call(n,t=>{i.placeTextWithEllipsis(t,t.textContent,e)})}}if(s.length>0){let a=s[s.length-1].getBBox(),o=s[0].getBBox();a.x<-20&&((e=s[s.length-1].parentNode)==null||e.removeChild(s[s.length-1])),o.x+o.width>r.layout.gridWidth&&!r.globals.isBarHorizontal&&((t=s[0].parentNode)==null||t.removeChild(s[0]));for(let e=0;e<c.length;e++)i.placeTextWithEllipsis(c[e],(n=c[e].textContent)==null?``:n,r.config.yaxis[0].labels.maxWidth-(r.config.yaxis[0].title.text?2*parseFloat(r.config.yaxis[0].title.style.fontSize):0)-15)}}}class Ge{constructor(e,t){this.w=e,this.ctx=t,this.xaxisLabels=e.labelData.labels.slice(),this.axesUtils=new Ue(t.w,{theme:t.theme,timeScale:t.timeScale}),this.isRangeBar=e.rangeData.seriesRange.length&&e.globals.isBarHorizontal,e.labelData.timescaleLabels.length>0&&(this.xaxisLabels=e.labelData.timescaleLabels.slice())}drawGridArea(e=null){let t=this.w,n=new K(this.w);e||(e=n.group({class:`apexcharts-grid`}));let r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.layout.gridHeight,`transparent`),i=n.drawLine(t.globals.padHorizontal,t.layout.gridHeight,t.layout.gridWidth,t.layout.gridHeight,`transparent`);return e.add(i),e.add(r),e}drawGrid(){if(this.w.globals.axisCharts){let e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){let e=this.w,t=e.globals,n=new K(this.w),r=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width,i=e=>{let t=v.createElementNS(H,`clipPath`);return t.setAttribute(`id`,e),t};e.dom.elGridRectMask=i(`gridRectMask${t.cuid}`),e.dom.elGridRectBarMask=i(`gridRectBarMask${t.cuid}`),e.dom.elGridRectMarkerMask=i(`gridRectMarkerMask${t.cuid}`),e.dom.elForecastMask=i(`forecastMask${t.cuid}`),e.dom.elNonForecastMask=i(`nonForecastMask${t.cuid}`);let a=0,o=0;([`bar`,`rangeBar`,`candlestick`,`boxPlot`,`violin`].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.axisFlags.isXNumeric&&!e.globals.isBarHorizontal&&(a=Math.max(e.layout.gridPad.left,t.barPadForNumericAxis),o=Math.max(e.layout.gridPad.right,t.barPadForNumericAxis)),e.dom.elGridRect=n.drawRect(-r/2-2,-r/2-2,e.layout.gridWidth+r+4,e.layout.gridHeight+r+4,0,`#fff`),e.dom.elGridRectBar=n.drawRect(-r/2-a-2,-r/2-2,e.layout.gridWidth+r+o+a+4,e.layout.gridHeight+r+4,0,`#fff`);let s=e.globals.markers.largestSize;e.dom.elGridRectMarker=n.drawRect(Math.min(-r/2-a-2,-s),-s,e.layout.gridWidth+Math.max(r+o+a+4,2*s),e.layout.gridHeight+2*s,0,`#fff`),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectBarMask.appendChild(e.dom.elGridRectBar.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);let c=e.dom.elDefs.node;c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elGridRectBarMask),c.appendChild(e.dom.elGridRectMarkerMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask)}_drawGridLines({i:e,x1:t,y1:n,x2:r,y2:i,xCount:a,parent:o}){let s=this.w;if(!(e===0&&s.globals.skipFirstTimelinelabel||e===a-1&&s.globals.skipLastTimelinelabel&&!s.config.xaxis.labels.formatter||s.config.chart.type===`radar`)){s.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:t,y1:n,x2:r,y2:i,xCount:a,parent:o});let c=0;if(s.labelData.hasXaxisGroups&&s.config.xaxis.tickPlacement===`between`){let t=s.labelData.groups;if(t){let n=0;for(let r=0;n<e&&r<t.length;r++)n+=t[r].cols;n===e&&(c=.6*s.layout.xAxisLabelsHeight)}}new We(this.w,this.ctx).drawXaxisTicks(t,c,s.dom.elGraphical)}}_drawGridLine({i:e,x1:t,y1:n,x2:r,y2:i,xCount:a,parent:o}){let s=this.w,c=o.node.classList.contains(`apexcharts-gridlines-h
1orizontal`),l=s.globals.barPadForNumericAxis,u=n===0&&i===0||t===0&&r===0||n===s.layout.gridHeight&&i===s.layout.gridHeight||s.globals.isBarHorizontal&&(e===0||e===a-1),d=new K(this.w).drawLine(t-(c?l:0),n,r+(c?l:0),i,s.config.grid.borderColor,s.config.grid.strokeDashArray);d.node.classList.add(`apexcharts-gridline`),u&&s.config.grid.show?this.elGridBorders.add(d):o.add(d)}_drawGridBandRect({c:e,x1:t,y1:n,x2:r,y2:i,type:a}){let o=this.w,s=new K(this.w),c=o.globals.barPadForNumericAxis,l=o.config.grid[a].colors[e],u=s.drawRect(t-(a===`row`?c:0),n,r+(a===`row`?2*c:0),i,0,l,o.config.grid[a].opacity);this.elg.add(u),u.attr(`clip-path`,`url(#gridRectMask${o.globals.cuid})`),u.node.classList.add(`apexcharts-grid-${a}`)}_drawXYLines({xCount:e,tickAmount:t}){var n;let r=this.w,i=({xC:t,x1:n,y1:i,x2:a,y2:o})=>{for(let s=0;s<t;s++)n=this.xaxisLabels[s].position,a=this.xaxisLabels[s].position,n<0||n-2>r.layout.gridWidth||this._drawGridLines({i:s,x1:n,y1:i,x2:a,y2:o,xCount:e,parent:this.elgridLinesV})},a=({xC:t,x1:n,y1:i,x2:a,y2:o})=>{for(let s=0;s<t+ +!r.axisFlags.isXNumeric;s++)s===0&&t===1&&r.globals.dataPoints===1&&(a=n=r.layout.gridWidth/2),this._drawGridLines({i:s,x1:n,y1:i,x2:a,y2:o,xCount:e,parent:this.elgridLinesV}),a=n+=r.layout.gridWidth/(r.axisFlags.isXNumeric?t-1:t)};if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){let t=r.globals.padHorizontal,o,s=r.layout.gridHeight;r.labelData.timescaleLabels.length?i({xC:e,x1:t,y1:0,x2:o,y2:s}):(r.axisFlags.isXNumeric&&(e=(n=r.globals.xAxisScale)==null?void 0:n.result.length),a({xC:e,x1:t,y1:0,x2:o,y2:s}))}if(r.config.grid.yaxis.lines.show){let e=0,n=0,i=r.layout.gridWidth,a=t+1;this.isRangeBar&&(a=r.labelData.labels.length);for(let o=0;o<a+ +!!this.isRangeBar;o++)this._drawGridLine({i:o,xCount:a+ +!!this.isRangeBar,x1:0,y1:e,x2:i,y2:n,parent:this.elgridLinesH}),e+=r.layout.gridHeight/(this.isRangeBar?a:t),n=e}}_drawInvertedXYLines({xCount:e}){let t=this.w;if(t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){let n=t.globals.padHorizontal,r,i=t.layout.gridHeight;for(let a=0;a<e+1;a++)t.config.grid.xaxis.lines.show&&this._drawGridLine({i:a,xCount:e+1,x1:n,y1:0,x2:r,y2:i,parent:this.elgridLinesV}),new We(this.w,this.ctx).drawXaxisTicks(n,0,t.dom.elGraphical),n+=t.layout.gridWidth/e,r=n}if(t.config.grid.yaxis.lines.show){let e=0,n=0,r=t.layout.gridWidth;for(let i=0;i<t.globals.dataPoints+1;i++)this._drawGridLine({i,xCount:t.globals.dataPoints+1,x1:0,y1:e,x2:r,y2:n,parent:this.elgridLinesH}),e+=t.layout.gridHeight/t.globals.dataPoints,n=e}}renderGrid(){var e,t,n;let r=this.w,i=r.globals,a=new K(this.w);this.elg=a.group({class:`apexcharts-grid`}),this.elgridLinesH=a.group({class:`apexcharts-gridlines-horizontal`}),this.elgridLinesV=a.group({class:`apexcharts-gridlines-vertical`}),this.elGridBorders=a.group({class:`apexcharts-grid-borders`}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),r.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let o=0;for(;o<i.seriesYAxisMap.length&&i.ignoreYAxisIndexes.includes(o);)o++;o===i.seriesYAxisMap.length&&(o=0);let s,c=i.yAxisScale[o].result.length-1;return!i.isBarHorizontal||this.isRangeBar?(s=this.xaxisLabels.length,this.isRangeBar&&(c=r.labelData.labels.length,r.config.xaxis.tickAmount&&r.config.xaxis.labels.formatter&&(s=r.config.xaxis.tickAmount),((n=(t=(e=i.yAxisScale)==null?void 0:e[o])==null?void 0:t.result)==null?void 0:n.length)>0&&r.config.xaxis.type!==`datetime`&&(s=i.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:s,tickAmount:c})):(s=c,c=i.xTickAmount,this._drawInvertedXYLines({xCount:s,tickAmount:c})),this.drawGridBands(s,c),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:r.layout.gridWidth/s}}drawGridBands(e,t){var n,r,i,a,o;let s=this.w;if(((n=s.config.grid.row.colors)==null?void 0:n.length)>0&&((e,n,r,i,a,o)=>{for(let c=0,l=0;c<n;c++,l++)l>=s.config.grid[e].colors.length&&(l=0),this._drawGridBandRect({c:l,x1:r,y1:i,x2:a,y2:o,type:e}),i+=s.layout.gridHeight/t})(`row`,t,0,0,s.layout.gridWidth,s.layout.gridHeight/t),((r=s.config.grid.column.colors)==null?void 0:r.length)>0){let t=s.globals.isBarHorizontal||s.config.xaxis.tickPlacement!==`on`||s.config.xaxis.type!==`category`&&!s.config.xaxis.convertedCatToNumeric?e:e-1;s.axisFlags.isXNumeric&&(t=((a=(i=s.globals.xAxisScale)==null?void 0:i.result.length)==null?1:a)-1);let n=s.globals.padHorizontal,r=s.globals.padHorizontal+s.layout.gridWidth/t,c=s.layout.gridHeight;for(let i=0,a=0;i<e;i++,a++)a>=s.config.grid.column.colors.length&&(a=0),s.config.xaxis.type===`datetime`&&(n=this.xaxisLabels[i].position,r=(((o=this.xaxisLabels[i+1])==null?void 0:o.position)||s.layout.gridWidth)-this.xaxisLabels[i].position),this._drawGri
1dBandRect({c:a,x1:n,y1:0,x2:r,y2:c,type:`column`}),n+=s.layout.gridWidth/t}}}class Ke{constructor(e){this.w=e,this.coreUtils=new V(this.w)}niceScale(e,t,n=0){let r=1e-11,i=this.w,a=i.globals,o,s,c,l;a.isBarHorizontal?(o=i.config.xaxis,s=Math.max((a.svgWidth-100)/25,2)):(o=i.config.yaxis[n],s=Math.max((a.svgHeight-100)/15,2)),x.isNumber(s)||(s=10),c=o.min!==void 0&&o.min!==null,l=o.max!==void 0&&o.max!==null;let u=o.stepSize!==void 0&&o.stepSize!==null,d=o.tickAmount!==void 0&&o.tickAmount!==null,f=d?o.tickAmount:ee[Math.min(Math.round(s/2),ee.length-1)];if(a.isMultipleYAxis&&!d&&a.multiAxisTickAmount>0&&(f=a.multiAxisTickAmount,d=!0),f=f===`dataPoints`?a.dataPoints-1:Math.abs(Math.round(f)),(e===Number.MIN_VALUE&&t===0||!x.isNumber(e)&&!x.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=x.isNumber(o.min)?o.min:0,t=x.isNumber(o.max)?o.max:e+f,a.allSeriesCollapsed=!1),e>t){let n=t;t=e,e=n}else e===t&&(e=e===0?0:e-1,t=t===0?2:t+1);let p=[];f<1&&(f=1);let m=f,h=Math.abs(t-e);!c&&e>0&&e/h<.15&&(e=0,c=!0),!l&&t<0&&-t/h<.15&&(t=0,l=!0),h=Math.abs(t-e);let g=h/m,_=g,v=Math.floor(Math.log10(_)),y=Math.pow(10,v),b=Math.ceil(_/y);if(b=z[a.yValueDecimal===0?0:1][b],_=b*y,g=_,a.isBarHorizontal&&o.stepSize&&o.type!==`datetime`?(g=o.stepSize,u=!0):u&&(g=o.stepSize),u&&o.forceNiceScale&&(g*=Math.pow(10,v-Math.floor(Math.log10(g)))),c&&l){let e=h/m;if(d){if(u){if(x.mod(h,g)!=0){let t=x.getGCD(g,e);g=e/t<10?t:e}else x.mod(g,e)==0?g=e:(e=g,d=!1)}else g=e}else if(u)x.mod(h,g)==0?e=g:g=e;else if(x.mod(h,g)==0)e=g;else{m=Math.ceil(h/g),e=h/m;let t=x.getGCD(h,g);h/t<s&&(e=t),g=e}m=Math.round(h/g)}else{if(c||l){if(l){if(d)e=t-g*m;else{let n=e;e=g*Math.floor(e/g),Math.abs(t-e)/x.getGCD(h,g)>s&&(e=t-g*f,e+=g*Math.floor((n-e)/g))}}else if(c){if(d)t=e+g*m;else{let n=t;t=g*Math.ceil(t/g),Math.abs(t-e)/x.getGCD(h,g)>s&&(t=e+g*f,t+=g*Math.ceil((n-t)/g))}}}else if(a.isMultipleYAxis&&d){let n=g*Math.floor(e/g),r=n+g*m;r<t&&(g*=2),r=t,t=(e=n)+g*m,h=Math.abs(t-e),e>0&&e<Math.abs(r-t)&&(e=0,t=g*m),t<0&&-t<Math.abs(n-e)&&(t=0,e=-g*m)}else e=g*Math.floor(e/g),t=g*Math.ceil(t/g);h=Math.abs(t-e),g=x.getGCD(h,g),m=Math.round(h/g)}if(d||c||l||(m=Math.ceil((h-r)/(g+r)),m>16&&x.getPrimeFactors(m).length<2&&m++),!d&&o.forceNiceScale&&a.yValueDecimal===0&&m>h&&(m=h,g=Math.round(h/m)),m>s&&(!d&&!u||o.forceNiceScale)){let e=x.getPrimeFactors(m),t=e.length-1,n=m;t:for(var S=0;S<t;S++)for(var C=0;C<=t-S;C++){let r=Math.min(C+S,t),i=n,a=1;for(var w=C;w<=r;w++)a*=e[w];if(i/=a,i<s){n=i;break t}}g=n===m?h:h/n,m=Math.round(h/g)}a.isMultipleYAxis&&a.multiAxisTickAmount==0&&a.ignoreYAxisIndexes.indexOf(n)<0&&(a.multiAxisTickAmount=m);let T=e-g,E=g*r;do T+=g,p.push(x.stripNumber(T,7));while(t-T>E);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}linearScale(e,t,n=10,r=0,i=void 0){let a=Math.abs(t-e),o=[];if(e===t)return o=[e],{result:o,niceMin:o[0],niceMax:o[o.length-1]};(n=this._adjustTicksForSmallRange(n,r,a))===`dataPoints`&&(n=this.w.globals.dataPoints-1);let s=n;if(i||(i=a/s),i!==0&&isFinite(i)){let e=Math.max(2,2-Math.floor(Math.log10(Math.abs(i)))),t=Math.pow(10,e);i=Math.round((i+Number.EPSILON)*t)/t}let c=n===Number.MAX_VALUE?5:s;n===Number.MAX_VALUE&&(i=1);let l=e;for(;c>=0;)o.push(l),l=x.preciseAddition(l,i),--c;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}_resolveLogTickAmount(e){let t=e.tickAmount;return t===`dataPoints`&&(t=this.w.globals.dataPoints-1),x.isNumber(t)&&t>=1?Number(t):null}_thinToTickAmount(e,t){if(t===null||!x.isNumber(t)||t<1)return e;let n=t+1;if(e.length<=n)return e;let r=e.length-1,i=null;for(let e=1;e<=r;e++){if(r%e!==0)continue;let t=r/e+1;t>n||(i===null||t>i.count)&&(i={stride:e,count:t})}if(!i)return[e[0],e[e.length-1]];let a=[];for(let t=0;t<e.length;t+=i.stride)a.push(e[t]);return a}logarithmicScaleNice(e,t,n,r=null){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));let i=[],a=Math.ceil(Math.log(t)/Math.log(n)+1);for(let t=Math.floor(Math.log(e)/Math.log(n));t<a;t++)i.push(Math.pow(n,t));let o=this._thinToTickAmount(i,r);return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}_logDomainSpan(e,t,n){return n||(n=10),n<=1?0:(t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n)),e<=0||t<=0?0:Math.abs(Math.log(t)/Math.log(n)-Math.log(e)/Math.log(n)))}logarithmicScale(e,t,n,r=null){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));let i=[],a=Math.log(t)/Math.log(n),o=Math.log(e)/Math.log(n),s=a-o,c=r===null?Math.max(1,Math.round(s)):r,l=s/c;for(let e=0,t=o;e<c;e++,t+=l)i.push(Math.pow(n,t));return i.push(Math.pow(n,a)),{result:i,niceMin:e,niceMax:t}}_adjustTicksForSmallRange(e,t,n){let r=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){let e=Number(this.w.config.yaxis[t].labels.formatter(1));x.isNumber(e)&&this.w.globals.yValueDecimal===0&&(r=Math.ceil(n))}return r<e?r:e}setYScaleForIndex(e,t,n){let r=this.w.globals,i=this.w.config,a=r.isBarHorizontal?i.xaxis:i.yaxis[e];r.yAxisScale[e]===void 0&&(r.yAxisScale[e]=[]);let o=Math.abs(n-t),s=a.logarithmic&&this._logDomainSpan(t,n,a.logBase)>=1,c=a.logarithmic&&(s||o>5);
1if(a.logarithmic&&!c&&(r.invalidLogScale=!0),c){r.allSeriesCollapsed=!1;let i=this._resolveLogTickAmount(a);r.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,n,a.logBase,i):this.logarithmicScale(t,n,a.logBase,i)}else n!==-Number.MAX_VALUE&&x.isNumber(n)&&t!==Number.MAX_VALUE&&x.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,n,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}setXScale(e,t){let n=this.w,r=n.globals;if(t!==-Number.MAX_VALUE&&x.isNumber(t)){let i=r.xTickAmount;r.xAxisScale=this.linearScale(e,t,i,0,n.config.xaxis.max===void 0?n.config.xaxis.stepSize:void 0)}else r.xAxisScale=this.linearScale(0,10,10);return r.xAxisScale}scaleMultipleYAxes(){let e=this.w.config,t=this.w.globals;this.coreUtils.setSeriesYAxisMappings();let n=t.seriesYAxisMap,r=t.minYArr,i=t.maxYArr,a=[],o=!t.isBarHorizontal;if(t.allSeriesCollapsed=!0,t.barGroups=[],n.forEach((n,s)=>{let c=[];if(n.forEach(t=>{var n;let r=(n=e.series[t])==null?void 0:n.group;c.indexOf(r)<0&&c.push(r)}),n.length>0){let l,u,d=Number.MAX_VALUE,f=-Number.MAX_VALUE,p=d,m=f;if(e.chart.stacked){let r=Array(t.dataPoints).fill(0),i=[],a=[],o=[];c.forEach(()=>{i.push(r.map(()=>Number.MIN_VALUE)),a.push(r.map(()=>Number.MIN_VALUE)),o.push(r.map(()=>Number.MIN_VALUE))});for(let r=0;r<n.length;r++){!l&&e.series[n[r]].type&&(l=e.series[n[r]].type);let d=n[r];u=e.series[d].group?e.series[d].group:`axis-${s.toString()}`,!(t.collapsedSeriesIndices.indexOf(d)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(d)<0)||(t.allSeriesCollapsed=!1,c.forEach((t,n)=>{if(e.series[d].group===t)for(let e=0;e<this.w.seriesData.series[d].length;e++){let t=this.w.seriesData.series[d][e];t>=0?a[n][e]+=t:o[n][e]+=t,i[n][e]+=t,p=Math.min(p,t),m=Math.max(m,t)}})),l!==`bar`&&l!==`column`||t.barGroups.push(u)}l||(l=e.chart.type),l===`bar`||l===`column`?c.forEach((e,t)=>{d=Math.min(d,Math.min.apply(null,o[t])),f=Math.max(f,Math.max.apply(null,a[t]))}):(c.forEach((e,t)=>{p=Math.min(p,Math.min.apply(null,i[t])),m=Math.max(m,Math.max.apply(null,i[t]))}),d=p,f=m),d===Number.MIN_VALUE&&f===Number.MIN_VALUE&&(f=-Number.MAX_VALUE)}else for(let e=0;e<n.length;e++){let a=n[e];d=Math.min(d,r[a]),f=Math.max(f,i[a]),!(t.collapsedSeriesIndices.indexOf(a)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(a)<0)||(t.allSeriesCollapsed=!1)}e.yaxis[s].min!==void 0&&(d=typeof e.yaxis[s].min==`function`?e.yaxis[s].min(d):e.yaxis[s].min),e.yaxis[s].max!==void 0&&(f=typeof e.yaxis[s].max==`function`?e.yaxis[s].max(f):e.yaxis[s].max),t.barGroups=t.barGroups.filter((e,t,n)=>n.indexOf(e)===t);let h=e.yaxis[s];o&&!0===h.alignZero&&!h.logarithmic&&h.min===void 0&&h.max===void 0&&t.ignoreYAxisIndexes.indexOf(s)<0&&x.isNumber(d)&&x.isNumber(f)?a.push({ai:s,minY:d,maxY:f}):(this.setYScaleForIndex(s,d,f),n.forEach(e=>{r[e]=t.yAxisScale[s].niceMin,i[e]=t.yAxisScale[s].niceMax}))}else this.setYScaleForIndex(s,0,-Number.MAX_VALUE)}),a.length>=2){a.forEach(e=>{this.setYScaleForIndex(e.ai,e.minY,e.maxY),n[e.ai].forEach(n=>{r[n]=t.yAxisScale[e.ai].niceMin,i[n]=t.yAxisScale[e.ai].niceMax})});let e=0;a.forEach(n=>{let r=t.yAxisScale[n.ai],i=r.niceMax-r.niceMin;if(i>0){let t=-r.niceMin/i;t>e&&(e=t)}}),e>1&&(e=1),e<0&&(e=0);let o=e=>{if(e<=0)return 1;let t=Math.pow(10,Math.floor(Math.log10(e))),n=e/t,r;return r=n<=1+1e-9?1:n<=2+1e-9?2:n<=2.5+1e-9?2.5:n<=5+1e-9?5:10,r*t};a.forEach(a=>{let s=t.yAxisScale[a.ai];if(!s.result||s.result.length<2)return;let c=s.niceMax-s.niceMin;if(c<=0)return;let l=-s.niceMin/c;if(Math.abs(l-e)<=1e-9)return;let u=l<e&&e<1-1e-9,d=!u&&l>e&&e>1e-9;if(!u&&!d)return;let f=u?-e*s.niceMax/(1-e):s.niceMin,p=d?-s.niceMin*(1-e)/e:s.niceMax,m=p-f;if(m<=0)return;let h=Math.max(s.result.length,5),g=o(m/Math.max(h-1,1));if(g<=0)return;let _,v;if(u){_=Math.floor(f/g+1e-9)*g;let t=e>1e-9?_*(e-1)/e:s.niceMax,n=Math.max(t,s.niceMax);v=Math.ceil(n/g-1e-9)*g}else{v=Math.ceil(p/g-1e-9)*g;let t=e<1-1e-9?-e*v/(1-e):s.niceMin,n=Math.min(t,s.niceMin);_=Math.floor(n/g+1e-9)*g}s.result=[];for(let e=_;e<=v+1e-9*g;e=x.preciseAddition(e,g))s.result.push(x.stripNumber(e,7));s.niceMin=_,s.niceMax=v,n[a.ai].forEach(e=>{r[e]=s.niceMin,i[e]=s.niceMax})})}else if(a.length===1){let e=a[0];
1this.setYScaleForIndex(e.ai,e.minY,e.maxY),n[e.ai].forEach(n=>{r[n]=t.yAxisScale[e.ai].niceMin,i[n]=t.yAxisScale[e.ai].niceMax})}}}class qe{constructor(e){this.w=e,this.scales=new Ke(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}_xPixelTolerance(e){let t=this.w.layout.gridWidth;if(!t||!e||!e.length)return 0;let n=this.w.config.xaxis,r=typeof n.min==`number`?n.min:e[0],i=typeof n.max==`number`?n.max:e[e.length-1];return i>r?(i-r)/t:0}getMinYMaxY(e,t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=null){var i,a,o,s,c,l,u,d,f;let p=this.w.config,m=this.w.globals,h=-Number.MAX_VALUE,g=Number.MIN_VALUE;r===null&&(r=e+1);let _=this.w.seriesData.series,v=_,y=_;p.chart.type===`candlestick`?(v=this.w.candleData.seriesCandleL,y=this.w.candleData.seriesCandleH):p.chart.type===`boxPlot`?(v=this.w.candleData.seriesCandleO,y=this.w.candleData.seriesCandleC):p.chart.type===`violin`?(v=this.w.violinData.seriesViolinMin,y=this.w.violinData.seriesViolinMax):this.w.axisFlags.isRangeData&&(v=this.w.rangeData.seriesRangeStart,y=this.w.rangeData.seriesRangeEnd);let b=!1;if(this.w.seriesData.seriesX.length>=r){let e=(i=m.brushSource)==null?void 0:i.w.config.chart.brush;(p.chart.zoom.enabled&&p.chart.zoom.autoScaleYaxis||e!=null&&e.enabled&&e!=null&&e.autoScaleYaxis)&&(b=!0)}for(let i=e;i<r;i++){m.dataPoints=Math.max(m.dataPoints,_[i].length);let e=p.series[i].type;this.w.labelData.categoryLabels.length&&(m.dataPoints=this.w.labelData.categoryLabels.filter(e=>e!==void 0).length),this.w.labelData.labels.length&&p.xaxis.type!==`datetime`&&this.w.seriesData.series.reduce((e,t)=>e+t.length,0)!==0&&(m.dataPoints=Math.max(m.dataPoints,this.w.labelData.labels.length));let r=0,S=_[i].length-1;if(b){let e=this._xPixelTolerance(this.w.seriesData.seriesX[i]);if(p.xaxis.min){let t=p.xaxis.min-e;for(;r<S&&this.w.seriesData.seriesX[i][r]<t;r++);}if(p.xaxis.max){let t=p.xaxis.max+e;for(;S>r&&this.w.seriesData.seriesX[i][S]>t;S--);}}if(v===_&&y===_&&p.chart.type!==`boxPlot`&&e!==`candlestick`&&e!==`boxPlot`&&e!==`violin`&&e!==`rangeArea`&&e!==`rangeBar`&&!(this.w.seriesData.seriesGoals[i]&&this.w.seriesData.seriesGoals[i].length)){let o=_[i],s=Math.min(S,o.length-1),c=(a=this.w.seriesData._parsedExtrema)==null?void 0:a[i];if(c&&c.ref===o&&c.len===o.length&&r===0&&s===o.length-1)c.maxY>h&&(h=c.maxY),c.lowestY<t&&(t=c.lowestY),c.negMinY<0&&c.negMinY<g&&(g=c.negMinY),c.yDec>m.yValueDecimal&&(m.yValueDecimal=c.yDec),c.hasNulls&&(m.hasNullValues=!0);else{let e=m.yValueDecimal,n=!1;for(let i=r;i<=s;i++){let r=o[i];if(r!==null&&typeof r==`number`&&r==r&&r!==1/0&&r!==-1/0){if(r>h&&(h=r),r<t&&(t=r),g>r&&r<0&&(g=r),!Number.isInteger(r)){let t=r<0?-r:r;if(t>=1e-6&&t<1e21){let t=``+r,n=t.indexOf(`.`),i=n===-1?0:t.length-n-1;i>e&&(e=i)}else{let t=x.noExponents(r);x.isFloat(t)&&(e=Math.max(e,t.toString().split(`.`)[1].length))}}}else n=!0}m.yValueDecimal=e,n&&(m.hasNullValues=!0)}n=h,e!==`bar`&&e!==`column`||(g<0&&h<0&&(h=0,n=Math.max(n,0)),g===Number.MIN_VALUE&&(g=0,t=Math.min(t,0)));continue}for(let a=r;a<=S&&a<this.w.seriesData.series[i].length;a++){let r=_[i][a];if(r!==null&&x.isNumber(r)){switch(((o=y[i])==null?void 0:o[a])!==void 0&&(h=Math.max(h,y[i][a]),t=Math.min(t,y[i][a])),((s=v[i])==null?void 0:s[a])!==void 0&&(t=Math.min(t,v[i][a]),n=Math.max(n,v[i][a])),e){case`candlestick`:this.w.candleData.seriesCandleC[i][a]!==void 0&&(h=Math.max(h,this.w.candleData.seriesCandleH[i][a]),t=Math.min(t,this.w.candleData.seriesCandleL[i][a]));break;case`boxPlot`:this.w.candleData.seriesCandleC[i][a]!==void 0&&(h=Math.max(h,this.w.candleData.seriesCandleC[i][a]),t=Math.min(t,this.w.candleData.seriesCandleO[i][a]));break;case`violin`:((c=this.w.violinData.seriesViolinMax[i])==null?void 0:c[a])!==void 0&&(h=Math.max(h,this.w.violinData.seriesViolinMax[i][a]),t=Math.min(t,this.w.violinData.seriesViolinMin[i][a]))}if(e&&e!==`candlestick`&&e!==`boxPlot`&&e!==`violin`&&e!==`rangeArea`&&e!==`rangeBar`&&(h=Math.max(h,this.w.seriesData.series[i][a]),t=Math.min(t,this.w.seriesData.series[i][a])),this.w.seriesData.seriesGoals[i]&&this.w.seriesData.seriesGoals[i][a]&&Array.isArray(this.w.seriesData.seriesGoals[i][a])&&this.w.seriesData.seriesGoals[i][a].forEac
1h(e=>{h=Math.max(h,e.value),t=Math.min(t,e.value)}),this.w.config.chart.type===`boxPlot`||e===`boxPlot`){let e=(u=(l=this.w.candleData.seriesBoxPoints)==null?void 0:l[i])==null?void 0:u[a];if(e)for(let n=0;n<e.length;n++){let r=e[n];typeof r==`number`&&(h=Math.max(h,r),t=Math.min(t,r))}}n=h,r=x.noExponents(r),x.isFloat(r)&&(m.yValueDecimal=Math.max(m.yValueDecimal,r.toString().split(`.`)[1].length)),g>((d=v[i])==null?void 0:d[a])&&((f=v[i])==null?void 0:f[a])<0&&(g=v[i][a])}else m.hasNullValues=!0}e!==`bar`&&e!==`column`||(g<0&&h<0&&(h=0,n=Math.max(n,0)),g===Number.MIN_VALUE&&(g=0,t=Math.min(t,0)))}return p.chart.type===`rangeBar`&&this.w.rangeData.seriesRangeStart.length&&m.isBarHorizontal&&(g=t),p.chart.type===`bar`&&(g<0&&h<0&&(h=0),g===Number.MIN_VALUE&&(g=0)),{minY:g,maxY:h,lowestY:t,highestY:n}}setYRange(){let e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;let n,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(let t=0;t<this.w.seriesData.series.length;t++)n=this.getMinYMaxY(t),e.minYArr[t]=n.lowestY,e.maxYArr[t]=n.highestY,r=Math.min(r,n.lowestY)}return n=this.getMinYMaxY(0,r,void 0,this.w.seriesData.series.length),t.chart.type===`bar`?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),r=n.lowestY,t.chart.stacked&&this._setStackedMinMax(),t.chart.type===`line`||t.chart.type===`area`||t.chart.type===`scatter`||t.chart.type===`candlestick`||t.chart.type===`boxPlot`||t.chart.type===`violin`||t.chart.type===`rangeBar`&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY===Number.MIN_VALUE?n.minY:Math.min(n.minY,e.minY),t.yaxis.forEach((t,n)=>{t.max!==void 0&&(typeof t.max==`number`?e.maxYArr[n]=t.max:typeof t.max==`function`&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),t.min!==void 0&&(typeof t.min==`number`?e.minYArr[n]=t.min:typeof t.min==`function`&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])}),e.isBarHorizontal&&[`min`,`max`].forEach(n=>{t.xaxis[n]!==void 0&&typeof t.xaxis[n]==`number`&&(n===`min`?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(n=>{let r=n;switch(r.type||t.chart.type){case`bar`:case`column`:e.barGroups.push(r.group);break;case`line`:e.lineGroups.push(r.group);break;case`area`:e.areaGroups.push(r.group)}}),e.barGroups=e.barGroups.filter((e,t,n)=>n.indexOf(e)===t),e.lineGroups=e.lineGroups.filter((e,t,n)=>n.indexOf(e)===t),e.areaGroups=e.areaGroups.filter((e,t,n)=>n.indexOf(e)===t),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}setXRange(){let e=this.w.globals,t=this.w.config,n=t.xaxis.type===`numeric`||t.xaxis.type===`datetime`||t.xaxis.type===`category`&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric;if(this.w.axisFlags.isXNumeric&&(()=>{var t;let n=e.minX,r=e.maxX;for(let e=0;e<this.w.seriesData.series.length;e++){let i=this.w.labelData.labels[e];if(!i)continue;let a=(t=this.w.seriesData._parsedExtrema)==null?void 0:t[e];if(a&&a.xNumeric&&a.xref===i&&a.len===i.length)a.maxX>r&&(r=a.maxX),a.minX<n&&(n=a.minX);else for(let e=0;e<i.length;e++){let t=i[e];t!==null&&typeof t==`number`&&t==t&&(t>r&&(r=t),t<n&&(n=t))}}e.maxX=r,e.initialMaxX=r,e.minX=n,e.initialMinX=n})(),this.w.axisFlags.noLabelsProvided&&t.xaxis.categories.length===0&&(e.maxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.initialMaxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.minX=1,e.initialMinX=1),this.w.axisFlags.isXNumeric||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.dataFormatXNumeric){let r=10;if(t.xaxis.tickAmount===void 0)r=Math.round(e.svgWidth/150),t.xaxis.type===`numeric`&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&e.dataPoints!==0&&(r=e.dataPoints-1);else if(t.xaxis.tickAmount===`dataPoints`){if(this.w.seriesData.series.length>1&&(r=this.w.seriesData.series[e.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){let t=Math.round(e.maxX-e.minX);t<30&&(r=t)}}else r=t.xaxis.tickAmount;if(e.xTickAmount=r,t.xaxis.max!==void 0&&typeof t.xaxis.max==`number`&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min==`number`&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE){if(t.xa
1xis.convertedCatToNumeric&&!this.w.axisFlags.dataFormatXNumeric){let t=[];for(let n=e.minX-1;n<e.maxX;n++)t.push(n+1);e.xAxisScale={result:t,niceMin:t[0],niceMax:t[t.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX)}else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),this.w.axisFlags.noLabelsProvided&&this.w.labelData.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,r-1,0,t.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());n&&(this.w.labelData.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&this.w.labelData.labels.length&&(e.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}setZRange(){var e;let t=this.w.globals;if(!this.w.axisFlags.isDataXYZ)return;for(let e=0;e<this.w.seriesData.series.length;e++)if(this.w.seriesData.seriesZ[e]!==void 0)for(let n=0;n<this.w.seriesData.seriesZ[e].length;n++)this.w.seriesData.seriesZ[e][n]!==null&&x.isNumber(this.w.seriesData.seriesZ[e][n])&&(t.maxZ=Math.max(t.maxZ,this.w.seriesData.seriesZ[e][n]),t.minZ=Math.min(t.minZ,this.w.seriesData.seriesZ[e][n]));let n=((e=this.w.config.plotOptions)==null?void 0:e.bubble)||{};x.isNumber(n.minZ)&&n.minZ<t.minZ&&(t.minZ=n.minZ),x.isNumber(n.maxZ)&&n.maxZ>t.maxZ&&(t.maxZ=n.maxZ)}_handleSingleDataPoint(){let e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){let n=new S(this.w);if(t.xaxis.type===`datetime`){let r=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();let i=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()+2):i.setDate(i.getDate()+2),e.maxX=new Date(i).getTime()}else(t.xaxis.type===`numeric`||t.xaxis.type===`category`&&!this.w.axisFlags.noLabelsProvided)&&(e.minX-=2,e.initialMinX=e.minX,e.maxX+=2,e.initialMaxX=e.maxX)}}_getMinXDiff(){let e=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach((t,n)=>{var r;if(t.length){t.length===1&&t.push(this.w.seriesData.seriesX[e.maxValsInArrayIndex][this.w.seriesData.seriesX[e.maxValsInArrayIndex].length-1]);let i=(r=this.w.seriesData._parsedExtrema)==null?void 0:r[n];if(i&&i.xNumeric&&i.xSorted&&i.xref===t&&i.len===t.length)return i.minXDiff<e.minXDiff&&(e.minXDiff=i.minXDiff),void(e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5));let a=!0,o=e.minXDiff;for(let e=1;e<t.length;e++){let n=t[e]-t[e-1];if(n>0)n<o&&(o=n);else if(n<0){a=!1;break}}if(a)return e.minXDiff=o,void(e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5));let s=t.slice();s.sort((e,t)=>e-t),s.forEach((t,n)=>{if(n>0){let r=t-s[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}_setStackedMinMax(){let e=this.w.globals;if(!this.w.seriesData.series.length)return;let t=this.w.labelData.seriesGroups;t.length||(t=[this.w.seriesData.seriesNames.map(e=>e)]);let n={},r={};t.forEach(t=>{n[t]=[],r[t]=[],this.w.config.series.map((e,n)=>t.indexOf(this.w.seriesData.seriesNames[n])>-1?n:null).filter(e=>e!==null).forEach(i=>{var a,o,s,c;for(let l=0;l<this.w.seriesData.series[e.maxValsInArrayIndex].length;l++)n[t][l]===void 0&&(n[t][l]=0,r[t][l]=0),(this.w.config.chart.stacked&&!e.comboCharts||this.w.config.chart.stacked&&e.comboCharts&&(!this.w.config.chart.stackOnlyBar||((o=(a=this.w.config.series)==null?void 0:a[i])==null?void 0:o.type)===`bar`||((c=(s=this.w.config.series)==null?void 0:s[i])==null?void 0:c.type)===`column`))&&this.w.seriesData.series[i][l]!==null&&x.isNumber(this.w.seriesData.series[i][l])&&(this.w.seriesData.series[i][l]>0?n[t][l]+=parseFloat(String(this.w.seriesData.series[i][l]))+1e-4:r[t][l]+=parseFloat(String(this.w.seriesData.series[i][l])))})}),Object.entries(n).forEach(([t])=>{n[t].forEach((i,a)=>{e.maxY=Math.max(e.maxY,n[t][a]),e.minY=Math.min(e.minY,r[t][a])})})}}function Je(){return{palette1:[`#008FFB`,`#00A86F`,`#CA8501`,`#FF4560`,`#846DD5`],palette2:[`#6978CB`,`#039DE2`,`#49A84D`,`#B39105`,`#D68000`],palette3:[`#209FCC`,`#648291`,`#D4526E`,`#0FA783`,`#A19285`],palette4:[`#2FA59D`,`#73A20B`,`#099DE1`,`#FD5D5D`,`#648291`],palette5:[`#2B908F`,`#F56566`,`#2EAB16`,`#FA4443`,`#1EA2BD`],palette6:[`#449DD1`,`#F86624`,`#EA3A4A`,`#9C63D1`,`#899E2A`],palette7:[`#DF475B`,`#1B998B`,`#7E75B7`,`#F46036`,`#B1911B`],palette8:[`#9C63D1`,`#F86624`,`#B38F04`,`#EA3A4A`,`#2FA2B3`],palette9:[`#98776F`,`#A19285`,`#A8705E`,`#BA6560`,`#A0927F`],palette10:[`#C91EFF`,`#A94BFD`,`#6C6AFE`,`#2983FF`,`#009ED8`],cvdDeuteranopia:[`#0072B2`,`#E69F00`,`#56B4E9`,`#009E73`,`#F0E442`,`#D55E00`,`#CC79A7`],cvdProtanopia:[`#0077BB`,`#EE7733`,`#009988`,`#EE3377`,`#BBBBBB`,`#33BBEE`,`#CC3311`],cvdTritanopia:[`#CC3311`,`#009988`,`#EE7733`,`#0077BB`,`#EE3377`,`#BBBBBB`,`#33BBEE`],highContrast:[`#005A9C`,`#C00000`,`#007A33`,`#6C3483`,`#7B3F00`,`#0097A7`,`#4A235A`]}}class Ye{constructor(e,{theme:t=null,timeScale:n=null}={},r){this.w=e,this.elgrid=r,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=e.config.chart.type===`bar`&&e.config.plotOptions.bar.horizontal,this.xAxisoffX=e.config.xaxis.position===`bottom`?e.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Ue(e,{theme:t,timeScale:n})}drawYaxis(e){let t=this.w,n=new K(this.w),r=t.config.yaxis[e].labels.style,{fontSize:i,fontFamily:a,fontWeight:o}=r,s=n.group({class:`apexcharts-yaxis`,rel:e,transform:`translate(${t.globals.translateYAxisX[e]}, 0)`});if(this.axesUtils.isYAxisHidden(e))return s;let c=n.group({class:`apexcharts-yaxis-texts-g`});s.add(c);let l=t.globals.yAxisScale[e].result.length-1,u=t.layout.gridHeight/l,d=t.formatters.yLabelFormatters[e],f=this.axesUtils.checkForRever
1sedLabels(e,t.globals.yAxisScale[e].result.slice()),p=1;if(t.config.chart.type===`heatmap`&&!t.config.yaxis[e].labels.formatter){let e=parseInt(i,10)||11,n=Math.max(1,Math.floor(t.layout.gridHeight/(1.4*e))),r=l+1;r>n&&(p=Math.ceil(r/n))}if(t.config.yaxis[e].labels.show){let s=t.layout.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?s=0:t.config.chart.type===`heatmap`&&(s-=u/2),s+=parseInt(i,10)/3;let m=null;for(let h=l;h>=0;h--){let l=p>1&&h%p!==0?``:d(f[h],h,t),g=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&t.config.yaxis.length!==0&&(g*=-1);let _=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),v=this.axesUtils.getYAxisForeColor(r.colors,e),y=Array.isArray(v)?v[h]:v,b=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-label tspan`)).map(e=>e.textContent),x=n.drawText({x:g,y:s,text:b.includes(l)&&!t.config.yaxis[e].labels.showDuplicates?``:l,textAnchor:_,fontSize:i,fontFamily:a,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:y,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${r.cssClass}`});c.add(x),this.addTooltip(x,l),m===null&&(m=x),t.config.yaxis[e].labels.rotate!==0&&this.rotateLabel(n,x,m,t.config.yaxis[e].labels.rotate),s+=u}}return this.addYAxisTitle(n,s,e),this.addAxisBorder(n,s,e,l,u),s}getTextAnchor(e,t){return e===`left`?`start`:e===`center`?`middle`:e===`right`?`end`:t?`start`:`end`}addTooltip(e,t){let n=v.createElementNS(H,`title`);n.textContent=Array.isArray(t)?t.join(` `):t,e.node.appendChild(n)}rotateLabel(e,t,n,r){let i=e.rotateAroundCenter(n.node),a=e.rotateAroundCenter(t.node);t.node.setAttribute(`transform`,`rotate(${r} ${i.x} ${a.y})`)}addYAxisTitle(e,t,n){let r=this.w;if(r.config.yaxis[n].title.text!==void 0){let i=e.group({class:`apexcharts-yaxis-title`}),a=r.config.yaxis[n].opposite?r.globals.translateYAxisX[n]:0,o=e.drawText({x:a,y:r.layout.gridHeight/2+r.layout.translateY+r.config.yaxis[n].title.offsetY,text:r.config.yaxis[n].title.text,textAnchor:`end`,foreColor:r.config.yaxis[n].title.style.color,fontSize:r.config.yaxis[n].title.style.fontSize,fontWeight:r.config.yaxis[n].title.style.fontWeight,fontFamily:r.config.yaxis[n].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${r.config.yaxis[n].title.style.cssClass}`});i.add(o),t.add(i)}}addAxisBorder(e,t,n,r,i){let a=this.w,o=a.config.yaxis[n].axisBorder,s=31+o.offsetX;if(a.config.yaxis[n].opposite&&(s=-31-o.offsetX),o.show){let n=e.drawLine(s,a.layout.translateY+o.offsetY-2,s,a.layout.gridHeight+a.layout.translateY+o.offsetY+2,o.color,0,o.width);t.add(n)}a.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,r,o,a.config.yaxis[n].axisTicks,n,i,t)}drawYaxisInversed(e){let t=this.w,n=new K(this.w),r=n.group({class:`apexcharts-xaxis apexcharts-yaxis-inversed`}),i=n.group({class:`apexcharts-xaxis-texts-g`,transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});r.add(i);let a=t.globals.yAxisScale[e].result.length-1,o=t.layout.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,c=t.formatters.xLabelFormatter,l=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),u=t.labelData.timescaleLabels;if(u.length>0&&(this.xaxisLabels=u.slice(),l=u.slice(),a=l.length),t.config.xaxis.labels.show)for(let r=u.length?0:a;u.length?r<u.length:r>=0;u.length?r++:r--){let a=c==null?void 0:c(l[r],r,t),d=t.layout.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(u.length){let e=this.axesUtils.getLabel(l,u,d,r,this.drawnLabels,this.xaxisFontSize);d=e.x,a=e.text,this.drawnLabels.push(e.text),r===0&&t.globals.skipFirstTimelinelabel&&(a=``),r===l.length-1&&t.globals.skipLastTimelinelabel&&(a=``)}let f=n.drawText({x:d,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position===`top`?t.layout.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:a,textAnchor:`middle`,foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,
1cssClass:`apexcharts-xaxis-label ${t.config.xaxis.labels.style.cssClass}`});i.add(f),this.addTooltip(f,a),s+=o}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}inversedYAxisBorder(e){let t=this.w,n=new K(this.w),r=t.config.xaxis.axisBorder;if(r.show){let i=0;t.config.chart.type===`bar`&&t.axisFlags.isXNumeric&&(i-=15);let a=n.drawLine(t.globals.padHorizontal+i+r.offsetX,this.xAxisoffX,t.layout.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(a):e.add(a)}}inversedYAxisTitleText(e){let t=this.w,n=new K(this.w);if(t.config.xaxis.title.text!==void 0){let r=n.group({class:`apexcharts-xaxis-title apexcharts-yaxis-title-inversed`}),i=n.drawText({x:t.layout.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:`middle`,fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:`apexcharts-xaxis-title-text ${t.config.xaxis.title.style.cssClass}`});r.add(i),e.add(r)}}yAxisTitleRotate(e,t){let n=this.w,r=new K(this.w),i=n.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),a=i?i.getBoundingClientRect():{width:0,height:0},o=n.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-title text`),s=o?o.getBoundingClientRect():{width:0,height:0};if(o){let i=this.xPaddingForYAxisTitle(e,a,s,t);o.setAttribute(`x`,String(i.xPos-(t?10:0)));let c=r.rotateAroundCenter(o);o.setAttribute(`transform`,`rotate(${t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate} ${c.x} ${c.y})`)}}xPaddingForYAxisTitle(e,t,n,r){let i=this.w,a=0,o=10;return i.config.yaxis[e].title.text===void 0||e<0?{xPos:a,padd:0}:(r?a=t.width+i.config.yaxis[e].title.offsetX+n.width/2+o/2:(a=-1*t.width+i.config.yaxis[e].title.offsetX+o/2+n.width/2,i.globals.isBarHorizontal&&(
1o=25,a=-1*t.width-i.config.yaxis[e].title.offsetX-o)),{xPos:a,padd:o})}setYAxisXPosition(e,t){let n=this.w,r=0,i=0,a=18,o=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach((s,c)=>{let l=n.globals.ignoreYAxisIndexes.includes(c)||!s.show||s.floating||e[c].width===0,u=e[c].width+t[c].width;s.opposite?n.globals.isBarHorizontal?(i=n.layout.gridWidth+n.layout.translateX-1,n.globals.translateYAxisX[c]=i-s.labels.offsetX):(i=n.layout.gridWidth+n.layout.translateX+o,l||(o+=u+20),n.globals.translateYAxisX[c]=i-s.labels.offsetX+20):(r=n.layout.translateX-a,l||(a+=u+20),n.globals.translateYAxisX[c]=r+s.labels.offsetX)})}setYAxisTextAlignments(){let e=this.w;Array.from(e.dom.baseEl.getElementsByClassName(`apexcharts-yaxis`)).forEach((t,n)=>{let r=e.config.yaxis[n];if(r&&!r.floating&&r.labels.align!==void 0){let t=e.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${n}'] .apexcharts-yaxis-texts-g`),i=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${n}'] .apexcharts-yaxis-label`)),a=t.getBoundingClientRect();i.forEach(e=>{e.setAttribute(`text-anchor`,r.labels.align)}),r.labels.align!==`left`||r.opposite?r.labels.align===`center`?t.setAttribute(`transform`,`translate(${a.width/2*(r.opposite?1:-1)}, 0)`):r.labels.align===`right`&&r.opposite&&t.setAttribute(`transform`,`translate(${a.width}, 0)`):t.setAttribute(`transform`,`translate(-${a.width}, 0)`)}})}}class Xe{constructor(e,t){this.w=e,this.ctx=t,this.documentEvent=this.documentEvent.bind(this)}addEventListener(e,t){let n=this.w;Object.prototype.hasOwnProperty.call(n.globals.events,e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}removeEventListener(e,t){let n=this.w;if(!Object.prototype.hasOwnProperty.call(n.globals.events,e))return;let r=n.globals.events[e].indexOf(t);r!==-1&&n.globals.events[e].splice(r,1)}fireEvent(e,t){let n=this.w;if(!Object.prototype.hasOwnProperty.call(n.globals.events,e))return;t&&t.length||(t=[]);let r=n.globals.events[e],i=r.length;for(let e=0;e<i;e++)r[e].apply(null,t)}setupEventHandlers(){let e=this.w,t=this.ctx,n=e.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(r=>{n==null||n.addEventListener(r,n=>{let r=n.target.getAttribute(`i`)===null&&e.interact.capturedSeriesIndex!==-1?e.interact.capturedSeriesIndex:n.target.getAttribute(`i`),i=n.target.getAttribute(`j`)===null&&e.interact.capturedDataPointIndex!==-1?e.interact.capturedDataPointIndex:n.target.getAttribute(`j`),a=Object.assign({},e,{seriesIndex:e.globals.axisCharts?r:0,dataPointIndex:i});n.type===`keydown`?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(t.ctx.keyboardNavigation&&t.ctx.keyboardNavigation.handleKey(n),typeof e.config.chart.events.keyDown==`function`&&e.config.chart.events.keyDown(n,t,a),t.ctx.events.fireEvent(`keydown`,[n,t,a])):n.type===`keyup`?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(typeof e.config.chart.events.keyUp==`function`&&e.config.chart.events.keyUp(n,t,a),t.ctx.events.fireEvent(`keyup`,[n,t,a])):n.type===`mousemove`||n.type===`touchmove`?typeof e.config.chart.events.mouseMove==`function`&&e.config.chart.events.mouseMove(n,t,a):n.type===`mouseleave`||n.type===`touchleave`?typeof e.config.chart.events.mouseLeave==`function`&&e.config.chart.events.mouseLeave(n,t,a):(n.type===`mouseup`&&n.which===1||n.type===`touchend`)&&(typeof e.config.chart.events.click==`function`&&e.config.chart.events.click(n,t,a),t.ctx.events.fireEvent(`click`,[n,t,a]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(t=>{e.dom.baseEl.addEventListener(t,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(e){let t=this.w,n=e.target.className;if(e.type===`click`){let e=t.dom.baseEl.querySelector(`.apexcharts-menu`);e&&e.classList.contains(`apexcharts-menu-open`)&&n!==`apexcharts-menu-icon`&&e.classList.remove(`apexcharts-menu-open`)}t.interact.clientX=e.type===`touchmove`?e.touches[0].clientX:e.clientX,t.interact.clientY=e.type===`touchmove`?e.touches[0].clientY:e.clientY}}class Ze{constructor(e){this.w=e}setCurrentLocaleValues(e){let t=this.w.config.chart.locales,n=d.getApex();n.chart&&n.chart.locales&&n.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(n.chart.locales));let r=t.filter(t=>t.name===e)[0];if(!r)throw Error(`Wrong locale name provided. Please make sure you set the correct locale name in options`);{let e=x.extend(w,r);this.w.globals.locale=e.options}}}class Qe{constructor(e,t){this.w=e,this.ctx=t}drawAxis(e,t){let n=this.w.globals,r=this.w.config,i=new We(this.w,this.ctx,t),a=new Ye(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},t);if(n.axisCharts&&e!==`radar`){let e,t;n.isBarHorizontal?(t=a.drawYaxisInversed(0),e=i.drawXaxisInversed(0),this.w.dom.elGraphical.add(e),this.w.dom.elGraphical.add(t)):(e=i.drawXaxis(),this.w.dom.elGraphical.add(e),r.yaxis.map((e,r)=>{if(n.ignoreYAxisIndexes.indexOf(r)===-1&&(t=a.drawYaxis(r),this.w.dom.Paper.add(t),this.w.config.grid.position===`back`)){let e=this.w.dom.Paper.children()[1];e&&(e.remove(),this.w.dom.Paper.add(e))}}))}}}class $e{constructor(e){this.w=e}drawXCrosshairs(){let e=this.w;e.dom.elGraphical.node.querySelectorAll(`:scope >
1 .apexcharts-xcrosshairs`).forEach(e=>e.remove());let t=new K(this.w),n=new G(this.w),r=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=r.colorFrom,s=r.colorTo,c=r.opacityFrom,l=r.opacityTo,u=r.stops,d=i.enabled,f=i.left,p=i.top,m=i.blur,h=i.color,g=i.opacity,_=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){a===`gradient`&&(_=t.drawGradient(`vertical`,o,s,c,l,null,u,[]));let r=e.config.xaxis.crosshairs.width===1?t.drawLine(0,0,0,0):t.drawRect(),i=e.layout.gridHeight;(!x.isNumber(i)||i<0)&&(i=0);let v=e.config.xaxis.crosshairs.width;(!x.isNumber(v)||Number(v)<0)&&(v=0),r.attr({class:`apexcharts-xcrosshairs`,x:0,y:0,y2:i,width:v,height:i,fill:_,filter:`none`,"fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(r=n.dropShadow(r,{left:f,top:p,blur:m,color:h,opacity:g})),e.dom.elGraphical.add(r)}}drawYCrosshairs(){let e=this.w;e.dom.elGraphical.node.querySelectorAll(`:scope > .apexcharts-ycrosshairs, :scope > .apexcharts-ycrosshairs-hidden`).forEach(e=>e.remove());let t=new K(this.w),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){let i=t.drawLine(-r,0,e.layout.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);i.attr({class:`apexcharts-ycrosshairs`}),e.dom.elGraphical.add(i)}let i=t.drawLine(-r,0,e.layout.gridWidth+r,0,n.stroke.color,0,0);i.attr({class:`apexcharts-ycrosshairs-hidden`}),e.dom.elGraphical.add(i)}}function et(e,t){if(!x.isObject(e)||!x.isObject(t))return t===void 0?e:t;let n=s({},e);for(let r of Object.keys(t)){let i=t[r];i!==void 0&&(n[r]=x.isObject(i)&&x.isObject(e[r])?et(e[r],i):i)}return n}class tt{constructor(e){this.w=e,this._activeBreakpoint=null}checkResponsiveConfig(e){let t=this.w,n=t.config;if(n.responsive.length===0)return;let r=n.responsive.slice();r.sort((e,t)=>e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0).reverse();let i=new L({}),a=(e={})=>{var n;let a=r[0].breakpoint,o=d.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(o>a){if(this._activeBreakpoint!==null){if(!t.globals.initialConfig)return;let n=x.clone(t.globals.initialConfig);n.series=x.clone(t.config.series);let r=V.extendArrayProps(i,n,t);e=x.extend(r,e),this.overrideResponsiveOptions(e),this._activeBreakpoint=null}}else for(let a=0;a<r.length;a++)if(o<r[a].breakpoint){let o=(n=r[a].options)!=null&&n.yaxis?x.clone(r[a].options.yaxis):null;if(e=V.extendArrayProps(i,r[a].options,t),e=x.extend(t.config,e),Array.isArray(t.config.yaxis)&&o){let n=Array.isArray(o)?o:[o];e=c(s({},e),{yaxis:t.config.yaxis.map((e,t)=>et(e,n[t]))})}this.overrideResponsiveOptions(e),this._activeBreakpoint=r[a].breakpoint}};if(e){let n=V.extendArrayProps(i,e,t);n=x.extend(t.config,n),n=x.extend(n,e),a(n)}else a({})}overrideResponsiveOptions(e){let t=new L(e).init({responsiveOverride:!0});this.w.config=t}}let nt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function rt(e,t){let{ax:n,bx:r,ay:i,by:a}=t,o=[],s=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g,c;for(;(c=s.exec(e))!==null;){let e=c[1].toUpperCase(),t=(c[2].match(nt)||[]).map(parseFloat);if(e===`Z`){o.push(`z`);continue}if(e===`H`){for(let e of t)o.push(`H ${n*e+r}`);continue}if(e===`V`){for(let e of t)o.push(`V ${i*e+a}`);continue}if(e===`A`){for(let e=0;e+6<t.length;e+=7)o.push(`A ${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${n*t[e+5]+r} ${i*t[e+6]+a}`);continue}let s=[];for(let e=0;e+1<t.length;e+=2)s.push(`${n*t[e]+r} ${i*t[e+1]+a}`);s.length&&o.push(`${e} ${s.join(` `)}`)}return o.join(` `)}function it(e,t,n){if(!e||typeof e!=`string`)return null;let r=ie(e);if(!r.length||r[0][0]!==`M`)return null;for(let e=1;e<r.length;e++)if(r[e][0]===`M`)return null;let i=r,a=null;if(n){if(r.length<5||(a=r.slice(-3),i=r.slice(0,-3),a[2][0]!==`Z`)||a[1][0]!==`L`||a[0][0]!==`L`&&a[0][0]!==`C`)return null}else if(r[r.length-1][0]===`Z`)return null;if(i.length!==t||i.length<2)return null;let o=i[1][0];if(o!==`L`&&o!==`C`)return null;for(let e=2;e<i.length;e++)if(i[e][0]!==o)return null;let s=i.map(e=>e[0]===`C`?[Number(e[5]),Number(e[6])]:[Number(e[1]),Number(e[2])]);for(let e of s)if(!isFinite(e[0])||!isFinite(e[1]))return null;return{body:i,closing:a,segType:o,anchors:s}}function at(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function ot(e,t,n){let r=e,i=[t[1],t[2]],a=[t[3],t[4]],o=[t[5],t[6]],s=at(r,i,n),c=at(i,a,n),l=at(a,o,n),u=at(s,c,n),d=at(c,l,n),f=at(u,d,n);return{first:[`C`,s[0],s[1],u[0],u[1],f[0],f[1]],second:[`C`,d[0],d[1],l[0],l[1],o[0],o[1]],mid:f}}function st(e,t,n){let r=[t[1],t[2]],i=at(e,r,n);return{first:[`L`,i[0],i[1]],second:[`L`,r[0],r[1]],mid:i}}function ct(e,t){let{body:n,closing:r,segType:i,anchors:a}=e,o=a.length,s=t.length,c=e=>i===`C`?[`C`,e[0],e[1],e[0],e[1],e[0],e[1]]:[`L`,e[0],e[1]],l=[[`M`,a[0][0],a[0][1]]],u=0;for(;u<s&&t[u]!==0;)u++;for(let e=1;e<=u;e++)l.push(c(a[0]));let d=u+1;for(let e=0;e<o-1;e++){let r=0;for(;d+r<s&&t[d+r]===-1;)r++;let o=n[e+1];if(r){let t=r+1,n=a[e],s=o;for(let e=0;e<r;e++){let r=1/(t-e),a=i===`C`?ot(n,s,r):st(n,s,r);l.push(a.first),n=a.mid,s=a.second}l.push(s)}else l.push(o.slice());d+=r+1}for(;d<s;)l.push(c(a[o-1])),d++;
1return r&&r.forEach(e=>l.push(e.slice())),l}function lt(e,t,n,r,i,a){let o=it(e,r,a);if(!o)return null;let s=it(t,i,a);if(!s||o.segType!==s.segType||(o.closing||s.closing)&&(!o.closing||!s.closing||o.closing[0][0]!==s.closing[0][0]))return null;let c=n.map(e=>e.oldJ),l=n.map(e=>e.newJ);return{from:oe(ct(o,c)),toInterp:oe(ct(s,l))}}function ut(e){var t;let n=e.config.chart.animations;if(!n||!1===n.enabled||!n.dynamicAnimation||!1===n.dynamicAnimation.enabled)return!1;let r=(t=n.largeDatasetThreshold)==null?0:t;return!(r>0&&e.globals.dataPoints>r)&&!!(d.isBrowser()&&e.globals.dataChanged&&e.globals.shouldAnimate)}function dt(e,t,n){var r,i,a,o;if((r=e.axisFlags)!=null&&r.isXNumeric){let r=(a=(i=e.seriesData)==null?void 0:i.seriesX)==null?void 0:a[t];if(r&&r.length&&r[n]!=null)return`x:`+r[n]}let s=(o=e.globals.labels)==null?void 0:o[n];return s!=null&&String(s)!==``?`c:`+(Array.isArray(s)?s.join(` `):String(s)):`j:`+n}function ft(e){let t=new Map;return e.map(e=>{let n=t.get(e)||0;return t.set(e,n+1),n===0?e:`${e}#${n}`})}function pt(e,t,n=!1,r=!1){var i,a;if(!ut(e))return null;let o=e.globals.prevStreamFrame;if(!o)return null;let s=(i=o.seriesY)==null?void 0:i[t],c=(a=e.seriesData.series)==null?void 0:a[t];if(!Array.isArray(s)||!Array.isArray(c)||!s.length||!c.length)return null;let l=ft(s.map((e,n)=>function(e,t,n){var r,i;if(e.isXNumeric){let i=(r=e.seriesX)==null?void 0:r[t];if(i&&i.length&&i[n]!=null)return`x:`+i[n]}let a=(i=e.labels)==null?void 0:i[n];return a!=null&&String(a)!==``?`c:`+(Array.isArray(a)?a.join(` `):String(a)):`j:`+n}(o,t,n))),u=ft(c.map((n,r)=>dt(e,t,r))),d=function(e,t){let n=new Map;e.forEach((e,t)=>{n.has(e)||n.set(e,t)});let r=Array(t.length),i=new Set,a=-1,o=!0,s=e.length===t.length;t.forEach((e,t)=>{let c=n.has(e)&&!i.has(n.get(e))?n.get(e):-1;r[t]=c,c!==-1&&(i.add(c),c<a&&(o=!1),a=c),c!==t&&(s=!1)});let c=[];for(let t=0;t<e.length;t++)i.has(t)||c.push(t);return{toOld:r,exits:c,ordered:o,changed:!s}}(l,u);return(d.ordered||r)&&(d.changed||n)?{join:d,oldKeys:l,newKeys:u}:null}function mt(e){var t,n;let r=e.config.chart.animations;return we((n=(t=r.dynamicAnimation)==null?void 0:t.easing)==null?r.easing:n)}function ht(e,t,n,r,i){let a=performance.now(),o=s=>{if(e.globals.isDestroyed)return;let c=Math.max(0,Math.min(1,(s-a)/t));r(n(c),c),c<1?v.requestAnimationFrame(o):i&&i()};v.requestAnimationFrame(o)}function gt(e,{elPointsMain:t,realIndex:n,speed:r}){var i,a,o,s;if(!(t!=null&&t.node))return!1;let c=pt(e,n,!0);if(!c)return!1;let l=e.globals.prevStreamFrame;if(!l)return!1;let u=(i=l.xPixels)==null?void 0:i[n],d=(a=l.yPixels)==null?void 0:a[n];if(!u||!d)return!1;let f=t.node.querySelectorAll(`.apexcharts-marker`);if(!f.length)return!1;let p=((o=e.globals.seriesXvalues)==null?void 0:o[n])||[],m=((s=e.globals.seriesYvalues)==null?void 0:s[n])||[],h=mt(e),g=Math.max(1,r||1);return t.node.classList.remove(`apexcharts-element-hidden`),f.forEach(t=>{var r,i,a,o,s,f,_,v,y;let b=parseInt((i=(r=t.getAttribute(`j`))==null?t.getAttribute(`rel`):r)==null?``:i,10);if(!isFinite(b)||b<0||b>=c.join.toOld.length)return;let x=c.join.toOld[b],S=p[b]!=null&&m[b]!=null?[p[b],m[b]]:null;if(x===-1||!S){let n=t.style;n.opacity=`0`,ht(e,g,h,e=>{n.opacity=String(e)},()=>{n.opacity=``});return}let C=((a=u[x])==null?NaN:a)-S[0],w=((o=d[x])==null?NaN:o)-S[1];if(!isFinite(C)||!isFinite(w))return;let T=(_=(f=(s=l.rPixels)==null?void 0:s[n])==null?void 0:f[x])==null?NaN:_,E=parseFloat((y=(v=t.getAttribute(`r`))==null?t.getAttribute(`default-marker-size`):v)==null?``:y),D=isFinite(T)&&isFinite(E)&&E>0&&Math.abs(T-E)>.25;if(!(Math.abs(C)>=.5||Math.abs(w)>=.5)&&!D)return;let O=e=>{let n=C*(1-e),r=w*(1-e);if(D){let i=(T+(E-T)*e)/E;t.setAttribute(`transform`,`translate(${n+S[0]*(1-i)}, ${r+S[1]*(1-i)}) scale(${i})`)}else t.setAttribute(`transform`,`translate(${n}, ${r})`)};O(0),ht(e,g,h,O,()=>{t.removeAttribute(`transform`)})}),!0}function _t(e,{type:t,realIndex:n,pathFromLine:r,pathFromArea:i,linePaths:a,areaPaths:o}){var s,c;let l=pt(e,n);if(!l)return null;let{join:u,oldKeys:d,newKeys:f}=l,p=e.globals.prevStreamFrame;if(!p)return null;let m=(s=p.seriesY)==null?void 0:s[n],h=(c=e.seriesData.series)==null?void 0:c[n];if(m.length<2||h.length<2||m.some(e=>e===null)||h.some(e=>e===null))return null;let g=function(e,t){let n=new Set(e.exits),r=[],i=0;for(let t=0;t<e.toOld.length;t++){let a=e.toOld[t];if(a!==-1){for(;i<a;)n.has(i)&&r.push({oldJ:i,newJ:-1}),i++;r.push({oldJ:a,newJ:t}),i=a+1}else r.push({oldJ:-1,newJ:t})}for(;i<t;)n.has(i)&&r.push({oldJ:i,newJ:-1}),i++;return r}(u,d.length),_={};return Array.isArray(a)&&a.length===1&&r&&(_.line=lt(r,a[0],g,d.length,f.length,!1)),t===`area`&&Array.isArray(o)&&o.length===1&&i&&(_.area=lt(i,o[0],g,d.length,f.length,!0)),_.line||_.area?_:null}
1function vt({w:e,elSeries:t,record:n,newKeys:r,isHorizontal:i,speed:a}){var o;if(!ut(e)||!n||!Array.isArray(n.paths)||!(t!=null&&t.node))return;let s=new Set(r),c=n.paths.filter(e=>e&&e.d&&e.key!=null&&!s.has(e.key));if(!c.length)return;let l=new K(e),u=(o=e.globals.colors)==null?void 0:o[parseInt(String(n.realIndex),10)];c.forEach(n=>{let r=n.fill||u||`#c8c8c8`;String(r).indexOf(`url(`)===0&&(r=u||`#c8c8c8`);let o=l.drawPath({d:n.d,stroke:`none`,strokeWidth:0,fill:r,fillOpacity:1,classes:`apexcharts-bar-ghost`}),s=o.node;s.setAttribute(`pointer-events`,`none`),o.attr(`clip-path`,`url(#gridRectBarMask${e.globals.cuid})`),t.node.insertBefore(s,t.node.firstChild);let c=function(e){let t=/^M\s*([+-]?[\d.eE]+)[\s,]+([+-]?[\d.eE]+)/.exec(e||``);if(!t)return null;let n=parseFloat(t[1]),r=parseFloat(t[2]);return isFinite(n)&&isFinite(r)?{x:n,y:r}:null}(n.d),d=i?`left center`:`center bottom`;try{let e=s.getBBox();c&&e&&(d=i?Math.abs(c.x-e.x)<=Math.abs(c.x-(e.x+e.width))?`left center`:`right center`:Math.abs(c.y-(e.y+e.height))<=Math.abs(c.y-e.y)?`center bottom`:`center top`)}catch(e){}let f=s.style;f.transformBox=`fill-box`,f.transformOrigin=d;let p=Math.max(1,a||1),m=performance.now(),h=t=>{if(e.globals.isDestroyed||!s.parentNode)return;let n=Math.max(0,Math.min(1,(t-m)/p)),r=1-Math.pow(1-n,3),a=1-r;f.transform=i?`scaleX(${a})`:`scaleY(${a})`,f.opacity=String(1-r),n<1?v.requestAnimationFrame(h):s.parentNode.removeChild(s)};v.requestAnimationFrame(h)})}function yt(e,t,n){return[...e.querySelectorAll(t)].map(e=>{var t,r,i;return{text:e.textContent||``,display:(i=(r=(t=e.querySelector(`tspan`))==null?void 0:t.textContent)==null?e.textContent:r)==null?``:i,pos:parseFloat(e.getAttribute(n)||``),transform:e.getAttribute(`transform`)}})}function bt(e,t,n){return[...e.querySelectorAll(t)].map(e=>parseFloat(e.getAttribute(n)||``))}let xt=`:not(.apexcharts-tick-ghost)`,St=`.apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)${xt}`,Ct=`.apexcharts-yaxis-texts-g text${xt}`,wt=`.apexcharts-gridlines-vertical line${xt}`,Tt=`.apexcharts-gridlines-horizontal line${xt}`;function Et(e){var t,n;let r=e.globals;if(!((t=e.axisFlags)!=null&&t.isXNumeric)||r.isBarHorizontal||(n=e.config.xaxis)!=null&&n.reversed)return null;let i=r.minX,a=r.maxX,o=e.layout.gridWidth;return isFinite(i)&&isFinite(a)&&a>i&&o>0?{min:i,max:a,width:o}:null}function Dt(e,t){var n;let r=e.globals;if(r.isBarHorizontal||!Array.isArray(e.config.yaxis)||e.config.yaxis.length!==1||(n=e.config.yaxis[0])!=null&&n.logarithmic)return null;let i=r.minY,a=r.maxY;if(!(isFinite(i)&&isFinite(a)&&a>i))return null;let o=t.map(e=>e.pos).filter(e=>isFinite(e));return o.length<2?null:{min:i,max:a,pLo:Math.max(...o),pHi:Math.min(...o)}}function Ot(e,t){if(!e||!t)return null;let n=e.pHi-e.pLo,r=t.pHi-t.pLo,i=e.max-e.min,a=t.max-t.min;return n&&r&&i>0&&a>0?{toNew:o=>t.pLo+((t=>e.min+(t-e.pLo)/n*i)(o)-t.min)/a*r,toOld:o=>e.pLo+((e=>t.min+(e-t.pLo)/r*a)(o)-e.min)/i*n}:null}function kt(e,t,n,r){let i=t.style;i.opacity=`0`,ht(e,n,r,e=>{i.opacity=String(e)},()=>{i.opacity=``})}function At(e,t,n,r,i,a,o){n.forEach(e=>t.setAttribute(e,String(r))),ht(e,a,o,e=>{let a=String(r+(i-r)*e);n.forEach(e=>t.setAttribute(e,a))},()=>{n.forEach(e=>t.setAttribute(e,String(i)))})}function jt(e,{template:t,display:n,attrs:r,from:i,to:a,duration:o,ease:s}){let c=t.parentNode;if(!c)return;let l=t.cloneNode(!0);if(l.classList.add(`apexcharts-tick-ghost`),l.setAttribute(`pointer-events`,`none`),l.removeAttribute(`id`),n!==void 0){let e=l.querySelector(`tspan`);e?e.textContent=n:l.textContent=n;let t=l.querySelector(`title`);t&&(t.textContent=n)}r.forEach(e=>l.setAttribute(e,String(i)));let u=l.style;u.opacity=`1`,c.appendChild(l),ht(e,o,s,e=>{let t=String(i+(a-i)*e);r.forEach(e=>l.setAttribute(e,t)),u.opacity=String(1-e)},()=>{l.parentNode&&l.parentNode.removeChild(l)})}function Mt(e,{newLabels:t,oldLabels:n,posAttr:r,newLines:i,oldLines:a,lineAttrs:o,duration:l,ease:u,project:d}){let f=new Map;n.forEach((e,t)=>{f.has(e.text)||f.set(e.text,c(s({},e),{i:t}))});let p=new Set,m=i.length===t.length,h=a.length===n.length,g=n.map(e=>e.pos).concat(t.map(e=>parseFloat(e.getAttribute(r)||``))).filter(e=>isFinite(e)),_=Math.min(...g),v=Math.max(...g),y=Math.max(40,.25*(v-_)),b=e=>Math.max(_-y,Math.min(v+y,e)),x=(t,n)=>{if(!t)return;let r=parseFloat(t.getAttribute(o[0])||``),i=a[n.i];isFinite(r)&&isFinite(i)&&At(e,t,o,i,r,l,u)}
1;if(t.forEach((t,n)=>{let a=parseFloat(t.getAttribute(r)||``),s=f.get(t.textContent||``),c=m?i[n]:null;s&&p.add(s.i);let h=t.getAttribute(`transform`);if(s&&isFinite(s.pos)){if(isFinite(a)&&!(Math.abs(s.pos-a)<.5)){if(h||s.transform){let n=s.pos-a;if(isFinite(n)){let i=h||``;ht(e,l,u,e=>{let a=n*(1-e),o=r===`x`?`translate(${a} 0)`:`translate(0 ${a})`;t.setAttribute(`transform`,`${o} ${i}`.trim())},()=>{i?t.setAttribute(`transform`,i):t.removeAttribute(`transform`)})}x(c,s);return}At(e,t,[r],s.pos,a,l,u),x(c,s)}}else if(!s){if(d&&isFinite(a)&&!h){let n=isFinite(d.toOld(a))?b(d.toOld(a)):NaN;isFinite(n)&&Math.abs(n-a)>.5&&(At(e,t,[r],n,a,l,u),c&&At(e,c,o,n,a,l,u))}kt(e,t,l,u),c&&kt(e,c,l,u)}}),!d||!t.length)return;let S=0;n.forEach((n,s)=>{if(p.has(s)||!isFinite(n.pos)||n.transform||S>=20)return;let c=d.toNew(n.pos);!isFinite(c)||Math.abs(c-n.pos)<.5||(S++,jt(e,{template:t[0],display:n.display,attrs:[r],from:n.pos,to:b(c),duration:l,ease:u}),h&&i.length&&isFinite(a[s])&&jt(e,{template:i[0],attrs:o,from:a[s],to:b(d.toNew(a[s])),duration:l,ease:u}))})}function Nt(e){let t=e.globals,n=t.prevChromeFrame;if(t.prevChromeFrame=null,!n||!t.axisCharts||!d.isBrowser()||!ut(e)||!(e.seriesData.series||[]).some((t,n)=>pt(e,n,!0,!0)!==null))return;let r=e.dom.baseEl;if(!x.elementExists(r))return;let i=Math.max(1,e.config.chart.animations.dynamicAnimation.speed||1),a=mt(e);try{let t=[...r.querySelectorAll(Ct)],o=function(e,t){if(!e||!t)return null;let n=e.max-e.min,r=t.max-t.min;return n>0&&r>0&&e.width>0&&t.width>0?{toNew:i=>(e.min+i/e.width*n-t.min)/r*t.width,toOld:i=>(t.min+i/t.width*r-e.min)/n*e.width}:null}(n.xScale,Et(e)),s=Ot(n.yAnchors,Dt(e,t.map(e=>({pos:parseFloat(e.getAttribute(`y`)||``)}))));Mt(e,{newLabels:[...r.querySelectorAll(St)],oldLabels:n.xLabels,posAttr:`x`,newLines:[...r.querySelectorAll(wt)],oldLines:n.vGrid,lineAttrs:[`x1`,`x2`],duration:i,ease:a,project:o}),Mt(e,{newLabels:t,oldLabels:n.yLabels,posAttr:`y`,newLines:[...r.querySelectorAll(Tt)],oldLines:n.hGrid,lineAttrs:[`y1`,`y2`],duration:i,ease:a,project:s})}catch(e){}}let Pt=`.apexcharts-data-labels[data\\:dlKey]`,Ft=`.apexcharts-datalabel`,It=`.apexcharts-datalabel-total[data\\:dlTotalKey]`;function Lt(e){var t,n;let r=e.config.dataLabels;return!(!((t=r==null?void 0:r.animate)!=null&&t.enabled)&&!((n=r==null?void 0:r.countUp)!=null&&n.enabled))}function Rt(e){if(!isFinite(e))return 0;let t=String(Math.abs(e)),n=t.indexOf(`e`);if(n!==-1){let e=t.slice(0,n),r=parseInt(t.slice(n+1),10),i=e.indexOf(`.`),a=i===-1?0:e.length-i-1;return Math.min(6,Math.max(0,a-r))}let r=t.indexOf(`.`);return r===-1?0:Math.min(6,t.length-r-1)}function zt(e,t){let n=e.querySelector(`tspan`);n?n.textContent=t:e.textContent=t}function Bt(e,{el:t,oldCx:n,oldCy:r,duration:i,ease:a,delay:o=0}){let s=t.hasAttribute(`cx`)?t:t.querySelector(Ft);if(!s)return;let c=n-parseFloat(s.getAttribute(`cx`)||``),l=r-parseFloat(s.getAttribute(`cy`)||``);if(!isFinite(c)||!isFinite(l)||Math.abs(c)+Math.abs(l)<=.5)return;let u=t.getAttribute(`transform`)||``,d=()=>ht(e,i,a,e=>{let n=1-e;t.setAttribute(`transform`,`translate(${c*n} ${l*n}) ${u}`.trim())},()=>{u?t.setAttribute(`transform`,u):t.removeAttribute(`transform`)});o>0?(t.setAttribute(`transform`,`translate(${c} ${l}) ${u}`.trim()),setTimeout(()=>{e.globals.isDestroyed||d()},o)):d()}function Vt(e,{el:t,from:n,to:r,formatter:i,fmtOpts:a,duration:o,ease:s,delay:c=0}){if(!isFinite(n)||!isFinite(r)||Math.abs(r-n)<=1e-9)return;let l=Math.max(Rt(n),Rt(r)),u=e=>{let t=Number(e.toFixed(l)),n=t;if(typeof i==`function`)try{n=i(t,a)}catch(e){n=t}return String(n)},d=()=>ht(e,o,s,e=>{zt(t,u(n+(r-n)*e))},()=>{zt(t,u(r))});c>0?(zt(t,u(n)),setTimeout(()=>{e.globals.isDestroyed||d()},c)):d()}function Ht(e){var t,n;let r=e.globals,i=r.prevDataLabels;if(r.prevDataLabels=null,!i||!r.axisCharts||!d.isBrowser()||!Lt(e)||!ut(e))return;let a=e.dom.baseEl;if(!x.elementExists(a))return;let o=e.config.dataLabels,l=!!((t=o.animate)!=null&&t.enabled),u=!!((n=o.countUp)!=null&&n.enabled),f=o.formatter,p=Math.max(1,e.config.chart.animations.dynamicAnimation.speed||1),m=mt(e);try{a.querySelectorAll(Pt).forEach(t=>{let n=t.getAttribute(`data:dlKey`);if(!n)return;let r=t.querySelector(Ft);if(!r)return;let a=i.get(n),o=parseInt(t.getAttribute(`data:dlDelay`)||`0`,10)||0;if(l&&(a&&isFinite(a.cx)&&isFinite(a.cy)?Bt(e,{el:t,oldCx:a.cx,oldCy:a.cy,duration:p,ease:m,delay:o}):a||function(e,t,n,r){let i=t.style;i.opacity=`0`,ht(e,n,r,e=>{i.opacity=String(e)},()=>{i.opacity=``})}(e,t,p,m)),u&&a){let i=parseInt(n,10),l=parseInt(t.getAttribute(`data:dlJ`)||``,10);Vt(e,{el:r,from:a.val,to:parseFloat(t.getAttribute(`data:dlVal`)||``),formatter:f,fmtOpts:c(s({},e),{seriesIndex:i,dataPointIndex:isFinite(l)?l:0,w:e}),duration:p,ease:m,delay:o})}});let t=e.config.plotOptions.bar.dataLabels.total.formatter||f;a.querySelectorAll(It).forEach(n=>{let r=n.getAttribute(`data:dlTotalKey`);if(!r)return;let a=i.get(`total::${r}`);if(!a)return;let o=parseInt(n.getAttribute(`data:dlDelay`)||`0`,10)||0;if(l&&isFinite(a.cx)&&isFinite(a.cy)&&Bt(e,{el:n,oldCx:a.cx,oldCy:a.cy,duration:p,ease:m,delay:o}),u){let i=parseInt(n.getAttribute(`data:dlTotalSeries`)||r,10);Vt(e,{el:n,from:a.val,to:parseFloat(n.getAttribute(`data:dlTotalVal`)||``),formatter:t,fmtOpts:c(s({},e),{seriesIndex:i,dataPointIndex:0,w:e}),duration:p,ease:m,delay:o})}})}catch(e){}}class q{constructor(e,{toggleDataSeries:t,revertDefaultAxisMinMax:n,updateSeries:r}={}){this.w=e,this._toggleDataSeries=t||null,this._revertDefaultAxisMinMax=n||null,this._updateSeries=r||null,this.legendInactiveClass=`legend-mouseover-inactive`}clearSeriesCache(){let e=this.w;e.globals.cachedSelectors&&(delete e.globals.cachedSelectors.allSeriesEls,delete e.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){let e=this.w,t=`allSeriesEls`;return e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=e.dom.baseEl.getElementsByClassName(`apexcharts-series`)),e.globals.cachedSelectors[t]}getSeriesByName(e){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${x.escapeString(e)}']`)}isSeriesHidden(e){var t;let n=this.getSeriesByName(e),r=parseInt((t=n.getAttribute(`data:realIndex`))==null?`0`:t,10);return{isHidden:n.classList.contains(`apexcharts-series-collapsed`),realIndex:r}}addCollapsedClassToSeries(e,t){q.addCollapsedClassToSeries(this.w,e,t)}static addCollapsedClassToSeries(e,t,n){let r=!1;function i(e){for(let i=0;i<e.length;i++)e[i].index===n&&(t.node.classList.add(`apexcharts-series-collapsed`),r=!0)}if(i(e.globals.collapsedSeries),i(e.globals.ancillaryCollapsedSeries),!r||(e.globals.collapsingSeriesIndices||[]).indexOf(n)===-1||(t.node.classList.add(`apexcharts-series-collapsing`),!d.isBrowser()))return;let a=e.config.chart.animations,o=(a.dynamicAnimation.speed||0)+(a.speed||0)+100;setTimeout(()=>{e.globals.isDestroyed||t.node.classList.remove(`apexcharts-series-collapsing`)},o)}toggleSeries(e){var t;let n=this.isSeriesHidden(e);
1return(t=this._toggleDataSeries)==null||t.call(this,n.realIndex,n.isHidden),n.isHidden}showSeries(e){var t;let n=this.isSeriesHidden(e);n.isHidden&&((t=this._toggleDataSeries)==null||t.call(this,n.realIndex,!0))}hideSeries(e){var t;let n=this.isSeriesHidden(e);n.isHidden||(t=this._toggleDataSeries)==null||t.call(this,n.realIndex,!1)}prepareDataUpdate(){let e=this.w;this.clearSeriesCache(),e.globals.previousPaths=[],e.globals.collapsedSeries=[],e.globals.ancillaryCollapsedSeries=[],e.globals.collapsedSeriesIndices=[],e.globals.ancillaryCollapsedSeriesIndices=[]}resetSeries(e=!0,t=!0,n=!0){var r,i;let a=this.w;this.clearSeriesCache();let o=x.clone(a.globals.initialSeries);Array.isArray(o)||(o=x.clone(a.config.series)||[]),a.globals.previousPaths=[],n?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):o=this.emptyCollapsedSeries(o),a.config.series=o,e&&(t&&(a.interact.zoomed=!1,(r=this._revertDefaultAxisMinMax)==null||r.call(this)),(i=this._updateSeries)==null||i.call(this,o,a.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(e){let t=this.w;if(!Array.isArray(e))return e;for(let n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n]&&typeof e[n]==`object`?e[n].data=[]:e[n]=0);return e}_deriveSeriesNames(){let e=this.w,t=e.config.series||[],n=e.config.labels||[];return t.map((e,t)=>e&&typeof e==`object`&&e.name!=null?String(e.name):n[t]==null?`series-${t+1}`:String(n[t]))}reconcileCollapsedByName(){let e=this.w,t=e.globals,n=this._deriveSeriesNames(),r=r=>{let i=[],a=[];return r.forEach(r=>{let o=r&&r.name!=null?n.indexOf(r.name):r.index;if(o==null||o<0||o>=e.config.series.length)return;let s=e.config.series[o];r.index=o,r.data=t.axisCharts?s&&s.data?s.data.slice():[]:s,i.push(r),a.push(o)}),{records:i,indices:a}},i=r(t.collapsedSeries);t.collapsedSeries=i.records,t.collapsedSeriesIndices=i.indices;let a=r(t.ancillaryCollapsedSeries);t.ancillaryCollapsedSeries=a.records,t.ancillaryCollapsedSeriesIndices=a.indices,t.allSeriesCollapsed=t.collapsedSeries.length+t.ancillaryCollapsedSeries.length===e.config.series.length,this.emptyCollapsedSeries(e.config.series)}canvasRestyle(e){let t=this.w.globals.activeRenderer;t&&t.kind===`canvas`&&typeof t.restyle==`function`&&t.restyle(e)}highlightSeries(e){var t;let n=this.w,r=this.getSeriesByName(e),i=parseInt((t=r==null?void 0:r.getAttribute(`data:realIndex`))==null?``:t,10),a=`highlightSeriesEls`,o=n.globals.cachedSelectors[a];o||(o=n.dom.baseEl.querySelectorAll(`.apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis`),n.globals.cachedSelectors[a]=o);let s=null,c=null,l=null;if(n.globals.axisCharts||n.config.chart.type===`radialBar`){if(n.globals.axisCharts){s=n.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${i}']`),c=n.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${i}']`);let e=n.globals.seriesYAxisReverseMap[i];l=n.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}']`)}else s=n.dom.baseEl.querySelector(`.apexcharts-series[rel='${i+1}']`)}else s=n.dom.baseEl.querySelector(`.apexcharts-series[rel='${i+1}'] path`);for(let e=0;e<o.length;e++)o[e].classList.add(this.legendInactiveClass);if(s){if(!n.globals.axisCharts){let e=s.parentNode;e==null||e.classList.remove(this.legendInactiveClass)}s.classList.remove(this.legendInactiveClass),c!==null&&c.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass)}else for(let e=0;e<o.length;e++)o[e].classList.remove(this.legendInactiveClass);this.canvasRestyle(s&&!Number.isNaN(i)?{active:i,opacity:.2}:null)}toggleSeriesOnHover(e,t){let n=this.w;t||(t=e.target);let r=n.dom.baseEl.querySelectorAll(`.apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis`);if(e.type===`mousemove`){let e=parseInt(t.getAttribute(`rel`),10)-1;this.highlightSeries(n.seriesData.seriesNames[e])}else if(e.type===`mouseout`){for(let e=0;e<r.length;e++)r[e].classList.remove(this.legendInactiveClass);this.canvasRestyle(null)}}highlightRangeInSeries(e,t){let n=this.w,r=n.dom.baseEl.getElementsByClassName(`apexcharts-heatmap-rect`),i=e=>{for(let t=0;t<r.length;t++){let n=r[t].classList;typeof n[e]==`function`&&n[e](this.legendInactiveClass)}};if(t===`reset`)return void i(`remove`);let a=n.config.plotOptions.heatmap.colorScale.ranges,o=a&&a[e];if(o){i(`add`);for(let e=0;e<r.length;e++){let t=Number(r[e].getAttribute(`val`));t>=o.from&&t<=o.to&&r[e].classList.remove(this.legendInactiveClass)}}}getActiveConfigSeriesIndex(e=`asc`,t=[]){let n=this.w,r=0;if(n.config.series.length>1){let i=n.config.series.map((e,r)=>e.data&&e.data.length>0&&n.globals.collapsedSeriesIndices.indexOf(r)===-1&&(!n.globals.comboCharts||t.length===0||t.length&&t.indexOf(n.config.series[r].type)>-1)?r:-1);for(let t=e===`asc`?0:i.length-1;e===`asc`?t<i.length:t>=0;e===`asc`?t++:t--)if(i[t]!==-1){r=i[t];break}}return r}getActiveConfigSeriesIndexByGroup(e=[]){let t=this.w;return(t.labelData.seriesGroups||[]).map(n=>{let r=-1;
1return t.config.series.forEach((i,a)=>{n.indexOf(t.seriesData.seriesNames[a])!==-1&&(t.globals.comboCharts&&e.length&&e.indexOf(i.type)===-1||i.data&&i.data.length>0&&t.globals.collapsedSeriesIndices.indexOf(a)===-1&&(r=a))}),r})}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,t)=>e.type===`bar`||e.type===`column`?t:-1).filter(e=>e!==-1):this.w.config.series.map((e,t)=>t)}getPreviousPaths(){var e,t,n,r;let i=this.w;if(function(e){var t,n,r;let i=e.globals;if(i.streamScrolled=!1,!i.axisCharts||!e.seriesData||!Array.isArray(e.seriesData.series)||e.seriesData.series.length===0)return void(i.prevStreamFrame=null);let a=[];(n=(t=e.dom)==null?void 0:t.baseEl)!=null&&n.querySelectorAll&&e.dom.baseEl.querySelectorAll(`.apexcharts-marker`).forEach(e=>{var t,n,r,i,o;let s=parseInt((t=e.getAttribute(`index`))==null?``:t,10),c=parseInt((r=(n=e.getAttribute(`j`))==null?e.getAttribute(`rel`):n)==null?``:r,10),l=parseFloat((o=(i=e.getAttribute(`r`))==null?e.getAttribute(`default-marker-size`):i)==null?``:o);isFinite(s)&&isFinite(c)&&isFinite(l)&&((a[s]=a[s]||[])[c]=l)}),i.prevStreamFrame={seriesX:(e.seriesData.seriesX||[]).slice(),seriesY:e.seriesData.series.slice(),xPixels:(i.seriesXvalues||[]).slice(),yPixels:(i.seriesYvalues||[]).slice(),rPixels:a,labels:(i.labels||[]).slice(),isXNumeric:!!((r=e.axisFlags)!=null&&r.isXNumeric)}}(i),function(e){let t=e.globals;if(t.prevChromeFrame=null,!t.axisCharts||!d.isBrowser())return;let n=e.dom.baseEl;if(x.elementExists(n))try{let r=yt(n,Ct,`y`);t.prevChromeFrame={xLabels:yt(n,St,`x`),yLabels:r,vGrid:bt(n,wt,`x1`),hGrid:bt(n,Tt,`y1`),xScale:Et(e),yAnchors:Dt(e,r)}}catch(e){t.prevChromeFrame=null}}(i),function(e){let t=e.globals;if(t.prevDataLabels=null,!t.axisCharts||!d.isBrowser()||!Lt(e))return;let n=e.dom.baseEl;if(x.elementExists(n))try{let e=new Map;n.querySelectorAll(Pt).forEach(t=>{let n=t.getAttribute(`data:dlKey`);if(!n)return;let r=t.querySelector(Ft);r&&e.set(n,{cx:parseFloat(r.getAttribute(`cx`)||``),cy:parseFloat(r.getAttribute(`cy`)||``),val:parseFloat(t.getAttribute(`data:dlVal`)||``)})}),n.querySelectorAll(It).forEach(t=>{let n=t.getAttribute(`data:dlTotalKey`);n&&e.set(`total::${n}`,{cx:parseFloat(t.getAttribute(`cx`)||``),cy:parseFloat(t.getAttribute(`cy`)||``),val:parseFloat(t.getAttribute(`data:dlTotalVal`)||``)})}),t.prevDataLabels=e.size?e:null}catch(e){t.prevDataLabels=null}}(i),!i.globals.axisCharts)return void(i.globals.previousPaths=i.seriesData.series);if(!x.elementExists(i.dom.baseEl))return void(i.globals.previousPaths=[]);function a(e,t,n){let r=e[t].childNodes,a={type:n,paths:[],realIndex:e[t].getAttribute(`data:realIndex`)};for(let e=0;e<r.length;e++)if(r[e].hasAttribute(`pathTo`)){let t=r[e].getAttribute(`pathTo`);a.paths.push({d:t,key:r[e].getAttribute(`data:pathKey`),fill:r[e].getAttribute(`fill`),flip:r[e].classList.contains(`apexcharts-flip-y`)||r[e].classList.contains(`apexcharts-flip-x`)})}i.globals.previousPaths.push(a)}i.globals.previousPaths=[],[`line`,`area`,`bar`,`rangebar`,`rangeArea`,`candlestick`,`radar`].forEach(e=>{let t=(n=e,i.dom.baseEl.querySelectorAll(`.apexcharts-${n}-series .apexcharts-series`));var n;for(let n=0;n<t.length;n++)a(t,n,e)});let o=i.dom.baseEl.querySelectorAll(`.apexcharts-${i.config.chart.type} .apexcharts-series`);if(o.length>0)for(let a=0;a<o.length;a++){let o=i.dom.baseEl.querySelectorAll(`.apexcharts-${i.config.chart.type} .apexcharts-series[data\\:realIndex='${a}'] rect`),s=[];for(let i=0;i<o.length;i++){let a=e=>o[i].getAttribute(e),c={x:parseFloat((e=a(`x`))==null?`0`:e),y:parseFloat((t=a(`y`))==null?`0`:t),width:parseFloat((n=a(`width`))==null?`0`:n),height:parseFloat((r=a(`height`))==null?`0`:r)};s.push({rect:c,color:o[i].getAttribute(`color`)})}i.globals.previousPaths.push(s)}}clearPreviousPaths(){let e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}handleNoData(){let e=this.w,t=e.config.noData,n=new K(this.w),r=e.globals.svgWidth/2,i=e.globals.svgHeight/2,a=`middle`;if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align===`left`?(r=10,a=`start`):t.align===`right`&&(r=e.globals.svgWidth-10,a=`end`),t.verticalAlign===`top`?i=50:t.verticalAlign===`bottom`&&(i=e.globals.svgHeight-50),r+=t.offsetX,i=i+p
1arseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==``){let o=n.drawText({x:r,y:i,text:t.text,textAnchor:a,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,cssClass:`apexcharts-text-nodata`});e.dom.Paper.add(o)}}setNullSeriesToZeroValues(e){let t=this.w;for(let n=0;n<e.length;n++)if(e[n].length===0)for(let r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[n].push(0);return e}hasAllSeriesEqualX(){let e=!0,t=this.w,n=this.filteredSeriesX();for(let t=0;t<n.length-1;t++)if(n[t][0]!==n[t+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}filteredSeriesX(){return this.w.seriesData.seriesX.map(e=>e.length>0?e:[])}}let Ut={accent:`--apx-accent`,fore:`--apx-fore`,grid:`--apx-grid`,surface:`--apx-surface`},J=`__apexcharts_themes__`;function Wt(){return globalThis[J]}globalThis[J]||(globalThis[J]={});let Gt=`#373d3f`,Kt=`#f6f7f8`,qt=`#e0e0e0`;class Jt{constructor(e){this.w=e,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed(),this._tokens={},this._namedTheme=null}checkHeatmapDistributed(){let{chart:e,plotOptions:t}=this.w.config;return e.type===`treemap`&&t.treemap&&t.treemap.distributed||e.type===`heatmap`&&t.heatmap&&t.heatmap.distributed}checkBarDistributed(){let{chart:e,plotOptions:t}=this.w.config;return t.bar&&t.bar.distributed&&(e.type===`bar`||e.type===`rangeBar`)}init(){this.setDefaultColors()}setDefaultColors(){var e;let t=this.w,n=new x;var r;this._namedTheme=(r=t.config.theme.name)&&Wt()[r]||null,this._applyNamedThemeMode(),t.dom.elWrap.classList.add(`apexcharts-theme-${t.config.theme.mode||`light`}`),this._applyModeDefaults(),this._tokens=this._resolveTokens(),this.applyTokenChrome(this._tokens);let i=(e=t.config.theme.accessibility)==null?void 0:e.colorBlindMode;if(i){t.globals.colors=this.getColorBlindColors(i),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors);let e=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes([`fill`,`stroke`],e),this.applyDataLabelsColors(e),this.applyRadarPolygonsColors(),this.applyMarkersColors(e),i===`highContrast`&&t.dom.elWrap.classList.add(`apexcharts-high-contrast`);return}let a=[...t.config.colors||t.config.fill.colors||[]];t.globals.colors=this.getColors(a),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.seriesData.series,n));let o=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes([`fill`,`stroke`],o),this.applyDataLabelsColors(o),this.applyRadarPolygonsColors(),this.applyMarkersColors(o)}_applyModeDefaults(){let e=this.w,t=e.config.theme.mode;t===`dark`?(e.config.chart.foreColor===Gt&&(e.config.chart.foreColor=Kt),e.config.theme.palette===`palette1`&&(e.config.theme.palette=`palette4`),e.config.tooltip&&e.config.tooltip.theme!==`light`&&(e.config.tooltip.theme=`dark`)):t===`light`&&(e.config.chart.foreColor===Kt&&(e.config.chart.foreColor=Gt),e.config.theme.palette===`palette4`&&(e.config.theme.palette=`palette1`))}_applyNamedThemeMode(){let e=this._namedTheme;if(!e)return;let t=this.w.config.theme;e.mode&&!t.mode&&(t.mode=e.mode),!e.accessibility||!e.accessibility.colorBlindMode||t.accessibility&&t.accessibility.colorBlindMode||(t.accessibility=t.accessibility||{},t.accessibility.colorBlindMode=e.accessibility.colorBlindMode),e.monochrome&&e.monochrome.enabled&&!t.monochrome.enabled&&(t.monochrome=s(s({},t.monochrome),e.monochrome))}_resolveTokens(){let e=this._namedTheme&&this._namedTheme.tokens||{},t=this._shouldUseTokens()?function(e){if(!d.isBrowser())return{};let t=e.dom&&(e.dom.elWrap||e.dom.baseEl)||null;if(!t)return{};let n=v.getComputedStyle(t);if(!n||typeof n.getPropertyValue!=`function`)return{};let r=e=>{let t=n.getPropertyValue(e);return t?String(t).trim():``},i={};for(let e in Ut){let t=r(Ut[e]);t&&(i[e]=t)}let a=[];for(let e=1;e<=24;e++){let t=r(`--apx-series-${e}`);if(!t)break;a.push(t)}return a.length&&(i.series=a),i}(this.w):{};return s(s({},e),t)}_shouldUseTokens(){return!1!==this.w.config.theme.tokens}applyTokenChrome(e){if(!e)return;let t=this.w;if(!e.fore||t.config.chart.foreColor!==Gt&&t.config.chart.foreColor!==Kt||(t.config.chart.foreColor=e.fore),e.grid){t.config.grid.borderColor===qt&&(t.config.grid.borderColor=e.grid);let n=t=>{t&&(t.axisBorder&&t.axisBorder.color===qt&&(t.axisBorder.color=e.grid),t.axisTicks&&t.axisTicks.color===qt&&(t.axisTicks.color=e.grid))};n(t.config.xaxis),Array.isArray(t.config.yaxis)?t.config.yaxis.forEach(n):n(t.config.yaxis)}let n=t.globals.tokenSurface,r=t.config.chart.background,i=!r||r===n;if(e.surface){if(i){t.config.chart.background=e.surface,t.globals.tokenSurface=e.surface;let n=t.dom.Paper&&t.dom.Paper.node;n&&n.style&&(n.style.background=e.surface)}}else if(n&&r===n){t.config.chart.background=``,t.globals.tokenSurface=void 0;let e=t.dom.Paper&&t.dom.Paper.node;e&&e.style&&(e.style.background=``)}}getColors(e){let t=this.w;return e&&e.length!==0?Array.isArray(e)&&e.length>0&&typeof e[0]==`function`?(this.isColorFn=!0,t.config.series.map((n,r)=>{let i=e[r]||e[0];return typeof i==`function`?i({value:t.globals.axisCharts?t.seriesData.series[r][0]||0:t.seriesData.series[r],seriesIndex:r,dataPointIndex:r,w:this.w}):i})):e:this.predefined()}applySeriesColors(e,t){e.forEach((e,n)=>{e&&(t[n]=e)})}
1getMonochromeColors(e,t,n){let{color:r,shadeIntensity:i,shadeTo:a}=e,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,s=1/(o/i),c=0;return Array.from({length:o},()=>{let e=a===`dark`?n.shadeColor(-1*c,r):n.shadeColor(c,r);return c+=s,e})}applyColorTypes(e,t){let n=this.w;e.forEach(e=>{n.globals[e].colors=n.config[e].colors===void 0?this.isColorFn?n.config.colors:t:n.config[e].colors.slice(),this.pushExtraColors(n.globals[e].colors)})}applyDataLabelsColors(e){let t=this.w;t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors===void 0?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){let e=this.w;e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors===void 0?[e.config.theme.mode===`dark`?`#343A3F`:`none`]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}applyMarkersColors(e){let t=this.w;t.globals.markers.colors=t.config.markers.colors===void 0?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}pushExtraColors(e,t,n=null){let r=this.w,i=t||r.seriesData.series.length;if(n===null&&(n=this.isBarDistributed||this.isHeatmapDistributed||r.config.chart.type===`heatmap`&&r.config.plotOptions.heatmap&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.seriesData.series.length&&(i=r.seriesData.series[r.globals.maxValsInArrayIndex].length*r.seriesData.series.length),e.length<i){let t=i-e.length;for(let n=0;n<t;n++)e.push(e[n])}}getColorBlindColors(e){let t={palette1:[`#008FFB`,`#00A86F`,`#CA8501`,`#FF4560`,`#846DD5`],palette2:[`#6978CB`,`#039DE2`,`#49A84D`,`#B39105`,`#D68000`],palette3:[`#209FCC`,`#648291`,`#D4526E`,`#0FA783`,`#A19285`],palette4:[`#2FA59D`,`#73A20B`,`#099DE1`,`#FD5D5D`,`#648291`],palette5:[`#2B908F`,`#F56566`,`#2EAB16`,`#FA4443`,`#1EA2BD`],palette6:[`#449DD1`,`#F86624`,`#EA3A4A`,`#9C63D1`,`#899E2A`],palette7:[`#DF475B`,`#1B998B`,`#7E75B7`,`#F46036`,`#B1911B`],palette8:[`#9C63D1`,`#F86624`,`#B38F04`,`#EA3A4A`,`#2FA2B3`],palette9:[`#98776F`,`#A19285`,`#A8705E`,`#BA6560`,`#A0927F`],palette10:[`#C91EFF`,`#A94BFD`,`#6C6AFE`,`#2983FF`,`#009ED8`],cvdDeuteranopia:[`#0072B2`,`#E69F00`,`#56B4E9`,`#009E73`,`#F0E442`,`#D55E00`,`#CC79A7`],cvdProtanopia:[`#0077BB`,`#EE7733`,`#009988`,`#EE3377`,`#BBBBBB`,`#33BBEE`,`#CC3311`],cvdTritanopia:[`#CC3311`,`#009988`,`#EE7733`,`#0077BB`,`#EE3377`,`#BBBBBB`,`#33BBEE`],highContrast:[`#005A9C`,`#C00000`,`#007A33`,`#6C3483`,`#7B3F00`,`#0097A7`,`#4A235A`]};return({deuteranopia:t.cvdDeuteranopia,protanopia:t.cvdProtanopia,tritanopia:t.cvdTritanopia,highContrast:t.highContrast}[e]||t.palette1).slice()}updateThemeOptions(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};let t=e.theme.mode,n=t===`dark`?`palette4`:t===`light`?`palette1`:e.theme.palette||`palette1`,r=t===`dark`?`#f6f7f8`:t===`light`?`#373d3f`:e.chart.foreColor||`#373d3f`;return e.tooltip.theme=t||`light`,e.chart.foreColor=r,e.theme.palette=n,e}predefined(){let e={palette1:[`#008FFB`,`#00A86F`,`#CA8501`,`#FF4560`,`#846DD5`],palette2:[`#6978CB`,`#039DE2`,`#49A84D`,`#B39105`,`#D68000`],palette3:[`#209FCC`,`#648291`,`#D4526E`,`#0FA783`,`#A19285`],palette4:[`#2FA59D`,`#73A20B`,`#099DE1`,`#FD5D5D`,`#648291`],palette5:[`#2B908F`,`#F56566`,`#2EAB16`,`#FA4443`,`#1EA2BD`],palette6:[`#449DD1`,`#F86624`,`#EA3A4A`,`#9C63D1`,`#899E2A`],palette7:[`#DF475B`,`#1B998B`,`#7E75B7`,`#F46036`,`#B1911B`],palette8:[`#9C63D1`,`#F86624`,`#B38F04`,`#EA3A4A`,`#2FA2B3`],palette9:[`#98776F`,`#A19285`,`#A8705E`,`#BA6560`,`#A0927F`],palette10:[`#C91EFF`,`#A94BFD`,`#6C6AFE`,`#2983FF`,`#009ED8`],cvdDeuteranopia:[`#0072B2`,`#E69F00`,`#56B4E9`,`#009E73`,`#F0E442`,`#D55E00`,`#CC79A7`],cvdProtanopia:[`#0077BB`,`#EE7733`,`#009988`,`#EE3377`,`#BBBBBB`,`#33BBEE`,`#CC3311`],cvdTritanopia:[`#CC3311`,`#009988`,`#EE7733`,`#0077BB`,`#EE3377`,`#BBBBBB`,`#33BBEE`],highContrast:[`#005A9C`,`#C00000`,`#007A33`,`#6C3483`,`#7B3F00`,`#0097A7`,`#4A235A`]},t=e[this.w.config.theme.palette]||e.palette1,n=this._tokens||{};if(Array.isArray(n.series)&&n.series.length)return n.series.slice();if(n.accent)return[n.accent,...t];let r=this._namedTheme;return r&&Array.isArray(r.palette)&&r.palette.length?r.palette.slice():t}}
1class Yt{constructor(e){this.w=e}draw(){this.drawTitleSubtitle(`title`),this.drawTitleSubtitle(`subtitle`)}drawTitleSubtitle(e){let t=this.w,n=e===`title`?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,i=n.offsetY,a=`middle`;if(n.align===`left`?(r=10,a=`start`):n.align===`right`&&(r=t.globals.svgWidth-10,a=`end`),r+=n.offsetX,i=i+parseInt(n.style.fontSize,10)+n.margin/2,n.text!==void 0){let o=new K(this.w).drawText({x:r,y:i,text:n.text,textAnchor:a,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});o.node.setAttribute(`class`,`apexcharts-${e}-text`),t.dom.Paper.add(o)}}}let Xt=class{constructor(e){this.w=e.w,this.dCtx=e}getTitleSubtitleCoords(e){let t=this.w,n=0,r=0,i=e===`title`?t.config.title.floating:t.config.subtitle.floating,a=t.dom.baseEl.querySelector(`.apexcharts-${e}-text`);if(a!==null&&!i){let e=a.getBoundingClientRect();n=e.width,r=t.globals.axisCharts?e.height+5:e.height}return{width:n,height:r}}getLegendsRect(){let e=this.w,t=e.dom.elLegendWrap;e.config.legend.height||e.config.legend.position!==`top`&&e.config.legend.position!==`bottom`||t&&(t.style.maxHeight=e.globals.svgHeight/2+`px`);let n=Object.assign({},x.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:n.height===0?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!==`left`&&e.config.legend.position!==`right`||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){let e=this.w,t=[];e.config.series.forEach((n,r)=>{n.data.forEach((n,i)=>{let a=(o=e.seriesData.series[r][i],e.config.dataLabels.formatter(o,{seriesIndex:r,dataPointIndex:i,w:e}));var o;t.push(a)})});let n=x.getLargestStringFromArr(t),r=new K(this.w),i=e.config.dataLabels.style,a=r.getTextRects(n,parseInt(i.fontSize).toString(),i.fontFamily);return{width:1.05*a.width,height:a.height}}getLargestStringFromMultiArr(e,t){let n=e;if(this.w.axisFlags.isMultiLineX){let e=t.map(e=>Array.isArray(e)?e.length:1),r=Math.max(...e);n=t[e.indexOf(r)]}return n}getSparklineStrokeInset(){let e=this.w,t=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width,n=t/2;if(!(e.config.stroke.show&&n>0))return{top:0,bottom:0};let r=e.globals.maxY-e.globals.minY,i=this._getSeriesYExtremes();if(!(this._strokeTracesDataPoints()&&r>0&&i))return{top:n,bottom:n};let a=Math.max(e.globals.svgHeight-t,0),o=a*(e.globals.maxY-i.max)/r,s=a*(i.min-e.globals.minY)/r;return{top:Math.min(Math.max(n-o,0),n),bottom:Math.min(Math.max(n-s,0),n)}}_strokeTracesDataPoints(){let e=this.w;if(!e.globals.axisCharts||e.config.chart.stacked)return!1;let t=[`line`,`area`,`scatter`];return e.config.series.every(n=>t.includes(n.type||e.config.chart.type))}_getSeriesYExtremes(){let e=1/0,t=-1/0;return this.w.seriesData.series.forEach(n=>{Array.isArray(n)&&n.forEach(n=>{Number.isFinite(n)&&(n<e&&(e=n),n>t&&(t=n))})}),e===1/0?null:{min:e,max:t}}};class Zt{constructor(e){this.w=e.w,this.dCtx=e}getxAxisLabelsCoords(){let e=this.w,t,n=e.labelData.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&n.length===0&&(n=e.labelData.categoryLabels),e.labelData.timescaleLabels.length>0){let n=this.getxAxisTimeScaleLabelsCoords();t={width:n.width,height:n.height},e.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=e.config.legend.position!==`left`&&e.config.legend.position!==`right`||e.config.legend.floating?0:this.dCtx.lgRect.width;let r=e.formatters.xLabelFormatter,i=x.getLargestStringFromArr(n),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(i,n);e.globals.isBarHorizontal&&(i=e.globals.yAxisScale[0].result.reduce((e,t)=>e.length>t.length?e:t,0),a=i);let o=new C(this.w),s=i;i=o.xLabelFormat(r,i,s,{i:void 0,dateFormatter:new S(this.w).formatDate,w:e}),a=o.xLabelFormat(r,a,s,{i:void 0,dateFormatter:new S(this.w).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&i===void 0||String(i).trim()===``)&&(i=`1`,a=i);let c=new K(this.w),l=c.getTextRects(i,e.config.xaxis.labels.style.fontSize),u=l;if(i!==a&&(u=c.getTextRects(a,e.config.xaxis.labels.style.fontSize)),t={width:l.width>=u.width?l.width:u.width,height:l.height>=u.height?l.height:u.height},t.width*n.length>
1e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&e.config.xaxis.labels.rotate!==0||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.layout.rotateXLabels=!0;let n=t=>c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,`rotate(${e.config.xaxis.labels.rotate} 0 0)`,!1);l=n(i),i!==a&&(u=n(a)),t.height=(l.height>u.height?l.height:u.height)/1.5,t.width=l.width>u.width?l.width:u.width}}else e.layout.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}getxAxisGroupLabelsCoords(){var e;let t=this.w;if(!t.labelData.hasXaxisGroups)return{width:0,height:0};let n=((e=t.config.xaxis.group.style)==null?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,r=t.labelData.groups.map(e=>e.title),i,a=x.getLargestStringFromArr(r),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,r),s=new K(this.w),c=s.getTextRects(a,n),l=c;return a!==o&&(l=s.getTextRects(o,n)),i={width:c.width>=l.width?c.width:l.width,height:c.height>=l.height?c.height:l.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}getxAxisTitleCoords(){let e=this.w,t=0,n=0;if(e.config.xaxis.title.text!==void 0){let r=new K(this.w).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}getxAxisTimeScaleLabelsCoords(){let e=this.w;this.dCtx.timescaleLabels=e.labelData.timescaleLabels.slice();let t=this.dCtx.timescaleLabels.map(e=>e.value),n=t.reduce((e,t)=>e===void 0?0:e.length>t.length?e:t,0),r=new K(this.w).getTextRects(n,e.config.xaxis.labels.style.fontSize);return 1.05*r.width*t.length>e.layout.gridWidth&&e.config.xaxis.labels.rotate!==0&&(e.globals.overlappingXLabels=!0),r}additionalPaddingXLabels(e){let t=this.w,n=t.globals,r=t.config,i=r.xaxis.type,a=e.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;let o=t.config.yaxis[0].opposite&&t.globals.isBarHorizontal,s=e=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){let i=this.dCtx.timescaleLabels[0],o=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+a/1.75-this.dCtx.yAxisWidthRight,s=i.position-a/1.75+this.dCtx.yAxisWidthLeft,c=t.config.legend.position===`right`&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;o>n.svgWidth-t.layout.translateX-c&&(n.skipLastTimelinelabel=!0),s<-(e.show&&!e.floating||r.chart.type!==`bar`&&r.chart.type!==`candlestick`&&r.chart.type!==`rangeBar`&&r.chart.type!==`boxPlot`&&r.chart.type!==`violin`?10:a/1.75)&&(n.skipFirstTimelinelabel=!0)}else i===`datetime`?this.dCtx.gridPad.right<a&&!t.layout.rotateXLabels&&(n.skipLastTimelinelabel=!0):i!==`datetime`&&this.dCtx.gridPad.right<a/2-this.dCtx.yAxisWidthRight&&!t.layout.rotateXLabels&&!t.config.xaxis.labels.trim&&(this.dCtx.xPadRight=a/2+1)},c=(e,t)=>{r.yaxis.length>1&&(e=>n.collapsedSeriesIndices.indexOf(e)!==-1)(t)||s(e)};r.yaxis.forEach((e,t)=>{o?(this.dCtx.gridPad.left<a&&(this.dCtx.xPadLeft=a/2+1),this.dCtx.xPadRight=a/2+1):c(e,t)})}}class Qt{constructor(e){this.w=e.w,this.dCtx=e}getyAxisLabelsCoords(){let e=this.w,t=[],n=10,r=new Ue(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return e.config.yaxis.map((i,a)=>{let o={seriesIndex:a,dataPointIndex:-1,w:e},s=e.globals.yAxisScale[a],c=0;if(!r.isYAxisHidden(a)&&i.labels.show&&i.labels.minWidth!==void 0&&(c=i.labels.minWidth),!r.isYAxisHidden(a)&&i.labels.show&&s.result.length){let r=e.formatters.yLabelFormatters[a],l=s.niceMin===Number.MIN_VALUE?0:s.niceMin,u=s.result.reduce((e,t)=>{var n,i;return((n=String(r(e,o)))==null?void 0:n.length)>((i=String(r(t,o)))==null?void 0:i.length)?e:t},l);u=r(u,o);let d=u;if(u!==void 0&&u.length!==0||(u=s.niceMax),String(u).length===1&&(u+=`.0`,d=u),e.globals.isBarHorizontal){n=0;let t=e.labelData.labels.slice();u=x.getLargestStringFromArr(t),u=r(u,{seriesIndex:a,dataPointIndex:-1,w:e}),d=this.dCtx.dimHelpers.getLargestStringFromMultiArr(u,t)}let f=new K(this.w),p=`rotate(${i.labels.rotate} 0 0)`,m=f.getTextRects(u,i.labels.style.fontSize,i.labels.style.fontFamily,p,!1),h=m;u!==d&&(h=f.getTextRects(d,i.labels.style.fontSize,i.labels.style.fontFamily,p,!1)),t.push({width:(c>h.width||c>m.width?c:h.width>m.width?h.width:m.width)+n,height:h.height>m.height?h.height:m.height})}else t.push({width:0,height:0})}),t}getyAxisTitleCoords(){let e=this.w,t=[];return e.config.yaxis.map(e=>{if(e.show&&e.title.text!==void 0){let n=new K(this.w),r=`rotate(${e.title.rotate} 0 0)`,i=n.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);t.push({width:i.width,height:i.height})}else t.push({width:0,height:0})}),t}getTotalYAxisWidth(){let e=this.w,t=0,n=0,r=0,i=e.globals.yAxisScale.length>1?10:0,a=new Ue(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),o=(o,s)=>{let c=e.config.yaxis[s].floating,l=0;o.width>
10&&!c?(l=o.width+i,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(l=l-o.width-i)):l=c||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?r+=l:n+=l,t+=l};return e.layout.yLabelsCoords.map((e,t)=>{o(e,t)}),e.layout.yTitleCoords.map((e,t)=>{o(e,t)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.layout.yLabelsCoords[0].width+e.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}class $t{constructor(e){this.w=e.w,this.dCtx=e}gridPadForColumnsInNumericAxis(e){let{w:t}=this,{config:n,globals:r}=t;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.series.length)return 0;let i=e=>[`bar`,`rangeBar`,`candlestick`,`boxPlot`,`violin`].includes(e),a=n.chart.type,o=0,s=i(a)?n.series.length:1;r.comboBarCount>0&&(s=r.comboBarCount),r.collapsedSeries.forEach(e=>{i(e.type)&&--s}),n.chart.stacked&&(s=1);let c=i(a)||r.comboBarCount>0,l=Math.abs(r.initialMaxX-r.initialMinX);if(c&&t.axisFlags.isXNumeric&&!r.isBarHorizontal&&s>0&&l!==0){l<=3&&(l=r.dataPoints);let t=l/e,i=r.minXDiff&&r.minXDiff/t>0?r.minXDiff/t:0;i>e/2&&(i/=2),o=i*parseInt(n.plotOptions.bar.columnWidth,10)/100,o<1&&(o=1),r.barPadForNumericAxis=o}return o}gridPadForStackedTotalDataLabels(){let{w:e}=this,t=e.config.plotOptions.bar.dataLabels.total;if(!e.globals.isBarHorizontal||!e.config.chart.stacked||e.config.chart.stackType!==`100%`||!t.enabled)return;let n=e.seriesData.stackedSeriesTotals||[];if(!n.length)return;let r=t.formatter||e.config.dataLabels.formatter,i=n.map((t,n)=>String(r?r(t,c(s({},e),{seriesIndex:0,dataPointIndex:n,w:e})):t)),a=new K(e).getTextRects(x.getLargestStringFromArr(i),parseFloat(t.style.fontSize).toString(),t.style.fontFamily).width+Math.abs(t.offsetX||0)+2;this.dCtx.xPadRight=Math.max(this.dCtx.xPadRight,a)}gridPadFortitleSubtitle(){let{w:e}=this,{globals:t}=e,n=this.dCtx.isSparkline||!t.axisCharts?0:10;[`title`,`subtitle`].forEach(r=>{e.config[r].text===void 0?n+=this.dCtx.isSparkline||!t.axisCharts?0:5:n+=e.config[r].margin}),!e.config.legend.show||e.config.legend.position!==`bottom`||e.config.legend.floating||t.axisCharts||(n+=10);let r=this.dCtx.dimHelpers.getTitleSubtitleCoords(`title`),i=this.dCtx.dimHelpers.getTitleSubtitleCoords(`subtitle`);this.dCtx.titleBlockPad=n,e.layout.gridHeight-=r.height+i.height+n,e.layout.translateY+=r.height+i.height+n}setGridXPosForDualYAxis(e,t){let{w:n}=this,r=new Ue(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});n.config.yaxis.forEach((i,a)=>{n.globals.ignoreYAxisIndexes.indexOf(a)!==-1||i.floating||r.isYAxisHidden(a)||(i.opposite&&(n.layout.translateX-=t[a].width+e[a].width+parseInt(i.labels.style.fontSize,10)/1.2+12),n.layout.translateX<2&&(n.layout.translateX=2))})}}let en=`http://www.w3.org/1999/xhtml`;function tn(e,t){return s(s({show:!0,position:`top-left`,separator:` / `,rootLabel:`All`,offsetX:0,offsetY:0,formatter:void 0},e.config.drilldown&&e.config.drilldown.breadcrumb||{}),t||{})}function nn(e,t){let n=[`.apexcharts-title-text`,`.apexcharts-subtitle-text`].map(t=>e.dom.baseEl.querySelector(t)).filter(e=>e!==null);if(!n.length)return;let r=e.dom.elWrap.getBoundingClientRect().top;for(let e=0;e<n.length+1;e++){let e=t.getBoundingClientRect(),i=n.find(t=>{let n=t.getBoundingClientRect();return e.left<n.right&&e.right>n.left&&e.top<n.bottom&&e.bottom>n.top});if(!i)break;t.style.top=i.getBoundingClientRect().bottom-r+4+`px`}}function rn(e,t,n,r){var i;let a=(i=t==null?void 0:t.dimensions)==null?void 0:i.dimHelpers,o=a?a.getTitleSubtitleCoords(`title`).height+a.getTitleSubtitleCoords(`subtitle`).height:0,s=n.getBoundingClientRect().height||18,c=r&&r.offsetY||0,l=function(e,t){let n=e.layout.translateY||0,r=e.dom.elWrap;if(!r)return n;let i=e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis-label`);if(!i.length)return n;let a=r.getBoundingClientRect().top,o=t.getBoundingClientRect(),s=n;for(let e=0;e<i.length;e++){let t=i[e].getBoundingClientRect();t.height&&(t.left>=o.right||t.right<=o.left||(s=Math.min(s,t.top-a)))}return s}(e,n);if(l-o>=s+1)return n.style.top=`${l-s-1+c}px`,!0;n.style.top=`${o+c}px`;let u=e.config.theme.mode===`dark`;return n.style.background=u?`rgba(20,24,30,0.82)`:`rgba(255,255,255,0.86)`,n.style.borderRadius=`4px`,!1}function an(e){let t=e.dom.elWrap;if(!t)return;let n=t.querySelector(`.apexcharts-breadcrumb`);n&&n.parentNode&&n.parentNode.removeChild(n)}class on{constructor(e,t){this.w=e,this.ctx=t,this.theme=t.theme,this.timeScale=t.timeScale,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new Xt(this),this.dimYAxis=new Qt(this),this.dimXAxis=new Zt(this),this.dimGrid=new $t(this),this.lgWidthForSideLegends=0,this.gridPad=s({},this.w.config.grid.padding),this.xPadRight=0,this.titleBlockPad=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){let e=this.w,t=e.globals;if(this.gridPad=s({},e.config.grid.padding),this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0},this.isSparkline){this.w.globals.markers.largestSize>
10&&Object.entries(this.gridPad).forEach(([e,t])=>{this.gridPad[e]=Math.max(t,this.w.globals.markers.largestSize/1.5)});let e=this.dimHelpers.getSparklineStrokeInset();this.gridPad.top=Math.max(e.top,this.gridPad.top),this.gridPad.bottom=Math.max(e.bottom,this.gridPad.bottom)}t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),this.gridPadForBreadcrumb(),this.dimGrid.gridPadForStackedTotalDataLabels(),e.layout.gridHeight=e.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,e.layout.gridWidth=e.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;let n=this.dimGrid.gridPadForColumnsInNumericAxis(e.layout.gridWidth);return e.layout.gridWidth=e.layout.gridWidth-2*n,e.layout.translateX=e.layout.translateX+this.gridPad.left+this.xPadLeft+(n>0?n:0),e.layout.translateY=e.layout.translateY+this.gridPad.top,{layout:{gridHeight:e.layout.gridHeight,gridWidth:e.layout.gridWidth,translateX:e.layout.translateX,translateY:e.layout.translateY,translateXAxisX:e.layout.translateXAxisX,translateXAxisY:e.layout.translateXAxisY,rotateXLabels:e.layout.rotateXLabels,xAxisHeight:e.layout.xAxisHeight,xAxisLabelsHeight:e.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:e.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:e.layout.xAxisLabelsWidth,yLabelsCoords:e.layout.yLabelsCoords,yTitleCoords:e.layout.yTitleCoords,gridPad:s({},this.gridPad)}}}gridPadForBreadcrumb(){var e,t,n,r,i,a;let o=this.w,s=o.config.chart.type===`treemap`;if(s){let n=(t=(e=o.config.plotOptions)==null?void 0:e.treemap)==null?void 0:t.zoom;if(n&&n.enabled){if(!1===tn(o,n.breadcrumb).show)return;this.gridPad.top+=22;return}}if(!o.globals.axisCharts||!this.ctx.drilldown||!o.config.drilldown||!o.config.drilldown.enabled||!1===tn(o).show)return;let c=parseFloat(String((a=(i=(r=(n=o.config.yaxis)==null?void 0:n[0])==null?void 0:r.labels)==null?void 0:i.style)==null?void 0:a.fontSize))||11,l=24+(s?0:Math.ceil(c*R/2)),u=s?0:this.titleBlockPad||0;this.gridPad.top+=Math.max(0,l-u)}setDimensionsForAxisCharts(){let e=this.w,t=e.globals,n=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();t.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),e.layout.yLabelsCoords=[],e.layout.yTitleCoords=[],e.config.yaxis.map((t,i)=>{e.layout.yLabelsCoords.push({width:n[i].width,index:i}),e.layout.yTitleCoords.push({width:r[i].width,index:i})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();let i=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(i,o,a),e.layout.translateXAxisY=e.layout.rotateXLabels?this.xAxisHeight/8:-4,e.layout.translateXAxisX=e.layout.rotateXLabels&&e.axisFlags.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(e.layout.rotateXLabels=!1,e.layout.translateXAxisY=(parseInt(e.config.xaxis.labels.style.fontSize,10)||12)/1.5*-1),e.layout.translateXAxisY=e.layout.translateXAxisY+e.config.xaxis.labels.offsetY,e.layout.translateXAxisX=e.layout.translateXAxisX+e.config.xaxis.labels.offsetX;let s=this.yAxisWidth,c=this.xAxisHeight;e.layout.xAxisLabelsHeight=this.xAxisHeight-o.height,e.layout.xAxisGroupLabelsHeight=e.layout.xAxisLabelsHeight-i.height,e.layout.xAxisLabelsWidth=this.xAxisWidth,e.layout.xAxisHeight=this.xAxisHeight;let l=10;(e.config.chart.type===`radar`||this.isSparkline)&&(s=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||e.config.chart.type===`treemap`)&&(s=0,c=0,l=0),this.isSparkline||e.config.chart.type===`treemap`||this.dimXAxis.additionalPaddingXLabels(i);let u=()=>{e.layout.translateX=s+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-this.lgRect.height-c-(this.isSparkline||e.config.chart.type===`treemap`?0:e.layout.rotateXLabels?10:15),e.layout.gridWidth=t.svgWidth-s-2*this.datalabelsCoords.width};switch(e.config.xaxis.position===`top`&&(l=e.layout.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case`bottom`:e.layout.translateY=l,u();break;case`top`:e.layout.translateY=this.lgRect.height+l,u();break;case`left`:e.layout.translateY=l,e.layout.translateX=this.lgRect.width+s+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-c-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-s-2*this.datalabelsCoords.width;break;case`right`:e.layout.translateY=l,e.layout.translateX=s+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-c-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-s-2*this.datalabelsCoords.width-5;break;default:throw Error(`Legend position not supported`)}this.dimGrid.setGridXPosForDualYAxis(r,n),new Ye(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(n,r)}setDimensionsForNonAxisCharts(){let e=this.w,t=e.globals,n=e.config,r=0;if(e.config.legend.show&&!e.config.legend.floating&&(r=20),n.chart.type===`unit`){let i=n.legend.show&&!n.legend.floating,a=n.legend.position,o=0,s=0;i&&(a===`bottom`||a===`top`?o=this.lgRect.height:s=this.lgRect.width+r),e.layout.gridWidth=t.svgWidth-s,e.layout.gridHeight=t.svgHeight-o,e.layout.translateX=a===`left`?s:0,e.layout.translateY=a===`top`?o:0;return}let i=n.chart.type===`sunburst`?`sunburst`:n.chart.type===`pie`||n.chart.type===`polarArea`||n.chart.type===`donut`?`pie`:`radialBar`,a=n.plotOptions[i].offsetY,o=n.plotOptions[i].offsetX;if(!n.legend.show||n.legend.floating){e.layout.gridHeight=t.svgHeight;let n=e.dom.elWrap.getBoundingClientRect().width;e.layout.gridWidth=Math.min(n,e.layout.gridHeight),e.layout.translateY=a,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;return}switch(n.legend.position){case`bottom`:e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=a-10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case`top`:e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=this.lgRect.height+a+10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case`left`:e.layout.gridWidth=t.svgWidth-this.lgRect.width-r,e.layout.gridHeight=n.chart.height===`auto`?e.layout.gridWidth:t.svgHeight,e.layout.translateY=a,e.layout.translateX=o+this.lgRect.width+r;break;case`right`:e.layout.gridWidth=t.svgWidth-this.lgRect.width-r-5,e.layout.gridHeight=n.chart.height===`auto`?e.layout.gridWidth:t.svgHeight,e.layout.translateY=a,e.layout.translateX=o+10;break;default:throw Error(`Legend position not supported`)}}conditionalChecksForAxisCoords(e,t,n){let r=this.w,i=r.labelData.hasXaxisGroups?2:1,a=n.height+e.height+t.height,o=r.axisFlags.isMultiLineX?1.2:R,s=r.layout.rotateXLabels?22:10,c=r.layout.rotateXLabels&&r.config.legend.position===`bottom`?10:0;this.xAxisHeight=a*o+i*s+c,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);let l=0,u=0;
1r.config.yaxis.forEach(e=>{l+=e.labels.minWidth,u+=e.labels.maxWidth}),this.yAxisWidth<l&&(this.yAxisWidth=l),this.yAxisWidth>u&&(this.yAxisWidth=u)}}let sn=36e5,cn=24*sn,ln=7*cn,un=[{unit:`second`,step:1,approxMs:1e3},{unit:`second`,step:5,approxMs:5e3},{unit:`second`,step:15,approxMs:15e3},{unit:`second`,step:30,approxMs:3e4},{unit:`minute`,step:1,approxMs:6e4},{unit:`minute`,step:5,approxMs:3e5},{unit:`minute`,step:15,approxMs:9e5},{unit:`minute`,step:30,approxMs:18e5},{unit:`hour`,step:1,approxMs:sn},{unit:`hour`,step:3,approxMs:3*sn},{unit:`hour`,step:6,approxMs:6*sn},{unit:`hour`,step:12,approxMs:12*sn},{unit:`day`,step:1,approxMs:cn},{unit:`day`,step:2,approxMs:2*cn},{unit:`week`,step:1,approxMs:ln},{unit:`week`,step:2,approxMs:2*ln},{unit:`month`,step:1,approxMs:2592e6},{unit:`month`,step:3,approxMs:7776e6},{unit:`month`,step:6,approxMs:15552e6},{unit:`year`,step:1,approxMs:31536e6},{unit:`year`,step:2,approxMs:63072e6},{unit:`year`,step:5,approxMs:15768e7},{unit:`year`,step:10,approxMs:31536e7},{unit:`year`,step:25,approxMs:7884e8},{unit:`year`,step:50,approxMs:15768e8},{unit:`year`,step:100,approxMs:31536e8}];class dn{constructor(e,t){this.w=e,this.ctx=t,this.tickInterval=null,this.timeScaleArray=[],this.utc=e.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(e,t){let n=this.w;if(n.globals.allSeriesCollapsed)return n.labelData.labels=[],n.labelData.timescaleLabels=[],this.timeScaleArray=[],[];let r=t-e,i=r/cn;n.interact.disableZoomIn=!1,n.interact.disableZoomOut=!1,i<.00011574074074074075?n.interact.disableZoomIn=!0:i>5e4&&(n.interact.disableZoomOut=!0);let a=Number.isFinite(n.config.xaxis.tickAmount)?n.config.xaxis.tickAmount:10;this.tickInterval=function(e,t){if((!Number.isFinite(t)||t<=0)&&(t=10),e<=0)return un[0];let n=e/t,r=un[0],i=1/0;for(let e of un){let t=Math.abs(Math.log(e.approxMs/n));t<i&&(i=t,r=e)}return r}(r,a);let o=this.generateBaseTicks(e,t,this.tickInterval);return this.timeScaleArray=o,o}generateBaseTicks(e,t,n){let r=this.w,i=new S(r),a=this.utc,o=r.layout.gridWidth,s=t-e,c=[],l=i.ceilToBoundary(e,n.unit,n.step,a),u=0;for(;l<=t&&u<5e3;){let t=i.getDateFields(l,a),r=s>0?(l-e)/s*o:0;c.push({timestamp:l,position:r,unit:n.unit,year:t.year,month:t.month+1,day:t.date,hour:t.hour,minute:t.minute,second:t.second,value:l}),l=i.addInterval(l,n.unit,n.step,a),u++}return c}recalcDimensionsBasedOnFormat(e){let t=this.w,n=this.formatDates(e),r=this.removeOverlappingTS(n);t.labelData.timescaleLabels=r.slice();let i=new on(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(i.layout)}formatDates(e){let t=this.w,n=new S(t),r=t.config.xaxis.labels.format,i=t.config.xaxis.labels.datetimeFormatter,a=this.utc,o=(e,t=2)=>String(e).padStart(t,`0`),s=r||this._effectiveFormat(e,i);return e.map(e=>{let t=n.getDate(e.timestamp),r=n.formatDate(t,s);return{dateString:`${e.year}-${o(e.month)}-${o(e.day)}T${o(e.hour)}:${o(e.minute)}:${o(e.second)}.000${a?`Z`:``}`,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}})}_effectiveFormat(e,t){if(e.length===0)return t.day||`dd MMM`;let n=this.tickInterval&&this.tickInterval.unit||e[0].unit,r=t[n===`week`?`day`:n]||t.day||`dd MMM`,i=e[0],a=e[e.length-1],o=i.year!==a.year,s=o||i.month!==a.month||i.day!==a.day,c=/y/i.test(r),l=/M/.test(r),u=/d/i.test(r);return n===`month`||n===`week`||n===`day`?o&&!c?r+` yyyy`:r:(n===`hour`||n===`minute`||n===`second`)&&s&&!u&&!l?(o?`dd MMM yyyy`:`dd MMM`)+` `+r:r}removeOverlappingTS(e){if(e.length===0)return[];let t=this.w,n=new K(t),r,i=!1;e[0].value&&e.every(t=>t.value.length===e[0].value.length)&&(i=!0,r=n.getTextRects(e[0].value,t.config.xaxis.labels.style.fontSize).width);let a=0;return e.map((o,s)=>{if(s===0||!t.config.xaxis.labels.hideOverlappingLabels)return o;let c=i?r:n.getTextRects(e[a].value,t.config.xaxis.labels.style.fontSize).width,l=e[a].position;return o.position>l+c+10?(a=s,o):null}).filter(e=>e!==null)}}let fn=`__apexcharts_registry__`,pn=`__apexcharts_custom_types__`;function mn(){return globalThis[fn]}function hn(){return globalThis[pn]}function gn(e){return hn().has(e)}function _n(e){Object.assign(mn(),e)}function Y(e){let t=mn()[e];if(!t)throw Error(`ApexCharts: chart type "${e}" is not registered. Bundler: import 'apexcharts/${e}'. Script tag: add <script src=".../dist/${e}.js"> after apexcharts.core.js, or load the full apexcharts.js instead.`);return t}globalThis[fn]||(globalThis[fn]={}),globalThis[pn]||(globalThis[pn]=new Set);class vn{constructor(e,t,n){this.w=t,this.ctx=n,this.el=e}setupElements(){let{globals:e,config:t}=this.w,n=t.chart.type,r=[`line`,`area`,`bar`,`rangeBar`,`rangeArea`,`candlestick`,`boxPlot`,`violin`,`scatter`,`bubble`],i=[...r,`radar`,`heatmap`,`treemap`],a=!i.includes(n)&&![`pie`,`donut`,`polarArea`,`radialBar`].includes(n)&&gn(n);e.axisCharts=i.includes(n)||a,e.xyCharts=r.includes(n)||a,e.isBarHorizontal=[`bar`,`rangeBar`,`boxPlot`,`violin`].includes(n)&&t.plotOptions.bar.horizontal,e.chartClass=`.apexcharts${e.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),K.setAttrs(this.w.dom.elWrap,{id:e.chartClass.substring(1),class:`apexcharts-canvas ${e.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);let o=globalThis.SVG;if(this.w.dom.Paper=o().addTo(this.w.dom.elWrap),this.w.dom.Paper.attr({class:`apexcharts-svg`,"xmlns:data":`ApexChartsNS`,transform:`translate(${t.chart.offsetX}, ${t.chart.offsetY})`}),this.w.dom.Paper.node.style.background=t.theme.mode!==`dark`||t.chart.background?t.theme.mode!==`light`||t.chart.background?t.chart.background:`#fff`:`#343A3F`,this.setSVGDimensions(),this.w.dom.elLegendForeign=v.createElementNS(H,`foreignObject`),K.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),this.w.dom.elLegendWrap=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),this.w.dom.elLegendWrap.classList.add(`apexcharts-legend`),this.w.dom.elWrap.appendChild(this.w.dom.elLegendWrap),this.w.dom.Paper.node.appendChild(this.w.dom.elLegendForeign),t.chart.accessibility.enabled&&t.chart.accessibility.announcements.enabled){let e=v.createElement(`div`);e.className=`apexcharts-sr-status`,e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`),e.setAttribute(`aria-atomic`,`true`),this.w.dom.elWrap.appendChild(e)}if(t.chart.accessibility.enabled){let e=this.getAccessibleChartLabel(),n=t.chart.accessibility.keyboard.enabled&&t.chart.accessibility.keyboard.navigation.enabled?`application`:`img`;if(this.w.dom.Paper.attr({role:n,"aria-label":e}),t.chart.accessibility.description){let e=v.createElementNS(H,`desc`);e.textContent=t.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(e,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:`apexcharts-inner apexcharts-graphical`}
1),this.w.dom.elDefs=this.w.dom.Paper.defs(),this.w.dom.Paper.add(this.w.dom.elGraphical),this.w.dom.elGraphical.add(this.w.dom.elDefs)}_classifySeriesByType(e){let{w:t}=this,{config:n,globals:r}=t,i={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},violin:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},a={},o=n.chart.type||`line`,s=0;return this.w.seriesData.series.forEach((n,r)=>{var c,l;let u=((c=e[r])==null?void 0:c.type)===`column`?`bar`:((l=e[r])==null?void 0:l.type)||(o===`column`?`bar`:o),d=i;d[u]?(u===`rangeArea`?(d[u].series.push(this.w.rangeData.seriesRangeStart[r]),d[u].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[r])):d[u].series.push(n),d[u].i.push(r),u===`bar`&&(t.globals.columnSeries=i.bar)):[`heatmap`,`treemap`,`pie`,`donut`,`polarArea`,`radialBar`,`radar`,`unit`,`sunburst`].includes(u)||gn(u)&&(a[u]||(a[u]={series:[],i:[]}),a[u].series.push(n),a[u].i.push(r)),o!==u&&u!==`scatter`&&s++}),s>0&&i.bar.series.length>0&&n.plotOptions.bar.horizontal&&(s-=i.bar.series.length,i.bar={series:[],i:[]},t.globals.columnSeries={series:[],i:[]}),r.comboCharts||(r.comboCharts=s>0),{seriesTypes:i,customBuckets:a}}plotChartType(e,t){let{w:n,ctx:r}=this,i=r.renderer&&r.renderer.kind===`canvas`;i&&r.renderer.beginSeries();let{seriesTypes:a,customBuckets:o}=this._classifySeriesByType(e),s=this._instantiateSeriesRenderers(a,t),c=this._assembleSeriesGraphics(a,o,s,t);if(i){let e=r.renderer;if(e&&e._repaintHostInPlace){e._repaintHostInPlace=!1;let t=this.w.dom.elGraphical.node.querySelector(`.apexcharts-canvas-series-wrap`);if(t&&e.canRepaintInPlace&&e.canRepaintInPlace())return e.repaintInPlace(),(Array.isArray(c)?c:[c]).forEach(e=>{e&&e.node&&t.appendChild(e.node)}),[]}let t=r.renderer.present();if(t){let e=new K(n).group({class:`apexcharts-canvas-series-wrap`});return e.add(t),(Array.isArray(c)?c:[c]).forEach(t=>{t&&e.add(t)}),e}}return c}_instantiateSeriesRenderers(e,t){let{w:n,ctx:r}=this,{config:i,globals:a}=n,o=e.line.series.length>0||e.area.series.length>0||e.scatter.series.length>0||e.bubble.series.length>0||e.rangeArea.series.length>0||!a.comboCharts&&[`line`,`area`,`scatter`,`bubble`,`rangeArea`].includes(i.chart.type)?new(Y(`line`))(r.w,r,t):null,s=e.candlestick.series.length>0||e.boxPlot.series.length>0||!a.comboCharts&&[`candlestick`,`boxPlot`].includes(i.chart.type)?new(Y(`candlestick`))(r.w,r,t):null,c=e.violin.series.length>0||!a.comboCharts&&i.chart.type===`violin`?new(Y(`violin`))(r.w,r,t):null;return r.pie=!a.comboCharts&&[`pie`,`donut`,`polarArea`].includes(i.chart.type)?new(Y(`pie`))(r.w,r):null,r.rangeBar=e.rangeBar.series.length>0||!a.comboCharts&&i.chart.type===`rangeBar`?new(Y(`rangeBar`))(r.w,r,t):null,{line:o,boxCandlestick:s,violin:c}}_assembleSeriesGraphics(e,t,n,r){let{w:i,ctx:a}=this,{config:o,globals:s}=i,{line:c,boxCandlestick:l,violin:u}=n,d=[];if(s.comboCharts){let n=new V(this.w);if(e.area.series.length>0&&d.push(...n.drawSeriesByGroup(e.area,s.areaGroups,`area`,c)),e.bar.series.length>0){if(o.chart.stacked){let t=new(Y(`barStacked`))(a.w,a,r);d.push(t.draw(e.bar.series,e.bar.i))}else a.bar=new(Y(`bar`))(a.w,a,r),d.push(a.bar.draw(e.bar.series,e.bar.i))}if(e.rangeArea.series.length>0&&d.push(c.draw(e.rangeArea.series,`rangeArea`,e.rangeArea.i,e.rangeArea.seriesRangeEnd)),e.line.series.length>0&&d.push(...n.drawSeriesByGroup(e.line,s.lineGroups,`line`,c)),e.candlestick.series.length>0&&d.push(l.draw(e.candlestick.series,`candlestick`,e.candlestick.i)),e.boxPlot.series.length>0&&d.push(l.draw(e.boxPlot.series,`boxPlot`,e.boxPlot.i)),e.violin.series.length>0&&d.push(u.draw(e.violin.series,`violin`,e.violin.i)),e.rangeBar.series.length>0&&d.push(a.rangeBar.draw(e.rangeBar.series,e.rangeBar.i)),e.scatter.series.length>0){let t=new(Y(`line`))(a.w,a,r,!0);d.push(t.draw(e.scatter.series,`scatter`,e.scatter.i))}if(e.bubble.series.length>0){let t=new(Y(`line`))(a.w,a,r,!0);d.push(t.draw(e.bubble.series,`bubble`,e.bubble.i))}
1Object.keys(t).forEach(e=>{let n=t[e];if(n.series.length>0){let t=new(Y(e))(a.w,a,r);d.push(t.draw(n.series,e,n.i))}})}else{let e=o.chart.type;switch(e){case`line`:d=c.draw(this.w.seriesData.series,`line`);break;case`area`:d=c.draw(this.w.seriesData.series,`area`);break;case`bar`:o.chart.stacked?d=new(Y(`barStacked`))(a.w,a,r).draw(this.w.seriesData.series):(a.bar=new(Y(`bar`))(a.w,a,r),d=a.bar.draw(this.w.seriesData.series));break;case`candlestick`:d=l.draw(this.w.seriesData.series,`candlestick`);break;case`boxPlot`:d=l.draw(this.w.seriesData.series,e);break;case`violin`:d=u.draw(this.w.seriesData.series,`violin`);break;case`rangeBar`:d=a.rangeBar.draw(this.w.seriesData.series);break;case`rangeArea`:d=c.draw(this.w.rangeData.seriesRangeStart,`rangeArea`,void 0,this.w.rangeData.seriesRangeEnd);break;case`heatmap`:d=new(Y(`heatmap`))(a.w,a,r).draw(this.w.seriesData.series);break;case`treemap`:d=new(Y(`treemap`))(a.w,a).draw(this.w.seriesData.series);break;case`unit`:d=new(Y(`unit`))(a.w,a).draw(this.w.seriesData.series);break;case`sunburst`:d=new(Y(`sunburst`))(a.w,a).draw(this.w.seriesData.series);break;case`pie`:case`donut`:case`polarArea`:d=a.pie.draw(this.w.seriesData.series);break;case`radialBar`:d=new(Y(`radialBar`))(a.w,a).draw(this.w.seriesData.series);break;case`radar`:d=new(Y(`radar`))(a.w,a).draw(this.w.seriesData.series);break;default:d=gn(e)?new(Y(e))(a.w,a,r).draw(this.w.seriesData.series,e):c.draw(this.w.seriesData.series)}}return d}_extractDimensionUnit(e){return String(e).split(/[0-9]+/g).pop()}setSVGDimensions(){var e;let{globals:t,config:n}=this.w;n.chart.width=n.chart.width||`100%`,n.chart.height=n.chart.height||`auto`;let r=n.chart.width,i=n.chart.height;t.svgWidth=NaN,t.svgHeight=NaN;let a=x.getDimensions(this.el),o=this._extractDimensionUnit(r);o===`%`?x.isNumber(a[0])&&(a[0].width===0&&(a=x.getDimensions(this.el.parentNode)),t.svgWidth=a[0]*parseInt(r,10)/100):o!==`px`&&o!==``||(t.svgWidth=parseInt(r,10));let s=this._extractDimensionUnit(i);if(t.svgHeight=i!==`auto`&&i!==``?s===`%`?x.getDimensions(this.el.parentNode)[1]*parseInt(i,10)/100:parseInt(i,10):t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2,t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),K.setAttrs(this.w.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),s!==`%`&&d.isBrowser()){let r=t.axisCharts&&(n.grid.show||n.dataLabels.enabled||n.xaxis.labels.show||n.xaxis.axisBorder.show||n.xaxis.axisTicks.show||n.yaxis.some(e=>e.show&&(e.labels.show||e.axisBorder.show||e.axisTicks.show))),i=n.chart.sparkline.enabled||!r?0:n.chart.parentHeightOffset,a=this.w.dom.Paper.node;(e=a.parentNode)!=null&&e.parentNode&&(a.parentNode.parentNode.style.minHeight=`${t.svgHeight+i}px`)}this.w.dom.elWrap.style.width=`${t.svgWidth}px`,this.w.dom.elWrap.style.height=`${t.svgHeight}px`,t.lastResizeSignature=this.getResizeSignature()}getResizeSignature(){let{config:e}=this.w,t=(e.chart.width||`100%`).toString().trim(),n=(e.chart.height||`auto`).toString().trim(),r=0,i=0;if(t.endsWith(`%`)){let e=x.getDimensions(this.el);e[0]||(e=x.getDimensions(this.el.parentNode)),r=e[0]||0}n.endsWith(`%`)&&(i=x.getDimensions(this.el.parentNode)[1]||0);let a={w:Math.round(r),h:Math.round(i)};return e.responsive&&e.responsive.length&&d.isBrowser()&&(a.iw=window.innerWidth),a}shiftGraphPosition(){let{globals:e}=this.w,{translateY:t,translateX:n}=e;K.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${n}, ${t})`})}resizeNonAxisCharts(){var e,t,n,r,i,a,o,s,c;let{w:l}=this,u=l.config.chart.height?String(l.config.chart.height):``,f=u!==``&&u!==`auto`,p=u.includes(`%`),m=0,h=l.config.chart.sparkline.enabled?1:15;h+=l.layout.gridPad.bottom,[`top`,`bottom`].includes(l.config.legend.position)&&l.config.legend.show&&!l.config.legend.floating&&(m=((t=(e=this.ctx.legend)==null?void 0:e.legendHelpers.getLegendDimensions().clwh)==null?0:t)+7);let g=l.dom.baseEl.querySelector(`.apexcharts-radialbar, .apexcharts-pie, .apexcharts-sunburst`),_=l.globals.pieExternalLabelMarginY||0,v=_>0?2*l.globals.radialSize+2*_:2.05*l.globals.radialSize,y=l.config.chart.type===`sunburst`?`sunburst`:l.config.chart.type===`pie`||l.config.chart.type===`donut`||l.config.chart.type===`polarArea`?`pie`:`radialBar`,b=Math.abs(l.config.plotOptions[y].endAngle-l.config.plotOptions[y].startAngle);if(g&&!l.config.chart.sparkline.enabled&&b<360){let e=x.getBoundingClientRect(this.w.dom.Paper.node),t=1/0,c=-1/0,u=n=>{var r,i,a,o;if((r=n.classList)!=null&&r.contains(`apexcharts-radialbar-hollow`))return;let s=(a=(i=n.tagName)==null?void 0:i.toLowerCase)==null?void 0:a.call(i);if(s===`text`||s===`tspan`)return;let l=Array.from((o=n.children)==null?[]:o);if(l.length>
10)return void l.forEach(e=>u(e));let d=x.getBoundingClientRect(n);if(d.bottom-d.top>0){let n=d.top-e.top,r=d.bottom-e.top;n<t&&(t=n),r>c&&(c=r)}};Array.from((n=g.children)==null?[]:n).forEach(e=>u(e)),Number.isFinite(t)||(t=0),!Number.isFinite(c)&&(c=x.getBoundingClientRect(g).bottom-e.top);let f=Math.max(h,.2*l.globals.radialSize),_=Math.max(f-t,0);_!==0&&(l.layout.translateY=((r=l.layout.translateY)==null?0:r)+_,K.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${(i=l.layout.translateX)==null?0:i}, ${l.layout.translateY})`}),c+=_),v=c>0?c:2.05*l.globals.radialSize;let y=Math.max(f,t),b=Math.ceil(v+m+y),S=(a=l.config.chart.offsetY)==null?0:a,C=b+Math.max(S,0);if(!p){if(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute(`height`,String(C)),this.w.dom.elWrap.style.height=`${C}px`,K.setAttrs(this.w.dom.Paper.node,{height:b}),d.isBrowser()){let e=(o=this.w.dom.Paper.node.parentNode)==null?void 0:o.parentNode;e&&(e.style.minHeight=`${C}px`)}l.globals.svgHeight=b,l.config.legend.position===`bottom`&&l.config.legend.show&&!l.config.legend.floating&&((s=this.ctx.legend)==null||s.setLegendWrapXY(20,0))}return}let S=Math.ceil(v+this.w.layout.translateY+m+h);if(!f&&(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute(`height`,String(S)),this.w.dom.elWrap.style.height=`${S}px`,K.setAttrs(this.w.dom.Paper.node,{height:S}),d.isBrowser())){let e=(c=this.w.dom.Paper.node.parentNode)==null?void 0:c.parentNode;e&&(e.style.minHeight=`${S}px`)}}coreCalculations(){new qe(this.w).init()}resetGlobals(){let e=()=>this.w.config.series.map(()=>[]),t=new B,{globals:n}=this.w,r={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:n.originalSeries};t.initGlobalVars(n),n.seriesXvalues=e(),n.seriesYvalues=e(),r.dataWasParsed&&(this.w.axisFlags.dataWasParsed=r.dataWasParsed,n.originalSeries=r.originalSeries)}isMultipleY(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}xySettings(){let{w:e}=this,t=null;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position===`back`&&new $e(this.w).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position===`back`&&new $e(this.w).drawYCrosshairs(),e.config.xaxis.type===`datetime`&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new dn(this.w,this.ctx);let t=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)}t=new V(this.w).getCalculatedRatios()}return t}updateSourceChart(e){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){let{ctx:e,w:t}=this;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!=`function`){let n=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];n.forEach(t=>{let n=e.constructor.getChartByID(t);n&&(n.w.globals.brushSource=this.ctx,typeof n.w.config.chart.events.zoomed!=`function`&&(n.w.config.chart.events.zoomed=()=>this.updateSourceChart(n)),typeof n.w.config.chart.events.scrolled!=`function`&&(n.w.config.chart.events.scrolled=()=>this.updateSourceChart(n)))}),t.config.chart.events.selection=(t,r)=>{n.forEach(t=>{let n=e.constructor.getChartByID(t);n&&n.ctx.updateHelpers._updateOptions({xaxis:{min:r.xaxis.min,max:r.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){let e=this.w,t=e.config;if(t.chart.accessibility&&t.chart.accessibility.description)return t.chart.accessibility.description;let n=t.chart.type,r=[];if(t.title.text)r.push(`${t.title.text}. ${n} chart`),t.subtitle.text&&r.push(t.subtitle.text);else{let i=Array.isArray(e.seriesData.seriesNames)&&e.seriesData.seriesNames.length?e.seriesData.seriesNames.filter(Boolean):Array.isArray(t.series)?t.series.map(e=>typeof e==`object`&&e?e.name:null).filter(Boolean):[],a=e.seriesData.series.length||(t.series?t.series.length:0);i.length?r.push(`${n} chart with ${a} data series: ${i.join(`, `)}`):r.push(`${n} chart with ${a} data series`)}return r.join(`. `)}}let X=`__apexcharts_series_transforms__`;function yn(){return globalThis[X]}function bn(e,t){e&&typeof e==`string`&&typeof t==`function`&&(yn()[e]=t)}function xn(e,t,n,r,i,a=null,o={}){var s,c,l;let u=t&&typeof t==`object`,d=u&&(c=(s=t.x)==null?t.name:s)!=null?c:``,f=Number(u?(l=t.y)==null?t.value:l:t),p={name:String(d),value:isNaN(f)?null:f,color:u&&t.color?t.color:void 0,_key:`${i}/${n}:${d}`};if(r&&!p.color&&(p.color=r[n%r.length]),o.keepDatum&&(p._datum=t),u&&Array.isArray(t.children)&&t.children.length)p.children=t.children.map((t,n)=>xn(e,t,n,null,p._key,a,o));else if(u&&t.drilldown!=null&&!1!==o.expandDrilldown){let n=a||new Set;if(!n.has(t.drilldown)){let r=function(e,t){let n=e.config.drilldown;return(n&&Array.isArray(n.series)?n.series:[]).find(e=>e&&e.id===t)}(e,t.drilldown);if(r&&Array.isArray(r.data)&&r.data.length){let i=new Set(n);i.add(t.drilldown);let a=Array.isArray(r.colors)?r.colors:null;p.children=r.data.map((t,n)=>xn(e,t,n,a,p._key,i,o))}}}return p}function Sn(e,t,n={}){let r=t||e.config.series;return Array.isArray(r)?r.map((t,r)=>{var i,a;let o=t&&Array.isArray(t.data)?t.data:[],s=`${r}:${(i=t==null?void 0:t.name)==null?``:i}`;return{name:String((a=t==null?void 0:t.name)==null?``:a),value:null,color:(t==null?void 0:t.color)||void 0,_key:s,_seriesIndex:r,children:o.map((t,r)=>xn(e,t,r,null,s,null,n))}}):[]}
1function Z(e){e.children&&e.children.length&&(e.children.forEach(e=>Z(e)),(e.value==null||isNaN(e.value))&&(e.value=e.children.reduce((e,t)=>e+Math.max(0,t.value||0),0))),(e.value==null||isNaN(e.value))&&(e.value=0)}function Cn(e){if(typeof e!=`string`)return``;let t=e.indexOf(`/`);return t===-1?``:e.slice(t)}function wn(e){var t,n,r,i;return!!((i=(r=(n=(t=e==null?void 0:e.config)==null?void 0:t.plotOptions)==null?void 0:n.treemap)==null?void 0:r.nested)!=null&&i.drilldownAsLevels)}function Tn(e,t){var n,r,i;let a=(i=(r=(n=e==null?void 0:e.config)==null?void 0:n.plotOptions)==null?void 0:r.treemap)==null?void 0:i.nested;return(!a||!1!==a.enabled)&&function(e,t={}){if(!Array.isArray(e))return!1;let n=!1!==t.drilldown;for(let t=0;t<e.length;t++){let r=e[t]&&e[t].data;if(Array.isArray(r))for(let e=0;e<r.length;e++){let t=r[e];if(t&&typeof t==`object`&&(Array.isArray(t.children)&&t.children.length||n&&t.drilldown!=null))return!0}}return!1}(t,{drilldown:wn(e)})}function En(e){let t=[],n=0;return e.forEach((e,r)=>{let i=[],a=(e,t,o)=>{e._parent=o,e._depth=t,e._si=r,e._leaf=!(e.children&&e.children.length),t>n&&(n=t),e._leaf?(e._di=i.length,i.push(e)):(e._di=-1,e.children.forEach(n=>a(n,t+1,e)))};a(e,0,null),t.push(i)}),{leaves:t,maxDepth:n}}function Dn(e){let t=e._datum;if(t&&typeof t==`object`){let n=c(s({},t),{x:e.name,y:e.value});return delete n.children,n}return{x:e.name,y:e.value}}globalThis[X]||(globalThis[X]={});let On=[`histogram`];class kn{constructor(e,{resetGlobals:t=()=>{},isMultipleY:n=()=>{}}={}){this.w=e,this.resetGlobals=t,this.isMultipleY=n,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this._warnedMissingTransform=!1,this.coreUtils=new V(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){let e=this.w.config.series,t=new q(this.w);this.activeSeriesIndex=t.getActiveConfigSeriesIndex();let n=e[this.activeSeriesIndex];return n&&n.data&&n.data.length>0&&n.data[0]!==null&&n.data[0]!==void 0?n.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var e;let t=this.getFirstDataPoint();if(!t||t.x===void 0)return!1;let n=(e=this.w.config.series[this.activeSeriesIndex])==null?void 0:e.data;if(n){let e=e=>e&&e.x!==void 0;for(let t=1;t<Math.min(3,n.length)&&!0===e(n[t]);t++);}return!0}isFormat2DArray(){let e=this.getFirstDataPoint();return e&&Array.isArray(e)}_fast2DArrayParse(e,t){var n,r;let i=e.length;if(i===0)return!1;let a=Array(i),o=Array(i),s=-Number.MAX_VALUE,c=Number.MAX_VALUE,l=1/0,u=!1,d=0,f=!0,p=1/0,m=-1/0,h=!0,g=1/0,_=NaN;for(let t=0;t<i;t++){let n=e[t];if(!Array.isArray(n)||n.length>2)return!1;let r=n[0],i=n[1];if(f){if(typeof r==`number`){r==r&&(r<p&&(p=r),r>m&&(m=r));let e=r-_;e>0?e<g&&(g=e):e<0&&(h=!1),_=r}else f=!1}if(typeof i==`number`){if(i==i&&i!==1/0&&i!==-1/0){if(i>s&&(s=i),i<c&&(c=i),i<0&&i<l&&(l=i),!Number.isInteger(i)){let e=i<0?-i:i;if(e>=1e-6&&e<1e21){let e=``+i,t=e.indexOf(`.`),n=t===-1?0:e.length-t-1;n>d&&(d=n)}else{let e=x.noExponents(i);x.isFloat(e)&&(d=Math.max(d,e.toString().split(`.`)[1].length))}}}else u=!0}else{if(i!==null)return!1;u=!0}a[t]=i,o[t]=r}return this.twoDSeries=a,this.twoDSeriesX=o,this.w.axisFlags.dataFormatXNumeric=!0,((r=(n=this.w.seriesData)._parsedExtrema)==null?n._parsedExtrema=[]:r)[t]={ref:a,len:i,maxY:s,lowestY:c,negMinY:l,hasNulls:u,yDec:d,xref:o,xNumeric:f,minX:p,maxX:m,xSorted:h,minXDiff:g},!0}handleFormat2DArray(e,t){let n=this.w.config,r=e[t].data,i=n.chart.type===`boxPlot`||n.series[t].type===`boxPlot`;if(i||n.xaxis.type===`datetime`||!this._fast2DArrayParse(r,t))for(let e=0;e<r.length;e++){let t=r[e],a=t[0],o=t[1],s=t[2];if(o!==void 0&&(Array.isArray(o)&&o.length===4&&!i?this.twoDSeries.push(x.parseNumber(o[3])):t.length>=5?this.twoDSeries.push(x.parseNumber(t[4])):this.twoDSeries.push(x.parseNumber(o)),this.w.axisFlags.dataFormatXNumeric=!0),n.xaxis.type===`datetime`){let e=new Date(a).getTime();this.twoDSeriesX.push(e)}else this.twoDSeriesX.push(a);s!==void 0&&(this.threeDSeries.push(s),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(e,t){let n=this.w.config,r=this.w.globals,i=new S(this.w),a=e[t].data,o=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);let s=e[o].data;for(let e=0;e<a.length;e++){let n=a[e];if(n.y!==void 0){let e=Array.isArray(n.y)?x.parseNumber(n.y[n.y.length-1]):x.parseNumber(n.y);this.twoDSeries.push(e)}this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),n.goals!==void 0&&Array.isArray(n.goals)?this.seriesGoals[t].push(n.goals):this.seriesGoals[t].push(null),n.z!==void 0&&(this.threeDSeries.push(n.z),this.w.axisFlags.isDataXYZ=!0)}for(let e=0;e<s.length;e++){let t=s[e].x,a=typeof t==`string`,o=Array.isArray(t),c=!o&&!!i.isValidDate(t);if(a||c){if(a||n.xaxis.convertedCatToNumeric){let e=r.isBarHorizontal&&this.w.axisFlags.isRangeData;n.xaxis.type!==`datetime`||e?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t),isNaN(t)||this.w.config.xaxis.type===`category`||typeof t==`string`||(this.w.axisFlags.isXNumeric=!0)):this.twoDSeriesX.push(i.parseDate(t))}else n.xaxis.type===`datetime`?this.twoDSeriesX.push(t instanceof Date?t.getTime():i.parseDate(t.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t)))}else o?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(t))}}handleRangeData(e,t){let n={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?n=this.handleRangeDataFormat(`array`,e,t):this.isFormatXY()&&(n=this.handleRangeDataFormat(`xy`,e,t)),this.w.rangeData.seriesRangeStart[t]=n.start===void 0?[]:n.start,this.w.rangeData.seriesRangeEnd[t]=n.end===void 0?[]:n.end,this.w.rangeData.seriesRange[t]=n.rangeUniques,this.w.rangeData.seriesRange.forEach(e
1=>{e&&e.forEach(e=>{let t=e.y,n=t.length;if(!(n<=1))for(let r=0;r<n;r++){let i=t[r],a=i.y1,o=i.y2;for(let s=r+1;s<n;s++){let n=t[s],r=n.y1;if(a<=n.y2&&r<=o){let t=e;t.overlaps.add(i.rangeName),t.overlaps.add(n.rangeName)}}}})}),n}handleCustomRangeData(e,t,n){let r=e[t].data||[],i=[],a=[];for(let e=0;e<r.length;e++){let t=r[e],o,s;if(typeof n==`function`){let r=n(t,e);Array.isArray(r)||(r=[r]);let i=r.map(e=>x.parseNumber(e)).filter(e=>e!==null&&!isNaN(e));o=i.length?Math.min(...i):null,s=i.length?Math.max(...i):null}else{let e=t==null?null:t.y;Array.isArray(e)?(o=x.parseNumber(e[0]),s=x.parseNumber(e[e.length-1])):o=s=x.parseNumber(e)}i.push(o),a.push(s)}this.w.rangeData.seriesRangeStart[t]=i,this.w.rangeData.seriesRangeEnd[t]=a}handleCandleStickBoxData(e,t){let n={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat(`array`,e,t):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat(`xy`,e,t)),this.w.candleData.seriesCandleO[t]=n.o,this.w.candleData.seriesCandleH[t]=n.h,this.w.candleData.seriesCandleM[t]=n.m,this.w.candleData.seriesCandleL[t]=n.l,this.w.candleData.seriesCandleC[t]=n.c,this.w.candleData.seriesBoxPoints[t]=n.points||[],n}handleViolinData(e,t){var n,r,i,a,o,s;let c=this.w,l=e[t].data,u=[],d=[],f=[],p=[],m=[];for(let e=0;e<l.length;e++){let t=l[e],c=(i=(r=(n=t==null?void 0:t.y)==null?void 0:n.density)==null?t==null?void 0:t[1]:r)==null?[]:i,h=(s=(o=(a=t==null?void 0:t.y)==null?void 0:a.points)==null?t==null?void 0:t[2]:o)==null?[]:s,g=[],_=[],v=0,y=null,b=1/0,S=-1/0;for(let e=0;e<c.length;e++){let t=x.parseNumber(c[e][0]),n=x.parseNumber(c[e][1]);t!==null&&n!==null&&(g.push(t),_.push(n),n>v&&(v=n,y=t),t<b&&(b=t),t>S&&(S=t))}let C=[];for(let e=0;e<h.length;e++){let t=x.parseNumber(h[e]);t!==null&&(C.push(t),t<b&&(b=t),t>S&&(S=t))}u.push({values:g,weights:_,maxWeight:v}),d.push(C),f.push(b===1/0?0:b),p.push(S===-1/0?0:S),m.push(y===null?C.length?C[Math.floor(C.length/2)]:0:y)}c.violinData.seriesViolinDensity[t]=u,c.violinData.seriesViolinPoints[t]=d,c.violinData.seriesViolinMin[t]=f,c.violinData.seriesViolinMax[t]=p,this.twoDSeries=m}handleRangeDataFormat(e,t,n){let r=[],i=[],a=new Map,o=[];if(t[n].data.forEach(e=>{if(!a.has(e.x)){let t={x:e.x,overlaps:new Set,y:[]};a.set(e.x,t),o.push(t)}}),e===`array`)for(let e=0;e<t[n].data.length;e++)Array.isArray(t[n].data[e])?(r.push(t[n].data[e][1][0]),i.push(t[n].data[e][1][1])):(r.push(t[n].data[e]),i.push(t[n].data[e]));else if(e===`xy`)for(let e=0;e<t[n].data.length;e++){let o=Array.isArray(t[n].data[e].y),s=x.randomId(),c=t[n].data[e].x,l={y1:o?t[n].data[e].y[0]:t[n].data[e].y,y2:o?t[n].data[e].y[1]:t[n].data[e].y,rangeName:s},u=this.w.globals;u.seriesRangeName||(u.seriesRangeName={}),u.seriesRangeName[n]||(u.seriesRangeName[n]={}),u.seriesRangeName[n][e]=s;let d=a.get(c);d&&d.y.push(l),r.push(l.y1),i.push(l.y2)}return{start:r,end:i,rangeUniques:o}}handleCandleStickBoxDataFormat(e,t,n){let r=this.w,i=r.config.chart.type===`boxPlot`||r.config.series[n].type===`boxPlot`,a=[],o=[],s=[],c=[],l=[],u=[],d=t[n].data,f;if(e===`array`){let e=d[0];f=i&&e&&e.length===6||!i&&e&&e.length===5?e=>e.slice(1):e=>Array.isArray(e[1])?e[1]:[]}else f=e=>Array.isArray(e.y)?e.y:[];for(let e=0;e<d.length;e++){let t=f(d[e]);t&&t.length>=2&&(a.push(t[0]),o.push(t[1]),i?(s.push(t[2]),c.push(t[3]),l.push(t[4])):(c.push(t[2]),l.push(t[3])));let n=d[e]&&d[e].points;u.push(Array.isArray(n)?n:[])}return{o:a,h:o,m:s,l:c,c:l,points:u}}parseDataAxisCharts(e){var t,n,r,i,a,o;let l=this.w.config,u=this.w.globals,d=new S(this.w);this.w.seriesData._parsedExtrema=[];let f=l.labels.length>0?l.labels.slice():l.xaxis.categories.slice();this.w.axisFlags.isRangeBar=l.chart.type===`rangeBar`&&u.isBarHorizontal,this.w.labelData.hasXaxisGroups=l.xaxis.type===`category`&&l.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=l.xaxis.group.groups),e.forEach((e,t)=>{e.name===void 0?this.w.seriesData.seriesNames.push(`series-`+parseInt(String(t+1),10)):this.w.seriesData.seriesNames.push(e.name)}),this.coreUtils.setSeriesYAxisMappings();let p=[],m=[...new Set(l.series.map(e=>e.group))];
1l.series.forEach((e,t)=>{let n=m.indexOf(e.group);p[n]||(p[n]=[]),p[n].push(this.w.seriesData.seriesNames[t])}),this.w.labelData.seriesGroups=p;let h=()=>{for(let e=0;e<f.length;e++)if(typeof f[e]==`string`){if(!d.isValidDate(f[e]))throw Error(`You have provided invalid Date format. Please provide a valid JavaScript Date`);this.twoDSeriesX.push(d.parseDate(f[e]))}else this.twoDSeriesX.push(f[e])};for(let d=0;d<e.length;d++){this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[d].data===void 0&&(e[d]=c(s({},e[d]),{data:[]}));let p=l.chart.dataReducer,m=(n=(t=u.dataReducerRawSeries)==null?void 0:t[d])==null?void 0:n.data;if(p!=null&&p.enabled&&this.isMultiFormat()&&Array.isArray(m)&&m.length>((r=p.threshold)==null?500:r)){let t=(i=p.targetPoints)==null?250:i,n=l.xaxis.min,r=l.xaxis.max,u=n==null&&r==null?m:kn.sliceByXRange(m,n,r),f=u;if(u.length>t){let e=Array.isArray(u[0])?(o=u[0])==null?void 0:o[1]:(a=u[0])==null?void 0:a.y;Array.isArray(e)?e.length===4?f=kn.ohlcAggregate(u,t):e.length===2&&(f=kn.rangeAggregate(u,t)):f=kn.lttbDownsample(u,t)}e[d]=c(s({},e[d]),{data:f})}l.chart.type!==`rangeBar`&&l.chart.type!==`rangeArea`&&e[d].type!==`rangeBar`&&e[d].type!==`rangeArea`||(this.w.axisFlags.isRangeData=!0,this.handleRangeData(e,d));let g=e[d].type||l.chart.type;if(gn(g)){let t=Y(g),n=t&&t.yExtent;(t&&t.dataType===`rangeXY`||typeof n==`function`)&&(this.w.axisFlags.isRangeData=!0,this.handleCustomRangeData(e,d,n))}if(this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,d):this.isFormatXY()&&this.handleFormatXY(e,d),l.chart.type!==`candlestick`&&e[d].type!==`candlestick`&&l.chart.type!==`boxPlot`&&e[d].type!==`boxPlot`||this.handleCandleStickBoxData(e,d),l.chart.type!==`violin`&&e[d].type!==`violin`||this.handleViolinData(e,d),this.w.seriesData.series.push(this.twoDSeries),this.w.labelData.labels.push(this.twoDSeriesX),this.w.seriesData.seriesX.push(this.twoDSeriesX),this.w.seriesData.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(this.w.axisFlags.isXNumeric=!0);else{l.xaxis.type===`datetime`?(this.w.axisFlags.isXNumeric=!0,h(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):l.xaxis.type===`numeric`&&(this.w.axisFlags.isXNumeric=!0,f.length>0&&(this.twoDSeriesX=f,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);let t=e[d].data.map(e=>x.parseNumber(e));this.w.seriesData.series.push(t)}this.w.seriesData.seriesZ.push(this.threeDSeries),e[d].color===void 0?this.w.seriesData.seriesColors.push(void 0):this.w.seriesData.seriesColors.push(e[d].color)}return this.w}parseDataNonAxisCharts(e){let t=this.w.config;this.w.seriesData.unitData=[];let n=Array.isArray(e)&&e.every(e=>typeof e==`number`)&&t.labels.length>0,r=Array.isArray(e)&&e.some(e=>e&&typeof e==`object`&&e.data||e&&typeof e==`object`&&e.parsing);if(t.chart.type===`unit`&&r&&!n)return this.parseUnitSeries(e);if(n){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=t.labels.slice();for(let e=0;e<this.w.seriesData.series.length;e++)this.w.seriesData.seriesNames[e]===void 0&&this.w.seriesData.seriesNames.push(`series-`+(e+1));return this.w}if(Array.isArray(e)&&e.every(e=>typeof e==`number`)){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=[];for(let e=0;e<this.w.seriesData.series.length;e++)this.w.seriesData.seriesNames.push(t.labels[e]||`series-${e+1}`);return this.w}let i=this.extractPieDataFromSeries(e);this.w.seriesData.series=i.values,this.w.seriesData.seriesNames=i.labels,t.chart.type===`radialBar`&&(this.w.seriesData.series=this.w.seriesData.series.map(e=>x.parseNumber(e)));for(let e=0;e<this.w.seriesData.series.length;e++)this.w.seriesData.seriesNames[e]===void 0&&this.w.seriesData.seriesNames.push(`series-`+(e+1));return this.w}parseUnitSeries(e){let t=this.w.config,n=[],r=[],i=[];return e.forEach((e,a)=>{var o;let s=e&&Array.isArray(e.data)?e.data:[];n.push(s.length);let c=e&&e.name!==void 0&&e.name!==null?e.name:void 0;r.push((o=c==null?t.labels[a]:c)==null?`series-${a+1}`:o),i.push(s.slice())}),this.w.seriesData.series=n,this.w.seriesData.seriesNames=r,this.w.seriesData.unitData=i,this.w}resetParsingFlags(){let e=this.w;e.axisFlags.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEac
1h(e=>{e.__apexParsed&&delete e.__apexParsed})}extractPieDataFromSeries(e){let t=[],n=[];if(!Array.isArray(e)||e.length===0)return{values:[],labels:[]};let r=e[0];return typeof r==`object`&&r&&r.data?(this.extractPieDataFromSeriesObjects(e,t,n),{values:t,labels:n}):{values:[],labels:[]}}extractPieDataFromSeriesObjects(e,t,n){e.forEach((e,r)=>{e.data&&Array.isArray(e.data)&&e.data.forEach(e=>{typeof e==`object`&&e&&e.x!==void 0&&e.y!==void 0&&(n.push(String(e.x)),t.push(x.parseNumber(e.y)))})})}handleExternalLabelsData(e){let t=this.w.config;if(t.xaxis.categories.length>0)this.w.labelData.labels=t.xaxis.categories;else if(t.labels.length>0)this.w.labelData.labels=t.labels.slice();else if(this.fallbackToCategory){if(this.w.labelData.labels=this.w.labelData.labels[0],this.w.rangeData.seriesRange.length){this.w.rangeData.seriesRange.map(e=>{e.forEach(e=>{this.w.labelData.labels.indexOf(e.x)<0&&e.x&&this.w.labelData.labels.push(e.x)})});let e=this.w.labelData.labels;if(e.length>0&&(typeof e[0]==`number`||typeof e[0]==`string`))this.w.labelData.labels=[...new Set(e)];else{let t=new Map;for(let n of e){let e=JSON.stringify(n);t.has(e)||t.set(e,n)}this.w.labelData.labels=Array.from(t.values())}}t.xaxis.convertedCatToNumeric&&(new I(t).convertCatToNumericXaxis(t,this.w.seriesData.seriesX[0]),this._generateExternalLabels(e))}else this._generateExternalLabels(e)}_generateExternalLabels(e){let t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(this.w.seriesData.series.length>0){if(this.isFormatXY()){let e=n.series.map(e=>{let t=new Map;for(let n of e.data)t.has(n.x)||t.set(n.x,n);return Array.from(t.values())}),t=e.reduce((e,t,n,r)=>r[e].length>t.length?e:n,0);for(let n=0;n<e[t].length;n++)r.push(n+1)}else for(let e=0;e<this.w.seriesData.series[t.maxValsInArrayIndex].length;e++)r.push(e+1)}this.w.seriesData.seriesX=[];for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(r);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(r.length===0){r=t.axisCharts?[]:this.w.seriesData.series.map((e,t)=>t+1);for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(r)}this.w.labelData.labels=r,n.xaxis.convertedCatToNumeric&&(this.w.labelData.categoryLabels=r.map(e=>n.xaxis.labels.formatter(e))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(e){let t=this.w.config,n=this.w.globals,r=t.parsing;if(this.w.axisFlags.dataWasParsed)return e;let i=!(!r||!(r.x||r.y||r.z)),a=e.some(e=>e.parsing&&(e.parsing.x||e.parsing.y||e.parsing.z));if(!i&&!a)return e;let o=e.map((e,t)=>{var n,i,a;if(!e.data||!Array.isArray(e.data)||e.data.length===0)return e;let o={x:((n=e.parsing)==null?void 0:n.x)||(r==null?void 0:r.x),y:((i=e.parsing)==null?void 0:i.y)||(r==null?void 0:r.y),z:((a=e.parsing)==null?void 0:a.z)||(r==null?void 0:r.z)};if(!o.x&&!o.y)return e;let l=e.data[0];if(typeof l==`object`&&l&&(Object.prototype.hasOwnProperty.call(l,`x`)||Object.prototype.hasOwnProperty.call(l,`y`))||Array.isArray(l))return e;if(!o.x||!o.y||Array.isArray(o.y)&&o.y.length===0){let t=[];return o.x||t.push(`x`),(!o.y||Array.isArray(o.y)&&o.y.length===0)&&t.push(`y`),e.name,e}let u=e.data.map((e,t)=>{if(typeof e!=`object`||!e)return e;let n=this.getNestedValue(e,o.x),r,i;if(Array.isArray(o.y)){let t=o.y.map(t=>this.getNestedValue(e,t));this.w.config.chart.type===`bubble`?(t.length,r=t[0]):r=t}else r=this.getNestedValue(e,o.y);o.z&&(i=this.getNestedValue(e,o.z));let a={x:n,y:r,z:void 0};if(this.w.config.chart.type===`bubble`&&Array.isArray(o.y)&&o.y.length===2){let t=this.getNestedValue(e,o.y[1]);t!==void 0&&(a.z=t)}return i!==void 0&&(a.z=i),a});return c(s({},e),{data:u,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,n.originalSeries||(n.originalSeries=x.clone(e)),o}getNestedValue(e,t){if(!e||typeof e!=`object`||!t)return;if(t.indexOf(`.`)===-1)return e[t];let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){if(typeof r!=`object`||!r)return;r=r[n[e]]}return r}applySeriesTransform(e){let t=this.w.config,n=t.chart.requestedType||t.chart.type,r=function(e){return e&&yn()[e]||null}(n);return r?r(e,this.w):Array.isArray(e)&&On.indexOf(n)!==-1?(this._warnedMissingTransform||(this._warnedMissingTransform=!0),e.map(e=>c(s({},e),{data:[]}))):e}flattenTreemapHierarchy(e){let t=this.w,n=t.globals;if(t.config.chart.type!==`treemap`||!Array.isArray(e))return e;
1if(!n.treemapRawSeries){if(!Tn(t,e))return n.treemapRoots=null,e;n.treemapRawSeries=e.map(e=>c(s({},e),{data:Array.isArray(e==null?void 0:e.data)?e.data.slice():e==null?void 0:e.data}))}let{roots:r,leafSeries:i,maxDepth:a}=function(e,t){let n=Sn(e,t,{keepDatum:!0,expandDrilldown:wn(e)});n.forEach(Z);let{leaves:r,maxDepth:i}=En(n);return{roots:n,leafSeries:t.map((e,t)=>c(s({},e),{data:(r[t]||[]).map(Dn)})),maxDepth:i}}(t,n.treemapRawSeries);return n.treemapRoots=r,n.treemapMaxDepth=a,i}expandScatterJitterData(e){var t,n;let r=this.w.config,i=r.chart.type===`scatter`||r.chart.type===`bubble`,a=(n=(t=r.plotOptions)==null?void 0:t.scatter)==null?void 0:n.jitter;if(!(i&&a&&a.enabled&&Array.isArray(e)))return e;if(!e.some(e=>Array.isArray(e==null?void 0:e.data)&&e.data.some(e=>e&&!Array.isArray(e)&&Array.isArray(e.y))))return r.xaxis.type!==`datetime`&&(Array.isArray(r.xaxis.categories)&&r.xaxis.categories.length?this._applyBandAxis(r.xaxis.categories.slice()):Array.isArray(r.xaxis._scatterBandLabels)&&r.xaxis._scatterBandLabels.length&&this._applyBandAxis(r.xaxis._scatterBandLabels)),e;let o=[],l=new Map;e.forEach(e=>{Array.isArray(e==null?void 0:e.data)&&e.data.forEach(e=>{if(e&&Array.isArray(e.y)){let t=String(e.x);l.has(t)||(l.set(t,o.length),o.push(e.x))}})});let u=a.maxPoints||5e3,d=e.map(e=>{if(!Array.isArray(e==null?void 0:e.data))return e;let t=[];return e.data.forEach(e=>{if(e&&Array.isArray(e.y)){let n=l.get(String(e.x)),r=e.y,i=r.length>u?Math.ceil(r.length/u):1;for(let e=0;e<r.length;e+=i){let i=x.parseNumber(r[e]);i!==null&&t.push({x:n,y:i})}}else if(e&&typeof e==`object`&&!Array.isArray(e)){let n=String(e.x);t.push({x:l.has(n)?l.get(n):e.x,y:e.y})}else t.push(e)}),c(s({},e),{data:t})});return this._applyBandAxis(o),d}_applyBandAxis(e){var t;let n=this.w.config.xaxis,r=e.length;if(!r)return;let i=n._scatterBand=n._scatterBand||{};if(n._scatterBandLabels=e.slice(),n.type=`numeric`,(t=this.w.interact)!=null&&t.zoomed&&typeof n.min==`number`&&typeof n.max==`number`&&isFinite(n.min)&&isFinite(n.max)){let e=e=>Math.max(0,Math.min(r-1,e)),t=e(Math.round(n.min+.49)),a=e(Math.round(n.max-.49));a<t&&(t=a=e(Math.round((n.min+n.max)/2))),n.min=t-1,n.max=a+1,n.tickAmount=a-t+2,i.min=!0,i.max=!0,i.tick=!0}else(n.min==null||i.min)&&(n.min=-1,i.min=!0),(n.max==null||i.max)&&(n.max=r,i.max=!0),(n.tickAmount==null||n.tickAmount===`dataPoints`||i.tick)&&(n.tickAmount=r+1,i.tick=!0);n.labels=n.labels||{};let a=n.labels.formatter;if(typeof a!=`function`||a._scatterBand){let t=t=>{let n=Math.round(t);return Math.abs(t-n)<1e-6&&e[n]!==void 0?e[n]:``};t._scatterBand=!0,n.labels.formatter=t}}parseData(e){var t,n,r,i,a,o,l;let u=this.w,d=u.config,f=u.globals;if(e=this.parseRawDataIfNeeded(e),e=this.applySeriesTransform(e),e=this.expandScatterJitterData(e),e=this.flattenTreemapHierarchy(e),(t=d.chart.dataReducer)!=null&&t.enabled&&f.axisCharts&&!f.dataReducerRawSeries){f.dataReducerRawSeries=e.map(e=>({data:Array.isArray(e==null?void 0:e.data)?e.data.slice():e==null?void 0:e.data}));let t=1/0,o=-1/0;for(let s of e){let e=s==null?void 0:s.data;if(!Array.isArray(e)||e.length===0)continue;let c=!Array.isArray(e[0]),l=c?(n=e[0])==null?void 0:n.x:(r=e[0])==null?void 0:r[0],u=c?(i=e[e.length-1])==null?void 0:i.x:(a=e[e.length-1])==null?void 0:a[0];typeof l==`number`&&(t=Math.min(t,l)),typeof u==`number`&&(o=Math.max(o,u))}t!==1/0&&(f.dataReducerRawMinX=t,f.dataReducerRawMaxX=o)}if(f.dataReducerRawSeries&&(o=d.chart.dataReducer)!=null&&o.enabled&&(e=e.map(e=>s({},e))),d.series=e,f.dataReducerRawSeries&&(l=d.chart.dataReducer)!=null&&l.enabled){let t=f.dataReducerRawSeries;f.initialSeries=e.map((e,n)=>{var r,i,a;return c(s({},e),{data:(a=(i=(r=t[n])==null?void 0:r.data)==null?void 0:i.slice())==null?e.data:a})})}else f.initialSeries=f.histogramRawSeries?f.histogramRawSeries:f.treemapRawSeries?f.treemapRawSeries:e;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),f.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),d.chart.stacked){let e=new q(this.w);this.w.seriesData.series=e.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),f.axisCharts?(kn._defineLazyResult(this.w.seriesData,`stackedSeriesTotals`,()=>this.coreUtils.getStackedSeriesTotals()),kn._defineLazyResult(this.w.seriesData,`stackedSeriesTotalsByGroups`,()=>this.coreUtils.getStackedSeriesTotalsByGroups()),kn._defineLazyResult(f,`seriesPercent`,()=>(this.coreUtils.getPercentSeries(),f.seriesPercent))):this.coreUtils.getPercentSeries(),this.w.axisFlags.dataFormatXNumeric||this.w.axisFlags.isXNumeric&&(d.xaxis.type!==`numeric`||d.labels.length!==0||d.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);let p=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let e=0;e<p.length;e++)if(Array.isArray(p[e])){this.w.axisFlags.isMultiLineX=!0;break}return{seriesData:{series:this.w.seriesData.series,seriesNames:this.w.seriesData.seriesNames,seriesX:this.w.seriesData.seriesX,seriesZ:this.w.seriesData.seriesZ,seriesColors:this.w.seriesData.seriesColors,seriesGoals:this.w.seriesData.seriesGoals,unitData:this.w.seriesData.unitData,noLabelsProvi
1ded:this.w.axisFlags.noLabelsProvided},rangeData:{seriesRangeStart:this.w.rangeData.seriesRangeStart,seriesRangeEnd:this.w.rangeData.seriesRangeEnd,seriesRange:this.w.rangeData.seriesRange},candleData:{seriesCandleO:this.w.candleData.seriesCandleO,seriesCandleH:this.w.candleData.seriesCandleH,seriesCandleM:this.w.candleData.seriesCandleM,seriesCandleL:this.w.candleData.seriesCandleL,seriesCandleC:this.w.candleData.seriesCandleC,seriesBoxPoints:this.w.candleData.seriesBoxPoints},labelData:{labels:this.w.labelData.labels,categoryLabels:this.w.labelData.categoryLabels},axisFlags:{isXNumeric:this.w.axisFlags.isXNumeric,dataFormatXNumeric:this.w.axisFlags.dataFormatXNumeric,isDataXYZ:this.w.axisFlags.isDataXYZ,isRangeData:this.w.axisFlags.isRangeData,isRangeBar:this.w.axisFlags.isRangeBar,isMultiLineX:this.w.axisFlags.isMultiLineX,dataWasParsed:this.w.axisFlags.dataWasParsed,hasXaxisGroups:this.w.labelData.hasXaxisGroups,groups:this.w.labelData.groups,seriesGroups:this.w.labelData.seriesGroups}}}static _defineLazyResult(e,t,n){let r,i=!1;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:()=>(i||(i=!0,r=n()),r),set(e){i=!0,r=e}})}static sliceByXRange(e,t,n){let r=e.length;if(r===0)return e;let i=Array.isArray(e[0])?e=>e[0]:e=>e.x,a=0;if(t!=null){let n=0,o=r-1;for(;n<=o;){let r=n+o>>1;i(e[r])<t?n=r+1:o=r-1}a=Math.max(0,n-1)}let o=r;if(n!=null){let t=0,a=r-1;for(;t<=a;){let r=t+a>>1;i(e[r])>n?a=r-1:t=r+1}o=Math.min(r,t+1)}return a===0&&o===r?e.slice():e.slice(a,o)}static lttbDownsample(e,t){let n=e.length;if(t>=n||t<3)return e;let r=!Array.isArray(e[0]),i=r?e=>e.x:e=>e[0],a=r?e=>e.y:e=>e[1],o=[];o.push(e[0]);let s=(n-2)/(t-2),c=0;for(let r=0;r<t-2;r++){let t=Math.floor((r+1)*s)+1,l=Math.min(Math.floor((r+2)*s)+1,n),u=0,d=0,f=l-t;for(let n=t;n<l;n++)u+=i(e[n]),d+=a(e[n]);u/=f,d/=f;let p=Math.floor(r*s)+1,m=Math.min(Math.floor((r+1)*s)+1,n),h=i(e[c]),g=a(e[c]),_=-1,v=p;for(let t=p;t<m;t++){let n=.5*Math.abs((h-u)*(a(e[t])-g)-(h-i(e[t]))*(d-g));n>_&&(_=n,v=t)}o.push(e[v]),c=v}return o.push(e[n-1]),o}static ohlcAggregate(e,t){let n=e.length;if(t>=n||t<1)return e;let r=!Array.isArray(e[0]),i=r?e=>e.x:e=>e[0],a=r?e=>e.y:e=>e[1],o=r?(e,t)=>({x:e,y:t}):(e,t)=>[e,t],s=[],c=n/t;for(let r=0;r<t;r++){let l=Math.floor(r*c),u=r===t-1?n:Math.floor((r+1)*c);if(u<=l)continue;let d=a(e[l]),f=d[0],p=d[1],m=d[2],h=d[3];for(let t=l+1;t<u;t++){let n=a(e[t]);n[1]>p&&(p=n[1]),n[2]<m&&(m=n[2]),h=n[3]}s.push(o(i(e[l]),[f,p,m,h]))}return s}static rangeAggregate(e,t){let n=e.length;if(t>=n||t<1)return e;let r=!Array.isArray(e[0]),i=r?e=>e.x:e=>e[0],a=r?e=>e.y:e=>e[1],o=r?(e,t)=>({x:e,y:t}):(e,t)=>[e,t],s=[],c=n/t;for(let r=0;r<t;r++){let l=Math.floor(r*c),u=r===t-1?n:Math.floor((r+1)*c);if(u<=l)continue;let d=1/0,f=-1/0;for(let t=l;t<u;t++){let n=a(e[t]);if(n!=null)for(let e=0;e<2;e++){let t=n[e];t!=null&&isFinite(t)&&(t<d&&(d=t),t>f&&(f=t))}}s.push(o(i(e[l]),d===1/0?[null,null]:[d,f]))}return s}excludeCollapsedSeriesInYAxis(){let e=this.w,t=[];e.globals.seriesYAxisMap.forEach((n,r)=>{let i=0;n.forEach(t=>{e.globals.collapsedSeriesIndices.indexOf(t)!==-1&&i++}),i>0&&i==n.length&&t.push(r)}),e.globals.ignoreYAxisIndexes=t.map(e=>e)}}class An{constructor(e,t){this.w=e,this.ctx=t}_updateOptions(e,t=!1,n=!0,r=!0,i=!1){return new Promise((a,o)=>{let s=[this.ctx];r&&(s=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(s=[this.ctx],this.w.globals.isExecCalled=!1),s.forEach((r,c)=>{var l,u;let d=r.w;d.globals.shouldAnimate=n,t||(d.globals.resized=!0,d.globals.dataChanged=!0,n&&d.config.chart.animations.enabled&&r.series.getPreviousPaths());let f=d.config.chart.requestedType||d.config.chart.type;if(n&&e&&typeof e==`object`){let t=(l=e==null?void 0:e.chart)==null?void 0:l.type;t&&t!==f&&((u=r.morphTypeChange)==null||u.captureBeforeDestroy({fromType:f,toType:t,newSeries:e.series||d.config.series}))}if(e&&typeof e==`object`){r.config=new L(e);let t=e.chart&&e.chart.type,n=t===`funnel`||t===`pyramid`||t===`gauge`,a=!!d.config.chart.requestedType;if(t&&!n&&a){e.chart=e.chart||{},e.chart.requestedType=t;let n=d.config.chart.requestedType;n!==`funnel`&&n!==`pyramid`||(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel===void 0&&(e.plotOptions.bar.isFunnel=!1),e.plotOptions.bar.isPyramid===void 0&&(e.plotOptions.bar.isPyramid=!1))}r.config.normalizeAliasedChartType(e),e=V.extendArrayProps(r.config,e,d),r.w.globals.chartID!==this.w.globals.chartID&&(delete e.series,delete e.yaxis),d.config=x.extend(d.config,e),I.handOverTypeDefaults(d.config,f,e),i&&(d.globals.lastXAxis=e.xaxis?x.clone(e.xaxis):[],d.globals.lastYAxis=e.yaxis?x.clone(e.yaxis):[],d.globals.initialConfig=x.extend({},d.config),d.globals.initialSeries=d.config.series),e.series&&(d.globals.collapsedSeriesIndices.length>0||d.globals.ancillaryCollapsedSeriesIndices.length>0)&&r.series.reconcileCollapsedByName()}return r.update(e).then(()=>{c===s.length-1&&a(r)}).catch(o)})})}_updateSeries(e,t,n=!1){return new Promise((r,i)=>{let a=this.w;a.globals.shouldAnimate=t,a.globals.dataChanged=!0;let o=JSON.stringify({y:(a.globals.yAxisScale||[]).map(e=>e?e.result:null),xMin:a.globals.minX,xMax:a.globals.maxX});He.invalidateSelectors(a),t&&a.config.chart.animations.enabled&&this.ctx.series.getPreviousPaths();let s=a.config.series.length,c=a.config.series.map(e=>{var t,n;return(n=(t=e==null?void 0:e.data)==null?void 0:t.length)==null?0:n});n&&(a.globals.dataReducerRawSeries=null,a.globals.histogramRawSeries=null,a.globals.treemapRawSeries=null),this.ctx.data.resetParsingFlags();let l=this.ctx.data.parseData(e);
1return this.ctx._writeParsedSeriesData(l.seriesData),this.ctx._writeParsedRangeData(l.rangeData),this.ctx._writeParsedCandleData(l.candleData),this.ctx._writeParsedLabelData(l.labelData),this.ctx._writeParsedAxisFlags(l.axisFlags),n&&(a.globals.initialConfig&&(a.globals.initialConfig.series=a.config.series),a.globals.initialSeries=a.config.series),this._canUseFastPath(e,s,c,a)?this.ctx.fastUpdate(t,o).then(()=>{r(this.ctx)}).catch(i):(this.ctx._updateStats&&this.ctx._updateStats.full++,this.ctx.update().then(()=>{r(this.ctx)}).catch(i))})}_canUseFastPath(e,t,n,r){return!!r.dom.elGraphical&&!!r.globals.axisCharts&&e.length===t&&!e.some((e,t)=>{var r,i;return((i=(r=e==null?void 0:e.data)==null?void 0:r.length)==null?0:i)!==n[t]})&&!(r.globals.collapsedSeries.length>0)&&!(r.globals.ancillaryCollapsedSeries.length>0)&&!(r.globals.risingSeries.length>0)&&!r.globals.comboCharts&&!r.interact.zoomed}_extendSeries(e,t){let n=this.w,r=n.config.series[t];return c(s({},n.config.series[t]),{name:e.name?e.name:r==null?void 0:r.name,color:e.color?e.color:r==null?void 0:r.color,type:e.type?e.type:r==null?void 0:r.type,group:e.group?e.group:r==null?void 0:r.group,hidden:e.hidden===void 0?r==null?void 0:r.hidden:e.hidden,data:e.data?e.data:r==null?void 0:r.data,zIndex:e.zIndex===void 0?t:e.zIndex})}toggleDataPointSelection(e,t){let n=this.w,r=null,i=`.apexcharts-series[data\\:realIndex='${e}']`;return n.globals.axisCharts?r=n.dom.Paper.findOne(`${i} path[j='${t}'], ${i} circle[j='${t}'], ${i} rect[j='${t}']`):t===void 0&&(r=n.dom.Paper.findOne(`${i} path[j='${e}']`),n.config.chart.type!==`pie`&&n.config.chart.type!==`polarArea`&&n.config.chart.type!==`donut`||this.ctx.pie.pieClicked(e)),r?(new K(this.w).pathMouseDown(r,null),r.node?r.node:null):null}forceXAxisUpdate(e){let t=this.w;return[`min`,`max`].forEach(n=>{e.xaxis[n]!==void 0&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric&&(e=new I(e).convertCatToNumericXaxis(e,this.ctx)),e}forceYAxisUpdate(e){return e.chart&&e.chart.stacked&&e.chart.stackType===`100%`&&(Array.isArray(e.yaxis)?e.yaxis.forEach((t,n)=>{e.yaxis[n].min=0,e.yaxis[n].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}revertDefaultAxisMinMax(e){let t=this.w,n=t.globals.lastXAxis,r=t.globals.lastYAxis;e&&e.xaxis&&(n=e.xaxis),e&&e.yaxis&&(r=e.yaxis);let i=n;t.config.xaxis.min=i.min,t.config.xaxis.max=i.max;let a=e=>{if(r[e]!==void 0){let n=r[e];t.config.yaxis[e].min=n.min,t.config.yaxis[e].max=n.max}};t.config.yaxis.map((e,n)=>{t.interact.zoomed||r[n]!==void 0?a(n):this.ctx.opts.yaxis[n]!==void 0&&(e.min=this.ctx.opts.yaxis[n].min,e.max=this.ctx.opts.yaxis[n].max)})}}class jn{static xRatio(e){let t=e.layout.gridWidth||1;return(e.globals.maxX-e.globals.minX)/t}static dataXToPx(e,t){return(t-e.globals.minX)/jn.xRatio(e)}static pxToDataX(e,t){return e.globals.minX+t*jn.xRatio(e)}static screenXToPlotPx(e,t){let n=e.dom.baseEl,r=n&&n.querySelector(`.apexcharts-svg`);if(!r)return t-e.layout.translateX;let i=r.getBoundingClientRect(),a=e.globals.svgWidth?i.width/e.globals.svgWidth:1;return(t-i.left)/(a||1)-e.layout.translateX}}class Mn{constructor(e){this.w=e.w,this.ttCtx=e}static hoverTarget(e){return e?(e.eventPhase&&e.target&&(e.apexHoverTarget=e.target),e.apexHoverTarget||e.target):null}getNearestValues({hoverArea:e,elGrid:t,clientX:n,clientY:r}){var i,a;let o=this.w,s=t.getBoundingClientRect(),c=o.layout.gridWidth,l=s.height,u=c/(o.globals.dataPoints-1),d=l/o.globals.dataPoints,f=this.hasBars();!o.globals.comboCharts&&!f||o.config.xaxis.convertedCatToNumeric||(u=c/o.globals.dataPoints);let p=jn.screenXToPlotPx(o,n),m=r-s.top,h=o.globals.barPadForNumericAxis||0;p<-h||m<0||p>c+h||m>l?(e.classList.remove(`hovering-zoom`),e.classList.remove(`hovering-pan`)):o.interact.zoomEnabled?(e.classList.remove(`hovering-pan`),e.classList.add(`hovering-zoom`)):o.interact.panEnabled&&(e.classList.remove(`hovering-zoom`),e.classList.add(`hovering-pan`));let g=Math.round(p/u),_=Math.floor(m/d);f&&!o.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(p/u),--g);let v=null,y=null,b=o.globals.seriesXvalues.map(e=>e.filter(e=>x.isNumber(e))),S=o.globals.seriesYvalues.map(e=>e.filter(e=>x.isNumber(e)));return o.axisFlags.isXNumeric&&(y=this.closestInMultiArray(p,m,b,S),v=y.index,g=(i=y.j)==null?0:i,v!==null&&o.globals.hasNullValues&&(b=o.globals.seriesXvalues[v],y=this.closestInArray(p,b),g=(a=y.j)==null?0:a)),o.interact.capturedSeriesIndex=v===null?-1:v,(!g||g<1)&&(g=0),o.globals.isBarHorizontal?o.interact.capturedDataPointIndex=_:o.interact.capturedDataPointIndex=g,{capturedSeries:v,j:o.globals.isBarHorizontal?_:g,hoverX:p,hoverY:m}}getFirstActiveXArray(e){let t=this.w,n=0,r=e.map((e,t)=>e.length>0?t:-1);for(let e=0;e<r.length;e++)if(r[e]!==-1&&t.globals.collapsedSeriesIndices.indexOf(e)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(e)===-1){n=r[e];break}return n}closestInMultiArray(e,t,n,r){let i=this.w,a=e=>i.globals.collapsedSeriesIndices.indexOf(e)===-1&&i.globals.ancillaryCollapsedSeriesIndices.indexOf(e)===-1,o=i.config.chart.type,s=!i.globals.comboCharts&&(o===`line`||o===`area`),c=1/0,l=null,u=null;if(i.globals.allSeriesHasEqualX){let i=1/0;for(let t=0;t<n.length;t++){if(!a(t))continue;let o=n[t],s=r[t],c=Math.min(o.length,s.length);for(let t=0;t<c;t++){let n=Math.abs(e-o[t]);n<i&&(i=n,u=t)}}if(u!==null){if(s){let i=1/0;for(let o=0;o<n.length;o++){if(!a(o))continue;let s=n[o],c=r[o],d=Math.min(s.length,c.length);if(d<2){let e=c[u];if(typeof e!=`number`)continue;let n=Math.abs(t-e);n<i&&(i=n,l=o);continue}for(let n=0;n<d-1;n++){let r=this._distanceToSegment(e,t,s[n],c[n],s[n+1],c[n+1]);r.dist<i&&(i=r.dist,l=o)}}}else{let e=1/0;for(let i=0;i<n.length;i++){if(!a(i))continue;let n=r[i][u];if(typeof n!=`number`)continue;let o=Math.abs(t-n);o<e&&(e=o,l=i)}}}return{index:l,j:u}}for(let i=0;i<n.length;i++){if(!a(i))continue;let o=n[i],d=r[i],f=Math.min(o.length,d.length);if(s&&f>=2)for(let n=0;n<f-1;n++){let r=this._distanceToSegment(e,t,o[n],d[n],o[n+1],d[n+1]);r.dist<c&&(c=r.dist,l=i,u=r.t<.5?n:n+1)}else for(let n=0;n<f;n++){let r=e-o[n],a=t-d[n],s=Math.sqrt(r*r+a*a);s<c&&(c=s,l=i,u=n)}}return{index:l,j:u}}_distanceToSegment(e,t,n,r,i,a){let o=i-n,s=a-r,c=o*o+s*s,l=c===0?0:((e-n)*o+(t-r)*s)/c;l<0?l=0:l>1&&(l=1);let u=e-(n+l*o),d=t-(r+l*s);return{dist:Math.sqrt(u*u+d*d),t:l}}
1closestInArray(e,t){let n=t[0],r=null,i=Math.abs(e-n);for(let n=0;n<t.length;n++){let a=Math.abs(e-t[n]);a<i&&(i=a,r=n)}return{j:r}}isXoverlap(e){let t=[],n=this.w.seriesData.seriesX.filter(e=>e[0]!==void 0);if(n.length>0)for(let r=0;r<n.length-1;r++)n[r][e]!==void 0&&n[r+1][e]!==void 0&&n[r][e]!==n[r+1][e]&&t.push(`unEqual`);return t.length===0}isInitialSeriesSameLen(){var e,t,n,r;let i=!0,a=((t=(e=this.w.globals._initialSeriesPeek)==null?this.w.globals.initialSeries:e)==null?void 0:t.filter((e,t)=>{var n;return!((n=this.w.globals.collapsedSeriesIndices)!=null&&n.includes(t))}))||[];for(let e=0;e<a.length-1;e++){if(!((n=a[e])!=null&&n.data)||!((r=a[e+1])!=null&&r.data))return!0;if(a[e].data.length!==a[e+1].data.length){i=!1;break}}return i}getBarsHeight(e){return[...e].reduce((e,t)=>e+t.getBBox().height,0)}getElMarkers(e){return typeof e==`number`?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(`.apexcharts-series-markers-wrap > *`)}getAllMarkers(e=!1){let t=[...this.w.dom.baseEl.querySelectorAll(`.apexcharts-series-markers-wrap`)];e&&(t=t.filter(e=>{let t=Number(e.getAttribute(`data:realIndex`));return this.w.globals.collapsedSeriesIndices.indexOf(t)===-1})),t.sort((e,t)=>{var n=Number(e.getAttribute(`data:realIndex`)),r=Number(t.getAttribute(`data:realIndex`));return r<n?1:r>n?-1:0});let n=[];return t.forEach(e=>{n.push(e.querySelector(`.apexcharts-marker`))}),n}hasMarkers(e){return this.getElMarkers(e).length>0}getPathFromPoint(e,t){let n=Number(e.getAttribute(`cx`)),r=Number(e.getAttribute(`cy`)),i=e.getAttribute(`shape`);return new K(this.w).getMarkerPath(n,r,i,t)}getElBars(){return this.w.dom.baseEl.querySelectorAll(`.apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-violin-series, .apexcharts-rangebar-series`)}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(e){let t=this.w,n=t.config.markers.hover.size;return n===void 0&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}toggleAllTooltipSeriesGroups(e){let t=this.w,n=this.ttCtx;n.allTooltipSeriesGroups.length===0&&(n.allTooltipSeriesGroups=t.dom.baseEl.querySelectorAll(`.apexcharts-tooltip-series-group`));let r=n.allTooltipSeriesGroups;for(let n=0;n<r.length;n++)e===`enable`?(r[n].classList.add(`apexcharts-active`),r[n].style.display=t.config.tooltip.items.display):(r[n].classList.remove(`apexcharts-active`),r[n].style.display=`none`)}}class Nn{constructor(e){this.w=e.w,this.ttCtx=e,this.tooltipUtil=new Mn(e)}drawSeriesTexts({shared:e=!0,ttItems:t,i:n=0,j:r=null,y1:i,y2:a,e:o}){let s=this.w;s.config.tooltip.custom===void 0?this.toggleActiveInactiveSeries(e,n):this.handleCustomTooltip({i:n,j:r,y1:i,y2:a,w:s});let c=this.getValuesToPrint({i:n,j:r});this.printLabels({i:n,j:r,values:c,ttItems:t,shared:e,e:o});let l=this.ttCtx.getElTooltip();l&&(this.ttCtx.tooltipRect.ttWidth=l.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=l.getBoundingClientRect().height)}printLabels({i:e,j:t,values:n,ttItems:r,shared:i,e:a}){let o=this.w,{xVal:s,zVal:c,xAxisTTVal:l}=n,u=o.seriesData.series.length,d=t!==null&&o.config.plotOptions.bar.distributed?o.globals.colors[t]:o.globals.colors[e];for(let n=0;n<u;n++){let f=o.config.tooltip.inverseOrder?u-1-n:n,p=this.computeSeriesRow({i:e,j:t,t:n,tIndex:f,shared:i,e:a,basePColor:d});this.DOMHandling({i:e,t:f,j:t,ttItems:r,values:{val:p.val,goalVals:p.goalVals,xVal:s,xAxisTTVal:l,zVal:c},seriesName:p.seriesName,shared:i,pColor:p.pColor})}}computeSeriesRow({i:e,j:t,tIndex:n,shared:r,e:i,basePColor:a}){let o=this.w,l,u=this.getFormatters(e),d=a,f=[],p=o.config.chart.type===`treemap`?u.yLbTitleFormatter(String(o.config.series[e].data[t].x),{series:o.seriesData.series,seriesIndex:e,dataPointIndex:t,w:o}):this.getSeriesName({fn:u.yLbTitleFormatter,index:e,seriesIndex:e,j:t});return o.globals.axisCharts&&(r?(u=this.getFormatters(n),p=this.getSeriesName({fn:u.yLbTitleFormatter,index:n,seriesIndex:e,j:t}),d=o.globals.colors[n],l=this.formatYValue(u,n,t),f=this.formatGoalVals(u,n,t)):(d=this.resolvePatternColor(i,d),l=this.formatYValue(u,e,t),f=this.formatGoalVals(u,e,t))),t===null&&(l=u.yLbFormatter(o.seriesData.series[e],c(s({},o),{seriesIndex:e,dataPointIndex:e}))),{seriesName:p,val:l,goalVals:f,pColor:d}}formatYValue(e,t,n){var r,i,a,o;let s=this.w;return s.axisFlags.isRangeData?e.yLbFormatter((i=(r=s.rangeData.seriesRangeStart)==null?void 0:r[t])==null?void 0:i[n],{series:s.rangeData.seriesRangeStart,seriesIndex:t,dataPointIndex:n,w:s})+` - `+e.yLbFormatter((o=(a=s.rangeData.seriesRangeEnd)==null?void 0:a[t])==null?void 0:o[n],{series:s.rangeData.seriesRangeEnd,seriesIndex:t,dataPointIndex:n,w:s}):e.yLbFormatter(s.seriesData.series[t][n],{series:s.seriesData.series,seriesIndex:t,dataPointIndex:n,w:s})}formatGoalVals(e,t,n){var r;let i=this.w,a=(r=i.seriesData.seriesGoals[t])==null?void 0:r[n];return Array.isArray(a)?a.map(r=>({attrs:r,val:e.yLbFormatter(r.value,{seriesIndex:t,dataPointIndex:n,w:i})})):[]}resolvePatternColor(e,t){var n,r,i,a;let o=this.w,s=(r=(n=Mn.hoverTarget(e))==null?void 0:n.getAttribute)==null?void 0:r.call(n,`fill`);if(!s)return t;if(s.indexOf(`url`)===-1)return s;if(s.indexOf(`Pattern`)===-1)return t;let c=o.dom.baseEl.querySelector(s.substr(4).slice(0,-1));return(a=(i=c==null?void 0:c.childNodes[0])==null?void 0:i.getAttribute(`stroke`))==null?t:a}getFormatters(e){let t=this.w,n,r=t.formatters.yLabelFormatters[e];return t.formatters.ttVal===void 0?n=t.config.tooltip.y.title.formatter:Array.isArray(t.formatters.ttVal)?(r=t.formatters.ttVal[e]&&t.formatters.ttVal[e].formatter,n=t.formatters.ttVal[e]&&t.formatters.ttVal[e].title&&t.formatters.ttVal[e].title.formatter):(r=t.formatters.ttVal.formatter,typeof t.formatters.ttVal.title.formatter==`function`&&(n=t.formatters.ttVal.title.formatter)),typeof r!=`function`&&(r=t.formatters.yLabelFormatters[
10]?t.formatters.yLabelFormatters[0]:function(e){return e}),typeof n!=`function`&&(n=function(e){return e?e+`: `:``}),{yLbFormatter:r,yLbTitleFormatter:n}}getSeriesName({fn:e,index:t,seriesIndex:n,j:r}){let i=this.w;return e(String(i.seriesData.seriesNames[t]),{series:i.seriesData.series,seriesIndex:n,dataPointIndex:r,w:i})}DOMHandling({t:e,j:t,ttItems:n,values:r,seriesName:i,shared:a,pColor:o}){let s=this.w,c=this.ttCtx,{val:l,goalVals:u,xVal:d,xAxisTTVal:f,zVal:p}=r;if(!n||!n[e])return;let m=null;m=n[e].children,s.config.tooltip.fillSeriesColor&&(n[e].style.backgroundColor=o,m[0].style.display=`none`),c.showTooltipTitle&&(c.tooltipTitle===null&&(c.tooltipTitle=s.dom.baseEl.querySelector(`.apexcharts-tooltip-title`)),c.tooltipTitle&&(c.tooltipTitle.innerHTML=d)),c.isXAxisTooltipEnabled&&c.xaxisTooltipText&&(c.xaxisTooltipText.innerHTML=f===``?d:f);let h=n[e].querySelector(`.apexcharts-tooltip-text-y-label`);h&&(h.innerHTML=i||``);let g=n[e].querySelector(`.apexcharts-tooltip-text-y-value`);g&&(g.innerHTML=l===void 0?``:l),m[0]&&m[0].classList.contains(`apexcharts-tooltip-marker`)&&(s.config.tooltip.marker.fillColors&&Array.isArray(s.config.tooltip.marker.fillColors)&&(o=s.config.tooltip.marker.fillColors[e]),s.config.tooltip.fillSeriesColor?m[0].style.backgroundColor=o:m[0].style.color=o),s.config.tooltip.marker.show||(m[0].style.display=`none`);let _=n[e].querySelector(`.apexcharts-tooltip-text-goals-label`),v=n[e].querySelector(`.apexcharts-tooltip-text-goals-value`);if(u.length&&s.seriesData.seriesGoals[e]){let n=()=>{let e=`<div>`,t=`<div>`;u.forEach(n=>{e+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${n.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${n.attrs.name}</div>`,t+=`<div>${n.val}</div>`}),_.innerHTML=e+`</div>`,v.innerHTML=t+`</div>`};a?s.seriesData.seriesGoals[e][t]&&Array.isArray(s.seriesData.seriesGoals[e][t])?n():(_.innerHTML=``,v.innerHTML=``):n()}else _.innerHTML=``,v.innerHTML=``;if(p!==null&&(n[e].querySelector(`.apexcharts-tooltip-text-z-label`).innerHTML=s.config.tooltip.z.title,n[e].querySelector(`.apexcharts-tooltip-text-z-value`).innerHTML=p===void 0?``:p),a&&m[0]){if(s.config.tooltip.hideEmptySeries){let t=n[e].querySelector(`.apexcharts-tooltip-marker`),r=n[e].querySelector(`.apexcharts-tooltip-text`);parseFloat(l)==0?(t.style.display=`none`,r.style.display=`none`):(t.style.display=`block`,r.style.display=`block`)}l==null||s.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||s.globals.collapsedSeriesIndices.indexOf(e)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&c.tConfig.enabledOnSeries.indexOf(e)===-1?m[0].parentNode.style.display=`none`:m[0].parentNode.style.display=s.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&c.tConfig.enabledOnSeries.indexOf(e)===-1&&(m[0].parentNode.style.display=`none`)}toggleActiveInactiveSeries(e,t){let n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups(`enable`);else{this.tooltipUtil.toggleAllTooltipSeriesGroups(`disable`);let e=n.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${t}`);if(e){let t=e;t.classList.add(`apexcharts-active`),t.style.display=n.config.tooltip.items.display}}}getValuesToPrint({i:e,j:t}){var n,r,i,a,o,s,c,l;let u=this.w,d=u.seriesData.seriesX.map(e=>e.length>0?e:[]),f=``,p=``,m=null,h=null,g={series:u.seriesData.series,seriesIndex:e,dataPointIndex:t,w:u},_=u.formatters.ttZFormatter;t===null?h=u.seriesData.series[e]:u.axisFlags.isXNumeric&&u.config.chart.type!==`treemap`?(f=d[e][t],d[e].length===0&&(f=d[this.tooltipUtil.getFirstActiveXArray(d)][t])):f=new kn(this.w).isFormatXY()?u.config.series[e].data[t]===void 0?``:u.config.series[e].data[t].x:u.labelData.labels[t]===void 0?``:u.labelData.labels[t];let v=f;return f=u.axisFlags.isXNumeric&&u.config.xaxis.type===`datetime`?new C(this.w).xLabelFormat(u.formatters.ttKeyFormatter,v,v,{i:void 0,dateFormatter:new S(this.w).formatDate,w:this.w}):u.globals.isBarHorizontal?u.formatters.yLabelFormatters[0](v,g):(i=(r=(n=u.formatters).xLabelFormatter)==null?void 0:r.call(n,v,g))==null?v:i,u.config.tooltip.x.formatter!==void 0&&(f=(s=(o=(a=u.formatters).ttKeyFormatter)==null?void 0:o.call(a,v,g))==null?v:s),u.seriesData.seriesZ.length>0&&u.seriesData.seriesZ[e].length>0&&(m=_==null?void 0:_(u.seriesData.seriesZ[e][t],u)),p=typeof u.config.xaxis.tooltip.formatter==`function`?(l=(c=u.formatters).xaxisTooltipFormatter)==null?void 0:l.call(c,v,g):f,{val:Array.isArray(h)?h.join(` `):h,xVal:Array.isArray(f)?f.join(` `):f,xAxisTTVal:Array.isArray(p)?p.join(` `):p,zVal:m}}handleCustomTooltip({i:e,j:t,y1:n,y2:r,w:i}){let a=this.ttCtx.getElTooltip(),o=i.config.tooltip.custom;if(Array.isArray(o)&&(o=o[e]),typeof o!=`function`)return;let s=o({series:i.seriesData.series,seriesIndex:e,dataPointIndex:t,y1:n,y2:r,w:i});if(a){let e=a.querySelector(`.apexcharts-tooltip-arrow`);
1typeof s==`string`||typeof s==`number`?a.innerHTML=String(s):s!=null&&(s instanceof Element||typeof s.nodeName==`string`)&&(a.innerHTML=``,a.appendChild(s.cloneNode(!0))),e&&a.appendChild(e)}}}class Pn{constructor(e){this.ttCtx=e,this.w=e.w}moveXCrosshairs(e,t=null){let n=this.ttCtx,r=this.w,i=n.getElXCrosshairs(),a=e-n.xcrosshairsWidth/2,o=r.labelData.labels.slice().length;if(t!==null&&(a=r.layout.gridWidth/o*t),i===null||r.globals.isBarHorizontal||(i.setAttribute(`x`,String(a)),i.setAttribute(`x1`,String(a)),i.setAttribute(`x2`,String(a)),i.setAttribute(`y2`,String(r.layout.gridHeight)),i.classList.add(`apexcharts-active`)),a<0&&(a=0),a>r.layout.gridWidth&&(a=r.layout.gridWidth),n.isXAxisTooltipEnabled){let e=a;r.config.xaxis.crosshairs.width!==`tickWidth`&&r.config.xaxis.crosshairs.width!==`barWidth`||(e=a+n.xcrosshairsWidth/2),this.moveXAxisTooltip(e)}}moveYCrosshairs(e){let t=this.ttCtx;t.ycrosshairs!==null&&K.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&K.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}moveXAxisTooltip(e){var t,n;let r=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add(`apexcharts-active`);let a=i.xaxisOffY+r.config.xaxis.tooltip.offsetY+r.layout.translateY+5+r.config.xaxis.offsetY;if(e-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=r.layout.translateX;let o=new K(this.w).getTextRects((n=(t=i.xaxisTooltipText)==null?void 0:t.innerHTML)==null?``:n,r.config.xaxis.labels.style.fontSize);i.xaxisTooltipText&&(i.xaxisTooltipText.style.minWidth=o.width+`px`),i.xaxisTooltip.style.left=e+`px`,i.xaxisTooltip.style.top=a+`px`}}}moveYAxisTooltip(e){var t,n;let r=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=[...r.dom.baseEl.querySelectorAll(`.apexcharts-yaxistooltip`)]);let a=parseInt((n=(t=i.ycrosshairsHidden)==null?void 0:t.getAttribute(`y1`))==null?`0`:n,10),o=r.layout.translateY+a;if(i.yaxisTTEls){let t=i.yaxisTTEls[e].getBoundingClientRect(),n=t.height,a,s=r.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),c=r.dom.elWrap.getBoundingClientRect();if(s){let e=s.getBoundingClientRect();e.width>0&&(a=e.left+e.width/2-c.left-t.width/2)}a==null&&(a=r.config.yaxis[e].opposite?r.globals.translateYAxisX[e]+4:r.globals.translateYAxisX[e]-t.width-4),o-=n/2,r.globals.ignoreYAxisIndexes.indexOf(e)===-1&&o>0&&o<r.layout.gridHeight?(i.yaxisTTEls[e].classList.add(`apexcharts-active`),i.yaxisTTEls[e].style.top=o+`px`,i.yaxisTTEls[e].style.left=a+r.config.yaxis[e].tooltip.offsetX+`px`):i.yaxisTTEls[e].classList.remove(`apexcharts-active`)}}moveTooltip(e,t,n=null){let r=this.ttCtx.getElTooltip();if(!r)return;let i=this.computeTooltipPosition(e,t,n);i!==null&&this.applyTooltipPosition(r,i)}computeTooltipPosition(e,t,n=null){var r,i,a,o,s,c,l;let u=this.w,d=this.ttCtx,f=d.tooltipRect,p=!!u.config.tooltip.arrow,m=n===null?1:parseFloat(String(n)),h=f.ttHeight||0,g=f.ttWidth||0,_=parseFloat(String(e)),v=parseFloat(String(t));if(isNaN(_)||isNaN(v))return null;let y=m+(p?7:0)+0,b=_+y,x=v+u.layout.translateY,S=p?x-h/2+m/2:v+m/2,C=`right`;if(b>u.layout.gridWidth/2&&(b=_-g-y,C=`left`),b>u.layout.gridWidth-g-10&&(b=C===`left`?Math.min(u.layout.gridWidth-g,b):u.layout.gridWidth-g),b<-20&&(b=-20),u.config.tooltip.followCursor){let e=d.getElGrid();if(!e)return null;let t=e.getBoundingClientRect();b=d.e.clientX-t.left,b>u.layout.gridWidth/2?(b-=g,C=`left`):C=`right`,S=d.e.clientY+u.layout.translateY-t.top,S>u.layout.gridHeight/2&&(S-=h)}else if(!u.globals.isBarHorizontal){if(p){let e=u.layout.translateY,t=u.layout.translateY+u.layout.gridHeight;S+h>t&&(S=t-h),S<e&&(S=e)}else h/2+S>u.layout.gridHeight&&(S=u.layout.gridHeight-h+u.layout.translateY)}if(isNaN(b))return null;b+=u.layout.translateX;let w=(i=(r=u.config)==null?void 0:r.chart)==null?void 0:i.accessibility;if(w!=null&&w.enabled&&(o=(a=w==null?void 0:w.keyboard)==null?void 0:a.navigation)!=null&&o.enabled&&(l=(c=(s=u.dom)==null?void 0:s.baseEl)==null?void 0:c.querySelector)!=null&&l.call(c,`.apexcharts-keyboard-focused`)){let e=p?x:v,t=(m||1)+12,n=S,r=S+h;!isNaN(e)&&h>0&&n<e+t&&r>e-t&&(S=e-h-t,S<0&&(S=e+t))}let T=null;if(p&&h>0){let e=x-S,t=h-10;T=Math.max(10,Math.min(t,e))}return{x:b,y:S,placement:C,arrowY:T}}applyTooltipPosition(e,t){if(!e)return;let n=e.dataset.positioned!==`true`;n&&(e.style.transitionProperty=`none`),e.style.left=t.x+`px`,e.style.top=t.y+`px`,t.placement&&(e.dataset.placement=t.placement),t.arrowY!=null&&e.style.setProperty(`--apx-tt-arrow-y`,t.arrowY+`px`),t.arrowX!=null&&e.style.setProperty(`--apx-tt-arrow-x`,t.arrowX+`px`),n&&(e.offsetWidth,e.dataset.positioned=`true`,requestAnimationFrame(()=>{e.style.transitionProperty=``}))}moveMarkers(e,t){var n;let r=this.w,i=this.ttCtx;if(r.globals.markers.size[e]>0&&!r.globals.markers.batched){let a=r.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker`);for(let e=0;e<a.length;e++)parseInt((n=a[e].getAttribute(`rel`))==null?`0`:n,10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,a[e]))}else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}moveDynamicPointOnHover(e,t){var n,r,i,a,o;let s=this.w,c=this.ttCtx,l=0,u=0,d=new K(this.w),f=s.globals.pointsArray,p=c.tooltipUtil.getHoverMarkerSize(t),m=s.config.series[t].type;if(m&&(m===`column`||m===`candlestick`||m===`boxPlot`||m===`violin`))return;l=(r=(n=f[t])==null?void 0:n[e])==null?void 0:r[0],u=((a=(i=f[t])==null?void 0:i[e])==null?void 0:a[1])||0;let h=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers path`);if(h&&u<s.layout.gridHeight&&u>0){let e=(o=h.getAttribute(`shape`))==null?`circle`:o,t=d.getMarkerPath(l,u,e,1.5*p);h.setAttribute(`d`,t)}this.moveXCrosshairs(l),c.fixedTooltip||this.moveTooltip(l,u,p)}moveDynamicPointsOnHover(e){var t,n;let r=this.ttCtx,i=r.w,a=0,o=0,s=0,c=i.globals.pointsArray,l=new q(this.w),u=new K(this.w);s=l.getActiveConfigSeriesIndex(`asc`,[`line`,`area`,`scatter`,`bubble`]);let d=r.tooltipUtil.getHoverMarkerSize(s);if((t=c[s])!=null&&t[e]&&(a=c[s][e][0],o=c[s][e][1]),isNaN(a))return;let f=r.tooltipUtil.getAllMarkers();if(f.length)for(let t=0;t<i.seriesData.series.length;t++){let r=c[t];if(i.globals.comboCharts&&r===void 0&&f.splice(t,0,null),f[t]&&r&&r.length){let r,o=c[t][e][1];f[t].setAttribute(`cx`,a);let s=(n=f[t].getAttribute(`shape`))==null?`circle`:n;if(i.config.chart.type===`rangeArea`&&!i.globals.comboCharts){let n=e+i.seriesData.series[t].length;r=c[t][n][1],o-=Math.abs(o-r)/2}if(o!==null&&!isNaN(o)&&o<i.layout.gridHeight+d&&o+d>0){let e=u.getMarkerPath(a,o,s,d);f[t].setAttribute(`d`,e)}else f[t].setAttribute(`d`,``)}}this.moveXCrosshairs(a),r.fixedTooltip||this.moveTooltip(a,o||i.layout.gridHeight,d)}moveStickyTooltipOverBars(e,t){var n,r,i,a,o;let s=this.w,c=this.ttCtx,l=s.globals.columnSeries?s.globals.columnSeries.length:s.seriesData.series.length;s.config.chart.stacked&&(l=s.globals.barGroups.length);let u=l>=2&&l%2==0?Math.floor(l/2):Math.floor(l/2)+1;s.globals.isBarHorizontal&&(u=new q(this.w).getActiveConfigSeriesIndex(`desc`)+1);let d=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-candlestick-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-violin-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-rangebar-series .apexcharts-series[rel='${u}'] path[j='${e}']`);d||typeof t!=`number`||(d=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n        .apexcharts-violin-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}']`));let f=null,p=s.globals.barCanvasCoords;
1if(!d&&p&&(f=typeof t==`number`&&((n=p[t])==null?void 0:n[e])||null,!f)){for(let t in p)if((r=p[t])!=null&&r[e]){f=p[t][e];break}}let m=d?parseFloat((i=d.getAttribute(`cx`))==null?`0`:i):f?f.cx:0,h=d?parseFloat((a=d.getAttribute(`cy`))==null?`0`:a):f?f.cy:0,g=d?parseFloat((o=d.getAttribute(`barWidth`))==null?`0`:o):f?f.barWidth:0,_=c.getElGrid();if(!_)return;let v=_.getBoundingClientRect(),y=d&&(d.classList.contains(`apexcharts-candlestick-area`)||d.classList.contains(`apexcharts-boxPlot-area`));if(s.axisFlags.isXNumeric){if(d&&!y){let t=this._datapointCenterXFromBars(e);t==null?m-=l%2==0?0:g/2:m=t}d&&y&&(m-=g/2)}else s.globals.isBarHorizontal||f||(m=c.xAxisTicksPositions[e-1]+c.dataPointsDividedWidth/2,isNaN(m)&&(m=c.xAxisTicksPositions[e]-c.dataPointsDividedWidth/2));if(s.globals.isBarHorizontal?h-=c.tooltipRect.ttHeight:s.config.tooltip.followCursor?h=c.e.clientY-v.top-c.tooltipRect.ttHeight/2:h+c.tooltipRect.ttHeight+15>s.layout.gridHeight&&(h=s.layout.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(m),!c.fixedTooltip){if(s.globals.isBarHorizontal&&!s.config.tooltip.followCursor&&this.placeHorizontalSharedTooltip(e))return;this.moveTooltip(m,h||s.layout.gridHeight)}}_datapointCenterXFromBars(e){var t,n;let r=this.w,i=r.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}']`);if(!i.length)return null;let a=1/0,o=-1/0;for(let e of i){let r=e.parentNode;if((n=(t=r==null?void 0:r.classList)==null?void 0:t.contains)!=null&&n.call(t,`apexcharts-series-collapsed`))continue;let i=e.getBoundingClientRect();i.width===0&&i.height===0||(i.left<a&&(a=i.left),i.right>o&&(o=i.right))}return isFinite(a)?jn.screenXToPlotPx(r,(a+o)/2):null}placeHorizontalSharedTooltip(e){var t,n;let r=this.w,i=this.ttCtx,a=i.getElTooltip();if(!a)return!1;let o=i.getElGrid();if(!o)return!1;let s=o.getBoundingClientRect(),c=r.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}'],.apexcharts-boxPlot-series path[j='${e}']`);if(!c.length)return!1;let l=1/0,u=-1/0,d=1/0,f=-1/0;for(let e of c){let r=e.parentNode;if((n=(t=r==null?void 0:r.classList)==null?void 0:t.contains)!=null&&n.call(t,`apexcharts-series-collapsed`))continue;let i=e.getBoundingClientRect();i.width===0&&i.height===0||(i.left<l&&(l=i.left),i.right>u&&(u=i.right),i.top<d&&(d=i.top),i.bottom>f&&(f=i.bottom))}if(!isFinite(l))return!1;let p=i.tooltipRect.ttWidth||0,m=i.tooltipRect.ttHeight||0,h=(l+u)/2-s.left+r.layout.translateX,g=d-s.top+r.layout.translateY,_=f-s.top+r.layout.translateY,v=r.layout.translateY,y=r.layout.translateY+r.layout.gridHeight,b=r.layout.translateX,x=r.layout.translateX+r.layout.gridWidth,S=`top`,C=g-m-7;if(C<v){let e=_+7;e+m<=y&&(S=`bottom`,C=e)}let w=h-p/2;w<b&&(w=b),w+p>x&&(w=x-p);let T=Math.max(10,Math.min(p-10,h-w));return this.applyTooltipPosition(a,{x:w,y:C,placement:S,arrowY:null,arrowX:T}),!0}}function Fn(e){let t=e=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${e}</svg>`;switch(e){case`square`:case`rect`:return t(`<rect x="1" y="1" width="10" height="10" rx="1" fill="currentColor"/>`);case`line`:return t(`<rect x="0" y="5" width="12" height="2" rx="1" fill="currentColor"/>`);case`diamond`:return t(`<path d="M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z" fill="currentColor"/>`);case`triangle`:return t(`<path d="M6 1 L11.2 10.5 L0.8 10.5 Z" fill="currentColor"/>`);case`cross`:return t(`<path d="M2 2 L10 10 M10 2 L2 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>`);case`plus`:return t(`<path d="M6 1 L6 11 M1 6 L11 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>`);case`star`:return t(`<path d="M6 0.5 L7.5 4.4 L11.5 4.7 L8.4 7.2 L9.5 11.1 L6 8.9 L2.5 11.1 L3.6 7.2 L0.5 4.7 L4.5 4.4 Z" fill="currentColor"/>`);case`sparkle`:return t(`<path d="M6 0.5 L7 5 L11.5 6 L7 7 L6 11.5 L5 7 L0.5 6 L5 5 Z" fill="currentColor"/>`);default:return t(`<circle cx="6" cy="6" r="5" fill="currentColor"/>`)}}class In{constructor(e){this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Pn(e)}drawDynamicPoints(){let e=this.w,t=new K(this.w),n=new Re(this.w,this.ctx),r=[...e.dom.baseEl.querySelectorAll(`.apexcharts-series`)
1];e.config.chart.stacked&&r.sort((e,t)=>parseFloat(e.getAttribute(`data:realIndex`))-parseFloat(t.getAttribute(`data:realIndex`)));for(let i=0;i<r.length;i++){let a=r[i].querySelector(`.apexcharts-series-markers-wrap`);if(a!==null){let r=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;Re.markersAreInert(e)&&(r+=` no-pointer-events`);let i=n.getMarkerConfig({cssClass:r,seriesIndex:Number(a.getAttribute(`data:realIndex`))}),o=t.drawMarker(0,0,i);o.node.setAttribute(`default-marker-size`,0);let s=v.createElementNS(H,`g`);s.classList.add(`apexcharts-series-markers`),s.appendChild(o.node),a.appendChild(s)}}}enlargeCurrentPoint(e,t,n=null,r=null){let i=this.w,a=i.config.markers.hover.size;i.config.chart.type!==`bubble`&&(a=this.newPointSize(e,t));let o=t.getAttribute(`cx`),s=t.getAttribute(`cy`);if(n!==null&&r!==null&&(o=n,s=r),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(i.config.chart.type===`radar`){let e=this.ttCtx.getElGrid();if(!e)return;let t=e.getBoundingClientRect();o=this.ttCtx.e.clientX-t.left}this.tooltipPosition.moveTooltip(o,s,a)}}enlargePoints(e){var t,n;let r=this.w,i=this,a=this.ttCtx,o=e,s=r.dom.baseEl.querySelectorAll(`.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker`),c=r.config.markers.hover.size;for(let e=0;e<s.length;e++){let l=s[e].getAttribute(`rel`),u=s[e].getAttribute(`index`);if(c===void 0&&(c=r.globals.markers.size[u]+r.config.markers.hover.sizeOffset),o===parseInt(l==null?`0`:l,10)){i.newPointSize(o,s[e]);let r=(t=s[e].getAttribute(`cx`))==null?`0`:t,l=(n=s[e].getAttribute(`cy`))==null?`0`:n;i.tooltipPosition.moveXCrosshairs(parseFloat(r)),a.fixedTooltip||i.tooltipPosition.moveTooltip(parseFloat(r),parseFloat(l),c)}else i.oldPointSize(s[e])}}newPointSize(e,t){let n=this.w,r=n.config.markers.hover.size,i=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(i.getAttribute(`default-marker-size`)!==`0`){let e=parseInt(i.getAttribute(`index`),10);r===void 0&&(r=n.globals.markers.size[e]+n.config.markers.hover.sizeOffset),r<0&&(r=0);let a=this.ttCtx.tooltipUtil.getPathFromPoint(t,r);return t.setAttribute(`d`,a),r}}oldPointSize(e){let t=parseFloat(e.getAttribute(`default-marker-size`)),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute(`d`,n)}resetPointsSize(){var e;let t=this.w.dom.baseEl.querySelectorAll(`.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker`);for(let n=0;n<t.length;n++){let r=parseFloat((e=t[n].getAttribute(`default-marker-size`))==null?`0`:e);if(x.isNumber(r)&&r>0){let e=this.ttCtx.tooltipUtil.getPathFromPoint(t[n],r);t[n].setAttribute(`d`,e)}else t[n].setAttribute(`d`,`M0,0`)}}}class Ln{constructor(e){this.w=e.w;let t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type===`rangeBar`&&t.config.plotOptions.bar.rangeBarGroupRows}getAttr(e,t){var n;return parseFloat((n=Mn.hoverTarget(e).getAttribute(t))==null?``:n)}handleHeatTreeTooltip({e,opt:t,x:n,y:r,type:i}){var a,o;let s=this.ttCtx,c=this.w,l=c.globals.activeRenderer,u=i===`heatmap`&&l&&l.kind===`canvas`&&typeof l.hitTest==`function`,d=Mn.hoverTarget(e),f,p,m,h,g,_;if(u){let i=t.elGrid.getBoundingClientRect(),a=e.type===`touchmove`?e.touches[0].clientX:e.clientX,o=e.type===`touchmove`?e.touches[0].clientY:e.clientY,s=l.hitTest(a-i.left,o-i.top);if(!s)return{x:n,y:r,noHit:!0};f=s.seriesIndex,p=s.dataPointIndex,m=s.x,h=s.y,g=s.width,_=s.height}else{if(!d.classList.contains(`apexcharts-${i}-rect`))return{x:n,y:r};f=this.getAttr(e,`i`),p=this.getAttr(e,`j`),m=this.getAttr(e,`cx`),h=this.getAttr(e,`cy`),g=this.getAttr(e,`width`),_=this.getAttr(e,`height`)}s.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:f,j:p,shared:!1,e}),c.interact.capturedSeriesIndex=f,c.interact.capturedDataPointIndex=p,s.tooltipPosition.moveXCrosshairs(m+g/2);let v=s.getElTooltip();if(i===`heatmap`&&c.config.tooltip.arrow&&!c.config.tooltip.followCursor&&v){let e=t.elGrid.getBoundingClientRect(),n=c.dom.elWrap.getBoundingClientRect(),r=e.left-n.left,i,a,o,l;if(u)i=m,a=h,o=m+g,l=h+_;else{let t=d.getBoundingClientRect();i=t.left-e.left,a=t.top-e.top,o=t.right-e.left,l=t.bottom-e.top}let f=s.tooltipRect.ttWidth||0,p=s.tooltipRect.ttHeight||0,y=(i+o)/2+r,b=a+c.layout.translateY,x=l+c.layout.translateY,S=c.layout.translateY,C=c.layout.translateY+c.layout.gridHeight,w=r,T=r+c.layout.gridWidth,E=`to
1p`,D=b-p-7;if(D<S){let e=x+7;e+p<=C?(E=`bottom`,D=e):D=S}let O=y-f/2;O<w&&(O=w),O+f>T&&(O=T-f);let k=Math.max(10,Math.min(f-10,y-O));return s.tooltipPosition.applyTooltipPosition(v,{x:O,y:D,placement:E,arrowY:null,arrowX:k}),{x:O,y:D,positioned:!0}}if(n=m+s.tooltipRect.ttWidth/2+g,r=h+s.tooltipRect.ttHeight/2-_/2,n>c.layout.gridWidth/2&&(n=m-s.tooltipRect.ttWidth/2+g),s.w.config.tooltip.followCursor){let e=c.dom.elWrap.getBoundingClientRect();n=((a=c.interact.clientX)==null?0:a)-e.left-(n>c.layout.gridWidth/2?s.tooltipRect.ttWidth:0),r=((o=c.interact.clientY)==null?0:o)-e.top-(r>c.layout.gridHeight/2?s.tooltipRect.ttHeight:0)}return{x:n,y:r}}handleMarkerTooltip({e,opt:t,x:n,y:r}){let i=this.w,a=this.ttCtx,o,s;if(Mn.hoverTarget(e).classList.contains(`apexcharts-marker`)){let c=parseInt(t.paths.getAttribute(`cx`),10),l=parseInt(t.paths.getAttribute(`cy`),10),u=parseFloat(t.paths.getAttribute(`val`));if(s=parseInt(t.paths.getAttribute(`rel`),10),o=parseInt(t.paths.parentNode.parentNode.parentNode.getAttribute(`rel`),10)-1,a.intersect){let e=x.findAncestor(t.paths,`apexcharts-series`);e&&(o=parseInt(e.getAttribute(`data:realIndex`),10))}if(a.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:o,j:s,shared:!a.showOnIntersect&&i.config.tooltip.shared,e}),e.type===`mouseup`&&a.markerClick(e,o,s),i.interact.capturedSeriesIndex=o,i.interact.capturedDataPointIndex=s,n=c,i.config.tooltip.arrow?r=l:(r=l+i.layout.translateY-1.4*a.tooltipRect.ttHeight,u<0&&(r=l)),a.w.config.tooltip.followCursor){let e=a.getElGrid();if(!e)return{x:n,y:r};let t=e.getBoundingClientRect();r=a.e.clientY+i.layout.translateY-t.top}a.marker.enlargeCurrentPoint(s,t.paths,n,r)}return{x:n,y:r}}handleBarTooltip({e,opt:t}){var n,r,i;let a=this.w,o=this.ttCtx,s=o.getElTooltip(),c,l=0,u=0,d=0,f=0,p=this.getBarTooltipXY({e,opt:t});if(p.j===null&&p.barHeight===0&&p.barWidth===0)return;f=p.i;let m=p.j;if(a.interact.capturedSeriesIndex=f,a.interact.capturedDataPointIndex=m===null?a.interact.capturedDataPointIndex:m,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(u=p.x,d=p.y,c=Array.isArray(a.config.stroke.width)?a.config.stroke.width[f]:a.config.stroke.width,l=u):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(d)&&(d=a.globals.svgHeight-o.tooltipRect.ttHeight),u+o.tooltipRect.ttWidth>a.layout.gridWidth?u-=o.tooltipRect.ttWidth:u<0&&(u=0),(!o.w.config.tooltip.followCursor||o.getElGrid())&&(o.tooltip===null&&(o.tooltip=a.dom.baseEl.querySelector(`.apexcharts-tooltip:not(.apexcharts-annotation-tooltip)`)),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+c/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(d=d+a.layout.translateY-o.tooltipRect.ttHeight/2,s))){let e=o.tooltipRect.ttWidth||0,t=o.tooltipRect.ttHeight||0,c=!!a.config.tooltip.arrow,{barAnchorXInGrid:l,barAnchorYInGrid:f,barRectInGrid:m}=p,h=(n=o.getElGrid())==null?void 0:n.getBoundingClientRect(),g=a.dom.elWrap.getBoundingClientRect(),_=h?h.left-g.left:a.layout.translateX,v,y=null,b=null,x=u+_,S=d;if(c&&a.globals.isBarHorizontal&&m!=null){let n=a.layout.translateY,r=a.layout.translateY+a.layout.gridHeight,i=_,o=_+a.layout.gridWidth,s=(m.left+m.right)/2+_,c=m.top+a.layout.translateY,l=m.bottom+a.layout.translateY,u=c-t-7;if(v=`top`,u<n){let e=l+7;e+t<=r&&(v=`bottom`,u=e)}S=u,x=s-e/2,x<i&&(x=i),x+e>o&&(x=o-e),b=Math.max(10,Math.min(e-10,s-x))}else if(c&&l!=null&&f!=null){let n=l+_,o=_+a.layout.gridWidth/2,s=((r=m==null?void 0:m.left)==null?l:r)+_,c=((i=m==null?void 0:m.right)==null?l:i)+_;if(n<o?(v=`right`,x=c+7):(v=`left`,x=s-e-7),m){S=(m.top+m.bottom)/2+a.layout.translateY-t/2;let e=a.layout.translateY,n=a.layout.translateY+a.layout.gridHeight;S<e&&(S=e),S+t>n&&(S=n-t)}if(t>0&&m){let e=(m.top+m.bottom)/2+a.layout.translateY;y=Math.max(10,Math.min(t-10,e-S))}}o.tooltipPosition.applyTooltipPosition(s,{x,y:S,placement:v,arrowY:y,arrowX:b})}}getBarTooltipXY({e,opt:t}){let n=this.w,r=null,i=this.ttCtx,a=0,o=0,s=0,c=0,l=0,u=null,d=null,f=null,p=null,m=null,h=Mn.hoverTarget(e),g=h.classList;if(g.contains(`apexcharts-bar-area`)||g.contains(`apexcharts-candlestick-area`)||g.contains(`apexcharts-boxPlot-area`)||g.contains(`apexcharts-rangebar-area`)){let g=h,_=g.getBoundingClientRect(),v=t.elGrid.getBoundingClientRect(),y=_.he
1ight;l=_.height;let b=_.width,x=parseInt(g.getAttribute(`cx`),10),S=parseInt(g.getAttribute(`cy`),10);u=x,d=S,c=parseFloat(g.getAttribute(`barWidth`));let C=_.left-v.left,w=_.top-v.top,T=w+y/2;f=C+b/2,p=n.globals.isBarHorizontal?T:w,m={left:C,top:w,right:C+b,bottom:w+y};let E=e.type===`touchmove`?e.touches[0].clientX:e.clientX;r=parseInt(g.getAttribute(`j`),10),a=parseInt(g.parentNode.getAttribute(`rel`),10)-1;let D=g.getAttribute(`data-range-y1`),O=g.getAttribute(`data-range-y2`);n.globals.comboCharts&&(a=parseInt(g.parentNode.getAttribute(`data:realIndex`),10));let k=e=>n.axisFlags.isXNumeric?x-b/2:this.isVerticalGroupedRangeBar?x+b/2:x-i.dataPointsDividedWidth+b/2,A=()=>S-i.dataPointsDividedHeight+y/2-i.tooltipRect.ttHeight/2;i.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:a,j:r,y1:D?parseInt(D,10):null,y2:O?parseInt(O,10):null,shared:!i.showOnIntersect&&n.config.tooltip.shared,e}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(o=E-v.left+15,s=A()):(o=k(o),s=e.clientY-v.top-i.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?(o=x,i.xyRatios&&o<i.xyRatios.baseLineInvertedY&&(o=x-i.tooltipRect.ttWidth),s=A()):(o=k(o),s=S)}return{x:o,y:s,barHeight:l,barWidth:c,i:a,j:r,barCx:u,barCy:d,barAnchorXInGrid:f,barAnchorYInGrid:p,barRectInGrid:m}}}class Rn{constructor(e){this.w=e.w,this.ttCtx=e}drawXaxisTooltip(){let e=this.w,t=this.ttCtx,n=e.config.xaxis.position===`bottom`;t.xaxisOffY=n?e.layout.gridHeight+1:-e.layout.xAxisHeight-e.config.xaxis.axisTicks.height+3;let r=n?`apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom`:`apexcharts-xaxistooltip apexcharts-xaxistooltip-top`,i=e.dom.elWrap;t.isXAxisTooltipEnabled&&e.dom.baseEl.querySelector(`.apexcharts-xaxistooltip`)===null&&(t.xaxisTooltip=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),t.xaxisTooltip.setAttribute(`class`,r+` apexcharts-theme-`+e.config.tooltip.theme),i.appendChild(t.xaxisTooltip),t.xaxisTooltipText=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),t.xaxisTooltipText.classList.add(`apexcharts-xaxistooltip-text`),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}drawYaxisTooltip(){let e=this.w,t=this.ttCtx;for(let n=0;n<e.config.yaxis.length;n++){let r=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=r?e.layout.gridWidth+1:1;let i=r?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${n} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${n} apexcharts-yaxistooltip-left`,a=e.dom.elWrap;e.dom.baseEl.querySelector(`.apexcharts-yaxistooltip.apexcharts-yaxistooltip-${n}`)===null&&(t.yaxisTooltip=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),t.yaxisTooltip.setAttribute(`class`,i+` apexcharts-theme-`+e.config.tooltip.theme),a.appendChild(t.yaxisTooltip),n===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),t.yaxisTooltipText[n].classList.add(`apexcharts-yaxistooltip-text`),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))}}setXCrosshairWidth(){var e,t;let n=this.w,r=this.ttCtx,i=r.getElXCrosshairs();if(r.xcrosshairsWidth=parseInt(n.config.xaxis.crosshairs.width,10),n.globals.comboCharts){let e=n.dom.baseEl.querySelector(`.apexcharts-bar-area`);if(e!==null&&n.config.xaxis.crosshairs.width===`barWidth`)r.xcrosshairsWidth=parseFloat((t=e.getAttribute(`barWidth`))==null?`0`:t);else if(n.config.xaxis.crosshairs.width===`tickWidth`){let e=n.labelData.labels.length;r.xcrosshairsWidth=n.layout.gridWidth/e}}else if(n.config.xaxis.crosshairs.width===`tickWidth`){let e=n.labelData.labels.length;r.xcrosshairsWidth=n.layout.gridWidth/e}else if(n.config.xaxis.crosshairs.width===`barWidth`){let t=n.dom.baseEl.querySelector(`.apexcharts-bar-area`);r.xcrosshairsWidth=t===null?1:parseFloat((e=t.getAttribute(`barWidth`))==null?`0`:e)}n.globals.isBarHorizontal&&(r.xcrosshairsWidth=0),i!==null&&r.xcrosshairsWidth>0&&i.setAttribute(`width`,String(r.xcrosshairsWidth))}handleYCrosshair(){let e=this.w,t=this.ttCtx;t.ycrosshairs=e.dom.baseEl.querySelector(`.apexcharts-ycrosshairs`),t.ycrosshairsHidden=e.dom.baseEl.querySelector(`.apexcharts-ycrosshairs-hidden`)}drawYaxisTooltipText(e,t,n){let r=this.ttCtx,i=this.w,a=i.globals,o=a.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&o.length>0){let s=i.formatters.yLabelFormatters[e],c=r.getElGrid();if(!c)return;let l=c.getBoundingClientRect(),u=o[0],d=0;n.yRatio.length>1&&(d=u);let f=(t-l.top)*n.yRatio[d],p=a.maxYArr[u]-a.minYArr[u],m=a.minYArr[u]+(p-f);i.config.yaxis[e].reversed&&(m=a.maxYArr[u]-(p-f)),r.tooltipPosition.moveYCrosshairs(t-l.top),r.yaxisTooltipText[e].innerHTML=s(m),r.tooltipPosition.moveYAxisTooltip(e)}}}class zn{constructor(e,t){this.w=e,this.ctx=t,this.tConfig=e.config.tooltip,this.tooltipUtil=new Mn(this),this.tooltipLabels=new Nn(this),this.tooltipPosition=new Pn(this),this.marker=new In(this),this.intersect=ne
1w Ln(this),this.axesTooltip=new Rn(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.xaxisTooltipText=null,this.yaxisTooltip=null,this.yaxisTooltipText=null,this.yaxisTTEls=null,this.xaxisOffY=0,this.yaxisOffX=0,this.xcrosshairsWidth=0,this.ycrosshairs=null,this.ycrosshairsHidden=null,this.tooltip=null,this.e=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now(),this.dimensionUpdateScheduled=!1,this.xyRatios=null,this.isXAxisTooltipEnabled=!1,this.yaxisTooltips=[],this.allTooltipSeriesGroups=[],this.xAxisTicksPositions=null,this.dataPointsDividedHeight=0,this.dataPointsDividedWidth=0,this.tooltipTitle=null,this.legendLabels=null,this.ttItems=null,this.seriesBound=null,this.seriesHoverTimeout=void 0,this.clientX=0,this.clientY=0,this.barSeriesHeight=0,this.tooltipRect={x:0,y:0,ttWidth:0,ttHeight:0}}setupDimensionCache(){let e=this.w,t=this.getElTooltip();t&&(this.updateDimensionCache(),typeof ResizeObserver>`u`||e.globals.resizeObserver||(e.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),e.globals.resizeObserver.observe(t)))}updateDimensionCache(){let e=this.w,t=this.getElTooltip();if(!t)return;let n=t.getBoundingClientRect();e.globals.dimensionCache.tooltip={width:n.width,height:n.height,lastUpdate:Date.now()}}getCachedDimensions(){let e=this.w;if(e.globals.dimensionCache.tooltip){let t=e.globals.dimensionCache.tooltip;if(Date.now()-t.lastUpdate<1e3)return{ttWidth:t.width,ttHeight:t.height}}this.updateDimensionCache();let t=e.globals.dimensionCache.tooltip;return t?{ttWidth:t.width,ttHeight:t.height}:{ttWidth:0,ttHeight:0}}getElTooltip(e){return e||(e=this),e.w.dom.baseEl?e.w.dom.baseEl.querySelector(`.apexcharts-tooltip:not(.apexcharts-annotation-tooltip)`):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(`.apexcharts-xcrosshairs`)}getElGrid(){return this.w.dom.baseEl.querySelector(`.apexcharts-grid`)}drawTooltip(e){let t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(e=>!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);let n=this.getElTooltip();n!=null&&n.parentNode&&n.parentNode.removeChild(n),this.tooltipTitle=null;let r=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`);r.classList.add(`apexcharts-tooltip`),t.config.tooltip.cssClass&&r.classList.add(t.config.tooltip.cssClass),r.classList.add(`apexcharts-theme-${this.tConfig.theme||`light`}`),this.tConfig.fillSeriesColor&&r.classList.add(`apexcharts-tooltip-fill-series`),this.tConfig.compact&&(r.classList.add(`apexcharts-tooltip-compact`),t.config.series.length===1&&r.classList.add(`apexcharts-tooltip-value-only`)),this.tConfig.style&&this.tConfig.style.background&&r.style.setProperty(`--apx-tt-bg`,this.tConfig.style.background);let i=this.tConfig.shared&&t.config.series.length>1&&!t.globals.isBarHorizontal&&t.config.chart.type!==`heatmap`;if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!i&&!this.tConfig.fillSeriesColor&&t.globals.axisCharts){let e=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`);e.classList.add(`apexcharts-tooltip-arrow`),r.appendChild(e)}if(t.config.chart.accessibility.enabled&&t.config.chart.accessibility.announcements.enabled&&(r.setAttribute(`role`,`tooltip`),r.setAttribute(`aria-live`,`polite`),r.setAttribute(`aria-atomic`,`true`),r.setAttribute(`aria-hidden`,`true`)),t.dom.elWrap.appendChild(r),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();let e=new We(this.w,this.ctx,void 0);this.xAxisTicksPositions=e.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!==`rangeBar`||this.tConfig.shared||(this.showOnIntersect=!0),(t.config.markers.size===0||t.globals.markers.largestSize===0||t.globals.markers.batched)&&this.marker.drawDynamicPoints(),t.globals.collapsedSeries.length===t.seriesData.series.length)return;this.dataPointsDividedHeight=t.layout.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.layout.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),this.tooltipTitle.classList.add(`apexcharts-tooltip-title`),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,r.appendChild(this.tooltipTitle));let a=t.seriesData.series.length;
1(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.seriesData.series.length),this.legendLabels=t.dom.baseEl.querySelectorAll(`.apexcharts-legend-text`),this.ttItems=this.createTTElements(a),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(e){let t=this.w,n=[],r=this.getElTooltip();if(!r)return n;for(let i=0;i<e;i++){let a=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`);a.classList.add(`apexcharts-tooltip-series-group`,`apexcharts-tooltip-series-group-${i}`),a.style.order=String(t.config.tooltip.inverseOrder?e-i:i+1);let o=v.createElementNS(`http://www.w3.org/1999/xhtml`,`span`);o.classList.add(`apexcharts-tooltip-marker`),t.config.tooltip.fillSeriesColor?o.style.backgroundColor=t.globals.colors[i]:o.style.color=t.globals.colors[i];let s=t.config.markers.shape,c=s;Array.isArray(s)&&(c=s[i]),o.setAttribute(`shape`,c),o.innerHTML=Fn(c),a.appendChild(o);let l=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`);l.classList.add(`apexcharts-tooltip-text`),l.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,l.style.fontSize=this.tConfig.style.fontSize,[`y`,`goals`,`z`].forEach(e=>{let t=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`);t.classList.add(`apexcharts-tooltip-${e}-group`);let n=v.createElementNS(`http://www.w3.org/1999/xhtml`,`span`);n.classList.add(`apexcharts-tooltip-text-${e}-label`),t.appendChild(n);let r=v.createElementNS(`http://www.w3.org/1999/xhtml`,`span`);r.classList.add(`apexcharts-tooltip-text-${e}-value`),t.appendChild(r),l.appendChild(t)}),a.appendChild(l),r.appendChild(a),n.push(a)}return n}addSVGEvents(){let e=this.w,t=e.config.chart.type,n=this.getElTooltip();if(!n)return;let r=t===`bar`||t===`candlestick`||t===`boxPlot`||t===`violin`||t===`rangeBar`,i=t===`area`||t===`line`||t===`scatter`||t===`bubble`||t===`radar`,a=i&&!e.globals.xyCharts,o=e.dom.Paper.node,s=this.getElGrid();s&&(this.seriesBound=s.getBoundingClientRect());let c=[],l=[],u={hoverArea:o,elGrid:s,tooltipEl:n,tooltipY:c,tooltipX:l,ttItems:this.ttItems},d;if(e.globals.axisCharts&&(i?d=e.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker`):r?d=e.dom.baseEl.querySelectorAll(`.apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-violin-area, .apexcharts-series .apexcharts-rangebar-area`):t!==`heatmap`&&t!==`treemap`||(d=e.dom.baseEl.querySelectorAll(`.apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap`)),d&&d.length))for(let e=0;e<d.length;e++)c.push(d[e].getAttribute(`cy`)),l.push(d[e].getAttribute(`cx`));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],u);else if(r&&!e.globals.comboCharts||i&&this.showOnIntersect||a)this.addDatapointEventsListeners(u);else if(t===`heatmap`&&e.globals.activeRenderer&&e.globals.activeRenderer.kind===`canvas`)this.addPathsEventListeners([o],u);else if(!e.globals.axisCharts||t===`heatmap`||t===`treemap`){let t=e.dom.baseEl.querySelectorAll(`.apexcharts-series`);this.addPathsEventListeners(t,u)}if(this.showOnIntersect){let t=e.dom.baseEl.querySelectorAll(`.apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker`);t.length>0&&this.addPathsEventListeners(t,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}drawFixedTooltipRect(){let e=this.w,t=this.getElTooltip();if(!t)return{x:0,y:0,ttWidth:0,ttHeight:0};let n=t.getBoundingClientRect(),r=n.width+10,i=n.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf(`right`)>-1&&(a=a+e.globals.svgWidth-r+10),s.indexOf(`bottom`)>-1&&(o=o+e.globals.svgHeight-i-10),this.tooltipPosition.applyTooltipPosition(t,{x:a,y:o}),{x:a,y:o,ttWidth:r,ttHeight:i}}addDatapointEventsListeners(e){let t=this.w.dom.baseEl.querySelectorAll(`.apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area`);this.addPathsEventListeners(t,e)}addPathsEventListeners(e,t){let n=this;for(let r=0;r<e.length;r++){let i={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};[`mousemove`,`mouseup`,`touchmove`,`mouseout`,`touchend`].map(t=>
1e[r].addEventListener(t,n.onSeriesHover.bind(n,i),{capture:!1,passive:!0}))}}onSeriesHover(e,t){Mn.hoverTarget(t);let n=Date.now()-this.lastHoverTime;n>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(e,t)},20-n))}seriesHover(e,t){if(this.w.globals.isDestroyed)return;this.lastHoverTime=Date.now();let n=[],r=this.w,i=e=>{var t,n,r;let i=(r=(n=(t=e==null?void 0:e.w)==null?void 0:t.config)==null?void 0:n.chart)==null?void 0:r.link;return!(!i||typeof i.dimension!=`function`)};r.config.chart.group&&!i(this.ctx)&&(n=this.ctx.getSyncedCharts().filter(e=>!i(e))),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||r.globals.dataPoints===0)||(n.length?n.forEach(n=>{let r=this.getElTooltip(n),i={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===this.w.globals.minX&&n.w.globals.maxX===this.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:i,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}seriesHoverByContext({chartCtx:e,ttCtx:t,opt:n,e:r}){var i;let a=e.w;if(!this.getElTooltip(e))return;let o=t.getCachedDimensions();t.tooltipRect={x:0,y:0,ttWidth:o.ttWidth,ttHeight:o.ttHeight},t.e=r,t.tooltipUtil.hasBars()&&!a.globals.comboCharts&&!t.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new q(e.w).toggleSeriesOnHover(r,(i=Mn.hoverTarget(r))==null?void 0:i.parentNode),a.globals.axisCharts?t.axisChartsTooltips({e:r,opt:n,tooltipRect:t.tooltipRect}):t.nonAxisChartsTooltips({e:r,opt:n,tooltipRect:t.tooltipRect}),t.fixedTooltip&&t.drawFixedTooltipRect()}axisChartsTooltips({e,opt:t}){var n;let r=this.w,i,a;if(!t.elGrid)return;let o=t.elGrid.getBoundingClientRect(),s=e.type===`touchmove`?e.touches[0].clientX:e.clientX,c=e.type===`touchmove`?e.touches[0].clientY:e.clientY;if(this.clientY=c,this.clientX=s,r.interact.capturedSeriesIndex=-1,r.interact.capturedDataPointIndex=-1,c<o.top||c>o.top+o.height||r.dom.elWrap.querySelector(`.apexcharts-annotation-tooltip.apexcharts-active`))return void this.handleMouseOut(t);if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){let e=parseInt(t.paths.getAttribute(`index`),10);if(this.tConfig.enabledOnSeries.indexOf(e)<0)return void this.handleMouseOut(t)}let l=this.getElTooltip();if(!l)return;let u=this.getElXCrosshairs(),d=[`heatmap`,`treemap`].includes(r.config.chart.type),f=[];r.config.chart.group&&!d&&(f=this.ctx.getSyncedCharts());let p=r.globals.xyCharts||r.config.chart.type===`bar`&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if(e.type===`mousemove`||e.type===`touchmove`||e.type===`mouseup`){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.seriesData.series.length)return;u!==null&&u.classList.add(`apexcharts-active`);let o=(n=this.yaxisTooltips)==null?void 0:n.filter(e=>!0===e),m=this.ycrosshairs;if(m!==null&&o!=null&&o.length&&m.classList.add(`apexcharts-active`),!d&&(p&&!this.showOnIntersect||f.length>1))this.handleStickyTooltip(e,s,c,t);else if(r.config.chart.type===`heatmap`||r.config.chart.type===`treemap`){let n=this.intersect.handleHeatTreeTooltip({e,opt:t,x:i,y:a,type:r.config.chart.type});if(n.noHit)return void this.handleMouseOut(t);i=n.x,a=n.y,n.positioned||(l.style.left=i+`px`,l.style.top=a+`px`)}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e,opt:t}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e,opt:t,x:i,y:a});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let e=0;e<r.config.yaxis.length;e++)this.axesTooltip.drawYaxisTooltipText(e,c,this.xyRatios);r.dom.baseEl.classList.add(`apexcharts-tooltip-active`),t.tooltipEl.classList.add(`apexcharts-active`),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.announcements.enabled&&t.tooltipEl.removeAttribute(`aria-hidden`)}else e.type!==`mouseout`&&e.type!==`touchend`||this.handleMouseOut(t)}getSliceAnchor(e){var t,n;let r=this.w,i=parseFloat((t=e==null?void 0:e.getAttribute(`data:cx`))==null?``:t),a=parseFloat((n=e
1==null?void 0:e.getAttribute(`data:cy`))==null?``:n);if(isNaN(i)||isNaN(a))return null;let o=r.dom.elWrap.getBoundingClientRect(),s=typeof e.getScreenCTM==`function`?e.getScreenCTM():null;if(!s){let e=r.dom.Paper.node.getBoundingClientRect();return{x:e.left-o.left+i,y:e.top-o.top+a}}return{x:s.a*i+s.c*a+s.e-o.left,y:s.b*i+s.d*a+s.f-o.top}}nonAxisChartsTooltips({e,opt:t,tooltipRect:n}){var r,i,a,o;let s=this.w,c=t.paths.getAttribute(`rel`),l=this.getElTooltip();if(!l)return;let u=s.dom.elWrap.getBoundingClientRect();if(e.type===`mousemove`||e.type===`touchmove`){if(s.dom.baseEl.classList.add(`apexcharts-tooltip-active`),l.classList.add(`apexcharts-active`),s.config.chart.accessibility.enabled&&s.config.chart.accessibility.announcements.enabled&&l.removeAttribute(`aria-hidden`),s.config.chart.type===`unit`){let t=Mn.hoverTarget(e),n=t&&typeof t.closest==`function`?t.closest(`.apexcharts-unit-area`):null;if(!n)return;this.renderUnitTooltip(n)}else this.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:parseInt(c,10)-1,shared:!1});let o,d,f=t.paths.querySelector(`path[data\\:cx]`)||t.paths,p=s.config.tooltip.intersect?this.getSliceAnchor(f):null;if(p?(o=p.x-n.ttWidth/2,d=p.y-n.ttHeight-10):(o=((r=s.interact.clientX)==null?0:r)-u.left-n.ttWidth/2,d=((i=s.interact.clientY)==null?0:i)-u.top-n.ttHeight-10),l.style.left=o+`px`,l.style.top=d+`px`,s.config.legend.tooltipHoverFormatter){let e=s.config.legend.tooltipHoverFormatter,t=c-1,n=(a=this.legendLabels)==null?void 0:a[t];if(!n)return;n.innerHTML=e(n.getAttribute(`data:default-text`),{seriesIndex:t,dataPointIndex:t,w:s})}}else e.type!==`mouseout`&&e.type!==`touchend`||(l.classList.remove(`apexcharts-active`),s.dom.baseEl.classList.remove(`apexcharts-tooltip-active`),s.config.legend.tooltipHoverFormatter&&((o=this.legendLabels)==null||o.forEach(e=>{let t=e.getAttribute(`data:default-text`);e.innerHTML=decodeURIComponent(t==null?``:t)})))}renderUnitTooltip(e){var t,n,r,i,a;let o=this.w,s=this.getElTooltip();if(!s)return;let c=parseInt(e.getAttribute(`i`)||`0`,10),l=parseInt(e.getAttribute(`j`)||`0`,10);if(typeof o.config.tooltip.custom==`function`)return void this.tooltipLabels.handleCustomTooltip({i:c,j:l,y1:null,y2:null,w:o});let u=o.seriesData.seriesNames[c]||`series-${c+1}`,d=Math.round(Number(o.seriesData.series[c])||0),f=e.parentNode,p=f&&f.querySelectorAll?f.querySelectorAll(`.apexcharts-unit-area`).length:d,m=o.config.plotOptions.unit||{},h=m.unitValue>0?m.unitValue:1,g=o.seriesData.unitData&&o.seriesData.unitData[c],_=g?g[l]:void 0,v=_&&typeof _==`object`?_:null,y=v&&v.fillColor||o.globals.colors&&o.globals.colors[c]||`#008FFB`,b,x=m.tooltip&&m.tooltip.formatter;if(typeof x==`function`)b=x({seriesName:u,seriesIndex:c,dataPointIndex:l,count:p,value:d,unitValue:h,datum:_,color:y,w:o});else if(_!=null){let e=v&&(r=(n=(t=v.name)==null?v.label:t)==null?v.x:n)!=null?r:null,o=v?(a=(i=v.value)==null?v.y:i)==null?null:a:_;b=e!=null&&o!=null?`${e}: ${o}`:e==null?o==null?`#${(l+1).toLocaleString()} of ${p.toLocaleString()}`:String(o):String(e)}else b=`#${(l+1).toLocaleString()} of ${p.toLocaleString()}`,h!==1&&(b+=` &middot; ${h.toLocaleString()} per dot`);let S=o.config.chart.fontFamily||`inherit`,C=o.config.tooltip.style&&o.config.tooltip.style.fontSize||`12px`,w=s.querySelector(`.apexcharts-tooltip-arrow`);s.innerHTML=`<div class="apexcharts-tooltip-title" style="font-family: ${S}; font-size: ${C};">${u}</div><div class="apexcharts-tooltip-series-group apexcharts-active" style="display: flex;"><span class="apexcharts-tooltip-marker" style="background-color: ${y};"></span><div class="apexcharts-tooltip-text" style="font-family: ${S}; font-size: ${C};"><div class="apexcharts-tooltip-y-group"><span class="apexcharts-tooltip-text-y-value">${b}</span></div></div></div>`,w&&s.appendChild(w);let T=s.getBoundingClientRect();this.tooltipRect.ttWidth=T.width,this.tooltipRect.ttHeight=T.height}handleStickyTooltip(e,t,n,r){let i=this.w,a=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:n}),o=a.j,s=a.capturedSeries;s!==null&&i.globals.collapsedSeriesIndices.includes(s==null?-1:s)&&(s=null);
1let c=i.globals.barPadForNumericAxis||0;if(a.hoverX<-c||a.hoverX>i.layout.gridWidth+c)this.handleMouseOut(r);else if(s!==null)this.handleStickyCapturedSeries(e,s==null?-1:s,r,o==null?0:o);else if(this.tooltipUtil.isXoverlap(o==null?0:o)||i.globals.isBarHorizontal){let t=i.seriesData.series.findIndex((e,t)=>!i.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,o==null?0:o,r.ttItems)}}handleStickyCapturedSeries(e,t,n,r){let i=this.w;if(!this.tConfig.shared&&i.seriesData.series[t][r]===null)return void this.handleMouseOut(n);if(i.seriesData.series[t][r]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){let t=i.seriesData.series.findIndex((e,t)=>!i.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,r,n.ttItems)}}deactivateHoverFilter(){let e=this.w,t=new K(this.w,this.ctx),n=e.dom.Paper.find(`.apexcharts-bar-area`);for(let e=0;e<n.length;e++)t.pathMouseLeave(n[e],void 0)}handleMouseOut(e){var t,n;let r=this.w,i=this.getElXCrosshairs();r.dom.baseEl.classList.remove(`apexcharts-tooltip-active`),e.tooltipEl.classList.remove(`apexcharts-active`),delete e.tooltipEl.dataset.positioned,r.config.chart.accessibility.enabled&&r.config.chart.accessibility.announcements.enabled&&e.tooltipEl.setAttribute(`aria-hidden`,`true`),this.deactivateHoverFilter(),r.config.chart.type!==`bubble`&&this.marker.resetPointsSize(),i!==null&&i.classList.remove(`apexcharts-active`);let a=this.ycrosshairs;if(a!==null&&a.classList.remove(`apexcharts-active`),this.isXAxisTooltipEnabled&&((t=this.xaxisTooltip)==null||t.classList.remove(`apexcharts-active`)),this.yaxisTooltips&&this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=[...r.dom.baseEl.querySelectorAll(`.apexcharts-yaxistooltip`)]);for(let e=0;e<this.yaxisTTEls.length;e++)this.yaxisTTEls[e].classList.remove(`apexcharts-active`)}r.config.legend.tooltipHoverFormatter&&((n=this.legendLabels)==null||n.forEach(e=>{let t=e.getAttribute(`data:default-text`);e.innerHTML=decodeURIComponent(t==null?``:t)}))}markerClick(e,t,n){let r=this.w;typeof r.config.chart.events.markerClick==`function`&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}),this.ctx.events.fireEvent(`markerClick`,[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}])}_hasCustomSeries(){let e=this.w;return gn(e.config.chart.type)?!0:(e.config.series||[]).some(e=>e&&e.type&&gn(e.type))}create(e,t,n,r,i,a=null){var o,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O;let k=this.w,A=t;e.type===`mouseup`&&this.markerClick(e,n,r),a===null&&(a=this.tConfig.shared);let j=this.tooltipUtil.hasMarkers(n),M=((l=(o=this.ctx)==null?void 0:o.renderer)==null?void 0:l.kind)===`canvas`,N=M&&!this.tooltipUtil.hasBars(),P=!M&&!j&&!this.tooltipUtil.hasBars()&&this._hasCustomSeries(),F=N||P,I=this.tooltipUtil.getElBars(),L=()=>{k.globals.markers.largestSize>0&&!M&&!k.globals.markers.batched?A.marker.enlargePoints(r):A.tooltipPosition.moveDynamicPointsOnHover(r)};if(k.config.legend.tooltipHoverFormatter){let e=k.config.legend.tooltipHoverFormatter,t=Array.from((u=this.legendLabels)==null?[]:u);t.forEach(e=>{let t=e.getAttribute(`data:default-text`);e.innerHTML=decodeURIComponent(t==null?``:t)});for(let i=0;i<t.length;i++){let o=t[i],s=parseInt((d=o.getAttribute(`i`))==null?``:d,10),c=decodeURIComponent((f=o.getAttribute(`data:default-text`))==null?``:f),l=e(c,{seriesIndex:a?s:n,dataPointIndex:r,w:k});if(a)o.innerHTML=k.globals.collapsedSeriesIndices.indexOf(s)<0?l:c;else if(o.innerHTML=s===n?l:c,n===s)break}}let R=k.rangeData,z=s(s({ttItems:i,i:n,j:r},((g=(h=(m=(p=R.seriesRange)==null?void 0:p[n])==null?void 0:m[r])==null?void 0:h.y[0])==null?void 0:g.y1)!==void 0&&{y1:(b=(y=(v=(_=R.seriesRange)==null?void 0:_[n])==null?void 0:v[r])==null?void 0:y.y[0])==null?void 0:b.y1}),((w=(C=(S=(x=R.seriesRange)==null?void 0:x[n])==null?void 0:S[r])==null?void 0:C.y[0])==null?void 0:w.y2)!==void 0&&{y2:(O=(D=(E=(T=R.seriesRange)==null?void 0:T[n])==null?void 0:E[r])==null?void 0:D.y[0])==null?void 0:O.y2});if(a){if(A.tooltipLabels.drawSeriesTexts(c(s({},z),{shared:!this.showOnIntersect&&this.tConfig.shared})),j||F)L();else if(this.tooltipUtil.hasBars()&&(M&&A.tooltipPosition.moveStickyTooltipOverBars(r,n),this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...I]),this.barSeriesHeight>0)){let e=new K(this.w,this.ctx),t=k.dom.Paper.find(`.apexcharts-bar-area[j='${r}']`);this.deactivateHoverFilter(),A.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&L(),A.tooltipPosition.moveStickyTooltipOverBars(r,n);for(let n=0;n<t.length;n++)e.pathMouseEnter(t[n],void 0)}}else A.tooltipLabels.drawSeriesTexts(s({shared:!1},z)),this.tooltipUtil.hasBars()&&A.tooltipPosition.moveStickyTooltipOverBars(r,n),j?A.tooltipPosition.moveMarkers(n,r):F&&A.tooltipPosition.moveDynamicPointOnHover(r,n)}}class Bn{constructor(e,t){this.w=e,this.ctx=t,this.kind=`svg`}beginSeries(){}present(){return null}clear(){}group(e){return this.ctx.graphics.group(e)}drawPath(e){return this.ctx.graphics.drawPath(e)}drawLine(...e){return this.ctx.graphics.drawLine(...e)}drawRect(...e){return this.ctx.graphics.drawRect(...e)}drawCircle(e,t){return this.ctx.graphics.drawCircle(e,t)}drawText(e){return this.ctx.graphics.drawText(e)}renderPaths(e){return this.ctx.graphics.renderPaths(e)}drawMarker(e,t,n={}){return this.ctx.graphics.drawMarker(e,t,n)}supports(e){return!0}
1hitTest(){return null}restyle(){}toBitmap(){return null}destroy(){}}let Vn=`__apexcharts_renderers__`;function Hn(){let e=globalThis;return e[Vn]||(e[Vn]=new Map),e[Vn]}class Un{static get _rendererRegistry(){return Hn()}static registerRenderer(e,t){Hn().set(e,t)}static unregisterRenderer(e){Hn().delete(e)}constructor(e,t){this.w=e,this.ctx=t,this.svg=new Bn(e,t),this.active=this.svg,this._activeKind=`svg`,this._instances={}}_desiredKind(){let e=this.w.config.chart,t=e.renderer||`svg`;return!d.isBrowser()||t===`svg`||Le(this.w)?`svg`:t===`canvas`||function(e){let t=e.config.series||[],n=e.config.chart.type,r=n===`scatter`||n===`bubble`,i=e.config.markers&&e.config.markers.size,a=Array.isArray(i)?i.some(e=>e>0):(i||0)>0,o=!(!e.config.dataLabels||!e.config.dataLabels.enabled),s=n===`heatmap`,c=0,l=0;return t.forEach(e=>{let t=Array.isArray(e.data)?e.data.length:0;t>l&&(l=t),(r||a||s)&&(c+=t),o&&(c+=t)}),l>=5e4&&(c=Math.max(c,l)),c}(this.w)>=(e.rendererThreshold||8e3)?`canvas`:`svg`}resolve(){let e=this.w.config.chart.renderer||`svg`,t=this._desiredKind();if(t!==`svg`){let e=Hn().get(t);if(e)return this._instances[t]||(this._instances[t]=e(this.w,this.ctx)),this.active=this._instances[t],this._activeKind=t,this.ctx.renderer=this.active,this.w.globals.activeRenderer=this.active,this._activeKind}else e===`canvas`&&Le(this.w);return this.active=this.svg,this._activeKind=`svg`,this.ctx.renderer=this.active,this.w.globals.activeRenderer=this.active,this._activeKind}getActiveKind(){return this._activeKind}teardown(){for(let e in this._instances){let t=this._instances[e];t&&typeof t.destroy==`function`&&t.destroy()}this._instances={},this.active=this.svg,this._activeKind=`svg`}}class Q{constructor(e){this.node=e,e&&(e.instance=this),this._listeners=[],this._filter=null}attr(e,t){if(typeof e==`string`&&t===void 0)return this.node.getAttribute(e);let n=typeof e==`string`?{[e]:t}:e;for(let e in n){let t=n[e];t===null?this.node.removeAttribute(e):t!==void 0&&(typeof t==`number`&&isNaN(t)&&(t=0),this.node.setAttribute(e,t))}if(this.node.nodeName===`text`&&n.x!=null){let e=this.node.querySelectorAll(`tspan[data-newline]`);for(let t=0;t<e.length;t++)e[t].setAttribute(`x`,n.x)}return this}css(e){for(let t in e)this.node.style[t]=e[t];return this}fill(e){return typeof e==`object`?this.attr(e):this.attr(`fill`,e)}stroke(e){return typeof e==`object`?(e.color!==void 0&&this.attr(`stroke`,e.color),e.width!==void 0&&this.attr(`stroke-width`,e.width),e.dasharray!==void 0&&this.attr(`stroke-dasharray`,e.dasharray),e.linecap!==void 0&&this.attr(`stroke-linecap`,e.linecap),e.opacity!==void 0&&this.attr(`stroke-opacity`,e.opacity),this):this.attr(`stroke`,e)}size(e,t){return this.attr({width:e,height:t})}move(e,t){return this.attr({x:e,y:t})}center(e,t){if(this.node.nodeName===`g`){let n=this.bbox(),r=e-(n.x+n.width/2),i=t-(n.y+n.height/2);return this.attr(`transform`,`translate(${r}, ${i})`)}return this.attr({cx:e,cy:t})}add(e){return e&&e.__isCanvasMark||this.node.appendChild(e.node||e),this}addTo(e){return(e.node||e).appendChild(this.node),this}remove(){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this}clear(){for(;this.node.firstChild;)this.node.removeChild(this.node.firstChild);return this}find(e){return Array.from(this.node.querySelectorAll(e)).map(e=>e.instance||new Q(e))}findOne(e){let t=this.node.querySelector(e);return t?t.instance||new Q(t):null}on(e,t){let n=e.split(`.`)[0];return this._listeners.push({event:e,eventType:n,handler:t}),this.node.addEventListener(n,t),this}off(e,t){if(e||t){if(e&&!t){let t=e.split(`.`)[0];this._listeners=this._listeners.filter(e=>e.eventType!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}else{let n=e.split(`.`)[0];this._listeners=this._listeners.filter(e=>e.eventType!==n||e.handler!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}}else this._listeners.forEach(e=>{this.node.removeEventListener(e.eventType,e.handler)}),this._listeners=[];return this}each(e,t){return Array.from(this.node.children).forEach(n=>{let r=n.instance||new Q(n);e.call(r),t&&r.each(e,t)}),this}removeClass(e){return e===`*`?this.node.removeAttribute(`class`):this.node.classList.remove(e),this}children(){return Array.from(this.node.childNodes).filter(e=>e.nodeType===1).map(e=>e.instance||new Q(e))}hide(){return this.node.style.display=`none`,this}show(){return this.node.style.display=``,this}bbox(){if(typeof this.node.getBBox==`function`)try{return this.node.getBBox()}catch(e){}return{x:0,y:0,width:0,height:0}}tspan(e){let t=v.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);return t.textContent=e,this.node.appendChild(t),new Q(t)}plot(e){return typeof e==`string`&&this.attr(`d`,e),this}animate(){throw Error(`Animation module not loaded`)}filterWith(){throw Error(`Filter module not loaded`)}}let Wn=0;class Gn extends Q{constructor(e,t,n){let r=t===`radial`?`radialGradient`:`linearGradient`;super(v.createElementNS(H,r)),this._id=`SvgjsGradient`+ ++Wn,this.attr(`id`,this._id),typeof n==`function`&&n(new Kn(this));
1let i=e.node.querySelector(`defs`);i||(i=v.createElementNS(H,`defs`),e.node.appendChild(i)),i.appendChild(this.node)}stop(e,t,n){let r=v.createElementNS(H,`stop`);return r.setAttribute(`offset`,e),r.setAttribute(`stop-color`,t),n!==void 0&&r.setAttribute(`stop-opacity`,String(n)),this.node.appendChild(r),this}from(e,t){return this.attr({x1:e,y1:t})}to(e,t){return this.attr({x2:e,y2:t})}url(){return`url(#`+this._id+`)`}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class Kn{constructor(e){this.gradient=e}stop(e,t,n){return this.gradient.stop(e,t,n),this}}let qn=0;class Jn extends Q{constructor(e,t,n,r){super(v.createElementNS(H,`pattern`)),this._id=`SvgjsPattern`+ ++qn,this.attr({id:this._id,width:t,height:n,patternUnits:`userSpaceOnUse`}),typeof r==`function`&&r(new Yn(this.node));let i=e.node.querySelector(`defs`);i||(i=v.createElementNS(H,`defs`),e.node.appendChild(i)),i.appendChild(this.node)}url(){return`url(#`+this._id+`)`}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class Yn extends Q{line(e,t,n,r){let i=this._make(`line`);return e!==void 0&&i.attr({x1:e,y1:t,x2:n,y2:r}),i}rect(e,t){let n=this._make(`rect`);return e!==void 0&&n.attr({width:e,height:t}),n}circle(e){let t=this._make(`circle`);return e!==void 0&&t.attr({r:e/2,cx:e/2,cy:e/2}),t}path(e){let t=this._make(`path`);return e&&t.attr(`d`,e),t}polygon(e){let t=this._make(`polygon`);return e&&t.attr(`points`,e),t}group(){return this._makeContainer(`g`)}defs(){return this._makeContainer(`defs`)}plain(e){let t=v.createElementNS(H,`text`);t.textContent=e;let n=new Q(t);return this.node.appendChild(t),n}text(e){let t=v.createElementNS(H,`text`),n=new Q(t);return this.node.appendChild(t),typeof e==`function`&&e(new Xn(t)),n}image(e,t){let n=v.createElementNS(H,`image`);n.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,e);let r=new Q(n);if(this.node.appendChild(n),typeof t==`function`&&d.isBrowser()){let n=new Image;n.onload=function(){r.size(n.width,n.height),t.call(r,{width:n.width,height:n.height})},n.src=e}return r}gradient(e,t){return new Gn(this,e,t)}pattern(e,t,n){return new Jn(this,e,t,n)}_make(e){let t=v.createElementNS(H,e);return this.node.appendChild(t),new Q(t)}_makeContainer(e){let t=v.createElementNS(H,e);return this.node.appendChild(t),new Yn(t)}}class Xn{constructor(e){this.textNode=e}tspan(e){let t=v.createElementNS(H,`tspan`);return t.textContent=e,this.textNode.appendChild(t),new Zn(t,this.textNode)}}class Zn{constructor(e,t){this.node=e,this.textNode=t}newLine(){return this.node.setAttribute(`dy`,`1.1em`),this.node.dataset.newline=`1`,this}}let Qn=0;class $n extends Q{constructor(){super(v.createElementNS(H,`filter`)),this._id=`SvgjsFilter`+ ++Qn,this.attr(`id`,this._id)}}class er{constructor(e){this.filter=e}colorMatrix(e){return this._primitive(`feColorMatrix`,e)}offset(e){return this._primitive(`feOffset`,e)}gaussianBlur(e){return this._primitive(`feGaussianBlur`,e)}flood(e){return this._primitive(`feFlood`,e)}composite(e){return this._primitive(`feComposite`,e)}merge(e){let t=v.createElementNS(H,`feMerge`);return e.forEach(e=>{let n=v.createElementNS(H,`feMergeNode`);n.setAttribute(`in`,e),t.appendChild(n)}),this.filter.node.appendChild(t),new Q(t)}_primitive(e,t){let n=v.createElementNS(H,e);for(let e in t)n.setAttribute(e,t[e]);return this.filter.node.appendChild(n),new Q(n)}}function tr(e){e.prototype.filterWith=function(e){let t=new $n;this._filter=t;let n=this.node;for(;n&&n.nodeName!==`svg`;)n=n.parentNode;if(n){let e=n.querySelector(`defs`);e||(e=v.createElementNS(H,`defs`),n.insertBefore(e,n.firstChild)),e.appendChild(t.node)}return e(new er(t)),this.attr(`filter`,`url(#`+t._id+`)`),this},e.prototype.unfilter=function(e){return this._filter&&(this.node.removeAttribute(`filter`),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},e.prototype.filterer=function(){return this._filter}}function nr(e){e.prototype.draggable=function(e){if(!1===e)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;let t=this,n=e||{},r=e=>{if(e.button&&e.button!==0)return;e.stopPropagation();let r=e.type===`touchstart`?e.touches[0]:e,i=t.node,a=parseFloat(i.getAttribute(`x`))||0,o=parseFloat(i.getAttribute(`y`))||0,s=r.clientX,c=r.clientY,l=i.ownerSVGElement,u=null;l&&(u=l.getScreenCTM());let f=e=>{let t=e.type===`touchmove`?e.touches[0]:e,r=t.clientX-s,l=t.clientY-c;u&&(r/=u.a,l/=u.d);let d=a+r,f=o+l,p=parseFloat(i.getAttribute(`width`))||0,m=parseFloat(i.getAttribute(`height`))||0;n.minX!==void 0&&d<n.minX&&(d=n.minX),n.minY!==void 0&&f<n.minY&&(f=n.minY),n.maxX!==void 0&&d+p>n.maxX&&(d=n.maxX-p),n.maxY!==void 0&&f+m>n.maxY&&(f=n.maxY-m);let h=new CustomEvent(`dragmove`,{detail:{handler:{move:function(e,t){i.setAttribute(`x`,e),i.setAttribute(`y`,t)}},box:{x:d,y:f,w:p,h:m,x2:d+p,y2:f+m}}});i.dispatchEvent(h)},p=()=>{d.isBrowser()&&(document.removeEventListener(`mousemove`,f),document.removeEventListener(`touchmove`,f),document.removeEventListener(`mouseup`,p),document.removeEventListener(`touchend`,p)),t._activeDrag=null};d.isBrowser()&&(document.addEventListener(`mousemove`,f),document.addEventListener(`touchmove`,f),document.addEventListener(`mouseup`,p),document.addEventListener(`touchend`,p),t._activeDrag={onMove:f,onUp:p})};return t.node.addEventListener(`mousedown`,r),t.node.addEventListener(`touchstart`,r),t._dragCleanup=()=>{t.node.removeEventListener(`mousedown`,r),t.node.removeEventListener(`touchstart`,r),t._activeDrag&&d.isBrowser()&&(document.removeEventListener(`mousemove`,t._activeDrag.onMove),document.removeEventListener(`touchmove`,t._activeDrag.onMove),document.removeEventListener(`mouseup`,t._activeDrag.onUp),document.removeEventListener(`touchend`,t._activeDrag.onUp),t._activeDrag=null)},t}}function rr(e){e.prototype.select=function(e){if(!1===e)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;let t=this,{createHandle:n,updateHandle:r}=e,i=document.createElementNS(H,`g`);i.setAttribute(`class`,`svg_select_points`);let a=t.node.parentNode;a&&a.appendChild(i);let o={},s=[`t`,`b`,`l`,`r`,`lt`,`rt`,`lb`,`rb`];
1s.forEach((e,t)=>{let r=new Yn(document.createElementNS(H,`g`));i.appendChild(r.node);let a=n(r,[0,0],t,[],e);o[e]={group:r,handle:a}});let c=()=>{let e=parseFloat(t.attr(`x`))||0,n=parseFloat(t.attr(`y`))||0,a=parseFloat(t.attr(`width`))||0,c=parseFloat(t.attr(`height`))||0,l=t.node.getAttribute(`transform`);l?i.setAttribute(`transform`,l):i.removeAttribute(`transform`);let u={t:[e+a/2,n],b:[e+a/2,n+c],l:[e,n+c/2],r:[e+a,n+c/2],lt:[e,n],rt:[e+a,n],lb:[e,n+c],rb:[e+a,n+c]};s.forEach(e=>{o[e]&&u[e]&&r(o[e].group,u[e])})};return c(),t._selectHandles=i,t._selectHandlesMap=o,t._updateSelectPositions=c,t._selectCleanup=()=>{i.parentNode&&i.parentNode.removeChild(i),t._selectHandles=null,t._selectHandlesMap=null,t._updateSelectPositions=null},t},e.prototype.resize=function(e){if(!1===e)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;let t=this,n=t._selectHandlesMap;if(!n)return t;let r=[],i=e=>{let i=n[e];if(!i||!i.group||!i.group.node)return;let a=i.group.node,o=n=>{if(n.button&&n.button!==0)return;n.stopPropagation();let r=(n.type===`touchstart`?n.touches[0]:n).clientX,i=t.node.ownerSVGElement,a=null;i&&(a=i.getScreenCTM());let o=parseFloat(t.attr(`x`))||0,s=parseFloat(t.attr(`width`))||0,c=n=>{let i=(n.type===`touchmove`?n.touches[0]:n).clientX-r;a&&(i/=a.a);let c=o,l=s;e===`l`?(c=o+i,l=s-i):e===`r`&&(l=s+i),l<0&&(l=0),t.attr({x:c,width:l}),t._updateSelectPositions&&t._updateSelectPositions();let u=new CustomEvent(`resize`,{detail:{el:t}});t.node.dispatchEvent(u)},l=()=>{d.isBrowser()&&(document.removeEventListener(`mousemove`,c),document.removeEventListener(`touchmove`,c),document.removeEventListener(`mouseup`,l),document.removeEventListener(`touchend`,l));let e=new CustomEvent(`resize`,{detail:{el:t}});t.node.dispatchEvent(e)};d.isBrowser()&&(document.addEventListener(`mousemove`,c),document.addEventListener(`touchmove`,c),document.addEventListener(`mouseup`,l),document.addEventListener(`touchend`,l))};a.addEventListener(`mousedown`,o),a.addEventListener(`touchstart`,o),r.push(()=>{a.removeEventListener(`mousedown`,o),a.removeEventListener(`touchstart`,o)})};return i(`l`),i(`r`),t._resizeCleanup=()=>{r.forEach(e=>e())},t}}function ir(){let e=v.createElementNS(H,`svg`),t=new Yn(e);return t.attr({xmlns:H}),t}tr(Q),xe(Q),nr(Q),rr(Q),ir.xlink=`http://www.w3.org/1999/xlink`,d.isBrowser()&&window.SVG===void 0&&(window.SVG=ir),d.isBrowser()?(window.SVG===void 0&&(window.SVG=ir),window.Apex===void 0&&(window.Apex={})):typeof global<`u`&&(global.Apex===void 0&&(global.Apex={}),global.SVG===void 0&&(global.SVG=ir));let ar=`__apexcharts_features_v1__`;globalThis[ar]||(globalThis[ar]=new Map);class or{static get _featureRegistry(){return globalThis[ar]}static registerFeatures(e){for(let[t,n]of Object.entries(e))or._featureRegistry.set(t,n)}constructor(e){this.ctx=e,this.w=e.w}initModules(){this.ctx.publicMethods=`updateOptions.updateSeries.appendData.appendSeries.isSeriesHidden.highlightSeries.toggleSeries.showSeries.hideSeries.setLocale.resetSeries.zoomX.toggleDataPointSelection.dataURI.exportToCSV.addXaxisAnnotation.addYaxisAnnotation.addPointAnnotation.clearAnnotations.removeAnnotation.drillDown.drillUp.drillToRoot.clearDrilldownCache.paper.getActiveRenderer.destroy`.split(`.`),this.ctx.eventList=[`click`,`mousedown`,`mousemove`,`mouseleave`,`touchstart`,`touchmove`,`touchleave`,`mouseup`,`touchend`,`keydown`,`keyup`],this.ctx.animations=new Ne(this.w,this.ctx),this.ctx.axes=new Qe(this.w,this.ctx),this.ctx.core=new vn(this.ctx.el,this.w,this.ctx),this.ctx.config=new L({}),this.ctx.data=new kn(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new Ge(this.w,this.ctx),this.ctx.graphics=new K(this.w,this.ctx),this.ctx.coreUtils=new V(this.w),this.ctx.crosshairs=new $e(this.w),this.ctx.events=new Xe(this.w,this.ctx),this.ctx.fill=new Pe(this.w),this.ctx.localization=new Ze(this.w),this.ctx.options=new T,this.ctx.responsive=new tt(this.w),this.ctx.series=new q(this.w,{toggleDataSeries:(...e)=>{var t;return(t=this.ctx.legend)==null?void 0:t.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new Jt(this.w),this.ctx.formatters=new C(this.w),this.ctx.titleSubtitle=new Yt(this.w),this.ctx.dimensions=new on(this.w,this.ctx),this.ctx.updateHelpers=new An(this.w,this.ctx),this.ctx.rendererController=new 
1Un(this.w,this.ctx),this.ctx.renderer=this.ctx.rendererController.active;let e=new zn(this.w,this.ctx);this.w.globals.tooltip=e,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){let e=or._featureRegistry,t=this.w,n=this.ctx,r=e.get(`exports`);n.exports=r?new r(t,n):null;let i=e.get(`legend`);n.legend=i?new i(t,n):null;let a=e.get(`morphTypeChange`);n.morphTypeChange=a?new a(t,n):null;let o=e.get(`drilldown`);n.drilldown=o?new o(t,n):null;let s=e.get(`perspectives`);n.perspectives=s?new s(t,n):null;let c=e.get(`storyboard`);n.storyboard=c?new c(t,n):null;let l=e.get(`history`);n.history=l?new l(t,n):null;let u=e.get(`linkedViews`);n.linkedViews=u?new u(t,n):null;let d=e.get(`ink`);n.ink=d?new d(t,n):null;let f=e.get(`measure`);n.measure=f?new f(t,n):null;let p=e.get(`contextMenu`);n.contextMenu=p?new p(t,n):null;let m=e.get(`weave`);n.weave=m?new m(t,n):null;let h=e.get(`trellis`);n.trellis=h?new h(t,n):null;let g=e.get(`osThemeWatcher`);n.osThemeWatcher=g?new g(t,n):null;let _=e.get(`toolbar`);Object.defineProperty(n,"toolbar",{get(){var e;return!this._toolbar&&_&&(this._toolbar=new _(t,this)),(e=this._toolbar)==null?null:e},configurable:!0});let v=e.get(`zoomPanSelection`);Object.defineProperty(n,"zoomPanSelection",{get(){var e;return!this._zoomPanSelection&&v&&(this._zoomPanSelection=new v(t,this)),(e=this._zoomPanSelection)==null?null:e},configurable:!0});let y=e.get(`keyboardNavigation`);Object.defineProperty(n,"keyboardNavigation",{get(){var e;return!this._keyboardNavigation&&y&&(this._keyboardNavigation=new y(t,this)),(e=this._keyboardNavigation)==null?null:e},configurable:!0})}}class sr{constructor(e){this.ctx=e,this.w=e.w}clear({isUpdating:e}){var t,n,r,i,a,o,s,c,l,u,d,f,p;(t=this.ctx.weave)==null||t.teardown(e),e||(this.w.globals.isDestroyed=!0),this.ctx._zoomPanSelection&&this.ctx._zoomPanSelection.destroy(),this.ctx._toolbar&&this.ctx._toolbar.destroy(),this.w.globals.resizeObserver&&typeof this.w.globals.resizeObserver.disconnect==`function`&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),He.invalidateAll(this.w),e?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,(n=this.ctx._keyboardNavigation)==null||n.destroy(),this.ctx._keyboardNavigation=null):((r=this.ctx.perspectives)==null||r.teardown(),this.ctx.perspectives=null,(i=this.ctx.storyboard)==null||i.teardown(),this.ctx.storyboard=null,(a=this.ctx.history)==null||a.teardown(),this.ctx.history=null,(o=this.ctx.linkedViews)==null||o.teardown(),this.ctx.linkedViews=null,(s=this.ctx.trellis)==null||s.teardown(),this.ctx.trellis=null,(c=this.ctx.ink)==null||c.teardown(),this.ctx.ink=null,(l=this.ctx.measure)==null||l.teardown(),this.ctx.measure=null,(u=this.ctx.contextMenu)==null||u.teardown(),this.ctx.contextMenu=null,(d=this.ctx.osThemeWatcher)==null||d.teardown(),this.ctx.osThemeWatcher=null,this.ctx.weave=null,(p=(f=this.ctx.rendererController)==null?void 0:f.teardown)==null||p.call(f),this.ctx.rendererController=null,this.ctx.renderer=null,this.ctx.drilldown=null,this.ctx.morphTypeChange=null,this.ctx.exports=null,this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx._zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx._toolbar=null,this.ctx.localization=null,this.ctx._keyboardNavigation=null,this.ctx.w.globals.tooltip=null),this.clearDomElements({isUpdating:e})}killSVG(e){e.each(function(){this.removeClass(`*`),this.off()},!0),e.clear()}clearDomElements({isUpdating:e}){let t=this.w.dom;if(d.isBrowser()&&t.Paper){let n=t.Paper.node;n.parentNode&&n.parentNode.parentNode&&!e&&(n.parentNode.parentNode.style.minHeight=`unset`);let r=t.baseEl;if(r&&this.ctx.eventList.forEach(e=>{r.removeEventListener(e,this.ctx.events.documentEvent)}),this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove()}t.Paper=null,t.elWrap=null,t.elGraphical=null,t.elLegendWrap=null,t.elLegendForeign=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectBarMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}let cr=`__apexcharts_unit_layouts__`;function lr(){return globalThis[cr]}globalThis[cr]||(globalThis[cr]={});let ur=`__apexcharts_unit_marks__`;function dr(){return globalThis[ur]}function fr(e,t){if(typeof e==`string`){let n=e.trim();return n?Object.freeze({name:t||`anonymous`,path:n,viewBox:[0,0,100,100]}):null}if(!e||typeof e!=`object`||typeof e.path!=`string`||!e.path.trim())return null;let n=Array.isArray(e.viewBox)&&e.viewBox.length===4?e.viewBox.map(Number):[0,0,100,100];return!n.every(e=>isFinite(e))||n[2]<=0||n[3]<=0?null:Object.freeze(c(s({},e),{name:t||e.name||`anonymous`,path:e.path.trim(),viewBox:n,fillRule:e.fillRule===`evenodd`?`evenodd`:void 0}))}globalThis[ur]||(globalThis[ur]={});let pr=`__apexcharts_row_sources__`;function mr(){return globalThis[pr]}function hr(e,t){e&&typeof e==`string`&&typeof t==`function`&&(mr()[e]=t)}function gr(e){return e&&mr()[e]||null}globalThis[pr]||(globalThis[pr]={});let _r=`__apexcharts_plugins__`;function vr(){let e=globalThis;return e[_r]||(e[_r]={}),e[_r]}
1let yr=new WeakMap;function br(e,t){if(d.isSSR())return;let n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){let t=e.getBoundingClientRect();e.style.display!==`none`&&t.width!==0||(n=!0)}let r=new ResizeObserver(r=>{n&&t.call(e,r),n=!0});e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach(e=>r.observe(e)):r.observe(e),yr.set(t,r)}function xr(e,t){if(d.isSSR())return;let n=yr.get(t);n&&(n.disconnect(),yr.delete(t))}let Sr=globalThis.console;function Cr(e){Sr.error(e)}function wr(e){Sr.warn(e)}let Tr=`APEX-`,Er=new Date(`2027-07-31T00:00:00Z`),Dr=`__apex_license_v1__`;function Or(){let e=globalThis,t=e[Dr];return t||(t={key:null,listeners:new Set,result:null},e[Dr]=t),t}let kr=class{static get licenseKey(){return Or().key}static set licenseKey(e){Or().key=e}static get listeners(){return Or().listeners}static get validationResult(){return Or().result}static set validationResult(e){Or().result=e}static getKey(){return this.licenseKey}static getLicenseStatus(){return this.licenseKey?(this.validationResult=this.validateKey(this.licenseKey),this.validationResult):{expired:!1,signatureVerified:!1,valid:!1}}static isKeyValid(e){return!!e&&this.validateKey(e).valid}static isLicenseValid(){return this.getLicenseStatus().valid}static onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}static setLicense(e){var t,n;if(!e)return this.licenseKey=null,void this.publish({expired:!1,signatureVerified:!1,valid:!1});let r=this.validateKey(e);r.valid||e===this.licenseKey||!((n=this.validationResult)!=null&&n.valid)?(this.licenseKey=e,this.publish(r),r.valid||Cr(`[Apex] ${r.message}`)):wr(`[Apex] Ignoring license key: ${(t=r.message)==null?`it is not valid`:t} A valid license is already active on this page.`)}static validateKey(e){let t=this.parseKey(e),n=this.validateStructure(e,t);if(!n.valid||!(t!=null&&t.signature))return n;let r=this.verdicts.get(e);return!1===r?{data:t.data,expired:!1,message:`Invalid license key. The license signature does not verify.`,signatureVerified:!0,valid:!1}:(r===void 0&&this.verifySignature(e,t,n),c(s({},n),{signatureVerified:!0===r}))}static _resetSignatureState(){this.verdicts.clear(),this.verifying.clear(),this.warnedUnverifiable=!1,this.epoch++}static base64ToBytes(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=t.padEnd(4*Math.ceil(t.length/4),`=`),r=globalThis.atob;if(typeof r!=`function`)throw Error(`no base64 decoder available`);let i=r(n),a=new Uint8Array(i.length);for(let e=0;e<i.length;e++)a[e]=i.charCodeAt(e);return a}static canonicalPayload(e){let t=e.domains&&e.domains.length>0?e.domains.join(`,`):``;return`v1|${e.issueDate}|${e.expiryDate}|${e.plan}|${t}`}static notify(e){for(let t of this.listeners)try{t(e)}catch(e){}}static parseKey(e){if(typeof e!=`string`||!e.startsWith(Tr))return null;let t=e.slice(5);if(!t)return null;try{let e=new TextDecoder().decode(this.base64ToBytes(t)),n=JSON.parse(e);return n.issueDate&&n.expiryDate&&n.plan?{data:{domains:Array.isArray(n.domains)?n.domains:void 0,expiryDate:n.expiryDate,issueDate:n.issueDate,plan:n.plan,valid:!0},signature:typeof n.sig==`string`&&n.sig?n.sig:null}:null}catch(e){return null}}static publish(e){this.validationResult=e,this.notify(e)}static validateStructure(e,t){let n=e=>({expired:!1,message:e,signatureVerified:!1,valid:!1});if(typeof e!=`string`||!e.startsWith(Tr))return n(`Invalid license key format. License key must start with "APEX-".`);if(!t)return n(`Invalid license key. Unable to decode license data.`);let{data:r,signature:i}=t;if(!i&&new Date>=Er)return n(`This license key is in the old unsigned format, which is no longer accepted. Please request a replacement key.`);if(new Date(r.expiryDate)<new Date)return{data:r,expired:!0,message:`License expired on ${r.expiryDate}. Please renew your license.`,signatureVerified:!1,valid:!1};if(r.domains&&r.domains.length>0){let e=typeof location>`u`?``:location.hostname;if(!r.domains.some(t=>e===t||e.endsWith(`.${t}`)))return{data:r,expired:!1,message:`License is not valid for this domain (${e}). Allowed domains: ${r.domains.join(`, `)}.`,signatureVerified:!1,valid:!1}}return{data:r,expired:!1,signatureVerified:!1,valid:!0}}static verifySignature(e,t,n){return u(this,null,function*(){var r;if(this.verifying.has(e)||this.verdicts.has(e))return;this.verifying.add(e);let i=this.epoch,a=(r=globalThis.crypto)==null?void 0:r.subtle;if(!a||this.publicKeysSpki.length===0)return this.verifying.delete(e),void(this.warnedUnver
1ifiable||(this.warnedUnverifiable=!0,wr(a?`[Apex] No license signing key is configured in this build, so license signatures cannot be verified.`:`[Apex] Web Crypto is unavailable (a secure context is required), so the license signature cannot be verified.`)));let o=new TextEncoder().encode(this.canonicalPayload(t.data)),l=!1;for(let e of this.publicKeysSpki){try{let n=yield a.importKey(`spki`,this.base64ToBytes(e),{name:`ECDSA`,namedCurve:`P-256`},!1,[`verify`]);l=yield a.verify({hash:`SHA-256`,name:`ECDSA`},n,this.base64ToBytes(t.signature),o)}catch(e){l=!1}if(l)break}if(this.verifying.delete(e),this.epoch!==i)return;if(this.verdicts.set(e,l),l){let t=c(s({},n),{signatureVerified:!0});this.licenseKey===e?this.publish(t):this.notify(t);return}let u=`Invalid license key. The license signature does not verify.`,d={data:t.data,expired:!1,message:u,signatureVerified:!0,valid:!1};this.licenseKey===e?this.publish(d):this.notify(d),Cr(`[Apex] ${u}`)})}};kr.publicKeysSpki=[`MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQIaK9UMD6n0oR/FIy8QdL0uSzKMQlf1BB+tOrji4/WuHsyRNxeDhVykoSsNURozMi1xhmqWvBH1L//xIfugTPA==`],kr.verdicts=new Map,kr.verifying=new Set,kr.warnedUnverifiable=!1,kr.epoch=0;let Ar=kr,jr=class{static applyStyles(e){Object.assign(e.style,this.CRITICAL_STYLES,{backgroundImage:this.createWatermarkPattern(),backgroundRepeat:`repeat`})}static node(e){return e?e.querySelector(`[${this.WATERMARK_ATTR}]`):null}static add(e,t){return e&&typeof document<`u`?(this.setManaged(e,t),this.paint(e)):null}static exists(e){return!!this.node(e)}static remove(e,t){e&&(this.setManaged(e,t),this.erase(e))}static untrack(e){this.managed.delete(e)}static createWatermarkPattern(){let e=this.WATERMARK_TEXT;return`url("data:image/svg+xml,${encodeURIComponent(`\n      <svg xmlns="http://www.w3.org/2000/svg" width="300" height="200">\n        <text\n          x="50%"\n          y="50%"\n          dominant-baseline="middle"\n          text-anchor="middle"\n          font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif"\n          font-size="18"\n          font-weight="600"\n          fill="rgba(134, 134, 134, 0.1)"\n          transform="rotate(-35, 100, 60)"\n        >${e}</text>\n      </svg>\n    `.trim())}")`}static erase(e){var t;(t=this.node(e))==null||t.remove()}static paint(e){let t=this.node(e);return t||(t=document.createElement(`div`),t.setAttribute(this.WATERMARK_ATTR,``),e.appendChild(t)),this.applyStyles(t),typeof getComputedStyle==`function`&&getComputedStyle(e).position===`static`&&(e.style.position=`relative`),t}static reconcile(){let e=Ar.isLicenseValid();for(let t of this.managed)t.isConnected?e?this.erase(t):this.paint(t):this.managed.delete(t)}static setManaged(e,t){!1===(t==null?void 0:t.manage)?this.managed.delete(e):this.track(e)}static track(e){this.managed.add(e),this.subscribed||(this.subscribed=!0,Ar.onChange(()=>{this.reconcile()}))}};jr.WATERMARK_ATTR=`data-apexcharts-watermark`,jr.WATERMARK_TEXT=`APEXCHARTS`,jr.ATTR=`data-apexcharts-watermark`,jr.CRITICAL_STYLES={bottom:`0`,display:`block`,left:`0`,msUserSelect:`none`,opacity:`1`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`0`,userSelect:`none`,visibility:`visible`,webkitUserSelect:`none`,zIndex:`10000`},jr.managed=new Set,jr.subscribed=!1;let Mr=jr;function Nr(e,t,n,r){return{value:e,velocity:0,target:e,stiffness:t,damping:n}}function Pr(e,t){if(t<=0)return Ir(e);let n=t;for(;n>0;){let t=Math.min(n,.022222222222222223),r=-e.stiffness*(e.value-e.target)-e.damping*e.velocity;e.velocity+=r*t,e.value+=e.velocity*t,n-=t}return!!Ir(e)&&(e.value=e.target,e.velocity=0,!0)}function Fr(e,t){e.target=t}function Ir(e){var t,n;let r=(t=e.restVelocity)==null?.05:t,i=(n=e.restDisplacement)==null?.05:n;return Math.abs(e.velocity)<r&&Math.abs(e.value-e.target)<i}let Lr={crisp:[210,26],gentle:[120,20],snappy:[320,30]},Rr=new Set,zr=new Set([`premium`,`enterprise`]);function Br(e,t){let n=Mr.add(t,{manage:!1});if(!n||typeof MutationObserver>`u`||e._wmNodeObserver&&e._wmObservedNode===n)return;e._wmNodeObserver&&e._wmNodeObserver.disconnect();let r=new MutationObserver(()=>{let e=Mr.node(t);e&&(r.disconnect(),Mr.applyStyles(e),r.takeRecords(),r.observe(e,{attributes:!0,attributeFilter:[`style`]}))});r.observe(n,{attributes:!0,attributeFilter:[`style`]}),e._wmNodeObserver=r,e._wmObservedNode=n}function Vr(e,t){e._wmWrapObserver&&(e._wmWrapObserver.disconnect(),e._wmWrapObserver=null),e._wmNodeObserver&&(e._wmNo
1deObserver.disconnect(),e._wmNodeObserver=null),e._wmObservedNode=null;let n=t||e.w&&e.w.dom&&e.w.dom.elWrap;n&&Mr.remove(n,{manage:!1})}function Hr(e,t){try{if(!d.isBrowser())return;if(e&&e.globals&&e.globals.isDestroyed)return void Rr.delete(t);let n=e&&e.dom&&e.dom.elWrap;if(!n)return;let r=function(e,t){let n=e&&e.config&&e.config.chart||{},r=[];n.type===`unit`&&r.push(`unit`),t.trellis&&typeof t.trellis.isActive==`function`&&t.trellis.isActive()&&r.push(`trellis`),t.storyboard&&t.storyboard._used&&r.push(`storyboard`);let i=n.link;return t.linkedViews&&i&&(!0===i.enabled||typeof i.dimension==`function`)&&r.push(`link`),t.ink&&n.ink&&!0===n.ink.enabled&&r.push(`ink`),t.measure&&n.measure&&!0===n.measure.enabled&&r.push(`measure`),t.contextMenu&&n.contextMenu&&!0===n.contextMenu.enabled&&r.push(`context-menu`),t.perspectives&&t.perspectives._used&&r.push(`perspectives`),t.history&&n.history&&!0===n.history.enabled&&r.push(`history`),r}(e,t);if(r.length===0)return Rr.delete(t),void Vr(t,n);Rr.add(t);let i=function(e){let t=e&&e.config&&e.config.chart&&e.config.chart.license;if(t)return t;let n=Ar.getKey();if(n)return n;let r=d.getApex();return r&&r.license?r.license:null}(e);if(function(e){if(!e)return!1;let t=Ar.validateKey(e);if(!t.valid)return!1;let n=t.data&&t.data.plan;return typeof n==`string`&&zr.has(n.toLowerCase())}(i))return void Vr(t,n);(function(e,t){if(Br(e,t),typeof MutationObserver>`u`||e._wmWrapObserver)return;let n=new MutationObserver(()=>{Mr.node(t)||Br(e,t)});n.observe(t,{childList:!0}),e._wmWrapObserver=n})(t,n),function(e,t,n){if(e._premiumLicenseNotified||(e._premiumLicenseNotified=!0,n.length,!t))return;let r=Ar.validateKey(t);if(r.valid)return void(r.data&&r.data.plan);Ar.getKey()}(t,i,r)}catch(e){}}function Ur(){if(!d.isBrowser())return;let e=new Set,t=d.getApex(),n=t&&t._chartInstances;Array.isArray(n)&&n.forEach(t=>{let n=t&&t.chart;n&&n.w&&!n.w.globals.isDestroyed&&(e.add(n),Hr(n.w,n))}),Array.from(Rr).forEach(t=>{let n=t&&t.w,r=n&&n.dom&&n.dom.elWrap;n&&!n.globals.isDestroyed&&r&&!1!==r.isConnected?e.has(t)||Hr(n,t):Rr.delete(t)})}Ar.onChange(Ur);let Wr=class e{constructor(e,t){l(this,`core`),l(this,`responsive`),l(this,`axes`),l(this,`grid`),l(this,`graphics`),l(this,`coreUtils`),l(this,`crosshairs`),l(this,`events`),l(this,`fill`),l(this,`localization`),l(this,`options`),l(this,`series`),l(this,`theme`),l(this,`formatters`),l(this,`titleSubtitle`),l(this,`dimensions`),l(this,`updateHelpers`),l(this,`tooltip`),l(this,`data`),l(this,`animations`),l(this,`exports`),l(this,`legend`),l(this,`toolbar`),l(this,`zoomPanSelection`),l(this,`keyboardNavigation`),l(this,`annotations`),l(this,`morphTypeChange`),l(this,`timeScale`),l(this,`_keyboardNavigation`),l(this,`_zoomPanSelection`),l(this,`windowResizeHandler`),l(this,`parentResizeHandler`),l(this,`publicMethods`,[]),l(this,`eventList`,[]),l(this,`_renderPromise`,null),l(this,`config`),l(this,`perspectives`),l(this,`storyboard`),l(this,`history`),l(this,`linkedViews`),l(this,`trellis`),l(this,`ink`),l(this,`measure`),l(this,`contextMenu`),l(this,`weave`),l(this,`renderer`),l(this,`rendererController`),this.opts=t,this.ctx=this,this.w=new te(t).init(),this.el=e,this.w.globals.cuid=x.randomId(),this.w.globals.chartID=this.w.config.chart.id?x.escapeString(this.w.config.chart.id):this.w.globals.cuid,je(this.w),new or(this).initModules(),this.lastUpdateOptions=null,this._updateStats={fast:0,fastWithAxes:0,full:0},this.create=this.create.bind(this),d.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var e,t;if(!((t=(e=this.w)==null?void 0:e.config)!=null&&t.chart))return Promise.reject(Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."));if(this._renderPromise)return this._renderPromise;let n=new Promise((e,t)=>{var n,r,i,a,o,s,c,l,u,f,p,m,h;if(x.elementExists(this.el)){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),this.w.config.chart.id&&Apex._chartInstances.push({id:this.w.globals.chartID,group:this.w.config.chart.group,chart:this}),this.setLocale(this.w.config.chart.defaultLocale);let g=this.w.config.chart.events.beforeMount;typeof g==`function`&&g(this,this.w),this.events.fireEvent(`beforeMount`,[this,this.w]);let _=this.w.config.trellis,y=!(!_||!(_.by||_.row||_.column)),b=!!(y&&this.trellis&&this.trellis.isActive());if(y&&this.trellis,(r=(n=this.w.config.chart)==null?void 0:n.measure)!=null&&r.enabled&&this.measure,(a=(i=this.w.config.chart)==null?void 0:i.link)!=null&&a.enabled&&this.linkedViews,!this.ink&&((s=(o=this.w.config.chart)==null?void 0:o.ink)==null||s.enabled,((l=(c=this.w.config.annotations)==null?void 0:c.points)==null?[]:l).some(e=>e&&e.draggable)),(f=(u=this.w.config.chart)==null?void 0:u.contextMenu)!=null&&f.enabled&&this.contextMenu,(m=(p=this.w.config.chart)==null?void 0:p.history)!=null&&m.enabled&&this.history,d.isBrowser()){b||(window.addEventListener(`resize`,this.windowResizeHandler),br(this.el.parentNode,this.parentResizeHandler));let e=this.el.getRootNode&&this.el.getRootNode(),t=x.is(`ShadowRoot`,e),n=this.el.ownerDocument,r=t?e.getElementById(`apexcharts-css`):n.getElementById(`apexcharts-css`);if(!r){r=v.createElementNS(`http://www.w3.org/1999/xhtml`,`style`),r.id=`apexcharts-css`,r.textContent=`@keyframes opaque {
2  0% {
3    opacity: 0
4  }
5
6  to {
7    opacity: 1
8  }
9}
10
11@keyframes resizeanim {
12
13  0%,
14  to {
15    opacity: 0
16  }
17}
18
19.apexcharts-canvas {
20  position: relative;
21  direction: ltr !important;
22  user-select: none;
23  /* Focus indicator colour. Themes override below. */
24  --apexcharts-focus-color: #008FFB;
25}
26
27/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */
28.apexcharts-canvas .apexcharts-theme-dark,
29.apexcharts-theme-dark.apexcharts-canvas {
30  --apexcharts-focus-color: #FFD500;
31}
32.apexcharts-canvas.apexcharts-high-contrast,
33.apexcharts-high-contrast.apexcharts-canvas {
34  --apexcharts-focus-color: #FFFF00;
35}
36
37/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */
38.apexcharts-sr-status {
39  position: absolute;
40  width: 1px;
41  height: 1px;
42  padding: 0;
43  margin: -1px;
44  overflow: hidden;
45  clip: rect(0, 0, 0, 0);
46  white-space: nowrap;
47  border: 0;
48}
49
50/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */
51@media (prefers-reduced-motion: reduce) {
52  .apexcharts-canvas *,
53  .apexcharts-canvas *::before,
54  .apexcharts-canvas *::after {
55    animation-duration: 0.01ms !important;
56    animation-iteration-count: 1 !important;
57    transition-duration: 0.01ms !important;
58  }
59}
60
61.apexcharts-canvas ::-webkit-scrollbar {
62  -webkit-appearance: none;
63  width: 6px
64}
65
66.apexcharts-canvas ::-webkit-scrollbar-thumb {
67  border-radius: 4px;
68  background-color: rgba(0, 0, 0, .5);
69  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
70  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
71}
72
73.apexcharts-inner {
74  position: relative
75}
76
77.apexcharts-text tspan {
78  font-family: inherit
79}
80
81rect.legend-mouseover-inactive,
82.legend-mouseover-inactive rect,
83.legend-mouseover-inactive path,
84.legend-mouseover-inactive circle,
85.legend-mouseover-inactive line,
86.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
87.legend-mouseover-inactive text.apexcharts-yaxis-label {
88  transition: .15s ease all;
89  opacity: .2
90}
91
92/* Linked Views (#4): per-mark crossfilter dim. Applied to individual data
93   marks (not whole series) whose x is outside the brushed range. Opacity is
94   overridable per chart via the --apx-cf-dim custom property. */
95.apexcharts-crossfilter-dimmed {
96  transition: opacity .25s ease;
97  opacity: var(--apx-cf-dim, .2)
98}
99
100/* Linked Views (#4): default styling for the built-in crossfilter data table
101   (cf.dataTable). Deliberately light so host styles can override. */
102.apexcharts-cf-table {
103  border-collapse: collapse;
104  width: 100%;
105  font-size: 13px;
106}
107.apexcharts-cf-table caption {
108  caption-side: bottom;
109  text-align: right;
110  padding: 6px 2px;
111  font-size: 12px;
112  opacity: .7
113}
114.apexcharts-cf-table th,
115.apexcharts-cf-table td {
116  padding: 6px 10px;
117  text-align: left;
118  border-bottom: 1px solid rgba(0, 0, 0, .08)
119}
120.apexcharts-cf-table th {
121  font-weight: 600;
122  border-bottom-width: 2px
123}
124.apexcharts-cf-table tbody tr:hover {
125  background: rgba(99, 102, 241, .06)
126}
127
128/* Measure ruler (#18): measure / delta ruler.
129   Theme via these classes or the --apx-measure-* custom properties below
130   (config \`chart.measure.colors\` overrides both). The ruler group also carries
131   a direction class: apexcharts-measure-up | -down | -flat.
132   Element classes:
133     .apexcharts-measure-band     shaded span band
134     .apexcharts-measure-vline    vertical guide lines
135     .apexcharts-measure-line     free-mode diagonal line
136     .apexcharts-measure-label-bg readout box     .apexcharts-measure-label text
137   Colors are applied as SVG presentation attributes, so any rule you write on
138   these classes overrides them. */
139.apexcharts-canvas {
140  --apx-measure-up: #16a34a;
141  --apx-measure-down: #dc2626;
142  --apx-measure-neutral: #64748b;
143  --apx-measure-guide: #94a3b8;
144}
145.apexcharts-measure-capture {
146  cursor: crosshair;
147}
148
149/* Radial Actions (#chrome): right-click context menu. Theme via these classes
150   or the --apx-menu-* custom properties. */
151.apexcharts-canvas {
152  --apx-menu-bg: #ffffff;
153  --apx-menu-fg: #1e293b;
154  --apx-menu-border: #e2e8f0;
155  --apx-menu-hover: #f1f5f9;
156  --apx-menu-shadow: rgba(15, 23, 42, 0.18);
157}
158.apexcharts-context-menu {
159  min-width: 168px;
160  padding: 4px;
161  border-radius: 8px;
162  background: var(--apx-menu-bg);
163  border: 1px solid var(--apx-menu-border);
164  box-shadow: 0 6px 22px var(--apx-menu-shadow);
165  font-family: Helvetica, Arial, sans-serif;
166  font-size: 13px;
167  z-index: 20;
168  user-select: none;
169}
170.apexcharts-context-menu-item {
171  display: block;
172  width: 100%;
173  box-sizing: border-box;
174  text-align: left;
175  padding: 7px 12px;
176  border: 0;
177  border-radius: 5px;
178  background: transparent;
179  color: var(--apx-menu-fg);
180  font: inherit;
181  cursor: pointer;
182}
183.apexcharts-context-menu-item:hover,
184.apexcharts-context-menu-item--active {
185  background: var(--apx-menu-hover);
186}
187.apexcharts-context-menu-item:focus {
188  outline: none;
189}
190
191/* Ink Layer (#7): the floating note editor card, opened by clicking an
192   ink-managed annotation. Theme via these classes or the --apx-ink-* vars. */
193.apexcharts-canvas {
194  --apx-ink-card-bg: #ffffff;
195  --apx-ink-card-fg: #1e293b;
196  --apx-ink-card-border: #e2e8f0;
197  --apx-ink-card-hover: #f1f5f9;
198  --apx-ink-card-accent: #6366f1;
199  --apx-ink-card-shadow: rgba(15, 23, 42, 0.18);
200}
201.apexcharts-ink-card {
202  position: absolute;
203  z-index: 25;
204  display: flex;
205  flex-direction: column;
206  gap: 6px;
207  padding: 8px;
208  border-radius: 8px;
209  background: var(--apx-ink-card-bg);
210  border: 1px solid var(--apx-ink-card-border);
211  box-shadow: 0 6px 22px var(--apx-ink-card-shadow);
212  font-family: Helvetica, Arial, sans-serif;
213  font-size: 12px;
214  color: var(--apx-ink-card-fg);
215  user-select: none;
216}
217.apexcharts-ink-card-row {
218  display: flex;
219  align-items: center;
220  gap: 4px;
221}
222.apexcharts-ink-card input.apexcharts-ink-editor {
223  flex: 1 1 auto;
224  width: 150px;
225  min-width: 0;
226  box-sizing: border-box;
227  padding: 4px 6px;
228  font: inherit;
229  color: inherit;
230  background: transparent;
231  border: 1px solid var(--apx-ink-card-border);
232  border-radius: 5px;
233}
234.apexcharts-ink-card input.apexcharts-ink-editor:focus {
235  outline: none;
236  border-color: var(--apx-ink-card-accent);
237}
238.apexcharts-ink-btn {
239  flex: 0 0 auto;
240  width: 24px;
241  height: 24px;
242  display: inline-flex;
243  align-items: center;
244  justify-content: center;
245  padding: 0;
246  border: 0;
247  border-radius: 5px;
248  background: transparent;
249  color: inherit;
250  font: inherit;
251  font-size: 12px;
252  line-height: 1;
253  cursor: pointer;
254}
255.apexcharts-ink-btn:hover,
256.apexcharts-ink-btn--active {
257  background: var(--apx-ink-card-hover);
258}
259.apexcharts-ink-btn:focus-visible,
260.apexcharts-ink-swatch:focus-visible {
261  outline: 2px solid var(--apx-ink-card-accent);
262  outline-offset: 1px;
263}
264.apexcharts-ink-btn--bold {
265  font-weight: 700;
266}
267.apexcharts-ink-btn--delete:hover {
268  color: #dc2626;
269}
270.apexcharts-ink-swatch {
271  flex: 0 0 auto;
272  width: 16px;
273  height: 16px;
274  padding: 0;
275  border: 1px solid rgba(100, 116, 139, 0.45);
276  border-radius: 50%;
277  cursor: pointer;
278}
279.apexcharts-ink-swatch--active {
280  box-shadow:
281    0 0 0 2px var(--apx-ink-card-bg),
282    0 0 0 4px var(--apx-ink-card-accent);
283}
284.apexcharts-ink-sep {
285  flex: 0 0 auto;
286  width: 1px;
287  height: 16px;
288  margin: 0 2px;
289  background: var(--apx-ink-card-border);
290}
291.apexcharts-ink-cardlabel {
292  flex: 0 0 auto;
293  font-size: 10px;
294  letter-spacing: 0.4px;
295  text-transform: uppercase;
296  opacity: 0.65;
297  margin-right: 2px;
298}
299.apexcharts-ink-marker-size {
300  flex: 0 0 auto;
301  min-width: 16px;
302  text-align: center;
303  font-variant-numeric: tabular-nums;
304}
305
306.apexcharts-legend-text {
307  padding-left: 15px;
308  margin-left: -15px;
309}
310
311.apexcharts-legend-series[role="button"]:focus {
312  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
313  outline-offset: 2px;
314}
315
316.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {
317  outline: none;
318}
319
320.apexcharts-legend-series[role="button"]:focus-visible {
321  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
322  outline-offset: 2px;
323}
324
325.apexcharts-series-collapsed {
326  opacity: 0
327}
328
329/* A series still playing its exit tween stays painted so it can visibly shrink
330   away, hiding it on the first frame leaves a hole in a stacked chart for the
331   length of the animation. Dropped once the tween lands. */
332.apexcharts-series-collapsed.apexcharts-series-collapsing {
333  opacity: 1
334}
335
336/* Its labels ride the shrinking marks, but a mark runs out of room for its text
337   well before it reaches zero, so fade them across the exit instead of holding
338   them crisp over a sliver. Duration is set inline from dynamicAnimation.speed. */
339.apexcharts-datalabels.apexcharts-series-collapsing {
340  animation: apexcharts-datalabels-exit var(--apexcharts-dl-exit, 400ms) ease-in
341    forwards;
342}
343
344@keyframes apexcharts-datalabels-exit {
345  from {
346    opacity: 1
347  }
348  to {
349    opacity: 0
350  }
351}
352
353.apexcharts-canvas svg:focus:not(:focus-visible) {
354  outline: none;
355}
356
357/* Keyboard navigation focus indicator on SVG data elements.
358   SVG elements don't support CSS outline, so we use stroke. */
359.apexcharts-bar-area.apexcharts-keyboard-focused,
360.apexcharts-candlestick-area.apexcharts-keyboard-focused,
361.apexcharts-boxPlot-area.apexcharts-keyboard-focused,
362.apexcharts-rangebar-area.apexcharts-keyboard-focused,
363.apexcharts-pie-area.apexcharts-keyboard-focused,
364.apexcharts-heatmap-rect.apexcharts-keyboard-focused,
365.apexcharts-treemap-rect.apexcharts-keyboard-focused {
366  stroke: var(--apexcharts-focus-color, #008FFB);
367  stroke-width: 2;
368  stroke-opacity: 1;
369}
370
371.apexcharts-tooltip {
372  --apx-tt-bg: #ffffff;
373  /* Shared by the body and the arrow's two outward facets, so the
374   * hairline reads as one continuous outline around the whole shape.
375   * Keep it strong enough to survive on its own: the shadow below is
376   * elevation, not edge definition. */
377  --apx-tt-border: rgba(15, 23, 42, 0.12);
378  /* Elevation, in three layers: a tight contact shadow that anchors the
379   * bottom edge, a directional key shadow for the lift, and a wide
380   * ambient one that grounds the whole box. Each is weaker and more
381   * diffuse than the last.
382   *
383   * A tooltip is unusual in that it floats over *data*, so reach costs
384   * more than it does on a page: every pixel the shadow travels tints a
385   * bar or a line the reader is trying to compare. These numbers are
386   * tuned to keep the near-edge contrast that reads as elevation while
387   * dropping the long low haze that only muddies the plot.
388   *
389   * Note there is deliberately no \`0 0 0 1px\` ring layer. That used to
390   * stand in for edge definition back when --apx-tt-border was barely
391   * visible; now that the border is a real hairline (and the arrow
392   * shares it) a ring only double-draws the outline, and being spread
393   * rather than offset it leaked ink upward too, flattening the lift.
394   *
395   * \`--apx-tt-shadow-dir\` flips the whole stack's Y in one place — see
396   * the \`[data-placement="bottom"]\` rule further down. */
397  --apx-tt-shadow-dir: 1;
398  --apx-tt-shadow: 0 calc(var(--apx-tt-shadow-dir) * 1px) 2px rgba(15, 23, 42, 0.06), 0 calc(var(--apx-tt-shadow-dir) * 4px) 8px -2px rgba(15, 23, 42, 0.10), 0 calc(var(--apx-tt-shadow-dir) * 12px) 20px -8px rgba(15, 23, 42, 0.14);
399  --apx-tt-arrow-bg: var(--apx-tt-bg);
400  --apx-tt-color: #0f172a;
401  --apx-tt-color-muted: rgba(15, 23, 42, 0.55);
402  border-radius: 8px;
403  background: var(--apx-tt-bg);
404  border: 1px solid var(--apx-tt-border);
405  box-shadow: var(--apx-tt-shadow);
406  color: var(--apx-tt-color);
407  cursor: default;
408  font-size: 13px;
409  left: 0;
410  top: 0;
411  opacity: 0;
412  pointer-events: none;
413  position: absolute;
414  display: flex;
415  flex-direction: column;
416  padding: 2px 0;
417  white-space: nowrap;
418  z-index: 12;
419  transition: opacity .12s ease
420}
421
422/* While the tooltip is visible, smoothly animate position changes
423 * between data points. Kept short (160 ms) and ease-out so it stays
424 * responsive — too long would feel laggy when sweeping across many
425 * points fast. The position transition is only attached after the
426 * first paint (Position.applyTooltipPosition flips \`data-positioned\`
427 * once the tooltip has been placed) so the *first* show doesn't slide
428 * the tooltip in from the previously-stale (0,0) coordinates. */
429.apexcharts-tooltip.apexcharts-active {
430  opacity: 1;
431  transition: opacity .12s ease
432}
433.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {
434  transition: opacity .12s ease, left .16s ease-out, top .16s ease-out
435}
436
437.apexcharts-tooltip.apexcharts-theme-light {
438  /* defaults already set above; class kept for backward-compat selectors */
439}
440
441.apexcharts-tooltip.apexcharts-theme-dark {
442  --apx-tt-bg: #1c1c1f;
443  --apx-tt-border: rgba(255, 255, 255, 0.16);
444  /* Dark needs more alpha than light to register at all, but not as much
445   * as it used to: the light rim above now carries the edge, so the
446   * shadow is free to be pure elevation instead of doubling as an
447   * outline. Same geometry as light, heavier ink. */
448  --apx-tt-shadow: 0 calc(var(--apx-tt-shadow-dir) * 1px) 2px rgba(0, 0, 0, 0.24), 0 calc(var(--apx-tt-shadow-dir) * 4px) 8px -2px rgba(0, 0, 0, 0.30), 0 calc(var(--apx-tt-shadow-dir) * 12px) 20px -8px rgba(0, 0, 0, 0.38);
449  --apx-tt-color: #f3f4f6;
450  --apx-tt-color-muted: rgba(243, 244, 246, 0.55);
451}
452
453.apexcharts-tooltip * {
454  font-family: inherit
455}
456
457/* Point-annotation hover tooltip (apexcharts/apexcharts.js#2424). Reuses the
458 * glass body/border/shadow from \`.apexcharts-tooltip\` but holds free-form
459 * content, so it needs its own padding, wrapping and a sane max width. */
460.apexcharts-tooltip.apexcharts-annotation-tooltip {
461  padding: 6px 10px;
462  max-width: 240px;
463  white-space: normal;
464  line-height: 1.4;
465  pointer-events: none;
466  z-index: 13
467}
468
469.apexcharts-tooltip-title {
470  padding: 8px 12px 4px;
471  font-size: 12px;
472  font-weight: 600;
473  letter-spacing: 0.01em;
474  color: var(--apx-tt-color-muted);
475  background: transparent;
476  border-bottom: none;
477  margin-bottom: 0
478}
479
480.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
481.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
482  background: transparent;
483  border-bottom: none
484}
485
486/* \`fillSeriesColor\`: each series-group already paints itself with the
487 * series colour. Drop the glass body entirely (transparent bg, no
488 * border, no backdrop-filter, no padding) and clip the coloured
489 * series-group(s) to the tooltip's rounded corners so they fill the
490 * shell edge-to-edge. Text inside the coloured group is forced to
491 * white for contrast. */
492.apexcharts-tooltip.apexcharts-tooltip-fill-series {
493  background: transparent;
494  -webkit-backdrop-filter: none;
495  backdrop-filter: none;
496  border: none;
497  padding: 0;
498  overflow: hidden;
499  color: #fff
500}
501
502.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {
503  background: rgba(0, 0, 0, 0.22);
504  color: #fff;
505  opacity: 1;
506  padding: 6px 12px
507}
508
509.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {
510  color: #fff
511}
512
513/* Arrow connector — a 45°-rotated square straddling the body's edge, so
514 * the body's 1px border runs continuously out across the arrow and back.
515 * The two facets that face away from the tooltip carry the border; the
516 * two that face into it carry none, and the square's opaque fill covers
517 * the segment of the body's own border it sits on, hiding the seam.
518 *
519 * This is why it's a rotated square and not a triangle: \`clip-path\`
520 * erases \`border\` and \`box-shadow\` along with everything outside the
521 * polygon, which left \`filter: drop-shadow\` as the only way to suggest
522 * an edge — and a drop-shadow can only ever blur one, never draw a
523 * hairline. Nothing here needs a filter.
524 *
525 * Geometry: a square of side S rotated 45° reaches S/√2 from its centre
526 * to each corner, so S = 10px gives the ~7px tip overhang that
527 * ARROW_TIP_OVERHANG assumes (tooltip/constants.js) over a ~14px base.
528 * The offsets park the square's *centre* 1px outside the padding box
529 * (-6px = -1px border - 10px/2), i.e. exactly on the body's border line,
530 * so the two borders meet end to end instead of overlapping or gapping.
531 * \`box-sizing\` must be border-box or the bordered sides would grow the
532 * square asymmetrically and knock its centre off that line. */
533.apexcharts-tooltip-arrow {
534  position: absolute;
535  box-sizing: border-box;
536  width: 10px;
537  height: 10px;
538  background: var(--apx-tt-arrow-bg);
539  transform: rotate(45deg);
540  pointer-events: none;
541  top: calc(var(--apx-tt-arrow-y, 50%) - 5px)
542}
543
544/* Which two sides face outward depends on the placement. Under
545 * \`rotate(45deg)\` the square's bottom-left corner swings to the left,
546 * top-right to the right, top-left to the top and bottom-right to the
547 * bottom — so the pair of borders below is always the two sharing the
548 * corner that ends up as the tip. */
549.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {
550  left: -6px;
551  border-left: 1px solid var(--apx-tt-border);
552  border-bottom: 1px solid var(--apx-tt-border)
553}
554
555.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {
556  right: -6px;
557  border-top: 1px solid var(--apx-tt-border);
558  border-right: 1px solid var(--apx-tt-border)
559}
560
561/* Vertical arrow variants: tooltip is above/below the data point and the
562 * arrow points down/up. The base rule above uses \`--apx-tt-arrow-y\` for
563 * left/right placement; for top/bottom we centre on \`--apx-tt-arrow-x\`
564 * instead (set by applyTooltipPosition). */
565.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,
566.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
567  top: auto;
568  left: calc(var(--apx-tt-arrow-x, 50%) - 5px)
569}
570
571.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {
572  bottom: -6px;
573  border-right: 1px solid var(--apx-tt-border);
574  border-bottom: 1px solid var(--apx-tt-border)
575}
576
577.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
578  top: -6px;
579  border-top: 1px solid var(--apx-tt-border);
580  border-left: 1px solid var(--apx-tt-border)
581}
582
583/* When the tooltip is flipped below the data point, the default
584 * downward-biased shadow leaves its top edge undefined. Negating the
585 * direction casts the whole elevation upward instead, so the shadow
586 * falls between the tooltip and the mark above it. One multiplier flips
587 * all three layers together; the arrow needs no counterpart, since its
588 * border doesn't depend on light direction. */
589.apexcharts-tooltip[data-placement="bottom"] {
590  --apx-tt-shadow-dir: -1
591}
592
593.apexcharts-tooltip-text-goals-value,
594.apexcharts-tooltip-text-y-value,
595.apexcharts-tooltip-text-z-value {
596  display: inline-block;
597  margin-left: 5px;
598  font-weight: 600
599}
600
601.apexcharts-tooltip-text-goals-label:empty,
602.apexcharts-tooltip-text-goals-value:empty,
603.apexcharts-tooltip-text-y-label:empty,
604.apexcharts-tooltip-text-y-value:empty,
605.apexcharts-tooltip-text-z-value:empty,
606.apexcharts-tooltip-title:empty {
607  display: none
608}
609
610.apexcharts-tooltip-text-goals-label,
611.apexcharts-tooltip-text-goals-value {
612  padding: 6px 0 5px
613}
614
615.apexcharts-tooltip-goals-group,
616.apexcharts-tooltip-text-goals-label,
617.apexcharts-tooltip-text-goals-value {
618  display: flex
619}
620
621.apexcharts-tooltip-text-goals-label:not(:empty),
622.apexcharts-tooltip-text-goals-value:not(:empty) {
623  margin-top: -6px
624}
625
626.apexcharts-tooltip-marker {
627  display: inline-flex;
628  align-items: center;
629  justify-content: center;
630  position: relative;
631  width: 12px;
632  height: 12px;
633  margin-right: 6px;
634  vertical-align: middle;
635  color: inherit;
636}
637
638.apexcharts-tooltip-marker svg {
639  width: 100%;
640  height: 100%;
641  display: block;
642}
643
644.apexcharts-tooltip-series-group {
645  padding: 4px 12px;
646  display: none;
647  gap: 8px;
648  text-align: left;
649  justify-content: left;
650  align-items: center
651}
652
653.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
654  opacity: 1
655}
656
657.apexcharts-tooltip-series-group.apexcharts-active:last-child,
658.apexcharts-tooltip-series-group:last-child {
659  padding-bottom: 8px
660}
661
662.apexcharts-tooltip-y-group {
663  padding: 6px 0 5px
664}
665
666/* \`tooltip.compact\`: a tight box instead of a card, for panels a normal card
667   would cover (small multiples, sparklines, tiles). Only the box shrinks, so
668   the arrow and every anchor rule still apply. Rows stay stacked when there
669   are several series (the names are what tells them apart); a one-series
670   chart collapses to a single line, see \`-value-only\` below. */
671.apexcharts-tooltip.apexcharts-tooltip-compact {
672  padding: 3px 8px;
673  font-size: 11px;
674  line-height: 1.35
675}
676
677.apexcharts-tooltip-compact .apexcharts-tooltip-title {
678  padding: 0;
679  font-size: 11px;
680  white-space: nowrap
681}
682
683.apexcharts-tooltip-compact .apexcharts-tooltip-series-group,
684.apexcharts-tooltip-compact .apexcharts-tooltip-series-group.apexcharts-active:last-child,
685.apexcharts-tooltip-compact .apexcharts-tooltip-series-group:last-child {
686  padding: 0;
687  gap: 5px
688}
689
690.apexcharts-tooltip-compact .apexcharts-tooltip-y-group {
691  padding: 0
692}
693
694.apexcharts-tooltip-compact .apexcharts-tooltip-marker {
695  width: 8px;
696  height: 8px
697}
698
699/* A one-series panel: the series name repeats what the panel header already
700   says, so the value stands alone and the x label becomes its prefix on one
701   line ("Aug 2024  6.59"). */
702.apexcharts-tooltip.apexcharts-tooltip-compact.apexcharts-tooltip-value-only {
703  /* The tooltip body is a flex COLUMN by default (title row, then series
704     rows); one series needs no column, so the same box turns into one line. */
705  flex-direction: row;
706  align-items: baseline;
707  gap: 6px
708}
709
710.apexcharts-tooltip-value-only .apexcharts-tooltip-marker {
711  display: none
712}
713
714.apexcharts-tooltip-value-only .apexcharts-tooltip-text-y-label {
715  display: none
716}
717
718.apexcharts-custom-tooltip,
719.apexcharts-tooltip-box {
720  padding: 4px 8px
721}
722
723.apexcharts-tooltip-boxPlot {
724  display: flex;
725  flex-direction: column-reverse
726}
727
728.apexcharts-tooltip-box>div {
729  margin: 4px 0
730}
731
732.apexcharts-tooltip-box span.value {
733  font-weight: 700
734}
735
736.apexcharts-tooltip-rangebar {
737  padding: 5px 8px
738}
739
740.apexcharts-tooltip-rangebar .category {
741  font-weight: 600;
742  color: #777
743}
744
745.apexcharts-tooltip-rangebar .series-name {
746  font-weight: 700;
747  display: block;
748  margin-bottom: 5px
749}
750
751/* X/Y axis tooltips — small popovers that label the crosshair on the
752 * axes. Restyled to match the modern data-tooltip palette: solid white
753 * body with a subtle border + soft drop-shadow, smaller font, rounded
754 * corners. The arrows still use the CSS border-triangle technique
755 * (cheap, crisp at small sizes); their colours flow from CSS variables
756 * so light/dark themes only need one override per axis. */
757.apexcharts-xaxistooltip,
758.apexcharts-yaxistooltip {
759  --apx-axt-bg: #ffffff;
760  --apx-axt-border: rgba(15, 23, 42, 0.08);
761  --apx-axt-color: #0f172a;
762  --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);
763  opacity: 0;
764  pointer-events: none;
765  color: var(--apx-axt-color);
766  font-size: 12px;
767  font-weight: 500;
768  text-align: center;
769  border-radius: 6px;
770  position: absolute;
771  z-index: 10;
772  background: var(--apx-axt-bg);
773  border: 1px solid var(--apx-axt-border);
774  box-shadow: var(--apx-axt-shadow)
775}
776
777.apexcharts-xaxistooltip.apexcharts-theme-dark,
778.apexcharts-yaxistooltip.apexcharts-theme-dark {
779  --apx-axt-bg: #1c1c1f;
780  --apx-axt-border: rgba(255, 255, 255, 0.1);
781  --apx-axt-color: #f3f4f6;
782  --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)
783}
784
785.apexcharts-xaxistooltip {
786  padding: 4px 8px;
787  transition: .15s ease all
788}
789
790.apexcharts-xaxistooltip:after,
791.apexcharts-xaxistooltip:before {
792  left: 50%;
793  border: solid transparent;
794  content: " ";
795  height: 0;
796  width: 0;
797  position: absolute;
798  pointer-events: none
799}
800
801/* :before paints the 1px border outline of the triangle (slightly larger
802 * than :after); :after sits inside and paints the fill — leaves a 1px
803 * ring of :before visible at the edges. */
804.apexcharts-xaxistooltip:after {
805  border-color: transparent;
806  border-width: 5px;
807  margin-left: -5px
808}
809
810.apexcharts-xaxistooltip:before {
811  border-color: transparent;
812  border-width: 6px;
813  margin-left: -6px
814}
815
816.apexcharts-xaxistooltip-bottom:after,
817.apexcharts-xaxistooltip-bottom:before {
818  bottom: 100%
819}
820
821.apexcharts-xaxistooltip-top:after,
822.apexcharts-xaxistooltip-top:before {
823  top: 100%
824}
825
826.apexcharts-xaxistooltip-bottom:after {
827  border-bottom-color: var(--apx-axt-bg)
828}
829
830.apexcharts-xaxistooltip-bottom:before {
831  border-bottom-color: var(--apx-axt-border)
832}
833
834.apexcharts-xaxistooltip-top:after {
835  border-top-color: var(--apx-axt-bg)
836}
837
838.apexcharts-xaxistooltip-top:before {
839  border-top-color: var(--apx-axt-border)
840}
841
842.apexcharts-xaxistooltip.apexcharts-active {
843  opacity: 1;
844  transition: .15s ease all
845}
846
847.apexcharts-yaxistooltip {
848  padding: 3px 8px
849}
850
851.apexcharts-yaxistooltip:after,
852.apexcharts-yaxistooltip:before {
853  top: 50%;
854  border: solid transparent;
855  content: " ";
856  height: 0;
857  width: 0;
858  position: absolute;
859  pointer-events: none
860}
861
862.apexcharts-yaxistooltip:after {
863  border-color: transparent;
864  border-width: 5px;
865  margin-top: -5px
866}
867
868.apexcharts-yaxistooltip:before {
869  border-color: transparent;
870  border-width: 6px;
871  margin-top: -6px
872}
873
874.apexcharts-yaxistooltip-left:after,
875.apexcharts-yaxistooltip-left:before {
876  left: 100%
877}
878
879.apexcharts-yaxistooltip-right:after,
880.apexcharts-yaxistooltip-right:before {
881  right: 100%
882}
882
883
884.apexcharts-yaxistooltip-left:after {
885  border-left-color: var(--apx-axt-bg)
886}
887
888.apexcharts-yaxistooltip-left:before {
889  border-left-color: var(--apx-axt-border)
890}
891
892.apexcharts-yaxistooltip-right:after {
893  border-right-color: var(--apx-axt-bg)
894}
895
896.apexcharts-yaxistooltip-right:before {
897  border-right-color: var(--apx-axt-border)
898}
899
900.apexcharts-yaxistooltip.apexcharts-active {
901  opacity: 1
902}
903
904.apexcharts-yaxistooltip-hidden {
905  display: none
906}
907
908.apexcharts-xcrosshairs,
909.apexcharts-ycrosshairs {
910  pointer-events: none;
911  opacity: 0;
912  transition: .15s ease all
913}
914
915.apexcharts-xcrosshairs.apexcharts-active,
916.apexcharts-ycrosshairs.apexcharts-active {
917  opacity: 1;
918  transition: .15s ease all
919}
920
921.apexcharts-ycrosshairs-hidden {
922  opacity: 0
923}
924
925.apexcharts-selection-rect {
926  cursor: move
927}
928
929.svg_select_shape {
930  stroke-width: 1;
931  stroke-dasharray: 10 10;
932  stroke: black;
933  stroke-opacity: 0.1;
934  pointer-events: none;
935  fill: none;
936}
937
938.svg_select_handle {
939  stroke-width: 3;
940  stroke: black;
941  fill: none;
942}
943
944.svg_select_handle_r {
945  cursor: e-resize;
946}
947
948.svg_select_handle_l {
949  cursor: w-resize;
950}
951
952.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
953  cursor: crosshair
954}
955
956.apexcharts-svg.apexcharts-zoomable.hovering-pan {
957  cursor: move
958}
959
960.apexcharts-menu-icon,
961.apexcharts-measure-icon,
962.apexcharts-pan-icon,
963.apexcharts-reset-icon,
964.apexcharts-selection-icon,
965.apexcharts-toolbar-custom-icon,
966.apexcharts-zoom-icon,
967.apexcharts-zoomin-icon,
968.apexcharts-zoomout-icon {
969  cursor: pointer;
970  /* WCAG 2.5.8 Target Size (Minimum): 24×24 CSS px hit target. */
971  width: 26px;
972  height: 24px;
973  line-height: 24px;
974  color: #6e8192;
975  text-align: center;
976  /* Reset native <button> chrome — these are styled via SVG icons. */
977  padding: 0;
978  margin: 0;
979  background: transparent;
980  border: 0;
981  border-radius: 5px;
982  display: inline-flex;
983  align-items: center;
984  justify-content: center;
985  transition: background-color .12s ease, color .12s ease;
986}
987
988.apexcharts-menu-icon svg,
989.apexcharts-measure-icon svg,
990.apexcharts-pan-icon svg,
991.apexcharts-reset-icon svg,
992.apexcharts-selection-icon svg,
993.apexcharts-zoom-icon svg,
994.apexcharts-zoomin-icon svg,
995.apexcharts-zoomout-icon svg {
996  width: 18px;
997  height: 18px;
998  fill: none;
999  stroke: currentColor;
1000  stroke-width: 2;
1001  stroke-linecap: round;
1002  stroke-linejoin: round
1003}
1004
1005.apexcharts-theme-dark .apexcharts-menu-icon,
1006.apexcharts-theme-dark .apexcharts-measure-icon,
1007.apexcharts-theme-dark .apexcharts-pan-icon,
1008.apexcharts-theme-dark .apexcharts-reset-icon,
1009.apexcharts-theme-dark .apexcharts-selection-icon,
1010.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,
1011.apexcharts-theme-dark .apexcharts-zoom-icon,
1012.apexcharts-theme-dark .apexcharts-zoomin-icon,
1013.apexcharts-theme-dark .apexcharts-zoomout-icon {
1014  color: #d4d6dc
1015}
1016
1017.apexcharts-canvas .apexcharts-measure-icon.apexcharts-selected,
1018.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,
1019.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,
1020.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,
1021.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {
1022  background: rgba(0, 143, 251, 0.12);
1023  color: #008ffb
1024}
1025
1026.apexcharts-theme-light .apexcharts-menu-icon:hover,
1027.apexcharts-theme-light .apexcharts-measure-icon:not(.apexcharts-selected):hover,
1028.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,
1029.apexcharts-theme-light .apexcharts-reset-icon:hover,
1030.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,
1031.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
1032.apexcharts-theme-light .apexcharts-zoomin-icon:hover,
1033.apexcharts-theme-light .apexcharts-zoomout-icon:hover {
1034  background: rgba(15, 23, 42, 0.06);
1035  color: #1f2937
1036}
1037
1038.apexcharts-theme-dark .apexcharts-menu-icon:hover,
1039.apexcharts-theme-dark .apexcharts-measure-icon:not(.apexcharts-selected):hover,
1040.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,
1041.apexcharts-theme-dark .apexcharts-reset-icon:hover,
1042.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,
1043.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
1044.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,
1045.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {
1046  background: rgba(255, 255, 255, 0.08);
1047  color: #fff
1048}
1049
1050.apexcharts-menu-icon,
1051.apexcharts-selection-icon {
1052  position: relative
1053}
1054
1055.apexcharts-toolbar {
1056  position: absolute;
1057  z-index: 11;
1058  display: inline-flex;
1059  align-items: center;
1060  gap: 1px;
1061  padding: 3px;
1062  border-radius: 8px;
1063  background: rgba(255, 255, 255, 0.85);
1064  backdrop-filter: blur(8px);
1065  -webkit-backdrop-filter: blur(8px);
1066}
1067
1068.apexcharts-theme-dark .apexcharts-toolbar {
1069  background: rgba(28, 28, 31, 0.82);
1070}
1071
1072.apexcharts-menu {
1073  background: rgba(255, 255, 255, 0.95);
1074  backdrop-filter: blur(8px);
1075  -webkit-backdrop-filter: blur(8px);
1076  position: absolute;
1077  top: calc(100% + 4px);
1078  border: 1px solid rgba(15, 23, 42, 0.08);
1079  border-radius: 8px;
1080  padding: 4px;
1081  right: 0;
1082  opacity: 0;
1083  min-width: 120px;
1084  transition: opacity .15s ease, transform .15s ease;
1085  transform: translateY(-2px);
1086  pointer-events: none;
1087  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)
1088}
1089
1090.apexcharts-menu.apexcharts-menu-open {
1091  opacity: 1;
1092  transform: translateY(0);
1093  pointer-events: all
1094}
1095
1096.apexcharts-menu-item {
1097  padding: 6px 9px;
1098  font-size: 12px;
1099  border-radius: 5px;
1100  cursor: pointer
1101}
1102
1103.apexcharts-theme-light .apexcharts-menu-item:hover {
1104  background: rgba(15, 23, 42, 0.06)
1105}
1106
1107.apexcharts-theme-dark .apexcharts-menu {
1108  background: rgba(28, 28, 31, 0.92);
1109  border-color: rgba(255, 255, 255, 0.08);
1110  color: #f3f4f6;
1111  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)
1112}
1113
1114.apexcharts-theme-dark .apexcharts-menu-item:hover {
1115  background: rgba(255, 255, 255, 0.08)
1116}
1117
1118@media screen and (min-width:768px) {
1119  .apexcharts-canvas:hover .apexcharts-toolbar {
1120    opacity: 1
1121  }
1122}
1123
1124/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */
1125.apexcharts-toolbar:focus-within {
1126  opacity: 1
1127}
1128
1129/* Focus indicator for toolbar icon buttons */
1130.apexcharts-menu-icon:focus-visible,
1131.apexcharts-measure-icon:focus-visible,
1132.apexcharts-pan-icon:focus-visible,
1133.apexcharts-reset-icon:focus-visible,
1134.apexcharts-selection-icon:focus-visible,
1135.apexcharts-toolbar-custom-icon:focus-visible,
1136.apexcharts-zoom-icon:focus-visible,
1137.apexcharts-zoomin-icon:focus-visible,
1138.apexcharts-zoomout-icon:focus-visible {
1139  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
1140  outline-offset: 1px;
1141  border-radius: 5px
1142}
1143
1144/* Focus indicator for hamburger menu items */
1145.apexcharts-menu-item:focus-visible {
1146  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
1147  outline-offset: -2px;
1148  background: #eee
1149}
1150
1151.apexcharts-canvas .apexcharts-element-hidden,
1152.apexcharts-datalabel.apexcharts-element-hidden,
1153.apexcharts-hide .apexcharts-series-points {
1154  opacity: 0;
1155}
1156
1157.apexcharts-hidden-element-shown {
1158  opacity: 1;
1159  transition: 0.25s ease all;
1160}
1161
1162.apexcharts-datalabel,
1163.apexcharts-datalabel-label,
1164.apexcharts-datalabel-value,
1165.apexcharts-datalabels,
1166.apexcharts-pie-label,
1167.apexcharts-pie-name-label,
1168.apexcharts-pie-name-label-group,
1169.apexcharts-pie-label-connector,
1170.apexcharts-unit-outer-label,
1171.apexcharts-unit-outer-label-group,
1172.apexcharts-unit-label-connector {
1173  cursor: default;
1174  pointer-events: none
1175}
1176
1177.apexcharts-pie-label-connector,
1178.apexcharts-unit-label-connector {
1179  fill: none
1180}
1181
1182.apexcharts-pie-label-delay,
1183.apexcharts-unit-label-delay {
1184  opacity: 0;
1185  animation-name: opaque;
1186  animation-duration: .3s;
1187  animation-fill-mode: forwards;
1188  animation-timing-function: ease
1189}
1190
1191/* Slower than the pie's, on purpose: these come in while the dots are still
1192   easing into place, so a longer fade reads as arriving WITH the crowd. */
1193.apexcharts-unit-label-delay {
1194  animation-duration: .5s
1195}
1196
1197.apexcharts-radialbar-label {
1198  cursor: pointer;
1199}
1200
1201.apexcharts-annotation-rect,
1202.apexcharts-area-series .apexcharts-area,
1203.apexcharts-gridline,
1204.apexcharts-line,
1205.apexcharts-point-annotation-label,
1206.apexcharts-radar-series path:not(.apexcharts-marker),
1207.apexcharts-radar-series polygon,
1208.apexcharts-toolbar svg,
1209.apexcharts-tooltip .apexcharts-marker,
1210.apexcharts-xaxis-annotation-label,
1211.apexcharts-yaxis-annotation-label,
1212.apexcharts-zoom-rect,
1213.no-pointer-events {
1214  pointer-events: none
1215}
1216
1217.apexcharts-tooltip-active .apexcharts-marker {
1218  transition: .15s ease all
1219}
1220
1221.apexcharts-radar-series .apexcharts-yaxis {
1222  pointer-events: none;
1223}
1224
1225.resize-triggers {
1226  animation: 1ms resizeanim;
1227  visibility: hidden;
1228  opacity: 0;
1229  height: 100%;
1230  width: 100%;
1231  overflow: hidden
1232}
1233
1234.contract-trigger:before,
1235.resize-triggers,
1236.resize-triggers>div {
1237  content: " ";
1238  display: block;
1239  position: absolute;
1240  top: 0;
1241  left: 0
1242}
1243
1244.resize-triggers>div {
1245  height: 100%;
1246  width: 100%;
1247  background: #eee;
1248  overflow: auto
1249}
1250
1251.contract-trigger:before {
1252  overflow: hidden;
1253  width: 200%;
1254  height: 200%
1255}
1256
1257.apexcharts-bar-goals-markers {
1258  pointer-events: none
1259}
1260
1261.apexcharts-bar-shadows {
1262  pointer-events: none
1263}
1264
1265.apexcharts-rangebar-goals-markers {
1266  pointer-events: none
1267}
1268
1269.apexcharts-drilldown-target {
1270  cursor: pointer
1271}
1272
1273.apexcharts-breadcrumb {
1274  position: absolute;
1275  z-index: 11;
1276  display: inline-flex;
1277  align-items: center;
1278  gap: 2px;
1279  font-size: 12px;
1280  font-family: inherit;
1281  padding: 2px 4px
1282}
1283
1284.apexcharts-breadcrumb-item {
1285  background: transparent;
1286  border: none;
1287  padding: 2px 6px;
1288  border-radius: 3px;
1289  font: inherit;
1290  color: inherit;
1291  cursor: pointer;
1292  line-height: 1.2
1293}
1294
1295.apexcharts-breadcrumb-item:hover:not(.apexcharts-breadcrumb-current) {
1296  background: rgba(0, 0, 0, 0.08)
1297}
1298
1299.apexcharts-breadcrumb-arrow {
1300  margin-right: 4px;
1301  font-weight: 600;
1302  user-select: none
1303}
1304
1305.apexcharts-breadcrumb-current {
1306  cursor: default;
1307  font-weight: 600;
1308  opacity: 0.85
1309}
1310
1311.apexcharts-breadcrumb-separator {
1312  opacity: 0.5;
1313  user-select: none
1314}
1315
1316.apexcharts-theme-dark .apexcharts-breadcrumb-item:hover:not(.apexcharts-breadcrumb-current) {
1317  background: rgba(255, 255, 255, 0.12)
1318}
1319
1320.apexcharts-drilldown-loading {
1321  position: absolute;
1322  inset: 0;
1323  z-index: 12;
1324  display: flex;
1325  align-items: center;
1326  justify-content: center;
1327  gap: 10px;
1328  font-size: 13px;
1329  font-family: inherit;
1330  color: inherit;
1331  background: rgba(255, 255, 255, 0.62);
1332  /* The chart underneath stays interactive-looking but must not take clicks
1333     while a level is resolving, or a second drill can start mid-fetch. */
1334  cursor: progress
1335}
1336
1337.apexcharts-drilldown-loading-spinner {
1338  width: 26px;
1339  height: 26px;
1340  border-radius: 50%;
1341  border: 2.5px solid rgba(0, 0, 0, 0.16);
1342  border-top-color: rgba(0, 0, 0, 0.55);
1343  animation: apexcharts-drilldown-spin 0.7s linear infinite
1344}
1345
1346.apexcharts-drilldown-loading-text {
1347  opacity: 0.8
1348}
1349
1350.apexcharts-theme-dark .apexcharts-drilldown-loading {
1351  background: rgba(30, 30, 30, 0.62)
1352}
1353
1354.apexcharts-theme-dark .apexcharts-drilldown-loading-spinner {
1355  border-color: rgba(255, 255, 255, 0.22);
1356  border-top-color: rgba(255, 255, 255, 0.7)
1357}
1358
1359@keyframes apexcharts-drilldown-spin {
1360  to {
1361    transform: rotate(360deg)
1362  }
1363}
1364
1365@media (prefers-reduced-motion: reduce) {
1366  .apexcharts-drilldown-loading-spinner {
1367    animation: apexcharts-drilldown-pulse 1.4s ease-in-out infinite
1368  }
1369
1370  @keyframes apexcharts-drilldown-pulse {
1371    0%, 100% {
1372      opacity: 0.35
1373    }
1374
1375    50% {
1376      opacity: 1
1377    }
1378  }
1379}
1380
1381.apexcharts-disable-transitions * {
1382  transition: none !important;
1383}
1384/* ── Trellis (#22): small multiples ─────────────────────────────────────── */
1385.apexcharts-trellis {
1386  position: relative;
1387}
1388.apexcharts-trellis-grid {
1389  display: grid;
1390}
1391.apexcharts-trellis-cell {
1392  min-width: 0;
1393  position: relative;
1394}
1395.apexcharts-trellis-header {
1396  font-size: 12px;
1397  font-weight: 600;
1398  line-height: 22px;
1399  height: 22px;
1400  text-align: center;
1401  overflow: hidden;
1402  text-overflow: ellipsis;
1403  white-space: nowrap;
1404  color: var(--apx-fore, #373d3f);
1405}
1406.apexcharts-trellis-title {
1407  font-size: 14px;
1408  font-weight: 700;
1409  padding: 2px 0 6px;
1410  color: var(--apx-fore, #373d3f);
1411}
1412/* Edge-label policy: a muted cell hides its axis-label INK, never the label
1413   SPACE — every panel keeps the identical plot rectangle, and flipping the
1414   policy on a resize is a class toggle, not a re-render. */
1415.apexcharts-trellis-mute-y .apexcharts-yaxis {
1416  opacity: 0;
1417}
1418.apexcharts-trellis-mute-x .apexcharts-xaxis {
1419  opacity: 0;
1420}
1421/* The shared toolbar floats at the top-right, so a grid that has one starts
1422   below it: from four columns on, the last cell's header (or a 2-D column
1423   strip label) would otherwise run under the buttons. One band for the whole
1424   grid, not per panel. */
1425.apexcharts-trellis-has-toolbar {
1426  padding-top: 24px;
1427}
1428/* 2-D faceting (P4): column labels once across the top, row labels once
1429   down the left. The row strip column is auto-sized; panel columns stay
1430   equal fractions, so panel alignment is independent of the strip width. */
1431.apexcharts-trellis-strip {
1432  font-size: 12px;
1433  font-weight: 600;
1434  color: var(--apx-fore, #373d3f);
1435  overflow: hidden;
1436  text-overflow: ellipsis;
1437  white-space: nowrap;
1438}
1439.apexcharts-trellis-strip-column {
1440  text-align: center;
1441  line-height: 22px;
1442  height: 22px;
1443  align-self: end;
1444}
1445.apexcharts-trellis-strip-row {
1446  align-self: center;
1447  max-width: 140px;
1448  padding-right: 6px;
1449}
1450/* Empty (row, column) combinations. 'placeholder' keeps a REAL panel with a
1451   quiet label; 'skip' shows the tinted skeleton; 'hide' shows nothing while
1452   keeping the grid slot. */
1453.apexcharts-trellis-cell-empty {
1454  position: relative;
1455}
1456.apexcharts-trellis-empty-label {
1457  position: absolute;
1458  inset: 0;
1459  display: flex;
1460  align-items: center;
1461  justify-content: center;
1462  font-size: 12px;
1463  color: var(--apx-fore, #373d3f);
1464  opacity: 0.45;
1465  pointer-events: none;
1466}
1467.apexcharts-trellis-cell-hidden > * {
1468  visibility: hidden;
1469}
1470/* P5: one shared gradient strip is a heatmap grid's legend. The slot is
1471   content-sized inline (the strip svg's own box); centering is its own. */
1472.apexcharts-trellis-gradient-legend {
1473  margin: 10px auto 0;
1474}
1475/* Virtualization (P2): an unmounted panel's mount div reserves the exact
1476   panel height (inline min-height) so page height and scroll position never
1477   shift; the skeleton itself is a quiet tinted block. Deliberately not
1478   animated: a shimmering grid of 200 placeholders is noise. */
1479.apexcharts-trellis-panel.apexcharts-trellis-skeleton {
1480  background: var(--apx-fore, #373d3f);
1481  opacity: 0.05;
1482  border-radius: 4px;
1483}
1484/* tooltip: 'panel' — the group still syncs every panel's crosshair, but only
1485   the hovered cell shows its tooltip cards. */
1486.apexcharts-trellis[data-tooltip-mode='panel'] .apexcharts-trellis-cell:not(:hover) .apexcharts-tooltip,
1487.apexcharts-trellis[data-tooltip-mode='panel'] .apexcharts-trellis-cell:not(:hover) .apexcharts-xaxistooltip,
1488.apexcharts-trellis[data-tooltip-mode='panel'] .apexcharts-trellis-cell:not(:hover) .apexcharts-yaxistooltip {
1489  opacity: 0 !important;
1490}
1491/* tooltip: 'grid' (P3) — ALL per-panel tooltip ink is hidden (the group
1492   still computes it; the trellis card reads it) and one trellis-owned card
1493   follows the cursor with one row per panel. */
1494.apexcharts-trellis[data-tooltip-mode='grid'] .apexcharts-trellis-cell .apexcharts-tooltip,
1495.apexcharts-trellis[data-tooltip-mode='grid'] .apexcharts-trellis-cell .apexcharts-xaxistooltip,
1496.apexcharts-trellis[data-tooltip-mode='grid'] .apexcharts-trellis-cell .apexcharts-yaxistooltip {
1497  opacity: 0 !important;
1498}
1499.apexcharts-trellis-tooltip {
1500  position: absolute;
1501  top: 0;
1502  left: 0;
1503  z-index: 14;
1504  pointer-events: none;
1505  opacity: 0;
1506  transition: opacity 0.1s ease;
1507  background: var(--apx-bg, #fff);
1508  color: var(--apx-fore, #373d3f);
1509  border: 1px solid rgba(120, 120, 120, 0.25);
1510  border-radius: 5px;
1511  box-shadow: 2px 2px 6px -4px rgba(0, 0, 0, 0.4);
1512  font-size: 12px;
1513  min-width: 140px;
1514  max-width: 320px;
1515}
1516.apexcharts-trellis-tooltip-active {
1517  opacity: 1;
1518}
1519.apexcharts-trellis-tooltip .apexcharts-tooltip-title {
1520  padding: 5px 10px;
1521  font-weight: 600;
1522  background: rgba(120, 120, 120, 0.08);
1523  border-bottom: 1px solid rgba(120, 120, 120, 0.18);
1524  margin-bottom: 2px;
1525}
1526.apexcharts-trellis-tooltip-row {
1527  display: flex;
1528  align-items: center;
1529  justify-content: space-between;
1530  gap: 14px;
1531  padding: 2px 10px;
1532  line-height: 1.6;
1533}
1534.apexcharts-trellis-tooltip-row-active {
1535  background: rgba(120, 120, 120, 0.1);
1536  font-weight: 600;
1537}
1538.apexcharts-trellis-tooltip-key {
1539  overflow: hidden;
1540  text-overflow: ellipsis;
1541  white-space: nowrap;
1542}
1543.apexcharts-trellis-tooltip-vals {
1544  display: flex;
1545  gap: 10px;
1546  white-space: nowrap;
1547}
1548.apexcharts-trellis-tooltip-val {
1549  display: inline-flex;
1550  align-items: center;
1551  gap: 5px;
1552}
1553.apexcharts-trellis-tooltip-marker {
1554  width: 8px;
1555  height: 8px;
1556  border-radius: 50%;
1557  display: inline-block;
1558  flex: none;
1559}
1560/* Panel promotion (P3): the promoted cell spans the grid; the rest park.
1561   The promoted panel is the only visible one, so both its axes unmute. */
1562.apexcharts-trellis-cell-promoted {
1563  grid-column: 1 / -1;
1564}
1565.apexcharts-trellis-cell-parked {
1566  display: none;
1567}
1568.apexcharts-trellis-cell-promoted.apexcharts-trellis-mute-y .apexcharts-yaxis,
1569.apexcharts-trellis-cell-promoted.apexcharts-trellis-mute-x .apexcharts-xaxis {
1570  opacity: 1;
1571}
1572.apexcharts-trellis-header-clickable {
1573  cursor: pointer;
1574}
1575.apexcharts-trellis-header-clickable:hover {
1576  text-decoration: underline;
1577  text-underline-offset: 3px;
1578}
1579.apexcharts-trellis-breadcrumb {
1580  display: flex;
1581  align-items: center;
1582  gap: 6px;
1583  font-size: 12px;
1584  padding: 2px 0 6px;
1585  color: var(--apx-fore, #373d3f);
1586}
1587.apexcharts-trellis-breadcrumb-back {
1588  border: none;
1589  background: none;
1590  padding: 0;
1591  font-size: 12px;
1592  cursor: pointer;
1593  color: var(--apx-accent, #008ffb);
1594}
1595.apexcharts-trellis-breadcrumb-back:hover {
1596  text-decoration: underline;
1597}
1598.apexcharts-trellis-breadcrumb-sep {
1599  opacity: 0.5;
1600}
1601.apexcharts-trellis-breadcrumb-current {
1602  font-weight: 600;
1603}
1604/* The toolbar download menu (P3). */
1605.apexcharts-trellis-menu {
1606  position: absolute;
1607  top: 26px;
1608  right: 0;
1609  display: none;
1610  flex-direction: column;
1611  min-width: 132px;
1612  background: var(--apx-bg, #fff);
1613  border: 1px solid rgba(120, 120, 120, 0.25);
1614  border-radius: 5px;
1615  box-shadow: 2px 2px 6px -4px rgba(0, 0, 0, 0.4);
1616  padding: 4px;
1617  z-index: 15;
1618}
1619.apexcharts-trellis-menu-open {
1620  display: flex;
1621}
1622.apexcharts-trellis-menu-item {
1623  border: none;
1624  background: none;
1625  text-align: left;
1626  font-size: 12px;
1627  padding: 5px 8px;
1628  border-radius: 3px;
1629  cursor: pointer;
1630  color: var(--apx-fore, #373d3f);
1631}
1632.apexcharts-trellis-menu-item:hover {
1633  background: rgba(120, 120, 120, 0.12);
1634}
1635.apexcharts-trellis-toolbar {
1636  position: absolute;
1637  top: 0;
1638  right: 0;
1639  display: flex;
1640  gap: 2px;
1641  z-index: 12;
1642}
1643.apexcharts-trellis-tool {
1644  border: 0;
1645  background: transparent;
1646  padding: 2px;
1647  cursor: pointer;
1648  border-radius: 3px;
1649  color: #6e8192;
1650  line-height: 0;
1651}
1652.apexcharts-trellis-tool:hover {
1653  color: var(--apx-fore, #373d3f);
1654}
1655.apexcharts-trellis-tool.apexcharts-selected {
1656  color: var(--apx-accent, #008ffb);
1657}
1658.apexcharts-trellis-legend {
1659  display: flex;
1660  flex-wrap: wrap;
1661  justify-content: center;
1662  gap: 4px 14px;
1663  padding: 8px 10px 2px;
1664}
1665.apexcharts-trellis-legend-item {
1666  display: flex;
1667  align-items: center;
1668  gap: 6px;
1669  cursor: pointer;
1670  line-height: 1;
1671}
1672.apexcharts-trellis-legend-item .apexcharts-legend-marker {
1673  width: 12px;
1674  height: 12px;
1675  border-radius: 50%;
1676  display: inline-block;
1677}
1678.apexcharts-trellis-legend-item .apexcharts-legend-text {
1679  font-size: 12px;
1680  color: var(--apx-fore, #373d3f);
1681}
1682.apexcharts-trellis-legend-item.apexcharts-inactive-legend {
1683  opacity: 0.45;
1684}
1685`;let i=((h=this.opts.chart)==null?void 0:h.nonce)||this.w.config.chart.nonce;i&&r.setAttribute(`nonce`,i),t?e.prepend(r):!1!==this.w.config.chart.injectStyleSheet&&n.head.appendChild(r)}}if(b)return void this.trellis.render().then(()=>{Hr(this.w,this),typeof this.w.config.chart.events.mounted==`function`&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent(`mounted`,[this,this.w]),e(this)}).catch(e=>{var n,r;let i=e instanceof Error?e:Error(String(e)),a=i;a.chartId=(r=(n=this.w)==null?void 0:n.globals)==null?void 0:r.chartID,a.el=this.el,t(i)});let S=this.create(this.w.config.series,{});if(!S)return e(this);this.mount(S).then(()=>{typeof this.w.config.chart.events.mounted==`function`&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent(`mounted`,[this,this.w]),e(S)}).catch(e=>{var n,r;let i=e instanceof Error?e:Error(String(e)),a=i;a.chartId=(r=(n=this.w)==null?void 0:n.globals)==null?void 0:r.chartID,a.el=this.el,t(i)})}else t(Error(`Element not found`))});return this._renderPromise=n,n.catch(()=>{this._renderPromise===n&&(this._renderPromise=null)}),n}create(e,t){var n,r,i,a,o,s;let c=this.w;this.core||new or(this).initModules();let l=this.w.globals;if(l.noData=!1,l.animationEnded=!1,!x.elementExists(this.el)||(this.responsive.checkResponsiveConfig(t),je(c),c.config.xaxis.convertedCatToNumeric&&new I(c.config).convertCatToNumericXaxis(c.config,this.ctx),this.core.setupElements(),c.config.chart.type===`treemap`&&(c.config.grid.show=!1,c.config.yaxis[0].show=!1),l.svgWidth===0))return l.animationEnded=!0,null;let u=e;e.forEach((e,t)=>{e.hidden&&(u=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))});let f=V.checkComboSeries(u,c.config.chart.type);l.comboCharts=f.comboCharts,l.comboBarCount=f.comboBarCount;let p=u.every(e=>e.data&&e.data.length===0);(u.length===0||p&&l.collapsedSeries.length<1)&&this.series.handleNoData(),d.isBrowser()&&this.events.setupEventHandlers();let m=this.data.parseData(u);this._writeParsedSeriesData(m.seriesData),this._writeParsedRangeData(m.rangeData),this._writeParsedCandleData(m.candleData),this._writeParsedLabelData(m.labelData),this._writeParsedAxisFlags(m.axisFlags),(n=this.rendererController)==null||n.resolve(),(r=this.weave)==null||r.dispatch(`afterParse`),this.theme.init(),new Re(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),l.noData&&l.collapsedSeries.length!==c.seriesData.series.length&&!c.config.legend.showForSingleSeries||(i=this.legend)==null||i.init(),this.series.hasAllSeriesEqualX(),l.axisCharts&&(this.core.coreCalculations(),c.config.xaxis.type!==`category`&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=c.globals.minX,this.ctx.toolbar.maxX=c.globals.maxX)),this.formatters.heatmapLabelFormatters(),new V(this.w).getLargestMarkerSize();let h=this.dimensions.plotCoords();this._writeLayoutCoords(h.layout);let g=this.core.xySettings();(a=this.weave)==null||a.dispatch(`afterScales`,{xyRatios:g}),this.grid.createGridMask();let _=this.core.plotChartType(u,g),v=new Ve(this.w,this);return v.bringForward(),c.config.dataLabels.background.enabled&&v.dataLabelsBackground(),this.core.shiftGraphPosition(),(s=(o=this.legend)==null?void 0:o.heatmapGradientLegend)==null||s.repositionToPlot(),c.globals.dataPoints>50&&c.dom.elWrap.classList.add(`apexcharts-disable-transitions`),{elGraph:_,xyRatios:g,dimensions:{plot:{left:c.layout.translateX,top:c.layout.translateY,width:c.layout.gridWidth,height:c.layout.gridHeight}}}}mount(e=null){let t=this,n=t.w;return new Promise((r,i)=>{var a,o,s,c,l,u,f,p,m,h;if(t.el===null)return i(Error(`Not enough data to display or target element not found`));n.globals.allSeriesCollapsed&&t.series.handleNoData(),t.grid=new Ge(t.w,t);let g=t.grid.drawGrid(),_=or._featureRegistry.get(`annotations`);if(t.annotations=_?new _(t.w,{theme:t.theme,timeScale:t.timeScale}):null,(a=t.annotations)==null||a.drawImageAnnos(),(o=t.annotations)==null||o.drawTextAnnos(),n.config.grid.position===`back`&&(g&&n.dom.elGraphical.add(g.el),(s=g==null?void 0:g.elGridBorders)!=null&&s.node&&n.dom.elGraphical.add(g.elGridBorders)),Array.isArray(e.elGraph))for(let t=0;t<e.elGraph.length;t++)n.dom.elGraphical.add(e.elGraph[t]);else n.dom.elGraphical.add(e.elGraph);n.config.grid.position===`front`&&(g&&n.dom.elGraphical.add(g.el),(c=g==null?void 0:g.elGridBorders)!=null&&c.node&&n.dom.elGraphical.add(g.elGridBorders)),n.config.xaxis.crosshairs.position===`front`&&t.crosshairs.drawXCrosshairs(),n.config.yaxis[0].crosshairs.position===`front`&&t.crosshairs.drawYCrosshairs(),n.config.chart.type!==`treemap`&&t.axes.drawAxis(n.config.chart.type,g);let v=new We(this.w,this.ctx,g),y=new Ye(this.w,{theme:this.theme,timeScale:this.timeScale},g);
1685if(g!==null&&(v.xAxisLabelCorrections(),y.setYAxisTextAlignments(),n.config.yaxis.map((e,t)=>{n.globals.ignoreYAxisIndexes.indexOf(t)===-1&&y.yAxisTitleRotate(t,e.opposite)})),(l=t.annotations)==null||l.drawAxesAnnotations(),!n.globals.noData){if(d.isBrowser()&&n.config.tooltip.enabled&&!n.globals.noData&&((u=t.w.globals.tooltip)==null||u.drawTooltip(e.xyRatios)),n.config.chart.accessibility.enabled&&n.config.chart.accessibility.keyboard.enabled&&n.config.chart.accessibility.keyboard.navigation.enabled&&((f=t.keyboardNavigation)==null||f.init()),d.isBrowser()&&n.globals.axisCharts&&(n.axisFlags.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.axisFlags.isRangeBar))(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&((p=t.zoomPanSelection)==null||p.init({xyRatios:e.xyRatios}));else{let e=n.config.chart.toolbar.tools;[`zoom`,`zoomin`,`zoomout`,`selection`,`pan`,`reset`].forEach(t=>{e[t]=!1})}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&((m=t.toolbar)==null||m.createToolbar())}(h=t.weave)==null||h.dispatch(`draw`,{pass:`full`,xyRatios:e==null?void 0:e.xyRatios}),n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach(e=>{e.method(e.params,!1,e.context)}),n.globals.axisCharts||n.globals.noData||t.core.resizeNonAxisCharts(),Hr(n,t),r(t)})}destroy(){var e;this.trellis&&this.trellis.teardown(),this._renderPromise=null,d.isBrowser()&&(window.removeEventListener(`resize`,this.windowResizeHandler),xr(this.el.parentNode,this.parentResizeHandler),clearTimeout((e=this.w.globals.resizeTimer)==null?void 0:e));let t=this.w.config.chart.id;var n;t&&Array.isArray(Apex._chartInstances)&&Apex._chartInstances.forEach((e,n)=>{e.id===x.escapeString(t)&&Apex._chartInstances.splice(n,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),Vr(this),n=this,Rr.delete(n),new sr(this.ctx).clear({isUpdating:!1})}updateOptions(t,n=!1,r=!0,i=!0,a=!0){let o=this.w;if(t&&`series`in t&&!Array.isArray(t.series)&&delete(t=s({},t)).series,this.trellis&&this.trellis._mounted)return this.opts=x.extend(this.opts||{},t||{}),this.w.config=x.extend(o.config,t||{}),this.trellis.teardown(),this.render();if(o.interact.selection=void 0,this.lastUpdateOptions){if(x.shallowEqual(this.lastUpdateOptions,t))return Promise.resolve(this);if(t.series&&this.lastUpdateOptions.series&&!e._optionsTooBigToCompare(t)&&x.stringifyForCompare(this.lastUpdateOptions.series)===x.stringifyForCompare(t.series)){let e=s({},t),n=s({},this.lastUpdateOptions);if(delete e.series,delete n.series,x.shallowEqual(e,n))return Promise.resolve(this)}}return t.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((e,t)=>this.updateHelpers._extendSeries(e,t))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,n,r,i,a)}updateSeries(e=[],t=!0,n=!0){return Array.isArray(e)?this.trellis&&this.trellis._mounted?this.trellis.updateSeries(e,t):(this.data.resetParsingFlags(),this.series.prepareDataUpdate(),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)):Promise.resolve(this)}appendSeries(e,t=!0,n=!0){this.data.resetParsingFlags();let r=this.w.config.series.slice();return r.push(e),this.series.prepareDataUpdate(),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}appendData(e,t=!0){let n=this;n.data.resetParsingFlags(),n.w.globals.dataChanged=!0,n.w.config.chart.animations.enabled&&n.series.getPreviousPaths();let r=n.w.globals.histogramRawSeries;if(r){for(let t=0;t<r.length;t++){let n=e[t];if(n&&Array.isArray(n.data)&&Array.isArray(r[t].data))for(let e=0;e<n.data.length;e++)r[t].data.push(n.data[e])}return this.update()}let i=n.w.config.series.slice();for(let t=0;t<i.length;t++)if(e[t]!==null&&e[t]!==void 0){let n=e[t],r=i[t];for(let e=0;e<n.data.length;e++)r.data.push(n.data[e])}return function(e,t){let n=t.config.chart.streaming;if(!n||!n.enabled)return;let r=n.maxPoints,i=t.config.xaxis.range,a=e=>
1685e==null?null:Array.isArray(e)?typeof e[0]==`number`?e[0]:null:typeof e==`object`&&typeof e.x==`number`?e.x:null;e.forEach(e=>{var t;let n=e==null?void 0:e.data;if(!Array.isArray(n)||n.length<2)return;if(typeof r==`number`&&r>0)return void(n.length>r&&(e.data=n.slice(n.length-r)));if(!i)return;let o=a(n[n.length-1]),s=a(n[0]);if(o==null||s==null||o<=s)return;let c=(o-s)/(n.length-1),l=o-i-2*c,u=0;for(;u<n.length&&((t=a(n[u]))==null?l:t)<l;)u++;u>0&&(e.data=n.slice(u))})}(i,n.w),n.w.config.series=i,t&&(n.w.globals.initialSeries=n.w.config.series),this.update()}static _optionsTooBigToCompare(e){let t=e&&e.series;if(!Array.isArray(t))return!1;let n=0;for(let e=0;e<t.length;e++){let r=t[e]&&t[e].data;if(n+=Array.isArray(r)?r.length:1,n>1e3)return!0}return!1}update(t){return new Promise((n,r)=>{if(t&&this.lastUpdateOptions&&!e._optionsTooBigToCompare(t)&&x.stringifyForCompare(this.lastUpdateOptions)===x.stringifyForCompare(t))return n(this);this.lastUpdateOptions=t&&!e._optionsTooBigToCompare(t)?x.clone(t):null,new sr(this.ctx).clear({isUpdating:!0});let i=this.create(this.w.config.series,t==null?{}:t);if(!i)return n(this);this.mount(i).then(()=>{var e;(e=this.morphTypeChange)==null||e.applyChromeFade(),Nt(this.w),Ht(this.w),typeof this.w.config.chart.events.updated==`function`&&this.w.config.chart.events.updated(this,this.w),this.events.fireEvent(`updated`,[this,this.w]),this.w.globals.isDirty=!0,n(this)}).catch(e=>{r(e)})})}_fastAxisChromeRefresh(e){let t=this.w,n=t.globals;this._fastAxisBailReason=``;try{if(n.isBarHorizontal)return this._fastAxisBailReason=`barHorizontal`,!1;if(t.config.chart.sparkline.enabled)return!0;let e=t.config.annotations;if(e&&(e.yaxis&&e.yaxis.length||e.xaxis&&e.xaxis.length||e.points&&e.points.length||e.texts&&e.texts.length||e.images&&e.images.length))return this._fastAxisBailReason=`annotations`,!1;if(t.config.chart.ink&&t.config.chart.ink.enabled)return this._fastAxisBailReason=`ink`,!1;let r=this.dimensions;if(!r||!r.dimYAxis)return this._fastAxisBailReason=`noDimensions`,!1;let i=t.layout.yLabelsCoords,a=t.layout.yTitleCoords,o=r.dimYAxis.getyAxisLabelsCoords(),s=r.dimYAxis.getyAxisTitleCoords();t.layout.yLabelsCoords=[],t.layout.yTitleCoords=[],t.config.yaxis.map((e,n)=>{t.layout.yLabelsCoords.push({width:o[n].width,index:n}),t.layout.yTitleCoords.push({width:s[n].width,index:n})});let c=r.dimYAxis.getTotalYAxisWidth();if(c>r.yAxisWidth+2)return t.layout.yLabelsCoords=i,t.layout.yTitleCoords=a,this._fastAxisBailReason=`labelWidth ${c} > ${r.yAxisWidth}`,!1;let l=t.dom.elGraphical.node,u=l.querySelector(`.apexcharts-grid`),d=l.querySelector(`.apexcharts-grid-borders`);if(!u)return this._fastAxisBailReason=`missingGridNode`,!1;let f=u.parentNode,p=d?d.nextSibling:u.nextSibling;u.remove(),d&&d.remove(),l.querySelectorAll(`.apexcharts-xaxis-tick`).forEach(e=>e.remove()),this.grid=new Ge(t,this);let m=this.grid.drawGrid();m&&m.el&&(f.insertBefore(m.el.node,p),m.elGridBorders&&m.elGridBorders.node&&f.insertBefore(m.elGridBorders.node,p));let h=new We(this.w,this.ctx,m),g=l.querySelector(`.apexcharts-xaxis`);if(g){let e=g.parentNode,t=g.nextSibling;g.remove();let n=h.drawXaxis();e.insertBefore(n.node,t)}let _=new Ye(this.w,{theme:this.theme,timeScale:this.timeScale},m);for(let e=0;e<t.config.yaxis.length;e++){if(n.ignoreYAxisIndexes.indexOf(e)!==-1)continue;let r=t.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}']`);if(!r)return this._fastAxisBailReason=`missingYAxisNode`,!1;let i=r.parentNode;if(!i)return this._fastAxisBailReason=`missingYAxisParent`,!1;let a=r.nextSibling;r.remove();let o=_.drawYaxis(e);i.insertBefore(o.node,a)}return m!==null&&(h.xAxisLabelCorrections(),_.setYAxisTextAlignments(),t.config.yaxis.map((e,t)=>{n.ignoreYAxisIndexes.indexOf(t)===-1&&_.yAxisTitleRotate(t,e.opposite)})),!0}catch(e){return this._fastAxisBailReason=`error: `+(e&&e.message),!1}}fastUpdate(e,t){return new Promise((n,r)=>{var i,a,o;try{let s=this.w,c=s.globals;c.shouldAnimate=e,c.dataChanged=!0,c.animationEnded=!1,He.invalidateSelectors(s);let l=s.globals;l.maxY=-Number.MAX_VALUE,l.minY=Number.MIN_VALUE,l.minYArr=[],l.maxYArr=[],l.maxX=-Number.MAX_VALUE,l.minX=Number.MAX_VALUE,l.initialMaxX=-Number.MAX_VALUE,l.initialMinX=Number.MAX_VALUE,l.yAxisScale=[],l.xAxisScale=null,l.xAxisTicksPositions=[],l.xRange=0,l.yRange=[],l.zRange=0,l.xTickAmount=0,l.multiAxisTickAmount=0,l.pointsArray=[],l.barCanvasCoords=null,l.dataLabelsRects=[],l.lastDrawnDataLabelsIndexes=[],l.textRectsCache=new Map,l.domCache=new Map,l.cachedSelectors={},l.disableZoomIn=!1,l.disableZoomOut=!1,c.axisCharts&&(this.core.coreCalculations(),s.config.xaxis.type!==`category`&&this.formatters.setLabelFormatters()),this.formatters.heatmapLabelFormatters();let u=this.core.xySettings();this._zoomPanSelection&&(this._zoomPanSelection.xyRatios=u);let f=JSON.stringify({y:(c.yAxisScale||[]).map(e=>e?e.result:null),xMin:c.minX,xMax:c.maxX}),p=c.axisCharts&&t!=null&&f!==t;if(p&&!this._fastAxisChromeRefresh(u))return this._updateStats.full++,this.update().then(()=>n(this)).catch(r);p?this._updateStats.fastWithAxes++:this._updateStats.fast++,(i=this.weave)==null||i.dispatch(`afterScales`,{pass:`fast`,xyRatios:u});let m=this.ctx.renderer,h=!!(m&&m.kind===`canvas`&&m.canRepaintInPlace&&m.canRepaintInPlace());h&&(m._repaintHostInPlace=!0);let g=s.dom.elGraphical.node;g.querySelectorAll((h?``:`.apexcharts-canvas-series-wrap, `)+`.apexcharts-plot-series, .apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background`).forEach(e
1685=>{var t;return(t=e.parentNode)==null?void 0:t.removeChild(e)});let _=this.core.plotChartType(s.config.series,u),v=g.querySelector(`.apexcharts-grid`),y=g.querySelector(`.apexcharts-xaxis`),b=Array.isArray(_)?_:[_],x=v&&s.config.grid.position===`front`?v:y;x?b.forEach(e=>{let t=e&&e.node?e.node:e;t&&g.insertBefore(t,x)}):b.forEach(e=>{s.dom.elGraphical.add(e)});let S=new Ve(s,this);S.bringForward(),s.config.dataLabels.background.enabled&&S.dataLabelsBackground(),c.streamScrolled||Nt(s),Ht(s),d.isBrowser()&&s.config.tooltip.enabled&&!c.noData&&((a=s.globals.tooltip)==null||a.drawTooltip(u)),(o=this.weave)==null||o.dispatch(`draw`,{pass:`fast`,xyRatios:u}),typeof s.config.chart.events.updated==`function`&&s.config.chart.events.updated(this,s),this.events.fireEvent(`updated`,[this,s]),Hr(s,this),c.isDirty=!0,n(this)}catch(e){r(e)}})}getSyncedCharts(){let e=this.getGroupedCharts();return e.splice(0,0,this),e}getPanels(){return this.trellis?this.trellis.getPanels():[]}getPanel(e){return this.trellis?this.trellis.getPanel(e):null}getGroupedCharts(){return Apex._chartInstances.filter(e=>this!==e.chart&&!!this.w.config.chart.group&&this.w.config.chart.group===e.group).map(e=>e.chart)}static getChartByID(e){let t=x.escapeString(e);if(!Apex._chartInstances)return;let n=Apex._chartInstances.filter(e=>e.id===t)[0];return n&&n.chart}static trellis(t,n){if(!or._featureRegistry.get(`trellis`))return null;let r=new e(t,n);return r.render(),r}static initOnLoad(){var t;let n=document.querySelectorAll(`[data-apexcharts]`);for(let r=0;r<n.length;r++){let i=n[r],a=JSON.parse((t=n[r].getAttribute(`data-options`))==null?``:t);new e(i,a).render()}}static exec(e,t,...n){let r=this.getChartByID(e);if(!r)return;r.w.globals.isExecCalled=!0;let i=null;return r.publicMethods.indexOf(t)!==-1&&(i=r[t](...n)),i}static merge(e,t){return x.extend(e,t)}static getThemePalettes(){return{palette1:[`#008FFB`,`#00A86F`,`#CA8501`,`#FF4560`,`#846DD5`],palette2:[`#6978CB`,`#039DE2`,`#49A84D`,`#B39105`,`#D68000`],palette3:[`#209FCC`,`#648291`,`#D4526E`,`#0FA783`,`#A19285`],palette4:[`#2FA59D`,`#73A20B`,`#099DE1`,`#FD5D5D`,`#648291`],palette5:[`#2B908F`,`#F56566`,`#2EAB16`,`#FA4443`,`#1EA2BD`],palette6:[`#449DD1`,`#F86624`,`#EA3A4A`,`#9C63D1`,`#899E2A`],palette7:[`#DF475B`,`#1B998B`,`#7E75B7`,`#F46036`,`#B1911B`],palette8:[`#9C63D1`,`#F86624`,`#B38F04`,`#EA3A4A`,`#2FA2B3`],palette9:[`#98776F`,`#A19285`,`#A8705E`,`#BA6560`,`#A0927F`],palette10:[`#C91EFF`,`#A94BFD`,`#6C6AFE`,`#2983FF`,`#009ED8`],cvdDeuteranopia:[`#0072B2`,`#E69F00`,`#56B4E9`,`#009E73`,`#F0E442`,`#D55E00`,`#CC79A7`],cvdProtanopia:[`#0077BB`,`#EE7733`,`#009988`,`#EE3377`,`#BBBBBB`,`#33BBEE`,`#CC3311`],cvdTritanopia:[`#CC3311`,`#009988`,`#EE7733`,`#0077BB`,`#EE3377`,`#BBBBBB`,`#33BBEE`],highContrast:[`#005A9C`,`#C00000`,`#007A33`,`#6C3483`,`#7B3F00`,`#0097A7`,`#4A235A`]}}static use(e){_n(e)}static registerFeatures(e){or.registerFeatures(e)}static setLicense(t){return Ar.setLicense(t),Ur(),e}static registerPlugin(t){return function(e){e&&typeof e.name==`string`&&typeof e.setup==`function`&&(vr()[e.name]=e)}(t),e}static unregisterPlugin(t){return function(e){delete vr()[e]}(t),e}static registerRenderer(e,t){Un.registerRenderer(e,t)}static registerSeriesType(t,n){let r=e._customSeriesFactory;return r&&n&&typeof n.renderItem==`function`?(i=t,mn()[i]&&!gn(t)||(_n({[t]:r(t,n)}),function(e){hn().add(e)}(t)),e):e;var i}static unregisterSeriesType(t){return gn(t)&&function(e){delete mn()[e],hn().delete(e)}(t),e}static registerTheme(t,n){return function(e,t){e&&typeof e==`string`&&(t==null||typeof t==`object`&&!Array.isArray(t))&&(Wt()[e]=t||{})}(t,n),e}static unregisterTheme(t){return function(e){e&&delete Wt()[e]}(t),e}static registerEasing(t,n){return function(e,t){typeof e==`string`&&e&&typeof t==`function`&&W.set(e,t)}(t,n),e}static registerUnitLayout(t,n){return function(e,t){e&&typeof e==`string`&&typeof t==`function`&&(lr()[e]=t)}(t,n),e}static unregisterUnitLayout(t){return function(e){delete lr()[e]}(t),e}static registerUnitMark(t,n){return function(e,t){if(!e||typeof e!=`string`)return;let n=fr(t,e);n&&(dr()[e]=n)}(t,n),e}static unregisterUnitMark(t){return function(e){delete dr()[e]}(t),e}static registerRowSource(t,n){return hr(t,n),e}static unregisterRowSource(t){return function(e){delete mr()[e]}(t),e}rowSeries(e){let t=function(e){let t=e&&e.config&&e.config.chart;return t?gr(t.requestedType)||gr(t.type):null}(this.w);return t&&t(this.w,e)||null}static crossfilter(t){if(!t||typeof t.id!=`string`)throw Error(`ApexCharts.crossfilter requires an { id } string.`);let n=e._crossfilterFactory;if(!n)return null;let r=n(t);
1685return Ur(),r}static getCrossfilter(t){let n=e._crossfilterGet;return n?n(t):null}clearCrossfilter(){var e;(e=this.linkedViews)==null||e.clearGroup()}startMeasure(){var e;(e=this.measure)==null||e.startMeasure()}stopMeasure(){var e;(e=this.measure)==null||e.stopMeasure()}clearMeasures(){var e;(e=this.measure)==null||e.clearMeasures()}toggleSeries(e){return this.series.toggleSeries(e)}highlightSeriesOnLegendHover(e,t){return this.series.toggleSeriesOnHover(e,t)}showSeries(e){this.series.showSeries(e)}hideSeries(e){this.series.hideSeries(e)}highlightSeries(e){this.series.highlightSeries(e)}isSeriesHidden(e){return this.series.isSeriesHidden(e)}resetSeries(e=!0,t=!0){this.series.resetSeries(e,t)}addEventListener(e,t){this.events.addEventListener(e,t)}removeEventListener(e,t){this.events.removeEventListener(e,t)}addXaxisAnnotation(e,t=!0,n=void 0){var r;let i=this;n&&(i=n),(r=i.annotations)==null||r.addXaxisAnnotationExternal(e,t,i)}addYaxisAnnotation(e,t=!0,n=void 0){var r;let i=this;n&&(i=n),(r=i.annotations)==null||r.addYaxisAnnotationExternal(e,t,i)}addPointAnnotation(e,t=!0,n=void 0){var r;let i=this;n&&(i=n),(r=i.annotations)==null||r.addPointAnnotationExternal(e,t,i)}clearAnnotations(e=void 0){var t;let n=this;e&&(n=e),n.lastUpdateOptions=null,(t=n.annotations)==null||t.clearAnnotations(n)}removeAnnotation(e,t=void 0){var n;let r=this;t&&(r=t),r.lastUpdateOptions=null,(n=r.annotations)==null||n.removeAnnotation(r,e)}getChartArea(){return this.w.dom.baseEl.querySelector(`.apexcharts-inner`)}getSeriesTotalXRange(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}getHighestValueInSeries(e=0){return new qe(this.w).getMinYMaxY(e).highestY}getLowestValueInSeries(e=0){return new qe(this.w).getMinYMaxY(e).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){let e=this.w,t=e.globals;return{series:e.seriesData.series,seriesNames:e.seriesData.seriesNames,colors:t.colors,labels:e.labelData.labels,seriesTotals:t.seriesTotals,seriesPercent:t.seriesPercent,seriesXvalues:t.seriesXvalues,seriesYvalues:t.seriesYvalues,minX:t.minX,maxX:t.maxX,minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,minXDiff:t.minXDiff,dataPoints:t.dataPoints,xAxisScale:t.xAxisScale,yAxisScale:t.yAxisScale,xTickAmount:t.xTickAmount,isXNumeric:e.axisFlags.isXNumeric,seriesYAxisMap:t.seriesYAxisMap,seriesYAxisReverseMap:t.seriesYAxisReverseMap,svgWidth:t.svgWidth,svgHeight:t.svgHeight,gridWidth:e.layout.gridWidth,gridHeight:e.layout.gridHeight,selectedDataPoints:e.interact.selectedDataPoints,collapsedSeriesIndices:t.collapsedSeriesIndices,zoomed:e.interact.zoomed,seriesX:e.seriesData.seriesX,seriesZ:e.seriesData.seriesZ,seriesCandleO:e.candleData.seriesCandleO,seriesCandleH:e.candleData.seriesCandleH,seriesCandleM:e.candleData.seriesCandleM,seriesCandleL:e.candleData.seriesCandleL,seriesCandleC:e.candleData.seriesCandleC,seriesRangeStart:e.rangeData.seriesRangeStart,seriesRangeEnd:e.rangeData.seriesRangeEnd,seriesGoals:e.seriesData.seriesGoals}}toggleDataPointSelection(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}zoomX(e,t){var n;(n=this.ctx.toolbar)==null||n.zoomUpdateOptions(e,t)}setLocale(e){this.localization.setCurrentLocaleValues(e)}dataURI(e){if(!this.ctx.exports)throw Error(`apexcharts: Exports feature is not registered. Import apexcharts/features/exports.`);return this.trellis&&this.trellis._mounted?this.trellis.exports.dataURI(e):this.ctx.exports.dataURI(e)}getSvgString(e){if(!this.ctx.exports)throw Error(`apexcharts: Exports feature is not registered. Import apexcharts/features/exports.`);return this.trellis&&this.trellis._mounted?this.trellis.exports.svgString():this.ctx.exports.getSvgString(e)}exportToCSV(e={}){if(!this.ctx.exports)throw Error(`apexcharts: Exports feature is not registered. Import apexcharts/features/exports.`);return this.trellis&&this.trellis._mounted?this.trellis.exports.download(`csv`):this.ctx.exports.exportToCSV(e)}promotePanel(e){return this.trellis&&this.trellis._mounted?this.trellis.promote(e):Promise.resolve()}restorePanels(){return this.trellis&&this.trellis._mounted?this.trellis.restorePromotion():Promise.resolve()}paper(){return this.w.dom.Paper}getActiveRenderer(){return this.rendererController?this.rendererController.getActiveKind():`svg`}refreshTokens(){return this.lastUpdateOptions=null,this.update()}drillDown(e){if(!this.ctx.drilldown)throw Error(`apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.`);return this.ctx.drilldown.drillDown(e)}drillUp(){if(!this.ctx.drilldown)throw Error(`apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.`);return this.ctx.drilldown.drillUp()}drillToRoot(){if(!this.ctx.drilldown)throw Error(`apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.`);return this.ctx.drilldown.drillToRoot()}clearDrilldownCache(e){if(!this.ctx.drilldown)throw Error(`apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.`);return this.ctx.drilldown.clearCache(e)}static _writeDataProps(e,t){for(let n of Object.keys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r&&`value`in r&&(e[n]=r.value)}}
1685_writeParsedSeriesData(t){e._writeDataProps(this.w.seriesData,t)}_writeParsedRangeData(t){e._writeDataProps(this.w.rangeData,t)}_writeParsedCandleData(t){e._writeDataProps(this.w.candleData,t)}_writeParsedLabelData(t){e._writeDataProps(this.w.labelData,t)}_writeParsedAxisFlags(t){e._writeDataProps(this.w.axisFlags,t)}_writeLayoutCoords(t){e._writeDataProps(this.w.layout,t)}_parentResizeCallback(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}_windowResize(){this.w.globals.resizeTimer=window.setTimeout(()=>{let e=this.w.globals;if(this.core&&e.lastResizeSignature){let t=this.core.getResizeSignature();if(t.w===e.lastResizeSignature.w&&t.h===e.lastResizeSignature.h&&t.iw===e.lastResizeSignature.iw)return}e.resized=!0,e.dataChanged=!1,this.ctx.update()},150)}_windowResizeHandler(){var e;clearTimeout((e=this.w.globals.resizeTimer)==null?void 0:e);let{redrawOnWindowResize:t}=this.w.config.chart;typeof t==`function`&&(t=t()),t&&this._windowResize()}};l(Wr,`perspectives`,null);let Gr=Wr,Kr=Object.freeze(Object.defineProperty({__proto__:null,__apex_Animations:Ne,__apex_Animations_applyAnimationPolicy:je,__apex_Animations_applyProgressiveReveal:Ae,__apex_Animations_computeStagger:Me,__apex_Animations_prefersReducedMotion:ke,__apex_Base:te,__apex_BrowserAPIs_BrowserAPIs:v,__apex_ChartFactory_getChartClass:Y,__apex_ChartFactory_isCustom:gn,__apex_ChartFactory_register:_n,__apex_Config:L,__apex_Constants_LINE_HEIGHT_RATIO:R,__apex_Constants_NICE_SCALE_ALLOWED_MAG_MSD:z,__apex_Constants_NICE_SCALE_DEFAULT_TICKS:ee,__apex_Core:vn,__apex_CoreUtils:V,__apex_Crosshairs:$e,__apex_DOMShim_SSRClassList:p,__apex_DOMShim_SSRDOMShim:m,__apex_DOMShim_SSRElement:f,__apex_Data:kn,__apex_DataLabels:Ve,__apex_DateTime:S,__apex_Defaults:I,__apex_Environment_Environment:d,__apex_Events:Xe,__apex_Fill:Pe,__apex_Filters:G,__apex_Formatters:C,__apex_Globals:B,__apex_Graphics:K,__apex_Markers:Re,__apex_Options:T,__apex_PathMorphing_arrayToPath:oe,__apex_PathMorphing_morphPaths:fe,__apex_PathMorphing_parsePath:ie,__apex_PathMorphing_pathBbox:ae,__apex_PerformanceCache:He,__apex_Range:qe,__apex_Resize_addResizeListener:br,__apex_Resize_removeResizeListener:xr,__apex_Responsive:tt,__apex_SVGAnimation_SVGAnimationRunner:be,__apex_SVGAnimation_installAnimationMethods:xe,__apex_SVGContainer:Yn,__apex_SVGDraggable_installDraggable:nr,__apex_SVGElement:Q,__apex_SVGFilter_FilterBuilder:er,__apex_SVGFilter_SVGFilter:$n,__apex_SVGFilter_installFilterMethods:tr,__apex_SVGGradient_SVGGradient:Gn,__apex_SVGPattern_SVGPattern:Jn,__apex_SVGSelectable_installSelectable:rr,__apex_Scales:Ke,__apex_Series:q,__apex_Theme:Jt,__apex_ThemePalettes_getThemePalettes:Je,__apex_TimeScale:dn,__apex_TitleSubtitle:Yt,__apex_Utils:x,__apex_axes_Axes:Qe,__apex_axes_AxesUtils:Ue,__apex_axes_Grid:Ge,__apex_axes_XAxis:We,__apex_axes_YAxis:Ye,__apex_charts_Scatter:ze,__apex_dimensions_Dimensions:on,__apex_dimensions_Grid:$t,__apex_dimensions_Helpers:Xt,__apex_dimensions_XAxis:Zt,__apex_dimensions_YAxis:Qt,__apex_helpers_Destroy:sr,__apex_helpers_InitCtxVariables:or,__apex_helpers_Localization:Ze,__apex_helpers_UpdateHelpers:An,__apex_index_Box:re,__apex_index_SVG:ir,__apex_math_Box:re,__apex_math_Matrix:ne,__apex_math_Point:U,__apex_math_SVGNS:H,__apex_tooltip_AxesTooltip:Rn,__apex_tooltip_Intersect:Ln,__apex_tooltip_Labels:Nn,__apex_tooltip_Marker:In,__apex_tooltip_Position:Pn,__apex_tooltip_Tooltip:zn,__apex_tooltip_Utils:Mn,default:Gr},Symbol.toStringTag,{value:`Module`}));class qr{constructor(e,t){this.w=e,this.ctx=t}svgStringToNode(e){return new DOMParser().parseFromString(e,`image/svg+xml`).documentElement}scaleSvgNode(e,t){let n=parseFloat(e.getAttributeNS(null,`width`)),r=parseFloat(e.getAttributeNS(null,`height`));e.setAttributeNS(null,`width`,n*t),e.setAttributeNS(null,`height`,r*t),e.setAttributeNS(null,`viewBox`,`0 0 `+n+` `+r)}inlineCanvasLayers(e){let t=this.w.dom.elWrap.querySelectorAll(`.apexcharts-series-canvas`);if(!t.length)return;let n=e.querySelectorAll(`.apexcharts-canvas-series`);for(let e=0;e<t.length&&e<n.length;e++){let r;try{r=t[e].toDataURL()}catch(e){continue}let i=n[e],a=document.createElementNS(H,`image`);a.setAttribute(`x`,i.getAttribute(`x`)||`0`),a.setAttribute(`y`,i.getAttribute(`y`)||`0`),a.setAttribute(`width`,i.getAttribute(`width`)||`0`),a.setAttribute(`height`,i.getAttribute(`height`)||`0`),a.setAttribute(`href`,r),a.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,r),i.parentNode&&i.parentNode.replaceChild(a,i)}}queryStyleable(e,t){return Array.prototype.slice.call(e.querySelectorAll(t))}setStyleDefaults(e,t){Object.keys(t).forEach(n=>{e.style.getPropertyValue(n)===``&&e.style.setProperty(n,t[n])})}applyExportStyles(e){let t=this.w;
1685this.queryStyleable(e,`style`).forEach(e=>e.remove()),this.queryStyleable(e,[`.apexcharts-tooltip`,`.apexcharts-toolbar`,`.apexcharts-xaxistooltip`,`.apexcharts-yaxistooltip`,`.apexcharts-xcrosshairs`,`.apexcharts-ycrosshairs`,`.apexcharts-zoom-rect`,`.apexcharts-selection-rect`].join(`, `)).forEach(e=>{e.style.setProperty(`display`,`none`,`important`)}),this.queryStyleable(e,`.apexcharts-flip-y`).forEach(e=>{this.setStyleDefaults(e,{transform:`scaleY(-1) translateY(-100%)`,"transform-origin":`top`,"transform-box":`fill-box`})}),this.queryStyleable(e,`.apexcharts-flip-x`).forEach(e=>{this.setStyleDefaults(e,{transform:`scaleX(-1)`,"transform-origin":`center`,"transform-box":`fill-box`})}),t.config.legend.show&&t.dom.elLegendWrap&&t.dom.elLegendWrap.children.length&&(this.queryStyleable(e,`.apexcharts-legend`).forEach(e=>{this.setStyleDefaults(e,{display:`flex`,overflow:`auto`,padding:`0 10px`});let t=e.classList,n=t.contains(`apx-legend-position-left`)||t.contains(`apx-legend-position-right`),r=t.contains(`apx-legend-position-top`)||t.contains(`apx-legend-position-bottom`);t.contains(`apexcharts-legend-group-horizontal`)&&this.setStyleDefaults(e,{"flex-direction":`column`}),n&&this.setStyleDefaults(e,{"flex-direction":`column`,bottom:`0`}),r&&this.setStyleDefaults(e,{"flex-wrap":`wrap`}),n||r&&t.contains(`apexcharts-align-left`)?this.setStyleDefaults(e,{"justify-content":`flex-start`,"align-items":`flex-start`}):r&&t.contains(`apexcharts-align-center`)?this.setStyleDefaults(e,{"justify-content":`center`,"align-items":`center`}):r&&t.contains(`apexcharts-align-right`)&&this.setStyleDefaults(e,{"justify-content":`flex-end`,"align-items":`flex-end`})}),this.queryStyleable(e,`.apexcharts-legend-group`).forEach(e=>{this.setStyleDefaults(e,{display:`flex`})}),this.queryStyleable(e,`.apexcharts-legend-group-vertical`).forEach(e=>{this.setStyleDefaults(e,{"flex-direction":`column-reverse`})}),this.queryStyleable(e,`.apexcharts-legend-series`).forEach(e=>{this.setStyleDefaults(e,{cursor:e.classList.contains(`apexcharts-no-click`)?`auto`:`pointer`,"line-height":`normal`,display:`flex`,"align-items":`center`})}),this.queryStyleable(e,`.apexcharts-legend-text`).forEach(e=>{this.setStyleDefaults(e,{position:`relative`,"font-size":`14px`})}),this.queryStyleable(e,`.apexcharts-legend-marker`).forEach(e=>{this.setStyleDefaults(e,{position:`relative`,display:`flex`,"align-items":`center`,"justify-content":`center`,cursor:`pointer`,"margin-right":`1px`})}),this.queryStyleable(e,`.apexcharts-inactive-legend`).forEach(e=>{this.setStyleDefaults(e,{opacity:`0.45`})}),this.queryStyleable(e,`.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series`).forEach(e=>{e.style.setProperty(`display`,`none`,`important`)}))}resolveExportBackground(){let e=this.w,t=e.config.chart.background;return t&&t!==`transparent`?t:e.config.theme.mode===`dark`?`#343A3F`:`#fff`}collectFontFamilies(){let e=new Set,t=this.w;if(!d.isBrowser()||!t.dom.elWrap)return e;let n=this.queryStyleable(t.dom.elWrap,`text, tspan, .apexcharts-legend-text, .apexcharts-title-text, .apexcharts-subtitle-text`);return[t.dom.elWrap,...n].forEach(t=>{let n=v.getComputedStyle(t),r=n&&n.fontFamily;r&&r.split(`,`).forEach(t=>{let n=t.trim().replace(/^['"]|['"]$/g,``);n&&e.add(n.toLowerCase())})}),e}collectFontFaceRules(){if(!d.isBrowser())return Promise.resolve([]);let e=[],t=[],n=t=>{(t.match(/@font-face\s*\{[^}]*\}/gi)||[]).forEach(t=>{let n=t.match(/font-family\s*:\s*([^;}]+)/i);if(!n)return;let r=n[1].trim().replace(/^['"]|['"]$/g,``);e.push({family:r.toLowerCase(),css:t})})};return Array.from(document.styleSheets||[]).forEach(e=>{let r=null;try{r=e.cssRules}catch(e){r=null}r?Array.from(r).forEach(e=>{e.type===5&&e.cssText&&n(e.cssText)}):e.href&&t.push(fetch(e.href).then(e=>e.ok?e.text():``).then(n).catch(()=>{}))}),Promise.all(t).then(()=>e)}embedFonts(e){let t=this.w;if(!d.isBrowser()||!t.config.chart.toolbar.export.embedFonts||typeof fetch!=`function`)return Promise.resolve();let n=this.collectFontFamilies();return n.size?this.collectFontFaceRules().then(e=>{let t=e.filter(e=>n.has(e.family));return t.length?Promise.all(t.map(e=>
1685this.inlineFontFaceUrls(e.css).catch(()=>null))):Promise.resolve([])}).then(t=>{let n=(t||[]).filter(Boolean).join(`
1686`);if(!n)return;let r=document.createElementNS(H,`style`);r.textContent=n,e.insertBefore(r,e.firstChild)}).catch(()=>{}):Promise.resolve()}inlineFontFaceUrls(e){let t=[],n=/url\(\s*(['"]?)([^'")]+)\1\s*\)/gi,r;for(;(r=n.exec(e))!==null;)r[2].startsWith(`data:`)||t.push(r[2]);return t.length?Promise.all(t.map(e=>this.fetchAsDataUri(e).then(t=>({url:e,dataUri:t})).catch(()=>({url:e,dataUri:null})))).then(t=>{let n=e,r=0;return t.forEach(({url:e,dataUri:t})=>{t&&(n=n.split(e).join(t),r++)}),r?n:null}):Promise.resolve(e.includes(`data:`)?e:null)}fetchAsDataUri(e){return typeof fetch!=`function`||typeof btoa!=`function`?Promise.reject(Error(`fetch unavailable`)):fetch(e).then(t=>{if(!t.ok)throw Error(`HTTP ${t.status} for ${e}`);let n=t.headers.get(`content-type`)||`application/octet-stream`;return t.arrayBuffer().then(e=>{let t=new Uint8Array(e),r=``;for(let e=0;e<t.length;e+=32768)r+=String.fromCharCode.apply(null,t.subarray(e,e+32768));return`data:${n};base64,${btoa(r)}`})})}getSvgString(e){return new Promise(t=>{let n=this.w,r=e||n.config.chart.toolbar.export.scale||n.config.chart.toolbar.export.width/n.globals.svgWidth;r||(r=1);let i=n.globals.svgWidth*r,a=n.globals.svgHeight*r,o=n.dom.elWrap.cloneNode(!0);o.style.width=i+`px`,o.style.height=a+`px`,this.inlineCanvasLayers(o),this.applyExportStyles(o);let s=new XMLSerializer().serializeToString(o),c=`\n        <svg xmlns="http://www.w3.org/2000/svg"\n          version="1.1"\n          xmlns:xlink="http://www.w3.org/1999/xlink"\n          class="apexcharts-svg"\n          xmlns:data="ApexChartsNS"\n          transform="translate(0, 0)"\n          width="${n.globals.svgWidth}px" height="${n.globals.svgHeight}px">\n          <foreignObject width="100%" height="100%">\n            <div xmlns="http://www.w3.org/1999/xhtml" style="width:${i}px; height:${a}px;">\n              ${s}\n            </div>\n          </foreignObject>\n        </svg>\n      `,l=this.svgStringToNode(c);r!==1&&this.scaleSvgNode(l,r),Promise.all([this.convertImagesToBase64(l),this.embedFonts(l)]).then(()=>{c=new XMLSerializer().serializeToString(l),t(c.replace(/&nbsp;/g,`&#160;`))})})}convertImagesToBase64(e){let t=`http://www.w3.org/1999/xlink`,n=e.getElementsByTagName(`image`),r=Array.from(n).map(e=>{let n=e.getAttributeNS(t,`href`),r=e.getAttribute(`href`),i=n||r;if(!i||i.startsWith(`data:`))return Promise.resolve();let a=i=>{n&&e.setAttributeNS(t,`href`,i),!r&&n||e.setAttribute(`href`,i)};return this.fetchAsDataUri(i).then(a).catch(()=>this.getBase64FromUrl(i).then(a).catch(e=>{}))});return Promise.all(r)}getBase64FromUrl(e){return d.isSSR()?Promise.resolve(e):new Promise((t,n)=>{let r=new Image;r.crossOrigin=`Anonymous`,r.onload=()=>{let e=document.createElement(`canvas`);e.width=r.width,e.height=r.height;let n=e.getContext(`2d`);n&&n.drawImage(r,0,0),t(e.toDataURL())},r.onerror=n,r.src=e})}svgUrl(){return new Promise(e=>{this.getSvgString().then(t=>{let n=new Blob([t],{type:`image/svg+xml;charset=utf-8`});e(URL.createObjectURL(n))})})}dataURI(e){return d.isSSR()?Promise.resolve({imgURI:``}):new Promise(t=>{let n=this.w,r=e?e.scale||e.width/n.globals.svgWidth:1,i=document.createElement(`canvas`);i.width=n.globals.svgWidth*r,i.height=parseInt(n.dom.elWrap.style.height,10)*r;let a=this.resolveExportBackground(),o=i.getContext(`2d`);o&&(o.fillStyle=a,o.fillRect(0,0,i.width,i.height),this.getSvgString(r).then(e=>{let n=`data:image/svg+xml,`+encodeURIComponent(e),r=new Image;r.crossOrigin=`anonymous`,r.onload=()=>{o.drawImage(r,0,0);let e=i;e.msToBlob?t({blob:e.msToBlob()}):t({imgURI:i.toDataURL(`image/png`)})},r.src=n}))})}exportToSVG(){this.svgUrl().then(e=>{this.triggerDownload(e,this.w.config.chart.toolbar.export.svg.filename,`.svg`)})}exportToPng(){let e=this.w.config.chart.toolbar.export.scale,t=this.w.config.chart.toolbar.export.width,n=e?{scale:e}:t?{width:t}:void 0;this.dataURI(n).then(({imgURI:e,blob:t})=>{t?navigator.msSaveOrOpenBlob(t,this.w.globals.chartID+`.png`):this.triggerDownload(e,this.w.config.chart.toolbar.export.png.filename,`.png`)})}exportToCSV({series:e,fileName:t,columnDelimiter:n=`,`,lineDelimiter:r=`
1687`}){let i=this.w;e||(e=i.config.series);let a=[],o=[],s=``,c=i.seriesData.series.map((e,t)=>i.globals.collapsedSeriesIndices.indexOf(t)===-1?e:[]),l=e=>{if(e==null||x.isNumber(e))return e;let t=String(e);return/^[=+\-@\t\r]/.test(t)?`'${t}`:t},u=e=>typeof i.config.chart.toolbar.export.csv.categoryFormatter==`function`?i.config.chart.toolbar.export.csv.categoryFormatter(e):i.config.xaxis.type===`datetime`&&String(e).length>=10?new Date(e).toDateString():x.isNumber(e)?e:l(e.split(n).join(``)),d=e=>typeof i.config.chart.toolbar.export.csv.valueFormatter==`function`?i.config.chart.toolbar.export.csv.valueFormatter(e):l(e),f=Math.max(...e.map(e=>e.data?e.data.length:0)),p=new kn(this.w),m=new Ue(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale}),h=e=>{let t=``;if(i.globals.axisCharts){if(i.config.xaxis.type===`category`||i.config.xaxis.convertedCatToNumeric){if(i.globals.isBarHorizontal){let n=i.formatters.yLabelFormatters[
16870],r=new q(this.ctx.w).getActiveConfigSeriesIndex();t=n(i.labelData.labels[e],{seriesIndex:r,dataPointIndex:e,w:i})}else t=m.getLabel(i.labelData.labels,i.labelData.timescaleLabels,0,e).text}i.config.xaxis.type===`datetime`&&(i.config.xaxis.categories.length?t=i.config.xaxis.categories[e]:i.config.labels.length&&(t=i.config.labels[e]))}else t=i.config.labels[e];return t===null?`nullvalue`:(Array.isArray(t)&&(t=t.join(` `)),x.isNumber(t)?t:t.split(n).join(``))},g=(t,r)=>{var s,l,m,g,_,v;if(a.length&&r===0&&o.push(a.join(n)),t.data){let y=t.data.length?t.data:[...Array(f)].map(()=>``);for(let f=0;f<y.length;f++){a=[];let y=h(f);if(y!==`nullvalue`){if(y||(p.isFormatXY()?y=e[r].data[f].x:p.isFormat2DArray()&&(y=e[r].data[f]?e[r].data[f][0]:``)),r===0){a.push(u(y));for(let t=0;t<i.seriesData.series.length;t++){let n=p.isFormatXY()?(s=e[t].data[f])==null?void 0:s.y:c[t][f];a.push(d(n))}}(i.config.chart.type===`candlestick`||t.type&&t.type===`candlestick`)&&(a.pop(),a.push(i.candleData.seriesCandleO[r][f]),a.push(i.candleData.seriesCandleH[r][f]),a.push(i.candleData.seriesCandleL[r][f]),a.push(i.candleData.seriesCandleC[r][f])),(i.config.chart.type===`boxPlot`||t.type&&t.type===`boxPlot`)&&(a.pop(),a.push(i.candleData.seriesCandleO[r][f]),a.push(i.candleData.seriesCandleH[r][f]),a.push(i.candleData.seriesCandleM[r][f]),a.push(i.candleData.seriesCandleL[r][f]),a.push(i.candleData.seriesCandleC[r][f])),i.config.chart.type===`rangeBar`&&(a.pop(),a.push(i.rangeData.seriesRangeStart[r][f]),a.push(i.rangeData.seriesRangeEnd[r][f])),(i.config.chart.type===`violin`||t.type&&t.type===`violin`)&&(a.pop(),a.push((l=i.violinData.seriesViolinMin[r])==null?void 0:l[f]),a.push((m=i.violinData.seriesViolinMax[r])==null?void 0:m[f]),a.push((v=(_=(g=i.violinData.seriesViolinPoints[r])==null?void 0:g[f])==null?void 0:_.length)==null?0:v)),a.length&&o.push(a.join(n))}}}};a.push(i.config.chart.toolbar.export.csv.headerCategory),i.config.chart.type===`boxPlot`?(a.push(`minimum`),a.push(`q1`),a.push(`median`),a.push(`q3`),a.push(`maximum`)):i.config.chart.type===`candlestick`?(a.push(`open`),a.push(`high`),a.push(`low`),a.push(`close`)):i.config.chart.type===`rangeBar`?(a.push(`minimum`),a.push(`maximum`)):i.config.chart.type===`violin`?(a.push(`minimum`),a.push(`maximum`),a.push(`observations`)):e.map((e,t)=>{let r=(e.name?e.name:`series-${t}`)+``;i.globals.axisCharts&&a.push(r.split(n).join(``)?r.split(n).join(``):`series-${t}`)}),i.globals.axisCharts||(a.push(i.config.chart.toolbar.export.csv.headerValue),o.push(a.join(n))),i.globals.allSeriesHasEqualX||!i.globals.axisCharts||i.config.xaxis.categories.length||i.config.labels.length?e.map((e,t)=>{i.globals.axisCharts?g(e,t):(a=[],a.push(u(i.labelData.labels[t])),a.push(d(c[t])),o.push(a.join(n)))}):(()=>{let t=new Set,r={};e.forEach((n,i)=>{n==null||n.data.forEach(n=>{let a,o;if(p.isFormatXY())a=n.x,o=n.y;else{if(!p.isFormat2DArray())return;a=n[0],o=n[1]}r[a]||(r[a]=Array(e.length).fill(``)),r[a][i]=d(o),t.add(a)})}),a.length&&o.push(a.join(n)),Array.from(t).sort().forEach(e=>{let t=r[e];o.push([u(e),...t].join(n))})})(),s+=o.join(r),this.triggerDownload(`data:text/csv; charset=utf-8,`+encodeURIComponent(``+s),t||i.config.chart.toolbar.export.csv.filename,`.csv`)}triggerDownload(e,t,n){if(d.isSSR())return;let r=document.createElement(`a`);r.href=e,r.download=(t||this.w.globals.chartID)+n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}Gr.registerFeatures({exports:qr});let Jr=class{constructor(e){this.w=e.w,this.lgCtx=e}getLegendStyles(){if(d.isSSR())return null;let e=document.createElement(`style`);e.setAttribute(`type`,`text/css`);let t=this.w.config.chart.nonce;t&&e.setAttribute(`nonce`,t);let n=document.createTextNode(`.apexcharts-flip-y {
1688  transform: scaleY(-1) translateY(-100%);
1689  transform-origin: top;
1690  transform-box: fill-box;
1691}
1692.apexcharts-flip-x {
1693  transform: scaleX(-1);
1694  transform-origin: center;
1695  transform-box: fill-box;
1696}
1697.apexcharts-legend {
1698  display: flex;
1699  overflow: auto;
1700  padding: 0 10px;
1701}
1702.apexcharts-legend.apexcharts-legend-group-horizontal {
1703  flex-direction: column;
1704}
1705.apexcharts-legend-group {
1706  display: flex;
1707}
1708.apexcharts-legend-group-vertical {
1709  flex-direction: column-reverse;
1710}
1711.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
1712  flex-wrap: wrap
1713}
1714.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
1715  flex-direction: column;
1716  bottom: 0;
1717}
1718.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
1719  justify-content: flex-start;
1720  align-items: flex-start;
1721}
1722.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
1723  justify-content: center;
1724  align-items: center;
1725}
1726.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
1727  justify-content: flex-end;
1728  align-items: flex-end;
1729}
1730.apexcharts-legend-series {
1731  cursor: pointer;
1732  line-height: normal;
1733  display: flex;
1734  align-items: center;
1735}
1736.apexcharts-legend-text {
1737  position: relative;
1738  font-size: 14px;
1739}
1740.apexcharts-legend-text *, .apexcharts-legend-marker * {
1741  pointer-events: none;
1742}
1743.apexcharts-legend-marker {
1744  position: relative;
1745  display: flex;
1746  align-items: center;
1747  justify-content: center;
1748  cursor: pointer;
1749  margin-right: 1px;
1750}
1751
1752.apexcharts-legend-series.apexcharts-no-click {
1753  cursor: auto;
1754}
1755.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
1756  display: none !important;
1757}
1758.apexcharts-inactive-legend {
1759  opacity: 0.45;
1760} `);return e.appendChild(n),e}getLegendDimensions(){let e=this.w.dom.baseEl.querySelector(`.apexcharts-legend`);
1760if(!e)return{clwh:0,clww:0};let{width:t,height:n}=e.getBoundingClientRect();return{clwh:n,clww:t}}appendToForeignObject(){var e;let t=this.getLegendStyles();!1!==this.w.config.chart.injectStyleSheet&&t&&((e=this.w.dom.elLegendForeign)==null||e.appendChild(t))}toggleDataSeries(e,t){var n,r,i;let a=this.w;if(a.globals.axisCharts||a.config.chart.type===`radialBar`){a.globals.resized=!0;let o=null,s=null;if(a.globals.risingSeries=[],a.globals.axisCharts){if(o=(n=Array.prototype.find.call(a.dom.baseEl.querySelectorAll(`.apexcharts-series`),t=>t.getAttribute(`data:realIndex`)===String(e)))==null?null:n,!o)return;s=parseInt((r=o.getAttribute(`data:realIndex`))==null?``:r,10)}else{if(o=a.dom.baseEl.querySelector(`.apexcharts-series[rel='${e+1}']`),!o)return;s=parseInt((i=o.getAttribute(`rel`))==null?``:i,10)-1}if(t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(e=>{let t=e.cs,n=e.csi;this.riseCollapsedSeries(t,n,s)}):this.hideSeries({seriesEl:o,realIndex:s}),a.config.chart.accessibility.enabled){let t=a.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){let n=a.globals.collapsedSeriesIndices.includes(s)||a.globals.ancillaryCollapsedSeriesIndices.includes(s);t.setAttribute(`aria-pressed`,n?`true`:`false`);let r=t.querySelector(`.apexcharts-legend-text`),i=r?r.textContent:a.seriesData.seriesNames[e],o=n?`hidden`:`visible`;t.setAttribute(`aria-label`,`${i}, ${o}. Press Enter or Space to toggle.`)}}}else{if(a.globals.resized=!0,a.globals.risingSeries=[],t)this.riseCollapsedSeries(a.globals.collapsedSeries,a.globals.collapsedSeriesIndices,e);else{let t=this.getSeriesAfterCollapsing({realIndex:e});this.lgCtx.updateSeries(t,a.config.chart.animations.dynamicAnimation.enabled)}if(a.config.chart.accessibility.enabled){let t=a.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){let n=a.globals.collapsedSeriesIndices.includes(e);t.setAttribute(`aria-pressed`,n?`true`:`false`);let r=t.querySelector(`.apexcharts-legend-text`),i=r?r.textContent:a.seriesData.seriesNames[e],o=n?`hidden`:`visible`;t.setAttribute(`aria-label`,`${i}, ${o}. Press Enter or Space to toggle.`)}}}}_nonAxisSliceContainer(e){let t=this.w.config.chart.type;return(t===`pie`||t===`donut`||t===`polarArea`||t===`sunburst`)&&e.length===1&&e[0]&&typeof e[0]==`object`&&Array.isArray(e[0].data)?e[0].data:e}_readSliceValue(e){return this.w.config.chart.type===`unit`&&e&&Array.isArray(e.data)?e.data:e&&typeof e==`object`?e.y:e}_writeSliceValue(e,t,n){let r=e[t];this.w.config.chart.type===`unit`&&r&&Array.isArray(r.data)?r.data=Array.isArray(n)?n:[]:r&&typeof r==`object`?r.y=n:e[t]=n}getSeriesAfterCollapsing({realIndex:e}){var t,n;let r=this.w,i=r.globals,a=x.clone(r.config.series);if(i.axisCharts){let t=r.config.yaxis[i.seriesYAxisReverseMap[e]],n={index:e,data:a[e].data.slice(),type:a[e].type||r.config.chart.type,name:(i.seriesNames||[])[e]};if(t&&t.show&&t.showAlways)i.ancillaryCollapsedSeriesIndices.indexOf(e)<0&&(i.ancillaryCollapsedSeries.push(n),i.ancillaryCollapsedSeriesIndices.push(e));else if(i.collapsedSeriesIndices.indexOf(e)<0){i.collapsedSeries.push(n),i.collapsedSeriesIndices.push(e);let t=i.risingSeries.indexOf(e);i.risingSeries.splice(t,1)}}else if(i.collapsedSeriesIndices.indexOf(e)<0){let o=this._nonAxisSliceContainer(a);i.collapsedSeries.push({index:e,data:this._readSliceValue(o[e]),type:(n=(t=r.config.series[e])==null?void 0:t.type)==null?`line`:n,name:(i.seriesNames||[])[e]}),i.collapsedSeriesIndices.push(e)}let o=i.axisCharts?r.config.series.length:this._nonAxisSliceContainer(a).length;return i.allSeriesCollapsed=i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===o,this._getSeriesBasedOnCollapsedState(a)}hideSeries({seriesEl:e,realIndex:t}){let n=this.w,r=this.getSeriesAfterCollapsing({realIndex:t}),i=e.childNodes;for(let e=0;e<i.length;e++)i[e].classList.contains(`apexcharts-series-markers-wrap`)&&(i[e].classList.contains(`apexcharts-hide`)?i[e].classList.remove(`apexcharts-hide`):i[e].classList.add(`apexcharts-hide`));let a=n.config.chart.animations.dynamicAnimation.enabled;a&&(n.globals.collapsingSeriesIndices=[t]);let o=()=>{n.globals.collapsingSeriesIndices=[]},s=this.lgCtx.updateSeries(r,a);o(),s&&typeof s.then==`function`&&s.then(o,o)}riseCollapsedSeries(e,t,n){let r=this.w,i=x.clone(r.config.series);if(e.length>0){for(let a=0;a<e.length;a++)if(e[a].index===n){if(r.globals.axisCharts)i[n].data=e[a].data.slice(),i[n].hidden=!1;else{let t=this._nonAxisSliceContainer(i);this._writeSliceValue(t,n,e[a].data)}e.splice(a,1),t.splice(a,1),r.globals.risingSeries.push(n),a--}i=this._getSeriesBasedOnCollapsedState(i),this.lgCtx.updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled)}}_getSeriesBasedOnCollapsedState(e){let t=this.w,n=0;if(t.globals.axisCharts)e.forEach((r,i)=>{t.globals.collapsedSeriesIndices.indexOf(i)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0||(e[i].data=[],n++)});else{let r=this._nonAxisSliceContainer(e);r.forEach((e,i)=>{t.globals.collapsedSeriesIndices.indexOf(i)<0||(this._writeSliceValue(r,i,0),n++)})}let r=t.globals.axisCharts?e.length:this._nonAxisSliceContainer(e).length;return t.globals.allSeriesCollapsed=n===r,e}}
1760,Yr=[`#cf4d3f`,`#8f9499`,`#26a75b`],Xr=(e,t,n)=>e+(t-e)*n;function Zr(e){return Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`)}function Qr(e,t,n){let r=x.parseHex($r(e)),i=x.parseHex($r(t));return r&&i?`#`+Zr(Xr(r[0],i[0],n))+Zr(Xr(r[1],i[1],n))+Zr(Xr(r[2],i[2],n)):e}function $r(e){return typeof e==`string`?x.isColorHex(e)?e:x.rgb2hex(e)||`#000000`:`#000000`}function ei(e,t,n){let r=e.config.series[t];return ti(e,r&&Array.isArray(r.data)?r.data[n]:null,t,n)}function ti(e,t,n,r){var i,a,o;if(!t||typeof t!=`object`)return null;let s=(o=(a=(i=e.config.plotOptions)==null?void 0:i.treemap)==null?void 0:a.colorScale)==null?void 0:o.colorValue,c;if(c=typeof s==`function`?s(t,{seriesIndex:n,dataPointIndex:r,w:e}):typeof s==`string`?t[s]:t.colorValue,c==null)return null;let l=Number(c);return Number.isFinite(l)?l:null}function ni(e){var t,n,r;let i=(r=(n=(t=e.config)==null?void 0:t.plotOptions)==null?void 0:n.treemap)==null?void 0:r.colorScale,a=i&&i.gradient;if(!a||!1===a.enabled)return null;let o=e.config.series||[],s=1/0,c=-1/0,l=!1;for(let t=0;t<o.length;t++){let n=o[t]&&o[t].data;if(Array.isArray(n))for(let r=0;r<n.length;r++){let i=ti(e,n[r],t,r);i!=null&&(l=!0,i<s&&(s=i),i>c&&(c=i))}}if(!l&&!0!==a.enabled)return null;Number.isFinite(s)||(s=0,c=0);let u=Number.isFinite(Number(a.min))?Number(a.min):s,d=Number.isFinite(Number(a.max))?Number(a.max):c,f=null;if(a.midpoint===null?f=null:Number.isFinite(Number(a.midpoint))?f=Number(a.midpoint):u<0&&d>0&&(f=0),f!=null&&!1!==a.symmetric&&!Number.isFinite(Number(a.min))&&!Number.isFinite(Number(a.max))){let e=Math.max(Math.abs(u-f),Math.abs(d-f));u=f-e,d=f+e}d===u&&(u-=.5,d+=.5);let p=function(e,t,n,r){if(Array.isArray(e.stops)&&e.stops.length>=2)return e.stops.filter(e=>e&&Number.isFinite(Number(e.value))).map(e=>({value:Number(e.value),color:$r(e.color)})).sort((e,t)=>e.value-t.value);let i=(Array.isArray(e.colors)&&e.colors.length>=2?e.colors:Yr).map($r),a=i.length;if(r!=null&&a>=3){let e=Math.floor((a-1)/2),o=[];for(let n=0;n<=e;n++)o.push({value:Xr(t,r,n/e),color:i[n]});for(let t=e+1;t<a;t++)o.push({value:Xr(r,n,(t-e)/(a-1-e)),color:i[t]});return o}return i.map((e,r)=>({value:Xr(t,n,r/(a-1)),color:e}))}(a,u,d,f);
1760if(p.length<2)return null;let m=d-u,h=p.map(e=>({percent:m===0?0:(e.value-u)/m,color:e.color}));return{min:u,max:d,midpoint:f,stops:p,at:e=>{if(!Number.isFinite(e))return p[Math.floor(p.length/2)].color;if(e<=p[0].value)return p[0].color;let t=p[p.length-1];if(e>=t.value)return t.color;for(let t=1;t<p.length;t++){let n=p[t];if(e<=n.value){let r=p[t-1],i=n.value-r.value,a=i===0?0:(e-r.value)/i;return Qr(r.color,n.color,a)}}return t.color},legendStops:h}}function ri(e){let t=$r(e);return x.getContrastRatio(t,`#ffffff`)>=x.getContrastRatio(t,`#000000`)?`#ffffff`:`#000000`}let ii=`http://www.w3.org/2000/svg`;class ai{constructor(e,t){this.w=e,this.ctx=t,this.svgEl=null,this.arrowEl=null,this.hoverValueEl=null,this._min=0,this._max=0,this._geom=null,this._bandHitEls=[],this._activeBandIndex=-1,this._targetEl=null,this._onCellEnter=this._onCellEnter.bind(this),this._onCellLeave=this._onCellLeave.bind(this),this._onBandEnter=this._onBandEnter.bind(this),this._onBandLeave=this._onBandLeave.bind(this)}_getFormatter(){let e=this._cfg();return typeof e.formatter==`function`?e.formatter:e=>{if(!Number.isFinite(e))return String(e);let t=Math.abs(e);return t>=1e3?e.toFixed(0):t>=10?e.toFixed(1):e.toFixed(2)}}static colorScaleOf(e){var t,n,r,i,a;let o=(n=(t=e==null?void 0:e.config)==null?void 0:t.chart)==null?void 0:n.type;return o&&((a=(i=(r=e==null?void 0:e.config)==null?void 0:r.plotOptions)==null?void 0:i[o])==null?void 0:a.colorScale)||null}static configFor(e){let t=ai.colorScaleOf(e);return t&&t.gradientLegend||null}_cfg(){return ai.configFor(this.w)||{}}static isEnabled(e){if(!ai.supports(e))return!1;let t=ai.configFor(e);return!(!t||!t.enabled)}static supports(e){var t,n;let r=(n=(t=e==null?void 0:e.config)==null?void 0:t.chart)==null?void 0:n.type;return r===`heatmap`||r===`treemap`}draw(e=null){var t,n,r,i,a,o,s,c;let l=this.w;this._targetEl=e;let u=e||l.dom.elLegendWrap;if(!u)return;let d=this._cfg(),f=l.config.legend.position,p=f===`left`||f===`right`,m=(n=(t=d.arrow)==null?void 0:t.size)==null?8:n,h=m+4,g=d.showLabels?28:4,_=d.showLabels?20:4,y=d.showLabels?44:0,b=this._resolveStripLength(p?d.height:d.width,p),x=d.thickness,S=p?Math.max(x+h+4,y):b+2*g,C=p?b+2*_:x+h+4,w=(S-(x+h))/2,T=p?f===`left`?w:w+h:g,E=p?_:f===`top`?h:4,D=v.createElementNS(ii,`svg`);D.setAttribute(`class`,`apexcharts-heatmap-gradient-legend apexcharts-gradient-legend`),D.setAttribute(`width`,String(S)),D.setAttribute(`height`,String(C)),D.setAttribute(`overflow`,`visible`);let O=v.createElementNS(ii,`defs`),k=`apexcharts-heatmap-gradient-${l.globals.cuid}`,A=v.createElementNS(ii,`linearGradient`);A.setAttribute(`id`,k),p?(A.setAttribute(`x1`,`0`),A.setAttribute(`y1`,`1`),A.setAttribute(`x2`,`0`),A.setAttribute(`y2`,`0`)):(A.setAttribute(`x1`,`0`),A.setAttribute(`y1`,`0`),A.setAttribute(`x2`,`1`),A.setAttribute(`y2`,`0`));let{min:j,max:M,stops:N,bands:P}=this._computeStops();this._min=j,this._max=M,N.forEach(e=>{let t=v.createElementNS(ii,`stop`);t.setAttribute(`offset`,`${(100*e.percent).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),A.appendChild(t)}),O.appendChild(A),D.appendChild(O);let F=v.createElementNS(ii,`rect`);if(F.setAttribute(`x`,String(T)),F.setAttribute(`y`,String(E)),F.setAttribute(`width`,String(p?x:b)),F.setAttribute(`height`,String(p?b:x)),F.setAttribute(`rx`,`2`),F.setAttribute(`fill`,`url(#${k})`),D.appendChild(F),d.showLabels){let e=((r=d.labelStyle)==null?void 0:r.colors)||(Array.isArray(l.config.legend.labels.colors)?l.config.legend.labels.colors[0]:l.config.legend.labels.colors)||l.config.chart.foreColor,t=((i=d.labelStyle)==null?void 0:i.fontSize)||`11px`,n=((a=d.labelStyle)==null?void 0:a.fontFamily)||l.config.chart.fontFamily,o=this._getFormatter(),s=(r,i,a,o)=>{let s=v.createElementNS(ii,`text`);return s.setAttribute(`x`,String(i)),s.setAttribute(`y`,String(a)),s.setAttribute(`text-anchor`,o),s.setAttribute(`dominant-baseline`,`middle`),s.setAttribute(`fill`,e),s.setAttribute(`font-size`,t),n&&s.setAttribute(`font-family`,n),s.textContent=String(r),s};if(p){let e=T+x/2;D.appendChild(s(o(j),e,E+b+10,`middle`)),D.appendChild(s(o(M),e,E-10,`middle`))}else{let e=E+x/2;D.appendChild(s(o(j),T-6,e,`end`)),D.appendChild(s(o(M),T+b+6,e,`start`))}}let I=((o=d.arrow)==null?void 0:o.color)||l.config.chart.foreColor,L=this._buildArrow(m,I,f);
1760if(D.appendChild(L),this.arrowEl=L,this._bandHitEls=[],l.config.legend.onItemHover.highlightDataSeries&&P.length>0&&P.forEach(e=>{let t=v.createElementNS(ii,`rect`);if(p){let n=E+b-e.p2*b,r=E+b-e.p1*b;t.setAttribute(`x`,String(T)),t.setAttribute(`y`,String(n)),t.setAttribute(`width`,String(x)),t.setAttribute(`height`,String(Math.max(0,r-n)))}else t.setAttribute(`x`,String(T+e.p1*b)),t.setAttribute(`y`,String(E)),t.setAttribute(`width`,String(Math.max(0,(e.p2-e.p1)*b))),t.setAttribute(`height`,String(x));t.setAttribute(`fill`,`transparent`),t.setAttribute(`class`,`apexcharts-heatmap-gradient-band`),t.setAttribute(`data:range-index`,String(e.index)),t.style.cursor=`pointer`,D.appendChild(t),this._bandHitEls.push(t)}),this._geom={isVertical:p,position:f,stripX:T,stripY:E,stripLength:b,stripThickness:x,arrowSize:m,svgWidth:S,svgHeight:C},d.showHoverValue){let e=v.createElement(`div`);e.classList.add(`apexcharts-heatmap-gradient-legend-value`),e.style.position=`absolute`,e.style.fontSize=((s=d.labelStyle)==null?void 0:s.fontSize)||`11px`,e.style.fontFamily=((c=d.labelStyle)==null?void 0:c.fontFamily)||l.config.chart.fontFamily||``,e.style.color=l.config.chart.foreColor,e.style.background=`rgba(0,0,0,0.65)`,e.style.color=`#fff`,e.style.padding=`2px 6px`,e.style.borderRadius=`3px`,e.style.pointerEvents=`none`,e.style.whiteSpace=`nowrap`,e.style.opacity=`0`,e.style.transition=`opacity 120ms ease`,this.hoverValueEl=e}u.classList.add(`apexcharts-heatmap-gradient-legend-wrap`),u.classList.add(`apx-legend-position-`+f),u.appendChild(D),this.hoverValueEl&&u.appendChild(this.hoverValueEl),this.svgEl=D,e?(u.style.width=S+`px`,u.style.height=C+`px`,u.style.position=`relative`,u.style.overflow=`visible`):this._applyWrapAlignment(u,f,p,S,C),this._attachHoverListeners(),this._attachBandHoverListeners()}_resolveStripLength(e,t){let n=this.w,r=t?n.globals.svgHeight||n.config.chart.height||300:n.globals.svgWidth||n.config.chart.width||600;if(typeof e==`string`){let t=e.trim();if(t.endsWith(`%`))return Math.max(20,r*(parseFloat(t)||0)/100);let n=parseFloat(t);return Number.isFinite(n)?n:200}return typeof e==`number`&&Number.isFinite(e)?e:200}_applyWrapAlignment(e,t,n,r,i){let a=this.w,o=this._cfg().align||`center`,s=a.globals.svgWidth||a.config.chart.width||600,c=a.globals.svgHeight||a.config.chart.height||300,l=a.config.legend.offsetX||0,u=a.config.legend.offsetY||0;if(e.style.position=`absolute`,e.style.display=`block`,e.style.overflow=`visible`,e.style.padding=`0`,e.style.width=r+`px`,e.style.height=i+`px`,e.style.right=`auto`,e.style.bottom=`auto`,n){let n=c-i-24,a;a=o===`start`?12:o===`end`?12+Math.max(0,n):12+Math.max(0,n)/2,e.style.top=a+u+`px`,e.style.left=t===`left`?12+l+`px`:s-r-12+l+`px`}else{let n=s-r-24,a;a=o===`start`?12:o===`end`?12+Math.max(0,n):12+Math.max(0,n)/2,e.style.left=a+l+`px`,e.style.top=t===`top`?12+u+`px`:c-i-12+u+`px`}}repositionToPlot(){var e,t;if(!d.isBrowser()||this._targetEl)return;let n=this.w,r=n.globals,i=n.dom.elLegendWrap;if(!i||!this._geom||!Number.isFinite(r.gridWidth)||!Number.isFinite(r.gridHeight))return;let{isVertical:a,position:o,svgWidth:s,svgHeight:c,stripX:l,stripY:u,stripThickness:f}=this._geom,p=this._cfg().align||`center`,m=n.config.legend.offsetX||0,h=n.config.legend.offsetY||0,g=(t=(e=this.ctx)==null?void 0:e.dimensions)==null?void 0:t.dimHelpers,_=g?g.getTitleSubtitleCoords(`title`).height+g.getTitleSubtitleCoords(`subtitle`).height:0,y=n.layout.xAxisHeight||0,b=(e,t)=>{let n=Math.max(0,e-t);return p===`start`?0:p===`end`?n:n/2};if(a){i.style.top=r.translateY+b(r.gridHeight,c)+h+`px`;let e=((o===`left`?0:r.translateX+r.gridWidth)+(o===`left`?r.translateX:r.svgWidth))/2;i.style.left=e-l-f/2+m+`px`}else{i.style.left=r.translateX+b(r.gridWidth,s)+m+`px`;let e=((o===`top`?_:r.translateY+r.gridHeight+y)+(o===`top`?r.translateY:r.svgHeight))/2;i.style.top=e-u-f/2+h+`px`}v.requestAnimationFrame(()=>this._enforceMinPlotGap())}_enforceMinPlotGap(){let e=this.w,t=e.dom.elLegendWrap,n=this.svgEl&&this.svgEl.querySelector(`rect`),r=e.dom.baseEl.querySelector(`.apexcharts-grid`);if(!(t&&n&&r&&this._geom))return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(!(i.width&&i.height&&a.width&&a.height))return;let{isVertical:o,position:s}=this._geom;if(o){let e=s===`left`?a.left-i.right:i.left-a.right;if(e<16){let n=parseFloat(t.style.left)||0,r=16-e;t.style.left=n+(s===`left`?-r:r)+`px`}}else{let e=s===`top`?a.top-i.bottom:i.top-a.bottom;if(e<16){let n=parseFloat(t.style.top)||0,r=16-e;t.style.top=n+(s===`top`?-r:r)+`px`}}}destroy(){var e,t,n,r,i,a,o;for(let n=0;n<this._bandHitEls.length;n++){let r=this._bandHitEls[n];(e=r.removeEventListener)==null||e.call(r,`mousemove`,this._onBandEnter),(t=r.removeEventListener)==null||t.call(r,`mouseout`,this._onBandLeave)}if(this._bandHitEls=[],this._activeBandIndex=-1,(n=this.ctx)!=null&&n.events)try{(i=(r=this.ctx.events).removeEventListener)==null||i.call(r,`dataPointMouseEnter`,this._onCellEnter),(o=(a=this.ctx.events).removeEventListener)==null||o.call(a,`dataPointMouseLeave`,this._onCellLeave)}catch(e){}}_attachBandHoverListeners(){if(d.isBrowser())for(let e=0;e<this._bandHitEls.length;e++){let t=this._bandHitEls[e];t.addEventListener(`mousemove`,this._onBandEnter),t.addEventListener(`mouseout`,this._onBandLeave)}}_onBandEnter(e){var t,n,r,i;let a=this.w,o=e.currentTarget,s=parseInt((t=o.getAttribute(`data:range-index`))==null?`-1`:t,10);s<0||s===this._activeBandIndex||(this._activeBandIndex=s,(i=(r=(n=this.ctx)==null?void 0:n.events)==null?void 0:r.fireEvent)==null||i.call(r,`legendHover`,[this.ctx,s,a]),new q(a).highlightRangeInSeries(s,`highlight`))}_onBandLeave(){if(this._activeBandIndex<0)return;let e=this._activeBandIndex;this._activeBandIndex=-1,new q(this.w).highlightRangeInSeries(e,`reset`)}_attachHoverListeners(){var e,t;d.isBrowser()&&(t=(e=this.ctx)==null?void 0:e.events)!=null&&t.addEventListener&&(this.ctx.events.addEventListener(`dataPointMouseEnter`,this._onCellEnter),this.ctx.events.addEventListener(`dataPointMouseLeave`,this._onCellLeave))}_onCellEnter(...e){var t,n,r;let i=this.w;if(!this.arrowEl)return;let a=e[e.length-1];if(!a||typeof a!=`object`)return;let o=a.seriesIndex,s=a.dataPointIndex;if(typeof o!=`number`||typeof s!=`number`||!ai.supports(i))return;let c;c=this._continuous?ei(i,o,s):(r=(n=(t=i.seriesData)==null?void 0:t.series)==null?void 0:n[o])==null?void 0:r[s],c==null||Number.isNaN(c)||this._positionArrow(c)}_onCellLeave(){this.arrowEl&&(this.arrowEl.setAttribute(`opacity`,`0`),this.hoverValueEl&&(this.hoverValueEl.style.opacity=`0`))}_positionArrow(e){if(!this.arrowEl||!this._geom)return;
1760let{isVertical:t,position:n,stripX:r,stripY:i,stripLength:a,stripThickness:o,arrowSize:s}=this._geom,c=this._min,l=this._max-c,u;if(u=l===0?.5:(e-c)/l,u<0&&(u=0),u>1&&(u=1),t){let e=i+a-u*a,t,c;n===`left`?(t=r+o,c=t+s):(t=r,c=t-s);let l=[`${t},${e}`,`${c},${e-s/2}`,`${c},${e+s/2}`].join(` `);this.arrowEl.setAttribute(`points`,l)}else{let e=r+u*a,t,c;n===`top`?(t=i+o,c=t+s):(t=i,c=t-s);let l=[`${e},${t}`,`${e-s/2},${c}`,`${e+s/2},${c}`].join(` `);this.arrowEl.setAttribute(`points`,l)}if(this.arrowEl.setAttribute(`opacity`,`1`),this.hoverValueEl){let c=this._getFormatter();if(this.hoverValueEl.textContent=c(e),t){let e=i+a-u*a;n===`left`?this.hoverValueEl.style.left=`${r+o+s+8}px`:(this.hoverValueEl.style.left=r-s-8+`px`,this.hoverValueEl.style.transform=`translateX(-100%)`),this.hoverValueEl.style.top=e-9+`px`}else{let e=r+u*a;this.hoverValueEl.style.left=`${e}px`,this.hoverValueEl.style.transform=`translateX(-50%)`,this.hoverValueEl.style.top=n===`top`?`${i+o+s+8}px`:i-s-18+`px`}this.hoverValueEl.style.opacity=`1`}}_buildArrow(e,t,n){let r=v.createElementNS(ii,`polygon`);return r.setAttribute(`fill`,t),r.setAttribute(`opacity`,`0`),r.setAttribute(`class`,`apexcharts-heatmap-gradient-arrow`),r.setAttribute(`points`,`0,0 0,0 0,0`),r.setAttribute(`pointer-events`,`none`),r}_computeStops(){var e,t;let n=this.w,r=ai.colorScaleOf(n)||{},i=this._cfg(),a=ni(n);if(a)return this._continuous=!0,{min:a.min,max:a.max,stops:a.legendStops,bands:[]};this._continuous=!1;let o=1/0,l=-1/0,u=((e=n.seriesData)==null?void 0:e.series)||[];for(let e=0;e<u.length;e++){let t=u[e];if(t)for(let e=0;e<t.length;e++){let n=t[e];n==null||Number.isNaN(n)||(n<o&&(o=n),n>l&&(l=n))}}Number.isFinite(o)||(o=0),Number.isFinite(l)||(l=0);let d=o,f=l;r.min!==void 0&&r.max!==void 0&&r.max>r.min?(d=r.min,f=r.max):(r.min!==void 0&&(d=r.min<o?r.min:o),r.max!==void 0&&(f=r.max>l?r.max:l));let p=[],m=[];if(r.ranges&&r.ranges.length>0){let e=r.ranges.map((e,t)=>c(s({},e),{_originalIndex:t})).sort((e,t)=>e.from-t.from),t=e[0].from,n=e[e.length-1].to;d=t,f=n;let i=n-t||1;e.forEach(e=>{let n=(e.from-t)/i,r=(e.to-t)/i;p.push({percent:(n+r)/2,color:e.color}),m.push({index:e._originalIndex,p1:n,p2:r})})}else{let e=n.globals.colors[0]||`#008FFB`,r=new x,a=n.config.plotOptions[n.config.chart.type]||{},o=(t=a.shadeIntensity)==null?.5:t,s=n.globals.hasNegs,c=Math.max(2,i.stops||16);for(let t=0;t<c;t++){let i=t/(c-1),l=d+i*(f-d),u=Math.abs(f)+Math.abs(d),m=u===0?0:100*l/u,h;h=s?a.reverseNegativeShade?m<0?m/100*(1.25*o):1.25*o*(1-m/100):m<=0?1-(1+m/100)*o:(1-m/100)*o:1-m/100,h>1&&(h=1),h<-1&&(h=-1);let g=a.enableShades?r.shadeColor(n.config.theme.mode===`dark`?-1*h:h,e):e;p.push({percent:i,color:g})}}return{min:d,max:f,stops:p,bands:m}}}Gr.registerFeatures({legend:class{constructor(e,t){this.w=e,this.ctx=t,this.updateSeries=(...e)=>t.updateHelpers._updateSeries(...e),this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type===`bar`&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Jr(this)}init(){let e=this.w,t=e.globals,n=e.config;this.isBarsDistributed=n.chart.type===`bar`&&n.plotOptions.bar.distributed&&n.series.length===1;let r=n.legend.showForSingleSeries&&this.w.seriesData.series.length===1||this.isBarsDistributed||n.chart.type===`heatmap`||ai.isEnabled(e)||this.w.seriesData.series.length>1;if(this.legendHelpers.appendToForeignObject(),(r||!t.axisCharts)&&n.legend.show){let t=e.dom.elLegendWrap;for(;t.firstChild;)t.removeChild(t.firstChild);this.heatmapGradientLegend&&(this.heatmapGradientLegend.destroy(),this.heatmapGradientLegend=null),ai.isEnabled(e)?(this.heatmapGradientLegend=new ai(e,this.ctx),this.heatmapGradientLegend.draw()):(this.drawLegends(),n.legend.position===`bottom`||n.legend.position===`top`?this.legendAlignHorizontal():n.legend.position!==`right`&&n.legend.position!==`left`||this.legendAlignVertical())}}createLegendMarker({i:e,fillcolor:t}){let n=this.w,r=v.createElement(`span`);r.classList.add(`apexcharts-legend-marker`);let i=n.config.legend.markers.shape||n.config.markers.shape,a=i;Array.isArray(i)&&(a=i[e]);let o=Array.isArray(n.config.legend.markers.size)?parseFloat(n.config.legend.markers.size[e]):parseFloat(n.config.legend.markers.size),l=Array.isArray(n.config.legend.markers.offsetX)?parseFloat(n.config.legend.markers.offsetX[e]):parseFloat(n.config.legend.markers.offsetX),u=Array.isArray(n.config.legend.markers.offsetY)?parseFloat(n.config.legend.markers.offsetY[e]):parseFloat(n.config.legend.markers.offsetY),f=Array.isArray(n.config.legend.markers.strokeWidth)?parseFloat(n.config.legend.markers.strokeWidth[e]):parseFloat(n.config.legend.markers.strokeWidth),p=r.style;if(p.height=2*(o+f)+`px`,p.width=2*(o+f)+`px`,p.left=l+`px`,p.top=u+`px`,n.config.legend.markers.customHTML)p.background=`transparent`,p.color=t[e],Array.isArray(n.config.legend.markers.customHTML)?n.config.legend.markers.customHTML[e]&&(r.innerHTML=n.config.legend.markers.customHTML[e]()):r.innerHTML=n.config.legend.markers.customHTML();else{let i=new Re(this.ctx.w,this.ctx).getMarkerConfig({cssClass:`apexcharts-legend-marker apexcharts-marker apexcharts-marker-${a}`,seriesIndex:e,strokeWidth:f,size:o}),l=(d.isBrowser()?window.SVG:global.SVG)().addTo(r).size(`100%`,`100%`),u=new K(this.w).drawMarker(0,0,c(s({},i),{pointFillColor:Array.isArray(t)?t[e]:i.pointFillColor,shape:a}));n.dom.Paper.find(`.apexcharts-legend-marker.apexcharts-marker`).forEach(e
1760=>{e.node.classList.contains(`apexcharts-marker-triangle`)?e.node.style.transform=`translate(50%, 45%)`:e.node.style.transform=`translate(50%, 50%)`}),l.add(u)}return r}drawLegends(){var e;let t=this,n=this.w,r=n.dom.elLegendWrap,i=n.config.legend.fontFamily,a=n.seriesData.seriesNames,o=n.config.legend.markers.fillColors?n.config.legend.markers.fillColors.slice():n.globals.colors.slice();if(n.config.chart.type===`heatmap`){let e=n.config.plotOptions.heatmap.colorScale.ranges;a=e.map(e=>e.name?e.name:e.from+` - `+e.to),o=e.map(e=>e.color)}else this.isBarsDistributed&&(a=n.labelData.labels.slice());n.config.legend.customLegendItems.length&&(a=n.config.legend.customLegendItems);let s=n.formatters.legendFormatter,c=n.config.legend.inverseOrder,l=[];n.labelData.seriesGroups.length>1&&n.config.legend.clusterGroupedSeries&&n.labelData.seriesGroups.forEach((e,t)=>{l[t]=v.createElement(`div`),l[t].classList.add(`apexcharts-legend-group`,`apexcharts-legend-group-${t}`),n.config.legend.clusterGroupedSeriesOrientation===`horizontal`?r.classList.add(`apexcharts-legend-group-horizontal`):l[t].classList.add(`apexcharts-legend-group-vertical`)});for(let t=c?a.length-1:0;c?t>=0:t<=a.length-1;c?t--:t++){let c=s(a[t],{seriesIndex:t,w:n}),u=!1,d=!1;if(n.globals.collapsedSeries.length>0)for(let e=0;e<n.globals.collapsedSeries.length;e++)n.globals.collapsedSeries[e].index===t&&(u=!0);if(n.globals.ancillaryCollapsedSeriesIndices.length>0)for(let e=0;e<n.globals.ancillaryCollapsedSeriesIndices.length;e++)n.globals.ancillaryCollapsedSeriesIndices[e]===t&&(d=!0);let f=this.createLegendMarker({i:t,fillcolor:o});K.setAttrs(f,{rel:t+1,"data:collapsed":u||d}),(u||d)&&f.classList.add(`apexcharts-inactive-legend`);let p=v.createElement(`div`);if(n.config.chart.accessibility.enabled&&n.config.chart.accessibility.keyboard.enabled){p.setAttribute(`role`,`button`),p.setAttribute(`tabindex`,`0`);let e=Array.isArray(c)?c.join(` `):c,t=u||d,n=t?`hidden`:`visible`;p.setAttribute(`aria-label`,`${e}, ${n}. Press Enter or Space to toggle.`),p.setAttribute(`aria-pressed`,t?`true`:`false`)}let m=v.createElement(`span`);m.classList.add(`apexcharts-legend-text`),m.innerHTML=Array.isArray(c)?c.join(` `):c;let h=n.config.legend.labels.useSeriesColors?n.globals.colors[t]:Array.isArray(n.config.legend.labels.colors)?(e=n.config.legend.labels.colors)==null?void 0:e[t]:n.config.legend.labels.colors;h||(h=n.config.chart.foreColor),m.style.color=h,m.style.fontSize=n.config.legend.fontSize,m.style.fontWeight=n.config.legend.fontWeight,m.style.fontFamily=i||n.config.chart.fontFamily,K.setAttrs(m,{rel:t+1,i:t,"data:default-text":encodeURIComponent(c),"data:collapsed":u||d}),p.appendChild(f),p.appendChild(m);let g=new V(this.w);n.config.legend.showForZeroSeries||g.getSeriesTotalByIndex(t)===0&&g.seriesHaveSameValues(t)&&!g.isSeriesNull(t)&&n.globals.collapsedSeriesIndices.indexOf(t)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)===-1&&p.classList.add(`apexcharts-hidden-zero-series`),n.config.legend.showForNullSeries||g.isSeriesNull(t)&&n.globals.collapsedSeriesIndices.indexOf(t)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)===-1&&p.classList.add(`apexcharts-hidden-null-series`),l.length?n.labelData.seriesGroups.forEach((e,i)=>{var a,o;e.includes((o=(a=n.config.series[t])==null?void 0:a.name)==null?``:o)&&(r.appendChild(l[i]),l[i].appendChild(p))}):r.appendChild(p),r.classList.add(`apexcharts-align-${n.config.legend.horizontalAlign}`),r.classList.add(`apx-legend-position-`+n.config.legend.position),p.classList.add(`apexcharts-legend-series`),p.style.margin=`${n.config.legend.itemMargin.vertical}px ${n.config.legend.itemMargin.horizontal}px`,r.style.width=n.config.legend.width?n.config.legend.width+`px`:``,r.style.height=n.config.legend.height?n.config.legend.height+`px`:``,K.setAttrs(p,{rel:t+1,seriesName:x.escapeString(a[t]),"data:collapsed":u||d}),(u||d)&&p.classList.add(`apexcharts-inactive-legend`),n.config.legend.onItemClick.toggleDataSeries||p.classList.add(`apexcharts-no-click`)}n.dom.elWrap.addEventListener(`click`,t.onLegendClick,!0),n.config.legend.onItemHover.highlightDataSeries&&n.config.legend.customLegendItems.length===0&&(n.dom.elWrap.addEventListener(`mousemove`,t.onLegendHovered,!0),n.dom.elWrap.addEventListener(`mouseout`,t.onLegendHovered,!0)),n.config.chart.accessibility.enabled&&n.config.chart.accessibility.keyboard.enabled&&n.dom.elWrap.addEventListener(`ke
1760ydown`,t.onLegendKeyDown.bind(t),!0)}setLegendWrapXY(e,t){let n=this.w,r=n.dom.elLegendWrap,i=r.clientHeight,a=0,o=0;if(n.config.legend.position===`bottom`)o=n.globals.svgHeight-Math.min(i,n.globals.svgHeight/2)-5;else if(n.config.legend.position===`top`){let e=new on(this.w,this.ctx),t=e.dimHelpers.getTitleSubtitleCoords(`title`).height,n=e.dimHelpers.getTitleSubtitleCoords(`subtitle`).height;o=(t>0?t-10:0)+(n>0?n-10:0)}r.style.position=`absolute`,a=a+e+n.config.legend.offsetX,o=o+t+n.config.legend.offsetY,r.style.left=a+`px`,r.style.top=o+`px`,n.config.legend.position===`right`&&(r.style.left=`auto`,r.style.right=25+n.config.legend.offsetX+`px`),[`width`,`height`].forEach(e=>{r&&r.style[e]&&(r.style[e]=parseInt(String(n.config.legend[e]),10)+`px`)})}legendAlignHorizontal(){let e=this.w;e.dom.elLegendWrap.style.right=`0`;let t=new on(this.w,this.ctx),n=t.dimHelpers.getTitleSubtitleCoords(`title`),r=t.dimHelpers.getTitleSubtitleCoords(`subtitle`),i=0;e.config.legend.position===`top`&&(i=n.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,i)}legendAlignVertical(){let e=this.w,t=this.legendHelpers.getLegendDimensions(),n=0;e.config.legend.position===`left`&&(n=20),e.config.legend.position===`right`&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}onLegendHovered(e){var t;let n=this.w,r=e.target,i=r.classList.contains(`apexcharts-legend-series`)||r.classList.contains(`apexcharts-legend-text`)||r.classList.contains(`apexcharts-legend-marker`);if(n.config.chart.type===`heatmap`||this.isBarsDistributed){if(i){let n=parseInt((t=r.getAttribute(`rel`))==null?`0`:t,10)-1;this.ctx.events.fireEvent(`legendHover`,[this.ctx,n,this.w]);let i=new q(this.ctx.w);e.type===`mousemove`?i.highlightRangeInSeries(n,`highlight`):e.type===`mouseout`&&i.highlightRangeInSeries(n,`reset`)}}else!r.classList.contains(`apexcharts-inactive-legend`)&&i&&new q(this.ctx.w).toggleSeriesOnHover(e,r)}onLegendKeyDown(e){let t=this,n=this.w,r=e.target;if((r.classList.contains(`apexcharts-legend-series`)||r.classList.contains(`apexcharts-legend-text`)||r.classList.contains(`apexcharts-legend-marker`))&&(e.key===`Enter`||e.key===` `)){e.preventDefault();let i=r.getAttribute(`rel`);t.onLegendClick(e),i!==null&&n.config.legend.onItemClick.toggleDataSeries&&requestAnimationFrame(()=>{let e=n.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${i}"]`);e&&e.focus()})}}onLegendClick(e){var t;let n=this.w,r=e.target;if(!n.config.legend.customLegendItems.length&&(r.classList.contains(`apexcharts-legend-series`)||r.classList.contains(`apexcharts-legend-text`)||r.classList.contains(`apexcharts-legend-marker`))){let e=parseInt((t=r.getAttribute(`rel`))==null?`0`:t,10)-1,i=r.getAttribute(`data:collapsed`)===`true`,a=this.w.config.chart.events.legendClick;typeof a==`function`&&a(this.ctx,e,this.w),this.ctx.events.fireEvent(`legendClick`,[this.ctx,e,this.w]);let o=this.w.config.legend.markers.onClick;typeof o==`function`&&r.classList.contains(`apexcharts-legend-marker`)&&(o(this.ctx,e,this.w),this.ctx.events.fireEvent(`legendMarkerClick`,[this.ctx,e,this.w])),n.config.chart.type!==`treemap`&&n.config.chart.type!==`heatmap`&&!this.isBarsDistributed&&n.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(e,i)}}}});class oi{constructor(e,t){this.w=e,this.ctx=t,this.ev=this.w.config.chart.events,this.selectedClass=`apexcharts-selected`,this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX,this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elMeasure=null,this.elZoomReset=null,this.elMenuIcon=null,this.elMenu=null,this.elMenuItems=[],this.t=null}createToolbar(){var e,t;let n=this.w,r=()=>v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),i=()=>{let e=v.createElementNS(`http://www.w3.org/1999/xhtml`,`button`);return e.setAttribute(`type`,`button`),e},a=r();if(a.setAttribute(`class`,`apexcharts-toolbar`),a.style.top=n.config.chart.toolbar.offsetY+`px`,a.style.right=3-n.config.chart.toolbar.offsetX+`px`,n.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elMeasure=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=r(),this.elCustomIcons=[],this.t=n.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(let e=0;e<this.t.customIcons.length;e++)this.elCustomIcons.push(i());let o=[],s=(e,t,r)=>{let i=e.toLowerCase();this.t[i]&&n.config.chart.zoom.enabled&&o.push({el:t,icon:typeof this.t[i]==`string`?this.t[i]:r,title:this.localeValues[e],class:`apexcharts-${i}-icon`})};s(`zoomIn`,this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1761    <path d="M12 5v14M5 12h14"/>
1762</svg>
1763`),s(`zoomOut`,this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1764    <path d="M5 12h14"/>
1765</svg>
1766`);let c=e=>{this.t[e]&&n.config.chart[e].enabled&&o.push({el:e===`zoom`?this.elZoom:this.elSelection,icon:typeof this.t[e]==`string`?this.t[e]:e===`zoom`?`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1767    <circle cx="11" cy="11" r="7"/>
1768    <path d="m21 21-4.3-4.3M8 11h6M11 8v6"/>
1769</svg>
1770`:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1771    <path d="M5 3a2 2 0 0 0-2 2"/>
1772    <path d="M19 3a2 2 0 0 1 2 2"/>
1773    <path d="M21 19a2 2 0 0 1-2 2"/>
1774    <path d="M5 21a2 2 0 0 1-2-2"/>
1775    <path d="M9 3h1M14 3h1M9 21h1M14 21h1M3 9v1M3 14v1M21 9v1M21 14v1"/>
1776</svg>
1777`,title:this.localeValues[e===`zoom`?`selectionZoom`:`selection`],class:`apexcharts-${e}-icon`})};c(`zoom`),c(`selection`),this.t.pan&&n.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan==`string`?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1778    <path d="M5 9 2 12l3 3"/>
1779    <path d="M9 5l3-3 3 3"/>
1780    <path d="M15 19l-3 3-3-3"/>
1781    <path d="M19 9l3 3-3 3"/>
1782    <path d="M2 12h20"/>
1783    <path d="M12 2v20"/>
1784</svg>
1785`,title:this.localeValues.pan,class:`apexcharts-pan-icon`}),this.t.measure&&n.config.chart.measure&&n.config.chart.measure.enabled&&o.push({el:this.elMeasure,icon:typeof this.t.measure==`string`?this.t.measure:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1786    <path d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0Z"/>
1787    <path d="m14.5 12.5 2-2"/>
1788    <path d="m11.5 9.5 2-2"/>
1789    <path d="m8.5 6.5 2-2"/>
1790    <path d="m17.5 15.5 2-2"/>
1791</svg>
1792`,title:this.localeValues.measure||`Measure`,class:`apexcharts-measure-icon`}),s(`reset`,this.elZoomReset,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1793    <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
1794    <path d="M3 3v5h5"/>
1795</svg>
1796`),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download==`string`?this.t.download:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1797    <path d="M4 6h16M4 12h16M4 18h16"/>
1798</svg>
1799`,title:this.localeValues.menu,class:`apexcharts-menu-icon`});for(let e=0;e<this.elCustomIcons.length;e++)o.push({el:this.elCustomIcons[e],icon:this.t.customIcons[e].icon,title:this.t.customIcons[e].title,index:this.t.customIcons[e].index,class:`apexcharts-toolbar-custom-icon `+this.t.customIcons[e].class});o.forEach((e,t)=>{e.index&&x.moveIndexInArray(o,t,e.index)});for(let e=0;e<o.length;e++)K.setAttrs(o[e].el,{class:o[e].class,title:o[e].title,"aria-label":o[e].title}),o[e].el.innerHTML=o[e].icon,a.appendChild(o[e].el);this.elZoom.parentNode&&this.elZoom.setAttribute(`aria-pressed`,String(!!n.interact.zoomEnabled)),this.elSelection.parentNode&&this.elSelection.setAttribute(`aria-pressed`,String(!!n.interact.selectionEnabled)),this.elPan.parentNode&&this.elPan.setAttribute(`aria-pressed`,String(!!n.interact.panEnabled)),this.elMeasure.parentNode&&this.elMeasure.setAttribute(`aria-pressed`,String(!!n.interact.measureEnabled)),this.elMenuIcon.parentNode&&(this.elMenuIcon.setAttribute(`aria-haspopup`,`true`),this.elMenuIcon.setAttribute(`aria-expanded`,`false`)),this._createHamburgerMenu(a),n.interact.zoomEnabled?this.elZoom.classList.add(this.selectedClass):n.interact.panEnabled?this.elPan.classList.add(this.selectedClass):n.interact.selectionEnabled?this.elSelection.classList.add(this.selectedClass):n.interact.measureEnabled&&this.elMeasure&&(this.elMeasure.classList.add(this.selectedClass),(t=(e=this.ctx.measure)==null?void 0:e.startMeasure)==null||t.call(e)),this.addToolbarEventListeners()}_createHamburgerMenu(e){this.elMenuItems=[],e.appendChild(this.elMenu),K.setAttrs(this.elMenu,{class:`apexcharts-menu`,role:`menu`});let t=[{name:`exportSVG`,title:this.localeValues.exportToSVG},{name:`exportPNG`,title:this.localeValues.exportToPNG},{name:`exportCSV`,title:this.localeValues.exportToCSV}];for(let e=0;e<t.length;e++)this.elMenuItems.push(v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`)),this.elMenuItems[e].innerHTML=t[e].title,K.setAttrs(this.elMenuItems[e],{class:`apexcharts-menu-item ${t[e].name}`,title:t[e].title,role:`menuitem`,tabindex:`-1`}),this.elMenu.appendChild(this.elMenuItems[e])}addToolbarEventListeners(){var e,t,n,r,i,a,o,s,c;(e=this.elZoomReset)==null||e.addEventListener(`click`,this.handleZoomReset.bind(this)),(t=this.elSelection)==null||t.addEventListener(`click`,this.toggleZoomSelection.bind(this,`selection`)),(n=this.elZoom)==null||n.addEventListener(`click`,this.toggleZoomSelection.bind(this,`zoom`)),(r=this.elZoomIn)==null||r.addEventListener(`click`,this.handleZoomIn.bind(this)),(i=this.elZoomOut)==null||i.addEventListener(`click`,this.handleZoomOut.bind(this)),(a=this.elPan)==null||a.addEventListener(`click`,this.togglePanning.bind(this)),(o=this.elMeasure)==null||o.addEventListener(`click`,this.toggleMeasure.bind(this)),(s=this.elMenuIcon)==null||s.addEventListener(`click`,this.toggleMenu.bind(this)),this.elMenuItems.forEac
1799h(e=>{e.classList.contains(`exportSVG`)?e.addEventListener(`click`,this.handleDownload.bind(this,`svg`)):e.classList.contains(`exportPNG`)?e.addEventListener(`click`,this.handleDownload.bind(this,`png`)):e.classList.contains(`exportCSV`)&&e.addEventListener(`click`,this.handleDownload.bind(this,`csv`))});for(let e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener(`click`,this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w));[this.elZoomReset,this.elSelection,this.elZoom,this.elZoomIn,this.elZoomOut,this.elPan,this.elMeasure,this.elMenuIcon,...this.elCustomIcons].forEach(e=>{e.addEventListener(`keydown`,t=>{if(t.key===`Enter`||t.key===` `){t.preventDefault();let n=e.className;e.click(),requestAnimationFrame(()=>{let e=this.w.dom.baseEl;if(!e)return;let t=n.split(` `).find(e=>e.startsWith(`apexcharts-`));if(!t)return;let r=e.querySelector(`.${t}`);r&&r.focus()})}})}),(c=this.elMenuIcon)==null||c.addEventListener(`keydown`,e=>{var t;e.key!==`ArrowDown`&&e.key!==`ArrowUp`||(e.preventDefault(),(t=this.elMenu)!=null&&t.classList.contains(`apexcharts-menu-open`)||this.toggleMenu(),window.setTimeout(()=>{let t=e.key===`ArrowDown`?0:this.elMenuItems.length-1;this.elMenuItems[t]&&this.elMenuItems[t].focus()},20))}),this.elMenuItems.forEach((e,t)=>{e.addEventListener(`keydown`,n=>{var r;n.key===`ArrowDown`?(n.preventDefault(),(this.elMenuItems[t+1]||this.elMenuItems[0]).focus()):n.key===`ArrowUp`?(n.preventDefault(),(this.elMenuItems[t-1]||this.elMenuItems[this.elMenuItems.length-1]).focus()):n.key===`Escape`||n.key===`Tab`?(this._closeMenu(),(r=this.elMenuIcon)==null||r.focus(),n.key===`Tab`||n.preventDefault()):n.key!==`Enter`&&n.key!==` `||(n.preventDefault(),e.click())})})}toggleZoomSelection(e){this.ctx.getSyncedCharts().forEach(t=>{let n=t.ctx.toolbar,r=e===`selection`?`selectionEnabled`:`zoomEnabled`,i=!!t.w.globals[r];n.toggleOtherControls();let a=e===`selection`?n.elSelection:n.elZoom;i||(t.w.globals[r]=!0,a.classList.add(n.selectedClass)),a.setAttribute(`aria-pressed`,String(!!t.w.globals[r]))})}toggleMeasure(){var e,t,n,r;let i=this.w,a=!i.interact.measureEnabled;this.toggleOtherControls(),a&&(i.interact.measureEnabled=!0,(e=this.elMeasure)==null||e.classList.add(this.selectedClass),(n=(t=this.ctx.measure)==null?void 0:t.startMeasure)==null||n.call(t)),(r=this.elMeasure)==null||r.setAttribute(`aria-pressed`,String(i.interact.measureEnabled))}getToolbarIconsReference(){let e=this.w;this.elZoom||(this.elZoom=e.dom.baseEl.querySelector(`.apexcharts-zoom-icon`)),this.elPan||(this.elPan=e.dom.baseEl.querySelector(`.apexcharts-pan-icon`)),this.elSelection||(this.elSelection=e.dom.baseEl.querySelector(`.apexcharts-selection-icon`)),this.elMeasure||(this.elMeasure=e.dom.baseEl.querySelector(`.apexcharts-measure-icon`))}enableZoomPanFromToolbar(e){this.toggleOtherControls(),e===`pan`?this.w.interact.panEnabled=!0:this.w.interact.zoomEnabled=!0;let t=e===`pan`?this.elPan:this.elZoom,n=e===`pan`?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}togglePanning(){this.ctx.getSyncedCharts().forEach(e=>{let t=e.ctx.toolbar,n=!!e.w.interact.panEnabled;t.toggleOtherControls(),n||(e.w.interact.panEnabled=!0,t.elPan.classList.add(t.selectedClass)),t.elPan.setAttribute(`aria-pressed`,String(!!e.w.interact.panEnabled))})}toggleOtherControls(){var e,t,n;let r=this.w;r.interact.panEnabled=!1,r.interact.zoomEnabled=!1,r.interact.selectionEnabled=!1,r.interact.measureEnabled&&(r.interact.measureEnabled=!1,(t=(e=this.ctx.measure)==null?void 0:e.stopMeasure)==null||t.call(e),(n=this.elMeasure)==null||n.setAttribute(`aria-pressed`,`false`)),this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom,this.elMeasure].forEach(e=>{e&&e.classList.remove(this.selectedClass)})}_currentXRange(){let e=this.w;return e.axisFlags.isRangeBar?{minX:e.globals.minY,maxX:e.globals.maxY}:{minX:e.globals.minX,maxX:e.globals.maxX}}handleZoomIn(){let e=this.w,{minX:t,maxX:n}=this._currentXRange();this.minX=t,this.maxX=n;let r=(t+n)/2,i=(t+r)/2,a=(n+r)/2,o=this._getNewMinXMaxX(i,a);e.interact.disableZoomIn||this.zoomUpdateOptions(o.minX,o.maxX)}handleZoomOut(){let e=this.w,{minX:t,maxX:n}=this._currentXRange();if(this.minX=t,this.maxX=n,e.config.xaxis.type===`datetime`&&new Date(t).getUTCFullYear()<1e3)return;let r=(t+n)/2,i=t-(r-t),a=n-(r-n),o=this._getNewMinXMaxX(i,a);e.interact.disableZoomOut||this.zoomUpdateOptions(o.minX,o.maxX)}_getNewMinXMaxX(e,t){let n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}zoomUpdateOptions(e,t){let n=this.w;if(e===void 0&&t===void 0)return void this.handleZoomReset();if(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t
1799-e<2))return;let r={min:e,max:t},i=this.getBeforeZoomRange(r,void 0);i&&(r=i.xaxis);let a={xaxis:r};if(!n.globals.initialConfig)return;let o=x.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(a.yaxis=o),this.w.interact.zoomed=!0,this.ctx.updateHelpers._updateOptions(a,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,o)}zoomCallback(e,t){typeof this.ev.zoomed==`function`&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent(`zoomed`,{xaxis:e,yaxis:t}))}getBeforeZoomRange(e,t){let n=null;return typeof this.ev.beforeZoom==`function`&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}toggleMenu(){window.setTimeout(()=>{var e,t,n;(e=this.elMenu)!=null&&e.classList.contains(`apexcharts-menu-open`)?this._closeMenu():((t=this.elMenu)==null||t.classList.add(`apexcharts-menu-open`),(n=this.elMenuIcon)==null||n.setAttribute(`aria-expanded`,`true`))},0)}_closeMenu(){var e,t;(e=this.elMenu)==null||e.classList.remove(`apexcharts-menu-open`),(t=this.elMenuIcon)==null||t.setAttribute(`aria-expanded`,`false`)}handleDownload(e){let t=this.w,n=new qr(this.w,this.ctx);switch(e){case`svg`:n.exportToSVG();break;case`png`:n.exportToPng();break;case`csv`:n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}handleZoomReset(){this.ctx.getSyncedCharts().forEach(e=>{let t=e.w;if(!t.interact.zoomed)return;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),typeof t.config.chart.events.beforeResetZoom==`function`){let n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}typeof t.config.chart.events.zoomed==`function`&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max});let n=e.ctx.series.emptyCollapsedSeries(x.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(n,t.config.chart.animations.dynamicAnimation.enabled),t.interact.zoomed=!1})}destroy(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elMeasure=null,this.elZoomReset=null,this.elMenuIcon=null}}Gr.registerFeatures({toolbar:oi,zoomPanSelection:class extends oi{constructor(e,t){super(e,t),this.w=e,this.ctx=t,this.dragged=!1,this.graphics=new K(this.w),this.eventList=[`mousedown`,`mouseleave`,`mousemove`,`touchstart`,`touchmove`,`mouseup`,`touchend`],this.clientX=0,this.clientY=0,this.startX=0,this.endX=0,this.dragX=0,this.startY=0,this.endY=0,this.dragY=0,this.moveDirection=`none`}init({xyRatios:e}){let t=this.w,n=this;this.xyRatios=e,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.constraints=new re(0,0,t.layout.gridWidth,t.layout.gridHeight),this.zoomRect.node.classList.add(`apexcharts-zoom-rect`),this.selectionRect.node.classList.add(`apexcharts-selection-rect`),t.dom.Paper.add(this.zoomRect),t.dom.Paper.add(this.selectionRect),this.slDraggableRect=t.config.chart.selection.type===`x`?this.selectionRect.draggable({minX:0,minY:0,maxX:t.layout.gridWidth,maxY:t.layout.gridHeight}).on(`dragmove.namespace`,this.selectionDragging.bind(this,`dragging`)):t.config.chart.selection.type===`y`?this.selectionRect.draggable({minX:0,maxX:t.layout.gridWidth}).on(`dragmove.namespace`,this.selectionDragging.bind(this,`dragging`)):this.selectionRect.draggable().on(`dragmove.namespace`,this.selectionDragging.bind(this,`dragging`)),this.preselectedSelection(),this.hoverArea=t.dom.baseEl.querySelector(`${t.globals.chartClass} .apexcharts-svg`),this.hoverArea&&(this.hoverArea.classList.add(`apexcharts-zoomable`),this.eventList.forEach(t=>{var r;(r=this.hoverArea)==null||r.addEventListener(t,n.svgMouseEvents.bind(n,e),{capture:!1,passive:!0})}),this._wheelZoomEnabled()&&this.hoverArea.addEventListener(`wheel`,n.mouseWheelEvent.bind(n),{capture:!1,passive:!1}),this._momentumEnabled()&&[`touchstart`,`touchmove`,`touchend`,`touchcancel`].forEach(e=>{var t;(t=this.hoverArea)==null||t.addEventListener(e,n.momentumTouch.bind(n),{capture:!1,passive:!1})}
1799))}destroy(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null}svgMouseEvents(e,t){let n=this.w,r=this.ctx.toolbar;if(n.interact.momentum&&n.interact.momentum.busy||this._momentumEnabled()&&t.touches&&t.touches.length>1)return;let i=n.interact.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,a=n.config.chart.toolbar.autoSelected;if(a!==`measure`&&(t.shiftKey?(n.interact.shiftWasPressed=!0,r.enableZoomPanFromToolbar(a===`pan`?`zoom`:`pan`)):n.interact.shiftWasPressed&&(r.enableZoomPanFromToolbar(a),n.interact.shiftWasPressed=!1)),!t.target)return;let o=t.target.classList,s;if(t.target.parentNode&&t.target.parentNode!==null&&(s=t.target.parentNode.classList),!(o.contains(`apexcharts-legend-marker`)||o.contains(`apexcharts-legend-text`)||s&&s.contains(`apexcharts-toolbar`))){if(this.clientX=t.type===`touchmove`||t.type===`touchstart`?t.touches[0].clientX:t.type===`touchend`?t.changedTouches[0].clientX:t.clientX,this.clientY=t.type===`touchmove`||t.type===`touchstart`?t.touches[0].clientY:t.type===`touchend`?t.changedTouches[0].clientY:t.clientY,t.type===`mousedown`&&t.which===1||t.type===`touchstart`){let e=this._gridRect();if(!e)return;this.startX=this._screenXToPlotPx(this.clientX),this.startY=this.clientY-e.top,this.dragged=!1,this.w.interact.mousedown=!0}(t.type===`mousemove`&&t.which===1||t.type===`touchmove`)&&(this.dragged=!0,n.interact.panEnabled?(n.interact.selection=null,this.w.interact.mousedown&&this.panDragging({context:this,zoomtype:i,xyRatios:this.xyRatios})):(this.w.interact.mousedown&&n.interact.zoomEnabled||this.w.interact.mousedown&&n.interact.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:i}))),t.type!==`mouseup`&&t.type!==`touchend`&&t.type!==`mouseleave`||this.handleMouseUp({zoomtype:i}),this.makeSelectionRectDraggable()}}handleMouseUp({zoomtype:e,isResized:t}){let n=this.w,r=this._gridRect();r&&(this.w.interact.mousedown||t)&&(this.endX=this._screenXToPlotPx(this.clientX),this.endY=this.clientY-r.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(n.interact.zoomEnabled||n.interact.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:e})),n.interact.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.interact.mousedown=!1}_incidentalZoomEnabled(e){var t,n,r;let i=this.w.config.chart;return!(!i.zoom||!i.zoom.enabled)&&(e===`auto`?!(!((t=i.toolbar)!=null&&t.show)||!((r=(n=i.toolbar)==null?void 0:n.tools)!=null&&r.reset)):!!e)}_wheelZoomEnabled(){let{zoom:e}=this.w.config.chart;return this._incidentalZoomEnabled(e&&e.allowMouseWheelZoom)}_wheel(){let e=this.w.interact;return e.wheel||(e.wheel={factor:1,clientX:0,rafId:null,endTimer:null}),e.wheel}mouseWheelEvent(e){e.preventDefault();let t=this._wheel(),n=e.deltaY;e.deltaMode===1?n*=33:e.deltaMode===2&&(n*=330),t.factor*=Math.pow(2,n/240),t.clientX=e.clientX,t.rafId==null&&(t.rafId=requestAnimationFrame(()=>this._applyWheelZoom())),t.endTimer&&clearTimeout(t.endTimer),t.endTimer=setTimeout(()=>this._endWheelZoom(),150)}_applyWheelZoom(){let e=this.w,t=this._wheel();t.rafId=null;let n=t.factor;if(t.factor=1,n===1||e.globals.isDestroyed)return;let r=this._gridRect();if(!r||!r.width)return;let{min:i,max:a}=this._currentXWindow(),o=a-i,s=Math.min(Math.max((t.clientX-r.left)/r.width,0),1),c=o*n,l=this._clampBounds();if(l){let t=e.globals.minXDiff>0&&isFinite(e.globals.minXDiff)?e.globals.minXDiff:0,n=Math.max(2*t,1e-6*(l.max-l.min));c<n&&(c=n),c>l.max-l.min&&(c=l.max-l.min)}let u=i+s*o-s*c,d=u+c,f=1e-9*o;if(Math.abs(u-i)<f&&Math.abs(d-a)<f||isNaN(u)||isNaN(d))return;let p=this.getBeforeZoomRange({min:u,max:d},void 0);p&&p.xaxis&&(u=p.xaxis.min,d=p.xaxis.max),this._applyXRange(u,d,!0)}_endWheelZoom(){let e=this.w;if(this._wheel().endTimer=null,e.globals.isDestroyed||!e.interact.zoomed)return;let{min:t,max:n}=this._currentXWindow(),r=e.globals.initialConfig?x.clone(e.globals.initialConfig.yaxis):[],i=this.ctx.toolbar;i&&i.zoomCallback({min:t,max:n},r)}makeSelectionRectDraggable(){let e=this.w;if(!this.selectionRect)return;let t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:()=>{},updateRot:()=>{},createHandle:(e,t,n,r,i)=>i===`l`||i===`r`?e.circle(8).css({"stroke-width":1,stroke:`#333`,fill:`#fff`}):e.circle(0),updateHandle:(e,t)=>
1799e.center(t[0],t[1])}).resize().on(`resize`,()=>{var t;if(e.interact.selectionEnabled)e.interact.selection={x:parseFloat(this.selectionRect.node.getAttribute(`x`)),y:parseFloat(this.selectionRect.node.getAttribute(`y`)),width:parseFloat(this.selectionRect.node.getAttribute(`width`)),height:parseFloat(this.selectionRect.node.getAttribute(`height`))},clearTimeout((t=this.w.globals.selectionResizeTimer)==null?void 0:t),this.w.globals.selectionResizeTimer=window.setTimeout(()=>{this._emitSelectionFromRect()},30);else{let t=e.interact.zoomEnabled?e.config.chart.zoom.type:e.config.chart.selection.type;this.handleMouseUp({zoomtype:t,isResized:!0})}}))}preselectedSelection(){let e=this.w,t=this.xyRatios;if(!e.interact.zoomEnabled){if(e.interact.selection!==void 0&&e.interact.selection!==null)this.drawSelectionRect(c(s({},e.interact.selection),{translateX:e.layout.translateX,translateY:e.layout.translateY}));else if(e.config.chart.selection.xaxis.min!==void 0&&e.config.chart.selection.xaxis.max!==void 0){let n=jn.dataXToPx(e,e.config.chart.selection.xaxis.min),r=jn.dataXToPx(e,e.config.chart.selection.xaxis.max)-n;e.axisFlags.isRangeBar&&(n=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,r=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);let i={x:n,y:0,width:r,height:e.layout.gridHeight,translateX:e.layout.translateX,translateY:e.layout.translateY,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),typeof e.config.chart.events.selection==`function`&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}}drawSelectionRect({x:e,y:t,width:n,height:r,translateX:i=0,translateY:a=0}){let o=this.w,s=this.zoomRect,c=this.selectionRect;if(this.dragged||o.interact.selection!==null){let l={transform:`translate(`+i+`, `+a+`)`};o.interact.zoomEnabled&&this.dragged&&(n<0&&(n=1),s.attr({x:e,y:t,width:n,height:r,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),K.setAttrs(s.node,l)),o.interact.selectionEnabled&&(c.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),K.setAttrs(c.node,l))}}hideSelectionRect(e){e&&e.attr({x:0,y:0,width:0,height:0})}selectionDrawing({context:e,zoomtype:t}){let n=this.w,r=e,i=this._gridRect();if(!i)return;let a=r.startX-1,o=r.startY,l=!1,u=!1,d=this._screenXToPlotPx(r.clientX),f=r.clientY-i.top,p=d-a,m=f-o,h={translateX:n.layout.translateX,translateY:n.layout.translateY};return Math.abs(p+a)>n.layout.gridWidth?p=n.layout.gridWidth-a:d<0&&(p=a),a>d&&(l=!0,p=Math.abs(p)),o>f&&(u=!0,m=Math.abs(m)),h=t===`x`?{x:l?a-p:a,y:0,width:p,height:n.layout.gridHeight}:t===`y`?{x:0,y:u?o-m:o,width:n.layout.gridWidth,height:m}:{x:l?a-p:a,y:u?o-m:o,width:p,height:m},h=c(s({},h),{translateX:n.layout.translateX,translateY:n.layout.translateY}),r.drawSelectionRect(h),r.selectionDragging(`resizing`),h}selectionDragging(e,t){var n;let r=this.w;if(!t)return;t.preventDefault();let{handler:i,box:a}=t.detail,o=this.constraints,{x:s,y:c}=a;s<o.x&&(s=o.x),c<o.y&&(c=o.y),a.x2>o.x2&&(s=o.x2-a.w),a.y2>o.y2&&(c=o.y2-a.h),i.move(s,c);let l=this.selectionRect,u=0;e===`resizing`&&(u=30);let d=e=>parseFloat(l.node.getAttribute(e)),f={x:d(`x`),y:d(`y`),width:d(`width`),height:d(`height`)};r.interact.selection=f;let p=r.config.chart.link,m=!(!p||!p.enabled&&typeof p.dimension!=`function`);(typeof r.config.chart.events.selection==`function`||m)&&r.interact.selectionEnabled&&(clearTimeout((n=this.w.globals.selectionResizeTimer)==null?void 0:n),this.w.globals.selectionResizeTimer=window.setTimeout(()=>{this._emitSelectionFromRect()},u))}_emitSelectionFromRect(){var e;let t=this.w;if(!t.interact.selectionEnabled)return;let n=t.config.chart.link,r=!(!n||!n.enabled&&typeof n.dimension!=`function`);if(typeof t.config.chart.events.selection!=`function`&&!r)return;let i=this._gridRect();if(!i)return;let a=this.selectionRect.node.getBoundingClientRect(),o=this.xyRatios,s,c,l,u,d=this._screenXToPlotPx(a.left),f=this._screenXToPlotPx(a.right);if(t.axisFlags.isRangeBar)s=t.globals.yAxisScale[0].niceMin+d*o.invertedYRatio,c=t.globals.yAxisScale[0].niceMin+f*o.invertedYRatio,l=0,u=1;else{if(!t.globals.xAxisScale)return;s=jn.pxToDataX(t,d),c=jn.pxToDataX(t,f),l=t.globals.yAxisScale[0].niceMin+(i.bottom-a.bottom)*o.yRatio[0],u=t.globals.yAxisScale[0].niceMax-(a.top-i.top)*o.yRatio[0]}let p={xaxis:{min:s,max:c},yaxis:{min:l,max:u}};typeof t.config.chart.events.selection==`function`&&t.config.chart.events.selection(this.ctx,p),t.config.chart.brush.enabled&&t.config.chart.events.brushScrolled!==void 0&&t.config.chart.events.brushScrolled(this.ctx,p),(e=this.ctx.linkedViews)==null||e.onSourceSelection(p.xaxis)}selectionDrawn({context:e,zoomtype:t}){var n;let r=this.w,i=e,a=this.xyRatios,o=this.ctx.toolbar,s=r.interact.zoomEnabled?i.zoomRect.node.getBoundingClientRect():i.selectionRect.node.getBoundingClientRect(),c=i._gridRect();if(!c)return;let l=this._screenXToPlotPx(s.left),u=this._screenXToPlotPx(s.right),d=s.top-c.top,f=s.bottom-c.top,p,m;r.axisFlags.isRangeBar?(p=r.globals.yAxisScale[0].niceMin+l*a.invertedYRatio,m=r.globals.yAxisScale[0].niceMin+u*a.invertedYRatio):(p=jn.pxToDataX(r,l),m=jn.pxToDataX(r,u));let h=[],g=[];if(r.config.yaxis.forEach((e,t)=>{let n=r.globals.seriesYAxisMap[t][0],i=r.globals.yAxisScale[t].niceMax-a.yRatio[n]*d,o=r.globals.yAxisScale[t].niceMax-a.yRatio[n]*f;h.push(i),g.push(o)}),i.dragged&&(i.dragX>10||i.dragY>10)&&p!==m){if(r.interact.zoomEnabled){if(!r.globals.initialConfig)return;let e=x.clone(r.globals.initialConfig.yaxis),n=x.clone(r.globals.initialConfig.xaxis);if(r.interact.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(p=Math.floor(p),m=Math.floor(m),p<1&&(p=1,m=r.globals.dataPoints),m-p<2&&(m=p+1)),t!==`xy`&&t!==`x`||(n={min:p,max:m}),t!==`xy`&&t!==`y`||e.forEach((t,n)=>{e[n].min=g[n],e[n].max=h[n]}
1799),o){let t=o.getBeforeZoomRange(n,e);t&&(n=t.xaxis?t.xaxis:n,e=t.yaxis?t.yaxis:e)}let a={xaxis:n};r.config.chart.group||(a.yaxis=e),i.ctx.updateHelpers._updateOptions(a,!1,i.w.config.chart.animations.dynamicAnimation.enabled),typeof r.config.chart.events.zoomed==`function`&&o.zoomCallback(n,e)}else if(r.interact.selectionEnabled){let e=null,a=null;if(a={min:p,max:m},t===`xy`||t===`y`){let t=x.clone(r.config.yaxis);e=t,t.forEach((e,n)=>{t[n].min=g[n],t[n].max=h[n]})}r.interact.selection=i.selection,typeof r.config.chart.events.selection==`function`&&r.config.chart.events.selection(i.ctx,{xaxis:a,yaxis:e}),(n=i.ctx.linkedViews)==null||n.onSourceSelection(a)}}}panDragging({context:e}){var t;let n=this.w,r=e;if(n.interact.lastClientPosition.x!==void 0){let e=n.interact.lastClientPosition.x-r.clientX,i=((t=n.interact.lastClientPosition.y)==null?0:t)-r.clientY;Math.abs(e)>Math.abs(i)&&e>0?this.moveDirection=`left`:Math.abs(e)>Math.abs(i)&&e<0?this.moveDirection=`right`:Math.abs(i)>Math.abs(e)&&i>0?this.moveDirection=`up`:Math.abs(i)>Math.abs(e)&&i<0&&(this.moveDirection=`down`)}n.interact.lastClientPosition={x:r.clientX,y:r.clientY};let i=n.axisFlags.isRangeBar?n.globals.minY:n.globals.minX,a=n.axisFlags.isRangeBar?n.globals.maxY:n.globals.maxX;r.panScrolled(i,a)}panScrolled(e,t){var n,r;let i=this.w,a=this.xyRatios;if(!i.globals.initialConfig)return;let o=x.clone(i.globals.initialConfig.yaxis),s=a.xRatio,c=i.globals.minX,l=i.globals.maxX;if(i.axisFlags.isRangeBar&&(s=a.invertedYRatio,c=i.globals.minY,l=i.globals.maxY),this.moveDirection===`left`?(e=c+i.layout.gridWidth/15*s,t=l+i.layout.gridWidth/15*s):this.moveDirection===`right`&&(e=c-i.layout.gridWidth/15*s,t=l-i.layout.gridWidth/15*s),!i.axisFlags.isRangeBar){let a=(n=i.globals.dataReducerRawMinX)==null?i.globals.initialMinX:n,o=(r=i.globals.dataReducerRawMaxX)==null?i.globals.initialMaxX:r;(e<a||t>o)&&(e=c,t=l)}let u={xaxis:{min:e,max:t}};i.config.chart.group||(u.yaxis=o),this.updateScrolledChart(u,e,t)}updateScrolledChart(e,t,n){let r=this.w;if(this.ctx.updateHelpers._updateOptions(e,!1,!1),typeof r.config.chart.events.scrolled==`function`){let e={xaxis:{min:t,max:n}};r.config.chart.events.scrolled(this.ctx,e),this.ctx.events.fireEvent(`scrolled`,e)}}_momentumEnabled(){return this._pinchEnabled()||this._panInertiaEnabled()}_pinchEnabled(){return this._incidentalZoomEnabled(this.w.config.chart.zoom.pinch)}_panInertiaEnabled(){let e=this.w.config.chart;return!(!e.pan||!e.pan.inertia)}_m(){let e=this.w.interact;return e.momentum||(e.momentum={busy:!1,pinch:null,panState:null,samples:[],inertiaRAF:null}),e.momentum}_currentXWindow(){let e=this.w;return e.axisFlags.isRangeBar?{min:e.globals.minY,max:e.globals.maxY}:{min:e.globals.minX,max:e.globals.maxX}}_gridRect(){let e=this.w.dom.baseEl,t=e&&e.querySelector(`.apexcharts-grid`);return t?t.getBoundingClientRect():null}_screenXToPlotPx(e){return jn.screenXToPlotPx(this.w,e)}_clampBounds(){var e,t;let n=this.w;return n.axisFlags.isRangeBar?null:{min:(e=n.globals.dataReducerRawMinX)==null?n.globals.initialMinX:e,max:(t=n.globals.dataReducerRawMaxX)==null?n.globals.initialMaxX:t}}_applyXRange(e,t,n){let r=this.w;if(!r.globals.initialConfig)return!1;let i=this._currentXWindow(),a=n&&t-e>i.max-i.min,o=this._clampBounds();if(o){let n=t-e;e<o.min&&(t=(e=o.min)+n),t>o.max&&(e=(t=o.max)-n),e<o.min&&(e=o.min)}if(r.config.xaxis.convertedCatToNumeric&&(e=Math.floor(e),t=a?Math.ceil(t):Math.floor(t),e<1&&(e=1),o&&t>o.max&&(t=Math.floor(o.max)),t-e<2)||!(t>e))return!1;let s={xaxis:{min:e,max:t}};return r.config.chart.group||(s.yaxis=x.clone(r.globals.initialConfig.yaxis)),n&&(r.interact.zoomed=!0),this.ctx.updateHelpers._updateOptions(s,!1,!1),{minX:e,maxX:t}}_cancelInertia(){let e=this._m();e.inertiaRAF!=null&&(cancelAnimationFrame(e.inertiaRAF),e.inertiaRAF=null)}_fireScrolled(){let e=this.w;if(typeof e.config.chart.events.scrolled!=`function`)return;let{min:t,max:n}=this._currentXWindow(),r={xaxis:{min:t,max:n}};e.config.chart.events.scrolled(this.ctx,r),this.ctx.events.fireEvent(`scrolled`,r)}_pushSample(e,t){let n=this._m().samples;for(n.push({x:e,t});n.length>6;)n.shift()}momentumTouch(e){let t=this.w,n=this._m(),r=e.type;if(r===`touchstart`){this._cancelInertia();let r=this._gridRect();if(!r)return;if(e.touches.length>=2&&this._pinchEnabled())e.preventDefault(),n.busy=!0,n.panState=null,this._beginPinch(e,r);else if(e.touches.length===1&&this._panInertiaEnabled()&&t.interact.panEnabled){n.busy=!0,n.pinch=null;let r=e.touches[0],i=this._currentXWindow(),a=t.layout.gridWidth||1;n.panState={startX:r.clientX,startY:r.clientY,axis:null,minX0:i.min,maxX0:i.max,ratio0:(i.max-i.min)/a},n.samples=[{x:r.clientX,t:e.timeStamp}]}return}r===`touchmove`?n.pinch&&e.touches.length>=2?(e.preventDefault(),this._movePinch(e)):n.panState&&e.touches.length===1&&this._movePan(e):(n.pinch?e.touches.length<2&&this._endPinch():n.panState&&e.touches.length===0&&this._endPan(),e.touches.length===0&&(t.interact.mousedown=!1,this.dragged=!1,n.inertiaRAF!=null||n.pinch||n.panState||(n.busy=!1)))}_beginPinch(e,t){let n=this.w,r=e.touches[0],i=e.touches[1],a=Math.hypot(i.clientX-r.clientX,i.clientY-r.clientY)||1,o=(r.clientX+i.clientX)/2-t.left-n.globals.barPadForNumericAxis,{min:s,max:c}=this._currentXWindow();this._m().pinch={d0:a,cx0:o,minX0:s,maxX0:c,gridWidth:n.layout.gridWidth||1}}_movePinch(e){let t=this.w,n=this._m().pinch;if(!n)return;let r=this._gridRect();if(!r)return;let i=e.touches[0],a=e.touches[1],o=Math.hypot(a.clientX-i.clientX,a.clientY-i.clientY)||1,s=(i.clientX+a.clientX)/2-r.left-t.globals.barPadForNumericAxis,c=n.maxX0-n.minX0,l=c*(n.d0/o),u=n.minX0+n.cx0/n.gridWidth*c-s/n.gridWidth*l,d=u+l,f=this._clampBounds();if(f){let e=t.globals.minXDiff>0&&isFinite(t.globals.minXDiff)?t.globals.minXDiff:0,n=Math.max(2*e,1e-6*(f.max-f.min));
1799if(d-u<n){let e=(u+d)/2;u=e-n/2,d=e+n/2}}this._applyXRange(u,d,!0)}_endPinch(){let e=this.w;this._m().pinch=null;let{min:t,max:n}=this._currentXWindow(),r={min:t,max:n},i=e.globals.initialConfig?x.clone(e.globals.initialConfig.yaxis):[],a=this.ctx.toolbar;a&&a.zoomCallback(r,i)}_movePan(e){let t=this._m(),n=t.panState,r=e.touches[0];if(!n.axis){let i=Math.abs(r.clientX-n.startX),a=Math.abs(r.clientY-n.startY);if(i<6&&a<6)return void this._pushSample(r.clientX,e.timeStamp);if(a>i)return t.busy=!1,void(t.panState=null);n.axis=`x`}if(n.axis!==`x`)return;e.preventDefault();let i=(r.clientX-n.startX)*n.ratio0;this._pushSample(r.clientX,e.timeStamp),this._applyXRange(n.minX0-i,n.maxX0-i,!1)}_endPan(){let e=this._m(),t=e.panState;e.panState=null;let n=0,r=e.samples;if(r.length>=2){let e=r[0],t=r[r.length-1],i=t.t-e.t;i>0&&(n=(t.x-e.x)/i)}e.samples=[],t&&t.axis===`x`&&this._panInertiaEnabled()&&Math.abs(n)>.05?this._startInertia(n):(e.busy=!1,this._fireScrolled())}_startInertia(e){let t=this.w,n=this._m(),r=t.config.chart.pan&&t.config.chart.pan.friction,i=typeof r==`number`?Math.min(Math.max(r,.5),.999):.92,a=e,o=null;n.busy=!0;let s=e=>{if(t.globals.isDestroyed)return n.inertiaRAF=null,void(n.busy=!1);if(o==null)return o=e,void(n.inertiaRAF=requestAnimationFrame(s));let r=e-o;if(o=e,a*=Math.pow(i,r/16.6667),Math.abs(a)<.02)return n.inertiaRAF=null,n.busy=!1,void this._fireScrolled();let c=this._currentXWindow(),l=t.layout.gridWidth||1,u=(c.max-c.min)/l,d=a*r*u,f=this._applyXRange(c.min-d,c.max-d,!1),p=this._clampBounds();if(!f||p&&(d>0&&f.minX<=p.min+1e-6*(p.max-p.min)||d<0&&f.maxX>=p.max-1e-6*(p.max-p.min)))return n.inertiaRAF=null,n.busy=!1,void this._fireScrolled();n.inertiaRAF=requestAnimationFrame(s)};n.inertiaRAF=requestAnimationFrame(s)}}});let si=class{constructor(e){this.w=e.w,this.annoCtx=e}setOrientations(e,t=null){var n,r;let i=this.w;if(e.label.orientation===`vertical`){let a=t===null?0:t,o=i.dom.baseEl.querySelector(`.apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='${a}']`);if(o!==null){let t=o.getBBox();o.setAttribute(`x`,String(parseFloat((n=o.getAttribute(`x`))==null?`0`:n)-t.height+4));let i=e.label.position===`top`?t.width:-t.width;o.setAttribute(`y`,String(parseFloat((r=o.getAttribute(`y`))==null?`0`:r)+i));let{x:a,y:s}=this.annoCtx.graphics.rotateAroundCenter(o);o.setAttribute(`transform`,`rotate(-90 ${a} ${s})`)}}}
1799addBackgroundToAnno(e,t){let n=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;let r=n.dom.baseEl.querySelector(`.apexcharts-grid`);if(!r)return null;let i=r.getBoundingClientRect(),a=r.getBBox(),o=i.width/a.width||1,s=e.getBoundingClientRect(),{left:c,right:l,top:u,bottom:d}=t.label.style.padding;t.label.orientation===`vertical`&&([u,d,c,l]=[c,l,u,d]);let f=i.left-a.x*o,p=i.top-a.y*o,m=(s.left-f)/o-c,h=(s.top-p)/o-u,g=this.annoCtx.graphics.drawRect(m,h,s.width/o+c+l,s.height/o+u+d,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}annotationsBackground(){let e=this.w,t=(t,n,r)=>{let i=e.dom.baseEl.querySelector(`.apexcharts-${r}-annotations .apexcharts-${r}-annotation-label[rel='${n}']`);if(i){let n=i.parentNode,r=this.addBackgroundToAnno(i,t);if(r){n==null||n.insertBefore(r.node,i);let a=i.getAttribute(`x`);a!==null&&Ae(r,parseFloat(a),e),t.label.mouseEnter&&r.node.addEventListener(`mouseenter`,t.label.mouseEnter.bind(this,t)),t.label.mouseLeave&&r.node.addEventListener(`mouseleave`,t.label.mouseLeave.bind(this,t)),t.label.click&&r.node.addEventListener(`click`,t.label.click.bind(this,t))}}};e.config.annotations.xaxis.forEach((e,n)=>t(e,n,`xaxis`)),e.config.annotations.yaxis.forEach((e,n)=>t(e,n,`yaxis`)),e.config.annotations.points.forEach((e,n)=>t(e,n,`point`))}usesCategoryX(){let e=this.w;return(e.config.xaxis.type===`category`||e.config.xaxis.convertedCatToNumeric)&&!this.annoCtx.invertAxis&&!e.axisFlags.dataFormatXNumeric&&!e.config.chart.sparkline.enabled}hasXDomain(){let e=this.w;return this.annoCtx.invertAxis?x.isNumber(e.globals.minY)&&x.isNumber(e.globals.yRange[0]):this.usesCategoryX()?e.labelData.labels.length>0||e.labelData.categoryLabels.length>0:x.isNumber(e.globals.minX)&&x.isNumber(e.globals.xRange)}getY1Y2(e,t){var n,r,i;let a=this.w,o=e===`y1`?t.y:t.y2,s=typeof o==`string`&&o.includes(`px`),c,l=!1;if(this.annoCtx.invertAxis){let e=a.config.xaxis.convertedCatToNumeric?a.labelData.categoryLabels:a.labelData.labels,r=e.indexOf(o);if(!s&&r===-1)return{yP:0,clipped:!0};let i=a.dom.baseEl.querySelector(`.apexcharts-yaxis-texts-g text:nth-child(${r+1})`);c=i?parseFloat((n=i.getAttribute(`y`))==null?`0`:n):(a.layout.gridHeight/e.length-1)*(r+1)-a.globals.barHeight,t.seriesIndex!==void 0&&a.globals.barHeight&&(c-=a.globals.barHeight/2*(a.seriesData.series.length-1)-a.globals.barHeight*t.seriesIndex)}else{if(!a.config.yaxis[t.yAxisIndex])return{yP:0,clipped:!0};let e=a.globals.seriesYAxisMap[t.yAxisIndex],n=(r=e==null?void 0:e[0])==null?null:r;if(n===null&&a.seriesData.series.length)return{yP:0,clipped:!0};let s=n===null?a.globals.minY:a.globals.minYArr[n],u=n===null?a.globals.maxY-a.globals.minY:a.globals.yRange[n],d=a.config.yaxis[t.yAxisIndex].logarithmic&&n!==null?new V(this.w).getLogVal(a.config.yaxis[t.yAxisIndex].logBase,o,n)/a.globals.yLogRatio[n]:(o-s)/(u/a.layout.gridHeight);c=a.layout.gridHeight-Math.min(Math.max(d,0),a.layout.gridHeight),l=d>a.layout.gridHeight||d<0,!t.marker||t.y!==void 0&&t.y!==null||(c=0),(i=a.config.yaxis[t.yAxisIndex])!=null&&i.reversed&&(c=d)}return s&&(c=parseFloat(o)),{yP:c,clipped:l}}getX1X2(e,t){let n=this.w,r=e===`x1`?t.x:t.x2,i=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,a=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,o=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=!1,c=typeof r==`string`&&r.includes(`px`),l=r==null&&t.marker;if(!c&&!l&&!this.hasXDomain())return{x:0,clipped:!0};let u=this.annoCtx.inversedReversedAxis?(a-r)/(o/n.layout.gridWidth):(r-i)/(o/n.layout.gridWidth);return n.config.xaxis.type!==`category`&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.axisFlags.dataFormatXNumeric||n.config.chart.sparkline.enabled||(u=this.getStringX(r)),typeof r==`string`&&r.includes(`px`)&&(u=parseFloat(r)),r==null&&t.marker&&(u=n.layout.gridWidth),t.seriesIndex!==void 0&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(u-=n.globals.barWidth/2*(n.seriesData.series.length-1)-n.globals.barWidth*t.seriesIndex),typeof u!=`number`&&(u=0,s=!0),parseFloat(u.toFixed(10))>parseFloat(n.layout.gridWidth.toFixed(10))?(u=n.layout.gridWidth,s=!0):u<0&&(u=0,s=!0),{x:u,clipped:s}}getStringX(e){var t;let n=this.w,r=e;if(n.config.xaxis.convertedCatToNumeric&&n.labelData.categoryLabels.length){let t=String(e);e=n.labelData.categoryLabels.findIndex(e=>String(e)===t)+1}let i=n.labelData.labels.map(e=>Array.isArray(e)?e.join(` `):e).indexOf(e),a=n.dom.baseEl.querySelector(`.apexcharts-xaxis-texts-g text:nth-child(${i+1})`);return a&&(r=parseFloat((t=a.getAttribute(`x`))==null?`0`:t)),r}};class ci{constructor(e){this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new si(this.annoCtx)}addXaxisAnnotation(e,t,n){let r=this.w,i=this.helpers.getX1X2(`x1`,e),a=i.x,o=i.clipped,s,c=!0,l=e.label.text,u=e.strokeDashArray;if(x.isNumber(a)){if(e.x2===null||e.x2===void 0){if(!o){let n=this.annoCtx.graphics.drawLine(a+e.offsetX,0+e.offsetY,a+e.offsetX,r.layout.gridHeight+e.offsetY,e.borderColor,u,e.borderWidth);t.appendChild(n.node),e.id&&n.node.classList.add(e.id),Ae(n,a+e.offsetX,r)}}else{let n=this.helpers.getX1X2(`x2`,e);if(s=n.x,c=n.clipped,s<a){let e=a;a=s,s=e}let i=this.annoCtx.graphics.drawRect(a+e.offsetX,0+e.offsetY,s-a,r.layout.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,u);i.node.classList.add(`apexcharts-annotation-rect`),i.attr(`clip-path`,`url(#gridRectMask${r.globals.cuid})`),t.appendChild(i.node),e.id&&i.node.classList.add(e.id),Ae(i,a+e.offsetX,r)}if(!o||!c){let i=this.annoCtx.graphics.getTextRects(l,e.label.style.fontSize),o=e.label.position===`top`?4:e.label.position===`center`?r.layout.gridHeight/2+(e.label.orientation===`vertical`?i.width/2:0):r.layout.gridHeight,s=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:o+e.label.offsetY-(e.label.orientation===`vertical`?e.label.position===`top`?i.width/2-12:-i.width/2:0),text:l,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-xaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:``}`});s.attr({rel:n}),t.appendChild(s.node),Ae(s,a+e.label.offsetX,r),this.annoCtx.helpers.setOrientations(e,n)}}}drawXAxisAnnotations(){let e=this.w,t=this.annoCtx.graphics.group({class:`apexcharts-xaxis-annotations`});return e.config.annotations.xaxis.map((e,n)=>{this.addXaxisAnnotation(e,t.node,n)}),t}}class li{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new si(this.annoCtx),this.axesUtils=new Ue(this.annoCtx.w,{theme:this.annoCtx.theme,timeScale:this.annoCtx.timeScale})}addYaxisAnnotation(e,t,n){let r=this.w,i=e.strokeDashArray,a=this.helpers.getY1Y2(`y1`,e),o=a.yP,s=a.clipped,c,l=!0,u=!1,d=e.label.text;if(e.y2===null||e.y2===void 0){if(!s){u=!0;let n=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,i,e.borderWidth);t.appendChild(n.node),e.id&&n.node.classList.add(e.id)}}else{if(a=this.helpers.getY1Y2(`y2`,e),c=a.yP,l=a.clipped,c>o){let e=o;o=c,c=e}if(!s||!l){u=!0;let n=this.annoCtx.graphics.drawRect(0+e.offsetX,c+e.offsetY,this._getYAxisAnnotationWidth(e),o-c,0,e.fillColor,e.opacity,1,e.borderColor,i);n.node.classList.add(`apexcharts-annotation-rect`),n.attr(`clip-path`,`url(#gridRectMask${r.globals.cuid})`),t.appendChild(n.node),e.id&&n.node.classList.add(e.id)}}if(u){let i=e.label.position===`right`?r.layout.gridWidth:e.label.position===`center`?r.layout.gridWidth/2:0,a=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:(c==null?o:c)+e.label.offsetY-3,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-yaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:``}`});a.attr({rel:n}),t.appendChild(a.node)}}_getYAxisAnnotationWidth(e){let t=this.w,n=t.layout.gridWidth;return n=e.width.indexOf(`%`)>-1?t.layout.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10),n+e.offsetX}drawYAxisAnnotations(){let e=this.w,t=this.annoCtx.graphics.group({class:`apexcharts-yaxis-annotations`});return e.config.annotations.yaxis.forEach((e,n)=>{e.yAxisIndex=this.axesUtils.translateYAxisIndex(e.yAxisIndex),this.axesUtils.isYAxisHidden(e.yAxisIndex)&&this.axesUtils.yAxisAllSeriesCollapsed(e.yAxisIndex)||this.addYaxisAnnotation(e,t.node,n)}),t}}class ui{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new si(this.annoCtx)}addPointAnnotation(e,t,n){let r=this.w;if(r.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)return;let i=this.helpers.getX1X2(`x1`,e),a=i.x,o=i.clipped,s=this.helpers.getY1Y2(`y1`,e),c=s.yP,l=s.clipped;if(x.isNumber(a)&&!l&&!o){let i={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radiu
1799s,class:`apexcharts-point-annotation-marker ${e.marker.cssClass} ${e.id?e.id:``}`},o=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,c+e.marker.offsetY,i);t.appendChild(o.node);let s=[o.node];Ae(o,a,r);let l=e.label.text?e.label.text:``,u=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:c+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:l,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-point-annotation-label ${e.label.style.cssClass} ${e.id?e.id:``}`});if(u.attr({rel:n}),t.appendChild(u.node),Ae(u,a,r),e.customSVG.SVG){let n=this.annoCtx.graphics.group({class:`apexcharts-point-annotations-custom-svg `+e.customSVG.cssClass});n.attr({transform:`translate(${a+e.customSVG.offsetX}, ${c+e.customSVG.offsetY})`}),n.node.innerHTML=e.customSVG.SVG,t.appendChild(n.node),s.push(n.node)}if(e.image.path){let t=e.image.width?e.image.width:20,n=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:a+e.image.offsetX-t/2,y:c+e.image.offsetY-n/2,width:t,height:n,path:e.image.path,appendTo:`.apexcharts-point-annotations`}),s.push(o.node)}e.tooltip&&e.tooltip.enabled&&s.forEach(t=>{t.addEventListener(`mouseenter`,()=>{this.showPointTooltip(e,t)}),t.addEventListener(`mouseleave`,()=>{this.hidePointTooltip()})}),e.mouseEnter&&o.node.addEventListener(`mouseenter`,e.mouseEnter.bind(this,e)),e.mouseLeave&&o.node.addEventListener(`mouseleave`,e.mouseLeave.bind(this,e)),e.click&&o.node.addEventListener(`click`,e.click.bind(this,e))}}getPointTooltipEl(){let e=this.w,t=e.dom.elWrap.querySelector(`.apexcharts-annotation-tooltip`);return t||(t=v.createElementNS(`http://www.w3.org/1999/xhtml`,`div`),t.classList.add(`apexcharts-tooltip`,`apexcharts-annotation-tooltip`),e.dom.elWrap.appendChild(t)),t}getPointTooltipContent(e){let t=this.w,n=e.tooltip||{};if(typeof n.formatter==`function`)return n.formatter({annotation:e,seriesIndex:e.seriesIndex,id:e.id,w:t});let r=n.text==null?e.label&&e.label.text:n.text;return Array.isArray(r)&&(r=r.join(`<br/>`)),r==null?``:String(r)}showPointTooltip(e,t){let n=this.w,r=this.getPointTooltipContent(e);if(!r)return;let i=this.getPointTooltipEl();i.innerHTML=r;let a=e.tooltip.theme||n.config.tooltip.theme||`light`;i.classList.remove(`apexcharts-theme-light`,`apexcharts-theme-dark`),i.classList.add(`apexcharts-theme-${a}`),i.classList.add(`apexcharts-active`);let o=n.dom.elWrap.getBoundingClientRect(),s=t.getBoundingClientRect(),c=i.getBoundingClientRect(),l=e.tooltip.offsetX||0,u=e.tooltip.offsetY||0,d=s.left-o.left+s.width/2-c.width/2,f=s.top-o.top-c.height-10;d=Math.max(0,Math.min(d,o.width-c.width)),f<0&&(f=s.top-o.top+s.height+10),i.style.left=d+l+`px`,i.style.top=f+u+`px`}hidePointTooltip(){let e=this.w.dom.elWrap.querySelector(`.apexcharts-annotation-tooltip`);e&&e.classList.remove(`apexcharts-active`)}drawPointAnnotations(){let e=this.w,t=this.annoCtx.graphics.group({class:`apexcharts-point-annotations`});return e.config.annotations.points.map((e,n)=>{this.addPointAnnotation(e,t.node,n)}),t}}Gr.registerFeatures({annotations:class{constructor(e,{theme:t=null,timeScale:n=null}={}){this.w=e,this.theme=t,this.timeScale=n,this.invertAxis=void 0,this.inversedReversedAxis=void 0,this.graphics=new K(this.w),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new si(this),this.xAxisAnnotations=new ci(this),this.yAxisAnnotations=new li(this),this.pointsAnnotations=new ui(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.layout.gridWidth/this.w.globals.dataPoints}drawAxesAnnotations(){let e=this.w;if(e.globals.axisCharts){let t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,a=[t,n,r],o=[n.node,t.node,r.node],s=e.config.chart.type===`line`||e.config.chart.type===`area`||e.config.chart.type===`rangeArea`,c=[s,!1,s];for(let t=0;t<3;t++)e.dom.elGraphical.add(a[t]),!i||e.globals.resized||e.globals.dataChanged||e.config.chart.type!==`scatter`&&e.config.chart.type!==`bubble`&&e.globals.dataPoints>1&&!c[t]&&o[t].classList.add(`apexcharts-element-hidden`),e.globals.delayedElements.push({el:o[t],index:0});
1799this.helpers.annotationsBackground()}}drawImageAnnos(){this.w.config.annotations.images.map(e=>{this.addImage(e)})}drawTextAnnos(){this.w.config.annotations.texts.map(e=>{this.addText(e)})}addXaxisAnnotation(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}addYaxisAnnotation(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}addPointAnnotation(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}addText(e){let{x:t,y:n,text:r,textAnchor:i,foreColor:a,fontSize:o,fontFamily:s,fontWeight:c,cssClass:l,backgroundColor:u,borderWidth:d,strokeDashArray:f,borderRadius:p,borderColor:m,appendTo:h=`.apexcharts-svg`,paddingLeft:g=4,paddingRight:_=4,paddingBottom:v=2,paddingTop:y=2}=e,b=this.w,x=this.graphics.drawText({x:t,y:n,text:r,textAnchor:i||`start`,fontSize:o||`12px`,fontWeight:c||`regular`,fontFamily:s||b.config.chart.fontFamily,foreColor:a||b.config.chart.foreColor,cssClass:l}),S=b.dom.baseEl.querySelector(h);S&&S.appendChild(x.node);let C=x.bbox();if(r){let e=this.graphics.drawRect(C.x-g,C.y-y,C.width+g+_,C.height+v+y,p,u||`transparent`,1,d,m,f);S.insertBefore(e.node,x.node)}}addImage(e){let t=this.w,{path:n,x:r=0,y:i=0,width:a=20,height:o=20,appendTo:s=`.apexcharts-svg`}=e,c=t.dom.Paper.image(n);c.size(a,o).move(r,i);let l=t.dom.baseEl.querySelector(s);return l&&l.appendChild(c.node),c}addXaxisAnnotationExternal(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:`xaxis`,contextMethod:n.addXaxisAnnotation}),n}addYaxisAnnotationExternal(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:`yaxis`,contextMethod:n.addYaxisAnnotation}),n}addPointAnnotationExternal(e,t,n){return this.invertAxis===void 0&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:`point`,contextMethod:n.addPointAnnotation}),n}addAnnotationExternal({params:e,pushToMemory:t,context:n,type:r,contextMethod:i}){let a=n,o=a.w,s=o.dom.baseEl.querySelector(`.apexcharts-${r}-annotations`),c=s.childNodes.length+1,l=new T,u=Object.assign({},r===`xaxis`?l.xAxisAnnotation:r===`yaxis`?l.yAxisAnnotation:l.pointAnnotation),d=x.extend(u,e);switch(r){case`xaxis`:this.addXaxisAnnotation(d,s,c);break;case`yaxis`:this.addYaxisAnnotation(d,s,c);break;case`point`:this.addPointAnnotation(d,s,c)}let f=o.dom.baseEl.querySelector(`.apexcharts-${r}-annotations .apexcharts-${r}-annotation-label[rel='${c}']`),p=this.helpers.addBackgroundToAnno(f,d);return p&&s.insertBefore(p.node,f),t&&o.globals.memory.methodsToExec.push({context:a,id:d.id?d.id:x.randomId(),method:i,label:`addAnnotation`,params:e}),n}_removeAnnotationTooltip(e){let t=e.dom.elWrap&&e.dom.elWrap.querySelector(`.apexcharts-annotation-tooltip`);t&&t.parentNode&&t.parentNode.removeChild(t)}clearAnnotations(e){let t=e.w;this._removeAnnotationTooltip(t);let n=t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations`);for(let e=t.globals.memory.methodsToExec.length-1;e>=0;e--)t.globals.memory.methodsToExec[e].label!==`addText`&&t.globals.memory.methodsToExec[e].label!==`addAnnotation`||t.globals.memory.methodsToExec.splice(e,1);Array.prototype.forEach.call(n,e=>{for(;e.firstChild;)e.removeChild(e.firstChild)})}removeAnnotation(e,t){let n=e.w;this._removeAnnotationTooltip(n);let r=n.dom.baseEl.querySelectorAll(`.${t}`);r&&(n.globals.memory.methodsToExec.map((e,r)=>{e.id===t&&n.globals.memory.methodsToExec.splice(r,1)}),Object.keys(n.config.annotations).forEach(e=>{let r=n.config.annotations[e];Array.isArray(r)&&(n.config.annotations[e]=r.filter(e=>e.id!==t))}),Array.prototype.forEach.call(r,e=>{e.parentElement.removeChild(e)}))}}});function di(e,t){if(!(t>0))return[];if(t===1)return[s({},e)];let n=e.width>=e.height,r=n?e.width:e.height,i=n?e.height:e.width,a=i>0?r/i:t,o=Math.max(1,Math.ceil(Math.sqrt(a*t)));o>t&&(o=t);let c=Math.floor(t/o),l=t-c*o,u=[],d=r/o,f=0;for(let t=0;t<o;t++){let t=c+ +(l>0);l>0&&l--;let r=t>0?i/t:0;for(let i=0;i<t;i++)u.push(n?{x:e.x+f,y:e.y+i*r,width:d,height:r}:{x:e.x+i*r,y:e.y+f,width:r,height:d});f+=d}return u}function fi(e,t,n){if(!(t>0))return[];let r=e.width>=e.height,i=r?e.width:e.height,a=r?e.height:e.width,o=r?e.y:e.x,s=o+a,c=a>0?i/a:t,l=Math.max(Math.ceil(Math.sqrt(c*t)),Math.ceil(i/16));l>=1||(l=1),l>t&&(l=t);let u=Math.floor(t/l),d=t-u*l,f=[],p=i/l,m=r?e.x:e.y;for(let e=0;e<l;e++){let e=u+ +(d>0);d>0&&d--;let t=[],i=n(m,m+p,r);if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];if(!n)continue;let r=Math.max(o,Math.min(n[0],n[1])),a=Math.min(s,Math.max(n[0],n[1]));a>r&&t.push([r,a])}t.length||t.push([o,s]);let a=t.reduce((e,t)=>
1799e+(t[1]-t[0]),0),c=t.map(n=>a>0?(n[1]-n[0])/a*e:e/t.length),l=c.map(e=>Math.floor(e)),h=l.reduce((e,t)=>e+t,0),g=c.map((e,t)=>({i:t,frac:e-Math.floor(e)})).sort((e,t)=>t.frac-e.frac);for(let t=0;h<e;t++,h++)l[g[t%g.length].i]++;for(let e=0;e<t.length;e++){let n=l[e];if(n<=0)continue;let i=t[e][0],a=(t[e][1]-i)/n;for(let e=0;e<n;e++)f.push(r?{x:m,y:i+e*a,width:p,height:a}:{x:i+e*a,y:m,width:a,height:p})}m+=p}return f}function pi(e,t,n,r,i,a){let o=i===n?0:Math.round((e-n)/(i-n)*32767),s=a===r?0:Math.round((t-r)/(a-r)*32767),c=0;for(let e=32768;e>=1;e/=2){let t=+((o&e)>0),n=+((s&e)>0);if(c+=e*e*(3*t^n),n===0){t===1&&(o=e-1-o,s=e-1-s);let n=o;o=s,s=n}}return c}function mi(e,t){let n=1/0,r=1/0,i=-1/0,a=-1/0,o=e.map(e=>{let[o,s]=t(e);return o<n&&(n=o),o>i&&(i=o),s<r&&(r=s),s>a&&(a=s),[o,s]});return e.map((e,t)=>({item:e,d:pi(o[t][0],o[t][1],n,r,i,a)})).sort((e,t)=>e.d-t.d).map(e=>e.item)}function hi(e){if(!e||typeof e!=`string`)return null;let t=e.trim();if(t[0]===`#`){let e=t.slice(1);return e.length===3?[parseInt(e[0]+e[0],16),parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),1]:e.length===6||e.length===8?[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16),e.length===8?parseInt(e.slice(6,8),16)/255:1]:null}let n=t.match(/^rgba?\(([^)]+)\)$/i);if(n){let e=n[1].split(`,`).map(e=>parseFloat(e));return e.length<3||e.some(e=>!isFinite(e))?null:[e[0],e[1],e[2],e.length>3?e[3]:1]}return null}function gi(e,t){let n=hi(e),r=hi(t);return n&&r?e=>{let t=Math.round(n[0]+(r[0]-n[0])*e),i=Math.round(n[1]+(r[1]-n[1])*e),a=Math.round(n[2]+(r[2]-n[2])*e),o=n[3]+(r[3]-n[3])*e;return o>=1?`rgb(${t},${i},${a})`:`rgba(${t},${i},${a},${o})`}:null}function _i(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}Gr.registerFeatures({keyboardNavigation:class{constructor(e,t){this.w=e,this.ctx=t,this.seriesIndex=0,this.dataPointIndex=0,this.active=!1,this._tooltipDismissed=!1,this._focusedEl=null,this._hoveredBarEl=null,this._enlargedScatterMarker=null,this._onKeyDown=this._onKeyDown.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onLegendClick=this._onLegendClick.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._lastPointerDownAt=0}init(){let e=this.w.dom.Paper.node;e&&(e.setAttribute(`tabindex`,`0`),e.addEventListener(`focus`,this._onFocus),e.addEventListener(`blur`,this._onBlur),e.addEventListener(`mousedown`,this._onPointerDown,{capture:!0}),e.addEventListener(`pointerdown`,this._onPointerDown,{capture:!0}),e.addEventListener(`touchstart`,this._onPointerDown,{capture:!0,passive:!0}),e.addEventListener(`keydown`,this._onKeyDown,{passive:!1}),this.ctx.events.addEventListener(`legendClick`,this._onLegendClick))}destroy(){let e=this.w,t=e.dom.Paper&&e.dom.Paper.node;this.ctx.events.removeEventListener(`legendClick`,this._onLegendClick),t&&(t.removeEventListener(`focus`,this._onFocus),t.removeEventListener(`blur`,this._onBlur),t.removeEventListener(`keydown`,this._onKeyDown),t.removeEventListener(`mousedown`,this._onPointerDown,{capture:!0}),t.removeEventListener(`pointerdown`,this._onPointerDown,{capture:!0}),t.removeEventListener(`touchstart`,this._onPointerDown,{capture:!0}))}_onPointerDown(){this._lastPointerDownAt=Date.now()}handleKey(e){}_onFocus(){this._isNavEnabled()&&(Date.now()-this._lastPointerDownAt<100||(this.active=!0,this._clampCursor(),this._snapToVisibleRange(),this._showCurrentPoint()))}_onBlur(){this.active=!1,this._tooltipDismissed=!1,this._hideFocus()}_onLegendClick(){this.active&&(this.active=!1,this._hideFocus())}_onKeyDown(e){var t,n,r;if(this._isNavEnabled()&&this.active){if(e.shiftKey&&(e.key===`ArrowRight`||e.key===`ArrowLeft`)&&this._canPan())return e.preventDefault(),void this._panBy(e.key===`ArrowRight`?1:-1);switch(e.key){case`ArrowRight`:e.preventDefault(),this._move(0,1);break;case`ArrowLeft`:e.preventDefault(),this._move(0,-1);break;case`ArrowUp`:e.preventDefault(),this._move(-1,0);break;case`ArrowDown`:e.preventDefault(),this._move(1,0);break;case`Home`:e.preventDefault(),this.dataPointIndex=0,this._skipNullForward(),this._showCurrentPoint();break;case`End`:e.preventDefault(),this.dataPointIndex=this._getDataPointCount(this.seriesIndex)-1,this._skipNullBackward(),this._showCurrentPoint();break;case`Enter`:case` `:e.preventDefault(),this._fireClick();break;case`+`:case`=`:this._canZoom()&&(e.preventDefault(),(t=this.ctx.toolbar)==null||t.handleZoomIn(),this._announce(`Zoomed in`));break;case`-`:case`_`:this._canZoom()&&(e.preventDefault(),(n=this.ctx.toolbar)==null||n.handleZoomOut(),this._announce(`Zoomed out`));break;case`0`:this._canZoom()&&this.w.interact.zoomed&&(e.preventDefault(),(r=this.ctx.toolbar)==null||r.handleZoomReset(),this._announce(`Zoom reset`));break;case`Escape`:e.preventDefault(),this._tooltipDismissed?(this.active=!1,this._tooltipDismissed=!1,this._hideFocus()):(this._tooltipDismissed=!0,this._hideFocus())}}}_canZoom(){let e=this.w;return!!(e.globals.axisCharts&&e.config.chart.zoom&&e.config.chart.zoom.enabled)}_canPan(){return this._canZoom()}_panBy(e){let t=this.w,n=this.ctx.toolbar;if(!n)return;let r=Number(t.globals.minX),i=Number(t.globals.maxX);if(!isFinite(r)||!isFinite(i)||r===i)return;let a=.1*(i-r)*e;n.zoomUpdateOptions(r+a,i+a),this._announce(e>0?`Panned right`:`Panned left`)}_move(e,t){let n=this.w,r=n.config.chart.accessibility.keyboard.navigation.wrapAround;if(e!==0){let t=this.w.globals.tooltip;if(t&&t.tConfig&&t.tConfig.shared){let e=this.dataPointIndex;if(t.tooltipUtil&&t.tooltipUtil.isXoverlap(e)&&t.tooltipUtil.isInitialSeriesSameLen())return}let i=this._getSeriesCount(),a=this.seriesIndex+e,o=0;for(;o<i&&(a<0&&(a=r?i-1:0),a>=i&&(a=r?0:i-1),n.globals.collapsedSeriesIndices.includes(a));)a+=e,o++;this.seriesIndex=a;let s=this._getDataPointCount(a);this.dataPointIndex>=s&&(this.dataPointIndex=s-1)}if(t!==0){let e=this._getDataPointCount(this.seriesIndex),n=this.dataPointIndex+t;n<0&&(n=r?e-1:0),n>=e&&(n=r?0:e-1),this.dataPointIndex=n,t>0?this._skipNullForward():this._skipNullBackward(),this._isDataPointVisible(this.seriesIndex,this.dataPointIndex)||this._snapToVisibleRangeInDirection(t)}this._showCurrentPoint()}_skipNullForward(){let e=this.w,t=this.seriesIndex,n=this._getDataPointCount(t),r=this.dataPointIndex,i=0;if(Array.isArray(e.seriesData.series[t])){for(;i<n&&e.seriesData.series[t][r]===null;)r=(r+1)%n,i++;this.dataPointIndex=r}}_skipNullBackward(){let e=this.w,t=this.seriesIndex,n=this._getDataPointCount(t),r=this.dataPointIndex,i=0;if(Array.isArray(e.seriesData.series[t])){for(;i<n&&e.seriesData.series[t][r]===null;)r=(r-1+n)%n,i++;this.dataPointIndex=r}}_showCurrentPoint(){let{seriesIndex:e,dataPointIndex:t}=this,n=this.w,r=n.globals.tooltip;r&&r.ttItems&&(n.interact.capturedSeriesIndex=e,n.interact.capturedDataPointIndex=t,this._applyFocusClass(e,t),this._showTooltip(e,t,r))}_hideFocus(){let e=this.w,t=e.globals.tooltip;if(this._removeFocusClass(),this._leaveHoveredBar(),!t)return;t.marker&&t.marker.resetPointsSize(),this._enlargedScatterMarker=null;let n=t.getElTooltip();n&&(n.classList.remove(`apexcharts-active`),e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&n.setAttribute(`aria-hidden`,`true`)),e.dom.baseEl.classList.remove(`apexcharts-tooltip-active`);let r=t.getElXCrosshairs();r&&r.classList.remove(`apexcharts-active`)}
1799_showTooltip(e,t,n){let r=this.w,i=r.config.chart.type,a=n.getElTooltip();if(!a)return;let o=n.getCachedDimensions();n.tooltipRect={x:0,y:0,ttWidth:o.ttWidth||0,ttHeight:o.ttHeight||0},this._setSyntheticEvent(e,t,n),r.dom.baseEl.classList.add(`apexcharts-tooltip-active`),a.classList.add(`apexcharts-active`),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.announcements.enabled&&a.removeAttribute(`aria-hidden`),i===`pie`||i===`donut`||i===`polarArea`?this._showTooltipNonAxis(e,t,n,a):i===`radialBar`?this._showTooltipRadialBar(e,t,n,a):i===`heatmap`||i===`treemap`?this._showTooltipHeatTree(e,t,n,a,i):i===`bar`||i===`candlestick`||i===`boxPlot`||i===`violin`||i===`rangeBar`?this._showTooltipBar(e,t,n):this._showTooltipAxisLine(e,t,n)}_setSyntheticEvent(e,t,n){let r=this.w,i=r.config.chart.type,a=0,o=0,s=this._getFocusableElement(e,t);if(s){let e=s.getBoundingClientRect();a=e.left+e.width/2,o=e.top+e.height/2}else if(r.globals.pointsArray&&r.globals.pointsArray[e]&&r.globals.pointsArray[e][t]){let i=r.globals.pointsArray[e][t],s=n.getElGrid&&n.getElGrid();if(s){let e=s.getBoundingClientRect();a=e.left+(i[0]||0),o=e.top+(i[1]||0)}}else{let e=r.dom.Paper&&r.dom.Paper.node;if(e){let t=e.getBoundingClientRect();a=t.left+t.width/2,o=t.top+t.height/2}}if((i===`line`||i===`area`||i===`rangeArea`||i===`scatter`||i===`bubble`||i===`radar`)&&r.globals.pointsArray&&r.globals.pointsArray[e]&&r.globals.pointsArray[e][t]){let i=r.globals.pointsArray[e][t],s=n.getElGrid&&n.getElGrid();if(s){let e=s.getBoundingClientRect();a=e.left+(i[0]||0),o=e.top+(i[1]||0)}}n.e={type:`mousemove`,clientX:a,clientY:o}}_showTooltipBar(e,t,n){var r,i,a,o;let l=this.w,u=n.tConfig.shared&&(n.tooltipUtil.isXoverlap(t)||l.globals.isBarHorizontal)&&n.tooltipUtil.isInitialSeriesSameLen(),d=(o=(a=(i=(r=l.rangeData.seriesRange)==null?void 0:r[e])==null?void 0:i[t])==null?void 0:a.y)==null?void 0:o[0];n.tooltipLabels.drawSeriesTexts(c(s(s({ttItems:n.ttItems,i:e,j:t},(d==null?void 0:d.y1)!==void 0&&{y1:d.y1}),(d==null?void 0:d.y2)!==void 0&&{y2:d.y2}),{shared:u}));let f=`.apexcharts-series[data\\:realIndex='${e}']`,p=l.dom.Paper.findOne(`${f} path[j='${t}'], ${f} circle[j='${t}'], ${f} rect[j='${t}']`);if(p&&(this._leaveHoveredBar(),new K(this.w,this.ctx).pathMouseEnter(p,null),this._hoveredBarEl=p),l.globals.isBarHorizontal){let e=p&&p.node;if(e){let t=l.dom.elWrap.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.left-t.left,a=r.top-t.top,o=r.height,s=r.width,c=n.tooltipRect.ttWidth||0,u=a+o/2-(n.tooltipRect.ttHeight||0)/2,d=i+s;i<(n.xyRatios&&n.xyRatios.baseLineInvertedY!=null?n.xyRatios.baseLineInvertedY:t.width/2)&&(d=i-c);let f=n.getElTooltip();f&&(f.style.left=d+`px`,f.style.top=u+`px`)}}else n.tooltipPosition.moveStickyTooltipOverBars(t,e)}_showTooltipAxisLine(e,t,n){let r=this.w,i=r.config.chart.type,a=n.tConfig.shared&&n.tooltipUtil.isXoverlap(t)&&n.tooltipUtil.isInitialSeriesSameLen();n.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,j:t,shared:a});let o=i===`scatter`||i===`bubble`,s=r.globals.markers.largestSize>0&&!r.globals.markers.batched;o?this._showScatterBubblePoint(e,t,n):s?a?n.marker.enlargePoints(t):n.tooltipPosition.moveDynamicPointOnHover(t,e):a?n.tooltipPosition.moveDynamicPointsOnHover(t):n.tooltipPosition.moveDynamicPointOnHover(t,e)}_showScatterBubblePoint(e,t,n){let r=this.w.dom.baseEl;this._enlargedScatterMarker&&(n.marker.oldPointSize(this._enlargedScatterMarker),this._enlargedScatterMarker=null);let i=r.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`);if(!i)return;let a=i.querySelector(`.apexcharts-marker[rel='${t}']`);a&&(n.marker.enlargeCurrentPoint(t,a),this._enlargedScatterMarker=a)}_showTooltipNonAxis(e,t,n,r){let i=this.w;n.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:t,shared:!1});let a=r.getBoundingClientRect(),o=a.width||n.tooltipRect.ttWidth||0,s=a.height||n.tooltipRect.ttHeight||0,c=i.dom.baseEl.querySelector(`.apexcharts-pie-area[j='${t}']`),l=n.getSliceAnchor(c);l&&(r.style.left=l.x-o/2+`px`,r.style.top=l.y-s-10+`px`)}_showTooltipRadialBar(e,t,n,r){var i;let a=this.w;n.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,shared:!1});let{ttWidth:o=0,ttHeight:s=0}=n.getCachedDimensions(),c=a.dom.baseEl.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if(c){let t=parseFloat((i=c.getAttribute(`data:angle`))==null?``:i)||0,n=(a.config.plotOptions.radialBar.startAngle||0)+t/2,l=a.layout.gridWidth/2,u=a.layout.gridHeight/2,d=a.globals.radialSize||Math.min(a.layout.gridWidth,a.layout.gridHeight)/2,f=a.seriesData.series.length,p=d/Math.max(f,1),m=d-e*p,h=(m+(m-p))/2,g=x.polarToCartesian(l,u,h,n),_=g.x+(a.layout.translateX||0),v=g.y+(a.layout.translateY||0);r.style.left=_-o/2+`px`,r.style.top=v-s-10+`px`}}_showTooltipHeatTree(e,t,n,r,i){var a,o;let s=this.w;n.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,j:t,shared:!1});let c=r.getBoundingClientRect(),l=c.width||n.tooltipRect.ttWidth||0,u=c.height||n.tooltipRect.ttHeight||0,d=i===`heatmap`?`apexcharts-heatmap-rect`:`apexcharts-treemap-rect`,f=s.dom.baseEl.querySelector(`.${d}[i='${e}'][j='${t}']`);if(f){let e=s.dom.elWrap.getBoundingClientRect(),t=f.getBoundingClientRect(),i=t.left-e.left,c=t.top-e.top,d=t.width,p=t.height,m=parseFloat((a=f.getAttribute(`cx`))==null?``:a),h=parseFloat((o=f.getAttribute(`width`))==null?``:o);n.tooltipPosition.moveXCrosshairs(m+h/2);let g=i+d+l/2,_=c+p/2-u/2;i+d>s.layout.gridWidth/2&&(g=i-l/2),r.style.left=g+`px`,r.style.top=_+`px`}}_applyFocusClass(e,t){this._removeFocusClass();let n=this._getFocusableElement(e,t)||this._getBatchedFocusEl(e);if(n){n.classList.add(`apexcharts-keyboard-focused`),n.setAttribute(`role`,`img`);let r=this._buildPointLabel(e,t);r&&n.setAttribute(`aria-label`,r),this._focusedEl=n}}_getBatchedFocusEl(e){return this.w.globals.markers.batched?this.w.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers path`):null}_removeFocusClass(){this._focusedEl&&(this._focusedEl.classList.remove(`apexcharts-keyboard-focused`),this._focusedEl.removeAttribute(`role`),this._focusedEl.removeAttribute(`aria-label`),this._focusedEl=null)}_buildPointLabel(e,t){var n,r,i,a,o,s,c,l;let u=this.w,d=u.config.chart.type,f=u.seriesData.seriesNames||[],p=u.seriesData.series||[];if(d===`pie`||d===`donut`||d===`polarArea`){let e=(r=((n=u.labelData)==null?void 0:n.labels)&&u.labelData.labels[t])==null?``:r,i=Array.isArray(p)?p[t]:``;return e?`${e}: ${i}`:`${i}`}if(d===`radialBar`)return`${f[e]||`Series ${e+1}`}: ${Array.isArray(p)?p[e]:``}`;let m=f[e]||`Series ${e+1}`,h=(Array.isArray(p[e])?p[e]:[])[t],g=h==null?``:String(h),_=(a=(i=u.formatters)==null?void 0:i.yLabelFormatters)==null?void 0:a[e];if(typeof _==`function`)try{g=_(h,{seriesIndex:e,dataPointIndex:t,w:u})}catch(e){}let v=``,y=(o=u.labelData)==null?void 0:o.categoryLabels,b=(c=(s=u.seriesData)==null?void 0:s.seriesX)==null?void 0:c[e];if(Array.isArray(y)&&y[t]!=null)v=String(y[t]);else if(Array.isArray(b)&&b[t]!=null){let n=(l=u.formatters)==null?void 0:l.xLabelFormatter;if(typeof n==`function`)try{v=String(n(b[t],{seriesIndex:e,dataPointIndex:t,w:u}))}catch(e){v=String(b[t])}else v=String(b[t])}return v?`${m}: ${g}, ${v}`:`${m}: ${g}`}_leaveHoveredBar(){this._hoveredBarEl&&(new K(this.w,this.ctx).pathMouseLeave(this._hoveredBarEl,null),this._hoveredBarEl=null)}_getFocusableElement(e,t){let n=this.w,r=n.config.chart.type,i=n.dom.baseEl;
1799return r===`pie`||r===`donut`||r===`polarArea`?i.querySelector(`.apexcharts-pie-area[j='${t}']`):r===`heatmap`?i.querySelector(`.apexcharts-heatmap-rect[i='${e}'][j='${t}']`):r===`treemap`?i.querySelector(`.apexcharts-treemap-rect[i='${e}'][j='${t}']`):r===`radialBar`?i.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`):r===`bar`||r===`candlestick`||r===`boxPlot`||r===`violin`||r===`rangeBar`?i.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`):i.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker[rel='${t}']`)||null}_fireClick(){let e=this.w.globals.tooltip;e&&e.markerClick({type:`mouseup`,clientX:0,clientY:0},this.seriesIndex,this.dataPointIndex)}_isNavEnabled(){let e=this.w.config.chart.accessibility;return e.enabled&&e.keyboard.enabled&&e.keyboard.navigation.enabled}_getSeriesCount(){let e=this.w,t=e.config.chart.type;return t===`pie`||t===`donut`||t===`polarArea`?1:e.seriesData.series.length}_getDataPointCount(e){let t=this.w,n=t.config.chart.type;if(n===`pie`||n===`donut`||n===`polarArea`)return t.seriesData.series.length;let r=t.seriesData.series;return r[e]&&Array.isArray(r[e])?r[e].length:0}_clampCursor(){let e=this._getSeriesCount();this.seriesIndex>=e&&(this.seriesIndex=e-1),this.seriesIndex<0&&(this.seriesIndex=0);let t=this._getDataPointCount(this.seriesIndex);this.dataPointIndex>=t&&(this.dataPointIndex=t-1),this.dataPointIndex<0&&(this.dataPointIndex=0)}_snapToVisibleRange(){let e=this.w,t=e.globals,n=this.seriesIndex;if(!e.interact.zoomed)return;let r=e.seriesData.seriesX&&e.seriesData.seriesX[n];if(!r||!r.length)return;let i=t.minX,a=t.maxX;if(i===void 0||a===void 0)return;let o=r[this.dataPointIndex];if(o>=i&&o<=a)return;let s=r.length;for(let e=0;e<s;e++)if(r[e]>=i&&r[e]<=a)return void(this.dataPointIndex=e)}_snapToVisibleRangeInDirection(e){let t=this.w,n=t.globals,r=this.seriesIndex,i=t.seriesData.seriesX&&t.seriesData.seriesX[r];if(!i||!i.length)return;let a=n.minX,o=n.maxX;if(a===void 0||o===void 0)return;let s=i.length;if(e>=0){for(let e=0;e<s;e++)if(i[e]>=a&&i[e]<=o)return void(this.dataPointIndex=e)}else for(let e=s-1;e>=0;e--)if(i[e]>=a&&i[e]<=o)return void(this.dataPointIndex=e)}_isDataPointVisible(e,t){let n=this.w,r=n.globals;if(!n.interact.zoomed)return!0;let i=n.seriesData.seriesX&&n.seriesData.seriesX[e];if(!i)return!0;let a=i[t];return a===void 0||a>=r.minX&&a<=r.maxX}_announce(e){let t=this.w;if(!t.config.chart.accessibility.announcements.enabled)return;let n=t.dom.baseEl;if(!n)return;let r=n.querySelector(`.apexcharts-sr-status`);r&&(r.textContent=``,setTimeout(()=>{r.textContent=e},0))}}});let vi=new Set([`bar`,`funnel`,`pyramid`,`histogram`]),yi=new Set([`pie`,`donut`,`polarArea`,`radialBar`,`gauge`]),bi=new Set([`unit`,`waffle`]),xi=new Set([`treemap`,`sunburst`]),Si=new Set([`boxPlot`,`violin`]),Ci=1500;function wi(e){return vi.has(e)?`bar`:yi.has(e)?`radial`:bi.has(e)?`unit`:xi.has(e)?`partition`:Si.has(e)?`summary`:null}Gr.registerFeatures({morphTypeChange:class{constructor(e,t){this.w=e,this.ctx=t,this._snapshot=null,this._ghost=null,this._pieceLayer=null,this._pieceCancel=null}canMorphTypes(e,t){if(e===t)return!1;let n=wi(e),r=wi(t);return!(!n||!r)&&(n===`partition`==(r===`partition`)||n!==`unit`&&r!==`unit`)}isCompatibleSeriesShape(e,t,n){if(!Array.isArray(n)||n.length===0)return!1;let r=wi(e),i=wi(t);return i===`unit`?!!n.every(e=>typeof e==`number`)||n.every(e=>e&&typeof e==`object`&&Array.isArray(e.data)):i===`partition`||(i===`radial`?!!n.every(e=>typeof e==`number`)||n.length===1&&n[0]&&typeof n[0]==`object`&&Array.isArray(n[0].data):i===`bar`||i===`summary`?n.every(e=>e&&typeof e==`object`&&Array.isArray(e.data)):r!==null&&i!==null)}captureBeforeDestroy({fromType:e,toType:t,newSeries:n}){if(this._snapshot=null,this._removeGhost(),this._cancelPieces(),!d.isBrowser())return!1;let r=this.w.config.chart.animations;if(!r||!1===r.enabled||r.chartTypeMorph&&!1===r.chartTypeMorph.enabled||r.respectReducedMotion&&ke()||!this.canMorphTypes(e,t)||!this.isCompatibleSeriesShape(e,t,n))return!1;let{marks:i,branches:a,unitDots:o}=this._captureFromDOM(e);if(!i.length)return!1;let s=this._buildMapping(i,e,t,n,a);if(s.size===0)return!1;this._snapshot={fromType:e,toType:t,mapping:s,oldLayout:{translateX:this.w.layout.translateX||0,translateY:this.w.layout.translateY||0}};let c=wi(e),l=wi(t),u=this._canProbePaths();if(l===`unit`&&(c===`bar`||c===`summary`||c===`radial`&&u)){let e=this._countUnitSeries(n);this._snapshot.pieceOut=e>0&&e<=Ci}else if(c===`unit`&&(l===`bar`||l===`summary`||l===`radial`&&u)){let e=0;
1799if(o.forEach(t=>{e+=t.length}),e>0&&e<=Ci){this._snapshot.pieceIn=!0,this._snapshot.sourceDots=o;let e=[];l===`radial`?(Array.isArray(n)?n:[]).forEach((t,n)=>{e.push(`${n}:0`)}):(Array.isArray(n)?n:[]).forEach((t,n)=>{let r=t&&Array.isArray(t.data)?t.data:[];for(let t=0;t<r.length;t++)e.push(`${n}:${t}`)}),this._snapshot.keyOrder=e}}return!this._needsGhost(e,t)||this._snapshot.pieceOut||this._snapshot.pieceIn||this._captureGhost(),this.w.globals.previousPaths=[],!0}_needsGhost(e,t){return wi(e)===`unit`||wi(t)===`unit`}_captureGhost(){var e,t;let n=(e=this.w.dom)==null?void 0:e.Paper,r=n&&n.node;if(!r||typeof r.cloneNode!=`function`)return;let i=r.cloneNode(!0);typeof i.querySelectorAll==`function`&&[`.apexcharts-xaxis`,`.apexcharts-yaxis`,`.apexcharts-grid`,`.apexcharts-gridlines-horizontal`,`.apexcharts-gridlines-vertical`,`.apexcharts-legend`,`.apexcharts-title-text`,`.apexcharts-subtitle-text`,`.apexcharts-annotations`,`.apexcharts-zoom-rect`,`.apexcharts-selection-rect`,`.apexcharts-xcrosshairs`,`.apexcharts-ycrosshairs`].forEach(e=>{i.querySelectorAll(e).forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)})}),typeof i.querySelectorAll==`function`&&i.querySelectorAll(`[id]`).forEach(e=>{e.removeAttribute(`id`)}),(t=i.removeAttribute)==null||t.call(i,`id`),this._ghost=i}_mountGhost(){var e,t,n;let r=this._ghost;if(!r||!d.isBrowser())return;let i=(e=this.w.dom)==null?void 0:e.elWrap;if(!i||typeof i.appendChild!=`function`)return void(this._ghost=null);let a=r.style;a&&(a.position=`absolute`,a.left=`0`,a.top=`0`,a.background=`transparent`,a.pointerEvents=`none`,a.opacity=`1`),(t=r.setAttribute)==null||t.call(r,`aria-hidden`,`true`),(n=r.setAttribute)==null||n.call(r,`class`,`apexcharts-morph-ghost`),i.appendChild(r);let o=this.getSpeed(),s=Math.max(120,Math.round(.55*o));v.requestAnimationFrame(()=>{a&&(a.transition=`opacity ${s}ms ease-in`,a.opacity=`0`)}),setTimeout(()=>this._removeGhost(),s+60)}_removeGhost(){let e=this._ghost;this._ghost=null,e&&e.parentNode&&e.parentNode.removeChild(e)}_countUnitSeries(e){if(!Array.isArray(e))return 0;let t=0;for(let n of e){if(!n||typeof n!=`object`||!Array.isArray(n.data))return 0;t+=n.data.length}return t}usesPieceTakeover(){return!(!this._snapshot||!this._snapshot.pieceOut)}claimsTargetMark(e,t){return!!(this._snapshot&&this._snapshot.pieceIn&&this._snapshot.mapping.has(`${e}:${t}`))}_makePieceLayer(){var e,t;let n=(e=this.w.dom)==null?void 0:e.elGraphical,r=n&&n.node;if(!r||typeof r.appendChild!=`function`)return null;let i=v.createElementNS(`http://www.w3.org/2000/svg`,`g`);if(!i)return null;i.setAttribute(`class`,`apexcharts-morph-pieces`),i.setAttribute(`pointer-events`,`none`);let a=(t=this.w.globals)==null?void 0:t.cuid;return a&&i.setAttribute(`clip-path`,`url(#gridRectBarMask${a})`),r.appendChild(i),this._pieceLayer=i,i}_revealPieceHidden(){var e;let t=(e=this.w.globals.dom)==null?void 0:e.baseEl;t&&typeof t.querySelectorAll==`function`&&t.querySelectorAll(`[data-piece-hidden]`).forEach(e=>{e.removeAttribute(`opacity`),e.removeAttribute(`data-piece-hidden`)})}_cancelPieces(){this._pieceCancel&&(this._pieceCancel(),this._pieceCancel=null);let e=this._pieceLayer;this._pieceLayer=null,e&&e.parentNode&&e.parentNode.removeChild(e),this._revealPieceHidden()}_canProbePaths(){if(!d.isBrowser())return!1;let e=v.createElementNS(`http://www.w3.org/2000/svg`,`path`);return!!e&&typeof e.isPointInFill==`function`}_makeExtentProber(e,t,n){let r=n.ownerDocument.createElementNS(`http://www.w3.org/2000/svg`,`path`);r.setAttribute(`d`,e),r.setAttribute(`fill`,`#000`),r.setAttribute(`stroke`,`#000`),r.setAttribute(`stroke-width`,`3`),r.setAttribute(`visibility`,`hidden`),n.appendChild(r);let i=r.ownerSVGElement;if(typeof r.isPointInFill!=`function`||!i||typeof i.createSVGPoint!=`function`)return n.removeChild(r),null;let a=i.createSVGPoint(),o=(e,t)=>{a.x=e,a.y=t;let n=r;return n.isPointInFill(a)||typeof n.isPointInStroke==`function`&&n.isPointInStroke(a)};return{intervalsAt:(e,n,r)=>{let i=r?t.y:t.x,a=i+(r?t.height:t.width);if(!(a>i))return null;let s=(e,t)=>
1799r?o(t,e):o(e,t),c=[e+.1*(n-e),(e+n)/2,n-.1*(n-e)],l=(e,t,n)=>{let r=t,i=e;for(let e=0;e<6;e++){let e=(r+i)/2;s(e,n)?i=e:r=e}return(r+i)/2},u=(a-i)/48,d=Array(49).fill(null),f=!1;for(let e of c)for(let t=0;t<=48;t++)d[t]===null&&s(i+t*u,e)&&(d[t]=e,f=!0);if(!f)return null;let p=[],m=-1;for(let e=0;e<=49;e++){let t=e<=48&&d[e]!==null;if(t&&m<0&&(m=e),!t&&m>=0){let t=e-1,n=d[m],r=m===0?i:l(i+m*u,i+(m-1)*u,n),o=t===48?a:l(i+t*u,i+(t+1)*u,d[t]);o>r&&p.push([r,o]),m=-1}}return p.length?p:null},dispose:()=>{r.parentNode&&r.parentNode.removeChild(r)}}}_separatePieces(){var e;let t=this._snapshot,n=(e=this.w.globals.dom)==null?void 0:e.baseEl;if(!t||!n)return this._revealPieceHidden();let r=new Map,i=0;if(n.querySelectorAll(`.apexcharts-unit-area`).forEach(e=>{var t,n,a,o,s,c,l;let u=parseInt((t=e.getAttribute(`i`))==null?``:t,10);if(isNaN(u))return;let d=e.getAttribute(`cx`),f,p,m=3;if(d!=null)f=parseFloat(d),p=parseFloat((n=e.getAttribute(`cy`))==null?``:n),m=parseFloat((a=e.getAttribute(`r`))==null?`3`:a)||3;else{let t=parseFloat((o=e.getAttribute(`width`))==null?`0`:o)||0,n=parseFloat((s=e.getAttribute(`height`))==null?`0`:s)||0;f=parseFloat((c=e.getAttribute(`x`))==null?``:c)+t/2,p=parseFloat((l=e.getAttribute(`y`))==null?``:l)+n/2,m=Math.max(t,n)/2||3}if(!isFinite(f)||!isFinite(p))return;let h=r.get(u);h||(h=[],r.set(u,h)),h.push({el:e,x:f,y:p,r:m,fill:e.getAttribute(`fill`)}),i++}),i===0||i>Ci)return this._revealPieceHidden();let a=this._makePieceLayer();if(!a)return this._revealPieceHidden();let o=[],s=a.ownerDocument,c=wi(t.fromType),l=c===`summary`||c===`radial`;if(Array.from(r.keys()).sort((e,t)=>e-t).forEach(e=>{var n;let i=r.get(e),c=this.getInitialBBoxFor(e),u=t.mapping.get(`${e}:0`);if(!c||!u)return void i.forEach(e=>{e.el.removeAttribute(`opacity`),e.el.removeAttribute(`data-piece-hidden`)});let d=u.fill&&u.fill.indexOf(`url(`)!==0?u.fill:((n=this.w.globals.colors)==null?void 0:n[e])||i[0].fill,f=null;if(l){let t=this.getInitialPathFor(e,0);t&&(f=this._makeExtentProber(t,c,a))}let p=f?fi(c,i.length,f.intervalsAt):di(c,i.length);f&&f.dispose();let m=mi(p,e=>[e.x+e.width/2,e.y+e.height/2]),h=mi(i,e=>[e.x,e.y]);for(let t=0;t<h.length;t++){let n=m[t],r=h[t],i=s.createElementNS(`http://www.w3.org/2000/svg`,`rect`);i.setAttribute(`data-i`,String(e)),i.setAttribute(`x`,String(n.x)),i.setAttribute(`y`,String(n.y)),i.setAttribute(`width`,String(n.width)),i.setAttribute(`height`,String(n.height)),i.setAttribute(`rx`,`0`),i.setAttribute(`fill`,String(d)),a.appendChild(i),o.push({el:i,from:{x:n.x,y:n.y,width:n.width,height:n.height,rx:0},to:{x:r.x-r.r,y:r.y-r.r,width:2*r.r,height:2*r.r,rx:r.r},fill:gi(d,r.fill),fillEnd:r.fill,delay:0,meta:{dotEl:r.el}})}}),!o.length)return this._cancelPieces();this._runPieces(o,e=>{let t=e.meta.dotEl;t.removeAttribute(`opacity`),t.removeAttribute(`data-piece-hidden`),e.el.parentNode&&e.el.parentNode.removeChild(e.el)})}_combinePieces(){var e,t;let n=this._snapshot,r=(e=this.w.globals.dom)==null?void 0:e.baseEl;if(!(n&&n.sourceDots&&n.keyOrder&&r))return this._revealPieceHidden();let i=this._collectTargetMarks(n.toType);if(!i.size)return this._revealPieceHidden();let a=n.oldLayout.translateX-(this.w.layout.translateX||0),o=n.oldLayout.translateY-(this.w.layout.translateY||0),s=Array.from(n.sourceDots.keys()).sort((e,t)=>e-t),c=this._makePieceLayer();if(!c)return this._revealPieceHidden();let l=c.ownerDocument,u=[],d=wi(n.toType),f=d===`summary`||d===`radial`;for(let e=0;e<s.length;e++){let r=n.sourceDots.get(s[e]),d=n.keyOrder[e],p=d?i.get(d):null;
1799if(!p||!r||!r.length){p&&p.els.forEach(e=>{e.removeAttribute(`opacity`),e.removeAttribute(`data-piece-hidden`)});continue}let m=p.fill&&p.fill.indexOf(`url(`)!==0?p.fill:((t=this.w.globals.colors)==null?void 0:t[p.realIndex])||r[0].fill,h=null;if(f){let e=p.d||p.els.map(e=>e.getAttribute(`pathTo`)||e.getAttribute(`d`)).filter(Boolean).join(` `);e&&(h=this._makeExtentProber(e,p.bbox,c))}let g=h?fi(p.bbox,r.length,h.intervalsAt):di(p.bbox,r.length);h&&h.dispose();let _=mi(g,e=>[e.x+e.width/2,e.y+e.height/2]),v=mi(r,e=>[e.x,e.y]),y={remaining:v.length,els:p.els,tiles:[]};for(let e=0;e<v.length;e++){let t=v[e],n=_[e],r=l.createElementNS(`http://www.w3.org/2000/svg`,`rect`),i=t.x+a-t.r,s=t.y+o-t.r;r.setAttribute(`data-key`,d),r.setAttribute(`x`,String(i)),r.setAttribute(`y`,String(s)),r.setAttribute(`width`,String(2*t.r)),r.setAttribute(`height`,String(2*t.r)),r.setAttribute(`rx`,String(t.r)),r.setAttribute(`fill`,String(t.fill||m)),c.appendChild(r),y.tiles.push(r),u.push({el:r,from:{x:i,y:s,width:2*t.r,height:2*t.r,rx:t.r},to:{x:n.x,y:n.y,width:n.width,height:n.height,rx:0},fill:gi(t.fill,m),fillEnd:String(m),delay:0,meta:{markState:y}})}}if(!u.length)return this._cancelPieces();this._runPieces(u,e=>{let t=e.meta.markState;t.remaining--,t.remaining===0&&(t.els.forEach(e=>{e.removeAttribute(`opacity`),e.removeAttribute(`data-piece-hidden`)}),t.tiles.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}))})}_runPieces(e,t){let n=this.getSpeed(),r=Math.min(300,.35*n),i=Math.max(180,n-r);for(let t=0;t<e.length;t++)e[t].delay=e.length>1?t/(e.length-1)*r:0;this._pieceCancel=function({pieces:e,duration:t,onPieceDone:n,onAllDone:r}){let i=!1,a=Date.now(),o=Math.max(1,t),s=(e,t)=>{let n=e.from,r=e.to,i=e.el;i.setAttribute(`x`,String(n.x+(r.x-n.x)*t)),i.setAttribute(`y`,String(n.y+(r.y-n.y)*t)),i.setAttribute(`width`,String(Math.max(0,n.width+(r.width-n.width)*t))),i.setAttribute(`height`,String(Math.max(0,n.height+(r.height-n.height)*t))),i.setAttribute(`rx`,String(Math.max(0,n.rx+(r.rx-n.rx)*t))),e.fill?i.setAttribute(`fill`,e.fill(t)):t>=1&&e.fillEnd&&i.setAttribute(`fill`,e.fillEnd)},c=()=>{if(i)return;let t=Date.now()-a,l=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i._done)continue;let a=(t-i.delay)/o;if(a<1&&(l=!0),a<=0)continue;let c=Math.min(1,a);s(i,_i(c)),c>=1&&(i._done=!0,n&&n(i))}l?v.requestAnimationFrame(c):r&&r()};return v.requestAnimationFrame(c),()=>{i=!0}}({pieces:e,duration:i,onPieceDone:t,onAllDone:()=>{this._pieceCancel=null,this._cancelPieces()}})}_collectTargetMarks(e){var t;let n=(t=this.w.globals.dom)==null?void 0:t.baseEl,r=new Map;if(!n)return r;let i=wi(e);if(i===`radial`)return n.querySelectorAll(`.apexcharts-pie-series .apexcharts-pie-area`).forEach((e,t)=>{let n=e.getAttribute(`data:pathFinal`)||e.getAttribute(`d`);if(!n||!n.trim())return;let i=this._pathBBox(n);i&&r.set(`${t}:0`,{realIndex:t,j:0,d:n,bbox:{x:i.minX,y:i.minY,width:i.maxX-i.minX,height:i.maxY-i.minY},fill:e.getAttribute(`fill`),els:[e]})}),r;let a=i===`summary`?`.apexcharts-${e}-series`:`.apexcharts-bar-series`;return n.querySelectorAll(`${a} .apexcharts-series`).forEach(e=>{var t;let n=parseInt((t=e.getAttribute(`data:realIndex`))==null?`0`:t,10)||0,i=0;e.querySelectorAll(`path[pathTo]`).forEach(e=>{var t;let a=e.getAttribute(`pathTo`)||e.getAttribute(`d`);if(!a||!a.trim())return;let o=parseInt((t=e.getAttribute(`j`))==null?``:t,10),s=isNaN(o)?i++:o,c=this._pathBBox(a);if(!c)return;let l=`${n}:${s}`,u=r.get(l);u?(u.els.push(e),u.bbox={x:Math.min(u.bbox.x,c.minX),y:Math.min(u.bbox.y,c.minY),width:Math.max(u.bbox.x+u.bbox.width,c.maxX)-Math.min(u.bbox.x,c.minX),height:Math.max(u.bbox.y+u.bbox.height,c.maxY)-Math.min(u.bbox.y,c.minY)}):r.set(l,{realIndex:n,j:s,bbox:{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY},fill:e.getAttribute(`fill`),els:[e]})})}),r}_captureFromDOM(e){var t;let n=(t=this.w.globals.dom)==null?void 0:t.baseEl;if(!n)return{marks:[],branches:[],unitDots:new Map};let r=[],i=[],a=new Map,o=wi(e);if(o===`bar`)n.querySelectorAll(`.apexcharts-bar-series .apexcharts-series`).forEach(e=>{var t;let n=parseInt((t=e.getAttribute(`data:realIndex`))==null?`0`:t,10);e.querySelectorAll(`path[pathTo]`).forEach((e,t)=>{let i=e.getAttribute(`pathTo`)||e.getAttribute(`d`);i&&r.push({realIndex:n,j:t,d:i,fill:e.getAttribute(`fill`)})})});else if(o===`summary`){let t=new Map;n.querySelectorAll(`.apexcharts-${e}
1799-area`).forEach(e=>{var n,r;let i=parseInt((n=e.getAttribute(`j`))==null?``:n,10);if(isNaN(i))return;let a=e.getAttribute(`pathTo`)||e.getAttribute(`d`);if(!a||!a.trim())return;let o=typeof e.closest==`function`?e.closest(`.apexcharts-series`):null,s=parseInt((r=o==null?void 0:o.getAttribute(`data:realIndex`))==null?`0`:r,10)||0,c=`${s}:${i}`,l=t.get(c);l?l.d+=` ${a}`:t.set(c,{realIndex:s,j:i,d:a,fill:e.getAttribute(`fill`)})}),Array.from(t.values()).sort((e,t)=>e.realIndex-t.realIndex||e.j-t.j).forEach(e=>r.push(e))}else if(o===`partition`){if(e===`treemap`){let e=e=>{var t,n,r,i;let a=parseFloat((t=e.getAttribute(`x`))==null?``:t),o=parseFloat((n=e.getAttribute(`y`))==null?``:n),s=parseFloat((r=e.getAttribute(`width`))==null?``:r),c=parseFloat((i=e.getAttribute(`height`))==null?``:i);return[a,o,s,c].every(e=>isFinite(e))?`M ${a} ${o} L ${a+s} ${o} L ${a+s} ${o+c} L ${a} ${o+c} Z`:null};n.querySelectorAll(`.apexcharts-treemap-rect`).forEach(t=>{var n,i;let a=e(t);a&&r.push({realIndex:parseInt((n=t.getAttribute(`i`))==null?`0`:n,10)||0,j:parseInt((i=t.getAttribute(`j`))==null?`0`:i,10)||0,d:a,fill:t.getAttribute(`fill`),key:t.getAttribute(`data:key`)||null})}),n.querySelectorAll(`.apexcharts-treemap-parent-rect`).forEach(t=>{let n=e(t),r=t.getAttribute(`data:key`);n&&r&&i.push({key:r,d:n,fill:t.getAttribute(`fill`)})})}else{let e=n.querySelectorAll(`.apexcharts-sunburst-arc`),t=[];e.forEach(e=>{e.getAttribute(`data:leaf`)===`true`&&t.push(e)}),(t.length?t:Array.from(e)).forEach((e,t)=>{let n=e.getAttribute(`d`);n&&n.trim()&&r.push({realIndex:t,j:0,d:n,fill:e.getAttribute(`fill`),key:e.getAttribute(`data:key`)||null})}),e.forEach(e=>{if(e.getAttribute(`data:leaf`)===`true`)return;let t=e.getAttribute(`d`),n=e.getAttribute(`data:key`);t&&t.trim()&&n&&i.push({key:n,d:t,fill:e.getAttribute(`fill`)})})}}else if(o===`unit`){let e=n.querySelectorAll(`.apexcharts-unit-area`),t=new Map;e.forEach(e=>{var n,r,i,o,s,c,l;let u=parseInt((n=e.getAttribute(`i`))==null?``:n,10);if(isNaN(u))return;let d=e.getAttribute(`cx`),f,p,m=3;if(d!=null)f=parseFloat(d),p=parseFloat((r=e.getAttribute(`cy`))==null?``:r),m=parseFloat((i=e.getAttribute(`r`))==null?`3`:i)||3;else{let t=parseFloat((o=e.getAttribute(`width`))==null?`0`:o)||0,n=parseFloat((s=e.getAttribute(`height`))==null?`0`:s)||0;f=parseFloat((c=e.getAttribute(`x`))==null?``:c)+t/2,p=parseFloat((l=e.getAttribute(`y`))==null?``:l)+n/2,m=Math.max(t,n)/2||3}if(!isFinite(f)||!isFinite(p))return;let h=a.get(u);h||(h=[],a.set(u,h)),h.push({x:f,y:p,r:m,fill:e.getAttribute(`fill`)});let g=t.get(u);g?(f<g.minX&&(g.minX=f),f>g.maxX&&(g.maxX=f),p<g.minY&&(g.minY=p),p>g.maxY&&(g.maxY=p)):t.set(u,{minX:f,minY:p,maxX:f,maxY:p,fill:e.getAttribute(`fill`)})}),Array.from(t.keys()).sort((e,t)=>e-t).forEach(e=>{let n=t.get(e),i=n.minX-2,a=n.minY-2,o=n.maxX+2,s=n.maxY+2;r.push({realIndex:e,j:0,d:`M ${i} ${a} L ${o} ${a} L ${o} ${s} L ${i} ${s} Z`,fill:n.fill})})}else if(o===`radial`){if(e===`radialBar`||e===`gauge`){let e=this.w.layout.gridWidth/2,t=Math.min(this.w.layout.gridWidth,this.w.layout.gridHeight)/2;n.querySelectorAll(`.apexcharts-radial-series .apexcharts-radialbar-area`).forEach(n=>{var i;let a=n.parentElement,o=parseInt((i=a==null?void 0:a.getAttribute(`data:realIndex`))==null?`0`:i,10),s=n.getAttribute(`d`);if(!s)return;let c=parseFloat(n.getAttribute(`stroke-width`)||`0`),l=c>1&&this._radialArcToFilledSegment(s,c,e,t)||s;r.push({realIndex:o,j:0,d:l,fill:n.getAttribute(`stroke`)})})}else n.querySelectorAll(`.apexcharts-pie-series .apexcharts-pie-area`).forEach((e,t)=>{let n=e.getAttribute(`d`);n&&r.push({realIndex:t,j:0,d:n,fill:e.getAttribute(`fill`)})})}return{marks:r,branches:i,unitDots:a}}_radialArcToFilledSegment(e,t,n,r){let i=e.match(/M\s*(-?[\d.]+)\s+(-?[\d.]+)\s+A\s*(-?[\d.]+)\s+(?:-?[\d.]+)\s+(?:-?[\d.]+)\s+(\d)\s+(\d)\s+(-?[\d.]+)\s+(-?[\d.]+)/);if(!i)return null;let a=parseFloat(i[1]),o=parseFloat(i[2]),s=parseFloat(i[3]),c=parseInt(i[4],10),l=parseInt(i[5],10),u=parseFloat(i[6]),d=parseFloat(i[7]);if(!isFinite(s)||s<=0)return null;let f=t/2,p=s+f,m=Math.max(0,s-f),h=(e,t,i)=>{let a=e-n,o=t-r,s=Math.sqrt(a*a+o*o);if(s===0)return{x:n,y:r};let c=i/s;return{x:n+a*c,y:r+o*c}},g=h(a,o,p),_=h(u,d,p),v=h(a,o,m),y=h(u,d,m),b=+!l;return`M ${g.x} ${g.y} A ${p} ${p} 0 ${c} ${l} ${_.x} ${_.y} L ${y.x} ${y.y} A ${m} ${m} 0 ${c} ${b} ${v.x} ${v.y} Z`}buildRingSegmentPath(e,t,n,r,i,a){let o=r/2,s=n+o,c=Math.max(0,n-o),l=(i-90)*Math.PI/180,u=(a-90)*Math.PI/180,d=e+s*Math.cos(l),f=t+s*Math.sin(l),p=e+s*Math.cos(u),m=t+s*Math.sin(u),h=e+c*Math.cos(l),g=t+c*Math.sin(l),_=e+c*Math.cos(u),v=t+c*Math.sin(u),y=+(a>i),b=+(Math.abs(a-i)>180);return`M ${d} ${f} A ${s} ${s} 0 ${b} ${y} ${p} ${m} L ${_} ${v} A ${c} ${c} 0 ${b} ${1-y} ${h} ${g} Z`}getFromType(){return this._snapshot?this._snapshot.fromType:null}_buildMapping(e,t,n,r,i){let a=new Map,o=wi(n),s=e.slice().sort((e,t)=>
1799e.realIndex-t.realIndex||e.j-t.j);if(o===`partition`&&i&&i.length){let e=s.filter(e=>e.key);e.length===s.length&&(e.forEach(e=>{a.set(`key:${e.key}`,{d:e.d,fill:e.fill})}),i.forEach(e=>{a.set(`key:${e.key}`,{d:e.d,fill:e.fill})}))}if(o===`radial`||o===`unit`||o===`partition`)return s.forEach((e,t)=>{a.set(`${t}:0`,{d:e.d,fill:e.fill})}),a;if(o===`bar`||o===`summary`){let e=[];return(Array.isArray(r)?r:[]).forEach((t,n)=>{let r=t&&Array.isArray(t.data)?t.data:[];for(let t=0;t<r.length;t++)e.push({realIndex:n,j:t})}),s.forEach((t,n)=>{let r=e[n];r&&a.set(`${r.realIndex}:${r.j}`,{d:t.d,fill:t.fill})}),a}return a}isActive(){return this._snapshot!==null}getInitialPathFor(e,t){if(!this._snapshot)return null;let n=this._snapshot.mapping.get(`${e}:${t}`);if(!n)return null;let r=this._snapshot.oldLayout.translateX-(this.w.layout.translateX||0),i=this._snapshot.oldLayout.translateY-(this.w.layout.translateY||0);return r===0&&i===0?n.d:this._translatePathD(n.d,r,i)}_translatePathD(e,t,n){return t===0&&n===0?e:ie(e).map(e=>{let r=e[0];return r===`Z`?`Z`:r===`M`||r===`L`||r===`T`?`${r} ${e[1]+t} ${e[2]+n}`:r===`H`?`${r} ${e[1]+t}`:r===`V`?`${r} ${e[1]+n}`:r===`C`?`${r} ${e[1]+t} ${e[2]+n} ${e[3]+t} ${e[4]+n} ${e[5]+t} ${e[6]+n}`:r===`S`||r===`Q`?`${r} ${e[1]+t} ${e[2]+n} ${e[3]+t} ${e[4]+n}`:r===`A`?`${r} ${e[1]} ${e[2]} ${e[3]} ${e[4]} ${e[5]} ${e[6]+t} ${e[7]+n}`:e.join(` `)}).join(` `)}getInitialCenterFor(e){let t=this.getInitialBBoxFor(e);return t?{x:t.x+t.width/2,y:t.y+t.height/2}:null}getInitialPathAt(e){return this.getInitialPathFor(e,0)}getInitialPathForKey(e){return this._snapshot&&e?this.getInitialPathFor(`key`,e):null}hasKeyedMarks(){if(!this._snapshot)return!1;for(let e of this._snapshot.mapping.keys())if(typeof e==`string`&&e.startsWith(`key:`))return!0;return!1}getInitialSlotFor(e,t,n){let r=this.getInitialBBoxFor(e);if(!r)return null;let i=r.x+r.width/2,a=r.y+r.height/2;if(!(n>1&&t>=0))return{x:i,y:a};let o=(Math.min(t,n-1)+.5)/n;return r.height>=r.width?{x:i,y:r.y+r.height*(1-o)}:{x:r.x+r.width*o,y:a}}getInitialBBoxFor(e){if(!this._snapshot)return null;let t=this._snapshot.mapping.get(`${e}:0`);if(!t)return null;let n=this._pathBBox(t.d);if(!n)return null;let r=this._snapshot.oldLayout.translateX-(this.w.layout.translateX||0),i=this._snapshot.oldLayout.translateY-(this.w.layout.translateY||0);return{x:n.minX+r,y:n.minY+i,width:n.maxX-n.minX,height:n.maxY-n.minY}}_pathBBox(e){let t=ie(e),n=1/0,r=1/0,i=-1/0,a=-1/0,o=!1;return t.forEach(e=>{let t=e[0];if(t===`Z`)return;let s=[];if(t===`H`)s=[[e[1],(r+a)/2||e[1]]];else if(t===`V`)s=[[(n+i)/2||e[1],e[1]]];else if(t===`A`)s=[[e[6],e[7]]];else for(let t=1;t+1<e.length;t+=2)s.push([e[t],e[t+1]]);s.forEach(([e,t])=>{isFinite(e)&&isFinite(t)&&(o=!0,e<n&&(n=e),e>i&&(i=e),t<r&&(r=t),t>a&&(a=t))})}),o?{minX:n,minY:r,maxX:i,maxY:a}:null}getInitialFillFor(e,t){if(!this._snapshot)return null;let n=this._snapshot.mapping.get(`${e}:${t}`);return n?n.fill:null}getSpeed(){let e=this.w.config.chart.animations;return e.chartTypeMorph&&e.chartTypeMorph.speed||e.speed||600}applyChromeFade(){var e;if(!this._snapshot||!d.isBrowser())return;let t=(e=this.w.globals.dom)==null?void 0:e.baseEl;if(!t)return;this._snapshot.pieceOut?this._separatePieces():this._snapshot.pieceIn?this._combinePieces():this._mountGhost();let n=this.getSpeed();[`.apexcharts-xaxis`,`.apexcharts-yaxis`,`.apexcharts-grid`,`.apexcharts-gridlines-horizontal`,`.apexcharts-gridlines-vertical`,`.apexcharts-legend`,`.apexcharts-title-text`,`.apexcharts-subtitle-text`].forEach(e=>{t.querySelectorAll(e).forEach(e=>{e.style&&(e.style.opacity=`0`,e.style.transition=`opacity ${n}ms ease-out`,v.requestAnimationFrame(()=>{e.style.opacity=`1`}),setTimeout(()=>{e.style.transition=``,e.style.opacity=``},n+80))})}),setTimeout(()=>this.cleanup(),n+100)}cleanup(){this._snapshot=null,this._removeGhost(),this._cancelPieces()}}});let Ti=`http://www.w3.org/1999/xhtml`;class Ei{constructor(e,t,n){this.w=e,this.ctx=t,this.drilldown=n}render(e){if(!d.isBrowser())return;let t=this.w,n=t.dom.elWrap;if(!n)return;let r=n.querySelector(`.apexcharts-breadcrumb`);r&&r.parentNode&&r.parentNode.removeChild(r);let i=t.config.drilldown&&t.config.drilldown.breadcrumb;if(!i||!1===i.show||this.drilldown.depth===0)return;let a=v.createElementNS(Ti,`nav`);a.setAttribute(`class`,`apexcharts-breadcrumb`),a.setAttribute(`aria-label`,`Drilldown breadcrumb`),this._position(a,i);let o=i.separator==null?` / `:i.separator;e.forEach((t,n)=>{if(n>0){let e=v.createElementNS(Ti,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-separator`),e.setAttribute(`aria-hidden`,`true`),e.textContent=o,a.appendChild(e)}let r=this._label(t,n);if(n===e.length-1){let e=v.createElementNS(Ti,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-item apexcharts-breadcrumb-current`),e.setAttribute(`aria-current`,`page`),e.textContent=r,a.appendChild(e)}else{let e=v.createElementNS(Ti,`button`);if(e.setAttribute(`type`,`button`),e.setAttribute(`class`,`apexcharts-breadcrumb-item`),n===0){let t=v.createElementNS(Ti,`span`);t.setAttribute(`class`,`apexcharts-breadcrumb-arrow`),t.setAttribute(`aria-hidden`,`true`),t.textContent=`←`,e.appendChild(t)}let t=v.createElementNS(Ti,`span`);t.setAttribute(`class`,`apexcharts-breadcrumb-label`),t.textContent=r,e.appendChild(t),e.addEventListener(`click`,()=>this.drilldown.drillToLevel(n)),a.appendChild(e)}}),n.appendChild(a),this.w.globals.axisCharts&&rn(this.w,this.ctx,a,i),this._avoidChromeOverlap(a)}_avoidChromeOverlap(e){let t=this.w,n=[`.apexcharts-title-text`,`.apexcharts-subtitle-text`].map(e=>t.dom.baseEl.querySelector(e)).filter(e=>e!==null);if(!n.length)return;let r=t.dom.elWrap.getBoundingClientRect().top;for(let t=0;t<n.length+1;t++){let t=e.getBoundingClientRect(),i=n.find(e=>{let n=e.getBoundingClientRect();return t.left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top});if(!i)break;e.style.top=i.getBoundingClientRect().bottom-r+4+`px`}}_label(e,t){let n=this.w.config.drilldown.breadcrumb,r;if(t===0)r=n.rootLabel==null?`All`:n.rootLabel;else{let t=(this.w.config.drilldown.series||[]).find(t=>t&&t.id===e);r=t&&t.name||String(e)}return typeof n.formatter==`function`?n.formatter(r,{index:t,depth:this.drilldown.depth}):r}_position(e,t){let n=t.offsetX||0,r=t.offsetY||0;e.style.position=`absolute`,e.style.top=r+`px`,t.position===`top-right`?e.style.right=3-n+`px`:e.style.left=n+`px`}}let Di=`http://www.w3.org/1999/xhtml`,Oi=`apexcharts-drilldown-loading`;class ki{constructor(e){this.w=e,this.el=null}_cfg(){let e=this.w.config.drilldown,t=e&&e.loading;return!1===t?{show:!1}:t||{}}show(){if(!d.isBrowser())return;let e=this._cfg();if(!1===e.show)return;let t=this.w.dom.elWrap;if(!t)return;this.hide();let n=v.createElementNS(Di,`div`);n.setAttribute(`class`,Oi),n.setAttribute(`role`,`status`),n.setAttribute(`aria-live`,`polite`),n.setAttribute(`aria-label`,e.text||`Loading`);let r=v.createElementNS(Di,`div`);if(r.setAttribute(`class`,`${Oi}-spinner`),r.setAttribute(`aria-hidden`,`true`),n.appendChild(r),e.text){let t=v.createElementNS(Di,`span`);t.setAttribute(`class`,`${Oi}-text`),t.textContent=e.text,n.appendChild(t)}t.appendChild(n),this.el=n}hide(){let e=this.w.dom.elWrap;if(e){let t=e.querySelectorAll(`.${Oi}`);for(let e=0;e<t.length;e++){let n=t[e];n.parentNode&&n.parentNode.removeChild(n)}}else this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el);this.el=null}}let Ai=`__apexDrilldownMarker`;Gr.registerFeatures({drilldown:class{constructor(e,t){this.w=e,this.ctx=t,this.stack=[],this.rootSnapshot=null,this._wired=!1,this._asyncCache=new Map,this._pending=null,this._warnedUnreachable=!1,this._warnedNoSliceOffset=!1,this.breadcrumb=new Ei(e,t,this),this.loading=new ki(e),this._onPointSelect=this._onPointSelect.bind(this),this._afterRender=this._afterRender.bind(this),this._onPlotDown=this._onPlotDown.bind(this),this._onPlotClick=this._onPlotClick.bind(this),this._downAt=null,this._plotClickWired=null,this.init()}init(){let e=this.w;e.config.drilldown&&e.config.drilldown.enabled&&(this._wired||(this._wired=!0,this.ctx.addEventListener(`dataPointSelection`,this._onPointSelect),this.ctx.addEventListener(`mounted`,this._afterRender),this.ctx.addEventListener(`updated`,this._afterRender),e.config.markers&&(e.config.markers.discrete=this._drillMarkers(e.config.series))))}get path(){return[`root`,...this.stack.map(e=>e.id)]}get depth(){return this.stack.length}drillDown(e,t,n){let r=this._resolveChild(e);return r?this._drillInto(r,t,n):typeof this.w.config.drilldown.onDrillDown==`function`?this._drillDownAsync(e,t,n):Promise.resolve(this.ctx)}drillUp(){return this.drillToLevel(this.stack.length-1)}drillToRoot(){return this.drillToLevel(0)}drillToLevel(e){let t=this.stack.length;if(e<0||e>=t)return Promise.resolve(this.ctx);let n=this.path[this.path.length-1],r=e===0?this.rootSnapshot:this.stack[e].restore;this.stack=this.stack.slice(0,e);let i=this.path[this.path.length-1];return this._apply(this._viewFromSnapshot(r),`up`,{from:n,to:i})}
1799_resolveChild(e){let t=this.w.config.drilldown&&this.w.config.drilldown.series;return Array.isArray(t)&&t.find(t=>t&&t.id===e)||null}_drillInto(e,t,n){if(this.stack.length>=32)return Promise.resolve(this.ctx);this.rootSnapshot||(this.rootSnapshot=this._snapshot());let r=this.path[this.path.length-1];return this.stack.push({id:e.id,name:e.name,restore:this._snapshot()}),this._apply(this._viewFromChild(e),`down`,{from:r,to:e.id,point:t,seriesIndex:n&&n.seriesIndex,dataPointIndex:n&&n.dataPointIndex})}_drillDownAsync(e,t,n){let r=this.w.config.drilldown.onDrillDown,i=this._cacheGet(e);if(i)return this._drillInto(i,t,n);if(this._pending)return this._pending;let a;this.loading.show();try{a=r({id:e,point:t,seriesIndex:n&&n.seriesIndex,dataPointIndex:n&&n.dataPointIndex})}catch(t){return this.loading.hide(),this._fire(`drillDownError`,{id:e,error:t}),Promise.resolve(this.ctx)}let o=()=>{this._pending=null,this.loading.hide()},l=Promise.resolve(a).then(r=>{if(o(),this._isDead())return this.ctx;if(!r||!r.data)return this._fire(`drillDownError`,{id:e,error:Error(`drilldown: onDrillDown resolved without a drillable level for id "${e}" (expected an object with a \`data\` array).`)}),this.ctx;let i=r.id==null?c(s({},r),{id:e}):r;return this._cacheSet(e,i),this._drillInto(i,t,n)},t=>(o(),this._isDead()||this._fire(`drillDownError`,{id:e,error:t}),this.ctx));return this._pending=l,l}_isDead(){let e=this.w;return!e||!e.globals||!0===e.globals.isDestroyed}_cacheEnabled(){let e=this.w.config.drilldown;return!(!e||!1===e.cache)}_cacheGet(e){return this._cacheEnabled()&&e!=null&&this._asyncCache.get(e)||null}_cacheSet(e,t){this._cacheEnabled()&&e!=null&&this._asyncCache.set(e,t)}clearCache(e){return e==null?this._asyncCache.clear():this._asyncCache.delete(e),this.ctx}_snapshot(){let e=this.w.config,t=this._overrideFields(),n={series:this._uncollapseSeries(x.clone(e.series))};return Array.isArray(e.labels)&&e.labels.length&&(n.labels=x.clone(e.labels)),n.chart={type:e.chart.type,stacked:e.chart.stacked},t.has(`xaxis`)&&(n.xaxis=x.clone(e.xaxis)),t.has(`yaxis`)&&(n.yaxis=x.clone(e.yaxis)),t.has(`colors`)&&(n.colors=e.colors?x.clone(e.colors):void 0),t.has(`plotOptions`)&&(n.plotOptions=x.clone(e.plotOptions)),t.has(`fill`)&&(n.fill=x.clone(e.fill)),t.has(`legend`)&&(n.legend=x.clone(e.legend)),n}_uncollapseSeries(e){let t=this.w,n=t.globals,r=[...n.collapsedSeries||[],...n.ancillaryCollapsedSeries||[]];if(!r.length)return e;let i=t.config.chart.type,a=(i===`pie`||i===`donut`||i===`polarArea`)&&e.length===1&&e[0]&&typeof e[0]==`object`&&Array.isArray(e[0].data)?e[0].data:e;for(let t of r){let r=t.index;n.axisCharts?e[r]&&(e[r].data=Array.isArray(t.data)?t.data.slice():t.data):a[r]&&typeof a[r]==`object`?a[r].y=t.data:a[r]!==void 0&&(a[r]=t.data)}return e}_overrideFields(){let e=new Set,t=this.w.config.drilldown&&this.w.config.drilldown.series||[];for(let n of t)n&&(n.xaxis&&e.add(`xaxis`),n.yaxis&&e.add(`yaxis`),n.colors&&e.add(`colors`),n.plotOptions&&e.add(`plotOptions`),n.fill&&e.add(`fill`),n.legend&&e.add(`legend`));return e}_copyOptionalViewFields(e,t){t.xaxis&&(e.xaxis=t.xaxis),t.yaxis&&(e.yaxis=t.yaxis),t.colors&&(e.colors=t.colors),t.plotOptions&&(e.plotOptions=t.plotOptions),t.fill&&(e.fill=t.fill),t.legend&&(e.legend=t.legend)}_viewFromChild(e){let t={};t.series=Array.isArray(e.series)?e.series:[{name:e.name||``,data:e.data}];let n={};return e.chart&&e.chart.type&&(n.type=e.chart.type),e.chart&&e.chart.stacked!=null&&(n.stacked=e.chart.stacked),Object.keys(n).length&&(t.chart=n),this._copyOptionalViewFields(t,e),t}_viewFromSnapshot(e){let t={series:e.series,chart:e.chart};return e.labels&&e.labels.length&&(t.labels=e.labels),this._copyOptionalViewFields(t,e),t}_apply(e,t,n){let r=this.w;r.interact.selectedDataPoints=[],r.globals.collapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeries=[],r.globals.ancillaryCollapsedSeriesIndices=[],r.globals.allSeriesCollapsed=!1,r.globals.risingSeries=[],e.markers=c(s({},e.markers||{}),{discrete:this._drillMarkers(e.series)});let i=(!r.config.drilldown.animation||!1!==r.config.drilldown.animation.enabled)&&!1!==r.config.chart.animations.enabled;t===`down`&&this._fire(`drillDownStart`,n);let a=t=>this.ctx.updateOptions(e,!1,t,!1,!1),o=()=>(this._fire(t===`down`?`drillDownEnd`:`drillUp`,n),this.ctx);if(i&&this._zoomEnabled()){let e=this._triggerOrigin(n);if(e)return this._zoomDrill(e,t,()=>a(!1)).then(o)}return a(i).then(o)}_zoomEnabled(){let e=this.w.config.drilldown&&this.w.config.drilldown.animation;return!(!e||!e.zoomFromPoint)}_svgNode(){let e=this.w.dom&&this.w.dom.Paper;return e&&e.node?e.node:null}_markGroup(){let e=this._svgNode();return e&&typeof e.querySelector==`function`?e.querySelector(`.apexcharts-plot-series, .apexcharts-heatmap, .apexcharts-treemap`):null}_triggerOrigin(e){if(!d.isBrowser())return null;let t=this._svgNode(),n=this._markGroup();if(!t||!n||typeof n.animate!=`function`||typeof t.getBoundingClientRect!=`function`)return null;let r=t.getBoundingClientRect(),i=null;if(e&&e.seriesIndex!=null&&e.dataPointIndex!=null&&this.w.dom.baseEl&&(i=this.w.dom.baseEl.querySelector(`[index="${e.seriesIndex}"][j="${e.dataPointIndex}"]`)),i&&typeof i.getBoundingClientRect==`function`){let e=i.getBoundingClientRect();return{x:e.left+e.width/2-r.left,y:e.top+e.height/2-r.top}}let a=n.getBoundingClientRect();return{x:a.left+a.width/2-r.left,y:a.top+a.height/2-r.top}}_zoomDrill(e,t,n){return u(this,null,function*(){let r=this._zoomDuration(),i=t===`down`,a=Math.round(.55*r),o=i?`scale(1.03)`:`scale(0.97)`,s=i?`scaleX(0.55) scaleY(0.85)`:`scale(1.04)`,c=t=>{t.style.transformBox=`view-box`,t.style.transformOrigin=`${e.x}px ${e.y}px`},l=this._markGroup(),u=null;if(l){c(l),u=l.animate([{transform:`scale(1)`,opacity:1},{transform:o,opacity:0}
1799],{duration:a,easing:`ease-in`,fill:`forwards`});try{yield u.finished}catch(e){}}yield n();let d=this._markGroup();if(d){c(d),d.style.opacity=`0`,d.style.transform=s,u&&l===d&&u.cancel();let e=d.animate([{transform:s,opacity:0},{transform:`scale(1)`,opacity:1}],{duration:r,easing:`cubic-bezier(0.16, 1, 0.3, 1)`,fill:`forwards`});try{yield e.finished}catch(e){}(f=d).style.transform=``,f.style.opacity=``,f.style.transformOrigin=``,f.style.transformBox=``,e.cancel()}var f})}_zoomDuration(){let e=this.w.config.drilldown&&this.w.config.drilldown.animation,t=e&&typeof e.speed==`number`?e.speed:260;return Math.max(80,t)}_fire(e,t){let n=this.w.config.chart.events&&this.w.config.chart.events[e];typeof n==`function`&&n(t,this.ctx,this.w),this.ctx.events.fireEvent(e,[t,this.ctx,this.w])}_onPointSelect(e,t,n){if(!n)return;let r=this._pointAt(n.seriesIndex,n.dataPointIndex);return r&&typeof r==`object`&&r.drilldown!=null?this.drillDown(r.drilldown,r,n):typeof this.w.config.drilldown.onDrillDown==`function`?this._drillDownAsync(null,r,n):void 0}_pointAt(e,t){let n=this.w.config.series;if(!Array.isArray(n)||e==null||t==null)return null;let r=n[e];return r&&Array.isArray(r.data)&&r.data[t]!=null?r.data[t]:null}_afterRender(){let e=this.w;e.config.drilldown&&e.config.drilldown.enabled&&(this._markDrillableTargets(),this._wirePlotClick(),this.breadcrumb.render(this.path),e.config.markers&&(e.config.markers.discrete=this._drillMarkers(e.config.series)))}_markDrillableTargets(){if(!d.isBrowser())return;let e=this.w,t=e.dom.baseEl,n=e.config.series;if(!t||!Array.isArray(n))return;let r=0;n.forEach((e,n)=>{let i=e&&Array.isArray(e.data)?e.data:null;i&&i.forEach((e,i)=>{if(!e||typeof e!=`object`||e.drilldown==null)return;let a=t.querySelectorAll(`[index="${n}"][j="${i}"]`);a.length||r++,a.forEach(e=>{this._isClickThroughMark(e)&&e.classList.remove(`no-pointer-events`),e.classList.add(`apexcharts-drilldown-target`)})})}),r&&!this._warnedUnreachable&&(this._warnedUnreachable=!0)}warnSliceOffsetDisabled(){this._warnedNoSliceOffset||(this._warnedNoSliceOffset=!0)}_wirePlotClick(){if(!d.isBrowser())return;let e=this.w.dom.baseEl;e&&this._plotClickWired!==e&&(this._plotClickWired&&(this._plotClickWired.removeEventListener(`mousedown`,this._onPlotDown),this._plotClickWired.removeEventListener(`click`,this._onPlotClick)),e.addEventListener(`mousedown`,this._onPlotDown),e.addEventListener(`click`,this._onPlotClick),this._plotClickWired=e)}_onPlotDown(e){this._downAt={x:e.clientX,y:e.clientY}}_onPlotClick(e){let t=this.w;if(!t.config.drilldown||!t.config.drilldown.enabled)return;let n=this._downAt;if(this._downAt=null,n&&Math.hypot(e.clientX-n.x,e.clientY-n.y)>4)return;let r=e.target;if(!r||typeof r.closest!=`function`||r.closest(`.apexcharts-drilldown-target`)||r.closest(`.apexcharts-legend, .apexcharts-toolbar, .apexcharts-breadcrumb, .apexcharts-menu, .apexcharts-tooltip`))return;let i=t.interact.capturedSeriesIndex,a=t.interact.capturedDataPointIndex;if(i==null||a==null||i<0||a<0||!this._isPointBasedSeries(t.config.series[i]))return;let o=this._pointAt(i,a);return o&&typeof o==`object`&&o.drilldown!=null?this.drillDown(o.drilldown,o,{seriesIndex:i,dataPointIndex:a}):void 0}_isClickThroughMark(e){return!(!e.classList||!e.classList.contains(`no-pointer-events`))&&!!e.classList.contains(`apexcharts-marker`)&&!(typeof e.closest==`function`&&e.closest(`.apexcharts-tooltip`))}_drillMarkers(e){let t=this.w,n=t.config.drilldown,r=Array.isArray(t.config.markers&&t.config.markers.discrete)?t.config.markers.discrete.filter(e=>!e||!e[Ai]):[],i=n&&n.marker||{};if(!1===i.show||!Array.isArray(e))return r;let a=[];return e.forEach((e,t)=>{if(!this._seriesNeedsDrillMarker(t,e))return;let n=e&&Array.isArray(e.data)?e.data:null;n&&n.forEach((e,n)=>{if(!e||typeof e!=`object`||e.drilldown==null)return;let r={seriesIndex:t,dataPointIndex:n,[Ai]:!0};i.size!==void 0&&(r.size=i.size),i.shape!==void 0&&(r.shape=i.shape),i.fillColor!==void 0&&(r.fillColor=i.fillColor),i.strokeColor!==void 0&&(r.strokeColor=i.strokeColor),a.push(r)})}),r.concat(a)}_seriesNeedsDrillMarker(e,t){if(!this._isPointBasedSeries(t))return!1;let n=this.w.config.markers&&this.w.config.markers.size,r=Array.isArray(n)?n[e]:n;return!(Number(r)>0)}_isPointBasedSeries(e){let t=e&&e.type||this.w.config.chart.type;return t===`line`||t===`area`}}});let ji=[`updateOptions`,`updateSeries`,`appendData`,`appendSeries`,`toggleSeries`,`showSeries`,`hideSeries`,`highlightSeries`,`isSeriesHidden`,`zoomX`,`addXaxisAnnotation`,`addYaxisAnnotation`,`addPointAnnotation`,`clearAnnotations`,`removeAnnotation`,`dataURI`,`exportToCSV`];function Mi(e){let t={};return ji.forEach(n=>{typeof e[n]==`function`&&(t[n]=e[n].bind(e))}),Object.freeze(t)}Gr.registerFeatures({weave:class{constructor(e,t){this.w=e,this.ctx=t,this.active=[],this._layers=new Map,this._currentScales=null,this._lastPluginsRef=null,this._lastData=null,this._updatedWired=!1,this._onUpdated=this._onUpdated.bind(this),this._init()}_init(){(this.w.config.plugins||[]).map((e,t)=>({entry:e,order:e.order==null?t:e.order})).sort((e,t)=>
1799e.order-t.order).forEach(e=>this._activate(e.entry)),this._lastPluginsRef=this.w.config.plugins,this._wireUpdated()}_wireUpdated(){this._updatedWired||(this.ctx.addEventListener(`updated`,this._onUpdated),this._updatedWired=!0)}_onUpdated(){this.dispatch(`afterUpdate`,{pass:`update`})}_activate(e){let t=(n=e.name,vr()[n]||null);var n;if(!t)return;let r=t.apiVersion==null?1:t.apiVersion;if(Math.trunc(r)!==1)return;let i={def:t,options:Object.freeze(s({},e.options||{})),handlers:new Map,disabled:!1,failures:0,api:null};i.api=function(e,t){let n=e.ctx,r=e.w,i={name:t.def.name,version:1,get options(){return t.options},on(e,n){let r=t.handlers;return r.has(e)||r.set(e,[]),r.get(e).push(n),i},off(e,n){let r=t.handlers.get(e);if(r){let e=r.indexOf(n);e>-1&&r.splice(e,1)}return i},store:{},layer:n=>e._layer(t.def.name,n||{}),get scales(){return e._currentScales},get data(){return e._lastData||(e._lastData=e._dataSnapshot())},theme:Object.freeze({get mode(){return r.config.theme.mode},get foreColor(){return r.config.chart.foreColor},seriesColor:e=>r.globals.colors[e],token:t=>e._token(t)}),chart:Mi(n),emit(e,r){n.events.fireEvent(`plugin:${t.def.name}:${e}`,[n,r])},get el(){return r.dom.baseEl}};return Object.freeze(i)}(this,i),this.active.push(i),this._guard(i,`setup`,()=>t.setup(i.api))}dispatch(e,t){if(e===`draw`&&(this._reconcile(),this._resetLayers()),this._lastData=null,!this.active.length)return;e===`afterParse`?this._currentScales=null:t&&`xyRatios`in t&&this._setScales(t.xyRatios);let n=t&&t.pass||`full`,r=null;for(let t of this.active){if(t.disabled)continue;let i=t.handlers.get(e);if(!i||!i.length)continue;r===null&&(r=this._dataSnapshot(),this._lastData=r);let a={api:t.api,scales:this._currentScales,data:r,pass:n,hook:e};for(let n of i.slice())this._guard(t,e,()=>n(a))}}_guard(e,t,n){if(!e.disabled)try{n()}catch(t){e.failures=(e.failures||0)+1,e.failures>=3&&(e.disabled=!0)}}_setScales(e){let t=this.w,n=t.globals,r=t.layout;if(!e||!n.axisCharts)return void(this._currentScales=null);let i=e.xRatio,a=e.yRatio||[],o=e=>n.maxYArr[e]==null?n.maxY:n.maxYArr[e],s=e=>n.minYArr[e]==null?n.minY:n.minYArr[e];this._currentScales={x:e=>r.translateX+(e-n.minX)/i,y:(e,t=0)=>r.translateY+(o(t)-e)/(e=>a[e]==null?a[0]:a[e])(t),domainX:[n.minX,n.maxX],domainY:(e=0)=>[s(e),o(e)],gridWidth:r.gridWidth,gridHeight:r.gridHeight,ratios:e}}_dataSnapshot(){let e=this.w,t=e.globals,n=e.seriesData.series||[],r=e.seriesData.seriesX||[];return n.map((e,n)=>{let i=r[n]||[],a=(e||[]).map((e,t)=>({x:i[t]==null?t:i[t],y:e}));return{name:t.seriesNames?t.seriesNames[n]:void 0,hidden:(t.collapsedSeriesIndices||[]).includes(n),color:t.colors?t.colors[n]:void 0,points:a}})}_token(e){let t=this.w,n=t.globals;switch(e){case`foreColor`:return t.config.chart.foreColor;case`background`:return t.config.chart.background;case`accent`:case`primary`:return n.colors?n.colors[0]:void 0;default:return/^series-\d+$/.test(e)&&n.colors?n.colors[Number(e.split(`-`)[1])]:void 0}}_layer(e,{z:t=`front`,className:n=``}={}){let r=this._layers.get(e);if(!r){r=this.ctx.graphics.group({class:`apexcharts-plugin-${e} ${n}`.trim()});let i=this.w.dom.elGraphical.node;t===`behind`?i.insertBefore(r.node,i.firstChild):i.appendChild(r.node),r.node.setAttribute(`aria-hidden`,`true`),this._layers.set(e,r)}return function(e,t){let n=t=>(t&&e.add(t),t),r={get node(){return e.node},path(e={}){let{d:r=``,stroke:i=`#000`,width:a=1,fill:o=`none`,opacity:s=1,dash:c=0,className:l=``}=e;return n(t.drawPath({d:r,stroke:i,strokeWidth:a,fill:o,fillOpacity:o===`none`?0:s,strokeOpacity:s,strokeDashArray:c,classes:l}))},line(e={}){let{x1:r,y1:i,x2:a,y2:o,stroke:s=`#000`,width:c=1,dash:l=0}=e;return n(t.drawLine(r,i,a,o,s,l,c))},rect(e={}){let{x:r=0,y:i=0,w:a=0,h:o=0,r:s=0,fill:c=`#000`,stroke:l=null,opacity:u=1}=e;return n(t.drawRect(r,i,a,o,s,c,u,l==null?null:1,l))},circle(e={}){let{cx:r=0,cy:i=0,r:a=0,fill:o=`#000`,stroke:s=null}=e;return n(t.drawCircle(a,{cx:r,cy:i,fill:o,stroke:s||`none`}))},text(e={}){let{x:r=0,y:i=0,text:a=``,color:o,size:s,anchor:c=`start`,weight:l}=e;return n(t.drawText({x:r,y:i,text:a,textAnchor:c,fontSize:s,foreColor:o,fontWeight:l}))},clear(){let t=e.node;for(;t.firstChild;)t.removeChild(t.firstChild);return r}};return r}(r,this.ctx.graphics)}_resetLayers(){let e=this.w.dom.elGraphical,t=e&&e.node;if(t){let e=t.querySelectorAll(`g[class*="apexcharts-plugin-"]`);Array.prototype.forEach.call(e,e=>e.remove())}this._layers.clear()}_reconcile(){let e=this.w.config.plugins||[];if(e===this._lastPluginsRef)return;this._lastPluginsRef=e;let t=new Map(e.map((e,t)=>[e.name,{entry:e,order:e.order==null?t:e.order}]));for(let e=this.active.length-1;e>=0;e--){let n=this.active[e],r=t.get(n.def.name);r?n.options=Object.freeze(s({},r.entry.options||{})):(this._guard(n,`destroy`,()=>n.def.destroy&&n.def.destroy(n.api)),this.active.splice(e,1))}let n=new Set(this.active.map(e=>e.def.name)),r=[];t.forEach((e,t)=>{n.has(t)||r.push(e)}),r.sort((e,t)=>
1799e.order-t.order).forEach(e=>this._activate(e.entry))}teardown(e){if(!e){this.dispatch(`destroy`);for(let e of this.active)this._guard(e,`destroy`,()=>e.def.destroy&&e.def.destroy(e.api));this.active=[],this._updatedWired&&(this.ctx.removeEventListener&&this.ctx.removeEventListener(`updated`,this._onUpdated),this._updatedWired=!1)}this._layers.clear()}}}),Gr._customSeriesFactory=function(e,t){let n=class{constructor(e,t,n){this.w=e,this.ctx=t,this.xyRatios=n,this._warned=!1}draw(e,n,r){var i,a;let o=this.w,s=new K(o,this.ctx),c=Ie(this.ctx,s),l=s.group({class:`apexcharts-marks-series`});return e.forEach((e,n)=>{var i;let a=Array.isArray(r)?r[n]:n,u=s.group({class:`apexcharts-series`,rel:a+1,seriesName:x.escapeString(o.seriesData.seriesNames[a]),"data:realIndex":a}),d=this._scales(a,(o.seriesData.series[a]||[]).length),f=o.globals.colors[a],p=((i=o.config.series[a])==null?void 0:i.data)||[],m=o.seriesData.seriesX[a]||[],h=o.seriesData.series[a]||[];o.globals.seriesXvalues[a]=[],o.globals.seriesYvalues[a]=[],o.globals.pointsArray[a]===void 0&&(o.globals.pointsArray[a]=[]);for(let e=0;e<h.length;e++){let n=h[e];if(n==null)continue;let r=m[e],i=d.xAt(e,r),s=d.y(n),l=this._api(c,u,a,e);try{t.renderItem({datum:p[e],x:i,y:s,scales:d,api:l,seriesIndex:a,dataPointIndex:e,color:f})}catch(e){this._warned||(this._warned=!0)}o.globals.seriesXvalues[a][e]=i,o.globals.seriesYvalues[a][e]=s,o.globals.pointsArray[a][e]=[i,s]}s.setupEventDelegation(u,`.apexcharts-marks-mark`),l.add(u)}),(a=(i=this.ctx.animations)==null?void 0:i.animationCompleted)==null||a.call(i,l),l}_scales(e,t){var n,r,i,a;let o=this.w.globals,s=this.w.config,c=this.xyRatios.xRatio,l=this.xyRatios.yRatio,u=(r=(n=o.seriesYAxisReverseMap)==null?void 0:n[e])==null?0:r,d=Array.isArray(l)?(i=l[u])==null?l[0]:i:l,f=o.maxYArr,p=Array.isArray(f)&&f.length&&(a=f[u])!=null?a:o.maxY,m=o.gridWidth,h=o.gridHeight,g=!o.isXNumeric,_=t||o.dataPoints||1,v=_>0?m/_:m,y=s.xaxis.tickPlacement===`on`,b=e=>c?(e-o.minX)/c:m/2,x=o.minXDiff||1;return{x:b,xAt:(e,t)=>g?y&&_>1?e/(_-1)*m:(e+.5)*v:b(t),y:e=>(p-e)/d,gridWidth:m,gridHeight:h,band:g?v:c?x/c:m}}_api(e,t,n,r){let i=e=>{if(e){try{e.node.setAttribute(`index`,String(n)),e.node.setAttribute(`j`,String(r)),e.node.classList.add(`apexcharts-marks-mark`)}catch(e){}t.add(e)}return e};return{path:(t={})=>{var n,r,a,o,s,c,l,u,d;return i(e.drawPath({d:t.d||``,stroke:(n=t.stroke)==null?`#000`:n,strokeWidth:(a=(r=t.width)==null?t.strokeWidth:r)==null?1:a,fill:(o=t.fill)==null?`none`:o,fillOpacity:(c=t.fillOpacity)==null?t.fill&&t.fill!==`none`?(s=t.opacity)==null?1:s:0:c,strokeOpacity:(u=(l=t.strokeOpacity)==null?t.opacity:l)==null?1:u,strokeDashArray:(d=t.dash)==null?0:d,strokeLinecap:t.lineCap}))},line:(t={})=>{var n,r,a,o;return i(e.drawLine(t.x1,t.y1,t.x2,t.y2,(n=t.stroke)==null?`#000`:n,(r=t.dash)==null?0:r,(o=(a=t.width)==null?t.strokeWidth:a)==null?1:o))},rect:(t={})=>{var n,r,a,o,s,c,l,u;return i(e.drawRect((n=t.x)==null?0:n,(r=t.y)==null?0:r,(a=t.w)==null?0:a,(o=t.h)==null?0:o,(s=t.r)==null?0:s,(c=t.fill)==null?`#000`:c,(l=t.opacity)==null?1:l,t.stroke==null?null:(u=t.strokeWidth)==null?1:u,t.stroke))},circle:(t={})=>{var n,r,a,o,s;return i(e.drawCircle((n=t.r)==null?0:n,{cx:(r=t.cx)==null?0:r,cy:(a=t.cy)==null?0:a,fill:(o=t.fill)==null?`#000`:o,stroke:t.stroke||`none`,"stroke-width":(s=t.strokeWidth)==null?+!!t.stroke:s}))},text:(t={})=>{var n,r,a,o;return i(e.drawText({x:(n=t.x)==null?0:n,y:(r=t.y)==null?0:r,text:(a=t.text)==null?``:a,textAnchor:(o=t.anchor)==null?`start`:o,fontSize:t.size,foreColor:t.color,fontWeight:t.weight}))}}}};return n.dataType=t.dataType||`xy`,n.yExtent=typeof t.yExtent==`function`?t.yExtent:null,n};class Ni{constructor(e,t){if(this.w=e,this.ctx=t,e.config.theme.follow!==`os`||!d.isBrowser())return;let n=this._ensureMedia();n&&(this._applyToConfig(n),this._ensureListeners(n))}_ensureMedia(){if(!this.ctx._osThemeMedia){let e=v.matchMedia(`(prefers-color-scheme: dark)`),t=v.matchMedia(`(prefers-contrast: more)`);if(!e&&!t)return null;this.ctx._osThemeMedia={dark:e,contrast:t,handler:null}}return this.ctx._osThemeMedia}_applyToConfig(e){let t=this.w.config.theme;e.dark&&(t.mode=e.dark.matches?`dark`:`light`),e.contrast&&e.contrast.matches&&(t.accessibility=t.accessibility||{},t.accessibility.colorBlindMode=`highContrast`)}_ensureListeners(e){if(e.handler)return;let t=this.ctx,n=()=>{let e=t._osThemeMedia;if(!e)return;
1799let n={mode:e.dark&&e.dark.matches?`dark`:`light`};n.accessibility=e.contrast&&e.contrast.matches?{colorBlindMode:`highContrast`}:{colorBlindMode:``},t.updateOptions({theme:n},!1,!0,!1)};Ni._add(e.dark,n),Ni._add(e.contrast,n),e.handler=n}teardown(){let e=this.ctx._osThemeMedia;e&&(e.handler&&(Ni._remove(e.dark,e.handler),Ni._remove(e.contrast,e.handler)),this.ctx._osThemeMedia=null)}static _add(e,t){e&&(typeof e.addEventListener==`function`?e.addEventListener(`change`,t):typeof e.addListener==`function`&&e.addListener(t))}static _remove(e,t){e&&(typeof e.removeEventListener==`function`?e.removeEventListener(`change`,t):typeof e.removeListener==`function`&&e.removeListener(t))}}Gr.registerFeatures({osThemeWatcher:Ni});function Pi(e,t){let n=e.length;if(n===0)return NaN;if(n===1)return e[0];let r=(n-1)*t,i=Math.floor(r),a=Math.ceil(r);return i===a?e[i]:e[i]+(e[a]-e[i])*(r-i)}function Fi(e){let t=e.length;if(t<2)return 0;let n=0;for(let r=0;r<t;r++)n+=e[r];let r=n/t,i=0;for(let n=0;n<t;n++){let t=e[n]-r;i+=t*t}return Math.sqrt(i/t)}function Ii(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let n=e.slice().sort((e,t)=>e-t),r=n[0],i=n[n.length-1],a=t.range;if(Array.isArray(a)&&a.length===2){let e=Number(a[0]),t=Number(a[1]);isFinite(e)&&isFinite(t)&&t>e&&(r=e,i=t)}if(!(i>r)){let e=Math.abs(r)>0?.05*Math.abs(r):.5;return{edges:[r-e,r+e],binWidth:2*e,rule:`single`,capped:!1}}let o=i-r,s,c;if(typeof t.binWidth==`number`&&t.binWidth>0)s=t.binWidth,c=`binWidth`;else if(typeof t.bins==`number`&&t.bins>=1)s=o/Math.floor(t.bins),c=`count`;else{let e=function(e,t,n){let r=e.length,i=e=>t/Math.max(1,Math.ceil(e));switch(n){case`sqrt`:return{width:i(Math.sqrt(r)),rule:`sqrt`};case`rice`:return{width:i(2*Math.cbrt(r)),rule:`rice`};case`scott`:{let t=Fi(e);return t>0?{width:3.49*t*Math.pow(r,-1/3),rule:`scott`}:{width:i(Math.log2(r)+1),rule:`sturges`}}
1799case`fd`:{let t=Pi(e,.75)-Pi(e,.25);return t>0?{width:2*t*Math.pow(r,-1/3),rule:`fd`}:{width:i(Math.log2(r)+1),rule:`sturges`}}case`auto`:{let t=i(Math.log2(r)+1),n=Pi(e,.75)-Pi(e,.25);if(n<=0)return{width:t,rule:`sturges`};let a=2*n*Math.pow(r,-1/3);return a<t?{width:a,rule:`fd`}:{width:t,rule:`sturges`}}default:return{width:i(Math.log2(r)+1),rule:`sturges`}}}(n,o,typeof t.bins==`string`?t.bins:`auto`);s=e.width,c=e.rule}(!isFinite(s)||s<=0)&&(s=o);let l=Math.ceil(o/s);(!isFinite(l)||l<1)&&(l=1);let u=!1;l>1e3&&(l=1e3,s=o/l,u=!0),s=o/l;let d=Array(l+1);for(let e=0;e<=l;e++)d[e]=r+e*s;return d[l]=Math.max(d[l],i),{edges:d,binWidth:s,rule:c,capped:u}}function Li(e,t){let n=t.length-1;if(!(e>=t[0])||e>t[n])return-1;if(e===t[n])return n-1;let r=(t[n]-t[0])/n;if(r>0){let i=Math.floor((e-t[0])/r);return i<0&&(i=0),i>n-1&&(i=n-1),e<t[i]?i--:e>=t[i+1]&&i++,i<0||i>n-1?-1:i}let i=0,a=n-1;for(;i<=a;){let n=i+a>>1;if(e<t[n])a=n-1;else{if(!(e>=t[n+1]))return n;i=n+1}}return-1}function Ri(e){let t=[];if(!Array.isArray(e))return t;for(let n=0;n<e.length;n++){let r=e[n],i=r;Array.isArray(r)?i=r.length===1?r[0]:r[1]:r&&typeof r==`object`&&(i=r.y===void 0?r.x:r.y);let a=x.parseNumber(i);
1799a!==null&&isFinite(a)&&t.push(a)}return t}let zi=new WeakSet;function Bi(e,t){var n;if(!e||typeof e!=`object`||Array.isArray(e))return null;let r=null;if(Array.isArray(e.points)?r=e.points:Array.isArray((n=e.y)==null?void 0:n.points)?r=e.y.points:t&&Array.isArray(e.y)&&typeof e.y[0]==`number`&&(r=e.y),!r)return null;let i=[];for(let e=0;e<r.length;e++){let t=x.parseNumber(r[e]);t!==null&&isFinite(t)&&i.push(t)}return i.length?i:null}function Vi(e,t,n){let r=n&&n.maxRows!=null?n.maxRows:3e3,i=function(e,t){let n=0,r=0;for(let t of e)n+=t.length,t.length>r&&(r=t.length);if(n<=t)return{clusters:e,stride:1,total:n,kept:n};let i=t=>{let n=0;for(let r of e)n+=Math.ceil(r.length/t);return n},a=Math.max(2,Math.ceil(n/t));for(;a<r&&i(a)>t;)a++;let o=0;return{clusters:e.map(e=>{let t=[];for(let n=0;n<e.length;n+=a)t.push(e[n]);return o+=t.length,t}),stride:a,total:n,kept:o}}(t.map(e=>e.rows),r);i.stride;let a=e.globals&&e.globals.colors||[];return t.map((e,t)=>{let n=a[e.realIndex]||a[0];return{name:e.name,data:i.clusters[t].map((r,i)=>s({id:`${e.realIndex}:${t}:${i}`,x:e.name,y:r},n?{fillColor:n}:{}))}})}function Hi(e){if(!isFinite(e))return String(e);let t=Math.round(e);return Math.abs(e-t)<1e-6?String(t):String(Number(e.toFixed(2)))}function Ui(e){return(t,n)=>{var r;let i=e(t);if(!Array.isArray(i)||!i.length)return null;let a=t.globals&&t.globals.collapsedSeriesIndices||[],o=t.globals&&((r=t.globals.categoryLabels)!=null&&r.length?t.globals.categoryLabels:t.globals.labels)||[],s=[];return i.forEach((e,n)=>{var r;if(a.indexOf(n)!==-1||!Array.isArray(e))return;let c=t.seriesData&&((r=t.seriesData.seriesNames)==null?void 0:r[n]);e.forEach((e,t)=>{let r=o[t]==null?`#${t+1}`:String(o[t]);s.push({name:i.length>1&&c?`${c} ${r}`:r,realIndex:n,rows:Array.isArray(e)?e.slice():[]})})}),s.length?Vi(t,s,n):null}}let Wi=Ui(e=>{var t;return(t=e.candleData)==null?void 0:t.seriesBoxPoints}),Gi=Ui(e=>{var t;return(t=e.violinData)==null?void 0:t.seriesViolinPoints});bn(`histogram`,function(e,t){var n;let r=t.config,i=t.globals;if(!Array.isArray(e))return e;i.histogramRawSeries||(i.histogramRawSeries=e.map(e=>c(s({},e),{data:Array.isArray(e==null?void 0:e.data)?e.data.slice():e==null?void 0:e.data})));let a=i.histogramRawSeries,o=((n=r.plotOptions)==null?void 0:n.histogram)||{},l=a.map(e=>Ri(e==null?void 0:e.data)),u=[];if(l.length===1)u=l[0];else for(let e of l)u=u.concat(e);let d=Ii(u,{bins:o.bins,binWidth:o.binWidth,range:o.range});if(!d)return t.histogramData={edges:[],binWidth:0,counts:[],rule:``,capped:!1},a;let{edges:f,binWidth:p}=d,m=l.map(e=>function(e,t){let n=Array(Math.max(0,t.length-1)).fill(0);for(let r=0;r<e.length;r++){let i=Li(e[r],t);i>=0&&n[i]++}return n}(e,f));t.histogramData={edges:f,binWidth:p,counts:m,rule:d.rule,capped:d.capped};let h=i.collapsedSeriesIndices||[];return a.map((e,t)=>{if(h.indexOf(t)!==-1)return c(s({},e),{data:[]});let n=function(e,t={}){let n=e.slice();if(t.cumulative){let e=0;n=n.map(t=>e+=t)}let r=e.reduce((e,t)=>e+t,0);if(r<=0)return n;if(t.normalize===`relative`)return n.map(e=>e/r*100);if(t.normalize===`density`){let e=t.binWidth;
1799if(typeof e==`number`&&e>0)return n.map(t=>t/(r*e))}return n}(m[t],{normalize:o.normalize,cumulative:o.cumulative,binWidth:p}),r=[];for(let e=0;e<n.length;e++)r.push({x:(f[e]+f[e+1])/2,y:n[e]});return c(s({},e),{data:r})})}),bn(`boxPlot`,function(e,t){var n,r;if(!Array.isArray(e))return e;let i=((r=(n=t.config.plotOptions)==null?void 0:n.boxPlot)==null?void 0:r.whiskers)||`minmax`;return e.map(e=>{if(!Array.isArray(e==null?void 0:e.data))return e;let t=!1,n=e.data.map(e=>{if(Array.isArray(e==null?void 0:e.y)&&e.y.length===5&&!zi.has(e))return e;let n=Bi(e,!1);if(!n)return e;let r=function(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let n=e.slice().sort((e,t)=>e-t),r=Pi(n,.25),i=Pi(n,.5),a=Pi(n,.75),o=a-r,s=n[0],c=n[n.length-1],l=[];if(t.whiskers===`tukey`&&o>0){let e=r-1.5*o,t=a+1.5*o,i=0;for(;i<n.length&&n[i]<e;)i++;let u=n.length-1;for(;u>=0&&n[u]>t;)u--;i<=u&&(s=n[i],c=n[u],l=n.slice(0,i).concat(n.slice(u+1)))}return{summary:[s,r,i,a,c],outliers:l,iqr:o}}(n,{whiskers:i});if(!r)return e;t=!0;let a=c(s({},e),{y:r.summary,points:n});return zi.add(a),a});return t?c(s({},e),{data:n}):e})}),bn(`violin`,function(e,t){var n,r;if(!Array.isArray(e))return e;let i=((r=(n=t.config.plotOptions)==null?void 0:n.violin)==null?void 0:r.kde)||{};return e.map(e=>{if(!Array.isArray(e==null?void 0:e.data))return e;let t=!1,n=e.data.map(e=>{var n;if(Array.isArray((n=e==null?void 0:e.y)==null?void 0:n.density)&&e.y.density.length&&!zi.has(e))return e;let r=Bi(e,!0);if(!r)return e;let a=function(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let n=e.slice().sort((e,t)=>e-t),r=n.length,i=t.bandwidth;if(!(typeof i==`number`&&i>0)){let e=Fi(n),t=Pi(n,.75)-Pi(n,.25);i=.9*(t>0?Math.min(e,t/1.349):e)*Math.pow(r,-.2)}if(!isFinite(i)||i<=0){let e=n[0],t=Math.abs(e)>0?.001*Math.abs(e):.001;return{density:[[e-t,0],[e,1],[e+t,0]],bandwidth:t}}let a=Math.max(8,Math.floor(t.resolution||64)),o=n[0]-2*i,s=(n[r-1]+2*i-o)/(a-1),c=1/(r*i*Math.sqrt(2*Math.PI)),l=[];for(let e=0;e<a;e++){let t=o+e*s,a=0;for(let e=0;e<r;e++){let r=(t-n[e])/i;a+=Math.exp(-.5*r*r)}l.push([t,a*c])}return{density:l,bandwidth:i}}(r,{bandwidth:i.bandwidth,resolution:i.resolution});if(!a)return e;t=!0;let o=c(s({},e),{y:{density:a.density,points:r}});return zi.add(o),o});return t?c(s({},e),{data:n}):e})}),hr(`histogram`,function(e,t){let n=e.globals,r=e.histogramData,i=n&&n.histogramRawSeries;if(!r||!Array.isArray(r.edges)||r.edges.length<2||!Array.isArray(i)||!i.length)return null;let a=n&&n.collapsedSeriesIndices||[],o=r.edges,s=[];return i.forEach((t,n)=>{var r;if(a.indexOf(n)!==-1)return;let c=function(e,t){let n=Math.max(0,t.length-1),r=Array(n);for(let e=0;e<n;e++)r[e]=[];for(let n=0;n<e.length;n++){let i=Li(e[n],t);i>=0&&r[i].push(e[n])}return r}(Ri(t&&t.data),o),l=e.seriesData&&((r=e.seriesData.seriesNames)==null?void 0:r[n])||(t==null?void 0:t.name);c.forEach((e,t)=>{let r=`${Hi(o[t])}-${Hi(o[t+1])}`;s.push({name:i.length>1&&l?`${l} ${r}`:r,realIndex:n,rows:e})})}),s.length?Vi(e,s,t):null}),hr(`boxPlot`,Wi),hr(`violin`,Gi);class Ki{constructor(e){this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}handleBarDataLabels(e){let{x:t,y:n,y1:r,y2:i,i:a,j:o,realIndex:l,columnGroupIndex:u,series:d,barHeight:f,barWidth:p,barXPosition:m,barYPosition:h,visibleSeries:g}=e,_=this.w,v=new K(this.barCtx.w),y=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[l]:this.barCtx.strokeWidth,b,x;_.axisFlags.isXNumeric&&!_.globals.isBarHorizontal?(b=t+p*(g+1),x=n+f*(g+1)-y):(b=t+p*g,x=n+f*g);let S=null,C=null,w=t,T=n,E={},D=_.config.dataLabels,O=this.barCtx.barOptions.dataLabels,k=this.barCtx.barOptions.dataLabels.total;h!==void 0&&(this.barCtx.isRangeBar||this.barCtx.isPyramid)&&(x=h,T=h),m!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(b=m,w=m);let A=Be(D.offsetX,_,l,o),j=Be(D.offsetY,_,l,o),M={width:0,height:0};if(_.config.dataLabels.enabled){let e=_.seriesData.series[l][o];M=v.getTextRects(_.config.dataLabels.formatter?_.config.dataLabels.formatter(e,c(s({},_),{seriesIndex:l,dataPointIndex:o,w:_}
1799)):_.formatters.yLabelFormatters[0](e),parseFloat(D.style.fontSize).toString(),D.style.fontFamily,void 0,!0,D.style.fontWeight)}let N={x:t,y:n,i:a,j:o,realIndex:l,columnGroupIndex:u,bcx:b,bcy:x,barHeight:f,barWidth:p,textRects:M,strokeWidth:y,dataLabelsX:w,dataLabelsY:T,dataLabelsConfig:D,barDataLabelsConfig:O,barTotalDataLabelsConfig:k,offX:A,offY:j};return E=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(N):this.calculateColumnsDataLabelsPosition(N),S=this.drawCalculatedDataLabels({x:E.dataLabelsX,y:E.dataLabelsY,val:this.barCtx.isRangeBar?[r,i]:_.config.chart.stackType===`100%`?d[l][o]:_.seriesData.series[l][o],i:l,j:o,barWidth:p,barHeight:f,textRects:M,dataLabelsConfig:D}),_.config.chart.stacked&&k.enabled&&(C=this.drawTotalDataLabels({x:E.totalDataLabelsX,y:E.totalDataLabelsY,barWidth:p,barHeight:f,realIndex:l,j:o,textAnchor:E.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:l,j:o}),rawVal:this.getStackedTotalValue({realIndex:l,j:o}),dataLabelsConfig:D,barTotalDataLabelsConfig:k})),{dataLabelsPos:E,dataLabels:S,totalDataLabels:C}}hasMultipleSeriesGroups(){return this.w.labelData.seriesGroups.length>1}getTotalGroupContext(e){if(!this.hasMultipleSeriesGroups())return null;let t=this.barCtx.barHelpers.getSeriesGroupIndex(e);return t<0?null:{groupIndex:t,group:this.w.labelData.seriesGroups[t]}}drawsStackedTotal(e){let t=this.barCtx.lastActiveBarSerieIndexByGroup,n=this.getTotalGroupContext(e);return n&&t&&t.length>n.groupIndex?t[n.groupIndex]===e:this.barCtx.lastActiveBarSerieIndex===e}getStackedTotalValue({realIndex:e,j:t}){let n=this.w,r=this.getTotalGroupContext(e),i=n.seriesData.stackedSeriesTotalsByGroups;return r&&i&&i[r.groupIndex]?i[r.groupIndex][t]:this.barCtx.stackedSeriesTotals[t]}getStackedTotalDataLabel({realIndex:e,j:t}){let n=this.w,r=this.getStackedTotalValue({realIndex:e,j:t});return this.totalFormatter&&(r=this.totalFormatter(r,c(s({},n),{seriesIndex:e,dataPointIndex:t,w:n}))),r}calculateColumnsDataLabelsPosition(e){let t=this.w,n,r,{i,j:a,realIndex:o,y:s,bcx:c,barWidth:l,barHeight:u,textRects:d,dataLabelsX:f,dataLabelsY:p,dataLabelsConfig:m,barDataLabelsConfig:h,barTotalDataLabelsConfig:g,strokeWidth:_,offX:v,offY:y}=e,b=c;u=Math.abs(u);let x=t.config.plotOptions.bar.dataLabels.orientation===`vertical`,{zeroEncounters:S}=this.barCtx.barHelpers.getZeroValueEncounters({i,j:a});c-=_/2;let C=t.layout.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?f+=l/2:(f=t.axisFlags.isXNumeric?c-l/2+v:c-C+l/2+v,!t.config.chart.stacked&&S>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(f-=l*S)),x&&(f=f+d.height/2-_/2-2);let w=t.seriesData.series[i][a]<0,T=s;switch(this.barCtx.isReversed&&(T=s+(w?u:-u)),h.position){case`center`:p=x?w?T-u/2+y:T+u/2-y:w?T-u/2+d.height/2+y:T+u/2+d.height/2-y;break;case`bottom`:p=x?w?T-u+y:T+u-y:w?T-u+d.height+_+y:T+u-d.height/2+_-y;break;case`top`:p=x?w?T+y:T-y:w?T-d.height/2-y:T+d.height+y}let E=T,D=this.getTotalGroupContext(o);if((D?[D.group]:t.labelData.seriesGroups).forEach(e=>{var t;(t=this.barCtx[e.join(`,`)])==null||t.prevY.forEach(e=>{E=w?Math.max(e[a],E):Math.min(e[a],E)})}),this.drawsStackedTotal(o)&&g.enabled){let e=new K(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:a}),m.fontSize);
1799n=w?E-e.height/2-y-g.offsetY+18:E+e.height+y+g.offsetY-18;let i=C;r=b+(t.axisFlags.isXNumeric?-l/2:l/2-i)+g.offsetX}return t.config.chart.stacked||(p<0?p=0+_:p+d.height/3>t.layout.gridHeight&&(p=t.layout.gridHeight-_)),{bcx:c,bcy:s,dataLabelsX:f,dataLabelsY:p,totalDataLabelsX:r,totalDataLabelsY:n,totalDataLabelsAnchor:`middle`}}calculateBarsDataLabelsPosition(e){var t;let n=this.w,{x:r,i,j:a,realIndex:o,bcy:s,barHeight:c,barWidth:l,textRects:u,dataLabelsX:d,strokeWidth:f,dataLabelsConfig:p,barDataLabelsConfig:m,barTotalDataLabelsConfig:h,offX:g,offY:_}=e,v=n.layout.gridHeight/n.globals.dataPoints,{zeroEncounters:y}=this.barCtx.barHelpers.getZeroValueEncounters({i,j:a}),b,x,S;l=Math.abs(l),b=this.barCtx.isPyramid?s+c/2+_-((t=u.centerOffset)==null?0:t):s-(this.barCtx.isRangeBar?0:v)+c/2+u.height/2+_-3,!n.config.chart.stacked&&y>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b-=c*y);let C=`start`,w=n.seriesData.series[i][a]<0,T=r;if(this.barCtx.isReversed&&(T=r+(w?-l:l),C=w?`start`:`end`),this.barCtx.isPyramid)d=n.layout.gridWidth/2+g;else switch(m.position){case`center`:d=w?T+l/2-g:Math.max(u.width/2,T-l/2)+g;break;case`bottom`:d=w?T+l-f-g:T-l+f+g;break;case`top`:d=w?T-f-g:T-f+g}let E=T,D=this.getTotalGroupContext(o);if((D?[D.group]:n.labelData.seriesGroups).forEach(e=>{var t;(t=this.barCtx[e.join(`,`)])==null||t.prevX.forEach(e=>{E=w?Math.min(e[a],E):Math.max(e[a],E)})}),this.drawsStackedTotal(o)&&h.enabled){let e=new K(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:a}),p.fontSize);w?(x=E-f-g-h.offsetX,C=`end`):x=E+g+h.offsetX+(this.barCtx.isReversed?-(l+f):f),S=b-u.height/2+e.height/2+h.offsetY+f,n.globals.barGroups.length>1&&!D&&(S-=n.globals.barGroups.length/2*(c/2))}if(!n.config.chart.stacked){let e=w&&p.textAnchor!==`middle`?p.textAnchor===`start`?`end`:`start`:p.textAnchor,t;t=m.orientation===`vertical`?u.height/2:e===`end`?u.width:e===`middle`?u.width/2:0;let r=(m.orientation===`vertical`?u.height:u.width)-t;d+r>n.layout.gridWidth-f&&(d=n.layout.gridWidth-r-f),d-t<f&&(d=t+f)}return{bcx:r,bcy:s,dataLabelsX:d,dataLabelsY:b,totalDataLabelsX:x,totalDataLabelsY:S,totalDataLabelsAnchor:C}}drawCalculatedDataLabels({x:e,y:t,val:n,i:r,j:i,textRects:a,barHeight:o,barWidth:l,dataLabelsConfig:u}){var d,f,p;let m=this.w,h=`rotate(0)`;m.config.plotOptions.bar.dataLabels.orientation===`vertical`&&(h=`rotate(-90, ${e}, ${t})`);let g=new Ve(this.barCtx.w,this.barCtx.ctx),_=new K(this.barCtx.w),v=u.formatter,y=null,b=m.globals.collapsedSeriesIndices.indexOf(r)>-1,x=(m.globals.collapsingSeriesIndices||[]).indexOf(r)>-1;if(x){let e=(d=m.globals.prevDataLabels)==null?void 0:d.get(`${r}::${dt(m,r,i)}`);e&&isFinite(e.val)&&(n=e.val)}if(u.enabled&&(!b||x)){y=_.group({class:`apexcharts-data-labels`,transform:h});let d=m.config.dataLabels;((f=d.animate)!=null&&f.enabled||(p=d.countUp)!=null&&p.enabled)&&(y.node.setAttribute(`data:dlKey`,`${r}::${dt(m,r,i)}`),y.node.setAttribute(`data:dlJ`,String(i)),typeof n==`number`&&isFinite(n)&&y.node.setAttribute(`data:dlVal`,String(n)));let b=``;n!==void 0&&(b=v(n,c(s({},m),{seriesIndex:r,dataPointIndex:i,w:m}))),!n&&m.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b=``);let S=m.seriesData.series[r][i]<0,C=m.config.plotOptions.bar.dataLabels.position;m.config.plotOptions.bar.dataLabels.orientation===`vertical`&&(C===`top`&&(u.textAnchor=S?`end`:`start`),C===`center`&&(u.textAnchor=`middle`),C===`bottom`&&(u.textAnchor=S?`end`:`start`)),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<_.getTextRects(b,parseFloat(u.style.fontSize).toString()).width&&(b=``),m.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&!x&&(this.barCtx.isHorizontal?a.width/1.6>Math.abs(l)&&(b=``):a.height/1.6>Math.abs(o)&&(b=``));let w=s({},u);this.barCtx.isHorizontal&&n<0&&(u.textAnchor===`start`?w.textAnchor=`end`:u.textAnchor===`end`&&(w.textAnchor=`start`)),g.plotDataLabelsText({x:e,y:t,text:b,i:r,j:i,parent:y,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return y}drawTotalDataLabels({x:e,y:t,val:n,rawVal:r,realIndex:i,j:a,textAnchor:o,barTotalDataLabelsConfig:s}){var c,l;let u=new K(this.barCtx.w),d;if(s.enabled&&e!==void 0&&t!==void 0&&this.drawsStackedTotal(i)){d=u.drawText({x:e,y:t,foreColor:s.style.color,text:n,textAnchor:o,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight}),d.attr({class:`apexcharts-datalabel-total`,cx:e,cy:t});let f=this.w.config.dataLabels;if((c=f.animate)!=null&&c.enabled||(l=f.countUp)!=null&&l.enabled){let{groupIndex:e}=this.barCtx.barHelpers.getGroupIndex(i);d.node.setAttribute(`data:dlTotalKey`,`${e}::${dt(this.w,i,a)}`),d.node.setAttribute(`data:dlTotalSeries`,String(i)),typeof r==`number`&&isFinite(r)&&d.node.setAttribute(`data:dlTotalVal`,String(r))}}return d}}function qi(e){var t,n,r,i,a,o,s;return((n=(t=e==null?void 0:e.config)==null?void 0:t.chart)==null?void 0:n.requestedType)===`histogram`&&!1!==((i=(r=e.config.plotOptions)==null?void 0:r.histogram)==null?void 0:i.overlap)&&((s=(o=(a=e.seriesData)==null?void 0:a.series)==null?void 0:o.length)==null?0:s)>1}let Ji=class{constructor(e){this.w=e.w,this.barCtx=e}initVariables(e){let t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(let n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.axisFlags.isXNumeric)for(let r=0;r<e[n].length;r++)t.seriesData.seriesX[n][r]>t.globals.minX&&t.seriesData.seriesX[n][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.seriesData.series),x.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(e=>e.map(e=>
1799`none`))),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1)}initialPositions(e){let t=this.w,n,r,i,a,o,s,c,l,u=t.globals.dataPoints;this.barCtx.isRangeBar&&(u=t.labelData.labels.length);let d=this.barCtx.seriesLen;if((t.config.plotOptions.bar.rangeBarGroupRows||qi(t))&&(d=1),this.barCtx.isHorizontal)i=t.layout.gridHeight/u,o=i/d,t.axisFlags.isXNumeric&&(i=t.layout.gridHeight/this.barCtx.totalItems,o=i/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf(`%`)===-1&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),l=this.barCtx.baseLineInvertedY+t.globals.padHorizontal+(this.barCtx.isReversed?t.layout.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(l=t.layout.gridWidth/2),r=(i-o*this.barCtx.seriesLen)/2;else{if(a=t.layout.gridWidth/this.barCtx.visibleItems,t.config.xaxis.convertedCatToNumeric&&(a=t.layout.gridWidth/t.globals.dataPoints),s=a/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100,t.axisFlags.isXNumeric){let e=this.barCtx.xRatio;t.globals.minXDiff&&t.globals.minXDiff!==.5&&t.globals.minXDiff/e>0&&(a=t.globals.minXDiff/e),s=a/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100,s<1&&(s=1)}String(this.barCtx.barOptions.columnWidth).indexOf(`%`)===-1&&(s=parseInt(this.barCtx.barOptions.columnWidth,10)),c=t.layout.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?t.layout.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),n=t.axisFlags.isXNumeric?this.barCtx.getBarXForNumericXAxis({x:n,j:0,realIndex:e,barWidth:s}).x:t.globals.padHorizontal+x.noExponents(a-s*this.barCtx.seriesLen)/2}return t.globals.barHeight=o,t.globals.barWidth=s,{x:n,y:r,yDivision:i,xDivision:a,barHeight:o,barWidth:s,zeroH:c,zeroW:l}}initializeStackedPrevVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}initializeStackedXYVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}getPathFillColor(e,t,n,r){var i,a,o,s;let c=this.w,l=new Pe(this.barCtx.w),u=null,d=this.barCtx.barOptions.distributed?n:t,f=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(r=>{e[t][n]>=r.from&&e[t][n]<=r.to&&(u=r.color,f=!0)}),{color:l.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:r,dataPointIndex:n,color:u,value:e[t][n],fillConfig:(i=c.config.series[t].data[n])==null?void 0:i.fill,fillType:(o=(a=c.config.series[t].data[n])==null?void 0:a.fill)!=null&&o.type?(s=c.config.series[t].data[n])==null?void 0:s.fill.type:Array.isArray(c.config.fill.type)?c.config.fill.type[r]:c.config.fill.type}),useRangeColor:f}}getStrokeWidth(e,t,n){let r=0,i=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null||i.config.chart.type===`bar`&&!this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,i.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}getStackedSeriesIndices(e){let t=this.w.labelData.seriesGroups;if(!t||t.length<2)return[Array.from({length:e},(e,t)=>t)];let n=Array.from({length:t.length},()=>[]),r=[];for(let t=0;t<e;t++){let e=this.getSeriesGroupIndex(t);e>-1?n[e].push(t):r.push(t)}return r.length&&n.push(r),n.filter(e=>e.length>0)}createBorderRadiusArr(e){var t;let n=this.w,r=!this.w.config.chart.stacked||n.config.plotOptions.bar.borderRadius<=0,i=e.length,a=0|((t=e[0])==null?void 0:t.length),o=Array.from({length:i},()=>Array(a).fill(r?`top`:`none`));if(r)return o;let s=this.w.config.chart.type===`bar`&&a===1,c=s?`top`:`both`,l=s?`top`:`bottom`;for(let t of this.getStackedSeriesIndices(i))for(let n=0;n<a;n++){let r=[],i=[];for(let a of t){let t=e[a][n];t>0?r.push(a):t<0&&i.push(a)}if(r.length>0&&i.length===0){if(r.length===1)o[r[0]][n]=c;else{let e=r[0],t=r[r.length-1];for(let i of r)o[i][n]=i===e?l:i===t?`top`:`none`}}else if(i.length>0&&r.length===0){if(i.length===1)o[i[0]][n]=`both`;else{let e=Math.max(...i),t=Math.min(...i);for(let r of i)o[r][n]=r===e?`bottom`:r===t?`top`:`none`}}else if(r.length>0&&i.length>0){let e=r[r.length-1];for(let t of r)o[t][n]=t===e?`top`:`none`;let t=Math.max(...i);for(let e of i)o[e][n]=e===t?`bottom`:`none`}}return o}
1799barBackground({j:e,i:t,x1:n,x2:r,y1:i,y2:a,elSeries:o}){let s=this.w,c=new K(this.barCtx.w),l=new q(this.barCtx.w).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&l===t){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);let t=this.barCtx.barOptions.colors.backgroundBarColors[e],l=c.drawRect(n===void 0?0:n,i===void 0?0:i,r===void 0?s.layout.gridWidth:r,a===void 0?s.layout.gridHeight:a,this.barCtx.barOptions.colors.backgroundBarRadius,t,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(l),l.node.classList.add(`apexcharts-backgroundBar`)}}getColumnPaths({barWidth:e,barXPosition:t,y1:n,y2:r,strokeWidth:i,isReversed:a,series:o,seriesGroup:s,realIndex:c,i:l,j:u,w:d}){var f,p,m;let h=new K(this.barCtx.w);(i=Array.isArray(i)?i[c]:i)||(i=0);let g=e,_=t;(f=d.config.series[c].data[u])!=null&&f.columnWidthOffset&&(_=t-d.config.series[c].data[u].columnWidthOffset/2,g=e+d.config.series[c].data[u].columnWidthOffset);let v=i/2,y=_+v,b=_+g-v,x=(o[l][u]>=0?1:-1)*(a?-1:1);n+=.001-v*x,r+=.001+v*x;let S=h.line(b,n),C=d.config.plotOptions.bar.borderRadiusApplication===`around`||this.arrBorderRadius[c][u]===`both`?` Z`:` z`,w=h.move(y,n)+h.line(y,r)+h.line(b,r)+S+C,T=w;this.arrBorderRadius[c][u]!==`none`&&(T=h.roundPathCorners(T,d.config.plotOptions.bar.borderRadius));
1799let E=null,D=(m=(p=this.barCtx.ctx)==null?void 0:p.morphTypeChange)==null?void 0:m.getInitialPathFor(c,u);if(D?E=D:d.globals.previousPaths.length>0&&(E=this.barCtx.getPreviousPath(c,u,T,w)),E==null&&(E=h.move(y,n)+h.line(y,n)+S+S+S+S+S+h.line(y,n)+C),d.config.chart.stacked){let e=this.barCtx;e=this.barCtx[s],e.yArrj.push(r-v*x),e.yArrjF.push(Math.abs(n-r+i*x)),e.yArrjVal.push(this.barCtx.series[l][u])}return{pathTo:T,pathFrom:E}}getFunnelTrapezoidPaths({barYPosition:e,barHeight:t,series:n,i:r,j:i,realIndex:a,strokeWidth:o,w:s}){var c,l;let u=new K(this.barCtx.w),d=s.layout.gridWidth/2,f=e=>Math.abs(e/this.barCtx.invertedYRatio)/2,p=f(n[r][i]),m=i===n[r].length-1,h=s.config.plotOptions.funnel.lastShape===`taper`?`taper`:`flat`,g;g=m?h===`taper`?0:p:f(n[r][i+1]);let _=o/2,v=e+_,y=e+t-_,b=d-p,x=d+p,S=d-g,C=d+g,w=u.move(b,v)+u.line(x,v)+u.line(C,y)+u.line(S,y)+` Z`,T=null,E=(l=(c=this.barCtx.ctx)==null?void 0:c.morphTypeChange)==null?void 0:l.getInitialPathFor(a,i);return E?T=E:s.globals.previousPaths.length>0&&(T=this.barCtx.getPreviousPath(a,i,w)),T==null&&(T=u.move(d,v)+u.line(d,v)+u.line(d,y)+u.line(d,y)+` Z`),{pathTo:w,pathFrom:T,x,x1:b,barXPosition:d}}computePyramidLayout(e){let t=this.w,n=t.layout.gridHeight,r=t.layout.gridWidth,i=e.map(e=>Math.abs(Number(e)||0)),a=i.reduce((e,t)=>e+t,0);if(a===0||n<=0)return i.map(()=>({y:0,height:0,topHalf:0,bottomHalf:0}));let o=r/2,s=0,c=[];for(let e=0;e<i.length;e++){let t=s/a;s+=i[e];let r=s/a,l=t*n,u=r*n;c.push({y:l,height:u-l,topHalf:t*o,bottomHalf:r*o})}return c}getPyramidPaths({barYPosition:e,barHeight:t,topHalf:n,bottomHalf:r,realIndex:i,j:a,strokeWidth:o,w:s}){var c,l;let u=new K(this.barCtx.w),d=s.layout.gridWidth/2,f=o/2,p=e+f,m=e+t-f,h=d-n,g=d+n,_=d-r,v=d+r,y=u.move(h,p)+u.line(g,p)+u.line(v,m)+u.line(_,m)+` Z`,b=null,x=(l=(c=this.barCtx.ctx)==null?void 0:c.morphTypeChange)==null?void 0:l.getInitialPathFor(i,a);return x?b=x:s.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(i,a,y)),b==null&&(b=u.move(d,p)+u.line(d,p)+u.line(d,m)+u.line(d,m)+` Z`),{pathTo:y,pathFrom:b,x:g,x1:h,barXPosition:d}}getBarpaths({barYPosition:e,barHeight:t,x1:n,x2:r,strokeWidth:i,isReversed:a,series:o,seriesGroup:s,realIndex:c,i:l,j:u,w:d}){var f,p,m;let h=new K(this.barCtx.w);(i=Array.isArray(i)?i[c]:i)||(i=0);let g=e,_=t;(f=d.config.series[c].data[u])!=null&&f.barHeightOffset&&(g=e-d.config.series[c].data[u].barHeightOffset/2,_=t+d.config.series[c].data[u].barHeightOffset);let v=i/2,y=g+v,b=g+_-v,x=(o[l][u]>=0?1:-1)*(a?-1:1);n+=.001+v*x,r+=.001-v*x;let S=this.barCtx.isFunnel,C=S?(n+r)/2:n,w=h.line(n,b),T=d.config.plotOptions.bar.borderRadiusApplication===`around`||this.arrBorderRadius[c][u]===`both`?` Z`:` z`,E=h.move(n,y)+h.line(r,y)+h.line(r,b)+w+T,D=E;this.arrBorderRadius[c][u]!==`none`&&(D=h.roundPathCorners(D,d.config.plotOptions.bar.borderRadius));let O=null,k=(m=(p=this.barCtx.ctx)==null?void 0:p.morphTypeChange)==null?void 0:m.getInitialPathFor(c,u);if(k?O=k:d.globals.previousPaths.length>0&&(O=this.barCtx.getPreviousPath(c,u,D,E)),O==null){let e=S?h.line(C,b):w;O=h.move(C,y)+h.line(C,y)+e+e+e+e+e+h.line(C,y)+T}if(d.config.chart.stacked){let e=this.barCtx;e=this.barCtx[s],e.xArrj.push(r+v*x),e.xArrjF.push(Math.abs(n-r-i*x)),e.xArrjVal.push(this.barCtx.series[l][u])}return{pathTo:D,pathFrom:O}}getXForValue(e,t,n=!0){let r=n?t:null;return e!=null&&(r=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),r}getYForValue(e,t,n,r=!0){let i=r?t:null;return e!=null&&(i=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),i}getGoalValues(e,t,n,r,i,a){let o=this.w,l=[],u=(r,i)=>{l.push({[e]:e===`x`?this.getXForValue(r,t,!1):this.getYForValue(r,n,a,!1),attrs:i})};if(o.seriesData.seriesGoals[r]&&o.seriesData.seriesGoals[r][i]&&Array.isArray(o.seriesData.seriesGoals[r][i])&&o.seriesData.seriesGoals[r][i].forEach(e=>{u(e.value,e)}),this.barCtx.barOptions.isDumbbell&&o.rangeData.seriesRange.length){let t=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,n={strokeHeight:e===`x`?0:o.globals.markers.size[r],strokeWidth:e===`x`?o.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:`round`,strokeColor:Array.isArray(t[r])?t[r][0]:t[r]};u(o.rangeData.seriesRangeStart[r][i],n),u(o.rangeData.seriesRangeEnd[r][i],c(s({},n),{strokeColor:Array.isArray(t[r])?t[r][1]:t[r]}))}return l}drawGoalLine({barXPosition:e,barYPosition:t,goalX:n,goalY:r,barWidth:i,barHeight:a}){if(!(Array.isArray(n)&&n.length>0||Array.isArray(r)&&r.length>0))return null;let o=new K(this.barCtx.w),s=o.group({className:`apexcharts-bar-goals-groups`});s.node.classList.add(`apexcharts-element-hidden`),this.barCtx.w.globals.delayedElements.push({el:s.node}),s.attr(`clip-path`,`url(#gridRectMarkerMask${this.barCtx.w.globals.cuid})`);let c=null;
1799return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach(e=>{if(e.x>=-1&&e.x<=o.w.layout.gridWidth+1){let n=e.attrs.strokeHeight===void 0?a/2:e.attrs.strokeHeight,r=t+n+a/2;c=o.drawLine(e.x,r-2*n,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),s.add(c)}}):Array.isArray(r)&&r.forEach(t=>{if(t.y>=-1&&t.y<=o.w.layout.gridHeight+1){let n=t.attrs.strokeWidth===void 0?i/2:t.attrs.strokeWidth,r=e+n+i/2;c=o.drawLine(r-2*n,t.y,r,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),s.add(c)}}),s}drawBarShadow({prevPaths:e,currPaths:t,color:n,realIndex:r,j:i}){let a=this.w,{x:o,x1:s,barYPosition:c}=e,{x:l,x1:u,barYPosition:d}=t,f=c+t.barHeight,p=new K(this.barCtx.w),m=new x,h=p.move(s,f)+p.line(o,f)+p.line(l,d)+p.line(u,d)+p.line(s,f)+(a.config.plotOptions.bar.borderRadiusApplication===`around`||this.arrBorderRadius[r][i]===`both`?` Z`:` z`);return p.drawPath({d:h,fill:m.shadeColor(.5,x.rgb2hex(n)),stroke:`none`,strokeWidth:0,fillOpacity:1,classes:`apexcharts-bar-shadow apexcharts-decoration-element`})}getZeroValueEncounters({i:e,j:t}){var n;let r=this.w,i=0,a=0;return(r.config.plotOptions.bar.horizontal?r.seriesData.series.map((e,t)=>t):((n=r.globals.columnSeries)==null?void 0:n.i.map(e=>e))||[]).forEach(n=>{let o=r.globals.seriesPercent[n][t];o&&i++,n<e&&o===0&&a++}),{nonZeroColumns:i,zeroEncounters:a}}getSeriesGroupIndex(e){let t=this.w;return t.labelData.seriesGroups.findIndex(n=>n.indexOf(t.seriesData.seriesNames[e])>-1)}getGroupIndex(e){let t=this.w,n=t.labelData.seriesGroups.findIndex(n=>n.indexOf(t.seriesData.seriesNames[e])>-1),r=this.barCtx.columnGroupIndices,i=r.indexOf(n);return i<0&&(r.push(n),i=r.length-1),{groupIndex:n,columnGroupIndex:i}}};class Yi{constructor(e,t,n){this.ctx=t,this.w=e,this.barOptions=e.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=e.config.stroke.width,this.isNullValue=!1,this.isRangeBar=e.rangeData.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.rangeData.seriesRange.length&&e.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.isPyramid=this.barOptions.isPyramid,this.pyramidLayout=null,this.xyRatios=n,this.xRatio=0,this.yRatio=[],this.invertedXRatio=0,this.invertedYRatio=0,this.baseLineY=[],this.baseLineInvertedY=0,this.xyRatios!==null&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[],this._prevKeyed=null,this._ltCache=null,this._layoutShiftCache=null,this._pathToInterp=null,this.series=[],this.elSeries=null,this.visibleI=0,this.isReversed=!1;let r=new q(this.w);this.lastActiveBarSerieIndex=r.getActiveConfigSeriesIndex(`desc`,[`bar`,`column`]),this.lastActiveBarSerieIndexByGroup=r.getActiveConfigSeriesIndexByGroup([`bar`,`column`]),this.columnGroupIndices=[];let i=r.getBarSeriesIndices(),a=new V(this.w);this.stackedSeriesTotals=a.getStackedSeriesTotals(this.w.config.series.map((e,t)=>i.indexOf(t)===-1?t:-1).filter(e=>e!==-1)),this.barHelpers=new Ji(this)}draw(e,t){var n,r,i;let a=this.w,o=new K(this.w),l=new V(this.w);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);let u=o.group({class:`apexcharts-bar-series apexcharts-plot-series`});a.config.dataLabels.enabled&&(this.totalItems,this.barOptions.dataLabels.maxItems);for(let l=0,d=0;l<e.length;l++,d++){let f,p,m=[],h=[],g=a.globals.comboCharts?t[l]:l,{columnGroupIndex:_}=this.barHelpers.getGroupIndex(g),v=o.group({class:`apexcharts-series`,rel:l+1,seriesName:x.escapeString(a.seriesData.seriesNames[g]),"data:realIndex":g});q.addCollapsedClassToSeries(this.w,v,g),e[l].length>0&&(this.visibleI+=1),this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[g],this.translationsIndex=g);let y=this.translationsIndex;this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.isPyramid&&(this.pyramidLayout=this.barHelpers.computeP
1799yramidLayout(e[l]));let b=this.barHelpers.initialPositions(g),{y:S,yDivision:C,zeroW:w,x:T,xDivision:E,zeroH:D}=b,O=b.barHeight,k=b.barWidth;p=S,f=T,this.isHorizontal||h.push(f+(k==null?0:k)/2);let A=o.group({class:`apexcharts-datalabels`,"data:realIndex":g});a.globals.delayedElements.push({el:A.node,holdUntilComplete:!((n=a.config.dataLabels.animate)!=null&&n.enabled)&&this.isLengthTransition(g)}),A.node.classList.add(`apexcharts-element-hidden`);let j=o.group({class:`apexcharts-bar-goals-markers`}),M=o.group({class:`apexcharts-bar-shadows`});a.globals.delayedElements.push({el:M.node}),M.node.classList.add(`apexcharts-element-hidden`);for(let t=0;t<e[l].length;t++){let n=this.barHelpers.getStrokeWidth(l,t,g),o=null,u={indexes:{i:l,j:t,realIndex:g,translationsIndex:y,bc:d},x:f,y:p,strokeWidth:n,elSeries:v};this.isHorizontal?(o=this.drawBarPaths(c(s({},u),{barHeight:O,zeroW:w,yDivision:C})),k=this.series[l][t]/this.invertedYRatio):(o=this.drawColumnPaths(c(s({},u),{xDivision:E,barWidth:k,zeroH:D})),O=this.series[l][t]/this.yRatio[y]);let b=this.barHelpers.getPathFillColor(e,l,t,g);if(this.isFunnel&&!this.isPyramid&&this.barOptions.isFunnel3d&&((r=a.config.plotOptions.funnel)==null?void 0:r.shape)!==`trapezoid`&&this.pathArr.length&&t>0){let e=this.barHelpers.drawBarShadow({color:typeof b.color==`string`&&((i=b.color)==null?void 0:i.indexOf(`url`))===-1?b.color:x.hexToRgba(a.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:o,realIndex:g,j:t});M.add(e),a.config.chart.dropShadow.enabled&&new G(this.w).dropShadow(e,a.config.chart.dropShadow,g)}this.pathArr.push(o);let S=this.barHelpers.drawGoalLine({barXPosition:o.barXPosition,barYPosition:o.barYPosition,goalX:o.goalX,goalY:o.goalY,barHeight:O,barWidth:k});S&&j.add(S),p=o.y,f=o.x,t>0&&h.push(f+(k==null?0:k)/2),m.push(p),this.renderSeries(c(s({realIndex:g,pathFill:b.color},b.useRangeColor?{lineFill:b.color}:{}),{j:t,i:l,columnGroupIndex:_,pathFrom:o.pathFrom,pathTo:o.pathTo,strokeWidth:n,elSeries:v,x:f,y:p,series:e,barHeight:Math.abs(o.barHeight?o.barHeight:O),barWidth:Math.abs(o.barWidth?o.barWidth:k),elDataLabelsWrap:A,elGoalsMarkers:j,elBarShadows:M,visibleSeries:this.visibleI,type:`bar`}))}if(a.globals.seriesXvalues[g]=h,a.globals.seriesYvalues[g]=m,a.globals.previousPaths.length>0){let t=[];for(let n=0;n<e[l].length;n++)t.push(dt(a,g,n));vt({w:a,elSeries:v,record:this._prevRecord(g),newKeys:t,isHorizontal:this.isHorizontal,speed:a.config.chart.animations.dynamicAnimation.speed})}u.add(v)}return u}renderSeries({realIndex:e,pathFill:t,lineFill:n,j:r,i,columnGroupIndex:a,pathFrom:o,pathTo:s,strokeWidth:c,elSeries:l,x:u,y:d,y1:f,y2:p,series:m,barHeight:h,barWidth:g,barXPosition:_,barYPosition:v,elDataLabelsWrap:y,elGoalsMarkers:b,elBarShadows:x,visibleSeries:S,type:C,classes:w}){var T,E,D,O,k,A,j;let M=this.w,N=new K(this.w,this.ctx),P=Ie(this.ctx,N),F=!1,I=this._pathToInterp;if(this._pathToInterp=null,l._bindingsDelegated||(l._bindingsDelegated=!0,N.setupEventDelegation(l,`.apexcharts-${C}-area`)),!n){let t=typeof M.globals.stroke.colors[e]==`function`?function(e){let t=M.config.stroke.colors,n;return Array.isArray(t)&&t.length>0&&(n=t[e],n||(n=``),typeof n==`function`)?n({value:M.seriesData.series[e][r],dataPointIndex:r,w:M}):n}(e):M.globals.stroke.colors[e];n=this.barOptions.distributed?M.globals.stroke.colors[r]:t}let L=M.config.chart.animations,R=L.animateGradually,z=0,ee=0;if(R&&!1!==R.enabled&&!(M.globals.dataChanged&&this.isLayoutShift(e))){let e=M.globals.dataPoints||1,t=R.delay||0,n=Math.min(t,.5*L.speed/Math.max(1,e));ee=Me({style:`sequential`,index:r,baseDelay:n}),M.config.chart.stacked&&!M.globals.dataChanged&&(ee+=i*n*.5),z=ee/(t||1)}let B=new Ki(this).handleBarDataLabels({x:u,y:d,y1:f,y2:p,i,j:r,series:m,realIndex:e,columnGroupIndex:a,barHeight:h,barWidth:g,barXPosition:_,barYPosition:v,visibleSeries:S});if(ee>0){let e=M.config.dataLabels;if((T=e.animate)!=null&&T.enabled||(E=e.countUp)!=null&&E.enabled){let e=String(Math.round(ee));(O=(D=B.dataLabels)==null?void 0:D.node)==null||O.setAttribute(`data:dlDelay`,e),(A=(k=B.totalDataLabels)==null?void 0:k.node)==null||A.setAttribute(`data:dlDelay`,e)}}if(M.globals.isBarHorizontal||(B.dataLabelsPos.dataLabelsX+Math.max(g,M.globals.barPadForNumericAxis)<0||B.dataLabelsPos.dataLabelsX-Math.max(g,M.globals.barPadForNumericAxis)>M.layout.gridWidth)&&(F=!0),M.config.series[i].data[r]&&M.config.series[i].data[r].strokeColor&&(n=M.config.series[i].data[r].strokeColor),this.isNullValue&&M.globals.collapsingSeriesIndices.indexOf(e)===-1&&(t=`none`),!F){let a=!0===((j=this.ctx.morphTypeChange)==null?void 0:j.isActive()),u=a?this.ctx.morphTypeChange.getSpeed():M.config.chart.animations.dynamicAnimation.speed,d=a&&this.ctx.morphTypeChange.claimsTargetMark(e,r);d&&(o=s,z=0);let m=P.renderPaths({i,j:r,realIndex:e,pathFrom:o,pathTo:s,stroke:n,strokeWidth:c,strokeLineCap:M.config.stroke.lineCap,fill:t,pathToInterp:I,animationDelay:z,initialSpeed:M.config.chart.animations.speed,dataChangeSpeed:u,className:`apexcharts-${C}-area${w?` ${w}`:``}`,chartType:C,bindEventsOnPaths:!1});m.attr(`clip-path`,`url(#gridRectBarMask${M.globals.cuid})`),d&&(m.node.setAttribute(`opacity`,`0`),m.node.setAttribute(`data-piece-hidden`,`1`));let _=M.config.forecastDataPoints;_.count>0&&r>=M.globals.dataPoints-_.count&&(m.node.setAttribute(`stroke-dasharray`,_.dashArray),m.node.setAttribute(`stroke-width`,_.strokeWidth),m.node.setAttribute(`fill-opacity`,_.fillOpacity)),f!==void 0&&p!==void 0&&(m.attr(`data-range-y1`,f),m.attr(`data-range-y2`,p)),new G(this.w).setSelectionFilter(m,e,r),l.add(m),m.attr({cy:B.dataLabelsPos.bcy,cx:B.dataLabelsPos.bcx,j:r,val:M.seriesData.series[i][r],barHeight:h,barWidth:g,"data:pathKey":dt(M,e,r)}),P.kind===`canvas`&&(M.globals.barCanvasCoords||(M.globals.barCanvasCoords={}),M.globals.barCanvasCoords[e]||(M.globals.barCanvasCoords[e]={}),M.globals.barCanvasCoords[e][r]={cx:B.dataLabelsPos.bcx,cy:B.dataLabelsPos.bcy,barWidth:g}),B.dataLabels!==null&&y.add(B.dataLabels),B.totalDataLabels&&y.add(B.totalDataLabels),l.add(y),b&&l.add(b),x&&l.add(x)}return l}drawBarPaths({indexes:e,barHeight:t,strokeWidth:n,zeroW:r,x:i,y:a,yDivision:o,elSeries:s}){let c=this.w,l=e.i,u=e.j,d;if(c.axisFlags.isXNumeric)d=(a=(c.seriesData.seriesX[l][u]-c.globals.minX)/this.invertedXRatio-t)+t*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){let{nonZeroColumns:e,zeroEncounters:n}=this.barHelpers.getZeroValueEncounters({i:l,j:u});e>0&&(t=this.seriesLen*t/e),d=a+t*this.visibleI,d-=t*n}else d=a+t*this.visibleI;let f=this.isFunnel&&c.config.plotOptions.funnel.shape===`trapezoid`,p=this.isPyramid&&this.pyramidLayout?this.pyramidLayout[u]:null,m=!!p;if(p)d=p.y,t=p.height;else if(this.isFunnel&&!f){let e=r==null?0:r;r=e-(this.barHelpers.getXForValue(this.series[l][u],e)-e)/2}let h;return i=this.barHelpers.getXForValue(this.series[l][u],r==null?0:r),h=p?this.barHelpers.getPyramidPaths({barYPosition:d,barHeight:t,topHalf:p.topHalf,bottomHalf:p.bottomHalf,realIndex:e.realIndex,j:u,strokeWidth:n,w:c}):f?this.barHelpers.getFunnelTrapezoidPaths({barYPosition:d,barHeight:t,series:this.series,i:l,j:u,realIndex:e.realIndex,strokeWidth:n,w:c}):this.barHelpers.getBarpaths({barYPosition:d,barHeight:t,x1:r,x2:i,strokeWidth:n,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,i:l,j:u,w:c}),(f||m)&&(r=h.x1,i=h.x),c.axisFlags.isXNumeric||m||(a+=o),m&&(a=d),this.barHelpers.barBackgroun
1799d({j:u,i:l,y1:d-t*this.visibleI,y2:t*this.seriesLen,elSeries:s}),{pathTo:h.pathTo,pathFrom:h.pathFrom,x1:r,x:i,y:a,goalX:this.barHelpers.getGoalValues(`x`,r,null,e.realIndex,u,0),barYPosition:d,barHeight:t}}drawColumnPaths({indexes:e,x:t,y:n,xDivision:r,barWidth:i,zeroH:a,strokeWidth:o,elSeries:s}){let c=this.w,l=e.realIndex,u=e.translationsIndex,d=e.i,f=e.j,p=e.bc,m;if(c.axisFlags.isXNumeric){let e=this.getBarXForNumericXAxis({x:t,j:f,realIndex:l,barWidth:i});t=e.x,m=e.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){let{nonZeroColumns:e,zeroEncounters:n}=this.barHelpers.getZeroValueEncounters({i:d,j:f});e>0&&(i=this.seriesLen*i/e),m=t+i*this.visibleI,m-=i*n}else m=t+i*this.visibleI;n=this.barHelpers.getYForValue(this.series[d][f],a,u);let h=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:i,y1:a,y2:n,strokeWidth:o,isReversed:this.isReversed,series:this.series,realIndex:l,i:d,j:f,w:c});return c.axisFlags.isXNumeric||(t+=r),this.barHelpers.barBackground({bc:p,j:f,i:d,x1:m-o/2-i*this.visibleI,x2:i*this.seriesLen+o/2,elSeries:s}),{pathTo:h.pathTo,pathFrom:h.pathFrom,x:t,y:n,goalY:this.barHelpers.getGoalValues(`y`,null,a,l,f,u),barXPosition:m,barWidth:i}}getBarXForNumericXAxis({x:e,barWidth:t,realIndex:n,j:r}){let i=this.w,a=n;return i.seriesData.seriesX[n].length||(a=i.globals.maxValsInArrayIndex),x.isNumber(i.seriesData.seriesX[a][r])&&(e=jn.dataXToPx(i,i.seriesData.seriesX[a][r])-t*this.seriesLen/2),{barXPosition:e+(qi(i)?0:t*this.visibleI),x:e}}_prevRecord(e){let t=this.w,n=null;for(let r=0;r<t.globals.previousPaths.length;r++){let i=t.globals.previousPaths[r];i.paths&&i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(String(e),10)&&(n=i)}return n}_prevKeyedPaths(e){if(this._prevKeyed||(this._prevKeyed={}),this._prevKeyed[e]!==void 0)return this._prevKeyed[e];let t=this._prevRecord(e),n=null;if(t&&t.paths.every(e=>e.key!=null)){let e=new Map;t.paths.forEach(t=>{e.set(t.key,t)}),n=e}return this._prevKeyed[e]=n,n}isLengthTransition(e){var t,n;if(this._ltCache||(this._ltCache={}),this._ltCache[e]!==void 0)return this._ltCache[e];let r=this.w,i=!1;if(ut(r)&&r.globals.previousPaths.length>0){let a=this._prevRecord(e),o=(n=(t=r.seriesData.series[e])==null?void 0:t.length)==null?0:n;if(a){if(a.paths.length!==o)i=!0;else{let t=this._prevKeyedPaths(e);if(t){for(let n=0;n<o;n++)if(!t.has(dt(r,e,n))){i=!0;break}}}}else i=o>0}return this._ltCache[e]=i,i}isLayoutShift(e){if(this.isLengthTransition(e))return!0;if(this._layoutShiftCache||(this._layoutShiftCache={}),this._layoutShiftCache[e]!==void 0)return this._layoutShiftCache[e];let t=pt(this.w,e,!0,!0),n=!(!t||!t.join.changed);return this._layoutShiftCache[e]=n,n}getPreviousPath(e,t,n,r){let i=this.w;this._pathToInterp=null;let a=this._prevRecord(e);if(!a)return ut(i)?null:n;let o=null,s=!1,c=this._prevKeyedPaths(e);if(c){let n=c.get(dt(i,e,t));n?o=n.d:s=!0}else a.paths[t]===void 0?s=!0:o=a.paths[t].d;if(o){let e=Yi.pathCommandCount(o),t=Yi.pathCommandCount(n);if(e===t)return o;let a=new K(i),s=e=>{let t=Yi.pathBox(e);return t?Math.min(t.maxX-t.minX,t.maxY-t.minY):0},c=e<t?s(o)>1:s(n)>1;if(e<t){let e=a.roundPathCorners(o,0);if(Yi.pathCommandCount(e)===t){if(c&&r){let e=a.roundPathCorners(r,0);Yi.pathCommandCount(e)===t&&(this._pathToInterp=e)}return e}}else{let t=a.roundPathCorners(n,0);if(Yi.pathCommandCount(t)===e){if(this._pathToInterp=t,c){let t=Yi.squareLike(o),n=t?a.roundPathCorners(t,0):null;if(n&&Yi.pathCommandCount(n)===e)return n}return o}}}return s&&ut(i)?null:n}static pathBox(e){if(!e)return null;let t=[],n=/([MLC])([^MLCZz]*)/g,r;for(;(r=n.exec(e))!==null;){let e=r[2].trim().split(/[\s,]+/).map(Number);e.length<2||e.some(isNaN)||t.push([e[e.length-2],e[e.length-1]])}if(t.length<3)return null;let i=t.map(e=>e[0]),a=t.map(e=>e[1]);return{minX:Math.min(...i),maxX:Math.max(...i),minY:Math.min(...a),maxY:Math.max(...a),start:t[0],vertical:Math.abs(t[1][0]-t[0][0])<Math.abs(t[1][1]-t[0][1])}}static squareLike(e){let t=Yi.pathBox(e);if(!t)return null;let{minX:n,maxX:r,minY:i,maxY:a,start:o,vertical:s}=t,c=(e,t,n)=>Math.abs(e-t)<=Math.abs(e-n)?[t,n]:[n,t],l,u,d,f;s?(l=Math.abs(o[0]-n)<=Math.abs(o[0]-r)?n:r,u=l===n?r:n,[d,f]=c(o[1],i,a)):(d=Math.abs(o[1]-i)<=Math.abs(o[1]-a)?i:a,f=d===i?a:i,[l,u]=c(o[0],n,r));let p=e.trim().endsWith(`Z`)?` Z`:` z`;return s?`M ${l} ${d} L ${l} ${f} L ${u} ${f} L ${u} ${d}${p}`:`M ${l} ${d} L ${u} ${d} L ${u} ${f} L ${l} ${f}${p}`}getPreviousFlip(e,t){let n=this.w,r=this._prevRecord(e);if(!r)return null;let i=this._prevKeyedPaths(e),a=i?i.get(dt(n,e,t)):r.paths[t];return a?!!a.flip:null}static pathCommandCount(e){if(!e)return 0;let t=e.match(/[A-Za-z]/g);return t?t.length:0}}function Xi({w:e,points:t,seedA:n,seedB:r,center:i,halfExtent:a,alongFn:o,isHorizontal:s,options:c,clampAt:l}){let u=c;if(!u||!1===u.show||!t||!t.length)return[];let d=u.maxPoints||3e3,f=t.length>d?Math.ceil(t.length/d):1,p=u.size==null?2.5:u.size,m=a*(u.jitter==null?.5:u.jitter),h=!1!==u.constrainToViolin&&typeof l==`function`,g=u.shape===`square`,_=u.colorScale,v=_&&Array.isArray(_.colors)&&_.colors.length>0,y=v?Math.max(2,_.steps||24):1,b=v&&_.min!=null?_.min:e.globals.minY,x=(v&&_.max!=null?_.max:e.globals.maxY)-b||1,S=v?Array(y).fill(``):[``];for(let e=0;e<t.length;e+=f){let a=t[e],c=o(a),u=2*(ea(7919*n+100003*r+e)-.5)*m;if(h){let e=l(a);u>e&&(u=e),u<-e&&(u=-e)}let d=s?c:i+u,f=s?i+u:c,_=g?na(d,f,p):ta(d,f,p);if(v){let e=(a-b)/x;e<0&&(e=0),e>1&&(e=1),S[Math.round(e*(y-1))]+=_}else S[0]+=_}if(!v)return S[0]?[{fill:null,d:S[0]}]:[];let C=[];for(let e=0;e<y;
1799e++)S[e]&&C.push({fill:$i(_.colors,e/(y-1)),d:S[e]});return C}function Zi({graphics:e,w:t,elSeries:n,pointsByCat:r,options:i,distributed:a,realIndex:o,wrapClass:s,pointClass:c}){if(!i||!1===i.show||!r.length)return;let l=i.opacity==null?.9:i.opacity,u=i.strokeColor==null?`#fff`:i.strokeColor,d=i.strokeWidth==null?1:i.strokeWidth,f=t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged,p=e.group({class:f?`${s} apexcharts-element-hidden`:s});f&&t.globals.delayedElements.push({el:p.node}),r.forEach(({groups:n,j:r})=>{let s=a?t.globals.colors[r]:t.globals.colors[o],f=i.fillColor,m=f===`series`?s:f===`series-dark`?Qi(s,.45):f||Qi(s,.45);n.forEach(n=>{let i=e.drawPath({d:n.d,fill:n.fill==null?m:n.fill,stroke:d>0?u:`none`,strokeWidth:d,fillOpacity:l,classes:c});i.attr(`data:realIndex`,o),i.attr(`j`,r),i.attr(`clip-path`,`url(#gridRectBarMask${t.globals.cuid})`),i.node.style.pointerEvents=`none`,p.add(i)})}),n.add(p)}function Qi(e,t){let n=x.parseHex(e);if(!n)return e;let r=Math.max(0,1-t);return`rgb(${Math.round(n[0]*r)},${Math.round(n[1]*r)},${Math.round(n[2]*r)})`}function $i(e,t){if(!e.length)return`#000`;if(e.length===1)return e[0];let n=Math.max(0,Math.min(1,t))*(e.length-1),r=Math.floor(n),i=n-r,a=x.parseHex(e[r])||[0,0,0],o=x.parseHex(e[Math.min(r+1,e.length-1)])||a,s=(e,t)=>Math.round(e+(t-e)*i);return`rgb(${s(a[0],o[0])},${s(a[1],o[1])},${s(a[2],o[2])})`}function ea(e){let t=(2654435769^e)>>>0;return t=Math.imul(t^t>>>16,73244475),t=Math.imul(t^t>>>16,73244475),((t^t>>>16)>>>0)/4294967296}function ta(e,t,n){return`M ${e-n} ${t} a ${n} ${n} 0 1 0 ${2*n} 0 a ${n} ${n} 0 1 0 ${-2*n} 0 `}function na(e,t,n){return`M ${e-n} ${t-n} h ${2*n} v ${2*n} h ${-2*n} z `}class ra extends Yi{draw(e,t,n){var r;let i=this.w,a=new K(this.w),o=i.globals.comboCharts?t:i.config.chart.type,l=new Pe(this.w);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&this.candlestickOptions.type===`ohlc`,this.coreUtils=new V(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);let u=a.group({class:`apexcharts-${o}-series apexcharts-plot-series`});for(let t=0;t<e.length;t++){let o,d;this.isBoxPlot=i.config.chart.type===`boxPlot`||i.config.series[t].type===`boxPlot`;let f=[],p=[],m=i.globals.comboCharts?n[t]:t,{columnGroupIndex:h}=this.barHelpers.getGroupIndex(m),g=a.group({class:`apexcharts-series`,seriesName:x.escapeString(i.seriesData.seriesNames[m]),rel:t+1,"data:realIndex":m});q.addCollapsedClassToSeries(this.w,g,m),e[t].length>0&&(this.visibleI+=1);let _=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[m][0],_=m);let{y:v,barHeight:y,yDivision:b,zeroW:S,x:C,barWidth:w,xDivision:T,zeroH:E}=this.barHelpers.initialPositions(m);d=v,o=C,p.push(o+(w==null?0:w)/2);let D=a.group({class:`apexcharts-datalabels`,"data:realIndex":m}),O=a.group({class:`apexcharts-bar-goals-markers`}),k=this.isBoxPlot?this.boxOptions.points:null,A=[],j=i.layout.gridWidth,M=w==null?0:w;for(let n=0;n<i.globals.dataPoints;n++){let a=this.barHelpers.getStrokeWidth(t,n,m),u=null,v={indexes:{i:t,j:n,realIndex:m,translationsIndex:_},x:o,y:d,strokeWidth:a,elSeries:g};if(u=this.isHorizontal?this.drawHorizontalBoxPaths(c(s({},v),{yDivision:b,barHeight:y,zeroW:S})):this.drawVerticalBoxPaths(c(s({},v),{xDivision:T,barWidth:w,zeroH:E,cullBounds:{lo:-M,hi:j+M}})),d=u.y,o=u.x,n>0&&p.push(o+(w==null?0:w)/2),f.push(d),u.culled)continue;let x=this.barHelpers.drawGoalLine({barXPosition:u.barXPosition,barYPosition:u.barYPosition,goalX:u.goalX,goalY:u.goalY,barHeight:y,barWidth:w});if(x&&O.add(x),u.pathTo.forEach((r,s)=>{let c=!this.isBoxPlot&&this.candlestickOptions.wick.useFillColor?u.color[s]:i.globals.stroke.colors[t],f=l.fillPath({seriesNumber:m,dataPointIndex:n,color:u.color[s],value:e[t][n]});this.renderSeries({realIndex:m,pathFill:f,lineFill:c,j:n,i:t,pathFrom:u.pathFrom,pathTo:r,strokeWidth:a,elSeries:g,x:o,y:d,series:e,columnGroupIndex:h,barHeight:y,barWidth:w,elDataLabelsWrap:D,elGoalsMarkers:O,visibleSeries:this.visibleI,type:i.config.chart.type})}),k&&!1!==k.show){let e=(r=i.candleData.seriesBoxPoints[m])==null?void 0:r[n];if(e&&e.length){let t=e=>this.coreUtils.getLogValAtSeriesIndex(e,m),r,a,o;if(this.isHorizontal){let e=this.invertedYRatio,n=y==null?0:y,i=S==null?0:S;r=u.barYPosition+n/2,a=n/2,o=n=>i+t(n)/e}else{let e=this.yRatio[_],n=w==null?0:w,i=E==null?0:E;r=u.barXPosition+n/2,a=n/2,o=n=>i-t(n)/e}let s=Xi({w:i,points:e,seedA:m,seedB:n,center:r,halfExtent:a,alongFn:o,isHorizontal:this.isHorizontal,options:k});s.length&&A.push({groups:s,j:n})}}}k&&Zi({graphics:a,w:i,elSeries:g,pointsByCat:A,options:k,distributed:i.config.plotOptions.bar.distributed,realIndex:m,wrapClass:`apexcharts-boxPlot-points-wrap`,pointClass:`apexcharts-boxPlot-points`}),i.globals.seriesXvalues[m]=p,i.globals.seriesYvalues[m]=f,u.add(g)}return u}drawVerticalBoxPaths({indexes:e,x:t,xDivision:n,barWidth:r,zeroH:i,strokeWidth:a,cullBounds:o=null}){var s,c,l,u;let d=this.w,f=new K(this.w),p=e.i,m=e.j,{colors:h}=d.config.plotOptions.candlestick,{colors:g}=this.boxOptions,_=e.realIndex,v=e=>Array.isArray(e)?e[_]:e,y=v(h.upward),b=v(h.downward),x=this.yRatio[e.translationsIndex],S=this.getOHLCValue(_,m),C=i,w=i,T=S.o<S.c?[y]:[b];this.isBoxPlot&&(T=[v(g.lower),v(g.upper)]);let E=Math.min(S.o,S.c),D=Math.max(S.o,S.c),O=S.m;d.axisFlags.isXNumeric&&(t=(d.seriesData.seriesX[_][m]-d.globals.minX)/this.xRatio-r/2);let k=t+r*this.visibleI;if(((s=this.series[p])==null?void 0:s[m])===void 0||((c=this.series[p])==null?void 0:c[m])===null?(E=i,D=i):(E=i-E/x,D=i-D/x,C=i-S.h/x,w=i-S.l/x,O=i-S.m/x),o&&(k+r<o.lo||k>o.hi))return{pathTo:null,pathFrom:null,x:d.axisFlags.isXNumeric?t:t+n,y:D,barXPosition:k,color:T,culled:!0};let A;if(this.isOHLC){let e=k+r/2,t=i-S.o/x,n=i-S.c/x;A=[f.move(e,C)+f.line(e,w)+f.move(e,t)+f.line(k,t)+f.move(e,n)+f.line(k+r,n)]}else A=this.isBoxPlot?[f.move(k,E)+f.line(k+r/2,E)+f.line(k+r/2,C)+f.line(k+r/4,C)+f.line(k+r-r/4,C)+f.line(k+r/2,C)+f.line(k+r/2,E)+f.line(k+r,E)+f.line(k+r,O)+f.line(k,O)+f.line(k,E+a/2),f.move(k,O)+f.line(k+r,O)+f.line(k+r,D)+f.line(k+r/2,D)+f.line(k+r/2,w)+f.line(k+r-r/4,w)+f.line(k+r/4,w)+f.line(k+r/2,w)+f.line(k+r/2,D)+f.line(k,D)+f.line(k,O)+`z`]:[f.move(k,D)+f.line(k+r/2,D)+f.line(k+r/2,C)+f.line(k+r/2,D)+f.line(k+r,D)+f.line(k+r,E)+f.line(k+r/2,E)+f.line(k+r/2,w)+f.line(k+r/2,E)+f.line(k,E)+f.line(k,D-a/2)];let j=null,M=(u=(l=this.ctx)==null?void 0:l.morphTypeChange)==null?void 0:u.getInitialPathFor(_,m);return M?j=M:d.globals.previousPaths.length>
17990&&(j=this.getPreviousPath(_,m,A[0])),j==null&&(j=f.move(k+r/2,E)+f.move(k,E)),d.axisFlags.isXNumeric||(t+=n),{pathTo:A,pathFrom:j,x:t,y:D,goalY:this.barHelpers.getGoalValues(`y`,null,i,_,m,e.translationsIndex),barXPosition:k,color:T}}drawHorizontalBoxPaths({indexes:e,y:t,yDivision:n,barHeight:r,zeroW:i,strokeWidth:a}){var o,s,c,l;let u=this.w,d=new K(this.w),f=e.i,p=e.j,m=e.realIndex,{colors:h}=u.config.plotOptions.candlestick,{colors:g}=this.boxOptions,_=e=>Array.isArray(e)?e[m]:e,v=this.invertedYRatio,y=this.getOHLCValue(m,p),b=y.o<y.c?[_(h.upward)]:[_(h.downward)];this.isBoxPlot&&(b=[_(g.lower),_(g.upper)]);let x=i,S=i,C=Math.min(y.o,y.c),w=Math.max(y.o,y.c),T=y.m;u.axisFlags.isXNumeric&&(t=(u.seriesData.seriesX[m][p]-u.globals.minX)/this.invertedXRatio-r/2);let E=t+r*this.visibleI;((o=this.series[f])==null?void 0:o[p])===void 0||((s=this.series[f])==null?void 0:s[p])===null?(C=i,w=i):(C=i+C/v,w=i+w/v,x=i+y.h/v,S=i+y.l/v,T=i+y.m/v);let D=[d.move(C,E)+d.line(C,E+r/2)+d.line(x,E+r/2)+d.line(x,E+r/2-r/4)+d.line(x,E+r/2+r/4)+d.line(x,E+r/2)+d.line(C,E+r/2)+d.line(C,E+r)+d.line(T,E+r)+d.line(T,E)+d.line(C+a/2,E),d.move(T,E)+d.line(T,E+r)+d.line(w,E+r)+d.line(w,E+r/2)+d.line(S,E+r/2)+d.line(S,E+r-r/4)+d.line(S,E+r/4)+d.line(S,E+r/2)+d.line(w,E+r/2)+d.line(w,E)+d.line(T,E)+`z`],O=null,k=(l=(c=this.ctx)==null?void 0:c.morphTypeChange)==null?void 0:l.getInitialPathFor(m,p);return k?O=k:u.globals.previousPaths.length>0&&(O=this.getPreviousPath(m,p,D[0])),O==null&&(O=d.move(C,E+r/2)+d.move(C,E)),u.axisFlags.isXNumeric||(t+=n),{pathTo:D,pathFrom:O,x:w,y:t,goalX:this.barHelpers.getGoalValues(`x`,i,null,m,p,0),barYPosition:E,color:b}}getOHLCValue(e,t){let n=this.w,r=this.coreUtils,i=n=>n[e]&&n[e][t]!=null?r.getLogValAtSeriesIndex(n[e][t],e):0,a=i(n.candleData.seriesCandleH),o=i(n.candleData.seriesCandleO),s=i(n.candleData.seriesCandleM),c=i(n.candleData.seriesCandleC),l=i(n.candleData.seriesCandleL);return{o:this.isBoxPlot?a:o,h:this.isBoxPlot?o:a,m:s,l:this.isBoxPlot?c:l,c:this.isBoxPlot?l:c}}}let ia=e=>{let t=function(e){let t=[],n=e[0],r=e[1],i=t[0]=sa(n,r),a=1;for(let o=e.length-1;a<o;a++)n=r,r=e[a+1],t[a]=.5*(i+(i=sa(n,r)));return t[a]=i,t}(e),n=e.length-1,r=[],i,a,o,s;for(let r=0;r<n;r++)o=sa(e[r],e[r+1]),Math.abs(o)<1e-6?t[r]=t[r+1]=0:(i=t[r]/o,a=t[r+1]/o,s=i*i+a*a,s>9&&(s=3*o/Math.sqrt(s),t[r]=s*i,t[r+1]=s*a));for(let i=0;i<=n;i++)s=(e[Math.min(n,i+1)][0]-e[Math.max(0,i-1)][0])/(6*(1+t[i]*t[i])),r.push([s||0,t[i]*s||0]);return r},aa=e=>{let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.length;i>4?(t+=`C${r[0]}, ${r[1]}`,t+=`, ${r[2]}, ${r[3]}`,t+=`, ${r[4]}, ${r[5]}`):i>2&&(t+=`S${r[0]}, ${r[1]}`,t+=`, ${r[2]}, ${r[3]}`)}return t},oa={points(e){let t=ia(e),n=e[1],r=e[0],i=[],a=t[1],o=t[0];i.push(r,[r[0]+o[0],r[1]+o[1],n[0]-a[0],n[1]-a[1],n[0],n[1]]);for(let n=2,r=t.length;n<r;n++){let r=e[n],a=t[n];i.push([r[0]-a[0],r[1]-a[1],r[0],r[1]])}return i},slice(e,t,n){let r=e.slice(t,n);if(t){if(n-t>1&&r[1].length<6){let e=r[0].length;r[1]=[2*r[0][e-2]-r[0][e-4],2*r[0][e-1]-r[0][e-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r}};function sa(e,t){return(t[1]-e[1])/(t[0]-e[0])}function ca(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(e[n+1],e[n]);return t}class la{constructor(e,t){this.ctx=t,this.w=e}checkColorRange(){let e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(e=>{e.from<=0&&(t=!0)}),t}getShadeColor(e,t,n,r){let i=this.w,a=1,o=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);i.globals.hasNegs||r?a=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,e===`treemap`&&(a=(1-s.percent/100)*(1.25*o)));let c=s.color,l=new x;if(i.config.plotOptions[e].enableShades){if(this.w.config.theme.mode===`dark`){let e=l.shadeColor(-1*a,s.color);c=x.hexToRgba(x.isColorHex(e)?e:x.rgb2hex(e),i.config.fill.opacity)}else{let e=l.shadeColor(a,s.color);c=x.hexToRgba(x.isColorHex(e)?e:x.rgb2hex(e),i.config.fill.opacity)}}return{color:c,colorProps:s}}determineColor(e,t,n){let r=this.w,i=r.seriesData.series[t][n],a=r.config.plotOptions[e],o=a.colorScale.inverse?n:t;a.distributed&&r.config.chart.type===`treemap`&&(o=n);let s,c,l=r.globals.colors[o],u=null;if(a.distributed||e!==`heatmap`){let e=r.seriesData.series[t];s=e.length?e[0]:0,c=s;for(let t=1;t<e.length;t++)e[t]<s&&(s=e[t]),e[t]>c&&(c=e[t])}else s=r.globals.minY,c=r.globals.maxY;let d=a.colorScale.min,f=a.colorScale.max;d!==void 0&&f!==void 0&&f>d?(s=d,c=f):d!==void 0&&(s=d<r.globals.minY?d:r.globals.minY,c=f>r.globals.maxY?f:r.globals.maxY);let p=Math.abs(c)+Math.abs(s),m=p===0?0:100*Math.min(Math.max(i,s),c)/p;return a.colorScale.ranges.length>0&&a.colorScale.ranges.map(e=>{if(i>=e.from&&i<=e.to){l=e.color,u=e.foreColor?e.foreColor:null,s=e.from,c=e.to;let t=Math.abs(c)+Math.abs(s);m=t===0?0:100*i/t}}),{color:l,foreColor:u,percent:m}}calculateDataLabels({text:e,x:t,y:n,i:r,j:i,colorProps:a,fontSize:o}){let s=this.w,c=s.config.dataLabels,l=new K(this.w),u=new Ve(this.w,this.ctx),d=null;if(c.enabled){d=l.group({class:`apexcharts-data-labels`});let f=Be(c.offsetX,s,r,i),p=Be(c.offsetY,s,r,i),m=t+f,h=n+parseFloat(c.style.fontSize)/3+p;u.plotDataLabelsText({x:m,y:h,text:e,i:r,j:i,color:a.foreColor,parent:d,fontSize:o,dataLabelsConfig:c}
1799)}return d}}class ua{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){let n=this.w;if((n.config.fill.type===`gradient`||n.config.fill.type[e]===`gradient`)&&new V(this.lineCtx.w).seriesHaveSameValues(e)){let n=t[e].slice();n[n.length-1]=n[n.length-1]+1e-6,t[e]=n}return t}calculatePoints({series:e,realIndex:t,x:n,y:r,i,j:a,prevY:o}){let s=this.w,c=[],l=[],u=this.lineCtx.categoryAxisCorrection+s.config.markers.offsetX;return s.axisFlags.isXNumeric&&(u=(s.seriesData.seriesX[t][0]-s.globals.minX)/this.lineCtx.xRatio+s.config.markers.offsetX),a===0&&(c.push(u),l.push(x.isNumber(e[i][0])?o+s.config.markers.offsetY:null)),c.push(n+s.config.markers.offsetX),l.push(x.isNumber(e[i][a+1])?r+s.config.markers.offsetY:null),{x:c,y:l}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:n}){let r=this.w;for(let i=0;i<r.globals.previousPaths.length;i++){let a=r.globals.previousPaths[i];(a.type===`line`||a.type===`area`)&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(n,10)&&(a.type===`line`?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[i].paths[0].d):a.type===`area`&&(this.lineCtx.appendPathFrom=!1,t=r.globals.previousPaths[i].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[i].paths[1]&&(e=r.globals.previousPaths[i].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:n,prevY:r,lineYPosition:i,translationsIndex:a}){var o,s,c;let l=this.w,u=l.config.chart.stacked&&!l.globals.comboCharts||l.config.chart.stacked&&l.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((o=this.w.config.series[t])==null?void 0:o.type)===`bar`||((s=this.w.config.series[t])==null?void 0:s.type)===`column`);if(((c=n[e])==null?void 0:c[0])!==void 0){if(u){if(e>0){let e=this.lineCtx.stackTopAt(t,0);i=e===void 0?this.lineCtx.zeroY:e}else i=this.lineCtx.zeroY}else i=this.lineCtx.zeroY;r=i-n[e][0]/this.lineCtx.yRatio[a]+2*(this.lineCtx.isReversed?n[e][0]/this.lineCtx.yRatio[a]:0)}else if(u&&e>0&&n[e][0]===void 0){for(let t=e-1;t>=0;t--)if(n[t][0]!==null&&n[t][0]!==void 0){r=i=this.lineCtx.prevSeriesY[t][0];break}}return{prevY:r,lineYPosition:i}}}class da{constructor(e,t,n,r){this.ctx=t,this.w=e,this.xyRatios=n,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=this.w.config.chart.type===`bubble`||this.w.config.chart.type===`scatter`||r,this.scatter=new ze(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new ua(this),this.markers=new Re(this.w,this.ctx),this.prevSeriesY=[],this.prevSeriesYByX=new Map,this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null,this._elLastPointsWrap=null}draw(e,t,n,r){var i;let a=this.w,o=new K(this.w),l=a.globals.comboCharts?t:a.config.chart.type,u=o.group({class:`apexcharts-${l}-series apexcharts-plot-series`}),d=new V(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=d.getLogSeries(e),this.yRatio=d.getLogYRatios(this.yRatio),this.prevSeriesY=[],this.prevSeriesYByX=new Map;let f=[];for(let t=0;t<e.length;t++){e=this.lineHelpers.sameValueSeriesFix(t,e);let i=a.globals.comboCharts?n[t]:t,o=this.yRatio.length>1?i:0;this._initSerieVariables(e,t,i);let u=[],d=[],p=[],m=a.globals.padHorizontal+this.categoryAxisCorrection,h=[],g=[];q.addCollapsedClassToSeries(this.w,this.elSeries,i),a.axisFlags.isXNumeric&&a.seriesData.seriesX.length>0&&(m=(a.seriesData.seriesX[i][0]-a.globals.minX)/this.xRatio),p.push(m);let _=m,v,y=_,b=this.zeroY,x=this.zeroY;b=this.lineHelpers.determineFirstPrevY({i:t,realIndex:i,series:e,prevY:b,lineYPosition:0,translationsIndex:o}).prevY,a.config.stroke.curve===`monotoneCubic`&&e[t][0]===null?u.push(null):u.push(b);let S=b,C;l===`rangeArea`&&(C=this.lineHelpers.determineFirstPrevY({i:t,realIndex:i,series:r,prevY:x,lineYPosition:0,translationsIndex:o}),x=C.prevY,v=x,d.push(u[0]===null?null:x));let w=this._calculatePathsFrom({type:l,series:e,i:t,realIndex:i,translationsIndex:o,prevX:y,prevY:b,prevY2:x}),T=[u[0]],E=[d[0]],D={type:l,series:e,realIndex:i,translationsIndex:o,i:t,x:m,y:1,pX:_,pY:S,pathsFrom:w,linePaths:h,areaPaths:g,seriesIndex:n,lineYPosition:0,xArrj:p,yArrj:u,y2Arrj:d,seriesRangeEnd:r},O=this._iterateOverDataPoints(c(s({},D),{iterations:l===`rangeArea`?e[t].length-1:void 0,isRangeStart:!0}));if(l===`rangeArea`){let e=this._calculatePathsFrom({series:r,i:t,realIndex:i,prevX:y,prevY:x}),n=this._iterateOverDataPoints(c(s({},D),{series:r,xArrj:[m],yArrj:T,y2Arrj:E,pY:v,areaPaths:O.areaPaths,pathsFrom:e,iterations:r[t].length-1,isRangeStart:!1})),a=O.linePaths.length/2;for(let e=0;e<a;e++)O.linePaths[e]=n.linePaths[e+a]+O.linePaths[e];O.linePaths.splice(a),O.pathFromLine=n.pathFromLine+O.pathFromLine}else/z\s*$/i.test(O.pathFromArea)||(O.pathFromArea+=`z`);this._handlePaths({type:l,realIndex:i,i:t,paths:O}),this.markers.flushBatch(this.elPointsMain,i),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),f.pu
1799sh(this.elSeries)}if(((i=a.config.series[0])==null?void 0:i.zIndex)!==void 0&&f.sort((e,t)=>Number(e.node.getAttribute(`zIndex`))-Number(t.node.getAttribute(`zIndex`))),a.config.chart.stacked)for(let e=f.length-1;e>=0;e--)u.add(f[e]);else for(let e=0;e<f.length;e++)u.add(f[e]);return u}_initSerieVariables(e,t,n){let r=this.w,i=new K(this.w);this.xDivision=r.layout.gridWidth/(r.globals.dataPoints-+(r.config.xaxis.tickPlacement===`on`)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[n]:r.config.stroke.width;let a=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[n],a=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.layout.gridHeight-this.baseLineY[a]-(this.isReversed?r.layout.gridHeight:0)+(this.isReversed?2*this.baseLineY[a]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.layout.gridHeight||r.config.plotOptions.area.fillTo===`end`)&&(this.areaBottomY=r.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;let o=r.config.series[n];if(this.elSeries=i.group({class:`apexcharts-series`,zIndex:o.zIndex===void 0?n:o.zIndex,seriesName:x.escapeString(r.seriesData.seriesNames[n])}),this.elPointsMain=i.group({class:`apexcharts-series-markers-wrap`,"data:realIndex":n}),this.markers.resetSeriesWrapCache(),this._elLastPointsWrap=null,r.globals.hasNullValues){let e=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[r.layout.gridHeight+r.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});e!==null&&this.elPointsMain.add(e)}this.elDataLabelsWrap=i.group({class:`apexcharts-datalabels`,"data:realIndex":n});let s=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":s,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:n,realIndex:r,translationsIndex:i,prevX:a,prevY:o,prevY2:s}){let c=this.w,l=new K(this.w),u,d,f,p;if(t[n][0]===null){for(let e=0;e<t[n].length;e++)if(t[n][e]!==null){a=this.xDivision*e,o=this.zeroY-t[n][e]/this.yRatio[i],u=l.move(a,o),d=l.move(a,this.areaBottomY);break}}else u=l.move(a,o),e===`rangeArea`&&(u=l.move(a,s)+l.line(a,o)),d=l.move(a,this.areaBottomY)+l.line(a,o);if(f=l.move(0,this.areaBottomY)+l.line(0,this.areaBottomY),p=l.move(0,this.areaBottomY)+l.line(0,this.areaBottomY),c.globals.previousPaths.length>0){let e=this.lineHelpers.checkPreviousPaths({pathFromLine:f,pathFromArea:p,realIndex:r});f=e.pathFromLine,p=e.pathFromArea}return{prevX:a,prevY:o,linePath:u,areaPath:d,pathFromLine:f,pathFromArea:p}}_stackKey(e,t){if(!this.w.axisFlags.isXNumeric)return t;let n=this.w.seriesData.seriesX[e];return n?n[t]:void 0}stackTopAt(e,t){let n=this._stackKey(e,t);if(n!=null)return this.prevSeriesYByX.get(n)}_recordStackTops(e,t){let n=this.w;if(Array.isArray(t)&&n.globals.collapsedSeriesIndices.indexOf(e)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(e)===-1)for(let n=0;n<t.length;n++){let r=this._stackKey(e,n);if(r==null)continue;let i=t[n];x.isNumber(i)&&this.prevSeriesYByX.set(r,i)}}_handlePaths({type:e,realIndex:t,i:n,paths:r}){var i,a,o,l,u,d,f;let p=this.w,m=new K(this.w),h=Ie(this.ctx,m),g=new Pe(this.w);this.prevSeriesY.push(r.yArrj),this._recordStackTops(t,r.yArrj);let _=null;e!==`line`&&e!==`area`||!p.globals.dataChanged||(_=function(e,t,n,r){var i;let a=e.globals,o=a.prevStreamFrame;if(!o||!a.dataChanged||!((i=e.axisFlags)!=null&&i.isXNumeric))return null;let s=o.seriesX[t],c=o.seriesY[t],l=e.seriesData.seriesX[t],u=e.seriesData.series[t];if(!(s&&c&&l&&u)||s.length<3||l.length<3)return null;let d=-1;for(let e=0;e<s.length;e++)if(s[e]===l[0]){d=e;break}if(d===-1)return null;let f=Math.min(s.length-d,l.length);if(f<2)return null;let p=l.length-f;if(d===0&&p===0)return null;for(let e=0;e<f;e++){if(s[d+e]!==l[e])return null;let t=c[d+e],n=u[e];if(t!==n&&(t!=null||n!=null))return null}let m=o.xPixels[t],h=o.yPixels[t];if(!m||!h)return null;let g=-1,_=-1;for(let e=0;e<f;e++)m[d+e]!=null&&h[d+e]!=null&&n[e]!=null&&r[e]!=null&&(g===-1&&(g=e),_=e);if(g===-1||_<=g)return null;let v=n[g],y=n[_],b=m[d+g],x=m[d+_];if(Math.abs(y-v)<1e-6)return null;let S=(x-b)/(y-v),C=b-S*v;if(!isFinite(S)||!isFinite(C)||Math.abs(S-1)>.02||Math.abs(C)<.5)return null;let w=g,T=g;for(let e=g;e<=_;e++){let t=r[e];t!=null&&h[d+e]!=null&&(t<r[w]&&(w=e),t>r[T]&&(T=e))}let E=1,D=0,O=r[w],k=r[T];if(Math.abs(k-O)>1e-6?(E=(h[d+T]-h[d+w])/(k-O),D=h[d+w]-E*O):D=h[d+w]-O,!isFinite(E)||!isFinite(D)||E<.2||E>5)return null;let A=Math.floor((g+_)/2);if(A!==g&&A!==_&&n[A]!=null&&m[d+A]!=null){let e=S*n[A]+C;if(Math.abs(e-m[d+A])>1.5)return null;if(r[A]!=null&&h[d+A]!=null){let e=E*r[A]+D;
1799if(Math.abs(e-h[d+A])>1.5)return null}}return a.streamScrolled=!0,{ax:S,bx:C,ay:E,by:D}}(p,t,r.xArrj,r.yArrj));let v=null;_||e!==`line`&&e!==`area`||(v=_t(p,{type:e,realIndex:t,pathFromLine:r.pathFromLine,pathFromArea:r.pathFromArea,linePaths:r.linePaths,areaPaths:r.areaPaths})),p.globals.seriesXvalues[t]=r.xArrj,p.globals.seriesYvalues[t]=r.yArrj;let y=p.config.forecastDataPoints;if(y.count>0&&e!==`rangeArea`){let e=p.globals.seriesXvalues[t][p.globals.seriesXvalues[t].length-y.count-1],n=m.drawRect(e,0,p.layout.gridWidth,p.layout.gridHeight,0);p.dom.elForecastMask.appendChild(n.node);let r=m.drawRect(0,0,e,p.layout.gridHeight,0);p.dom.elNonForecastMask.appendChild(r.node)}this.pointsChart?gt(p,{elPointsMain:this.elPointsMain,realIndex:t,speed:p.config.chart.animations.dynamicAnimation.speed}):(p.globals.delayedElements.push({el:this.elPointsMain.node,index:t}),gt(p,{elPointsMain:this.elPointsMain,realIndex:t,speed:p.config.chart.animations.dynamicAnimation.speed}),pt(p,t)&&(i=this.elDataLabelsWrap)!=null&&i.node&&(this.elDataLabelsWrap.node.classList.add(`apexcharts-element-hidden`),p.globals.delayedElements.push({el:this.elDataLabelsWrap.node,holdUntilComplete:!0})));let b={i:n,realIndex:t,animationDelay:n,initialSpeed:p.config.chart.animations.speed,dataChangeSpeed:p.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`},x=r.numericXY,S=e===`line`||e===`area`,C=S&&r.linePaths.length>1?[r.linePaths.join(` `)]:r.linePaths,w=S&&r.areaPaths.length>1?[r.areaPaths.join(` `)]:r.areaPaths;if(e===`area`){let e=g.fillPath({seriesNumber:t});for(let t=0;t<w.length;t++){let n=h.renderPaths(c(s({},b),{pathFrom:_?rt(r.areaPaths[t],_):(o=(a=v==null?void 0:v.area)==null?void 0:a.from)==null?r.pathFromArea:o,pathTo:w[t],pathToNumeric:x?{xs:x.xs,ys:x.ys,closeY:x.areaCloseY}:void 0,pathToInterp:(l=v==null?void 0:v.area)==null?void 0:l.toInterp,scrollMorph:!!_,stroke:`none`,strokeWidth:0,strokeLineCap:null,fill:e}));this.elSeries.add(n)}}if(p.config.stroke.show&&!this.pointsChart){let i=null;if(e===`line`)i=g.fillPath({seriesNumber:t,i:n});else if(p.config.stroke.fill.type===`solid`)i=p.globals.stroke.colors[t];else{let e=p.config.fill;p.config.fill=p.config.stroke.fill,i=g.fillPath({seriesNumber:t,i:n}),p.config.fill=e}for(let n=0;n<C.length;n++){let a=i;e===`rangeArea`&&(a=g.fillPath({seriesNumber:t}));let o=c(s({},b),{pathFrom:_?rt(r.linePaths[n],_):(d=(u=v==null?void 0:v.line)==null?void 0:u.from)==null?r.pathFromLine:d,pathTo:C[n],pathToNumeric:x?{xs:x.xs,ys:x.ys}:void 0,pathToInterp:(f=v==null?void 0:v.line)==null?void 0:f.toInterp,scrollMorph:!!_,stroke:i,strokeWidth:this.strokeWidth,strokeLineCap:p.config.stroke.lineCap,fill:e===`rangeArea`?a:`none`}),l=h.renderPaths(o);if(this.elSeries.add(l),l.attr(`fill-rule`,`evenodd`),y.count>0&&e!==`rangeArea`){let e=h.renderPaths(o);e.node.setAttribute(`stroke-dasharray`,y.dashArray),y.strokeWidth&&e.node.setAttribute(`stroke-width`,y.strokeWidth),this.elSeries.add(e),e.attr(`clip-path`,`url(#forecastMask${p.globals.cuid})`),l.attr(`clip-path`,`url(#nonForecastMask${p.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:n,realIndex:r,translationsIndex:i,i:a,x:o,y:s,pX:c,pY:l,pathsFrom:u,linePaths:d,areaPaths:f,seriesIndex:p,lineYPosition:m,xArrj:h,yArrj:g,y2Arrj:_,isRangeStart:v,seriesRangeEnd:y}){var b,S;let C=this.w,w=new K(this.w),T=this.yRatio,{prevY:E,linePath:D,areaPath:O,pathFromLine:k,pathFromArea:A}=u,j=x.isNumber(C.globals.minYArr[r])?C.globals.minYArr[r]:C.globals.minY;n||(n=C.globals.dataPoints>1?C.globals.dataPoints-1:C.globals.dataPoints);let M=(e,t)=>t-e/T[i]+2*(this.isReversed?e/T[i]:0),N=s,P=C.config.chart.stacked&&!C.globals.comboCharts||C.config.chart.stacked&&C.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((b=this.w.config.series[r])==null?void 0:b.type)===`bar`||((S=this.w.config.series[r])==null?void 0:S.type)===`column`),F=C.config.stroke.curve;Array.isArray(F)&&(F=Array.isArray(p)?F[p[a]]:F[a]);let I,L=0,R=this.pointsChart?this._scatterJitterPx(r):null;if(F===`straight`&&!this.pointsChart){let p=this._fastStraightPath({type:e,series:t,i:a,realIndex:r,translationsIndex:i,iterations:n,x:o,y:s,pX:c,pY:l,pathsFrom:u,linePaths:d,areaPaths:f,xArrj:h,yArrj:g,y2Arrj:_,stackSeries:P});if(p)return p}for(let i=0;i<n&&t[a].length!==0;i++){let u=t[a][i+1]===void 0||t[a][i+1]===null;if(C.axisFlags.isXNumeric){let e=C.seriesData.seriesX[r][i+1];C.seriesData.seriesX[r][i+1]===void 0&&(e=C.seriesData.seriesX[r][n-1]),o=(e-C.globals.minX)/this.xRatio}else o+=this.xDivision;if(P){if(a>0&&C.globals.collapsedSeries.length<C.config.series.length-1){if((e=>{var t;for(let n=e;n>=0;n--){let e=(t=p==null?void 0:p[n])==null?n:t;if(C.globals.collapsedSeriesIndices.indexOf(e)===-1&&C.globals.ancillaryCollapsedSeriesIndices.indexOf(e)===-1)return n}return-1})(a-1)<0)m=this.zeroY;else{let e=this.stackTopAt(r,i+1);m=e===void 0?this.zeroY:e}}else m=this.zeroY}else m=this.zeroY;u?s=M(j,m):(s=M(t[a][i+1],m),e===`rangeArea`&&(N=M(y[a][i+1],m)));let b=o,x=s;if(R){let e=100003*r+(i+1);R.x&&(b=o+2*(ea(7919*e+13)-.5)*R.x),R.y&&(x=s+2*(ea(6271*e+97)-.5)*R.y)}h.push(t[a][i+1]===null?null:b),!u||C.config.stroke.curve!==`smooth`&&C.config.stroke.curve!==`monotoneCubic`?(g.push(x),_.push(N)):(g.push(null),_.push(null));let S=this.lineHelpers.calculatePoints({series:t,x:b,y:x,realIndex:r,i:a,j:i,prevY:E}),T=this._createPaths({type:e,series:t,i:a,j:i,x:o,y:s,y2:N,xArrj:h,yArrj:g,y2Arrj:_,pX:c,pY:l,pathState:L,segmentStartX:I,linePath:D,areaPath:O,linePaths:d,areaPaths:f,curve:F,isRangeStart:v});f=T.areaPaths,d=T.linePaths,c=T.pX,l=T.pY,L=T.pathState,I=T.segmentStartX,O=T.areaPath,D=T.linePath,!this.appendPathFrom||C.globals.hasNullValues||F===`monotoneCubic`&&e===`rangeArea`||(k+=w.line(o,this.areaBottomY),A+=w.line(o,this.areaBottomY)),this.handleNullDataPoints(t,S,a,i,r),this._handleMarkersAndLabels({type:e,pointsPos:S,i:a,j:i,realIndex:r,isRangeStart:v})}return{yArrj:g,xArrj:h,pathFromArea:A,areaPaths:f,pathFromLine:k,linePaths:d,linePath:D,areaPath:O}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:n,i:r,j:i,realIndex:a}){let o=this.w,s=new Ve(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,i,{realIndex:a,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{(o.globals.dataChanged||o.globals.resized||o.globals.markers.batched)&&o.seriesData.series[r].length>1&&this.elPointsMain.node.classList.add(`apexcharts-element-hidden`);let e=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:a,j:i+1});e!==null&&e!==this._elLastPointsWrap&&(this.elPointsMain.add(e),this._elLastPointsWrap=e)}let c=s.drawDataLabel({type:e,isRangeStart:n,pos:t,i:a,j:i+1});c!==null&&this.elDataLabelsWrap.add(c)}_scatterJitterPx(e){var t;let n=this.w,r=(t=n.config.plotOptions.scatter)==null?void 0:t.jitter;if(!r||!r.enabled||!r.x&&!r.y)return null;let i=n.axisFlags.isXNumeric&&this.xRatio?1/this.xRatio:this.xDivision,a=this.yRatio.length>1?e:0,o=this.yRatio[a]?1/this.yRatio[a]:0;return{x:(r.x||0)*i,y:(r.y||0)*o}}_fastStraightPath({type:e,series:t,i:n,realIndex:r,translationsIndex:i,iterations:a,x:o,y:s,pX:c,pY:l,pathsFrom:u,linePaths:d,areaPaths:f,xArrj:p,yArrj:m,y2Arrj:h,stackSeries:g}){let _=this.w;if(e!==`line`&&e!==`area`||_.globals.comboCharts||g||_.config.dataLabels.enabled||_.config.markers.discrete.length||_.globals.markers.size[r]>0)return null;let v=t[n],y=v.length;if(!a||y<2||y-1!==a)return null;for(let e=0;e<=a;e++)if(v[e]==null)return null;let b=_.axisFlags.isXNumeric,x=b?_.seriesData.seriesX[r]:null;if(b&&(!x||x.length<y))return null;let S=this.yRatio[i],C=this.isReversed,w=this.zeroY,T=this.areaBottomY,E=this.xRatio,D=_.globals.minX,O=this.xDivision,k=_.config.markers.offsetX,A=_.config.markers.offsetY,j=this.appendPathFrom&&!_.globals.hasNullValues,{pathFromLine:M,pathFromArea:N}=u,P=this.ctx&&this.ctx.renderer,F=!(!P||!P.kind||P.kind===`svg`),I=!F||_.globals.dataChanged&&!!_.globals.prevStreamFrame,L=F?new Float64Array(y):null,R=F?new Float64Array(y):null;L&&R&&(L[0]=c,R[0]=l),_.globals.pointsArray[r]===void 0&&(_.globals.pointsArray[r]=[]);let z=_.globals.pointsArray[r],ee=x?(x[0]-D)/E+k:this.categoryAxisCorrection+k;z.push([ee,u.prevY+A]);let B=I?Array(a+1):[];I&&(B[0]=`M `+c+` `+l);let te=I&&j?Array(a):null,V=o,H=c,U=l;for(let e=0;e<a;e++){x?H=(x[e+1]-D)/E:(V+=O,H=V);let t=v[e+1];U=w-t/S+2*(C?t/S:0),p.push(H),m.push(U),h.push(s),z.push([H+k,U+A]),I&&(B[e+1]=` L `+H+` `+U,te&&(te[e]=` L `+H+` `+T)),L&&R&&(L[e+1]=H,R[e+1]=U)}let ne=``,re=``;if(I&&(ne=B.join(``),re=ne+` L `+H+` `+T+` L `+c+` `+T+`z`),te){let e=te.join(``);M+=e,N+=e}else!I&&j&&(M+=` L `+H+` `+T,N+=` L `+H+` `+T);return d.push(ne),f.push(re),{yArrj:m,xArrj:p,pathFromArea:N,areaPaths:f,pathFromLine:M,linePaths:d,linePath:ne,areaPath:re,numericXY:L?{xs:L,ys:R,areaCloseY:T}:void 0}}_createPaths({type:e,series:t,i:n,j:r,x:i,y:a,xArrj:o,yArrj:s,y2:c,y2Arrj:l,pX:u,pY:d,pathState:f,segmentStartX:p,linePath:m,areaPath:h,linePaths:g,areaPaths:_,curve:v,isRangeStart:y}){let b=new K(this.w),x=this.areaBottomY,S=e===`rangeArea`,C=e===`rangeArea`&&y;switch(v){case`monotoneCubic`:{let e=y?s:l,i=(e,t)=>e.map((e,n)=>[e,t[n]]).filter(e=>e[1]!==null),a=e=>{let t=[],n=0;
1799return e.forEach(e=>{e===null?n>0&&(t.push(n),n=0):n++}),n>0&&t.push(n),t},c=(e,t)=>{let n=a(e),r=[];for(let e=0,i=0;e<n.length;i+=n[e++])r[e]=oa.slice(t,i,i+n[e]);return r};switch(f){case 0:if(e[r+1]===null)break;f=1;case 1:if(!(S?o.length===t[n].length:r===t[n].length-2))break;case 2:{let t=y?o:o.slice().reverse(),n=y?e:e.slice().reverse(),r=i(t,n),a=r.length>1?oa.points(r):r,s=[];S&&(C?_=r:s=_.reverse());let l=0,u=0;if(c(n,a).forEach(e=>{l++;let t=aa(e),n=u;u+=e.length;let i=u-1;C?m=b.move(r[n][0],r[n][1])+t:S?m=b.move(s[n][0],s[n][1])+b.line(r[n][0],r[n][1])+t+b.line(s[i][0],s[i][1]):(m=b.move(r[n][0],r[n][1])+t,h=m+b.line(r[i][0],x)+b.line(r[n][0],x)+`z`,_.push(h)),g.push(m)}),S&&l>1&&!C){let e=g.slice(l).reverse();g.splice(l),e.forEach(e=>g.push(e))}f=0;break}}break}case`smooth`:{let e=.35*(i-u);if(t[n][r]===null)f=0;else switch(f){case 0:if(p=u,m=C?b.move(u,l[r])+b.line(u,d):b.move(u,d),h=b.move(u,d),t[n][r+1]===null||t[n][r+1]===void 0){g.push(m),_.push(h);break}if(f=1,r<t[n].length-2){let t=b.curve(u+e,d,i-e,a,i,a);m+=t,h+=t;break}case 1:if(t[n][r+1]===null)m+=C?b.line(u,c):b.move(u,d),h+=b.line(u,x)+b.line(p,x)+`z`,g.push(m),_.push(h),f=-1;else{let o=b.curve(u+e,d,i-e,a,i,a);m+=o,h+=o,r>=t[n].length-2&&(C&&(m+=b.curve(i,a,i,a,i,c)+b.move(i,c)),h+=b.curve(i,a,i,a,i,x)+b.line(p,x)+`z`,g.push(m),_.push(h),f=-1)}}u=i,d=a;break}default:{let e=(e,t,n)=>{let r=``;switch(e){case`stepline`:r=b.line(t,null,`H`)+b.line(null,n,`V`);break;case`linestep`:r=b.line(null,n,`V`)+b.line(t,null,`H`);break;case`straight`:r=b.line(t,n)}return r};if(t[n][r]===null)f=0;else switch(f){case 0:if(p=u,m=C?b.move(u,l[r])+b.line(u,d):b.move(u,d),h=b.move(u,d),t[n][r+1]===null||t[n][r+1]===void 0){g.push(m),_.push(h);break}if(f=1,r<t[n].length-2){let t=e(v,i,a);m+=t,h+=t;break}case 1:if(t[n][r+1]===null)m+=C?b.line(u,c):b.move(u,d),h+=b.line(u,x)+b.line(p,x)+`z`,g.push(m),_.push(h),f=-1;else{let o=e(v,i,a);m+=o,h+=o,r>=t[n].length-2&&(C&&(m+=b.line(i,c)),h+=b.line(i,x)+b.line(p,x)+`z`,g.push(m),_.push(h),f=-1)}}u=i,d=a;break}}return{linePaths:g,areaPaths:_,pX:u,pY:d,pathState:f,segmentStartX:p,linePath:m,areaPath:h}}handleNullDataPoints(e,t,n,r,i){let a=this.w;if(e[n][r]===null&&a.config.markers.showNullDataPoints||e[n].length===1){let e=this.strokeWidth-a.config.markers.strokeWidth/2;e>0||(e=0);let n=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:i,j:r+1,pSize:e,alwaysDrawMarker:!0});n!==null&&this.elPointsMain.add(n)}}}function fa(e,t){let{lines:n,lineHeight:r,anchor:i,elbow:a,labelX:o,labelY:s,side:c,connector:l,style:u,foreColor:d}=t,f=new K(e),p=f.group({class:t.groupClass||`apexcharts-outer-label-group`});if(l.show){let e=`M ${i.x} ${i.y} L ${a.x} ${a.y} L ${o} ${s}`,n=f.drawPath({d:e,stroke:l.color,strokeWidth:l.width,fill:`none`,strokeLinecap:`round`});n.node.classList.add(t.connectorClass||`apexcharts-outer-label-connector`),p.add(n)}let m=c===`right`?o+4:o-4,h=n.length,g=s-(h-1)*r/2,_=f.drawText({x:m,y:g,text:h===1?n[0]:n,textAnchor:c===`right`?`start`:`end`,fontSize:u.fontSize,fontFamily:u.fontFamily,fontWeight:u.fontWeight,foreColor:d,dominantBaseline:`central`,cssClass:t.textClass||`apexcharts-outer-label`});if(h>1){let e=_.node.getElementsByTagName(`tspan`);for(let t=0;t<e.length;t++)e[t].setAttribute(`x`,`${m}`),e[t].setAttribute(`dy`,t===0?`0`:`${r}`)}return p.add(_),p}function pa(e,t,n,r){let i=e.slice().sort((e,t)=>e.idealY-t.idealY);i.forEach(e=>{e.labelY=e.idealY});for(let e=1;e<i.length;e++)i[e].labelY-i[e-1].labelY<t&&(i[e].labelY=i[e-1].labelY+t);let a=i[i.length-1],o=a?a.labelY-n:0;if(o>0)for(let e=i.length-1;e>=0;e--)i[e].labelY-=o,e<i.length-1&&i[e+1].labelY-i[e].labelY<t&&(i[e].labelY=i[e+1].labelY-t);if(r!=null&&i.length&&i[0].labelY<r){let e=r-i[0].labelY;for(let t=0;t<i.length;t++)i[t].labelY+=e}}class ma{constructor(e){this.w=e}drawYAxisTexts(e,t,n,r){let i=this.w,a=i.config.yaxis[0],o=i.formatters.yLabelFormatters[0];return new K(this.w).drawText({x:e+a.labels.offsetX,y:t+a.labels.offsetY,text:o(r,n),textAnchor:`middle`,fontSize:a.labels.style.fontSize,fontFamily:a.labels.style.fontFamily,foreColor:Array.isArray(a.labels.style.colors)?a.labels.style.colors[n]:a.labels.style.colors})}getMaxLabelWidth(e,{fontSize:t,fontFamily:n}={}){let r=new K(this.w),i=0;
1799return e.forEach(e=>{if(e==null||e===``)return;let a=r.getTextRects(`${e}`,t||`12px`,n,``);i=Math.max(i,a.width)}),i}drawExternalLabel(e){return fa(this.w,c(s({},e),{groupClass:`apexcharts-pie-name-label-group`,textClass:`apexcharts-pie-name-label`,connectorClass:`apexcharts-pie-label-connector`}))}}let ha=Math.PI/180,ga=180/Math.PI;function _a(e,t,n,r){return{x:e+n*Math.cos((r-90)*ha),y:t+n*Math.sin((r-90)*ha)}}let $=e=>`${e.x} ${e.y}`;function va({cx:e,cy:t,rIn:n,rOut:r,a0:i,a1:a,r:o,spanDeg:s}){let c=(n,r)=>_a(e,t,n,r),l=o/r*ga,u=o/n*ga,d=c(r,i+l),f=c(r,a-l),p=+(s-2*l>180),m=c(r,a),h=c(r-o,a),g=c(r,i),_=c(r-o,i),v=c(n,a-u),y=c(n,i+u),b=+(s-2*u>180),x=c(n,a),S=c(n+o,a),C=c(n,i),w=c(n+o,i);return[`M`,$(d),`A`,r,r,0,p,1,$(f),`Q`,$(m),$(h),`L`,$(S),`Q`,$(x),$(v),`A`,n,n,0,b,0,$(y),`Q`,$(C),$(w),`L`,$(_),`Q`,$(g),$(d),`Z`].join(` `)}function ya({cx:e,cy:t,rIn:n,rOut:r,a0:i,a1:a,spanDeg:o}){let s=(n,r)=>_a(e,t,n,r),c=+(o>180),l=s(r,i),u=s(r,a),d=s(n,a),f=s(n,i);return[`M`,$(l),`A`,r,r,0,c,1,$(u),`L`,$(d),`A`,n,n,0,c,0,$(f),`Z`].join(` `)}class ba{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=e.globals.stroke.colors===void 0?e.globals.colors:e.globals.stroke.colors,this.defaultSize=Math.min(e.layout.gridWidth,e.layout.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.layout.gridWidth/2,this.fullAngle=e.config.chart.type===`radialBar`?360:Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.externalCfg=e.config.plotOptions.pie.dataLabels.external;let n=e.config.dataLabels.style;this.externalLabelStyle={fontSize:this.externalCfg.fontSize||n.fontSize,fontFamily:this.externalCfg.fontFamily||n.fontFamily,fontWeight:this.externalCfg.fontWeight||n.fontWeight},this.externalLabels=[],this.externalLabelMaxLines=1,this.externalLabelLineH=parseFloat(this.externalLabelStyle.fontSize)||12,e.globals.pieExternalLabelMarginY=0,this.showExternalLabels=this.externalCfg.show&&this.chartType!==`polarArea`,this.showExternalLabels&&!e.globals.noData&&this.reserveExternalLabelSpace(),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100;let r=e.config.plotOptions.pie.customScale,i=e.layout.gridWidth/2,a=e.layout.gridHeight/2;this.translateX=i-i*r,this.translateY=a-a*r,this.dataLabelsGroup=new K(this.w).group({class:`apexcharts-datalabels-group`,transform:`translate(${this.translateX}, ${this.translateY}) scale(${r})`}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSliceSizes=[],this.sliceLabelGroups={},this.externalLabelGroups={},this.elHoverOutline=null,this.elHoverOutlinePath=null,this.hoverOutlineIndex=-1,this.prevSectorAngleArr=[]}getExternalLabelText(e){var t,n,r;let i=this.w,a=i.seriesData.seriesNames[e],o=this.externalCfg.formatter;return typeof o==`function`?o(a,{seriesIndex:e,percent:(n=(t=i.globals.seriesPercent)==null?void 0:t[e])==null?void 0:n[0],value:(r=i.globals.seriesTotals)==null?void 0:r[e],w:i}):a==null?``:`${a}`}getExternalLabelLines(e){let t=this.getExternalLabelText(e);return(Array.isArray(t)?t:`${t==null?``:t}`.split(`
1800`)).map(e=>e==null?``:`${e}`)}reserveExternalLabelSpace(){let e=this.w,t=new ma(e),n=(e.seriesData.seriesNames||[]).map((e,t)=>this.getExternalLabelLines(t)),r=t.getMaxLabelWidth(n.flat(),{fontSize:this.externalLabelStyle.fontSize,fontFamily:this.externalLabelStyle.fontFamily});this.externalLabelMaxLines=n.reduce((e,t)=>Math.max(e,t.length),1),this.externalLabelLineH=Math.round(1.35*(parseFloat(this.externalLabelStyle.fontSize)||12));let i=this.externalCfg.connector,a=this.externalLabelMaxLines*this.externalLabelLineH,o=r+(i.length||0)+(i.gap||0)+12,s=a/2+(i.gap||0)+6,c=Math.min(e.globals.radialSize,e.layout.gridWidth/2-o,e.layout.gridHeight/2-s);e.globals.radialSize=Math.max(c,.15*this.defaultSize),e.globals.pieExternalLabelMarginY=s;let l=e.config.chart.height?String(e.config.chart.height):``,u=l!==``&&l!==`auto`;this.centerY=u?e.layout.gridHeight/2:e.globals.radialSize+s}draw(e){var t;let n=this.w,r=new K(this.w),i=r.group({class:`apexcharts-pie`});if(n.globals.noData)return i;let a=0;for(let t=0;t<e.length;t++)a+=x.negToZero(e[t]);let o=[],s=r.group();
1800a===0&&(a=1e-5),e.forEach(e=>{this.maxY=Math.max(this.maxY,e)}),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),n.config.grid.position===`back`&&this.chartType===`polarArea`&&this.drawPolarElements(i);let c=n.globals.collapsedSeriesIndices||[],l=1;if(this.chartType===`polarArea`){let t=0;for(let n=0;n<e.length;n++)c.indexOf(n)===-1&&t++;l=Math.max(1,t)}for(let t=0;t<e.length;t++){let r=this.fullAngle*x.negToZero(e[t])/a;o.push(r),this.chartType===`polarArea`?(o[t]=c.indexOf(t)>-1?0:this.fullAngle/l,this.sliceSizes.push(n.globals.radialSize*e[t]/(this.maxY||1))):this.sliceSizes.push(n.globals.radialSize)}let u=!0===((t=this.ctx.morphTypeChange)==null?void 0:t.isActive());if(n.globals.dataChanged&&!u){if(this.chartType===`polarArea`){let e=n.globals.previousPaths,t=n.globals.prevPolarAngles;if(Array.isArray(t)&&t.length===e.length)this.prevSectorAngleArr=t.slice();else for(let t=0;t<e.length;t++)this.prevSectorAngleArr.push(this.fullAngle/Math.max(1,e.length));let r=0;for(let t=0;t<e.length;t++)r=Math.max(r,x.negToZero(e[t]));n.config.yaxis[0].max&&(r=n.config.yaxis[0].max),this.prevSliceSizes=e.map(e=>n.globals.radialSize*x.negToZero(e)/(r||1))}else{let e,t=0;for(let e=0;e<n.globals.previousPaths.length;e++)t+=x.negToZero(n.globals.previousPaths[e]);for(let r=0;r<n.globals.previousPaths.length;r++)e=this.fullAngle*x.negToZero(n.globals.previousPaths[r])/t,this.prevSectorAngleArr.push(e)}}if(this.chartType===`polarArea`&&(n.globals.prevPolarAngles=o.slice()),this.donutSize<0&&(this.donutSize=0),this.chartType===`donut`){let e=r.drawCircle(this.donutSize);e.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:`transparent`}),s.add(e)}let d=this.drawArcs(o,e);
1800if(this.sliceLabels.forEach(e=>{d.add(e)}),s.attr({transform:`translate(${this.translateX}, ${this.translateY}) scale(${n.config.plotOptions.pie.customScale})`}),s.add(d),i.add(s),this.donutDataLabels.show){let e=this.initialAnim&&!n.globals.resized&&!n.globals.dataChanged&&this.animDur>0,t=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:e?0:this.donutDataLabels.show});if(e){let e=this.dataLabelsGroup.node;e.style.transition=`opacity 280ms ease-out`,setTimeout(()=>{e.style.opacity=`1`},this.animDur)}i.add(t)}return n.config.grid.position===`front`&&this.chartType===`polarArea`&&this.drawPolarElements(i),i}drawArcs(e,t){var n,r,i,a,o;let s=this.w,c=new G(this.w),l=new K(this.w),u=new Pe(this.w),f=l.group({class:`apexcharts-slices`});this.elHoverOutline=l.group({class:`apexcharts-pie-hover-outline`}),this.elHoverOutline.node.style.pointerEvents=`none`,this.elHoverOutline.node.style.opacity=`0`,s.config.chart.animations.enabled&&(this.elHoverOutline.node.style.transition=`opacity 180ms ease-out`),f.add(this.elHoverOutline);let p=this.initialAngle,m=this.initialAngle,h=this.initialAngle,g=this.initialAngle;this.strokeWidth=s.config.stroke.show?s.config.stroke.width:0;let _=!0===((n=this.ctx.morphTypeChange)==null?void 0:n.isActive());for(let n=0;n<e.length;n++){let d=l.group({class:`apexcharts-series apexcharts-pie-series`,seriesName:x.escapeString(s.seriesData.seriesNames[n]),rel:n+1,"data:realIndex":n});f.add(d),p=h,m=g,h=p+e[n],g=m+this.prevSectorAngleArr[n];let v=h<p?this.fullAngle+h-p:h-p,y=u.fillPath({seriesNumber:n,size:this.sliceSizes[n],value:t[n]}),b=_?this.ctx.morphTypeChange.getInitialPathFor(n,0):null,S=this.chartType===`polarArea`&&s.globals.dataChanged&&!_?this.prevSliceSizes[n]||0:void 0,C=b||this.getChangedPath(m,g,S),w=l.drawPath({d:C,stroke:Array.isArray(this.lineColorArr)?(r=this.lineColorArr[n])==null?this.lineColorArr[n%this.lineColorArr.length]:r:this.lineColorArr,strokeWidth:0,fill:y,fillOpacity:s.config.fill.opacity,classes:`apexcharts-pie-area apexcharts-${this.chartType.toLowerCase()}-slice-${n}`});if(w.attr({index:0,j:n}),c.setSelectionFilter(w,0,n),s.config.chart.dropShadow.enabled){let e=s.config.chart.dropShadow;c.dropShadow(w,e,n)}this.addListeners(w,this.donutDataLabels,n);let T={x:0,y:0},E=(p+v/2)%this.fullAngle,D={x:this.centerX,y:this.centerY};this.chartType===`pie`||this.chartType===`polarArea`?(T=x.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize/1.25+s.config.plotOptions.pie.dataLabels.offset,E),D=x.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize/2,E)):this.chartType===`donut`&&(T=x.polarToCartesian(this.centerX,this.centerY,(s.globals.radialSize+this.donutSize)/2+s.config.plotOptions.pie.dataLabels.offset,E),D=x.polarToCartesian(this.centerX,this.centerY,(s.globals.radialSize+this.donutSize)/2,E)),K.setAttrs(w.node,{"data:angle":v,"data:startAngle":p,"data:strokeWidth":this.strokeWidth,"data:value":t[n],"data:cx":D.x,"data:cy":D.y}),d.add(w);let O=!1;if(_){let e=this.getPiePath({me:this,startAngle:p,angle:v,size:this.sliceSizes[n]});w.node.setAttribute(`data:pathFinal`,e),O=!0===((a=(i=this.ctx.morphTypeChange).claimsTargetMark)==null?void 0:a.call(i,n,0)),O&&(w.attr({d:e}),w.node.setAttribute(`data:pathOrig`,e),w.node.setAttribute(`opacity`,`0`),w.node.setAttribute(`data-piece-hidden`,`1`))}let k=0;if(!this.initialAnim||s.globals.resized||s.globals.dataChanged?this.animBeginArr.push(0):(k=v/this.fullAngle*s.config.chart.animations.speed,k===0&&(k=1),this.animDur=k+this.animDur,this.animBeginArr.push(this.animDur)),!O){if(_&&b){let e=this.getPiePath({me:this,startAngle:p,angle:v,size:this.sliceSizes[n]}),t=this.ctx.morphTypeChange.getSpeed(),r=this.ctx.animations;w.node.setAttribute(`data:pathOrig`,e);let i=w.animate(t).plot(e,`polygons`).attr({"stroke-width":this.strokeWidth});i&&typeof i.after==`function`?i.after(()=>r.animationCompleted(w)):r.animationCompleted(w)}else this.dynamicAnim&&s.globals.dataChanged?this.animatePaths(w,{size:this.sliceSizes[n],prevSize:S,endAngle:h,startAngle:p,prevStartAngle:m,prevEndAngle:g,animateStartingPos:!0,i:n,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:s.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(w,{size:this.sliceSizes[n],endAngle:h,startAngle:p,i:n,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:k})}if(this.getExpandOffset()>0?w.node.addEventListener(`mouseup`,this.pieClicked.bind(this,n)):n===0&&G.drilldownBlocksSliceOffset(s)&&((o=this.ctx.drilldown)==null||o.warnSliceOffsetDisabled()),s.interact.selectedDataPoints[0]!==void 0&&s.interact.selectedDataPoints[0].indexOf(n)>-1){if(this.initialAnim&&!s.globals.resized&&!s.globals.dataChanged&&this.animDur>0){let e=this,t=n;setTimeout(()=>e.pieClicked(t,{animate:!1}),this.animDur)}else this.pieClicked(n,{animate:!1})}if(s.config.dataLabels.enabled){let t=T.x,r=T.y,i=100*v/this.fullAngle+`%`;
1800if(v!==0&&s.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[n]){let e=s.config.dataLabels.formatter;e!==void 0&&(i=e(s.globals.seriesPercent[n][0],{seriesIndex:n,w:s}));let a=s.globals.dataLabels.style.colors[n],o=l.group({class:`apexcharts-datalabels`}),u=l.drawText({x:t,y:r,text:i,textAnchor:`middle`,fontSize:s.config.dataLabels.style.fontSize,fontFamily:s.config.dataLabels.style.fontFamily,fontWeight:s.config.dataLabels.style.fontWeight,foreColor:a});if(o.add(u),s.config.dataLabels.dropShadow.enabled){let e=s.config.dataLabels.dropShadow;c.dropShadow(u,e)}u.node.classList.add(`apexcharts-pie-label`),s.config.chart.animations.animate&&!1===s.globals.resized&&(u.node.classList.add(`apexcharts-pie-label-delay`),u.node.style.animationDelay=s.config.chart.animations.speed/940+`s`),this.sliceLabels.push(o),this.sliceLabelGroups[n]=o.node}}if(this.showExternalLabels&&v!==0){let e=this.getExternalLabelLines(n);if(e.some(e=>e!==``)){let t=x.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize,E),r=x.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize+(this.externalCfg.connector.gap||0),E),i=r.x>=this.centerX,a=i?r.x+(this.externalCfg.connector.length||0):r.x-(this.externalCfg.connector.length||0);this.externalLabels.push({i:n,lines:e,anchor:t,elbow:r,side:i?`right`:`left`,labelX:a+parseFloat(this.externalCfg.offsetX||0),idealY:r.y+parseFloat(this.externalCfg.offsetY||0),connectorColor:this.externalCfg.connector.color||s.globals.colors[n],foreColor:this.externalCfg.color||s.config.chart.foreColor})}}}if(this.showExternalLabels&&this.externalLabels.length){this.placeExternalLabels();let e=d.isBrowser()&&(_||this.dynamicAnim&&s.globals.dataChanged||this.initialAnim&&!s.globals.resized&&!s.globals.dataChanged);
1800this.externalLabels.forEach(t=>{let n=new ma(s).drawExternalLabel({lines:t.lines,lineHeight:this.externalLabelLineH,anchor:t.anchor,elbow:t.elbow,labelX:t.labelX,labelY:t.labelY,side:t.side,connector:{show:this.externalCfg.connector.show,width:this.externalCfg.connector.width,color:t.connectorColor},style:this.externalLabelStyle,foreColor:t.foreColor});e&&(n.node.classList.add(`apexcharts-element-hidden`),s.globals.delayedElements.push({el:n.node})),this.externalLabelGroups[t.i]=n.node,f.add(n)})}return f}placeExternalLabels(){let e=this.w,t=this.externalLabelMaxLines*this.externalLabelLineH+2,n=this.centerY+e.globals.radialSize+e.globals.pieExternalLabelMarginY;[`left`,`right`].forEach(e=>{pa(this.externalLabels.filter(t=>t.side===e),t,n)})}addListeners(e,t,n){let r=new K(this.w,this.ctx);e.node.addEventListener(`mouseenter`,r.pathMouseEnter.bind(r,e)),e.node.addEventListener(`mouseleave`,r.pathMouseLeave.bind(r,e)),e.node.addEventListener(`mouseleave`,this.revertDataLabelsInner.bind(this)),typeof n==`number`&&(e.node.addEventListener(`mouseenter`,this.showHoverOutline.bind(this,n)),e.node.addEventListener(`mouseleave`,this.hideHoverOutline.bind(this))),e.node.addEventListener(`mousedown`,r.pathMouseDown.bind(r,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener(`mouseenter`,this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener(`mousedown`,this.printDataLabelsInner.bind(this,e.node,t)))}animatePaths(e,t){let n=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,i=r,a=t.startAngle,o=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(a=t.prevEndAngle,i=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(r+o>this.fullAngle?t.endAngle-=r+o:r+o<this.fullAngle&&(t.endAngle+=this.fullAngle-(r+o))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,a,o,r,i,t)}animateArc(e,t,n,r,i,a){let o=this,s=this.w,c=new Ne(this.w),l=a.size,u;(isNaN(t)||isNaN(i))&&(t=n,i=r,a.dur=0);let d=r,f=n,p=t<n?this.fullAngle+t-n:t-n,m=typeof a.prevSize==`number`;s.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(u=o.getPiePath({me:o,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:m?a.prevSize:l}),e.attr({d:u})),a.dur===0?(u=o.getPiePath({me:o,startAngle:f,angle:r,size:l}),a.isTrack||(s.globals.animationEnded=!0),e.node.setAttribute(`data:pathOrig`,u),e.attr({d:u,"stroke-width":o.strokeWidth})):e.animate(a.dur,a.animBeginArr[a.i]).after(function(){o.chartType!==`pie`&&o.chartType!==`donut`&&o.chartType!==`polarArea`||this.animate(s.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),a.i===s.config.series.length-1&&c.animationCompleted(e)}).during(s=>{d=p+(r-p)*s,a.animateStartingPos&&(d=i+(r-i)*s,f=t-i+(n-(t-i))*s),u=o.getPiePath({me:o,startAngle:f,angle:d,size:m?a.prevSize+(l-a.prevSize)*s:l}),e.node.setAttribute(`data:pathOrig`,u),e.attr({d:u})})}pieClicked(e,t){let n=this.w,r=!(t&&!1===t.animate),i=n.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`);if(!i)return;if(i.attr(`data:pieClicked`)===`true`)return i.attr({"data:pieClicked":`false`}),this.revertDataLabelsInner(),void this.offsetSlice(e,0,r);let a=n.dom.baseEl.getElementsByClassName(`apexcharts-pie-area`);Array.prototype.forEach.call(a,e=>{let t=e.getAttribute(`data:pieClicked`)===`true`;e.setAttribute(`data:pieClicked`,`false`),t&&this.offsetSlice(parseInt(e.getAttribute(`j`),10),0,r)}),n.interact.capturedDataPointIndex=e,i.attr(`data:pieClicked`,`true`),this.offsetSlice(e,this.getExpandOffset(),r)}getExpandOffset(){let e=this.w.config.plotOptions.pie;if(!e.expandOnClick||this.chartType===`polarArea`||G.drilldownBlocksSliceOffset(this.w))return 0;let t=Number(e.expandOffset);return Number.isFinite(t)&&t>0?t:0}getSliceMovers(e){let t=this.w.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`);return[t?t.node:null,this.sliceLabelGroups[e],this.externalLabelGroups[e],this.hoverOutlineIndex===e&&this.elHoverOutlinePath?this.elHoverOutlinePath.node:null].filter(
1800Boolean)}offsetSlice(e,t,n=!0){let r=this.w;if(!r.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`))return;let{dx:i,dy:a}=this.getSliceOffsetVector(e,t),o=`translate(${i} ${a})`,s=n&&r.config.chart.animations.enabled?`transform 320ms cubic-bezier(0.25, 0.8, 0.3, 1)`:``;this.getSliceMovers(e).forEach(e=>{e.style.transition=s,e.setAttribute(`transform`,o)})}getSliceOffsetVector(e,t){let n=this.w.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`),r=n?parseFloat(n.attr(`data:angle`)):NaN;if(!t||!Number.isFinite(r)||r>=this.fullAngle)return{dx:0,dy:0};let i=parseFloat(n.attr(`data:startAngle`)),a=Math.PI*(i+r/2-90)/180;return{dx:t*Math.cos(a),dy:t*Math.sin(a)}}showHoverOutline(e){let t=this.w;if(!G.hoverOutlineOwnsHoverState(t)||!this.elHoverOutline)return;let n=this.getHoverOutlinePath(e);if(!n)return;let r=t.config.plotOptions.pie.hoverOutline,i=r.color||t.globals.colors[e];if(!this.elHoverOutlinePath){let e=new K(t);this.elHoverOutlinePath=e.drawPath({d:n,fill:i,strokeWidth:0,classes:`apexcharts-pie-hover-outline-band`}),this.elHoverOutline.add(this.elHoverOutlinePath)}this.elHoverOutlinePath.attr({d:n,fill:i,"fill-opacity":r.opacity});let{dx:a,dy:o}=this.getSliceOffsetVector(e,this.isSliceOut(e)?this.getExpandOffset():0);this.elHoverOutlinePath.node.style.transition=``,this.elHoverOutlinePath.node.setAttribute(`transform`,`translate(${a} ${o})`),this.hoverOutlineIndex=e,this.elHoverOutline.node.style.opacity=`1`}hideHoverOutline(){this.elHoverOutline&&(this.elHoverOutline.node.style.opacity=`0`)}isSliceOut(e){let t=this.w.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`);return!!t&&t.attr(`data:pieClicked`)===`true`}getHoverOutlinePath(e){let t=this.w,n=t.config.plotOptions.pie.hoverOutline,r=t.dom.Paper.findOne(`.apexcharts-${this.chartType.toLowerCase()}-slice-${e}`);if(!r)return null;let i=parseFloat(r.attr(`data:angle`));if(!Number.isFinite(i)||i<=0)return null;let a=this.sliceSizes[e],o=Number(n.size);if(!Number.isFinite(a)||!Number.isFinite(o)||o<=0)return null;let{startDeg:l,spanDeg:u}=this.getSliceExtent({me:this,startAngle:parseFloat(r.attr(`data:startAngle`)),angle:i,size:a});if(!(u>0))return null;let d=a+(this.strokeWidth||0)/2+(Number(n.gap)||0),f=d+o,p={cx:this.centerX,cy:this.centerY,rIn:d,rOut:f,a0:l,a1:l+u,spanDeg:u},m=Math.min(o/2,u*Math.PI/180/2*d);return m>.5?va(c(s({},p),{r:m})):ya(p)}getChangedPath(e,t,n){let r=``;return this.dynamicAnim&&this.w.globals.dataChanged&&(r=this.getPiePath({me:this,startAngle:e,angle:t-e,size:typeof n==`number`?n:this.size})),r}getSliceExtent({me:e,startAngle:t,angle:n,size:r}){let i=this.w,a=t,o=n+t;Math.ceil(o)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01);let s=o-a,c=e.chartType===`pie`||e.chartType===`donut`||e.chartType===`polarArea`,l=i.config.plotOptions.pie.spacing;if(c&&l>0&&s>0){let t=e.chartType===`donut`?(r+e.donutSize)/2:r,n=t>0?l/t*(180/Math.PI):0,i=Math.min(n/2,Math.max(0,s/2-.5));a+=i,s-=2*i}return o=a+s,Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle),{startDeg:a,spanDeg:s,endDeg:o}}getPiePath({me:e,startAngle:t,angle:n,size:r}){let i,a=this.w,o=new K(this.w),{startDeg:s,spanDeg:c,endDeg:l}=this.getSliceExtent({me:e,startAngle:t,angle:n,size:r}),u=e.chartType===`pie`||e.chartType===`donut`||e.chartType===`polarArea`,d=Math.PI*(s-90)/180,f=a.config.plotOptions.pie.borderRadius;if(f>0&&u){let t=this.getRoundedSlicePath({me:e,startDeg:s,spanDeg:c,size:r,borderRadius:f});if(t)return t}let p=Math.PI*(l-90)/180,m=e.centerX+r*Math.cos(d),h=e.centerY+r*Math.sin(d),g=e.centerX+r*Math.cos(p),_=e.centerY+r*Math.sin(p),v=x.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),y=x.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),b=+(c>180),S=[`M`,m,h,`A`,r,r,0,b,1,g,_];return i=e.chartType===`donut`?[...S,`L`,v.x,v.y,`A`,e.donutSize,e.donutSize,0,b,0,y.x,y.y,`L`,m,h,`z`].join(` `):e.chartType===`pie`||e.chartType===`polarArea`?[...S,`L`,e.centerX,e.centerY,`L`,m,h].join(` `):[...S].join(` `),o.roundPathCorners(i,2*this.strokeWidth)}getRoundedSlicePath({me:e,startDeg:t,spanDeg:n,size:r,borderRadius:i}){if(!(n>0))return null;let a=Math.PI/180,o=e.centerX,s=e.centerY,c=e.chartType===`donut`,l=r,u=c?e.donutSize:0,d=n*a,f=i;if(f=Math.min(f,d*l/2),c?(f=Math.min(f,d*u/2),f=Math.min(f,(l-u)/2)):f=Math.min(f,l/2),!(f>.5))return null;let p=t,m=t+n;return c?va({cx:o,cy:s,rIn:u,rOut:l,a0:p,a1:m,r:f,spanDeg:n}):function({cx:e,cy:t,rOut:n,a0:r,a1:i,r:a,spanDeg:o}){let s=(n,r)=>_a(e,t,n,r),c=a/n*ga,l=s(n,r+c),u=s(n,i-c),d=+(o-2*c>180),f=s(n,i),p=s(n-a,i),m=s(n,r),h=s(n-a,r);return[`M`,$(l),`A`,n,n,0,d,1,$(u),`Q`,$(f),$(p),`L`,`${e} ${t}`,`L`,$(h),`Q`,$(m),$(l),`Z`].join(` `)}({cx:o,cy:s,rOut:l,a0:p,a1:m,r:f,spanDeg:n})}drawPolarElements(e){let t=this.w,n=new Ke(this.w),r=new K(this.w),i=new ma(this.w),a=r.group(),o=r.group(),s=n.niceScale(0,Math.ceil(this.maxY),0),c=s.result.reverse(),l=s.result.length;this.maxY=s.niceMax;let u=t.globals.radialSize,d=u/(l-1);for(let e=0;e<l-1;e++){let n=r.drawCircle(u);if(n.attr({cx:this.centerX,cy:this.centerY,fill:`none`,"stroke-width":t.config.plotOptions.polarArea.r
1800ings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){let n=i.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,e,c[e]);o.add(n)}a.add(n),u-=d}this.drawSpokes(e),e.add(a),e.add(o)}renderInnerDataLabels(e,t,n){let r=this.w,i=new K(this.w),a=t.total.show;e.node.innerHTML=``,e.node.style.opacity=n.opacity;let o=n.centerX,s=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6,c,l;c=t.name.color===void 0?r.globals.colors[0]:t.name.color;let u=t.name.fontSize,d=t.name.fontFamily,f=t.name.fontWeight;l=t.value.color===void 0?r.config.chart.foreColor:t.value.color;let p=t.value.formatter,m=``,h=``;if(a?(c=t.total.color,u=t.total.fontSize,d=t.total.fontFamily,f=t.total.fontWeight,h=this.donutDataLabels.total.label?t.total.label:``,m=t.total.formatter(r)):r.seriesData.series.length===1&&(m=p(r.seriesData.series[0],r),h=r.seriesData.seriesNames[0]),h&&(h=t.name.formatter(h,t.total.show,r)),t.name.show){let n=i.drawText({x:o,y:s+parseFloat(t.name.offsetY),text:h,textAnchor:`middle`,foreColor:c,fontSize:u,fontWeight:f,fontFamily:d});n.node.classList.add(`apexcharts-datalabel-label`),e.add(n)}if(t.value.show){let n=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,r=i.drawText({x:o,y:s+n,text:m,textAnchor:`middle`,foreColor:l,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});r.node.classList.add(`apexcharts-datalabel-value`),e.add(r)}return e}printInnerLabels(e,t,n,r){let i=this.w,a;r?a=e.name.color===void 0?i.globals.colors[parseInt(r.parentNode.getAttribute(`rel`),10)-1]:e.name.color:i.seriesData.series.length>1&&e.total.show&&(a=e.total.color);let o=i.dom.baseEl.querySelector(`.apexcharts-datalabel-label`),s=i.dom.baseEl.querySelector(`.apexcharts-datalabel-value`);n=(0,e.value.formatter)(n,i),r||typeof e.total.formatter!=`function`||(n=e.total.formatter(i));let c=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,c,i):``,o!==null&&(o.textContent=t),s!==null&&(s.textContent=n),o!==null&&(o.style.fill=a)}printDataLabelsInner(e,t){let n=this.w,r=e.getAttribute(`data:value`),i=n.seriesData.seriesNames[parseInt(e.parentNode.getAttribute(`rel`),10)-1];n.seriesData.series.length>1&&this.printInnerLabels(t,i,r,e);let a=n.dom.baseEl.querySelector(`.apexcharts-datalabels-group`);a!==null&&(a.style.opacity=`1`)}drawSpokes(e){let t=this.w,n=new K(this.w),r=t.config.plotOptions.polarArea.spokes;if(r.strokeWidth===0)return;let i=[],a=360/t.seriesData.series.length;for(let e=0;e<t.seriesData.series.length;e++)i.push(x.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+a*e));i.forEach((t,i)=>{let a=n.drawLine(t.x,t.y,this.centerX,this.centerY,Array.isArray(r.connectorColors)?r.connectorColors[i]:r.connectorColors);e.add(a)})}revertDataLabelsInner(){let e=this.w;if(this.donutDataLabels.show){let t=e.dom.Paper.findOne(`.apexcharts-datalabels-group`),n=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.dom.Paper.findOne(`.apexcharts-radialbar, .apexcharts-pie`).add(n)}}}function xa(e,t){let n=0;for(let t=0;t<e.length;t++)n+=e[t];let r=t/n,i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]*r;return i}function Sa(e,t,n,r){let i=r*r,a=n*n;return Math.max(i*t/a,a/(i*e))}function Ca(e,t,n,r,i,a){return e===0||Sa(t,n,r,a)>=Sa(Math.min(t,i),Math.max(n,i),r+i,a)}function wa(e,t,n,r,i,a,o,s){if(o>=s){let o=r/s,c=a;for(let r=0;r<n;r++){let n=t[r]/o;e.push([i,c,i+o,c+n]),c+=n}}else{let s=r/o,c=i;for(let r=0;r<n;r++){let n=t[r]/s;e.push([c,a,c+n,a+s]),c+=n}}}function Ta(e,t,n,r,i){let a=[],o=e.length;if(o===0)return a;let s=Array(o),c=0,l=0,u=1/0,d=-1/0,f=0;for(;f<o;){let o=Math.min(r,i),p=e[f];if(Ca(c,u,d,l,p,o))s[c]=p,c++,l+=p,p<u&&(u=p),p>d&&(d=p),f++;else{if(wa(a,s,c,l,t,n,r,i),r>=i){let e=l/i;t+=e,r-=e}else{let e=l/r;n+=e,i-=e}c=0,l=0,u=1/0,d=-1/0}}return c>0&&wa(a,s,c,l,t,n,r,i),a}function Ea(e){let t=e.children;if(t&&t.length){let n=0;for(let e=0;e<t.length;e++)n+=Ea(t[e]);return e._area=n,n}let n=Number(e.value),r=isNaN(n)?0:Math.abs(n);return e._area=r,r}function Da(e,t,n,r,i,a,o,s){let c=e.length;if(c===0||r<=0||i<=0)return;let l=Array(c),u=0;for(let t=0;t<c;t++)l[t]=e[t]._area,u+=l[t];if(u<=0)return;let d=Ta(xa(l,r*i),t,n,r,i);for(let t=0;t<c;t++){let n=e[t],r=d[t];if(!r)continue;n.rect=r,n.depth=a;let i=n.children;if(!i||!i.length)continue;let c=r[2]-r[0],l=r[3]-r[1],u=Math.max(0,o(n,a,c,l)||0);(2*u>=c||2*u>=l)&&(u=0);let f=Math.max(0,s(n,a,c,l)||0);f>0&&l-2*u-f<f&&(f=0),n.headerHeight=f,Da(i,r[0]+u,r[1]+f+u,c-2*u,l-f-2*u,a+1,o,s)}}let Oa={generate:function(e,t,n){let r=e.length,i=Array(r);for(let t=0;t<r;t++){let n=0,r=e[t];for(let e=0;e<r.length;e++)n+=r[e];i[t]=n}let a=Ta(xa(i,t*n),0,0,t,n),o=Array(r);for(let t=0;t<r;t++){let n=a[t],r=n[0],i=n[1],s=n[2]-r,c=n[3]-i;o[t]=Ta(xa(e[t],s*c),r,i,s,c)}return o},generateNested:function(e,t,n,r={}){if(!Array.isArray(e)||e.length===0)return e||[];let i=r.padding||(()=>0),a=r.header||(()=>0);for(let t=0;t<e.length;t++)Ea(e[t]);return Da(e,0,0,t,n,0,i,a),e}},ka=Math.PI*(3-Math.sqrt(5));function Aa(e){return 1-Math.pow(1-e,3)}function ja(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function Ma(e,t){let[n,r]=(a=Lr[(i=e)==null?`crisp`:i])==null?Lr.crisp:a;var i,a;let o=800/Math.max(1,t);
1800return[n*o*o,r*o]}let Na=Math.PI/180,Pa=180/Math.PI,Fa=`http://www.w3.org/2000/svg`,Ia=`http://www.w3.org/1999/xhtml`,La=(e,t,n)=>e+(t-e)*n;return Gr.use({line:da,area:da,scatter:da,bubble:da,rangeArea:da,bar:Yi,column:Yi,barStacked:class extends Yi{draw(e,t){let n=this.w;this.graphics=new K(this.w),this.bar=new Yi(this.w,this.ctx,this.xyRatios);let r=new V(this.w);e=r.getLogSeries(e),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),n.config.chart.stackType===`100%`&&(e=n.globals.comboCharts?t.map(e=>n.globals.seriesPercent[e]):n.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);let i=this.graphics.group({class:`apexcharts-bar-series apexcharts-plot-series`}),a=0,o=0,l=n.config.chart.animations,u=l.enabled&&l.dynamicAnimation.enabled&&n.globals.previousPaths.length>0,d=!1;for(let r=0,l=0;r<e.length;r++,l++){let f=n.globals.comboCharts?t[r]:r,{groupIndex:p,columnGroupIndex:m}=this.barHelpers.getGroupIndex(f);this.groupCtx=this[n.labelData.seriesGroups[p]];let h=[],g=[],_=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[f][0],_=f),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;let v=this.graphics.group({class:`apexcharts-series`,seriesName:x.escapeString(n.seriesData.seriesNames[f]),rel:r+1,"data:realIndex":f});q.addCollapsedClassToSeries(this.w,v,f);let y=this.graphics.group({class:`apexcharts-datalabels`,"data:realIndex":f});q.addCollapsedClassToSeries(this.w,y,f),(n.globals.collapsingSeriesIndices||[]).indexOf(f)>-1&&y.node.style.setProperty(`--apexcharts-dl-exit`,`${n.config.chart.animations.dynamicAnimation.speed}ms`);let b=this.graphics.group({class:`apexcharts-bar-goals-markers`}),S=this.initialPositions(a,o,void 0,void 0,void 0,void 0,_),{xDivision:C,yDivision:w,zeroH:T,zeroW:E}=S,D=S.barHeight,O=S.barWidth;o=S.y,a=S.x,n.globals.barHeight=D,n.globals.barWidth=O,this.barHelpers.initializeStackedXYVars(this),this.groupCtx.prevY.length===1&&this.groupCtx.prevY[0].every(e=>isNaN(e))&&(this.groupCtx.prevY[0]=this.groupCtx.prevY[0].map(()=>T),this.groupCtx.prevYF[0]=this.groupCtx.prevYF[0].map(()=>0));for(let t=0;t<n.globals.dataPoints;t++){let i=this.barHelpers.getStrokeWidth(r,t,f),x={indexes:{i:r,j:t,realIndex:f,translationsIndex:_,bc:l},strokeWidth:i,x:a,y:o,elSeries:v,columnGroupIndex:m,seriesGroup:n.labelData.seriesGroups[p]},S=null;this.isHorizontal?(S=this.drawStackedBarPaths(c(s({},x),{zeroW:E,barHeight:D,yDivision:w})),O=this.series[r][t]/this.invertedYRatio):(S=this.drawStackedColumnPaths(c(s({},x),{xDivision:C,barWidth:O,zeroH:T})),D=this.series[r][t]/this.yRatio[_]);let k=this.barHelpers.drawGoalLine({barXPosition:S.barXPosition,barYPosition:S.barYPosition,goalX:S.goalX,goalY:S.goalY,barHeight:D,barWidth:O});k&&b.add(k),o=S.y,a=S.x,h.push(a),g.push(o);let A=this.barHelpers.getPathFillColor(e,r,t,f),j=``,M=n.globals.isBarHorizontal?`apexcharts-flip-x`:`apexcharts-flip-y`,N=this.barHelpers.arrBorderRadius[f][t]===`bottom`&&n.seriesData.series[f][t]>0||this.barHelpers.arrBorderRadius[f][t]===`top`&&n.seriesData.series[f][t]<0,P=u&&!N&&this.getPreviousFlip(f,t);(N||P)&&(j=M),P&&(j+=` apexcharts-flip-held`,d=!0),v=this.renderSeries(c(s({realIndex:f,pathFill:A.color},A.useRangeColor?{lineFill:A.color}:{}),{j:t,i:r,columnGroupIndex:m,pathFrom:S.pathFrom,pathTo:S.pathTo,strokeWidth:i,elSeries:v,x:a,y:o,series:e,barHeight:D,barWidth:O,elDataLabelsWrap:y,elGoalsMarkers:b,type:`bar`,visibleSeries:m,classes:j}))}n.globals.seriesXvalues[f]=h,n.globals.seriesYvalues[f]=g,this.groupCtx.prevY.push(this.groupCtx.yArrj),this.groupCtx.prevYF.push(this.groupCtx.yArrjF),this.groupCtx.prevYVal.push(this.groupCtx.yArrjVal),this.groupCtx.prevX.push(this.groupCtx.xArrj),this.groupCtx.prevXF.push(this.groupCtx.xArrjF),this.groupCtx.prevXVal.push(this.groupCtx.xArrjVal),i.add(v)}return d&&this.settleHeldMirrors(),i}settleHeldMirrors(){let e=this.w;if(!d.isBrowser())return;let t=e.config.chart.animations,n=(t.dynamicAnimation.speed||0)+(t.speed||0)+100;setTimeout(()=>{!e.globals.isDestroyed&&x.elementExists(e.dom.baseEl)&&e.dom.baseEl.querySelectorAll(`.apexcharts-flip-held`).forEach(e
1800=>{e.classList.remove(`apexcharts-flip-held`,`apexcharts-flip-y`,`apexcharts-flip-x`)})},n)}initialPositions(e,t,n,r,i,a,o){let s=this.w,c,l;if(this.isHorizontal){r=s.layout.gridHeight/s.globals.dataPoints;let e=s.config.plotOptions.bar.barHeight;c=String(e).indexOf(`%`)===-1?parseInt(e,10):r*parseInt(e,10)/100,a=s.globals.padHorizontal+(this.isReversed?s.layout.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(r-c)/2}else{l=n=s.layout.gridWidth/s.globals.dataPoints;let t=s.config.plotOptions.bar.columnWidth;s.axisFlags.isXNumeric&&s.globals.dataPoints>1?l=(n=s.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:String(t).indexOf(`%`)===-1?l=parseInt(t,10):l*=parseInt(t,10)/100,i=this.isReversed?this.baseLineY[o]:s.layout.gridHeight-this.baseLineY[o],e=s.globals.padHorizontal+(n-l)/2}let u=s.globals.barGroups.length||1;return{x:e,y:t,yDivision:r,xDivision:n,barHeight:(c==null?0:c)/u,barWidth:(l==null?0:l)/u,zeroH:i,zeroW:a}}drawStackedBarPaths({indexes:e,barHeight:t,strokeWidth:n,zeroW:r,x:i,y:a,columnGroupIndex:o,seriesGroup:s,yDivision:c,elSeries:l}){var u,d,f,p,m;let h=this.w,g=a+o*t,_,v=e.i,y=e.j,b=e.realIndex,x=e.translationsIndex,S=0;for(let e=0;e<this.groupCtx.prevXF.length;e++)S+=this.groupCtx.prevXF[e][y];let C=v;if(h.config.series[b].name&&(C=s.indexOf(h.config.series[b].name)),C>0){let e=r;this.groupCtx.prevXVal[C-1][y]<0?e=((u=this.series[v])==null?void 0:u[y])>=0?this.groupCtx.prevX[C-1][y]+S-2*(this.isReversed?S:0):this.groupCtx.prevX[C-1][y]:this.groupCtx.prevXVal[C-1][y]>=0&&(e=((d=this.series[v])==null?void 0:d[y])>=0?this.groupCtx.prevX[C-1][y]:this.groupCtx.prevX[C-1][y]-S+2*(this.isReversed?S:0)),_=e}else _=r;i=((f=this.series[v])==null?void 0:f[y])===null?_:_+((p=this.series[v])==null?void 0:p[y])/this.invertedYRatio-2*(this.isReversed?((m=this.series[v])==null?void 0:m[y])/this.invertedYRatio:0);let w=this.barHelpers.getBarpaths({barYPosition:g,barHeight:t,x1:_,x2:i,strokeWidth:n,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,seriesGroup:s,i:v,j:y,w:h});return this.barHelpers.barBackground({j:y,i:v,y1:g,y2:t,elSeries:l}),a+=c,{pathTo:w.pathTo,pathFrom:w.pathFrom,goalX:this.barHelpers.getGoalValues(`x`,r,null,b,y,x),barXPosition:_,barYPosition:g,x:i,y:a}}drawStackedColumnPaths({indexes:e,x:t,y:n,xDivision:r,barWidth:i,zeroH:a,columnGroupIndex:o,seriesGroup:s,elSeries:c}){var l,u,d,f,p,m,h,g,_;let v=this.w,y=e.i,b=e.j,x=e.bc,S=e.realIndex,C=e.translationsIndex;if(v.axisFlags.isXNumeric){let e=v.seriesData.seriesX[S][b];e||(e=0),t=(e-v.globals.minX)/this.xRatio-i/2*v.globals.barGroups.length}let w=t+o*i,T,E=0;for(let e=0;e<this.groupCtx.prevYF.length;e++)E+=isNaN(this.groupCtx.prevYF[e][b])?0:this.groupCtx.prevYF[e][b];let D=y;if(s&&(D=s.indexOf(v.seriesData.seriesNames[S])),D>0&&!v.axisFlags.isXNumeric||D>0&&v.axisFlags.isXNumeric&&v.seriesData.seriesX[S-1][b]===v.seriesData.seriesX[S][b]){let e,t,n=Math.min(this.yRatio.length+1,S+1);if(this.groupCtx.prevY[D-1]!==void 0&&this.groupCtx.prevY[D-1].length){for(let e=1;e<n;e++)if(!isNaN((l=this.groupCtx.prevY[D-e])==null?void 0:l[b])){t=this.groupCtx.prevY[D-e][b];break}}for(let r=1;r<n;r++){if(((u=this.groupCtx.prevYVal[D-r])==null?void 0:u[b])<0){e=((d=this.series[y])==null?void 0:d[b])>=0?t-E+2*(this.isReversed?E:0):t;break}if(((f=this.groupCtx.prevYVal[D-r])==null?void 0:f[b])>=0){e=((p=this.series[y])==null?void 0:p[b])>=0?t:t+E-2*(this.isReversed?E:0);break}}e===void 0&&(e=v.layout.gridHeight),T=(m=this.groupCtx.prevYF[0])!=null&&m.every(e=>e===0)&&this.groupCtx.prevYF.slice(1,D).every(e=>e.every(e=>isNaN(e)))?a:e}else T=a;n=(h=this.series[y])!=null&&h[b]?T-((g=this.series[y])==null?void 0:g[b])/this.yRatio[C]+2*(this.isReversed?((_=this.series[y])==null?void 0:_[b])/this.yRatio[C]:0):T;let O=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:i,y1:T,y2:n,yRatio:this.yRatio[C],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:s,realIndex:e.realIndex,i:y,j:b,w:v});return this.barHelpers.barBackground({bc:x,j:b,i:y,x1:w,x2:i,elSeries:c}),{pathTo:O.pathTo,pathFrom:O.pathFrom,goalY:this.barHelpers.getGoalValues(`y`,null,a,S,b,0),barXPosition:w,x:v.axisFlags.isXNumeric?t:t+r,y:n}}},rangeBar:class extends Yi{draw(e,t){var n,r,i,a,o,c,l,u,d;let f=this.w,p=new K(this.w);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=f.rangeData.seriesRangeStart,this.seriesRangeEnd=f.rangeData.seriesRangeEnd,this.barHelpers.initVariables(e);let m=p.group({class:`apexcharts-rangebar-series apexcharts-plot-series`});for(let h=0;h<e.length;h++){let g,_,v=f.globals.comboCharts?t[h]:h,{columnGroupIndex:y}=this.barHelpers.getGroupIndex(v),b=p.group({class:`apexcharts-series`,seriesName:x.escapeString(f.seriesData.seriesNames[v]),rel:h+1,"data:realIndex":v});q.addCollapsedClassToSeries(this.w,b,v),e[h].length>0&&(this.visibleI+=1);let S=0;this.yRatio.length>1&&(this.yaxisIndex=f.globals.seriesYAxisReverseMap[v][0],S=v);let C=this.barHelpers.initialPositions(v),{y:w,zeroW:T,x:E,zeroH:D}=C,O=(n=C.barWidth)==null?0:n,k=(r=C.barHeight)==null?0:r,A=(i=C.yDivision)==null?0:i,j=(a=C.xDivision)==null?0:a;_=w,g=E;let M=p.group({class:`apexcharts-datalabels`,"data:realIndex":v}),N=p.group({class:`apexcharts-rangebar-goals-markers`});for(let t=0;t<f.globals.dataPoints;t++){let n=this.barHelpers.getStrokeWidth(h,t,v),r=this.seriesRangeStart[h][t],i=this.seriesRangeEnd[h][t],a=null,p=null,m=null,x={x:g,y:_,strokeWidth:n,elSeries:b},w=this.seriesLen;if(f.config.plotOptions.bar.rangeBarGroupRows&&(w=1),((o=f.config.series[h].data)==null?void 0:o[t])===void 0)break;if(this.isHorizontal){m=_+k*this.visibleI;let e=(A-k*w)/2;if((l=(c=f.config.series[h].data)==null?void 0:c[t])!=null&&l.x){let n=this.detectOverlappingBars({i:h,j:t,barYPosition:m,srty:e,barHeight:k,yDivision:A,initPositions:C});k=n.barHeight,m=n.barYPosition}a=this.drawRangeBarPaths(s({indexes:{i:h,j:t,realIndex:v},barHeight:k,barYPosition:m,zeroW:T,yDivision:A,y1:r,y2:i},x)),O=a.barWidth}else{f.axisFlags.isXNumeric&&(g=(f.seriesData.seriesX[h][t]-f.globals.minX)/this.xRatio-O/2),p=g+O*this.visibleI;let e=(j-O*w)/2;if((d=(u=f.config.series[h].data)==null?void 0:u[t])!=null&&d.x){let n=this.detectOverlappingBars({i:h,j:t,barXPosition:p,srtx:e,barWidth:O,xDivision:j,initPositions:C});O=n.barWidth,p=n.barXPosition}a=this.drawRangeColumnPaths(s({indexes:{i:h,j:t,realIndex:v,translationsIndex:S},barWidth:O,barXPosition:p,zeroH:D,xDivision:j},x)),k=a.barHeight}let E=this.barHelpers.drawGoalLine({barXPosition:a.barXPosition,barYPosition:m,goalX:a.goalX,goalY:a.goalY,barHeight:k,barWidth:O});E&&N.add(E),_=a.y,g=a.x;let P=this.barHelpers.getPathFillColor(e,h,t,v);this.renderSeries({realIndex:v,pathFill:P.color,lineFill:P.useRangeColor?P.color:f.globals.stroke.colors[v],j:t,i:h,x:g,y:_,y1:r,y2:i,pathFrom:a.pathFrom,pathTo:a.pathTo,strokeWidth:n,elSeries:b,series:e,barHeight:k,barWidth:O,barXPosition:p,barYPosition:m,columnGroupIndex:y,elDataLabelsWrap:M,elGoalsMarkers:N,visibleSeries:this.visibleI,type:`rangebar`})}m.add(b)}return m}detectOverlappingBars({i:e,j:t,barYPosition:n,barXPosition:r,srty:i,srtx:a,barHeight:o,barWidth:s,yDivision:c,xDivision:l,initPositions:u}){var d,f,p,m;let h=this.w,g=[],_=(f=(d=h.globals.seriesRangeName)==null?void 0:d[e])==null?void 0:f[t],v=(m=(p=h.config.series[e].data)==null?void 0:p[t])==null?void 0:m.x,y=Array.isArray(v)?v.join(` `):v,b=h.labelData.labels.map(e=>Array.isArray(e)?e.join(` `):e).indexOf(y),x=h.rangeData.seriesRange[e].findIndex(e=>{var t;return e.x===y&&((t=e.overlaps)==null?void 0:t.size)>0});return this.isHorizontal?(n=h.config.plotOptions.bar.rangeBarGroupRows?i+c*b:i+o*this.visibleI+c*b,x>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(g=Array.from(h.rangeData.seriesRange[e][x].overlaps),g.indexOf(_)>-1&&(n=(o=u.barHeight/g.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(_))+c*b))):(b>-1&&!h.labelData.timescaleLabels.length&&(r=h.config.plotOptions.bar.rangeBarGroupRows?a+l*b:a+s*this.visibleI+l*b),x>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(g=Array.from(h.rangeData.seriesRange[e][x].overlaps),g.indexOf(_)>-1&&(r=(s=u.barWidth/g.length)*this.visibleI+l*(100-parseInt(this.barOptions.barWidth,10))/100/2+s*(this.visibleI+g.indexOf(_))+l*b))),{barYPosition:n,barXPosition:r,barHeight:o,barWidth:s}}drawRangeColumnPaths({indexes:e,x:t,xDivision:n,barWidth:r,barXPosition:i,zeroH:a}){var o,s;let c=this.w,{i:l,j:u,realIndex:d,translationsIndex:f}=e,p=this.yRatio[f],m=this.getRangeValue(d,u),h=Math.min(m.start,m.end),g=Math.max(m.start,m.end);((o=this.series[l])==null?void 0:o[u])===void 0||((s=this.series[l])==null?void 0:s[u])===null?h=a:(h=a-h/p,g=a-g/p);let _=Math.abs(g-h),v=this.barHelpers.getColumnPaths({barXPosition:i,barWidth:r,y1:h,y2:g,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:d,i:d,j:u,w:c});if(c.axisFlags.isXNumeric){let e=this.getBarXForNumericXAxis({x:t,j:u,realIndex:d,barWidth:r});t=e.x,i=e.barXPosition}else t+=n;return{pathTo:v.pathTo,pathFrom:v.pathFrom,barHeight:_,x:t,y:m.start<0&&m.end<0?h:g,goalY:this.barHelpers.getGoalValues(`y`,null,a,d,u,f),barXPosition:i}}preventBarOverflow(e){let t=this.w;return e<0&&(e=0),e>t.layout.gridWidth&&(e=t.layout.gridWidth),e}drawRangeBarPaths({indexes:e,y:t,y1:n,y2:r,yDivision:i,barHeight:a,barYPosition:o,zeroW:s}){let c=this.w,{realIndex:l,j:u}=e,d=this.preventBarOverflow(s+n/this.invertedYRatio),f=this.preventBarOverflow(s+r/this.invertedYRatio),p=this.getRangeValue(l,u),m=Math.abs(f-d),h=this.barHelpers.getBarpaths({barYPosition:o,barHeight:a,x1:d,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:l,realIndex:l,j:u,w:c});return c.axisFlags.isXNumeric||(t+=i),{pathTo:h.pathTo,pathFrom:h.pathFrom,barWidth:m,x:p.start<0&&p.end<0?d:f,goalX:this.barHelpers.getGoalValues(`x`,s,null,l,u,0),y:t}}getRangeValue(e,t){let n=this.w;return{start:n.rangeData.seriesRangeStart[e][t],end:n.rangeData.seriesRangeEnd[e][t]}}},candlestick:ra,boxPlot:ra,violin:class extends Yi{draw(e,t,n){let r=this.w,i=new K(this.w),a=new Pe
1800(this.w);this.violinOptions=r.config.plotOptions.violin,this.pointsOptions=this.violinOptions.points,this.bandwidthScale=this.violinOptions.bandwidthScale||1,this.normalize=this.violinOptions.normalize||`individual`,this.distributed=r.config.plotOptions.bar.distributed,this.isHorizontal=r.config.plotOptions.bar.horizontal,this.coreUtils=new V(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);let o=i.group({class:`apexcharts-violin-series apexcharts-plot-series`});for(let t=0;t<e.length;t++){let s,c,l=[],u=[],d=r.globals.comboCharts?n[t]:t,{columnGroupIndex:f}=this.barHelpers.getGroupIndex(d),p=i.group({class:`apexcharts-series`,seriesName:x.escapeString(r.seriesData.seriesNames[d]),rel:t+1,"data:realIndex":d});q.addCollapsedClassToSeries(this.w,p,d),e[t].length>0&&(this.visibleI+=1);let m=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[d][0],m=d);let{y:h,barHeight:g,yDivision:_,zeroW:v,x:y,barWidth:b,xDivision:S,zeroH:C}=this.barHelpers.initialPositions(d);c=h,s=y,u.push(s+(b==null?0:b)/2);let w=i.group({class:`apexcharts-datalabels`,"data:realIndex":d});this.seriesMaxWeight=0,this.normalize===`group`&&(r.violinData.seriesViolinDensity[d]||[]).forEach(e=>{e&&e.maxWeight>this.seriesMaxWeight&&(this.seriesMaxWeight=e.maxWeight)});let T=[];for(let n=0;n<r.globals.dataPoints;n++){let i=this.barHelpers.getStrokeWidth(t,n,d),o=this.isHorizontal?this.drawHorizontalViolin({indexes:{i:t,j:n,realIndex:d,translationsIndex:m},y:c,yDivision:_,barHeight:g,zeroW:v}):this.drawVerticalViolin({indexes:{i:t,j:n,realIndex:d,translationsIndex:m},x:s,xDivision:S,barWidth:b,zeroH:C});s=o.x,c=o.y,n>0&&u.push(o.center),l.push(o.alongRepresentative);let h=this.buildPointsSubPath({realIndex:d,j:n,center:o.center,halfExtent:o.halfExtent,alongFn:o.alongFn,density:o.density,maxWeight:o.maxWeight});h.length&&T.push({groups:h,j:n});let y=a.fillPath({seriesNumber:this.distributed?n:d,dataPointIndex:n,color:this.distributed?r.globals.colors[n]:void 0,value:e[t][n]});this.renderSeries({realIndex:d,pathFill:y,lineFill:r.globals.stroke.colors[d],j:n,i:t,pathFrom:o.pathFrom,pathTo:o.pathTo,strokeWidth:i,elSeries:p,x:s,y:c,series:e,columnGroupIndex:f,barHeight:g,barWidth:b,elDataLabelsWrap:w,visibleSeries:this.visibleI,type:`violin`});let x=p.node.querySelector(`path.apexcharts-violin-area[j='${n}']`);x&&isFinite(o.alongRepresentative)&&x.setAttribute(this.isHorizontal?`cx`:`cy`,`${o.alongRepresentative}`)}
1800Zi({graphics:i,w:r,elSeries:p,pointsByCat:T,options:this.pointsOptions,distributed:this.distributed,realIndex:d,wrapClass:`apexcharts-violin-points-wrap`,pointClass:`apexcharts-violin-points`}),r.globals.seriesXvalues[d]=u,r.globals.seriesYvalues[d]=l,o.add(p)}return o}drawVerticalViolin({indexes:e,x:t,xDivision:n,barWidth:r,zeroH:i}){var a,o,s;let c=this.w,{realIndex:l,j:u,translationsIndex:d}=e,f=this.yRatio[d];c.axisFlags.isXNumeric&&(t=(c.seriesData.seriesX[l][u]-c.globals.minX)/this.xRatio-r/2);let p=t+r*this.visibleI+r/2,m=r/2,h=this.getDensity(l,u),g=this.effectiveMaxWeight(h),_=e=>i-this.logVal(e,l)/f,v=this.buildBodyPath({nodes:h.nodes,center:p,halfExtent:m,maxWeight:g,vertical:!0,alongFn:_,collapsed:!1}),y=null,b=(o=(a=this.ctx)==null?void 0:a.morphTypeChange)==null?void 0:o.getInitialPathFor(l,u);return b?y=b:c.globals.previousPaths.length>0&&(y=this.getPreviousPath(l,u,v)),y==null&&(y=this.buildBodyPath({nodes:h.nodes,center:p,halfExtent:m,maxWeight:g,vertical:!0,alongFn:_,collapsed:!0})),c.axisFlags.isXNumeric||(t+=n),{pathTo:v,pathFrom:y,x:t,y:i,center:p,halfExtent:m,alongFn:_,density:h,maxWeight:g,alongRepresentative:_((s=this.series[e.i][u])==null?0:s)}}drawHorizontalViolin({indexes:e,y:t,yDivision:n,barHeight:r,zeroW:i}){var a,o,s;let c=this.w,{realIndex:l,j:u}=e,d=this.invertedYRatio;c.axisFlags.isXNumeric&&(t=(c.seriesData.seriesX[l][u]-c.globals.minX)/this.invertedXRatio-r/2);let f=t+r*this.visibleI+r/2,p=r/2,m=this.getDensity(l,u),h=this.effectiveMaxWeight(m),g=e=>i+this.logVal(e,l)/d,_=this.buildBodyPath({nodes:m.nodes,center:f,halfExtent:p,maxWeight:h,vertical:!1,alongFn:g,collapsed:!1}),v=null,y=(o=(a=this.ctx)==null?void 0:a.morphTypeChange)==null?void 0:o.getInitialPathFor(l,u);return y?v=y:c.globals.previousPaths.length>0&&(v=this.getPreviousPath(l,u,_)),v==null&&(v=this.buildBodyPath({nodes:m.nodes,center:f,halfExtent:p,maxWeight:h,vertical:!1,alongFn:g,collapsed:!0})),c.axisFlags.isXNumeric||(t+=n),{pathTo:_,pathFrom:v,x:i,y:t,center:f,halfExtent:p,alongFn:g,maxWeight:h,density:m,alongRepresentative:g((s=this.series[e.i][u])==null?0:s)}}getDensity(e,t){var n;let r=(n=this.w.violinData.seriesViolinDensity[e])==null?void 0:n[t];if(!r||!r.values.length)return{nodes:[],maxWeight:0};let i=r.values.map((e,t)=>t);i.sort((e,t)=>r.values[e]-r.values[t]);let a=[],o=null;for(let e of i){let t=r.values[e];o!==null&&t===o||(a.push({v:t,w:r.weights[e]}),o=t)}return{nodes:a,maxWeight:r.maxWeight}}effectiveMaxWeight(e){return this.normalize===`group`&&this.seriesMaxWeight>0?this.seriesMaxWeight:e.maxWeight}buildBodyPath({nodes:e,center:t,halfExtent:n,maxWeight:r,vertical:i,alongFn:a,collapsed:o}){let s=new K(this.w);if(e.length===0){let e=a(0);return i?s.move(t,e)+s.line(t,e):s.move(e,t)+s.line(e,t)}let c=e=>{if(o||r<=0)return 0;let t=e/r*n*this.bandwidthScale;return Math.min(n,Math.max(0,t))},l=[],u=[];for(let n=0;n<e.length;n++){let r=a(e[n].v),o=c(e[n].w);i?(l.push([t+o,r]),u.push([t-o,r])):(l.push([r,t+o]),u.push([r,t-o]))}return u.reverse(),this.smoothSegment(l,i,!1)+this.smoothSegment(u,i,!0)+`z`}smoothSegment(e,t,n){let r=new K(this.w),i=e[0],a=n?r.line(i[0],i[1]):r.move(i[0],i[1]);if(e.length<3||!this.strictlyMonotonic(e,t)){for(let t=1;t<e.length;t++)a+=r.line(e[t][0],e[t][1]);return a}let o=e.map(([e,n])=>t?[n,e]:[e,n]),s=oa.points(o),c=t?s.map(ca):s;return a+=aa(c),a}strictlyMonotonic(e,t){let n=+!!t;for(let t=1;t<e.length;t++)if(e[t][n]===e[t-1][n])return!1;return!0}buildPointsSubPath({realIndex:e,j:t,center:n,halfExtent:r,alongFn:i,density:a,maxWeight:o}){var s;return Xi({w:this.w,points:(s=this.w.violinData.seriesViolinPoints[e])==null?void 0:s[t],seedA:e,seedB:t,center:n,halfExtent:r,alongFn:i,isHorizontal:this.isHorizontal,options:this.pointsOptions,clampAt:e=>this.halfWidthAtValue(e,a,r,o)})}halfWidthAtValue(e,t,n,r){let{nodes:i}=t,a=r==null?t.maxWeight:r;if(!i.length||a<=0)return 0;let o=e=>Math.min(n,e/a*n*this.bandwidthScale);if(e<=i[0].v)return o(i[0].w);if(e>=i[i.length-1].v)return o(i[i.length-1].w);for(let t=1;t<i.length;t++)if(e<=i[t].v){let n=i[t-1],r=i[t],a=r.v===n.v?0:(e-n.v)/(r.v-n.v);return o(n.w+(r.w-n.w)*a)}return 0}logVal(e,t){return this.coreUtils.getLogValAtSeriesIndex(e,t)}},pie:ba,donut:ba,polarArea:ba,radialBar:class extends ba{constructor(e,t){super(e,t),this.ctx=t,this.w=e,this.animBeginArr=[0],this.animDur=0,this.startAngle=e.config.plotOptions.radialBar.startAngle,this.endAngle=e.config.plotOptions.radialBar.endAngle,this.totalAngle=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),this.trackStartAngle=e.config.plotOptions.radialBar.track.startAngle,this.trackEndAngle=e.config.plotOptions.radialBar.track.endAngle,this.barLabels=this.w.config.plotOptions.radialBar.barLabels,this.donutDataLabels=this.w.config.plotOptions.radialBar.dataLabels,this.radialDataLabels=this.donutDataLabels,this.trackStartAngle||(this.trackStartAngle=this.startAngle),this.trackEndAngle||(this.trackEndAngle=this.endAngle),this.endAngle===360&&(this.endAngle=359.99),this.margin=parseInt(e.config.plotOptions.radialBar.track.margin,10),this.onBarLabelClick=this.onBarLabelClick.bind(this)}draw(e){var t;let n=this.w,r=new K(this.w),i=r.group({class:`apexcharts-radialbar`});if(n.globals.noData)return i;let a=r.group(),o=this.defaultSize/2,s=n.layout.gridWidth/2,c=this.defaultSize/2.05;n.config.chart.sparkline.enabled||(c=c-n.config.stroke.width-n.config.chart.dropShadow.blur);
1800let l=n.globals.fill.colors,u=n.config.plotOptions.radialBar,f=Array.isArray(u.bands)&&u.bands.length>0,p=f&&u.bandsStyle&&u.bandsStyle.hideTrackWhenPresent,m=u.shape===`needle`;if(u.track.show&&!p){let t=this.drawTracks({size:c,centerX:s,centerY:o,colorArr:l,series:e});a.add(t)}if(f){let t=this.drawBands({size:c,centerX:s,centerY:o,series:e});a.add(t)}let h=this.drawArcs({size:c,centerX:s,centerY:o,colorArr:l,series:e,skipValueArc:m&&!((t=u.needle)!=null&&t.showValueArc)});if(u.ticks&&u.ticks.show){let t=this.drawTicks({size:c,centerX:s,centerY:o,series:e});if(this.initialAnim&&!n.globals.dataChanged&&!n.globals.resized&&d.isBrowser()&&n.globals.shouldAnimate){let e=t.node;e.style.opacity=`0`,e.style.transition=`opacity 280ms ease-out`;let r=n.config.chart.animations.speed||800;setTimeout(()=>{e.style.opacity=`1`},r)}a.add(t)}if(m){let t=this.drawNeedle({size:c,centerX:s,centerY:o,series:e});a.add(t)}let g=360;n.config.plotOptions.radialBar.startAngle<0&&(g=this.totalAngle);let _=(360-g)/360;if(n.globals.radialSize=c-c*_,this.radialDataLabels.value.show){let e=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);n.globals.radialSize+=e*_}return a.add(h.g),n.config.plotOptions.radialBar.hollow.position===`front`&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),i.add(a),i}drawTracks(e){let t=this.w,n=new K(this.w),r=n.group({class:`apexcharts-tracks`}),i=new G(this.w),a=new Pe(this.w),o=this.getStrokeWidth(e);e.size-=o/2;for(let s=0;s<e.series.length;s++){let c=n.group({class:`apexcharts-radialbar-track apexcharts-track`});r.add(c),c.attr({rel:s+1}),e.size=e.size-o-this.margin;let l=t.config.plotOptions.radialBar.track,u=a.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(l.background)?l.background[s]:l.background,solid:!0}),d=this.trackStartAngle,f=this.trackEndAngle;Math.abs(f)+Math.abs(d)>=360&&(f=360-Math.abs(this.startAngle)-.1);let p=n.drawPath({d:``,stroke:u,strokeWidth:o*parseInt(l.strokeWidth,10)/100,fill:`none`,strokeOpacity:l.opacity,classes:`apexcharts-radialbar-area`});if(l.dropShadow.enabled){let e=l.dropShadow;i.dropShadow(p,e)}c.add(p),p.attr(`id`,`apexcharts-radialbarTrack-`+s),this.animatePaths(p,{centerX:e.centerX,centerY:e.centerY,endAngle:f,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return r}drawArcs(e){var t;let n=this.w,r=new K(this.w),i=new Pe(this.w),a=new G(this.w),o=r.group(),s=this.getStrokeWidth(e);e.size-=s/2;let c=n.config.plotOptions.radialBar.hollow.background,l=e.size-s*e.series.length-this.margin*e.series.length-s*parseInt(n.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,u=l-n.config.plotOptions.radialBar.hollow.margin;n.config.plotOptions.radialBar.hollow.image!==void 0&&(c=this.drawHollowImage(e,o,l,c));let d=this.drawHollow({size:u,centerX:e.centerX,centerY:e.centerY,fill:c||`transparent`});if(n.config.plotOptions.radialBar.hollow.dropShadow.enabled){let e=n.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(d,e)}let f=1;!this.radialDataLabels.total.show&&n.seriesData.series.length>1&&(f=0);let p=null;if(this.radialDataLabels.show){let t=n.dom.Paper.findOne(`.apexcharts-datalabels-group`);p=this.renderInnerDataLabels(t,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:f})}n.config.plotOptions.radialBar.hollow.position===`back`&&(o.add(d),p&&o.add(p));let m=!1;n.config.plotOptions.radialBar.inverseOrder&&(m=!0);let h=!0===((t=this.ctx.morphTypeChange)==null?void 0:t.isActive());for(let t=m?e.series.length-1:0;m?t>=0:t<e.series.length;m?t--:t++){let c=r.group({class:`apexcharts-series apexcharts-radial-series`,seriesName:x.escapeString(n.seriesData.seriesNames[t])});o.add(c),c.attr({rel:t+1,"data:realIndex":t}),q.addCollapsedClassToSeries(this.w,c,t),e.size=e.size-s-this.margin;let l=i.fillPath({seriesNumber:t,size:e.size,value:e.series[t]}),u=this.startAngle,d,f=n.config.plotOptions.radialBar,p=typeof f.min==`number`?f.min:0,m=typeof f.max==`number`?f.max:100,g=m===p?1:m-p,_=e=>Math.max(0,(Math.min(Math.max(e,p),m)-p)/g),v=_(x.negToZero(e.series[t])),y,b=Math.round(this.totalAngle*v)+this.startAngle;n.globals.dataChanged&&(d=this.startAngle,y=Math.round(this.totalAngle*_(x.negToZero(n.globals.previousPaths[t])))+d),Math.abs(b)+Math.abs(u)>360&&(b-=.01),Math.abs(y)+Math.abs(d)>360&&(y-=.01);let S=b-u,C=Array.isArray(n.config.stroke.dashArray)?n.config.stroke.dashArray[t]:n.config.stroke.dashArray,w=h?this.ctx.morphTypeChange.getInitialPathFor(t,0):null,T=h?this.ctx.morphTypeChange.getFromType():null,E=!!w&&(T===`bar`||T===`funnel`||T===`pyramid`||T===`pie`||T===`donut`||T===`polarArea`),D=r.drawPath({d:w||``,stroke:E||e.skipValueArc?`transparent`:l,strokeWidth:E||e.skipValueArc?0:s,fill:E?l:`none`,fillOpacity:n.config.fill.opacity,classes:`apexcharts-radialbar-area apexcharts-radialbar-slice-`+t,strokeDashArray:C}),O=u+S/2,k=x.polarToCartesian(e.centerX,e.centerY,e.size,O);
1800if(K.setAttrs(D.node,{"data:angle":S,"data:value":e.series[t],"data:cx":k.x,"data:cy":k.y}),n.config.chart.dropShadow.enabled){let e=n.config.chart.dropShadow;a.dropShadow(D,e,t)}if(a.setSelectionFilter(D,0,t),this.addListeners(D,this.radialDataLabels),c.add(D),D.attr({index:0,j:t}),this.barLabels.enabled){let i=x.polarToCartesian(e.centerX,e.centerY,e.size,u),a=this.barLabels.formatter(n.seriesData.seriesNames[t],{seriesIndex:t,w:n}),o=[`apexcharts-radialbar-label`];this.barLabels.onClick||o.push(`apexcharts-no-click`);let s=this.barLabels.useSeriesColors?n.globals.colors[t]:n.config.chart.foreColor;s||(s=n.config.chart.foreColor);let l=i.x+this.barLabels.offsetX,d=i.y+this.barLabels.offsetY,f=r.drawText({x:l,y:d,text:a,textAnchor:`end`,dominantBaseline:`middle`,fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:s,cssClass:o.join(` `)});f.on(`click`,this.onBarLabelClick),f.attr({rel:t+1}),u!==0&&f.attr({"transform-origin":`${l} ${d}`,transform:`rotate(${u} 0 0)`}),c.add(f)}let A=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged||(A=n.config.chart.animations.speed),n.globals.dataChanged&&(A=n.config.chart.animations.dynamicAnimation.speed),this.animDur=A/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),h&&w){let t=this.ctx.morphTypeChange.getSpeed(),n=this.getPiePath({me:this,startAngle:u,angle:S,size:e.size});if(E){let r=this.ctx.morphTypeChange.buildRingSegmentPath(e.centerX,e.centerY,e.size,s,u,u+S);D.animate(t).plot(r,`polygons`).after(function(){this.attr({d:n,fill:`none`,stroke:e.skipValueArc?`transparent`:l,"stroke-width":e.skipValueArc?0:s})})}else D.animate(t).plot(n,`polygons`).attr({"stroke-width":s})}else this.animatePaths(D,{centerX:e.centerX,centerY:e.centerY,endAngle:b,startAngle:u,prevEndAngle:y,prevStartAngle:d,size:e.size,i:t,totalItems:2,animBeginArr:this.animBeginArr,dur:A,shouldSetPrevPaths:!0})}return{g:o,elHollow:d,dataLabels:p}}_angleAtValue(e){let t=this.w.config.plotOptions.radialBar,n=typeof t.min==`number`?t.min:0,r=typeof t.max==`number`?t.max:100,i=r===n?n+1:r,a=(Math.max(n,Math.min(i,Number(e)))-n)/(i-n);return this.startAngle+a*(this.endAngle-this.startAngle)}_describeArc(e,t,n,r,i){let a=x.polarToCartesian(e,t,n,i),o=x.polarToCartesian(e,t,n,r),s=i-r,c=+(Math.abs(s)>180);return`M ${a.x} ${a.y} A ${n} ${n} 0 ${c} 0 ${o.x} ${o.y}`}drawBands(e){let t=this.w,n=new K(this.w),r=t.config.plotOptions.radialBar,i=r.bands||[],a=n.group({class:`apexcharts-gauge-bands`}),o=this.getStrokeWidth(e),s=e.size-o/2-o-this.margin,c=o*parseInt(r.bandsStyle.strokeWidth,10)/100,l=typeof r.min==`number`?r.min:0,u=typeof r.max==`number`?r.max:100,d=u===l?0:(r.bandsStyle.gap||0)*((this.endAngle-this.startAngle)/(u-l));for(let t=0;t<i.length;t++){let o=i[t];if(o.from===void 0||o.to===void 0)continue;let l=this._angleAtValue(o.from),u=this._angleAtValue(o.to),f=Math.min(l,u)+d/2,p=Math.max(l,u)-d/2;if(p-f<=0)continue;let m=n.drawPath({d:this._describeArc(e.centerX,e.centerY,s,f,p),stroke:o.color||`#ccc`,strokeWidth:c,fill:`none`,strokeLinecap:r.bandsStyle.linecap||`butt`,classes:`apexcharts-gauge-band`});m.node.setAttribute(`data-band-index`,String(t)),a.add(m)}return a}drawTicks(e){var t,n,r,i;let a=this.w,o=new K(this.w),s=a.config.plotOptions.radialBar,c=s.ticks,l=o.group({class:`apexcharts-gauge-ticks`}),u=this.getStrokeWidth(e),d=e.size-u/2-u-this.margin,f=typeof s.min==`number`?s.min:0,p=typeof s.max==`number`?s.max:100,m=Math.max(2,(n=(t=c.major)==null?void 0:t.count)==null?11:n),h=Math.max(0,(i=(r=c.minor)==null?void 0:r.count)==null?0:i),g=(t,n,r)=>{var i,a,s;let u=this._angleAtValue(t),f=(i=n.length)==null?8:i,p=n.placement===`inside`?d-f:d,m=n.placement===`inside`?d:d+f,h=x.polarToCartesian(e.centerX,e.centerY,p,u),g=x.polarToCartesian(e.centerX,e.centerY,m,u),_=o.drawLine(h.x,h.y,g.x,g.y,n.color||(r?`#666`:`#999`),0,n.width||(r?2:1));if(l.add(_),r&&(a=c.labels)!=null&&a.show){let r=(n.placement===`inside`?p:m)+(n.placement===`inside`?-1:1)*((s=c.labels.offset)==null?6:s),i=x.polarToCartesian(e.centerX,e.centerY,r,u),a=typeof c.labels.formatter==`function`?c.labels.formatter(t):String(t),d=o.drawText({x:i.x,y:i.y,text:a,textAnchor:`middle`,dominantBaseline:`middle`,fontFamily:c.labels.fontFamily,fontSize:c.labels.fontSize,fontWeight:c.labels.fontWeight,foreColor:c.labels.color,cssClass:`apexcharts-gauge-tick-label`});l.add(d)}};for(let e=0;e<m;e++)if(g(f+e/(m-1)*(p-f),c.major||{},!0),e<m-1&&h>0)for(let t=1;t<=h;t++)g(f+(e+t/(h+1))/(m-1)*(p-f),c.minor||{},!1);return l}drawNeedle(e){var t,n,r,i,a;let o=this.w,s=new K(this.w),c=o.config.plotOptions.radialBar.needle||{},l=s.group({class:`apexcharts-gauge-needle`});if(!e.series||e.series.length===0)return l;let u=this.getStrokeWidth(e),f=e.size-u/2-u-this.margin,p=typeof c.length==`string`&&c.length.endsWith(`%`)?f*parseInt(c.length,10)/100:Number(c.length||.85*f),m=(t=c.baseWidth)==null?4:t,h=(n=c.tipWidth)==null?1:n,g=c.color||`#333`,_=e.centerX,y=Number((r=c.offsetY)==null?0:r),b=e.centerY+y,x=`M ${_+m/2} ${b} A ${m/2} ${m/2} 0 0 1 ${_-m/2} ${b} L ${_-h/2} ${b-p} L ${_+h/2} ${b-p} Z`,S=s.drawPath({d:x,stroke:g,strokeWidth:0,fill:g,classes:`apexcharts-gauge-needle-shape`});l.add(S);let C=Number(e.series[0]),w=this._angleAtValue(C),T=this.initialAnim&&!o.globals.dataChanged&&!o.globals.resized,E=this.ctx,D=typeof E._lastNeedleAngle==`number`?E._lastNeedleAngle:this.startAngle;if(E._lastNeedleAngle=w,d.isBrowser()&&o.globals.shouldAnimate&&(T||o.globals.dataChanged)&&D!==w){let e=l.node;e.setAttribute(`transform-origin`,`${_} ${b}`),e.setAttribute(`transform`,`rotate(${D})`);let t=((i=c.animation)==null?void 0:i.duration)&&Number(c.animation.duration)||c.animationSpeed&&Number(c.animationSpeed)||((a=o.config.chart.animations.dynamicAnimation)==null?void 0:a.speed)||o.config.chart.animations.speed||800,n=T?e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2):e=>1-Math.pow(1-e,3);o.globals.radialNeedleRAF!=null&&(v.cancelAnimationFrame(o.globals.radialNeedleRAF),o.globals.radialNeedleRAF=null);let r=performance.now(),s=i=>{if(this.w.globals.isDestroyed)return void(o.globals.radialNeedleRAF=null);let a=Math.max(0,Math.min(1,(i-r)/t)),c=D+(w-D)*n(a);e.setAttribute(`transform`,`rotate(${c})`),o.globals.radialNeedleRAF=a<1?v.requestAnimationFrame(s):null};o.globals.radialNeedleRAF=v.requestAnimationFrame(s)}else l.attr({"transform-origin":`${_} ${b}`,transform:`rotate(${w})`});return l}drawHollow(e){var t;let n=new K(this.w),r=this.w.config.plotOptions.radialBar.hollow,i=n.drawCircle(2*e.size),a={class:`apexcharts-radialbar-hollow`,cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill};return(r.stroke||r.strokeDasharray)&&(a.stroke=r.stroke||`transparent`,a[`stroke-width`]=(t=r.strokeWidth)==null?1:t,r.strokeDasharray&&(a[`stroke-dasharray`]=r.strokeDasharray)),i.attr(a),i}
1800drawHollowImage(e,t,n,r){let i=this.w,a=new Pe(this.w),o=x.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:n,height:n,image:s,patternID:`pattern${i.globals.cuid}${o}`}),r=`url(#pattern${i.globals.cuid}${o})`;else{let n=i.config.plotOptions.radialBar.hollow.imageWidth,r=i.config.plotOptions.radialBar.hollow.imageHeight;if(n===void 0&&r===void 0){let n=i.dom.Paper.image(s,function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(n)}else{let a=i.dom.Paper.image(s,function(){this.move(e.centerX-n/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-r/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(n,r)});t.add(a)}}return r}getStrokeWidth(e){let t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}onBarLabelClick(e){var t;let n=e.target,r=parseInt((t=n.getAttribute(`rel`))==null?``:t,10)-1,i=this.barLabels.onClick,a=this.w;i&&i(a.seriesData.seriesNames[r],{w:a,seriesIndex:r})}},radar:class{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0,this.graphics=new K(this.w),this.lineColorArr=e.globals.stroke.colors===void 0?e.globals.colors:e.globals.stroke.colors,this.defaultSize=e.globals.svgHeight<e.globals.svgWidth?e.layout.gridHeight:e.layout.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.logBase=e.config.yaxis[0].logBase,this.coreUtils=new V(this.w),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size-=e.layout.xAxisLabelsWidth/1.75),e.config.plotOptions.radar.size!==void 0&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.dataPointsLen=0,this.disAngle=0,this.yaxisLabelsTextsPos=[]}draw(e){let t=this.w,n=new Pe(this.w),r=[],i=new Ve(this.w,this.ctx);e.length&&(this.dataPointsLen=e[t.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;let a=t.layout.gridWidth/2,o=t.layout.gridHeight/2,l=a+t.config.plotOptions.radar.offsetX,u=o+t.config.plotOptions.radar.offsetY,d=this.graphics.group({class:`apexcharts-radar-series apexcharts-plot-series`,transform:`translate(${l||0}, ${u||0})`}),f=[],p=null,m=null;if(this.yaxisLabels=this.graphics.group({class:`apexcharts-yaxis`}),e.forEach((e,a)=>{let o=e.length===t.globals.dataPoints,l=this.graphics.group().attr({class:`apexcharts-series`,"data:longestSeries":o,seriesName:x.escapeString(t.seriesData.seriesNames[a]),rel:a+1,"data:realIndex":a});this.dataRadiusOfPercent[a]=[],this.dataRadius[a]=[],this.angleArr[a]=[],e.forEach((e,t)=>{let n=Math.abs(this.maxValue-this.minValue);e-=this.minValue,this.isLog&&(e=this.coreUtils.getLogVal(this.logBase,e,0)),this.dataRadiusOfPercent[a][t]=e/n,this.dataRadius[a][t]=this.dataRadiusOfPercent[a][t]*this.size,this.angleArr[a][t]=t*this.disAngle}),f=this.getDataPointsPos(this.dataRadius[a],this.angleArr[a]);let u=this.createPaths(f,{x:0,y:0});p=this.graphics.group({class:`apexcharts-series-markers-wrap apexcharts-element-hidden`}),m=this.graphics.group({class:`apexcharts-datalabels`,"data:realIndex":a}),t.globals.delayedElements.push({el:p.node,index:a});let d={i:a,realIndex:a,animationDelay:a,initialSpeed:t.config.chart.animations.speed,dataChangeSpeed:t.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-radar`,shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:t.globals.stroke.colors[a],strokeLineCap:t.config.stroke.lineCap},h=null;t.globals.previousPaths.length>0&&(h=this.getPreviousPath(a));for(let e=0;e<u.linePathsTo.length;e++){let r=this.graphics.renderPaths(c(s({},d),{pathFrom:h===null?u.linePathsFrom[e]:h,pathTo:u.linePathsTo[e],strokeWidth:Array.isArray(this.strokeWidth)?this.strokeWidth[a]:this.strokeWidth,fill:`none`,drawShadow:!1}));l.add(r);let i=n.fillPath({seriesNumber:a}),o=this.graphics.renderPaths(c(s({},d),{pathFrom:h===null?u.areaPathsFrom[e]:h,pathTo:u.areaPathsTo[e],strokeWidth:0,fill:i,drawShadow:!1,drawMask:{type:`radial`,cx:0,cy:0,r:this.size}}));if(t.config.chart.dropShadow.enabled){let e=new G(this.w),n=t.config.chart.dropShadow;e.dropShadow(o,Object.assign({},n,{noUserSpaceOnUse:!0}),a)}l.add(o)}e.forEach((e,n)=>{let r=new Re(this.w,this.ctx).getMarkerConfig({cssClass:`apexcharts-marker`,seriesIndex:a,dataPointIndex:n});r.pSize||(r.pSize=5,r.pointFillColor=`transparent`,r.pointStrokeColor=`transparent`,r.pointStrokeWidth=0);let o=this.graphics.drawMarker(f[n].x,f[n].y,r);o.attr(`rel`,n),o.attr(`j`,n),o.attr(`index`,a),o.node.setAttribute(`default-marker-size`,r.pSize);let c=this.graphics.group({class:`apexcharts-series-markers`});c&&c.add(o),p.add(c),l.add(p);let u=t.config.dataLabels;if(u.enabled){let e=u.formatter(t.seriesData.series[a][n],{seriesIndex:a,dataPointIndex:n,w:t});i.plotDataLabelsText({x:f[n].x,y:f[n].y,text:e,textAnchor:`middle`,i:a,j:a,seriesIndex:a,dataPointIndex:n,parent:m,offsetCorrection:!1,dataLabelsConfig:s({},u)})}l.add(m)}),r.push(l)}),this.drawPolygons({parent:d}),t.config.xaxis.labels.show){let e=this.drawXAxisTexts();d.add(e)}
1800return r.forEach(e=>{d.add(e)}),d.add(this.yaxisLabels),d}drawPolygons(e){let t=this.w,{parent:n}=e,r=new ma(this.w),i=t.globals.yAxisScale[0].result.reverse(),a=i.length,o=[],s=this.size/(a-1);for(let e=0;e<a;e++)o[e]=s*e;o.reverse();let c=[],l=[];o.forEach((e,t)=>{let n=x.getPolygonPos(e,this.dataPointsLen),r=``;n.forEach((e,n)=>{if(t===0){let t=this.graphics.drawLine(e.x,e.y,0,0,Array.isArray(this.polygons.connectorColors)?this.polygons.connectorColors[n]:this.polygons.connectorColors);l.push(t)}n===0&&this.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),r+=e.x+`,`+e.y+` `}),c.push(r)}),c.forEach((e,r)=>{let i=this.polygons.strokeColors,a=this.polygons.strokeWidth,o=this.graphics.drawPolygon(e,Array.isArray(i)?i[r]:i,Array.isArray(a)?a[r]:a,t.globals.radarPolygons.fill.colors[r]);n.add(o)}),l.forEach(e=>{n.add(e)}),t.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((e,t)=>{let n=r.drawYAxisTexts(e.x,e.y,t,i[t]);this.yaxisLabels.add(n)})}drawXAxisTexts(){let e=this.w,t=e.config.xaxis.labels,n=this.graphics.group({class:`apexcharts-xaxis`}),r=x.getPolygonPos(this.size,this.dataPointsLen);return e.labelData.labels.forEach((i,a)=>{let o=e.config.xaxis.labels.formatter,c=new Ve(this.w,this.ctx);if(r[a]){let l=this.getTextPos(r[a],this.size),u=o(i,{seriesIndex:-1,dataPointIndex:a,w:e});c.plotDataLabelsText({x:l.newX,y:l.newY,text:u,textAnchor:l.textAnchor,i:a,j:a,parent:n,className:`apexcharts-xaxis-label`,color:Array.isArray(t.style.colors)&&t.style.colors[a]?t.style.colors[a]:`#a8a8a8`,dataLabelsConfig:s({textAnchor:l.textAnchor,dropShadow:{enabled:!1}},t),offsetCorrection:!1}).on(`click`,t=>{if(typeof e.config.chart.events.xAxisLabelClick==`function`){let n=Object.assign({},e,{labelIndex:a});e.config.chart.events.xAxisLabelClick(t,this.ctx,n)}})}}),n}createPaths(e,t){let n=[],r=[],i=[],a=[];if(e.length){r=[this.graphics.move(t.x,t.y)],a=[this.graphics.move(t.x,t.y)];let o=this.graphics.move(e[0].x,e[0].y),s=this.graphics.move(e[0].x,e[0].y);e.forEach((t,n)=>{o+=this.graphics.line(t.x,t.y),s+=this.graphics.line(t.x,t.y),n===e.length-1&&(o+=`Z`,s+=`Z`)}),n.push(o),i.push(s)}return{linePathsFrom:r,linePathsTo:n,areaPathsFrom:a,areaPathsTo:i}}getTextPos(e,t){let n=`middle`,r=e.x,i=e.y;return Math.abs(e.x)>=10?e.x>0?(n=`start`,r+=10):e.x<0&&(n=`end`,r-=10):n=`middle`,Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:n,newX:r,newY:i}}getPreviousPath(e){let t=this.w,n=null;for(let r=0;r<t.globals.previousPaths.length;r++){let i=t.globals.previousPaths[r];i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(String(e),10)&&t.globals.previousPaths[r].paths[0]!==void 0&&(n=t.globals.previousPaths[r].paths[0].d)}return n}getDataPointsPos(e,t,n=this.dataPointsLen){e=e||[],t=t||[];let r=[];for(let i=0;i<n;i++){let n={};n.x=e[i]*Math.sin(t[i]),n.y=-e[i]*Math.cos(t[i]),r.push(n)}return r}},heatmap:class{constructor(e,t,n){this.ctx=t,this.w=e,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new la(e,t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}draw(e){var t,n;let r=this.w,i=new K(this.w,this.ctx),a=Ie(this.ctx,i),o=a!==i&&typeof a.drawRectCell==`function`,s=i.group({class:`apexcharts-heatmap`});s.attr(`clip-path`,`url(#gridRectMask${r.globals.cuid})`);let c=r.layout.gridWidth/r.globals.dataPoints,l=r.layout.gridHeight/r.seriesData.series.length,u=(r.config.xaxis.type===`numeric`||r.config.xaxis.type===`datetime`)&&r.axisFlags.isXNumeric&&this.xRatio>0,d=c;if(u){let e=r.globals.minXDiff;d=Number.isFinite(e)&&e>0?e/this.xRatio:c}let f=Array.isArray(r.config.fill.opacity)?(t=r.config.fill.opacity[0])==null?1:t:(n=r.config.fill.opacity)==null?1:n,p=0,m=!1;this.negRange=this.helpers.checkColorRange();let h=e.slice();r.config.yaxis[0].reversed&&(m=!0,h.reverse());for(let t=m?0:h.length-1;m?t<h.length:t>=0;m?t++:t--){let n=i.group({class:`apexcharts-series apexcharts-heatmap-series`,seriesName:x.escapeString(r.seriesData.seriesNames[t]),rel:t+1,"data:realIndex":t});if(q.addCollapsedClassToSeries(this.w,n,t),o||i.setupEventDelegation(n,`.a
1800pexcharts-heatmap-rect`),r.config.chart.dropShadow.enabled){let e=r.config.chart.dropShadow;new G(this.w).dropShadow(n,e,t)}let m=0,g=r.config.plotOptions.heatmap.shadeIntensity,_=0;for(let s=0;s<r.globals.dataPoints;s++){if(!u&&r.seriesData.seriesX.length&&!r.globals.allSeriesHasEqualX&&r.globals.minX+r.globals.minXDiff*s<r.seriesData.seriesX[t][_]){m+=c;continue}if(_>=h[t].length)break;let v=u?d:c;if(u){let e=r.seriesData.seriesX[t]?r.seriesData.seriesX[t][_]:null;if(e==null||e!=e){_++;continue}m=(e-r.globals.minX)/this.xRatio-d/2}let y=this.helpers.getShadeColor(r.config.chart.type,t,_,this.negRange),b=y.color,S=y.colorProps;r.config.fill.type===`image`&&(b=new Pe(this.w).fillPath({seriesNumber:t,dataPointIndex:_,opacity:r.globals.hasNegs?S.percent<0?1-(1+S.percent/100):g+S.percent/100:S.percent/100,patternID:x.randomId(),width:r.config.fill.image.width?r.config.fill.image.width:v,height:r.config.fill.image.height?r.config.fill.image.height:l}));let C=this.rectRadius,w=r.config.plotOptions.heatmap.useFillColorAsStroke?b:r.globals.stroke.colors[0];if(o)a.drawRectCell(m,p,v,l,{fill:b,fillOpacity:f,stroke:w,strokeWidth:this.strokeWidth,radius:C,seriesIndex:t,dataPointIndex:_});else{let a=i.drawRect(m,p,v,l,C);if(a.attr({cx:m,cy:p}),a.node.classList.add(`apexcharts-heatmap-rect`),n.add(a),a.attr({fill:b,i:t,index:t,j:_,val:e[t][_],"stroke-width":this.strokeWidth,stroke:w,color:b}),r.config.chart.animations.enabled&&!r.globals.dataChanged){let e=1;r.globals.resized||(e=r.config.chart.animations.speed),this.animateHeatMap(a,m,p,v,l,e,t,_)}if(r.globals.dataChanged){let e=1;if(this.dynamicAnim.enabled&&r.globals.shouldAnimate){e=this.dynamicAnim.speed;let n=r.globals.previousPaths[t]&&r.globals.previousPaths[t][_]&&r.globals.previousPaths[t][_].color;n||(n=`rgba(255, 255, 255, 0)`),this.animateHeatColor(a,x.isColorHex(n)?n:x.rgb2hex(n),x.isColorHex(b)?b:x.rgb2hex(b),e)}}}let T=(0,r.config.dataLabels.formatter)(r.seriesData.series[t][_],{value:r.seriesData.series[t][_],seriesIndex:t,dataPointIndex:_,w:r}),E=this.helpers.calculateDataLabels({text:T,x:m+v/2,y:p+l/2,i:t,j:_,colorProps:S,series:h});E!==null&&n.add(E),u||(m+=c),_++}p+=l,s.add(n)}let g=r.globals.yAxisScale[0].result.slice();return r.config.yaxis[0].reversed?g.unshift(``):g.push(``),r.globals.yAxisScale[0].result=g,s}animateHeatMap(e,t,n,r,i,a,o=0,s=0){let c=this.w,l=new Ne(this.w),u=c.config.chart.animations.animateGradually,d=0;if(u&&!1!==u.enabled){let e=((c.seriesData.series||[]).length||1)+(c.globals.dataPoints||1)-2;d=Me({style:`diagonal`,index:s,row:o,col:s,baseDelay:Math.min(u.delay||0,.5*a/Math.max(1,e))})}l.animateRect(e,{x:t+r/2,y:n+i/2,width:0,height:0},{x:t,y:n,width:r,height:i},a,()=>{l.animationCompleted(e)},d)}animateHeatColor(e,t,n,r){e.attr({fill:t}).animate(r).attr({fill:n})}},treemap:class{constructor(e,t){this.ctx=t,this.w=e,this.strokeWidth=this.w.config.stroke.width,this.helpers=new la(e,t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[],this.roots=[],this.drawn=[],this.nested=!1,this.showParents=!1,this.scale=null,this._levelCache=null,this._total=null,this._avgLabelSize=null,this._tooltipEl=null,this._tipOwned=!1,this._morphLeafIndex=0}draw(e){var t;let n=this.w,r=new K(this.w,this.ctx),i=new Pe(this.w),a=r.group({class:`apexcharts-treemap`});if(n.globals.noData)return a;e.forEach(e=>{e.map(e=>Math.abs(e))}),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach((e,t)=>{e.data.forEach(e=>{Array.isArray(this.labels[t])||(this.labels[t]=[]),this.labels[t].push(e.x)})});let o=function(e){let t=e.globals.treemapRoots;if(t&&t.length)return{roots:t,maxDepth:e.globals.treemapMaxDepth||1,nested:!0};let n=Sn(e,e.config.series,{keepDatum:!0,expandDrilldown:!1});n.forEach(Z);let{maxDepth:r}=En(n);return{roots:n,maxDepth:r,nested:!1}}(n);this.nested=o.nested,this.roots=o.roots,this.scale=ni(n);let s=o.roots.length===1?o.roots[0].children||[]:o.roots;this.drawn=s;let c=n.config.plotOptions.treemap.parents;this.showParents=!0===c.show||!1!==c.show&&this.nested;let l=this._resolveFocus(s),u=l?[l]:s;Oa.generateNested(u,n.layout.gridWidth,n.layout.gridHeight,{padding:(e,t,n,r)=>this.showParents?this._levelPadding(t,n,r):0,header:(e,t,n,r)=>this.showParents?this._levelHeader(e,t,n,r):0});let d=(t=this.ctx)==null?void 0:t.morphTypeChange,f=!!d&&typeof d.isActive==`function`&&d.isActive()&&typeof d.getInitialPathAt==`function`;this._morphLeafIndex=0;let p=this._leavesBySeries(u,n.config.series.length),m=this.showParents?this._parentsBySeries(u,n.config.series.length):[];return p.forEach((t,o)=>{var s;let c=r.group({class:`apexcharts-series apexcharts-treemap-series`,seriesName:x.escapeString(n.seriesData.seriesNames[o]),rel:o+1,"data:realIndex":o});if(r.setupEventDelegation(c,`.apexcharts-treemap-rect`),n.config.chart.dropShadow.enabled){let e=n.config.chart.dropShadow;new G(this.w).dropShadow(a,e,o)}let l=r.group({class:`apexcharts-data-labels`}),u={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};
1800this.showParents&&(m[o]||[]).forEach(e=>{this._drawParent(c,e,o)});let d=n.config.chart.animations,p=d.animateGradually,h=p&&!1!==p.enabled,g=Array(t.length).fill(0);if(h){let e=t.length||1,n=Math.min(p.delay||0,.5*d.speed/e);t.map((e,t)=>{return{j:t,area:e.rect?(n=e.rect,(n[2]-n[0])*(n[3]-n[1])):0};var n}).sort((e,t)=>t.area-e.area).forEach((e,t)=>{g[e.j]=t*n})}t.forEach((t,a)=>{let s=t.rect;if(!s)return;let l=t._di,d=s[0],p=s[1],m=s[2],h=s[3];u.xMin=Math.min(u.xMin,d),u.yMin=Math.min(u.yMin,p),u.xMax=Math.max(u.xMax,m),u.yMax=Math.max(u.yMax,h);let _=this._leafColor(o,l),v=_.color,y=i.fillPath({color:v,seriesNumber:o,dataPointIndex:l}),b=f?this._morphSourceForLeaf(t):null,x=b?r.drawPath({d:this._tilePath(d,p,m,h),fill:`#fff`,stroke:n.config.plotOptions.treemap.useFillColorAsStroke?v:n.globals.stroke.colors[o],strokeWidth:this.strokeWidth,fillOpacity:1}):r.drawRect(d,p,m-d,h-p,n.config.plotOptions.treemap.borderRadius,`#fff`,1,this.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?v:n.globals.stroke.colors[o]);x.attr({cx:d,cy:p,index:o,i:o,j:l,width:m-d,height:h-p,fill:y}),x.node.classList.add(`apexcharts-treemap-rect`),x.node.setAttribute(`data:key`,Cn(t._key));let S={x:d+(m-d)/2,y:p+(h-p)/2,width:0,height:0},C={x:d,y:p,width:m-d,height:h-p};if(b)this._morphTile(x,b,this._tilePath(d,p,m,h),this.ctx.morphTypeChange.getSpeed(),o,l);else if(n.config.chart.animations.enabled&&!n.globals.dataChanged){let e=1;n.globals.resized||(e=n.config.chart.animations.speed),this.animateTreemap(x,S,C,e,g[a]||0)}if(n.globals.dataChanged){let e=1;this.dynamicAnim.enabled&&n.globals.shouldAnimate&&(e=this.dynamicAnim.speed,n.globals.previousPaths[o]&&n.globals.previousPaths[o][l]&&n.globals.previousPaths[o][l].rect&&(S=n.globals.previousPaths[o][l].rect),this.animateTreemap(x,S,C,e))}let w=this.getFontSize(s);n.config.plotOptions.treemap.dataLabels.format===`truncate`&&(w=parseInt(String(n.config.dataLabels.style.fontSize),10));let T=null;if(n.config.dataLabels.enabled&&this._labelCanShow(w,m-d,h-p)){let t=n.config.dataLabels.formatter(this.labels[o][l],{value:n.seriesData.series[o][l],seriesIndex:o,dataPointIndex:l,w:n});n.config.plotOptions.treemap.dataLabels.format===`truncate`&&(t=this.truncateLabels(String(t),w,d,p,m,h)),n.seriesData.series[o][l]&&(T=this.helpers.calculateDataLabels({text:t,x:(d+m)/2,y:(p+h)/2+this.strokeWidth/2+w/3,i:o,j:l,colorProps:_,fontSize:w,series:e})),n.config.dataLabels.enabled&&T&&this.rotateToFitLabel(T,w,t,d,p,m,h)}c.add(x),T!==null&&c.add(T)});let _=n.config.plotOptions.treemap.seriesTitle;if(!this.showParents&&n.config.series.length>1&&_&&_.show){let e=n.config.series[o].name||``;if(e&&u.xMin<1/0&&u.yMin<1/0){let{offsetX:t,offsetY:i,borderColor:a,borderWidth:o,borderRadius:l,style:d}=_,f=d.color||n.config.chart.foreColor,p={left:d.padding.left,right:d.padding.right,top:d.padding.top,bottom:d.padding.bottom},m=r.getTextRects(e,d.fontSize,d.fontFamily),h=m.width+p.left+p.right,g=m.height+p.top+p.bottom,v=u.xMin+(t||0),y=u.yMin+(i||0),b=r.drawRect(v,y,h,g,l,d.background,1,o,a),x=r.drawText({x:v+p.left,y:y+p.top+.75*((s=m==null?void 0:m.height)==null?0:s),text:e,fontSize:d.fontSize,fontFamily:d.fontFamily,fontWeight:d.fontWeight,foreColor:f,cssClass:d.cssClass||``});c.add(b),c.add(x)}}c.add(l),a.add(c)}),this._renderBreadcrumb(),a}_levelCfg(e){if(this._levelCache||(this._levelCache=[]),this._levelCache[e])return this._levelCache[e];let t=this.w.config.plotOptions.treemap,n=t.parents||{},r=(t.levels||[])[e]||{},i=c(s(s({},n),r),{header:c(s(s({},n.header||{}),r.header||{}),{style:s(s({},(n.header||{}).style||{}),(r.header||{}).style||{})}),hover:s(s({},n.hover||{}),r.hover||{})});return this._levelCache[e]=i,i}_levelPadding(e,t,n){let r=this._levelCfg(e);return Number(r.padding)||0}_levelHeader(e,t,n,r){let i=this._levelCfg(t).header||{};if(!1===i.show)return 0;let a=Number(i.height);return!Number.isFinite(a)||a<=0||n<(Number(i.minWidth)||40)||r<2*a?0:a}_leavesBySeries(e,t){let n=Array(Math.max(1,t));for(let e=0;e<n.length;e++)n[e]=[];let r=e=>{if(e.children&&e.children.length)e.children.forEach(r);else{let t=e._si||0;n[t]&&n[t].push(e)}};return e.forEach(r),n}_parentsBySeries(e,t){let n=Array(Math.max(1,t));for(let e=0;e<n.length;e++)n[e]=[];let r=e=>{if(!e.children||!e.children.length)return;let t=e._si||0;
1800n[t]&&n[t].push(e),e.children.forEach(r)};return e.forEach(r),n.forEach(e=>e.sort((e,t)=>(e.depth||0)-(t.depth||0))),n}_leafColor(e,t){let n=this.w;if(this.scale){let r=ei(n,e,t);if(r!=null){let e=this.scale.at(r);return{color:e,foreColor:ri(e),colorProps:{color:e,foreColor:ri(e),percent:0}}}}return this.helpers.getShadeColor(n.config.chart.type,e,t,this.negRange)}_parentChrome(e){let t=this.w,n=this._levelCfg(e),r=t.config.theme.mode===`dark`,i=(n.header||{}).style||{},a=Math.min(e,3),o=r?255:0,s=`${o},${o},${o}`;return{fill:n.fill||`rgba(${s},${(r?.04:.03)+.02*a})`,fillOpacity:n.fillOpacity==null?1:n.fillOpacity,borderColor:n.borderColor||`rgba(${s},${r?.18:.14})`,borderWidth:n.borderWidth==null?1:n.borderWidth,borderRadius:n.borderRadius==null?t.config.plotOptions.treemap.borderRadius:n.borderRadius,headerBg:i.background||`rgba(${s},${r?.1:.07})`,headerColor:i.color||(r?`#e8e8e8`:t.config.chart.foreColor),headerFontSize:i.fontSize||`12px`,headerFontFamily:i.fontFamily||t.config.chart.fontFamily,headerFontWeight:i.fontWeight==null?600:i.fontWeight,hoverColor:n.hover&&n.hover.color||(r?`rgba(255,255,255,0.85)`:`rgba(0,0,0,0.7)`),hoverWidth:n.hover&&n.hover.width||2,hoverShow:!(n.hover&&!1===n.hover.show)}}_drawParent(e,t,n){var r;let i=t.rect;if(!i)return;let a=this.w,o=new K(this.w,this.ctx),s=t.depth||0,c=this._levelCfg(s),l=this._parentChrome(s),u=i[0],d=i[1],f=i[2]-i[0],p=i[3]-i[1];if(f<=0||p<=0)return;let m=o.group({class:`apexcharts-treemap-parent`,"data:depth":s,"data:name":x.escapeString(t.name)}),h=Cn(t._key),g=this._morphKeyed()?this.ctx.morphTypeChange.getInitialPathForKey(h):null,_=g?o.drawPath({d:this._tilePath(u,d,u+f,d+p),fill:l.fill,stroke:l.borderColor,strokeWidth:l.borderWidth,fillOpacity:l.fillOpacity}):o.drawRect(u,d,f,p,l.borderRadius,l.fill,l.fillOpacity,l.borderWidth,l.borderColor);_.node.classList.add(`apexcharts-treemap-parent-rect`),_.node.setAttribute(`data:key`,h),_.node.setAttribute(`data:depth`,String(s)),g&&this._morphTile(_,g,this._tilePath(u,d,u+f,d+p),this.ctx.morphTypeChange.getSpeed(),n,s),m.add(_);let v=t.headerHeight||0,y=``;if(v>0){let e=c.header||{},i=o.drawRect(u,d,f,v,0,l.headerBg,1,0,`transparent`);i.node.classList.add(`apexcharts-treemap-parent-header`),m.add(i);let p=String((r=t.name)==null?``:r);typeof e.formatter==`function`?p=String(e.formatter(t.name,{value:t.value,depth:s,seriesIndex:n,node:t,w:a})):e.showValue&&(p=`${p}  ${this._formatValue(t.value)}`),y=p;let h=Number(e.offsetX)||0,g=e.align||`left`,b=Math.max(0,f-12-Math.abs(h)),x=parseFloat(String(l.headerFontSize))||12,S=o.getTextBasedOnMaxWidth({text:p,maxWidth:b,fontSize:x});if(S){let t=u+6+h,n=`start`;g===`center`?(t=u+f/2+h,n=`middle`):g===`right`&&(t=u+f-6+h,n=`end`);let r=o.drawText({x:t,y:d+v/2+x/3+(Number(e.offsetY)||0),text:S,textAnchor:n,fontSize:l.headerFontSize,fontFamily:l.headerFontFamily,fontWeight:l.headerFontWeight,foreColor:l.headerColor,cssClass:`apexcharts-treemap-parent-label ${e.style&&e.style.cssClass||``}`});r.node.setAttribute(`pointer-events`,`none`),m.add(r)}this._attachParentEvents(i.node,t,l,_),this._makeParentAccessible(i.node,t,l,_,y)}this._attachParentEvents(_.node,t,l,_),m.node.setAttribute(`role`,`group`),m.node.setAttribute(`aria-label`,this._parentLabel(t,y)),e.add(m)}_parentLabel(e,t){let n=this._drawnTotal(),r=n>0?(e._area/n*100).toFixed(1):`0`,i=this._countLeaves(e);return`${t&&String(t).trim()?String(t).replace(/\s+/g,` `).trim():`${e.name}, ${this._formatValue(e._area)}`}, ${i} ${i===1?`item`:`items`}, ${r}% of total`}_makeParentAccessible(e,t,n,r,i){e&&e.setAttribute&&this._zoomEnabled()&&(e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,`${this._parentLabel(t,i)}. Zoom in`),e.setAttribute(`aria-expanded`,`false`),d.isBrowser()&&e.addEventListener&&(e.addEventListener(`focus`,()=>{r.node.setAttribute(`stroke`,n.hoverColor),r.node.setAttribute(`stroke-width`,String(n.hoverWidth+1))}),e.addEventListener(`blur`,()=>{r.node.setAttribute(`stroke`,n.borderColor),r.node.setAttribute(`stroke-width`,String(n.borderWidth))}
1800),e.addEventListener(`keydown`,e=>{e.key!==`Enter`&&e.key!==` `&&e.key!==`Spacebar`||(e.preventDefault(),this._zoomTo(t,!0))})))}_attachParentEvents(e,t,n,r){if(!d.isBrowser()||!e||!e.addEventListener)return;let i=this.w;n.hoverShow&&(e.addEventListener(`mouseenter`,()=>{r.node.setAttribute(`stroke`,n.hoverColor),r.node.setAttribute(`stroke-width`,String(n.hoverWidth))}),e.addEventListener(`mouseleave`,()=>{r.node.setAttribute(`stroke`,n.borderColor),r.node.setAttribute(`stroke-width`,String(n.borderWidth))})),i.config.tooltip.enabled&&(e.addEventListener(`mouseenter`,e=>this._showParentTooltip(e,t)),e.addEventListener(`mousemove`,e=>this._positionTooltip(e)),e.addEventListener(`mouseleave`,()=>this._hideParentTooltip())),this._zoomEnabled()&&(e.style.cursor=`pointer`,e.addEventListener(`click`,()=>this._zoomTo(t)))}_zoomEnabled(){let e=this.w,t=e.config.plotOptions.treemap.zoom;if(!t||!t.enabled||!this.showParents)return!1;let n=e.config.drilldown;return!(n&&n.enabled&&Array.isArray(n.series)&&n.series.length)||(this._warnedZoomConflict||(this._warnedZoomConflict=!0),!1)}_resolveFocus(e){let t=this.w.globals.treemapFocusKey;if(!t||!this._zoomEnabled())return null;let n=null,r=e=>{n||(e._key===t?n=e:e.children&&e.children.forEach(r))};return e.forEach(r),n&&n.children&&n.children.length?n:null}_zoomTo(e,t=!1){let n=this.w;if(!e||!e.children||!e.children.length)return;let r=n.globals.treemapFocusKey===e._key?null:e._key;n.globals.treemapFocusKey=r,this._hideParentTooltip();let i=this.ctx.update();t&&i&&typeof i.then==`function`&&i.then(()=>{if(!d.isBrowser())return;let e=n.dom.baseEl.querySelector(`.apexcharts-breadcrumb .apexcharts-breadcrumb-item`);if(e&&e.focus)return void e.focus();let t=n.dom.baseEl.querySelector(`.apexcharts-treemap-parent-header[tabindex]`);t&&t.focus&&t.focus()})}_focusChain(){let e=[],t=new Set(this.drawn||[]),n=this._resolveFocus(this.drawn||[]);for(;n&&(e.unshift(n),!t.has(n));)n=n._parent;return e}_breadcrumbCfg(){let e=this.w.config.plotOptions.treemap.zoom;return tn(this.w,e&&e.breadcrumb)}_renderBreadcrumb(){if(!d.isBrowser())return;let e=this.w;if(!e.dom.elWrap||(an(e),!this._zoomEnabled()))return;let t=this._focusChain();if(!t.length)return;let n=function(e,t){if(!d.isBrowser())return null;let n=e.dom.elWrap;if(!n)return null;an(e);let r=t.config||tn(e);if(!1===r.show)return null;let i=t.crumbs||[];if(i.length<2)return null;let a=v.createElementNS(en,`nav`);a.setAttribute(`class`,`apexcharts-breadcrumb`),a.setAttribute(`aria-label`,t.ariaLabel||`Breadcrumb`),function(e,t){let n=t.offsetX||0,r=t.offsetY||0;e.style.position=`absolute`,e.style.top=r+`px`,t.position===`top-right`?e.style.right=3-n+`px`:e.style.left=n+`px`}(a,r),t.compact&&(a.style.fontSize=`11px`,a.style.padding=`0 2px`);let o=r.separator==null?` / `:r.separator;return i.forEach((e,n)=>{var s;if(n>0){let e=v.createElementNS(en,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-separator`),e.setAttribute(`aria-hidden`,`true`),e.textContent=o,a.appendChild(e)}let c=n===0?(s=r.rootLabel)==null?`All`:s:e.label;if(typeof r.formatter==`function`&&(c=r.formatter(c,{index:n,depth:i.length-1,data:e.data})),n===i.length-1){let e=v.createElementNS(en,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-item apexcharts-breadcrumb-current`),e.setAttribute(`aria-current`,`page`),e.textContent=String(c),a.appendChild(e);return}let l=v.createElementNS(en,`button`);if(l.setAttribute(`type`,`button`),l.setAttribute(`class`,`apexcharts-breadcrumb-item`),n===0){let e=v.createElementNS(en,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-arrow`),e.setAttribute(`aria-hidden`,`true`),e.textContent=`←`,l.appendChild(e)}let u=v.createElementNS(en,`span`);u.setAttribute(`class`,`apexcharts-breadcrumb-label`),u.textContent=String(c),l.appendChild(u),l.addEventListener(`click`,()=>t.onNavigate(n,e)),a.appendChild(l)}),n.appendChild(a),a}(e,{ariaLabel:`Treemap breadcrumb`,config:this._breadcrumbCfg(),compact:!0,crumbs:[{label:`All`,data:null}].concat(t.map(e=>({label:e.name,data:e}))),onNavigate:(t,n)=>{e.globals.treemapFocusKey=n.data?n.data._key:null,this._hideParentTooltip(),this.ctx.update()}});n&&(this._placeBreadcrumb(n),nn(e,n))}_placeBreadcrumb(e){var t,n;let r=this.w,i=r.layout.translateY||0,a=(n=(t=this.ctx)==null?void 0:t.dimensions)==null?void 0:n.dimHelpers,o=a?a.getTitleSubtitleCoords(`title`).height+a.getTitleSubtitleCoords(`subtitle`).height:0,s=e.getBoundingClientRect().height||18;if(i-o>=s+1)return void(e.style.top=i-s-1+`px`);e.style.top=`${o}px`;let c=r.config.theme.mode===`dark`;e.style.background=c?`rgba(20,24,30,0.82)`:`rgba(255,255,255,0.86)`,e.style.borderRadius=`4px`}_showParentTooltip(e,t){let n=this.w,r=this._tip();if(!r)return;let i=this._drawnTotal(),a=t._parent?t._parent._area:i,o=i>0?(t._area/i*100).toFixed(1):`0.0`,s=a>0?(t._area/a*100).toFixed(1):o,c=this.w.config.plotOptions.treemap.parents,l=c&&c.tooltip&&c.tooltip.formatter,u=this._countLeaves(t),d;if(typeof l==`function`)d=l({name:t.name,value:t._area,depth:t.depth||0,leafCount:u,percentOfParent:Number(s),percentOfTotal:Number(o),node:t,w:n});else{let e=this._parentChrome(t.depth||0).headerBg;d=`<div class="apexcharts-tooltip-series-group apexcharts-active" style="display:flex;${n.config.tooltip.fillSeriesColor?`background-color:${e};`:``}"><div class="apexcharts-tooltip-text"><div class="apexcharts-tooltip-y-group"><span class="apexcharts-tooltip-text-y-label">${x.escapeString(t.name)}: </span><span class="apexcharts-tooltip-text-y-value">${this._formatValue(t._area)}</span></div><div class="apexcharts-tooltip-y-group"><span class="apexcharts-tooltip-text-y-label">${u} items, </span><span class="apexcharts-tooltip-text-y-value">${s}% of parent, ${o}% of total</span></div></div></div>`}r.innerHTML=d,r.classList.add(`apexcharts-active`),r.style.opacity=`1`,this._tipOwned=!0,this._positionTooltip(e)}_tip(){return this._tooltipEl||(this._tooltipEl=this.w.dom.baseEl.querySelector(`.apexcharts-tooltip`)),this._tooltipEl}_positionTooltip(e){let t=this._tip();if(!t||!this._tipOwned)return;let n=this.w.dom.elWrap.getBoundingClientRect(),r=t.offsetWidth,i=t.offsetHeight,a=e.clientX-n.left+12;a+r>n.width&&(a=e.clientX-n.left-r-12),a=Math.max(0,Math.min(a,n.width-r));let o=e.clientY-n.top+12;o+i>n.height&&(o=e.clientY-n.top-i-12),o=Math.max(0,Math.min(o,n.height-i)),t.style.left=a+`px`,t.style.top=o+`px`}_hideParentTooltip(){let e=this._tip();e&&this._tipOwned&&(this._tipOwned=!1,e.classList.remove(`apexcharts-active`),e.style.opacity=`0`)}_drawnTotal(){return this._total==null&&(this._total=(this.drawn||[]).reduce((e,t)=>
1800e+this._subtreeArea(t),0)),this._total||0}_subtreeArea(e){if(e._area!=null)return e._area;let t=e.children;if(t&&t.length){let e=0;for(let n=0;n<t.length;n++)e+=this._subtreeArea(t[n]);return e}let n=Number(e.value);return isNaN(n)?0:Math.abs(n)}_countLeaves(e){return e.children&&e.children.length?e.children.reduce((e,t)=>e+this._countLeaves(t),0):1}_formatValue(e){var t,n,r,i,a;let o=this.w,s=((n=(t=o.config.tooltip)==null?void 0:t.y)==null?void 0:n.formatter)||((a=(i=(r=o.config.yaxis)==null?void 0:r[0])==null?void 0:i.labels)==null?void 0:a.formatter);if(typeof s==`function`)try{return String(s(e,{seriesIndex:0,dataPointIndex:0,w:o}))}catch(e){}return String(e)}_labelCanShow(e,t,n){if(!Number.isFinite(e)||e<=0)return!1;let r=this.w.config.plotOptions.treemap.dataLabels;return!(e<(r&&r.minFontSize!=null?Number(r.minFontSize):0))&&Math.max(t,n)>=e}_averageLabelSize(){return this._avgLabelSize==null&&(this._avgLabelSize=function e(t){let n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=t[n].length;return r}(this.labels)/function e(t){let n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=1;return r}(this.labels)),this._avgLabelSize}getFontSize(e){let t=this.w,n=this._averageLabelSize();return function(e,r){let i=e*r;return Math.min(Math.pow(i,.5)/n,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}rotateToFitLabel(e,t,n,r,i,a,o){let s=new K(this.w),c=s.getTextRects(n,String(t));if(c.width+this.w.config.stroke.width+5>a-r&&c.width<=o-i){let t=s.rotateAroundCenter(e.node);e.node.setAttribute(`transform`,`rotate(-90 ${t.x} ${t.y}) translate(${c.height/3})`)}}truncateLabels(e,t,n,r,i,a){let o=new K(this.w),s=o.getTextRects(e,String(t)).width+this.w.config.stroke.width+5>i-n&&a-r>i-n?a-r:i-n,c=o.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==c.length&&s/t<5?``:c}_morphKeyed(){var e;let t=(e=this.ctx)==null?void 0:e.morphTypeChange;return!(!t||typeof t.hasKeyedMarks!=`function`||!t.hasKeyedMarks()||typeof t.getInitialPathForKey!=`function`)}_morphSourceForLeaf(e){var t;let n=(t=this.ctx)==null?void 0:t.morphTypeChange;if(!n||typeof n.getInitialPathAt!=`function`)return null;if(this._morphKeyed()){let t=n.getInitialPathForKey(Cn(e._key));if(t)return t}return n.getInitialPathAt(this._morphLeafIndex++)}_tilePath(e,t,n,r){return`M ${e} ${t} L ${n} ${t} L ${n} ${r} L ${e} ${r} Z`}_morphTile(e,t,n,r,i,a){new Ne(this.w,this.ctx).morphSVG(e,i,a,`none`,t,n,r,0)}animateTreemap(e,t,n,r,i=0){let a=new Ne(this.w);a.animateRect(e,t,n,r,()=>{a.animationCompleted(e)},i)}},unit:class{constructor(e,t){this.ctx=t,this.w=e,this._lastDotR=1,this._gridTrack=null,this._gridDenom=1,this._scatterAxis=null,this._specCache=new Map,this._markWarned=null}draw(e){let t=this.w,n=new K(t,this.ctx),r=n.group({class:`apexcharts-unit`});if(t.globals.noData||!Array.isArray(e)||e.length===0)return r;let i=t.config.plotOptions.unit,a=i.layout===`packed`?`packed`:i.layout===`columns`?`columns`:i.layout===`grid`?`grid`:i.layout===`scatter`?`scatter`:i.layout===`arc`?`arc`:i.layout===`custom`?`custom`:`grouped`,o=i.transition,s=o===`flow`,c=o===`identity`,l=i.unitValue>0?i.unitValue:1,u=e.map(e=>{let t=Math.abs(x.parseNumber(e))/l;return t>0?Math.max(1,Math.round(t)):0});u=this._applyMaxUnits(u,i.maxUnits);let d=u.reduce((e,t)=>e+t,0),f=a===`packed`?this._layoutPacked(u,i):a===`columns`?this._layoutColumns(u,i):a===`grid`?this._layoutGrid(u,i):a===`scatter`?this._layoutScatter(i):a===`arc`?this._layoutArc(u,i):a===`custom`?this._layoutCustom(u,i):this._layoutGrouped(u,i),p=a===`grid`&&!(!i.grid||!i.grid.split);p&&this._drawGridTrack(r,n,i),a===`scatter`&&this._drawScatterAxes(r,n);let m=this._lastDotR,h=this._shouldAnimate(),g=this.ctx&&this.ctx.morphTypeChange,_=h&&!!g&&typeof g.isActive==`function`&&g.isActive()&&typeof g.getInitialCenterFor==`function`,v=_&&typeof g.getInitialSlotFor==`function`,y=_&&typeof g.usesPieceTakeover==`function`&&g.usesPieceTakeover(),b=h&&!_&&this.ctx?this.ctx._unitPrevDots:null,S=new Map,C=[],w=t.seriesData.unitData||[],T=this._bubbleStats(w,i,m),E=0;
1800if(f.forEach(e=>{let o=t.globals.colors[e.i]||t.globals.colors[0]||`#008FFB`,l=n.group({class:`apexcharts-series`,seriesName:x.escapeString(t.seriesData.seriesNames[e.i]||`series-${e.i+1}`),rel:e.i+1,"data:realIndex":e.i}),f=_&&!v?g.getInitialCenterFor(e.i):null,D=e.dots.length,O=w[e.i];if(e.dots.forEach((t,r)=>{let a=t.j==null?r:t.j,u=O?O[a]:void 0,d=u&&typeof u==`object`&&u.fillColor?u.fillColor:o,_=t.r==null?T?this._radiusForValue(this._unitValueOf(u),T):m:t.r,x=this._markSpecFor(i,u,e.i,_),w=this._drawDot(n,i,_,d,e.i,a,x),k;if(l.add(w),c){let e=u&&typeof u==`object`?u.id==null?u.name:u.id:void 0;k=e==null?`g:${E}`:`id:${e}`}else k=s?String(E):t.slot==null?`${e.i}:${a}`:`slot:${t.slot}`;if(E++,S.set(k,{x:t.x,y:t.y,fill:d,r:_,spec:x}),y)this._place(w.node,x,t.x,t.y),w.node.setAttribute(`opacity`,`0`),w.node.setAttribute(`data-piece-hidden`,`1`);else if(h){let n=b&&b.get(k),r=n||(v?g.getInitialSlotFor(e.i,a,D):f),o=i.gather&&i.gather.enter||`burst`,s=p||o===`fade`||o===`rise`,c=r?r.x:s?t.x:e.cx,l=r?r.y:o!==`rise`||p?s?t.y:e.cy:t.y+14;w.node.style.opacity=r?`1`:`0`,this._place(w.node,x,c,l),C.push({node:w.node,spec:x,x:t.x,y:t.y,cx0:c,cy0:l,key:k,r0:n&&n.r!=null?n.r:_,r1:_,fill0:n?n.fill:d,fill1:d,delay:0,isEnter:!r})}else this._place(w.node,x,t.x,t.y)}),(a===`grouped`||a===`columns`||p)&&i.clusterLabels&&i.clusterLabels.show&&u[e.i]>0){let t=p?this._gridDenom:d;this._drawClusterLabel(l,e,u[e.i],t,i,o)}r.add(l)}),this._outerLabelsOn(i)&&this._drawOuterLabels(r,f,u,d,i,h&&!b),b){let e=this._collectExits(b,S,i);if(e.length){let t=n.group({class:`apexcharts-unit-exits`});r.add(t),this._runExits(t,e,i)}}return this.ctx&&(this.ctx._unitPrevDots=S),!this.ctx||h&&!_||(this.ctx._unitSprings=null),h&&C.length?this._runGather(C):t.globals.animationEnded=!0,r}_applyMaxUnits(e,t){let n=e.reduce((e,t)=>e+t,0);if(!t||t<=0||n<=t)return e;let r=t/n;return e.map(e=>e>0?Math.max(1,Math.round(e*r)):0)}_layoutCustom(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=e.reduce((e,t)=>e+t,0),o=this._resolveLayoutProvider(t);if(!o)return this._layoutGrouped(e,t);let s=this._outerLabelsOn(t)?this._outerLabelGutter(e,t):0;this._lastOuterGutter=s;let c={x:s,y:0,width:Math.max(1,r-2*s),height:i},l=Math.sqrt(c.width*c.height/Math.PI),u=this._resolveStep(t,l,a);this._lastDotR=this._dotRadiusFromStep(u,t);let d=this._lastDotR,f=this._layoutObjects(e,d),p;try{p=o(f,c)}catch(n){return this._layoutGrouped(e,t)}if(!Array.isArray(p))return this._layoutGrouped(e,t);let m=new Map;p.forEach(e=>{e&&isFinite(e.x)&&isFinite(e.y)&&m.set(String(e.id),{x:e.x,y:e.y,r:typeof e.r==`number`&&e.r>0?e.r:void 0})});let h=e.map((e,t)=>({i:t,cx:r/2,cy:i/2,outerR:d,dots:[]}));return f.forEach(e=>{let t=m.get(e.id);t&&h[e.seriesIndex].dots.push({x:t.x,y:t.y,r:t.r,j:e.dataPointIndex})}),h.forEach(e=>{if(!e.dots.length)return;let t=0,n=0;e.dots.forEach(e=>{t+=e.x,n+=e.y}),e.cx=t/e.dots.length,e.cy=n/e.dots.length;let r=0;e.dots.forEach(t=>{r=Math.max(r,Math.hypot(t.x-e.cx,t.y-e.cy))}),e.outerR=r+d}),h}_layoutObjects(e,t){let n=this.w,r=n.seriesData.unitData||[],i=n.seriesData.seriesNames||[],a=[],o=0;return e.forEach((e,n)=>{var s;let c=r[n];for(let r=0;r<e;r++){let e=c?c[r]:void 0,l=!e||typeof e!=`object`||e.id==null&&e.name==null?`${n}:${r}`:String(e.id==null?e.name:e.id);a.push({id:l,index:o,seriesIndex:n,dataPointIndex:r,label:i[n],value:(s=this._unitValueOf(e))==null?void 0:s,datum:e,r:t}),o++}}),a}_resolveLayoutProvider(e){let t=e.positions;if(typeof t==`function`)return t;if(typeof t==`string`&&t){let e=(n=t)&&lr()[n]||null;if(e)return e}var n;return null}_layoutGrouped(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=t.clusterLabels&&t.clusterLabels.show?30:6,o=e.map((e,t)=>t).filter(t=>e[t]>0),s=Math.max(1,o.length),c=Array(e.length).fill(-1);o.forEach((e,t)=>c[e]=t);let l=r/s,u=i-a,d=Math.max(1,...e),f=.08*Math.min(l,u),p=Math.max(4,Math.min(l,u)/2-f),m=this._resolveStep(t,p,d);this._lastDotR=this._dotRadiusFromStep(m,t);let h=this._lastDotR,g=a+u/2,_=e.map(e=>m*Math.sqrt(Math.max(1,e))+h),v=e.map((e,t)=>(e=>c[e]>=0?l*(c[e]+.5):r/2)(t)),y=o.map(e=>_[e]),b=!1;for(let e=1;e<s;e++)if(v[o[e]]-v[o[e-1]]<y[e]+y[e-1]){b=!0;break}if(b){let t=Math.max(2*h,8),n=y.reduce((e,t)=>
1800e+2*t,0)+t*(s-1),i;if(n<=r){let e=(r-n)/2;i=y.map(n=>{let r=e+n;return e+=2*n+t,r})}else if(s===1)i=[r/2];else{let e=y[0],t=r-y[s-1];i=y.map((n,r)=>e+(t-e)*r/(s-1))}v=e.map((e,t)=>c[t]>=0?i[c[t]]:r/2)}return e.map((e,t)=>({i:t,cx:v[t],cy:g,outerR:_[t],dots:this._spiral(v[t],g,e,m,0)}))}_layoutPacked(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=Math.max(1,e.reduce((e,t)=>e+t,0)),o=Math.max(4,Math.min(r,i-6)/2-.06*Math.min(r,i)),s=this._resolveStep(t,o,a);this._lastDotR=this._dotRadiusFromStep(s,t);let c=r/2,l=6+(i-6)/2,u=e.map((e,t)=>t);!1!==t.sortByGroup&&u.sort((t,n)=>e[t]-e[n]);let d=e.map((e,t)=>({i:t,cx:c,cy:l,outerR:s*Math.sqrt(a)+this._lastDotR,dots:[]})),f=0;return u.forEach(t=>{for(let n=0;n<e[t];n++){let e=s*Math.sqrt(f+.5),n=f*ka;d[t].dots.push({x:c+e*Math.cos(n),y:l+e*Math.sin(n),slot:f}),f++}}),d}_layoutArc(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=Math.max(1,e.reduce((e,t)=>e+t,0)),o=t.arc||{},s=typeof o.startAngle==`number`?o.startAngle:-90,c=typeof o.endAngle==`number`?o.endAngle:90,l=s*Math.PI/180,u=c*Math.PI/180,d=u-l||Math.PI,f=Math.max(0,Math.min(.95,typeof o.innerRadiusRatio==`number`?o.innerRadiusRatio:.4)),p=e=>Math.sin(e),m=e=>-Math.cos(e),h=this._arcBounds(l,u),g=.04*Math.min(r,i),_=Math.max(1e-6,h.maxX-h.minX),v=Math.max(1e-6,h.maxY-h.minY),y=Math.max(4,Math.min((r-2*g)/_,(i-2*g)/v)),b=y*f,x=r/2-(h.minX+h.maxX)/2*y,S=i/2-(h.minY+h.maxY)/2*y,C=this._arcAllocate(a,b,y,d,t);this._lastDotR=C.dotR;let w=[];for(let e=0;e<C.R;e++){let t=C.radii[e],n=C.seatsPerRow[e];for(let e=0;e<n;e++){let r=n===1?(l+u)/2:l+d*(e+.5)/n;w.push({a:r,x:x+t*p(r),y:S+t*m(r)})}}w.sort((e,t)=>e.a-t.a);let T=e.map((e,t)=>({i:t,cx:x,cy:S,outerR:y,dots:[]})),E=0,D=0;return w.forEach((t,n)=>{for(;E<e.length&&D>=e[E];)E++,D=0;E>=e.length||(T[E].dots.push({x:t.x,y:t.y,slot:n}),D++)}),T}_arcBounds(e,t){let n=e=>Math.sin(e),r=e=>-Math.cos(e),i=Math.min(e,t),a=Math.max(e,t),o=[0,n(e),n(t)],s=[0,r(e),r(t)],c=Math.PI/2;for(let e=Math.ceil(i/c);e*c<=a;
1800e++)o.push(n(e*c)),s.push(r(e*c));return{minX:Math.min(...o),maxX:Math.max(...o),minY:Math.min(...s),maxY:Math.max(...s)}}_arcAllocate(e,t,n,r,i){let a=i.spacing>0?i.spacing:1.05,o=Math.abs(r)||Math.PI,s=this._fixedRadius(i),c=r=>{r=Math.max(1,Math.round(r));let i=[];for(let e=0;e<r;e++)i.push(r===1?(t+n)/2:t+e/(r-1)*(n-t));let s=i.reduce((e,t)=>e+t,0)||1,c=i.map(t=>e*t/s),l=c.map(e=>Math.floor(e)),u=e-l.reduce((e,t)=>e+t,0);for(c.map((e,t)=>({idx:t,frac:e-Math.floor(e)})).sort((e,t)=>t.frac-e.frac).forEach(e=>{u>0&&(l[e.idx]++,u--)});u>0;)l[r-1]++,u--;let d=r===1?n-t||n:(n-t)/(r-1),f=1/0;for(let e=0;e<r;e++){let t=l[e];if(t<=0)continue;let n=i[e]*o/t;n<f&&(f=n)}return{R:r,radii:i,seatsPerRow:l,dotR:Math.max(1,Math.min(d,f)/(2*a))}},l=i.arc&&i.arc.rows,u;if(typeof l==`number`&&l>=1)u=c(l);else if(s)u=c((n-t)/(2*s*a)+1);else{let t=Math.max(1,Math.min(40,Math.ceil(Math.sqrt(e))+6));u=c(1);for(let e=2;e<=t;e++){let t=c(e);t.dotR>u.dotR&&(u=t)}}return s&&(u.dotR=s),u}_layoutColumns(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=!(!t.clusterLabels||!t.clusterLabels.show),o=a&&t.clusterLabels.position===`bottom`,s=a&&!o?30:6,c=e.map((e,t)=>t).filter(t=>e[t]>0),l=Math.max(1,c.length),u=Array(e.length).fill(-1);c.forEach((e,t)=>u[e]=t);let d=r/l,f=.62*d,p=Math.max(8,.04*i)+(o?30:0),m=Math.max(4,i-s-p),h=Math.max(1,...e),g=t.spacing>0?t.spacing:1,_=t.columns?t.columns.size:void 0,v;v=t.shape!==`image`&&_===`auto`?null:t.shape!==`image`&&typeof _==`number`&&_>0?_:this._fixedRadius(t);let y=1,b=0;if(v){b=2*v*g,this._lastDotR=v;let e=Math.max(1,Math.floor(m/b)),t=Math.max(1,Math.floor(f/b));y=Math.max(1,Math.min(t,Math.ceil(h/e)))}else{let e=0,t=Math.max(1,Math.min(40,Math.round(f/4)));for(let n=1;n<=t;n++){let t=Math.ceil(h/n),r=Math.min(f/n,m/t);r>e&&(e=r,y=n)}b=e,this._lastDotR=Math.max(1,b/(2*g))}let x=this._lastDotR,S=Math.ceil(h/y),C=s+(m+Math.min(m,S*b))/2;return e.map((e,t)=>{let n=u[t]>=0?d*(u[t]+.5):r/2,i=Math.ceil(Math.max(1,e)/y)*b,a=n-y*b/2+b/2,o=[];for(let t=0;t<e;t++){let e=Math.floor(t/y),n=t%y;o.push({x:a+n*b,y:C-x-e*b})}return{i:t,cx:n,cy:C-i/2,outerR:i/2,flat:!0,dots:o}})}_layoutGrid(e,t){if(t.grid&&t.grid.split)return this._layoutGridSplit(e,t);this._gridTrack=null;let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=t.grid||{},o=Math.max(1,Math.round(a.columns>0?a.columns:10)),s=a.fillFrom===`top`?`top`:`bottom`,c=a.total>0?this._largestRemainder(e,Math.round(a.total)):e.slice(),l=c.reduce((e,t)=>e+t,0),u=Math.max(1,Math.ceil(Math.max(1,l)/o)),d=t.spacing>0?t.spacing:1,f=Math.max(4,r),p=Math.max(4,i-6),m=this._fixedRadius(t),h=0;m?(h=2*m*d,this._lastDotR=m):(h=Math.min(f/o,p/u),this._lastDotR=Math.max(1,h/(2*d)));let g=o*h,_=u*h,v=(r-g)/2+h/2,y=6+(p-_)/2,b=e=>s===`bottom`?y+_-h/2-e*h:y+h/2+e*h,x=e.map((e,t)=>({i:t,cx:r/2,cy:6+p/2,outerR:Math.max(g,_)/2,dots:[]})),S=0;for(let e=0;e<c.length;e++)for(let t=0;t<c[e];t++){let t=S%o,n=Math.floor(S/o);x[e].dots.push({x:v+t*h,y:b(n),slot:S}),S++}return x}_layoutGridSplit(e,t){let n=this.w,r=n.layout.gridWidth,i=n.layout.gridHeight,a=t.grid||{},o=Math.max(1,Math.round(a.columns>0?a.columns:10)),s=a.fillFrom===`top`?`top`:`bottom`,c=Math.max(1,Math.round(a.total>0?a.total:100)),l=Math.max(1,Math.ceil(c/o)),u=e.map((e,t)=>t).filter(t=>e[t]>0),d=Math.max(1,u.length),f=a.max>0?a.max:Math.max(1,...e),p=Math.max(1,Math.round(a.tileColumns>0?a.tileColumns:Math.ceil(Math.sqrt(d)))),m=Math.max(1,Math.ceil(d/p)),h=!(t.clusterLabels&&!1===t.clusterLabels.show),g=h&&t.clusterLabels&&t.clusterLabels.position===`bottom`,_=h&&!g?22:4,v=h&&g?22:4,y=r/p,b=i/m,x=Math.max(4,.86*y),S=Math.max(4,b-_-v),C=t.spacing>0?t.spacing:1,w=this._fixedRadius(t),T=0;w?(T=2*w*C,this._lastDotR=w):(T=Math.min(x/o,S/l),this._lastDotR=Math.max(1,T/(2*C)));let E=o*T,D=l*T,O=(e,t)=>s===`bottom`?e+D-T/2-t*T:e+T/2+t*T,k=[],A=[];return u.forEach((t,n)=>{let r=n%p,i=Math.floor(n/p),a=r*y,s=a+(y-E)/2+T/2,l=i*b+_+(S-D)/2,u=e=>({x:s+e%o*T,y:O(l,Math.floor(e/o))});for(let e=0;e<c;e++)k.push(u(e));let d=Math.max(0,Math.min(c,Math.round(e[t]/f*c))),m=[];for(let e=0;e<d;e++){let t=u(e);m.push({x:t.x,y:t.y,slot:n*c+e})}A.push({i:t,cx:a+y/2,cy:l+D/2,outerR:D/2,flat:!0,split:!0,dots:m})}),this._gridDenom=f,this._gridTrack={cells:k},A}_drawGridTrack(e,t,n){let r=this._gridTrack;if(!r||!r.cells||!r.cells.length)return;let i=this._lastDotR,a=(n.grid||{}).trackColor||`rgba(128,128,128,0.14)`,o=t.group({class:`apexcharts-unit-track`});
1800r.cells.forEach(e=>{let r;if(n.shape===`square`){let o=2*i;r=t.drawRect(0,0,o,o,n.borderRadius||0,a,1,0,`none`),r.node.setAttribute(`fill`,a),r.node.setAttribute(`x`,String(e.x-i)),r.node.setAttribute(`y`,String(e.y-i))}else r=t.drawCircle(i,{fill:a,"stroke-width":0,stroke:`none`}),r.node.setAttribute(`fill`,a),r.node.setAttribute(`cx`,String(e.x)),r.node.setAttribute(`cy`,String(e.y));r.node.classList.add(`apexcharts-unit-track-cell`),o.add(r)}),e.add(o)}_layoutScatter(e){let t=this.w,n=e.scatter||{};if(n.y===`value`)return this._layoutScatter2D(e);if(n.orientation===`vertical`)return this._layoutScatterVertical(e);let r=t.layout.gridWidth,i=t.layout.gridHeight,a=t.seriesData.unitData||[],o=t.seriesData.seriesNames||[],s=e=>this._unitValueOf(e),c=this._scatterSizeStats(n,a),l=a.map(e=>Array.isArray(e)?e.map(s):[]),u=e=>e!=null&&isFinite(e),d=l.map((e,t)=>t).filter(e=>l[e].some(u)),f=Math.max(1,d.length),p=1/0,m=-1/0;l.forEach(e=>e.forEach(e=>{e!=null&&isFinite(e)&&(e<p&&(p=e),e>m&&(m=e))})),p===1/0&&(p=0,m=1);let h=Math.max(2,Math.round(n.tickAmount>0?n.tickAmount:5)),g=this._scatterValueDomain(n,p,m,h),_=g.min,v=g.max,y=v-_||1,b=n.laneLabelWidth==null?f>1?92:8:Math.max(0,n.laneLabelWidth),x=30+(n.xTitle?20:0),S=b,C=r-8,w=i-x,T=Math.max(4,C-S),E=Math.max(4,w-10),D=e=>S+(e-_)/y*T,O=E/f,k=0,A=this._fixedRadius(e);if(A)k=A;else{let e=Math.max(1,...d.map(e=>l[e].filter(u).length));k=Math.max(2,Math.min(6,.12*O,T/(2.5*Math.sqrt(e))))}this._lastDotR=k;let j=e.spacing>0?e.spacing:1,M=Math.max(.5,k*j),N=n.spread===`jitter`,P=[],F=[],I=c?c.rMax:k;d.forEach((e,t)=>{let n=(e=>10+O*(e+.5))(t);F.push({i:e,cy:n,name:o[e]||`series-${e+1}`});let r=(a[e]||[]).map((e,t)=>{let r=s(e),i={j:t,px:D(u(r)?r:_),y:n};return c&&(i.r=this._scatterRadius(e,c,k)),i});if(N){let e=Math.max(I,O/2-I);r.forEach((t,r)=>{let i=(9301*r+49297)%233280/233280;t.y=n+(2*i-1)*e})}else this._beeswarm(r,n,k,M,I);P.push({i:e,cx:(S+C)/2,cy:n,outerR:O/2,dots:r.map(e=>({x:e.px,y:e.y,r:e.r}))})});let L=g.ticks;return this._scatterAxis={mode:`1d`,plotL:S,plotR:C,plotT:10,plotB:w,xMin:_,xMax:v,plotX:D,ticks:L,lanes:F,xTitle:n.xTitle,formatter:typeof n.xFormatter==`function`?n.xFormatter:null,gridlines:!1!==n.gridlines},P}_layoutScatterVertical(e){let t=this.w,n=e.scatter||{},r=t.layout.gridWidth,i=t.layout.gridHeight,a=t.seriesData.unitData||[],o=t.seriesData.seriesNames||[],s=e=>this._unitValueOf(e),c=this._scatterSizeStats(n,a),l=a.map(e=>Array.isArray(e)?e.map(s):[]),u=e=>e!=null&&isFinite(e),d=l.map((e,t)=>t).filter(e=>l[e].some(u)),f=Math.max(1,d.length),p=1/0,m=-1/0;l.forEach(e=>e.forEach(e=>{e!=null&&isFinite(e)&&(e<p&&(p=e),e>m&&(m=e))})),p===1/0&&(p=0,m=1);let h=Math.max(2,Math.round(n.tickAmount>0?n.tickAmount:5)),g=this._scatterValueDomain(n,p,m,h),_=g.min,v=g.max,y=v-_||1,b=46+(n.xTitle?18:0),x=r-10,S=i-(f>1?26:10),C=Math.max(4,x-b),w=Math.max(4,S-10),T=e=>S-(e-_)/y*w,E=C/f,D=0,O=this._fixedRadius(e);if(O)D=O;else{let e=Math.max(1,...d.map(e=>l[e].filter(u).length));D=Math.max(2,Math.min(6,.12*E,w/(2.5*Math.sqrt(e))))}this._lastDotR=D;let k=e.spacing>0?e.spacing:1,A=Math.max(.5,D*k),j=n.spread===`jitter`,M=[],N=[],P=c?c.rMax:D;d.forEach((e,t)=>{let n=(e=>b+E*(e+.5))(t);N.push({i:e,cx:n,name:o[e]||`series-${e+1}`});let r=(a[e]||[]).map((e,t)=>{let r=s(e),i={j:t,py:T(u(r)?r:_),x:n};return c&&(i.r=this._scatterRadius(e,c,D)),i});if(j){let e=Math.max(P,E/2-P);r.forEach((t,r)=>{let i=(9301*r+49297)%233280/233280;t.x=n+(2*i-1)*e})}else this._beeswarm(r,n,D,A,P,!0);M.push({i:e,cx:n,cy:(10+S)/2,outerR:E/2,dots:r.map(e=>({x:e.x,y:e.py,r:e.r}))})});let F=g.ticks;return this._scatterAxis={mode:`1d`,orientation:`vertical`,plotL:b,plotR:x,plotT:10,plotB:S,vMin:_,vMax:v,plotY:T,ticks:F,lanes:N,valueTitle:n.xTitle,formatter:typeof n.xFormatter==`function`?n.xFormatter:null,gridlines:!1!==n.gridlines},M}_layoutScatter2D(e){let t=this.w,n=t.layout.gridWidth,r=t.layout.gridHeight,i=e.scatter||{},a=t.seriesData.unitData||[],o=e=>typeof e==`number`&&isFinite(e),s=e=>e&&typeof e==`object`?e.x:null,c=e=>e&&typeof e==`object`?e.y==null?e.value:e.y:null,l=a.map((e,t)=>t).filter(e=>(a[e]||[]).some(e=>o(s(e))&&o(c(e)))),u=1/0,d=-1/0,f=1/0,p=-1/0;
1800a.forEach(e=>(e||[]).forEach(e=>{let t=s(e),n=c(e);o(t)&&o(n)&&(t<u&&(u=t),t>d&&(d=t),n<f&&(f=n),n>p&&(p=n))})),u===1/0&&(u=0,d=1,f=0,p=1);let m=Math.max(2,Math.round(i.tickAmount>0?i.tickAmount:5)),h=Math.max(2,Math.round(i.yTickAmount>0?i.yTickAmount:5)),g=this._niceScale(i.xMin==null?u:i.xMin,i.xMax==null?d:i.xMax,m),_=this._niceScale(i.yMin==null?f:i.yMin,i.yMax==null?p:i.yMax,h),v=i.xMin==null?g.min:i.xMin,y=i.xMax==null?g.max:i.xMax,b=i.yMin==null?_.min:i.yMin,x=i.yMax==null?_.max:i.yMax,S=y-v||1,C=x-b||1,w=46+(i.yTitle?18:0),T=30+(i.xTitle?20:0),E=w,D=n-12,O=r-T,k=Math.max(4,D-E),A=Math.max(4,O-10),j=e=>E+(e-v)/S*k,M=e=>O-(e-b)/C*A,N=this._scatterSizeStats(i,a),P=this._fixedRadius(e)||5;this._lastDotR=P;let F=[];l.forEach(e=>{let t=(a[e]||[]).map(e=>{let t=s(e),n=c(e);return{x:j(o(t)?t:v),y:M(o(n)?n:b),r:N?this._scatterRadius(e,N,P):void 0}});F.push({i:e,cx:(E+D)/2,cy:(10+O)/2,outerR:A/2,dots:t})});let I=(e,t,n,r,i,a)=>{let o=[];if(i)for(let t=0;t<a;t++)o.push(e+n*t/(a-1));else{let i=r||n/Math.max(1,a-1);for(let n=e;n<=t+.5*i;n+=i)o.push(Math.abs(n)<1e-9*i?0:n)}return o};return this._scatterAxis={mode:`2d`,plotL:E,plotR:D,plotT:10,plotB:O,plotX:j,plotY:M,xTicks:I(v,y,S,g.spacing,i.xMin!=null||i.xMax!=null,m),yTicks:I(b,x,C,_.spacing,i.yMin!=null||i.yMax!=null,h),xTitle:i.xTitle,yTitle:i.yTitle,xFormatter:typeof i.xFormatter==`function`?i.xFormatter:null,yFormatter:typeof i.yFormatter==`function`?i.yFormatter:null,gridlines:!1!==i.gridlines},F}_scatterSizeStats(e,t){let n=e&&e.sizeRange;if(!Array.isArray(n)||n.length<2)return null;let r=Math.max(.5,+n[0]),i=Math.max(r,+n[1]),a=e.sizeField||`z`,o=1/0,s=-1/0;return t.forEach(e=>(e||[]).forEach(e=>{let t=e&&typeof e==`object`?e[a]:null;typeof t==`number`&&isFinite(t)&&(t<o&&(o=t),t>s&&(s=t))})),o===1/0?null:{zmin:o,zmax:s,rMin:r,rMax:i,field:a}}_scatterRadius(e,t,n){if(!t)return n;let r=e&&typeof e==`object`?e[t.field]:null;if(typeof r!=`number`||!isFinite(r))return t.rMin;let i=t.zmax>t.zmin?(r-t.zmin)/(t.zmax-t.zmin):1,a=Math.max(0,Math.min(1,i)),o=t.rMin*t.rMin,s=t.rMax*t.rMax;return Math.sqrt(o+a*(s-o))}_beeswarm(e,t,n,r,i,a=!1){let o=a?`py`:`px`,s=a?`x`:`y`,c=e.slice().sort((e,t)=>e[o]-t[o]),l=[],u=i==null?n:i;c.forEach(e=>{let i=e.r==null?n:e.r,a=0;for(let n=0;n<2e3;n++){let s=n===0?0:Math.ceil(n/2)*r*(n%2?1:-1),c=t+s,d=!0;for(let t=l.length-1;t>=0;t--){let n=l[t],r=e[o]-n.f;if(r>i+u)break;let a=i+n.r,s=c-n.s;if(r*r+s*s<a*a){d=!1;break}}if(d){a=s;break}}e[s]=t+a,l.push({f:e[o],s:e[s],r:i})})}_scatterValueDomain(e,t,n,r){let i=(e,t,n)=>{let r=[];for(let i=e;i<=t+.5*n;i+=n)r.push(Math.abs(i)<1e-9*n?0:i);return r};if(e.xMin!=null||e.xMax!=null){let a=e.xMin==null?t:e.xMin,o=e.xMax==null?n:e.xMax;o>a||(o=a+1);let s=(o-a)/Math.max(1,r-1);return t<a&&(a-=Math.ceil((a-t)/s)*s),n>o&&(o+=Math.ceil((n-o)/s)*s),{min:a,max:o,ticks:i(a,o,s)}}let a=this._niceScale(t,n,r),o=a.spacing||(a.max-a.min)/Math.max(1,r-1);return{min:a.min,max:a.max,ticks:i(a.min,a.max,o)}}_niceScale(e,t,n){let r=e,i=t;i>r||(i=r+1);let a=this._niceNum(i-r,!1),o=this._niceNum(a/Math.max(1,n-1),!0);return{min:Math.floor(r/o)*o,max:Math.ceil(i/o)*o,spacing:o}}_niceNum(e,t){let n=e>0?e:1,r=Math.floor(Math.log(n)/Math.LN10),i=n/Math.pow(10,r),a;return a=t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,a*Math.pow(10,r)}_drawScatterAxes(e,t){let n=this.w;if(!d.isBrowser())return;let r=this._scatterAxis;if(!r)return;let i=`http://www.w3.org/2000/svg`,a=t.group({class:`apexcharts-unit-axis`}),o=n.config.grid&&n.config.grid.borderColor||`rgba(128,128,128,0.18)`,s=`rgba(128,128,128,0.5)`,c=n.config.xaxis&&n.config.xaxis.labels&&n.config.xaxis.labels.style&&n.config.xaxis.labels.style.colors,l=Array.isArray(c)?c[0]:c,u=l||`rgba(120,130,140,0.9)`,f=(e,t,n,r,o)=>{let s=v.createElementNS(i,`line`);s.setAttribute(`x1`,String(e)),s.setAttribute(`y1`,String(t)),s.setAttribute(`x2`,String(n)),s.setAttribute(`y2`,String(r)),s.setAttribute(`stroke`,o),s.setAttribute(`shape-rendering`,`crispEdges`),a.node.appendChild(s)},p=(e,t,r,o,s,c,l,u)=>{let d=v.createElementNS(i,`text`);d.setAttribute(`class`,u),d.setAttribute(`x`,String(t)),d.setAttribute(`y`,String(r)),d.setAttribute(`text-anchor`,o),d.setAttribute(`dominant-baseline`,`middle`),d.setAttribute(`font-size`,`${c}px`),d.setAttribute(`font-family`,n.config.chart.fontFamily||`inherit`),d.setAttribute(`font-weight`,String(l)),d.setAttribute(`fill`,s),d.textContent=e,a.node.appendChild(d)};if(r.mode!==`2d`){if(r.orientation===`vertical`){if(r.ticks.forEach(e
1800=>{let t=r.plotY(e);r.gridlines&&f(r.plotL,t,r.plotR,t,o);let n=r.formatter?String(r.formatter(e)):this._formatTick(e);p(n,r.plotL-8,t,`end`,u,11,400,`apexcharts-unit-tick`)}),f(r.plotL,r.plotT,r.plotL,r.plotB,s),r.valueTitle){let e=v.createElementNS(i,`text`);e.setAttribute(`class`,`apexcharts-unit-axis-title`);let t=(r.plotT+r.plotB)/2;e.setAttribute(`x`,`14`),e.setAttribute(`y`,String(t)),e.setAttribute(`text-anchor`,`middle`),e.setAttribute(`font-size`,`12px`),e.setAttribute(`font-family`,n.config.chart.fontFamily||`inherit`),e.setAttribute(`font-weight`,`600`),e.setAttribute(`fill`,u),e.setAttribute(`transform`,`rotate(-90 14 ${t})`),e.textContent=String(r.valueTitle),a.node.appendChild(e)}r.lanes.forEach(e=>{let t=l||n.globals.colors[e.i]||n.globals.colors[0]||`#008FFB`;p(e.name,e.cx,r.plotB+16,`middle`,t,12,600,`apexcharts-unit-lane-label`)}),e.add(a);return}r.ticks.forEach((e,t)=>{let n=r.plotX(e);r.gridlines&&f(n,r.plotT,n,r.plotB,o);let i=r.formatter?String(r.formatter(e)):this._formatTick(e),a=t===0?`start`:t===r.ticks.length-1?`end`:`middle`;p(i,n,r.plotB+14,a,u,11,400,`apexcharts-unit-tick`)}),f(r.plotL,r.plotB,r.plotR,r.plotB,s),r.xTitle&&p(String(r.xTitle),(r.plotL+r.plotR)/2,r.plotB+32,`middle`,u,12,600,`apexcharts-unit-axis-title`),r.plotL>12&&r.lanes.forEach(e=>{let t=l||n.globals.colors[e.i]||n.globals.colors[0]||`#008FFB`;p(e.name,r.plotL-8,e.cy,`end`,t,12,600,`apexcharts-unit-lane-label`)}),e.add(a)}else{if(r.yTicks.forEach(e=>{let t=r.plotY(e);r.gridlines&&f(r.plotL,t,r.plotR,t,o);let n=r.yFormatter?String(r.yFormatter(e)):this._formatTick(e);p(n,r.plotL-8,t,`end`,u,11,400,`apexcharts-unit-tick`)}),r.xTicks.forEach(e=>{let t=r.plotX(e);r.gridlines&&f(t,r.plotT,t,r.plotB,o);let n=r.xFormatter?String(r.xFormatter(e)):this._formatTick(e);p(n,t,r.plotB+14,`middle`,u,11,400,`apexcharts-unit-tick`)}),f(r.plotL,r.plotB,r.plotR,r.plotB,s),f(r.plotL,r.plotT,r.plotL,r.plotB,s),r.xTitle&&p(String(r.xTitle),(r.plotL+r.plotR)/2,r.plotB+32,`middle`,u,12,600,`apexcharts-unit-axis-title`),r.yTitle){let e=v.createElementNS(i,`text`);e.setAttribute(`class`,`apexcharts-unit-axis-title`);let t=(r.plotT+r.plotB)/2;e.setAttribute(`x`,`14`),e.setAttribute(`y`,String(t)),e.setAttribute(`text-anchor`,`middle`),e.setAttribute(`font-size`,`12px`),e.setAttribute(`font-family`,n.config.chart.fontFamily||`inherit`),e.setAttribute(`font-weight`,`600`),e.setAttribute(`fill`,u),e.setAttribute(`transform`,`rotate(-90 14 ${t})`),e.textContent=String(r.yTitle),a.node.appendChild(e)}e.add(a)}}_formatTick(e){if(!isFinite(e))return``;let t=Math.abs(e);return t>=1e6?+(e/1e6).toFixed(1)+`M`:t>=1e4?+(e/1e3).toFixed(1)+`k`:String(Number.isInteger(e)?e:+e.toFixed(2))}_largestRemainder(e,t){let n=e.reduce((e,t)=>e+t,0);if(n<=0||t<=0)return e.map(()=>0);let r=e.map(e=>e/n*t),i=r.map(e=>Math.floor(e)),a=i.reduce((e,t)=>e+t,0),o=Math.max(0,t-a),s=r.map((e,t)=>({i:t,frac:e-Math.floor(e)})).sort((e,t)=>t.frac-e.frac),c=i.slice();for(let e=0;e<o&&e<s.length;e++)c[s[e].i]++;return c}_spiral(e,t,n,r,i){let a=[];for(let o=0;o<n;o++){let n=i+o,s=r*Math.sqrt(n+.5),c=n*ka;a.push({x:e+s*Math.cos(c),y:t+s*Math.sin(c)})}return a}_fixedRadius(e){return e.shape===`image`&&e.image?Math.max(e.image.width||20,e.image.height||20)/2:this._bubbleActive(e)&&typeof e.sizeByValue.maxRadius==`number`?e.sizeByValue.maxRadius>0?e.sizeByValue.maxRadius:null:typeof e.size==`number`&&e.size>0?e.size:null}_bubbleActive(e){let t=e.sizeByValue;return!(!t||!t.enabled||e.shape===`image`||e.shape===`square`)}_unitValueOf(e){if(typeof e==`number`)return e;if(e&&typeof e==`object`){let t=e.value==null?e.y:e.value;return typeof t==`number`?t:null}return null}_radiusForValue(e,t){if(e==null||!isFinite(e))return t.minR;let n=t.max>t.min?(e-t.min)/(t.max-t.min):1,r=Math.max(0,Math.min(1,n));if(t.scale===`linear`)return t.minR+r*(t.maxR-t.minR);let i=t.minR*t.minR,a=t.maxR*t.maxR;return Math.sqrt(i+r*(a-i))}_bubbleStats(e,t,n){if(!this._bubbleActive(t))return null;let r=1/0,i=-1/0;if(e.forEach(e=>{e&&e.forEach(e=>{let t=this._unitValueOf(e);t!=null&&isFinite(t)&&(t<r&&(r=t),t>i&&(i=t))})}),r===1/0||i<r)return null;let a=t.sizeByValue,o=n,s=Math.max(1,Math.min(o,typeof a.minRadius==`number`?a.minRadius:.35*o));return{min:r,max:i,minR:s,maxR:o,scale:a.scale===`linear`?`linear`:`area`}}_resolveStep(e,t,n){let r=e.spacing>
18000?e.spacing:1,i=this._fixedRadius(e);return i?2*i*r:t/(Math.sqrt(Math.max(1,n))+.5)}_dotRadiusFromStep(e,t){let n=t.spacing>0?t.spacing:1;return this._fixedRadius(t)||Math.max(1,e/(2*n))}_isCorner(e){return e.shape===`square`||e.shape===`image`}_halfExtent(e,t){if(e.shape===`image`&&e.image)return{hx:(e.image.width||20)/2,hy:(e.image.height||20)/2};let n=t==null?this._lastDotR:t;return{hx:n,hy:n}}_place(e,t,n,r){let i=t;i.pk===2?e.setAttribute(`transform`,`translate(`+(n-i.ox)+`,`+(r-i.oy)+i.tail):i.pk===1?(e.setAttribute(`x`,String(n-i.hx)),e.setAttribute(`y`,String(r-i.hy))):(e.setAttribute(`cx`,String(n)),e.setAttribute(`cy`,String(r)))}_baseSpec(e,t){let n=t==null?this._lastDotR:t;if(!this._isCorner(e))return{pk:0,r:n};let{hx:r,hy:i}=this._halfExtent(e,n);return{pk:1,hx:r,hy:i,r:n}}_resolveMark(e){if(e==null)return null;if(typeof e==`object`)return fr(e);if(typeof e!=`string`||!e)return null;let t=e.trim();if(t[0]===`M`||t[0]===`m`)return fr(t);let n=(r=t)&&dr()[r]||null;var r;return n||(this._markWarned||(this._markWarned=new Set),this._markWarned.has(t)||this._markWarned.add(t),null)}_glyphSpec(e,t,n){let r=Math.round(10*t)/10,i=e.name+`|`+e.path.length+`|`+r,a=this._specCache.get(i);if(a)return a;let o=e.viewBox||[0,0,100,100],s=2*r*(1-Math.max(0,Math.min(.9,n.padding||0)))*(typeof n.scale==`number`&&n.scale>0?n.scale:1),c=n.fit===`width`?s/o[2]:n.fit===`height`?s/o[3]:s/Math.max(o[2],o[3]),l=Object.freeze({pk:2,mark:e,d:e.path,fillRule:e.fillRule,s:c,ox:(o[0]+o[2]/2)*c,oy:(o[1]+o[3]/2)*c,tail:`) scale(`+c+`)`,r});return this._specCache.set(i,l),l}_markSpecFor(e,t,n,r){if(e.shape!==`pictogram`)return this._baseSpec(e,r);let i=e.pictogram||{},a=t&&typeof t==`object`?t.mark:void 0,o=Array.isArray(i.mark)?i.mark[n%i.mark.length]:i.mark,l=this._resolveMark(a==null?o:a);return l?this._glyphSpec(l,r,i):this._baseSpec(c(s({},e),{shape:i.fallback===`square`?`square`:`circle`}),r)}_drawDot(e,t,n,r,i,a,o){let s=this.w,c=s.config.stroke.show?s.config.stroke.width:0,l=Array.isArray(s.globals.stroke.colors)&&s.globals.stroke.colors[i]||`none`,u=typeof s.config.fill.opacity==`number`?s.config.fill.opacity:1,d;if(o&&o.pk===2)d=s.dom.Paper.path(o.d),d.node.setAttribute(`fill`,r),o.fillRule===`evenodd`&&d.node.setAttribute(`fill-rule`,`evenodd`),u<1&&d.node.setAttribute(`fill-opacity`,String(u)),d.node.setAttribute(`data:r`,String(o.r));else if(t.shape===`image`&&t.image&&t.image.src){let e=t.image.width||20,n=t.image.height||20;d=s.dom.Paper.image(t.image.src),d.node.setAttribute(`width`,String(e)),d.node.setAttribute(`height`,String(n)),d.node.setAttribute(`preserveAspectRatio`,`xMidYMid meet`),t.image.tint&&d.node.setAttribute(`filter`,`url(#${this._tintFilter(r)})`)}else if(t.shape===`square`){let i=2*n;d=e.drawRect(0,0,i,i,t.borderRadius||0,r,1,c,l),d.node.setAttribute(`fill`,r),u<1&&d.node.setAttribute(`fill-opacity`,String(u))}else d=e.drawCircle(n,{fill:r,"stroke-width":c,stroke:l}),d.node.setAttribute(`fill`,r),u<1&&d.node.setAttribute(`fill-opacity`,String(u));return d.node.classList.add(`apexcharts-unit-area`),d.node.setAttribute(`i`,String(i)),d.node.setAttribute(`j`,String(a)),d}_tintFilter(e){let t=this.w,n=`http://www.w3.org/2000/svg`,r=String(e).replace(/[^a-zA-Z0-9]/g,``),i=`apexcharts-unit-tint-${t.globals.chartID}-${r}`,a=t.dom.Paper.node;if(a.querySelector(`#${i}`))return i;let o=a.querySelector(`defs`);o||(o=v.createElementNS(n,`defs`),a.insertBefore(o,a.firstChild));let s=v.createElementNS(n,`filter`);s.setAttribute(`id`,i),s.setAttribute(`x`,`0%`),s.setAttribute(`y`,`0%`),s.setAttribute(`width`,`100%`),s.setAttribute(`height`,`100%`);let c=v.createElementNS(n,`feFlood`);c.setAttribute(`flood-color`,e),c.setAttribute(`result`,`flood`);let l=v.createElementNS(n,`feComposite`);return l.setAttribute(`in`,`flood`),l.setAttribute(`in2`,`SourceAlpha`),l.setAttribute(`operator`,`in`),s.appendChild(c),s.appendChild(l),o.appendChild(s),i}_placeDot(e,t,n,r,i){this._place(e,i||this._baseSpec(t),n,r)}_rgb(e){if(typeof e!=`string`)return null;let t=e.trim();if(t[0]===`#`){t.length===4&&(t=`#`+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t.slice(1,7),16);return isNaN(e)?null:[e>>16&255,e>>8&255,255&e]}let n=t.match(/rgba?\(([^)]+)\)/);if(n){let e=n[1].split(`,`).map(e=>parseFloat(e));if(e.length>=3&&e.every(e=>!isNaN(e)))return[e[0],e[1],e[2]]}return null}_shouldAnimate(){let e=this.w,t=e.config.chart.animations;return!!d.isBrowser()&&!(!t||!1===t.enabled)&&!1!==e.globals.shouldAnimate&&!(e.globals.resized&&!e.globals.dataChanged)&&(!t.respectReducedMotion||!ke())}
1800_seedSprings(e,t,n){let[r,i]=Ma(t.spring,n),a=this.ctx?this.ctx._unitSprings:null,o=new Map;for(let t=0;t<e.length;t++){let n=e[t],s=a&&!n.isEnter&&n.key!=null?a.get(n.key):null,c=s?s.x:Nr(n.cx0,r,i),l=s?s.y:Nr(n.cy0,r,i);s&&(c.stiffness=r,l.stiffness=r,c.damping=i,l.damping=i,n.cx0=c.value,n.cy0=l.value,this._place(n.node,n.spec,n.cx0,n.cy0),c.velocity===0&&l.velocity===0||(n.delay=0)),n.sx=c,n.sy=l,n.key!=null&&o.set(n.key,{x:c,y:l})}this.ctx&&(this.ctx._unitSprings=o)}_runGather(e){let t=this.w,n=t.config.plotOptions.unit,r=Math.max(1,t.config.chart.animations.speed||800),i=Math.min(.6*r,450),a=e.length;for(let t=0;t<a;t++)e[t].delay=a>1?t/(a-1)*i:0;let o=n.gather||{},s=o.motion||`auto`;s===`spring`||s===`auto`&&(!o.easing||o.easing===`outCubic`)?this._seedSprings(e,o,r):this.ctx&&(this.ctx._unitSprings=null);for(let t=0;t<a;t++){let n=e[t];n.spec.pk===0&&n.r0!=null&&n.r1!=null&&n.r0!==n.r1&&n.node.setAttribute(`r`,String(n.r0))}for(let t=0;t<a;t++){let n=e[t];n.fill0&&n.fill1&&n.fill0!==n.fill1&&(n._c0=this._rgb(n.fill0),n._c1=this._rgb(n.fill1))}let c=o.easing===`outBack`?(l=typeof o.overshoot==`number`?o.overshoot:1.70158,e=>1+(l+1)*Math.pow(e-1,3)+l*Math.pow(e-1,2)):o.easing===`inOutCubic`?ja:Aa;var l;this.w.globals.unitGatherRAF!=null&&(v.cancelAnimationFrame(this.w.globals.unitGatherRAF),this.w.globals.unitGatherRAF=null);let u=performance.now(),d=u,f=t=>{if(this.w.globals.isDestroyed)return this.w.globals.unitGatherRAF=null,void(this.w.globals.animationEnded=!0);let n=Math.min(.25,Math.max(0,(t-d)/1e3));d=t;let i=!0;for(let o=0;o<a;o++){let a=e[o],s=t-u-a.delay,l=Math.max(0,Math.min(1,s/r)),d=Aa(l),f,p;if(a.sx&&a.sy){s>=0&&!a.released&&(Fr(a.sx,a.x),Fr(a.sy,a.y),a.released=!0);let e=Pr(a.sx,n),t=Pr(a.sy,n);a.released&&e&&t||(i=!1),f=a.sx.value,p=a.sy.value}else{let e=c(l);f=a.cx0+(a.x-a.cx0)*e,p=a.cy0+(a.y-a.cy0)*e}if(this._place(a.node,a.spec,f,p),a.isEnter&&(a.node.style.opacity=String(Math.min(1,2.5*l))),a._c0&&a._c1){let e=Math.round(a._c0[0]+(a._c1[0]-a._c0[0])*d),t=Math.round(a._c0[1]+(a._c1[1]-a._c0[1])*d),n=Math.round(a._c0[2]+(a._c1[2]-a._c0[2])*d);a.node.setAttribute(`fill`,`rgb(${e},${t},${n})`)}a.spec.pk===0&&a.r0!=null&&a.r1!=null&&a.r0!==a.r1&&a.node.setAttribute(`r`,String(a.r0+(a.r1-a.r0)*d)),l<1&&(i=!1)}if(i){for(let t=0;t<a;t++){let n=e[t];n.node.style.opacity=``,n._c1&&n.fill1&&n.node.setAttribute(`fill`,n.fill1),n.spec.pk===0&&n.r0!=null&&n.r1!=null&&n.r0!==n.r1&&n.node.setAttribute(`r`,String(n.r1))}this.w.globals.unitGatherRAF=null,this.w.globals.animationEnded=!0}else this.w.globals.unitGatherRAF=v.requestAnimationFrame(f)};this.w.globals.unitGatherRAF=v.requestAnimationFrame(f)}_collectExits(e,t,n){let r=Math.max(0,n.maxUnits||5e3),i=[];for(let[n,a]of e)if(!t.has(n)&&(i.push(a),i.length>=r))break;return i}_runExits(e,t,n){let r=this.w,i=new K(r,this.ctx),a=this._lastDotR,o=r.layout.gridWidth/2,s=r.layout.gridHeight/2,c=n.layout===`grid`||n.layout===`scatter`||n.layout===`arc`||n.layout===`custom`?0:.35,l=[];if(t.forEach(t=>{let r=t.r==null?a:t.r,o=t.spec||this._baseSpec(n,r),s=this._drawDot(i,n,r,t.fill,0,0,o);s.node.classList.add(`apexcharts-unit-exit`),this._place(s.node,o,t.x,t.y),e.add(s),l.push({node:s.node,x0:t.x,y0:t.y,spec:o})}),!this._shouldAnimate())return void l.forEach(e=>e.node.remove());let u=Math.max(1,r.config.chart.animations.speed||800);this.w.globals.unitExitRAF!=null&&(v.cancelAnimationFrame(this.w.globals.unitExitRAF),this.w.globals.unitExitRAF=null);let d=performance.now(),f=t=>{if(this.w.globals.isDestroyed)return void(this.w.globals.unitExitRAF=null);let n=Math.max(0,Math.min(1,(t-d)/u)),r=Aa(n);for(let e=0;e<l.length;e++){let t=l[e];if(c){let e=t.x0+(o-t.x0)*r*c,n=t.y0+(s-t.y0)*r*c;this._place(t.node,t.spec,e,n)}t.node.style.opacity=String(1-r)}n<1?this.w.globals.unitExitRAF=v.requestAnimationFrame(f):(this.w.globals.unitExitRAF=null,e.node&&e.node.remove())};this.w.globals.unitExitRAF=v.requestAnimationFrame(f)}_outerLabelsOn(e){let t=e.clusterLabels;return!!(e.layout===`custom`&&t&&!1!==t.show&&t.external&&t.external.show)}_outerLabelLines(e,t,n,r){let i=this.w,a=i.seriesData.seriesNames[e]||`series-${e+1}`,o=n>0?t/n*100:0,s=r.clusterLabels,c=typeof s.formatter==`function`?s.formatter(a,{seriesIndex:e,value:t,percent:o,w:i}):`${a}\n${o.toFixed(1)}%`;return String(c).split(`
1801`)}_outerLabelGutter(e,t){let n=this.w,r=t.clusterLabels,i=r.external.connector||{},a=e.reduce((e,t)=>
1801e+t,0),o=[];if(e.forEach((e,n)=>{e>0&&o.push(...this._outerLabelLines(n,e,a,t))}),!o.length)return 0;let s=function(e,t,n={}){let r=new K(e),i=n.fontSize||`12px`,a=parseFloat(i)||12,o=0;return t.forEach(e=>{if(e==null||e===``)return;let t=`${e}`,s=r.getTextRects(t,i,n.fontFamily,``).width;o=Math.max(o,s>0?s:t.length*a*.58)}),o}(n,o,{fontSize:r.fontSize,fontFamily:r.fontFamily||n.config.chart.fontFamily})+(i.gap==null?8:i.gap)+(i.length==null?22:i.length)+8+Math.abs(parseFloat(r.external.offsetX)||0);return Math.min(s,.25*n.layout.gridWidth)}_drawOuterLabels(e,t,n,r,i,a){let o=this.w;if(!d.isBrowser())return;let s=i.clusterLabels,c=s.external,l=c.connector||{},u=l.gap==null?8:l.gap,f=l.length==null?22:l.length,p=parseFloat(c.offsetX)||0,m=parseFloat(c.offsetY)||0,h=o.layout.gridWidth,g=o.layout.gridHeight,_=this._lastDotR,v=t.filter(e=>e.dots.length>0);if(!v.length)return;let y=0,b=0;if(v.length>1){let e=v.map(e=>e.cx),t=v.map(e=>e.cy);y=Math.max(...e)-Math.min(...e),b=Math.max(...t)-Math.min(...t)}let x=y>b,S=parseFloat(s.fontSize)||13,C=Math.round(1.35*S),w=[];if(v.slice().sort((e,t)=>e.cy-t.cy).forEach((e,t)=>{let a=this._outerLabelLines(e.i,n[e.i],r,i);if(!a.some(e=>e!==``))return;let o=x?e.cx>=h/2?`right`:`left`:t%2==0?`right`:`left`,s=o===`right`?1:-1,c=e.dots[0],l=-1/0;e.dots.forEach(t=>{let n=s*t.x-.75*Math.abs(t.y-e.cy);n>l&&(l=n,c=t)});let d={x:c.x+s*(c.r||_),y:c.y},g={x:d.x+s*u,y:d.y};w.push({i:e.i,lines:a,anchor:d,elbow:g,labelX:g.x+s*f+p,idealY:d.y+m,labelY:d.y+m,side:o})}),!w.length)return;let T=w.reduce((e,t)=>Math.max(e,t.lines.length),1)*C,E=T/2;[`left`,`right`].forEach(e=>{pa(w.filter(t=>t.side===e),T+2,g-E,E)});let D=new K(o,this.ctx).group({class:`apexcharts-unit-outer-labels`});if(a){let e=Math.max(1,o.config.chart.animations.speed||800);D.node.classList.add(`apexcharts-unit-label-delay`),D.node.style.animationDelay=Math.min(.45*e,600)/1e3+`s`}w.forEach(e=>{let t=o.globals.colors[e.i]||o.globals.colors[0]||`#008FFB`;D.add(fa(o,{lines:e.lines,lineHeight:C,anchor:e.anchor,elbow:e.elbow,labelX:e.labelX,labelY:e.labelY,side:e.side,connector:{show:!1!==l.show,width:l.width==null?1.5:l.width,color:l.color||t},style:{fontSize:s.fontSize,fontFamily:s.fontFamily||o.config.chart.fontFamily,fontWeight:s.fontWeight},foreColor:s.color||o.config.chart.foreColor,groupClass:`apexcharts-unit-outer-label-group`,textClass:`apexcharts-unit-outer-label`,connectorClass:`apexcharts-unit-label-connector`}))}),e.add(D)}_drawClusterLabel(e,t,n,r,i,a){let o=this.w;if(!d.isBrowser())return;let s=`http://www.w3.org/2000/svg`,c=o.seriesData.seriesNames[t.i]||`series-${t.i+1}`,l=r>0?n/r*100:0,u=i.clusterLabels,f=parseFloat(u.fontSize)||13,p;p=typeof u.formatter==`function`?u.formatter(c,{seriesIndex:t.i,value:n,percent:l,w:o}):`${c} (${l.toFixed(1)}%)`;let m=typeof p==`string`?p:String(p),h=v.createElementNS(s,`text`);h.setAttribute(`class`,`apexcharts-unit-label`),h.setAttribute(`text-anchor`,`middle`),h.setAttribute(`font-size`,`${f}px`),h.setAttribute(`font-family`,u.fontFamily||o.config.chart.fontFamily||`inherit`),h.setAttribute(`font-weight`,String(u.fontWeight||600)),h.setAttribute(`fill`,u.color||a);let g=u.position===`bottom`,_=t.outerR+.6*f+3+(u.offsetY||0),y=m.length*f*.55;if(!g&&!t.flat&&!1!==u.curved&&y<=Math.PI*_*.95){let n=t.cy,r=`M ${t.cx-_} ${n} A ${_} ${_} 0 0 1 ${t.cx+_} ${n}`,i=`apexcharts-unit-label-${o.globals.chartID}-${t.i}`,a=v.createElementNS(s,`path`);a.setAttribute(`id`,i),a.setAttribute(`d`,r),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,`none`);let c=v.createElementNS(s,`textPath`);c.setAttribute(`href`,`#${i}`),c.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,`#${i}`),c.setAttribute(`startOffset`,`50%`),c.textContent=m,h.appendChild(c),e.node.appendChild(a)}else{h.setAttribute(`x`,String(t.cx));let e=g?t.cy+t.outerR+f+6+(u.offsetY||0):t.cy-t.outerR-6-(u.offsetY||0);h.setAttribute(`y`,String(e)),h.textContent=m}e.node.appendChild(h)}},sunburst:class{constructor(e,t){this.ctx=t,this.w=e;let n=e.config;this.cfg=n.plotOptions.sunburst,this.strokeWidth=n.stroke.show?n.stroke.width:0,this.strokeColor=Array.isArray(n.stroke.colors)?n.stroke.colors[0]:n.stroke.colors||`#fff`,this.startAngle=this.cfg.startAngle,this.endAngle=this.cfg.endAngle,this.maxDepth=0,this.centerX=0,this.centerY=0,this.maxRadius=0,this.total=1,this._focusMaxDepth=0,this._focus=null,this._zoomGen=0,this._roots=[],this._nodesAll=[],this._innerR=()=>0,this._outerR=()=>0,this._tooltipEl=null,this._lblSeq=0,this._morphLeafIndex=0,this._graphics=null,this._ringsG=null,this._labelsG=null}draw(e){let t=this.w,n=new K(this.w);this._graphics=n;let r=n.group({class:`apexcharts-sunburst`});if(t.globals.noData||!e||!e.length)return r;let i=t.layout.gridWidth,a=t.layout.gridHeight;if(this.centerX=i/2+(this.cfg.offsetX||0),this.centerY=a/2+(this.cfg.offsetY||0),this.maxRadius=Math.min(i,a)/2.05-this.strokeWidth-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.maxRadius<5||(this._roots=this._buildHierarchy(),!this._roots.length))return r;
1801this._roots.forEach(e=>this._fillValues(e)),this._validateStrict(),this._nodesAll=[];let o=t.globals.colors||[];this._roots.forEach((e,t)=>{this._colorPass(e,e.color||o[t%o.length]||`#008FFB`)}),this.total=this._roots.reduce((e,t)=>e+Math.max(0,t.value),0)||1,this._ringsG=n.group({class:`apexcharts-sunburst-rings`}),this._labelsG=n.group({class:`apexcharts-sunburst-labels`}),r.add(this._ringsG),r.add(this._labelsG),this._focus=null,this._relayout(this._focus);let s=t.config.chart.animations,c=`none`;return s.enabled&&(t.globals.dataChanged?s.dynamicAnimation.enabled&&(c=`update`):t.globals.resized||(c=`intro`)),this._applyLayout(c),this._renderBreadcrumb(),r}_buildHierarchy(){return function(e,t={}){let n=e.config.series,r=n&&n[0],i=r&&Array.isArray(r.data)?r.data:n;return Array.isArray(i)?i.map((n,r)=>xn(e,n,r,null,``,null,t)):[]}(this.w)}_fillValues(e){Z(e)}_validateStrict(){if(this.cfg.partition!==`strict`)return;let e=!1,t=n=>{if(n.children&&n.children.length){let r=n.children.reduce((e,t)=>e+Math.max(0,t.value||0),0);!e&&n.value!=null&&Math.abs(r-n.value)>.5&&(e=!0),n.children.forEach(t)}};this._roots.forEach(t)}_colorPass(e,t){e._color=e.color||t,this._nodesAll.push(e),e.children&&e.children.forEach(t=>this._colorPass(t,t.color||this._lighten(e._color,this.cfg.tint)))}_relayout(e){if(this._nodesAll.forEach(e=>{e._show=!1}),this._focusMaxDepth=0,e)this._placeVis(e,0,this.startAngle,this.endAngle,e._parent);else{let e=this._roots.reduce((e,t)=>e+Math.max(0,t.value),0)||1,t=this.startAngle;this._roots.forEach(n=>{let r=(this.endAngle-this.startAngle)*Math.max(0,n.value)/e;this._placeVis(n,0,t,t+r,null),t+=r})}let t=this._parseSize(this.cfg.innerSize,this.maxRadius),n=this._focusMaxDepth+1,r=(this.maxRadius-t)/n,i=+(n>1);this._innerR=e=>t+e*r+(e>0?i/2:0),this._outerR=e=>t+(e+1)*r-i/2,this._nodesAll.forEach(e=>{e._show&&(e._iR=this._innerR(e._vDepth),e._oR=e._leaf&&this.cfg.leaf===`extend`&&e._vDepth<this._focusMaxDepth?this.maxRadius:this._outerR(e._vDepth))})}_placeVis(e,t,n,r,i){if(e._show=!0,e._vDepth=t,e._a0=n,e._a1=r,e._parent=i,e._leaf=!(e.children&&e.children.length),t>this._focusMaxDepth&&(this._focusMaxDepth=t),!e._leaf){let i=e.children.reduce((e,t)=>e+Math.max(0,t.value),0)||1,a=n;e.children.forEach(o=>{let s=(r-n)*Math.max(0,o.value)/i;this._placeVis(o,t+1,a,a+s,e),a+=s})}}_applyLayout(e){var t;let n=this.w.config.chart.animations,r=n.enabled?e===`none`?0:e===`update`?n.dynamicAnimation.speed||350:n.speed||500:0,i=++this._zoomGen,a=(t=this.ctx)==null?void 0:t.morphTypeChange,o=!!a&&typeof a.isActive==`function`&&a.isActive()&&typeof a.getInitialPathAt==`function`,s=o?a.getSpeed():0;this._morphLeafIndex=0;let c=e===`update`?this.ctx._sunburstPrevGeoms:null;this._nodesAll.forEach(t=>{if(t._show){let n={a0:t._a0,a1:t._a1,iR:t._iR,oR:t._oR};t._el||(t._el=this._createArcEl(t));let a=o?this._morphSourceFor(t):null;if(a&&s>0)this._morphArcFrom(t,a,n,s,i);else if((e===`intro`||o)&&r>0)this._sweepArc(t,n,o?s:r,i);else{let e,a=!1;if(t._cur)e=t._cur;else if(c&&c.get(t._key))e=c.get(t._key);else{let t=(n.a0+n.a1)/2;e={a0:t,a1:t,iR:n.iR,oR:n.iR},a=!0}this._animateArc(t,e,n,r,!1,a,i)}}else if(t._el&&t._cur){let e=(t._cur.a0+t._cur.a1)/2,n={a0:e,a1:e,iR:t._cur.iR,oR:t._cur.iR};this._animateArc(t,t._cur,n,r,!0,!1,i)}});let l=new Map;this._nodesAll.forEach(e=>{e._show&&l.set(e._key,{a0:e._a0,a1:e._a1,iR:e._iR,oR:e._oR})}),this.ctx._sunburstPrevGeoms=l,this._renderLabels(r)}_morphSourceFor(e){let t=this.ctx,n=t&&t.morphTypeChange;return n?typeof n.hasKeyedMarks==`function`&&n.hasKeyedMarks()&&typeof n.getInitialPathForKey==`function`?n.getInitialPathForKey(Cn(e._key)):e.children&&e.children.length?null:n.getInitialPathAt(this._morphLeafIndex++):null}_morphArcFrom(e,t,n,r,i){let a=e._el,o=this._arcPath(n.iR,n.oR,n.a0,n.a1,this.cfg.borderRadius);a.node.style.display=``,a.attr({d:t,opacity:1}),e._cur=n,this._zoomGen===i&&new Ne(this.w,this.ctx).morphSVG(a,0,null,e._color,t,o,r,0)}_sweepArc(e,t,n,r){let i=e._el,a=this.cfg.borderRadius,o=this.startAngle,s=this.endAngle;i.node.style.display=``,i.attr({d:``,opacity:1}),i.animate(n).during(n=>{if(this._zoomGen!==r)return;let c=o+(s-o)*n;if(c<=t.a0+.01)return void i.attr({d:``});let l=Math.min(t.a1,c);i.attr({d:this._arcPath(t.iR,t.oR,t.a0,l,a)}),e._cur={a0:t.a0,a1:l,iR:t.iR,oR:t.oR}}).after(()=>{this._zoomGen===r&&(e._cur=t)}
1801)}_createArcEl(e){let t=this._graphics.drawPath({d:``,fill:e._color,stroke:this.strokeColor,strokeWidth:this.strokeWidth,fillOpacity:1,classes:`apexcharts-sunburst-arc`}),n=t.node;return n.setAttribute(`data:name`,e.name),n.setAttribute(`data:value`,String(e.value)),n.setAttribute(`data:key`,Cn(e._key)),n.setAttribute(`data:leaf`,String(!(e.children&&e.children.length))),this._attachTooltip(n,e),d.isBrowser()&&(n.addEventListener(`click`,()=>this._zoomTo(e)),n.style.cursor=`pointer`),this._ringsG.add(t),t}_animateArc(e,t,n,r,i,a,o){let s=e._el,c=this.cfg.borderRadius;if(s.attr({fill:e._color}),r===0)return s.attr({d:this._arcPath(n.iR,n.oR,n.a0,n.a1,c),opacity:+!i}),s.node.style.display=i?`none`:``,void(e._cur=i?null:n);s.node.style.display=``;let l=i?Number(s.attr(`opacity`))||1:+!a,u=+!i;s.attr({opacity:l}),s.animate(r).during(r=>{if(this._zoomGen!==o)return;let i=La(t.a0,n.a0,r),a=La(t.a1,n.a1,r),d=La(t.iR,n.iR,r),f=La(t.oR,n.oR,r);s.attr({d:this._arcPath(d,f,i,a,c),opacity:La(l,u,r)}),e._cur={a0:i,a1:a,iR:d,oR:f}}).after(()=>{this._zoomGen===o&&(i?(s.node.style.display=`none`,e._cur=null):e._cur=n)})}_renderLabels(e){let t=this._labelsG;for(;t.node.firstChild;)t.node.removeChild(t.node.firstChild);this.cfg.dataLabels.show&&(this._nodesAll.forEach(e=>{e._show&&(e._a1-e._a0<this.cfg.dataLabels.minAngleToShow||this._renderCurvedLabel(e))}),e>0?(t.attr({opacity:0}),t.animate(250,e).attr({opacity:1})):t.attr({opacity:1}))}_renderCurvedLabel(e){if(!d.isBrowser())return;let t=this.cfg.dataLabels.style,n=this.w,r=(e._iR+e._oR)/2,i=(e._a0+e._a1)/2,a=i>90&&i<270,o=Math.min(r>0?4/r*Pa:0,(e._a1-e._a0)/2),s=a?e._a1-o:e._a0+o,c=a?e._a0+o:e._a1-o,l=this._ptAt(r,s),u=this._ptAt(r,c),f=+(Math.abs(c-s)>180),p=+!a,m=`apx-sb-lbl-${n.globals.cuid}-${this._lblSeq++}`,h=v.createElementNS(Fa,`path`);h.setAttribute(`id`,m),h.setAttribute(`d`,`M ${l.x} ${l.y} A ${r} ${r} 0 ${f} ${p} ${u.x} ${u.y}`),h.setAttribute(`fill`,`none`),h.setAttribute(`stroke`,`none`);let g=t.colors,_=(Array.isArray(g)?g[0]:g)||`#fff`,y=v.createElementNS(Fa,`text`);y.setAttribute(`font-size`,t.fontSize||`12px`),t.fontFamily&&y.setAttribute(`font-family`,t.fontFamily),y.setAttribute(`font-weight`,String(t.fontWeight||400)),y.setAttribute(`fill`,_),y.setAttribute(`dominant-baseline`,`central`),y.style.pointerEvents=`none`;let b=v.createElementNS(Fa,`textPath`);b.setAttribute(`href`,`#`+m),b.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,`#`+m),b.setAttribute(`startOffset`,`50%`),b.setAttribute(`text-anchor`,`middle`),b.textContent=this._truncate(e.name,r,e._a1-e._a0,t.fontSize),y.appendChild(b),this._labelsG.node.appendChild(h),this._labelsG.node.appendChild(y)}_truncate(e,t,n,r){let i=t*n*Na-8,a=.58*(parseFloat(r)||12),o=Math.floor(i/a);return o>=e.length?e:o<=1?``:e.slice(0,Math.max(1,o-1))+`…`}_zoomTo(e){if(!1===this.cfg.zoomOnClick)return;let t=e===this._focus?e._parent||null:e;t!==this._focus&&(this._focus=!t||t.children&&t.children.length?t:t._parent||null,this._relayout(this._focus),this._applyLayout(`zoom`),this._renderBreadcrumb())}_focusChain(){let e=[],t=this._focus;for(;t;)e.unshift(t),t=t._parent;return e}_renderBreadcrumb(){if(!d.isBrowser())return;let e=this.w.dom.elWrap;if(!e)return;let t=e.querySelector(`.apexcharts-breadcrumb`);if(t&&t.parentNode&&t.parentNode.removeChild(t),!this._focus)return;let n=v.createElementNS(Ia,`nav`);n.setAttribute(`class`,`apexcharts-breadcrumb`),n.setAttribute(`aria-label`,`Sunburst breadcrumb`),n.style.position=`absolute`,n.style.top=`0px`,n.style.left=`0px`;let r=[{name:`All`,node:null}].concat(this._focusChain().map(e=>({name:e.name,node:e})));r.forEach((e,t)=>{if(t>0){let e=v.createElementNS(Ia,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-separator`),e.textContent=` / `,n.appendChild(e)}if(t===r.length-1){let t=v.createElementNS(Ia,`span`);t.setAttribute(`class`,`apexcharts-breadcrumb-item apexcharts-breadcrumb-current`),t.textContent=e.name,n.appendChild(t)}else{let r=v.createElementNS(Ia,`button`);if(r.setAttribute(`type`,`button`),r.setAttribute(`class`,`apexcharts-breadcrumb-item`),t===0){let e=v.createElementNS(Ia,`span`);e.setAttribute(`class`,`apexcharts-breadcrumb-arrow`),e.textContent=`←`,r.appendChild(e)}let i=v.createElementNS(Ia,`span`);i.setAttribute(`class`,`apexcharts-breadcrumb-label`),i.textContent=e.name,r.appendChild(i),r.addEventListener(`click`,()=>{this._focus=e.node,this._relayout(this._focus),this._applyLayout(`zoom`),this._renderBreadcrumb()}),n.appendChild(r)}}),e.appendChild(n),this._avoidChromeOverlap(n)}_avoidChromeOverlap(e){nn(this.w,e)}_ptAt(e,t){return{x:this.centerX+e*Math.cos((t-90)*Na),y:this.centerY+e*Math.sin((t-90)*Na)}}_arcPath(e,t,n,r,i){if(t<=e+.01)return``;let a=r-n,o=this.cfg.spacing;if(o>0&&a>0&&t>0){let e=o/t*Pa,i=Math.min(e/2,Math.max(0,a/2-.25));a=(r-=i)-(n+=i)}
1801if(a<=0)return``;let s=a*Na,c=this.centerX,l=this.centerY,u=i;return u=Math.min(u,s*e/2,s*t/2,(t-e)/2),u>.5?va({cx:c,cy:l,rIn:e,rOut:t,a0:n,a1:r,r:u,spanDeg:a}):ya({cx:c,cy:l,rIn:e,rOut:t,a0:n,a1:r,spanDeg:a})}_tip(){return this._tooltipEl||(this._tooltipEl=this.w.dom.baseEl.querySelector(`.apexcharts-tooltip`)),this._tooltipEl}_attachTooltip(e,t){this.w.config.tooltip.enabled&&d.isBrowser()&&(e.addEventListener(`mouseenter`,e=>this._showTooltip(e,t)),e.addEventListener(`mousemove`,e=>this._positionTooltip(e)),e.addEventListener(`mouseleave`,()=>this._hideTooltip()))}_showTooltip(e,t){let n=this._tip();if(!n)return;let r=this.w,i=(t.value/this.total*100).toFixed(1),a=t._parent?t._parent.value:this.total,o=a>0?(t.value/a*100).toFixed(1):i;n.innerHTML=`<div class="apexcharts-tooltip-series-group apexcharts-active" style="display:flex;${r.config.tooltip.fillSeriesColor?`background-color:${t._color};`:``}"><span class="apexcharts-tooltip-marker" style="background-color:${t._color}"></span><div class="apexcharts-tooltip-text"><div class="apexcharts-tooltip-y-group"><span class="apexcharts-tooltip-text-y-label">${t.name}: </span><span class="apexcharts-tooltip-text-y-value">${t.value} (${o}% of parent, ${i}% of total)</span></div></div></div>`,n.classList.add(`apexcharts-active`),n.style.opacity=`1`,this._positionTooltip(e)}_positionTooltip(e){let t=this._tip();if(!t)return;let n=this.w.dom.elWrap.getBoundingClientRect(),r=t.offsetWidth,i=t.offsetHeight,a=e.clientX-n.left+12;a+r>n.width&&(a=e.clientX-n.left-r-12),a=Math.max(0,Math.min(a,n.width-r));let o=e.clientY-n.top+12;o+i>n.height&&(o=e.clientY-n.top-i-12),o=Math.max(0,Math.min(o,n.height-i)),t.style.left=a+`px`,t.style.top=o+`px`}_hideTooltip(){let e=this._tip();e&&(e.classList.remove(`apexcharts-active`),e.style.opacity=`0`)}_parseSize(e,t){if(typeof e==`number`)return e;let n=String(e).trim();if(n.endsWith(`%`))return parseFloat(n)/100*t;let r=parseFloat(n);return isNaN(r)?.15*t:r}_lighten(e,t){if(typeof e!=`string`||e[0]!==`#`)return e;let n=e.slice(1);if(n.length===3&&(n=n.split(``).map(e=>e+e).join(``)),n.length!==6)return e;let r=parseInt(n,16);if(isNaN(r))return e;let i=r>>16&255,a=r>>8&255,o=255&r;return i=Math.round(i+(255-i)*t),a=Math.round(a+(255-a)*t),o=Math.round(o+(255-o)*t),`#`+((1<<24)+(i<<16)+(a<<8)+o).toString(16).slice(1)}}}),Object.defineProperty(Gr,"__internals",{value:Kr,enumerable:!1,writable:!1,configurable:!1}),Gr})}))(),1),l=Object.defineProperty,u=(e,t)=>{let n={};for(var r in e)l(n,r,{get:e[r],enumerable:!0});return t||l(n,Symbol.toStringTag,{value:`Module`}),n},d=document.querySelectorAll(`[data-bs-toggle="autosize"]`);d.length&&d.forEach(function(e){window.autosize&&window.autosize(e)});var f=document.querySelectorAll(`[data-countup]`);f.length&&f.forEach(function(e){var t;let n={};try{let t=e.getAttribute(`data-countup`)?JSON.parse(e.getAttribute(`data-countup`)):{};n=Object.assign({enableScrollSpy:!0},t)}catch(e){}let r=parseFloat(((t=e.textContent)==null?``:t).replace(/[^0-9.-]/g,``));if(!Number.isNaN(r)&&window.countUp&&window.countUp.CountUp){let t=new window.countUp.CountUp(e,r,n);!t.error&&!n.enableScrollSpy&&t.start()}}),[].slice.call(document.querySelectorAll(`[data-mask]`)).map(function(e){window.IMask&&new window.IMask(e,{mask:e.dataset.mask,lazy:e.dataset.maskVisible!==`true`})});var p=`bottom`,m=`right`,h=`left`,g=`auto`,_=[`top`,p,m,h],v=`start`,y=`clippingParents`,b=`viewport`,x=`popper`,S=`reference`,C=_.reduce(function(e,t){return e.concat([t+`-`+v,t+`-end`])},[]),w=[].concat(_,[g]).reduce(function(e,t){return e.concat([t,t+`-`+v,t+`-end`])},[]),T=`beforeRead`,E=`read`,D=`afterRead`,O=`beforeMain`,k=`main`,A=`afterMain`,j=`beforeWrite`,M=`write`,N=`afterWrite`,P=[T,E,D,O,k,A,j,M,N];function F(e){return e?(e.nodeName||``).toLowerCase():null}function I(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L(e){return e instanceof I(e).Element||e instanceof Element}function R(e){return e instanceof I(e).HTMLElement||e instanceof HTMLElement}function z(e){return typeof ShadowRoot>`u`?!1:e instanceof I(e).ShadowRoot||e instanceof ShadowRoot}function ee(e){var t=e.state;
vendor: 9,985 bytes, line 1801
1801Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];R(i)&&F(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function B(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});R(r)&&F(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var te={name:`applyStyles`,enabled:!0,phase:`write`,fn:ee,effect:B,requires:[`computeStyles`]};function V(e){return e.split(`-`)[0]}var H=Math.max,U=Math.min,ne=Math.round;function re(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function ie(){return!/^((?!chrome|android).)*safari/i.test(re())}function ae(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&R(e)&&(i=e.offsetWidth>0&&ne(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ne(r.height)/e.offsetHeight||1);var o=(L(e)?I(e):window).visualViewport,s=!ie()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function oe(e){var t=ae(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&z(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ce(e){return I(e).getComputedStyle(e)}function le(e){return[`table`,`td`,`th`].indexOf(F(e))>=0}function ue(e){return((L(e)?e.ownerDocument:e.document)||window.document).documentElement}function de(e){return F(e)===`html`?e:e.assignedSlot||e.parentNode||(z(e)?e.host:null)||ue(e)}function fe(e){return!R(e)||ce(e).position===`fixed`?null:e.offsetParent}function pe(e){var t=/firefox/i.test(re());if(/Trident/i.test(re())&&R(e)&&ce(e).position===`fixed`)return null;var n=de(e);for(z(n)&&(n=n.host);R(n)&&[`html`,`body`].indexOf(F(n))<0;){var r=ce(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function me(e){for(var t=I(e),n=fe(e);n&&le(n)&&ce(n).position===`static`;)n=fe(n);return n&&(F(n)===`html`||F(n)===`body`&&ce(n).position===`static`)?t:n||pe(e)||t}function he(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function ge(e,t,n){return H(e,U(t,n))}function _e(e,t,n){var r=ge(e,t,n);return r>n?n:r}function ve(){return{top:0,right:0,bottom:0,left:0}}function ye(e){return Object.assign({},ve(),e)}function be(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var xe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,ye(typeof e==`number`?be(e,_):e)};function Se(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=V(n.placement),c=he(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=xe(i.padding,n),d=oe(a),f=c===`y`?`top`:h,g=c===`y`?p:m,_=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],v=o[c]-n.rects.reference[c],y=me(a),b=y?c===`y`?y.clientHeight||0:y.clientWidth||0:0,x=_/2-v/2,S=u[f],C=b-d[l]-u[g],w=b/2-d[l]/2+x,T=ge(S,w,C),E=c;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-w,t)}}function Ce(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||se(t.elements.popper,r)&&(t.elements.arrow=r))}var W={name:`arrow`,enabled:!0,phase:`main`,fn:Se,effect:Ce,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function we(e){return e.split(`-`)[1]}var Te={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Ee(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ne(n*i)/i||0,y:ne(r*i)/i||0}}function De(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,g=f===void 0?0:f,_=o.y,v=_===void 0?0:_,y=typeof u==`function`?u({x:g,y:v}):{x:g,y:v};g=y.x,v=y.y;var b=o.hasOwnProperty(`x`),x=o.hasOwnProperty(`y`),S=h,C=`top`,w=window;if(l){var T=me(n),E=`clientHeight`,D=`clientWidth`;if(T===I(n)&&(T=ue(n),ce(T).position!==`static`&&s===`absolute`&&(E=`scrollHeight`,D=`scrollWidth`)),T=T,i===`top`||(i===`left`||i===`right`)&&a===`end`){C=p;var O=d&&T===w&&w.visualViewport?w.visualViewport.height:T[E];v-=O-r.height,v*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){S=m;var k=d&&T===w&&w.visualViewport?w.visualViewport.width:T[D];g-=k-r.width,g*=c?1:-1}}var A=Object.assign({position:s},l&&Te),j=u===!0?Ee({x:g,y:v},I(n)):{x:g,y:v};if(g=j.x,v=j.y,c){var M;return Object.assign({},A,(M={},M[C]=x?`0`:``,M[S]=b?`0`:``,M.transform=(w.devicePixelRatio||1)<=1?`translate(`+g+`px, `+v+`px)`:`translate3d(`+g+`px, `+v+`px, 0)`,M))}return Object.assign({},A,(t={},t[C]=x?v+`px`:``,t[S]=b?g+`px`:``,t.transform=``,t))}function Oe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:V(t.placement),variation:we(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,De(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,De(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ke={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Oe,data:{}},Ae={passive:!0};function je(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=I(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Ae)}),s&&c.addEventListener(`resize`,n.update,Ae),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Ae)}),s&&c.removeEventListener(`resize`,n.update,Ae)}}var Me={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:je,data:{}},Ne={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function G(e){return e.replace(/left|right|bottom|top/g,function(e){return Ne[e]})}var K={start:`end`,end:`start`};function Pe(e){return e.replace(/start|end/g,function(e){return K[e]})}function Fe(e){var t=I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ie(e){return ae(ue(e)).left+Fe(e).scrollLeft}function Le(e,t){var n=I(e),r=ue(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=ie();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Ie(e),y:c}}function Re(e){var t,n=ue(e),r=Fe(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=H(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=H(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ie(e),c=-r.scrollTop;return ce(i||n).direction===`rtl`&&(s+=H(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function ze(e){var t=ce(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Be(e){return[`html`,`body`,`#document`].indexOf(F(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Be(de(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var r=Be(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=I(r),o=i?[a].concat(a.visualViewport||[],ze(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Ve(de(o)))}function He(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ue(e,t){var n=ae(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function We(e,t,n){return t===`viewport`?He(Le(e,n)):L(t)?Ue(t,n):He(Re(ue(e)))}function Ge(e){var t=Ve(de(e)),n=[`absolute`,`fixed`].indexOf(ce(e).position)>=0&&R(e)?me(e):e;return L(n)?t.filter(function(e){return L(e)&&se(e,n)&&F(e)!==`body`}):[]}function Ke(e,t,n,r){var i=t===`clippingParents`?Ge(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=We(e,n,r);return t.top=H(i.top,t.top),t.right=U(i.right,t.right),t.bottom=U(i.bottom,t.bottom),t.left=H(i.left,t.left),t},We(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qe(e){var t=e.reference,n=e.element,r=e.placement,i=r?V(r):null,a=r?we(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case p:c={x:o,y:t.y+t.height};break;case m:c={x:t.x+t.width,y:s};break;case h:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?he(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case v:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Je(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?y:s,l=n.rootBoundary,u=l===void 0?b:l,d=n.elementContext,f
vendor: 4,250 bytes, line 1801
1801=d===void 0?x:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,v=ye(typeof g==`number`?be(g,_):g),C=f===`popper`?S:x,w=e.rects.popper,T=e.elements[m?C:f],E=Ke(L(T)?T:T.contextElement||ue(e.elements.popper),c,u,o),D=ae(e.elements.reference),O=qe({reference:D,element:w,strategy:`absolute`,placement:i}),k=He(Object.assign({},w,O)),A=f===`popper`?k:D,j={top:E.top-A.top+v.top,bottom:A.bottom-E.bottom+v.bottom,left:E.left-A.left+v.left,right:A.right-E.right+v.right},M=e.modifiersData.offset;if(f===`popper`&&M){var N=M[i];Object.keys(j).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;j[e]+=N[n]*t})}return j}function Ye(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?w:c,u=we(r),d=u?s?C:C.filter(function(e){return we(e)===u}):_,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Je(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[V(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Xe(e){if(V(e)===`auto`)return[];var t=G(e);return[Pe(e),t,Pe(t)]}function Ze(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,_=g===void 0||g,y=n.allowedAutoPlacements,b=t.options.placement,x=V(b)===b,S=c||(x||!_?[G(b)]:Xe(b)),C=[b].concat(S).reduce(function(e,n){return e.concat(V(n)===`auto`?Ye(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:_,allowedAutoPlacements:y}):n)},[]),w=t.rects.reference,T=t.rects.popper,E=new Map,D=!0,O=C[0],k=0;k<C.length;k++){var A=C[k],j=V(A),M=we(A)===v,N=[`top`,p].indexOf(j)>=0,P=N?`width`:`height`,F=Je(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),I=N?M?m:h:M?p:`top`;w[P]>T[P]&&(I=G(I));var L=G(I),R=[];if(a&&R.push(F[j]<=0),s&&R.push(F[I]<=0,F[L]<=0),R.every(function(e){return e})){O=A,D=!1;break}E.set(A,R)}if(D)for(var z=_?3:1,ee=function(e){var t=C.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,`break`},B=z;B>0&&ee(B)!==`break`;B--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var Qe={name:`flip`,enabled:!0,phase:`main`,fn:Ze,requiresIfExists:[`offset`],data:{_skip:!1}};function $e(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function et(e){return[`top`,m,p,h].some(function(t){return e[t]>=0})}function tt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Je(t,{elementContext:`reference`}),s=Je(t,{altBoundary:!0}),c=$e(o,r),l=$e(s,i,a),u=et(c),d=et(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var nt={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:tt};function rt(e,t,n){var r=V(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function it(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=w.reduce(function(e,n){return e[n]=rt(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var at={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:it};function ot(e){var t=e.state,n=e.name;t.modifiersData[n]=qe({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var st={name:`popperOffsets`,enabled:!0,phase:`read`,fn:ot,data:{}};function ct(e){return e===`x`?`y`:`x`}function lt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f
vendor: 4,492 bytes, line 1801
1801=n.tether,g=f===void 0||f,_=n.tetherOffset,v=_===void 0?0:_,y=Je(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),b=V(t.placement),x=we(t.placement),S=!x,C=he(b),w=ct(C),T=t.modifiersData.popperOffsets,E=t.rects.reference,D=t.rects.popper,O=typeof v==`function`?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof O==`number`?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(T){if(a){var M,N=C===`y`?`top`:h,P=C===`y`?p:m,F=C===`y`?`height`:`width`,I=T[C],L=I+y[N],R=I-y[P],z=g?-D[F]/2:0,ee=x===`start`?E[F]:D[F],B=x===`start`?-D[F]:-E[F],te=t.elements.arrow,ne=g&&te?oe(te):{width:0,height:0},re=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ve(),ie=re[N],ae=re[P],se=ge(0,E[F],ne[F]),ce=S?E[F]/2-z-se-ie-k.mainAxis:ee-se-ie-k.mainAxis,le=S?-E[F]/2+z+se+ae+k.mainAxis:B+se+ae+k.mainAxis,ue=t.elements.arrow&&me(t.elements.arrow),de=ue?C===`y`?ue.clientTop||0:ue.clientLeft||0:0,fe=(M=A==null?void 0:A[C])==null?0:M,pe=I+ce-fe-de,ye=I+le-fe,be=ge(g?U(L,pe):L,I,g?H(R,ye):R);T[C]=be,j[C]=be-I}if(s){var xe,Se=C===`x`?`top`:h,Ce=C===`x`?p:m,W=T[w],Te=w===`y`?`height`:`width`,Ee=W+y[Se],De=W-y[Ce],Oe=[`top`,h].indexOf(b)!==-1,ke=(xe=A==null?void 0:A[w])==null?0:xe,Ae=Oe?Ee:W-E[Te]-D[Te]-ke+k.altAxis,je=Oe?W+E[Te]+D[Te]-ke-k.altAxis:De,Me=g&&Oe?_e(Ae,W,je):ge(g?Ae:Ee,W,g?je:De);T[w]=Me,j[w]=Me-W}t.modifiersData[r]=j}}var ut={name:`preventOverflow`,enabled:!0,phase:`main`,fn:lt,requiresIfExists:[`offset`]};function dt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ft(e){return e===I(e)||!R(e)?Fe(e):dt(e)}function pt(e){var t=e.getBoundingClientRect(),n=ne(t.width)/e.offsetWidth||1,r=ne(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mt(e,t,n){n===void 0&&(n=!1);var r=R(t),i=R(t)&&pt(t),a=ue(t),o=ae(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((F(t)!==`body`||ze(a))&&(s=ft(t)),R(t)?(c=ae(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ie(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ht(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function gt(e){var t=ht(e);return P.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function _t(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vt(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var yt={placement:`bottom`,modifiers:[],strategy:`absolute`};function bt(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function xt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?yt:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},yt,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:L(e)?Ve(e):e.contextElement?Ve(e.contextElement):[],popper:Ve(t)};var s=gt(vt([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(bt(t,n)){i.rects={reference:mt(t,me(n),i.options.strategy===`fixed`),popper:oe(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:_t(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!bt(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});
1801function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var St=xt(),Ct=xt({defaultModifiers:[Me,st,ke,te]}),wt=xt({defaultModifiers:[Me,st,ke,te,at,Qe,ut,W,nt]}),Tt=u({afterMain:()=>A,afterRead:()=>D,afterWrite:()=>N,applyStyles:()=>te,arrow:()=>W,auto:()=>g,basePlacements:()=>_,beforeMain:()=>O,beforeRead:()=>T,beforeWrite:()=>j,bottom:()=>p,clippingParents:()=>y,computeStyles:()=>ke,createPopper:()=>wt,createPopperBase:()=>St,createPopperLite:()=>Ct,detectOverflow:()=>Je,end:()=>`end`,eventListeners:()=>Me,flip:()=>Qe,hide:()=>nt,left:()=>h,main:()=>k,modifierPhases:()=>P,offset:()=>at,placements:()=>w,popper:()=>x,popperGenerator:()=>xt,popperOffsets:()=>st,preventOverflow:()=>ut,read:()=>E,reference:()=>S,right:()=>m,start:()=>v,top:()=>`top`,variationPlacements:()=>C,viewport:()=>b,write:()=>M}),Et=new Map,Dt={set(e,t,n){Et.has(e)||Et.set(e,new Map);let r=Et.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Et.has(e)&&Et.get(e).get(t)||null},remove(e,t){if(!Et.has(e))return;let n=Et.get(e);n.delete(t),n.size===0&&Et.delete(e)}},Ot=/[^.]*(?=\..*)\.|.*/,kt=/\..*/,At=/::\d+$/,jt={},Mt=1,Nt={mouseenter:`mouseover`,mouseleave:`mouseout`},Pt=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function Ft(e,t){return t&&`${t}::${Mt++}`||e.uidEvent||Mt++}function It(e){let t=Ft(e);return e.uidEvent=t,jt[t]=jt[t]||{},jt[t]}function Lt(e,t){return function n(r){return Wt(r,{delegateTarget:e}),n.oneOff&&J.off(e,r.type,t),t.apply(e,[r])}}function Rt(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return Wt(i,{delegateTarget:o}),r.oneOff&&J.off(e,i.type,t,n),n.apply(o,[i])}}function zt(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function Bt(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=Ut(e);return Pt.has(a)||(a=e),[r,i,a]}function Vt(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=Bt(t,n,r);t in Nt&&(o=(e=>function(t){let n=t;if(!n.relatedTarget||n.relatedTarget!==n.delegateTarget&&!n.delegateTarget.contains(n.relatedTarget))return e.call(this,t)})(o));let c=It(e),l=c[s]||(c[s]={}),u=zt(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=Ft(o,t.replace(Ot,``)),f=a?Rt(e,n,o):Lt(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function Ht(e,t,n,r,i){let a=zt(t[n],r,i==null?null:i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function q(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&Ht(e,t,n,o.callable,o.delegationSelector)}function Ut(e){return e=e.replace(kt,``),Nt[e]||e}var J={on(e,t,n,r){Vt(e,t,n,r,!1)},one(e,t,n,r){Vt(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=Bt(t,n,r),s=o!==t,c=It(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;Ht(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))q(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(At,``);(!s||t.includes(i))&&Ht(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Wt(new Event(t,{bubbles:!0,cancelable:!0}),n);return e.dispatchEvent(r),r}};function Wt(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Gt(e){if(e===`true`)return!0;
1801if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function Kt(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var qt=[`tblr`,`bs`],Jt={setDataAttribute(e,t,n){e.setAttribute(`data-tblr-${Kt(t)}`,n)},removeDataAttribute(e,t){for(let n of qt)e.removeAttribute(`data-${n}-${Kt(t)}`)},getDataAttributes(e){if(!e)return{};let t={};for(let n of qt){let r=Object.keys(e.dataset).filter(e=>e.startsWith(n)&&!e.startsWith(`${n}Config`));for(let i of r){let r=i.replace(RegExp(`^${n}`),``);r=r.charAt(0).toLowerCase()+r.slice(1),r in t||(t[r]=Gt(e.dataset[i]))}}return t},getDataAttribute(e,t){for(let n of qt){let r=e.getAttribute(`data-${n}-${Kt(t)}`);if(r!==null)return Gt(r)}return null}},Yt=1e6,Xt=1e3,Zt=`transitionend`,Qt=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),$t=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),en=e=>{do e+=Math.floor(Math.random()*Yt);while(document.getElementById(e));return e},tn=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Xt)},nn=e=>{e.dispatchEvent(new Event(Zt))},rn=e=>!e||typeof e!=`object`?!1:e.nodeType!==void 0,an=e=>rn(e)?e:typeof e==`string`&&e.length>0?document.querySelector(Qt(e)):null,on=e=>{if(!rn(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},sn=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:`disabled`in e&&e.disabled!==void 0?!!e.disabled:e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`,cn=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?cn(e.parentNode):null},ln=()=>{},un=e=>{e.offsetHeight},dn=()=>document.documentElement.dir===`rtl`,fn=(e,t=[],n=e)=>typeof e==`function`?e.call(t[0],...t.slice(1)):n,pn=(e,t,n=!0)=>{if(!n){fn(e);return}let r=tn(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Zt,a),fn(e))};t.addEventListener(Zt,a),setTimeout(()=>{i||nn(t)},r)},mn=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])};function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hn(e)}function gn(e,t){if(hn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _n(e){var t=gn(e,`string`);return hn(t)==`symbol`?t:t+``}function Y(e,t,n){return(t=_n(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vn(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yn=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=rn(t)?Jt.getDataAttribute(t,`config`):{},r=this.constructor;return X(X(X(X({},r.Default),typeof n==`object`?n:{}),rn(t)?Jt.getDataAttributes(t):{}),typeof e==`object`?e:{})}_typeCheckConfig(e,t){let n=this.constructor,r=t||n.DefaultType;for(let[t,i]of Object.entries(r)){let r=e[t],a=rn(r)?`element`:$t(r);if(!new RegExp(i).test(a))throw TypeError(`${n.NAME.toUpperCase()}: Option "${t}" provided type "${a}" but expected type "${i}".`)}}},bn=`5.3.8`,xn=class extends yn{constructor(e,t){super();let n=an(e);if(!n)return;this._element=n,this._config=this._getConfig(t);let r=this.constructor;Dt.set(this._element,r.DATA_KEY,this)}dispose(){let e=this.constructor;Dt.remove(this._element,e.DATA_KEY),J.off(this._element,e.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){pn(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Dt.get(an(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return bn}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Sn=e=>{let t=e.getAttribute(`data-tblr-target`)||e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Qt(e)).join(`,`):null},Z={find(e,t=document.documentElement){return Array.from(t.querySelectorAll(e))},findOne(e,t=document.documentElement){return t.querySelector(e)},children(e,t){return Array.from(e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode&&e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode&&r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!sn(e)&&on(e))},getSelectorFromElement(e){let t=Sn(e);return t&&Z.findOne(t)?t:null},getElementFromSelector(e){let t=Sn(e);return t?Z.findOne(t):null},getMultipleElementsFromSelector(e){let t=Sn(e);return t?Z.find(t):[]}},Cn=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;J.on(document,n,`[data-bs-dismiss="${r}"], [data-tblr-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),sn(this))return;let i=Z.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},wn=`alert`,Tn=`.bs.alert`,En=`close${Tn}`,Dn=`closed${Tn}`,On=`fade`,kn=`show`;Cn(class extends xn{static get NAME(){return wn}close(){let e=J.trigger(this._element,En);if(e!=null&&e.defaultPrevented)return;this._element.classList.remove(kn);let t=this._element.classList.contains(On);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),J.trigger(this._element,Dn),this.dispose()}},`close`);var An=`button`,jn=`.bs.button`,Mn=`.data-api`,Nn=`active`,Pn=`[data-bs-toggle="button"], [data-tblr-toggle="button"]`,Fn=`click${jn}${Mn}`,In=class extends xn{static get NAME(){return An}toggle(){this._element.setAttribute(`aria-pressed`,String(this._element.classList.toggle(Nn)))}};J.on(document,Fn,Pn,e=>{var t;e.preventDefault();let n=(t=e.target)==null?void 0:t.closest(Pn);n&&In.getOrCreateInstance(n).toggle()});var Ln=`swipe`,Rn=`.bs.swipe`,zn=`touchstart${Rn}`,Bn=`touchmove${Rn}`,Vn=`touchend${Rn}`,Hn=`pointerdown${Rn}`,Un=`pointerup${Rn}`,Q=`touch`,Wn=`pen`,Gn=`pointer-event`,Kn=40,qn={endCallback:null,leftCallback:null,rightCallback:null},Jn={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},Yn=class e extends yn{constructor(t,n){super(),this._element=t,t&&e.isSupported()&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return qn}static get DefaultType(){return Jn}static get NAME(){return Ln}dispose(){J.off(this._element,Rn)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),fn(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=Kn)return;let t=e/this._deltaX;this._deltaX=0,t&&fn(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,Hn,e=>this._start(e)),J.on(this._element,Un,e=>this._end(e)),this._element.classList.add(Gn)):(J.on(this._element,zn,e=>this._start(e)),J.on(this._element,Bn,e=>this._move(e)),J.on(this._element,Vn,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Wn||e.pointerType===Q)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},Xn=`carousel`,Zn=`.bs.carousel`,Qn=`.data-api`,$n=`ArrowLeft`,er=`ArrowRight`,tr=500,nr=`next`,rr=`prev`,ir=`left`,ar=`right`,or=`slide${Zn}`,sr=`slid${Zn}`,cr=`keydown${Zn}`,lr=`mouseenter${Zn}`,ur=`mouseleave${Zn}`,dr=`dragstart${Zn}`,fr=`load${Zn}${Qn}`,pr=`click${Zn}${Qn}`,mr=`carousel`,hr=`active`,gr=`slide`,_r=`carousel-item-end`,vr=`carousel-item-start`,yr=`carousel-item-next`,br=`carousel-item-prev`,xr=`.active`,Sr=`.carousel-item`,Cr=`.active.carousel-item`,wr=`.carousel-item img`,Tr=`.carousel-indicators`,Er=`[data-bs-slide], [data-bs-slide-to], [data-tblr-slide], [data-tblr-slide-to]`,Dr=`[data-bs-ride="carousel"], [data-tblr-ride="carousel"]`,Or={[$n]:ar,[er]:ir},kr={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Ar={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},jr=class extends xn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Z.findOne(Tr,this._element),this._addEventListeners(),this._config.ride===mr&&this.cycle()}static get Default(){return kr}static get DefaultType(){return Ar}static get NAME(){return Xn}
1801next(){this._slide(nr)}nextWhenVisible(){!document.hidden&&on(this._element)&&this.next()}prev(){this._slide(rr)}pause(){this._isSliding&&nn(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){J.one(this._element,sr,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){J.one(this._element,sr,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?nr:rr;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&J.on(this._element,cr,e=>this._keydown(e)),this._config.pause===`hover`&&(J.on(this._element,lr,()=>this.pause()),J.on(this._element,ur,()=>this._maybeEnableCycle())),this._config.touch&&Yn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of Z.find(wr,this._element))J.on(e,dr,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(ir)),rightCallback:()=>this._slide(this._directionToOrder(ar)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),tr+this._config.interval))}};this._swipeHelper=new Yn(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Or[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=Z.findOne(xr,this._indicatorsElement);t.classList.remove(hr),t.removeAttribute(`aria-current`);let n=Z.findOne(`[data-bs-slide-to="${e}"], [data-tblr-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(hr),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`)||e.getAttribute(`data-tblr-interval`)||``,10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===nr,i=t||mn(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>J.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(or).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?vr:_r,l=r?yr:br;i.classList.add(l),un(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(hr),n.classList.remove(hr,l,c),this._isSliding=!1,o(sr)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(gr)}_getActive(){return Z.findOne(Cr,this._element)}_getItems(){return Z.find(Sr,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return dn()?e===ir?rr:nr:e===ir?nr:rr}_orderToDirection(e){return dn()?e===rr?ir:ar:e===rr?ar:ir}};J.on(document,pr,Er,function(e){let t=Z.getElementFromSelector(this);if(!t||!t.classList.contains(mr))return;e.preventDefault();let n=jr.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`)||this.getAttribute(`data-tblr-slide-to`);if(r){n.to(Number(r)),n._maybeEnableCycle();return}if(Jt.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),J.on(window,fr,()=>{let e=Z.find(Dr);for(let t of e)jr.getOrCreateInstance(t)});var Mr=`collapse`,Nr=`.bs.collapse`,Pr=`.data-api`,Fr=`show${Nr}`,Ir=`shown${Nr}`,Lr=`hide${Nr}`,Rr=`hidden${Nr}`,zr=`click${Nr}${Pr}`,Br=`show`,Vr=`collapse`,Hr=`collapsing`,Ur=`collapsed`,Wr=`:scope .${Vr} .${Vr}`,Gr=`collapse-horizontal`,Kr=`width`,qr=`height`,Jr=`.collapse.show, .collapse.collapsing`,Yr=`[data-bs-toggle="collapse"], [data-tblr-toggle="collapse"]`,Xr={parent:null,toggle:!0},Zr={parent:`(null|element)`,toggle:`boolean`},Qr=class e extends xn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=Z.find(Yr);for(let e of n){let t=Z.getSelectorFromElement(e),n=Z.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Xr}static get DefaultType(){return Zr}static get NAME(){return Mr}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Jr).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;let n=J.trigger(this._element,Fr);if(n!=null&&n.defaultPrevented)return;for(let e of t)e.hide();let r=this._getDimension();this._element.classList.remove(Vr),this._element.classList.add(Hr),this._element.style[r]=`0`,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let i=()=>{this._isTransitioning=!1,this._element.classList.remove(Hr),this._element.classList.add(Vr,Br),this._element.style[r]=``,J.trigger(this._element,Ir)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}
1801hide(){if(this._isTransitioning||!this._isShown())return;let e=J.trigger(this._element,Lr);if(e!=null&&e.defaultPrevented)return;let t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,un(this._element),this._element.classList.add(Hr),this._element.classList.remove(Vr,Br);for(let e of this._triggerArray){let t=Z.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(Hr),this._element.classList.add(Vr),J.trigger(this._element,Rr)};this._element.style[t]=``,this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Br)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=an(e.parent),e}_getDimension(){return this._element.classList.contains(Gr)?Kr:qr}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(Yr);for(let t of e){let e=Z.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=Z.find(Wr,this._config.parent);return Z.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(Ur,!t),n.setAttribute(`aria-expanded`,String(t))}};J.on(document,zr,Yr,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of Z.getMultipleElementsFromSelector(this))Qr.getOrCreateInstance(e,{toggle:!1}).toggle()});var $r=`dropdown`,ei=`.bs.dropdown`,ti=`.data-api`,ni=`Escape`,ri=`Tab`,ii=`ArrowUp`,ai=`ArrowDown`,oi=2,si=`hide${ei}`,ci=`hidden${ei}`,li=`show${ei}`,ui=`shown${ei}`,di=`click${ei}${ti}`,fi=`keydown${ei}${ti}`,pi=`keyup${ei}${ti}`,mi=`show`,hi=`dropup`,gi=`dropend`,_i=`dropstart`,vi=`dropup-center`,yi=`dropdown-center`,bi=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled), [data-tblr-toggle="dropdown"]:not(.disabled):not(:disabled)`,xi=`.${mi}[data-bs-toggle="dropdown"], .${mi}[data-tblr-toggle="dropdown"]`,Si=`.dropdown-menu`,Ci=`.navbar`,wi=`.navbar-nav`,Ti=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Ei=dn()?`top-end`:`top-start`,Di=dn()?`top-start`:`top-end`,Oi=dn()?`bottom-end`:`bottom-start`,ki=dn()?`bottom-start`:`bottom-end`,Ai=dn()?`left-start`:`right-start`,ji=dn()?`right-start`:`left-start`,Mi=`top`,Ni=`bottom`,Pi={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Fi={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Ii=class e extends xn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Z.next(this._element,Si)[0]||Z.prev(this._element,Si)[0]||Z.findOne(Si,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Pi}static get DefaultType(){return Fi}static get NAME(){return $r}toggle(){this._isShown()?this.hide():this.show()}show(){if(sn(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!J.trigger(this._element,li,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(wi))for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,ln);this._element.focus(),this._element.setAttribute(`aria-expanded`,`true`),this._menu.classList.add(mi),this._element.classList.add(mi),J.trigger(this._element,ui,e)}}hide(){if(sn(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!J.trigger(this._element,si,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(mi),this._element.classList.remove(mi),this._element.setAttribute(`aria-expanded`,`false`),Jt.removeDataAttribute(this._menu,`popper`),J.trigger(this._element,ci,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!rn(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${$r.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}
1801_createPopper(){if(Tt===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:rn(this._config.reference)?e=an(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=wt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(mi)}_getPlacement(){let e=this._parent;if(e.classList.contains(gi))return Ai;if(e.classList.contains(_i))return ji;if(e.classList.contains(vi))return Mi;if(e.classList.contains(yi))return Ni;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(hi)?t?Di:Ei:t?ki:Oi}_detectNavbar(){return this._element.closest(Ci)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};(this._inNavbar||this._config.display===`static`)&&(Jt.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]);let t=fn(this._config.popperConfig,[void 0,e]);return X(X({},e),typeof t==`object`&&t?t:{})}_selectMenuItem({key:e,target:t}){let n=Z.find(Ti,this._menu).filter(e=>on(e));n.length&&mn(n,t,e===ai,!n.includes(t)).focus()}static clearMenus(t){if(t.button===oi||t.type===`keyup`&&t.key!==ri)return;let n=Z.find(xi);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===ri||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===ni,i=[ii,ai].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(bi)?this:Z.prev(this,bi)[0]||Z.next(this,bi)[0]||Z.findOne(bi,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};J.on(document,fi,bi,Ii.dataApiKeydownHandler),J.on(document,fi,Si,Ii.dataApiKeydownHandler),J.on(document,di,Ii.clearMenus),J.on(document,pi,Ii.clearMenus),J.on(document,di,bi,function(e){e.preventDefault(),Ii.getOrCreateInstance(this).toggle()});var Li=`backdrop`,Ri=`fade`,zi=`show`,Bi=`mousedown.bs.${Li}`,Vi={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Hi={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},Ui=class extends yn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Vi}static get DefaultType(){return Hi}static get NAME(){return Li}show(e){if(!this._config.isVisible){fn(e);return}this._append();let t=this._getElement();this._config.isAnimated&&un(t),t.classList.add(zi),this._emulateAnimation(()=>{fn(e)})}hide(e){if(!this._config.isVisible){fn(e);return}this._getElement().classList.remove(zi),this._emulateAnimation(()=>{this.dispose(),fn(e)})}dispose(){this._isAppended&&(J.off(this._element,Bi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Ri),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=an(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),J.on(e,Bi,()=>{fn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){pn(e,this._getElement(),this._config.isAnimated)}},Wi=`focustrap`,Gi=`.bs.focustrap`,Ki=`focusin${Gi}`,qi=`keydown.tab${Gi}`,Ji=`Tab`,Yi=`forward`,Xi=`backward`,Zi={autofocus:!0,trapElement:null},Qi={autofocus:`boolean`,trapElement:`element`},$i=class extends yn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Zi}static get DefaultType(){return Qi}static get NAME(){return Wi}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,Gi),J.on(document,Ki,e=>this._handleFocusin(e)),J.on(document,qi,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,Gi))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=Z.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===Xi?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===Ji&&(this._lastTabNavDirection=e.shiftKey?Xi:Yi)}},ea=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,ta=`.sticky-top`,na=`padding-right`,ra=`margin-right`,ia=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,na,t=>t+e),this._setElementAttributes(ea,na,t=>t+e),this._setElementAttributes(ta,ra,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,na),this._resetElementAttributes(ea,na),this._resetElementAttributes(ta,ra)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}
1801_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&Jt.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=Jt.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}Jt.removeDataAttribute(e,t),e.style.setProperty(t,String(n))})}_applyManipulationCallback(e,t){if(rn(e)){t(e);return}for(let n of Z.find(e,this._element))t(n)}},aa=`modal`,oa=`.bs.modal`,sa=`.data-api`,ca=`Escape`,la=`hide${oa}`,ua=`hidePrevented${oa}`,da=`hidden${oa}`,fa=`show${oa}`,pa=`shown${oa}`,ma=`resize${oa}`,ha=`click.dismiss${oa}`,ga=`mousedown.dismiss${oa}`,_a=`keydown.dismiss${oa}`,$=`click${oa}${sa}`,va=`modal-open`,ya=`fade`,ba=`show`,xa=`modal-static`,Sa=`.modal.show`,Ca=`.modal-dialog`,wa=`.modal-body`,Ta=`[data-bs-toggle="modal"], [data-tblr-toggle="modal"]`,Ea={backdrop:!0,focus:!0,keyboard:!0},Da={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Oa=class extends xn{constructor(e,t){super(e,t),this._dialog=Z.findOne(Ca,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ia,this._addEventListeners()}static get Default(){return Ea}static get DefaultType(){return Da}static get NAME(){return aa}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||J.trigger(this._element,fa,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(va),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(J.trigger(this._element,la).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ba),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){J.off(window,oa),J.off(this._dialog,oa),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new $i({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,`true`),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=Z.findOne(wa,this._dialog);t&&(t.scrollTop=0),un(this._element),this._element.classList.add(ba),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,pa,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,_a,e=>{if(e.key===ca){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,ma,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,ga,e=>{J.one(this._element,ha,t=>{if(this._element===e.target&&this._element===t.target){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,`true`),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(va),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,da)})}_isAnimated(){return this._element.classList.contains(ya)}_triggerBackdropTransition(){if(J.trigger(this._element,ua).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(xa)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(xa),this._queueCallback(()=>{this._element.classList.remove(xa),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;
1801if(n&&!e){let e=dn()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=dn()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}};J.on(document,$,Ta,function(e){let t=Z.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),J.one(t,fa,e=>{e.defaultPrevented||J.one(t,da,()=>{on(this)&&this.focus()})});let n=Z.findOne(Sa);n&&Oa.getInstance(n).hide(),Oa.getOrCreateInstance(t).toggle(this)}),Cn(Oa);var ka=`offcanvas`,Aa=`.bs.offcanvas`,ja=`.data-api`,Ma=`load${Aa}${ja}`,Na=`Escape`,Pa=`show`,Fa=`showing`,Ia=`hiding`,La=`offcanvas-backdrop`,Ra=`.offcanvas.show`,za=`show${Aa}`,Ba=`shown${Aa}`,Va=`hide${Aa}`,Ha=`hidePrevented${Aa}`,Ua=`hidden${Aa}`,Wa=`resize${Aa}`,Ga=`click${Aa}${ja}`,Ka=`keydown.dismiss${Aa}`,qa=`[data-bs-toggle="offcanvas"], [data-tblr-toggle="offcanvas"]`,Ja={backdrop:!0,keyboard:!0,scroll:!1},Ya={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},Xa=class extends xn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ja}static get DefaultType(){return Ya}static get NAME(){return ka}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||J.trigger(this._element,za,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new ia().hide(),this._element.setAttribute(`aria-modal`,`true`),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Fa),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Pa),this._element.classList.remove(Fa),J.trigger(this._element,Ba,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&!J.trigger(this._element,Va).defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ia),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Pa,Ia),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new ia().reset(),J.trigger(this._element,Ua)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){J.trigger(this._element,Ha);return}this.hide()},t=!!this._config.backdrop;return new Ui({className:La,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new $i({trapElement:this._element})}_addEventListeners(){J.on(this._element,Ka,e=>{if(e.key===Na){if(this._config.keyboard){this.hide();return}J.trigger(this._element,Ha)}})}};J.on(document,Ga,qa,function(e){let t=Z.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),sn(this))return;J.one(t,Ua,()=>{on(this)&&this.focus()});let n=Z.findOne(Ra);n&&n!==t&&Xa.getInstance(n).hide(),Xa.getOrCreateInstance(t).toggle(this)}),J.on(window,Ma,()=>{for(let e of Z.find(Ra))Xa.getOrCreateInstance(e).show()}),J.on(window,Wa,()=>{for(let e of Z.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&Xa.getOrCreateInstance(e).hide()}),Cn(Xa);var Za={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Qa=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),$a=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,eo=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?!Qa.has(n)||!!$a.test(e.nodeValue):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function to(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=Array.from(r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=Array.from(e.attributes),i=[...t[`*`]||[],...t[n]||[]];for(let t of r)eo(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}
1801var no=`TemplateFactory`,ro={allowList:Za,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},io={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},ao={entry:`(string|element|function|null)`,selector:`(string|element)`},oo=class extends yn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ro}static get DefaultType(){return io}static get NAME(){return no}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content=X(X({},this._config.content),e),this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},ao)}_setContent(e,t,n){let r=Z.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(rn(t)){this._putElementInTemplate(an(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?to(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return fn(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},so=`tooltip`,co=new Set([`sanitize`,`allowList`,`sanitizeFn`]),lo=`fade`,uo=`modal`,fo=`show`,po=`.tooltip-inner`,mo=`.${uo}`,ho=`hide.bs.modal`,go=`hover`,_o=`focus`,vo=`click`,yo=`manual`,bo=`hide`,xo=`hidden`,So=`show`,Co=`shown`,wo=`inserted`,To=`click`,Eo=`focusin`,Do=`focusout`,Oo=`mouseenter`,ko=`mouseleave`,Ao={AUTO:`auto`,TOP:`top`,RIGHT:dn()?`left`:`right`,BOTTOM:`bottom`,LEFT:dn()?`right`:`left`},jo={allowList:Za,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},Mo={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},No=class extends xn{constructor(e,t){if(Tt===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._hideModalHandler=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return jo}static get DefaultType(){return Mo}static get NAME(){return so}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),J.off(this._element.closest(mo),ho,this._hideModalHandler),(this._element.getAttribute(`data-bs-original-title`)||this._element.getAttribute(`data-tblr-original-title`))&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)||this._element.getAttribute(`data-tblr-original-title`)||``),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=J.trigger(this._element,this.constructor.eventName(So)),t=(cn(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));
1801let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),J.trigger(this._element,this.constructor.eventName(wo))),this._popper=this._createPopper(n),n.classList.add(fo),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.on(e,`mouseover`,ln);this._queueCallback(()=>{J.trigger(this._element,this.constructor.eventName(Co)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!J.trigger(this._element,this.constructor.eventName(bo)).defaultPrevented){if(this._getTipElement().classList.remove(fo),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))J.off(e,`mouseover`,ln);this._activeTrigger[vo]=!1,this._activeTrigger[_o]=!1,this._activeTrigger[go]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),J.trigger(this._element,this.constructor.eventName(xo)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(lo,fo),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=en(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(lo),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new oo(X(X({},this._config),{},{content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[po]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)||this._element.getAttribute(`data-tblr-original-title`)||``}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip!==null&&this.tip.classList.contains(lo)}_isShown(){return this.tip!==null&&this.tip.classList.contains(fo)}_createPopper(e){let t=Ao[fn(this._config.placement,[this,e,this._element]).toUpperCase()];return wt(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return fn(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]},n=fn(this._config.popperConfig,[void 0,t]);return X(X({},t),typeof n==`object`&&n?n:{})}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)J.on(this._element,this.constructor.eventName(To),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[vo]=!(t._isShown()&&t._activeTrigger[vo]),t.toggle()});else if(t!==yo){let e=t===go?this.constructor.eventName(Oo):this.constructor.eventName(Eo),n=t===go?this.constructor.eventName(ko):this.constructor.eventName(Do);J.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?_o:go]=!0,t._enter()}),J.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?_o:go]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(mo),ho,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=Jt.getDataAttributes(this._element);for(let e of Object.keys(t))co.has(e)&&delete t[e];return e=X(X({},t),typeof e==`object`&&e?e:{}),e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:an(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}},Po=`popover`,Fo=`.popover-header`,Io=`.popover-body`,Lo=X(X({},No.Default),{},{content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`}),Ro=X(X({},No.DefaultType),{},{content:`(null|string|element|function)`}),zo=class extends No{static get Default(){return Lo}static get DefaultType(){return Ro}static get NAME(){return Po}_isWithContent(){return!!(this._getTitle()||this._getContent())}_getContentForTemplate(){return{[Fo]:this._getTitle(),[Io]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}},Bo=`scrollspy`,Vo=`.bs.scrollspy`,Ho=`.data-api`,Uo=`activate${Vo}`,Wo=`click${Vo}`,Go=`load${Vo}${Ho}`,Ko=`dropdown-item`,qo=`active`,Jo=`[data-bs-spy="scroll"], [data-tblr-spy="scroll"]`,Yo=`[href]`,Xo=`.nav, .list-group`,Zo=`.nav-link`,Qo=`${Zo}, .nav-item > ${Zo}, .list-group-item`,$o=`.dropdown`,es=`.dropdown-toggle`,ts={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},ns={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},rs=class extends xn{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ts}static get DefaultType(){return ns}static get NAME(){return Bo}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=an(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,Wo),J.on(this._config.target,Wo,Yo,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(`scrollTo`in n){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=Z.find(Yo,this._config.target);for(let t of e){if(!t.hash||sn(t))continue;let e=Z.findOne(Qt(decodeURI(t.hash)),this._element);on(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(qo),this._activateParents(e),J.trigger(this._element,Uo,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Ko)){Z.findOne(es,e.closest($o)).classList.add(qo);return}for(let t of Z.parents(e,Xo))for(let e of Z.prev(t,Qo))e.classList.add(qo)}_clearActiveClass(e){e.classList.remove(qo);let t=Z.find(`${Yo}.${qo}`,e);for(let e of t)e.classList.remove(qo)}};J.on(window,Go,()=>{for(let e of Z.find(Jo))rs.getOrCreateInstance(e)});var is=`tab`,as=`.bs.tab`,os=`hide${as}`,ss=`hidden${as}`,cs=`show${as}`,ls=`shown${as}`,us=`click${as}`,ds=`keydown${as}`,fs=`load${as}`,ps=`ArrowLeft`,ms=`ArrowRight`,hs=`ArrowUp`,gs=`ArrowDown`,_s=`Home`,vs=`
1801End`,ys=`active`,bs=`fade`,xs=`show`,Ss=`dropdown`,Cs=`.dropdown-toggle`,ws=`.dropdown-menu`,Ts=`:not(${Cs})`,Es=`.list-group, .nav, [role="tablist"]`,Ds=`.nav-item, .list-group-item`,Os=`.nav-link${Ts}, .list-group-item${Ts}, [role="tab"]${Ts}`,ks=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"], [data-tblr-toggle="tab"], [data-tblr-toggle="pill"], [data-tblr-toggle="list"]`,As=`${Os}, ${ks}`,js=`.${ys}[data-bs-toggle="tab"], .${ys}[data-bs-toggle="pill"], .${ys}[data-bs-toggle="list"], .${ys}[data-tblr-toggle="tab"], .${ys}[data-tblr-toggle="pill"], .${ys}[data-tblr-toggle="list"]`,Ms=class e extends xn{constructor(e){super(e),this._parent=this._element.closest(Es),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,ds,e=>this._keydown(e)))}static get NAME(){return is}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?J.trigger(t,os,{relatedTarget:e}):null,r=J.trigger(e,cs,{relatedTarget:t});r!=null&&r.defaultPrevented||n!=null&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(ys),this._activate(Z.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(xs);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,`true`),this._toggleDropDown(e,!0),J.trigger(e,ls,{relatedTarget:t})},e,e.classList.contains(bs)))}_deactivate(e,t){e&&(e.classList.remove(ys),e.blur(),this._deactivate(Z.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(xs);return}e.setAttribute(`aria-selected`,`false`),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),J.trigger(e,ss,{relatedTarget:t})},e,e.classList.contains(bs)))}_keydown(t){if(![ps,ms,hs,gs,_s,vs].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!sn(e)),r;if([_s,vs].includes(t.key))r=n[t.key===_s?0:n.length-1];else{let e=[ms,gs].includes(t.key);r=mn(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return Z.find(As,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,String(t)),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=Z.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(Ss))return;let r=(e,r)=>{let i=Z.findOne(e,n);i&&i.classList.toggle(r,t)};r(Cs,ys),r(ws,xs),n.setAttribute(`aria-expanded`,String(t))}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(ys)}_getInnerElement(e){return e.matches(As)?e:Z.findOne(As,e)}_getOuterElement(e){return e.closest(Ds)||e}};J.on(document,us,ks,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!sn(this)&&Ms.getOrCreateInstance(this).show()}),J.on(window,fs,()=>{for(let e of Z.find(js))Ms.getOrCreateInstance(e)});var Ns=`toast`,Ps=`.bs.toast`,Fs=`mouseover${Ps}`,Is=`mouseout${Ps}`,Ls=`focusin${Ps}`,Rs=`focusout${Ps}`,zs=`hide${Ps}`,Bs=`hidden${Ps}`,Vs=`show${Ps}`,Hs=`shown${Ps}`,Us=`fade`,Ws=`hide`,Gs=`show`,Ks=`showing`,qs={animation:`boolean`,autohide:`boolean`,delay:`number`},Js={animation:!0,autohide:!0,delay:5e3},Ys=class extends xn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Js}static get DefaultType(){return qs}static get NAME(){return Ns}show(){let e=J.trigger(this._element,Vs);e!=null&&e.defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(Us),this._element.classList.remove(Ws),un(this._element),this._element.classList.add(Gs,Ks),this._queueCallback(()=>{this._element.classList.remove(Ks),J.trigger(this._element,Hs),this._maybeScheduleHide()},this._element,this._config.animation))}
1801hide(){if(!this.isShown())return;let e=J.trigger(this._element,zs);e!=null&&e.defaultPrevented||(this._element.classList.add(Ks),this._queueCallback(()=>{this._element.classList.add(Ws),this._element.classList.remove(Ks,Gs),J.trigger(this._element,Bs)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Gs),super.dispose()}isShown(){return this._element.classList.contains(Gs)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,Fs,e=>this._onInteraction(e,!0)),J.on(this._element,Is,e=>this._onInteraction(e,!1)),J.on(this._element,Ls,e=>this._onInteraction(e,!0)),J.on(this._element,Rs,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}};Cn(Ys),[].slice.call(document.querySelectorAll(`[data-bs-toggle="dropdown"]`)).map(function(e){return new Ii(e,{boundary:e.getAttribute(`data-bs-boundary`)===`viewport`?document.documentElement:`clippingParents`})});var Xs=e=>{for(let t of document.querySelectorAll(`[data-bs-toggle="sidebar-folded"]`))t.setAttribute(`aria-pressed`,String(e))},Zs=()=>{var e;return((e=document.documentElement.getAttribute(`data-bs-sidebar`))==null?``:e).startsWith(`folded`)||!!document.querySelector(`.navbar-vertical.navbar-folded, .navbar-vertical.navbar-folded-hover`)},Qs=e=>{for(let n of document.querySelectorAll(`.navbar-vertical [data-bs-toggle="dropdown"][aria-expanded="true"]`))if(n!==e){var t;(t=Ii.getInstance(n))==null||t.hide()}};document.addEventListener(`click`,e=>{if(!Zs())return;let t=e.target;t.closest(`.navbar-vertical .dropdown-menu`)||Qs(t.closest(`.navbar-vertical [data-bs-toggle="dropdown"]`))}),document.addEventListener(`mouseleave`,e=>{let t=e.target;t instanceof Element&&t.matches(`.navbar-vertical`)&&(document.documentElement.getAttribute(`data-bs-sidebar`)===`folded-hover`||t.classList.contains(`navbar-folded-hover`))&&Qs()},!0),document.addEventListener(`DOMContentLoaded`,()=>{var e;let t=((e=document.documentElement.getAttribute(`data-bs-sidebar`))==null?``:e).startsWith(`folded`);if(Xs(t),t)for(let e of document.querySelectorAll(`.navbar-vertical .dropdown-menu.show`)){var n;e.classList.remove(`show`),(n=e.parentElement)==null||(n=n.querySelector(`[data-bs-toggle="dropdown"]`))==null||n.setAttribute(`aria-expanded`,`false`)}}),document.addEventListener(`click`,e=>{var t;if(!e.target.closest(`[data-bs-toggle="sidebar-folded"]`))return;let n=document.documentElement,r=!((t=n.getAttribute(`data-bs-sidebar`))==null?``:t).startsWith(`folded`);r?n.setAttribute(`data-bs-sidebar`,`folded-hover`):n.removeAttribute(`data-bs-sidebar`),localStorage.setItem(`tabler-sidebar`,r?`folded-hover`:`default`),Xs(r),Qs(),document.dispatchEvent(new CustomEvent(`tabler:sidebar-folded`,{detail:{folded:r}}))}),[].slice.call(document.querySelectorAll(`[data-bs-toggle="tooltip"]`)).map(function(e){var t;return new No(e,{delay:{show:50,hide:50},html:e.getAttribute(`data-bs-html`)===`true`,placement:(t=e.getAttribute(`data-bs-placement`))==null?`auto`:t})}),[].slice.call(document.querySelectorAll(`[data-bs-toggle="popover"]`)).map(function(e){var t;return new zo(e,{delay:{show:50,hide:50},html:e.getAttribute(`data-bs-html`)===`true`,placement:(t=e.getAttribute(`data-bs-placement`))==null?`auto`:t})}),[].slice.call(document.querySelectorAll(`[data-bs-toggle="switch-icon"]`)).map(function(e){e.addEventListener(`click`,t=>{t.stopPropagation();let n=e.classList.toggle(`active`);e.setAttribute(`aria-pressed`,n?`true`:`false`)})}),(()=>{let e=window.location.hash;e&&[].slice.call(document.querySelectorAll(`[data-bs-toggle="tab"]`)).filter(t=>t.hash===e).map(e=>{new Ms(e).show()})})(),[].slice.call(document.querySelectorAll(`[data-bs-toggle="toast"]`)).map(function(e){let t=e.getAttribute(`data-bs-target`);if(t===null)return;let n=new Ys(t);e.addEventListener(`click`,()=>{n.show()})});var $s=document.querySelectorAll(`[data-sortable]`);
1801$s.length&&$s.forEach(function(e){let t={};try{let n=e.getAttribute(`data-sortable`);t=n?JSON.parse(n):{}}catch(e){}window.Sortable&&new window.Sortable(e,t)}),document.querySelectorAll(`.track-button`).forEach(function(e){e.addEventListener(`click`,function(t){let n=JSON.stringify({ref:e.dataset.btnRef,route:window.currentRoute}),r=new Blob([n],{type:`application/json;charset=UTF-8`});navigator.sendBeacon(`/events/button`,r)})});function ec(e){let t=new Uint8Array(e),n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function tc(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,`=`),i=atob(r),a=new ArrayBuffer(i.length),o=new Uint8Array(a);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return a}function nc(){var e;return rc.stubThis(((e=globalThis)==null?void 0:e.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential==`function`)}var rc={stubThis:e=>e};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ic(e)}function ac(e,t){if(ic(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ic(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oc(e){var t=ac(e,`string`);return ic(t)==`symbol`?t:t+``}function sc(e,t,n){return(t=oc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cc(Object(n),!0).forEach(function(t){sc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e){let{id:t}=e;return lc(lc({},e),{},{id:tc(t),transports:e.transports,type:e.type})}function dc(e){return e===`localhost`||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}var fc=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r==null?n.name:r,this.code=t}};function pc({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new fc({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){var r,i,a;if(((r=n.authenticatorSelection)==null?void 0:r.requireResidentKey)===!0)return new fc({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&((i=n.authenticatorSelection)==null?void 0:i.userVerification)===`required`)return new fc({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(((a=n.authenticatorSelection)==null?void 0:a.userVerification)===`required`)return new fc({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new fc({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new fc({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new fc({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new fc({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!dc(t))return new fc({message:`${globalThis.location.hostname}
1801 is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new fc({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new fc({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new fc({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}var mc=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}},hc=[`cross-platform`,`platform`];function gc(e){if(e&&!(hc.indexOf(e)<0))return e}function _c(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function vc(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){_c(a,r,i,o,s,`next`,e)}function s(e){_c(a,r,i,o,s,`throw`,e)}o(void 0)})}}function yc(e){return bc.apply(this,arguments)}function bc(){return bc=vc(function*(e){var t;!e.optionsJSON&&e.challenge&&(console.warn(`startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:n,useAutoRegister:r=!1}=e;if(!nc())throw Error(`WebAuthn is not supported in this browser`);let i=lc(lc({},n),{},{challenge:tc(n.challenge),user:lc(lc({},n.user),{},{id:tc(n.user.id)}),excludeCredentials:(t=n.excludeCredentials)==null?void 0:t.map(uc)}),a={};r&&(a.mediation=`conditional`),a.publicKey=i,a.signal=mc.createNewAbortSignal();let o;try{o=yield navigator.credentials.create(a)}catch(e){throw pc({error:e,options:a})}if(!o)throw Error(`Registration was not completed`);let{id:s,rawId:c,response:l,type:u}=o,d;typeof l.getTransports==`function`&&(d=l.getTransports());let f;if(typeof l.getPublicKeyAlgorithm==`function`)try{f=l.getPublicKeyAlgorithm()}catch(e){xc(`getPublicKeyAlgorithm()`,e)}let p;if(typeof l.getPublicKey==`function`)try{let e=l.getPublicKey();e!==null&&(p=ec(e))}catch(e){xc(`getPublicKey()`,e)}let m;if(typeof l.getAuthenticatorData==`function`)try{m=ec(l.getAuthenticatorData())}catch(e){xc(`getAuthenticatorData()`,e)}return{id:s,rawId:ec(c),response:{attestationObject:ec(l.attestationObject),clientDataJSON:ec(l.clientDataJSON),transports:d,publicKeyAlgorithm:f,publicKey:p,authenticatorData:m},type:u,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:gc(o.authenticatorAttachment)}}),bc.apply(this,arguments)}function xc(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function Sc(){if(!nc())return Cc.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return(e==null?void 0:e.isConditionalMediationAvailable)===void 0?Cc.stubThis(new Promise(e=>e(!1))):Cc.stubThis(e.isConditionalMediationAvailable())}var Cc={stubThis:e=>e};function wc({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new fc({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new fc({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!dc(t))return new fc({message:`${globalThis.location.hostname}
1801 is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new fc({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new fc({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}function Tc(e){return Ec.apply(this,arguments)}function Ec(){return Ec=vc(function*(e){var t;!e.optionsJSON&&e.challenge&&(console.warn(`startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:n,useBrowserAutofill:r=!1,verifyBrowserAutofillInput:i=!0}=e;if(!nc())throw Error(`WebAuthn is not supported in this browser`);let a;if(((t=n.allowCredentials)==null?void 0:t.length)!==0){var o;a=(o=n.allowCredentials)==null?void 0:o.map(uc)}let s=lc(lc({},n),{},{challenge:tc(n.challenge),allowCredentials:a}),c={};if(r){if(!(yield Sc()))throw Error(`Browser does not support WebAuthn autofill`);if(document.querySelectorAll(`input[autocomplete$='webauthn']`).length<1&&i)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');c.mediation=`conditional`,s.allowCredentials=[]}c.publicKey=s,c.signal=mc.createNewAbortSignal();let l;try{l=yield navigator.credentials.get(c)}catch(e){throw wc({error:e,options:c})}if(!l)throw Error(`Authentication was not completed`);let{id:u,rawId:d,response:f,type:p}=l,m;return f.userHandle&&(m=ec(f.userHandle)),{id:u,rawId:ec(d),response:{authenticatorData:ec(f.authenticatorData),clientDataJSON:ec(f.clientDataJSON),signature:ec(f.signature),userHandle:m},type:p,clientExtensionResults:l.getClientExtensionResults(),authenticatorAttachment:gc(l.authenticatorAttachment)}}),Ec.apply(this,arguments)}window.browserSupportsWebAuthn=nc,window.startAuthentication=Tc,window.startRegistration=yc,window.ApexCharts=c.default;function Dc(e){e.setAttribute(`disabled`,`disabled`);let t=e.querySelector(`svg`);t&&(t.outerHTML=`<span class="spinner-border spinner-border-sm me-2" role="status"></span>`)}document.querySelectorAll(`form`).forEach(function(e){e.target!==`_blank`&&!e.hasAttribute(`wire:submit`)&&e.addEventListener(`submit`,function(t){t.currentTarget.querySelectorAll(`button`).forEach(function(e){Dc(e)}),e.id&&document.querySelectorAll(`button[form=${e.id}]`).forEach(function(e){Dc(e)})})}),document.querySelectorAll(`.toggle-container`).forEach(function(e){e.addEventListener(`click`,function(t){let n=e.parentElement;n.style.display=`none`;let r=document.querySelector(`.wrapper`);n.classList.contains(`sticky-header`)?r.style.marginTop=`0`:r.style.marginBottom=`0`})}),document.querySelectorAll(`.copy-to-clipboard`).forEach(function(e){e.addEventListener(`click`,function(e){let t=e.currentTarget,n=t.dataset.value;navigator.clipboard.writeText(n).then(()=>{let e=new No(t);e.show(),setTimeout(function(){e.hide()},1e3)})})}),document.querySelectorAll(`[data-go-back]`).forEach(function(e){e.addEventListener(`click`,function(e){e.preventDefault(),history.back()})}),document.addEventListener(`click`,function(e){let t=e.target.closest(`[data-open-in-tab]`);!t||t.hasAttribute(`disabled`)||t.classList.contains(`disabled`)||(e.preventDefault(),window.open(t.getAttribute(`data-open-in-tab`),`_blank`))}),window.addEventListener(`message`,function(e){if(e.origin!==window.location.origin)return;let t=e.data;t&&t.source===`livewire`&&typeof t.event==`string`&&Livewire.dispatch(t.event,t.params||{})}),Livewire.on(`dispatch-to-opener`,({payload:e})=>{window.opener&&window.opener.postMessage(lc({source:`livewire`},e),window.location.origin)}),Livewire.on(`close-window`,()=>window.close()),Livewire.on(`navigate-detached`,({url:e})=>{window.opener=null,window.location.href=e}),Livewire.on(`open-modal`,({modalId:e})=>{let t=document.getElementById(e);t&&(Oa.getInstance(t)||new Oa(t)).show()}),Livewire.on(`close-modal`,({modalId:e})=>{let t=document.getElementById(e);t&&(Oa.getInstance(t)||new Oa(t)).hide()});

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.