942 lines
354 KiB
JavaScript
942 lines
354 KiB
JavaScript
import"./chunk-Q7L6LLAK.js";var Ue=Object.defineProperty,$e=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,zt=(m,t,e)=>t in m?Ue(m,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[t]=e,Y=(m,t)=>{for(var e in t||(t={}))qe.call(t,e)&&zt(m,e,t[e]);if(De)for(var e of De(t))je.call(t,e)&&zt(m,e,t[e]);return m},W=(m,t)=>$e(m,Ve(t)),R=(m,t,e)=>zt(m,typeof t!="symbol"?t+"":t,e);var P=class{static isSSR(){return typeof window>"u"||typeof document>"u"}static isBrowser(){return!this.isSSR()}static hasAPI(t){return this.isSSR()?!1:typeof window[t]<"u"}static getApex(){return typeof window<"u"&&window.Apex?window.Apex:typeof global<"u"&&global.Apex?global.Apex:{}}},kt=class m{constructor(t,e=null){this.nodeName=t,this.namespaceURI=e,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new Wt,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(t,e){this.attributes.set(t,e)}getAttribute(t){return this.attributes.get(t)}removeAttribute(t){this.attributes.delete(t)}hasAttribute(t){return this.attributes.has(t)}appendChild(t){if(t&&t!==this){if(t.parentNode&&t.parentNode!==this)t.parentNode.removeChild(t);else if(t.parentNode===this){let e=this.children.indexOf(t);e!==-1&&this.children.splice(e,1)}t.parentNode=this,this.children.push(t)}return t}removeChild(t){let e=this.children.indexOf(t);return e!==-1&&(this.children.splice(e,1),t.parentNode=null),t}insertBefore(t,e){if(!e)return this.appendChild(t);if(t.parentNode&&t.parentNode!==this)t.parentNode.removeChild(t);else if(t.parentNode===this){let i=this.children.indexOf(t);i!==-1&&this.children.splice(i,1)}let s=this.children.indexOf(e);return s!==-1&&(t.parentNode=this,this.children.splice(s,0,t)),t}cloneNode(t=!1){let e=new m(this.nodeName,this.namespaceURI);return e.textContent=this.textContent,this.attributes.forEach((s,i)=>{e.attributes.set(i,s)}),Object.assign(e.style,this.style),t&&this.children.forEach(s=>{s.cloneNode&&e.appendChild(s.cloneNode(!0))}),e}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 t=this;for(;t.parentNode;)t=t.parentNode;return t}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let t="";if(this.attributes.forEach((s,i)=>{t+=` ${i}="${s}"`}),this.children.length===0&&!this.textContent)return`<${this.nodeName}${t}/>`;let e=this.children.map(s=>s.toString()).join("");return`<${this.nodeName}${t}>${this.textContent}${e}</${this.nodeName}>`}get innerHTML(){return this.children.map(t=>t.toString()).join("")}set innerHTML(t){this.children=[],this.textContent=t}get outerHTML(){return this.toString()}get isConnected(){return!0}},Wt=class{constructor(){this.classes=new Set}add(...t){t.forEach(e=>this.classes.add(e))}remove(...t){t.forEach(e=>this.classes.delete(e))}contains(t){return this.classes.has(t)}toggle(t,e){return e===!0?(this.classes.add(t),!0):e===!1?(this.classes.delete(t),!1):this.classes.has(t)?(this.classes.delete(t),!1):(this.classes.add(t),!0)}toString(){return Array.from(this.classes).join(" ")}},Gt=class{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(t,e){return new kt(e,t)}createTextNode(t){let e={nodeName:"#text",nodeType:3,textContent:t,toString(){return e.textContent}};return e}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(t){return t&&t.getBoundingClientRect?t.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString(t){return t.toString?t.toString():""}}}createDOMParser(){return{parseFromString(t,e){let s=new kt("root");return s.innerHTML=t,{documentElement:s}}}}},U=null,at=null,rt=null,F=class{static init(){P.isSSR()&&!U&&(U=new Gt)}static createElement(t){return P.isSSR()?(U||this.init(),U.createElementNS(null,t)):document.createElement(t)}static createElementNS(t,e){return P.isSSR()?(U||this.init(),U.createElementNS(t,e)):document.createElementNS(t,e)}static createTextNode(t){return P.isSSR()?(U||this.init(),U.createTextNode(t)):document.createTextNode(t)}static querySelector(t){return P.isSSR()?null:document.querySelector(t)}static querySelectorAll(t){return P.isSSR()?[]:document.querySelectorAll(t)}static getComputedStyle(t){return P.isSSR()?{}:window.getComputedStyle(t)}static getBoundingClientRect(t){return P.isSSR()?(U||this.init(),U.getBoundingClientRect(t)):t?t.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return P.isSSR()?(U||this.init(),at||(at=U.createXMLSerializer()),at):(at||(at=new XMLSerializer),at)}static getDOMParser(){return P.isSSR()?(U||this.init(),rt||(rt=U.createDOMParser()),rt):(rt||(rt=new DOMParser),rt)}static addWindowEventListener(t,e,s){P.isBrowser()&&window.addEventListener(t,e,s)}static removeWindowEventListener(t,e,s){P.isBrowser()&&window.removeEventListener(t,e,s)}static requestAnimationFrame(t){return P.isBrowser()?window.requestAnimationFrame(t):(t(0),null)}static cancelAnimationFrame(t){P.isBrowser()&&t&&window.cancelAnimationFrame(t)}static elementExists(t){return t?P.isSSR()?t._ssrMode===!0||t.nodeName!==void 0:t.getRootNode?t.getRootNode({composed:!0})===document||t.isConnected:!1:!1}static getWindow(){return P.isBrowser()?window:null}static getDocument(){return P.isBrowser()?document:null}static _getShim(){return U}static _resetShim(){U=null,at=null,rt=null}},S=class Q{static isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}static is(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}static isSafari(){return P.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(t,e){let s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(i=>{this.isObject(e[i])?i in t?s[i]=this.extend(t[i],e[i]):Object.assign(s,{[i]:e[i]}):Object.assign(s,{[i]:e[i]})}),s}static extendArray(t,e){let s=[];return t.map(i=>{s.push(Q.extend(e,i))}),t=s,t}static monthMod(t){return t%12}static clone(t,e=new WeakMap,s=!1){if(t===null||typeof t!="object")return t;if(e.has(t))return e.get(t);let i;if(Array.isArray(t))if(s)i=t.slice();else{i=[],e.set(t,i);for(let a=0;a<t.length;a++)i[a]=this.clone(t[a],e,!1)}else if(t instanceof Date)i=new Date(t.getTime());else if(s)i=Object.assign({},t);else{i={},e.set(t,i);for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=this.clone(t[a],e,!1))}return i}static shallowClone(t){return t===null||typeof t!="object"?t:Array.isArray(t)?t.slice():Object.assign({},t)}static shallowEqual(t,e){if(t===e)return!0;if(!t||!e)return!1;if(typeof t!="object"||typeof e!="object")return t===e;let s=Object.keys(t),i=Object.keys(e);if(s.length!==i.length)return!1;for(let a of s)if(t[a]!==e[a])return!1;return!0}static log10(t){return Math.log(t)/Math.LN10}static roundToBase10(t){return Math.pow(10,Math.floor(Math.log10(t)))}static roundToBase(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}static parseNumber(t){return typeof t=="number"||t===null?t:parseFloat(t)}static stripNumber(t,e=2){return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(t){return t.toString().includes("e")?Math.round(t):t}static elementExists(t){return!(!t||!t.isConnected)}static isInShadowDOM(t){if(!t||!t.getRootNode)return!1;let e=t.getRootNode();return e&&e!==document&&Q.is("ShadowRoot",e)}static getShadowRootHost(t){return Q.isInShadowDOM(t)&&t.getRootNode().host||null}static getDimensions(t){if(!t)return[0,0];if(P.isSSR())return[t._ssrWidth||400,t._ssrHeight||300];let e;try{e=getComputedStyle(t,null)}catch{return[t.clientWidth||0,t.clientHeight||0]}let s=t.clientWidth,i=t.clientHeight;if(!s||!i){let a=t.getBoundingClientRect();s=s||a.width,i=i||a.height}return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),[s,i]}static getBoundingClientRect(t){if(!t)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(P.isSSR())return F.getBoundingClientRect(t);let e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}static getLargestStringFromArr(t){return t.reduce((e,s)=>(Array.isArray(s)&&(s=s.reduce((i,a)=>i.length>a.length?i:a)),e.length>s.length?e:s),0)}static hexToRgba(t="#999999",e=.6){t.substring(0,1)!=="#"&&(t="#999999");let s=t.replace("#",""),i=s.match(new RegExp("(.{"+s.length/3+"})","g"))||[];for(let a=0;a<i.length;a++)i[a]=parseInt(i[a].length===1?i[a]+i[a]:i[a],16);return typeof e<"u"&&i.push(e),"rgba("+i.join(",")+")"}static getOpacityFromRGBA(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}static parseHex(t){if(typeof t!="string")return null;let e=t.trim().replace("#","");return e.length===3&&(e=e.split("").map(s=>s+s).join("")),/^[0-9a-fA-F]{6}$/.test(e)?[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]:null}static relativeLuminance([t,e,s]){let i=a=>{let o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)};return .2126*i(t)+.7152*i(e)+.0722*i(s)}static getContrastRatio(t,e){let s=Q.parseHex(t),i=Q.parseHex(e);if(!s||!i)return 0;let a=Q.relativeLuminance(s),o=Q.relativeLuminance(i),r=Math.max(a,o),n=Math.min(a,o);return(r+.05)/(n+.05)}static rgb2hex(t){return t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),t&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}shadeRGBColor(t,e){let s=e.split(","),i=t<0?0:255,a=t<0?t*-1:t,o=parseInt(s[0].slice(4),10),r=parseInt(s[1],10),n=parseInt(s[2],10);return"rgb("+(Math.round((i-o)*a)+o)+","+(Math.round((i-r)*a)+r)+","+(Math.round((i-n)*a)+n)+")"}shadeHexColor(t,e){let s=parseInt(e.slice(1),16),i=t<0?0:255,a=t<0?t*-1:t,o=s>>16,r=s>>8&255,n=s&255;return"#"+(16777216+(Math.round((i-o)*a)+o)*65536+(Math.round((i-r)*a)+r)*256+(Math.round((i-n)*a)+n)).toString(16).slice(1)}shadeColor(t,e){return Q.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}static isColorHex(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}static isCSSVariable(t){if(typeof t!="string")return!1;let e=t.trim();return e.startsWith("var(")&&e.endsWith(")")}static getThemeColor(t){if(!Q.isCSSVariable(t)||P.isSSR())return t;let e=document.createElement("div");e.style.cssText="position:fixed; left: -9999px; visibility:hidden;",e.style.color=t,document.body.appendChild(e);let s;try{s=window.getComputedStyle(e).color}finally{e.parentNode&&e.parentNode.removeChild(e)}return s}static applyOpacityToColor(t,e){let s=Number(e);if(!Number.isFinite(s))return t;if(s<=0)return"transparent";if(s>=1)return t;let i=Math.round(s*100);return`color-mix(in srgb, ${t} ${i}%, transparent)`}static getPolygonPos(t,e){let s=[],i=Math.PI*2/e;for(let a=0;a<e;a++){let o={};o.x=t*Math.sin(a*i),o.y=-t*Math.cos(a*i),s.push(o)}return s}static polarToCartesian(t,e,s,i){let a=(i-90)*Math.PI/180;return{x:t+s*Math.cos(a),y:e+s*Math.sin(a)}}static escapeString(t,e="x"){let s=t.toString().slice();return s=s.replace(/[` ~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi,e),s}static negToZero(t){return t<0?0:t}static moveIndexInArray(t,e,s){if(s>=t.length){let i=s-t.length+1;for(;i--;)t.push(void 0)}return t.splice(s,0,t.splice(e,1)[0]),t}static extractNumber(t){return parseFloat(t.replace(/[^\d.]*/g,""))}static findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}static setELstyles(t,e){for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t.style.key=e[s])}static preciseAddition(t,e){let s=(String(t).split(".")[1]||"").length,i=(String(e).split(".")[1]||"").length,a=Math.pow(10,Math.max(s,i));return(Math.round(t*a)+Math.round(e*a))/a}static isNumber(t){return!isNaN(t)&&parseFloat(String(Number(t)))===t&&!isNaN(parseInt(t,10))}static isFloat(t){return Number(t)===t&&t%1!==0}static isMsEdge(){if(P.isSSR())return!1;let t=window.navigator.userAgent,e=t.indexOf("Edge/");return e>0?parseInt(t.substring(e+5,t.indexOf(".",e)),10):!1}static getGCD(t,e,s=7){let i=Math.pow(10,s-Math.floor(Math.log10(Math.max(t,e))));for(i>1?(t=Math.round(Math.abs(t)*i),e=Math.round(Math.abs(e)*i)):i=1;e;){let a=e;e=t%e,t=a}return t/i}static getPrimeFactors(t){let e=[],s=2;for(;t>=2;)t%s==0?(e.push(s),t=t/s):s++;return e}static mod(t,e,s=7){let i=Math.pow(10,s-Math.floor(Math.log10(Math.max(t,e))));return t=Math.round(Math.abs(t)*i),e=Math.round(Math.abs(e)*i),t%e/i}},V=class{constructor(t){this.w=t,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(t){return typeof t=="number"?!1:!isNaN(this.parseDate(t))}getTimeStamp(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}getDate(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}parseDate(t){let e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);let s=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return s=this.getTimeStamp(s),s}parseDateWithTimezone(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}formatDate(t,e){let s=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,a=["\0",...s.months],o=["",...s.shortMonths],r=["",...s.days],n=["",...s.shortDays];function h(C,k=2){let T=C+"";for(;T.length<k;)T="0"+T;return T}let l=i?t.getUTCFullYear():t.getFullYear();e=e.replace(/(^|[^\\])yyyy+/g,"$1"+l),e=e.replace(/(^|[^\\])yy/g,"$1"+l.toString().substr(2,2)),e=e.replace(/(^|[^\\])y/g,"$1"+l);let c=(i?t.getUTCMonth():t.getMonth())+1;e=e.replace(/(^|[^\\])MMMM+/g,"$1"+a[0]),e=e.replace(/(^|[^\\])MMM/g,"$1"+o[0]),e=e.replace(/(^|[^\\])MM/g,"$1"+h(c)),e=e.replace(/(^|[^\\])M/g,"$1"+c);let d=i?t.getUTCDate():t.getDate();e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0]),e=e.replace(/(^|[^\\])ddd/g,"$1"+n[0]),e=e.replace(/(^|[^\\])dd/g,"$1"+h(d)),e=e.replace(/(^|[^\\])d/g,"$1"+d);let f=i?t.getUTCHours():t.getHours();e=e.replace(/(^|[^\\])HH+/g,"$1"+h(f)),e=e.replace(/(^|[^\\])H/g,"$1"+f);let g=f>12?f-12:f===0?12:f;e=e.replace(/(^|[^\\])hh+/g,"$1"+h(g)),e=e.replace(/(^|[^\\])h/g,"$1"+g);let p=i?t.getUTCMinutes():t.getMinutes();e=e.replace(/(^|[^\\])mm+/g,"$1"+h(p)),e=e.replace(/(^|[^\\])m/g,"$1"+p);let u=i?t.getUTCSeconds():t.getSeconds();e=e.replace(/(^|[^\\])ss+/g,"$1"+h(u)),e=e.replace(/(^|[^\\])s/g,"$1"+u);let b=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+h(b,3)),b=Math.round(b/10),e=e.replace(/(^|[^\\])ff/g,"$1"+h(b)),b=Math.round(b/10),e=e.replace(/(^|[^\\])f/g,"$1"+b);let x=f<12?"AM":"PM";e=e.replace(/(^|[^\\])TT+/g,"$1"+x),e=e.replace(/(^|[^\\])T/g,"$1"+x.charAt(0));let y=x.toLowerCase();e=e.replace(/(^|[^\\])tt+/g,"$1"+y),e=e.replace(/(^|[^\\])t/g,"$1"+y.charAt(0));let w=-t.getTimezoneOffset(),A=i||!w?"Z":w>0?"+":"-";if(!i){w=Math.abs(w);let C=Math.floor(w/60),k=w%60;A+=h(C)+":"+h(k)}e=e.replace(/(^|[^\\])K/g,"$1"+A);let v=(i?t.getUTCDay():t.getDay())+1;return e=e.replace(new RegExp(r[0],"g"),r[v]),e=e.replace(new RegExp(n[0],"g"),n[v]),e=e.replace(new RegExp(a[0],"g"),a[c]),e=e.replace(new RegExp(o[0],"g"),o[c]),e=e.replace(/\\(.)/g,"$1"),e}getTimeUnitsfromTimestamp(t,e){let s=this.w;s.config.xaxis.min!==void 0&&(t=s.config.xaxis.min),s.config.xaxis.max!==void 0&&(e=s.config.xaxis.max);let i=this.getDate(t),a=this.getDate(e),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),r=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(r[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(r[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(r[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(r[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(r[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(r[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(r[0],10)}}isLeapYear(t){return t%4===0&&t%100!==0||t%400===0}calculcateLastDaysOfMonth(t,e,s){return this.determineDaysOfMonths(t,e)-s}determineDaysOfYear(t){let e=365;return this.isLeapYear(t)&&(e=366),e}determineRemainingDaysOfYear(t,e,s){let i=this.daysCntOfYear[e]+s;return e>1&&this.isLeapYear(t)&&i++,i}determineDaysOfMonths(t,e){let s=30;switch(t=S.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(this.isLeapYear(e)?s=29:s=28);break;case this.months31.indexOf(t)>-1:s=31;break;default:s=31;break}return s}getDateFields(t,e){let s=new Date(t);return e?{year:s.getUTCFullYear(),month:s.getUTCMonth(),date:s.getUTCDate(),hour:s.getUTCHours(),minute:s.getUTCMinutes(),second:s.getUTCSeconds(),ms:s.getUTCMilliseconds(),weekday:s.getUTCDay()}:{year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),ms:s.getMilliseconds(),weekday:s.getDay()}}addInterval(t,e,s,i){let a=new Date(t);if(i)switch(e){case"year":a.setUTCFullYear(a.getUTCFullYear()+s);break;case"month":a.setUTCMonth(a.getUTCMonth()+s);break;case"week":a.setUTCDate(a.getUTCDate()+s*7);break;case"day":a.setUTCDate(a.getUTCDate()+s);break;case"hour":a.setUTCHours(a.getUTCHours()+s);break;case"minute":a.setUTCMinutes(a.getUTCMinutes()+s);break;case"second":a.setUTCSeconds(a.getUTCSeconds()+s);break}else switch(e){case"year":a.setFullYear(a.getFullYear()+s);break;case"month":a.setMonth(a.getMonth()+s);break;case"week":a.setDate(a.getDate()+s*7);break;case"day":a.setDate(a.getDate()+s);break;case"hour":a.setHours(a.getHours()+s);break;case"minute":a.setMinutes(a.getMinutes()+s);break;case"second":a.setSeconds(a.getSeconds()+s);break}return a.getTime()}ceilToBoundary(t,e,s,i){let a=new Date(t);if(i)switch(e){case"second":{let o=a.getUTCSeconds(),r=Math.ceil(o/s)*s;return r===o&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(r),a.getTime())}case"minute":{let o=a.getUTCMinutes(),r=Math.ceil(o/s)*s;return r===o&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(r),a.getTime())}case"hour":{let o=a.getUTCHours(),r=Math.ceil(o/s)*s;return r===o&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(r),a.getTime())}case"day":return a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(a.getUTCDate()+1),a.getTime());case"week":{let r=Date.UTC(1970,0,5);a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0);let n=a.getTime(),h=Math.ceil((n-r)/6048e5),l=Math.ceil(h/s)*s,c=r+l*6048e5;return c>=t?c:c+s*6048e5}case"month":{let o=a.getUTCMonth(),r=Math.ceil(o/s)*s;return r===o&&a.getUTCDate()===1&&a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(1),a.setUTCMonth(r),a.getTime())}case"year":{let o=a.getUTCFullYear(),r=Math.ceil(o/s)*s;return r===o&&a.getUTCMonth()===0&&a.getUTCDate()===1&&a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:Date.UTC(r,0,1)}}else switch(e){case"second":{let o=a.getSeconds(),r=Math.ceil(o/s)*s;return r===o&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(r),a.getTime())}case"minute":{let o=a.getMinutes(),r=Math.ceil(o/s)*s;return r===o&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(r),a.getTime())}case"hour":{let o=a.getHours(),r=Math.ceil(o/s)*s;return r===o&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(r),a.getTime())}case"day":return a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(a.getDate()+1),a.getTime());case"week":{let r=new Date(1970,0,5).getTime();a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0);let n=a.getTime(),h=Math.ceil((n-r)/6048e5),l=Math.ceil(h/s)*s,c=r+l*6048e5;return c>=t?c:c+s*6048e5}case"month":{let o=a.getMonth(),r=Math.ceil(o/s)*s;return r===o&&a.getDate()===1&&a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(1),a.setMonth(r),a.getTime())}case"year":{let o=a.getFullYear(),r=Math.ceil(o/s)*s;return r===o&&a.getMonth()===0&&a.getDate()===1&&a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:new Date(r,0,1).getTime()}}return t}isAtBoundary(t,e,s){let i=this.getDateFields(t,s);switch(e){case"year":return i.month===0&&i.date===1&&i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"month":return i.date===1&&i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"day":return i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"hour":return i.minute===0&&i.second===0&&i.ms===0;case"minute":return i.second===0&&i.ms===0;case"second":return i.ms===0}return!1}},nt=class{constructor(t){this.w=t,this.tooltipKeyFormat="dd MMM"}xLabelFormat(t,e,s,i){let a=this.w;if(a.config.xaxis.type==="datetime"&&a.config.xaxis.labels.formatter===void 0&&a.config.tooltip.x.formatter===void 0){let o=new V(this.w);return o.formatDate(o.getDate(e),a.config.tooltip.x.format)}return t(e,s,i)}defaultGeneralFormatter(t){return Array.isArray(t)?t.map(e=>e):t}defaultYFormatter(t,e){let s=this.w;if(S.isNumber(t))if(s.globals.yValueDecimal!==0)t=t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:s.globals.yValueDecimal);else{let i=t.toFixed(0);t=Number(i)===t?i:t.toFixed(1)}return t}setLabelFormatters(){let t=this.w,e=t.formatters;return e.xaxisTooltipFormatter=s=>this.defaultGeneralFormatter(s),e.ttKeyFormatter=s=>this.defaultGeneralFormatter(s),e.ttZFormatter=s=>s,e.legendFormatter=s=>this.defaultGeneralFormatter(s),t.config.xaxis.labels.formatter!==void 0?e.xLabelFormatter=t.config.xaxis.labels.formatter:e.xLabelFormatter=s=>{if(S.isNumber(s)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(S.isNumber(t.config.xaxis.decimalsInFloat))return s.toFixed(t.config.xaxis.decimalsInFloat);{let i=t.globals.maxX-t.globals.minX;if(i>0){let a=i/10,o=Math.max(0,-Math.floor(Math.log10(a)));return s.toFixed(o)}return s.toFixed(0)}}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?s.toFixed(1):s.toFixed(0)}return s},typeof t.config.tooltip.x.formatter=="function"?e.ttKeyFormatter=t.config.tooltip.x.formatter:e.ttKeyFormatter=e.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(e.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(e.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(e.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(e.legendFormatter=t.config.legend.formatter),e.yLabelFormatters=[],t.config.yaxis.forEach((s,i)=>{s.labels.formatter!==void 0?e.yLabelFormatters[i]=s.labels.formatter:e.yLabelFormatters[i]=a=>t.globals.xyCharts?Array.isArray(a)?a.map(o=>this.defaultYFormatter(o,s)):this.defaultYFormatter(a,s):a}),t.globals}heatmapLabelFormatters(){let t=this.w;if(t.config.chart.type==="heatmap"){t.globals.yAxisScale[0].result=t.seriesData.seriesNames.slice();let e=t.seriesData.seriesNames.reduce((s,i)=>s.length>i.length?s:i,0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}},Rt=({isTimeline:m,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a})=>{var o;let r=a.rangeData.seriesRangeStart[t][e],n=a.rangeData.seriesRangeEnd[t][e],h=a.labelData.labels[e],l=a.config.series[t].name?a.config.series[t].name:"",c=a.formatters.ttKeyFormatter,d=a.config.tooltip.y.title.formatter,f={w:a,seriesIndex:t,dataPointIndex:e,start:r,end:n};typeof d=="function"&&(l=d(l,f)),(o=a.config.series[t].data[e])!=null&&o.x&&(h=a.config.series[t].data[e].x),m||a.config.xaxis.type==="datetime"&&(h=new nt(a).xLabelFormat(a.formatters.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new V(a).formatDate,w:a})),typeof c=="function"&&(h=c(h,f)),Number.isFinite(s)&&Number.isFinite(i)&&(r=s,n=i);let g="",p="",u=a.globals.colors[t];if(a.config.tooltip.x.formatter===void 0)if(a.config.xaxis.type==="datetime"){let b=new V(a);g=b.formatDate(b.getDate(r),a.config.tooltip.x.format),p=b.formatDate(b.getDate(n),a.config.tooltip.x.format)}else g=r,p=n;else g=a.config.tooltip.x.formatter(r),p=a.config.tooltip.x.formatter(n);return{start:r,end:n,startVal:g,endVal:p,ylabel:h,color:u,seriesName:l}},Yt=m=>{let{color:t,seriesName:e,ylabel:s,start:i,end:a,seriesIndex:o,dataPointIndex:r}=m,n=m.w.globals.tooltip.tooltipLabels.getFormatters(o);i=n.yLbFormatter(i),a=n.yLbFormatter(a);let h=n.yLbFormatter(m.w.seriesData.series[o][r]),l="",c=`<span class="value start-value">
|
|
${i}
|
|
</span> <span class="separator">-</span> <span class="value end-value">
|
|
${a}
|
|
</span>`;return m.w.globals.comboCharts?m.w.config.series[o].type==="rangeArea"||m.w.config.series[o].type==="rangeBar"?l=c:l=`<span>${h}</span>`:l=c,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+s+": </span> "+l+" </div></div>"},lt=class{constructor(t){this.opts=t}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(t){this.hideYAxis();let 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}};return S.extend(t,e)}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(t,e){let s=e.w.config.series[e.seriesIndex].name;return t!==null?s+": "+t:""},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}},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(),W(Y({},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(){let t=this.radialBar();return W(Y({},t),{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}}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["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:({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}rangeBar(){let t=s=>{let{color:i,seriesName:a,ylabel:o,startVal:r,endVal:n}=Rt(W(Y({},s),{isTimeline:!0}));return Yt(W(Y({},s),{color:i,seriesName:a,ylabel:o,start:r,end:n}))},e=s=>{let{color:i,seriesName:a,ylabel:o,start:r,end:n}=Rt(s);return Yt(W(Y({},s),{color:i,seriesName:a,ylabel:o,start:r,end:n}))};return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(s,{seriesIndex:i,dataPointIndex:a,w:o}){let r=()=>{let n=o.rangeData.seriesRangeStart[i][a];return o.rangeData.seriesRangeEnd[i][a]-n};return o.globals.comboCharts?o.config.series[i].type==="rangeBar"||o.config.series[i].type==="rangeArea"?r():s:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom(s){return s.w.config.plotOptions&&s.w.config.plotOptions.bar&&s.w.config.plotOptions.bar.horizontal?t(s):e(s)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(t){var e,s;return(e=t.plotOptions.bar)!=null&&e.barHeight||(t.plotOptions.bar.barHeight=2),(s=t.plotOptions.bar)!=null&&s.columnWidth||(t.plotOptions.bar.columnWidth=2),t}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(){let t=e=>{let{color:s,seriesName:i,ylabel:a,start:o,end:r}=Rt(e);return Yt(W(Y({},e),{color:s,seriesName:i,ylabel:a,start:o,end:r}))};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(e){return t(e)}}}}brush(t){let e={chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}};return S.extend(t,e)}stacked100(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;let e=t.dataLabels.formatter;return t.yaxis.forEach((i,a)=>{t.yaxis[a].min=0,t.yaxis[a].max=100}),t.chart.type==="bar"&&(t.dataLabels.formatter=e||function(i){return typeof i=="number"?i&&i.toFixed(0)+"%":i}),t}stackedBars(){let t=this.bar();return W(Y({},t),{plotOptions:W(Y({},t.plotOptions),{bar:W(Y({},t.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(t){return t.xaxis.convertedCatToNumeric=!0,t}convertCatToNumericXaxis(t,e){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(a){return S.isNumber(a)?Math.floor(a):a};let s=t.xaxis.labels.formatter,i=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return e&&e.length&&(i=e.map(a=>Array.isArray(a)?a:String(a))),i&&i.length&&(t.xaxis.labels.formatter=function(a){return S.isNumber(a)?s(i[Math.floor(a)-1]):s(a)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}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},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,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}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter(t){return t.toFixed(1)+"%"},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(t){return t.toFixed(1)+"%"},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(t){return t.toFixed(1)+"%"},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:t=>t,style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},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(t,e,s,i,a){let o=t.candleData.seriesCandleO[e][s],r=t.candleData.seriesCandleH[e][s],n=t.candleData.seriesCandleM[e][s],h=t.candleData.seriesCandleL[e][s],l=t.candleData.seriesCandleC[e][s],c=t.config.series[e];return c.type&&c.type!==a?`<div class="apexcharts-custom-tooltip">
|
|
${c.name?c.name:"series-"+(e+1)}: <strong>${t.seriesData.series[e][s]}</strong>
|
|
</div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${t.config.chart.type}"><div>${i[0]}: <span class="value">`+o+`</span></div><div>${i[1]}: <span class="value">`+r+"</span></div>"+(n?`<div>${i[2]}: <span class="value">`+n+"</span></div>":"")+`<div>${i[3]}: <span class="value">`+h+`</span></div><div>${i[4]}: <span class="value">`+l+"</span></div></div>"}},Ze="en",Ke={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"}},Be={name:Ze,options:Ke},tt=class{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}},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:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350},respectReducedMotion:!0},background:"",locales:[Be],defaultLocale:"en",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,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,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},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!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},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}},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",borderRadiusWhenStacked:"last",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},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max: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}}}},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(t){return String(t)}}},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(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter(t){return t.globals.seriesTotals.reduce((e,s)=>e+s,0)/t.seriesData.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter(t){return t.globals.seriesTotals.reduce((e,s)=>e+s,0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},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(t){return t!==null?t:""},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}},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:[],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}},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"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},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],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,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(t){return t?t+": ":""}}},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:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65},accessibility:{colorBlindMode:""}}}}},ct=class{constructor(t){this.opts=t}init({responsiveOverride:t}){var e,s,i,a,o,r,n,h,l,c;let d=this.opts,f=new tt,g=new lt(d);d=this.normalizeAliasedChartType(d),this.chartType=d.chart.type,d=this.extendYAxis(d),d=this.extendAnnotations(d);let p=f.init(),u={};if(d&&typeof d=="object"){let x={},y=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"],w=d.chart.requestedType;w==="funnel"||w==="pyramid"?x=g[w]():w==="gauge"?x=g.gauge():y.indexOf(d.chart.type)!==-1?x=g[d.chart.type]():x=g.line(),(s=(e=d.plotOptions)==null?void 0:e.bar)!=null&&s.isFunnel&&(x=g.funnel()),d.chart.stacked&&d.chart.type==="bar"&&(x=g.stackedBars()),(i=d.chart.brush)!=null&&i.enabled&&(x=g.brush(x)),(o=(a=d.plotOptions)==null?void 0:a.line)!=null&&o.isSlopeChart&&(x=g.slope()),d.chart.stacked&&d.chart.stackType==="100%"&&(d=g.stacked100(d)),(n=(r=d.plotOptions)==null?void 0:r.bar)!=null&&n.isDumbbell&&(d=g.dumbbell(d)),this.checkForDarkTheme(P.getApex()),this.checkForDarkTheme(d),d.xaxis=d.xaxis||P.getApex().xaxis||{},t||(d.xaxis.convertedCatToNumeric=!1),d=this.checkForCatToNumericXAxis(this.chartType,x,d),((h=d.chart.sparkline)!=null&&h.enabled||(c=(l=P.getApex().chart)==null?void 0:l.sparkline)!=null&&c.enabled)&&(x=g.sparkline(x)),u=S.extend(p,x)}let b=S.extend(u,P.getApex());return p=S.extend(b,d),p=this.handleUserInputErrors(p),p}normalizeAliasedChartType(t){if(!t||!t.chart)return t;let e=t.chart.type;return e!=="funnel"&&e!=="pyramid"&&e!=="gauge"||(t.chart.requestedType=e,e==="funnel"||e==="pyramid"?(t.plotOptions=t.plotOptions||{},t.plotOptions.bar=t.plotOptions.bar||{},t.plotOptions.bar.isFunnel=!0,t.plotOptions.bar.horizontal=!0,t.chart.type="bar"):e==="gauge"&&(t.chart.type="radialBar")),t}checkForCatToNumericXAxis(t,e,s){var i,a;let o=new lt(s),r=(t==="bar"||t==="boxPlot")&&((a=(i=s.plotOptions)==null?void 0:i.bar)==null?void 0:a.horizontal),n=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap",h=s.xaxis.type!=="datetime"&&s.xaxis.type!=="numeric",l=s.xaxis.tickPlacement?s.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return!r&&!n&&h&&l!=="between"&&(s=o.convertCatToNumeric(s)),s}extendYAxis(t,e){let s=new tt;(typeof t.yaxis>"u"||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={});let i=P.getApex();t.yaxis.constructor!==Array&&i.yaxis&&i.yaxis.constructor!==Array&&(t.yaxis=S.extend(t.yaxis,i.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[S.extend(s.yAxis,t.yaxis)]:t.yaxis=S.extendArray(t.yaxis,s.yAxis);let a=!1;t.yaxis.forEach(r=>{r.logarithmic&&(a=!0)});let o=t.series;return e&&!o&&(o=e.config.series),a&&o.length!==t.yaxis.length&&o.length&&(t.yaxis=o.map((r,n)=>{if(r.name||(o[n].name=`series-${n+1}`),t.yaxis[n])return t.yaxis[n].seriesName=o[n].name,t.yaxis[n];{let h=S.extend(s.yAxis,t.yaxis[0]);return h.show=!1,h}})),a&&o.length>1&&o.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}extendAnnotations(t){return typeof t.annotations>"u"&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t),t}extendYAxisAnnotations(t){let e=new tt;return t.annotations.yaxis=S.extendArray(typeof t.annotations.yaxis<"u"?t.annotations.yaxis:[],e.yAxisAnnotation),t}extendXAxisAnnotations(t){let e=new tt;return t.annotations.xaxis=S.extendArray(typeof t.annotations.xaxis<"u"?t.annotations.xaxis:[],e.xAxisAnnotation),t}extendPointAnnotations(t){let e=new tt;return t.annotations.points=S.extendArray(typeof t.annotations.points<"u"?t.annotations.points:[],e.pointAnnotation),t}checkForDarkTheme(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}handleUserInputErrors(t){let e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return(e.chart.type==="bar"||e.chart.type==="rangeBar")&&e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),(e.chart.type==="candlestick"||e.chart.type==="boxPlot")&&e.yaxis[0].reversed&&(console.warn(`Reversed y-axis in ${e.chart.type} chart is not supported.`),e.yaxis[0].reversed=!1),e}},He=1.618,Oe=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],Ut=[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],Dt=class{initGlobalVars(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.dataWasParsed=!1,t.originalSeries=null,t.maxValsInArrayIndex=0,t.yValueDecimal=0,t.allSeriesHasEqualX=!0,t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.barGroups=[],t.lineGroups=[],t.areaGroups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0,t.multiAxisTickAmount=0,t.disableZoomIn=!1,t.disableZoomOut=!1,t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.rotateXLabels=!1,t.overlappingXLabels=!1,t.radialSize=0,t.barHeight=0,t.barWidth=0,t.animationEnded=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.lastWheelExecution=0,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.lastDrawnDataLabelsIndexes=[],t.textRectsCache=new Map,t.domCache=new Map,t.dimensionCache={},t.cachedSelectors={},t.seriesNS||this._attachNamespaces(t)}_attachNamespaces(t){let e=(r,n,h=n)=>{Object.defineProperty(r,h,{get(){return t[n]},set(l){t[n]=l},enumerable:!0,configurable:!0})},s={};e(s,"series","data");for(let r 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","allSeriesCollapsed","risingSeries","previousPaths","ignoreYAxisIndexes","labels","categoryLabels","timescaleLabels","groups"])e(s,r);Object.defineProperty(t,"seriesNS",{value:s,writable:!1,enumerable:!1,configurable:!0});let i={};for(let r 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"])e(i,r);Object.defineProperty(t,"axes",{value:i,writable:!1,enumerable:!1,configurable:!0});let a={};for(let r 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"])e(a,r);Object.defineProperty(t,"layout",{value:a,writable:!1,enumerable:!1,configurable:!0});let o={};for(let r of["domCache","dimensionCache","cachedSelectors","textRectsCache","pointsArray","dataLabelsRects","lastDrawnDataLabelsIndexes","delayedElements","resizeTimer","selectionResizeTimer","resizeObserver"])e(o,r);Object.defineProperty(t,"cache",{value:o,writable:!1,enumerable:!1,configurable:!0})}globalVars(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},LINE_HEIGHT_RATIO:He,axisCharts:!0,isSlopeChart:t.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,invalidLogScale:!1,hasNullValues:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],svgWidth:0,svgHeight:0,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:Oe,niceScaleDefaultTicks:Ut,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(t){let e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=S.extend({},t),e.initialSeries=S.clone(t.series),e.lastXAxis=S.clone(e.initialConfig.xaxis),e.lastYAxis=S.clone(e.initialConfig.yaxis),e}},$t=class{constructor(t){this.opts=t}init(){let t=new ct(this.opts).init({responsiveOverride:!1}),e=new Dt().init(t),s={config:t,globals:e,dom:{},interact:{zoomEnabled:t.chart.toolbar.autoSelected==="zoom"&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:t.chart.toolbar.autoSelected==="pan"&&t.chart.toolbar.tools.pan,selectionEnabled:t.chart.toolbar.autoSelected==="selection"&&t.chart.toolbar.tools.selection,zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},lastWheelExecution:0,capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:P.isBrowser()?"ontouchstart"in window||navigator.maxTouchPoints>0:!1},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:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},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:[]},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:[]}};Object.defineProperty(e,"dom",{get(){return s.dom},set(i){s.dom=i},enumerable:!1,configurable:!0});for(let i of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(e,i,{get(){return s.formatters[i]},set(a){s.formatters[i]=a},enumerable:!1,configurable:!0});for(let i of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","lastWheelExecution","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(e,i,{get(){return s.interact[i]},set(a){s.interact[i]=a},enumerable:!1,configurable:!0});for(let i of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords"])Object.defineProperty(e,i,{get(){return s.layout[i]},set(a){s.layout[i]=a},enumerable:!1,configurable:!0});for(let i of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(e,i,{get(){return s.seriesData[i]},set(a){s.seriesData[i]=a},enumerable:!1,configurable:!0});for(let i of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(e,i,{get(){return s.axisFlags[i]},set(a){s.axisFlags[i]=a},enumerable:!1,configurable:!0});for(let i of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(e,i,{get(){return s.labelData[i]},set(a){s.labelData[i]=a},enumerable:!1,configurable:!0});for(let i of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(e,i,{get(){return s.rangeData[i]},set(a){s.rangeData[i]=a},enumerable:!1,configurable:!0});for(let i of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(e,i,{get(){return s.candleData[i]},set(a){s.candleData[i]=a},enumerable:!1,configurable:!0});return s}},j=class{constructor(t){this.w=t}static checkComboSeries(t,e){let s=!1,i=0,a=0;return e===void 0&&(e="line"),t.length&&typeof t[0].type<"u"&&t.forEach(o=>{(o.type==="bar"||o.type==="column"||o.type==="candlestick"||o.type==="boxPlot")&&i++,typeof o.type<"u"&&o.type!==e&&a++}),a>0&&(s=!0),{comboBarCount:i,comboCharts:s}}getStackedSeriesTotals(t=[]){let e=this.w,s=[];if(e.seriesData.series.length===0)return s;for(let i=0;i<e.seriesData.series[e.globals.maxValsInArrayIndex].length;i++){let a=0;for(let o=0;o<e.seriesData.series.length;o++)typeof e.seriesData.series[o][i]<"u"&&t.indexOf(o)===-1&&(a+=e.seriesData.series[o][i]);s.push(a)}return s}getSeriesTotalByIndex(t=null){if(t===null)return this.w.config.series.reduce((e,s)=>e+s,0);{let e=this.w.seriesData.series[t];return Array.isArray(e)?e.reduce((s,i)=>s+i,0):e??0}}getStackedSeriesTotalsByGroups(){let t=this.w,e=[];return t.labelData.seriesGroups.forEach(s=>{let i=[];t.config.series.forEach((o,r)=>{s.indexOf(t.seriesData.seriesNames[r])>-1&&i.push(r)});let a=t.seriesData.series.map((o,r)=>i.indexOf(r)===-1?r:-1).filter(o=>o!==-1);e.push(this.getStackedSeriesTotals(a))}),e}setSeriesYAxisMappings(){let t=this.w.globals,e=this.w.config,s=[],i=[],a=[],o=this.w.seriesData.series.length>e.yaxis.length||e.yaxis.some(h=>Array.isArray(h.seriesName));e.series.forEach((h,l)=>{a.push(l),i.push(null)}),e.yaxis.forEach((h,l)=>{s[l]=[]});let r=[];e.yaxis.forEach((h,l)=>{let c=!1;if(h.seriesName){let d=[];Array.isArray(h.seriesName)?d=h.seriesName:d.push(h.seriesName),d.forEach(f=>{e.series.forEach((g,p)=>{if(g.name===f){let u=p;l===p||o?!o||a.indexOf(p)>-1?s[l].push([l,p]):console.warn("Series '"+g.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(s[p].push([p,l]),u=l),c=!0,u=a.indexOf(u),u!==-1&&a.splice(u,1)}})})}c||r.push(l)}),s=s.map(h=>{let l=[];return h.forEach(c=>{i[c[1]]=c[0],l.push(c[1])}),l});let n=e.yaxis.length-1;for(let h=0;h<r.length&&(n=r[h],s[n]=[],a);h++){let l=a[0];a.shift(),s[n].push(l),i[l]=n}a.forEach(h=>{s[n].push(h),i[h]=n}),t.seriesYAxisMap=s.map(h=>h),t.seriesYAxisReverseMap=i.map(h=>h),t.seriesYAxisMap.forEach((h,l)=>{h.forEach(c=>{if(e.series[c]&&e.series[c].group===void 0){let d=e.series[c];d.group="apexcharts-axis-".concat(l.toString())}})})}isSeriesNull(t=null){let e=[],s=this.w.config.series;return t===null?e=s.filter(i=>i!==null):s[t]&&Array.isArray(s[t].data)?e=s[t].data.filter(i=>i!==null):e=s[t]!==null&&s[t]!==void 0?[s[t]]:[],e.length===0}seriesHaveSameValues(t){let e=this.w.seriesData.series[t];return Array.isArray(e)?e.every((s,i,a)=>s===a[0]):!0}getCategoryLabels(t){let e=this.w,s=t.slice();return e.config.xaxis.convertedCatToNumeric&&(s=t.map(i=>e.config.xaxis.labels.formatter(i-e.globals.minX+1))),s}getLargestSeries(){let t=this.w;t.globals.maxValsInArrayIndex=t.seriesData.series.map(e=>e.length).indexOf(Math.max.apply(Math,t.seriesData.series.map(e=>e.length)))}getLargestMarkerSize(){let t=this.w,e=0;return t.globals.markers.size.forEach(s=>{e=Math.max(e,s)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(s=>{e=Math.max(e,s.size)}),e>0&&(t.config.markers.hover.size>0?e=t.config.markers.hover.size:e+=t.config.markers.hover.sizeOffset),t.globals.markers.largestSize=e,e}getSeriesTotals(){let t=this.w;t.globals.seriesTotals=t.seriesData.series.map(e=>{let s=0;if(Array.isArray(e))for(let i=0;i<e.length;i++)s+=e[i];else s+=e;return s})}getSeriesTotalsXRange(t,e){let s=this.w;return s.seriesData.series.map((a,o)=>{let r=0;for(let n=0;n<a.length;n++)s.seriesData.seriesX[o][n]>t&&s.seriesData.seriesX[o][n]<e&&(r+=a[n]);return r})}getPercentSeries(){let t=this.w;t.globals.seriesPercent=t.seriesData.series.map(e=>{let s=[];if(Array.isArray(e))for(let i=0;i<e.length;i++){let a=t.seriesData.stackedSeriesTotals[i],o=0;a&&(o=100*e[i]/a),s.push(o)}else{let i=t.globals.seriesTotals.reduce((o,r)=>o+r,0),a=100*e/i;s.push(a)}return s})}getCalculatedRatios(){let t=this.w,e=t.globals,s=[],i=0,a=0,o=0,r=0,n=[],h=.1,l=0;if(e.yRange=[],e.isMultipleYAxis)for(let c=0;c<e.minYArr.length;c++)e.yRange.push(Math.abs(e.minYArr[c]-e.maxYArr[c])),n.push(0);else e.yRange.push(Math.abs(e.minY-e.maxY));e.xRange=Math.abs(e.maxX-e.minX),e.zRange=Math.abs(e.maxZ-e.minZ);for(let c=0;c<e.yRange.length;c++)s.push(e.yRange[c]/this.w.layout.gridHeight);if(a=e.xRange/this.w.layout.gridWidth,i=e.yRange/this.w.layout.gridWidth,o=e.xRange/this.w.layout.gridHeight,r=e.zRange/this.w.layout.gridHeight*16,r||(r=1),e.minY!==Number.MIN_VALUE&&Math.abs(e.minY)!==0){let c=e;c.hasNegs=!0}if(t.globals.seriesYAxisReverseMap.length>0){let c=(d,f)=>{let g=t.config.yaxis[t.globals.seriesYAxisReverseMap[f]],p=d<0?-1:1;return d=Math.abs(d),g.logarithmic&&(d=this.getBaseLog(g.logBase,d)),-p*d/s[f]};if(e.isMultipleYAxis){n=[];for(let d=0;d<s.length;d++)n.push(c(e.minYArr[d],d))}else n=[],n.push(c(e.minY,0)),e.minY!==Number.MIN_VALUE&&Math.abs(e.minY)!==0&&(h=-e.minY/i,l=e.minX/a)}else n=[],n.push(0),h=0,l=0;return{yRatio:s,invertedYRatio:i,zRatio:r,xRatio:a,invertedXRatio:o,baseLineInvertedY:h,baseLineY:n,baseLineX:l}}getLogSeries(t){let e=this.w;return e.globals.seriesLog=t.map((s,i)=>{let a=e.globals.seriesYAxisReverseMap[i];return e.config.yaxis[a]&&e.config.yaxis[a].logarithmic?s.map(o=>o===null?null:this.getLogVal(e.config.yaxis[a].logBase,o,i)):s}),e.globals.invalidLogScale?t:e.globals.seriesLog}getLogValAtSeriesIndex(t,e){if(t===null)return null;let s=this.w,i=s.globals.seriesYAxisReverseMap[e];return s.config.yaxis[i]&&s.config.yaxis[i].logarithmic?this.getLogVal(s.config.yaxis[i].logBase,t,e):t}getBaseLog(t,e){return Math.log(e)/Math.log(t)}getLogVal(t,e,s){if(e<=0)return 0;let i=this.w,a=i.globals.minYArr[s]===0?-1:this.getBaseLog(t,i.globals.minYArr[s]),r=(i.globals.maxYArr[s]===0?0:this.getBaseLog(t,i.globals.maxYArr[s]))-a;return e<1?e/r:(this.getBaseLog(t,e)-a)/r}getLogYRatios(t){let e=this.w,s=this.w.globals,i=s;return i.yLogRatio=t.slice(),i.logYRange=s.yRange.map((a,o)=>{let r=e.globals.seriesYAxisReverseMap[o];if(e.config.yaxis[r]&&this.w.config.yaxis[r].logarithmic){let n=-Number.MAX_VALUE,h=Number.MIN_VALUE,l=1;return s.seriesLog.forEach((c,d)=>{c.forEach(f=>{e.config.yaxis[d]&&e.config.yaxis[d].logarithmic&&(n=Math.max(f,n),h=Math.min(f,h))})}),l=Math.pow(s.yRange[o],Math.abs(h-n)/s.yRange[o]),i.yLogRatio[o]=l/this.w.layout.gridHeight,l}}),i.invalidLogScale?t.slice():i.yLogRatio}static extendArrayProps(t,e,s){var i,a;return e?.yaxis&&(e=t.extendYAxis(e,s)),e?.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),(i=e?.annotations)!=null&&i.xaxis&&(e=t.extendXAxisAnnotations(e)),(a=e?.annotations)!=null&&a.points&&(e=t.extendPointAnnotations(e))),e}drawSeriesByGroup(t,e,s,i){let a=this.w,o=[];return t.series.length>0&&e.forEach(r=>{let n=[],h=[];t.i.forEach((l,c)=>{a.config.series[l].group===r&&(n.push(t.series[c]),h.push(l))}),n.length>0&&o.push(i.draw(n,s,h))}),o}},Bt="http://www.w3.org/2000/svg";function Te(m){return 1-Math.pow(1-m,3)}function Je(m){return 1+2.70158*Math.pow(m-1,3)+1.70158*Math.pow(m-1,2)}var Ht=null;function Qe(){if(!P.isBrowser())return!1;try{return Ht||(Ht=window.matchMedia("(prefers-reduced-motion: reduce)")),!!Ht.matches}catch{return!1}}function Vt(m,t,e){if(!P.isBrowser()||e.globals.dataChanged||e.globals.resized)return!1;let s=e.config.chart.animations;if(!s||s.enabled===!1)return!1;let i=e.config.chart.type;if(i!=="line"&&i!=="area"&&i!=="rangeArea"||!(e.layout.gridWidth>0))return!1;let a=(s.speed||800)*2,o=Math.max(0,Math.min(1,t/e.layout.gridWidth)),n=(1-Math.cbrt(1-o))*a,l=m.node.style;l.opacity="0";let c=null,d=f=>{c===null&&(c=f),f-c>=n?l.opacity="1":F.requestAnimationFrame(d)};return F.requestAnimationFrame(d),!0}function ts(m){let t=m.config.chart.animations;t&&t.respectReducedMotion!==!1&&Qe()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1))}function es(m){let t=m.style,e=m.index||0,s=typeof m.baseDelay=="number"?m.baseDelay:40,i=m.row||0,a=m.col||0,o=m.groupIndex||0,r=m.perGroup||1,n=m.centerDistance||0;switch(t){case"none":return 0;case"diagonal":return(i+a)*s;case"group":return o*s+e%r*(s/4);case"centroid":return n*s*(e+1);default:return e*s}}var mt=class{constructor(t,e){this.w=t,this.ctx=e}animateLine(t,e,s,i){t.attr(e).animate(i).attr(s)}animateMarker(t,e,s,i){t.attr({opacity:0}).animate(e).attr({opacity:1}).after(()=>{i()})}animatePop(t,{speed:e,delay:s=0,onComplete:i}){let a=this.w;if(!P.isBrowser()||!a.globals.shouldAnimate||e<1){i&&i();return}let r=t.node.style;r.transformBox="fill-box",r.transformOrigin="center",r.transform="scale(0)",r.opacity="0";let n=performance.now()+s,h=l=>{let c=Math.max(0,Math.min(1,(l-n)/e));r.transform=`scale(${Je(c)})`,r.opacity=String(Math.min(1,c*2)),c<1?F.requestAnimationFrame(h):(r.transform="",r.transformOrigin="",r.transformBox="",r.opacity="",i&&i())};F.requestAnimationFrame(h)}animateRect(t,e,s,i,a,o=0){t.attr(e).animate(i,o).attr(s).after(()=>a())}animatePathsGradually(t){let{el:e,realIndex:s,j:i,fill:a,pathFrom:o,pathTo:r,speed:n,delay:h}=t,l=this,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&c.config.chart.type!=="bar"&&(d=0),l.morphSVG(e,s,i,c.config.chart.type==="line"&&!c.globals.comboCharts?"stroke":a,o,r,n,h*d)}showDelayedElements(){this.w.globals.delayedElements.forEach(t=>{let e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(t){let e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),typeof e.config.chart.events.animationEnd=="function"&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}animateDraw(t,{realIndex:e,j:s,isFill:i,isLast:a,speed:o,delay:r,mask:n}){let h=this.w,l=this,c=()=>{a&&h.globals.shouldAnimate&&l.animationCompleted(t),l.showDelayedElements()};if(!P.isBrowser()||!h.globals.shouldAnimate||o<1){c();return}let d=t.node,f=()=>{let u=n&&n.type==="radial",b=h.layout.gridWidth+8,x=n&&n.cx||0,y=n&&n.cy||0,w=(n&&n.r||h.layout.gridWidth/2)+4,A=`apexDrawMask${h.globals.cuid}-${e}-${s??0}-${i?"f":"s"}`,v=F.createElementNS(Bt,"mask");v.setAttribute("id",A),v.setAttribute("maskUnits","userSpaceOnUse");let C;if(u){let D=w;v.setAttribute("x",String(x-D)),v.setAttribute("y",String(y-D)),v.setAttribute("width",String(D*2)),v.setAttribute("height",String(D*2)),C=F.createElementNS(Bt,"circle"),C.setAttribute("cx",String(x)),C.setAttribute("cy",String(y)),C.setAttribute("r","0"),C.setAttribute("fill","#fff")}else v.setAttribute("x",String(-4)),v.setAttribute("y",String(-4)),v.setAttribute("width",String(b)),v.setAttribute("height",String(h.layout.gridHeight+8)),C=F.createElementNS(Bt,"rect"),C.setAttribute("x",String(-4)),C.setAttribute("y",String(-4)),C.setAttribute("width","0"),C.setAttribute("height",String(h.layout.gridHeight+8)),C.setAttribute("fill","#fff");v.appendChild(C),h.dom.elDefs.node.appendChild(v),d.setAttribute("mask",`url(#${A})`);let k=performance.now()+(r||0),T=D=>{let E=Math.max(0,Math.min(1,(D-k)/o)),_=Te(E);u?C.setAttribute("r",String(_*w)):C.setAttribute("width",String(_*b)),E<1?F.requestAnimationFrame(T):(d.removeAttribute("mask"),v.parentNode&&v.parentNode.removeChild(v),c())};F.requestAnimationFrame(T)},g=p=>{d.setAttribute("stroke-dasharray",String(p)),d.setAttribute("stroke-dashoffset",String(p));let u=performance.now()+(r||0),b=x=>{let y=Math.max(0,Math.min(1,(x-u)/o));d.setAttribute("stroke-dashoffset",String(p*(1-Te(y)))),y<1?F.requestAnimationFrame(b):(d.removeAttribute("stroke-dasharray"),d.removeAttribute("stroke-dashoffset"),c())};F.requestAnimationFrame(b)};F.requestAnimationFrame(()=>{if(i){f();return}let p=d.getAttribute("stroke-dasharray");if(!!p&&p!=="0"&&p!==""){f();return}let b=0;try{typeof d.getTotalLength=="function"&&(b=d.getTotalLength())}catch{b=0}if(!b){c();return}g(b)})}morphSVG(t,e,s,i,a,o,r,n){let h=this.w;a||(a=t.attr("pathFrom")),o||(o=t.attr("pathTo"));let l=()=>(h.config.chart.type==="radar"&&(r=1),`M 0 ${h.layout.gridHeight}`);(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=l()),(!o.trim()||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=l()),h.globals.shouldAnimate||(r=1),t.plot(a).animate(1,n).plot(a).animate(r,n).plot(o).after(()=>{S.isNumber(s)?s===h.seriesData.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&this.animationCompleted(t):i!=="none"&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&e===h.seriesData.series.length-1||h.globals.comboCharts)&&this.animationCompleted(t),this.showDelayedElements()})}},J=class{constructor(t){this.w=t}getDefaultFilter(t,e){let s=this.w;t.unfilter&&t.unfilter(!0),s.config.chart.dropShadow.enabled&&this.dropShadow(t,s.config.chart.dropShadow,e)}applyFilter(t,e,s){var i,a,o;let r=this.w;if(t.unfilter&&t.unfilter(!0),s==="none"){this.getDefaultFilter(t,e);return}let n=r.config.chart.dropShadow,h=s==="lighten"?2:.3;t.filterWith&&(t.filterWith(l=>{l.colorMatrix({type:"matrix",values:`
|
|
${h} 0 0 0 0
|
|
0 ${h} 0 0 0
|
|
0 0 ${h} 0 0
|
|
0 0 0 1 0
|
|
`,in:"SourceGraphic",result:"brightness"}),n.enabled&&this.addShadow(l,e,n,"brightness")}),n.noUserSpaceOnUse||(a=(i=t.filterer())==null?void 0:i.node)==null||a.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((o=t.filterer())==null?void 0:o.node))}addShadow(t,e,s,i){var a;let o=this.w,{blur:r,top:n,left:h,color:l,opacity:c}=s;if(l=Array.isArray(l)?l[e]:l,((a=o.config.chart.dropShadow.enabledOnSeries)==null?void 0:a.length)>0&&o.config.chart.dropShadow.enabledOnSeries.indexOf(e)===-1)return t;t.offset({in:i,dx:h,dy:n,result:"offset"}),t.gaussianBlur({in:"offset",stdDeviation:r,result:"blur"}),t.flood({"flood-color":l,"flood-opacity":c,result:"flood"}),t.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),t.merge(["shadow",i])}dropShadow(t,e,s=0){var i,a,o,r,n;let h=this.w;return t.unfilter&&t.unfilter(!0),S.isMsEdge()&&h.config.chart.type==="radialBar"||((i=h.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.length)>0&&((a=h.config.chart.dropShadow.enabledOnSeries)==null?void 0:a.indexOf(s))===-1||t.filterWith&&(t.filterWith(l=>{this.addShadow(l,s,e,"SourceGraphic")}),e.noUserSpaceOnUse||(r=(o=t.filterer())==null?void 0:o.node)==null||r.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((n=t.filterer())==null?void 0:n.node)),t}setSelectionFilter(t,e,s){let i=this.w;if(typeof i.interact.selectedDataPoints[e]<"u"&&i.interact.selectedDataPoints[e].indexOf(s)>-1){t.node.setAttribute("selected",!0);let a=i.config.states.active.filter;a!=="none"&&this.applyFilter(t,e,a.type)}}_scaleFilterSize(t){if(!t)return;(s=>{for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.setAttribute(i,s[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}},L=class m{constructor(t,e=null){this.w=t,this.ctx=e}roundPathCorners(t,e){t.indexOf("NaN")>-1&&(t="");function s(T,D,E){var _=D.x-T.x,M=D.y-T.y,X=Math.sqrt(_*_+M*M);return i(T,D,Math.min(1,E/X))}function i(T,D,E){return{x:T.x+(D.x-T.x)*E,y:T.y+(D.y-T.y)*E}}function a(T,D){T.length>2&&(T[T.length-2]=D.x,T[T.length-1]=D.y)}function o(T){return{x:parseFloat(T[T.length-2]),y:parseFloat(T[T.length-1])}}var r=t.split(/[,\s]/).reduce(function(T,D){var E=D.match(/^([a-zA-Z])(.+)/);return E?(T.push(E[1]),T.push(E[2])):T.push(D),T},[]),n=r.reduce(function(T,D){return parseFloat(D)==D&&T.length?T[T.length-1].push(D):T.push([D]),T},[]),h=[];if(n.length>1){var l=o(n[0]),c=null;n[n.length-1][0]=="Z"&&n[0].length>2&&(c=["L",l.x,l.y],n[n.length-1]=c),h.push(n[0]);for(var d=1;d<n.length;d++){var f=h[h.length-1],g=n[d],p=g==c?n[1]:n[d+1];if(p&&f&&f.length>2&&g[0]=="L"&&p.length>2&&p[0]=="L"){var u=o(f),b=o(g),x=o(p),y,w;y=s(b,u,e),w=s(b,x,e),a(g,y),g.origPoint=b,h.push(g);var A=i(y,b,.5),v=i(b,w,.5),C=["C",A.x,A.y,v.x,v.y,w.x,w.y];C.origPoint=b,h.push(C)}else h.push(g)}if(c){var k=o(h[h.length-1]);h.push(["Z"]),a(h[0],k)}}else h=n;return h.reduce(function(T,D){return T+D.join(" ")+" "},"")}drawLine(t,e,s,i,a="#a8a8a8",o=0,r=null,n="butt"){return this.w.dom.Paper.line().attr({x1:t,y1:e,x2:s,y2:i,stroke:a,"stroke-dasharray":o,"stroke-width":r,"stroke-linecap":n})}drawRect(t=0,e=0,s=0,i=0,a=0,o="#fefefe",r=1,n=null,h=null,l=0){let d=this.w.dom.Paper.rect();return d.attr({x:t,y:e,width:s>0?s:0,height:i>0?i:0,rx:a,ry:a,opacity:r,"stroke-width":n!==null?n:0,stroke:h!==null?h:"none","stroke-dasharray":l}),d.node.setAttribute("fill",o),d}drawPolygon(t,e="#e1e1e1",s=1,i="none"){return this.w.dom.Paper.polygon(t).attr({fill:i,stroke:e,"stroke-width":s})}drawCircle(t,e=null){let s=this.w;t<0&&(t=0);let i=s.dom.Paper.circle(t*2);return e!==null&&i.attr(e),i}drawPath({d:t="",stroke:e="#a8a8a8",strokeWidth:s=1,fill:i,fillOpacity:a=1,strokeOpacity:o=1,classes:r,strokeLinecap:n=null,strokeDashArray:h=0}){let l=this.w;return n===null&&(n=l.config.stroke.lineCap),(t.indexOf("undefined")>-1||t.indexOf("NaN")>-1)&&(t=`M 0 ${l.layout.gridHeight}`),l.dom.Paper.path(t).attr({fill:i,"fill-opacity":a,stroke:e,"stroke-opacity":o,"stroke-linecap":n,"stroke-width":s,"stroke-dasharray":h,class:r})}group(t=null){let s=this.w.dom.Paper.group();return t!==null&&s.attr(t),s}move(t,e){return["M",t,e].join(" ")}line(t,e,s=null){return s==="H"?[" H",t].join(" "):s==="V"?[" V",e].join(" "):[" L",t,e].join(" ")}curve(t,e,s,i,a,o){return["C",t,e,s,i,a,o].join(" ")}quadraticCurve(t,e,s,i){return["Q",t,e,s,i].join(" ")}arc(t,e,s,i,a,o,r,n=!1){let h="A";return n&&(h="a"),[h,t,e,s,i,a,o,r].join(" ")}renderPaths({j:t,realIndex:e,pathFrom:s,pathTo:i,stroke:a,strokeWidth:o,strokeLinecap:r,fill:n,animationDelay:h,initialSpeed:l,dataChangeSpeed:c,className:d,chartType:f,shouldClipToGrid:g=!0,bindEventsOnPaths:p=!0,drawShadow:u=!0,drawMask:b=null}){let x=this.w,y=new J(this.w),w=new mt(this.w,void 0),A=this.w.config.chart.animations.enabled,v=A&&this.w.config.chart.animations.dynamicAnimation.enabled;if(s&&s.startsWith("M 0 0")&&i){let N=i.match(/^M\s+[\d.-]+\s+[\d.-]+/);N&&(s=s.replace(/^M\s+0\s+0/,N[0]))}let C,k=!!(A&&!x.globals.resized||v&&x.globals.dataChanged&&x.globals.shouldAnimate),T=typeof d=="string"&&(d.indexOf("apexcharts-line")>-1||d.indexOf("apexcharts-area")>-1||d.indexOf("apexcharts-rangeArea")>-1||d.indexOf("apexcharts-radar")>-1),D=!!(A&&!x.globals.resized&&!x.globals.dataChanged&&T);k&&!D?C=s:(C=i,k||(x.globals.animationEnded=!0));let E=x.config.stroke.dashArray,_=0;Array.isArray(E)?_=E[e]:_=x.config.stroke.dashArray;let M=this.drawPath({d:C,stroke:a,strokeWidth:o,fill:n,fillOpacity:1,classes:d,strokeLinecap:r,strokeDashArray:_});M.attr("index",e),g&&(f==="bar"&&!x.globals.isBarHorizontal||x.globals.comboCharts?M.attr({"clip-path":`url(#gridRectBarMask${x.globals.cuid})`}):M.attr({"clip-path":`url(#gridRectMask${x.globals.cuid})`})),x.config.chart.dropShadow.enabled&&u&&y.dropShadow(M,x.config.chart.dropShadow,e),p&&(M.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,M)),M.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,M)),M.node.addEventListener("mousedown",this.pathMouseDown.bind(this,M))),M.attr({pathTo:i,pathFrom:s});let X={el:M,j:t,realIndex:e,pathFrom:s,pathTo:i,fill:n,strokeWidth:o,delay:h};if(A&&!x.globals.resized&&!x.globals.dataChanged)if(D){let N=l*2,O=a==="none"||o===0,H=x.seriesData.series.length,I=x.globals.comboCharts?!0:e===H-1;w.animateDraw(M,{realIndex:e,j:t,isFill:O,isLast:I,speed:N,delay:0,mask:b})}else w.animatePathsGradually(W(Y({},X),{speed:l}));else(x.globals.resized||!x.globals.dataChanged)&&w.showDelayedElements();return x.globals.dataChanged&&v&&k&&w.animatePathsGradually(W(Y({},X),{speed:c})),M}drawPattern(t,e,s,i="#a8a8a8",a=0){return this.w.dom.Paper.pattern(e,s,n=>{t==="horizontalLines"?n.line(0,0,s,0).stroke({color:i,width:a+1}):t==="verticalLines"?n.line(0,0,0,e).stroke({color:i,width:a+1}):t==="slantedLines"?n.line(0,0,e,s).stroke({color:i,width:a}):t==="squares"?n.rect(e,s).fill("none").stroke({color:i,width:a}):t==="circles"&&n.circle(e).fill("none").stroke({color:i,width:a})})}drawGradient(t,e,s,i,a,o=null,r=null,n=[],h=0){let l=this.w,c;e.length<9&&e.indexOf("#")===0&&(e=S.hexToRgba(e,i)),s.length<9&&s.indexOf("#")===0&&(s=S.hexToRgba(s,a));let d=0,f=1,g=1,p=null;r!==null&&(d=typeof r[0]<"u"?r[0]/100:0,f=typeof r[1]<"u"?r[1]/100:1,g=typeof r[2]<"u"?r[2]/100:1,p=typeof r[3]<"u"?r[3]/100:null);let u=l.config.chart.type==="donut"||l.config.chart.type==="pie"||l.config.chart.type==="polarArea"||l.config.chart.type==="bubble";if(!n||n.length===0?c=l.dom.Paper.gradient(u?"radial":"linear",b=>{b.stop(d,e,i),b.stop(f,s,a),b.stop(g,s,a),p!==null&&b.stop(p,e,i)}):c=l.dom.Paper.gradient(u?"radial":"linear",b=>{(Array.isArray(n[h])?n[h]:n).forEach(y=>{b.stop(y.offset/100,y.color,y.opacity)})}),!u)t==="vertical"?c.from(0,0).to(0,1):t==="diagonal"?c.from(0,0).to(1,1):t==="horizontal"?c.from(0,1).to(1,1):t==="diagonal2"&&c.from(1,0).to(0,1);else{let b=l.layout.gridWidth/2,x=l.layout.gridHeight/2;l.config.chart.type!=="bubble"?c.attr({gradientUnits:"userSpaceOnUse",cx:b,cy:x,r:o}):c.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}return c}getTextBasedOnMaxWidth({text:t,maxWidth:e,fontSize:s,fontFamily:i}){let a=this.getTextRects(t,s,i,""),o=a.width/t.length,r=Math.floor(e/o);return e<a.width?t.slice(0,r-3)+"...":t}drawText({x:t,y:e,text:s,textAnchor:i,fontSize:a,fontFamily:o,fontWeight:r,foreColor:n,opacity:h,maxWidth:l,cssClass:c="",isPlainText:d=!0,dominantBaseline:f="auto"}){let g=this.w;typeof s>"u"&&(s="");let p=s;i||(i="start"),(!n||!n.length)&&(n=g.config.chart.foreColor),o=o||g.config.chart.fontFamily,a=a||"11px",r=r||"regular";let u={maxWidth:l,fontSize:a,fontFamily:o},b;return Array.isArray(s)?b=g.dom.Paper.text(x=>{for(let y=0;y<s.length;y++)p=s[y],l&&(p=this.getTextBasedOnMaxWidth(Y({text:s[y]},u))),y===0?x.tspan(p):x.tspan(p).newLine()}):(l&&(p=this.getTextBasedOnMaxWidth(Y({text:s},u))),b=d?g.dom.Paper.plain(s):g.dom.Paper.text(x=>x.tspan(p))),b.attr({x:t,y:e,"text-anchor":i,"dominant-baseline":f,"font-size":a,"font-family":o,"font-weight":r,fill:n,class:"apexcharts-text "+c}),b.node.style.fontFamily=o,b.node.style.opacity=h,b}getMarkerPath(t,e,s,i){let a="";switch(s){case"cross":i=i/1.4,a=`M ${t-i} ${e-i} L ${t+i} ${e+i} M ${t-i} ${e+i} L ${t+i} ${e-i}`;break;case"plus":i=i/1.12,a=`M ${t-i} ${e} L ${t+i} ${e} M ${t} ${e-i} L ${t} ${e+i}`;break;case"star":case"sparkle":{let o=5;i=i*1.15,s==="sparkle"&&(i=i/1.1,o=4);let r=Math.PI/o;for(let n=0;n<=2*o;n++){let h=n*r,l=n%2===0?i:i/2,c=t+l*Math.sin(h),d=e-l*Math.cos(h);a+=(n===0?"M":"L")+c+","+d}a+="Z";break}case"triangle":a=`M ${t} ${e-i}
|
|
L ${t+i} ${e+i}
|
|
L ${t-i} ${e+i}
|
|
Z`;break;case"square":case"rect":i=i/1.125,a=`M ${t-i} ${e-i}
|
|
L ${t+i} ${e-i}
|
|
L ${t+i} ${e+i}
|
|
L ${t-i} ${e+i}
|
|
Z`;break;case"diamond":i=i*1.05,a=`M ${t} ${e-i}
|
|
L ${t+i} ${e}
|
|
L ${t} ${e+i}
|
|
L ${t-i} ${e}
|
|
Z`;break;case"line":i=i/1.1,a=`M ${t-i} ${e}
|
|
L ${t+i} ${e}`;break;default:i=i*2,a=`M ${t}, ${e}
|
|
m -${i/2}, 0
|
|
a ${i/2},${i/2} 0 1,0 ${i},0
|
|
a ${i/2},${i/2} 0 1,0 -${i},0`;break}return a}drawMarkerShape(t,e,s,i,a){let o=this.drawPath({d:this.getMarkerPath(t,e,s,i),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return o.attr({cx:t,cy:e,shape:a.shape,class:a.class?a.class:""}),o}drawMarker(t,e,s){t=t||0;let i=s.pSize||0;return S.isNumber(e)||(i=0,e=0),this.drawMarkerShape(t,e,s?.shape,i,Y(Y({},s),s.shape==="line"||s.shape==="plus"||s.shape==="cross"?{pointStrokeColor:s.pointFillColor,pointStrokeOpacity:s.pointFillOpacity}:{}))}pathMouseEnter(t,e){var s,i;let a=this.w,o=new J(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),n=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);if(!(isNaN(r)||isNaN(n))&&(typeof a.config.chart.events.dataPointMouseEnter=="function"&&a.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}),m._fireEvent(a,"dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}]),!(a.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true")&&a.config.states.hover.filter.type!=="none"&&!a.interact.isTouchDevice)){let h=a.config.states.hover.filter;o.applyFilter(t,r,h.type)}}pathMouseLeave(t,e){var s,i;let a=this.w,o=new J(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),n=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);isNaN(r)||isNaN(n)||(typeof a.config.chart.events.dataPointMouseLeave=="function"&&a.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}),m._fireEvent(a,"dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}]),!(a.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true")&&a.config.states.hover.filter.type!=="none"&&o.getDefaultFilter(t,r))}pathMouseDown(t,e){var s,i;let a=this.w,o=new J(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),n=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);if(isNaN(r)||isNaN(n))return;let h="false";if(t.node.getAttribute("selected")==="true"){t.node.setAttribute("selected","false");let l=a.interact.selectedDataPoints[r].indexOf(n);l>-1&&a.interact.selectedDataPoints[r].splice(l,1)}else{if(!a.config.states.active.allowMultipleDataPointsSelection&&a.interact.selectedDataPoints.length>0){a.interact.selectedDataPoints=[];let l=a.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),c=a.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),d=f=>{Array.prototype.forEach.call(f,g=>{g.node.setAttribute("selected","false"),o.getDefaultFilter(g,r)})};d(l),d(c)}t.node.setAttribute("selected","true"),h="true",typeof a.interact.selectedDataPoints[r]>"u"&&(a.interact.selectedDataPoints[r]=[]),a.interact.selectedDataPoints[r].push(n)}if(h==="true"){let l=a.config.states.active.filter;if(l!=="none")o.applyFilter(t,r,l.type);else if(a.config.states.hover.filter!=="none"&&!a.interact.isTouchDevice){let c=a.config.states.hover.filter;o.applyFilter(t,r,c.type)}}else if(a.config.states.active.filter.type!=="none")if(a.config.states.hover.filter.type!=="none"&&!a.interact.isTouchDevice){let l=a.config.states.hover.filter;o.applyFilter(t,r,l.type)}else o.getDefaultFilter(t,r);typeof a.config.chart.events.dataPointSelection=="function"&&a.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:n,w:a}),e&&m._fireEvent(a,"dataPointSelection",[e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:n,w:a}])}rotateAroundCenter(t){let e={};t&&typeof t.getBBox=="function"&&(e=t.getBBox());let s=e.x+e.width/2,i=e.y+e.height/2;return{x:s,y:i}}setupEventDelegation(t,e){let s=null;t.node.addEventListener("mouseover",i=>{let a=m._findDelegateTarget(i.target,t.node,e);!a||a===s||(s&&s.instance&&this.pathMouseLeave(s.instance,i),s=a,a.instance&&this.pathMouseEnter(a.instance,i))}),t.node.addEventListener("mouseout",i=>{if(!s)return;(i.relatedTarget?m._findDelegateTarget(i.relatedTarget,t.node,e):null)!==s&&(s&&s.instance&&this.pathMouseLeave(s.instance,i),s=null)}),t.node.addEventListener("mousedown",i=>{let a=m._findDelegateTarget(i.target,t.node,e);a&&a.instance&&this.pathMouseDown(a.instance,i)})}static _fireEvent(t,e,s){let i=t.globals.events;if(!i||!Object.prototype.hasOwnProperty.call(i,e))return;let a=i[e];for(let o=0;o<a.length;o++)a[o].apply(null,s)}static _findDelegateTarget(t,e,s){for(;t&&t!==e&&t!==document;){if(t.matches&&t.matches(s))return t;t=t.parentNode}return null}static setAttrs(t,e){for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.setAttribute(s,e[s])}getTextRects(t,e,s,i,a=!0){let o=this.w,r=[t,e,s,i,a].join("\0"),n=o.globals.textRectsCache;if(n&&n.has(r))return n.get(r);let h=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:s,foreColor:"#fff",opacity:0});i&&h.attr("transform",i),o.dom.Paper.add(h);let l=h.bbox();a||(l=h.node.getBoundingClientRect()),h.remove();let c={width:l.width,height:l.height};return n&&n.set(r,c),c}placeTextWithEllipsis(t,e,s){if(typeof t.getComputedTextLength=="function"&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=s/1.1)){for(let i=e.length-3;i>0;i-=3)if(t.getSubStringLength(0,i)<=s/1.1){t.textContent=e.substring(0,i)+"...";return}t.textContent="."}}},B="http://www.w3.org/2000/svg",K=class m{constructor(t,e){typeof t=="object"?(this.x=t.x,this.y=t.y):(this.x=t||0,this.y=e||0)}transform(t){return t.apply(this)}clone(){return new m(this.x,this.y)}},xt=class m{constructor(t,e,s,i,a,o){this.a=t??1,this.b=e??0,this.c=s??0,this.d=i??1,this.e=a??0,this.f=o??0}rotate(t){let e=t*Math.PI/180,s=Math.cos(e),i=Math.sin(e);return this.multiply(new m(s,i,-i,s,0,0))}scale(t,e){return this.multiply(new m(t,0,0,e??t,0,0))}multiply(t){return new m(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}apply(t){return new K(this.a*t.x+this.c*t.y+this.e,this.b*t.x+this.d*t.y+this.f)}},_e=class{constructor(t,e,s,i){this.x=t,this.y=e,this.w=s,this.h=i,this.width=s,this.height=i,this.x2=t+s,this.y2=e+i}},Tt=class{constructor(t){this.w=t,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(t){let e=this.w,s=e.config,i=parseInt(String(e.layout.gridWidth),10),a=parseInt(String(e.layout.gridHeight),10),o=i>a?i:a,r=t.image,n=0,h=0;typeof t.width>"u"&&typeof t.height>"u"?s.fill.image.width!==void 0&&s.fill.image.height!==void 0?(n=s.fill.image.width+1,h=s.fill.image.height):(n=o+1,h=o):(n=t.width,h=t.height);let l=F.createElementNS(B,"pattern");L.setAttrs(l,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:h+"px"});let c=F.createElementNS(B,"image");l.appendChild(c);let d=P.isBrowser()?window.SVG:global.SVG;c.setAttributeNS(d.xlink,"href",r),L.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:h+"px"}),c.style.opacity=t.opacity,e.dom.elDefs.node.appendChild(l)}getSeriesIndex(t){let e=this.w,s=e.config.chart.type;return(s==="bar"||s==="rangeBar")&&e.config.plotOptions.bar.distributed||s==="heatmap"||s==="treemap"?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.seriesData.series.length,this.seriesIndex}computeColorStops(t,e){let s=this.w,i=null,a=null;for(let h of t)h>=e.threshold?(i===null||h>i)&&(i=h):(a===null||h<a)&&(a=h);i===null&&(i=e.threshold),a===null&&(a=e.threshold);let o=i-e.threshold+(e.threshold-a);o===0&&(o=1);let n=100-(e.threshold-a)/o*100;return n=Math.max(0,Math.min(n,100)),[{offset:n,color:e.colorAboveThreshold,opacity:s.config.fill.opacity},{offset:0,color:e.colorBelowThreshold,opacity:s.config.fill.opacity}]}fillPath(t){var e,s,i,a;let o=this.w;this.opts=t;let r=this.w.config,n,h,l;this.seriesIndex=this.getSeriesIndex(t);let c=r.plotOptions.line.colors.colorAboveThreshold&&r.plotOptions.line.colors.colorBelowThreshold,f=this.getFillColors()[this.seriesIndex];o.seriesData.seriesColors[this.seriesIndex]!==void 0&&(f=o.seriesData.seriesColors[this.seriesIndex]),typeof f=="function"&&(f=f({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:o}));let g=t.fillType?t.fillType:this.getFillType(this.seriesIndex),p=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity,u=g==="gradient"||c;t.color&&(f=t.color);let b=o.config.series[this.seriesIndex];(s=(e=b?.data)==null?void 0:e[t.dataPointIndex])!=null&&s.fillColor&&(f=(a=(i=b?.data)==null?void 0:i[t.dataPointIndex])==null?void 0:a.fillColor),f||(f="#fff",console.warn("undefined color - ApexCharts")),t.opacity!==void 0&&t.opacity!==null&&(p=t.opacity);let x=f;S.isCSSVariable(f)?x=S.applyOpacityToColor(f,p):f.indexOf("rgb")===-1?f.indexOf("#")===-1?x=f:f.length<9&&(x=S.hexToRgba(f,p)):f.indexOf("rgba")>-1?p=S.getOpacityFromRGBA(f):x=S.hexToRgba(S.rgb2hex(f),p);let y=S.isCSSVariable(f)?S.getThemeColor(f):f;if(g==="pattern"&&(h=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:h,fillColor:y,defaultColor:x})),u){let w=r.fill.gradient.colorStops?[...r.fill.gradient.colorStops]:[],A=r.fill.gradient.type;c&&(w[this.seriesIndex]=this.computeColorStops(o.seriesData.series[this.seriesIndex],r.plotOptions.line.colors),A="vertical"),l=this.handleGradientFill({type:A,fillConfig:t.fillConfig,fillColor:y,fillOpacity:p,colorStops:w,i:this.seriesIndex})}if(g==="image"){let w=r.fill.image.src,A=t.patternID?t.patternID:"",v=`pattern${o.globals.cuid}${t.seriesNumber+1}${A}`;this.patternIDs.indexOf(v)===-1&&(this.clippedImgArea({opacity:p,image:Array.isArray(w)?t.seriesNumber<w.length?w[t.seriesNumber]:w[0]:w,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:v}),this.patternIDs.push(v)),n=`url(#${v})`}else u?n=l:g==="pattern"?n=h:n=x;return t.solid&&(n=x),n}getFillType(t){let e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}getFillColors(){let t=this.w,e=t.config,s=this.opts,i=[];return t.globals.comboCharts?t.config.series[this.seriesIndex].type==="line"?Array.isArray(t.globals.stroke.colors)?i=t.globals.stroke.colors:i.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?i=t.globals.fill.colors:i.push(t.globals.fill.colors):e.chart.type==="line"?Array.isArray(t.globals.stroke.colors)?i=t.globals.stroke.colors:i.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?i=t.globals.fill.colors:i.push(t.globals.fill.colors),typeof s.fillColors<"u"&&(i=[],Array.isArray(s.fillColors)?i=s.fillColors.slice():i.push(s.fillColors)),i}handlePatternFill({fillConfig:t,patternFill:e,fillColor:s,defaultColor:i}){let a=this.w.config.fill;t&&(a=t);let o=this.opts,r=new L(this.w),n=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,h=s;return Array.isArray(a.pattern.style)?typeof a.pattern.style[o.seriesNumber]<"u"?e=r.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,h,n):e=i:e=r.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,h,n),e}handleGradientFill({type:t,fillColor:e,fillOpacity:s,fillConfig:i,colorStops:a,i:o}){let r=this.w.config.fill;i&&(r=Y(Y({},r),i));let n=this.opts,h=new L(this.w),l=new S;t=t||r.gradient.type;let c=e,d,f=r.gradient.opacityFrom===void 0?s:Array.isArray(r.gradient.opacityFrom)?r.gradient.opacityFrom[o]:r.gradient.opacityFrom;c.indexOf("rgba")>-1&&(f=S.getOpacityFromRGBA(c));let g=r.gradient.opacityTo===void 0?s:Array.isArray(r.gradient.opacityTo)?r.gradient.opacityTo[o]:r.gradient.opacityTo;if(r.gradient.gradientToColors===void 0||r.gradient.gradientToColors.length===0)r.gradient.shade==="dark"?d=l.shadeColor(parseFloat(r.gradient.shadeIntensity)*-1,e.indexOf("rgb")>-1?S.rgb2hex(e):e):d=l.shadeColor(parseFloat(r.gradient.shadeIntensity),e.indexOf("rgb")>-1?S.rgb2hex(e):e);else if(r.gradient.gradientToColors[n.seriesNumber]){let p=r.gradient.gradientToColors[n.seriesNumber];d=p,p.indexOf("rgba")>-1&&(g=S.getOpacityFromRGBA(p))}else d=e;if(r.gradient.gradientFrom&&(c=r.gradient.gradientFrom),r.gradient.gradientTo&&(d=r.gradient.gradientTo),r.gradient.inverseColors){let p=c;c=d,d=p}return c.indexOf("rgb")>-1&&(c=S.rgb2hex(c)),d.indexOf("rgb")>-1&&(d=S.rgb2hex(d)),h.drawGradient(t,c,d,f,g,n.size,r.gradient.stops,a,o)}},bt=class{constructor(t,e){this.w=t,this.ctx=e,this._filters=new J(this.w),this._graphics=new L(this.w,this.ctx)}setGlobalMarkerSize(){let t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.seriesData.series.length+1)for(let e=0;e<=t.seriesData.series.length;e++)typeof t.globals.markers.size[e]>"u"&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(()=>t.config.markers.size)}plotChartMarkers({pointsPos:t,seriesIndex:e,j:s,pSize:i,alwaysDrawMarker:a=!1,isVirtualPoint:o=!1}){let r=this.w,n=e,h=t,l=null,c=new L(this.w),d=r.config.markers.discrete&&r.config.markers.discrete.length;if(Array.isArray(h.x))for(let f=0;f<h.x.length;f++){let g,p=s,u=!S.isNumber(h.y[f]);r.globals.markers.largestSize===0&&r.globals.hasNullValues&&r.seriesData.series[n][s+1]!==null&&!o&&(u=!0),s===1&&f===0&&(p=0),s===1&&f===1&&(p=1);let b="apexcharts-marker";if((r.config.chart.type==="line"||r.config.chart.type==="area")&&!r.globals.comboCharts&&!r.config.tooltip.intersect&&(b+=" no-pointer-events"),(Array.isArray(r.config.markers.size)?r.globals.markers.size[e]>0:r.config.markers.size>0)||a||d){u||(b+=` w${S.randomId()}`);let y=this.getMarkerConfig({cssClass:b,seriesIndex:e,dataPointIndex:p}),w=r.config.series[n];w.data[p]&&(w.data[p].fillColor&&(y.pointFillColor=w.data[p].fillColor),w.data[p].strokeColor&&(y.pointStrokeColor=w.data[p].strokeColor)),typeof i<"u"&&(y.pSize=i),(h.x[f]<-r.globals.markers.largestSize||h.x[f]>r.layout.gridWidth+r.globals.markers.largestSize||h.y[f]<-r.globals.markers.largestSize||h.y[f]>r.layout.gridHeight+r.globals.markers.largestSize)&&(y.pSize=0),u||((r.globals.markers.size[e]>0||a||d)&&!l&&(l=c.group({class:a||d?"":"apexcharts-series-markers"}),l.attr("clip-path",`url(#gridRectMarkerMask${r.globals.cuid})`),this.setupMarkerDelegation(l)),g=c.drawMarker(h.x[f],h.y[f],y),g.attr("rel",p),g.attr("j",p),g.attr("index",e),g.node.setAttribute("default-marker-size",y.pSize),Vt(g,h.x[f],r),this._filters.setSelectionFilter(g,e,p),l&&l.add(g))}else typeof r.globals.pointsArray[e]>"u"&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([h.x[f],h.y[f]])}return l}getMarkerConfig({cssClass:t,seriesIndex:e,dataPointIndex:s=null,radius:i=null,size:a=null,strokeWidth:o=null}){let r=this.w,n=this.getMarkerStyle(e),h=a===null?r.globals.markers.size[e]:a,l=r.config.markers;return s!==null&&l.discrete.length&&l.discrete.map(c=>{c.seriesIndex===e&&c.dataPointIndex===s&&(n.pointStrokeColor=c.strokeColor,n.pointFillColor=c.fillColor,h=c.size,n.pointShape=c.shape)}),{pSize:i===null?h:i,pRadius:i!==null?i:l.radius,pointStrokeWidth:o!==null?o:Array.isArray(l.strokeWidth)?l.strokeWidth[e]:l.strokeWidth,pointStrokeColor:n.pointStrokeColor,pointFillColor:n.pointFillColor,shape:n.pointShape||(Array.isArray(l.shape)?l.shape[e]:l.shape),class:t,pointStrokeOpacity:Array.isArray(l.strokeOpacity)?l.strokeOpacity[e]:l.strokeOpacity,pointStrokeDashArray:Array.isArray(l.strokeDashArray)?l.strokeDashArray[e]:l.strokeDashArray,pointFillOpacity:Array.isArray(l.fillOpacity)?l.fillOpacity[e]:l.fillOpacity,seriesIndex:e}}setupMarkerDelegation(t){let e=this.w,s=".apexcharts-marker";this._graphics.setupEventDelegation(t,s),t.node.addEventListener("click",i=>{e.config.markers.onClick&&L._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onClick(i)}),t.node.addEventListener("dblclick",i=>{e.config.markers.onDblClick&&L._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onDblClick(i)}),t.node.addEventListener("touchstart",i=>{let a=L._findDelegateTarget(i.target,t.node,s);a&&a.instance&&this._graphics.pathMouseDown(a.instance,i)},{passive:!0})}addEvents(t){let e=this.w;t.node.addEventListener("mouseenter",this._graphics.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",this._graphics.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",this._graphics.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",this._graphics.pathMouseDown.bind(this.ctx,t),{passive:!0})}getMarkerStyle(t){let e=this.w,s=e.globals.markers.colors,i=e.config.markers.strokeColor||e.config.markers.strokeColors,a=Array.isArray(i)?i[t]:i,o=Array.isArray(s)?s[t]:s;return{pointStrokeColor:a,pointFillColor:o}}},qt=class{constructor(t,e){this.ctx=e,this.w=t,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new mt(this.w),this.filters=new J(this.w),this.fill=new Tt(this.w),this.markers=new bt(this.w,this.ctx),this.graphics=new L(this.w)}draw(t,e,s){let i=this.w,a=this.graphics,o=s.realIndex,r=s.pointsPos,n=s.zRatio,h=s.elParent,l=a.group({class:`apexcharts-series-markers apexcharts-series-${i.config.chart.type}`});if(l.attr("clip-path",`url(#gridRectMarkerMask${i.globals.cuid})`),this.markers.setupMarkerDelegation(l),Array.isArray(r.x))for(let c=0;c<r.x.length;c++){let d=e+1,f=!0;e===0&&c===0&&(d=0),e===0&&c===1&&(d=1);let g=i.globals.markers.size[o];if(n!==1/0){let b=i.config.plotOptions.bubble;g=i.seriesData.seriesZ[o][d],b.zScaling&&(g/=n),b.minBubbleRadius&&g<b.minBubbleRadius&&(g=b.minBubbleRadius),b.maxBubbleRadius&&g>b.maxBubbleRadius&&(g=b.maxBubbleRadius)}let p=r.x[c],u=r.y[c];if(g=g||0,(u===null||typeof i.seriesData.series[o][d]>"u")&&(f=!1),f){let b=this.drawPoint(p,u,g,o,d,e);l.add(b)}h.add(l)}}drawPoint(t,e,s,i,a,o){let r=this.w,n=i,h=this.anim,l=this.filters,c=this.fill,d=this.markers,f=this.graphics,g=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:n,dataPointIndex:a,radius:r.config.chart.type==="bubble"||r.globals.comboCharts&&r.config.series[i]&&r.config.series[i].type==="bubble"?s:null}),p=c.fillPath({seriesNumber:i,dataPointIndex:a,color:g.pointFillColor,patternUnits:"objectBoundingBox",value:r.seriesData.series[i][o]}),u=f.drawMarker(t,e,g),b=r.config.series[n];if(b.data[a]&&b.data[a].fillColor&&(p=b.data[a].fillColor),u.attr({fill:p}),r.config.chart.dropShadow.enabled){let x=r.config.chart.dropShadow;l.dropShadow(u,x,i)}if(this.initialAnim&&!r.globals.dataChanged&&!r.globals.resized){let x=r.config.chart.animations,y=x.speed,w=r.globals.dataPoints||1,A=x.animateGradually,C=A&&A.enabled!==!1?Math.min(20,y*.5/Math.max(1,w)):0,k=es({style:C>0?"sequential":"none",index:a,baseDelay:C});h.animatePop(u,{speed:y,delay:k,onComplete:()=>h.animationCompleted(u)})}else r.globals.animationEnded=!0;return u.attr({rel:a,j:a,index:i,"default-marker-size":g.pSize}),l.setSelectionFilter(u,i,a),u.node.classList.add("apexcharts-marker"),u}centerTextInBubble(t){let e=this.w;return t=t+parseInt(e.config.dataLabels.style.fontSize,10)/4,{y:t}}},_t=class{constructor(t,e=null){this.w=t,this.ctx=e}dataLabelsCorrection(t,e,s,i,a,o,r){let n=this.w,h=new L(this.w),l=!1,c=h.getTextRects(s,r),d=c.width,f=c.height;e<0&&(e=0),e>n.layout.gridHeight+f&&(e=n.layout.gridHeight+f/2),typeof n.globals.dataLabelsRects[i]>"u"&&(n.globals.dataLabelsRects[i]=[]),n.globals.dataLabelsRects[i].push({x:t,y:e,width:d,height:f});let g=n.globals.dataLabelsRects[i].length-2,p=typeof n.globals.lastDrawnDataLabelsIndexes[i]<"u"?n.globals.lastDrawnDataLabelsIndexes[i][n.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(typeof n.globals.dataLabelsRects[i][g]<"u"){let u=n.globals.dataLabelsRects[i][p];(t>u.x+u.width||e>u.y+u.height||e+f<u.y||t+d<u.x)&&(l=!0)}return(a===0||o)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}drawDataLabel({type:t,pos:e,i:s,j:i,isRangeStart:a,strokeWidth:o=2}){let r=this.w,n=new L(this.w),h=r.config.dataLabels,l=0,c=0,d=i,f=null;if(r.globals.collapsedSeriesIndices.indexOf(s)!==-1||!h.enabled||!Array.isArray(e.x))return f;f=n.group({class:"apexcharts-data-labels"});for(let p=0;p<e.x.length;p++)if(l=e.x[p]+h.offsetX,c=e.y[p]+h.offsetY+o,!isNaN(l)){i===1&&p===0&&(d=0),i===1&&p===1&&(d=1);let u=r.seriesData.series[s][d];t==="rangeArea"&&(a?u=r.rangeData.seriesRangeStart[s][d]:u=r.rangeData.seriesRangeEnd[s][d]);let b="",x=w=>r.config.dataLabels.formatter(w,{seriesIndex:s,dataPointIndex:d,w:r});r.config.chart.type==="bubble"?(u=r.seriesData.seriesZ[s][d],b=x(u),c=e.y[p],c=new qt(this.w,this.ctx).centerTextInBubble(c).y):typeof u<"u"&&(b=x(u));let y=r.config.dataLabels.textAnchor;r.globals.isSlopeChart&&(d===0?y="end":d===r.config.series[s].data.length-1?y="start":y="middle"),this.plotDataLabelsText({x:l,y:c,text:b,i:s,j:d,parent:f,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels,textAnchor:y})}return f}plotDataLabelsText(t){let e=this.w,s=new L(this.w),{x:i,y:a,i:o,j:r,text:n,textAnchor:h,fontSize:l,parent:c,dataLabelsConfig:d,color:f,alwaysDrawDataLabel:g,offsetCorrection:p,className:u}=t,b=null;if(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)return b;let x={x:i,y:a,drawnextLabel:!0,textRects:null};if(p&&(x=this.dataLabelsCorrection(i,a,n,o,r,g,parseInt(d.style.fontSize,10).toString())),e.interact.zoomed||(i=x.x,a=x.y),x.textRects){let v=e.globals.barPadForNumericAxis||0;(i<-(v+20)-x.textRects.width||i>e.layout.gridWidth+x.textRects.width+v+30)&&(n="")}let y=e.globals.dataLabels.style.colors[o];((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(y=e.globals.dataLabels.style.colors[r]),typeof y=="function"&&(y=y({series:e.seriesData.series,seriesIndex:o,dataPointIndex:r,w:e})),f&&(y=f);let w=d.offsetX,A=d.offsetY;if((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&(w=0,A=0),e.globals.isSlopeChart&&(r!==0&&(w=d.offsetX*-2+5),r!==0&&r!==e.config.series[o].data.length-1&&(w=0)),x.drawnextLabel){if(h==="middle"&&i===e.layout.gridWidth&&(h="end"),b=s.drawText({x:i+w,y:a+A,foreColor:y,textAnchor:h||d.textAnchor,text:n,fontSize:l||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"}),b.attr({class:u||"apexcharts-datalabel",cx:i,cy:a}),d.dropShadow.enabled){let v=d.dropShadow;new J(this.w).dropShadow(b,v)}c.add(b),Vt(b,i,e),typeof e.globals.lastDrawnDataLabelsIndexes[o]>"u"&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(r)}return b}addBackgroundToDataLabel(t,e){let s=this.w,i=s.config.dataLabels.background,a=i.padding,o=i.padding/2,r=e.width,n=e.height,l=new L(this.w).drawRect(e.x-a,e.y-o/2,r+a*2,n+o,i.borderRadius,s.config.chart.background==="transparent"||!s.config.chart.background?"#fff":s.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new J(this.w).dropShadow(l,i.dropShadow),l}dataLabelsBackground(){var t;let e=this.w;if(e.config.chart.type==="bubble")return;let s=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let i=0;i<s.length;i++){let a=s[i],o=a.getBBox(),r=null;if(o.width&&o.height&&(r=this.addBackgroundToDataLabel(a,o)),r){(t=a.parentNode)==null||t.insertBefore(r.node,a);let n=e.config.dataLabels.background.backgroundColor||a.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?r.animate().attr({fill:n}):r.attr({fill:n}),a.setAttribute("fill",e.config.dataLabels.background.foreColor);let l=a.getAttribute("cx");l!==null&&Vt(r,parseFloat(l),e)}}}bringForward(){let t=this.w,e=t.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),s=t.dom.baseEl.querySelector(".apexcharts-plot-series:last-child");for(let i=0;i<e.length;i++)s&&s.insertBefore(e[i],s.nextSibling)}},yt=class{static invalidateAll(t){!t||!t.globals||(t.globals.cachedSelectors&&(t.globals.cachedSelectors={}),t.globals.domCache&&t.globals.domCache.clear(),t.globals.dimensionCache={})}static invalidateDimensions(t){!t||!t.globals||(t.globals.dimensionCache={})}static invalidateSelectors(t){!t||!t.globals||t.globals.cachedSelectors&&(t.globals.cachedSelectors={})}static getCachedSelector(t,e,s){return!t||!t.globals?s():(t.globals.cachedSelectors||(t.globals.cachedSelectors={}),t.globals.cachedSelectors[e]||(t.globals.cachedSelectors[e]=s()),t.globals.cachedSelectors[e])}static getCachedDimension(t,e,s,i=1e3){if(!t||!t.globals)return s();t.globals.dimensionCache||(t.globals.dimensionCache={});let a=t.globals.dimensionCache[e],o=Date.now();if(a&&a.lastUpdate&&o-a.lastUpdate<i)return a.value;let r=s();return t.globals.dimensionCache[e]={value:r,lastUpdate:o},r}static cacheDOMElement(t,e,s){!t||!t.globals||(t.globals.domCache||(t.globals.domCache=new Map),t.globals.domCache.set(e,s))}static getCachedDOMElement(t,e){return!t||!t.globals||!t.globals.domCache?null:t.globals.domCache.get(e)||null}},et=class{constructor(t,{theme:e=null,timeScale:s=null}={}){this.w=t,this.theme=e,this.timeScale=s}getLabel(t,e,s,i,a=[],o="12px",r=!0){let n=this.w,h=typeof t[i]>"u"?"":t[i],l=h,c=n.formatters.xLabelFormatter,d=n.config.xaxis.labels.formatter,f=new nt(this.w),g=h;r&&(l=f.xLabelFormat(c,h,g,{i,dateFormatter:new V(this.w).formatDate,w:n}),d!==void 0&&(l=d(h,t[i],{i,dateFormatter:new V(this.w).formatDate,w:n}))),e.length>0?(s=e[i].position,l=e[i].value):n.config.xaxis.type==="datetime"&&d===void 0&&(l=""),typeof l>"u"&&(l=""),l=Array.isArray(l)?l:l.toString();let p=new L(this.w),u={};n.layout.rotateXLabels&&r?u=p.getTextRects(l,parseInt(o,10).toString(),null,`rotate(${n.config.xaxis.labels.rotate} 0 0)`,!1):u=p.getTextRects(l,parseInt(o,10).toString());let b=!n.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(l)&&(String(l)==="NaN"||a.indexOf(l)>=0&&b)&&(l=""),{x:s,text:l,textRect:u}}checkLabelBasedOnTickamount(t,e,s){let i=this.w,a=i.config.xaxis.tickAmount;if(a==="dataPoints"&&(a=Math.round(i.layout.gridWidth/120)),a>s)return e;let o=Math.round(s/(a+1));return t%o===0||(e.text=""),e}checkForOverflowingLabels(t,e,s,i,a){let o=this.w;if(t===0&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===s-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&i.length>0){let r=a[a.length-1];if(o.config.xaxis.labels.trim&&o.config.xaxis.type!=="datetime")return e;e.x<r.textRect.width/(o.layout.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+r.x&&(e.text="")}return e}checkForReversedLabels(t,e){let s=this.w;return s.config.yaxis[t]&&s.config.yaxis[t].reversed&&e.reverse(),e}yAxisAllSeriesCollapsed(t){let e=this.w.globals;return!e.seriesYAxisMap[t].some(s=>e.collapsedSeriesIndices.indexOf(s)===-1)}translateYAxisIndex(t){let e=this.w,s=e.globals,i=e.config.yaxis;return e.seriesData.series.length>i.length||i.some(o=>Array.isArray(o.seriesName))?t:s.seriesYAxisReverseMap[t]}isYAxisHidden(t){let e=this.w,s=e.config.yaxis[t];if(!s.show||this.yAxisAllSeriesCollapsed(t))return!0;if(!s.showForNullSeries){let i=e.globals.seriesYAxisMap[t],a=new j(this.w);return i.every(o=>a.isSeriesNull(o))}return!1}getYAxisForeColor(t,e){var s;let i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&((s=this.theme)==null||s.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1)),t}drawYAxisTicks(t,e,s,i,a,o,r){let n=this.w,h=new L(this.w),l=n.layout.translateY+n.config.yaxis[a].labels.offsetY;if(n.globals.isBarHorizontal?l=0:n.config.chart.type==="heatmap"&&(l+=o/2),i.show&&e>0){n.config.yaxis[a].opposite===!0&&(t=t+i.width);for(let c=e;c>=0;c--){let d=h.drawLine(t+s.offsetX-i.width+i.offsetX,l+i.offsetY,t+s.offsetX+i.offsetX,l+i.offsetY,i.color);r.add(d),l+=o}}}},ht=class{constructor(t,e,s){this.w=t,this.ctx=e,this.elgrid=s,this.axesUtils=new et(t,{theme:e.theme,timeScale:e.timeScale}),this.xaxisLabels=t.labelData.labels.slice(),t.labelData.timescaleLabels.length>0&&!t.globals.isBarHorizontal&&(this.xaxisLabels=t.labelData.timescaleLabels.slice()),t.config.xaxis.overwriteCategories&&(this.xaxisLabels=t.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],t.config.xaxis.position==="top"?this.offY=0:this.offY=t.layout.gridHeight,this.offY=this.offY+t.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.xaxisBorderWidth=t.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=t.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=t.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=t.config.xaxis.axisBorder.height,this.yaxis=t.config.yaxis[0]}drawXaxis(){let t=this.w,e=new L(this.w),s=e.group({class:"apexcharts-xaxis",transform:`translate(${t.config.xaxis.offsetX}, ${t.config.xaxis.offsetY})`}),i=e.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});s.add(i);let a=[];for(let o=0;o<this.xaxisLabels.length;o++)a.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,i,a,t.axisFlags.isXNumeric,(o,r)=>r),t.labelData.hasXaxisGroups){let o=t.labelData.groups;a=[];for(let n=0;n<o.length;n++)a.push(o[n].title);let r={};t.config.xaxis.group.style&&(r.xaxisFontSize=t.config.xaxis.group.style.fontSize,r.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,r.xaxisForeColors=t.config.xaxis.group.style.colors,r.fontWeight=t.config.xaxis.group.style.fontWeight,r.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,i,a,!1,(n,h)=>o[n].cols*h,r)}if(t.config.xaxis.title.text!==void 0){let o=e.group({class:"apexcharts-xaxis-title"}),r=e.drawText({x:t.layout.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(t.config.xaxis.position==="bottom"?t.layout.xAxisLabelsHeight:-t.layout.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,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});o.add(r),s.add(o)}if(t.config.xaxis.axisBorder.show){let o=t.globals.barPadForNumericAxis,r=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-o,this.offY,this.xaxisBorderWidth+o,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(r):s.add(r)}return s}drawXAxisLabelAndGroup(t,e,s,i,a,o,r={}){var n,h;let l=[],c=[],d=this.w,f=r.xaxisFontSize||this.xaxisFontSize,g=r.xaxisFontFamily||this.xaxisFontFamily,p=r.xaxisForeColors||this.xaxisForeColors,u=r.fontWeight||d.config.xaxis.labels.style.fontWeight,b=r.cssClass||d.config.xaxis.labels.style.cssClass,x,y=d.globals.padHorizontal,w=i.length,A=d.config.xaxis.type==="category"?d.globals.dataPoints:w;if(A===0&&w>A&&(A=w),a){let v=Math.max(Number(d.config.xaxis.tickAmount)||1,A>1?A-1:A);x=d.layout.gridWidth/Math.min(v,w-1),y=y+o(0,x)/2+d.config.xaxis.labels.offsetX}else x=d.layout.gridWidth/A,y=y+o(0,x)+d.config.xaxis.labels.offsetX;for(let v=0;v<=w-1;v++){let C=y-o(v,x)/2+d.config.xaxis.labels.offsetX;v===0&&w===1&&x/2===y&&A===1&&(C=d.layout.gridWidth/2);let k=this.axesUtils.getLabel(i,d.labelData.timescaleLabels,C,v,l,f,t),T=28;d.layout.rotateXLabels&&t&&(T=22),d.config.xaxis.title.text&&d.config.xaxis.position==="top"&&(T+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(T=T+parseFloat(f)+(d.layout.xAxisLabelsHeight-d.layout.xAxisGroupLabelsHeight)+(d.layout.rotateXLabels?10:0)),typeof d.config.xaxis.tickAmount<"u"&&d.config.xaxis.tickAmount!=="dataPoints"&&d.config.xaxis.type!=="datetime"?k=this.axesUtils.checkLabelBasedOnTickamount(v,k,w):k=this.axesUtils.checkForOverflowingLabels(v,k,w,l,c);let E=()=>t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+v-1]:p[v],M=((h=(n=k.textRect)==null?void 0:n.width)!=null?h:0)/2,X=k.x+M<0;if(d.config.xaxis.labels.show&&!X){let N=e.drawText({x:k.x,y:this.offY+d.config.xaxis.labels.offsetY+T-(d.config.xaxis.position==="top"?d.layout.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:k.text,textAnchor:"middle",fontWeight:u,fontSize:f,fontFamily:g,foreColor:Array.isArray(p)?E():p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+b});if(s.add(N),N.on("click",O=>{if(typeof d.config.chart.events.xAxisLabelClick=="function"){let H=Object.assign({},d,{labelIndex:v});d.config.chart.events.xAxisLabelClick(O,this.ctx,H)}}),t){let O=F.createElementNS(B,"title");O.textContent=Array.isArray(k.text)?k.text.join(" "):k.text,N.node.appendChild(O),k.text!==""&&(l.push(k.text),c.push(k))}}v<w-1&&(y=y+o(v+1,x))}}drawXaxisInversed(t){let e=this.w,s=new L(this.w),i=e.config.yaxis[0].opposite?e.globals.translateYAxisX[t]:0,a=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),o=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+i+", 0)"});a.add(o);let r=[];if(e.config.yaxis[t].show)for(let g=0;g<this.xaxisLabels.length;g++)r.push(this.xaxisLabels[g]);let n=e.layout.gridHeight/r.length,h=-(n/2.2),l=e.formatters.yLabelFormatters[0],c=e.config.yaxis[0].labels;if(c.show)for(let g=0;g<=r.length-1;g++){let p=typeof r[g]>"u"?"":r[g];p=l(p,{seriesIndex:t,dataPointIndex:g,w:e});let u=this.axesUtils.getYAxisForeColor(c.style.colors,t),b=()=>Array.isArray(u)?u[g]:u,x=0;Array.isArray(p)&&(x=p.length/2*parseInt(c.style.fontSize,10));let y=c.offsetX-15,w="end";this.yaxis.opposite&&(w="start"),e.config.yaxis[0].labels.align==="left"?(y=c.offsetX,w="start"):e.config.yaxis[0].labels.align==="center"?(y=c.offsetX,w="middle"):e.config.yaxis[0].labels.align==="right"&&(w="end");let A=s.drawText({x:y,y:h+n+c.offsetY-x,text:p,textAnchor:w,foreColor:b(),fontSize:c.style.fontSize,fontFamily:c.style.fontFamily,fontWeight:c.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+c.style.cssClass,maxWidth:c.maxWidth});o.add(A),A.on("click",C=>{if(typeof e.config.chart.events.xAxisLabelClick=="function"){let k=Object.assign({},e,{labelIndex:g});e.config.chart.events.xAxisLabelClick(C,this.ctx,k)}});let v=F.createElementNS(B,"title");if(v.textContent=Array.isArray(p)?p.join(" "):p,A.node.appendChild(v),e.config.yaxis[t].labels.rotate!==0){let C=s.rotateAroundCenter(A.node);A.node.setAttribute("transform",`rotate(${e.config.yaxis[t].labels.rotate} 0 ${C.y})`)}h=h+n}if(e.config.yaxis[0].title.text!==void 0){let g=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+i+", 0)"}),p=s.drawText({x:e.config.yaxis[0].title.offsetX,y:e.layout.gridHeight/2+e.config.yaxis[0].title.offsetY,text:e.config.yaxis[0].title.text,textAnchor:"middle",foreColor:e.config.yaxis[0].title.style.color,fontSize:e.config.yaxis[0].title.style.fontSize,fontWeight:e.config.yaxis[0].title.style.fontWeight,fontFamily:e.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[0].title.style.cssClass});g.add(p),a.add(g)}let d=0;this.isCategoryBarHorizontal&&e.config.yaxis[0].opposite&&(d=e.layout.gridWidth);let f=e.config.xaxis.axisBorder;if(f.show){let g=s.drawLine(e.globals.padHorizontal+f.offsetX+d,1+f.offsetY,e.globals.padHorizontal+f.offsetX+d,e.layout.gridHeight+f.offsetY,f.color,0);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(g):a.add(g)}return e.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(d,r.length,e.config.yaxis[0].axisBorder,e.config.yaxis[0].axisTicks,0,n,a),a}drawXaxisTicks(t,e,s){let i=this.w,a=t;if(t<0||t-2>i.layout.gridWidth)return;let o=this.offY+i.config.xaxis.axisTicks.offsetY;if(e=e+o+i.config.xaxis.axisTicks.height,i.config.xaxis.position==="top"&&(e=o-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){let n=new L(this.w).drawLine(t+i.config.xaxis.axisTicks.offsetX,o+i.config.xaxis.offsetY,a+i.config.xaxis.axisTicks.offsetX,e+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);s.add(n),n.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){let t=this.w,e=[],s=this.xaxisLabels.length,i=t.globals.padHorizontal;if(t.labelData.timescaleLabels.length>0)for(let a=0;a<s;a++)i=this.xaxisLabels[a].position,e.push(i);else{let a=s;for(let o=0;o<a;o++){let r=a;t.axisFlags.isXNumeric&&t.config.chart.type!=="bar"&&(r-=1),i=i+t.layout.gridWidth/r,e.push(i)}}return e}xAxisLabelCorrections(){var t,e,s;let i=this.w,a=new L(this.w),o=i.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),n=i.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),h=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(i.layout.rotateXLabels||i.config.xaxis.labels.rotateAlways)for(let l=0;l<r.length;l++){let c=a.rotateAroundCenter(r[l]);c.y=c.y-1,c.x=c.x+1,r[l].setAttribute("transform",`rotate(${i.config.xaxis.labels.rotate} ${c.x} ${c.y})`),r[l].setAttribute("text-anchor","end"),o?.setAttribute("transform","translate(0, -10)");let d=r[l].childNodes;i.config.xaxis.labels.trim&&Array.prototype.forEach.call(d,f=>{a.placeTextWithEllipsis(f,f.textContent,i.layout.xAxisLabelsHeight-(i.config.legend.position==="bottom"?20:10))})}else{let l=i.layout.gridWidth/(i.labelData.labels.length+1);for(let c=0;c<r.length;c++){let d=r[c].childNodes;i.config.xaxis.labels.trim&&i.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(d,f=>{a.placeTextWithEllipsis(f,f.textContent,l)})}}if(n.length>0){let l=n[n.length-1].getBBox(),c=n[0].getBBox();l.x<-20&&((t=n[n.length-1].parentNode)==null||t.removeChild(n[n.length-1])),c.x+c.width>i.layout.gridWidth&&!i.globals.isBarHorizontal&&((e=n[0].parentNode)==null||e.removeChild(n[0]));for(let d=0;d<h.length;d++)a.placeTextWithEllipsis(h[d],(s=h[d].textContent)!=null?s:"",i.config.yaxis[0].labels.maxWidth-(i.config.yaxis[0].title.text?parseFloat(i.config.yaxis[0].title.style.fontSize)*2:0)-15)}}},Mt=class{constructor(t,e){this.w=t,this.ctx=e,this.xaxisLabels=t.labelData.labels.slice(),this.axesUtils=new et(e.w,{theme:e.theme,timeScale:e.timeScale}),this.isRangeBar=t.rangeData.seriesRange.length&&t.globals.isBarHorizontal,t.labelData.timescaleLabels.length>0&&(this.xaxisLabels=t.labelData.timescaleLabels.slice())}drawGridArea(t=null){let e=this.w,s=new L(this.w);t||(t=s.group({class:"apexcharts-grid"}));let i=s.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.layout.gridHeight,"transparent"),a=s.drawLine(e.globals.padHorizontal,e.layout.gridHeight,e.layout.gridWidth,e.layout.gridHeight,"transparent");return t.add(a),t.add(i),t}drawGrid(){if(this.w.globals.axisCharts){let e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){let t=this.w,e=t.globals,s=new L(this.w),i=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width,a=c=>{let d=F.createElementNS(B,"clipPath");return d.setAttribute("id",c),d};t.dom.elGridRectMask=a(`gridRectMask${e.cuid}`),t.dom.elGridRectBarMask=a(`gridRectBarMask${e.cuid}`),t.dom.elGridRectMarkerMask=a(`gridRectMarkerMask${e.cuid}`),t.dom.elForecastMask=a(`forecastMask${e.cuid}`),t.dom.elNonForecastMask=a(`nonForecastMask${e.cuid}`);let o=["bar","rangeBar","candlestick","boxPlot"].includes(t.config.chart.type)||t.globals.comboBarCount>0,r=0,n=0;o&&t.axisFlags.isXNumeric&&!t.globals.isBarHorizontal&&(r=Math.max(t.config.grid.padding.left,e.barPadForNumericAxis),n=Math.max(t.config.grid.padding.right,e.barPadForNumericAxis)),t.dom.elGridRect=s.drawRect(-i/2-2,-i/2-2,t.layout.gridWidth+i+4,t.layout.gridHeight+i+4,0,"#fff"),t.dom.elGridRectBar=s.drawRect(-i/2-r-2,-i/2-2,t.layout.gridWidth+i+n+r+4,t.layout.gridHeight+i+4,0,"#fff");let h=t.globals.markers.largestSize;t.dom.elGridRectMarker=s.drawRect(Math.min(-i/2-r-2,-h),-h,t.layout.gridWidth+Math.max(i+n+r+4,h*2),t.layout.gridHeight+h*2,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);let l=t.dom.elDefs.node;l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}_drawGridLines({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){let n=this.w;if(!(t===0&&n.globals.skipFirstTimelinelabel||t===o-1&&n.globals.skipLastTimelinelabel&&!n.config.xaxis.labels.formatter||n.config.chart.type==="radar")){n.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r});let l=0;if(n.labelData.hasXaxisGroups&&n.config.xaxis.tickPlacement==="between"){let d=n.labelData.groups;if(d){let f=0;for(let g=0;f<t&&g<d.length;g++)f+=d[g].cols;f===t&&(l=n.layout.xAxisLabelsHeight*.6)}}new ht(this.w,this.ctx).drawXaxisTicks(e,l,n.dom.elGraphical)}}_drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){let n=this.w,h=r.node.classList.contains("apexcharts-gridlines-horizontal"),l=n.globals.barPadForNumericAxis,c=s===0&&a===0||e===0&&i===0||s===n.layout.gridHeight&&a===n.layout.gridHeight||n.globals.isBarHorizontal&&(t===0||t===o-1),f=new L(this.w).drawLine(e-(h?l:0),s,i+(h?l:0),a,n.config.grid.borderColor,n.config.grid.strokeDashArray);f.node.classList.add("apexcharts-gridline"),c&&n.config.grid.show?this.elGridBorders.add(f):r.add(f)}_drawGridBandRect({c:t,x1:e,y1:s,x2:i,y2:a,type:o}){let r=this.w,n=new L(this.w),h=r.globals.barPadForNumericAxis,l=r.config.grid[o].colors[t],c=n.drawRect(e-(o==="row"?h:0),s,i+(o==="row"?h*2:0),a,0,l,r.config.grid[o].opacity);this.elg.add(c),c.attr("clip-path",`url(#gridRectMask${r.globals.cuid})`),c.node.classList.add(`apexcharts-grid-${o}`)}_drawXYLines({xCount:t,tickAmount:e}){var s;let i=this.w,a=({xC:r,x1:n,y1:h,x2:l,y2:c})=>{for(let d=0;d<r;d++)n=this.xaxisLabels[d].position,l=this.xaxisLabels[d].position,this._drawGridLines({i:d,x1:n,y1:h,x2:l,y2:c,xCount:t,parent:this.elgridLinesV})},o=({xC:r,x1:n,y1:h,x2:l,y2:c})=>{for(let d=0;d<r+(i.axisFlags.isXNumeric?0:1);d++)d===0&&r===1&&i.globals.dataPoints===1&&(n=i.layout.gridWidth/2,l=n),this._drawGridLines({i:d,x1:n,y1:h,x2:l,y2:c,xCount:t,parent:this.elgridLinesV}),n+=i.layout.gridWidth/(i.axisFlags.isXNumeric?r-1:r),l=n};if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){let r=i.globals.padHorizontal,n=0,h,l=i.layout.gridHeight;i.labelData.timescaleLabels.length?a({xC:t,x1:r,y1:n,x2:h,y2:l}):(i.axisFlags.isXNumeric&&(t=(s=i.globals.xAxisScale)==null?void 0:s.result.length),o({xC:t,x1:r,y1:n,x2:h,y2:l}))}if(i.config.grid.yaxis.lines.show){let n=0,h=0,l=i.layout.gridWidth,c=e+1;this.isRangeBar&&(c=i.labelData.labels.length);for(let d=0;d<c+(this.isRangeBar?1:0);d++)this._drawGridLine({i:d,xCount:c+(this.isRangeBar?1:0),x1:0,y1:n,x2:l,y2:h,parent:this.elgridLinesH}),n+=i.layout.gridHeight/(this.isRangeBar?c:e),h=n}}_drawInvertedXYLines({xCount:t}){let e=this.w;if(e.config.grid.xaxis.lines.show||e.config.xaxis.axisTicks.show){let s=e.globals.padHorizontal,i=0,a,o=e.layout.gridHeight;for(let r=0;r<t+1;r++)e.config.grid.xaxis.lines.show&&this._drawGridLine({i:r,xCount:t+1,x1:s,y1:i,x2:a,y2:o,parent:this.elgridLinesV}),new ht(this.w,this.ctx).drawXaxisTicks(s,0,e.dom.elGraphical),s+=e.layout.gridWidth/t,a=s}if(e.config.grid.yaxis.lines.show){let i=0,a=0,o=e.layout.gridWidth;for(let r=0;r<e.globals.dataPoints+1;r++)this._drawGridLine({i:r,xCount:e.globals.dataPoints+1,x1:0,y1:i,x2:o,y2:a,parent:this.elgridLinesH}),i+=e.layout.gridHeight/e.globals.dataPoints,a=i}}renderGrid(){var t,e,s;let i=this.w,a=i.globals,o=new L(this.w);this.elg=o.group({class:"apexcharts-grid"}),this.elgridLinesH=o.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=o.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=o.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),i.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let r=0;for(;r<a.seriesYAxisMap.length&&a.ignoreYAxisIndexes.includes(r);)r++;r===a.seriesYAxisMap.length&&(r=0);let n=a.yAxisScale[r].result.length-1,h;return!a.isBarHorizontal||this.isRangeBar?(h=this.xaxisLabels.length,this.isRangeBar&&(n=i.labelData.labels.length,i.config.xaxis.tickAmount&&i.config.xaxis.labels.formatter&&(h=i.config.xaxis.tickAmount),((s=(e=(t=a.yAxisScale)==null?void 0:t[r])==null?void 0:e.result)==null?void 0:s.length)>0&&i.config.xaxis.type!=="datetime"&&(h=a.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:h,tickAmount:n})):(h=n,n=a.xTickAmount,this._drawInvertedXYLines({xCount:h,tickAmount:n})),this.drawGridBands(h,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.layout.gridWidth/h}}drawGridBands(t,e){var s,i,a,o,r;let n=this.w,h=(l,c,d,f,g,p)=>{for(let u=0,b=0;u<c;u++,b++)b>=n.config.grid[l].colors.length&&(b=0),this._drawGridBandRect({c:b,x1:d,y1:f,x2:g,y2:p,type:l}),f+=n.layout.gridHeight/e};if(((s=n.config.grid.row.colors)==null?void 0:s.length)>0&&h("row",e,0,0,n.layout.gridWidth,n.layout.gridHeight/e),((i=n.config.grid.column.colors)==null?void 0:i.length)>0){let l=!n.globals.isBarHorizontal&&n.config.xaxis.tickPlacement==="on"&&(n.config.xaxis.type==="category"||n.config.xaxis.convertedCatToNumeric)?t-1:t;n.axisFlags.isXNumeric&&(l=((o=(a=n.globals.xAxisScale)==null?void 0:a.result.length)!=null?o:1)-1);let c=n.globals.padHorizontal,d=0,f=n.globals.padHorizontal+n.layout.gridWidth/l,g=n.layout.gridHeight;for(let p=0,u=0;p<t;p++,u++)u>=n.config.grid.column.colors.length&&(u=0),n.config.xaxis.type==="datetime"&&(c=this.xaxisLabels[p].position,f=(((r=this.xaxisLabels[p+1])==null?void 0:r.position)||n.layout.gridWidth)-this.xaxisLabels[p].position),this._drawGridBandRect({c:u,x1:c,y1:d,x2:f,y2:g,type:"column"}),c+=n.layout.gridWidth/l}}},jt=class{constructor(t){this.w=t,this.coreUtils=new j(this.w)}niceScale(t,e,s=0){let a=this.w,o=a.globals,r,n,h,l;o.isBarHorizontal?(r=a.config.xaxis,n=Math.max((o.svgWidth-100)/25,2)):(r=a.config.yaxis[s],n=Math.max((o.svgHeight-100)/15,2)),S.isNumber(n)||(n=10),h=r.min!==void 0&&r.min!==null,l=r.max!==void 0&&r.min!==null;let c=r.stepSize!==void 0&&r.stepSize!==null,d=r.tickAmount!==void 0&&r.tickAmount!==null,f=d?r.tickAmount:Ut[Math.min(Math.round(n/2),Ut.length-1)];if(o.isMultipleYAxis&&!d&&o.multiAxisTickAmount>0&&(f=o.multiAxisTickAmount,d=!0),f==="dataPoints"?f=o.dataPoints-1:f=Math.abs(Math.round(f)),(t===Number.MIN_VALUE&&e===0||!S.isNumber(t)&&!S.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=S.isNumber(r.min)?r.min:0,e=S.isNumber(r.max)?r.max:t+f,o.allSeriesCollapsed=!1),t>e){console.warn("axis.min cannot be greater than axis.max: swapping min and max");let _=e;e=t,t=_}else t===e&&(t=t===0?0:t-1,e=e===0?2:e+1);let g=[];f<1&&(f=1);let p=f,u=Math.abs(e-t),b=.15;!h&&t>0&&t/u<b&&(t=0,h=!0),!l&&e<0&&-e/u<b&&(e=0,l=!0),u=Math.abs(e-t);let x=u/p,y=x,w=Math.floor(Math.log10(y)),A=Math.pow(10,w),v=Math.ceil(y/A);if(v=Oe[o.yValueDecimal===0?0:1][v],y=v*A,x=y,o.isBarHorizontal&&r.stepSize&&r.type!=="datetime"?(x=r.stepSize,c=!0):c&&(x=r.stepSize),c&&r.forceNiceScale){let _=Math.floor(Math.log10(x));x*=Math.pow(10,w-_)}if(h&&l){let _=u/p;if(d)if(c)if(S.mod(u,x)!=0){let M=S.getGCD(x,_);_/M<10?x=M:x=_}else S.mod(x,_)==0?x=_:(_=x,d=!1);else x=_;else if(c)S.mod(u,x)==0?_=x:x=_;else if(S.mod(u,x)==0)_=x;else{p=Math.ceil(u/x),_=u/p;let M=S.getGCD(u,x);u/M<n&&(_=M),x=_}p=Math.round(u/x)}else{if(!h&&!l)if(o.isMultipleYAxis&&d){let _=x*Math.floor(t/x),M=_+x*p;M<e&&(x*=2),t=_,M=e,e=t+x*p,u=Math.abs(e-t),t>0&&t<Math.abs(M-e)&&(t=0,e=x*p),e<0&&-e<Math.abs(_-t)&&(e=0,t=-x*p)}else t=x*Math.floor(t/x),e=x*Math.ceil(e/x);else if(l)if(d)t=e-x*p;else{let _=t;t=x*Math.floor(t/x),Math.abs(e-t)/S.getGCD(u,x)>n&&(t=e-x*f,t+=x*Math.floor((_-t)/x))}else if(h)if(d)e=t+x*p;else{let _=e;e=x*Math.ceil(e/x),Math.abs(e-t)/S.getGCD(u,x)>n&&(e=t+x*f,e+=x*Math.ceil((_-e)/x))}u=Math.abs(e-t),x=S.getGCD(u,x),p=Math.round(u/x)}if(!d&&!(h||l)&&(p=Math.ceil((u-1e-11)/(x+1e-11)),p>16&&S.getPrimeFactors(p).length<2&&p++),!d&&r.forceNiceScale&&o.yValueDecimal===0&&p>u&&(p=u,x=Math.round(u/p)),p>n&&(!(d||c)||r.forceNiceScale)){let _=S.getPrimeFactors(p),M=_.length-1,X=p;t:for(var C=0;C<M;C++)for(var k=0;k<=M-C;k++){let N=Math.min(k+C,M),O=X,H=1;for(var T=k;T<=N;T++)H*=_[T];if(O/=H,O<n){X=O;break t}}X===p?x=u:x=u/X,p=Math.round(u/x)}o.isMultipleYAxis&&o.multiAxisTickAmount==0&&o.ignoreYAxisIndexes.indexOf(s)<0&&(o.multiAxisTickAmount=p);let D=t-x,E=x*1e-11;do D+=x,g.push(S.stripNumber(D,7));while(e-D>E);return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}linearScale(t,e,s=10,i=0,a=void 0){let o=Math.abs(e-t),r=[];if(t===e)return r=[t],{result:r,niceMin:r[0],niceMax:r[r.length-1]};s=this._adjustTicksForSmallRange(s,i,o),s==="dataPoints"&&(s=this.w.globals.dataPoints-1);let n=s;a||(a=o/n);let h=2;if(a!==0&&isFinite(a)){let d=Math.floor(Math.log10(Math.abs(a))),f=Math.max(h,-d+h),g=Math.pow(10,f);a=Math.round((a+Number.EPSILON)*g)/g}let l=s===Number.MAX_VALUE?5:n;s===Number.MAX_VALUE&&(a=1);let c=t;for(;l>=0;)r.push(c),c=S.preciseAddition(c,a),l-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}logarithmicScaleNice(t,e,s){e<=0&&(e=Math.max(t,s)),t<=0&&(t=Math.min(e,s));let i=[],a=Math.ceil(Math.log(e)/Math.log(s)+1),o=Math.floor(Math.log(t)/Math.log(s));for(let r=o;r<a;r++)i.push(Math.pow(s,r));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}logarithmicScale(t,e,s){e<=0&&(e=Math.max(t,s)),t<=0&&(t=Math.min(e,s));let i=[],a=Math.log(e)/Math.log(s),o=Math.log(t)/Math.log(s),r=a-o,n=Math.round(r),h=r/n;for(let l=0,c=o;l<n;l++,c+=h)i.push(Math.pow(s,c));return i.push(Math.pow(s,a)),{result:i,niceMin:t,niceMax:e}}_adjustTicksForSmallRange(t,e,s){let i=t;if(typeof e<"u"&&this.w.config.yaxis[e].labels.formatter&&this.w.config.yaxis[e].tickAmount===void 0){let a=Number(this.w.config.yaxis[e].labels.formatter(1));S.isNumber(a)&&this.w.globals.yValueDecimal===0&&(i=Math.ceil(s))}return i<t?i:t}setYScaleForIndex(t,e,s){let i=this.w.globals,a=this.w.config,o=i.isBarHorizontal?a.xaxis:a.yaxis[t];typeof i.yAxisScale[t]>"u"&&(i.yAxisScale[t]=[]);let r=Math.abs(s-e);o.logarithmic&&r<=5&&(i.invalidLogScale=!0),o.logarithmic&&r>5?(i.allSeriesCollapsed=!1,i.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,s,o.logBase):this.logarithmicScale(e,s,o.logBase)):s===-Number.MAX_VALUE||!S.isNumber(s)||e===Number.MAX_VALUE||!S.isNumber(e)?i.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t):(i.allSeriesCollapsed=!1,i.yAxisScale[t]=this.niceScale(e,s,t))}setXScale(t,e){let s=this.w,i=s.globals;if(e===-Number.MAX_VALUE||!S.isNumber(e))i.xAxisScale=this.linearScale(0,10,10);else{let a=i.xTickAmount;i.xAxisScale=this.linearScale(t,e,a,0,s.config.xaxis.max===void 0?s.config.xaxis.stepSize:void 0)}return i.xAxisScale}scaleMultipleYAxes(){let t=this.w.config,e=this.w.globals;this.coreUtils.setSeriesYAxisMappings();let s=e.seriesYAxisMap,i=e.minYArr,a=e.maxYArr,o=[],r=!e.isBarHorizontal;if(e.allSeriesCollapsed=!0,e.barGroups=[],s.forEach((n,h)=>{let l=[];if(n.forEach(c=>{var d;let f=(d=t.series[c])==null?void 0:d.group;l.indexOf(f)<0&&l.push(f)}),n.length>0){let c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=c,g=d,p,u;if(t.chart.stacked){let y=new Array(e.dataPoints).fill(0),w=[],A=[],v=[];l.forEach(()=>{w.push(y.map(()=>Number.MIN_VALUE)),A.push(y.map(()=>Number.MIN_VALUE)),v.push(y.map(()=>Number.MIN_VALUE))});for(let C=0;C<n.length;C++){!p&&t.series[n[C]].type&&(p=t.series[n[C]].type);let k=n[C];t.series[k].group?u=t.series[k].group:u="axis-".concat(h.toString()),!(e.collapsedSeriesIndices.indexOf(k)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(k)<0)||(e.allSeriesCollapsed=!1,l.forEach((D,E)=>{if(t.series[k].group===D)for(let _=0;_<this.w.seriesData.series[k].length;_++){let M=this.w.seriesData.series[k][_];M>=0?A[E][_]+=M:v[E][_]+=M,w[E][_]+=M,f=Math.min(f,M),g=Math.max(g,M)}})),(p==="bar"||p==="column")&&e.barGroups.push(u)}p||(p=t.chart.type),p==="bar"||p==="column"?l.forEach((C,k)=>{c=Math.min(c,Math.min.apply(null,v[k])),d=Math.max(d,Math.max.apply(null,A[k]))}):(l.forEach((C,k)=>{f=Math.min(f,Math.min.apply(null,w[k])),g=Math.max(g,Math.max.apply(null,w[k]))}),c=f,d=g),c===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}else for(let y=0;y<n.length;y++){let w=n[y];c=Math.min(c,i[w]),d=Math.max(d,a[w]),!(e.collapsedSeriesIndices.indexOf(w)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(w)<0)||(e.allSeriesCollapsed=!1)}t.yaxis[h].min!==void 0&&(typeof t.yaxis[h].min=="function"?c=t.yaxis[h].min(c):c=t.yaxis[h].min),t.yaxis[h].max!==void 0&&(typeof t.yaxis[h].max=="function"?d=t.yaxis[h].max(d):d=t.yaxis[h].max),e.barGroups=e.barGroups.filter((y,w,A)=>A.indexOf(y)===w);let b=t.yaxis[h];r&&b.alignZero===!0&&!b.logarithmic&&b.min===void 0&&b.max===void 0&&e.ignoreYAxisIndexes.indexOf(h)<0&&S.isNumber(c)&&S.isNumber(d)?o.push({ai:h,minY:c,maxY:d}):(this.setYScaleForIndex(h,c,d),n.forEach(y=>{i[y]=e.yAxisScale[h].niceMin,a[y]=e.yAxisScale[h].niceMax}))}else this.setYScaleForIndex(h,0,-Number.MAX_VALUE)}),o.length>=2){o.forEach(l=>{this.setYScaleForIndex(l.ai,l.minY,l.maxY),s[l.ai].forEach(c=>{i[c]=e.yAxisScale[l.ai].niceMin,a[c]=e.yAxisScale[l.ai].niceMax})});let n=0;o.forEach(l=>{let c=e.yAxisScale[l.ai],d=c.niceMax-c.niceMin;if(d>0){let f=-c.niceMin/d;f>n&&(n=f)}}),n>1&&(n=1),n<0&&(n=0);let h=l=>{if(l<=0)return 1;let c=Math.floor(Math.log10(l)),d=Math.pow(10,c),f=l/d,g;return f<=1+1e-9?g=1:f<=2+1e-9?g=2:f<=2.5+1e-9?g=2.5:f<=5+1e-9?g=5:g=10,g*d};o.forEach(l=>{let c=e.yAxisScale[l.ai];if(!c.result||c.result.length<2)return;let d=c.niceMax-c.niceMin;if(d<=0)return;let f=-c.niceMin/d;if(Math.abs(f-n)<=1e-9)return;let g=f<n&&n<1-1e-9,p=!g&&f>n&&n>1e-9;if(!g&&!p)return;let u=g?-n*c.niceMax/(1-n):c.niceMin,b=p?-c.niceMin*(1-n)/n:c.niceMax,x=b-u;if(x<=0)return;let y=Math.max(c.result.length,5),w=h(x/Math.max(y-1,1));if(w<=0)return;let A,v;if(g){A=Math.floor(u/w+1e-9)*w;let C=n>1e-9?A*(n-1)/n:c.niceMax,k=Math.max(C,c.niceMax);v=Math.ceil(k/w-1e-9)*w}else{v=Math.ceil(b/w-1e-9)*w;let C=n<1-1e-9?-n*v/(1-n):c.niceMin,k=Math.min(C,c.niceMin);A=Math.floor(k/w+1e-9)*w}c.result=[];for(let C=A;C<=v+w*1e-9;C=S.preciseAddition(C,w))c.result.push(S.stripNumber(C,7));c.niceMin=A,c.niceMax=v,s[l.ai].forEach(C=>{i[C]=c.niceMin,a[C]=c.niceMax})})}else if(o.length===1){let n=o[0];this.setYScaleForIndex(n.ai,n.minY,n.maxY),s[n.ai].forEach(h=>{i[h]=e.yAxisScale[n.ai].niceMin,a[h]=e.yAxisScale[n.ai].niceMax})}}},wt=class{constructor(t){this.w=t,this.scales=new jt(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}getMinYMaxY(t,e=Number.MAX_VALUE,s=-Number.MAX_VALUE,i=null){var a,o,r,n,h;let l=this.w.config,c=this.w.globals,d=-Number.MAX_VALUE,f=Number.MIN_VALUE;i===null&&(i=t+1);let g=this.w.seriesData.series,p=g,u=g;l.chart.type==="candlestick"?(p=this.w.candleData.seriesCandleL,u=this.w.candleData.seriesCandleH):l.chart.type==="boxPlot"?(p=this.w.candleData.seriesCandleO,u=this.w.candleData.seriesCandleC):this.w.axisFlags.isRangeData&&(p=this.w.rangeData.seriesRangeStart,u=this.w.rangeData.seriesRangeEnd);let b=!1;if(this.w.seriesData.seriesX.length>=i){let x=(a=c.brushSource)==null?void 0:a.w.config.chart.brush;(l.chart.zoom.enabled&&l.chart.zoom.autoScaleYaxis||x?.enabled&&x?.autoScaleYaxis)&&(b=!0)}for(let x=t;x<i;x++){c.dataPoints=Math.max(c.dataPoints,g[x].length);let y=l.series[x].type;this.w.labelData.categoryLabels.length&&(c.dataPoints=this.w.labelData.categoryLabels.filter(v=>typeof v<"u").length),this.w.labelData.labels.length&&l.xaxis.type!=="datetime"&&this.w.seriesData.series.reduce((v,C)=>v+C.length,0)!==0&&(c.dataPoints=Math.max(c.dataPoints,this.w.labelData.labels.length));let w=0,A=g[x].length-1;if(b){if(l.xaxis.min)for(;w<A&&this.w.seriesData.seriesX[x][w]<l.xaxis.min;w++);if(l.xaxis.max)for(;A>w&&this.w.seriesData.seriesX[x][A]>l.xaxis.max;A--);}for(let v=w;v<=A&&v<this.w.seriesData.series[x].length;v++){let C=g[x][v];if(C!==null&&S.isNumber(C)){switch(typeof((o=u[x])==null?void 0:o[v])<"u"&&(d=Math.max(d,u[x][v]),e=Math.min(e,u[x][v])),typeof((r=p[x])==null?void 0:r[v])<"u"&&(e=Math.min(e,p[x][v]),s=Math.max(s,p[x][v])),y){case"candlestick":typeof this.w.candleData.seriesCandleC[x][v]<"u"&&(d=Math.max(d,this.w.candleData.seriesCandleH[x][v]),e=Math.min(e,this.w.candleData.seriesCandleL[x][v]));break;case"boxPlot":typeof this.w.candleData.seriesCandleC[x][v]<"u"&&(d=Math.max(d,this.w.candleData.seriesCandleC[x][v]),e=Math.min(e,this.w.candleData.seriesCandleO[x][v]));break}y&&y!=="candlestick"&&y!=="boxPlot"&&y!=="rangeArea"&&y!=="rangeBar"&&(d=Math.max(d,this.w.seriesData.series[x][v]),e=Math.min(e,this.w.seriesData.series[x][v])),this.w.seriesData.seriesGoals[x]&&this.w.seriesData.seriesGoals[x][v]&&Array.isArray(this.w.seriesData.seriesGoals[x][v])&&this.w.seriesData.seriesGoals[x][v].forEach(k=>{d=Math.max(d,k.value),e=Math.min(e,k.value)}),s=d,C=S.noExponents(C),S.isFloat(C)&&(c.yValueDecimal=Math.max(c.yValueDecimal,C.toString().split(".")[1].length)),f>((n=p[x])==null?void 0:n[v])&&((h=p[x])==null?void 0:h[v])<0&&(f=p[x][v])}else c.hasNullValues=!0}(y==="bar"||y==="column")&&(f<0&&d<0&&(d=0,s=Math.max(s,0)),f===Number.MIN_VALUE&&(f=0,e=Math.min(e,0)))}return l.chart.type==="rangeBar"&&this.w.rangeData.seriesRangeStart.length&&c.isBarHorizontal&&(f=e),l.chart.type==="bar"&&(f<0&&d<0&&(d=0),f===Number.MIN_VALUE&&(f=0)),{minY:f,maxY:d,lowestY:e,highestY:s}}setYRange(){let t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;let s=Number.MAX_VALUE,i;if(t.isMultipleYAxis){s=Number.MAX_VALUE;for(let a=0;a<this.w.seriesData.series.length;a++)i=this.getMinYMaxY(a),t.minYArr[a]=i.lowestY,t.maxYArr[a]=i.highestY,s=Math.min(s,i.lowestY)}return i=this.getMinYMaxY(0,s,void 0,this.w.seriesData.series.length),e.chart.type==="bar"?(t.minY=i.minY,t.maxY=i.maxY):(t.minY=i.lowestY,t.maxY=i.highestY),s=i.lowestY,e.chart.stacked&&this._setStackedMinMax(),e.chart.type==="line"||e.chart.type==="area"||e.chart.type==="scatter"||e.chart.type==="candlestick"||e.chart.type==="boxPlot"||e.chart.type==="rangeBar"&&!t.isBarHorizontal?t.minY===Number.MIN_VALUE&&s!==-Number.MAX_VALUE&&s!==t.maxY&&(t.minY=s):t.minY=t.minY!==Number.MIN_VALUE?Math.min(i.minY,t.minY):i.minY,e.yaxis.forEach((a,o)=>{a.max!==void 0&&(typeof a.max=="number"?t.maxYArr[o]=a.max:typeof a.max=="function"&&(t.maxYArr[o]=a.max(t.isMultipleYAxis?t.maxYArr[o]:t.maxY)),t.maxY=t.maxYArr[o]),a.min!==void 0&&(typeof a.min=="number"?t.minYArr[o]=a.min:typeof a.min=="function"&&(t.minYArr[o]=a.min(t.isMultipleYAxis?t.minYArr[o]===Number.MIN_VALUE?0:t.minYArr[o]:t.minY)),t.minY=t.minYArr[o])}),t.isBarHorizontal&&["min","max"].forEach(o=>{e.xaxis[o]!==void 0&&typeof e.xaxis[o]=="number"&&(o==="min"?t.minY=e.xaxis[o]:t.maxY=e.xaxis[o])}),t.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),t.minY=s):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.minY,t.maxYArr[0]=t.maxY),t.barGroups=[],t.lineGroups=[],t.areaGroups=[],e.series.forEach(a=>{let o=a;switch(o.type||e.chart.type){case"bar":case"column":t.barGroups.push(o.group);break;case"line":t.lineGroups.push(o.group);break;case"area":t.areaGroups.push(o.group);break}}),t.barGroups=t.barGroups.filter((a,o,r)=>r.indexOf(a)===o),t.lineGroups=t.lineGroups.filter((a,o,r)=>r.indexOf(a)===o),t.areaGroups=t.areaGroups.filter((a,o,r)=>r.indexOf(a)===o),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}setXRange(){let t=this.w.globals,e=this.w.config,s=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric,i=()=>{for(let a=0;a<this.w.seriesData.series.length;a++)if(this.w.labelData.labels[a])for(let o=0;o<this.w.labelData.labels[a].length;o++)this.w.labelData.labels[a][o]!==null&&S.isNumber(this.w.labelData.labels[a][o])&&(t.maxX=Math.max(t.maxX,this.w.labelData.labels[a][o]),t.initialMaxX=Math.max(t.maxX,this.w.labelData.labels[a][o]),t.minX=Math.min(t.minX,this.w.labelData.labels[a][o]),t.initialMinX=Math.min(t.minX,this.w.labelData.labels[a][o]))};if(this.w.axisFlags.isXNumeric&&i(),this.w.axisFlags.noLabelsProvided&&e.xaxis.categories.length===0&&(t.maxX=this.w.labelData.labels[this.w.labelData.labels.length-1],t.initialMaxX=this.w.labelData.labels[this.w.labelData.labels.length-1],t.minX=1,t.initialMinX=1),this.w.axisFlags.isXNumeric||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.dataFormatXNumeric){let a=10;if(e.xaxis.tickAmount===void 0)a=Math.round(t.svgWidth/150),e.xaxis.type==="numeric"&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&t.dataPoints!==0&&(a=t.dataPoints-1);else if(e.xaxis.tickAmount==="dataPoints"){if(this.w.seriesData.series.length>1&&(a=this.w.seriesData.series[t.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){let o=Math.round(t.maxX-t.minX);o<30&&(a=o)}}else a=e.xaxis.tickAmount;if(t.xTickAmount=a,e.xaxis.max!==void 0&&typeof e.xaxis.max=="number"&&(t.maxX=e.xaxis.max),e.xaxis.min!==void 0&&typeof e.xaxis.min=="number"&&(t.minX=e.xaxis.min),e.xaxis.range!==void 0&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!this.w.axisFlags.dataFormatXNumeric){let o=[];for(let r=t.minX-1;r<t.maxX;r++)o.push(r+1);t.xAxisScale={result:o,niceMin:o[0],niceMax:o[o.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,a,a,0,e.xaxis.stepSize),this.w.axisFlags.noLabelsProvided&&this.w.labelData.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,a-1,0,e.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());s&&(this.w.labelData.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&this.w.labelData.labels.length&&(t.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}setZRange(){let t=this.w.globals;if(this.w.axisFlags.isDataXYZ){for(let e=0;e<this.w.seriesData.series.length;e++)if(typeof this.w.seriesData.seriesZ[e]<"u")for(let s=0;s<this.w.seriesData.seriesZ[e].length;s++)this.w.seriesData.seriesZ[e][s]!==null&&S.isNumber(this.w.seriesData.seriesZ[e][s])&&(t.maxZ=Math.max(t.maxZ,this.w.seriesData.seriesZ[e][s]),t.minZ=Math.min(t.minZ,this.w.seriesData.seriesZ[e][s]))}}_handleSingleDataPoint(){let t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){let s=new V(this.w);if(e.xaxis.type==="datetime"){let i=s.getDate(t.minX);e.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),t.minX=new Date(i).getTime();let a=s.getDate(t.maxX);e.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),t.maxX=new Date(a).getTime()}else(e.xaxis.type==="numeric"||e.xaxis.type==="category"&&!this.w.axisFlags.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}_getMinXDiff(){let t=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach(e=>{if(e.length){e.length===1&&e.push(this.w.seriesData.seriesX[t.maxValsInArrayIndex][this.w.seriesData.seriesX[t.maxValsInArrayIndex].length-1]);let s=e.slice();s.sort((i,a)=>i-a),s.forEach((i,a)=>{if(a>0){let o=i-s[a-1];o>0&&(t.minXDiff=Math.min(o,t.minXDiff))}}),(t.dataPoints===1||t.minXDiff===Number.MAX_VALUE)&&(t.minXDiff=.5)}})}_setStackedMinMax(){let t=this.w.globals;if(!this.w.seriesData.series.length)return;let e=this.w.labelData.seriesGroups;e.length||(e=[this.w.seriesData.seriesNames.map(a=>a)]);let s={},i={};e.forEach(a=>{s[a]=[],i[a]=[],this.w.config.series.map((r,n)=>a.indexOf(this.w.seriesData.seriesNames[n])>-1?n:null).filter(r=>r!==null).forEach(r=>{var n,h,l,c;for(let d=0;d<this.w.seriesData.series[t.maxValsInArrayIndex].length;d++)typeof s[a][d]>"u"&&(s[a][d]=0,i[a][d]=0),(this.w.config.chart.stacked&&!t.comboCharts||this.w.config.chart.stacked&&t.comboCharts&&(!this.w.config.chart.stackOnlyBar||((h=(n=this.w.config.series)==null?void 0:n[r])==null?void 0:h.type)==="bar"||((c=(l=this.w.config.series)==null?void 0:l[r])==null?void 0:c.type)==="column"))&&this.w.seriesData.series[r][d]!==null&&S.isNumber(this.w.seriesData.series[r][d])&&(this.w.seriesData.series[r][d]>0?s[a][d]+=parseFloat(String(this.w.seriesData.series[r][d]))+1e-4:i[a][d]+=parseFloat(String(this.w.seriesData.series[r][d])))})}),Object.entries(s).forEach(([a])=>{s[a].forEach((o,r)=>{t.maxY=Math.max(t.maxY,s[a][r]),t.minY=Math.min(t.minY,i[a][r])})})}};function Zt(){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"]}}var vt=class{constructor(t,{theme:e=null,timeScale:s=null}={},i){this.w=t,this.elgrid=i,this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.axisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xAxisoffX=t.config.xaxis.position==="bottom"?t.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new et(t,{theme:e,timeScale:s})}drawYaxis(t){let e=this.w,s=new L(this.w),i=e.config.yaxis[t].labels.style,{fontSize:a,fontFamily:o,fontWeight:r}=i,n=s.group({class:"apexcharts-yaxis",rel:t,transform:`translate(${e.globals.translateYAxisX[t]}, 0)`});if(this.axesUtils.isYAxisHidden(t))return n;let h=s.group({class:"apexcharts-yaxis-texts-g"});n.add(h);let l=e.globals.yAxisScale[t].result.length-1,c=e.layout.gridHeight/l,d=e.formatters.yLabelFormatters[t],f=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());if(e.config.yaxis[t].labels.show){let g=e.layout.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?g=0:e.config.chart.type==="heatmap"&&(g-=c/2),g+=parseInt(a,10)/3;let p=null;for(let u=l;u>=0;u--){let b=d(f[u],u,e),x=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&e.config.yaxis.length!==0&&(x*=-1);let y=this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite),w=this.axesUtils.getYAxisForeColor(i.colors,t),A=Array.isArray(w)?w[u]:w,v=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-label tspan`)).map(k=>k.textContent),C=s.drawText({x,y:g,text:v.includes(b)&&!e.config.yaxis[t].labels.showDuplicates?"":b,textAnchor:y,fontSize:a,fontFamily:o,fontWeight:r,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:A,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${i.cssClass}`});h.add(C),this.addTooltip(C,b),p===null&&(p=C),e.config.yaxis[t].labels.rotate!==0&&this.rotateLabel(s,C,p,e.config.yaxis[t].labels.rotate),g+=c}}return this.addYAxisTitle(s,n,t),this.addAxisBorder(s,n,t,l,c),n}getTextAnchor(t,e){return t==="left"?"start":t==="center"?"middle":t==="right"?"end":e?"start":"end"}addTooltip(t,e){let s=F.createElementNS(B,"title");s.textContent=Array.isArray(e)?e.join(" "):e,t.node.appendChild(s)}rotateLabel(t,e,s,i){let a=t.rotateAroundCenter(s.node),o=t.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(${i} ${a.x} ${o.y})`)}addYAxisTitle(t,e,s){let i=this.w;if(i.config.yaxis[s].title.text!==void 0){let a=t.group({class:"apexcharts-yaxis-title"}),o=i.config.yaxis[s].opposite?i.globals.translateYAxisX[s]:0,r=t.drawText({x:o,y:i.layout.gridHeight/2+i.layout.translateY+i.config.yaxis[s].title.offsetY,text:i.config.yaxis[s].title.text,textAnchor:"end",foreColor:i.config.yaxis[s].title.style.color,fontSize:i.config.yaxis[s].title.style.fontSize,fontWeight:i.config.yaxis[s].title.style.fontWeight,fontFamily:i.config.yaxis[s].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${i.config.yaxis[s].title.style.cssClass}`});a.add(r),e.add(a)}}addAxisBorder(t,e,s,i,a){let o=this.w,r=o.config.yaxis[s].axisBorder,n=31+r.offsetX;if(o.config.yaxis[s].opposite&&(n=-31-r.offsetX),r.show){let h=t.drawLine(n,o.layout.translateY+r.offsetY-2,n,o.layout.gridHeight+o.layout.translateY+r.offsetY+2,r.color,0,r.width);e.add(h)}o.config.yaxis[s].axisTicks.show&&this.axesUtils.drawYAxisTicks(n,i,r,o.config.yaxis[s].axisTicks,s,a,e)}drawYaxisInversed(t){let e=this.w,s=new L(this.w),i=s.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=s.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});i.add(a);let o=e.globals.yAxisScale[t].result.length-1,r=e.layout.gridWidth/o+.1,n=r+e.config.xaxis.labels.offsetX,h=e.formatters.xLabelFormatter,l=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice()),c=e.labelData.timescaleLabels;if(c.length>0&&(this.xaxisLabels=c.slice(),l=c.slice(),o=l.length),e.config.xaxis.labels.show)for(let d=c.length?0:o;c.length?d<c.length:d>=0;c.length?d++:d--){let f=h?.(l[d],d,e),g=e.layout.gridWidth+e.globals.padHorizontal-(n-r+e.config.xaxis.labels.offsetX);if(c.length){let u=this.axesUtils.getLabel(l,c,g,d,this.drawnLabels,this.xaxisFontSize);g=u.x,f=u.text,this.drawnLabels.push(u.text),d===0&&e.globals.skipFirstTimelinelabel&&(f=""),d===l.length-1&&e.globals.skipLastTimelinelabel&&(f="")}let p=s.drawText({x:g,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-(e.config.xaxis.position==="top"?e.layout.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${e.config.xaxis.labels.style.cssClass}`});a.add(p),this.addTooltip(p,f),n+=r}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}inversedYAxisBorder(t){let e=this.w,s=new L(this.w),i=e.config.xaxis.axisBorder;if(i.show){let a=0;e.config.chart.type==="bar"&&e.axisFlags.isXNumeric&&(a-=15);let o=s.drawLine(e.globals.padHorizontal+a+i.offsetX,this.xAxisoffX,e.layout.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(o):t.add(o)}}inversedYAxisTitleText(t){let e=this.w,s=new L(this.w);if(e.config.xaxis.title.text!==void 0){let i=s.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=s.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,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}`});i.add(a),t.add(i)}}yAxisTitleRotate(t,e){let s=this.w,i=new L(this.w),a=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),o=a?a.getBoundingClientRect():{width:0,height:0},r=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-title text`),n=r?r.getBoundingClientRect():{width:0,height:0};if(r){let h=this.xPaddingForYAxisTitle(t,o,n,e);r.setAttribute("x",String(h.xPos-(e?10:0)));let l=i.rotateAroundCenter(r);r.setAttribute("transform",`rotate(${e?s.config.yaxis[t].title.rotate*-1:s.config.yaxis[t].title.rotate} ${l.x} ${l.y})`)}}xPaddingForYAxisTitle(t,e,s,i){let a=this.w,o=0,r=10;return a.config.yaxis[t].title.text===void 0||t<0?{xPos:o,padd:0}:(i?o=e.width+a.config.yaxis[t].title.offsetX+s.width/2+r/2:(o=e.width*-1+a.config.yaxis[t].title.offsetX+r/2+s.width/2,a.globals.isBarHorizontal&&(r=25,o=e.width*-1-a.config.yaxis[t].title.offsetX-r)),{xPos:o,padd:r})}setYAxisXPosition(t,e){let s=this.w,i=0,a=0,o=18,r=1;s.config.yaxis.length>1&&(this.multipleYs=!0),s.config.yaxis.forEach((n,h)=>{let l=s.globals.ignoreYAxisIndexes.includes(h)||!n.show||n.floating||t[h].width===0,c=t[h].width+e[h].width;n.opposite?s.globals.isBarHorizontal?(a=s.layout.gridWidth+s.layout.translateX-1,s.globals.translateYAxisX[h]=a-n.labels.offsetX):(a=s.layout.gridWidth+s.layout.translateX+r,l||(r+=c+20),s.globals.translateYAxisX[h]=a-n.labels.offsetX+20):(i=s.layout.translateX-o,l||(o+=c+20),s.globals.translateYAxisX[h]=i+n.labels.offsetX)})}setYAxisTextAlignments(){let t=this.w;Array.from(t.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((s,i)=>{let a=t.config.yaxis[i];if(a&&!a.floating&&a.labels.align!==void 0){let o=t.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-texts-g`),r=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-label`)),n=o.getBoundingClientRect();r.forEach(h=>{h.setAttribute("text-anchor",a.labels.align)}),a.labels.align==="left"&&!a.opposite?o.setAttribute("transform",`translate(-${n.width}, 0)`):a.labels.align==="center"?o.setAttribute("transform",`translate(${n.width/2*(a.opposite?1:-1)}, 0)`):a.labels.align==="right"&&a.opposite&&o.setAttribute("transform",`translate(${n.width}, 0)`)}})}},Kt=class{constructor(t,e){this.w=t,this.ctx=e,this.documentEvent=this.documentEvent.bind(this)}addEventListener(t,e){let s=this.w;Object.prototype.hasOwnProperty.call(s.globals.events,t)?s.globals.events[t].push(e):s.globals.events[t]=[e]}removeEventListener(t,e){let s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;let i=s.globals.events[t].indexOf(e);i!==-1&&s.globals.events[t].splice(i,1)}fireEvent(t,e){let s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;(!e||!e.length)&&(e=[]);let i=s.globals.events[t],a=i.length;for(let o=0;o<a;o++)i[o].apply(null,e)}setupEventHandlers(){let t=this.w,e=this.ctx,s=t.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(i=>{s?.addEventListener(i,a=>{let o=a.target.getAttribute("i")===null&&t.interact.capturedSeriesIndex!==-1?t.interact.capturedSeriesIndex:a.target.getAttribute("i"),r=a.target.getAttribute("j")===null&&t.interact.capturedDataPointIndex!==-1?t.interact.capturedDataPointIndex:a.target.getAttribute("j"),n=Object.assign({},t,{seriesIndex:t.globals.axisCharts?o:0,dataPointIndex:r});a.type==="keydown"?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&(e.ctx.keyboardNavigation&&e.ctx.keyboardNavigation.handleKey(a),typeof t.config.chart.events.keyDown=="function"&&t.config.chart.events.keyDown(a,e,n),e.ctx.events.fireEvent("keydown",[a,e,n])):a.type==="keyup"?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&(typeof t.config.chart.events.keyUp=="function"&&t.config.chart.events.keyUp(a,e,n),e.ctx.events.fireEvent("keyup",[a,e,n])):a.type==="mousemove"||a.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(a,e,n):a.type==="mouseleave"||a.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(a,e,n):(a.type==="mouseup"&&a.which===1||a.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(a,e,n),e.ctx.events.fireEvent("click",[a,e,n]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(i=>{t.dom.baseEl.addEventListener(i,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(t){let e=this.w,s=t.target.className;if(t.type==="click"){let i=e.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&s!=="apexcharts-menu-icon"&&i.classList.remove("apexcharts-menu-open")}e.interact.clientX=t.type==="touchmove"?t.touches[0].clientX:t.clientX,e.interact.clientY=t.type==="touchmove"?t.touches[0].clientY:t.clientY}},Jt=class{constructor(t){this.w=t}setCurrentLocaleValues(t){let e=this.w.config.chart.locales,s=P.getApex();s.chart&&s.chart.locales&&s.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(s.chart.locales));let i=e.filter(a=>a.name===t)[0];if(i){let a=S.extend(Be,i);this.w.globals.locale=a.options}else throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options")}},Qt=class{constructor(t,e){this.w=t,this.ctx=e}drawAxis(t,e){let s=this.w.globals,i=this.w.config,a=new ht(this.w,this.ctx,e),o=new vt(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},e);if(s.axisCharts&&t!=="radar"){let r,n;s.isBarHorizontal?(n=o.drawYaxisInversed(0),r=a.drawXaxisInversed(0),this.w.dom.elGraphical.add(r),this.w.dom.elGraphical.add(n)):(r=a.drawXaxis(),this.w.dom.elGraphical.add(r),i.yaxis.map((h,l)=>{if(s.ignoreYAxisIndexes.indexOf(l)===-1&&(n=o.drawYaxis(l),this.w.dom.Paper.add(n),this.w.config.grid.position==="back")){let c=this.w.dom.Paper.children()[1];c&&(c.remove(),this.w.dom.Paper.add(c))}}))}}},At=class{constructor(t){this.w=t}drawXCrosshairs(){let t=this.w,e=new L(this.w),s=new J(this.w),i=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,r=i.colorFrom,n=i.colorTo,h=i.opacityFrom,l=i.opacityTo,c=i.stops,d="none",f=a.enabled,g=a.left,p=a.top,u=a.blur,b=a.color,x=a.opacity,y=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){o==="gradient"&&(y=e.drawGradient("vertical",r,n,h,l,null,c,[]));let w=e.drawRect();t.config.xaxis.crosshairs.width===1&&(w=e.drawLine(0,0,0,0));let A=t.layout.gridHeight;(!S.isNumber(A)||A<0)&&(A=0);let v=t.config.xaxis.crosshairs.width;(!S.isNumber(v)||Number(v)<0)&&(v=0),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:A,width:v,height:A,fill:y,filter:d,"fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),f&&(w=s.dropShadow(w,{left:g,top:p,blur:u,color:b,opacity:x})),t.dom.elGraphical.add(w)}}drawYCrosshairs(){let t=this.w,e=new L(this.w),s=t.config.yaxis[0].crosshairs,i=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){let o=e.drawLine(-i,0,t.layout.gridWidth+i,0,s.stroke.color,s.stroke.dashArray,s.stroke.width);o.attr({class:"apexcharts-ycrosshairs"}),t.dom.elGraphical.add(o)}let a=e.drawLine(-i,0,t.layout.gridWidth+i,0,s.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),t.dom.elGraphical.add(a)}};function Ie(m,t){if(!S.isObject(m)||!S.isObject(t))return t!==void 0?t:m;let e=Y({},m);for(let s of Object.keys(t)){let i=t[s];i!==void 0&&(S.isObject(i)&&S.isObject(m[s])?e[s]=Ie(m[s],i):e[s]=i)}return e}var te=class{constructor(t){this.w=t,this._activeBreakpoint=null}checkResponsiveConfig(t){let e=this.w,s=e.config;if(s.responsive.length===0)return;let i=s.responsive.slice();i.sort((r,n)=>r.breakpoint>n.breakpoint?1:n.breakpoint>r.breakpoint?-1:0).reverse();let a=new ct({}),o=(r={})=>{var n;let h=i[0].breakpoint,l=P.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(l>h){if(this._activeBreakpoint!==null){if(!e.globals.initialConfig)return;let c=S.clone(e.globals.initialConfig);c.series=S.clone(e.config.series);let d=j.extendArrayProps(a,c,e);r=S.extend(d,r),this.overrideResponsiveOptions(r),this._activeBreakpoint=null}}else for(let c=0;c<i.length;c++)if(l<i[c].breakpoint){let d=(n=i[c].options)!=null&&n.yaxis?S.clone(i[c].options.yaxis):null;if(r=j.extendArrayProps(a,i[c].options,e),r=S.extend(e.config,r),Array.isArray(e.config.yaxis)&&d){let f=Array.isArray(d)?d:[d];r=W(Y({},r),{yaxis:e.config.yaxis.map((g,p)=>Ie(g,f[p]))})}this.overrideResponsiveOptions(r),this._activeBreakpoint=i[c].breakpoint}};if(t){let r=j.extendArrayProps(a,t,e);r=S.extend(e.config,r),r=S.extend(r,t),o(r)}else o({})}overrideResponsiveOptions(t){let e=new ct(t).init({responsiveOverride:!0});this.w.config=e}},st=class m{constructor(t,{toggleDataSeries:e=void 0,revertDefaultAxisMinMax:s=void 0,updateSeries:i=void 0}={}){this.w=t,this._toggleDataSeries=e||null,this._revertDefaultAxisMinMax=s||null,this._updateSeries=i||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){let t=this.w;t.globals.cachedSelectors&&(delete t.globals.cachedSelectors.allSeriesEls,delete t.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){let t=this.w,e="allSeriesEls";return t.globals.cachedSelectors[e]||(t.globals.cachedSelectors[e]=t.dom.baseEl.getElementsByClassName("apexcharts-series")),t.globals.cachedSelectors[e]}getSeriesByName(t){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${S.escapeString(t)}']`)}isSeriesHidden(t){var e;let i=this.getSeriesByName(t),a=parseInt((e=i.getAttribute("data:realIndex"))!=null?e:"0",10);return{isHidden:i.classList.contains("apexcharts-series-collapsed"),realIndex:a}}addCollapsedClassToSeries(t,e){m.addCollapsedClassToSeries(this.w,t,e)}static addCollapsedClassToSeries(t,e,s){function i(a){for(let o=0;o<a.length;o++)a[o].index===s&&e.node.classList.add("apexcharts-series-collapsed")}i(t.globals.collapsedSeries),i(t.globals.ancillaryCollapsedSeries)}toggleSeries(t){var e;let s=this.isSeriesHidden(t);return(e=this._toggleDataSeries)==null||e.call(this,s.realIndex,s.isHidden),s.isHidden}showSeries(t){var e;let s=this.isSeriesHidden(t);s.isHidden&&((e=this._toggleDataSeries)==null||e.call(this,s.realIndex,!0))}hideSeries(t){var e;let s=this.isSeriesHidden(t);s.isHidden||(e=this._toggleDataSeries)==null||e.call(this,s.realIndex,!1)}resetSeries(t=!0,e=!0,s=!0){var i,a;let o=this.w;this.clearSeriesCache();let r=S.clone(o.globals.initialSeries);o.globals.previousPaths=[],s?(o.globals.collapsedSeries=[],o.globals.ancillaryCollapsedSeries=[],o.globals.collapsedSeriesIndices=[],o.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),o.config.series=r,t&&(e&&(o.interact.zoomed=!1,(i=this._revertDefaultAxisMinMax)==null||i.call(this)),(a=this._updateSeries)==null||a.call(this,r,o.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(t){let e=this.w;for(let s=0;s<t.length;s++)e.globals.collapsedSeriesIndices.indexOf(s)>-1&&(t[s].data=[]);return t}highlightSeries(t){var e;let s=this.w,i=this.getSeriesByName(t),a=parseInt((e=i?.getAttribute("data:realIndex"))!=null?e:"",10),o="highlightSeriesEls",r=s.globals.cachedSelectors[o];r||(r=s.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),s.globals.cachedSelectors[o]=r);let n=null,h=null,l=null;if(s.globals.axisCharts||s.config.chart.type==="radialBar")if(s.globals.axisCharts){n=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${a}']`),h=s.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${a}']`);let c=s.globals.seriesYAxisReverseMap[a];l=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${c}']`)}else n=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}']`);else n=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}'] path`);for(let c=0;c<r.length;c++)r[c].classList.add(this.legendInactiveClass);if(n){if(!s.globals.axisCharts){let c=n.parentNode;c?.classList.remove(this.legendInactiveClass)}n.classList.remove(this.legendInactiveClass),h!==null&&h.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass)}else for(let c=0;c<r.length;c++)r[c].classList.remove(this.legendInactiveClass)}toggleSeriesOnHover(t,e){let s=this.w;e||(e=t.target);let i=s.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(t.type==="mousemove"){let a=parseInt(e.getAttribute("rel"),10)-1;this.highlightSeries(s.seriesData.seriesNames[a])}else if(t.type==="mouseout")for(let a=0;a<i.length;a++)i[a].classList.remove(this.legendInactiveClass)}highlightRangeInSeries(t,e){let s=this.w,i=s.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=r=>{for(let n=0;n<i.length;n++){let h=i[n].classList[r];typeof h=="function"&&h.call(i[n].classList,this.legendInactiveClass)}},o=(r,n)=>{for(let h=0;h<i.length;h++){let l=Number(i[h].getAttribute("val"));l>=r.from&&(l<r.to||r.to===n&&l===n)&&i[h].classList.remove(this.legendInactiveClass)}};if(t.type==="mousemove"){let r=parseInt(e.getAttribute("rel"),10)-1;a("add");let n=s.config.plotOptions.heatmap.colorScale.ranges,h=n[r],l=n.reduce((c,d)=>Math.max(c,d.to),0);o(h,l)}else t.type==="mouseout"&&a("remove")}getActiveConfigSeriesIndex(t="asc",e=[]){let s=this.w,i=0;if(s.config.series.length>1){let a=s.config.series.map((o,r)=>{let n=()=>s.globals.comboCharts?e.length===0||e.length&&e.indexOf(s.config.series[r].type)>-1:!0;return o.data&&o.data.length>0&&s.globals.collapsedSeriesIndices.indexOf(r)===-1&&n()?r:-1});for(let o=t==="asc"?0:a.length-1;t==="asc"?o<a.length:o>=0;t==="asc"?o++:o--)if(a[o]!==-1){i=a[o];break}}return i}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,s)=>e.type==="bar"||e.type==="column"?s:-1).filter(e=>e!==-1):this.w.config.series.map((e,s)=>s)}getPreviousPaths(){var t,e,s,i;let a=this.w;if(!a.globals.axisCharts){a.globals.previousPaths=a.seriesData.series;return}a.globals.previousPaths=[];function o(l,c,d){let f=l[c].childNodes,g={type:d,paths:[],realIndex:l[c].getAttribute("data:realIndex")};for(let p=0;p<f.length;p++)if(f[p].hasAttribute("pathTo")){let u=f[p].getAttribute("pathTo");g.paths.push({d:u})}a.globals.previousPaths.push(g)}let r=l=>a.dom.baseEl.querySelectorAll(`.apexcharts-${l}-series .apexcharts-series`);["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(l=>{let c=r(l);for(let d=0;d<c.length;d++)o(c,d,l)});let h=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series`);if(h.length>0)for(let l=0;l<h.length;l++){let c=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series[data\\:realIndex='${l}'] rect`),d=[];for(let f=0;f<c.length;f++){let g=u=>c[f].getAttribute(u),p={x:parseFloat((t=g("x"))!=null?t:"0"),y:parseFloat((e=g("y"))!=null?e:"0"),width:parseFloat((s=g("width"))!=null?s:"0"),height:parseFloat((i=g("height"))!=null?i:"0")};d.push({rect:p,color:c[f].getAttribute("color")})}a.globals.previousPaths.push(d)}}clearPreviousPaths(){let t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}handleNoData(){let t=this.w,e=this,s=t.config.noData,i=new L(e.w),a=t.globals.svgWidth/2,o=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,s.align==="left"?(a=10,r="start"):s.align==="right"&&(a=t.globals.svgWidth-10,r="end"),s.verticalAlign==="top"?o=50:s.verticalAlign==="bottom"&&(o=t.globals.svgHeight-50),a=a+s.offsetX,o=o+parseInt(s.style.fontSize,10)+2+s.offsetY,s.text!==void 0&&s.text!==""){let n=i.drawText({x:a,y:o,text:s.text,textAnchor:r,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,foreColor:s.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});t.dom.Paper.add(n)}}setNullSeriesToZeroValues(t){let e=this.w;for(let s=0;s<t.length;s++)if(t[s].length===0)for(let i=0;i<t[e.globals.maxValsInArrayIndex].length;i++)t[s].push(0);return t}hasAllSeriesEqualX(){let t=!0,e=this.w,s=this.filteredSeriesX();for(let i=0;i<s.length-1;i++)if(s[i][0]!==s[i+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}filteredSeriesX(){return this.w.seriesData.seriesX.map(s=>s.length>0?s:[])}},ee=class{constructor(t){this.w=t,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}checkHeatmapDistributed(){let{chart:t,plotOptions:e}=this.w.config;return t.type==="treemap"&&e.treemap&&e.treemap.distributed||t.type==="heatmap"&&e.heatmap&&e.heatmap.distributed}checkBarDistributed(){let{chart:t,plotOptions:e}=this.w.config;return e.bar&&e.bar.distributed&&(t.type==="bar"||t.type==="rangeBar")}init(){this.setDefaultColors()}setDefaultColors(){var t;let e=this.w,s=new S;e.dom.elWrap.classList.add(`apexcharts-theme-${e.config.theme.mode||"light"}`);let i=(t=e.config.theme.accessibility)==null?void 0:t.colorBlindMode;if(i){e.globals.colors=this.getColorBlindColors(i),this.applySeriesColors(e.seriesData.seriesColors,e.globals.colors);let r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r),i==="highContrast"&&e.dom.elWrap.classList.add("apexcharts-high-contrast");return}let a=[...e.config.colors||e.config.fill.colors||[]];e.globals.colors=this.getColors(a),this.applySeriesColors(e.seriesData.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.seriesData.series,s));let o=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],o),this.applyDataLabelsColors(o),this.applyRadarPolygonsColors(),this.applyMarkersColors(o)}getColors(t){let e=this.w;return!t||t.length===0?this.predefined():Array.isArray(t)&&t.length>0&&typeof t[0]=="function"?(this.isColorFn=!0,e.config.series.map((s,i)=>{let a=t[i]||t[0];return typeof a=="function"?a({value:e.globals.axisCharts?e.seriesData.series[i][0]||0:e.seriesData.series[i],seriesIndex:i,dataPointIndex:i,w:this.w}):a})):t}applySeriesColors(t,e){t.forEach((s,i)=>{s&&(e[i]=s)})}getMonochromeColors(t,e,s){let{color:i,shadeIntensity:a,shadeTo:o}=t,r=this.isBarDistributed||this.isHeatmapDistributed?e[0].length*e.length:e.length,n=1/(r/a),h=0;return Array.from({length:r},()=>{let l=o==="dark"?s.shadeColor(h*-1,i):s.shadeColor(h,i);return h+=n,l})}applyColorTypes(t,e){let s=this.w;t.forEach(i=>{s.globals[i].colors=s.config[i].colors===void 0?this.isColorFn?s.config.colors:e:s.config[i].colors.slice(),this.pushExtraColors(s.globals[i].colors)})}applyDataLabelsColors(t){let e=this.w;e.globals.dataLabels.style.colors=e.config.dataLabels.style.colors===void 0?t:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){let t=this.w;t.globals.radarPolygons.fill.colors=t.config.plotOptions.radar.polygons.fill.colors===void 0?[t.config.theme.mode==="dark"?"#343A3F":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20)}applyMarkersColors(t){let e=this.w;e.globals.markers.colors=e.config.markers.colors===void 0?t:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}pushExtraColors(t,e,s=null){let i=this.w,a=e||i.seriesData.series.length;if(s===null&&(s=this.isBarDistributed||this.isHeatmapDistributed||i.config.chart.type==="heatmap"&&i.config.plotOptions.heatmap&&i.config.plotOptions.heatmap.colorScale.inverse),s&&i.seriesData.series.length&&(a=i.seriesData.series[i.globals.maxValsInArrayIndex].length*i.seriesData.series.length),t.length<a){let o=a-t.length;for(let r=0;r<o;r++)t.push(t[r])}}getColorBlindColors(t){let e=Zt();return({deuteranopia:e.cvdDeuteranopia,protanopia:e.cvdProtanopia,tritanopia:e.cvdTritanopia,highContrast:e.highContrast}[t]||e.palette1).slice()}updateThemeOptions(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};let e=t.theme.mode,s=e==="dark"?"palette4":e==="light"?"palette1":t.theme.palette||"palette1",i=e==="dark"?"#f6f7f8":e==="light"?"#373d3f":t.chart.foreColor||"#373d3f";return t.tooltip.theme=e||"light",t.chart.foreColor=i,t.theme.palette=s,t}predefined(){let t=this.w.config.theme.palette,e=Zt();return e[t]||e.palette1}},se=class{constructor(t){this.w=t}draw(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}drawTitleSubtitle(t){let e=this.w,s=t==="title"?e.config.title:e.config.subtitle,i=e.globals.svgWidth/2,a=s.offsetY,o="middle";if(s.align==="left"?(i=10,o="start"):s.align==="right"&&(i=e.globals.svgWidth-10,o="end"),i=i+s.offsetX,a=a+parseInt(s.style.fontSize,10)+s.margin/2,s.text!==void 0){let n=new L(this.w).drawText({x:i,y:a,text:s.text,textAnchor:o,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,fontWeight:s.style.fontWeight,foreColor:s.style.color,opacity:1});n.node.setAttribute("class",`apexcharts-${t}-text`),e.dom.Paper.add(n)}}},ie=class{constructor(t){this.w=t.w,this.dCtx=t}getTitleSubtitleCoords(t){let e=this.w,s=0,i=0,a=t==="title"?e.config.title.floating:e.config.subtitle.floating,o=e.dom.baseEl.querySelector(`.apexcharts-${t}-text`);if(o!==null&&!a){let r=o.getBoundingClientRect();s=r.width,i=e.globals.axisCharts?r.height+5:r.height}return{width:s,height:i}}getLegendsRect(){let t=this.w,e=t.dom.elLegendWrap;!t.config.legend.height&&(t.config.legend.position==="top"||t.config.legend.position==="bottom")&&e&&(e.style.maxHeight=t.globals.svgHeight/2+"px");let s=Object.assign({},S.getBoundingClientRect(e));return e!==null&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:s.x,y:s.y,height:s.height,width:s.height===0?0:s.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},(t.config.legend.position==="left"||t.config.legend.position==="right")&&this.dCtx.lgRect.width*1.5>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){let t=this.w,e=[];t.config.series.forEach((r,n)=>{r.data.forEach((h,l)=>{let d=(f=>t.config.dataLabels.formatter(f,{seriesIndex:n,dataPointIndex:l,w:t}))(t.seriesData.series[n][l]);e.push(d)})});let s=S.getLargestStringFromArr(e),i=new L(this.w),a=t.config.dataLabels.style,o=i.getTextRects(s,parseInt(a.fontSize).toString(),a.fontFamily);return{width:o.width*1.05,height:o.height}}getLargestStringFromMultiArr(t,e){let s=this.w,i=t;if(s.axisFlags.isMultiLineX){let a=e.map(n=>Array.isArray(n)?n.length:1),o=Math.max(...a),r=a.indexOf(o);i=e[r]}return i}},ae=class{constructor(t){this.w=t.w,this.dCtx=t}getxAxisLabelsCoords(){let t=this.w,e=t.labelData.labels.slice();t.config.xaxis.convertedCatToNumeric&&e.length===0&&(e=t.labelData.categoryLabels);let s;if(t.labelData.timescaleLabels.length>0){let i=this.getxAxisTimeScaleLabelsCoords();s={width:i.width,height:i.height},t.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=(t.config.legend.position==="left"||t.config.legend.position==="right")&&!t.config.legend.floating?this.dCtx.lgRect.width:0;let i=t.formatters.xLabelFormatter,a=S.getLargestStringFromArr(e),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,e);t.globals.isBarHorizontal&&(a=t.globals.yAxisScale[0].result.reduce((d,f)=>d.length>f.length?d:f,0),o=a);let r=new nt(this.w),n=a;a=r.xLabelFormat(i,a,n,{i:void 0,dateFormatter:new V(this.w).formatDate,w:t}),o=r.xLabelFormat(i,o,n,{i:void 0,dateFormatter:new V(this.w).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&typeof a>"u"||String(a).trim()==="")&&(a="1",o=a);let h=new L(this.w),l=h.getTextRects(a,t.config.xaxis.labels.style.fontSize),c=l;if(a!==o&&(c=h.getTextRects(o,t.config.xaxis.labels.style.fontSize)),s={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},s.width*e.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.layout.rotateXLabels=!0;let d=f=>h.getTextRects(f,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,`rotate(${t.config.xaxis.labels.rotate} 0 0)`,!1);l=d(a),a!==o&&(c=d(o)),s.height=(l.height>c.height?l.height:c.height)/1.5,s.width=l.width>c.width?l.width:c.width}}else t.layout.rotateXLabels=!1}return t.config.xaxis.labels.show||(s={width:0,height:0}),{width:s.width,height:s.height}}getxAxisGroupLabelsCoords(){var t;let e=this.w;if(!e.labelData.hasXaxisGroups)return{width:0,height:0};let s=((t=e.config.xaxis.group.style)==null?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,i=e.labelData.groups.map(c=>c.title),a,o=S.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i),n=new L(this.w),h=n.getTextRects(o,s),l=h;return o!==r&&(l=n.getTextRects(r,s)),a={width:h.width>=l.width?h.width:l.width,height:h.height>=l.height?h.height:l.height},e.config.xaxis.labels.show||(a={width:0,height:0}),{width:a.width,height:a.height}}getxAxisTitleCoords(){let t=this.w,e=0,s=0;if(t.config.xaxis.title.text!==void 0){let a=new L(this.w).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,s=a.height}return{width:e,height:s}}getxAxisTimeScaleLabelsCoords(){let t=this.w;this.dCtx.timescaleLabels=t.labelData.timescaleLabels.slice();let e=this.dCtx.timescaleLabels.map(r=>r.value),s=e.reduce((r,n)=>typeof r>"u"?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>n.length?r:n,0),a=new L(this.w).getTextRects(s,t.config.xaxis.labels.style.fontSize);return a.width*1.05*e.length>t.layout.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),a}additionalPaddingXLabels(t){let e=this.w,s=e.globals,i=e.config,a=i.xaxis.type,o=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;let r=e.config.yaxis[0].opposite&&e.globals.isBarHorizontal,n=c=>s.collapsedSeriesIndices.indexOf(c)!==-1,h=c=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){let d=this.dCtx.timescaleLabels[0],g=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+o/1.75-this.dCtx.yAxisWidthRight,p=d.position-o/1.75+this.dCtx.yAxisWidthLeft,u=e.config.legend.position==="right"&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;g>s.svgWidth-e.layout.translateX-u&&(s.skipLastTimelinelabel=!0),p<-((!c.show||c.floating)&&(i.chart.type==="bar"||i.chart.type==="candlestick"||i.chart.type==="rangeBar"||i.chart.type==="boxPlot")?o/1.75:10)&&(s.skipFirstTimelinelabel=!0)}else a==="datetime"?this.dCtx.gridPad.right<o&&!e.layout.rotateXLabels&&(s.skipLastTimelinelabel=!0):a!=="datetime"&&this.dCtx.gridPad.right<o/2-this.dCtx.yAxisWidthRight&&!e.layout.rotateXLabels&&!e.config.xaxis.labels.trim&&(this.dCtx.xPadRight=o/2+1)},l=(c,d)=>{i.yaxis.length>1&&n(d)||h(c)};i.yaxis.forEach((c,d)=>{r?(this.dCtx.gridPad.left<o&&(this.dCtx.xPadLeft=o/2+1),this.dCtx.xPadRight=o/2+1):l(c,d)})}},re=class{constructor(t){this.w=t.w,this.dCtx=t}getyAxisLabelsCoords(){let t=this.w,e=0,s=0,i=[],a=10,o=new et(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return t.config.yaxis.map((r,n)=>{let h={seriesIndex:n,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[n],c=0;if(!o.isYAxisHidden(n)&&r.labels.show&&r.labels.minWidth!==void 0&&(c=r.labels.minWidth),!o.isYAxisHidden(n)&&r.labels.show&&l.result.length){let d=t.formatters.yLabelFormatters[n],f=l.niceMin===Number.MIN_VALUE?0:l.niceMin,g=l.result.reduce((w,A)=>{var v,C;return((v=String(d(w,h)))==null?void 0:v.length)>((C=String(d(A,h)))==null?void 0:C.length)?w:A},f);g=d(g,h);let p=g;if((typeof g>"u"||g.length===0)&&(g=l.niceMax),String(g).length===1&&(g=g+".0",p=g),t.globals.isBarHorizontal){a=0;let w=t.labelData.labels.slice();g=S.getLargestStringFromArr(w),g=d(g,{seriesIndex:n,dataPointIndex:-1,w:t}),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(g,w)}let u=new L(this.w),b="rotate(".concat(r.labels.rotate," 0 0)"),x=u.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,b,!1),y=x;g!==p&&(y=u.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,b,!1)),i.push({width:(c>y.width||c>x.width?c:y.width>x.width?y.width:x.width)+a,height:y.height>x.height?y.height:x.height})}else i.push({width:e,height:s})}),i}getyAxisTitleCoords(){let t=this.w,e=[];return t.config.yaxis.map(s=>{if(s.show&&s.title.text!==void 0){let i=new L(this.w),a="rotate(".concat(s.title.rotate," 0 0)"),o=i.getTextRects(s.title.text,s.title.style.fontSize,s.title.style.fontFamily,a,!1);e.push({width:o.width,height:o.height})}else e.push({width:0,height:0})}),e}getTotalYAxisWidth(){let t=this.w,e=0,s=0,i=0,a=t.globals.yAxisScale.length>1?10:0,o=new et(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),r=function(h){return t.globals.ignoreYAxisIndexes.indexOf(h)>-1},n=(h,l)=>{let c=t.config.yaxis[l].floating,d=0;h.width>0&&!c?(d=h.width+a,r(l)&&(d=d-h.width-a)):d=c||o.isYAxisHidden(l)?0:5,t.config.yaxis[l].opposite?i=i+d:s=s+d,e=e+d};return t.layout.yLabelsCoords.map((h,l)=>{n(h,l)}),t.layout.yTitleCoords.map((h,l)=>{n(h,l)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.layout.yLabelsCoords[0].width+t.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=s,this.dCtx.yAxisWidthRight=i,e}},oe=class{constructor(t){this.w=t.w,this.dCtx=t}gridPadForColumnsInNumericAxis(t){let{w:e}=this,{config:s,globals:i}=e;if(i.noData||i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===s.series.length)return 0;let a=c=>["bar","rangeBar","candlestick","boxPlot"].includes(c),o=s.chart.type,r=0,n=a(o)?s.series.length:1;i.comboBarCount>0&&(n=i.comboBarCount),i.collapsedSeries.forEach(c=>{a(c.type)&&(n-=1)}),s.chart.stacked&&(n=1);let h=a(o)||i.comboBarCount>0,l=Math.abs(i.initialMaxX-i.initialMinX);if(h&&e.axisFlags.isXNumeric&&!i.isBarHorizontal&&n>0&&l!==0){l<=3&&(l=i.dataPoints);let c=l/t,d=i.minXDiff&&i.minXDiff/c>0?i.minXDiff/c:0;d>t/2&&(d/=2),r=d*parseInt(s.plotOptions.bar.columnWidth,10)/100,r<1&&(r=1),i.barPadForNumericAxis=r}return r}gridPadFortitleSubtitle(){let{w:t}=this,{globals:e}=t,s=this.dCtx.isSparkline||!e.axisCharts?0:10;["title","subtitle"].forEach(r=>{t.config[r].text!==void 0?s+=t.config[r].margin:s+=this.dCtx.isSparkline||!e.axisCharts?0:5}),t.config.legend.show&&t.config.legend.position==="bottom"&&!t.config.legend.floating&&!e.axisCharts&&(s+=10);let a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");t.layout.gridHeight-=a.height+o.height+s,t.layout.translateY+=a.height+o.height+s}setGridXPosForDualYAxis(t,e){let{w:s}=this,i=new et(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});s.config.yaxis.forEach((a,o)=>{s.globals.ignoreYAxisIndexes.indexOf(o)===-1&&!a.floating&&!i.isYAxisHidden(o)&&(a.opposite&&(s.layout.translateX-=e[o].width+t[o].width+parseInt(a.labels.style.fontSize,10)/1.2+12),s.layout.translateX<2&&(s.layout.translateX=2))})}},Lt=class{constructor(t,e){this.w=t,this.ctx=e,this.theme=e.theme,this.timeScale=e.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 ie(this),this.dimYAxis=new re(this),this.dimXAxis=new ae(this),this.dimGrid=new oe(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){let t=this.w,e=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};let s=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(([a,o])=>{this.gridPad[a]=Math.max(o,this.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(s/2,this.gridPad.top),this.gridPad.bottom=Math.max(s/2,this.gridPad.bottom)),e.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.layout.gridHeight=t.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,t.layout.gridWidth=t.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;let i=this.dimGrid.gridPadForColumnsInNumericAxis(t.layout.gridWidth);return t.layout.gridWidth=t.layout.gridWidth-i*2,t.layout.translateX=t.layout.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),t.layout.translateY=t.layout.translateY+this.gridPad.top,{layout:{gridHeight:t.layout.gridHeight,gridWidth:t.layout.gridWidth,translateX:t.layout.translateX,translateY:t.layout.translateY,translateXAxisX:t.layout.translateXAxisX,translateXAxisY:t.layout.translateXAxisY,rotateXLabels:t.layout.rotateXLabels,xAxisHeight:t.layout.xAxisHeight,xAxisLabelsHeight:t.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:t.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:t.layout.xAxisLabelsWidth,yLabelsCoords:t.layout.yLabelsCoords,yTitleCoords:t.layout.yTitleCoords}}}setDimensionsForAxisCharts(){let t=this.w,e=t.globals,s=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();e.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.layout.yLabelsCoords=[],t.layout.yTitleCoords=[],t.config.yaxis.map((f,g)=>{t.layout.yLabelsCoords.push({width:s[g].width,index:g}),t.layout.yTitleCoords.push({width:i[g].width,index:g})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();let a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),r=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,r,o),t.layout.translateXAxisY=t.layout.rotateXLabels?this.xAxisHeight/8:-4,t.layout.translateXAxisX=t.layout.rotateXLabels&&t.axisFlags.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(t.layout.rotateXLabels=!1,t.layout.translateXAxisY=-1*(parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5)),t.layout.translateXAxisY=t.layout.translateXAxisY+t.config.xaxis.labels.offsetY,t.layout.translateXAxisX=t.layout.translateXAxisX+t.config.xaxis.labels.offsetX;let n=this.yAxisWidth,h=this.xAxisHeight;t.layout.xAxisLabelsHeight=this.xAxisHeight-r.height,t.layout.xAxisGroupLabelsHeight=t.layout.xAxisLabelsHeight-a.height,t.layout.xAxisLabelsWidth=this.xAxisWidth,t.layout.xAxisHeight=this.xAxisHeight;let l=10;(t.config.chart.type==="radar"||this.isSparkline)&&(n=0,h=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(n=0,h=0,l=0),!this.isSparkline&&t.config.chart.type!=="treemap"&&this.dimXAxis.additionalPaddingXLabels(a);let c=()=>{t.layout.translateX=n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-this.lgRect.height-h-(!this.isSparkline&&t.config.chart.type!=="treemap"?t.layout.rotateXLabels?10:15:0),t.layout.gridWidth=e.svgWidth-n-this.datalabelsCoords.width*2};switch(t.config.xaxis.position==="top"&&(l=t.layout.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":t.layout.translateY=l,c();break;case"top":t.layout.translateY=this.lgRect.height+l,c();break;case"left":t.layout.translateY=l,t.layout.translateX=this.lgRect.width+n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-h-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-n-this.datalabelsCoords.width*2;break;case"right":t.layout.translateY=l,t.layout.translateX=n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-h-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-n-this.datalabelsCoords.width*2-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,s),new vt(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(s,i)}setDimensionsForNonAxisCharts(){let t=this.w,e=t.globals,s=t.config,i=0;t.config.legend.show&&!t.config.legend.floating&&(i=20);let a=s.chart.type==="pie"||s.chart.type==="polarArea"||s.chart.type==="donut"?"pie":"radialBar",o=s.plotOptions[a].offsetY,r=s.plotOptions[a].offsetX;if(!s.legend.show||s.legend.floating){t.layout.gridHeight=e.svgHeight;let n=t.dom.elWrap.getBoundingClientRect().width;t.layout.gridWidth=Math.min(n,t.layout.gridHeight),t.layout.translateY=o,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;return}switch(s.legend.position){case"bottom":t.layout.gridHeight=e.svgHeight-this.lgRect.height,t.layout.gridWidth=e.svgWidth,t.layout.translateY=o-10,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;break;case"top":t.layout.gridHeight=e.svgHeight-this.lgRect.height,t.layout.gridWidth=e.svgWidth,t.layout.translateY=this.lgRect.height+o+10,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;break;case"left":t.layout.gridWidth=e.svgWidth-this.lgRect.width-i,t.layout.gridHeight=s.chart.height!=="auto"?e.svgHeight:t.layout.gridWidth,t.layout.translateY=o,t.layout.translateX=r+this.lgRect.width+i;break;case"right":t.layout.gridWidth=e.svgWidth-this.lgRect.width-i-5,t.layout.gridHeight=s.chart.height!=="auto"?e.svgHeight:t.layout.gridWidth,t.layout.translateY=o,t.layout.translateX=r+10;break;default:throw new Error("Legend position not supported")}}conditionalChecksForAxisCoords(t,e,s){let i=this.w,a=i.labelData.hasXaxisGroups?2:1,o=s.height+t.height+e.height,r=i.axisFlags.isMultiLineX?1.2:He,n=i.layout.rotateXLabels?22:10,l=i.layout.rotateXLabels&&i.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*r+a*n+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);let c=0,d=0;i.config.yaxis.forEach(f=>{c+=f.labels.minWidth,d+=f.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}},gt=1e3,pt=60*gt,ut=60*pt,dt=24*ut,Me=7*dt,Ot=30*dt,ot=365*dt,ss=10/(1440*60),It=[{unit:"second",step:1,approxMs:gt},{unit:"second",step:5,approxMs:5*gt},{unit:"second",step:15,approxMs:15*gt},{unit:"second",step:30,approxMs:30*gt},{unit:"minute",step:1,approxMs:pt},{unit:"minute",step:5,approxMs:5*pt},{unit:"minute",step:15,approxMs:15*pt},{unit:"minute",step:30,approxMs:30*pt},{unit:"hour",step:1,approxMs:ut},{unit:"hour",step:3,approxMs:3*ut},{unit:"hour",step:6,approxMs:6*ut},{unit:"hour",step:12,approxMs:12*ut},{unit:"day",step:1,approxMs:dt},{unit:"day",step:2,approxMs:2*dt},{unit:"week",step:1,approxMs:Me},{unit:"week",step:2,approxMs:2*Me},{unit:"month",step:1,approxMs:Ot},{unit:"month",step:3,approxMs:3*Ot},{unit:"month",step:6,approxMs:6*Ot},{unit:"year",step:1,approxMs:ot},{unit:"year",step:2,approxMs:2*ot},{unit:"year",step:5,approxMs:5*ot},{unit:"year",step:10,approxMs:10*ot},{unit:"year",step:25,approxMs:25*ot},{unit:"year",step:50,approxMs:50*ot},{unit:"year",step:100,approxMs:100*ot}],ze=10,ne=class{constructor(t,e){this.w=t,this.ctx=e,this.tickInterval=null,this.timeScaleArray=[],this.utc=t.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(t,e){let s=this.w;if(s.globals.allSeriesCollapsed)return s.labelData.labels=[],s.labelData.timescaleLabels=[],this.timeScaleArray=[],[];let i=e-t,a=i/dt;s.interact.disableZoomIn=!1,s.interact.disableZoomOut=!1,a<ss?s.interact.disableZoomIn=!0:a>5e4&&(s.interact.disableZoomOut=!0);let o=Number.isFinite(s.config.xaxis.tickAmount)?s.config.xaxis.tickAmount:ze;this.tickInterval=is(i,o);let r=this.generateBaseTicks(t,e,this.tickInterval);return this.timeScaleArray=r,r}generateBaseTicks(t,e,s){let i=this.w,a=new V(i),o=this.utc,r=i.layout.gridWidth,n=e-t,h=[],l=a.ceilToBoundary(t,s.unit,s.step,o),c=0,d=5e3;for(;l<=e&&c<d;){let f=a.getDateFields(l,o),g=n>0?(l-t)/n*r:0;h.push({timestamp:l,position:g,unit:s.unit,year:f.year,month:f.month+1,day:f.date,hour:f.hour,minute:f.minute,second:f.second,value:l}),l=a.addInterval(l,s.unit,s.step,o),c++}return h}recalcDimensionsBasedOnFormat(t){let e=this.w,s=this.formatDates(t),i=this.removeOverlappingTS(s);e.labelData.timescaleLabels=i.slice();let o=new Lt(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(o.layout)}formatDates(t){let e=this.w,s=new V(e),i=e.config.xaxis.labels.format,a=e.config.xaxis.labels.datetimeFormatter,o=this.utc,r=(h,l=2)=>String(h).padStart(l,"0"),n=i||this._effectiveFormat(t,a);return t.map(h=>{let l=s.getDate(h.timestamp),c=s.formatDate(l,n);return{dateString:`${h.year}-${r(h.month)}-${r(h.day)}T${r(h.hour)}:${r(h.minute)}:${r(h.second)}.000${o?"Z":""}`,position:h.position,value:c,unit:h.unit,year:h.year,month:h.month}})}_effectiveFormat(t,e){if(t.length===0)return e.day||"dd MMM";let s=this.tickInterval&&this.tickInterval.unit||t[0].unit,i=e[s==="week"?"day":s]||e.day||"dd MMM",a=t[0],o=t[t.length-1],r=a.year!==o.year,h=r||a.month!==o.month||a.day!==o.day,l=/y/i.test(i),c=/M/.test(i),d=/d/i.test(i);return s==="month"||s==="week"||s==="day"?r&&!l?i+" yyyy":i:(s==="hour"||s==="minute"||s==="second")&&h&&!d&&!c?(r?"dd MMM yyyy":"dd MMM")+" "+i:i}removeOverlappingTS(t){if(t.length===0)return[];let e=this.w,s=new L(e),i=!1,a;t[0].value&&t.every(n=>n.value.length===t[0].value.length)&&(i=!0,a=s.getTextRects(t[0].value,e.config.xaxis.labels.style.fontSize).width);let o=0;return t.map((n,h)=>{if(h===0||!e.config.xaxis.labels.hideOverlappingLabels)return n;let l=i?a:s.getTextRects(t[o].value,e.config.xaxis.labels.style.fontSize).width,c=t[o].position;return n.position>c+l+10?(o=h,n):null}).filter(n=>n!==null)}};function is(m,t){if((!Number.isFinite(t)||t<=0)&&(t=ze),m<=0)return It[0];let e=m/t,s=It[0],i=1/0;for(let a of It){let o=Math.abs(Math.log(a.approxMs/e));o<i&&(i=o,s=a)}return s}var le="__apexcharts_registry__";globalThis[le]||(globalThis[le]={});function We(){return globalThis[le]}function as(m){Object.assign(We(),m)}function q(m){let t=We()[m];if(!t)throw new Error(`ApexCharts: chart type "${m}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return t}var ce=class{constructor(t,e,s){this.w=e,this.ctx=s,this.el=t}setupElements(){let{globals:t,config:e}=this.w,s=e.chart.type,i=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"],a=[...i,"radar","heatmap","treemap"];t.axisCharts=a.includes(s),t.xyCharts=i.includes(s),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(s)&&e.plotOptions.bar.horizontal,t.chartClass=`.apexcharts${t.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=F.createElementNS("http://www.w3.org/1999/xhtml","div"),L.setAttrs(this.w.dom.elWrap,{id:t.chartClass.substring(1),class:`apexcharts-canvas ${t.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(${e.chart.offsetX}, ${e.chart.offsetY})`}),this.w.dom.Paper.node.style.background=e.theme.mode==="dark"&&!e.chart.background?"#343A3F":e.theme.mode==="light"&&!e.chart.background?"#fff":e.chart.background,this.setSVGDimensions(),this.w.dom.elLegendForeign=F.createElementNS(B,"foreignObject"),L.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),this.w.dom.elLegendWrap=F.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),e.chart.accessibility.enabled&&e.chart.accessibility.announcements.enabled){let r=F.createElement("div");r.className="apexcharts-sr-status",r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),this.w.dom.elWrap.appendChild(r)}if(e.chart.accessibility.enabled){let r=this.getAccessibleChartLabel(),n=e.chart.accessibility.keyboard.enabled&&e.chart.accessibility.keyboard.navigation.enabled?"application":"img";if(this.w.dom.Paper.attr({role:n,"aria-label":r}),e.chart.accessibility.description){let h=F.createElementNS(B,"desc");h.textContent=e.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(h,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),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)}plotChartType(t,e){let{w:s,ctx:i}=this,{config:a,globals:o}=s,r={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},n=a.chart.type||"line",h=null,l=0;this.w.seriesData.series.forEach((x,y)=>{var w,A;let v=((w=t[y])==null?void 0:w.type)==="column"?"bar":((A=t[y])==null?void 0:A.type)||(n==="column"?"bar":n),C=r;C[v]?(v==="rangeArea"?(C[v].series.push(this.w.rangeData.seriesRangeStart[y]),C[v].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[y])):C[v].series.push(x),C[v].i.push(y),v==="bar"&&(s.globals.columnSeries=r.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(v)?h=v:console.warn(`You have specified an unrecognized series type (${v}).`),n!==v&&v!=="scatter"&&l++}),l>0&&(h&&console.warn(`Chart or series type ${h} cannot appear with other chart or series types.`),r.bar.series.length>0&&a.plotOptions.bar.horizontal&&(l-=r.bar.series.length,r.bar={series:[],i:[]},s.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),o.comboCharts||(o.comboCharts=l>0);let d=r.line.series.length>0||r.area.series.length>0||r.scatter.series.length>0||r.bubble.series.length>0||r.rangeArea.series.length>0||!o.comboCharts&&["line","area","scatter","bubble","rangeArea"].includes(a.chart.type)?new(q("line"))(i.w,i,e):null,g=r.candlestick.series.length>0||r.boxPlot.series.length>0||!o.comboCharts&&["candlestick","boxPlot"].includes(a.chart.type)?new(q("candlestick"))(i.w,i,e):null,p=!o.comboCharts&&["pie","donut","polarArea"].includes(a.chart.type);i.pie=p?new(q("pie"))(i.w,i):null;let u=r.rangeBar.series.length>0||!o.comboCharts&&a.chart.type==="rangeBar";i.rangeBar=u?new(q("rangeBar"))(i.w,i,e):null;let b=[];if(o.comboCharts){let x=new j(this.w);if(r.area.series.length>0&&b.push(...x.drawSeriesByGroup(r.area,o.areaGroups,"area",d)),r.bar.series.length>0)if(a.chart.stacked){let y=new(q("barStacked"))(i.w,i,e);b.push(y.draw(r.bar.series,r.bar.i))}else i.bar=new(q("bar"))(i.w,i,e),b.push(i.bar.draw(r.bar.series,r.bar.i));if(r.rangeArea.series.length>0&&b.push(d.draw(r.rangeArea.series,"rangeArea",r.rangeArea.i,r.rangeArea.seriesRangeEnd)),r.line.series.length>0&&b.push(...x.drawSeriesByGroup(r.line,o.lineGroups,"line",d)),r.candlestick.series.length>0&&b.push(g.draw(r.candlestick.series,"candlestick",r.candlestick.i)),r.boxPlot.series.length>0&&b.push(g.draw(r.boxPlot.series,"boxPlot",r.boxPlot.i)),r.rangeBar.series.length>0&&b.push(i.rangeBar.draw(r.rangeBar.series,r.rangeBar.i)),r.scatter.series.length>0){let y=new(q("line"))(i.w,i,e,!0);b.push(y.draw(r.scatter.series,"scatter",r.scatter.i))}if(r.bubble.series.length>0){let y=new(q("line"))(i.w,i,e,!0);b.push(y.draw(r.bubble.series,"bubble",r.bubble.i))}}else{let x=a.chart.type;switch(x){case"line":b=d.draw(this.w.seriesData.series,"line");break;case"area":b=d.draw(this.w.seriesData.series,"area");break;case"bar":a.chart.stacked?b=new(q("barStacked"))(i.w,i,e).draw(this.w.seriesData.series):(i.bar=new(q("bar"))(i.w,i,e),b=i.bar.draw(this.w.seriesData.series));break;case"candlestick":b=g.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":b=g.draw(this.w.seriesData.series,x);break;case"rangeBar":b=i.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":b=d.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":{b=new(q("heatmap"))(i.w,i,e).draw(this.w.seriesData.series);break}case"treemap":{b=new(q("treemap"))(i.w,i).draw(this.w.seriesData.series);break}case"pie":case"donut":case"polarArea":b=i.pie.draw(this.w.seriesData.series);break;case"radialBar":{b=new(q("radialBar"))(i.w,i).draw(this.w.seriesData.series);break}case"radar":{b=new(q("radar"))(i.w,i).draw(this.w.seriesData.series);break}default:b=d.draw(this.w.seriesData.series)}}return b}setSVGDimensions(){var t;let{globals:e,config:s}=this.w;s.chart.width=s.chart.width||"100%",s.chart.height=s.chart.height||"auto";let i=s.chart.width,a=s.chart.height;e.svgWidth=NaN,e.svgHeight=NaN;let o=S.getDimensions(this.el),r=i.toString().split(/[0-9]+/g).pop();r==="%"?S.isNumber(o[0])&&(o[0].width===0&&(o=S.getDimensions(this.el.parentNode)),e.svgWidth=o[0]*parseInt(i,10)/100):(r==="px"||r==="")&&(e.svgWidth=parseInt(i,10));let n=String(a).toString().split(/[0-9]+/g).pop();if(a!=="auto"&&a!=="")if(n==="%"){let h=S.getDimensions(this.el.parentNode);e.svgHeight=h[1]*parseInt(a,10)/100}else e.svgHeight=parseInt(a,10);else e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2;if(e.svgWidth=Math.max(e.svgWidth,0),e.svgHeight=Math.max(e.svgHeight,0),L.setAttrs(this.w.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),n!=="%"&&P.isBrowser()){let h=s.chart.sparkline.enabled?0:e.axisCharts?s.chart.parentHeightOffset:0,l=this.w.dom.Paper.node;(t=l.parentNode)!=null&&t.parentNode&&(l.parentNode.parentNode.style.minHeight=`${e.svgHeight+h}px`)}this.w.dom.elWrap.style.width=`${e.svgWidth}px`,this.w.dom.elWrap.style.height=`${e.svgHeight}px`}shiftGraphPosition(){let{globals:t}=this.w,{translateY:e,translateX:s}=t;L.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${s}, ${e})`})}resizeNonAxisCharts(){var t,e,s,i,a,o;let{w:r}=this,n=0,h=r.config.chart.sparkline.enabled?1:15;h+=r.config.grid.padding.bottom,["top","bottom"].includes(r.config.legend.position)&&r.config.legend.show&&!r.config.legend.floating&&(n=((e=(t=this.ctx.legend)==null?void 0:t.legendHelpers.getLegendDimensions().clwh)!=null?e:0)+7);let l=r.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),c=r.globals.radialSize*2.05,d=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle);if(l&&!r.config.chart.sparkline.enabled&&d<360){let g=S.getBoundingClientRect(this.w.dom.Paper.node),p=1/0,u=-1/0,b=k=>{var T,D,E,_;if((T=k.classList)!=null&&T.contains("apexcharts-radialbar-hollow"))return;let M=(E=(D=k.tagName)==null?void 0:D.toLowerCase)==null?void 0:E.call(D);if(M==="text"||M==="tspan")return;let X=Array.from((_=k.children)!=null?_:[]);if(X.length>0){X.forEach(H=>b(H));return}let N=S.getBoundingClientRect(k);if(N.bottom-N.top>0){let H=N.top-g.top,I=N.bottom-g.top;H<p&&(p=H),I>u&&(u=I)}};Array.from((s=l.children)!=null?s:[]).forEach(k=>b(k)),Number.isFinite(p)||(p=0),Number.isFinite(u)||(u=S.getBoundingClientRect(l).bottom-g.top);let x=Math.max(h,r.globals.radialSize*.2),y=Math.max(x-p,0);y!==0&&(r.layout.translateY=((i=r.layout.translateY)!=null?i:0)+y,L.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${(a=r.layout.translateX)!=null?a:0}, ${r.layout.translateY})`}),u+=y),c=u>0?u:r.globals.radialSize*2.05;let w=Math.max(x,p),A=Math.ceil(c+n+w),v=(o=r.config.chart.offsetY)!=null?o:0,C=A+Math.max(v,0);this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(C)),r.config.chart.height&&String(r.config.chart.height).includes("%")||(this.w.dom.elWrap.style.height=`${C}px`,L.setAttrs(this.w.dom.Paper.node,{height:A}),P.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${C}px`));return}let f=Math.ceil(c+this.w.layout.translateY+n+h);this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(f)),!(r.config.chart.height&&String(r.config.chart.height).includes("%"))&&(this.w.dom.elWrap.style.height=`${f}px`,L.setAttrs(this.w.dom.Paper.node,{height:f}),P.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${f}px`))}coreCalculations(){new wt(this.w).init()}resetGlobals(){let t=()=>this.w.config.series.map(()=>[]),e=new Dt,{globals:s}=this.w,i={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:s.originalSeries};e.initGlobalVars(s),s.seriesXvalues=t(),s.seriesYvalues=t(),i.dataWasParsed&&(this.w.axisFlags.dataWasParsed=i.dataWasParsed,s.originalSeries=i.originalSeries)}isMultipleY(){return Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1?(this.w.globals.isMultipleYAxis=!0,!0):!1}xySettings(){let{w:t}=this,e=null;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new At(this.w).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new At(this.w).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new ne(this.w,this.ctx);let i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new j(this.w).getCalculatedRatios()}return e}updateSourceChart(t){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){let{ctx:t,w:e}=this;if(e.config.chart.brush.enabled&&typeof e.config.chart.events.selection!="function"){let s=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];s.forEach(i=>{let a=t.constructor.getChartByID(i);a.w.globals.brushSource=this.ctx,typeof a.w.config.chart.events.zoomed!="function"&&(a.w.config.chart.events.zoomed=()=>this.updateSourceChart(a)),typeof a.w.config.chart.events.scrolled!="function"&&(a.w.config.chart.events.scrolled=()=>this.updateSourceChart(a))}),e.config.chart.events.selection=(i,a)=>{s.forEach(o=>{t.constructor.getChartByID(o).ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){let t=this.w,e=t.config;if(e.chart.accessibility&&e.chart.accessibility.description)return e.chart.accessibility.description;let s=e.chart.type,i=[];if(e.title.text)i.push(`${e.title.text}. ${s} chart`),e.subtitle.text&&i.push(e.subtitle.text);else{let a=Array.isArray(t.seriesData.seriesNames)&&t.seriesData.seriesNames.length?t.seriesData.seriesNames.filter(Boolean):Array.isArray(e.series)?e.series.map(r=>typeof r=="object"&&r!==null?r.name:null).filter(Boolean):[],o=t.seriesData.series.length||(e.series?e.series.length:0);a.length?i.push(`${s} chart with ${o} data series: ${a.join(", ")}`):i.push(`${s} chart with ${o} data series`)}return i.join(". ")}},Et=class m{constructor(t,{resetGlobals:e=()=>{},isMultipleY:s=()=>{}}={}){this.w=t,this.resetGlobals=e,this.isMultipleY=s,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new j(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){let t=this.w.config.series,e=new st(this.w);this.activeSeriesIndex=e.getActiveConfigSeriesIndex();let s=t[this.activeSeriesIndex];return s&&s.data&&s.data.length>0&&s.data[0]!==null&&typeof s.data[0]<"u"?s.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var t;let e=this.getFirstDataPoint();if(!e||typeof e.x>"u")return!1;let s=(t=this.w.config.series[this.activeSeriesIndex])==null?void 0:t.data;if(s){let i=a=>a&&typeof a.x<"u";for(let a=1;a<Math.min(3,s.length);a++)if(i(s[a])!==!0){console.warn(`ApexCharts: series data has mixed formats starting at index ${a}`);break}}return!0}isFormat2DArray(){let t=this.getFirstDataPoint();return t&&Array.isArray(t)}handleFormat2DArray(t,e){let s=this.w.config,i=t[e].data,a=s.chart.type==="boxPlot"||s.series[e].type==="boxPlot";for(let o=0;o<i.length;o++){let r=i[o],n=r[0],h=r[1],l=r[2];if(typeof h<"u"&&(Array.isArray(h)&&h.length===4&&!a?this.twoDSeries.push(S.parseNumber(h[3])):r.length>=5?this.twoDSeries.push(S.parseNumber(r[4])):this.twoDSeries.push(S.parseNumber(h)),this.w.axisFlags.dataFormatXNumeric=!0),s.xaxis.type==="datetime"){let c=new Date(n).getTime();this.twoDSeriesX.push(c)}else this.twoDSeriesX.push(n);typeof l<"u"&&(this.threeDSeries.push(l),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(t,e){let s=this.w.config,i=this.w.globals,a=new V(this.w),o=t[e].data,r=e;i.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);let n=t[r].data;for(let h=0;h<o.length;h++){let l=o[h];if(typeof l.y<"u"){let c=Array.isArray(l.y)?S.parseNumber(l.y[l.y.length-1]):S.parseNumber(l.y);this.twoDSeries.push(c)}typeof this.seriesGoals[e]>"u"&&(this.seriesGoals[e]=[]),typeof l.goals<"u"&&Array.isArray(l.goals)?this.seriesGoals[e].push(l.goals):this.seriesGoals[e].push(null),typeof l.z<"u"&&(this.threeDSeries.push(l.z),this.w.axisFlags.isDataXYZ=!0)}for(let h=0;h<n.length;h++){let c=n[h].x,d=typeof c=="string",f=Array.isArray(c),g=!f&&!!a.isValidDate(c);if(d||g)if(d||s.xaxis.convertedCatToNumeric){let p=i.isBarHorizontal&&this.w.axisFlags.isRangeData;s.xaxis.type==="datetime"&&!p?this.twoDSeriesX.push(a.parseDate(c)):(this.fallbackToCategory=!0,this.twoDSeriesX.push(c),!isNaN(c)&&this.w.config.xaxis.type!=="category"&&typeof c!="string"&&(this.w.axisFlags.isXNumeric=!0))}else s.xaxis.type==="datetime"?this.twoDSeriesX.push(a.parseDate(c.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(c)));else f?(this.fallbackToCategory=!0,this.twoDSeriesX.push(c)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(c))}}handleRangeData(t,e){let s={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),this.w.rangeData.seriesRangeStart[e]=s.start===void 0?[]:s.start,this.w.rangeData.seriesRangeEnd[e]=s.end===void 0?[]:s.end,this.w.rangeData.seriesRange[e]=s.rangeUniques,this.w.rangeData.seriesRange.forEach(i=>{i&&i.forEach(a=>{let o=a.y,r=o.length;if(!(r<=1))for(let n=0;n<r;n++){let h=o[n],l=h.y1,c=h.y2;for(let d=n+1;d<r;d++){let f=o[d],g=f.y1,p=f.y2;if(l<=p&&g<=c){let u=a;u.overlaps.add(h.rangeName),u.overlaps.add(f.rangeName)}}}})}),s}handleCandleStickBoxData(t,e){let s={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),this.w.candleData.seriesCandleO[e]=s.o,this.w.candleData.seriesCandleH[e]=s.h,this.w.candleData.seriesCandleM[e]=s.m,this.w.candleData.seriesCandleL[e]=s.l,this.w.candleData.seriesCandleC[e]=s.c,s}handleRangeDataFormat(t,e,s){let i=[],a=[],o=new Map,r=[];if(e[s].data.forEach(n=>{if(!o.has(n.x)){let h={x:n.x,overlaps:new Set,y:[]};o.set(n.x,h),r.push(h)}}),t==="array")for(let n=0;n<e[s].data.length;n++)Array.isArray(e[s].data[n])?(i.push(e[s].data[n][1][0]),a.push(e[s].data[n][1][1])):(i.push(e[s].data[n]),a.push(e[s].data[n]));else if(t==="xy")for(let n=0;n<e[s].data.length;n++){let h=Array.isArray(e[s].data[n].y),l=S.randomId(),c=e[s].data[n].x,d={y1:h?e[s].data[n].y[0]:e[s].data[n].y,y2:h?e[s].data[n].y[1]:e[s].data[n].y,rangeName:l};e[s].data[n].rangeName=l;let f=o.get(c);f&&f.y.push(d),i.push(d.y1),a.push(d.y2)}return{start:i,end:a,rangeUniques:r}}handleCandleStickBoxDataFormat(t,e,s){let i=this.w,a=i.config.chart.type==="boxPlot"||i.config.series[s].type==="boxPlot",o=[],r=[],n=[],h=[],l=[],c=e[s].data,d;t==="array"?a&&c[0].length===6||!a&&c[0].length===5?d=g=>g.slice(1):d=g=>Array.isArray(g[1])?g[1]:[]:d=f=>Array.isArray(f.y)?f.y:[];for(let f=0;f<c.length;f++){let g=d(c[f]);g&&g.length>=2&&(o.push(g[0]),r.push(g[1]),a?(n.push(g[2]),h.push(g[3]),l.push(g[4])):(h.push(g[2]),l.push(g[3])))}return{o,h:r,m:n,l:h,c:l}}parseDataAxisCharts(t){var e,s,i,a;let o=this.w.config,r=this.w.globals,n=new V(this.w),h=o.labels.length>0?o.labels.slice():o.xaxis.categories.slice();this.w.axisFlags.isRangeBar=o.chart.type==="rangeBar"&&r.isBarHorizontal,this.w.labelData.hasXaxisGroups=o.xaxis.type==="category"&&o.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=o.xaxis.group.groups),t.forEach((f,g)=>{f.name!==void 0?this.w.seriesData.seriesNames.push(f.name):this.w.seriesData.seriesNames.push("series-"+parseInt(String(g+1),10))}),this.coreUtils.setSeriesYAxisMappings();let l=[],c=[...new Set(o.series.map(f=>f.group))];o.series.forEach((f,g)=>{let p=c.indexOf(f.group);l[p]||(l[p]=[]),l[p].push(this.w.seriesData.seriesNames[g])}),this.w.labelData.seriesGroups=l;let d=()=>{for(let f=0;f<h.length;f++)if(typeof h[f]=="string")if(n.isValidDate(h[f]))this.twoDSeriesX.push(n.parseDate(h[f]));else throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");else this.twoDSeriesX.push(h[f])};for(let f=0;f<t.length;f++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],typeof t[f].data>"u"){console.error("It is a possibility that you may have not included 'data' property in series.");return}let g=o.chart.dataReducer,p=(s=(e=r.dataReducerRawSeries)==null?void 0:e[f])==null?void 0:s.data;if(g?.enabled&&this.isMultiFormat()&&Array.isArray(p)&&p.length>((i=g.threshold)!=null?i:500)){let u=(a=g.targetPoints)!=null?a:250,b=o.xaxis.min,x=o.xaxis.max,y=b==null&&x==null?p:m.sliceByXRange(p,b,x),w=y.length>u?m.lttbDownsample(y,u):y;t[f]=W(Y({},t[f]),{data:w})}if((o.chart.type==="rangeBar"||o.chart.type==="rangeArea"||t[f].type==="rangeBar"||t[f].type==="rangeArea")&&(this.w.axisFlags.isRangeData=!0,this.handleRangeData(t,f)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,f):this.isFormatXY()&&this.handleFormatXY(t,f),(o.chart.type==="candlestick"||t[f].type==="candlestick"||o.chart.type==="boxPlot"||t[f].type==="boxPlot")&&this.handleCandleStickBoxData(t,f),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,f===this.activeSeriesIndex&&!this.fallbackToCategory&&(this.w.axisFlags.isXNumeric=!0);else{o.xaxis.type==="datetime"?(this.w.axisFlags.isXNumeric=!0,d(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):o.xaxis.type==="numeric"&&(this.w.axisFlags.isXNumeric=!0,h.length>0&&(this.twoDSeriesX=h,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);let u=t[f].data.map(b=>S.parseNumber(b));this.w.seriesData.series.push(u)}this.w.seriesData.seriesZ.push(this.threeDSeries),t[f].color!==void 0?this.w.seriesData.seriesColors.push(t[f].color):this.w.seriesData.seriesColors.push(void 0)}return this.w}parseDataNonAxisCharts(t){let e=this.w.config,s=Array.isArray(t)&&t.every(o=>typeof o=="number")&&e.labels.length>0,i=Array.isArray(t)&&t.some(o=>o&&typeof o=="object"&&o.data||o&&typeof o=="object"&&o.parsing);if(s&&i&&console.warn("ApexCharts: Both old format (numeric series + labels) and new format (series objects with data/parsing) detected. Using old format for backward compatibility."),s){this.w.seriesData.series=t.slice(),this.w.seriesData.seriesNames=e.labels.slice();for(let o=0;o<this.w.seriesData.series.length;o++)this.w.seriesData.seriesNames[o]===void 0&&this.w.seriesData.seriesNames.push("series-"+(o+1));return this.w}if(Array.isArray(t)&&t.every(o=>typeof o=="number")){this.w.seriesData.series=t.slice(),this.w.seriesData.seriesNames=[];for(let o=0;o<this.w.seriesData.series.length;o++)this.w.seriesData.seriesNames.push(e.labels[o]||`series-${o+1}`);return this.w}let a=this.extractPieDataFromSeries(t);this.w.seriesData.series=a.values,this.w.seriesData.seriesNames=a.labels,e.chart.type==="radialBar"&&(this.w.seriesData.series=this.w.seriesData.series.map(o=>{let r=S.parseNumber(o);return r>100&&console.warn(`ApexCharts: RadialBar value ${r} > 100, consider using percentage values (0-100)`),r}));for(let o=0;o<this.w.seriesData.series.length;o++)this.w.seriesData.seriesNames[o]===void 0&&this.w.seriesData.seriesNames.push("series-"+(o+1));return this.w}resetParsingFlags(){let t=this.w;t.axisFlags.dataWasParsed=!1,t.globals.originalSeries=null,t.config.series&&t.config.series.forEach(e=>{e.__apexParsed&&delete e.__apexParsed})}extractPieDataFromSeries(t){let e=[],s=[];if(!Array.isArray(t))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(t.length===0)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};let i=t[0];if(typeof i=="object"&&i!==null&&i.data)this.extractPieDataFromSeriesObjects(t,e,s);else return console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]};return{values:e,labels:s}}extractPieDataFromSeriesObjects(t,e,s){t.forEach((i,a)=>{if(!i.data||!Array.isArray(i.data)){console.warn(`ApexCharts: Series ${a} has no valid data array`);return}i.data.forEach(o=>{typeof o=="object"&&o!==null?o.x!==void 0&&o.y!==void 0?(s.push(String(o.x)),e.push(S.parseNumber(o.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",o):console.warn("ApexCharts: Expected object data point, got:",typeof o)})})}handleExternalLabelsData(t){let e=this.w.config;if(e.xaxis.categories.length>0)this.w.labelData.labels=e.xaxis.categories;else if(e.labels.length>0)this.w.labelData.labels=e.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(i=>{i.forEach(a=>{this.w.labelData.labels.indexOf(a.x)<0&&a.x&&this.w.labelData.labels.push(a.x)})});let s=this.w.labelData.labels;if(s.length>0&&(typeof s[0]=="number"||typeof s[0]=="string"))this.w.labelData.labels=[...new Set(s)];else{let i=new Map;for(let a of s){let o=JSON.stringify(a);i.has(o)||i.set(o,a)}this.w.labelData.labels=Array.from(i.values())}}e.xaxis.convertedCatToNumeric&&(new lt(e).convertCatToNumericXaxis(e,this.w.seriesData.seriesX[0]),this._generateExternalLabels(t))}else this._generateExternalLabels(t)}_generateExternalLabels(t){let e=this.w.globals,s=this.w.config,i=[];if(e.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){let a=s.series.map(r=>{let n=new Map;for(let h of r.data)n.has(h.x)||n.set(h.x,h);return Array.from(n.values())}),o=a.reduce((r,n,h,l)=>l[r].length>n.length?r:h,0);for(let r=0;r<a[o].length;r++)i.push(r+1)}else for(let a=0;a<this.w.seriesData.series[e.maxValsInArrayIndex].length;a++)i.push(a+1);this.w.seriesData.seriesX=[];for(let a=0;a<t.length;a++)this.w.seriesData.seriesX.push(i);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(i.length===0){i=e.axisCharts?[]:this.w.seriesData.series.map((a,o)=>o+1);for(let a=0;a<t.length;a++)this.w.seriesData.seriesX.push(i)}this.w.labelData.labels=i,s.xaxis.convertedCatToNumeric&&(this.w.labelData.categoryLabels=i.map(a=>s.xaxis.labels.formatter(a))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(t){let e=this.w.config,s=this.w.globals,i=e.parsing;if(this.w.axisFlags.dataWasParsed||!i&&!t.some(o=>o.parsing))return t;let a=t.map((o,r)=>{var n,h,l;if(!o.data||!Array.isArray(o.data)||o.data.length===0)return o;let c={x:((n=o.parsing)==null?void 0:n.x)||i?.x,y:((h=o.parsing)==null?void 0:h.y)||i?.y,z:((l=o.parsing)==null?void 0:l.z)||i?.z};if(!c.x&&!c.y)return o;let d=o.data[0];if(typeof d=="object"&&d!==null&&(Object.prototype.hasOwnProperty.call(d,"x")||Object.prototype.hasOwnProperty.call(d,"y"))||Array.isArray(d))return o;if(!c.x||!c.y||Array.isArray(c.y)&&c.y.length===0)return console.warn(`ApexCharts: Series ${r} has parsing config but missing x or y field specification`),o;let f=o.data.map((g,p)=>{if(typeof g!="object"||g===null)return console.warn(`ApexCharts: Series ${r}, data point ${p} is not an object, skipping parsing`),g;let u=this.getNestedValue(g,c.x),b,x;if(Array.isArray(c.y)){let w=c.y.map(A=>this.getNestedValue(g,A));this.w.config.chart.type==="bubble"?(w.length<2&&console.warn(`ApexCharts: series[${r}] bubble chart requires parseData.y to have at least 2 fields (y and z). Got: ${JSON.stringify(c.y)}`),b=w[0]):b=w}else b=this.getNestedValue(g,c.y);c.z&&(x=this.getNestedValue(g,c.z)),u===void 0&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${c.x}'`),b===void 0&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${c.y}'`);let y={x:u,y:b,z:void 0};if(this.w.config.chart.type==="bubble"&&Array.isArray(c.y)&&c.y.length===2){let w=this.getNestedValue(g,c.y[1]);w!==void 0&&(y.z=w)}return x!==void 0&&(y.z=x),y});return W(Y({},o),{data:f,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,s.originalSeries||(s.originalSeries=S.clone(t)),a}getNestedValue(t,e){if(!t||typeof t!="object"||!e)return;if(e.indexOf(".")===-1)return t[e];let s=e.split("."),i=t;for(let a=0;a<s.length;a++){if(i==null||typeof i!="object")return;i=i[s[a]]}return i}parseData(t){var e,s,i,a,o,r;let n=this.w,h=n.config,l=n.globals;if(t=this.parseRawDataIfNeeded(t),(e=h.chart.dataReducer)!=null&&e.enabled&&l.axisCharts&&!l.dataReducerRawSeries){l.dataReducerRawSeries=t.map(g=>({data:Array.isArray(g?.data)?g.data.slice():g?.data}));let d=1/0,f=-1/0;for(let g of t){let p=g?.data;if(!Array.isArray(p)||p.length===0)continue;let u=!Array.isArray(p[0]),b=u?(s=p[0])==null?void 0:s.x:(i=p[0])==null?void 0:i[0],x=u?(a=p[p.length-1])==null?void 0:a.x:(o=p[p.length-1])==null?void 0:o[0];typeof b=="number"&&(d=Math.min(d,b)),typeof x=="number"&&(f=Math.max(f,x))}d!==1/0&&(l.dataReducerRawMinX=d,l.dataReducerRawMaxX=f)}if(h.series=t,l.dataReducerRawSeries&&((r=h.chart.dataReducer)!=null&&r.enabled)){let d=l.dataReducerRawSeries;l.initialSeries=t.map((f,g)=>{var p,u,b;return W(Y({},f),{data:(b=(u=(p=d[g])==null?void 0:p.data)==null?void 0:u.slice())!=null?b:f.data})})}else l.initialSeries=S.clone(t);if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),l.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),h.chart.stacked){let d=new st(this.w);this.w.seriesData.series=d.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),l.axisCharts&&(this.w.seriesData.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),this.w.seriesData.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),!this.w.axisFlags.dataFormatXNumeric&&(!this.w.axisFlags.isXNumeric||h.xaxis.type==="numeric"&&h.labels.length===0&&h.xaxis.categories.length===0)&&this.handleExternalLabelsData(t);let c=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let d=0;d<c.length;d++)if(Array.isArray(c[d])){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,initialSeries:l.initialSeries,originalSeries:l.originalSeries,stackedSeriesTotals:this.w.seriesData.stackedSeriesTotals,stackedSeriesTotalsByGroups:this.w.seriesData.stackedSeriesTotalsByGroups,noLabelsProvided: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},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 sliceByXRange(t,e,s){let i=t.length;if(i===0)return t;let o=!Array.isArray(t[0])?h=>h.x:h=>h[0],r=0;if(e!=null){let h=0,l=i-1;for(;h<=l;){let c=h+l>>1;o(t[c])<e?h=c+1:l=c-1}r=Math.max(0,h-1)}let n=i;if(s!=null){let h=0,l=i-1;for(;h<=l;){let c=h+l>>1;o(t[c])>s?l=c-1:h=c+1}n=Math.min(i,h+1)}return r===0&&n===i?t.slice():t.slice(r,n)}static lttbDownsample(t,e){let s=t.length;if(e>=s||e<3)return t;let i=!Array.isArray(t[0]),a=i?l=>l.x:l=>l[0],o=i?l=>l.y:l=>l[1],r=[];r.push(t[0]);let n=(s-2)/(e-2),h=0;for(let l=0;l<e-2;l++){let c=Math.floor((l+1)*n)+1,d=Math.min(Math.floor((l+2)*n)+1,s),f=0,g=0,p=d-c;for(let v=c;v<d;v++)f+=a(t[v]),g+=o(t[v]);f/=p,g/=p;let u=Math.floor(l*n)+1,b=Math.min(Math.floor((l+1)*n)+1,s),x=a(t[h]),y=o(t[h]),w=-1,A=u;for(let v=u;v<b;v++){let C=Math.abs((x-f)*(o(t[v])-y)-(x-a(t[v]))*(g-y))*.5;C>w&&(w=C,A=v)}r.push(t[A]),h=A}return r.push(t[s-1]),r}excludeCollapsedSeriesInYAxis(){let t=this.w,e=[];t.globals.seriesYAxisMap.forEach((s,i)=>{let a=0;s.forEach(o=>{t.globals.collapsedSeriesIndices.indexOf(o)!==-1&&a++}),a>0&&a==s.length&&e.push(i)}),t.globals.ignoreYAxisIndexes=e.map(s=>s)}},he=class{constructor(t,e){this.w=t,this.ctx=e}_updateOptions(t,e=!1,s=!0,i=!0,a=!1){return new Promise(o=>{let r=[this.ctx];i&&(r=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(r=[this.ctx],this.w.globals.isExecCalled=!1),r.forEach((n,h)=>{let l=n.w;if(l.globals.shouldAnimate=s,e||(l.globals.resized=!0,l.globals.dataChanged=!0,s&&n.series.getPreviousPaths()),t&&typeof t=="object"&&(n.config=new ct(t),t=j.extendArrayProps(n.config,t,l),n.w.globals.chartID!==this.w.globals.chartID&&delete t.series,l.config=S.extend(l.config,t),a&&(l.globals.lastXAxis=t.xaxis?S.clone(t.xaxis):[],l.globals.lastYAxis=t.yaxis?S.clone(t.yaxis):[],l.globals.initialConfig=S.extend({},l.config),l.globals.initialSeries=S.clone(l.config.series),t.series))){for(let c=0;c<l.globals.collapsedSeriesIndices.length;c++){let d=l.config.series[l.globals.collapsedSeriesIndices[c]];l.globals.collapsedSeries[c].data=l.globals.axisCharts?d.data.slice():d}for(let c=0;c<l.globals.ancillaryCollapsedSeriesIndices.length;c++){let d=l.config.series[l.globals.ancillaryCollapsedSeriesIndices[c]];l.globals.ancillaryCollapsedSeries[c].data=l.globals.axisCharts?d.data.slice():d}n.series.emptyCollapsedSeries(l.config.series)}return n.update(t).then(()=>{h===r.length-1&&o(n)})})})}_updateSeries(t,e,s=!1){return new Promise(i=>{let a=this.w;a.globals.shouldAnimate=e,a.globals.dataChanged=!0,yt.invalidateSelectors(a),e&&this.ctx.series.getPreviousPaths();let o=a.config.series.length;a.globals.dataReducerRawSeries=null,this.ctx.data.resetParsingFlags();let r=this.ctx.data.parseData(t);return this.ctx._writeParsedSeriesData(r.seriesData),this.ctx._writeParsedRangeData(r.rangeData),this.ctx._writeParsedCandleData(r.candleData),this.ctx._writeParsedLabelData(r.labelData),this.ctx._writeParsedAxisFlags(r.axisFlags),s&&(a.globals.initialConfig&&(a.globals.initialConfig.series=S.clone(a.config.series)),a.globals.initialSeries=S.clone(a.config.series)),this._canUseFastPath(t,o,a)?this.ctx.fastUpdate(e).then(()=>{i(this.ctx)}):this.ctx.update().then(()=>{i(this.ctx)})})}_canUseFastPath(t,e,s){return!(!s.dom.elGraphical||!s.globals.axisCharts||t.length!==e||s.globals.collapsedSeries.length>0||s.globals.ancillaryCollapsedSeries.length>0||s.globals.risingSeries.length>0||s.globals.comboCharts||s.interact.zoomed)}_extendSeries(t,e){let s=this.w,i=s.config.series[e];return W(Y({},s.config.series[e]),{name:t.name?t.name:i?.name,color:t.color?t.color:i?.color,type:t.type?t.type:i?.type,group:t.group?t.group:i?.group,hidden:typeof t.hidden<"u"?t.hidden:i?.hidden,data:t.data?t.data:i?.data,zIndex:typeof t.zIndex<"u"?t.zIndex:e})}toggleDataPointSelection(t,e){let s=this.w,i=null,a=`.apexcharts-series[data\\:realIndex='${t}']`;if(s.globals.axisCharts?i=s.dom.Paper.findOne(`${a} path[j='${e}'], ${a} circle[j='${e}'], ${a} rect[j='${e}']`):typeof e>"u"&&(i=s.dom.Paper.findOne(`${a} path[j='${t}']`),(s.config.chart.type==="pie"||s.config.chart.type==="polarArea"||s.config.chart.type==="donut")&&this.ctx.pie.pieClicked(t)),i)new L(this.w).pathMouseDown(i,null);else return console.warn("toggleDataPointSelection: Element not found"),null;return i.node?i.node:null}forceXAxisUpdate(t){let e=this.w;return["min","max"].forEach(i=>{typeof t.xaxis[i]<"u"&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric&&(t=new lt(t).convertCatToNumericXaxis(t,this.ctx)),t}forceYAxisUpdate(t){return t.chart&&t.chart.stacked&&t.chart.stackType==="100%"&&(Array.isArray(t.yaxis)?t.yaxis.forEach((e,s)=>{t.yaxis[s].min=0,t.yaxis[s].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}revertDefaultAxisMinMax(t){let e=this.w,s=e.globals.lastXAxis,i=e.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(i=t.yaxis);let a=s;e.config.xaxis.min=a.min,e.config.xaxis.max=a.max;let o=r=>{if(typeof i[r]<"u"){let n=i[r];e.config.yaxis[r].min=n.min,e.config.yaxis[r].max=n.max}};e.config.yaxis.map((r,n)=>{e.interact.zoomed||typeof i[n]<"u"?o(n):typeof this.ctx.opts.yaxis[n]<"u"&&(r.min=this.ctx.opts.yaxis[n].min,r.max=this.ctx.opts.yaxis[n].max)})}},Ft=class{constructor(t){this.w=t.w,this.ttCtx=t}getNearestValues({hoverArea:t,elGrid:e,clientX:s,clientY:i}){var a,o;let r=this.w,n=e.getBoundingClientRect(),h=n.width,l=n.height,c=h/(r.globals.dataPoints-1),d=l/r.globals.dataPoints,f=this.hasBars();(r.globals.comboCharts||f)&&!r.config.xaxis.convertedCatToNumeric&&(c=h/r.globals.dataPoints);let g=s-n.left-r.globals.barPadForNumericAxis,p=i-n.top;g<0||p<0||g>h||p>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):r.interact.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):r.interact.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));let b=Math.round(g/c),x=Math.floor(p/d);f&&!r.config.xaxis.convertedCatToNumeric&&(b=Math.ceil(g/c),b=b-1);let y=null,w=null,A=r.globals.seriesXvalues.map(C=>C.filter(k=>S.isNumber(k))),v=r.globals.seriesYvalues.map(C=>C.filter(k=>S.isNumber(k)));if(r.axisFlags.isXNumeric){let C=this.ttCtx.getElGrid();if(!C)return{hoverX:g,hoverY:p};let k=C.getBoundingClientRect(),T=g*(k.width/h),D=p*(k.height/l);w=this.closestInMultiArray(T,D,A,v),y=w.index,b=(a=w.j)!=null?a:0,y!==null&&r.globals.hasNullValues&&(A=r.globals.seriesXvalues[y],w=this.closestInArray(T,A),b=(o=w.j)!=null?o:0)}return r.interact.capturedSeriesIndex=y===null?-1:y,(!b||b<1)&&(b=0),r.globals.isBarHorizontal?r.interact.capturedDataPointIndex=x:r.interact.capturedDataPointIndex=b,{capturedSeries:y,j:r.globals.isBarHorizontal?x:b,hoverX:g,hoverY:p}}getFirstActiveXArray(t){let e=this.w,s=0,i=t.map((a,o)=>a.length>0?o:-1);for(let a=0;a<i.length;a++)if(i[a]!==-1&&e.globals.collapsedSeriesIndices.indexOf(a)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1){s=i[a];break}return s}closestInMultiArray(t,e,s,i){let a=this.w,o=d=>a.globals.collapsedSeriesIndices.indexOf(d)===-1&&a.globals.ancillaryCollapsedSeriesIndices.indexOf(d)===-1,r=a.config.chart.type,n=!a.globals.comboCharts&&(r==="line"||r==="area"),h=1/0,l=null,c=null;if(a.globals.allSeriesHasEqualX){let d=1/0;for(let f=0;f<s.length;f++){if(!o(f))continue;let g=s[f],p=i[f],u=Math.min(g.length,p.length);for(let b=0;b<u;b++){let x=Math.abs(t-g[b]);x<d&&(d=x,c=b)}}if(c!==null)if(n){let f=1/0;for(let g=0;g<s.length;g++){if(!o(g))continue;let p=s[g],u=i[g],b=Math.min(p.length,u.length);if(b<2){let x=u[c];if(typeof x!="number")continue;let y=Math.abs(e-x);y<f&&(f=y,l=g);continue}for(let x=0;x<b-1;x++){let y=this._distanceToSegment(t,e,p[x],u[x],p[x+1],u[x+1]);y.dist<f&&(f=y.dist,l=g)}}}else{let f=1/0;for(let g=0;g<s.length;g++){if(!o(g))continue;let p=i[g][c];if(typeof p!="number")continue;let u=Math.abs(e-p);u<f&&(f=u,l=g)}}return{index:l,j:c}}for(let d=0;d<s.length;d++){if(!o(d))continue;let f=s[d],g=i[d],p=Math.min(f.length,g.length);if(n&&p>=2){for(let u=0;u<p-1;u++){let b=this._distanceToSegment(t,e,f[u],g[u],f[u+1],g[u+1]);b.dist<h&&(h=b.dist,l=d,c=b.t<.5?u:u+1)}continue}for(let u=0;u<p;u++){let b=f[u],x=t-b,y=g[u],w=e-y,A=Math.sqrt(x*x+w*w);A<h&&(h=A,l=d,c=u)}}return{index:l,j:c}}_distanceToSegment(t,e,s,i,a,o){let r=a-s,n=o-i,h=r*r+n*n,l=h===0?0:((t-s)*r+(e-i)*n)/h;l<0?l=0:l>1&&(l=1);let c=s+l*r,d=i+l*n,f=t-c,g=e-d;return{dist:Math.sqrt(f*f+g*g),t:l}}closestInArray(t,e){let s=e[0],i=null,a=Math.abs(t-s);for(let o=0;o<e.length;o++){let r=Math.abs(t-e[o]);r<a&&(a=r,i=o)}return{j:i}}isXoverlap(t){let e=this.w,s=[],i=e.seriesData.seriesX.filter(a=>typeof a[0]<"u");if(i.length>0)for(let a=0;a<i.length-1;a++)typeof i[a][t]<"u"&&typeof i[a+1][t]<"u"&&i[a][t]!==i[a+1][t]&&s.push("unEqual");return s.length===0}isInitialSeriesSameLen(){var t,e,s;let i=!0,a=((t=this.w.globals.initialSeries)==null?void 0:t.filter((o,r)=>{var n;return!((n=this.w.globals.collapsedSeriesIndices)!=null&&n.includes(r))}))||[];for(let o=0;o<a.length-1;o++){if(!((e=a[o])!=null&&e.data)||!((s=a[o+1])!=null&&s.data))return!0;if(a[o].data.length!==a[o+1].data.length){i=!1;break}}return i}getBarsHeight(t){return[...t].reduce((i,a)=>i+a.getBBox().height,0)}getElMarkers(t){return typeof t=="number"?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}getAllMarkers(t=!1){let e=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];t&&(e=e.filter(i=>{let a=Number(i.getAttribute("data:realIndex"));return this.w.globals.collapsedSeriesIndices.indexOf(a)===-1})),e.sort((i,a)=>{var o=Number(i.getAttribute("data:realIndex")),r=Number(a.getAttribute("data:realIndex"));return r<o?1:r>o?-1:0});let s=[];return e.forEach(i=>{s.push(i.querySelector(".apexcharts-marker"))}),s}hasMarkers(t){return this.getElMarkers(t).length>0}getPathFromPoint(t,e){let s=Number(t.getAttribute("cx")),i=Number(t.getAttribute("cy")),a=t.getAttribute("shape");return new L(this.w).getMarkerPath(s,i,a,e)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(t){let e=this.w,s=e.config.markers.hover.size;return s===void 0&&(s=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),s}toggleAllTooltipSeriesGroups(t){let e=this.w,s=this.ttCtx;s.allTooltipSeriesGroups.length===0&&(s.allTooltipSeriesGroups=e.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));let i=s.allTooltipSeriesGroups;for(let a=0;a<i.length;a++)t==="enable"?(i[a].classList.add("apexcharts-active"),i[a].style.display=e.config.tooltip.items.display):(i[a].classList.remove("apexcharts-active"),i[a].style.display="none")}},de=class{constructor(t){this.w=t.w,this.ttCtx=t,this.tooltipUtil=new Ft(t)}drawSeriesTexts({shared:t=!0,ttItems:e,i:s=0,j:i=null,y1:a,y2:o,e:r}){let n=this.w;n.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:s,j:i,y1:a,y2:o,w:n}):this.toggleActiveInactiveSeries(t,s);let h=this.getValuesToPrint({i:s,j:i});this.printLabels({i:s,j:i,values:h,ttItems:e,shared:t,e:r});let l=this.ttCtx.getElTooltip();l&&(this.ttCtx.tooltipRect.ttWidth=l.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=l.getBoundingClientRect().height)}printLabels({i:t,j:e,values:s,ttItems:i,shared:a,e:o}){let r=this.w,{xVal:n,zVal:h,xAxisTTVal:l}=s,c=r.seriesData.series.length,d=e!==null&&r.config.plotOptions.bar.distributed?r.globals.colors[e]:r.globals.colors[t];for(let f=0;f<c;f++){let g=r.config.tooltip.inverseOrder?c-1-f:f,p=this.computeSeriesRow({i:t,j:e,t:f,tIndex:g,shared:a,e:o,basePColor:d});this.DOMHandling({i:t,t:g,j:e,ttItems:i,values:{val:p.val,goalVals:p.goalVals,xVal:n,xAxisTTVal:l,zVal:h},seriesName:p.seriesName,shared:a,pColor:p.pColor})}}computeSeriesRow({i:t,j:e,tIndex:s,shared:i,e:a,basePColor:o}){let r=this.w,n=this.getFormatters(t),h=o,l,c=[],d=r.config.chart.type==="treemap"?n.yLbTitleFormatter(String(r.config.series[t].data[e].x),{series:r.seriesData.series,seriesIndex:t,dataPointIndex:e,w:r}):this.getSeriesName({fn:n.yLbTitleFormatter,index:t,seriesIndex:t,j:e});return r.globals.axisCharts&&(i?(n=this.getFormatters(s),d=this.getSeriesName({fn:n.yLbTitleFormatter,index:s,seriesIndex:t,j:e}),h=r.globals.colors[s],l=this.formatYValue(n,s,e),c=this.formatGoalVals(n,s,e)):(h=this.resolvePatternColor(a,h),l=this.formatYValue(n,t,e),c=this.formatGoalVals(n,t,e))),e===null&&(l=n.yLbFormatter(r.seriesData.series[t],W(Y({},r),{seriesIndex:t,dataPointIndex:t}))),{seriesName:d,val:l,goalVals:c,pColor:h}}formatYValue(t,e,s){var i,a,o,r;let n=this.w;return n.axisFlags.isRangeData?t.yLbFormatter((a=(i=n.rangeData.seriesRangeStart)==null?void 0:i[e])==null?void 0:a[s],{series:n.rangeData.seriesRangeStart,seriesIndex:e,dataPointIndex:s,w:n})+" - "+t.yLbFormatter((r=(o=n.rangeData.seriesRangeEnd)==null?void 0:o[e])==null?void 0:r[s],{series:n.rangeData.seriesRangeEnd,seriesIndex:e,dataPointIndex:s,w:n}):t.yLbFormatter(n.seriesData.series[e][s],{series:n.seriesData.series,seriesIndex:e,dataPointIndex:s,w:n})}formatGoalVals(t,e,s){var i;let a=this.w,o=(i=a.seriesData.seriesGoals[e])==null?void 0:i[s];return Array.isArray(o)?o.map(r=>({attrs:r,val:t.yLbFormatter(r.value,{seriesIndex:e,dataPointIndex:s,w:a})})):[]}resolvePatternColor(t,e){var s,i,a;let o=this.w,r=(s=t?.target)==null?void 0:s.getAttribute("fill");if(!r)return e;if(r.indexOf("url")===-1)return r;if(r.indexOf("Pattern")===-1)return e;let n=o.dom.baseEl.querySelector(r.substr(4).slice(0,-1));return(a=(i=n?.childNodes[0])==null?void 0:i.getAttribute("stroke"))!=null?a:e}getFormatters(t){let e=this.w,s=e.formatters.yLabelFormatters[t],i;return e.formatters.ttVal!==void 0?Array.isArray(e.formatters.ttVal)?(s=e.formatters.ttVal[t]&&e.formatters.ttVal[t].formatter,i=e.formatters.ttVal[t]&&e.formatters.ttVal[t].title&&e.formatters.ttVal[t].title.formatter):(s=e.formatters.ttVal.formatter,typeof e.formatters.ttVal.title.formatter=="function"&&(i=e.formatters.ttVal.title.formatter)):i=e.config.tooltip.y.title.formatter,typeof s!="function"&&(e.formatters.yLabelFormatters[0]?s=e.formatters.yLabelFormatters[0]:s=function(a){return a}),typeof i!="function"&&(i=function(a){return a?a+": ":""}),{yLbFormatter:s,yLbTitleFormatter:i}}getSeriesName({fn:t,index:e,seriesIndex:s,j:i}){let a=this.w;return t(String(a.seriesData.seriesNames[e]),{series:a.seriesData.series,seriesIndex:s,dataPointIndex:i,w:a})}DOMHandling({t,j:e,ttItems:s,values:i,seriesName:a,shared:o,pColor:r}){let n=this.w,h=this.ttCtx,{val:l,goalVals:c,xVal:d,xAxisTTVal:f,zVal:g}=i,p=null;p=s[t].children,n.config.tooltip.fillSeriesColor&&(s[t].style.backgroundColor=r,p[0].style.display="none"),h.showTooltipTitle&&(h.tooltipTitle===null&&(h.tooltipTitle=n.dom.baseEl.querySelector(".apexcharts-tooltip-title")),h.tooltipTitle&&(h.tooltipTitle.innerHTML=d)),h.isXAxisTooltipEnabled&&h.xaxisTooltipText&&(h.xaxisTooltipText.innerHTML=f!==""?f:d);let u=s[t].querySelector(".apexcharts-tooltip-text-y-label");u&&(u.innerHTML=a||"");let b=s[t].querySelector(".apexcharts-tooltip-text-y-value");b&&(b.innerHTML=typeof l<"u"?l:""),p[0]&&p[0].classList.contains("apexcharts-tooltip-marker")&&(n.config.tooltip.marker.fillColors&&Array.isArray(n.config.tooltip.marker.fillColors)&&(r=n.config.tooltip.marker.fillColors[t]),n.config.tooltip.fillSeriesColor?p[0].style.backgroundColor=r:p[0].style.color=r),n.config.tooltip.marker.show||(p[0].style.display="none");let x=s[t].querySelector(".apexcharts-tooltip-text-goals-label"),y=s[t].querySelector(".apexcharts-tooltip-text-goals-value");if(c.length&&n.seriesData.seriesGoals[t]){let w=()=>{let A="<div>",v="<div>";c.forEach(C=>{A+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${C.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${C.attrs.name}</div>`,v+=`<div>${C.val}</div>`}),x.innerHTML=A+"</div>",y.innerHTML=v+"</div>"};o?n.seriesData.seriesGoals[t][e]&&Array.isArray(n.seriesData.seriesGoals[t][e])?w():(x.innerHTML="",y.innerHTML=""):w()}else x.innerHTML="",y.innerHTML="";if(g!==null){let w=s[t].querySelector(".apexcharts-tooltip-text-z-label");w.innerHTML=n.config.tooltip.z.title;let A=s[t].querySelector(".apexcharts-tooltip-text-z-value");A.innerHTML=typeof g<"u"?g:""}if(o&&p[0]){if(n.config.tooltip.hideEmptySeries){let w=s[t].querySelector(".apexcharts-tooltip-marker"),A=s[t].querySelector(".apexcharts-tooltip-text");parseFloat(l)==0?(w.style.display="none",A.style.display="none"):(w.style.display="block",A.style.display="block")}typeof l>"u"||l===null||n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||n.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(h.tConfig.enabledOnSeries)&&h.tConfig.enabledOnSeries.indexOf(t)===-1?p[0].parentNode.style.display="none":p[0].parentNode.style.display=n.config.tooltip.items.display}else Array.isArray(h.tConfig.enabledOnSeries)&&h.tConfig.enabledOnSeries.indexOf(t)===-1&&(p[0].parentNode.style.display="none")}toggleActiveInactiveSeries(t,e){let s=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");let i=s.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${e}`);if(i){let a=i;a.classList.add("apexcharts-active"),a.style.display=s.config.tooltip.items.display}}}getValuesToPrint({i:t,j:e}){var s,i,a,o,r,n,h,l;let c=this.w,d=c.seriesData.seriesX.map(w=>w.length>0?w:[]),f="",g="",p=null,u=null,b={series:c.seriesData.series,seriesIndex:t,dataPointIndex:e,w:c},x=c.formatters.ttZFormatter;if(e===null)u=c.seriesData.series[t];else if(c.axisFlags.isXNumeric&&c.config.chart.type!=="treemap"){if(f=d[t][e],d[t].length===0){let w=this.tooltipUtil.getFirstActiveXArray(d);f=d[w][e]}}else new Et(this.w).isFormatXY()?f=typeof c.config.series[t].data[e]<"u"?c.config.series[t].data[e].x:"":f=typeof c.labelData.labels[e]<"u"?c.labelData.labels[e]:"";let y=f;return c.axisFlags.isXNumeric&&c.config.xaxis.type==="datetime"?f=new nt(this.w).xLabelFormat(c.formatters.ttKeyFormatter,y,y,{i:void 0,dateFormatter:new V(this.w).formatDate,w:this.w}):c.globals.isBarHorizontal?f=c.formatters.yLabelFormatters[0](y,b):f=(a=(i=(s=c.formatters).xLabelFormatter)==null?void 0:i.call(s,y,b))!=null?a:y,c.config.tooltip.x.formatter!==void 0&&(f=(n=(r=(o=c.formatters).ttKeyFormatter)==null?void 0:r.call(o,y,b))!=null?n:y),c.seriesData.seriesZ.length>0&&c.seriesData.seriesZ[t].length>0&&(p=x?.(c.seriesData.seriesZ[t][e],c)),typeof c.config.xaxis.tooltip.formatter=="function"?g=(l=(h=c.formatters).xaxisTooltipFormatter)==null?void 0:l.call(h,y,b):g=f,{val:Array.isArray(u)?u.join(" "):u,xVal:Array.isArray(f)?f.join(" "):f,xAxisTTVal:Array.isArray(g)?g.join(" "):g,zVal:p}}handleCustomTooltip({i:t,j:e,y1:s,y2:i,w:a}){let o=this.ttCtx.getElTooltip(),r=a.config.tooltip.custom;Array.isArray(r)&&r[t]&&(r=r[t]);let n=r({series:a.seriesData.series,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a});o&&(typeof n=="string"||typeof n=="number"?o.innerHTML=String(n):(n instanceof Element||typeof n.nodeName=="string")&&(o.innerHTML="",o.appendChild(n.cloneNode(!0))))}},Xt=class{constructor(t){this.ttCtx=t,this.w=t.w}moveXCrosshairs(t,e=null){let s=this.ttCtx,i=this.w,a=s.getElXCrosshairs(),o=t-s.xcrosshairsWidth/2,r=i.labelData.labels.slice().length;if(e!==null&&(o=i.layout.gridWidth/r*e),a!==null&&!i.globals.isBarHorizontal&&(a.setAttribute("x",String(o)),a.setAttribute("x1",String(o)),a.setAttribute("x2",String(o)),a.setAttribute("y2",String(i.layout.gridHeight)),a.classList.add("apexcharts-active")),o<0&&(o=0),o>i.layout.gridWidth&&(o=i.layout.gridWidth),s.isXAxisTooltipEnabled){let n=o;(i.config.xaxis.crosshairs.width==="tickWidth"||i.config.xaxis.crosshairs.width==="barWidth")&&(n=o+s.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}moveYCrosshairs(t){let e=this.ttCtx;e.ycrosshairs!==null&&L.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&L.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}moveXAxisTooltip(t){var e,s;let i=this.w,a=this.ttCtx;if(a.xaxisTooltip!==null&&a.xcrosshairsWidth!==0){a.xaxisTooltip.classList.add("apexcharts-active");let o=a.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.layout.translateY+5+i.config.xaxis.offsetY,n=a.xaxisTooltip.getBoundingClientRect().width;if(t=t-n/2,!isNaN(t)){t=t+i.layout.translateX;let l=new L(this.w).getTextRects((s=(e=a.xaxisTooltipText)==null?void 0:e.innerHTML)!=null?s:"",i.config.xaxis.labels.style.fontSize);a.xaxisTooltipText&&(a.xaxisTooltipText.style.minWidth=l.width+"px"),a.xaxisTooltip.style.left=t+"px",a.xaxisTooltip.style.top=o+"px"}}}moveYAxisTooltip(t){var e,s;let i=this.w,a=this.ttCtx;a.yaxisTTEls===null&&(a.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);let o=parseInt((s=(e=a.ycrosshairsHidden)==null?void 0:e.getAttribute("y1"))!=null?s:"0",10),r=i.layout.translateY+o;if(a.yaxisTTEls){let n=a.yaxisTTEls[t].getBoundingClientRect(),h=n.height,l,c=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),d=i.dom.elWrap.getBoundingClientRect();if(c){let f=c.getBoundingClientRect();f.width>0&&(l=f.left+f.width/2-d.left-n.width/2)}l==null&&(l=i.config.yaxis[t].opposite?i.globals.translateYAxisX[t]+4:i.globals.translateYAxisX[t]-n.width-4),r=r-h/2,i.globals.ignoreYAxisIndexes.indexOf(t)===-1&&r>0&&r<i.layout.gridHeight?(a.yaxisTTEls[t].classList.add("apexcharts-active"),a.yaxisTTEls[t].style.top=r+"px",a.yaxisTTEls[t].style.left=l+i.config.yaxis[t].tooltip.offsetX+"px"):a.yaxisTTEls[t].classList.remove("apexcharts-active")}}moveTooltip(t,e,s=null){let a=this.ttCtx.getElTooltip();if(!a)return;let o=this.computeTooltipPosition(t,e,s);o!==null&&this.applyTooltipPosition(a,o)}computeTooltipPosition(t,e,s=null){var i,a,o,r,n,h,l;let c=this.w,d=this.ttCtx,f=d.tooltipRect,g=!!c.config.tooltip.arrow,p=s!==null?parseFloat(String(s)):1,u=f.ttHeight||0,b=f.ttWidth||0,x=parseFloat(String(t)),y=parseFloat(String(e));if(isNaN(x))return null;let w=x+p+5,A=y+c.layout.translateY,v=g?A-u/2+p/2:y+p/2,C="right";if(w>c.layout.gridWidth/2&&(w=w-b-p-10,C="left"),w>c.layout.gridWidth-b-10&&(w=c.layout.gridWidth-b),w<-20&&(w=-20),c.config.tooltip.followCursor){let D=d.getElGrid();if(!D)return null;let E=D.getBoundingClientRect();w=d.e.clientX-E.left,w>c.layout.gridWidth/2?(w=w-b,C="left"):C="right",v=d.e.clientY+c.layout.translateY-E.top,v>c.layout.gridHeight/2&&(v=v-u)}else if(!c.globals.isBarHorizontal)if(g){let D=c.layout.translateY,E=c.layout.translateY+c.layout.gridHeight;v+u>E&&(v=E-u),v<D&&(v=D)}else u/2+v>c.layout.gridHeight&&(v=c.layout.gridHeight-u+c.layout.translateY);if(isNaN(w))return null;w=w+c.layout.translateX;let k=(a=(i=c.config)==null?void 0:i.chart)==null?void 0:a.accessibility;if(k?.enabled&&((r=(o=k?.keyboard)==null?void 0:o.navigation)!=null&&r.enabled)&&((l=(h=(n=c.dom)==null?void 0:n.baseEl)==null?void 0:h.querySelector)!=null&&l.call(h,".apexcharts-keyboard-focused"))){let D=g?A:y,E=(p||1)+12,_=v,M=v+u;!isNaN(D)&&u>0&&_<D+E&&M>D-E&&(v=D-u-E,v<0&&(v=D+E))}let T=null;if(g&&u>0){let D=A-v,E=10,_=u-10;T=Math.max(E,Math.min(_,D))}return{x:w,y:v,placement:C,arrowY:T}}applyTooltipPosition(t,e){if(!t)return;let s=t.dataset.positioned!=="true";s&&(t.style.transitionProperty="none"),t.style.left=e.x+"px",t.style.top=e.y+"px",e.placement&&(t.dataset.placement=e.placement),e.arrowY!=null&&t.style.setProperty("--apx-tt-arrow-y",e.arrowY+"px"),e.arrowX!=null&&t.style.setProperty("--apx-tt-arrow-x",e.arrowX+"px"),s&&(t.offsetWidth,t.dataset.positioned="true",requestAnimationFrame(()=>{t.style.transitionProperty=""}))}moveMarkers(t,e){var s;let i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0){let o=i.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${t}'] .apexcharts-marker`);for(let r=0;r<o.length;r++)parseInt((s=o[r].getAttribute("rel"))!=null?s:"0",10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,o[r]))}else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}moveDynamicPointOnHover(t,e){var s,i,a,o,r;let n=this.w,h=this.ttCtx,l=0,c=0,d=new L(this.w),f=n.globals.pointsArray,g=h.tooltipUtil.getHoverMarkerSize(e),p=n.config.series[e].type;if(p&&(p==="column"||p==="candlestick"||p==="boxPlot"))return;l=(i=(s=f[e])==null?void 0:s[t])==null?void 0:i[0],c=((o=(a=f[e])==null?void 0:a[t])==null?void 0:o[1])||0;let u=n.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers path`);if(u&&c<n.layout.gridHeight&&c>0){let b=(r=u.getAttribute("shape"))!=null?r:"circle",x=d.getMarkerPath(l,c,b,g*1.5);u.setAttribute("d",x)}this.moveXCrosshairs(l),h.fixedTooltip||this.moveTooltip(l,c,g)}moveDynamicPointsOnHover(t){var e,s;let i=this.ttCtx,a=i.w,o=0,r=0,n=0,h=a.globals.pointsArray,l=new st(this.w),c=new L(this.w);n=l.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);let d=i.tooltipUtil.getHoverMarkerSize(n);if((e=h[n])!=null&&e[t]&&(o=h[n][t][0],r=h[n][t][1]),isNaN(o))return;let f=i.tooltipUtil.getAllMarkers();if(f.length)for(let g=0;g<a.seriesData.series.length;g++){let p=h[g];if(a.globals.comboCharts&&typeof p>"u"&&f.splice(g,0,null),p&&p.length){let u=h[g][t][1],b;f[g].setAttribute("cx",o);let x=(s=f[g].getAttribute("shape"))!=null?s:"circle";if(a.config.chart.type==="rangeArea"&&!a.globals.comboCharts){let y=t+a.seriesData.series[g].length;b=h[g][y][1];let w=Math.abs(u-b)/2;u=u-w}if(u!==null&&!isNaN(u)&&u<a.layout.gridHeight+d&&u+d>0){let y=c.getMarkerPath(o,u,x,d);f[g].setAttribute("d",y)}else f[g].setAttribute("d","")}}this.moveXCrosshairs(o),i.fixedTooltip||this.moveTooltip(o,r||a.layout.gridHeight,d)}moveStickyTooltipOverBars(t,e){var s,i,a;let o=this.w,r=this.ttCtx,n=o.globals.columnSeries?o.globals.columnSeries.length:o.seriesData.series.length;o.config.chart.stacked&&(n=o.globals.barGroups.length);let h=n>=2&&n%2===0?Math.floor(n/2):Math.floor(n/2)+1;o.globals.isBarHorizontal&&(h=new st(this.w).getActiveConfigSeriesIndex("desc")+1);let l=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-candlestick-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-rangebar-series .apexcharts-series[rel='${h}'] path[j='${t}']`);!l&&typeof e=="number"&&(l=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],
|
|
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],
|
|
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],
|
|
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`));let c=l?parseFloat((s=l.getAttribute("cx"))!=null?s:"0"):0,d=l?parseFloat((i=l.getAttribute("cy"))!=null?i:"0"):0,f=l?parseFloat((a=l.getAttribute("barWidth"))!=null?a:"0"):0,g=r.getElGrid();if(!g)return;let p=g.getBoundingClientRect(),u=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));if(o.axisFlags.isXNumeric){if(l&&!u){let b=this._datapointCenterXFromBars(t,p);b!=null?c=b:c=c-(n%2!==0?f/2:0)}l&&u&&(c=c-f/2)}else o.globals.isBarHorizontal||(c=r.xAxisTicksPositions[t-1]+r.dataPointsDividedWidth/2,isNaN(c)&&(c=r.xAxisTicksPositions[t]-r.dataPointsDividedWidth/2));if(o.globals.isBarHorizontal?d=d-r.tooltipRect.ttHeight:o.config.tooltip.followCursor?d=r.e.clientY-p.top-r.tooltipRect.ttHeight/2:d+r.tooltipRect.ttHeight+15>o.layout.gridHeight&&(d=o.layout.gridHeight),o.globals.isBarHorizontal||this.moveXCrosshairs(c),!r.fixedTooltip){if(o.globals.isBarHorizontal&&!o.config.tooltip.followCursor&&this.placeHorizontalSharedTooltip(t))return;this.moveTooltip(c,d||o.layout.gridHeight)}}_datapointCenterXFromBars(t,e){var s,i;let o=this.w.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}']`);if(!o.length)return null;let r=1/0,n=-1/0;for(let h of o){let l=h.parentNode;if((i=(s=l?.classList)==null?void 0:s.contains)!=null&&i.call(s,"apexcharts-series-collapsed"))continue;let c=h.getBoundingClientRect();c.width===0&&c.height===0||(c.left<r&&(r=c.left),c.right>n&&(n=c.right))}return isFinite(r)?(r+n)/2-e.left:null}placeHorizontalSharedTooltip(t){var e,s;let i=this.w,a=this.ttCtx,o=a.getElTooltip();if(!o)return!1;let r=a.getElGrid();if(!r)return!1;let n=r.getBoundingClientRect(),h=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}'],.apexcharts-boxPlot-series path[j='${t}']`);if(!h.length)return!1;let l=1/0,c=-1/0,d=1/0,f=-1/0;for(let _ of h){let M=_.parentNode;if((s=(e=M?.classList)==null?void 0:e.contains)!=null&&s.call(e,"apexcharts-series-collapsed"))continue;let X=_.getBoundingClientRect();X.width===0&&X.height===0||(X.left<l&&(l=X.left),X.right>c&&(c=X.right),X.top<d&&(d=X.top),X.bottom>f&&(f=X.bottom))}if(!isFinite(l))return!1;let g=a.tooltipRect.ttWidth||0,p=a.tooltipRect.ttHeight||0,u=7,b=(l+c)/2-n.left+i.layout.translateX,x=d-n.top+i.layout.translateY,y=f-n.top+i.layout.translateY,w=i.layout.translateY,A=i.layout.translateY+i.layout.gridHeight,v=i.layout.translateX,C=i.layout.translateX+i.layout.gridWidth,k="top",T=x-p-u;if(T<w){let _=y+u;_+p<=A&&(k="bottom",T=_)}let D=b-g/2;D<v&&(D=v),D+g>C&&(D=C-g);let E=Math.max(10,Math.min(g-10,b-D));return this.applyTooltipPosition(o,{x:D,y:T,placement:k,arrowY:null,arrowX:E}),!0}};function rs(m){let t=e=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${e}</svg>`;switch(m){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"/>')}}var fe=class{constructor(t){this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new Xt(t)}drawDynamicPoints(){let t=this.w,e=new L(this.w),s=new bt(this.w,this.ctx),i=[...t.dom.baseEl.querySelectorAll(".apexcharts-series")];t.config.chart.stacked&&i.sort((a,o)=>parseFloat(a.getAttribute("data:realIndex"))-parseFloat(o.getAttribute("data:realIndex")));for(let a=0;a<i.length;a++){let o=i[a].querySelector(".apexcharts-series-markers-wrap");if(o!==null){let r=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;(t.config.chart.type==="line"||t.config.chart.type==="area")&&!t.globals.comboCharts&&!t.config.tooltip.intersect&&(r+=" no-pointer-events");let n=s.getMarkerConfig({cssClass:r,seriesIndex:Number(o.getAttribute("data:realIndex"))}),h=e.drawMarker(0,0,n);h.node.setAttribute("default-marker-size",0);let l=F.createElementNS(B,"g");l.classList.add("apexcharts-series-markers"),l.appendChild(h.node),o.appendChild(l)}}}enlargeCurrentPoint(t,e,s=null,i=null){let a=this.w;a.config.chart.type!=="bubble"&&this.newPointSize(t,e);let o=e.getAttribute("cx"),r=e.getAttribute("cy");if(s!==null&&i!==null&&(o=s,r=i),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(a.config.chart.type==="radar"){let n=this.ttCtx.getElGrid();if(!n)return;let h=n.getBoundingClientRect();o=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(o,r,a.config.markers.hover.size)}}enlargePoints(t){var e,s;let i=this.w,a=this,o=this.ttCtx,r=t,n=i.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),h=i.config.markers.hover.size;for(let l=0;l<n.length;l++){let c=n[l].getAttribute("rel"),d=n[l].getAttribute("index");if(h===void 0&&(h=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),r===parseInt(c??"0",10)){a.newPointSize(r,n[l]);let f=(e=n[l].getAttribute("cx"))!=null?e:"0",g=(s=n[l].getAttribute("cy"))!=null?s:"0";a.tooltipPosition.moveXCrosshairs(parseFloat(f)),o.fixedTooltip||a.tooltipPosition.moveTooltip(parseFloat(f),parseFloat(g),h)}else a.oldPointSize(n[l])}}newPointSize(t,e){let s=this.w,i=s.config.markers.hover.size,a=t===0?e.parentNode.firstChild:e.parentNode.lastChild;if(a.getAttribute("default-marker-size")!=="0"){let o=parseInt(a.getAttribute("index"),10);i===void 0&&(i=s.globals.markers.size[o]+s.config.markers.hover.sizeOffset),i<0&&(i=0);let r=this.ttCtx.tooltipUtil.getPathFromPoint(e,i);e.setAttribute("d",r)}}oldPointSize(t){let e=parseFloat(t.getAttribute("default-marker-size")),s=this.ttCtx.tooltipUtil.getPathFromPoint(t,e);t.setAttribute("d",s)}resetPointsSize(){var t;let s=this.w.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");for(let i=0;i<s.length;i++){let a=parseFloat((t=s[i].getAttribute("default-marker-size"))!=null?t:"0");if(S.isNumber(a)&&a>0){let o=this.ttCtx.tooltipUtil.getPathFromPoint(s[i],a);s[i].setAttribute("d",o)}else s[i].setAttribute("d","M0,0")}}},ge=class{constructor(t){this.w=t.w;let e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.config.chart.type==="rangeBar"&&e.config.plotOptions.bar.rangeBarGroupRows}getAttr(t,e){var s;return parseFloat((s=t.target.getAttribute(e))!=null?s:"")}handleHeatTreeTooltip({e:t,opt:e,x:s,y:i,type:a}){var o,r;let n=this.ttCtx,h=this.w;if(t.target.classList.contains(`apexcharts-${a}-rect`)){let l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),f=this.getAttr(t,"cy"),g=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(n.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:l,j:c,shared:!1,e:t}),h.interact.capturedSeriesIndex=l,h.interact.capturedDataPointIndex=c,s=d+n.tooltipRect.ttWidth/2+g,i=f+n.tooltipRect.ttHeight/2-p/2,n.tooltipPosition.moveXCrosshairs(d+g/2),s>h.layout.gridWidth/2&&(s=d-n.tooltipRect.ttWidth/2+g),n.w.config.tooltip.followCursor){let u=h.dom.elWrap.getBoundingClientRect();s=((o=h.interact.clientX)!=null?o:0)-u.left-(s>h.layout.gridWidth/2?n.tooltipRect.ttWidth:0),i=((r=h.interact.clientY)!=null?r:0)-u.top-(i>h.layout.gridHeight/2?n.tooltipRect.ttHeight:0)}}return{x:s,y:i}}handleMarkerTooltip({e:t,opt:e,x:s,y:i}){let a=this.w,o=this.ttCtx,r,n;if(t.target.classList.contains("apexcharts-marker")){let h=parseInt(e.paths.getAttribute("cx"),10),l=parseInt(e.paths.getAttribute("cy"),10),c=parseFloat(e.paths.getAttribute("val"));if(n=parseInt(e.paths.getAttribute("rel"),10),r=parseInt(e.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,o.intersect){let f=S.findAncestor(e.paths,"apexcharts-series");f&&(r=parseInt(f.getAttribute("data:realIndex"),10))}o.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:r,j:n,shared:o.showOnIntersect?!1:a.config.tooltip.shared,e:t}),t.type==="mouseup"&&o.markerClick(t,r,n),a.interact.capturedSeriesIndex=r,a.interact.capturedDataPointIndex=n;let d=!!a.config.tooltip.arrow;if(s=h,d?i=l:(i=l+a.layout.translateY-o.tooltipRect.ttHeight*1.4,c<0&&(i=l)),o.w.config.tooltip.followCursor){let f=o.getElGrid();if(!f)return{x:s,y:i};let g=f.getBoundingClientRect();i=o.e.clientY+a.layout.translateY-g.top}o.marker.enlargeCurrentPoint(n,e.paths,s,i)}return{x:s,y:i}}handleBarTooltip({e:t,opt:e}){var s,i,a;let o=this.w,r=this.ttCtx,n=r.getElTooltip(),h=0,l=0,c=0,d=0,f,g=this.getBarTooltipXY({e:t,opt:e});if(g.j===null&&g.barHeight===0&&g.barWidth===0)return;d=g.i;let p=g.j;if(o.interact.capturedSeriesIndex=d,o.interact.capturedDataPointIndex=p!==null?p:o.interact.capturedDataPointIndex,o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!o.config.tooltip.shared?(l=g.x,c=g.y,f=Array.isArray(o.config.stroke.width)?o.config.stroke.width[d]:o.config.stroke.width,h=l):!o.globals.comboCharts&&!o.config.tooltip.shared&&(h=h/2),isNaN(c)&&(c=o.globals.svgHeight-r.tooltipRect.ttHeight),l+r.tooltipRect.ttWidth>o.layout.gridWidth?l=l-r.tooltipRect.ttWidth:l<0&&(l=0),!(r.w.config.tooltip.followCursor&&!r.getElGrid())&&(r.tooltip===null&&(r.tooltip=o.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(h+f/2):r.tooltipPosition.moveXCrosshairs(h)),!r.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(c=c+o.layout.translateY-r.tooltipRect.ttHeight/2,n))){let u=r.tooltipRect.ttWidth||0,b=r.tooltipRect.ttHeight||0,x=!!o.config.tooltip.arrow,{barAnchorXInGrid:y,barAnchorYInGrid:w,barRectInGrid:A}=g,v=7,C=(s=r.getElGrid())==null?void 0:s.getBoundingClientRect(),k=o.dom.elWrap.getBoundingClientRect(),T=C?C.left-k.left:o.layout.translateX,D,E=null,_=null,M=l+T,X=c;if(x&&o.globals.isBarHorizontal&&A!=null){let N=o.layout.translateY,O=o.layout.translateY+o.layout.gridHeight,H=T,I=T+o.layout.gridWidth,G=(A.left+A.right)/2+T,z=A.top+o.layout.translateY,Z=A.bottom+o.layout.translateY,it=z-b-v;if(D="top",it<N){let ft=Z+v;ft+b<=O&&(D="bottom",it=ft)}X=it,M=G-u/2,M<H&&(M=H),M+u>I&&(M=I-u),_=Math.max(10,Math.min(u-10,G-M))}else if(x&&y!=null&&w!=null){let N=y+T,O=T+o.layout.gridWidth/2,H=((i=A?.left)!=null?i:y)+T,I=((a=A?.right)!=null?a:y)+T;if(N<O?(D="right",M=I+v):(D="left",M=H-u-v),A){X=(A.top+A.bottom)/2+o.layout.translateY-b/2;let z=o.layout.translateY,Z=o.layout.translateY+o.layout.gridHeight;X<z&&(X=z),X+b>Z&&(X=Z-b)}if(b>0&&A){let G=(A.top+A.bottom)/2+o.layout.translateY;E=Math.max(10,Math.min(b-10,G-X))}}r.tooltipPosition.applyTooltipPosition(n,{x:M,y:X,placement:D,arrowY:E,arrowX:_})}}getBarTooltipXY({e:t,opt:e}){let s=this.w,i=null,a=this.ttCtx,o=0,r=0,n=0,h=0,l=0,c=null,d=null,f=null,g=null,p=null,u=t.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){let b=t.target,x=b.getBoundingClientRect(),y=e.elGrid.getBoundingClientRect(),w=x.height;l=x.height;let A=x.width,v=parseInt(b.getAttribute("cx"),10),C=parseInt(b.getAttribute("cy"),10);c=v,d=C,h=parseFloat(b.getAttribute("barWidth"));let k=x.left-y.left,T=x.top-y.top,D=k+A/2,E=T+w/2;f=D,g=s.globals.isBarHorizontal?E:T,p={left:k,top:T,right:k+A,bottom:T+w};let _=t.type==="touchmove"?t.touches[0].clientX:t.clientX;i=parseInt(b.getAttribute("j"),10),o=parseInt(b.parentNode.getAttribute("rel"),10)-1;let M=b.getAttribute("data-range-y1"),X=b.getAttribute("data-range-y2");s.globals.comboCharts&&(o=parseInt(b.parentNode.getAttribute("data:realIndex"),10));let N=H=>(s.axisFlags.isXNumeric?H=v-A/2:this.isVerticalGroupedRangeBar?H=v+A/2:H=v-a.dataPointsDividedWidth+A/2,H),O=()=>C-a.dataPointsDividedHeight+w/2-a.tooltipRect.ttHeight/2;a.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:o,j:i,y1:M?parseInt(M,10):null,y2:X?parseInt(X,10):null,shared:a.showOnIntersect?!1:s.config.tooltip.shared,e:t}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(r=_-y.left+15,n=O()):(r=N(r),n=t.clientY-y.top-a.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?(r=v,a.xyRatios&&r<a.xyRatios.baseLineInvertedY&&(r=v-a.tooltipRect.ttWidth),n=O()):(r=N(r),n=C)}return{x:r,y:n,barHeight:l,barWidth:h,i:o,j:i,barCx:c,barCy:d,barAnchorXInGrid:f,barAnchorYInGrid:g,barRectInGrid:p}}},pe=class{constructor(t){this.w=t.w,this.ttCtx=t}drawXaxisTooltip(){let t=this.w,e=this.ttCtx,s=t.config.xaxis.position==="bottom";e.xaxisOffY=s?t.layout.gridHeight+1:-t.layout.xAxisHeight-t.config.xaxis.axisTicks.height+3;let i=s?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=t.dom.elWrap;e.isXAxisTooltipEnabled&&t.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(e.xaxisTooltip=F.createElementNS("http://www.w3.org/1999/xhtml","div"),e.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+t.config.tooltip.theme),a.appendChild(e.xaxisTooltip),e.xaxisTooltipText=F.createElementNS("http://www.w3.org/1999/xhtml","div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}drawYaxisTooltip(){let t=this.w,e=this.ttCtx;for(let s=0;s<t.config.yaxis.length;s++){let i=t.config.yaxis[s].opposite||t.config.yaxis[s].crosshairs.opposite;e.yaxisOffX=i?t.layout.gridWidth+1:1;let a=i?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${s} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${s} apexcharts-yaxistooltip-left`,o=t.dom.elWrap;t.dom.baseEl.querySelector(`.apexcharts-yaxistooltip apexcharts-yaxistooltip-${s}`)===null&&(e.yaxisTooltip=F.createElementNS("http://www.w3.org/1999/xhtml","div"),e.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),o.appendChild(e.yaxisTooltip),s===0&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[s]=F.createElementNS("http://www.w3.org/1999/xhtml","div"),e.yaxisTooltipText[s].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[s]))}}setXCrosshairWidth(){var t,e;let s=this.w,i=this.ttCtx,a=i.getElXCrosshairs();if(i.xcrosshairsWidth=parseInt(s.config.xaxis.crosshairs.width,10),s.globals.comboCharts){let o=s.dom.baseEl.querySelector(".apexcharts-bar-area");if(o!==null&&s.config.xaxis.crosshairs.width==="barWidth"){let r=parseFloat((e=o.getAttribute("barWidth"))!=null?e:"0");i.xcrosshairsWidth=r}else if(s.config.xaxis.crosshairs.width==="tickWidth"){let r=s.labelData.labels.length;i.xcrosshairsWidth=s.layout.gridWidth/r}}else if(s.config.xaxis.crosshairs.width==="tickWidth"){let o=s.labelData.labels.length;i.xcrosshairsWidth=s.layout.gridWidth/o}else if(s.config.xaxis.crosshairs.width==="barWidth"){let o=s.dom.baseEl.querySelector(".apexcharts-bar-area");if(o!==null){let r=parseFloat((t=o.getAttribute("barWidth"))!=null?t:"0");i.xcrosshairsWidth=r}else i.xcrosshairsWidth=1}s.globals.isBarHorizontal&&(i.xcrosshairsWidth=0),a!==null&&i.xcrosshairsWidth>0&&a.setAttribute("width",String(i.xcrosshairsWidth))}handleYCrosshair(){let t=this.w,e=this.ttCtx;e.ycrosshairs=t.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}drawYaxisTooltipText(t,e,s){let i=this.ttCtx,a=this.w,o=a.globals,r=o.seriesYAxisMap[t];if(i.yaxisTooltips[t]&&r.length>0){let n=a.formatters.yLabelFormatters[t],h=i.getElGrid();if(!h)return;let l=h.getBoundingClientRect(),c=r[0],d=0;s.yRatio.length>1&&(d=c);let f=(e-l.top)*s.yRatio[d],g=o.maxYArr[c]-o.minYArr[c],p=o.minYArr[c]+(g-f);a.config.yaxis[t].reversed&&(p=o.maxYArr[c]-(g-f)),i.tooltipPosition.moveYCrosshairs(e-l.top),i.yaxisTooltipText[t].innerHTML=n(p),i.tooltipPosition.moveYAxisTooltip(t)}}},ue=class{constructor(t,e){this.w=t,this.ctx=e,this.tConfig=t.config.tooltip,this.tooltipUtil=new Ft(this),this.tooltipLabels=new de(this),this.tooltipPosition=new Xt(this),this.marker=new fe(this),this.intersect=new ge(this),this.axesTooltip=new pe(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=!t.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 t=this.w,e=this.getElTooltip();e&&(this.updateDimensionCache(),typeof ResizeObserver<"u"&&!t.globals.resizeObserver&&(t.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),t.globals.resizeObserver.observe(e)))}updateDimensionCache(){let t=this.w,e=this.getElTooltip();if(!e)return;let s=e.getBoundingClientRect();t.globals.dimensionCache.tooltip={width:s.width,height:s.height,lastUpdate:Date.now()}}getCachedDimensions(){let t=this.w;if(t.globals.dimensionCache.tooltip){let s=t.globals.dimensionCache.tooltip;if(Date.now()-s.lastUpdate<1e3)return{ttWidth:s.width,ttHeight:s.height}}this.updateDimensionCache();let e=t.globals.dimensionCache.tooltip;return e?{ttWidth:e.width,ttHeight:e.height}:{ttWidth:0,ttHeight:0}}getElTooltip(t){return t||(t=this),t.w.dom.baseEl?t.w.dom.baseEl.querySelector(".apexcharts-tooltip"):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}getElGrid(){return this.w.dom.baseEl.querySelector(".apexcharts-grid")}drawTooltip(t){let e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(n=>!!(n.show&&n.tooltip.enabled&&e.globals.axisCharts)),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);let s=this.getElTooltip();s?.parentNode&&s.parentNode.removeChild(s),this.tooltipTitle=null;let i=F.createElementNS("http://www.w3.org/1999/xhtml","div");i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add(`apexcharts-theme-${this.tConfig.theme||"light"}`),this.tConfig.fillSeriesColor&&i.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&i.style.setProperty("--apx-tt-bg",this.tConfig.style.background);let a=this.tConfig.shared&&e.config.series.length>1&&!e.globals.isBarHorizontal;if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!a&&!this.tConfig.fillSeriesColor&&e.globals.axisCharts){let n=F.createElementNS("http://www.w3.org/1999/xhtml","div");n.classList.add("apexcharts-tooltip-arrow"),i.appendChild(n)}if(e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&(i.setAttribute("role","tooltip"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-hidden","true")),e.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();let n=new ht(this.w,this.ctx,void 0);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if((e.globals.comboCharts||this.tConfig.intersect||e.config.chart.type==="rangeBar")&&!this.tConfig.shared&&(this.showOnIntersect=!0),(e.config.markers.size===0||e.globals.markers.largestSize===0)&&this.marker.drawDynamicPoints(),e.globals.collapsedSeries.length===e.seriesData.series.length)return;this.dataPointsDividedHeight=e.layout.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.layout.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=F.createElementNS("http://www.w3.org/1999/xhtml","div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));let r=e.seriesData.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(this.showOnIntersect?r=1:r=e.seriesData.series.length),this.legendLabels=e.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(t){let e=this.w,s=[],i=this.getElTooltip();if(!i)return s;for(let a=0;a<t;a++){let o=F.createElementNS("http://www.w3.org/1999/xhtml","div");o.classList.add("apexcharts-tooltip-series-group",`apexcharts-tooltip-series-group-${a}`),o.style.order=String(e.config.tooltip.inverseOrder?t-a:a+1);let r=F.createElementNS("http://www.w3.org/1999/xhtml","span");r.classList.add("apexcharts-tooltip-marker"),e.config.tooltip.fillSeriesColor?r.style.backgroundColor=e.globals.colors[a]:r.style.color=e.globals.colors[a];let n=e.config.markers.shape,h=n;Array.isArray(n)&&(h=n[a]),r.setAttribute("shape",h),r.innerHTML=rs(h),o.appendChild(r);let l=F.createElementNS("http://www.w3.org/1999/xhtml","div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,l.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(c=>{let d=F.createElementNS("http://www.w3.org/1999/xhtml","div");d.classList.add(`apexcharts-tooltip-${c}-group`);let f=F.createElementNS("http://www.w3.org/1999/xhtml","span");f.classList.add(`apexcharts-tooltip-text-${c}-label`),d.appendChild(f);let g=F.createElementNS("http://www.w3.org/1999/xhtml","span");g.classList.add(`apexcharts-tooltip-text-${c}-value`),d.appendChild(g),l.appendChild(d)}),o.appendChild(l),i.appendChild(o),s.push(o)}return s}addSVGEvents(){let t=this.w,e=t.config.chart.type,s=this.getElTooltip();if(!s)return;let i=e==="bar"||e==="candlestick"||e==="boxPlot"||e==="rangeBar",a=e==="area"||e==="line"||e==="scatter"||e==="bubble"||e==="radar",o=t.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());let n=[],h=[],l={hoverArea:o,elGrid:r,tooltipEl:s,tooltipY:n,tooltipX:h,ttItems:this.ttItems},c;if(t.globals.axisCharts&&(a?c=t.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?c=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):(e==="heatmap"||e==="treemap")&&(c=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),c&&c.length))for(let f=0;f<c.length;f++)n.push(c[f].getAttribute("cy")),h.push(c[f].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],l);else if(i&&!t.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(l);else if(!t.globals.axisCharts||e==="heatmap"||e==="treemap"){let f=t.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(f,l)}if(this.showOnIntersect){let f=t.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,l),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(l)}}drawFixedTooltipRect(){let t=this.w,e=this.getElTooltip();if(!e)return{x:0,y:0,ttWidth:0,ttHeight:0};let s=e.getBoundingClientRect(),i=s.width+10,a=s.height+10,o=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(o=o+t.globals.svgWidth-i+10),n.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-a-10),this.tooltipPosition.applyTooltipPosition(e,{x:o,y:r}),{x:o,y:r,ttWidth:i,ttHeight:a}}addDatapointEventsListeners(t){let s=this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(s,t)}addPathsEventListeners(t,e){let s=this;for(let i=0;i<t.length;i++){let a={paths:t[i],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(r=>t[i].addEventListener(r,s.onSeriesHover.bind(s,a),{capture:!1,passive:!0}))}}onSeriesHover(t,e){let i=Date.now()-this.lastHoverTime;i>=20?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(t,e)},20-i))}seriesHover(t,e){this.lastHoverTime=Date.now();let s=[],i=this.w;i.config.chart.group&&(s=this.ctx.getGroupedCharts()),!(i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||i.globals.dataPoints===0))&&(s.length?s.forEach(a=>{let o=this.getElTooltip(a),r={paths:t.paths,tooltipEl:o,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===this.w.globals.minX&&a.w.globals.maxX===this.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}seriesHoverByContext({chartCtx:t,ttCtx:e,opt:s,e:i}){let a=t.w;if(!this.getElTooltip(t))return;let r=e.getCachedDimensions();e.tooltipRect={x:0,y:0,ttWidth:r.ttWidth,ttHeight:r.ttHeight},e.e=i,e.tooltipUtil.hasBars()&&!a.globals.comboCharts&&!e.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new st(t.w).toggleSeriesOnHover(i,i.target.parentNode),a.globals.axisCharts?e.axisChartsTooltips({e:i,opt:s,tooltipRect:e.tooltipRect}):e.nonAxisChartsTooltips({e:i,opt:s,tooltipRect:e.tooltipRect}),e.fixedTooltip&&e.drawFixedTooltipRect()}axisChartsTooltips({e:t,opt:e}){var s;let i=this.w,a,o,r=e.elGrid.getBoundingClientRect(),n=t.type==="touchmove"?t.touches[0].clientX:t.clientX,h=t.type==="touchmove"?t.touches[0].clientY:t.clientY;if(this.clientY=h,this.clientX=n,i.interact.capturedSeriesIndex=-1,i.interact.capturedDataPointIndex=-1,h<r.top||h>r.top+r.height){this.handleMouseOut(e);return}if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){let g=parseInt(e.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0){this.handleMouseOut(e);return}}let l=this.getElTooltip();if(!l)return;let c=this.getElXCrosshairs(),d=[];i.config.chart.group&&(d=this.ctx.getSyncedCharts());let f=i.globals.xyCharts||i.config.chart.type==="bar"&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if(t.type==="mousemove"||t.type==="touchmove"||t.type==="mouseup"){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length===i.seriesData.series.length)return;c!==null&&c.classList.add("apexcharts-active");let g=(s=this.yaxisTooltips)==null?void 0:s.filter(u=>u===!0),p=this.ycrosshairs;if(p!==null&&g?.length&&p.classList.add("apexcharts-active"),f&&!this.showOnIntersect||d.length>1)this.handleStickyTooltip(t,n,h,e);else if(i.config.chart.type==="heatmap"||i.config.chart.type==="treemap"){let u=this.intersect.handleHeatTreeTooltip({e:t,opt:e,x:a,y:o,type:i.config.chart.type});a=u.x,o=u.y,l.style.left=a+"px",l.style.top=o+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:t,opt:e}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e:t,opt:e,x:a,y:o});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let u=0;u<i.config.yaxis.length;u++)this.axesTooltip.drawYaxisTooltipText(u,h,this.xyRatios);i.dom.baseEl.classList.add("apexcharts-tooltip-active"),e.tooltipEl.classList.add("apexcharts-active"),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&e.tooltipEl.removeAttribute("aria-hidden")}else(t.type==="mouseout"||t.type==="touchend")&&this.handleMouseOut(e)}nonAxisChartsTooltips({e:t,opt:e,tooltipRect:s}){var i,a,o,r;let n=this.w,h=e.paths.getAttribute("rel"),l=this.getElTooltip();if(!l)return;let c=n.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){n.dom.baseEl.classList.add("apexcharts-tooltip-active"),l.classList.add("apexcharts-active"),n.config.chart.accessibility.enabled&&n.config.chart.accessibility.announcements.enabled&&l.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:parseInt(h,10)-1,shared:!1});let d,f,g=e.paths.querySelector("path[data\\:cx]")||e.paths;if(n.config.tooltip.intersect&&g.hasAttribute("data:cx")&&g.hasAttribute("data:cy")){let p=n.dom.Paper.node.getBoundingClientRect();d=p.left-c.left+parseFloat(g.getAttribute("data:cx"))-s.ttWidth/2,f=p.top-c.top+parseFloat(g.getAttribute("data:cy"))-s.ttHeight-10}else d=((i=n.interact.clientX)!=null?i:0)-c.left-s.ttWidth/2,f=((a=n.interact.clientY)!=null?a:0)-c.top-s.ttHeight-10;if(l.style.left=d+"px",l.style.top=f+"px",n.config.legend.tooltipHoverFormatter){let p=n.config.legend.tooltipHoverFormatter,u=h-1,b=(o=this.legendLabels)==null?void 0:o[u];if(!b)return;let x=b.getAttribute("data:default-text"),y=p(x,{seriesIndex:u,dataPointIndex:u,w:n});b.innerHTML=y}}else(t.type==="mouseout"||t.type==="touchend")&&(l.classList.remove("apexcharts-active"),n.dom.baseEl.classList.remove("apexcharts-tooltip-active"),n.config.legend.tooltipHoverFormatter&&((r=this.legendLabels)==null||r.forEach(d=>{let f=d.getAttribute("data:default-text");d.innerHTML=decodeURIComponent(f??"")})))}handleStickyTooltip(t,e,s,i){let a=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:e,clientY:s}),r=o.j,n=o.capturedSeries;n!==null&&a.globals.collapsedSeriesIndices.includes(n??-1)&&(n=null);let h=i.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>h.width){this.handleMouseOut(i);return}if(n!==null)this.handleStickyCapturedSeries(t,n??-1,i,r??0);else if(this.tooltipUtil.isXoverlap(r??0)||a.globals.isBarHorizontal){let l=a.seriesData.series.findIndex((c,d)=>!a.globals.collapsedSeriesIndices.includes(d));this.create(t,this,l,r??0,i.ttItems)}}handleStickyCapturedSeries(t,e,s,i){let a=this.w;if(!this.tConfig.shared&&a.seriesData.series[e][i]===null){this.handleMouseOut(s);return}if(typeof a.seriesData.series[e][i]<"u")this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,i,s.ttItems):this.create(t,this,e,i,s.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){let o=a.seriesData.series.findIndex((r,n)=>!a.globals.collapsedSeriesIndices.includes(n));this.create(t,this,o,i,s.ttItems)}}deactivateHoverFilter(){let t=this.w,e=new L(this.w,this.ctx),s=t.dom.Paper.find(".apexcharts-bar-area");for(let i=0;i<s.length;i++)e.pathMouseLeave(s[i],void 0)}handleMouseOut(t){var e,s;let i=this.w,a=this.getElXCrosshairs();i.dom.baseEl.classList.remove("apexcharts-tooltip-active"),t.tooltipEl.classList.remove("apexcharts-active"),delete t.tooltipEl.dataset.positioned,i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&t.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),i.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),a!==null&&a.classList.remove("apexcharts-active");let o=this.ycrosshairs;if(o!==null&&o.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&((e=this.xaxisTooltip)==null||e.classList.remove("apexcharts-active")),this.yaxisTooltips&&this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);for(let r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}i.config.legend.tooltipHoverFormatter&&((s=this.legendLabels)==null||s.forEach(r=>{let n=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(n??"")}))}markerClick(t,e,s){let i=this.w;typeof i.config.chart.events.markerClick=="function"&&i.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:s,w:i}])}create(t,e,s,i,a,o=null){var r,n,h,l,c,d,f,g,p,u,b,x,y,w,A,v,C,k,T;let D=this.w,E=e;t.type==="mouseup"&&this.markerClick(t,s,i),o===null&&(o=this.tConfig.shared);let _=this.tooltipUtil.hasMarkers(s),M=this.tooltipUtil.getElBars(),X=()=>{D.globals.markers.largestSize>0?E.marker.enlargePoints(i):E.tooltipPosition.moveDynamicPointsOnHover(i)};if(D.config.legend.tooltipHoverFormatter){let H=D.config.legend.tooltipHoverFormatter,I=Array.from((r=this.legendLabels)!=null?r:[]);I.forEach(G=>{let z=G.getAttribute("data:default-text");G.innerHTML=decodeURIComponent(z??"")});for(let G=0;G<I.length;G++){let z=I[G],Z=parseInt((n=z.getAttribute("i"))!=null?n:"",10),it=decodeURIComponent((h=z.getAttribute("data:default-text"))!=null?h:""),ft=H(it,{seriesIndex:o?Z:s,dataPointIndex:i,w:D});if(o)z.innerHTML=D.globals.collapsedSeriesIndices.indexOf(Z)<0?ft:it;else if(z.innerHTML=Z===s?ft:it,s===Z)break}}let N=D.rangeData,O=Y(Y({ttItems:a,i:s,j:i},((f=(d=(c=(l=N.seriesRange)==null?void 0:l[s])==null?void 0:c[i])==null?void 0:d.y[0])==null?void 0:f.y1)!==void 0&&{y1:(b=(u=(p=(g=N.seriesRange)==null?void 0:g[s])==null?void 0:p[i])==null?void 0:u.y[0])==null?void 0:b.y1}),((A=(w=(y=(x=N.seriesRange)==null?void 0:x[s])==null?void 0:y[i])==null?void 0:w.y[0])==null?void 0:A.y2)!==void 0&&{y2:(T=(k=(C=(v=N.seriesRange)==null?void 0:v[s])==null?void 0:C[i])==null?void 0:k.y[0])==null?void 0:T.y2});if(o){if(E.tooltipLabels.drawSeriesTexts(W(Y({},O),{shared:this.showOnIntersect?!1:this.tConfig.shared})),_)X();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...M]),this.barSeriesHeight>0)){let H=new L(this.w,this.ctx),I=D.dom.Paper.find(`.apexcharts-bar-area[j='${i}']`);this.deactivateHoverFilter(),E.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&X(),E.tooltipPosition.moveStickyTooltipOverBars(i,s);for(let z=0;z<I.length;z++)H.pathMouseEnter(I[z],void 0)}}else E.tooltipLabels.drawSeriesTexts(Y({shared:!1},O)),this.tooltipUtil.hasBars()&&E.tooltipPosition.moveStickyTooltipOverBars(i,s),_&&E.tooltipPosition.moveMarkers(s,i)}},$=class m{constructor(t){this.node=t,t&&(t.instance=this),this._listeners=[],this._filter=null}attr(t,e){if(typeof t=="string"&&e===void 0)return this.node.getAttribute(t);let s=typeof t=="string"?{[t]:e}:t;for(let i in s){let a=s[i];a===null?this.node.removeAttribute(i):a!==void 0&&(typeof a=="number"&&isNaN(a)&&(a=0),this.node.setAttribute(i,a))}if(this.node.nodeName==="text"&&s.x!=null){let i=this.node.querySelectorAll("tspan[data-newline]");for(let a=0;a<i.length;a++)i[a].setAttribute("x",s.x)}return this}css(t){for(let e in t)this.node.style[e]=t[e];return this}fill(t){return typeof t=="object"?this.attr(t):this.attr("fill",t)}stroke(t){return typeof t=="object"?(t.color!==void 0&&this.attr("stroke",t.color),t.width!==void 0&&this.attr("stroke-width",t.width),t.dasharray!==void 0&&this.attr("stroke-dasharray",t.dasharray),t.linecap!==void 0&&this.attr("stroke-linecap",t.linecap),t.opacity!==void 0&&this.attr("stroke-opacity",t.opacity),this):this.attr("stroke",t)}size(t,e){return this.attr({width:t,height:e})}move(t,e){return this.attr({x:t,y:e})}center(t,e){if(this.node.nodeName==="g"){let s=this.bbox(),i=t-(s.x+s.width/2),a=e-(s.y+s.height/2);return this.attr("transform",`translate(${i}, ${a})`)}return this.attr({cx:t,cy:e})}add(t){return this.node.appendChild(t.node||t),this}addTo(t){return(t.node||t).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(t){return Array.from(this.node.querySelectorAll(t)).map(e=>e.instance||new m(e))}findOne(t){let e=this.node.querySelector(t);return e?e.instance||new m(e):null}on(t,e){let s=t.split(".")[0];return this._listeners.push({event:t,eventType:s,handler:e}),this.node.addEventListener(s,e),this}off(t,e){if(!t&&!e)this._listeners.forEach(s=>{this.node.removeEventListener(s.eventType,s.handler)}),this._listeners=[];else if(t&&!e){let s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType===s?(this.node.removeEventListener(i.eventType,i.handler),!1):!0)}else{let s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType===s&&i.handler===e?(this.node.removeEventListener(i.eventType,i.handler),!1):!0)}return this}each(t,e){return Array.from(this.node.children).forEach(i=>{let a=i.instance||new m(i);t.call(a),e&&a.each(t,e)}),this}removeClass(t){return t==="*"?this.node.removeAttribute("class"):this.node.classList.remove(t),this}children(){return Array.from(this.node.childNodes).filter(t=>t.nodeType===1).map(t=>t.instance||new m(t))}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{}return{x:0,y:0,width:0,height:0}}tspan(t){let e=F.createElementNS("http://www.w3.org/2000/svg","tspan");return e.textContent=t,this.node.appendChild(e),new m(e)}plot(t){return typeof t=="string"&&this.attr("d",t),this}animate(){throw new Error("Animation module not loaded")}filterWith(){throw new Error("Filter module not loaded")}unfilter(t){return this._filter&&(this.node.removeAttribute("filter"),t&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this}filterer(){return this._filter}},os=0,xe=class extends ${constructor(t,e,s){let i=e==="radial"?"radialGradient":"linearGradient",a=F.createElementNS(B,i);super(a),this._id="SvgjsGradient"+ ++os,this.attr("id",this._id),typeof s=="function"&&s(new me(this));let o=t.node.querySelector("defs");o||(o=F.createElementNS(B,"defs"),t.node.appendChild(o)),o.appendChild(this.node)}stop(t,e,s){let i=F.createElementNS(B,"stop");return i.setAttribute("offset",t),i.setAttribute("stop-color",e),s!==void 0&&i.setAttribute("stop-opacity",String(s)),this.node.appendChild(i),this}from(t,e){return this.attr({x1:t,y1:e})}to(t,e){return this.attr({x2:t,y2:e})}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}},me=class{constructor(t){this.gradient=t}stop(t,e,s){return this.gradient.stop(t,e,s),this}},ns=0,be=class extends ${constructor(t,e,s,i){let a=F.createElementNS(B,"pattern");if(super(a),this._id="SvgjsPattern"+ ++ns,this.attr({id:this._id,width:e,height:s,patternUnits:"userSpaceOnUse"}),typeof i=="function"){let r=new St(this.node);i(r)}let o=t.node.querySelector("defs");o||(o=F.createElementNS(B,"defs"),t.node.appendChild(o)),o.appendChild(this.node)}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}},St=class m extends ${line(t,e,s,i){let a=this._make("line");return t!==void 0&&a.attr({x1:t,y1:e,x2:s,y2:i}),a}rect(t,e){let s=this._make("rect");return t!==void 0&&s.attr({width:t,height:e}),s}circle(t){let e=this._make("circle");return t!==void 0&&e.attr({r:t/2,cx:t/2,cy:t/2}),e}path(t){let e=this._make("path");return t&&e.attr("d",t),e}polygon(t){let e=this._make("polygon");return t&&e.attr("points",t),e}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(t){let e=F.createElementNS(B,"text");e.textContent=t;let s=new $(e);return this.node.appendChild(e),s}text(t){let e=F.createElementNS(B,"text"),s=new $(e);return this.node.appendChild(e),typeof t=="function"&&t(new ye(e)),s}image(t,e){let s=F.createElementNS(B,"image");s.setAttributeNS("http://www.w3.org/1999/xlink","href",t);let i=new $(s);if(this.node.appendChild(s),typeof e=="function"){let a=new Image;a.onload=function(){i.size(a.width,a.height),e.call(i,{width:a.width,height:a.height})},a.src=t}return i}gradient(t,e){return new xe(this,t,e)}pattern(t,e,s){return new be(this,t,e,s)}_make(t){let e=F.createElementNS(B,t);return this.node.appendChild(e),new $(e)}_makeContainer(t){let e=F.createElementNS(B,t);return this.node.appendChild(e),new m(e)}},ye=class{constructor(t){this.textNode=t}tspan(t){let e=F.createElementNS(B,"tspan");return e.textContent=t,this.textNode.appendChild(e),new we(e,this.textNode)}},we=class{constructor(t,e){this.node=t,this.textNode=e}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}},ls=0,ve=class extends ${constructor(){let t=F.createElementNS(B,"filter");super(t),this._id="SvgjsFilter"+ ++ls,this.attr("id",this._id)}size(t,e,s,i){return this.attr({width:t,height:e,x:s,y:i})}},Ae=class{constructor(t){this.filter=t}colorMatrix(t){return this._primitive("feColorMatrix",t)}offset(t){return this._primitive("feOffset",t)}gaussianBlur(t){return this._primitive("feGaussianBlur",t)}flood(t){return this._primitive("feFlood",t)}composite(t){return this._primitive("feComposite",t)}merge(t){let e=F.createElementNS(B,"feMerge");return t.forEach(s=>{let i=F.createElementNS(B,"feMergeNode");i.setAttribute("in",s),e.appendChild(i)}),this.filter.node.appendChild(e),new $(e)}_primitive(t,e){let s=F.createElementNS(B,t);for(let i in e)s.setAttribute(i,e[i]);return this.filter.node.appendChild(s),new $(s)}};function cs(m){m.prototype.filterWith=function(t){let e=new ve;this._filter=e;let s=this.node;for(;s&&s.nodeName!=="svg";)s=s.parentNode;if(s){let i=s.querySelector("defs");i||(i=F.createElementNS(B,"defs"),s.insertBefore(i,s.firstChild)),i.appendChild(e.node)}return t(new Ae(e)),this.attr("filter","url(#"+e._id+")"),this},m.prototype.unfilter=function(t){return this._filter&&(this.node.removeAttribute("filter"),t&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},m.prototype.filterer=function(){return this._filter}}function Le(m){if(!m||typeof m!="string")return[["M",0,0]];let t=[],e=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,s=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi,i,a=[],o=[];for(;(i=e.exec(m))!==null;)a.push(i[1]),o.push(i.index);for(let r=0;r<a.length;r++){let n=o[r]+a[r].length,h=r+1<o.length?o[r+1]:m.length,l=m.substring(n,h),c=[],d;for(s.lastIndex=0;(d=s.exec(l))!==null;)c.push(parseFloat(d[0]));let f=a[r].toUpperCase();if(f==="Z")t.push(["Z"]);else if(f==="M"||f==="L"||f==="T")for(let g=0;g<c.length;g+=2)t.push([f,c[g],c[g+1]]);else if(f==="H")for(let g=0;g<c.length;g++)t.push([f,c[g]]);else if(f==="V")for(let g=0;g<c.length;g++)t.push([f,c[g]]);else if(f==="C")for(let g=0;g<c.length;g+=6)t.push([f,c[g],c[g+1],c[g+2],c[g+3],c[g+4],c[g+5]]);else if(f==="S"||f==="Q")for(let g=0;g<c.length;g+=4)t.push([f,c[g],c[g+1],c[g+2],c[g+3]]);else if(f==="A")for(let g=0;g<c.length;g+=7)t.push([f,c[g],c[g+1],c[g+2],c[g+3],c[g+4],c[g+5],c[g+6]])}return t.length===0&&t.push(["M",0,0]),t}function Ee(m){let t=1/0,e=1/0,s=-1/0,i=-1/0;return m.forEach(a=>{for(let o=1;o<a.length;o+=2)if(o+1<=a.length){let r=a[o],n=a[o+1];typeof r=="number"&&typeof n=="number"&&(r<t&&(t=r),r>s&&(s=r),n<e&&(e=n),n>i&&(i=n))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:e,width:s-t,height:i-e}}function hs(m){return m.map(t=>t.join(" ")).join(" ")}function Fe(m){switch(m[0]){case"z":case"Z":m[0]="L",m[1]=this.start[0],m[2]=this.start[1];break;case"H":m[0]="L",m[2]=this.pos[1];break;case"V":m[0]="L",m[2]=m[1],m[1]=this.pos[0];break;case"T":m[0]="Q",m[3]=m[1],m[4]=m[2],m[1]=this.reflection[1],m[2]=this.reflection[0];break;case"S":m[0]="C",m[6]=m[4],m[5]=m[3],m[4]=m[2],m[3]=m[1],m[2]=this.reflection[1],m[1]=this.reflection[0];break}return m}function Xe(m){var t=m.length;return this.pos=[m[t-2],m[t-1]],"SCQT".indexOf(m[0])!=-1&&(this.reflection=[2*this.pos[0]-m[t-4],2*this.pos[1]-m[t-3]]),m}function Pe(m){var t,e=[m];switch(m[0]){case"M":return this.pos=this.start=[m[1],m[2]],e;case"L":m[5]=m[3]=m[1],m[6]=m[4]=m[2],m[1]=this.pos[0],m[2]=this.pos[1];break;case"Q":m[6]=m[4],m[5]=m[3],m[4]=m[4]*1/3+m[2]*2/3,m[3]=m[3]*1/3+m[1]*2/3,m[2]=this.pos[1]*1/3+m[2]*2/3,m[1]=this.pos[0]*1/3+m[1]*2/3;break;case"A":e=ds((t=this.pos)!=null?t:[],m),m=e[0];break}return m[0]="C",this.pos=[m[5],m[6]],this.reflection=[2*m[5]-m[3],2*m[6]-m[4]],e}function Ne(m,t){if(t===!1)return!1;for(var e=t,s=m.length;e<s;++e)if(m[e][0]=="M")return e;return!1}function ds(m,t){var e=Math.abs(t[1]),s=Math.abs(t[2]),i=t[3]%360,a=t[4],o=t[5],r=t[6],n=t[7],h=new K(m[0],m[1]),l=new K(r,n),c,d,f,g,p,u,b,x,y,w,A,v,C,k,T,D,E,_,M,X,N,O,H=[],I,G,z,Z;if(e===0||s===0||h.x===l.x&&h.y===l.y)return[["C",h.x,h.y,l.x,l.y,l.x,l.y]];for(c=new K((h.x-l.x)/2,(h.y-l.y)/2).transform(new xt(0,0,0,0,0,0).rotate(i)),d=c.x*c.x/(e*e)+c.y*c.y/(s*s),d>1&&(d=Math.sqrt(d),e=d*e,s=d*s),f=new xt(0,0,0,0,0,0).rotate(i).scale(1/e,1/s).rotate(-i),h=h.transform(f),l=l.transform(f),g=[l.x-h.x,l.y-h.y],u=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(u),g[0]/=p,g[1]/=p,b=u<4?Math.sqrt(1-u/4):0,a===o&&(b*=-1),x=new K((l.x+h.x)/2+b*-g[1],(l.y+h.y)/2+b*g[0]),y=new K(h.x-x.x,h.y-x.y),w=new K(l.x-x.x,l.y-x.y),A=Math.acos(y.x/Math.sqrt(y.x*y.x+y.y*y.y)),y.y<0&&(A*=-1),v=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(v*=-1),o&&A>v&&(v+=2*Math.PI),!o&&A<v&&(v-=2*Math.PI),k=Math.ceil(Math.abs(A-v)*2/Math.PI),D=[],E=A,C=(v-A)/k,T=4*Math.tan(C/4)/3,N=0;N<=k;N++)M=Math.cos(E),_=Math.sin(E),X=new K(x.x+M,x.y+_),D[N]=[new K(X.x+T*_,X.y-T*M),X,new K(X.x-T*_,X.y+T*M)],E+=C;for(D[0][0]=D[0][1].clone(),D[D.length-1][2]=D[D.length-1][1].clone(),f=new xt(0,0,0,0,0,0).rotate(i).scale(e,s).rotate(-i),N=0,O=D.length;N<O;N++)D[N][0]=D[N][0].transform(f),D[N][1]=D[N][1].transform(f),D[N][2]=D[N][2].transform(f);for(N=1,O=D.length;N<O;N++)X=D[N-1][2],I=X.x,G=X.y,X=D[N][0],z=X.x,Z=X.y,X=D[N][1],r=X.x,n=X.y,H.push(["C",I,G,z,Z,r,n]);return H}function fs(m,t,e,s,i,a){for(var o=m.slice(t,e||void 0),r=s.slice(i,a||void 0),n=0,h={pos:[0,0],start:[0,0]},l={pos:[0,0],start:[0,0]};o[n]=Fe.call(h,o[n]),r[n]=Fe.call(l,r[n]),o[n][0]!=r[n][0]||o[n][0]=="M"||o[n][0]=="A"&&(o[n][4]!=r[n][4]||o[n][5]!=r[n][5])?(Array.prototype.splice.apply(o,[n,1].concat(Pe.call(h,o[n]))),Array.prototype.splice.apply(r,[n,1].concat(Pe.call(l,r[n])))):(o[n]=Xe.call(h,o[n]),r[n]=Xe.call(l,r[n])),!(++n==o.length&&n==r.length);)n==o.length&&o.push(["C",h.pos[0],h.pos[1],h.pos[0],h.pos[1],h.pos[0],h.pos[1]]),n==r.length&&r.push(["C",l.pos[0],l.pos[1],l.pos[0],l.pos[1],l.pos[0],l.pos[1]]);return{start:o,dest:r}}function gs(m,t){for(var e=Le(m),s=Le(t),i=0,a=0,o=!1,r=!1,n;!(i===!1&&a===!1);){if(o=Ne(e,i===!1?!1:i+1),r=Ne(s,a===!1?!1:a+1),i===!1){let h=Ee(n.start);h.height==0||h.width==0?i=e.push(e[0])-1:i=e.push(["M",h.x+h.width/2,h.y+h.height/2])-1}if(a===!1){let h=Ee(n.dest);h.height==0||h.width==0?a=s.push(s[0])-1:a=s.push(["M",h.x+h.width/2,h.y+h.height/2])-1}n=fs(e,i,o,s,a,r),e=e.slice(0,i).concat(n.start,o===!1?[]:e.slice(o)),s=s.slice(0,a).concat(n.dest,r===!1?[]:s.slice(r)),i=o===!1?!1:i+n.start.length,a=r===!1?!1:a+n.dest.length}return{start:e,dest:s}}function ps(m,t){var e=gs(m,t),s=e.start,i=e.dest;return function(a){var o=s.map(function(r,n){return i[n].map(function(h,l){return l===0?h:r[l]+(i[n][l]-r[l])*a})});return hs(o)}}function us(m){return-Math.cos(m*Math.PI)/2+.5}function Re(m){if(!m||typeof m!="string")return null;if(m[0]==="#"){let e=m.slice(1);e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let s=parseInt(e,16);return[s>>16&255,s>>8&255,s&255,1]}let t=m.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?+t[4]:1]:null}function xs(m,t,e){return`rgba(${Math.round(m[0]+(t[0]-m[0])*e)},${Math.round(m[1]+(t[1]-m[1])*e)},${Math.round(m[2]+(t[2]-m[2])*e)},${m[3]+(t[3]-m[3])*e})`}var Se=class m{constructor(t,e,s){this.el=t,this.duration=e??300,this.delay=s||0,this._attrTarget=null,this._plotTarget=null,this._afterCb=null,this._duringCb=null,this._next=null,this._root=null,this._scheduled=!1}attr(t){return this._attrTarget=t,this._schedule(),this}plot(t){return this._plotTarget=t,this._schedule(),this}after(t){return this._afterCb=t,this._schedule(),this}during(t){return this._duringCb=t,this._schedule(),this}animate(t,e){let s=new m(this.el,t,e);return this._next=s,s._root=this._root||this,s}_schedule(){let t=this._root||this;t._scheduled||(t._scheduled=!0,queueMicrotask(()=>t._executeChain()))}_executeChain(){let t=[],e=this;for(;e;)t.push(e),e=e._next;let s=0;t.forEach(i=>{s+=i.delay,i._execute(s),s+=i.duration})}_execute(t){let e=this.el,s=this.duration;if(s<=1){let a=()=>{this._attrTarget&&e.attr(this._attrTarget),this._plotTarget&&e.plot(this._plotTarget),this._afterCb&&this._afterCb.call(e)};t>0?setTimeout(a,t):a();return}let i=()=>{let a={},o={},r={};if(this._attrTarget)for(let c of Object.keys(this._attrTarget)){let d=e.attr(c);a[c]=d;let f=Re(d),g=Re(String(this._attrTarget[c]));f&&g&&(o[c]=f,r[c]=g)}let n=null;if(this._plotTarget){let c=e.attr("d")||"";try{n=ps(c,this._plotTarget)}catch{n=null}}let h=performance.now(),l=c=>{let d=c-h,f=Math.min(d/s,1),g=us(f);if(this._attrTarget)if(f>=1)e.attr(this._attrTarget);else{let p={};for(let u of Object.keys(this._attrTarget))if(o[u]&&r[u])p[u]=xs(o[u],r[u],g);else{let b=parseFloat(a[u]),x=parseFloat(this._attrTarget[u]);!isNaN(b)&&!isNaN(x)&&(p[u]=b+(x-b)*g)}e.attr(p)}n&&f<1&&e.attr("d",n(g)),this._duringCb&&this._duringCb(g),f<1?F.requestAnimationFrame(l):(this._plotTarget&&e.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(e))};F.requestAnimationFrame(l)};t>0?setTimeout(i,t):i()}};function ms(m){m.prototype.animate=function(t,e){return new Se(this,t,e)}}function bs(m){m.prototype.draggable=function(t){if(t===!1)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;let e=this,s=t||{},i=a=>{if(a.button&&a.button!==0)return;a.stopPropagation();let r=a.type==="touchstart"?a.touches[0]:a,n=e.node,h=parseFloat(n.getAttribute("x"))||0,l=parseFloat(n.getAttribute("y"))||0,c=r.clientX,d=r.clientY,f=n.ownerSVGElement,g=null;f&&(g=f.getScreenCTM());let p=b=>{let x=b.type==="touchmove"?b.touches[0]:b,y=x.clientX-c,w=x.clientY-d;g&&(y=y/g.a,w=w/g.d);let A=h+y,v=l+w,C=parseFloat(n.getAttribute("width"))||0,k=parseFloat(n.getAttribute("height"))||0;s.minX!==void 0&&A<s.minX&&(A=s.minX),s.minY!==void 0&&v<s.minY&&(v=s.minY),s.maxX!==void 0&&A+C>s.maxX&&(A=s.maxX-C),s.maxY!==void 0&&v+k>s.maxY&&(v=s.maxY-k);let T={x:A,y:v,w:C,h:k,x2:A+C,y2:v+k},D=new CustomEvent("dragmove",{detail:{handler:{move:function(E,_){n.setAttribute("x",E),n.setAttribute("y",_)}},box:T}});n.dispatchEvent(D)},u=()=>{P.isBrowser()&&(document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",u),document.removeEventListener("touchend",u))};P.isBrowser()&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",p),document.addEventListener("mouseup",u),document.addEventListener("touchend",u))};return e.node.addEventListener("mousedown",i),e.node.addEventListener("touchstart",i),e._dragCleanup=()=>{e.node.removeEventListener("mousedown",i),e.node.removeEventListener("touchstart",i)},e}}function ys(m){m.prototype.select=function(t){if(t===!1)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;let e=this,{createHandle:s,updateHandle:i}=t,a=document.createElementNS(B,"g");a.setAttribute("class","svg_select_points");let o=e.node.parentNode;o&&o.appendChild(a);let r={},n=["t","b","l","r","lt","rt","lb","rb"];n.forEach((l,c)=>{let d=new St(document.createElementNS(B,"g"));a.appendChild(d.node);let f=s(d,[0,0],c,[],l);r[l]={group:d,handle:f}});let h=()=>{let l=parseFloat(e.attr("x"))||0,c=parseFloat(e.attr("y"))||0,d=parseFloat(e.attr("width"))||0,f=parseFloat(e.attr("height"))||0,g=e.node.getAttribute("transform");g?a.setAttribute("transform",g):a.removeAttribute("transform");let p={t:[l+d/2,c],b:[l+d/2,c+f],l:[l,c+f/2],r:[l+d,c+f/2],lt:[l,c],rt:[l+d,c],lb:[l,c+f],rb:[l+d,c+f]};n.forEach(u=>{r[u]&&p[u]&&i(r[u].group,p[u])})};return h(),e._selectHandles=a,e._selectHandlesMap=r,e._updateSelectPositions=h,e._selectCleanup=()=>{a.parentNode&&a.parentNode.removeChild(a),e._selectHandles=null,e._selectHandlesMap=null,e._updateSelectPositions=null},e},m.prototype.resize=function(t){if(t===!1)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;let e=this,s=e._selectHandlesMap;if(!s)return e;let i=[],a=o=>{let r=s[o];if(!r||!r.group||!r.group.node)return;let n=r.group.node,h=l=>{if(l.button&&l.button!==0)return;l.stopPropagation();let f=(l.type==="touchstart"?l.touches[0]:l).clientX,g=e.node.ownerSVGElement,p=null;g&&(p=g.getScreenCTM());let u=parseFloat(e.attr("x"))||0,b=parseFloat(e.attr("width"))||0,x=w=>{let v=(w.type==="touchmove"?w.touches[0]:w).clientX-f;p&&(v=v/p.a);let C=u,k=b;o==="l"?(C=u+v,k=b-v):o==="r"&&(k=b+v),k<0&&(k=0),e.attr({x:C,width:k}),e._updateSelectPositions&&e._updateSelectPositions();let T=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(T)},y=()=>{P.isBrowser()&&(document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x),document.removeEventListener("mouseup",y),document.removeEventListener("touchend",y));let w=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(w)};P.isBrowser()&&(document.addEventListener("mousemove",x),document.addEventListener("touchmove",x),document.addEventListener("mouseup",y),document.addEventListener("touchend",y))};n.addEventListener("mousedown",h),n.addEventListener("touchstart",h),i.push(()=>{n.removeEventListener("mousedown",h),n.removeEventListener("touchstart",h)})};return a("l"),a("r"),e._resizeCleanup=()=>{i.forEach(o=>o())},e}}cs($);ms($);bs($);ys($);function Pt(){let m=F.createElementNS(B,"svg"),t=new St(m);return t.attr({xmlns:B}),t}Pt.xlink="http://www.w3.org/1999/xlink";P.isBrowser()&&typeof window.SVG>"u"&&(window.SVG=Pt);P.isBrowser()?(typeof window.SVG>"u"&&(window.SVG=Pt),typeof window.Apex>"u"&&(window.Apex={})):typeof global<"u"&&(typeof global.Apex>"u"&&(global.Apex={}),typeof global.SVG>"u"&&(global.SVG=Pt));var Ge=class Ce{static registerFeatures(t){for(let[e,s]of Object.entries(t))Ce._featureRegistry.set(e,s)}constructor(t){this.ctx=t,this.w=t.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","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend","keydown","keyup"],this.ctx.animations=new mt(this.w,this.ctx),this.ctx.axes=new Qt(this.w,this.ctx),this.ctx.core=new ce(this.ctx.el,this.w,this.ctx),this.ctx.config=new ct({}),this.ctx.data=new Et(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new Mt(this.w,this.ctx),this.ctx.graphics=new L(this.w,this.ctx),this.ctx.coreUtils=new j(this.w),this.ctx.crosshairs=new At(this.w),this.ctx.events=new Kt(this.w,this.ctx),this.ctx.fill=new Tt(this.w),this.ctx.localization=new Jt(this.w),this.ctx.options=new tt,this.ctx.responsive=new te(this.w),this.ctx.series=new st(this.w,{toggleDataSeries:(...e)=>{var s;return(s=this.ctx.legend)==null?void 0:s.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new ee(this.w),this.ctx.formatters=new nt(this.w),this.ctx.titleSubtitle=new se(this.w),this.ctx.dimensions=new Lt(this.w,this.ctx),this.ctx.updateHelpers=new he(this.w,this.ctx);let t=new ue(this.w,this.ctx);this.w.globals.tooltip=t,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){let t=Ce._featureRegistry,e=this.w,s=this.ctx,i=t.get("exports");s.exports=i?new i(e,s):null;let a=t.get("legend");s.legend=a?new a(e,s):null;let o=t.get("toolbar");Object.defineProperty(s,"toolbar",{get(){var h;return!this._toolbar&&o&&(this._toolbar=new o(e,this)),(h=this._toolbar)!=null?h:null},configurable:!0});let r=t.get("zoomPanSelection");Object.defineProperty(s,"zoomPanSelection",{get(){var h;return!this._zoomPanSelection&&r&&(this._zoomPanSelection=new r(e,this)),(h=this._zoomPanSelection)!=null?h:null},configurable:!0});let n=t.get("keyboardNavigation");Object.defineProperty(s,"keyboardNavigation",{get(){var h;return!this._keyboardNavigation&&n&&(this._keyboardNavigation=new n(e,this)),(h=this._keyboardNavigation)!=null?h:null},configurable:!0})}};R(Ge,"_featureRegistry",new Map);var Ct=Ge,Nt=class{constructor(t){this.ctx=t,this.w=t.w}clear({isUpdating:t}){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),yt.invalidateAll(this.w),t?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,this.ctx._keyboardNavigation=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:t})}killSVG(t){t.each(function(){this.removeClass("*"),this.off()},!0),t.clear()}clearDomElements({isUpdating:t}){let e=this.w.dom;if(P.isBrowser()){let s=e.Paper.node;s.parentNode&&s.parentNode.parentNode&&!t&&(s.parentNode.parentNode.style.minHeight="unset");let i=e.baseEl;if(i&&this.ctx.eventList.forEach(a=>{i.removeEventListener(a,this.ctx.events.documentEvent)}),this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(e.Paper),e.Paper.remove()}e.elWrap=null,e.elGraphical=null,e.elLegendWrap=null,e.elLegendForeign=null,e.baseEl=null,e.elGridRect=null,e.elGridRectMask=null,e.elGridRectBarMask=null,e.elGridRectMarkerMask=null,e.elForecastMask=null,e.elNonForecastMask=null,e.elDefs=null}},ke=new WeakMap;function ws(m,t){if(P.isSSR())return;let e=!1;if(m.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){let i=m.getBoundingClientRect();(m.style.display==="none"||i.width===0)&&(e=!0)}let s=new ResizeObserver(i=>{e&&t.call(m,i),e=!0});m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(m.children).forEach(i=>s.observe(i)):s.observe(m),ke.set(t,s)}function vs(m,t){if(P.isSSR())return;let e=ke.get(t);e&&(e.disconnect(),ke.delete(t))}var As=`@keyframes opaque {
|
|
0% {
|
|
opacity: 0
|
|
}
|
|
|
|
to {
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
@keyframes resizeanim {
|
|
|
|
0%,
|
|
to {
|
|
opacity: 0
|
|
}
|
|
}
|
|
|
|
.apexcharts-canvas {
|
|
position: relative;
|
|
direction: ltr !important;
|
|
user-select: none;
|
|
/* Focus indicator colour. Themes override below. */
|
|
--apexcharts-focus-color: #008FFB;
|
|
}
|
|
|
|
/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */
|
|
.apexcharts-canvas .apexcharts-theme-dark,
|
|
.apexcharts-theme-dark.apexcharts-canvas {
|
|
--apexcharts-focus-color: #FFD500;
|
|
}
|
|
.apexcharts-canvas.apexcharts-high-contrast,
|
|
.apexcharts-high-contrast.apexcharts-canvas {
|
|
--apexcharts-focus-color: #FFFF00;
|
|
}
|
|
|
|
/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */
|
|
.apexcharts-sr-status {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.apexcharts-canvas *,
|
|
.apexcharts-canvas *::before,
|
|
.apexcharts-canvas *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
.apexcharts-canvas ::-webkit-scrollbar {
|
|
-webkit-appearance: none;
|
|
width: 6px
|
|
}
|
|
|
|
.apexcharts-canvas ::-webkit-scrollbar-thumb {
|
|
border-radius: 4px;
|
|
background-color: rgba(0, 0, 0, .5);
|
|
box-shadow: 0 0 1px rgba(255, 255, 255, .5);
|
|
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
|
|
}
|
|
|
|
.apexcharts-inner {
|
|
position: relative
|
|
}
|
|
|
|
.apexcharts-text tspan {
|
|
font-family: inherit
|
|
}
|
|
|
|
rect.legend-mouseover-inactive,
|
|
.legend-mouseover-inactive rect,
|
|
.legend-mouseover-inactive path,
|
|
.legend-mouseover-inactive circle,
|
|
.legend-mouseover-inactive line,
|
|
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
|
|
.legend-mouseover-inactive text.apexcharts-yaxis-label {
|
|
transition: .15s ease all;
|
|
opacity: .2
|
|
}
|
|
|
|
.apexcharts-legend-text {
|
|
padding-left: 15px;
|
|
margin-left: -15px;
|
|
}
|
|
|
|
.apexcharts-legend-series[role="button"]:focus {
|
|
outline: 2px solid var(--apexcharts-focus-color, #008FFB);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
.apexcharts-legend-series[role="button"]:focus-visible {
|
|
outline: 2px solid var(--apexcharts-focus-color, #008FFB);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.apexcharts-series-collapsed {
|
|
opacity: 0
|
|
}
|
|
|
|
.apexcharts-canvas svg:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
/* Keyboard navigation focus indicator on SVG data elements.
|
|
SVG elements don't support CSS outline, so we use stroke. */
|
|
.apexcharts-bar-area.apexcharts-keyboard-focused,
|
|
.apexcharts-candlestick-area.apexcharts-keyboard-focused,
|
|
.apexcharts-boxPlot-area.apexcharts-keyboard-focused,
|
|
.apexcharts-rangebar-area.apexcharts-keyboard-focused,
|
|
.apexcharts-pie-area.apexcharts-keyboard-focused,
|
|
.apexcharts-heatmap-rect.apexcharts-keyboard-focused,
|
|
.apexcharts-treemap-rect.apexcharts-keyboard-focused {
|
|
stroke: var(--apexcharts-focus-color, #008FFB);
|
|
stroke-width: 2;
|
|
stroke-opacity: 1;
|
|
}
|
|
|
|
.apexcharts-tooltip {
|
|
--apx-tt-bg: #ffffff;
|
|
--apx-tt-border: rgba(15, 23, 42, 0.06);
|
|
/* Layered shadow: tight inner contact + soft outer drop. The two Y
|
|
* offsets are exposed as variables so they flip in sync with the
|
|
* arrow when the tooltip is below the data point \u2014 see the
|
|
* \`[data-placement="bottom"]\` rule further down. */
|
|
--apx-tt-shadow-y-mid: 8px;
|
|
--apx-tt-shadow-y-far: 16px;
|
|
--apx-tt-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(15, 23, 42, 0.12), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(15, 23, 42, 0.18);
|
|
--apx-tt-arrow-bg: var(--apx-tt-bg);
|
|
/* Two stacked drop-shadows: the first is a tight contact halo for
|
|
* edge definition against light chart backgrounds; the second is a
|
|
* softer directional drop that lifts the arrow off the surface.
|
|
* \`--apx-tt-arrow-drop-y\` is the Y offset of the directional drop;
|
|
* a per-placement rule below flips it to negative when the tooltip
|
|
* is below the data point (arrow on top) so the shadow always
|
|
* casts outward instead of into the tooltip body. */
|
|
--apx-tt-arrow-drop-y: 2px;
|
|
--apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(15, 23, 42, 0.2)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(15, 23, 42, 0.2));
|
|
--apx-tt-color: #0f172a;
|
|
--apx-tt-color-muted: rgba(15, 23, 42, 0.55);
|
|
border-radius: 8px;
|
|
background: var(--apx-tt-bg);
|
|
border: 1px solid var(--apx-tt-border);
|
|
box-shadow: var(--apx-tt-shadow);
|
|
color: var(--apx-tt-color);
|
|
cursor: default;
|
|
font-size: 13px;
|
|
left: 0;
|
|
top: 0;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 2px 0;
|
|
white-space: nowrap;
|
|
z-index: 12;
|
|
transition: opacity .12s ease
|
|
}
|
|
|
|
/* While the tooltip is visible, smoothly animate position changes
|
|
* between data points. Kept short (160 ms) and ease-out so it stays
|
|
* responsive \u2014 too long would feel laggy when sweeping across many
|
|
* points fast. The position transition is only attached after the
|
|
* first paint (Position.applyTooltipPosition flips \`data-positioned\`
|
|
* once the tooltip has been placed) so the *first* show doesn't slide
|
|
* the tooltip in from the previously-stale (0,0) coordinates. */
|
|
.apexcharts-tooltip.apexcharts-active {
|
|
opacity: 1;
|
|
transition: opacity .12s ease
|
|
}
|
|
.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {
|
|
transition: opacity .12s ease, left .16s ease-out, top .16s ease-out
|
|
}
|
|
|
|
.apexcharts-tooltip.apexcharts-theme-light {
|
|
/* defaults already set above; class kept for backward-compat selectors */
|
|
}
|
|
|
|
.apexcharts-tooltip.apexcharts-theme-dark {
|
|
--apx-tt-bg: #1c1c1f;
|
|
--apx-tt-border: rgba(255, 255, 255, 0.08);
|
|
--apx-tt-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(0, 0, 0, 0.45), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(0, 0, 0, 0.55);
|
|
--apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(0, 0, 0, 0.45));
|
|
--apx-tt-color: #f3f4f6;
|
|
--apx-tt-color-muted: rgba(243, 244, 246, 0.55);
|
|
}
|
|
|
|
.apexcharts-tooltip * {
|
|
font-family: inherit
|
|
}
|
|
|
|
.apexcharts-tooltip-title {
|
|
padding: 8px 12px 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
color: var(--apx-tt-color-muted);
|
|
background: transparent;
|
|
border-bottom: none;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
|
|
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
|
|
background: transparent;
|
|
border-bottom: none
|
|
}
|
|
|
|
/* \`fillSeriesColor\`: each series-group already paints itself with the
|
|
* series colour. Drop the glass body entirely (transparent bg, no
|
|
* border, no backdrop-filter, no padding) and clip the coloured
|
|
* series-group(s) to the tooltip's rounded corners so they fill the
|
|
* shell edge-to-edge. Text inside the coloured group is forced to
|
|
* white for contrast. */
|
|
.apexcharts-tooltip.apexcharts-tooltip-fill-series {
|
|
background: transparent;
|
|
-webkit-backdrop-filter: none;
|
|
backdrop-filter: none;
|
|
border: none;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
color: #fff
|
|
}
|
|
|
|
.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {
|
|
background: rgba(0, 0, 0, 0.22);
|
|
color: #fff;
|
|
opacity: 1;
|
|
padding: 6px 12px
|
|
}
|
|
|
|
.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {
|
|
color: #fff
|
|
}
|
|
|
|
/* Arrow connector \u2014 sits *entirely outside* the tooltip body. Shares
|
|
* the body's solid fill so it reads as a single shape. \`filter:
|
|
* drop-shadow\` traces the clipped triangle outline (a regular
|
|
* \`box-shadow\` would be erased by the \`clip-path\`). */
|
|
.apexcharts-tooltip-arrow {
|
|
position: absolute;
|
|
width: 7px;
|
|
height: 14px;
|
|
background: var(--apx-tt-arrow-bg);
|
|
/* The variable already contains the full \`drop-shadow(...) ...\` filter
|
|
* chain (stacked shadows) so it's applied raw. */
|
|
-webkit-filter: var(--apx-tt-arrow-shadow);
|
|
filter: var(--apx-tt-arrow-shadow);
|
|
pointer-events: none;
|
|
top: calc(var(--apx-tt-arrow-y, 50%) - 7px)
|
|
}
|
|
|
|
.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {
|
|
left: -7px;
|
|
clip-path: polygon(0 50%, 100% 0, 100% 100%)
|
|
}
|
|
|
|
.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {
|
|
right: -7px;
|
|
clip-path: polygon(100% 50%, 0 0, 0 100%)
|
|
}
|
|
|
|
/* Vertical arrow variants: tooltip is above/below the data point and the
|
|
* arrow points down/up. The base rule above uses \`--apx-tt-arrow-y\` for
|
|
* left/right placement; for top/bottom we re-orient the rectangle and
|
|
* use \`--apx-tt-arrow-x\` (set by applyTooltipPosition). */
|
|
.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,
|
|
.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
|
|
width: 14px;
|
|
height: 7px;
|
|
top: auto;
|
|
left: calc(var(--apx-tt-arrow-x, 50%) - 7px)
|
|
}
|
|
|
|
.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {
|
|
bottom: -7px;
|
|
clip-path: polygon(50% 100%, 0 0, 100% 0)
|
|
}
|
|
|
|
.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
|
|
top: -7px;
|
|
clip-path: polygon(50% 0, 0 100%, 100% 100%)
|
|
}
|
|
|
|
/* When the tooltip is flipped below the data point (arrow on top
|
|
* pointing up), the default downward-biased shadows leave the top
|
|
* edge of both the body *and* the arrow undefined. Flipping every
|
|
* Y offset to negative casts the entire elevation upward so the
|
|
* shadow falls between the tooltip and the bar above. */
|
|
.apexcharts-tooltip[data-placement="bottom"] {
|
|
--apx-tt-shadow-y-mid: -8px;
|
|
--apx-tt-shadow-y-far: -16px;
|
|
--apx-tt-arrow-drop-y: -2px
|
|
}
|
|
|
|
.apexcharts-tooltip-text-goals-value,
|
|
.apexcharts-tooltip-text-y-value,
|
|
.apexcharts-tooltip-text-z-value {
|
|
display: inline-block;
|
|
margin-left: 5px;
|
|
font-weight: 600
|
|
}
|
|
|
|
.apexcharts-tooltip-text-goals-label:empty,
|
|
.apexcharts-tooltip-text-goals-value:empty,
|
|
.apexcharts-tooltip-text-y-label:empty,
|
|
.apexcharts-tooltip-text-y-value:empty,
|
|
.apexcharts-tooltip-text-z-value:empty,
|
|
.apexcharts-tooltip-title:empty {
|
|
display: none
|
|
}
|
|
|
|
.apexcharts-tooltip-text-goals-label,
|
|
.apexcharts-tooltip-text-goals-value {
|
|
padding: 6px 0 5px
|
|
}
|
|
|
|
.apexcharts-tooltip-goals-group,
|
|
.apexcharts-tooltip-text-goals-label,
|
|
.apexcharts-tooltip-text-goals-value {
|
|
display: flex
|
|
}
|
|
|
|
.apexcharts-tooltip-text-goals-label:not(:empty),
|
|
.apexcharts-tooltip-text-goals-value:not(:empty) {
|
|
margin-top: -6px
|
|
}
|
|
|
|
.apexcharts-tooltip-marker {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
color: inherit;
|
|
}
|
|
|
|
.apexcharts-tooltip-marker svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.apexcharts-tooltip-series-group {
|
|
padding: 4px 12px;
|
|
display: none;
|
|
gap: 8px;
|
|
text-align: left;
|
|
justify-content: left;
|
|
align-items: center
|
|
}
|
|
|
|
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
|
|
opacity: 1
|
|
}
|
|
|
|
.apexcharts-tooltip-series-group.apexcharts-active:last-child,
|
|
.apexcharts-tooltip-series-group:last-child {
|
|
padding-bottom: 8px
|
|
}
|
|
|
|
.apexcharts-tooltip-y-group {
|
|
padding: 6px 0 5px
|
|
}
|
|
|
|
.apexcharts-custom-tooltip,
|
|
.apexcharts-tooltip-box {
|
|
padding: 4px 8px
|
|
}
|
|
|
|
.apexcharts-tooltip-boxPlot {
|
|
display: flex;
|
|
flex-direction: column-reverse
|
|
}
|
|
|
|
.apexcharts-tooltip-box>div {
|
|
margin: 4px 0
|
|
}
|
|
|
|
.apexcharts-tooltip-box span.value {
|
|
font-weight: 700
|
|
}
|
|
|
|
.apexcharts-tooltip-rangebar {
|
|
padding: 5px 8px
|
|
}
|
|
|
|
.apexcharts-tooltip-rangebar .category {
|
|
font-weight: 600;
|
|
color: #777
|
|
}
|
|
|
|
.apexcharts-tooltip-rangebar .series-name {
|
|
font-weight: 700;
|
|
display: block;
|
|
margin-bottom: 5px
|
|
}
|
|
|
|
/* X/Y axis tooltips \u2014 small popovers that label the crosshair on the
|
|
* axes. Restyled to match the modern data-tooltip palette: solid white
|
|
* body with a subtle border + soft drop-shadow, smaller font, rounded
|
|
* corners. The arrows still use the CSS border-triangle technique
|
|
* (cheap, crisp at small sizes); their colours flow from CSS variables
|
|
* so light/dark themes only need one override per axis. */
|
|
.apexcharts-xaxistooltip,
|
|
.apexcharts-yaxistooltip {
|
|
--apx-axt-bg: #ffffff;
|
|
--apx-axt-border: rgba(15, 23, 42, 0.08);
|
|
--apx-axt-color: #0f172a;
|
|
--apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
color: var(--apx-axt-color);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
position: absolute;
|
|
z-index: 10;
|
|
background: var(--apx-axt-bg);
|
|
border: 1px solid var(--apx-axt-border);
|
|
box-shadow: var(--apx-axt-shadow)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip.apexcharts-theme-dark,
|
|
.apexcharts-yaxistooltip.apexcharts-theme-dark {
|
|
--apx-axt-bg: #1c1c1f;
|
|
--apx-axt-border: rgba(255, 255, 255, 0.1);
|
|
--apx-axt-color: #f3f4f6;
|
|
--apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip {
|
|
padding: 4px 8px;
|
|
transition: .15s ease all
|
|
}
|
|
|
|
.apexcharts-xaxistooltip:after,
|
|
.apexcharts-xaxistooltip:before {
|
|
left: 50%;
|
|
border: solid transparent;
|
|
content: " ";
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none
|
|
}
|
|
|
|
/* :before paints the 1px border outline of the triangle (slightly larger
|
|
* than :after); :after sits inside and paints the fill \u2014 leaves a 1px
|
|
* ring of :before visible at the edges. */
|
|
.apexcharts-xaxistooltip:after {
|
|
border-color: transparent;
|
|
border-width: 5px;
|
|
margin-left: -5px
|
|
}
|
|
|
|
.apexcharts-xaxistooltip:before {
|
|
border-color: transparent;
|
|
border-width: 6px;
|
|
margin-left: -6px
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-bottom:after,
|
|
.apexcharts-xaxistooltip-bottom:before {
|
|
bottom: 100%
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-top:after,
|
|
.apexcharts-xaxistooltip-top:before {
|
|
top: 100%
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-bottom:after {
|
|
border-bottom-color: var(--apx-axt-bg)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-bottom:before {
|
|
border-bottom-color: var(--apx-axt-border)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-top:after {
|
|
border-top-color: var(--apx-axt-bg)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip-top:before {
|
|
border-top-color: var(--apx-axt-border)
|
|
}
|
|
|
|
.apexcharts-xaxistooltip.apexcharts-active {
|
|
opacity: 1;
|
|
transition: .15s ease all
|
|
}
|
|
|
|
.apexcharts-yaxistooltip {
|
|
padding: 3px 8px
|
|
}
|
|
|
|
.apexcharts-yaxistooltip:after,
|
|
.apexcharts-yaxistooltip:before {
|
|
top: 50%;
|
|
border: solid transparent;
|
|
content: " ";
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-yaxistooltip:after {
|
|
border-color: transparent;
|
|
border-width: 5px;
|
|
margin-top: -5px
|
|
}
|
|
|
|
.apexcharts-yaxistooltip:before {
|
|
border-color: transparent;
|
|
border-width: 6px;
|
|
margin-top: -6px
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-left:after,
|
|
.apexcharts-yaxistooltip-left:before {
|
|
left: 100%
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-right:after,
|
|
.apexcharts-yaxistooltip-right:before {
|
|
right: 100%
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-left:after {
|
|
border-left-color: var(--apx-axt-bg)
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-left:before {
|
|
border-left-color: var(--apx-axt-border)
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-right:after {
|
|
border-right-color: var(--apx-axt-bg)
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-right:before {
|
|
border-right-color: var(--apx-axt-border)
|
|
}
|
|
|
|
.apexcharts-yaxistooltip.apexcharts-active {
|
|
opacity: 1
|
|
}
|
|
|
|
.apexcharts-yaxistooltip-hidden {
|
|
display: none
|
|
}
|
|
|
|
.apexcharts-xcrosshairs,
|
|
.apexcharts-ycrosshairs {
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: .15s ease all
|
|
}
|
|
|
|
.apexcharts-xcrosshairs.apexcharts-active,
|
|
.apexcharts-ycrosshairs.apexcharts-active {
|
|
opacity: 1;
|
|
transition: .15s ease all
|
|
}
|
|
|
|
.apexcharts-ycrosshairs-hidden {
|
|
opacity: 0
|
|
}
|
|
|
|
.apexcharts-selection-rect {
|
|
cursor: move
|
|
}
|
|
|
|
.svg_select_shape {
|
|
stroke-width: 1;
|
|
stroke-dasharray: 10 10;
|
|
stroke: black;
|
|
stroke-opacity: 0.1;
|
|
pointer-events: none;
|
|
fill: none;
|
|
}
|
|
|
|
.svg_select_handle {
|
|
stroke-width: 3;
|
|
stroke: black;
|
|
fill: none;
|
|
}
|
|
|
|
.svg_select_handle_r {
|
|
cursor: e-resize;
|
|
}
|
|
|
|
.svg_select_handle_l {
|
|
cursor: w-resize;
|
|
}
|
|
|
|
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
|
|
cursor: crosshair
|
|
}
|
|
|
|
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
|
|
cursor: move
|
|
}
|
|
|
|
.apexcharts-menu-icon,
|
|
.apexcharts-pan-icon,
|
|
.apexcharts-reset-icon,
|
|
.apexcharts-selection-icon,
|
|
.apexcharts-toolbar-custom-icon,
|
|
.apexcharts-zoom-icon,
|
|
.apexcharts-zoomin-icon,
|
|
.apexcharts-zoomout-icon {
|
|
cursor: pointer;
|
|
/* WCAG 2.5.8 Target Size (Minimum): 24\xD724 CSS px hit target. */
|
|
width: 26px;
|
|
height: 24px;
|
|
line-height: 24px;
|
|
color: #6e8192;
|
|
text-align: center;
|
|
/* Reset native <button> chrome \u2014 these are styled via SVG icons. */
|
|
padding: 0;
|
|
margin: 0;
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 5px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color .12s ease, color .12s ease;
|
|
}
|
|
|
|
.apexcharts-menu-icon svg,
|
|
.apexcharts-pan-icon svg,
|
|
.apexcharts-reset-icon svg,
|
|
.apexcharts-selection-icon svg,
|
|
.apexcharts-zoom-icon svg,
|
|
.apexcharts-zoomin-icon svg,
|
|
.apexcharts-zoomout-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round
|
|
}
|
|
|
|
.apexcharts-theme-dark .apexcharts-menu-icon,
|
|
.apexcharts-theme-dark .apexcharts-pan-icon,
|
|
.apexcharts-theme-dark .apexcharts-reset-icon,
|
|
.apexcharts-theme-dark .apexcharts-selection-icon,
|
|
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,
|
|
.apexcharts-theme-dark .apexcharts-zoom-icon,
|
|
.apexcharts-theme-dark .apexcharts-zoomin-icon,
|
|
.apexcharts-theme-dark .apexcharts-zoomout-icon {
|
|
color: #d4d6dc
|
|
}
|
|
|
|
.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,
|
|
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,
|
|
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,
|
|
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {
|
|
background: rgba(0, 143, 251, 0.12);
|
|
color: #008ffb
|
|
}
|
|
|
|
.apexcharts-theme-light .apexcharts-menu-icon:hover,
|
|
.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-light .apexcharts-reset-icon:hover,
|
|
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-light .apexcharts-zoomin-icon:hover,
|
|
.apexcharts-theme-light .apexcharts-zoomout-icon:hover {
|
|
background: rgba(15, 23, 42, 0.06);
|
|
color: #1f2937
|
|
}
|
|
|
|
.apexcharts-theme-dark .apexcharts-menu-icon:hover,
|
|
.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-dark .apexcharts-reset-icon:hover,
|
|
.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
|
|
.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,
|
|
.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #fff
|
|
}
|
|
|
|
.apexcharts-menu-icon,
|
|
.apexcharts-selection-icon {
|
|
position: relative
|
|
}
|
|
|
|
.apexcharts-toolbar {
|
|
position: absolute;
|
|
z-index: 11;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 1px;
|
|
padding: 3px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.apexcharts-theme-dark .apexcharts-toolbar {
|
|
background: rgba(28, 28, 31, 0.82);
|
|
}
|
|
|
|
.apexcharts-menu {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
right: 0;
|
|
opacity: 0;
|
|
min-width: 120px;
|
|
transition: opacity .15s ease, transform .15s ease;
|
|
transform: translateY(-2px);
|
|
pointer-events: none;
|
|
box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)
|
|
}
|
|
|
|
.apexcharts-menu.apexcharts-menu-open {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
pointer-events: all
|
|
}
|
|
|
|
.apexcharts-menu-item {
|
|
padding: 6px 9px;
|
|
font-size: 12px;
|
|
border-radius: 5px;
|
|
cursor: pointer
|
|
}
|
|
|
|
.apexcharts-theme-light .apexcharts-menu-item:hover {
|
|
background: rgba(15, 23, 42, 0.06)
|
|
}
|
|
|
|
.apexcharts-theme-dark .apexcharts-menu {
|
|
background: rgba(28, 28, 31, 0.92);
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
color: #f3f4f6;
|
|
box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)
|
|
}
|
|
|
|
.apexcharts-theme-dark .apexcharts-menu-item:hover {
|
|
background: rgba(255, 255, 255, 0.08)
|
|
}
|
|
|
|
@media screen and (min-width:768px) {
|
|
.apexcharts-canvas:hover .apexcharts-toolbar {
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */
|
|
.apexcharts-toolbar:focus-within {
|
|
opacity: 1
|
|
}
|
|
|
|
/* Focus indicator for toolbar icon buttons */
|
|
.apexcharts-menu-icon:focus-visible,
|
|
.apexcharts-pan-icon:focus-visible,
|
|
.apexcharts-reset-icon:focus-visible,
|
|
.apexcharts-selection-icon:focus-visible,
|
|
.apexcharts-toolbar-custom-icon:focus-visible,
|
|
.apexcharts-zoom-icon:focus-visible,
|
|
.apexcharts-zoomin-icon:focus-visible,
|
|
.apexcharts-zoomout-icon:focus-visible {
|
|
outline: 2px solid var(--apexcharts-focus-color, #008FFB);
|
|
outline-offset: 1px;
|
|
border-radius: 5px
|
|
}
|
|
|
|
/* Focus indicator for hamburger menu items */
|
|
.apexcharts-menu-item:focus-visible {
|
|
outline: 2px solid var(--apexcharts-focus-color, #008FFB);
|
|
outline-offset: -2px;
|
|
background: #eee
|
|
}
|
|
|
|
.apexcharts-canvas .apexcharts-element-hidden,
|
|
.apexcharts-datalabel.apexcharts-element-hidden,
|
|
.apexcharts-hide .apexcharts-series-points {
|
|
opacity: 0;
|
|
}
|
|
|
|
.apexcharts-hidden-element-shown {
|
|
opacity: 1;
|
|
transition: 0.25s ease all;
|
|
}
|
|
|
|
.apexcharts-datalabel,
|
|
.apexcharts-datalabel-label,
|
|
.apexcharts-datalabel-value,
|
|
.apexcharts-datalabels,
|
|
.apexcharts-pie-label {
|
|
cursor: default;
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-pie-label-delay {
|
|
opacity: 0;
|
|
animation-name: opaque;
|
|
animation-duration: .3s;
|
|
animation-fill-mode: forwards;
|
|
animation-timing-function: ease
|
|
}
|
|
|
|
.apexcharts-radialbar-label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.apexcharts-annotation-rect,
|
|
.apexcharts-area-series .apexcharts-area,
|
|
.apexcharts-gridline,
|
|
.apexcharts-line,
|
|
.apexcharts-point-annotation-label,
|
|
.apexcharts-radar-series path:not(.apexcharts-marker),
|
|
.apexcharts-radar-series polygon,
|
|
.apexcharts-toolbar svg,
|
|
.apexcharts-tooltip .apexcharts-marker,
|
|
.apexcharts-xaxis-annotation-label,
|
|
.apexcharts-yaxis-annotation-label,
|
|
.apexcharts-zoom-rect,
|
|
.no-pointer-events {
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-tooltip-active .apexcharts-marker {
|
|
transition: .15s ease all
|
|
}
|
|
|
|
.apexcharts-radar-series .apexcharts-yaxis {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.resize-triggers {
|
|
animation: 1ms resizeanim;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden
|
|
}
|
|
|
|
.contract-trigger:before,
|
|
.resize-triggers,
|
|
.resize-triggers>div {
|
|
content: " ";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0
|
|
}
|
|
|
|
.resize-triggers>div {
|
|
height: 100%;
|
|
width: 100%;
|
|
background: #eee;
|
|
overflow: auto
|
|
}
|
|
|
|
.contract-trigger:before {
|
|
overflow: hidden;
|
|
width: 200%;
|
|
height: 200%
|
|
}
|
|
|
|
.apexcharts-bar-goals-markers {
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-bar-shadows {
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-rangebar-goals-markers {
|
|
pointer-events: none
|
|
}
|
|
|
|
.apexcharts-disable-transitions * {
|
|
transition: none !important;
|
|
}`,Ye=class m{constructor(t,e){R(this,"core"),R(this,"responsive"),R(this,"axes"),R(this,"grid"),R(this,"graphics"),R(this,"coreUtils"),R(this,"crosshairs"),R(this,"events"),R(this,"fill"),R(this,"localization"),R(this,"options"),R(this,"series"),R(this,"theme"),R(this,"formatters"),R(this,"titleSubtitle"),R(this,"dimensions"),R(this,"updateHelpers"),R(this,"tooltip"),R(this,"data"),R(this,"animations"),R(this,"exports"),R(this,"legend"),R(this,"toolbar"),R(this,"zoomPanSelection"),R(this,"keyboardNavigation"),R(this,"annotations"),R(this,"timeScale"),R(this,"_keyboardNavigation"),R(this,"windowResizeHandler"),R(this,"parentResizeHandler"),R(this,"publicMethods",[]),R(this,"eventList",[]),R(this,"config"),this.opts=e,this.ctx=this,this.w=new $t(e).init(),this.el=t,this.w.globals.cuid=S.randomId(),this.w.globals.chartID=this.w.config.chart.id?S.escapeString(this.w.config.chart.id):this.w.globals.cuid,ts(this.w),new Ct(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),P.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var t,e;return(e=(t=this.w)==null?void 0:t.config)!=null&&e.chart?new Promise((s,i)=>{var a;if(S.elementExists(this.el)){typeof Apex._chartInstances>"u"&&(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 o=this.w.config.chart.events.beforeMount;if(typeof o=="function"&&o(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),P.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),ws(this.el.parentNode,this.parentResizeHandler);let n=this.el.getRootNode&&this.el.getRootNode(),h=S.is("ShadowRoot",n),l=this.el.ownerDocument,c=h?n.getElementById("apexcharts-css"):l.getElementById("apexcharts-css");if(!c){c=F.createElementNS("http://www.w3.org/1999/xhtml","style"),c.id="apexcharts-css",c.textContent=As;let d=((a=this.opts.chart)==null?void 0:a.nonce)||this.w.config.chart.nonce;d&&c.setAttribute("nonce",d),h?n.prepend(c):this.w.config.chart.injectStyleSheet!==!1&&l.head.appendChild(c)}}let r=this.create(this.w.config.series,{});if(!r)return s(this);this.mount(r).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]),s(r)}).catch(n=>{var h,l;let c=n instanceof Error?n:new Error(String(n)),d=c;d.chartId=(l=(h=this.w)==null?void 0:h.globals)==null?void 0:l.chartID,d.el=this.el,i(c)})}else i(new Error("Element not found"))}):Promise.reject(new Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."))}create(t,e){var s;let i=this.w;this.core||new Ct(this).initModules();let a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,!S.elementExists(this.el)||(this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new lt(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;let o=t;t.forEach((b,x)=>{b.hidden&&(o=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:x}))});let r=j.checkComboSeries(o,i.config.chart.type);a.comboCharts=r.comboCharts,a.comboBarCount=r.comboBarCount;let n=o.every(b=>b.data&&b.data.length===0);(o.length===0||n&&a.collapsedSeries.length<1)&&this.series.handleNoData(),P.isBrowser()&&this.events.setupEventHandlers();let h=this.data.parseData(o);this._writeParsedSeriesData(h.seriesData),this._writeParsedRangeData(h.rangeData),this._writeParsedCandleData(h.candleData),this._writeParsedLabelData(h.labelData),this._writeParsedAxisFlags(h.axisFlags),this.theme.init(),new bt(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),(!a.noData||a.collapsedSeries.length===i.seriesData.series.length||i.config.legend.showForSingleSeries)&&((s=this.legend)==null||s.init()),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX)),this.formatters.heatmapLabelFormatters(),new j(this.w).getLargestMarkerSize();let d=this.dimensions.plotCoords();this._writeLayoutCoords(d.layout);let f=this.core.xySettings();this.grid.createGridMask();let g=this.core.plotChartType(o,f),p=new _t(this.w,this);p.bringForward(),i.config.dataLabels.background.enabled&&p.dataLabelsBackground(),this.core.shiftGraphPosition(),i.globals.dataPoints>50&&i.dom.elWrap.classList.add("apexcharts-disable-transitions");let u={plot:{left:i.layout.translateX,top:i.layout.translateY,width:i.layout.gridWidth,height:i.layout.gridHeight}};return{elGraph:g,xyRatios:f,dimensions:u}}mount(t=null){let e=this,s=e.w;return new Promise((i,a)=>{var o,r,n,h,l,c,d,f,g;if(e.el===null)return a(new Error("Not enough data to display or target element not found"));(t===null||s.globals.allSeriesCollapsed)&&e.series.handleNoData(),e.grid=new Mt(e.w,e);let p=e.grid.drawGrid(),u=Ct._featureRegistry.get("annotations");if(e.annotations=u?new u(e.w,{theme:e.theme,timeScale:e.timeScale}):null,(o=e.annotations)==null||o.drawImageAnnos(),(r=e.annotations)==null||r.drawTextAnnos(),s.config.grid.position==="back"&&(p&&s.dom.elGraphical.add(p.el),(n=p?.elGridBorders)!=null&&n.node&&s.dom.elGraphical.add(p.elGridBorders)),Array.isArray(t.elGraph))for(let y=0;y<t.elGraph.length;y++)s.dom.elGraphical.add(t.elGraph[y]);else s.dom.elGraphical.add(t.elGraph);s.config.grid.position==="front"&&(p&&s.dom.elGraphical.add(p.el),(h=p?.elGridBorders)!=null&&h.node&&s.dom.elGraphical.add(p.elGridBorders)),s.config.xaxis.crosshairs.position==="front"&&e.crosshairs.drawXCrosshairs(),s.config.yaxis[0].crosshairs.position==="front"&&e.crosshairs.drawYCrosshairs(),s.config.chart.type!=="treemap"&&e.axes.drawAxis(s.config.chart.type,p);let b=new ht(this.w,this.ctx,p),x=new vt(this.w,{theme:this.theme,timeScale:this.timeScale},p);if(p!==null&&(b.xAxisLabelCorrections(),x.setYAxisTextAlignments(),s.config.yaxis.map((y,w)=>{s.globals.ignoreYAxisIndexes.indexOf(w)===-1&&x.yAxisTitleRotate(w,y.opposite)})),(l=e.annotations)==null||l.drawAxesAnnotations(),!s.globals.noData){if(P.isBrowser()&&s.config.tooltip.enabled&&!s.globals.noData&&((c=e.w.globals.tooltip)==null||c.drawTooltip(t.xyRatios)),s.config.chart.accessibility.enabled&&s.config.chart.accessibility.keyboard.enabled&&s.config.chart.accessibility.keyboard.navigation.enabled&&((d=e.keyboardNavigation)==null||d.init()),P.isBrowser()&&s.globals.axisCharts&&(s.axisFlags.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.axisFlags.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.config.chart.pan.enabled)&&((f=e.zoomPanSelection)==null||f.init({xyRatios:t.xyRatios}));else{let y=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(A=>{y[A]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&((g=e.toolbar)==null||g.createToolbar())}s.globals.memory.methodsToExec.length>0&&s.globals.memory.methodsToExec.forEach(y=>{y.method(y.params,!1,y.context)}),!s.globals.axisCharts&&!s.globals.noData&&e.core.resizeNonAxisCharts(),i(e)})}destroy(){P.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),vs(this.el.parentNode,this.parentResizeHandler));let t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((e,s)=>{e.id===S.escapeString(t)&&Apex._chartInstances.splice(s,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new Nt(this.ctx).clear({isUpdating:!1})}updateOptions(t,e=!1,s=!0,i=!0,a=!0){let o=this.w;if(o.interact.selection=void 0,this.lastUpdateOptions){if(S.shallowEqual(this.lastUpdateOptions,t))return Promise.resolve(this);if(t.series&&this.lastUpdateOptions.series&&JSON.stringify(this.lastUpdateOptions.series)===JSON.stringify(t.series)){let r=Y({},t),n=Y({},this.lastUpdateOptions);if(delete r.series,delete n.series,S.shallowEqual(r,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((r,n)=>this.updateHelpers._extendSeries(r,n))),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,e,s,i,a)}updateSeries(t=[],e=!0,s=!0){return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,s)}appendSeries(t,e=!0,s=!0){this.data.resetParsingFlags();let i=this.w.config.series.slice();return i.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,e,s)}appendData(t,e=!0){let s=this;s.data.resetParsingFlags(),s.w.globals.dataChanged=!0,s.series.getPreviousPaths();let i=s.w.config.series.slice();for(let a=0;a<i.length;a++)if(t[a]!==null&&typeof t[a]<"u"){let o=t[a],r=i[a];for(let n=0;n<o.data.length;n++)r.data.push(o.data[n])}return s.w.config.series=i,e&&(s.w.globals.initialSeries=S.clone(s.w.config.series)),this.update()}update(t){return new Promise((e,s)=>{if(this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(t))return e(this);this.lastUpdateOptions=S.clone(t),new Nt(this.ctx).clear({isUpdating:!0});let i=this.create(this.w.config.series,t??{});if(!i)return e(this);this.mount(i).then(()=>{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,e(this)}).catch(a=>{s(a)})})}fastUpdate(t){return new Promise((e,s)=>{var i;try{let a=this.w,o=a.globals;o.shouldAnimate=t,o.dataChanged=!0,o.animationEnded=!1,yt.invalidateSelectors(a);let r=a.globals;r.maxY=-Number.MAX_VALUE,r.minY=Number.MIN_VALUE,r.minYArr=[],r.maxYArr=[],r.maxX=-Number.MAX_VALUE,r.minX=Number.MAX_VALUE,r.initialMaxX=-Number.MAX_VALUE,r.initialMinX=Number.MAX_VALUE,r.yAxisScale=[],r.xAxisScale=null,r.xAxisTicksPositions=[],r.xRange=0,r.yRange=[],r.zRange=0,r.xTickAmount=0,r.multiAxisTickAmount=0,r.pointsArray=[],r.dataLabelsRects=[],r.lastDrawnDataLabelsIndexes=[],r.textRectsCache=new Map,r.domCache=new Map,r.cachedSelectors={},r.disableZoomIn=!1,r.disableZoomOut=!1,o.axisCharts&&(this.core.coreCalculations(),a.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters());let n=this.core.xySettings(),h=a.dom.elGraphical.node;h.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(p=>{var u;return(u=p.parentNode)==null?void 0:u.removeChild(p)});let c=this.core.plotChartType(a.config.series,n),d=h.querySelector(".apexcharts-grid"),f=Array.isArray(c)?c:[c];d&&a.config.grid.position==="front"?f.forEach(p=>{let u=p&&p.node?p.node:p;u&&h.insertBefore(u,d)}):f.forEach(p=>{a.dom.elGraphical.add(p)});let g=new _t(a,this);g.bringForward(),a.config.dataLabels.background.enabled&&g.dataLabelsBackground(),P.isBrowser()&&a.config.tooltip.enabled&&!o.noData&&((i=a.globals.tooltip)==null||i.drawTooltip(n)),typeof a.config.chart.events.updated=="function"&&a.config.chart.events.updated(this,a),this.events.fireEvent("updated",[this,a]),o.isDirty=!0,e(this)}catch(a){s(a)}})}getSyncedCharts(){let t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(s=>{e.push(s)})),e}getGroupedCharts(){return Apex._chartInstances.filter(t=>{if(t.group)return!0}).map(t=>this.w.config.chart.group===t.group?t.chart:this)}static getChartByID(t){let e=S.escapeString(t);if(!Apex._chartInstances)return;let s=Apex._chartInstances.filter(i=>i.id===e)[0];return s&&s.chart}static initOnLoad(){var t;let e=document.querySelectorAll("[data-apexcharts]");for(let s=0;s<e.length;s++){let i=e[s],a=JSON.parse((t=e[s].getAttribute("data-options"))!=null?t:"");new m(i,a).render()}}static exec(t,e,...s){let i=this.getChartByID(t);if(!i)return;i.w.globals.isExecCalled=!0;let a=null;return i.publicMethods.indexOf(e)!==-1&&(a=i[e](...s)),a}static merge(t,e){return S.extend(t,e)}static getThemePalettes(){return Zt()}static use(t){as(t)}static registerFeatures(t){Ct.registerFeatures(t)}toggleSeries(t){return this.series.toggleSeries(t)}highlightSeriesOnLegendHover(t,e){return this.series.toggleSeriesOnHover(t,e)}showSeries(t){this.series.showSeries(t)}hideSeries(t){this.series.hideSeries(t)}highlightSeries(t){this.series.highlightSeries(t)}isSeriesHidden(t){return this.series.isSeriesHidden(t)}resetSeries(t=!0,e=!0){this.series.resetSeries(t,e)}addEventListener(t,e){this.events.addEventListener(t,e)}removeEventListener(t,e){this.events.removeEventListener(t,e)}addXaxisAnnotation(t,e=!0,s=void 0){var i;let a=this;s&&(a=s),(i=a.annotations)==null||i.addXaxisAnnotationExternal(t,e,a)}addYaxisAnnotation(t,e=!0,s=void 0){var i;let a=this;s&&(a=s),(i=a.annotations)==null||i.addYaxisAnnotationExternal(t,e,a)}addPointAnnotation(t,e=!0,s=void 0){var i;let a=this;s&&(a=s),(i=a.annotations)==null||i.addPointAnnotationExternal(t,e,a)}clearAnnotations(t=void 0){var e;let s=this;t&&(s=t),(e=s.annotations)==null||e.clearAnnotations(s)}removeAnnotation(t,e=void 0){var s;let i=this;e&&(i=e),(s=i.annotations)==null||s.removeAnnotation(i,t)}getChartArea(){return this.w.dom.baseEl.querySelector(".apexcharts-inner")}getSeriesTotalXRange(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}getHighestValueInSeries(t=0){return new wt(this.w).getMinYMaxY(t).highestY}getLowestValueInSeries(t=0){return new wt(this.w).getMinYMaxY(t).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){let t=this.w,e=t.globals;return{series:t.seriesData.series,seriesNames:t.seriesData.seriesNames,colors:e.colors,labels:t.labelData.labels,seriesTotals:e.seriesTotals,seriesPercent:e.seriesPercent,seriesXvalues:e.seriesXvalues,seriesYvalues:e.seriesYvalues,minX:e.minX,maxX:e.maxX,minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,minXDiff:e.minXDiff,dataPoints:e.dataPoints,xAxisScale:e.xAxisScale,yAxisScale:e.yAxisScale,xTickAmount:e.xTickAmount,isXNumeric:t.axisFlags.isXNumeric,seriesYAxisMap:e.seriesYAxisMap,seriesYAxisReverseMap:e.seriesYAxisReverseMap,svgWidth:e.svgWidth,svgHeight:e.svgHeight,gridWidth:t.layout.gridWidth,gridHeight:t.layout.gridHeight,selectedDataPoints:t.interact.selectedDataPoints,collapsedSeriesIndices:e.collapsedSeriesIndices,zoomed:t.interact.zoomed,seriesX:t.seriesData.seriesX,seriesZ:t.seriesData.seriesZ,seriesCandleO:t.candleData.seriesCandleO,seriesCandleH:t.candleData.seriesCandleH,seriesCandleM:t.candleData.seriesCandleM,seriesCandleL:t.candleData.seriesCandleL,seriesCandleC:t.candleData.seriesCandleC,seriesRangeStart:t.rangeData.seriesRangeStart,seriesRangeEnd:t.rangeData.seriesRangeEnd,seriesGoals:t.seriesData.seriesGoals}}toggleDataPointSelection(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}zoomX(t,e){var s;(s=this.ctx.toolbar)==null||s.zoomUpdateOptions(t,e)}setLocale(t){this.localization.setCurrentLocaleValues(t)}dataURI(t){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.dataURI(t)}getSvgString(t){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.getSvgString(t)}exportToCSV(t={}){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.exportToCSV(t)}paper(){return this.w.dom.Paper}_writeParsedSeriesData(t){Object.assign(this.w.seriesData,t)}_writeParsedRangeData(t){Object.assign(this.w.rangeData,t)}_writeParsedCandleData(t){Object.assign(this.w.candleData,t)}_writeParsedLabelData(t){Object.assign(this.w.labelData,t)}_writeParsedAxisFlags(t){Object.assign(this.w.axisFlags,t)}_writeLayoutCoords(t){Object.assign(this.w.layout,t)}_parentResizeCallback(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}_windowResize(){this.w.globals.resizeTimer=window.setTimeout(()=>{this.w.globals.resized=!0,this.w.globals.dataChanged=!1,this.ctx.update()},150)}_windowResizeHandler(){var t;clearTimeout((t=this.w.globals.resizeTimer)!=null?t:void 0);let{redrawOnWindowResize:e}=this.w.config.chart;typeof e=="function"&&(e=e()),e&&this._windowResize()}};export{mt as __apex_Animations,ts as __apex_Animations_applyAnimationPolicy,Vt as __apex_Animations_applyProgressiveReveal,es as __apex_Animations_computeStagger,Qe as __apex_Animations_prefersReducedMotion,$t as __apex_Base,F as __apex_BrowserAPIs_BrowserAPIs,q as __apex_ChartFactory_getChartClass,as as __apex_ChartFactory_register,ct as __apex_Config,He as __apex_Constants_LINE_HEIGHT_RATIO,Oe as __apex_Constants_NICE_SCALE_ALLOWED_MAG_MSD,Ut as __apex_Constants_NICE_SCALE_DEFAULT_TICKS,ce as __apex_Core,j as __apex_CoreUtils,At as __apex_Crosshairs,Wt as __apex_DOMShim_SSRClassList,Gt as __apex_DOMShim_SSRDOMShim,kt as __apex_DOMShim_SSRElement,Et as __apex_Data,_t as __apex_DataLabels,V as __apex_DateTime,lt as __apex_Defaults,P as __apex_Environment_Environment,Kt as __apex_Events,Tt as __apex_Fill,J as __apex_Filters,nt as __apex_Formatters,Dt as __apex_Globals,L as __apex_Graphics,bt as __apex_Markers,tt as __apex_Options,hs as __apex_PathMorphing_arrayToPath,ps as __apex_PathMorphing_morphPaths,Le as __apex_PathMorphing_parsePath,Ee as __apex_PathMorphing_pathBbox,yt as __apex_PerformanceCache,wt as __apex_Range,ws as __apex_Resize_addResizeListener,vs as __apex_Resize_removeResizeListener,te as __apex_Responsive,Se as __apex_SVGAnimation_SVGAnimationRunner,ms as __apex_SVGAnimation_installAnimationMethods,St as __apex_SVGContainer,bs as __apex_SVGDraggable_installDraggable,$ as __apex_SVGElement,Ae as __apex_SVGFilter_FilterBuilder,ve as __apex_SVGFilter_SVGFilter,cs as __apex_SVGFilter_installFilterMethods,xe as __apex_SVGGradient_SVGGradient,be as __apex_SVGPattern_SVGPattern,ys as __apex_SVGSelectable_installSelectable,jt as __apex_Scales,st as __apex_Series,ee as __apex_Theme,Zt as __apex_ThemePalettes_getThemePalettes,ne as __apex_TimeScale,se as __apex_TitleSubtitle,S as __apex_Utils,Qt as __apex_axes_Axes,et as __apex_axes_AxesUtils,Mt as __apex_axes_Grid,ht as __apex_axes_XAxis,vt as __apex_axes_YAxis,qt as __apex_charts_Scatter,Lt as __apex_dimensions_Dimensions,oe as __apex_dimensions_Grid,ie as __apex_dimensions_Helpers,ae as __apex_dimensions_XAxis,re as __apex_dimensions_YAxis,Nt as __apex_helpers_Destroy,Ct as __apex_helpers_InitCtxVariables,Jt as __apex_helpers_Localization,he as __apex_helpers_UpdateHelpers,_e as __apex_index_Box,Pt as __apex_index_SVG,_e as __apex_math_Box,xt as __apex_math_Matrix,K as __apex_math_Point,B as __apex_math_SVGNS,pe as __apex_tooltip_AxesTooltip,ge as __apex_tooltip_Intersect,de as __apex_tooltip_Labels,fe as __apex_tooltip_Marker,Xt as __apex_tooltip_Position,ue as __apex_tooltip_Tooltip,Ft as __apex_tooltip_Utils,Ye as default};
|