From 236e140d0edc27d3b2500ec5abe8cd7445bd6474 Mon Sep 17 00:00:00 2001 From: pvictor Date: Sun, 9 Sep 2018 21:20:28 +0200 Subject: [PATCH] update ApexCharts to 1.4.12 --- inst/htmlwidgets/apexcharter.yaml | 2 +- inst/htmlwidgets/lib/apexcharts-1.4/apexcharts.min.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inst/htmlwidgets/apexcharter.yaml b/inst/htmlwidgets/apexcharter.yaml index 18b0889..7d561dd 100644 --- a/inst/htmlwidgets/apexcharter.yaml +++ b/inst/htmlwidgets/apexcharter.yaml @@ -1,5 +1,5 @@ dependencies: - name: apexcharts - version: 1.4.6 + version: 1.4.12 src: htmlwidgets/lib/apexcharts-1.4 script: apexcharts.min.js diff --git a/inst/htmlwidgets/lib/apexcharts-1.4/apexcharts.min.js b/inst/htmlwidgets/lib/apexcharts-1.4/apexcharts.min.js index 9f7edaa..3357519 100644 --- a/inst/htmlwidgets/lib/apexcharts-1.4/apexcharts.min.js +++ b/inst/htmlwidgets/lib/apexcharts-1.4/apexcharts.min.js @@ -1,2 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ApexCharts",[],e):"object"==typeof exports?exports.ApexCharts=e():t.ApexCharts=e()}(this,function(){return function(t){function e(a){if(i[a])return i[a].exports;var s=i[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=165)}([function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":n})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w,u=c.globals.dom.Paper.rect();return u.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,fill:r,opacity:n,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":h}),u}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w,a=i.globals.dom.Paper.circle(2*t);return null!==e&&a.attr(e),a}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,r=t.strokeWidth,n=t.fill,o=t.fillOpacity,l=void 0===o?1:o,h=t.strokeOpacity,c=void 0===h?1:h,u=t.classes,d=t.strokeLinecap,f=void 0===d?null:d,p=t.strokeDashArray,g=void 0===p?0:p,x=this.w;return null===f&&(f=x.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 "+x.globals.gridHeight),x.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":l,stroke:s,"stroke-opacity":c,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":g,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=e.globals.dom.Paper.group();return null!==t&&i.attr(t),i}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return a=null===i?["L",t,e].join(" "):[i,t].join(" "),a}},{key:"curve",value:function(t,e,i,a,s,r){return["C",t,e,i,a,s,r].join(" ")}},{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,n){var o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";return o&&(l="a"),[l,t,e,i,a,s,r,n].join(" ")}},{key:"renderPaths",value:function(t){var e=t.i,i=t.realIndex,a=t.pathFrom,s=t.pathTo,r=t.stroke,n=t.strokeWidth,o=t.strokeLinecap,l=t.fill,c=t.animationDelay,d=t.initialSpeed,f=t.dataChangeSpeed,p=(t.hideStrokesInChange,t.className),g=t.id,x=this.w,v=new h.default(this.ctx),b=new u.default(this.ctx),m=this.w.config.chart.animations.enabled,y=m&&this.w.config.chart.animations.dynamicAnimation.enabled,w=void 0;w=!(m&&!x.globals.resized||y&&x.globals.dataChanged)?s:a;var k=x.config.stroke.dashArray,S=0;S=Array.isArray(k)?k[i]:x.config.stroke.dashArray;var A=this.drawPath({d:w,stroke:r,strokeWidth:n,fill:l,fillOpacity:1,classes:p,strokeLinecap:o,strokeDashArray:S});if(A.attr("id",g+"-"+e),A.attr("index",i),"none"!==x.config.states.normal.filter.type)v.getDefaultFilter(A,x.config.states.normal.filter.type,x.config.states.normal.filter.value);else if(x.config.chart.dropShadow.enabled&&(!x.config.chart.dropShadow.enabledSeries||x.config.chart.dropShadow.enabledSeries&&-1!==x.config.chart.dropShadow.enabledSeries.indexOf(i))){var C=x.config.chart.dropShadow;v.dropShadow(A,C)}return A.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,A)),A.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,A)),A.node.addEventListener("mousedown",this.pathMouseDown.bind(this,A)),A.node.addEventListener("touchstart",this.pathMouseDown.bind(this,A)),A.attr({pathTo:s,pathFrom:a}),!m||x.globals.resized||x.globals.dataChanged||b.animatePathsGradually({el:A,pathFrom:a,pathTo:s,speed:d,delay:c,strokeWidth:n}),y&&x.globals.dataChanged&&b.animatePathsGradually({el:A,pathFrom:a,pathTo:s,speed:f,strokeWidth:n}),A}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this.w.globals.dom.Paper.pattern(e,i,function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?r.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&r.circle(e).fill("none").stroke({color:a,width:s})})}},{key:"drawGradient",value:function(t,e,i,a,s){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=this.w;e=o.default.hexToRgba(e,a),i=o.default.hexToRgba(i,s);var h=0,c=1,u=1;null!==n&&(h=void 0!==n[0]?n[0]/100:0,c=void 0!==n[1]?n[1]/100:1,u=void 0!==n[2]?n[2]/100:1);var d=!("donut"!==l.config.chart.type&&"pie"!==l.config.chart.type&&"bubble"!==l.config.chart.type),f=l.globals.dom.Paper.gradient(d?"radial":"linear",function(t){t.at(h,e,a),t.at(c,i,s),t.at(u,i,s)});if(d){var p=l.globals.gridWidth/2,g=l.globals.gridHeight/2;"bubble"!==l.config.chart.type?f.attr({gradientUnits:"userSpaceOnUse",cx:p,cy:g,r:r}):f.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?f.from(0,0).to(0,1):"diagonal"===t?f.from(0,0).to(1,1):"horizontal"===t?f.from(0,1).to(1,1):"diagonal2"===t&&f.from(0,1).to(2,2);return f}},{key:"drawText",value:function(t){var e=this.w,i=t.x,a=t.y,s=t.text,r=t.textAnchor,n=t.fontSize,o=t.foreColor,l=t.opacity;r||(r="start"),o||(o=e.config.chart.foreColor);var h=void 0;return h=Array.isArray(s)?e.globals.dom.Paper.text(function(t){for(var e=0;e0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle").members,u=!0,d=!1,f=void 0;try{for(var p,g=l[Symbol.iterator]();!(u=(p=g.next()).done);u=!0){var x=p.value;x.node.setAttribute("selected","false"),a.getDefaultFilter(x)}}catch(t){d=!0,f=t}finally{try{!u&&g.return&&g.return()}finally{if(d)throw f}}var v=!0,b=!1,m=void 0;try{for(var y,w=c[Symbol.iterator]();!(v=(y=w.next()).done);v=!0){var k=y.value;k.node.setAttribute("selected","false"),a.getDefaultFilter(k)}}catch(t){b=!0,m=t}finally{try{!v&&w.return&&w.return()}finally{if(b)throw m}}}t.node.setAttribute("selected","true"),n="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if("true"===n){var S=i.config.states.active.filter;"none"!==S&&(a.applyFilter(t,S.type,S.value),"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,config:i.config,globals:i.globals}),this.ctx.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,config:i.config,globals:i.globals}]))}else"none"!==i.config.states.active.filter.type&&a.getDefaultFilter(t),"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,config:i.config,globals:i.globals}),this.ctx.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,config:i.config,globals:i.globals}]);void 0!==this.w.config.chart.selection.selectedPoints&&this.w.config.chart.selection.selectedPoints(i.globals.selectedDataPoints)}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e){var i=this.w,a=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,foreColor:"#fff",opacity:0});i.globals.dom.Paper.add(a);var s=a.bbox();return a.node.parentNode.removeChild(a.node),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(t.textContent=e,e.length>0&&t.getSubStringLength(0,e.length)>=i){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i)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])}}]),t}();e.default=d},function(t,e,i){"use strict";function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:void 0;if("#"===e[0]&&"r"===e[0]||(e=this.getHexColorFromName(e)),"number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!==e[0]&&"#"!==e[0]||"string"!=typeof i&&void 0!==i)return null;var a=(parseInt,Math.round),s=e.length>9,s="string"==typeof i?i.length>9||"c"===i&&!s:s,r=t<0,t=r?-1*t:t,i=i&&"c"!==i?i:r?"#000000":"#FFFFFF",n=this.sbcRip(e),o=this.sbcRip(i);return n&&o?s?"rgb("+a((o[0]-n[0])*t+n[0])+","+a((o[1]-n[1])*t+n[1])+","+a((o[2]-n[2])*t+n[2])+(n[3]<0&&o[3]<0?")":","+(n[3]>-1&&o[3]>-1?a(1e4*((o[3]-n[3])*t+n[3]))/1e4:o[3]<0?n[3]:o[3])+")"):"#"+(4294967296+16777216*(n[3]>-1&&o[3]>-1?a(255*((o[3]-n[3])*t+n[3])):o[3]>-1?a(255*o[3]):n[3]>-1?a(255*n[3]):255)+65536*a((o[0]-n[0])*t+n[0])+256*a((o[1]-n[1])*t+n[1])+a((o[2]-n[2])*t+n[2])).toString(16).slice(n[3]>-1||o[3]>-1?1:3):null}},{key:"sbcRip",value:function(t){var e=t.length,i=new Object,a=parseInt,s=Math.round;if(e>9){if(t=t.split(","),t.length<3||t.length>4)return null;i[0]=a(t[0].slice(4)),i[1]=a(t[1]),i[2]=a(t[2]),i[3]=t[3]?parseFloat(t[3]):-1}else{if(8===e||6===e||e<4)return null;e<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(e>4?t[4]+""+t[4]:"")),t=a(t.slice(1),16),i[0]=t>>16&255,i[1]=t>>8&255,i[2]=255&t,i[3]=9===e||5===e?s((t>>24&255)/255*1e4)/1e4:-1}return i}},{key:"getHexColorFromName",value:function(t){var e=document.createElement("div");e.style.color=t;var i=window.getComputedStyle(document.body.appendChild(e)).color.match(/\d+/g).map(function(t){return parseInt(t,10)});return document.body.removeChild(e),i.length>=3&&"#"+((1<<24)+(i[0]<<16)+(i[1]<<8)+i[2]).toString(16).substr(1)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===(void 0===t?"undefined":r(t))&&!Array.isArray(t)&&null!=t}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i1?(e.shift(),this.addProps(a,e,i)):t[e[0]]=i,t}},{key:"clone",value:function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?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;a-1}},{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)}}]),t}();e.default=o},function(t,e,i){"use strict";var a=i(41)("wks"),s=i(24),r=i(3).Symbol,n="function"==typeof r;(t.exports=function(t){return a[t]||(a[t]=n&&r[t]||(n?r:s)("Symbol."+t))}).store=a},function(t,e,i){"use strict";var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(t,e,i){"use strict";var a=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(t,e,i){"use strict";var a=i(3),s=i(4),r=i(12),n=i(14),o=i(13),l=function t(e,i,l){var h,c,u,d,f=e&t.F,p=e&t.G,g=e&t.S,x=e&t.P,v=e&t.B,b=p?a:g?a[i]||(a[i]={}):(a[i]||{}).prototype,m=p?s:s[i]||(s[i]={}),y=m.prototype||(m.prototype={});p&&(l=i);for(h in l)c=!f&&b&&void 0!==b[h],u=(c?b:l)[h],d=v&&c?o(u,a):x&&"function"==typeof u?o(Function.call,u):u,b&&n(b,h,u,e&t.U),m[h]!=u&&r(m,h,d),x&&y[h]!=u&&(y[h]=u)};a.core=s,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,i){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:.5;switch(e){case"none":this.addNormalFilter(t);break;case"lighten":this.addLightenFilter(t,{intensity:i});break;case"darken":this.addDarkenFilter(t,{intensity:i});break;case"desaturate":this.addDesaturateFilter(t)}}},{key:"addShadow",value:function(t,e){var i=e.blur,a=e.top,s=e.left,r=e.opacity,n=t.flood("black",r).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(i).merge(t.source);return t.blend(t.source,n)}},{key:"dropShadow",value:function(t,e){var i=e.top,a=e.left,s=e.blur,r=e.opacity;return t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),t.filter(function(t){var e=null;e=n.default.isSafari()||n.default.isFirefox()||n.default.isIE()?t.flood("black",r).composite(t.sourceAlpha,"in").offset(a,i).gaussianBlur(s):t.flood("black",r).composite(t.sourceAlpha,"in").offset(a,i).gaussianBlur(s).merge(t.source),t.blend(t.source,e)}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),t}}]),t}();e.default=o},function(t,e,i){"use strict";var a=i(8);t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":a(t))?null!==t:"function"==typeof t}},function(t,e,i){"use strict";var a=i(7),s=i(53),r=i(43),n=Object.defineProperty;e.f=i(10)?Object.defineProperty:function(t,e,i){if(a(t),e=r(e,!0),a(i),s)try{return n(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){"use strict";t.exports=!i(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},function(t,e,i){"use strict";var a=i(9),s=i(22);t.exports=i(10)?function(t,e,i){return a.f(t,e,s(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){"use strict";var a=i(17);t.exports=function(t,e,i){if(a(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,a){return t.call(e,i,a)};case 3:return function(i,a,s){return t.call(e,i,a,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){"use strict";var a=i(3),s=i(12),r=i(11),n=i(24)("src"),o=Function.toString,l=(""+o).split("toString");i(4).inspectSource=function(t){return o.call(t)},(t.exports=function(t,e,i,o){var h="function"==typeof i;h&&(r(i,"name")||s(i,"name",e)),t[e]!==i&&(h&&(r(i,n)||s(i,n,t[e]?""+t[e]:l.join(String(e)))),t===a?t[e]=i:o?t[e]?t[e]=i:s(t,e,i):(delete t[e],s(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[n]||o.call(this)})},function(t,e,i){"use strict";var a=i(37),s=i(34);t.exports=function(t){return a(s(t))}},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;is?a:s,n=t.image,l=0,h=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(l=i.fill.image.width+1,h=i.fill.image.height):(l=r+1,h=r):(l=t.width,h=t.height);var c=document.createElementNS(e.globals.svgNS,"pattern");o.default.setAttrs(c,{id:t.patternID,patternUnits:"userSpaceOnUse",width:l+"px",height:h+"px"});var u=document.createElementNS(e.globals.svgNS,"image");c.appendChild(u),u.setAttributeNS("http://www.w3.org/1999/xlink","href",n),o.default.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:h+"px"}),u.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return"bar"===e.config.chart.type&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t,e){var i=this.w;this.opts=e;var a=this.w.config,s=void 0,r=void 0,n=void 0;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors(),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity,c=h.default.hexToRgba(o[this.seriesIndex],l),u=o[this.seriesIndex];return"pattern"===a.fill.type&&(r=this.handlePatternFill(r,u,l,c)),"gradient"===a.fill.type&&(n=this.handleGradientFill(n,u,l)),a.fill.image.src.length>0&&"image"===a.fill.type?e.seriesNumber0?s(a(t),9007199254740991):0}},function(t,e,i){"use strict";var a=0,s=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+s).toString(36))}},function(t,e,i){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(t,e){for(var i=0;i-1||e.indexOf("NaN")>-1)&&(e="M 0 "+n.globals.gridHeight,a=1),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 "+n.globals.gridHeight,a=1),t.plot(e).animate(1,n.globals.easing,r).plot(e).animate(a,n.globals.easing,r).plot(i)}},{key:"showDelayedElements",value:function(){var t=this.w,e=t.config.chart.animations,i=e.speed,a=e.animateGradually.enabled,s=e.animateGradually.delay;if(e.enabled&&!t.globals.resized)for(var r=0;r=t.from&&i<=t.to&&a[e].classList.remove("legend-mouseover-inactive")}}(n)}else"mouseout"===t.type&&s()}},{key:"getActiveSeriesIndex",value:function(){var t=this.w,e=0;if(t.globals.series.length>1)for(var i=t.globals.series.map(function(e,i){return e.length>0&&"bar"!==t.config.series[i].type&&"column"!==t.config.series[i].type?i:-1}),a=0;a1)for(var i=t.config.series.map(function(t,e){return t.data&&t.data.length>0?e:-1}),a=0;a0)for(var a=i.length-1;a>=0;a--)t(i,a,"line");var s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-series");if(s.length>0)for(var r=s.length-1;r>=0;r--)t(s,r,"area");var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series .apexcharts-series");if(n.length>0)for(var o=0;o0)for(var h=0;h0)for(var p=0;p0)for(var m=0;m0&&(s=this.getxAxisTimeScaleLabelsCoords()),a=this.getxAxisTitleCoords(),r=this.getyAxisTitleCoords(),this.isBarHorizontal,e.config.xaxis.labels.show||(s={height:0,width:0}),e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(t,i){e.globals.yLabelsCoords.push({width:n[i].width,index:i}),e.globals.yTitleCoords.push({width:r[i].width,index:i})}),this.xAxisHeight=(s.height+a.height)*e.globals.lineHeightRatio+15,this.xAxisWidth=s.width,this.xAxisHeight-a.height>e.config.xaxis.labels.maxHeight&&(this.xAxisHeight=e.config.xaxis.labels.maxHeight),e.config.xaxis.floating&&(this.xAxisHeight=0),i.xAxisLabelsHeight=this.xAxisHeight,i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.dataXY&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,this.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX,this.isBarHorizontal?(this.yAxisWidth=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15,this.yAxisWidth>e.config.yaxis[0].labels.maxWidth&&(this.yAxisWidth=e.config.yaxis[0].labels.maxWidth)):this.yAxisWidth=this.getTotalYAxisWidth();var o=this.yAxisWidth,l=this.xAxisHeight,h=10;switch(e.config.grid.show||(o=0,l=35),this.isSparkline=e.config.chart.sparkline.enabled,this.isSparkline&&(t={height:0,width:0},l=0,o=0,h=0),e.config.legend.position){case"bottom":i.translateY=h,i.translateX=o,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o;break;case"top":i.translateY=t.height+h,i.translateX=o,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o;break;case"left":i.translateY=h,i.translateX=t.width+o,i.gridHeight=i.svgHeight-l,i.gridWidth=i.svgWidth-t.width-o;break;case"right":i.translateY=h,i.translateX=o,i.gridHeight=i.svgHeight-l,i.gridWidth=i.svgWidth-t.width-o;break;default:i.translateY=h,i.translateX=o,i.gridHeight=i.svgHeight-t.height-l,i.gridWidth=i.svgWidth}var c=0;e.config.chart.scroller.enabled&&e.globals.dataXY&&(c=e.config.chart.scroller.height),i.gridHeight=i.gridHeight-e.config.grid.padding.top-e.config.grid.padding.bottom-c,i.gridWidth=i.gridWidth-e.config.grid.padding.left-e.config.grid.padding.right,i.translateX=i.translateX+e.config.grid.padding.left,i.translateY=i.translateY+e.config.grid.padding.top,this.isBarHorizontal||this.setGridXPosForDualYAxis(r,n),this.setYAxisXPosition(n,r)}},{key:"setGridCoordsForNonAxisCharts",value:function(t){var e=this.w,i=e.globals,a=4*e.config.legend.markers.size+e.config.legend.itemMargin.horizontal,s=15;switch("pie"===e.config.chart.type||"donut"===e.config.chart.type?s+=e.config.plotOptions.pie.offsetY:"radialBar"===e.config.chart.type&&(s+=e.config.plotOptions.radialBar.offsetY),e.config.legend.position){case"bottom":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=s,i.translateX=(i.svgWidth-i.gridWidth)/2;break;case"top":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=t.height+s,i.translateX=(i.svgWidth-i.gridWidth)/2;break;case"left":i.gridWidth=i.svgWidth-t.width-a,i.gridHeight=i.gridWidth,i.translateY=s,i.translateX=t.width+a;break;case"right":i.gridWidth=i.svgWidth-t.width-a,i.gridHeight=i.gridWidth,i.translateY=s,i.translateX=5;break;default:i.gridHeight=i.svgHeight-t.height-30,i.gridWidth=i.gridHeight,i.translateY=s,i.translateX=(i.svgWidth-i.gridWidth)/2}}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w;i.config.yaxis.map(function(a,s){i.globals.ignoreYAxisIndexes.includes(s)||i.config.yaxis[s].floating||a.opposite&&(i.globals.translateX=i.globals.translateX-(e[s].width+t[s].width)-parseInt(i.config.yaxis[s].labels.style.fontSize)/1.2)})}},{key:"titleSubtitleOffset",value:function(){var t=this.w,e=t.globals,i=this.isSparkline?0:10;void 0!==t.config.title.text?i+=t.config.title.margin:i+=this.isSparkline?0:5,void 0!==t.config.subtitle.text?i+=t.config.subtitle.margin:i+=this.isSparkline?0:5,t.config.legend.show&&"bottom"===t.config.legend.position&&!t.config.legend.floating&&t.config.series.length>1&&(i+=10);var a=this.getMainTitleCoords(),s=this.getSubTitleCoords();e.gridHeight=e.gridHeight-a.height-s.height-i,e.translateY=e.translateY+a.height+s.height+i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0;return t.globals.yLabelsCoords.map(function(i,a){var s=t.config.yaxis[a].floating;i.width>0&&!s?(e+=i.width,t.globals.ignoreYAxisIndexes.includes(a)&&(e-=i.width)):e+=s?0:5}),t.globals.yTitleCoords.map(function(i,a){var s=t.config.yaxis[a].floating;i.width>0&&!s?(e=e+i.width+parseInt(t.config.yaxis[a].title.style.fontSize),t.globals.ignoreYAxisIndexes.includes(a)&&(e-=i.width)):e+=s?0:5}),e}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t=this.w,e=t.globals.timelineLabels.slice(),i=e.map(function(t){return t.value}),a=i.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0),s=new o.default(this.ctx),r=s.drawText({x:-200,y:-200,text:a,textAnchor:"start",fontSize:t.config.xaxis.labels.style.fontSize,foreColor:"#fff",opacity:0});t.globals.dom.Paper.add(r);var n=r.node.getBoundingClientRect();return 1.05*n.width*i.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),r.node.parentNode.removeChild(r.node),{width:n.width,height:n.height}}},{key:"getxAxisLabelsCoords",value:function(){var t=this.w,e=t.globals.labels.slice(),i="left"!==t.config.legend.position||"right"!==t.config.legend.position||t.config.legend.floating?0:this.lgRect.width,a=e.reduce(function(t,e){return t.length>e.length?t:e},0),s=t.globals.xLabelFormatter;a=new h.default(this.ctx).xLabelFormat(s,a);var r=new o.default(this.ctx),n=r.drawText({x:-200,y:-200,text:a,textAnchor:"start",fontSize:t.config.xaxis.labels.style.fontSize,foreColor:"#fff",opacity:0});t.globals.dom.Paper.add(n);var l=n.node.getBoundingClientRect(),c={width:l.width,height:l.height};return c.width*e.length>t.globals.svgWidth-i-this.yAxisWidth&&0!==t.config.xaxis.labels.rotate?this.isBarHorizontal||(t.globals.rotateXLabels=!0,n.attr("transform","rotate("+t.config.xaxis.labels.rotate+" 0 0)"),l=n.node.getBoundingClientRect(),c.height=l.height/1.65):t.globals.rotateXLabels=!1,n.node.parentNode.removeChild(n.node),{width:c.width,height:c.height}}},{key:"setYAxisXPosition",value:function(t,e){var i=this,a=this.w,s=0,r=0,n=0,o=4;this.multipleYs=!1,a.config.yaxis.length>1&&(this.multipleYs=!0),a.config.yaxis.map(function(l,h){var c=t[h].width+e[h].width,u=new f.default(i.ctx),d=u.xPaddingForYAxisTitle(h,{width:t[h].width},{width:e[h].width},l.opposite);if(a.config.yaxis.length>1?c+=Math.abs(d.padd):void 0===l.title.text?c=c+Math.abs(d.padd)+15:c+=Math.abs(d.padd),l.opposite)r=a.globals.gridWidth+a.globals.translateX+o+26+(a.globals.series.length-a.globals.collapsedSeries.length),o+=c,a.globals.translateYAxisX[h]=r-l.labels.offsetX;else{var p=c;a.globals.ignoreYAxisIndexes.includes(h)&&(p=0),s=i.multipleYs?a.globals.translateX-c-n+5+parseInt(a.config.yaxis[h].labels.style.fontSize)/1.2+l.labels.offsetX+5:a.globals.translateX-c+t[h].width+l.labels.offsetX+2,n+=p,a.globals.translateYAxisX[h]=s}})}},{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],a=10;return e.config.yaxis.map(function(s,r){if(s.labels.show&&e.globals.yAxisScale[r].result.length){var n=e.globals.yLabelFormatters[r],l=n(e.globals.yAxisScale[r].niceMax);if(t.isBarHorizontal){a=0;l=e.globals.labels.slice().reduce(function(t,e){return t.length>e.length?t:e},0),l=n(l)}var h=new o.default(t.ctx),c=h.drawText({x:0,y:0,text:l,textAnchor:"start",fontSize:s.labels.style.fontSize,foreColor:"#fff",opacity:0});e.globals.dom.Paper.add(c);var u=c.node.getBoundingClientRect();c.node.parentNode.removeChild(c.node),i.push({width:u.width+a,height:u.height})}else i.push({width:0,height:0})}),i}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new o.default(this.ctx),s=a.drawText({x:0,y:0,text:t.config.xaxis.title.text,textAnchor:"start",fontSize:t.config.xaxis.title.style.fontSize,foreColor:"#fff",opacity:0});t.globals.dom.Paper.add(s);var r=s.node.getBoundingClientRect();e=r.width,i=r.height,s.node.parentNode.removeChild(s.node)}return{width:e,height:i}}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(a,s){if(void 0!==a.title.text){var r=new o.default(t.ctx),n=r.drawText({x:0,y:0,text:a.title.text,textAnchor:"middle",fontSize:a.title.style.fontSize,foreColor:"#fff",opacity:0});n.attr("transform","rotate(-90 0 0)"),e.globals.dom.Paper.add(n);var l=n.node.getBoundingClientRect();i.push({width:l.width,height:l.height}),n.node.parentNode.removeChild(n.node)}else i.push({width:0,height:0})}),i}},{key:"getMainTitleCoords",value:function(){var t=this.w,e=0,i=0,a=t.globals.dom.baseEl.querySelector(".apexcharts-title-text");if(null!==a&&!t.config.title.floating){var s=a.getBoundingClientRect();e=s.width,i=s.height+5}return{width:e,height:i}}},{key:"getSubTitleCoords",value:function(){var t=this.w,e=0,i=0,a=t.globals.dom.baseEl.querySelector(".apexcharts-subtitle-text");if(null!==a&&!t.config.subtitle.floating){var s=a.getBoundingClientRect();e=s.width,i=s.height+5}return{width:e,height:i}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend"),i=Object.assign({},u.default.getBoundingClientRect(e));return i.height=i.height+t.config.legend.containerMargin.top+t.config.legend.containerMargin.bottom,i.width=i.width+t.config.legend.containerMargin.left+t.config.legend.containerMargin.right,null===e||t.config.legend.floating?this.lgRect={x:0,y:0,height:0,width:0}:this.lgRect=i,this.lgRect}}]),t}();t.exports=p},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;ie.length?t:e},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e,t.globals.yLabelFormatters[0]=function(t){return t}}}}]),t}();e.default=c},function(t,e,i){"use strict";var a=i(2)("unscopables"),s=Array.prototype;void 0==s[a]&&i(12)(s,a,{}),t.exports=function(t){s[a][t]=!0}},function(t,e,i){"use strict";var a=i(18),s=i(2)("toStringTag"),r="Arguments"==a(function(){return arguments}()),n=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=n(e=Object(t),s))?i:r?a(e):"Object"==(o=a(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e,i){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){"use strict";var a=i(8),s=i(3).document,r=a(s)&&a(s.createElement);t.exports=function(t){return r?s.createElement(t):{}}},function(t,e,i){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){"use strict";var a=i(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},function(t,e,i){"use strict";function a(t){var e,i;this.promise=new t(function(t,a){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=a}),this.resolve=s(e),this.reject=s(i)}var s=i(17);t.exports.f=function(t){return new a(t)}},function(t,e,i){"use strict";e.f={}.propertyIsEnumerable},function(t,e,i){"use strict";var a=i(41)("keys"),s=i(24);t.exports=function(t){return a[t]||(a[t]=s(t))}},function(t,e,i){"use strict";var a=i(4),s=i(3),r=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:i(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){"use strict";var a=Math.ceil,s=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?s:a)(t)}},function(t,e,i){"use strict";var a=i(8);t.exports=function(t,e){if(!a(t))return t;var i,s;if(e&&"function"==typeof(i=t.toString)&&!a(s=i.call(t)))return s;if("function"==typeof(i=t.valueOf)&&!a(s=i.call(t)))return s;if(!e&&"function"==typeof(i=t.toString)&&!a(s=i.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){"use strict";var a=i(3),s=i(4),r=i(21),n=i(67),o=i(9).f;t.exports=function(t){var e=s.Symbol||(s.Symbol=r?{}:a.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:n.f(t)})}},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;iv.x+v.width+2||e>v.y+v.height+2||t+f3&&void 0!==arguments[3]&&arguments[3],this.w),s=new h.default(this.ctx),r=a.config.dataLabels,n=0,l=0,c=i,u=null;if(r.enabled&&(u=s.group({class:"apexcharts-data-labels"}),t.x instanceof Array))for(var d=0;d7&&void 0!==arguments[7]&&arguments[7],l=this.w,c=new h.default(this.ctx),d=this.dataLabelsCorrection(t,e,i,a,s,o,parseInt(n.style.fontSize),l.config.markers.size<=l.config.markers.hover.size?l.config.markers.hover.size:l.config.markers.size);if(l.globals.zoomed||(t=d.x,e=d.y),d.drawnextLabel){var f=c.drawText({width:100,height:parseInt(n.style.fontSize),x:t,y:e,foreColor:l.globals.dataLabels.style.colors[a],textAnchor:n.textAnchor,text:i,fontSize:n.style.fontSize});if(f.attr({class:"apexcharts-datalabel",cx:t,cy:e}),n.dropShadow.enabled){var p=n.dropShadow;new u.default(this.ctx).dropShadow(f,p)}r.add(f),void 0===l.globals.lastDrawnDataLabelsIndexes[a]&&(l.globals.lastDrawnDataLabelsIndexes[a]=[]),l.globals.lastDrawnDataLabelsIndexes[a].push(s)}}}]),t}();e.default=d},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var i=0;i0&&(n=o.group({class:"apexcharts-series-markers"})),r.x instanceof Array)for(var c=0;c0){null!==r.y[t]?c+=" w"+(Math.random()+1).toString(36).substring(4):c="apexcharts-nullpoint";var u=a.getMarkerConfig(c,e);s.config.markers.discrete.map(function(t,i){t.i===e&&t.j===h&&(u.pointStrokeColor=t.strokeColor,u.pointFillColor=t.fillColor,u.size=t.size)}),l=o.drawMarker(r.x[t],r.y[t],u),1===i&&0===t&&(h=0),1===i&&1===t&&(h=1),l.attr("rel",h),l.attr("j",h),l.attr("index",e),a.setSelectedPointFilter(l,e,h),a.addEvents(l),n.add(l)}else void 0===s.globals.pointsArray[e]&&(s.globals.pointsArray[e]=[]),s.globals.pointsArray[e].push([r.x[t],r.y[t]])}(c);return n}},{key:"getMarkerConfig",value:function(t,e){var i=this.w,a=this.getMarkerStyle(e),s=i.config.markers.size;return{pSize:s instanceof Array?s[e]:s,pRadius:i.config.markers.radius,pWidth:i.config.markers.strokeWidth,pointStrokeColor:a.pointStrokeColor,pointFillColor:a.pointFillColor,shape:i.config.markers.shape instanceof Array?i.config.markers.shape[e]:i.config.markers.shape,class:t,pointStrokeOpacity:i.config.markers.strokeOpacity,pointFillOpacity:i.config.markers.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=new h.default(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("touchstart",e.pathMouseDown.bind(this.ctx,t))}},{key:"setSelectedPointFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].includes(i)){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;if("none"!==s){new o.default(this.ctx).applyFilter(t,s.type,s.value)}}}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors;return{pointStrokeColor:e.config.markers.strokeColor,pointFillColor:i instanceof Array?i[t]:i}}}]),t}();t.exports=c},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var i=0;i0&&(this.xaxisLabels=i.globals.timelineLabels.slice()),"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.yaxis=i.config.yaxis[0]}return r(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new o.default(this.ctx),i=e.group({class:"apexcharts-xaxis"}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate("+t.globals.translateXAxisX+", "+t.globals.translateXAxisY+")"});i.add(a);for(var s=void 0,r=t.globals.padHorizontal,n=[],l=0;l0&&(x=t.globals.timelineLabels[f].position,p=t.globals.timelineLabels[f].value),p=p.toString(),(p.indexOf("NaN")>=0||p.indexOf("undefined")>=0)&&(p="");var v=28;t.globals.rotateXLabels&&(v=22);var b=e.drawText({x:x,y:this.offY+t.config.xaxis.labels.offsetY+v,text:"",textAnchor:"middle",fontSize:this.xaxisFontSize,foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[f]:this.xaxisForeColors,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});a.add(b),b.tspan(p);var m=document.createElementNS(t.globals.svgNS,"title");m.textContent=p,b.node.appendChild(m),r+=s}if(void 0!==t.config.xaxis.title.text){var y=e.group({class:"apexcharts-xaxis-title"}),w=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY-parseInt(this.xaxisFontSize)+t.globals.xAxisLabelsHeight+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});y.add(w),i.add(y)}if(t.config.xaxis.axisBorder.show){var k=0;"bar"===t.config.chart.type&&t.globals.dataXY&&(k-=15);var S=e.drawLine(t.globals.padHorizontal+k+t.config.xaxis.axisBorder.offsetX,this.offY,t.globals.gridWidth,this.offY,t.config.xaxis.axisBorder.color,0,t.config.xaxis.axisBorder.strokeWidth);i.add(S)}return i}},{key:"drawXaxisInversed",value:function(t){var e=this.w,i=new o.default(this.ctx),a=i.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),s=i.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g"});a.add(s);for(var r=void 0,n=void 0,l=[],c=0;ci.globals.gridWidth)){var s=this.offY+i.config.xaxis.axisTicks.offsetY,r=s+i.config.xaxis.axisTicks.height;if(i.config.xaxis.axisTicks.show){var n=new o.default(this.ctx),l=n.drawLine(t+i.config.xaxis.axisTicks.offsetX,s,a+i.config.xaxis.axisTicks.offsetX,r,i.config.xaxis.axisTicks.color);e.add(l),l.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.timelineLabels.length>0)for(var s=0;s0){var f=a[0].getBBox(),p=a[a.length-1].getBBox();f.x<-25&&a[0].parentNode.removeChild(a[0]),p.x+p.width>t.globals.gridWidth+15&&a[a.length-1].parentNode.removeChild(a[a.length-1])}if(s.length>0){var g=s[s.length-1].getBBox(),x=s[0].getBBox();g.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),x.x+x.width>t.globals.gridWidth&&s[0].parentNode.removeChild(s[0]);for(var v=0;v=0;d--){var f=i.globals.yAxisScale[e].result[d];f=u(f);var p=20;i.config.yaxis[e].opposite&&(p*=-1),0===i.config.yaxis.length&&(p=20);var g=a.drawText({x:p,y:c+l/10+i.config.yaxis[e].labels.offsetY+1,text:f,textAnchor:i.config.yaxis[e].opposite?"start":"end",fontSize:s,foreColor:i.config.yaxis[e].labels.style.color,cssClass:"apexcharts-yaxis-label "+i.config.yaxis[e].labels.style.cssClass});o.add(g),c+=h}if(void 0!==i.config.yaxis[e].title.text){var x=a.group({class:"apexcharts-yaxis-title"}),v=0;i.config.yaxis[e].opposite&&(v=i.globals.translateYAxisX[e]);var b=a.drawText({x:v,y:i.globals.gridHeight/2+i.globals.translateY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].labels.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});x.add(b),r.add(x)}var m=i.config.yaxis[e].axisBorder;if(m.show){var y=31+m.offsetX;i.config.yaxis[e].opposite&&(y=-31-m.offsetX);var w=a.drawLine(y,i.globals.translateY+m.offsetY-2,y,i.globals.gridHeight+i.globals.translateY+m.offsetY+2,m.color);r.add(w),this.drawAxisTicks(y,l,m,i.config.yaxis[e].axisTicks,e,h,r)}return r}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new n.default(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate("+e.globals.translateXAxisX+", "+e.globals.translateXAxisY+")"});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,l=o+e.config.xaxis.labels.offsetX,h=e.globals.xLabelFormatter;if(e.config.xaxis.labels.show)for(var c=r;c>=0;c--){var u=e.globals.yAxisScale[t].result[c];u=h(u);var d=i.drawText({x:e.globals.gridWidth+e.globals.padHorizontal-(l-o+e.config.xaxis.labels.offsetX),y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30,text:"",textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(d),d.tspan(u);var f=document.createElementNS(e.globals.svgNS,"title");f.textContent=u,d.node.appendChild(f),l+=o}if(void 0!==e.config.xaxis.title.text){var p=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),g=i.drawText({x:e.globals.gridWidth/2,y:this.xAxisoffX+parseInt(this.xaxisFontSize)+parseInt(e.config.xaxis.title.style.fontSize)+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});p.add(g),a.add(p)}var x=e.config.yaxis[t].axisBorder;if(x.show){var v=i.drawLine(e.globals.padHorizontal+x.offsetX,1+x.offsetY,e.globals.padHorizontal+x.offsetX,e.globals.gridHeight+x.offsetY,x.color);a.add(v)}return a}},{key:"drawAxisTicks",value:function(t,e,i,a,s,r,o){var l=this.w,h=new n.default(this.ctx),c=l.globals.translateY;if(a.show){!0===l.config.yaxis[s].opposite&&(t+=a.width);for(var u=e;u>=0;u--){var d=c+e/10+l.config.yaxis[s].labels.offsetY-1;this.isBarHorizontal&&(d=r*u);var f=h.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,i.color);o.add(f),c+=r}}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new n.default(this.ctx),s={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='"+t+"'] .apexcharts-yaxis-texts-g");null!==o&&(s=o.getBoundingClientRect());var l=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='"+t+"'] .apexcharts-yaxis-title text");if(null!==l&&(r=l.getBoundingClientRect()),null!==l){var h=this.xPaddingForYAxisTitle(t,s,r,e);l.setAttribute("x",h.xPos)}if(null!==l){var c=a.rotateAroundCenter(l);e?l.setAttribute("transform","rotate(90 "+c.x+" "+c.y+")"):l.setAttribute("transform","rotate(-90 "+c.x+" "+c.y+")")}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,n=0,o=20;return a?(n=e.width+s.config.yaxis[t].title.offsetX+o+i.width/2-15,0===r&&(n-=15),r+=1):(n=-1*e.width+s.config.yaxis[t].title.offsetX+o+i.width/2-15,this.isBarHorizontal&&(o=25,n=-1*e.width-s.config.yaxis[t].title.offsetX-o)),{xPos:n,padd:o}}}]),t}();t.exports=o},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var i=0;i1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"===e.chart.type&&e.tooltip.shared&&("barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart'),e.xaxis.crosshairs.width="tickWidth"),e.plotOptions.bar.horizontal&&(e.states.hover.type="none"),e.tooltip.followCursor||(console.warn("followCursor option in shared columns cannot be turned off"),e.tooltip.followCursor=!0)),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),t}();t.exports=f},function(t,e,i){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2])||arguments[2],s=["\0","January","February","March","April","May","June","July","August","September","October","November","December"],r=["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n=["","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o=["","Sun","Mon","Tue","Wed","Thu","Fri","Sat"];t=this.treatAsUtc(t);var l=a?t.getUTCFullYear():t.getFullYear();e=e.replace(/(^|[^\\])yyyy+/g,"$1"+l),e=e.replace(/(^|[^\\])yy/g,"$1"+l.toString().substr(2,2)),e=e.replace(/(^|[^\\])y/g,"$1"+l);var h=(a?t.getUTCMonth():t.getMonth())+1;e=e.replace(/(^|[^\\])MMMM+/g,"$1"+s[0]),e=e.replace(/(^|[^\\])MMM/g,"$1"+r[0]),e=e.replace(/(^|[^\\])MM/g,"$1"+i(h)),e=e.replace(/(^|[^\\])M/g,"$1"+h);var c=a?t.getUTCDate():t.getDate();e=e.replace(/(^|[^\\])dddd+/g,"$1"+n[0]),e=e.replace(/(^|[^\\])ddd/g,"$1"+o[0]),e=e.replace(/(^|[^\\])dd/g,"$1"+i(c)),e=e.replace(/(^|[^\\])d/g,"$1"+c);var u=a?t.getUTCHours():t.getHours();e=e.replace(/(^|[^\\])HH+/g,"$1"+i(u)),e=e.replace(/(^|[^\\])H/g,"$1"+u);var d=u>12?u-12:0===u?12:u;e=e.replace(/(^|[^\\])hh+/g,"$1"+i(d)),e=e.replace(/(^|[^\\])h/g,"$1"+d);var f=a?t.getUTCMinutes():t.getMinutes();e=e.replace(/(^|[^\\])mm+/g,"$1"+i(f)),e=e.replace(/(^|[^\\])m/g,"$1"+f);var p=a?t.getUTCSeconds():t.getSeconds();e=e.replace(/(^|[^\\])ss+/g,"$1"+i(p)),e=e.replace(/(^|[^\\])s/g,"$1"+p);var g=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+i(g,3)),g=Math.round(g/10),e=e.replace(/(^|[^\\])ff/g,"$1"+i(g)),g=Math.round(g/10),e=e.replace(/(^|[^\\])f/g,"$1"+g);var x=u<12?"AM":"PM";e=e.replace(/(^|[^\\])TT+/g,"$1"+x),e=e.replace(/(^|[^\\])T/g,"$1"+x.charAt(0));var v=x.toLowerCase();e=e.replace(/(^|[^\\])tt+/g,"$1"+v),e=e.replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var b=-t.getTimezoneOffset(),m=a||!b?"Z":b>0?"+":"-";if(!a){b=Math.abs(b);var y=Math.floor(b/60),w=b%60;m+=i(y)+":"+i(w)}e=e.replace(/(^|[^\\])K/g,"$1"+m);var k=(a?t.getUTCDay():t.getDay())+1;return e=e.replace(new RegExp(n[0],"g"),n[k]),e=e.replace(new RegExp(o[0],"g"),o[k]),e=e.replace(new RegExp(s[0],"g"),s[h]),e=e.replace(new RegExp(r[0],"g"),r[h]),e=e.replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e){var i=this.w;void 0!==i.config.xaxis.min&&(t=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(e=i.config.xaxis.max);var a=new Date(t).getFullYear(),s=new Date(e).getFullYear(),r=new Date(t).getMonth(),n=new Date(e).getMonth(),o=new Date(t).getDate(),l=new Date(e).getDate(),h=new Date(t).getHours(),c=new Date(e).getHours();return{minMinute:new Date(t).getMinutes(),maxMinute:new Date(e).getMinutes(),minHour:h,maxHour:c,minDate:o,maxDate:l,minMonth:r,maxMonth:n,minYear:a,maxYear:s}}},{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=new n.default(this.ctx).monthMod(t),!0){case this.months30.includes(t):2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.includes(t):default:i=31}return i}}]),t}();e.default=o},function(t,e,i){"use strict";var a=i(15),s=i(23),r=i(108);t.exports=function(t){return function(e,i,n){var o,l=a(e),h=s(l.length),c=r(n,h);if(t&&i!=i){for(;h>c;)if((o=l[c++])!=o)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){"use strict";var a=i(3).document;t.exports=a&&a.documentElement},function(t,e,i){"use strict";t.exports=!i(10)&&!i(19)(function(){return 7!=Object.defineProperty(i(35)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var a=i(20),s=i(2)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||r[s]===t)}},function(t,e,i){"use strict";var a=i(18);t.exports=Array.isArray||function(t){return"Array"==a(t)}},function(t,e,i){"use strict";var a=i(7);t.exports=function(t,e,i,s){try{return s?e(a(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&a(r.call(t)),e}}},function(t,e,i){"use strict";var a=i(21),s=i(5),r=i(14),n=i(12),o=i(20),l=i(96),h=i(28),c=i(103),u=i(2)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,p,g,x,v){l(i,e,p);var b,m,y,w=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",S="values"==g,A=!1,C=t.prototype,P=C[u]||C["@@iterator"]||g&&C[g],M=P||w(g),T=g?S?w("entries"):M:void 0,L="Array"==e?C.entries||P:P;if(L&&(y=c(L.call(new t)))!==Object.prototype&&y.next&&(h(y,k,!0),a||"function"==typeof y[u]||n(y,u,f)),S&&P&&"values"!==P.name&&(A=!0,M=function(){return P.call(this)}),a&&!v||!d&&!A&&C[u]||n(C,u,M),o[e]=M,o[k]=f,g)if(b={values:S?M:w("values"),keys:x?M:w("keys"),entries:T},v)for(m in b)m in C||r(C,m,b[m]);else s(s.P+s.F*(d||A),e,b);return b}},function(t,e,i){"use strict";var a=i(2)("iterator"),s=!1;try{var r=[7][a]();r.return=function(){s=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var i=!1;try{var r=[7],n=r[a]();n.next=function(){return{done:i=!0}},r[a]=function(){return n},t(r)}catch(t){}return i}},function(t,e,i){"use strict";var a=i(7),s=i(100),r=i(36),n=i(40)("IE_PROTO"),o=function(){},l=function(){var t,e=i(35)("iframe"),a=r.length;for(e.style.display="none",i(52).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("