import{d as Te,r as Dt,R as hi,o as ci,T as di,U as gi,V as ui,W as Gt,X as pi,Y as fi,_ as ut,x as ht,f as ct,h as A,Z as St,c as Zt,i as j,w as st,j as Xt,t as Le,m as J,p as oe,v as xi,$ as bi,J as Pe}from"./index-GCZD4BFP.js";const mi="/assets/images/profile-6.jpeg",vi="/assets/images/profile-7.jpeg",yi="/assets/images/profile-8.jpeg",wi="/assets/images/profile-9.jpeg",ki="/assets/images/profile-10.jpeg",Ai="/assets/images/product-headphones.jpg",Ci="/assets/images/product-shoes.jpg",ze="/assets/images/product-laptop.jpg",Si="/assets/images/product-camera.jpg",Li="/assets/images/profile-34.jpeg";function Pi(B){return B&&B.__esModule&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B}var le={exports:{}};/*! * ApexCharts v3.45.2 * (c) 2018-2024 ApexCharts * Released under the MIT License. */(function(B,U){function Lt(y,t){var e=Object.keys(y);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(y);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(y,a).enumerable})),e.push.apply(e,i)}return e}function E(y){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var e,i=tt(y);if(t){var a=tt(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return function(s,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dt(s)}(this,e)}}function Yt(y,t){return function(e){if(Array.isArray(e))return e}(y)||function(e,i){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var s,r,o=[],n=!0,h=!1;try{for(a=a.call(e);!(n=(s=a.next()).done)&&(o.push(s.value),!i||o.length!==i);n=!0);}catch(c){h=!0,r=c}finally{try{n||a.return==null||a.return()}finally{if(h)throw r}}return o}}(y,t)||Pt(y,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Q(y){return function(t){if(Array.isArray(t))return Ot(t)}(y)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(y)||Pt(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Pt(y,t){if(y){if(typeof y=="string")return Ot(y,t);var e=Object.prototype.toString.call(y).slice(8,-1);return e==="Object"&&y.constructor&&(e=y.constructor.name),e==="Map"||e==="Set"?Array.from(y):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ot(y,t):void 0}}function Ot(y,t){(t==null||t>y.length)&&(t=y.length);for(var e=0,i=new Array(t);e>16,o=i>>8&255,n=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-o)*s)+o)+(Math.round((a-n)*s)+n)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return y.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&Z(t)==="object"&&!Array.isArray(t)&&t!=null}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(e.length===1)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var 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}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(e,i){return Array.isArray(i)&&(i=i.reduce(function(a,s){return a.length>s.length?a:s})),e.length>i.length?e:i},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;t.substring(0,1)!=="#"&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:"x",i=t.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),y}(),At=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return _(y,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(e){var i=1.70158;return(e-=1)*e*((i+1)*e+i)+1};break;case"bounce":t=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":t=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){r()})}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll(function(){return s()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,r=t.pathFrom,o=t.pathTo,n=t.speed,h=t.delay,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&c.config.chart.type!=="bar"&&(d=0),this.morphSVG(e,i,a,c.config.chart.type!=="line"||c.globals.comboCharts?s:"stroke",r,o,n,h*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),typeof e.config.chart.events.animationEnd=="function"&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,r,o,n){var h=this,c=this.w;s||(s=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var d=function(g){return c.config.chart.type==="radar"&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=d()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=d()),c.globals.shouldAnimate||(o=1),t.plot(s).animate(1,c.globals.easing,n).plot(s).animate(o,c.globals.easing,n).plot(r).afterAll(function(){M.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&h.animationCompleted(t):a!=="none"&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&h.animationCompleted(t),h.showDelayedElements()})}}]),y}(),et=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(o){var n=s.config.chart.dropShadow;(n.enabled?a.addShadow(o,e,n):o).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(o){var n=s.config.chart.dropShadow;(n.enabled?a.addShadow(o,e,n):o).componentTransfer({rgb:{type:"linear",slope:r}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,s=i.top,r=i.left,o=i.color,n=i.opacity,h=t.flood(Array.isArray(o)?o[e]:o,n).composite(t.sourceAlpha,"in").offset(r,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,h)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=e.top,s=e.left,r=e.blur,o=e.color,n=e.opacity,h=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),M.isIE()&&c.config.chart.type==="radialBar"||(o=Array.isArray(o)?o[i]:o,t.filter(function(d){var g=null;g=M.isSafari()||M.isFirefox()||M.isIE()?d.flood(o,n).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(r):d.flood(o,n).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(r).merge(d.source),d.blend(d.source,g)}),h||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(a.globals.selectedDataPoints[e]!==void 0&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;s!=="none"&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){(function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),y}(),X=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"roundPathCorners",value:function(t,e){function i(S,L,P){var I=L.x-S.x,z=L.y-S.y,T=Math.sqrt(I*I+z*z);return a(S,L,Math.min(1,P/T))}function a(S,L,P){return{x:S.x+(L.x-S.x)*P,y:S.y+(L.y-S.y)*P}}function s(S,L){S.length>2&&(S[S.length-2]=L.x,S[S.length-1]=L.y)}function r(S){return{x:parseFloat(S[S.length-2]),y:parseFloat(S[S.length-1])}}t.indexOf("NaN")>-1&&(t="");var o=t.split(/[,\s]/).reduce(function(S,L){var P=L.match("([a-zA-Z])(.+)");return P?(S.push(P[1]),S.push(P[2])):S.push(L),S},[]).reduce(function(S,L){return parseFloat(L)==L&&S.length?S[S.length-1].push(L):S.push([L]),S},[]),n=[];if(o.length>1){var h=r(o[0]),c=null;o[o.length-1][0]=="Z"&&o[0].length>2&&(c=["L",h.x,h.y],o[o.length-1]=c),n.push(o[0]);for(var d=1;d2&&p[0]=="L"&&f.length>2&&f[0]=="L"){var b,m,w=r(g),C=r(p),l=r(f);b=i(C,w,e),m=i(C,l,e),s(p,b),p.origPoint=C,n.push(p);var u=a(b,C,.5),x=a(C,m,.5),v=["C",u.x,u.y,x.x,x.y,m.x,m.y];v.origPoint=C,n.push(v)}else n.push(p)}if(c){var k=r(n[n.length-1]);n.push(["Z"]),s(n[0],k)}}else n=o;return n.reduce(function(S,L){return S+L.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,n=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":o,"stroke-linecap":n})}},{key:"drawRect",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,n=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,d=this.w.globals.dom.Paper.rect();return d.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:o,"stroke-width":n!==null?n:0,stroke:h!==null?h:"none","stroke-dasharray":c}),d.node.setAttribute("fill",r),d}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return e!==null&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=e===void 0?"":e,a=t.stroke,s=a===void 0?"#a8a8a8":a,r=t.strokeWidth,o=r===void 0?1:r,n=t.fill,h=t.fillOpacity,c=h===void 0?1:h,d=t.strokeOpacity,g=d===void 0?1:d,p=t.classes,f=t.strokeLinecap,b=f===void 0?null:f,m=t.strokeDashArray,w=m===void 0?0:m,C=this.w;return b===null&&(b=C.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(C.globals.gridHeight)),C.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":c,stroke:s,"stroke-opacity":g,"stroke-linecap":b,"stroke-width":o,"stroke-dasharray":w,class:p})}},{key:"group",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w.globals.dom.Paper.group();return t!==null&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=null;return i===null?a=[" L",t,e].join(" "):i==="H"?a=[" H",t].join(" "):i==="V"&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,r){var o=["C",t,e,i,a,s,r].join(" ");return o}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,r,o){var n="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(n="a");var h=[n,t,e,i,a,s,r,o].join(" ");return h}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,r=t.pathTo,o=t.stroke,n=t.strokeWidth,h=t.strokeLinecap,c=t.fill,d=t.animationDelay,g=t.initialSpeed,p=t.dataChangeSpeed,f=t.className,b=t.shouldClipToGrid,m=b===void 0||b,w=t.bindEventsOnPaths,C=w===void 0||w,l=t.drawShadow,u=l===void 0||l,x=this.w,v=new et(this.ctx),k=new At(this.ctx),S=this.w.config.chart.animations.enabled,L=S&&this.w.config.chart.animations.dynamicAnimation.enabled,P=!!(S&&!x.globals.resized||L&&x.globals.dataChanged&&x.globals.shouldAnimate);P?e=s:(e=r,x.globals.animationEnded=!0);var I=x.config.stroke.dashArray,z=0;z=Array.isArray(I)?I[a]:x.config.stroke.dashArray;var T=this.drawPath({d:e,stroke:o,strokeWidth:n,fill:c,fillOpacity:1,classes:f,strokeLinecap:h,strokeDashArray:z});if(T.attr("index",a),m&&T.attr({"clip-path":"url(#gridRectMask".concat(x.globals.cuid,")")}),x.config.states.normal.filter.type!=="none")v.getDefaultFilter(T,a);else if(x.config.chart.dropShadow.enabled&&u&&(!x.config.chart.dropShadow.enabledOnSeries||x.config.chart.dropShadow.enabledOnSeries&&x.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var Y=x.config.chart.dropShadow;v.dropShadow(T,Y,a)}C&&(T.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,T)),T.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,T)),T.node.addEventListener("mousedown",this.pathMouseDown.bind(this,T))),T.attr({pathTo:r,pathFrom:s});var R={el:T,j:i,realIndex:a,pathFrom:s,pathTo:r,fill:c,strokeWidth:n,delay:d};return!S||x.globals.resized||x.globals.dataChanged?!x.globals.resized&&x.globals.dataChanged||k.showDelayedElements():k.animatePathsGradually(E(E({},R),{},{speed:g})),x.globals.dataChanged&&L&&P&&k.animatePathsGradually(E(E({},R),{},{speed:p})),T}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(r){t==="horizontalLines"?r.line(0,0,i,0).stroke({color:a,width:s+1}):t==="verticalLines"?r.line(0,0,0,e).stroke({color:a,width:s+1}):t==="slantedLines"?r.line(0,0,e,i).stroke({color:a,width:s}):t==="squares"?r.rect(e,i).fill("none").stroke({color:a,width:s}):t==="circles"&&r.circle(e).fill("none").stroke({color:a,width:s})})}},{key:"drawGradient",value:function(t,e,i,a,s){var r,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,d=this.w;e.length<9&&e.indexOf("#")===0&&(e=M.hexToRgba(e,a)),i.length<9&&i.indexOf("#")===0&&(i=M.hexToRgba(i,s));var g=0,p=1,f=1,b=null;n!==null&&(g=n[0]!==void 0?n[0]/100:0,p=n[1]!==void 0?n[1]/100:1,f=n[2]!==void 0?n[2]/100:1,b=n[3]!==void 0?n[3]/100:null);var m=!(d.config.chart.type!=="donut"&&d.config.chart.type!=="pie"&&d.config.chart.type!=="polarArea"&&d.config.chart.type!=="bubble");if(r=h===null||h.length===0?d.globals.dom.Paper.gradient(m?"radial":"linear",function(l){l.at(g,e,a),l.at(p,i,s),l.at(f,i,s),b!==null&&l.at(b,e,a)}):d.globals.dom.Paper.gradient(m?"radial":"linear",function(l){(Array.isArray(h[c])?h[c]:h).forEach(function(u){l.at(u.offset/100,u.color,u.opacity)})}),m){var w=d.globals.gridWidth/2,C=d.globals.gridHeight/2;d.config.chart.type!=="bubble"?r.attr({gradientUnits:"userSpaceOnUse",cx:w,cy:C,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else t==="vertical"?r.from(0,0).to(0,1):t==="diagonal"?r.from(0,0).to(1,1):t==="horizontal"?r.from(0,1).to(1,1):t==="diagonal2"&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,s=t.fontFamily,r=this.getTextRects(e,a,s),o=r.width/e.length,n=Math.floor(i/o);return i-1){var n=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(n,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var h=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,d=function(f){Array.prototype.forEach.call(f,function(b){b.node.setAttribute("selected","false"),a.getDefaultFilter(b,s)})};d(h),d(c)}t.node.setAttribute("selected","true"),o="true",i.globals.selectedDataPoints[s]===void 0&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if(o==="true"){var g=i.config.states.active.filter;if(g!=="none")a.applyFilter(t,s,g.type,g.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var p=i.config.states.hover.filter;a.applyFilter(t,s,p.type,p.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(t,s):(p=i.config.states.hover.filter,a.applyFilter(t,s,p.type,p.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&typeof t.getBBox=="function"&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&o.attr("transform",a),r.globals.dom.Paper.add(o);var n=o.bbox();return s||(n=o.node.getBoundingClientRect()),o.remove(),{width:n.width,height:n.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(typeof t.getComputedTextLength=="function"&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),y}(),K=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=this.w,i=[];if(e.globals.series.length===0)return i;for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:null;return t===null?this.w.config.series.reduce(function(e,i){return e+i},0):this.w.globals.series[t].reduce(function(e,i){return e+i},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach(function(a){var s=[];e.config.series.forEach(function(o,n){a.indexOf(o.name)>-1&&s.push(n)});var r=e.globals.series.map(function(o,n){return s.indexOf(n)===-1?n:-1}).filter(function(o){return o!==-1});i.push(t.getStackedSeriesTotals(r))}),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(t===null?this.w.config.series.filter(function(e){return e!==null}):this.w.config.series[t].data.filter(function(e){return e!==null})).length===0}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(e,i,a){return e===a[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(a,s){return e.config.xaxis.labels.formatter(a-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(e){return e.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(e){return e.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(i){e=Math.max(e,i)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(i){e=Math.max(e,i.size)}),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(e,i){var a=0;if(Array.isArray(e))for(var s=0;st&&i.globals.seriesX[s][o]0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),y}(),_t=function(){function y(t){F(this,y),this.w=t.w,this.annoCtx=t}return _(y,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(t.label.orientation==="vertical"){var a=e!==null?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(s!==null){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),t.label.position==="top"?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(s),n=o.x,h=o.y;s.setAttribute("transform","rotate(-90 ".concat(n," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||e.label.text===void 0||e.label.text!==void 0&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,n=e.label.style.padding.top,h=e.label.style.padding.bottom;e.label.orientation==="vertical"&&(n=e.label.style.padding.left,h=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var c=s.left-a.left-r,d=s.top-a.top-n,g=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,d,s.width+r+o,s.height+n+h,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&g.node.classList.add(e.id),g}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(a,s,r){var o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(s,"']"));if(o){var n=o.parentNode,h=t.addBackgroundToAnno(o,a);h&&(n.insertBefore(h.node,o),a.label.mouseEnter&&h.node.addEventListener("mouseenter",a.label.mouseEnter.bind(t,a)),a.label.mouseLeave&&h.node.addEventListener("mouseleave",a.label.mouseLeave.bind(t,a)),a.label.click&&h.node.addEventListener("click",a.label.click.bind(t,a)))}};e.config.annotations.xaxis.map(function(a,s){i(a,s,"xaxis")}),e.config.annotations.yaxis.map(function(a,s){i(a,s,"yaxis")}),e.config.annotations.points.map(function(a,s){i(a,s,"point")})}},{key:"getY1Y2",value:function(t,e){var i,a=t==="y1"?e.y:e.y2,s=this.w;if(this.annoCtx.invertAxis){var r=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(r=s.globals.categoryLabels.indexOf(a));var o=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");o&&(i=parseFloat(o.getAttribute("y"))),e.seriesIndex!==void 0&&s.globals.barHeight&&(i=i-s.globals.barHeight/2*(s.globals.series.length-1)+s.globals.barHeight*e.seriesIndex)}else{var n;s.config.yaxis[e.yAxisIndex].logarithmic?n=(a=new K(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:n=(a-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-n,!e.marker||e.y!==void 0&&e.y!==null||(i=0),s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=n)}return typeof a=="string"&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=(e.x-a)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(s-e.x)/(r/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(e.x));var n=(e.x2-a)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(n=(s-e.x2)/(r/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(e.x2)),e.x!==void 0&&e.x!==null||!e.marker||(o=i.globals.gridWidth),t==="x1"&&typeof e.x=="string"&&e.x.indexOf("px")>-1&&(o=parseFloat(e.x)),t==="x2"&&typeof e.x2=="string"&&e.x2.indexOf("px")>-1&&(n=parseFloat(e.x2)),e.seriesIndex!==void 0&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(o=o-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),t==="x1"?o:n}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),y}(),qt=function(){function y(t){F(this,y),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new _t(this.annoCtx)}return _(y,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=this.helpers.getX1X2("x1",t),o=t.label.text,n=t.strokeDashArray;if(M.isNumber(r)){if(t.x2===null||t.x2===void 0){var h=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,n,t.borderWidth);e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))o){var c=o;o=a,a=c}var d=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),o-a,0,t.fillColor,t.opacity,1,t.borderColor,r);d.node.classList.add("apexcharts-annotation-rect"),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(d.node),t.id&&d.node.classList.add(t.id)}var g=t.label.position==="right"?s.globals.gridWidth:t.label.position==="center"?s.globals.gridWidth/2:0,p=this.annoCtx.graphics.drawText({x:g+t.label.offsetX,y:(a??o)+t.label.offsetY-3,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});p.attr({rel:i}),e.appendChild(p.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(a,s){t.addYaxisAnnotation(a,i.node,s)}),i}}]),y}(),Mt=function(){function y(t){F(this,y),this.w=t.w,this.annoCtx=t,this.helpers=new _t(this.annoCtx)}return _(y,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),s=this.helpers.getY1Y2("y1",t);if(M.isNumber(a)){var r={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},o=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,s+t.marker.offsetY,r);e.appendChild(o.node);var n=t.label.text?t.label.text:"",h=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:s+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(h.attr({rel:i}),e.appendChild(h.node),t.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});c.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),c.node.innerHTML=t.customSVG.SVG,e.appendChild(c.node)}if(t.image.path){var d=t.image.width?t.image.width:20,g=t.image.height?t.image.height:20;o=this.annoCtx.addImage({x:a+t.image.offsetX-d/2,y:s+t.image.offsetY-g/2,width:d,height:g,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&o.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&o.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&o.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(a,s){t.addPointAnnotation(a,i.node,s)}),i}}]),y}(),D={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},G=function(){function y(){F(this,y),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,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,radius:2,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}}return _(y,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[D],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},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},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,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",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},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}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},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:function(t){return t!==null?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},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",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),y}(),pt=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.graphics=new X(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new _t(this),this.xAxisAnnotations=new qt(this),this.yAxisAnnotations=new Jt(this),this.pointsAnnotations=new Mt(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return _(y,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,r=[e,i,a],o=[i.node,e.node,a.node],n=0;n<3;n++)t.globals.dom.elGraphical.add(r[n]),!s||t.globals.resized||t.globals.dataChanged||t.config.chart.type!=="scatter"&&t.config.chart.type!=="bubble"&&t.globals.dataPoints>1&&o[n].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[n],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,r=t.textAnchor,o=t.foreColor,n=t.fontSize,h=t.fontFamily,c=t.fontWeight,d=t.cssClass,g=t.backgroundColor,p=t.borderWidth,f=t.strokeDashArray,b=t.borderRadius,m=t.borderColor,w=t.appendTo,C=w===void 0?".apexcharts-svg":w,l=t.paddingLeft,u=l===void 0?4:l,x=t.paddingRight,v=x===void 0?4:x,k=t.paddingBottom,S=k===void 0?2:k,L=t.paddingTop,P=L===void 0?2:L,I=this.w,z=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:n||"12px",fontWeight:c||"regular",fontFamily:h||I.config.chart.fontFamily,foreColor:o||I.config.chart.foreColor,cssClass:d}),T=I.globals.dom.baseEl.querySelector(C);T&&T.appendChild(z.node);var Y=z.bbox();if(s){var R=this.graphics.drawRect(Y.x-u,Y.y-P,Y.width+u+v,Y.height+S+P,b,g||"transparent",1,p,m,f);T.insertBefore(R.node,z.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,r=s===void 0?0:s,o=t.y,n=o===void 0?0:o,h=t.width,c=h===void 0?20:h,d=t.height,g=d===void 0?20:d,p=t.appendTo,f=p===void 0?".apexcharts-svg":p,b=i.globals.dom.Paper.image(a);b.size(c,g).move(r,n);var m=i.globals.dom.baseEl.querySelector(f);return m&&m.appendChild(b.node),b}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,r=t.contextMethod,o=a,n=o.w,h=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=h.childNodes.length+1,d=new G,g=Object.assign({},s==="xaxis"?d.xAxisAnnotation:s==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),p=M.extend(g,e);switch(s){case"xaxis":this.addXaxisAnnotation(p,h,c);break;case"yaxis":this.addYaxisAnnotation(p,h,c);break;case"point":this.addPointAnnotation(p,h,c)}var f=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),b=this.helpers.addBackgroundToAnno(f,p);return b&&h.insertBefore(b.node,f),i&&n.globals.memory.methodsToExec.push({context:o,id:p.id?p.id:M.randomId(),method:r,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map(function(a,s){a.label!=="addText"&&a.label!=="addAnnotation"||e.globals.memory.methodsToExec.splice(s,1)}),i=M.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map(function(s,r){s.id===e&&i.globals.memory.methodsToExec.splice(r,1)}),Array.prototype.forEach.call(a,function(s){s.parentElement.removeChild(s)}))}}]),y}(),V=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,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]}return _(y,[{key:"isValidDate",value:function(t){return typeof t!="number"&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(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}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(Q(i.months)),r=[""].concat(Q(i.shortMonths)),o=[""].concat(Q(i.days)),n=[""].concat(Q(i.shortDays));function h(S,L){var P=S+"";for(L=L||2;P.length12?p-12:p===0?12:p;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+h(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+h(f))).replace(/(^|[^\\])h/g,"$1"+f);var b=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+h(b))).replace(/(^|[^\\])m/g,"$1"+b);var m=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+h(m))).replace(/(^|[^\\])s/g,"$1"+m);var w=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+h(w,3)),w=Math.round(w/10),e=e.replace(/(^|[^\\])ff/g,"$1"+h(w)),w=Math.round(w/10);var C=p<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+w)).replace(/(^|[^\\])TT+/g,"$1"+C)).replace(/(^|[^\\])T/g,"$1"+C.charAt(0));var l=C.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+l)).replace(/(^|[^\\])t/g,"$1"+l.charAt(0));var u=-t.getTimezoneOffset(),x=a||!u?"Z":u>0?"+":"-";if(!a){var v=(u=Math.abs(u))%60;x+=h(Math.floor(u/60))+":"+h(v)}e=e.replace(/(^|[^\\])K/g,"$1"+x);var k=(a?t.getUTCDay():t.getDay())+1;return e=(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(n[0],"g"),n[k])).replace(new RegExp(s[0],"g"),s[d])).replace(new RegExp(r[0],"g"),r[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;a.config.xaxis.min!==void 0&&(t=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(e=a.config.xaxis.max);var s=this.getDate(t),r=this.getDate(e),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=M.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),y}(),mt=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return _(y,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if(s.config.xaxis.type==="datetime"&&s.config.xaxis.labels.formatter===void 0&&s.config.tooltip.x.formatter===void 0){var r=new V(this.ctx);return r.formatDate(r.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(e){return e}):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return M.isNumber(t)&&(t=a.globals.yValueDecimal!==0?t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttKeyFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttZFormatter=function(i){return i},e.globals.legendFormatter=function(i){return t.defaultGeneralFormatter(i)},e.config.xaxis.labels.formatter!==void 0?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(i){if(M.isNumber(i)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(M.isNumber(e.config.xaxis.decimalsInFloat))return i.toFixed(e.config.xaxis.decimalsInFloat);var a=e.globals.maxX-e.globals.minX;return a>0&&a<100?i.toFixed(1):i.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof e.config.tooltip.x.formatter=="function"?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,typeof e.config.xaxis.tooltip.formatter=="function"&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||e.config.tooltip.y.formatter!==void 0)&&(e.globals.ttVal=e.config.tooltip.y),e.config.tooltip.z.formatter!==void 0&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),e.config.legend.formatter!==void 0&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,a){i.labels.formatter!==void 0?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map(function(r){return t.defaultYFormatter(r,i,a)}):t.defaultYFormatter(s,i,a):s}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if(t.config.chart.type==="heatmap"){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(i,a){return i.length>a.length?i:a},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),y}(),It=function(y){var t,e=y.isTimeline,i=y.ctx,a=y.seriesIndex,s=y.dataPointIndex,r=y.y1,o=y.y2,n=y.w,h=n.globals.seriesRangeStart[a][s],c=n.globals.seriesRangeEnd[a][s],d=n.globals.labels[s],g=n.config.series[a].name?n.config.series[a].name:"",p=n.globals.ttKeyFormatter,f=n.config.tooltip.y.title.formatter,b={w:n,seriesIndex:a,dataPointIndex:s,start:h,end:c};typeof f=="function"&&(g=f(g,b)),(t=n.config.series[a].data[s])!==null&&t!==void 0&&t.x&&(d=n.config.series[a].data[s].x),e||n.config.xaxis.type==="datetime"&&(d=new mt(i).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new V(i).formatDate,w:n})),typeof p=="function"&&(d=p(d,b)),Number.isFinite(r)&&Number.isFinite(o)&&(h=r,c=o);var m="",w="",C=n.globals.colors[a];if(n.config.tooltip.x.formatter===void 0)if(n.config.xaxis.type==="datetime"){var l=new V(i);m=l.formatDate(l.getDate(h),n.config.tooltip.x.format),w=l.formatDate(l.getDate(c),n.config.tooltip.x.format)}else m=h,w=c;else m=n.config.tooltip.x.formatter(h),w=n.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:m,endVal:w,ylabel:d,color:C,seriesName:g}},Ct=function(y){var t=y.color,e=y.seriesName,i=y.ylabel,a=y.start,s=y.end,r=y.seriesIndex,o=y.dataPointIndex,n=y.ctx.tooltip.tooltipLabels.getFormatters(r);a=n.yLbFormatter(a),s=n.yLbFormatter(s);var h=n.yLbFormatter(y.w.globals.series[r][o]),c=` `.concat(a,` - `).concat(s,` `);return'
'+(e||"")+'
'+i+": "+(y.w.globals.comboCharts?y.w.config.series[r].type==="rangeArea"||y.w.config.series[r].type==="rangeBar"?c:"".concat(h,""):c)+"
"},yt=function(){function y(t){F(this,y),this.opts=t}return _(y,[{key:"hideYAxis",value:function(){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}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),M.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}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},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}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),E(E({},this.bar()),{},{chart:{animations:{easing:"linear",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}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,r=function(){var o=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-o};return s.globals.comboCharts?s.config.series[i].type==="rangeBar"||s.config.series[i].type==="rangeArea"?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(e){var i=It(E(E({},e),{},{isTimeline:!0})),a=i.color,s=i.seriesName,r=i.ylabel,o=i.startVal,n=i.endVal;return Ct(E(E({},e),{},{color:a,seriesName:s,ylabel:r,start:o,end:n}))}(t):function(e){var i=It(e),a=i.color,s=i.seriesName,r=i.ylabel,o=i.start,n=i.end;return Ct(E(E({},e),{},{color:a,seriesName:s,ylabel:r,start:o,end:n}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return(e=t.plotOptions.bar)!==null&&e!==void 0&&e.barHeight||(t.plotOptions.bar.barHeight=2),(i=t.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){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}}}},{key:"rangeArea",value:function(){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:function(t){return function(e){var i=It(e),a=i.color,s=i.seriesName,r=i.ylabel,o=i.start,n=i.end;return Ct(E(E({},e),{},{color:a,seriesName:s,ylabel:r,start:o,end:n}))}(t)}}}}},{key:"brush",value:function(t){return M.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(i,a){t.yaxis[a].min=0,t.yaxis[a].max=100}),t.chart.type==="bar"&&(t.dataLabels.formatter=e||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),t}},{key:"stackedBars",value:function(){var t=this.bar();return E(E({},t),{},{plotOptions:E(E({},t.plotOptions),{},{bar:E(E({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(r){return M.isNumber(r)?Math.floor(r):r};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map(function(r){return Array.isArray(r)?r:String(r)})),s&&s.length&&(t.xaxis.labels.formatter=function(r){return M.isNumber(r)?a(s[Math.floor(r)-1]):a(r)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){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}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){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",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){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:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,s){var r=t.globals.seriesCandleO[e][i],o=t.globals.seriesCandleH[e][i],n=t.globals.seriesCandleM[e][i],h=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?`
`.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],`
`):'
')+"
".concat(a[0],': ')+r+"
"+"
".concat(a[1],': ')+o+"
"+(n?"
".concat(a[2],': ')+n+"
":"")+"
".concat(a[3],': ')+h+"
"+"
".concat(a[4],': ')+c+"
"}}]),y}(),Nt=function(){function y(t){F(this,y),this.opts=t}return _(y,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new G,s=new yt(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),o={};if(i&&Z(i)==="object"){var n,h,c,d,g,p,f,b,m={};m=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?s[i.chart.type]():s.line(),(n=i.plotOptions)!==null&&n!==void 0&&(h=n.bar)!==null&&h!==void 0&&h.isFunnel&&(m=s.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(m=s.stackedBars()),(c=i.chart.brush)!==null&&c!==void 0&&c.enabled&&(m=s.brush(m)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=s.stacked100(i)),(d=i.plotOptions)!==null&&d!==void 0&&(g=d.bar)!==null&&g!==void 0&&g.isDumbbell&&(i=s.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),((p=(i=this.checkForCatToNumericXAxis(this.chartType,m,i)).chart.sparkline)!==null&&p!==void 0&&p.enabled||(f=window.Apex.chart)!==null&&f!==void 0&&(b=f.sparkline)!==null&&b!==void 0&&b.enabled)&&(m=s.sparkline(m)),o=M.extend(r,m)}var w=M.extend(o,window.Apex);return r=M.extend(w,i),r=this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,s,r=new yt(i),o=(t==="bar"||t==="boxPlot")&&((a=i.plotOptions)===null||a===void 0||(s=a.bar)===null||s===void 0?void 0:s.horizontal),n=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap",h=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return o||n||!h||c==="between"||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new G;(t.yaxis===void 0||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=M.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[M.extend(i.yAxis,t.yaxis)]:t.yaxis=M.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach(function(r){r.logarithmic&&(a=!0)});var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map(function(r,o){if(r.name||(s[o].name="series-".concat(o+1)),t.yaxis[o])return t.yaxis[o].seriesName=s[o].name,t.yaxis[o];var n=M.extend(i.yAxis,t.yaxis[0]);return n.show=!1,n})),a&&s.length>1&&s.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return t.annotations===void 0&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new G;return t.annotations.yaxis=M.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new G;return t.annotations.xaxis=M.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new G;return t.annotations.points=M.extendArray(t.annotations.points!==void 0?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return e.chart.type!=="bar"&&e.chart.type!=="rangeBar"||e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),e.chart.type!=="candlestick"&&e.chart.type!=="boxPlot"||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),y}(),he=function(){function y(){F(this,y)}return _(y,[{key:"initGlobalVars",value:function(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.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],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.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:t.chart.toolbar.autoSelected==="zoom"&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:t.chart.toolbar.autoSelected==="pan"&&t.chart.toolbar.tools.pan,selectionEnabled:t.chart.toolbar.autoSelected==="selection"&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=M.extend({},t),e.initialSeries=M.clone(t.series),e.lastXAxis=M.clone(e.initialConfig.xaxis),e.lastYAxis=M.clone(e.initialConfig.yaxis),e}}]),y}(),Xe=function(){function y(t){F(this,y),this.opts=t}return _(y,[{key:"init",value:function(){var t=new Nt(this.opts).init({responsiveOverride:!1});return{config:t,globals:new he().init(t)}}}]),y}(),ft=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return _(y,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),r=a>s?a:s,o=t.image,n=0,h=0;t.width===void 0&&t.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(n=i.fill.image.width+1,h=i.fill.image.height):(n=r+1,h=r):(n=t.width,h=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");X.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:h+"px"});var d=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",o),X.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:h+"px"}),d.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return(i==="bar"||i==="rangeBar")&&e.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];e.globals.seriesColors[this.seriesIndex]!==void 0&&(o=e.globals.seriesColors[this.seriesIndex]),typeof o=="function"&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var n=t.fillType?t.fillType:this.getFillType(this.seriesIndex),h=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var c=o;if(o.indexOf("rgb")===-1?o.length<9&&(c=M.hexToRgba(o,h)):o.indexOf("rgba")>-1&&(h=M.getOpacityFromRGBA(o)),t.opacity&&(h=t.opacity),n==="pattern"&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:o,fillOpacity:h,defaultColor:c})),n==="gradient"&&(s=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:h,i:this.seriesIndex})),n==="image"){var d=r.fill.image.src,g=t.patternID?t.patternID:"";this.clippedImgArea({opacity:h,image:Array.isArray(d)?t.seriesNumber-1&&(p=M.getOpacityFromRGBA(g));var f=r.gradient.opacityTo===void 0?i:Array.isArray(r.gradient.opacityTo)?r.gradient.opacityTo[s]:r.gradient.opacityTo;if(r.gradient.gradientToColors===void 0||r.gradient.gradientToColors.length===0)o=r.gradient.shade==="dark"?c.shadeColor(-1*parseFloat(r.gradient.shadeIntensity),e.indexOf("rgb")>-1?M.rgb2hex(e):e):c.shadeColor(parseFloat(r.gradient.shadeIntensity),e.indexOf("rgb")>-1?M.rgb2hex(e):e);else if(r.gradient.gradientToColors[n.seriesNumber]){var b=r.gradient.gradientToColors[n.seriesNumber];o=b,b.indexOf("rgba")>-1&&(f=M.getOpacityFromRGBA(b))}else o=e;if(r.gradient.gradientFrom&&(g=r.gradient.gradientFrom),r.gradient.gradientTo&&(o=r.gradient.gradientTo),r.gradient.inverseColors){var m=g;g=o,o=m}return g.indexOf("rgb")>-1&&(g=M.rgb2hex(g)),o.indexOf("rgb")>-1&&(o=M.rgb2hex(o)),h.drawGradient(d,g,o,p,f,n.size,r.gradient.stops,r.gradient.colorStops,s)}}]),y}(),Wt=function(){function y(t,e){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"setGlobalMarkerSize",value:function(){var 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.length4&&arguments[4]!==void 0&&arguments[4],o=this.w,n=e,h=t,c=null,d=new X(this.ctx),g=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[e]>0||r||g)&&(c=d.group({class:r||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(h.x))for(var p=0;p0:o.config.markers.size>0)||r||g){M.isNumber(h.y[p])?b+=" w".concat(M.randomId()):b="apexcharts-nullpoint";var m=this.getMarkerConfig({cssClass:b,seriesIndex:e,dataPointIndex:f});o.config.series[n].data[f]&&(o.config.series[n].data[f].fillColor&&(m.pointFillColor=o.config.series[n].data[f].fillColor),o.config.series[n].data[f].strokeColor&&(m.pointStrokeColor=o.config.series[n].data[f].strokeColor)),a&&(m.pSize=a),(h.x[p]<0||h.x[p]>o.globals.gridWidth||h.y[p]<-o.globals.markers.largestSize||h.y[p]>o.globals.gridHeight+o.globals.markers.largestSize)&&(m.pSize=0),(s=d.drawMarker(h.x[p],h.y[p],m)).attr("rel",f),s.attr("j",f),s.attr("index",e),s.node.setAttribute("default-marker-size",m.pSize),new et(this.ctx).setSelectionFilter(s,e,f),this.addEvents(s),c&&c.add(s)}else o.globals.pointsArray[e]===void 0&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([h.x[p],h.y[p]])}return c}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=a===void 0?null:a,r=t.finishRadius,o=r===void 0?null:r,n=this.w,h=this.getMarkerStyle(i),c=n.globals.markers.size[i],d=n.config.markers;return s!==null&&d.discrete.length&&d.discrete.map(function(g){g.seriesIndex===i&&g.dataPointIndex===s&&(h.pointStrokeColor=g.strokeColor,h.pointFillColor=g.fillColor,c=g.size,h.pointShape=g.shape)}),{pSize:o===null?c:o,pRadius:d.radius,width:Array.isArray(d.width)?d.width[i]:d.width,height:Array.isArray(d.height)?d.height[i]:d.height,pointStrokeWidth:Array.isArray(d.strokeWidth)?d.strokeWidth[i]:d.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(d.shape)?d.shape[i]:d.shape),class:e,pointStrokeOpacity:Array.isArray(d.strokeOpacity)?d.strokeOpacity[i]:d.strokeOpacity,pointStrokeDashArray:Array.isArray(d.strokeDashArray)?d.strokeDashArray[i]:d.strokeDashArray,pointFillOpacity:Array.isArray(d.fillOpacity)?d.fillOpacity[i]:d.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new X(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.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",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),y}(),ce=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return _(y,[{key:"draw",value:function(t,e,i){var a=this.w,s=new X(this.ctx),r=i.realIndex,o=i.pointsPos,n=i.zRatio,h=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(o.x))for(var d=0;dm.maxBubbleRadius&&(b=m.maxBubbleRadius)}a.config.chart.animations.enabled||(f=b);var w=o.x[d],C=o.y[d];if(f=f||0,C!==null&&a.globals.series[r][g]!==void 0||(p=!1),p){var l=this.drawPoint(w,C,f,b,r,g,e);c.add(l)}h.add(c)}}},{key:"drawPoint",value:function(t,e,i,a,s,r,o){var n=this.w,h=s,c=new At(this.ctx),d=new et(this.ctx),g=new ft(this.ctx),p=new Wt(this.ctx),f=new X(this.ctx),b=p.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:h,dataPointIndex:r,finishRadius:n.config.chart.type==="bubble"||n.globals.comboCharts&&n.config.series[s]&&n.config.series[s].type==="bubble"?a:null});a=b.pSize;var m,w=g.fillPath({seriesNumber:s,dataPointIndex:r,color:b.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[s][o]});if(b.shape==="circle"?m=f.drawCircle(i):b.shape!=="square"&&b.shape!=="rect"||(m=f.drawRect(0,0,b.width-b.pointStrokeWidth/2,b.height-b.pointStrokeWidth/2,b.pRadius)),n.config.series[h].data[r]&&n.config.series[h].data[r].fillColor&&(w=n.config.series[h].data[r].fillColor),m.attr({x:t-b.width/2-b.pointStrokeWidth/2,y:e-b.height/2-b.pointStrokeWidth/2,cx:t,cy:e,fill:w,"fill-opacity":b.pointFillOpacity,stroke:b.pointStrokeColor,r:a,"stroke-width":b.pointStrokeWidth,"stroke-dasharray":b.pointStrokeDashArray,"stroke-opacity":b.pointStrokeOpacity}),n.config.chart.dropShadow.enabled){var C=n.config.chart.dropShadow;d.dropShadow(m,C,s)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var l=n.config.chart.animations.speed;c.animateMarker(m,0,b.shape==="circle"?a:{width:b.width,height:b.height},l,n.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(m)},100)})}if(n.globals.dataChanged&&b.shape==="circle")if(this.dynamicAnim){var u,x,v,k,S=n.config.chart.animations.dynamicAnimation.speed;(k=n.globals.previousPaths[s]&&n.globals.previousPaths[s][o])!=null&&(u=k.x,x=k.y,v=k.r!==void 0?k.r:a);for(var L=0;Ln.globals.gridHeight+g&&(e=n.globals.gridHeight+g/2),n.globals.dataLabelsRects[a]===void 0&&(n.globals.dataLabelsRects[a]=[]),n.globals.dataLabelsRects[a].push({x:t,y:e,width:d,height:g});var p=n.globals.dataLabelsRects[a].length-2,f=n.globals.lastDrawnDataLabelsIndexes[a]!==void 0?n.globals.lastDrawnDataLabelsIndexes[a][n.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(n.globals.dataLabelsRects[a][p]!==void 0){var b=n.globals.dataLabelsRects[a][f];(t>b.x+b.width||e>b.y+b.height||e+ge.globals.gridWidth+m.textRects.width+30)&&(n="");var w=e.globals.dataLabels.style.colors[r];((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(w=e.globals.dataLabels.style.colors[o]),typeof w=="function"&&(w=w({series:e.globals.series,seriesIndex:r,dataPointIndex:o,w:e})),p&&(w=p);var C=g.offsetX,l=g.offsetY;if(e.config.chart.type!=="bar"&&e.config.chart.type!=="rangeBar"||(C=0,l=0),m.drawnextLabel){var u=i.drawText({width:100,height:parseInt(g.style.fontSize,10),x:a+C,y:s+l,foreColor:w,textAnchor:h||g.textAnchor,text:n,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"});if(u.attr({class:"apexcharts-datalabel",cx:a,cy:s}),g.dropShadow.enabled){var x=g.dropShadow;new et(this.ctx).dropShadow(u,x)}d.add(u),e.globals.lastDrawnDataLabelsIndexes[r]===void 0&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,o=e.width,n=e.height,h=new X(this.ctx).drawRect(e.x-s,e.y-r/2,o+2*s,n+r,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new et(this.ctx).dropShadow(h,a.dropShadow),h}},{key:"dataLabelsBackground",value:function(){var t=this.w;if(t.config.chart.type!=="bubble")for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,s=M.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(t.type==="mousemove"){var s=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var n=0;n=n.from&&c<=n.to&&s[h].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[o])}else t.type==="mouseout"&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1){for(var s=i.config.series.map(function(o,n){return o.data&&o.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(n)===-1&&(!i.globals.comboCharts||e.length===0||e.length&&e.indexOf(i.config.series[n].type)>-1)?n:-1}),r=t==="asc"?0:s.length-1;t==="asc"?r=0;t==="asc"?r++:r--)if(s[r]!==-1){a=s[r];break}}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return t.type==="bar"||t.type==="column"?e:-1}).filter(function(t){return t!==-1}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(r,o,n){for(var h=r[o].childNodes,c={type:n,paths:[],realIndex:r[o].getAttribute("data:realIndex")},d=0;d0)for(var a=function(r){for(var o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(r,"'] rect")),n=[],h=function(d){var g=function(f){return o[d].getAttribute(f)},p={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};n.push({rect:p,color:o[d].getAttribute("color")})},c=0;c0)for(var a=0;a0?e:[]});return t}}]),y}(),de=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new K(this.ctx)}return _(y,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new gt(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].x!==void 0&&t[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new gt(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==void 0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s=i.chart.type==="boxPlot"||i.series[e].type==="boxPlot",r=0;r=5?this.twoDSeries.push(M.parseNumber(t[e].data[r][4])):this.twoDSeries.push(M.parseNumber(t[e].data[r][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var n=0;n-1&&(r=this.activeSeriesIndex);for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,o=new V(a),n=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar=s.chart.type==="rangeBar"&&r.isBarHorizontal,r.hasXaxisGroups=s.xaxis.type==="category"&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),r.hasSeriesGroups=(e=t[0])===null||e===void 0?void 0:e.group,r.hasSeriesGroups){var h=[],c=Q(new Set(t.map(function(f){return f.group})));t.forEach(function(f,b){var m=c.indexOf(f.group);h[m]||(h[m]=[]),h[m].push(f.name)}),r.seriesGroups=h}for(var d=function(){for(var f=0;f0&&(this.twoDSeriesX=n,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var p=t[g].data.map(function(f){return M.parseNumber(f)});r.series.push(p)}r.seriesZ.push(this.threeDSeries),t[g].name!==void 0?r.seriesNames.push(t[g].name):r.seriesNames.push("series-"+parseInt(g+1,10)),t[g].color!==void 0?r.seriesColors.push(t[g].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(a){a.forEach(function(s){i.labels.indexOf(s.x)<0&&s.x&&i.labels.push(s.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new yt(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var s=i.series.map(function(d,g){return d.data.filter(function(p,f,b){return b.findIndex(function(m){return m.x===p.x})===f})}),r=s.reduce(function(d,g,p,f){return f[d].length>g.length?d:p},0),o=0;o4&&arguments[4]!==void 0?arguments[4]:[],r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",o=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],n=this.w,h=t[a]===void 0?"":t[a],c=h,d=n.globals.xLabelFormatter,g=n.config.xaxis.labels.formatter,p=!1,f=new mt(this.ctx),b=h;o&&(c=f.xLabelFormat(d,h,b,{i:a,dateFormatter:new V(this.ctx).formatDate,w:n}),g!==void 0&&(c=g(h,t[a],{i:a,dateFormatter:new V(this.ctx).formatDate,w:n})));var m,w;e.length>0?(m=e[a].unit,w=null,e.forEach(function(x){x.unit==="month"?w="year":x.unit==="day"?w="month":x.unit==="hour"?w="day":x.unit==="minute"&&(w="hour")}),p=w===m,i=e[a].position,c=e[a].value):n.config.xaxis.type==="datetime"&&g===void 0&&(c=""),c===void 0&&(c=""),c=Array.isArray(c)?c:c.toString();var C=new X(this.ctx),l={};l=n.globals.rotateXLabels&&o?C.getTextRects(c,parseInt(r,10),null,"rotate(".concat(n.config.xaxis.labels.rotate," 0 0)"),!1):C.getTextRects(c,parseInt(r,10));var u=!n.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(c)&&(c.indexOf("NaN")===0||c.toLowerCase().indexOf("invalid")===0||c.toLowerCase().indexOf("infinity")>=0||s.indexOf(c)>=0&&u)&&(c=""),{x:i,text:c,textRect:l,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return s==="dataPoints"&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var r=this.w;if(t===0&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var o=s[s.length-1];e.x0){n.config.yaxis[s].opposite===!0&&(t+=a.width);for(var d=e;d>=0;d--){var g=c+e/10+n.config.yaxis[s].labels.offsetY-1;n.globals.isBarHorizontal&&(g=r*d),n.config.chart.type==="heatmap"&&(g+=r/2);var p=h.drawLine(t+i.offsetX-a.width+a.offsetX,g+a.offsetY,t+i.offsetX+a.offsetX,g+a.offsetY,a.color);o.add(p),c+=r}}}}]),y}(),jt=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!M.isIE11())return t.replace(/ /g," ");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++e===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){t==null&&(t=1);var e=this.w.globals.dom.Paper.svg();if(t!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(s){s.setAttribute("width",0)}),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var o=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,n=r.getContext("2d");n.fillStyle=o,n.fillRect(0,0,r.width*s,r.height*s);var h=e.getSvgString(s);if(window.canvg&&M.isIE11()){var c=window.canvg.Canvg.fromString(n,h,{ignoreClear:!0,ignoreDimensions:!0});c.start();var d=r.msToBlob();c.stop(),i({blob:d})}else{var g="data:image/svg+xml,"+encodeURIComponent(h),p=new Image;p.crossOrigin="anonymous",p.onload=function(){if(n.drawImage(p,0,0),r.msToBlob){var f=r.msToBlob();i({blob:f})}else{var b=r.toDataURL("image/png");i({imgURI:b})}},p.src=g}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,s=t.columnDelimiter,r=s===void 0?",":s,o=t.lineDelimiter,n=o===void 0?` `:o,h=this.w;i||(i=h.config.series);var c,d,g=[],p=[],f="",b=h.globals.series.map(function(v,k){return h.globals.collapsedSeriesIndices.indexOf(k)===-1?v:[]}),m=function(v){return h.config.xaxis.type==="datetime"&&String(v).length>=10},w=Math.max.apply(Math,Q(i.map(function(v){return v.data?v.data.length:0}))),C=new de(this.ctx),l=new Tt(this.ctx),u=function(v){var k="";if(h.globals.axisCharts){if(h.config.xaxis.type==="category"||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var S=h.globals.yLabelFormatters[0],L=new gt(e.ctx).getActiveConfigSeriesIndex();k=S(h.globals.labels[v],{seriesIndex:L,dataPointIndex:v,w:h})}else k=l.getLabel(h.globals.labels,h.globals.timescaleLabels,0,v).text;h.config.xaxis.type==="datetime"&&(h.config.xaxis.categories.length?k=h.config.xaxis.categories[v]:h.config.labels.length&&(k=h.config.labels[v]))}else k=h.config.labels[v];return Array.isArray(k)&&(k=k.join(" ")),M.isNumber(k)?k:k.split(r).join("")},x=function(v,k){if(g.length&&k===0&&p.push(g.join(r)),v.data){v.data=v.data.length&&v.data||Q(Array(w)).map(function(){return""});for(var S=0;S0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return _(y,[{key:"drawXaxis",value:function(){var t=this.w,e=new X(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r6&&arguments[6]!==void 0?arguments[6]:{},c=[],d=[],g=this.w,p=h.xaxisFontSize||this.xaxisFontSize,f=h.xaxisFontFamily||this.xaxisFontFamily,b=h.xaxisForeColors||this.xaxisForeColors,m=h.fontWeight||g.config.xaxis.labels.style.fontWeight,w=h.cssClass||g.config.xaxis.labels.style.cssClass,C=g.globals.padHorizontal,l=a.length,u=g.config.xaxis.type==="category"?g.globals.dataPoints:l;if(u===0&&l>u&&(u=l),s){var x=u>1?u-1:u;o=g.globals.gridWidth/Math.min(x,l-1),C=C+r(0,o)/2+g.config.xaxis.labels.offsetX}else o=g.globals.gridWidth/u,C=C+r(0,o)+g.config.xaxis.labels.offsetX;for(var v=function(S){var L=C-r(S,o)/2+g.config.xaxis.labels.offsetX;S===0&&l===1&&o/2===C&&u===1&&(L=g.globals.gridWidth/2);var P=n.axesUtils.getLabel(a,g.globals.timescaleLabels,L,S,c,p,t),I=28;if(g.globals.rotateXLabels&&t&&(I=22),g.config.xaxis.title.text&&g.config.xaxis.position==="top"&&(I+=parseFloat(g.config.xaxis.title.style.fontSize)+2),t||(I=I+parseFloat(p)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),P=g.config.xaxis.tickAmount!==void 0&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?n.axesUtils.checkLabelBasedOnTickamount(S,P,l):n.axesUtils.checkForOverflowingLabels(S,P,l,c,d),g.config.xaxis.labels.show){var z=e.drawText({x:P.x,y:n.offY+g.config.xaxis.labels.offsetY+I-(g.config.xaxis.position==="top"?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:P.text,textAnchor:"middle",fontWeight:P.isBold?600:m,fontSize:p,fontFamily:f,foreColor:Array.isArray(b)?t&&g.config.xaxis.convertedCatToNumeric?b[g.globals.minX+S-1]:b[S]:b,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+w});if(i.add(z),z.on("click",function(Y){if(typeof g.config.chart.events.xAxisLabelClick=="function"){var R=Object.assign({},g,{labelIndex:S});g.config.chart.events.xAxisLabelClick(Y,n.ctx,R)}}),t){var T=document.createElementNS(g.globals.SVGNS,"title");T.textContent=Array.isArray(P.text)?P.text.join(" "):P.text,z.node.appendChild(T),P.text!==""&&(c.push(P.text),d.push(P))}}Sa.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+r+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(e=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var o=new X(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s0){var c=s[s.length-1].getBBox(),d=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),d.x+d.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var g=0;g0&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}return _(y,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w,i=new X(this.ctx);t===null&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new X(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach(function(d){s=Math.max(s,d)}),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,o=0,n=0;(r==="bar"||r==="rangeBar"||r==="candlestick"||r==="boxPlot"||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,n=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,n=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a-o-2,2*-a-2,e.gridWidth+a+n+o+4,e.gridHeight+4*a+4,0,"#fff");var h=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-h,2*-h,e.gridWidth+4*h,e.gridHeight+4*h,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,o=t.xCount,n=t.parent,h=this.w;if(!(e===0&&h.globals.skipFirstTimelinelabel||e===o-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||h.config.chart.type==="radar")){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:s,y2:r,xCount:o,parent:n});var c=0;if(h.globals.hasXaxisGroups&&h.config.xaxis.tickPlacement==="between"){var d=h.globals.groups;if(d){for(var g=0,p=0;g2));s++);if(!t.globals.isBarHorizontal||this.isRangeBar){var r,o,n;i=this.xaxisLabels.length,this.isRangeBar&&(i--,a=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount),((r=t.globals.yAxisScale)===null||r===void 0||(o=r[0])===null||o===void 0||(n=o.result)===null||n===void 0?void 0:n.length)>0&&t.config.xaxis.type!=="datetime"&&(i=t.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:i,tickAmount:a})}else i=a,a=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a});return this.drawGridBands(i,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,n=0;o=i.config.grid.row.colors.length&&(n=0),this._drawGridBandRect({c:n,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var h=i.globals.isBarHorizontal||i.config.xaxis.tickPlacement!=="on"||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,d=i.globals.padHorizontal+i.globals.gridWidth/h,g=i.globals.gridHeight,p=0,f=0;p=i.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:d,y2:g,type:"column"}),c+=i.globals.gridWidth/h}}]),y}(),Rt=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,r=this.w,o=Math.abs(e-t);if((i=this._adjustTicksForSmallRange(i,a,o))==="dataPoints"&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&e===0||!M.isNumber(t)&&!M.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,a,r.config.yaxis[a].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=t===0?0:t-.5,e=e===0?2:e+.5);var n=[];o<1&&s&&(r.config.chart.type==="candlestick"||r.config.series[a].type==="candlestick"||r.config.chart.type==="boxPlot"||r.config.series[a].type==="boxPlot"||r.globals.isRangeData)&&(e*=1.01);var h=i+1;h<2?h=2:h>2&&(h-=2);var c=o/h,d=Math.floor(M.log10(c)),g=Math.pow(10,d),p=Math.round(c/g);p<1&&(p=1);var f=p*g;r.config.yaxis[a].stepSize&&(f=r.config.yaxis[a].stepSize),r.globals.isBarHorizontal&&r.config.xaxis.stepSize&&r.config.xaxis.type!=="datetime"&&(f=r.config.xaxis.stepSize);var b=f*Math.floor(t/f),m=f*Math.ceil(e/f),w=b;if(s&&o>2){for(;n.push(M.stripNumber(w,7)),!((w+=f)>m););return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}var C=t;(n=[]).push(M.stripNumber(C,7));for(var l=Math.abs(e-t)/i,u=0;u<=i;u++)C+=l,n.push(C);return n[n.length-2]>=e&&n.pop(),{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,r=Math.abs(e-t);(i=this._adjustTicksForSmallRange(i,a,r))==="dataPoints"&&(i=this.w.globals.dataPoints-1),s||(s=r/i),i===Number.MAX_VALUE&&(i=5,s=1);for(var o=[],n=t;i>=0;)o.push(n),n+=s,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,r.logBase),a.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase);else if(i!==-Number.MAX_VALUE&&M.isNumber(i))if(a.allSeriesCollapsed=!1,r.min===void 0&&r.max===void 0||r.forceNiceScale){var n=s.yaxis[t].max===void 0&&s.yaxis[t].min===void 0||s.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,t,n)}else a.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t,s.yaxis[t].stepSize);else a.yAxisScale[t]=this.linearScale(0,5,5,t,s.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=Math.abs(e-t);return e!==-Number.MAX_VALUE&&M.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:s<5&&s>1?s+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),s=e.maxYArr.concat([]),r=[];i.yaxis.forEach(function(o,n){var h=n;i.series.forEach(function(g,p){g.name===o.seriesName&&(h=p,n!==p?r.push({index:p,similarIndex:n,alreadyExists:!0}):r.push({index:p}))});var c=a[h],d=s[h];t.setYScaleForIndex(n,c,d)}),this.sameScaleInMultipleAxes(a,s,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,s=this.w.config,r=this.w.globals,o=[];i.forEach(function(b){b.alreadyExists&&(o[b.index]===void 0&&(o[b.index]=[]),o[b.index].push(b.index),o[b.index].push(b.similarIndex))}),r.yAxisSameScaleIndices=o,o.forEach(function(b,m){o.forEach(function(w,C){var l,u;m!==C&&(l=b,u=w,l.filter(function(x){return u.indexOf(x)!==-1})).length>0&&(o[m]=o[m].concat(o[C]))})});var n=o.map(function(b){return b.filter(function(m,w){return b.indexOf(m)===w})}).map(function(b){return b.sort()});o=o.filter(function(b){return!!b});var h=n.slice(),c=h.map(function(b){return JSON.stringify(b)});h=h.filter(function(b,m){return c.indexOf(JSON.stringify(b))===m});var d=[],g=[];t.forEach(function(b,m){h.forEach(function(w,C){w.indexOf(m)>-1&&(d[C]===void 0&&(d[C]=[],g[C]=[]),d[C].push({key:m,value:b}),g[C].push({key:m,value:e[m]}))})});var p=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),f=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);d.forEach(function(b,m){b.forEach(function(w,C){p[m]=Math.min(w.value,p[m])})}),g.forEach(function(b,m){b.forEach(function(w,C){f[m]=Math.max(w.value,f[m])})}),t.forEach(function(b,m){g.forEach(function(w,C){var l=p[C],u=f[C];s.chart.stacked&&(u=0,w.forEach(function(x,v){x.value!==-Number.MAX_VALUE&&(u+=x.value),l!==Number.MIN_VALUE&&(l+=d[C][v].value)})),w.forEach(function(x,v){w[v].key===m&&(s.yaxis[m].min!==void 0&&(l=typeof s.yaxis[m].min=="function"?s.yaxis[m].min(r.minY):s.yaxis[m].min),s.yaxis[m].max!==void 0&&(u=typeof s.yaxis[m].max=="function"?s.yaxis[m].max(r.maxY):s.yaxis[m].max),a.setYScaleForIndex(m,l,u))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var s=a.globals.seriesX[0],r=a.config.chart.stacked;return e.forEach(function(o,n){for(var h=0,c=0;c=i.xaxis.min){h=c;break}var d,g,p=a.globals.minYArr[n],f=a.globals.maxYArr[n],b=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(m,w){var C=m[h];r?(C=b[h],d=g=C,b.forEach(function(l,u){s[u]<=i.xaxis.max&&s[u]>=i.xaxis.min&&(l>g&&l!==null&&(g=l),m[u]=i.xaxis.min){var x=l,v=l;a.globals.series.forEach(function(k,S){l!==null&&(x=Math.min(k[u],x),v=Math.max(k[u],v))}),v>g&&v!==null&&(g=v),xp&&(d=p),e.length>1?(e[w].min=o.min===void 0?d:o.min,e[w].max=o.max===void 0?g:o.max):(e[0].min=o.min===void 0?d:o.min,e[0].max=o.max===void 0?g:o.max)})}),e}}]),y}(),Qt=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.scales=new Rt(t)}return _(y,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,n=Number.MIN_VALUE;a===null&&(a=t+1);var h=r.series,c=h,d=h;s.chart.type==="candlestick"?(c=r.seriesCandleL,d=r.seriesCandleH):s.chart.type==="boxPlot"?(c=r.seriesCandleO,d=r.seriesCandleC):r.isRangeData&&(c=r.seriesRangeStart,d=r.seriesRangeEnd);for(var g=t;gc[g][p]&&c[g][p]<0&&(n=c[g][p])):r.hasNullValues=!0}}return s.chart.type==="rangeBar"&&r.seriesRangeStart.length&&r.isBarHorizontal&&(n=e),s.chart.type==="bar"&&(n<0&&o<0&&(o=0),n===Number.MIN_VALUE&&(n=0)),{minY:n,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a=0&&i<=10||e.yaxis[0].min!==void 0||e.yaxis[0].max!==void 0)&&(o=0),t.minY=i-5*o/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*o/100}return e.yaxis.forEach(function(n,h){n.max!==void 0&&(typeof n.max=="number"?t.maxYArr[h]=n.max:typeof n.max=="function"&&(t.maxYArr[h]=n.max(t.isMultipleYAxis?t.maxYArr[h]:t.maxY)),t.maxY=t.maxYArr[h]),n.min!==void 0&&(typeof n.min=="number"?t.minYArr[h]=n.min:typeof n.min=="function"&&(t.minYArr[h]=n.min(t.isMultipleYAxis?t.minYArr[h]===Number.MIN_VALUE?0:t.minYArr[h]:t.minY)),t.minY=t.minYArr[h])}),t.isBarHorizontal&&["min","max"].forEach(function(n){e.xaxis[n]!==void 0&&typeof e.xaxis[n]=="number"&&(n==="min"?t.minY=e.xaxis[n]:t.maxY=e.xaxis[n])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(n,h){t.minYArr[h]=n.niceMin,t.maxYArr[h]=n.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var o=0;ot.dataPoints&&t.dataPoints!==0&&(a=t.dataPoints-1)):e.xaxis.tickAmount==="dataPoints"?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,e.xaxis.max!==void 0&&typeof e.xaxis.max=="number"&&(t.maxX=e.xaxis.max),e.xaxis.min!==void 0&&typeof e.xaxis.min=="number"&&(t.minX=e.xaxis.min),e.xaxis.range!==void 0&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],r=t.minX-1;r0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ){for(var e=0;e0){var o=s-a[r-1];o>0&&(t.minXDiff=Math.min(o,t.minXDiff))}}),t.dataPoints!==1&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map(function(r){return r.name})]);var a={},s={};i.forEach(function(r){a[r]=[],s[r]=[],t.w.config.series.map(function(o,n){return r.indexOf(o.name)>-1?n:null}).filter(function(o){return o!==null}).forEach(function(o){for(var n=0;n0?a[r][n]+=parseFloat(e.series[o][n])+1e-4:s[r][n]+=parseFloat(e.series[o][n]))}})}),Object.entries(a).forEach(function(r){var o=Yt(r,1)[0];a[o].forEach(function(n,h){e.maxY=Math.max(e.maxY,a[o][h]),e.minY=Math.min(e.minY,s[o][h])})})}}}]),y}(),Kt=function(){function y(t,e){F(this,y),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,i.config.xaxis.position==="bottom"&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Tt(t)}return _(y,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new X(this.ctx),s=i.config.yaxis[t].labels.style,r=s.fontSize,o=s.fontFamily,n=s.fontWeight,h=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return h;var c=a.group({class:"apexcharts-yaxis-texts-g"});h.add(c);var d=i.globals.yAxisScale[t].result.length-1,g=i.globals.gridHeight/d,p=i.globals.translateY,f=i.globals.yLabelFormatters[t],b=i.globals.yAxisScale[t].result.slice();b=this.axesUtils.checkForReversedLabels(t,b);var m="";if(i.config.yaxis[t].labels.show)for(var w=function(L){var P=b[L];P=f(P,L,i);var I=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&i.config.yaxis.length!==0&&(I*=-1);var z="end";i.config.yaxis[t].opposite&&(z="start"),i.config.yaxis[t].labels.align==="left"?z="start":i.config.yaxis[t].labels.align==="center"?z="middle":i.config.yaxis[t].labels.align==="right"&&(z="end");var T=e.axesUtils.getYAxisForeColor(s.colors,t),Y=i.config.yaxis[t].labels.offsetY;i.config.chart.type==="heatmap"&&(Y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var R=a.drawText({x:I,y:p+d/10+Y+1,text:P,textAnchor:z,fontSize:r,fontFamily:o,fontWeight:n,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(T)?T[L]:T,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});L===d&&(m=R),c.add(R);var H=document.createElementNS(i.globals.SVGNS,"title");if(H.textContent=Array.isArray(P)?P.join(" "):P,R.node.appendChild(H),i.config.yaxis[t].labels.rotate!==0){var O=a.rotateAroundCenter(m.node),W=a.rotateAroundCenter(R.node);R.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(O.x," ").concat(W.y,")"))}p+=g},C=d;C>=0;C--)w(C);if(i.config.yaxis[t].title.text!==void 0){var l=a.group({class:"apexcharts-yaxis-title"}),u=0;i.config.yaxis[t].opposite&&(u=i.globals.translateYAxisX[t]);var x=a.drawText({x:u,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});l.add(x),h.add(l)}var v=i.config.yaxis[t].axisBorder,k=31+v.offsetX;if(i.config.yaxis[t].opposite&&(k=-31-v.offsetX),v.show){var S=a.drawLine(k,i.globals.translateY+v.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+v.offsetY+2,v.color,0,v.width);h.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,d,v,i.config.yaxis[t].axisTicks,t,g,h),h}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new X(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,n=o+e.config.xaxis.labels.offsetX,h=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),d=e.globals.timescaleLabels;d.length>0&&(this.xaxisLabels=d.slice(),r=(c=d.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var g=d.length;if(e.config.xaxis.labels.show)for(var p=g?0:r;g?p=0;g?p++:p--){var f=c[p];f=h(f,p,e);var b=e.globals.gridWidth+e.globals.padHorizontal-(n-o+e.config.xaxis.labels.offsetX);if(d.length){var m=this.axesUtils.getLabel(c,d,b,p,this.drawnLabels,this.xaxisFontSize);b=m.x,f=m.text,this.drawnLabels.push(m.text),p===0&&e.globals.skipFirstTimelinelabel&&(f=""),p===c.length-1&&e.globals.skipLastTimelinelabel&&(f="")}var w=i.drawText({x:b,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-(e.config.xaxis.position==="top"?e.globals.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.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(w),w.tspan(f);var C=document.createElementNS(e.globals.SVGNS,"title");C.textContent=f,w.node.appendChild(C),n+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new X(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;e.config.chart.type==="bar"&&e.globals.isXNumeric&&(s-=15);var r=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new X(this.ctx);if(e.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.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});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new X(this.ctx),s={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));o!==null&&(s=o.getBoundingClientRect());var n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(n!==null&&(r=n.getBoundingClientRect()),n!==null){var h=this.xPaddingForYAxisTitle(t,s,r,e);n.setAttribute("x",h.xPos-(e?10:0))}if(n!==null){var c=a.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,o=0,n=10;return s.config.yaxis[t].title.text===void 0||t<0?{xPos:o,padd:0}:(a?(o=e.width+s.config.yaxis[t].title.offsetX+i.width/2+n/2,(r+=1)===0&&(o-=n/2)):(o=-1*e.width+s.config.yaxis[t].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(n=25,o=-1*e.width-s.config.yaxis[t].title.offsetX-n)),{xPos:o,padd:n})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(n,h){var c=i.globals.ignoreYAxisIndexes.indexOf(h)>-1||!n.show||n.floating||t[h].width===0,d=t[h].width+e[h].width;n.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[h]=s-n.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+o,c||(o=o+d+20),i.globals.translateYAxisX[h]=s-n.labels.offsetX+20):(a=i.globals.translateX-r,c||(r=r+d+20),i.globals.translateYAxisX[h]=a+n.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=M.listToArray(e)).forEach(function(i,a){var s=t.config.yaxis[a];if(s&&!s.floating&&s.labels.align!==void 0){var r=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));o=M.listToArray(o);var n=r.getBoundingClientRect();s.labels.align==="left"?(o.forEach(function(h,c){h.setAttribute("text-anchor","start")}),s.opposite||r.setAttribute("transform","translate(-".concat(n.width,", 0)"))):s.labels.align==="center"?(o.forEach(function(h,c){h.setAttribute("text-anchor","middle")}),r.setAttribute("transform","translate(".concat(n.width/2*(s.opposite?1:-1),", 0)"))):s.labels.align==="right"&&(o.forEach(function(h,c){h.setAttribute("text-anchor","end")}),s.opposite&&r.setAttribute("transform","translate(".concat(n.width,", 0)")))}})}}]),y}(),Ee=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.documentEvent=M.bind(this.documentEvent,this)}return _(y,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);a!==-1&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,r=0;r0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(s){return s.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=M.extend(D,i);this.w.globals.locale=a.options}}]),y}(),_e=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"drawAxis",value:function(t,e){var i,a,s=this,r=this.w.globals,o=this.w.config,n=new Bt(this.ctx,e),h=new Kt(this.ctx,e);r.axisCharts&&t!=="radar"&&(r.isBarHorizontal?(a=h.drawYaxisInversed(0),i=n.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=n.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map(function(c,d){if(r.ignoreYAxisIndexes.indexOf(d)===-1&&(a=h.drawYaxis(d),r.dom.Paper.add(a),s.w.config.grid.position==="back")){var g=r.dom.Paper.children()[1];g.remove(),r.dom.Paper.add(g)}})))}}]),y}(),te=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new X(this.ctx),i=new et(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=a.colorFrom,n=a.colorTo,h=a.opacityFrom,c=a.opacityTo,d=a.stops,g=s.enabled,p=s.left,f=s.top,b=s.blur,m=s.color,w=s.opacity,C=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){r==="gradient"&&(C=e.drawGradient("vertical",o,n,h,c,null,d,null));var l=e.drawRect();t.config.xaxis.crosshairs.width===1&&(l=e.drawLine());var u=t.globals.gridHeight;(!M.isNumber(u)||u<0)&&(u=0);var x=t.config.xaxis.crosshairs.width;(!M.isNumber(x)||x<0)&&(x=0),l.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:u,width:x,height:u,fill:C,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),g&&(l=i.dropShadow(l,{left:p,top:f,blur:b,color:m,opacity:w})),t.globals.dom.elGraphical.add(l)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new X(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),y}(),Fe=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(a.responsive.length!==0){var s=a.responsive.slice();s.sort(function(h,c){return h.breakpoint>c.breakpoint?1:c.breakpoint>h.breakpoint?-1:0}).reverse();var r=new Nt({}),o=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s[0].breakpoint,d=window.innerWidth>0?window.innerWidth:screen.width;if(d>c){var g=K.extendArrayProps(r,i.globals.initialConfig,i);h=M.extend(g,h),h=M.extend(i.config,h),e.overrideResponsiveOptions(h)}else for(var p=0;p0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(f,b){var m=i.config.colors[b];return m||(m=i.config.colors[0]),typeof m=="function"?(e.isColorFn=!0,m({value:i.globals.axisCharts?i.globals.series[b][0]?i.globals.series[b][0]:0:i.globals.series[b],seriesIndex:b,dataPointIndex:b,w:i})):m}))),i.globals.seriesColors.map(function(f,b){f&&(i.globals.colors[b]=f)}),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var o=i.config.theme.monochrome.color,n=1/(r/i.config.theme.monochrome.shadeIntensity),h=i.config.theme.monochrome.shadeTo,c=0,d=0;d2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map(function(r,o){return Array.isArray(r)?r.length:1}),s=Math.max.apply(Math,Q(a));i=e[a.indexOf(s)]}return i}}]),y}(),Oe=function(){function y(t){F(this,y),this.w=t.w,this.dCtx=t}return _(y,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=e.config.legend.position!=="left"&&e.config.legend.position!=="right"||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,r=M.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce(function(f,b){return f.length>b.length?f:b},0));var n=new mt(this.dCtx.ctx),h=r;r=n.xLabelFormat(s,r,h,{i:void 0,dateFormatter:new V(this.dCtx.ctx).formatDate,w:e}),o=n.xLabelFormat(s,o,h,{i:void 0,dateFormatter:new V(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&r===void 0||String(r).trim()==="")&&(o=r="1");var c=new X(this.dCtx.ctx),d=c.getTextRects(r,e.config.xaxis.labels.style.fontSize),g=d;if(r!==o&&(g=c.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:d.width>=g.width?d.width:g.width,height:d.height>=g.height?d.height:g.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&e.config.xaxis.labels.rotate!==0||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var p=function(f){return c.getTextRects(f,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};d=p(r),r!==o&&(g=p(o)),t.height=(d.height>g.height?d.height:g.height)/1.5,t.width=d.width>g.width?d.width:g.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=((t=e.config.xaxis.group.style)===null||t===void 0?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,s=e.globals.groups.map(function(d){return d.title}),r=M.getLargestStringFromArr(s),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),n=new X(this.dCtx.ctx),h=n.getTextRects(r,a),c=h;return r!==o&&(c=n.getTextRects(o,a)),i={width:h.width>=c.width?h.width:c.width,height:h.height>=c.height?h.height:c.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(t.config.xaxis.title.text!==void 0){var a=new X(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(s){return s.value}),a=i.reduce(function(s,r){return s===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):s.length>r.length?s:r},0);return 1.05*(t=new X(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&e.config.xaxis.labels.rotate!==0&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,o=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var n=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,h=function(c,d){s.yaxis.length>1&&function(g){return a.collapsedSeriesIndices.indexOf(g)!==-1}(d)||function(g){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var p=e.dCtx.timescaleLabels[0],f=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,b=p.position-o/1.75+e.dCtx.yAxisWidthLeft,m=i.config.legend.position==="right"&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;f>a.svgWidth-a.translateX-m&&(a.skipLastTimelinelabel=!0),b<-(g.show&&!g.floating||s.chart.type!=="bar"&&s.chart.type!=="candlestick"&&s.chart.type!=="rangeBar"&&s.chart.type!=="boxPlot"?10:o/1.75)&&(a.skipFirstTimelinelabel=!0)}else r==="datetime"?e.dCtx.gridPad.right((k=String(d(x,n)))===null||k===void 0?void 0:k.length)?u:x},g),f=p=d(p,n);if(p!==void 0&&p.length!==0||(p=h.niceMax),e.globals.isBarHorizontal){a=0;var b=e.globals.labels.slice();p=M.getLargestStringFromArr(b),p=d(p,{seriesIndex:o,dataPointIndex:-1,w:e}),f=t.dCtx.dimHelpers.getLargestStringFromMultiArr(p,b)}var m=new X(t.dCtx.ctx),w="rotate(".concat(r.labels.rotate," 0 0)"),C=m.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,w,!1),l=C;p!==f&&(l=m.getTextRects(f,r.labels.style.fontSize,r.labels.style.fontFamily,w,!1)),i.push({width:(c>l.width||c>C.width?c:l.width>C.width?l.width:C.width)+a,height:l.height>C.height?l.height:C.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(a,s){if(a.show&&a.title.text!==void 0){var r=new X(t.dCtx.ctx),o="rotate(".concat(a.title.rotate," 0 0)"),n=r.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,o,!1);i.push({width:n.width,height:n.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,r=new Tt(this.dCtx.ctx),o=function(n,h){var c=t.config.yaxis[h].floating,d=0;n.width>0&&!c?(d=n.width+s,function(g){return t.globals.ignoreYAxisIndexes.indexOf(g)>-1}(h)&&(d=d-n.width-s)):d=c||r.isYAxisHidden(h)?0:5,t.config.yaxis[h].opposite?a+=d:i+=d,e+=d};return t.globals.yLabelsCoords.map(function(n,h){o(n,h)}),t.globals.yTitleCoords.map(function(n,h){o(n,h)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),y}(),We=function(){function y(t){F(this,y),this.w=t.w,this.dCtx=t}return _(y,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(c){return c==="bar"||c==="rangeBar"||c==="candlestick"||c==="boxPlot"},a=e.config.chart.type,s=0,r=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(r=e.globals.comboBarCount),e.globals.collapsedSeries.forEach(function(c){i(c.type)&&(r-=1)}),e.config.chart.stacked&&(r=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&r>0){var o,n,h=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);h<=3&&(h=e.globals.dataPoints),o=h/t,e.globals.minXDiff&&e.globals.minXDiff/o>0&&(n=e.globals.minXDiff/o),n>t/2&&(n/=2),(s=n/r*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(r>1?1:1.5)+5,e.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(o){e.config[o].text!==void 0?a+=e.config[o].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||e.config.legend.position!=="bottom"||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new Tt(this.dCtx.ctx);i.config.yaxis.map(function(s,r){i.globals.ignoreYAxisIndexes.indexOf(r)!==-1||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),y}(),Ut=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,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 De(this),this.dimYAxis=new Ne(this),this.dimXAxis=new Oe(this),this.dimGrid=new We(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return _(y,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(s){var r=Yt(s,2),o=r[0],n=r[1];t.gridPad[o]=Math.max(n,t.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(p,f){e.globals.yLabelsCoords.push({width:a[f].width,index:f}),e.globals.yTitleCoords.push({width:s[f].width,index:f})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),n=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,n,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var h=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-n.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;(e.config.chart.type==="radar"||this.isSparkline)&&(h=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||e.config.chart.type==="treemap")&&(h=0,c=0,d=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var g=function(){i.translateX=h,i.gridHeight=i.svgHeight-t.lgRect.height-c-(t.isSparkline||e.config.chart.type==="treemap"?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-h};switch(e.config.xaxis.position==="top"&&(d=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=d,g();break;case"top":i.translateY=this.lgRect.height+d,g();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h;break;case"right":i.translateY=d,i.translateX=h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Kt(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",r=i.plotOptions[s].offsetY,o=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,h=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=r*o+s*n+h,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightd&&(this.yAxisWidth=d)}}]),y}(),Be=function(){function y(t){F(this,y),this.w=t.w,this.lgCtx=t}return _(y,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var s=((t=this.lgCtx.ctx)===null||t===void 0||(e=t.opts)===null||e===void 0||(i=e.chart)===null||i===void 0?void 0:i.nonce)||this.w.config.chart.nonce;s&&a.setAttribute("nonce",s);var r=document.createTextNode(` .apexcharts-legend { display: flex; overflow: auto; padding: 0 10px; } .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top { flex-wrap: wrap } .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { flex-direction: column; bottom: 0; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { justify-content: flex-start; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center { justify-content: center; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right { justify-content: flex-end; } .apexcharts-legend-series { cursor: pointer; line-height: normal; } .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{ display: flex; align-items: center; } .apexcharts-legend-text { position: relative; font-size: 14px; } .apexcharts-legend-text *, .apexcharts-legend-marker * { pointer-events: none; } .apexcharts-legend-marker { position: relative; display: inline-block; cursor: pointer; margin-right: 3px; border-style: solid; } .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{ display: inline-block; } .apexcharts-legend-series.apexcharts-no-click { cursor: auto; } .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series { display: none !important; } .apexcharts-inactive-legend { opacity: 0.45; }`);return a.appendChild(r),a}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(c){i.riseCollapsedSeries(c.cs,c.csi,r)}):this.hideSeries({seriesEl:s,realIndex:r})}else{var o=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),n=a.config.chart.type;if(n==="pie"||n==="polarArea"||n==="donut"){var h=a.config.plotOptions.pie.donut.labels;new X(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,h)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=M.clone(a.config.series);if(a.globals.axisCharts){var r=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(r=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var o=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(o,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var n=e.childNodes,h=0;h0){for(var r=0;r-1&&(t[a].data=[])}):t.forEach(function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)}),t}}]),y}(),ue=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Be(this)}return _(y,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&e.series.length===1||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),M.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if(e.config.chart.type==="heatmap"){var r=e.config.plotOptions.heatmap.colorScale.ranges;a=r.map(function(T){return T.name?T.name:T.from+" - "+T.to}),s=r.map(function(T){return T.color})}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,n=e.config.legend.inverseOrder,h=n?a.length-1:0;n?h>=0:h<=a.length-1;n?h--:h++){var c,d=o(a[h],{seriesIndex:h,w:e}),g=!1,p=!1;if(e.globals.collapsedSeries.length>0)for(var f=0;f0)for(var b=0;b0?h-10:0)+(c>0?c-10:0)}a.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=o+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(d){a.style[d]&&(a.style[d]=parseInt(i.config.legend[d],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new Ut(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;t.config.legend.position==="bottom"?r=-e.clwh/1.8:t.config.legend.position==="top"&&(r=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;t.config.legend.position==="left"&&(i=20),t.config.legend.position==="right"&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if(e.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new gt(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new gt(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a=t.target.getAttribute("data:collapsed")==="true",s=this.w.config.chart.events.legendClick;typeof s=="function"&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;typeof r=="function"&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),e.config.chart.type!=="treemap"&&e.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),y}(),pe=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w;var e=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX}return _(y,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s `),o("zoomOut",this.elZoomOut,` `);var n=function(d){t.t[d]&&e.config.chart[d].enabled&&r.push({el:d==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[d]=="string"?t.t[d]:d==="zoom"?` `:` `,title:t.localeValues[d==="zoom"?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(d,"-icon")})};n("zoom"),n("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:` `,title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,` `),this.t.download&&r.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var h=0;h0&&a.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,a=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var s=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,r=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-s;i.globals.isRangeBar&&(s=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/a.invertedYRatio,r=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/a.invertedYRatio);var o={x:s,y:0,width:r,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(o),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var a=i.x,s=i.y,r=i.width,o=i.height,n=i.translateX,h=n===void 0?0:n,c=i.translateY,d=c===void 0?0:c,g=this.w,p=this.zoomRect,f=this.selectionRect;if(this.dragged||g.globals.selection!==null){var b={transform:"translate("+h+", "+d+")"};g.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),p.attr({x:a,y:s,width:r,height:o,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),X.setAttrs(p.node,b)),g.globals.selectionEnabled&&(f.attr({x:a,y:s,width:r>0?r:0,height:o>0?o:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),X.setAttrs(f.node,b))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var a=i.context,s=i.zoomtype,r=this.w,o=a,n=this.gridRect.getBoundingClientRect(),h=o.startX-1,c=o.startY,d=!1,g=!1,p=o.clientX-n.left-h,f=o.clientY-n.top-c,b={};return Math.abs(p+h)>r.globals.gridWidth?p=r.globals.gridWidth-h:o.clientX-n.left<0&&(p=h),h>o.clientX-n.left&&(d=!0,p=Math.abs(p)),c>o.clientY-n.top&&(g=!0,f=Math.abs(f)),b=s==="x"?{x:d?h-p:h,y:0,width:p,height:r.globals.gridHeight}:s==="y"?{x:0,y:g?c-f:c,width:r.globals.gridWidth,height:f}:{x:d?h-p:h,y:g?c-f:c,width:p,height:f},o.drawSelectionRect(b),o.selectionDragging("resizing"),b}},{key:"selectionDragging",value:function(i,a){var s=this,r=this.w,o=this.xyRatios,n=this.selectionRect,h=0;i==="resizing"&&(h=30);var c=function(g){return parseFloat(n.node.getAttribute(g))},d={x:c("x"),y:c("y"),width:c("width"),height:c("height")};r.globals.selection=d,typeof r.config.chart.events.selection=="function"&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g,p,f,b,m=s.gridRect.getBoundingClientRect(),w=n.node.getBoundingClientRect();r.globals.isRangeBar?(g=r.globals.yAxisScale[0].niceMin+(w.left-m.left)*o.invertedYRatio,p=r.globals.yAxisScale[0].niceMin+(w.right-m.left)*o.invertedYRatio,f=0,b=1):(g=r.globals.xAxisScale.niceMin+(w.left-m.left)*o.xRatio,p=r.globals.xAxisScale.niceMin+(w.right-m.left)*o.xRatio,f=r.globals.yAxisScale[0].niceMin+(m.bottom-w.bottom)*o.yRatio[0],b=r.globals.yAxisScale[0].niceMax-(w.top-m.top)*o.yRatio[0]);var C={xaxis:{min:g,max:p},yaxis:{min:f,max:b}};r.config.chart.events.selection(s.ctx,C),r.config.chart.brush.enabled&&r.config.chart.events.brushScrolled!==void 0&&r.config.chart.events.brushScrolled(s.ctx,C)},h))}},{key:"selectionDrawn",value:function(i){var a=i.context,s=i.zoomtype,r=this.w,o=a,n=this.xyRatios,h=this.ctx.toolbar;if(o.startX>o.endX){var c=o.startX;o.startX=o.endX,o.endX=c}if(o.startY>o.endY){var d=o.startY;o.startY=o.endY,o.endY=d}var g=void 0,p=void 0;r.globals.isRangeBar?(g=r.globals.yAxisScale[0].niceMin+o.startX*n.invertedYRatio,p=r.globals.yAxisScale[0].niceMin+o.endX*n.invertedYRatio):(g=r.globals.xAxisScale.niceMin+o.startX*n.xRatio,p=r.globals.xAxisScale.niceMin+o.endX*n.xRatio);var f=[],b=[];if(r.config.yaxis.forEach(function(k,S){f.push(r.globals.yAxisScale[S].niceMax-n.yRatio[S]*o.startY),b.push(r.globals.yAxisScale[S].niceMax-n.yRatio[S]*o.endY)}),o.dragged&&(o.dragX>10||o.dragY>10)&&g!==p){if(r.globals.zoomEnabled){var m=M.clone(r.globals.initialConfig.yaxis),w=M.clone(r.globals.initialConfig.xaxis);if(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),p=Math.floor(p),g<1&&(g=1,p=r.globals.dataPoints),p-g<2&&(p=g+1)),s!=="xy"&&s!=="x"||(w={min:g,max:p}),s!=="xy"&&s!=="y"||m.forEach(function(k,S){m[S].min=b[S],m[S].max=f[S]}),r.config.chart.zoom.autoScaleYaxis){var C=new Rt(o.ctx);m=C.autoScaleY(o.ctx,m,{xaxis:w})}if(h){var l=h.getBeforeZoomRange(w,m);l&&(w=l.xaxis?l.xaxis:w,m=l.yaxis?l.yaxis:m)}var u={xaxis:w};r.config.chart.group||(u.yaxis=m),o.ctx.updateHelpers._updateOptions(u,!1,o.w.config.chart.animations.dynamicAnimation.enabled),typeof r.config.chart.events.zoomed=="function"&&h.zoomCallback(w,m)}else if(r.globals.selectionEnabled){var x,v=null;x={min:g,max:p},s!=="xy"&&s!=="y"||(v=M.clone(r.config.yaxis)).forEach(function(k,S){v[S].min=b[S],v[S].max=f[S]}),r.globals.selection=o.selection,typeof r.config.chart.events.selection=="function"&&r.config.chart.events.selection(o.ctx,{xaxis:x,yaxis:v})}}}},{key:"panDragging",value:function(i){var a=i.context,s=this.w,r=a;if(s.globals.lastClientPosition.x!==void 0){var o=s.globals.lastClientPosition.x-r.clientX,n=s.globals.lastClientPosition.y-r.clientY;Math.abs(o)>Math.abs(n)&&o>0?this.moveDirection="left":Math.abs(o)>Math.abs(n)&&o<0?this.moveDirection="right":Math.abs(n)>Math.abs(o)&&n>0?this.moveDirection="up":Math.abs(n)>Math.abs(o)&&n<0&&(this.moveDirection="down")}s.globals.lastClientPosition={x:r.clientX,y:r.clientY};var h=s.globals.isRangeBar?s.globals.minY:s.globals.minX,c=s.globals.isRangeBar?s.globals.maxY:s.globals.maxX;s.config.xaxis.convertedCatToNumeric||r.panScrolled(h,c)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,s=i.globals.maxX,r=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+r,s=i.globals.maxX+r):this.moveDirection==="right"&&(a=i.globals.minX-r,s=i.globals.maxX-r),a=Math.floor(a),s=Math.floor(s),this.updateScrolledChart({xaxis:{min:a,max:s}},a,s)}},{key:"panScrolled",value:function(i,a){var s=this.w,r=this.xyRatios,o=M.clone(s.globals.initialConfig.yaxis),n=r.xRatio,h=s.globals.minX,c=s.globals.maxX;s.globals.isRangeBar&&(n=r.invertedYRatio,h=s.globals.minY,c=s.globals.maxY),this.moveDirection==="left"?(i=h+s.globals.gridWidth/15*n,a=c+s.globals.gridWidth/15*n):this.moveDirection==="right"&&(i=h-s.globals.gridWidth/15*n,a=c-s.globals.gridWidth/15*n),s.globals.isRangeBar||(is.globals.initialMaxX)&&(i=h,a=c);var d={min:i,max:a};s.config.chart.zoom.autoScaleYaxis&&(o=new Rt(this.ctx).autoScaleY(this.ctx,o,{xaxis:d}));var g={xaxis:{min:i,max:a}};s.config.chart.group||(g.yaxis=o),this.updateScrolledChart(g,i,a)}},{key:"updateScrolledChart",value:function(i,a,s){var r=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof r.config.chart.events.scrolled=="function"&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:a,max:s}})}}]),e}(),fe=function(){function y(t){F(this,y),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return _(y,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,r=this.w,o=i.getBoundingClientRect(),n=o.width,h=o.height,c=n/(r.globals.dataPoints-1),d=h/r.globals.dataPoints,g=this.hasBars();!r.globals.comboCharts&&!g||r.config.xaxis.convertedCatToNumeric||(c=n/r.globals.dataPoints);var p=a-o.left-r.globals.barPadForNumericAxis,f=s-o.top;p<0||f<0||p>n||f>h?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var b=Math.round(p/c),m=Math.floor(f/d);g&&!r.config.xaxis.convertedCatToNumeric&&(b=Math.ceil(p/c),b-=1);var w=null,C=null,l=r.globals.seriesXvalues.map(function(S){return S.filter(function(L){return M.isNumber(L)})}),u=r.globals.seriesYvalues.map(function(S){return S.filter(function(L){return M.isNumber(L)})});if(r.globals.isXNumeric){var x=this.ttCtx.getElGrid().getBoundingClientRect(),v=p*(x.width/n),k=f*(x.height/h);w=(C=this.closestInMultiArray(v,k,l,u)).index,b=C.j,w!==null&&(l=r.globals.seriesXvalues[w],b=(C=this.closestInArray(v,l)).index)}return r.globals.capturedSeriesIndex=w===null?-1:w,(!b||b<1)&&(b=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=m:r.globals.capturedDataPointIndex=b,{capturedSeries:w,j:r.globals.isBarHorizontal?m:b,hoverX:p,hoverY:f}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,o=null,n=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var h=i[r][0],c=Math.abs(t-h);if(i.forEach(function(p){p.forEach(function(f,b){var m=Math.abs(t-f);m<=c&&(c=m,n=b)})}),n!==-1){var d=a[r][n],g=Math.abs(e-d);o=r,a.forEach(function(p,f){var b=Math.abs(e-p[n]);b<=g&&(g=b,o=f)})}return{index:o,j:n}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map(function(r,o){return r.length>0?o:-1}),s=0;s0)for(var a=0;a *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=Q(t)).sort(function(i,a){var s=Number(i.getAttribute("data:realIndex")),r=Number(a.getAttribute("data:realIndex"));return rs?-1:0});var e=[];return t.forEach(function(i){e.push(i.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return i===void 0&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s ').concat(P.attrs.name,""),L+="
".concat(P.val,"
")}),l.innerHTML=S+"",u.innerHTML=L+""};o?h.globals.seriesGoals[e][i]&&Array.isArray(h.globals.seriesGoals[e][i])?x():(l.innerHTML="",u.innerHTML=""):x()}else l.innerHTML="",u.innerHTML="";if(b!==null&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=b!==void 0?b:""),o&&m[0]){if(h.config.tooltip.hideEmptySeries){var v=a[e].querySelector(".apexcharts-tooltip-marker"),k=a[e].querySelector(".apexcharts-tooltip-text");parseFloat(d)==0?(v.style.display="none",k.style.display="none"):(v.style.display="block",k.style.display="block")}d==null||h.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||h.globals.collapsedSeriesIndices.indexOf(e)>-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=h.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",o="",n=null,h=null,c={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},d=a.globals.ttZFormatter;i===null?h=a.globals.series[e]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(r=s[e][i],s[e].length===0&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var g=r;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?r=new mt(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new V(this.ctx).formatDate,w:this.w}):r=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](g,c):a.globals.xLabelFormatter(g,c),a.config.tooltip.x.formatter!==void 0&&(r=a.globals.ttKeyFormatter(g,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(n=d(a.globals.seriesZ[e][i],a)),o=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(g,c):r,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:n}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),n=r.config.tooltip.custom;Array.isArray(n)&&n[e]&&(n=n[e]),o.innerHTML=n({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:r})}}]),y}(),xe=function(){function y(t){F(this,y),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return _(y,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;if(e!==null&&(r=a.globals.gridWidth/o*e),s===null||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var n=r;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(n=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;e.ycrosshairs!==null&&X.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&X.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var a=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=e.globals.translateX;var s;s=new X(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=a+"px"}}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),s-=r/2,e.globals.ignoreYAxisIndexes.indexOf(t)===-1?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),o=s.tooltipRect,n=i!==null?parseFloat(i):1,h=parseFloat(t)+n+5,c=parseFloat(e)+n/2;if(h>a.globals.gridWidth/2&&(h=h-o.ttWidth-n-10),h>a.globals.gridWidth-o.ttWidth-10&&(h=a.globals.gridWidth-o.ttWidth),h<-20&&(h=-20),a.config.tooltip.followCursor){var d=s.getElGrid().getBoundingClientRect();(h=s.e.clientX-d.left)>a.globals.gridWidth/2&&(h-=s.tooltipRect.ttWidth),(c=s.e.clientY+a.globals.translateY-d.top)>a.globals.gridHeight/2&&(c-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||o.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-o.ttHeight+a.globals.translateY);isNaN(h)||(h+=a.globals.translateX,r.style.left=h+"px",r.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r0&&(c.setAttribute("r",n),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,n)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,r=0,o=a.globals.pointsArray;e=new gt(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var n=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(s=o[e][t][0],r=o[e][t][1]);var h=i.tooltipUtil.getAllMarkers();if(h!==null)for(var c=0;c0?(h[c]&&h[c].setAttribute("r",n),h[c]&&h[c].setAttribute("cy",g)):h[c]&&h[c].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,n)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new gt(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));o||typeof e!="number"||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,`'], .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'], .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'], .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,"']")));var n=o?parseFloat(o.getAttribute("cx")):0,h=o?parseFloat(o.getAttribute("cy")):0,c=o?parseFloat(o.getAttribute("barWidth")):0,d=a.getElGrid().getBoundingClientRect(),g=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!g&&(n-=s%2!=0?c/2:0),o&&g&&i.globals.comboCharts&&(n-=c/2)):i.globals.isBarHorizontal||(n=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(n)&&(n=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?h-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?h=a.e.clientY-d.top-a.tooltipRect.ttHeight/2:h+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(h=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,h||i.globals.gridHeight)}}]),y}(),je=function(){function y(t){F(this,y),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new xe(t)}return _(y,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new X(this.ctx),i=new Wt(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=Q(a),t.config.chart.stacked&&a.sort(function(d,g){return parseFloat(d.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w;s.config.chart.type!=="bubble"&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(i!==null&&a!==null&&(r=i,o=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if(s.config.chart.type==="radar"){var n=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-n.left}this.tooltipPosition.moveTooltip(r,o,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,n=0;n=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),y}(),Ue=function(){function y(t){F(this,y),this.w=t.w;var e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.config.chart.type==="rangeBar"&&e.config.plotOptions.bar.rangeBarGroupRows}return _(y,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=t.type,o=this.ttCtx,n=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var h=this.getAttr(e,"i"),c=this.getAttr(e,"j"),d=this.getAttr(e,"cx"),g=this.getAttr(e,"cy"),p=this.getAttr(e,"width"),f=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:h,j:c,shared:!1,e}),n.globals.capturedSeriesIndex=h,n.globals.capturedDataPointIndex=c,a=d+o.tooltipRect.ttWidth/2+p,s=g+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(d+p/2),a>n.globals.gridWidth/2&&(a=d-o.tooltipRect.ttWidth/2+p),o.w.config.tooltip.followCursor){var b=n.globals.dom.elWrap.getBoundingClientRect();a=n.globals.clientX-b.left-(a>n.globals.gridWidth/2?o.tooltipRect.ttWidth:0),s=n.globals.clientY-b.top-(s>n.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=t.x,o=t.y,n=this.w,h=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),d=parseInt(s.paths.getAttribute("cy"),10),g=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var p=M.findAncestor(s.paths,"apexcharts-series");p&&(e=parseInt(p.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!h.showOnIntersect&&n.config.tooltip.shared,e:a}),a.type==="mouseup"&&h.markerClick(a,e,i),n.globals.capturedSeriesIndex=e,n.globals.capturedDataPointIndex=i,r=c,o=d+n.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var f=h.getElGrid().getBoundingClientRect();o=h.e.clientY+n.globals.translateY-f.top}g<0&&(o=d),h.marker.enlargeCurrentPoint(i,s.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=this.ttCtx,n=o.getElTooltip(),h=0,c=0,d=0,g=this.getBarTooltipXY({e:a,opt:s});e=g.i;var p=g.barHeight,f=g.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=f,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=g.x,d=g.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,h=c):r.globals.comboCharts||r.config.tooltip.shared||(h/=2),isNaN(d)&&(d=r.globals.svgHeight-o.tooltipRect.ttHeight);var b=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),m=r.globals.isMultipleYAxis?r.config.yaxis[b]&&r.config.yaxis[b].reversed:r.config.yaxis[0].reversed;if(c+o.tooltipRect.ttWidth>r.globals.gridWidth&&!m?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var w=o.getElGrid().getBoundingClientRect();d=o.e.clientY-w.top}o.tooltip===null&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(h+i/2):o.tooltipPosition.moveXCrosshairs(h)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(m&&(c-=o.tooltipRect.ttWidth)<0&&(c=0),!m||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(d=d+p-2*(r.globals.series[e][f]<0?p:0)),d=d+r.globals.translateY-o.tooltipRect.ttHeight/2,n.style.left=c+r.globals.translateX+"px",n.style.top=d+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,s=this.w,r=null,o=this.ttCtx,n=0,h=0,c=0,d=0,g=0,p=i.target.classList;if(p.contains("apexcharts-bar-area")||p.contains("apexcharts-candlestick-area")||p.contains("apexcharts-boxPlot-area")||p.contains("apexcharts-rangebar-area")){var f=i.target,b=f.getBoundingClientRect(),m=a.elGrid.getBoundingClientRect(),w=b.height;g=b.height;var C=b.width,l=parseInt(f.getAttribute("cx"),10),u=parseInt(f.getAttribute("cy"),10);d=parseFloat(f.getAttribute("barWidth"));var x=i.type==="touchmove"?i.touches[0].clientX:i.clientX;r=parseInt(f.getAttribute("j"),10),n=parseInt(f.parentNode.getAttribute("rel"),10)-1;var v=f.getAttribute("data-range-y1"),k=f.getAttribute("data-range-y2");s.globals.comboCharts&&(n=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var S=function(P){return s.globals.isXNumeric?l-C/2:e.isVerticalGroupedRangeBar?l+C/2:l-o.dataPointsDividedWidth+C/2},L=function(){return u-o.dataPointsDividedHeight+w/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:n,j:r,y1:v?parseInt(v,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(h=x-m.left+15,c=L()):(h=S(),c=i.clientY-m.top-o.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((h=l)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w,r=s.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var o=a.getElGrid().getBoundingClientRect(),n=(e-o.top)*i.yRatio[t],h=s.globals.maxYArr[t]-s.globals.minYArr[t],c=s.globals.minYArr[t]+(h-n);a.tooltipPosition.moveYCrosshairs(e-o.top),a.yaxisTooltipText[t].innerHTML=r(c),a.tooltipPosition.moveYAxisTooltip(t)}}}]),y}(),be=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w;var e=this.w;this.tConfig=e.config.tooltip,this.tooltipUtil=new fe(this),this.tooltipLabels=new Ve(this),this.tooltipPosition=new xe(this),this.marker=new je(this),this.intersect=new Ue(this),this.axesTooltip=new $e(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return _(y,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(r,o){return!!(r.show&&r.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new Bt(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&e.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),e.config.markers.size!==0&&e.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("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));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),r=function(n){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group"),h.style.order=i.config.tooltip.inverseOrder?t-n:n+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(n)<0&&h.classList.add("apexcharts-tooltip-series-group-hidden");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-marker"),c.style.backgroundColor=i.globals.colors[n],h.appendChild(c);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,d.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var p=document.createElement("div");p.classList.add("apexcharts-tooltip-".concat(g,"-group"));var f=document.createElement("span");f.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),p.appendChild(f);var b=document.createElement("span");b.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),p.appendChild(b),d.appendChild(p)}),h.appendChild(d),s.appendChild(h),a.push(h)},o=0;o0&&this.addPathsEventListeners(f,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(r=r+t.globals.svgWidth-a+10),n.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-s-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(r){var o={paths:t[r],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(n){return t[r].addEventListener(n,i.onSeriesHover.bind(i,o),{capture:!1,passive:!0})})},s=0;s=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||s.globals.dataPoints===0)||(a.length?a.forEach(function(r){var o=i.getElTooltip(r),n={paths:t.paths,tooltipEl:o,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===i.w.globals.minX&&r.w.globals.maxX===i.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:n,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,r=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=s,i.tooltipUtil.hasBars()&&!r.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new gt(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=s.elGrid.getBoundingClientRect(),n=a.type==="touchmove"?a.touches[0].clientX:a.clientX,h=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=h,this.clientX=n,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,ho.top+o.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var d=this.getElTooltip(),g=this.getElXCrosshairs(),p=r.globals.xyCharts||r.config.chart.type==="bar"&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;g!==null&&g.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter(function(w){return w===!0});if(this.ycrosshairs!==null&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect)this.handleStickyTooltip(a,n,h,s);else if(r.config.chart.type==="heatmap"||r.config.chart.type==="treemap"){var b=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:r.config.chart.type});e=b.x,i=b.y,d.style.left=e+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var m=0;mh.width)this.handleMouseOut(a);else if(n!==null)this.handleStickyCapturedSeries(t,n,a,o);else if(this.tooltipUtil.isXoverlap(o)||s.globals.isBarHorizontal){var c=s.globals.series.findIndex(function(d,g){return!s.globals.collapsedSeriesIndices.includes(g)});this.create(t,this,c,o,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;if(!this.tConfig.shared&&s.globals.series[e][a]===null)return void this.handleMouseOut(i);if(s.globals.series[e][a]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex(function(o,n){return!s.globals.collapsedSeriesIndices.includes(n)});this.create(t,this,r,a,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new X(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&arguments[5]!==void 0?arguments[5]:null,k=this.w,S=e;t.type==="mouseup"&&this.markerClick(t,i,a),v===null&&(v=this.tConfig.shared);var L=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(k.config.legend.tooltipHoverFormatter){var I=k.config.legend.tooltipHoverFormatter,z=Array.from(this.legendLabels);z.forEach(function(xt){var lt=xt.getAttribute("data:default-text");xt.innerHTML=decodeURIComponent(lt)});for(var T=0;T0?S.marker.enlargePoints(a):S.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var N=new X(this.ctx),$=k.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var q=0;q<$.length;q++)N.pathMouseEnter($[q])}}else S.tooltipLabels.drawSeriesTexts(E({shared:!1},W)),this.tooltipUtil.hasBars()&&S.tooltipPosition.moveStickyTooltipOverBars(a,i),L&&S.tooltipPosition.moveMarkers(i,a)}}]),y}(),Ze=function(){function y(t){F(this,y),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return _(y,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.y1,s=t.y2,r=t.i,o=t.j,n=t.realIndex,h=t.groupIndex,c=t.series,d=t.barHeight,g=t.barWidth,p=t.barXPosition,f=t.barYPosition,b=t.visibleSeries,m=t.renderedPath,w=this.w,C=new X(this.barCtx.ctx),l=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth,u=e+parseFloat(g*b),x=i+parseFloat(d*b);w.globals.isXNumeric&&!w.globals.isBarHorizontal&&(u=e+parseFloat(g*(b+1)),x=i+parseFloat(d*(b+1))-l);var v,k=null,S=e,L=i,P={},I=w.config.dataLabels,z=this.barCtx.barOptions.dataLabels,T=this.barCtx.barOptions.dataLabels.total;f!==void 0&&this.barCtx.isRangeBar&&(x=f,L=f),p!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(u=p,S=p);var Y=I.offsetX,R=I.offsetY,H={width:0,height:0};if(w.config.dataLabels.enabled){var O=this.barCtx.series[r][o];H=C.getTextRects(w.globals.yLabelFormatters[0](O),parseFloat(I.style.fontSize))}var W={x:e,y:i,i:r,j:o,realIndex:n,groupIndex:h||-1,renderedPath:m,bcx:u,bcy:x,barHeight:d,barWidth:g,textRects:H,strokeWidth:l,dataLabelsX:S,dataLabelsY:L,dataLabelsConfig:I,barDataLabelsConfig:z,barTotalDataLabelsConfig:T,offX:Y,offY:R};return P=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(W):this.calculateColumnsDataLabelsPosition(W),m.attr({cy:P.bcy,cx:P.bcx,j:o,val:c[r][o],barHeight:d,barWidth:g}),v=this.drawCalculatedDataLabels({x:P.dataLabelsX,y:P.dataLabelsY,val:this.barCtx.isRangeBar?[a,s]:c[r][o],i:n,j:o,barWidth:g,barHeight:d,textRects:H,dataLabelsConfig:I}),w.config.chart.stacked&&T.enabled&&(k=this.drawTotalDataLabels({x:P.totalDataLabelsX,y:P.totalDataLabelsY,barWidth:g,barHeight:d,realIndex:n,textAnchor:P.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:n,j:o}),dataLabelsConfig:I,barTotalDataLabelsConfig:T})),{dataLabels:v,totalDataLabels:k}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,a=this.w,s=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(s=this.totalFormatter(s,E(E({},a),{},{seriesIndex:e,dataPointIndex:i,w:a}))),s}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,a=this.w,s=t.i,r=t.j,o=t.realIndex,n=t.groupIndex,h=t.y,c=t.bcx,d=t.barWidth,g=t.barHeight,p=t.textRects,f=t.dataLabelsX,b=t.dataLabelsY,m=t.dataLabelsConfig,w=t.barDataLabelsConfig,C=t.barTotalDataLabelsConfig,l=t.strokeWidth,u=t.offX,x=t.offY;g=Math.abs(g);var v=a.config.plotOptions.bar.dataLabels.orientation==="vertical",k=this.barCtx.barHelpers.getZeroValueEncounters({i:s,j:r}).zeroEncounters;c=c-l/2+(n!==-1?n*d:0);var S=a.globals.gridWidth/a.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?f+=d/2:(f=a.globals.isXNumeric?c-d/2+u:c-S+d/2+u,k>0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(f-=d*k)),v&&(f=f+p.height/2-l/2-2);var L=this.barCtx.series[s][r]<0,P=h;switch(this.barCtx.isReversed&&(P=h-g+(L?2*g:0),h-=g),w.position){case"center":b=v?L?P-g/2+x:P+g/2-x:L?P-g/2+p.height/2+x:P+g/2+p.height/2-x;break;case"bottom":b=v?L?P-g+x:P+g-x:L?P-g+p.height+l+x:P+g-p.height/2+l-x;break;case"top":b=v?L?P+x:P-x:L?P-p.height/2-x:P+p.height+x}if(this.barCtx.lastActiveBarSerieIndex===o&&C.enabled){var I=new X(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),m.fontSize);e=L?P-I.height/2-x-C.offsetY+18:P+I.height+x+C.offsetY-18,i=f+C.offsetX}return a.config.chart.stacked||(b<0?b=0+l:b+p.height/3>a.globals.gridHeight&&(b=a.globals.gridHeight-l)),{bcx:c,bcy:h,dataLabelsX:f,dataLabelsY:b,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,r=t.realIndex,o=t.groupIndex,n=t.bcy,h=t.barHeight,c=t.barWidth,d=t.textRects,g=t.dataLabelsX,p=t.strokeWidth,f=t.dataLabelsConfig,b=t.barDataLabelsConfig,m=t.barTotalDataLabelsConfig,w=t.offX,C=t.offY,l=e.globals.gridHeight/e.globals.dataPoints;c=Math.abs(c);var u,x,v=(n+=o!==-1?o*h:0)-(this.barCtx.isRangeBar?0:l)+h/2+d.height/2+C-3,k="start",S=this.barCtx.series[a][s]<0,L=i;switch(this.barCtx.isReversed&&(L=i+c-(S?2*c:0),i=e.globals.gridWidth-c),b.position){case"center":g=S?L+c/2-w:Math.max(d.width/2,L-c/2)+w;break;case"bottom":g=S?L+c-p-Math.round(d.width/2)-w:L-c+p+Math.round(d.width/2)+w;break;case"top":g=S?L-p+Math.round(d.width/2)-w:L-p-Math.round(d.width/2)+w}if(this.barCtx.lastActiveBarSerieIndex===r&&m.enabled){var P=new X(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),f.fontSize);S?(u=L-p+Math.round(P.width/2)-w-m.offsetX-15,k="end"):u=L-p-Math.round(P.width/2)+w+m.offsetX+15,x=v+m.offsetY}return e.config.chart.stacked||(g<0?g=g+d.width+p:g+d.width/2>e.globals.gridWidth&&(g=e.globals.gridWidth-d.width-p)),{bcx:i,bcy:n,dataLabelsX:g,dataLabelsY:v,totalDataLabelsX:u,totalDataLabelsY:x,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,r=t.j,o=t.textRects,n=t.barHeight,h=t.barWidth,c=t.dataLabelsConfig,d=this.w,g="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(g="rotate(-90, ".concat(e,", ").concat(i,")"));var p=new Ft(this.barCtx.ctx),f=new X(this.barCtx.ctx),b=c.formatter,m=null,w=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!w){m=f.group({class:"apexcharts-data-labels",transform:g});var C="";a!==void 0&&(C=b(a,E(E({},d),{},{seriesIndex:s,dataPointIndex:r,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(C="");var l=d.globals.series[s][r]<0,u=d.config.plotOptions.bar.dataLabels.position;d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(u==="top"&&(c.textAnchor=l?"end":"start"),u==="center"&&(c.textAnchor="middle"),u==="bottom"&&(c.textAnchor=l?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(C=""):o.height/1.6>Math.abs(n)&&(C=""));var x=E({},c);this.barCtx.isHorizontal&&a<0&&(c.textAnchor==="start"?x.textAnchor="end":c.textAnchor==="end"&&(x.textAnchor="start")),p.plotDataLabelsText({x:e,y:i,text:C,i:s,j:r,parent:m,dataLabelsConfig:x,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,s=t.val,r=t.barWidth,o=t.barHeight,n=t.realIndex,h=t.textAnchor,c=t.barTotalDataLabelsConfig,d=this.w,g=new X(this.barCtx.ctx);return c.enabled&&i!==void 0&&a!==void 0&&this.barCtx.lastActiveBarSerieIndex===n&&(e=g.drawText({x:i-(!d.globals.isBarHorizontal&&d.globals.seriesGroups.length?r/d.globals.seriesGroups.length:0),y:a-(d.globals.isBarHorizontal&&d.globals.seriesGroups.length?o/d.globals.seriesGroups.length:0),foreColor:c.style.color,text:s,textAnchor:h,fontFamily:c.style.fontFamily,fontSize:c.style.fontSize,fontWeight:c.style.fontWeight})),e}}]),y}(),qe=function(){function y(t){F(this,y),this.w=t.w,this.barCtx=t}return _(y,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;ae.globals.minX&&e.globals.seriesX[i][a]0&&(a=h.globals.minXDiff/g),(r=a/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=h.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return h.globals.barHeight=s,h.globals.barWidth=r,{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:o,zeroW:n}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].prevY=[],t[i].prevX=[],t[i].prevYF=[],t[i].prevXF=[],t[i].prevYVal=[],t[i].prevXVal=[]}):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].xArrj=[],t[i].xArrjF=[],t[i].xArrjVal=[],t[i].yArrj=[],t[i].yArrjF=[],t[i].yArrjVal=[]}):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var s,r,o,n,h=this.w,c=new ft(this.barCtx.ctx),d=null,g=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(p){t[e][i]>=p.from&&t[e][i]<=p.to&&(d=p.color)}),h.config.series[e].data[i]&&h.config.series[e].data[i].fillColor&&(d=h.config.series[e].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?g:a,dataPointIndex:i,color:d,value:t[e][i],fillConfig:(s=h.config.series[e].data[i])===null||s===void 0?void 0:s.fill,fillType:(r=h.config.series[e].data[i])!==null&&r!==void 0&&(o=r.fill)!==null&&o!==void 0&&o.type?(n=h.config.series[e].data[i])===null||n===void 0?void 0:n.fill.type:Array.isArray(h.config.fill.type)?h.config.fill.type[e]:h.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return this.barCtx.series[t][e]===void 0||this.barCtx.series[t][e]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&e.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,r=t.y1,o=t.y2,n=t.elSeries,h=this.w,c=new X(this.barCtx.ctx),d=new gt(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&d===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var g=this.barCtx.barOptions.colors.backgroundBarColors[e],p=c.drawRect(a!==void 0?a:0,r!==void 0?r:0,s!==void 0?s:h.globals.gridWidth,o!==void 0?o:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);n.add(p),p.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,s=t.y1,r=t.y2,o=t.strokeWidth,n=t.seriesGroup,h=t.realIndex,c=t.i,d=t.j,g=t.w,p=new X(this.barCtx.ctx);(o=Array.isArray(o)?o[h]:o)||(o=0);var f=i,b=a;(e=g.config.series[h].data[d])!==null&&e!==void 0&&e.columnWidthOffset&&(b=a-g.config.series[h].data[d].columnWidthOffset/2,f=i+g.config.series[h].data[d].columnWidthOffset);var m=b,w=b+f;s+=.001,r+=.001;var C=p.move(m,s),l=p.move(m,s),u=p.line(w-o,s);if(g.globals.previousPaths.length>0&&(l=this.barCtx.getPreviousPath(h,d,!1)),C=C+p.line(m,r)+p.line(w-o,r)+p.line(w-o,s)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),l=l+p.line(m,s)+u+u+u+u+u+p.line(m,s)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(h)&&(C=p.roundPathCorners(C,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var x=this.barCtx;g.globals.hasSeriesGroups&&n&&(x=this.barCtx[n]),x.yArrj.push(r),x.yArrjF.push(Math.abs(s-r)),x.yArrjVal.push(this.barCtx.series[c][d])}return{pathTo:C,pathFrom:l}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,s=t.x1,r=t.x2,o=t.strokeWidth,n=t.seriesGroup,h=t.realIndex,c=t.i,d=t.j,g=t.w,p=new X(this.barCtx.ctx);(o=Array.isArray(o)?o[h]:o)||(o=0);var f=i,b=a;(e=g.config.series[h].data[d])!==null&&e!==void 0&&e.barHeightOffset&&(f=i-g.config.series[h].data[d].barHeightOffset/2,b=a+g.config.series[h].data[d].barHeightOffset);var m=f,w=f+b;s+=.001,r+=.001;var C=p.move(s,m),l=p.move(s,m);g.globals.previousPaths.length>0&&(l=this.barCtx.getPreviousPath(h,d,!1));var u=p.line(s,w-o);if(C=C+p.line(r,m)+p.line(r,w-o)+u+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),l=l+p.line(s,m)+u+u+u+u+u+p.line(s,m)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(h)&&(C=p.roundPathCorners(C,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var x=this.barCtx;g.globals.hasSeriesGroups&&n&&(x=this.barCtx[n]),x.xArrj.push(r),x.xArrjF.push(Math.abs(s-r)),x.xArrjVal.push(this.barCtx.series[c][d])}return{pathTo:C,pathFrom:l}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,a,s){var r=this,o=this.w,n=[],h=function(g,p){var f;n.push((rt(f={},t,t==="x"?r.getXForValue(g,e,!1):r.getYForValue(g,i,!1)),rt(f,"attrs",p),f))};if(o.globals.seriesGoals[a]&&o.globals.seriesGoals[a][s]&&Array.isArray(o.globals.seriesGoals[a][s])&&o.globals.seriesGoals[a][s].forEach(function(g){h(g.value,g)}),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var c=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,d={strokeHeight:t==="x"?0:o.globals.markers.size[a],strokeWidth:t==="x"?o.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(c[a])?c[a][0]:c[a]};h(o.globals.seriesRangeStart[a][s],d),h(o.globals.seriesRangeEnd[a][s],E(E({},d),{},{strokeColor:Array.isArray(c[a])?c[a][1]:c[a]}))}return n}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,r=t.barWidth,o=t.barHeight,n=new X(this.barCtx.ctx),h=n.group({className:"apexcharts-bar-goals-groups"});h.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:h.node}),h.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(d){var g=d.attrs.strokeHeight!==void 0?d.attrs.strokeHeight:o/2,p=i+g+o/2;c=n.drawLine(d.x,p-2*g,d.x,p,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),h.add(c)}):Array.isArray(s)&&s.forEach(function(d){var g=d.attrs.strokeWidth!==void 0?d.attrs.strokeWidth:r/2,p=e+g+r/2;c=n.drawLine(p-2*g,d.y,p,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),h.add(c)}),h}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,s=this.w,r=e.x,o=e.x1,n=e.barYPosition,h=i.x,c=i.x1,d=i.barYPosition,g=n+i.barHeight,p=new X(this.barCtx.ctx),f=new M,b=p.move(o,g)+p.line(r,g)+p.line(h,d)+p.line(c,d)+p.line(o,g)+(s.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return p.drawPath({d:b,fill:f.shadeColor(.5,M.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach(function(o,n){o[i]&&s++,nthis.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,n=0;o0&&(this.visibleI=this.visibleI+1);var l=0,u=0;this.yRatio.length>1&&(this.yaxisIndex=w),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var x=this.barHelpers.initialPositions();f=x.y,l=x.barHeight,c=x.yDivision,g=x.zeroW,p=x.x,u=x.barWidth,h=x.xDivision,d=x.zeroH,this.horizontal||m.push(p+u/2);var v=a.group({class:"apexcharts-datalabels","data:realIndex":w});i.globals.delayedElements.push({el:v.node}),v.node.classList.add("apexcharts-element-hidden");var k=a.group({class:"apexcharts-bar-goals-markers"}),S=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");for(var L=0;L0){var Y=this.barHelpers.drawBarShadow({color:typeof T=="string"&&(T==null?void 0:T.indexOf("url"))===-1?T:M.hexToRgba(i.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:I});Y&&S.add(Y)}this.pathArr.push(I);var R=this.barHelpers.drawGoalLine({barXPosition:I.barXPosition,barYPosition:I.barYPosition,goalX:I.goalX,goalY:I.goalY,barHeight:l,barWidth:u});R&&k.add(R),f=I.y,p=I.x,L>0&&m.push(p+u/2),b.push(f),this.renderSeries({realIndex:w,pathFill:T,j:L,i:o,pathFrom:I.pathFrom,pathTo:I.pathTo,strokeWidth:P,elSeries:C,x:p,y:f,series:t,barHeight:I.barHeight?I.barHeight:l,barWidth:I.barWidth?I.barWidth:u,elDataLabelsWrap:v,elGoalsMarkers:k,elBarShadows:S,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[w]=m,i.globals.seriesYvalues[w]=b,r.add(C)}return r}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,r=t.i,o=t.groupIndex,n=t.pathFrom,h=t.pathTo,c=t.strokeWidth,d=t.elSeries,g=t.x,p=t.y,f=t.y1,b=t.y2,m=t.series,w=t.barHeight,C=t.barWidth,l=t.barXPosition,u=t.barYPosition,x=t.elDataLabelsWrap,v=t.elGoalsMarkers,k=t.elBarShadows,S=t.visibleSeries,L=t.type,P=this.w,I=new X(this.ctx);a||(a=this.barOptions.distributed?P.globals.stroke.colors[s]:P.globals.stroke.colors[e]),P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var z=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,T=I.renderPaths({i:r,j:s,realIndex:e,pathFrom:n,pathTo:h,stroke:a,strokeWidth:c,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:z,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L,"-area")});T.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var Y=P.config.forecastDataPoints;Y.count>0&&s>=P.globals.dataPoints-Y.count&&(T.node.setAttribute("stroke-dasharray",Y.dashArray),T.node.setAttribute("stroke-width",Y.strokeWidth),T.node.setAttribute("fill-opacity",Y.fillOpacity)),f!==void 0&&b!==void 0&&(T.attr("data-range-y1",f),T.attr("data-range-y2",b)),new et(this.ctx).setSelectionFilter(T,e,s),d.add(T);var R=new Ze(this).handleBarDataLabels({x:g,y:p,y1:f,y2:b,i:r,j:s,series:m,realIndex:e,groupIndex:o,barHeight:w,barWidth:C,barXPosition:l,barYPosition:u,renderedPath:T,visibleSeries:S});return R.dataLabels!==null&&x.add(R.dataLabels),R.totalDataLabels&&x.add(R.totalDataLabels),d.add(x),v&&d.add(v),k&&d.add(k),d}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,h=t.yDivision,c=t.elSeries,d=this.w,g=i.i,p=i.j;if(d.globals.isXNumeric)e=(n=(d.globals.seriesX[g][p]-d.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,b=0;d.globals.seriesPercent.forEach(function(w,C){w[p]&&f++,C0&&(a=this.seriesLen*a/f),e=n+a*this.visibleI,e-=a*b}else e=n+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[g][p],r)-r)/2),o=this.barHelpers.getXForValue(this.series[g][p],r);var m=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:r,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:g,j:p,w:d});return d.globals.isXNumeric||(n+=h),this.barHelpers.barBackground({j:p,i:g,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:c}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x1:r,x:o,y:n,goalX:this.barHelpers.getGoalValues("x",r,null,g,p),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,s=t.y,r=t.xDivision,o=t.barWidth,n=t.zeroH,h=t.strokeWidth,c=t.elSeries,d=this.w,g=i.realIndex,p=i.i,f=i.j,b=i.bc;if(d.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:a,j:f,realIndex:g,barWidth:o});a=m.x,e=m.barXPosition}else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var w=this.barHelpers.getZeroValueEncounters({i:p,j:f}),C=w.nonZeroColumns,l=w.zeroEncounters;C>0&&(o=this.seriesLen*o/C),e=a+o*this.visibleI,e-=o*l}else e=a+o*this.visibleI;s=this.barHelpers.getYForValue(this.series[p][f],n);var u=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:o,y1:n,y2:s,strokeWidth:h,series:this.series,realIndex:i.realIndex,i:p,j:f,w:d});return d.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:b,j:f,i:p,x1:e-h/2-o*this.visibleI,x2:o*this.seriesLen+h/2,elSeries:c}),{pathTo:u.pathTo,pathFrom:u.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,n,p,f),barXPosition:e,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,s=t.j,r=this.w,o=a;return r.globals.seriesX[a].length||(o=r.globals.maxValsInArrayIndex),r.globals.seriesX[o][s]&&(e=(r.globals.seriesX[o][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s0&&parseInt(r.realIndex,10)===parseInt(t,10)&&a.globals.previousPaths[s].paths[e]!==void 0&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),y}(),me=function(y){vt(e,Ht);var t=ot(e);function e(){return F(this,e),t.apply(this,arguments)}return _(e,[{key:"draw",value:function(i,a){var s=this,r=this.w;this.graphics=new X(this.ctx),this.bar=new Ht(this.ctx,this.xyRatios);var o=new K(this.ctx,r);i=o.getLogSeries(i),this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),r.config.chart.stackType==="100%"&&(i=r.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var n=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),h=0,c=0,d=function(f,b){var m=void 0,w=void 0,C=void 0,l=void 0,u=-1;s.groupCtx=s,r.globals.seriesGroups.forEach(function($,q){$.indexOf(r.config.series[f].name)>-1&&(u=q)}),u!==-1&&(s.groupCtx=s[r.globals.seriesGroups[u]]);var x=[],v=[],k=r.globals.comboCharts?a[f]:f;s.yRatio.length>1&&(s.yaxisIndex=k),s.isReversed=r.config.yaxis[s.yaxisIndex]&&r.config.yaxis[s.yaxisIndex].reversed;var S=s.graphics.group({class:"apexcharts-series",seriesName:M.escapeString(r.globals.seriesNames[k]),rel:f+1,"data:realIndex":k});s.ctx.series.addCollapsedClassToSeries(S,k);var L=s.graphics.group({class:"apexcharts-datalabels","data:realIndex":k}),P=s.graphics.group({class:"apexcharts-bar-goals-markers"}),I=0,z=0,T=s.initialPositions(h,c,m,w,C,l);c=T.y,I=T.barHeight,w=T.yDivision,l=T.zeroW,h=T.x,z=T.barWidth,m=T.xDivision,C=T.zeroH,r.globals.barHeight=I,r.globals.barWidth=z,s.barHelpers.initializeStackedXYVars(s),s.groupCtx.prevY.length===1&&s.groupCtx.prevY[0].every(function($){return isNaN($)})&&(s.groupCtx.prevY[0]=s.groupCtx.prevY[0].map(function($){return C}),s.groupCtx.prevYF[0]=s.groupCtx.prevYF[0].map(function($){return 0}));for(var Y=0;Y1?(s=p.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:g*parseInt(p.config.plotOptions.bar.columnWidth,10)/100,String(p.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(g=parseInt(p.config.plotOptions.bar.columnWidth,10)),o=p.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?p.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=p.globals.padHorizontal+(s-g)/2),{x:i,y:a,yDivision:r,xDivision:s,barHeight:(h=p.globals.seriesGroups)!==null&&h!==void 0&&h.length?d/p.globals.seriesGroups.length:d,barWidth:(c=p.globals.seriesGroups)!==null&&c!==void 0&&c.length?g/p.globals.seriesGroups.length:g,zeroH:o,zeroW:n}}},{key:"drawStackedBarPaths",value:function(i){for(var a,s=i.indexes,r=i.barHeight,o=i.strokeWidth,n=i.zeroW,h=i.x,c=i.y,d=i.groupIndex,g=i.seriesGroup,p=i.yDivision,f=i.elSeries,b=this.w,m=c+(d!==-1?d*r:0),w=s.i,C=s.j,l=0,u=0;u0){var v=n;this.groupCtx.prevXVal[x-1][C]<0?v=this.series[w][C]>=0?this.groupCtx.prevX[x-1][C]+l-2*(this.isReversed?l:0):this.groupCtx.prevX[x-1][C]:this.groupCtx.prevXVal[x-1][C]>=0&&(v=this.series[w][C]>=0?this.groupCtx.prevX[x-1][C]:this.groupCtx.prevX[x-1][C]-l+2*(this.isReversed?l:0)),a=v}else a=n;h=this.series[w][C]===null?a:a+this.series[w][C]/this.invertedYRatio-2*(this.isReversed?this.series[w][C]/this.invertedYRatio:0);var k=this.barHelpers.getBarpaths({barYPosition:m,barHeight:r,x1:a,x2:h,strokeWidth:o,series:this.series,realIndex:s.realIndex,seriesGroup:g,i:w,j:C,w:b});return this.barHelpers.barBackground({j:C,i:w,y1:m,y2:r,elSeries:f}),c+=p,{pathTo:k.pathTo,pathFrom:k.pathFrom,goalX:this.barHelpers.getGoalValues("x",n,null,w,C),barYPosition:m,x:h,y:c}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,s=i.x,r=i.y,o=i.xDivision,n=i.barWidth,h=i.zeroH,c=i.groupIndex,d=i.seriesGroup,g=i.elSeries,p=this.w,f=a.i,b=a.j,m=a.bc;if(p.globals.isXNumeric){var w=p.globals.seriesX[f][b];w||(w=0),s=(w-p.globals.minX)/this.xRatio-n/2,p.globals.seriesGroups.length&&(s=(w-p.globals.minX)/this.xRatio-n/2*p.globals.seriesGroups.length)}for(var C,l=s+(c!==-1?c*n:0),u=0,x=0;x0&&!p.globals.isXNumeric||v>0&&p.globals.isXNumeric&&p.globals.seriesX[f-1][b]===p.globals.seriesX[f][b]){var k,S,L,P=Math.min(this.yRatio.length+1,f+1);if(this.groupCtx.prevY[v-1]!==void 0&&this.groupCtx.prevY[v-1].length)for(var I=1;I=0?L-u+2*(this.isReversed?u:0):L;break}if(((R=this.groupCtx.prevYVal[v-T])===null||R===void 0?void 0:R[b])>=0){S=this.series[f][b]>=0?L:L+u-2*(this.isReversed?u:0);break}}S===void 0&&(S=p.globals.gridHeight),C=(k=this.groupCtx.prevYF[0])!==null&&k!==void 0&&k.every(function(O){return O===0})&&this.groupCtx.prevYF.slice(1,v).every(function(O){return O.every(function(W){return isNaN(W)})})?h:S}else C=h;r=this.series[f][b]?C-this.series[f][b]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[f][b]/this.yRatio[this.yaxisIndex]:0):C;var H=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:n,y1:C,y2:r,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:d,realIndex:a.realIndex,i:f,j:b,w:p});return this.barHelpers.barBackground({bc:m,j:b,i:f,x1:l,x2:n,elSeries:g}),s+=o,{pathTo:H.pathTo,pathFrom:H.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,f,b),barXPosition:l,x:p.globals.isXNumeric?s-o:s,y:r}}}]),e}(),ee=function(y){vt(e,Ht);var t=ot(e);function e(){return F(this,e),t.apply(this,arguments)}return _(e,[{key:"draw",value:function(i,a,s){var r=this,o=this.w,n=new X(this.ctx),h=o.globals.comboCharts?a:o.config.chart.type,c=new ft(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=o.config.plotOptions.bar.horizontal;var d=new K(this.ctx,o);i=d.getLogSeries(i),this.series=i,this.yRatio=d.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var g=n.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),p=function(b){r.isBoxPlot=o.config.chart.type==="boxPlot"||o.config.series[b].type==="boxPlot";var m,w,C,l,u=void 0,x=void 0,v=[],k=[],S=o.globals.comboCharts?s[b]:b,L=n.group({class:"apexcharts-series",seriesName:M.escapeString(o.globals.seriesNames[S]),rel:b+1,"data:realIndex":S});r.ctx.series.addCollapsedClassToSeries(L,S),i[b].length>0&&(r.visibleI=r.visibleI+1);var P,I;r.yRatio.length>1&&(r.yaxisIndex=S);var z=r.barHelpers.initialPositions();x=z.y,P=z.barHeight,w=z.yDivision,l=z.zeroW,u=z.x,I=z.barWidth,m=z.xDivision,C=z.zeroH,k.push(u+I/2);for(var T=n.group({class:"apexcharts-datalabels","data:realIndex":S}),Y=function(H){var O=r.barHelpers.getStrokeWidth(b,H,S),W=null,N={indexes:{i:b,j:H,realIndex:S},x:u,y:x,strokeWidth:O,elSeries:L};W=r.isHorizontal?r.drawHorizontalBoxPaths(E(E({},N),{},{yDivision:w,barHeight:P,zeroW:l})):r.drawVerticalBoxPaths(E(E({},N),{},{xDivision:m,barWidth:I,zeroH:C})),x=W.y,u=W.x,H>0&&k.push(u+I/2),v.push(x),W.pathTo.forEach(function($,q){var xt=!r.isBoxPlot&&r.candlestickOptions.wick.useFillColor?W.color[q]:o.globals.stroke.colors[b],lt=c.fillPath({seriesNumber:S,dataPointIndex:H,color:W.color[q],value:i[b][H]});r.renderSeries({realIndex:S,pathFill:lt,lineFill:xt,j:H,i:b,pathFrom:W.pathFrom,pathTo:$,strokeWidth:O,elSeries:L,x:u,y:x,series:i,barHeight:P,barWidth:I,elDataLabelsWrap:T,visibleSeries:r.visibleI,type:o.config.chart.type})})},R=0;Ru.c&&(f=!1);var k=Math.min(u.o,u.c),S=Math.max(u.o,u.c),L=u.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[l][p]-c.globals.minX)/this.xRatio-o/2);var P=s+o*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(k=n,S=n):(k=n-k/C,S=n-S/C,x=n-u.h/C,v=n-u.l/C,L=n-u.m/C);var I=d.move(P,n),z=d.move(P+o/2,k);return c.globals.previousPaths.length>0&&(z=this.getPreviousPath(l,p,!0)),I=this.isBoxPlot?[d.move(P,k)+d.line(P+o/2,k)+d.line(P+o/2,x)+d.line(P+o/4,x)+d.line(P+o-o/4,x)+d.line(P+o/2,x)+d.line(P+o/2,k)+d.line(P+o,k)+d.line(P+o,L)+d.line(P,L)+d.line(P,k+h/2),d.move(P,L)+d.line(P+o,L)+d.line(P+o,S)+d.line(P+o/2,S)+d.line(P+o/2,v)+d.line(P+o-o/4,v)+d.line(P+o/4,v)+d.line(P+o/2,v)+d.line(P+o/2,S)+d.line(P,S)+d.line(P,L)+"z"]:[d.move(P,S)+d.line(P+o/2,S)+d.line(P+o/2,x)+d.line(P+o/2,S)+d.line(P+o,S)+d.line(P+o,k)+d.line(P+o/2,k)+d.line(P+o/2,v)+d.line(P+o/2,k)+d.line(P,k)+d.line(P,S-h/2)],z+=d.move(P,k),c.globals.isXNumeric||(s+=r),{pathTo:I,pathFrom:z,x:s,y:S,barXPosition:P,color:this.isBoxPlot?w:f?[b]:[m]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var s=i.y,r=i.yDivision,o=i.barHeight,n=i.zeroW,h=i.strokeWidth,c=this.w,d=new X(this.ctx),g=a.i,p=a.j,f=this.boxOptions.colors.lower;this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var b=this.invertedYRatio,m=a.realIndex,w=this.getOHLCValue(m,p),C=n,l=n,u=Math.min(w.o,w.c),x=Math.max(w.o,w.c),v=w.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[m][p]-c.globals.minX)/this.invertedXRatio-o/2);var k=s+o*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(u=n,x=n):(u=n+u/b,x=n+x/b,C=n+w.h/b,l=n+w.l/b,v=n+w.m/b);var S=d.move(n,k),L=d.move(u,k+o/2);return c.globals.previousPaths.length>0&&(L=this.getPreviousPath(m,p,!0)),S=[d.move(u,k)+d.line(u,k+o/2)+d.line(C,k+o/2)+d.line(C,k+o/2-o/4)+d.line(C,k+o/2+o/4)+d.line(C,k+o/2)+d.line(u,k+o/2)+d.line(u,k+o)+d.line(v,k+o)+d.line(v,k)+d.line(u+h/2,k),d.move(v,k)+d.line(v,k+o)+d.line(x,k+o)+d.line(x,k+o/2)+d.line(l,k+o/2)+d.line(l,k+o-o/4)+d.line(l,k+o/4)+d.line(l,k+o/2)+d.line(x,k+o/2)+d.line(x,k)+d.line(v,k)+"z"],L+=d.move(u,k),c.globals.isXNumeric||(s+=r),{pathTo:S,pathFrom:L,x,y:s,barYPosition:k,color:f}}},{key:"getOHLCValue",value:function(i,a){var s=this.w;return{o:this.isBoxPlot?s.globals.seriesCandleH[i][a]:s.globals.seriesCandleO[i][a],h:this.isBoxPlot?s.globals.seriesCandleO[i][a]:s.globals.seriesCandleH[i][a],m:s.globals.seriesCandleM[i][a],l:this.isBoxPlot?s.globals.seriesCandleC[i][a]:s.globals.seriesCandleL[i][a],c:this.isBoxPlot?s.globals.seriesCandleL[i][a]:s.globals.seriesCandleC[i][a]}}}]),e}(),ve=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(a,s){a.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,r=1,o=s.config.plotOptions[t].shadeIntensity,n=this.determineColor(t,e,i);s.globals.hasNegs||a?r=s.config.plotOptions[t].reverseNegativeShade?n.percent<0?n.percent/100*(1.25*o):(1-n.percent/100)*(1.25*o):n.percent<=0?1-(1+n.percent/100)*o:(1-n.percent/100)*o:(r=1-n.percent/100,t==="treemap"&&(r=(1-n.percent/100)*(1.25*o)));var h=n.color,c=new M;return s.config.plotOptions[t].enableShades&&(h=this.w.config.theme.mode==="dark"?M.hexToRgba(c.shadeColor(-1*r,n.color),s.config.fill.opacity):M.hexToRgba(c.shadeColor(r,n.color),s.config.fill.opacity)),{color:h,colorProps:n}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],r=a.config.plotOptions[t],o=r.colorScale.inverse?i:e;r.distributed&&a.config.chart.type==="treemap"&&(o=i);var n=a.globals.colors[o],h=null,c=Math.min.apply(Math,Q(a.globals.series[e])),d=Math.max.apply(Math,Q(a.globals.series[e]));r.distributed||t!=="heatmap"||(c=a.globals.minY,d=a.globals.maxY),r.colorScale.min!==void 0&&(c=r.colorScale.mina.globals.maxY?r.colorScale.max:a.globals.maxY);var g=Math.abs(d)+Math.abs(c),p=100*s/(g===0?g-1e-6:g);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map(function(f,b){if(s>=f.from&&s<=f.to){n=f.color,h=f.foreColor?f.foreColor:null,c=f.from,d=f.to;var m=Math.abs(d)+Math.abs(c);p=100*s/(m===0?m-1e-6:m)}}),{color:n,foreColor:h,percent:p}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,r=t.j,o=t.colorProps,n=t.fontSize,h=this.w.config.dataLabels,c=new X(this.ctx),d=new Ft(this.ctx),g=null;if(h.enabled){g=c.group({class:"apexcharts-data-labels"});var p=h.offsetX,f=h.offsetY,b=i+p,m=a+parseFloat(h.style.fontSize)/3+f;d.plotDataLabelsText({x:b,y:m,text:e,i:s,j:r,color:o.foreColor,parent:g,fontSize:n,dataLabelsConfig:h})}return g}},{key:"addListeners",value:function(t){var e=new X(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),y}(),Je=function(){function y(t,e){F(this,y),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new ve(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return _(y,[{key:"draw",value:function(t){var e=this.w,i=new X(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,n=!1;this.negRange=this.helpers.checkColorRange();var h=t.slice();e.config.yaxis[0].reversed&&(n=!0,h.reverse());for(var c=n?0:h.length-1;n?c=0;n?c++:c--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:M.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(d,c),e.config.chart.dropShadow.enabled){var g=e.config.chart.dropShadow;new et(this.ctx).dropShadow(d,g,c)}for(var p=0,f=e.config.plotOptions.heatmap.shadeIntensity,b=0;b-1&&this.pieClicked(g),i.config.dataLabels.enabled){var x=l.x,v=l.y,k=100*f/this.fullAngle+"%";if(f!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(a+o):a+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var d=Math.PI*(c-90)/180,g=i.centerX+r*Math.cos(h),p=i.centerY+r*Math.sin(h),f=i.centerX+r*Math.cos(d),b=i.centerY+r*Math.sin(d),m=M.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),w=M.polarToCartesian(i.centerX,i.centerY,i.donutSize,n),C=s>180?1:0,l=["M",g,p,"A",r,r,0,C,1,f,b];return e=i.chartType==="donut"?[].concat(l,["L",m.x,m.y,"A",i.donutSize,i.donutSize,0,C,0,w.x,w.y,"L",g,p,"z"]).join(" "):i.chartType==="pie"||i.chartType==="polarArea"?[].concat(l,["L",i.centerX,i.centerY,"L",g,p]).join(" "):[].concat(l).join(" "),o.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new Rt(this.ctx),a=new X(this.ctx),s=new ye(this.ctx),r=a.group(),o=a.group(),n=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),h=n.result.reverse(),c=n.result.length;this.maxY=n.niceMax;for(var d=e.globals.radialSize,g=d/(c-1),p=0;p1&&t.total.show&&(s=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),a||typeof t.total.formatter!="function"||(i=t.total.formatter(r));var h=e===t.total.label;e=t.name.formatter(e,h,r),o!==null&&(o.textContent=e),n!==null&&(n.textContent=i),o!==null&&(o.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");r!==null&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new X(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(s.strokeWidth!==0){for(var r=[],o=360/i.globals.series.length,n=0;n1)o&&!e.total.showAlways?h({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(h({makeSliceOut:!1,printLabel:!0}),!o)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],d=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(d,e)}else r&&s.globals.selectedDataPoints.length&&s.globals.selectedDataPoints[0].length===0&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),y}(),Qe=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var e=this.w;this.graphics=new X(this.ctx),this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight0&&(v=e.getPreviousPath(w));for(var k=0;k=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(t,10)&&e.globals.previousPaths[a].paths[0]!==void 0&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s=360&&(b=360-Math.abs(this.startAngle)-.1);var m=s.drawPath({d:"",stroke:p,strokeWidth:h*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});if(g.dropShadow.enabled){var w=g.dropShadow;o.dropShadow(m,w)}d.add(m),m.attr("id","apexcharts-radialbarTrack-"+c),this.animatePaths(m,{centerX:i.centerX,centerY:i.centerY,endAngle:b,startAngle:f,size:i.size,i:c,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:a.globals.easing})}return r}},{key:"drawArcs",value:function(i){var a=this.w,s=new X(this.ctx),r=new ft(this.ctx),o=new et(this.ctx),n=s.group(),h=this.getStrokeWidth(i);i.size=i.size-h/2;var c=a.config.plotOptions.radialBar.hollow.background,d=i.size-h*i.series.length-this.margin*i.series.length-h*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=d-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(c=this.drawHollowImage(i,n,d,c));var p=this.drawHollow({size:g,centerX:i.centerX,centerY:i.centerY,fill:c||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var f=a.config.plotOptions.radialBar.hollow.dropShadow;o.dropShadow(p,f)}var b=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(b=0);var m=null;this.radialDataLabels.show&&(m=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:d,centerX:i.centerX,centerY:i.centerY,opacity:b})),a.config.plotOptions.radialBar.hollow.position==="back"&&(n.add(p),m&&n.add(m));var w=!1;a.config.plotOptions.radialBar.inverseOrder&&(w=!0);for(var C=w?i.series.length-1:0;w?C>=0:C100?100:i.series[C])/100,S=Math.round(this.totalAngle*k)+this.startAngle,L=void 0;a.globals.dataChanged&&(v=this.startAngle,L=Math.round(this.totalAngle*M.negToZero(a.globals.previousPaths[C])/100)+v),Math.abs(S)+Math.abs(x)>=360&&(S-=.01),Math.abs(L)+Math.abs(v)>=360&&(L-=.01);var P=S-x,I=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[C]:a.config.stroke.dashArray,z=s.drawPath({d:"",stroke:u,strokeWidth:h,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+C,strokeDashArray:I});if(X.setAttrs(z.node,{"data:angle":P,"data:value":i.series[C]}),a.config.chart.dropShadow.enabled){var T=a.config.chart.dropShadow;o.dropShadow(z,T,C)}if(o.setSelectionFilter(z,0,C),this.addListeners(z,this.radialDataLabels),l.add(z),z.attr({index:0,j:C}),this.barLabels.enabled){var Y=M.polarToCartesian(i.centerX,i.centerY,i.size,x),R=this.barLabels.formatter(a.globals.seriesNames[C],{seriesIndex:C,w:a}),H=["apexcharts-radialbar-label"];this.barLabels.onClick||H.push("apexcharts-no-click");var O=this.barLabels.useSeriesColors?a.globals.colors[C]:a.config.chart.foreColor;O||(O=a.config.chart.foreColor);var W=Y.x-this.barLabels.margin,N=Y.y,$=s.drawText({x:W,y:N,text:R,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:O,cssClass:H.join(" ")});$.on("click",this.onBarLabelClick),$.attr({rel:C+1}),x!==0&&$.attr({"transform-origin":"".concat(W," ").concat(N),transform:"rotate(".concat(x," 0 0)")}),l.add($)}var q=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(q=a.config.chart.animations.speed),a.globals.dataChanged&&(q=a.config.chart.animations.dynamicAnimation.speed),this.animDur=q/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(z,{centerX:i.centerX,centerY:i.centerY,endAngle:S,startAngle:x,prevEndAngle:L,prevStartAngle:v,size:i.size,i:C,totalItems:2,animBeginArr:this.animBeginArr,dur:q,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:n,elHollow:p,dataLabels:m}}},{key:"drawHollow",value:function(i){var a=new X(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,s,r){var o=this.w,n=new ft(this.ctx),h=M.randomId(),c=o.config.plotOptions.radialBar.hollow.image;if(o.config.plotOptions.radialBar.hollow.imageClipped)n.clippedImgArea({width:s,height:s,image:c,patternID:"pattern".concat(o.globals.cuid).concat(h)}),r="url(#pattern".concat(o.globals.cuid).concat(h,")");else{var d=o.config.plotOptions.radialBar.hollow.imageWidth,g=o.config.plotOptions.radialBar.hollow.imageHeight;if(d===void 0&&g===void 0){var p=o.globals.dom.Paper.image(c).loaded(function(b){this.move(i.centerX-b.width/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-b.height/2+o.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(p)}else{var f=o.globals.dom.Paper.image(c).loaded(function(b){this.move(i.centerX-d/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-g/2+o.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(d,g)});a.add(f)}}return r}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var a=parseInt(i.target.getAttribute("rel"),10)-1,s=this.barLabels.onClick,r=this.w;s&&s(r.globals.seriesNames[a],{w:r,seriesIndex:a})}}]),e}(),ti=function(y){vt(e,Ht);var t=ot(e);function e(){return F(this,e),t.apply(this,arguments)}return _(e,[{key:"draw",value:function(i,a){var s=this.w,r=new X(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=s.globals.seriesRangeStart,this.seriesRangeEnd=s.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var o=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),n=0;n0&&(this.visibleI=this.visibleI+1);var w=0,C=0;this.yRatio.length>1&&(this.yaxisIndex=b);var l=this.barHelpers.initialPositions();f=l.y,g=l.zeroW,p=l.x,C=l.barWidth,w=l.barHeight,h=l.xDivision,c=l.yDivision,d=l.zeroH;for(var u=r.group({class:"apexcharts-datalabels","data:realIndex":b}),x=r.group({class:"apexcharts-rangebar-goals-markers"}),v=0;v0});return this.isHorizontal?(r=b.config.plotOptions.bar.rangeBarGroupRows?n+g*u:n+c*this.visibleI+g*u,x>-1&&!b.config.plotOptions.bar.rangeBarOverlap&&(m=b.globals.seriesRange[a][x].overlaps).indexOf(w)>-1&&(r=(c=f.barHeight/m.length)*this.visibleI+g*(100-parseInt(this.barOptions.barHeight,10))/100/2+c*(this.visibleI+m.indexOf(w))+g*u)):(u>-1&&(o=b.config.plotOptions.bar.rangeBarGroupRows?h+p*u:h+d*this.visibleI+p*u),x>-1&&!b.config.plotOptions.bar.rangeBarOverlap&&(m=b.globals.seriesRange[a][x].overlaps).indexOf(w)>-1&&(o=(d=f.barWidth/m.length)*this.visibleI+p*(100-parseInt(this.barOptions.barWidth,10))/100/2+d*(this.visibleI+m.indexOf(w))+p*u)),{barYPosition:r,barXPosition:o,barHeight:c,barWidth:d}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,s=i.x,r=i.xDivision,o=i.barWidth,n=i.barXPosition,h=i.zeroH,c=this.w,d=a.i,g=a.j,p=this.yRatio[this.yaxisIndex],f=a.realIndex,b=this.getRangeValue(f,g),m=Math.min(b.start,b.end),w=Math.max(b.start,b.end);this.series[d][g]===void 0||this.series[d][g]===null?m=h:(m=h-m/p,w=h-w/p);var C=Math.abs(w-m),l=this.barHelpers.getColumnPaths({barXPosition:n,barWidth:o,y1:m,y2:w,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:f,j:g,w:c});if(c.globals.isXNumeric){var u=this.getBarXForNumericXAxis({x:s,j:g,realIndex:f,barWidth:o});s=u.x,n=u.barXPosition}else s+=r;return{pathTo:l.pathTo,pathFrom:l.pathFrom,barHeight:C,x:s,y:w,goalY:this.barHelpers.getGoalValues("y",null,h,d,g),barXPosition:n}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,s=i.y,r=i.y1,o=i.y2,n=i.yDivision,h=i.barHeight,c=i.barYPosition,d=i.zeroW,g=this.w,p=d+r/this.invertedYRatio,f=d+o/this.invertedYRatio,b=Math.abs(f-p),m=this.barHelpers.getBarpaths({barYPosition:c,barHeight:h,x1:p,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:a.realIndex,realIndex:a.realIndex,j:a.j,w:g});return g.globals.isXNumeric||(s+=n),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:b,x:f,goalX:this.barHelpers.getGoalValues("x",d,null,a.realIndex,a.j),y:s}}},{key:"getRangeValue",value:function(i,a){var s=this.w;return{start:s.globals.seriesRangeStart[i][a],end:s.globals.seriesRangeEnd[i][a]}}}]),e}(),ei=function(){function y(t){F(this,y),this.w=t.w,this.lineCtx=t}return _(y,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[t]==="gradient")&&new K(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,o=t.j,n=t.prevY,h=this.w,c=[],d=[];if(o===0){var g=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;h.globals.isXNumeric&&(g=(h.globals.seriesX[i][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),c.push(g),d.push(M.isNumber(e[r][0])?n+h.config.markers.offsetY:null),c.push(a+h.config.markers.offsetX),d.push(M.isNumber(e[r][o+1])?s+h.config.markers.offsetY:null)}else c.push(a+h.config.markers.offsetX),d.push(M.isNumber(e[r][o+1])?s+h.config.markers.offsetY:null);return{x:c,y:d}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r0&&parseInt(o.realIndex,10)===parseInt(a,10)&&(o.type==="line"?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):o.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(e=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a=t.i,s=t.series,r=t.prevY,o=t.lineYPosition,n=this.w,h=n.config.chart.stacked&&!n.globals.comboCharts||n.config.chart.stacked&&n.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[a])===null||e===void 0?void 0:e.type)==="bar");if(((i=s[a])===null||i===void 0?void 0:i[0])!==void 0)r=(o=h&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(h&&a>0&&s[a][0]===void 0){for(var c=a-1;c>=0;c--)if(s[c][0]!==null&&s[c][0]!==void 0){r=o=this.lineCtx.prevSeriesY[c][0];break}}return{prevY:r,lineYPosition:o}}}]),y}(),ii=function(y){for(var t,e,i,a,s=function(c){for(var d=[],g=c[0],p=c[1],f=d[0]=ae(g,p),b=1,m=c.length-1;b9&&(a=3*i/Math.sqrt(a),s[n]=a*t,s[n+1]=a*e);for(var h=0;h<=r;h++)a=(y[Math.min(r,h+1)][0]-y[Math.max(0,h-1)][0])/(6*(1+s[h]*s[h])),o.push([a||0,s[h]*a||0]);return o},ie=function(y){for(var t="",e=0;e4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):a>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},ke=function(y){var t=ii(y),e=y[1],i=y[0],a=[],s=t[1],r=t[0];a.push(i,[i[0]+r[0],i[1]+r[1],e[0]-s[0],e[1]-s[1],e[0],e[1]]);for(var o=2,n=t.length;o0&&(w=(r.globals.seriesX[p][0]-r.globals.minX)/this.xRatio),m.push(w);var C,l=w,u=void 0,x=l,v=this.zeroY,k=this.zeroY;v=this.lineHelpers.determineFirstPrevY({i:g,series:t,prevY:v,lineYPosition:0}).prevY,r.config.stroke.curve==="monotonCubic"&&t[g][0]===null?f.push(null):f.push(v),C=v,n==="rangeArea"&&(u=k=this.lineHelpers.determineFirstPrevY({i:g,series:a,prevY:k,lineYPosition:0}).prevY,b.push(k));var S={type:n,series:t,realIndex:p,i:g,x:w,y:1,pX:l,pY:C,pathsFrom:this._calculatePathsFrom({type:n,series:t,i:g,realIndex:p,prevX:x,prevY:v,prevY2:k}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:m,yArrj:f,y2Arrj:b,seriesRangeEnd:a},L=this._iterateOverDataPoints(E(E({},S),{},{iterations:n==="rangeArea"?t[g].length-1:void 0,isRangeStart:!0}));if(n==="rangeArea"){var P=this._calculatePathsFrom({series:a,i:g,realIndex:p,prevX:x,prevY:k}),I=this._iterateOverDataPoints(E(E({},S),{},{series:a,pY:u,pathsFrom:P,iterations:a[g].length-1,isRangeStart:!1}));L.linePaths[0]=I.linePath+L.linePath,L.pathFromLine=I.pathFromLine+L.pathFromLine}this._handlePaths({type:n,realIndex:p,i:g,paths:L}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(((s=r.config.series[0])===null||s===void 0?void 0:s.zIndex)!==void 0&&d.sort(function(Y,R){return Number(Y.node.getAttribute("zIndex"))-Number(R.node.getAttribute("zIndex"))}),r.config.chart.stacked)for(var z=d.length;z>0;z--)h.add(d[z-1]);else for(var T=0;T1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:a.config.series[i].zIndex!==void 0?a.config.series[i].zIndex:i,seriesName:M.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,r=t.type,o=t.series,n=t.i,h=t.realIndex,c=t.prevX,d=t.prevY,g=t.prevY2,p=this.w,f=new X(this.ctx);if(o[n][0]===null){for(var b=0;b0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:h});a=m.pathFromLine,s=m.pathFromArea}return{prevX:c,prevY:d,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,s=t.paths,r=this.w,o=new X(this.ctx),n=new ft(this.ctx);this.prevSeriesY.push(s.yArrj),r.globals.seriesXvalues[i]=s.xArrj,r.globals.seriesYvalues[i]=s.yArrj;var h=r.config.forecastDataPoints;if(h.count>0&&e!=="rangeArea"){var c=r.globals.seriesXvalues[i][r.globals.seriesXvalues[i].length-h.count-1],d=o.drawRect(c,0,r.globals.gridWidth,r.globals.gridHeight,0);r.globals.dom.elForecastMask.appendChild(d.node);var g=o.drawRect(0,0,c,r.globals.gridHeight,0);r.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||r.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:a,realIndex:i,animationDelay:a,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if(e==="area")for(var f=n.fillPath({seriesNumber:i}),b=0;b0&&e!=="rangeArea"){var k=o.renderPaths(x);k.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&k.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(r.globals.cuid,")")),v.attr("clip-path","url(#nonForecastMask".concat(r.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,a=t.type,s=t.series,r=t.iterations,o=t.realIndex,n=t.i,h=t.x,c=t.y,d=t.pX,g=t.pY,p=t.pathsFrom,f=t.linePaths,b=t.areaPaths,m=t.seriesIndex,w=t.lineYPosition,C=t.xArrj,l=t.yArrj,u=t.y2Arrj,x=t.isRangeStart,v=t.seriesRangeEnd,k=this.w,S=new X(this.ctx),L=this.yRatio,P=p.prevY,I=p.linePath,z=p.areaPath,T=p.pathFromLine,Y=p.pathFromArea,R=M.isNumber(k.globals.minYArr[o])?k.globals.minYArr[o]:k.globals.minY;r||(r=k.globals.dataPoints>1?k.globals.dataPoints-1:k.globals.dataPoints);for(var H=function(wt,kt){return kt-wt/L[i.yaxisIndex]+2*(i.isReversed?wt/L[i.yaxisIndex]:0)},O=c,W=k.config.chart.stacked&&!k.globals.comboCharts||k.config.chart.stacked&&k.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[o])===null||e===void 0?void 0:e.type)==="bar"),N=0;N0&&k.globals.collapsedSeries.length-1){kt--;break}return kt>=0?kt:0}(n-1)][N+1]:w=this.zeroY:w=this.zeroY,$?c=H(R,w):(c=H(s[n][N+1],w),a==="rangeArea"&&(O=H(v[n][N+1],w))),C.push(h),$&&k.config.stroke.curve==="smooth"?l.push(null):l.push(c),u.push(O);var xt=this.lineHelpers.calculatePoints({series:s,x:h,y:c,realIndex:o,i:n,j:N,prevY:P}),lt=this._createPaths({type:a,series:s,i:n,realIndex:o,j:N,x:h,y:c,y2:O,xArrj:C,yArrj:l,y2Arrj:u,pX:d,pY:g,linePath:I,areaPath:z,linePaths:f,areaPaths:b,seriesIndex:m,isRangeStart:x});b=lt.areaPaths,f=lt.linePaths,d=lt.pX,g=lt.pY,z=lt.areaPath,I=lt.linePath,!this.appendPathFrom||k.config.stroke.curve==="monotoneCubic"&&a==="rangeArea"||(T+=S.line(h,this.zeroY),Y+=S.line(h,this.zeroY)),this.handleNullDataPoints(s,xt,n,N,o),this._handleMarkersAndLabels({type:a,pointsPos:xt,i:n,j:N,realIndex:o,isRangeStart:x})}return{yArrj:l,xArrj:C,pathFromArea:Y,areaPaths:b,pathFromLine:T,linePaths:f,linePath:I,areaPath:z}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,s=t.i,r=t.j,o=t.realIndex,n=this.w,h=new Ft(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{n.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,o,r+1);c!==null&&this.elPointsMain.add(c)}var d=h.drawDataLabel({type:e,isRangeStart:a,pos:i,i:o,j:r+1});d!==null&&this.elDataLabelsWrap.add(d)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i,s=t.realIndex,r=t.j,o=t.x,n=t.y,h=t.xArrj,c=t.yArrj,d=t.y2,g=t.y2Arrj,p=t.pX,f=t.pY,b=t.linePath,m=t.areaPath,w=t.linePaths,C=t.areaPaths,l=t.seriesIndex,u=t.isRangeStart,x=this.w,v=new X(this.ctx),k=x.config.stroke.curve,S=this.areaBottomY;if(Array.isArray(x.config.stroke.curve)&&(k=Array.isArray(l)?x.config.stroke.curve[l[a]]:x.config.stroke.curve[a]),e==="rangeArea"&&(x.globals.hasNullValues||x.config.forecastDataPoints.count>0)&&k==="monotoneCubic"&&(k="straight"),k==="monotoneCubic"){var L=e==="rangeArea"?h.length===x.globals.dataPoints:r===i[a].length-2,P=h.map(function(W,N){return[h[N],c[N]]}).filter(function(W){return W[1]!==null});if(L&&P.length>1){var I=ke(P);if(b+=ie(I),i[a][0]===null?m=b:m+=ie(I),e==="rangeArea"&&u){b+=v.line(h[h.length-1],g[g.length-1]);var z=h.slice().reverse(),T=g.slice().reverse(),Y=z.map(function(W,N){return[z[N],T[N]]}),R=ke(Y);m=b+=ie(R)}else m+=v.line(P[P.length-1][0],S)+v.line(P[0][0],S)+v.move(P[0][0],P[0][1])+"z";w.push(b),C.push(m)}}else if(k==="smooth"){var H=.35*(o-p);x.globals.hasNullValues?(i[a][r]!==null&&(i[a][r+1]!==null?(b=v.move(p,f)+v.curve(p+H,f,o-H,n,o+1,n),m=v.move(p+1,f)+v.curve(p+H,f,o-H,n,o+1,n)+v.line(o,S)+v.line(p,S)+"z"):(b=v.move(p,f),m=v.move(p,f)+"z")),w.push(b),C.push(m)):(b+=v.curve(p+H,f,o-H,n,o,n),m+=v.curve(p+H,f,o-H,n,o,n)),p=o,f=n,r===i[a].length-2&&(m=m+v.curve(p,f,o,n,o,S)+v.move(o,n)+"z",e==="rangeArea"&&u?b=b+v.curve(p,f,o,n,o,d)+v.move(o,d)+"z":x.globals.hasNullValues||(w.push(b),C.push(m)))}else{if(i[a][r+1]===null){b+=v.move(o,n);var O=x.globals.isXNumeric?(x.globals.seriesX[s][r]-x.globals.minX)/this.xRatio:o-this.xDivision;m=m+v.line(O,S)+v.move(o,n)+"z"}i[a][r]===null&&(b+=v.move(o,n),m+=v.move(o,S)),k==="stepline"?(b=b+v.line(o,null,"H")+v.line(null,n,"V"),m=m+v.line(o,null,"H")+v.line(null,n,"V")):k==="straight"&&(b+=v.line(o,n),m+=v.line(o,n)),r===i[a].length-2&&(m=m+v.line(o,S)+v.move(o,n)+"z",e==="rangeArea"&&u?b=b+v.line(o,d)+v.move(o,d)+"z":(w.push(b),C.push(m)))}return{linePaths:w,areaPaths:C,pX:p,pY:f,linePath:b,areaPath:m}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var r=this.w;if(t[i][a]===null&&r.config.markers.showNullDataPoints||t[i].length===1){var o=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);o!==null&&this.elPointsMain.add(o)}}}]),y}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function y(o,n,h,c){this.xoffset=o,this.yoffset=n,this.height=c,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(d){var g,p=[],f=this.xoffset,b=this.yoffset,m=s(d)/this.height,w=s(d)/this.width;if(this.width>=this.height)for(g=0;g=this.height){var p=d/this.height,f=this.width-p;g=new y(this.xoffset+p,this.yoffset,f,this.height)}else{var b=d/this.width,m=this.height-b;g=new y(this.xoffset,this.yoffset+b,this.width,m)}return g}}function t(o,n,h,c,d){c=c===void 0?0:c,d=d===void 0?0:d;var g=e(function(p,f){var b,m=[],w=f/s(p);for(b=0;b=l}(n,g=o[0],d)?(n.push(g),e(o.slice(1),n,h,c)):(p=h.cutArea(s(n),c),c.push(h.getCoordinates(n)),e(o,[],p,c)),c;c.push(h.getCoordinates(n))}function i(o,n){var h=Math.min.apply(Math,o),c=Math.max.apply(Math,o),d=s(o);return Math.max(Math.pow(n,2)*c/Math.pow(d,2),Math.pow(d,2)/(Math.pow(n,2)*h))}function a(o){return o&&o.constructor===Array}function s(o){var n,h=0;for(n=0;nr-a&&h.width<=o-s){var c=n.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(h.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,s,r){var o=new X(this.ctx),n=o.getTextRects(t,e).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,h=o.getTextBasedOnMaxWidth({text:t,maxWidth:n,fontSize:e});return t.length!==h.length&&n/e<5?"":h}},{key:"animateTreemap",value:function(t,e,i,a){var s=new At(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){s.animationCompleted(t)})}}]),y}(),si=86400,ri=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return _(y,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new V(this.ctx),r=(e-t)/864e5;this.determineInterval(r),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,r<.00011574074074074075?a.globals.disableZoomIn=!0:r>5e4&&(a.globals.disableZoomOut=!0);var o=s.getTimeUnitsfromTimestamp(t,e,this.utc),n=a.globals.gridWidth/r,h=n/24,c=h/60,d=c/60,g=Math.floor(24*r),p=Math.floor(1440*r),f=Math.floor(r*si),b=Math.floor(r),m=Math.floor(r/30),w=Math.floor(r/365),C={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},l={firstVal:C,currentMillisecond:C.minMillisecond,currentSecond:C.minSecond,currentMinute:C.minMinute,currentHour:C.minHour,currentMonthDate:C.minDate,currentDate:C.minDate,currentMonth:C.minMonth,currentYear:C.minYear,daysWidthOnXAxis:n,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:f,numberOfMinutes:p,numberOfHours:g,numberOfDays:b,numberOfMonths:m,numberOfYears:w};switch(this.tickInterval){case"years":this.generateYearScale(l);break;case"months":case"half_year":this.generateMonthScale(l);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(l);break;case"hours":this.generateHourScale(l);break;case"minutes_fives":case"minutes":this.generateMinuteScale(l);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(l)}var u=this.timeScaleArray.map(function(x){var v={position:x.position,unit:x.unit,year:x.year,day:x.day?x.day:1,hour:x.hour?x.hour:0,month:x.month+1};return x.unit==="month"?E(E({},v),{},{day:1,value:x.value+1}):x.unit==="day"||x.unit==="hour"?E(E({},v),{},{value:x.value}):x.unit==="minute"?E(E({},v),{},{value:x.value,minute:x.value}):x.unit==="second"?E(E({},v),{},{value:x.value,minute:x.minute,second:x.second}):x});return u.filter(function(x){var v=1,k=Math.ceil(a.globals.gridWidth/120),S=x.value;a.config.xaxis.tickAmount!==void 0&&(k=a.config.xaxis.tickAmount),u.length>k&&(v=Math.floor(u.length/k));var L=!1,P=!1;switch(i.tickInterval){case"years":x.unit==="year"&&(L=!0);break;case"half_year":v=7,x.unit==="year"&&(L=!0);break;case"months":v=1,x.unit==="year"&&(L=!0);break;case"months_fortnight":v=15,x.unit!=="year"&&x.unit!=="month"||(L=!0),S===30&&(P=!0);break;case"months_days":v=10,x.unit==="month"&&(L=!0),S===30&&(P=!0);break;case"week_days":v=8,x.unit==="month"&&(L=!0);break;case"days":v=1,x.unit==="month"&&(L=!0);break;case"hours":x.unit==="day"&&(L=!0);break;case"minutes_fives":case"seconds_fives":S%5!=0&&(P=!0);break;case"seconds_tens":S%10!=0&&(P=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!P)return!0}else if((S%v==0||L)&&!P)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new Ut(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,n=0,h=new V(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var d=h.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);n=(h.determineDaysOfYear(e.minYear)-d+1)*s,o=e.minYear+1,this.timeScaleArray.push({position:n,value:o,unit:c,year:o,month:M.monthMod(i+1)})}else e.minDate===1&&e.minMonth===0&&this.timeScaleArray.push({position:n,value:o,unit:c,year:a,month:M.monthMod(i+1)});for(var g=o,p=n,f=0;f1){h=(c.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,n=M.monthMod(a+1);var p=s+g,f=M.monthMod(n),b=n;n===0&&(d="year",b=p,f=1,p+=g+=1),this.timeScaleArray.push({position:h,value:b,unit:d,year:p,month:f})}else this.timeScaleArray.push({position:h,value:n,unit:d,year:s,month:M.monthMod(a)});for(var m=n+1,w=h,C=0,l=1;Co.determineDaysOfMonths(u+1,x)&&(c=1,n="month",p=u+=1),u},g=(24-e.minHour)*s,p=h,f=d(c,i,a);e.minHour===0&&e.minDate===1?(g=0,p=M.monthMod(e.minMonth),n="month",c=e.minDate):e.minDate!==1&&e.minHour===0&&e.minMinute===0&&(g=0,h=e.minDate,p=h,f=d(c=h,i,a)),this.timeScaleArray.push({position:g,value:p,unit:n,year:this._getYear(a,f,0),month:M.monthMod(f),day:c});for(var b=g,m=0;mn.determineDaysOfMonths(k+1,s)&&(m=1,k+=1),{month:k,date:m}},d=function(v,k){return v>n.determineDaysOfMonths(k+1,s)?k+=1:k},g=60-(e.minMinute+e.minSecond/60),p=g*r,f=e.minHour+1,b=f;g===60&&(p=0,b=f=e.minHour);var m=i;b>=24&&(b=0,m+=1,h="day");var w=c(m,a).month;w=d(m,w),this.timeScaleArray.push({position:p,value:f,unit:h,day:m,hour:b,year:s,month:M.monthMod(w)}),b++;for(var C=p,l=0;l=24&&(b=0,h="day",w=c(m+=1,w).month,w=d(m,w));var u=this._getYear(s,w,0);C=60*r+C;var x=b===0?m:b;this.timeScaleArray.push({position:C,value:x,unit:h,hour:b,day:m,year:u,month:M.monthMod(w)}),b++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,h=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,d=t.numberOfMinutes,g=a+1,p=r,f=o,b=n,m=s,w=(60-i-e/1e3)*c,C=0;C=60&&(g=0,(m+=1)===24&&(m=0)),this.timeScaleArray.push({position:w,value:g,unit:"minute",hour:m,minute:g,day:p,year:this._getYear(b,f,0),month:M.monthMod(f)}),w+=h,g++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,h=t.secondsWidthOnXAxis,c=t.numberOfSeconds,d=i+1,g=a,p=r,f=o,b=n,m=s,w=(1e3-e)/1e3*h,C=0;C=60&&(d=0,++g>=60&&(g=0,++m===24&&(m=0))),this.timeScaleArray.push({position:w,value:d,unit:"second",hour:m,minute:g,second:d,day:p,year:this._getYear(b,f,0),month:M.monthMod(f)}),w+=h,d++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return t.month===0&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),t.unit==="day"?i+=t.unit==="day"?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),t.unit==="hour"?i+=t.unit==="hour"?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),t.unit==="minute"?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),t.unit==="second"?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(a){var s=a.value.toString(),r=new V(e.ctx),o=e.createRawDateString(a,s),n=r.getDate(r.parseDate(o));if(e.utc||(n=r.getDate(r.parseDateWithTimezone(o))),i.config.xaxis.labels.format===void 0){var h="dd MMM",c=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(h=c.year),a.unit==="month"&&(h=c.month),a.unit==="day"&&(h=c.day),a.unit==="hour"&&(h=c.hour),a.unit==="minute"&&(h=c.minute),a.unit==="second"&&(h=c.second),s=r.formatDate(n,h)}else s=r.formatDate(n,i.config.xaxis.labels.format);return{dateString:o,position:a.position,value:s,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new X(this.ctx),s=!1;t.length>0&&t[0].value&&t.every(function(n){return n.value.length===t[0].value.length})&&(s=!0,e=a.getTextRects(t[0].value).width);var r=0,o=t.map(function(n,h){if(h>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var c=s?e:a.getTextRects(t[r].value).width,d=t[r].position;return n.position>d+c+10?(r=h,n):null}return n});return o=o.filter(function(n){return n!==null})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),y}(),oi=function(){function y(t,e){F(this,y),this.ctx=e,this.w=e.w,this.el=t}return _(y,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=(e.chart.type==="bar"||e.chart.type==="rangeBar"||e.chart.type==="boxPlot")&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),X.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.theme.mode!=="dark"||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),X.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},o={series:[],i:[]},n={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},p={series:[],i:[]},f={series:[],seriesRangeEnd:[],i:[]};s.series.map(function(k,S){var L=0;t[S].type!==void 0?(t[S].type==="column"||t[S].type==="bar"?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(k),c.i.push(S),L++,i.globals.columnSeries=c.series):t[S].type==="area"?(o.series.push(k),o.i.push(S),L++):t[S].type==="line"?(r.series.push(k),r.i.push(S),L++):t[S].type==="scatter"?(n.series.push(k),n.i.push(S)):t[S].type==="bubble"?(h.series.push(k),h.i.push(S),L++):t[S].type==="candlestick"?(d.series.push(k),d.i.push(S),L++):t[S].type==="boxPlot"?(g.series.push(k),g.i.push(S),L++):t[S].type==="rangeBar"?(p.series.push(k),p.i.push(S),L++):t[S].type==="rangeArea"?(f.series.push(s.seriesRangeStart[S]),f.seriesRangeEnd.push(s.seriesRangeEnd[S]),f.i.push(S),L++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),L>1&&(s.comboCharts=!0)):(r.series.push(k),r.i.push(S))});var b=new se(this.ctx,e),m=new ee(this.ctx,e);this.ctx.pie=new we(this.ctx);var w=new Ke(this.ctx);this.ctx.rangeBar=new ti(this.ctx,e);var C=new Qe(this.ctx),l=[];if(s.comboCharts){if(o.series.length>0&&l.push(b.draw(o.series,"area",o.i)),c.series.length>0)if(i.config.chart.stacked){var u=new me(this.ctx,e);l.push(u.draw(c.series,c.i))}else this.ctx.bar=new Ht(this.ctx,e),l.push(this.ctx.bar.draw(c.series,c.i));if(f.series.length>0&&l.push(b.draw(f.series,"rangeArea",f.i,f.seriesRangeEnd)),r.series.length>0&&l.push(b.draw(r.series,"line",r.i)),d.series.length>0&&l.push(m.draw(d.series,"candlestick",d.i)),g.series.length>0&&l.push(m.draw(g.series,"boxPlot",g.i)),p.series.length>0&&l.push(this.ctx.rangeBar.draw(p.series,p.i)),n.series.length>0){var x=new se(this.ctx,e,!0);l.push(x.draw(n.series,"scatter",n.i))}if(h.series.length>0){var v=new se(this.ctx,e,!0);l.push(v.draw(h.series,"bubble",h.i))}}else switch(a.chart.type){case"line":l=b.draw(s.series,"line");break;case"area":l=b.draw(s.series,"area");break;case"bar":a.chart.stacked?l=new me(this.ctx,e).draw(s.series):(this.ctx.bar=new Ht(this.ctx,e),l=this.ctx.bar.draw(s.series));break;case"candlestick":l=new ee(this.ctx,e).draw(s.series,"candlestick");break;case"boxPlot":l=new ee(this.ctx,e).draw(s.series,a.chart.type);break;case"rangeBar":l=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":l=b.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":l=new Je(this.ctx,e).draw(s.series);break;case"treemap":l=new ai(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":l=this.ctx.pie.draw(s.series);break;case"radialBar":l=w.draw(s.series);break;case"radar":l=C.draw(s.series);break;default:l=b.draw(s.series)}return l}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=M.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?M.isNumber(i[0])&&(i[0].width===0&&(i=M.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):a!=="px"&&a!==""||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(s==="%"){var r=M.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),X.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),s!=="%"){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};X.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,t.config.legend.position!=="top"&&t.config.legend.position!=="bottom"||!t.config.legend.show||t.config.legend.floating||(i=new ue(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled&&t.config.plotOptions.radialBar.startAngle!==0){var o=M.getBoundingClientRect(s);r=o.bottom;var n=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,n)}var h=r+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",h),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=h+"px",X.setAttrs(e.dom.Paper.node,{height:h}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=h+"px")}},{key:"coreCalculations",value:function(){new Qt(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(s){return[]})},i=new he,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new te(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new te(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new ri(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new K(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&typeof e.config.chart.events.selection!="function"){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];i.forEach(function(a){var s=ApexCharts.getChartByID(a);s.w.globals.brushSource=t.ctx,typeof s.w.config.chart.events.zoomed!="function"&&(s.w.config.chart.events.zoomed=function(){t.updateSourceChart(s)}),typeof s.w.config.chart.events.scrolled!="function"&&(s.w.config.chart.events.scrolled=function(){t.updateSourceChart(s)})}),e.config.chart.events.selection=function(a,s){i.forEach(function(r){var o=ApexCharts.getChartByID(r),n=M.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&o.w.globals.series.length===1){var h=new Rt(o);n=h.autoScaleY(o,n,s)}var c=o.w.config.yaxis.reduce(function(d,g,p){return[].concat(Q(d),[E(E({},o.w.config.yaxis[p]),{},{min:n[0].min,max:n[0].max})])},[]);o.ctx.updateHelpers._updateOptions({xaxis:{min:s.xaxis.min,max:s.xaxis.max},yaxis:c},!1,!1,!1,!1)})}}}}]),y}(),ni=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],r=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(o){var n=[e.ctx];s&&(n=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(n=[e.ctx],e.ctx.w.globals.isExecCalled=!1),n.forEach(function(h,c){var d=h.w;if(d.globals.shouldAnimate=a,i||(d.globals.resized=!0,d.globals.dataChanged=!0,a&&h.series.getPreviousPaths()),t&&Z(t)==="object"&&(h.config=new Nt(t),t=K.extendArrayProps(h.config,t,d),h.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,d.config=M.extend(d.config,t),r&&(d.globals.lastXAxis=t.xaxis?M.clone(t.xaxis):[],d.globals.lastYAxis=t.yaxis?M.clone(t.yaxis):[],d.globals.initialConfig=M.extend({},d.config),d.globals.initialSeries=M.clone(d.config.series),t.series))){for(var g=0;g2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(s){var r,o=i.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?((r=t.map(function(n,h){return i._extendSeries(n,h)})).length===0&&(r=[{data:[]}]),o.config.series=r):o.config.series=t.slice(),a&&(o.globals.initialConfig.series=M.clone(o.config.series),o.globals.initialSeries=M.clone(o.config.series)),i.ctx.update().then(function(){s(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return E(E({},i.config.series[e]),{},{name:t.name?t.name:a==null?void 0:a.name,color:t.color?t.color:a==null?void 0:a.color,type:t.type?t.type:a==null?void 0:a.type,group:t.group?t.group:a==null?void 0:a.group,data:t.data?t.data:a==null?void 0:a.data,zIndex:t.zIndex!==void 0?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:e===void 0&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(t)),a?(new X(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(a){t.xaxis[a]!==void 0&&(e.config.xaxis[a]=t.xaxis[a],e.globals.lastXAxis[a]=t.xaxis[a])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new yt(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&t.chart.stackType==="100%"&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var r=function(o){s[o]!==void 0&&(i.config.yaxis[o].min=s[o].min,i.config.yaxis[o].max=s[o].max)};i.config.yaxis.map(function(o,n){i.globals.zoomed||s[n]!==void 0?r(n):e.ctx.opts.yaxis[n]!==void 0&&(o.min=e.ctx.opts.yaxis[n].min,o.max=e.ctx.opts.yaxis[n].max)})}}]),y}();zt=typeof window<"u"?window:void 0,$t=function(y,t){var e=(this!==void 0?this:y).SVG=function(l){if(e.supported)return l=new e.Doc(l),e.parser.draw||e.prepare(),l};if(e.ns="http://www.w3.org/2000/svg",e.xmlns="http://www.w3.org/2000/xmlns/",e.xlink="http://www.w3.org/1999/xlink",e.svgjs="http://svgjs.dev",e.supported=!0,!e.supported)return!1;e.did=1e3,e.eid=function(l){return"Svgjs"+c(l)+e.did++},e.create=function(l){var u=t.createElementNS(this.ns,l);return u.setAttribute("id",this.eid(l)),u},e.extend=function(){var l,u;u=(l=[].slice.call(arguments)).pop();for(var x=l.length-1;x>=0;x--)if(l[x])for(var v in u)l[x].prototype[v]=u[v];e.Set&&e.Set.inherit&&e.Set.inherit()},e.invent=function(l){var u=typeof l.create=="function"?l.create:function(){this.constructor.call(this,e.create(l.create))};return l.inherit&&(u.prototype=new l.inherit),l.extend&&e.extend(u,l.extend),l.construct&&e.extend(l.parent||e.Container,l.construct),u},e.adopt=function(l){return l?l.instance?l.instance:((u=l.nodeName=="svg"?l.parentNode instanceof y.SVGElement?new e.Nested:new e.Doc:l.nodeName=="linearGradient"?new e.Gradient("linear"):l.nodeName=="radialGradient"?new e.Gradient("radial"):e[c(l.nodeName)]?new e[c(l.nodeName)]:new e.Element(l)).type=l.nodeName,u.node=l,l.instance=u,u instanceof e.Doc&&u.namespace().defs(),u.setData(JSON.parse(l.getAttribute("svgjs:data"))||{}),u):null;var u},e.prepare=function(){var l=t.getElementsByTagName("body")[0],u=(l?new e.Doc(l):e.adopt(t.documentElement).nested()).size(2,0);e.parser={body:l||t.documentElement,draw:u.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:u.polyline().node,path:u.path().node,native:e.create("svg")}},e.parser={native:e.create("svg")},t.addEventListener("DOMContentLoaded",function(){e.parser.draw||e.prepare()},!1),e.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},e.utils={map:function(l,u){for(var x=l.length,v=[],k=0;k1?1:l,new e.Color({r:~~(this.r+(this.destination.r-this.r)*l),g:~~(this.g+(this.destination.g-this.g)*l),b:~~(this.b+(this.destination.b-this.b)*l)})):this}}),e.Color.test=function(l){return l+="",e.regex.isHex.test(l)||e.regex.isRgb.test(l)},e.Color.isRgb=function(l){return l&&typeof l.r=="number"&&typeof l.g=="number"&&typeof l.b=="number"},e.Color.isColor=function(l){return e.Color.isRgb(l)||e.Color.test(l)},e.Array=function(l,u){(l=(l||[]).valueOf()).length==0&&u&&(l=u.valueOf()),this.value=this.parse(l)},e.extend(e.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(l){return l=l.valueOf(),Array.isArray(l)?l:this.split(l)}}),e.PointArray=function(l,u){e.Array.call(this,l,u||[[0,0]])},e.PointArray.prototype=new e.Array,e.PointArray.prototype.constructor=e.PointArray;for(var i={M:function(l,u,x){return u.x=x.x=l[0],u.y=x.y=l[1],["M",u.x,u.y]},L:function(l,u){return u.x=l[0],u.y=l[1],["L",l[0],l[1]]},H:function(l,u){return u.x=l[0],["H",l[0]]},V:function(l,u){return u.y=l[0],["V",l[0]]},C:function(l,u){return u.x=l[4],u.y=l[5],["C",l[0],l[1],l[2],l[3],l[4],l[5]]},Q:function(l,u){return u.x=l[2],u.y=l[3],["Q",l[0],l[1],l[2],l[3]]},S:function(l,u){return u.x=l[2],u.y=l[3],["S",l[0],l[1],l[2],l[3]]},Z:function(l,u,x){return u.x=x.x,u.y=x.y,["Z"]}},a="mlhvqtcsaz".split(""),s=0,r=a.length;sL);return v},bbox:function(){return e.parser.draw||e.prepare(),e.parser.path.setAttribute("d",this.toString()),e.parser.path.getBBox()}}),e.Number=e.invent({create:function(l,u){this.value=0,this.unit=u||"",typeof l=="number"?this.value=isNaN(l)?0:isFinite(l)?l:l<0?-34e37:34e37:typeof l=="string"?(u=l.match(e.regex.numberAndUnit))&&(this.value=parseFloat(u[1]),u[5]=="%"?this.value/=100:u[5]=="s"&&(this.value*=1e3),this.unit=u[5]):l instanceof e.Number&&(this.value=l.valueOf(),this.unit=l.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(l){return l=new e.Number(l),new e.Number(this+l,this.unit||l.unit)},minus:function(l){return l=new e.Number(l),new e.Number(this-l,this.unit||l.unit)},times:function(l){return l=new e.Number(l),new e.Number(this*l,this.unit||l.unit)},divide:function(l){return l=new e.Number(l),new e.Number(this/l,this.unit||l.unit)},to:function(l){var u=new e.Number(this);return typeof l=="string"&&(u.unit=l),u},morph:function(l){return this.destination=new e.Number(l),l.relative&&(this.destination.value+=this.value),this},at:function(l){return this.destination?new e.Number(this.destination).minus(this).times(l).plus(this):this}}}),e.Element=e.invent({create:function(l){this._stroke=e.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=l)&&(this.type=l.nodeName,this.node.instance=this,this._stroke=l.getAttribute("stroke")||this._stroke)},extend:{x:function(l){return this.attr("x",l)},y:function(l){return this.attr("y",l)},cx:function(l){return l==null?this.x()+this.width()/2:this.x(l-this.width()/2)},cy:function(l){return l==null?this.y()+this.height()/2:this.y(l-this.height()/2)},move:function(l,u){return this.x(l).y(u)},center:function(l,u){return this.cx(l).cy(u)},width:function(l){return this.attr("width",l)},height:function(l){return this.attr("height",l)},size:function(l,u){var x=g(this,l,u);return this.width(new e.Number(x.width)).height(new e.Number(x.height))},clone:function(l){this.writeDataToDom();var u=b(this.node.cloneNode(!0));return l?l.add(u):this.after(u),u},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(l){return this.after(l).remove(),l},addTo:function(l){return l.put(this)},putIn:function(l){return l.add(this)},id:function(l){return this.attr("id",l)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var l=this.attr("class");return l==null?[]:l.trim().split(e.regex.delimiter)},hasClass:function(l){return this.classes().indexOf(l)!=-1},addClass:function(l){if(!this.hasClass(l)){var u=this.classes();u.push(l),this.attr("class",u.join(" "))}return this},removeClass:function(l){return this.hasClass(l)&&this.attr("class",this.classes().filter(function(u){return u!=l}).join(" ")),this},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l)},reference:function(l){return e.get(this.attr(l))},parent:function(l){var u=this;if(!u.node.parentNode)return null;if(u=e.adopt(u.node.parentNode),!l)return u;for(;u&&u.node instanceof y.SVGElement;){if(typeof l=="string"?u.matches(l):u instanceof l)return u;if(!u.node.parentNode||u.node.parentNode.nodeName=="#document")return null;u=e.adopt(u.node.parentNode)}},doc:function(){return this instanceof e.Doc?this:this.parent(e.Doc)},parents:function(l){var u=[],x=this;do{if(!(x=x.parent(l))||!x.node)break;u.push(x)}while(x.parent);return u},matches:function(l){return function(u,x){return(u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.oMatchesSelector).call(u,x)}(this.node,l)},native:function(){return this.node},svg:function(l){var u=t.createElement("svg");if(!(l&&this instanceof e.Parent))return u.appendChild(l=t.createElement("svg")),this.writeDataToDom(),l.appendChild(this.node.cloneNode(!0)),u.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");u.innerHTML=""+l.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var x=0,v=u.firstChild.childNodes.length;x":function(l){return-Math.cos(l*Math.PI)/2+.5},">":function(l){return Math.sin(l*Math.PI/2)},"<":function(l){return 1-Math.cos(l*Math.PI/2)}},e.morph=function(l){return function(u,x){return new e.MorphObj(u,x).at(l)}},e.Situation=e.invent({create:function(l){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new e.Number(l.duration).valueOf(),this.delay=new e.Number(l.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=l.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),e.FX=e.invent({create:function(l){this._target=l,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(l,u,x){Z(l)==="object"&&(u=l.ease,x=l.delay,l=l.duration);var v=new e.Situation({duration:l||1e3,delay:x||0,ease:e.easing[u||"-"]||u});return this.queue(v),this},target:function(l){return l&&l instanceof e.Element?(this._target=l,this):this._target},timeToAbsPos:function(l){return(l-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(l){return this.situation.duration/this._speed*l+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=y.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){y.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(l){return(typeof l=="function"||l instanceof e.Situation)&&this.situations.push(l),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof e.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var l,u=this.situation;if(u.init)return this;for(var x in u.animations){l=this.target()[x](),Array.isArray(l)||(l=[l]),Array.isArray(u.animations[x])||(u.animations[x]=[u.animations[x]]);for(var v=l.length;v--;)u.animations[x][v]instanceof e.Number&&(l[v]=new e.Number(l[v])),u.animations[x][v]=l[v].morph(u.animations[x][v])}for(var x in u.attrs)u.attrs[x]=new e.MorphObj(this.target().attr(x),u.attrs[x]);for(var x in u.styles)u.styles[x]=new e.MorphObj(this.target().style(x),u.styles[x]);return u.initialTransformation=this.target().matrixify(),u.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(l,u){var x=this.active;return this.active=!1,u&&this.clearQueue(),l&&this.situation&&(!x&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(l){var u=this.last();return this.target().on("finished.fx",function x(v){v.detail.situation==u&&(l.call(this,u),this.off("finished.fx",x))}),this._callStart()},during:function(l){var u=this.last(),x=function(v){v.detail.situation==u&&l.call(this,v.detail.pos,e.morph(v.detail.pos),v.detail.eased,u)};return this.target().off("during.fx",x).on("during.fx",x),this.after(function(){this.off("during.fx",x)}),this._callStart()},afterAll:function(l){var u=function x(v){l.call(this),this.off("allfinished.fx",x)};return this.target().off("allfinished.fx",u).on("allfinished.fx",u),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(l,u,x){return this.last()[x||"animations"][l]=u,this._callStart()},step:function(l){var u,x,v;l||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(u=Math.max(this.absPos,0),x=Math.floor(u),this.situation.loops===!0||xthis.lastPos&&S<=k&&(this.situation.once[S].call(this.target(),this.pos,k),delete this.situation.once[S]);return this.active&&this.target().fire("during",{pos:this.pos,eased:k,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=k,this):this},eachAt:function(){var l,u=this,x=this.target(),v=this.situation;for(var k in v.animations)l=[].concat(v.animations[k]).map(function(P){return typeof P!="string"&&P.at?P.at(v.ease(u.pos),u.pos):P}),x[k].apply(x,l);for(var k in v.attrs)l=[k].concat(v.attrs[k]).map(function(I){return typeof I!="string"&&I.at?I.at(v.ease(u.pos),u.pos):I}),x.attr.apply(x,l);for(var k in v.styles)l=[k].concat(v.styles[k]).map(function(I){return typeof I!="string"&&I.at?I.at(v.ease(u.pos),u.pos):I}),x.style.apply(x,l);if(v.transforms.length){l=v.initialTransformation,k=0;for(var S=v.transforms.length;k=0;--x)this[w[x]]=l[w[x]]!=null?l[w[x]]:u[w[x]]},extend:{extract:function(){var l=p(this,0,1);p(this,1,0);var u=180/Math.PI*Math.atan2(l.y,l.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(u*Math.PI/180)+this.f*Math.sin(u*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(u*Math.PI/180)+this.e*Math.sin(-u*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:u,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new e.Matrix(this)}},clone:function(){return new e.Matrix(this)},morph:function(l){return this.destination=new e.Matrix(l),this},multiply:function(l){return new e.Matrix(this.native().multiply(function(u){return u instanceof e.Matrix||(u=new e.Matrix(u)),u}(l).native()))},inverse:function(){return new e.Matrix(this.native().inverse())},translate:function(l,u){return new e.Matrix(this.native().translate(l||0,u||0))},native:function(){for(var l=e.parser.native.createSVGMatrix(),u=w.length-1;u>=0;u--)l[w[u]]=this[w[u]];return l},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:e.Element,construct:{ctm:function(){return new e.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof e.Nested){var l=this.rect(1,1),u=l.node.getScreenCTM();return l.remove(),new e.Matrix(u)}return new e.Matrix(this.node.getScreenCTM())}}}),e.Point=e.invent({create:function(l,u){var x;x=Array.isArray(l)?{x:l[0],y:l[1]}:Z(l)==="object"?{x:l.x,y:l.y}:l!=null?{x:l,y:u??l}:{x:0,y:0},this.x=x.x,this.y=x.y},extend:{clone:function(){return new e.Point(this)},morph:function(l,u){return this.destination=new e.Point(l,u),this}}}),e.extend(e.Element,{point:function(l,u){return new e.Point(l,u).transform(this.screenCTM().inverse())}}),e.extend(e.Element,{attr:function(l,u,x){if(l==null){for(l={},x=(u=this.node.attributes).length-1;x>=0;x--)l[u[x].nodeName]=e.regex.isNumber.test(u[x].nodeValue)?parseFloat(u[x].nodeValue):u[x].nodeValue;return l}if(Z(l)==="object")for(var v in l)this.attr(v,l[v]);else if(u===null)this.node.removeAttribute(l);else{if(u==null)return(u=this.node.getAttribute(l))==null?e.defaults.attrs[l]:e.regex.isNumber.test(u)?parseFloat(u):u;l=="stroke-width"?this.attr("stroke",parseFloat(u)>0?this._stroke:null):l=="stroke"&&(this._stroke=u),l!="fill"&&l!="stroke"||(e.regex.isImage.test(u)&&(u=this.doc().defs().image(u,0,0)),u instanceof e.Image&&(u=this.doc().defs().pattern(0,0,function(){this.add(u)}))),typeof u=="number"?u=new e.Number(u):e.Color.isColor(u)?u=new e.Color(u):Array.isArray(u)&&(u=new e.Array(u)),l=="leading"?this.leading&&this.leading(u):typeof x=="string"?this.node.setAttributeNS(x,l,u.toString()):this.node.setAttribute(l,u.toString()),!this.rebuild||l!="font-size"&&l!="x"||this.rebuild(l,u)}return this}}),e.extend(e.Element,{transform:function(l,u){var x;return Z(l)!=="object"?(x=new e.Matrix(this).extract(),typeof l=="string"?x[l]:x):(x=new e.Matrix(this),u=!!u||!!l.relative,l.a!=null&&(x=u?x.multiply(new e.Matrix(l)):new e.Matrix(l)),this.attr("transform",x))}}),e.extend(e.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(e.regex.transforms).slice(0,-1).map(function(l){var u=l.trim().split("(");return[u[0],u[1].split(e.regex.delimiter).map(function(x){return parseFloat(x)})]}).reduce(function(l,u){return u[0]=="matrix"?l.multiply(f(u[1])):l[u[0]].apply(l,u[1])},new e.Matrix)},toParent:function(l){if(this==l)return this;var u=this.screenCTM(),x=l.screenCTM().inverse();return this.addTo(l).untransform().transform(x.multiply(u)),this},toDoc:function(){return this.toParent(this.doc())}}),e.Transformation=e.invent({create:function(l,u){if(arguments.length>1&&typeof u!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(l))for(var x=0,v=this.arguments.length;x=0},index:function(l){return[].slice.call(this.node.childNodes).indexOf(l.node)},get:function(l){return e.adopt(this.node.childNodes[l])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(l,u){for(var x=this.children(),v=0,k=x.length;v=0;u--)l.childNodes[u]instanceof y.SVGElement&&b(l.childNodes[u]);return e.adopt(l).id(e.eid(l.nodeName))}function m(l){return Math.abs(l)>1e-37?l:0}["fill","stroke"].forEach(function(l){var u={};u[l]=function(x){if(x===void 0)return this;if(typeof x=="string"||e.Color.isRgb(x)||x&&typeof x.fill=="function")this.attr(l,x);else for(var v=o[l].length-1;v>=0;v--)x[o[l][v]]!=null&&this.attr(o.prefix(l,o[l][v]),x[o[l][v]]);return this},e.extend(e.Element,e.FX,u)}),e.extend(e.Element,e.FX,{translate:function(l,u){return this.transform({x:l,y:u})},matrix:function(l){return this.attr("transform",new e.Matrix(arguments.length==6?[].slice.call(arguments):l))},opacity:function(l){return this.attr("opacity",l)},dx:function(l){return this.x(new e.Number(l).plus(this instanceof e.FX?0:this.x()),!0)},dy:function(l){return this.y(new e.Number(l).plus(this instanceof e.FX?0:this.y()),!0)}}),e.extend(e.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(l){return this.node.getPointAtLength(l)}}),e.Set=e.invent({create:function(l){Array.isArray(l)?this.members=l:this.clear()},extend:{add:function(){for(var l=[].slice.call(arguments),u=0,x=l.length;u-1&&this.members.splice(u,1),this},each:function(l){for(var u=0,x=this.members.length;u=0},index:function(l){return this.members.indexOf(l)},get:function(l){return this.members[l]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(l){return new e.Set(l)}}}),e.FX.Set=e.invent({create:function(l){this.set=l}}),e.Set.inherit=function(){var l=[];for(var u in e.Shape.prototype)typeof e.Shape.prototype[u]=="function"&&typeof e.Set.prototype[u]!="function"&&l.push(u);for(var u in l.forEach(function(v){e.Set.prototype[v]=function(){for(var k=0,S=this.members.length;k=0;l--)delete this.memory()[arguments[l]];return this},memory:function(){return this._memory||(this._memory={})}}),e.get=function(l){var u=t.getElementById(function(x){var v=(x||"").toString().match(e.regex.reference);if(v)return v[1]}(l)||l);return e.adopt(u)},e.select=function(l,u){return new e.Set(e.utils.map((u||t).querySelectorAll(l),function(x){return e.adopt(x)}))},e.extend(e.Parent,{select:function(l){return e.select(l,this.node)}});var w="abcdef".split("");if(typeof y.CustomEvent!="function"){var C=function(l,u){u=u||{bubbles:!1,cancelable:!1,detail:void 0};var x=t.createEvent("CustomEvent");return x.initCustomEvent(l,u.bubbles,u.cancelable,u.detail),x};C.prototype=y.Event.prototype,e.CustomEvent=C}else e.CustomEvent=y.CustomEvent;return e},Z(U)==="object"?B.exports=zt.document?$t(zt,zt.document):function(y){return $t(y,y.document)}:zt.SVG=$t(zt,zt.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(r,o){return this.add(r,o),!r.attr("in")&&this.autoSetIn&&r.attr("in",this.source),r.attr("result")||r.attr("result",r),r},blend:function(r,o,n){return this.put(new SVG.BlendEffect(r,o,n))},colorMatrix:function(r,o){return this.put(new SVG.ColorMatrixEffect(r,o))},convolveMatrix:function(r){return this.put(new SVG.ConvolveMatrixEffect(r))},componentTransfer:function(r){return this.put(new SVG.ComponentTransferEffect(r))},composite:function(r,o,n){return this.put(new SVG.CompositeEffect(r,o,n))},flood:function(r,o){return this.put(new SVG.FloodEffect(r,o))},offset:function(r,o){return this.put(new SVG.OffsetEffect(r,o))},image:function(r){return this.put(new SVG.ImageEffect(r))},merge:function(){var r=[void 0];for(var o in arguments)r.push(arguments[o]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,r)))},gaussianBlur:function(r,o){return this.put(new SVG.GaussianBlurEffect(r,o))},morphology:function(r,o){return this.put(new SVG.MorphologyEffect(r,o))},diffuseLighting:function(r,o,n){return this.put(new SVG.DiffuseLightingEffect(r,o,n))},displacementMap:function(r,o,n,h,c){return this.put(new SVG.DisplacementMapEffect(r,o,n,h,c))},specularLighting:function(r,o,n,h){return this.put(new SVG.SpecularLightingEffect(r,o,n,h))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(r,o,n,h,c){return this.put(new SVG.TurbulenceEffect(r,o,n,h,c))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(r){var o=this.put(new SVG.Filter);return typeof r=="function"&&r.call(o,o),o}}),SVG.extend(SVG.Container,{filter:function(r){return this.defs().filter(r)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(r){return this.filterer=r instanceof SVG.Element?r:this.doc().filter(r),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(r){return this.filterer&&r===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}});var y={blend:function(r,o){return this.parent()&&this.parent().blend(this,r,o)},colorMatrix:function(r,o){return this.parent()&&this.parent().colorMatrix(r,o).in(this)},convolveMatrix:function(r){return this.parent()&&this.parent().convolveMatrix(r).in(this)},componentTransfer:function(r){return this.parent()&&this.parent().componentTransfer(r).in(this)},composite:function(r,o){return this.parent()&&this.parent().composite(this,r,o)},flood:function(r,o){return this.parent()&&this.parent().flood(r,o)},offset:function(r,o){return this.parent()&&this.parent().offset(r,o).in(this)},image:function(r){return this.parent()&&this.parent().image(r)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(r,o){return this.parent()&&this.parent().gaussianBlur(r,o).in(this)},morphology:function(r,o){return this.parent()&&this.parent().morphology(r,o).in(this)},diffuseLighting:function(r,o,n){return this.parent()&&this.parent().diffuseLighting(r,o,n).in(this)},displacementMap:function(r,o,n,h){return this.parent()&&this.parent().displacementMap(this,r,o,n,h)},specularLighting:function(r,o,n,h){return this.parent()&&this.parent().specularLighting(r,o,n,h).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(r,o,n,h,c){return this.parent()&&this.parent().turbulence(r,o,n,h,c).in(this)}};SVG.extend(SVG.Effect,y),SVG.extend(SVG.ParentEffect,y),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){this.attr("in",r)}}});var t={blend:function(r,o,n){this.attr({in:r,in2:o,mode:n||"normal"})},colorMatrix:function(r,o){r=="matrix"&&(o=a(o)),this.attr({type:r,values:o===void 0?null:o})},convolveMatrix:function(r){r=a(r),this.attr({order:Math.sqrt(r.split(" ").length),kernelMatrix:r})},composite:function(r,o,n){this.attr({in:r,in2:o,operator:n})},flood:function(r,o){this.attr("flood-color",r),o!=null&&this.attr("flood-opacity",o)},offset:function(r,o){this.attr({dx:r,dy:o})},image:function(r){this.attr("href",r,SVG.xlink)},displacementMap:function(r,o,n,h,c){this.attr({in:r,in2:o,scale:n,xChannelSelector:h,yChannelSelector:c})},gaussianBlur:function(r,o){r!=null||o!=null?this.attr("stdDeviation",function(n){if(!Array.isArray(n))return n;for(var h=0,c=n.length,d=[];h1&&(N*=c=Math.sqrt(c),$*=c),d=new SVG.Matrix().rotate(q).scale(1/N,1/$).rotate(-q),it=it.transform(d),at=at.transform(d),g=[at.x-it.x,at.y-it.y],f=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(f),g[0]/=p,g[1]/=p,b=f<4?Math.sqrt(1-f/4):0,xt===lt&&(b*=-1),m=new SVG.Point((at.x+it.x)/2+b*-g[1],(at.y+it.y)/2+b*g[0]),w=new SVG.Point(it.x-m.x,it.y-m.y),C=new SVG.Point(at.x-m.x,at.y-m.y),l=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(l*=-1),u=Math.acos(C.x/Math.sqrt(C.x*C.x+C.y*C.y)),C.y<0&&(u*=-1),lt&&l>u&&(u+=2*Math.PI),!lt&&lr.maxX-e.width&&(o=(a=r.maxX-e.width)-this.startPoints.box.x),r.minY!=null&&sr.maxY-e.height&&(n=(s=r.maxY-e.height)-this.startPoints.box.y),r.snapToGrid!=null&&(a-=a%r.snapToGrid,s-=s%r.snapToGrid,o-=o%r.snapToGrid,n-=n%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:n},!0):this.el.move(a,s));return i},y.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,e){typeof t!="function"&&typeof t!="object"||(e=t,t=!0);var i=this.remember("_draggable")||new y(this);return(t=t===void 0||t)?i.init(e||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function y(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,i,a){var s=typeof e!="string"?e:i[e];return a?s/2:s},this.pointCoords=function(e,i){var a=this.pointsList[e];return{x:this.pointCoord(a[0],i,e==="t"||e==="b"),y:this.pointCoord(a[1],i,e==="r"||e==="l")}}}y.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],e[s]!==void 0&&(this.options[s]=e[s]);var r=["points","pointsExclude"];for(var s in r){var o=this.options[r[s]];typeof o=="string"?o=o.length>0?o.split(/\s*,\s*/i):[]:typeof o=="boolean"&&r[s]==="points"&&(o=o?a:[]),this.options[r[s]]=o}this.options.points=[a,this.options.points].reduce(function(n,h){return n.filter(function(c){return h.indexOf(c)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(n,h){return n.filter(function(c){return h.indexOf(c)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},y.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},y.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},y.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i0&&this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-o[0]);o=this.checkAspectRatio(o),this.el.move(this.parameters.box.x+o[0],this.parameters.box.y+o[1]).size(this.parameters.box.width-o[0],this.parameters.box.height-o[1])}};break;case"rt":this.calc=function(s,r){var o=this.snapToGrid(s,r,2);if(this.parameters.box.width+o[0]>0&&this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+o[0]);o=this.checkAspectRatio(o,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+o[1]).size(this.parameters.box.width+o[0],this.parameters.box.height-o[1])}};break;case"rb":this.calc=function(s,r){var o=this.snapToGrid(s,r,0);if(this.parameters.box.width+o[0]>0&&this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+o[0]);o=this.checkAspectRatio(o),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+o[0],this.parameters.box.height+o[1])}};break;case"lb":this.calc=function(s,r){var o=this.snapToGrid(s,r,1);if(this.parameters.box.width-o[0]>0&&this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-o[0]);o=this.checkAspectRatio(o,!0),this.el.move(this.parameters.box.x+o[0],this.parameters.box.y).size(this.parameters.box.width-o[0],this.parameters.box.height+o[1])}};break;case"t":this.calc=function(s,r){var o=this.snapToGrid(s,r,2);if(this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+o[1]).height(this.parameters.box.height-o[1])}};break;case"r":this.calc=function(s,r){var o=this.snapToGrid(s,r,0);if(this.parameters.box.width+o[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+o[0])}};break;case"b":this.calc=function(s,r){var o=this.snapToGrid(s,r,0);if(this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+o[1])}};break;case"l":this.calc=function(s,r){var o=this.snapToGrid(s,r,1);if(this.parameters.box.width-o[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+o[0],this.parameters.box.y).width(this.parameters.box.width-o[0])}};break;case"rot":this.calc=function(s,r){var o=s+this.parameters.p.x,n=r+this.parameters.p.y,h=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),c=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,o-this.parameters.box.x-this.parameters.box.width/2),d=this.parameters.rotation+180*(c-h)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(d-d%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(s,r){var o=this.snapToGrid(s,r,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+o[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+o[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(s){e.update(s||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(s){e.update(s||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},y.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},y.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},y.prototype.snapToGrid=function(t,e,i,a){var s;return a!==void 0?s=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=i??3,s=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(s[0]-=this.options.snapToGrid),e<0&&(s[1]-=this.options.snapToGrid),t-=Math.abs(s[0])o.maxX&&(t=o.maxX-s),o.minY!==void 0&&r+eo.maxY&&(e=o.maxY-r),[t,e]},y.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+t[0],r=this.parameters.box.height-t[1],o=s/r;return oa&&(i[0]=this.parameters.box.width-r*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new y(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var Ae=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new At(this.ctx),this.ctx.axes=new _e(this.ctx),this.ctx.core=new oi(this.ctx.el,this.ctx),this.ctx.config=new Nt({}),this.ctx.data=new de(this.ctx),this.ctx.grid=new ge(this.ctx),this.ctx.graphics=new X(this.ctx),this.ctx.coreUtils=new K(this.ctx),this.ctx.crosshairs=new te(this.ctx),this.ctx.events=new Ee(this.ctx),this.ctx.exports=new jt(this.ctx),this.ctx.localization=new Ye(this.ctx),this.ctx.options=new G,this.ctx.responsive=new Fe(this.ctx),this.ctx.series=new gt(this.ctx),this.ctx.theme=new Re(this.ctx),this.ctx.formatters=new mt(this.ctx),this.ctx.titleSubtitle=new He(this.ctx),this.ctx.legend=new ue(this.ctx),this.ctx.toolbar=new pe(this.ctx),this.ctx.tooltip=new be(this.ctx),this.ctx.dimensions=new Ut(this.ctx),this.ctx.updateHelpers=new ni(this.ctx),this.ctx.zoomPanSelection=new Ge(this.ctx),this.ctx.w.globals.tooltip=new be(this.ctx)}}]),y}(),Ce=function(){function y(t){F(this,y),this.ctx=t,this.w=t.w}return _(y,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),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.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(e,i){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach(function(o){s.removeEventListener(o,e.ctx.events.documentEvent)});var r=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elLegendWrap=null,r.elLegendForeign=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),y}(),re=new WeakMap,li=function(){function y(t,e){F(this,y),this.opts=e,this.ctx=this,this.w=new Xe(e).init(),this.el=t,this.w.globals.cuid=M.randomId(),this.w.globals.chartID=this.w.config.chart.id?M.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ae(this).initModules(),this.create=M.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return _(y,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(t.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var a=t.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(g,p){var f=!1;if(g.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var b=g.getBoundingClientRect();g.style.display!=="none"&&b.width!==0||(f=!0)}var m=new ResizeObserver(function(w){f&&p.call(g,w),f=!0});g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(g.children).forEach(function(w){return m.observe(w)}):m.observe(g),re.set(p,m)}(t.el.parentNode,t.parentResizeHandler),!t.css){var s=t.el.getRootNode&&t.el.getRootNode(),r=M.is("ShadowRoot",s),o=t.el.ownerDocument,n=o.getElementById("apexcharts-css");if(r||!n){var h;t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent=`@keyframes opaque { 0% { opacity: 0 } to { opacity: 1 } } @keyframes resizeanim { 0%,to { opacity: 0 } } .apexcharts-canvas { position: relative; user-select: none } .apexcharts-canvas ::-webkit-scrollbar { -webkit-appearance: none; width: 6px } .apexcharts-canvas ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0,0,0,.5); box-shadow: 0 0 1px rgba(255,255,255,.5); -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5) } .apexcharts-inner { position: relative } .apexcharts-text tspan { font-family: inherit } .legend-mouseover-inactive { transition: .15s ease all; opacity: .2 } .apexcharts-legend-text { padding-left: 15px; margin-left: -15px; } .apexcharts-series-collapsed { opacity: 0 } .apexcharts-tooltip { border-radius: 5px; box-shadow: 2px 2px 6px -4px #999; cursor: default; font-size: 14px; left: 62px; opacity: 0; pointer-events: none; position: absolute; top: 20px; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; z-index: 12; transition: .15s ease all } .apexcharts-tooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-tooltip.apexcharts-theme-light { border: 1px solid #e3e3e3; background: rgba(255,255,255,.96) } .apexcharts-tooltip.apexcharts-theme-dark { color: #fff; background: rgba(30,30,30,.8) } .apexcharts-tooltip * { font-family: inherit } .apexcharts-tooltip-title { padding: 6px; font-size: 15px; margin-bottom: 4px } .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: #eceff1; border-bottom: 1px solid #ddd } .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title { background: rgba(0,0,0,.7); border-bottom: 1px solid #333 } .apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value { display: inline-block; margin-left: 5px; font-weight: 600 } .apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty { display: none } .apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { padding: 6px 0 5px } .apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { display: flex } .apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) { margin-top: -6px } .apexcharts-tooltip-marker { width: 12px; height: 12px; position: relative; top: 0; margin-right: 10px; border-radius: 50% } .apexcharts-tooltip-series-group { padding: 0 10px; display: none; text-align: left; justify-content: left; align-items: center } .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker { opacity: 1 } .apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child { padding-bottom: 4px } .apexcharts-tooltip-series-group-hidden { opacity: 0; height: 0; line-height: 0; padding: 0!important } .apexcharts-tooltip-y-group { padding: 6px 0 5px } .apexcharts-custom-tooltip,.apexcharts-tooltip-box { padding: 4px 8px } .apexcharts-tooltip-boxPlot { display: flex; flex-direction: column-reverse } .apexcharts-tooltip-box>div { margin: 4px 0 } .apexcharts-tooltip-box span.value { font-weight: 700 } .apexcharts-tooltip-rangebar { padding: 5px 8px } .apexcharts-tooltip-rangebar .category { font-weight: 600; color: #777 } .apexcharts-tooltip-rangebar .series-name { font-weight: 700; display: block; margin-bottom: 5px } .apexcharts-xaxistooltip,.apexcharts-yaxistooltip { opacity: 0; pointer-events: none; color: #373d3f; font-size: 13px; text-align: center; border-radius: 2px; position: absolute; z-index: 10; background: #eceff1; border: 1px solid #90a4ae } .apexcharts-xaxistooltip { padding: 9px 10px; transition: .15s ease all } .apexcharts-xaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before { left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-xaxistooltip:after { border-color: transparent; border-width: 6px; margin-left: -6px } .apexcharts-xaxistooltip:before { border-color: transparent; border-width: 7px; margin-left: -7px } .apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before { bottom: 100% } .apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before { top: 100% } .apexcharts-xaxistooltip-bottom:after { border-bottom-color: #eceff1 } .apexcharts-xaxistooltip-bottom:before { border-bottom-color: #90a4ae } .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before { border-bottom-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip-top:after { border-top-color: #eceff1 } .apexcharts-xaxistooltip-top:before { border-top-color: #90a4ae } .apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before { border-top-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-yaxistooltip { padding: 4px 10px } .apexcharts-yaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before { top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-yaxistooltip:after { border-color: transparent; border-width: 6px; margin-top: -6px } .apexcharts-yaxistooltip:before { border-color: transparent; border-width: 7px; margin-top: -7px } .apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before { left: 100% } .apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before { right: 100% } .apexcharts-yaxistooltip-left:after { border-left-color: #eceff1 } .apexcharts-yaxistooltip-left:before { border-left-color: #90a4ae } .apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before { border-left-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip-right:after { border-right-color: #eceff1 } .apexcharts-yaxistooltip-right:before { border-right-color: #90a4ae } .apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before { border-right-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip.apexcharts-active { opacity: 1 } .apexcharts-yaxistooltip-hidden { display: none } .apexcharts-xcrosshairs,.apexcharts-ycrosshairs { pointer-events: none; opacity: 0; transition: .15s ease all } .apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-ycrosshairs-hidden { opacity: 0 } .apexcharts-selection-rect { cursor: move } .svg_select_boundingRect,.svg_select_points_rot { pointer-events: none; opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot { opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r { cursor: ew-resize; opacity: 1; visibility: visible } .svg_select_points { fill: #efefef; stroke: #333; rx: 2 } .apexcharts-svg.apexcharts-zoomable.hovering-zoom { cursor: crosshair } .apexcharts-svg.apexcharts-zoomable.hovering-pan { cursor: move } .apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon { cursor: pointer; width: 20px; height: 20px; line-height: 24px; color: #6e8192; text-align: center } .apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg { fill: #6e8192 } .apexcharts-selection-icon svg { fill: #444; transform: scale(.76) } .apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg { fill: #f3f4f5 } .apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg { fill: #008ffb } .apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg { fill: #333 } .apexcharts-menu-icon,.apexcharts-selection-icon { position: relative } .apexcharts-reset-icon { margin-left: 5px } .apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon { transform: scale(.85) } .apexcharts-zoomin-icon,.apexcharts-zoomout-icon { transform: scale(.7) } .apexcharts-zoomout-icon { margin-right: 3px } .apexcharts-pan-icon { transform: scale(.62); position: relative; left: 1px; top: 0 } .apexcharts-pan-icon svg { fill: #fff; stroke: #6e8192; stroke-width: 2 } .apexcharts-pan-icon.apexcharts-selected svg { stroke: #008ffb } .apexcharts-pan-icon:not(.apexcharts-selected):hover svg { stroke: #333 } .apexcharts-toolbar { position: absolute; z-index: 11; max-width: 176px; text-align: right; border-radius: 3px; padding: 0 6px 2px; display: flex; justify-content: space-between; align-items: center } .apexcharts-menu { background: #fff; position: absolute; top: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 3px; right: 10px; opacity: 0; min-width: 110px; transition: .15s ease all; pointer-events: none } .apexcharts-menu.apexcharts-menu-open { opacity: 1; pointer-events: all; transition: .15s ease all } .apexcharts-menu-item { padding: 6px 7px; font-size: 12px; cursor: pointer } .apexcharts-theme-light .apexcharts-menu-item:hover { background: #eee } .apexcharts-theme-dark .apexcharts-menu { background: rgba(0,0,0,.7); color: #fff } @media screen and (min-width:768px) { .apexcharts-canvas:hover .apexcharts-toolbar { opacity: 1 } } .apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points { opacity: 0 } .apexcharts-hidden-element-shown { opacity: 1; transition: 0.25s ease all; } .apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label { cursor: default; pointer-events: none } .apexcharts-pie-label-delay { opacity: 0; animation-name: opaque; animation-duration: .3s; animation-fill-mode: forwards; animation-timing-function: ease } .apexcharts-radialbar-label { cursor: pointer; } .apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect { pointer-events: none } .apexcharts-marker { transition: .15s ease all } .resize-triggers { animation: 1ms resizeanim; visibility: hidden; opacity: 0; height: 100%; width: 100%; overflow: hidden } .contract-trigger:before,.resize-triggers,.resize-triggers>div { content: " "; display: block; position: absolute; top: 0; left: 0 } .resize-triggers>div { height: 100%; width: 100%; background: #eee; overflow: auto } .contract-trigger:before { overflow: hidden; width: 200%; height: 200% } .apexcharts-bar-goals-markers{ pointer-events: none } .apexcharts-bar-shadows{ pointer-events: none } .apexcharts-rangebar-goals-markers{ pointer-events: none }`;var c=((h=t.opts.chart)===null||h===void 0?void 0:h.nonce)||t.w.config.chart.nonce;c&&t.css.setAttribute("nonce",c),r?s.prepend(t.css):o.head.appendChild(t.css)}}var d=t.create(t.w.config.series,{});if(!d)return e(t);t.mount(d).then(function(){typeof t.w.config.chart.events.mounted=="function"&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(d)}).catch(function(g){i(g)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this.w;new Ae(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new yt(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var s=K.checkComboSeries(t);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var r=t.every(function(c){return c.data&&c.data.length===0});(t.length===0||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new Wt(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new K(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var n=this.core.plotChartType(t,o),h=new Ft(this);return h.bringForward(),i.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:n,xyRatios:o,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(s,r){if(i.el===null)return r(new Error("Not enough data to display or target element not found"));(e===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new ge(i);var o,n,h=i.grid.drawGrid();if(i.annotations=new pt(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(h&&a.globals.dom.elGraphical.add(h.el),h!=null&&(o=h.elGridBorders)!==null&&o!==void 0&&o.node&&a.globals.dom.elGraphical.add(h.elGridBorders)),Array.isArray(e.elGraph))for(var c=0;c0&&a.globals.memory.methodsToExec.forEach(function(f){f.method(f.params,!1,f.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)})}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=re.get(t))&&(e.disconnect(),re.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,s){a.id===M.escapeString(i)&&Apex._chartInstances.splice(s,1)}),new Ce(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],r=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w;return o.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(n,h){return e.updateHelpers._extendSeries(n,h)})),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,i,a,s,r)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Qt(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Qt(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new jt(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new jt(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;typeof t=="function"&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=M.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(a){return a.id===e})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e2?s-2:0),o=2;oD&&typeof D=="object"&&!Array.isArray(D)&&D!=null,F=(D,G)=>{typeof Object.assign!="function"&&function(){Object.assign=function(V){if(V==null)throw new TypeError("Cannot convert undefined or null to object");let mt=Object(V);for(let It=1;It{Z(G[V])?V in D?pt[V]=F(D[V],G[V]):Object.assign(pt,{[V]:G[V]}):Object.assign(pt,{[V]:G[V]})}),pt},bt=async()=>{if(await fi(),E.value)return;const D={chart:{type:B.type||B.options.chart.type||"line",height:B.height,width:B.width,events:{}},series:B.series};Ie.forEach(pt=>{let V=(...mt)=>U(pt,...mt);D.chart.events[pt]=V});const G=F(B.options,D);return E.value=new Me(Lt.value,G),E.value.render()},_=()=>(rt(),bt()),rt=()=>{E.value.destroy()},vt=(D,G)=>E.value.updateSeries(D,G),tt=(D,G,pt,V)=>E.value.updateOptions(D,G,pt,V),nt=D=>E.value.toggleSeries(D),dt=D=>{E.value.showSeries(D)},ot=D=>{E.value.hideSeries(D)},Yt=(D,G)=>E.value.appendSeries(D,G),Q=()=>{E.value.resetSeries()},Pt=(D,G)=>{E.value.toggleDataPointSelection(D,G)},Ot=D=>E.value.appendData(D),M=(D,G)=>E.value.zoomX(D,G),At=D=>E.value.dataURI(D),et=D=>E.value.setLocale(D),X=(D,G)=>{E.value.addXaxisAnnotation(D,G)},K=(D,G)=>{E.value.addYaxisAnnotation(D,G)},_t=(D,G)=>{E.value.addPointAnnotation(D,G)},qt=(D,G)=>{E.value.removeAnnotation(D,G)},Jt=()=>{E.value.clearAnnotations()};hi(()=>{window.ApexCharts=Me}),ci(()=>{Lt.value=di().proxy.$el,bt()}),gi(()=>{E.value&&rt()});const Mt=ui(B);return Gt(Mt.options,()=>{!E.value&&B.options?bt():E.value.updateOptions(B.options)}),Gt(Mt.series,()=>{!E.value&&B.series?bt():E.value.updateSeries(B.series)},{deep:!0}),Gt(Mt.type,()=>{_()}),Gt(Mt.width,()=>{_()}),Gt(Mt.height,()=>{_()}),{chart:E,init:bt,refresh:_,destroy:rt,updateOptions:tt,updateSeries:vt,toggleSeries:nt,showSeries:dt,hideSeries:ot,resetSeries:Q,zoomX:M,toggleDataPointSelection:Pt,appendData:Ot,appendSeries:Yt,addXaxisAnnotation:X,addYaxisAnnotation:K,addPointAnnotation:_t,removeAnnotation:qt,clearAnnotations:Jt,setLocale:et,dataURI:At}},render(){return pi("div",{class:"vue-apexcharts"})}}),Ii=B=>{B.component(Et.name,Et)};Et.install=Ii;const Ti={},zi={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xi=A("circle",{cx:"5",cy:"12",r:"2",stroke:"currentColor","stroke-width":"1.5"},null,-1),Ei=A("circle",{opacity:"0.5",cx:"12",cy:"12",r:"2",stroke:"currentColor","stroke-width":"1.5"},null,-1),Yi=A("circle",{cx:"19",cy:"12",r:"2",stroke:"currentColor","stroke-width":"1.5"},null,-1),_i=[Xi,Ei,Yi];function Fi(B,U){return ht(),ct("svg",zi,_i)}const ne=ut(Ti,[["render",Fi]]),Ri={},Hi={width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Di=A("path",{d:"M12 6V18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),Oi=A("path",{d:"M15 9.5C15 8.11929 13.6569 7 12 7C10.3431 7 9 8.11929 9 9.5C9 10.8807 10.3431 12 12 12C13.6569 12 15 13.1193 15 14.5C15 15.8807 13.6569 17 12 17C10.3431 17 9 15.8807 9 14.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),Ni=[Di,Oi];function Wi(B,U){return ht(),ct("svg",Hi,Ni)}const Bi=ut(Ri,[["render",Wi]]),Gi={},Vi={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ji=A("path",{d:"M3.74157 18.5545C4.94119 20 7.17389 20 11.6393 20H12.3605C16.8259 20 19.0586 20 20.2582 18.5545M3.74157 18.5545C2.54194 17.1091 2.9534 14.9146 3.77633 10.5257C4.36155 7.40452 4.65416 5.84393 5.76506 4.92196M3.74157 18.5545C3.74156 18.5545 3.74157 18.5545 3.74157 18.5545ZM20.2582 18.5545C21.4578 17.1091 21.0464 14.9146 20.2235 10.5257C19.6382 7.40452 19.3456 5.84393 18.2347 4.92196M20.2582 18.5545C20.2582 18.5545 20.2582 18.5545 20.2582 18.5545ZM18.2347 4.92196C17.1238 4 15.5361 4 12.3605 4H11.6393C8.46374 4 6.87596 4 5.76506 4.92196M18.2347 4.92196C18.2347 4.92196 18.2347 4.92196 18.2347 4.92196ZM5.76506 4.92196C5.76506 4.92196 5.76506 4.92196 5.76506 4.92196Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),Ui=A("path",{opacity:"0.5",d:"M9.1709 8C9.58273 9.16519 10.694 10 12.0002 10C13.3064 10 14.4177 9.16519 14.8295 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),$i=[ji,Ui];function Zi(B,U){return ht(),ct("svg",Vi,$i)}const qi=ut(Gi,[["render",Zi]]),Ji={},Qi={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ki=A("path",{d:"M4.72848 16.1369C3.18295 14.5914 2.41018 13.8186 2.12264 12.816C1.83509 11.8134 2.08083 10.7485 2.57231 8.61875L2.85574 7.39057C3.26922 5.59881 3.47597 4.70292 4.08944 4.08944C4.70292 3.47597 5.59881 3.26922 7.39057 2.85574L8.61875 2.57231C10.7485 2.08083 11.8134 1.83509 12.816 2.12264C13.8186 2.41018 14.5914 3.18295 16.1369 4.72848L17.9665 6.55812C20.6555 9.24711 22 10.5916 22 12.2623C22 13.933 20.6555 15.2775 17.9665 17.9665C15.2775 20.6555 13.933 22 12.2623 22C10.5916 22 9.24711 20.6555 6.55812 17.9665L4.72848 16.1369Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),ta=A("circle",{opacity:"0.5",cx:"8.60699",cy:"8.87891",r:"2",transform:"rotate(-45 8.60699 8.87891)",stroke:"currentColor","stroke-width":"1.5"},null,-1),ea=A("path",{opacity:"0.5",d:"M11.5417 18.5L18.5208 11.5208",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),ia=[Ki,ta,ea];function aa(B,U){return ht(),ct("svg",Qi,ia)}const sa=ut(Ji,[["render",aa]]),ra={},oa={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},na=A("path",{d:"M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12C22 15.7712 22 17.6569 20.8284 18.8284C19.6569 20 17.7712 20 14 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),la=A("path",{opacity:"0.5",d:"M10 16H6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),ha=A("path",{opacity:"0.5",d:"M14 16H12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),ca=A("path",{opacity:"0.5",d:"M2 10L22 10",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),da=[na,la,ha,ca];function ga(B,U){return ht(),ct("svg",oa,da)}const ua=ut(ra,[["render",ga]]),pa={},fa={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xa=St('',5),ba=[xa];function ma(B,U){return ht(),ct("svg",fa,ba)}const va=ut(pa,[["render",ma]]),ya={},wa={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ka=A("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Aa=[ka];function Ca(B,U){return ht(),ct("svg",wa,Aa)}const Sa=ut(ya,[["render",Ca]]),La={},Pa={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ma=St('',5),Ia=[Ma];function Ta(B,U){return ht(),ct("svg",Pa,Ia)}const za=ut(La,[["render",Ta]]),Xa={},Ea={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},Ya=A("path",{fill:"currentColor",d:"M5.398 0v.006c3.028 8.556 5.37 15.175 8.348 23.596c2.344.058 4.85.398 4.854.398c-2.8-7.924-5.923-16.747-8.487-24zm8.489 0v9.63L18.6 22.951c-.043-7.86-.004-15.913.002-22.95zM5.398 1.05V24c1.873-.225 2.81-.312 4.715-.398v-9.22z"},null,-1),_a=[Ya];function Fa(B,U){return ht(),ct("svg",Ea,_a)}const Ra=ut(Xa,[["render",Fa]]),Ha={},Da={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oa=A("path",{d:"M13.926 9.70541C13.5474 9.33386 13.5474 8.74151 13.5474 7.55682V7.24712C13.5474 3.96249 13.5474 2.32018 12.6241 2.03721C11.7007 1.75425 10.711 3.09327 8.73167 5.77133L5.66953 9.91436C4.3848 11.6526 3.74244 12.5217 4.09639 13.205C4.10225 13.2164 4.10829 13.2276 4.1145 13.2387C4.48945 13.9117 5.59888 13.9117 7.81775 13.9117C9.05079 13.9117 9.6673 13.9117 10.054 14.2754",stroke:"currentColor","stroke-width":"1.5"},null,-1),Na=A("path",{opacity:"0.5",d:"M13.9259 9.70557L13.9459 9.72481C14.3326 10.0885 14.9492 10.0885 16.1822 10.0885C18.4011 10.0885 19.5105 10.0885 19.8854 10.7615C19.8917 10.7726 19.8977 10.7838 19.9036 10.7951C20.2575 11.4785 19.6151 12.3476 18.3304 14.0858L15.2682 18.2288C13.2888 20.9069 12.2991 22.2459 11.3758 21.9629C10.4524 21.68 10.4524 20.0376 10.4525 16.753L10.4525 16.4434C10.4525 15.2587 10.4525 14.6663 10.074 14.2948L10.054 14.2755",stroke:"currentColor","stroke-width":"1.5"},null,-1),Wa=[Oa,Na];function Ba(B,U){return ht(),ct("svg",Da,Wa)}const Ga=ut(Ha,[["render",Ba]]),Va={},ja={width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ua=A("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1),$a=A("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Za=[Ua,$a];function qa(B,U){return ht(),ct("svg",ja,Za)}const Ja=ut(Va,[["render",qa]]),Qa={},Ka={width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ts=A("path",{d:"M12.6644 5.47875L16.6367 9.00968C18.2053 10.404 18.9896 11.1012 18.9896 11.9993C18.9896 12.8975 18.2053 13.5946 16.6367 14.989L12.6644 18.5199C11.9484 19.1563 11.5903 19.4746 11.2952 19.342C11 19.2095 11 18.7305 11 17.7725V15.4279C7.4 15.4279 3.5 17.1422 2 19.9993C2 10.8565 7.33333 8.57075 11 8.57075V6.22616C11 5.26817 11 4.78917 11.2952 4.65662C11.5903 4.52407 11.9484 4.8423 12.6644 5.47875Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),es=A("path",{opacity:"0.5",d:"M15.5386 4.5L20.7548 9.34362C21.5489 10.081 22.0001 11.1158 22.0001 12.1994C22.0001 13.3418 21.4989 14.4266 20.629 15.1671L15.5386 19.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),is=[ts,es];function as(B,U){return ht(),ct("svg",Ka,is)}const Vt=ut(Qa,[["render",as]]),ss={class:""},rs={class:"grid xl:grid-cols-3 gap-6 mb-6"},os={class:"panel h-full xl:col-span-2"},ns={class:"flex items-center justify-between dark:text-white-light mb-5"},ls=A("h5",{class:"font-semibold text-lg"},"Revenue",-1),hs={class:"dropdown ltr:ml-auto rtl:mr-auto"},cs={href:"javascript:;"},ds=["onClick"],gs=A("li",null,[A("a",{href:"javascript:;"},"Weekly")],-1),us=A("li",null,[A("a",{href:"javascript:;"},"Monthly")],-1),ps=A("li",null,[A("a",{href:"javascript:;"},"Yearly")],-1),fs=[gs,us,ps],xs=A("p",{class:"text-lg dark:text-white-light/90"},[J("Total Profit "),A("span",{class:"text-primary ml-2"},"$10,840")],-1),bs={class:"relative"},ms=A("div",{class:"min-h-[325px] grid place-content-center bg-white-light/30 dark:bg-dark dark:bg-opacity-[0.08]"},[A("span",{class:"animate-spin border-2 border-black dark:border-white !border-l-transparent rounded-full w-5 h-5 inline-flex"})],-1),vs={class:"panel h-full"},ys=A("div",{class:"flex items-center mb-5"},[A("h5",{class:"font-semibold text-lg dark:text-white-light"},"Sales By Category")],-1),ws=A("div",{class:"min-h-[460px] grid place-content-center bg-white-light/30 dark:bg-dark dark:bg-opacity-[0.08]"},[A("span",{class:"animate-spin border-2 border-black dark:border-white !border-l-transparent rounded-full w-5 h-5 inline-flex"})],-1),ks={class:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"},As={class:"panel h-full w-full"},Cs={class:"flex items-center justify-between mb-5"},Ss={class:"font-semibold text-lg dark:text-white-light"},Ls={class:"table-responsive"},Ps=A("thead",null,[A("tr",null,[A("th",{class:"ltr:rounded-l-md rtl:rounded-r-md"},"Customer"),A("th",null,"Product"),A("th",null,"Invoice"),A("th",null,"Price"),A("th",{class:"ltr:rounded-r-md rtl:rounded-l-md"},"Status")])],-1),Ms={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Is=A("td",{class:"min-w-[150px] text-black dark:text-white"},[A("div",{class:"flex items-center"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:mi,alt:"avatar"}),A("span",{class:"whitespace-nowrap"},"Luke Ivory")])],-1),Ts=A("td",{class:"text-primary"},"Headphone",-1),zs=A("td",null,"$56.07",-1),Xs=A("td",null,[A("span",{class:"badge bg-success shadow-md dark:group-hover:bg-transparent"},"Paid")],-1),Es={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Ys=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex items-center"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:vi,alt:"avatar"}),A("span",{class:"whitespace-nowrap"},"Andy King")])],-1),_s=A("td",{class:"text-info"},"Nike Sport",-1),Fs=A("td",null,"$126.04",-1),Rs=A("td",null,[A("span",{class:"badge bg-secondary shadow-md dark:group-hover:bg-transparent"},"Shipped")],-1),Hs={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Ds=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex items-center"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:yi,alt:"avatar"}),A("span",{class:"whitespace-nowrap"},"Laurie Fox")])],-1),Os=A("td",{class:"text-warning"},"Sunglasses",-1),Ns=A("td",null,"$56.07",-1),Ws=A("td",null,[A("span",{class:"badge bg-success shadow-md dark:group-hover:bg-transparent"},"Paid")],-1),Bs={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Gs=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex items-center"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:wi,alt:"avatar"}),A("span",{class:"whitespace-nowrap"},"Ryan Collins")])],-1),Vs=A("td",{class:"text-danger"},"Sport",-1),js=A("td",null,"$110.00",-1),Us=A("td",null,[A("span",{class:"badge bg-secondary shadow-md dark:group-hover:bg-transparent"},"Shipped")],-1),$s={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Zs=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex items-center"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:ki,alt:"avatar"}),A("span",{class:"whitespace-nowrap"},"Irene Collins")])],-1),qs=A("td",{class:"text-secondary"},"Speakers",-1),Js=A("td",null,"$56.07",-1),Qs=A("td",null,[A("span",{class:"badge bg-success shadow-md dark:group-hover:bg-transparent"},"Paid")],-1),Ks={class:"panel h-full w-full"},tr={class:"flex items-center justify-between mb-5"},er={class:"font-semibold text-lg dark:text-white-light"},ir={class:"table-responsive"},ar=A("thead",null,[A("tr",{class:"border-b-0"},[A("th",{class:"ltr:rounded-l-md rtl:rounded-r-md"},"Product"),A("th",null,"Price"),A("th",null,"Discount"),A("th",null,"Sold"),A("th",{class:"ltr:rounded-r-md rtl:rounded-l-md"},"Source")])],-1),sr={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},rr=A("td",{class:"min-w-[150px] text-black dark:text-white"},[A("div",{class:"flex"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:Ai,alt:"avatar"}),A("p",{class:"whitespace-nowrap"},[J("Headphone "),A("span",{class:"text-primary block text-xs"},"Digital")])])],-1),or=A("td",null,"$168.09",-1),nr=A("td",null,"$60.09",-1),lr=A("td",null,"170",-1),hr={class:"text-danger flex items-center",href:"javascript:;"},cr={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},dr=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:Ci,alt:"avatar"}),A("p",{class:"whitespace-nowrap"},[J("Shoes "),A("span",{class:"text-warning block text-xs"},"Faishon")])])],-1),gr=A("td",null,"$126.04",-1),ur=A("td",null,"$47.09",-1),pr=A("td",null,"130",-1),fr={class:"text-success flex items-center",href:"javascript:;"},xr={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},br=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:ze,alt:"avatar"}),A("p",{class:"whitespace-nowrap"},[J("Watch "),A("span",{class:"text-danger block text-xs"},"Accessories")])])],-1),mr=A("td",null,"$56.07",-1),vr=A("td",null,"$20.00",-1),yr=A("td",null,"66",-1),wr={class:"text-warning flex items-center",href:"javascript:;"},kr={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Ar=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:ze,alt:"avatar"}),A("p",{class:"whitespace-nowrap"},[J("Laptop "),A("span",{class:"text-primary block text-xs"},"Digital")])])],-1),Cr=A("td",null,"$110.00",-1),Sr=A("td",null,"$33.00",-1),Lr=A("td",null,"35",-1),Pr={class:"text-secondary flex items-center",href:"javascript:;"},Mr={class:"text-white-dark hover:text-black dark:hover:text-white-light/90 group"},Ir=A("td",{class:"text-black dark:text-white"},[A("div",{class:"flex"},[A("img",{class:"w-8 h-8 rounded-md ltr:mr-3 rtl:ml-3 object-cover",src:Si,alt:"avatar"}),A("p",{class:"whitespace-nowrap"},[J("Camera "),A("span",{class:"text-primary block text-xs"},"Digital")])])],-1),Tr=A("td",null,"$56.07",-1),zr=A("td",null,"$26.04",-1),Xr=A("td",null,"30",-1),Er={class:"text-primary flex items-center",href:"javascript:;"},Yr={class:"grid sm:grid-cols-2 xl:grid-cols-3 gap-6 mb-6"},_r={class:"panel h-full sm:col-span-2 xl:col-span-1"},Fr={class:"flex items-center mb-5"},Rr=A("h5",{class:"font-semibold text-lg dark:text-white-light"},[J(" Daily Sales "),A("span",{class:"block text-white-dark text-sm font-normal"},"Go to columns for details.")],-1),Hr={class:"ltr:ml-auto rtl:mr-auto relative"},Dr={class:"w-11 h-11 text-warning bg-[#ffeccb] dark:bg-warning dark:text-[#ffeccb] grid place-content-center rounded-full"},Or=A("div",{class:"min-h-[175px] grid place-content-center bg-white-light/30 dark:bg-dark dark:bg-opacity-[0.08]"},[A("span",{class:"animate-spin border-2 border-black dark:border-white !border-l-transparent rounded-full w-5 h-5 inline-flex"})],-1),Nr={class:"panel h-full"},Wr={class:"flex items-center dark:text-white-light mb-5"},Br=A("h5",{class:"font-semibold text-lg"},"Summary",-1),Gr={class:"dropdown ltr:ml-auto rtl:mr-auto"},Vr={href:"javascript:;"},jr=["onClick"],Ur=A("li",null,[A("a",{href:"javascript:;"},"View Report")],-1),$r=A("li",null,[A("a",{href:"javascript:;"},"Edit Report")],-1),Zr=A("li",null,[A("a",{href:"javascript:;"},"Mark as Done")],-1),qr=[Ur,$r,Zr],Jr={class:"space-y-9"},Qr={class:"flex items-center"},Kr={class:"w-9 h-9 ltr:mr-3 rtl:ml-3"},to={class:"bg-secondary-light dark:bg-secondary text-secondary dark:text-secondary-light rounded-full w-9 h-9 grid place-content-center"},eo=St('
Income

$92,600

',1),io={class:"flex items-center"},ao={class:"w-9 h-9 ltr:mr-3 rtl:ml-3"},so={class:"bg-success-light dark:bg-success text-success dark:text-success-light rounded-full w-9 h-9 grid place-content-center"},ro=St('
Profit

$37,515

',1),oo={class:"flex items-center"},no={class:"w-9 h-9 ltr:mr-3 rtl:ml-3"},lo={class:"bg-warning-light dark:bg-warning text-warning dark:text-warning-light rounded-full w-9 h-9 grid place-content-center"},ho=St('
Expenses

$55,085

',1),co={class:"panel h-full p-0"},go={class:"flex items-center justify-between w-full p-5 absolute"},uo={class:"relative"},po={class:"text-success dark:text-success-light bg-success-light dark:bg-success w-11 h-11 rounded-lg flex items-center justify-center"},fo=A("h5",{class:"font-semibold text-2xl ltr:text-right rtl:text-left dark:text-white-light"},[J(" 3,192 "),A("span",{class:"block text-sm font-normal"},"Total Orders")],-1),xo=A("div",{class:"min-h-[290px] grid place-content-center bg-white-light/30 dark:bg-dark dark:bg-opacity-[0.08]"},[A("span",{class:"animate-spin border-2 border-black dark:border-white !border-l-transparent rounded-full w-5 h-5 inline-flex"})],-1),bo={class:"grid sm:grid-cols-2 xl:grid-cols-3 gap-6 mb-6"},mo={class:"panel h-full sm:col-span-2 xl:col-span-1 pb-0"},vo=A("h5",{class:"font-semibold text-lg dark:text-white-light mb-5"},"Recent Activities",-1),yo=A("div",{class:"text-sm cursor-pointer"},[A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-primary w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Updated Server Logs"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"Just Now"),A("span",{class:"badge badge-outline-primary absolute ltr:right-0 rtl:left-0 text-xs bg-primary-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-success w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Send Mail to HR and Admin"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"2 min ago"),A("span",{class:"badge badge-outline-success absolute ltr:right-0 rtl:left-0 text-xs bg-success-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-danger w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Backup Files EOD"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"14:00"),A("span",{class:"badge badge-outline-danger absolute ltr:right-0 rtl:left-0 text-xs bg-danger-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-black w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Collect documents from Sara"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"16:00"),A("span",{class:"badge badge-outline-dark absolute ltr:right-0 rtl:left-0 text-xs bg-dark-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-warning w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Conference call with Marketing Manager."),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"17:00"),A("span",{class:"badge badge-outline-warning absolute ltr:right-0 rtl:left-0 text-xs bg-warning-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"In progress")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-info w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Rebooted Server"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"17:00"),A("span",{class:"badge badge-outline-info absolute ltr:right-0 rtl:left-0 text-xs bg-info-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-secondary w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Send contract details to Freelancer"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"18:00"),A("span",{class:"badge badge-outline-secondary absolute ltr:right-0 rtl:left-0 text-xs bg-secondary-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-primary w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Updated Server Logs"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"Just Now"),A("span",{class:"badge badge-outline-primary absolute ltr:right-0 rtl:left-0 text-xs bg-primary-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-success w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Send Mail to HR and Admin"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"2 min ago"),A("span",{class:"badge badge-outline-success absolute ltr:right-0 rtl:left-0 text-xs bg-success-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-danger w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Backup Files EOD"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"14:00"),A("span",{class:"badge badge-outline-danger absolute ltr:right-0 rtl:left-0 text-xs bg-danger-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-black w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Collect documents from Sara"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"16:00"),A("span",{class:"badge badge-outline-dark absolute ltr:right-0 rtl:left-0 text-xs bg-dark-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-warning w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Conference call with Marketing Manager."),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"17:00"),A("span",{class:"badge badge-outline-warning absolute ltr:right-0 rtl:left-0 text-xs bg-warning-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"In progress")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-info w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Rebooted Server"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"17:00"),A("span",{class:"badge badge-outline-info absolute ltr:right-0 rtl:left-0 text-xs bg-info-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Completed")]),A("div",{class:"flex items-center py-1.5 relative group"},[A("div",{class:"bg-secondary w-1.5 h-1.5 rounded-full ltr:mr-1 rtl:ml-1.5"}),A("div",{class:"flex-1"},"Send contract details to Freelancer"),A("div",{class:"ltr:ml-auto rtl:mr-auto text-xs text-white-dark dark:text-gray-500"},"18:00"),A("span",{class:"badge badge-outline-secondary absolute ltr:right-0 rtl:left-0 text-xs bg-secondary-light dark:bg-[#0e1726] opacity-0 group-hover:opacity-100"},"Pending")])],-1),wo={class:"border-t border-white-light dark:border-white/10"},ko={href:"javascript:;",class:"font-semibold group hover:text-primary p-4 flex items-center justify-center group"},Ao={class:"panel h-full"},Co={class:"flex items-center justify-between dark:text-white-light mb-5"},So=A("h5",{class:"font-semibold text-lg"},"Transactions",-1),Lo={class:"dropdown ltr:ml-auto rtl:mr-auto"},Po={href:"javascript:;"},Mo=["onClick"],Io=A("li",null,[A("a",{href:"javascript:;"},"View Report")],-1),To=A("li",null,[A("a",{href:"javascript:;"},"Edit Report")],-1),zo=A("li",null,[A("a",{href:"javascript:;"},"Mark as Done")],-1),Xo=[Io,To,zo],Eo={class:"space-y-6"},Yo=St('
SP
Shaun Park
10 Jan 1:00PM
+$36.11
',1),_o={class:"flex"},Fo={class:"shrink-0 grid place-content-center w-9 h-9 rounded-md bg-warning-light dark:bg-warning text-warning dark:text-warning-light"},Ro=A("div",{class:"px-3 flex-1"},[A("div",null,"Cash withdrawal"),A("div",{class:"text-xs text-white-dark dark:text-gray-500"},"04 Jan 1:00PM")],-1),Ho=A("span",{class:"text-danger text-base px-1 ltr:ml-auto rtl:mr-auto whitespace-pre"},"-$16.44",-1),Do={class:"flex"},Oo={class:"shrink-0 grid place-content-center w-9 h-9 rounded-md bg-danger-light dark:bg-danger text-danger dark:text-danger-light"},No=A("div",{class:"px-3 flex-1"},[A("div",null,"Amy Diaz"),A("div",{class:"text-xs text-white-dark dark:text-gray-500"},"10 Jan 1:00PM")],-1),Wo=A("span",{class:"text-success text-base px-1 ltr:ml-auto rtl:mr-auto whitespace-pre"},"+$66.44",-1),Bo={class:"flex"},Go={class:"shrink-0 grid place-content-center w-9 h-9 rounded-md bg-secondary-light dark:bg-secondary text-secondary dark:text-secondary-light"},Vo=A("div",{class:"px-3 flex-1"},[A("div",null,"Netflix"),A("div",{class:"text-xs text-white-dark dark:text-gray-500"},"04 Jan 1:00PM")],-1),jo=A("span",{class:"text-danger text-base px-1 ltr:ml-auto rtl:mr-auto whitespace-pre"},"-$32.00",-1),Uo=St('
DA
Daisy Anderson
10 Jan 1:00PM
+$10.08
',1),$o={class:"flex"},Zo={class:"shrink-0 grid place-content-center w-9 h-9 rounded-md bg-primary-light dark:bg-primary text-primary dark:text-primary-light"},qo=A("div",{class:"px-3 flex-1"},[A("div",null,"Electricity Bill"),A("div",{class:"text-xs text-white-dark dark:text-gray-500"},"04 Jan 1:00PM")],-1),Jo=A("span",{class:"text-danger text-base px-1 ltr:ml-auto rtl:mr-auto whitespace-pre"},"-$22.00",-1),Qo={class:"panel h-full p-0 border-0 overflow-hidden"},Ko={class:"p-6 bg-gradient-to-r from-[#4361ee] to-[#160f6b] min-h-[190px]"},tn={class:"flex justify-between items-center mb-6"},en=A("div",{class:"bg-black/50 rounded-full p-1 ltr:pr-3 rtl:pl-3 flex items-center text-white font-semibold"},[A("img",{class:"w-8 h-8 rounded-full border-2 border-white/50 block object-cover ltr:mr-1 rtl:ml-1",src:Li,alt:""}),J(" Alan Green ")],-1),an={type:"button",class:"ltr:ml-auto rtl:mr-auto flex items-center justify-between w-9 h-9 bg-black text-white rounded-md hover:opacity-80"},sn=A("div",{class:"text-white flex justify-between items-center"},[A("p",{class:"text-xl"},"Wallet Balance"),A("h5",{class:"ltr:ml-auto rtl:mr-auto text-2xl"},[A("span",{class:"text-white-light"},"$"),J("2953")])],-1),rn={class:"-mt-12 px-8 grid grid-cols-2 gap-2"},on={class:"bg-white rounded-md shadow px-4 py-2.5 dark:bg-[#060818]"},nn={class:"flex justify-between items-center mb-4 dark:text-white"},ln=A("div",{class:"btn w-full py-1 text-base shadow-none border-0 bg-[#ebedf2] dark:bg-black text-[#515365] dark:text-[#bfc9d4]"},"$97.99",-1),hn={class:"bg-white rounded-md shadow px-4 py-2.5 dark:bg-[#060818]"},cn={class:"flex justify-between items-center mb-4 dark:text-white"},dn=A("div",{class:"btn w-full py-1 text-base shadow-none border-0 bg-[#ebedf2] dark:bg-black text-[#515365] dark:text-[#bfc9d4]"},"$53.00",-1),gn=St('
Pending

Netflix

$ 13.85

BlueHost VPN

$ 15.66

',1),pn=Te({__name:"index",setup(B){const U=xi(),Lt=Zt(()=>{const tt=!!(U.state.theme==="dark"||U.state.isDarkMode),nt=U.state.rtlClass==="rtl";return{chart:{height:325,type:"area",fontFamily:"Nunito, sans-serif",zoom:{enabled:!1},toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{show:!0,curve:"smooth",width:2,lineCap:"square"},dropShadow:{enabled:!0,opacity:.2,blur:10,left:-7,top:22},colors:tt?["#2196f3","#e7515a"]:["#1b55e2","#e7515a"],markers:{discrete:[{seriesIndex:0,dataPointIndex:6,fillColor:"#1b55e2",strokeColor:"transparent",size:7},{seriesIndex:1,dataPointIndex:5,fillColor:"#e7515a",strokeColor:"transparent",size:7}]},labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xaxis:{axisBorder:{show:!1},axisTicks:{show:!1},crosshairs:{show:!0},labels:{offsetX:nt?2:0,offsetY:5,style:{fontSize:"12px",cssClass:"apexcharts-xaxis-title"}}},yaxis:{tickAmount:7,labels:{formatter:dt=>dt/1e3+"K",offsetX:nt?-30:-10,offsetY:0,style:{fontSize:"12px",cssClass:"apexcharts-yaxis-title"}},opposite:!!nt},grid:{borderColor:tt?"#191e3a":"#e0e6ed",strokeDashArray:5,xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}},padding:{top:0,right:0,bottom:0,left:0}},legend:{position:"top",horizontalAlign:"right",fontSize:"16px",markers:{width:10,height:10,offsetX:-2},itemMargin:{horizontal:10,vertical:5}},tooltip:{marker:{show:!0},x:{show:!1}},fill:{type:"gradient",gradient:{shadeIntensity:1,inverseColors:!1,opacityFrom:tt?.19:.28,opacityTo:.05,stops:tt?[100,100]:[45,100]}}}}),E=Dt([{name:"Income",data:[16800,16800,15500,17800,15500,17e3,19e3,16e3,15e3,17e3,14e3,17e3]},{name:"Expenses",data:[16500,17500,16200,17300,16e3,19500,16e3,17e3,16e3,19e3,18e3,19e3]}]),Z=Zt(()=>{const tt=!!(U.state.theme==="dark"||U.state.isDarkMode);return{chart:{type:"donut",height:460,fontFamily:"Nunito, sans-serif"},dataLabels:{enabled:!1},stroke:{show:!0,width:25,colors:tt?"#0e1726":"#fff"},colors:tt?["#5c1ac3","#e2a03f","#e7515a","#e2a03f"]:["#e2a03f","#5c1ac3","#e7515a"],legend:{position:"bottom",horizontalAlign:"center",fontSize:"14px",markers:{width:10,height:10,offsetX:-2},height:50,offsetY:20},plotOptions:{pie:{donut:{size:"65%",background:"transparent",labels:{show:!0,name:{show:!0,fontSize:"29px",offsetY:-10},value:{show:!0,fontSize:"26px",color:tt?"#bfc9d4":void 0,offsetY:16,formatter:nt=>nt},total:{show:!0,label:"Total",color:"#888ea8",fontSize:"29px",formatter:nt=>nt.globals.seriesTotals.reduce(function(dt,ot){return dt+ot},0)}}}}},labels:["Apparel","Sports","Others"],states:{hover:{filter:{type:"none",value:.15}},active:{filter:{type:"none",value:.15}}}}}),F=Dt([985,737,270]),bt=Zt(()=>(U.state.theme==="dark"||U.state.isDarkMode,{chart:{height:160,type:"bar",fontFamily:"Nunito, sans-serif",toolbar:{show:!1},stacked:!0,stackType:"100%"},dataLabels:{enabled:!1},stroke:{show:!0,width:1},colors:["#e2a03f","#e0e6ed"],responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],xaxis:{labels:{show:!1},categories:["Sun","Mon","Tue","Wed","Thur","Fri","Sat"]},yaxis:{show:!1},fill:{opacity:1},plotOptions:{bar:{horizontal:!1,columnWidth:"25%"}},legend:{show:!1},grid:{show:!1,xaxis:{lines:{show:!1}},padding:{top:10,right:-20,bottom:-20,left:-20}}})),_=Dt([{name:"Sales",data:[44,55,41,67,22,43,21]},{name:"Last Week",data:[13,23,20,8,13,27,33]}]),rt=Zt(()=>{const tt=!!(U.state.theme==="dark"||U.state.isDarkMode);return{chart:{height:290,type:"area",fontFamily:"Nunito, sans-serif",sparkline:{enabled:!0}},stroke:{curve:"smooth",width:2},colors:tt?["#00ab55"]:["#00ab55"],labels:["1","2","3","4","5","6","7","8","9","10"],yaxis:{min:0,show:!1},grid:{padding:{top:125,right:0,bottom:0,left:0}},fill:{opacity:1,type:"gradient",gradient:{type:"vertical",shadeIntensity:1,inverseColors:!1,opacityFrom:.3,opacityTo:.05,stops:[100,100]}},tooltip:{x:{show:!1}}}}),vt=Dt([{name:"Sales",data:[28,40,36,52,38,60,38,52,36,40]}]);return(tt,nt)=>{const dt=oe("Popper"),ot=oe("router-link"),Yt=oe("perfect-scrollbar");return ht(),ct("div",null,[A("div",ss,[A("div",rs,[A("div",os,[A("div",ns,[ls,A("div",hs,[j(dt,{placement:Xt(U).state.rtlClass==="rtl"?"bottom-start":"bottom-end",offsetDistance:"0",class:"align-middle"},{content:st(({close:Q})=>[A("ul",{onClick:Pt=>Q()},fs,8,ds)]),default:st(()=>[A("a",cs,[j(ne,{class:"text-black/70 dark:text-white/70 hover:!text-primary"})])]),_:1},8,["placement"])])]),xs,A("div",bs,[j(Xt(Et),{height:"325",options:Lt.value,series:E.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},{default:st(()=>[ms]),_:1},8,["options","series"])])]),A("div",vs,[ys,A("div",null,[j(Xt(Et),{height:"460",options:Z.value,series:F.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},{default:st(()=>[ws]),_:1},8,["options","series"])])])]),A("div",ks,[A("div",As,[A("div",Cs,[A("h5",Ss,Le(tt.$t("pendingShipment")),1)]),A("div",Ls,[A("table",null,[Ps,A("tbody",null,[A("tr",Ms,[Is,Ts,A("td",null,[j(ot,{to:"/apps/invoice/preview"},{default:st(()=>[J("#46894")]),_:1})]),zs,Xs]),A("tr",Es,[Ys,_s,A("td",null,[j(ot,{to:"/apps/invoice/preview"},{default:st(()=>[J("#76894")]),_:1})]),Fs,Rs]),A("tr",Hs,[Ds,Os,A("td",null,[j(ot,{to:"/apps/invoice/preview"},{default:st(()=>[J("#66894")]),_:1})]),Ns,Ws]),A("tr",Bs,[Gs,Vs,A("td",null,[j(ot,{to:"/apps/invoice/preview"},{default:st(()=>[J("#75844")]),_:1})]),js,Us]),A("tr",$s,[Zs,qs,A("td",null,[j(ot,{to:"/apps/invoice/preview"},{default:st(()=>[J("#46894")]),_:1})]),Js,Qs])])])])]),A("div",Ks,[A("div",tr,[A("h5",er,Le(tt.$t("pendingStorage")),1)]),A("div",ir,[A("table",null,[ar,A("tbody",null,[A("tr",sr,[rr,or,nr,lr,A("td",null,[A("a",hr,[j(Vt,{class:"rtl:rotate-180 ltr:mr-1 rtl:ml-1"}),J(" Direct ")])])]),A("tr",cr,[dr,gr,ur,pr,A("td",null,[A("a",fr,[j(Vt,{class:"rtl:rotate-180 ltr:mr-1 rtl:ml-1"}),J(" Google ")])])]),A("tr",xr,[br,mr,vr,yr,A("td",null,[A("a",wr,[j(Vt,{class:"rtl:rotate-180 ltr:mr-1 rtl:ml-1"}),J(" Ads ")])])]),A("tr",kr,[Ar,Cr,Sr,Lr,A("td",null,[A("a",Pr,[j(Vt,{class:"rtl:rotate-180 ltr:mr-1 rtl:ml-1"}),J(" Email ")])])]),A("tr",Mr,[Ir,Tr,zr,Xr,A("td",null,[A("a",Er,[j(Vt,{class:"rtl:rotate-180 ltr:mr-1 rtl:ml-1"}),J(" Referral ")])])])])])])])]),A("div",Yr,[A("div",_r,[A("div",Fr,[Rr,A("div",Hr,[A("div",Dr,[j(Bi)])])]),A("div",null,[j(Xt(Et),{height:"160",options:bt.value,series:_.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},{default:st(()=>[Or]),_:1},8,["options","series"])])]),A("div",Nr,[A("div",Wr,[Br,A("div",Gr,[j(dt,{placement:Xt(U).rtlClass==="rtl"?"bottom-start":"bottom-end",offsetDistance:"0",class:"align-middle"},{content:st(({close:Q})=>[A("ul",{onClick:Pt=>Q()},qr,8,jr)]),default:st(()=>[A("a",Vr,[j(ne,{class:"w-5 h-5 text-black/70 dark:text-white/70 hover:!text-primary"})])]),_:1},8,["placement"])])]),A("div",Jr,[A("div",Qr,[A("div",Kr,[A("div",to,[j(qi)])]),eo]),A("div",io,[A("div",ao,[A("div",so,[j(sa)])]),ro]),A("div",oo,[A("div",no,[A("div",lo,[j(ua)])]),ho])])]),A("div",co,[A("div",go,[A("div",uo,[A("div",po,[j(va)])]),fo]),j(Xt(Et),{height:"290",options:rt.value,series:vt.value,class:"bg-white dark:bg-black rounded-lg overflow-hidden"},{default:st(()=>[xo]),_:1},8,["options","series"])])]),A("div",bo,[A("div",mo,[vo,j(Yt,{options:{swipeEasing:!0,wheelPropagation:!1},class:"relative mb-4 h-[290px] ltr:pr-3 rtl:pl-3 ltr:-mr-3 rtl:-ml-3"},{default:st(()=>[yo]),_:1}),A("div",wo,[A("a",ko,[J(" View All "),j(Sa,{class:"rtl:rotate-180 group-hover:translate-x-1 rtl:group-hover:-translate-x-1 transition duration-300 ltr:ml-1 rtl:mr-1"})])])]),A("div",Ao,[A("div",Co,[So,A("div",Lo,[j(dt,{placement:Xt(U).state.rtlClass==="rtl"?"bottom-start":"bottom-end",offsetDistance:"0",class:"align-middle"},{content:st(({close:Q})=>[A("ul",{onClick:Pt=>Q()},Xo,8,Mo)]),default:st(()=>[A("a",Po,[j(ne,{class:"text-black/70 dark:text-white/70 hover:!text-primary"})])]),_:1},8,["placement"])])]),A("div",null,[A("div",Eo,[Yo,A("div",_o,[A("span",Fo,[j(za)]),Ro,Ho]),A("div",Do,[A("span",Oo,[j(bi,{class:"w-6 h-6"})]),No,Wo]),A("div",Bo,[A("span",Go,[j(Ra)]),Vo,jo]),Uo,A("div",$o,[A("span",Zo,[j(Ga)]),qo,Jo])])])]),A("div",Qo,[A("div",Ko,[A("div",tn,[en,A("button",an,[j(Ja,{class:"w-6 h-6 m-auto"})])]),sn]),A("div",rn,[A("div",on,[A("span",nn,[J("Received "),j(Pe,{class:"w-4 h-4 text-success rotate-180"})]),ln]),A("div",hn,[A("span",cn,[J("Spent "),j(Pe,{class:"w-4 h-4 text-danger"})]),dn])]),gn])])])])}}});export{pn as default};