PageSourceSearch

https://piscine-nostress.fr/8234.69c9989cc528e079.js

js piscine-nostress.fr collected 2026-10-07 22:39:40 UTC 340,141 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[8234],{78234(rs,$t,Ut){Ut.r($t),Ut.d($t,{__apex_Animations:()=>xt,__apex_Base:()=>Kt,__apex_BrowserAPIs_BrowserAPIs:()=>F,__apex_ChartFactory_getChartClass:()=>U,__apex_ChartFactory_register:()=>pe,__apex_Config:()=>lt,__apex_Constants_LINE_HEIGHT_RATIO:()=>_t,__apex_Constants_NICE_SCALE_ALLOWED_MAG_MSD:()=>Lt,__apex_Constants_NICE_SCALE_DEFAULT_TICKS:()=>ut,__apex_Core:()=>ue,__apex_CoreUtils:()=>q,__apex_Crosshairs:()=>At,__apex_DOMShim_SSRClassList:()=>qt,__apex_DOMShim_SSRDOMShim:()=>jt,__apex_DOMShim_SSRElement:()=>dt,__apex_Data:()=>ft,__apex_DataLabels:()=>Et,__apex_DateTime:()=>O,__apex_Defaults:()=>ot,__apex_Environment_Environment:()=>M,__apex_Events:()=>ee,__apex_Fill:()=>Mt,__apex_Filters:()=>Z,__apex_Formatters:()=>rt,__apex_Globals:()=>Tt,__apex_Graphics:()=>_,__apex_Markers:()=>mt,__apex_Options:()=>st,__apex_PathMorphing_arrayToPath:()=>_e,__apex_PathMorphing_morphPaths:()=>Fe,__apex_PathMorphing_parsePath:()=>Ht,__apex_PathMorphing_pathBbox:()=>Bt,__apex_PerformanceCache:()=>bt,__apex_Range:()=>yt,__apex_Resize_addResizeListener:()=>He,__apex_Resize_removeResizeListener:()=>Be,__apex_Responsive:()=>ae,__apex_SVGAnimation_SVGAnimationRunner:()=>St,__apex_SVGAnimation_installAnimationMethods:()=>Pe,__apex_SVGContainer:()=>ct,__apex_SVGDraggable_installDraggable:()=>Ne,__apex_SVGElement:()=>B,__apex_SVGFilter_FilterBuilder:()=>ke,__apex_SVGFilter_SVGFilter:()=>Ce,__apex_SVGFilter_installFilterMethods:()=>De,__apex_SVGGradient_SVGGradient:()=>Ae,__apex_SVGPattern_SVGPattern:()=>Se,__apex_SVGSelectable_installSelectable:()=>Re,__apex_Scales:()=>te,__apex_Series:()=>J,__apex_Theme:()=>re,__apex_ThemePalettes_getThemePalettes:()=>wt,__apex_TimeScale:()=>fe,__apex_TitleSubtitle:()=>oe,__apex_Utils:()=>A,__apex_axes_Axes:()=>ie,__apex_axes_AxesUtils:()=>it,__apex_axes_Grid:()=>Ft,__apex_axes_XAxis:()=>nt,__apex_axes_YAxis:()=>vt,__apex_charts_Scatter:()=>Qt,__apex_dimensions_Dimensions:()=>Xt,__apex_dimensions_Grid:()=>he,__apex_dimensions_Helpers:()=>le,__apex_dimensions_XAxis:()=>ne,__apex_dimensions_YAxis:()=>ce,__apex_helpers_Destroy:()=>zt,__apex_helpers_InitCtxVariables:()=>pt,__apex_helpers_Localization:()=>se,__apex_helpers_UpdateHelpers:()=>xe,__apex_index_Box:()=>Jt,__apex_index_SVG:()=>gt,__apex_math_Box:()=>Jt,__apex_math_Matrix:()=>Q,__apex_math_Point:()=>j,__apex_math_SVGNS:()=>Y,__apex_tooltip_AxesTooltip:()=>we,__apex_tooltip_Intersect:()=>ye,__apex_tooltip_Labels:()=>me,__apex_tooltip_Marker:()=>be,__apex_tooltip_Position:()=>Yt,__apex_tooltip_Tooltip:()=>ve,__apex_tooltip_Utils:()=>Rt,default:()=>It});var Oe=Object.defineProperty,Ie=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ct=(b,t,e)=>t in b?Oe(b,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):b[t]=e,R=(b,t)=>{for(var e in t||(t={}))Ge.call(t,e)&&Ct(b,e,t[e]);if(Vt)for(var e of Vt(t))$e.call(t,e)&&Ct(b,e,t[e]);return b},z=(b,t)=>Ie(b,We(t)),N=(b,t,e)=>Ct(b,"symbol"!=typeof t?t+"":t,e);class M{static isSSR(){return typeof window>"u"||typeof document>"u"}static isBrowser(){return!this.isSSR()}static hasAPI(t){return!this.isSSR()&&typeof window[t]<"u"}static getApex(){return typeof window<"u"&&window.Apex?window.Apex:typeof global<"u"&&global.Apex?global.Apex:{}}}class dt{constructor(t,e=null){this.nodeName=t,this.namespaceURI=e,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new qt,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){const e=this.children.indexOf(t);-1!==e&&this.children.splice(e,1)}t.parentNode=this,this.children.push(t)}return t}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&(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){const i=this.children.indexOf(t);-1!==i&&this.children.splice(i,1)}const s=this.children.indexOf(e);return-1!==s&&(t.parentNode=this,this.children.splice(s,0,t)),t}cloneNode(t=!1){const e=new dt(this.nodeName,this.namespaceURI);
vendor: 13,768 bytes, line 1
1return 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}"`}),0===this.children.length&&!this.textContent)return`<${this.nodeName}${t}/>`;const 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}}class qt{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!0===e?(this.classes.add(t),!0):!1===e||this.classes.has(t)?(this.classes.delete(t),!1):(this.classes.add(t),!0)}toString(){return Array.from(this.classes).join(" ")}}class jt{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(t,e){return new dt(e,t)}createTextNode(t){const e={nodeName:"#text",nodeType:3,textContent:t,toString:()=>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=>t.toString?t.toString():""}}createDOMParser(){return{parseFromString(t,e){const s=new dt("root");return s.innerHTML=t,{documentElement:s}}}}}let $=null,tt=null,et=null;class F{static init(){M.isSSR()&&!$&&($=new jt)}static createElement(t){return M.isSSR()?($||this.init(),$.createElementNS(null,t)):document.createElement(t)}static createElementNS(t,e){return M.isSSR()?($||this.init(),$.createElementNS(t,e)):document.createElementNS(t,e)}static createTextNode(t){return M.isSSR()?($||this.init(),$.createTextNode(t)):document.createTextNode(t)}static querySelector(t){return M.isSSR()?null:document.querySelector(t)}static querySelectorAll(t){return M.isSSR()?[]:document.querySelectorAll(t)}static getComputedStyle(t){return M.isSSR()?{}:window.getComputedStyle(t)}static getBoundingClientRect(t){return M.isSSR()?($||this.init(),$.getBoundingClientRect(t)):t?t.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return M.isSSR()?($||this.init(),tt||(tt=$.createXMLSerializer()),tt):(tt||(tt=new XMLSerializer),tt)}static getDOMParser(){return M.isSSR()?($||this.init(),et||(et=$.createDOMParser()),et):(et||(et=new DOMParser),et)}static addWindowEventListener(t,e,s){M.isBrowser()&&window.addEventListener(t,e,s)}static removeWindowEventListener(t,e,s){M.isBrowser()&&window.removeEventListener(t,e,s)}static requestAnimationFrame(t){return M.isBrowser()?window.requestAnimationFrame(t):(t(0),null)}static cancelAnimationFrame(t){M.isBrowser()&&t&&window.cancelAnimationFrame(t)}static elementExists(t){return!!t&&(M.isSSR()?!0===t._ssrMode||void 0!==t.nodeName:!!t.getRootNode&&(t.getRootNode({composed:!0})===document||t.isConnected))}static getWindow(){return M.isBrowser()?window:null}static getDocument(){return M.isBrowser()?document:null}static _getShim(){return $}static _resetShim(){$=null,tt=null,et=null}}let A=class ht{static isObject(t){return t&&"object"==typeof t&&!Array.isArray(t)}static is(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}static isSafari(){return M.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(t,e){const 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){const s=[];return t.map(i=>{s.push(ht.extend(e,i))}),s}static monthMod(t){return t%12}static clone(t,e=new WeakMap,s=!1){if(null===t||"object"!=typeof t)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(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=this.clone(t[a],e,!1))}return i}static shallowClone(t){return null===t||"object"!=typeof t?t:Array.isArray(t)?t.slice():Object.assign({},t)}static shallowEqual(t,e){if(t===e)return!0;if(!t||!e)return!1;if("object"!=typeof t||"object"!=typeof e)return t===e;const s=Object.keys(t),i=Object.keys(e);if(s.length!==i.length)return!1;for(const 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"number"==typeof t||null===t?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;const e=t.getRootNode();return e&&e!==document&&ht.is("ShadowRoot",e)}static getShadowRootHost(t){return ht.isInShadowDOM(t)&&t.getRootNode().host||null}static getDimensions(t){if(!t)return[0,0];if(M.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){const 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(M.isSSR())return F.getBoundingClientRect(t);const 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");const s=t.replace("#",""),i=s.match(new RegExp("(.{"+s.length/3+"})","g"))||[];for(let a=0;a<i.length;a++)i[a]=parseInt(1===i[a].length?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 rgb2hex(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("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){const s=e.split(","),i=t<0?0:255,a=t<0?-1*t:t,o=parseInt(s[0].slice(4),10),r=parseInt(s[1],10),l=parseInt(s[2],10);return"rgb("+(Math.round((i-o)*a)+o)+","+(Math.round((i-r)*a)+r)+","+(Math.round((i-l)*a)+l)+")"}shadeHexColor(t,e){const s=parseInt(e.slice(1),16),i=t<0?0:255,a=t<0?-1*t:t,o=s>>16,r=s>>8&255,l=255&s;return"#"+(16777216+65536*(Math.round((i-o)*a)+o)+256*(Math.round((i-r)*a)+r)+(Math.round((i-l)*a)+l)).toString(16).slice(1)}shadeColor(t,e){return ht.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("string"!=typeof t)return!1;const e=t.trim();return e.startsWith("var(")&&e.endsWith(")")}static getThemeColor(t){if(!ht.isCSSVariable(t)||M.isSSR())return t;const e=document.createElement("div");let s;e.style.cssText="position:fixed; left: -9999px; visibility:hidden;",e.style.color=t,document.body.appendChild(e);try{s=window.getComputedStyle(e).color}finally{e.parentNode&&e.parentNode.removeChild(e)}return s}static applyOpacityToColor(t,e){const s=Number(e);return Number.isFinite(s)?s<=0?"transparent":s>=1?t:`color-mix(in srgb, ${t} ${Math.round(100*s)}%, transparent)`:t}static getPolygonPos(t,e){const s=[],i=2*Math.PI/e;for(let a=0;a<e;a++){const 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){const 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(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t.style.key=e[s])}static preciseAddition(t,e){const 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(M.isSSR())return!1;const t=window.navigator.userAgent,e=t.indexOf("Edge/");return e>0&&parseInt(t.substring(e+5,t.indexOf(".",e)),10)}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;){const a=e;e=t%e,t=a}return t/i}static getPrimeFactors(t){const e=[];let s=2;for(;t>=2;)t%s==0?(e.push(s),t/=s):s++;return e}static mod(t,e,s=7){const 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))/i}};class O{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"number"!=typeof t&&!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){const 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){const s=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,a=["\0",...s.months],o=["\x01",...s.shortMonths],r=["\x02",...s.days],l=["\x03",...s.shortDays];function c(C,L=2){let D=C+"";for(;D.length<L;)D="0"+D;return D}const n=i?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+n)).replace(/(^|[^\\])yy/g,"$1"+n.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+n);const h=(i?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+c(h))).replace(/(^|[^\\])M/g,"$1"+h);const d=i?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+l[0])).replace(/(^|[^\\])dd/g,"$1"+c(d))).replace(/(^|[^\\])d/g,"$1"+d);const g=i?t.getUTCHours():t.getHours(),f=g>12?g-12:0===g?12:g;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+c(g))).replace(/(^|[^\\])H/g,"$1"+g)).replace(/(^|[^\\])hh+/g,"$1"+c(f))).replace(/(^|[^\\])h/g,"$1"+f);const p=i?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+c(p))).replace(/(^|[^\\])m/g,"$1"+p);const u=i?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+c(u))).replace(/(^|[^\\])s/g,"$1"+u);let m=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+c(m,3)),m=Math.round(m/10),e=e.replace(/(^|[^\\])ff/g,"$1"+c(m)),m=Math.round(m/10);const x=g<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+x)).replace(/(^|[^\\])T/g,"$1"+x.charAt(0));const y=x.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));let w=-t.getTimezoneOffset(),S=i||!w?"Z":w>0?"+":"-";if(!i){w=Math.abs(w);const L=w%60;S+=c(Math.floor(w/60))+":"+c(L)}e=e.replace(/(^|[^\\])K/g,"$1"+S);const v=(i?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(r[0],"g"),r[v])).replace(new RegExp(l[0],"g"),l[v])).replace(new RegExp(a[0],"g"),a[h])).replace(new RegExp(o[0],"g"),o[h])).replace(/\\(.)/g,"$1")}getTimeUnitsfromTimestamp(t,e){const s=this.w;void 0!==s.config.xaxis.min&&(t=s.config.xaxis.min),void 0!==s.config.xaxis.max&&(e=s.config.xaxis.max);const 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:
1parseInt(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=A.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(s=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:s=31}return s}}class rt{constructor(t){this.w=t,this.tooltipKeyFormat="dd MMM"}xLabelFormat(t,e,s,i){const a=this.w;if("datetime"===a.config.xaxis.type&&void 0===a.config.xaxis.labels.formatter&&void 0===a.config.tooltip.x.formatter){const o=new O(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){const s=this.w;if(A.isNumber(t))if(0!==s.globals.yValueDecimal)t=t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:s.globals.yValueDecimal);else{const i=t.toFixed(0);t=Number(i)===t?i:t.toFixed(1)}return t}setLabelFormatters(){const 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),e.xLabelFormatter=void 0!==t.config.xaxis.labels.formatter?t.config.xaxis.labels.formatter:s=>{if(A.isNumber(s)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(A.isNumber(t.config.xaxis.decimalsInFloat))return s.toFixed(t.config.xaxis.decimalsInFloat);{const i=t.globals.maxX-t.globals.minX;return s.toFixed(i>0&&i<100?1:0)}}return s.toFixed(t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?1:0)}return s},e.ttKeyFormatter="function"==typeof t.config.tooltip.x.formatter?t.config.tooltip.x.formatter:e.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(e.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(e.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(e.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(e.legendFormatter=t.config.legend.formatter),e.yLabelFormatters=[],t.config.yaxis.forEach((s,i)=>{e.yLabelFormatters[i]=void 0!==s.labels.formatter?s.labels.formatter:a=>t.globals.xyCharts?Array.isArray(a)?a.map(o=>this.defaultYFormatter(o,s)):this.defaultYFormatter(a,s):a}),t.globals}heatmapLabelFormatters(){const t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.seriesData.seriesNames.slice();const 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}}}const kt=({isTimeline:b,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a})=>{var o;let r=a.rangeData.seriesRangeStart[t][e],l=a.rangeData.seriesRangeEnd[t][e],c=a.labelData.labels[e],n=a.config.series[t].name?a.config.series[t].name:"";const h=a.formatters.ttKeyFormatter,d=a.config.tooltip.y.title.formatter,g={w:a,seriesIndex:t,dataPointIndex:e,start:r,end:l};"function"==typeof d&&(n=d(n,g)),null!=(o=a.config.series[t].data[e])&&o.x&&(c=a.config.series[t].data[e].x),b||"datetime"===a.config.xaxis.type&&(c=new rt(a).xLabelFormat(a.formatters.ttKeyFormatter,c,c,{i:void 0,dateFormatter:new O(a).formatDate,w:a})),"function"==typeof h&&(c=h(c,g)),Number.isFinite(s)&&Number.isFinite(i)&&(r=s,l=i);let f="",p="";const u=a.globals.colors[t];if(void 0===a.config.tooltip.x.formatter)if("datetime"===a.config.xaxis.type){const m=new O(a);f=m.formatDate(m.getDate(r),a.config.tooltip.x.format),p=m.formatDate(m.getDate(l),a.config.tooltip.x.format)}else f=r,p=l;else f=a.config.tooltip.x.formatter(r),p=a.config.tooltip.x.formatter(l);return{start:r,end:l,startVal:f,endVal:p,ylabel:c,color:u,seriesName:n}},Dt=b=>{let{color:t,seriesName:e,ylabel:s,start:i,end:a,seriesIndex:o,dataPointIndex:r}=b;const l=b.w.globals.tooltip.tooltipLabels.getFormatters(o);i=l.yLbFormatter(i),a=l.yLbFormatter(a);const c=l.yLbFormatter(b.w.seriesData.series[o][r]);let n="";const h=`<span class="value start-value">\n  ${i}\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ${a}\n  </span>`;return n=b.w.globals.comboCharts?"rangeArea"===b.w.config.series[o].type||"rangeBar"===b.w.config.series[o].type?h:`<span>${c}</span>`:h,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+s+": </span> "+n+" </div></div>"};
1class ot{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){return this.hideYAxis(),A.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:(t,e)=>null!==t?e.w.config.series[e.seriesIndex].name+": "+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(),z(R({},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}}})}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(){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}){const r=()=>o.rangeData.seriesRangeEnd[i][a]-o.rangeData.seriesRangeStart[i][a];return o.globals.comboCharts?"rangeBar"===o.config.series[i].type||"rangeArea"===o.config.series[i].type?r():s:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:s=>s.w.config.plotOptions&&s.w.config.plotOptions.bar&&s.w.config.plotOptions.bar.horizontal?(s=>{const{color:i,seriesName:a,ylabel:o,startVal:r,endVal:l}=kt(z(R({},s),{isTimeline:!0}));return Dt(z(R({},s),{color:i,seriesName:a,ylabel:o,start:r,end:l}))})(s):(s=>{const{color:i,seriesName:a,ylabel:o,start:r,end:l}=kt(s);return Dt(z(R({},s),{color:i,seriesName:a,ylabel:o,start:r,end:l}))})(s)},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(t){var e,s;return null!=(e=t.plotOptions.bar)&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!=(s=t.plotOptions.bar)&&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(){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=>(e=>{const{color:s,seriesName:i,ylabel:a,start:o,end:r}=kt(e);return Dt(z(R({},e),{color:s,seriesName:i,ylabel:a,start:o,end:r}))})(e)}}}brush(t){return A.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}stacked100(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;const e=t.dataLabels.formatter;return t.yaxis.forEach((i,a)=>{t.yaxis[a].min=0,t.yaxis[a].max=100}),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(i){return"number"==typeof i?i&&i.toFixed(0)+"%":i}),t}stackedBars(){const t=this.bar();return z(R({},t),{plotOptions:z(R({},t.plotOptions),{bar:z(R({},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 A.isNumber(a)?Math.floor(a):a};const s=t.xaxis.labels.formatter;let 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 A.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=>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=>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=>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){const l=t.candleData.seriesCandleM[e][s],h=t.config.series[e];return h.type&&h.type!==a?`<div class="apexcharts-custom-tooltip">\n          ${h.name?h.name:"series-"+(e+1)}: <strong>${t.seriesData.series[e][s]}</strong>\n        </div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${t.config.chart.type}"><div>${i[0]}: <span class="value">`+t.candleData.seriesCandleO[e][s]+`</span></div><div>${i[1]}: <span class="value">`+t.candleData.seriesCandleH[e][s]+"</span></div>"+(l?`<div>${i[2]}: <span class="value">`+l+"</span></div>":"")+`<div>${i[3]}: <span class="value">`+t.candleData.seriesCandleL[e][s]+`</span></div><div>${i[4]}: <span class="value">`+t.candleData.seriesCandleC[e][s]+"</span></div></div>"}}const Zt={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","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"}}};class st{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,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}},background:"",locales:[Zt],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"}}
vendor: 4,450 bytes, line 1
1,heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},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,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",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=>t},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:t=>t+"%"},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:t=>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=>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=>t},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:t=>t},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:t=>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=>null!==t?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}}
1,noData:{text:void 0,align:"center",verticalAlign:"middle",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,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:t=>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 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",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:""}}}}}class lt{constructor(t){this.opts=t}init({responsiveOverride:t}){var e,s,i,a,o,r,l,c,n,h;let d=this.opts;const g=new st,f=new ot(d);this.chartType=d.chart.type,d=this.extendYAxis(d),d=this.extendAnnotations(d);let p=g.init(),u={};if(d&&"object"==typeof d){let x={};x=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(d.chart.type)?f[d.chart.type]():f.line(),null!=(s=null==(e=d.plotOptions)?void 0:e.bar)&&s.isFunnel&&(x=f.funnel()),d.chart.stacked&&"bar"===d.chart.type&&(x=f.stackedBars()),null!=(i=d.chart.brush)&&i.enabled&&(x=f.brush(x)),null!=(o=null==(a=d.plotOptions)?void 0:a.line)&&o.isSlopeChart&&(x=f.slope()),d.chart.stacked&&"100%"===d.chart.stackType&&(d=f.stacked100(d)),null!=(l=null==(r=d.plotOptions)?void 0:r.bar)&&l.isDumbbell&&(d=f.dumbbell(d)),this.checkForDarkTheme(M.getApex()),this.checkForDarkTheme(d),d.xaxis=d.xaxis||M.getApex().xaxis||{},t||(d.xaxis.convertedCatToNumeric=!1),d=this.checkForCatToNumericXAxis(this.chartType,x,d),(null!=(c=d.chart.sparkline)&&c.enabled||null!=(h=null==(n=M.getApex().chart)?void 0:n.sparkline)&&h.enabled)&&(x=f.sparkline(x)),u=A.extend(p,x)}const m=A.extend(u,M.getApex());return p=A.extend(m,d),p=this.handleUserInputErrors(p),p}checkForCatToNumericXAxis(t,e,s){var i,a;const o=new ot(s);return!(("bar"===t||"boxPlot"===t)&&(null==(a=null==(i=s.plotOptions)?void 0:i.bar)?void 0:a.horizontal))&&!("pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t)&&"datetime"!==s.xaxis.type&&"numeric"!==s.xaxis.type&&"between"!==(s.xaxis.tickPlacement?s.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement)&&(s=o.convertCatToNumeric(s)),s}extendYAxis(t,e){const s=new st;(typeof t.yaxis>"u"||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={});const i=M.getApex();
1t.yaxis.constructor!==Array&&i.yaxis&&i.yaxis.constructor!==Array&&(t.yaxis=A.extend(t.yaxis,i.yaxis)),t.yaxis=t.yaxis.constructor!==Array?[A.extend(s.yAxis,t.yaxis)]:A.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,l)=>{if(r.name||(o[l].name=`series-${l+1}`),t.yaxis[l])return t.yaxis[l].seriesName=o[l].name,t.yaxis[l];{const c=A.extend(s.yAxis,t.yaxis[0]);return c.show=!1,c}})),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),this.extendPointAnnotations(t)}extendYAxisAnnotations(t){const e=new st;return t.annotations.yaxis=A.extendArray(typeof t.annotations.yaxis<"u"?t.annotations.yaxis:[],e.yAxisAnnotation),t}extendXAxisAnnotations(t){const e=new st;return t.annotations.xaxis=A.extendArray(typeof t.annotations.xaxis<"u"?t.annotations.xaxis:[],e.xAxisAnnotation),t}extendPointAnnotations(t){const e=new st;return t.annotations.points=A.extendArray(typeof t.annotations.points<"u"?t.annotations.points:[],e.pointAnnotation),t}checkForDarkTheme(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}handleUserInputErrors(t){const 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("bar"===e.chart.type&&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("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),("candlestick"===e.chart.type||"boxPlot"===e.chart.type)&&e.yaxis[0].reversed&&(console.warn(`Reversed y-axis in ${e.chart.type} chart is not supported.`),e.yaxis[0].reversed=!1),e}}const _t=1.618,Lt=[[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];class Tt{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){const e=(r,l,c=l)=>{Object.defineProperty(r,c,{get:()=>t[l],set(n){t[l]=n},enumerable:!0,configurable:!0})},s={};e(s,"series","data");for(const 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,
1configurable:!0});const i={};for(const 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});const a={};for(const 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});const o={};for(const 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:_t,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:Lt,niceScaleDefaultTicks:ut,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(t){const e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=A.extend({},t),e.initialSeries=A.clone(t.series),e.lastXAxis=A.clone(e.initialConfig.xaxis),e.lastYAxis=A.clone(e.initialConfig.yaxis),e}}class Kt{constructor(t){this.opts=t}init(){const t=new lt(this.opts).init({responsiveOverride:!1}),e=(new Tt).init(t),s={config:t,globals:e,dom:{},interact:{zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&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:!!M.isBrowser()&&("ontouchstart"in window||navigator.maxTouchPoints>0)},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[]},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:()=>s.dom,set(i){s.dom=i}
1,enumerable:!1,configurable:!0});for(const i of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(e,i,{get:()=>s.formatters[i],set(a){s.formatters[i]=a},enumerable:!1,configurable:!0});for(const i of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","lastWheelExecution","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(e,i,{get:()=>s.interact[i],set(a){s.interact[i]=a},enumerable:!1,configurable:!0});for(const i of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords"])Object.defineProperty(e,i,{get:()=>s.layout[i],set(a){s.layout[i]=a},enumerable:!1,configurable:!0});for(const i of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(e,i,{get:()=>s.seriesData[i],set(a){s.seriesData[i]=a},enumerable:!1,configurable:!0});for(const i of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(e,i,{get:()=>s.axisFlags[i],set(a){s.axisFlags[i]=a},enumerable:!1,configurable:!0});for(const i of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(e,i,{get:()=>s.labelData[i],set(a){s.labelData[i]=a},enumerable:!1,configurable:!0});for(const i of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(e,i,{get:()=>s.rangeData[i],set(a){s.rangeData[i]=a},enumerable:!1,configurable:!0});for(const i of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(e,i,{get:()=>s.candleData[i],set(a){s.candleData[i]=a},enumerable:!1,configurable:!0});return s}}class q{constructor(t){this.w=t}static checkComboSeries(t,e){let s=!1,i=0,a=0;return void 0===e&&(e="line"),t.length&&typeof t[0].type<"u"&&t.forEach(o=>{("bar"===o.type||"column"===o.type||"candlestick"===o.type||"boxPlot"===o.type)&&i++,typeof o.type<"u"&&o.type!==e&&a++}),a>0&&(s=!0),{comboBarCount:i,comboCharts:s}}getStackedSeriesTotals(t=[]){const e=this.w,s=[];if(0===e.seriesData.series.length)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"&&-1===t.indexOf(o)&&(a+=e.seriesData.series[o][i]);s.push(a)}return s}getSeriesTotalByIndex(t=null){return null===t?this.w.config.series.reduce((e,s)=>e+s,0):this.w.seriesData.series[t].reduce((e,s)=>e+s,0)}getStackedSeriesTotalsByGroups(){const t=this.w,e=[];return t.labelData.seriesGroups.forEach(s=>{const i=[];t.config.series.forEach((o,r)=>{s.indexOf(t.seriesData.seriesNames[r])>-1&&i.push(r)});const a=t.seriesData.series.map((o,r)=>-1===i.indexOf(r)?r:-1).filter(o=>-1!==o);e.push(this.getStackedSeriesTotals(a))}),e}setSeriesYAxisMappings(){const t=this.w.globals,e=this.w.config;let s=[];const i=[],a=[],o=this.w.seriesData.series.length>e.yaxis.length||e.yaxis.some(c=>Array.isArray(c.seriesName));e.series.forEach((c,n)=>{a.push(n),i.push(null)}),e.yaxis.forEach((c,n)=>{s[n]=[]});const r=[];e.yaxis.forEach((c,n)=>{let h=!1;if(c.seriesName){let d=[];Array.isArray(c.seriesName)?d=c.seriesName:d.push(c.seriesName),d.forEach(g=>{e.series.forEach((f,p)=>{if(f.name===g){let u=p;n===p||o?!o||a.indexOf(p)>-1?s[n].push([n,p]):console.warn("Series '"+f.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,n]),u=n),h=!0,u=a.indexOf(u),-1!==u&&a.splice(u,1)}})})}h||r.push(n)}),s=s.map(c=>{const n=[];return c.forEach(h=>{i[h[1]]=h[0],n.push(h[1])}),n});let l=e.yaxis.length-1;for(let c=0;c<r.length&&(l=r[c],s[l]=[],a);c++){const n=a[0];a.shift(),s[l].push(n),i[n]=l}
1a.forEach(c=>{s[l].push(c),i[c]=l}),t.seriesYAxisMap=s.map(c=>c),t.seriesYAxisReverseMap=i.map(c=>c),t.seriesYAxisMap.forEach((c,n)=>{c.forEach(h=>{e.series[h]&&void 0===e.series[h].group&&(e.series[h].group="apexcharts-axis-".concat(n.toString()))})})}isSeriesNull(t=null){let e=[];return e=null===t?this.w.config.series.filter(s=>null!==s):this.w.config.series[t].data.filter(s=>null!==s),0===e.length}seriesHaveSameValues(t){return this.w.seriesData.series[t].every((e,s,i)=>e===i[0])}getCategoryLabels(t){const e=this.w;let s=t.slice();return e.config.xaxis.convertedCatToNumeric&&(s=t.map(i=>e.config.xaxis.labels.formatter(i-e.globals.minX+1))),s}getLargestSeries(){const 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(){const t=this.w;let 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(){const 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){const s=this.w;return s.seriesData.series.map((a,o)=>{let r=0;for(let l=0;l<a.length;l++)s.seriesData.seriesX[o][l]>t&&s.seriesData.seriesX[o][l]<e&&(r+=a[l]);return r})}getPercentSeries(){const t=this.w;t.globals.seriesPercent=t.seriesData.series.map(e=>{const s=[];if(Array.isArray(e))for(let i=0;i<e.length;i++){const a=t.seriesData.stackedSeriesTotals[i];let o=0;a&&(o=100*e[i]/a),s.push(o)}else{const i=t.globals.seriesTotals.reduce((o,r)=>o+r,0);s.push(100*e/i)}return s})}getCalculatedRatios(){const t=this.w,e=t.globals,s=[];let i=0,a=0,o=0,r=0,l=[],c=.1,n=0;if(e.yRange=[],e.isMultipleYAxis)for(let h=0;h<e.minYArr.length;h++)e.yRange.push(Math.abs(e.minYArr[h]-e.maxYArr[h])),l.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 h=0;h<e.yRange.length;h++)s.push(e.yRange[h]/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&&0!==Math.abs(e.minY)&&(e.hasNegs=!0),t.globals.seriesYAxisReverseMap.length>0){const h=(d,g)=>{const f=t.config.yaxis[t.globals.seriesYAxisReverseMap[g]],p=d<0?-1:1;return d=Math.abs(d),f.logarithmic&&(d=this.getBaseLog(f.logBase,d)),-p*d/s[g]};if(e.isMultipleYAxis){l=[];for(let d=0;d<s.length;d++)l.push(h(e.minYArr[d],d))}else l=[],l.push(h(e.minY,0)),e.minY!==Number.MIN_VALUE&&0!==Math.abs(e.minY)&&(c=-e.minY/i,n=e.minX/a)}else l=[],l.push(0),c=0,n=0;return{yRatio:s,invertedYRatio:i,zRatio:r,xRatio:a,invertedXRatio:o,baseLineInvertedY:c,baseLineY:l,baseLineX:n}}getLogSeries(t){const e=this.w;return e.globals.seriesLog=t.map((s,i)=>{const a=e.globals.seriesYAxisReverseMap[i];return e.config.yaxis[a]&&e.config.yaxis[a].logarithmic?s.map(o=>null===o?null:this.getLogVal(e.config.yaxis[a].logBase,o,i)):s}),e.globals.invalidLogScale?t:e.globals.seriesLog}getLogValAtSeriesIndex(t,e){if(null===t)return null;const 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;const i=this.w,a=0===i.globals.minYArr[s]?-1:this.getBaseLog(t,i.globals.minYArr[s]),r=(0===i.globals.maxYArr[s]?0:this.getBaseLog(t,i.globals.maxYArr[s]))-a;return e<1?e/r:(this.getBaseLog(t,e)-a)/r}getLogYRatios(t){const e=this.w,s=this.w.globals,i=s;return i.yLogRatio=t.slice(),i.logYRange=s.yRange.map((a,o)=>{const r=e.globals.seriesYAxisReverseMap[o];if(e.config.yaxis[r]&&this.w.config.yaxis[r].logarithmic){let l=-Number.MAX_VALUE,c=Number.MIN_VALUE,n=1;return s.seriesLog.forEach((h,d)=>{h.forEach(g=>{e.config.yaxis[d]&&e.config.yaxis[d].logarithmic&&(l=Math.max(g,l),c=Math.min(g,c))})}),n=Math.pow(s.yRange[o],Math.abs(c-l)/s.yRange[o]),i.yLogRatio[o]=n/this.w.layout.gridHeight,n}}),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)),null!=(i=e?.annotations)&&i.xaxis&&(e=t.extendXAxisAnnotations(e)),null!=(a=e?.annotations)&&a.points&&(e=t.extendPointAnnotations(e))),e}drawSeriesByGroup(t,e,s,i){const a=this.w,o=[];return t.series.length>0&&e.forEach(r=>{const l=[],c=[];
1t.i.forEach((n,h)=>{a.config.series[n].group===r&&(l.push(t.series[h]),c.push(n))}),l.length>0&&o.push(i.draw(l,s,c))}),o}}class xt{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()})}animateRect(t,e,s,i,a){t.attr(e).animate(i).attr(s).after(()=>a())}animatePathsGradually(t){const{el:e,realIndex:s,j:i,fill:a,pathFrom:o,pathTo:r,speed:l,delay:c}=t,h=this.w;let d=0;h.config.chart.animations.animateGradually.enabled&&(d=h.config.chart.animations.animateGradually.delay),h.config.chart.animations.dynamicAnimation.enabled&&h.globals.dataChanged&&"bar"!==h.config.chart.type&&(d=0),this.morphSVG(e,s,i,"line"!==h.config.chart.type||h.globals.comboCharts?a:"stroke",o,r,l,c*d)}showDelayedElements(){this.w.globals.delayedElements.forEach(t=>{const e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(t){const e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}morphSVG(t,e,s,i,a,o,r,l){const c=this.w;a||(a=t.attr("pathFrom")),o||(o=t.attr("pathTo"));const n=()=>("radar"===c.config.chart.type&&(r=1),`M 0 ${c.layout.gridHeight}`);(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=n()),(!o.trim()||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=n()),c.globals.shouldAnimate||(r=1),t.plot(a).animate(1,l).plot(a).animate(r,l).plot(o).after(()=>{A.isNumber(s)?s===c.seriesData.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&this.animationCompleted(t):"none"!==i&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.seriesData.series.length-1||c.globals.comboCharts)&&this.animationCompleted(t),this.showDelayedElements()})}}class Z{constructor(t){this.w=t}getDefaultFilter(t,e){const 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;const r=this.w;if(t.unfilter&&t.unfilter(!0),"none"===s)return void this.getDefaultFilter(t,e);const l=r.config.chart.dropShadow,c="lighten"===s?2:.3;t.filterWith&&(t.filterWith(n=>{n.colorMatrix({type:"matrix",values:`\n            ${c} 0 0 0 0\n            0 ${c} 0 0 0\n            0 0 ${c} 0 0\n            0 0 0 1 0\n          `,in:"SourceGraphic",result:"brightness"}),l.enabled&&this.addShadow(n,e,l,"brightness")}),l.noUserSpaceOnUse||null==(a=null==(i=t.filterer())?void 0:i.node)||a.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(o=t.filterer())?void 0:o.node))}addShadow(t,e,s,i){var a;const o=this.w;let{blur:r,top:l,left:c,color:n,opacity:h}=s;if(n=Array.isArray(n)?n[e]:n,(null==(a=o.config.chart.dropShadow.enabledOnSeries)?void 0:a.length)>0&&-1===o.config.chart.dropShadow.enabledOnSeries.indexOf(e))return t;t.offset({in:i,dx:c,dy:l,result:"offset"}),t.gaussianBlur({in:"offset",stdDeviation:r,result:"blur"}),t.flood({"flood-color":n,"flood-opacity":h,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,l;const c=this.w;return t.unfilter&&t.unfilter(!0),A.isMsEdge()&&"radialBar"===c.config.chart.type||(null==(i=c.config.chart.dropShadow.enabledOnSeries)?void 0:i.length)>0&&-1===(null==(a=c.config.chart.dropShadow.enabledOnSeries)?void 0:a.indexOf(s))||t.filterWith&&(t.filterWith(n=>{this.addShadow(n,s,e,"SourceGraphic")}),e.noUserSpaceOnUse||null==(r=null==(o=t.filterer())?void 0:o.node)||r.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(l=t.filterer())?void 0:l.node)),t}setSelectionFilter(t,e,s){const i=this.w;if(typeof i.interact.selectedDataPoints[e]<"u"&&i.interact.selectedDataPoints[e].indexOf(s)>-1){t.node.setAttribute("selected",!0);const a=i.config.states.active.filter;"none"!==a&&this.applyFilter(t,e,a.type)}}_scaleFilterSize(t){t&&(s=>{for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.setAttribute(i,s[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}class _{constructor(t,e=null){this.w=t,this.ctx=e}roundPathCorners(t,e){function s(D,k,P){var E=k.x-D.x,T=k.y-D.y,X=Math.sqrt(E*E+T*T);return i(D,k,Math.min(1,P/X))}function i(D,k,P){return{x:D.x+(k.x-D.x)*P,y:D.y+(k.y-D.y)*P}}function a(D,k){D.length>2&&(D[D.length-2]=k.x,D[D.length-1]=k.y)}function o(D){return{x:parseFloat(D[D.length-2]),y:parseFloat(D[D.length-1])}}t.indexOf("NaN")>-1&&(t="");var l=t.split(/[,\s]/).reduce(function(D,k){var P=k.match(/^([a-zA-Z])(.+)/);return P?(D.push(P[1]),D.push(P[2])):D.push(k),D},[]).reduce(function(D,k){return parseFloat(k)==k&&D.length?D[D.length-1].push(k):D.push([k]),D},[]),c=[];if(l.length>1){var n=o(l[0]),h=null;"Z"==l[l.length-1][0]&&l[0].length>2&&(l[l.length-1]=h=["L",n.x,n.y]),c.push(l[0]);for(var d=1;d<l.length;d++){var g=c[c.length-1],f=l[d],p=f==h?l[1]:l[d+1];if(p&&g&&g.length>2&&"L"==f[0]&&p.length>2&&"L"==p[0]){var y,w,u=o(g),m=o(f),x=o(p);y=s(m,u,e),w=s(m,x,e),a(f,y),f.origPoint=m,c.push(f);var S=i(y,m,.5),v=i(m,w,.5),C=["C",S.x,S.y,v.x,v.y,w.x,w.y];C.origPoint=m,c.push(C)}else c.push(f)}if(h){var L=o(c[c.length-1]);c.push(["Z"]),a(c[0],L)}}else c=l;return c.reduce(function(D,k){return D+k.join(" ")+" "},"")}drawLine(t,e,s,i,a="#a8a8a8",o=0,r=null,l="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":l})}drawRect(t=0,e=0,s=0,i=0,a=0,o="#fefefe",r=1,l=null,c=null,n=0){const 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":null!==l?l:0,stroke:null!==c?c:"none","stroke-dasharray":n}),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){t<0&&(t=0);const i=this.w.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}drawPath({d:t="",stroke:e="#a8a8a8",strokeWidth:s=1,fill:i,fillOpacity:a=1,strokeOpacity:o=1,classes:r,strokeLinecap:l=null,strokeDashArray:c=0}){const n=this.w;return null===l&&(l=n.config.stroke.lineCap),(t.indexOf("undefined")>-1||t.indexOf("NaN")>-1)&&(t=`M 0 ${n.layout.gridHeight}`),n.dom.Paper.path(t).attr({fill:i,"fill-opacity":a,stroke:e,"stroke-opacity":o,"stroke-linecap":l,"stroke-width":s,"stroke-dasharray":c,class:r})}group(t=null){const s=this.w.dom.Paper.group();return null!==t&&s.attr(t),s}move(t,e){return["M",t,e].join(" ")}line(t,e,s=null){return"H"===s?[" H",t].join(" "):"V"===s?[" 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,l=!1){let c="A";return l&&(c="a"),[c,t,e,s,i,a,o,r].join(" ")}renderPaths({j:t,realIndex:e,pathFrom:s,pathTo:i,stroke:a,strokeWidth:o,strokeLinecap:r,fill:l,animationDelay:c,initialSpeed:n,dataChangeSpeed:h,className:d,chartType:g,shouldClipToGrid:f=!0,bindEventsOnPaths:p=!0,drawShadow:u=!0}){const m=this.w,x=new Z(this.w),y=new xt(this.w,void 0),w=this.w.config.chart.animations.enabled,S=w&&this.w.config.chart.animations.dynamicAnimation.enabled;if(s&&s.startsWith("M 0 0")&&i){const E=i.match(/^M\s+[\d.-]+\s+[\d.-]+/);E&&(s=s.replace(/^M\s+0\s+0/,E[0]))}let v;const C=!!(w&&!m.globals.resized||S&&m.globals.dataChanged&&m.globals.shouldAnimate);C?v=s:(v=i,m.globals.animationEnded=!0);const L=m.config.stroke.dashArray;let D=0;D=Array.isArray(L)?L[e]:m.config.stroke.dashArray;const k=this.drawPath({d:v,stroke:a,strokeWidth:o,fill:l,fillOpacity:1,classes:d,strokeLinecap:r,strokeDashArray:D});
1k.attr("index",e),f&&k.attr("bar"===g&&!m.globals.isBarHorizontal||m.globals.comboCharts?{"clip-path":`url(#gridRectBarMask${m.globals.cuid})`}:{"clip-path":`url(#gridRectMask${m.globals.cuid})`}),m.config.chart.dropShadow.enabled&&u&&x.dropShadow(k,m.config.chart.dropShadow,e),p&&(k.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,k)),k.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,k)),k.node.addEventListener("mousedown",this.pathMouseDown.bind(this,k))),k.attr({pathTo:i,pathFrom:s});const P={el:k,j:t,realIndex:e,pathFrom:s,pathTo:i,fill:l,strokeWidth:o,delay:c};return!w||m.globals.resized||m.globals.dataChanged?(m.globals.resized||!m.globals.dataChanged)&&y.showDelayedElements():y.animatePathsGradually(z(R({},P),{speed:n})),m.globals.dataChanged&&S&&C&&y.animatePathsGradually(z(R({},P),{speed:h})),k}drawPattern(t,e,s,i="#a8a8a8",a=0){return this.w.dom.Paper.pattern(e,s,l=>{"horizontalLines"===t?l.line(0,0,s,0).stroke({color:i,width:a+1}):"verticalLines"===t?l.line(0,0,0,e).stroke({color:i,width:a+1}):"slantedLines"===t?l.line(0,0,e,s).stroke({color:i,width:a}):"squares"===t?l.rect(e,s).fill("none").stroke({color:i,width:a}):"circles"===t&&l.circle(e).fill("none").stroke({color:i,width:a})})}drawGradient(t,e,s,i,a,o=null,r=null,l=[],c=0){const n=this.w;let h;e.length<9&&0===e.indexOf("#")&&(e=A.hexToRgba(e,i)),s.length<9&&0===s.indexOf("#")&&(s=A.hexToRgba(s,a));let d=0,g=1,f=1,p=null;null!==r&&(d=typeof r[0]<"u"?r[0]/100:0,g=typeof r[1]<"u"?r[1]/100:1,f=typeof r[2]<"u"?r[2]/100:1,p=typeof r[3]<"u"?r[3]/100:null);const u="donut"===n.config.chart.type||"pie"===n.config.chart.type||"polarArea"===n.config.chart.type||"bubble"===n.config.chart.type;return h=n.dom.Paper.gradient(u?"radial":"linear",l&&0!==l.length?m=>{(Array.isArray(l[c])?l[c]:l).forEach(y=>{m.stop(y.offset/100,y.color,y.opacity)})}:m=>{m.stop(d,e,i),m.stop(g,s,a),m.stop(f,s,a),null!==p&&m.stop(p,e,i)}),u?h.attr("bubble"!==n.config.chart.type?{gradientUnits:"userSpaceOnUse",cx:n.layout.gridWidth/2,cy:n.layout.gridHeight/2,r:o}:{cx:.5,cy:.5,r:.8,fx:.2,fy:.2}):"vertical"===t?h.from(0,0).to(0,1):"diagonal"===t?h.from(0,0).to(1,1):"horizontal"===t?h.from(0,1).to(1,1):"diagonal2"===t&&h.from(1,0).to(0,1),h}getTextBasedOnMaxWidth({text:t,maxWidth:e,fontSize:s,fontFamily:i}){const a=this.getTextRects(t,s,i,""),r=Math.floor(e/(a.width/t.length));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:l,opacity:c,maxWidth:n,cssClass:h="",isPlainText:d=!0,dominantBaseline:g="auto"}){const f=this.w;typeof s>"u"&&(s="");let p=s;i||(i="start"),(!l||!l.length)&&(l=f.config.chart.foreColor),r=r||"regular";const u={maxWidth:n,fontSize:a=a||"11px",fontFamily:o=o||f.config.chart.fontFamily};let m;return Array.isArray(s)?m=f.dom.Paper.text(x=>{for(let y=0;y<s.length;y++)p=s[y],n&&(p=this.getTextBasedOnMaxWidth(R({text:s[y]},u))),0===y?x.tspan(p):x.tspan(p).newLine()}):(n&&(p=this.getTextBasedOnMaxWidth(R({text:s},u))),m=d?f.dom.Paper.plain(s):f.dom.Paper.text(x=>x.tspan(p))),m.attr({x:t,y:e,"text-anchor":i,"dominant-baseline":g,"font-size":a,"font-family":o,"font-weight":r,fill:l,class:"apexcharts-text "+h}),m.node.style.fontFamily=o,m.node.style.opacity=c,m}getMarkerPath(t,e,s,i){let a="";switch(s){case"cross":a=`M ${t-(i/=1.4)} ${e-i} L ${t+i} ${e+i}  M ${t-i} ${e+i} L ${t+i} ${e-i}`;break;case"plus":a=`M ${t-(i/=1.12)} ${e} L ${t+i} ${e}  M ${t} ${e-i} L ${t} ${e+i}`;break;case"star":case"sparkle":{let o=5;i*=1.15,"sparkle"===s&&(i/=1.1,o=4);const r=Math.PI/o;for(let l=0;l<=2*o;l++){const c=l*r,n=l%2==0?i:i/2;a+=(0===l?"M":"L")+(t+n*Math.sin(c))+","+(e-n*Math.cos(c))}a+="Z";break}case"triangle":a=`M ${t} ${e-i} \n             L ${t+i} ${e+i} \n             L ${t-i} ${e+i} \n             Z`;break;case"square":case"rect":a=`M ${t-(i/=1.125)} ${e-i} \n           L ${t+i} ${e-i} \n           L ${t+i} ${e+i} \n           L ${t-i} ${e+i} \n           Z`;break;case"diamond":a=`M ${t} ${e-(i*=1.05)} \n             L ${t+i} ${e} \n             L ${t} ${e+i} \n             L ${t-i} ${e} \n            Z`;break;case"line":a=`M ${t-(i/=1.1)} ${e} \n           L ${t+i} ${e}`;break;default:a=`M ${t}, ${e} \n           m -${(i*=2)/2}, 0 \n           a ${i/2},${i/2} 0 1,0 ${i},0 \n           a ${i/2},${i/2} 0 1,0 -${i},0`}return a}drawMarkerShape(t,e,s,i,a){const 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 A.isNumber(e)||(i=0,e=0),this.drawMarkerShape(t,e,s?.shape,i,R(R({},s),"line"===s.shape||"plus"===s.shape||"cross"===s.shape?{pointStrokeColor:s.pointFillColor,pointStrokeOpacity:s.pointFillOpacity}:{}))}pathMouseEnter(t,e){var s,i;const a=this.w,o=new Z(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),l=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);isNaN(r)||isNaN(l)||("function"==typeof a.config.chart.events.dataPointMouseEnter&&a.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:l,w:a}),_._fireEvent(a,"dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:l,w:a}]),"none"!==a.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"===a.config.states.hover.f
1ilter.type||a.interact.isTouchDevice)||o.applyFilter(t,r,a.config.states.hover.filter.type)}pathMouseLeave(t,e){var s,i;const a=this.w,o=new Z(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),l=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);isNaN(r)||isNaN(l)||("function"==typeof a.config.chart.events.dataPointMouseLeave&&a.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:l,w:a}),_._fireEvent(a,"dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:l,w:a}]),("none"===a.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==a.config.states.hover.filter.type&&o.getDefaultFilter(t,r))}pathMouseDown(t,e){var s,i;const a=this.w,o=new Z(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),l=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);if(isNaN(r)||isNaN(l))return;let c="false";if("true"===t.node.getAttribute("selected")){t.node.setAttribute("selected","false");const n=a.interact.selectedDataPoints[r].indexOf(l);n>-1&&a.interact.selectedDataPoints[r].splice(n,1)}else{if(!a.config.states.active.allowMultipleDataPointsSelection&&a.interact.selectedDataPoints.length>0){a.interact.selectedDataPoints=[];const n=a.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),h=a.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),d=g=>{Array.prototype.forEach.call(g,f=>{f.node.setAttribute("selected","false"),o.getDefaultFilter(f,r)})};d(n),d(h)}t.node.setAttribute("selected","true"),c="true",typeof a.interact.selectedDataPoints[r]>"u"&&(a.interact.selectedDataPoints[r]=[]),a.interact.selectedDataPoints[r].push(l)}if("true"===c){const n=a.config.states.active.filter;"none"!==n?o.applyFilter(t,r,n.type):"none"===a.config.states.hover.filter||a.interact.isTouchDevice||o.applyFilter(t,r,a.config.states.hover.filter.type)}else"none"!==a.config.states.active.filter.type&&("none"===a.config.states.hover.filter.type||a.interact.isTouchDevice?o.getDefaultFilter(t,r):o.applyFilter(t,r,a.config.states.hover.filter.type));"function"==typeof a.config.chart.events.dataPointSelection&&a.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:l,w:a}),e&&_._fireEvent(a,"dataPointSelection",[e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:l,w:a}])}rotateAroundCenter(t){let e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}setupEventDelegation(t,e){let s=null;t.node.addEventListener("mouseover",i=>{const a=_._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=>{s&&(i.relatedTarget?_._findDelegateTarget(i.relatedTarget,t.node,e):null)!==s&&(s&&s.instance&&this.pathMouseLeave(s.instance,i),s=null)}),t.node.addEventListener("mousedown",i=>{const a=_._findDelegateTarget(i.target,t.node,e);a&&a.instance&&this.pathMouseDown(a.instance,i)})}static _fireEvent(t,e,s){const i=t.globals.events;if(!i||!Object.prototype.hasOwnProperty.call(i,e))return;const 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(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.setAttribute(s,e[s])}getTextRects(t,e,s,i,a=!0){const o=this.w,r=[t,e,s,i,a].join("\0"),l=o.globals.textRectsCache;if(l&&l.has(r))return l.get(r);const c=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:s,foreColor:"#fff",opacity:0});i&&c.attr("transform",i),o.dom.Paper.add(c);let n=c.bbox();a||(n=c.node.getBoundingClientRect()),c.remove();const h={width:n.width,height:n.height};return l&&l.set(r,h),h}placeTextWithEllipsis(t,e,s){if("function"==typeof t.getComputedTextLength&&(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)return void(t.textContent=e.substring(0,i)+"...");t.textContent="."}}}const Y="http://www.w3.org/2000/svg";class j{constructor(t,e){"object"==typeof t?(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 j(this.x,this.y)}}class Q{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){const e=t*Math.PI/180,s=Math.cos(e),i=Math.sin(e);return this.multiply(new Q(s,i,-i,s,0,0))}scale(t,e){return this.multiply(new Q(t,0,0,e??t,0,0))}multiply(t){return new Q(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)}
1apply(t){return new j(this.a*t.x+this.c*t.y+this.e,this.b*t.x+this.d*t.y+this.f)}}class Jt{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}}class Mt{constructor(t){this.w=t,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(t){const 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;let l=0,c=0;typeof t.width>"u"&&typeof t.height>"u"?void 0!==s.fill.image.width&&void 0!==s.fill.image.height?(l=s.fill.image.width+1,c=s.fill.image.height):(l=o+1,c=o):(l=t.width,c=t.height);const n=F.createElementNS(Y,"pattern");_.setAttrs(n,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:l+"px",height:c+"px"});const h=F.createElementNS(Y,"image");n.appendChild(h);const d=M.isBrowser()?window.SVG:global.SVG;h.setAttributeNS(d.xlink,"href",r),_.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:c+"px"}),h.style.opacity=t.opacity,e.dom.elDefs.node.appendChild(n)}getSeriesIndex(t){const e=this.w,s=e.config.chart.type;return this.seriesIndex=("bar"===s||"rangeBar"===s)&&e.config.plotOptions.bar.distributed||"heatmap"===s||"treemap"===s?t.seriesNumber:t.seriesNumber%e.seriesData.series.length,this.seriesIndex}computeColorStops(t,e){const s=this.w;let i=null,a=null;for(const c of t)c>=e.threshold?(null===i||c>i)&&(i=c):(null===a||c<a)&&(a=c);null===i&&(i=e.threshold),null===a&&(a=e.threshold);let o=i-e.threshold+(e.threshold-a);0===o&&(o=1);let l=100-(e.threshold-a)/o*100;return l=Math.max(0,Math.min(l,100)),[{offset:l,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;const o=this.w;this.opts=t;const r=this.w.config;let l,c,n;this.seriesIndex=this.getSeriesIndex(t);const h=r.plotOptions.line.colors.colorAboveThreshold&&r.plotOptions.line.colors.colorBelowThreshold;let g=this.getFillColors()[this.seriesIndex];void 0!==o.seriesData.seriesColors[this.seriesIndex]&&(g=o.seriesData.seriesColors[this.seriesIndex]),"function"==typeof g&&(g=g({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:o}));const f=t.fillType?t.fillType:this.getFillType(this.seriesIndex);let p=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;const u="gradient"===f||h;t.color&&(g=t.color);const m=o.config.series[this.seriesIndex];null!=(s=null==(e=m?.data)?void 0:e[t.dataPointIndex])&&s.fillColor&&(g=null==(a=null==(i=m?.data)?void 0:i[t.dataPointIndex])?void 0:a.fillColor),g||(g="#fff",console.warn("undefined color - ApexCharts")),null!=t.opacity&&(p=t.opacity);let x=g;A.isCSSVariable(g)?x=A.applyOpacityToColor(g,p):-1===g.indexOf("rgb")?-1===g.indexOf("#")?x=g:g.length<9&&(x=A.hexToRgba(g,p)):g.indexOf("rgba")>-1?p=A.getOpacityFromRGBA(g):x=A.hexToRgba(A.rgb2hex(g),p);const y=A.isCSSVariable(g)?A.getThemeColor(g):g;if("pattern"===f&&(c=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:c,fillColor:y,defaultColor:x})),u){const w=r.fill.gradient.colorStops?[...r.fill.gradient.colorStops]:[];let S=r.fill.gradient.type;h&&(w[this.seriesIndex]=this.computeColorStops(o.seriesData.series[this.seriesIndex],r.plotOptions.line.colors),S="vertical"),n=this.handleGradientFill({type:S,fillConfig:t.fillConfig,fillColor:y,fillOpacity:p,colorStops:w,i:this.seriesIndex})}if("image"===f){const w=r.fill.image.src,v=`pattern${o.globals.cuid}${t.seriesNumber+1}${t.patternID?t.patternID:""}`;-1===this.patternIDs.indexOf(v)&&(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)),l=`url(#${v})`}else l=u?n:"pattern"===f?c:x;return t.solid&&(l=x),l}getFillType(t){const e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}getFillColors(){const t=this.w,e=t.config,s=this.opts;let i=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?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):"line"===e.chart.type?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,fillColor:s,defaultColor:i}){let a=this.w.config.fill;t&&(a=t);const o=this.opts,r=new _(this.w),l=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,c=s;return Array.isArray(a.pattern.style)?typeof a.pattern.style[o.seriesNumber]<"u"?r.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,c,l):i:r.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,c,l)}handleGradientFill({type:t,fillColor:e,fillOpacity:s,fillConfig:i,colorStops:a,i:o}){let r=this.w.config.fill;i&&(r=R(R({},r),i));const l=this.opts,c=new _(this.w),n=new A;t=t||r.gradient.type;let d,h=e,g=void 0===r.gradient.opacityFrom?s:Array.isArray(r.gradient.opacityFrom)?r.gradient.opacityFrom[o]:r.gradient.opacityFrom;h.indexOf("rgba")>-1&&(g=A.getOpacityFromRGBA(h));let f=void 0===r.gradient.opacityTo?s:Array.isArray(r.gradient.opacityTo)?r.gradient.opacityTo[o]:r.gradient.opacityTo;
1if(void 0===r.gradient.gradientToColors||0===r.gradient.gradientToColors.length)d=n.shadeColor("dark"===r.gradient.shade?-1*parseFloat(r.gradient.shadeIntensity):parseFloat(r.gradient.shadeIntensity),e.indexOf("rgb")>-1?A.rgb2hex(e):e);else if(r.gradient.gradientToColors[l.seriesNumber]){const p=r.gradient.gradientToColors[l.seriesNumber];d=p,p.indexOf("rgba")>-1&&(f=A.getOpacityFromRGBA(p))}else d=e;if(r.gradient.gradientFrom&&(h=r.gradient.gradientFrom),r.gradient.gradientTo&&(d=r.gradient.gradientTo),r.gradient.inverseColors){const p=h;h=d,d=p}return h.indexOf("rgb")>-1&&(h=A.rgb2hex(h)),d.indexOf("rgb")>-1&&(d=A.rgb2hex(d)),c.drawGradient(t,h,d,g,f,l.size,r.gradient.stops,a,o)}}class mt{constructor(t,e){this.w=t,this.ctx=e,this._filters=new Z(this.w),this._graphics=new _(this.w,this.ctx)}setGlobalMarkerSize(){const 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}){const r=this.w,l=e,c=t;let n=null;const h=new _(this.w),d=r.config.markers.discrete&&r.config.markers.discrete.length;if(Array.isArray(c.x))for(let g=0;g<c.x.length;g++){let f,p=s,u=!A.isNumber(c.y[g]);0===r.globals.markers.largestSize&&r.globals.hasNullValues&&null!==r.seriesData.series[l][s+1]&&!o&&(u=!0),1===s&&0===g&&(p=0),1===s&&1===g&&(p=1);let m="apexcharts-marker";if(("line"===r.config.chart.type||"area"===r.config.chart.type)&&!r.globals.comboCharts&&!r.config.tooltip.intersect&&(m+=" no-pointer-events"),(Array.isArray(r.config.markers.size)?r.globals.markers.size[e]>0:r.config.markers.size>0)||a||d){u||(m+=` w${A.randomId()}`);const y=this.getMarkerConfig({cssClass:m,seriesIndex:e,dataPointIndex:p}),w=r.config.series[l];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),(c.x[g]<-r.globals.markers.largestSize||c.x[g]>r.layout.gridWidth+r.globals.markers.largestSize||c.y[g]<-r.globals.markers.largestSize||c.y[g]>r.layout.gridHeight+r.globals.markers.largestSize)&&(y.pSize=0),u||((r.globals.markers.size[e]>0||a||d)&&!n&&(n=h.group({class:a||d?"":"apexcharts-series-markers"}),n.attr("clip-path",`url(#gridRectMarkerMask${r.globals.cuid})`),this.setupMarkerDelegation(n)),f=h.drawMarker(c.x[g],c.y[g],y),f.attr("rel",p),f.attr("j",p),f.attr("index",e),f.node.setAttribute("default-marker-size",y.pSize),this._filters.setSelectionFilter(f,e,p),n&&n.add(f))}else typeof r.globals.pointsArray[e]>"u"&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([c.x[g],c.y[g]])}return n}getMarkerConfig({cssClass:t,seriesIndex:e,dataPointIndex:s=null,radius:i=null,size:a=null,strokeWidth:o=null}){const r=this.w,l=this.getMarkerStyle(e);let c=null===a?r.globals.markers.size[e]:a;const n=r.config.markers;return null!==s&&n.discrete.length&&n.discrete.map(h=>{h.seriesIndex===e&&h.dataPointIndex===s&&(l.pointStrokeColor=h.strokeColor,l.pointFillColor=h.fillColor,c=h.size,l.pointShape=h.shape)}),{pSize:null===i?c:i,pRadius:null!==i?i:n.radius,pointStrokeWidth:null!==o?o:Array.isArray(n.strokeWidth)?n.strokeWidth[e]:n.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(n.shape)?n.shape[e]:n.shape),class:t,pointStrokeOpacity:Array.isArray(n.strokeOpacity)?n.strokeOpacity[e]:n.strokeOpacity,pointStrokeDashArray:Array.isArray(n.strokeDashArray)?n.strokeDashArray[e]:n.strokeDashArray,pointFillOpacity:Array.isArray(n.fillOpacity)?n.fillOpacity[e]:n.fillOpacity,seriesIndex:e}}setupMarkerDelegation(t){const e=this.w,s=".apexcharts-marker";this._graphics.setupEventDelegation(t,s),t.node.addEventListener("click",i=>{e.config.markers.onClick&&_._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onClick(i)}),t.node.addEventListener("dblclick",i=>{e.config.markers.onDblClick&&_._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onDblClick(i)}),t.node.addEventListener("touchstart",i=>{const a=_._findDelegateTarget(i.target,t.node,s);a&&a.instance&&this._graphics.pathMouseDown(a.instance,i)},{passive:!0})}addEvents(t){const 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){const e=this.w,s=e.globals.markers.colors,i=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[t]:i,pointFillColor:Array.isArray(s)?s[t]:s}}}class Qt{constructor(t,e){this.ctx=e,this.w=t,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new xt(this.w),this.filters=new Z(this.w),this.fill=new Mt(this.w),this.markers=new mt(this.w,this.ctx),this.graphics=new _(this.w)}draw(t,e,s){const i=this.w,o=s.realIndex,r=s.pointsPos,l=s.zRatio,c=s.elParent,n=this.graphics.group({class:`apexcharts-series-markers apexcharts-series-${i.config.chart.type}`});if(n.attr("clip-path",`url(#gridRectMarkerMask${i.globals.cuid})`),this.markers.setupMarkerDelegation(n),Array.isArray(r.x))for(let h=0;h<r.x.length;h++){let d=e+1,g=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);let f=i.globals.markers.size[o];if(l!==1/0){const m=i.config.plotOptions.bubble;f=i.seriesData.seriesZ[o][d],m.zScaling&&(f/=l),m.minBubbleRadius&&f<m.minBubbleRadius&&(f=m.minBubbleRadius),m.maxBubbleRadius&&f>m.maxBubbleRadius&&(f=m.maxBubbleRadius)}const u=r.y[h];if(f=f||0,(null===u||typeof i.seriesData.series[o][d]>"u")&&(g=!1),g){const m=this.drawPoint(r.x[h],u,f,o,d,e);n.add(m)}c.add(n)}}drawPoint(t,e,s,i,a,o){const r=this.w,l=i,c=this.anim,n=this.filters,h=this.fill,g=this.graphics,f=this.markers.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,radius:"bubble"===r.config.chart.type||r.globals.comboCharts&&r.config.series[i]&&"bubble"===r.config.series[i].type?s:null});let p=h.fillPath({seriesNumber:i,dataPointIndex:a,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:r.seriesData.series[i][o]});const u=g.drawMarker(t,e,f),m=r.config.series[l];return m.data[a]&&m.data[a].fillColor&&(p=m.data[a].fillColor),u.attr({fill:p}),r.config.chart.dropShadow.enabled&&n.dropShadow(u,r.config.chart.dropShadow,i),!this.initialAnim||r.globals.dataChanged||r.globals.resized?r.globals.animationEnded=!0:c.animateMarker(u,r.config.chart.animations.speed,r.globals.easing,()=>{window.setTimeout(()=>{c.animationCompleted(u)},100)}),u.attr({rel:a,j:a,index:i,"default-marker-size":f.pSize}),n.setSelectionFilter(u,i,a),u.node.classList.add("apexcharts-marker"),u}centerTextInBubble(t){return{y:t+=parseInt(this.w.config.dataLabels.style.fontSize,10)/4}}}class Et{constructor(t,e=null){this.w=t,this.ctx=e}dataLabelsCorrection(t,e,s,i,a,o,r){const l=this.w;let n=!1;const h=new _(this.w).getTextRects(s,r),d=h.width,g=h.height;if(e<0&&(e=0),e>l.layout.gridHeight+g&&(e=l.layout.gridHeight+g/2),typeof l.globals.dataLabelsRects[i]>"u"&&(l.globals.dataLabelsRects[i]=[]),l.globals.dataLabelsRects[i].push({x:t,y:e,width:d,height:g}),typeof l.globals.dataLabelsRects[i][l.globals.dataLabelsRects[i].length-2]<"u"){const u=l.globals.dataLabelsRects[i][typeof l.globals.lastDrawnDataLabelsIndexes[i]<"u"?l.globals.lastDrawnDataLabelsIndexes[i][l.globals.lastDrawnDataLabelsIndexes[i].length-1]:0];(t>u.x+u.width||e>u.y+u.height||e+g<u.y||t+d<u.x)&&(n=!0)}return(0===a||o)&&(n=!0),{x:t,y:e,textRects:h,drawnextLabel:n}}drawDataLabel({type:t,pos:e,i:s,j:i,isRangeStart:a,strokeWidth:o=2}){const r=this.w,l=new _(this.w),c=r.config.dataLabels;let n=0,h=0,d=i,g=null;if(-1!==r.globals.collapsedSeriesIndices.indexOf(s)||!c.enabled||!Array.isArray(e.x))return g;g=l.group({class:"apexcharts-data-labels"});for(let p=0;p<e.x.length;p++)if(n=e.x[p]+c.offsetX,h=e.y[p]+c.offsetY+o,!isNaN(n)){1===i&&0===p&&(d=0),1===i&&1===p&&(d=1);let u=r.seriesData.series[s][d];"rangeArea"===t&&(u=a?r.rangeData.seriesRangeStart[s][d]:r.rangeData.seriesRangeEnd[s][d]);let m="";const x=w=>r.config.dataLabels.formatter(w,{seriesIndex:s,dataPointIndex:d,w:r});"bubble"===r.config.chart.type?(u=r.seriesData.seriesZ[s][d],m=x(u),h=e.y[p],h=new Qt(this.w,this.ctx).centerTextInBubble(h).y):typeof u<"u"&&(m=x(u));let y=r.config.dataLabels.textAnchor;r.globals.isSlopeChart&&(y=0===d?"end":d===r.config.series[s].data.length-1?"start":"middle"),this.plotDataLabelsText({x:n,y:h,text:m,i:s,j:d,parent:g,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels,textAnchor:y})}return g}plotDataLabelsText(t){const e=this.w,s=new _(this.w);let{x:i,y:a,i:o,j:r,text:l,textAnchor:c,fontSize:n,parent:h,dataLabelsConfig:d,color:g,alwaysDrawDataLabel:f,offsetCorrection:p,className:u}=t,m=null;if(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)return m;let x={x:i,y:a,drawnextLabel:!0,textRects:null};if(p&&(x=this.dataLabelsCorrection(i,a,l,o,r,f,parseInt(d.style.fontSize,10).toString())),e.interact.zoomed||(i=x.x,a=x.y),x.textRects){const v=e.globals.barPadForNumericAxis||
10;(i<-(v+20)-x.textRects.width||i>e.layout.gridWidth+x.textRects.width+v+30)&&(l="")}let y=e.globals.dataLabels.style.colors[o];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(y=e.globals.dataLabels.style.colors[r]),"function"==typeof y&&(y=y({series:e.seriesData.series,seriesIndex:o,dataPointIndex:r,w:e})),g&&(y=g);let w=d.offsetX,S=d.offsetY;if(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&(w=0,S=0),e.globals.isSlopeChart&&(0!==r&&(w=-2*d.offsetX+5),0!==r&&r!==e.config.series[o].data.length-1&&(w=0)),x.drawnextLabel){if("middle"===c&&i===e.layout.gridWidth&&(c="end"),m=s.drawText({x:i+w,y:a+S,foreColor:y,textAnchor:c||d.textAnchor,text:l,fontSize:n||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"}),m.attr({class:u||"apexcharts-datalabel",cx:i,cy:a}),d.dropShadow.enabled){const v=d.dropShadow;new Z(this.w).dropShadow(m,v)}h.add(m),typeof e.globals.lastDrawnDataLabelsIndexes[o]>"u"&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(r)}return m}addBackgroundToDataLabel(t,e){const s=this.w,i=s.config.dataLabels.background,a=i.padding,o=i.padding/2,r=e.width,l=e.height,n=new _(this.w).drawRect(e.x-a,e.y-o/2,r+2*a,l+o,i.borderRadius,"transparent"!==s.config.chart.background&&s.config.chart.background?s.config.chart.background:"#fff",i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new Z(this.w).dropShadow(n,i.dropShadow),n}dataLabelsBackground(){var t;const e=this.w;if("bubble"===e.config.chart.type)return;const s=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let i=0;i<s.length;i++){const a=s[i],o=a.getBBox();let r=null;if(o.width&&o.height&&(r=this.addBackgroundToDataLabel(a,o)),r){null==(t=a.parentNode)||t.insertBefore(r.node,a);const l=e.config.dataLabels.background.backgroundColor||a.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?r.attr({fill:l}):r.animate().attr({fill:l}),a.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}bringForward(){const 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)}}class bt{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?(t.globals.cachedSelectors||(t.globals.cachedSelectors={}),t.globals.cachedSelectors[e]||(t.globals.cachedSelectors[e]=s()),t.globals.cachedSelectors[e]):s()}static getCachedDimension(t,e,s,i=1e3){if(!t||!t.globals)return s();t.globals.dimensionCache||(t.globals.dimensionCache={});const a=t.globals.dimensionCache[e],o=Date.now();if(a&&a.lastUpdate&&o-a.lastUpdate<i)return a.value;const 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&&t.globals.domCache.get(e)||null}}class it{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){const l=this.w,c=typeof t[i]>"u"?"":t[i];let n=c;const h=l.formatters.xLabelFormatter,d=l.config.xaxis.labels.formatter;let g=!1;const f=new rt(this.w);r&&(n=f.xLabelFormat(h,c,c,{i,dateFormatter:new O(this.w).formatDate,w:l}),void 0!==d&&(n=d(c,t[i],{i,dateFormatter:new O(this.w).formatDate,w:l}))),e.length>0?(g=(w=>{let S=null;return e.forEach(v=>{"month"===v.unit?S="year":"day"===v.unit?S="month":"hour"===v.unit?S="day":"minute"===v.unit&&(S="hour")}),S===w})(e[i].unit),s=e[i].position,n=e[i].value):"datetime"===l.config.xaxis.type&&void 0===d&&(n=""),typeof n>"u"&&(n=""),n=Array.isArray(n)?n:n.toString();const m=new _(this.w);let x={};x=l.layout.rotateXLabels&&r?m.getTextRects(n,parseInt(o,10).toString(),null,`rotate(${l.config.xaxis.labels.rotate} 0 0)`,!1):m.getTextRects(n,parseInt(o,10).toString());const y=!l.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(n)&&("NaN"===String(n)||a.indexOf(n)>=0&&y)&&(n=""),{x:s,text:n,textRect:x,isBold:g}}checkLabelBasedOnTickamount(t,e,s){const i=this.w;let a=i.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(i.layout.gridWidth/120)),a>s||t%Math.round(s/(a+1))===0||(e.text=""),e}checkForOverflowingLabels(t,e,s,i,a){const o=this.w;if(0===t&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===s-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&i.length>0){const r=a[a.length-1];if(o.config.xaxis.labels.trim&&"datetime"!==o.config.xaxis.type)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}
vendor: 6,084 bytes, line 1
1checkForReversedLabels(t,e){const s=this.w;return s.config.yaxis[t]&&s.config.yaxis[t].reversed&&e.reverse(),e}yAxisAllSeriesCollapsed(t){const e=this.w.globals;return!e.seriesYAxisMap[t].some(s=>-1===e.collapsedSeriesIndices.indexOf(s))}translateYAxisIndex(t){const 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){const e=this.w,s=e.config.yaxis[t];if(!s.show||this.yAxisAllSeriesCollapsed(t))return!0;if(!s.showForNullSeries){const i=e.globals.seriesYAxisMap[t],a=new q(this.w);return i.every(o=>a.isSeriesNull(o))}return!1}getYAxisForeColor(t,e){var s;const i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&(null==(s=this.theme)||s.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1)),t}drawYAxisTicks(t,e,s,i,a,o,r){const l=this.w,c=new _(this.w);let n=l.layout.translateY+l.config.yaxis[a].labels.offsetY;if(l.globals.isBarHorizontal?n=0:"heatmap"===l.config.chart.type&&(n+=o/2),i.show&&e>0){!0===l.config.yaxis[a].opposite&&(t+=i.width);for(let h=e;h>=0;h--){const d=c.drawLine(t+s.offsetX-i.width+i.offsetX,n+i.offsetY,t+s.offsetX+i.offsetX,n+i.offsetY,i.color);r.add(d),n+=o}}}}class nt{constructor(t,e,s){this.w=t,this.ctx=e,this.elgrid=s,this.axesUtils=new it(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=[],this.offY="top"===t.config.xaxis.position?0:t.layout.gridHeight,this.offY=this.offY+t.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===t.config.chart.type&&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()),this.xaxisBorderWidth=String(this.xaxisBorderWidth).indexOf("%")>-1?t.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=t.config.xaxis.axisBorder.height,this.yaxis=t.config.yaxis[0]}drawXaxis(){const t=this.w,e=new _(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){const o=t.labelData.groups;a=[];for(let l=0;l<o.length;l++)a.push(o[l].title);const 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,(l,c)=>o[l].cols*c,r)}if(void 0!==t.config.xaxis.title.text){const 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)+("bottom"===t.config.xaxis.position?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){const 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={}){const l=[],c=[],n=this.w,h=r.xaxisFontSize||this.xaxisFontSize,d=r.xaxisFontFamily||this.xaxisFontFamily,g=r.xaxisForeColors||this.xaxisForeColors,f=r.fontWeight||n.config.xaxis.labels.style.fontWeight,p=r.cssClass||n.config.xaxis.labels.style.cssClass;let u,m=n.globals.padHorizontal;const x=i.length;let y="category"===n.config.xaxis.type?n.globals.dataPoints:x;if(0===y&&x>y&&(y=x),a){const w=Math.max(Number(n.config.xaxis.tickAmount)||1,y>1?y-1:y);u=n.layout.gridWidth/Math.min(w,x-1),m=m+o(0,u)/2+n.config.xaxis.labels.offsetX}else u=n.layout.gridWidth/y,m=m+o(0,u)+n.config.xaxis.labels.offsetX;for(let w=0;w<=x-1;w++){let S=m-o(w,u)/2+n.config.xaxis.labels.offsetX;0===w&&1===x&&u/2===m&&1===y&&(S=n.layout.gridWidth/2);let v=this.axesUtils.getLabel(i,n.labelData.timescaleLabels,S,w,l,h,t),C=28;n.layout.rotateXLabels&&t&&(C=22),n.config.xaxis.title.text&&"top"===n.config.xaxis.position&&(C+=parseFloat(n.config.xaxis.title.style.fontSize)+2),t||(C=C+parseFloat(h)+(n.layout.xAxisLabelsHeight-n.layout.xAxisGroupLabelsHeight)+(n.layout.rotateXLabels?10:0)),v=typeof n.config.xaxis.tickAmount<"u"&&"dataPoints"!==n.config.xaxis.tickAmount&&"datetime"!==n.config.xaxis.type?this.axesUtils.checkLabelBasedOnTickamount(w,v,x):this.axesUtils.checkForOverflowingLabels(w,v,x,l,c);const D=()=>t&&n.config.xaxis.convertedCatToNumeric?g[n.globals.minX+w-1]:g[w];if(n.config.xaxis.labels.show){const k=e.drawText({x:v.x,y:this.offY+n.config.xaxis.labels.offsetY+C-("top"===n.config.xaxis.position?n.layout.xAxisHeight+n.config.xaxis.axisTicks.height-2:0),text:v.text,textAnchor:"middle",fontWeight:v.isBold?600:f,fontSize:h,fontFamily:d,foreColor:Array.isArray(g)?D():g,isPlainText:!1,
vendor: 8,862 bytes, line 1
1cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+p});if(s.add(k),k.on("click",P=>{if("function"==typeof n.config.chart.events.xAxisLabelClick){const E=Object.assign({},n,{labelIndex:w});n.config.chart.events.xAxisLabelClick(P,this.ctx,E)}}),t){const P=F.createElementNS(Y,"title");P.textContent=Array.isArray(v.text)?v.text.join(" "):v.text,k.node.appendChild(P),""!==v.text&&(l.push(v.text),c.push(v))}}w<x-1&&(m+=o(w+1,u))}}drawXaxisInversed(t){const e=this.w,s=new _(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);const r=[];if(e.config.yaxis[t].show)for(let f=0;f<this.xaxisLabels.length;f++)r.push(this.xaxisLabels[f]);const l=e.layout.gridHeight/r.length;let c=-l/2.2;const n=e.formatters.yLabelFormatters[0],h=e.config.yaxis[0].labels;if(h.show)for(let f=0;f<=r.length-1;f++){let p=typeof r[f]>"u"?"":r[f];p=n(p,{seriesIndex:t,dataPointIndex:f,w:e});const u=this.axesUtils.getYAxisForeColor(h.style.colors,t),m=()=>Array.isArray(u)?u[f]:u;let x=0;Array.isArray(p)&&(x=p.length/2*parseInt(h.style.fontSize,10));let y=h.offsetX-15,w="end";this.yaxis.opposite&&(w="start"),"left"===e.config.yaxis[0].labels.align?(y=h.offsetX,w="start"):"center"===e.config.yaxis[0].labels.align?(y=h.offsetX,w="middle"):"right"===e.config.yaxis[0].labels.align&&(w="end");const S=s.drawText({x:y,y:c+l+h.offsetY-x,text:p,textAnchor:w,foreColor:m(),fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});o.add(S),S.on("click",C=>{if("function"==typeof e.config.chart.events.xAxisLabelClick){const L=Object.assign({},e,{labelIndex:f});e.config.chart.events.xAxisLabelClick(C,this.ctx,L)}});const v=F.createElementNS(Y,"title");if(v.textContent=Array.isArray(p)?p.join(" "):p,S.node.appendChild(v),0!==e.config.yaxis[t].labels.rotate){const C=s.rotateAroundCenter(S.node);S.node.setAttribute("transform",`rotate(${e.config.yaxis[t].labels.rotate} 0 ${C.y})`)}c+=l}if(void 0!==e.config.yaxis[0].title.text){const f=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});f.add(p),a.add(f)}let d=0;this.isCategoryBarHorizontal&&e.config.yaxis[0].opposite&&(d=e.layout.gridWidth);const g=e.config.xaxis.axisBorder;if(g.show){const f=s.drawLine(e.globals.padHorizontal+g.offsetX+d,1+g.offsetY,e.globals.padHorizontal+g.offsetX+d,e.layout.gridHeight+g.offsetY,g.color,0);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(f):a.add(f)}return e.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(d,r.length,e.config.yaxis[0].axisBorder,e.config.yaxis[0].axisTicks,0,l,a),a}drawXaxisTicks(t,e,s){const i=this.w,a=t;if(t<0||t-2>i.layout.gridWidth)return;const o=this.offY+i.config.xaxis.axisTicks.offsetY;if(e=e+o+i.config.xaxis.axisTicks.height,"top"===i.config.xaxis.position&&(e=o-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){const l=new _(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(l),l.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){const t=this.w,e=[],s=this.xaxisLabels.length;let 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{const a=s;for(let o=0;o<a;o++){let r=a;t.axisFlags.isXNumeric&&"bar"!==t.config.chart.type&&(r-=1),i+=t.layout.gridWidth/r,e.push(i)}}return e}xAxisLabelCorrections(){var t,e,s;const i=this.w,a=new _(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)"),l=i.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),c=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(i.layout.rotateXLabels||i.config.xaxis.labels.rotateAlways)for(let n=0;n<r.length;n++){const h=a.rotateAroundCenter(r[n]);h.y=h.y-1,h.x=h.x+1,r[n].setAttribute("transform",`rotate(${i.config.xaxis.labels.rotate} ${h.x} ${h.y})`),r[n].setAttribute("text-anchor","end"),o?.setAttribute("transform","translate(0, -10)"),i.config.xaxis.labels.trim&&Array.prototype.forEach.call(r[n].childNodes,g=>{a.placeTextWithEllipsis(g,g.textContent,i.layout.xAxisLabelsHeight-("bottom"===i.config.legend.position?20:10))})}else{const n=i.layout.gridWidth/(i.labelData.labels.length+1);for(let h=0;h<r.length;h++)i.config.xaxis.labels.trim&&"datetime"!==i.config.xaxis.type&&Array.prototype.forEach.call(r[h].childNodes,g=>{a.placeTextWithEllipsis(g,g.textContent,n)})}if(l.length>0){const n=l[l.length-1].getBBox(),h=l[0].getBBox();n.x<-20&&(null==(t=l[l.length-1].parentNode)||t.removeChild(l[l.length-1])),h.x+h.width>i.layout.gridWidth&&!i.globals.isBarHorizontal&&(null==(e=l[0].parentNode)||e.removeChild(l[0]));for(let d=0;d<c.length;d++)a.placeTextWithEllipsis(c[d],null!=(s=c[d].textContent)?s:"",i.config.yaxis[0].labels.maxWidth-(i.config.yaxis[0].title.text?2*parseFloat(i.config.yaxis[0].title.style.fontSize):0)-15)}}}class Ft{constructor(t,e){this.w=t,this.ctx=e,this.xaxisLabels=t.labelData.labels.slice(),this.axesUtils=new it(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){const e=this.w,s=new _(this.w);t||(t=s.group({class:"apexcharts-grid"}));const 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){const e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){const t=this.w,e=t.globals,s=new _(this.w),i=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width,a=h=>{const d=F.createElementNS(Y,"clipPath");return d.setAttribute("id",h),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 r=0,l=0;(["bar","rangeBar","candlestick","boxPlot"].includes(t.config.chart.type)||t.globals.comboBarCount>0)&&t.axisFlags.isXNumeric&&!t.globals.isBarHorizontal&&(r=Math.max(t.config.grid.padding.left,e.barPadForNumericAxis),l=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+l+r+4,t.layout.gridHeight+i+4,0,"#fff");const c=t.globals.markers.largestSize;t.dom.elGridRectMarker=s.drawRect(Math.min(-i/2-r-2,-c),-c,t.layout.gridWidth+Math.max(i+l+r+4,2*c),t.layout.gridHeight+2*c,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);const n=t.dom.elDefs.node;n.appendChild(t.dom.elGridRectMask),n.appendChild(t.dom.elGridRectBarMask),n.appendChild(t.dom.elGridRectMarkerMask),n.appendChild(t.dom.elForecastMask),n.appendChild(t.dom.elNonForecastMask)}_drawGridLines({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){const l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r});let n=0;if(l.labelData.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){const d=l.labelData.groups;if(d){let g=0;for(let f=0;g<t&&f<d.length;f++)g+=d[f].cols;g===t&&(n=.6*l.layout.xAxisLabelsHeight)}}new nt(this.w,this.ctx).drawXaxisTicks(e,n,l.dom.elGraphical)}}_drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){const l=this.w,c=r.node.classList.contains("apexcharts-gridlines-h
1orizontal"),n=l.globals.barPadForNumericAxis,h=0===s&&0===a||0===e&&0===i||s===l.layout.gridHeight&&a===l.layout.gridHeight||l.globals.isBarHorizontal&&(0===t||t===o-1),g=new _(this.w).drawLine(e-(c?n:0),s,i+(c?n:0),a,l.config.grid.borderColor,l.config.grid.strokeDashArray);g.node.classList.add("apexcharts-gridline"),h&&l.config.grid.show?this.elGridBorders.add(g):r.add(g)}_drawGridBandRect({c:t,x1:e,y1:s,x2:i,y2:a,type:o}){const r=this.w,l=new _(this.w),c=r.globals.barPadForNumericAxis,h=l.drawRect(e-("row"===o?c:0),s,i+("row"===o?2*c:0),a,0,r.config.grid[o].colors[t],r.config.grid[o].opacity);this.elg.add(h),h.attr("clip-path",`url(#gridRectMask${r.globals.cuid})`),h.node.classList.add(`apexcharts-grid-${o}`)}_drawXYLines({xCount:t,tickAmount:e}){var s;const i=this.w,a=({xC:r,y1:c,y2:h})=>{for(let d=0;d<r;d++)this._drawGridLines({i:d,x1:this.xaxisLabels[d].position,y1:c,x2:this.xaxisLabels[d].position,y2:h,xCount:t,parent:this.elgridLinesV})},o=({xC:r,x1:l,y1:c,x2:n,y2:h})=>{for(let d=0;d<r+(i.axisFlags.isXNumeric?0:1);d++)0===d&&1===r&&1===i.globals.dataPoints&&(n=l=i.layout.gridWidth/2),this._drawGridLines({i:d,x1:l,y1:c,x2:n,y2:h,xCount:t,parent:this.elgridLinesV}),n=l+=i.layout.gridWidth/(i.axisFlags.isXNumeric?r-1:r)};if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){const r=i.globals.padHorizontal,l=0;let c;const n=i.layout.gridHeight;i.labelData.timescaleLabels.length?a({xC:t,x1:r,y1:l,x2:c,y2:n}):(i.axisFlags.isXNumeric&&(t=null==(s=i.globals.xAxisScale)?void 0:s.result.length),o({xC:t,x1:r,y1:l,x2:c,y2:n}))}if(i.config.grid.yaxis.lines.show){let l=0,c=0;const n=i.layout.gridWidth;let h=e+1;this.isRangeBar&&(h=i.labelData.labels.length);for(let d=0;d<h+(this.isRangeBar?1:0);d++)this._drawGridLine({i:d,xCount:h+(this.isRangeBar?1:0),x1:0,y1:l,x2:n,y2:c,parent:this.elgridLinesH}),l+=i.layout.gridHeight/(this.isRangeBar?h:e),c=l}}_drawInvertedXYLines({xCount:t}){const e=this.w;if(e.config.grid.xaxis.lines.show||e.config.xaxis.axisTicks.show){let s=e.globals.padHorizontal;const i=0;let a;const 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 nt(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;const 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;const i=this.w,a=i.globals,o=new _(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 c,l=a.yAxisScale[r].result.length-1;return!a.isBarHorizontal||this.isRangeBar?(c=this.xaxisLabels.length,this.isRangeBar&&(l=i.labelData.labels.length,i.config.xaxis.tickAmount&&i.config.xaxis.labels.formatter&&(c=i.config.xaxis.tickAmount),(null==(s=null==(e=null==(t=a.yAxisScale)?void 0:t[r])?void 0:e.result)?void 0:s.length)>0&&"datetime"!==i.config.xaxis.type&&(c=a.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:c,tickAmount:l})):(c=l,l=a.xTickAmount,this._drawInvertedXYLines({xCount:c,tickAmount:l})),this.drawGridBands(c,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.layout.gridWidth/c}}drawGridBands(t,e){var s,i,a,o,r;const l=this.w;if((null==(s=l.config.grid.row.colors)?void 0:s.length)>0&&((n,h,d,g,f,p)=>{for(let u=0,m=0;u<h;u++,m++)m>=l.config.grid.row.colors.length&&(m=0),this._drawGridBandRect({c:m,x1:0,y1:g,x2:f,y2:p,type:"row"}),g+=l.layout.gridHeight/e})(0,e,0,0,l.layout.gridWidth,l.layout.gridHeight/e),(null==(i=l.config.grid.column.colors)?void 0:i.length)>0){let n=l.globals.isBarHorizontal||"on"!==l.config.xaxis.tickPlacement||"category"!==l.config.xaxis.type&&!l.config.xaxis.convertedCatToNumeric?t:t-1;l.axisFlags.isXNumeric&&(n=(null!=(o=null==(a=l.globals.xAxisScale)?void 0:a.result.length)?o:1)-1);let h=l.globals.padHorizontal;const d=0;let g=l.globals.padHorizontal+l.layout.gridWidth/n;const f=l.layout.gridHeight;for(let p=0,u=0;p<t;p++,u++)u>=l.config.grid.column.colors.length&&(u=0),"datetime"===l.config.xaxis.type&&(h=this.xaxisLabels[p].position,g=((null==(r=this.xaxisLabels[p+1])?void 0:r.position)||l.layout.gridWidth)-this.xaxisLabels[p].position),this._drawGri
1dBandRect({c:u,x1:h,y1:d,x2:g,y2:f,type:"column"}),h+=l.layout.gridWidth/n}}}class te{constructor(t){this.w=t,this.coreUtils=new q(this.w)}niceScale(t,e,s=0){const a=this.w,o=a.globals;let r,l,c,n;o.isBarHorizontal?(r=a.config.xaxis,l=Math.max((o.svgWidth-100)/25,2)):(r=a.config.yaxis[s],l=Math.max((o.svgHeight-100)/15,2)),A.isNumber(l)||(l=10),c=null!=r.min,n=void 0!==r.max&&null!==r.min;let h=null!=r.stepSize,d=null!=r.tickAmount,g=d?r.tickAmount:ut[Math.min(Math.round(l/2),ut.length-1)];if(o.isMultipleYAxis&&!d&&o.multiAxisTickAmount>0&&(g=o.multiAxisTickAmount,d=!0),g="dataPoints"===g?o.dataPoints-1:Math.abs(Math.round(g)),(t===Number.MIN_VALUE&&0===e||!A.isNumber(t)&&!A.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=A.isNumber(r.min)?r.min:0,e=A.isNumber(r.max)?r.max:t+g,o.allSeriesCollapsed=!1),t>e){console.warn("axis.min cannot be greater than axis.max: swapping min and max");const E=e;e=t,t=E}else t===e&&(t=0===t?0:t-1,e=0===e?2:e+1);const f=[];g<1&&(g=1);let p=g,u=Math.abs(e-t);!c&&t>0&&t/u<.15&&(t=0,c=!0),!n&&e<0&&-e/u<.15&&(e=0,n=!0),u=Math.abs(e-t);let x=u/p,y=x;const w=Math.floor(Math.log10(y)),S=Math.pow(10,w);let v=Math.ceil(y/S);if(v=Lt[0===o.yValueDecimal?0:1][v],y=v*S,x=y,o.isBarHorizontal&&r.stepSize&&"datetime"!==r.type?(x=r.stepSize,h=!0):h&&(x=r.stepSize),h&&r.forceNiceScale){const E=Math.floor(Math.log10(x));x*=Math.pow(10,w-E)}if(c&&n){let E=u/p;if(d)if(h)if(0!=A.mod(u,x)){const T=A.getGCD(x,E);x=E/T<10?T:E}else 0==A.mod(x,E)?x=E:(E=x,d=!1);else x=E;else if(h)0==A.mod(u,x)?E=x:x=E;else if(0==A.mod(u,x))E=x;else{p=Math.ceil(u/x),E=u/p;const T=A.getGCD(u,x);u/T<l&&(E=T),x=E}p=Math.round(u/x)}else{if(c||n){if(n)if(d)t=e-x*p;else{const E=t;t=x*Math.floor(t/x),Math.abs(e-t)/A.getGCD(u,x)>l&&(t=e-x*g,t+=x*Math.floor((E-t)/x))}else if(c)if(d)e=t+x*p;else{const E=e;e=x*Math.ceil(e/x),Math.abs(e-t)/A.getGCD(u,x)>l&&(e=t+x*g,e+=x*Math.ceil((E-e)/x))}}else if(o.isMultipleYAxis&&d){const E=x*Math.floor(t/x);let T=E+x*p;T<e&&(x*=2),T=e,e=(t=E)+x*p,u=Math.abs(e-t),t>0&&t<Math.abs(T-e)&&(t=0,e=x*p),e<0&&-e<Math.abs(E-t)&&(e=0,t=-x*p)}else t=x*Math.floor(t/x),e=x*Math.ceil(e/x);u=Math.abs(e-t),x=A.getGCD(u,x),p=Math.round(u/x)}if(!d&&!(c||n)&&(p=Math.ceil((u-1e-11)/(x+1e-11)),p>16&&A.getPrimeFactors(p).length<2&&p++),!d&&r.forceNiceScale&&0===o.yValueDecimal&&p>u&&(p=u,x=Math.round(u/p)),p>l&&(!d&&!h||r.forceNiceScale)){const E=A.getPrimeFactors(p),T=E.length-1;let X=p;t:for(var C=0;C<T;C++)for(var L=0;L<=T-C;L++){const H=Math.min(L+C,T);let W=X,I=1;for(var D=L;D<=H;D++)I*=E[D];if(W/=I,W<l){X=W;break t}}x=X===p?u:u/X,p=Math.round(u/x)}o.isMultipleYAxis&&0==o.multiAxisTickAmount&&o.ignoreYAxisIndexes.indexOf(s)<0&&(o.multiAxisTickAmount=p);let k=t-x;const P=1e-11*x;do{k+=x,f.push(A.stripNumber(k,7))}while(e-k>P);return{result:f,niceMin:f[0],niceMax:f[f.length-1]}}linearScale(t,e,s=10,i=0,a=void 0){const o=Math.abs(e-t);let r=[];if(t===e)return r=[t],{result:r,niceMin:r[0],niceMax:r[r.length-1]};"dataPoints"===(s=this._adjustTicksForSmallRange(s,i,o))&&(s=this.w.globals.dataPoints-1);const l=s;if(a||(a=o/l),0!==a&&isFinite(a)){const d=Math.floor(Math.log10(Math.abs(a))),g=Math.max(2,2-d),f=Math.pow(10,g);a=Math.round((a+Number.EPSILON)*f)/f}let n=s===Number.MAX_VALUE?5:l;s===Number.MAX_VALUE&&(a=1);let h=t;for(;n>=0;)r.push(h),h=A.preciseAddition(h,a),n-=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));const i=[],a=Math.ceil(Math.log(e)/Math.log(s)+1);for(let r=Math.floor(Math.log(t)/Math.log(s));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));const i=[],a=Math.log(e)/Math.log(s),o=Math.log(t)/Math.log(s),r=a-o,l=Math.round(r),c=r/l;for(let n=0,h=o;n<l;n++,h+=c)i.push(Math.pow(s,h));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&&void 0===this.w.config.yaxis[e].tickAmount){const a=Number(this.w.config.yaxis[e].labels.formatter(1));A.isNumber(a)&&0===this.w.globals.yValueDecimal&&(i=Math.ceil(s))}return i<t?i:t}setYScaleForIndex(t,e,s){const i=this.w.globals,a=this.w.config,o=i.isBarHorizontal?a.xaxis:a.yaxis[t];typeof i.yAxisScale[t]>"u"&&(i.yAxisScale[t]=[]);const 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&&A.isNumber(s)&&e!==Number.MAX_VALUE&&A.isNumber(e)?(i.allSeriesCollapsed=!1,i.yAxisScale[t]=this.niceScale(e,s,t)):i.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t)}setXScale(t,e){const s=this.w,i=s.globals;return i.xAxisScale=e!==-Number.MAX_VALUE&&A.isNumber(e)?this.linearScale(t,e,i.xTickAmount,0,void 0===s.config.xaxis.max?s.config.xaxis.stepSize:void 0):this.linearScale(0,10,10),i.xAxisScale}scaleMultipleYAxes(){const t=this.w.config,e=this.w.globals;this.coreUtils.setSeriesYAxisMappings();const s=e.seriesYAxisMap,i=e.minYArr,a=e.maxYArr;
1e.allSeriesCollapsed=!0,e.barGroups=[],s.forEach((o,r)=>{const l=[];if(o.forEach(c=>{var n;const h=null==(n=t.series[c])?void 0:n.group;l.indexOf(h)<0&&l.push(h)}),o.length>0){let g,f,c=Number.MAX_VALUE,n=-Number.MAX_VALUE,h=c,d=n;if(t.chart.stacked){const p=new Array(e.dataPoints).fill(0),u=[],m=[],x=[];l.forEach(()=>{u.push(p.map(()=>Number.MIN_VALUE)),m.push(p.map(()=>Number.MIN_VALUE)),x.push(p.map(()=>Number.MIN_VALUE))});for(let y=0;y<o.length;y++){!g&&t.series[o[y]].type&&(g=t.series[o[y]].type);const w=o[y];f=t.series[w].group?t.series[w].group:"axis-".concat(r.toString()),!(e.collapsedSeriesIndices.indexOf(w)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(w)<0)||(e.allSeriesCollapsed=!1,l.forEach((v,C)=>{if(t.series[w].group===v)for(let L=0;L<this.w.seriesData.series[w].length;L++){const D=this.w.seriesData.series[w][L];D>=0?m[C][L]+=D:x[C][L]+=D,u[C][L]+=D,h=Math.min(h,D),d=Math.max(d,D)}})),("bar"===g||"column"===g)&&e.barGroups.push(f)}g||(g=t.chart.type),"bar"===g||"column"===g?l.forEach((y,w)=>{c=Math.min(c,Math.min.apply(null,x[w])),n=Math.max(n,Math.max.apply(null,m[w]))}):(l.forEach((y,w)=>{h=Math.min(h,Math.min.apply(null,u[w])),d=Math.max(d,Math.max.apply(null,u[w]))}),c=h,n=d),c===Number.MIN_VALUE&&n===Number.MIN_VALUE&&(n=-Number.MAX_VALUE)}else for(let p=0;p<o.length;p++){const u=o[p];c=Math.min(c,i[u]),n=Math.max(n,a[u]),!(e.collapsedSeriesIndices.indexOf(u)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(u)<0)||(e.allSeriesCollapsed=!1)}void 0!==t.yaxis[r].min&&(c="function"==typeof t.yaxis[r].min?t.yaxis[r].min(c):t.yaxis[r].min),void 0!==t.yaxis[r].max&&(n="function"==typeof t.yaxis[r].max?t.yaxis[r].max(n):t.yaxis[r].max),e.barGroups=e.barGroups.filter((p,u,m)=>m.indexOf(p)===u),this.setYScaleForIndex(r,c,n),o.forEach(p=>{i[p]=e.yAxisScale[r].niceMin,a[p]=e.yAxisScale[r].niceMax})}else this.setYScaleForIndex(r,0,-Number.MAX_VALUE)})}}class yt{constructor(t){this.w=t,this.scales=new te(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,l,c;const n=this.w.config,h=this.w.globals;let d=-Number.MAX_VALUE,g=Number.MIN_VALUE;null===i&&(i=t+1);const f=this.w.seriesData.series;let p=f,u=f;"candlestick"===n.chart.type?(p=this.w.candleData.seriesCandleL,u=this.w.candleData.seriesCandleH):"boxPlot"===n.chart.type?(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 m=!1;if(this.w.seriesData.seriesX.length>=i){const x=null==(a=h.brushSource)?void 0:a.w.config.chart.brush;(n.chart.zoom.enabled&&n.chart.zoom.autoScaleYaxis||x?.enabled&&x?.autoScaleYaxis)&&(m=!0)}for(let x=t;x<i;x++){h.dataPoints=Math.max(h.dataPoints,f[x].length);const y=n.series[x].type;this.w.labelData.categoryLabels.length&&(h.dataPoints=this.w.labelData.categoryLabels.filter(v=>typeof v<"u").length),this.w.labelData.labels.length&&"datetime"!==n.xaxis.type&&0!==this.w.seriesData.series.reduce((v,C)=>v+C.length,0)&&(h.dataPoints=Math.max(h.dataPoints,this.w.labelData.labels.length));let w=0,S=f[x].length-1;if(m){if(n.xaxis.min)for(;w<S&&this.w.seriesData.seriesX[x][w]<n.xaxis.min;w++);if(n.xaxis.max)for(;S>w&&this.w.seriesData.seriesX[x][S]>n.xaxis.max;S--);}for(let v=w;v<=S&&v<this.w.seriesData.series[x].length;v++){let C=f[x][v];if(null!==C&&A.isNumber(C)){switch(typeof(null==(o=u[x])?void 0:o[v])<"u"&&(d=Math.max(d,u[x][v]),e=Math.min(e,u[x][v])),typeof(null==(r=p[x])?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]))}y&&"candlestick"!==y&&"boxPlot"!==y&&"rangeArea"!==y&&"rangeBar"!==y&&(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(L=>{d=Math.max(d,L.value),e=Math.min(e,L.value)}
vendor: 4,710 bytes, line 1
1),s=d,C=A.noExponents(C),A.isFloat(C)&&(h.yValueDecimal=Math.max(h.yValueDecimal,C.toString().split(".")[1].length)),g>(null==(l=p[x])?void 0:l[v])&&(null==(c=p[x])?void 0:c[v])<0&&(g=p[x][v])}else h.hasNullValues=!0}("bar"===y||"column"===y)&&(g<0&&d<0&&(d=0,s=Math.max(s,0)),g===Number.MIN_VALUE&&(g=0,e=Math.min(e,0)))}return"rangeBar"===n.chart.type&&this.w.rangeData.seriesRangeStart.length&&h.isBarHorizontal&&(g=e),"bar"===n.chart.type&&(g<0&&d<0&&(d=0),g===Number.MIN_VALUE&&(g=0)),{minY:g,maxY:d,lowestY:e,highestY:s}}setYRange(){const t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;let i,s=Number.MAX_VALUE;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),"bar"===e.chart.type?(t.minY=i.minY,t.maxY=i.maxY):(t.minY=i.lowestY,t.maxY=i.highestY),s=i.lowestY,e.chart.stacked&&this._setStackedMinMax(),"line"===e.chart.type||"area"===e.chart.type||"scatter"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!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)=>{void 0!==a.max&&("number"==typeof a.max?t.maxYArr[o]=a.max:"function"==typeof a.max&&(t.maxYArr[o]=a.max(t.isMultipleYAxis?t.maxYArr[o]:t.maxY)),t.maxY=t.maxYArr[o]),void 0!==a.min&&("number"==typeof a.min?t.minYArr[o]=a.min:"function"==typeof a.min&&(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=>{void 0!==e.xaxis[o]&&"number"==typeof e.xaxis[o]&&("min"===o?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=>{const 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)}}),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(){const t=this.w.globals,e=this.w.config,s="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric;if(this.w.axisFlags.isXNumeric&&(()=>{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++)null!==this.w.labelData.labels[a][o]&&A.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]))})(),this.w.axisFlags.noLabelsProvided&&0===e.xaxis.categories.length&&(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(void 0===e.xaxis.tickAmount)a=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1);else if("dataPoints"===e.xaxis.tickAmount){if(this.w.seriesData.series.length>1&&(a=this.w.seriesData.series[t.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){const o=Math.round(t.maxX-t.minX);o<30&&(a=o)}}else a=e.xaxis.tickAmount;if(t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(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){const 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.noLabelsProvi
1ded&&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(){const 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++)null!==this.w.seriesData.seriesZ[e][s]&&A.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(){const t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){const s=new O(this.w);if("datetime"===e.xaxis.type){const 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();const 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("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!this.w.axisFlags.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}_getMinXDiff(){const t=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach(e=>{if(e.length){1===e.length&&e.push(this.w.seriesData.seriesX[t.maxValsInArrayIndex][this.w.seriesData.seriesX[t.maxValsInArrayIndex].length-1]);const s=e.slice();s.sort((i,a)=>i-a),s.forEach((i,a)=>{if(a>0){const o=i-s[a-1];o>0&&(t.minXDiff=Math.min(o,t.minXDiff))}}),(1===t.dataPoints||t.minXDiff===Number.MAX_VALUE)&&(t.minXDiff=.5)}})}_setStackedMinMax(){const 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)]);const s={},i={};e.forEach(a=>{s[a]=[],i[a]=[],this.w.config.series.map((r,l)=>a.indexOf(this.w.seriesData.seriesNames[l])>-1?l:null).filter(r=>null!==r).forEach(r=>{var l,c,n,h;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||"bar"===(null==(c=null==(l=this.w.config.series)?void 0:l[r])?void 0:c.type)||"column"===(null==(h=null==(n=this.w.config.series)?void 0:n[r])?void 0:h.type)))&&null!==this.w.seriesData.series[r][d]&&A.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 wt(){return{palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800"],palette3:["#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B"],palette4:["#4ECDC4","#C7F464","#81D4FA","#FD6A6A","#546E7A"],palette5:["#2B908F","#F9A3A4","#90EE7E","#FA4443","#69D2E7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}class vt{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="bar"===t.config.chart.type&&t.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===t.config.xaxis.position?t.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new it(t,{theme:e,timeScale:s})}drawYaxis(t){const e=this.w,s=new _(this.w),i=e.config.yaxis[t].labels.style,{fontSize:a,fontFamily:o,fontWeight:r}=i,l=s.group({class:"apexcharts-yaxis",rel:t,transform:`translate(${e.globals.translateYAxisX[t]}, 0)`});if(this.axesUtils.isYAxisHidden(t))return l;const c=s.group({class:"apexcharts-yaxis-texts-g"});l.add(c);const n=e.globals.yAxisScale[t].result.length-1,h=e.layout.gridHeight/n,d=e.formatters.yLabelFormatters[t],g=this.axesUtils.checkForRever
vendor: 5,665 bytes, line 1
1sedLabels(t,e.globals.yAxisScale[t].result.slice());if(e.config.yaxis[t].labels.show){let f=e.layout.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?f=0:"heatmap"===e.config.chart.type&&(f-=h/2),f+=parseInt(a,10)/3;let p=null;for(let u=n;u>=0;u--){const m=d(g[u],u,e);let x=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(x*=-1);const y=this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite),w=this.axesUtils.getYAxisForeColor(i.colors,t),S=Array.isArray(w)?w[u]:w,v=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-label tspan`)).map(L=>L.textContent),C=s.drawText({x,y:f,text:v.includes(m)&&!e.config.yaxis[t].labels.showDuplicates?"":m,textAnchor:y,fontSize:a,fontFamily:o,fontWeight:r,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:S,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${i.cssClass}`});c.add(C),this.addTooltip(C,m),null===p&&(p=C),0!==e.config.yaxis[t].labels.rotate&&this.rotateLabel(s,C,p,e.config.yaxis[t].labels.rotate),f+=h}}return this.addYAxisTitle(s,l,t),this.addAxisBorder(s,l,t,n,h),l}getTextAnchor(t,e){return"left"===t?"start":"center"===t?"middle":"right"===t?"end":e?"start":"end"}addTooltip(t,e){const s=F.createElementNS(Y,"title");s.textContent=Array.isArray(e)?e.join(" "):e,t.node.appendChild(s)}rotateLabel(t,e,s,i){const a=t.rotateAroundCenter(s.node),o=t.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(${i} ${a.x} ${o.y})`)}addYAxisTitle(t,e,s){const i=this.w;if(void 0!==i.config.yaxis[s].title.text){const a=t.group({class:"apexcharts-yaxis-title"}),r=t.drawText({x:i.config.yaxis[s].opposite?i.globals.translateYAxisX[s]:0,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){const o=this.w,r=o.config.yaxis[s].axisBorder;let l=31+r.offsetX;if(o.config.yaxis[s].opposite&&(l=-31-r.offsetX),r.show){const c=t.drawLine(l,o.layout.translateY+r.offsetY-2,l,o.layout.gridHeight+o.layout.translateY+r.offsetY+2,r.color,0,r.width);e.add(c)}o.config.yaxis[s].axisTicks.show&&this.axesUtils.drawYAxisTicks(l,i,r,o.config.yaxis[s].axisTicks,s,a,e)}drawYaxisInversed(t){const e=this.w,s=new _(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;const r=e.layout.gridWidth/o+.1;let l=r+e.config.xaxis.labels.offsetX;const c=e.formatters.xLabelFormatter;let n=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());const h=e.labelData.timescaleLabels;if(h.length>0&&(this.xaxisLabels=h.slice(),n=h.slice(),o=n.length),e.config.xaxis.labels.show)for(let d=h.length?0:o;h.length?d<h.length:d>=0;h.length?d++:d--){let g=c?.(n[d],d,e),f=e.layout.gridWidth+e.globals.padHorizontal-(l-r+e.config.xaxis.labels.offsetX);if(h.length){const u=this.axesUtils.getLabel(n,h,f,d,this.drawnLabels,this.xaxisFontSize);f=u.x,g=u.text,this.drawnLabels.push(u.text),0===d&&e.globals.skipFirstTimelinelabel&&(g=""),d===n.length-1&&e.globals.skipLastTimelinelabel&&(g="")}const p=s.drawText({x:f,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.layout.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:g,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,g),l+=r}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}inversedYAxisBorder(t){const e=this.w,s=new _(this.w),i=e.config.xaxis.axisBorder;if(i.show){let a=0;"bar"===e.config.chart.type&&e.axisFlags.isXNumeric&&(a-=15);const 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){const e=this.w,s=new _(this.w);if(void 0!==e.config.xaxis.title.text){const 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){const s=this.w,i=new _(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`),l=r?r.getBoundingClientRect():{width:0,height:0};if(r){const c=this.xPaddingForYAxisTitle(t,o,l,e);r.setAttribute("x",String(c.xPos-(e?10:0)));
vendor: 9,400 bytes, line 1
1const n=i.rotateAroundCenter(r);r.setAttribute("transform",`rotate(${e?-1*s.config.yaxis[t].title.rotate:s.config.yaxis[t].title.rotate} ${n.x} ${n.y})`)}}xPaddingForYAxisTitle(t,e,s,i){const a=this.w;let o=0,r=10;return void 0===a.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(i?o=e.width+a.config.yaxis[t].title.offsetX+s.width/2+r/2:(o=-1*e.width+a.config.yaxis[t].title.offsetX+r/2+s.width/2,a.globals.isBarHorizontal&&(r=25,o=-1*e.width-a.config.yaxis[t].title.offsetX-r)),{xPos:o,padd:r})}setYAxisXPosition(t,e){const s=this.w;let i=0,a=0,o=18,r=1;s.config.yaxis.length>1&&(this.multipleYs=!0),s.config.yaxis.forEach((l,c)=>{const n=s.globals.ignoreYAxisIndexes.includes(c)||!l.show||l.floating||0===t[c].width,h=t[c].width+e[c].width;l.opposite?s.globals.isBarHorizontal?(a=s.layout.gridWidth+s.layout.translateX-1,s.globals.translateYAxisX[c]=a-l.labels.offsetX):(a=s.layout.gridWidth+s.layout.translateX+r,n||(r+=h+20),s.globals.translateYAxisX[c]=a-l.labels.offsetX+20):(i=s.layout.translateX-o,n||(o+=h+20),s.globals.translateYAxisX[c]=i+l.labels.offsetX)})}setYAxisTextAlignments(){const t=this.w;Array.from(t.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((s,i)=>{const a=t.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){const 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`)),l=o.getBoundingClientRect();r.forEach(c=>{c.setAttribute("text-anchor",a.labels.align)}),"left"!==a.labels.align||a.opposite?"center"===a.labels.align?o.setAttribute("transform",`translate(${l.width/2*(a.opposite?1:-1)}, 0)`):"right"===a.labels.align&&a.opposite&&o.setAttribute("transform",`translate(${l.width}, 0)`):o.setAttribute("transform",`translate(-${l.width}, 0)`)}})}}class ee{constructor(t,e){this.w=t,this.ctx=e,this.documentEvent=this.documentEvent.bind(this)}addEventListener(t,e){const 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){const s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;const i=s.globals.events[t].indexOf(e);-1!==i&&s.globals.events[t].splice(i,1)}fireEvent(t,e){const s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;(!e||!e.length)&&(e=[]);const i=s.globals.events[t],a=i.length;for(let o=0;o<a;o++)i[o].apply(null,e)}setupEventHandlers(){const t=this.w,e=this.ctx,s=t.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(i=>{s?.addEventListener(i,a=>{const o=null===a.target.getAttribute("i")&&-1!==t.interact.capturedSeriesIndex?t.interact.capturedSeriesIndex:a.target.getAttribute("i"),r=null===a.target.getAttribute("j")&&-1!==t.interact.capturedDataPointIndex?t.interact.capturedDataPointIndex:a.target.getAttribute("j"),l=Object.assign({},t,{seriesIndex:t.globals.axisCharts?o:0,dataPointIndex:r});"keydown"===a.type?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&(e.ctx.keyboardNavigation&&e.ctx.keyboardNavigation.handleKey(a),"function"==typeof t.config.chart.events.keyDown&&t.config.chart.events.keyDown(a,e,l),e.ctx.events.fireEvent("keydown",[a,e,l])):"keyup"===a.type?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&("function"==typeof t.config.chart.events.keyUp&&t.config.chart.events.keyUp(a,e,l),e.ctx.events.fireEvent("keyup",[a,e,l])):"mousemove"===a.type||"touchmove"===a.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(a,e,l):"mouseleave"===a.type||"touchleave"===a.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(a,e,l):("mouseup"===a.type&&1===a.which||"touchend"===a.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(a,e,l),e.ctx.events.fireEvent("click",[a,e,l]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(i=>{t.dom.baseEl.addEventListener(i,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(t){const e=this.w,s=t.target.className;if("click"===t.type){const i=e.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==s&&i.classList.remove("apexcharts-menu-open")}e.interact.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.interact.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}class se{constructor(t){this.w=t}setCurrentLocaleValues(t){let e=this.w.config.chart.locales;const s=M.getApex();s.chart&&s.chart.locales&&s.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(s.chart.locales));const i=e.filter(a=>a.name===t)[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");{const a=A.extend(Zt,i);this.w.globals.locale=a.options}}}class ie{constructor(t,e){this.w=t,this.ctx=e}drawAxis(t,e){const s=this.w.globals,i=this.w.config,a=new nt(this.w,this.ctx,e),o=new vt(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},e);if(s.axisCharts&&"radar"!==t){let r,l;s.isBarHorizontal?(l=o.drawYaxisInversed(0),r=a.drawXaxisInversed(0),this.w.dom.elGraphical.add(r),this.w.dom.elGraphical.add(l)):(r=a.drawXaxis(),this.w.dom.elGraphical.add(r),i.yaxis.map((c,n)=>{if(-1===s.ignoreYAxisIndexes.indexOf(n)&&(l=o.drawYaxis(n),this.w.dom.Paper.add(l),"back"===this.w.config.grid.position)){const h=this.w.dom.Paper.children()[1];h&&(h.remove(),this.w.dom.Paper.add(h))}}))}}}class At{constructor(t){this.w=t}drawXCrosshairs(){const t=this.w,e=new _(this.w),s=new Z(this.w),i=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,g=a.enabled,f=a.left,p=a.top,u=a.blur,m=a.color,x=a.opacity;let y=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===t.config.xaxis.crosshairs.fill.type&&(y=e.drawGradient("vertical",i.colorFrom,i.colorTo,i.opacityFrom,i.opacityTo,null,i.stops,[]));let w=e.drawRect();1===t.config.xaxis.crosshairs.width&&(w=e.drawLine(0,0,0,0));let S=t.layout.gridHeight;(!A.isNumber(S)||S<0)&&(S=0);let v=t.config.xaxis.crosshairs.width;(!A.isNumber(v)||Number(v)<0)&&(v=0),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:S,width:v,height:S,fill:y,filter:"none","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}),g&&(w=s.dropShadow(w,{left:f,top:p,blur:u,color:m,opacity:x})),t.dom.elGraphical.add(w)}}drawYCrosshairs(){const t=this.w,e=new _(this.w),s=t.config.yaxis[0].crosshairs,i=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){const 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)}const 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)}}class ae{constructor(t){this.w=t,this._activeBreakpoint=null}checkResponsiveConfig(t){const e=this.w,s=e.config;if(0===s.responsive.length)return;const i=s.responsive.slice();i.sort((r,l)=>r.breakpoint>l.breakpoint?1:l.breakpoint>r.breakpoint?-1:0).reverse();const a=new lt({}),o=(r={})=>{const l=i[0].breakpoint,c=M.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(c>l){if(null!==this._activeBreakpoint){if(!e.globals.initialConfig)return;const n=A.clone(e.globals.initialConfig);n.series=A.clone(e.config.series);const h=q.extendArrayProps(a,n,e);r=A.extend(h,r),this.overrideResponsiveOptions(r),this._activeBreakpoint=null}}else for(let n=0;n<i.length;n++)c<i[n].breakpoint&&(r=q.extendArrayProps(a,i[n].options,e),r=A.extend(e.config,r),this.overrideResponsiveOptions(r),this._activeBreakpoint=i[n].breakpoint)};if(t){let r=q.extendArrayProps(a,t,e);r=A.extend(e.config,r),r=A.extend(r,t),o(r)}else o({})}overrideResponsiveOptions(t){const e=new lt(t).init({responsiveOverride:!0});this.w.config=e}}class J{constructor(t,{toggleDataSeries:e,revertDefaultAxisMinMax:s,updateSeries:i}={}){this.w=t,this._toggleDataSeries=e||null,this._revertDefaultAxisMinMax=s||null,this._updateSeries=i||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){const t=this.w;t.globals.cachedSelectors&&(delete t.globals.cachedSelectors.allSeriesEls,delete t.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){const 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='${A.escapeString(t)}']`)}isSeriesHidden(t){var e;const i=this.getSeriesByName(t),a=parseInt(null!=(e=i.getAttribute("data:realIndex"))?e:"0",10);return{isHidden:i.classList.contains("apexcharts-series-collapsed"),realIndex:a}}addCollapsedClassToSeries(t,e){J.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;const s=this.isSeriesHidden(t);
1return null==(e=this._toggleDataSeries)||e.call(this,s.realIndex,s.isHidden),s.isHidden}showSeries(t){var e;const s=this.isSeriesHidden(t);s.isHidden&&(null==(e=this._toggleDataSeries)||e.call(this,s.realIndex,!0))}hideSeries(t){var e;const s=this.isSeriesHidden(t);s.isHidden||null==(e=this._toggleDataSeries)||e.call(this,s.realIndex,!1)}resetSeries(t=!0,e=!0,s=!0){var i,a;const o=this.w;this.clearSeriesCache();let r=A.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,null==(i=this._revertDefaultAxisMinMax)||i.call(this)),null==(a=this._updateSeries)||a.call(this,r,o.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(t){const 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;const s=this.w,i=this.getSeriesByName(t),a=parseInt(null!=(e=i?.getAttribute("data:realIndex"))?e:"",10),o="highlightSeriesEls";let r=s.globals.cachedSelectors[o];r||(r=s.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),s.globals.cachedSelectors[o]=r);let l=null,c=null,n=null;s.globals.axisCharts||"radialBar"===s.config.chart.type?s.globals.axisCharts?(l=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${a}']`),c=s.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${a}']`),n=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${s.globals.seriesYAxisReverseMap[a]}']`)):l=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}']`):l=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}'] path`);for(let h=0;h<r.length;h++)r[h].classList.add(this.legendInactiveClass);if(l){if(!s.globals.axisCharts){const h=l.parentNode;h?.classList.remove(this.legendInactiveClass)}l.classList.remove(this.legendInactiveClass),null!==c&&c.classList.remove(this.legendInactiveClass),null!==n&&n.classList.remove(this.legendInactiveClass)}else for(let h=0;h<r.length;h++)r[h].classList.remove(this.legendInactiveClass)}toggleSeriesOnHover(t,e){const s=this.w;e||(e=t.target);const i=s.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===t.type){const a=parseInt(e.getAttribute("rel"),10)-1;this.highlightSeries(s.seriesData.seriesNames[a])}else if("mouseout"===t.type)for(let a=0;a<i.length;a++)i[a].classList.remove(this.legendInactiveClass)}highlightRangeInSeries(t,e){const s=this.w,i=s.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=r=>{for(let l=0;l<i.length;l++){const c=i[l].classList[r];"function"==typeof c&&c.call(i[l].classList,this.legendInactiveClass)}},o=(r,l)=>{for(let c=0;c<i.length;c++){const n=Number(i[c].getAttribute("val"));n>=r.from&&(n<r.to||r.to===l&&n===l)&&i[c].classList.remove(this.legendInactiveClass)}};if("mousemove"===t.type){const r=parseInt(e.getAttribute("rel"),10)-1;a("add");const l=s.config.plotOptions.heatmap.colorScale.ranges;o(l[r],l.reduce((h,d)=>Math.max(h,d.to),0))}else"mouseout"===t.type&&a("remove")}getActiveConfigSeriesIndex(t="asc",e=[]){const s=this.w;let i=0;if(s.config.series.length>1){const a=s.config.series.map((o,r)=>o.data&&o.data.length>0&&-1===s.globals.collapsedSeriesIndices.indexOf(r)&&(!s.globals.comboCharts||0===e.length||e.length&&e.indexOf(s.config.series[r].type)>-1)?r:-1);for(let o="asc"===t?0:a.length-1;"asc"===t?o<a.length:o>=0;"asc"===t?o++:o--)if(-1!==a[o]){i=a[o];break}}return i}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,s)=>"bar"===e.type||"column"===e.type?s:-1).filter(e=>-1!==e):this.w.config.series.map((e,s)=>s)}getPreviousPaths(){var t,e,s,i;const a=this.w;function o(n,h,d){const g=n[h].childNodes,f={type:d,paths:[],realIndex:n[h].getAttribute("data:realIndex")};for(let p=0;p<g.length;p++)if(g[p].hasAttribute("pathTo")){const u=g[p].getAttribute("pathTo");f.paths.push({d:u})}a.globals.previousPaths.push(f)}a.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(n=>{const h=(n=>a.dom.baseEl.querySelectorAll(`.apexcharts-${n}-series .apexcharts-series`))(n);for(let d=0;d<h.length;d++)o(h,d,n)});const c=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series`);
vendor: 5,090 bytes, line 1
1if(c.length>0)for(let n=0;n<c.length;n++){const h=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series[data\\:realIndex='${n}'] rect`),d=[];for(let g=0;g<h.length;g++){const f=u=>h[g].getAttribute(u),p={x:parseFloat(null!=(t=f("x"))?t:"0"),y:parseFloat(null!=(e=f("y"))?e:"0"),width:parseFloat(null!=(s=f("width"))?s:"0"),height:parseFloat(null!=(i=f("height"))?i:"0")};d.push({rect:p,color:h[g].getAttribute("color")})}a.globals.previousPaths.push(d)}a.globals.axisCharts||(a.globals.previousPaths=a.seriesData.series)}clearPreviousPaths(){const t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}handleNoData(){const t=this.w,s=t.config.noData,i=new _(this.w);let a=t.globals.svgWidth/2,o=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===s.align?(a=10,r="start"):"right"===s.align&&(a=t.globals.svgWidth-10,r="end"),"top"===s.verticalAlign?o=50:"bottom"===s.verticalAlign&&(o=t.globals.svgHeight-50),a+=s.offsetX,o=o+parseInt(s.style.fontSize,10)+2+s.offsetY,void 0!==s.text&&""!==s.text){const l=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(l)}}setNullSeriesToZeroValues(t){const e=this.w;for(let s=0;s<t.length;s++)if(0===t[s].length)for(let i=0;i<t[e.globals.maxValsInArrayIndex].length;i++)t[s].push(0);return t}hasAllSeriesEqualX(){let t=!0;const 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:[])}}class re{constructor(t){this.w=t,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}checkHeatmapDistributed(){const{chart:t,plotOptions:e}=this.w.config;return"treemap"===t.type&&e.treemap&&e.treemap.distributed||"heatmap"===t.type&&e.heatmap&&e.heatmap.distributed}checkBarDistributed(){const{chart:t,plotOptions:e}=this.w.config;return e.bar&&e.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}init(){this.setDefaultColors()}setDefaultColors(){var t;const e=this.w,s=new A;e.dom.elWrap.classList.add(`apexcharts-theme-${e.config.theme.mode||"light"}`);const i=null==(t=e.config.theme.accessibility)?void 0:t.colorBlindMode;if(i){e.globals.colors=this.getColorBlindColors(i),this.applySeriesColors(e.seriesData.seriesColors,e.globals.colors);const r=e.globals.colors.slice();return this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r),void("highContrast"===i&&e.dom.elWrap.classList.add("apexcharts-high-contrast"))}const 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));const 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){const e=this.w;return t&&0!==t.length?Array.isArray(t)&&t.length>0&&"function"==typeof t[0]?(this.isColorFn=!0,e.config.series.map((s,i)=>{const a=t[i]||t[0];return"function"==typeof a?a({value:e.globals.axisCharts?e.seriesData.series[i][0]||0:e.seriesData.series[i],seriesIndex:i,dataPointIndex:i,w:this.w}):a})):t:this.predefined()}applySeriesColors(t,e){t.forEach((s,i)=>{s&&(e[i]=s)})}getMonochromeColors(t,e,s){const{color:i,shadeIntensity:a,shadeTo:o}=t,r=this.isBarDistributed||this.isHeatmapDistributed?e[0].length*e.length:e.length,l=1/(r/a);let c=0;return Array.from({length:r},()=>{const n=s.shadeColor("dark"===o?-1*c:c,i);return c+=l,n})}applyColorTypes(t,e){const s=this.w;t.forEach(i=>{s.globals[i].colors=void 0===s.config[i].colors?this.isColorFn?s.config.colors:e:s.config[i].colors.slice(),this.pushExtraColors(s.globals[i].colors)})}applyDataLabelsColors(t){const e=this.w;e.globals.dataLabels.style.colors=void 0===e.config.dataLabels.style.colors?t:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){const t=this.w;t.globals.radarPolygons.fill.colors=void 0===t.config.plotOptions.radar.polygons.fill.colors?["dark"===t.config.theme.mode?"#343A3F":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20)}applyMarkersColors(t){const e=this.w;e.globals.markers.colors=void 0===e.config.markers.colors?t:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}pushExtraColors(t,e,s=null){const i=this.w;let a=e||i.seriesData.series.length;if(null===s&&(s=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap&&i.c
1onfig.plotOptions.heatmap.colorScale.inverse),s&&i.seriesData.series.length&&(a=i.seriesData.series[i.globals.maxValsInArrayIndex].length*i.seriesData.series.length),t.length<a){const o=a-t.length;for(let r=0;r<o;r++)t.push(t[r])}}getColorBlindColors(t){return({deuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],protanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],tritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}[t]||["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]).slice()}updateThemeOptions(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};const e=t.theme.mode,s="dark"===e?"palette4":"light"===e?"palette1":t.theme.palette||"palette1",i="dark"===e?"#f6f7f8":"light"===e?"#373d3f":t.chart.foreColor||"#373d3f";return t.tooltip.theme=e||"light",t.chart.foreColor=i,t.theme.palette=s,t}predefined(){const e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800"],palette3:["#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B"],palette4:["#4ECDC4","#C7F464","#81D4FA","#FD6A6A","#546E7A"],palette5:["#2B908F","#F9A3A4","#90EE7E","#FA4443","#69D2E7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return e[this.w.config.theme.palette]||e.palette1}}class oe{constructor(t){this.w=t}draw(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}drawTitleSubtitle(t){const e=this.w,s="title"===t?e.config.title:e.config.subtitle;let i=e.globals.svgWidth/2,a=s.offsetY,o="middle";if("left"===s.align?(i=10,o="start"):"right"===s.align&&(i=e.globals.svgWidth-10,o="end"),i+=s.offsetX,a=a+parseInt(s.style.fontSize,10)+s.margin/2,void 0!==s.text){const l=new _(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});l.node.setAttribute("class",`apexcharts-${t}-text`),e.dom.Paper.add(l)}}}class le{constructor(t){this.w=t.w,this.dCtx=t}getTitleSubtitleCoords(t){const e=this.w;let s=0,i=0;const a="title"===t?e.config.title.floating:e.config.subtitle.floating,o=e.dom.baseEl.querySelector(`.apexcharts-${t}-text`);if(null!==o&&!a){const r=o.getBoundingClientRect();s=r.width,i=e.globals.axisCharts?r.height+5:r.height}return{width:s,height:i}}getLegendsRect(){const t=this.w,e=t.dom.elLegendWrap;!t.config.legend.height&&("top"===t.config.legend.position||"bottom"===t.config.legend.position)&&e&&(e.style.maxHeight=t.globals.svgHeight/2+"px");const s=Object.assign({},A.getBoundingClientRect(e));return this.dCtx.lgRect=null!==e&&!t.config.legend.floating&&t.config.legend.show?{x:s.x,y:s.y,height:s.height,width:0===s.height?0:s.width}:{x:0,y:0,height:0,width:0},("left"===t.config.legend.position||"right"===t.config.legend.position)&&1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){const t=this.w,e=[];t.config.series.forEach((r,l)=>{r.data.forEach((c,n)=>{const d=t.config.dataLabels.formatter(t.seriesData.series[l][n],{seriesIndex:l,dataPointIndex:n,w:t});e.push(d)})});const s=A.getLargestStringFromArr(e),i=new _(this.w),a=t.config.dataLabels.style,o=i.getTextRects(s,parseInt(a.fontSize).toString(),a.fontFamily);return{width:1.05*o.width,height:o.height}}getLargestStringFromMultiArr(t,e){let i=t;if(this.w.axisFlags.isMultiLineX){const a=e.map(l=>Array.isArray(l)?l.length:1),o=Math.max(...a);i=e[a.indexOf(o)]}return i}}class ne{constructor(t){this.w=t.w,this.dCtx=t}getxAxisLabelsCoords(){const t=this.w;let s,e=t.labelData.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===e.length&&(e=t.labelData.categoryLabels),t.labelData.timescaleLabels.length>0){const i=this.getxAxisTimeScaleLabelsCoords();s={width:i.width,height:i.height},t.layout.rotateXLabels=!1}
vendor: 6,826 bytes, line 1
1else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;const i=t.formatters.xLabelFormatter;let a=A.getLargestStringFromArr(e),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,e);t.globals.isBarHorizontal&&(a=t.globals.yAxisScale[0].result.reduce((d,g)=>d.length>g.length?d:g,0),o=a);const r=new rt(this.w),l=a;a=r.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new O(this.w).formatDate,w:t}),o=r.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new O(this.w).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&typeof a>"u"||""===String(a).trim())&&(a="1",o=a);const c=new _(this.w);let n=c.getTextRects(a,t.config.xaxis.labels.style.fontSize),h=n;if(a!==o&&(h=c.getTextRects(o,t.config.xaxis.labels.style.fontSize)),s={width:n.width>=h.width?n.width:h.width,height:n.height>=h.height?n.height:h.height},s.width*e.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.layout.rotateXLabels=!0;const d=g=>c.getTextRects(g,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,`rotate(${t.config.xaxis.labels.rotate} 0 0)`,!1);n=d(a),a!==o&&(h=d(o)),s.height=(n.height>h.height?n.height:h.height)/1.5,s.width=n.width>h.width?n.width:h.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;const e=this.w;if(!e.labelData.hasXaxisGroups)return{width:0,height:0};const s=(null==(t=e.config.xaxis.group.style)?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,i=e.labelData.groups.map(h=>h.title);let a;const o=A.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i),l=new _(this.w),c=l.getTextRects(o,s);let n=c;return o!==r&&(n=l.getTextRects(r,s)),a={width:c.width>=n.width?c.width:n.width,height:c.height>=n.height?c.height:n.height},e.config.xaxis.labels.show||(a={width:0,height:0}),{width:a.width,height:a.height}}getxAxisTitleCoords(){const t=this.w;let e=0,s=0;if(void 0!==t.config.xaxis.title.text){const a=new _(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(){const t=this.w;this.dCtx.timescaleLabels=t.labelData.timescaleLabels.slice();const e=this.dCtx.timescaleLabels.map(r=>r.value),s=e.reduce((r,l)=>typeof r>"u"?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>l.length?r:l,0),a=new _(this.w).getTextRects(s,t.config.xaxis.labels.style.fontSize);return 1.05*a.width*e.length>t.layout.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),a}additionalPaddingXLabels(t){const e=this.w,s=e.globals,i=e.config,a=i.xaxis.type,o=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;const r=e.config.yaxis[0].opposite&&e.globals.isBarHorizontal,c=h=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){const p=this.dCtx.timescaleLabels[0].position-o/1.75+this.dCtx.yAxisWidthLeft;this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+o/1.75-this.dCtx.yAxisWidthRight>s.svgWidth-e.layout.translateX-("right"===e.config.legend.position&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0)&&(s.skipLastTimelinelabel=!0),p<-(h.show&&!h.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:o/1.75)&&(s.skipFirstTimelinelabel=!0)}else"datetime"===a?this.dCtx.gridPad.right<o&&!e.layout.rotateXLabels&&(s.skipLastTimelinelabel=!0):"datetime"!==a&&this.dCtx.gridPad.right<o/2-this.dCtx.yAxisWidthRight&&!e.layout.rotateXLabels&&!e.config.xaxis.labels.trim&&(this.dCtx.xPadRight=o/2+1)};i.yaxis.forEach((h,d)=>{r?(this.dCtx.gridPad.left<o&&(this.dCtx.xPadLeft=o/2+1),this.dCtx.xPadRight=o/2+1):((h,d)=>{i.yaxis.length>1&&(h=>-1!==s.collapsedSeriesIndices.indexOf(h))(d)||c(h)})(h,d)})}}class ce{constructor(t){this.w=t.w,this.dCtx=t}getyAxisLabelsCoords(){const t=this.w,i=[];let a=10;const o=new it(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return t.config.yaxis.map((r,l)=>{const c={seriesIndex:l,dataPointIndex:-1,w:t},n=t.globals.yAxisScale[l];let h=0;if(!o.isYAxisHidden(l)&&r.labels.show&&void 0!==r.labels.minWidth&&(h=r.labels.minWidth),!o.isYAxisHidden(l)&&r.labels.show&&n.result.length){const d=t.formatters.yLabelFormatters[l];let f=n.result.reduce((w,S)=>{var v,C;return(null==(v=String(d(w,c)))?void 0:v.length)>(null==(C=String(d(S,c)))?void 0:C.length)?w:S},n.niceMin===Number.MIN_VALUE?0:n.niceMin);f=d(f,c);let p=f;if((typeof f>"u"||0===f.length)&&(f=n.niceMax),1===String(f).length&&(f+=".0",p=f),t.globals.isBarHorizontal){a=0;const w=t.labelData.labels.slice();f=A.getLargestStringFromArr(w),f=d(f,{seriesIndex:l,dataPointIndex:-1,w:t}),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(f,w)}const u=new _(this.w),m="rotate(".concat(r.labels.rotate," 0 0)"),x=u.getTextRects(f,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1);let y=x;f!==p&&(y=u.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1)),i.push({width:(h>y.width||h>x.width?h:y.width>x.width?y.width:x.width)+a,height:y.height>x.height?y.height:x.height})}else i.push({width:0,height:0})}),i}getyAxisTitleCoords(){const e=[];return this.w.config.yaxis.map(s=>{if(s.show&&void 0!==s.title.text){const i=new _(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(){const t=this.w;let e=0,s=0,i=0;const a=t.globals.yAxisScale.length>1?10:0,o=new it(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),l=(c,n)=>{const h=t.config.yaxis[n].floating;let d=0;c.width>0&&!h?(d=c.width+a,function(c){return t.globals.ignoreYAxisIndexes.indexOf(c)>-1}(n)&&(d=d-c.width-a)):d=h||o.isYAxisHidden(n)?0:5,t.config.yaxis[n].opposite?i+=d:s+=d,e+=d};return t.layout.yLabelsCoords.map((c,n)=>{l(c,n)}),t.layout.yTitleCoords.map((c,n)=>{l(c,n)}),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}}class he{constructor(t){this.w=t.w,this.dCtx=t}gridPadForColumnsInNumericAxis(t){const{w:e}=this,{config:s,globals:i}=e;if(i.noData||i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===s.series.length)return 0;const a=h=>["bar","rangeBar","candlestick","boxPlot"].includes(h),o=s.chart.type;let r=0,l=a(o)?s.series.length:1;i.comboBarCount>
10&&(l=i.comboBarCount),i.collapsedSeries.forEach(h=>{a(h.type)&&(l-=1)}),s.chart.stacked&&(l=1);const c=a(o)||i.comboBarCount>0;let n=Math.abs(i.initialMaxX-i.initialMinX);if(c&&e.axisFlags.isXNumeric&&!i.isBarHorizontal&&l>0&&0!==n){n<=3&&(n=i.dataPoints);const h=n/t;let d=i.minXDiff&&i.minXDiff/h>0?i.minXDiff/h: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(){const{w:t}=this,{globals:e}=t;let s=this.dCtx.isSparkline||!e.axisCharts?0:10;["title","subtitle"].forEach(r=>{s+=void 0!==t.config[r].text?t.config[r].margin:this.dCtx.isSparkline||!e.axisCharts?0:5}),t.config.legend.show&&"bottom"===t.config.legend.position&&!t.config.legend.floating&&!e.axisCharts&&(s+=10);const 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){const{w:s}=this,i=new it(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});s.config.yaxis.forEach((a,o)=>{-1===s.globals.ignoreYAxisIndexes.indexOf(o)&&!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))})}}class Xt{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 le(this),this.dimYAxis=new ce(this),this.dimXAxis=new ne(this),this.dimGrid=new he(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(){const t=this.w,e=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};const 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;const i=this.dimGrid.gridPadForColumnsInNumericAxis(t.layout.gridWidth);return t.layout.gridWidth=t.layout.gridWidth-2*i,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(){const 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((g,f)=>{t.layout.yLabelsCoords.push({width:s[f].width,index:f}),t.layout.yTitleCoords.push({width:i[f].width,index:f})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();const 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=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),t.layout.translateXAxisY=t.layout.translateXAxisY+t.config.xaxis.labels.offsetY,t.layout.translateXAxisX=t.layout.translateXAxisX+t.config.xaxis.labels.offsetX;let l=this.yAxisWidth,c=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 n=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,n=0),!this.isSparkline&&"treemap"!==t.config.chart.type&&this.dimXAxis.additionalPaddingXLabels(a);const h=()=>{t.layout.translateX=l+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-this.lgRect.height-c-(this.isSparkline||"treemap"===t.config.chart.type?0:t.layout.rotateXLabels?10:15),t.layout.gridWidth=e.svgWidth-l-2*this.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(n=t.layout.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":t.layout.translateY=n,h();break;case"top":t.layout.translateY=this.lgRect.height+n,h();break;case"left":t.layout.translateY=n,t.layout.translateX=this.lgRect.width+l+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-c-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":t.layout.translateY=n,t.layout.translateX=l+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-c-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-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(){const t=this.w,e=t.globals,s=t.config;let i=0;t.config.legend.show&&!t.config.legend.floating&&(i=20);const a="pie"===s.chart.type||"polarArea"===s.chart.type||"donut"===s.chart.type?"pie":"radialBar",o=s.plotOptions[a].offsetY,r=s.plotOptions[a].offsetX;if(!s.legend.show||s.legend.floating){t.layout.gridHeight=e.svgHeight;const l=t.dom.elWrap.getBoundingClientRect().width;return t.layout.gridWidth=Math.min(l,t.layout.gridHeight),t.layout.translateY=o,void(t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2)}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="auto"!==s.chart.height?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="auto"!==s.chart.height?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){const i=this.w;this.xAxisHeight=(s.height+t.height+e.height)*(i.axisFlags.isMultiLineX?1.2:_t)+(i.labelData.hasXaxisGroups?2:1)*(i.layout.rotateXLabels?22:10)+(i.layout.rotateXLabels&&"bottom"===i.config.legend.position?10:0),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 h=0,d=0;i.config.yaxis.forEach(g=>{h+=g.labels.minWidth,d+=g.labels.maxWidth}),this.yAxisWidth<h&&(this.yAxisWidth=h),this.yAxisWidth>d&&(this.yAxisWidth=d)}}const Ue=10/86400;class fe{constructor(t,e){this.w=t,this.ctx=e,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(t,e){const s=this.w;if(s.globals.allSeriesCollapsed)return s.labelData.labels=[],s.labelData.timescaleLabels=[],[];const i=new O(this.w),a=(e-t)/864e5;this.determineInterval(a),s.interact.disableZoomIn=!1,s.interact.disableZoomOut=!1,a<Ue?s.interact.disableZoomIn=!0:a>5e4&&(s.interact.disableZoomOut=!0);const o=i.getTimeUnitsfromTimestamp(t,e),r=s.layout.gridWidth/a,l=r/24,c=l/60,n=c/60,h=Math.floor(24*a),d=Math.floor(1440*a),g=Math.floor(86400*a),f=Math.floor(a),p=Math.floor(a/30),u=Math.floor(a/365),m={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},k={firstVal:m,currentMillisecond:m.minMillisecond,currentSecond:m.minSecond,currentMinute:m.minMinute,currentHour:m.minHour,currentMonthDate:m.minDate,currentDate:m.minDate,currentMonth:m.minMonth,currentYear:m.minYear,daysWidthOnXAxis:r,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:n,numberOfSeconds:g,numberOfMinutes:d,numberOfHours:h,numberOfDays:f,numberOfMonths:p,numberOfYears:u};switch(this.tickInterval){case"years":this.generateYearScale(k);break;case"months":case"half_year":this.generateMonthScale(k);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(k);break;case"hours":this.generateHourScale(k);break;case"minutes_fives":case"minutes":this.generateMinuteScale(k);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(k)}const P=this.timeScaleArray.map(T=>{const X={position:T.position,unit:T.unit,year:T.year,day:T.day?T.day:1,hour:T.hour?T.hour:0,month:T.month+1};return"month"===T.unit?z(R({},X),{day:1,value:T.value+1}):"day"===T.unit||"hour"===T.unit?z(R({},X),{value:T.value}):"minute"===T.unit?z(R({},X),{value:T.value,minute:T.value}):"second"===T.unit?z(R({},X),{value:T.value,minute:T.minute,second:T.second}):T});return P.filter(T=>{let X=1,H=Math.ceil(s.layout.gridWidth/120);const W=T.value;void 0!==s.config.xaxis.tickAmount&&(H=s.config.xaxis.tickAmount),P.length>H&&(X=Math.floor(P.length/H));let I=!1,G=!1;switch(this.tickInterval){case"years":"year"===T.unit&&(I=!0);break;
1case"half_year":X=7,"year"===T.unit&&(I=!0);break;case"months":X=1,"year"===T.unit&&(I=!0);break;case"months_fortnight":X=15,("year"===T.unit||"month"===T.unit)&&(I=!0),30===W&&(G=!0);break;case"months_days":X=10,"month"===T.unit&&(I=!0),30===W&&(G=!0);break;case"week_days":X=8,"month"===T.unit&&(I=!0);break;case"days":X=1,"month"===T.unit&&(I=!0);break;case"hours":"day"===T.unit&&(I=!0);break;case"minutes_fives":case"seconds_fives":W%5!=0&&(G=!0);break;case"seconds_tens":W%10!=0&&(G=!0)}if("hours"===this.tickInterval||"minutes_fives"===this.tickInterval||"seconds_tens"===this.tickInterval||"seconds_fives"===this.tickInterval){if(!G)return!0}else if((W%X===0||I)&&!G)return!0})}recalcDimensionsBasedOnFormat(t){const e=this.w,s=this.formatDates(t),i=this.removeOverlappingTS(s);e.labelData.timescaleLabels=i.slice();const o=new Xt(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(o.layout)}determineInterval(t){const s=24*t,i=60*s;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case s>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}generateYearScale({firstVal:t,currentMonth:e,currentYear:s,daysWidthOnXAxis:i,numberOfYears:a}){let o=t.minYear,r=0;const l=new O(this.w),c="year";if(t.minDate>1||t.minMonth>0){const d=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);r=(l.determineDaysOfYear(t.minYear)-d+1)*i,o=t.minYear+1,this.timeScaleArray.push({position:r,value:o,unit:c,year:o,month:1})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:r,value:o,unit:c,year:s,month:A.monthMod(e+1)});let n=o,h=r;for(let d=0;d<a;d++)n++,h=l.determineDaysOfYear(n-1)*i+h,this.timeScaleArray.push({position:h,value:n,unit:c,year:n,month:1})}generateMonthScale({firstVal:t,currentMonthDate:e,currentMonth:s,currentYear:i,daysWidthOnXAxis:a,numberOfMonths:o}){let r=s,l=0;const c=new O(this.w);let n="month",h=0;if(t.minDate>1){l=(c.determineDaysOfMonths(s+1,t.minYear)-e+1)*a,r=A.monthMod(s+1);let p=i+h,u=A.monthMod(r),m=r;0===r&&(n="year",m=p,u=1,h+=1,p+=h),this.timeScaleArray.push({position:l,value:m,unit:n,year:p,month:u})}else this.timeScaleArray.push({position:l,value:r,unit:n,year:i,month:A.monthMod(s)});let d=r+1,g=l;for(let f=0,p=1;f<o;f++,p++){d=A.monthMod(d),0===d?(n="year",h+=1):n="month";const u=this._getYear(i,d,h);g=c.determineDaysOfMonths(d,u)*a+g,this.timeScaleArray.push({position:g,value:0===d?u:d,unit:n,year:u,month:0===d?1:d}),d++}}generateDayScale({firstVal:t,currentMonth:e,currentYear:s,hoursWidthOnXAxis:i,numberOfDays:a}){const o=new O(this.w);let r="day",l=t.minDate+1,c=l;const n=(m,x,y)=>(m>o.determineDaysOfMonths(x+1,y)&&(c=1,r="month",f=x+=1),x);let g=(24-t.minHour)*i,f=l,p=n(c,e,s);0===t.minHour&&1===t.minDate?(g=0,f=A.monthMod(t.minMonth),r="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(g=0,l=t.minDate,c=l,f=l,p=n(c,e,s),1!==f&&(r="day")),this.timeScaleArray.push({position:g,value:f,unit:r,year:this._getYear(s,p,0),month:A.monthMod(p),day:c});let u=g;for(let m=0;m<a;m++){c+=1,r="day",p=n(c,p,this._getYear(s,p,0));const x=this._getYear(s,p,0);u=24*i+u;const y=1===c?A.monthMod(p):c;this.timeScaleArray.push({position:u,value:y,unit:r,year:x,month:A.monthMod(p),day:y})}}generateHourScale({firstVal:t,currentDate:e,currentMonth:s,currentYear:i,minutesWidthOnXAxis:a,numberOfHours:o}){const r=new O(this.w);let c="hour";const n=(w,S)=>(w>r.determineDaysOfMonths(S+1,i)&&(u=1,S+=1),{month:S,date:u}),h=(w,S)=>(w>r.determineDaysOfMonths(S+1,i)&&(S+=1),S),d=60-(t.minMinute+t.minSecond/60);let g=d*a,f=t.minHour+1,p=f;60===d&&(g=0,f=t.minHour,p=f);let u=e;p>=24&&(p=0,u+=1,c="day",f=u);let x=n(u,s).month;x=h(u,x),"day"===c&&(f=u),this.timeScaleArray.push({position:g,value:f,unit:c,day:u,hour:p,year:i,month:A.monthMod(x)}),p++;let y=g;for(let w=0;w<o;w++){c="hour",p>=24&&(p=0,u+=1,c="day",x=n(u,x).month,x=h(u,x));const S=this._getYear(i,x,0);y=60*a+y,this.timeScaleArray.push({position:y,value:0===p?u:p,unit:c,hour:p,day:u,year:S,month:A.monthMod(x)}),p++}}generateMinuteScale({currentMillisecond:t,currentSecond:e,currentMinute:s,currentHour:i,currentDate:a,currentMonth:o,currentYear:r,minutesWidthOnXAxis:l,secondsWidthOnXAxis:c,numberOfMinutes:n}){const h=new O(this.w);let p=(60-e-t/1e3)*c,u=s+1;0===e&&0===t&&(p=0,u=s);let m=a,x=o;const y=r;let w=i,S=p;for(let v=0;v<n;v++)u>=60&&(u=0,w+=1,24===w)&&(w=0,m+=1,m>h.determineDaysOfMonths(x+1,this._getYear(y,x,0))&&(m=1,x+=1)),this.timeScaleArray.push({position:S,value:u,unit:"minute",hour:w,minute:u,day:m,year:this._getYear(y,x,0),month:A.monthMod(x)}),S+=l,u++}generateSecondScale({currentMillisecond:t,currentSecond:e,currentMinute:s,currentHour:i,currentDate:a,currentMonth:o,currentYear:r,secondsWidthOnXAxis:l,numberOfSeconds:c}){let g=(1e3-t)/1e3*l,f=e+1;0===t&&(g=0,f=e);let p=s;const u=a,m=o,x=r;let y=i,w=g;for(let S=0;S<c;S++)f>=60&&(p++,f=0,p>=60&&(y++,p=0,24===y&&(y=0))),this.timeScaleArray.push({position:w,value:f,unit:"second",hour:y,minute:p,second:f,day:u,year:this._getYear(x,m,0),month:A.monthMod(m)}),w+=l,f++}createRawDateString(t,e){let s=t.year;return 0===t.month&&(t.month=1),s+="-"+("0"+t.month.toString()).slice(-2),s+="day"===t.unit?"-"+("0"+e).slice(-2):"-"+("0"+(t.day?t.day:"1")).slice(-2),s+="hour"===t.unit?"T"+("0"+e).slice(-2):"T"+("0"+(t.hour?t.hour:"0")).slice(-2),s+="minute"===t.unit?":"+("0"+e).slice(-2):":"+(t.minute?("0"+t.minute).slice(-2):"00"),s+="second"===t.unit?":"+("0"+e).slice(-2):":00",this.utc&&(s+=".000Z"),s}formatDates(t){const e=this.w;return t.map(i=>{let a=i.value.toString();const o=new O(this.w),r=this.createRawDateString(i,a);let l=o.getDate(o.parseDate(r));if(this.utc||(l=o.getDate(o.parseDateWithTimezone(r))),void 0===e.config.xaxis.labels.format){let c="dd MMM";const n=e.config.xaxis.labels.datetimeFormatter;"year"===i.unit&&(c=n.year),"month"===i.unit&&(c=n.month),"day"===i.unit&&(c=n.day),"hour"===i.unit&&(c=n.hour),"minute"===i.unit&&(c=n.minute),"second"===i.unit&&(c=n.second),a=o.formatDate(l,c)}else a=o.formatDate(l,e.config.xaxis.labels.format);return{dateString:r,position:i.position,value:a,unit:i.unit,year:i.year,month:i.month}})}removeOverlappingTS(t){const e=new _(this.w);let i,s=!1;t.length>0&&t[0].value&&t.every(r=>r.value.length===t[0].value.length)&&(s=!0,i=e.getTextRects(t[0].value,this.w.config.xaxis.labels.style.fontSize).width);let a=0,o=t.map((r,l)=>{if(l>0&&this.w.config.xaxis.labels.hideOverlappingLabels){const c=s?i:e.getTextRects(t[a].value,this.w.config.xaxis.labels.style.fontSize).width;return r.position>t[a].position+c+10?(a=l,r):null}return r});return o=o.filter(r=>null!==r),o}_getYear(t,e,s){return t+Math.floor(e/12)+s}}const Nt="__apexcharts_registry__";function ge(){return globalThis[Nt]}function pe(b){Object.assign(ge(),b)}function U(b){const t=ge()[b];if(!t)throw new Error(`ApexCharts: chart type "${b}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return t}globalThis[Nt]||(globalThis[Nt]={});class ue{constructor(t,e,s){this.w=e,this.ctx=s,this.el=t}setupElements(){const{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"),_.setAttrs(this.w.dom.elWrap,{id:t.chartClass.substring(1),class:`apexcharts-canvas ${t.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);const o=M.isBrowser()?window.SVG:global.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="dark"!==e.theme.mode||e.chart.background?"light"!==e.theme.mode||e.chart.background?e.chart.background:"#fff"
1:"#343A3F",this.setSVGDimensions(),this.w.dom.elLegendForeign=F.createElementNS(Y,"foreignObject"),_.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){const r=this.getAccessibleChartLabel();if(this.w.dom.Paper.attr({role:e.chart.accessibility.keyboard.enabled&&e.chart.accessibility.keyboard.navigation.enabled?"application":"img","aria-label":r}),e.chart.accessibility.description){const c=F.createElementNS(Y,"desc");c.textContent=e.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(c,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){const{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:[]}},l=a.chart.type||"line";let c=null,n=0;this.w.seriesData.series.forEach((x,y)=>{var w,S;const v="column"===(null==(w=t[y])?void 0:w.type)?"bar":(null==(S=t[y])?void 0:S.type)||("column"===l?"bar":l);r[v]?("rangeArea"===v?(r[v].series.push(this.w.rangeData.seriesRangeStart[y]),r[v].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[y])):r[v].series.push(x),r[v].i.push(y),"bar"===v&&(s.globals.columnSeries=r.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(v)?c=v:console.warn(`You have specified an unrecognized series type (${v}).`),l!==v&&"scatter"!==v&&n++}),n>0&&(c&&console.warn(`Chart or series type ${c} cannot appear with other chart or series types.`),r.bar.series.length>0&&a.plotOptions.bar.horizontal&&(n-=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=n>0);const 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(U("line"))(i.w,i,e):null,f=r.candlestick.series.length>0||r.boxPlot.series.length>0||!o.comboCharts&&["candlestick","boxPlot"].includes(a.chart.type)?new(U("candlestick"))(i.w,i,e):null,p=!o.comboCharts&&["pie","donut","polarArea"].includes(a.chart.type);i.pie=p?new(U("pie"))(i.w,i):null,i.rangeBar=r.rangeBar.series.length>0||!o.comboCharts&&"rangeBar"===a.chart.type?new(U("rangeBar"))(i.w,i,e):null;let m=[];if(o.comboCharts){const x=new q(this.w);if(r.area.series.length>0&&m.push(...x.drawSeriesByGroup(r.area,o.areaGroups,"area",d)),r.bar.series.length>0)if(a.chart.stacked){const y=new(U("barStacked"))(i.w,i,e);m.push(y.draw(r.bar.series,r.bar.i))}else i.bar=new(U("bar"))(i.w,i,e),m.push(i.bar.draw(r.bar.series,r.bar.i));if(r.rangeArea.series.length>0&&m.push(d.draw(r.rangeArea.series,"rangeArea",r.rangeArea.i,r.rangeArea.seriesRangeEnd)),r.line.series.length>0&&m.push(...x.drawSeriesByGroup(r.line,o.lineGroups,"line",d)),r.candlestick.series.length>0&&m.push(f.draw(r.candlestick.series,"candlestick",r.candlestick.i)),r.boxPlot.series.length>0&&m.push(f.draw(r.boxPlot.series,"boxPlot",r.boxPlot.i)),r.rangeBar.series.length>0&&m.push(i.rangeBar.draw(r.rangeBar.series,r.rangeBar.i)),r.scatter.series.length>0){const y=new(U("line"))(i.w,i,e,!0);m.push(y.draw(r.scatter.series,"scatter",r.scatter.i))}if(r.bubble.series.length>0){const y=new(U("line"))(i.w,i,e,!0);m.push(y.draw(r.bubble.series,"bubble",r.bubble.i))}}else{const x=a.chart.type;switch(x){case"line":m=d.draw(this.w.seriesData.series,"line");break;case"area":m=d.draw(this.w.seriesData.series,"area");break;case"bar":a.chart.stacked?m=new(U("barStacked"))(i.w,i,e).draw(this.w.seriesData.series):(i.bar=new(U("bar"))(i.w,i,e),m=i.bar.draw(this.w.seriesData.series));break;case"candlestick":m=f.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":m=f.draw(this.w.seriesData.series,x);break;case"rangeBar":m=i.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":m=d.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":m=new(U("heatmap"))(i.w,i,e).draw(this.w.seriesData.series);break;case"treemap":m=new(U("treemap"))(i.w,i).draw(this.w.seriesData.series);break;case"pie":case"donut":case"polarArea":m=i.pie.draw(this.w.seriesData.series);break;case"radialBar":m=new(U("radialBar"))(i.w,i).draw(this.w.seriesData.series);break;case"radar":m=new(U("radar"))(i.w,i).draw(this.w.seriesData.series);break;default:m=d.draw(this.w.seriesData.series)}}return m}setSVGDimensions(){var t;const{globals:e,config:s}=this.w;s.chart.width=s.chart.width||"100%",s.chart.height=s.chart.height||"auto";const i=s.chart.width,a=s.chart.height;e.svgWidth=NaN,e.svgHeight=NaN;let o=A.getDimensions(this.el);const r=i.toString().split(/[0-9]+/g).pop();"%"===r?A.isNumber(o[0])&&(0===o[0].width&&(o=A.getDimensions(this.el.parentNode)),e.svgWidth=o[0]*parseInt(i,10)/100):("px"===r||""===r)&&(e.svgWidth=parseInt(i,10));const l=String(a).toString().split(/[0-9]+/g).pop();if("auto"!==a&&""!==a)if("%"===l){const c=A.getDimensions(this.el.parentNode);e.svgHeight=c[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),_.setAttrs(this.w.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==l&&M.isBrowser()){const n=this.w.dom.Paper.node;null!=(t=n.parentNode)&&t.parentNode&&(n.parentNode.parentNode.style.minHeight=`${e.svgHeight+(s.chart.sparkline.enabled?0:e.axisCharts?s.chart.parentHeightOffset:0)}px`)}this.w.dom.elWrap.style.width=`${e.svgWidth}px`,this.w.dom.elWrap.style.height=`${e.svgHeight}px`}shiftGraphPosition(){const{globals:t}=this.w,{translateY:e,translateX:s}=t;_.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${s}, ${e})`})}resizeNonAxisCharts(){var t,e;const{w:s}=this;let i=0,a=s.config.chart.sparkline.enabled?1:15;a+=s.config.grid.padding.bottom,["top","bottom"].includes(s.config.legend.position)&&s.config.legend.show&&!s.config.legend.floating&&(i=(null!=(e=null==(t=this.ctx.legend)?void 0:t.legendHelpers.getLegendDimensions().clwh)?e:0)+7);const o=s.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie");let r=2.05*s.globals.radialSize;if(o&&!s.config.chart.sparkline.enabled&&0!==s.config.plotOptions.radialBar.startAngle){const c=A.getBoundingClientRect(o);r=c.bottom,r=Math.max(2.05*s.globals.radialSize,c.bottom-c.top)}const l=Math.ceil(r+this.w.layout.translateY+i+a);this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(l)),(!s.config.chart.height||!String(s.config.chart.height).includes("%"))&&(this.w.dom.elWrap.style.height=`${l}px`,_.setAttrs(this.w.dom.Paper.node,{height:l}),M.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${l}px`))}coreCalculations(){new yt(this.w).init()}resetGlobals(){const t=()=>this.w.config.series.map(()=>[]),e=new Tt,{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)}xySettings(){const{w:t}=this;let e=null;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new At(this.w).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new At(this.w).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new fe(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 q(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(){const{ctx:t,w:e}=this;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){const s=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];
1s.forEach(i=>{const a=t.constructor.getChartByID(i);a.w.globals.brushSource=this.ctx,"function"!=typeof a.w.config.chart.events.zoomed&&(a.w.config.chart.events.zoomed=()=>this.updateSourceChart(a)),"function"!=typeof a.w.config.chart.events.scrolled&&(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(){const t=this.w,e=t.config;let s="";return e.chart.accessibility&&e.chart.accessibility.description?s=e.chart.accessibility.description:e.title.text?(s=`${e.title.text}. ${e.chart.type} chart`,e.subtitle.text&&(s+=`. ${e.subtitle.text}`)):s=`${e.chart.type} chart with ${t.seriesData.series.length||(e.series?e.series.length:0)} data series`,s}}class ft{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 q(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){const t=this.w.config.series,e=new J(this.w);this.activeSeriesIndex=e.getActiveConfigSeriesIndex();const s=t[this.activeSeriesIndex];return s&&s.data&&s.data.length>0&&null!==s.data[0]&&typeof s.data[0]<"u"?s.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var t;const e=this.getFirstDataPoint();if(!e||typeof e.x>"u")return!1;const s=null==(t=this.w.config.series[this.activeSeriesIndex])?void 0:t.data;if(s){const i=a=>a&&typeof a.x<"u";for(let a=1;a<Math.min(3,s.length);a++)if(!0!==i(s[a])){console.warn(`ApexCharts: series data has mixed formats starting at index ${a}`);break}}return!0}isFormat2DArray(){const t=this.getFirstDataPoint();return t&&Array.isArray(t)}handleFormat2DArray(t,e){const s=this.w.config,i=t[e].data,a="boxPlot"===s.chart.type||"boxPlot"===s.series[e].type;for(let o=0;o<i.length;o++){const r=i[o],l=r[0],c=r[1],n=r[2];if(typeof c<"u"&&(Array.isArray(c)&&4===c.length&&!a?this.twoDSeries.push(A.parseNumber(c[3])):this.twoDSeries.push(A.parseNumber(r.length>=5?r[4]:c)),this.w.axisFlags.dataFormatXNumeric=!0),"datetime"===s.xaxis.type){const h=new Date(l).getTime();this.twoDSeriesX.push(h)}else this.twoDSeriesX.push(l);typeof n<"u"&&(this.threeDSeries.push(n),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(t,e){const s=this.w.config,i=this.w.globals,a=new O(this.w),o=t[e].data;let r=e;i.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);const l=t[r].data;for(let c=0;c<o.length;c++){const n=o[c];if(typeof n.y<"u"){const h=Array.isArray(n.y)?A.parseNumber(n.y[n.y.length-1]):A.parseNumber(n.y);this.twoDSeries.push(h)}typeof this.seriesGoals[e]>"u"&&(this.seriesGoals[e]=[]),typeof n.goals<"u"&&Array.isArray(n.goals)?this.seriesGoals[e].push(n.goals):this.seriesGoals[e].push(null),typeof n.z<"u"&&(this.threeDSeries.push(n.z),this.w.axisFlags.isDataXYZ=!0)}for(let c=0;c<l.length;c++){const h=l[c].x,d="string"==typeof h,g=Array.isArray(h),f=!g&&!!a.isValidDate(h);d||f?d||s.xaxis.convertedCatToNumeric?"datetime"!==s.xaxis.type||i.isBarHorizontal&&this.w.axisFlags.isRangeData?(this.fallbackToCategory=!0,this.twoDSeriesX.push(h),!isNaN(h)&&"category"!==this.w.config.xaxis.type&&"string"!=typeof h&&(this.w.axisFlags.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(h)):"datetime"===s.xaxis.type?this.twoDSeriesX.push(a.parseDate(h.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(h))):g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(h)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(h))}}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]=void 0===s.start?[]:s.start,this.w.rangeData.seriesRangeEnd[e]=void 0===s.end?[]:s.end,this.w.rangeData.seriesRange[e]=s.rangeUniques,this.w.rangeData.seriesRange.forEach(i=>
1{i&&i.forEach(a=>{const o=a.y,r=o.length;if(!(r<=1))for(let l=0;l<r;l++){const c=o[l],n=c.y1,h=c.y2;for(let d=l+1;d<r;d++){const g=o[d];if(n<=g.y2&&g.y1<=h){const u=a;u.overlaps.add(c.rangeName),u.overlaps.add(g.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){const i=[],a=[],o=new Map,r=[];if(e[s].data.forEach(l=>{if(!o.has(l.x)){const c={x:l.x,overlaps:new Set,y:[]};o.set(l.x,c),r.push(c)}}),"array"===t)for(let l=0;l<e[s].data.length;l++)Array.isArray(e[s].data[l])?(i.push(e[s].data[l][1][0]),a.push(e[s].data[l][1][1])):(i.push(e[s].data[l]),a.push(e[s].data[l]));else if("xy"===t)for(let l=0;l<e[s].data.length;l++){const c=Array.isArray(e[s].data[l].y),n=A.randomId(),h=e[s].data[l].x,d={y1:c?e[s].data[l].y[0]:e[s].data[l].y,y2:c?e[s].data[l].y[1]:e[s].data[l].y,rangeName:n};e[s].data[l].rangeName=n;const g=o.get(h);g&&g.y.push(d),i.push(d.y1),a.push(d.y2)}return{start:i,end:a,rangeUniques:r}}handleCandleStickBoxDataFormat(t,e,s){const i=this.w,a="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[s].type,o=[],r=[],l=[],c=[],n=[],h=e[s].data;let d;d="array"===t?a&&6===h[0].length||!a&&5===h[0].length?f=>f.slice(1):f=>Array.isArray(f[1])?f[1]:[]:g=>Array.isArray(g.y)?g.y:[];for(let g=0;g<h.length;g++){const f=d(h[g]);f&&f.length>=2&&(o.push(f[0]),r.push(f[1]),a?(l.push(f[2]),c.push(f[3]),n.push(f[4])):(c.push(f[2]),n.push(f[3])))}return{o,h:r,m:l,l:c,c:n}}parseDataAxisCharts(t){var e,s;const i=this.w.config,a=this.w.globals,o=new O(this.w),r=i.labels.length>0?i.labels.slice():i.xaxis.categories.slice();this.w.axisFlags.isRangeBar="rangeBar"===i.chart.type&&a.isBarHorizontal,this.w.labelData.hasXaxisGroups="category"===i.xaxis.type&&i.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=i.xaxis.group.groups),t.forEach((h,d)=>{this.w.seriesData.seriesNames.push(void 0!==h.name?h.name:"series-"+parseInt(String(d+1),10))}),this.coreUtils.setSeriesYAxisMappings();const l=[],c=[...new Set(i.series.map(h=>h.group))];i.series.forEach((h,d)=>{const g=c.indexOf(h.group);l[g]||(l[g]=[]),l[g].push(this.w.seriesData.seriesNames[d])}),this.w.labelData.seriesGroups=l;const n=()=>{for(let h=0;h<r.length;h++)if("string"==typeof r[h]){if(!o.isValidDate(r[h]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(o.parseDate(r[h]))}else this.twoDSeriesX.push(r[h])};for(let h=0;h<t.length;h++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],typeof t[h].data>"u")return void console.error("It is a possibility that you may have not included 'data' property in series.");const d=i.chart.dataReducer;if(d?.enabled&&this.isMultiFormat()&&t[h].data.length>(null!=(e=d.threshold)?e:500)&&(t[h]=z(R({},t[h]),{data:ft.lttbDownsample(t[h].data,null!=(s=d.targetPoints)?s:250)})),("rangeBar"===i.chart.type||"rangeArea"===i.chart.type||"rangeBar"===t[h].type||"rangeArea"===t[h].type)&&(this.w.axisFlags.isRangeData=!0,this.handleRangeData(t,h)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,h):this.isFormatXY()&&this.handleFormatXY(t,h),("candlestick"===i.chart.type||"candlestick"===t[h].type||"boxPlot"===i.chart.type||"boxPlot"===t[h].type)&&this.handleCandleStickBoxData(t,h),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,h===this.activeSeriesIndex&&!this.fallbackToCategory&&(this.w.axisFlags.isXNumeric=!0);else{"datetime"===i.xaxis.type?(this.w.axisFlags.isXNumeric=!0,n(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):"numeric"===i.xaxis.type&&(this.w.axisFlags.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);const g=t[h].data.map(f=>A.parseNumber(f));this.w.seriesData.series.push(g)}
vendor: 4,398 bytes, line 1
1this.w.seriesData.seriesZ.push(this.threeDSeries),this.w.seriesData.seriesColors.push(void 0!==t[h].color?t[h].color:void 0)}return this.w}parseDataNonAxisCharts(t){const e=this.w.config,s=Array.isArray(t)&&t.every(o=>"number"==typeof o)&&e.labels.length>0,i=Array.isArray(t)&&t.some(o=>o&&"object"==typeof o&&o.data||o&&"object"==typeof o&&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++)void 0===this.w.seriesData.seriesNames[o]&&this.w.seriesData.seriesNames.push("series-"+(o+1));return this.w}if(Array.isArray(t)&&t.every(o=>"number"==typeof o)){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}const a=this.extractPieDataFromSeries(t);this.w.seriesData.series=a.values,this.w.seriesData.seriesNames=a.labels,"radialBar"===e.chart.type&&(this.w.seriesData.series=this.w.seriesData.series.map(o=>{const r=A.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++)void 0===this.w.seriesData.seriesNames[o]&&this.w.seriesData.seriesNames.push("series-"+(o+1));return this.w}resetParsingFlags(){const 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){const e=[],s=[];if(!Array.isArray(t))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(0===t.length)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};const i=t[0];return"object"==typeof i&&null!==i&&i.data?(this.extractPieDataFromSeriesObjects(t,e,s),{values:e,labels:s}):(console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]})}extractPieDataFromSeriesObjects(t,e,s){t.forEach((i,a)=>{i.data&&Array.isArray(i.data)?i.data.forEach(o=>{"object"==typeof o&&null!==o?void 0!==o.x&&void 0!==o.y?(s.push(String(o.x)),e.push(A.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)}):console.warn(`ApexCharts: Series ${a} has no valid data array`)})}handleExternalLabelsData(t){const 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)})});const s=this.w.labelData.labels;if(s.length>0&&("number"==typeof s[0]||"string"==typeof s[0]))this.w.labelData.labels=[...new Set(s)];else{const i=new Map;for(const a of s){const o=JSON.stringify(a);i.has(o)||i.set(o,a)}this.w.labelData.labels=Array.from(i.values())}}e.xaxis.convertedCatToNumeric&&(new ot(e).convertCatToNumericXaxis(e,this.w.seriesData.seriesX[0]),this._generateExternalLabels(t))}else this._generateExternalLabels(t)}_generateExternalLabels(t){const e=this.w.globals,s=this.w.config;let i=[];if(e.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){const a=s.series.map(r=>{const l=new Map;for(const c of r.data)l.has(c.x)||l.set(c.x,c);return Array.from(l.values())}),o=a.reduce((r,l,c,n)=>n[r].length>l.length?r:c,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(0===i.length){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=>
1s.xaxis.labels.formatter(a))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(t){const s=this.w.globals,i=this.w.config.parsing;if(this.w.axisFlags.dataWasParsed||!i&&!t.some(o=>o.parsing))return t;const a=t.map((o,r)=>{var l,c,n;if(!o.data||!Array.isArray(o.data)||0===o.data.length)return o;const h={x:(null==(l=o.parsing)?void 0:l.x)||i?.x,y:(null==(c=o.parsing)?void 0:c.y)||i?.y,z:(null==(n=o.parsing)?void 0:n.z)||i?.z};if(!h.x&&!h.y)return o;const d=o.data[0];if("object"==typeof d&&null!==d&&(Object.prototype.hasOwnProperty.call(d,"x")||Object.prototype.hasOwnProperty.call(d,"y"))||Array.isArray(d))return o;if(!h.x||!h.y||Array.isArray(h.y)&&0===h.y.length)return console.warn(`ApexCharts: Series ${r} has parsing config but missing x or y field specification`),o;const g=o.data.map((f,p)=>{if("object"!=typeof f||null===f)return console.warn(`ApexCharts: Series ${r}, data point ${p} is not an object, skipping parsing`),f;const u=this.getNestedValue(f,h.x);let m,x;if(Array.isArray(h.y)){const w=h.y.map(S=>this.getNestedValue(f,S));"bubble"===this.w.config.chart.type?(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(h.y)}`),m=w[0]):m=w}else m=this.getNestedValue(f,h.y);h.z&&(x=this.getNestedValue(f,h.z)),void 0===u&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${h.x}'`),void 0===m&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${h.y}'`);const y={x:u,y:m,z:void 0};if("bubble"===this.w.config.chart.type&&Array.isArray(h.y)&&2===h.y.length){const w=this.getNestedValue(f,h.y[1]);void 0!==w&&(y.z=w)}return void 0!==x&&(y.z=x),y});return z(R({},o),{data:g,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,s.originalSeries||(s.originalSeries=A.clone(t)),a}getNestedValue(t,e){if(!t||"object"!=typeof t||!e)return;if(-1===e.indexOf("."))return t[e];const s=e.split(".");let i=t;for(let a=0;a<s.length;a++){if(null==i||"object"!=typeof i)return;i=i[s[a]]}return i}parseData(t){const e=this.w,s=e.config,i=e.globals;if(t=this.parseRawDataIfNeeded(t),s.series=t,i.initialSeries=A.clone(t),this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),i.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),s.chart.stacked){const o=new J(this.w);this.w.seriesData.series=o.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),i.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||"numeric"===s.xaxis.type&&0===s.labels.length&&0===s.xaxis.categories.length)&&this.handleExternalLabelsData(t);const a=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let o=0;o<a.length;o++)if(Array.isArray(a[o])){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:i.initialSeries,originalSeries:i.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 lttbDownsample(t,e){const s=t.length;if(e>=s||e<3)return t;const i=!Array.isArray(t[0]),a=i?n=>n.x:n=>n[0],o=i?n=>n.y:n=>n[1],r=[];r.push(t[0]);const l=(s-2)/(e-2);let c=0;for(let n=0;n<e-2;n++){const h=Math.floor((n+1)*l)+1,d=Math.min(Math.floor((n+2)*l)+1,s);let g=0,f=0;const p=d-h;for(let v=h;v<d;v++)g+=a(t[v]),f+=o(t[v]);g/=p,f/=p;const u=Math.floor(n*l)+1,m=Math.min(Math.floor((n+1)*l)+1,s),x=a(t[c]),y=o(t[c]);let w=-1,S=u;for(let v=u;v<m;v++){const C=.5*Math.abs((x-g)*(o(t[v])-y)-(x-a(t[v]))*(f-y));C>w&&(w=C,S=v)}r.push(t[S]),c=S}return r.push(t[s-1]),r}excludeCollapsedSeriesInYAxis(){const t=this.w,e=[];
1t.globals.seriesYAxisMap.forEach((s,i)=>{let a=0;s.forEach(o=>{-1!==t.globals.collapsedSeriesIndices.indexOf(o)&&a++}),a>0&&a==s.length&&e.push(i)}),t.globals.ignoreYAxisIndexes=e.map(s=>s)}}class xe{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((l,c)=>{const n=l.w;if(n.globals.shouldAnimate=s,e||(n.globals.resized=!0,n.globals.dataChanged=!0,s&&l.series.getPreviousPaths()),t&&"object"==typeof t&&(l.config=new lt(t),t=q.extendArrayProps(l.config,t,n),l.w.globals.chartID!==this.w.globals.chartID&&delete t.series,n.config=A.extend(n.config,t),a&&(n.globals.lastXAxis=t.xaxis?A.clone(t.xaxis):[],n.globals.lastYAxis=t.yaxis?A.clone(t.yaxis):[],n.globals.initialConfig=A.extend({},n.config),n.globals.initialSeries=A.clone(n.config.series),t.series))){for(let h=0;h<n.globals.collapsedSeriesIndices.length;h++){const d=n.config.series[n.globals.collapsedSeriesIndices[h]];n.globals.collapsedSeries[h].data=n.globals.axisCharts?d.data.slice():d}for(let h=0;h<n.globals.ancillaryCollapsedSeriesIndices.length;h++){const d=n.config.series[n.globals.ancillaryCollapsedSeriesIndices[h]];n.globals.ancillaryCollapsedSeries[h].data=n.globals.axisCharts?d.data.slice():d}l.series.emptyCollapsedSeries(n.config.series)}return l.update(t).then(()=>{c===r.length-1&&o(l)})})})}_updateSeries(t,e,s=!1){return new Promise(i=>{const a=this.w;a.globals.shouldAnimate=e,a.globals.dataChanged=!0,bt.invalidateSelectors(a),e&&this.ctx.series.getPreviousPaths();const o=a.config.series.length;this.ctx.data.resetParsingFlags();const 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=A.clone(a.config.series)),a.globals.initialSeries=A.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){const s=this.w,i=s.config.series[e];return z(R({},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){const s=this.w;let i=null;const a=`.apexcharts-series[data\\:realIndex='${t}']`;return 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}']`),("pie"===s.config.chart.type||"polarArea"===s.config.chart.type||"donut"===s.config.chart.type)&&this.ctx.pie.pieClicked(t)),i?(new _(this.w).pathMouseDown(i,null),i.node?i.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}forceXAxisUpdate(t){const 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 ot(t).convertCatToNumericXaxis(t,this.ctx)),t}forceYAxisUpdate(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(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){const e=this.w;let s=e.globals.lastXAxis,i=e.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(i=t.yaxis);const a=s;e.config.xaxis.min=a.min,e.config.xaxis.max=a.max,e.config.yaxis.map((r,l)=>{e.interact.zoomed||typeof i[l]<"u"?(r=>{if(typeof i[r]<"u"){const l=i[r];e.config.yaxis[r].min=l.min,e.config.yaxis[r].max=l.max}})(l):typeof this.ctx.opts.yaxis[l]<"u"&&(r.min=this.ctx.opts.yaxis[l].min,r.max=this.ctx.opts.yaxis[l].max)})}}class Rt{constructor(t){this.w=t.w,this.ttCtx=t}getNearestValues({hoverArea:t,elGrid:e,clientX:s,clientY:i}){var a,o;const r=this.w,l=e.getBoundingClientRect(),c=l.width,n=l.height;let h=c/(r.globals.dataPoints-1);const d=n/r.globals.dataPoints,g=this.hasBars();(r.globals.comboCharts||g)&&!r.config.xaxis.convertedCatToNumeric&&(h=c/r.globals.dataPoints);const f=s-l.left-r.globals.barPadForNumericAxis,p=i-l.top;f<0||p<0||f>c||p>n?(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 m=Math.round(f/h);const x=Math.floor(p/d);
1g&&!r.config.xaxis.convertedCatToNumeric&&(m=Math.ceil(f/h),m-=1);let y=null,w=null,S=r.globals.seriesXvalues.map(C=>C.filter(L=>A.isNumber(L)));const v=r.globals.seriesYvalues.map(C=>C.filter(L=>A.isNumber(L)));if(r.axisFlags.isXNumeric){const C=this.ttCtx.getElGrid();if(!C)return{hoverX:f,hoverY:p};const L=C.getBoundingClientRect(),D=f*(L.width/c);w=this.closestInMultiArray(D,p*(L.height/n),S,v),y=w.index,m=null!=(a=w.j)?a:0,null!==y&&r.globals.hasNullValues&&(S=r.globals.seriesXvalues[y],w=this.closestInArray(D,S),m=null!=(o=w.j)?o:0)}return r.interact.capturedSeriesIndex=null===y?-1:y,(!m||m<1)&&(m=0),r.interact.capturedDataPointIndex=r.globals.isBarHorizontal?x:m,{capturedSeries:y,j:r.globals.isBarHorizontal?x:m,hoverX:f,hoverY:p}}getFirstActiveXArray(t){const e=this.w;let s=0;const i=t.map((a,o)=>a.length>0?o:-1);for(let a=0;a<i.length;a++)if(-1!==i[a]&&-1===e.globals.collapsedSeriesIndices.indexOf(a)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(a)){s=i[a];break}return s}closestInMultiArray(t,e,s,i){const a=this.w,o=n=>-1===a.globals.collapsedSeriesIndices.indexOf(n)&&-1===a.globals.ancillaryCollapsedSeriesIndices.indexOf(n);let r=1/0,l=null,c=null;for(let n=0;n<s.length;n++){if(!o(n))continue;const h=s[n],d=i[n],g=Math.min(h.length,d.length);for(let f=0;f<g;f++){const u=t-h[f];let m=Math.sqrt(u*u);if(!a.globals.allSeriesHasEqualX){const y=e-d[f];m=Math.sqrt(u*u+y*y)}m<r&&(r=m,l=n,c=f)}}return{index:l,j:c}}closestInArray(t,e){let i=null,a=Math.abs(t-e[0]);for(let o=0;o<e.length;o++){const r=Math.abs(t-e[o]);r<a&&(a=r,i=o)}return{j:i}}isXoverlap(t){const s=[],i=this.w.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 0===s.length}isInitialSeriesSameLen(){var t,e,s;let i=!0;const a=(null==(t=this.w.globals.initialSeries)?void 0:t.filter((o,r)=>{var l;return!(null!=(l=this.w.globals.collapsedSeriesIndices)&&l.includes(r))}))||[];for(let o=0;o<a.length-1;o++){if(null==(e=a[o])||!e.data||null==(s=a[o+1])||!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 this.w.dom.baseEl.querySelectorAll("number"==typeof t?`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers-wrap > *`:".apexcharts-series-markers-wrap > *")}getAllMarkers(t=!1){let e=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];t&&(e=e.filter(i=>{const a=Number(i.getAttribute("data:realIndex"));return-1===this.w.globals.collapsedSeriesIndices.indexOf(a)})),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});const s=[];return e.forEach(i=>{s.push(i.querySelector(".apexcharts-marker"))}),s}hasMarkers(t){return this.getElMarkers(t).length>0}getPathFromPoint(t,e){const s=Number(t.getAttribute("cx")),i=Number(t.getAttribute("cy")),a=t.getAttribute("shape");return new _(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){const e=this.w;let s=e.config.markers.hover.size;return void 0===s&&(s=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),s}toggleAllTooltipSeriesGroups(t){const e=this.w,s=this.ttCtx;0===s.allTooltipSeriesGroups.length&&(s.allTooltipSeriesGroups=e.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));const i=s.allTooltipSeriesGroups;for(let a=0;a<i.length;a++)"enable"===t?(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")}}class me{constructor(t){this.w=t.w,this.ttCtx=t,this.tooltipUtil=new Rt(t)}drawSeriesTexts({shared:t=!0,ttItems:e,i:s=0,j:i=null,y1:a,y2:o,e:r}){const l=this.w;void 0!==l.config.tooltip.custom?this.handleCustomTooltip({i:s,j:i,y1:a,y2:o,w:l}):this.toggleActiveInactiveSeries(t,s);const c=this.getValuesToPrint({i:s,j:i});this.printLabels({i:s,j:i,values:c,ttItems:e,shared:t,e:r});const n=this.ttCtx.getElTooltip();n&&(this.ttCtx.tooltipRect.ttWidth=n.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=n.getBoundingClientRect().height)}printLabels({i:t,j:e,values:s,ttItems:i,shared:a,e:o}){var r;const l=this.w;let c,n=[];const h=m=>l.seriesData.seriesGoals[m]&&l.seriesData.seriesGoals[m][e]&&Array.isArray(l.seriesData.seriesGoals[m][e]),{xVal:d,zVal:g,xAxisTTVal:f}=s;let p="",u=l.globals.colors[t];null!==e&&l.config.plotOptions.bar.distributed&&(u=l.globals.colors[e]);for(let m=0,x=l.seriesData.series.length-1;m<l.seriesData.series.length;m++,x--){let y=this.getFormatters(t);
1p=this.getSeriesName({fn:y.yLbTitleFormatter,index:t,seriesIndex:t,j:e}),"treemap"===l.config.chart.type&&(p=y.yLbTitleFormatter(String(l.config.series[t].data[e].x),{series:l.seriesData.series,seriesIndex:t,dataPointIndex:e,w:l}));const w=l.config.tooltip.inverseOrder?x:m;if(l.globals.axisCharts){const S=v=>{var C,L,D,k;return l.axisFlags.isRangeData?y.yLbFormatter(null==(L=null==(C=l.rangeData.seriesRangeStart)?void 0:C[v])?void 0:L[e],{series:l.rangeData.seriesRangeStart,seriesIndex:v,dataPointIndex:e,w:l})+" - "+y.yLbFormatter(null==(k=null==(D=l.rangeData.seriesRangeEnd)?void 0:D[v])?void 0:k[e],{series:l.rangeData.seriesRangeEnd,seriesIndex:v,dataPointIndex:e,w:l}):y.yLbFormatter(l.seriesData.series[v][e],{series:l.seriesData.series,seriesIndex:v,dataPointIndex:e,w:l})};if(a)y=this.getFormatters(w),p=this.getSeriesName({fn:y.yLbTitleFormatter,index:w,seriesIndex:t,j:e}),u=l.globals.colors[w],c=S(w),h(w)&&(n=l.seriesData.seriesGoals[w][e].map(v=>({attrs:v,val:y.yLbFormatter(v.value,{seriesIndex:w,dataPointIndex:e,w:l})})));else{const v=null==(r=o?.target)?void 0:r.getAttribute("fill");v&&(-1!==v.indexOf("url")?-1!==v.indexOf("Pattern")&&(u=l.dom.baseEl.querySelector(v.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):u=v),c=S(t),h(t)&&Array.isArray(l.seriesData.seriesGoals[t][e])&&(n=l.seriesData.seriesGoals[t][e].map(C=>({attrs:C,val:y.yLbFormatter(C.value,{seriesIndex:t,dataPointIndex:e,w:l})})))}}null===e&&(c=y.yLbFormatter(l.seriesData.series[t],z(R({},l),{seriesIndex:t,dataPointIndex:t}))),this.DOMHandling({i:t,t:w,j:e,ttItems:i,values:{val:c,goalVals:n,xVal:d,xAxisTTVal:f,zVal:g},seriesName:p,shared:a,pColor:u})}}getFormatters(t){const e=this.w;let i,s=e.formatters.yLabelFormatters[t];return void 0!==e.formatters.ttVal?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,"function"==typeof e.formatters.ttVal.title.formatter&&(i=e.formatters.ttVal.title.formatter)):i=e.config.tooltip.y.title.formatter,"function"!=typeof s&&(s=e.formatters.yLabelFormatters[0]?e.formatters.yLabelFormatters[0]:function(a){return a}),"function"!=typeof i&&(i=function(a){return a?a+": ":""}),{yLbFormatter:s,yLbTitleFormatter:i}}getSeriesName({fn:t,index:e,seriesIndex:s,j:i}){const 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}){const l=this.w,c=this.ttCtx,{val:n,goalVals:h,xVal:d,xAxisTTVal:g,zVal:f}=i;let p=null;p=s[t].children,l.config.tooltip.fillSeriesColor&&(s[t].style.backgroundColor=r,p[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle&&(c.tooltipTitle.innerHTML=d)),c.isXAxisTooltipEnabled&&c.xaxisTooltipText&&(c.xaxisTooltipText.innerHTML=""!==g?g:d);const u=s[t].querySelector(".apexcharts-tooltip-text-y-label");u&&(u.innerHTML=a||"");const m=s[t].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=typeof n<"u"?n:""),p[0]&&p[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(r=l.config.tooltip.marker.fillColors[t]),l.config.tooltip.fillSeriesColor?p[0].style.backgroundColor=r:p[0].style.color=r),l.config.tooltip.marker.show||(p[0].style.display="none");const x=s[t].querySelector(".apexcharts-tooltip-text-goals-label"),y=s[t].querySelector(".apexcharts-tooltip-text-goals-value");if(h.length&&l.seriesData.seriesGoals[t]){const w=()=>{let S="<div>",v="<div>";h.forEach(C=>{S+=` <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=S+"</div>",y.innerHTML=v+"</div>"};o?l.seriesData.seriesGoals[t][e]&&Array.isArray(l.seriesData.seriesGoals[t][e])?w():(x.innerHTML="",y.innerHTML=""):w()}else x.innerHTML="",y.innerHTML="";if(null!==f&&(s[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,s[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=typeof f<"u"?f:""),o&&p[0]){if(l.config.tooltip.hideEmptySeries){const w=s[t].querySelector(".apexcharts-tooltip-marker"),S=s[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(n)?(w.style.display="none",S.style.display="none"):(w.style.display="block",S.style.display="block")}p[0].parentNode.style.display=typeof n>"u"||null===n||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)?"none":l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)&&(p[0].parentNode.style.display="none")}toggleActiveInactiveSeries(t,e){const s=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");const i=s.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${e}`);if(i){const 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,l,c,n;const h=this.w,d=h.seriesData.seriesX.map(w=>w.length>0?w:[]);let g="",f="",p=null,u=null;const m={series:h.seriesData.series,seriesIndex:t,dataPointIndex:e,w:h},x=h.formatters.ttZFormatter;null===e?u=h.seriesData.series[t]:h.axisFlags.isXNumeric&&"treemap"!==h.config.chart.type?(g=d[t][e],0===d[t].length&&(g=d[this.tooltipUtil.getFirstActiveXArray(d)][e])):g=new ft(this.w).isFormatXY()?typeof h.config.series[t].data[e]<"u"?h.config.series[t].data[e].x:"":typeof h.labelData.labels[e]<"u"?h.labelData.labels[e]:"";const y=g;return g=h.axisFlags.isXNumeric&&"datetime"===h.config.xaxis.type?new rt(this.w).xLabelFormat(h.formatters.ttKeyFormatter,y,y,{i:void 0,dateFormatter:new O(this.w).formatDate,w:this.w}
1):h.globals.isBarHorizontal?h.formatters.yLabelFormatters[0](y,m):null!=(a=null==(i=(s=h.formatters).xLabelFormatter)?void 0:i.call(s,y,m))?a:y,void 0!==h.config.tooltip.x.formatter&&(g=null!=(l=null==(r=(o=h.formatters).ttKeyFormatter)?void 0:r.call(o,y,m))?l:y),h.seriesData.seriesZ.length>0&&h.seriesData.seriesZ[t].length>0&&(p=x?.(h.seriesData.seriesZ[t][e],h)),f="function"==typeof h.config.xaxis.tooltip.formatter?null==(n=(c=h.formatters).xaxisTooltipFormatter)?void 0:n.call(c,y,m):g,{val:Array.isArray(u)?u.join(" "):u,xVal:Array.isArray(g)?g.join(" "):g,xAxisTTVal:Array.isArray(f)?f.join(" "):f,zVal:p}}handleCustomTooltip({i:t,j:e,y1:s,y2:i,w:a}){const o=this.ttCtx.getElTooltip();let r=a.config.tooltip.custom;Array.isArray(r)&&r[t]&&(r=r[t]);const l=r({series:a.seriesData.series,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a});o&&("string"==typeof l||"number"==typeof l?o.innerHTML=String(l):(l instanceof Element||"string"==typeof l.nodeName)&&(o.innerHTML="",o.appendChild(l.cloneNode(!0))))}}class Yt{constructor(t){this.ttCtx=t,this.w=t.w}moveXCrosshairs(t,e=null){const s=this.ttCtx,i=this.w,a=s.getElXCrosshairs();let o=t-s.xcrosshairsWidth/2;const r=i.labelData.labels.slice().length;if(null!==e&&(o=i.layout.gridWidth/r*e),null!==a&&!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 l=o;("tickWidth"===i.config.xaxis.crosshairs.width||"barWidth"===i.config.xaxis.crosshairs.width)&&(l=o+s.xcrosshairsWidth/2),this.moveXAxisTooltip(l)}}moveYCrosshairs(t){const e=this.ttCtx;null!==e.ycrosshairs&&_.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&_.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}moveXAxisTooltip(t){var e,s;const i=this.w,a=this.ttCtx;if(null!==a.xaxisTooltip&&0!==a.xcrosshairsWidth){a.xaxisTooltip.classList.add("apexcharts-active");const o=a.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.layout.translateY+1+i.config.xaxis.offsetY;if(t-=a.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=i.layout.translateX;const n=new _(this.w).getTextRects(null!=(s=null==(e=a.xaxisTooltipText)?void 0:e.innerHTML)?s:"",i.config.xaxis.labels.style.fontSize);a.xaxisTooltipText&&(a.xaxisTooltipText.style.minWidth=n.width+"px"),a.xaxisTooltip.style.left=t+"px",a.xaxisTooltip.style.top=o+"px"}}}moveYAxisTooltip(t){var e,s;const i=this.w,a=this.ttCtx;null===a.yaxisTTEls&&(a.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);const o=parseInt(null!=(s=null==(e=a.ycrosshairsHidden)?void 0:e.getAttribute("y1"))?s:"0",10);let r=i.layout.translateY+o;if(a.yaxisTTEls){const l=a.yaxisTTEls[t].getBoundingClientRect();let n=i.globals.translateYAxisX[t]-2;i.config.yaxis[t].opposite&&(n-=l.width),r-=l.height/2,-1===i.globals.ignoreYAxisIndexes.indexOf(t)&&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=n+i.config.yaxis[t].tooltip.offsetX+"px"):a.yaxisTTEls[t].classList.remove("apexcharts-active")}}moveTooltip(t,e,s=null){const i=this.w,a=this.ttCtx,o=a.getElTooltip(),r=a.tooltipRect,l=null!==s?parseFloat(String(s)):1;let c=parseFloat(String(t))+l+5,n=parseFloat(String(e))+l/2;if(c>i.layout.gridWidth/2&&(c=c-r.ttWidth-l-10),c>i.layout.gridWidth-r.ttWidth-10&&(c=i.layout.gridWidth-r.ttWidth),c<-20&&(c=-20),i.config.tooltip.followCursor){const h=a.getElGrid();if(!h)return;const d=h.getBoundingClientRect();c=a.e.clientX-d.left,c>i.layout.gridWidth/2&&(c-=a.tooltipRect.ttWidth),n=a.e.clientY+i.layout.translateY-d.top,n>i.layout.gridHeight/2&&(n-=a.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||r.ttHeight/2+n>i.layout.gridHeight&&(n=i.layout.gridHeight-r.ttHeight+i.layout.translateY);isNaN(c)||(c+=i.layout.translateX,o&&(o.style.left=c+"px",o.style.top=n+"px"))}moveMarkers(t,e){var s;const i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0){const o=i.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${t}'] .apexcharts-marker`);for(let r=0;r<o.length;r++)parseInt(null!=(s=o[r].getAttribute("rel"))?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;const l=this.w,c=this.ttCtx;let n=0,h=0;const d=new _(this.w),g=l.globals.pointsArray,f=c.tooltipUtil.getHoverMarkerSize(e),p=l.config.series[e].type;if(p&&("column"===p||"candlestick"===p||"boxPlot"===p))return;n=null==(i=null==(s=g[e])?void 0:s[t])?void 0:i[0],h=(null==(o=null==(a=g[e])?void 0:a[t])?void 0:o[1])||0;const u=l.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers path`);if(u&&h<l.layout.gridHeight&&h>0){const m=null!=(r=u.getAttribute("shape"))?r:"circle",x=d.getMarkerPath(n,h,m,1.5*f);u.setAttribute("d",x)}this.moveXCrosshairs(n),c.fixedTooltip||this.moveTooltip(n,h,f)}moveDynamicPointsOnHover(t){var e,s;const i=this.ttCtx,a=i.w;let o=0,r=0,l=0;const c=a.globals.pointsArray,n=new J(this.w),h=new _(this.w);l=n.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);const d=i.tooltipUtil.getHoverMarkerSize(l);if(null!=(e=c[l])&&e[t]&&(o=c[l][t][0],r=c[l][t][1]),isNaN(o))return;const g=i.tooltipUtil.getAllMarkers();if(g.length)for(let f=0;f<a.seriesData.series.length;f++){const p=c[f];if(a.globals.comboCharts&&typeof p>"u"&&g.splice(f,0,null),p&&p.length){let m,u=c[f][t][1];g[f].setAttribute("cx",o);const x=null!=(s=g[f].getAttribute("shape"))?s:"circle";if("rangeArea"!==a.config.chart.type||a.globals.comboCharts||(m=c[f][t+a.seriesData.series[f].length][1],u-=Math.abs(u-m)/2),null!==u&&!isNaN(u)&&u<a.layout.gridHeight+d&&u+d>0){const y=h.getMarkerPath(o,u,x,d);g[f].setAttribute("d",y)}else g[f].setAttribute("d","")}}this.moveXCrosshairs(o),i.fixedTooltip||this.moveTooltip(o,r||a.layout.gridHeight,d)}moveStickyTooltipOverBars(t,e){var s,i,a;const o=this.w,r=this.ttCtx;let l=o.globals.columnSeries?o.globals.columnSeries.length:o.seriesData.series.length;o.config.chart.stacked&&(l=o.globals.barGroups.length);let c=l>=2&&l%2==0?Math.floor(l/2):Math.floor(l/2)+1;o.globals.isBarHorizontal&&(c=new J(this.w).getActiveConfigSeriesIndex("desc")+1);let n=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${c}'] path[j='${t}'], .apexcharts-candlestick-series .apexcharts-series[rel='${c}'] path[j='${t}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${c}'] path[j='${t}'], .apexcharts-rangebar-series .apexcharts-series[rel='${c}'] path[j='${t}']`);!n&&"number"==typeof e&&(n=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`));let h=n?parseFloat(null!=(s=n.getAttribute("cx"))?s:"0"):0,d=n?parseFloat(null!=(i=n.getAttribute("cy"))?i:"0"):0;const g=n?parseFloat(null!=(a=n.getAttribute("barWidth"))?a:"0"):0,f=r.getElGrid();if(!f)return;const p=f.getBoundingClientRect(),u=n&&(n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area"));o.axisFlags.isXNumeric?(n&&!u&&(h-=l%2!=0?g/2:0),n&&u&&(h-=g/2)):o.globals.isBarHorizontal||(h=r.xAxisTicksPositions[t
1-1]+r.dataPointsDividedWidth/2,isNaN(h)&&(h=r.xAxisTicksPositions[t]-r.dataPointsDividedWidth/2)),o.globals.isBarHorizontal?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(h),r.fixedTooltip||this.moveTooltip(h,d||o.layout.gridHeight)}}class be{constructor(t){this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new Yt(t)}drawDynamicPoints(){const t=this.w,e=new _(this.w),s=new mt(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++){const o=i[a].querySelector(".apexcharts-series-markers-wrap");if(null!==o){let r=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;("line"===t.config.chart.type||"area"===t.config.chart.type)&&!t.globals.comboCharts&&!t.config.tooltip.intersect&&(r+=" no-pointer-events");const l=s.getMarkerConfig({cssClass:r,seriesIndex:Number(o.getAttribute("data:realIndex"))}),c=e.drawMarker(0,0,l);c.node.setAttribute("default-marker-size",0);const n=F.createElementNS(Y,"g");n.classList.add("apexcharts-series-markers"),n.appendChild(c.node),o.appendChild(n)}}}enlargeCurrentPoint(t,e,s=null,i=null){const a=this.w;"bubble"!==a.config.chart.type&&this.newPointSize(t,e);let o=e.getAttribute("cx"),r=e.getAttribute("cy");if(null!==s&&null!==i&&(o=s,r=i),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if("radar"===a.config.chart.type){const l=this.ttCtx.getElGrid();if(!l)return;const c=l.getBoundingClientRect();o=this.ttCtx.e.clientX-c.left}this.tooltipPosition.moveTooltip(o,r,a.config.markers.hover.size)}}enlargePoints(t){var e,s;const i=this.w,a=this,o=this.ttCtx,r=t,l=i.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");let c=i.config.markers.hover.size;for(let n=0;n<l.length;n++){const h=l[n].getAttribute("rel"),d=l[n].getAttribute("index");if(void 0===c&&(c=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),r===parseInt(h??"0",10)){a.newPointSize(r,l[n]);const g=null!=(e=l[n].getAttribute("cx"))?e:"0",f=null!=(s=l[n].getAttribute("cy"))?s:"0";a.tooltipPosition.moveXCrosshairs(parseFloat(g)),o.fixedTooltip||a.tooltipPosition.moveTooltip(parseFloat(g),parseFloat(f),c)}else a.oldPointSize(l[n])}}newPointSize(t,e){const s=this.w;let i=s.config.markers.hover.size;const a=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){const o=parseInt(a.getAttribute("index"),10);void 0===i&&(i=s.globals.markers.size[o]+s.config.markers.hover.sizeOffset),i<0&&(i=0);const r=this.ttCtx.tooltipUtil.getPathFromPoint(e,i);e.setAttribute("d",r)}}oldPointSize(t){const e=parseFloat(t.getAttribute("default-marker-size")),s=this.ttCtx.tooltipUtil.getPathFromPoint(t,e);t.setAttribute("d",s)}resetPointsSize(){var t;const s=this.w.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");for(let i=0;i<s.length;i++){const a=parseFloat(null!=(t=s[i].getAttribute("default-marker-size"))?t:"0");if(A.isNumber(a)&&a>0){const o=this.ttCtx.tooltipUtil.getPathFromPoint(s[i],a);s[i].setAttribute("d",o)}else s[i].setAttribute("d","M0,0")}}}class ye{constructor(t){this.w=t.w;const e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&"rangeBar"===e.config.chart.type&&e.config.plotOptions.bar.rangeBarGroupRows}getAttr(t,e){var s;return parseFloat(null!=(s=t.target.getAttribute(e))?s:"")}handleHeatTreeTooltip({e:t,opt:e,x:s,y:i,type:a}){var o,r;const l=this.ttCtx,c=this.w;if(t.target.classList.contains(`apexcharts-${a}-rect`)){const n=this.getAttr(t,"i"),h=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),f=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(l.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:n,j:h,shared:!1,e:t}),c.interact.capturedSeriesIndex=n,c.interact.capturedDataPointIndex=h,s=d+l.tooltipRect.ttWidth/2+f,i=g+l.tooltipRect.ttHeight/2-p/2,l.tooltipPosition.moveXCrosshairs(d+f/2),s>c.layout.gridWidth/2&&(s=d-l.tooltipRect.ttWidth/2+f),l.w.config.tooltip.followCursor){const u=c.dom.elWrap.getBoundingClientRect();s=(null!=(o=c.interact.clientX)?o:0)-u.left-(s>c.layout.gridWidth/2?l.tooltipRect.ttWidth:0),i=(null!=(r=c.interact.clientY)?r:0)-u.top-(i>c.layout.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:s,y:i}}handleMarkerTooltip({e:t,opt:e,x:s,y:i}){const a=this.w,o=this.ttCtx;let r,l;if(t.target.classList.contains("apexcharts-marker")){const c=parseInt(e.paths.getAttribute("cx"),10),n=parseInt(e.paths.getAttribute("cy"),10),h=
1parseFloat(e.paths.getAttribute("val"));if(l=parseInt(e.paths.getAttribute("rel"),10),r=parseInt(e.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,o.intersect){const d=A.findAncestor(e.paths,"apexcharts-series");d&&(r=parseInt(d.getAttribute("data:realIndex"),10))}if(o.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:r,j:l,shared:!o.showOnIntersect&&a.config.tooltip.shared,e:t}),"mouseup"===t.type&&o.markerClick(t,r,l),a.interact.capturedSeriesIndex=r,a.interact.capturedDataPointIndex=l,s=c,i=n+a.layout.translateY-1.4*o.tooltipRect.ttHeight,o.w.config.tooltip.followCursor){const d=o.getElGrid();if(!d)return{x:s,y:i};const g=d.getBoundingClientRect();i=o.e.clientY+a.layout.translateY-g.top}h<0&&(i=n),o.marker.enlargeCurrentPoint(l,e.paths,s,i)}return{x:s,y:i}}handleBarTooltip({e:t,opt:e}){const s=this.w,i=this.ttCtx,a=i.getElTooltip();let n,o=0,r=0,l=0,c=0;const h=this.getBarTooltipXY({e:t,opt:e});if(null===h.j&&0===h.barHeight&&0===h.barWidth)return;c=h.i;const d=h.j;s.interact.capturedSeriesIndex=c,s.interact.capturedDataPointIndex=null!==d?d:s.interact.capturedDataPointIndex,s.globals.isBarHorizontal&&i.tooltipUtil.hasBars()||!s.config.tooltip.shared?(r=h.x,l=h.y,n=Array.isArray(s.config.stroke.width)?s.config.stroke.width[c]:s.config.stroke.width,o=r):!s.globals.comboCharts&&!s.config.tooltip.shared&&(o/=2),isNaN(l)&&(l=s.globals.svgHeight-i.tooltipRect.ttHeight),r+i.tooltipRect.ttWidth>s.layout.gridWidth?r-=i.tooltipRect.ttWidth:r<0&&(r=0),(!i.w.config.tooltip.followCursor||i.getElGrid())&&(null===i.tooltip&&(i.tooltip=s.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||i.tooltipPosition.moveXCrosshairs(s.globals.comboBarCount>0?o+n/2:o),!i.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&i.tooltipUtil.hasBars())&&(l=l+s.layout.translateY-i.tooltipRect.ttHeight/2,a&&(a.style.left=r+s.layout.translateX+"px",a.style.top=l+"px")))}getBarTooltipXY({e:t,opt:e}){const s=this.w;let i=null;const a=this.ttCtx;let o=0,r=0,l=0,c=0,n=0;const h=t.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){const d=t.target,g=d.getBoundingClientRect(),f=e.elGrid.getBoundingClientRect(),p=g.height;n=g.height;const u=g.width,m=parseInt(d.getAttribute("cx"),10),x=parseInt(d.getAttribute("cy"),10);c=parseFloat(d.getAttribute("barWidth"));const y="touchmove"===t.type?t.touches[0].clientX:t.clientX;i=parseInt(d.getAttribute("j"),10),o=parseInt(d.parentNode.getAttribute("rel"),10)-1;const w=d.getAttribute("data-range-y1"),S=d.getAttribute("data-range-y2");s.globals.comboCharts&&(o=parseInt(d.parentNode.getAttribute("data:realIndex"),10));const v=L=>s.axisFlags.isXNumeric?m-u/2:this.isVerticalGroupedRangeBar?m+u/2:m-a.dataPointsDividedWidth+u/2,C=()=>x-a.dataPointsDividedHeight+p/2-a.tooltipRect.ttHeight/2;a.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:o,j:i,y1:w?parseInt(w,10):null,y2:S?parseInt(S,10):null,shared:!a.showOnIntersect&&s.config.tooltip.shared,e:t}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(r=y-f.left+15,l=C()):(r=v(r),l=t.clientY-f.top-a.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?(r=m,a.xyRatios&&r<a.xyRatios.baseLineInvertedY&&(r=m-a.tooltipRect.ttWidth),l=C()):(r=v(r),l=x)}return{x:r,y:l,barHeight:n,barWidth:c,i:o,j:i}}}class we{constructor(t){this.w=t.w,this.ttCtx=t}drawXaxisTooltip(){const t=this.w,e=this.ttCtx,s="bottom"===t.config.xaxis.position;e.xaxisOffY=s?t.layout.gridHeight+1:-t.layout.xAxisHeight-t.config.xaxis.axisTicks.height+3;const i=s?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=t.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(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(){const t=this.w,e=this.ttCtx;for(let s=0;s<t.config.yaxis.length;s++){const i=t.config.yaxis[s].opposite||t.config.yaxis[s].crosshairs.opposite;e.yaxisOffX=i?t.layout.gridWidth+1:1;const a=i?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${s} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${s} apexcharts-yaxistooltip-left`,o=t.dom.elWrap;null===t.dom.baseEl.querySelector(`.apexcharts-yaxistooltip apexcharts-yaxistooltip-${s}`)&&(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),0===s&&(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;const s=this.w,i=this.ttCtx,a=i.getElXCrosshairs();if(i.xcrosshairsWidth=parseInt(s.config.xaxis.crosshairs.width,10),s.globals.comboCharts){const o=s.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o&&"barWidth"===s.config.xaxis.crosshairs.width){const r=parseFloat(null!=(e=o.getAttribute("barWidth"))?e:"0");i.xcrosshairsWidth=r}else"tickWidth"===s.config.xaxis.crosshairs.width&&(i.xcrosshairsWidth=s.layout.gridWidth/s.labelData.labels.length)}else if("tickWidth"===s.config.xaxis.crosshairs.width)i.xcrosshairsWidth=s.layout.gridWidth/s.labelData.labels.length;else if("barWidth"===s.config.xaxis.crosshairs.width){const o=s.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){const r=parseFloat(null!=(t=o.getAttribute("barWidth"))?t:"0");i.xcrosshairsWidth=r}else i.xcrosshairsWidth=1}s.globals.isBarHorizontal&&(i.xcrosshairsWidth=0),null!==a&&i.xcrosshairsWidth>0&&a.setAttribute("width",String(i.xcrosshairsWidth))}handleYCrosshair(){const 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){const i=this.ttCtx,a=this.w,o=a.globals,r=o.seriesYAxisMap[t];if(i.yaxisTooltips[t]&&r.length>0){const l=a.formatters.yLabelFormatters[t],c=i.getElGrid();if(!c)return;const n=c.getBoundingClientRect(),h=r[0];let d=0;s.yRatio.length>1&&(d=h);const g=(e-n.top)*s.yRatio[d],f=o.maxYArr[h]-o.minYArr[h];let p=o.minYArr[h]+(f-g);a.config.yaxis[t].reversed&&(p=o.maxYArr[h]-(f-g)),i.tooltipPosition.moveYCrosshairs(e-n.top),i.yaxisTooltipText[t].innerHTML=l(p),i.tooltipPosition.moveYAxisTooltip(t)}}}class ve{constructor(t,e){this.w=t,this.ctx=e,this.tConfig=t.config.tooltip,this.tooltipUtil=new Rt(this),this.tooltipLabels=new me(this),this.tooltipPosition=new Yt(this),this.marker=new be(this),this.intersect=ne
1w ye(this),this.axesTooltip=new we(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(){const 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(){const t=this.w,e=this.getElTooltip();if(!e)return;const s=e.getBoundingClientRect();t.globals.dimensionCache.tooltip={width:s.width,height:s.height,lastUpdate:Date.now()}}getCachedDimensions(){const t=this.w;if(t.globals.dimensionCache.tooltip){const s=t.globals.dimensionCache.tooltip;if(Date.now()-s.lastUpdate<1e3)return{ttWidth:s.width,ttHeight:s.height}}this.updateDimensionCache();const 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){const e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(o=>!!(o.show&&o.tooltip.enabled&&e.globals.axisCharts)),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);const s=this.getElTooltip();s?.parentNode&&s.parentNode.removeChild(s),this.tooltipTitle=null;const i=F.createElementNS("http://www.w3.org/1999/xhtml","div");if(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"}`),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();const o=new nt(this.w,this.ctx,void 0);this.xAxisTicksPositions=o.getXAxisTicksPositions()}if((e.globals.comboCharts||this.tConfig.intersect||"rangeBar"===e.config.chart.type)&&!this.tConfig.shared&&(this.showOnIntersect=!0),(0===e.config.markers.size||0===e.globals.markers.largestSize)&&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 a=e.seriesData.series.length;
1(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:e.seriesData.series.length),this.legendLabels=e.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(t){const e=this.w,s=[],i=this.getElTooltip();if(!i)return s;for(let a=0;a<t;a++){const 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);const 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];const l=e.config.markers.shape;let c=l;Array.isArray(l)&&(c=l[a]),r.setAttribute("shape",c),o.appendChild(r);const n=F.createElementNS("http://www.w3.org/1999/xhtml","div");n.classList.add("apexcharts-tooltip-text"),n.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,n.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(h=>{const d=F.createElementNS("http://www.w3.org/1999/xhtml","div");d.classList.add(`apexcharts-tooltip-${h}-group`);const g=F.createElementNS("http://www.w3.org/1999/xhtml","span");g.classList.add(`apexcharts-tooltip-text-${h}-label`),d.appendChild(g);const f=F.createElementNS("http://www.w3.org/1999/xhtml","span");f.classList.add(`apexcharts-tooltip-text-${h}-value`),d.appendChild(f),n.appendChild(d)}),o.appendChild(n),i.appendChild(o),s.push(o)}return s}addSVGEvents(){const t=this.w,e=t.config.chart.type,s=this.getElTooltip();if(!s)return;const i="bar"===e||"candlestick"===e||"boxPlot"===e||"rangeBar"===e,a="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,o=t.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());const l=[],c=[],n={hoverArea:o,elGrid:r,tooltipEl:s,tooltipY:l,tooltipX:c,ttItems:this.ttItems};let h;if(t.globals.axisCharts&&(a?h=t.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?h=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):("heatmap"===e||"treemap"===e)&&(h=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),h&&h.length))for(let g=0;g<h.length;g++)l.push(h[g].getAttribute("cy")),c.push(h[g].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],n);else if(i&&!t.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(n);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){const g=t.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(g,n)}if(this.showOnIntersect){const g=t.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");g.length>0&&this.addPathsEventListeners(g,n),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(n)}}drawFixedTooltipRect(){const t=this.w,e=this.getElTooltip();if(!e)return{x:0,y:0,ttWidth:0,ttHeight:0};const s=e.getBoundingClientRect(),i=s.width+10,a=s.height+10;let o=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY;const l=this.tConfig.fixed.position.toLowerCase();return l.indexOf("right")>-1&&(o=o+t.globals.svgWidth-i+10),l.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-a-10),e.style.left=o+"px",e.style.top=r+"px",{x:o,y:r,ttWidth:i,ttHeight:a}}addDatapointEventsListeners(t){const 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){const s=this;for(let i=0;i<t.length;i++){const 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){const 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=[];const i=this.w;i.config.chart.group&&(s=this.ctx.getGroupedCharts()),(!i.globals.axisCharts||(i.globals.minX!==-1/0||i.globals.maxX!==1/0)&&0!==i.globals.dataPoints)&&(s.length?s.forEac
1h(a=>{const o=this.getElTooltip(a);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:{paths:t.paths,tooltipEl:o,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems},e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}seriesHoverByContext({chartCtx:t,ttCtx:e,opt:s,e:i}){const a=t.w;if(!this.getElTooltip(t))return;const 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 J(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;const i=this.w;let a,o;const r=e.elGrid.getBoundingClientRect(),l="touchmove"===t.type?t.touches[0].clientX:t.clientX,c="touchmove"===t.type?t.touches[0].clientY:t.clientY;if(this.clientY=c,this.clientX=l,i.interact.capturedSeriesIndex=-1,i.interact.capturedDataPointIndex=-1,c<r.top||c>r.top+r.height)return void this.handleMouseOut(e);if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){const f=parseInt(e.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(f)<0)return void this.handleMouseOut(e)}const n=this.getElTooltip();if(!n)return;const h=this.getElXCrosshairs();let d=[];i.config.chart.group&&(d=this.ctx.getSyncedCharts());const g=i.globals.xyCharts||"bar"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===t.type||"touchmove"===t.type||"mouseup"===t.type){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length===i.seriesData.series.length)return;null!==h&&h.classList.add("apexcharts-active");const f=null==(s=this.yaxisTooltips)?void 0:s.filter(u=>!0===u),p=this.ycrosshairs;if(null!==p&&f?.length&&p.classList.add("apexcharts-active"),g&&!this.showOnIntersect||d.length>1)this.handleStickyTooltip(t,l,c,e);else if("heatmap"===i.config.chart.type||"treemap"===i.config.chart.type){const u=this.intersect.handleHeatTreeTooltip({e:t,opt:e,x:a,y:o,type:i.config.chart.type});a=u.x,o=u.y,n.style.left=a+"px",n.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,c,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("mouseout"===t.type||"touchend"===t.type)&&this.handleMouseOut(e)}nonAxisChartsTooltips({e:t,opt:e,tooltipRect:s}){var i,a,o,r;const l=this.w,c=e.paths.getAttribute("rel"),n=this.getElTooltip();if(!n)return;const h=l.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){let d,g;l.dom.baseEl.classList.add("apexcharts-tooltip-active"),n.classList.add("apexcharts-active"),l.config.chart.accessibility.enabled&&l.config.chart.accessibility.announcements.enabled&&n.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:parseInt(c,10)-1,shared:!1});const f=e.paths.querySelector("path[data\\:cx]")||e.paths;if(l.config.tooltip.intersect&&f.hasAttribute("data:cx")&&f.hasAttribute("data:cy")){const p=l.dom.Paper.node.getBoundingClientRect();d=p.left-h.left+parseFloat(f.getAttribute("data:cx"))-s.ttWidth/2,g=p.top-h.top+parseFloat(f.getAttribute("data:cy"))-s.ttHeight-10}else d=(null!=(i=l.interact.clientX)?i:0)-h.left-s.ttWidth/2,g=(null!=(a=l.interact.clientY)?a:0)-h.top-s.ttHeight-10;if(n.style.left=d+"px",n.style.top=g+"px",l.config.legend.tooltipHoverFormatter){const u=c-1,m=null==(o=this.legendLabels)?void 0:o[u];if(!m)return;const y=(0,l.config.legend.tooltipHoverFormatter)(m.getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:l});m.innerHTML=y}}else("mouseout"===t.type||"touchend"===t.type)&&(n.classList.remove("apexcharts-active"),l.dom.baseEl.classList.remove("apexcharts-tooltip-active"),l.config.legend.tooltipHoverFormatter&&(null==(r=this.legendLabels)||r.forEach(d=>{const g=d.getAttribute("data:default-text");d.innerHTML=decodeURIComponent(g??"")})))}handleStickyTooltip(t,e,s,i){const a=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:e,clientY:s}),r=o.j;let l=o.capturedSeries;null!==l&&a.globals.collapsedSeriesIndices.includes(l??-1)&&(l=null);const c=i.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>c.width)this.handleMouseOut(i);else if(null!==l)this.handleStickyCapturedSeries(t,l??-1,i,r??0);else if(this.tooltipUtil.isXoverlap(r??0)||a.globals.isBarHorizontal){const n=a.seriesData.series.findIndex((h,d)=>!a.globals.collapsedSeriesIndices.includes(d));this.create(t,this,n,r??0,i.ttItems)}}handleStickyCapturedSeries(t,e,s,i){const a=this.w;if(this.tConfig.shared||null!==a.seriesData.series[e][i]){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)){const o=a.seriesData.series.findIndex((r,l)=>!a.globals.collapsedSeriesIndices.includes(l));this.create(t,this,o,i,s.ttItems)}}else this.handleMouseOut(s)}deactivateHoverFilter(){const t=this.w,e=new _(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;const i=this.w,a=this.getElXCrosshairs();i.dom.baseEl.classList.remove("apexcharts-tooltip-active"),t.tooltipEl.classList.remove("apexcharts-active"),i.c
vendor: 5,397 bytes, line 1
1onfig.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&t.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),"bubble"!==i.config.chart.type&&this.marker.resetPointsSize(),null!==a&&a.classList.remove("apexcharts-active");const o=this.ycrosshairs;if(null!==o&&o.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&(null==(e=this.xaxisTooltip)||e.classList.remove("apexcharts-active")),this.yaxisTooltips&&this.yaxisTooltips.length){null===this.yaxisTTEls&&(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&&(null==(s=this.legendLabels)||s.forEach(r=>{const l=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(l??"")}))}markerClick(t,e,s){const i=this.w;"function"==typeof i.config.chart.events.markerClick&&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,l,c,n,h,d,g,f,p,u,m,x,y,w,S,v,C,L,D;const k=this.w,P=e;"mouseup"===t.type&&this.markerClick(t,s,i),null===o&&(o=this.tConfig.shared);const E=this.tooltipUtil.hasMarkers(s),T=this.tooltipUtil.getElBars(),X=()=>{k.globals.markers.largestSize>0?P.marker.enlargePoints(i):P.tooltipPosition.moveDynamicPointsOnHover(i)};if(k.config.legend.tooltipHoverFormatter){const I=k.config.legend.tooltipHoverFormatter,G=Array.from(null!=(r=this.legendLabels)?r:[]);G.forEach(K=>{const V=K.getAttribute("data:default-text");K.innerHTML=decodeURIComponent(V??"")});for(let K=0;K<G.length;K++){const V=G[K],at=parseInt(null!=(l=V.getAttribute("i"))?l:"",10),Wt=decodeURIComponent(null!=(c=V.getAttribute("data:default-text"))?c:""),ze=I(Wt,{seriesIndex:o?at:s,dataPointIndex:i,w:k});if(o)V.innerHTML=k.globals.collapsedSeriesIndices.indexOf(at)<0?ze:Wt;else if(V.innerHTML=at===s?ze:Wt,s===at)break}}const H=k.rangeData,W=R(R({ttItems:a,i:s,j:i},void 0!==(null==(g=null==(d=null==(h=null==(n=H.seriesRange)?void 0:n[s])?void 0:h[i])?void 0:d.y[0])?void 0:g.y1)&&{y1:null==(m=null==(u=null==(p=null==(f=H.seriesRange)?void 0:f[s])?void 0:p[i])?void 0:u.y[0])?void 0:m.y1}),void 0!==(null==(S=null==(w=null==(y=null==(x=H.seriesRange)?void 0:x[s])?void 0:y[i])?void 0:w.y[0])?void 0:S.y2)&&{y2:null==(D=null==(L=null==(C=null==(v=H.seriesRange)?void 0:v[s])?void 0:C[i])?void 0:L.y[0])?void 0:D.y2});if(o){if(P.tooltipLabels.drawSeriesTexts(z(R({},W),{shared:!this.showOnIntersect&&this.tConfig.shared})),E)X();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...T]),this.barSeriesHeight>0)){const I=new _(this.w,this.ctx),G=k.dom.Paper.find(`.apexcharts-bar-area[j='${i}']`);this.deactivateHoverFilter(),P.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&X(),P.tooltipPosition.moveStickyTooltipOverBars(i,s);for(let V=0;V<G.length;V++)I.pathMouseEnter(G[V],void 0)}}else P.tooltipLabels.drawSeriesTexts(R({shared:!1},W)),this.tooltipUtil.hasBars()&&P.tooltipPosition.moveStickyTooltipOverBars(i,s),E&&P.tooltipPosition.moveMarkers(s,i)}}class B{constructor(t){this.node=t,t&&(t.instance=this),this._listeners=[],this._filter=null}attr(t,e){if("string"==typeof t&&void 0===e)return this.node.getAttribute(t);const s="string"==typeof t?{[t]:e}:t;for(const i in s){let a=s[i];null===a?this.node.removeAttribute(i):void 0!==a&&("number"==typeof a&&isNaN(a)&&(a=0),this.node.setAttribute(i,a))}if("text"===this.node.nodeName&&null!=s.x){const 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(const e in t)this.node.style[e]=t[e];return this}fill(t){return"object"==typeof t?this.attr(t):this.attr("fill",t)}stroke(t){return"object"==typeof t?(void 0!==t.color&&this.attr("stroke",t.color),void 0!==t.width&&this.attr("stroke-width",t.width),void 0!==t.dasharray&&this.attr("stroke-dasharray",t.dasharray),void 0!==t.linecap&&this.attr("stroke-linecap",t.linecap),void 0!==t.opacity&&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("g"===this.node.nodeName){const s=this.bbox();return this.attr("transform",`translate(${t-(s.x+s.width/2)}, ${e-(s.y+s.height/2)})`)}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 B(e))}findOne(t){const e=this.node.querySelector(t);return e?e.instance||new B(e):null}on(t,e){const 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)if(t&&!e){const s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType!==s||(this.node.removeEventListener(i.eventType,i.handler),!1))}else{const s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType!==s||i.handler!==e||(this.node.removeEventListener(i.eventType,i.handler),!1))}
vendor: 6,094 bytes, line 1
1else this._listeners.forEach(s=>{this.node.removeEventListener(s.eventType,s.handler)}),this._listeners=[];return this}each(t,e){return Array.from(this.node.children).forEach(i=>{const a=i.instance||new B(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=>1===t.nodeType).map(t=>t.instance||new B(t))}hide(){return this.node.style.display="none",this}show(){return this.node.style.display="",this}bbox(){if("function"==typeof this.node.getBBox)try{return this.node.getBBox()}catch{}return{x:0,y:0,width:0,height:0}}tspan(t){const e=F.createElementNS("http://www.w3.org/2000/svg","tspan");return e.textContent=t,this.node.appendChild(e),new B(e)}plot(t){return"string"==typeof t&&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}}let Ve=0;class Ae extends B{constructor(t,e,s){super(F.createElementNS(Y,"radial"===e?"radialGradient":"linearGradient")),this._id="SvgjsGradient"+ ++Ve,this.attr("id",this._id),"function"==typeof s&&s(new qe(this));let o=t.node.querySelector("defs");o||(o=F.createElementNS(Y,"defs"),t.node.appendChild(o)),o.appendChild(this.node)}stop(t,e,s){const i=F.createElementNS(Y,"stop");return i.setAttribute("offset",t),i.setAttribute("stop-color",e),void 0!==s&&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()}}class qe{constructor(t){this.gradient=t}stop(t,e,s){return this.gradient.stop(t,e,s),this}}let je=0;class Se extends B{constructor(t,e,s,i){super(F.createElementNS(Y,"pattern")),this._id="SvgjsPattern"+ ++je,this.attr({id:this._id,width:e,height:s,patternUnits:"userSpaceOnUse"}),"function"==typeof i&&i(new ct(this.node));let o=t.node.querySelector("defs");o||(o=F.createElementNS(Y,"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()}}class ct extends B{line(t,e,s,i){const a=this._make("line");return void 0!==t&&a.attr({x1:t,y1:e,x2:s,y2:i}),a}rect(t,e){const s=this._make("rect");return void 0!==t&&s.attr({width:t,height:e}),s}circle(t){const e=this._make("circle");return void 0!==t&&e.attr({r:t/2,cx:t/2,cy:t/2}),e}path(t){const e=this._make("path");return t&&e.attr("d",t),e}polygon(t){const e=this._make("polygon");return t&&e.attr("points",t),e}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(t){const e=F.createElementNS(Y,"text");e.textContent=t;const s=new B(e);return this.node.appendChild(e),s}text(t){const e=F.createElementNS(Y,"text"),s=new B(e);return this.node.appendChild(e),"function"==typeof t&&t(new Ze(e)),s}image(t,e){const s=F.createElementNS(Y,"image");s.setAttributeNS("http://www.w3.org/1999/xlink","href",t);const i=new B(s);if(this.node.appendChild(s),"function"==typeof e){const 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 Ae(this,t,e)}pattern(t,e,s){return new Se(this,t,e,s)}_make(t){const e=F.createElementNS(Y,t);return this.node.appendChild(e),new B(e)}_makeContainer(t){const e=F.createElementNS(Y,t);return this.node.appendChild(e),new ct(e)}}class Ze{constructor(t){this.textNode=t}tspan(t){const e=F.createElementNS(Y,"tspan");return e.textContent=t,this.textNode.appendChild(e),new Ke(e,this.textNode)}}class Ke{constructor(t,e){this.node=t,this.textNode=e}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}}let Je=0;class Ce extends B{constructor(){super(F.createElementNS(Y,"filter")),this._id="SvgjsFilter"+ ++Je,this.attr("id",this._id)}size(t,e,s,i){return this.attr({width:t,height:e,x:s,y:i})}}class ke{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){const e=F.createElementNS(Y,"feMerge");return t.forEach(s=>{const i=F.createElementNS(Y,"feMergeNode");i.setAttribute("in",s),e.appendChild(i)}),this.filter.node.appendChild(e),new B(e)}_primitive(t,e){const s=F.createElementNS(Y,t);for(const i in e)s.setAttribute(i,e[i]);return this.filter.node.appendChild(s),new B(s)}}function De(b){b.prototype.filterWith=function(t){const e=new Ce;this._filter=e;let s=this.node;for(;s&&"svg"!==s.nodeName;)s=s.parentNode;if(s){let i=s.querySelector("defs");i||(i=F.createElementNS(Y,"defs"),s.insertBefore(i,s.firstChild)),i.appendChild(e.node)}return t(new ke(e)),this.attr("filter","url(#"+e._id+")"),this},b.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},b.prototype.filterer=function(){return this._filter}}function Ht(b){if(!b||"string"!=typeof b)return[["M",0,0]];const t=[],e=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,s=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;let i;const a=[],o=[];for(;null!==(i=e.exec(b));)a.push(i[1]),o.push(i.index);for(let r=0;r<a.length;r++){const n=b.substring(o[r]+a[r].length,r+1<o.length?o[r+1]:b.length),h=[];let d;for(s.lastIndex=0;null!==(d=s.exec(n));)h.push(parseFloat(d[0]));const g=a[r].toUpperCase();if("Z"===g)t.push(["Z"]);else if("M"===g||"L"===g||"T"===g)for(let f=0;f<h.length;f+=2)t.push([g,h[f],h[f+1]]);else if("H"===g)for(let f=0;f<h.length;f++)t.push([g,h[f]]);
1else if("V"===g)for(let f=0;f<h.length;f++)t.push([g,h[f]]);else if("C"===g)for(let f=0;f<h.length;f+=6)t.push([g,h[f],h[f+1],h[f+2],h[f+3],h[f+4],h[f+5]]);else if("S"===g||"Q"===g)for(let f=0;f<h.length;f+=4)t.push([g,h[f],h[f+1],h[f+2],h[f+3]]);else if("A"===g)for(let f=0;f<h.length;f+=7)t.push([g,h[f],h[f+1],h[f+2],h[f+3],h[f+4],h[f+5],h[f+6]])}return 0===t.length&&t.push(["M",0,0]),t}function Bt(b){let t=1/0,e=1/0,s=-1/0,i=-1/0;return b.forEach(a=>{for(let o=1;o<a.length;o+=2)if(o+1<=a.length){const r=a[o],l=a[o+1];"number"==typeof r&&"number"==typeof l&&(r<t&&(t=r),r>s&&(s=r),l<e&&(e=l),l>i&&(i=l))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:e,width:s-t,height:i-e}}function _e(b){return b.map(t=>t.join(" ")).join(" ")}function Le(b){switch(b[0]){case"z":case"Z":b[0]="L",b[1]=this.start[0],b[2]=this.start[1];break;case"H":b[0]="L",b[2]=this.pos[1];break;case"V":b[0]="L",b[2]=b[1],b[1]=this.pos[0];break;case"T":b[0]="Q",b[3]=b[1],b[4]=b[2],b[1]=this.reflection[1],b[2]=this.reflection[0];break;case"S":b[0]="C",b[6]=b[4],b[5]=b[3],b[4]=b[2],b[3]=b[1],b[2]=this.reflection[1],b[1]=this.reflection[0]}return b}function Te(b){var t=b.length;return this.pos=[b[t-2],b[t-1]],-1!="SCQT".indexOf(b[0])&&(this.reflection=[2*this.pos[0]-b[t-4],2*this.pos[1]-b[t-3]]),b}function Me(b){var t,e=[b];switch(b[0]){case"M":return this.pos=this.start=[b[1],b[2]],e;case"L":b[5]=b[3]=b[1],b[6]=b[4]=b[2],b[1]=this.pos[0],b[2]=this.pos[1];break;case"Q":b[6]=b[4],b[5]=b[3],b[4]=1*b[4]/3+2*b[2]/3,b[3]=1*b[3]/3+2*b[1]/3,b[2]=1*this.pos[1]/3+2*b[2]/3,b[1]=1*this.pos[0]/3+2*b[1]/3;break;case"A":e=function Qe(b,t){var h,d,g,f,p,u,m,x,y,w,S,v,C,L,D,k,P,E,T,X,H,W,e=Math.abs(t[1]),s=Math.abs(t[2]),i=t[3]%360,a=t[4],o=t[5],r=t[6],l=t[7],c=new j(b[0],b[1]),n=new j(r,l),I=[];if(0===e||0===s||c.x===n.x&&c.y===n.y)return[["C",c.x,c.y,n.x,n.y,n.x,n.y]];for((d=(h=new j((c.x-n.x)/2,(c.y-n.y)/2).transform(new Q(0,0,0,0,0,0).rotate(i))).x*h.x/(e*e)+h.y*h.y/(s*s))>1&&(e*=d=Math.sqrt(d),s*=d),g=new Q(0,0,0,0,0,0).rotate(i).scale(1/e,1/s).rotate(-i),c=c.transform(g),u=(f=[(n=n.transform(g)).x-c.x,n.y-c.y])[0]*f[0]+f[1]*f[1],p=Math.sqrt(u),f[0]/=p,f[1]/=p,m=u<4?Math.sqrt(1-u/4):0,a===o&&(m*=-1),x=new j((n.x+c.x)/2+m*-f[1],(n.y+c.y)/2+m*f[0]),y=new j(c.x-x.x,c.y-x.y),w=new j(n.x-x.x,n.y-x.y),S=Math.acos(y.x/Math.sqrt(y.x*y.x+y.y*y.y)),y.y<0&&(S*=-1),v=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(v*=-1),o&&S>v&&(v+=2*Math.PI),!o&&S<v&&(v-=2*Math.PI),k=[],P=S,C=(v-S)/(L=Math.ceil(2*Math.abs(S-v)/Math.PI)),D=4*Math.tan(C/4)/3,H=0;H<=L;H++)T=Math.cos(P),E=Math.sin(P),X=new j(x.x+T,x.y+E),k[H]=[new j(X.x+D*E,X.y-D*T),X,new j(X.x-D*E,X.y+D*T)],P+=C;for(k[0][0]=k[0][1].clone(),k[k.length-1][2]=k[k.length-1][1].clone(),g=new Q(0,0,0,0,0,0).rotate(i).scale(e,s).rotate(-i),H=0,W=k.length;H<W;H++)k[H][0]=k[H][0].transform(g),k[H][1]=k[H][1].transform(g),k[H][2]=k[H][2].transform(g);for(H=1,W=k.length;H<W;H++)I.push(["C",(X=k[H-1][2]).x,X.y,(X=k[H][0]).x,X.y,r=(X=k[H][1]).x,l=X.y]);return I}(null!=(t=this.pos)?t:[],b),b=e[0]}return b[0]="C",this.pos=[b[5],b[6]],this.reflection=[2*b[5]-b[3],2*b[6]-b[4]],e}function Ee(b,t){if(!1===t)return!1;for(var e=t,s=b.length;e<s;++e)if("M"==b[e][0])return e;return!1}function ts(b,t,e,s,i,a){for(var o=b.slice(t,e||void 0),r=s.slice(i,a||void 0),l=0,c={pos:[0,0],start:[0,0]},n={pos:[0,0],start:[0,0]};o[l]=Le.call(c,o[l]),r[l]=Le.call(n,r[l]),o[l][0]!=r[l][0]||"M"==o[l][0]||"A"==o[l][0]&&(o[l][4]!=r[l][4]||o[l][5]!=r[l][5])?(Array.prototype.splice.apply(o,[l,1].concat(Me.call(c,o[l]))),Array.prototype.splice.apply(r,[l,1].concat(Me.call(n,r[l])))):(o[l]=Te.call(c,o[l]),r[l]=Te.call(n,r[l])),++l!=o.length||l!=r.length;)l==o.length&&o.push(["C",c.pos[0],c.pos[1],c.pos[0],c.pos[1],c.pos[0],c.pos[1]]),l==r.length&&r.push(["C",n.pos[0],n.pos[1],n.pos[0],n.pos[1],n.pos[0],n.pos[1]]);return{start:o,dest:r}}function Fe(b,t){var e=function es(b,t){for(var l,e=Ht(b),s=Ht(t),i=0,a=0,o=!1,r=!1;!1!==i||!1!==a;){if(o=Ee(e,!1!==i&&i+1),r=Ee(s,!1!==a&&a+1),!1===i){const c=Bt(l.start);i=0==c.height||0==c.width?e.push(e[0])-1:e.push(["M",c.x+c.width/2,c.y+c.height/2])-1}if(!1===a){const c=Bt(l.dest);a=0==c.height||0==c.width?s.push(s[0])-1:s.push(["M",c.x+c.width/2,c.y+c.height/2])-1}l=ts(e,i,o,s,a,r),e=e.slice(0,i).concat(l.start,!1===o?[]:e.slice(o)),s=s.slice(0,a).concat(l.dest,!1===r?[]:s.slice(r)),i=!1!==o&&i+l.start.length,a=!1!==r&&a+l.dest.length}return{start:e,dest:s}}(b,t),s=e.start,i=e.dest;return function(a){return _e(s.map(function(r,l){return i[l].map(function(c,n){return 0===n?c:r[n]+(i[l][n]-r[n])*a})}))}}function Xe(b){if(!b||"string"!=typeof b)return null;if("#"===b[0]){let e=b.slice(1);3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const s=parseInt(e,16);return[s>>16&255,s>>8&255,255&s,1]}const t=b.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?[+t[1],+t[2],+t[3],void 0!==t[4]?+t[4]:1]:null}function is(b,t,e){return`rgba(${Math.round(b[0]+(t[0]-b[0])*e)},${Math.round(b[1]+(t[1]-b[1])*e)},${Math.round(b[2]+(t[2]-b[2])*e)},${b[3]+(t[3]-b[3])*e})`}class St{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){const s=new St(this.el,t,e);return this._next=s,s._root=this._root||this,s}
vendor: 4,862 bytes, line 1
1_schedule(){const t=this._root||this;t._scheduled||(t._scheduled=!0,queueMicrotask(()=>t._executeChain()))}_executeChain(){const t=[];let 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){const e=this.el,s=this.duration;if(s<=1){const a=()=>{this._attrTarget&&e.attr(this._attrTarget),this._plotTarget&&e.plot(this._plotTarget),this._afterCb&&this._afterCb.call(e)};return void(t>0?setTimeout(a,t):a())}const i=()=>{const a={},o={},r={};if(this._attrTarget)for(const h of Object.keys(this._attrTarget)){const d=e.attr(h);a[h]=d;const g=Xe(d),f=Xe(String(this._attrTarget[h]));g&&f&&(o[h]=g,r[h]=f)}let l=null;if(this._plotTarget){const h=e.attr("d")||"";try{l=Fe(h,this._plotTarget)}catch{l=null}}const c=performance.now(),n=h=>{const g=Math.min((h-c)/s,1),f=function ss(b){return-Math.cos(b*Math.PI)/2+.5}(g);if(this._attrTarget)if(g>=1)e.attr(this._attrTarget);else{const p={};for(const u of Object.keys(this._attrTarget))if(o[u]&&r[u])p[u]=is(o[u],r[u],f);else{const m=parseFloat(a[u]),x=parseFloat(this._attrTarget[u]);!isNaN(m)&&!isNaN(x)&&(p[u]=m+(x-m)*f)}e.attr(p)}l&&g<1&&e.attr("d",l(f)),this._duringCb&&this._duringCb(f),g<1?F.requestAnimationFrame(n):(this._plotTarget&&e.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(e))};F.requestAnimationFrame(n)};t>0?setTimeout(i,t):i()}}function Pe(b){b.prototype.animate=function(t,e){return new St(this,t,e)}}function Ne(b){b.prototype.draggable=function(t){if(!1===t)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;const e=this,s=t||{},i=a=>{if(a.button&&0!==a.button)return;a.stopPropagation();const r="touchstart"===a.type?a.touches[0]:a,l=e.node,c=parseFloat(l.getAttribute("x"))||0,n=parseFloat(l.getAttribute("y"))||0,h=r.clientX,d=r.clientY,g=l.ownerSVGElement;let f=null;g&&(f=g.getScreenCTM());const p=m=>{const x="touchmove"===m.type?m.touches[0]:m;let y=x.clientX-h,w=x.clientY-d;f&&(y/=f.a,w/=f.d);let S=c+y,v=n+w;const C=parseFloat(l.getAttribute("width"))||0,L=parseFloat(l.getAttribute("height"))||0;void 0!==s.minX&&S<s.minX&&(S=s.minX),void 0!==s.minY&&v<s.minY&&(v=s.minY),void 0!==s.maxX&&S+C>s.maxX&&(S=s.maxX-C),void 0!==s.maxY&&v+L>s.maxY&&(v=s.maxY-L);const k=new CustomEvent("dragmove",{detail:{handler:{move:function(P,E){l.setAttribute("x",P),l.setAttribute("y",E)}},box:{x:S,y:v,w:C,h:L,x2:S+C,y2:v+L}}});l.dispatchEvent(k)},u=()=>{M.isBrowser()&&(document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",u),document.removeEventListener("touchend",u))};M.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 Re(b){b.prototype.select=function(t){if(!1===t)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;const e=this,{createHandle:s,updateHandle:i}=t,a=document.createElementNS(Y,"g");a.setAttribute("class","svg_select_points");const o=e.node.parentNode;o&&o.appendChild(a);const r={},l=["t","b","l","r","lt","rt","lb","rb"];l.forEach((n,h)=>{const d=new ct(document.createElementNS(Y,"g"));a.appendChild(d.node);const g=s(d,[0,0],h,[],n);r[n]={group:d,handle:g}});const c=()=>{const n=parseFloat(e.attr("x"))||0,h=parseFloat(e.attr("y"))||0,d=parseFloat(e.attr("width"))||0,g=parseFloat(e.attr("height"))||0,f=e.node.getAttribute("transform");f?a.setAttribute("transform",f):a.removeAttribute("transform");const p={t:[n+d/2,h],b:[n+d/2,h+g],l:[n,h+g/2],r:[n+d,h+g/2],lt:[n,h],rt:[n+d,h],lb:[n,h+g],rb:[n+d,h+g]};l.forEach(u=>{r[u]&&p[u]&&i(r[u].group,p[u])})};return c(),e._selectHandles=a,e._selectHandlesMap=r,e._updateSelectPositions=c,e._selectCleanup=()=>{a.parentNode&&a.parentNode.removeChild(a),e._selectHandles=null,e._selectHandlesMap=null,e._updateSelectPositions=null},e},b.prototype.resize=function(t){if(!1===t)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;const e=this,s=e._selectHandlesMap;if(!s)return e;const i=[],a=o=>{const r=s[o];if(!r||!r.group||!r.group.node)return;const l=r.group.node,c=n=>{if(n.button&&0!==n.button)return;n.stopPropagation();const g=("touchstart"===n.type?n.touches[0]:n).clientX,f=e.node.ownerSVGElement;let p=null;f&&(p=f.getScreenCTM());const u=parseFloat(e.attr("x"))||0,m=parseFloat(e.attr("width"))||0,x=w=>{let v=("touchmove"===w.type?w.touches[0]:w).clientX-g;p&&(v/=p.a);let C=u,L=m;"l"===o?(C=u+v,L=m-v):"r"===o&&(L=m+v),L<0&&(L=0),e.attr({x:C,width:L}),e._updateSelectPositions&&e._updateSelectPositions();const D=new CustomEvent("resize",{detail:{el:e}});
1e.node.dispatchEvent(D)},y=()=>{M.isBrowser()&&(document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x),document.removeEventListener("mouseup",y),document.removeEventListener("touchend",y));const w=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(w)};M.isBrowser()&&(document.addEventListener("mousemove",x),document.addEventListener("touchmove",x),document.addEventListener("mouseup",y),document.addEventListener("touchend",y))};l.addEventListener("mousedown",c),l.addEventListener("touchstart",c),i.push(()=>{l.removeEventListener("mousedown",c),l.removeEventListener("touchstart",c)})};return a("l"),a("r"),e._resizeCleanup=()=>{i.forEach(o=>o())},e}}function gt(){const b=F.createElementNS(Y,"svg"),t=new ct(b);return t.attr({xmlns:Y}),t}De(B),Pe(B),Ne(B),Re(B),gt.xlink="http://www.w3.org/1999/xlink",M.isBrowser()&&typeof window.SVG>"u"&&(window.SVG=gt),M.isBrowser()?(typeof window.SVG>"u"&&(window.SVG=gt),typeof window.Apex>"u"&&(window.Apex={})):typeof global<"u"&&(typeof global.Apex>"u"&&(global.Apex={}),typeof global.SVG>"u"&&(global.SVG=gt));const Ye=class Gt{static registerFeatures(t){for(const[e,s]of Object.entries(t))Gt._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 xt(this.w,this.ctx),this.ctx.axes=new ie(this.w,this.ctx),this.ctx.core=new ue(this.ctx.el,this.w,this.ctx),this.ctx.config=new lt({}),this.ctx.data=new ft(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new Ft(this.w,this.ctx),this.ctx.graphics=new _(this.w,this.ctx),this.ctx.coreUtils=new q(this.w),this.ctx.crosshairs=new At(this.w),this.ctx.events=new ee(this.w,this.ctx),this.ctx.fill=new Mt(this.w),this.ctx.localization=new se(this.w),this.ctx.options=new st,this.ctx.responsive=new ae(this.w),this.ctx.series=new J(this.w,{toggleDataSeries:(...e)=>{var s;return null==(s=this.ctx.legend)?void 0:s.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new re(this.w),this.ctx.formatters=new rt(this.w),this.ctx.titleSubtitle=new oe(this.w),this.ctx.dimensions=new Xt(this.w,this.ctx),this.ctx.updateHelpers=new xe(this.w,this.ctx);const t=new ve(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(){const t=Gt._featureRegistry,e=this.w,s=this.ctx,i=t.get("exports");s.exports=i?new i(e,s):null;const a=t.get("legend");s.legend=a?new a(e,s):null;const o=t.get("toolbar");Object.defineProperty(s,"toolbar",{get(){var c;return!this._toolbar&&o&&(this._toolbar=new o(e,this)),null!=(c=this._toolbar)?c:null},configurable:!0});const r=t.get("zoomPanSelection");Object.defineProperty(s,"zoomPanSelection",{get(){var c;return!this._zoomPanSelection&&r&&(this._zoomPanSelection=new r(e,this)),null!=(c=this._zoomPanSelection)?c:null},configurable:!0});const l=t.get("keyboardNavigation");Object.defineProperty(s,"keyboardNavigation",{get(){var c;return!this._keyboardNavigation&&l&&(this._keyboardNavigation=new l(e,this)),null!=(c=this._keyboardNavigation)?c:null},configurable:!0})}};N(Ye,"_featureRegistry",new Map);let pt=Ye;class zt{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&&"function"==typeof this.w.globals.resizeObserver.disconnect&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),bt.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}){const e=this.w.dom;if(M.isBrowser()){const s=e.Paper.node;s.parentNode&&s.parentNode.parentNode&&!t&&(s.parentNode.parentNode.style.minHeight="unset");const i=e.baseEl;if(i&&this.ctx.eventList.forEach(a=>{i.removeEventListener(a,this.ctx.events.documentEvent)}),null!==this.ctx.el)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}}const Ot=new WeakMap;function He(b,t){if(M.isSSR())return;let e=!1;if(b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){const i=b.getBoundingClientRect();("none"===b.style.display||0===i.width)&&(e=!0)}const s=new ResizeObserver(i=>{e&&t.call(b,i),e=!0});b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(b.children).forEac
1h(i=>s.observe(i)):s.observe(b),Ot.set(t,s)}function Be(b,t){if(M.isSSR())return;const e=Ot.get(t);e&&(e.disconnect(),Ot.delete(t))}class It{constructor(t,e){N(this,"core"),N(this,"responsive"),N(this,"axes"),N(this,"grid"),N(this,"graphics"),N(this,"coreUtils"),N(this,"crosshairs"),N(this,"events"),N(this,"fill"),N(this,"localization"),N(this,"options"),N(this,"series"),N(this,"theme"),N(this,"formatters"),N(this,"titleSubtitle"),N(this,"dimensions"),N(this,"updateHelpers"),N(this,"tooltip"),N(this,"data"),N(this,"animations"),N(this,"exports"),N(this,"legend"),N(this,"toolbar"),N(this,"zoomPanSelection"),N(this,"keyboardNavigation"),N(this,"annotations"),N(this,"timeScale"),N(this,"_keyboardNavigation"),N(this,"windowResizeHandler"),N(this,"parentResizeHandler"),N(this,"publicMethods",[]),N(this,"eventList",[]),N(this,"config"),this.opts=e,this.ctx=this,this.w=new Kt(e).init(),this.el=t,this.w.globals.cuid=A.randomId(),this.w.globals.chartID=this.w.config.chart.id?A.escapeString(this.w.config.chart.id):this.w.globals.cuid,new pt(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),M.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var t,e;return null!=(e=null==(t=this.w)?void 0:t.config)&&e.chart?new Promise((s,i)=>{var a;if(A.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);const o=this.w.config.chart.events.beforeMount;if("function"==typeof o&&o(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),M.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),He(this.el.parentNode,this.parentResizeHandler);const l=this.el.getRootNode&&this.el.getRootNode(),c=A.is("ShadowRoot",l),n=this.el.ownerDocument;let h=c?l.getElementById("apexcharts-css"):n.getElementById("apexcharts-css");if(!h){h=F.createElementNS("http://www.w3.org/1999/xhtml","style"),h.id="apexcharts-css",h.textContent='@keyframes opaque {\n  0% {\n    opacity: 0\n  }\n\n  to {\n    opacity: 1\n  }\n}\n\n@keyframes resizeanim {\n\n  0%,\n  to {\n    opacity: 0\n  }\n}\n\n.apexcharts-canvas {\n  position: relative;\n  direction: ltr !important;\n  user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, .5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n  position: relative\n}\n\n.apexcharts-text tspan {\n  font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n  transition: .15s ease all;\n  opacity: .2\n}\n\n.apexcharts-legend-text {\n  padding-left: 15px;\n  margin-left: -15px;\n}\n\n.apexcharts-legend-series[role="button"]:focus {\n  outline: 2px solid #008FFB;\n  outline-offset: 2px;\n}\n\n.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {\n  outline: none;\n}\n\n.apexcharts-legend-series[role="button"]:focus-visible {\n  outline: 2px solid #008FFB;\n  outline-offset: 2px;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-canvas svg:focus:not(:focus-visible) {\n  outline: none;\n}\n\n/* Keyboard navigation focus indicator on SVG data elements.\n   SVG elements don\'t support CSS outline, so we use stroke. */\n.apexcharts-bar-area.apexcharts-keyboard-focused,\n.apexcharts-candlestick-area.apexcharts-keyboard-focused,\n.apexcharts-boxPlot-area.apexcharts-keyboard-focused,\n.apexcharts-rangebar-area.apexcharts-keyboard-focused,\n.apexcharts-pie-area.apexcharts-keyboard-focused,\n.apexcharts-heatmap-rect.apexcharts-keyboard-focused,\n.apexcharts-treemap-rect.apexcharts-keyboard-focused {\n  stroke: #008FFB;\n  stroke-width: 2;\n  stroke-opacity: 1;\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, .7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  margin-left: 5px;\n  font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\
1n  display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n  display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n  display: inline-block;\n  position: relative;\n  width: 16px;\n  height: 16px;\n  font-size: 16px;\n  line-height: 16px;\n  margin-right: 4px;\n  text-align: center;\n  vertical-align: middle;\n  color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n  content: "";\n  display: inline-block;\n  width: 100%;\n  text-align: center;\n  color: currentcolor;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  font-size: 26px;\n  font-family: Arial, Helvetica, sans-serif;\n  line-height: 14px;\n  font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n  content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n  content: "\\25A0";\n  transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n  content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n  content: "\\25C6";\n  font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n  content: "\\25B2";\n  font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n  content: "\\2715";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n  content: "\\2715";\n  transform: rotate(45deg) translate(-1px, -1px);\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n  content: "\\2605";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n  content: "\\2726";\n  font-size: 20px;\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n  padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: 700;\n  display: block;\n  margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n  top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n  left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n  right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}
1\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0\n}\n\n.apexcharts-selection-rect {\n  cursor: move\n}\n\n.svg_select_shape {\n  stroke-width: 1;\n  stroke-dasharray: 10 10;\n  stroke: black;\n  stroke-opacity: 0.1;\n  pointer-events: none;\n  fill: none;\n}\n\n.svg_select_handle {\n  stroke-width: 3;\n  stroke: black;\n  fill: none;\n}\n\n.svg_select_handle_r {\n  cursor: e-resize;\n}\n\n.svg_select_handle_l {\n  cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, .7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1\n  }\n}\n\n/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */\n.apexcharts-toolbar:focus-within {\n  opacity: 1\n}\n\n/* Focus indicator for toolbar icon buttons */\n.apexcharts-menu-icon:focus-visible,\n.apexcharts-pan-icon:focus-visible,\n.apexcharts-reset-icon:focus-visible,\n.apexcharts-selection-icon:focus-visible,\n.apexcharts-toolbar-custom-icon:focus-visible,\n.apexcharts-zoom-icon:focus-visible,\n.apexcharts-zoomin-icon:focus-visible,\n.apexcharts-zoomout-icon:focus-visible {\n  outline: 2px solid #008FFB;\n  outline-offset: 2px;\n  border-radius: 2px\n}\n\n/* Focus indicator for hamburger menu items */\n.apexcharts-menu-item:focus-visible {\n  outline: 2px solid #008FFB;\n  outline-offset: -2px;\n  background: #eee\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n  opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n  opacity: 1;\n  transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n  cursor: default;\n  pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: .3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n  cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n  pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n  transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n  pointer-events: none;\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>
1div {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0\n}\n\n.resize-triggers>div {\n  height: 100%;\n  width: 100%;\n  background: #eee;\n  overflow: auto\n}\n\n.contract-trigger:before {\n  overflow: hidden;\n  width: 200%;\n  height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n  pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n  pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n  pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n  transition: none !important;\n}';const d=(null==(a=this.opts.chart)?void 0:a.nonce)||this.w.config.chart.nonce;d&&h.setAttribute("nonce",d),c?l.prepend(h):!1!==this.w.config.chart.injectStyleSheet&&n.head.appendChild(h)}}const r=this.create(this.w.config.series,{});if(!r)return s(this);this.mount(r).then(()=>{"function"==typeof this.w.config.chart.events.mounted&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent("mounted",[this,this.w]),s(r)}).catch(l=>{var c,n;const h=l instanceof Error?l:new Error(String(l)),d=h;d.chartId=null==(n=null==(c=this.w)?void 0:c.globals)?void 0:n.chartID,d.el=this.el,i(h)})}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;const i=this.w;this.core||new pt(this).initModules();const a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,!A.elementExists(this.el)||(this.responsive.checkResponsiveConfig(e),i.c
1onfig.xaxis.convertedCatToNumeric&&new ot(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===a.svgWidth))return a.animationEnded=!0,null;let o=t;t.forEach((m,x)=>{m.hidden&&(o=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:x}))});const r=q.checkComboSeries(o,i.config.chart.type);a.comboCharts=r.comboCharts,a.comboBarCount=r.comboBarCount;const l=o.every(m=>m.data&&0===m.data.length);(0===o.length||l&&a.collapsedSeries.length<1)&&this.series.handleNoData(),M.isBrowser()&&this.events.setupEventHandlers();const c=this.data.parseData(o);this._writeParsedSeriesData(c.seriesData),this._writeParsedRangeData(c.rangeData),this._writeParsedCandleData(c.candleData),this._writeParsedLabelData(c.labelData),this._writeParsedAxisFlags(c.axisFlags),this.theme.init(),new mt(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),(!a.noData||a.collapsedSeries.length===i.seriesData.series.length||i.config.legend.showForSingleSeries)&&(null==(s=this.legend)||s.init()),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX)),this.formatters.heatmapLabelFormatters(),new q(this.w).getLargestMarkerSize();const d=this.dimensions.plotCoords();this._writeLayoutCoords(d.layout);const g=this.core.xySettings();this.grid.createGridMask();const f=this.core.plotChartType(o,g),p=new Et(this.w,this);return p.bringForward(),i.config.dataLabels.background.enabled&&p.dataLabelsBackground(),this.core.shiftGraphPosition(),i.globals.dataPoints>50&&i.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:f,xyRatios:g,dimensions:{plot:{left:i.layout.translateX,top:i.layout.translateY,width:i.layout.gridWidth,height:i.layout.gridHeight}}}}mount(t=null){const e=this,s=e.w;return new Promise((i,a)=>{var o,r,l,c,n,h,d,g,f;if(null===e.el)return a(new Error("Not enough data to display or target element not found"));(null===t||s.globals.allSeriesCollapsed)&&e.series.handleNoData(),e.grid=new Ft(e.w,e);const p=e.grid.drawGrid(),u=pt._featureRegistry.get("annotations");if(e.annotations=u?new u(e.w,{theme:e.theme,timeScale:e.timeScale}):null,null==(o=e.annotations)||o.drawImageAnnos(),null==(r=e.annotations)||r.drawTextAnnos(),"back"===s.config.grid.position&&(p&&s.dom.elGraphical.add(p.el),null!=(l=p?.elGridBorders)&&l.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);"front"===s.config.grid.position&&(p&&s.dom.elGraphical.add(p.el),null!=(c=p?.elGridBorders)&&c.node&&s.dom.elGraphical.add(p.elGridBorders)),"front"===s.config.xaxis.crosshairs.position&&e.crosshairs.drawXCrosshairs(),"front"===s.config.yaxis[0].crosshairs.position&&e.crosshairs.drawYCrosshairs(),"treemap"!==s.config.chart.type&&e.axes.drawAxis(s.config.chart.type,p);const m=new nt(this.w,this.ctx,p),x=new vt(this.w,{theme:this.theme,timeScale:this.timeScale},p);if(null!==p&&(m.xAxisLabelCorrections(),x.setYAxisTextAlignments(),s.config.yaxis.map((y,w)=>{-1===s.globals.ignoreYAxisIndexes.indexOf(w)&&x.yAxisTitleRotate(w,y.opposite)})),null==(n=e.annotations)||n.drawAxesAnnotations(),!s.globals.noData){if(M.isBrowser()&&s.config.tooltip.enabled&&!s.globals.noData&&(null==(h=e.w.globals.tooltip)||h.drawTooltip(t.xyRatios)),s.config.chart.accessibility.enabled&&s.config.chart.accessibility.keyboard.enabled&&s.config.chart.accessibility.keyboard.navigation.enabled&&(null==(d=e.keyboardNavigation)||d.init()),M.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.c
1onfig.chart.pan.enabled)&&(null==(g=e.zoomPanSelection)||g.init({xyRatios:t.xyRatios}));else{const y=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(S=>{y[S]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&(null==(f=e.toolbar)||f.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(){M.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),Be(0,this.parentResizeHandler));const t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((e,s)=>{e.id===A.escapeString(t)&&Apex._chartInstances.splice(s,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new zt(this.ctx).clear({isUpdating:!1})}updateOptions(t,e=!1,s=!0,i=!0,a=!0){const o=this.w;if(o.interact.selection=void 0,this.lastUpdateOptions){if(A.shallowEqual(this.lastUpdateOptions,t))return Promise.resolve(this);if(t.series&&this.lastUpdateOptions.series&&JSON.stringify(this.lastUpdateOptions.series)===JSON.stringify(t.series)){const r=R({},t),l=R({},this.lastUpdateOptions);if(delete r.series,delete l.series,A.shallowEqual(r,l))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,l)=>this.updateHelpers._extendSeries(r,l))),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();const 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){const s=this;s.data.resetParsingFlags(),s.w.globals.dataChanged=!0,s.series.getPreviousPaths();const i=s.w.config.series.slice();for(let a=0;a<i.length;a++)if(null!==t[a]&&typeof t[a]<"u"){const o=t[a],r=i[a];for(let l=0;l<o.data.length;l++)r.data.push(o.data[l])}return s.w.config.series=i,e&&(s.w.globals.initialSeries=A.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=A.clone(t),new zt(this.ctx).clear({isUpdating:!0});const i=this.create(this.w.config.series,t??{});if(!i)return e(this);this.mount(i).then(()=>{"function"==typeof this.w.config.chart.events.updated&&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{const a=this.w,o=a.globals;o.shouldAnimate=t,o.dataChanged=!0,o.animationEnded=!1,bt.invalidateSelectors(a);const 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(),"category"!==a.config.xaxis.type&&this.formatters.setLabelFormatters());const l=this.core.xySettings(),c=a.dom.elGraphical.node;c.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(p=>{var u;return null==(u=p.parentNode)?void 0:u.removeChild(p)});const h=this.core.plotChartType(a.config.series,l),d=c.querySelector(".apexcharts-grid");
1(Array.isArray(h)?h:[h]).forEach(d&&"front"===a.config.grid.position?p=>{const u=p&&p.node?p.node:p;u&&c.insertBefore(u,d)}:p=>{a.dom.elGraphical.add(p)});const f=new Et(a,this);f.bringForward(),a.config.dataLabels.background.enabled&&f.dataLabelsBackground(),M.isBrowser()&&a.config.tooltip.enabled&&!o.noData&&(null==(i=a.globals.tooltip)||i.drawTooltip(l)),"function"==typeof a.config.chart.events.updated&&a.config.chart.events.updated(this,a),this.events.fireEvent("updated",[this,a]),o.isDirty=!0,e(this)}catch(a){s(a)}})}getSyncedCharts(){const t=this.getGroupedCharts();let 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){const e=A.escapeString(t);if(!Apex._chartInstances)return;const s=Apex._chartInstances.filter(i=>i.id===e)[0];return s&&s.chart}static initOnLoad(){var t;const e=document.querySelectorAll("[data-apexcharts]");for(let s=0;s<e.length;s++){const i=e[s],a=JSON.parse(null!=(t=e[s].getAttribute("data-options"))?t:"");new It(i,a).render()}}static exec(t,e,...s){const i=this.getChartByID(t);if(!i)return;i.w.globals.isExecCalled=!0;let a=null;return-1!==i.publicMethods.indexOf(e)&&(a=i[e](...s)),a}static merge(t,e){return A.extend(t,e)}static getThemePalettes(){return{palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800"],palette3:["#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B"],palette4:["#4ECDC4","#C7F464","#81D4FA","#FD6A6A","#546E7A"],palette5:["#2B908F","#F9A3A4","#90EE7E","#FA4443","#69D2E7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}static use(t){pe(t)}static registerFeatures(t){pt.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),null==(i=a.annotations)||i.addXaxisAnnotationExternal(t,e,a)}addYaxisAnnotation(t,e=!0,s=void 0){var i;let a=this;s&&(a=s),null==(i=a.annotations)||i.addYaxisAnnotationExternal(t,e,a)}addPointAnnotation(t,e=!0,s=void 0){var i;let a=this;s&&(a=s),null==(i=a.annotations)||i.addPointAnnotationExternal(t,e,a)}clearAnnotations(t=void 0){var e;let s=this;t&&(s=t),null==(e=s.annotations)||e.clearAnnotations(s)}removeAnnotation(t,e=void 0){var s;let i=this;e&&(i=e),null==(s=i.annotations)||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 yt(this.w).getMinYMaxY(t).highestY}getLowestValueInSeries(t=0){return new yt(this.w).getMinYMaxY(t).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){const 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;null==(s=this.ctx.toolbar)||s.zoomUpdateOptions(t,e)}setLocale(t){this.localization.setCurrentLocaleValues(t)}
vendor: 1,373 bytes, line 1
1dataURI(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(null!=(t=this.w.globals.resizeTimer)?t:void 0);let{redrawOnWindowResize:e}=this.w.config.chart;"function"==typeof e&&(e=e()),e&&this._windowResize()}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.