1"use strict";(self.webpackChunkpip_frontend=self.webpackChunkpip_frontend||[]).push([[234],{78234(Ms,ie,ae){ae.r(ie),ae.d(ie,{__apex_Animations:()=>_t,__apex_Animations_applyAnimationPolicy:()=>fe,__apex_Animations_applyProgressiveReveal:()=>Tt,__apex_Animations_computeStagger:()=>ge,__apex_Animations_prefersReducedMotion:()=>de,__apex_Base:()=>ce,__apex_BrowserAPIs_BrowserAPIs:()=>F,__apex_ChartFactory_getChartClass:()=>q,__apex_ChartFactory_register:()=>Fe,__apex_Config:()=>gt,__apex_Constants_LINE_HEIGHT_RATIO:()=>Ht,__apex_Constants_NICE_SCALE_ALLOWED_MAG_MSD:()=>Ot,__apex_Constants_NICE_SCALE_DEFAULT_TICKS:()=>Dt,__apex_Core:()=>Pe,__apex_CoreUtils:()=>K,__apex_Crosshairs:()=>Xt,__apex_DOMShim_SSRClassList:()=>oe,__apex_DOMShim_SSRDOMShim:()=>ne,__apex_DOMShim_SSRElement:()=>mt,__apex_Data:()=>it,__apex_DataLabels:()=>Ut,__apex_DateTime:()=>Z,__apex_Defaults:()=>ft,__apex_Environment_Environment:()=>P,__apex_Events:()=>me,__apex_Fill:()=>Gt,__apex_Filters:()=>Q,__apex_Formatters:()=>dt,__apex_Globals:()=>zt,__apex_Graphics:()=>L,__apex_Markers:()=>Mt,__apex_Options:()=>ot,__apex_PathMorphing_arrayToPath:()=>Ue,__apex_PathMorphing_morphPaths:()=>Ze,__apex_PathMorphing_parsePath:()=>vt,__apex_PathMorphing_pathBbox:()=>At,__apex_PerformanceCache:()=>Lt,__apex_Range:()=>Et,__apex_Resize_addResizeListener:()=>is,__apex_Resize_removeResizeListener:()=>as,__apex_Responsive:()=>ve,__apex_SVGAnimation_SVGAnimationRunner:()=>Nt,__apex_SVGAnimation_installAnimationMethods:()=>Qe,__apex_SVGContainer:()=>xt,__apex_SVGDraggable_installDraggable:()=>ts,__apex_SVGElement:()=>W,__apex_SVGFilter_FilterBuilder:()=>We,__apex_SVGFilter_SVGFilter:()=>Ie,__apex_SVGFilter_installFilterMethods:()=>Ge,__apex_SVGGradient_SVGGradient:()=>Oe,__apex_SVGPattern_SVGPattern:()=>ze,__apex_SVGSelectable_installSelectable:()=>es,__apex_Scales:()=>xe,__apex_Series:()=>et,__apex_Theme:()=>Ae,__apex_ThemePalettes_getThemePalettes:()=>Ft,__apex_TimeScale:()=>Le,__apex_TitleSubtitle:()=>Se,__apex_Utils:()=>S,__apex_axes_Axes:()=>ye,__apex_axes_AxesUtils:()=>nt,__apex_axes_Grid:()=>Vt,__apex_axes_XAxis:()=>pt,__apex_axes_YAxis:()=>Pt,__apex_charts_Scatter:()=>ue,__apex_dimensions_Dimensions:()=>$t,__apex_dimensions_Grid:()=>Te,__apex_dimensions_Helpers:()=>Ce,__apex_dimensions_XAxis:()=>ke,__apex_dimensions_YAxis:()=>De,__apex_helpers_Destroy:()=>Qt,__apex_helpers_InitCtxVariables:()=>kt,__apex_helpers_Localization:()=>be,__apex_helpers_UpdateHelpers:()=>Xe,__apex_index_Box:()=>pe,__apex_index_SVG:()=>Ct,__apex_math_Box:()=>pe,__apex_math_Matrix:()=>st,__apex_math_Point:()=>J,__apex_math_SVGNS:()=>H,__apex_tooltip_AxesTooltip:()=>Be,__apex_tooltip_Intersect:()=>Ye,__apex_tooltip_Labels:()=>Ne,__apex_tooltip_Marker:()=>Re,__apex_tooltip_Position:()=>Jt,__apex_tooltip_Tooltip:()=>He,__apex_tooltip_Utils:()=>Kt,default:()=>ee});var rs=Object.defineProperty,os=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,Rt=(y,t,e)=>t in y?rs(y,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):y[t]=e,B=(y,t)=>{for(var e in t||(t={}))ls.call(t,e)&&Rt(y,e,t[e]);if(re)for(var e of re(t))cs.call(t,e)&&Rt(y,e,t[e]);return y},V=(y,t)=>os(y,ns(t)),Y=(y,t,e)=>Rt(y,"symbol"!=typeof t?t+"":t,e);class P{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 mt{constructor(t,e=null){this.nodeName=t,this.namespaceURI=e,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new oe,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 mt(this.nodeName,this.namespaceURI);
vendor: 14,368 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 oe{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 ne{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(t,e){return new mt(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 mt("root");return s.innerHTML=t,{documentElement:s}}}}}let $=null,at=null,rt=null;class F{static init(){P.isSSR()&&!$&&($=new ne)}static createElement(t){return P.isSSR()?($||this.init(),$.createElementNS(null,t)):document.createElement(t)}static createElementNS(t,e){return P.isSSR()?($||this.init(),$.createElementNS(t,e)):document.createElementNS(t,e)}static createTextNode(t){return P.isSSR()?($||this.init(),$.createTextNode(t)):document.createTextNode(t)}static querySelector(t){return P.isSSR()?null:document.querySelector(t)}static querySelectorAll(t){return P.isSSR()?[]:document.querySelectorAll(t)}static getComputedStyle(t){return P.isSSR()?{}:window.getComputedStyle(t)}static getBoundingClientRect(t){return P.isSSR()?($||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 P.isSSR()?($||this.init(),at||(at=$.createXMLSerializer()),at):(at||(at=new XMLSerializer),at)}static getDOMParser(){return P.isSSR()?($||this.init(),rt||(rt=$.createDOMParser()),rt):(rt||(rt=new DOMParser),rt)}static addWindowEventListener(t,e,s){P.isBrowser()&&window.addEventListener(t,e,s)}static removeWindowEventListener(t,e,s){P.isBrowser()&&window.removeEventListener(t,e,s)}static requestAnimationFrame(t){return P.isBrowser()?window.requestAnimationFrame(t):(t(0),null)}static cancelAnimationFrame(t){P.isBrowser()&&t&&window.cancelAnimationFrame(t)}static elementExists(t){return!!t&&(P.isSSR()?!0===t._ssrMode||void 0!==t.nodeName:!!t.getRootNode&&(t.getRootNode({composed:!0})===document||t.isConnected))}static getWindow(){return P.isBrowser()?window:null}static getDocument(){return P.isBrowser()?document:null}static _getShim(){return $}static _resetShim(){$=null,at=null,rt=null}}let S=class tt{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 P.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(tt.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&&tt.is("ShadowRoot",e)}static getShadowRootHost(t){return tt.isInShadowDOM(t)&&t.getRootNode().host||null}static getDimensions(t){if(!t)return[0,0];if(P.isSSR())return[t._ssrWidth||400,t._ssrHeight||300];let e;try{e=getComputedStyle(t,null)}catch{return[t.clientWidth||0,t.clientHeight||0]}let s=t.clientWidth,i=t.clientHeight;if(!s||!i){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(P.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 parseHex(t){if("string"!=typeof t)return null;let e=t.trim().replace("#","");return 3===e.length&&(e=e.split("").map(s=>s+s).join("")),/^[0-9a-fA-F]{6}$/.test(e)?[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]:null}static relativeLuminance([t,e,s]){const i=a=>{const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)};return.2126*i(t)+.7152*i(e)+.0722*i(s)}static getContrastRatio(t,e){const s=tt.parseHex(t),i=tt.parseHex(e);if(!s||!i)return 0;const a=tt.relativeLuminance(s),o=tt.relativeLuminance(i);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}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),n=parseInt(s[2],10);return"rgb("+(Math.round((i-o)*a)+o)+","+(Math.round((i-r)*a)+r)+","+(Math.round((i-n)*a)+n)+")"}shadeHexColor(t,e){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,n=255&s;return"#"+(16777216+65536*(Math.round((i-o)*a)+o)+256*(Math.round((i-r)*a)+r)+(Math.round((i-n)*a)+n)).toString(16).slice(1)}shadeColor(t,e){return tt.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(!tt.isCSSVariable(t)||P.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(P.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 Z{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],n=["\x03",...s.shortDays];function h(k,D=2){let C=k+"";for(;C.length<D;)C="0"+C;return C}const l=i?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+l)).replace(/(^|[^\\])yy/g,"$1"+l.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+l);const c=(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"+h(c))).replace(/(^|[^\\])M/g,"$1"+c);const d=i?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+n[0])).replace(/(^|[^\\])dd/g,"$1"+h(d))).replace(/(^|[^\\])d/g,"$1"+d);const f=i?t.getUTCHours():t.getHours(),g=f>12?f-12:0===f?12:f;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+h(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+h(g))).replace(/(^|[^\\])h/g,"$1"+g);const p=i?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+h(p))).replace(/(^|[^\\])m/g,"$1"+p);const u=i?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+h(u))).replace(/(^|[^\\])s/g,"$1"+u);let m=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+h(m,3)),m=Math.round(m/10),e=e.replace(/(^|[^\\])ff/g,"$1"+h(m)),m=Math.round(m/10);const x=f<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 b=x.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));let w=-t.getTimezoneOffset(),v=i||!w?"Z":w>0?"+":"-";if(!i){w=Math.abs(w);const D=w%60;v+=h(Math.floor(w/60))+":"+h(D)}e=e.replace(/(^|[^\\])K/g,"$1"+v);const A=(i?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(r[0],"g"),r[A])).replace(new RegExp(n[0],"g"),n[A])).replace(new RegExp(a[0],"g"),a[c])).replace(new RegExp(o[0],"g"),o[c])).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=S.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}getDateFields(t,e){const s=new Date(t);return e?{year:s.getUTCFullYear(),month:s.getUTCMonth(),date:s.getUTCDate(),hour:s.getUTCHours(),minute:s.getUTCMinutes(),second:s.getUTCSeconds(),ms:s.getUTCMilliseconds(),weekday:s.getUTCDay()}:{year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),ms:s.getMilliseconds(),weekday:s.getDay()}}addInterval(t,e,s,i){const a=new Date(t);if(i)switch(e){case"year":a.setUTCFullYear(a.getUTCFullYear()+s);break;case"month":a.setUTCMonth(a.getUTCMonth()+s);break;case"week":a.setUTCDate(a.getUTCDate()+7*s);break;case"day":a.setUTCDate(a.getUTCDate()+s);break;case"hour":a.setUTCHours(a.getUTCHours()+s);break;case"minute":a.setUTCMinutes(a.getUTCMinutes()+s);break;case"second":a.setUTCSeconds(a.getUTCSeconds()+s)}else switch(e){case"year":a.setFullYear(a.getFullYear()+s);break;case"month":a.setMonth(a.getMonth()+s);break;case"week":a.setDate(a.getDate()+7*s);break;case"day":a.setDate(a.getDate()+s);break;case"hour":a.setHours(a.getHours()+s);break;case"minute":a.setMinutes(a.getMinutes()+s);break;case"second":a.setSeconds(a.getSeconds()+s)}return a.getTime()}ceilToBoundary(t,e,s,i){const a=new Date(t);if(i)switch(e){case"second":{const o=a.getUTCSeconds(),r=Math.ceil(o/s)*s;return r===o&&0===a.getUTCMilliseconds()?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(r),a.getTime())}case"minute":{const o=a.getUTCMinutes(),r=Math.ceil(o/s)*s;return r===o&&0===a.getUTCSeconds()&&0===a.getUTCMilliseconds()?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(r),a.getTime())}case"hour":{const o=a.getUTCHours(),r=Math.ceil(o/s)*s;return r===o&&0===a.getUTCMinutes()&&0===a.getUTCSeconds()&&0===a.getUTCMilliseconds()?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(r),a.getTime())}case"day":return 0===a.getUTCHours()&&0===a.getUTCMinutes()&&0===a.getUTCSeconds()&&0===a.getUTCMilliseconds()?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(a.getUTCDate()+1),a.getTime());case"week":{const r=Date.UTC(1970,0,5);a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0);const n=a.getTime(),h=Math.ceil((n-r)/6048e5),c=r+Math.ceil(h/s)*s*6048e5;return c>=t?c:c+6048e5*s}case"month":{const o=a.getUTCMonth(),r=Math.ceil(o/s)*s;return r===o&&1===a.getUTCDate()&&0===a.getUTCHours()&&0===a.getUTCMinutes()&&0===a.getUTCSeconds()&&0===a.getUTCMilliseconds()?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(1),a.setUTCMonth(r),a.getTime())}case"year":{const o=a.getUTCFullYear(),r=Math.ceil(o/s)*s;return r===o&&0===a.getUTCMonth()&&1===a.getUTCDate()&&0===a.getUTCHours()&&0===a.getUTCMinutes()&&0===a.getUTCSeconds()&&0===a.getUTCMilliseconds()?t:Date.UTC(r,0,1)}}else switch(e){case"second":{const o=a.getSeconds(),r=Math.ceil(o/s)*s;return r===o&&0===a.getMilliseconds()?t:(a.setMilliseconds(0),a.setSeconds(r),a.getTime())}case"minute":{const o=a.getMinutes(),r=Math.ceil(o/s)*s;return r===o&&0===a.getSeconds()&&0===a.getMilliseconds()?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(r),a.getTime())}case"hour":{const o=a.getHours(),r=Math.ceil(o/s)*s;return r===o&&0===a.getMinutes()&&0===a.getSeconds()&&0===a.getMilliseconds()?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(r),a.getTime())}case"day":return 0===a.getHours()&&0===a.getMinutes()&&0===a.getSeconds()&&0===a.getMilliseconds()?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(a.getDate()+1),a.getTime());case"week":{const r=new Date(1970,0,5).getTime();a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0);const n=a.getTime(),h=Math.ceil((n-r)/6048e5),c=r+Math.ceil(h/s)*s*6048e5;return c>=t?c:c+6048e5*s}
1case"month":{const o=a.getMonth(),r=Math.ceil(o/s)*s;return r===o&&1===a.getDate()&&0===a.getHours()&&0===a.getMinutes()&&0===a.getSeconds()&&0===a.getMilliseconds()?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(1),a.setMonth(r),a.getTime())}case"year":{const o=a.getFullYear(),r=Math.ceil(o/s)*s;return r===o&&0===a.getMonth()&&1===a.getDate()&&0===a.getHours()&&0===a.getMinutes()&&0===a.getSeconds()&&0===a.getMilliseconds()?t:new Date(r,0,1).getTime()}}return t}isAtBoundary(t,e,s){const i=this.getDateFields(t,s);switch(e){case"year":return 0===i.month&&1===i.date&&0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"month":return 1===i.date&&0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"day":return 0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"hour":return 0===i.minute&&0===i.second&&0===i.ms;case"minute":return 0===i.second&&0===i.ms;case"second":return 0===i.ms}return!1}}class dt{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 Z(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(S.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(S.isNumber(s)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(S.isNumber(t.config.xaxis.decimalsInFloat))return s.toFixed(t.config.xaxis.decimalsInFloat);{const i=t.globals.maxX-t.globals.minX;if(i>0){const o=Math.max(0,-Math.floor(Math.log10(i/10)));return s.toFixed(o)}return s.toFixed(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)=>{if(void 0!==s.labels.formatter)e.yLabelFormatters[i]=s.labels.formatter;else if("violin"===t.config.chart.type){const a=o=>"number"==typeof o&&isFinite(o)?""+Math.round(100*o)/100:o;e.yLabelFormatters[i]=o=>t.globals.xyCharts?Array.isArray(o)?o.map(a):a(o):o}else e.yLabelFormatters[i]=a=>t.globals.xyCharts?Array.isArray(a)?a.map(o=>this.defaultYFormatter(o,s)):this.defaultYFormatter(a,s):a}),t.globals}heatmapLabelFormatters(){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 Yt=({isTimeline:y,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a})=>{var o;let r=a.rangeData.seriesRangeStart[t][e],n=a.rangeData.seriesRangeEnd[t][e],h=a.labelData.labels[e],l=a.config.series[t].name?a.config.series[t].name:"";const c=a.formatters.ttKeyFormatter,d=a.config.tooltip.y.title.formatter,f={w:a,seriesIndex:t,dataPointIndex:e,start:r,end:n};"function"==typeof d&&(l=d(l,f)),null!=(o=a.config.series[t].data[e])&&o.x&&(h=a.config.series[t].data[e].x),y||"datetime"===a.config.xaxis.type&&(h=new dt(a).xLabelFormat(a.formatters.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new Z(a).formatDate,w:a})),"function"==typeof c&&(h=c(h,f)),Number.isFinite(s)&&Number.isFinite(i)&&(r=s,n=i);let g="",p="";const u=a.globals.colors[t];if(void 0===a.config.tooltip.x.formatter)if("datetime"===a.config.xaxis.type){const m=new Z(a);g=m.formatDate(m.getDate(r),a.config.tooltip.x.format),p=m.formatDate(m.getDate(n),a.config.tooltip.x.format)}else g=r,p=n;else g=a.config.tooltip.x.formatter(r),p=a.config.tooltip.x.formatter(n);return{start:r,end:n,startVal:g,endVal:p,ylabel:h,color:u,seriesName:l}},Bt=y=>{let{color:t,seriesName:e,ylabel:s,start:i,end:a,seriesIndex:o,dataPointIndex:r}=y;const n=y.w.globals.tooltip.tooltipLabels.getFormatters(o);i=n.yLbFormatter(i),a=n.yLbFormatter(a);const h=n.yLbFormatter(y.w.seriesData.series[o][r]);let l="";const c=`<span class="value start-value">\n ${i}\n </span> <span class="separator">-</span> <span class="value end-value">\n ${a}\n </span>`;return l=y.w.globals.comboCharts?"rangeArea"===y.w.config.series[o].type||"rangeBar"===y.w.config.series[o].type?c:`<span>${h}</span>`:c,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+s+": </span> "+l+" </div></div>"};class ft{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(),S.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}}
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(),V(B({},this.bar()),{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}pyramid(){return this.funnel()}gauge(){const t=this.radialBar();return V(B({},t),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"60%"},track:{background:"#e7e7e7",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:"32px",fontWeight:600,offsetY:8}}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["Open","High","","Low","Close"],"candlestick")},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}violin(){return{chart:{zoom:{enabled:!1},animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},fill:{opacity:.7},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:t,dataPointIndex:e,w:s})=>this._getViolinTooltip(s,t,e)},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}rangeBar(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(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:n}=Yt(V(B({},s),{isTimeline:!0}));return Bt(V(B({},s),{color:i,seriesName:a,ylabel:o,start:r,end:n}))})(s):(s=>{const{color:i,seriesName:a,ylabel:o,start:r,end:n}=Yt(s);return Bt(V(B({},s),{color:i,seriesName:a,ylabel:o,start:r,end:n}))})(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}=Yt(e);return Bt(V(B({},e),{color:s,seriesName:i,ylabel:a,start:o,end:r}))})(e)}}}brush(t){return S.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 V(B({},t),{plotOptions:V(B({},t.plotOptions),{bar:V(B({},t.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(t){return t.xaxis.convertedCatToNumeric=!0,t}convertCatToNumericXaxis(t,e){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(a){return S.isNumber(a)?Math.floor(a):a};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 S.isNumber(a)?s(i[Math.floor(a)-1]):s(a)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}bubble(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:t=>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}},stroke:{lineCap:"butt"},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(t,e,s,i,a){const n=t.candleData.seriesCandleM[e][s],c=t.config.series[e];return c.type&&c.type!==a?`<div class="apexcharts-custom-tooltip">\n ${c.name?c.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>"+(n?`<div>${i[2]}: <span class="value">`+n+"</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>"}_getViolinTooltip(t,e,s){var i,a,o;const r=null==(i=t.violinData.seriesViolinMin[e])?void 0:i[s],n=null==(a=t.violinData.seriesViolinMax[e])?void 0:a[s],h=(null==(o=t.violinData.seriesViolinPoints[e])?void 0:o[s])||[];return`<div class="apexcharts-tooltip-box apexcharts-tooltip-${t.config.chart.type}"><div class="apexcharts-tooltip-violin-name">${t.config.series[e].name||"series-"+(e+1)}</div><div>Min: <span class="value">${r}</span></div><div>Max: <span class="value">${n}</span></div><div>Observations: <span class="value">${h.length}</span></div></div>`}}const le={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 ot{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350},chartTypeMorph:{enabled:!0,speed:600},respectReducedMotion:!0,largeDatasetThreshold:1e3},background:"",locales:[le],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},scatter:{jitter:{enabled:!1,x:0,y:0,distributed:!1,maxPoints:5e3}},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"},points:{show:!1,shape:"circle",size:2.5,jitter:.5,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}},violin:{bandwidthScale:1,normalize:"individual",points:{show:!0,shape:"circle",size:2.5,jitter:.5,constrainToViolin:!0,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}}
vendor: 4,123 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,gradientLegend:{enabled:!1,width:"70%",height:"70%",thickness:12,align:"center",stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:"11px",fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:"arc",min:0,max:100,bands:[],bandsStyle:{strokeWidth:"40%",gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:"#666",placement:"outside"},minor:{count:4,length:5,width:1,color:"#999",placement:"outside"},labels:{show:!1,offset:6,fontSize:"11px",fontFamily:void 0,fontWeight:400,color:"#666",formatter:t=>String(t)}},needle:{color:"#333",length:"85%",baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:"ease-out"}},hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",stroke:void 0,strokeWidth:1,strokeDasharray:void 0,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:t=>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,external:{show:!1,offsetX:0,offsetY:0,fontSize:void 0,fontFamily:void 0,fontWeight:void 0,color:void 0,formatter:void 0,connector:{show:!0,width:1,color:void 0,length:16,gap:6}}},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter: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],c
vendor: 4,633 bytes, line 1
1olorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],drilldown:{enabled:!1,series:[],breadcrumb:{show:!0,position:"top-left",separator:" / ",rootLabel:"All",offsetX:0,offsetY:0},animation:{enabled:!0,zoomFromPoint:!1,speed:260}},legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:t=>t?t+": ":""}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM",day:"dd MMM",hour:"HH:mm",minute:"HH:mm",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!1,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 gt{constructor(t){this.opts=t}init({responsiveOverride:t}){var e,s,i,a,o,r,n,h,l,c;let d=this.opts;const f=new ot,g=new ft(d);d=this.normalizeAliasedChartType(d),this.chartType=d.chart.type,d=this.extendYAxis(d),d=this.extendAnnotations(d);
1let p=f.init(),u={};if(d&&"object"==typeof d){let x={};const b=["line","area","bar","candlestick","boxPlot","violin","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"],w=d.chart.requestedType;x="funnel"===w||"pyramid"===w?g[w]():"gauge"===w?g.gauge():-1!==b.indexOf(d.chart.type)?g[d.chart.type]():g.line(),null!=(s=null==(e=d.plotOptions)?void 0:e.bar)&&s.isFunnel&&(x=g.funnel()),d.chart.stacked&&"bar"===d.chart.type&&(x=g.stackedBars()),null!=(i=d.chart.brush)&&i.enabled&&(x=g.brush(x)),null!=(o=null==(a=d.plotOptions)?void 0:a.line)&&o.isSlopeChart&&(x=g.slope()),d.chart.stacked&&"100%"===d.chart.stackType&&(d=g.stacked100(d)),null!=(n=null==(r=d.plotOptions)?void 0:r.bar)&&n.isDumbbell&&(d=g.dumbbell(d)),this.checkForDarkTheme(P.getApex()),this.checkForDarkTheme(d),d.xaxis=d.xaxis||P.getApex().xaxis||{},t||(d.xaxis.convertedCatToNumeric=!1),d=this.checkForCatToNumericXAxis(this.chartType,x,d),(null!=(h=d.chart.sparkline)&&h.enabled||null!=(c=null==(l=P.getApex().chart)?void 0:l.sparkline)&&c.enabled)&&(x=g.sparkline(x)),u=S.extend(p,x)}const m=S.extend(u,P.getApex());return p=S.extend(m,d),p=this.handleUserInputErrors(p),p}normalizeAliasedChartType(t){if(!t||!t.chart)return t;const e=t.chart.type;return"funnel"!==e&&"pyramid"!==e&&"gauge"!==e||(t.chart.requestedType=e,"funnel"===e||"pyramid"===e?(t.plotOptions=t.plotOptions||{},t.plotOptions.bar=t.plotOptions.bar||{},t.plotOptions.bar.isFunnel=!0,t.plotOptions.bar.horizontal=!0,t.chart.type="bar",t.plotOptions.bar.isPyramid="pyramid"===e):"gauge"===e&&(t.chart.type="radialBar")),t}checkForCatToNumericXAxis(t,e,s){var i,a,o,r,n;const h=new ft(s),l=("bar"===t||"boxPlot"===t||"violin"===t)&&(null==(a=null==(i=s.plotOptions)?void 0:i.bar)?void 0:a.horizontal),f=("scatter"===t||"bubble"===t)&&(null==(n=null==(r=null==(o=s.plotOptions)?void 0:o.scatter)?void 0:r.jitter)?void 0:n.enabled);return!l&&!("pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t)&&!f&&"datetime"!==s.xaxis.type&&"numeric"!==s.xaxis.type&&"between"!==(s.xaxis.tickPlacement?s.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement)&&(s=h.convertCatToNumeric(s)),s}extendYAxis(t,e){const s=new ot;(typeof t.yaxis>"u"||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={});const i=P.getApex();t.yaxis.constructor!==Array&&i.yaxis&&i.yaxis.constructor!==Array&&(t.yaxis=S.extend(t.yaxis,i.yaxis)),t.yaxis=t.yaxis.constructor!==Array?[S.extend(s.yAxis,t.yaxis)]:S.extendArray(t.yaxis,s.yAxis);let a=!1;t.yaxis.forEach(r=>{r.logarithmic&&(a=!0)});let o=t.series;return e&&!o&&(o=e.config.series),a&&o.length!==t.yaxis.length&&o.length&&(t.yaxis=o.map((r,n)=>{if(r.name||(o[n].name=`series-${n+1}`),t.yaxis[n])return t.yaxis[n].seriesName=o[n].name,t.yaxis[n];{const h=S.extend(s.yAxis,t.yaxis[0]);return h.show=!1,h}})),a&&o.length>1&&o.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}extendAnnotations(t){return typeof t.annotations>"u"&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}extendYAxisAnnotations(t){const e=new ot;return t.annotations.yaxis=S.extendArray(typeof t.annotations.yaxis<"u"?t.annotations.yaxis:[],e.yAxisAnnotation),t}extendXAxisAnnotations(t){const e=new ot;return t.annotations.xaxis=S.extendArray(typeof t.annotations.xaxis<"u"?t.annotations.xaxis:[],e.xAxisAnnotation),t}extendPointAnnotations(t){const e=new ot;return t.annotations.points=S.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 Ht=1.618,Ot=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],Dt=[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 zt{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.noLabelsProvi
vendor: 4,777 bytes, line 1
1ded=!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.isDestroyed=!1,t.bulkRevealScheduled=!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,n,h=n)=>{Object.defineProperty(r,h,{get:()=>t[n],set(l){t[n]=l},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,configurable:!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:Ht,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:Ot,niceScaleDefaultTicks:Dt,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(t){const e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=S.extend({},t),e.initialSeries=S.clone(t.series),e.lastXAxis=S.clone(e.initialConfig.xaxis),e.lastYAxis=S.
vendor: 4,149 bytes, line 1
1clone(e.initialConfig.yaxis),e}}class ce{constructor(t){this.opts=t}init(){const t=new gt(this.opts).init({responsiveOverride:!1}),e=(new zt).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:!!P.isBrowser()&&("ontouchstart"in window||navigator.maxTouchPoints>0)},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[],seriesBoxPoints:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},violinData:{seriesViolinDensity:[],seriesViolinPoints:[],seriesViolinMin:[],seriesViolinMax:[]},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},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});for(const i of["seriesViolinDensity","seriesViolinPoints","seriesViolinMin","seriesViolinMax"])Object.defineProperty(e,i,{get:()=>s.violinData[i],set(a){s.violinData[i]=a}
1,enumerable:!1,configurable:!0});return s}}class K{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||"violin"===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){if(null===t)return this.w.config.series.reduce((e,s)=>e+s,0);{const e=this.w.seriesData.series[t];return Array.isArray(e)?e.reduce((s,i)=>s+i,0):e??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(h=>Array.isArray(h.seriesName));e.series.forEach((h,l)=>{a.push(l),i.push(null)}),e.yaxis.forEach((h,l)=>{s[l]=[]});const r=[];e.yaxis.forEach((h,l)=>{let c=!1;if(h.seriesName){let d=[];Array.isArray(h.seriesName)?d=h.seriesName:d.push(h.seriesName),d.forEach(f=>{e.series.forEach((g,p)=>{if(g.name===f){let u=p;l===p||o?!o||a.indexOf(p)>-1?s[l].push([l,p]):console.warn("Series '"+g.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(s[p].push([p,l]),u=l),c=!0,u=a.indexOf(u),-1!==u&&a.splice(u,1)}})})}c||r.push(l)}),s=s.map(h=>{const l=[];return h.forEach(c=>{i[c[1]]=c[0],l.push(c[1])}),l});let n=e.yaxis.length-1;for(let h=0;h<r.length&&(n=r[h],s[n]=[],a);h++){const l=a[0];a.shift(),s[n].push(l),i[l]=n}a.forEach(h=>{s[n].push(h),i[h]=n}),t.seriesYAxisMap=s.map(h=>h),t.seriesYAxisReverseMap=i.map(h=>h),t.seriesYAxisMap.forEach((h,l)=>{h.forEach(c=>{e.series[c]&&void 0===e.series[c].group&&(e.series[c].group="apexcharts-axis-".concat(l.toString()))})})}isSeriesNull(t=null){let e=[];const s=this.w.config.series;return e=null===t?s.filter(i=>null!==i):s[t]&&Array.isArray(s[t].data)?s[t].data.filter(i=>null!==i):null!=s[t]?[s[t]]:[],0===e.length}seriesHaveSameValues(t){const e=this.w.seriesData.series[t];return!Array.isArray(e)||e.every((s,i,a)=>s===a[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 n=0;n<a.length;n++)s.seriesData.seriesX[o][n]>t&&s.seriesData.seriesX[o][n]<e&&(r+=a[n]);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,n=[],h=.1,l=0;if(e.yRange=[],e.isMultipleYAxis)for(let c=0;c<e.minYArr.length;c++)e.yRange.push(Math.abs(e.minYArr[c]-e.maxYArr[c])),n.push(0);else e.yRange.push(Math.abs(e.minY-e.maxY));e.xRange=Math.abs(e.maxX-e.minX),e.zRange=Math.abs(e.maxZ-e.minZ);for(let c=0;
1c<e.yRange.length;c++)s.push(e.yRange[c]/this.w.layout.gridHeight);if(a=e.xRange/this.w.layout.gridWidth,i=e.yRange/this.w.layout.gridWidth,o=e.xRange/this.w.layout.gridHeight,r=e.zRange/this.w.layout.gridHeight*16,r||(r=1),e.minY!==Number.MIN_VALUE&&0!==Math.abs(e.minY)&&(e.hasNegs=!0),t.globals.seriesYAxisReverseMap.length>0){const c=(d,f)=>{const g=t.config.yaxis[t.globals.seriesYAxisReverseMap[f]],p=d<0?-1:1;return d=Math.abs(d),g.logarithmic&&(d=this.getBaseLog(g.logBase,d)),-p*d/s[f]};if(e.isMultipleYAxis){n=[];for(let d=0;d<s.length;d++)n.push(c(e.minYArr[d],d))}else n=[],n.push(c(e.minY,0)),e.minY!==Number.MIN_VALUE&&0!==Math.abs(e.minY)&&(h=-e.minY/i,l=e.minX/a)}else n=[],n.push(0),h=0,l=0;return{yRatio:s,invertedYRatio:i,zRatio:r,xRatio:a,invertedXRatio:o,baseLineInvertedY:h,baseLineY:n,baseLineX:l}}getLogSeries(t){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 n=-Number.MAX_VALUE,h=Number.MIN_VALUE,l=1;return s.seriesLog.forEach((c,d)=>{c.forEach(f=>{e.config.yaxis[d]&&e.config.yaxis[d].logarithmic&&(n=Math.max(f,n),h=Math.min(f,h))})}),l=Math.pow(s.yRange[o],Math.abs(h-n)/s.yRange[o]),i.yLogRatio[o]=l/this.w.layout.gridHeight,l}}),i.invalidLogScale?t.slice():i.yLogRatio}static extendArrayProps(t,e,s){var i,a;return e?.yaxis&&(e=t.extendYAxis(e,s)),e?.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),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 n=[],h=[];t.i.forEach((l,c)=>{a.config.series[l].group===r&&(n.push(t.series[c]),h.push(l))}),n.length>0&&o.push(i.draw(n,s,h))}),o}}const It="http://www.w3.org/2000/svg";function he(y){return 1-Math.pow(1-y,3)}let Wt=null;function de(){if(!P.isBrowser())return!1;try{return Wt||(Wt=window.matchMedia("(prefers-reduced-motion: reduce)")),!!Wt.matches}catch{return!1}}function Tt(y,t,e){if(!P.isBrowser()||e.globals.dataChanged||e.globals.resized)return!1;const s=e.config.chart.animations;if(!s||!1===s.enabled)return!1;const i=e.config.chart.type;if("line"!==i&&"area"!==i&&"rangeArea"!==i||!(e.layout.gridWidth>0))return!1;const a=2*(s.speed||800),o=Math.max(0,Math.min(1,t/e.layout.gridWidth)),n=(1-Math.cbrt(1-o))*a,l=y.node.style;l.opacity="0";let c=null;const d=f=>{null===c&&(c=f),f-c>=n?l.opacity="":F.requestAnimationFrame(d)};return F.requestAnimationFrame(d),!0}function fe(y){const t=y.config.chart.animations;t&&!1!==t.respectReducedMotion&&de()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1))}function ge(y){const e=y.index||0,s="number"==typeof y.baseDelay?y.baseDelay:40,i=y.row||0,a=y.col||0,o=y.groupIndex||0,r=y.perGroup||1,n=y.centerDistance||0;switch(y.style){case"none":return 0;case"diagonal":return(i+a)*s;case"group":return o*s+e%r*(s/4);case"centroid":return n*s*(e+1);default:return e*s}}class _t{constructor(t,e){this.w=t,this.ctx=e}animateLine(t,e,s,i){t.attr(e).animate(i).attr(s)}animateMarker(t,e,s,i){t.attr({opacity:0}).animate(e).attr({opacity:1}).after(()=>{i()})}animatePop(t,{speed:e,delay:s=0,onComplete:i}){const a=this.w;if(!P.isBrowser()||!a.globals.shouldAnimate||e<1)return void(i&&i());
vendor: 6,198 bytes, line 1
1const r=t.node.style;r.transformBox="fill-box",r.transformOrigin="center",r.transform="scale(0)",r.opacity="0";const n=performance.now()+s,h=l=>{const c=Math.max(0,Math.min(1,(l-n)/e));r.transform=`scale(${function hs(y){return 1+2.70158*Math.pow(y-1,3)+1.70158*Math.pow(y-1,2)}(c)})`,r.opacity=String(Math.min(1,2*c)),c<1?F.requestAnimationFrame(h):(r.transform="",r.transformOrigin="",r.transformBox="",r.opacity="",i&&i())};F.requestAnimationFrame(h)}animateRect(t,e,s,i,a,o=0){t.attr(e).animate(i,o).attr(s).after(()=>a())}animatePathsGradually(t){const{el:e,realIndex:s,j:i,fill:a,pathFrom:o,pathTo:r,speed:n,delay:h}=t,c=this.w;let d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(d=0),this.morphSVG(e,s,i,"line"!==c.config.chart.type||c.globals.comboCharts?a:"stroke",o,r,n,h*d)}revealBulk(t){const e=this.w;t.node.classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:t.node}),P.isBrowser()&&e.globals.shouldAnimate?e.globals.bulkRevealScheduled||(e.globals.bulkRevealScheduled=!0,F.requestAnimationFrame(()=>{e.globals.isDestroyed||(e.globals.bulkRevealScheduled=!1,this.animationCompleted(t))})):this.animationCompleted(t)}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}))}animateDraw(t,{realIndex:e,j:s,isFill:i,isLast:a,speed:o,delay:r,mask:n}){const h=this.w,l=this,c=()=>{a&&h.globals.shouldAnimate&&l.animationCompleted(t),l.showDelayedElements()};if(!P.isBrowser()||!h.globals.shouldAnimate||o<1)return void c();const d=t.node,f=()=>{const u=n&&"radial"===n.type,m=h.layout.gridWidth+8,x=n&&n.cx||0,b=n&&n.cy||0,w=(n&&n.r||h.layout.gridWidth/2)+4,v=`apexDrawMask${h.globals.cuid}-${e}-${s??0}-${i?"f":"s"}`,A=F.createElementNS(It,"mask");let k;if(A.setAttribute("id",v),A.setAttribute("maskUnits","userSpaceOnUse"),u){const T=w;A.setAttribute("x",String(x-T)),A.setAttribute("y",String(b-T)),A.setAttribute("width",String(2*T)),A.setAttribute("height",String(2*T)),k=F.createElementNS(It,"circle"),k.setAttribute("cx",String(x)),k.setAttribute("cy",String(b)),k.setAttribute("r","0"),k.setAttribute("fill","#fff")}else A.setAttribute("x",String(-4)),A.setAttribute("y",String(-4)),A.setAttribute("width",String(m)),A.setAttribute("height",String(h.layout.gridHeight+8)),k=F.createElementNS(It,"rect"),k.setAttribute("x",String(-4)),k.setAttribute("y",String(-4)),k.setAttribute("width","0"),k.setAttribute("height",String(h.layout.gridHeight+8)),k.setAttribute("fill","#fff");A.appendChild(k),h.dom.elDefs.node.appendChild(A),d.setAttribute("mask",`url(#${v})`);const D=performance.now()+(r||0),C=T=>{if(h.globals.isDestroyed)return;const M=Math.max(0,Math.min(1,(T-D)/o)),_=he(M);u?k.setAttribute("r",String(_*w)):k.setAttribute("width",String(_*m)),M<1?F.requestAnimationFrame(C):(d.removeAttribute("mask"),A.parentNode&&A.parentNode.removeChild(A),c())};F.requestAnimationFrame(C)};F.requestAnimationFrame(()=>{if(h.globals.isDestroyed)return;if(i)return void f();const p=d.getAttribute("stroke-dasharray");if(p&&"0"!==p&&""!==p)return void f();let m=0;try{"function"==typeof d.getTotalLength&&(m=d.getTotalLength())}catch{m=0}m?(p=>{d.setAttribute("stroke-dasharray",String(p)),d.setAttribute("stroke-dashoffset",String(p));const u=performance.now()+(r||0),m=x=>{if(h.globals.isDestroyed)return;const b=Math.max(0,Math.min(1,(x-u)/o));d.setAttribute("stroke-dashoffset",String(p*(1-he(b)))),b<1?F.requestAnimationFrame(m):(d.removeAttribute("stroke-dasharray"),d.removeAttribute("stroke-dashoffset"),c())};F.requestAnimationFrame(m)})(m):c()})}morphSVG(t,e,s,i,a,o,r,n){var h,l;const c=this.w;a||(a=t.attr("pathFrom")),o||(o=t.attr("pathTo"));const d=()=>("radar"===c.config.chart.type&&(r=1),`M 0 ${c.layout.gridHeight}`);(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=d()),(!o.trim()||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=d()),c.globals.shouldAnimate||(r=1);const g=!0===(null==(l=null==(h=this.ctx)?void 0:h.morphTypeChange)?void 0:l.isActive())?"polygons":"commands";t.plot(a).animate(1,n).plot(a).animate(r,n).plot(o,g).after(()=>{S.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 Q{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 n=r.config.chart.dropShadow,h="lighten"===s?2:.3;t.filterWith&&(t.filterWith(l=>{l.colorMatrix({type:"matrix",values:`\n ${h} 0 0 0 0\n 0 ${h} 0 0 0\n 0 0 ${h} 0 0\n 0 0 0 1 0\n `,in:"SourceGraphic",result:"brightness"}),n.enabled&&this.addShadow(l,e,n,"brightness")}),n.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:n,left:h,color:l,opacity:c}=s;if(l=Array.isArray(l)?l[e]:l,(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:h,dy:n,result:"offset"}),t.gaussianBlur({in:"offset",stdDeviation:r,result:"blur"}),t.flood({"flood-color":l,"flood-opacity":c,result:"flood"}),t.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),t.merge(["shadow",i])}dropShadow(t,e,s=0){var i,a,o,r,n;const h=this.w;
1return t.unfilter&&t.unfilter(!0),S.isMsEdge()&&"radialBar"===h.config.chart.type||(null==(i=h.config.chart.dropShadow.enabledOnSeries)?void 0:i.length)>0&&-1===(null==(a=h.config.chart.dropShadow.enabledOnSeries)?void 0:a.indexOf(s))||t.filterWith&&(t.filterWith(l=>{this.addShadow(l,s,e,"SourceGraphic")}),e.noUserSpaceOnUse||null==(r=null==(o=t.filterer())?void 0:o.node)||r.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(n=t.filterer())?void 0:n.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 L{constructor(t,e=null){this.w=t,this.ctx=e}roundPathCorners(t,e){function s(C,T,M){var _=T.x-C.x,E=T.y-C.y,X=Math.sqrt(_*_+E*E);return i(C,T,Math.min(1,M/X))}function i(C,T,M){return{x:C.x+(T.x-C.x)*M,y:C.y+(T.y-C.y)*M}}function a(C,T){C.length>2&&(C[C.length-2]=T.x,C[C.length-1]=T.y)}function o(C){return{x:parseFloat(C[C.length-2]),y:parseFloat(C[C.length-1])}}t.indexOf("NaN")>-1&&(t="");var n=t.split(/[,\s]/).reduce(function(C,T){var M=T.match(/^([a-zA-Z])(.+)/);return M?(C.push(M[1]),C.push(M[2])):C.push(T),C},[]).reduce(function(C,T){return parseFloat(T)==T&&C.length?C[C.length-1].push(T):C.push([T]),C},[]),h=[];if(n.length>1){var l=o(n[0]),c=null;"Z"==n[n.length-1][0]&&n[0].length>2&&(n[n.length-1]=c=["L",l.x,l.y]),h.push(n[0]);for(var d=1;d<n.length;d++){var f=h[h.length-1],g=n[d],p=g==c?n[1]:n[d+1];if(p&&f&&f.length>2&&"L"==g[0]&&p.length>2&&"L"==p[0]){var b,w,u=o(f),m=o(g),x=o(p);b=s(m,u,e),w=s(m,x,e),a(g,b),g.origPoint=m,h.push(g);var v=i(b,m,.5),A=i(m,w,.5),k=["C",v.x,v.y,A.x,A.y,w.x,w.y];k.origPoint=m,h.push(k)}else h.push(g)}if(c){var D=o(h[h.length-1]);h.push(["Z"]),a(h[0],D)}}else h=n;return h.reduce(function(C,T){return C+T.join(" ")+" "},"")}drawLine(t,e,s,i,a="#a8a8a8",o=0,r=null,n="butt"){return this.w.dom.Paper.line().attr({x1:t,y1:e,x2:s,y2:i,stroke:a,"stroke-dasharray":o,"stroke-width":r,"stroke-linecap":n})}drawRect(t=0,e=0,s=0,i=0,a=0,o="#fefefe",r=1,n=null,h=null,l=0){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!==n?n:0,stroke:null!==h?h:"none","stroke-dasharray":l}),d.node.setAttribute("fill",o),d}drawPolygon(t,e="#e1e1e1",s=1,i="none"){return this.w.dom.Paper.polygon(t).attr({fill:i,stroke:e,"stroke-width":s})}drawCircle(t,e=null){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:n=null,strokeDashArray:h=0}){const l=this.w;return null===n&&(n=l.config.stroke.lineCap),(t.indexOf("undefined")>-1||t.indexOf("NaN")>-1)&&(t=`M 0 ${l.layout.gridHeight}`),l.dom.Paper.path(t).attr({fill:i,"fill-opacity":a,stroke:e,"stroke-opacity":o,"stroke-linecap":n,"stroke-width":s,"stroke-dasharray":h,class:r})}group(t=null){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,n=!1){let h="A";return n&&(h="a"),[h,t,e,s,i,a,o,r].join(" ")}renderPaths({j:t,realIndex:e,pathFrom:s,pathTo:i,stroke:a,strokeWidth:o,strokeLinecap:r,fill:n,animationDelay:h,initialSpeed:l,dataChangeSpeed:c,className:d,chartType:f,shouldClipToGrid:g=!0,bindEventsOnPaths:p=!0,drawShadow:u=!0,drawMask:m=null}){var x,b;const w=this.w,v=new Q(this.w),A=new _t(this.w,null!=(x=this.ctx)?x:void 0),k=this.w.config.chart.animations.enabled,D=k&&this.w.config.chart.animations.dynamicAnimation.enabled;if(s&&s.startsWith("M 0 0 ")&&i){const j=i.match(/^M\s+[\d.-]+\s+[\d.-]+/);j&&(s=s.replace(/^M\s+0\s+0/,j[0]))}let C;const T=!!(k&&!w.globals.resized||D&&w.globals.dataChanged&&w.globals.shouldAnimate),M="string"==typeof d&&(d.indexOf("apexcharts-line")>-1||d.indexOf("apexcharts-area")>-1||d.indexOf("apexcharts-rangeArea")>-1||d.indexOf("apexcharts-radar")>-1),_=!(!k||w.globals.resized||w.globals.dataChanged||!M),E=null!=(b=w.config.chart.animations.largeDatasetThreshold)?b:0,O=!!(T&&!_&&E>0&&w.globals.dataPoints>E)||!("candlestick"!==f&&"boxPlot"!==f||!T||_||!w.globals.dataChanged);!T||_||O?(C=i,T||(w.globals.animationEnded=!0)):C=s;const G=w.config.stroke.dashArray;let I=0;I=Array.isArray(G)?G[e]:w.config.stroke.dashArray;const R=this.drawPath({d:C,stroke:a,strokeWidth:o,fill:n,fillOpacity:1,classes:d,strokeLinecap:r,strokeDashArray:I});R.attr("index",e),g&&R.attr("bar"===f&&!w.globals.isBarHorizontal||w.globals.comboCharts?{"clip-path":`url(#gridRectBarMask${w.globals.cuid})`}:{"clip-path":`url(#gridRectMask${w.globals.cuid})`}),w.config.chart.dropShadow.enabled&&u&&v.dropShadow(R,w.config.chart.dropShadow,e),p&&(R.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,R)),R.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,R)),R.node.addEventListener("mousedown",this.pathMouseDown.bind(this,R))),R.attr({pathTo:i,pathFrom:s});const U={el:R,j:t,realIndex:e,pathFrom:s,pathTo:i,fill:n,strokeWidth:o,delay:
1h};return!k||w.globals.resized||w.globals.dataChanged?(w.globals.resized||!w.globals.dataChanged)&&!O&&A.showDelayedElements():_?A.animateDraw(R,{realIndex:e,j:t,isFill:"none"===a||0===o,isLast:!!w.globals.comboCharts||e===w.seriesData.series.length-1,speed:2*l,delay:0,mask:m}):O||A.animatePathsGradually(V(B({},U),{speed:l})),w.globals.dataChanged&&D&&T&&!O&&A.animatePathsGradually(V(B({},U),{speed:c})),O&&A.revealBulk(R),R}drawPattern(t,e,s,i="#a8a8a8",a=0){return this.w.dom.Paper.pattern(e,s,n=>{"horizontalLines"===t?n.line(0,0,s,0).stroke({color:i,width:a+1}):"verticalLines"===t?n.line(0,0,0,e).stroke({color:i,width:a+1}):"slantedLines"===t?n.line(0,0,e,s).stroke({color:i,width:a}):"squares"===t?n.rect(e,s).fill("none").stroke({color:i,width:a}):"circles"===t&&n.circle(e).fill("none").stroke({color:i,width:a})})}drawGradient(t,e,s,i,a,o=null,r=null,n=[],h=0){const l=this.w;let c;e.length<9&&0===e.indexOf("#")&&(e=S.hexToRgba(e,i)),s.length<9&&0===s.indexOf("#")&&(s=S.hexToRgba(s,a));let d=0,f=1,g=1,p=null;null!==r&&(d=typeof r[0]<"u"?r[0]/100:0,f=typeof r[1]<"u"?r[1]/100:1,g=typeof r[2]<"u"?r[2]/100:1,p=typeof r[3]<"u"?r[3]/100:null);const u="donut"===l.config.chart.type||"pie"===l.config.chart.type||"polarArea"===l.config.chart.type||"bubble"===l.config.chart.type;return c=l.dom.Paper.gradient(u?"radial":"linear",n&&0!==n.length?m=>{(Array.isArray(n[h])?n[h]:n).forEach(b=>{m.stop(b.offset/100,b.color,b.opacity)})}:m=>{m.stop(d,e,i),m.stop(f,s,a),m.stop(g,s,a),null!==p&&m.stop(p,e,i)}),u?c.attr("bubble"!==l.config.chart.type?{gradientUnits:"userSpaceOnUse",cx:l.layout.gridWidth/2,cy:l.layout.gridHeight/2,r:o}:{cx:.5,cy:.5,r:.8,fx:.2,fy:.2}):"vertical"===t?c.from(0,0).to(0,1):"diagonal"===t?c.from(0,0).to(1,1):"horizontal"===t?c.from(0,1).to(1,1):"diagonal2"===t&&c.from(1,0).to(0,1),c}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:n,opacity:h,maxWidth:l,cssClass:c="",isPlainText:d=!0,dominantBaseline:f="auto"}){const g=this.w;typeof s>"u"&&(s="");let p=s;i||(i="start"),(!n||!n.length)&&(n=g.config.chart.foreColor),r=r||"regular";const u={maxWidth:l,fontSize:a=a||"11px",fontFamily:o=o||g.config.chart.fontFamily};let m;return Array.isArray(s)?m=g.dom.Paper.text(x=>{for(let b=0;b<s.length;b++)p=s[b],l&&(p=this.getTextBasedOnMaxWidth(B({text:s[b]},u))),0===b?x.tspan(p):x.tspan(p).newLine()}):(l&&(p=this.getTextBasedOnMaxWidth(B({text:s},u))),m=d?g.dom.Paper.plain(s):g.dom.Paper.text(x=>x.tspan(p))),m.attr({x:t,y:e,"text-anchor":i,"dominant-baseline":f,"font-size":a,"font-family":o,"font-weight":r,fill:n,class:"apexcharts-text "+c}),m.node.style.fontFamily=o,m.node.style.opacity=h,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 n=0;n<=2*o;n++){const h=n*r,l=n%2==0?i:i/2;a+=(0===n?"M":"L")+(t+l*Math.sin(h))+","+(e-l*Math.cos(h))}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 S.isNumber(e)||(i=0,e=0),this.drawMarkerShape(t,e,s?.shape,i,B(B({},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 Q(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),n=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);isNaN(r)||isNaN(n)||("function"==typeof a.config.chart.events.dataPointMouseEnter&&a.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}),L._fireEvent(a,"dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:n,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 Q(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),n=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);isNaN(r)||isNaN(n)||("function"==typeof a.config.chart.events.dataPointMouseLeave&&a.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:a}),L._fireEvent(a,"dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:n,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 Q(this.w),r=parseInt(null!=(s=t.node.getAttribute("index"))?s:"",10),n=parseInt(null!=(i=t.node.getAttribute("j"))?i:"",10);if(isNaN(r)||isNaN(n))return;let h="false";if("true"===t.node.getAttribute("selected")){t.node.setAttribute("selected","false");const l=a.interact.selectedDataPoints[r].indexOf(n);l>-1&&a.interact.selectedDataPoints[r].splice(l,1)}else{if(!a.config.states.active.allowMultipleDataPointsSelection&&a.interact.selectedDataPoints.length>0){a.interact.selectedDataPoints=[];const l=a.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),c=a.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),d=f=>{Array.prototype.forEach.call(f,g=>{g.node.setAttribute("selected","false"),o.getDefaultFilter(g,r)})};d(l),d(c)}t.node.setAttribute("selected","true"),h="true",typeof a.interact.selectedDataPoints[r]>"u"&&(a.interact.selectedDataPoints[r]=[]),a.interact.selectedDataPoints[r].push(n)}if("true"===h){const l=a.config.states.active.filter;"none"!==l?o.applyFilter(t,r,l.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:n,w:a}),e&&L._fireEvent(a,"dataPointSelection",[e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:n,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=L._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?L._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=L._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"),n=o.globals.textRectsCache;if(n&&n.has(r))return n.get(r);const h=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:s,foreColor:"#fff",opacity:0});i&&h.attr("transform",i),o.dom.Paper.add(h);let l=h.bbox();const c=l.y;a||(l=h.node.getBoundingClientRect()),h.remove();const d={width:l.width,height:l.height,centerOffset:a?c+l.height/2- -200:0};return n&&n.set(r,d),d}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 H="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)}
1clone(){return new J(this.x,this.y)}}class st{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 st(s,i,-i,s,0,0))}scale(t,e){return this.multiply(new st(t,0,0,e??t,0,0))}multiply(t){return new st(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}apply(t){return new J(this.a*t.x+this.c*t.y+this.e,this.b*t.x+this.d*t.y+this.f)}}class pe{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 Gt{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 n=0,h=0;typeof t.width>"u"&&typeof t.height>"u"?void 0!==s.fill.image.width&&void 0!==s.fill.image.height?(n=s.fill.image.width+1,h=s.fill.image.height):(n=o+1,h=o):(n=t.width,h=t.height);const l=F.createElementNS(H,"pattern");L.setAttrs(l,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:h+"px"});const c=F.createElementNS(H,"image");l.appendChild(c);const d=P.isBrowser()?window.SVG:global.SVG;c.setAttributeNS(d.xlink,"href",r),L.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:h+"px"}),c.style.opacity=t.opacity,e.dom.elDefs.node.appendChild(l)}getSeriesIndex(t){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 h of t)h>=e.threshold?(null===i||h>i)&&(i=h):(null===a||h<a)&&(a=h);null===i&&(i=e.threshold),null===a&&(a=e.threshold);let o=i-e.threshold+(e.threshold-a);0===o&&(o=1);let n=100-(e.threshold-a)/o*100;return n=Math.max(0,Math.min(n,100)),[{offset:n,color:e.colorAboveThreshold,opacity:s.config.fill.opacity},{offset:0,color:e.colorBelowThreshold,opacity:s.config.fill.opacity}]}fillPath(t){var e,s,i,a;const o=this.w;this.opts=t;const r=this.w.config;let n,h,l;this.seriesIndex=this.getSeriesIndex(t);const c=r.plotOptions.line.colors.colorAboveThreshold&&r.plotOptions.line.colors.colorBelowThreshold;let f=this.getFillColors()[this.seriesIndex];void 0!==o.seriesData.seriesColors[this.seriesIndex]&&(f=o.seriesData.seriesColors[this.seriesIndex]),"function"==typeof f&&(f=f({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:o}));const g=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"===g||c;t.color&&(f=t.color);const m=o.config.series[this.seriesIndex];null!=(s=null==(e=m?.data)?void 0:e[t.dataPointIndex])&&s.fillColor&&(f=null==(a=null==(i=m?.data)?void 0:i[t.dataPointIndex])?void 0:a.fillColor),f||(f="#fff",console.warn("undefined color - ApexCharts")),null!=t.opacity&&(p=t.opacity);let x=f;S.isCSSVariable(f)?x=S.applyOpacityToColor(f,p):-1===f.indexOf("rgb")?-1===f.indexOf("#")?x=f:f.length<9&&(x=S.hexToRgba(f,p)):f.indexOf("rgba")>-1?p=S.getOpacityFromRGBA(f):x=S.hexToRgba(S.rgb2hex(f),p);const b=S.isCSSVariable(f)?S.getThemeColor(f):f;if("pattern"===g&&(h=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:h,fillColor:b,defaultColor:x})),u){const w=r.fill.gradient.colorStops?[...r.fill.gradient.colorStops]:[];let v=r.fill.gradient.type;c&&(w[this.seriesIndex]=this.computeColorStops(o.seriesData.series[this.seriesIndex],r.plotOptions.line.colors),v="vertical"),l=this.handleGradientFill({type:v,fillConfig:t.fillConfig,fillColor:b,fillOpacity:p,colorStops:w,i:this.seriesIndex})}if("image"===g){const w=r.fill.image.src,A=`pattern${o.globals.cuid}${t.seriesNumber+1}${t.patternID?t.patternID:""}`;-1===this.patternIDs.indexOf(A)&&(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:A}),this.patternIDs.push(A)),n=`url(#${A})`}else n=u?l:"pattern"===g?h:x;return t.solid&&(n=x),n}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 L(this.w),n=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,h=s;return Array.isArray(a.pattern.style)?typeof a.pattern.style[o.seriesNumber]<"u"?r.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,h,n):i:r.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,h,n)}handleGradientFill({type:t,fillColor:e,fillOpacity:s,fillConfig:i,colorStops:a,i:o}){let r=this.w.config.fill;i&&(r=B(B({},r),i));const n=this.opts,h=new L(this.w),l=new S;t=t||r.gradient.type;let d,c=e,f=void 0===r.gradient.opacityFrom?s:Array.isArray(r.gradient.opacityFrom)?r.gradient.opacityFrom[o]:r.gradient.opacityFrom;c.indexOf("rgba")>-1&&(f=S.getOpacityFromRGBA(c));let g=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=l.shadeColor("dark"===r.gradient.shade?-1*parseFloat(r.gradient.shadeIntensity):parseFloat(r.gradient.shadeIntensity),e.indexOf("rgb")>-1?S.rgb2hex(e):e);else if(r.gradient.gradientToColors[n.seriesNumber]){const p=r.gradient.gradientToColors[n.seriesNumber];d=p,p.indexOf("rgba")>-1&&(g=S.getOpacityFromRGBA(p))}else d=e;if(r.gradient.gradientFrom&&(c=r.gradient.gradientFrom),r.gradient.gradientTo&&(d=r.gradient.gradientTo),r.gradient.inverseColors){const p=c;c=d,d=p}return c.indexOf("rgb")>-1&&(c=S.rgb2hex(c)),d.indexOf("rgb")>-1&&(d=S.rgb2hex(d)),h.drawGradient(t,c,d,f,g,n.size,r.gradient.stops,a,o)}}class Mt{constructor(t,e){this.w=t,this.ctx=e,this._filters=new Q(this.w),this._graphics=new L(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,n=e,h=t;let l=null;const c=new L(this.w),d=r.config.markers.discrete&&r.config.markers.discrete.length;if(Array.isArray(h.x))for(let f=0;f<h.x.length;f++){let g,p=s,u=!S.isNumber(h.y[f]);0===r.globals.markers.largestSize&&r.globals.hasNullValues&&null!==r.seriesData.series[n][s+1]&&!o&&(u=!0),1===s&&0===f&&(p=0),1===s&&1===f&&(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${S.randomId()}`);const b=this.getMarkerConfig({cssClass:m,seriesIndex:e,dataPointIndex:p}),w=r.config.series[n];w.data[p]&&(w.data[p].fillColor&&(b.pointFillColor=w.data[p].fillColor),w.data[p].strokeColor&&(b.pointStrokeColor=w.data[p].strokeColor)),typeof i<"u"&&(b.pSize=i),(h.x[f]<-r.globals.markers.largestSize||h.x[f]>r.layout.gridWidth+r.globals.markers.largestSize||h.y[f]<-r.globals.markers.largestSize||h.y[f]>r.layout.gridHeight+r.globals.markers.largestSize)&&(b.pSize=0),u||((r.globals.markers.size[e]>0||a||d)&&!l&&(l=c.group({class:a||d?"":"apexcharts-series-markers"}),l.attr("clip-path",`url(#gridRectMarkerMask${r.globals.cuid})`),this.setupMarkerDelegation(l)),g=c.drawMarker(h.x[f],h.y[f],b),g.attr("rel",p),g.attr("j",p),g.attr("index",e),g.node.setAttribute("default-marker-size",b.pSize),Tt(g,h.x[f],r),this._filters.setSelectionFilter(g,e,p),l&&l.add(g))}else typeof r.globals.pointsArray[e]>"u"&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([h.x[f],h.y[f]])}return l}getMarkerConfig({cssClass:t,seriesIndex:e,dataPointIndex:s=null,radius:i=null,size:a=null,strokeWidth:o=null}){const r=this.w,n=this.getMarkerStyle(e);let h=null===a?r.globals.markers.size[e]:a;const l=r.config.markers;return null!==s&&l.discrete.length&&l.discrete.map(c=>{c.seriesIndex===e&&c.dataPointIndex===s&&(n.pointStrokeColor=c.strokeColor,n.pointFillColor=c.fillColor,h=c.size,n.pointShape=c.shape)}),{pSize:null===i?h:i,pRadius:null!==i?i:l.radius,pointStrokeWidth:null!==o?o:Array.isArray(l.strokeWidth)?l.strokeWidth[e]:l.strokeWidth,pointStrokeColor:n.pointStrokeColor,pointFillColor:n.pointFillColor,shape:n.pointShape||(Array.isArray(l.shape)?l.shape[e]:l.shape),class:t,pointStrokeOpacity:Array.isArray(l.strokeOpacity)?l.strokeOpacity[e]:l.strokeOpacity,pointStrokeDashArray:Array.isArray(l.strokeDashArray)?l.strokeDashArray[e]:l.strokeDashArray,pointFillOpacity:Array.isArray(l.fillOpacity)?l.fillOpacity[e]:l.fillOpacity,seriesIndex:e}}setupMarkerDelegation(t){const e=this.w,s=".apexcharts-marker";this._graphics.setupEventDelegation(t,s),t.node.addEventListener("click",i=>{e.config.markers.onClick&&L._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onClick(i)}),t.node.addEventListener("dblclick",i=>{e.config.markers.onDblClick&&L._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onDblClick(i)}),t.node.addEventListener("touchstart",i=>{const a=L._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 ue{constructor(t,e){this.ctx=e,this.w=t,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new _t(this.w),this.filters=new Q(this.w),this.fill=new Gt(this.w),this.markers=new Mt(this.w,this.ctx),this.graphics=new L(this.w)}draw(t,e,s){const i=this.w,o=s.realIndex,r=s.pointsPos,n=s.zRatio,h=s.elParent,l=this.graphics.group({class:`apexcharts-series-markers apexcharts-series-${i.config.chart.type}`});if(l.attr("clip-path",`url(#gridRectMarkerMask${i.globals.cuid})`),this.markers.setupMarkerDelegation(l),Array.isArray(r.x))for(let c=0;c<r.x.length;c++){let d=e+1,f=!0;
10===e&&0===c&&(d=0),0===e&&1===c&&(d=1);let g=i.globals.markers.size[o];if(n!==1/0){const m=i.config.plotOptions.bubble;g=i.seriesData.seriesZ[o][d],m.zScaling&&(g/=n),m.minBubbleRadius&&g<m.minBubbleRadius&&(g=m.minBubbleRadius),m.maxBubbleRadius&&g>m.maxBubbleRadius&&(g=m.maxBubbleRadius)}const u=r.y[c];if(g=g||0,(null===u||typeof i.seriesData.series[o][d]>"u")&&(f=!1),f){const m=this.drawPoint(r.x[c],u,g,o,d,e);l.add(m)}h.add(l)}}drawPoint(t,e,s,i,a,o){var r,n;const h=this.w,l=i,c=this.anim,d=this.filters,f=this.fill,p=this.graphics,u=this.markers.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,radius:"bubble"===h.config.chart.type||h.globals.comboCharts&&h.config.series[i]&&"bubble"===h.config.series[i].type?s:null});let m=f.fillPath({seriesNumber:i,dataPointIndex:a,color:u.pointFillColor,patternUnits:"objectBoundingBox",value:h.seriesData.series[i][o]});const x=p.drawMarker(t,e,u),b=h.config.series[l];b.data[a]&&b.data[a].fillColor&&(m=b.data[a].fillColor);const w=null==(r=h.config.plotOptions.scatter)?void 0:r.jitter;if(w?.enabled&&w.distributed&&h.globals.colors.length){const v=Math.round(null==(n=h.seriesData.seriesX[i])?void 0:n[a]);isNaN(v)||(m=h.globals.colors[v%h.globals.colors.length])}if(x.attr({fill:m}),h.config.chart.dropShadow.enabled&&d.dropShadow(x,h.config.chart.dropShadow,i),!this.initialAnim||h.globals.dataChanged||h.globals.resized)h.globals.animationEnded=!0;else{const v=h.config.chart.animations,A=v.speed,D=v.animateGradually,T=D&&!1!==D.enabled?Math.min(20,.5*A/Math.max(1,h.globals.dataPoints||1)):0,M=ge({style:T>0?"sequential":"none",index:a,baseDelay:T});c.animatePop(x,{speed:A,delay:M,onComplete:()=>c.animationCompleted(x)})}return x.attr({rel:a,j:a,index:i,"default-marker-size":u.pSize}),d.setSelectionFilter(x,i,a),x.node.classList.add("apexcharts-marker"),x}centerTextInBubble(t){return{y:t+=parseInt(this.w.config.dataLabels.style.fontSize,10)/4}}}class Ut{constructor(t,e=null){this.w=t,this.ctx=e}dataLabelsCorrection(t,e,s,i,a,o,r){const n=this.w;let l=!1;const c=new L(this.w).getTextRects(s,r),d=c.width,f=c.height;if(e<0&&(e=0),e>n.layout.gridHeight+f&&(e=n.layout.gridHeight+f/2),typeof n.globals.dataLabelsRects[i]>"u"&&(n.globals.dataLabelsRects[i]=[]),n.globals.dataLabelsRects[i].push({x:t,y:e,width:d,height:f}),typeof n.globals.dataLabelsRects[i][n.globals.dataLabelsRects[i].length-2]<"u"){const u=n.globals.dataLabelsRects[i][typeof n.globals.lastDrawnDataLabelsIndexes[i]<"u"?n.globals.lastDrawnDataLabelsIndexes[i][n.globals.lastDrawnDataLabelsIndexes[i].length-1]:0];(t>u.x+u.width||e>u.y+u.height||e+f<u.y||t+d<u.x)&&(l=!0)}return(0===a||o)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}drawDataLabel({type:t,pos:e,i:s,j:i,isRangeStart:a,strokeWidth:o=2}){const r=this.w,n=new L(this.w),h=r.config.dataLabels;let l=0,c=0,d=i,f=null;if(-1!==r.globals.collapsedSeriesIndices.indexOf(s)||!h.enabled||!Array.isArray(e.x))return f;f=n.group({class:"apexcharts-data-labels"});for(let p=0;p<e.x.length;p++)if(l=e.x[p]+h.offsetX,c=e.y[p]+h.offsetY+o,!isNaN(l)){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),c=e.y[p],c=new ue(this.w,this.ctx).centerTextInBubble(c).y):typeof u<"u"&&(m=x(u));let b=r.config.dataLabels.textAnchor;r.globals.isSlopeChart&&(b=0===d?"end":d===r.config.series[s].data.length-1?"start":"middle"),this.plotDataLabelsText({x:l,y:c,text:m,i:s,j:d,parent:f,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels,textAnchor:b})}return f}plotDataLabelsText(t){const e=this.w,s=new L(this.w);let{x:i,y:a,i:o,j:r,text:n,textAnchor:h,fontSize:l,parent:c,dataLabelsConfig:d,color:f,alwaysDrawDataLabel:g,offsetCorrection:p,className:u}=t,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,n,o,r,g,parseInt(d.style.fontSize,10).toString())),e.interact.zoomed||(i=x.x,a=x.y),x.textRects){const A=e.globals.barPadForNumericAxis||
10;(i<-(A+20)-x.textRects.width||i>e.layout.gridWidth+x.textRects.width+A+30)&&(n="")}let b=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)&&(b=e.globals.dataLabels.style.colors[r]),"function"==typeof b&&(b=b({series:e.seriesData.series,seriesIndex:o,dataPointIndex:r,w:e})),f&&(b=f);let w=d.offsetX,v=d.offsetY;if(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&(w=0,v=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"===h&&i===e.layout.gridWidth&&(h="end"),m=s.drawText({x:i+w,y:a+v,foreColor:b,textAnchor:h||d.textAnchor,text:n,fontSize:l||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 A=d.dropShadow;new Q(this.w).dropShadow(m,A)}c.add(m),Tt(m,i,e),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,n=e.height,l=new L(this.w).drawRect(e.x-a,e.y-o/2,r+2*a,n+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 Q(this.w).dropShadow(l,i.dropShadow),l}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 n=e.config.dataLabels.background.backgroundColor||a.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?r.attr({fill:n}):r.animate().attr({fill:n}),a.setAttribute("fill",e.config.dataLabels.background.foreColor);const l=a.getAttribute("cx");null!==l&&Tt(r,parseFloat(l),e)}}}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 Lt{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 nt{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 n=this.w,h=typeof t[i]>"u"?"":t[i];let l=h;const c=n.formatters.xLabelFormatter,d=n.config.xaxis.labels.formatter,f=new dt(this.w);r&&(l=f.xLabelFormat(c,h,h,{i,dateFormatter:new Z(this.w).formatDate,w:n}),void 0!==d&&(l=d(h,t[i],{i,dateFormatter:new Z(this.w).formatDate,w:n}))),e.length>0?(s=e[i].position,l=e[i].value):"datetime"===n.config.xaxis.type&&void 0===d&&(l=""),typeof l>"u"&&(l=""),l=Array.isArray(l)?l:l.toString();const p=new L(this.w);let u={};u=n.layout.rotateXLabels&&r?p.getTextRects(l,parseInt(o,10).toString(),null,`rotate(${n.config.xaxis.labels.rotate} 0 0)`,!1):p.getTextRects(l,parseInt(o,10).toString());const m=!n.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(l)&&("NaN"===String(l)||a.indexOf(l)>=0&&m)&&(l=""),{x:s,text:l,textRect:u}}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,147 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 K(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 n=this.w,h=new L(this.w);let l=n.layout.translateY+n.config.yaxis[a].labels.offsetY;if(n.globals.isBarHorizontal?l=0:"heatmap"===n.config.chart.type&&(l+=o/2),i.show&&e>0){!0===n.config.yaxis[a].opposite&&(t+=i.width);for(let c=e;c>=0;c--){const d=h.drawLine(t+s.offsetX-i.width+i.offsetX,l+i.offsetY,t+s.offsetX+i.offsetX,l+i.offsetY,i.color);r.add(d),l+=o}}}}class pt{constructor(t,e,s){this.w=t,this.ctx=e,this.elgrid=s,this.axesUtils=new nt(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 L(this.w),s=e.group({class:"apexcharts-xaxis",transform:`translate(${t.config.xaxis.offsetX}, ${t.config.xaxis.offsetY})`}),i=e.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});s.add(i);let a=[];for(let o=0;o<this.xaxisLabels.length;o++)a.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,i,a,t.axisFlags.isXNumeric,(o,r)=>r),t.labelData.hasXaxisGroups){const o=t.labelData.groups;a=[];for(let n=0;n<o.length;n++)a.push(o[n].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,(n,h)=>o[n].cols*h,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={}){var n,h;const l=[],c=[],d=this.w,f=r.xaxisFontSize||this.xaxisFontSize,g=r.xaxisFontFamily||this.xaxisFontFamily,p=r.xaxisForeColors||this.xaxisForeColors,u=r.fontWeight||d.config.xaxis.labels.style.fontWeight,m=r.cssClass||d.config.xaxis.labels.style.cssClass;let x,b=d.globals.padHorizontal;const w=i.length;let v="category"===d.config.xaxis.type?d.globals.dataPoints:w;if(0===v&&w>v&&(v=w),a){const A=Math.max(Number(d.config.xaxis.tickAmount)||1,v>1?v-1:v);x=d.layout.gridWidth/Math.min(A,w-1),b=b+o(0,x)/2+d.config.xaxis.labels.offsetX}else x=d.layout.gridWidth/v,b=b+o(0,x)+d.config.xaxis.labels.offsetX;for(let A=0;A<=w-1;A++){let k=b-o(A,x)/2+d.config.xaxis.labels.offsetX;0===A&&1===w&&x/2===b&&1===v&&(k=d.layout.gridWidth/2);let D=this.axesUtils.getLabel(i,d.labelData.timescaleLabels,k,A,l,f,t),C=28;d.layout.rotateXLabels&&t&&(C=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(C+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(C=C+parseFloat(f)+(d.layout.xAxisLabelsHeight-d.layout.xAxisGroupLabelsHeight)+(d.layout.rotateXLabels?10:0)),D=typeof d.config.xaxis.tickAmount<"u"&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?this.axesUtils.checkLabelBasedOnTickamount(A,D,w):this.axesUtils.checkForOverflowingLabels(A,D,w,l,c);const M=()=>t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+A-1]:p[A],E=(null!=(h=null==(n=D.textRect)?void 0:n.width)?h:0)/2;if(d.config.xaxis.labels.show&&!(D.x+E<0)){const N=e.drawText({x:D.x,y:this.offY+d.config.xaxis.labels.offsetY+C-("top"===d.config.xaxis.position?d.layout.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:D.text,textAnchor:"middle",fontWeight:u,fontSize:f,fontFamily:g,foreColor:Array.isArray(p)?M():p,isPlainText:!1,
vendor: 8,871 bytes, line 1
1cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(s.add(N),N.on("click",z=>{if("function"==typeof d.config.chart.events.xAxisLabelClick){const O=Object.assign({},d,{labelIndex:A});d.config.chart.events.xAxisLabelClick(z,this.ctx,O)}}),t){const z=F.createElementNS(H,"title");z.textContent=Array.isArray(D.text)?D.text.join(" "):D.text,N.node.appendChild(z),""!==D.text&&(l.push(D.text),c.push(D))}}A<w-1&&(b+=o(A+1,x))}}drawXaxisInversed(t){const e=this.w,s=new L(this.w),i=e.config.yaxis[0].opposite?e.globals.translateYAxisX[t]:0,a=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),o=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+i+", 0)"});a.add(o);const r=[];if(e.config.yaxis[t].show)for(let g=0;g<this.xaxisLabels.length;g++)r.push(this.xaxisLabels[g]);const n=e.layout.gridHeight/r.length;let h=-n/2.2;const l=e.formatters.yLabelFormatters[0],c=e.config.yaxis[0].labels;if(c.show)for(let g=0;g<=r.length-1;g++){let p=typeof r[g]>"u"?"":r[g];p=l(p,{seriesIndex:t,dataPointIndex:g,w:e});const u=this.axesUtils.getYAxisForeColor(c.style.colors,t),m=()=>Array.isArray(u)?u[g]:u;let x=0;Array.isArray(p)&&(x=p.length/2*parseInt(c.style.fontSize,10));let b=c.offsetX-15,w="end";this.yaxis.opposite&&(w="start"),"left"===e.config.yaxis[0].labels.align?(b=c.offsetX,w="start"):"center"===e.config.yaxis[0].labels.align?(b=c.offsetX,w="middle"):"right"===e.config.yaxis[0].labels.align&&(w="end");const v=s.drawText({x:b,y:h+n+c.offsetY-x,text:p,textAnchor:w,foreColor:m(),fontSize:c.style.fontSize,fontFamily:c.style.fontFamily,fontWeight:c.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+c.style.cssClass,maxWidth:c.maxWidth});o.add(v),v.on("click",k=>{if("function"==typeof e.config.chart.events.xAxisLabelClick){const D=Object.assign({},e,{labelIndex:g});e.config.chart.events.xAxisLabelClick(k,this.ctx,D)}});const A=F.createElementNS(H,"title");if(A.textContent=Array.isArray(p)?p.join(" "):p,v.node.appendChild(A),0!==e.config.yaxis[t].labels.rotate){const k=s.rotateAroundCenter(v.node);v.node.setAttribute("transform",`rotate(${e.config.yaxis[t].labels.rotate} 0 ${k.y})`)}h+=n}if(void 0!==e.config.yaxis[0].title.text){const g=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+i+", 0)"}),p=s.drawText({x:e.config.yaxis[0].title.offsetX,y:e.layout.gridHeight/2+e.config.yaxis[0].title.offsetY,text:e.config.yaxis[0].title.text,textAnchor:"middle",foreColor:e.config.yaxis[0].title.style.color,fontSize:e.config.yaxis[0].title.style.fontSize,fontWeight:e.config.yaxis[0].title.style.fontWeight,fontFamily:e.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[0].title.style.cssClass});g.add(p),a.add(g)}let d=0;this.isCategoryBarHorizontal&&e.config.yaxis[0].opposite&&(d=e.layout.gridWidth);const f=e.config.xaxis.axisBorder;if(f.show){const g=s.drawLine(e.globals.padHorizontal+f.offsetX+d,1+f.offsetY,e.globals.padHorizontal+f.offsetX+d,e.layout.gridHeight+f.offsetY,f.color,0);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(g):a.add(g)}return e.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(d,r.length,e.config.yaxis[0].axisBorder,e.config.yaxis[0].axisTicks,0,n,a),a}drawXaxisTicks(t,e,s){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 n=new L(this.w).drawLine(t+i.config.xaxis.axisTicks.offsetX,o+i.config.xaxis.offsetY,a+i.config.xaxis.axisTicks.offsetX,e+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);s.add(n),n.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){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 L(this.w),o=i.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),n=i.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),h=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(i.layout.rotateXLabels||i.config.xaxis.labels.rotateAlways)for(let l=0;l<r.length;l++){const c=a.rotateAroundCenter(r[l]);c.y=c.y-1,c.x=c.x+1,r[l].setAttribute("transform",`rotate(${i.config.xaxis.labels.rotate} ${c.x} ${c.y})`),r[l].setAttribute("text-anchor","end"),o?.setAttribute("transform","translate(0, -10)"),i.config.xaxis.labels.trim&&Array.prototype.forEach.call(r[l].childNodes,f=>{a.placeTextWithEllipsis(f,f.textContent,i.layout.xAxisLabelsHeight-("bottom"===i.config.legend.position?20:10))})}else{const l=i.layout.gridWidth/(i.labelData.labels.length+1);for(let c=0;c<r.length;c++)i.config.xaxis.labels.trim&&"datetime"!==i.config.xaxis.type&&Array.prototype.forEach.call(r[c].childNodes,f=>{a.placeTextWithEllipsis(f,f.textContent,l)})}if(n.length>0){const l=n[n.length-1].getBBox(),c=n[0].getBBox();l.x<-20&&(null==(t=n[n.length-1].parentNode)||t.removeChild(n[n.length-1])),c.x+c.width>i.layout.gridWidth&&!i.globals.isBarHorizontal&&(null==(e=n[0].parentNode)||e.removeChild(n[0]));for(let d=0;d<h.length;d++)a.placeTextWithEllipsis(h[d],null!=(s=h[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 Vt{constructor(t,e){this.w=t,this.ctx=e,this.xaxisLabels=t.labelData.labels.slice(),this.axesUtils=new nt(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 L(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 L(this.w),i=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width,a=c=>{const d=F.createElementNS(H,"clipPath");return d.setAttribute("id",c),d};t.dom.elGridRectMask=a(`gridRectMask${e.cuid}`),t.dom.elGridRectBarMask=a(`gridRectBarMask${e.cuid}`),t.dom.elGridRectMarkerMask=a(`gridRectMarkerMask${e.cuid}`),t.dom.elForecastMask=a(`forecastMask${e.cuid}`),t.dom.elNonForecastMask=a(`nonForecastMask${e.cuid}`);let r=0,n=0;(["bar","rangeBar","candlestick","boxPlot","violin"].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),n=Math.max(t.config.grid.padding.right,e.barPadForNumericAxis)),t.dom.elGridRect=s.drawRect(-i/2-2,-i/2-2,t.layout.gridWidth+i+4,t.layout.gridHeight+i+4,0,"#fff"),t.dom.elGridRectBar=s.drawRect(-i/2-r-2,-i/2-2,t.layout.gridWidth+i+n+r+4,t.layout.gridHeight+i+4,0,"#fff");const h=t.globals.markers.largestSize;t.dom.elGridRectMarker=s.drawRect(Math.min(-i/2-r-2,-h),-h,t.layout.gridWidth+Math.max(i+n+r+4,2*h),t.layout.gridHeight+2*h,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 l=t.dom.elDefs.node;l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}_drawGridLines({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){const n=this.w;if(!(0===t&&n.globals.skipFirstTimelinelabel||t===o-1&&n.globals.skipLastTimelinelabel&&!n.config.xaxis.labels.formatter||"radar"===n.config.chart.type)){n.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r});let l=0;if(n.labelData.hasXaxisGroups&&"between"===n.config.xaxis.tickPlacement){const d=n.labelData.groups;if(d){let f=0;for(let g=0;f<t&&g<d.length;g++)f+=d[g].cols;f===t&&(l=.6*n.layout.xAxisLabelsHeight)}}new pt(this.w,this.ctx).drawXaxisTicks(e,l,n.dom.elGraphical)}}_drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:o,parent:r}){const n=this.w,h=r.node.classList.contains("apexcharts-gridlines-h
1orizontal"),l=n.globals.barPadForNumericAxis,c=0===s&&0===a||0===e&&0===i||s===n.layout.gridHeight&&a===n.layout.gridHeight||n.globals.isBarHorizontal&&(0===t||t===o-1),f=new L(this.w).drawLine(e-(h?l:0),s,i+(h?l:0),a,n.config.grid.borderColor,n.config.grid.strokeDashArray);f.node.classList.add("apexcharts-gridline"),c&&n.config.grid.show?this.elGridBorders.add(f):r.add(f)}_drawGridBandRect({c:t,x1:e,y1:s,x2:i,y2:a,type:o}){const r=this.w,n=new L(this.w),h=r.globals.barPadForNumericAxis,c=n.drawRect(e-("row"===o?h:0),s,i+("row"===o?2*h:0),a,0,r.config.grid[o].colors[t],r.config.grid[o].opacity);this.elg.add(c),c.attr("clip-path",`url(#gridRectMask${r.globals.cuid})`),c.node.classList.add(`apexcharts-grid-${o}`)}_drawXYLines({xCount:t,tickAmount:e}){var s;const i=this.w,a=({xC:r,y1:h,y2:c})=>{for(let d=0;d<r;d++)this._drawGridLines({i:d,x1:this.xaxisLabels[d].position,y1:h,x2:this.xaxisLabels[d].position,y2:c,xCount:t,parent:this.elgridLinesV})},o=({xC:r,x1:n,y1:h,x2:l,y2:c})=>{for(let d=0;d<r+(i.axisFlags.isXNumeric?0:1);d++)0===d&&1===r&&1===i.globals.dataPoints&&(l=n=i.layout.gridWidth/2),this._drawGridLines({i:d,x1:n,y1:h,x2:l,y2:c,xCount:t,parent:this.elgridLinesV}),l=n+=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,n=0;let h;const l=i.layout.gridHeight;i.labelData.timescaleLabels.length?a({xC:t,x1:r,y1:n,x2:h,y2:l}):(i.axisFlags.isXNumeric&&(t=null==(s=i.globals.xAxisScale)?void 0:s.result.length),o({xC:t,x1:r,y1:n,x2:h,y2:l}))}if(i.config.grid.yaxis.lines.show){let n=0,h=0;const l=i.layout.gridWidth;let c=e+1;this.isRangeBar&&(c=i.labelData.labels.length);for(let d=0;d<c+(this.isRangeBar?1:0);d++)this._drawGridLine({i:d,xCount:c+(this.isRangeBar?1:0),x1:0,y1:n,x2:l,y2:h,parent:this.elgridLinesH}),n+=i.layout.gridHeight/(this.isRangeBar?c:e),h=n}}_drawInvertedXYLines({xCount:t}){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 pt(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 L(this.w);this.elg=o.group({class:"apexcharts-grid"}),this.elgridLinesH=o.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=o.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=o.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),i.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let r=0;for(;r<a.seriesYAxisMap.length&&a.ignoreYAxisIndexes.includes(r);)r++;r===a.seriesYAxisMap.length&&(r=0);let h,n=a.yAxisScale[r].result.length-1;return!a.isBarHorizontal||this.isRangeBar?(h=this.xaxisLabels.length,this.isRangeBar&&(n=i.labelData.labels.length,i.config.xaxis.tickAmount&&i.config.xaxis.labels.formatter&&(h=i.config.xaxis.tickAmount),(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&&(h=a.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:h,tickAmount:n})):(h=n,n=a.xTickAmount,this._drawInvertedXYLines({xCount:h,tickAmount:n})),this.drawGridBands(h,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.layout.gridWidth/h}}drawGridBands(t,e){var s,i,a,o,r;const n=this.w;if((null==(s=n.config.grid.row.colors)?void 0:s.length)>0&&((l,c,d,f,g,p)=>{for(let u=0,m=0;u<c;u++,m++)m>=n.config.grid.row.colors.length&&(m=0),this._drawGridBandRect({c:m,x1:0,y1:f,x2:g,y2:p,type:"row"}),f+=n.layout.gridHeight/e})(0,e,0,0,n.layout.gridWidth,n.layout.gridHeight/e),(null==(i=n.config.grid.column.colors)?void 0:i.length)>0){let l=n.globals.isBarHorizontal||"on"!==n.config.xaxis.tickPlacement||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?t:t-1;n.axisFlags.isXNumeric&&(l=(null!=(o=null==(a=n.globals.xAxisScale)?void 0:a.result.length)?o:1)-1);let c=n.globals.padHorizontal;const d=0;let f=n.globals.padHorizontal+n.layout.gridWidth/l;const g=n.layout.gridHeight;for(let p=0,u=0;p<t;p++,u++)u>=n.config.grid.column.colors.length&&(u=0),"datetime"===n.config.xaxis.type&&(c=this.xaxisLabels[p].position,f=((null==(r=this.xaxisLabels[p+1])?void 0:r.position)||n.layout.gridWidth)-this.xaxisLabels[p].position),this._drawGri
1dBandRect({c:u,x1:c,y1:d,x2:f,y2:g,type:"column"}),c+=n.layout.gridWidth/l}}}class xe{constructor(t){this.w=t,this.coreUtils=new K(this.w)}niceScale(t,e,s=0){const a=this.w,o=a.globals;let r,n,h,l;o.isBarHorizontal?(r=a.config.xaxis,n=Math.max((o.svgWidth-100)/25,2)):(r=a.config.yaxis[s],n=Math.max((o.svgHeight-100)/15,2)),S.isNumber(n)||(n=10),h=null!=r.min,l=void 0!==r.max&&null!==r.min;let c=null!=r.stepSize,d=null!=r.tickAmount,f=d?r.tickAmount:Dt[Math.min(Math.round(n/2),Dt.length-1)];if(o.isMultipleYAxis&&!d&&o.multiAxisTickAmount>0&&(f=o.multiAxisTickAmount,d=!0),f="dataPoints"===f?o.dataPoints-1:Math.abs(Math.round(f)),(t===Number.MIN_VALUE&&0===e||!S.isNumber(t)&&!S.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=S.isNumber(r.min)?r.min:0,e=S.isNumber(r.max)?r.max:t+f,o.allSeriesCollapsed=!1),t>e){console.warn("axis.min cannot be greater than axis.max: swapping min and max");const _=e;e=t,t=_}else t===e&&(t=0===t?0:t-1,e=0===e?2:e+1);const g=[];f<1&&(f=1);let p=f,u=Math.abs(e-t);!h&&t>0&&t/u<.15&&(t=0,h=!0),!l&&e<0&&-e/u<.15&&(e=0,l=!0),u=Math.abs(e-t);let x=u/p,b=x;const w=Math.floor(Math.log10(b)),v=Math.pow(10,w);let A=Math.ceil(b/v);if(A=Ot[0===o.yValueDecimal?0:1][A],b=A*v,x=b,o.isBarHorizontal&&r.stepSize&&"datetime"!==r.type?(x=r.stepSize,c=!0):c&&(x=r.stepSize),c&&r.forceNiceScale){const _=Math.floor(Math.log10(x));x*=Math.pow(10,w-_)}if(h&&l){let _=u/p;if(d)if(c)if(0!=S.mod(u,x)){const E=S.getGCD(x,_);x=_/E<10?E:_}else 0==S.mod(x,_)?x=_:(_=x,d=!1);else x=_;else if(c)0==S.mod(u,x)?_=x:x=_;else if(0==S.mod(u,x))_=x;else{p=Math.ceil(u/x),_=u/p;const E=S.getGCD(u,x);u/E<n&&(_=E),x=_}p=Math.round(u/x)}else{if(h||l){if(l)if(d)t=e-x*p;else{const _=t;t=x*Math.floor(t/x),Math.abs(e-t)/S.getGCD(u,x)>n&&(t=e-x*f,t+=x*Math.floor((_-t)/x))}else if(h)if(d)e=t+x*p;else{const _=e;e=x*Math.ceil(e/x),Math.abs(e-t)/S.getGCD(u,x)>n&&(e=t+x*f,e+=x*Math.ceil((_-e)/x))}}else if(o.isMultipleYAxis&&d){const _=x*Math.floor(t/x);let E=_+x*p;E<e&&(x*=2),E=e,e=(t=_)+x*p,u=Math.abs(e-t),t>0&&t<Math.abs(E-e)&&(t=0,e=x*p),e<0&&-e<Math.abs(_-t)&&(e=0,t=-x*p)}else t=x*Math.floor(t/x),e=x*Math.ceil(e/x);u=Math.abs(e-t),x=S.getGCD(u,x),p=Math.round(u/x)}if(!d&&!(h||l)&&(p=Math.ceil((u-1e-11)/(x+1e-11)),p>16&&S.getPrimeFactors(p).length<2&&p++),!d&&r.forceNiceScale&&0===o.yValueDecimal&&p>u&&(p=u,x=Math.round(u/p)),p>n&&(!d&&!c||r.forceNiceScale)){const _=S.getPrimeFactors(p),E=_.length-1;let X=p;t:for(var k=0;k<E;k++)for(var D=0;D<=E-k;D++){const N=Math.min(D+k,E);let z=X,O=1;for(var C=D;C<=N;C++)O*=_[C];if(z/=O,z<n){X=z;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 T=t-x;const M=1e-11*x;do{T+=x,g.push(S.stripNumber(T,7))}while(e-T>M);return{result:g,niceMin:g[0],niceMax:g[g.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 n=s;if(a||(a=o/n),0!==a&&isFinite(a)){const d=Math.floor(Math.log10(Math.abs(a))),f=Math.max(2,2-d),g=Math.pow(10,f);a=Math.round((a+Number.EPSILON)*g)/g}let l=s===Number.MAX_VALUE?5:n;s===Number.MAX_VALUE&&(a=1);let c=t;for(;l>=0;)r.push(c),c=S.preciseAddition(c,a),l-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}logarithmicScaleNice(t,e,s){e<=0&&(e=Math.max(t,s)),t<=0&&(t=Math.min(e,s));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,n=Math.round(r),h=r/n;for(let l=0,c=o;l<n;l++,c+=h)i.push(Math.pow(s,c));return i.push(Math.pow(s,a)),{result:i,niceMin:t,niceMax:e}}_adjustTicksForSmallRange(t,e,s){let i=t;if(typeof e<"u"&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){const a=Number(this.w.config.yaxis[e].labels.formatter(1));S.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&&S.isNumber(s)&&e!==Number.MAX_VALUE&&S.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&&S.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,o=[],r=!e.isBarHorizontal;
vendor: 4,504 bytes, line 1
1if(e.allSeriesCollapsed=!0,e.barGroups=[],s.forEach((n,h)=>{const l=[];if(n.forEach(c=>{var d;const f=null==(d=t.series[c])?void 0:d.group;l.indexOf(f)<0&&l.push(f)}),n.length>0){let p,u,c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=c,g=d;if(t.chart.stacked){const b=new Array(e.dataPoints).fill(0),w=[],v=[],A=[];l.forEach(()=>{w.push(b.map(()=>Number.MIN_VALUE)),v.push(b.map(()=>Number.MIN_VALUE)),A.push(b.map(()=>Number.MIN_VALUE))});for(let k=0;k<n.length;k++){!p&&t.series[n[k]].type&&(p=t.series[n[k]].type);const D=n[k];u=t.series[D].group?t.series[D].group:"axis-".concat(h.toString()),!(e.collapsedSeriesIndices.indexOf(D)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(D)<0)||(e.allSeriesCollapsed=!1,l.forEach((T,M)=>{if(t.series[D].group===T)for(let _=0;_<this.w.seriesData.series[D].length;_++){const E=this.w.seriesData.series[D][_];E>=0?v[M][_]+=E:A[M][_]+=E,w[M][_]+=E,f=Math.min(f,E),g=Math.max(g,E)}})),("bar"===p||"column"===p)&&e.barGroups.push(u)}p||(p=t.chart.type),"bar"===p||"column"===p?l.forEach((k,D)=>{c=Math.min(c,Math.min.apply(null,A[D])),d=Math.max(d,Math.max.apply(null,v[D]))}):(l.forEach((k,D)=>{f=Math.min(f,Math.min.apply(null,w[D])),g=Math.max(g,Math.max.apply(null,w[D]))}),c=f,d=g),c===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}else for(let b=0;b<n.length;b++){const w=n[b];c=Math.min(c,i[w]),d=Math.max(d,a[w]),!(e.collapsedSeriesIndices.indexOf(w)<0&&e.ancillaryCollapsedSeriesIndices.indexOf(w)<0)||(e.allSeriesCollapsed=!1)}void 0!==t.yaxis[h].min&&(c="function"==typeof t.yaxis[h].min?t.yaxis[h].min(c):t.yaxis[h].min),void 0!==t.yaxis[h].max&&(d="function"==typeof t.yaxis[h].max?t.yaxis[h].max(d):t.yaxis[h].max),e.barGroups=e.barGroups.filter((b,w,v)=>v.indexOf(b)===w);const m=t.yaxis[h];r&&!0===m.alignZero&&!m.logarithmic&&void 0===m.min&&void 0===m.max&&e.ignoreYAxisIndexes.indexOf(h)<0&&S.isNumber(c)&&S.isNumber(d)?o.push({ai:h,minY:c,maxY:d}):(this.setYScaleForIndex(h,c,d),n.forEach(b=>{i[b]=e.yAxisScale[h].niceMin,a[b]=e.yAxisScale[h].niceMax}))}else this.setYScaleForIndex(h,0,-Number.MAX_VALUE)}),o.length>=2){o.forEach(l=>{this.setYScaleForIndex(l.ai,l.minY,l.maxY),s[l.ai].forEach(c=>{i[c]=e.yAxisScale[l.ai].niceMin,a[c]=e.yAxisScale[l.ai].niceMax})});let n=0;o.forEach(l=>{const c=e.yAxisScale[l.ai],d=c.niceMax-c.niceMin;if(d>0){const f=-c.niceMin/d;f>n&&(n=f)}}),n>1&&(n=1),n<0&&(n=0);const h=l=>{if(l<=0)return 1;const c=Math.floor(Math.log10(l)),d=Math.pow(10,c),f=l/d;let g;return g=f<=1+1e-9?1:f<=2+1e-9?2:f<=2.5+1e-9?2.5:f<=5+1e-9?5:10,g*d};o.forEach(l=>{const c=e.yAxisScale[l.ai];if(!c.result||c.result.length<2)return;const d=c.niceMax-c.niceMin;if(d<=0)return;const f=-c.niceMin/d;if(Math.abs(f-n)<=1e-9)return;const g=f<n&&n<1-1e-9,p=!g&&f>n&&n>1e-9;if(!g&&!p)return;const u=g?-n*c.niceMax/(1-n):c.niceMin,m=p?-c.niceMin*(1-n)/n:c.niceMax,x=m-u;if(x<=0)return;const b=Math.max(c.result.length,5),w=h(x/Math.max(b-1,1));if(w<=0)return;let v,A;if(g){v=Math.floor(u/w+1e-9)*w;const D=Math.max(n>1e-9?v*(n-1)/n:c.niceMax,c.niceMax);A=Math.ceil(D/w-1e-9)*w}else{A=Math.ceil(m/w-1e-9)*w;const D=Math.min(n<1-1e-9?-n*A/(1-n):c.niceMin,c.niceMin);v=Math.floor(D/w+1e-9)*w}c.result=[];for(let k=v;k<=A+1e-9*w;k=S.preciseAddition(k,w))c.result.push(S.stripNumber(k,7));c.niceMin=v,c.niceMax=A,s[l.ai].forEach(k=>{i[k]=c.niceMin,a[k]=c.niceMax})})}else if(1===o.length){const n=o[0];this.setYScaleForIndex(n.ai,n.minY,n.maxY),s[n.ai].forEach(h=>{i[h]=e.yAxisScale[n.ai].niceMin,a[h]=e.yAxisScale[n.ai].niceMax})}}}class Et{constructor(t){this.w=t,this.scales=new xe(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}getMinYMaxY(t,e=Number.MAX_VALUE,s=-Number.MAX_VALUE,i=null){var a,o,r,n,h,l,c,d;const f=this.w.config,g=this.w.globals;let p=-Number.MAX_VALUE,u=Number.MIN_VALUE;null===i&&(i=t+1);const m=this.w.seriesData.series;let x=m,b=m;"candlestick"===f.chart.type?(x=this.w.candleData.seriesCandleL,b=this.w.candleData.seriesCandleH):"boxPlot"===f.chart.type?(x=this.w.candleData.seriesCandleO,b=this.w.candleData.seriesCandleC):"violin"===f.chart.type?(x=this.w.violinData.seriesViolinMin,b=this.w.violinData.seriesViolinMax):this.w.axisFlags.isRangeData&&(x=this.w.rangeData.seriesRangeStart,b=this.w.rangeData.seriesRangeEnd);let w=!1;if(this.w.seriesData.seriesX.length>=i){const v=null==(a=g.brushSource)?void 0:a.w.config.chart.brush;(f.chart.zoom.enabled&&f.chart.zoom.autoScaleYaxis||v?.enabled&&v?.autoScaleYaxis)&&(w=!0)}for(let v=t;v<i;v++){g.dataPoints=Math.max(g.dataPoints,m[v].length);
1const A=f.series[v].type;this.w.labelData.categoryLabels.length&&(g.dataPoints=this.w.labelData.categoryLabels.filter(C=>typeof C<"u").length),this.w.labelData.labels.length&&"datetime"!==f.xaxis.type&&0!==this.w.seriesData.series.reduce((C,T)=>C+T.length,0)&&(g.dataPoints=Math.max(g.dataPoints,this.w.labelData.labels.length));let k=0,D=m[v].length-1;if(w){if(f.xaxis.min)for(;k<D&&this.w.seriesData.seriesX[v][k]<f.xaxis.min;k++);if(f.xaxis.max)for(;D>k&&this.w.seriesData.seriesX[v][D]>f.xaxis.max;D--);}for(let C=k;C<=D&&C<this.w.seriesData.series[v].length;C++){let T=m[v][C];if(null!==T&&S.isNumber(T)){switch(typeof(null==(o=b[v])?void 0:o[C])<"u"&&(p=Math.max(p,b[v][C]),e=Math.min(e,b[v][C])),typeof(null==(r=x[v])?void 0:r[C])<"u"&&(e=Math.min(e,x[v][C]),s=Math.max(s,x[v][C])),A){case"candlestick":typeof this.w.candleData.seriesCandleC[v][C]<"u"&&(p=Math.max(p,this.w.candleData.seriesCandleH[v][C]),e=Math.min(e,this.w.candleData.seriesCandleL[v][C]));break;case"boxPlot":typeof this.w.candleData.seriesCandleC[v][C]<"u"&&(p=Math.max(p,this.w.candleData.seriesCandleC[v][C]),e=Math.min(e,this.w.candleData.seriesCandleO[v][C]));break;case"violin":typeof(null==(n=this.w.violinData.seriesViolinMax[v])?void 0:n[C])<"u"&&(p=Math.max(p,this.w.violinData.seriesViolinMax[v][C]),e=Math.min(e,this.w.violinData.seriesViolinMin[v][C]))}if(A&&"candlestick"!==A&&"boxPlot"!==A&&"violin"!==A&&"rangeArea"!==A&&"rangeBar"!==A&&(p=Math.max(p,this.w.seriesData.series[v][C]),e=Math.min(e,this.w.seriesData.series[v][C])),this.w.seriesData.seriesGoals[v]&&this.w.seriesData.seriesGoals[v][C]&&Array.isArray(this.w.seriesData.seriesGoals[v][C])&&this.w.seriesData.seriesGoals[v][C].forEach(M=>{p=Math.max(p,M.value),e=Math.min(e,M.value)}),"boxPlot"===this.w.config.chart.type||"boxPlot"===A){const M=null==(l=null==(h=this.w.candleData.seriesBoxPoints)?void 0:h[v])?void 0:l[C];if(M)for(let _=0;_<M.length;_++){const E=M[_];"number"==typeof E&&(p=Math.max(p,E),e=Math.min(e,E))}}s=p,T=S.noExponents(T),S.isFloat(T)&&(g.yValueDecimal=Math.max(g.yValueDecimal,T.toString().split(".")[1].length)),u>(null==(c=x[v])?void 0:c[C])&&(null==(d=x[v])?void 0:d[C])<0&&(u=x[v][C])}else g.hasNullValues=!0}("bar"===A||"column"===A)&&(u<0&&p<0&&(p=0,s=Math.max(s,0)),u===Number.MIN_VALUE&&(u=0,e=Math.min(e,0)))}return"rangeBar"===f.chart.type&&this.w.rangeData.seriesRangeStart.length&&g.isBarHorizontal&&(u=e),"bar"===f.chart.type&&(u<0&&p<0&&(p=0),u===Number.MIN_VALUE&&(u=0)),{minY:u,maxY:p,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||"violin"===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.forEac
1h(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]&&S.isNumber(this.w.labelData.labels[a][o])&&(t.maxX=Math.max(t.maxX,this.w.labelData.labels[a][o]),t.initialMaxX=Math.max(t.maxX,this.w.labelData.labels[a][o]),t.minX=Math.min(t.minX,this.w.labelData.labels[a][o]),t.initialMinX=Math.min(t.minX,this.w.labelData.labels[a][o]))})(),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.noLabelsProvided&&this.w.labelData.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,a-1,0,e.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());s&&(this.w.labelData.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&this.w.labelData.labels.length&&(t.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}setZRange(){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]&&S.isNumber(this.w.seriesData.seriesZ[e][s])&&(t.maxZ=Math.max(t.maxZ,this.w.seriesData.seriesZ[e][s]),t.minZ=Math.min(t.minZ,this.w.seriesData.seriesZ[e][s]))}_handleSingleDataPoint(){const t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){const s=new Z(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)=>
1i-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,n)=>a.indexOf(this.w.seriesData.seriesNames[n])>-1?n:null).filter(r=>null!==r).forEach(r=>{var n,h,l,c;for(let d=0;d<this.w.seriesData.series[t.maxValsInArrayIndex].length;d++)typeof s[a][d]>"u"&&(s[a][d]=0,i[a][d]=0),(this.w.config.chart.stacked&&!t.comboCharts||this.w.config.chart.stacked&&t.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(h=null==(n=this.w.config.series)?void 0:n[r])?void 0:h.type)||"column"===(null==(c=null==(l=this.w.config.series)?void 0:l[r])?void 0:c.type)))&&null!==this.w.seriesData.series[r][d]&&S.isNumber(this.w.seriesData.series[r][d])&&(this.w.seriesData.series[r][d]>0?s[a][d]+=parseFloat(String(this.w.seriesData.series[r][d]))+1e-4:i[a][d]+=parseFloat(String(this.w.seriesData.series[r][d])))})}),Object.entries(s).forEach(([a])=>{s[a].forEach((o,r)=>{t.maxY=Math.max(t.maxY,s[a][r]),t.minY=Math.min(t.minY,i[a][r])})})}}function Ft(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}class Pt{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 nt(t,{theme:e,timeScale:s})}drawYaxis(t){const e=this.w,s=new L(this.w),i=e.config.yaxis[t].labels.style,{fontSize:a,fontFamily:o,fontWeight:r}=i,n=s.group({class:"apexcharts-yaxis",rel:t,transform:`translate(${e.globals.translateYAxisX[t]}, 0)`});if(this.axesUtils.isYAxisHidden(t))return n;const h=s.group({class:"apexcharts-yaxis-texts-g"});n.add(h);const l=e.globals.yAxisScale[t].result.length-1,c=e.layout.gridHeight/l,d=e.formatters.yLabelFormatters[t],f=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());if(e.config.yaxis[t].labels.show){let g=e.layout.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?g=0:"heatmap"===e.config.chart.type&&(g-=c/2),g+=parseInt(a,10)/3;let p=null;for(let u=l;u>=0;u--){const m=d(f[u],u,e);let x=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(x*=-1);const b=this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite),w=this.axesUtils.getYAxisForeColor(i.colors,t),v=Array.isArray(w)?w[u]:w,A=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-label tspan`)).map(D=>D.textContent),k=s.drawText({x,y:g,text:A.includes(m)&&!e.config.yaxis[t].labels.showDuplicates?"":m,textAnchor:b,fontSize:a,fontFamily:o,fontWeight:r,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:v,isPlainText:!1,
vendor: 4,779 bytes, line 1
1cssClass:`apexcharts-yaxis-label ${i.cssClass}`});h.add(k),this.addTooltip(k,m),null===p&&(p=k),0!==e.config.yaxis[t].labels.rotate&&this.rotateLabel(s,k,p,e.config.yaxis[t].labels.rotate),g+=c}}return this.addYAxisTitle(s,n,t),this.addAxisBorder(s,n,t,l,c),n}getTextAnchor(t,e){return"left"===t?"start":"center"===t?"middle":"right"===t?"end":e?"start":"end"}addTooltip(t,e){const s=F.createElementNS(H,"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 n=31+r.offsetX;if(o.config.yaxis[s].opposite&&(n=-31-r.offsetX),r.show){const h=t.drawLine(n,o.layout.translateY+r.offsetY-2,n,o.layout.gridHeight+o.layout.translateY+r.offsetY+2,r.color,0,r.width);e.add(h)}o.config.yaxis[s].axisTicks.show&&this.axesUtils.drawYAxisTicks(n,i,r,o.config.yaxis[s].axisTicks,s,a,e)}drawYaxisInversed(t){const e=this.w,s=new L(this.w),i=s.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=s.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});i.add(a);let o=e.globals.yAxisScale[t].result.length-1;const r=e.layout.gridWidth/o+.1;let n=r+e.config.xaxis.labels.offsetX;const h=e.formatters.xLabelFormatter;let l=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());const c=e.labelData.timescaleLabels;if(c.length>0&&(this.xaxisLabels=c.slice(),l=c.slice(),o=l.length),e.config.xaxis.labels.show)for(let d=c.length?0:o;c.length?d<c.length:d>=0;c.length?d++:d--){let f=h?.(l[d],d,e),g=e.layout.gridWidth+e.globals.padHorizontal-(n-r+e.config.xaxis.labels.offsetX);if(c.length){const u=this.axesUtils.getLabel(l,c,g,d,this.drawnLabels,this.xaxisFontSize);g=u.x,f=u.text,this.drawnLabels.push(u.text),0===d&&e.globals.skipFirstTimelinelabel&&(f=""),d===l.length-1&&e.globals.skipLastTimelinelabel&&(f="")}const p=s.drawText({x:g,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:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${e.config.xaxis.labels.style.cssClass}`});a.add(p),this.addTooltip(p,f),n+=r}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}inversedYAxisBorder(t){const e=this.w,s=new L(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 L(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 L(this.w),a=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),o=a?a.getBoundingClientRect():{width:0,height:0},r=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-title text`),n=r?r.getBoundingClientRect():{width:0,height:0};if(r){const h=this.xPaddingForYAxisTitle(t,o,n,e);r.setAttribute("x",String(h.xPos-(e?10:0)));
vendor: 9,816 bytes, line 1
1const l=i.rotateAroundCenter(r);r.setAttribute("transform",`rotate(${e?-1*s.config.yaxis[t].title.rotate:s.config.yaxis[t].title.rotate} ${l.x} ${l.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((n,h)=>{const l=s.globals.ignoreYAxisIndexes.includes(h)||!n.show||n.floating||0===t[h].width,c=t[h].width+e[h].width;n.opposite?s.globals.isBarHorizontal?(a=s.layout.gridWidth+s.layout.translateX-1,s.globals.translateYAxisX[h]=a-n.labels.offsetX):(a=s.layout.gridWidth+s.layout.translateX+r,l||(r+=c+20),s.globals.translateYAxisX[h]=a-n.labels.offsetX+20):(i=s.layout.translateX-o,l||(o+=c+20),s.globals.translateYAxisX[h]=i+n.labels.offsetX)})}setYAxisTextAlignments(){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`)),n=o.getBoundingClientRect();r.forEach(h=>{h.setAttribute("text-anchor",a.labels.align)}),"left"!==a.labels.align||a.opposite?"center"===a.labels.align?o.setAttribute("transform",`translate(${n.width/2*(a.opposite?1:-1)}, 0)`):"right"===a.labels.align&&a.opposite&&o.setAttribute("transform",`translate(${n.width}, 0)`):o.setAttribute("transform",`translate(-${n.width}, 0)`)}})}}class me{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"),n=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,n),e.ctx.events.fireEvent("keydown",[a,e,n])):"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,n),e.ctx.events.fireEvent("keyup",[a,e,n])):"mousemove"===a.type||"touchmove"===a.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(a,e,n):"mouseleave"===a.type||"touchleave"===a.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(a,e,n):("mouseup"===a.type&&1===a.which||"touchend"===a.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(a,e,n),e.ctx.events.fireEvent("click",[a,e,n]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(i=>{t.dom.baseEl.addEventListener(i,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(t){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 be{constructor(t){this.w=t}setCurrentLocaleValues(t){let e=this.w.config.chart.locales;const s=P.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=S.extend(le,i);this.w.globals.locale=a.options}}}class ye{constructor(t,e){this.w=t,this.ctx=e}drawAxis(t,e){const s=this.w.globals,i=this.w.config,a=new pt(this.w,this.ctx,e),o=new Pt(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},e);if(s.axisCharts&&"radar"!==t){let r,n;s.isBarHorizontal?(n=o.drawYaxisInversed(0),r=a.drawXaxisInversed(0),this.w.dom.elGraphical.add(r),this.w.dom.elGraphical.add(n)):(r=a.drawXaxis(),this.w.dom.elGraphical.add(r),i.yaxis.map((h,l)=>{if(-1===s.ignoreYAxisIndexes.indexOf(l)&&(n=o.drawYaxis(l),this.w.dom.Paper.add(n),"back"===this.w.config.grid.position)){const c=this.w.dom.Paper.children()[1];c&&(c.remove(),this.w.dom.Paper.add(c))}}))}}}class Xt{constructor(t){this.w=t}drawXCrosshairs(){const t=this.w,e=new L(this.w),s=new Q(this.w),i=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,f=a.enabled,g=a.left,p=a.top,u=a.blur,m=a.color,x=a.opacity;let b=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===t.config.xaxis.crosshairs.fill.type&&(b=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 v=t.layout.gridHeight;(!S.isNumber(v)||v<0)&&(v=0);let A=t.config.xaxis.crosshairs.width;(!S.isNumber(A)||Number(A)<0)&&(A=0),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:A,height:v,fill:b,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}),f&&(w=s.dropShadow(w,{left:g,top:p,blur:u,color:m,opacity:x})),t.dom.elGraphical.add(w)}}drawYCrosshairs(){const t=this.w,e=new L(this.w),s=t.config.yaxis[0].crosshairs,i=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){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)}}function we(y,t){if(!S.isObject(y)||!S.isObject(t))return void 0!==t?t:y;const e=B({},y);for(const s of Object.keys(t)){const i=t[s];void 0!==i&&(e[s]=S.isObject(i)&&S.isObject(y[s])?we(y[s],i):i)}return e}class ve{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,n)=>r.breakpoint>n.breakpoint?1:n.breakpoint>r.breakpoint?-1:0).reverse();const a=new gt({}),o=(r={})=>{var n;const h=i[0].breakpoint,l=P.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(l>h){if(null!==this._activeBreakpoint){if(!e.globals.initialConfig)return;const c=S.clone(e.globals.initialConfig);c.series=S.clone(e.config.series);const d=K.extendArrayProps(a,c,e);r=S.extend(d,r),this.overrideResponsiveOptions(r),this._activeBreakpoint=null}}else for(let c=0;c<i.length;c++)if(l<i[c].breakpoint){const d=null!=(n=i[c].options)&&n.yaxis?S.clone(i[c].options.yaxis):null;if(r=K.extendArrayProps(a,i[c].options,e),r=S.extend(e.config,r),Array.isArray(e.config.yaxis)&&d){const f=Array.isArray(d)?d:[d];r=V(B({},r),{yaxis:e.config.yaxis.map((g,p)=>we(g,f[p]))})}this.overrideResponsiveOptions(r),this._activeBreakpoint=i[c].breakpoint}};if(t){let r=K.extendArrayProps(a,t,e);r=S.extend(e.config,r),r=S.extend(r,t),o(r)}else o({})}overrideResponsiveOptions(t){const e=new gt(t).init({responsiveOverride:!0});this.w.config=e}}class et{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='${S.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){et.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=S.clone(o.globals.initialSeries);o.globals.previousPaths=[],s?(o.globals.collapsedSeries=[],o.globals.ancillaryCollapsedSeries=[],o.globals.collapsedSeriesIndices=[],o.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),o.config.series=r,t&&(e&&(o.interact.zoomed=!1,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 n=null,h=null,l=null;s.globals.axisCharts||"radialBar"===s.config.chart.type?s.globals.axisCharts?(n=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${a}']`),h=s.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${a}']`),l=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${s.globals.seriesYAxisReverseMap[a]}']`)):n=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}']`):n=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}'] path`);for(let c=0;c<r.length;c++)r[c].classList.add(this.legendInactiveClass);if(n){if(!s.globals.axisCharts){const c=n.parentNode;c?.classList.remove(this.legendInactiveClass)}n.classList.remove(this.legendInactiveClass),null!==h&&h.classList.remove(this.legendInactiveClass),null!==l&&l.classList.remove(this.legendInactiveClass)}else for(let c=0;c<r.length;c++)r[c].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=n=>{for(let h=0;h<i.length;h++){const l=i[h].classList;"function"==typeof l[n]&&l[n](this.legendInactiveClass)}};if("reset"===e)return void a("remove");const o=s.config.plotOptions.heatmap.colorScale.ranges,r=o&&o[t];if(r){a("add");for(let n=0;n<i.length;n++){const h=Number(i[n].getAttribute("val"));h>=r.from&&h<=r.to&&i[n].classList.remove(this.legendInactiveClass)}}}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;if(!a.globals.axisCharts)return void(a.globals.previousPaths=a.seriesData.series);function o(l,c,d){const f=l[c].childNodes,g={type:d,paths:[],realIndex:l[c].getAttribute("data:realIndex")};for(let p=0;p<f.length;p++)if(f[p].hasAttribute("pathTo")){const u=f[p].getAttribute("pathTo");g.paths.push({d:u})}a.globals.previousPaths.push(g)}a.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(l=>{const c=(l=>a.dom.baseEl.querySelectorAll(`.apexcharts-${l}-series .apexcharts-series`))(l);for(let d=0;d<c.length;d++)o(c,d,l)});const h=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series`);
vendor: 5,023 bytes, line 1
1if(h.length>0)for(let l=0;l<h.length;l++){const c=a.dom.baseEl.querySelectorAll(`.apexcharts-${a.config.chart.type} .apexcharts-series[data\\:realIndex='${l}'] rect`),d=[];for(let f=0;f<c.length;f++){const g=u=>c[f].getAttribute(u),p={x:parseFloat(null!=(t=g("x"))?t:"0"),y:parseFloat(null!=(e=g("y"))?e:"0"),width:parseFloat(null!=(s=g("width"))?s:"0"),height:parseFloat(null!=(i=g("height"))?i:"0")};d.push({rect:p,color:c[f].getAttribute("color")})}a.globals.previousPaths.push(d)}}clearPreviousPaths(){const t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}handleNoData(){const t=this.w,s=t.config.noData,i=new L(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 n=i.drawText({x:a,y:o,text:s.text,textAnchor:r,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,foreColor:s.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});t.dom.Paper.add(n)}}setNullSeriesToZeroValues(t){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 Ae{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 S;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,n=1/(r/a);let h=0;return Array.from({length:r},()=>{const l=s.shadeColor("dark"===o?-1*h:h,i);return h+=n,l})}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","#00A86F","#CA8501","#FF4560","#846DD5"]).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","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return e[this.w.config.theme.palette]||e.palette1}}class Se{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 n=new L(this.w).drawText({x:i,y:a,text:s.text,textAnchor:o,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,fontWeight:s.style.fontWeight,foreColor:s.style.color,opacity:1});n.node.setAttribute("class",`apexcharts-${t}-text`),e.dom.Paper.add(n)}}}class Ce{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({},S.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,n)=>{r.data.forEach((h,l)=>{const d=t.config.dataLabels.formatter(t.seriesData.series[n][l],{seriesIndex:n,dataPointIndex:l,w:t});e.push(d)})});const s=S.getLargestStringFromArr(e),i=new L(this.w),a=t.config.dataLabels.style,o=i.getTextRects(s,parseInt(a.fontSize).toString(),a.fontFamily);return{width:1.05*o.width,height:o.height}}getLargestStringFromMultiArr(t,e){let i=t;if(this.w.axisFlags.isMultiLineX){const a=e.map(n=>Array.isArray(n)?n.length:1),o=Math.max(...a);i=e[a.indexOf(o)]}return i}}class ke{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: 4,099 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=S.getLargestStringFromArr(e),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,e);t.globals.isBarHorizontal&&(a=t.globals.yAxisScale[0].result.reduce((d,f)=>d.length>f.length?d:f,0),o=a);const r=new dt(this.w),n=a;a=r.xLabelFormat(i,a,n,{i:void 0,dateFormatter:new Z(this.w).formatDate,w:t}),o=r.xLabelFormat(i,o,n,{i:void 0,dateFormatter:new Z(this.w).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&typeof a>"u"||""===String(a).trim())&&(a="1",o=a);const h=new L(this.w);let l=h.getTextRects(a,t.config.xaxis.labels.style.fontSize),c=l;if(a!==o&&(c=h.getTextRects(o,t.config.xaxis.labels.style.fontSize)),s={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},s.width*e.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.layout.rotateXLabels=!0;const d=f=>h.getTextRects(f,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,`rotate(${t.config.xaxis.labels.rotate} 0 0)`,!1);l=d(a),a!==o&&(c=d(o)),s.height=(l.height>c.height?l.height:c.height)/1.5,s.width=l.width>c.width?l.width:c.width}}else t.layout.rotateXLabels=!1}return t.config.xaxis.labels.show||(s={width:0,height:0}),{width:s.width,height:s.height}}getxAxisGroupLabelsCoords(){var t;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(c=>c.title);let a;const o=S.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i),n=new L(this.w),h=n.getTextRects(o,s);let l=h;return o!==r&&(l=n.getTextRects(r,s)),a={width:h.width>=l.width?h.width:l.width,height:h.height>=l.height?h.height:l.height},e.config.xaxis.labels.show||(a={width:0,height:0}),{width:a.width,height:a.height}}getxAxisTitleCoords(){const t=this.w;let e=0,s=0;if(void 0!==t.config.xaxis.title.text){const a=new L(this.w).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,s=a.height}return{width:e,height:s}}getxAxisTimeScaleLabelsCoords(){const t=this.w;this.dCtx.timescaleLabels=t.labelData.timescaleLabels.slice();const e=this.dCtx.timescaleLabels.map(r=>r.value),s=e.reduce((r,n)=>typeof r>"u"?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>n.length?r:n,0),a=new L(this.w).getTextRects(s,t.config.xaxis.labels.style.fontSize);return 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,h=c=>{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<-(c.show&&!c.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type&&"violin"!==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((c,d)=>{r?(this.dCtx.gridPad.left<o&&(this.dCtx.xPadLeft=o/2+1),this.dCtx.xPadRight=o/2+1):((c,d)=>{i.yaxis.length>1&&(c=>
1-1!==s.collapsedSeriesIndices.indexOf(c))(d)||h(c)})(c,d)})}}class De{constructor(t){this.w=t.w,this.dCtx=t}getyAxisLabelsCoords(){const t=this.w,i=[];let a=10;const o=new nt(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return t.config.yaxis.map((r,n)=>{const h={seriesIndex:n,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[n];let c=0;if(!o.isYAxisHidden(n)&&r.labels.show&&void 0!==r.labels.minWidth&&(c=r.labels.minWidth),!o.isYAxisHidden(n)&&r.labels.show&&l.result.length){const d=t.formatters.yLabelFormatters[n];let g=l.result.reduce((w,v)=>{var A,k;return(null==(A=String(d(w,h)))?void 0:A.length)>(null==(k=String(d(v,h)))?void 0:k.length)?w:v},l.niceMin===Number.MIN_VALUE?0:l.niceMin);g=d(g,h);let p=g;if((typeof g>"u"||0===g.length)&&(g=l.niceMax),1===String(g).length&&(g+=".0",p=g),t.globals.isBarHorizontal){a=0;const w=t.labelData.labels.slice();g=S.getLargestStringFromArr(w),g=d(g,{seriesIndex:n,dataPointIndex:-1,w:t}),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(g,w)}const u=new L(this.w),m="rotate(".concat(r.labels.rotate," 0 0)"),x=u.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1);let b=x;g!==p&&(b=u.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1)),i.push({width:(c>b.width||c>x.width?c:b.width>x.width?b.width:x.width)+a,height:b.height>x.height?b.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 L(this.w),a="rotate(".concat(s.title.rotate," 0 0)"),o=i.getTextRects(s.title.text,s.title.style.fontSize,s.title.style.fontFamily,a,!1);e.push({width:o.width,height:o.height})}else e.push({width:0,height:0})}),e}getTotalYAxisWidth(){const t=this.w;let e=0,s=0,i=0;const a=t.globals.yAxisScale.length>1?10:0,o=new nt(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),n=(h,l)=>{const c=t.config.yaxis[l].floating;let d=0;h.width>0&&!c?(d=h.width+a,function(h){return t.globals.ignoreYAxisIndexes.indexOf(h)>-1}(l)&&(d=d-h.width-a)):d=c||o.isYAxisHidden(l)?0:5,t.config.yaxis[l].opposite?i+=d:s+=d,e+=d};return t.layout.yLabelsCoords.map((h,l)=>{n(h,l)}),t.layout.yTitleCoords.map((h,l)=>{n(h,l)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.layout.yLabelsCoords[0].width+t.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=s,this.dCtx.yAxisWidthRight=i,e}}class Te{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=c=>["bar","rangeBar","candlestick","boxPlot","violin"].includes(c),o=s.chart.type;let r=0,n=a(o)?s.series.length:1;i.comboBarCount>0&&(n=i.comboBarCount),i.collapsedSeries.forEach(c=>{a(c.type)&&(n-=1)}),s.chart.stacked&&(n=1);const h=a(o)||i.comboBarCount>0;let l=Math.abs(i.initialMaxX-i.initialMinX);if(h&&e.axisFlags.isXNumeric&&!i.isBarHorizontal&&n>0&&0!==l){l<=3&&(l=i.dataPoints);const c=l/t;let d=i.minXDiff&&i.minXDiff/c>0?i.minXDiff/c:0;d>t/2&&(d/=2),r=d*parseInt(s.plotOptions.bar.columnWidth,10)/100,r<1&&(r=1),i.barPadForNumericAxis=r}return r}gridPadFortitleSubtitle(){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 nt(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 $t{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 Ce(this),this.dimYAxis=new De(this),this.dimXAxis=new ke(this),this.dimGrid=new Te(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>
10)&&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((f,g)=>{t.layout.yLabelsCoords.push({width:s[g].width,index:g}),t.layout.yTitleCoords.push({width:i[g].width,index:g})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();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 n=this.yAxisWidth,h=this.xAxisHeight;t.layout.xAxisLabelsHeight=this.xAxisHeight-r.height,t.layout.xAxisGroupLabelsHeight=t.layout.xAxisLabelsHeight-a.height,t.layout.xAxisLabelsWidth=this.xAxisWidth,t.layout.xAxisHeight=this.xAxisHeight;let l=10;("radar"===t.config.chart.type||this.isSparkline)&&(n=0,h=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(n=0,h=0,l=0),!this.isSparkline&&"treemap"!==t.config.chart.type&&this.dimXAxis.additionalPaddingXLabels(a);const c=()=>{t.layout.translateX=n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-this.lgRect.height-h-(this.isSparkline||"treemap"===t.config.chart.type?0:t.layout.rotateXLabels?10:15),t.layout.gridWidth=e.svgWidth-n-2*this.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(l=t.layout.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":t.layout.translateY=l,c();break;case"top":t.layout.translateY=this.lgRect.height+l,c();break;case"left":t.layout.translateY=l,t.layout.translateX=this.lgRect.width+n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-h-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-n-2*this.datalabelsCoords.width;break;case"right":t.layout.translateY=l,t.layout.translateX=n+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-h-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-n-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,s),new Pt(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 n=t.dom.elWrap.getBoundingClientRect().width;return t.layout.gridWidth=Math.min(n,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:Ht)+(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 c=0,d=0;i.config.yaxis.forEach(f=>{c+=f.labels.minWidth,d+=f.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}}
1const yt=6e4,wt=60*yt,ut=24*wt,_e=7*ut,qt=30*ut,lt=365*ut,ds=10/86400,jt=[{unit:"second",step:1,approxMs:1e3},{unit:"second",step:5,approxMs:5e3},{unit:"second",step:15,approxMs:15e3},{unit:"second",step:30,approxMs:3e4},{unit:"minute",step:1,approxMs:yt},{unit:"minute",step:5,approxMs:5*yt},{unit:"minute",step:15,approxMs:15*yt},{unit:"minute",step:30,approxMs:30*yt},{unit:"hour",step:1,approxMs:wt},{unit:"hour",step:3,approxMs:3*wt},{unit:"hour",step:6,approxMs:6*wt},{unit:"hour",step:12,approxMs:12*wt},{unit:"day",step:1,approxMs:ut},{unit:"day",step:2,approxMs:2*ut},{unit:"week",step:1,approxMs:_e},{unit:"week",step:2,approxMs:2*_e},{unit:"month",step:1,approxMs:qt},{unit:"month",step:3,approxMs:3*qt},{unit:"month",step:6,approxMs:6*qt},{unit:"year",step:1,approxMs:lt},{unit:"year",step:2,approxMs:2*lt},{unit:"year",step:5,approxMs:5*lt},{unit:"year",step:10,approxMs:10*lt},{unit:"year",step:25,approxMs:25*lt},{unit:"year",step:50,approxMs:50*lt},{unit:"year",step:100,approxMs:100*lt}];class Le{constructor(t,e){this.w=t,this.ctx=e,this.tickInterval=null,this.timeScaleArray=[],this.utc=t.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(t,e){const s=this.w;if(s.globals.allSeriesCollapsed)return s.labelData.labels=[],s.labelData.timescaleLabels=[],this.timeScaleArray=[],[];const i=e-t,a=i/ut;s.interact.disableZoomIn=!1,s.interact.disableZoomOut=!1,a<ds?s.interact.disableZoomIn=!0:a>5e4&&(s.interact.disableZoomOut=!0);const o=Number.isFinite(s.config.xaxis.tickAmount)?s.config.xaxis.tickAmount:10;this.tickInterval=function fs(y,t){if((!Number.isFinite(t)||t<=0)&&(t=10),y<=0)return jt[0];const e=y/t;let s=jt[0],i=1/0;for(const a of jt){const o=Math.abs(Math.log(a.approxMs/e));o<i&&(i=o,s=a)}return s}(i,o);const r=this.generateBaseTicks(t,e,this.tickInterval);return this.timeScaleArray=r,r}generateBaseTicks(t,e,s){const i=this.w,a=new Z(i),o=this.utc,r=i.layout.gridWidth,n=e-t,h=[];let l=a.ceilToBoundary(t,s.unit,s.step,o),c=0;for(;l<=e&&c<5e3;){const f=a.getDateFields(l,o);h.push({timestamp:l,position:n>0?(l-t)/n*r:0,unit:s.unit,year:f.year,month:f.month+1,day:f.date,hour:f.hour,minute:f.minute,second:f.second,value:l}),l=a.addInterval(l,s.unit,s.step,o),c++}return h}recalcDimensionsBasedOnFormat(t){const e=this.w,s=this.formatDates(t),i=this.removeOverlappingTS(s);e.labelData.timescaleLabels=i.slice();const o=new $t(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(o.layout)}formatDates(t){const e=this.w,s=new Z(e),o=this.utc,r=(h,l=2)=>String(h).padStart(l,"0"),n=e.config.xaxis.labels.format||this._effectiveFormat(t,e.config.xaxis.labels.datetimeFormatter);return t.map(h=>{const l=s.getDate(h.timestamp),c=s.formatDate(l,n);return{dateString:`${h.year}-${r(h.month)}-${r(h.day)}T${r(h.hour)}:${r(h.minute)}:${r(h.second)}.000${o?"Z":""}`,position:h.position,value:c,unit:h.unit,year:h.year,month:h.month}})}_effectiveFormat(t,e){if(0===t.length)return e.day||"dd MMM";const s=this.tickInterval&&this.tickInterval.unit||t[0].unit,i=e["week"===s?"day":s]||e.day||"dd MMM",a=t[0],o=t[t.length-1],r=a.year!==o.year,h=r||a.month!==o.month||a.day!==o.day,l=/y/i.test(i),c=/M/.test(i),d=/d/i.test(i);return"month"===s||"week"===s||"day"===s?r&&!l?i+" yyyy":i:"hour"!==s&&"minute"!==s&&"second"!==s||!h||d||c?i:(r?"dd MMM yyyy":"dd MMM")+" "+i}removeOverlappingTS(t){if(0===t.length)return[];const e=this.w,s=new L(e);let a,i=!1;t[0].value&&t.every(n=>n.value.length===t[0].value.length)&&(i=!0,a=s.getTextRects(t[0].value,e.config.xaxis.labels.style.fontSize).width);let o=0;return t.map((n,h)=>{if(0===h||!e.config.xaxis.labels.hideOverlappingLabels)return n;const l=i?a:s.getTextRects(t[o].value,e.config.xaxis.labels.style.fontSize).width;return n.position>t[o].position+l+10?(o=h,n):null}).filter(n=>null!==n)}}const Zt="__apexcharts_registry__";function Ee(){return globalThis[Zt]}function Fe(y){Object.assign(Ee(),y)}function q(y){const t=Ee()[y];if(!t)throw new Error(`ApexCharts: chart type "${y}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return t}globalThis[Zt]||(globalThis[Zt]={});class Pe{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","violin","scatter","bubble"],a=[...i,"radar","heatmap","treemap"];t.axisCharts=a.includes(s),t.xyCharts=i.includes(s),t.isBarHorizontal=["bar","rangeBar","boxPlot","violin"].includes(s)&&e.plotOptions.bar.horizontal,t.chartClass=`.apexcharts${t.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=F.createElementNS("http://www.w3.org/1999/xhtml","div"),L.setAttrs(this.w.dom.elWrap,{id:t.chartClass.substring(1),class:`apexcharts-canvas ${t.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);const o=globalThis.SVG;if(this.w.dom.Paper=o().addTo(this.w.dom.elWrap),this.w.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:`translate(${e.chart.offsetX}, ${e.chart.offsetY})`}),this.w.dom.Paper.node.style.background="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(H,"foreignObject"),L.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),this.w.dom.elLegendWrap=F.createElementNS("http://www.w3.org/1999/xhtml","div"),this.w.dom.elLegendWrap.classList.add("apexcharts-legend"),this.w.dom.elWrap.appendChild(this.w.dom.elLegendWrap),this.w.dom.Paper.node.appendChild(this.w.dom.elLegendForeign),e.chart.accessibility.enabled&&e.chart.accessibility.announcements.enabled){const r=F.createElement("div");r.className="apexcharts-sr-status",r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),this.w.dom.elWrap.appendChild(r)}if(e.chart.accessibility.enabled){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 h=F.createElementNS(H,"desc");h.textContent=e.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(h,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),this.w.dom.elDefs=this.w.dom.Paper.defs(),this.w.dom.Paper.add(this.w.dom.elGraphical),this.w.dom.elGraphical.add(this.w.dom.elDefs)}plotChartType(t,e){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:[]},violin:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},n=a.chart.type||"line";let h=null,l=0;this.w.seriesData.series.forEach((w,v)=>{var A,k;const D="column"===(null==(A=t[v])?void 0:A.type)?"bar":(null==(k=t[v])?void 0:k.type)||("column"===n?"bar":n),C=r;C[D]?("rangeArea"===D?(C[D].series.push(this.w.rangeData.seriesRangeStart[v]),C[D].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[v])):C[D].series.push(w),C[D].i.push(v),"bar"===D&&(s.globals.columnSeries=r.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(D)?h=D:console.warn(`You have specified an unrecognized series type (${D}).`),n!==D&&"scatter"!==D&&l++}),l>0&&(h&&console.warn(`Chart or series type ${h} cannot appear with other chart or series types.`),r.bar.series.length>0&&a.plotOptions.bar.horizontal&&(l-=r.bar.series.length,r.bar={series:[],i:[]},s.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),o.comboCharts||(o.comboCharts=l>0);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(q("line"))(i.w,i,e):null,g=r.candlestick.series.length>0||r.boxPlot.series.length>0||!o.comboCharts&&["candlestick","boxPlot"].includes(a.chart.type)?new(q("candlestick"))(i.w,i,e):null,u=r.violin.series.length>0||!o.comboCharts&&"violin"===a.chart.type?new(q("violin"))(i.w,i,e):null,m=!o.comboCharts&&["pie","donut","polarArea"].includes(a.chart.type);i.pie=m?new(q("pie"))(i.w,i):null,i.rangeBar=r.rangeBar.series.length>0||!o.comboCharts&&"rangeBar"===a.chart.type?new(q("rangeBar"))(i.w,i,e):null;let b=[];if(o.comboCharts){const w=new K(this.w);if(r.area.series.length>0&&b.push(...w.drawSeriesByGroup(r.area,o.areaGroups,"area",d)),r.bar.series.length>0)if(a.chart.stacked){const v=new(q("barStacked"))(i.w,i,e);b.push(v.draw(r.bar.series,r.bar.i))}else i.bar=new(q("bar"))(i.w,i,e),b.push(i.bar.draw(r.bar.series,r.bar.i));if(r.rangeArea.series.length>0&&b.push(d.draw(r.rangeArea.series,"rangeArea",r.rangeArea.i,r.rangeArea.seriesRangeEnd)),r.line.series.length>0&&b.push(...w.drawSeriesByGroup(r.line,o.lineGroups,"line",d)),r.candlestick.series.length>0&&b.push(g.draw(r.candlestick.series,"candlestick",r.candlestick.i)),r.boxPlot.series.length>0&&b.push(g.draw(r.boxPlot.series,"boxPlot",r.boxPlot.i)),r.violin.series.length>0&&b.push(u.draw(r.violin.series,"violin",r.violin.i)),r.rangeBar.series.length>0&&b.push(i.rangeBar.draw(r.rangeBar.series,r.rangeBar.i)),r.scatter.series.length>0){const v=new(q("line"))(i.w,i,e,!0);b.push(v.draw(r.scatter.series,"scatter",r.scatter.i))}if(r.bubble.series.length>0){const v=new(q("line"))(i.w,i,e,!0);b.push(v.draw(r.bubble.series,"bubble",r.bubble.i))}}else{const w=a.chart.type;switch(w){case"line":b=d.draw(this.w.seriesData.series,"line");break;case"area":b=d.draw(this.w.seriesData.series,"area");break;case"bar":a.chart.stacked?b=new(q("barStacked"))(i.w,i,e).draw(this.w.seriesData.series):(i.bar=new(q("bar"))(i.w,i,e),b=i.bar.draw(this.w.seriesData.series));break;case"candlestick":b=g.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":b=g.draw(this.w.seriesData.series,w);break;case"violin":b=u.draw(this.w.seriesData.series,"violin");break;case"rangeBar":b=i.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":b=d.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":b=new(q("heatmap"))(i.w,i,e).draw(this.w.seriesData.series);break;case"treemap":b=new(q("treemap"))(i.w,i).draw(this.w.seriesData.series);break;case"pie":case"donut":case"polarArea":b=i.pie.draw(this.w.seriesData.series);break;case"radialBar":b=new(q("radialBar"))(i.w,i).draw(this.w.seriesData.series);break;case"radar":b=new(q("radar"))(i.w,i).draw(this.w.seriesData.series);break;default:b=d.draw(this.w.seriesData.series)}}return b}setSVGDimensions(){var t;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=S.getDimensions(this.el);const r=i.toString().split(/[0-9]+/g).pop();"%"===r?S.isNumber(o[0])&&(0===o[0].width&&(o=S.getDimensions(this.el.parentNode)),e.svgWidth=o[0]*parseInt(i,10)/100):("px"===r||""===r)&&(e.svgWidth=parseInt(i,10));const n=String(a).toString().split(/[0-9]+/g).pop();if("auto"!==a&&""!==a)if("%"===n){const h=S.getDimensions(this.el.parentNode);e.svgHeight=h[1]*parseInt(a,10)/100}else e.svgHeight=parseInt(a,10);else e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2;if(e.svgWidth=Math.max(e.svgWidth,0),e.svgHeight=Math.max(e.svgHeight,0),L.setAttrs(this.w.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==n&&P.isBrowser()){const h=e.axisCharts&&(s.grid.show||s.dataLabels.enabled||s.xaxis.labels.show||s.xaxis.axisBorder.show||s.xaxis.axisTicks.show||s.yaxis.some(d=>d.show&&(d.labels.show||d.axisBorder.show||d.axisTicks.show))),c=this.w.dom.Paper.node;null!=(t=c.parentNode)&&t.parentNode&&(c.parentNode.parentNode.style.minHeight=`${e.svgHeight+(s.chart.sparkline.enabled||!h?0:s.chart.parentHeightOffset)}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;L.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${s}, ${e})`})}resizeNonAxisCharts(){var t,e,s,i,a,o;const{w:r}=this,n=r.config.chart.height?String(r.config.chart.height):"",h=""!==n&&"auto"!==n,l=n.includes("%");let c=0,d=r.config.chart.sparkline.enabled?1:15;d+=r.config.grid.padding.bottom,["top","bottom"].includes(r.config.legend.position)&&r.config.legend.show&&!r.config.legend.floating&&(c=(null!=(e=null==(t=this.ctx.legend)?void 0:t.legendHelpers.getLegendDimensions().clwh)?e:0)+7);const f=r.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),g=r.globals.pieExternalLabelMarginY||0;let p=g>0?2*r.globals.radialSize+2*g:2.05*r.globals.radialSize;const u=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle);if(f&&!r.config.chart.sparkline.enabled&&u<360){const x=S.getBoundingClientRect(this.w.dom.Paper.node);let b=1/0,w=-1/0;const v=_=>{var E,X,N,z;if(null!=(E=_.classList)&&E.contains("apexcharts-radialbar-hollow"))return;const O=null==(N=null==(X=_.tagName)?void 0:X.toLowerCase)?void 0:N.call(X);if("text"===O||"tspan"===O)return;const G=Array.from(null!=(z=_.children)?z:[]);if(G.length>0)return void G.forEach(U=>v(U));const I=S.getBoundingClientRect(_);
1if(I.bottom-I.top>0){const U=I.top-x.top,j=I.bottom-x.top;U<b&&(b=U),j>w&&(w=j)}};Array.from(null!=(s=f.children)?s:[]).forEach(_=>v(_)),Number.isFinite(b)||(b=0),Number.isFinite(w)||(w=S.getBoundingClientRect(f).bottom-x.top);const A=Math.max(d,.2*r.globals.radialSize),k=Math.max(A-b,0);0!==k&&(r.layout.translateY=(null!=(i=r.layout.translateY)?i:0)+k,L.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${null!=(a=r.layout.translateX)?a:0}, ${r.layout.translateY})`}),w+=k),p=w>0?w:2.05*r.globals.radialSize;const D=Math.max(A,b),C=Math.ceil(p+c+D),T=null!=(o=r.config.chart.offsetY)?o:0,M=C+Math.max(T,0);return void(l||(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(M)),this.w.dom.elWrap.style.height=`${M}px`,L.setAttrs(this.w.dom.Paper.node,{height:C}),P.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${M}px`)))}const m=Math.ceil(p+this.w.layout.translateY+c+d);h||(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(m)),this.w.dom.elWrap.style.height=`${m}px`,L.setAttrs(this.w.dom.Paper.node,{height:m}),P.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${m}px`))}coreCalculations(){new Et(this.w).init()}resetGlobals(){const t=()=>this.w.config.series.map(()=>[]),e=new zt,{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 Xt(this.w).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new Xt(this.w).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new Le(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 K(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];s.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;if(e.chart.accessibility&&e.chart.accessibility.description)return e.chart.accessibility.description;const s=e.chart.type,i=[];if(e.title.text)i.push(`${e.title.text}. ${s} chart`),e.subtitle.text&&i.push(e.subtitle.text);else{const a=Array.isArray(t.seriesData.seriesNames)&&t.seriesData.seriesNames.length?t.seriesData.seriesNames.filter(Boolean):Array.isArray(e.series)?e.series.map(r=>"object"==typeof r&&null!==r?r.name:null).filter(Boolean):[],o=t.seriesData.series.length||(e.series?e.series.length:0);i.push(a.length?`${s} chart with ${o} data series: ${a.join(", ")}`:`${s} chart with ${o} data series`)}return i.join(". ")}}class it{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 K(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){const t=this.w.config.series,e=new et(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],n=r[0],h=r[1],l=r[2];if(typeof h<"u"&&(Array.isArray(h)&&4===h.length&&!a?this.twoDSeries.push(S.parseNumber(h[3])):this.twoDSeries.push(S.parseNumber(r.length>=5?r[4]:h)),this.w.axisFlags.dataFormatXNumeric=!0),"datetime"===s.xaxis.type){const c=new Date(n).getTime();this.twoDSeriesX.push(c)}else this.twoDSeriesX.push(n);typeof l<"u"&&(this.threeDSeries.push(l),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(t,e){const s=this.w.config,i=this.w.globals,a=new Z(this.w),o=t[e].data;let r=e;i.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);const n=t[r].data;for(let h=0;h<o.length;h++){const l=o[h];if(typeof l.y<"u"){const c=Array.isArray(l.y)?S.parseNumber(l.y[l.y.length-1]):S.parseNumber(l.y);this.twoDSeries.push(c)}typeof this.seriesGoals[e]>"u"&&(this.seriesGoals[e]=[]),typeof l.goals<"u"&&Array.isArray(l.goals)?this.seriesGoals[e].push(l.goals):this.seriesGoals[e].push(null),typeof l.z<"u"&&(this.threeDSeries.push(l.z),this.w.axisFlags.isDataXYZ=!0)}for(let h=0;h<n.length;h++){const c=n[h].x,d="string"==typeof c,f=Array.isArray(c),g=!f&&!!a.isValidDate(c);d||g?d||s.xaxis.convertedCatToNumeric?"datetime"!==s.xaxis.type||i.isBarHorizontal&&this.w.axisFlags.isRangeData?(this.fallbackToCategory=!0,this.twoDSeriesX.push(c),!isNaN(c)&&"category"!==this.w.config.xaxis.type&&"string"!=typeof c&&(this.w.axisFlags.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(c)):"datetime"===s.xaxis.type?this.twoDSeriesX.push(a.parseDate(c.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(c))):f?(this.fallbackToCategory=!0,this.twoDSeriesX.push(c)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(c))}}handleRangeData(t,e){let s={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),this.w.rangeData.seriesRangeStart[e]=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 n=0;n<r;n++){const h=o[n],l=h.y1,c=h.y2;for(let d=n+1;d<r;d++){const f=o[d];if(l<=f.y2&&f.y1<=c){const u=a;u.overlaps.add(h.rangeName),u.overlaps.add(f.rangeName)}}}})}),s}handleCandleStickBoxData(t,e){let s={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),this.w.candleData.seriesCandleO[e]=s.o,this.w.candleData.seriesCandleH[e]=s.h,this.w.candleData.seriesCandleM[e]=s.m,this.w.candleData.seriesCandleL[e]=s.l,this.w.candleData.seriesCandleC[e]=s.c,this.w.candleData.seriesBoxPoints[e]=s.points||[],s}handleViolinData(t,e){var s,i,a,o,r,n;const h=this.w,l=t[e].data,c=[],d=[],f=[],g=[],p=[];for(let u=0;u<l.length;u++){const m=l[u],x=null!=(a=null!=(i=null==(s=m?.y)?void 0:s.density)?i:m?.[1])?a:[],b=null!=(n=null!=(r=null==(o=m?.y)?void 0:o.points)?r:m?.[2])?n:[],w=[],v=[];let A=0,k=null,D=1/0,C=-1/0;for(let M=0;M<x.length;M++){const _=S.parseNumber(x[M][0]),E=S.parseNumber(x[M][1]);null===_||null===E||(w.push(_),v.push(E),E>A&&(A=E,k=_),_<D&&(D=_),_>C&&(C=_))}const T=[];for(let M=0;M<b.length;M++){const _=S.parseNumber(b[M]);null!==_&&(T.push(_),_<D&&(D=_),_>C&&(C=_))}c.push({values:w,weights:v,maxWeight:A}),d.push(T),f.push(D===1/0?0:D),g.push(C===-1/0?0:C),p.push(null!==k?k:T.length?T[Math.floor(T.length/2)]:0)}h.violinData.seriesViolinDensity[e]=c,h.violinData.seriesViolinPoints[e]=d,h.violinData.seriesViolinMin[e]=f,h.violinData.seriesViolinMax[e]=g,this.twoDSeries=p}handleRangeDataFormat(t,e,s){const i=[],a=[],o=new Map,r=[];if(e[s].data.forEach(n=>{if(!o.has(n.x)){const h={x:n.x,overlaps:new Set,y:[]};o.set(n.x,h),r.push(h)}}),"array"===t)for(let n=0;n<e[s].data.length;n++)Array.isArray(e[s].data[n])?(i.push(e[s].data[n][1][0]),a.push(e[s].data[n][1][1])):(i.push(e[s].data[n]),a.push(e[s].data[n]));else if("xy"===t)for(let n=0;n<e[s].data.length;n++){const h=Array.isArray(e[s].data[n].y),l=S.randomId(),c=e[s].data[n].x,d={y1:h?e[s].data[n].y[0]:e[s].data[n].y,y2:h?e[s].data[n].y[1]:e[s].data[n].y,rangeName:l};e[s].data[n].rangeName=l;const f=o.get(c);f&&f.y.push(d),i.push(d.y1),a.push(d.y2)}return{start:i,end:a,rangeUniques:r}}handleCandleStickBoxDataFormat(t,e,s){const i=this.w,a="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[s].type,o=[],r=[],n=[],h=[],l=[],c=[],d=e[s].data;let f;f="array"===t?a&&6===d[0].length||!a&&5===d[0].length?p=>p.slice(1):p=>Array.isArray(p[1])?p[1]:[]:g=>Array.isArray(g.y)?g.y:[];for(let g=0;g<d.length;g++){const p=f(d[g]);p&&p.length>=2&&(o.push(p[0]),r.push(p[1]),a?(n.push(p[2]),h.push(p[3]),l.push(p[4])):(h.push(p[2]),l.push(p[3])));const u=d[g]&&d[g].points;c.push(Array.isArray(u)?u:[])}return{o,h:r,m:n,l:h,c:l,points:c}}parseDataAxisCharts(t){var e,s,i,a,o,r;const n=this.w.config,h=this.w.globals,l=new Z(this.w),c=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();this.w.axisFlags.isRangeBar="rangeBar"===n.chart.type&&h.isBarHorizontal,this.w.labelData.hasXaxisGroups="category"===n.xaxis.type&&n.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=n.xaxis.group.groups),t.forEach((p,u)=>{this.w.seriesData.seriesNames.push(void 0!==p.name?p.name:"series-"+parseInt(String(u+1),10))}),this.coreUtils.setSeriesYAxisMappings();const d=[],f=[...new Set(n.series.map(p=>p.group))];n.series.forEach((p,u)=>{const m=f.indexOf(p.group);d[m]||(d[m]=[]),d[m].push(this.w.seriesData.seriesNames[u])}),this.w.labelData.seriesGroups=d;const g=()=>{for(let p=0;p<c.length;p++)if("string"==typeof c[p]){if(!l.isValidDate(c[p]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(l.parseDate(c[p]))}else this.twoDSeriesX.push(c[p])};for(let p=0;p<t.length;p++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],typeof t[p].data>"u")return void console.error("It is a possibility that you may have not included 'data' property in series.");const u=n.chart.dataReducer,m=null==(s=null==(e=h.dataReducerRawSeries
1)?void 0:e[p])?void 0:s.data;if(u?.enabled&&this.isMultiFormat()&&Array.isArray(m)&&m.length>(null!=(i=u.threshold)?i:500)){const x=null!=(a=u.targetPoints)?a:250,b=n.xaxis.min,w=n.xaxis.max,v=null==b&&null==w?m:it.sliceByXRange(m,b,w);let A=v;if(v.length>x){const k=Array.isArray(v[0])?null==(r=v[0])?void 0:r[1]:null==(o=v[0])?void 0:o.y;Array.isArray(k)?4===k.length?A=it.ohlcAggregate(v,x):2===k.length&&(A=it.rangeAggregate(v,x)):A=it.lttbDownsample(v,x)}t[p]=V(B({},t[p]),{data:A})}if(("rangeBar"===n.chart.type||"rangeArea"===n.chart.type||"rangeBar"===t[p].type||"rangeArea"===t[p].type)&&(this.w.axisFlags.isRangeData=!0,this.handleRangeData(t,p)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,p):this.isFormatXY()&&this.handleFormatXY(t,p),("candlestick"===n.chart.type||"candlestick"===t[p].type||"boxPlot"===n.chart.type||"boxPlot"===t[p].type)&&this.handleCandleStickBoxData(t,p),("violin"===n.chart.type||"violin"===t[p].type)&&this.handleViolinData(t,p),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,p===this.activeSeriesIndex&&!this.fallbackToCategory&&(this.w.axisFlags.isXNumeric=!0);else{"datetime"===n.xaxis.type?(this.w.axisFlags.isXNumeric=!0,g(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(this.w.axisFlags.isXNumeric=!0,c.length>0&&(this.twoDSeriesX=c,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);const x=t[p].data.map(b=>S.parseNumber(b));this.w.seriesData.series.push(x)}this.w.seriesData.seriesZ.push(this.threeDSeries),this.w.seriesData.seriesColors.push(void 0!==t[p].color?t[p].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=S.parseNumber(o);return r>100&&console.warn(`ApexCharts: RadialBar value ${r} > 100, consider using percentage values (0-100)`),r}));for(let o=0;o<this.w.seriesData.series.length;o++)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(S.parseNumber(o.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",o):console.warn("ApexCharts: Expected object data point, got:",typeof o)}):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=>
1{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 ft(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 n=new Map;for(const h of r.data)n.has(h.x)||n.set(h.x,h);return Array.from(n.values())}),o=a.reduce((r,n,h,l)=>l[r].length>n.length?r:h,0);for(let r=0;r<a[o].length;r++)i.push(r+1)}else for(let a=0;a<this.w.seriesData.series[e.maxValsInArrayIndex].length;a++)i.push(a+1);this.w.seriesData.seriesX=[];for(let a=0;a<t.length;a++)this.w.seriesData.seriesX.push(i);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(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=>s.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 n,h,l;if(!o.data||!Array.isArray(o.data)||0===o.data.length)return o;const c={x:(null==(n=o.parsing)?void 0:n.x)||i?.x,y:(null==(h=o.parsing)?void 0:h.y)||i?.y,z:(null==(l=o.parsing)?void 0:l.z)||i?.z};if(!c.x&&!c.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(!c.x||!c.y||Array.isArray(c.y)&&0===c.y.length)return console.warn(`ApexCharts: Series ${r} has parsing config but missing x or y field specification`),o;const f=o.data.map((g,p)=>{if("object"!=typeof g||null===g)return console.warn(`ApexCharts: Series ${r}, data point ${p} is not an object, skipping parsing`),g;const u=this.getNestedValue(g,c.x);let m,x;if(Array.isArray(c.y)){const w=c.y.map(v=>this.getNestedValue(g,v));"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(c.y)}`),m=w[0]):m=w}else m=this.getNestedValue(g,c.y);c.z&&(x=this.getNestedValue(g,c.z)),void 0===u&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${c.x}'`),void 0===m&&console.warn(`ApexCharts: Series ${r}, data point ${p} missing field '${c.y}'`);const b={x:u,y:m,z:void 0};if("bubble"===this.w.config.chart.type&&Array.isArray(c.y)&&2===c.y.length){const w=this.getNestedValue(g,c.y[1]);void 0!==w&&(b.z=w)}return void 0!==x&&(b.z=x),b});return V(B({},o),{data:f,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,s.originalSeries||(s.originalSeries=S.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}expandScatterJitterData(t){var e,s;const i=this.w.config,o=null==(s=null==(e=i.plotOptions)?void 0:e.scatter)?void 0:s.jitter;if("scatter"!==i.chart.type&&"bubble"!==i.chart.type||!o||!o.enabled||!Array.isArray(t))return t;if(!t.some(d=>Array.isArray(d?.data)&&d.data.some(f=>f&&!Array.isArray(f)&&Array.isArray(f.y))))return"datetime"!==i.xaxis.type&&Array.isArray(i.xaxis.categories)&&i.xaxis.categories.length&&this._applyBandAxis(i.xaxis.categories.slice()),t;const n=[],h=new Map;t.forEach(d=>{Array.isArray(d?.data)&&d.data.forEach(f=>{if(f&&Array.isArray(f.y)){const g=String(f.x);h.has(g)||(h.set(g,n.length),n.push(f.x))}})});const l=o.maxPoints||5e3,c=t.map(d=>{if(!Array.isArray(d?.data))return d;const f=[];return d.data.forEach(g=>{if(g&&Array.isArray(g.y)){const p=h.get(String(g.x)),u=g.y,m=u.length>l?Math.ceil(u.length/l):1;for(let x=0;x<u.length;x+=m){const b=S.parseNumber(u[x]);
1null!==b&&f.push({x:p,y:b})}}else if(g&&"object"==typeof g&&!Array.isArray(g)){const p=String(g.x);f.push({x:h.has(p)?h.get(p):g.x,y:g.y})}else f.push(g)}),V(B({},d),{data:f})});return this._applyBandAxis(n),c}_applyBandAxis(t){const e=this.w.config.xaxis,s=t.length;if(!s)return;const i=e._scatterBand=e._scatterBand||{};e.type="numeric",(null==e.min||i.min)&&(e.min=-1,i.min=!0),(null==e.max||i.max)&&(e.max=s,i.max=!0),(null==e.tickAmount||"dataPoints"===e.tickAmount||i.tick)&&(e.tickAmount=s+1,i.tick=!0),e.labels=e.labels||{};const a=e.labels.formatter;if("function"!=typeof a||a._scatterBand){const o=r=>{const n=Math.round(r);return Math.abs(r-n)<1e-6&&void 0!==t[n]?t[n]:""};o._scatterBand=!0,e.labels.formatter=o}}parseData(t){var e,s,i,a,o,r;const n=this.w,h=n.config,l=n.globals;if(t=this.parseRawDataIfNeeded(t),t=this.expandScatterJitterData(t),null!=(e=h.chart.dataReducer)&&e.enabled&&l.axisCharts&&!l.dataReducerRawSeries){l.dataReducerRawSeries=t.map(g=>({data:Array.isArray(g?.data)?g.data.slice():g?.data}));let d=1/0,f=-1/0;for(const g of t){const p=g?.data;if(!Array.isArray(p)||0===p.length)continue;const u=!Array.isArray(p[0]),m=u?null==(s=p[0])?void 0:s.x:null==(i=p[0])?void 0:i[0],x=u?null==(a=p[p.length-1])?void 0:a.x:null==(o=p[p.length-1])?void 0:o[0];"number"==typeof m&&(d=Math.min(d,m)),"number"==typeof x&&(f=Math.max(f,x))}d!==1/0&&(l.dataReducerRawMinX=d,l.dataReducerRawMaxX=f)}if(h.series=t,l.dataReducerRawSeries&&null!=(r=h.chart.dataReducer)&&r.enabled){const d=l.dataReducerRawSeries;l.initialSeries=t.map((f,g)=>{var p,u,m;return V(B({},f),{data:null!=(m=null==(u=null==(p=d[g])?void 0:p.data)?void 0:u.slice())?m:f.data})})}else l.initialSeries=S.clone(t);if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),l.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),h.chart.stacked){const d=new et(this.w);this.w.seriesData.series=d.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),l.axisCharts&&(this.w.seriesData.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),this.w.seriesData.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),!this.w.axisFlags.dataFormatXNumeric&&(!this.w.axisFlags.isXNumeric||"numeric"===h.xaxis.type&&0===h.labels.length&&0===h.xaxis.categories.length)&&this.handleExternalLabelsData(t);const c=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let d=0;d<c.length;d++)if(Array.isArray(c[d])){this.w.axisFlags.isMultiLineX=!0;break}return{seriesData:{series:this.w.seriesData.series,seriesNames:this.w.seriesData.seriesNames,seriesX:this.w.seriesData.seriesX,seriesZ:this.w.seriesData.seriesZ,seriesColors:this.w.seriesData.seriesColors,seriesGoals:this.w.seriesData.seriesGoals,initialSeries:l.initialSeries,originalSeries:l.originalSeries,stackedSeriesTotals:this.w.seriesData.stackedSeriesTotals,stackedSeriesTotalsByGroups:this.w.seriesData.stackedSeriesTotalsByGroups,noLabelsProvided:this.w.axisFlags.noLabelsProvided},rangeData:{seriesRangeStart:this.w.rangeData.seriesRangeStart,seriesRangeEnd:this.w.rangeData.seriesRangeEnd,seriesRange:this.w.rangeData.seriesRange},candleData:{seriesCandleO:this.w.candleData.seriesCandleO,seriesCandleH:this.w.candleData.seriesCandleH,seriesCandleM:this.w.candleData.seriesCandleM,seriesCandleL:this.w.candleData.seriesCandleL,seriesCandleC:this.w.candleData.seriesCandleC,seriesBoxPoints:this.w.candleData.seriesBoxPoints},labelData:{labels:this.w.labelData.labels,categoryLabels:this.w.labelData.categoryLabels},axisFlags:{isXNumeric:this.w.axisFlags.isXNumeric,dataFormatXNumeric:this.w.axisFlags.dataFormatXNumeric,isDataXYZ:this.w.axisFlags.isDataXYZ,isRangeData:this.w.axisFlags.isRangeData,isRangeBar:this.w.axisFlags.isRangeBar,isMultiLineX:this.w.axisFlags.isMultiLineX,dataWasParsed:this.w.axisFlags.dataWasParsed,hasXaxisGroups:this.w.labelData.hasXaxisGroups,groups:this.w.labelData.groups,seriesGroups:this.w.labelData.seriesGroups}}}static sliceByXRange(t,e,s){const i=t.length;if(0===i)return t;const o=Array.isArray(t[0])?h=>h[0]:h=>h.x;let r=0;if(null!=e){let h=0,l=i-1;for(;h<=l;){const c=h+l>>1;o(t[c])<e?h=c+1:l=c-1}r=Math.max(0,h-1)}let n=i;if(null!=s){let h=0,l=i-1;for(;h<=l;){const c=h+l>>1;o(t[c])>s?l=c-1:h=c+1}n=Math.min(i,h+1)}return 0===r&&n===i?t.slice():t.slice(r,n)}static lttbDownsample(t,e){const s=t.length;if(e>=s||e<3)return t;const i=!Array.isArray(t[0]),a=i?l=>l.x:l=>l[0],o=i?l=>l.y:l=>l[1],r=[];r.push(t[0]);const n=(s-2)/(e-2);let h=0;for(let l=0;l<e-2;l++){const c=Math.floor((l+1)*n)+1,d=Math.min(Math.floor((l+2)*n)+1,s);let f=0,g=0;const p=d-c;for(let A=c;A<d;A++)f+=a(t[A]),g+=o(t[A]);f/=p,g/=p;const u=Math.floor(l*n)+1,m=Math.min(Math.floor((l+1)*n)+1,s),x=a(t[h]),b=o(t[h]);let w=-1,v=u;for(let A=u;A<m;A++){const k=.5*Math.abs((x-f)*(o(t[A])-b)-(x-a(t[A]))*(g-b));k>w&&(w=k,v=A)}r.push(t[v]),h=v}return r.push(t[s-1]),r}static ohlcAggregate(t,e){const s=t.length;if(e>=s||e<1)return t;const i=!Array.isArray(t[0]),a=i?l=>l.x:l=>l[0],o=i?l=>l.y:l=>l[1],r=i?(l,c)=>({x:l,y:c}):(l,c)=>[l,c],n=[],h=s/e;for(let l=0;l<e;
1l++){const c=Math.floor(l*h),d=l===e-1?s:Math.floor((l+1)*h);if(d<=c)continue;const f=o(t[c]),g=f[0];let p=f[1],u=f[2],m=f[3];for(let x=c+1;x<d;x++){const b=o(t[x]);b[1]>p&&(p=b[1]),b[2]<u&&(u=b[2]),m=b[3]}n.push(r(a(t[c]),[g,p,u,m]))}return n}static rangeAggregate(t,e){const s=t.length;if(e>=s||e<1)return t;const i=!Array.isArray(t[0]),a=i?l=>l.x:l=>l[0],o=i?l=>l.y:l=>l[1],r=i?(l,c)=>({x:l,y:c}):(l,c)=>[l,c],n=[],h=s/e;for(let l=0;l<e;l++){const c=Math.floor(l*h),d=l===e-1?s:Math.floor((l+1)*h);if(d<=c)continue;let f=1/0,g=-1/0;for(let p=c;p<d;p++){const u=o(t[p]);if(null!=u)for(let m=0;m<2;m++){const x=u[m];null==x||!isFinite(x)||(x<f&&(f=x),x>g&&(g=x))}}n.push(r(a(t[c]),f===1/0?[null,null]:[f,g]))}return n}excludeCollapsedSeriesInYAxis(){const t=this.w,e=[];t.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((n,h)=>{var l,c;const d=n.w;if(d.globals.shouldAnimate=s,e||(d.globals.resized=!0,d.globals.dataChanged=!0,s&&n.series.getPreviousPaths()),s&&t&&"object"==typeof t){const f=null==(l=t?.chart)?void 0:l.type,g=d.config.chart.requestedType||d.config.chart.type;f&&f!==g&&(null==(c=n.morphTypeChange)||c.captureBeforeDestroy({fromType:g,toType:f,newSeries:t.series||d.config.series}))}if(t&&"object"==typeof t){n.config=new gt(t);const f=t.chart&&t.chart.type;if(f&&"funnel"!==f&&"pyramid"!==f&&"gauge"!==f&&d.config.chart.requestedType){t.chart=t.chart||{},t.chart.requestedType=f;const u=d.config.chart.requestedType;("funnel"===u||"pyramid"===u)&&(t.plotOptions=t.plotOptions||{},t.plotOptions.bar=t.plotOptions.bar||{},void 0===t.plotOptions.bar.isFunnel&&(t.plotOptions.bar.isFunnel=!1),void 0===t.plotOptions.bar.isPyramid&&(t.plotOptions.bar.isPyramid=!1))}if(n.config.normalizeAliasedChartType(t),t=K.extendArrayProps(n.config,t,d),n.w.globals.chartID!==this.w.globals.chartID&&delete t.series,d.config=S.extend(d.config,t),a&&(d.globals.lastXAxis=t.xaxis?S.clone(t.xaxis):[],d.globals.lastYAxis=t.yaxis?S.clone(t.yaxis):[],d.globals.initialConfig=S.extend({},d.config),d.globals.initialSeries=S.clone(d.config.series),t.series)){for(let u=0;u<d.globals.collapsedSeriesIndices.length;u++){const m=d.config.series[d.globals.collapsedSeriesIndices[u]];d.globals.collapsedSeries[u].data=d.globals.axisCharts?m.data.slice():m}for(let u=0;u<d.globals.ancillaryCollapsedSeriesIndices.length;u++){const m=d.config.series[d.globals.ancillaryCollapsedSeriesIndices[u]];d.globals.ancillaryCollapsedSeries[u].data=d.globals.axisCharts?m.data.slice():m}n.series.emptyCollapsedSeries(d.config.series)}}return n.update(t).then(()=>{h===r.length-1&&o(n)})})})}_updateSeries(t,e,s=!1){return new Promise(i=>{const a=this.w;a.globals.shouldAnimate=e,a.globals.dataChanged=!0,Lt.invalidateSelectors(a),e&&this.ctx.series.getPreviousPaths();const o=a.config.series.length;a.globals.dataReducerRawSeries=null,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=S.clone(a.config.series)),a.globals.initialSeries=S.clone(a.config.series)),this._canUseFastPath(t,o,a)?this.ctx.fastUpdate(e).then(()=>{i(this.ctx)}):this.ctx.update().then(()=>{i(this.ctx)})})}_canUseFastPath(t,e,s){return!(!s.dom.elGraphical||!s.globals.axisCharts||t.length!==e||s.globals.collapsedSeries.length>0||s.globals.ancillaryCollapsedSeries.length>0||s.globals.risingSeries.length>0||s.globals.comboCharts||s.interact.zoomed)}_extendSeries(t,e){const s=this.w,i=s.config.series[e];return V(B({},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}
1 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 L(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 ft(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,n)=>{e.interact.zoomed||typeof i[n]<"u"?(r=>{if(typeof i[r]<"u"){const n=i[r];e.config.yaxis[r].min=n.min,e.config.yaxis[r].max=n.max}})(n):typeof this.ctx.opts.yaxis[n]<"u"&&(r.min=this.ctx.opts.yaxis[n].min,r.max=this.ctx.opts.yaxis[n].max)})}}class Kt{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,n=e.getBoundingClientRect(),h=n.width,l=n.height;let c=h/(r.globals.dataPoints-1);const d=l/r.globals.dataPoints,f=this.hasBars();(r.globals.comboCharts||f)&&!r.config.xaxis.convertedCatToNumeric&&(c=h/r.globals.dataPoints);const g=s-n.left-r.globals.barPadForNumericAxis,p=i-n.top;g<0||p<0||g>h||p>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):r.interact.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):r.interact.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));let m=Math.round(g/c);const x=Math.floor(p/d);f&&!r.config.xaxis.convertedCatToNumeric&&(m=Math.ceil(g/c),m-=1);let b=null,w=null,v=r.globals.seriesXvalues.map(k=>k.filter(D=>S.isNumber(D)));const A=r.globals.seriesYvalues.map(k=>k.filter(D=>S.isNumber(D)));if(r.axisFlags.isXNumeric){const k=this.ttCtx.getElGrid();if(!k)return{hoverX:g,hoverY:p};const D=k.getBoundingClientRect(),C=g*(D.width/h);w=this.closestInMultiArray(C,p*(D.height/l),v,A),b=w.index,m=null!=(a=w.j)?a:0,null!==b&&r.globals.hasNullValues&&(v=r.globals.seriesXvalues[b],w=this.closestInArray(C,v),m=null!=(o=w.j)?o:0)}return r.interact.capturedSeriesIndex=null===b?-1:b,(!m||m<1)&&(m=0),r.interact.capturedDataPointIndex=r.globals.isBarHorizontal?x:m,{capturedSeries:b,j:r.globals.isBarHorizontal?x:m,hoverX:g,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=d=>-1===a.globals.collapsedSeriesIndices.indexOf(d)&&-1===a.globals.ancillaryCollapsedSeriesIndices.indexOf(d),r=a.config.chart.type,n=!a.globals.comboCharts&&("line"===r||"area"===r);let h=1/0,l=null,c=null;if(a.globals.allSeriesHasEqualX){let d=1/0;for(let f=0;f<s.length;f++){if(!o(f))continue;const g=s[f],u=Math.min(g.length,i[f].length);for(let m=0;m<u;m++){const x=Math.abs(t-g[m]);x<d&&(d=x,c=m)}}if(null!==c)if(n){let f=1/0;for(let g=0;g<s.length;g++){if(!o(g))continue;const p=s[g],u=i[g],m=Math.min(p.length,u.length);if(m<2){const x=u[c];if("number"!=typeof x)continue;const b=Math.abs(e-x);b<f&&(f=b,l=g);continue}for(let x=0;x<m-1;x++){const b=this._distanceToSegment(t,e,p[x],u[x],p[x+1],u[x+1]);b.dist<f&&(f=b.dist,l=g)}}}else{let f=1/0;for(let g=0;g<s.length;g++){if(!o(g))continue;const p=i[g][c];if("number"!=typeof p)continue;const u=Math.abs(e-p);u<f&&(f=u,l=g)}}return{index:l,j:c}}for(let d=0;d<s.length;d++){if(!o(d))continue;const f=s[d],g=i[d],p=Math.min(f.length,g.length);if(n&&p>=2)for(let u=0;u<p-1;u++){const m=this._distanceToSegment(t,e,f[u],g[u],f[u+1],g[u+1]);m.dist<h&&(h=m.dist,l=d,c=m.t<.5?u:u+1)}else for(let u=0;u<p;u++){const x=t-f[u],w=e-g[u],v=Math.sqrt(x*x+w*w);v<h&&(h=v,l=d,c=u)}}return{index:l,j:c}}_distanceToSegment(t,e,s,i,a,o){const r=a-s,n=o-i,h=r*r+n*n;let l=0===h?0:((t-s)*r+(e-i)*n)/h;l<0?l=0:l>1&&(l=1);const f=t-(s+l*r),g=e-(i+l*n);return{dist:Math.sqrt(f*f+g*g),t:l}}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 n;return!(null!=(n=this.w.globals.collapsedSeriesIndices)&&n.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;
vendor: 5,214 bytes, line 1
1if(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 L(this.w).getMarkerPath(s,i,a,e)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-violin-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 Ne{constructor(t){this.w=t.w,this.ttCtx=t,this.tooltipUtil=new Kt(t)}drawSeriesTexts({shared:t=!0,ttItems:e,i:s=0,j:i=null,y1:a,y2:o,e:r}){const n=this.w;void 0!==n.config.tooltip.custom?this.handleCustomTooltip({i:s,j:i,y1:a,y2:o,w:n}):this.toggleActiveInactiveSeries(t,s);const h=this.getValuesToPrint({i:s,j:i});this.printLabels({i:s,j:i,values:h,ttItems:e,shared:t,e:r});const l=this.ttCtx.getElTooltip();l&&(this.ttCtx.tooltipRect.ttWidth=l.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=l.getBoundingClientRect().height)}printLabels({i:t,j:e,values:s,ttItems:i,shared:a,e:o}){const r=this.w,{xVal:n,zVal:h,xAxisTTVal:l}=s,c=r.seriesData.series.length,d=null!==e&&r.config.plotOptions.bar.distributed?r.globals.colors[e]:r.globals.colors[t];for(let f=0;f<c;f++){const g=r.config.tooltip.inverseOrder?c-1-f:f,p=this.computeSeriesRow({i:t,j:e,t:f,tIndex:g,shared:a,e:o,basePColor:d});this.DOMHandling({i:t,t:g,j:e,ttItems:i,values:{val:p.val,goalVals:p.goalVals,xVal:n,xAxisTTVal:l,zVal:h},seriesName:p.seriesName,shared:a,pColor:p.pColor})}}computeSeriesRow({i:t,j:e,tIndex:s,shared:i,e:a,basePColor:o}){const r=this.w;let l,n=this.getFormatters(t),h=o,c=[],d="treemap"===r.config.chart.type?n.yLbTitleFormatter(String(r.config.series[t].data[e].x),{series:r.seriesData.series,seriesIndex:t,dataPointIndex:e,w:r}):this.getSeriesName({fn:n.yLbTitleFormatter,index:t,seriesIndex:t,j:e});return r.globals.axisCharts&&(i?(n=this.getFormatters(s),d=this.getSeriesName({fn:n.yLbTitleFormatter,index:s,seriesIndex:t,j:e}),h=r.globals.colors[s],l=this.formatYValue(n,s,e),c=this.formatGoalVals(n,s,e)):(h=this.resolvePatternColor(a,h),l=this.formatYValue(n,t,e),c=this.formatGoalVals(n,t,e))),null===e&&(l=n.yLbFormatter(r.seriesData.series[t],V(B({},r),{seriesIndex:t,dataPointIndex:t}))),{seriesName:d,val:l,goalVals:c,pColor:h}}formatYValue(t,e,s){var i,a,o,r;const n=this.w;return n.axisFlags.isRangeData?t.yLbFormatter(null==(a=null==(i=n.rangeData.seriesRangeStart)?void 0:i[e])?void 0:a[s],{series:n.rangeData.seriesRangeStart,seriesIndex:e,dataPointIndex:s,w:n})+" - "+t.yLbFormatter(null==(r=null==(o=n.rangeData.seriesRangeEnd)?void 0:o[e])?void 0:r[s],{series:n.rangeData.seriesRangeEnd,seriesIndex:e,dataPointIndex:s,w:n}):t.yLbFormatter(n.seriesData.series[e][s],{series:n.seriesData.series,seriesIndex:e,dataPointIndex:s,w:n})}formatGoalVals(t,e,s){var i;const a=this.w,o=null==(i=a.seriesData.seriesGoals[e])?void 0:i[s];return Array.isArray(o)?o.map(r=>({attrs:r,val:t.yLbFormatter(r.value,{seriesIndex:e,dataPointIndex:s,w:a})})):[]}resolvePatternColor(t,e){var s,i,a;const o=this.w,r=null==(s=t?.target)?void 0:s.getAttribute("fill");if(!r)return e;if(-1===r.indexOf("url"))return r;if(-1===r.indexOf("Pattern"))return e;const n=o.dom.baseEl.querySelector(r.substr(4).slice(0,-1));return null!=(a=null==(i=n?.childNodes[0])?void 0:i.getAttribute("stroke"))?a:e}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[
10]?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 n=this.w,h=this.ttCtx,{val:l,goalVals:c,xVal:d,xAxisTTVal:f,zVal:g}=i;if(!s||!s[t])return;let p=null;p=s[t].children,n.config.tooltip.fillSeriesColor&&(s[t].style.backgroundColor=r,p[0].style.display="none"),h.showTooltipTitle&&(null===h.tooltipTitle&&(h.tooltipTitle=n.dom.baseEl.querySelector(".apexcharts-tooltip-title")),h.tooltipTitle&&(h.tooltipTitle.innerHTML=d)),h.isXAxisTooltipEnabled&&h.xaxisTooltipText&&(h.xaxisTooltipText.innerHTML=""!==f?f:d);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 l<"u"?l:""),p[0]&&p[0].classList.contains("apexcharts-tooltip-marker")&&(n.config.tooltip.marker.fillColors&&Array.isArray(n.config.tooltip.marker.fillColors)&&(r=n.config.tooltip.marker.fillColors[t]),n.config.tooltip.fillSeriesColor?p[0].style.backgroundColor=r:p[0].style.color=r),n.config.tooltip.marker.show||(p[0].style.display="none");const x=s[t].querySelector(".apexcharts-tooltip-text-goals-label"),b=s[t].querySelector(".apexcharts-tooltip-text-goals-value");if(c.length&&n.seriesData.seriesGoals[t]){const w=()=>{let v="<div>",A="<div>";c.forEach(k=>{v+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${k.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${k.attrs.name}</div>`,A+=`<div>${k.val}</div>`}),x.innerHTML=v+"</div>",b.innerHTML=A+"</div>"};o?n.seriesData.seriesGoals[t][e]&&Array.isArray(n.seriesData.seriesGoals[t][e])?w():(x.innerHTML="",b.innerHTML=""):w()}else x.innerHTML="",b.innerHTML="";if(null!==g&&(s[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=n.config.tooltip.z.title,s[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=typeof g<"u"?g:""),o&&p[0]){if(n.config.tooltip.hideEmptySeries){const w=s[t].querySelector(".apexcharts-tooltip-marker"),v=s[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(l)?(w.style.display="none",v.style.display="none"):(w.style.display="block",v.style.display="block")}p[0].parentNode.style.display=typeof l>"u"||null===l||n.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||n.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(h.tConfig.enabledOnSeries)&&-1===h.tConfig.enabledOnSeries.indexOf(t)?"none":n.config.tooltip.items.display}else Array.isArray(h.tConfig.enabledOnSeries)&&-1===h.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,n,h,l;const c=this.w,d=c.seriesData.seriesX.map(w=>w.length>0?w:[]);let f="",g="",p=null,u=null;const m={series:c.seriesData.series,seriesIndex:t,dataPointIndex:e,w:c},x=c.formatters.ttZFormatter;null===e?u=c.seriesData.series[t]:c.axisFlags.isXNumeric&&"treemap"!==c.config.chart.type?(f=d[t][e],0===d[t].length&&(f=d[this.tooltipUtil.getFirstActiveXArray(d)][e])):f=new it(this.w).isFormatXY()?typeof c.config.series[t].data[e]<"u"?c.config.series[t].data[e].x:"":typeof c.labelData.labels[e]<"u"?c.labelData.labels[e]:"";const b=f;return f=c.axisFlags.isXNumeric&&"datetime"===c.config.xaxis.type?new dt(this.w).xLabelFormat(c.formatters.ttKeyFormatter,b,b,{i:void 0,dateFormatter:new Z(this.w).formatDate,w:this.w}):c.globals.isBarHorizontal?c.formatters.yLabelFormatters[0](b,m):null!=(a=null==(i=(s=c.formatters).xLabelFormatter)?void 0:i.call(s,b,m))?a:b,void 0!==c.config.tooltip.x.formatter&&(f=null!=(n=null==(r=(o=c.formatters).ttKeyFormatter)?void 0:r.call(o,b,m))?n:b),c.seriesData.seriesZ.length>0&&c.seriesData.seriesZ[t].length>0&&(p=x?.(c.seriesData.seriesZ[t][e],c)),g="function"==typeof c.config.xaxis.tooltip.formatter?null==(l=(h=c.formatters).xaxisTooltipFormatter)?void 0:l.call(h,b,m):f,{val:Array.isArray(u)?u.join(" "):u,xVal:Array.isArray(f)?f.join(" "):f,xAxisTTVal:Array.isArray(g)?g.join(" "):g,zVal:p}}handleCustomTooltip({i:t,j:e,y1:s,y2:i,w:a}){const o=this.ttCtx.getElTooltip();let r=a.config.tooltip.custom;Array.isArray(r)&&r[t]&&(r=r[t]);const n=r({series:a.seriesData.series,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a});o&&("string"==typeof n||"number"==typeof n?o.innerHTML=String(n):(n instanceof Element||"string"==typeof n.nodeName)&&(o.innerHTML="",o.appendChild(n.cloneNode(!0))))}}class Jt{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 n=o;("tickWidth"===i.config.xaxis.crosshairs.width||"barWidth"===i.config.xaxis.crosshairs.width)&&(n=o+s.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}moveYCrosshairs(t){const e=this.ttCtx;
1null!==e.ycrosshairs&&L.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&L.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+5+i.config.xaxis.offsetY;if(t-=a.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=i.layout.translateX;const l=new L(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=l.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 n=a.yaxisTTEls[t].getBoundingClientRect(),h=n.height;let l;const c=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),d=i.dom.elWrap.getBoundingClientRect();if(c){const f=c.getBoundingClientRect();f.width>0&&(l=f.left+f.width/2-d.left-n.width/2)}null==l&&(l=i.config.yaxis[t].opposite?i.globals.translateYAxisX[t]+4:i.globals.translateYAxisX[t]-n.width-4),r-=h/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=l+i.config.yaxis[t].tooltip.offsetX+"px"):a.yaxisTTEls[t].classList.remove("apexcharts-active")}}moveTooltip(t,e,s=null){const a=this.ttCtx.getElTooltip();if(!a)return;const o=this.computeTooltipPosition(t,e,s);null!==o&&this.applyTooltipPosition(a,o)}computeTooltipPosition(t,e,s=null){var i,a,o,r,n,h,l;const c=this.w,d=this.ttCtx,f=d.tooltipRect,g=!!c.config.tooltip.arrow,p=null!==s?parseFloat(String(s)):1,u=f.ttHeight||0,m=f.ttWidth||0,x=parseFloat(String(t)),b=parseFloat(String(e));if(isNaN(x))return null;let w=x+p+5;const v=b+c.layout.translateY;let A=g?v-u/2+p/2:b+p/2,k="right";if(w>c.layout.gridWidth/2&&(w=w-m-p-10,k="left"),w>c.layout.gridWidth-m-10&&(w=c.layout.gridWidth-m),w<-20&&(w=-20),c.config.tooltip.followCursor){const T=d.getElGrid();if(!T)return null;const M=T.getBoundingClientRect();w=d.e.clientX-M.left,w>c.layout.gridWidth/2?(w-=m,k="left"):k="right",A=d.e.clientY+c.layout.translateY-M.top,A>c.layout.gridHeight/2&&(A-=u)}else if(!c.globals.isBarHorizontal)if(g){const T=c.layout.translateY,M=c.layout.translateY+c.layout.gridHeight;A+u>M&&(A=M-u),A<T&&(A=T)}else u/2+A>c.layout.gridHeight&&(A=c.layout.gridHeight-u+c.layout.translateY);if(isNaN(w))return null;w+=c.layout.translateX;const D=null==(a=null==(i=c.config)?void 0:i.chart)?void 0:a.accessibility;if(D?.enabled&&null!=(r=null==(o=D?.keyboard)?void 0:o.navigation)&&r.enabled&&null!=(l=null==(h=null==(n=c.dom)?void 0:n.baseEl)?void 0:h.querySelector)&&l.call(h,".apexcharts-keyboard-focused")){const T=g?v:b,M=(p||1)+12,_=A,E=A+u;!isNaN(T)&&u>0&&_<T+M&&E>T-M&&(A=T-u-M,A<0&&(A=T+M))}let C=null;return g&&u>0&&(C=Math.max(10,Math.min(u-10,v-A))),{x:w,y:A,placement:k,arrowY:C}}applyTooltipPosition(t,e){if(!t)return;const s="true"!==t.dataset.positioned;s&&(t.style.transitionProperty="none"),t.style.left=e.x+"px",t.style.top=e.y+"px",e.placement&&(t.dataset.placement=e.placement),null!=e.arrowY&&t.style.setProperty("--apx-tt-arrow-y",e.arrowY+"px"),null!=e.arrowX&&t.style.setProperty("--apx-tt-arrow-x",e.arrowX+"px"),s&&(t.dataset.positioned="true",requestAnimationFrame(()=>{t.style.transitionProperty=""}))}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 n=this.w,h=this.ttCtx;let l=0,c=0;const d=new L(this.w),f=n.globals.pointsArray,g=h.tooltipUtil.getHoverMarkerSize(e),p=n.config.series[e].type;if(p&&("column"===p||"candlestick"===p||"boxPlot"===p||"violin"===p))return;l=null==(i=null==(s=f[e])?void 0:s[t])?void 0:i[0],c=(null==(o=null==(a=f[e])?void 0:a[t])?void 0:o[1])||0;const u=n.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers path`);if(u&&c<n.layout.gridHeight&&c>0){const m=null!=(r=u.getAttribute("shape"))?r:"circle",x=d.getMarkerPath(l,c,m,1.5*g);u.setAttribute("d",x)}this.moveXCrosshairs(l),h.fixedTooltip||this.moveTooltip(l,c,g)}moveDynamicPointsOnHover(t){var e,s;const i=this.ttCtx,a=i.w;let o=0,r=0,n=0;const h=a.globals.pointsArray,l=new et(this.w),c=new L(this.w);n=l.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);const d=i.tooltipUtil.getHoverMarkerSize(n);if(null!=(e=h[n])&&e[t]&&(o=h[n][t][0],r=h[n][t][1]),isNaN(o))return;const f=i.tooltipUtil.getAllMarkers();if(f.length)for(let g=0;g<a.seriesData.series.length;g++){const p=h[g];if(a.globals.comboCharts&&typeof p>"u"&&f.splice(g,0,null),p&&p.length){let m,u=h[g][t][1];f[g].setAttribute("cx",o);const x=null!=(s=f[g].getAttribute("shape"))?s:"circle";if("rangeArea"!==a.config.chart.type||a.globals.comboCharts||(m=h[g][t+a.seriesData.series[g].length][1],u-=Math.abs(u-m)/2),null!==u&&!isNaN(u)&&u<a.layout.gridHeight+d&&u+d>0){const b=c.getMarkerPath(o,u,x,d);f[g].setAttribute("d",b)}else f[g].setAttribute("d","")}}this.moveXCrosshairs(o),i.fixedTooltip||this.moveTooltip(o,r||a.layout.gridHeight,d)}moveStickyTooltipOverBars(t,e){var s,i,a;const o=this.w,r=this.ttCtx;let n=o.globals.columnSeries?o.globals.columnSeries.length:o.seriesData.series.length;o.config.chart.stacked&&(n=o.globals.barGroups.length);let h=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;o.globals.isBarHorizontal&&(h=new et(this.w).getActiveConfigSeriesIndex("desc")+1);let l=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-candlestick-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-violin-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-rangebar-series .apexcharts-series[rel='${h}'] path[j='${t}']`);!l&&"number"==typeof e&&(l=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-violin-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`));let c=l?parseFloat(null!=(s=l.getAttribute("cx"))?s:"0"):0,d=l?parseFloat(null!=(i=l.getAttribute("cy"))?i:"0"):0;const f=l?parseFloat(null!=(a=l.getAttribute("barWidth"))?a:"0"):0,g=r.getElGrid();if(!g)return;const p=g.getBoundingClientRect(),u=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));if(o.axisFlags.isXNumeric){if(l&&!u){const m=this._datapointCenterXFromBars(t,p);null!=m?c=m:c-=n%2!=0?f/2:0}l&&u&&(c-=f/2)}
1else o.globals.isBarHorizontal||(c=r.xAxisTicksPositions[t-1]+r.dataPointsDividedWidth/2,isNaN(c)&&(c=r.xAxisTicksPositions[t]-r.dataPointsDividedWidth/2));if(o.globals.isBarHorizontal?d-=r.tooltipRect.ttHeight:o.config.tooltip.followCursor?d=r.e.clientY-p.top-r.tooltipRect.ttHeight/2:d+r.tooltipRect.ttHeight+15>o.layout.gridHeight&&(d=o.layout.gridHeight),o.globals.isBarHorizontal||this.moveXCrosshairs(c),!r.fixedTooltip){if(o.globals.isBarHorizontal&&!o.config.tooltip.followCursor&&this.placeHorizontalSharedTooltip(t))return;this.moveTooltip(c,d||o.layout.gridHeight)}}_datapointCenterXFromBars(t,e){var s,i;const a=this.w,o=a.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}']`);if(!o.length)return null;let r=1/0,n=-1/0;for(const h of o){const l=h.parentNode;if(null!=(i=null==(s=l?.classList)?void 0:s.contains)&&i.call(s,"apexcharts-series-collapsed"))continue;const c=h.getBoundingClientRect();0===c.width&&0===c.height||(c.left<r&&(r=c.left),c.right>n&&(n=c.right))}return isFinite(r)?(r+n)/2-e.left-(a.globals.barPadForNumericAxis||0):null}placeHorizontalSharedTooltip(t){var e,s;const i=this.w,a=this.ttCtx,o=a.getElTooltip();if(!o)return!1;const r=a.getElGrid();if(!r)return!1;const n=r.getBoundingClientRect(),h=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}'],.apexcharts-boxPlot-series path[j='${t}']`);if(!h.length)return!1;let l=1/0,c=-1/0,d=1/0,f=-1/0;for(const _ of h){const E=_.parentNode;if(null!=(s=null==(e=E?.classList)?void 0:e.contains)&&s.call(e,"apexcharts-series-collapsed"))continue;const X=_.getBoundingClientRect();0===X.width&&0===X.height||(X.left<l&&(l=X.left),X.right>c&&(c=X.right),X.top<d&&(d=X.top),X.bottom>f&&(f=X.bottom))}if(!isFinite(l))return!1;const g=a.tooltipRect.ttWidth||0,p=a.tooltipRect.ttHeight||0,m=(l+c)/2-n.left+i.layout.translateX,A=i.layout.translateX,k=i.layout.translateX+i.layout.gridWidth;let D="top",C=d-n.top+i.layout.translateY-p-7;if(C<i.layout.translateY){const _=f-n.top+i.layout.translateY+7;_+p<=i.layout.translateY+i.layout.gridHeight&&(D="bottom",C=_)}let T=m-g/2;T<A&&(T=A),T+g>k&&(T=k-g);const M=Math.max(10,Math.min(g-10,m-T));return this.applyTooltipPosition(o,{x:T,y:C,placement:D,arrowY:null,arrowX:M}),!0}}function gs(y){const t=e=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${e}</svg>`;switch(y){case"square":case"rect":return t('<rect x="1" y="1" width="10" height="10" rx="1" fill="currentColor"/>');case"line":return t('<rect x="0" y="5" width="12" height="2" rx="1" fill="currentColor"/>');case"diamond":return t('<path d="M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z" fill="currentColor"/>');case"triangle":return t('<path d="M6 1 L11.2 10.5 L0.8 10.5 Z" fill="currentColor"/>');case"cross":return t('<path d="M2 2 L10 10 M10 2 L2 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"plus":return t('<path d="M6 1 L6 11 M1 6 L11 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"star":return t('<path d="M6 0.5 L7.5 4.4 L11.5 4.7 L8.4 7.2 L9.5 11.1 L6 8.9 L2.5 11.1 L3.6 7.2 L0.5 4.7 L4.5 4.4 Z" fill="currentColor"/>');case"sparkle":return t('<path d="M6 0.5 L7 5 L11.5 6 L7 7 L6 11.5 L5 7 L0.5 6 L5 5 Z" fill="currentColor"/>');default:return t('<circle cx="6" cy="6" r="5" fill="currentColor"/>')}}class Re{constructor(t){this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new Jt(t)}drawDynamicPoints(){const t=this.w,e=new L(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 n=s.getMarkerConfig({cssClass:r,seriesIndex:Number(o.getAttribute("data:realIndex"))}),h=e.drawMarker(0,0,n);h.node.setAttribute("default-marker-size",0);const l=F.createElementNS(H,"g");l.classList.add("apexcharts-series-markers"),l.appendChild(h.node),o.appendChild(l)}}}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 n=this.ttCtx.getElGrid();if(!n)return;const h=n.getBoundingClientRect();o=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(o,r,a.config.markers.hover.size)}}enlargePoints(t){var e,s;const i=this.w,a=this,o=this.ttCtx,r=t,n=i.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");let h=i.config.markers.hover.size;
1for(let l=0;l<n.length;l++){const c=n[l].getAttribute("rel"),d=n[l].getAttribute("index");if(void 0===h&&(h=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),r===parseInt(c??"0",10)){a.newPointSize(r,n[l]);const f=null!=(e=n[l].getAttribute("cx"))?e:"0",g=null!=(s=n[l].getAttribute("cy"))?s:"0";a.tooltipPosition.moveXCrosshairs(parseFloat(f)),o.fixedTooltip||a.tooltipPosition.moveTooltip(parseFloat(f),parseFloat(g),h)}else a.oldPointSize(n[l])}}newPointSize(t,e){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(S.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 n=this.ttCtx,h=this.w;if(t.target.classList.contains(`apexcharts-${a}-rect`)){const l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),f=this.getAttr(t,"cy"),g=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(n.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:l,j:c,shared:!1,e:t}),h.interact.capturedSeriesIndex=l,h.interact.capturedDataPointIndex=c,s=d+n.tooltipRect.ttWidth/2+g,i=f+n.tooltipRect.ttHeight/2-p/2,n.tooltipPosition.moveXCrosshairs(d+g/2),s>h.layout.gridWidth/2&&(s=d-n.tooltipRect.ttWidth/2+g),n.w.config.tooltip.followCursor){const u=h.dom.elWrap.getBoundingClientRect();s=(null!=(o=h.interact.clientX)?o:0)-u.left-(s>h.layout.gridWidth/2?n.tooltipRect.ttWidth:0),i=(null!=(r=h.interact.clientY)?r:0)-u.top-(i>h.layout.gridHeight/2?n.tooltipRect.ttHeight:0)}}return{x:s,y:i}}handleMarkerTooltip({e:t,opt:e,x:s,y:i}){const a=this.w,o=this.ttCtx;let r,n;if(t.target.classList.contains("apexcharts-marker")){const h=parseInt(e.paths.getAttribute("cx"),10),l=parseInt(e.paths.getAttribute("cy"),10),c=parseFloat(e.paths.getAttribute("val"));if(n=parseInt(e.paths.getAttribute("rel"),10),r=parseInt(e.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,o.intersect){const f=S.findAncestor(e.paths,"apexcharts-series");f&&(r=parseInt(f.getAttribute("data:realIndex"),10))}if(o.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:r,j:n,shared:!o.showOnIntersect&&a.config.tooltip.shared,e:t}),"mouseup"===t.type&&o.markerClick(t,r,n),a.interact.capturedSeriesIndex=r,a.interact.capturedDataPointIndex=n,s=h,a.config.tooltip.arrow?i=l:(i=l+a.layout.translateY-1.4*o.tooltipRect.ttHeight,c<0&&(i=l)),o.w.config.tooltip.followCursor){const f=o.getElGrid();if(!f)return{x:s,y:i};const g=f.getBoundingClientRect();i=o.e.clientY+a.layout.translateY-g.top}o.marker.enlargeCurrentPoint(n,e.paths,s,i)}return{x:s,y:i}}handleBarTooltip({e:t,opt:e}){var s,i,a;const o=this.w,r=this.ttCtx,n=r.getElTooltip();let f,h=0,l=0,c=0,d=0;const g=this.getBarTooltipXY({e:t,opt:e});if(null===g.j&&0===g.barHeight&&0===g.barWidth)return;d=g.i;const p=g.j;if(o.interact.capturedSeriesIndex=d,o.interact.capturedDataPointIndex=null!==p?p:o.interact.capturedDataPointIndex,o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!o.config.tooltip.shared?(l=g.x,c=g.y,f=Array.isArray(o.config.stroke.width)?o.config.stroke.width[d]:o.config.stroke.width,h=l):!o.globals.comboCharts&&!o.config.tooltip.shared&&(h/=2),isNaN(c)&&(c=o.globals.svgHeight-r.tooltipRect.ttHeight),l+r.tooltipRect.ttWidth>o.layout.gridWidth?l-=r.tooltipRect.ttWidth:l<0&&(l=0),(!r.w.config.tooltip.followCursor||r.getElGrid())&&(null===r.tooltip&&(r.tooltip=o.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||r.tooltipPosition.moveXCrosshairs(o.globals.comboBarCount>0?h+f/2:h),!r.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(c=c+o.layout.translateY-r.tooltipRect.ttHeight/2,n))){const u=r.tooltipRect.ttWidth||0,m=r.tooltipRect.ttHeight||0,x=!!o.config.tooltip.arrow,{barAnchorXInGrid:b,barAnchorYInGri
1d:w,barRectInGrid:v}=g,A=7,k=null==(s=r.getElGrid())?void 0:s.getBoundingClientRect(),D=o.dom.elWrap.getBoundingClientRect(),C=k?k.left-D.left:o.layout.translateX;let T,M=null,_=null,E=l+C,X=c;if(x&&o.globals.isBarHorizontal&&null!=v){const G=C+o.layout.gridWidth,I=(v.left+v.right)/2+C;let j=v.top+o.layout.translateY-m-A;if(T="top",j<o.layout.translateY){const ht=v.bottom+o.layout.translateY+A;ht+m<=o.layout.translateY+o.layout.gridHeight&&(T="bottom",j=ht)}X=j,E=I-u/2,E<C&&(E=C),E+u>G&&(E=G-u),_=Math.max(10,Math.min(u-10,I-E))}else if(x&&null!=b&&null!=w){const N=b+C,z=C+o.layout.gridWidth/2,O=(null!=(i=v?.left)?i:b)+C,G=(null!=(a=v?.right)?a:b)+C;if(N<z?(T="right",E=G+A):(T="left",E=O-u-A),v){X=(v.top+v.bottom)/2+o.layout.translateY-m/2;const R=o.layout.translateY,U=o.layout.translateY+o.layout.gridHeight;X<R&&(X=R),X+m>U&&(X=U-m)}m>0&&v&&(M=Math.max(10,Math.min(m-10,(v.top+v.bottom)/2+o.layout.translateY-X)))}r.tooltipPosition.applyTooltipPosition(n,{x:E,y:X,placement:T,arrowY:M,arrowX:_})}}getBarTooltipXY({e:t,opt:e}){const s=this.w;let i=null;const a=this.ttCtx;let o=0,r=0,n=0,h=0,l=0,c=null,d=null,f=null,g=null,p=null;const u=t.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){const m=t.target,x=m.getBoundingClientRect(),b=e.elGrid.getBoundingClientRect(),w=x.height;l=x.height;const v=x.width,A=parseInt(m.getAttribute("cx"),10),k=parseInt(m.getAttribute("cy"),10);c=A,d=k,h=parseFloat(m.getAttribute("barWidth"));const D=x.left-b.left,C=x.top-b.top;f=D+v/2,g=s.globals.isBarHorizontal?C+w/2:C,p={left:D,top:C,right:D+v,bottom:C+w};const _="touchmove"===t.type?t.touches[0].clientX:t.clientX;i=parseInt(m.getAttribute("j"),10),o=parseInt(m.parentNode.getAttribute("rel"),10)-1;const E=m.getAttribute("data-range-y1"),X=m.getAttribute("data-range-y2");s.globals.comboCharts&&(o=parseInt(m.parentNode.getAttribute("data:realIndex"),10));const N=O=>s.axisFlags.isXNumeric?A-v/2:this.isVerticalGroupedRangeBar?A+v/2:A-a.dataPointsDividedWidth+v/2,z=()=>k-a.dataPointsDividedHeight+w/2-a.tooltipRect.ttHeight/2;a.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:o,j:i,y1:E?parseInt(E,10):null,y2:X?parseInt(X,10):null,shared:!a.showOnIntersect&&s.config.tooltip.shared,e:t}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(r=_-b.left+15,n=z()):(r=N(r),n=t.clientY-b.top-a.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?(r=A,a.xyRatios&&r<a.xyRatios.baseLineInvertedY&&(r=A-a.tooltipRect.ttWidth),n=z()):(r=N(r),n=k)}return{x:r,y:n,barHeight:l,barWidth:h,i:o,j:i,barCx:c,barCy:d,barAnchorXInGrid:f,barAnchorYInGrid:g,barRectInGrid:p}}}class Be{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 n=a.formatters.yLabelFormatters[t],h=i.getElGrid();if(!h)return;const l=h.getBoundingClientRect(),c=r[0];let d=0;s.yRatio.length>1&&(d=c);const f=(e-l.top)*s.yRatio[d],g=o.maxYArr[c]-o.minYArr[c];let p=o.minYArr[c]+(g-f);a.config.yaxis[t].reversed&&(p=o.maxYArr[c]-(g-f)),i.tooltipPosition.moveYCrosshairs(e-l.top),i.yaxisTooltipText[t].innerHTML=n(p),i.tooltipPosition.moveYAxisTooltip(t)}}}class He{constructor(t,e){this.w=t,this.ctx=e,this.tConfig=t.config.tooltip,this.tooltipUtil=new Kt(this),this.tooltipLabels=new Ne(this),this.tooltipPosition=new Jt(this),this.marker=new Re(this),this.intersect=ne
1w Ye(this),this.axesTooltip=new Be(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(n=>!!(n.show&&n.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"}`),this.tConfig.fillSeriesColor&&i.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&i.style.setProperty("--apx-tt-bg",this.tConfig.style.background),this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&(!(this.tConfig.shared&&e.config.series.length>1)||e.globals.isBarHorizontal)&&!this.tConfig.fillSeriesColor&&e.globals.axisCharts){const n=F.createElementNS("http://www.w3.org/1999/xhtml","div");n.classList.add("apexcharts-tooltip-arrow"),i.appendChild(n)}if(e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&(i.setAttribute("role","tooltip"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-hidden","true")),e.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();const n=new pt(this.w,this.ctx,void 0);this.xAxisTicksPositions=n.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 r=e.seriesData.series.length;
vendor: 4,957 bytes, line 1
1(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:e.seriesData.series.length),this.legendLabels=e.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),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 n=e.config.markers.shape;let h=n;Array.isArray(n)&&(h=n[a]),r.setAttribute("shape",h),r.innerHTML=gs(h),o.appendChild(r);const l=F.createElementNS("http://www.w3.org/1999/xhtml","div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,l.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(c=>{const d=F.createElementNS("http://www.w3.org/1999/xhtml","div");d.classList.add(`apexcharts-tooltip-${c}-group`);const f=F.createElementNS("http://www.w3.org/1999/xhtml","span");f.classList.add(`apexcharts-tooltip-text-${c}-label`),d.appendChild(f);const g=F.createElementNS("http://www.w3.org/1999/xhtml","span");g.classList.add(`apexcharts-tooltip-text-${c}-value`),d.appendChild(g),l.appendChild(d)}),o.appendChild(l),i.appendChild(o),s.push(o)}return s}addSVGEvents(){const t=this.w,e=t.config.chart.type,s=this.getElTooltip();if(!s)return;const i="bar"===e||"candlestick"===e||"boxPlot"===e||"violin"===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 n=[],h=[],l={hoverArea:o,elGrid:r,tooltipEl:s,tooltipY:n,tooltipX:h,ttItems:this.ttItems};let c;if(t.globals.axisCharts&&(a?c=t.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?c=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-violin-area, .apexcharts-series .apexcharts-rangebar-area"):("heatmap"===e||"treemap"===e)&&(c=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),c&&c.length))for(let f=0;f<c.length;f++)n.push(c[f].getAttribute("cy")),h.push(c[f].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],l);else if(i&&!t.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(l);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){const f=t.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(f,l)}if(this.showOnIntersect){const f=t.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,l),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(l)}}drawFixedTooltipRect(){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 n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(o=o+t.globals.svgWidth-i+10),n.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-a-10),this.tooltipPosition.applyTooltipPosition(e,{x:o,y:r}),{x:o,y:r,ttWidth:i,ttHeight:a}}addDatapointEventsListeners(t){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 et(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(),n="touchmove"===t.type?t.touches[0].clientX:t.clientX,h="touchmove"===t.type?t.touches[0].clientY:t.clientY;if(this.clientY=h,this.clientX=n,i.interact.capturedSeriesIndex=-1,i.interact.capturedDataPointIndex=-1,h<r.top||h>r.top+r.height)return void this.handleMouseOut(e);if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){const g=parseInt(e.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(e)}const l=this.getElTooltip();if(!l)return;const c=this.getElXCrosshairs();let d=[];i.config.chart.group&&(d=this.ctx.getSyncedCharts());const f=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!==c&&c.classList.add("apexcharts-active");const g=null==(s=this.yaxisTooltips)?void 0:s.filter(u=>!0===u),p=this.ycrosshairs;if(null!==p&&g?.length&&p.classList.add("apexcharts-active"),f&&!this.showOnIntersect||d.length>1)this.handleStickyTooltip(t,n,h,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,l.style.left=a+"px",l.style.top=o+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:t,opt:e}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e:t,opt:e,x:a,y:o});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let u=0;u<i.config.yaxis.length;u++)this.axesTooltip.drawYaxisTooltipText(u,h,this.xyRatios);i.dom.baseEl.classList.add("apexcharts-tooltip-active"),e.tooltipEl.classList.add("apexcharts-active"),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&e.tooltipEl.removeAttribute("aria-hidden")}else("mouseout"===t.type||"touchend"===t.type)&&this.handleMouseOut(e)}nonAxisChartsTooltips({e:t,opt:e,tooltipRect:s}){var i,a,o,r;const n=this.w,h=e.paths.getAttribute("rel"),l=this.getElTooltip();if(!l)return;const c=n.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){let d,f;n.dom.baseEl.classList.add("apexcharts-tooltip-active"),l.classList.add("apexcharts-active"),n.config.chart.accessibility.enabled&&n.config.chart.accessibility.announcements.enabled&&l.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:parseInt(h,10)-1,shared:!1});const g=e.paths.querySelector("path[data\\:cx]")||e.paths;if(n.config.tooltip.intersect&&g.hasAttribute("data:cx")&&g.hasAttribute("data:cy")){const p=n.dom.Paper.node.getBoundingClientRect();d=p.left-c.left+parseFloat(g.getAttribute("data:cx"))-s.ttWidth/2,f=p.top-c.top+parseFloat(g.getAttribute("data:cy"))-s.ttHeight-10}else d=(null!=(i=n.interact.clientX)?i:0)-c.left-s.ttWidth/2,f=(null!=(a=n.interact.clientY)?a:0)-c.top-s.ttHeight-10;if(l.style.left=d+"px",l.style.top=f+"px",n.config.legend.tooltipHoverFormatter){const u=h-1,m=null==(o=this.legendLabels)?void 0:o[u];if(!m)return;
1const b=(0,n.config.legend.tooltipHoverFormatter)(m.getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:n});m.innerHTML=b}}else("mouseout"===t.type||"touchend"===t.type)&&(l.classList.remove("apexcharts-active"),n.dom.baseEl.classList.remove("apexcharts-tooltip-active"),n.config.legend.tooltipHoverFormatter&&(null==(r=this.legendLabels)||r.forEach(d=>{const f=d.getAttribute("data:default-text");d.innerHTML=decodeURIComponent(f??"")})))}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 n=o.capturedSeries;null!==n&&a.globals.collapsedSeriesIndices.includes(n??-1)&&(n=null);const h=i.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>h.width)this.handleMouseOut(i);else if(null!==n)this.handleStickyCapturedSeries(t,n??-1,i,r??0);else if(this.tooltipUtil.isXoverlap(r??0)||a.globals.isBarHorizontal){const l=a.seriesData.series.findIndex((c,d)=>!a.globals.collapsedSeriesIndices.includes(d));this.create(t,this,l,r??0,i.ttItems)}}handleStickyCapturedSeries(t,e,s,i){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,n)=>!a.globals.collapsedSeriesIndices.includes(n));this.create(t,this,o,i,s.ttItems)}}else this.handleMouseOut(s)}deactivateHoverFilter(){const t=this.w,e=new L(this.w,this.ctx),s=t.dom.Paper.find(".apexcharts-bar-area");for(let i=0;i<s.length;i++)e.pathMouseLeave(s[i],void 0)}handleMouseOut(t){var e,s;const i=this.w,a=this.getElXCrosshairs();i.dom.baseEl.classList.remove("apexcharts-tooltip-active"),t.tooltipEl.classList.remove("apexcharts-active"),delete t.tooltipEl.dataset.positioned,i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&t.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),"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 n=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(n??"")}))}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,n,h,l,c,d,f,g,p,u,m,x,b,w,v,A,k,D,C;const T=this.w,M=e;"mouseup"===t.type&&this.markerClick(t,s,i),null===o&&(o=this.tConfig.shared);const _=this.tooltipUtil.hasMarkers(s),E=this.tooltipUtil.getElBars(),X=()=>{T.globals.markers.largestSize>0?M.marker.enlargePoints(i):M.tooltipPosition.moveDynamicPointsOnHover(i)};if(T.config.legend.tooltipHoverFormatter){const O=T.config.legend.tooltipHoverFormatter,G=Array.from(null!=(r=this.legendLabels)?r:[]);G.forEach(I=>{const R=I.getAttribute("data:default-text");I.innerHTML=decodeURIComponent(R??"")});for(let I=0;I<G.length;I++){const R=G[I],U=parseInt(null!=(n=R.getAttribute("i"))?n:"",10),j=decodeURIComponent(null!=(h=R.getAttribute("data:default-text"))?h:""),ht=O(j,{seriesIndex:o?U:s,dataPointIndex:i,w:T});if(o)R.innerHTML=T.globals.collapsedSeriesIndices.indexOf(U)<0?ht:j;else if(R.innerHTML=U===s?ht:j,s===U)break}}const N=T.rangeData,z=B(B({ttItems:a,i:s,j:i},void 0!==(null==(f=null==(d=null==(c=null==(l=N.seriesRange)?void 0:l[s])?void 0:c[i])?void 0:d.y[0])?void 0:f.y1)&&{y1:null==(m=null==(u=null==(p=null==(g=N.seriesRange)?void 0:g[s])?void 0:p[i])?void 0:u.y[0])?void 0:m.y1}),void 0!==(null==(v=null==(w=null==(b=null==(x=N.seriesRange)?void 0:x[s])?void 0:b[i])?void 0:w.y[0])?void 0:v.y2)&&{y2:null==(C=null==(D=null==(k=null==(A=N.seriesRange)?void 0:A[s])?void 0:k[i])?void 0:D.y[0])?void 0:C.y2});if(o){if(M.tooltipLabels.drawSeriesTexts(V(B({},z),{shared:!this.showOnIntersect&&this.tConfig.shared})),_)X();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...E]),this.barSeriesHeight>0)){const O=new L(this.w,this.ctx),G=T.dom.Paper.find(`.apexcharts-bar-area[j='${i}']`);this.deactivateHoverFilter(),M.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&X(),M.tooltipPosition.moveStickyTooltipOverBars(i,s);for(let R=0;R<G.length;R++)O.pathMouseEnter(G[R],void 0)}}else M.tooltipLabels.drawSeriesTexts(B({shared:!1},z)),this.tooltipUtil.hasBars()&&M.tooltipPosition.moveStickyTooltipOverBars(i,s),_&&M.tooltipPosition.moveMarkers(s,i)}}class W{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 W(e))}findOne(t){const e=this.node.querySelector(t);return e?e.instance||new W(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))}
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 W(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 W(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 W(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 ps=0;class Oe extends W{constructor(t,e,s){super(F.createElementNS(H,"radial"===e?"radialGradient":"linearGradient")),this._id="SvgjsGradient"+ ++
vendor: 4,747 bytes, line 1
1ps,this.attr("id",this._id),"function"==typeof s&&s(new us(this));let o=t.node.querySelector("defs");o||(o=F.createElementNS(H,"defs"),t.node.appendChild(o)),o.appendChild(this.node)}stop(t,e,s){const i=F.createElementNS(H,"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 us{constructor(t){this.gradient=t}stop(t,e,s){return this.gradient.stop(t,e,s),this}}let xs=0;class ze extends W{constructor(t,e,s,i){super(F.createElementNS(H,"pattern")),this._id="SvgjsPattern"+ ++xs,this.attr({id:this._id,width:e,height:s,patternUnits:"userSpaceOnUse"}),"function"==typeof i&&i(new xt(this.node));let o=t.node.querySelector("defs");o||(o=F.createElementNS(H,"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 xt extends W{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(H,"text");e.textContent=t;const s=new W(e);return this.node.appendChild(e),s}text(t){const e=F.createElementNS(H,"text"),s=new W(e);return this.node.appendChild(e),"function"==typeof t&&t(new ms(e)),s}image(t,e){const s=F.createElementNS(H,"image");s.setAttributeNS("http://www.w3.org/1999/xlink","href",t);const i=new W(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 Oe(this,t,e)}pattern(t,e,s){return new ze(this,t,e,s)}_make(t){const e=F.createElementNS(H,t);return this.node.appendChild(e),new W(e)}_makeContainer(t){const e=F.createElementNS(H,t);return this.node.appendChild(e),new xt(e)}}class ms{constructor(t){this.textNode=t}tspan(t){const e=F.createElementNS(H,"tspan");return e.textContent=t,this.textNode.appendChild(e),new bs(e,this.textNode)}}class bs{constructor(t,e){this.node=t,this.textNode=e}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}}let ys=0;class Ie extends W{constructor(){super(F.createElementNS(H,"filter")),this._id="SvgjsFilter"+ ++ys,this.attr("id",this._id)}size(t,e,s,i){return this.attr({width:t,height:e,x:s,y:i})}}class We{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(H,"feMerge");return t.forEach(s=>{const i=F.createElementNS(H,"feMergeNode");i.setAttribute("in",s),e.appendChild(i)}),this.filter.node.appendChild(e),new W(e)}_primitive(t,e){const s=F.createElementNS(H,t);for(const i in e)s.setAttribute(i,e[i]);return this.filter.node.appendChild(s),new W(s)}}function Ge(y){y.prototype.filterWith=function(t){const e=new Ie;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(H,"defs"),s.insertBefore(i,s.firstChild)),i.appendChild(e.node)}return t(new We(e)),this.attr("filter","url(#"+e._id+")"),this},y.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},y.prototype.filterer=function(){return this._filter}}function vt(y){if(!y||"string"!=typeof y)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(y));)a.push(i[1]),o.push(i.index);for(let r=0;r<a.length;r++){const l=y.substring(o[r]+a[r].length,r+1<o.length?o[r+1]:y.length),c=[];let d;for(s.lastIndex=0;null!==(d=s.exec(l));)c.push(parseFloat(d[0]));const f=a[r].toUpperCase();if("Z"===f)t.push(["Z"]);else if("M"===f||"L"===f||"T"===f)for(let g=0;g<c.length;g+=2)t.push([f,c[g],c[g+1]]);else if("H"===f)for(let g=0;g<c.length;g++)t.push([f,c[g]]);
1else if("V"===f)for(let g=0;g<c.length;g++)t.push([f,c[g]]);else if("C"===f)for(let g=0;g<c.length;g+=6)t.push([f,c[g],c[g+1],c[g+2],c[g+3],c[g+4],c[g+5]]);else if("S"===f||"Q"===f)for(let g=0;g<c.length;g+=4)t.push([f,c[g],c[g+1],c[g+2],c[g+3]]);else if("A"===f)for(let g=0;g<c.length;g+=7)t.push([f,c[g],c[g+1],c[g+2],c[g+3],c[g+4],c[g+5],c[g+6]])}return 0===t.length&&t.push(["M",0,0]),t}function At(y){let t=1/0,e=1/0,s=-1/0,i=-1/0;return y.forEach(a=>{for(let o=1;o<a.length;o+=2)if(o+1<=a.length){const r=a[o],n=a[o+1];"number"==typeof r&&"number"==typeof n&&(r<t&&(t=r),r>s&&(s=r),n<e&&(e=n),n>i&&(i=n))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:e,width:s-t,height:i-e}}function Ue(y){return y.map(t=>t.join(" ")).join(" ")}function Ve(y){switch(y[0]){case"z":case"Z":y[0]="L",y[1]=this.start[0],y[2]=this.start[1];break;case"H":y[0]="L",y[2]=this.pos[1];break;case"V":y[0]="L",y[2]=y[1],y[1]=this.pos[0];break;case"T":y[0]="Q",y[3]=y[1],y[4]=y[2],y[1]=this.reflection[1],y[2]=this.reflection[0];break;case"S":y[0]="C",y[6]=y[4],y[5]=y[3],y[4]=y[2],y[3]=y[1],y[2]=this.reflection[1],y[1]=this.reflection[0]}return y}function $e(y){var t=y.length;return this.pos=[y[t-2],y[t-1]],-1!="SCQT".indexOf(y[0])&&(this.reflection=[2*this.pos[0]-y[t-4],2*this.pos[1]-y[t-3]]),y}function qe(y){var t,e=[y];switch(y[0]){case"M":return this.pos=this.start=[y[1],y[2]],e;case"L":y[5]=y[3]=y[1],y[6]=y[4]=y[2],y[1]=this.pos[0],y[2]=this.pos[1];break;case"Q":y[6]=y[4],y[5]=y[3],y[4]=1*y[4]/3+2*y[2]/3,y[3]=1*y[3]/3+2*y[1]/3,y[2]=1*this.pos[1]/3+2*y[2]/3,y[1]=1*this.pos[0]/3+2*y[1]/3;break;case"A":e=function ws(y,t){var c,d,f,g,p,u,m,x,b,w,v,A,k,D,C,T,M,_,E,X,N,z,e=Math.abs(t[1]),s=Math.abs(t[2]),i=t[3]%360,a=t[4],o=t[5],r=t[6],n=t[7],h=new J(y[0],y[1]),l=new J(r,n),O=[];if(0===e||0===s||h.x===l.x&&h.y===l.y)return[["C",h.x,h.y,l.x,l.y,l.x,l.y]];for((d=(c=new J((h.x-l.x)/2,(h.y-l.y)/2).transform((new st).rotate(i))).x*c.x/(e*e)+c.y*c.y/(s*s))>1&&(e*=d=Math.sqrt(d),s*=d),f=(new st).rotate(i).scale(1/e,1/s).rotate(-i),h=h.transform(f),u=(g=[(l=l.transform(f)).x-h.x,l.y-h.y])[0]*g[0]+g[1]*g[1],p=Math.sqrt(u),g[0]/=p,g[1]/=p,m=u<4?Math.sqrt(1-u/4):0,a===o&&(m*=-1),x=new J((l.x+h.x)/2+m*-g[1],(l.y+h.y)/2+m*g[0]),b=new J(h.x-x.x,h.y-x.y),w=new J(l.x-x.x,l.y-x.y),v=Math.acos(b.x/Math.sqrt(b.x*b.x+b.y*b.y)),b.y<0&&(v*=-1),A=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(A*=-1),o&&v>A&&(A+=2*Math.PI),!o&&v<A&&(A-=2*Math.PI),T=[],M=v,k=(A-v)/(D=Math.ceil(2*Math.abs(v-A)/
vendor: 4,139 bytes, line 1
1Math.PI)),C=4*Math.tan(k/4)/3,N=0;N<=D;N++)E=Math.cos(M),_=Math.sin(M),X=new J(x.x+E,x.y+_),T[N]=[new J(X.x+C*_,X.y-C*E),X,new J(X.x-C*_,X.y+C*E)],M+=k;for(T[0][0]=T[0][1].clone(),T[T.length-1][2]=T[T.length-1][1].clone(),f=(new st).rotate(i).scale(e,s).rotate(-i),N=0,z=T.length;N<z;N++)T[N][0]=T[N][0].transform(f),T[N][1]=T[N][1].transform(f),T[N][2]=T[N][2].transform(f);for(N=1,z=T.length;N<z;N++)O.push(["C",(X=T[N-1][2]).x,X.y,(X=T[N][0]).x,X.y,r=(X=T[N][1]).x,n=X.y]);return O}(null!=(t=this.pos)?t:[],y),y=e[0]}return y[0]="C",this.pos=[y[5],y[6]],this.reflection=[2*y[5]-y[3],2*y[6]-y[4]],e}function je(y,t){if(!1===t)return!1;for(var e=t,s=y.length;e<s;++e)if("M"==y[e][0])return e;return!1}function vs(y,t,e,s,i,a){for(var o=y.slice(t,e||void 0),r=s.slice(i,a||void 0),n=0,h={pos:[0,0],start:[0,0]},l={pos:[0,0],start:[0,0]};o[n]=Ve.call(h,o[n]),r[n]=Ve.call(l,r[n]),o[n][0]!=r[n][0]||"M"==o[n][0]||"A"==o[n][0]&&(o[n][4]!=r[n][4]||o[n][5]!=r[n][5])?(Array.prototype.splice.apply(o,[n,1].concat(qe.call(h,o[n]))),Array.prototype.splice.apply(r,[n,1].concat(qe.call(l,r[n])))):(o[n]=$e.call(h,o[n]),r[n]=$e.call(l,r[n])),++n!=o.length||n!=r.length;)n==o.length&&o.push(["C",h.pos[0],h.pos[1],h.pos[0],h.pos[1],h.pos[0],h.pos[1]]),n==r.length&&r.push(["C",l.pos[0],l.pos[1],l.pos[0],l.pos[1],l.pos[0],l.pos[1]]);return{start:o,dest:r}}function Ze(y,t){var e=function As(y,t){for(var n,e=vt(y),s=vt(t),i=0,a=0,o=!1,r=!1;!1!==i||!1!==a;){if(o=je(e,!1!==i&&i+1),r=je(s,!1!==a&&a+1),!1===i){const h=At(n.start);i=0==h.height||0==h.width?e.push(e[0])-1:e.push(["M",h.x+h.width/2,h.y+h.height/2])-1}if(!1===a){const h=At(n.dest);a=0==h.height||0==h.width?s.push(s[0])-1:s.push(["M",h.x+h.width/2,h.y+h.height/2])-1}n=vs(e,i,o,s,a,r),e=e.slice(0,i).concat(n.start,!1===o?[]:e.slice(o)),s=s.slice(0,a).concat(n.dest,!1===r?[]:s.slice(r)),i=!1!==o&&i+n.start.length,a=!1!==r&&a+n.dest.length}return{start:e,dest:s}}(y,t),s=e.start,i=e.dest;return function(a){return Ue(s.map(function(r,n){return i[n].map(function(h,l){return 0===l?h:r[l]+(i[n][l]-r[l])*a})}))}}let ct=null,St=null;function Ke(y,t){const e=new Array(t);if(!P.isBrowser()){const a=At(vt(y)),o=a.x+a.width/2,r=a.y+a.height/2;for(let n=0;n<t;n++)e[n]={x:o,y:r};return e}ct||(ct=document.createElementNS("http://www.w3.org/2000/svg","svg"),ct.setAttribute("width","0"),ct.setAttribute("height","0"),ct.setAttribute("style","position:absolute;width:0;height:0;visibility:hidden;pointer-events:none;"),St=document.createElementNS("http://www.w3.org/2000/svg","path"),ct.appendChild(St),document.body.appendChild(ct)),St.setAttribute("d",y||"M0 0");let s=0;try{s=St.getTotalLength()}catch{s=0}if(!s||!isFinite(s)){const a=At(vt(y)),o=a.x+a.width/2,r=a.y+a.height/2;for(let n=0;n<t;n++)e[n]={x:o,y:r};return e}for(let i=0;i<t;i++)try{const a=St.getPointAtLength(i/t*s);e[i]={x:a.x,y:a.y}}catch{e[i]={x:0,y:0}}return e}function Je(y){if(!y||"string"!=typeof y)return null;if("#"===y[0]){let e=y.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=y.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 ks(y,t,e){return`rgba(${Math.round(y[0]+(t[0]-y[0])*e)},${Math.round(y[1]+(t[1]-y[1])*e)},${Math.round(y[2]+(t[2]-y[2])*e)},${y[3]+(t[3]-y[3])*e})`}class Nt{constructor(t,e,s){this.el=t,this.duration=e??300,this.delay=s||0,this._attrTarget=null,this._plotTarget=null,this._plotAlgorithm="commands",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,e){return this._plotTarget=t,e&&(this._plotAlgorithm=e),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 Nt(this.el,t,e);return this._next=s,s._root=this._root||this,s}_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=>
vendor: 4,112 bytes, line 1
1{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 c of Object.keys(this._attrTarget)){const d=e.attr(c);a[c]=d;const f=Je(d),g=Je(String(this._attrTarget[c]));f&&g&&(o[c]=f,r[c]=g)}let n=null;if(this._plotTarget){const c=e.attr("d")||"";try{n="polygons"===this._plotAlgorithm?function Ss(y,t,e=96){const s=Ke(y,e),i=Ke(t,e);let a=0,o=1/0;for(let n=0;n<e;n++){let h=0;for(let l=0;l<e;l++){const c=s[(l+n)%e],d=i[l],f=c.x-d.x,g=c.y-d.y;if(h+=f*f+g*g,h>=o)break}h<o&&(o=h,a=n)}const r=new Array(e);for(let n=0;n<e;n++)r[n]=s[(n+a)%e];return function(n){let h="";for(let l=0;l<e;l++){const c=r[l],d=i[l],g=c.y+(d.y-c.y)*n;h+=(0===l?"M":"L")+(c.x+(d.x-c.x)*n).toFixed(3)+" "+g.toFixed(3)+" "}return h+"Z"}}(c,this._plotTarget):Ze(c,this._plotTarget)}catch{n=null}}const h=performance.now(),l=c=>{const f=Math.min((c-h)/s,1),g=function Cs(y){return-Math.cos(y*Math.PI)/2+.5}(f);if(this._attrTarget)if(f>=1)e.attr(this._attrTarget);else{const p={};for(const u of Object.keys(this._attrTarget))if(o[u]&&r[u])p[u]=ks(o[u],r[u],g);else{const m=parseFloat(a[u]),x=parseFloat(this._attrTarget[u]);!isNaN(m)&&!isNaN(x)&&(p[u]=m+(x-m)*g)}e.attr(p)}n&&f<1&&e.attr("d",n(g)),this._duringCb&&this._duringCb(g),f<1?F.requestAnimationFrame(l):(this._plotTarget&&e.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(e))};F.requestAnimationFrame(l)};t>0?setTimeout(i,t):i()}}function Qe(y){y.prototype.animate=function(t,e){return new Nt(this,t,e)}}function ts(y){y.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,n=e.node,h=parseFloat(n.getAttribute("x"))||0,l=parseFloat(n.getAttribute("y"))||0,c=r.clientX,d=r.clientY,f=n.ownerSVGElement;let g=null;f&&(g=f.getScreenCTM());const p=m=>{const x="touchmove"===m.type?m.touches[0]:m;let b=x.clientX-c,w=x.clientY-d;g&&(b/=g.a,w/=g.d);let v=h+b,A=l+w;const k=parseFloat(n.getAttribute("width"))||0,D=parseFloat(n.getAttribute("height"))||0;void 0!==s.minX&&v<s.minX&&(v=s.minX),void 0!==s.minY&&A<s.minY&&(A=s.minY),void 0!==s.maxX&&v+k>s.maxX&&(v=s.maxX-k),void 0!==s.maxY&&A+D>s.maxY&&(A=s.maxY-D);const T=new CustomEvent("dragmove",{detail:{handler:{move:function(M,_){n.setAttribute("x",M),n.setAttribute("y",_)}},box:{x:v,y:A,w:k,h:D,x2:v+k,y2:A+D}}});n.dispatchEvent(T)},u=()=>{P.isBrowser()&&(document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",u),document.removeEventListener("touchend",u))};P.isBrowser()&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",p),document.addEventListener("mouseup",u),document.addEventListener("touchend",u))};return e.node.addEventListener("mousedown",i),e.node.addEventListener("touchstart",i),e._dragCleanup=()=>{e.node.removeEventListener("mousedown",i),e.node.removeEventListener("touchstart",i)},e}}function es(y){y.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(H,"g");a.setAttribute("class","svg_select_points");const o=e.node.parentNode;o&&o.appendChild(a);const r={},n=["t","b","l","r","lt","rt","lb","rb"];n.forEach((l,c)=>{const d=new xt(document.createElementNS(H,"g"));a.appendChild(d.node);const f=s(d,[0,0],c,[],l);r[l]={group:d,handle:f}});const h=()=>{const l=parseFloat(e.attr("x"))||0,c=parseFloat(e.attr("y"))||0,d=parseFloat(e.attr("width"))||0,f=parseFloat(e.attr("height"))||0,g=e.node.getAttribute("transform");g?a.setAttribute("transform",g):a.removeAttribute("transform");const p={t:[l+d/2,c],b:[l+d/2,c+f],l:[l,c+f/2],r:[l+d,c+f/2],lt:[l,c],rt:[l+d,c],lb:[l,c+f],rb:[l+d,c+f]};
1n.forEach(u=>{r[u]&&p[u]&&i(r[u].group,p[u])})};return h(),e._selectHandles=a,e._selectHandlesMap=r,e._updateSelectPositions=h,e._selectCleanup=()=>{a.parentNode&&a.parentNode.removeChild(a),e._selectHandles=null,e._selectHandlesMap=null,e._updateSelectPositions=null},e},y.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 n=r.group.node,h=l=>{if(l.button&&0!==l.button)return;l.stopPropagation();const f=("touchstart"===l.type?l.touches[0]:l).clientX,g=e.node.ownerSVGElement;let p=null;g&&(p=g.getScreenCTM());const u=parseFloat(e.attr("x"))||0,m=parseFloat(e.attr("width"))||0,x=w=>{let A=("touchmove"===w.type?w.touches[0]:w).clientX-f;p&&(A/=p.a);let k=u,D=m;"l"===o?(k=u+A,D=m-A):"r"===o&&(D=m+A),D<0&&(D=0),e.attr({x:k,width:D}),e._updateSelectPositions&&e._updateSelectPositions();const C=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(C)},b=()=>{P.isBrowser()&&(document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x),document.removeEventListener("mouseup",b),document.removeEventListener("touchend",b));const w=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(w)};P.isBrowser()&&(document.addEventListener("mousemove",x),document.addEventListener("touchmove",x),document.addEventListener("mouseup",b),document.addEventListener("touchend",b))};n.addEventListener("mousedown",h),n.addEventListener("touchstart",h),i.push(()=>{n.removeEventListener("mousedown",h),n.removeEventListener("touchstart",h)})};return a("l"),a("r"),e._resizeCleanup=()=>{i.forEach(o=>o())},e}}function Ct(){const y=F.createElementNS(H,"svg"),t=new xt(y);return t.attr({xmlns:H}),t}Ge(W),Qe(W),ts(W),es(W),Ct.xlink="http://www.w3.org/1999/xlink",P.isBrowser()&&typeof window.SVG>"u"&&(window.SVG=Ct),P.isBrowser()?(typeof window.SVG>"u"&&(window.SVG=Ct),typeof window.Apex>"u"&&(window.Apex={})):typeof global<"u"&&(typeof global.Apex>"u"&&(global.Apex={}),typeof global.SVG>"u"&&(global.SVG=Ct));const ss=class se{static registerFeatures(t){for(const[e,s]of Object.entries(t))se._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","drillDown","drillUp","drillToRoot","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend","keydown","keyup"],this.ctx.animations=new _t(this.w,this.ctx),this.ctx.axes=new ye(this.w,this.ctx),this.ctx.core=new Pe(this.ctx.el,this.w,this.ctx),this.ctx.config=new gt({}),this.ctx.data=new it(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new Vt(this.w,this.ctx),this.ctx.graphics=new L(this.w,this.ctx),this.ctx.coreUtils=new K(this.w),this.ctx.crosshairs=new Xt(this.w),this.ctx.events=new me(this.w,this.ctx),this.ctx.fill=new Gt(this.w),this.ctx.localization=new be(this.w),this.ctx.options=new ot,this.ctx.responsive=new ve(this.w),this.ctx.series=new et(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 Ae(this.w),this.ctx.formatters=new dt(this.w),this.ctx.titleSubtitle=new Se(this.w),this.ctx.dimensions=new $t(this.w,this.ctx),this.ctx.updateHelpers=new Xe(this.w,this.ctx);const t=new He(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=se._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("morphTypeChange");s.morphTypeChange=o?new o(e,s):null;const r=t.get("drilldown");s.drilldown=r?new r(e,s):null;const n=t.get("toolbar");Object.defineProperty(s,"toolbar",{get(){var c;
1return!this._toolbar&&n&&(this._toolbar=new n(e,this)),null!=(c=this._toolbar)?c:null},configurable:!0});const h=t.get("zoomPanSelection");Object.defineProperty(s,"zoomPanSelection",{get(){var c;return!this._zoomPanSelection&&h&&(this._zoomPanSelection=new h(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})}};Y(ss,"_featureRegistry",new Map);let kt=ss;class Qt{constructor(t){this.ctx=t,this.w=t.w}clear({isUpdating:t}){t||(this.w.globals.isDestroyed=!0),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),Lt.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(P.isBrowser()&&e.Paper){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 te=new WeakMap;function is(y,t){if(P.isSSR())return;let e=!1;if(y.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){const i=y.getBoundingClientRect();("none"===y.style.display||0===i.width)&&(e=!0)}const s=new ResizeObserver(i=>{e&&t.call(y,i),e=!0});y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(y.children).forEach(i=>s.observe(i)):s.observe(y),te.set(t,s)}function as(y,t){if(P.isSSR())return;const e=te.get(t);e&&(e.disconnect(),te.delete(t))}class ee{constructor(t,e){Y(this,"core"),Y(this,"responsive"),Y(this,"axes"),Y(this,"grid"),Y(this,"graphics"),Y(this,"coreUtils"),Y(this,"crosshairs"),Y(this,"events"),Y(this,"fill"),Y(this,"localization"),Y(this,"options"),Y(this,"series"),Y(this,"theme"),Y(this,"formatters"),Y(this,"titleSubtitle"),Y(this,"dimensions"),Y(this,"updateHelpers"),Y(this,"tooltip"),Y(this,"data"),Y(this,"animations"),Y(this,"exports"),Y(this,"legend"),Y(this,"toolbar"),Y(this,"zoomPanSelection"),Y(this,"keyboardNavigation"),Y(this,"annotations"),Y(this,"morphTypeChange"),Y(this,"timeScale"),Y(this,"_keyboardNavigation"),Y(this,"windowResizeHandler"),Y(this,"parentResizeHandler"),Y(this,"publicMethods",[]),Y(this,"eventList",[]),Y(this,"config"),this.opts=e,this.ctx=this,this.w=new ce(e).init(),this.el=t,this.w.globals.cuid=S.randomId(),this.w.globals.chartID=this.w.config.chart.id?S.escapeString(this.w.config.chart.id):this.w.globals.cuid,fe(this.w),new kt(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),P.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var t,e;return null!=(e=null==(t=this.w)?void 0:t.config)&&e.chart?new Promise((s,i)=>{var a;if(S.elementExists(this.el)){typeof Apex._chartInstances>"u"&&(Apex._chartInstances=[]),this.w.config.chart.id&&Apex._chartInstances.push({id:this.w.globals.chartID,group:this.w.config.chart.group,chart:this}),this.setLocale(this.w.config.chart.defaultLocale);const o=this.w.config.chart.events.beforeMount;if("function"==typeof o&&o(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),P.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),is(this.el.parentNode,this.parentResizeHandler);const n=this.el.getRootNode&&this.el.getRootNode(),h=S.is("ShadowRoot",n),l=this.el.ownerDocument;let c=h?n.getElementById("apexcharts-css"):l.getElementById("apexcharts-css");if(!c){c=F.createElementNS("http://www.w3.org/1999/xhtml","style"),c.id="apexcharts-css",c.textContent='@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 /* Focus indicator colour. Themes override below. */\n --apexcharts-focus-color: #008FFB;\n}\n\n/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */\n.apexcharts-canvas .apexcharts-theme-dark,\n.apexcharts-theme-dark.apexcharts-canvas {\n --apexcharts-focus-color: #FFD500;\n}\n.apexcharts-canvas.apexcharts-high-contrast,\n.apexcharts-high-contrast.apexcharts-canvas {\n --apexcharts-focus-color: #FFFF00;\n}\n\n/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */\n.apexcharts-sr-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */\n@media (prefers-reduced-motion: reduce) {\n .apexcharts-canvas *,\n .apexcharts-canvas *::before,\n .apexcharts-canvas *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n }\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 var(--apexcharts-focus-color, #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 var(--apexcharts-focus-color, #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: var(--apexcharts-focus-color, #008FFB);\n stroke-width: 2;\n stroke-opacity: 1;\n}\n\n.apexcharts-tooltip {\n --apx-tt-bg: #ffffff;\n --apx-tt-border: rgba(15, 23, 42, 0.06);\n /* Layered shadow: tight inner contact + soft outer drop. The two Y\n * offsets are exposed as variables so they flip in sync with the\n * arrow when the tooltip is below the data point \u2014 see the\n * `[data-placement="bottom"]` rule further down. */\n --apx-tt-shadow-y-mid: 8px;\n --apx-tt-shadow-y-far: 16px;\n --apx-tt-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(15, 23, 42, 0.12), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(15, 23, 42, 0.18);\n --apx-tt-arrow-bg: var(--apx-tt-bg);\n /* Two stacked drop-shadows: the first is a tight contact halo for\n * edge definition against light chart backgrounds; the second is a\n * softer directional drop that lifts the arrow off the surface.\n * `--apx-tt-arrow-drop-y` is the Y offset of the directional drop;\n * a per-placement rule below flips it to negative when the tooltip\n * is below the data point (arrow on top) so the shadow always\n * casts outward
1instead of into the tooltip body. */\n --apx-tt-arrow-drop-y: 2px;\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(15, 23, 42, 0.2)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(15, 23, 42, 0.2));\n --apx-tt-color: #0f172a;\n --apx-tt-color-muted: rgba(15, 23, 42, 0.55);\n border-radius: 8px;\n background: var(--apx-tt-bg);\n border: 1px solid var(--apx-tt-border);\n box-shadow: var(--apx-tt-shadow);\n color: var(--apx-tt-color);\n cursor: default;\n font-size: 13px;\n left: 0;\n top: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n display: flex;\n flex-direction: column;\n padding: 2px 0;\n white-space: nowrap;\n z-index: 12;\n transition: opacity .12s ease\n}\n\n/* While the tooltip is visible, smoothly animate position changes\n * between data points. Kept short (160 ms) and ease-out so it stays\n * responsive \u2014 too long would feel laggy when sweeping across many\n * points fast. The position transition is only attached after the\n * first paint (Position.applyTooltipPosition flips `data-positioned`\n * once the tooltip has been placed) so the *first* show doesn\'t slide\n * the tooltip in from the previously-stale (0,0) coordinates. */\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: opacity .12s ease\n}\n.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {\n transition: opacity .12s ease, left .16s ease-out, top .16s ease-out\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n /* defaults already set above; class kept for backward-compat selectors */\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n --apx-tt-bg: #1c1c1f;\n --apx-tt-border: rgba(255, 255, 255, 0.08);\n --apx-tt-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(0, 0, 0, 0.45), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(0, 0, 0, 0.55);\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(0, 0, 0, 0.45));\n --apx-tt-color: #f3f4f6;\n --apx-tt-color-muted: rgba(243, 244, 246, 0.55);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 8px 12px 4px;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.01em;\n color: var(--apx-tt-color-muted);\n background: transparent;\n border-bottom: none;\n margin-bottom: 0\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: transparent;\n border-bottom: none\n}\n\n/* `fillSeriesColor`: each series-group already paints itself with the\n * series colour. Drop the glass body entirely (transparent bg, no\n * border, no backdrop-filter, no padding) and clip the coloured\n * series-group(s) to the tooltip\'s rounded corners so they fill the\n * shell edge-to-edge. Text inside the coloured group is forced to\n * white for contrast. */\n.apexcharts-tooltip.apexcharts-tooltip-fill-series {\n background: transparent;\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n border: none;\n padding: 0;\n overflow: hidden;\n color: #fff\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.22);\n color: #fff;\n opacity: 1;\n padding: 6px 12px\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {\n color: #fff\n}\n\n/* Arrow connector \u2014 sits *entirely outside* the tooltip body. Shares\n * the body\'s solid fill so it reads as a single shape. `filter:\n * drop-shadow` traces the clipped triangle outline (a regular\n * `box-shadow` would be erased by the `clip-path`). */\n.apexcharts-tooltip-arrow {\n position: absolute;\n width: 7px;\n height: 14px;\n background: var(--apx-tt-arrow-bg);\n /* The variable already contains the full `drop-shadow(...) ...` filter\n * chain (stacked shadows) so it\'s applied raw. */\n -webkit-filter: var(--apx-tt-arrow-shadow);\n filter: var(--apx-tt-arrow-shadow);\n pointer-events: none;\n top: calc(var(--apx-tt-arrow-y, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {\n left: -7px;\n clip-path: polygon(0 50%, 100% 0, 100% 100%)\n}\n\n.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {\n right: -7px;\n clip-path: polygon(100% 50%, 0 0, 0 100%)\n}\n\n/* Vertical arrow variants: tooltip is above/below the data point and the\n * arrow points down/up. The base rule above uses `--apx-tt-arrow-y` for\n * left/right placement; for top/bottom we re-orient the rectangle and\n * use `--apx-tt-arrow-x` (set by applyTooltipPosition). */\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n width: 14px;\n height: 7px;\n top: auto;\n left: calc(var(--apx-tt-arrow-x, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {\n bottom: -7px;\n clip-path: polygon(50% 100%, 0 0, 100% 0)\n}\n\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n top: -7px;\n clip-path: polygon(50% 0, 0 100%, 100% 100%)\n}\n\n/* When the tooltip is flipped below the data point (arrow on top\n * pointing up), the default downward-biased
1shadows leave the top\n * edge of both the body *and* the arrow undefined. Flipping every\n * Y offset to negative casts the entire elevation upward so the\n * shadow falls between the tooltip and the bar above. */\n.apexcharts-tooltip[data-placement="bottom"] {\n --apx-tt-shadow-y-mid: -8px;\n --apx-tt-shadow-y-far: -16px;\n --apx-tt-arrow-drop-y: -2px\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 {\n 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-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 12px;\n height: 12px;\n margin-right: 6px;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 4px 12px;\n display: none;\n gap: 8px;\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:last-child,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 8px\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/* X/Y axis tooltips \u2014 small popovers that label the crosshair on the\n * axes. Restyled to match the modern data-tooltip palette: solid white\n * body with a subtle border + soft drop-shadow, smaller font, rounded\n * corners. The arrows still use the CSS border-triangle technique\n * (cheap, crisp at small sizes); their colours flow from CSS variables\n * so light/dark themes only need one override per axis. */\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n --apx-axt-bg: #ffffff;\n --apx-axt-border: rgba(15, 23, 42, 0.08);\n --apx-axt-color: #0f172a;\n --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);\n opacity: 0;\n pointer-events: none;\n color: var(--apx-axt-color);\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 10;\n background: var(--apx-axt-bg);\n border: 1px solid var(--apx-axt-border);\n box-shadow: var(--apx-axt-shadow)\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark,\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n --apx-axt-bg: #1c1c1f;\n --apx-axt-border: rgba(255, 255, 255, 0.1);\n --apx-axt-color: #f3f4f6;\n --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)\n}\n\n.apexcharts-xaxistooltip {\n padding: 4px 8px;\n transition: .15s ease all\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/* :before paints the 1px border outline of the triangle (slightly larger\n * than :after); :after sits inside and paints the fill \u2014 leaves a 1px\n * ring of :before visible at the edges. */\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 5px;\n margin-left: -5px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\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: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 3px 8px\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: 5px;\n margin-top: -5px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\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: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: var(--apx-axt-border)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: var(--apx-axt-border)\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 /* WCAG 2.5.8 Target Size (Minimum): 24\xd724 CSS px hit target. */\n width: 26px;\n height: 24px;\n line-height: 24px;\n color: #6e8192;\n text-align: center;\n /* Reset native <button> chrome \u2014 these are styled via SVG icons. */\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n border-radius: 5px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color .12s ease, color .12s ease;\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-pan-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-selection-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n width: 18px;\n height: 18px;\n fill: none;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon,\n.apexcharts-theme-dark .apexcharts-pan-icon,\n.apexcharts-theme-dark .apexcharts-reset-icon,\n.apexcharts-theme-dark .apexcharts-selection-icon,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,\n.apexcharts-theme-dark .apexcharts-zoom-icon,\n.apexcharts-theme-dark .apexcharts-zoomin-icon,\n.apexcharts-theme-dark .apexcharts-zoomout-icon {\n color: #d4d6dc\n}\n\n.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {\n background: rgba(0, 143, 251, 0.12);\n color: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover,\n.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-reset-icon:hover,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover {\n background: rgba(15, 23, 42, 0.06);\n color: #1f2937\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon:hover,\n.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-reset-icon:hover,\n.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {\n background: rgba(255, 255, 255, 0.08);\n color: #fff\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n display: inline-flex;\n align-items: center;\n gap: 1px;\n padding: 3px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.85);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n}\n\n.apexcharts-theme-dark .apexcharts-toolbar {\n background: rgba(28, 28, 31, 0.82);\n}\n\n.apexcharts-menu {\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n position: absolute;\n top: calc(100% + 4px);\n border: 1px solid rgba(15, 23, 42, 0.08);\n border-radius: 8px;\n padding: 4px;\n right: 0;\n opacity: 0;\n min-width: 120px;\n transition: opacity .15s ease, transform .15s ease;\n transform: translateY(-2px);\n pointer-events: none;\n box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n transform: translateY(0);\n pointer-events: all\n}\n\n.apexcharts-menu-item {\n padding: 6px 9px;\n font-size: 12px;\n border-radius: 5px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(28, 28, 31, 0.92);\n border-color: rgba(255, 255, 255, 0.08);\n color: #f3f4f6;\n box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-item:hover {\n background: rgba(255, 255, 255, 0.08)\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 var(--apexcharts-focus-color, #008FFB);\n outline-offset: 1px;\n border-radius: 5px\n}\n\n/* Focus indicator for hamburger menu items */\n.apexcharts-menu-item:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #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.apexcharts-pie-name-label,\n.apexcharts-pie-name-label-group,\n.apexcharts-pie-label-connector {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-connector {\n fill: 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-drilldown-target {\n cursor: pointer\n}\n\n.apexcharts-breadcrumb {\n position: absolute;\n z-index: 11;\n display: inline-flex;\n align-items: center;\n gap: 2px;\n font-size: 12px;\n font-family: inherit;\n padding: 2px 4px\n}\n\n.apexcharts-breadcrumb-item {\n background: transparent;\n border: none;\n padding: 2px 6px;\n border-radius: 3px;\n font: inherit;\n color: inherit;\n cursor: pointer;\n line-height: 1.2\n}\n\n.apexcharts-breadcrumb-item:hover:not(.apexcharts-breadcrumb-current) {\n background: rgba(0, 0, 0, 0.08)\n}\n\n.apexcharts-breadcrumb-arrow {\n margin-right: 4px;\n font-weight: 600;\n user-select: none\n}\n\n.apexcharts-breadcrumb-current {\n cursor: default;\n font-weight: 600;\n opacity: 0.85\n}\n\n.apexcharts-breadcrumb-separator {\n opacity: 0.5;\n user-select: none\n}\n\n.apexcharts-theme-dark .apexcharts-breadcrumb-item:hover:not(.apexcharts-breadcrumb-current) {\n background: rgba(255, 255, 255, 0.12)\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&&c.setAttribute("nonce",d),h?n.prepend(c):!1!==this.w.config.chart.injectStyleSheet&&l.head.appendChild(c)}}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(n=>{var h,l;const c=n instanceof Error?n:new Error(String(n)),d=c;d.chartId=null==(l=null==(h=this.w)?void 0:h.globals)?void 0:l.chartID,d.el=this.el,i(c)})}else i(new Error("Element not found"))}):Promise.reject(new Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."))}create(t,e){var s,i,a;const o=this.w;this.core||new kt(this).initModules();const r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,!S.elementExists(this.el)||(this.responsive.checkResponsiveConfig(e),o.config.xaxis.convertedCatToNumeric&&new ft(o.config).convertCatToNumericXaxis(o.config,this.ctx),this.core.setupElements(),"treemap"===o.config.chart.type&&(o.config.grid.show=!1,o.config.yaxis[0].show=!1),0===r.svgWidth))return r.animationEnded=!0,null;let n=t;t.forEach((b,w)=>{b.hidden&&(n=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:w}))});const h=K.checkComboSeries(n,o.config.chart.type);r.comboCharts=h.comboCharts,r.comboBarCount=h.comboBarCount;const l=n.every(b=>b.data&&0===b.data.length);(0===n.length||l&&r.collapsedSeries.length<1)&&this.series.handleNoData(),P.isBrowser()&&this.events.setupEventHandlers();const c=this.data.parseData(n);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(),(!r.noData||r.collapsedSeries.length===o.seriesData.series.length||o.config.legend.showForSingleSeries)&&(null==(s=this.legend)||s.init()),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),"category"!==o.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=o.globals.minX,this.ctx.toolbar.maxX=o.globals.maxX)),this.formatters.heatmapLabelFormatters(),new K(this.w).getLargestMarkerSize();const g=this.dimensions.plotCoords();this._writeLayoutCoords(g.layout);const p=this.core.xySettings();this.grid.createGridMask();const u=this.core.plotChartType(n,p),m=new Ut(this.w,this);return m.bringForward(),o.config.dataLabels.background.enabled&&m.dataLabelsBackgroun
1d(),this.core.shiftGraphPosition(),null==(a=null==(i=this.legend)?void 0:i.heatmapGradientLegend)||a.repositionToPlot(),o.globals.dataPoints>50&&o.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:u,xyRatios:p,dimensions:{plot:{left:o.layout.translateX,top:o.layout.translateY,width:o.layout.gridWidth,height:o.layout.gridHeight}}}}mount(t=null){const e=this,s=e.w;return new Promise((i,a)=>{var o,r,n,h,l,c,d,f,g;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 Vt(e.w,e);const p=e.grid.drawGrid(),u=kt._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!=(n=p?.elGridBorders)&&n.node&&s.dom.elGraphical.add(p.elGridBorders)),Array.isArray(t.elGraph))for(let b=0;b<t.elGraph.length;b++)s.dom.elGraphical.add(t.elGraph[b]);else s.dom.elGraphical.add(t.elGraph);"front"===s.config.grid.position&&(p&&s.dom.elGraphical.add(p.el),null!=(h=p?.elGridBorders)&&h.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 pt(this.w,this.ctx,p),x=new Pt(this.w,{theme:this.theme,timeScale:this.timeScale},p);if(null!==p&&(m.xAxisLabelCorrections(),x.setYAxisTextAlignments(),s.config.yaxis.map((b,w)=>{-1===s.globals.ignoreYAxisIndexes.indexOf(w)&&x.yAxisTitleRotate(w,b.opposite)})),null==(l=e.annotations)||l.drawAxesAnnotations(),!s.globals.noData){if(P.isBrowser()&&s.config.tooltip.enabled&&!s.globals.noData&&(null==(c=e.w.globals.tooltip)||c.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()),P.isBrowser()&&s.globals.axisCharts&&(s.axisFlags.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.axisFlags.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.c
1onfig.chart.pan.enabled)&&(null==(f=e.zoomPanSelection)||f.init({xyRatios:t.xyRatios}));else{const b=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(v=>{b[v]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&(null==(g=e.toolbar)||g.createToolbar())}s.globals.memory.methodsToExec.length>0&&s.globals.memory.methodsToExec.forEach(b=>{b.method(b.params,!1,b.context)}),!s.globals.axisCharts&&!s.globals.noData&&e.core.resizeNonAxisCharts(),i(e)})}destroy(){var t;P.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),as(0,this.parentResizeHandler),clearTimeout(null!=(t=this.w.globals.resizeTimer)?t:void 0));const e=this.w.config.chart.id;e&&Array.isArray(Apex._chartInstances)&&Apex._chartInstances.forEach((s,i)=>{s.id===S.escapeString(e)&&Apex._chartInstances.splice(i,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new Qt(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(S.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=B({},t),n=B({},this.lastUpdateOptions);if(delete r.series,delete n.series,S.shallowEqual(r,n))return Promise.resolve(this)}}return t.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((r,n)=>this.updateHelpers._extendSeries(r,n))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,e,s,i,a)}updateSeries(t=[],e=!0,s=!0){return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,s)}appendSeries(t,e=!0,s=!0){this.data.resetParsingFlags();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 n=0;n<o.data.length;n++)r.data.push(o.data[n])}return s.w.config.series=i,e&&(s.w.globals.initialSeries=S.clone(s.w.config.series)),this.update()}update(t){return new Promise((e,s)=>{if(this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(t))return e(this);this.lastUpdateOptions=S.clone(t),new Qt(this.ctx).clear({isUpdating:!0});const i=this.create(this.w.config.series,t??{});if(!i)return e(this);this.mount(i).then(()=>{var a;null==(a=this.morphTypeChange)||a.applyChromeFade(),"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,Lt.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 n=this.core.xySettings(),h=a.dom.elGraphical.node;h.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(p=>{var u;return null==(u=p.parentNode)?void 0:u.removeChild(p)});const c=this.core.plotChartType(a.config.series,n),d=h.querySelector(".apexcharts-grid");
1(Array.isArray(c)?c:[c]).forEach(d&&"front"===a.config.grid.position?p=>{const u=p&&p.node?p.node:p;u&&h.insertBefore(u,d)}:p=>{a.dom.elGraphical.add(p)});const g=new Ut(a,this);g.bringForward(),a.config.dataLabels.background.enabled&&g.dataLabelsBackground(),P.isBrowser()&&a.config.tooltip.enabled&&!o.noData&&(null==(i=a.globals.tooltip)||i.drawTooltip(n)),"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=S.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 ee(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 S.extend(t,e)}static getThemePalettes(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}static use(t){Fe(t)}static registerFeatures(t){kt.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 Et(this.w).getMinYMaxY(t).highestY}getLowestValueInSeries(t=0){return new Et(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)}
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}drillDown(t){if(!this.ctx.drilldown)throw new Error("apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.");return this.ctx.drilldown.drillDown(t)}drillUp(){if(!this.ctx.drilldown)throw new Error("apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.");return this.ctx.drilldown.drillUp()}drillToRoot(){if(!this.ctx.drilldown)throw new Error("apexcharts: Drilldown feature is not registered. Import apexcharts/features/drilldown.");return this.ctx.drilldown.drillToRoot()}_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.