apexcharter/inst/htmlwidgets/lib/apexcharts-1.1.0/apexcharts.min.js

2 lines
388 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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=138)}([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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(1),o=a(n),l=i(4),h=a(l),c=i(14),u=a(c),d=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&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.fill,l=t.animationDelay,c=t.initialSpeed,d=t.dataChangeSpeed,f=(t.hideStrokesInChange,t.className),p=t.id,g=this.w,x=new h.default(this.ctx),b=new u.default(this.ctx),v=this.w.config.chart.animations.enabled,m=v&&this.w.config.chart.animations.dynamicAnimation.enabled,y=void 0;y=!(v&&!g.globals.resized||m&&g.globals.dataChanged)?s:a;var w=g.config.stroke.dashArray,k=0;k=Array.isArray(w)?w[i]:g.config.stroke.dashArray;var S=this.drawPath({d:y,stroke:r,strokeWidth:n,fill:o,fillOpacity:1,classes:f,strokeLinecap:"butt",strokeDashArray:k});if(S.attr("id",p+"-"+e),S.attr("index",i),"none"!==g.config.states.normal.filter.type)x.getDefaultFilter(S,g.config.states.normal.filter.type,g.config.states.normal.filter.value);else if(g.config.chart.dropShadow.enabled&&(!g.config.chart.dropShadow.enabledSeries||g.config.chart.dropShadow.enabledSeries&&-1!==g.config.chart.dropShadow.enabledSeries.indexOf(i))){var A=g.config.chart.dropShadow;x.dropShadow(S,A)}return S.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,S)),S.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,S)),S.node.addEventListener("mousedown",this.pathMouseDown.bind(this,S)),S.node.addEventListener("touchstart",this.pathMouseDown.bind(this,S)),S.attr({pathTo:s,pathFrom:a}),!v||g.globals.resized||g.globals.dataChanged||b.animatePathsGradually({el:S,pathFrom:a,pathTo:s,speed:c,delay:l,strokeWidth:n}),m&&g.globals.dataChanged&&b.animatePathsGradually({el:S,pathFrom:a,pathTo:s,speed:d,strokeWidth:n}),S}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments[4];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,d=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,d=void 0!==n[3]?n[3]/100:1);var f=!("donut"!==l.config.chart.type&&"pie"!==l.config.chart.type&&"bubble"!==l.config.chart.type),p=l.globals.dom.Paper.gradient(f?"radial":"linear",function(t){t.at(h,e,a),t.at(c,i,s),t.at(u,i,s),t.at(d,e,s)});if(f){var g=l.globals.gridWidth/2,x=l.globals.gridHeight/2;"bubble"!==l.config.chart.type?p.attr({gradientUnits:"userSpaceOnUse",cx:g,cy:x,r:r}):p.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?p.from(0,0).to(0,1):"diagonal"===t?p.from(0,0).to(1,1):"horizontal"===t?p.from(0,1).to(1,1):"diagonal2"===t&&p.from(0,1).to(2,2);return p}},{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"),void 0!==o&&void 0!==o||(o=e.config.chart.foreColor);var h=e.globals.dom.Paper.plain(s).attr({x:i,y:a,"text-anchor":r,"dominate-baseline":"central",class:t.cssClass});return h.node.style.fontSize=n,h.node.style.fill=o,h.node.style.opacity=l,h}},{key:"drawMarker",value:function(t,e,i){t=t||0;var a=i.pSize||0,s=null;if("square"===i.shape){var r=void 0===i.pRadius?a/2:i.pRadius;null===e&&(a=0,r=0);var n=1.2*a+r,o=this.drawRect(n,n,n,n,r);o.attr({x:t-n/2,y:e-n/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pWidth?i.pWidth:1,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),s=o}else"circle"===i.shape&&(e||(a=0,e=0),s=this.drawCircle(a,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pWidth?i.pWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(t){var e=this.w,i=new h.default(this.ctx);if(("none"===e.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==e.config.states.hover.filter.type){var a=e.config.states.hover.filter;i.applyFilter(t,a.type,a.value)}}},{key:"pathMouseLeave",value:function(t){var e=this.w,i=new h.default(this.ctx);"none"!==e.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==e.config.states.hover.filter.type&&i.getDefaultFilter(t)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,a=new h.default(this.ctx),s=parseInt(t.node.getAttribute("index")),r=parseInt(t.node.getAttribute("j")),n="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[s].includes(r)){var o=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){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 b=!0,v=!1,m=void 0;try{for(var y,w=c[Symbol.iterator]();!(b=(y=w.next()).done);b=!0){var k=y.value;k.node.setAttribute("selected","false"),a.getDefaultFilter(k)}}catch(t){v=!0,m=t}finally{try{!b&&w.return&&w.return()}finally{if(v)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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),o=function(){function t(){s(this,t)}return n(t,[{key:"shadeColor",value:function(t,e){var i=arguments.length>2&&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;i<arguments.length;i++){var a=arguments[i];if(void 0!==a&&null!==a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}}();var s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(r){i.isObject(e[r])&&r in t?s[r]=i.extend(t[r],e[r]):Object.assign(s,a({},r,e[r]))}),s}},{key:"addProps",value:function(t,e,i){"string"==typeof e&&(e=e.split(".")),t[e[0]]=t[e[0]]||{};var a=t[e[0]];return e.length>1?(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;i<t.length;i++)e[i]=this.clone(t[i]);return e}if("object"===(void 0===t?"undefined":r(t))){var a={};for(var s in t)t.hasOwnProperty(s)&&(a[s]=this.clone(t[s]));return a}return t}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t),i=[],a=t.clientHeight,s=t.clientWidth;return a-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i.push(s),i.push(a),i}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&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<i.length;a++)i[a]=parseInt(1===i[a].length?i[a]+i[a]:i[a],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"rgb2hex",value:function(t){return t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"polarToCartesian",value:function(t,e,i,a){var s=(a-90)*Math.PI/180;return{x:t+i*Math.cos(s),y:e+i*Math.sin(s)}}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"randomString",value:function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=0;a<t;a++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}},{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:"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}();o.isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),e.default=o},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=i(48)("wks"),s=i(32),r=i(2).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";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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);i(62),i(61);var o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w}return s(t,[{key:"getDefaultFilter",value:function(t){var e=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==e.config.states.normal.filter?this.applyFilter(t,e.config.states.normal.filter.type,e.config.states.normal.filter.value):e.config.chart.dropShadow.enabled&&this.dropShadow(t,e.config.chart.dropShadow)}},{key:"addNormalFilter",value:function(t){var e=this.w;e.config.chart.dropShadow.enabled&&this.dropShadow(t,e.config.chart.dropShadow)}},{key:"addDesaturateFilter",value:function(t){var e=this,i=this.w;t.unfilter(!0);var a=new window.SVG.Filter;a.size("120%","180%","-5%","-40%"),t.filter(function(t){var s=i.config.chart.dropShadow;a=s.enabled?e.addShadow(t,s):t,a.colorMatrix("matrix",[0,0,0,0,.5,0,0,0,0,.5,0,0,0,0,.5,0,0,0,1,0]).colorMatrix("saturate",0)}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}},{key:"addLightenFilter",value:function(t,e){var i=this,a=this.w,s=e.intensity;t.unfilter(!0);var r=new window.SVG.Filter;r.size("120%","180%","-5%","-40%"),t.filter(function(t){var e=a.config.chart.dropShadow;r=e.enabled?i.addShadow(t,e):t,r.componentTransfer({rgb:{type:"linear",slope:1.5,intercept:s}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}},{key:"addDarkenFilter",value:function(t,e){var i=this,a=this.w,s=e.intensity;t.unfilter(!0);var r=new window.SVG.Filter;r.size("120%","180%","-5%","-40%"),t.filter(function(t){var e=a.config.chart.dropShadow;r=e.enabled?i.addShadow(t,e):t,r.componentTransfer({rgb:{type:"linear",slope:s}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}},{key:"applyFilter",value:function(t,e){var i=arguments.length>2&&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,{intensity:i})}}},{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?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=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(t,e,i){"use strict";var a=i(11);t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){"use strict";var a=i(20),s=i(47);t.exports=i(9)?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";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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(1),h=a(l),c=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth),s=parseInt(e.globals.gridHeight),r=a>s?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:"fillPath",value:function(t,e){var i=this.w,a=this.w.config,s=new o.default(this.ctx),r=new h.default,n=void 0,l=void 0,c=[],u=function(){return"bar"===i.config.chart.type&&i.config.plotOptions.bar.distributed||"heatmap"===i.config.chart.type?e.seriesNumber:e.seriesNumber%i.globals.series.length},d=Array.isArray(a.fill.opacity)?a.fill.opacity[u()]:a.fill.opacity;i.globals.comboCharts?"line"===i.config.series[u()].type?a.stroke.colors instanceof Array?c=a.stroke.colors:c.push(a.stroke.colors):a.fill.colors instanceof Array?c=a.fill.colors:c.push(a.fill.colors):"line"===a.chart.type?a.stroke.colors instanceof Array?c=a.stroke.colors:c.push(a.stroke.colors):a.fill.colors instanceof Array?c=a.fill.colors:c.push(a.fill.colors),void 0!==e.fillColors&&(c=[],e.fillColors instanceof Array?c=e.fillColors.slice():c.push(e.fillColors));var f=h.default.hexToRgba(c[u()],d),p=c[u()];if("pattern"===a.fill.type){var g=void 0===a.fill.pattern.strokeWidth?Array.isArray(a.stroke.width)?a.stroke.width[u]:a.stroke.width:Array.isArray(a.fill.pattern.strokeWidth)?a.fill.pattern.strokeWidth[u]:a.fill.pattern.strokeWidth,x=p;if(a.fill.pattern.style instanceof Array)if(void 0!==a.fill.pattern.style[e.seriesNumber]){var b=s.drawPattern(a.fill.pattern.style[e.seriesNumber],a.fill.pattern.width,a.fill.pattern.height,x,g,d);n=b}else n=f;else n=s.drawPattern(a.fill.pattern.style,a.fill.pattern.width,a.fill.pattern.height,x,g,d)}if("gradient"===a.fill.type){var v=a.fill.gradient.type,m=void 0,y=void 0,w=void 0===a.fill.gradient.opacityFrom?d:a.fill.gradient.opacityFrom,k=void 0===a.fill.gradient.opacityTo?d:a.fill.gradient.opacityTo;if(m=p,y=void 0===a.fill.gradient.gradientToColors||0===a.fill.gradient.gradientToColors.length?"dark"===a.fill.gradient.shade?r.shadeColor(-1*parseFloat(a.fill.gradient.shadeIntensity),p):r.shadeColor(parseFloat(a.fill.gradient.shadeIntensity),p):a.fill.gradient.gradientToColors[e.seriesNumber],a.fill.gradient.inverseColors){var S=m;m=y,y=S}l=s.drawGradient(v,m,y,w,k,e.size,a.fill.gradient.stops)}var A="none";return a.fill.image.src.length>0&&"image"===a.fill.type?e.seriesNumber<a.fill.image.src.length?(this.clippedImgArea({opacity:d,image:a.fill.image.src[e.seriesNumber],patternID:"pattern"+i.globals.cuid+(e.seriesNumber+1)}),A="url(#pattern"+i.globals.cuid+(e.seriesNumber+1)+")"):A=f:A="gradient"===a.fill.type?l:"pattern"===a.fill.type?n:f,e.solid&&(A=f),e.color&&(A=e.color),A}}]),t}();e.default=c},function(t,e,i){"use strict";t.exports=!i(41)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var a=i(2),s=i(5),r=i(7),n=i(13),o=i(18),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,b=e&t.B,v=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&&v&&void 0!==v[h],u=(c?v:l)[h],d=b&&c?o(u,a):x&&"function"==typeof u?o(Function.call,u):u,v&&n(v,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";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";t.exports={}},function(t,e,i){"use strict";var a=i(2),s=i(7),r=i(19),n=i(32)("src"),o=Function.toString,l=(""+o).split("toString");i(5).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";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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return s(t,[{key:"setEasingFunctions",value:function(){var t="<>";switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;default:t="<>"}this.w.globals.easing=t}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateCircleRadius",value:function(t,e,i,a){e||(e=0),t.attr({r:e}).animate(a).attr({r:i})}},{key:"animateCircle",value:function(t,e,i,a){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.pathFrom,a=t.pathTo,s=t.speed,r=t.delay,n=t.strokeWidth,o=this,l=this.w,h=0;l.config.chart.animations.animateGradually.enabled&&(h=l.config.chart.animations.animateGradually.delay),l.config.chart.animations.dynamicAnimation.enabled&&l.globals.dataChanged&&(h=0),o.morphSVG(e,i,a,s,n,r*h)}},{key:"morphSVG",value:function(t,e,i,a,s,r){var n=this.w;e||(e=t.attr("pathFrom")),i||(i=t.attr("pathTo")),(e.indexOf("undefined")>-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.globals.series.length;r++){var n=0;a&&(n=(r+1)*(s/1e3));for(var o=0;o<t.globals.delayedElements.length;o++)if(t.globals.delayedElements[o].index===r){var l=t.globals.delayedElements[o].el;l.classList.add("apexcharts-showAfterDelay"),l.style.animationDelay=i/950+n+"s"}}if(t.config.chart.animations.dynamicAnimation.enabled&&t.globals.dataChanged)for(var h=0;h<t.globals.delayedElements.length;h++){var c=t.globals.delayedElements[h].el;c.classList.add("apexcharts-showAfterDelay"),c.style.animationDelay=t.config.chart.animations.dynamicAnimation.speed/950+"s"}}}]),t}();t.exports=r},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}),e.default=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w}return s(t,[{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"))-1,r=null;r=i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='"+s+"']"):i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='"+(s+1)+"']"):i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='"+(s+1)+"'] path");for(var n=0;n<a.length;n++)a[n].classList.add("legend-mouseover-inactive");null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove("legend-mouseover-inactive"),r.classList.remove("legend-mouseover-inactive"))}else if("mouseout"===t.type)for(var o=0;o<a.length;o++)a[o].classList.remove("legend-mouseover-inactive")}},{key:"highlightRangeInSeries",value:function(t,e){var i=this.w,a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap-rect"),s=function(){for(var t=0;t<a.length;t++)a[t].classList.remove("legend-mouseover-inactive")};if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"))-1;s(),function(){for(var t=0;t<a.length;t++)a[t].classList.add("legend-mouseover-inactive")}();var n=i.config.plotOptions.heatmap.colorScale.ranges[r];!function(t){for(var e=0;e<a.length;e++){var i=parseInt(a[e].getAttribute("val"));i>=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;a<i.length;a++)if(-1!==i[a]){e=i[a];break}return e}},{key:"getActiveConfigSeriesIndex",value:function(){var t=this.w,e=0;if(t.config.series.length>1)for(var i=t.config.series.map(function(t,e){return t.data&&t.data.length>0?e:-1}),a=0;a<i.length;a++)if(-1!==i[a]){e=i[a];break}return e}},{key:"getPreviousPaths",value:function(){function t(t,i,a){for(var s=t[i].childNodes,r={type:a,paths:[],realIndex:t[i].getAttribute("data:realIndex")},n=0;n<s.length;n++)if(s[n].hasAttribute("pathTo")){var o=s[n].getAttribute("pathTo");"area"===a?s[n].classList.contains("apexcharts-line")?r.paths.push({d:o}):s[n].classList.contains("apexcharts-area")&&r.paths.push({d:o}):r.paths.push({d:o})}e.globals.previousPaths.push(r)}var e=this.w;e.globals.previousPaths=[];var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-series");if(i.length>0)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;o<n.length;o++)t(n,o,"bar");var l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series");if(l.length>0)for(var h=0;h<l.length;h++){for(var c=e.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='"+h+"'] circle"),u=[],d=0;d<c.length;d++)u.push({x:c[d].getAttribute("cx"),y:c[d].getAttribute("cy"),r:c[d].getAttribute("r")});e.globals.previousPaths.push(u)}var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series");if(f.length>0)for(var p=0;p<f.length;p++){for(var g=e.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='"+p+"'] circle"),x=[],b=0;b<g.length;b++)x.push({x:g[b].getAttribute("cx"),y:g[b].getAttribute("cy"),r:g[b].getAttribute("r")});e.globals.previousPaths.push(x)}var v=e.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series");if(v.length>0)for(var m=0;m<v.length;m++){for(var y=e.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='"+m+"'] rect"),w=[],k=0;k<y.length;k++)w.push({color:y[k].getAttribute("color")});e.globals.previousPaths.push(w)}e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handleNoData",value:function(t){var e=(t.appendToRoot,t.rootEl,this.w),i=this,a=e.config.noData,s=new n.default(i.ctx),r=e.globals.svgWidth/2,o=e.globals.svgHeight/2,l="middle";if("left"===a.align?(r=10,l="start"):"right"===a.align&&(r=e.globals.svgWidth-10,l="end"),"top"===a.verticalAlign?o=50:"bottom"===a.verticalAlign&&(o=e.globals.svgHeight-50),r+=a.offsetX,o=o+parseInt(a.style.fontSize)+2,void 0!==a.text&&""!==a.text){var h=s.drawText({x:r,y:o,text:a.text,textAnchor:l,fontSize:a.style.fontSize,foreColor:a.style.color,opacity:1,class:"apexcharts-text-nodata"});h.node.setAttribute("class","apexcharts-title-text"),e.globals.dom.Paper.add(h)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var a=0;a<t[e.globals.maxValsInArrayIndex].length;a++)t[i].push(0);return t}}]),t}();e.default=o},function(t,e,i){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){"use strict";var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},function(t,e,i){"use strict";var a=i(16);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={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},function(t,e,i){"use strict";var a=i(6),s=i(68),r=i(86),n=Object.defineProperty;e.f=i(9)?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";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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(22),h=a(l),c=i(1),u=a(c),d=i(36),f=a(d),p=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.xAxisHeight=0,this.isBarHorizontal=!("bar"!==this.w.config.chart.type||!this.w.config.plotOptions.bar.horizontal)}return r(t,[{key:"plotCoords",value:function(){var t=this.w,e=t.globals;t.config.series.length&&void 0!==t.config.series[0].type&&(t.globals.comboCharts=!0);var i=this.getLegendsRect();e.axisCharts?this.setGridCoordsForAxisCharts(i):this.setGridCoordsForNonAxisCharts(i),this.titleSubtitleOffset()}},{key:"setGridCoordsForAxisCharts",value:function(t){var e=this.w,i=e.globals,a=0,s={width:0,height:0},r=[],n={width:0,height:0},o={width:0,height:0};n=this.getyAxisLabelsCoords(),o=this.getxAxisLabelsCoords(),e.globals.timelineLabels.length>0&&(o=this.getxAxisTimeScaleLabelsCoords()),s=this.getxAxisTitleCoords(),r=this.getyAxisTitleCoords(),this.isBarHorizontal,e.config.xaxis.labels.show||(o={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=(o.height+s.height)*e.globals.lineHeightRatio+15,this.xAxisWidth=o.width,this.xAxisHeight-s.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 l=this.yAxisWidth,h=this.xAxisHeight,c=10;switch(e.config.grid.show||(l=0,h=35),e.config.chart.sparkline.enabled&&(t={height:0,width:0},a=0,h=0,l=0,c=0),e.config.legend.position){case"bottom":i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-t.height-h-(e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-a-l;break;case"top":i.translateY=t.height+c,i.translateX=l,i.gridHeight=i.svgHeight-t.height-h-(e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-a-l;break;case"left":i.translateY=c,i.translateX=t.width+l,i.gridHeight=i.svgHeight-h,i.gridWidth=i.svgWidth-t.width-a-l;break;case"right":i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-h,i.gridWidth=i.svgWidth-t.width-a-l;break;default:i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-t.height-h,i.gridWidth=i.svgWidth-a}var u=0;e.config.chart.scroller.enabled&&e.globals.dataXY&&(u=e.config.chart.scroller.height),i.gridHeight=i.gridHeight-e.config.grid.padding.top-e.config.grid.padding.bottom-u,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=10;void 0!==t.config.title.text?i+=t.config.title.margin:i+=5,void 0!==t.config.subtitle.text?i+=t.config.subtitle.margin:i+=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){if(void 0===t)throw new Error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date");return t.length>e.length?t:e}),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&&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}),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}),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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(37),o=a(n),l=i(1),h=a(l),c=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return r(t,[{key:"xLabelFormat",value:function(t,e){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.tooltip.x.formatter){return new o.default(this.ctx).formatDate(new Date(e),i.config.tooltip.x.format)}return t(e)}},{key:"setLabelFormatters",value:function(){var t=this.w;t.globals.xLabelFormatter=function(t,e){return t},t.globals.ttKeyFormatter=function(t,e){return t},t.globals.ttZFormatter=function(t,e){return t},t.globals.legendFormatter=function(t,e){return t},void 0!==t.config.tooltip.x.formatter&&(t.globals.ttKeyFormatter=t.config.tooltip.x.formatter),void 0!==t.config.tooltip.y.formatter&&(t.globals.ttValFormatter=t.config.tooltip.y.formatter),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(t){return h.default.isNumber(t)?t.toFixed(0):t},t.config.yaxis.map(function(e,i){void 0!==e.labels.formatter?t.globals.yLabelFormatters[i]=e.labels.formatter:t.globals.yLabelFormatters[i]=function(e){return h.default.isNumber(e)?e.toFixed(t.globals.yValueDecimal):e}})}}]),t}();e.default=c},function(t,e,i){"use strict";var a=i(17),s=i(3)("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(11),s=i(2).document,r=a(s)&&a(s.createElement);t.exports=function(t){return r?s.createElement(t):{}}},function(t,e,i){"use strict";t.exports=!1},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(16);t.exports.f=function(t){return new a(t)}},function(t,e,i){"use strict";var a=i(20).f,s=i(19),r=i(3)("toStringTag");t.exports=function(t,e,i){t&&!s(t=i?t:t.prototype,r)&&a(t,r,{configurable:!0,value:e})}},function(t,e,i){"use strict";var a=i(48)("keys"),s=i(32);t.exports=function(t){return a[t]||(a[t]=s(t))}},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(70),s=i(24);t.exports=function(t){return a(s(t))}},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){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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(54),o=a(n),l=i(0),h=a(l),c=i(4),u=a(c),d=function(){function t(e){var i=this;s(this,t),this.plotDataLabelsText=function(t,e,a,s,r,n,o){var l=i.w,c=new h.default(i.ctx),d=i.dataLabelsCorrection(t,e,a,s,r,parseInt(o.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(o.style.fontSize),x:t,y:e,foreColor:o.style.colors[s],textAnchor:o.textAnchor,text:a,fontSize:o.style.fontSize});if(f.attr({class:"apexcharts-datalabel",cx:t,cy:e}),o.dropShadow.enabled){var p=o.dropShadow;new u.default(i.ctx).dropShadow(f,p)}n.add(f),void 0===l.globals.lastDrawnDataLabelsIndexes[s]&&(l.globals.lastDrawnDataLabelsIndexes[s]=[]),l.globals.lastDrawnDataLabelsIndexes[s].push(r)}},this.ctx=e,this.w=e.w}return r(t,[{key:"dataLabelsCorrection",value:function(t,e,i,a,s,r,n){var o=this.w,l=new h.default(this.ctx),c=!1,u=l.getTextRects(i,r),d=u.width,f=u.height;void 0===o.globals.dataLabelsRects[a]&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:t,y:e,width:d,height:f});var p=o.globals.dataLabelsRects[a].length-2,g=void 0!==o.globals.lastDrawnDataLabelsIndexes[a]?o.globals.lastDrawnDataLabelsIndexes[a][o.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==o.globals.dataLabelsRects[a][p]){var x=o.globals.dataLabelsRects[a][g];(t>x.x+x.width+2||e>x.y+x.height+2||t+d<x.x)&&(c=!0)}return 0===s&&(c=!0),{x:t,y:e,drawnextLabel:c}}},{key:"drawDataLabel",value:function(t,e,i){var a=(arguments.length>3&&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;d<t.x.length;d++)if(n=t.x[d]+r.offsetX,l=t.y[d]+r.offsetY-a.config.markers.size-5,!isNaN(n)){1===i&&0===d&&(c=0),1===i&&1===d&&(c=1);var f=a.globals.series[e][c],p="";if("bubble"===a.config.chart.type){p=a.globals.seriesZ[e][c],l=t.y[d]+a.config.dataLabels.offsetY;var g=new o.default(this.ctx),x=g.centerTextInBubble(l,e,c);l=x.y}else f&&(p=a.config.dataLabels.formatter(f,{seriesIndex:e,dataPointIndex:c,globals:a.globals}));this.plotDataLabelsText(n,l,p,e,c,u,a.config.dataLabels)}return u}}]),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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(4),o=a(n),l=i(0),h=a(l),c=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"plotChartMarkers",value:function(t,e,i){var a=this,s=this.w,r=t,n=null,o=new h.default(this.ctx),l=void 0;if(s.config.markers.size>0&&(n=o.group({class:"apexcharts-series-markers"})),r.x instanceof Array)for(var c=0;c<r.x.length;c++)!function(t){var h=i,c="apexcharts-marker";if("line"!==s.config.chart.type&&"area"!==s.config.chart.type||s.globals.comboCharts||s.config.tooltip.intersect||(c+=" no-pointer-events"),s.config.markers.size>0){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.config.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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(36),h=a(l),c=i(22),u=a(c),d=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),i.globals.timelineLabels.length>0&&(this.xaxisLabels=i.globals.timelineLabels.slice()),"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,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;l<this.xaxisLabels.length;l++)n.push(this.xaxisLabels[l]);"line"===t.config.chart.type||"area"===t.config.chart.type?t.globals.dataXY?(s=t.globals.gridWidth/(n.length-1),r=r+s/2+t.config.xaxis.labels.offsetX):(s=t.globals.noLabelsProvided?t.globals.gridWidth/this.xaxisLabels.length:t.globals.gridWidth/n.length,r=r+s+t.config.xaxis.labels.offsetX):t.globals.dataXY?"bar"!==t.config.chart.type?(s=t.globals.gridWidth/(this.xaxisLabels.length-1),r=r+s/2+t.config.xaxis.labels.offsetX):(s=t.globals.gridWidth/t.globals.labels.length,r=r+s/2+t.config.xaxis.labels.offsetX):t.globals.noLabelsProvided&&"bar"!==t.config.chart.type?(s=t.globals.gridWidth/this.xaxisLabels.length,r=r+s/2+t.config.xaxis.labels.offsetX):(s=t.globals.gridWidth/n.length,r=r+s+t.config.xaxis.labels.offsetX);var h=t.globals.xLabelFormatter,c=n.length;if(t.config.xaxis.labels.show)for(var d=0;d<=c-1;d++){var f=void 0===n[d]?"":n[d],p=new u.default(this.ctx);f=p.xLabelFormat(h,f);var g=r-s/2+t.config.xaxis.labels.offsetX;t.globals.timelineLabels.length>0&&(g=t.globals.timelineLabels[d].position,f=t.globals.timelineLabels[d].value);var x=28;t.globals.rotateXLabels&&(x=22);var b=e.drawText({x:g,y:this.offY+t.config.xaxis.labels.offsetY+x,text:"",textAnchor:"middle",fontSize:this.xaxisFontSize,foreColor:this.xaxisForeColors[d],cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});a.add(b),b.tspan(f);var v=document.createElementNS(t.globals.svgNS,"title");v.textContent=f,b.node.appendChild(v),r+=s}if(void 0!==t.config.xaxis.title.text){var m=e.group({class:"apexcharts-xaxis-title"}),y=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});m.add(y),i.add(m)}if(t.config.xaxis.axisBorder.show){var w=0;"bar"===t.config.chart.type&&t.globals.dataXY&&(w-=15);var k=e.drawLine(t.globals.padHorizontal+w+t.config.xaxis.axisBorder.offsetX,this.offY,t.globals.gridWidth,this.offY,t.config.xaxis.axisBorder.color);i.add(k)}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;c<this.xaxisLabels.length;c++)l.push(this.xaxisLabels[c]);r=e.globals.gridHeight/l.length,n=-r/2.2;var u=e.globals.yLabelFormatters[0];if(e.config.yaxis[0].labels.show)for(var d=0;d<=l.length-1;d++){var f=void 0===l[d]?"":l[d];f=u(f);var p=i.drawText({x:e.config.yaxis[0].labels.offsetX-15,y:n+r+e.config.yaxis[0].labels.offsetY,text:f,textAnchor:"end",foreColor:e.config.yaxis[0].labels.style.colors[d],fontSize:e.config.yaxis[0].labels.style.fontSize,cssClass:"apexcharts-yaxis-label "+e.config.yaxis[0].labels.style.cssClass});s.add(p),n+=r}if(void 0!==e.config.yaxis[0].title.text){var g=i.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed"}),x=i.drawText({x:0,y:e.globals.gridHeight/2,text:e.config.yaxis[0].title.text,textAnchor:"middle",foreColor:e.config.yaxis[0].title.style.color,fontSize:e.config.yaxis[0].title.style.fontSize,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[0].title.style.cssClass});g.add(x),a.add(g)}if(e.config.xaxis.axisBorder.show){var b=i.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX,this.offY,e.globals.gridWidth,this.offY,this.yaxis.axisBorder.color);a.add(b);new h.default(this.ctx).drawAxisTicks(0,l.length,e.config.yaxis[0].axisBorder,e.config.yaxis[0].axisTicks,0,r,a)}return a}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,a=t;if(!(t<0||t>i.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;s<i;s++)a=this.xaxisLabels[s].position,e.push(a);else for(var r=i,n=0;n<r;n++){var o=r;t.globals.dataXY&&"bar"!==t.config.chart.type&&(o-=1),a+=t.globals.gridWidth/o,e.push(a)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new o.default(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var n=0;n<a.length;n++){var l=e.rotateAroundCenter(a[n]);l.y=l.y-1,l.x=l.x+1,a[n].setAttribute("transform","rotate("+t.config.xaxis.labels.rotate+" "+l.x+" "+l.y+")"),a[n].setAttribute("text-anchor","end");i.setAttribute("transform","translate(0, -10)");var h=a[n].childNodes;t.config.xaxis.labels.trim&&e.placeTextWithEllipsis(h[0],h[0].textContent,t.config.xaxis.labels.maxHeight-40)}else for(var c=t.globals.gridWidth/t.globals.labels.length,u=0;u<a.length;u++){var d=a[u].childNodes;t.config.xaxis.labels.trim&&"bar"!==t.config.chart.type&&t.config.plotOptions.bar.horizontal&&e.placeTextWithEllipsis(d[0],d[0].textContent,c)}if(a.length>0){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&&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 b=0;b<r.length;b++)e.placeTextWithEllipsis(r[b],r[b].textContent,t.config.yaxis[0].labels.maxWidth-2*parseInt(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}();t.exports=d},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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w,this.xaxisFontSize=this.w.config.xaxis.labels.style.fontSize,this.isBarHorizontal=!("bar"!==this.w.config.chart.type||!this.w.config.plotOptions.bar.horizontal),this.xAxisoffX=0,"bottom"===this.w.config.xaxis.position&&(this.xAxisoffX=this.w.globals.gridHeight)}return s(t,[{key:"drawYaxis",value:function(t,e){var i=this.w,a=new n.default(this.ctx),s=i.config.yaxis[e].labels.style.fontSize,r=a.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+i.globals.translateYAxisX[e]+", 0)"}),o=a.group({class:"apexcharts-yaxis-texts-g"});r.add(o);var l=i.globals.yAxisScale[e].result.length-1,h=i.globals.gridHeight/l+.1,c=i.globals.translateY,u=i.globals.yLabelFormatters[e];if(i.config.yaxis[e].labels.show)for(var d=l;d>=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"}),b=0;i.config.yaxis[e].opposite&&(b=i.globals.translateYAxisX[e]);var v=a.drawText({x:b,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(v),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",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 b=i.drawLine(e.globals.padHorizontal+x.offsetX,1+x.offsetY,e.globals.padHorizontal+x.offsetX,e.globals.gridHeight+x.offsetY,x.color);a.add(b)}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,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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(55),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.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],this.MMMM=["\0","January","February","March","April","May","June","July","August","September","October","November","December"]}return s(t,[{key:"isValidDate",value:function(t){return!isNaN(Date.parse(t))}},{key:"treatAsUtc",value:function(t){var e=new Date(t);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}},{key:"formatDate",value:function(t,e){function i(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var a=!(arguments.length>2&&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 b=x.toLowerCase();e=e.replace(/(^|[^\\])tt+/g,"$1"+b),e=e.replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var v=-t.getTimezoneOffset(),m=a||!v?"Z":v>0?"+":"-";if(!a){v=Math.abs(v);var y=Math.floor(v/60),w=v%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(3)("unscopables"),s=Array.prototype;void 0==s[a]&&i(7)(s,a,{}),t.exports=function(t){s[a][t]=!0}},function(t,e,i){"use strict";var a=i(31),s=i(51),r=i(84);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";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){"use strict";var a=i(2).document;t.exports=a&&a.documentElement},function(t,e,i){"use strict";var a=i(26),s=i(10),r=i(13),n=i(7),o=i(12),l=i(73),h=i(28),c=i(79),u=i(3)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,p,g,x,b){l(i,e,p);var v,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&&!b||!d&&!A&&C[u]||n(C,u,M),o[e]=M,o[k]=f,g)if(v={values:S?M:w("values"),keys:x?M:w("keys"),entries:T},b)for(m in v)m in C||r(C,m,v[m]);else s(s.P+s.F*(d||A),e,v);return v}},function(t,e,i){"use strict";var a=i(80),s=i(40);t.exports=Object.keys||function(t){return a(t,s)}},function(t,e,i){"use strict";t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,i){"use strict";var a=i(6),s=i(11),r=i(27);t.exports=function(t,e){if(a(t),s(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},function(t,e,i){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){"use strict";var a=i(5),s=i(2),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(26)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){"use strict";var a=i(6),s=i(16),r=i(3)("species");t.exports=function(t,e){var i,n=a(t).constructor;return void 0===n||void 0==(i=a(n)[r])?e:s(i)}},function(t,e,i){"use strict";var a,s,r,n=i(18),o=i(69),l=i(42),h=i(25),c=i(2),u=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,x=0,b={},v=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},m=function(t){v.call(t.data)};d&&f||(d=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return b[++x]=function(){o("function"==typeof t?t:Function(t),e)},a(x),x},f=function(t){delete b[t]},"process"==i(17)(u)?a=function(t){u.nextTick(n(v,t,1))}:g&&g.now?a=function(t){g.now(n(v,t,1))}:p?(s=new p,r=s.port2,s.port1.onmessage=m,a=n(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(a=function(t){c.postMessage(t+"","*")},c.addEventListener("message",m,!1)):a="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),v.call(t)}}:function(t){setTimeout(n(v,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,i){"use strict";var a=i(30),s=Math.min;t.exports=function(t){return t>0?s(a(t),9007199254740991):0}},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(8),o=a(n),l=i(4),h=a(l),c=i(0),u=a(c),d=i(33),f=a(d),p=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.xyRatios=i,this.yaxisIndex=0,this.seriesLen=0}return r(t,[{key:"draw",value:function(t,e){var i=this,a=this.w,s=new u.default(this.ctx),r=new o.default(this.ctx);this.series=t,this.totalItems=0,this.seriesLen=0,this.visibleI=-1;for(var n=0;n<t.length;n++)t[n].length>0&&(this.seriesLen=this.seriesLen+1,this.totalItems+=t[n].length);0===this.seriesLen&&(this.seriesLen=1);var l=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});l.attr("clip-path","url(#gridRectMask"+a.globals.cuid+")");for(var h=0,c=0;h<t.length;h++,c++)!function(n,o){var h=void 0,c=void 0,u=void 0,d=void 0,f=void 0,p=void 0,g=void 0,x=void 0,b=[],v=[],m=a.globals.comboCharts?e[n]:n,y=s.group({class:"apexcharts-series",rel:n+1,"data:realIndex":m});t[n].length>0&&(i.visibleI=i.visibleI+1);var w=0,k=0,S=0;i.yRatio.length>1&&(i.yaxisIndex=m);var A=i.initialPositions();d=A.y,k=A.barHeight,p=A.yDivision,x=A.zeroW,u=A.x,S=A.barWidth,f=A.xDivision,g=A.zeroH,i.horizontal||v.push(u+S/2);for(var C=s.group({class:"apexcharts-datalabels"}),P=0,M=a.globals.dataPoints;P<a.globals.dataPoints;P++,M--)!function(e,l){void 0===i.series[n][e]||null===t[n][e]?i.isNullValue=!0:i.isNullValue=!1,a.config.stroke.show&&(w=i.isNullValue?0:Array.isArray(i.strokeWidth)?i.strokeWidth[m]:i.strokeWidth);var A=null;A=i.isHorizontal?i.drawBarPaths({indexes:{i:n,j:e,realIndex:m,bc:o},barHeight:k,strokeWidth:w,pathTo:h,pathFrom:c,zeroW:x,x:u,y:d,yDivision:p,elSeries:y}):i.drawColumnPaths({indexes:{i:n,j:e,realIndex:m,bc:o},x:u,y:d,xDivision:f,pathTo:h,pathFrom:c,barWidth:S,zeroH:g,strokeWidth:w,elSeries:y}),h=A.pathTo,c=A.pathFrom,d=A.y,u=A.x,e>0&&v.push(u+S/2),b.push(d);var P=i.barOptions.distributed?e:n,M=null;if(i.barOptions.colors.ranges.length>0){i.barOptions.colors.ranges.map(function(i,a){t[n][e]>=i.from&&t[n][e]<=i.to&&(M=i.color)})}var T=r.fillPath(y,{seriesNumber:i.barOptions.distributed?P:m,color:M}),L=a.config.stroke.colors[m];i.isNullValue&&(T="none");var z=e/a.config.chart.animations.animateGradually.delay*(a.config.chart.animations.speed/a.globals.dataPoints)/2.4,X=s.renderPaths({i:n,realIndex:m,pathFrom:c,pathTo:h,stroke:L,strokeWidth:w,fill:T,animationDelay:z,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-bar-area",id:"apexcharts-bar-area"});i.setSelectedBarFilter(X,m,e),y.add(X);var E=i.calculateBarDataLabels({x:u,y:d,i:n,j:e,series:t,realIndex:m,barHeight:k,barWidth:S,renderedPath:X,visibleSeries:i.visibleI});null!==E&&C.add(E),y.add(C)}(P);a.globals.seriesXvalues[m]=v,a.globals.seriesYvalues[m]=b,l.add(y)}(h,c);return l}},{key:"initialPositions",value:function(){var t=this.w,e=void 0,i=void 0,a=void 0,s=void 0,r=void 0,n=void 0,o=void 0,l=void 0;return this.isHorizontal?(a=t.globals.gridHeight/t.globals.dataPoints,r=a/this.seriesLen,t.globals.dataXY&&(a=t.globals.gridHeight/this.totalItems,r=a/this.seriesLen),r=r*parseInt(this.barOptions.barHeight)/100,l=this.baseLineInvertedY+t.globals.padHorizontal,i=(a-r*this.seriesLen)/2):(s=t.globals.gridWidth/t.globals.dataPoints,n=s/this.seriesLen,t.globals.dataXY?(s=t.globals.gridWidth/(this.totalItems/2),n=s/(this.seriesLen+1)*(parseInt(this.barOptions.columnWidth)/100)):n=n*parseInt(this.barOptions.columnWidth)/100,o=t.globals.gridHeight-this.baseLineY[this.yaxisIndex],e=t.globals.padHorizontal+(s-n*this.seriesLen)/2),{x:e,y:i,yDivision:a,xDivision:s,barHeight:r,barWidth:n,zeroH:o,zeroW:l}}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.pathTo,r=t.pathFrom,n=t.zeroW,o=t.x,l=t.y,h=t.yDivision,c=t.elSeries,d=this.w,f=new u.default(this.ctx),p=e.i,g=e.j,x=e.realIndex,b=e.bc;d.globals.dataXY&&(l=(d.globals.seriesX[p][g]-d.globals.minX)/this.invertedXRatio-i);var v=l+i*this.visibleI;s=f.move(n,v),r=f.move(n,v),d.globals.previousPaths.length>0&&(r=this.getPathFrom(x,g,!0)),o=void 0===this.series[p][g]||null===this.series[p][g]?n:n+this.series[p][g]/this.invertedYRatio;var m={barHeight:i,strokeWidth:a,barYPosition:v,x:o,zeroW:n},y=this.barEndingShape(d,m,this.series,p,g);if(s=s+f.line(y.newX,v)+y.path+f.line(n,v+i-a)+f.line(n,v),r=r+f.line(n,v)+y.ending_p_from+f.line(n,v+i-a)+f.line(n,v+i-a)+f.line(n,v),d.globals.dataXY||(l+=h),this.barOptions.colors.backgroundBarColors.length>0&&0===p){b>=this.barOptions.colors.backgroundBarColors.length&&(b=0);var w=this.barOptions.colors.backgroundBarColors[b],k=f.drawRect(0,v-i*this.visibleI,d.globals.gridWidth,i*this.seriesLen,0,w,this.barOptions.colors.backgroundBarOpacity);c.add(k),k.node.classList.add("apexcharts-backgroundBar")}return{pathTo:s,pathFrom:r,x:o,y:l,barYPosition:v}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.pathTo,n=t.pathFrom,o=t.barWidth,l=t.zeroH,h=t.strokeWidth,c=t.elSeries,d=this.w,f=new u.default(this.ctx),p=e.i,g=e.j,x=e.realIndex,b=e.bc;d.globals.dataXY&&(i=(d.globals.seriesX[p][g]-d.globals.minX)/this.xRatio-o/2);var v=i+o*this.visibleI;r=f.move(v,l),n=f.move(v,l),d.globals.previousPaths.length>0&&(n=this.getPathFrom(x,g,!0)),a=void 0===this.series[p][g]||null===this.series[p][g]?l:l-this.series[p][g]/this.yRatio[this.yaxisIndex];var m={barWidth:o,strokeWidth:h,barXPosition:v,y:a,zeroH:l},y=this.barEndingShape(d,m,this.series,p,g);if(r=r+f.line(v,y.newY)+y.path+f.line(v+o-h,l)+f.line(v,l),n=n+f.line(v,l)+y.ending_p_from+f.line(v+o-h,l)+f.line(v+o-h,l)+f.line(v,l),d.globals.dataXY||(i+=s),this.barOptions.colors.backgroundBarColors.length>0&&0===p){b>=this.barOptions.colors.backgroundBarColors.length&&(b=0);var w=this.barOptions.colors.backgroundBarColors[b],k=f.drawRect(v-o*this.visibleI,0,o*this.seriesLen,d.globals.gridHeight,0,w,this.barOptions.colors.backgroundBarOpacity);c.add(k),k.node.classList.add("apexcharts-backgroundBar")}return{pathTo:r,pathFrom:n,x:i,y:a,barXPosition:v}}},{key:"getPathFrom",value:function(t,e){for(var i=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],this.w),a=void 0,s=0;s<i.globals.previousPaths.length;s++){var r=i.globals.previousPaths[s];r.paths.length>0&&parseInt(r.realIndex)===parseInt(t)&&void 0!==i.globals.previousPaths[s].paths[e]&&(a=i.globals.previousPaths[s].paths[e].d)}return a}},{key:"calculateBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.i,s=t.j,r=t.realIndex,n=t.series,o=t.barHeight,l=t.barWidth,h=t.visibleSeries,c=t.renderedPath,d=this.w,f=new u.default(this.ctx),p=Array.isArray(this.strokeWidth)?this.strokeWidth[r]:this.strokeWidth,g=e+parseFloat(l*h),x=i+parseFloat(o*h),b=d.config.dataLabels.offsetX,v=d.config.dataLabels.offsetY;d.globals.dataXY&&(g=e+parseFloat(l*(h+1))-p,x=i+parseFloat(o*(h+1))-p);var m=null,y=e,w=i,k=d.config.dataLabels,S=this.barOptions.dataLabels,A=d.globals.gridHeight/d.globals.dataPoints,C=d.globals.gridWidth/d.globals.dataPoints,P=0!==Math.abs(d.globals.minY),M=f.getTextRects(d.globals.series[a][s],parseInt(k.style.fontSize));if(this.isHorizontal){w=x-A+o/2+M.height/2+v-3;var T=d.globals.gridWidth-this.baseLineInvertedY,L=n[a][s]/this.invertedYRatio,z=d.globals.gridWidth-T,X=!!(e<z&&0!==Math.abs(this.baseLineInvertedY));switch(S.position){case"center":y=e-L/2+b,P&&(y=X?e-L/2-b:e-L/2+b);break;case"bottom":y=P&&X?e-L-p-Math.round(M.width/2)-b:e-L+p+Math.round(M.width/2)+b;break;case"top":y=P?X?e-p+Math.round(M.width/2)-b:e-p-Math.round(M.width/2)+b:e+p-Math.round(M.width/2)+b}c.attr({cy:x,cx:e,j:s,val:n[a][s],barHeight:o}),m=this.drawCalculatedBarDataLabels({x:y,y:w,val:n[a][s],i:r,j:s,dataLabelsConfig:k})}else{var E=n[a][s]/this.yRatio[this.yaxisIndex];g-=p/2,y=d.globals.dataXY?g-l/2+b:g-C+l/2+b;var Y=d.globals.gridHeight-this.baseLineY[this.yaxisIndex],O=!!(i>Y&&0!==Math.abs(this.baseLineY[this.yaxisIndex]));switch(S.position){case"center":w=i+E/2+M.height/2-v,P&&(w=O?i+E/2+M.height/2+v:i+E/2+M.height/2-v);break;case"bottom":w=P?O?i+E+M.height+p+v:i+E-M.height/2+p-v:d.globals.gridHeight-M.height/2-v;break;case"top":w=P&&O?i-M.height/2-v:i+M.height+v}c.attr({cy:i,cx:g,j:s,val:n[a][s],barWidth:l}),m=this.drawCalculatedBarDataLabels({x:y,y:w,val:n[a][s],i:r,j:s,dataLabelsConfig:k})}return m}},{key:"drawCalculatedBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,r=t.j,n=t.dataLabelsConfig,o=this.w,l=new f.default(this.ctx),h=new u.default(this.ctx),c=n.formatter,d=null;if(n.enabled){d=h.group({class:"apexcharts-data-labels"});var p="";a&&(p=c(a,{seriesIndex:s,dataPointIndex:r,globals:o.globals})),l.plotDataLabelsText(e,i,p,s,r,d,n)}return d}},{key:"barEndingShape",value:function(t,e,i,a,s){var r=new u.default(this.ctx);if(this.isHorizontal){var n=null,o="",l=e.x;if(void 0!==i[a][s]||null!==i[a][s]){var h=i[a][s]<0,c=e.barHeight/2-e.strokeWidth;switch(h&&(c=-e.barHeight/2-e.strokeWidth),t.config.chart.stacked||("arrow"===this.barOptions.endingShape?l=e.x-c:"rounded"===this.barOptions.endingShape&&(l=e.x-c/2)),this.barOptions.endingShape){case"flat":n=r.line(l,e.barYPosition+e.barHeight-e.strokeWidth);break;case"arrow":n=r.line(l+c,e.barYPosition+(e.barHeight-e.strokeWidth)/2)+r.line(l,e.barYPosition+e.barHeight-e.strokeWidth),o=r.line(e.zeroW,e.barYPosition+e.barHeight-e.strokeWidth);break;case"rounded":n=r.quadraticCurve(l+c,e.barYPosition+(e.barHeight-e.strokeWidth)/2,l,e.barYPosition+e.barHeight-e.strokeWidth);break;default:n=r.line(l,e.barYPosition+e.barHeight-e.strokeWidth)}}return{path:n,ending_p_from:o,newX:l}}var d=null,f="",p=e.y;if(void 0!==i[a][s]||null!==i[a][s]){var g=i[a][s]<0,x=e.barWidth/2-e.strokeWidth;switch(g&&(x=-e.barWidth/2-e.strokeWidth),t.config.chart.stacked||("arrow"===this.barOptions.endingShape?p+=x:"rounded"===this.barOptions.endingShape&&(p+=x/2)),this.barOptions.endingShape){case"flat":d=r.line(e.barXPosition+e.barWidth-e.strokeWidth,p);break;case"arrow":d=r.line(e.barXPosition+(e.barWidth-e.strokeWidth)/2,p-x)+r.line(e.barXPosition+e.barWidth-e.strokeWidth,p),f=r.line(e.barXPosition+e.barWidth-e.strokeWidth,e.zeroH);break;case"rounded":d=r.quadraticCurve(e.barXPosition+(e.barWidth-e.strokeWidth)/2,p-x,e.barXPosition+e.barWidth-e.strokeWidth,p);break;default:d=r.line(e.barXPosition+e.barWidth-e.strokeWidth,p)}}return{path:d,ending_p_from:f,newY:p}}},{key:"setSelectedBarFilter",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 h.default(this.ctx).applyFilter(t,s.type,s.value)}}}}]),t}();e.default=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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(8),o=a(n),l=i(1),h=a(l),c=i(0),u=a(c),d=i(4),f=a(d),p=function(){function t(e){s(this,t),this.ctx=e,this.w=e.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.animBeginArr=[0],this.animDur=0;var i=this.w;this.centerY=i.globals.gridHeight/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360-i.config.plotOptions.radialBar.endAngle-i.config.plotOptions.radialBar.startAngle:this.fullAngle=360,this.size=0,this.donutSize=0,this.prevSectorAngleArr=[]}return r(t,[{key:"draw",value:function(t){for(var e=this,i=this.w,a=new u.default(this.ctx),s=a.group({class:"apexcharts-pie"}),r=i.config.fill.colors,n=void 0!==i.config.stroke.colors?i.config.stroke.colors:i.config.colors,o=0,l=0;l<t.length;l++)o+=h.default.negToZero(t[l]);for(var c=[],d=a.group(),f=0;f<t.length;f++){var p=Math.round(this.fullAngle*h.default.negToZero(t[f])/o);c.push(p)}if(i.globals.dataChanged){for(var g=0,x=0;x<i.globals.previousPaths.length;x++)g+=h.default.negToZero(i.globals.previousPaths[x]);for(var b=void 0,v=0;v<i.globals.previousPaths.length;v++)b=Math.round(this.fullAngle*h.default.negToZero(i.globals.previousPaths[v])/g),this.prevSectorAngleArr.push(b)}this.size=i.globals.gridWidth/2.05-i.config.stroke.width-i.config.chart.dropShadow.blur,void 0!==i.config.plotOptions.pie.size&&(this.size=i.config.plotOptions.pie.size),this.donutSize=this.size*parseInt(i.config.plotOptions.pie.donut.size)/100;var m=1+i.config.plotOptions.pie.customScale,y=i.globals.gridWidth/2,w=i.globals.gridHeight/2,k=y-i.globals.gridWidth/2*m,S=w-i.globals.gridHeight/2*m;if("donut"===i.config.chart.type){var A=a.drawCircle(this.donutSize);A.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background}),d.add(A)}var C=e.drawArcs(r,n,c,t);return d.attr({transform:"translate("+k+", "+S+") scale("+m+")"}),s.attr({"data:innerTranslateX":k,"data:innerTranslateY":S}),d.add(C),s.add(d),s}},{key:"drawArcs",value:function(t,e,i,a){var s=this.w,r=new f.default(this.ctx),n=new u.default(this.ctx),l=new o.default(this.ctx),c=n.group(),d=0,p=0,g=0,x=0;this.strokeWidth=s.config.stroke.show?s.config.stroke.width:0;for(var b=0;b<i.length;b++){var v=n.group({class:"apexcharts-series apexcharts-pie-series",id:"apexcharts-series-"+b,rel:b+1});c.add(v),d=g,p=x,g=d+i[b],x=p+this.prevSectorAngleArr[b];var m=g-d,y=l.fillPath(v,{seriesNumber:b,size:this.size}),w=n.drawPath({d:"",stroke:e instanceof Array?e[b]:e,strokeWidth:this.strokeWidth,fill:y,fillOpacity:s.config.fill.opacity,classes:"apexcharts-pie-area"});if(w.attr({id:"apexcharts-pieSlice-"+b}),s.config.chart.dropShadow.enabled){var k=s.config.chart.dropShadow;r.dropShadow(w,k)}w.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,w)),w.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,w)),u.default.setAttrs(w.node,{"data:angle":m,"data:startAngle":d,"data:strokeWidth":this.strokeWidth,"data:value":a[b]});var S=void 0;"pie"===s.config.chart.type?S=h.default.polarToCartesian(this.centerX,this.centerY,this.size/1.25+s.config.plotOptions.pie.dataLabels.offset,d+(g-d)/2):"donut"===s.config.chart.type&&(S=h.default.polarToCartesian(this.centerX,this.centerY,(this.size+this.donutSize)/2+s.config.plotOptions.pie.dataLabels.offset,d+(g-d)/2)),v.add(w);var A=0;if(!this.initialAnim||s.globals.resized||s.globals.dataChanged?this.animBeginArr.push(0):(A=(g-d)/this.fullAngle*s.config.chart.animations.speed,this.animDur=A+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(w,{endAngle:g,startAngle:d,i:b,totalItems:i.length-1,animBeginArr:this.animBeginArr,dur:A}),this.dynamicAnim&&s.globals.dataChanged&&this.animatePaths(w,{endAngle:g,startAngle:d,prevStartAngle:p,prevEndAngle:x,i:b,animateStartingPos:!0,animBeginArr:this.animBeginArr,dur:s.config.chart.animations.dynamicAnimation.speed}),w.click(this.pieClicked.bind(this,b)),s.config.dataLabels.enabled){var C=S.x,P=S.y,M=Math.round(100*(g-d)/360)+"%";if(0!==m){var T=s.config.dataLabels.formatter;void 0!==T&&(M=T(s.globals.seriesPercent[b][0],{seriesIndex:b,globals:s.globals}));var L=s.config.dataLabels.style.colors[b],z=n.drawText({x:C,y:P,text:M,textAnchor:"middle",fontSize:s.config.dataLabels.style.fontSize,foreColor:L});if(s.config.dataLabels.dropShadow.enabled){var X=s.config.dataLabels.dropShadow;new f.default(this.ctx).dropShadow(z,X)}z.node.classList.add("apexcharts-pie-label"),s.config.chart.animations.animate&&!1===s.globals.resized&&(z.node.classList.add("apexcharts-pie-label-delay"),z.node.style.animationDelay=s.config.chart.animations.speed/940+"s"),v.add(z)}}}return c}},{key:"animatePaths",value:function(t,e){var i=this.w,a=this,s=e.endAngle-e.startAngle,r=s,n=e.startAngle,o=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(n=e.prevEndAngle,r=e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(s+o>this.fullAngle?e.endAngle=e.endAngle-(s+o):s+o<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(s+o)))),s===this.fullAngle&&(s=this.fullAngle-.01),a.animateArc(t,n,o,s,r,e)}},{key:"animateArc",value:function(t,e,i,a,s,r){var n=this,o=this.w,l=n.size;l||(l=r.size);var h=void 0,c=r,u=a,d=i,f=e-i;o.globals.dataChanged&&(h=n.getPiePath({me:n,startAngle:d,angle:s,size:l}),t.attr({d:h})),0!==c.dur?t.animate(c.dur,o.globals.easing,c.animBeginArr[c.i]).afterAll(function(){"pie"!==o.config.chart.type&&"donut"!==o.config.chart.type||this.animate(300).attr({"stroke-width":o.config.stroke.width})}).during(function(s){u=f+(a-f)*s,r.animateStartingPos&&(d=f+(i-f)*s,u=e+(a-e)*s),h=n.getPiePath({me:n,startAngle:d,angle:u,size:l}),t.node.setAttribute("data:pathOrig",h),"pie"!==o.config.chart.type&&"donut"!==o.config.chart.type||t.attr({"stroke-width":0}),t.attr({d:h})}):(h=n.getPiePath({me:n,startAngle:d,angle:a,size:l}),t.node.setAttribute("data:pathOrig",h),t.attr({d:h}))}},{key:"pieClicked",value:function(t){var e=this.w,i=this,a=void 0,s=i.size+10,r=e.globals.dom.Paper.select("#apexcharts-pieSlice-"+t).members[0],n=r.attr("d");if("true"===r.attr("data:pieClicked")){s=i.size,r.attr({"data:pieClicked":"false"});var o=r.attr("data:pathOrig");return void r.attr({d:o})}var l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-pie-area");Array.prototype.forEach.call(l,function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");t.setAttribute("d",e)}),r.attr("data:pieClicked","true");var h=parseInt(r.attr("data:startAngle")),c=parseInt(r.attr("data:angle"));a=i.getPiePath({me:i,startAngle:h,angle:c,size:s}),r.plot(a).animate(1).plot(n).animate(100).plot(a)}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,a=t.angle,s=t.size,r=this.w,n=i,o=Math.PI*(n-90)/180,l=a+i;l>360&&(l=360);var c=Math.PI*(l-90)/180,u=e.centerX+s*Math.cos(o),d=e.centerY+s*Math.sin(o),f=e.centerX+s*Math.cos(c),p=e.centerY+s*Math.sin(c),g=h.default.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),x=h.default.polarToCartesian(e.centerX,e.centerY,e.donutSize,n),b=a>180?1:0;return"donut"===r.config.chart.type?["M",u,d,"A",s,s,0,b,1,f,p,"L",g.x,g.y,"A",e.donutSize,e.donutSize,0,b,0,x.x,x.y,"L",u,d,"z"].join(" "):"pie"===r.config.chart.type?["M",u,d,"A",s,s,0,b,1,f,p,"L",e.centerX,e.centerY,"L",u,d].join(" "):["M",u,d,"A",s,s,0,b,1,f,p].join(" ")}}]),t}();e.default=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")}var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(14),o=a(n),l=i(8),h=a(l),c=i(4),u=a(c),d=i(0),f=a(d),p=i(34),g=a(p),x=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.radiusSizes=[]}return r(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new o.default(this.ctx),r=new f.default(this.ctx),n=new u.default(this.ctx),l=new h.default(this.ctx),c=i.realIndex,d=i.pointsPos,p=i.zRatio,x=i.elParent,b=l.fillPath(t,{seriesNumber:c}),v=r.group({class:"apexcharts-series-markers apexcharts-series-"+a.config.chart.type});if(d.x instanceof Array)for(var m=0;m<d.x.length;m++){var y=e+1;0===e&&0===m&&(y=0),0===e&&1===m&&(y=1);var w=0,k=a.config.markers.size;p!==1/0&&(k=a.globals.seriesZ[c][y]/p,void 0===this.radiusSizes[c]&&this.radiusSizes.push([]),this.radiusSizes[c].push(k)),a.config.chart.animations.enabled||(w=k);var S=d.x[m],A=d.y[m];if(S=S||0,A=A||0,w=w||0,0===S&&0===A||void 0===a.globals.series[c][y])return;var C=r.drawCircle(w);if(C.attr({cx:S,cy:A,fill:b}),a.config.chart.dropShadow.enabled&&n.dropShadow(C,{top:a.config.chart.dropShadow.top,left:a.config.chart.dropShadow.left,blur:a.config.chart.dropShadow.blur}),this.initialAnim&&!a.globals.dataChanged){var P=1;a.globals.resized||(P=a.config.chart.animations.speed),s.animateCircleRadius(C,0,k,P)}if(a.globals.dataChanged)if(this.dynamicAnim){var M=a.config.chart.animations.dynamicAnimation.speed,T=void 0,L=void 0,z=void 0,X=a.globals.previousPaths[c][e];void 0!==X&&(T=X.x,L=X.y,z=void 0!==X.r?X.r:k);for(var E=0;E<a.globals.collapsedSeries.length;E++)a.globals.collapsedSeries[E].index===c&&(M=1,k=0);0===S&&0===A&&(k=0),a.globals.risingSeries.includes(c),s.animateCircle(C,{cx:T,cy:L,r:z},{cx:S,cy:A,r:k},M)}else C.attr({r:k});C.attr({rel:y,j:y,index:c});var Y=new g.default(this.ctx);Y.setSelectedPointFilter(C,c,y),Y.addEvents(C),C.node.classList.add("apexcharts-marker"),v.add(C),x.add(v)}}},{key:"centerTextInBubble",value:function(t,e,i){var a=this.w;return t+=parseInt(a.config.dataLabels.style.fontSize)/4,{y:t}}}]),t}();t.exports=x},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(37),o=a(n),l=i(21),h=a(l),c=i(0),u=a(c),d=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[]}return r(t,[{key:"calculateTimeScaleTicks",value:function(){var t=this,e=this.w;if(e.globals.allSeriesCollapsed)return e.globals.labels=[],e.globals.timelineLabels=[],[];var i=new o.default(this.ctx),a=(e.globals.maxX-e.globals.minX)/864e5;this.determineInterval(a);var s=i.getTimeUnitsfromTimestamp(e.globals.minX,e.globals.maxX),r=e.globals.gridWidth/a,n=r/24,l=n/60,c=Math.floor(24*a),u=Math.floor(a),d=Math.floor(a/30),f=Math.floor(a/365),p={minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},g=p.minDate,x=p.minDate,b=p.minMonth,v=p.minYear,m={firstVal:p,currentMonthDate:g,currentDate:x,currentMonth:b,currentYear:v,daysWidthOnXAxis:r,hoursWidthOnXAxis:n,minutesWidthOnXAxis:l,numberOfHours:c,numberOfDays:u,numberOfMonths:d,numberOfYears:f};switch(this.tickInterval){case"years":this.generateYearScale(m);break;case"months":case"half_year":this.generateMonthScale(m);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(m);break;case"hours":this.generateHourScale(m)}var y=this.timeScaleArray.map(function(t){return"month"===t.unit?{position:t.position,value:t.value+1,unit:t.unit,year:t.year,month:t.month+1}:"day"===t.unit||"hour"===t.unit?{position:t.position,value:t.value,unit:t.unit,year:t.year,month:t.month+1}:t}),w=y.filter(function(i,a){var s=1,r=Math.ceil(e.globals.gridWidth/120),n=i.value;void 0!==e.config.xaxis.tickAmount&&(r=e.config.xaxis.tickAmount),y.length>r&&(s=Math.floor(y.length/r));var o=!1,l=!1;switch(t.tickInterval){case"half_year":s=7,"year"===i.unit&&(o=!0);break;case"months":s=1,"year"===i.unit&&(o=!0);break;case"months_fortnight":s=15,"year"!==i.unit&&"month"!==i.unit||(o=!0),30===n&&(l=!0);break;case"months_days":s=10,"month"===i.unit&&(o=!0),30===n&&(l=!0);break;case"week_days":s=8,"month"===i.unit&&(o=!0);break;case"days":s=1,"month"===i.unit&&(o=!0);break;case"hours":"day"===i.unit&&(o=!0);break;default:o=!1}if((n%s==0||o)&&!l)return!0}),k=this.formatDates(w),S=this.removeOverlappingTS(k);return e.globals.timelineLabels=S.slice(),new h.default(this.ctx).plotCoords(),w}},{key:"determineInterval",value:function(t){switch(!0){case t>1825:this.tickInterval="years";break;case t>800&&t<=1825:this.tickInterval="half_year";break;case t>180&&t<=800:this.tickInterval="months";break;case t>90&&t<=180:this.tickInterval="months_fortnight";break;case t>60&&t<=90:this.tickInterval="months_days";break;case t>30&&t<=60:this.tickInterval="week_days";break;case t>2&&t<=30:this.tickInterval="days";break;case t<=2:this.tickInterval="hours";break;default:this.tickInterval="days"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,n=e.minYear,l=0,h=new o.default(this.ctx);if(e.minDate>1&&e.minMonth>0){var c=h.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);l=(h.determineDaysOfYear(e.minYear)-c+1)*s,n=e.minYear+1,this.timeScaleArray.push({position:l,value:n,unit:"year",year:n,month:this.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:l,value:n,unit:"year",year:a,month:this.monthMod(i+1)});for(var u=n,d=l,f=0;f<r;f++)u++,d=h.determineDaysOfYear(u-1)*s+d,this.timeScaleArray.push({position:d,value:u,unit:"year",year:u,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,a=t.currentMonth,s=t.currentYear,r=t.daysWidthOnXAxis,n=t.numberOfMonths,l=a,h=0,c=new o.default(this.ctx),u="month",d=0;if(e.minDate>1){h=(c.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,l=this.monthMod(a+1);var f=s+d,p=this.monthMod(l),g=l;0===l&&(u="year",g=f,p=1,d+=1,f+=d),this.timeScaleArray.push({position:h,value:g,unit:u,year:f,month:p})}else this.timeScaleArray.push({position:h,value:l,unit:u,year:s,month:this.monthMod(a)});for(var x=l+1,b=h,v=0,m=1;v<n;v++,m++){x=this.monthMod(x),0===x?(u="year",d+=1):u="month";var y=s+Math.floor(x/12)+d;b=c.determineDaysOfMonths(x,y)*r+b;var w=0===x?y:x;this.timeScaleArray.push({position:b,value:w,unit:u,year:y,month:0===x?1:x}),x++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.hoursWidthOnXAxis,r=t.numberOfDays,n=new o.default(this.ctx),l="day",h=function(t,e,i){return t>n.determineDaysOfMonths(e+1,i)?(e+=1,f=1,l="month",e):e},c=24-e.minHour,u=c*s,d=e.minDate+1,f=d,p=h(f,i,a);this.timeScaleArray.push({position:u,value:d,unit:l,year:a,month:this.monthMod(p)});for(var g=u,x=0;x<r;x++){f+=1,l="day",p=h(f,p,a+Math.floor(p/12)+0);var b=a+Math.floor(p/12)+0;g=24*s+g;var v=1===f?this.monthMod(p):f;this.timeScaleArray.push({position:g,value:v,unit:l,year:b,month:this.monthMod(p)})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,a=t.currentMonth,s=t.currentYear,r=t.minutesWidthOnXAxis,n=t.numberOfHours,l=new o.default(this.ctx),h="hour",c=function(t,e){return t>l.determineDaysOfMonths(e+1,s)?e+=1:e},u=60-e.minMinute,d=u*r,f=e.minHour+1,p=f+1,g=i,x=c(g,a);this.timeScaleArray.push({position:d,value:f,unit:h,day:g,year:s,month:this.monthMod(x)});for(var b=d,v=0;v<n;v++){if(h="hour",p>=24){p=0,g+=1,h="day";var m=function(t,e){return t>l.determineDaysOfMonths(e+1,s)&&(g=1,e+=1),{month:e,date:g}}(g,x);x=m.month,x=c(g,x)}var y=s+Math.floor(x/12)+0;b=60*r+b;var w=0===p?g:p;this.timeScaleArray.push({position:b,value:w,unit:h,day:g,year:y,month:this.monthMod(x)}),p++}}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(t){var a=t.value.toString(),s=new o.default(e.ctx),r=t.year;if(r+="-"+("0"+t.month.toString()).slice(-2),r+="day"===t.unit?"-"+("0"+a).slice(-2):"-01",r+="hour"===t.unit?"T"+("0"+a).slice(-2)+":00:00":"T00:00:00",r=new Date(Date.parse(r)),void 0===i.config.xaxis.labels.format){var n="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(n=l.year),"month"===t.unit&&(n=l.month),"day"===t.unit&&(n=l.day),"hour"===t.unit&&(n=l.hour),a=s.formatDate(r,n)}else a=s.formatDate(r,i.config.xaxis.labels.format);return{position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(t){var e=new u.default(this.ctx),i=0,a=t.map(function(a,s){if(s>0){var r=e.getTextRects(t[i].value).width,n=t[i].position;return a.position>n+r+10?(i=s,a):null}return a});return a=a.filter(function(t){return null!==t})}},{key:"monthMod",value:function(t){return t%12}}]),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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(106),h=a(l),c=i(134),u=a(c),d=i(137),f=a(d),p=i(132),g=a(p),x=i(135),b=a(x),v=i(133),m=a(v),y=i(136),w=a(y),k=i(131),S=a(k),A=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"createToolbar",value:function(){var t=this.w;this.elToolbarWrap=document.createElement("div"),this.elToolbarWrap.setAttribute("class","apexcharts-toolbar"),t.globals.dom.elWrap.appendChild(this.elToolbarWrap),this.elZoom=document.createElement("div"),this.elZoomIn=document.createElement("div"),this.elZoomOut=document.createElement("div"),this.elPan=document.createElement("div"),this.elSelection=document.createElement("div"),this.elZoomReset=document.createElement("div"),this.elCamera=document.createElement("div");var e=[];t.config.chart.toolbar.tools.download&&e.push({el:this.elCamera,icon:S.default,title:"Download SVG",class:"apexcharts-download-icon"}),t.config.chart.toolbar.tools.selection&&e.push({el:this.elSelection,icon:w.default,title:"Select",class:"apexcharts-selection-icon"}),t.config.chart.toolbar.tools.zoomin&&t.config.chart.zoom.enabled&&e.push({el:this.elZoomIn,icon:b.default,title:"Zoom In",class:"apexcharts-zoom-in-icon"}),t.config.chart.toolbar.tools.zoomout&&t.config.chart.zoom.enabled&&e.push({el:this.elZoomOut,icon:m.default,title:"Zoom Out",class:"apexcharts-zoom-out-icon"}),t.config.chart.toolbar.tools.zoom&&t.config.chart.zoom.enabled&&e.push({el:this.elZoom,icon:f.default,title:"Zoom",class:"apexcharts-zoom-icon"}),t.config.chart.toolbar.tools.pan&&(t.config.chart.zoom.enabled||t.config.chart.scroller.enabled)&&e.push({el:this.elPan,icon:u.default,title:"Panning",class:"apexcharts-pan-icon"}),t.config.chart.toolbar.tools.reset&&e.push({el:this.elZoomReset,icon:g.default,title:"Reset Zoom",class:"apexcharts-reset-zoom-icon"});for(var i=0;i<e.length;i++)o.default.setAttrs(e[i].el,{class:e[i].class,title:e[i].title}),e[i].el.innerHTML=e[i].icon,this.elToolbarWrap.appendChild(e[i].el);t.globals.zoomEnabled?this.elZoom.classList.add("selected"):t.globals.panEnabled?this.elPan.classList.add("selected"):t.globals.selectionEnabled&&this.elSelection.classList.add("selected"),this.addToolbarEventListeners()}},{key:"addToolbarEventListeners",value:function(){this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleSelection.bind(this)),this.elZoom.addEventListener("click",this.toggleZooming.bind(this)),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elCamera.addEventListener("click",this.downloadSVG.bind(this))}},{key:"toggleSelection",value:function(){this.toggleOtherControls(),this.w.globals.selectionEnabled=!this.w.globals.selectionEnabled,this.elSelection.classList.contains("selected")?this.elSelection.classList.remove("selected"):this.elSelection.classList.add("selected")}},{key:"toggleZooming",value:function(){this.toggleOtherControls(),this.w.globals.zoomEnabled=!this.w.globals.zoomEnabled,this.elZoom.classList.contains("selected")?this.elZoom.classList.remove("selected"):this.elZoom.classList.add("selected")}},{key:"togglePanning",value:function(){this.toggleOtherControls(),this.w.globals.panEnabled=!this.w.globals.panEnabled,this.elPan.classList.contains("selected")?this.elPan.classList.remove("selected"):this.elPan.classList.add("selected")}},{key:"toggleOtherControls",value:function(){var t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.elPan.classList.remove("selected"),this.elSelection.classList.remove("selected"),this.elZoom.classList.remove("selected")}},{key:"handleZoomIn",value:function(){var t=this.w,e=(t.globals.minX+t.globals.maxX)/2,i=(t.globals.minX+e)/2,a=(t.globals.maxX+e)/2;this.ctx.updateOptions({xaxis:{min:i,max:a}},!1,t.globals.initialConfig.chart.animations.dynamicAnimation.enabled)}},{key:"handleZoomOut",value:function(){var t=this.w,e=(t.globals.minX+t.globals.maxX)/2,i=t.globals.minX-(e-t.globals.minX),a=t.globals.maxX-(e-t.globals.maxX);i<t.globals.initialminX/1.00001||this.ctx.updateOptions({xaxis:{min:i,max:a}},!1,t.globals.initialConfig.chart.animations.dynamicAnimation.enabled)}},{key:"downloadSVG",value:function(){new h.default(this.ctx).exportToSVG()}},{key:"handleZoomReset",value:function(t){var e=this.w,i=this,a=e.config.yaxis,s=e.config.xaxis;e.globals.zoomed=!1,e.globals.minX===e.globals.initialminX&&e.globals.maxX===e.globals.initialmaxX||(e.config.yaxis.map(function(t,e){a[e].min=void 0,a[e].max=void 0}),s.min=void 0,s.max=void 0,i.ctx.updateOptions(e.globals.initialConfig,!1,e.globals.initialConfig.chart.animations.dynamicAnimation.enabled))}}]),t}();t.exports=A},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(15),h=a(l),c=function(){function t(e){s(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return r(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=t-i.xcrosshairsWidth/2,r=a.globals.labels.slice().length;if(null!==e&&(s=a.globals.gridWidth/r*e),"tickWidth"===a.config.xaxis.crosshairs.width||"barWidth"===a.config.xaxis.crosshairs.width?(i.isBarShared,s+i.xcrosshairsWidth>a.globals.gridWidth&&(s=a.globals.gridWidth-i.xcrosshairsWidth),s<0&&(s=0)):null!==e&&(s+=a.globals.gridWidth/r/2),null!==i.xcrosshairs&&(i.xcrosshairs.setAttribute("x",s),i.xcrosshairs.classList.add("active")),i.blxaxisTooltip){var n=s;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(n=s+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&(o.default.setAttrs(e.ycrosshairs,{y1:t,y2:t}),o.default.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t}))}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("active");var a=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=e.globals.translateX;var s=0;s=new o.default(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;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1")),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect(),n=r.height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),s-=n/2,e.globals.ignoreYAxisIndexes.includes(t)?i.yaxisTTEls[t].classList.remove("active"):(i.yaxisTTEls[t].classList.add("active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.tooltipRect,n=null!==i?parseInt(i):1,o=parseInt(t)+n+5,l=parseInt(e)+n/2;o>a.globals.gridWidth/2&&(o=o-r.ttWidth-n-15),o>a.globals.gridWidth-r.ttWidth-10&&(o=a.globals.gridWidth-r.ttWidth),o<-20&&(o=-20),a.config.tooltip.followCursor&&(l=s.e.clientY-s.seriesBound.top-r.ttHeight/2),r.ttHeight+l>a.globals.gridHeight&&(l=a.globals.gridHeight-r.ttHeight/2-n),isNaN(o)||(o+=a.globals.translateX,s.tooltip.style.left=o+"px",s.tooltip.style.top=l+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.config.markers.size>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='"+t+"'] .apexcharts-marker"),r=0;r<s.length;r++)parseInt(s[r].getAttribute("rel"))===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,s[r]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i=this.w,a=this.ttCtx,s=0,r=0,n=i.globals.pointsArray,o=i.config.markers.hover.size;s=n[e][t][0],r=n[e][t][1]?n[e][t][1]:0;var l=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='"+e+"'] .apexcharts-series-markers circle");l.setAttribute("r",o),l.setAttribute("cx",s),l.setAttribute("cy",r),this.moveXCrosshairs(s),a.fixedTooltip||this.moveTooltip(s,r,o)}},{key:"moveDynamicPointsOnHover",value:function(t){var e=this.ttCtx,i=e.w,a=0,s=0,r=0,n=i.globals.pointsArray;r=new h.default(this.ctx).getActiveSeriesIndex();var o=i.config.markers.hover.size;n[r]&&(a=n[r][t][0],s=n[r][t][1]);var l=null;if(null!==(l=null!==e.allPoints?e.allPoints:i.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers circle")))for(var c=0;c<l.length;c++){var u=n[c];if(u&&u.length&&void 0!==u){var d=n[c][t][1];l[c].setAttribute("cx",a);var f=parseInt(l[c].parentNode.parentNode.parentNode.getAttribute("data:realIndex"));null!==d?(l[f]&&l[f].setAttribute("r",o),l[f]&&l[f].setAttribute("cy",d)):l[f]&&l[f].setAttribute("r",0)}}if(this.moveXCrosshairs(a),!e.fixedTooltip){var p=s||i.globals.gridHeight;this.moveTooltip(a,p,o)}}},{key:"moveStickyTooltipOverBars",value:function(t){var e=this.w,i=this.ttCtx,a=e.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='1'] path[j='"+t+"']"),s=a?parseFloat(a.getAttribute("cx")):0,r=0,n=a?parseFloat(a.getAttribute("barWidth")):0;e.globals.dataXY?s-=n/2:(s=i.xAxisTicksPositions[t-1]+i.dataPointsDividedWidth/2,Number.isNaN(s)&&(s=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2));var o=e.globals.dom.baseEl.querySelector(".apexcharts-grid"),l=o.getBoundingClientRect();if(r=i.e.clientY-l.top-i.tooltipRect.ttHeight/2,this.moveXCrosshairs(s),!i.fixedTooltip){var h=r||e.globals.gridHeight;this.moveTooltip(s,h)}}}]),t}();t.exports=c},function(t,e,i){"use strict";function a(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return r(t,[{key:"getNearestValues",value:function(t){var e=(t.context,t.hoverArea),i=t.elGrid,a=t.clientX,s=t.clientY,r=(t.plotSeriesWidth,t.hasBars),n=this.w,o=n.globals.gridWidth,l=o/(n.globals.dataPoints-1),h=i.getBoundingClientRect();(r&&n.globals.comboCharts||r)&&(l=o/n.globals.dataPoints);var c=a-h.left,u=s-h.top;c<0||u<0||c>n.globals.gridWidth||u>n.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):n.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):n.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var d=Math.round(c/l);r&&(d=Math.ceil(c/l),d-=1);for(var f=null,p=null,g=[],x=[],b=0;b<n.globals.seriesXvalues.length;b++)g.push([n.globals.seriesXvalues[b][0]-1e-6].concat(n.globals.seriesXvalues[b]));return g=g.map(function(t){return t.filter(function(t){return t})}),x=n.globals.seriesYvalues.map(function(t){return t.filter(function(t){return t})}),n.globals.dataXY&&(p=this.closestInMultiArray(c,u,g,x),f=p.index,d=p.j,null!==f&&(g=n.globals.seriesXvalues[f],p=this.closestInArray(c,g),d=p.index)),(!d||d<1)&&(d=0),{capturedSeries:f,j:d,hoverX:c,hoverY:u}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,n=null,o=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):n=0;var l=a[r][0],h=i[r][0],c=Math.abs(t-h),u=Math.abs(e-l),d=u+c;return a.map(function(s,r){s.map(function(s,l){var h=Math.abs(e-a[r][l]),f=Math.abs(t-i[r][l]),p=f+h;p<d&&(d=p,c=f,u=h,n=r,o=l)})}),{index:n,j:o}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=t.map(function(t,e){return t.length>0?e:-1}),a=0;a<i.length;a++)if(-1!==i[a]){e=i[a];break}return e}},{key:"closestInArray",value:function(t,e){for(var i=e[0],a=null,s=Math.abs(t-i),r=0;r<e.length;r++){var n=Math.abs(t-e[r]);n<s&&(s=n,i=e[r],a=r)}return{index:a}}},{key:"isXoverlap",value:function(t){var e=this.w,i=[],a=e.globals.seriesX.filter(function(t){return void 0!==t[0]});if(a.length>0)for(var s=0;s<a.length-1;s++)void 0!==a[s][t]&&void 0!==a[s+1][t]&&a[s][t]!==a[s+1][t]&&i.push("unEqual");return 0===i.length}},{key:"isinitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"isSeriesSameLen",value:function(){for(var t=!0,e=this.filteredSeriesX(),i=0;i<e.length-1;i++)if(e[i][0]!==e[i+1][0]){t=!1;break}return t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t,e){return t.length>0?t:[]})}},{key:"getBarsHeight",value:function(t){return[].concat(a(t)).reduce(function(t,e){return t+e.getBBox().height},0)}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s<a.length;s++)"enable"===t?(a[s].classList.add("active"),a[s].style.display=e.config.tooltip.items.display):(a[s].classList.remove("active"),a[s].style.display="none")}}]),t}();t.exports=n},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),o=i(120),l=a(o),h=i(1),c=a(h),u=i(60),d=a(u),f=function(){function t(e){s(this,t),this.opts=e}return n(t,[{key:"init",value:function(){var t=this.opts,e=new d.default,i=new l.default(t);void 0===t.yaxis&&(t.yaxis={}),this.chartType=t.chart.type,"histogram"===this.chartType&&(t.chart.type="bar",t=c.default.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},t)),void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[]);var a=function(t,e){var i=[];return t.map(function(t){i.push(c.default.extend(e,t))}),t=i};t.yaxis.constructor!==Array?t.yaxis=[c.default.extend(u.yAxis,t.yaxis)]:t.yaxis=a(t.yaxis,u.yAxis),t.annotations.xaxis=a(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],u.xAxisAnnotation),t.annotations.yaxis=a(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],u.yAxisAnnotation),t.annotations.points=a(void 0!==t.annotations.points?t.annotations.points:[],u.pointAnnotation);var s=e.init(),n={};if(t&&"object"===(void 0===t?"undefined":r(t))){var o={};switch(this.chartType){case"line":o=i.line();break;case"area":o=i.area();break;case"bar":case"histogram":o=i.bar();break;case"bubble":o=i.bubble();break;case"scatter":o=i.scatter();break;case"heatmap":o=i.heatmap();break;case"pie":o=i.pie();break;case"donut":o=i.donut();break;case"radialBar":o=i.radialBar();break;default:o=i.line()}t.chart.stacked&&"100%"===t.chart.stackType&&i.stacked100(),n=c.default.extend(s,o)}var h=c.default.extend(n,window.Apex);return s=c.default.extend(h,t),s=this.handleUserInputErrors(s)}},{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("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if("datetime"===e.xaxis.type)throw new Error("Timelines on bars are not supported yet. Switch to column chart by setting plotOptions.bar.horizontal=false");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.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("barWidth is only supported in single series, not 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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=e.xAxisAnnotation={x:0,strokeDashArray:4,borderColor:"#c2c2c2",offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:"#777",fontSize:"12px",cssClass:"apexcharts-xaxis-annotation-label",padding:{left:5,right:5,top:2,bottom:2}}}},n=e.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:0,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",radius:2},label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",offsetX:0,offsetY:-15,style:{background:"#fff",color:"#777",fontSize:"12px",cssClass:"apexcharts-point-annotation-label",padding:{left:5,right:5,top:0,bottom:2}}}},o=e.yAxisAnnotation={y:0,strokeDashArray:4,borderColor:"#c2c2c2",offsetX:0,offsetY:0,yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:"#777",fontSize:"12px",cssClass:"apexcharts-yaxis-annotation-label",padding:{left:5,right:5,top:0,bottom:2}}}},l=e.yAxis={opposite:!1,tickAmount:6,max:void 0,min:void 0,floating:!1,labels:{show:!0,maxWidth:160,offsetX:0,offsetY:0,style:{colors:[],fontSize:"12px",cssClass:"apexcharts-yaxis-label"},formatter:void 0},axisBorder:{show:!1,color:"#78909C",offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#78909C",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"12px",cssClass:"apexcharts-yaxis-title"}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},h=function(){function t(){a(this,t)}return s(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[o],xaxis:[r],points:[n]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",foreColor:"#373d3f",dropShadow:{enabled:!1,enabledSeries:void 0,top:2,left:2,blur:4,opacity:.35},events:{beforeMount:void 0,mounted:void 0,updated:void 0,clicked:void 0,selection:void 0,dataPointSelection:void 0,zoomed:void 0,scrolled:void 0},height:"auto",offsetX:0,offsetY:0,scroller:{enabled:!1,height:30,track:{height:2,background:"#e0e0e0"},thumb:{height:2,background:"#008FFB"},scrollButtons:{enabled:!0,size:6,borderWidth:2,borderColor:"#c3c3c3",fillColor:"#fff"},padding:{left:10,right:10},offsetX:0,offsetY:0},selection:{enabled:!0,type:"x",selectedPoints:void 0,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},stacked:!1,stackType:"normal",toolbar:{show:!0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}},type:"line",width:"100%",zoom:{enabled:!0,type:"x",zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{bar:{horizontal:!1,endingShape:"flat",columnWidth:"70%",barHeight:"70%",distributed:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1},dataLabels:{position:"top"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,colorScale:{ranges:[]}},radialBar:{size:void 0,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,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,opacity:.5}},dataLabels:{showOn:"always",name:{show:!0,fontSize:"22px",color:void 0,offsetY:-10},value:{show:!0,fontSize:"16px",color:void 0,offsetY:16,formatter:function(t){return t+"%"}}}},pie:{size:void 0,donut:{size:"65%",background:"transparent"},customScale:0,offsetX:0,offsetY:0,dataLabels:{offset:0}}},colors:void 0,dataLabels:{enabled:!0,formatter:function(t){return t},textAnchor:"middle",offsetX:0,offsetY:0,style:{fontSize:"14px",colors:void 0},dropShadow:{enabled:!1,top:1,left:1,blur:1,opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.9,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100]},image:{src:[],width:void 0,height:void 0},pattern:{style:"sqaures",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1,animate:!1}},yaxis:{lines:{show:!0,animate:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:10}},labels:[],legend:{show:!0,floating:!1,position:"bottom",horizontalAlign:"center",verticalAlign:"middle",fontSize:"14px",textAnchor:"start",offsetY:0,offsetX:0,formatter:void 0,labels:{color:void 0,useSeriesColors:!1},markers:{size:6,strokeWidth:0,strokeColor:"#fff",offsetX:0,offsetY:0,shape:"circle",radius:2},itemMargin:{horizontal:20,vertical:5},containerMargin:{left:5,top:4,right:0,bottom:0},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColor:"#fff",strokeWidth:2,strokeOpacity:.9,fillOpacity:1,shape:"circle",radius:2,offsetX:0,offsetY:0,hover:{size:6}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:"#888",fontSize:"16px"}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.15}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.35}}},title:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"16px",color:"#263238"}},subtitle:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",color:"#9699a2"}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,onDatasetHover:{highlightDataSeries:!1},theme:"light",x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:-100,offsetY:0}},xaxis:{type:"category",categories:[],labels:{show:!0,rotate:-45,rotateAlways:!1,trim:!0,maxHeight:120,style:{colors:[],fontSize:"12px",cssClass:"apexcharts-xaxis-label"},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm"}},axisBorder:{show:!0,color:"#78909C",offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#78909C",height:6,offsetX:0,offsetY:0},tickAmount:void 0,min:void 0,max:void 0,range:void 0,floating:!1,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",cssClass:"apexcharts-xaxis-title"}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:0,dashArray:0},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}},yaxis:l,theme:{palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}();e.default=h},function(t,e,i){"use strict";(function(){function t(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function e(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,a=[];e<i;e++)a.push(t[e]);return a.join(" ")}function i(){var t=function(){};"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1));for(var e in arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}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(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,a,s){return this.put(new SVG.DisplacementMapEffect(t,e,i,a,s))},specularLighting:function(t,e,i,a){return this.put(new SVG.SpecularLightingEffect(t,e,i,a))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,a,s){return this.put(new SVG.TurbulenceEffect(t,e,i,a,s))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&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(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var a={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,a){return this.parent()&&this.parent().displacementMap(this,t,e,i,a)},specularLighting:function(t,e,i,a){return this.parent()&&this.parent().specularLighting(t,e,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,a,s){return this.parent()&&this.parent().turbulence(t,e,i,a,s).in(this)}};SVG.extend(SVG.Effect,a),SVG.extend(SVG.ParentEffect,a),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var s={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(e,i){"matrix"==e&&(i=t(i)),this.attr({type:e,values:void 0===i?null:i})},convolveMatrix:function(e){e=t(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,a,s){this.attr({in:t,in2:e,scale:i,xChannelSelector:a,yChannelSelector:s})},gaussianBlur:function(t,i){null!=t||null!=i?this.attr("stdDeviation",e(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,a,s){this.attr({numOctaves:e,seed:i,stitchTiles:a,baseFrequency:t,type:s})}},r={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each(function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))})}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t){t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb);for(var e in t)this[e].attr(t[e])}},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,a){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:a})}},n={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,a,s,r){this.attr({x:t,y:e,z:i,pointsAtX:a,pointsAtY:s,pointsAtZ:r})},mergeNode:function(t){this.attr("in",t)}};["r","g","b","a"].forEach(function(t){n["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),i(s,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1),a={};SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:a})}),i(r,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1),a={};SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:a})}),i(n,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1),a={};SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:a})}),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0)},function(t,e,i){"use strict";var a,s="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};!function(s,r){void 0!==(a=function(){return r(s,s.document)}.call(e,i,e,t))&&(t.exports=a)}("undefined"!=typeof window?window:void 0,function(t,e){function i(t,e,i,a){return i+a.replace(w.regex.dots," .")}function a(t){for(var e=t.slice(0),i=e.length;i--;)Array.isArray(e[i])&&(e[i]=a(e[i]));return e}function r(t,e){return t instanceof e}function n(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}function o(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function l(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return 4==t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function c(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function u(t,e,i){if(null==e||null==i){var a=t.bbox();null==e?e=a.width/a.height*i:null==i&&(i=a.height/a.width*e)}return{width:e,height:i}}function d(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function f(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function p(t){return t instanceof w.Matrix||(t=new w.Matrix(t)),t}function g(t,e){t.cx=null==t.cx?e.bbox().cx:t.cx,t.cy=null==t.cy?e.bbox().cy:t.cy}function x(t){for(var e=0,i=t.length,a="";e<i;e++)a+=t[e][0],null!=t[e][1]&&(a+=t[e][1],null!=t[e][2]&&(a+=" ",a+=t[e][2],null!=t[e][3]&&(a+=" ",a+=t[e][3],a+=" ",a+=t[e][4],null!=t[e][5]&&(a+=" ",a+=t[e][5],a+=" ",a+=t[e][6],null!=t[e][7]&&(a+=" ",a+=t[e][7])))));return a+" "}function b(e){for(var i=e.childNodes.length-1;i>=0;i--)e.childNodes[i]instanceof t.SVGElement&&b(e.childNodes[i]);return w.adopt(e).id(w.eid(e.nodeName))}function v(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function m(t){var e=(t||"").toString().match(w.regex.reference);if(e)return e[1]}function y(t){return Math.abs(t)>1e-37?t:0}var w=(this||t).SVG=function(t){if(w.supported)return t=new w.Doc(t),w.parser.draw||w.prepare(),t};if(w.ns="http://www.w3.org/2000/svg",w.xmlns="http://www.w3.org/2000/xmlns/",w.xlink="http://www.w3.org/1999/xlink",w.svgjs="http://svgjs.com/svgjs",w.supported=function(){return!!e.createElementNS&&!!e.createElementNS(w.ns,"svg").createSVGRect}(),!w.supported)return!1;w.did=1e3,w.eid=function(t){return"Svgjs"+l(t)+w.did++},w.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},w.extend=function(){var t,e,i,a;for(t=[].slice.call(arguments),e=t.pop(),a=t.length-1;a>=0;a--)if(t[a])for(i in e)t[a].prototype[i]=e[i];w.Set&&w.Set.inherit&&w.Set.inherit()},w.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,w.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&w.extend(e,t.extend),t.construct&&w.extend(t.parent||w.Container,t.construct),e},w.adopt=function(e){if(!e)return null;if(e.instance)return e.instance;var i;return i="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new w.Nested:new w.Doc:"linearGradient"==e.nodeName?new w.Gradient("linear"):"radialGradient"==e.nodeName?new w.Gradient("radial"):w[l(e.nodeName)]?new(w[l(e.nodeName)]):new w.Element(e),i.type=e.nodeName,i.node=e,e.instance=i,i instanceof w.Doc&&i.namespace().defs(),i.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),i},w.prepare=function(){var t=e.getElementsByTagName("body")[0],i=(t?new w.Doc(t):w.adopt(e.documentElement).nested()).size(2,0);w.parser={body:t||e.documentElement,draw:i.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:i.polyline().node,path:i.path().node,native:w.create("svg")}},w.parser={native:w.create("svg")},e.addEventListener("DOMContentLoaded",function(){w.parser.draw||w.prepare()},!1),w.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},w.utils={map:function(t,e){var i,a=t.length,s=[];for(i=0;i<a;i++)s.push(e(t[i]));return s},filter:function(t,e){var i,a=t.length,s=[];for(i=0;i<a;i++)e(t[i])&&s.push(t[i]);return s},radians:function(t){return t%360*Math.PI/180},degrees:function(t){return 180*t/Math.PI%360},filterSVGElements:function(e){return this.filter(e,function(e){return e instanceof t.SVGElement})}},w.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},w.Color=function(t){var e;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?w.regex.isRgb.test(t)?(e=w.regex.rgb.exec(t.replace(w.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):w.regex.isHex.test(t)&&(e=w.regex.hex.exec(h(t)),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===(void 0===t?"undefined":s(t))&&(this.r=t.r,this.g=t.g,this.b=t.b))},w.extend(w.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+c(this.r)+c(this.g)+c(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new w.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new w.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),w.Color.test=function(t){return t+="",w.regex.isHex.test(t)||w.regex.isRgb.test(t)},w.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},w.Color.isColor=function(t){return w.Color.isRgb(t)||w.Color.test(t)},w.Array=function(t,e){t=(t||[]).valueOf(),0==t.length&&e&&(t=e.valueOf()),this.value=this.parse(t)},w.extend(w.Array,{morph:function(t){if(this.destination=this.parse(t),this.value.length!=this.destination.length){for(var e=this.value[this.value.length-1],i=this.destination[this.destination.length-1];this.value.length>this.destination.length;)this.destination.push(i);for(;this.value.length<this.destination.length;)this.value.push(e)}return this},settle:function(){for(var t=0,e=this.value.length,i=[];t<e;t++)-1==i.indexOf(this.value[t])&&i.push(this.value[t]);return this.value=i},at:function(t){if(!this.destination)return this;for(var e=0,i=this.value.length,a=[];e<i;e++)a.push(this.value[e]+(this.destination[e]-this.value[e])*t);return new w.Array(a)},toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)},split:function(t){return t.trim().split(w.regex.delimiter).map(parseFloat)},reverse:function(){return this.value.reverse(),this},clone:function(){var t=new this.constructor;return t.value=a(this.value),t}}),w.PointArray=function(t,e){w.Array.call(this,t,e||[[0,0]])},w.PointArray.prototype=new w.Array,w.PointArray.prototype.constructor=w.PointArray,w.extend(w.PointArray,{toString:function(){for(var t=0,e=this.value.length,i=[];t<e;t++)i.push(this.value[t].join(","));return i.join(" ")},toLine:function(){return{x1:this.value[0][0],y1:this.value[0][1],x2:this.value[1][0],y2:this.value[1][1]}},at:function(t){if(!this.destination)return this;for(var e=0,i=this.value.length,a=[];e<i;e++)a.push([this.value[e][0]+(this.destination[e][0]-this.value[e][0])*t,this.value[e][1]+(this.destination[e][1]-this.value[e][1])*t]);return new w.PointArray(a)},parse:function(t){var e=[];if(t=t.valueOf(),Array.isArray(t)){if(Array.isArray(t[0]))return t.map(function(t){return t.slice()});if(null!=t[0].x)return t.map(function(t){return[t.x,t.y]})}else t=t.trim().split(w.regex.delimiter).map(parseFloat);t.length%2!=0&&t.pop();for(var i=0,a=t.length;i<a;i+=2)e.push([t[i],t[i+1]]);return e},move:function(t,e){var i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(var a=this.value.length-1;a>=0;a--)this.value[a]=[this.value[a][0]+t,this.value[a][1]+e];return this},size:function(t,e){var i,a=this.bbox();for(i=this.value.length-1;i>=0;i--)a.width&&(this.value[i][0]=(this.value[i][0]-a.x)*t/a.width+a.x),a.height&&(this.value[i][1]=(this.value[i][1]-a.y)*e/a.height+a.y);return this},bbox:function(){return w.parser.poly.setAttribute("points",this.toString()),w.parser.poly.getBBox()}});for(var k={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},S="mlhvqtcsaz".split(""),A=0,C=S.length;A<C;++A)k[S[A]]=function(t){return function(e,i,a){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var s=0,r=e.length;s<r;++s)e[s]=e[s]+(s%2?i.y:i.x);return k[t](e,i,a)}}(S[A].toUpperCase());w.PathArray=function(t,e){w.Array.call(this,t,e||[["M",0,0]])},w.PathArray.prototype=new w.Array,w.PathArray.prototype.constructor=w.PathArray,w.extend(w.PathArray,{toString:function(){return x(this.value)},move:function(t,e){var i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(var a,s=this.value.length-1;s>=0;s--)a=this.value[s][0],"M"==a||"L"==a||"T"==a?(this.value[s][1]+=t,this.value[s][2]+=e):"H"==a?this.value[s][1]+=t:"V"==a?this.value[s][1]+=e:"C"==a||"S"==a||"Q"==a?(this.value[s][1]+=t,this.value[s][2]+=e,this.value[s][3]+=t,this.value[s][4]+=e,"C"==a&&(this.value[s][5]+=t,this.value[s][6]+=e)):"A"==a&&(this.value[s][6]+=t,this.value[s][7]+=e);return this},size:function(t,e){var i,a,s=this.bbox();for(i=this.value.length-1;i>=0;i--)a=this.value[i][0],"M"==a||"L"==a||"T"==a?(this.value[i][1]=(this.value[i][1]-s.x)*t/s.width+s.x,this.value[i][2]=(this.value[i][2]-s.y)*e/s.height+s.y):"H"==a?this.value[i][1]=(this.value[i][1]-s.x)*t/s.width+s.x:"V"==a?this.value[i][1]=(this.value[i][1]-s.y)*e/s.height+s.y:"C"==a||"S"==a||"Q"==a?(this.value[i][1]=(this.value[i][1]-s.x)*t/s.width+s.x,this.value[i][2]=(this.value[i][2]-s.y)*e/s.height+s.y,this.value[i][3]=(this.value[i][3]-s.x)*t/s.width+s.x,this.value[i][4]=(this.value[i][4]-s.y)*e/s.height+s.y,"C"==a&&(this.value[i][5]=(this.value[i][5]-s.x)*t/s.width+s.x,this.value[i][6]=(this.value[i][6]-s.y)*e/s.height+s.y)):"A"==a&&(this.value[i][1]=this.value[i][1]*t/s.width,this.value[i][2]=this.value[i][2]*e/s.height,this.value[i][6]=(this.value[i][6]-s.x)*t/s.width+s.x,this.value[i][7]=(this.value[i][7]-s.y)*e/s.height+s.y);return this},equalCommands:function(t){var e,i,a;for(t=new w.PathArray(t),a=this.value.length===t.value.length,e=0,i=this.value.length;a&&e<i;e++)a=this.value[e][0]===t.value[e][0];return a},morph:function(t){return t=new w.PathArray(t),this.equalCommands(t)?this.destination=t:this.destination=null,this},at:function(t){if(!this.destination)return this;var e,i,a,s,r=this.value,n=this.destination.value,o=[],l=new w.PathArray;for(e=0,i=r.length;e<i;e++){for(o[e]=[r[e][0]],a=1,s=r[e].length;a<s;a++)o[e][a]=r[e][a]+(n[e][a]-r[e][a])*t;"A"===o[e][0]&&(o[e][4]=+(0!=o[e][4]),o[e][5]=+(0!=o[e][5]))}return l.value=o,l},parse:function(t){if(t instanceof w.PathArray)return t.valueOf();var e,a,s={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(w.regex.numbersWithDots,i).replace(w.regex.pathLetters," $& ").replace(w.regex.hyphen,"$1 -").trim().split(w.regex.delimiter):t.reduce(function(t,e){return[].concat.call(t,e)},[]);var a=[],r=new w.Point,n=new w.Point,o=0,l=t.length;do{w.regex.isPathLetter.test(t[o])?(e=t[o],++o):"M"==e?e="L":"m"==e&&(e="l"),a.push(k[e].call(null,t.slice(o,o+=s[e.toUpperCase()]).map(parseFloat),r,n))}while(l>o);return a},bbox:function(){return w.parser.path.setAttribute("d",this.toString()),w.parser.path.getBBox()}}),w.Number=w.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-3.4e38:3.4e38:"string"==typeof t?(e=t.match(w.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof w.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new w.Number(t),new w.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new w.Number(t),new w.Number(this-t,this.unit||t.unit)},times:function(t){return t=new w.Number(t),new w.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new w.Number(t),new w.Number(this/t,this.unit||t.unit)},to:function(t){var e=new w.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new w.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new w.Number(this.destination).minus(this).times(t).plus(this):this}}}),w.Element=w.invent({create:function(t){this._stroke=w.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var i=u(this,t,e);return this.width(new w.Number(i.width)).height(new w.Number(i.height))},clone:function(t){this.writeDataToDom();var e=b(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},inside:function(t,e){var i=this.bbox();return t>i.x&&e>i.y&&t<i.x+i.width&&e<i.y+i.height},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(w.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!=t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return w.get(this.attr(t))},parent:function(e){var i=this;if(!i.node.parentNode)return null;if(i=w.adopt(i.node.parentNode),!e)return i;for(;i&&i.node instanceof t.SVGElement;){if("string"==typeof e?i.matches(e):i instanceof e)return i;if(!i.node.parentNode||"#document"==i.node.parentNode.nodeName)return null;i=w.adopt(i.node.parentNode)}},doc:function(){return this instanceof w.Doc?this:this.parent(w.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return n(this.node,t)},native:function(){return this.node},svg:function(t){var i=e.createElement("svg");if(!(t&&this instanceof w.Parent))return i.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),i.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");i.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var a=0,s=i.firstChild.childNodes.length;a<s;a++)this.node.appendChild(i.firstChild.firstChild);return this},writeDataToDom:function(){if(this.each||this.lines){(this.each?this:this.lines()).each(function(){this.writeDataToDom()})}return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return r(this,t)}}}),w.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},w.morph=function(t){return function(e,i){return new w.MorphObj(e,i).at(t)}},w.Situation=w.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new w.Number(t.duration).valueOf(),this.delay=new w.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),w.FX=w.invent({create:function(t){this._target=t,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(t,e,i){"object"==(void 0===t?"undefined":s(t))&&(e=t.ease,i=t.delay,t=t.duration);var a=new w.Situation({duration:t||1e3,delay:i||0,ease:w.easing[e||"-"]||e});return this.queue(a),this},delay:function(t){var e=new w.Situation({duration:t,delay:0,ease:w.easing["-"]});return this.queue(e)},target:function(t){return t&&t instanceof w.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.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(t){return("function"==typeof t||t instanceof w.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof w.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e,i,a=this.situation;if(a.init)return this;for(t in a.animations)for(i=this.target()[t](),Array.isArray(i)||(i=[i]),Array.isArray(a.animations[t])||(a.animations[t]=[a.animations[t]]),e=i.length;e--;)a.animations[t][e]instanceof w.Number&&(i[e]=new w.Number(i[e])),a.animations[t][e]=i[e].morph(a.animations[t][e]);for(t in a.attrs)a.attrs[t]=new w.MorphObj(this.target().attr(t),a.attrs[t]);for(t in a.styles)a.styles[t]=new w.MorphObj(this.target().style(t),a.styles[t]);return a.initialTransformation=this.target().matrixify(),a.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var t=this.situation;this.stop(),this.situation=t,this.atStart()}return this},finish:function(){for(this.stop(!0,!1);this.dequeue().situation&&this.stop(!0,!1););return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return!0===this.situation.loops&&(this.situation.loops=this.situation.loop+1),"number"==typeof this.situation.loops?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(t,e){var i=this.situation.duration/this._speed;return this.absPos=t,e||(this.situation.reversed&&(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*i,this.situation.finish=this.situation.start+i,this.step(!0)},speed:function(t){return 0===t?this.pause():t?(this._speed=t,this.at(this.absPos,!0)):this._speed},loop:function(t,e){var i=this.last();return i.loops=null==t||t,i.loop=0,e&&(i.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(t){var e=this.last();return e.reversed=void 0===t?!e.reversed:t,this},progress:function(t){return t?this.situation.ease(this.pos):this.pos},after:function(t){var e=this.last(),i=function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))};return this.target().on("finished.fx",i),this._callStart()},during:function(t){var e=this.last(),i=function(i){i.detail.situation==e&&t.call(this,i.detail.pos,w.morph(i.detail.pos),i.detail.eased,e)};return this.target().off("during.fx",i).on("during.fx",i),this.after(function(){this.off("during.fx",i)}),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},duringAll:function(t){var e=function(e){t.call(this,e.detail.pos,w.morph(e.detail.pos),e.detail.eased,e.detail.situation)};return this.target().off("during.fx",e).on("during.fx",e),this.afterAll(function(){this.off("during.fx",e)}),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){if(t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops){var e,i,a;e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,a=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,a=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-a)%2))}else this.absPos=Math.min(this.absPos,1),this.pos=this.absPos;this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var s=this.situation.ease(this.pos);for(var r in this.situation.once)r>this.lastPos&&r<=s&&(this.situation.once[r].call(this.target(),this.pos,s),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(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=s,this):this},eachAt:function(){var t,e,i,a=this,s=this.target(),r=this.situation;for(t in r.animations)i=[].concat(r.animations[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),s[t].apply(s,i);for(t in r.attrs)i=[t].concat(r.attrs[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),s.attr.apply(s,i);for(t in r.styles)i=[t].concat(r.styles[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),s.style.apply(s,i);if(r.transforms.length){for(i=r.initialTransformation,t=0,e=r.transforms.length;t<e;t++){var n=r.transforms[t];n instanceof w.Matrix?i=n.relative?i.multiply((new w.Matrix).morph(n).at(r.ease(this.pos))):i.morph(n).at(r.ease(this.pos)):(n.relative||n.undo(i.extract()),i=i.multiply(n.at(r.ease(this.pos))))}s.matrix(i)}return this},once:function(t,e,i){var a=this.last();return i||(t=a.ease(t)),a.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:w.Element,construct:{animate:function(t,e,i){return(this.fx||(this.fx=new w.FX(this))).animate(t,e,i)},delay:function(t){return(this.fx||(this.fx=new w.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this},pause:function(){return this.fx&&this.fx.pause(),this},play:function(){return this.fx&&this.fx.play(),this},speed:function(t){if(this.fx){if(null==t)return this.fx.speed();this.fx.speed(t)}return this}}}),w.MorphObj=w.invent({create:function(t,e){return w.Color.isColor(e)?new w.Color(t).morph(e):w.regex.delimiter.test(t)?w.regex.pathLetters.test(t)?new w.PathArray(t).morph(e):new w.Array(t).morph(e):w.regex.numberAndUnit.test(e)?new w.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),w.extend(w.FX,{attr:function(t,e,i){if("object"==(void 0===t?"undefined":s(t)))for(var a in t)this.attr(a,t[a]);else this.add(t,e,"attrs");return this},style:function(t,e){if("object"==(void 0===t?"undefined":s(t)))for(var i in t)this.style(i,t[i]);else this.add(t,e,"styles");return this},x:function(t,e){if(this.target()instanceof w.G)return this.transform({x:t},e),this;var i=new w.Number(t);return i.relative=e,this.add("x",i)},y:function(t,e){if(this.target()instanceof w.G)return this.transform({y:t},e),this;var i=new w.Number(t);return i.relative=e,this.add("y",i)},cx:function(t){return this.add("cx",new w.Number(t))},cy:function(t){return this.add("cy",new w.Number(t))},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},size:function(t,e){if(this.target()instanceof w.Text)this.attr("font-size",t);else{var i;t&&e||(i=this.target().bbox()),t||(t=i.width/i.height*e),e||(e=i.height/i.width*t),this.add("width",new w.Number(t)).add("height",new w.Number(e))}return this},width:function(t){return this.add("width",new w.Number(t))},height:function(t){return this.add("height",new w.Number(t))},plot:function(t,e,i,a){return 4==arguments.length?this.plot([t,e,i,a]):this.add("plot",new(this.target().morphArray)(t))},leading:function(t){return this.target().leading?this.add("leading",new w.Number(t)):this},viewbox:function(t,e,i,a){return this.target()instanceof w.Container&&this.add("viewbox",new w.ViewBox(t,e,i,a)),this},update:function(t){if(this.target()instanceof w.Stop){if("number"==typeof t||t instanceof w.Number)return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset)}return this}}),w.Box=w.invent({create:function(t,e,i,a){if(!("object"!=(void 0===t?"undefined":s(t))||t instanceof w.Element))return w.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&&(this.x=t,this.y=e,this.width=i,this.height=a),v(this)},extend:{merge:function(t){var e=new this.constructor;return e.x=Math.min(this.x,t.x),e.y=Math.min(this.y,t.y),e.width=Math.max(this.x+this.width,t.x+t.width)-e.x,e.height=Math.max(this.y+this.height,t.y+t.height)-e.y,v(e)},transform:function(t){var e,i=1/0,a=-1/0,s=1/0,r=-1/0;return[new w.Point(this.x,this.y),new w.Point(this.x2,this.y),new w.Point(this.x,this.y2),new w.Point(this.x2,this.y2)].forEach(function(e){e=e.transform(t),i=Math.min(i,e.x),a=Math.max(a,e.x),s=Math.min(s,e.y),r=Math.max(r,e.y)}),e=new this.constructor,e.x=i,e.width=a-i,e.y=s,e.height=r-s,v(e),e}}}),w.BBox=w.invent({create:function(t){if(w.Box.apply(this,[].slice.call(arguments)),t instanceof w.Element){var i;try{if(e.documentElement.contains){if(!e.documentElement.contains(t.node))throw new Exception("Element not in the dom")}else{for(var a=t.node;a.parentNode;)a=a.parentNode;if(a!=e)throw new Exception("Element not in the dom")}i=t.node.getBBox()}catch(e){if(t instanceof w.Shape){var s=t.clone(w.parser.draw.instance).show();i=s.node.getBBox(),s.remove()}else i={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}w.Box.call(this,i)}},inherit:w.Box,parent:w.Element,construct:{bbox:function(){return new w.BBox(this)}}}),w.BBox.prototype.constructor=w.BBox,w.extend(w.Element,{tbox:function(){return console.warn("Use of TBox is deprecated and mapped to RBox. Use .rbox() instead."),this.rbox(this.doc())}}),w.RBox=w.invent({create:function(t){w.Box.apply(this,[].slice.call(arguments)),t instanceof w.Element&&w.Box.call(this,t.node.getBoundingClientRect())},inherit:w.Box,parent:w.Element,extend:{addOffset:function(){return this.x+=t.pageXOffset,this.y+=t.pageYOffset,this}},construct:{rbox:function(t){return t?new w.RBox(this).transform(t.screenCTM().inverse()):new w.RBox(this).addOffset()}}}),w.RBox.prototype.constructor=w.RBox,w.Matrix=w.invent({create:function(t){var e,i=f([1,0,0,1,0,0]);for(t=t instanceof w.Element?t.matrixify():"string"==typeof t?f(t.split(w.regex.delimiter).map(parseFloat)):6==arguments.length?f([].slice.call(arguments)):Array.isArray(t)?f(t):"object"===(void 0===t?"undefined":s(t))?t:i,e=M.length-1;e>=0;--e)this[M[e]]=null!=t[M[e]]?t[M[e]]:i[M[e]]},extend:{extract:function(){var t=d(this,0,1),e=d(this,1,0),i=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(i*Math.PI/180)+this.f*Math.sin(i*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(i*Math.PI/180)+this.e*Math.sin(-i*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-i,skewY:180/Math.PI*Math.atan2(e.y,e.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new w.Matrix(this)}},clone:function(){return new w.Matrix(this)},morph:function(t){return this.destination=new w.Matrix(t),this},at:function(t){return this.destination?new w.Matrix({a:this.a+(this.destination.a-this.a)*t,b:this.b+(this.destination.b-this.b)*t,c:this.c+(this.destination.c-this.c)*t,d:this.d+(this.destination.d-this.d)*t,e:this.e+(this.destination.e-this.e)*t,f:this.f+(this.destination.f-this.f)*t}):this},multiply:function(t){return new w.Matrix(this.native().multiply(p(t).native()))},inverse:function(){return new w.Matrix(this.native().inverse())},translate:function(t,e){return new w.Matrix(this.native().translate(t||0,e||0))},scale:function(t,e,i,a){return 1==arguments.length?e=t:3==arguments.length&&(a=i,i=e,e=t),this.around(i,a,new w.Matrix(t,0,0,e,0,0))},rotate:function(t,e,i){return t=w.utils.radians(t),this.around(e,i,new w.Matrix(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0))},flip:function(t,e){return"x"==t?this.scale(-1,1,e,0):"y"==t?this.scale(1,-1,0,e):this.scale(-1,-1,t,null!=e?e:t)},skew:function(t,e,i,a){return 1==arguments.length?e=t:3==arguments.length&&(a=i,i=e,e=t),t=w.utils.radians(t),e=w.utils.radians(e),this.around(i,a,new w.Matrix(1,Math.tan(e),Math.tan(t),1,0,0))},skewX:function(t,e,i){return this.skew(t,0,e,i)},skewY:function(t,e,i){return this.skew(0,t,e,i)},around:function(t,e,i){return this.multiply(new w.Matrix(1,0,0,1,t||0,e||0)).multiply(i).multiply(new w.Matrix(1,0,0,1,-t||0,-e||0))},native:function(){for(var t=w.parser.native.createSVGMatrix(),e=M.length-1;e>=0;e--)t[M[e]]=this[M[e]];return t},toString:function(){return"matrix("+y(this.a)+","+y(this.b)+","+y(this.c)+","+y(this.d)+","+y(this.e)+","+y(this.f)+")"}},parent:w.Element,construct:{ctm:function(){return new w.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof w.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new w.Matrix(e)}return new w.Matrix(this.node.getScreenCTM())}}}),w.Point=w.invent({create:function(t,e){var i,a={x:0,y:0};i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===(void 0===t?"undefined":s(t))?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:a,this.x=i.x,this.y=i.y},extend:{clone:function(){return new w.Point(this)},morph:function(t,e){return this.destination=new w.Point(t,e),this},at:function(t){return this.destination?new w.Point({x:this.x+(this.destination.x-this.x)*t,y:this.y+(this.destination.y-this.y)*t}):this},native:function(){var t=w.parser.native.createSVGPoint();return t.x=this.x,t.y=this.y,t},transform:function(t){return new w.Point(this.native().matrixTransform(t.native()))}}}),w.extend(w.Element,{point:function(t,e){return new w.Point(t,e).transform(this.screenCTM().inverse())}}),w.extend(w.Element,{attr:function(t,e,i){if(null==t){for(t={},e=this.node.attributes,i=e.length-1;i>=0;i--)t[e[i].nodeName]=w.regex.isNumber.test(e[i].nodeValue)?parseFloat(e[i].nodeValue):e[i].nodeValue;return t}if("object"==(void 0===t?"undefined":s(t)))for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return e=this.node.getAttribute(t),null==e?w.defaults.attrs[t]:w.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(w.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof w.Image&&(e=this.doc().defs().pattern(0,0,function(){this.add(e)}))),"number"==typeof e?e=new w.Number(e):w.Color.isColor(e)?e=new w.Color(e):Array.isArray(e)&&(e=new w.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),w.extend(w.Element,{transform:function(t,e){var i,a,r=this;if("object"!==(void 0===t?"undefined":s(t)))return i=new w.Matrix(r).extract(),"string"==typeof t?i[t]:i;if(i=new w.Matrix(r),e=!!e||!!t.relative,null!=t.a)i=e?i.multiply(new w.Matrix(t)):new w.Matrix(t);else if(null!=t.rotation)g(t,r),i=e?i.rotate(t.rotation,t.cx,t.cy):i.rotate(t.rotation-i.extract().rotation,t.cx,t.cy);else if(null!=t.scale||null!=t.scaleX||null!=t.scaleY){if(g(t,r),t.scaleX=null!=t.scale?t.scale:null!=t.scaleX?t.scaleX:1,t.scaleY=null!=t.scale?t.scale:null!=t.scaleY?t.scaleY:1,!e){var n=i.extract();t.scaleX=1*t.scaleX/n.scaleX,t.scaleY=1*t.scaleY/n.scaleY}i=i.scale(t.scaleX,t.scaleY,t.cx,t.cy)}else if(null!=t.skew||null!=t.skewX||null!=t.skewY){if(g(t,r),t.skewX=null!=t.skew?t.skew:null!=t.skewX?t.skewX:0,t.skewY=null!=t.skew?t.skew:null!=t.skewY?t.skewY:0,!e){var n=i.extract();i=i.multiply((new w.Matrix).skew(n.skewX,n.skewY,t.cx,t.cy).inverse())}i=i.skew(t.skewX,t.skewY,t.cx,t.cy)}else t.flip?("x"==t.flip||"y"==t.flip?t.offset=null==t.offset?r.bbox()["c"+t.flip]:t.offset:null==t.offset?(a=r.bbox(),t.flip=a.cx,t.offset=a.cy):t.flip=t.offset,i=(new w.Matrix).flip(t.flip,t.offset)):null==t.x&&null==t.y||(e?i=i.translate(t.x,t.y):(null!=t.x&&(i.e=t.x),null!=t.y&&(i.f=t.y)));return this.attr("transform",i)}}),w.extend(w.FX,{transform:function(t,e){var i,a,r=this.target();return"object"!==(void 0===t?"undefined":s(t))?(i=new w.Matrix(r).extract(),"string"==typeof t?i[t]:i):(e=!!e||!!t.relative,null!=t.a?i=new w.Matrix(t):null!=t.rotation?(g(t,r),i=new w.Rotate(t.rotation,t.cx,t.cy)):null!=t.scale||null!=t.scaleX||null!=t.scaleY?(g(t,r),t.scaleX=null!=t.scale?t.scale:null!=t.scaleX?t.scaleX:1,t.scaleY=null!=t.scale?t.scale:null!=t.scaleY?t.scaleY:1,i=new w.Scale(t.scaleX,t.scaleY,t.cx,t.cy)):null!=t.skewX||null!=t.skewY?(g(t,r),t.skewX=null!=t.skewX?t.skewX:0,t.skewY=null!=t.skewY?t.skewY:0,i=new w.Skew(t.skewX,t.skewY,t.cx,t.cy)):t.flip?("x"==t.flip||"y"==t.flip?t.offset=null==t.offset?r.bbox()["c"+t.flip]:t.offset:null==t.offset?(a=r.bbox(),t.flip=a.cx,t.offset=a.cy):t.flip=t.offset,i=(new w.Matrix).flip(t.flip,t.offset)):null==t.x&&null==t.y||(i=new w.Translate(t.x,t.y)),i?(i.relative=e,this.last().transforms.push(i),this._callStart()):this)}}),w.extend(w.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(w.regex.transforms).slice(0,-1).map(function(t){var e=t.trim().split("(");return[e[0],e[1].split(w.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])},new w.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),w.Transformation=w.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[i];else if("object"==(void 0===t?"undefined":s(t)))for(var i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===e&&(this.inversed=!0)},extend:{arguments:[],method:"",at:function(t){for(var e=[],i=0,a=this.arguments.length;i<a;++i)e.push(this[this.arguments[i]]);var s=this._undo||new w.Matrix;return s=(new w.Matrix).morph(w.Matrix.prototype[this.method].apply(s,e)).at(t),this.inversed?s.inverse():s},undo:function(t){for(var e=0,i=this.arguments.length;e<i;++e)t[this.arguments[e]]=void 0===this[this.arguments[e]]?0:t[this.arguments[e]];return t.cx=this.cx,t.cy=this.cy,this._undo=new(w[l(this.method)])(t,!0).at(1),this}}}),w.Translate=w.invent({parent:w.Matrix,inherit:w.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),w.Rotate=w.invent({parent:w.Matrix,inherit:w.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["rotation","cx","cy"],method:"rotate",at:function(t){var e=(new w.Matrix).rotate((new w.Number).morph(this.rotation-(this._undo?this._undo.rotation:0)).at(t),this.cx,this.cy);return this.inversed?e.inverse():e},undo:function(t){return this._undo=t,this}}}),w.Scale=w.invent({parent:w.Matrix,inherit:w.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["scaleX","scaleY","cx","cy"],method:"scale"}}),w.Skew=w.invent({parent:w.Matrix,inherit:w.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["skewX","skewY","cx","cy"],method:"skew"}}),w.extend(w.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"==(void 0===t?"undefined":s(t)))for(e in t)this.style(e,t[e]);else{if(!w.regex.isCss.test(t))return this.node.style[o(t)];for(t=t.split(/\s*;\s*/).filter(function(t){return!!t}).map(function(t){return t.split(/\s*:\s*/)});e=t.pop();)this.style(e[0],e[1])}else this.node.style[o(t)]=null===e||w.regex.isBlank.test(e)?"":e;return this}}),w.Parent=w.invent({create:function(t){this.constructor.call(this,t)},inherit:w.Element,extend:{children:function(){return w.utils.map(w.utils.filterSVGElements(this.node.childNodes),function(t){return w.adopt(t)})},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return w.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){var i,a,s=this.children();for(i=0,a=s.length;i<a;i++)s[i]instanceof w.Element&&t.apply(s[i],[i,s]),e&&s[i]instanceof w.Container&&s[i].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),w.extend(w.Parent,{ungroup:function(t,e){return 0===e||this instanceof w.Defs||this.node==w.parser.draw?this:(t=t||(this instanceof w.Doc?this:this.parent(w.Parent)),e=e||1/0,this.each(function(){return this instanceof w.Defs?this:this instanceof w.Parent?this.ungroup(t,e-1):this.toParent(t)}),this.node.firstChild||this.remove(),this)},flatten:function(t,e){return this.ungroup(t,e)}}),w.Container=w.invent({create:function(t){this.constructor.call(this,t)},inherit:w.Parent}),w.ViewBox=w.invent({create:function(t){var e,i,a,r,n,o,l,h=[0,0,0,0],c=1,u=1,d=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi;if(t instanceof w.Element){for(o=t,l=t,n=(t.attr("viewBox")||"").match(d),t.bbox,a=new w.Number(t.width()),r=new w.Number(t.height());"%"==a.unit;)c*=a.value,a=new w.Number(o instanceof w.Doc?o.parent().offsetWidth:o.parent().width()),o=o.parent();for(;"%"==r.unit;)u*=r.value,r=new w.Number(l instanceof w.Doc?l.parent().offsetHeight:l.parent().height()),l=l.parent();this.x=0,this.y=0,this.width=a*c,this.height=r*u,this.zoom=1,n&&(e=parseFloat(n[0]),i=parseFloat(n[1]),a=parseFloat(n[2]),r=parseFloat(n[3]),this.zoom=this.width/this.height>a/r?this.height/r:this.width/a,this.x=e,this.y=i,this.width=a,this.height=r)}else t="string"==typeof t?t.match(d).map(function(t){return parseFloat(t)}):Array.isArray(t)?t:"object"==(void 0===t?"undefined":s(t))?[t.x,t.y,t.width,t.height]:4==arguments.length?[].slice.call(arguments):h,this.x=t[0],this.y=t[1],this.width=t[2],this.height=t[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(t,e,i,a){return this.destination=new w.ViewBox(t,e,i,a),this},at:function(t){return this.destination?new w.ViewBox([this.x+(this.destination.x-this.x)*t,this.y+(this.destination.y-this.y)*t,this.width+(this.destination.width-this.width)*t,this.height+(this.destination.height-this.height)*t]):this}},parent:w.Container,construct:{viewbox:function(t,e,i,a){return 0==arguments.length?new w.ViewBox(this):this.attr("viewBox",new w.ViewBox(t,e,i,a))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(t){w.Element.prototype[t]=function(e){return w.on(this.node,t,e),this}}),w.listeners=[],w.handlerMap=[],w.listenerId=0,w.on=function(t,e,i,a,s){var r=i.bind(a||t.instance||t),n=(w.handlerMap.indexOf(t)+1||w.handlerMap.push(t))-1,o=e.split(".")[0],l=e.split(".")[1]||"*";w.listeners[n]=w.listeners[n]||{},w.listeners[n][o]=w.listeners[n][o]||{},w.listeners[n][o][l]=w.listeners[n][o][l]||{},i._svgjsListenerId||(i._svgjsListenerId=++w.listenerId),w.listeners[n][o][l][i._svgjsListenerId]=r,t.addEventListener(o,r,s||!1)},w.off=function(t,e,i){var a=w.handlerMap.indexOf(t),s=e&&e.split(".")[0],r=e&&e.split(".")[1],n="";if(-1!=a)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;w.listeners[a][s]&&w.listeners[a][s][r||"*"]&&(t.removeEventListener(s,w.listeners[a][s][r||"*"][i],!1),delete w.listeners[a][s][r||"*"][i])}else if(r&&s){if(w.listeners[a][s]&&w.listeners[a][s][r]){for(i in w.listeners[a][s][r])w.off(t,[s,r].join("."),i);delete w.listeners[a][s][r]}}else if(r)for(e in w.listeners[a])for(n in w.listeners[a][e])r===n&&w.off(t,[e,r].join("."));else if(s){if(w.listeners[a][s]){for(n in w.listeners[a][s])w.off(t,[s,n].join("."));delete w.listeners[a][s]}}else{for(e in w.listeners[a])w.off(t,e);delete w.listeners[a],delete w.handlerMap[a]}},w.extend(w.Element,{on:function(t,e,i,a){return w.on(this.node,t,e,i,a),this},off:function(t,e){return w.off(this.node,t,e),this},fire:function(e,i){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new w.CustomEvent(e,{detail:i,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),w.Defs=w.invent({create:"defs",inherit:w.Container}),w.G=w.invent({create:"g",inherit:w.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)},y:function(t){return null==t?this.transform("y"):this.transform({y:t-this.y()},!0)},cx:function(t){return null==t?this.gbox().cx:this.x(t-this.gbox().width/2)},cy:function(t){return null==t?this.gbox().cy:this.y(t-this.gbox().height/2)},gbox:function(){var t=this.bbox(),e=this.transform();return t.x+=e.x,t.x2+=e.x,t.cx+=e.x,t.y+=e.y,t.y2+=e.y,t.cy+=e.y,t}},construct:{group:function(){return this.put(new w.G)}}}),w.Doc=w.invent({create:function(t){t&&(t="string"==typeof t?e.getElementById(t):t,"svg"==t.nodeName?this.constructor.call(this,t):(this.constructor.call(this,w.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:w.Container,extend:{namespace:function(){return this.attr({xmlns:w.ns,version:"1.1"}).attr("xmlns:xlink",w.xlink,w.xmlns).attr("xmlns:svgjs",w.svgjs,w.xmlns)},defs:function(){if(!this._defs){var t;(t=this.node.getElementsByTagName("defs")[0])?this._defs=w.adopt(t):this._defs=new w.Defs,this.node.appendChild(this._defs.node)}return this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},spof:function(){var t=this.node.getScreenCTM();return t&&this.style("left",-t.e%1+"px").style("top",-t.f%1+"px"),this},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,w.parser.draw.parentNode||this.node.appendChild(w.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=b(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),w.extend(w.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var t=this.position()+1,e=this.parent();return e.removeElement(this).add(this,t),e instanceof w.Doc&&e.node.appendChild(e.defs().node),this},backward:function(){var t=this.position();return t>0&&this.parent().removeElement(this).add(this,t-1),this},front:function(){var t=this.parent();return t.node.appendChild(this.node),t instanceof w.Doc&&t.node.appendChild(t.defs().node),this},back:function(){return this.position()>0&&this.parent().removeElement(this).add(this,0),this},before:function(t){t.remove();var e=this.position();return this.parent().add(t,e),this},after:function(t){t.remove();var e=this.position();return this.parent().add(t,e+1),this}}),w.Mask=w.invent({create:function(){this.constructor.call(this,w.create("mask")),this.targets=[]},inherit:w.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unmask();return this.targets=[],w.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new w.Mask)}}}),w.extend(w.Element,{maskWith:function(t){return this.masker=t instanceof w.Mask?t:this.parent().mask().add(t),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),w.ClipPath=w.invent({create:function(){this.constructor.call(this,w.create("clipPath")),this.targets=[]},inherit:w.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new w.ClipPath)}}}),w.extend(w.Element,{clipWith:function(t){return this.clipper=t instanceof w.ClipPath?t:this.parent().clip().add(t),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),w.Gradient=w.invent({create:function(t){this.constructor.call(this,w.create(t+"Gradient")),this.type=t},inherit:w.Container,extend:{at:function(t,e,i){return this.put(new w.Stop).update(t,e,i)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="gradientTransform"),w.Container.prototype.attr.call(this,t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),w.extend(w.Gradient,w.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new w.Number(t),fy:new w.Number(e)}):this.attr({x1:new w.Number(t),y1:new w.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new w.Number(t),cy:new w.Number(e)}):this.attr({x2:new w.Number(t),y2:new w.Number(e)})}}),w.extend(w.Defs,{gradient:function(t,e){return this.put(new w.Gradient(t)).update(e)}}),w.Stop=w.invent({create:"stop",inherit:w.Element,extend:{update:function(t){return("number"==typeof t||t instanceof w.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new w.Number(t.offset)),this}}}),w.Pattern=w.invent({create:"pattern",inherit:w.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="patternTransform"),w.Container.prototype.attr.call(this,t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),w.extend(w.Defs,{pattern:function(t,e,i){return this.put(new w.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),w.Shape=w.invent({create:function(t){this.constructor.call(this,t)},inherit:w.Element}),w.Bare=w.invent({create:function(t,e){if(this.constructor.call(this,w.create(t)),e)for(var i in e.prototype)"function"==typeof e.prototype[i]&&(this[i]=e.prototype[i])},inherit:w.Element,extend:{words:function(t){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this.node.appendChild(e.createTextNode(t)),this}}}),w.extend(w.Parent,{element:function(t,e){return this.put(new w.Bare(t,e))}}),w.Symbol=w.invent({create:"symbol",inherit:w.Container,construct:{symbol:function(){return this.put(new w.Symbol)}}}),w.Use=w.invent({create:"use",inherit:w.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,w.xlink)}},construct:{use:function(t,e){return this.put(new w.Use).element(t,e)}}}),w.Rect=w.invent({create:"rect",inherit:w.Shape,construct:{rect:function(t,e){return this.put(new w.Rect).size(t,e)}}}),w.Circle=w.invent({create:"circle",inherit:w.Shape,construct:{circle:function(t){return this.put(new w.Circle).rx(new w.Number(t).divide(2)).move(0,0)}}}),w.extend(w.Circle,w.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),w.Ellipse=w.invent({create:"ellipse",inherit:w.Shape,construct:{ellipse:function(t,e){return this.put(new w.Ellipse).size(t,e).move(0,0)}}}),w.extend(w.Ellipse,w.Rect,w.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),w.extend(w.Circle,w.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new w.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new w.Number(t).divide(2))},size:function(t,e){var i=u(this,t,e);return this.rx(new w.Number(i.width).divide(2)).ry(new w.Number(i.height).divide(2))}}),w.Line=w.invent({create:"line",inherit:w.Shape,extend:{array:function(){return new w.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,a){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:a}:new w.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=u(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,i,a){return w.Line.prototype.plot.apply(this.put(new w.Line),null!=t?[t,e,i,a]:[0,0,0,0])}}}),w.Polyline=w.invent({create:"polyline",inherit:w.Shape,construct:{polyline:function(t){return this.put(new w.Polyline).plot(t||new w.PointArray)}}}),w.Polygon=w.invent({create:"polygon",inherit:w.Shape,construct:{polygon:function(t){return this.put(new w.Polygon).plot(t||new w.PointArray)}}}),w.extend(w.Polyline,w.Polygon,{array:function(){return this._array||(this._array=new w.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new w.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=u(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),w.extend(w.Line,w.Polyline,w.Polygon,{morphArray:w.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),w.Path=w.invent({create:"path",inherit:w.Shape,extend:{morphArray:w.PathArray,array:function(){return this._array||(this._array=new w.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new w.PathArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("d",this.array().move(t,e))},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},size:function(t,e){var i=u(this,t,e);return this.attr("d",this.array().size(i.width,i.height))},width:function(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)},height:function(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}},construct:{path:function(t){return this.put(new w.Path).plot(t||new w.PathArray)}}}),w.Image=w.invent({create:"image",inherit:w.Shape,extend:{load:function(e){if(!e)return this;var i=this,a=new t.Image;return w.on(a,"load",function(){w.off(a);var t=i.parent(w.Pattern);null!==t&&(0==i.width()&&0==i.height()&&i.size(a.width,a.height),t&&0==t.width()&&0==t.height()&&t.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:e}))}),w.on(a,"error",function(t){w.off(a),"function"==typeof i._error&&i._error.call(i,t)}),this.attr("href",a.src=this.src=e,w.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new w.Image).load(t).size(e||0,i||e||0)}}}),w.Text=w.invent({create:function(){this.constructor.call(this,w.create("text")),this.dom.leading=new w.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",w.defaults.attrs["font-family"])},inherit:w.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},y:function(t){var e=this.attr("y"),i="number"==typeof e?e-this.bbox().y:0;return null==t?"number"==typeof e?e-i:e:this.attr("y","number"==typeof t.valueOf()?t+i:t)},cx:function(t){return null==t?this.bbox().cx:this.x(t-this.bbox().width/2)},cy:function(t){return null==t?this.bbox().cy:this.y(t-this.bbox().height/2)},text:function(t){if(void 0===t){for(var t="",e=this.node.childNodes,i=0,a=e.length;i<a;++i)0!=i&&3!=e[i].nodeType&&1==w.adopt(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{t=t.split("\n");for(var i=0,s=t.length;i<s;i++)this.tspan(t[i]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new w.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=w.utils.map(w.utils.filterSVGElements(t.childNodes),function(t){return w.adopt(t)});return new w.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,i=0,a=this.dom.leading*new w.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?i+=a:(this.attr("dy",a+i),i=0))}),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new w.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new w.Text).text(t)},plain:function(t){return this.put(new w.Text).plain(t)}}}),w.Tspan=w.invent({create:"tspan",inherit:w.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(w.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),w.extend(w.Text,w.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,i=new w.Tspan;return!1===this._build&&this.clear(),e.appendChild(i.node),i.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),w.TextPath=w.invent({create:"textPath",inherit:w.Parent,parent:w.Text,construct:{morphArray:w.PathArray,path:function(t){for(var e=new w.TextPath,i=this.doc().defs().path(t);this.node.hasChildNodes();)e.node.appendChild(this.node.firstChild);return this.node.appendChild(e.node),e.attr("href","#"+i,w.xlink),this},array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return w.adopt(this.node.firstChild)}}}),w.Nested=w.invent({create:function(){this.constructor.call(this,w.create("svg")),this.style("overflow","visible")},inherit:w.Container,construct:{nested:function(){return this.put(new w.Nested)}}}),w.A=w.invent({create:"a",inherit:w.Container,extend:{to:function(t){return this.attr("href",t,w.xlink)},show:function(t){return this.attr("show",t,w.xlink)},target:function(t){return this.attr("target",t)}},construct:{link:function(t){return this.put(new w.A).to(t)}}}),w.extend(w.Element,{linkTo:function(t){var e=new w.A;return"function"==typeof t?t.call(e,e):e.to(t),this.parent().put(e).put(this)}}),w.Marker=w.invent({create:"marker",inherit:w.Container,extend:{width:function(t){return this.attr("markerWidth",t)},height:function(t){return this.attr("markerHeight",t)},ref:function(t,e){return this.attr("refX",t).attr("refY",e)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return"url(#"+this.id()+")"}},construct:{marker:function(t,e,i){return this.defs().marker(t,e,i)}}}),w.extend(w.Defs,{marker:function(t,e,i){return this.put(new w.Marker).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(i)}}),w.extend(w.Line,w.Polyline,w.Polygon,w.Path,{marker:function(t,e,i,a){var s=["marker"];return"all"!=t&&s.push(t),s=s.join("-"),t=arguments[1]instanceof w.Marker?arguments[1]:this.doc().marker(e,i,a),this.attr(s,t)}});var P={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};["fill","stroke"].forEach(function(t){var e,i={};i[t]=function(i){if(void 0===i)return this;if("string"==typeof i||w.Color.isRgb(i)||i&&"function"==typeof i.fill)this.attr(t,i);else for(e=P[t].length-1;e>=0;e--)null!=i[P[t][e]]&&this.attr(P.prefix(t,P[t][e]),i[P[t][e]]);return this},w.extend(w.Element,w.FX,i)}),w.extend(w.Element,w.FX,{rotate:function(t,e,i){return this.transform({rotation:t,cx:e,cy:i})},skew:function(t,e,i,a){return 1==arguments.length||3==arguments.length?this.transform({skew:t,cx:e,cy:i}):this.transform({skewX:t,skewY:e,cx:i,cy:a})},scale:function(t,e,i,a){return 1==arguments.length||3==arguments.length?this.transform({scale:t,cx:e,cy:i}):this.transform({scaleX:t,scaleY:e,cx:i,cy:a})},translate:function(t,e){return this.transform({x:t,y:e})},flip:function(t,e){return e="number"==typeof t?t:e,this.transform({flip:t||"both",offset:e})},matrix:function(t){return this.attr("transform",new w.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new w.Number(t).plus(this instanceof w.FX?0:this.x()),!0)},dy:function(t){return this.y(new w.Number(t).plus(this instanceof w.FX?0:this.y()),!0)},dmove:function(t,e){return this.dx(t).dy(e)}}),w.extend(w.Rect,w.Ellipse,w.Circle,w.Gradient,w.FX,{radius:function(t,e){var i=(this._target||this).type;return"radial"==i||"circle"==i?this.attr("r",new w.Number(t)):this.rx(t).ry(null==e?t:e)}}),w.extend(w.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),w.extend(w.Parent,w.Text,w.Tspan,w.FX,{font:function(t,e){if("object"==(void 0===t?"undefined":s(t)))for(e in t)this.font(e,t[e]);return"leading"==t?this.leading(e):"anchor"==t?this.attr("text-anchor",e):"size"==t||"family"==t||"weight"==t||"stretch"==t||"variant"==t||"style"==t?this.attr("font-"+t,e):this.attr(t,e)}}),w.Set=w.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){var t,e,i=[].slice.call(arguments);for(t=0,e=i.length;t<e;t++)this.members.push(i[t]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(0==this.members.length)return new w.RBox;var t=this.members[0].rbox(this.members[0].doc());return this.each(function(){t=t.merge(this.rbox(this.doc()))}),t}},construct:{set:function(t){return new w.Set(t)}}}),w.FX.Set=w.invent({create:function(t){this.set=t}}),w.Set.inherit=function(){var t,e=[];for(var t in w.Shape.prototype)"function"==typeof w.Shape.prototype[t]&&"function"!=typeof w.Set.prototype[t]&&e.push(t);e.forEach(function(t){w.Set.prototype[t]=function(){for(var e=0,i=this.members.length;e<i;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new w.FX.Set(this)):this}}),e=[];for(var t in w.FX.prototype)"function"==typeof w.FX.prototype[t]&&"function"!=typeof w.FX.Set.prototype[t]&&e.push(t);e.forEach(function(t){w.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}})},w.extend(w.Element,{data:function(t,e,i){if("object"==(void 0===t?"undefined":s(t)))for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===i||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),w.extend(w.Element,{remember:function(t,e){if("object"==s(arguments[0]))for(var e in t)this.remember(e,t[e]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),w.get=function(t){var i=e.getElementById(m(t)||t);return w.adopt(i)},w.select=function(t,i){return new w.Set(w.utils.map((i||e).querySelectorAll(t),function(t){return w.adopt(t)}))},w.extend(w.Parent,{select:function(t){return w.select(t,this.node)}});var M="abcdef".split("");if("function"!=typeof t.CustomEvent){var T=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};T.prototype=t.Event.prototype,w.CustomEvent=T}else w.CustomEvent=t.CustomEvent;return function(e){for(var i=0,a=["moz","webkit"],s=0;s<a.length&&!t.requestAnimationFrame;++s)e.requestAnimationFrame=e[a[s]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[a[s]+"CancelAnimationFrame"]||e[a[s]+"CancelRequestAnimationFrame"];e.requestAnimationFrame=e.requestAnimationFrame||function(t){var a=(new Date).getTime(),s=Math.max(0,16-(a-i)),r=e.setTimeout(function(){t(a+s)},s);return i=a+s,r},e.cancelAnimationFrame=e.cancelAnimationFrame||e.clearTimeout}(t),w})},function(t,e,i){"use strict";i(93),t.exports=i(5).Array.includes},function(t,e,i){"use strict";i(90),i(92),i(96),i(91),i(94),i(95),t.exports=i(5).Promise},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),o=i(102),l=a(o),h=i(14),c=a(h),u=i(103),d=a(u),f=i(59),p=a(f),g=i(104),x=a(g),b=i(105),v=a(b),m=i(21),y=a(m),w=i(22),k=a(w),S=i(107),A=a(S),C=i(15),P=a(C),M=i(55),T=a(M),L=i(111),z=a(L),X=i(117),E=a(X),Y=i(1),O=a(Y),I=i(118),_=a(I),W=i(109),R=a(W),H=i(112),B=a(H),D=i(56),N=a(D),F=i(110),j=a(F),V=i(60),G=i(0),q=a(G);i(129),window.Apex={};var U=function(){function t(e,i){s(this,t),this.opts=i,this.w=new d.default(this.opts).init(),this.ctx=this,this.el=e,this.core=new x.default(e,this.ctx),this.w.globals.cuid=(Math.random()+1).toString(36).substring(4),this.w.globals.chartID=this.w.config.chart.id?this.w.config.chart.id:this.w.globals.cuid,this.responsiveConfigOverrided=!1,this.create=O.default.bind(this.create,this)}return n(t,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,chart:t});var a=t.w.config.chart.events.beforeMount;"function"==typeof a&&a(t,t.w),t.fireEvent("beforeMount",[t,t.w]);var s=t.create(t.w.config.series);t.mount(s).then(function(){new c.default(t.ctx).showDelayedElements(),e(s),"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.fireEvent("mounted",[t,t.w])}).catch(function(t){}),window.addEventListener("resize",t.windowResize.bind(t))}else i(new Error("Element not found"))})}},{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);-1!==a&&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;r<s;r++)a[r].apply(null,e)}}},{key:"create",value:function(t){var e=this.w,i=this.w.globals,a=this.w.config;if(this.responsiveConfigOverrided||this.checkResponsiveConfig(),null===this.el)return null;if(this.destroy(),this.core.setupElements(),this.setupEventHandlers(),0===t.length){return new P.default(this.ctx).handleNoData({appendToRoot:!0}),null}this.core.parseData(t),this.core.setSparkLineOptions(),new z.default(this.ctx).init();var s=new k.default(this.ctx);if(s.setLabelFormatters(),new B.default(this.ctx).drawTitle(),new j.default(this.ctx).drawSubtitle(),new A.default(this.ctx).init(),i.axisCharts&&(this.core.coreCalculations(),s.setLabelFormatters()),"heatmap"===e.config.chart.type){i.yAxisScale[0].result=i.seriesNames.slice();var r=i.seriesNames.reduce(function(t,e){return t.length>e.length?t:e});i.yAxisScale[0].niceMax=r,i.yAxisScale[0].niceMin=r,e.globals.yLabelFormatters[0]=function(t){return t}}if(new y.default(this.ctx).plotCoords(),"heatmap"===e.config.chart.type){i.yAxisScale[0].result.push("");var n=e.globals.gridHeight/e.globals.series.length;a.yaxis[0].labels.offsetY=-n/2}var o=null;if(i.axisCharts){if("back"===a.xaxis.crosshairs.position){new v.default(this.ctx).drawXCrosshairs()}if("back"===a.yaxis[0].crosshairs.position){new v.default(this.ctx).drawYCrosshairs()}if(o=this.core.getCalculatedRatios(),"datetime"===a.xaxis.type){new T.default(this.ctx).calculateTimeScaleTicks()}}this.core.createGridMask();var l=this.core.plotChartType(t,o);return this.core.shiftGraphPosition(),{elGraph:l,xyRatios:o,elInner:e.globals.dom.elGraphical,dimensions:{plot:{left:e.globals.translateX,top:e.globals.translateY,width:e.globals.gridWidth,height:e.globals.gridHeight}}}}},{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=this,a=new P.default(i.ctx);return new Promise(function(s,r){if(null===i.el||null===t)return r(new Error("Not enough data to display or element not found"));var n=function(){if(i.w.globals.axisCharts){var t=new l.default(i.ctx),a=t.drawYAxisAnnotations(),s=t.drawXAxisAnnotations(),r=t.drawPointAnnotations();e.globals.dom.elGraphical.add(a),e.globals.dom.elGraphical.add(s),e.globals.dom.elGraphical.add(r),e.globals.delayedElements.push({el:s.node,index:0}),e.globals.delayedElements.push({el:a.node,index:0}),e.globals.delayedElements.push({el:r.node,index:0}),t.setOrientations(e.config.annotations.xaxis),t.annotationsBackground()}};if(i.core.drawAxis(e.config.chart.type,t.xyRatios),"back"===e.config.grid.position&&i.core.drawGrid(),"back"===e.config.annotations.position&&n(),new c.default(i.ctx).showDelayedElements(),t.elGraph instanceof Array)for(var o=0;o<t.elGraph.length;o++)e.globals.dom.elGraphical.add(t.elGraph[o]);else e.globals.dom.elGraphical.add(t.elGraph);if("front"===e.config.grid.position&&i.core.drawGrid(),"front"===e.config.xaxis.crosshairs.position){new v.default(i.ctx).drawXCrosshairs()}if("front"===e.config.yaxis[0].crosshairs.position){new v.default(i.ctx).drawYCrosshairs()}if("front"===e.config.annotations.position&&n(),e.globals.allSeriesCollapsed)a.handleNoData();else{if(e.config.tooltip.enabled){new E.default(i.ctx).drawTooltip(t.xyRatios)}if(e.globals.axisCharts&&e.globals.dataXY){if(e.config.chart.zoom.enabled||e.config.chart.scroller.enabled||e.config.chart.selection.enabled){new _.default(i.ctx).init({xyRatios:t.xyRatios})}if(e.config.chart.scroller.enabled){new R.default(i.ctx).init(t.xyRatios)}}else e.config.chart.toolbar.tools.zoom=!1,e.config.chart.toolbar.tools.zoomin=!1,e.config.chart.toolbar.tools.zoomout=!1,e.config.chart.toolbar.tools.selection=!1,e.config.chart.toolbar.tools.pan=!1,e.config.chart.toolbar.tools.reset=!1;if(e.config.chart.toolbar.show&&!e.globals.allSeriesCollapsed){new N.default(i.ctx).createToolbar()}}if(e.globals.memory.methodsToExec.length>0){var h=!0,u=!1,d=void 0;try{for(var f,p=e.globals.memory.methodsToExec[Symbol.iterator]();!(h=(f=p.next()).done);h=!0){var g=f.value;g.method(g.params,!1,g.context)}}catch(t){u=!0,d=t}finally{try{!h&&p.return&&p.return()}finally{if(u)throw d}}}s(i)})}},{key:"updateOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this,s=this.w;if(a.w.config.chart.animations.dynamicAnimation.enabled=i,!e){s.globals.resized=!0;var n=new P.default(a.ctx);a.w.globals.dataChanged=!0,i&&a.w.globals.initialConfig.chart.animations.dynamicAnimation.enabled&&n.getPreviousPaths()}return t&&"object"===(void 0===t?"undefined":r(t))&&(this.checkResponsiveConfig(),this.responsiveConfigOverrided=!0,s.config=O.default.extend(s.config,t)),this.update()}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.config.chart.animations.dynamicAnimation.enabled=e;var a=new P.default(i.ctx);return i.w.globals.dataChanged=!0,e&&a.getPreviousPaths(),i.w.config.series=t.slice(),this.update()}},{key:"appendData",value:function(t){var e=this,i=new P.default(e.ctx);e.w.globals.dataChanged=!0,i.getPreviousPaths();for(var a=e.w.config.series.slice(),s=0;s<a.length;s++)if(void 0!==t[s])for(var r=0;r<t[s].data.length;r++)a[s].data.push(t[s].data[r]);return e.w.config.series=a,this.update()}},{key:"update",value:function(){var t=this,e=this;return new Promise(function(i,a){var s=e.create(e.w.config.series);e.mount(s).then(function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.fireEvent("updated",[t,t.w]),i(e)}).catch(function(){})})}},{key:"destroy",value:function(){if(null!==this.el)for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild);window.removeEventListener("resize",this.windowResize),this.w.globals.dom={}}},{key:"setupEventHandlers",value:function(){var t=this.w,e=this,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass),a=["mousedown","mousemove","touchstart","touchmove","mouseup","touchend"],s=!0,r=!1,n=void 0;try{for(var o,l=a[Symbol.iterator]();!(s=(o=l.next()).done);s=!0){var h=o.value;i.addEventListener(h,function(i){"mousedown"===i.type&&1===i.which||("mouseup"===i.type&&1===i.which||"touchend"===i.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(i,e,t),e.fireEvent("click",[i,e,t]))},!1)}}catch(t){r=!0,n=t}finally{try{!s&&l.return&&l.return()}finally{if(r)throw n}}}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],a=this;i&&(a=i);var s=a.w,r=new l.default(a.ctx),n=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations"),o=n.childNodes.length+1,h=Object.assign({},V.xAxisAnnotation),c=O.default.extend(h,t);r.addXAxisAnnotation(c,n,o),r.setOrientations([c],o);var u=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='"+o+"']"),d=r.addBackgroundToAnno(u,c,o);return n.insertBefore(d.node,u),e&&s.globals.memory.methodsToExec.push({context:a,method:a.addXaxisAnnotation,params:t}),i}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],a=this;i&&(a=i);var s=a.w,r=new l.default(a.ctx),n=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-annotations"),o=n.childNodes.length+1,h=Object.assign({},V.yAxisAnnotation),c=O.default.extend(h,t);r.addYAxisAnnotation(c,n,o);var u=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-annotations .apexcharts-yaxis-annotation-label[rel='"+o+"']"),d=r.addBackgroundToAnno(u,c,o);return n.insertBefore(d.node,u),e&&s.globals.memory.methodsToExec.push({context:a,method:a.addYaxisAnnotation,params:t}),i}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],a=this;i&&(a=i);var s=a.w,r=new l.default(a.ctx),n=s.globals.dom.baseEl.querySelector(".apexcharts-point-annotations"),o=n.childNodes.length+1,h=Object.assign({},V.pointAnnotation),c=O.default.extend(h,t);r.addPointAnnotation(c,n,o);var u=s.globals.dom.baseEl.querySelector(".apexcharts-point-annotations .apexcharts-point-annotation-label[rel='"+o+"']"),d=r.addBackgroundToAnno(u,c,o);return n.insertBefore(d.node,u),e&&s.globals.memory.methodsToExec.push({context:a,method:a.addPointAnnotation,params:t}),i}},{key:"addText",value:function(t){var e=t.x,i=t.y,a=t.text,s=t.textAnchor,r=t.appendTo,n=void 0===r?".apexcharts-inner":r,o=t.foreColor,l=t.fontSize,h=t.cssClass,c=t.backgroundColor,u=t.borderWidth,d=t.strokeDashArray,f=t.radius,p=t.borderColor,g=t.paddingLeft,x=void 0===g?4:g,b=t.paddingRight,v=void 0===b?4:b,m=t.paddingBottom,y=void 0===m?2:m,w=t.paddingTop,k=void 0===w?2:w,S=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],A=arguments[2],C=this;A&&(C=A);var P=C.w,M=new q.default(C.ctx),T=P.globals.dom.baseEl.querySelector(n),L=M.drawText({x:e,y:i,text:a,textAnchor:s||"start",fontSize:l||"12px",foreColor:o||P.config.chart.foreColor,cssClass:h});T.appendChild(L.node);var z=L.bbox(),X=M.drawRect(z.x-x,z.y-k,z.width+x+v,z.height+y+k,f,c,1,u,p,d);return L.before(X),S&&P.globals.memory.methodsToExec.push({context:C,method:C.addText,params:{x:e,y:i,text:a,textAnchor:s,appendTo:n,foreColor:o,fontSize:l,cssClass:h,backgroundColor:c,borderWidth:u,strokeDashArray:d,radius:f,borderColor:p,paddingLeft:x,paddingRight:v,paddingBottom:y,paddingTop:k}}),A}},{key:"checkResponsiveConfig",value:function(){var t=this.w,e=t.config;if(void 0!==e.responsive)for(var i={},a=0;a<e.responsive.length;a++){var s=window.innerWidth>0?window.innerWidth:screen.width;if(s<e.responsive[a].breakpoint){i=O.default.extend(t.config,e.responsive[a].options),this.overrideResponsiveOptions(i);break}i=O.default.extend(t.config,t.globals.initialConfig),this.overrideResponsiveOptions(i)}}},{key:"overrideResponsiveOptions",value:function(t){var e=new p.default(t).init();this.w.config=e}},{key:"getChartArea",value:function(){return this.paper().select(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.core.getSeriesTotalsXRange(t,e)}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{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;var e=t.create(t.w.config.series);t.mount(e)},150)}}],[{key:"exec",value:function(t,e,i){var a=this.getChartByID(t);if(a)switch(e){case"updateOptions":return a.updateOptions(i);case"updateSeries":return a.updateSeries(i);case"appendData":return a.appendData(i);case"addXaxisAnnotation":return a.addXaxisAnnotation(i);case"addYaxisAnnotation":return a.addYaxisAnnotation(i);case"addPointAnnotation":return a.addPointAnnotation(i);case"destroy":return a.destroy()}}},{key:"getChartByID",value:function(t){return Apex._chartInstances.find(function(e){return e.id===t}).chart}}]),t}();t.exports=U},function(t,e,i){"use strict";t.exports=function(t,e,i,a){if(!(t instanceof e)||void 0!==a&&a in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){"use strict";var a=i(18),s=i(72),r=i(71),n=i(6),o=i(51),l=i(88),h={},c={},u=t.exports=function(t,e,i,u,d){var f,p,g,x,b=d?function(){return t}:l(t),v=a(i,u,e?2:1),m=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(r(b)){for(f=o(t.length);f>m;m++)if((x=e?v(n(p=t[m])[0],p[1]):v(t[m]))===h||x===c)return x}else for(g=b.call(t);!(p=g.next()).done;)if((x=s(g,v,p.value,e))===h||x===c)return x};u.BREAK=h,u.RETURN=c},function(t,e,i){"use strict";t.exports=!i(9)&&!i(41)(function(){return 7!=Object.defineProperty(i(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";t.exports=function(t,e,i){var a=void 0===i;switch(e.length){case 0:return a?t():t.call(i);case 1:return a?t(e[0]):t.call(i,e[0]);case 2:return a?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return a?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return a?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},function(t,e,i){"use strict";var a=i(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},function(t,e,i){"use strict";var a=i(12),s=i(3)("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(6);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(77),s=i(47),r=i(28),n={};i(7)(n,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=a(n,{next:s(1,i)}),r(t,e+" Iterator")}},function(t,e,i){"use strict";var a=i(3)("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";t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){"use strict";var a=i(2),s=i(50).set,r=a.MutationObserver||a.WebKitMutationObserver,n=a.process,o=a.Promise,l="process"==i(17)(n);t.exports=function(){var t,e,i,h=function(){var a,s;for(l&&(a=n.domain)&&a.exit();t;){s=t.fn,t=t.next;try{s()}catch(a){throw t?i():e=void 0,a}}e=void 0,a&&a.enter()};if(l)i=function(){n.nextTick(h)};else if(!r||a.navigator&&a.navigator.standalone)if(o&&o.resolve){var c=o.resolve(void 0);i=function(){c.then(h)}}else i=function(){s.call(a,h)};else{var u=!0,d=document.createTextNode("");new r(h).observe(d,{characterData:!0}),i=function(){d.data=u=!u}}return function(a){var s={fn:a,next:void 0};e&&(e.next=s),t||(t=s,i()),e=s}}},function(t,e,i){"use strict";var a=i(6),s=i(78),r=i(40),n=i(29)("IE_PROTO"),o=function(){},l=function(){var t,e=i(25)("iframe"),a=r.length;for(e.style.display="none",i(42).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;a--;)delete l.prototype[r[a]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(o.prototype=a(t),i=new o,o.prototype=null,i[n]=t):i=l(),void 0===e?i:s(i,e)}},function(t,e,i){"use strict";var a=i(20),s=i(6),r=i(44);t.exports=i(9)?Object.defineProperties:function(t,e){s(t);for(var i,n=r(e),o=n.length,l=0;o>l;)a.f(t,i=n[l++],e[i]);return t}},function(t,e,i){"use strict";var a=i(19),s=i(85),r=i(29)("IE_PROTO"),n=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),a(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?n:null}},function(t,e,i){"use strict";var a=i(19),s=i(31),r=i(39)(!1),n=i(29)("IE_PROTO");t.exports=function(t,e){var i,o=s(t),l=0,h=[];for(i in o)i!=n&&a(o,i)&&h.push(i);for(;e.length>l;)a(o,i=e[l++])&&(~r(h,i)||h.push(i));return h}},function(t,e,i){"use strict";var a=i(13);t.exports=function(t,e,i){for(var s in e)a(t,s,e[s],i);return t}},function(t,e,i){"use strict";var a=i(2),s=i(20),r=i(9),n=i(3)("species");t.exports=function(t){var e=a[t];r&&e&&!e[n]&&s.f(e,n,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var a=i(30),s=i(24);t.exports=function(t){return function(e,i){var r,n,o=String(s(e)),l=a(i),h=o.length;return l<0||l>=h?t?"":void 0:(r=o.charCodeAt(l),r<55296||r>56319||l+1===h||(n=o.charCodeAt(l+1))<56320||n>57343?t?o.charAt(l):r:t?o.slice(l,l+2):n-56320+(r-55296<<10)+65536)}}},function(t,e,i){"use strict";var a=i(30),s=Math.max,r=Math.min;t.exports=function(t,e){return t=a(t),t<0?s(t+e,0):r(t,e)}},function(t,e,i){"use strict";var a=i(24);t.exports=function(t){return Object(a(t))}},function(t,e,i){"use strict";var a=i(11);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(2),s=a.navigator;t.exports=s&&s.userAgent||""},function(t,e,i){"use strict";var a=i(23),s=i(3)("iterator"),r=i(12);t.exports=i(5).getIteratorMethod=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||r[a(t)]}},function(t,e,i){"use strict";var a=i(38),s=i(75),r=i(12),n=i(31);t.exports=i(43)(Array,"Array",function(t,e){this._t=n(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,s(1)):"keys"==e?s(0,i):"values"==e?s(0,t[i]):s(0,[i,t[i]])},"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},function(t,e,i){"use strict";var a=i(23),s={};s[i(3)("toStringTag")]="z",s+""!="[object z]"&&i(13)(Object.prototype,"toString",function(){return"[object "+a(this)+"]"},!0)},function(t,e,i){"use strict";var a,s,r,n,o=i(26),l=i(2),h=i(18),c=i(23),u=i(10),d=i(11),f=i(16),p=i(66),g=i(67),x=i(49),b=i(50).set,v=i(76)(),m=i(27),y=i(45),w=i(87),k=i(46),S=l.TypeError,A=l.process,C=A&&A.versions,P=C&&C.v8||"",M=l.Promise,T="process"==c(A),L=function(){},z=s=m.f,X=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[i(3)("species")]=function(t){t(L,L)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),E=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},Y=function(t,e){if(!t._n){t._n=!0;var i=t._c;v(function(){for(var a=t._v,s=1==t._s,r=0;i.length>r;)!function(e){var i,r,n,o=s?e.ok:e.fail,l=e.resolve,h=e.reject,c=e.domain;try{o?(s||(2==t._h&&_(t),t._h=1),!0===o?i=a:(c&&c.enter(),i=o(a),c&&(c.exit(),n=!0)),i===e.promise?h(S("Promise-chain cycle")):(r=E(i))?r.call(i,l,h):l(i)):h(a)}catch(t){c&&!n&&c.exit(),h(t)}}(i[r++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){b.call(l,function(){var e,i,a,s=t._v,r=I(t);if(r&&(e=y(function(){T?A.emit("unhandledRejection",s,t):(i=l.onunhandledrejection)?i({promise:t,reason:s}):(a=l.console)&&a.error&&a.error("Unhandled promise rejection",s)}),t._h=T||I(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},_=function(t){b.call(l,function(){var e;T?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},W=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),Y(e,!0))},R=function t(e){var i,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===e)throw S("Promise can't be resolved itself");(i=E(e))?v(function(){var s={_w:a,_d:!1};try{i.call(e,h(t,s,1),h(W,s,1))}catch(t){W.call(s,t)}}):(a._v=e,a._s=1,Y(a,!1))}catch(t){W.call({_w:a,_d:!1},t)}}};X||(M=function(t){p(this,M,"Promise","_h"),f(t),a.call(this);try{t(h(R,this,1),h(W,this,1))}catch(t){W.call(this,t)}},a=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},a.prototype=i(81)(M.prototype,{then:function(t,e){var i=z(x(this,M));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=T?A.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Y(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new a;this.promise=t,this.resolve=h(R,t,1),this.reject=h(W,t,1)},m.f=z=function(t){return t===M||t===n?new r(t):s(t)}),u(u.G+u.W+u.F*!X,{Promise:M}),i(28)(M,"Promise"),i(82)("Promise"),n=i(5).Promise,u(u.S+u.F*!X,"Promise",{reject:function(t){var e=z(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(o||!X),"Promise",{resolve:function(t){return k(o&&this===n?M:this,t)}}),u(u.S+u.F*!(X&&i(74)(function(t){M.all(t).catch(L)})),"Promise",{all:function(t){var e=this,i=z(e),a=i.resolve,s=i.reject,r=y(function(){var i=[],r=0,n=1;g(t,!1,function(t){var o=r++,l=!1;i.push(void 0),n++,e.resolve(t).then(function(t){l||(l=!0,i[o]=t,--n||a(i))},s)}),--n||a(i)});return r.e&&s(r.v),i.promise},race:function(t){var e=this,i=z(e),a=i.reject,s=y(function(){g(t,!1,function(t){e.resolve(t).then(i.resolve,a)})});return s.e&&a(s.v),i.promise}})},function(t,e,i){"use strict";var a=i(83)(!0);i(43)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=a(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){"use strict";var a=i(10),s=i(39)(!0);a(a.P,"Array",{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),i(38)("includes")},function(t,e,i){"use strict";var a=i(10),s=i(5),r=i(2),n=i(49),o=i(46);a(a.P+a.R,"Promise",{finally:function(t){var e=n(this,s.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return o(e,t()).then(function(){return i})}:t,i?function(i){return o(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var a=i(10),s=i(27),r=i(45);a(a.S,"Promise",{try:function(t){var e=s.f(this),i=r(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){"use strict";for(var a=i(89),s=i(44),r=i(13),n=i(2),o=i(7),l=i(12),h=i(3),c=h("iterator"),u=h("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=s(f),g=0;g<p.length;g++){var x,b=p[g],v=f[b],m=n[b],y=m&&m.prototype;if(y&&(y[c]||o(y,c,d),y[u]||o(y,u,b),l[b]=d,v))for(x in a)y[x]||r(y,x,a[x],!0)}},function(t,e,i){"use strict";function a(t,e){var i=t[1]||"",a=t[3];if(!a)return i;if(e&&"function"==typeof btoa){var r=s(a);return[i].concat(a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"})).concat([r]).join("\n")}return[i].join("\n")}function s(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=a(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},s=0;s<this.length;s++){var r=this[s][0];"number"==typeof r&&(a[r]=!0)}for(s=0;s<t.length;s++){var n=t[s];"number"==typeof n[0]&&a[n[0]]||(i&&!n[2]?n[2]=i:i&&(n[2]="("+n[2]+") and ("+i+")"),e.push(n))}},e}},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")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),l=i(52),h=a(l),c=i(8),u=a(c),d=i(0),f=a(d),p=function(t){function e(){return s(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return n(e,t),o(e,[{key:"draw",value:function(t){var e=this,i=this.w;this.graphics=new f.default(this.ctx),this.fill=new u.default(this.ctx),this.bar=new h.default(this.ctx,this.xyRatios),this.series=t,"100%"===i.config.chart.stackType&&(this.series=i.globals.seriesPercent.slice(),t=this.series),this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var a=0;a<t.length;a++)t[a].length>0&&(this.totalItems+=t[a].length);this.zeroSerieses=[],this.endingShapeOnSeriesNumber=t.length-1,this.checkZeroSeries({series:t});var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"});s.attr("clip-path","url(#gridRectMask"+i.globals.cuid+")");for(var r=0,n=0,o=0,l=0;o<t.length;o++,l++)!function(a,o){var l=void 0,h=void 0,c=void 0,u=void 0,d=void 0,f=void 0,p=[],g=[],x=a;e.yRatio.length>1&&(e.yaxisIndex=x);var b=e.graphics.group({class:"apexcharts-series",rel:a+1,"data:realIndex":a}),v=e.graphics.group({class:"apexcharts-datalabels"}),m=0,y=0,w=0,k=e.initialPositions(r,n,c,u,d,f);n=k.y,y=k.barHeight,u=k.yDivision,f=k.zeroW,r=k.x,w=k.barWidth,c=k.xDivision,d=k.zeroH,e.yArrj=[],e.yArrjF=[],e.yArrjVal=[],e.xArrj=[],e.xArrjF=[],e.xArrjVal=[];for(var S=0;S<i.globals.dataPoints;S++)!function(s){i.config.stroke.show&&(m=null===t[a][s]||0===t[a][s]?0:Array.isArray(e.strokeWidth)?e.strokeWidth[x]:e.strokeWidth);var k=null;k=e.isHorizontal?e.drawBarPaths({indexes:{i:a,j:s,realIndex:x,bc:o},barHeight:y,strokeWidth:m,pathTo:l,pathFrom:h,zeroW:f,x:r,y:n,yDivision:u,elSeries:b}):e.drawColumnPaths({indexes:{i:a,j:s,realIndex:x,bc:o},x:r,y:n,xDivision:c,pathTo:l,pathFrom:h,barWidth:w,zeroH:d,strokeWidth:m,elSeries:b}),l=k.pathTo,h=k.pathFrom,n=k.y,r=k.x,p.push(r),g.push(n);var S=i.config.plotOptions.bar.distributed?s:a,A=null;if(e.barOptions.colors.ranges.length>0){e.barOptions.colors.ranges.map(function(e,i){t[a][s]>=e.from&&t[a][s]<=e.to&&(A=e.color)})}var C=e.fill.fillPath(b,{seriesNumber:S,color:A}),P=i.config.stroke.colors[x],M=s/i.config.chart.animations.animateGradually.delay*(i.config.chart.animations.speed/i.globals.dataPoints)/2.4,T=e.graphics.renderPaths({i:a,realIndex:x,pathFrom:h,pathTo:l,stroke:P,strokeWidth:m,fill:C,animationDelay:M,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-bar-area",id:"apexcharts-bar-area"});b.add(T),e.setSelectedBarFilter(T,x,s);var L=e.bar.calculateBarDataLabels({x:r,y:n,i:a,j:s,realIndex:x,series:t,barHeight:y,barWidth:w,visibleSeries:0,renderedPath:T});null!==L&&v.add(L),b.add(v)}(S);i.globals.seriesXvalues[x]=p,i.globals.seriesYvalues[x]=g,e.prevY.push(e.yArrj),e.prevYF.push(e.yArrjF),e.prevYVal.push(e.yArrjVal),e.prevX.push(e.xArrj),e.prevXF.push(e.xArrjF),e.prevXVal.push(e.xArrjVal),s.add(b)}(o,l);return s}},{key:"initialPositions",value:function(t,e,i,a,s,r){var n=this.w,o=void 0,l=void 0;return this.isHorizontal?(a=n.globals.gridHeight/n.globals.dataPoints,o=a,o=o*parseInt(n.config.plotOptions.bar.barHeight)/100,r=this.baseLineInvertedY+n.globals.padHorizontal,e=(a-o)/2):(i=n.globals.gridWidth/n.globals.dataPoints,l=i,n.globals.dataXY?(i=n.globals.gridWidth/this.totalItems,l=i/2):l=l*parseInt(n.config.plotOptions.bar.columnWidth)/100,s=this.baseLineY[this.yaxisIndex]+1,t=n.globals.padHorizontal+(i-l)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:o,barWidth:l,zeroH:s,zeroW:r}}},{key:"drawBarPaths",value:function(t){for(var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.pathTo,r=t.pathFrom,n=t.zeroW,o=t.x,l=t.y,h=t.yDivision,c=t.elSeries,u=this.w,d=l,f=n,p=e.i,g=e.j,x=e.realIndex,b=e.bc,v=0,m=0;m<this.prevXF.length;m++)v+=this.prevXF[m][g];if(p>0){var y=n;this.prevXVal[p-1][g]<0?y=this.series[p][g]>=0?this.prevX[p-1][g]+v:this.prevX[p-1][g]:this.prevXVal[p-1][g]>=0&&(y=this.series[p][g]>=0?this.prevX[p-1][g]:this.prevX[p-1][g]-v),f=y}else f=n;o=null===this.series[p][g]?f:f+this.series[p][g]/this.invertedYRatio;var w={barHeight:i,strokeWidth:a,invertedYRatio:this.invertedYRatio,barYPosition:d,x:o},k=this.bar.barEndingShape(u,w,this.series,p,g);if(this.series.length>1&&p!==this.endingShapeOnSeriesNumber&&(k.path=this.graphics.line(k.newX,d+i-a)),this.xArrj.push(k.newX),this.xArrjF.push(Math.abs(f-k.newX)),this.xArrjVal.push(this.series[p][g]),s=this.graphics.move(f,d),r=this.graphics.move(f,d),u.globals.previousPaths.length>0&&(r=this.bar.getPathFrom(x,g,!1)),s=s+this.graphics.line(k.newX,d)+k.path+this.graphics.line(f,d+i-a)+this.graphics.line(f,d),r=r+this.graphics.line(f,d)+this.graphics.line(f,d+i-a)+this.graphics.line(f,d+i-a)+this.graphics.line(f,d+i-a)+this.graphics.line(f,d),u.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===p){b>=u.config.plotOptions.bar.colors.backgroundBarColors.length&&(b=0);var S=u.config.plotOptions.bar.colors.backgroundBarColors[b],A=this.graphics.drawRect(0,d,u.globals.gridWidth,i,0,S,u.config.plotOptions.bar.colors.backgroundBarOpacity);c.add(A),A.classList.add("apexcharts-backgroundBar")}return l+=h,{pathTo:s,pathFrom:r,x:o,y:l}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.pathTo,n=t.pathFrom,o=t.barWidth,l=t.zeroH,h=t.strokeWidth,c=t.elSeries,u=this.w,d=e.i,f=e.j,p=e.realIndex,g=e.bc;if(u.globals.dataXY){var x=u.globals.seriesX[d][f];x||(x=0),i=(x-u.globals.minX)/this.xRatio-o/2}for(var b=i,v=void 0,m=0,y=0;y<this.prevYF.length;y++)m+=this.prevYF[y][f];if(d>0){var w=u.globals.gridHeight-l,k=this.prevY[d-1][f];w=this.prevYVal[d-1][f]<0?this.series[d][f]>=0?k-m:k:this.series[d][f]>=0?k:k+m,v=w}else v=u.globals.gridHeight-l;this.series[d][f],a=v-this.series[d][f]/this.yRatio[this.yaxisIndex];var S={barWidth:o,strokeWidth:h,yRatio:this.yRatio[this.yaxisIndex],barXPosition:b,y:a},A=this.bar.barEndingShape(u,S,this.series,d,f);if(this.series.length>1&&d!==this.endingShapeOnSeriesNumber&&(A.path=this.graphics.line(b+o-h,A.newY)),this.yArrj.push(A.newY),this.yArrjF.push(Math.abs(v-A.newY)),this.yArrjVal.push(this.series[d][f]),r=this.graphics.move(b,v),n=this.graphics.move(b,v),u.globals.previousPaths.length>0&&(n=this.bar.getPathFrom(p,f,!1)),r=r+this.graphics.line(b,A.newY)+A.path+this.graphics.line(b+o-h,v)+this.graphics.line(b,v),n=n+this.graphics.line(b,v)+this.graphics.line(b+o-h,v)+this.graphics.line(b+o-h,v)+this.graphics.line(b+o-h,v)+this.graphics.line(b,v),u.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===d){g>=u.config.plotOptions.bar.colors.backgroundBarColors.length&&(g=0);var C=u.config.plotOptions.bar.colors.backgroundBarColors[g],P=this.graphics.drawRect(b,0,o,u.globals.gridHeight,0,C,u.config.plotOptions.bar.colors.backgroundBarOpacity);c.add(P),P.classList.add("apexcharts-backgroundBar")}return i+=s,{pathTo:r,pathFrom:n,x:i,y:a}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a<e.length;a++){for(var s=0,r=0;r<e[i.globals.maxValsInArrayIndex].length;r++)s+=e[a][r];0===s&&this.zeroSerieses.push(a)}for(var n=e.length-1;n>=0;n--)this.zeroSerieses.includes(n)&&n===this.endingShapeOnSeriesNumber&&(this.endingShapeOnSeriesNumber-=1)}}]),e}(h.default);e.default=p},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),o=i(33),l=a(o),h=i(14),c=a(h),u=i(0),d=a(u),f=i(1),p=a(f),g=i(4),x=a(g),b=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.width}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new d.default(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask"+e.globals.cuid+")");for(var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,n=0,o=t.length-1;o>=0;o--){var l=i.group({class:"apexcharts-series apexcharts-heatmap-series",rel:o+1,"data:realIndex":o});if(e.config.chart.dropShadow.enabled){var h=e.config.chart.dropShadow;new x.default(this.ctx).dropShadow(l,h)}for(var c=0,u=0;u<t[o].length;u++){var f=1,g=this.determineHeatColor(o,u);if(e.globals.hasNegs){var b=e.config.plotOptions.heatmap.shadeIntensity;f=g.percent<0?1-(1+g.percent/100)*b:(1-g.percent/100)*b}else f=1-g.percent/100;var v=g.color;if(e.config.plotOptions.heatmap.enableShades){var m=new p.default;v=p.default.hexToRgba(m.shadeColor(f,g.color),e.config.fill.opacity)}var y=this.rectRadius,w=i.drawRect(c,n,s,r,y);if(w.attr({cx:c,cy:n}),w.node.classList.add("apexcharts-heatmap-rect"),l.add(w),w.attr({fill:v,i:o,j:u,val:t[o][u],"stroke-width":this.strokeWidth,stroke:e.config.stroke.colors[0],color:v}),e.config.chart.animations.enabled&&!e.globals.dataChanged){var k=1;e.globals.resized||(k=e.config.chart.animations.speed),this.animateHeatMap(w,c,n,s,r,k)}if(e.globals.dataChanged){var S=1;this.dynamicAnim.enabled&&(S=this.dynamicAnim.speed);var A=e.globals.previousPaths[o][u].color;this.animateHeatColor(w,p.default.rgb2hex(A),p.default.rgb2hex(v),S)}var C=this.calculateHeatmapDataLabels({x:c,y:n,i:o,j:u,series:t,rectHeight:r,rectWidth:s});null!==C&&l.add(C),c+=s}n+=r,a.add(l)}return a}},{key:"determineHeatColor",value:function(t,e){var i=this.w,a=i.globals.series[t][e],r=i.config.colors[t],n=Math.min.apply(Math,s(i.globals.series[t])),o=Math.max.apply(Math,s(i.globals.series[t])),l=Math.abs(o)+Math.abs(n),h=100*a/l;if(i.config.plotOptions.heatmap.colorScale.ranges.length>0){i.config.plotOptions.heatmap.colorScale.ranges.map(function(t,e){a>=t.from&&a<=t.to&&(r=t.color,n=t.from,o=t.to,l=Math.abs(o)+Math.abs(n),h=100*a/l)})}return{color:r,percent:h}}},{key:"calculateHeatmapDataLabels",value:function(t){var e=t.x,i=t.y,a=t.i,s=t.j,r=(t.series,t.rectHeight),n=t.rectWidth,o=this.w,h=o.config.dataLabels,c=new d.default(this.ctx),u=new l.default(this.ctx),f=h.formatter,p=null;if(h.enabled){p=c.group({class:"apexcharts-data-labels"});var g=h.offsetX,x=h.offsetY,b=e+n/2+g,v=i+r/2+parseInt(h.style.fontSize)/3+x,m=f(o.globals.series[a][s],{seriesIndex:a,dataPointIndex:s,globals:o.globals});u.plotDataLabelsText(b,v,m,a,s,p,h)}return p}},{key:"animateHeatMap",value:function(t,e,i,a,s,r){new c.default(this.ctx).animateRect(t,{x:e+a/2,y:i+s/2,width:0,height:0},{x:e,y:i,width:a,height:s},r)}},{key:"animateHeatColor",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),t}();t.exports=b},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(8),h=a(l),c=i(33),u=a(c),d=i(34),f=a(d),p=i(54),g=a(p),x=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type),this.pointsChart&&(this.scatter=new g.default(this.ctx)),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.yaxisIndex=0}return r(t,[{key:"draw",value:function(t,e,i){for(var a=this.w,s=new o.default(this.ctx),r=new h.default(this.ctx),n=a.globals.comboCharts?e:a.config.chart.type,l=s.group({class:"apexcharts-"+n+"-series apexcharts-plot-series","clip-path":"url(#gridRectMask"+a.globals.cuid+")"}),c=this.xyRatios.yRatio,d=this.xyRatios.zRatio,p=this.xyRatios.xRatio,g=this.xyRatios.baseLineY,x=[],b=[],v=0,m=0;m<t.length;m++){var y=a.globals.gridWidth/a.globals.dataPoints,w=a.globals.comboCharts?i[m]:m;c.length>1&&(this.yaxisIndex=w);var k=[],S=[],A=a.globals.gridHeight-g[this.yaxisIndex];v=y/2;var C=a.globals.padHorizontal+v,P=1;a.globals.dataXY&&(C=(a.globals.seriesX[w][0]-a.globals.minX)/p),S.push(C);for(var M=void 0,T=void 0,L=void 0,z=void 0,X=[],E=[],Y=s.group({class:"apexcharts-series"}),O=s.group({class:"apexcharts-series-markers-wrap"}),I=s.group({class:"apexcharts-datalabels"}),_=0;_<a.globals.collapsedSeries.length;_++)a.globals.collapsedSeries[_].index===w&&Y.node.classList.add("apexcharts-series-collapsed");var W=t[m].length===a.globals.dataPoints;Y.attr({"data:longestSeries":W,rel:m+1,"data:realIndex":w}),this.appendPathFrom=!0;var R=C,H=A,B=R,D=A,N=0,F=this.determineFirstPrevY({i:m,series:t,yRatio:c[this.yaxisIndex],zeroY:A,prevY:D,prevSeriesY:b,lineYPosition:N});if(D=F.prevY,N=F.lineYPosition,k.push(D),H=D,null===t[m][0]){for(var j=0;j<t[m].length;j++)if(null!==t[m][j]){B=y*j,D=A-t[m][j]/c[this.yaxisIndex],M=s.move(B,D),T=s.move(B,A);break}}else M=s.move(B,D),T=s.move(B,A)+s.line(B,D);if(L=s.move(-1,A)+s.line(-1,A),z=s.move(-1,A)+s.line(-1,A),a.globals.previousPaths.length>0){var V=this.checkPreviousPaths({pathFromLine:L,pathFromArea:z,realIndex:w});L=V.pathFromLine,z=V.pathFromArea}for(var G=0;G<a.globals.dataPoints-1;G++){a.globals.dataXY?C=(a.globals.seriesX[w][G+1]-a.globals.minX)/p:C+=y,a.config.chart.stacked?(N=m>0&&a.globals.collapsedSeries.length<a.config.series.length-1?b[m-1][G+1]:A,P=void 0===t[m][G+1]||null===t[m][G+1]?N-1/c[this.yaxisIndex]:N-t[m][G+1]/c[this.yaxisIndex]):P=void 0===t[m][G+1]||null===t[m][G+1]?A-1/c[this.yaxisIndex]:A-t[m][G+1]/c[this.yaxisIndex],S.push(C),k.push(P);var q=this.createPaths({series:t,i:m,j:G,x:C,y:P,xDivision:y,pX:R,pY:H,zeroY:A,linePath:M,areaPath:T,linePaths:X,areaPaths:E});E=q.areaPaths,X=q.linePaths,R=q.pX,H=q.pY,T=q.areaPath,M=q.linePath,this.appendPathFrom&&(L+=s.line(C,A),z+=s.line(C,A));var U=this.calculatePoints({series:t,x:C,y:P,realIndex:w,i:m,j:G,prevY:D,categoryAxisCorrection:v,xRatio:p});if(this.pointsChart)this.scatter.draw(Y,G,{realIndex:w,pointsPos:U,zRatio:d,elParent:O});else{var Z=new f.default(this.ctx),$=Z.plotChartMarkers(U,w,G+1);null!==$&&O.add($)}var J=new u.default(this.ctx),Q=J.drawDataLabel(U,w,G+1);null!==Q&&I.add(Q)}if(b.push(k),a.globals.seriesXvalues[w]=S,a.globals.seriesYvalues[w]=k,this.pointsChart||a.globals.delayedElements.push({el:O.node,index:w}),a.config.stroke.show&&!this.pointsChart){var K=null;K="line"===n?r.fillPath(Y,{seriesNumber:w,i:m}):a.config.stroke.colors[w];for(var tt=0;tt<X.length;tt++){var et=s.renderPaths({i:m,realIndex:w,pathFrom:L,pathTo:X[tt],stroke:K,strokeWidth:Array.isArray(a.config.stroke.width)?a.config.stroke.width[w]:a.config.stroke.width,fill:"none",animationDelay:m,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-line",id:"apexcharts-line"});Y.add(et)}}if("area"===n)for(var it=r.fillPath(Y,{seriesNumber:w}),at=0;at<E.length;at++){var st=s.renderPaths({i:m,realIndex:w,pathFrom:z,pathTo:E[at],stroke:"none",strokeWidth:0,fill:it,animationDelay:m,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-area",id:"apexcharts-area"});Y.add(st)}Y.add(O),Y.add(I),x.push(Y)}for(var rt=x.length;rt>0;rt--)l.add(x[rt-1]);return l}},{key:"createPaths",value:function(t){var e=t.series,i=t.i,a=t.j,s=t.x,r=t.y,n=t.pX,l=t.pY,h=t.xDivision,c=t.zeroY,u=t.linePath,d=t.areaPath,f=t.linePaths,p=t.areaPaths,g=this.w,x=new o.default(this.ctx);if("smooth"===g.config.stroke.curve){var b=.35*(s-n);g.globals.hasNullValues?(null!==e[i][a]&&(null!==e[i][a+1]?(u=x.move(n,l)+x.curve(n+b,l,s-b,r,s+1,r),d=x.move(n,l)+x.curve(n+b,l,s-b,r,s+1,r)+x.line(s+1,c)+x.line(n,c)+"z"):(u=x.move(n,l),d=x.move(n,l)+"z")),f.push(u),p.push(d)):(u+=x.curve(n+b,l,s-b,r,s,r),d+=x.curve(n+b,l,s-b,r,s,r)),n=s,l=r,a===e[i].length-2&&(d=d+x.curve(n,c,s,c,s,c)+"z",g.globals.hasNullValues||(f.push(u),p.push(d)))}else null===e[i][a+1]&&(u+=x.move(s,r),d=d+x.line(s-h,c)+x.move(s,r)),null===e[i][a]&&(u+=x.move(s,r),d+=x.move(s,c)),u+=x.line(s,r),d+=x.line(s,r),a===e[i].length-2&&(d=d+x.line(s,c)+"z",f.push(u),p.push(d));return{linePaths:f,areaPaths:p,pX:n,pY:l,linePath:u,areaPath:d}}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,n=t.j,o=t.prevY,l=t.categoryAxisCorrection,h=t.xRatio,c=this.w,u=[],d=[];if(0===n){var f=l+c.config.markers.offsetX;c.globals.dataXY&&(f=(c.globals.seriesX[i][0]-c.globals.minX)/h+c.config.markers.offsetX),u.push(f),d.push(null!==e[r][0]?o+c.config.markers.offsetY:null),u.push(a+c.config.markers.offsetX),d.push(null!==e[r][n+1]?s+c.config.markers.offsetY:null)}else u.push(a+c.config.markers.offsetX),d.push(null!==e[r][n+1]?s+c.config.markers.offsetY:null);return{x:u,y:d}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r<s.globals.previousPaths.length;r++){var n=s.globals.previousPaths[r];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex)===parseInt(a)&&("line"===n.type?(this.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):"area"===n.type&&(this.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d,i=s.globals.previousPaths[r].paths[1].d))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,a=t.yRatio,s=t.zeroY,r=t.prevY,n=t.prevSeriesY,o=t.lineYPosition,l=this.w;if(void 0!==i[e][0])l.config.chart.stacked?(o=e>0?n[e-1][0]:s,r=o-i[e][0]/a):r=s-i[e][0]/a;else if(l.config.chart.stacked&&e>0&&void 0===i[e][0])for(var h=e-1;h>=0;h--)if(null!==i[h][0]&&void 0!==i[h][0]){o=n[h][0],r=o;break}return{prevY:r,lineYPosition:o}}}]),t}();e.default=x},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")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),l=i(53),h=a(l),c=i(1),u=a(c),d=i(8),f=a(d),p=i(0),g=a(p),x=i(4),b=a(x),v=function(t){function e(t){s(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));i.ctx=t,i.w=t.w,i.animBeginArr=[0],i.animDur=0;var a=i.w;return i.startAngle=a.config.plotOptions.radialBar.startAngle,i.endAngle=a.config.plotOptions.radialBar.endAngle,i.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,i.trackEndAngle=a.config.plotOptions.radialBar.track.endAngle,i.trackStartAngle||(i.trackStartAngle=i.startAngle),i.trackEndAngle||(i.trackEndAngle=i.endAngle),360===i.endAngle&&(i.endAngle=359.99),i.fullAngle=360-a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle,i.margin=parseInt(a.config.plotOptions.radialBar.track.margin),i}return n(e,t),o(e,[{key:"draw",value:function(t){var e=this.w,i=new g.default(this.ctx),a=i.group({class:"apexcharts-radialbar"}),s=i.group(),r=void 0,n=void 0;r=e.globals.gridHeight/2,n=e.globals.gridWidth/2;var o=e.globals.gridWidth/2.05-e.config.stroke.width-e.config.chart.dropShadow.blur;void 0!==e.config.plotOptions.radialBar.size&&(o=e.config.plotOptions.radialBar.size);var l=e.config.fill.colors,h=void 0!==e.config.stroke.colors?e.config.stroke.colors:e.config.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:n,centerY:r,colorArr:l,lineColorArr:h,series:t});s.add(c)}var u=this.drawArcs({size:o,centerX:n,centerY:r,colorArr:l,lineColorArr:h,series:t});return s.add(u.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.g.add(u.dataLabels)),a.add(s),a}},{key:"drawTracks",value:function(t){var e=this.w,i=new g.default(this.ctx),a=i.group(),s=new b.default(this.ctx),r=new f.default(this.ctx),n=t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size))/100/(t.series.length+1)-this.margin;t.size=t.size-n/2;for(var o=0;o<t.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(l),l.attr({id:"apexcharts-track-"+o,rel:o+1}),t.size=t.size-n-this.margin;var c=e.config.plotOptions.radialBar.track,u=r.fillPath(l,{seriesNumber:0,size:t.size,fillColors:c.background,solid:!0}),d=this.trackStartAngle,p=this.trackEndAngle;Math.abs(p)+Math.abs(d)>=360&&(p=360-Math.abs(this.startAngle)-.1);var x=i.drawPath({d:"",stroke:u,strokeWidth:n*parseInt(c.strokeWidth)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var v=c.dropShadow;s.dropShadow(x,v)}l.add(x),x.attr("id","apexcharts-radialbarTrack-"+o);new h.default(this.ctx).animatePaths(x,{centerX:t.centerX,centerY:t.centerY,endAngle:p,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=this,a=new g.default(this.ctx),s=new f.default(this.ctx),r=new b.default(this.ctx),n=a.group(),o=t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size))/100/(t.series.length+1)-this.margin;t.size=t.size-o/2;var l=e.config.plotOptions.radialBar.hollow.image,c=e.config.plotOptions.radialBar.hollow.background,d=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth)/100/2,p=(Math.random()+1).toString(36).substring(4),x=d-e.config.plotOptions.radialBar.hollow.margin;if(void 0!==e.config.plotOptions.radialBar.hollow.image)if(e.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:d,height:d,image:l,patternID:"pattern"+e.globals.cuid+p}),c="url(#pattern"+e.globals.cuid+p+")";else{var v=e.config.plotOptions.radialBar.hollow.imageWidth,m=e.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===v&&void 0===m){var y=e.globals.dom.Paper.image(l).loaded(function(i){this.move(t.centerX-i.width/2+e.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-i.height/2+e.config.plotOptions.radialBar.hollow.imageOffsetY)});n.add(y)}else{var w=e.globals.dom.Paper.image(l).loaded(function(i){this.move(t.centerX-v/2+e.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-m/2+e.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(v,m)});n.add(w)}}var k=this.drawHollow({size:x,centerX:t.centerX,centerY:t.centerY,fill:c});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var S=e.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(k,S)}var A=1;("hover"===e.config.plotOptions.radialBar.dataLabels.showOn||e.globals.series.length>1)&&(A=0);var C=this.renderDataLabels({hollowSize:d,centerX:t.centerX,centerY:t.centerY,opacity:A});"back"===e.config.plotOptions.radialBar.hollow.position&&(n.add(k),n.add(C));var P=!1;e.config.plotOptions.radialBar.inverseOrder&&(P=!0);for(var M=P?t.series.length-1:0;P?M>=0:M<t.series.length;P?M--:M++){var T=a.group({class:"apexcharts-radial-series apexcharts-series"});n.add(T),T.attr({id:"apexcharts-series-"+M,rel:M+1}),t.size=t.size-o-this.margin;var L=s.fillPath(T,{seriesNumber:M,size:t.size}),z=this.startAngle,X=void 0,E=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),Y=Math.round(E*u.default.negToZero(t.series[M])/100)+this.startAngle,O=void 0;e.globals.dataChanged&&(X=this.startAngle,O=Math.round(E*u.default.negToZero(e.globals.previousPaths[M])/100)+X);Math.abs(Y)+Math.abs(z)>=360&&(Y-=.01);Math.abs(O)+Math.abs(X)>=360&&(O-=.01);var I=Y-z,_=a.drawPath({d:"",stroke:L,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area",strokeDashArray:e.config.stroke.dashArray});if(g.default.setAttrs(_.node,{"data:angle":I,"data:value":t.series[M]}),e.config.chart.dropShadow.enabled){var W=e.config.chart.dropShadow;r.dropShadow(_,W)}_.node.addEventListener("mouseenter",a.pathMouseEnter.bind(this,_)),_.node.addEventListener("mouseleave",a.pathMouseLeave.bind(this,_)),_.node.addEventListener("mouseenter",i.dataLabelsMouseIn.bind(this,_.node)),_.node.addEventListener("mouseleave",i.dataLabelsMouseout.bind(this,_.node)),T.add(_),_.attr("id","apexcharts-radialArc-"+M);var R=new h.default(this.ctx),H=0;!R.initialAnim||e.globals.resized||e.globals.dataChanged||(H=(Y-z)/360*e.config.chart.animations.speed,this.animDur=H/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(H=(Y-z)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=H/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),R.animatePaths(_,{centerX:t.centerX,centerY:t.centerY,endAngle:Y,startAngle:z,prevEndAngle:O,prevStartAngle:X,size:t.size,i:M,totalItems:2,animBeginArr:this.animBeginArr,dur:H,easing:e.globals.easing})}return{g:n,elHollow:k,dataLabels:C}}},{key:"drawHollow",value:function(t){var e=new g.default(this.ctx),i=e.drawCircle(2*t.size);return i.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),i}},{key:"dataLabelsMouseIn",value:function(t){var e=this.w,i=t.getAttribute("data:value"),a=void 0,s=e.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"))-1],r=e.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=e.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.config.plotOptions.radialBar.dataLabels.value.formatter)(i),null!==r&&(r.textContent=s),null!==n&&(n.textContent=i),a=void 0===e.config.plotOptions.radialBar.dataLabels.name.color?e.config.colors[parseInt(t.parentNode.getAttribute("rel"))-1]:e.config.plotOptions.radialBar.dataLabels.name.color;var o=e.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==o&&(o.style.opacity=1),null!==r&&(r.style.fill=a)}},{key:"dataLabelsMouseout",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");("always"!==e.config.plotOptions.radialBar.dataLabels.showOn||e.globals.series.length>1)&&null!==i&&(i.style.opacity=0)}},{key:"renderDataLabels",value:function(t){var e=this.w,i=new g.default(this.ctx),a=i.group({class:"apexcharts-datalabels-group"});a.node.style.opacity=t.opacity;var s=t.centerX,r=t.centerY,n=void 0,o=void 0;n=void 0===e.config.plotOptions.radialBar.dataLabels.name.color?e.config.colors[0]:e.config.plotOptions.radialBar.dataLabels.name.color,o=void 0===e.config.plotOptions.radialBar.dataLabels.value.color?e.config.chart.foreColor:e.config.plotOptions.radialBar.dataLabels.value.color;var l=e.config.plotOptions.radialBar.dataLabels.value.formatter,h=l(e.globals.series[0]);if(e.config.plotOptions.radialBar.dataLabels.name.show){var c=i.drawText({x:s,y:r+parseInt(e.config.plotOptions.radialBar.dataLabels.name.offsetY),text:e.globals.seriesNames[0],textAnchor:"middle",foreColor:n,fontSize:e.config.plotOptions.radialBar.dataLabels.name.fontSize});c.node.classList.add("apexcharts-datalabel-label"),a.add(c)}if(e.config.plotOptions.radialBar.dataLabels.value.show){var u=e.config.plotOptions.radialBar.dataLabels.name.show?parseInt(e.config.plotOptions.radialBar.dataLabels.value.offsetY)+16:e.config.plotOptions.radialBar.dataLabels.value.offsetY,d=i.drawText({x:s,y:r+u,text:h,textAnchor:"middle",foreColor:o,fontSize:e.config.plotOptions.radialBar.dataLabels.value.fontSize});d.node.classList.add("apexcharts-datalabel-value"),a.add(d)}return a}}]),e}(h.default);e.default=v},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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w,this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return s(t,[{key:"addXAxisAnnotation",value:function(t,e,i){var a=this.w,s=new n.default(this.ctx),r=t.strokeDashArray,o=(t.x-a.globals.minX)/(a.globals.xRange/a.globals.gridWidth),l=s.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,a.globals.gridHeight+t.offsetY,t.borderColor,r);e.appendChild(l.node);var h="top"===t.label.position?-3:a.globals.gridHeight,c=t.label.text?t.label.text:"",u=s.drawText({x:o+t.label.offsetX,y:h+t.label.offsetY,text:c,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label "+t.label.style.cssClass});u.attr({rel:i}),e.appendChild(u.node)}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=new n.default(this.ctx),a=i.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(e,i){t.addXAxisAnnotation(e,a.node,i)}),a}},{key:"addYAxisAnnotation",value:function(t,e,i){var a=this.w,s=new n.default(this.ctx),r=t.strokeDashArray,o=a.globals.gridHeight-(t.y-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight),l=t.label.text?t.label.text:"",h=s.drawLine(0+t.offsetX,o+t.offsetY,a.globals.gridWidth+t.offsetX,o+t.offsetY,t.borderColor,r);e.appendChild(h.node);var c="right"===t.label.position?a.globals.gridWidth:0,u=s.drawText({x:c+t.label.offsetX,y:o+t.label.offsetY-3,text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label "+t.label.style.cssClass});u.attr({rel:i}),e.appendChild(u.node)}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=new n.default(this.ctx),a=i.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(e,i){t.addYAxisAnnotation(e,a.node,i)}),a}},{key:"addPointAnnotation",value:function(t,e,i){var a=this.w,s=new n.default(this.ctx),r=0,o=0,l=0;if("string"==typeof t.x){"bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal;var h=a.globals.labels.indexOf(t.x),c=a.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(h+1)+")");r=parseInt(c.getAttribute("x"));var u=t.y;null===t.y&&(u=a.globals.series[t.seriesIndex][h]),o=a.globals.gridHeight-(u-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight)-parseInt(t.label.style.fontSize)-t.marker.size,l=a.globals.gridHeight-(u-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight)}else r=(t.x-a.globals.minX)/(a.globals.xRange/a.globals.gridWidth),o=a.globals.gridHeight-(parseInt(t.y)-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight)-parseInt(t.label.style.fontSize)-t.marker.size,l=a.globals.gridHeight-(t.y-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight);var d={pSize:t.marker.size,pWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,radius:t.marker.radius},f=s.drawMarker(r,l,d);e.appendChild(f.node);var p=t.label.text?t.label.text:"",g=s.drawText({x:r+t.label.offsetX,y:o+t.label.offsetY,text:p,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label "+t.label.style.cssClass});g.attr({rel:i}),e.appendChild(g.node)}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=new n.default(this.ctx),a=i.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(e,i){t.addPointAnnotation(e,a.node,i)}),a}},{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w,a=new n.default(this.ctx);t.map(function(t,s){if("vertical"===t.label.orientation){var r=null!==e?e:s,n=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='"+r+"']");if(null!==n){var o=n.getBoundingClientRect();n.setAttribute("x",parseInt(n.getAttribute("x"))-o.height+4),"top"===t.label.position?n.setAttribute("y",parseInt(n.getAttribute("y"))+o.width):n.setAttribute("y",parseInt(n.getAttribute("y"))-o.width);var l=a.rotateAroundCenter(n),h=l.x,c=l.y;n.setAttribute("transform","rotate(-90 "+h+" "+c+")")}}})}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w,a=new n.default(this.ctx),s=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=t.getBoundingClientRect(),o=e.label.style.padding.left,l=e.label.style.padding.right,h=e.label.style.padding.top,c=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(h=e.label.style.padding.left,c=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom);var u=r.left-s.left-o,d=r.top-s.top-h;return a.drawRect(u,d,r.width+o+l,r.height+h+c,0,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0)}},{key:"annotationsBackground",value:function(){var t=this,e=this.w;e.config.annotations.xaxis.map(function(i,a){var s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='"+a+"']"),r=s.parentNode,n=t.addBackgroundToAnno(s,i,a);r.insertBefore(n.node,s)}),e.config.annotations.yaxis.map(function(i,a){var s=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis-annotations .apexcharts-yaxis-annotation-label[rel='"+a+"']"),r=s.parentNode,n=t.addBackgroundToAnno(s,i,a);r.insertBefore(n.node,s)}),e.config.annotations.points.map(function(i,a){var s=e.globals.dom.baseEl.querySelector(".apexcharts-point-annotations .apexcharts-point-annotation-label[rel='"+a+"']"),r=s.parentNode,n=t.addBackgroundToAnno(s,i,a);r.insertBefore(n.node,s)})}}]),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(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(59),o=a(n),l=i(121),h=a(l),c=function(){function t(e){s(this,t),this.opts=e}return r(t,[{key:"init",value:function(){var t=new o.default(this.opts).init();return{config:t,globals:(new h.default).init(t)}}}]),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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(52),o=a(n),l=i(98),h=a(l),c=i(99),u=a(c),d=i(53),f=a(d),p=i(101),g=a(p),x=i(100),b=a(x),v=i(0),m=a(v),y=i(37),w=a(y),k=i(119),S=a(k),A=i(35),C=a(A),P=i(36),M=a(P),T=i(108),L=a(T),z=i(1),X=a(z),E=i(127),Y=a(E),O=i(15),I=a(O),_=i(62),W=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(_);i(61),i(124),i(123),i(126),i(125);var R=function(){function t(e,i){s(this,t),this.ctx=i,this.w=i.w,this.el=e}return r(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=new m.default(this.ctx),a=e.chart.type,s=["line","bar","area","scatter","bubble","heatmap"],r=["line","bar","area","scatter","bubble"];t.axisCharts=s.indexOf(a)>-1,t.xyCharts=r.indexOf(a)>-1,t.chartClass=".apexcharts"+t.cuid,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),m.default.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),t.dom.elWrap.style.background=e.chart.background,this.el.appendChild(t.dom.elWrap),t.dom.Paper=new W.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate("+e.chart.offsetX+", "+e.chart.offsetY+")"}),this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=i.group({class:"apexcharts-legend"}),t.dom.Paper.add(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs),X.default.isIE()&&Y.default.fnClassList()}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},n={series:[],i:[]},l={series:[],i:[]};s.series.map(function(e,a){void 0!==t[a].type?("column"===t[a].type||"bar"===t[a].type?(i.config.plotOptions.bar.horizontal=!1,l.series.push(e),l.i.push(a)):"area"===t[a].type?(n.series.push(e),n.i.push(a)):(t[a].type,r.series.push(e),r.i.push(a)),s.comboCharts=!0):(r.series.push(e),r.i.push(a))});var c=new b.default(this.ctx,e),d=new f.default(this.ctx),p=new g.default(this.ctx),x=[];if(s.comboCharts){if(n.series.length>0&&x.push(c.draw(n.series,"area",n.i)),l.series.length>0){var v=new o.default(this.ctx,e);x.push(v.draw(l.series,l.i))}r.series.length>0&&x.push(c.draw(r.series,"line",r.i))}else switch(a.chart.type){case"line":x=c.draw(s.series,"line");break;case"area":x=c.draw(s.series,"area");break;case"bar":if(a.chart.stacked){x=new h.default(this.ctx,e).draw(s.series)}else{x=new o.default(this.ctx,e).draw(s.series)}break;case"heatmap":x=new u.default(this.ctx,e).draw(s.series);break;case"pie":case"donut":x=d.draw(s.series);break;case"radialBar":x=p.draw(s.series);break;default:x=c.draw(s.series)}return x}},{key:"setSparkLineOptions",value:function(){var t=this.w,e=t.config;if(t.config.chart.sparkline.enabled){e.grid.show=!1,e.xaxis.labels.show=!1,e.legend.show=!1,e.chart.toolbar.show=!1,e.chart.zoom.enabled=!1,e.xaxis.tooltip.enabled=!1,e.xaxis.axisBorder.show=!1;var i=!0,a=!1,s=void 0;try{for(var r,n=e.yaxis[Symbol.iterator]();!(i=(r=n.next()).done);i=!0){var o=r.value;o.tooltip.enabled=!1,o.labels.show=!1}}catch(t){a=!0,s=t}finally{try{!i&&n.return&&n.return()}finally{if(a)throw s}}e.chart.scroller.enabled=!1,e.dataLabels.enabled=!1}}},{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=X.default.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();if("%"===a?t.svgWidth=i[0]*parseInt(e.chart.width)/100:"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width)),"auto"!==t.svgHeight&&""!==t.svgHeight){var s=e.chart.height.toString().split(/[0-9]+/g).pop();t.svgHeight="%"===s?i[1]*parseInt(e.chart.height)/100:parseInt(e.chart.height)}else t.axisCharts?t.svgHeight=t.svgWidth/1.5:t.svgHeight=t.svgWidth;m.default.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight});var r=e.chart.sparkline.enabled?0:14;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+r+"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=t.translateX,a={transform:"translate("+i+", "+e+")"};m.default.setAttrs(t.dom.elGraphical.node,a)}},{key:"resetGlobals",value:function(){var t=this,e=this.w.globals;e.series=[],e.seriesPercent=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.stackedSeriesTotals=[],e.labels=[],e.timelineLabels=[],e.noLabelsProvided=!1,e.timescaleTicks=[],e.seriesXvalues=function(){return t.w.config.series.map(function(t){return[]})}(),e.seriesYvalues=function(){return t.w.config.series.map(function(t){return[]})}(),e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.dataXY=!1,e.dataXYZ=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialmaxX=-Number.MAX_VALUE,e.initialminX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.config.chart.stacked=!1,this.w.globals.isMultipleYAxis=!0,!0}},{key:"parseData",value:function(t){var e=this,i=this.w,a=i.config,s=i.globals,r=new I.default(this.ctx);s.ignoreYAxisIndexes=s.collapsedSeries.map(function(t,i){if(e.w.globals.isMultipleYAxis)return t.index});var n=a.series.slice(),o=r.getActiveConfigSeriesIndex(),l=function(){if(void 0!==n[o].data&&n[o].data.length>0&&null!==n[o].data[0]&&void 0!==n[o].data[0].x&&null!==n[o].data[0])return!0},h=function(){if(void 0!==n[o].data&&n[o].data.length>0&&void 0!==n[o].data[0]&&null!==n[o].data[0]&&n[o].data[0].constructor===Array)return!0},c=new w.default(this.ctx),u=!1;if(this.resetGlobals(),this.isMultipleY(),s.axisCharts)for(var d=0;d<n.length;d++){var f=[],p=[],g=[];if(void 0===n[d].data)return void console.warn("It is a possibility that you may have not included 'data' property in series.");if(function(){return l()||h()}()){if(h()){for(var x=0;x<t[d].data.length;x++)if(void 0!==t[d].data[x][1]&&f.push(t[d].data[x][1]),"datetime"!==a.xaxis.type){var b=new Date(t[d].data[x][0]);b=new Date(b).getTime(),g.push(b)}else g.push(t[d].data[x][0]);for(var v=0;v<t[d].data.length;v++)void 0!==t[d].data[v][2]&&(p.push(t[d].data[v][2]),s.dataXYZ=!0)}else if(l()){for(var m=0;m<t[d].data.length;m++){void 0!==t[d].data[m].y&&f.push(t[d].data[m].y);var y="string"==typeof t[d].data[m].x,k=c.isValidDate(t[d].data[m].x.toString());y||k?y?"datetime"===a.xaxis.type?g.push(new Date(t[d].data[m].x).getTime()):(u=!0,g.push(t[d].data[m].x)):k?"datetime"===a.xaxis.type?g.push(new Date(t[d].data[m].x.toString()).getTime()):g.push(parseInt(t[d].data[m].x)):(u=!0,g.push(parseInt(t[d].data[m].x))):g.push(t[d].data[m].x)}if(void 0!==n[d].data[0].z){for(var S=0;S<n[d].data.length;S++)p.push(n[d].data[S].z);s.dataXYZ=!0}}s.series.push(f),s.labels.push(g),s.seriesX.push(g),u||(s.dataXY=!0)}else{if("datetime"===a.xaxis.type){s.dataXY=!0;for(var A=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice(),C=0;C<A.length;C++)if("string"==typeof A[C]){var P=c.isValidDate(A[C]);P&&g.push(new Date(A[C]).getTime())}s.seriesX.push(g)}s.labels.push(g),s.series.push(t[d].data)}s.seriesZ.push(p),void 0!==t[d].name?s.seriesNames.push(t[d].name):s.seriesNames.push("series-"+parseInt(d+1))}else{s.series=t.slice(),s.seriesNames=a.labels.slice();for(var M=0;M<s.series.length;M++)void 0===s.seriesNames[M]&&s.seriesNames.push("series-"+(M+1))}if(s.maxValsInArrayIndex=s.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,s.series.map(function(t){return t.length}))),"bar"===a.chart.type&&a.chart.stacked){var T=new I.default(this.ctx);s.series=T.setNullSeriesToZeroValues(s.series)}if(this.getSeriesTotals(),s.axisCharts&&this.getStackedSeriesTotals(),this.getPercentSeries(),!s.dataXY)if(a.xaxis.categories.length>0)s.labels=a.xaxis.categories;else if(a.labels.length>0)s.labels=a.labels.slice();else if(u)s.labels=s.labels[0];else{var L=[];if(s.axisCharts){for(var z=0;z<s.series[s.maxValsInArrayIndex].length;z++)L.push(z+1);for(var X=0;X<t.length;X++)s.seriesX.push(L);s.dataXY=!0}if(0===L.length){L=[0,10];for(var E=0;E<t.length;E++)s.seriesX.push(L)}s.labels=L,s.noLabelsProvided=!0}}},{key:"getStackedSeriesTotals",value:function(){for(var t=this.w,e=[],i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var a=0,s=0;s<t.globals.series.length;s++)a+=t.globals.series[s][i];e.push(a)}t.globals.stackedSeriesTotals=e}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e}):this.w.config.series[t].data.reduce(function(t,e){return t+e})}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var a=0;a<t.length;a++)i+=t[a];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(a,s){for(var r=0,n=0;n<a.length;n++)i.globals.seriesX[s][n]>t&&i.globals.seriesX[s][n]<e&&(r+=a[n]);return r})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var a=[];if(Array.isArray(e))for(var s=0;s<e.length;s++){var r=t.globals.stackedSeriesTotals[s],n=100*e[s]/r;a.push(n)}else{var o=t.globals.seriesTotals.reduce(function(t,e){return t+e}),l=100*e/o;a.push(l)}return a})}},{key:"coreCalculations",value:function(){new L.default(this.ctx,this.checkComboCharts).init()}},{key:"getCalculatedRatios",value:function(){var t=this.w.globals,e=[],i=0,a=0,s=0,r=0,n=0,o=[],l=.1,h=0;if(t.yRange=[],t.isMultipleYAxis)for(var c=0;c<t.minYArr.length;c++)t.yRange.push(Math.abs(t.minYArr[c]-t.maxYArr[c])),o.push(0);else t.yRange.push(Math.abs(t.minY-t.maxY));t.xRange=Math.abs(t.maxX-t.minX),t.zRange=Math.abs(t.maxZ-t.minZ);for(var u=0;u<t.yRange.length;u++)e.push(t.yRange[u]/t.gridHeight);if(a=t.xRange/t.gridWidth,s=Math.abs(t.initialmaxX-t.initialminX)/t.gridWidth,i=t.yRange/t.gridWidth,r=t.xRange/t.gridHeight,n=t.zRange/t.gridHeight*16,t.minY!==Number.MIN_VALUE&&0!==Math.abs(t.minY)){if(t.hasNegs=!0,o=[],t.isMultipleYAxis)for(var d=0;d<e.length;d++)o.push(-t.minYArr[d]/e[d]);else o.push(-t.minY/e[0]);l=-t.minY/i,h=t.minX/a}else o.push(0);return{yRatio:e,invertedYRatio:i,zRatio:n,xRatio:a,initialXRatio:s,invertedXRatio:r,baseLineInvertedY:l,baseLineY:o,baseLineX:h}}},{key:"checkComboCharts",value:function(){var t=this.w;t.config.series.map(function(e,i){void 0!==e.type&&(t.globals.comboCharts=!0)})}},{key:"drawAxis",value:function(t,e){var i=this.w.globals,a=this.w.config,s=new C.default(this.ctx),r=new M.default(this.ctx);if(i.axisCharts){var n=void 0,o=void 0;"bar"===t&&a.plotOptions.bar.horizontal?(o=r.drawYaxisInversed(0),n=s.drawXaxisInversed(0),i.dom.elGraphical.add(n),i.dom.elGraphical.add(o)):(n=s.drawXaxis(),i.dom.elGraphical.add(n),a.yaxis.map(function(t,a){i.ignoreYAxisIndexes.includes(a)||(o=r.drawYaxis(e,a),i.dom.Paper.add(o))}))}a.yaxis.map(function(t,e){i.ignoreYAxisIndexes.includes(e)||r.yAxisTitleRotate(e,t.opposite)})}},{key:"drawGrid",value:function(){var t=this.w,e=new S.default(this.ctx),i=new C.default(this.ctx),a=this.w.globals,s=null;if(a.axisCharts){if(t.config.grid.show)s=e.renderGrid(),a.dom.elGraphical.add(s.el),e.drawGridArea(s.el);else{var r=e.drawGridArea();a.dom.elGraphical.add(r)}null!==s&&i.xAxisLabelCorrections(s.xAxisTickWidth)}}},{key:"createGridMask",value:function(){var t=this.w,e=new m.default(this.ctx);t.globals.dom.elGridRectMask=document.createElementNS(t.globals.svgNS,"clipPath"),t.globals.dom.elGridRectMask.setAttribute("id","gridRectMask"+t.globals.cuid),t.globals.dom.elGridRect=e.drawRect(0,0,t.globals.gridWidth,t.globals.gridHeight+1,0,"#fff"),t.globals.dom.elGridRectMask.appendChild(t.globals.dom.elGridRect.node),t.globals.dom.baseEl.querySelector("defs").appendChild(t.globals.dom.elGridRectMask)}}]),t}();t.exports=R},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(4),h=a(l),c=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new o.default(this.ctx),i=new h.default(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,n=a.colorFrom,l=a.colorTo,c=a.opacityFrom,u=a.opacityTo,d=a.stops,f=s.enabled,p=s.left,g=s.top,x=s.blur,b=s.opacity,v=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(v=e.drawGradient("vertical",n,l,c,u,null,d));var m=e.drawRect();m.attr({class:"apexcharts-xcrosshairs",x:0,y:0,width:0,height:t.globals.gridHeight,fill:v,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),f&&(m=i.dropShadow(m,{left:p,top:g,blur:x,opacity:b})),t.globals.dom.elGraphical.add(m)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new o.default(this.ctx),i=t.config.yaxis[0].crosshairs;if(t.config.yaxis[0].crosshairs.show){var a=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(a)}var s=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(s)}}]),t}();e.default=c},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w}return s(t,[{key:"getSvgString",value:function(){return this.w.globals.dom.Paper.svg()}},{key:"exportToSVG",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs");e&&e.setAttribute("x",-500),i&&(i.setAttribute("y1",-100),i.setAttribute("y2",-100));var a=this.getSvgString(),s=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(s),n=document.createElement("a");n.href=r,n.download="apexcharts-"+t.globals.cuid+".svg",document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),t}();e.default=r},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(21),o=a(n),l=i(0),h=a(l),c=i(15),u=a(c),d=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.existingWidth=0,this.existingHeight=0,this.rowHeight=20,this.maxTextWidth=0,this.padding=0,this.noOfLegendColumns=1,this.textMaxWidthArr=[],this.legendsArray=[],this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this)}return r(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(i.chart.type,e.series.length),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignCenterHorz():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(t,e){var i=this,a=this.w,s=new h.default(this.ctx),r=a.config.legend.markers.size,n=a.config.legend.fontSize,o=a.config.legend.itemMargin.horizontal,l=a.config.legend.itemMargin.vertical;this.padding=r+a.config.legend.markers.strokeWidth;var c=this.padding,u=0,d=1,f=0,p=a.globals.seriesNames,g=a.config.colors.slice();if("heatmap"===a.config.chart.type){var x=a.config.plotOptions.heatmap.colorScale.ranges;p=x.map(function(t,e){return t.name?t.name:t.from+" - "+t.to}),g=x.map(function(t,e){return t.color})}for(var b=a.globals.legendFormatter,v=void 0,m=0;m<=p.length-1;m++){var y=!("top"!==a.config.legend.position&&"bottom"!==a.config.legend.position),w=0,k=0,S=void 0,A=b(p[m],{globals:a.globals,seriesIndex:m}),C=!1;if(a.globals.collapsedSeries.length>0)for(var P=0;P<a.globals.collapsedSeries.length;P++)a.globals.collapsedSeries[P].index===m&&(C=!0);if(y){v=s.drawText({x:this.existingWidth,y:0,foreColor:"transparent",opacity:0,text:A,cssClass:"apexcharts-virtual-text",fontSize:n}),a.globals.dom.Paper.add(v);var M=v.bbox();S=M.width,this.rowHeight=M.height+l,k=this.existingWidth+c+o,this.existingWidth+S+c+o>a.globals.svgWidth&&(d+=1,this.existingWidth=0,k=this.existingWidth+c+o),"bottom"===a.config.legend.position?w=a.globals.svgHeight-this.rowHeight:"top"===a.config.legend.position&&(w=0),w+=this.rowHeight*d}else{v=s.drawText({x:0,y:this.existingHeight,foreColor:"transparent",opacity:0,text:A,textAnchor:"start",cssClass:"apexcharts-virtual-text",fontSize:n}),a.globals.dom.Paper.add(v);var T=v.bbox(),L=T.height;this.rowHeight=L+l,this.textMaxWidthArr.push(T.width);var z=this.getTextMaxWidth()+o;d=m+1,this.existingHeight+L+c>a.globals.svgHeight&&(f+=1,this.existingHeight=0),k=c+f*z,w=this.existingHeight+L}v.node.parentNode.removeChild(v.node);var X={pSize:r,pRadius:a.config.legend.markers.radius,pWidth:a.config.legend.markers.strokeWidth,shape:a.config.legend.markers.shape,pointStrokeColor:a.config.legend.markers.strokeColor,pointFillColor:g[m],pointStrokeOpacity:1,pointFillOpacity:1,class:"apexcharts-legend-point"},E=r/2-1+a.config.legend.markers.strokeWidth,Y=s.drawMarker(k-c+a.config.legend.markers.offsetX-4,w-c+E+a.config.legend.markers.offsetY-1,X).attr({rel:m+1,"data:collapsed":C});C&&Y.node.classList.add("inactive-legend");var O={x:k,y:w,foreColor:a.config.legend.useSeriesColors?a.config.colors[m]:a.config.legend.labels.color,text:A,textAnchor:a.config.legend.textAnchor,fontSize:n,cssClass:"apexcharts-legend-text"};this.existingWidth=this.existingWidth+S+o+c+5,this.existingHeight=this.existingHeight+this.rowHeight+c/4,u=u+S+c+o;var I=s.drawText(O);a.globals.dom.elLegendWrap.add(I),a.globals.dom.elLegendWrap.add(Y),I.node.classList.add("apexcharts-legend-series"),I.attr({rel:m+1,"data:collapsed":C}),C&&I.node.classList.add("inactive-legend")}"heatmap"!==a.config.chart.type&&a.config.legend.onItemClick.toggleDataSeries&&a.globals.dom.elWrap.addEventListener("click",i.onLegendClick,!0),a.config.legend.onItemHover.highlightDataSeries&&(a.globals.dom.elWrap.addEventListener("mousemove",i.onLegendHovered,!0),a.globals.dom.elWrap.addEventListener("mouseout",i.onLegendHovered,!0))}},{key:"getTextMaxWidth",value:function(){for(var t=0,e=0;e<this.textMaxWidthArr.length;e++)t=Math.max(t,this.textMaxWidthArr[e]);return this.maxTextWidth=t,t}},{key:"getLegendBBox",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend").getBBox(),i=e.width;return{clwh:e.height,clww:i}}},{key:"translateLegendPoints",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w,a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-point"),s=0;s<a.length;s++){if(null===e){var r=a[s].getAttribute("transform");r.indexOf(",")>-1?e=parseFloat(r.split(",")[1]):r.indexOf(" ")>-1&&(e=parseFloat(r.split(" ")[1])),e||(e=0)}a[s].setAttribute("transform","translate("+t+","+e+")")}}},{key:"setLegendXY",value:function(t,e){for(var i=this.w,a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-series"),s=0;s<a.length;s++){var r=parseInt(a[s].getAttribute("x")),n=parseInt(a[s].getAttribute("y"));h.default.setAttrs(a[s],{x:r+t,y:n+e})}this.setLegendWrapXY()}},{key:"setLegendWrapXY",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend"),i=t.config.legend.containerMargin.left-t.config.legend.containerMargin.right,a=t.config.legend.containerMargin.top-t.config.legend.markers.size-2;if("bottom"===t.config.legend.position&&t.globals.dataXY&&t.config.chart.scroller.enabled&&(a=a-t.config.chart.scroller.height+1),"top"===t.config.legend.position){var s=new o.default(this.ctx),r=s.getMainTitleCoords().height,n=s.getSubTitleCoords().height;a=a+(r>0?r-10:0)+(n>0?n-10:0)}e.setAttribute("transform","translate("+i+", "+a+")")}},{key:"legendAlignCenterHorz",value:function(){var t=this.w,e=this.getLegendBBox(),i=new o.default(this.ctx),a=i.getMainTitleCoords(),s=i.getSubTitleCoords(),r=20,n=0;"right"===t.config.legend.horizontalAlign?r=t.globals.svgWidth-e.clww-r:"center"===t.config.legend.horizontalAlign&&(r=(t.globals.svgWidth-e.clww)/2),"bottom"===t.config.legend.position?n=-e.clwh/1.8:"top"===t.config.legend.position&&(n=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-15),r+=t.config.legend.offsetX,n+=t.config.legend.offsetY,this.setLegendXY(r,n),this.translateLegendPoints(r,n)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.getLegendBBox(),i=e.clwh+1.2*this.rowHeight<t.globals.svgHeight?this.rowHeight:this.rowHeight/2,a=20,s=0;"left"===t.config.legend.position&&(s=t.config.legend.markers.size+10),"bottom"===t.config.legend.verticalAlign?a=t.globals.svgHeight-e.clwh-a:"middle"===t.config.legend.verticalAlign&&(a=(t.globals.svgHeight-e.clwh)/2-i),s+=t.config.legend.offsetX,a+=t.config.legend.offsetY,this.setLegendXY(s,a),this.translateLegendPoints(s,a),"right"===t.config.legend.position&&this.moveLegendsToRight()}},{key:"moveLegendsToRight",value:function(){var t=this.w,e=this.getLegendBBox(),i=t.globals.svgWidth-e.clww-this.padding/2;this.setLegendXY(i,0),this.translateLegendPoints(i+t.config.legend.offsetX,null)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-point");if("heatmap"!==e.config.chart.type){if(!t.target.classList.contains("inactive-legend")&&i){var a=new u.default(this.ctx);a.toggleSeriesOnHover(t,t.target)}}else if(i){var s=new u.default(this.ctx);s.highlightRangeInSeries(t,t.target)}}},{key:"onLegendClick",value:function(t){var e=this.w,i=this;if(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-point")){var a=parseInt(t.target.getAttribute("rel"))-1;if(e.globals.axisCharts||"radialBar"===e.config.chart.type){e.globals.resized=!0;var s=null,r=t.target.getAttribute("data:collapsed"),n=null;if(e.globals.risingSeries=[],e.globals.axisCharts?(s=e.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='"+a+"']"),n=parseInt(s.getAttribute("data:realIndex"))):(s=e.globals.dom.baseEl.querySelector(".apexcharts-series[rel='"+(a+1)+"']"),n=parseInt(s.getAttribute("rel"))-1),"true"===r){if(e.globals.collapsedSeries.length>0)for(var o=0;o<e.globals.collapsedSeries.length;o++)e.globals.collapsedSeries[o].index===n&&(e.globals.axisCharts?(e.config.series[n].data=e.globals.collapsedSeries[o].data.slice(),e.globals.collapsedSeries.splice(o,1),e.globals.risingSeries.push(n)):(e.config.series[n]=e.globals.collapsedSeries[o].data,e.globals.collapsedSeries.splice(o,1),e.globals.risingSeries.push(n)),i.ctx.updateSeries(e.config.series,e.globals.initialConfig.chart.animations.dynamicAnimation.enabled))}else{if(e.globals.axisCharts){e.globals.collapsedSeries.push({index:n,data:e.config.series[n].data.slice(),type:s.parentNode.className.baseVal.split("-")[1]});var l=e.globals.risingSeries.indexOf(n);e.globals.risingSeries.splice(l,1),e.config.series[n].data=[]}else e.globals.collapsedSeries.push({index:n,data:e.config.series[n]}),e.config.series[n]=0;for(var h=s.childNodes,c=0;c<h.length;c++)h[c].classList.contains("apexcharts-series-markers-wrap")&&(h[c].classList.contains("apexcharts-hide")?h[c].classList.remove("apexcharts-hide"):h[c].classList.add("apexcharts-hide"));e.globals.allSeriesCollapsed=e.globals.collapsedSeries.length===e.globals.series.length,i.ctx.updateSeries(e.config.series,e.globals.initialConfig.chart.animations.dynamicAnimation.enabled)}}else{e.globals.dom.Paper.select(" .apexcharts-series[rel='"+(a+1)+"'] path").fire("click")}}}}]),t}();e.default=d},function(t,e,i){"use strict";function a(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(1),o=function(t){return t&&t.__esModule?t:{default:t}}(n),l=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.checkComboCharts=i}return r(t,[{key:"init",value:function(){this.handleMinYMaxY(),this.handleMinXMaxX(),this.handleMinZMaxZ()}},{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments[3];if(t===Number.MIN_VALUE&&0===e){t=0,e=1;return this.justRange(t,e,2)}var s=[];t===e&&(t-=10,e+=10);var r=e-t,n=i+1;n<2?n=2:n>2&&(n-=2);for(var o=r/n,l=Math.floor(this.log10(o)),h=Math.pow(10,l),c=parseInt(o/h),u=c*h,d=u*Math.floor(t/u),f=u*Math.ceil(e/u),p=d;;)if(s.push(p),(p+=u)>f)break;if(void 0===this.w.config.yaxis[0].max&&void 0===this.w.config.yaxis[0].min)return{result:s,niceMin:s[0],niceMax:s[s.length-1]};s=[];var g=t;s.push(g);for(var x=Math.abs(e-t)/i,b=0;b<=i-1;b++)g+=x,g%1!=0&&void 0!==a&&(g=parseFloat(g.toFixed(a))),s.push(g);return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"justRange",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=Math.abs(e-t),s=a/i;i===Number.MAX_VALUE&&(a=10,i=10,s=1);for(var r=[],n=t;i>=0;)r.push(n),n+=s,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"handleMinYMaxY",value:function(){var t=this,e=this.w.globals,i=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var s=i.yaxis,r=Number.MAX_VALUE,n=function(t,i){for(var s=-Number.MAX_VALUE,n=Number.MIN_VALUE,l=t;l<i;l++){e.dataPoints=Math.max(e.dataPoints,e.series[l].length),o.default.isIE()&&(n=Math.min.apply(Math,a(e.series[l])));for(var h=0;h<e.series[l].length;h++)null!==e.series[l][h]&&o.default.isNumber(e.series[l][h])?(s=Math.max(s,e.series[l][h]),r=Math.min(r,e.series[l][h]),o.default.isFloat(e.series[l][h])&&(e.yValueDecimal=Math.max(e.yValueDecimal,e.series[l][h].toString().split(".")[1].length)),n>e.series[l][h]&&e.series[l][h]<0&&(n=e.series[l][h])):e.hasNullValues=!0}return{minY:n,maxY:s}};if(e.isMultipleYAxis)for(var l=0;l<e.series.length;l++){var h=n(l,l+1);e.minYArr.push(h.minY),e.maxYArr.push(h.maxY)}var c=n(0,e.series.length);if(e.minY=c.minY,e.maxY=c.maxY,i.chart.stacked){for(var u=[],d=[],f=0;f<e.series[e.maxValsInArrayIndex].length;f++)for(var p=0,g=0,x=0;x<e.series.length;x++)null!==e.series[x][f]&&o.default.isNumber(e.series[x][f])&&(e.series[x][f]>0?p+=parseInt(e.series[x][f]):g+=parseInt(e.series[x][f])),x===e.series.length-1&&(u.push(p),d.push(g));for(var b=0;b<u.length;b++)e.maxY=Math.max(e.maxY,u[b]),e.minY=Math.min(e.minY,d[b])}"line"!==i.chart.type&&"area"!==i.chart.type||e.minY===Number.MIN_VALUE&&r!==Number.MAX_SAFE_INTEGER&&(e.minY=Math.round(r-2*r/100),e.maxY=Math.round(e.maxY+2*e.maxY/100)),i.yaxis.map(function(t,i){void 0!==t.max&&"number"==typeof t.max&&(e.maxYArr[i]=t.max,e.maxY=s[0].max),void 0!==s[0].min&&"number"==typeof s[0].min&&(e.minYArr[i]=t.min,e.minY=s[0].min)});var v=function(i,a,r){var n=s[i];n=void 0!==n?n.tickAmount:8,r===-Number.MAX_VALUE?e.yAxisScale.push(t.justRange(0,2,2)):(e.allSeriesCollapsed=!1,e.yAxisScale.push(t.niceScale(a,r,n)))};if(e.isMultipleYAxis)for(var m=0;m<e.series.length;m++)v(m,e.minYArr[m],e.maxYArr[m]),e.minYArr[m]=e.yAxisScale[m].niceMin,e.maxYArr[m]=e.yAxisScale[m].niceMax;else v(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax}},{key:"handleMinXMaxX",value:function(){var e=this.w.globals,i=this.w.config;if(e.dataXY)for(var a=0;a<e.series.length;a++)if(e.labels[a])for(var s=0;s<e.labels[a].length;s++)null!==e.labels[a][s]&&o.default.isNumber(e.labels[a][s])&&(e.maxX=Math.max(e.maxX,e.labels[a][s]),e.initialmaxX=Math.max(e.maxX,e.labels[a][s]),e.minX=Math.min(e.minX,e.labels[a][s]),e.initialminX=Math.min(e.minX,e.labels[a][s]));if(e.noLabelsProvided&&(e.maxX=e.labels[e.labels.length-1],e.initialmaxX=e.labels[e.labels.length-1],e.minX=1,e.initialminX=1),this.checkComboCharts(),(e.comboCharts||"bar"===i.chart.type)&&("datetime"===i.xaxis.type||e.dataXY)){var r=e.minX-e.svgWidth/e.dataPoints*(Math.abs(e.maxX-e.minX)/e.svgWidth);e.minX=r,e.initialminX=r;var n=e.maxX+e.svgWidth/e.dataPoints*(Math.abs(e.maxX-e.minX)/e.svgWidth);e.maxX=n,e.initialmaxX=n}var l=new t(this.ctx);if(e.dataXY||e.noLabelsProvided){var h=8;void 0===i.xaxis.tickAmount?(h=Math.round(e.svgWidth/150))>e.dataPoints&&0!==e.dataPoints&&(h=e.dataPoints-1):(h=i.xaxis.tickAmount,e.noLabelsProvided||(h=i.xaxis.tickAmount-3)),void 0!==i.xaxis.max&&"number"==typeof i.xaxis.max&&(e.maxX=i.xaxis.max),void 0!==i.xaxis.min&&"number"==typeof i.xaxis.min&&(e.minX=i.xaxis.min),void 0!==i.xaxis.range&&(e.minX=e.maxX-i.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE?(e.xAxisScale=l.justRange(e.minX,e.maxX,h),e.labels=e.xAxisScale.result.slice()):(e.xAxisScale=l.justRange(1,h,h),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=l.justRange(1,e.labels.length,h-1),e.seriesX=e.labels.slice()),e.labels=e.xAxisScale.result.slice())}}},{key:"handleMinZMaxZ",value:function(){var t=this.w.globals;if(t.dataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&o.default.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}}]),t}();e.default=l},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(21),h=a(l),c=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return r(t,[{key:"init",value:function(t){this.xyRatios=t,this.elScroller=null,this.scrollerButtonLeft=null,this.scrollerButtonRight=null,this.scrollerArea=null,this.gridRect=null,this.scrollerConfig=this.w.config.chart.scroller,this.scrollBtnSize=this.scrollerConfig.scrollButtons.size,this.w.globals.allSeriesCollapsed||this.renderScroller()}},{key:"renderScroller",value:function(){var t=this.w,e=new o.default(this.ctx);this.elScroller=e.group({class:"apexcharts-scroller"});var i=new h.default(this.ctx),a=i.getLegendsRect().height-("bottom"===t.config.legend.position?t.config.legend.containerMargin.top:0)-this.scrollBtnSize/3,s=i.getMainTitleCoords().height,r=i.getSubTitleCoords().height,n="top"===t.config.legend.position||"bottom"===t.config.legend.position?a+15:15;n=n+s+r,this.elScroller.attr({transform:"translate("+(this.scrollerConfig.offsetX+this.scrollerConfig.padding.left)+", "+(t.globals.svgHeight-this.scrollerConfig.height-this.scrollBtnSize+this.scrollerConfig.offsetY-n)+")"}),this.renderScrollerTrack(),this.renderScrollerThumb(),t.globals.dom.elGraphical.add(this.elScroller)}},{key:"renderScrollerTrack",value:function(){var t=this.w,e=new o.default(this.ctx),i=e.drawRect(0,0,0,0,4),a=-this.scrollerConfig.track.height/2;this.scrollerWidth=t.globals.gridWidth-this.scrollerConfig.padding.left-this.scrollerConfig.padding.right;var s=this.scrollerConfig.track.height;i.attr({id:"apexcharts-scroller-track",class:"apexcharts-scroller-track",x:0,y:a,width:this.scrollerWidth,height:s,fill:this.scrollerConfig.track.background,"fill-opacity":1}),this.elScroller.add(i)}},{key:"renderScrollerThumb",value:function(){var t=this.w,e=new o.default(this.ctx),i=Math.abs(t.globals.initialminX-t.globals.minX)/this.xyRatios.initialXRatio,a=this.scrollerWidth-Math.abs(t.globals.initialmaxX-t.globals.maxX)/this.xyRatios.initialXRatio-i;i>this.scrollerWidth?i=this.scrollerWidth:i<0&&(i=0),a<=1&&(a=1),this.scrollerThumb=e.drawRect(0,-this.scrollerConfig.thumb.height/2,a,this.scrollerConfig.thumb.height,4),this.scrollerThumb.attr({x:i,width:a,id:"apexcharts-scroller-thumb",class:"apexcharts-scroller-thumb",fill:this.scrollerConfig.thumb.background,fillOpacity:1}),this.elScroller.add(this.scrollerThumb);var s={minY:-this.scrollerConfig.thumb.height/2,maxY:this.scrollerConfig.thumb.height/2};this.scrollerThumb.draggable(s).on("dragmove",this.scrollerDragging.bind(this)).selectize().resize({constraint:s}).on("resizing",this.scrollerDragging.bind(this)),this.styleScrollerButtons()}},{key:"styleScrollerButtons",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-scroller .svg_select_points_l"),i=t.globals.dom.baseEl.querySelector(".apexcharts-scroller .svg_select_points_r"),a=[e,i],s=0;s<a.length;s++){var r=a[s];o.default.setAttrs(r,{class:"apexcharts-scrollbutton",r:this.scrollBtnSize,fill:this.scrollerConfig.scrollButtons.fillColor,stroke:this.scrollerConfig.scrollButtons.borderColor,"stroke-width":this.scrollerConfig.scrollButtons.borderWidth})}}},{key:"scrollerDragging",value:function(){var t=this.w,e=this.xyRatios,i=this.scrollerThumb.bbox(),a=t.globals.initialminX+i.x*e.initialXRatio,s=t.globals.initialminX+(i.x+i.width+this.scrollerConfig.padding.left+this.scrollerConfig.padding.right)*e.initialXRatio;i.x<0||i.x2>this.scrollerWidth||this.ctx.updateOptions({xaxis:{min:a,max:s}},!1,!1)}}]),t}();e.default=c},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}),e.default=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w}return s(t,[{key:"drawSubtitle",value:function(){var t=this.w,e=t.globals.svgWidth/2,i=t.config.subtitle.offsetY,a="middle";if("left"===t.config.subtitle.align?(e=10,a="start"):"right"===t.config.subtitle.align&&(e=t.globals.svgWidth-10,a="end"),e+=t.config.subtitle.offsetX,i=i+parseInt(t.config.subtitle.style.fontSize)+parseInt(t.config.title.style.fontSize)+10,void 0!==t.config.subtitle.text){var s=new n.default(this.ctx),r=s.drawText({x:e,y:i,text:t.config.subtitle.text,textAnchor:a,fontSize:t.config.subtitle.style.fontSize,foreColor:t.config.subtitle.style.color,opacity:1});r.attr("class","apexcharts-subtitle-text"),t.globals.dom.Paper.add(r)}}}]),t}();e.default=o},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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w,this.colors=[]}return s(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this.w,e=new n.default;void 0===t.config.colors&&(t.config.colors=this.predefined());var i=t.config.colors.slice();if(t.config.theme.monochrome.enabled){var a=[],s=t.globals.series.length;t.config.plotOptions.bar.distributed&&"bar"===t.config.chart.type&&(s=t.globals.series[0].length*t.globals.series.length);for(var r=t.config.theme.monochrome.color,o=1/(s/t.config.theme.monochrome.shadeIntensity),l=t.config.theme.monochrome.shadeTo,h=0,c=0;c<s;c++){var u=r;"dark"===l?(u=e.shadeColor(-1*h,r),h+=o):(u=e.shadeColor(h,r),h+=o),a.push(u)}t.config.colors=a.slice()}this.pushExtraColors(t.config.colors),void 0===t.config.stroke.colors?t.config.stroke.colors=i:this.pushExtraColors(t.config.stroke.colors),void 0===t.config.fill.colors?t.config.fill.colors=t.config.colors:this.pushExtraColors(t.config.fill.colors),void 0===t.config.dataLabels.style.colors?t.config.dataLabels.style.colors=i:this.pushExtraColors(t.config.dataLabels.style.colors),void 0===t.config.markers.colors?t.config.markers.colors=i:this.pushExtraColors(t.config.markers.colors)}},{key:"pushExtraColors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w,a=i.globals.series.length;if(e=null===e&&("bar"===i.config.chart.type&&i.config.plotOptions.bar.distributed),e&&(a=i.globals.series[0].length*i.globals.series.length),t.length<a)for(var s=a-t.length,r=0;r<s;r++)t.push(t[r])}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#546E7A","#4ecdc4","#c7f464","#81D4FA","#fd6a6a"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#C5D86D"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5fba7d","#f48024","#8884d8","#c34459","#f9ee45"];break;case"palette10":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette11":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}();t.exports=o},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}),e.default=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(0),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.ctx=e,this.w=e.w}return s(t,[{key:"drawTitle",value:function(){var t=this.w,e=t.globals.svgWidth/2,i=t.config.title.offsetY,a="middle";if("left"===t.config.title.align?(e=10,a="start"):"right"===t.config.title.align&&(e=t.globals.svgWidth-10,a="end"),e+=t.config.title.offsetX,i=i+parseInt(t.config.title.style.fontSize)+2,void 0!==t.config.title.text){var s=new n.default(this.ctx),r=s.drawText({x:e,y:i,text:t.config.title.text,textAnchor:a,fontSize:t.config.title.style.fontSize,foreColor:t.config.title.style.foreColor,opacity:1});r.node.setAttribute("class","apexcharts-title-text"),t.globals.dom.Paper.add(r)}}}]),t}();e.default=o},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=function(){function t(e){a(this,t),this.w=e.w,this.ttCtx=e}return s(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:1;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=t.globals.dom.elWrap;if(e.blxaxisTooltip){null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",a),s.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltip.appendChild(e.xaxisTooltipText))}}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=0;i<t.config.yaxis.length;i++){var a=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=a?t.globals.gridWidth+1:1;var s=a?"apexcharts-yaxistooltip apexcharts-yaxistooltip-"+i+" apexcharts-yaxistooltip-right":"apexcharts-yaxistooltip apexcharts-yaxistooltip-"+i+" apexcharts-yaxistooltip-left",r=t.globals.dom.elWrap;if(e.blyaxisTooltip){null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-"+i)&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",s),r.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText.push(document.createElement("div")),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))}}}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx;if(e.xcrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs"),e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width),t.globals.comboCharts){var i=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==i&&"barWidth"===t.config.xaxis.crosshairs.width){var a=parseFloat(i.getAttribute("barWidth"));e.xcrosshairsWidth=a}else if("tickWidth"===t.config.xaxis.crosshairs.width){var s=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/s}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}else if("barWidth"===t.config.xaxis.crosshairs.width){var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n){var o=parseFloat(n.getAttribute("barWidth"));e.xcrosshairsWidth=o}else e.xcrosshairsWidth=1}"bar"===t.config.chart.type&&t.config.plotOptions.bar.horizontal&&(e.xcrosshairsWidth=0),null!==e.xcrosshairs&&e.xcrosshairs.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,a){var s=this.ttCtx,r=this.w,n=r.globals.yLabelFormatters[t];if(s.blyaxisTooltip){var o=(e-i.top)*a.yRatio[t],l=r.globals.maxYArr[t]-r.globals.minYArr[t],h=r.globals.minYArr[t]+(l-o);s.tooltipPosition.moveYCrosshairs(e-i.top),s.yaxisTooltipText[t].innerHTML=n(h),s.tooltipPosition.moveYAxisTooltip(t)}}}]),t}();e.default=r},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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(e){a(this,t),this.getAttr=function(t,e){return parseFloat(t.target.getAttribute(e))},this.w=e.w,this.ttCtx=e}return s(t,[{key:"handleHeatTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=this.ttCtx;if(e.target.classList.contains("apexcharts-heatmap-rect")){var n=this.getAttr(e,"i"),o=this.getAttr(e,"j"),l=this.getAttr(e,"cx"),h=this.getAttr(e,"cy"),c=this.getAttr(e,"width"),u=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:n,j:o,shared:!1}),a=l+r.tooltipRect.ttWidth/2-c,s=h+r.tooltipRect.ttHeight/2-u/2,r.w.config.tooltip.followCursor){var d=r.w.globals.dom.baseEl.querySelector(".apexcharts-grid"),f=d.getBoundingClientRect();s=r.e.clientY-f.top}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=this.w,o=this.ttCtx,l=void 0,h=void 0;if(e.target.classList.contains("apexcharts-marker")){var c=parseInt(i.paths.getAttribute("cx")),u=parseInt(i.paths.getAttribute("cy")),d=parseFloat(i.paths.getAttribute("val"));h=parseInt(i.paths.getAttribute("rel")),l=parseInt(i.paths.parentNode.getAttribute("rel"))-1,o.intersect&&(l=parseInt(n.default.findAncestor(i.paths,"apexcharts-series").getAttribute("data:realIndex"))),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:h,shared:!o.intersect&&r.config.tooltip.shared}),o.marker.enlargeCurrentPoint(h,i.paths),a=c,s=u-1.4*o.tooltipRect.ttHeight,o.w.config.tooltip.followCursor&&(s=o.e.clientY-o.seriesBound.top),d<0&&(s=u)}return{x:a,y:s}}},{key:"handleBarTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=this.w,n=this.ttCtx,o=0,l=0;if(n.isBarHorizontal||!r.config.tooltip.shared){var h=this.getBarTooltipXY({e:e,opt:i,x:a,y:s});a=h.x,s=h.y,l=h.j,o=a}else r.globals.comboCharts||r.config.tooltip.shared||(o/=2,n.tooltipPosition.moveXCrosshairs(o,l));isNaN(s)&&(s=r.globals.svgHeight-n.tooltipRect.ttHeight),n.w.config.tooltip.followCursor&&(s=n.e.clientY-n.seriesBound.top),null===n.tooltip&&(n.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.globals.comboCharts||r.config.tooltip.shared||n.tooltipPosition.moveXCrosshairs(o),r.config.tooltip.shared&&!n.isBarHorizontal||(n.tooltip.style.left=a+r.globals.translateX+"px",n.tooltip.style.top=s+r.globals.translateY-n.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=this.w,n=null,o=this.ttCtx;if(e.target.classList.contains("apexcharts-bar-area")){var l=e.target,h=l.getBoundingClientRect(),c=i.elGrid.getBoundingClientRect(),u=h.height,d=h.width,f=parseInt(l.getAttribute("cx")),p=parseInt(l.getAttribute("cy")),g="touchmove"===e.type?e.touches[0].clientX:e.clientX;n=parseInt(l.getAttribute("j"));var x=parseInt(l.parentNode.getAttribute("rel"))-1;r.globals.comboCharts&&(x=parseInt(l.parentNode.getAttribute("data:realIndex"))),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:x,j:n,shared:!o.showOnIntersect&&r.config.tooltip.shared}),r.config.tooltip.followCursor?r.config.plotOptions.bar.horizontal?(a=g-c.left+15,s=p-o.dataPointsDividedHeight+u/2-o.tooltipRect.ttHeight/2):(a=r.globals.dataXY?f-d/2:f-o.dataPointsDividedWidth+d/2,s=e.clientY-c.top-o.tooltipRect.ttHeight/2-15):r.config.plotOptions.bar.horizontal?(a=f,a<o.xyRatios.baseLineInvertedY&&(a=f-o.tooltipRect.ttWidth),s=p-o.dataPointsDividedHeight+u/2-o.tooltipRect.ttHeight/2):(a=r.globals.dataXY?f-d/2:f-o.dataPointsDividedWidth+d/2,s=p)}return{x:a,y:s,j:n}}}]),t}();e.default=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(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(22),o=a(n),l=i(58),h=a(l),c=function(){function t(e){s(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new h.default(e)}return r(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,a=t.ttItems,s=t.i,r=void 0===s?0:s,n=t.j,l=void 0===n?null:n,h=this.w,c=this.ttCtx,u=h.globals.yLabelFormatters[r],d=null,f=h.globals.ttZFormatter;void 0!==h.globals.ttValFormatter&&(u=h.globals.ttValFormatter),u||(u=function(t){return t});var p="",g=void 0,x=h.config.colors[r];if(null!==l&&h.config.plotOptions.bar.distributed&&(x=h.config.colors[l]),i)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var b=h.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");b&&(b.classList.add("active"),b.style.display=h.config.tooltip.items.display)}var v=this.tooltipUtil.filteredSeriesX();null===l?g=h.globals.series[r]:p=h.globals.dataXY?v[r][l]:void 0!==h.globals.labels[l]?h.globals.labels[l]:"";var m=p;if(h.globals.dataXY&&"datetime"===h.config.xaxis.type){p=new o.default(this.ctx).xLabelFormat(h.globals.ttKeyFormatter,m)}else p=void 0!==h.config.tooltip.x.formatter?h.globals.ttKeyFormatter(m,{series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h}):h.globals.xLabelFormatter(m,{series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h});c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=h.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=p),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=p),h.globals.seriesZ.length>0&&h.globals.seriesZ[0].length>0&&(d=f(h.globals.seriesZ[r][l],h));for(var y=0,w=h.globals.series.length-1;y<h.globals.series.length;y++,w--){var k=h.config.tooltip.y.title.formatter(String(h.globals.seriesNames[r]),{series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h});if(i){var S=h.config.tooltip.inverseOrder?w:y;k=h.config.tooltip.y.title.formatter(String(h.globals.seriesNames[S]),{series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h}),x=h.config.colors[S],g=u(h.globals.series[S][l],{series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h}),(c.bars.length&&h.config.chart.stacked&&0===h.globals.series[S][l]||void 0===h.globals.series[S][l])&&(g=void 0)}if(null===l||i||(g=u(h.globals.series[r][l],h)),void 0!==h.config.tooltip.custom)return c.tooltip.innerHTML="",void(c.tooltip.innerHTML=h.config.tooltip.custom({series:h.globals.series,seriesIndex:r,dataPointIndex:l,w:h}));var A=null;A=a[y].children,h.config.tooltip.fillSeriesColor&&(a[y].style.backgroundColor=x,A[0].style.display="none");a[y].querySelector(".apexcharts-tooltip-text-label").innerHTML=k?k+": ":"";if(a[y].querySelector(".apexcharts-tooltip-text-value").innerHTML=g,A[0].classList.contains("apexcharts-tooltip-marker")&&(A[0].style.backgroundColor=x),h.config.tooltip.marker.show||(A[0].style.display="none"),null!==d){a[y].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title;a[y].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=d}i&&(A[0].parentNode.style.display=void 0===g?"none":h.config.tooltip.items.display)}}}]),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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(0),o=a(n),l=i(57),h=a(l),c=i(34),u=a(c),d=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new h.default(e)}return r(t,[{key:"drawDynamicPoints",value:function(){for(var t=this.ttCtx,e=this.w,i=new o.default(this.ctx),a=new u.default(this.ctx),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series"),r=0;r<s.length;r++){var n=parseInt(s[r].getAttribute("data:realIndex")),l=e.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='"+n+"'] .apexcharts-series-markers-wrap");if(null!==l){var h=void 0,c="apexcharts-marker w"+(Math.random()+1).toString(36).substring(4);"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(c+=" no-pointer-events");var d=a.getMarkerConfig(c,n);h=i.drawMarker(0,0,d);var f=document.createElementNS(e.globals.svgNS,"g");f.classList.add("apexcharts-series-markers"),f.appendChild(h.node),l.appendChild(f),t.allPoints=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker")}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(t,e);var a=e.getAttribute("cx"),s=e.getAttribute("cy");this.tooltipPosition.moveXCrosshairs(a),this.fixedTooltip||this.tooltipPosition.moveTooltip(a,s,i.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-marker"),n=e.config.markers.hover.size,o=0;o<r.length;o++){var l=r[o].getAttribute("rel");if(s===parseInt(l)){i.newPointSize(s,r[o]);var h=r[o].getAttribute("cx"),c=r[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),a.fixedTooltip||i.tooltipPosition.moveTooltip(h,c,n)}else i.oldPointSize(r[o])}}},{key:"newPointSize",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,s=null;s=0===t?e.parentNode.firstChild:e.parentNode.lastChild,s.setAttribute("r",a)}},{key:"oldPointSize",value:function(t){var e=this.w,i=e.config.markers.size;t.setAttribute("r",i)}},{key:"resetPointsSize",value:function(){for(var t=this.w,e=t.config.markers.size,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-marker"),a=0;a<i.length;a++)i[a].setAttribute("r",e)}}]),t}();t.exports=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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(115),o=a(n),l=i(57),h=a(l),c=i(116),u=a(c),d=i(114),f=a(d),p=i(113),g=a(p),x=i(0),b=a(x),v=i(15),m=a(v),y=i(35),w=a(y),k=i(58),S=a(k),A=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tooltipUtil=new S.default(this),this.tooltipLabels=new o.default(this),this.tooltipPosition=new h.default(this),this.marker=new u.default(this),this.intersect=new f.default(this),this.axesTooltip=new g.default(this),this.showOnIntersect=!1,this.showTooltipTitle=i.config.tooltip.x.show,this.fixedTooltip=i.config.tooltip.fixed.enabled,this.blxaxisTooltip=i.config.xaxis.tooltip.enabled&&i.globals.axisCharts,this.blyaxisTooltip=i.config.yaxis[0].tooltip.enabled&&i.globals.axisCharts,this.xaxisTooltip=null,this.yaxisTTEls=null,this.bars=i.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series"),this.hasBars=this.bars.length>0,this.isBarHorizontal=this.hasBars&&i.config.plotOptions.bar.horizontal,this.isBarShared=this.hasBars&&!i.config.plotOptions.bar.horizontal&&i.config.tooltip.shared}return r(t,[{key:"drawTooltip",value:function(t){var e=this.w;if(this.xyRatios=t,this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1),this.tooltip=document.createElement("div"),this.tooltip.classList.add("apexcharts-tooltip"),this.tooltip.classList.add(e.config.tooltip.theme),e.globals.dom.elWrap.appendChild(this.tooltip),e.globals.axisCharts){this.plotSeries=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series"),null!==this.plotSeries&&(this.plotSeriesWidth=this.plotSeries.getBBox().width),this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair(),this.allPoints=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker");var i=new w.default(this.ctx);this.xAxisTicksPositions=i.getXAxisTicksPositions()}if((e.globals.comboCharts&&!e.config.tooltip.shared||e.config.tooltip.intersect&&!e.config.tooltip.shared||"bar"===e.config.chart.type&&!e.config.tooltip.shared)&&(this.showOnIntersect=!0),0===e.config.markers.size&&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.tooltip.appendChild(this.tooltipTitle));var a=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&e.config.tooltip.shared&&(a=this.showOnIntersect?1:e.globals.series.length);var s=this.createTTElements(a);this.addSVGEvents(s)}}},{key:"createTTElements",value:function(t){for(var e=this.w,i=[],a=0;a<t;a++){var s=document.createElement("div");s.classList.add("apexcharts-tooltip-series-group");var r=document.createElement("span");r.classList.add("apexcharts-tooltip-marker"),r.style.backgroundColor=e.config.colors[a],s.appendChild(r);var n=document.createElement("div");n.classList.add("apexcharts-tooltip-text");var o=document.createElement("div");o.classList.add("apexcharts-tooltip-y-group");var l=document.createElement("span");l.classList.add("apexcharts-tooltip-text-label"),o.appendChild(l);var h=document.createElement("span");h.classList.add("apexcharts-tooltip-text-value"),o.appendChild(h);var c=document.createElement("div");c.classList.add("apexcharts-tooltip-z-group");var u=document.createElement("span");u.classList.add("apexcharts-tooltip-text-z-label"),c.appendChild(u);var d=document.createElement("span");d.classList.add("apexcharts-tooltip-text-z-value"),c.appendChild(d),n.appendChild(o),n.appendChild(c),s.appendChild(n),this.tooltip.appendChild(s),i.push(s)}return i}},{key:"addSVGEvents",value:function(t){var e=this.w,i=e.config.chart.type,a=e.globals.dom.Paper.node,s=e.globals.dom.baseEl.querySelector(".apexcharts-grid");s&&(this.seriesBound=s.getBoundingClientRect());var r=[],n=[],o={hoverArea:a,elGrid:s,tooltip:this.tooltip,tooltipY:r,tooltipX:n,ttItems:t},l=void 0;if(e.globals.axisCharts){"area"===i||"line"===i||"scatter"===i||"bubble"===i?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):"bar"===i?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area"):"heatmap"===i&&(l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap"));for(var h=0;h<l.length;h++)r.push(l[h].getAttribute("cy")),n.push(l[h].getAttribute("cx"))}if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||"bar"===i&&!this.isBarHorizontal&&e.config.tooltip.shared)this.addPathsEventListeners([a],o);else if("bar"!==i||e.globals.comboCharts){if("bubble"===i||"scatter"===i||this.showOnIntersect&&("area"===i||"line"===i))this.addPointsEventsListeners(o);else if(!e.globals.axisCharts||"heatmap"===i){var c=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(c,o)}}else this.addBarsEventListeners(o);if(this.showOnIntersect){var u=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker");u.length>0&&this.addPathsEventListeners(u,o);var d=e.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-marker");d.length>0&&this.addPathsEventListeners(d,o),this.hasBars&&!e.config.tooltip.shared&&this.addBarsEventListeners(o)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip"),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=t.config.tooltip.fixed.offsetX,n=t.config.tooltip.fixed.offsetY;return t.config.tooltip.fixed.position.toLowerCase().includes("right")&&(r=r+t.globals.svgWidth-10),t.config.tooltip.fixed.position.toLowerCase().includes("bottom")&&(n=n+t.globals.svgWidth-s-10),this.tooltip.style.left=r+"px",this.tooltip.style.top=n+"px",{x:r,y:n,ttWidth:a,ttHeight:s}}},{key:"addPointsEventsListeners",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker");this.addPathsEventListeners(i,t)}},{key:"addBarsEventListeners",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-area");this.addPathsEventListeners(i,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=0;a<t.length;a++)!function(a){var s={paths:t[a],tooltip:e.tooltip,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","touchmove","mouseout","touchend"].map(function(e){t[a].addEventListener(e,i.seriesHover.bind(i,s),!1)})}(a)}},{key:"seriesHover",value:function(t,e){var i=this.w;if(this.tooltipRect={x:0,y:0,ttWidth:this.tooltip.getBoundingClientRect().width,ttHeight:this.tooltip.getBoundingClientRect().height},this.e=e,this.hasBars&&!i.globals.comboCharts&&!this.isBarShared&&i.config.tooltip.onDatasetHover.highlightDataSeries){new m.default(this.ctx).toggleSeriesOnHover(e,e.target.parentNode)}this.fixedTooltip&&this.drawFixedTooltipRect(),i.globals.axisCharts?this.axisChartsTooltips({e:e,opt:t,tooltipRect:this.tooltipRect}):this.nonAxisChartsTooltips({e:e,opt:t,tooltipRect:this.tooltipRect})}},{key:"axisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,s=this.w,r=void 0,n=void 0,o=void 0,l=this,h=null,c="touchmove"===e.type?e.touches[0].clientX:e.clientX,u="touchmove"===e.type?e.touches[0].clientY:e.clientY;this.clientY=u,this.clientX=c;var d=s.globals.xyCharts||"bar"===s.config.chart.type&&!this.isBarHorizontal&&s.config.tooltip.shared||s.globals.comboCharts&&this.hasBars;if("bar"===s.config.chart.type&&this.isBarHorizontal&&(d=!1),"mousemove"===e.type||"touchmove"===e.type){if(null!==l.xcrosshairs&&l.xcrosshairs.classList.add("active"),null!==l.ycrosshairs&&l.blyaxisTooltip&&l.ycrosshairs.classList.add("active"),d&&!l.showOnIntersect){h=l.tooltipUtil.getNearestValues({context:l,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:c,clientY:u,plotSeriesWidth:l.plotSeriesWidth,hasBars:l.hasBars}),r=h.j;var f=h.capturedSeries;if(h.hoverX<0||h.hoverX>s.globals.gridWidth||h.hoverY<0||h.hoverY>s.globals.gridHeight)return void l.handleMouseOut(i);if(null!==f){if(null===s.globals.series[f][r])return void i.tooltip.classList.remove("active");void 0!==s.globals.series[f][r]?s.config.tooltip.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isinitialSeriesSameLen()?this.create(l,f,r,i.ttItems):this.create(l,f,r,i.ttItems,!1):this.tooltipUtil.isXoverlap(r)&&l.create(l,0,r,i.ttItems)}else this.tooltipUtil.isXoverlap(r)&&l.create(l,0,r,i.ttItems);n=parseInt(i.tooltipX[r])-a.ttWidth/2,s.globals.dataXY&&null!==f&&(n=(s.globals.seriesX[f][r]-s.globals.minX)/l.xyRatios.xRatio),o=s.config.tooltip.followCursor?u-this.seriesBound.top-a.ttHeight/2:parseInt(i.tooltipY[r])-a.ttHeight}else if("heatmap"===s.config.chart.type){var p=this.intersect.handleHeatTooltip({e:e,opt:i,x:n,y:o});n=p.x,o=p.y,l.tooltip.style.left=n+"px",l.tooltip.style.top=o+"px"}else{this.hasBars&&this.intersect.handleBarTooltip({e:e,opt:i,x:n,y:o});var g=s.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers").length>0;if(g){var x=this.intersect.handleMarkerTooltip({e:e,opt:i,x:n,y:o});n=x.x,o=x.y}}if(this.blyaxisTooltip)for(var b=0;b<s.config.yaxis.length;b++)l.axesTooltip.drawYaxisTooltipText(b,u,l.seriesBound,l.xyRatios);i.tooltip.classList.add("active")}else"mouseout"!==e.type&&"touchend"!==e.type||this.handleMouseOut(i)}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,s=this.w,r=i.paths.getAttribute("rel"),n=0,o=0,l=null,h="touchmove"===e.type?e.touches[0].clientX:e.clientX;"radialBar"===s.config.chart.type?l=s.globals.dom.baseEl.querySelector(".apexcharts-radialbar"):(l=s.globals.dom.baseEl.querySelector(".apexcharts-pie"),n=parseInt(l.getAttribute("data:innerTranslateX")),o=parseInt(l.getAttribute("data:innerTranslateY")));var c=l.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){i.tooltip.classList.add("active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r)-1,shared:!1});var u=h-c.left-a.ttWidth/2.2+n,d=e.clientY-c.top-a.ttHeight/2-15+o;u<0?u=0:u+a.ttWidth>s.globals.gridWidth&&(u=h-c.left-a.ttWidth+n),d<0&&(d=a.ttHeight+20),null===this.tooltip&&(this.tooltip=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),this.tooltip.style.left=u+s.globals.translateX+"px",this.tooltip.style.top=d+"px"}else"mouseout"!==e.type&&"touchend"!==e.type||i.tooltip.classList.remove("active")}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new b.default(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)e.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(t){var e=this.w;if(t.tooltip.classList.remove("active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==this.xcrosshairs&&this.xcrosshairs.classList.remove("active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("active"),this.blyaxisTooltip){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var i=0;i<this.yaxisTTEls.length;i++)this.yaxisTTEls[i].classList.remove("active")}}},{key:"create",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=this.w,n=t,o=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers").length>0;if(null===s&&(s=r.config.tooltip.shared),s){if(n.tooltipLabels.drawSeriesTexts({ttItems:a,i:e,j:i,shared:!this.showOnIntersect&&r.config.tooltip.shared}),o&&(r.config.markers.size>0?n.marker.enlargePoints(i):n.tooltipPosition.moveDynamicPointsOnHover(i)),this.hasBars&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(this.bars),this.barSeriesHeight>0)){var l=new b.default(this.ctx),h=r.globals.dom.Paper.select(".apexcharts-bar-area[j='"+i+"']");this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i);for(var c=0;c<h.length;c++)l.pathMouseEnter(h[c])}}else n.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:a,i:e,j:i}),n.tooltipPosition.moveMarkers(e,i)}}]),t}();t.exports=A},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")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),l=i(0),h=a(l),c=i(1),u=a(c),d=i(56),f=a(d),p=function(t){function e(t){s(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.ctx=t,i.w=t.w,i.dragged=!1,i.clicked=!1,i.clientX=0,i.clientY=0,i.startX=0,i.endX=0,i.dragX=0,i.startY=0,i.endY=0,i.dragY=0,i.zoomResetIcon=null,i}return n(e,t),o(e,[{key:"init",value:function(t){var e=t.xyRatios,i=this.w,a=this;this.xyRatios=e,this.gridRect=null;var s=new h.default(this.ctx);this.zoomRect=s.drawRect(0,0,0,0),this.selectionRect=s.drawRect(0,0,0,0),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),i.globals.dom.elGraphical.add(this.zoomRect),i.globals.dom.elGraphical.add(this.selectionRect),"x"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:i.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection();var r=i.globals.dom.baseEl.querySelector(i.globals.chartClass);r.classList.add("zoomable"),null===a.gridRect&&(a.gridRect=i.globals.dom.baseEl.querySelector(".apexcharts-grid"));var n=a.gridRect.getBoundingClientRect(),o=n.height,l=(i.globals.svgHeight-o)*e.yRatio[0],c={hoverArea:r,hoverDimensions:n,diffInHeight:l},u=["mousedown","mousemove","touchstart","touchmove","mouseup","touchend"],d=!0,f=!1,p=void 0;try{for(var g,x=u[Symbol.iterator]();!(d=(g=x.next()).done);d=!0){var b=g.value;r.addEventListener(b,a.svgMouseEvents.bind(a,c,e),!1)}}catch(t){f=!0,p=t}finally{try{!d&&x.return&&x.return()}finally{if(f)throw p}}}},{key:"svgMouseEvents",value:function(t,e,i){var a=this.w,s=this,r=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type;if(!i.target.classList.contains("apexcharts-selection-rect")){if(s.clientX="touchmove"===i.type||"touchstart"===i.type?i.touches[0].clientX:"touchend"===i.type?i.changedTouches[0].clientX:i.clientX,s.clientY="touchmove"===i.type||"touchstart"===i.type?i.touches[0].clientY:"touchend"===i.type?i.changedTouches[0].clientY:i.clientY,"mousedown"===i.type&&1===i.which)!function(){var t=s.gridRect.getBoundingClientRect();s.startX=s.clientX-t.left,s.startY=s.clientY-t.top,s.dragged=!1,s.clicked=!0}();else if("mousemove"===i.type&&1===i.which||"touchmove"===i.type)s.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,s.panDragging({context:s,zoomtype:r,xyRatios:e})):(s.clicked&&a.globals.zoomEnabled||s.clicked&&a.globals.selectionEnabled)&&(s.selection=s.selectionDrawing({context:s,zoomtype:r}));else if("mouseup"===i.type&&1===i.which||"touchend"===i.type){var n=s.gridRect.getBoundingClientRect();s.clicked&&(s.endX=s.clientX-n.left,s.endY=s.clientY-n.top,s.dragX=Math.abs(s.endX-s.startX),s.dragY=Math.abs(s.endY-s.startY),(a.globals.zoomEnabled||a.globals.selectionEnabled)&&s.selectionDrawn({context:s,zoomtype:r})),a.globals.zoomEnabled&&s.hideSelectionRect(),s.dragged=!1,s.clicked=!1,s.w.globals.scrollerThumbDown=!1}this.makeSelectionRectDraggable()}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w,e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize().resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,s={x:i,y:0,width:a,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,r=t.translateX,n=t.translateY,o=t.selectionEnabled,l=this.w;if(this.dragged||null!==l.globals.selection){var c={transform:"translate("+r+", "+n+")"};l.globals.zoomEnabled&&(this.zoomRect.attr({x:e,y:i,width:a,height:s,fill:l.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":l.config.chart.zoom.zoomedArea.fill.opacity,stroke:l.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":l.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":l.config.chart.zoom.zoomedArea.stroke.opacity}),h.default.setAttrs(this.zoomRect.node,c)),(l.globals.selectionEnabled||o)&&(this.selectionRect.attr({x:e,y:i,width:a,height:s,fill:l.config.chart.selection.fill.color,"fill-opacity":l.config.chart.selection.fill.opacity,stroke:l.config.chart.selection.stroke.color,"stroke-width":l.config.chart.selection.stroke.width,"stroke-dasharray":l.config.chart.selection.stroke.dashArray,"stroke-opacity":l.config.chart.selection.stroke.opacity}),h.default.setAttrs(this.selectionRect.node,c))}}},{key:"hideSelectionRect",value:function(){this.selectionRect.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=s.gridRect.getBoundingClientRect(),n=s.startX-1,o=s.startY,l=s.clientX-r.left-n-1,h=s.clientY-r.top-o,c=0,u=0,d={};return n>s.clientX-r.left&&(l=Math.abs(l),c=-l),o>s.clientY-r.top&&(h=Math.abs(h),u=-h),d="x"===i?{x:n,y:0,width:l,height:a.globals.gridHeight,translateX:c,translateY:0}:"y"===i?{x:0,y:o,width:a.globals.gridWidth,height:h,translateX:0,translateY:u}:{x:n,y:o,width:l,height:h,translateX:c,translateY:u},s.drawSelectionRect(d),d}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,r=0;"resizing"===t&&(r=30),"function"==typeof a.config.chart.events.selection&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t=i.gridRect.getBoundingClientRect(),e=i.selectionRect.node.getBoundingClientRect(),r=a.globals.xAxisScale.niceMin+(e.left-t.left)*s.xRatio,n=a.globals.xAxisScale.niceMin+(e.right-t.left)*s.xRatio,o=a.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*s.yRatio[0],l=a.globals.yAxisScale[0].niceMax-(e.top-t.top)*s.yRatio[0];a.config.chart.events.selection(i.ctx,{xaxis:{min:r,max:n},yaxis:{min:o,max:l}})},r))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.xyRatios;if(s.startX>s.endX){var n=s.startX;s.startX=s.endX,s.endX=n}if(s.startY>s.endY){var o=s.startY;s.startY=s.endY,s.endY=o}var l=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,h=a.globals.xAxisScale.niceMin+s.endX*r.xRatio,c=[],d=[];if(a.config.yaxis.map(function(t,e){c.push(Math.floor(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.startY)),d.push(Math.floor(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.endY))}),s.dragged&&(s.dragX>10||s.dragY>10)&&l!==h)if(a.globals.zoomEnabled){a.globals.zoomed=!0;var f=a.config.yaxis;"xy"!==i&&"y"!==i||f.map(function(t,e){f[e].min=d[e],f[e].max=c[e]}),"x"===i?s.ctx.updateOptions({xaxis:{min:l,max:h}},!1,a.globals.initialConfig.chart.animations.dynamicAnimation.enabled):"y"===i?s.ctx.updateOptions({yaxis:f},!1,a.globals.initialConfig.chart.animations.dynamicAnimation.enabled):s.ctx.updateOptions({xaxis:{min:l,max:h},yaxis:f},!1,a.globals.initialConfig.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&a.config.chart.events.zoomed(s.ctx,{xaxis:{min:l,max:h},yaxis:f})}else if(a.globals.selectionEnabled){var p=null,g=null;g={min:l,max:h},"xy"!==i&&"y"!==i||(p=u.default.clone(a.config.yaxis),p.map(function(t,e){p[e].min=d[e],p[e].max=c[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:g,yaxis:p})}}},{key:"panDragging",value:function(t){var e=t.context,i=(t.zoomtype,this.w),a=e,s=void 0;if(void 0!==i.globals.lastClientPosition.x){var r=i.globals.lastClientPosition.x-a.clientX,n=i.globals.lastClientPosition.y-a.clientY;Math.abs(r)>Math.abs(n)&&r>0?s="left":Math.abs(r)>Math.abs(n)&&r<0?s="right":Math.abs(n)>Math.abs(r)&&n>0?s="up":Math.abs(n)>Math.abs(r)&&n<0&&(s="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var o=i.globals.minX,l=i.globals.maxX;this.panScrolled(s,o,l)}},{key:"panScrolled",value:function(t,e,i){var a=this.w,s=this.xyRatios;"left"===t?(e=a.globals.minX+a.globals.gridWidth/15*s.xRatio,i=a.globals.maxX+a.globals.gridWidth/15*s.xRatio):"right"===t&&(e=a.globals.minX-a.globals.gridWidth/15*s.xRatio,i=a.globals.maxX-a.globals.gridWidth/15*s.xRatio),(e<a.globals.initialminX||i>a.globals.initialmaxX)&&(e=a.globals.minX,i=a.globals.maxX),this.ctx.updateOptions({xaxis:{min:e,max:i}},!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),e}(f.default);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;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=i(14),o=a(n),l=i(0),h=a(l),c=i(35),u=a(c),d=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.anim=new o.default(this.ctx),this.xaxisLabels=i.globals.labels.slice(),this.animX=i.config.grid.xaxis.lines.animate&&i.config.chart.animations.enabled,this.animY=i.config.grid.yaxis.lines.animate&&i.config.chart.animations.enabled,i.globals.timelineLabels.length>0&&(this.xaxisLabels=i.globals.timelineLabels.slice())}return r(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new h.default(this.ctx);null===t&&(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:"renderGrid",value:function(){for(var t=this.w,e=new h.default(this.ctx),i=t.config.grid.strokeDashArray,a=e.group({class:"apexcharts-grid"}),s=8,r=0;r<t.globals.series.length&&(void 0!==t.globals.yAxisScale[r]&&(s=t.globals.yAxisScale[r].result.length-1),!(s>2));r++);var n=s;if(!t.config.plotOptions.bar.horizontal||"bar"!==t.config.chart.type){if(n=this.xaxisLabels.length,t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){var o=t.globals.padHorizontal,l=t.globals.padHorizontal,c=t.globals.gridHeight;if(t.globals.timelineLabels.length>0)for(var d=0;d<n;d++){if(o=this.xaxisLabels[d].position,l=this.xaxisLabels[d].position,t.config.grid.xaxis.lines.show){var f=e.drawLine(o,0,l,c,t.config.grid.borderColor,i);f.node.classList.add("apexcharts-gridline"),a.add(f),this.animX&&this.animateLine(f,{x1:0,x2:0},{x1:o,x2:l})}var p=new u.default(this.ctx);p.drawXaxisTicks(o,a)}else for(var g=n,x=0;x<g;x++){var b=g;if(t.globals.dataXY&&"bar"!==t.config.chart.type&&(b-=1),o+=t.globals.gridWidth/b,l=o,x===b-1)break;if(t.config.grid.xaxis.lines.show){var v=e.drawLine(o,0,l,c,t.config.grid.borderColor,i);v.node.classList.add("apexcharts-gridline"),a.add(v),this.animX&&this.animateLine(v,{x1:0,x2:0},{x1:o,x2:l})}var m=new u.default(this.ctx);m.drawXaxisTicks(o,a)}}if(t.config.grid.yaxis.lines.show)for(var y=0,w=0,k=t.globals.gridWidth,S=0;S<s+1;S++){var A=e.drawLine(0,y,k,w,t.config.grid.borderColor,i);a.add(A),A.node.classList.add("apexcharts-gridline"),this.animY&&this.animateLine(A,{y1:y+20,y2:w+20},{y1:y,y2:w}),y+=t.globals.gridHeight/s,w=y}if(void 0!==t.config.grid.row.colors&&t.config.grid.row.colors.length>0)for(var C=0,P=t.globals.gridHeight/s,M=t.globals.gridWidth,T=0,L=0;T<s;T++,L++){L>=t.config.grid.row.colors.length&&(L=0);var z=t.config.grid.row.colors[L],X=e.drawRect(0,C,M,P,0,z,t.config.grid.row.opacity);a.add(X),X.node.classList.add("apexcharts-gridRow"),C+=t.globals.gridHeight/s}if(void 0!==t.config.grid.column.colors&&t.config.grid.column.colors.length>0)for(var E=t.globals.padHorizontal,Y=t.globals.padHorizontal+t.globals.gridWidth/n,O=t.globals.gridHeight,I=0,_=0;I<n;I++,_++){_>=t.config.grid.column.colors.length&&(_=0);var W=t.config.grid.column.colors[_],R=e.drawRect(E,0,Y,O,0,W,t.config.grid.column.opacity);R.node.classList.add("apexcharts-gridColumn"),a.add(R),E+=t.globals.gridWidth/n}}else{if(n=s,t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show)for(var H=t.globals.padHorizontal,B=t.globals.padHorizontal,D=t.globals.gridHeight,N=0;N<n+1&&(H=H+t.globals.gridWidth/n+.3,B=H,N!==n-1);N++){if(t.config.grid.xaxis.lines.show){var F=e.drawLine(H,0,B,D,t.config.grid.borderColor,i);F.node.classList.add("apexcharts-gridline"),a.add(F),this.animX&&this.animateLine(F,{x1:0,x2:0},{x1:H,x2:B})}var j=new u.default(this.ctx);j.drawXaxisTicks(H,a)}if(t.config.grid.yaxis.lines.show)for(var V=0,G=0,q=t.globals.gridWidth,U=0;U<t.globals.dataPoints+1;U++){var Z=e.drawLine(0,V,q,G,t.config.grid.borderColor,i);a.add(Z),Z.node.classList.add("apexcharts-gridline"),this.animY&&this.animateLine(Z,{y1:V+20,y2:G+20},{y1:V,y2:G}),V+=t.globals.gridHeight/t.globals.dataPoints,G=V}}return{el:a,xAxisTickWidth:t.globals.gridWidth/n}}},{key:"animateLine",value:function(t,e,i){var a=this.w,s=a.config.chart.animations;if(s&&!a.globals.resized&&!a.globals.dataChanged){var r=s.speed;this.anim.animateLine(t,e,i,r)}}}]),t}();e.default=d},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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=function(){function t(e){a(this,t),this.opts=e}return s(t,[{key:"line",value:function(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:5},tooltip:{},xaxis:{crosshairs:{width:1}}}}},{key:"bar",value:function(){return{chart:{stacked:!1,toolbar:{show:!0},scroller:{enabled:!0}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]}},stroke:{width:0},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1},xaxis:{tooltip:{enabled:!1},crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1}}},yaxis:{tooltip:{enabled:!1}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100,100]}},tooltip:{followCursor:!1}}}},{key:"stacked100",value:function(){this.opts.dataLabels=this.opts.dataLabels||{},this.opts.dataLabels.formatter=this.opts.dataLabels.formatter||void 0;var t=this.opts.dataLabels.formatter;this.opts.yaxis[0].min=0,this.opts.yaxis[0].max=100,!("bar"!==this.opts.chart.type)&&(this.opts.dataLabels.formatter=t||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":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:2,hover:{size:8}}}}},{key:"heatmap",value:function(){return{chart:{zoom:{enabled:!1},scroller:{enabled:!1},toolbar:{show:!1}},fill:{opacity:1},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return Math.ceil(t)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{gradient:{shade:"dark",shadeIntensity:.35,inverseColors:!1,stops:[0,100,100,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return Math.ceil(t)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"vertical",opacityFrom:1,opacityTo:1,stops:[0,50,53,91]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{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:[0,50,53,91]}},legend:{show:!1},tooltip:{enabled:!1,fillSeriesColor:!0}}}}]),t}();t.exports=r},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}),e.default=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r),o=function(){function t(){a(this,t)}return s(t,[{key:"globalVars",value:function(){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},initialConfig:null,series:[],seriesPercent:[],seriesTotals:[],stackedSeriesTotals:[],seriesX:[],seriesZ:[],labels:[],timelineLabels:[],seriesNames:[],noLabelsProvided:!1,collapsedSeries:[],risingSeries:[],selectedDataPoints:[],ignoreYAxisIndexes:[],padHorizontal:0,maxValsInArrayIndex:0,zoomEnabled:!1,panEnabled:!1,yaxis:null,minY:Number.MIN_VALUE,maxY:-Number.MAX_VALUE,minYArr:[],maxYArr:[],maxX:-Number.MAX_VALUE,initialmaxX:-Number.MAX_VALUE,minX:Number.MAX_VALUE,initialminX:Number.MAX_VALUE,minZ:Number.MAX_VALUE,maxZ:-Number.MAX_VALUE,lastClientPosition:{},visibleXRange:void 0,yRange:[],zRange:0,xRange:0,yValueDecimal:0,total:0,svgNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,dom:{},memory:{methodsToExec:[]},delayedElements:[],axisCharts:!0,dataXY:!1,dataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],seriesXvalues:[],seriesYvalues:[],dataPoints:0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,yAxisScale:[],xAxisScale:null,xAxisTicksPositions:[],timescaleTicks:[],rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipLabelFormatter:void 0,ttKeyFormatter:void 0,ttValFormatter:void 0,ttZFormatter:void 0,lineHeightRatio:1.618,xAxisLabelsHeight:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yLabelsCoords:[],yTitleCoords:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0}}},{key:"init",value:function(t){var e=this.globalVars();return e.initialConfig=n.default.extend({},t),e.initialSeries=JSON.parse(JSON.stringify(e.initialConfig.series)),e}}]),t}();e.default=o},function(t,e,i){"use strict";t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,a=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var s=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s))return t;var r;return r=0===s.indexOf("//")?s:0===s.indexOf("/")?i+s:a+s.replace(/^\.\//,""),"url("+JSON.stringify(r)+")"})}},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};(function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(t){i.start(t)}),this.el.on("touchstart.drag",function(t){i.start(t)})},t.prototype.transformPoint=function(t,e){t=t||window.event;var i=t.changedTouches&&t.changedTouches[0]||t;return this.p.x=i.pageX-(e||0),this.p.y=i.pageY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;this.el.fire("beforedrag",{event:t,handler:this}),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,a=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(t){e.drag(t)}),SVG.on(window,"touchmove.drag",function(t){e.drag(t)}),SVG.on(window,"mouseup.drag",function(t){e.end(t)}),SVG.on(window,"touchend.drag",function(t){e.end(t)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this}),t.preventDefault(),t.stopPropagation()}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),s=this.startPoints.box.x+i.x-this.startPoints.point.x,r=this.startPoints.box.y+i.y-this.startPoints.point.y,n=this.constraint,o=i.x-this.startPoints.point.x,l=i.y-this.startPoints.point.y,h=new CustomEvent("dragmove",{detail:{event:t,p:i,m:this.m,handler:this},cancelable:!0});if(this.el.fire(h),h.defaultPrevented)return i;if("function"==typeof n){var c=n.call(this.el,s,r,this.m);"boolean"==typeof c&&(c={x:c,y:c}),!0===c.x?this.el.x(s):!1!==c.x&&this.el.x(c.x),!0===c.y?this.el.y(r):!1!==c.y&&this.el.y(c.y)}else"object"==(void 0===n?"undefined":a(n))&&(null!=n.minX&&s<n.minX?s=n.minX:null!=n.maxX&&s>n.maxX-e.width&&(s=n.maxX-e.width),null!=n.minY&&r<n.minY?r=n.minY:null!=n.maxY&&r>n.maxY-e.height&&(r=n.maxY-e.height),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:l},!0):this.el.move(s,r));return i},t.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(e,i){"function"!=typeof e&&"object"!=(void 0===e?"undefined":a(e))||(i=e,e=!0);var s=this.remember("_draggable")||new t(this);return e=void 0===e||e,e?s.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0)},function(t,e,i){"use strict";!function(){function t(t,s,r,n,o,l,h){for(var c=t.slice(s,r||h),u=n.slice(o,l||h),d=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};;){if(c[d]=e.call(f,c[d]),u[d]=e.call(p,u[d]),c[d][0]!=u[d][0]||"M"==c[d][0]||"A"==c[d][0]&&(c[d][4]!=u[d][4]||c[d][5]!=u[d][5])?(Array.prototype.splice.apply(c,[d,1].concat(a.call(f,c[d]))),Array.prototype.splice.apply(u,[d,1].concat(a.call(p,u[d])))):(c[d]=i.call(f,c[d]),u[d]=i.call(p,u[d])),++d==c.length&&d==u.length)break;d==c.length&&c.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),d==u.length&&u.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]])}return{start:c,dest:u}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function a(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":e=r(this.pos,t),t=e[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function s(t,e){if(!1===e)return!1;for(var i=e,a=t.length;i<a;++i)if("M"==t[i][0])return i;return!1}function r(t,e){var i,a,s,r,n,o,l,h,c,u,d,f,p,g,x,b,v,m,y,w,k,S,A,C,P,M,T=Math.abs(e[1]),L=Math.abs(e[2]),z=e[3]%360,X=e[4],E=e[5],Y=e[6],O=e[7],I=new SVG.Point(t),_=new SVG.Point(Y,O),W=[];if(0===T||0===L||I.x===_.x&&I.y===_.y)return[["C",I.x,I.y,_.x,_.y,_.x,_.y]];for(i=new SVG.Point((I.x-_.x)/2,(I.y-_.y)/2).transform((new SVG.Matrix).rotate(z)),a=i.x*i.x/(T*T)+i.y*i.y/(L*L),a>1&&(a=Math.sqrt(a),T*=a,L*=a),s=(new SVG.Matrix).rotate(z).scale(1/T,1/L).rotate(-z),I=I.transform(s),_=_.transform(s),r=[_.x-I.x,_.y-I.y],o=r[0]*r[0]+r[1]*r[1],n=Math.sqrt(o),r[0]/=n,r[1]/=n,l=o<4?Math.sqrt(1-o/4):0,X===E&&(l*=-1),h=new SVG.Point((_.x+I.x)/2+l*-r[1],(_.y+I.y)/2+l*r[0]),c=new SVG.Point(I.x-h.x,I.y-h.y),u=new SVG.Point(_.x-h.x,_.y-h.y),d=Math.acos(c.x/Math.sqrt(c.x*c.x+c.y*c.y)),c.y<0&&(d*=-1),f=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(f*=-1),E&&d>f&&(f+=2*Math.PI),!E&&d<f&&(f-=2*Math.PI),g=Math.ceil(2*Math.abs(d-f)/Math.PI),b=[],v=d,p=(f-d)/g,x=4*Math.tan(p/4)/3,k=0;k<=g;k++)y=Math.cos(v),m=Math.sin(v),w=new SVG.Point(h.x+y,h.y+m),b[k]=[new SVG.Point(w.x+x*m,w.y-x*y),w,new SVG.Point(w.x-x*m,w.y+x*y)],v+=p;for(b[0][0]=b[0][1].clone(),b[b.length-1][2]=b[b.length-1][1].clone(),s=(new SVG.Matrix).rotate(z).scale(T,L).rotate(-z),k=0,S=b.length;k<S;k++)b[k][0]=b[k][0].transform(s),b[k][1]=b[k][1].transform(s),b[k][2]=b[k][2].transform(s);for(k=1,S=b.length;k<S;k++)w=b[k-1][2],A=w.x,C=w.y,w=b[k][0],P=w.x,M=w.y,w=b[k][1],Y=w.x,O=w.y,W.push(["C",A,C,P,M,Y,O]);return W}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,a=this.parse(e),r=0,n=0,o=!1,l=!1;;){if(!1===r&&!1===n)break;if(o=s(i,!1!==r&&r+1),l=s(a,!1!==n&&n+1),!1===r){var h=new SVG.PathArray(c.start).bbox();r=0==h.height||0==h.width?i.push(i[0])-1:i.push(["M",h.x+h.width/2,h.y+h.height/2])-1}if(!1===n){var h=new SVG.PathArray(c.dest).bbox();n=0==h.height||0==h.width?a.push(a[0])-1:a.push(["M",h.x+h.width/2,h.y+h.height/2])-1}var c=t(i,r,o,a,n,l);i=i.slice(0,r).concat(c.start,!1===o?[]:i.slice(o)),a=a.slice(0,n).concat(c.dest,!1===l?[]:a.slice(l)),r=!1!==o&&r+c.start.length,n=!1!==l&&n+c.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=a,this}})}()},function(t,e,i){"use strict";!function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){this.options={};for(var i in this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",function(t){e.resize(t||window.event)}),this.el.on("rt.resize",function(t){e.resize(t||window.event)}),this.el.on("rb.resize",function(t){e.resize(t||window.event)}),this.el.on("lb.resize",function(t){e.resize(t||window.event)}),this.el.on("t.resize",function(t){e.resize(t||window.event)}),this.el.on("r.resize",function(t){e.resize(t||window.event)}),this.el.on("b.resize",function(t){e.resize(t||window.event)}),this.el.on("l.resize",function(t){e.resize(t||window.event)}),this.el.on("rot.resize",function(t){e.resize(t||window.event)}),this.el.on("point.resize",function(t){e.resize(t||window.event)}),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var a=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[a[t.detail.i][0],a[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i={x:t+this.parameters.p.x,y:e+this.parameters.p.y},a=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),s=Math.atan2(i.y-this.parameters.box.y-this.parameters.box.height/2,i.x-this.parameters.box.x-this.parameters.box.width/2),r=180*(s-a)/Math.PI;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(this.parameters.rotation+r-r%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),a=this.el.array().valueOf();a[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],a[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(a)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},t.prototype.update=function(t){if(!t)return void(this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1]));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})},t.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")},t.prototype.snapToGrid=function(t,e,i,a){var s;return void 0!==a?s=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=null==i?3:i,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-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,a)},t.prototype.constraintToBox=function(t,e,i,a){var s,r,n=this.options.constraint||{};return void 0!==a?(s=i,r=a):(s=this.parameters.box.x+(1&i?0:this.parameters.box.width),r=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==n.minX&&s+t<n.minX&&(t=n.minX-s),void 0!==n.maxX&&s+t>n.maxX&&(t=n.maxX-s),void 0!==n.minY&&r+e<n.minY&&(e=n.minY-r),void 0!==n.maxY&&r+e>n.maxY&&(e=n.maxY-r),[t,e]},t.prototype.checkAspectRatio=function(t){if(!this.options.saveAspectRatio)return t;var e=t.slice(),i=this.parameters.box.width/this.parameters.box.height,a=this.parameters.box.width+t[0],s=this.parameters.box.height-t[1],r=a/s;return r<i?e[1]=a/i-this.parameters.box.height:r>i&&(e[0]=this.parameters.box.width-s*i),e},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}()},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};!function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};for(var a in this.el.selectize.defaults)this.options[a]=this.el.selectize.defaults[a],void 0!==e[a]&&(this.options[a]=e[a]);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&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set?this:(this.pointSelection.set=this.parent.set(),this.drawCircles(),this)},t.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]})},t.prototype.drawCircles=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i<a;++i){var s=function(e){return function(i){i=i||window.event,i.preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:a,y:s,i:e,event:i})}}(i);this.pointSelection.set.add(this.nested.circle(this.options.radius).center(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s))}},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each(function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])})},t.prototype.updateRectSelection=function(){var t=this.el.bbox();this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points&&(this.rectSelection.set.get(2).center(t.width,0),this.rectSelection.set.get(3).center(t.width,t.height),this.rectSelection.set.get(4).center(0,t.height),this.rectSelection.set.get(5).center(t.width/2,0),this.rectSelection.set.get(6).center(t.width,t.height/2),this.rectSelection.set.get(7).center(t.width/2,t.height),this.rectSelection.set.get(8).center(0,t.height/2)),this.options.rotationPoint&&(this.options.points?this.rectSelection.set.get(9).center(t.width/2,20):this.rectSelection.set.get(1).center(t.width/2,20))},t.prototype.selectRect=function(t){function e(t){return function(e){e=e||window.event,e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var a=e.pageX||e.touches[0].pageX,s=e.pageY||e.touches[0].pageY;i.el.fire(t,{x:a,y:s,event:e})}}var i=this,a=this.el.bbox();if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(a.width,a.height).addClass(this.options.classRect)),this.options.points&&!this.rectSelection.set.get(1)){var s="touchstart",r="mousedown";this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,0).attr("class",this.options.classPoints+"_lt").on(r,e("lt")).on(s,e("lt"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width,0).attr("class",this.options.classPoints+"_rt").on(r,e("rt")).on(s,e("rt"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width,a.height).attr("class",this.options.classPoints+"_rb").on(r,e("rb")).on(s,e("rb"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,a.height).attr("class",this.options.classPoints+"_lb").on(r,e("lb")).on(s,e("lb"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width/2,0).attr("class",this.options.classPoints+"_t").on(r,e("t")).on(s,e("t"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width,a.height/2).attr("class",this.options.classPoints+"_r").on(r,e("r")).on(s,e("r"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width/2,a.height).attr("class",this.options.classPoints+"_b").on(r,e("b")).on(s,e("b"))),this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0,a.height/2).attr("class",this.options.classPoints+"_l").on(r,e("l")).on(s,e("l"))),this.rectSelection.set.each(function(){this.addClass(i.options.classPoints)})}if(this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var n=function(t){t=t||window.event,t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,a=t.pageY||t.touches[0].pageY;i.el.fire("rot",{x:e,y:a,event:t})};this.rectSelection.set.add(this.nested.circle(this.options.radius).center(a.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",n).on("mousedown",n))}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"===(void 0===e?"undefined":a(e))&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:!0,classRect:"svg_select_boundingRect",classPoints:"svg_select_points",radius:7,rotationPoint:!0,deepSelect:!1}}()},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<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=function(){function t(){a(this,t)}return s(t,null,[{key:"fnClassList",value:function(){/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i=void 0,a=arguments.length;for(i=0;i<a;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}t=null}():function(t){if("Element"in t){var e=t.Element.prototype,i=Object,a=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},n=function(t,e){if(""===e)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},o=function(t){for(var e=a.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],s=0,r=i.length;s<r;s++)this.push(i[s]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=o.prototype=[],h=function(){return new o(this)};if(r.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return t+="",-1!==n(this,t)},l.add=function(){var t,e=arguments,i=0,a=e.length,s=!1;do{t=e[i]+"",-1===n(this,t)&&(this.push(t),s=!0)}while(++i<a);s&&this._updateClassName()},l.remove=function(){var t,e,i=arguments,a=0,s=i.length,r=!1;do{for(t=i[a]+"",e=n(this,t);-1!==e;)this.splice(e,1),r=!0,e=n(this,t)}while(++a<s);r&&this._updateClassName()},l.toggle=function(t,e){t+="";var i=this.contains(t),a=i?!0!==e&&"remove":!1!==e&&"add";return a&&this[a](t),!0===e||!1===e?e:!i},l.toString=function(){return this.join(" ")},i.defineProperty){var c={get:h,enumerable:!0,configurable:!0};try{i.defineProperty(e,"classList",c)}catch(t){-2146823252===t.number&&(c.enumerable=!1,i.defineProperty(e,"classList",c))}}else i.prototype.__defineGetter__&&e.__defineGetter__("classList",h)}}(self))}}]),t}();t.exports=r},function(t,e,i){e=t.exports=i(97)(!1),e.push([t.i,'.apexcharts-canvas{position:relative;user-select:none}.apexcharts-inner{position:relative}.apexcharts-legend-series{cursor:pointer}.apexcharts-series-collapsed{opacity:0}.inactive-legend{opacity:.45}.legend-mouseover-inactive{transition:all .15s ease;opacity:.2}.apexcharts-gridline,.apexcharts-text{pointer-events:none}.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;overflow:hidden;white-space:nowrap;z-index:10;transition:all .15s ease}.apexcharts-tooltip.light{border:1px solid #e3e3e3;background:hsla(0,0%,100%,.96)}.apexcharts-tooltip.dark{color:#fff;background:rgba(30,30,30,.8)}.apexcharts-area-series .apexcharts-area,.apexcharts-line,.apexcharts-tooltip .apexcharts-marker{pointer-events:none}.apexcharts-tooltip.active{opacity:1;transition:all .15s ease}.apexcharts-tooltip-title{padding:6px;font-size:15px;margin-bottom:4px}.apexcharts-tooltip.light .apexcharts-tooltip-title{background:#eceff1;border-bottom:1px solid #ddd}.apexcharts-tooltip.dark .apexcharts-tooltip-title{background:rgba(0,0,0,.7);border-bottom:1px solid #222}.apexcharts-tooltip-text-value,.apexcharts-tooltip-text-z-value{display:inline-block;margin-left:5px}.apexcharts-tooltip-text-z-label:empty,.apexcharts-tooltip-text-z-value:empty{display:none}.apexcharts-tooltip-text-value,.apexcharts-tooltip-text-z-value{font-weight:600}.apexcharts-tooltip-marker{width:12px;height:12px;position:relative;top:1px;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.active{display:flex}.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker{opacity:1}.apexcharts-tooltip-series-group.active,.apexcharts-tooltip-series-group:last-child{padding-bottom:4px}.apexcharts-tooltip-y-group{padding:6px 0 5px}.apexcharts-xaxistooltip{opacity:0;padding:9px 10px;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;transition:all .15s ease}.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:rgba(236,239,241,0);border-width:6px;margin-left:-6px}.apexcharts-xaxistooltip:before{border-color:rgba(144,164,174,0);border-width:7px;margin-left:-7px}.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before{bottom:100%}.apexcharts-xaxistooltip-bottom:after{border-bottom-color:#eceff1}.apexcharts-xaxistooltip-bottom:before{border-bottom-color:#90a4ae}.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before{top:100%}.apexcharts-xaxistooltip-top:after{border-top-color:#eceff1}.apexcharts-xaxistooltip-top:before{border-top-color:#90a4ae}.apexcharts-xaxistooltip.active{opacity:1;transition:all .15s ease}.apexcharts-yaxistooltip{opacity:0;padding:4px 10px;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-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:rgba(236,239,241,0);border-width:6px;margin-top:-6px}.apexcharts-yaxistooltip:before{border-color:rgba(144,164,174,0);border-width:7px;margin-top:-7px}.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before{left:100%}.apexcharts-yaxistooltip-left:after{border-left-color:#eceff1}.apexcharts-yaxistooltip-left:before{border-left-color:#90a4ae}.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before{right:100%}.apexcharts-yaxistooltip-right:after{border-right-color:#eceff1}.apexcharts-yaxistooltip-right:before{border-right-color:#90a4ae}.apexcharts-yaxistooltip.active{opacity:1}.apexcharts-xcrosshairs,.apexcharts-ycrosshairs{pointer-events:none;opacity:0;transition:all .15s ease}.apexcharts-xcrosshairs.active,.apexcharts-ycrosshairs.active{opacity:1;transition:all .15s ease}.apexcharts-ycrosshairs-hidden{opacity:0}.apexcharts-zoom-rect{pointer-events:none}.apexcharts-selection-rect{cursor:move}.svg_select_points,.svg_select_points_rot{opacity:0;visibility:hidden}.svg_select_points_l,.svg_select_points_r{cursor:ew-resize;opacity:1;visibility:visible;fill:#888}.zoomable .hovering-zoom{cursor:crosshair}.zoomable .hovering-pan{cursor:move}.apexcharts-xaxis,.apexcharts-yaxis{pointer-events:none}.apexcharts-download-icon,.apexcharts-pan-icon,.apexcharts-reset-zoom-icon,.apexcharts-selection-icon,.apexcharts-zoom-icon,.apexcharts-zoom-in-icon,.apexcharts-zoom-out-icon{cursor:pointer;width:20px;height:20px;text-align:center}.apexcharts-download-icon svg,.apexcharts-reset-zoom-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoom-in-icon svg,.apexcharts-zoom-out-icon svg{fill:#6e8192}.apexcharts-selection-icon svg{fill:#444;transform:scale(.86)}.apexcharts-reset-zoom-icon.selected svg,.apexcharts-selection-icon.selected svg,.apexcharts-zoom-icon.selected svg{fill:#008ffb}.apexcharts-reset-zoom-icon:hover svg,.apexcharts-selection-icon:not(.selected):hover svg,.apexcharts-zoom-icon:not(.selected):hover svg,.apexcharts-zoom-in-icon:hover svg,.apexcharts-zoom-out-icon:hover svg{fill:#333}.apexcharts-download-icon,.apexcharts-selection-icon{margin-right:3px;position:relative;top:1px}.apexcharts-reset-zoom-icon{margin-left:7px}.apexcharts-zoom-icon{transform:scale(1)}.apexcharts-download-icon{transform:scale(.9)}.apexcharts-zoom-in-icon,.apexcharts-zoom-out-icon{transform:scale(.8)}.apexcharts-zoom-out-icon{margin-right:3px}.apexcharts-pan-icon{transform:scale(.72);position:relative;left:1px;top:0}.apexcharts-pan-icon svg{fill:#fff;stroke:#6e8192;stroke-width:2}.apexcharts-pan-icon.selected svg{stroke:#008ffb}.apexcharts-pan-icon:not(.selected):hover svg{stroke:#333}.apexcharts-scrollbutton,.apexcharts-scroller-thumb{cursor:ew-resize}.apexcharts-toolbar{position:absolute;z-index:11;top:0;right:3px;max-width:176px;text-align:right;border-radius:3px;padding:5px 6px 2px;display:flex;justify-content:space-between;align-items:center}.apexcharts-toolbar svg{pointer-events:none}@media screen and (min-width:768px){.apexcharts-canvas:hover .apexcharts-toolbar{opacity:1}}.apexcharts-datalabel.hidden{opacity:0}.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.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-showAfterDelay{opacity:0;animation-name:opaque;animation-duration:.3s;animation-fill-mode:forwards}.apexcharts-hide .apexcharts-series-points{opacity:0}.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events{pointer-events:none}.apexcharts-marker{transition:all .15s ease}@keyframes opaque{0%{opacity:0}to{opacity:1}}',""])},function(t,e,i){var a=i(128);"string"==typeof a&&(a=[[t.i,a,""]]);var s={hmr:!0};s.transform=void 0,s.insertInto=void 0;i(130)(a,s);a.locals&&(t.exports=a.locals)},function(t,e,i){function a(t,e){for(var i=0;i<t.length;i++){var a=t[i],s=p[a.id];if(s){s.refs++;for(var r=0;r<s.parts.length;r++)s.parts[r](a.parts[r]);for(;r<a.parts.length;r++)s.parts.push(c(a.parts[r],e))}else{for(var n=[],r=0;r<a.parts.length;r++)n.push(c(a.parts[r],e));p[a.id]={id:a.id,refs:1,parts:n}}}}function s(t,e){for(var i=[],a={},s=0;s<t.length;s++){var r=t[s],n=e.base?r[0]+e.base:r[0],o=r[1],l=r[2],h=r[3],c={css:o,media:l,sourceMap:h};a[n]?a[n].parts.push(c):i.push(a[n]={id:n,parts:[c]})}return i}function r(t,e){var i=b(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var a=y[y.length-1];if("top"===t.insertAt)a?a.nextSibling?i.insertBefore(e,a.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),y.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var s=b(t.insertInto+" "+t.insertAt.before);i.insertBefore(e,s)}}function n(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function o(t){var e=document.createElement("style");return t.attrs.type="text/css",h(e,t.attrs),r(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",h(e,t.attrs),r(t,e),e}function h(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function c(t,e){var i,a,s,r;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}if(e.singleton){var h=m++;i=v||(v=o(e)),a=u.bind(null,i,h,!1),s=u.bind(null,i,h,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=l(e),a=f.bind(null,i,e),s=function(){n(i),i.href&&URL.revokeObjectURL(i.href)}):(i=o(e),a=d.bind(null,i),s=function(){n(i)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else s()}}function u(t,e,i,a){var s=i?"":a.css;if(t.styleSheet)t.styleSheet.cssText=k(e,s);else{var r=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(r,n[e]):t.appendChild(r)}}function d(t,e){var i=e.css,a=e.media;if(a&&t.setAttribute("media",a),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}function f(t,e,i){var a=i.css,s=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&s;(e.convertToAbsoluteUrls||r)&&(a=w(a)),s&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");var n=new Blob([a],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(n),o&&URL.revokeObjectURL(o)}var p={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),x=function(t){return document.querySelector(t)},b=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var i=x.call(this,t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),v=null,m=0,y=[],w=i(122);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=s(t,e);return a(i,e),function(t){for(var r=[],n=0;n<i.length;n++){var o=i[n],l=p[o.id];l.refs--,r.push(l)}if(t){a(s(t,e),e)}for(var n=0;n<r.length;n++){var l=r[n];if(0===l.refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete p[l.id]}}}};var k=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports='<svg fill="#000000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="3.2"></circle><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>'},function(t,e){t.exports='<svg fill="#000000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" viewBox="0 0 24 24"><defs><path d="M0 0h24v24H0z" id="a"></path></defs><clipPath id="b"><use overflow="visible" xlink:href="#a"></use></clipPath><path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg>'},function(t,e){t.exports='<svg fill="#6E8192" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0V0z" fill="none"></path><path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></svg>'},function(t,e,i){i(64),i(63),t.exports=i(65)}])});