OwlCyberSecurity - MANAGER
Edit File: editor.min.js
(()=>{var e={927:(e,t,i)=>{"use strict";var a;function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){h(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function c(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),e}function h(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,a=u(e);if(t){var s=u(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,i)}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,s,r=[],n=!0,o=!1;try{for(i=i.call(e);!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw s}}return r}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}var y=function(){function e(){o(this,e)}return c(e,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),a=e<0?0:255,s=e<0?-1*e:e,r=parseInt(i[0].slice(4),10),n=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((a-r)*s)+r)+","+(Math.round((a-n)*s)+n)+","+(Math.round((a-o)*s)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),a=e<0?0:255,s=e<0?-1*e:e,r=i>>16,n=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-n)*s)+n)+(Math.round((a-o)*s)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,i){return e.isColorHex(i)?this.shadeHexColor(t,i):this.shadeRGBColor(t,i)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])}return t});var a=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(s){i.isObject(t[s])&&s in e?a[s]=i.extend(e[s],t[s]):Object.assign(a,h({},s,t[s]))})),a}},{key:"extendArray",value:function(t,i){var a=[];return t.map((function(t){a.push(e.extend(i,t))})),a}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var i=[],a=0;a<t.length;a++)i[a]=this.clone(t[a]);return i}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===n(t)){var s={};for(var r in t)t.hasOwnProperty(r)&&(s[r]=this.clone(t[r]));return s}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var i="",a=e<0?"-":"",s=t[0].replace(".",""),r=Number(t[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,a=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[a-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var i=e.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!==t&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],a=2*Math.PI/t,s=0;s<t;s++){var r={};r.x=e*Math.sin(s*a),r.y=-e*Math.cos(s*a),i.push(r)}return i}},{key:"polarToCartesian",value:function(e,t,i,a){var s=(a-90)*Math.PI/180;return{x:e+i*Math.cos(s),y:t+i*Math.sin(s)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return e.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0&&parseInt(e.substring(a+5,e.indexOf(".",a)),10)}}]),e}(),C=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return c(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,a){e.attr(t).animate(a).attr(i)}},{key:"animateMarker",value:function(e,t,i,a,s,r){t||(t=0),e.attr({r:t,width:t,height:t}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(e,t,i,a,s){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,a,s){e.attr(t).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,a=e.j,s=e.fill,r=e.pathFrom,n=e.pathTo,o=e.speed,l=e.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(t,i,a,"line"!==c.config.chart.type||c.globals.comboCharts?s:"stroke",r,n,o,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,a,s,r,n,o){var l=this,c=this.w;s||(s=e.attr("pathFrom")),r||(r=e.attr("pathTo"));var h=function(e){return"radar"===c.config.chart.type&&(n=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=h()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=h()),c.globals.shouldAnimate||(n=1),e.plot(s).animate(1,c.globals.easing,o).plot(s).animate(n,c.globals.easing,o).plot(r).afterAll((function(){y.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==a&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),w=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var a=this,s=this.w,r=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var a=this,s=this.w,r=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:r}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:a});break;case"darken":this.addDarkenFilter(e,t,{intensity:a})}}},{key:"addShadow",value:function(e,t,i){var a=i.blur,s=i.top,r=i.left,n=i.color,o=i.opacity,l=e.flood(Array.isArray(n)?n[t]:n,o).composite(e.sourceAlpha,"in").offset(r,s).gaussianBlur(a).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=t.top,s=t.left,r=t.blur,n=t.color,o=t.opacity,l=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),y.isIE()&&"radialBar"===c.config.chart.type||(n=Array.isArray(n)?n[i]:n,e.filter((function(e){var t;t=y.isSafari()||y.isFirefox()||y.isIE()?e.flood(n,o).composite(e.sourceAlpha,"in").offset(s,a).gaussianBlur(r):e.flood(n,o).composite(e.sourceAlpha,"in").offset(s,a).gaussianBlur(r).merge(e.source),e.blend(e.source,t)})),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[t]&&a.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(e,t,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),S=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"roundPathCorners",value:function(e,t){function i(e,t,i){var s=t.x-e.x,r=t.y-e.y,n=Math.sqrt(s*s+r*r);return a(e,t,Math.min(1,i/n))}function a(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function s(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function r(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var n=e.split(/[,\s]/).reduce((function(e,t){var i=t.match("([a-zA-Z])(.+)");return i?(e.push(i[1]),e.push(i[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),o=[];if(n.length>1){var l=r(n[0]),c=null;"Z"==n[n.length-1][0]&&n[0].length>2&&(c=["L",l.x,l.y],n[n.length-1]=c),o.push(n[0]);for(var h=1;h<n.length;h++){var d=o[o.length-1],u=n[h],g=u==c?n[1]:n[h+1];if(g&&d&&d.length>2&&"L"==u[0]&&g.length>2&&"L"==g[0]){var p,f,m=r(d),x=r(u),b=r(g);p=i(x,m,t),f=i(x,b,t),s(u,p),u.origPoint=x,o.push(u);var v=a(p,x,.5),y=a(x,f,.5),C=["C",v.x,v.y,y.x,y.y,f.x,f.y];C.origPoint=x,o.push(C)}else o.push(u)}if(c){var w=r(o[o.length-1]);o.push(["Z"]),s(o[0],w)}}else o=n;return o.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,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,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":n,"stroke-linecap":o})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=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,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:n,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",r),h}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var i=this.w.globals.dom.Paper.circle(2*e);return null!==t&&i.attr(t),i}},{key:"drawPath",value:function(e){var t=e.d,i=void 0===t?"":t,a=e.stroke,s=void 0===a?"#a8a8a8":a,r=e.strokeWidth,n=void 0===r?1:r,o=e.fill,l=e.fillOpacity,c=void 0===l?1:l,h=e.strokeOpacity,d=void 0===h?1:h,u=e.classes,g=e.strokeLinecap,p=void 0===g?null:g,f=e.strokeDashArray,m=void 0===f?0:f,x=this.w;return null===p&&(p=x.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(x.globals.gridHeight)),x.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:s,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":n,"stroke-dasharray":m,class:u})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=[" L",e,t].join(" "):"H"===i?a=[" H",e].join(" "):"V"===i&&(a=[" V",t].join(" ")),a}},{key:"curve",value:function(e,t,i,a,s,r){return["C",e,t,i,a,s,r].join(" ")}},{key:"quadraticCurve",value:function(e,t,i,a){return["Q",e,t,i,a].join(" ")}},{key:"arc",value:function(e,t,i,a,s,r,n){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,e,t,i,a,s,r,n].join(" ")}},{key:"renderPaths",value:function(e){var t,i=e.j,a=e.realIndex,s=e.pathFrom,n=e.pathTo,o=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,h=e.fill,d=e.animationDelay,u=e.initialSpeed,g=e.dataChangeSpeed,p=e.className,f=e.shouldClipToGrid,m=void 0===f||f,x=e.bindEventsOnPaths,b=void 0===x||x,v=e.drawShadow,y=void 0===v||v,S=this.w,k=new w(this.ctx),E=new C(this.ctx),A=this.w.config.chart.animations.enabled,P=A&&this.w.config.chart.animations.dynamicAnimation.enabled,L=!!(A&&!S.globals.resized||P&&S.globals.dataChanged&&S.globals.shouldAnimate);L?t=s:(t=n,S.globals.animationEnded=!0);var M,T=S.config.stroke.dashArray;M=Array.isArray(T)?T[a]:S.config.stroke.dashArray;var _=this.drawPath({d:t,stroke:o,strokeWidth:l,fill:h,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:M});if(_.attr("index",a),m&&_.attr({"clip-path":"url(#gridRectMask".concat(S.globals.cuid,")")}),"none"!==S.config.states.normal.filter.type)k.getDefaultFilter(_,a);else if(S.config.chart.dropShadow.enabled&&y&&(!S.config.chart.dropShadow.enabledOnSeries||S.config.chart.dropShadow.enabledOnSeries&&-1!==S.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var F=S.config.chart.dropShadow;k.dropShadow(_,F,a)}b&&(_.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,_)),_.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,_)),_.node.addEventListener("mousedown",this.pathMouseDown.bind(this,_))),_.attr({pathTo:n,pathFrom:s});var D={el:_,j:i,realIndex:a,pathFrom:s,pathTo:n,fill:h,strokeWidth:l,delay:d};return!A||S.globals.resized||S.globals.dataChanged?!S.globals.resized&&S.globals.dataChanged||E.showDelayedElements():E.animatePathsGradually(r(r({},D),{},{speed:u})),S.globals.dataChanged&&P&&L&&E.animatePathsGradually(r(r({},D),{},{speed:g})),_}},{key:"drawPattern",value:function(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,i,(function(r){"horizontalLines"===e?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===e?r.line(0,0,0,t).stroke({color:a,width:s+1}):"slantedLines"===e?r.line(0,0,t,i).stroke({color:a,width:s}):"squares"===e?r.rect(t,i).fill("none").stroke({color:a,width:s}):"circles"===e&&r.circle(t).fill("none").stroke({color:a,width:s})}))}},{key:"drawGradient",value:function(e,t,i,a,s){var r,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;t.length<9&&0===t.indexOf("#")&&(t=y.hexToRgba(t,a)),i.length<9&&0===i.indexOf("#")&&(i=y.hexToRgba(i,s));var d=0,u=1,g=1,p=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,g=void 0!==o[2]?o[2]/100:1,p=void 0!==o[3]?o[3]/100:null);var f=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(r=null===l||0===l.length?h.globals.dom.Paper.gradient(f?"radial":"linear",(function(e){e.at(d,t,a),e.at(u,i,s),e.at(g,i,s),null!==p&&e.at(p,t,a)})):h.globals.dom.Paper.gradient(f?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),f){var m=h.globals.gridWidth/2,x=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:x,r:n}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?r.from(0,0).to(0,1):"diagonal"===e?r.from(0,0).to(1,1):"horizontal"===e?r.from(0,1).to(1,1):"diagonal2"===e&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,a=e.fontSize,s=e.fontFamily,r=this.getTextRects(t,a,s),n=r.width/t.length,o=Math.floor(i/n);return i<r.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,i=e.x,a=e.y,s=e.text,n=e.textAnchor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,h=e.foreColor,d=e.opacity,u=e.maxWidth,g=e.cssClass,p=void 0===g?"":g,f=e.isPlainText,m=void 0===f||f,x=e.dominantBaseline,b=void 0===x?"auto":x,v=this.w;void 0===s&&(s="");var y=s;n||(n="start"),h&&h.length||(h=v.config.chart.foreColor),l=l||v.config.chart.fontFamily,c=c||"regular";var C,w={maxWidth:u,fontSize:o=o||"11px",fontFamily:l};return Array.isArray(s)?C=v.globals.dom.Paper.text((function(e){for(var i=0;i<s.length;i++)y=s[i],u&&(y=t.getTextBasedOnMaxWidth(r({text:s[i]},w))),0===i?e.tspan(y):e.tspan(y).newLine()})):(u&&(y=this.getTextBasedOnMaxWidth(r({text:s},w))),C=m?v.globals.dom.Paper.plain(s):v.globals.dom.Paper.text((function(e){return e.tspan(y)}))),C.attr({x:i,y:a,"text-anchor":n,"dominant-baseline":b,"font-size":o,"font-family":l,"font-weight":c,fill:h,class:"apexcharts-text "+p}),C.node.style.fontFamily=l,C.node.style.opacity=d,C}},{key:"drawMarker",value:function(e,t,i){e=e||0;var a=i.pSize||0,s=null;if("square"===i.shape||"rect"===i.shape){var r=void 0===i.pRadius?a/2:i.pRadius;null!==t&&a||(a=0,r=0);var n=1.2*a+r,o=this.drawRect(n,n,n,n,r);o.attr({x:e-n/2,y:t-n/2,cx:e,cy:t,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),s=o}else"circle"!==i.shape&&i.shape||(y.isNumber(t)||(a=0,t=0),s=this.drawCircle(a,{cx:e,cy:t,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,a=new w(this.ctx),s=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}]),("none"===i.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var n=i.config.states.hover.filter;a.applyFilter(e,s,n.type,n.value)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,a=new w(this.ctx),s=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&a.getDefaultFilter(e,s)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,a=new w(this.ctx),s=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10),n="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[s].indexOf(r)>-1){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, .apexcharts-series rect").members,h=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),a.getDefaultFilter(e,s)}))};h(l),h(c)}e.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 d=i.config.states.active.filter;if("none"!==d)a.applyFilter(e,s,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;a.applyFilter(e,s,u.type,u.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?a.getDefaultFilter(e,s):(u=i.config.states.hover.filter,a.applyFilter(e,s,u.type,u.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,n=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&n.attr("transform",a),r.globals.dom.Paper.add(n);var o=n.bbox();return s||(o=n.node.getBoundingClientRect()),n.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=i/1.1)return void(e.textContent=t.substring(0,a)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),e}(),k=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,i=[];if(0===t.globals.series.length)return i;for(var a=0;a<t.globals.series[t.globals.maxValsInArrayIndex].length;a++){for(var s=0,r=0;r<t.globals.series.length;r++)void 0!==t.globals.series[r][a]&&-1===e.indexOf(r)&&(s+=t.globals.series[r][a]);i.push(s)}return i}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,i=[];return t.globals.seriesGroups.forEach((function(a){var s=[];t.config.series.forEach((function(e,t){a.indexOf(e.name)>-1&&s.push(t)}));var r=t.globals.series.map((function(e,t){return-1===s.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));i.push(e.getStackedSeriesTotals(r))})),i}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,i){return e===i[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map((function(e,i){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var i=0;if(Array.isArray(e))for(var a=0;a<e.length;a++)i+=e[a];else i+=e;return i}))}},{key:"getSeriesTotalsXRange",value:function(e,t){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]>e&&i.globals.seriesX[s][n]<t&&(r+=a[n]);return r}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,i){var a=[];if(Array.isArray(t))for(var s=0;s<t.length;s++){var r=e.globals.stackedSeriesTotals[s],n=0;r&&(n=100*t[s]/r),a.push(n)}else{var o=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);a.push(o)}return a}))}},{key:"getCalculatedRatios",value:function(){var e,t,i,a=this.w.globals,s=[],r=0,n=[],o=.1,l=0;if(a.yRange=[],a.isMultipleYAxis)for(var c=0;c<a.minYArr.length;c++)a.yRange.push(Math.abs(a.minYArr[c]-a.maxYArr[c])),n.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var h=0;h<a.yRange.length;h++)s.push(a.yRange[h]/a.gridHeight);if(t=a.xRange/a.gridWidth,e=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,(r=a.zRange/a.gridHeight*16)||(r=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),a.isMultipleYAxis){n=[];for(var d=0;d<s.length;d++)n.push(-a.minYArr[d]/s[d])}else n.push(-a.minY/s[0]),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(o=-a.minY/e,l=a.minX/t);return{yRatio:s,invertedYRatio:e,zRatio:r,xRatio:t,invertedXRatio:i,baseLineInvertedY:o,baseLineY:n,baseLineX:l}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map((function(e,a){return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(i.config.yaxis[a].logBase,e,a)})):e})),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,i){if(0===t)return 0;var a=this.w,s=0===a.globals.minYArr[i]?-1:this.getBaseLog(e,a.globals.minYArr[i]),r=(0===a.globals.maxYArr[i]?0:this.getBaseLog(e,a.globals.maxYArr[i]))-s;return t<1?t/r:(this.getBaseLog(e,t)-s)/r}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,a=this.w.globals;return a.yLogRatio=e.slice(),a.logYRange=a.yRange.map((function(e,s){if(i.config.yaxis[s]&&t.w.config.yaxis[s].logarithmic){var r,n=-Number.MAX_VALUE,o=Number.MIN_VALUE;return a.seriesLog.forEach((function(e,t){e.forEach((function(e){i.config.yaxis[t]&&i.config.yaxis[t].logarithmic&&(n=Math.max(e,n),o=Math.min(e,o))}))})),r=Math.pow(a.yRange[s],Math.abs(o-n)/a.yRange[s]),a.yLogRatio[s]=r/a.gridHeight,r}})),a.invalidLogScale?e.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,i=0,a=0;return e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||i++,void 0!==e.type&&a++})),a>0&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),E=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return c(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===e.label.orientation){var a=null!==t?t:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),"top"===e.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var n=this.annoCtx.graphics.rotateAroundCenter(s),o=n.x,l=n.y;s.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=e.getBoundingClientRect(),r=t.label.style.padding.left,n=t.label.style.padding.right,o=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(o=t.label.style.padding.left,l=t.label.style.padding.right,r=t.label.style.padding.top,n=t.label.style.padding.bottom);var c=s.left-a.left-r,h=s.top-a.top-o,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,s.width+r+n,s.height+o+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(i,a,s){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(r){var n=r.parentNode,o=e.addBackgroundToAnno(r,i);o&&(n.insertBefore(o.node,r),i.label.mouseEnter&&o.node.addEventListener("mouseenter",i.label.mouseEnter.bind(e,i)),i.label.mouseLeave&&o.node.addEventListener("mouseleave",i.label.mouseLeave.bind(e,i)),i.label.click&&o.node.addEventListener("click",i.label.click.bind(e,i)))}};t.config.annotations.xaxis.map((function(e,t){i(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){i(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){i(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var i,a="y1"===e?t.y:t.y2,s=this.w;if(this.annoCtx.invertAxis){var r=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(r=s.globals.categoryLabels.indexOf(a));var n=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");n&&(i=parseFloat(n.getAttribute("y"))),void 0!==t.seriesIndex&&s.globals.barHeight&&(i=i-s.globals.barHeight/2*(s.globals.series.length-1)+s.globals.barHeight*t.seriesIndex)}else{var o;o=s.config.yaxis[t.yAxisIndex].logarithmic?(a=new k(this.annoCtx.ctx).getLogVal(a,t.yAxisIndex))/s.globals.yLogRatio[t.yAxisIndex]:(a-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-o,!t.marker||void 0!==t.y&&null!==t.y||(i=0),s.config.yaxis[t.yAxisIndex]&&s.config.yaxis[t.yAxisIndex].reversed&&(i=o)}return"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(e,t){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,n=(t.x-a)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(n=(s-t.x)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(t.x));var o=(t.x2-a)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(o=(s-t.x2)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(t.x2)),void 0!==t.x&&null!==t.x||!t.marker||(n=i.globals.gridWidth),"x1"===e&&"string"==typeof t.x&&t.x.indexOf("px")>-1&&(n=parseFloat(t.x)),"x2"===e&&"string"==typeof t.x2&&t.x2.indexOf("px")>-1&&(o=parseFloat(t.x2)),void 0!==t.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(n=n-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*t.seriesIndex),"x1"===e?n:o}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var a=t.globals.labels.indexOf(e),s=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),e}(),A=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new E(this.annoCtx)}return c(e,[{key:"addXaxisAnnotation",value:function(e,t,i){var a,s=this.w,r=this.helpers.getX1X2("x1",e),n=e.label.text,o=e.strokeDashArray;if(y.isNumber(r)){if(null===e.x2||void 0===e.x2){var l=this.annoCtx.graphics.drawLine(r+e.offsetX,0+e.offsetY,r+e.offsetX,s.globals.gridHeight+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((a=this.helpers.getX1X2("x2",e))<r){var c=r;r=a,a=c}var h=this.annoCtx.graphics.drawRect(r+e.offsetX,0+e.offsetY,a-r,s.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,o);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}var d=this.annoCtx.graphics.getTextRects(n,parseFloat(e.label.style.fontSize)),u="top"===e.label.position?4:"center"===e.label.position?s.globals.gridHeight/2+("vertical"===e.label.orientation?d.width/2:0):s.globals.gridHeight,g=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:u+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?d.width/2-12:-d.width/2:0),text:n,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});g.attr({rel:i}),t.appendChild(g.node),this.annoCtx.helpers.setOrientations(e,i)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,a){e.addXaxisAnnotation(t,i.node,a)})),i}}]),e}(),P=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new E(this.annoCtx)}return c(e,[{key:"addYaxisAnnotation",value:function(e,t,i){var a,s=this.w,r=e.strokeDashArray,n=this.helpers.getY1Y2("y1",e),o=e.label.text;if(null===e.y2||void 0===e.y2){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,n+e.offsetY,this._getYAxisAnnotationWidth(e),n+e.offsetY,e.borderColor,r,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((a=this.helpers.getY1Y2("y2",e))>n){var c=n;n=a,a=c}var h=this.annoCtx.graphics.drawRect(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),n-a,0,e.fillColor,e.opacity,1,e.borderColor,r);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}var d="right"===e.label.position?s.globals.gridWidth:"center"===e.label.position?s.globals.gridWidth/2:0,u=this.annoCtx.graphics.drawText({x:d+e.label.offsetX,y:(null!=a?a:n)+e.label.offsetY-3,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});u.attr({rel:i}),t.appendChild(u.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,a){e.addYaxisAnnotation(t,i.node,a)})),i}}]),e}(),L=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new E(this.annoCtx)}return c(e,[{key:"addPointAnnotation",value:function(e,t,i){this.w;var a=this.helpers.getX1X2("x1",e),s=this.helpers.getY1Y2("y1",e);if(y.isNumber(a)){var r={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},n=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,r);t.appendChild(n.node);var o=e.label.text?e.label.text:"",l=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(l.attr({rel:i}),t.appendChild(l.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var h=e.image.width?e.image.width:20,d=e.image.height?e.image.height:20;n=this.annoCtx.addImage({x:a+e.image.offsetX-h/2,y:s+e.image.offsetY-d/2,width:h,height:d,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&n.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&n.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&n.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,a){e.addPointAnnotation(t,i.node,a)})),i}}]),e}(),M={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},T=function(){function e(){o(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return c(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[M],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),_=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.graphics=new S(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new E(this),this.xAxisAnnotations=new A(this),this.yAxisAnnotations=new P(this),this.pointsAnnotations=new L(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return c(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,r=[t,i,a],n=[i.node,t.node,a.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(r[o]),!s||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&n[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:n[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,i){e.addImage(t,i)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,i){e.addText(t,i)}))}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,a=e.y,s=e.text,r=e.textAnchor,n=e.foreColor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,h=e.cssClass,d=e.backgroundColor,u=e.borderWidth,g=e.strokeDashArray,p=e.borderRadius,f=e.borderColor,m=e.appendTo,x=void 0===m?".apexcharts-svg":m,b=e.paddingLeft,v=void 0===b?4:b,y=e.paddingRight,C=void 0===y?4:y,w=e.paddingBottom,S=void 0===w?2:w,k=e.paddingTop,E=void 0===k?2:k,A=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||A.config.chart.fontFamily,foreColor:n||A.config.chart.foreColor,cssClass:h}),L=A.globals.dom.baseEl.querySelector(x);L&&L.appendChild(P.node);var M=P.bbox();if(s){var T=this.graphics.drawRect(M.x-v,M.y-E,M.width+v+C,M.height+S+E,p,d||"transparent",1,u,f,g);L.insertBefore(T.node,P.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.path,s=e.x,r=void 0===s?0:s,n=e.y,o=void 0===n?0:n,l=e.width,c=void 0===l?20:l,h=e.height,d=void 0===h?20:h,u=e.appendTo,g=void 0===u?".apexcharts-svg":u,p=i.globals.dom.Paper.image(a);p.size(c,d).move(r,o);var f=i.globals.dom.baseEl.querySelector(g);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,a=e.context,s=e.type,r=e.contextMethod,n=a,o=n.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=l.childNodes.length+1,h=new T,d=Object.assign({},"xaxis"===s?h.xAxisAnnotation:"yaxis"===s?h.yAxisAnnotation:h.pointAnnotation),u=y.extend(d,t);switch(s){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var g=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(g,u);return p&&l.insertBefore(p.node,g),i&&o.globals.memory.methodsToExec.push({context:n,id:u.id?u.id:y.randomId(),method:r,label:"addAnnotation",params:t}),a}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,i){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(i,1)})),i=y.listToArray(i),Array.prototype.forEach.call(i,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var i=e.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(t));a&&(i.globals.memory.methodsToExec.map((function(e,a){e.id===t&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),F=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return c(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(x(i.months)),r=[""].concat(x(i.shortMonths)),n=[""].concat(x(i.days)),o=[""].concat(x(i.shortDays));function l(e,t){var i=e+"";for(t=t||2;i.length<t;)i="0"+i;return i}var c=a?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(a?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+r[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=a?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+n[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=a?e.getUTCHours():e.getHours(),g=u>12?u-12:0===u?12:u;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(g))).replace(/(^|[^\\])h/g,"$1"+g);var p=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var f=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var m=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var b=u<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var v=b.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var y=-e.getTimezoneOffset(),C=a||!y?"Z":y>0?"+":"-";if(!a){var w=(y=Math.abs(y))%60;C+=l(Math.floor(y/60))+":"+l(w)}t=t.replace(/(^|[^\\])K/g,"$1"+C);var S=(a?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(n[0],"g"),n[S])).replace(new RegExp(o[0],"g"),o[S])).replace(new RegExp(s[0],"g"),s[h])).replace(new RegExp(r[0],"g"),r[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var a=this.w;void 0!==a.config.xaxis.min&&(e=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(t=a.config.xaxis.max);var s=this.getDate(e),r=this.getDate(t),n=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(n[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(n[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(n[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(n[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(n[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(n[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(n[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var a=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=y.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),e}(),D=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return c(e,[{key:"xLabelFormat",value:function(e,t,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var r=new F(this.ctx);return r.formatDate(r.getDate(t),s.config.tooltip.x.format)}return e(t,i,a)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,i){var a=this.w;return y.isNumber(e)&&(e=0!==a.globals.yValueDecimal?e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(y.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(y.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var i=t.globals.maxX-t.globals.minX;return i>0&&i<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),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),t.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?t.globals.yLabelFormatters[a]=i.labels.formatter:t.globals.yLabelFormatters[a]=function(s){return t.globals.xyCharts?Array.isArray(s)?s.map((function(t){return e.defaultYFormatter(t,i,a)})):e.defaultYFormatter(s,i,a):s}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),H=function(e){var t,i=e.isTimeline,a=e.ctx,s=e.seriesIndex,r=e.dataPointIndex,n=e.y1,o=e.y2,l=e.w,c=l.globals.seriesRangeStart[s][r],h=l.globals.seriesRangeEnd[s][r],d=l.globals.labels[r],u=l.config.series[s].name?l.config.series[s].name:"",g=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:s,dataPointIndex:r,start:c,end:h};"function"==typeof p&&(u=p(u,f)),null!==(t=l.config.series[s].data[r])&&void 0!==t&&t.x&&(d=l.config.series[s].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new D(a).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new F(a).formatDate,w:l})),"function"==typeof g&&(d=g(d,f)),Number.isFinite(n)&&Number.isFinite(o)&&(c=n,h=o);var m="",x="",b=l.globals.colors[s];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var v=new F(a);m=v.formatDate(v.getDate(c),l.config.tooltip.x.format),x=v.formatDate(v.getDate(h),l.config.tooltip.x.format)}else m=c,x=h;else m=l.config.tooltip.x.formatter(c),x=l.config.tooltip.x.formatter(h);return{start:c,end:h,startVal:m,endVal:x,ylabel:d,color:b,seriesName:u}},O=function(e){var t=e.color,i=e.seriesName,a=e.ylabel,s=e.start,r=e.end,n=e.seriesIndex,o=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(n);s=l.yLbFormatter(s),r=l.yLbFormatter(r);var c=l.yLbFormatter(e.w.globals.series[n][o]),h='<span class="value start-value">\n '.concat(s,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(r,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(i||"")+'</span></div><div> <span class="category">'+a+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[n].type||"rangeBar"===e.w.config.series[n].type?h:"<span>".concat(c,"</span>"):h)+" </div></div>"},I=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),y.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),r(r({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,a=t.dataPointIndex,s=t.w,r=function(){var e=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-e};return s.globals.comboCharts?"rangeBar"===s.config.series[i].type||"rangeArea"===s.config.series[i].type?r():e:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=H(r(r({},e),{},{isTimeline:!0})),i=t.color,a=t.seriesName,s=t.ylabel,n=t.startVal,o=t.endVal;return O(r(r({},e),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(e):function(e){var t=H(e),i=t.color,a=t.seriesName,s=t.ylabel,n=t.start,o=t.end;return O(r(r({},e),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,i;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(i=e.plotOptions.bar)&&void 0!==i&&i.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=H(e),i=t.color,a=t.seriesName,s=t.ylabel,n=t.start,o=t.end;return O(r(r({},e),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(e)}}}}},{key:"brush",value:function(e){return y.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return r(r({},e),{},{plotOptions:r(r({},e.plotOptions),{},{bar:r(r({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return y.isNumber(e)?Math.floor(e):e};var a=e.xaxis.labels.formatter,s=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(s=i.map((function(e){return Array.isArray(e)?e:String(e)}))),s&&s.length&&(e.xaxis.labels.formatter=function(e){return y.isNumber(e)?a(s[Math.floor(e)-1]):a(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,i,a,s){var r=e.globals.seriesCandleO[t][i],n=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],l=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==s?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+r+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+n+"</span></div>"+(o?"<div>".concat(a[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),z=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,a=new T,s=new I(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),o={};if(i&&"object"===n(i)){var l,c,h,d,u,g,p,f,m={};m=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(m=s.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(m=s.stackedBars()),null!==(h=i.chart.brush)&&void 0!==h&&h.enabled&&(m=s.brush(m)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(u=d.bar)&&void 0!==u&&u.isDumbbell&&(i=s.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),(null!==(g=(i=this.checkForCatToNumericXAxis(this.chartType,m,i)).chart.sparkline)&&void 0!==g&&g.enabled||null!==(p=window.Apex.chart)&&void 0!==p&&null!==(f=p.sparkline)&&void 0!==f&&f.enabled)&&(m=s.sparkline(m)),o=y.extend(r,m)}var x=y.extend(o,window.Apex);return r=y.extend(x,i),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var a,s,r=new I(i),n=("bar"===e||"boxPlot"===e)&&(null===(a=i.plotOptions)||void 0===a||null===(s=a.bar)||void 0===s?void 0:s.horizontal),o="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return n||o||!l||"between"===c||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new T;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=y.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[y.extend(i.yAxis,e.yaxis)]:e.yaxis=y.extendArray(e.yaxis,i.yAxis);var a=!1;e.yaxis.forEach((function(e){e.logarithmic&&(a=!0)}));var s=e.series;return t&&!s&&(s=t.config.series),a&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map((function(t,a){if(t.name||(s[a].name="series-".concat(a+1)),e.yaxis[a])return e.yaxis[a].seriesName=s[a].name,e.yaxis[a];var r=y.extend(i.yAxis,e.yaxis[0]);return r.show=!1,r}))),a&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new T;return e.annotations.yaxis=y.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new T;return e.annotations.xaxis=y.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new T;return e.annotations.points=y.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.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"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),N=function(){function e(){o(this,e)}return c(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!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.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=y.extend({},e),t.initialSeries=y.clone(e.series),t.lastXAxis=y.clone(t.initialConfig.xaxis),t.lastYAxis=y.clone(t.initialConfig.yaxis),t}}]),e}(),R=function(){function e(t){o(this,e),this.opts=t}return c(e,[{key:"init",value:function(){var e=new z(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new N).init(e)}}}]),e}(),B=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return c(e,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,a=parseInt(t.globals.gridWidth,10),s=parseInt(t.globals.gridHeight,10),r=a>s?a:s,n=e.image,o=0,l=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=r+1,l=r):(o=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");S.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var h=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",n),S.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,i=t.config.chart.type;return("bar"===i||"rangeBar"===i)&&t.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var n=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(n=t.globals.seriesColors[this.seriesIndex]),"function"==typeof n&&(n=n({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;e.color&&(n=e.color),n||(n="#fff",console.warn("undefined color - ApexCharts"));var c=n;if(-1===n.indexOf("rgb")?n.length<9&&(c=y.hexToRgba(n,l)):n.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(n)),e.opacity&&(l=e.opacity),"pattern"===o&&(a=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:a,fillColor:n,fillOpacity:l,defaultColor:c})),"gradient"===o&&(s=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:n,fillOpacity:l,i:this.seriesIndex})),"image"===o){var h=r.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?e.seriesNumber<h.length?h[e.seriesNumber]:h[0]:h,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d)}),i="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d,")")}else i="gradient"===o?s:"pattern"===o?a:c;return e.solid&&(i=c),i}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,a=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors),void 0!==i.fillColors&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,i=(e.patternFill,e.fillColor),a=e.fillOpacity,s=e.defaultColor,r=this.w.config.fill;t&&(r=t);var n=this.opts,o=new S(this.ctx),l=Array.isArray(r.pattern.strokeWidth)?r.pattern.strokeWidth[this.seriesIndex]:r.pattern.strokeWidth,c=i;return Array.isArray(r.pattern.style)?void 0!==r.pattern.style[n.seriesNumber]?o.drawPattern(r.pattern.style[n.seriesNumber],r.pattern.width,r.pattern.height,c,l,a):s:o.drawPattern(r.pattern.style,r.pattern.width,r.pattern.height,c,l,a)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,i=e.fillOpacity,a=e.fillConfig,s=e.i,n=this.w.config.fill;a&&(n=r(r({},n),a));var o,l=this.opts,c=new S(this.ctx),h=new y,d=n.gradient.type,u=t,g=void 0===n.gradient.opacityFrom?i:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[s]:n.gradient.opacityFrom;u.indexOf("rgba")>-1&&(g=y.getOpacityFromRGBA(u));var p=void 0===n.gradient.opacityTo?i:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[s]:n.gradient.opacityTo;if(void 0===n.gradient.gradientToColors||0===n.gradient.gradientToColors.length)o="dark"===n.gradient.shade?h.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t):h.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t);else if(n.gradient.gradientToColors[l.seriesNumber]){var f=n.gradient.gradientToColors[l.seriesNumber];o=f,f.indexOf("rgba")>-1&&(p=y.getOpacityFromRGBA(f))}else o=t;if(n.gradient.gradientFrom&&(u=n.gradient.gradientFrom),n.gradient.gradientTo&&(o=n.gradient.gradientTo),n.gradient.inverseColors){var m=u;u=o,o=m}return u.indexOf("rgb")>-1&&(u=y.rgb2hex(u)),o.indexOf("rgb")>-1&&(o=y.rgb2hex(o)),c.drawGradient(d,u,o,g,p,l.size,n.gradient.stops,n.gradient.colorStops,s)}}]),e}(),X=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,i,a){var s,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=this.w,o=t,l=e,c=null,h=new S(this.ctx),d=n.config.markers.discrete&&n.config.markers.discrete.length;if((n.globals.markers.size[t]>0||r||d)&&(c=h.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(l.x))for(var u=0;u<l.x.length;u++){var g=i;1===i&&0===u&&(g=0),1===i&&1===u&&(g=1);var p="apexcharts-marker";if("line"!==n.config.chart.type&&"area"!==n.config.chart.type||n.globals.comboCharts||n.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(n.config.markers.size)?n.globals.markers.size[t]>0:n.config.markers.size>0)||r||d){y.isNumber(l.y[u])?p+=" w".concat(y.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:p,seriesIndex:t,dataPointIndex:g});n.config.series[o].data[g]&&(n.config.series[o].data[g].fillColor&&(f.pointFillColor=n.config.series[o].data[g].fillColor),n.config.series[o].data[g].strokeColor&&(f.pointStrokeColor=n.config.series[o].data[g].strokeColor)),a&&(f.pSize=a),(l.x[u]<0||l.x[u]>n.globals.gridWidth||l.y[u]<-n.globals.markers.largestSize||l.y[u]>n.globals.gridHeight+n.globals.markers.largestSize)&&(f.pSize=0),(s=h.drawMarker(l.x[u],l.y[u],f)).attr("rel",g),s.attr("j",g),s.attr("index",t),s.node.setAttribute("default-marker-size",f.pSize),new w(this.ctx).setSelectionFilter(s,t,g),this.addEvents(s),c&&c.add(s)}else void 0===n.globals.pointsArray[t]&&(n.globals.pointsArray[t]=[]),n.globals.pointsArray[t].push([l.x[u],l.y[u]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,a=e.dataPointIndex,s=void 0===a?null:a,r=e.finishRadius,n=void 0===r?null:r,o=this.w,l=this.getMarkerStyle(i),c=o.globals.markers.size[i],h=o.config.markers;return null!==s&&h.discrete.length&&h.discrete.map((function(e){e.seriesIndex===i&&e.dataPointIndex===s&&(l.pointStrokeColor=e.strokeColor,l.pointFillColor=e.fillColor,c=e.size,l.pointShape=e.shape)})),{pSize:null===n?c:n,pRadius:h.radius,width:Array.isArray(h.width)?h.width[i]:h.width,height:Array.isArray(h.height)?h.height[i]:h.height,pointStrokeWidth:Array.isArray(h.strokeWidth)?h.strokeWidth[i]:h.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(h.shape)?h.shape[i]:h.shape),class:t,pointStrokeOpacity:Array.isArray(h.strokeOpacity)?h.strokeOpacity[i]:h.strokeOpacity,pointStrokeDashArray:Array.isArray(h.strokeDashArray)?h.strokeDashArray[i]:h.strokeDashArray,pointFillOpacity:Array.isArray(h.fillOpacity)?h.fillOpacity[i]:h.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new S(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[e]:a,pointFillColor:Array.isArray(i)?i[e]:i}}}]),e}(),Y=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return c(e,[{key:"draw",value:function(e,t,i){var a=this.w,s=new S(this.ctx),r=i.realIndex,n=i.pointsPos,o=i.zRatio,l=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(n.x))for(var h=0;h<n.x.length;h++){var d=t+1,u=!0;0===t&&0===h&&(d=0),0===t&&1===h&&(d=1);var g=0,p=a.globals.markers.size[r];if(o!==1/0){var f=a.config.plotOptions.bubble;p=a.globals.seriesZ[r][d],f.zScaling&&(p/=o),f.minBubbleRadius&&p<f.minBubbleRadius&&(p=f.minBubbleRadius),f.maxBubbleRadius&&p>f.maxBubbleRadius&&(p=f.maxBubbleRadius)}a.config.chart.animations.enabled||(g=p);var m=n.x[h],x=n.y[h];if(g=g||0,null!==x&&void 0!==a.globals.series[r][d]||(u=!1),u){var b=this.drawPoint(m,x,g,p,r,d,t);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(e,t,i,a,s,r,n){var o=this.w,l=s,c=new C(this.ctx),h=new w(this.ctx),d=new B(this.ctx),u=new X(this.ctx),g=new S(this.ctx),p=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[s]&&"bubble"===o.config.series[s].type?a:null});a=p.pSize;var f,m=d.fillPath({seriesNumber:s,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[s][n]});if("circle"===p.shape?f=g.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(f=g.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),o.config.series[l].data[r]&&o.config.series[l].data[r].fillColor&&(m=o.config.series[l].data[r].fillColor),f.attr({x:e-p.width/2-p.pointStrokeWidth/2,y:t-p.height/2-p.pointStrokeWidth/2,cx:e,cy:t,fill:m,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:a,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var x=o.config.chart.dropShadow;h.dropShadow(f,x,s)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var b=o.config.chart.animations.speed;c.animateMarker(f,0,"circle"===p.shape?a:{width:p.width,height:p.height},b,o.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(f)}),100)}))}if(o.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var v,y,k,E,A=o.config.chart.animations.dynamicAnimation.speed;null!=(E=o.globals.previousPaths[s]&&o.globals.previousPaths[s][n])&&(v=E.x,y=E.y,k=void 0!==E.r?E.r:a);for(var P=0;P<o.globals.collapsedSeries.length;P++)o.globals.collapsedSeries[P].index===s&&(A=1,a=0);0===e&&0===t&&(a=0),c.animateCircle(f,{cx:v,cy:y,r:k},{cx:e,cy:t,r:a},A,o.globals.easing)}else f.attr({r:a});return f.attr({rel:r,j:r,index:s,"default-marker-size":a}),h.setSelectionFilter(f,s,r),u.addEvents(f),f.node.classList.add("apexcharts-marker"),f}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),V=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"dataLabelsCorrection",value:function(e,t,i,a,s,r,n){var o=this.w,l=!1,c=new S(this.ctx).getTextRects(i,n),h=c.width,d=c.height;t<0&&(t=0),t>o.globals.gridHeight+d&&(t=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[a]&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:e,y:t,width:h,height:d});var u=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][u]){var p=o.globals.dataLabelsRects[a][g];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+h<p.x)&&(l=!0)}return(0===s||r)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,i=e.type,a=e.pos,s=e.i,r=e.j,n=e.isRangeStart,o=e.strokeWidth,l=void 0===o?2:o,c=this.w,h=new S(this.ctx),d=c.config.dataLabels,u=0,g=0,p=r,f=null;if(!d.enabled||!Array.isArray(a.x))return f;f=h.group({class:"apexcharts-data-labels"});for(var m=0;m<a.x.length;m++)if(u=a.x[m]+d.offsetX,g=a.y[m]+d.offsetY+l,!isNaN(u)){1===r&&0===m&&(p=0),1===r&&1===m&&(p=1);var x=c.globals.series[s][p];"rangeArea"===i&&(x=n?c.globals.seriesRangeStart[s][p]:c.globals.seriesRangeEnd[s][p]);var b="",v=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:s,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(b=v(x=c.globals.seriesZ[s][p]),g=a.y[m],g=new Y(this.ctx).centerTextInBubble(g,s,p).y):void 0!==x&&(b=v(x)),this.plotDataLabelsText({x:u,y:g,text:b,i:s,j:p,parent:f,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels})}return f}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new S(this.ctx),a=e.x,s=e.y,r=e.i,n=e.j,o=e.text,l=e.textAnchor,c=e.fontSize,h=e.parent,d=e.dataLabelsConfig,u=e.color,g=e.alwaysDrawDataLabel,p=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(r)<0)){var f={x:a,y:s,drawnextLabel:!0,textRects:null};p&&(f=this.dataLabelsCorrection(a,s,o,r,n,g,parseInt(d.style.fontSize,10))),t.globals.zoomed||(a=f.x,s=f.y),f.textRects&&(a<-20-f.textRects.width||a>t.globals.gridWidth+f.textRects.width+30)&&(o="");var m=t.globals.dataLabels.style.colors[r];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(m=t.globals.dataLabels.style.colors[n]),"function"==typeof m&&(m=m({series:t.globals.series,seriesIndex:r,dataPointIndex:n,w:t})),u&&(m=u);var x=d.offsetX,b=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(x=0,b=0),f.drawnextLabel){var v=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+x,y:s+b,foreColor:m,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(v.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var y=d.dropShadow;new w(this.ctx).dropShadow(v,y)}h.add(v),void 0===t.globals.lastDrawnDataLabelsIndexes[r]&&(t.globals.lastDrawnDataLabelsIndexes[r]=[]),t.globals.lastDrawnDataLabelsIndexes[r].push(n)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,n=t.width,o=t.height,l=new S(this.ctx).drawRect(t.x-s,t.y-r/2,n+2*s,o+r,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new w(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var a=t[i],s=a.getBBox(),r=null;if(s.width&&s.height&&(r=this.addBackgroundToDataLabel(a,s)),r){a.parentNode.insertBefore(r.node,a);var n=a.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?r.attr({fill:n}):r.animate().attr({fill:n}),a.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),a=0;a<t.length;a++)i&&i.insertBefore(t[a],i.nextSibling)}}]),e}(),W=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return c(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(y.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function a(i){for(var a=0;a<i.length;a++)i[a].index===t&&e.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=y.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,e&&(t&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var s=parseInt(t.getAttribute("rel"),10)-1,r=null,n=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var o=0;o<a.length;o++)a[o].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==n&&n.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var l=0;l<a.length;l++)a[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,a=this.w,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),r=function(e){for(var t=0;t<s.length;t++)s[t].classList[e](i.legendInactiveClass)};if("mousemove"===e.type){var n=parseInt(t.getAttribute("rel"),10)-1;r("add"),function(e){for(var t=0;t<s.length;t++){var a=parseInt(s[t].getAttribute("val"),10);a>=e.from&&a<=e.to&&s[t].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[n])}else"mouseout"===e.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(e,a){return e.data&&e.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===t.length||t.length&&t.indexOf(i.config.series[a].type)>-1)?a:-1})),r="asc"===e?0:s.length-1;"asc"===e?r<s.length:r>=0;"asc"===e?r++:r--)if(-1!==s[r]){a=s[r];break}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;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");r.paths.push({d:o})}e.globals.previousPaths.push(r)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(i){for(var a,s=(a=i,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(a,"-series .apexcharts-series"))),r=0;r<s.length;r++)t(s,r,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(t){for(var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),a=[],s=function(e){var t=function(t){return i[e].getAttribute(t)},s={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};a.push({rect:s,color:i[e].getAttribute("color")})},r=0;r<i.length;r++)s(r);e.globals.previousPaths.push(a)},s=0;s<i.length;s++)a(s);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(i.length>0)for(var a=0;a<i.length;a++){for(var s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),r=[],n=0;n<s.length;n++)r.push({x:s[n].getAttribute("cx"),y:s[n].getAttribute("cy"),r:s[n].getAttribute("r")});t.globals.previousPaths.push(r)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new S(this.ctx),a=e.globals.svgWidth/2,s=e.globals.svgHeight/2,r="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(a=10,r="start"):"right"===t.align&&(a=e.globals.svgWidth-10,r="end"),"top"===t.verticalAlign?s=50:"bottom"===t.verticalAlign&&(s=e.globals.svgHeight-50),a+=t.offsetX,s=s+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var n=i.drawText({x:a,y:s,text:t.text,textAnchor:r,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(n)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(0===e[i].length)for(var a=0;a<e[t.globals.maxValsInArrayIndex].length;a++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),j=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new k(this.ctx)}return c(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new W(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new W(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type,r=0;r<e[t].data.length;r++)if(void 0!==e[t].data[r][1]&&(Array.isArray(e[t].data[r][1])&&4===e[t].data[r][1].length&&!s?this.twoDSeries.push(y.parseNumber(e[t].data[r][1][3])):e[t].data[r].length>=5?this.twoDSeries.push(y.parseNumber(e[t].data[r][4])):this.twoDSeries.push(y.parseNumber(e[t].data[r][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var n=new Date(e[t].data[r][0]);n=new Date(n).getTime(),this.twoDSeriesX.push(n)}else this.twoDSeriesX.push(e[t].data[r][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,a=this.w.globals,s=new F(this.ctx),r=t;a.collapsedSeriesIndices.indexOf(t)>-1&&(r=this.activeSeriesIndex);for(var n=0;n<e[t].data.length;n++)void 0!==e[t].data[n].y&&(Array.isArray(e[t].data[n].y)?this.twoDSeries.push(y.parseNumber(e[t].data[n].y[e[t].data[n].y.length-1])):this.twoDSeries.push(y.parseNumber(e[t].data[n].y))),void 0!==e[t].data[n].goals&&Array.isArray(e[t].data[n].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[n].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[r].data.length;o++){var l="string"==typeof e[r].data[o].x,c=Array.isArray(e[r].data[o].x),h=!c&&!!s.isValidDate(e[r].data[o].x);if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=a.isBarHorizontal&&a.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[r].data[o].x),isNaN(e[r].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[r].data[o].x||(a.isXNumeric=!0)):this.twoDSeriesX.push(s.parseDate(e[r].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(s.parseDate(e[r].data[o].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[r].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[r].data[o].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[r].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var u=0;u<e[t].data.length;u++)this.threeDSeries.push(e[t].data[u].z);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",e,t)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRange.push(a.rangeUniques),i.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,i){for(var a=0;a<e.y.length;a++)if(i!==a){var s=t.y1,r=t.y2,n=e.y[a].y1;s<=e.y[a].y2&&n<=r&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[a].rangeName)<0&&e.overlaps.push(e.y[a].rangeName))}}))}))})),a}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=a.o,i.seriesCandleH[t]=a.h,i.seriesCandleM[t]=a.m,i.seriesCandleL[t]=a.l,i.seriesCandleC[t]=a.c,a}},{key:"handleRangeDataFormat",value:function(e,t,i){var a=[],s=[],r=t[i].data.filter((function(e,t,i){return t===i.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var n=0;n<t[i].data.length;n++)Array.isArray(t[i].data[n])?(a.push(t[i].data[n][1][0]),s.push(t[i].data[n][1][1])):(a.push(t[i].data[n]),s.push(t[i].data[n]));else if("xy"===e)for(var o=function(e){var n=Array.isArray(t[i].data[e].y),o=y.randomId(),l=t[i].data[e].x,c={y1:n?t[i].data[e].y[0]:t[i].data[e].y,y2:n?t[i].data[e].y[1]:t[i].data[e].y,rangeName:o};t[i].data[e].rangeName=o;var h=r.findIndex((function(e){return e.x===l}));r[h].y.push(c),a.push(c.y1),s.push(c.y2)},l=0;l<t[i].data.length;l++)o(l);return{start:a,end:s,rangeUniques:r}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var a=this.w,s="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type,r=[],n=[],o=[],l=[],c=[];if("array"===e)if(s&&6===t[i].data[0].length||!s&&5===t[i].data[0].length)for(var h=0;h<t[i].data.length;h++)r.push(t[i].data[h][1]),n.push(t[i].data[h][2]),s?(o.push(t[i].data[h][3]),l.push(t[i].data[h][4]),c.push(t[i].data[h][5])):(l.push(t[i].data[h][3]),c.push(t[i].data[h][4]));else for(var d=0;d<t[i].data.length;d++)Array.isArray(t[i].data[d][1])&&(r.push(t[i].data[d][1][0]),n.push(t[i].data[d][1][1]),s?(o.push(t[i].data[d][1][2]),l.push(t[i].data[d][1][3]),c.push(t[i].data[d][1][4])):(l.push(t[i].data[d][1][2]),c.push(t[i].data[d][1][3])));else if("xy"===e)for(var u=0;u<t[i].data.length;u++)Array.isArray(t[i].data[u].y)&&(r.push(t[i].data[u].y[0]),n.push(t[i].data[u].y[1]),s?(o.push(t[i].data[u].y[2]),l.push(t[i].data[u].y[3]),c.push(t[i].data[u].y[4])):(l.push(t[i].data[u].y[2]),c.push(t[i].data[u].y[3])));return{o:r,h:n,m:o,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t,i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,n=new F(a),o=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===s.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),r.hasSeriesGroups=null===(t=e[0])||void 0===t?void 0:t.group,r.hasSeriesGroups){var l=[],c=x(new Set(e.map((function(e){return e.group}))));e.forEach((function(e,t){var i=c.indexOf(e.group);l[i]||(l[i]=[]),l[i].push(e.name)})),r.seriesGroups=l}for(var h=function(){for(var e=0;e<o.length;e++)if("string"==typeof o[e]){if(!n.isValidDate(o[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(n.parseDate(o[e]))}else i.twoDSeriesX.push(o[e])},d=0;d<e.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[d].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type&&"rangeBar"!==e[d].type&&"rangeArea"!==e[d].type||(r.isRangeData=!0,"rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type||this.handleRangeData(e,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,d):this.isFormatXY()&&this.handleFormatXY(e,d),"candlestick"!==s.chart.type&&"candlestick"!==e[d].type&&"boxPlot"!==s.chart.type&&"boxPlot"!==e[d].type||this.handleCandleStickBoxData(e,d),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===s.xaxis.type?(r.isXNumeric=!0,h(),r.seriesX.push(this.twoDSeriesX)):"numeric"===s.xaxis.type&&(r.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var u=e[d].data.map((function(e){return y.parseNumber(e)}));r.series.push(u)}r.seriesZ.push(this.threeDSeries),void 0!==e[d].name?r.seriesNames.push(e[d].name):r.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==e[d].color?r.seriesColors.push(e[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var a=0;a<t.series.length;a++)void 0===t.seriesNames[a]&&t.seriesNames.push("series-"+(a+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,i=this.w.globals;t.xaxis.categories.length>0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map((function(e){e.forEach((function(e){i.labels.indexOf(e.x)<0&&e.x&&i.labels.push(e.x)}))})),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new I(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,a=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var s=i.series.map((function(e,t){return e.data.filter((function(e,t,i){return i.findIndex((function(t){return t.x===e.x}))===t}))})),r=s.reduce((function(e,t,i,a){return a[e].length>t.length?e:i}),0),n=0;n<s[r].length;n++)a.push(n+1);else for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++)a.push(o+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(a);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===a.length){a=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(a)}t.labels=a,i.xaxis.convertedCatToNumeric&&(t.categoryLabels=a.map((function(e){return i.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,i=t.config,a=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),i.chart.stacked){var s=new W(this.ctx);a.series=s.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&(a.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),a.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var r=this.coreUtils.getCategoryLabels(a.labels),n=0;n<r.length;n++)if(Array.isArray(r[n])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map((function(i,a){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return i.index}))}}]),e}(),G=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getLabel",value:function(e,t,i,a){var s,r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,h=void 0===e[a]?"":e[a],d=h,u=c.globals.xLabelFormatter,g=c.config.xaxis.labels.formatter,p=!1,f=new D(this.ctx),m=h;l&&(d=f.xLabelFormat(u,h,m,{i:a,dateFormatter:new F(this.ctx).formatDate,w:c}),void 0!==g&&(d=g(h,e[a],{i:a,dateFormatter:new F(this.ctx).formatDate,w:c}))),t.length>0?(s=t[a].unit,r=null,t.forEach((function(e){"month"===e.unit?r="year":"day"===e.unit?r="month":"hour"===e.unit?r="day":"minute"===e.unit&&(r="hour")})),p=r===s,i=t[a].position,d=t[a].value):"datetime"===c.config.xaxis.type&&void 0===g&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var x,b=new S(this.ctx);x=c.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(o,10));var v=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||n.indexOf(d)>=0&&v)&&(d=""),{x:i,text:d,textRect:x,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||e%Math.round(i/(s+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,a,s){var r=this.w;if(0===e&&r.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&r.globals.skipLastTimelinelabel&&(t.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var n=s[s.length-1];t.x<n.textRect.width/(r.globals.rotateXLabels?Math.abs(r.config.xaxis.labels.rotate)/12:1.01)+n.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=new k(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&i.isSeriesNull(e)&&-1===t.globals.collapsedSeriesIndices.indexOf(e)}},{key:"getYAxisForeColor",value:function(e,t){var i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,i,a,s,r,n){var o=this.w,l=new S(this.ctx),c=o.globals.translateY;if(a.show&&t>0){!0===o.config.yaxis[s].opposite&&(e+=a.width);for(var h=t;h>=0;h--){var d=c+t/10+o.config.yaxis[s].labels.offsetY-1;o.globals.isBarHorizontal&&(d=r*h),"heatmap"===o.config.chart.type&&(d+=r/2);var u=l.drawLine(e+i.offsetX-a.width+a.offsetX,d+a.offsetY,e+i.offsetX+a.offsetX,d+a.offsetY,a.color);n.add(u),c+=r}}}}]),e}(),Z=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(e){if(!y.isIE11())return e.replace(/ /g," ");var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2==++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(i){var a=t.w,s=e?e.scale||e.width/a.globals.svgWidth:1;t.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var n="transparent"===a.config.chart.background?"#fff":a.config.chart.background,o=r.getContext("2d");o.fillStyle=n,o.fillRect(0,0,r.width*s,r.height*s);var l=t.getSvgString(s);if(window.canvg&&y.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=r.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(o.drawImage(u,0,0),r.msToBlob){var e=r.msToBlob();i({blob:e})}else{var t=r.toDataURL("image/png");i({imgURI:t})}},u.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var i=t.imgURI,a=t.blob;a?navigator.msSaveOrOpenBlob(a,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,a=e.fileName,s=e.columnDelimiter,r=void 0===s?",":s,n=e.lineDelimiter,o=void 0===n?"\n":n,l=this.w;i||(i=l.config.series);var c,h,d=[],u=[],g="",p=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),f=function(e){return"datetime"===l.config.xaxis.type&&String(e).length>=10},m=Math.max.apply(Math,x(i.map((function(e){return e.data?e.data.length:0})))),b=new j(this.ctx),v=new G(this.ctx),C=function(e){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var a=l.globals.yLabelFormatters[0],s=new W(t.ctx).getActiveConfigSeriesIndex();i=a(l.globals.labels[e],{seriesIndex:s,dataPointIndex:e,w:l})}else i=v.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[e]:l.config.labels.length&&(i=l.config.labels[e]))}else i=l.config.labels[e];return Array.isArray(i)&&(i=i.join(" ")),y.isNumber(i)?i:i.split(r).join("")};d.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(d.push("minimum"),d.push("q1"),d.push("median"),d.push("q3"),d.push("maximum")):"candlestick"===l.config.chart.type?(d.push("open"),d.push("high"),d.push("low"),d.push("close")):"rangeBar"===l.config.chart.type?(d.push("minimum"),d.push("maximum")):i.map((function(e,t){var i=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&d.push(i.split(r).join("")?i.split(r).join(""):"series-".concat(t))})),l.globals.axisCharts||(d.push(l.config.chart.toolbar.export.csv.headerValue),u.push(d.join(r))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?i.map((function(e,t){l.globals.axisCharts?function(e,t){if(d.length&&0===t&&u.push(d.join(r)),e.data){e.data=e.data.length&&e.data||x(Array(m)).map((function(){return""}));for(var a=0;a<e.data.length;a++){d=[];var s=C(a);if(s||(b.isFormatXY()?s=i[t].data[a].x:b.isFormat2DArray()&&(s=i[t].data[a]?i[t].data[a][0]:"")),0===t){d.push(f(s)?l.config.chart.toolbar.export.csv.dateFormatter(s):y.isNumber(s)?s:s.split(r).join(""));for(var n=0;n<l.globals.series.length;n++){var o;b.isFormatXY()?d.push(null===(o=i[n].data[a])||void 0===o?void 0:o.y):d.push(p[n][a])}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][a]),d.push(l.globals.seriesCandleH[t][a]),d.push(l.globals.seriesCandleL[t][a]),d.push(l.globals.seriesCandleC[t][a])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][a]),d.push(l.globals.seriesCandleH[t][a]),d.push(l.globals.seriesCandleM[t][a]),d.push(l.globals.seriesCandleL[t][a]),d.push(l.globals.seriesCandleC[t][a])),"rangeBar"===l.config.chart.type&&(d.pop(),d.push(l.globals.seriesRangeStart[t][a]),d.push(l.globals.seriesRangeEnd[t][a])),d.length&&u.push(d.join(r))}}}(e,t):((d=[]).push(l.globals.labels[t].split(r).join("")),d.push(p[t]),u.push(d.join(r)))})):(c=new Set,h={},i.forEach((function(e,t){null==e||e.data.forEach((function(e){var a,s;if(b.isFormatXY())a=e.x,s=e.y;else{if(!b.isFormat2DArray())return;a=e[0],s=e[1]}h[a]||(h[a]=Array(i.length).fill("")),h[a][t]=s,c.add(a)}))})),d.length&&u.push(d.join(r)),Array.from(c).sort().forEach((function(e){u.push([f(e)&&"datetime"===l.config.xaxis.type?l.config.chart.toolbar.export.csv.dateFormatter(e):y.isNumber(e)?e:e.split(r).join(""),h[e].join(r)])}))),g+=u.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+g),a||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,i){var a=document.createElement("a");a.href=e,a.download=(t||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),e}(),U=function(){function e(t,i){o(this,e),this.ctx=t,this.elgrid=i,this.w=t.w;var a=this.w;this.axesUtils=new G(t),this.xaxisLabels=a.globals.labels.slice(),a.globals.timescaleLabels.length>0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===a.config.xaxis.position?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return c(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new S(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r<this.xaxisLabels.length;r++)s.push(this.xaxisLabels[r]);if(this.drawXAxisLabelAndGroup(!0,t,a,s,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var n=e.globals.groups;s=[];for(var o=0;o<n.length;o++)s.push(n[o].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,a,s,!1,(function(e,t){return n[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),h=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(h),i.add(c)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,u=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(u):i.add(u)}return i}},{key:"drawXAxisLabelAndGroup",value:function(e,t,i,a,s,r){var n,o=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],h=[],d=this.w,u=l.xaxisFontSize||this.xaxisFontSize,g=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,x=d.globals.padHorizontal,b=a.length,v="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===v&&b>v&&(v=b),s){var y=v>1?v-1:v;n=d.globals.gridWidth/Math.min(y,b-1),x=x+r(0,n)/2+d.config.xaxis.labels.offsetX}else n=d.globals.gridWidth/v,x=x+r(0,n)+d.config.xaxis.labels.offsetX;for(var C=function(s){var l=x-r(s,n)/2+d.config.xaxis.labels.offsetX;0===s&&1===b&&n/2===x&&1===v&&(l=d.globals.gridWidth/2);var y=o.axesUtils.getLabel(a,d.globals.timescaleLabels,l,s,c,u,e),C=28;if(d.globals.rotateXLabels&&e&&(C=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(C+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(C=C+parseFloat(u)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(s,y,b):o.axesUtils.checkForOverflowingLabels(s,y,b,c,h),d.config.xaxis.labels.show){var w=t.drawText({x:y.x,y:o.offY+d.config.xaxis.labels.offsetY+C-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:u,fontFamily:g,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+s-1]:p[s]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(i.add(w),w.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:s});d.config.chart.events.xAxisLabelClick(e,o.ctx,t)}})),e){var S=document.createElementNS(d.globals.SVGNS,"title");S.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,w.node.appendChild(S),""!==y.text&&(c.push(y.text),h.push(y))}}s<b-1&&(x+=r(s+1,n))},w=0;w<=b-1;w++)C(w)}},{key:"drawXaxisInversed",value:function(e){var t,i,a=this,s=this.w,r=new S(this.ctx),n=s.config.yaxis[0].opposite?s.globals.translateYAxisX[e]:0,o=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+n+", 0)"});o.add(l);var c=[];if(s.config.yaxis[e].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);t=s.globals.gridHeight/c.length,i=-t/2.2;var d=s.globals.yLabelFormatters[0],u=s.config.yaxis[0].labels;if(u.show)for(var g=function(n){var o=void 0===c[n]?"":c[n];o=d(o,{seriesIndex:e,dataPointIndex:n,w:s});var h=a.axesUtils.getYAxisForeColor(u.style.colors,e),g=0;Array.isArray(o)&&(g=o.length/2*parseInt(u.style.fontSize,10));var p=u.offsetX-15,f="end";a.yaxis.opposite&&(f="start"),"left"===s.config.yaxis[0].labels.align?(p=u.offsetX,f="start"):"center"===s.config.yaxis[0].labels.align?(p=u.offsetX,f="middle"):"right"===s.config.yaxis[0].labels.align&&(f="end");var m=r.drawText({x:p,y:i+t+u.offsetY-g,text:o,textAnchor:f,foreColor:Array.isArray(h)?h[n]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass,maxWidth:u.maxWidth});l.add(m),m.on("click",(function(e){if("function"==typeof s.config.chart.events.xAxisLabelClick){var t=Object.assign({},s,{labelIndex:n});s.config.chart.events.xAxisLabelClick(e,a.ctx,t)}}));var x=document.createElementNS(s.globals.SVGNS,"title");if(x.textContent=Array.isArray(o)?o.join(" "):o,m.node.appendChild(x),0!==s.config.yaxis[e].labels.rotate){var b=r.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(s.config.yaxis[e].labels.rotate," 0 ").concat(b.y,")"))}i+=t},p=0;p<=c.length-1;p++)g(p);if(void 0!==s.config.yaxis[0].title.text){var f=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+n+", 0)"}),m=r.drawText({x:s.config.yaxis[0].title.offsetX,y:s.globals.gridHeight/2+s.config.yaxis[0].title.offsetY,text:s.config.yaxis[0].title.text,textAnchor:"middle",foreColor:s.config.yaxis[0].title.style.color,fontSize:s.config.yaxis[0].title.style.fontSize,fontWeight:s.config.yaxis[0].title.style.fontWeight,fontFamily:s.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[0].title.style.cssClass});f.add(m),o.add(f)}var x=0;this.isCategoryBarHorizontal&&s.config.yaxis[0].opposite&&(x=s.globals.gridWidth);var b=s.config.xaxis.axisBorder;if(b.show){var v=r.drawLine(s.globals.padHorizontal+b.offsetX+x,1+b.offsetY,s.globals.padHorizontal+b.offsetX+x,s.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&s.config.grid.show?this.elgrid.elGridBorders.add(v):o.add(v)}return s.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(x,c.length,s.config.yaxis[0].axisBorder,s.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t,i){var a=this.w,s=e;if(!(e<0||e-2>a.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+r+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(t=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var n=new S(this.ctx).drawLine(e+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(n),n.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,a=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var s=0;s<i;s++)a=this.xaxisLabels[s].position,t.push(a);else for(var r=i,n=0;n<r;n++){var o=r;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),a+=e.globals.gridWidth/o,t.push(a)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new S(this.ctx),i=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var n=0;n<a.length;n++){var o=t.rotateAroundCenter(a[n]);o.y=o.y-1,o.x=o.x+1,a[n].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),a[n].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=a[n].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(i){t.placeTextWithEllipsis(i,i.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var i=e.globals.gridWidth/(e.globals.labels.length+1),s=0;s<a.length;s++){var r=a[s].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(r,(function(e){t.placeTextWithEllipsis(e,e.textContent,i)}))}}();if(s.length>0){var c=s[s.length-1].getBBox(),h=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),h.x+h.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d<r.length;d++)t.placeTextWithEllipsis(r[d],r[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new G(t),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return c(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=new S(this.ctx);null===e&&(e=i.group({class:"apexcharts-grid"}));var a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),s=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(s),e.add(a),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new S(this.ctx),a=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var s=0;e.config.stroke.width.forEach((function(e){s=Math.max(s,e)})),a=s}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var r=e.config.chart.type,n=0,o=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(n=e.config.grid.padding.left,o=e.config.grid.padding.right,t.barPadForNumericAxis>n&&(n=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-a-n-2,2*-a-2,t.gridWidth+a+o+n+4,t.gridHeight+4*a+4,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,a=e.y1,s=e.x2,r=e.y2,n=e.xCount,o=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===n-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:a,x2:s,y2:r,xCount:n,parent:o});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var h=l.globals.groups;if(h){for(var d=0,u=0;d<t&&u<h.length;u++)d+=h[u].cols;d===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new U(this.ctx).drawXaxisTicks(i,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,i=e.x1,a=e.y1,s=e.x2,r=e.y2,n=e.xCount,o=e.parent,l=this.w,c=!1,h=o.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.config.grid.strokeDashArray,u=l.globals.barPadForNumericAxis;(0===a&&0===r||0===i&&0===s)&&(c=!0),a===l.globals.gridHeight&&r===l.globals.gridHeight&&(c=!0),!l.globals.isBarHorizontal||0!==t&&t!==n-1||(c=!0);var g=new S(this).drawLine(i-(h?u:0),a,s+(h?u:0),r,l.config.grid.borderColor,d);g.node.classList.add("apexcharts-gridline"),c&&l.config.grid.show?this.elGridBorders.add(g):o.add(g)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,a=e.y1,s=e.x2,r=e.y2,n=e.type,o=this.w,l=new S(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==n||"datetime"!==o.config.xaxis.type){var h=o.config.grid[n].colors[t],d=l.drawRect(i-("row"===n?c:0),a,s+("row"===n?2*c:0),r,0,h,o.config.grid[n].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(n))}}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,a=e.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var r,n=s.globals.padHorizontal,o=s.globals.gridHeight;s.globals.timescaleLabels.length?function(e){for(var a=e.xC,s=e.x1,r=e.y1,n=e.x2,o=e.y2,l=0;l<a;l++)s=t.xaxisLabels[l].position,n=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:s,y1:r,x2:n,y2:o,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:n,y1:0,x2:r,y2:o}):(s.globals.isXNumeric&&(i=s.globals.xAxisScale.result.length),function(e){for(var a=e.xC,r=e.x1,n=e.y1,o=e.x2,l=e.y2,c=0;c<a+(s.globals.isXNumeric?0:1);c++)0===c&&1===a&&1===s.globals.dataPoints&&(o=r=s.globals.gridWidth/2),t._drawGridLines({i:c,x1:r,y1:n,x2:o,y2:l,xCount:i,parent:t.elgridLinesV}),o=r+=s.globals.gridWidth/(s.globals.isXNumeric?a-1:a)}({xC:i,x1:n,y1:0,x2:r,y2:o}))}if(s.config.grid.yaxis.lines.show){var l=0,c=0,h=s.globals.gridWidth,d=a+1;this.isRangeBar&&(d=s.globals.labels.length);for(var u=0;u<d+(this.isRangeBar?1:0);u++)this._drawGridLine({i:u,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=s.globals.gridHeight/(this.isRangeBar?d:a)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var a,s=i.globals.padHorizontal,r=i.globals.gridHeight,n=0;n<t+1;n++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:n,xCount:t+1,x1:s,y1:0,x2:a,y2:r,parent:this.elgridLinesV}),new U(this.ctx).drawXaxisTicks(s,0,i.globals.dom.elGraphical),a=s=s+i.globals.gridWidth/t+.3;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({i:h,xCount:i.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e,t,i,a=this.w,s=new S(this.ctx);this.elg=s.group({class:"apexcharts-grid"}),this.elgridLinesH=s.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=s.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=s.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),a.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r,n=a.globals.yAxisScale.length?a.globals.yAxisScale[0].result.length-1:5,o=0;o<a.globals.series.length&&(void 0!==a.globals.yAxisScale[o]&&(n=a.globals.yAxisScale[o].result.length-1),!(n>2));o++);return!a.globals.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(r--,n=a.globals.labels.length,a.config.xaxis.tickAmount&&a.config.xaxis.labels.formatter&&(r=a.config.xaxis.tickAmount),(null===(e=a.globals.yAxisScale)||void 0===e||null===(t=e[0])||void 0===t||null===(i=t.result)||void 0===i?void 0:i.length)>0&&"datetime"!==a.config.xaxis.type&&(r=a.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:r,tickAmount:n})):(r=n,n=a.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:n})),this.drawGridBands(r,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:a.globals.gridWidth/r}}},{key:"drawGridBands",value:function(e,t){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/t,r=i.globals.gridWidth,n=0,o=0;n<t;n++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/t;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?e:e-1,c=i.globals.padHorizontal,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,g=0;u<e;u++,g++)g>=i.config.grid.column.colors.length&&(g=0),this._drawGridBandRect({c:g,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),e}(),$=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"niceScale",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,r=this.w,n=Math.abs(t-e);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,a,n))&&(i=r.globals.dataPoints-1),e===Number.MIN_VALUE&&0===t||!y.isNumber(e)&&!y.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)return e=0,t=i,this.linearScale(e,t,i,a,r.config.yaxis[a].stepSize);e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=0===e?0:e-.5,t=0===t?2:t+.5);var o=[];n<1&&s&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[a].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[a].type||r.globals.isRangeData)&&(t*=1.01);var l=i+1;l<2?l=2:l>2&&(l-=2);var c=n/l,h=Math.floor(y.log10(c)),d=Math.pow(10,h),u=Math.round(c/d);u<1&&(u=1);var g=u*d;r.config.yaxis[a].stepSize&&(g=r.config.yaxis[a].stepSize),r.globals.isBarHorizontal&&r.config.xaxis.stepSize&&"datetime"!==r.config.xaxis.type&&(g=r.config.xaxis.stepSize);var p=g*Math.floor(e/g),f=g*Math.ceil(t/g),m=p;if(s&&n>2){for(;o.push(y.stripNumber(m,7)),!((m+=g)>f););return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}var x=e;(o=[]).push(y.stripNumber(x,7));for(var b=Math.abs(t-e)/i,v=0;v<=i;v++)x+=b,o.push(x);return o[o.length-2]>=t&&o.pop(),{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=Math.abs(t-e);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,r))&&(i=this.w.globals.dataPoints-1),s||(s=r/i),i===Number.MAX_VALUE&&(i=5,s=1);for(var n=[],o=e;i>=0;)n.push(o),o+=s,i-=1;return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.ceil(Math.log(t)/Math.log(i)+1),r=Math.floor(Math.log(e)/Math.log(i));r<s;r++)a.push(Math.pow(i,r));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.log(t)/Math.log(i),r=Math.log(e)/Math.log(i),n=s-r,o=Math.round(n),l=n/o,c=0,h=r;c<o;c++,h+=l)a.push(Math.pow(i,h));return a.push(Math.pow(i,s)),{result:a,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,i){var a=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var s=Number(this.w.config.yaxis[t].labels.formatter(1));y.isNumber(s)&&0===this.w.globals.yValueDecimal&&(a=Math.ceil(i))}return a<e?a:e}},{key:"setYScaleForIndex",value:function(e,t,i){var a=this.w.globals,s=this.w.config,r=a.isBarHorizontal?s.xaxis:s.yaxis[e];void 0===a.yAxisScale[e]&&(a.yAxisScale[e]=[]);var n=Math.abs(i-t);if(r.logarithmic&&n<=5&&(a.invalidLogScale=!0),r.logarithmic&&n>5)a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.logarithmicScale(t,i,r.logBase),a.yAxisScale[e]=r.forceNiceScale?this.logarithmicScaleNice(t,i,r.logBase):this.logarithmicScale(t,i,r.logBase);else if(i!==-Number.MAX_VALUE&&y.isNumber(i))if(a.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var o=void 0===s.yaxis[e].max&&void 0===s.yaxis[e].min||s.yaxis[e].forceNiceScale;a.yAxisScale[e]=this.niceScale(t,i,r.tickAmount?r.tickAmount:n<5&&n>1?n+1:5,e,o)}else a.yAxisScale[e]=this.linearScale(t,i,r.tickAmount,e,s.yaxis[e].stepSize);else a.yAxisScale[e]=this.linearScale(0,5,5,e,s.yaxis[e].stepSize)}},{key:"setXScale",value:function(e,t){var i=this.w,a=i.globals,s=Math.abs(t-e);return t!==-Number.MAX_VALUE&&y.isNumber(t)?a.xAxisScale=this.linearScale(e,t,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:s<5&&s>1?s+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,i=this.w.config,a=t.minYArr.concat([]),s=t.maxYArr.concat([]),r=[];i.yaxis.forEach((function(t,n){var o=n;i.series.forEach((function(e,i){e.name===t.seriesName&&(o=i,n!==i?r.push({index:i,similarIndex:n,alreadyExists:!0}):r.push({index:i}))}));var l=a[o],c=s[o];e.setYScaleForIndex(n,l,c)})),this.sameScaleInMultipleAxes(a,s,r)}},{key:"sameScaleInMultipleAxes",value:function(e,t,i){var a=this,s=this.w.config,r=this.w.globals,n=[];i.forEach((function(e){e.alreadyExists&&(void 0===n[e.index]&&(n[e.index]=[]),n[e.index].push(e.index),n[e.index].push(e.similarIndex))})),r.yAxisSameScaleIndices=n,n.forEach((function(e,t){n.forEach((function(i,a){var s,r;t!==a&&(s=e,r=i,s.filter((function(e){return-1!==r.indexOf(e)}))).length>0&&(n[t]=n[t].concat(n[a]))}))}));var o=n.map((function(e){return e.filter((function(t,i){return e.indexOf(t)===i}))})).map((function(e){return e.sort()}));n=n.filter((function(e){return!!e}));var l=o.slice(),c=l.map((function(e){return JSON.stringify(e)}));l=l.filter((function(e,t){return c.indexOf(JSON.stringify(e))===t}));var h=[],d=[];e.forEach((function(e,i){l.forEach((function(a,s){a.indexOf(i)>-1&&(void 0===h[s]&&(h[s]=[],d[s]=[]),h[s].push({key:i,value:e}),d[s].push({key:i,value:t[i]}))}))}));var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),g=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach((function(e,t){e.forEach((function(e,i){u[t]=Math.min(e.value,u[t])}))})),d.forEach((function(e,t){e.forEach((function(e,i){g[t]=Math.max(e.value,g[t])}))})),e.forEach((function(e,t){d.forEach((function(e,i){var n=u[i],o=g[i];s.chart.stacked&&(o=0,e.forEach((function(e,t){e.value!==-Number.MAX_VALUE&&(o+=e.value),n!==Number.MIN_VALUE&&(n+=h[i][t].value)}))),e.forEach((function(i,l){e[l].key===t&&(void 0!==s.yaxis[t].min&&(n="function"==typeof s.yaxis[t].min?s.yaxis[t].min(r.minY):s.yaxis[t].min),void 0!==s.yaxis[t].max&&(o="function"==typeof s.yaxis[t].max?s.yaxis[t].max(r.maxY):s.yaxis[t].max),a.setYScaleForIndex(t,n,o))}))}))}))}},{key:"autoScaleY",value:function(e,t,i){e||(e=this);var a=e.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),t;var s=a.globals.seriesX[0],r=a.config.chart.stacked;return t.forEach((function(e,n){for(var o=0,l=0;l<s.length;l++)if(s[l]>=i.xaxis.min){o=l;break}var c,h,d=a.globals.minYArr[n],u=a.globals.maxYArr[n],g=a.globals.stackedSeriesTotals;a.globals.series.forEach((function(n,l){var p=n[o];r?(p=g[o],c=h=p,g.forEach((function(e,t){s[t]<=i.xaxis.max&&s[t]>=i.xaxis.min&&(e>h&&null!==e&&(h=e),n[t]<c&&null!==n[t]&&(c=n[t]))}))):(c=h=p,n.forEach((function(e,t){if(s[t]<=i.xaxis.max&&s[t]>=i.xaxis.min){var r=e,n=e;a.globals.series.forEach((function(i,a){null!==e&&(r=Math.min(i[t],r),n=Math.max(i[t],n))})),n>h&&null!==n&&(h=n),r<c&&null!==r&&(c=r)}}))),void 0===c&&void 0===h&&(c=d,h=u),h*=h<0?.9:1.1,0==(c*=c<0?1.1:.9)&&0===h&&(c=-1,h=1),h<0&&h<u&&(h=u),c<0&&c>d&&(c=d),t.length>1?(t[l].min=void 0===e.min?c:e.min,t[l].max=void 0===e.max?h:e.max):(t[0].min=void 0===e.min?c:e.min,t[0].max=void 0===e.max?h:e.max)}))})),t}}]),e}(),K=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.scales=new $(t)}return c(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,r=this.w.globals,n=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===a&&(a=e+1);var l=r.series,c=l,h=l;"candlestick"===s.chart.type?(c=r.seriesCandleL,h=r.seriesCandleH):"boxPlot"===s.chart.type?(c=r.seriesCandleO,h=r.seriesCandleC):r.isRangeData&&(c=r.seriesRangeStart,h=r.seriesRangeEnd);for(var d=e;d<a;d++){r.dataPoints=Math.max(r.dataPoints,l[d].length),r.categoryLabels.length&&(r.dataPoints=r.categoryLabels.filter((function(e){return void 0!==e})).length),r.labels.length&&"datetime"!==s.xaxis.type&&0!==r.series.reduce((function(e,t){return e+t.length}),0)&&(r.dataPoints=Math.max(r.dataPoints,r.labels.length));for(var u=0;u<r.series[d].length;u++){var g=l[d][u];null!==g&&y.isNumber(g)?(void 0!==h[d][u]&&(n=Math.max(n,h[d][u]),t=Math.min(t,h[d][u])),void 0!==c[d][u]&&(t=Math.min(t,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type&&"rangeArea"===this.w.config.chart.type&&"rangeBar"===this.w.config.chart.type||("candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||void 0!==r.seriesCandleC[d][u]&&(n=Math.max(n,r.seriesCandleO[d][u]),n=Math.max(n,r.seriesCandleH[d][u]),n=Math.max(n,r.seriesCandleL[d][u]),n=Math.max(n,r.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(n=Math.max(n,r.seriesCandleM[d][u]))),!s.series[d].type||"candlestick"===s.series[d].type&&"boxPlot"===s.series[d].type&&"rangeArea"===s.series[d].type&&"rangeBar"===s.series[d].type||(n=Math.max(n,r.series[d][u]),t=Math.min(t,r.series[d][u])),i=n),r.seriesGoals[d]&&r.seriesGoals[d][u]&&Array.isArray(r.seriesGoals[d][u])&&r.seriesGoals[d][u].forEach((function(e){o!==Number.MIN_VALUE&&(o=Math.min(o,e.value),t=o),n=Math.max(n,e.value),i=n})),y.isFloat(g)&&(g=y.noExponents(g),r.yValueDecimal=Math.max(r.yValueDecimal,g.toString().split(".")[1].length)),o>c[d][u]&&c[d][u]<0&&(o=c[d][u])):r.hasNullValues=!0}}return"rangeBar"===s.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(o=t),"bar"===s.chart.type&&(o<0&&n<0&&(n=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:n,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var a=0;a<e.series.length;a++){var s=this.getMinYMaxY(a,i,null,a+1);e.minYArr.push(s.minY),e.maxYArr.push(s.maxY),i=s.lowestY}var r=this.getMinYMaxY(0,i,null,e.series.length);if(e.minY=r.minY,e.maxY=r.maxY,i=r.lowestY,t.chart.stacked&&this._setStackedMinMax(),("line"===t.chart.type||"area"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal)&&e.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==e.maxY){var n=e.maxY-i;(i>=0&&i<=10||void 0!==t.yaxis[0].min||void 0!==t.yaxis[0].max)&&(n=0),e.minY=i-5*n/100,i>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*n/100}return t.yaxis.forEach((function(t,i){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[i]=t.max:"function"==typeof t.max&&(e.maxYArr[i]=t.max(e.isMultipleYAxis?e.maxYArr[i]:e.maxY)),e.maxY=e.maxYArr[i]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[i]=t.min:"function"==typeof t.min&&(e.minYArr[i]=t.min(e.isMultipleYAxis?e.minYArr[i]===Number.MIN_VALUE?0:e.minYArr[i]:e.minY)),e.minY=e.minYArr[i])})),e.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&"number"==typeof t.xaxis[i]&&("min"===i?e.minY=t.xaxis[i]:e.maxY=t.xaxis[i])})),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=i,e.yAxisScale.forEach((function(t,i){e.minYArr[i]=t.niceMin,e.maxYArr[i]=t.niceMax}))):(this.scales.setYScaleForIndex(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),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var i=0;i<e.labels[t].length;i++)null!==e.labels[t][i]&&y.isNumber(e.labels[t][i])&&(e.maxX=Math.max(e.maxX,e.labels[t][i]),e.initialMaxX=Math.max(e.maxX,e.labels[t][i]),e.minX=Math.min(e.minX,e.labels[t][i]),e.initialMinX=Math.min(e.minX,e.labels[t][i]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var a;if(void 0===t.xaxis.tickAmount?(a=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(a=e.dataPoints-1),a>e.dataPoints&&0!==e.dataPoints&&(a=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(a=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(a=e.maxX-e.minX-1)):a=t.xaxis.tickAmount,e.xTickAmount=a,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],r=e.minX-1;r<e.maxX;r++)s.push(r+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,a,a,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,a-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var i=0;i<e.seriesZ[t].length;i++)null!==e.seriesZ[t][i]&&y.isNumber(e.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][i]),e.minZ=Math.min(e.minZ,e.seriesZ[t][i]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var i=new F(this.ctx);if("datetime"===t.xaxis.type){var a=i.getDate(e.minX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),e.minX=new Date(a).getTime();var s=i.getDate(e.maxX);t.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()+2):s.setDate(s.getDate()+2),e.maxX=new Date(s).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,i){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var a=t.slice();a.sort((function(e,t){return e-t})),a.forEach((function(t,i){if(i>0){var s=t-a[i-1];s>0&&(e.minXDiff=Math.min(s,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var i=t.seriesGroups;i.length||(i=[this.w.config.series.map((function(e){return e.name}))]);var a={},s={};i.forEach((function(i){a[i]=[],s[i]=[],e.w.config.series.map((function(e,t){return i.indexOf(e.name)>-1?t:null})).filter((function(e){return null!==e})).forEach((function(r){for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++){var o,l;void 0===a[i][n]&&(a[i][n]=0,s[i][n]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(o=e.w.config.series)||void 0===o||null===(l=o[r])||void 0===l?void 0:l.type)))&&null!==t.series[r][n]&&y.isNumber(t.series[r][n])&&(t.series[r][n]>0?a[i][n]+=parseFloat(t.series[r][n])+1e-4:s[i][n]+=parseFloat(t.series[r][n]))}}))})),Object.entries(a).forEach((function(e){var i=m(e,1)[0];a[i].forEach((function(e,r){t.maxY=Math.max(t.maxY,a[i][r]),t.minY=Math.min(t.minY,s[i][r])}))}))}}}]),e}(),J=function(){function e(t,i){o(this,e),this.ctx=t,this.elgrid=i,this.w=t.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===a.config.xaxis.position&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new G(t)}return c(e,[{key:"drawYaxis",value:function(e){var t=this,i=this.w,a=new S(this.ctx),s=i.config.yaxis[e].labels.style,r=s.fontSize,n=s.fontFamily,o=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+i.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=a.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=i.globals.yAxisScale[e].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,g=i.globals.yLabelFormatters[e],p=i.globals.yAxisScale[e].result.slice();p=this.axesUtils.checkForReversedLabels(e,p);var f="";if(i.config.yaxis[e].labels.show)for(var m=function(l){var m=p[l];m=g(m,l,i);var x=i.config.yaxis[e].labels.padding;i.config.yaxis[e].opposite&&0!==i.config.yaxis.length&&(x*=-1);var b="end";i.config.yaxis[e].opposite&&(b="start"),"left"===i.config.yaxis[e].labels.align?b="start":"center"===i.config.yaxis[e].labels.align?b="middle":"right"===i.config.yaxis[e].labels.align&&(b="end");var v=t.axesUtils.getYAxisForeColor(s.colors,e),y=i.config.yaxis[e].labels.offsetY;"heatmap"===i.config.chart.type&&(y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var C=a.drawText({x,y:u+h/10+y+1,text:m,textAnchor:b,fontSize:r,fontFamily:n,fontWeight:o,maxWidth:i.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(v)?v[l]:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===h&&(f=C),c.add(C);var w=document.createElementNS(i.globals.SVGNS,"title");if(w.textContent=Array.isArray(m)?m.join(" "):m,C.node.appendChild(w),0!==i.config.yaxis[e].labels.rotate){var S=a.rotateAroundCenter(f.node),k=a.rotateAroundCenter(C.node);C.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," ").concat(S.x," ").concat(k.y,")"))}u+=d},x=h;x>=0;x--)m(x);if(void 0!==i.config.yaxis[e].title.text){var b=a.group({class:"apexcharts-yaxis-title"}),v=0;i.config.yaxis[e].opposite&&(v=i.globals.translateYAxisX[e]);var y=a.drawText({x:v,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});b.add(y),l.add(b)}var C=i.config.yaxis[e].axisBorder,w=31+C.offsetX;if(i.config.yaxis[e].opposite&&(w=-31-C.offsetX),C.show){var k=a.drawLine(w,i.globals.translateY+C.offsetY-2,w,i.globals.gridHeight+i.globals.translateY+C.offsetY+2,C.color,0,C.width);l.add(k)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(w,h,C,i.config.yaxis[e].axisTicks,e,d,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new S(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});a.add(s);var r=t.globals.yAxisScale[e].result.length-1,n=t.globals.gridWidth/r+.1,o=n+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),h=t.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),r=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var d=h.length;if(t.config.xaxis.labels.show)for(var u=d?0:r;d?u<d:u>=0;d?u++:u--){var g=c[u];g=l(g,u,t);var p=t.globals.gridWidth+t.globals.padHorizontal-(o-n+t.config.xaxis.labels.offsetX);if(h.length){var f=this.axesUtils.getLabel(c,h,p,u,this.drawnLabels,this.xaxisFontSize);p=f.x,g=f.text,this.drawnLabels.push(f.text),0===u&&t.globals.skipFirstTimelinelabel&&(g=""),u===c.length-1&&t.globals.skipLastTimelinelabel&&(g="")}var m=i.drawText({x:p,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:g,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});s.add(m),m.tspan(g);var x=document.createElementNS(t.globals.SVGNS,"title");x.textContent=g,m.node.appendChild(x),o+=n}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new S(this.ctx),a=t.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(s-=15);var r=i.drawLine(t.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(r):e.add(r)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new S(this.ctx);if(void 0!==t.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});a.add(s),e.add(a)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,a=new S(this.ctx),s={width:0,height:0},r={width:0,height:0},n=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==n&&(s=n.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==o&&(r=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(e,s,r,t);o.setAttribute("x",l.xPos-(t?10:0))}if(null!==o){var c=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,a){var s=this.w,r=0,n=0,o=10;return void 0===s.config.yaxis[e].title.text||e<0?{xPos:n,padd:0}:(a?(n=t.width+s.config.yaxis[e].title.offsetX+i.width/2+o/2,0===(r+=1)&&(n-=o/2)):(n=-1*t.width+s.config.yaxis[e].title.offsetX+o/2+i.width/2,s.globals.isBarHorizontal&&(o=25,n=-1*t.width-s.config.yaxis[e].title.offsetX-o)),{xPos:n,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,a=0,s=0,r=18,n=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(o,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===e[l].width,h=e[l].width+t[l].width;o.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-o.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+n,c||(n=n+h+20),i.globals.translateYAxisX[l]=s-o.labels.offsetX+20):(a=i.globals.translateX-r,c||(r=r+h+20),i.globals.translateYAxisX[l]=a+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=y.listToArray(t)).forEach((function(t,i){var a=e.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){var s=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=y.listToArray(r);var n=s.getBoundingClientRect();"left"===a.labels.align?(r.forEach((function(e,t){e.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(n.width,", 0)"))):"center"===a.labels.align?(r.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(n.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach((function(e,t){e.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(n.width,", 0)")))}}))}}]),e}(),Q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.documentEvent=y.bind(this.documentEvent,this)}return c(e,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var a=i.globals.events[e].indexOf(t);-1!==a&&i.globals.events[e].splice(a,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var a=i.globals.events[e],s=a.length,r=0;r<s;r++)a[r].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,i=this.ctx,a=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){a.addEventListener(e,(function(e){var a=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,i,a):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,i,a):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,i,a),i.ctx.events.fireEvent("click",[e,i,a]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){t.globals.dom.baseEl.addEventListener(i,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,i=e.target.className;if("click"===e.type){var a=t.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&a.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),ee=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter((function(t){return t.name===e}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=y.extend(M,i);this.w.globals.locale=a.options}}]),e}(),te=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawAxis",value:function(e,t){var i,a,s=this,r=this.w.globals,n=this.w.config,o=new U(this.ctx,t),l=new J(this.ctx,t);r.axisCharts&&"radar"!==e&&(r.isBarHorizontal?(a=l.drawYaxisInversed(0),i=o.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=o.drawXaxis(),r.dom.elGraphical.add(i),n.yaxis.map((function(e,t){if(-1===r.ignoreYAxisIndexes.indexOf(t)&&(a=l.drawYaxis(t),r.dom.Paper.add(a),"back"===s.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}}))))}}]),e}(),ie=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new S(this.ctx),i=new w(this.ctx),a=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,r=e.config.xaxis.crosshairs.fill.type,n=a.colorFrom,o=a.colorTo,l=a.opacityFrom,c=a.opacityTo,h=a.stops,d=s.enabled,u=s.left,g=s.top,p=s.blur,f=s.color,m=s.opacity,x=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===r&&(x=t.drawGradient("vertical",n,o,l,c,null,h,null));var b=t.drawRect();1===e.config.xaxis.crosshairs.width&&(b=t.drawLine());var v=e.globals.gridHeight;(!y.isNumber(v)||v<0)&&(v=0);var C=e.config.xaxis.crosshairs.width;(!y.isNumber(C)||C<0)&&(C=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:C,height:v,fill:x,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=i.dropShadow(b,{left:u,top:g,blur:p,color:f,opacity:m})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new S(this.ctx),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var s=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(s)}var r=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(r)}}]),e}(),ae=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var r=new z({}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,n=window.innerWidth>0?window.innerWidth:screen.width;if(n>a){var o=k.extendArrayProps(r,i.globals.initialConfig,i);e=y.extend(o,e),e=y.extend(i.config,e),t.overrideResponsiveOptions(e)}else for(var l=0;l<s.length;l++)n<s[l].breakpoint&&(e=k.extendArrayProps(r,s[l].options,i),e=y.extend(i.config,e),t.overrideResponsiveOptions(e))};if(e){var o=k.extendArrayProps(r,e,i);o=y.extend(i.config,o),n(o=y.extend(o,e))}else n({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new z(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),se=function(){function e(t){o(this,e),this.ctx=t,this.colors=[],this.w=t.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return c(e,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,i=this.w,a=new y;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),void 0===i.config.colors||0===(null===(e=i.config.colors)||void 0===e?void 0:e.length)?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map((function(e,a){var s=i.config.colors[a];return s||(s=i.config.colors[0]),"function"==typeof s?(t.isColorFn=!0,s({value:i.globals.axisCharts?i.globals.series[a][0]?i.globals.series[a][0]:0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:i})):s})))),i.globals.seriesColors.map((function(e,t){e&&(i.globals.colors[t]=e)})),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var n=i.config.theme.monochrome.color,o=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,c=0,h=0;h<r;h++){var d=void 0;"dark"===l?(d=a.shadeColor(-1*c,n),c+=o):(d=a.shadeColor(c,n),c+=o),s.push(d)}i.globals.colors=s.slice()}var u=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach((function(e){void 0===i.config[e].colors?i.globals[e].colors=t.isColorFn?i.config.colors:u:i.globals[e].colors=i.config[e].colors.slice(),t.pushExtraColors(i.globals[e].colors)})),void 0===i.config.dataLabels.style.colors?i.globals.dataLabels.style.colors=u:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),void 0===i.config.plotOptions.radar.polygons.fill.colors?i.globals.radarPolygons.fill.colors=["dark"===i.config.theme.mode?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),void 0===i.config.markers.colors?i.globals.markers.colors=u:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=t||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),e.length<s)for(var r=s-e.length,n=0;n<r;n++)e.push(e[n])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",i=e.theme.palette?e.theme.palette:"dark"===t?"palette4":"palette1",a=e.chart.foreColor?e.chart.foreColor:"dark"===t?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=a,e.theme.palette=i,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default: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=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];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","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),e}(),re=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,i="title"===e?t.config.title:t.config.subtitle,a=t.globals.svgWidth/2,s=i.offsetY,r="middle";if("left"===i.align?(a=10,r="start"):"right"===i.align&&(a=t.globals.svgWidth-10,r="end"),a+=i.offsetX,s=s+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var n=new S(this.ctx).drawText({x:a,y:s,text:i.text,textAnchor:r,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});n.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(n)}}}]),e}(),ne=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,a=0,s="title"===e?t.config.title.floating:t.config.subtitle.floating,r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==r&&!s){var n=r.getBoundingClientRect();i=n.width,a=t.globals.axisCharts?n.height+5:n.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var i=Object.assign({},y.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var a=t.map((function(e,t){return Array.isArray(e)?e.length:1})),s=Math.max.apply(Math,x(a));i=t[a.indexOf(s)]}return i}}]),e}(),oe=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();e={width:a.width,height:a.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var s=t.globals.xLabelFormatter,r=y.getLargestStringFromArr(i),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);t.globals.isBarHorizontal&&(n=r=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var o=new D(this.dCtx.ctx),l=r;r=o.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new F(this.dCtx.ctx).formatDate,w:t}),n=o.xLabelFormat(s,n,l,{i:void 0,dateFormatter:new F(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(n=r="1");var c=new S(this.dCtx.ctx),h=c.getTextRects(r,t.config.xaxis.labels.style.fontSize),d=h;if(r!==n&&(d=c.getTextRects(n,t.config.xaxis.labels.style.fontSize)),(e={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var u=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(r),r!==n&&(d=u(n)),e.height=(h.height>d.height?h.height:d.height)/1.5,e.width=h.width>d.width?h.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var i,a=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,s=t.globals.groups.map((function(e){return e.title})),r=y.getLargestStringFromArr(s),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),o=new S(this.dCtx.ctx),l=o.getTextRects(r,a),c=l;return r!==n&&(c=o.getTextRects(n,a)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(void 0!==e.config.xaxis.title.text){var a=new S(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=a.width,i=a.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(e){return e.value})),a=i.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new S(this.dCtx.ctx).getTextRects(a,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,n=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(e,o){s.yaxis.length>1&&function(e){return-1!==a.collapsedSeriesIndices.indexOf(e)}(o)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+n/1.75-t.dCtx.yAxisWidthRight,c=o.position-n/1.75+t.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-h&&(a.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:n/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===r?t.dCtx.gridPad.right<n&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):"datetime"!==r&&t.dCtx.gridPad.right<n/2-t.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(t.dCtx.xPadRight=n/2+1)}(e)};s.yaxis.forEach((function(e,i){o?(t.dCtx.gridPad.left<n&&(t.dCtx.xPadLeft=n/2+1),t.dCtx.xPadRight=n/2+1):l(e,i)}))}}]),e}(),le=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],a=10,s=new G(this.dCtx.ctx);return t.config.yaxis.map((function(r,n){var o={seriesIndex:n,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[n],c=0;if(!s.isYAxisHidden(n)&&r.labels.show&&void 0!==r.labels.minWidth&&(c=r.labels.minWidth),!s.isYAxisHidden(n)&&r.labels.show&&l.result.length){var h=t.globals.yLabelFormatters[n],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,u=l.result.reduce((function(e,t){var i,a;return(null===(i=String(h(e,o)))||void 0===i?void 0:i.length)>(null===(a=String(h(t,o)))||void 0===a?void 0:a.length)?e:t}),d),g=u=h(u,o);if(void 0!==u&&0!==u.length||(u=l.niceMax),t.globals.isBarHorizontal){a=0;var p=t.globals.labels.slice();u=y.getLargestStringFromArr(p),u=h(u,{seriesIndex:n,dataPointIndex:-1,w:t}),g=e.dCtx.dimHelpers.getLargestStringFromMultiArr(u,p)}var f=new S(e.dCtx.ctx),m="rotate(".concat(r.labels.rotate," 0 0)"),x=f.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1),b=x;u!==g&&(b=f.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1)),i.push({width:(c>b.width||c>x.width?c:b.width>x.width?b.width:x.width)+a,height:b.height>x.height?b.height:x.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map((function(t,a){if(t.show&&void 0!==t.title.text){var s=new S(e.dCtx.ctx),r="rotate(".concat(t.title.rotate," 0 0)"),n=s.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,r,!1);i.push({width:n.width,height:n.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,a=0,s=e.globals.yAxisScale.length>1?10:0,r=new G(this.dCtx.ctx),n=function(n,o){var l=e.config.yaxis[o].floating,c=0;n.width>0&&!l?(c=n.width+s,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(c=c-n.width-s)):c=l||r.isYAxisHidden(o)?0:5,e.config.yaxis[o].opposite?a+=c:i+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){n(e,t)})),e.globals.yTitleCoords.map((function(e,t){n(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,t}}]),e}(),ce=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var i=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},a=t.config.chart.type,s=0,r=i(a)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(r=t.globals.comboBarCount),t.globals.collapsedSeries.forEach((function(e){i(e.type)&&(r-=1)})),t.config.chart.stacked&&(r=1),(i(a)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&r>0){var n,o,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),n=l/e,t.globals.minXDiff&&t.globals.minXDiff/n>0&&(o=t.globals.minXDiff/n),o>e/2&&(o/=2),(s=o/r*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(r>1?1:1.5)+5,t.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,a=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==t.config[i].text?a+=t.config[i].margin:a+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,a=new G(this.dCtx.ctx);i.config.yaxis.map((function(s,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(t[r].width+e[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),e}(),he=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ne(this),this.dimYAxis=new le(this),this.dimXAxis=new oe(this),this.dimGrid=new ce(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return c(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var i=m(t,2),a=i[0],s=i[1];e.gridPad[a]=Math.max(s,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(t.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(t.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,i){t.globals.yLabelsCoords.push({width:a[i].width,index:i}),t.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),n=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,o,n),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var h=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,h=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===t.config.xaxis.position&&(h=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=h,d();break;case"top":i.translateY=this.lgRect.height+h,d();break;case"left":i.translateY=h,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=h,i.translateX=l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new J(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[s].offsetY,n=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return t.gridHeight=t.svgHeight-i.grid.padding.left+i.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=r,void(t.translateX=n+(t.svgWidth-t.gridWidth)/2);switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=r-10,t.translateX=n+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+r+10,t.translateX=n+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-a,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=n+this.lgRect.width+a;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-a-5,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=n+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+e.height+t.height,n=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,o=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=r*n+s*o+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,h=0;a.config.yaxis.forEach((function(e){c+=e.labels.minWidth,h+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),e}(),de=function(){function e(t){o(this,e),this.w=t.w,this.lgCtx=t}return c(e,[{key:"getLegendStyles",value:function(){var e,t,i,a=document.createElement("style");a.setAttribute("type","text/css");var s=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(i=t.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;s&&a.setAttribute("nonce",s);var r=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n border-style: solid;\n }\n\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\n display: inline-block;\n }\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return a.appendChild(r),a}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){i.riseCollapsedSeries(e.cs,e.csi,r)})):this.hideSeries({seriesEl:s,realIndex:r})}else{var n=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=a.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=a.config.plotOptions.pie.donut.labels;new S(this.lgCtx.ctx).pathMouseDown(n.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(n.members[0].node,l)}n.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,a=this.w,s=y.clone(a.config.series);if(a.globals.axisCharts){var r=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(r=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var n=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(n,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var o=t.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[l].classList.add("apexcharts-hide"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,i){var a=this.w,s=y.clone(a.config.series);if(e.length>0){for(var r=0;r<e.length;r++)e[r].index===i&&(a.globals.axisCharts?(s[i].data=e[r].data.slice(),e.splice(r,1),t.splice(r,1),a.globals.risingSeries.push(i)):(s[i]=e[r].data,e.splice(r,1),t.splice(r,1),a.globals.risingSeries.push(i)));s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach((function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a].data=[])})):e.forEach((function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a]=0)})),e}}]),e}(),ue=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new de(this)}return c(e,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,a=t.globals.seriesNames,s=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var r=t.config.plotOptions.heatmap.colorScale.ranges;a=r.map((function(e){return e.name?e.name:e.from+" - "+e.to})),s=r.map((function(e){return e.color}))}else this.isBarsDistributed&&(a=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(a=t.config.legend.customLegendItems);for(var n=t.globals.legendFormatter,o=t.config.legend.inverseOrder,l=o?a.length-1:0;o?l>=0:l<=a.length-1;o?l--:l++){var c,h=n(a[l],{seriesIndex:l,w:t}),d=!1,u=!1;if(t.globals.collapsedSeries.length>0)for(var g=0;g<t.globals.collapsedSeries.length;g++)t.globals.collapsedSeries[g].index===l&&(d=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<t.globals.ancillaryCollapsedSeriesIndices.length;p++)t.globals.ancillaryCollapsedSeriesIndices[p]===l&&(u=!0);var f=document.createElement("span");f.classList.add("apexcharts-legend-marker");var m=t.config.legend.markers.offsetX,x=t.config.legend.markers.offsetY,b=t.config.legend.markers.height,v=t.config.legend.markers.width,C=t.config.legend.markers.strokeWidth,w=t.config.legend.markers.strokeColor,E=t.config.legend.markers.radius,A=f.style;A.background=s[l],A.color=s[l],A.setProperty("background",s[l],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[l]&&(A.background=t.config.legend.markers.fillColors[l]),void 0!==t.globals.seriesColors[l]&&(A.background=t.globals.seriesColors[l],A.color=t.globals.seriesColors[l]),A.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",A.width=Array.isArray(v)?parseFloat(v[l])+"px":parseFloat(v)+"px",A.left=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",A.top=(Array.isArray(x)?parseFloat(x[l]):parseFloat(x))+"px",A.borderWidth=Array.isArray(C)?C[l]:C,A.borderColor=Array.isArray(w)?w[l]:w,A.borderRadius=Array.isArray(E)?parseFloat(E[l])+"px":parseFloat(E)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[l]&&(f.innerHTML=t.config.legend.markers.customHTML[l]()):f.innerHTML=t.config.legend.markers.customHTML()),S.setAttrs(f,{rel:l+1,"data:collapsed":d||u}),(d||u)&&f.classList.add("apexcharts-inactive-legend");var P=document.createElement("div"),L=document.createElement("span");L.classList.add("apexcharts-legend-text"),L.innerHTML=Array.isArray(h)?h.join(" "):h;var M=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:Array.isArray(t.config.legend.labels.colors)?null===(c=t.config.legend.labels.colors)||void 0===c?void 0:c[l]:t.config.legend.labels.colors;M||(M=t.config.chart.foreColor),L.style.color=M,L.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",L.style.fontWeight=t.config.legend.fontWeight,L.style.fontFamily=i||t.config.chart.fontFamily,S.setAttrs(L,{rel:l+1,i:l,"data:default-text":encodeURIComponent(h),"data:collapsed":d||u}),P.appendChild(f),P.appendChild(L);var T=new k(this.ctx);t.config.legend.showForZeroSeries||0===T.getSeriesTotalByIndex(l)&&T.seriesHaveSameValues(l)&&!T.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&P.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||T.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&P.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(P),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),P.classList.add("apexcharts-legend-series"),P.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",S.setAttrs(P,{rel:l+1,seriesName:y.escapeString(a[l]),"data:collapsed":d||u}),(d||u)&&P.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||P.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,a=i.globals.dom.elLegendWrap,s=a.getBoundingClientRect(),r=0,n=0;if("bottom"===i.config.legend.position)n+=i.globals.svgHeight-s.height/2;else if("top"===i.config.legend.position){var o=new he(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;n=n+(l>0?l-10:0)+(c>0?c-10:0)}a.style.position="absolute",r=r+e+i.config.legend.offsetX,n=n+t+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=n+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(e){a.style[e]&&(a.style[e]=parseInt(i.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),i=new he(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===e.config.legend.position?r=-t.clwh/1.8:"top"===e.config.legend.position&&(r=a.height+s.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),i=0;"left"===e.config.legend.position&&(i=20),"right"===e.config.legend.position&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new W(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new W(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,a="true"===e.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&e.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),e}(),ge=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return c(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=t.config.chart.toolbar.offsetY+"px",a.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s<this.t.customIcons.length;s++)this.elCustomIcons.push(i());var r=[],n=function(i,a,s){var n=i.toLowerCase();e.t[n]&&t.config.chart.zoom.enabled&&r.push({el:a,icon:"string"==typeof e.t[n]?e.t[n]:s,title:e.localeValues[i],class:"apexcharts-".concat(n,"-icon")})};n("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>\n'),n("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>\n');var o=function(i){e.t[i]&&t.config.chart[i].enabled&&r.push({el:"zoom"===i?e.elZoom:e.elSelection,icon:"string"==typeof e.t[i]?e.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <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"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>',title:e.localeValues["zoom"===i?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <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"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),n("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)r.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});r.forEach((function(e,t){e.index&&y.moveIndexInArray(r,t,e.index)}));for(var c=0;c<r.length;c++)S.setAttrs(r[c].el,{class:r[c].class,title:r[c].title}),r[c].el.innerHTML=r[c].icon,a.appendChild(r[c].el);this._createHamburgerMenu(a),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),S.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,S.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(t[i].name),title:t[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),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.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var i="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,a="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[a]=!t.w.globals[a],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,i="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,i=(this.minX+t)/2,a=(this.maxX+t)/2,s=this._getNewMinXMaxX(i,a);e.globals.disableZoomIn||this.zoomUpdateOptions(s.minX,s.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,i=this.minX-(t-this.minX),a=this.maxX-(t-this.maxX),s=this._getNewMinXMaxX(i,a);e.globals.disableZoomOut||this.zoomUpdateOptions(s.minX,s.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var i=this.w;if(void 0!==e||void 0!==t){if(!(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))){var a={min:e,max:t},s=this.getBeforeZoomRange(a);s&&(a=s.xaxis);var r={xaxis:a},n=y.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(n=new $(this.ctx).autoScaleY(this.ctx,n,{xaxis:a})),i.config.chart.group||(r.yaxis=n),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(r,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,n)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,i=new Z(this.ctx);switch(e){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var i=t.config.chart.events.beforeResetZoom(e,t);i&&e.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var a=e.ctx.series.emptyCollapsedSeries(y.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(a,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),pe=function(e){d(i,ge);var t=f(i);function i(e){var a;return o(this,i),(a=t.call(this,e)).ctx=e,a.w=e.w,a.dragged=!1,a.graphics=new S(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return c(i,[{key:"init",value:function(e){var t=this,i=e.xyRatios,a=this.w,s=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=a.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),a.globals.dom.elGraphical.add(this.zoomRect),a.globals.dom.elGraphical.add(this.selectionRect),"x"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:a.globals.gridWidth,maxY:a.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:a.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=a.globals.dom.baseEl.querySelector("".concat(a.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,s.svgMouseEvents.bind(s,i),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var i=this.w,a=this,s=this.ctx.toolbar,r=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,n=i.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===n?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(n),this.shiftWasPressed=!1),t.target){var o,l=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(o=t.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||o&&o.contains("apexcharts-toolbar"))){if(a.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,a.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var c=a.gridRect.getBoundingClientRect();a.startX=a.clientX-c.left,a.startY=a.clientY-c.top,a.dragged=!1,a.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(a.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,a.w.globals.mousedown&&a.panDragging({context:a,zoomtype:r,xyRatios:e})):(a.w.globals.mousedown&&i.globals.zoomEnabled||a.w.globals.mousedown&&i.globals.selectionEnabled)&&(a.selection=a.selectionDrawing({context:a,zoomtype:r}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var h=a.gridRect.getBoundingClientRect();a.w.globals.mousedown&&(a.endX=a.clientX-h.left,a.endY=a.clientY-h.top,a.dragX=Math.abs(a.endX-a.startX),a.dragY=Math.abs(a.endY-a.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&a.selectionDrawn({context:a,zoomtype:r}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&a.delayedPanScrolled()),i.globals.zoomEnabled&&a.hideSelectionRect(this.selectionRect),a.dragged=!1,a.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var i=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,a=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-i;e.globals.isRangeBar&&(i=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,a=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var s={x:i,y:0,width:a,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,i=e.y,a=e.width,s=e.height,r=e.translateX,n=void 0===r?0:r,o=e.translateY,l=void 0===o?0:o,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+n+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),h.attr({x:t,y:i,width:a,height:s,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),S.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:t,y:i,width:a>0?a:0,height:s>0?s:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),S.setAttrs(d.node,u))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,i=e.context,a=e.zoomtype,s=this.w,r=i,n=this.gridRect.getBoundingClientRect(),o=r.startX-1,l=r.startY,c=!1,h=!1,d=r.clientX-n.left-o,u=r.clientY-n.top-l;return Math.abs(d+o)>s.globals.gridWidth?d=s.globals.gridWidth-o:r.clientX-n.left<0&&(d=o),o>r.clientX-n.left&&(c=!0,d=Math.abs(d)),l>r.clientY-n.top&&(h=!0,u=Math.abs(u)),t="x"===a?{x:c?o-d:o,y:0,width:d,height:s.globals.gridHeight}:"y"===a?{x:0,y:h?l-u:l,width:s.globals.gridWidth,height:u}:{x:c?o-d:o,y:h?l-u:l,width:d,height:u},r.drawSelectionRect(t),r.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var i=this,a=this.w,s=this.xyRatios,r=this.selectionRect,n=0;"resizing"===e&&(n=30);var o=function(e){return parseFloat(r.node.getAttribute(e))},l={x:o("x"),y:o("y"),width:o("width"),height:o("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,n,o,l=i.gridRect.getBoundingClientRect(),c=r.node.getBoundingClientRect();a.globals.isRangeBar?(e=a.globals.yAxisScale[0].niceMin+(c.left-l.left)*s.invertedYRatio,t=a.globals.yAxisScale[0].niceMin+(c.right-l.left)*s.invertedYRatio,n=0,o=1):(e=a.globals.xAxisScale.niceMin+(c.left-l.left)*s.xRatio,t=a.globals.xAxisScale.niceMin+(c.right-l.left)*s.xRatio,n=a.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*s.yRatio[0],o=a.globals.yAxisScale[0].niceMax-(c.top-l.top)*s.yRatio[0]);var h={xaxis:{min:e,max:t},yaxis:{min:n,max:o}};a.config.chart.events.selection(i.ctx,h),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,h)}),n))}},{key:"selectionDrawn",value:function(e){var t=e.context,i=e.zoomtype,a=this.w,s=t,r=this.xyRatios,n=this.ctx.toolbar;if(s.startX>s.endX){var o=s.startX;s.startX=s.endX,s.endX=o}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var c=void 0,h=void 0;a.globals.isRangeBar?(c=a.globals.yAxisScale[0].niceMin+s.startX*r.invertedYRatio,h=a.globals.yAxisScale[0].niceMin+s.endX*r.invertedYRatio):(c=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,h=a.globals.xAxisScale.niceMin+s.endX*r.xRatio);var d=[],u=[];if(a.config.yaxis.forEach((function(e,t){d.push(a.globals.yAxisScale[t].niceMax-r.yRatio[t]*s.startY),u.push(a.globals.yAxisScale[t].niceMax-r.yRatio[t]*s.endY)})),s.dragged&&(s.dragX>10||s.dragY>10)&&c!==h)if(a.globals.zoomEnabled){var g=y.clone(a.globals.initialConfig.yaxis),p=y.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=a.globals.dataPoints),h-c<2&&(h=c+1)),"xy"!==i&&"x"!==i||(p={min:c,max:h}),"xy"!==i&&"y"!==i||g.forEach((function(e,t){g[t].min=u[t],g[t].max=d[t]})),a.config.chart.zoom.autoScaleYaxis){var f=new $(s.ctx);g=f.autoScaleY(s.ctx,g,{xaxis:p})}if(n){var m=n.getBeforeZoomRange(p,g);m&&(p=m.xaxis?m.xaxis:p,g=m.yaxis?m.yaxis:g)}var x={xaxis:p};a.config.chart.group||(x.yaxis=g),s.ctx.updateHelpers._updateOptions(x,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&n.zoomCallback(p,g)}else if(a.globals.selectionEnabled){var b,v=null;b={min:c,max:h},"xy"!==i&&"y"!==i||(v=y.clone(a.config.yaxis)).forEach((function(e,t){v[t].min=u[t],v[t].max=d[t]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:b,yaxis:v})}}},{key:"panDragging",value:function(e){var t=e.context,i=this.w,a=t;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,r=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(r)&&s<0?this.moveDirection="right":Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(s)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var n=i.globals.isRangeBar?i.globals.minY:i.globals.minX,o=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(n,o)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,i=e.globals.maxX,a=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+a,i=e.globals.maxX+a):"right"===this.moveDirection&&(t=e.globals.minX-a,i=e.globals.maxX-a),t=Math.floor(t),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:t,max:i}},t,i)}},{key:"panScrolled",value:function(e,t){var i=this.w,a=this.xyRatios,s=y.clone(i.globals.initialConfig.yaxis),r=a.xRatio,n=i.globals.minX,o=i.globals.maxX;i.globals.isRangeBar&&(r=a.invertedYRatio,n=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(e=n+i.globals.gridWidth/15*r,t=o+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(e=n-i.globals.gridWidth/15*r,t=o-i.globals.gridWidth/15*r),i.globals.isRangeBar||(e<i.globals.initialMinX||t>i.globals.initialMaxX)&&(e=n,t=o);var l={min:e,max:t};i.config.chart.zoom.autoScaleYaxis&&(s=new $(this.ctx).autoScaleY(this.ctx,s,{xaxis:l}));var c={xaxis:{min:e,max:t}};i.config.chart.group||(c.yaxis=s),this.updateScrolledChart(c,e,t)}},{key:"updateScrolledChart",value:function(e,t,i){var a=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:i}})}}]),i}(),fe=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return c(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,a=e.clientX,s=e.clientY,r=this.w,n=i.getBoundingClientRect(),o=n.width,l=n.height,c=o/(r.globals.dataPoints-1),h=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(c=o/r.globals.dataPoints);var u=a-n.left-r.globals.barPadForNumericAxis,g=s-n.top;u<0||g<0||u>o||g>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):r.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):r.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(u/c),f=Math.floor(g/h);d&&!r.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(u/c),p-=1);var m=null,x=null,b=r.globals.seriesXvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))})),v=r.globals.seriesYvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))}));if(r.globals.isXNumeric){var C=this.ttCtx.getElGrid().getBoundingClientRect(),w=u*(C.width/o),S=g*(C.height/l);m=(x=this.closestInMultiArray(w,S,b,v)).index,p=x.j,null!==m&&(b=r.globals.seriesXvalues[m],p=(x=this.closestInArray(w,b)).index)}return r.globals.capturedSeriesIndex=null===m?-1:m,(!p||p<1)&&(p=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=f:r.globals.capturedDataPointIndex=p,{capturedSeries:m,j:r.globals.isBarHorizontal?f:p,hoverX:u,hoverY:g}}},{key:"closestInMultiArray",value:function(e,t,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=i[r][0],c=Math.abs(e-l);if(i.forEach((function(t){t.forEach((function(t,i){var a=Math.abs(e-t);a<=c&&(c=a,o=i)}))})),-1!==o){var h=a[r][o],d=Math.abs(t-h);n=r,a.forEach((function(e,i){var a=Math.abs(t-e[o]);a<=d&&(d=a,n=i)}))}return{index:n,j:o}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,i=0,a=e.map((function(e,t){return e.length>0?t:-1})),s=0;s<a.length;s++)if(-1!==a[s]&&-1===t.globals.collapsedSeriesIndices.indexOf(s)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)){i=a[s];break}return i}},{key:"closestInArray",value:function(e,t){for(var i=t[0],a=null,s=Math.abs(e-i),r=0;r<t.length;r++){var n=Math.abs(e-t[r]);n<s&&(s=n,a=r)}return{index:a}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(i.length>0)for(var a=0;a<i.length-1;a++)void 0!==i[a][e]&&void 0!==i[a+1][e]&&i[a][e]!==i[a+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,i=0;i<t.length-1;i++)if(t[i].data.length!==t[i+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return x(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=x(e)).sort((function(e,t){var i=Number(e.getAttribute("data:realIndex")),a=Number(t.getAttribute("data:realIndex"));return a<i?1:a>i?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s<a.length;s++)"enable"===e?(a[s].classList.add("apexcharts-active"),a[s].style.display=t.config.tooltip.items.display):(a[s].classList.remove("apexcharts-active"),a[s].style.display="none")}}]),e}(),me=function(){function e(t){o(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new fe(t)}return c(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=void 0===t||t,a=e.ttItems,s=e.i,r=void 0===s?0:s,n=e.j,o=void 0===n?null:n,l=e.y1,c=e.y2,h=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:r,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:r,j:o});this.printLabels({i:r,j:o,values:u,ttItems:a,shared:i,e:h});var g=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=g.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=g.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,a=e.i,s=e.j,n=e.values,o=e.ttItems,l=e.shared,c=e.e,h=this.w,d=[],u=function(e){return h.globals.seriesGoals[e]&&h.globals.seriesGoals[e][s]&&Array.isArray(h.globals.seriesGoals[e][s])},g=n.xVal,p=n.zVal,f=n.xAxisTTVal,m="",x=h.globals.colors[a];null!==s&&h.config.plotOptions.bar.distributed&&(x=h.globals.colors[s]);for(var b=function(e,n){var b=i.getFormatters(a);m=i.getSeriesName({fn:b.yLbTitleFormatter,index:a,seriesIndex:a,j:s}),"treemap"===h.config.chart.type&&(m=b.yLbTitleFormatter(String(h.config.series[a].data[s].x),{series:h.globals.series,seriesIndex:a,dataPointIndex:s,w:h}));var v=h.config.tooltip.inverseOrder?n:e;if(h.globals.axisCharts){var y=function(e){var t,i,a,r;return h.globals.isRangeData?b.yLbFormatter(null===(t=h.globals.seriesRangeStart)||void 0===t||null===(i=t[e])||void 0===i?void 0:i[s],{series:h.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:s,w:h})+" - "+b.yLbFormatter(null===(a=h.globals.seriesRangeEnd)||void 0===a||null===(r=a[e])||void 0===r?void 0:r[s],{series:h.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:s,w:h}):b.yLbFormatter(h.globals.series[e][s],{series:h.globals.series,seriesIndex:e,dataPointIndex:s,w:h})};if(l)b=i.getFormatters(v),m=i.getSeriesName({fn:b.yLbTitleFormatter,index:v,seriesIndex:a,j:s}),x=h.globals.colors[v],t=y(v),u(v)&&(d=h.globals.seriesGoals[v][s].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:v,dataPointIndex:s,w:h})}})));else{var C,w=null==c||null===(C=c.target)||void 0===C?void 0:C.getAttribute("fill");w&&(x=-1!==w.indexOf("url")?document.querySelector(w.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):w),t=y(a),u(a)&&Array.isArray(h.globals.seriesGoals[a][s])&&(d=h.globals.seriesGoals[a][s].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:a,dataPointIndex:s,w:h})}})))}}null===s&&(t=b.yLbFormatter(h.globals.series[a],r(r({},h),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:v,j:s,ttItems:o,values:{val:t,goalVals:d,xVal:g,xAxisTTVal:f,zVal:p},seriesName:m,shared:l,pColor:x})},v=0,y=h.globals.series.length-1;v<h.globals.series.length;v++,y--)b(v,y)}},{key:"getFormatters",value:function(e){var t,i=this.w,a=i.globals.yLabelFormatters[e];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(a=i.globals.ttVal[e]&&i.globals.ttVal[e].formatter,t=i.globals.ttVal[e]&&i.globals.ttVal[e].title&&i.globals.ttVal[e].title.formatter):(a=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(t=i.globals.ttVal.title.formatter)):t=i.config.tooltip.y.title.formatter,"function"!=typeof a&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:a,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,i=e.index,a=e.seriesIndex,s=e.j,r=this.w;return t(String(r.globals.seriesNames[i]),{series:r.globals.series,seriesIndex:a,dataPointIndex:s,w:r})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,i=e.j,a=e.ttItems,s=e.values,r=e.seriesName,n=e.shared,o=e.pColor,l=this.w,c=this.ttCtx,h=s.val,d=s.goalVals,u=s.xVal,g=s.xAxisTTVal,p=s.zVal,f=null;f=a[t].children,l.config.tooltip.fillSeriesColor&&(a[t].style.backgroundColor=o,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==g?g:u);var m=a[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=r||"");var x=a[t].querySelector(".apexcharts-tooltip-text-y-value");x&&(x.innerHTML=void 0!==h?h:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[t]),f[0].style.backgroundColor=o),l.config.tooltip.marker.show||(f[0].style.display="none");var b=a[t].querySelector(".apexcharts-tooltip-text-goals-label"),v=a[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var y=function(){var e="<div >",t="<div>";d.forEach((function(i,a){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),t+="<div>".concat(i.val,"</div>")})),b.innerHTML=e+"</div>",v.innerHTML=t+"</div>"};n?l.globals.seriesGoals[t][i]&&Array.isArray(l.globals.seriesGoals[t][i])?y():(b.innerHTML="",v.innerHTML=""):y()}else b.innerHTML="",v.innerHTML="";if(null!==p&&(a[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),n&&f[0]){if(l.config.tooltip.hideEmptySeries){var C=a[t].querySelector(".apexcharts-tooltip-marker"),w=a[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(h)?(C.style.display="none",w.style.display="none"):(C.style.display="block",w.style.display="block")}null==h||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",n="",o=null,l=null,c={series:a.globals.series,seriesIndex:t,dataPointIndex:i,w:a},h=a.globals.ttZFormatter;null===i?l=a.globals.series[t]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(r=s[t][i],0===s[t].length&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=r;return r=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new D(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new F(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,c):a.globals.xLabelFormatter(d,c),void 0!==a.config.tooltip.x.formatter&&(r=a.globals.ttKeyFormatter(d,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[t].length>0&&(o=h(a.globals.seriesZ[t][i],a)),n="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,c):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(n)?n.join(" "):n,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,a=e.y1,s=e.y2,r=e.w,n=this.ttCtx.getElTooltip(),o=r.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),n.innerHTML=o({ctx:this.ctx,series:r.globals.series,seriesIndex:t,dataPointIndex:i,y1:a,y2:s,w:r})}}]),e}(),xe=function(){function e(t){o(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return c(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=e-i.xcrosshairsWidth/2,n=a.globals.labels.slice().length;if(null!==t&&(r=a.globals.gridWidth/n*t),null===s||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var o=r;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(o=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&S.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&S.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;e-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(e)||(e+=t.globals.translateX,a=new S(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=s+"px")}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=t.globals.translateY+a,r=i.yaxisTTEls[e].getBoundingClientRect().height,n=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(n-=26),s-=r/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=s+"px",i.yaxisTTEls[e].style.left=n+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),n=s.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(l>a.globals.gridWidth/2&&(l=l-n.ttWidth-o-10),l>a.globals.gridWidth-n.ttWidth-10&&(l=a.globals.gridWidth-n.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var h=s.getElGrid().getBoundingClientRect();(l=s.e.clientX-h.left)>a.globals.gridWidth/2&&(l-=s.tooltipRect.ttWidth),(c=s.e.clientY+a.globals.translateY-h.top)>a.globals.gridHeight/2&&(c-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||n.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-n.ttHeight+a.globals.translateY);isNaN(l)||(l+=a.globals.translateX,r.style.left=l+"px",r.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[e]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),r=0;r<s.length;r++)parseInt(s[r].getAttribute("rel"),10)===t&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(t,s[r]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,a,s=this.w,r=this.ttCtx,n=s.globals.pointsArray,o=r.tooltipUtil.getHoverMarkerSize(t),l=s.config.series[t].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=n[t][e][0],a=n[t][e][1]?n[t][e][1]:0;var c=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));c&&a<s.globals.gridHeight&&a>0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,o)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,a=i.w,s=0,r=0,n=a.globals.pointsArray;t=new W(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var o=i.tooltipUtil.getHoverMarkerSize(t);n[t]&&(s=n[t][e][0],r=n[t][e][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<a.globals.series.length;c++){var h=n[c];if(a.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=n[c][e][1],u=void 0;if(l[c].setAttribute("cx",s),"rangeArea"===a.config.chart.type&&!a.globals.comboCharts){var g=e+a.globals.series[c].length;u=n[c][g][1],d-=Math.abs(d-u)/2}null!==d&&!isNaN(d)&&d<a.globals.gridHeight+o&&d+o>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,o)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new W(this.ctx).getActiveConfigSeriesIndex("desc")+1);var n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(e,"']"));n||"number"!=typeof t||(n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var o=n?parseFloat(n.getAttribute("cx")):0,l=n?parseFloat(n.getAttribute("cy")):0,c=n?parseFloat(n.getAttribute("barWidth")):0,h=a.getElGrid().getBoundingClientRect(),d=n&&(n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(n&&!d&&(o-=s%2!=0?c/2:0),n&&d&&i.globals.comboCharts&&(o-=c/2)):i.globals.isBarHorizontal||(o=a.xAxisTicksPositions[e-1]+a.dataPointsDividedWidth/2,isNaN(o)&&(o=a.xAxisTicksPositions[e]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=a.e.clientY-h.top-a.tooltipRect.ttHeight/2:l+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(o),a.fixedTooltip||this.moveTooltip(o,l||i.globals.gridHeight)}}]),e}(),be=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new xe(t)}return c(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new S(this.ctx),i=new X(this.ctx),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=x(a),e.config.chart.stacked&&a.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var s=0;s<a.length;s++){var r=a[s].querySelector(".apexcharts-series-markers-wrap");if(null!==r){var n=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:o,seriesIndex:Number(r.getAttribute("data:realIndex"))});(n=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(n.node),r.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(e,t);var r=t.getAttribute("cx"),n=t.getAttribute("cy");if(null!==i&&null!==a&&(r=i,n=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===s.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(r,n,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,a=this.ttCtx,s=e,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),n=t.config.markers.hover.size,o=0;o<r.length;o++){var l=r[o].getAttribute("rel"),c=r[o].getAttribute("index");if(void 0===n&&(n=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),s===parseInt(l,10)){i.newPointSize(s,r[o]);var h=r[o].getAttribute("cx"),d=r[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),a.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,n)}else i.oldPointSize(r[o])}}},{key:"newPointSize",value:function(e,t){var i=this.w,a=i.config.markers.hover.size,s=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==s.getAttribute("default-marker-size")){var r=parseInt(s.getAttribute("index"),10);void 0===a&&(a=i.globals.markers.size[r]+i.config.markers.hover.sizeOffset),a<0&&(a=0),s.setAttribute("r",a)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var i=parseFloat(e[t].getAttribute("default-marker-size"));y.isNumber(i)&&i>=0?e[t].setAttribute("r",i):e[t].setAttribute("r",0)}}}]),e}(),ve=function(){function e(t){o(this,e),this.w=t.w;var i=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return c(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,a=e.x,s=e.y,r=e.type,n=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),h=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),u=this.getAttr(t,"width"),g=this.getAttr(t,"height");if(n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,a=h+n.tooltipRect.ttWidth/2+u,s=d+n.tooltipRect.ttHeight/2-g/2,n.tooltipPosition.moveXCrosshairs(h+u/2),a>o.globals.gridWidth/2&&(a=h-n.tooltipRect.ttWidth/2+u),n.w.config.tooltip.followCursor){var p=o.globals.dom.elWrap.getBoundingClientRect();a=o.globals.clientX-p.left-(a>o.globals.gridWidth/2?n.tooltipRect.ttWidth:0),s=o.globals.clientY-p.top-(s>o.globals.gridHeight/2?n.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(e){var t,i,a=e.e,s=e.opt,r=e.x,n=e.y,o=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),h=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),t=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=y.findAncestor(s.paths,"apexcharts-series");u&&(t=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,r=c,n=h+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var g=l.getElGrid().getBoundingClientRect();n=l.e.clientY+o.globals.translateY-g.top}d<0&&(n=h),l.marker.enlargeCurrentPoint(i,s.paths,r,n)}return{x:r,y:n}}},{key:"handleBarTooltip",value:function(e){var t,i,a=e.e,s=e.opt,r=this.w,n=this.ttCtx,o=n.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:a,opt:s});t=d.i;var u=d.barHeight,g=d.j;r.globals.capturedSeriesIndex=t,r.globals.capturedDataPointIndex=g,r.globals.isBarHorizontal&&n.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[t]:r.config.stroke.width,l=c):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(h)&&(h=r.globals.svgHeight-n.tooltipRect.ttHeight);var p=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(c+n.tooltipRect.ttWidth>r.globals.gridWidth&&!f?c-=n.tooltipRect.ttWidth:c<0&&(c=0),n.w.config.tooltip.followCursor){var m=n.getElGrid().getBoundingClientRect();h=n.e.clientY-m.top}null===n.tooltip&&(n.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?n.tooltipPosition.moveXCrosshairs(l+i/2):n.tooltipPosition.moveXCrosshairs(l)),!n.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&n.tooltipUtil.hasBars())&&(f&&(c-=n.tooltipRect.ttWidth)<0&&(c=0),!f||r.globals.isBarHorizontal&&n.tooltipUtil.hasBars()||(h=h+u-2*(r.globals.series[t][g]<0?u:0)),h=h+r.globals.translateY-n.tooltipRect.ttHeight/2,o.style.left=c+r.globals.translateX+"px",o.style.top=h+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,i=e.e,a=e.opt,s=this.w,r=null,n=this.ttCtx,o=0,l=0,c=0,h=0,d=0,u=i.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){var g=i.target,p=g.getBoundingClientRect(),f=a.elGrid.getBoundingClientRect(),m=p.height;d=p.height;var x=p.width,b=parseInt(g.getAttribute("cx"),10),v=parseInt(g.getAttribute("cy"),10);h=parseFloat(g.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(g.getAttribute("j"),10),o=parseInt(g.parentNode.getAttribute("rel"),10)-1;var C=g.getAttribute("data-range-y1"),w=g.getAttribute("data-range-y2");s.globals.comboCharts&&(o=parseInt(g.parentNode.getAttribute("data:realIndex"),10));var S=function(e){return s.globals.isXNumeric?b-x/2:t.isVerticalGroupedRangeBar?b+x/2:b-n.dataPointsDividedWidth+x/2},k=function(){return v-n.dataPointsDividedHeight+m/2-n.tooltipRect.ttHeight/2};n.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:o,j:r,y1:C?parseInt(C,10):null,y2:w?parseInt(w,10):null,shared:!n.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(l=y-f.left+15,c=k()):(l=S(),c=i.clientY-f.top-n.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((l=b)<n.xyRatios.baseLineInvertedY&&(l=b-n.tooltipRect.ttWidth),c=k()):(l=S(),c=v)}return{x:l,y:c,barHeight:d,barWidth:h,i:o,j:r}}}]),e}(),ye=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t}return c(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,i="bottom"===e.config.xaxis.position;t.xaxisOffY=i?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,i=function(i){var a=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=a?e.globals.gridWidth+1:1;var s="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,a?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map((function(t,a){t.map((function(t,a){a===i&&(s+=e.config.yaxis[a].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var r=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+e.config.tooltip.theme),r.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))},a=0;a<e.config.yaxis.length;a++)i(a)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,i=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var a=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==a&&"barWidth"===e.config.xaxis.crosshairs.width){var s=parseFloat(a.getAttribute("barWidth"));t.xcrosshairsWidth=s}else if("tickWidth"===e.config.xaxis.crosshairs.width){var r=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/r}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var n=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/n}else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==i&&t.xcrosshairsWidth>0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var a=this.ttCtx,s=this.w,r=s.globals.yLabelFormatters[e];if(a.yaxisTooltips[e]){var n=a.getElGrid().getBoundingClientRect(),o=(t-n.top)*i.yRatio[e],l=s.globals.maxYArr[e]-s.globals.minYArr[e],c=s.globals.minYArr[e]+(l-o);a.tooltipPosition.moveYCrosshairs(t-n.top),a.yaxisTooltipText[e].innerHTML=r(c),a.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),Ce=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new fe(this),this.tooltipLabels=new me(this),this.tooltipPosition=new xe(this),this.marker=new be(this),this.intersect=new ve(this),this.axesTooltip=new ye(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return c(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,i){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new U(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,a=[],s=this.getElTooltip(),r=function(r){var n=document.createElement("div");n.classList.add("apexcharts-tooltip-series-group"),n.style.order=i.config.tooltip.inverseOrder?e-r:r+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(r)<0&&n.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=i.globals.colors[r],n.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(a),l.appendChild(t)})),n.appendChild(l),s.appendChild(n),a.push(n)},n=0;n<e;n++)r(n);return a}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,i=this.getElTooltip(),a=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),s="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,r=e.globals.dom.Paper.node,n=this.getElGrid();n&&(this.seriesBound=n.getBoundingClientRect());var o,l=[],c=[],h={hoverArea:r,elGrid:n,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(s?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],h);else if(a&&!e.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var u=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var g=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");g.length>0&&this.addPathsEventListeners(g,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,n=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(r=r+e.globals.svgWidth-a+10),o.indexOf("bottom")>-1&&(n=n+e.globals.svgHeight-s-10),t.style.left=r+"px",t.style.top=n+"px",{x:r,y:n,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,a=function(a){var s={paths:e[a],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[a].addEventListener(t,i.onSeriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s<e.length;s++)a(s)}},{key:"onSeriesHover",value:function(e,t){var i=this,a=Date.now()-this.lastHoverTime;a>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(e,t)}),100-a))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),r={paths:e.paths,tooltipEl:s,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,a=e.opt,s=e.e,r=t.w,n=this.getElTooltip();n&&(i.tooltipRect={x:0,y:0,ttWidth:n.getBoundingClientRect().width,ttHeight:n.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new W(t).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,i,a=e.e,s=e.opt,r=this.w,n=s.elGrid.getBoundingClientRect(),o="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=o,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,l<n.top||l>n.top+n.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var g=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&g.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(a,o,l,s);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:t,y:i,type:r.config.chart.type});t=p.x,i=p.y,h.style.left=t+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:t,y:i});if(this.yaxisTooltips.length)for(var f=0;f<r.config.yaxis.length;f++)this.axesTooltip.drawYaxisTooltipText(f,l,this.xyRatios);s.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==a.type&&"touchend"!==a.type||this.handleMouseOut(s)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,a=e.tooltipRect,s=this.w,r=i.paths.getAttribute("rel"),n=this.getElTooltip(),o=s.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){n.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1});var l=s.globals.clientX-o.left-a.ttWidth/2,c=s.globals.clientY-o.top-a.ttHeight-10;if(n.style.left=l+"px",n.style.top=c+"px",s.config.legend.tooltipHoverFormatter){var h=r-1,d=(0,s.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:s});this.legendLabels[h].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(n.classList.remove("apexcharts-active"),s.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,i,a){var s=this.w,r=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:t,clientY:i}),n=r.j,o=r.capturedSeries;s.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=a.elGrid.getBoundingClientRect();if(r.hoverX<0||r.hoverX>l.width)this.handleMouseOut(a);else if(null!==o)this.handleStickyCapturedSeries(e,o,a,n);else if(this.tooltipUtil.isXoverlap(n)||s.globals.isBarHorizontal){var c=s.globals.series.findIndex((function(e,t){return!s.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,n,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,i,a){var s=this.w;if(this.tConfig.shared||null!==s.globals.series[t][a]){if(void 0!==s.globals.series[t][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,i.ttItems):this.create(e,this,t,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex((function(e,t){return!s.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,r,a,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new S(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)t.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(e){var t=this.w,i=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,i){var a=this.w;"function"==typeof a.config.chart.events.markerClick&&a.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:a}])}},{key:"create",value:function(e,t,i,a,s){var n,o,l,c,h,d,u,g,p,f,m,x,b,v,y,C,w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,k=this.w,E=t;"mouseup"===e.type&&this.markerClick(e,i,a),null===w&&(w=this.tConfig.shared);var A=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(k.config.legend.tooltipHoverFormatter){var L=k.config.legend.tooltipHoverFormatter,M=Array.from(this.legendLabels);M.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var T=0;T<M.length;T++){var _=M[T],F=parseInt(_.getAttribute("i"),10),D=decodeURIComponent(_.getAttribute("data:default-text")),H=L(D,{seriesIndex:w?F:i,dataPointIndex:a,w:k});if(w)_.innerHTML=k.globals.collapsedSeriesIndices.indexOf(F)<0?H:D;else if(_.innerHTML=F===i?H:D,i===F)break}}var O=r(r({ttItems:s,i,j:a},void 0!==(null===(n=k.globals.seriesRange)||void 0===n||null===(o=n[i])||void 0===o||null===(l=o[a])||void 0===l||null===(c=l.y[0])||void 0===c?void 0:c.y1)&&{y1:null===(h=k.globals.seriesRange)||void 0===h||null===(d=h[i])||void 0===d||null===(u=d[a])||void 0===u||null===(g=u.y[0])||void 0===g?void 0:g.y1}),void 0!==(null===(p=k.globals.seriesRange)||void 0===p||null===(f=p[i])||void 0===f||null===(m=f[a])||void 0===m||null===(x=m.y[0])||void 0===x?void 0:x.y2)&&{y2:null===(b=k.globals.seriesRange)||void 0===b||null===(v=b[i])||void 0===v||null===(y=v[a])||void 0===y||null===(C=y.y[0])||void 0===C?void 0:C.y2});if(w){if(E.tooltipLabels.drawSeriesTexts(r(r({},O),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),A)k.globals.markers.largestSize>0?E.marker.enlargePoints(a):E.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var I=new S(this.ctx),z=k.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var N=0;N<z.length;N++)I.pathMouseEnter(z[N])}}else E.tooltipLabels.drawSeriesTexts(r({shared:!1},O)),this.tooltipUtil.hasBars()&&E.tooltipPosition.moveStickyTooltipOverBars(a,i),A&&E.tooltipPosition.moveMarkers(i,a)}}]),e}(),we=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return c(e,[{key:"handleBarDataLabels",value:function(e){var t=e.x,i=e.y,a=e.y1,s=e.y2,r=e.i,n=e.j,o=e.realIndex,l=e.groupIndex,c=e.series,h=e.barHeight,d=e.barWidth,u=e.barXPosition,g=e.barYPosition,p=e.visibleSeries,f=e.renderedPath,m=this.w,x=new S(this.barCtx.ctx),b=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,v=t+parseFloat(d*p),y=i+parseFloat(h*p);m.globals.isXNumeric&&!m.globals.isBarHorizontal&&(v=t+parseFloat(d*(p+1)),y=i+parseFloat(h*(p+1))-b);var C,w,k=null,E=t,A=i,P=m.config.dataLabels,L=this.barCtx.barOptions.dataLabels,M=this.barCtx.barOptions.dataLabels.total;void 0!==g&&this.barCtx.isRangeBar&&(y=g,A=g),void 0!==u&&this.barCtx.isVerticalGroupedRangeBar&&(v=u,E=u);var T=P.offsetX,_=P.offsetY,F={width:0,height:0};if(m.config.dataLabels.enabled){var D=this.barCtx.series[r][n];F=x.getTextRects(m.globals.yLabelFormatters[0](D),parseFloat(P.style.fontSize))}var H={x:t,y:i,i:r,j:n,realIndex:o,groupIndex:l||-1,renderedPath:f,bcx:v,bcy:y,barHeight:h,barWidth:d,textRects:F,strokeWidth:b,dataLabelsX:E,dataLabelsY:A,dataLabelsConfig:P,barDataLabelsConfig:L,barTotalDataLabelsConfig:M,offX:T,offY:_};return w=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(H):this.calculateColumnsDataLabelsPosition(H),f.attr({cy:w.bcy,cx:w.bcx,j:n,val:c[r][n],barHeight:h,barWidth:d}),C=this.drawCalculatedDataLabels({x:w.dataLabelsX,y:w.dataLabelsY,val:this.barCtx.isRangeBar?[a,s]:c[r][n],i:o,j:n,barWidth:d,barHeight:h,textRects:F,dataLabelsConfig:P}),m.config.chart.stacked&&M.enabled&&(k=this.drawTotalDataLabels({x:w.totalDataLabelsX,y:w.totalDataLabelsY,barWidth:d,barHeight:h,realIndex:o,textAnchor:w.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:o,j:n}),dataLabelsConfig:P,barTotalDataLabelsConfig:M})),{dataLabels:C,totalDataLabels:k}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,i=e.j,a=this.w,s=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(s=this.totalFormatter(s,r(r({},a),{},{seriesIndex:t,dataPointIndex:i,w:a}))),s}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,i,a=this.w,s=e.i,r=e.j,n=e.realIndex,o=e.groupIndex,l=e.y,c=e.bcx,h=e.barWidth,d=e.barHeight,u=e.textRects,g=e.dataLabelsX,p=e.dataLabelsY,f=e.dataLabelsConfig,m=e.barDataLabelsConfig,x=e.barTotalDataLabelsConfig,b=e.strokeWidth,v=e.offX,y=e.offY;d=Math.abs(d);var C="vertical"===a.config.plotOptions.bar.dataLabels.orientation,w=this.barCtx.barHelpers.getZeroValueEncounters({i:s,j:r}).zeroEncounters;c=c-b/2+(-1!==o?o*h:0);var k=a.globals.gridWidth/a.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?g+=h/2:(g=a.globals.isXNumeric?c-h/2+v:c-k+h/2+v,w>0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(g-=h*w)),C&&(g=g+u.height/2-b/2-2);var E=this.barCtx.series[s][r]<0,A=l;switch(this.barCtx.isReversed&&(A=l-d+(E?2*d:0),l-=d),m.position){case"center":p=C?E?A-d/2+y:A+d/2-y:E?A-d/2+u.height/2+y:A+d/2+u.height/2-y;break;case"bottom":p=C?E?A-d+y:A+d-y:E?A-d+u.height+b+y:A+d-u.height/2+b-y;break;case"top":p=C?E?A+y:A-y:E?A-u.height/2-y:A+u.height+y}if(this.barCtx.lastActiveBarSerieIndex===n&&x.enabled){var P=new S(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:r}),f.fontSize);t=E?A-P.height/2-y-x.offsetY+18:A+P.height+y+x.offsetY-18,i=g+x.offsetX}return a.config.chart.stacked||(p<0?p=0+b:p+u.height/3>a.globals.gridHeight&&(p=a.globals.gridHeight-b)),{bcx:c,bcy:l,dataLabelsX:g,dataLabelsY:p,totalDataLabelsX:i,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,a=e.i,s=e.j,r=e.realIndex,n=e.groupIndex,o=e.bcy,l=e.barHeight,c=e.barWidth,h=e.textRects,d=e.dataLabelsX,u=e.strokeWidth,g=e.dataLabelsConfig,p=e.barDataLabelsConfig,f=e.barTotalDataLabelsConfig,m=e.offX,x=e.offY,b=t.globals.gridHeight/t.globals.dataPoints;c=Math.abs(c);var v,y,C=(o+=-1!==n?n*l:0)-(this.barCtx.isRangeBar?0:b)+l/2+h.height/2+x-3,w="start",k=this.barCtx.series[a][s]<0,E=i;switch(this.barCtx.isReversed&&(E=i+c-(k?2*c:0),i=t.globals.gridWidth-c),p.position){case"center":d=k?E+c/2-m:Math.max(h.width/2,E-c/2)+m;break;case"bottom":d=k?E+c-u-Math.round(h.width/2)-m:E-c+u+Math.round(h.width/2)+m;break;case"top":d=k?E-u+Math.round(h.width/2)-m:E-u-Math.round(h.width/2)+m}if(this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var A=new S(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),g.fontSize);k?(v=E-u+Math.round(A.width/2)-m-f.offsetX-15,w="end"):v=E-u-Math.round(A.width/2)+m+f.offsetX+15,y=C+f.offsetY}return t.config.chart.stacked||(d<0?d=d+h.width+u:d+h.width/2>t.globals.gridWidth&&(d=t.globals.gridWidth-h.width-u)),{bcx:i,bcy:o,dataLabelsX:d,dataLabelsY:C,totalDataLabelsX:v,totalDataLabelsY:y,totalDataLabelsAnchor:w}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,s=e.i,n=e.j,o=e.textRects,l=e.barHeight,c=e.barWidth,h=e.dataLabelsConfig,d=this.w,u="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(t,", ").concat(i,")"));var g=new V(this.barCtx.ctx),p=new S(this.barCtx.ctx),f=h.formatter,m=null,x=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(h.enabled&&!x){m=p.group({class:"apexcharts-data-labels",transform:u});var b="";void 0!==a&&(b=f(a,r(r({},d),{},{seriesIndex:s,dataPointIndex:n,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var v=d.globals.series[s][n]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(h.textAnchor=v?"end":"start"),"center"===y&&(h.textAnchor="middle"),"bottom"===y&&(h.textAnchor=v?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(b,parseFloat(h.style.fontSize)).width&&(b=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(c)&&(b=""):o.height/1.6>Math.abs(l)&&(b=""));var C=r({},h);this.barCtx.isHorizontal&&a<0&&("start"===h.textAnchor?C.textAnchor="end":"end"===h.textAnchor&&(C.textAnchor="start")),g.plotDataLabelsText({x:t,y:i,text:b,i:s,j:n,parent:m,dataLabelsConfig:C,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(e){var t,i=e.x,a=e.y,s=e.val,r=e.barWidth,n=e.barHeight,o=e.realIndex,l=e.textAnchor,c=e.barTotalDataLabelsConfig,h=this.w,d=new S(this.barCtx.ctx);return c.enabled&&void 0!==i&&void 0!==a&&this.barCtx.lastActiveBarSerieIndex===o&&(t=d.drawText({x:i-(!h.globals.isBarHorizontal&&h.globals.seriesGroups.length?r/h.globals.seriesGroups.length:0),y:a-(h.globals.isBarHorizontal&&h.globals.seriesGroups.length?n/h.globals.seriesGroups.length:0),foreColor:c.style.color,text:s,textAnchor:l,fontFamily:c.style.fontFamily,fontSize:c.style.fontSize,fontWeight:c.style.fontWeight})),t}}]),e}(),Se=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t}return c(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var a=0;a<e[i].length;a++)t.globals.seriesX[i][a]>t.globals.minX&&t.globals.seriesX[i][a]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,i,a,s,r,n,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)s=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(s=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.barHeight,10)),o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(o=l.globals.gridWidth/2),t=(i-s*this.barCtx.seriesLen)/2;else{if(a=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(a=l.globals.gridWidth/l.globals.dataPoints),r=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(a=l.globals.minXDiff/d),(r=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),n=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return l.globals.barHeight=s,l.globals.barWidth=r,{x:e,y:t,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:n,zeroW:o}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})):(e.prevY=[],e.prevX=[],e.prevYF=[],e.prevXF=[],e.prevYVal=[],e.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,i,a){var s,r,n,o,l=this.w,c=new B(this.barCtx.ctx),h=null,d=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){e[t][i]>=a.from&&e[t][i]<=a.to&&(h=a.color)})),l.config.series[t].data[i]&&l.config.series[t].data[i].fillColor&&(h=l.config.series[t].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:a,dataPointIndex:i,color:h,value:e[t][i],fillConfig:null===(s=l.config.series[t].data[i])||void 0===s?void 0:s.fill,fillType:null!==(r=l.config.series[t].data[i])&&void 0!==r&&null!==(n=r.fill)&&void 0!==n&&n.type?null===(o=l.config.series[t].data[i])||void 0===o?void 0:o.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[t]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,i){var a=0,s=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(e){var t=this.w,i=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&"last"===t.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===e&&(i=!0):i=!0),i}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,a=e.x1,s=e.x2,r=e.y1,n=e.y2,o=e.elSeries,l=this.w,c=new S(this.barCtx.ctx),h=new W(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],u=c.drawRect(void 0!==a?a:0,void 0!==r?r:0,void 0!==s?s:l.globals.gridWidth,void 0!==n?n:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,a=e.barXPosition,s=e.y1,r=e.y2,n=e.strokeWidth,o=e.seriesGroup,l=e.realIndex,c=e.i,h=e.j,d=e.w,u=new S(this.barCtx.ctx);(n=Array.isArray(n)?n[l]:n)||(n=0);var g=i,p=a;null!==(t=d.config.series[l].data[h])&&void 0!==t&&t.columnWidthOffset&&(p=a-d.config.series[l].data[h].columnWidthOffset/2,g=i+d.config.series[l].data[h].columnWidthOffset);var f=p,m=p+g;s+=.001,r+=.001;var x=u.move(f,s),b=u.move(f,s),v=u.line(m-n,s);if(d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1)),x=x+u.line(f,r)+u.line(m-n,r)+u.line(m-n,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(f,s)+v+v+v+v+v+u.line(f,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(x=u.roundPathCorners(x,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.yArrj.push(r),y.yArrjF.push(Math.abs(s-r)),y.yArrjVal.push(this.barCtx.series[c][h])}return{pathTo:x,pathFrom:b}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,a=e.barHeight,s=e.x1,r=e.x2,n=e.strokeWidth,o=e.seriesGroup,l=e.realIndex,c=e.i,h=e.j,d=e.w,u=new S(this.barCtx.ctx);(n=Array.isArray(n)?n[l]:n)||(n=0);var g=i,p=a;null!==(t=d.config.series[l].data[h])&&void 0!==t&&t.barHeightOffset&&(g=i-d.config.series[l].data[h].barHeightOffset/2,p=a+d.config.series[l].data[h].barHeightOffset);var f=g,m=g+p;s+=.001,r+=.001;var x=u.move(s,f),b=u.move(s,f);d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1));var v=u.line(s,m-n);if(x=x+u.line(r,f)+u.line(r,m-n)+v+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(s,f)+v+v+v+v+v+u.line(s,f)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(x=u.roundPathCorners(x,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.xArrj.push(r),y.xArrjF.push(Math.abs(s-r)),y.xArrjVal.push(this.barCtx.series[c][h])}return{pathTo:x,pathFrom:b}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,a=0;a<t.length;a++){for(var s=0,r=0;r<t[i.globals.maxValsInArrayIndex].length;r++)s+=t[a][r];0===s&&this.barCtx.zeroSerieses.push(a)}}},{key:"getXForValue",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(i=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(i=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(e,t,i,a,s){var n=this,o=this.w,l=[],c=function(a,s){var r;l.push((h(r={},e,"x"===e?n.getXForValue(a,t,!1):n.getYForValue(a,i,!1)),h(r,"attrs",s),r))};if(o.globals.seriesGoals[a]&&o.globals.seriesGoals[a][s]&&Array.isArray(o.globals.seriesGoals[a][s])&&o.globals.seriesGoals[a][s].forEach((function(e){c(e.value,e)})),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,u={strokeHeight:"x"===e?0:o.globals.markers.size[a],strokeWidth:"x"===e?o.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};c(o.globals.seriesRangeStart[a][s],u),c(o.globals.seriesRangeEnd[a][s],r(r({},u),{},{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,a=e.goalX,s=e.goalY,r=e.barWidth,n=e.barHeight,o=new S(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(e){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:n/2,a=i+t+n/2;c=o.drawLine(e.x,a-2*t,e.x,a,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)})):Array.isArray(s)&&s.forEach((function(e){var i=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:r/2,a=t+i+r/2;c=o.drawLine(a-2*i,e.y,a,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,i=e.currPaths,a=e.color,s=this.w,r=t.x,n=t.x1,o=t.barYPosition,l=i.x,c=i.x1,h=i.barYPosition,d=o+i.barHeight,u=new S(this.barCtx.ctx),g=new y,p=u.move(n,d)+u.line(r,d)+u.line(l,h)+u.line(c,h)+u.line(n,d)+("around"===s.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return u.drawPath({d:p,fill:g.shadeColor(.5,y.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t=e.i,i=e.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach((function(e,a){e[i]&&s++,a<t&&0===e[i]&&r++})),{nonZeroColumns:s,zeroEncounters:r}}}]),e}(),ke=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isRangeBar=a.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!a.globals.isBarHorizontal&&a.globals.seriesRange.length&&a.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,null!==this.xyRatios&&(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.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var s=new W(this.ctx);this.lastActiveBarSerieIndex=s.getActiveConfigSeriesIndex("desc",["bar","column"]);var r=s.getBarSeriesIndices(),n=new k(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===r.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Se(this)}return c(e,[{key:"draw",value:function(e,t){var i=this.w,a=new S(this.ctx),s=new k(this.ctx,i);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,l=0;o<e.length;o++,l++){var c,h,d,u,g=void 0,p=void 0,f=[],m=[],x=i.globals.comboCharts?t[o]:o,b=a.group({class:"apexcharts-series",rel:o+1,seriesName:y.escapeString(i.globals.seriesNames[x]),"data:realIndex":x});this.ctx.series.addCollapsedClassToSeries(b,x),e[o].length>0&&(this.visibleI=this.visibleI+1);var v=0,C=0;this.yRatio.length>1&&(this.yaxisIndex=x),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var w=this.barHelpers.initialPositions();p=w.y,v=w.barHeight,h=w.yDivision,u=w.zeroW,g=w.x,C=w.barWidth,c=w.xDivision,d=w.zeroH,this.horizontal||m.push(g+C/2);var E=a.group({class:"apexcharts-datalabels","data:realIndex":x});i.globals.delayedElements.push({el:E.node}),E.node.classList.add("apexcharts-element-hidden");var A=a.group({class:"apexcharts-bar-goals-markers"}),P=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");for(var L=0;L<i.globals.dataPoints;L++){var M=this.barHelpers.getStrokeWidth(o,L,x),T=null,_={indexes:{i:o,j:L,realIndex:x,bc:l},x:g,y:p,strokeWidth:M,elSeries:b};this.isHorizontal?(T=this.drawBarPaths(r(r({},_),{},{barHeight:v,zeroW:u,yDivision:h})),C=this.series[o][L]/this.invertedYRatio):(T=this.drawColumnPaths(r(r({},_),{},{xDivision:c,barWidth:C,zeroH:d})),v=this.series[o][L]/this.yRatio[this.yaxisIndex]);var F=this.barHelpers.getPathFillColor(e,o,L,x);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&L>0){var D=this.barHelpers.drawBarShadow({color:"string"==typeof F&&-1===(null==F?void 0:F.indexOf("url"))?F:y.hexToRgba(i.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:T});D&&P.add(D)}this.pathArr.push(T);var H=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:T.barYPosition,goalX:T.goalX,goalY:T.goalY,barHeight:v,barWidth:C});H&&A.add(H),p=T.y,g=T.x,L>0&&m.push(g+C/2),f.push(p),this.renderSeries({realIndex:x,pathFill:F,j:L,i:o,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:M,elSeries:b,x:g,y:p,series:e,barHeight:T.barHeight?T.barHeight:v,barWidth:T.barWidth?T.barWidth:C,elDataLabelsWrap:E,elGoalsMarkers:A,elBarShadows:P,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[x]=m,i.globals.seriesYvalues[x]=f,n.add(b)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,a=e.lineFill,s=e.j,r=e.i,n=e.groupIndex,o=e.pathFrom,l=e.pathTo,c=e.strokeWidth,h=e.elSeries,d=e.x,u=e.y,g=e.y1,p=e.y2,f=e.series,m=e.barHeight,x=e.barWidth,b=e.barXPosition,v=e.barYPosition,y=e.elDataLabelsWrap,C=e.elGoalsMarkers,k=e.elBarShadows,E=e.visibleSeries,A=e.type,P=this.w,L=new S(this.ctx);a||(a=this.barOptions.distributed?P.globals.stroke.colors[s]:P.globals.stroke.colors[t]),P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var M=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,T=L.renderPaths({i:r,j:s,realIndex:t,pathFrom:o,pathTo:l,stroke:a,strokeWidth:c,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:M,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(A,"-area")});T.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var _=P.config.forecastDataPoints;_.count>0&&s>=P.globals.dataPoints-_.count&&(T.node.setAttribute("stroke-dasharray",_.dashArray),T.node.setAttribute("stroke-width",_.strokeWidth),T.node.setAttribute("fill-opacity",_.fillOpacity)),void 0!==g&&void 0!==p&&(T.attr("data-range-y1",g),T.attr("data-range-y2",p)),new w(this.ctx).setSelectionFilter(T,t,s),h.add(T);var F=new we(this).handleBarDataLabels({x:d,y:u,y1:g,y2:p,i:r,j:s,series:f,realIndex:t,groupIndex:n,barHeight:m,barWidth:x,barXPosition:b,barYPosition:v,renderedPath:T,visibleSeries:E});return null!==F.dataLabels&&y.add(F.dataLabels),F.totalDataLabels&&y.add(F.totalDataLabels),h.add(y),C&&h.add(C),k&&h.add(k),h}},{key:"drawBarPaths",value:function(e){var t,i=e.indexes,a=e.barHeight,s=e.strokeWidth,r=e.zeroW,n=e.x,o=e.y,l=e.yDivision,c=e.elSeries,h=this.w,d=i.i,u=i.j;if(h.globals.isXNumeric)t=(o=(h.globals.seriesX[d][u]-h.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var g=0,p=0;h.globals.seriesPercent.forEach((function(e,t){e[u]&&g++,t<d&&0===e[u]&&p++})),g>0&&(a=this.seriesLen*a/g),t=o+a*this.visibleI,t-=a*p}else t=o+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][u],r)-r)/2),n=this.barHelpers.getXForValue(this.series[d][u],r);var f=this.barHelpers.getBarpaths({barYPosition:t,barHeight:a,x1:r,x2:n,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:d,j:u,w:h});return h.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:u,i:d,y1:t-a*this.visibleI,y2:a*this.seriesLen,elSeries:c}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x1:r,x:n,y:o,goalX:this.barHelpers.getGoalValues("x",r,null,d,u),barYPosition:t,barHeight:a}}},{key:"drawColumnPaths",value:function(e){var t,i=e.indexes,a=e.x,s=e.y,r=e.xDivision,n=e.barWidth,o=e.zeroH,l=e.strokeWidth,c=e.elSeries,h=this.w,d=i.realIndex,u=i.i,g=i.j,p=i.bc;if(h.globals.isXNumeric){var f=this.getBarXForNumericXAxis({x:a,j:g,realIndex:d,barWidth:n});a=f.x,t=f.barXPosition}else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var m=this.barHelpers.getZeroValueEncounters({i:u,j:g}),x=m.nonZeroColumns,b=m.zeroEncounters;x>0&&(n=this.seriesLen*n/x),t=a+n*this.visibleI,t-=n*b}else t=a+n*this.visibleI;s=this.barHelpers.getYForValue(this.series[u][g],o);var v=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:n,y1:o,y2:s,strokeWidth:l,series:this.series,realIndex:i.realIndex,i:u,j:g,w:h});return h.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:p,j:g,i:u,x1:t-l/2-n*this.visibleI,x2:n*this.seriesLen+l/2,elSeries:c}),{pathTo:v.pathTo,pathFrom:v.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,o,u,g),barXPosition:t,barWidth:n}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,i=e.barWidth,a=e.realIndex,s=e.j,r=this.w,n=a;return r.globals.seriesX[a].length||(n=r.globals.maxValsInArrayIndex),r.globals.seriesX[n][s]&&(t=(r.globals.seriesX[n][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:t+i*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var i,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var r=a.globals.previousPaths[s];r.paths&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&void 0!==a.globals.previousPaths[s].paths[t]&&(i=a.globals.previousPaths[s].paths[t].d)}return i}}]),e}(),Ee=function(e){d(i,ke);var t=f(i);function i(){return o(this,i),t.apply(this,arguments)}return c(i,[{key:"draw",value:function(e,t){var i=this,a=this.w;this.graphics=new S(this.ctx),this.bar=new ke(this.ctx,this.xyRatios);var s=new k(this.ctx,a);e=s.getLogSeries(e),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===a.config.chart.stackType&&(e=a.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var n=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,l=0,c=function(s,c){var h=void 0,d=void 0,u=void 0,g=void 0,p=-1;i.groupCtx=i,a.globals.seriesGroups.forEach((function(e,t){e.indexOf(a.config.series[s].name)>-1&&(p=t)})),-1!==p&&(i.groupCtx=i[a.globals.seriesGroups[p]]);var f=[],m=[],x=a.globals.comboCharts?t[s]:s;i.yRatio.length>1&&(i.yaxisIndex=x),i.isReversed=a.config.yaxis[i.yaxisIndex]&&a.config.yaxis[i.yaxisIndex].reversed;var b=i.graphics.group({class:"apexcharts-series",seriesName:y.escapeString(a.globals.seriesNames[x]),rel:s+1,"data:realIndex":x});i.ctx.series.addCollapsedClassToSeries(b,x);var v=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":x}),C=i.graphics.group({class:"apexcharts-bar-goals-markers"}),w=0,S=0,k=i.initialPositions(o,l,h,d,u,g);l=k.y,w=k.barHeight,d=k.yDivision,g=k.zeroW,o=k.x,S=k.barWidth,h=k.xDivision,u=k.zeroH,a.globals.barHeight=w,a.globals.barWidth=S,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map((function(e){return u})),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map((function(e){return 0})));for(var E=0;E<a.globals.dataPoints;E++){var A=i.barHelpers.getStrokeWidth(s,E,x),P={indexes:{i:s,j:E,realIndex:x,bc:c},strokeWidth:A,x:o,y:l,elSeries:b,groupIndex:p,seriesGroup:a.globals.seriesGroups[p]},L=null;i.isHorizontal?(L=i.drawStackedBarPaths(r(r({},P),{},{zeroW:g,barHeight:w,yDivision:d})),S=i.series[s][E]/i.invertedYRatio):(L=i.drawStackedColumnPaths(r(r({},P),{},{xDivision:h,barWidth:S,zeroH:u})),w=i.series[s][E]/i.yRatio[i.yaxisIndex]);var M=i.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:w,barWidth:S});M&&C.add(M),l=L.y,o=L.x,f.push(o),m.push(l);var T=i.barHelpers.getPathFillColor(e,s,E,x);b=i.renderSeries({realIndex:x,pathFill:T,j:E,i:s,groupIndex:p,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:A,elSeries:b,x:o,y:l,series:e,barHeight:w,barWidth:S,elDataLabelsWrap:v,elGoalsMarkers:C,type:"bar",visibleSeries:0})}a.globals.seriesXvalues[x]=f,a.globals.seriesYvalues[x]=m,i.groupCtx.prevY.push(i.groupCtx.yArrj),i.groupCtx.prevYF.push(i.groupCtx.yArrjF),i.groupCtx.prevYVal.push(i.groupCtx.yArrjVal),i.groupCtx.prevX.push(i.groupCtx.xArrj),i.groupCtx.prevXF.push(i.groupCtx.xArrjF),i.groupCtx.prevXVal.push(i.groupCtx.xArrjVal),n.add(b)},h=0,d=0;h<e.length;h++,d++)c(h,d);return n}},{key:"initialPositions",value:function(e,t,i,a,s,r){var n,o,l,c,h=this.w;return this.isHorizontal?(l=(l=a=h.globals.gridHeight/h.globals.dataPoints)*parseInt(h.config.plotOptions.bar.barHeight,10)/100,-1===String(h.config.plotOptions.bar.barHeight).indexOf("%")&&(l=parseInt(h.config.plotOptions.bar.barHeight,10)),r=this.baseLineInvertedY+h.globals.padHorizontal+(this.isReversed?h.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),t=(a-l)/2):(c=i=h.globals.gridWidth/h.globals.dataPoints,c=h.globals.isXNumeric&&h.globals.dataPoints>1?(i=h.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(h.config.plotOptions.bar.columnWidth,10)/100,-1===String(h.config.plotOptions.bar.columnWidth).indexOf("%")&&(c=parseInt(h.config.plotOptions.bar.columnWidth,10)),s=h.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?h.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),e=h.globals.padHorizontal+(i-c)/2),{x:e,y:t,yDivision:a,xDivision:i,barHeight:null!==(n=h.globals.seriesGroups)&&void 0!==n&&n.length?l/h.globals.seriesGroups.length:l,barWidth:null!==(o=h.globals.seriesGroups)&&void 0!==o&&o.length?c/h.globals.seriesGroups.length:c,zeroH:s,zeroW:r}}},{key:"drawStackedBarPaths",value:function(e){for(var t,i=e.indexes,a=e.barHeight,s=e.strokeWidth,r=e.zeroW,n=e.x,o=e.y,l=e.groupIndex,c=e.seriesGroup,h=e.yDivision,d=e.elSeries,u=this.w,g=o+(-1!==l?l*a:0),p=i.i,f=i.j,m=0,x=0;x<this.groupCtx.prevXF.length;x++)m+=this.groupCtx.prevXF[x][f];var b=p;if(c&&(b=c.indexOf(u.config.series[p].name)),b>0){var v=r;this.groupCtx.prevXVal[b-1][f]<0?v=this.series[p][f]>=0?this.groupCtx.prevX[b-1][f]+m-2*(this.isReversed?m:0):this.groupCtx.prevX[b-1][f]:this.groupCtx.prevXVal[b-1][f]>=0&&(v=this.series[p][f]>=0?this.groupCtx.prevX[b-1][f]:this.groupCtx.prevX[b-1][f]-m+2*(this.isReversed?m:0)),t=v}else t=r;n=null===this.series[p][f]?t:t+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var y=this.barHelpers.getBarpaths({barYPosition:g,barHeight:a,x1:t,x2:n,strokeWidth:s,series:this.series,realIndex:i.realIndex,seriesGroup:c,i:p,j:f,w:u});return this.barHelpers.barBackground({j:f,i:p,y1:g,y2:a,elSeries:d}),o+=h,{pathTo:y.pathTo,pathFrom:y.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,p,f),barYPosition:g,x:n,y:o}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,i=e.x,a=e.y,s=e.xDivision,r=e.barWidth,n=e.zeroH,o=e.groupIndex,l=e.seriesGroup,c=e.elSeries,h=this.w,d=t.i,u=t.j,g=t.bc;if(h.globals.isXNumeric){var p=h.globals.seriesX[d][u];p||(p=0),i=(p-h.globals.minX)/this.xRatio-r/2,h.globals.seriesGroups.length&&(i=(p-h.globals.minX)/this.xRatio-r/2*h.globals.seriesGroups.length)}for(var f,m=i+(-1!==o?o*r:0),x=0,b=0;b<this.groupCtx.prevYF.length;b++)x+=isNaN(this.groupCtx.prevYF[b][u])?0:this.groupCtx.prevYF[b][u];var v=d;if(l&&(v=l.indexOf(h.config.series[d].name)),v>0&&!h.globals.isXNumeric||v>0&&h.globals.isXNumeric&&h.globals.seriesX[d-1][u]===h.globals.seriesX[d][u]){var y,C,w,S=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[v-1]&&this.groupCtx.prevY[v-1].length)for(var k=1;k<S;k++){var E;if(!isNaN(null===(E=this.groupCtx.prevY[v-k])||void 0===E?void 0:E[u])){w=this.groupCtx.prevY[v-k][u];break}}for(var A=1;A<S;A++){var P,L;if((null===(P=this.groupCtx.prevYVal[v-A])||void 0===P?void 0:P[u])<0){C=this.series[d][u]>=0?w-x+2*(this.isReversed?x:0):w;break}if((null===(L=this.groupCtx.prevYVal[v-A])||void 0===L?void 0:L[u])>=0){C=this.series[d][u]>=0?w:w+x-2*(this.isReversed?x:0);break}}void 0===C&&(C=h.globals.gridHeight),f=null!==(y=this.groupCtx.prevYF[0])&&void 0!==y&&y.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,v).every((function(e){return e.every((function(e){return isNaN(e)}))}))?n:C}else f=n;a=this.series[d][u]?f-this.series[d][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][u]/this.yRatio[this.yaxisIndex]:0):f;var M=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:r,y1:f,y2:a,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:u,w:h});return this.barHelpers.barBackground({bc:g,j:u,i:d,x1:m,x2:r,elSeries:c}),i+=s,{pathTo:M.pathTo,pathFrom:M.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,n,d,u),barXPosition:m,x:h.globals.isXNumeric?i-s:i,y:a}}}]),i}(),Ae=function(e){d(i,ke);var t=f(i);function i(){return o(this,i),t.apply(this,arguments)}return c(i,[{key:"draw",value:function(e,t,i){var a=this,s=this.w,n=new S(this.ctx),o=s.globals.comboCharts?t:s.config.chart.type,l=new B(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=s.config.plotOptions.bar.horizontal;var c=new k(this.ctx,s);e=c.getLogSeries(e),this.series=e,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var h=n.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),d=function(t){a.isBoxPlot="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[t].type;var o,c,d,u,g,p,f=void 0,m=void 0,x=[],b=[],v=s.globals.comboCharts?i[t]:t,C=n.group({class:"apexcharts-series",seriesName:y.escapeString(s.globals.seriesNames[v]),rel:t+1,"data:realIndex":v});a.ctx.series.addCollapsedClassToSeries(C,v),e[t].length>0&&(a.visibleI=a.visibleI+1),a.yRatio.length>1&&(a.yaxisIndex=v);var w=a.barHelpers.initialPositions();m=w.y,g=w.barHeight,c=w.yDivision,u=w.zeroW,f=w.x,p=w.barWidth,o=w.xDivision,d=w.zeroH,b.push(f+p/2);for(var S=n.group({class:"apexcharts-datalabels","data:realIndex":v}),k=function(i){var n=a.barHelpers.getStrokeWidth(t,i,v),h=null,y={indexes:{i:t,j:i,realIndex:v},x:f,y:m,strokeWidth:n,elSeries:C};h=a.isHorizontal?a.drawHorizontalBoxPaths(r(r({},y),{},{yDivision:c,barHeight:g,zeroW:u})):a.drawVerticalBoxPaths(r(r({},y),{},{xDivision:o,barWidth:p,zeroH:d})),m=h.y,f=h.x,i>0&&b.push(f+p/2),x.push(m),h.pathTo.forEach((function(r,o){var c=!a.isBoxPlot&&a.candlestickOptions.wick.useFillColor?h.color[o]:s.globals.stroke.colors[t],d=l.fillPath({seriesNumber:v,dataPointIndex:i,color:h.color[o],value:e[t][i]});a.renderSeries({realIndex:v,pathFill:d,lineFill:c,j:i,i:t,pathFrom:h.pathFrom,pathTo:r,strokeWidth:n,elSeries:C,x:f,y:m,series:e,barHeight:g,barWidth:p,elDataLabelsWrap:S,visibleSeries:a.visibleI,type:s.config.chart.type})}))},E=0;E<s.globals.dataPoints;E++)k(E);s.globals.seriesXvalues[v]=b,s.globals.seriesYvalues[v]=x,h.add(C)},u=0;u<e.length;u++)d(u);return h}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,i=e.x;e.y;var a=e.xDivision,s=e.barWidth,r=e.zeroH,n=e.strokeWidth,o=this.w,l=new S(this.ctx),c=t.i,h=t.j,d=!0,u=o.config.plotOptions.candlestick.colors.upward,g=o.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.yRatio[this.yaxisIndex],m=t.realIndex,x=this.getOHLCValue(m,h),b=r,v=r;x.o>x.c&&(d=!1);var y=Math.min(x.o,x.c),C=Math.max(x.o,x.c),w=x.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[m][h]-o.globals.minX)/this.xRatio-s/2);var k=i+s*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(y=r,C=r):(y=r-y/f,C=r-C/f,b=r-x.h/f,v=r-x.l/f,w=r-x.m/f);var E=l.move(k,r),A=l.move(k+s/2,y);return o.globals.previousPaths.length>0&&(A=this.getPreviousPath(m,h,!0)),E=this.isBoxPlot?[l.move(k,y)+l.line(k+s/2,y)+l.line(k+s/2,b)+l.line(k+s/4,b)+l.line(k+s-s/4,b)+l.line(k+s/2,b)+l.line(k+s/2,y)+l.line(k+s,y)+l.line(k+s,w)+l.line(k,w)+l.line(k,y+n/2),l.move(k,w)+l.line(k+s,w)+l.line(k+s,C)+l.line(k+s/2,C)+l.line(k+s/2,v)+l.line(k+s-s/4,v)+l.line(k+s/4,v)+l.line(k+s/2,v)+l.line(k+s/2,C)+l.line(k,C)+l.line(k,w)+"z"]:[l.move(k,C)+l.line(k+s/2,C)+l.line(k+s/2,b)+l.line(k+s/2,C)+l.line(k+s,C)+l.line(k+s,y)+l.line(k+s/2,y)+l.line(k+s/2,v)+l.line(k+s/2,y)+l.line(k,y)+l.line(k,C-n/2)],A+=l.move(k,y),o.globals.isXNumeric||(i+=a),{pathTo:E,pathFrom:A,x:i,y:C,barXPosition:k,color:this.isBoxPlot?p:d?[u]:[g]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var i=e.y,a=e.yDivision,s=e.barHeight,r=e.zeroW,n=e.strokeWidth,o=this.w,l=new S(this.ctx),c=t.i,h=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,g=t.realIndex,p=this.getOHLCValue(g,h),f=r,m=r,x=Math.min(p.o,p.c),b=Math.max(p.o,p.c),v=p.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[g][h]-o.globals.minX)/this.invertedXRatio-s/2);var y=i+s*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(x=r,b=r):(x=r+x/u,b=r+b/u,f=r+p.h/u,m=r+p.l/u,v=r+p.m/u);var C=l.move(r,y),w=l.move(x,y+s/2);return o.globals.previousPaths.length>0&&(w=this.getPreviousPath(g,h,!0)),C=[l.move(x,y)+l.line(x,y+s/2)+l.line(f,y+s/2)+l.line(f,y+s/2-s/4)+l.line(f,y+s/2+s/4)+l.line(f,y+s/2)+l.line(x,y+s/2)+l.line(x,y+s)+l.line(v,y+s)+l.line(v,y)+l.line(x+n/2,y),l.move(v,y)+l.line(v,y+s)+l.line(b,y+s)+l.line(b,y+s/2)+l.line(m,y+s/2)+l.line(m,y+s-s/4)+l.line(m,y+s/4)+l.line(m,y+s/2)+l.line(b,y+s/2)+l.line(b,y)+l.line(v,y)+"z"],w+=l.move(x,y),o.globals.isXNumeric||(i+=a),{pathTo:C,pathFrom:w,x:b,y:i,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(e,t){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[e][t]:i.globals.seriesCandleO[e][t],h:this.isBoxPlot?i.globals.seriesCandleO[e][t]:i.globals.seriesCandleH[e][t],m:i.globals.seriesCandleM[e][t],l:this.isBoxPlot?i.globals.seriesCandleC[e][t]:i.globals.seriesCandleL[e][t],c:this.isBoxPlot?i.globals.seriesCandleL[e][t]:i.globals.seriesCandleC[e][t]}}}]),i}(),Pe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(e,i){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,i,a){var s=this.w,r=1,n=s.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);s.globals.hasNegs||a?r=s.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*n):(1-o.percent/100)*(1.25*n):o.percent<=0?1-(1+o.percent/100)*n:(1-o.percent/100)*n:(r=1-o.percent/100,"treemap"===e&&(r=(1-o.percent/100)*(1.25*n)));var l=o.color,c=new y;return s.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?y.hexToRgba(c.shadeColor(-1*r,o.color),s.config.fill.opacity):y.hexToRgba(c.shadeColor(r,o.color),s.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var a=this.w,s=a.globals.series[t][i],r=a.config.plotOptions[e],n=r.colorScale.inverse?i:t;r.distributed&&"treemap"===a.config.chart.type&&(n=i);var o=a.globals.colors[n],l=null,c=Math.min.apply(Math,x(a.globals.series[t])),h=Math.max.apply(Math,x(a.globals.series[t]));r.distributed||"heatmap"!==e||(c=a.globals.minY,h=a.globals.maxY),void 0!==r.colorScale.min&&(c=r.colorScale.min<a.globals.minY?r.colorScale.min:a.globals.minY,h=r.colorScale.max>a.globals.maxY?r.colorScale.max:a.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*s/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(e,t){if(s>=e.from&&s<=e.to){o=e.color,l=e.foreColor?e.foreColor:null,c=e.from,h=e.to;var i=Math.abs(h)+Math.abs(c);u=100*s/(0===i?i-1e-6:i)}})),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,a=e.y,s=e.i,r=e.j,n=e.colorProps,o=e.fontSize,l=this.w.config.dataLabels,c=new S(this.ctx),h=new V(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,g=l.offsetY,p=i+u,f=a+parseFloat(l.style.fontSize)/3+g;h.plotDataLabelsText({x:p,y:f,text:t,i:s,j:r,color:n.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new S(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Le=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Pe(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return c(e,[{key:"draw",value:function(e){var t=this.w,i=new S(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var s=t.globals.gridWidth/t.globals.dataPoints,r=t.globals.gridHeight/t.globals.series.length,n=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:y.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new w(this.ctx).dropShadow(h,d,c)}for(var u=0,g=t.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var f=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),m=f.color,x=f.colorProps;"image"===t.config.fill.type&&(m=new B(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?x.percent<0?1-(1+x.percent/100):g+x.percent/100:x.percent/100,patternID:y.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:s,height:t.config.fill.image.height?t.config.fill.image.height:r}));var b=this.rectRadius,v=i.drawRect(u,n,s,r,b);if(v.attr({cx:u,cy:n}),v.node.classList.add("apexcharts-heatmap-rect"),h.add(v),v.attr({fill:m,i:c,index:c,j:p,val:e[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(v),t.config.chart.animations.enabled&&!t.globals.dataChanged){var C=1;t.globals.resized||(C=t.config.chart.animations.speed),this.animateHeatMap(v,u,n,s,r,C)}if(t.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){k=this.dynamicAnim.speed;var E=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;E||(E="rgba(255, 255, 255, 0)"),this.animateHeatColor(v,y.isColorHex(E)?E:y.rgb2hex(E),y.isColorHex(m)?m:y.rgb2hex(m),k)}}var A=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),P=this.helpers.calculateDataLabels({text:A,x:u+s/2,y:n+r/2,i:c,j:p,colorProps:x,series:l});null!==P&&h.add(P),u+=s}n+=r,a.add(h)}var L=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?L.unshift(""):L.push(""),t.globals.yAxisScale[0].result=L,a}},{key:"animateHeatMap",value:function(e,t,i,a,s,r){var n=new C(this.ctx);n.animateRect(e,{x:t+a/2,y:i+s/2,width:0,height:0},{x:t,y:i,width:a,height:s},r,(function(){n.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,i,a){e.attr({fill:t}).animate(a).attr({fill:i})}}]),e}(),Me=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawYAxisTexts",value:function(e,t,i,a){var s=this.w,r=s.config.yaxis[0],n=s.globals.yLabelFormatters[0];return new S(this.ctx).drawText({x:e+r.labels.offsetX,y:t+r.labels.offsetY,text:n(a,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),e}(),Te=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var i=this.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,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return c(e,[{key:"draw",value:function(e){var t=this,i=this.w,a=new S(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var s=0,r=0;r<e.length;r++)s+=y.negToZero(e[r]);var n=[],o=a.group();0===s&&(s=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<e.length;l++){var c=this.fullAngle*y.negToZero(e[l])/s;n.push(c),"polarArea"===this.chartType?(n[l]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=y.negToZero(i.globals.previousPaths[u]);for(var g=0;g<i.globals.previousPaths.length;g++)h=this.fullAngle*y.negToZero(i.globals.previousPaths[g])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var p=i.config.plotOptions.pie.customScale,f=i.globals.gridWidth/2,m=i.globals.gridHeight/2,x=f-i.globals.gridWidth/2*p,b=m-i.globals.gridHeight/2*p;if("donut"===this.chartType){var v=a.drawCircle(this.donutSize);v.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),o.add(v)}var C=this.drawArcs(n,e);if(this.sliceLabels.forEach((function(e){C.add(e)})),o.attr({transform:"translate(".concat(x,", ").concat(b,") scale(").concat(p,")")}),o.add(C),this.ret.add(o),this.donutDataLabels.show){var w=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:x,translateY:b});this.ret.add(w)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var i=this.w,a=new w(this.ctx),s=new S(this.ctx),r=new B(this.ctx),n=s.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<e.length;d++){var u=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:y.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});n.add(u),l=h,c=(o=c)+e[d],h=l+this.prevSectorAngleArr[d];var g=c<o?this.fullAngle+c-o:c-o,p=r.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),f=this.getChangedPath(l,h),m=s.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),a.setSelectionFilter(m,0,d),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;a.dropShadow(m,x,d)}this.addListeners(m,this.donutDataLabels),S.setAttrs(m.node,{"data:angle":g,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=y.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle):"donut"===this.chartType&&(b=y.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle)),u.add(m);var v=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(v=g/this.fullAngle*i.config.chart.animations.speed)&&(v=1),this.animDur=v+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:v}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var C=b.x,k=b.y,E=100*g/this.fullAngle+"%";if(0!==g&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var A=i.config.dataLabels.formatter;void 0!==A&&(E=A(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var P=i.globals.dataLabels.style.colors[d],L=s.group({class:"apexcharts-datalabels"}),M=s.drawText({x:C,y:k,text:E,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:P});if(L.add(M),i.config.dataLabels.dropShadow.enabled){var T=i.config.dataLabels.dropShadow;a.dropShadow(M,T)}M.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(M.node.classList.add("apexcharts-pie-label-delay"),M.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(L)}}}return n}},{key:"addListeners",value:function(e,t){var i=new S(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var i=this.w,a=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,s=a,r=t.startAngle,n=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(r=t.prevEndAngle,s=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(a+n>this.fullAngle?t.endAngle=t.endAngle-(a+n):a+n<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(a+n)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(e,r,n,a,s,t)}},{key:"animateArc",value:function(e,t,i,a,s,r){var n,o=this,l=this.w,c=new C(this.ctx),h=r.size;(isNaN(t)||isNaN(s))&&(t=i,s=a,r.dur=0);var d=a,u=i,g=t<i?this.fullAngle+t-i:t-i;l.globals.dataChanged&&r.shouldSetPrevPaths&&r.prevEndAngle&&(n=o.getPiePath({me:o,startAngle:r.prevStartAngle,angle:r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle,size:h}),e.attr({d:n})),0!==r.dur?e.animate(r.dur,l.globals.easing,r.animBeginArr[r.i]).afterAll((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),r.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=g+(a-g)*l,r.animateStartingPos&&(d=s+(a-s)*l,u=t-s+(i-(t-s))*l),n=o.getPiePath({me:o,startAngle:u,angle:d,size:h}),e.node.setAttribute("data:pathOrig",n),e.attr({d:n})})):(n=o.getPiePath({me:o,startAngle:u,angle:a,size:h}),r.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",n),e.attr({d:n,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,a=this,s=a.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==r.attr("data:pieClicked")){var n=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(n,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),r.attr("data:pieClicked","true");var o=parseInt(r.attr("data:startAngle"),10),l=parseInt(r.attr("data:angle"),10);t=a.getPiePath({me:a,startAngle:o,angle:l,size:s}),360!==l&&r.plot(t)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}},{key:"getPiePath",value:function(e){var t,i=e.me,a=e.startAngle,s=e.angle,r=e.size,n=new S(this.ctx),o=a,l=Math.PI*(o-90)/180,c=s+a;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var h=Math.PI*(c-90)/180,d=i.centerX+r*Math.cos(l),u=i.centerY+r*Math.sin(l),g=i.centerX+r*Math.cos(h),p=i.centerY+r*Math.sin(h),f=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),m=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,o),x=s>180?1:0,b=["M",d,u,"A",r,r,0,x,1,g,p];return t="donut"===i.chartType?[].concat(b,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,x,0,m.x,m.y,"L",d,u,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(b,["L",i.centerX,i.centerY,"L",d,u]).join(" "):[].concat(b).join(" "),n.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new $(this.ctx),a=new S(this.ctx),s=new Me(this.ctx),r=a.group(),n=a.group(),o=i.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var h=t.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var g=a.drawCircle(h);if(g.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=s.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);n.add(p)}r.add(g),h-=d}this.drawSpokes(e),e.add(r),e.add(n)}},{key:"renderInnerDataLabels",value:function(e,t){var i=this.w,a=new S(this.ctx),s=a.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),r=e.total.show;s.node.style.opacity=t.opacity;var n,o,l=t.centerX,c=t.centerY;n=void 0===e.name.color?i.globals.colors[0]:e.name.color;var h=e.name.fontSize,d=e.name.fontFamily,u=e.name.fontWeight;o=void 0===e.value.color?i.config.chart.foreColor:e.value.color;var g=e.value.formatter,p="",f="";if(r?(n=e.total.color,h=e.total.fontSize,d=e.total.fontFamily,u=e.total.fontWeight,f=e.total.label,p=e.total.formatter(i)):1===i.globals.series.length&&(p=g(i.globals.series[0],i),f=i.globals.seriesNames[0]),f&&(f=e.name.formatter(f,e.total.show,i)),e.name.show){var m=a.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:f,textAnchor:"middle",foreColor:n,fontSize:h,fontWeight:u,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),s.add(m)}if(e.value.show){var x=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,b=a.drawText({x:l,y:c+x,text:p,textAnchor:"middle",foreColor:o,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),s.add(b)}return s}},{key:"printInnerLabels",value:function(e,t,i,a){var s,r=this.w;a?s=void 0===e.name.color?r.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:e.name.color:r.globals.series.length>1&&e.total.show&&(s=e.total.color);var n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,r),a||"function"!=typeof e.total.formatter||(i=e.total.formatter(r));var l=t===e.total.label;t=e.name.formatter(t,l,r),null!==n&&(n.textContent=t),null!==o&&(o.textContent=i),null!==n&&(n.style.fill=s)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,a=e.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,s,a,e);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,a=new S(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var r=[],n=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)r.push(y.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+n*o));r.forEach((function(i,r){var n=a.drawLine(i.x,i.y,t.centerX,t.centerY,Array.isArray(s.connectorColors)?s.connectorColors[r]:s.connectorColors);e.add(n)}))}}},{key:"revertDataLabelsInner",value:function(e,t,i){var a=this,s=this.w,r=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),n=!1,o=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(e){var i=e.makeSliceOut,s=e.printLabel;Array.prototype.forEach.call(o,(function(e){"true"===e.getAttribute("data:pieClicked")&&(i&&(n=!0),s&&a.printDataLabelsInner(e,t))}))};if(l({makeSliceOut:!0,printLabel:!1}),t.total.show&&s.globals.series.length>1)n&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!n)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],h=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,t)}else r&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),e}(),_e=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new S(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new k(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return c(e,[{key:"draw",value:function(e){var t=this,i=this.w,a=new B(this.ctx),s=[],n=new V(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=o+i.config.plotOptions.radar.offsetX,h=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(h||0,")")}),u=[],g=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,o){var l=e.length===i.globals.dataPoints,c=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:y.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});t.dataRadiusOfPercent[o]=[],t.dataRadius[o]=[],t.angleArr[o]=[],e.forEach((function(e,i){var a=Math.abs(t.maxValue-t.minValue);e+=Math.abs(t.minValue),t.isLog&&(e=t.coreUtils.getLogVal(e,0)),t.dataRadiusOfPercent[o][i]=e/a,t.dataRadius[o][i]=t.dataRadiusOfPercent[o][i]*t.size,t.angleArr[o][i]=i*t.disAngle})),u=t.getDataPointsPos(t.dataRadius[o],t.angleArr[o]);var h=t.createPaths(u,{x:0,y:0});g=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),i.globals.delayedElements.push({el:g.node,index:o});var d={i:o,realIndex:o,animationDelay:o,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[o],strokeLineCap:i.config.stroke.lineCap},f=null;i.globals.previousPaths.length>0&&(f=t.getPreviousPath(o));for(var m=0;m<h.linePathsTo.length;m++){var x=t.graphics.renderPaths(r(r({},d),{},{pathFrom:null===f?h.linePathsFrom[m]:f,pathTo:h.linePathsTo[m],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[o]:t.strokeWidth,fill:"none",drawShadow:!1}));c.add(x);var b=a.fillPath({seriesNumber:o}),v=t.graphics.renderPaths(r(r({},d),{},{pathFrom:null===f?h.areaPathsFrom[m]:f,pathTo:h.areaPathsTo[m],strokeWidth:0,fill:b,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var C=new w(t.ctx),S=i.config.chart.dropShadow;C.dropShadow(v,Object.assign({},S,{noUserSpaceOnUse:!0}),o)}c.add(v)}e.forEach((function(e,a){var s=new X(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:a}),l=t.graphics.drawMarker(u[a].x,u[a].y,s);l.attr("rel",a),l.attr("j",a),l.attr("index",o),l.node.setAttribute("default-marker-size",s.pSize);var h=t.graphics.group({class:"apexcharts-series-markers"});h&&h.add(l),g.add(h),c.add(g);var d=i.config.dataLabels;if(d.enabled){var f=d.formatter(i.globals.series[o][a],{seriesIndex:o,dataPointIndex:a,w:i});n.plotDataLabelsText({x:u[a].x,y:u[a].y,text:f,textAnchor:"middle",i:o,j:o,parent:p,offsetCorrection:!1,dataLabelsConfig:r({},d)})}c.add(p)})),s.push(c)})),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var f=this.drawXAxisTexts();d.add(f)}return s.forEach((function(e){d.add(e)})),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,a=e.parent,s=new Me(this.ctx),r=i.globals.yAxisScale[0].result.reverse(),n=r.length,o=[],l=this.size/(n-1),c=0;c<n;c++)o[c]=l*c;o.reverse();var h=[],d=[];o.forEach((function(e,i){var a=y.getPolygonPos(e,t.dataPointsLen),s="";a.forEach((function(e,a){if(0===i){var r=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[a]:t.polygons.connectorColors);d.push(r)}0===a&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),s+=e.x+","+e.y+" "})),h.push(s)})),h.forEach((function(e,s){var r=t.polygons.strokeColors,n=t.polygons.strokeWidth,o=t.graphics.drawPolygon(e,Array.isArray(r)?r[s]:r,Array.isArray(n)?n[s]:n,i.globals.radarPolygons.fill.colors[s]);a.add(o)})),d.forEach((function(e){a.add(e)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,i){var a=s.drawYAxisTexts(e.x,e.y,i,r[i]);t.yaxisLabels.add(a)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,i=t.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),s=y.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(n,o){var l=t.config.xaxis.labels.formatter,c=new V(e.ctx);if(s[o]){var h=e.getTextPos(s[o],e.size),d=l(n,{seriesIndex:-1,dataPointIndex:o,w:t});c.plotDataLabelsText({x:h.newX,y:h.newY,text:d,textAnchor:h.textAnchor,i:o,j:o,parent:a,color:Array.isArray(i.style.colors)&&i.style.colors[o]?i.style.colors[o]:"#a8a8a8",dataLabelsConfig:r({textAnchor:h.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),a}},{key:"createPaths",value:function(e,t){var i=this,a=[],s=[],r=[],n=[];if(e.length){s=[this.graphics.move(t.x,t.y)],n=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,a){o+=i.graphics.line(t.x,t.y),l+=i.graphics.line(t.x,t.y),a===e.length-1&&(o+="Z",l+="Z")})),a.push(o),r.push(l)}return{linePathsFrom:s,linePathsTo:a,areaPathsFrom:n,areaPathsTo:r}}},{key:"getTextPos",value:function(e,t){var i="middle",a=e.x,s=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",a+=10):e.x<0&&(i="end",a-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,a=0;a<t.globals.previousPaths.length;a++){var s=t.globals.previousPaths[a];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[a].paths[0]&&(i=t.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var a=[],s=0;s<i;s++){var r={};r.x=e[s]*Math.sin(t[s]),r.y=-e[s]*Math.cos(t[s]),a.push(r)}return a}}]),e}(),Fe=function(e){d(i,Te);var t=f(i);function i(e){var a;o(this,i),(a=t.call(this,e)).ctx=e,a.w=e.w,a.animBeginArr=[0],a.animDur=0;var s=a.w;return a.startAngle=s.config.plotOptions.radialBar.startAngle,a.endAngle=s.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(s.config.plotOptions.radialBar.endAngle-s.config.plotOptions.radialBar.startAngle),a.trackStartAngle=s.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=s.config.plotOptions.radialBar.track.endAngle,a.barLabels=a.w.config.plotOptions.radialBar.barLabels,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),360===a.endAngle&&(a.endAngle=359.99),a.margin=parseInt(s.config.plotOptions.radialBar.track.margin,10),a.onBarLabelClick=a.onBarLabelClick.bind(p(a)),a}return c(i,[{key:"draw",value:function(e){var t=this.w,i=new S(this.ctx),a=i.group({class:"apexcharts-radialbar"});if(t.globals.noData)return a;var s=i.group(),r=this.defaultSize/2,n=t.globals.gridWidth/2,o=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(o=o-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:n,centerY:r,colorArr:l,series:e});s.add(c)}var h=this.drawArcs({size:o,centerX:n,centerY:r,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(t.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var g=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=g*u}return s.add(h.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),a.add(s),a}},{key:"drawTracks",value:function(e){var t=this.w,i=new S(this.ctx),a=i.group({class:"apexcharts-tracks"}),s=new w(this.ctx),r=new B(this.ctx),n=this.getStrokeWidth(e);e.size=e.size-n/2;for(var o=0;o<e.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(l),l.attr({rel:o+1}),e.size=e.size-n-this.margin;var c=t.config.plotOptions.radialBar.track,h=r.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var g=i.drawPath({d:"",stroke:h,strokeWidth:n*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;s.dropShadow(g,p)}l.add(g),g.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(g,{centerX:e.centerX,centerY:e.centerY,endAngle:u,startAngle:d,size:e.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return a}},{key:"drawArcs",value:function(e){var t=this.w,i=new S(this.ctx),a=new B(this.ctx),s=new w(this.ctx),r=i.group(),n=this.getStrokeWidth(e);e.size=e.size-n/2;var o=t.config.plotOptions.radialBar.hollow.background,l=e.size-n*e.series.length-this.margin*e.series.length-n*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(e,r,l,o));var h=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:o||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(u=0);var g=null;this.radialDataLabels.show&&(g=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:u})),"back"===t.config.plotOptions.radialBar.hollow.position&&(r.add(h),g&&r.add(g));var p=!1;t.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?e.series.length-1:0;p?f>=0:f<e.series.length;p?f--:f++){var m=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:y.escapeString(t.globals.seriesNames[f])});r.add(m),m.attr({rel:f+1,"data:realIndex":f}),this.ctx.series.addCollapsedClassToSeries(m,f),e.size=e.size-n-this.margin;var x=a.fillPath({seriesNumber:f,size:e.size,value:e.series[f]}),b=this.startAngle,v=void 0,C=y.negToZero(e.series[f]>100?100:e.series[f])/100,k=Math.round(this.totalAngle*C)+this.startAngle,E=void 0;t.globals.dataChanged&&(v=this.startAngle,E=Math.round(this.totalAngle*y.negToZero(t.globals.previousPaths[f])/100)+v),Math.abs(k)+Math.abs(b)>=360&&(k-=.01),Math.abs(E)+Math.abs(v)>=360&&(E-=.01);var A=k-b,P=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[f]:t.config.stroke.dashArray,L=i.drawPath({d:"",stroke:x,strokeWidth:n,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(S.setAttrs(L.node,{"data:angle":A,"data:value":e.series[f]}),t.config.chart.dropShadow.enabled){var M=t.config.chart.dropShadow;s.dropShadow(L,M,f)}if(s.setSelectionFilter(L,0,f),this.addListeners(L,this.radialDataLabels),m.add(L),L.attr({index:0,j:f}),this.barLabels.enabled){var T=y.polarToCartesian(e.centerX,e.centerY,e.size,b),_=this.barLabels.formatter(t.globals.seriesNames[f],{seriesIndex:f,w:t}),F=["apexcharts-radialbar-label"];this.barLabels.onClick||F.push("apexcharts-no-click");var D=this.barLabels.useSeriesColors?t.globals.colors[f]:t.config.chart.foreColor;D||(D=t.config.chart.foreColor);var H=T.x-this.barLabels.margin,O=T.y,I=i.drawText({x:H,y:O,text:_,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:D,cssClass:F.join(" ")});I.on("click",this.onBarLabelClick),I.attr({rel:f+1}),0!==b&&I.attr({"transform-origin":"".concat(H," ").concat(O),transform:"rotate(".concat(b," 0 0)")}),m.add(I)}var z=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(z=t.config.chart.animations.speed),t.globals.dataChanged&&(z=t.config.chart.animations.dynamicAnimation.speed),this.animDur=z/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:e.centerX,centerY:e.centerY,endAngle:k,startAngle:b,prevEndAngle:E,prevStartAngle:v,size:e.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:z,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:r,elHollow:h,dataLabels:g}}},{key:"drawHollow",value:function(e){var t=new S(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,i,a){var s=this.w,r=new B(this.ctx),n=y.randomId(),o=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(s.globals.cuid).concat(n)}),a="url(#pattern".concat(s.globals.cuid).concat(n,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,c=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=s.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-t.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(h)}else{var d=s.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return a}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,a=this.w;i&&i(a.globals.seriesNames[t],{w:a,seriesIndex:t})}}]),i}(),De=function(e){d(i,ke);var t=f(i);function i(){return o(this,i),t.apply(this,arguments)}return c(i,[{key:"draw",value:function(e,t){var i=this.w,a=new S(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var s=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),n=0;n<e.length;n++){var o,l,c,d,u=void 0,g=void 0,p=i.globals.comboCharts?t[n]:n,f=a.group({class:"apexcharts-series",seriesName:y.escapeString(i.globals.seriesNames[p]),rel:n+1,"data:realIndex":p});this.ctx.series.addCollapsedClassToSeries(f,p),e[n].length>0&&(this.visibleI=this.visibleI+1);var m=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=p);var b=this.barHelpers.initialPositions();g=b.y,d=b.zeroW,u=b.x,x=b.barWidth,m=b.barHeight,o=b.xDivision,l=b.yDivision,c=b.zeroH;for(var v=a.group({class:"apexcharts-datalabels","data:realIndex":p}),C=a.group({class:"apexcharts-rangebar-goals-markers"}),w=0;w<i.globals.dataPoints;w++){var k,E=this.barHelpers.getStrokeWidth(n,w,p),A=this.seriesRangeStart[n][w],P=this.seriesRangeEnd[n][w],L=null,M=null,T=null,_={x:u,y:g,strokeWidth:E,elSeries:f},F=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(F=1),void 0===i.config.series[n].data[w])break;if(this.isHorizontal){T=g+m*this.visibleI;var D=(l-m*F)/2;if(i.config.series[n].data[w].x){var H=this.detectOverlappingBars({i:n,j:w,barYPosition:T,srty:D,barHeight:m,yDivision:l,initPositions:b});m=H.barHeight,T=H.barYPosition}x=(L=this.drawRangeBarPaths(r({indexes:{i:n,j:w,realIndex:p},barHeight:m,barYPosition:T,zeroW:d,yDivision:l,y1:A,y2:P},_))).barWidth}else{i.globals.isXNumeric&&(u=(i.globals.seriesX[n][w]-i.globals.minX)/this.xRatio-x/2),M=u+x*this.visibleI;var O=(o-x*F)/2;if(i.config.series[n].data[w].x){var I=this.detectOverlappingBars({i:n,j:w,barXPosition:M,srtx:O,barWidth:x,xDivision:o,initPositions:b});x=I.barWidth,M=I.barXPosition}m=(L=this.drawRangeColumnPaths(r({indexes:{i:n,j:w,realIndex:p},barWidth:x,barXPosition:M,zeroH:c,xDivision:o},_))).barHeight}var z=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:T,goalX:L.goalX,goalY:L.goalY,barHeight:m,barWidth:x});z&&C.add(z),g=L.y,u=L.x;var N=this.barHelpers.getPathFillColor(e,n,w,p),R=i.globals.stroke.colors[p];this.renderSeries((h(k={realIndex:p,pathFill:N,lineFill:R,j:w,i:n,x:u,y:g,y1:A,y2:P,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:E,elSeries:f,series:e,barHeight:m,barWidth:x,barXPosition:M,barYPosition:T},"barWidth",x),h(k,"elDataLabelsWrap",v),h(k,"elGoalsMarkers",C),h(k,"visibleSeries",this.visibleI),h(k,"type","rangebar"),k))}s.add(f)}return s}},{key:"detectOverlappingBars",value:function(e){var t=e.i,i=e.j,a=e.barYPosition,s=e.barXPosition,r=e.srty,n=e.srtx,o=e.barHeight,l=e.barWidth,c=e.yDivision,h=e.xDivision,d=e.initPositions,u=this.w,g=[],p=u.config.series[t].data[i].rangeName,f=u.config.series[t].data[i].x,m=Array.isArray(f)?f.join(" "):f,x=u.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(m),b=u.globals.seriesRange[t].findIndex((function(e){return e.x===m&&e.overlaps.length>0}));return this.isHorizontal?(a=u.config.plotOptions.bar.rangeBarGroupRows?r+c*x:r+o*this.visibleI+c*x,b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(a=(o=d.barHeight/g.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(p))+c*x)):(x>-1&&(s=u.config.plotOptions.bar.rangeBarGroupRows?n+h*x:n+l*this.visibleI+h*x),b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(s=(l=d.barWidth/g.length)*this.visibleI+h*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+g.indexOf(p))+h*x)),{barYPosition:a,barXPosition:s,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,i=e.x,a=e.xDivision,s=e.barWidth,r=e.barXPosition,n=e.zeroH,o=this.w,l=t.i,c=t.j,h=this.yRatio[this.yaxisIndex],d=t.realIndex,u=this.getRangeValue(d,c),g=Math.min(u.start,u.end),p=Math.max(u.start,u.end);void 0===this.series[l][c]||null===this.series[l][c]?g=n:(g=n-g/h,p=n-p/h);var f=Math.abs(p-g),m=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:s,y1:g,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:d,j:c,w:o});if(o.globals.isXNumeric){var x=this.getBarXForNumericXAxis({x:i,j:c,realIndex:d,barWidth:s});i=x.x,r=x.barXPosition}else i+=a;return{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,n,l,c),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,i=e.y,a=e.y1,s=e.y2,r=e.yDivision,n=e.barHeight,o=e.barYPosition,l=e.zeroW,c=this.w,h=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,u=Math.abs(d-h),g=this.barHelpers.getBarpaths({barYPosition:o,barHeight:n,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:c});return c.globals.isXNumeric||(i+=r),{pathTo:g.pathTo,pathFrom:g.pathFrom,barWidth:u,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,t.realIndex,t.j),y:i}}},{key:"getRangeValue",value:function(e,t){var i=this.w;return{start:i.globals.seriesRangeStart[e][t],end:i.globals.seriesRangeEnd[e][t]}}}]),i}(),He=function(){function e(t){o(this,e),this.w=t.w,this.lineCtx=t}return c(e,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[e])&&new k(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var a=t[e].slice();a[a.length-1]=a[a.length-1]+1e-6,t[e]=a}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,a=e.x,s=e.y,r=e.i,n=e.j,o=e.prevY,l=this.w,c=[],h=[];if(0===n){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),h.push(y.isNumber(t[r][0])?o+l.config.markers.offsetY:null),c.push(a+l.config.markers.offsetX),h.push(y.isNumber(t[r][n+1])?s+l.config.markers.offsetY:null)}else c.push(a+l.config.markers.offsetX),h.push(y.isNumber(t[r][n+1])?s+l.config.markers.offsetY:null);return{x:c,y:h}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,a=e.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,10)===parseInt(a,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,t=s.globals.previousPaths[r].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(t=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i,a=e.i,s=e.series,r=e.prevY,n=e.lineYPosition,o=this.w,l=o.config.chart.stacked&&!o.globals.comboCharts||o.config.chart.stacked&&o.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[a])||void 0===t?void 0:t.type));if(void 0!==(null===(i=s[a])||void 0===i?void 0:i[0]))r=(n=l&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l&&a>0&&void 0===s[a][0])for(var c=a-1;c>=0;c--)if(null!==s[c][0]&&void 0!==s[c][0]){r=n=this.lineCtx.prevSeriesY[c][0];break}return{prevY:r,lineYPosition:n}}}]),e}(),Oe=function(e){for(var t="",i=0;i<e.length;i++){var a=e[i],s=a.length;s>4?(t+="C".concat(a[0],", ").concat(a[1]),t+=", ".concat(a[2],", ").concat(a[3]),t+=", ".concat(a[4],", ").concat(a[5])):s>2&&(t+="S".concat(a[0],", ").concat(a[1]),t+=", ".concat(a[2],", ").concat(a[3]))}return t},Ie=function(e){var t=function(e){for(var t,i,a,s,r=function(e){for(var t=[],i=e[0],a=e[1],s=t[0]=ze(i,a),r=1,n=e.length-1;r<n;r++)i=a,a=e[r+1],t[r]=.5*(s+(s=ze(i,a)));return t[r]=s,t}(e),n=e.length-1,o=[],l=0;l<n;l++)a=ze(e[l],e[l+1]),Math.abs(a)<1e-6?r[l]=r[l+1]=0:(s=(t=r[l]/a)*t+(i=r[l+1]/a)*i)>9&&(s=3*a/Math.sqrt(s),r[l]=s*t,r[l+1]=s*i);for(var c=0;c<=n;c++)s=(e[Math.min(n,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+r[c]*r[c])),o.push([s||0,r[c]*s||0]);return o}(e),i=e[1],a=e[0],s=[],r=t[1],n=t[0];s.push(a,[a[0]+n[0],a[1]+n[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var o=2,l=t.length;o<l;o++){var c=e[o],h=t[o];s.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return s};function ze(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Ne=function(){function e(t,i,a){o(this,e),this.ctx=t,this.w=t.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new Y(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new He(this),this.markers=new X(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return c(e,[{key:"draw",value:function(e,t,i,a){var s,n=this.w,o=new S(this.ctx),l=n.globals.comboCharts?t:n.config.chart.type,c=o.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),h=new k(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=h.getLogSeries(e),this.yRatio=h.getLogYRatios(this.yRatio);for(var d=[],u=0;u<e.length;u++){e=this.lineHelpers.sameValueSeriesFix(u,e);var g=n.globals.comboCharts?i[u]:u;this._initSerieVariables(e,u,g);var p=[],f=[],m=[],x=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,g),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(x=(n.globals.seriesX[g][0]-n.globals.minX)/this.xRatio),m.push(x);var b,v=x,y=void 0,C=v,w=this.zeroY,E=this.zeroY;w=this.lineHelpers.determineFirstPrevY({i:u,series:e,prevY:w,lineYPosition:0}).prevY,"monotonCubic"===n.config.stroke.curve&&null===e[u][0]?p.push(null):p.push(w),b=w,"rangeArea"===l&&(y=E=this.lineHelpers.determineFirstPrevY({i:u,series:a,prevY:E,lineYPosition:0}).prevY,f.push(E));var A={type:l,series:e,realIndex:g,i:u,x,y:1,pX:v,pY:b,pathsFrom:this._calculatePathsFrom({type:l,series:e,i:u,realIndex:g,prevX:C,prevY:w,prevY2:E}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:m,yArrj:p,y2Arrj:f,seriesRangeEnd:a},P=this._iterateOverDataPoints(r(r({},A),{},{iterations:"rangeArea"===l?e[u].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var L=this._calculatePathsFrom({series:a,i:u,realIndex:g,prevX:C,prevY:E}),M=this._iterateOverDataPoints(r(r({},A),{},{series:a,pY:y,pathsFrom:L,iterations:a[u].length-1,isRangeStart:!1}));P.linePaths[0]=M.linePath+P.linePath,P.pathFromLine=M.pathFromLine+P.pathFromLine}this._handlePaths({type:l,realIndex:g,i:u,paths:P}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(s=n.config.series[0])||void 0===s?void 0:s.zIndex)&&d.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))})),n.config.chart.stacked)for(var T=d.length;T>0;T--)c.add(d[T-1]);else for(var _=0;_<d.length;_++)c.add(d[_]);return c}},{key:"_initSerieVariables",value:function(e,t,i){var a=this.w,s=new S(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-("on"===a.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==a.config.series[i].zIndex?a.config.series[i].zIndex:i,seriesName:y.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var r=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,a,s,r=e.type,n=e.series,o=e.i,l=e.realIndex,c=e.prevX,h=e.prevY,d=e.prevY2,u=this.w,g=new S(this.ctx);if(null===n[o][0]){for(var p=0;p<n[o].length;p++)if(null!==n[o][p]){c=this.xDivision*p,h=this.zeroY-n[o][p]/this.yRatio[this.yaxisIndex],t=g.move(c,h),i=g.move(c,this.areaBottomY);break}}else t=g.move(c,h),"rangeArea"===r&&(t=g.move(c,d)+g.line(c,h)),i=g.move(c,this.areaBottomY)+g.line(c,h);if(a=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),s=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),u.globals.previousPaths.length>0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:l});a=f.pathFromLine,s=f.pathFromArea}return{prevX:c,prevY:h,linePath:t,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,a=e.i,s=e.paths,n=this.w,o=new S(this.ctx),l=new B(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[i]=s.xArrj,n.globals.seriesYvalues[i]=s.yArrj;var c=n.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==t){var h=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-c.count-1],d=o.drawRect(h,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(d.node);var u=o.drawRect(0,0,h,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var g={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var p=l.fillPath({seriesNumber:i}),f=0;f<s.areaPaths.length;f++){var m=o.renderPaths(r(r({},g),{},{pathFrom:s.pathFromArea,pathTo:s.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(m)}if(n.config.stroke.show&&!this.pointsChart){var x=null;if("line"===t)x=l.fillPath({seriesNumber:i,i:a});else if("solid"===n.config.stroke.fill.type)x=n.globals.stroke.colors[i];else{var b=n.config.fill;n.config.fill=n.config.stroke.fill,x=l.fillPath({seriesNumber:i,i:a}),n.config.fill=b}for(var v=0;v<s.linePaths.length;v++){var y=x;"rangeArea"===t&&(y=l.fillPath({seriesNumber:i}));var C=r(r({},g),{},{pathFrom:s.pathFromLine,pathTo:s.linePaths[v],stroke:x,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:"rangeArea"===t?y:"none"}),w=o.renderPaths(C);if(this.elSeries.add(w),w.attr("fill-rule","evenodd"),c.count>0&&"rangeArea"!==t){var k=o.renderPaths(C);k.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&k.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),w.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,i=this,a=e.type,s=e.series,r=e.iterations,n=e.realIndex,o=e.i,l=e.x,c=e.y,h=e.pX,d=e.pY,u=e.pathsFrom,g=e.linePaths,p=e.areaPaths,f=e.seriesIndex,m=e.lineYPosition,x=e.xArrj,b=e.yArrj,v=e.y2Arrj,C=e.isRangeStart,w=e.seriesRangeEnd,k=this.w,E=new S(this.ctx),A=this.yRatio,P=u.prevY,L=u.linePath,M=u.areaPath,T=u.pathFromLine,_=u.pathFromArea,F=y.isNumber(k.globals.minYArr[n])?k.globals.minYArr[n]:k.globals.minY;r||(r=k.globals.dataPoints>1?k.globals.dataPoints-1:k.globals.dataPoints);for(var D=function(e,t){return t-e/A[i.yaxisIndex]+2*(i.isReversed?e/A[i.yaxisIndex]:0)},H=c,O=k.config.chart.stacked&&!k.globals.comboCharts||k.config.chart.stacked&&k.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[n])||void 0===t?void 0:t.type)),I=0;I<r;I++){var z=void 0===s[o][I+1]||null===s[o][I+1];if(k.globals.isXNumeric){var N=k.globals.seriesX[n][I+1];void 0===k.globals.seriesX[n][I+1]&&(N=k.globals.seriesX[n][r-1]),l=(N-k.globals.minX)/this.xRatio}else l+=this.xDivision;m=O&&o>0&&k.globals.collapsedSeries.length<k.config.series.length-1?this.prevSeriesY[function(e){for(var t=e,i=0;i<k.globals.series.length;i++)if(k.globals.collapsedSeriesIndices.indexOf(e)>-1){t--;break}return t>=0?t:0}(o-1)][I+1]:this.zeroY,z?c=D(F,m):(c=D(s[o][I+1],m),"rangeArea"===a&&(H=D(w[o][I+1],m))),x.push(l),z&&"smooth"===k.config.stroke.curve?b.push(null):b.push(c),v.push(H);var R=this.lineHelpers.calculatePoints({series:s,x:l,y:c,realIndex:n,i:o,j:I,prevY:P}),B=this._createPaths({type:a,series:s,i:o,realIndex:n,j:I,x:l,y:c,y2:H,xArrj:x,yArrj:b,y2Arrj:v,pX:h,pY:d,linePath:L,areaPath:M,linePaths:g,areaPaths:p,seriesIndex:f,isRangeStart:C});p=B.areaPaths,g=B.linePaths,h=B.pX,d=B.pY,M=B.areaPath,L=B.linePath,!this.appendPathFrom||"monotoneCubic"===k.config.stroke.curve&&"rangeArea"===a||(T+=E.line(l,this.zeroY),_+=E.line(l,this.zeroY)),this.handleNullDataPoints(s,R,o,I,n),this._handleMarkersAndLabels({type:a,pointsPos:R,i:o,j:I,realIndex:n,isRangeStart:C})}return{yArrj:b,xArrj:x,pathFromArea:_,areaPaths:p,pathFromLine:T,linePaths:g,linePath:L,areaPath:M}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,a=e.isRangeStart,s=e.i,r=e.j,n=e.realIndex,o=this.w,l=new V(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:n,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,n,r+1);null!==c&&this.elPointsMain.add(c)}var h=l.drawDataLabel({type:t,isRangeStart:a,pos:i,i:n,j:r+1});null!==h&&this.elDataLabelsWrap.add(h)}},{key:"_createPaths",value:function(e){var t=e.type,i=e.series,a=e.i,s=e.realIndex,r=e.j,n=e.x,o=e.y,l=e.xArrj,c=e.yArrj,h=e.y2,d=e.y2Arrj,u=e.pX,g=e.pY,p=e.linePath,f=e.areaPath,m=e.linePaths,x=e.areaPaths,b=e.seriesIndex,v=e.isRangeStart,y=this.w,C=new S(this.ctx),w=y.config.stroke.curve,k=this.areaBottomY;if(Array.isArray(y.config.stroke.curve)&&(w=Array.isArray(b)?y.config.stroke.curve[b[a]]:y.config.stroke.curve[a]),"rangeArea"===t&&(y.globals.hasNullValues||y.config.forecastDataPoints.count>0)&&"monotoneCubic"===w&&(w="straight"),"monotoneCubic"===w){var E="rangeArea"===t?l.length===y.globals.dataPoints:r===i[a].length-2,A=l.map((function(e,t){return[l[t],c[t]]})).filter((function(e){return null!==e[1]}));if(E&&A.length>1){var P=Ie(A);if(p+=Oe(P),null===i[a][0]?f=p:f+=Oe(P),"rangeArea"===t&&v){p+=C.line(l[l.length-1],d[d.length-1]);var L=l.slice().reverse(),M=d.slice().reverse(),T=L.map((function(e,t){return[L[t],M[t]]})),_=Ie(T);f=p+=Oe(_)}else f+=C.line(A[A.length-1][0],k)+C.line(A[0][0],k)+C.move(A[0][0],A[0][1])+"z";m.push(p),x.push(f)}}else if("smooth"===w){var F=.35*(n-u);y.globals.hasNullValues?(null!==i[a][r]&&(null!==i[a][r+1]?(p=C.move(u,g)+C.curve(u+F,g,n-F,o,n+1,o),f=C.move(u+1,g)+C.curve(u+F,g,n-F,o,n+1,o)+C.line(n,k)+C.line(u,k)+"z"):(p=C.move(u,g),f=C.move(u,g)+"z")),m.push(p),x.push(f)):(p+=C.curve(u+F,g,n-F,o,n,o),f+=C.curve(u+F,g,n-F,o,n,o)),u=n,g=o,r===i[a].length-2&&(f=f+C.curve(u,g,n,o,n,k)+C.move(n,o)+"z","rangeArea"===t&&v?p=p+C.curve(u,g,n,o,n,h)+C.move(n,h)+"z":y.globals.hasNullValues||(m.push(p),x.push(f)))}else{if(null===i[a][r+1]){p+=C.move(n,o);var D=y.globals.isXNumeric?(y.globals.seriesX[s][r]-y.globals.minX)/this.xRatio:n-this.xDivision;f=f+C.line(D,k)+C.move(n,o)+"z"}null===i[a][r]&&(p+=C.move(n,o),f+=C.move(n,k)),"stepline"===w?(p=p+C.line(n,null,"H")+C.line(null,o,"V"),f=f+C.line(n,null,"H")+C.line(null,o,"V")):"straight"===w&&(p+=C.line(n,o),f+=C.line(n,o)),r===i[a].length-2&&(f=f+C.line(n,k)+C.move(n,o)+"z","rangeArea"===t&&v?p=p+C.line(n,h)+C.move(n,h)+"z":(m.push(p),x.push(f)))}return{linePaths:m,areaPaths:x,pX:u,pY:g,linePath:p,areaPath:f}}},{key:"handleNullDataPoints",value:function(e,t,i,a,s){var r=this.w;if(null===e[i][a]&&r.config.markers.showNullDataPoints||1===e[i].length){var n=this.markers.plotChartMarkers(t,s,a+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==n&&this.elPointsMain.add(n)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,i,a,s){this.xoffset=t,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,i=[],a=this.xoffset,s=this.yoffset,n=r(e)/this.height,o=r(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)i.push([a,s,a+n,s+e[t]/n]),s+=e[t]/n;else for(t=0;t<e.length;t++)i.push([a,s,a+e[t]/o,s+o]),a+=e[t]/o;return i},this.cutArea=function(t){var i;if(this.width>=this.height){var a=t/this.height,s=this.width-a;i=new e(this.xoffset+a,this.yoffset,s,this.height)}else{var r=t/this.width,n=this.height-r;i=new e(this.xoffset,this.yoffset+r,this.width,n)}return i}}function t(t,a,s,n,o){n=void 0===n?0:n,o=void 0===o?0:o;var l=i(function(e,t){var i,a=[],s=t/r(e);for(i=0;i<e.length;i++)a[i]=e[i]*s;return a}(t,a*s),[],new e(n,o,a,s),[]);return function(e){var t,i,a=[];for(t=0;t<e.length;t++)for(i=0;i<e[t].length;i++)a.push(e[t][i]);return a}(l)}function i(e,t,s,n){var o,l,c;if(0!==e.length)return o=s.shortestEdge(),function(e,t,i){var s;return 0===e.length||((s=e.slice()).push(t),a(e,i)>=a(s,i))}(t,l=e[0],o)?(t.push(l),i(e.slice(1),t,s,n)):(c=s.cutArea(r(t),n),n.push(s.getCoordinates(t)),i(e,[],c,n)),n;n.push(s.getCoordinates(t))}function a(e,t){var i=Math.min.apply(Math,e),a=Math.max.apply(Math,e),s=r(e);return Math.max(Math.pow(t,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(t,2)*i))}function s(e){return e&&e.constructor===Array}function r(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t];return i}function n(e){var t,i=0;if(s(e[0]))for(t=0;t<e.length;t++)i+=n(e[t]);else i=r(e);return i}return function e(i,a,r,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,h,d=[],u=[];if(s(i[0])){for(h=0;h<i.length;h++)d[h]=n(i[h]);for(c=t(d,a,r,o,l),h=0;h<i.length;h++)u.push(e(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=t(i,a,r,o,l);return u}}();var Re,Be,Xe=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Pe(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return c(e,[{key:"draw",value:function(e){var t=this,i=this.w,a=new S(this.ctx),s=new B(this.ctx),r=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return r;var n=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));n.push(t)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(e,i){e.data.forEach((function(e){Array.isArray(t.labels[i])||(t.labels[i]=[]),t.labels[i].push(e.x)}))})),window.TreemapSquared.generate(n,i.globals.gridWidth,i.globals.gridHeight).forEach((function(n,o){var l=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:y.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new w(t.ctx).dropShadow(r,c,o)}var h=a.group({class:"apexcharts-data-labels"});n.forEach((function(r,n){var c=r[0],h=r[1],d=r[2],u=r[3],g=a.drawRect(c,h,d-c,u-h,i.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?f:i.globals.stroke.colors[o]);g.attr({cx:c,cy:h,index:o,i:o,j:n,width:d-c,height:u-h});var p=t.helpers.getShadeColor(i.config.chart.type,o,n,t.negRange),f=p.color;void 0!==i.config.series[o].data[n]&&i.config.series[o].data[n].fillColor&&(f=i.config.series[o].data[n].fillColor);var m=s.fillPath({color:f,seriesNumber:o,dataPointIndex:n});g.node.classList.add("apexcharts-treemap-rect"),g.attr({fill:m}),t.helpers.addListeners(g);var x={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},b={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var v=1;i.globals.resized||(v=i.config.chart.animations.speed),t.animateTreemap(g,x,b,v)}if(i.globals.dataChanged){var y=1;t.dynamicAnim.enabled&&i.globals.shouldAnimate&&(y=t.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][n]&&i.globals.previousPaths[o][n].rect&&(x=i.globals.previousPaths[o][n].rect),t.animateTreemap(g,x,b,y))}var C=t.getFontSize(r),w=i.config.dataLabels.formatter(t.labels[o][n],{value:i.globals.series[o][n],seriesIndex:o,dataPointIndex:n,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(C=parseInt(i.config.dataLabels.style.fontSize,10),w=t.truncateLabels(w,C,c,h,d,u));var S=t.helpers.calculateDataLabels({text:w,x:(c+d)/2,y:(h+u)/2+t.strokeWidth/2+C/3,i:o,j:n,colorProps:p,fontSize:C,series:e});i.config.dataLabels.enabled&&S&&t.rotateToFitLabel(S,C,w,c,h,d,u),l.add(g),null!==S&&l.add(S)})),l.add(h),r.add(l)})),r}},{key:"getFontSize",value:function(e){var t,i,a=this.w,s=function e(t){var i,a=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)a+=e(t[i]);else for(i=0;i<t.length;i++)a+=t[i].length;return a}(this.labels)/function e(t){var i,a=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)a+=e(t[i]);else for(i=0;i<t.length;i++)a+=1;return a}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),i=Math.pow(t,.5),Math.min(i/s,parseInt(a.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,i,a,s,r,n){var o=new S(this.ctx),l=o.getTextRects(i,t);if(l.width+this.w.config.stroke.width+5>r-a&&l.width<=n-s){var c=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,i,a,s,r){var n=new S(this.ctx),o=n.getTextRects(e,t).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,l=n.getTextBasedOnMaxWidth({text:e,maxWidth:o,fontSize:t});return e.length!==l.length&&o/t<5?"":l}},{key:"animateTreemap",value:function(e,t,i,a){var s=new C(this.ctx);s.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(e)}))}}]),e}(),Ye=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return c(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new F(this.ctx),n=(t-e)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<.00011574074074074075?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var o=s.getTimeUnitsfromTimestamp(e,t,this.utc),l=a.globals.gridWidth/n,c=l/24,h=c/60,d=h/60,u=Math.floor(24*n),g=Math.floor(1440*n),p=Math.floor(86400*n),f=Math.floor(n),m=Math.floor(n/30),x=Math.floor(n/365),b={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},v={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:g,numberOfHours:u,numberOfDays:f,numberOfMonths:m,numberOfYears:x};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var y=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?r(r({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?r(r({},t),{},{value:e.value}):"minute"===e.unit?r(r({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?r(r({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return y.filter((function(e){var t=1,s=Math.ceil(a.globals.gridWidth/120),r=e.value;void 0!==a.config.xaxis.tickAmount&&(s=a.config.xaxis.tickAmount),y.length>s&&(t=Math.floor(y.length/s));var n=!1,o=!1;switch(i.tickInterval){case"years":"year"===e.unit&&(n=!0);break;case"half_year":t=7,"year"===e.unit&&(n=!0);break;case"months":t=1,"year"===e.unit&&(n=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(n=!0),30===r&&(o=!0);break;case"months_days":t=10,"month"===e.unit&&(n=!0),30===r&&(o=!0);break;case"week_days":t=8,"month"===e.unit&&(n=!0);break;case"days":t=1,"month"===e.unit&&(n=!0);break;case"hours":"day"===e.unit&&(n=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(o=!0);break;case"seconds_tens":r%10!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((r%t==0||n)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,a=this.formatDates(e),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new he(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.daysWidthOnXAxis,r=e.numberOfYears,n=t.minYear,o=0,l=new F(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var h=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(l.determineDaysOfYear(t.minYear)-h+1)*s,n=t.minYear+1,this.timeScaleArray.push({position:o,value:n,unit:c,year:n,month:y.monthMod(i+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:n,unit:c,year:a,month:y.monthMod(i+1)});for(var d=n,u=o,g=0;g<r;g++)d++,u=l.determineDaysOfYear(d-1)*s+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,a=e.currentMonth,s=e.currentYear,r=e.daysWidthOnXAxis,n=e.numberOfMonths,o=a,l=0,c=new F(this.ctx),h="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(a+1,t.minYear)-i+1)*r,o=y.monthMod(a+1);var u=s+d,g=y.monthMod(o),p=o;0===o&&(h="year",p=u,g=1,u+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:h,year:u,month:g})}else this.timeScaleArray.push({position:l,value:o,unit:h,year:s,month:y.monthMod(a)});for(var f=o+1,m=l,x=0,b=1;x<n;x++,b++){0===(f=y.monthMod(f))?(h="year",d+=1):h="month";var v=this._getYear(s,f,d);m=c.determineDaysOfMonths(f,v)*r+m;var C=0===f?v:f;this.timeScaleArray.push({position:m,value:C,unit:h,year:v,month:0===f?1:f}),f++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.hoursWidthOnXAxis,r=e.numberOfDays,n=new F(this.ctx),o="day",l=t.minDate+1,c=l,h=function(e,t,i){return e>n.determineDaysOfMonths(t+1,i)?(c=1,o="month",u=t+=1,t):t},d=(24-t.minHour)*s,u=l,g=h(c,i,a);0===t.minHour&&1===t.minDate?(d=0,u=y.monthMod(t.minMonth),o="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,u=l,g=h(c=l,i,a)),this.timeScaleArray.push({position:d,value:u,unit:o,year:this._getYear(a,g,0),month:y.monthMod(g),day:c});for(var p=d,f=0;f<r;f++){o="day",g=h(c+=1,g,this._getYear(a,g,0));var m=this._getYear(a,g,0);p=24*s+p;var x=1===c?y.monthMod(g):c;this.timeScaleArray.push({position:p,value:x,unit:o,year:m,month:y.monthMod(g),day:x})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,a=e.currentMonth,s=e.currentYear,r=e.minutesWidthOnXAxis,n=e.numberOfHours,o=new F(this.ctx),l="hour",c=function(e,t){return e>o.determineDaysOfMonths(t+1,s)&&(f=1,t+=1),{month:t,date:f}},h=function(e,t){return e>o.determineDaysOfMonths(t+1,s)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),u=d*r,g=t.minHour+1,p=g;60===d&&(u=0,p=g=t.minHour);var f=i;p>=24&&(p=0,f+=1,l="day");var m=c(f,a).month;m=h(f,m),this.timeScaleArray.push({position:u,value:g,unit:l,day:f,hour:p,year:s,month:y.monthMod(m)}),p++;for(var x=u,b=0;b<n;b++){l="hour",p>=24&&(p=0,l="day",m=c(f+=1,m).month,m=h(f,m));var v=this._getYear(s,m,0);x=60*r+x;var C=0===p?f:p;this.timeScaleArray.push({position:x,value:C,unit:l,hour:p,day:f,year:v,month:y.monthMod(m)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,r=e.currentDate,n=e.currentMonth,o=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,h=e.numberOfMinutes,d=a+1,u=r,g=n,p=o,f=s,m=(60-i-t/1e3)*c,x=0;x<h;x++)d>=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:m,value:d,unit:"minute",hour:f,minute:d,day:u,year:this._getYear(p,g,0),month:y.monthMod(g)}),m+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,r=e.currentDate,n=e.currentMonth,o=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,h=i+1,d=a,u=r,g=n,p=o,f=s,m=(1e3-t)/1e3*l,x=0;x<c;x++)h>=60&&(h=0,++d>=60&&(d=0,24==++f&&(f=0))),this.timeScaleArray.push({position:m,value:h,unit:"second",hour:f,minute:d,second:h,day:u,year:this._getYear(p,g,0),month:y.monthMod(g)}),m+=l,h++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return 0===e.month&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?i+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?i+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map((function(e){var a=e.value.toString(),s=new F(t.ctx),r=t.createRawDateString(e,a),n=s.getDate(s.parseDate(r));if(t.utc||(n=s.getDate(s.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(o=l.year),"month"===e.unit&&(o=l.month),"day"===e.unit&&(o=l.day),"hour"===e.unit&&(o=l.hour),"minute"===e.unit&&(o=l.minute),"second"===e.unit&&(o=l.second),a=s.formatDate(n,o)}else a=s.formatDate(n,i.config.xaxis.labels.format);return{dateString:r,position:e.position,value:a,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,i=this,a=new S(this.ctx),s=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(s=!0,t=a.getTextRects(e[0].value).width);var r=0,n=e.map((function(n,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?t:a.getTextRects(e[r].value).width,c=e[r].position;return n.position>c+l+10?(r=o,n):null}return n}));return n.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),e}(),Ve=function(){function e(t,i){o(this,e),this.ctx=i,this.w=i.w,this.el=t}return c(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),S.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?t.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),S.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},n={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]},u={series:[],i:[]},g={series:[],seriesRangeEnd:[],i:[]};s.series.map((function(t,p){var f=0;void 0!==e[p].type?("column"===e[p].type||"bar"===e[p].type?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(t),c.i.push(p),f++,i.globals.columnSeries=c.series):"area"===e[p].type?(n.series.push(t),n.i.push(p),f++):"line"===e[p].type?(r.series.push(t),r.i.push(p),f++):"scatter"===e[p].type?(o.series.push(t),o.i.push(p)):"bubble"===e[p].type?(l.series.push(t),l.i.push(p),f++):"candlestick"===e[p].type?(h.series.push(t),h.i.push(p),f++):"boxPlot"===e[p].type?(d.series.push(t),d.i.push(p),f++):"rangeBar"===e[p].type?(u.series.push(t),u.i.push(p),f++):"rangeArea"===e[p].type?(g.series.push(s.seriesRangeStart[p]),g.seriesRangeEnd.push(s.seriesRangeEnd[p]),g.i.push(p),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),f>1&&(s.comboCharts=!0)):(r.series.push(t),r.i.push(p))}));var p=new Ne(this.ctx,t),f=new Ae(this.ctx,t);this.ctx.pie=new Te(this.ctx);var m=new Fe(this.ctx);this.ctx.rangeBar=new De(this.ctx,t);var x=new _e(this.ctx),b=[];if(s.comboCharts){if(n.series.length>0&&b.push(p.draw(n.series,"area",n.i)),c.series.length>0)if(i.config.chart.stacked){var v=new Ee(this.ctx,t);b.push(v.draw(c.series,c.i))}else this.ctx.bar=new ke(this.ctx,t),b.push(this.ctx.bar.draw(c.series,c.i));if(g.series.length>0&&b.push(p.draw(g.series,"rangeArea",g.i,g.seriesRangeEnd)),r.series.length>0&&b.push(p.draw(r.series,"line",r.i)),h.series.length>0&&b.push(f.draw(h.series,"candlestick",h.i)),d.series.length>0&&b.push(f.draw(d.series,"boxPlot",d.i)),u.series.length>0&&b.push(this.ctx.rangeBar.draw(u.series,u.i)),o.series.length>0){var y=new Ne(this.ctx,t,!0);b.push(y.draw(o.series,"scatter",o.i))}if(l.series.length>0){var C=new Ne(this.ctx,t,!0);b.push(C.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":b=p.draw(s.series,"line");break;case"area":b=p.draw(s.series,"area");break;case"bar":a.chart.stacked?b=new Ee(this.ctx,t).draw(s.series):(this.ctx.bar=new ke(this.ctx,t),b=this.ctx.bar.draw(s.series));break;case"candlestick":b=new Ae(this.ctx,t).draw(s.series,"candlestick");break;case"boxPlot":b=new Ae(this.ctx,t).draw(s.series,a.chart.type);break;case"rangeBar":b=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":b=p.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":b=new Le(this.ctx,t).draw(s.series);break;case"treemap":b=new Xe(this.ctx,t).draw(s.series);break;case"pie":case"donut":case"polarArea":b=this.ctx.pie.draw(s.series);break;case"radialBar":b=m.draw(s.series);break;case"radar":b=x.draw(s.series);break;default:b=p.draw(s.series)}return b}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=y.getDimensions(this.el),a=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?y.isNumber(i[0])&&(0===i[0].width&&(i=y.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):"px"!==a&&""!==a||(e.svgWidth=parseInt(t.chart.width,10));var s=t.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===s){var r=y.getDimensions(this.el.parentNode);e.svgHeight=r[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),S.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==s){var n=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+n+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i={transform:"translate("+e.translateX+", "+t+")"};S.setAttrs(e.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,a=e.config.chart.sparkline.enabled?1:15;a+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(i=new ue(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*e.globals.radialSize;if(s&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var n=y.getBoundingClientRect(s);r=n.bottom;var o=n.bottom-n.top;r=Math.max(2.05*e.globals.radialSize,o)}var l=r+t.translateY+i+a;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",S.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new K(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},i=new N,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new ie(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new ie(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new Ye(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new k(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var i=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];i.forEach((function(t){var i=ApexCharts.getChartByID(t);i.w.globals.brushSource=e.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){e.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){e.updateSourceChart(i)})})),t.config.chart.events.selection=function(e,a){i.forEach((function(e){var i=ApexCharts.getChartByID(e),s=y.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var n=new $(i);s=n.autoScaleY(i,s,a)}var o=i.w.config.yaxis.reduce((function(e,t,a){return[].concat(x(e),[r(r({},i.w.config.yaxis[a]),{},{min:s[0].min,max:s[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:o},!1,!1,!1,!1)}))}}}}]),e}(),We=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(o){var l=[t.ctx];s&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach((function(s,c){var h=s.w;if(h.globals.shouldAnimate=a,i||(h.globals.resized=!0,h.globals.dataChanged=!0,a&&s.series.getPreviousPaths()),e&&"object"===n(e)&&(s.config=new z(e),e=k.extendArrayProps(s.config,e,h),s.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,h.config=y.extend(h.config,e),r&&(h.globals.lastXAxis=e.xaxis?y.clone(e.xaxis):[],h.globals.lastYAxis=e.yaxis?y.clone(e.yaxis):[],h.globals.initialConfig=y.extend({},h.config),h.globals.initialSeries=y.clone(h.config.series),e.series))){for(var d=0;d<h.globals.collapsedSeriesIndices.length;d++){var u=h.config.series[h.globals.collapsedSeriesIndices[d]];h.globals.collapsedSeries[d].data=h.globals.axisCharts?u.data.slice():u}for(var g=0;g<h.globals.ancillaryCollapsedSeriesIndices.length;g++){var p=h.config.series[h.globals.ancillaryCollapsedSeriesIndices[g]];h.globals.ancillaryCollapsedSeries[g].data=h.globals.axisCharts?p.data.slice():p}s.series.emptyCollapsedSeries(h.config.series)}return s.update(e).then((function(){c===l.length-1&&o(s)}))}))}))}},{key:"_updateSeries",value:function(e,t){var i=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r,n=i.w;return n.globals.shouldAnimate=t,n.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),n.globals.axisCharts?(0===(r=e.map((function(e,t){return i._extendSeries(e,t)}))).length&&(r=[{data:[]}]),n.config.series=r):n.config.series=e.slice(),a&&(n.globals.initialConfig.series=y.clone(n.config.series),n.globals.initialSeries=y.clone(n.config.series)),i.ctx.update().then((function(){s(i.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var i=this.w,a=i.config.series[t];return r(r({},i.config.series[t]),{},{name:e.name?e.name:null==a?void 0:a.name,color:e.color?e.color:null==a?void 0:a.color,type:e.type?e.type:null==a?void 0:a.type,group:e.group?e.group:null==a?void 0:a.group,data:e.data?e.data:null==a?void 0:a.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"'], ").concat(s," circle[j='").concat(t,"'], ").concat(s," rect[j='").concat(t,"']")).members[0]:void 0===t&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(e)),a?(new S(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&(t.config.xaxis[i]=e.xaxis[i],t.globals.lastXAxis[i]=e.xaxis[i])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new I(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(s=e.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max,i.config.yaxis.map((function(e,a){i.globals.zoomed||void 0!==s[a]?function(e){void 0!==s[e]&&(i.config.yaxis[e].min=s[e].min,i.config.yaxis[e].max=s[e].max)}(a):void 0!==t.ctx.opts.yaxis[a]&&(e.min=t.ctx.opts.yaxis[a].min,e.max=t.ctx.opts.yaxis[a].max)}))}}]),e}();Re="undefined"!=typeof window?window:void 0,Be=function(e,t){var i=(void 0!==this?this:e).SVG=function(e){if(i.supported)return e=new i.Doc(e),i.parser.draw||i.prepare(),e};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(e){return"Svgjs"+d(e)+i.did++},i.create=function(e){var i=t.createElementNS(this.ns,e);return i.setAttribute("id",this.eid(e)),i},i.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var a=e.length-1;a>=0;a--)if(e[a])for(var s in t)e[a].prototype[s]=t[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,i.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&i.extend(t,e.extend),e.construct&&i.extend(e.parent||i.Container,e.construct),t},i.adopt=function(t){return t?t.instance?t.instance:((a="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new i.Nested:new i.Doc:"linearGradient"==t.nodeName?new i.Gradient("linear"):"radialGradient"==t.nodeName?new i.Gradient("radial"):i[d(t.nodeName)]?new(i[d(t.nodeName)]):new i.Element(t)).type=t.nodeName,a.node=t,t.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var e=t.getElementsByTagName("body")[0],a=(e?new i.Doc(e):i.adopt(t.documentElement).nested()).size(2,0);i.parser={body:e||t.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},t.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.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},i.utils={map:function(e,t){for(var i=e.length,a=[],s=0;s<i;s++)a.push(t(e[s]));return a},filter:function(e,t){for(var i=e.length,a=[],s=0;s<i;s++)t(e[s])&&a.push(e[s]);return a},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},i.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"}},i.Color=function(e){var t,a;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?i.regex.isRgb.test(e)?(t=i.regex.rgb.exec(e.replace(i.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):i.regex.isHex.test(e)&&(t=i.regex.hex.exec(4==(a=e).length?["#",a.substring(1,2),a.substring(1,2),a.substring(2,3),a.substring(2,3),a.substring(3,4),a.substring(3,4)].join(""):a),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===n(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(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(e){return this.destination=new i.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new i.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),i.Color.test=function(e){return e+="",i.regex.isHex.test(e)||i.regex.isRgb.test(e)},i.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},i.Color.isColor=function(e){return i.Color.isRgb(e)||i.Color.test(e)},i.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),i.PointArray=function(e,t){i.Array.call(this,e,t||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(e,t,i){return t.x=i.x=e[0],t.y=i.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,i){return t.x=i.x,t.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),r=0,o=s.length;r<o;++r)a[s[r]]=function(e){return function(t,i,s){if("H"==e)t[0]=t[0]+i.x;else if("V"==e)t[0]=t[0]+i.y;else if("A"==e)t[5]=t[5]+i.x,t[6]=t[6]+i.y;else for(var r=0,n=t.length;r<n;++r)t[r]=t[r]+(r%2?i.y:i.x);if(a&&"function"==typeof a[e])return a[e](t,i,s)}}(s[r].toUpperCase());i.PathArray=function(e,t){i.Array.call(this,e,t||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(e){for(var t=0,i=e.length,a="";t<i;t++)a+=e[t][0],null!=e[t][1]&&(a+=e[t][1],null!=e[t][2]&&(a+=" ",a+=e[t][2],null!=e[t][3]&&(a+=" ",a+=e[t][3],a+=" ",a+=e[t][4],null!=e[t][5]&&(a+=" ",a+=e[t][5],a+=" ",a+=e[t][6],null!=e[t][7]&&(a+=" ",a+=e[t][7])))));return a+" "}(this.value)},move:function(e,t){var i=this.bbox();return i.x,i.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,a=this.destination.value,s=[],r=new i.PathArray,n=0,o=t.length;n<o;n++){s[n]=[t[n][0]];for(var l=1,c=t[n].length;l<c;l++)s[n][l]=t[n][l]+(a[n][l]-t[n][l])*e;"A"===s[n][0]&&(s[n][4]=+(0!=s[n][4]),s[n][5]=+(0!=s[n][5]))}return r.value=s,r},parse:function(e){if(e instanceof i.PathArray)return e.valueOf();var t,s={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(i.regex.numbersWithDots,c).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var r=[],n=new i.Point,o=new i.Point,l=0,h=e.length;do{i.regex.isPathLetter.test(e[l])?(t=e[l],++l):"M"==t?t="L":"m"==t&&(t="l"),r.push(a[t].call(null,e.slice(l,l+=s[t.toUpperCase()]).map(parseFloat),n,o))}while(h>l);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(i.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof i.Number&&(this.value=e.valueOf(),this.unit=e.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(e){return e=new i.Number(e),new i.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new i.Number(e),new i.Number(this-e,this.unit||e.unit)},times:function(e){return e=new i.Number(e),new i.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new i.Number(e),new i.Number(this/e,this.unit||e.unit)},to:function(e){var t=new i.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new i.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new i.Number(this.destination).minus(this).times(e).plus(this):this}}}),i.Element=i.invent({create:function(e){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var a=g(this,e,t);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(e){this.writeDataToDom();var t=m(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},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 e=this.attr("class");return null==e?[]:e.trim().split(i.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return i.get(this.attr(e))},parent:function(t){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!t)return a;for(;a&&a.node instanceof e.SVGElement;){if("string"==typeof t?a.matches(t):a instanceof t)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(e){var t=[],i=this;do{if(!(i=i.parent(e))||!i.node)break;t.push(i)}while(i.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var a=t.createElement("svg");if(!(e&&this instanceof i.Parent))return a.appendChild(e=t.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");a.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var s=0,r=a.firstChild.childNodes.length;s<r;s++)this.node.appendChild(a.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),i.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},i.morph=function(e){return function(t,a){return new i.MorphObj(t,a).at(e)}},i.Situation=i.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(e.duration).valueOf(),this.delay=new i.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(e){this._target=e,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(e,t,a){"object"===n(e)&&(t=e.ease,a=e.delay,e=e.duration);var s=new i.Situation({duration:e||1e3,delay:a||0,ease:i.easing[t||"-"]||t});return this.queue(s),this},target:function(e){return e&&e instanceof i.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.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(e){return("function"==typeof e||e instanceof i.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var a in t.animations){e=this.target()[a](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[a])||(t.animations[a]=[t.animations[a]]);for(var s=e.length;s--;)t.animations[a][s]instanceof i.Number&&(e[s]=new i.Number(e[s])),t.animations[a][s]=e[s].morph(t.animations[a][s])}for(var a in t.attrs)t.attrs[a]=new i.MorphObj(this.target().attr(a),t.attrs[a]);for(var a in t.styles)t.styles[a]=new i.MorphObj(this.target().style(a),t.styles[a]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var i=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==t&&(e.call(this,t),this.off("finished.fx",i))})),this._callStart()},during:function(e){var t=this.last(),a=function(a){a.detail.situation==t&&e.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,t)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(e){var t=function t(i){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,i){return this.last()[i||"animations"][e]=t,this._callStart()},step:function(e){var t,i,a;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),i=Math.floor(t),!0===this.situation.loops||i<this.situation.loops?(this.pos=t-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))):(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 e,t=this,a=this.target(),s=this.situation;for(var r in s.animations)e=[].concat(s.animations[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(s.ease(t.pos),t.pos):e})),a[r].apply(a,e);for(var r in s.attrs)e=[r].concat(s.attrs[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(s.ease(t.pos),t.pos):e})),a.attr.apply(a,e);for(var r in s.styles)e=[r].concat(s.styles[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(s.ease(t.pos),t.pos):e})),a.style.apply(a,e);if(s.transforms.length){e=s.initialTransformation,r=0;for(var n=s.transforms.length;r<n;r++){var o=s.transforms[r];o instanceof i.Matrix?e=o.relative?e.multiply((new i.Matrix).morph(o).at(s.ease(this.pos))):e.morph(o).at(s.ease(this.pos)):(o.relative||o.undo(e.extract()),e=e.multiply(o.at(s.ease(this.pos))))}a.matrix(e)}return this},once:function(e,t,i){var a=this.last();return i||(e=a.ease(e)),a.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:i.Element,construct:{animate:function(e,t,a){return(this.fx||(this.fx=new i.FX(this))).animate(e,t,a)},delay:function(e){return(this.fx||(this.fx=new i.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(e,t){return i.Color.isColor(t)?new i.Color(e).morph(t):i.regex.delimiter.test(e)?i.regex.pathLetters.test(e)?new i.PathArray(e).morph(t):new i.Array(e).morph(t):i.regex.numberAndUnit.test(t)?new i.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(e,t,i){if("object"===n(e))for(var a in e)this.attr(a,e[a]);else this.add(e,t,"attrs");return this},plot:function(e,t,i,a){return 4==arguments.length?this.plot([e,t,i,a]):this.add("plot",new(this.target().morphArray)(e))}}),i.Box=i.invent({create:function(e,t,a,s){if(!("object"!==n(e)||e instanceof i.Element))return i.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);var r;4==arguments.length&&(this.x=e,this.y=t,this.width=a,this.height=s),null==(r=this).x&&(r.x=0,r.y=0,r.width=0,r.height=0),r.w=r.width,r.h=r.height,r.x2=r.x+r.width,r.y2=r.y+r.height,r.cx=r.x+r.width/2,r.cy=r.y+r.height/2}}),i.BBox=i.invent({create:function(e){if(i.Box.apply(this,[].slice.call(arguments)),e instanceof i.Element){var a;try{if(!t.documentElement.contains){for(var s=e.node;s.parentNode;)s=s.parentNode;if(s!=t)throw new Error("Element not in the dom")}a=e.node.getBBox()}catch(t){if(e instanceof i.Shape){i.parser.draw||i.prepare();var r=e.clone(i.parser.draw.instance).show();r&&r.node&&"function"==typeof r.node.getBBox&&(a=r.node.getBBox()),r&&"function"==typeof r.remove&&r.remove()}else a={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}i.Box.call(this,a)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(e){var t=f([1,0,0,1,0,0]);e=null===e?t:e instanceof i.Element?e.matrixify():"string"==typeof e?f(e.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?f([].slice.call(arguments)):Array.isArray(e)?f(e):e&&"object"===n(e)?e:t;for(var a=b.length-1;a>=0;--a)this[b[a]]=null!=e[b[a]]?e[b[a]]:t[b[a]]},extend:{extract:function(){var e=p(this,0,1);p(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(e){return this.destination=new i.Matrix(e),this},multiply:function(e){return new i.Matrix(this.native().multiply(function(e){return e instanceof i.Matrix||(e=new i.Matrix(e)),e}(e).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(e,t){return new i.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=i.parser.native.createSVGMatrix(),t=b.length-1;t>=0;t--)e[b[t]]=this[b[t]];return e},toString:function(){return"matrix("+x(this.a)+","+x(this.b)+","+x(this.c)+","+x(this.d)+","+x(this.e)+","+x(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new i.Matrix(t)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(e,t){var i;i=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===n(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(e,t){return this.destination=new i.Point(e,t),this}}}),i.extend(i.Element,{point:function(e,t){return new i.Point(e,t).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(e,t,a){if(null==e){for(e={},a=(t=this.node.attributes).length-1;a>=0;a--)e[t[a].nodeName]=i.regex.isNumber.test(t[a].nodeValue)?parseFloat(t[a].nodeValue):t[a].nodeValue;return e}if("object"===n(e))for(var s in e)this.attr(s,e[s]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?i.defaults.attrs[e]:i.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(i.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof i.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new i.Number(t):i.Color.isColor(t)?t=new i.Color(t):Array.isArray(t)&&(t=new i.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof a?this.node.setAttributeNS(a,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),i.extend(i.Element,{transform:function(e,t){var a;return"object"!==n(e)?(a=new i.Matrix(this).extract(),"string"==typeof e?a[e]:a):(a=new i.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(a=t?a.multiply(new i.Matrix(e)):new i.Matrix(e)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(i.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(f(t[1])):e[t[0]].apply(e,t[1])}),new i.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),i=e.screenCTM().inverse();return this.addTo(e).untransform().transform(i.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=e[i];else if(e&&"object"===n(e))for(i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=e[this.arguments[i]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===n(e))for(var a in e)this.style(a,e[a]);else{if(!i.regex.isCss.test(e))return this.node.style[h(e)];for(e=e.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));t=e.pop();)this.style(t[0],t[1])}else this.node.style[h(e)]=null===t||i.regex.isBlank.test(t)?"":t;return this}}),i.Parent=i.invent({create:function(e){this.constructor.call(this,e)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),(function(e){return i.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return i.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var a=this.children(),s=0,r=a.length;s<r;s++)a[s]instanceof i.Element&&e.apply(a[s],[s,a]),t&&a[s]instanceof i.Container&&a[s].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.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()}}}),i.extend(i.Parent,{ungroup:function(e,t){return 0===t||this instanceof i.Defs||this.node==i.parser.draw||(e=e||(this instanceof i.Doc?this:this.parent(i.Parent)),t=t||1/0,this.each((function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),i.Container=i.invent({create:function(e){this.constructor.call(this,e)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(e){i.Element.prototype[e]=function(t){return i.on(this.node,e,t),this}})),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(e,t,a,s,r){var n=a.bind(s||e.instance||e),o=(i.handlerMap.indexOf(e)+1||i.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";i.listeners[o]=i.listeners[o]||{},i.listeners[o][l]=i.listeners[o][l]||{},i.listeners[o][l][c]=i.listeners[o][l][c]||{},a._svgjsListenerId||(a._svgjsListenerId=++i.listenerId),i.listeners[o][l][c][a._svgjsListenerId]=n,e.addEventListener(l,n,r||{passive:!0})},i.off=function(e,t,a){var s=i.handlerMap.indexOf(e),r=t&&t.split(".")[0],n=t&&t.split(".")[1],o="";if(-1!=s)if(a){if("function"==typeof a&&(a=a._svgjsListenerId),!a)return;i.listeners[s][r]&&i.listeners[s][r][n||"*"]&&(e.removeEventListener(r,i.listeners[s][r][n||"*"][a],!1),delete i.listeners[s][r][n||"*"][a])}else if(n&&r){if(i.listeners[s][r]&&i.listeners[s][r][n]){for(var l in i.listeners[s][r][n])i.off(e,[r,n].join("."),l);delete i.listeners[s][r][n]}}else if(n)for(var c in i.listeners[s])for(var o in i.listeners[s][c])n===o&&i.off(e,[c,n].join("."));else if(r){if(i.listeners[s][r]){for(var o in i.listeners[s][r])i.off(e,[r,o].join("."));delete i.listeners[s][r]}}else{for(var c in i.listeners[s])i.off(e,c);delete i.listeners[s],delete i.handlerMap[s]}},i.extend(i.Element,{on:function(e,t,a,s){return i.on(this.node,e,t,a,s),this},off:function(e,t){return i.off(this.node,e,t),this},fire:function(t,a){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new i.CustomEvent(t,{detail:a,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}),i.Doc=i.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,i.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=i.adopt(e):this._defs=new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},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,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,i=m(t.cloneNode(!0));return e?(e.node||e).appendChild(i.node):t.parentNode.insertBefore(i.node,t.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(e){this.constructor.call(this,i.create(e+"Gradient")),this.type=e},inherit:i.Container,extend:{at:function(e,t,a){return this.put(new i.Stop).update(e,t,a)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,a){return"transform"==e&&(e="gradientTransform"),i.Container.prototype.attr.call(this,e,t,a)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),i.extend(i.Gradient,i.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new i.Number(e),fy:new i.Number(t)}):this.attr({x1:new i.Number(e),y1:new i.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new i.Number(e),cy:new i.Number(t)}):this.attr({x2:new i.Number(e),y2:new i.Number(t)})}}),i.extend(i.Defs,{gradient:function(e,t){return this.put(new i.Gradient(e)).update(t)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(e){return("number"==typeof e||e instanceof i.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new i.Number(e.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,a){return"transform"==e&&(e="patternTransform"),i.Container.prototype.attr.call(this,e,t,a)}},construct:{pattern:function(e,t,i){return this.defs().pattern(e,t,i)}}}),i.extend(i.Defs,{pattern:function(e,t,a){return this.put(new i.Pattern).update(a).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(e){this.constructor.call(this,e)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,i.xlink)}},construct:{use:function(e,t){return this.put(new i.Use).element(e,t)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(e,t){return this.put(new i.Rect).size(e,t)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(e){return this.put(new i.Circle).rx(new i.Number(e).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(e,t){return this.put(new i.Ellipse).size(e,t).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),i.extend(i.Circle,i.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new i.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new i.Number(e).divide(2))},size:function(e,t){var a=g(this,e,t);return this.rx(new i.Number(a.width).divide(2)).ry(new i.Number(a.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,a,s){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:a,y2:s}:new i.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var i=g(this,e,t);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(e,t,a,s){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=e?[e,t,a,s]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(e){return this.put(new i.Polyline).plot(e||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(e){return this.put(new i.Polygon).plot(e||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new i.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var i=g(this,e,t);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new i.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new i.Path).plot(e||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(t){if(!t)return this;var a=this,s=new e.Image;return i.on(s,"load",(function(){i.off(s);var e=a.parent(i.Pattern);null!==e&&(0==a.width()&&0==a.height()&&a.size(s.width,s.height),e&&0==e.width()&&0==e.height()&&e.size(a.width(),a.height()),"function"==typeof a._loaded&&a._loaded.call(a,{width:s.width,height:s.height,ratio:s.width/s.height,url:t}))})),i.on(s,"error",(function(e){i.off(s),"function"==typeof a._error&&a._error.call(a,e)})),this.attr("href",s.src=this.src=t,i.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,a){return this.put(new i.Image).load(e).size(t||0,a||t||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text")),this.dom.leading=new i.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,a=0,s=t.length;a<s;++a)0!=a&&3!=t[a].nodeType&&1==i.adopt(t[a]).dom.newLined&&(e+="\n"),e+=t[a].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{a=0;for(var r=(e=e.split("\n")).length;a<r;a++)this.tspan(e[a]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new i.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=i.utils.map(i.utils.filterSVGElements(e.childNodes),(function(e){return i.adopt(e)}));return new i.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,a=0,s=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?a+=s:(this.attr("dy",s+a),a=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new i.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new i.Text).text(e)},plain:function(e){return this.put(new i.Text).plain(e)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(i.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,a=new i.Tspan;return!1===this._build&&this.clear(),t.appendChild(a.node),a.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),i=null;return t&&(i=t.plot(e)),null==e?i:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg")),this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function c(e,t,a,s){return a+s.replace(i.regex.dots," .")}function h(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function g(e,t,i){if(null==t||null==i){var a=e.bbox();null==t?t=a.width/a.height*i:null==i&&(i=a.height/a.width*t)}return{width:t,height:i}}function p(e,t,i){return{x:t*e.a+i*e.c+0,y:t*e.b+i*e.d+0}}function f(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function m(t){for(var a=t.childNodes.length-1;a>=0;a--)t.childNodes[a]instanceof e.SVGElement&&m(t.childNodes[a]);return i.adopt(t).id(i.eid(t.nodeName))}function x(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||i.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var a=l[e].length-1;a>=0;a--)null!=t[l[e][a]]&&this.attr(l.prefix(e,l[e][a]),t[l[e][a]]);return this},i.extend(i.Element,i.FX,t)})),i.extend(i.Element,i.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new i.Number(e).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(e){return this.y(new i.Number(e).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),i.Set=i.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,i=e.length;t<i;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,i=this.members.length;t<i;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new i.Set(e)}}}),i.FX.Set=i.invent({create:function(e){this.set=e}}),i.Set.inherit=function(){var e=[];for(var t in i.Shape.prototype)"function"==typeof i.Shape.prototype[t]&&"function"!=typeof i.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){i.Set.prototype[e]=function(){for(var t=0,a=this.members.length;t<a;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new i.FX.Set(this)):this}})),e=[],i.FX.prototype)"function"==typeof i.FX.prototype[t]&&"function"!=typeof i.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){i.FX.Set.prototype[e]=function(){for(var t=0,i=this.set.members.length;t<i;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(e,t){if("object"===n(arguments[0]))for(var i in e)this.remember(i,e[i]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(e){var a=t.getElementById(function(e){var t=(e||"").toString().match(i.regex.reference);if(t)return t[1]}(e)||e);return i.adopt(a)},i.select=function(e,a){return new i.Set(i.utils.map((a||t).querySelectorAll(e),(function(e){return i.adopt(e)})))},i.extend(i.Parent,{select:function(e){return i.select(e,this.node)}});var b="abcdef".split("");if("function"!=typeof e.CustomEvent){var v=function(e,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=t.createEvent("CustomEvent");return a.initCustomEvent(e,i.bubbles,i.cancelable,i.detail),a};v.prototype=e.Event.prototype,i.CustomEvent=v}else i.CustomEvent=e.CustomEvent;return i},void 0!==(a=function(){return Be(Re,Re.document)}.call(t,i,t,e))&&(e.exports=a),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,i){return this.put(new SVG.BlendEffect(e,t,i))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,i){return this.put(new SVG.CompositeEffect(e,t,i))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,i){return this.put(new SVG.DiffuseLightingEffect(e,t,i))},displacementMap:function(e,t,i,a,s){return this.put(new SVG.DisplacementMapEffect(e,t,i,a,s))},specularLighting:function(e,t,i,a){return this.put(new SVG.SpecularLightingEffect(e,t,i,a))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,i,a,s){return this.put(new SVG.TurbulenceEffect(e,t,i,a,s))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&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(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,i){return this.parent()&&this.parent().diffuseLighting(e,t,i).in(this)},displacementMap:function(e,t,i,a){return this.parent()&&this.parent().displacementMap(this,e,t,i,a)},specularLighting:function(e,t,i,a){return this.parent()&&this.parent().specularLighting(e,t,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,i,a,s){return this.parent()&&this.parent().turbulence(e,t,i,a,s).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,i){this.attr({in:e,in2:t,mode:i||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=s(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=s(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,i){this.attr({in:e,in2:t,operator:i})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,i,a,s){this.attr({in:e,in2:t,scale:i,xChannelSelector:a,yChannelSelector:s})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,i=e.length,a=[];t<i;t++)a.push(e[t]);return a.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,i,a,s){this.attr({numOctaves:t,seed:i,stitchTiles:a,baseFrequency:e,type:s})}},i={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<e.length;i++)e[i]instanceof SVG.MergeNode?this.put(e[i]):this.put(new SVG.MergeNode(e[i]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,i){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:i})},specularLighting:function(e,t,i,a){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:i,kernelUnitLength:a})}},a={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,i){this.attr({x:e,y:t,z:i})},spotLight:function(e,t,i,a,s,r){this.attr({x:e,y:t,z:i,pointsAtX:a,pointsAtY:s,pointsAtZ:r})},mergeNode:function(e){this.attr("in",e)}};function s(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[t])e(arguments[t][i],i,arguments[t])}["r","g","b","a"].forEach((function(e){a["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){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])}}})),r(t,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),r(i,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),r(a,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),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(){function e(e,s,r,n,o,l,c){for(var h=e.slice(s,r||c),d=n.slice(o,l||c),u=0,g={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};h[u]=t.call(g,h[u]),d[u]=t.call(p,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(a.call(g,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(a.call(p,d[u])))):(h[u]=i.call(g,h[u]),d[u]=i.call(p,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]),u==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:h,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function i(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function a(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var i,a,s,r,n,o,l,c,h,d,u,g,p,f,m,x,b,v,y,C,w,S,k,E,A,P,L=Math.abs(t[1]),M=Math.abs(t[2]),T=t[3]%360,_=t[4],F=t[5],D=t[6],H=t[7],O=new SVG.Point(e),I=new SVG.Point(D,H),z=[];if(0===L||0===M||O.x===I.x&&O.y===I.y)return[["C",O.x,O.y,I.x,I.y,I.x,I.y]];for((a=(i=new SVG.Point((O.x-I.x)/2,(O.y-I.y)/2).transform((new SVG.Matrix).rotate(T))).x*i.x/(L*L)+i.y*i.y/(M*M))>1&&(L*=a=Math.sqrt(a),M*=a),s=(new SVG.Matrix).rotate(T).scale(1/L,1/M).rotate(-T),O=O.transform(s),o=(r=[(I=I.transform(s)).x-O.x,I.y-O.y])[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,_===F&&(l*=-1),c=new SVG.Point((I.x+O.x)/2+l*-r[1],(I.y+O.y)/2+l*r[0]),h=new SVG.Point(O.x-c.x,O.y-c.y),d=new SVG.Point(I.x-c.x,I.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),g=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(g*=-1),F&&u>g&&(g+=2*Math.PI),!F&&u<g&&(g-=2*Math.PI),x=[],b=u,p=(g-u)/(f=Math.ceil(2*Math.abs(u-g)/Math.PI)),m=4*Math.tan(p/4)/3,w=0;w<=f;w++)y=Math.cos(b),v=Math.sin(b),C=new SVG.Point(c.x+y,c.y+v),x[w]=[new SVG.Point(C.x+m*v,C.y-m*y),C,new SVG.Point(C.x-m*v,C.y+m*y)],b+=p;for(x[0][0]=x[0][1].clone(),x[x.length-1][2]=x[x.length-1][1].clone(),s=(new SVG.Matrix).rotate(T).scale(L,M).rotate(-T),w=0,S=x.length;w<S;w++)x[w][0]=x[w][0].transform(s),x[w][1]=x[w][1].transform(s),x[w][2]=x[w][2].transform(s);for(w=1,S=x.length;w<S;w++)k=(C=x[w-1][2]).x,E=C.y,A=(C=x[w][0]).x,P=C.y,D=(C=x[w][1]).x,H=C.y,z.push(["C",k,E,A,P,D,H]);return z}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function s(e,t){if(!1===t)return!1;for(var i=t,a=e.length;i<a;++i)if("M"==e[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var i=this.value,a=this.parse(t),r=0,n=0,o=!1,l=!1;!1!==r||!1!==n;){var c;o=s(i,!1!==r&&r+1),l=s(a,!1!==n&&n+1),!1===r&&(r=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===n&&(n=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?a.push(a[0])-1:a.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=e(i,r,o,a,n,l);i=i.slice(0,r).concat(h.start,!1===o?[]:i.slice(o)),a=a.slice(0,n).concat(h.dest,!1===l?[]:a.slice(l)),r=!1!==o&&r+h.start.length,n=!1!==l&&n+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=a,this}})}(),function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var i=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){i.start(e)})),this.el.on("touchstart.drag",(function(e){i.start(e)}))},e.prototype.transformPoint=function(e,t){var i=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=i.clientX-(t||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),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(e,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),i=this.transformPoint(e),a=this.startPoints.box.x+i.x-this.startPoints.point.x,s=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,n=i.x-this.startPoints.point.x,o=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var l=r.call(this.el,a,s,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(a):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(s):!1!==l.y&&this.el.y(l.y)}else"object"==typeof r&&(null!=r.minX&&a<r.minX?n=(a=r.minX)-this.startPoints.box.x:null!=r.maxX&&a>r.maxX-t.width&&(n=(a=r.maxX-t.width)-this.startPoints.box.x),null!=r.minY&&s<r.minY?o=(s=r.minY)-this.startPoints.box.y:null!=r.maxY&&s>r.maxY-t.height&&(o=(s=r.maxY-t.height)-this.startPoints.box.y),null!=r.snapToGrid&&(a-=a%r.snapToGrid,s-=s%r.snapToGrid,n-=n%r.snapToGrid,o-=o%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:n,y:o},!0):this.el.move(a,s));return i},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,i){"function"!=typeof t&&"object"!=typeof t||(i=t,t=!0);var a=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?a.init(i||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,i){var a="string"!=typeof e?e:t[e];return i?a/2:a},this.pointCoords=function(e,t){var i=this.pointsList[e];return{x:this.pointCoord(i[0],t,"t"===e||"b"===e),y:this.pointCoord(i[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==t[s]&&(this.options[s]=t[s]);var r=["points","pointsExclude"];for(var s in r){var n=this.options[r[s]];"string"==typeof n?n=n.length>0?n.split(/\s*,\s*/i):[]:"boolean"==typeof n&&"points"===r[s]&&(n=n?a:[]),this.options[r[s]]=n}this.options.points=[a,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,a=t.length;i<a;++i){var s=function(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;e.el.fire("point",{x:a,y:s,i:t,event:i})}}(i),r=this.drawPoint(t[i][0],t[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s);this.pointSelection.set.add(r)}},e.prototype.drawPoint=function(e,t){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof i)return i.call(this,e,t);throw new Error("Unknown "+i+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(i,a){var s=e.pointCoords(i,t);e.rectSelection.set.get(a+1).center(s.x,s.y)})),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,i=this.el.bbox();function a(e){return function(i){(i=i||window.event).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(e,{x:a,y:s,event:i})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(e,s){var r=t.pointCoords(e,i),n=t.drawPoint(r.x,r.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",a(e)).on("touchstart",a(e));t.rectSelection.set.add(n)})),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var s=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var i=e.pageX||e.touches[0].pageX,a=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:i,y:a,event:e})},r=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",s).on("mousedown",s);this.rectSelection.set.add(r)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.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(t,i){return"object"==typeof t&&(i=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,i){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==e[i]&&(this.options[i]=e[i]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.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},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:e.detail.x,y:e.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!==e.detail.i){var a=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[a[e.detail.i][0],a[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var i=this.snapToGrid(e,t);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(e,t){var i=this.snapToGrid(e,t,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,!0),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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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,!0),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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=e+this.parameters.p.x,a=t+this.parameters.p.y,s=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),r=Math.atan2(a-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),n=this.parameters.rotation+180*(r-s)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(n-n%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var i=this.snapToGrid(e,t,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:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.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:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.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")},e.prototype.snapToGrid=function(e,t,i,a){var s;return void 0!==a?s=[(i+e)%this.options.snapToGrid,(a+t)%this.options.snapToGrid]:(i=null==i?3:i,s=[(this.parameters.box.x+e+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(s[0]-=this.options.snapToGrid),t<0&&(s[1]-=this.options.snapToGrid),e-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,i,a)},e.prototype.constraintToBox=function(e,t,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+e<n.minX&&(e=n.minX-s),void 0!==n.maxX&&s+e>n.maxX&&(e=n.maxX-s),void 0!==n.minY&&r+t<n.minY&&(t=n.minY-r),void 0!==n.maxY&&r+t>n.maxY&&(t=n.maxY-r),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+e[0],r=this.parameters.box.height-e[1],n=s/r;return n<a?(i[1]=s/a-this.parameters.box.height,t&&(i[1]=-i[1])):n>a&&(i[0]=this.parameters.box.width-r*a,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var je=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new C(this.ctx),this.ctx.axes=new te(this.ctx),this.ctx.core=new Ve(this.ctx.el,this.ctx),this.ctx.config=new z({}),this.ctx.data=new j(this.ctx),this.ctx.grid=new q(this.ctx),this.ctx.graphics=new S(this.ctx),this.ctx.coreUtils=new k(this.ctx),this.ctx.crosshairs=new ie(this.ctx),this.ctx.events=new Q(this.ctx),this.ctx.exports=new Z(this.ctx),this.ctx.localization=new ee(this.ctx),this.ctx.options=new T,this.ctx.responsive=new ae(this.ctx),this.ctx.series=new W(this.ctx),this.ctx.theme=new se(this.ctx),this.ctx.formatters=new D(this.ctx),this.ctx.titleSubtitle=new re(this.ctx),this.ctx.legend=new ue(this.ctx),this.ctx.toolbar=new ge(this.ctx),this.ctx.tooltip=new Ce(this.ctx),this.ctx.dimensions=new he(this.ctx),this.ctx.updateHelpers=new We(this.ctx),this.ctx.zoomPanSelection=new pe(this.ctx),this.ctx.w.globals.tooltip=new Ce(this.ctx)}}]),e}(),Ge=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach((function(e){s.removeEventListener(e,t.ctx.events.documentEvent)}));var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elLegendWrap=null,r.elLegendForeign=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),e}(),Ze=new WeakMap,Ue=function(){function e(t,i){o(this,e),this.opts=i,this.ctx=this,this.w=new R(i).init(),this.el=t,this.w.globals.cuid=y.randomId(),this.w.globals.chartID=this.w.config.chart.id?y.escapeString(this.w.config.chart.id):this.w.globals.cuid,new je(this).initModules(),this.create=y.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,i){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var a=e.w.config.chart.events.beforeMount;if("function"==typeof a&&a(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var i=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var a=e.getBoundingClientRect();"none"!==e.style.display&&0!==a.width||(i=!0)}var s=new ResizeObserver((function(a){i&&t.call(e,a),i=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return s.observe(e)})):s.observe(e),Ze.set(t,s)}(e.el.parentNode,e.parentResizeHandler),!e.css){var s=e.el.getRootNode&&e.el.getRootNode(),r=y.is("ShadowRoot",s),n=e.el.ownerDocument,o=n.getElementById("apexcharts-css");if(r||!o){var l;e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n 0%,to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\n.legend-mouseover-inactive {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0,0,0,.7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0,0,0,.7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n pointer-events: none\n}';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&e.css.setAttribute("nonce",c),r?s.prepend(e.css):n.head.appendChild(e.css)}}var h=e.create(e.w.config.series,{});if(!h)return t(e);e.mount(h).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(h)})).catch((function(e){i(e)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var i=this.w;new je(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new I(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return a.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===a.svgWidth)return a.animationEnded=!0,null;var s=k.checkComboSeries(e);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var r=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new X(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new k(this).getLargestMarkerSize(),this.dimensions.plotCoords();var n=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,n),l=new V(this);return l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:o,xyRatios:n,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,a=i.w;return new Promise((function(s,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===t||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new q(i);var n,o,l=i.grid.drawGrid();if(i.annotations=new _(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===a.config.grid.position&&(l&&a.globals.dom.elGraphical.add(l.el),null!=l&&null!==(n=l.elGridBorders)&&void 0!==n&&n.node&&a.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)a.globals.dom.elGraphical.add(t.elGraph[c]);else a.globals.dom.elGraphical.add(t.elGraph);"front"===a.config.grid.position&&(l&&a.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&a.globals.dom.elGraphical.add(l.elGridBorders)),"front"===a.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===a.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==a.config.chart.type&&i.axes.drawAxis(a.config.chart.type,l);var h=new U(e.ctx,l),d=new J(e.ctx,l);if(null!==l&&(h.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),a.config.yaxis.map((function(e,t){-1===a.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)}))),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var u=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){u[e]=!1}))}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Ze.get(e))&&(t.disconnect(),Ze.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach((function(e,t){e.id===y.escapeString(i)&&Apex._chartInstances.splice(t,1)})),new Ge(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w;return n.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,i){return t.updateHelpers._extendSeries(e,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,s,r)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s<a.length;s++)if(null!==e[s]&&void 0!==e[s])for(var r=0;r<e[s].data.length;r++)a[s].data.push(e[s].data[r]);return i.w.config.series=a,t&&(i.w.globals.initialSeries=y.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(i,a){new Ge(t.ctx).clear({isUpdating:!0});var s=t.create(t.w.config.series,e);if(!s)return i(t);t.mount(s).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)})).catch((function(e){a(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Z(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Z(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=y.escapeString(e);if(Apex._chartInstances){var i=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),i=0;i<t.length;i++)new e(t[i],JSON.parse(t[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var a=null;if(-1!==i.publicMethods.indexOf(t)){for(var s=arguments.length,r=new Array(s>2?s-2:0),n=2;n<s;n++)r[n-2]=arguments[n];a=i[t].apply(i,r)}return a}}},{key:"merge",value:function(e,t){return y.extend(e,t)}}]),e}();e.exports=Ue},703:(e,t,i)=>{"use strict";var a=i(414);function s(){}function r(){}r.resetWarningCache=s,e.exports=function(){function e(e,t,i,s,r,n){if(n!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:s};return i.PropTypes=i,i}},697:(e,t,i)=>{e.exports=i(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},229:(e,t,i)=>{"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,a=arguments[t];for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,i,a){return i&&e(t.prototype,i),a&&e(t,a),t}}(),n=h(i(927)),o=i(196),l=h(o),c=h(i(697));function h(e){return e&&e.__esModule?e:{default:e}}window.ApexCharts=n.default;var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.default.createRef?i.chartRef=l.default.createRef():i.setRef=function(e){return i.chartRef=e},i.chart=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,o.Component),r(e,[{key:"render",value:function(){var e=function(e,t){var i,a={};for(i in e)0<=t.indexOf(i)||Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=e[i]);return a}(this.props,[]);return l.default.createElement("div",s({ref:l.default.createRef?this.chartRef:this.setRef},e))}},{key:"componentDidMount",value:function(){var e=l.default.createRef?this.chartRef.current:this.chartRef;this.chart=new n.default(e,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var e=(s=this.props).type,t=s.height,i=s.width,a=s.series,s=s.options;return this.extend(s,{chart:{type:e,height:t,width:i},series:a})}},{key:"isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":a(e))&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(e,t){var i=this,a=("function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])}return t}),Object.assign({},e));return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(s){i.isObject(t[s])&&s in e?a[s]=i.extend(e[s],t[s]):Object.assign(a,function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},s,t[s]))})),a}},{key:"componentDidUpdate",value:function(e){if(!this.chart)return null;var t=(s=this.props).options,i=s.series,a=s.height,s=s.width,r=JSON.stringify(e.options),n=JSON.stringify(e.series),o=(t=JSON.stringify(t),JSON.stringify(i));r===t&&n===o&&a===e.height&&s===e.width||(n!==o&&r===t&&a===e.height&&s===e.width?this.chart.updateSeries(i):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),e}();(t.Z=d).propTypes={type:c.default.string.isRequired,width:c.default.oneOfType([c.default.string,c.default.number]),height:c.default.oneOfType([c.default.string,c.default.number]),series:c.default.array.isRequired,options:c.default.object.isRequired},d.defaultProps={type:"line",width:"100%",height:"auto"}},196:e=>{"use strict";e.exports=window.React},967:(e,t)=>{var i;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=n(e,r(i)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)a.call(e,i)&&e[i]&&(t=n(t,i));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(i=function(){return s}.apply(t,[]))||(e.exports=i)}()}},t={};function i(a){var s=t[a];if(void 0!==s)return s.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};i.r(e),i.d(e,{hasBrowserEnv:()=>re,hasStandardBrowserEnv:()=>ne,hasStandardBrowserWebWorkerEnv:()=>le});var t=i(196),a=i.n(t);const s={};s.headline=(0,t.createElement)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"white"})),s.headlineBlack=(0,t.createElement)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13.5 2V12H14.5C14.6458 12 14.7604 12.0521 14.8438 12.1562C14.9479 12.2396 15 12.3542 15 12.5V13.5C15 13.6458 14.9479 13.7604 14.8438 13.8438C14.7604 13.9479 14.6458 14 14.5 14H9.5C9.35417 14 9.22917 13.9479 9.125 13.8438C9.04167 13.7604 9 13.6458 9 13.5V12.5C9 12.3542 9.04167 12.2396 9.125 12.1562C9.22917 12.0521 9.35417 12 9.5 12H10.5V8H4.5V12H5.5C5.64583 12 5.76042 12.0521 5.84375 12.1562C5.94792 12.2396 6 12.3542 6 12.5V13.5C6 13.6458 5.94792 13.7604 5.84375 13.8438C5.76042 13.9479 5.64583 14 5.5 14H0.5C0.354167 14 0.229167 13.9479 0.125 13.8438C0.0416667 13.7604 0 13.6458 0 13.5V12.5C0 12.3542 0.0416667 12.2396 0.125 12.1562C0.229167 12.0521 0.354167 12 0.5 12H1.5V2H0.5C0.354167 2 0.229167 1.95833 0.125 1.875C0.0416667 1.77083 0 1.64583 0 1.5V0.5C0 0.354167 0.0416667 0.239583 0.125 0.15625C0.229167 0.0520833 0.354167 0 0.5 0H5.5C5.64583 0 5.76042 0.0520833 5.84375 0.15625C5.94792 0.239583 6 0.354167 6 0.5V1.5C6 1.64583 5.94792 1.77083 5.84375 1.875C5.76042 1.95833 5.64583 2 5.5 2H4.5V6H10.5V2H9.5C9.35417 2 9.22917 1.95833 9.125 1.875C9.04167 1.77083 9 1.64583 9 1.5V0.5C9 0.354167 9.04167 0.239583 9.125 0.15625C9.22917 0.0520833 9.35417 0 9.5 0H14.5C14.6458 0 14.7604 0.0520833 14.8438 0.15625C14.9479 0.239583 15 0.354167 15 0.5V1.5C15 1.64583 14.9479 1.77083 14.8438 1.875C14.7604 1.95833 14.6458 2 14.5 2H13.5Z",fill:"#000"})),s.warning=(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M16 8C16 6.58065 15.6129 5.22581 14.9032 4C14.1935 2.77419 13.2258 1.80645 12 1.09677C10.7742 0.387097 9.41936 0 8 0C6.54839 0 5.22581 0.387097 4 1.09677C2.77419 1.80645 1.77419 2.77419 1.06452 4C0.354839 5.22581 0 6.58065 0 8C0 9.45161 0.354839 10.7742 1.06452 12C1.77419 13.2258 2.77419 14.2258 4 14.9355C5.22581 15.6452 6.54839 16 8 16C9.41936 16 10.7742 15.6452 12 14.9355C13.2258 14.2258 14.1935 13.2258 14.9032 12C15.6129 10.7742 16 9.45161 16 8ZM8 9.6129C8.3871 9.6129 8.74194 9.77419 9.03226 10.0645C9.32258 10.3548 9.48387 10.7097 9.48387 11.0968C9.48387 11.5161 9.32258 11.871 9.03226 12.1613C8.74194 12.4516 8.3871 12.5806 8 12.5806C7.58065 12.5806 7.22581 12.4516 6.93548 12.1613C6.64516 11.871 6.51613 11.5161 6.51613 11.0968C6.51613 10.7097 6.64516 10.3548 6.93548 10.0645C7.22581 9.77419 7.58065 9.6129 8 9.6129ZM6.58065 4.29032C6.58065 4.16129 6.6129 4.06452 6.67742 4C6.74194 3.93548 6.83871 3.87097 6.96774 3.87097H9.03226C9.12903 3.87097 9.22581 3.93548 9.29032 4C9.35484 4.06452 9.41936 4.16129 9.41936 4.29032L9.16129 8.67742C9.16129 8.77419 9.09677 8.87097 9.03226 8.93548C8.96774 9 8.87097 9.03226 8.77419 9.03226H7.22581C7.09677 9.03226 7 9 6.93548 8.93548C6.87097 8.87097 6.83871 8.77419 6.83871 8.67742L6.58065 4.29032Z",fill:"#F2994A"})),s.smile=(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.7097 10.9032C11.7957 10.8172 11.8387 10.7204 11.8387 10.6129C11.8387 10.4839 11.8065 10.3871 11.7419 10.3226C11.6774 10.2366 11.5914 10.172 11.4839 10.129C11.3978 10.0645 11.3011 10.043 11.1935 10.0645C11.086 10.086 10.9892 10.1505 10.9032 10.2581C10.1505 11.1613 9.1828 11.6129 8 11.6129C6.8172 11.6129 5.84946 11.1613 5.09677 10.2581C5.01075 10.1505 4.91398 10.086 4.80645 10.0645C4.69892 10.043 4.5914 10.0645 4.48387 10.129C4.39785 10.172 4.32258 10.2366 4.25806 10.3226C4.19355 10.3871 4.16129 10.4839 4.16129 10.6129C4.16129 10.7204 4.2043 10.8172 4.29032 10.9032C5.25806 12.0645 6.49462 12.6452 8 12.6452C9.50538 12.6452 10.7419 12.0645 11.7097 10.9032Z",fill:"#1EC185"})),s.neutral=(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM6.12903 5.74194C5.93548 5.52688 5.69892 5.41935 5.41935 5.41935C5.13978 5.41935 4.89247 5.52688 4.67742 5.74194C4.48387 5.93548 4.3871 6.17204 4.3871 6.45161C4.3871 6.73118 4.48387 6.97849 4.67742 7.19355C4.89247 7.3871 5.13978 7.48387 5.41935 7.48387C5.69892 7.48387 5.93548 7.3871 6.12903 7.19355C6.34409 6.97849 6.45161 6.73118 6.45161 6.45161C6.45161 6.17204 6.34409 5.93548 6.12903 5.74194ZM11.0968 11.6129C11.4409 11.6129 11.6129 11.4409 11.6129 11.0968C11.6129 10.7527 11.4409 10.5806 11.0968 10.5806H4.90323C4.55914 10.5806 4.3871 10.7527 4.3871 11.0968C4.3871 11.4409 4.55914 11.6129 4.90323 11.6129H11.0968ZM9.83871 7.19355C10.0538 7.3871 10.3011 7.48387 10.5806 7.48387C10.8602 7.48387 11.0968 7.3871 11.2903 7.19355C11.5054 6.97849 11.6129 6.73118 11.6129 6.45161C11.6129 6.17204 11.5054 5.93548 11.2903 5.74194C11.0968 5.52688 10.8602 5.41935 10.5806 5.41935C10.3011 5.41935 10.0538 5.52688 9.83871 5.74194C9.64516 5.93548 9.54839 6.17204 9.54839 6.45161C9.54839 6.73118 9.64516 6.97849 9.83871 7.19355Z",fill:"#626D83"})),s.negative=(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484ZM4.3871 7.48387C4.3871 7.76344 4.48387 8.01075 4.67742 8.22581C4.89247 8.41935 5.13978 8.51613 5.41935 8.51613C5.69892 8.51613 5.93548 8.41935 6.12903 8.22581C6.34409 8.01075 6.45161 7.76344 6.45161 7.48387C6.45161 7.44086 6.43011 7.35484 6.3871 7.22581C6.4086 7.22581 6.41935 7.22581 6.41935 7.22581C6.44086 7.22581 6.45161 7.22581 6.45161 7.22581C6.70968 7.22581 6.87097 7.10753 6.93548 6.87097C6.95699 6.78495 6.96774 6.70968 6.96774 6.64516C6.96774 6.58065 6.94624 6.52688 6.90323 6.48387C6.88172 6.41935 6.83871 6.36559 6.77419 6.32258C6.73118 6.27957 6.67742 6.24731 6.6129 6.22581L4.03226 5.45161C3.88172 5.4086 3.74194 5.41935 3.6129 5.48387C3.50538 5.54839 3.43011 5.64516 3.3871 5.77419C3.36559 5.86021 3.35484 5.93548 3.35484 6C3.37634 6.06452 3.39785 6.12903 3.41935 6.19355C3.44086 6.23656 3.47312 6.27957 3.51613 6.32258C3.58065 6.36559 3.65591 6.39785 3.74194 6.41935L4.70968 6.74194C4.49462 6.93548 4.3871 7.1828 4.3871 7.48387ZM9.80645 12.4516C9.93548 12.6237 10.0968 12.6882 10.2903 12.6452C10.4839 12.6021 10.6129 12.4946 10.6774 12.3226C10.7419 12.1505 10.7097 11.9785 10.5806 11.8065C9.91398 10.9892 9.05376 10.5806 8 10.5806C6.94624 10.5806 6.07527 10.9892 5.3871 11.8065C5.34409 11.871 5.31183 11.9462 5.29032 12.0323C5.26882 12.1183 5.26882 12.1935 5.29032 12.2581C5.31183 12.3226 5.34409 12.3871 5.3871 12.4516C5.43011 12.5161 5.48387 12.5699 5.54839 12.6129C5.6129 12.6344 5.67742 12.6559 5.74194 12.6774C5.82796 12.6774 5.90323 12.6667 5.96774 12.6452C6.05376 12.6021 6.12903 12.5376 6.19355 12.4516C6.64516 11.914 7.24731 11.6452 8 11.6452C8.75269 11.6452 9.35484 11.914 9.80645 12.4516ZM12.2903 6.41935C12.4194 6.37634 12.5161 6.30107 12.5806 6.19355C12.6452 6.06452 12.6559 5.92473 12.6129 5.77419C12.5914 5.68817 12.5484 5.6129 12.4839 5.54839C12.4194 5.48387 12.3441 5.45161 12.2581 5.45161C12.172 5.43011 12.086 5.43011 12 5.45161L9.41935 6.22581C9.26882 6.26882 9.16129 6.35484 9.09677 6.48387C9.03226 6.5914 9.02151 6.72043 9.06452 6.87097C9.12903 7.10753 9.29032 7.22581 9.54839 7.22581C9.56989 7.22581 9.5914 7.22581 9.6129 7.22581C9.56989 7.33333 9.54839 7.41935 9.54839 7.48387C9.54839 7.76344 9.64516 8.01075 9.83871 8.22581C10.0538 8.41935 10.3011 8.51613 10.5806 8.51613C10.8602 8.51613 11.0968 8.41935 11.2903 8.22581C11.5054 8.01075 11.6129 7.76344 11.6129 7.48387C11.6129 7.1828 11.5054 6.93548 11.2903 6.74194L12.2903 6.41935Z",fill:"#626D83"})),s.check=(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13.6452 2.35484C15.2151 3.90323 16 5.78495 16 8C16 10.2151 15.2151 12.1075 13.6452 13.6774C12.0968 15.2258 10.2151 16 8 16C5.78495 16 3.89247 15.2258 2.32258 13.6774C0.774194 12.1075 0 10.2151 0 8C0 5.78495 0.774194 3.90323 2.32258 2.35484C3.89247 0.784946 5.78495 0 8 0C10.2151 0 12.0968 0.784946 13.6452 2.35484ZM7.06452 12.2258L13 6.29032C13.2581 6.05376 13.2581 5.8172 13 5.58065L12.2903 4.83871C12.0323 4.60215 11.7849 4.60215 11.5484 4.83871L6.70968 9.67742L4.45161 7.41935C4.21505 7.1828 3.96774 7.1828 3.70968 7.41935L3 8.16129C2.74194 8.39785 2.74194 8.63441 3 8.87097L6.35484 12.2258C6.5914 12.4839 6.82796 12.4839 7.06452 12.2258Z",fill:"#1EC185"}));const r=s;function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:l}=Object,c=(h=Object.create(null),e=>{const t=o.call(e);return h[t]||(h[t]=t.slice(8,-1).toLowerCase())});var h;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),u=e=>t=>typeof t===e,{isArray:g}=Array,p=u("undefined"),f=d("ArrayBuffer"),m=u("string"),x=u("function"),b=u("number"),v=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==c(e))return!1;const t=l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},C=d("Date"),w=d("File"),S=d("Blob"),k=d("FileList"),E=d("URLSearchParams");function A(e,t,{allOwnKeys:i=!1}={}){if(null==e)return;let a,s;if("object"!=typeof e&&(e=[e]),g(e))for(a=0,s=e.length;a<s;a++)t.call(null,e[a],a,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),r=s.length;let n;for(a=0;a<r;a++)n=s[a],t.call(null,e[n],n,e)}}function P(e,t){t=t.toLowerCase();const i=Object.keys(e);let a,s=i.length;for(;s-- >0;)if(a=i[s],t===a.toLowerCase())return a;return null}const L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,M=e=>!p(e)&&e!==L,T=(_="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>_&&e instanceof _);var _;const F=d("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),H=d("RegExp"),O=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),a={};A(i,((i,s)=>{let r;!1!==(r=t(i,s,e))&&(a[s]=r||i)})),Object.defineProperties(e,a)},I="abcdefghijklmnopqrstuvwxyz",z="0123456789",N={DIGIT:z,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+z},R=d("AsyncFunction"),B={isArray:g,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=c(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:m,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:y,isUndefined:p,isDate:C,isFile:w,isBlob:S,isRegExp:H,isFunction:x,isStream:e=>v(e)&&x(e.pipe),isURLSearchParams:E,isTypedArray:T,isFileList:k,forEach:A,merge:function e(){const{caseless:t}=M(this)&&this||{},i={},a=(a,s)=>{const r=t&&P(i,s)||s;y(i[r])&&y(a)?i[r]=e(i[r],a):y(a)?i[r]=e({},a):g(a)?i[r]=a.slice():i[r]=a};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&A(arguments[e],a);return i},extend:(e,t,i,{allOwnKeys:a}={})=>(A(t,((t,a)=>{i&&x(t)?e[a]=n(t,i):e[a]=t}),{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,a)=>{let s,r,n;const o={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),r=s.length;r-- >0;)n=s[r],a&&!a(n,e,t)||o[n]||(t[n]=e[n],o[n]=!0);e=!1!==i&&l(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const a=e.indexOf(t,i);return-1!==a&&a===i},toArray:e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!b(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=i.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const a=[];for(;null!==(i=e.exec(t));)a.push(i);return a},isHTMLForm:F,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:O,freezeMethods:e=>{O(e,((t,i)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const a=e[i];x(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},toObjectSet:(e,t)=>{const i={},a=e=>{e.forEach((e=>{i[e]=!0}))};return g(e)?a(e):a(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:P,global:L,isContextDefined:M,ALPHABET:N,generateString:(e=16,t=N.ALPHA_DIGIT)=>{let i="";const{length:a}=t;for(;e--;)i+=t[Math.random()*a|0];return i},isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),i=(e,a)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const s=g(e)?[]:{};return A(e,((e,t)=>{const r=i(e,a+1);!p(r)&&(s[t]=r)})),t[a]=void 0,s}}return e};return i(e,0)},isAsyncFn:R,isThenable:e=>e&&(v(e)||x(e))&&x(e.then)&&x(e.catch)};function X(e,t,i,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),a&&(this.request=a),s&&(this.response=s)}B.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Y=X.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties(X,V),Object.defineProperty(Y,"isAxiosError",{value:!0}),X.from=(e,t,i,a,s,r)=>{const n=Object.create(Y);return B.toFlatObject(e,n,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),X.call(n,e.message,t,i,a,s),n.cause=e,n.name=e.name,r&&Object.assign(n,r),n};const W=X;function j(e){return B.isPlainObject(e)||B.isArray(e)}function G(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,i){return e?e.concat(t).map((function(e,t){return e=G(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}const U=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)})),q=function(e,t,i){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(i=B.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,s=i.visitor||c,r=i.dots,n=i.indexes,o=(i.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!o&&B.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,i,s){let o=e;if(e&&!s&&"object"==typeof e)if(B.endsWith(i,"{}"))i=a?i:i.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(j)}(e)||(B.isFileList(e)||B.endsWith(i,"[]"))&&(o=B.toArray(e)))return i=G(i),o.forEach((function(e,a){!B.isUndefined(e)&&null!==e&&t.append(!0===n?Z([i],a,r):null===n?i:i+"[]",l(e))})),!1;return!!j(e)||(t.append(Z(s,i,r),l(e)),!1)}const h=[],d=Object.assign(U,{defaultVisitor:c,convertValue:l,isVisitable:j});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(i,a){if(!B.isUndefined(i)){if(-1!==h.indexOf(i))throw Error("Circular reference detected in "+a.join("."));h.push(i),B.forEach(i,(function(i,r){!0===(!(B.isUndefined(i)||null===i)&&s.call(t,i,B.isString(r)?r.trim():r,a,d))&&e(i,a?a.concat(r):[r])})),h.pop()}}(e),t};function $(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function K(e,t){this._pairs=[],e&&q(e,this,t)}const J=K.prototype;J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,$)}:$;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Q=K;function ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function te(e,t,i){if(!t)return e;const a=i&&i.encode||ee,s=i&&i.serialize;let r;if(r=s?s(t,i):B.isURLSearchParams(t)?t.toString():new Q(t,i).toString(a),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}const ie=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},re="undefined"!=typeof window&&"undefined"!=typeof document,ne=(oe="undefined"!=typeof navigator&&navigator.product,re&&["ReactNative","NativeScript","NS"].indexOf(oe)<0);var oe;const le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ce={...e,...se},he=function(e){function t(e,i,a,s){let r=e[s++];if("__proto__"===r)return!0;const n=Number.isFinite(+r),o=s>=e.length;return r=!r&&B.isArray(a)?a.length:r,o?(B.hasOwnProp(a,r)?a[r]=[a[r],i]:a[r]=i,!n):(a[r]&&B.isObject(a[r])||(a[r]=[]),t(e,i,a[r],s)&&B.isArray(a[r])&&(a[r]=function(e){const t={},i=Object.keys(e);let a;const s=i.length;let r;for(a=0;a<s;a++)r=i[a],t[r]=e[r];return t}(a[r])),!n)}if(B.isFormData(e)&&B.isFunction(e.entries)){const i={};return B.forEachEntry(e,((e,a)=>{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,i,0)})),i}return null},de={transitional:ae,adapter:["xhr","http"],transformRequest:[function(e,t){const i=t.getContentType()||"",a=i.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return a?JSON.stringify(he(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return q(e,new ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,a){return ce.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=B.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return q(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||a?(t.setContentType("application/json",!1),function(e,t,i){if(B.isString(e))try{return(0,JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||de.transitional,i=t&&t.forcedJSONParsing,a="json"===this.responseType;if(e&&B.isString(e)&&(i&&!this.responseType||a)){const i=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{de.headers[e]={}}));const ue=de,ge=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pe=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:B.isArray(e)?e.map(me):String(e)}function xe(e,t,i,a,s){return B.isFunction(a)?a.call(this,t,i):(s&&(t=i),B.isString(t)?B.isString(a)?-1!==t.indexOf(a):B.isRegExp(a)?a.test(t):void 0:void 0)}class be{constructor(e){e&&this.set(e)}set(e,t,i){const a=this;function s(e,t,i){const s=fe(t);if(!s)throw new Error("header name must be a non-empty string");const r=B.findKey(a,s);(!r||void 0===a[r]||!0===i||void 0===i&&!1!==a[r])&&(a[r||t]=me(e))}const r=(e,t)=>B.forEach(e,((e,i)=>s(e,i,t)));return B.isPlainObject(e)||e instanceof this.constructor?r(e,t):B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?r((e=>{const t={};let i,a,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),i=e.substring(0,s).trim().toLowerCase(),a=e.substring(s+1).trim(),!i||t[i]&&ge[i]||("set-cookie"===i?t[i]?t[i].push(a):t[i]=[a]:t[i]=t[i]?t[i]+", "+a:a)})),t})(e),t):null!=e&&s(t,e,i),this}get(e,t){if(e=fe(e)){const i=B.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=i.exec(e);)t[a[1]]=a[2];return t}(e);if(B.isFunction(t))return t.call(this,e,i);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const i=B.findKey(this,e);return!(!i||void 0===this[i]||t&&!xe(0,this[i],i,t))}return!1}delete(e,t){const i=this;let a=!1;function s(e){if(e=fe(e)){const s=B.findKey(i,e);!s||t&&!xe(0,i[s],s,t)||(delete i[s],a=!0)}}return B.isArray(e)?e.forEach(s):s(e),a}clear(e){const t=Object.keys(this);let i=t.length,a=!1;for(;i--;){const s=t[i];e&&!xe(0,this[s],s,e,!0)||(delete this[s],a=!0)}return a}normalize(e){const t=this,i={};return B.forEach(this,((a,s)=>{const r=B.findKey(i,s);if(r)return t[r]=me(a),void delete t[s];const n=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,i)=>t.toUpperCase()+i))}(s):String(s).trim();n!==s&&delete t[s],t[n]=me(a),i[n]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return B.forEach(this,((i,a)=>{null!=i&&!1!==i&&(t[a]=e&&B.isArray(i)?i.join(", "):i)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach((e=>i.set(e))),i}static accessor(e){const t=(this[pe]=this[pe]={accessors:{}}).accessors,i=this.prototype;function a(e){const a=fe(e);t[a]||(function(e,t){const i=B.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+i,{value:function(e,i,s){return this[a].call(this,t,e,i,s)},configurable:!0})}))}(i,e),t[a]=!0)}return B.isArray(e)?e.forEach(a):a(e),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(be.prototype,(({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}})),B.freezeMethods(be);const ve=be;function ye(e,t){const i=this||ue,a=t||i,s=ve.from(a.headers);let r=a.data;return B.forEach(e,(function(e){r=e.call(i,r,s.normalize(),t?t.status:void 0)})),s.normalize(),r}function Ce(e){return!(!e||!e.__CANCEL__)}function we(e,t,i){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,i),this.name="CanceledError"}B.inherits(we,W,{__CANCEL__:!0});const Se=we,ke=ce.hasStandardBrowserEnv?{write(e,t,i,a,s,r){const n=[e+"="+encodeURIComponent(t)];B.isNumber(i)&&n.push("expires="+new Date(i).toGMTString()),B.isString(a)&&n.push("path="+a),B.isString(s)&&n.push("domain="+s),!0===r&&n.push("secure"),document.cookie=n.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ee(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ae=ce.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function a(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return i=a(window.location.href),function(e){const t=B.isString(e)?a(e):e;return t.protocol===i.protocol&&t.host===i.host}}():function(){return!0};function Pe(e,t){let i=0;const a=function(e,t){e=e||10;const i=new Array(e),a=new Array(e);let s,r=0,n=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=a[n];s||(s=l),i[r]=o,a[r]=l;let h=n,d=0;for(;h!==r;)d+=i[h++],h%=e;if(r=(r+1)%e,r===n&&(n=(n+1)%e),l-s<t)return;const u=c&&l-c;return u?Math.round(1e3*d/u):void 0}}(50,250);return s=>{const r=s.loaded,n=s.lengthComputable?s.total:void 0,o=r-i,l=a(o);i=r;const c={loaded:r,total:n,progress:n?r/n:void 0,bytes:o,rate:l||void 0,estimated:l&&n&&r<=n?(n-r)/l:void 0,event:s};c[t?"download":"upload"]=!0,e(c)}}const Le={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,i){let a=e.data;const s=ve.from(e.headers).normalize();let r,n,{responseType:o,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}if(B.isFormData(a))if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}let h=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(t+":"+i))}const d=Ee(e.baseURL,e.url);function u(){if(!h)return;const a=ve.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());!function(e,t,i){const a=i.config.validateStatus;i.status&&a&&!a(i.status)?t(new W("Request failed with status code "+i.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}((function(e){t(e),c()}),(function(e){i(e),c()}),{data:o&&"text"!==o&&"json"!==o?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}if(h.open(e.method.toUpperCase(),te(d,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=u:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(u)},h.onabort=function(){h&&(i(new W("Request aborted",W.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new W("Network Error",W.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||ae;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new W(t,a.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,h)),h=null},ce.hasStandardBrowserEnv&&(l&&B.isFunction(l)&&(l=l(e)),l||!1!==l&&Ae(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ke.read(e.xsrfCookieName);t&&s.set(e.xsrfHeaderName,t)}void 0===a&&s.setContentType(null),"setRequestHeader"in h&&B.forEach(s.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),B.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),o&&"json"!==o&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",Pe(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",Pe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=t=>{h&&(i(!t||t.type?new Se(null,e,h):t),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);g&&-1===ce.protocols.indexOf(g)?i(new W("Unsupported protocol "+g+":",W.ERR_BAD_REQUEST,e)):h.send(a||null)}))}};B.forEach(Le,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Me=e=>`- ${e}`,Te=e=>B.isFunction(e)||null===e||!1===e,_e=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let i,a;const s={};for(let r=0;r<t;r++){let t;if(i=e[r],a=i,!Te(i)&&(a=Le[(t=String(i)).toLowerCase()],void 0===a))throw new W(`Unknown adapter '${t}'`);if(a)break;s[t||"#"+r]=a}if(!a){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let i=t?e.length>1?"since :\n"+e.map(Me).join("\n"):" "+Me(e[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return a};function Fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function De(e){return Fe(e),e.headers=ve.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_e(e.adapter||ue.adapter)(e).then((function(t){return Fe(e),t.data=ye.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return Ce(t)||(Fe(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const He=e=>e instanceof ve?e.toJSON():e;function Oe(e,t){t=t||{};const i={};function a(e,t,i){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:i},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function s(e,t,i){return B.isUndefined(t)?B.isUndefined(e)?void 0:a(void 0,e,i):a(e,t,i)}function r(e,t){if(!B.isUndefined(t))return a(void 0,t)}function n(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function o(i,s,r){return r in t?a(i,s):r in e?a(void 0,i):void 0}const l={url:r,method:r,data:r,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:o,headers:(e,t)=>s(He(e),He(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(a){const r=l[a]||s,n=r(e[a],t[a],a);B.isUndefined(n)&&r!==o||(i[a]=n)})),i}const Ie={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ie[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));const ze={};Ie.transitional=function(e,t,i){function a(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,s,r)=>{if(!1===e)throw new W(a(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ze[s]&&(ze[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,s,r)}};const Ne={assertOptions:function(e,t,i){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const r=a[s],n=t[r];if(n){const t=e[r],i=void 0===t||n(t,r,e);if(!0!==i)throw new W("option "+r+" must be "+i,W.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new W("Unknown option "+r,W.ERR_BAD_OPTION)}},validators:Ie},Re=Ne.validators;class Be{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const i=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oe(this.defaults,t);const{transitional:i,paramsSerializer:a,headers:s}=t;void 0!==i&&Ne.assertOptions(i,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),null!=a&&(B.isFunction(a)?t.paramsSerializer={serialize:a}:Ne.assertOptions(a,{encode:Re.function,serialize:Re.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=s&&B.merge(s.common,s[t.method]);s&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=ve.concat(r,s);const n=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let h,d=0;if(!o){const e=[De.bind(this),void 0];for(e.unshift.apply(e,n),e.push.apply(e,l),h=e.length,c=Promise.resolve(t);d<h;)c=c.then(e[d++],e[d++]);return c}h=n.length;let u=t;for(d=0;d<h;){const e=n[d++],t=n[d++];try{u=e(u)}catch(e){t.call(this,e);break}}try{c=De.call(this,u)}catch(e){return Promise.reject(e)}for(d=0,h=l.length;d<h;)c=c.then(l[d++],l[d++]);return c}getUri(e){return te(Ee((e=Oe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(e){Be.prototype[e]=function(t,i){return this.request(Oe(i||{},{method:e,url:t,data:(i||{}).data}))}})),B.forEach(["post","put","patch"],(function(e){function t(t){return function(i,a,s){return this.request(Oe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Be.prototype[e]=t(),Be.prototype[e+"Form"]=t(!0)}));const Xe=Be;class Ye{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{i.subscribe(e),t=e})).then(e);return a.cancel=function(){i.unsubscribe(t)},a},e((function(e,a,s){i.reason||(i.reason=new Se(e,a,s),t(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ye((function(t){e=t})),cancel:e}}}const Ve=Ye,We={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(We).forEach((([e,t])=>{We[t]=e}));const je=We,Ge=function e(t){const i=new Xe(t),a=n(Xe.prototype.request,i);return B.extend(a,Xe.prototype,i,{allOwnKeys:!0}),B.extend(a,i,null,{allOwnKeys:!0}),a.create=function(i){return e(Oe(t,i))},a}(ue);Ge.Axios=Xe,Ge.CanceledError=Se,Ge.CancelToken=Ve,Ge.isCancel=Ce,Ge.VERSION="1.6.7",Ge.toFormData=q,Ge.AxiosError=W,Ge.Cancel=Ge.CanceledError,Ge.all=function(e){return Promise.all(e)},Ge.spread=function(e){return function(t){return e.apply(null,t)}},Ge.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},Ge.mergeConfig=Oe,Ge.AxiosHeaders=ve,Ge.formToJSON=e=>he(B.isHTMLForm(e)?new FormData(e):e),Ge.getAdapter=_e,Ge.HttpStatusCode=je,Ge.default=Ge;const Ze=Ge;var Ue=i(967),qe=i.n(Ue);const{Fragment:$e}=wp.element,Ke=e=>{const i=e.barScore,a=e.width?e.width+"px":"80px",s=i>50?0:180-3.6*i,r=e.barColor;return(0,t.createElement)($e,null,(0,t.createElement)("div",{className:"monsterinsights-donut-container",style:{flexDirection:"column"}},(0,t.createElement)("div",{className:"monsterinsights-donut",style:{width:a,paddingBottom:a,backgroundColor:"#f2f2f2"}},(0,t.createElement)("div",{className:"monsterinsights-donut-sections",style:{transform:"rotate(0deg)"}},(0,t.createElement)("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-right",style:{transform:"rotate(0deg)"}},(0,t.createElement)("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:r,transform:"rotate(-"+s+"deg)"}})),(()=>{if(i>50){const e=180+360*(i-50)/100;return(0,t.createElement)("div",{className:"monsterinsights-donut-section monsterinsights-donut-section-left",style:{transform:"rotate(0deg)"}},(0,t.createElement)("div",{className:"monsterinsights-donut-filler",style:{backgroundColor:r,transform:"rotate("+e+"deg)"}}))}})()),(0,t.createElement)("div",{className:"monsterinsights-donut-overlay",style:{height:"70%",width:"70%",top:"calc(15%)",left:"calc(15%)",backgroundColor:"rgb(255, 255, 255)"}}))))},{__}=wp.i18n,{Fragment:Je}=wp.element,{PanelBody:Qe,PanelRow:et}=wp.components,tt=e=>{const i=e.analyzer.currentHeadlineData.sentence,a=__("Score","ga-premium"),s=__("A good score is between 40 and 60. For best results, you should strive for 70 and above.","ga-premium"),r=e.analyzer.currentHeadlineData.score,n=r<40?"red":r<=60?"orange":"green",o="red"===n?"#EB5757":"orange"===n?"#F2994A":"#1EC185";return(0,t.createElement)(Je,null,(0,t.createElement)(Qe,{title:a},(0,t.createElement)(et,null,(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-current-score-tab"},(0,t.createElement)("h4",{className:"monsterinsights-headline-analyzer-current-title"},"“",i,"”"),(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-current-score",n)},r),(0,t.createElement)(Ke,{barScore:r,barColor:o})),(0,t.createElement)("p",null,s)))))},{__:it}=wp.i18n,{Fragment:at}=wp.element,{PanelBody:st,PanelRow:rt,TextControl:nt,Button:ot}=wp.components,lt=e=>{const i=it("Try New Headline","ga-premium"),a=it("Enter a different headline than your post title to see how it compares.","ga-premium"),s=it("Analyze","ga-premium"),r=void 0!==e.analyzer.newHeadline?e.analyzer.newHeadline:"",n=void 0!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],o=!r,l=t=>{const i=t.trim();if(!i)return;let a=new FormData;a.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),a.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),a.append("dataType","json"),a.append("q",i),Ze.post(monsterinsights_gutenberg_tool_vars.ajaxurl,a).then((t=>{e.setAnalyzer({newHeadlineData:t.data.data,headlineData:t.data.data,previousHeadlinesData:[e.analyzer.headlineData,...n],isNewData:!0})})).catch((t=>{e.setAnalyzer({isNewData:!1}),console.log(t)}))};return(0,t.createElement)(at,null,(0,t.createElement)(st,{title:i},(0,t.createElement)(rt,null,(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-new-tab"},(0,t.createElement)("form",{onSubmit:e=>{e.preventDefault(),l(r)}},(0,t.createElement)(nt,{label:a,value:r,onChange:t=>{" "!==t&&e.setAnalyzer({newHeadline:t})},className:"monsterinsights-headline-analyzer-input-field"}),(0,t.createElement)(ot,{className:"monsterinsights-headline-analyzer-button",isPrimary:!0,onClick:()=>{l(r)},disabled:o},s))))))},{__:ct}=wp.i18n,{Fragment:ht}=wp.element,{PanelBody:dt,PanelRow:ut}=wp.components,gt=e=>{const i=e.analyzer.currentHeadlineData.sentence,a=ct("New Score","ga-premium"),s=ct("A good score is between 40 and 60. For best results, you should strive for 70 and above.","ga-premium"),r=ct("Current Score","ga-premium"),n=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.sentence:"",o=void 0!==e.analyzer.newHeadlineData?e.analyzer.newHeadlineData.score:"",l=void 0!==e.analyzer.currentHeadlineData.score?e.analyzer.currentHeadlineData.score:"",c=o<40?"red":o<=60?"orange":"green",h="red"===c?"#EB5757":"orange"===c?"#F2994A":"#1EC185",d=l<40?"red-bg":l<=60?"orange-bg":"green-bg",u=Math.abs(o-l);return(0,t.createElement)(ht,null,(0,t.createElement)(dt,{title:a},(0,t.createElement)(ut,null,(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-new-score-panel"},(0,t.createElement)("p",null,s),(0,t.createElement)("h4",null,"“",n,"”"),(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-new-score",c)},o),(0,t.createElement)(Ke,{barScore:o,barColor:h})),(0,t.createElement)("div",{className:"current-score"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-score-difference",c)},o>l?"+ ":o===l?"":"- ",u),(0,t.createElement)("h5",null,r),(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-score",d)},l),(0,t.createElement)("p",null,"“",i,"”"))))))},{__:pt}=wp.i18n,{Fragment:ft,useState:mt,useEffect:xt}=wp.element,bt=e=>{const i=pt("Current Score","ga-premium"),a=pt("Try New Headline","ga-premium"),[s,r]=mt("current-score"),n=void 0!==e.analyzer.isNewData&&e.analyzer.isNewData;return xt((()=>{e.setAnalyzer({activeTab:s})}),[s]),(0,t.createElement)(ft,null,(0,t.createElement)("div",{className:"monsterinsights-inline-buttons"},(0,t.createElement)("button",{onClick:()=>r("current-score"),className:qe()("monsterinsights-switcher-button",{active:"current-score"===s})},i),(0,t.createElement)("button",{onClick:()=>r("new-headline"),className:qe()("monsterinsights-switcher-button",{active:"new-headline"===s})},a)),"new-headline"===s?(0,t.createElement)(lt,{analyzer:e.analyzer,setAnalyzer:e.setAnalyzer}):(0,t.createElement)(tt,{analyzer:e.analyzer}),n?(0,t.createElement)(gt,{analyzer:e.analyzer}):"")},{__:vt}=wp.i18n,{Fragment:yt}=wp.element,{PanelBody:Ct,PanelRow:wt}=wp.components,St=e=>{const i=vt("Previous Scores","ga-premium"),a="undefined"!==e.analyzer.previousHeadlinesData?e.analyzer.previousHeadlinesData:[],s=document.querySelector(".edit-post-sidebar"),r="current-score"===("undefined"!==e.analyzer.activeTab?e.analyzer.activeTab:"current-score")?390:300;return(0,t.createElement)(yt,null,(0,t.createElement)(Ct,{title:i},(0,t.createElement)(wt,null,(0,t.createElement)("ul",{className:"monsterinsights-headline-analyzer-previous-scores"},a.map(((i,n)=>{if(n<10&&(void 0!==i.sentence||void 0!==i.score)){let o=i.score<40?"red-bg":i.score<=60?"orange-bg":"green-bg";return(0,t.createElement)("li",{key:n,onClick:()=>(t=>{e.setAnalyzer({newHeadlineData:a[t],headlineData:a[t],newHeadline:a[t].sentence,isNewData:!0}),s&&(s.scrollTop=r)})(n)},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-score",o)},i.score),i.sentence)}}))))))},{__:kt}=wp.i18n,Et=e=>{const i=kt("Goal: ","ga-premium"),a={width:e.value+"%"};return(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-words-block"},(0,t.createElement)("h5",null,e.title),(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-words-block-data"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-words-block-percentage",e.classOnScore)},e.value,"%"),(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-words-block-goal"},(0,t.createElement)("strong",null,i),e.goalValue),(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-words-block-progressbar"},(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-progressbar-bg"}),(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-progressbar-part",e.classOnScoreBg),style:a}))),(0,t.createElement)("ul",{className:"monsterinsights-headline-analyzer-words-tag-list"},e.words.length>0?e.words.map(((e,i)=>(0,t.createElement)("li",{key:i},e))):""),(0,t.createElement)("p",{className:"monsterinsights-headline-analyzer-words-guideline"},e.guideLine))},{__:At}=wp.i18n,{Fragment:Pt}=wp.element,{PanelBody:Lt,PanelRow:Mt}=wp.components,Tt=e=>{const i=At("Word Balance","ga-premium"),a=At("Compare the percentages of your results to the goal for each category and adjust as necessary.","ga-premium"),s=e.data.score<40?"red":e.data.score<=60?"orange":"green",n=(e.data.score<40||e.data.score,0===e.data.result.common_words_per?"red":e.data.result.common_words_per<.2?"orange":"green"),o=0===e.data.result.common_words_per?"red-bg":e.data.result.common_words_per<.2?"orange-bg":"green-bg",l=At("Your headline would be more likely to get clicks if it had more uncommon words.","ga-premium"),c=e.data.result.common_words_per<.2?l:At("Headlines with 20-30% common words are more likely to get clicks.","ga-premium"),h=0===e.data.result.uncommon_words_per?"red":e.data.result.uncommon_words_per<.1?"orange":"green",d=0===e.data.result.uncommon_words_per?"red-bg":e.data.result.uncommon_words_per<.1?"orange-bg":"green-bg",u=e.data.result.uncommon_words_per<.1?l:At("Headlines with uncommon words are more likely to get clicks.","ga-premium"),g=0===e.data.result.emotion_words_per?"red":e.data.result.emotion_words_per<.1?"orange":"green",p=0===e.data.result.emotion_words_per?"red-bg":e.data.result.emotion_words_per<.1?"orange-bg":"green-bg",f=At("Emotionally triggered headlines are likely to drive more clicks.","ga-premium"),m=0===e.data.result.power_words.length?"orange":"green",x=0===e.data.result.power_words.length?"orange":"green-bg",b=At("Headlines with Power Words are more likely to get clicks.","ga-premium"),v=At("Common Words","ga-premium"),y=At("20-30%","ga-premium"),C=At("Uncommon Words","ga-premium"),w=At("10-20%","ga-premium"),S=At("Emotional Words","ga-premium"),k=At("10-15%","ga-premium"),E=At("Power Words","ga-premium"),A=At("At least one","ga-premium");return(0,t.createElement)(Pt,null,(0,t.createElement)(Lt,{title:i,className:qe()("monsterinsights-headline-analyzer-panel-word-balance","monsterinsights-headline-analyzer-panel-has-icon",s),icon:"green"===s?r.check:r.warning},(0,t.createElement)(Mt,null,(0,t.createElement)("h4",null,e.data.result.word_balance),(0,t.createElement)("p",null,a),(0,t.createElement)(Et,{title:v,value:Math.round(100*e.data.result.common_words_per),goalValue:y,words:e.data.result.common_words,guideLine:c,classOnScore:n,classOnScoreBg:o}),(0,t.createElement)(Et,{title:C,value:Math.round(100*e.data.result.uncommon_words_per),goalValue:w,words:e.data.result.uncommon_words,guideLine:u,classOnScore:h,classOnScoreBg:d}),(0,t.createElement)(Et,{title:S,value:Math.round(100*e.data.result.emotion_words_per),goalValue:k,words:e.data.result.emotion_words,guideLine:f,classOnScore:g,classOnScoreBg:p}),(0,t.createElement)(Et,{title:E,value:Math.round(100*e.data.result.power_words_per),goalValue:A,words:e.data.result.power_words,guideLine:b,classOnScore:m,classOnScoreBg:x}))))},{__:_t}=wp.i18n,{Fragment:Ft}=wp.element,{PanelBody:Dt,PanelRow:Ht}=wp.components,Ot=e=>{const i=_t("Your headline has a neutral sentiment.","ga-premium"),a=_t("Headlines that are strongly positive or negative tend to get more engagement then neutral ones.","ga-premium"),s=_t("Your headline has a positive sentiment.","ga-premium"),n=_t("Positive headlines tend to get better engagement than neutral or negative ones.","ga-premium"),o=_t("Your headline has a negative sentiment.","ga-premium"),l=_t("Negative headlines are attention-grabbing and tend to perform better than neutral ones.","ga-premium"),c=_t("Sentiment","ga-premium"),h="neu"===e.data.result.sentiment?_t("Neutral","ga-premium"):"pos"===e.data.result.sentiment?_t("Positive","ga-premium"):_t("Negative","ga-premium"),d="neu"===e.data.result.sentiment?r.neutral:"pos"===e.data.result.sentiment?r.smile:r.negative,u="neu"===e.data.result.sentiment?"orange":"pos"===e.data.result.sentiment?"green":"red";return(0,t.createElement)(Ft,null,(0,t.createElement)(Dt,{title:c,className:qe()("monsterinsights-headline-analyzer-panel-sentiment","monsterinsights-headline-analyzer-panel-has-icon",u),icon:d},(0,t.createElement)(Ht,null,(0,t.createElement)("h4",null,h),"neu"===e.data.result.sentiment?(0,t.createElement)("p",null,i," ",(0,t.createElement)("br",null),(0,t.createElement)("br",null)," ",a):"","pos"===e.data.result.sentiment?(0,t.createElement)("p",null,s," ",(0,t.createElement)("br",null),(0,t.createElement)("br",null)," ",n):"","neg"===e.data.result.sentiment?(0,t.createElement)("p",null,o," ",(0,t.createElement)("br",null),(0,t.createElement)("br",null)," ",l):"")))},{__:It,sprintf:zt}=wp.i18n,{Fragment:Nt}=wp.element,{PanelBody:Rt,PanelRow:Bt}=wp.components,Xt=e=>{const i=e.data.result.headline_types.join(", "),a=It("Headline Type","ga-premium"),s=(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-panel-types-title"},a,(0,t.createElement)("span",null,i)),r=zt(It("Headlines that are lists and how-to get more engagement on average than other types of headlines. %1sRead more about %2sdifferent types of headlines here.%3s","ga-premium"),"<br/><br/>",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" className="monsterinsights-headline-analyzer-link">',"</a>");return(0,t.createElement)(Nt,null,(0,t.createElement)(Rt,{title:s,className:"monsterinsights-headline-analyzer-panel-types"},(0,t.createElement)(Bt,null,(0,t.createElement)("h4",null,i),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:r}}))))},{__:Yt}=wp.i18n,{Fragment:Vt}=wp.element,{PanelBody:Wt,PanelRow:jt}=wp.components,Gt=e=>{const i=Yt("Character Count","ga-premium"),a=e.data.result.length,s=a>=66?100:Math.round(1.51*a);let n="",o="",l="#1EC185",c="";return a<=19?(n="red",l="#EB5757"):a>=20&&a<=34?(n="orange",l="#F2994A"):a>=35&&a<=66?(n="green",l="#1EC185"):a>=67&&a<=79?(n="orange",l="#F2994A"):a>=80&&(n="red",l="#EB5757"),a<=34?(o=Yt("Too Short","ga-premium"),c=Yt("You have space to add more keywords and power words to boost your rankings and click-through rate.","ga-premium")):a>=35&&a<=66?(o=Yt("Good","ga-premium"),c=Yt("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.","ga-premium")):a>=67&&(o=Yt("Too Long","ga-premium"),c=Yt("At this length, it will get cut off in search results. Try reducing it to about 55 characters.","ga-premium")),(0,t.createElement)(Vt,null,(0,t.createElement)(Wt,{title:i,className:qe()("monsterinsights-headline-analyzer-panel-character-count","monsterinsights-headline-analyzer-panel-has-icon",n),icon:"green"===n?r.check:r.warning},(0,t.createElement)(jt,null,(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-character-length",n)},a),(0,t.createElement)(Ke,{barScore:s,barColor:l}),(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-status-on-character-length"},o)),(0,t.createElement)("p",null,c))))},{__:Zt}=wp.i18n,{Fragment:Ut}=wp.element,{PanelBody:qt,PanelRow:$t}=wp.components,Kt=e=>{const i=Zt("Word Count","ga-premium"),a=e.data.result.word_count,s=a>=10?100:Math.round(10*a);let n="",o="",l="#1EC185",c="";return a<=4?(n="red",l="#EB5757",o=Zt("Not Enough Words","ga-premium"),c=Zt("Your headline doesn’t use enough words. You have more space to add keywords and power words to improve your SEO and get more engagement.","ga-premium")):a>=5&&a<=9?(n="green",l="#1EC185",o=Zt("Good","ga-premium"),c=Zt("Your headline has the right amount of words. Headlines are more likely to be clicked on in search results if they have about 6 words.","ga-premium")):a>=10&&a<=11?(n="orange",l="#F2994A",o=Zt("Reduce Word Count","ga-premium")):(n="red",l="#EB5757",o=Zt("Too Many Words","ga-premium"),c=Zt("Your headline has too many words. Long headlines will get cut off in search results and won’t get as many clicks.","ga-premium")),(0,t.createElement)(Ut,null,(0,t.createElement)(qt,{title:i,className:qe()("monsterinsights-headline-analyzer-panel-word-count","monsterinsights-headline-analyzer-panel-has-icon",n),icon:"green"===n?r.check:r.warning},(0,t.createElement)($t,null,(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-pie-chart-container"},(0,t.createElement)("span",{className:qe()("monsterinsights-headline-analyzer-word-length",n)},a),(0,t.createElement)(Ke,{barScore:s,barColor:l}),(0,t.createElement)("span",{className:"monsterinsights-headline-analyzer-status-on-word-length"},o)),(0,t.createElement)("p",null,c))))},{__:Jt}=wp.i18n,{Fragment:Qt}=wp.element,{PanelBody:ei,PanelRow:ti}=wp.components,ii=e=>{const i=Jt("Beginning & Ending Words","ga-premium"),a=e.data.result.input_array_orig,s=Jt("Most readers only look at the first and last 3 words of a headline before deciding whether to click.","ga-premium");let r="",n="";return a.length>=6?(r=a.slice(0,3).join(" "),n=a.slice(-3).join(" ")):a.length>3&&a.length<=5?(r=a.slice(0,3).join(" "),n=a.slice(3).join(" ")):r=a.slice(0,3).join(" "),(0,t.createElement)(Qt,null,(0,t.createElement)(ei,{title:i,className:"monsterinsights-headline-analyzer-panel-beginning-ending-words"},(0,t.createElement)(ti,null,r?(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-words beginning"},(0,t.createElement)("span",null,r)):"",n?(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-words ending"},(0,t.createElement)("span",null,n)):"",(0,t.createElement)("p",{className:"monsterinsights-headline-analyzer-words-guideline"},s))))},{__:ai}=wp.i18n,{Fragment:si}=wp.element,{PanelBody:ri,PanelRow:ni}=wp.components,{select:oi}=wp.data,li=e=>{const i=ai("Search Preview","ga-premium"),a=ai("Here is how your headline will look like in google search results page.","ga-premium"),s=oi("core/editor").getPermalink(),r={href:s};return(0,t.createElement)(si,null,(0,t.createElement)(ri,{title:i,className:"monsterinsights-headline-analyzer-panel-search-preview"},(0,t.createElement)(ni,null,(0,t.createElement)("h4",null,e.data.sentence),(0,t.createElement)("p",{className:"monsterinsights-headline-analyzer-post-url"},(0,t.createElement)("a",{...r,target:"_blank"},s)),(0,t.createElement)("p",null,a))))},{__:ci}=wp.i18n,{Fragment:hi,useState:di,useEffect:ui}=wp.element,{registerPlugin:gi}=wp.plugins,{PluginSidebar:pi,PluginSidebarMoreMenuItem:fi}=wp.editPost,{useSelect:mi}=wp.data;"undefined"!=typeof monsterinsights_gutenberg_tool_vars&&monsterinsights_gutenberg_tool_vars.allowed_post_types.includes(monsterinsights_gutenberg_tool_vars.current_post_type)&&monsterinsights_gutenberg_tool_vars.is_headline_analyzer_enabled&&gi("monsterinsights-headline-analyzer",{icon:r.headlineBlack,render:e=>{const i=mi((e=>e("core/editor").getEditedPostAttribute("title"))),a=ci("Headline Analyzer","ga-premium"),s=ci("Write your post title to see the analyzer data. This Headline Analyzer tool enables you to write irresistible SEO headlines that drive traffic, shares, and rank better in search results.","ga-premium"),[n,o]=di({}),l=document.querySelector(`.components-button[aria-label='${a}'] svg`),c=void 0!==n.previousHeadlinesData?n.previousHeadlinesData:[],h=sprintf(ci("This headline analyzer is part of MonsterInsights to help you increase your traffic. See your %1swebsite traffic reports%2s.","ga-premium"),`<a href="${monsterinsights_gutenberg_tool_vars.reports_url}" className="monsterinsights-headline-analyzer-link">`,"</a>"),d=document.querySelector(".monsterinsights-headline-analyzer-wrapper");if(l){let e=document.createElement("span");if(n.dataExist&&void 0!==n.currentHeadlineData.score){const t=n.currentHeadlineData.score,i=t<40?"red":t<=60?"orange":"green";l.parentNode.setAttribute("monsterinsights-button-color",i),l.nextElementSibling?l.nextElementSibling.innerHTML=`${t}/100`:(e.innerHTML=`${t}/100`,l.parentNode.insertBefore(e,l.nextSibling))}else l.parentNode.setAttribute("monsterinsights-button-color","red"),l.nextElementSibling?l.nextElementSibling.innerHTML="00/100":(e.innerHTML="00/100",l.parentNode.insertBefore(e,l.nextSibling))}if(d){const e=d.parentNode.querySelectorAll(".components-panel__header");e&&e.forEach((function(e){let t=e.querySelector('[aria-pressed="true"]');t&&null!==t&&null!==t.offsetParent&&(t.style.display="none")}))}const u=e=>{o({...n,...e})};return ui((()=>{clearTimeout(window.HaPostTitleTimer),window.HaPostTitleTimer=setTimeout((()=>{let e=new FormData;e.append("_ajax_nonce",monsterinsights_gutenberg_tool_vars.nonce),e.append("action","monsterinsights_gutenberg_headline_analyzer_get_results"),e.append("dataType","json"),e.append("q",i),Ze.post(monsterinsights_gutenberg_tool_vars.ajaxurl,e).then((e=>{let t={dataExist:!1};e.data.data.analysed&&(t.currentHeadlineData=e.data.data,t.headlineData=e.data.data,t.dataExist=!0,void 0!==n.headlineData&&(t.previousHeadlinesData=[n.headlineData,...c])),o({...n,...t})})).catch((e=>{o({...n,dataExist:!1}),console.log(e)}))}),1e3)}),[i]),(0,t.createElement)(hi,null,(0,t.createElement)(fi,{target:"monsterinsights-headline-analyzer"},a),(0,t.createElement)(pi,{name:"monsterinsights-headline-analyzer",title:a,className:"monsterinsights-headline-analyzer-wrapper",icon:r.headline},void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(bt,{analyzer:n,setAnalyzer:u}):(0,t.createElement)("p",{className:"monsterinsights-headline-analyzer-empty-title-warning"},s),void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed&&c.length>0?(0,t.createElement)(St,{analyzer:n,setAnalyzer:u}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(Tt,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(Ot,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(Xt,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(Gt,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(Kt,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(ii,{data:n.headlineData}):"",void 0!==n.headlineData&&n.dataExist&&n.headlineData.analysed?(0,t.createElement)(li,{data:n.headlineData}):"",(0,t.createElement)("div",{className:"monsterinsights-headline-analyzer-bottom-notice"},(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:h}}))))}});const{__:xi}=wp.i18n,{Fragment:bi}=wp.element,vi=e=>{if("lite"!==e.license)return(0,t.createElement)(bi,null);let i={description:xi("This is a PRO feature.","ga-premium"),upgrade:xi("Upgrade","ga-premium")};return(0,t.createElement)(bi,null,(0,t.createElement)("div",{className:"monsterinsights-metabox-pro-badge"},(0,t.createElement)("span",null,(0,t.createElement)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M6.57617 1.08203L4.92578 4.45898L1.19336 4.99219C0.533203 5.09375 0.279297 5.90625 0.761719 6.38867L3.42773 9.00391L2.79297 12.6855C2.69141 13.3457 3.40234 13.8535 3.98633 13.5488L7.3125 11.7969L10.6133 13.5488C11.1973 13.8535 11.9082 13.3457 11.8066 12.6855L11.1719 9.00391L13.8379 6.38867C14.3203 5.90625 14.0664 5.09375 13.4062 4.99219L9.69922 4.45898L8.02344 1.08203C7.74414 0.498047 6.88086 0.472656 6.57617 1.08203Z",fill:"#31862D"})),i.description),(0,t.createElement)("div",{className:"monsterinsights-metabox-pro-badge-upgrade"},(0,t.createElement)("a",{href:e.upgrade_url,target:"_blank",rel:"noopener"},i.upgrade))))},yi=window.wp.element,{__:Ci}=wp.i18n;class wi extends yi.Component{constructor(){super(),this.state={},this.btn_show_text=Ci("Show Page Insights","ga-premium")}render(){return(0,t.createElement)("a",{className:"button",href:"#",id:"monsterinsights_show_page_insights",onClick:this.props.onClick},this.btn_show_text)}}const Si=wi,{__:ki}=wp.i18n;class Ei extends yi.Component{constructor(){super(),this.state={},this.btn_text=ki("Hide Page Insights","ga-premium")}render(){return(0,t.createElement)("a",{className:"button",href:"#",id:"monsterinsights_hide_page_insights",onClick:this.props.onClick},this.btn_text)}}const Ai=Ei,{__:Pi}=wp.i18n;class Li extends yi.Component{constructor(e){super(e)}handleClick=()=>{this.props.onClick(this.props.interval)};render(){return(0,t.createElement)("a",{href:"#",className:"monsterinsights-page-insights__tabs-tab "+(this.props.active?"active":""),"data-tab":"this.props.tab",onClick:this.handleClick},this.props.text)}}const Mi=Li,{__:Ti}=wp.i18n;class _i extends yi.Component{constructor(e){super(e)}render(){return(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content__tab-item"},(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__result"},(0,t.createElement)("span",null,this.props.value)),(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content__tab-item__title"},this.props.label))}}const Fi=_i,{__:Di}=wp.i18n;class Hi extends yi.Component{constructor(e){super(e),this.texts={bouncerate:Di("Bounce Rate","ga-premium"),timeonpage:Di("Time On Page","ga-premium"),pageloadtime:Di("Load Time","ga-premium"),entrances:Di("Entrances","ga-premium"),pageviews:Di("Page Views","ga-premium"),exits:Di("Exits","ga-premium")}}render(){return(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content__tab "+(this.props.active?"active":"")},(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content__tab-items"},this.props.results&&(0,t.createElement)(Fi,{value:this.props.results.timeonpage.value,label:this.texts.timeonpage}),this.props.results&&(0,t.createElement)(Fi,{value:this.props.results.entrances.value,label:this.texts.entrances}),this.props.results&&(0,t.createElement)(Fi,{value:this.props.results.pageviews.value,label:this.texts.pageviews}),this.props.results&&(0,t.createElement)(Fi,{value:this.props.results.exits.value,label:this.texts.exits})))}}const Oi=Hi,{__:Ii}=wp.i18n;class zi extends yi.Component{constructor(e){super(e),this.message=Ii("There are no Page Insights available because your page is not published or has been published for less than 24 hours.","ga-premium")}render(){return(0,t.createElement)("div",{className:"monsterinsights-insights-draft"},this.message)}}const Ni=zi,{__:Ri}=wp.i18n,{Fragment:Bi}=wp.element,{getCurrentPostId:Xi,getEditedPostAttribute:Yi,isSavingPost:Vi,isAutosavingPost:Wi}=wp.data.select("core/editor"),{subscribe:ji}=wp.data;class Gi extends yi.Component{constructor(){super(),this.state={showBtnClicked:!1,tabs:{last30days:{active:!0,loaded:!1,interval:"30days",results:null},yesterday:{active:!1,loaded:!1,interval:"yesterday",results:null}},showDraftMessage:!1},this.texts={last30days:Ri("Last 30 days","ga-premium"),yesterday:Ri("Yesterday","ga-premium")}}componentDidMount(){this.showDraftMessage(),ji((()=>{Wi()&&!Vi()||this.showDraftMessage()}))}showPageInsightsClick=()=>{this.setState({showBtnClicked:!0}),this.tabclick("last30days")};hidePageInsightsClick=()=>{this.setState({showBtnClicked:!1})};tabclick=e=>{let t=this.state.tabs;for(const[i,a]of Object.entries(t))t[i].active=i===e;this.setState({tabs:t}),this.getPageInsightsdata(e)};getPageInsightsdata=e=>{let t="yesterday"===e?"yesterday":"last30days";if(this.state.tabs[t].loaded)return;let i=Xi();if(!i)return;let a=new FormData;a.append("security",monsterinsights_gutenberg_tool_vars.page_insights_nonce),a.append("action","monsterinsights_pageinsights_meta_report"),a.append("dataType","json"),a.append("isnetwork",monsterinsights_gutenberg_tool_vars.isnetwork),a.append("report","pageinsights"),a.append("interval","yesterday"===e?"yesterday":"30days"),a.append("post_id",i);let s={...this.state.tabs};s[t].results={bouncerate:{value:"---"},timeonpage:{value:"---"},pageloadtime:{value:"---"},entrances:{value:"---"},pageviews:{value:"---"},exits:{value:"---"}},this.setState({tabs:s}),this.state.showDraftMessage||Ze.post(monsterinsights_gutenberg_tool_vars.ajaxurl,a).then((t=>{if(!t.data.success)return;let i=this.state.tabs,a="yesterday"===e?"yesterday":"last30days";i[a].loaded=!0,i[a].results=t.data.data,this.setState({tabs:i})})).catch((e=>{console.log(e)}))};showDraftMessage=()=>(this.setState({showDraftMessage:this.check_published_from()||this.check_draft_status()}),this.state.showDraftMessage);check_draft_status=()=>"draft"===Yi("status");check_published_from=()=>(new Date-new Date(Yi("date")))/36e5<24;render(){return!this.props.addonInstalled||this.props.hidden?(0,t.createElement)(Bi,null):(0,t.createElement)("div",{className:"monsterinsights-metabox pro",id:"monsterinsights-metabox-page-insights"},!this.state.showBtnClicked&&(0,t.createElement)(Si,{onClick:this.showPageInsightsClick}),(0,t.createElement)("div",{id:"monsterinsights-page-insights-content",className:this.state.showBtnClicked?"active":""},(0,t.createElement)("div",{className:"monsterinsights-page-insights__tabs"},(0,t.createElement)(Mi,{text:this.texts.last30days,active:this.state.tabs.last30days.active,onClick:this.tabclick,interval:"last30days"}),(0,t.createElement)(Mi,{text:this.texts.yesterday,active:this.state.tabs.yesterday.active,onClick:this.tabclick,interval:"yesterday"})),(0,t.createElement)("div",{className:"monsterinsights-page-insights-tabs-content"},this.state.tabs.last30days.results&&(0,t.createElement)(Oi,{active:this.state.tabs.last30days.active,results:this.state.tabs.last30days.results}),this.state.tabs.yesterday.results&&(0,t.createElement)(Oi,{active:this.state.tabs.yesterday.active,results:this.state.tabs.yesterday.results})),this.state.showDraftMessage&&(0,t.createElement)(Ni,null)),this.state.showBtnClicked&&(0,t.createElement)(Ai,{onClick:this.hidePageInsightsClick}))}}const Zi=Gi,Ui=window.wp.i18n,{__:qi}=wp.i18n,{ToggleControl:$i,TextareaControl:Ki,SelectControl:Ji}=wp.components,{dispatch:Qi,select:ea,subscribe:ta}=wp.data,{isSavingPost:ia}=ea("core/editor");var aa=!0;class sa extends yi.Component{constructor(){super();const e=ea("core/editor").getEditedPostAttribute("meta");this.state={addSiteNote:!!e._monsterinsights_sitenote_active,siteNoteText:e._monsterinsights_sitenote_note?e._monsterinsights_sitenote_note:"",customSiteNote:!1,category:e._monsterinsights_sitenote_category?e._monsterinsights_sitenote_category:0},this.texts={checkbox:{help:qi("Add a Site Note when publishing this post","ga-premium"),label:qi("Add a Site Note","ga-premium")},category:{label:qi("Category","ga-premium")},published_template:qi("Published: %s","ga-premium")}}componentDidMount(){this.categories=window.monsterinsights_gutenberg_tool_vars?window.monsterinsights_gutenberg_tool_vars.site_notes_categories:[],this.categories.length>0&&0===this.state.category&&this.setState({category:this.categories[0].value},this.saveCategoryField),ta((()=>{ia()?aa=!1:aa||(aa=!0,this.setState({addSiteNote:!1,siteNoteText:"",customSiteNote:!1,_monsterinsights_sitenote_note:"",_monsterinsights_sitenote_category:0}),Qi("core/editor").editPost({meta:{_monsterinsights_sitenote_active:!1,_monsterinsights_sitenote_note:null,_monsterinsights_sitenote_id:null,_monsterinsights_sitenote_category:null}}))}))}refreshNoteText(e=""){e||(e=ea("core/editor").getEditedPostAttribute("title")),this.setState({siteNoteText:(0,Ui.sprintf)(this.texts.published_template,e)},this.saveNoteField)}saveActiveField(e=null){null===e&&(e=this.state.addSiteNote),Qi("core/editor").editPost({meta:{_monsterinsights_sitenote_active:!!e}})}saveNoteField(e=null){null===e&&(e=this.state.siteNoteText),Qi("core/editor").editPost({meta:{_monsterinsights_sitenote_note:e}})}saveCategoryField(e=null){null===e&&(e=this.state.category),Qi("core/editor").editPost({meta:{_monsterinsights_sitenote_category:e}})}render(){return(0,t.createElement)("div",null,(0,t.createElement)($i,{checked:this.state.addSiteNote,help:this.texts.checkbox.help,label:this.texts.checkbox.label,onChange:e=>{this.setState({addSiteNote:!!e},this.saveActiveField),this.refreshNoteText()}}),this.state.addSiteNote&&(0,t.createElement)(Ki,{help:"",label:"",value:this.state.siteNoteText,onChange:e=>{let t=new RegExp("^"+this.texts.published_template.replace("%s",".*").replaceAll('"','\\"')+"$","g").test(e);this.setState({siteNoteText:e,customSiteNote:!t},this.saveNoteField)}}),this.state.addSiteNote&&(0,t.createElement)(Ji,{label:this.texts.category.label,options:this.categories,value:this.state.category,className:"site-notes-select",onChange:e=>{this.setState({category:e},this.saveCategoryField)},__nextHasNoMarginBottom:!0}))}}const ra=sa,{ToggleControl:na}=wp.components,{registerPlugin:oa}=wp.plugins,{dispatch:la,select:ca}=wp.data,{__:ha}=wp.i18n,{PluginDocumentSettingPanel:da}=wp.editPost,{useState:ua,Fragment:ga}=wp.element;oa("monsterinsights-metabox",{render:()=>{const e=window.monsterinsights_gutenberg_tool_vars;if(!e||"1"!==e.supports_custom_fields)return(0,t.createElement)(ga,null);if("1"!==e.public_post_type)return(0,t.createElement)(da,{name:"monsterinsights-metabox",title:"MonsterInsights",className:"monsterinsights-metabox-wrapper",icon:"mi"},(0,t.createElement)(ra,null));const i=ca("core/editor").getEditedPostAttribute("meta")||[];i._monsterinsights_skip_tracking||(i._monsterinsights_skip_tracking=!1);const[a,s]=ua(!!i._monsterinsights_skip_tracking);return(0,t.createElement)(da,{name:"monsterinsights-metabox",title:"MonsterInsights",className:"monsterinsights-metabox-wrapper",icon:"mi"},(0,t.createElement)(na,{checked:a,help:ha("Toggle to prevent Google Analytics from tracking this page.","ga-premium"),label:ha("Exclude page from Google Analytics Tracking","ga-premium"),disabled:"lite"===e.license_type,onChange:e=>{s(!!e),la("core/editor").editPost({meta:{_monsterinsights_skip_tracking:e}})}}),(0,t.createElement)(Zi,{addonInstalled:e.page_insights_addon_active,hidden:a}),(0,t.createElement)(vi,{license:e.license_type,upgrade_url:e.upgrade_url}),(0,t.createElement)(ra,null))}});let pa={};pa.inlinepop=(0,t.createElement)("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0H20V2H0V0ZM20 14V16H0V14H20ZM2 4C0.895431 4 0 4.89543 0 6V10C0 11.1046 0.895431 12 2 12H6C7.10457 12 8 11.1046 8 10V6C8 4.89543 7.10457 4 6 4H2ZM10 5H20V7H10V5ZM18 9H10V11H18V9Z",fill:"#555D66"})),pa.alpha=(0,t.createElement)("svg",{width:"70",height:"38",viewBox:"0 0 70 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"37.8947",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"5.72729",y:"19.8947",width:"58.5455",height:"8.52632",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"5.72729",y:"7.57892",width:"17.1818",height:"8.52632",rx:"3",fill:"#338EEF"})),pa.beta=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"31",y:"21",width:"32",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"31",y:"10",width:"18",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"7",y:"10",width:"20",height:"20",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),pa.charlie=(0,t.createElement)("svg",{width:"70",height:"28",viewBox:"0 0 70 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"16",y:"19",width:"54",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{y:"11",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),(0,t.createElement)("rect",{width:"26",height:"7",rx:"3",fill:"#338EEF"}),(0,t.createElement)("circle",{cx:"4.5",cy:"23.5",r:"4.5",fill:"#1170D5"})),pa.delta=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"8",y:"21",width:"54",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"22",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("path",{d:"M12.0303 9.5625C12.4613 8.8125 13.5387 8.8125 13.9697 9.5625L17.8483 16.3125C18.2793 17.0625 17.7406 18 16.8787 18H9.12134C8.25942 18 7.72072 17.0625 8.15168 16.3125L12.0303 9.5625Z",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),pa.echo=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"24.8182",y:"16",width:"39.4545",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"5.72729",y:"16",width:"15.2727",height:"9",rx:"3",fill:"#338EEF"})),pa.foxtrot=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"26",y:"22",width:"44",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"26",y:"9",width:"28",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),pa.golf=(0,t.createElement)("svg",{width:"70",height:"29",viewBox:"0 0 70 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{y:"11",width:"70",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{y:"26",width:"70",height:"3",rx:"1.5",fill:"#B8D8F9"}),(0,t.createElement)("rect",{width:"21",height:"7",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"25",y:"1",width:"45",height:"3",rx:"1.5",fill:"#B8D8F9"})),pa.hotel=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"22",y:"16",width:"40",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("path",{d:"M12.0303 16.5625C12.4613 15.8125 13.5387 15.8125 13.9697 16.5625L17.8483 23.3125C18.2793 24.0625 17.7406 25 16.8787 25H9.12134C8.25942 25 7.72072 24.0625 8.15168 23.3125L12.0303 16.5625Z",fill:"#338EEF"})),pa.india=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0)"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"26",y:"16",width:"36",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"8",y:"16",width:"14",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{y:"41",width:"41",height:"4",transform:"rotate(-90 0 41)",fill:"#338EEF"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"white"})))),pa.juliett=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"30",y:"20",width:"32",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("path",{d:"M50 14C50 12.3431 51.3431 11 53 11H60C61.1046 11 62 11.8954 62 13V15C62 16.6569 60.6569 18 59 18H53C51.3431 18 50 16.6569 50 15V14Z",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"30",y:"11",width:"32",height:"4",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"11",width:"18",height:"18",rx:"3",fill:"#338EEF"})),pa.kilo=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{y:"22",width:"70",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{y:"9",width:"26",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"12.7273",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"25.4545",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"38.1818",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"50.9091",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"63.6364",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"12.7273",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"25.4545",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"38.1818",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"50.9091",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"}),(0,t.createElement)("rect",{x:"63.6364",y:"37",width:"6.36364",height:"3",rx:"1",fill:"#B8D8F9"})),pa.lima=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"6",y:"22",width:"32",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"6",y:"8",width:"20",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"42",y:"9",width:"22",height:"22",rx:"3",fill:"#338EEF"})),pa.mike=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"70",height:"40",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"35",y:"15",width:"27",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.8438 28H10.1562C9.55729 28 9.04818 27.7934 8.62891 27.3802C8.20964 26.967 8 26.4653 8 25.875V22.3C8 21.0297 9.02974 20 10.3 20H21.7C22.9703 20 24 18.9703 24 17.7V13.3C24 12.0297 25.0297 11 26.3 11H28.8438C29.4427 11 29.9518 11.2066 30.3711 11.6198C30.7904 12.033 31 12.5347 31 13.125V25.875C31 26.4653 30.7904 26.967 30.3711 27.3802C29.9518 27.7934 29.4427 28 28.8438 28ZM10.3 11C9.02974 11 8 12.0297 8 13.3V15.7C8 16.9703 9.02974 18 10.3 18H19.7C20.9703 18 22 16.9703 22 15.7V13.3C22 12.0297 20.9703 11 19.7 11H10.3Z",fill:"#338EEF"})),pa.november=(0,t.createElement)("svg",{width:"70",height:"40",viewBox:"0 0 70 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"29",y:"22",width:"33",height:"9",rx:"3",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"29",y:"9",width:"18",height:"9",rx:"3",fill:"#338EEF"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 28C21.4183 28 25 24.4183 25 20C25 15.5817 21.4183 12 17 12C12.5817 12 9 15.5817 9 20C9 24.4183 12.5817 28 17 28ZM20.544 21.8756L17.5907 16.7081C17.3281 16.2488 16.6719 16.2488 16.4093 16.7081L13.456 21.8756C13.1935 22.3349 13.5217 22.9091 14.0467 22.9091H19.9533C20.4783 22.9091 20.8065 22.3349 20.544 21.8756Z",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"1.5",y:"1.5",width:"67",height:"37",rx:"1.5",stroke:"#E7F2FD",strokeWidth:"3"})),pa.themeIcon=(e="#EB5757")=>(0,t.createElement)("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M7.875 0.899463C7.875 1.59183 8.0816 2.24711 8.49479 2.8653C8.93229 3.48349 9.44271 4.06458 10.026 4.60859C10.6337 5.15259 11.2292 5.73369 11.8125 6.35188C12.4201 6.97007 12.9306 7.76135 13.3438 8.72572C13.7812 9.66537 14 10.7163 14 11.8785C14 13.832 13.3073 15.5011 11.9219 16.8858C10.5608 18.2953 8.92014 19 7 19C5.07986 19 3.42708 18.2953 2.04167 16.8858C0.680556 15.5011 0 13.832 0 11.8785C0 9.94973 0.668403 8.28062 2.00521 6.87116C2.27257 6.57443 2.58854 6.50024 2.95312 6.64861C3.31771 6.79697 3.5 7.08134 3.5 7.50171V10.6545C3.5 11.3221 3.71875 11.8908 4.15625 12.3607C4.61806 12.8305 5.16493 13.0654 5.79688 13.0654C6.45312 13.0654 7.01215 12.8428 7.47396 12.3978C7.93576 11.9279 8.16667 11.3592 8.16667 10.6916C8.16667 10.2712 8.04514 9.86318 7.80208 9.46754C7.58333 9.0719 7.31597 8.71336 7 8.3919C6.68403 8.07044 6.34375 7.73662 5.97917 7.39043C5.63889 7.04425 5.34722 6.66097 5.10417 6.2406C4.88542 5.82024 4.73958 5.35041 4.66667 4.83114C4.59375 4.31186 4.67882 3.68131 4.92188 2.93948C5.18924 2.17293 5.63889 1.33219 6.27083 0.417277C6.51389 0.0463641 6.84201 -0.0772735 7.25521 0.0463641C7.6684 0.170002 7.875 0.454368 7.875 0.899463Z",fill:e}));const fa=pa,ma=window.lodash,xa={canaccess:()=>!0};let ba={};ba.checkmark=(0,t.createElement)("svg",{width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M21.0565 2.94355C23.0188 4.87903 24 7.23118 24 10C24 12.7688 23.0188 15.1344 21.0565 17.0968C19.121 19.0323 16.7688 20 14 20C11.2312 20 8.86559 19.0323 6.90323 17.0968C4.96774 15.1344 4 12.7688 4 10C4 7.23118 4.96774 4.87903 6.90323 2.94355C8.86559 0.981183 11.2312 0 14 0C16.7688 0 19.121 0.981183 21.0565 2.94355ZM12.8306 15.2823L20.25 7.8629C20.5726 7.5672 20.5726 7.27151 20.25 6.97581L19.3629 6.04839C19.0403 5.75269 18.7312 5.75269 18.4355 6.04839L12.3871 12.0968L9.56452 9.27419C9.26882 8.97849 8.95968 8.97849 8.6371 9.27419L7.75 10.2016C7.42742 10.4973 7.42742 10.793 7.75 11.0887L11.9435 15.2823C12.2392 15.6048 12.5349 15.6048 12.8306 15.2823Z",fill:"#338EEF"})),ba.chevronright=(0,t.createElement)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M7.77369 5.53211L2.28571 0.19266C2.1537 0.0642201 1.9934 -6.52786e-08 1.80481 -5.7035e-08C1.61622 -4.87915e-08 1.45592 0.0642201 1.3239 0.192661L0.701556 0.798165C0.569543 0.926605 0.503536 1.08257 0.503536 1.26605C0.484677 1.44954 0.541254 1.6055 0.673267 1.73394L5.05799 6L0.673268 10.2661C0.541255 10.3945 0.484678 10.5505 0.503537 10.7339C0.503537 10.9174 0.569543 11.0734 0.701556 11.2018L1.3239 11.8073C1.45592 11.9358 1.61622 12 1.80481 12C1.9934 12 2.1537 11.9358 2.28571 11.8073L7.77369 6.46789C7.92456 6.33945 8 6.18349 8 6C8 5.81651 7.92456 5.66055 7.77369 5.53211Z",fill:"#C4C4C4"})),ba.chevronleft=(0,t.createElement)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M0.226309 5.53211L5.71429 0.19266C5.8463 0.0642201 6.0066 -6.52786e-08 6.19519 -5.7035e-08C6.38378 -4.87915e-08 6.54408 0.0642201 6.6761 0.192661L7.29844 0.798165C7.43046 0.926605 7.49646 1.08257 7.49646 1.26605C7.51532 1.44954 7.45875 1.6055 7.32673 1.73394L2.94201 6L7.32673 10.2661C7.45875 10.3945 7.51532 10.5505 7.49646 10.7339C7.49646 10.9174 7.43046 11.0734 7.29844 11.2018L6.6761 11.8073C6.54408 11.9358 6.38378 12 6.19519 12C6.0066 12 5.8463 11.9358 5.71429 11.8073L0.226309 6.46789C0.0754363 6.33945 6.83386e-07 6.18349 6.91406e-07 6C6.99426e-07 5.81651 0.0754363 5.66055 0.226309 5.53211Z",fill:"#C4C4C4"}));const va=ba;function ya(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function Ca(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(i),!0).forEach((function(t){Ea(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ya(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sa(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ka(e,t,i){return t&&Sa(e.prototype,t),i&&Sa(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ea(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Aa(){return(Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}function Pa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ma(e,t)}function La(e){return(La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ma(e,t){return(Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ta(e,t){if(null==e)return{};var i,a,s=function(e,t){if(null==e)return{};var i,a,s={},r=Object.keys(e);for(a=0;a<r.length;a++)i=r[a],t.indexOf(i)>=0||(s[i]=e[i]);return s}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function _a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,a=La(e);if(t){var s=La(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _a(e)}(this,i)}}function Da(e){return function(e){if(Array.isArray(e))return Ha(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ha(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ha(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function Oa(e,t){return e(t={exports:{}},t.exports),t.exports}function Ia(){}function za(){}function Na(e){return e.map((function(e){return!1===e?null:e})).join(" ").replace(/\s+/g," ").trim()}function Ra(e,t){return 100/e*t/t}function Ba(e,t){return 100*e/t}function Xa(e){return"".concat(e,"%")}function Ya(e,t,i){if(e===t)return!0;var a=ss[as(e)],s=ss[as(t)];return!(!a||a!==s)&&a(e,t,i)}function Va(e){return function(t,i,a){if(!a)return e(t,i,[]);for(var s,r=a.length;s=a[--r];)if(s[0]===t&&s[1]===i)return!0;return e(t,i,a)}}function Wa(e){var t=[];for(var i in e)"constructor"!==i&&t.push(i);return t}function ja(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Za(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function Ga(e,t,i){return e.concat(t).map((function(e){return ja(e,i)}))}function Za(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Ga,i.isMergeableObject=i.isMergeableObject||ns;var a=Array.isArray(t);return a===Array.isArray(e)?a?i.arrayMerge(e,t,i):function(e,t,i){var a={};return i.isMergeableObject(e)&&Object.keys(e).forEach((function(t){a[t]=ja(e[t],i)})),Object.keys(t).forEach((function(s){i.isMergeableObject(t[s])&&e[s]?a[s]=Za(e[s],t[s],i):a[s]=ja(t[s],i)})),a}(e,t,i):ja(t,i)}function Ua(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},i=function(i){function s(e,i){var a;return wa(this,s),(a=r.call(this,e,i)).state=t(Ca({},i.state)),a.updateStateProps=a.updateStateProps.bind(_a(a)),a}Pa(s,i);var r=Fa(s);return ka(s,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!rs(t,this.state)||!rs(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(Ca({},this.context.state)))}},{key:"render",value:function(){var t=this,i=cs(this.state,this.props);return a().createElement(e,Aa({ref:function(e){t.instance=e}},i,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),s}(a().Component);return Ea(i,"contextType",hs),Ea(i,"propTypes",{children:Qa.children}),Ea(i,"defaultProps",{children:null}),i}za.resetWarningCache=Ia;var qa=Oa((function(e){e.exports=function(){function e(e,t,i,a,s,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:za,resetWarningCache:Ia};return i.PropTypes=i,i}()})),$a="loading",Ka="success",Ja="error",Qa={children:qa.oneOfType([qa.arrayOf(qa.node),qa.node]),direction:qa.oneOf(["forward","backward"]),height:function(e,t){var i=e[t];return"vertical"!==e.orientation||null!==i&&"number"==typeof i?null:new Error("Missing required property '".concat(t,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:qa.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?new Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},es=function(e){var t=e.min,i=e.max,a=e.x;return Math.min(i,Math.max(t,a))},ts=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],is=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).handleOnClick=a.handleOnClick.bind(_a(a)),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,a=t.currentSlide,s=t.onClick,r=t.step,n=t.infinite,o=t.visibleSlides,l=t.totalSlides-o,c=Math.max(a-r,0);n&&(c=0===a?l:c),i.setStoreState({currentSlide:c,isPlaying:!1},null!==s&&s.call(this,e))}},{key:"render",value:function(){var e=this.props,i=(e.carouselStore,e.className),s=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),r=Ta(e,ts),n=Na(["buttonBack___1mlaL","carousel__back-button",i]),o=t.setDisabled(this.props.disabled,this.props.currentSlide,s);return a().createElement("button",Aa({type:"button","aria-label":"previous",className:n,onClick:this.handleOnClick,disabled:o},r),this.props.children)}}],[{key:"setDisabled",value:function(e,t,i){return null!==e?e:0===t&&!i}}]),t}(a().Component);Ea(is,"propTypes",{carouselStore:qa.object.isRequired,children:Qa.children.isRequired,className:qa.string,currentSlide:qa.number.isRequired,disabled:qa.bool,onClick:qa.func,step:qa.number.isRequired,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired,infinite:qa.bool}),Ea(is,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var as=Oa((function(e,t){var i={}.toString,a="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=s[i.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof a)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var s=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}})),ss=(as.types,{number:function(e,t){return e!=e&&t!=t},function:function(e,t,i){return e.toString()===t.toString()&&ss.object(e,t,i)&&Ya(e.prototype,t.prototype)},date:function(e,t){return+e==+t},regexp:function(e,t){return e.toString()===t.toString()},element:function(e,t){return e.outerHTML===t.outerHTML},textnode:function(e,t){return e.textContent===t.textContent}});ss.arguments=ss["bit-array"]=ss.array=Va((function(e,t,i){var a=e.length;if(a!==t.length)return!1;for(i.push([e,t]);a--;)if(!Ya(e[a],t[a],i))return!1;return!0})),ss.object=Va((function(e,t,i){if("function"==typeof e.equal)return i.push([e,t]),e.equal(t,i);var a=Wa(e),s=Wa(t),r=a.length;if(r!==s.length)return!1;for(a.sort(),s.sort();r--;)if(a[r]!==s[r])return!1;for(i.push([e,t]),r=a.length;r--;){var n=a[r];if(!Ya(e[n],t[n],i))return!1}return!0}));var rs=Ya,ns=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===os}(e)}(e)},os="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;Za.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return Za(e,i,t)}),{})};var ls,cs=Za,hs=a().createContext(),ds=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(i){!t.hasOwnProperty(i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])})),t},us={masterSpinnerFinished:!1},gs=function(){function e(t){wa(this,e),this.state=ds(cs(us,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return ka(e,[{key:"setStoreState",value:function(e,t){this.state=ds(cs(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return cs({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach((function(e){return e()})),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return-1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter((function(t){return!0!==e.masterSpinnerSubscriptions[t].complete})).length}}]),e}(),ps=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],fs=(Ea(ls=function(e){function t(e){var a;if(wa(this,t),a=i.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var s={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:Ra(e.totalSlides,e.visibleSlides),slideTraySize:Ba(e.totalSlides,e.visibleSlides),step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return a.carouselStore=new gs(s),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"componentDidUpdate",value:function(e){var t=this,i={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach((function(a){e[a]!==t.props[a]&&(i[a]=t.props[a])})),this.props.currentSlide!==e.currentSlide&&!this.props.disableAnimation&&(i.disableAnimation=!0,i.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(i.slideSize=Ra(this.props.totalSlides,this.props.visibleSlides),i.slideTraySize=Ba(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(i.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(i).length>0&&this.carouselStore.setStoreState(i)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),i=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,Ta(e,ps)),s=Na(["carousel",this.props.className]);return a().createElement(t,Aa({className:s},i),a().createElement(hs.Provider,{value:this.carouselStore},this.props.children))}}]),t}(a().Component),"propTypes",{children:Qa.children.isRequired,className:qa.string,currentSlide:qa.number,disableAnimation:qa.bool,disableKeyboard:qa.bool,hasMasterSpinner:qa.bool,interval:qa.number,isPageScrollLocked:qa.bool,isPlaying:qa.bool,lockOnWindowScroll:qa.bool,naturalSlideHeight:qa.number.isRequired,naturalSlideWidth:qa.number.isRequired,orientation:Qa.orientation,playDirection:Qa.direction,step:qa.number,dragStep:qa.number,tag:qa.string,totalSlides:qa.number.isRequired,touchEnabled:qa.bool,dragEnabled:qa.bool,visibleSlides:qa.number,infinite:qa.bool,isIntrinsicHeight:qa.bool}),Ea(ls,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),ls);hs.Consumer;var ms,xs,bs,vs,ys,Cs,ws=Ua(is,(function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}})),Ss=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],ks=(Ua((Ea(ms=function(e){function t(){var e;return wa(this,t),(e=i.call(this)).handleOnClick=e.handleOnClick.bind(_a(e)),e}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,a=t.onClick;i.setStoreState({currentSlide:0,isPlaying:!1},null!==a&&a.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),i=e.currentSlide,s=e.disabled,r=(e.onClick,e.totalSlides,Ta(e,Ss)),n=Na(["buttonFirst___2rhFr","carousel__first-button",t]),o=null!==s?s:0===i;return a().createElement("button",Aa({type:"button","aria-label":"first",className:n,onClick:this.handleOnClick,disabled:o},r),this.props.children)}}]),t}(a().Component),"propTypes",{carouselStore:qa.object.isRequired,children:Qa.children.isRequired,className:qa.string,currentSlide:qa.number.isRequired,disabled:qa.bool,onClick:qa.func,totalSlides:qa.number.isRequired}),Ea(ms,"defaultProps",{className:null,disabled:null,onClick:null}),ms),(function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}})),"buttonNext___2mOCa"),Es=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],As=Ua((Ea(xs=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).handleOnClick=a.handleOnClick.bind(_a(a)),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.currentSlide,a=t.onClick,s=t.step,r=t.carouselStore,n=t.infinite,o=t.totalSlides-t.visibleSlides,l=s+i,c=Math.min(l,o);n&&(c=o===i?0:c),r.setStoreState({currentSlide:c,isPlaying:!1},null!==a&&a.call(this,e))}},{key:"render",value:function(){var e=this.props,i=(e.carouselStore,e.className),s=e.currentSlide,r=e.disabled,n=(e.onClick,e.step,e.totalSlides),o=e.visibleSlides,l=e.infinite,c=Ta(e,Es),h=Na([ks,"carousel__next-button",i]),d=t.setDisabled(r,s,o,n,l);return a().createElement("button",Aa({type:"button","aria-label":"next",className:h,onClick:this.handleOnClick,disabled:d},c),this.props.children)}}],[{key:"setDisabled",value:function(e,t,i,a,s){return null!==e?e:t>=a-i&&!s}}]),t}(a().PureComponent),"propTypes",{carouselStore:qa.object.isRequired,children:Qa.children.isRequired,className:qa.string,currentSlide:qa.number.isRequired,disabled:qa.bool,onClick:qa.func,step:qa.number.isRequired,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired,infinite:qa.bool}),Ea(xs,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),xs),(function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}})),Ps=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],Ls=(Ua((Ea(bs=function(e){function t(){var e;return wa(this,t),(e=i.call(this)).handleOnClick=e.handleOnClick.bind(_a(e)),e}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,a=t.onClick,s=t.totalSlides,r=t.visibleSlides;i.setStoreState({currentSlide:s-r,isPlaying:!1},null!==a&&a.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),i=e.currentSlide,s=e.disabled,r=(e.onClick,e.totalSlides),n=e.visibleSlides,o=Ta(e,Ps),l=Na(["buttonLast___2yuh0","carousel__last-button",t]),c=null!==s?s:i>=r-n;return a().createElement("button",Aa({type:"button","aria-label":"last",className:l,onClick:this.handleOnClick,disabled:c},o),this.props.children)}}]),t}(a().Component),"propTypes",{carouselStore:qa.object.isRequired,children:Qa.children.isRequired,className:qa.string,currentSlide:qa.number.isRequired,disabled:qa.bool,onClick:qa.func,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired}),Ea(bs,"defaultProps",{className:null,disabled:null,onClick:null}),bs),(function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}})),"buttonNext___3Lm3s"),Ms=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],Ts=(Ua((Ea(vs=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).handleOnClick=a.handleOnClick.bind(_a(a)),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),i=e.childrenPlaying,s=e.className,r=e.isPlaying,n=(e.onClick,Ta(e,Ms)),o=Na([Ls,"carousel__play-button",s]);return a().createElement("button",Aa({type:"button","aria-label":"play",className:o,onClick:this.handleOnClick},n),r&&i,!r&&t,this.props.children)}}]),t}(a().PureComponent),"propTypes",{carouselStore:qa.object.isRequired,children:qa.node,childrenPaused:qa.node,childrenPlaying:qa.node,className:qa.string,isPlaying:qa.bool.isRequired,onClick:qa.func}),Ea(vs,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),vs),(function(e){return{isPlaying:e.isPlaying}})),{dot:"dot___3c3SI"}),_s=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Fs=Ua((Ea(ys=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).handleOnClick=a.handleOnClick.bind(_a(a)),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,a=t.onClick,s=t.slide,r=t.totalSlides,n=t.visibleSlides,o=s>=r-n?r-n:s;i.setStoreState({currentSlide:o,isPlaying:!1},null!==a&&a.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),i=e.currentSlide,s=e.disabled,r=(e.onClick,e.selected),n=e.slide,o=(e.totalSlides,e.visibleSlides),l=Ta(e,_s),c=n>=i&&n<i+o,h="boolean"==typeof r?r:c,d="boolean"==typeof s?s:!0===c,u=Na([Ts.dot,h&&Ts.dotSelected,"carousel__dot","carousel__dot--".concat(n),h&&"carousel__dot--selected",t]);return a().createElement("button",Aa({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:u,disabled:d},l),this.props.children)}}]),t}(a().Component),"propTypes",{carouselStore:qa.object.isRequired,children:Qa.children,className:qa.string,currentSlide:qa.number.isRequired,disabled:qa.bool,onClick:qa.func,selected:qa.bool,slide:qa.number.isRequired,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired}),Ea(ys,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),ys),(function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}})),Ds={},Hs=["renderDots"],Os=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],Is=Ua((Ea(Cs=function(e){function t(){return wa(this,t),i.apply(this,arguments)}Pa(t,e);var i=Fa(t);return ka(t,[{key:"renderDots",value:function(){var e=this.props,t=e.currentSlide,i=e.totalSlides,s=e.visibleSlides,r=e.disableActiveDots,n=e.showAsSelectedForCurrentSlideOnly,o=e.renderDots;if(o){var l=this.props;return l.renderDots,o(Ta(l,Hs))}for(var c=[],h=0;h<i;h+=1){var d=n?h===t:h>=t&&h<t+s,u=h>=i-s?i-s:h;c.push(a().createElement(Fs,{key:h,slide:u,selected:d,disabled:!!r&&d},a().createElement("span",{className:Na["carousel__dot-group-dot"]},this.props.dotNumbers&&h+1)))}return c}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),i=e.className,s=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,Ta(e,Os)),r=Na([Ds.DotGroup,"carousel__dot-group",i]);return a().createElement("div",Aa({className:r},s),this.renderDots(),t)}}]),t}(a().Component),"propTypes",{children:Qa.children,className:qa.string,currentSlide:qa.number.isRequired,carouselStore:qa.object.isRequired,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired,dotNumbers:qa.bool,disableActiveDots:qa.bool,showAsSelectedForCurrentSlideOnly:qa.bool,renderDots:qa.func}),Ea(Cs,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),Cs),(function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}})),zs={image:"image___xtQGH"},Ns=["src","alt"],Rs=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],Bs=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).state={imageStatus:$a},a.handleImageLoad=a.handleImageLoad.bind(_a(a)),a.handleImageError=a.handleImageError.bind(_a(a)),a.image=null,a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:$a}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:Ka}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:Ja}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),i=Na([zs.image,zs.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return a().createElement(t,Aa({className:i},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),i=Na([zs.image,zs.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return a().createElement(t,Aa({className:i},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,i=t.style,s=t.tag,r=Na([zs.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),n=Aa({},i),o=e;if("img"!==s){var l=e.src;e.alt,o=Ta(e,Ns),n=Aa({},i,{backgroundImage:'url("'.concat(l,'")'),backgroundSize:"cover"})}return a().createElement(s,Aa({className:r,style:n},o),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,Ta(e,Rs));switch(this.state.imageStatus){case $a:return this.renderLoading(t);case Ka:return this.renderSuccess(t);case Ja:return this.renderError(t);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(a().Component);Ea(Bs,"propTypes",{alt:qa.string,carouselStore:qa.object.isRequired,children:Qa.children,className:qa.string,hasMasterSpinner:qa.bool.isRequired,isBgImage:Qa.isBgImage,onError:qa.func,onLoad:qa.func,renderError:qa.func,renderLoading:qa.func,src:qa.string.isRequired,style:qa.object,tag:qa.string}),Ea(Bs,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var Xs,Ys,Vs,Ws,js=Ua(Bs,(function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}})),Gs=["className"],Zs=(Ea(Xs=function(e){function t(){return wa(this,t),i.apply(this,arguments)}Pa(t,e);var i=Fa(t);return ka(t,[{key:"render",value:function(){var e=this.props,t=e.className,i=Ta(e,Gs),s=Na(["spinner___27VUp","carousel__spinner",t]);return a().createElement("div",Aa({className:s},i))}}]),t}(a().PureComponent),"propTypes",{className:qa.string}),Ea(Xs,"defaultProps",{className:null}),Xs),Us={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},qs=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],$s=(Ua((Ea(Ys=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},a.tpCache={},a.handleImageComplete=a.handleImageComplete.bind(_a(a)),a.handleOnMouseMove=a.handleOnMouseMove.bind(_a(a)),a.handleOnMouseOut=a.handleOnMouseOut.bind(_a(a)),a.handleOnMouseOver=a.handleOnMouseOver.bind(_a(a)),a.handleOnTouchEnd=a.handleOnTouchEnd.bind(_a(a)),a.handleOnTouchMove=a.handleOnTouchMove.bind(_a(a)),a.handleOnTouchStart=a.handleOnTouchStart.bind(_a(a)),a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=Xa(e.nativeEvent.offsetX/e.target.offsetWidth*100),i=Xa(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:i})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(Da(e.targetTouches).forEach((function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}})),this.setState((function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}})))}},{key:"handleOnTouchMove",value:function(e){var i=this;if(this.state.isZooming){e.persist();var a=Da(e.targetTouches).filter((function(e){return i.tpCache[e.identifier]})).slice(0,2);if(2===a.length){e.stopPropagation();var s=e.target.getBoundingClientRect(),r=a[0].identifier,n=a[1].identifier,o={x1:this.tpCache[r].clientX,y1:this.tpCache[r].clientY,x2:this.tpCache[n].clientX,y2:this.tpCache[n].clientY};o.distance=t.distanceBetweenTwoTouches(Ca({},o));var l=t.midpointBetweenTwoTouches(Ca({},o));o.cx=l.x,o.cy=l.y;var c={x1:a[0].clientX,y1:a[0].clientY,x2:a[1].clientX,y2:a[1].clientY};c.distance=t.distanceBetweenTwoTouches(Ca({},c));var h=t.midpointBetweenTwoTouches(Ca({},c));c.cx=h.x,c.cy=h.y;var d=Xa(es({min:0,max:100,x:(c.cx-s.left)/s.width*100})),u=Xa(es({min:0,max:100,x:(c.cy-s.top)/s.height*100})),g=function(e){return es({min:1,max:3,x:e.scale+(c.distance-o.distance)/100})};this.setState((function(e){return{isZooming:1!==g(e),scale:g(e),x:d,y:u}}))}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(Da(e.changedTouches).forEach((function(e){delete t.tpCache[e.identifier]})),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return a().createElement("div",{className:Na([Us.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&a().createElement(Zs,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,i=e.bgImageProps,s=e.bgImageTag,r=(e.carouselStore,e.className),n=e.imageClassName,o=e.overlayClassName,l=(e.isPinchZoomEnabled,e.spinner,e.src),c=e.srcZoomed,h=e.tag,d=Ta(e,qs),u=Na([Us.container,r]),g=Na([Us.image,"carousel__zoom-image",n]),p=Na([Us.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&Us.hover,this.state.isZooming&&Us.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",o]),f={};return(this.state.isHovering||this.state.isZooming)&&(f.transformOrigin="".concat(this.state.x," ").concat(this.state.y),f.transform="scale(".concat(this.state.scale,")")),a().createElement(h,Aa({className:u},d),a().createElement(js,Aa({alt:t,className:g,tag:s,src:l,onLoad:this.handleImageComplete,onError:this.handleImageComplete},i)),a().createElement(js,{className:p,tag:"div",src:c||l,style:f,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,i=e.y1;return{x:(t+e.x2)/2,y:(i+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,i=e.y1,a=e.x2,s=e.y2;return Math.sqrt(Math.pow(a-t,2)+Math.pow(s-i,2))}}]),t}(a().Component),"propTypes",{alt:qa.string,bgImageProps:qa.object,bgImageTag:qa.string,carouselStore:qa.object.isRequired,className:qa.string,imageClassName:qa.string,overlayClassName:qa.string,spinner:qa.func,src:qa.string.isRequired,srcZoomed:qa.string,tag:qa.string,isPinchZoomEnabled:qa.bool}),Ea(Ys,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),Ys),(function(){return{}})),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),Ks=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],Js=Ua((Ea(Vs=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).handleOnFocus=a.handleOnFocus.bind(_a(a)),a.handleOnBlur=a.handleOnBlur.bind(_a(a)),a.state={focused:!1},a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,i=e.index,a=e.visibleSlides;return i>=t&&i<t+a}},{key:"handleOnFocus",value:function(e){var t=this,i=this.props.onFocus;this.setState({focused:!0},(function(){null!==i&&i.call(t,e)}))}},{key:"handleOnBlur",value:function(e){var t=this,i=this.props.onBlur;this.setState({focused:!1},(function(){null!==i&&i.call(t,e)}))}},{key:"renderFocusRing",value:function(){return this.state.focused?a().createElement("div",{className:[$s.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var e=this,t=this.props,i=t.ariaLabel,s=(t.carouselStore,t.children,t.className),r=t.classNameHidden,n=t.classNameVisible,o=(t.currentSlide,t.index,t.innerClassName),l=t.innerTag,c=t.naturalSlideHeight,h=t.naturalSlideWidth,d=(t.onBlur,t.onFocus,t.orientation),u=t.slideSize,g=t.style,p=t.tabIndex,f=t.tag,m=t.totalSlides,x=(t.visibleSlides,t.isIntrinsicHeight),b=Ta(t,Ks),v={};"horizontal"===d?(v.width=Xa(u),v.paddingBottom=Xa(100*c/(h*m))):(v.width=Xa(100),v.paddingBottom=Xa(100*c/h));var y={};x&&("horizontal"===d?v.height="unset":v.width="unset",v.paddingBottom="unset",y.position="unset");var C=Aa({},v,g),w=this.isVisible(),S=Na([$s.slide,"horizontal"===d&&$s.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",w&&n,w&&"carousel__slide--visible",!w&&r,!w&&"carousel__slide--hidden",s]),k=Na([$s.slideInner,"carousel__inner-slide",o]),E=this.isVisible()?0:-1,A="number"==typeof p?p:E;return a().createElement(f,Aa({ref:function(t){e.tagRef=t},tabIndex:A,"aria-selected":this.isVisible(),"aria-label":i,role:"option",onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:S,style:C},b),a().createElement(l,{ref:function(t){e.innerTagRef=t},className:k,style:y},this.props.children,this.renderFocusRing()))}}]),t}(a().PureComponent),"propTypes",{ariaLabel:qa.string,carouselStore:qa.object,children:Qa.children,className:qa.string,classNameHidden:qa.string,classNameVisible:qa.string,currentSlide:qa.number.isRequired,index:qa.number.isRequired,innerClassName:qa.string,innerTag:qa.string,naturalSlideHeight:qa.number.isRequired,naturalSlideWidth:qa.number.isRequired,onBlur:qa.func,onFocus:qa.func,orientation:Qa.orientation.isRequired,slideSize:qa.number.isRequired,style:qa.object,tabIndex:qa.number,tag:qa.string,totalSlides:qa.number.isRequired,visibleSlides:qa.number.isRequired,isIntrinsicHeight:qa.bool}),Ea(Vs,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,style:{},tabIndex:null,tag:"div",isIntrinsicHeight:!1}),Vs),(function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}})),Qs=function(){function e(){wa(this,e)}return ka(e,[{key:"parents",value:function(e,t){return null===e.parentNode?t:this.parents(e.parentNode,t.concat([e]))}},{key:"scrollParent",value:function(t){for(var i=this.parents(t.parentNode,[]),a=0;a<i.length;a+=1)if(e.scroll(i[a]))return i[a];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(e,t){return getComputedStyle(e,null).getPropertyValue(t)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(e){return e instanceof HTMLElement||e instanceof SVGElement}}]),e}(),er={horizontalSlider:"horizontalSlider___281Ls",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},tr=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","tabIndex","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],ir=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],ar=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],sr=Ua((Ea(Ws=function(e){function t(e){var a;return wa(this,t),(a=i.call(this,e)).getSliderRef=a.getSliderRef.bind(_a(a)),a.handleDocumentScroll=a.handleDocumentScroll.bind(_a(a)),a.handleOnClickCapture=a.handleOnClickCapture.bind(_a(a)),a.handleOnKeyDown=a.handleOnKeyDown.bind(_a(a)),a.handleOnMouseDown=a.handleOnMouseDown.bind(_a(a)),a.handleOnMouseMove=a.handleOnMouseMove.bind(_a(a)),a.handleOnMouseUp=a.handleOnMouseUp.bind(_a(a)),a.handleOnTouchCancel=a.handleOnTouchCancel.bind(_a(a)),a.handleOnTouchEnd=a.handleOnTouchEnd.bind(_a(a)),a.handleOnTouchMove=a.handleOnTouchMove.bind(_a(a)),a.handleOnTouchStart=a.handleOnTouchStart.bind(_a(a)),a.playBackward=a.playBackward.bind(_a(a)),a.playForward=a.playForward.bind(_a(a)),a.callCallback=a.callCallback.bind(_a(a)),a.blockWindowScroll=a.blockWindowScroll.bind(_a(a)),a.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},a.interval=null,a.isDocumentScrolling=null,a.moveTimer=null,a.originalOverflow=null,a.scrollParent=null,a.scrollStopTimer=null,a}Pa(t,e);var i=Fa(t);return ka(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(e){!e.isPlaying&&this.props.isPlaying&&this.play(),e.isPlaying&&!this.props.isPlaying&&this.stop(),!e.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),e.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===e.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(e){this.sliderTrayElement=e}},{key:"fakeOnDragStart",value:function(e){var t=e.screenX,i=e.screenY,a=e.touchDrag,s=void 0!==a&&a,r=e.mouseDrag,n=void 0!==r&&r;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:s,isBeingMouseDragged:n,startX:t,startY:i})}},{key:"fakeOnDragMove",value:function(e,t){var i=this;this.moveTimer=window.requestAnimationFrame.call(window,(function(){i.setState((function(a){return{deltaX:e-a.startX,deltaY:t-a.startY,preventingVerticalScroll:Math.abs(t-a.startY)<=i.props.verticalPixelThreshold&&Math.abs(e-a.startX)>=i.props.horizontalPixelThreshold}}))}))}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var i=this.props.trayProps;i&&"function"==typeof i[e]&&(t.persist(),i[e](t))}},{key:"handleOnMouseDown",value:function(e){this.props.dragEnabled?(e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)):this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){this.state.cancelNextClick?(e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)):this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(this.props.touchEnabled){"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}else this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout((function(){e.isDocumentScrolling=!1}),66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)this.callCallback("onTouchMove",e);else{window.cancelAnimationFrame.call(window,this.moveTimer);var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}}},{key:"forward",value:function(){var e=this.props,t=e.currentSlide,i=e.step,a=e.totalSlides,s=e.visibleSlides;return Math.min(t+i,a-s)}},{key:"backward",value:function(){var e=this.props,t=e.currentSlide,i=e.step;return Math.max(t-i,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,i=this.props,a=i.carouselStore,s=i.currentSlide,r=i.disableKeyboard,n=i.totalSlides,o=i.visibleSlides,l={};!0===r||n<=o||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,s-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(n-o,s+1),l.isPlaying=!1),a.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,i=e.currentSlide;t.setStoreState({currentSlide:this.forward()===i?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,i=e.currentSlide,a=e.totalSlides,s=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===i?a-s:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new Qs;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(e){this.state.preventingVerticalScroll&&(e.preventDefault(),e.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),i=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),a=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),s=es({min:0,max:a,x:this.props.currentSlide+i});this.props.infinite&&(this.props.currentSlide>=a&&i>0&&(s=0),0===this.props.currentSlide&&i<0&&(s=a)),this.props.carouselStore.setStoreState({currentSlide:s})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,i=e.masterSpinnerFinished,s=e.spinner;return t&&!i?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),a().createElement("div",{className:Na([er.masterSpinnerContainer,"carousel__master-spinner-container"])},s&&s(),!s&&a().createElement(Zs,null))):null}},{key:"render",value:function(){var e=this,t=this.props,i=t.ariaLabel,s=(t.carouselStore,t.children),r=t.className,n=t.classNameAnimation,o=t.classNameTray,l=t.classNameTrayWrap,c=t.currentSlide,h=t.disableAnimation,d=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),u=t.naturalSlideWidth,g=(t.onMasterSpinner,t.orientation),p=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),f=t.slideTraySize,m=(t.spinner,t.style),x=t.tabIndex,b=(t.totalSlides,t.touchEnabled,t.trayProps),v=t.trayTag,y=t.visibleSlides,C=t.isIntrinsicHeight,w=Ta(t,tr),S=Aa({},m),k={};"vertical"===g&&(k.height=0,k.paddingBottom=Xa(100*d*y/u),k.width=Xa(100));var E={},A=Xa(p*c*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||h)&&(E.transition="none"),C&&(E.display="flex",E.alignItems="stretch"),"vertical"===g?(E.transform="translateY(".concat(A,") translateY(").concat(this.state.deltaY,"px)"),E.width=Xa(100),E.flexDirection="column"):(E.width=Xa(f),E.transform="translateX(".concat(A,") translateX(").concat(this.state.deltaX,"px)"),E.flexDirection="row");var P=Na(["vertical"===g?er.verticalSlider:er.horizontalSlider,"carousel__slider","vertical"===g?"carousel__slider--vertical":"carousel__slider--horizontal",r]),L=Na([er.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===g?er.verticalSlideTrayWrap:er.horizontalTrayWrap,"vertical"===g?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",l]),M=Na([er.sliderTray,n||er.sliderAnimation,"carousel__slider-tray","vertical"===g?er.verticalTray:er.horizontalTray,"vertical"===g?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",o]),T=null!==x?x:0,_=(w.dragStep,w.step,w.infinite,w.preventVerticalScrollOnTouch,w.preventingVerticalScroll,w.horizontalPixelThreshold,w.verticalPixelThreshold,Ta(w,ir)),F=(b.className,b.onClickCapture,b.onMouseDown,b.onTouchCancel,b.onTouchEnd,b.onTouchMove,b.onTouchStart,b.ref,b.style,Ta(b,ar));return a().createElement("div",Aa({ref:function(t){e.sliderElement=t},className:P,"aria-live":"polite","aria-label":i,style:S,tabIndex:T,onKeyDown:this.handleOnKeyDown,role:"listbox"},_),a().createElement("div",{className:L,style:k},a().createElement(v,Aa({ref:this.getSliderRef,className:M,style:E,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},F),s),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,i,a){return("horizontal"===e?t:i)/a}},{key:"slidesMoved",value:function(e,t,i,a,s,r){var n="horizontal"===t?i:a,o=Math.abs(Math.round(n/s)),l=Math.abs(n)>=s*e?r:0,c=Math.max(l,o);if(n<0)return c;var h=-c;return 0===h?0:h}}]),t}(a().Component),"propTypes",{ariaLabel:qa.string,carouselStore:qa.object.isRequired,children:qa.node.isRequired,className:qa.string,classNameAnimation:qa.string,classNameTray:qa.string,classNameTrayWrap:qa.string,currentSlide:qa.number.isRequired,disableAnimation:qa.bool,disableKeyboard:qa.bool,dragEnabled:qa.bool.isRequired,dragStep:qa.number,hasMasterSpinner:qa.bool.isRequired,infinite:qa.bool,interval:qa.number.isRequired,isPageScrollLocked:qa.bool.isRequired,isPlaying:qa.bool.isRequired,lockOnWindowScroll:qa.bool.isRequired,preventVerticalScrollOnTouch:qa.bool,horizontalPixelThreshold:qa.number,verticalPixelThreshold:qa.number,masterSpinnerFinished:qa.bool.isRequired,moveThreshold:qa.number,naturalSlideHeight:qa.number.isRequired,naturalSlideWidth:qa.number.isRequired,onMasterSpinner:qa.func,orientation:Qa.orientation.isRequired,playDirection:Qa.direction.isRequired,privateUnDisableAnimation:qa.bool,slideSize:qa.number.isRequired,slideTraySize:qa.number.isRequired,spinner:qa.func,step:qa.number.isRequired,style:qa.object,tabIndex:qa.number,totalSlides:qa.number.isRequired,touchEnabled:qa.bool.isRequired,trayProps:qa.shape({className:qa.string,onClickCapture:qa.func,onMouseDown:qa.func,onTouchCancel:qa.func,onTouchEnd:qa.func,onTouchMove:qa.func,onTouchStart:qa.func,ref:qa.shape({}),style:qa.string}),trayTag:qa.string,visibleSlides:qa.number,isIntrinsicHeight:qa.bool}),Ea(Ws,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),Ws),(function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}));const{useInstanceId:rr}=wp.compose,{BaseControl:nr}=wp.components;function or({className:e,selected:i,help:a,onChange:s,options:r=[],icons:n=[],itemsPerGroup:o=4}){const l=`inspector-monsterinsights-popular-posts-theme-control-${rr(or)}`,c=e=>s(e.target.value);let h=[],d=0,u=0,g=0;for(const e in r){if(!r.hasOwnProperty(e))continue;const t=r[e];void 0===h[d]&&(h[d]=[]),h[d][u]=t,t.value===i&&(g=d),u===o-1?(u=0,d++):u++}const p=e=>{let t="monsterinsights-theme-picker-label-"+e.value;return e.value===i&&(t+=" monsterinsights-theme-picker-label-selected"),xa.canaccess(e.level)||(t+=" monsterinsights-theme-picker-label-disabled"),t};return!(0,ma.isEmpty)(r)&&(0,t.createElement)(nr,{id:l,help:a,className:qe()(e,"monsterinsights-theme-picker")},(0,t.createElement)(fs,{naturalSlideWidth:250,totalSlides:h.length,className:"monsterinsights-theme-picker-carousel",currentSlide:g,dragEnabled:!1},(0,t.createElement)(sr,null,h.map(((e,s)=>(0,t.createElement)(Js,{className:"monsterinsights-theme-picker-slide",index:s,key:`${l}-${s}`},e.map(((e,r)=>(0,t.createElement)("div",{key:`${l}-${s}-${r}`,className:"monsterinsights-slider-theme-option"},(0,t.createElement)("input",{id:`${l}-${s}-${r}`,className:"monsterinsights-slider-theme-input",type:"radio",name:l,value:e.value,onChange:c,checked:e.value===i,"aria-describedby":a?`${l}__help`:void 0}),(0,t.createElement)("label",{htmlFor:`${l}-${s}-${r}`,className:p(e)},e.value===i&&(0,t.createElement)("span",{className:"monsterinsights-theme-picker-check"},va.checkmark),(0,t.createElement)("span",{className:"monsterinsights-theme-picker-label-icon"},n[e.value]?n[e.value]:""),(0,t.createElement)("span",{className:"monsterinsights-theme-picker-label-text"},e.label))))))))),(()=>{if(h.length>1)return(0,t.createElement)("div",{className:"monsterinsights-carousel-navigation"},(0,t.createElement)(ws,null,va.chevronleft),(0,t.createElement)(Is,{className:"monsterinsights-carousel-navigation-dots"}),(0,t.createElement)(As,null,va.chevronright))})()))}const{__:lr}=wp.i18n,{registerBlockType:cr}=wp.blocks,{apiFetch:hr}=wp,{registerStore:dr,withSelect:ur}=wp.data,{InspectorControls:gr}=wp.blockEditor,{PanelBody:pr,PanelRow:fr,TextControl:mr,ColorPalette:xr,RangeControl:br}=wp.components,vr=window.monsterinsights_gutenberg_tool_vars,yr={setThemes:e=>({type:"SET_THEMES",themes:e}),receiveThemes:e=>({type:"RECEIVE_THEMES",path:e})};dr("monsterinsights/v1/popular-posts/inline",{reducer:(e={themes:{}},t)=>"SET_THEMES"===t.type?{...e,themes:t.themes}:e,actions:yr,selectors:{receiveThemes(e){const{themes:t}=e;return t}},controls:{RECEIVE_THEMES:e=>hr({path:e.path})},resolvers:{*receiveThemes(e){const t=yield yr.receiveThemes("/monsterinsights/v1/popular-posts/themes/inline");if(void 0!==t.themes){for(const e in t.themes)t.themes.hasOwnProperty(e)&&(t.themes[e].value=e);return yr.setThemes(t)}}}}),cr("monsterinsights/popular-posts-inline",{title:lr("Inline Popular Posts","ga-premium"),description:lr("Add inline popular posts from MonsterInsights","ga-premium"),category:"widgets",icon:fa.inlinepop,keywords:[lr("Popular","ga-premium"),lr("Posts","ga-premium"),lr("Inline","ga-premium"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},icon_background:{type:"string"},icon_color:{type:"string"},border_color:{type:"string"},border_color2:{type:"string"}},edit:ur((e=>({themes:e("monsterinsights/v1/popular-posts/inline").receiveThemes()})))((e=>{const{attributes:{theme:i,title_size:a,title_color:s,label_color:r,label_text:n,label_background:o,background_color:l,background_border:c,icon_background:h,icon_color:d,border_color:u,border_color2:g},themes:p,setAttributes:f}=e,m=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],x=void 0!==p.themes?p.themes:{},b=void 0===e.attributes.theme?p.selected:i,v=void 0!==b&&void 0!==x[b]?x[b]:{},y=void 0!==v.styles?v.styles:{};let C={};for(const t in y)if(y.hasOwnProperty(t))for(const i in y[t]){if(!y[t].hasOwnProperty(i))continue;const a=t+"_"+i;void 0===e.attributes[a]?C[a]=y[t][i]:C[a]=e.attributes[a]}const w=(e,i)=>{const a=C[i];return[(0,t.createElement)("label",{key:"monsterinsights-popular-posts-label"+i},e),(0,t.createElement)(xr,{key:"monsterinsights-popular-posts-input"+i,value:a,colors:m,onChange:e=>{f({[i]:e})}})]};return[(0,t.createElement)(gr,{key:"monsterinsights-popular-posts-inline-inspector-controls"},(0,t.createElement)(pr,{title:lr("Theme","ga-premium"),key:"monsterinsights-popular-posts-inline-theme"},(0,t.createElement)(fr,{key:"monsterinsights-popular-posts-inline-theme-row"},(0,t.createElement)(or,{id:"monsterinsights-popular-posts-inline-theme",options:x,selected:b,icons:fa,onChange:e=>{f({theme:e})}}))),(()=>{if(void 0===y.title)return;let e=[];return void 0!==y.title.size&&e.push(((e,i)=>{const a=C[i];return(0,t.createElement)(br,{key:"monsterinsights-popular-posts-input"+i,label:e,value:parseInt(a),min:1,max:100,onChange:e=>f({[i]:""===e?"":parseInt(e)})})})(lr("Title Font Size","ga-premium"),"title_size")),void 0!==y.title.color&&e.push(w(lr("Title Color","ga-premium"),"title_color")),(0,t.createElement)(pr,{title:lr("Title Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-title"},e)})(),(()=>{if(void 0===y.label)return;let e=[];return void 0!==y.label.text&&e.push(((e,i)=>{const a=C[i];return(0,t.createElement)(mr,{key:"monsterinsights-popular-posts-input"+i,label:e,type:"text",value:a,onChange:e=>f({[i]:e})})})(lr("Label Text","ga-premium"),"label_text")),void 0!==y.label.color&&e.push(w(lr("Label Color","ga-premium"),"label_color")),void 0!==y.label.background&&e.push(w(lr("Label Background","ga-premium"),"label_background")),(0,t.createElement)(pr,{title:lr("Label Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-label"}," ",e," ")})(),(()=>{let e=[];if(void 0!==y.border&&void 0!==y.border.color&&e.push(w(lr("Border Color","ga-premium"),"border_color")),void 0!==y.border&&void 0!==y.border.color2&&e.push(w(lr("Bottom Border Color","ga-premium"),"border_color2")),void 0!==y.background&&void 0!==y.background.border&&e.push(w(lr("Border Color","ga-premium"),"background_border")),0!==e.length)return(0,t.createElement)(pr,{title:lr("Border Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")})(),(()=>{if(void 0===y.background||void 0===y.background.color)return;let e=[];return void 0!==y.background.color&&e.push(w(lr("Background Color","ga-premium"),"background_color")),(0,t.createElement)(pr,{title:lr("Background Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-background"}," ",e," ")})(),(()=>{if(void 0===y.icon)return;let e=[];return void 0!==y.icon.color&&e.push(w(lr("Icon Color","ga-premium"),"icon_color")),void 0!==y.icon.background&&e.push(w(lr("Icon Background Color","ga-premium"),"icon_background")),(0,t.createElement)(pr,{title:lr("Icon Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-icon"}," ",e," ")})()),(0,t.createElement)("div",{key:"monsterinsights-popular-posts-inline-preview"},(0,t.createElement)("div",{className:"monsterinsights-inline-popular-posts-widget monsterinsights-inline-popular-posts-"+b,style:{backgroundColor:C.background_color,borderColor:C.background_border}},(()=>{if(void 0!==v.image&&v.image){const e=void 0!==y.image?y.image:"theme-preview-image.jpg";return(0,t.createElement)("div",{className:"monsterinsights-inline-popular-posts-image"},(0,t.createElement)("img",{src:vr.vue_assets_path+"img/"+e}))}})(),(0,t.createElement)("div",{className:"monsterinsights-inline-popular-posts-text"},(()=>{if(void 0!==y.icon)return(0,t.createElement)("span",{className:"monsterinsights-inline-popular-posts-icon",style:{backgroundColor:C.icon_background}},fa.themeIcon(C.icon_color))})(),(()=>{if(void 0!==y.label)return(0,t.createElement)("span",{style:{color:C.label_color,backgroundColor:C.label_background},className:"monsterinsights-inline-popular-posts-label"},C.label_text)})(),(()=>{if(void 0!==y.border&&void 0!==y.border.color)return(0,t.createElement)("span",{className:"monsterinsights-inline-popular-posts-border",style:{borderColor:C.border_color}})})(),(()=>{if(void 0!==y.title&&void 0===v.list&&void 0!==y.title.text)return(0,t.createElement)("a",{href:"#",className:"monsterinsights-inline-popular-posts-title",style:{color:C.title_color,fontSize:C.title_size+"px"}},y.title.text)})(),(()=>{if(void 0!==v.list){const e=[];for(const i in v.list)e.push((0,t.createElement)("li",{key:"monsterinsights-popular-posts-preview-list-item-"+i,style:{color:C.title_color,fontSize:C.title_size+"px"}},v.list[i]));return(0,t.createElement)("ul",{className:"monsterinsights-inline-popular-posts-list"},e)}})(),(()=>{if(void 0!==y.border&&void 0!==y.border.color2)return(0,t.createElement)("span",{className:"monsterinsights-inline-popular-posts-border-2",style:{borderColor:C.border_color2}})})())))]})),save:e=>null});let Cr={};Cr.widgetpop=(0,t.createElement)("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.895431 0 0 0.895431 0 2V10C0 11.1046 0.895431 12 2 12H14C15.1046 12 16 11.1046 16 10V2C16 0.895431 15.1046 0 14 0H2ZM8.94046 4.70557L8 2L7.05954 4.70557L4.19577 4.76393L6.47831 6.49443L5.64886 9.23607L8 7.6L10.3511 9.23607L9.52169 6.49443L11.8042 4.76393L8.94046 4.70557ZM0 14H14V16H0V14ZM10 18H0V20H10V18Z",fill:"#555D66"})),Cr.alpha=(0,t.createElement)("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"46",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"7.40002",y:"12",width:"59.2",height:"9",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"7.40002",y:"25",width:"51.8",height:"9",rx:"2",fill:"#338EEF"})),Cr.beta=(0,t.createElement)("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M0 15C0 13.3431 1.34315 12 3 12H4V34H3C1.34315 34 0 32.6569 0 31V15Z",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"12",y:"12",width:"54",height:"9",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"12",y:"25",width:"44",height:"9",rx:"2",fill:"#4296F0"})),Cr.charlie=(0,t.createElement)("svg",{width:"74",height:"46",viewBox:"0 0 74 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"46",rx:"3",fill:"#E7F2FD"}),(0,t.createElement)("rect",{width:"74",height:"4",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"8",y:"14",width:"58",height:"9",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"8",y:"27",width:"40",height:"9",rx:"2",fill:"#4296F0"})),Cr.delta=(0,t.createElement)("svg",{width:"74",height:"39",viewBox:"0 0 74 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"31",y:"12",width:"43",height:"7",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{width:"74",height:"4",fill:"#1170D5"})),Cr.echo=(0,t.createElement)("svg",{width:"74",height:"76",viewBox:"0 0 74 76",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"76",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"61",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"52",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"46",y:"52",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),Cr.foxtrot=(0,t.createElement)("svg",{width:"74",height:"43",viewBox:"0 0 74 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"43",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"8",y:"8",width:"58",height:"7",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"28",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"19",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"46",y:"19",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),Cr.golf=(0,t.createElement)("svg",{width:"74",height:"56",viewBox:"0 0 74 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"56",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"8",y:"21",width:"58",height:"7",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"41",width:"7",height:"7",rx:"3.5",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"8",width:"16",height:"9",rx:"2",fill:"#1170D5"}),(0,t.createElement)("rect",{x:"8",y:"32",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"46",y:"32",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),Cr.hotel=(0,t.createElement)("svg",{width:"74",height:"50",viewBox:"0 0 74 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"50",rx:"5",fill:"#338EEF"}),(0,t.createElement)("path",{d:"M54.0625 42H19.9375C18.8438 42 17.9141 41.6111 17.1484 40.8333C16.3828 40.0556 16 39.1111 16 38V14C16 12.8889 16.3828 11.9444 17.1484 11.1667C17.9141 10.3889 18.8438 10 19.9375 10H54.0625C55.1562 10 56.0859 10.3889 56.8516 11.1667C57.6172 11.9444 58 12.8889 58 14V38C58 39.1111 57.6172 40.0556 56.8516 40.8333C56.0859 41.6111 55.1562 42 54.0625 42ZM28.3867 16.0833C27.5117 15.1389 26.4453 14.6667 25.1875 14.6667C23.9297 14.6667 22.8359 15.1389 21.9062 16.0833C21.0312 16.9722 20.5938 18.0556 20.5938 19.3333C20.5938 20.6111 21.0312 21.7222 21.9062 22.6667C22.8359 23.5556 23.9297 24 25.1875 24C26.4453 24 27.5117 23.5556 28.3867 22.6667C29.3164 21.7222 29.7812 20.6111 29.7812 19.3333C29.7812 18.0556 29.3164 16.9722 28.3867 16.0833ZM21.25 36.6667H52.75V27.3333L45.5312 20C45.0938 19.5556 44.6562 19.5556 44.2188 20L33.0625 31.3333L28.4688 26.6667C28.0312 26.2222 27.5938 26.2222 27.1562 26.6667L21.25 32.6667V36.6667Z",fill:"#59A3F2"}),(0,t.createElement)("rect",{x:"8",y:"26",width:"58",height:"7",rx:"2",fill:"#F1F7FE"}),(0,t.createElement)("rect",{x:"8",y:"37",width:"34",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"46",y:"37",width:"20",height:"5",rx:"2",fill:"#A0CBF8"})),Cr.comments=e=>(0,t.createElement)("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{fill:e}},(0,t.createElement)("path",{d:"M7.8251 1.25893C8.70332 2.09821 9.14243 3.10714 9.14243 4.28571C9.14243 5.46429 8.70332 6.47321 7.8251 7.3125C6.94689 8.15179 5.8887 8.57143 4.65056 8.57143C3.78674 8.57143 2.98771 8.34821 2.25346 7.90179C1.63439 8.34821 0.993719 8.57143 0.331456 8.57143C0.302662 8.57143 0.273868 8.5625 0.245074 8.54464C0.216279 8.50893 0.194684 8.47321 0.180287 8.4375C0.151493 8.34821 0.158691 8.26786 0.201882 8.19643C0.50422 7.83929 0.763366 7.35714 0.979321 6.75C0.432235 6.01786 0.158691 5.19643 0.158691 4.28571C0.158691 3.10714 0.5978 2.09821 1.47602 1.25893C2.35424 0.419643 3.41242 0 4.65056 0C5.8887 0 6.94689 0.419643 7.8251 1.25893ZM11.7771 10.1786C11.993 10.7857 12.2522 11.2679 12.5545 11.625C12.5977 11.6964 12.6049 11.7768 12.5761 11.8661C12.5473 11.9554 12.4969 12 12.425 12C11.7627 12 11.122 11.7768 10.5029 11.3304C9.7687 11.7768 8.96967 12 8.10585 12C7.18444 12 6.34941 11.7589 5.60076 11.2768C4.85212 10.7946 4.30503 10.1607 3.9595 9.375C4.21865 9.41071 4.449 9.42857 4.65056 9.42857C6.07587 9.42857 7.29241 8.92857 8.30021 7.92857C9.32239 6.91071 9.83349 5.69643 9.83349 4.28571C9.83349 4.08929 9.82629 3.91071 9.81189 3.75C10.6325 4.07143 11.302 4.59821 11.8203 5.33036C12.3386 6.04464 12.5977 6.83929 12.5977 7.71429C12.5977 8.625 12.3242 9.44643 11.7771 10.1786Z"}));const wr=Cr,{CheckboxControl:Sr,withSpokenMessages:kr,withFilters:Er}=wp.components,{withSelect:Ar,registerStore:Pr}=wp.data,{withInstanceId:Lr,compose:Mr}=wp.compose,{addQueryArgs:Tr}=wp.url,{apiFetch:_r}=wp,Fr={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Dr={setTerms:(e,t)=>({type:"SET_TERMS",slug:e,terms:t}),receiveTerms:e=>({type:"RECEIVE_TERMS",path:e})};Pr("monsterinsights/v1/taxonomy",{reducer:(e={terms:{}},t)=>"SET_TERMS"===t.type?{...e,terms:t.terms}:e,actions:Dr,selectors:{receiveTerms(e,t){const{terms:i}=e;return i[t]}},controls:{RECEIVE_TERMS:e=>_r({path:e.path})},resolvers:{*receiveTerms(e){const t=yield Dr.receiveTerms("/monsterinsights/v1/taxonomy/"+e);return Dr.setTerms(e,t)}}});class Hr extends yi.Component{constructor(){super(...arguments),this.findTerm=this.findTerm.bind(this),this.onChange=this.onChange.bind(this),this.onChangeFormName=this.onChangeFormName.bind(this),this.onChangeFormParent=this.onChangeFormParent.bind(this),this.onToggleForm=this.onToggleForm.bind(this),this.setFilterValue=this.setFilterValue.bind(this),this.sortBySelected=this.sortBySelected.bind(this),this.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]}}onChange(e){const{onUpdateTerms:t,terms:i=[],slug:a}=this.props;t(-1!==i.indexOf(e)?(0,ma.without)(i,e):[...i,e],a)}onChangeFormName(e){const t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}onChangeFormParent(e){this.setState({formParent:e})}onToggleForm(){this.setState((e=>({showForm:!e.showForm})))}findTerm(e,t,i){return(0,ma.find)(e,(e=>(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===i.toLowerCase()))}componentDidMount(){this.fetchTerms()}componentWillUnmount(){(0,ma.invoke)(this.fetchRequest,["abort"]),(0,ma.invoke)(this.addRequest,["abort"])}componentDidUpdate(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}fetchTerms(){const{slug:e}=this.props;e&&(this.fetchRequest=_r({path:Tr(`/monsterinsights/v1/terms/${e}`,Fr)}),this.fetchRequest.then((e=>{const t=this.sortBySelected(function(e){const t=e.map((e=>({children:[],parent:null,...e}))),i=(0,ma.groupBy)(t,"parent");if(i.null&&i.null.length)return t;const a=e=>e.map((e=>{const t=i[e.id];return{...e,children:t&&t.length?a(t):[]}}));return a(i[0]||[])}(e));this.fetchRequest=null,this.setState({loading:!1,availableTermsTree:t,availableTerms:e})}),(e=>{"abort"!==e.statusText&&(this.fetchRequest=null,this.setState({loading:!1}))})))}sortBySelected(e){const{terms:t}=this.props,i=e=>-1!==t.indexOf(e.id)||void 0!==e.children&&!!(e.children.map(i).filter((e=>e)).length>0);return e.sort(((e,t)=>{const a=i(e),s=i(t);return a===s?0:a&&!s?-1:!a&&s?1:0})),e}setFilterValue(e){const{availableTermsTree:t}=this.state,i=e.target.value,a=t.map(this.getFilterMatcher(i)).filter((e=>e)),s=e=>{let t=0;for(let i=0;i<e.length;i++)t++,void 0!==e[i].children&&(t+=s(e[i].children));return t};this.setState({filterValue:i,filteredTermsTree:a});const r=s(a),n=(0,Ui.sprintf)(/* translators: %d: number of results */ /* translators: %d: number of results */ (0,Ui._n)("%d result found.","%d results found.",r),r);this.props.debouncedSpeak(n,"assertive")}getFilterMatcher(e){const t=i=>{if(""===e)return i;const a={...i};return a.children.length>0&&(a.children=a.children.map(t).filter((e=>e))),(-1!==a.name.toLowerCase().indexOf(e.toLowerCase())||a.children.length>0)&&a};return t}renderTerms(e){const{terms:i=[]}=this.props;return e.map((e=>(0,t.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},(0,t.createElement)(Sr,{checked:-1!==i.indexOf(e.id),onChange:()=>{const t=parseInt(e.id,10);this.onChange(t)},label:(0,ma.unescape)(e.name)}),!!e.children.length&&(0,t.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},this.renderTerms(e.children)))))}render(){const{slug:e,taxonomy:i,instanceId:a,hasAssignAction:s}=this.props,{availableTermsTree:r,availableTerms:n,filteredTermsTree:o,filterValue:l}=this.state;var c,h;c=(0,Ui.__)("Parent Category"),h=(0,Ui.__)("Parent Term"),(0,ma.get)(i,["labels","parent_item"],"category"===e?c:h);const d=`editor-post-taxonomies__hierarchical-terms-filter-${a}`,u=(0,ma.get)(this.props.taxonomy,["labels","search_items"],(0,Ui.__)("Search Terms")),g=(0,ma.get)(this.props.taxonomy,["name"],(0,Ui.__)("Terms")),p=n.length>=8;return[(0,t.createElement)("label",{key:"monsterinsights-hierarchical-term-list-label",className:"components-base-control__label"},this.props.label),p&&(0,t.createElement)("div",{key:"monsterinsights-hierarchical-term-filter-label"},(0,t.createElement)("label",{htmlFor:d},u)),p&&(0,t.createElement)("input",{type:"search",id:d,value:l,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"monsterinsights-hierarchical-term-filter-input"}),(0,t.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list monsterinsights-hierarchical-terms",key:"monsterinsights-hierarchical-term-list",tabIndex:"0",role:"group","aria-label":g},this.renderTerms(""!==l?o:r))]}}const Or=Mr([Ar(((e,{slug:t})=>{const{getCurrentPost:i}=e("core/editor"),a=e("monsterinsights/v1/taxonomy").receiveTerms(t);return{hasAssignAction:!!a&&(0,ma.get)(i(),["_links","wp:action-assign-"+t],!1),taxonomy:a}})),kr,Lr,Er("editor.PostTaxonomyType")])(Hr),{__:Ir}=wp.i18n,{registerBlockType:zr}=wp.blocks,{apiFetch:Nr}=wp,{registerStore:Rr,withSelect:Br}=wp.data,{InspectorControls:Xr}=wp.blockEditor,{PanelBody:Yr,PanelRow:Vr,TextControl:Wr,ColorPalette:jr,RadioControl:Gr,ToggleControl:Zr,SelectControl:Ur,RangeControl:qr}=wp.components,$r=window.monsterinsights_gutenberg_tool_vars,Kr={setThemes:e=>({type:"SET_THEMES",themes:e}),receiveThemes:e=>({type:"RECEIVE_THEMES",path:e})};Rr("monsterinsights/v1/popular-posts/widget",{reducer:(e={themes:{}},t)=>"SET_THEMES"===t.type?{...e,themes:t.themes}:e,actions:Kr,selectors:{receiveThemes(e){const{themes:t}=e;return t}},controls:{RECEIVE_THEMES:e=>Nr({path:e.path})},resolvers:{*receiveThemes(e){const t=yield Kr.receiveThemes("/monsterinsights/v1/popular-posts/themes/widget");if(void 0!==t.themes){for(const e in t.themes)t.themes.hasOwnProperty(e)&&(t.themes[e].value=e);return Kr.setThemes(t)}}}}),zr("monsterinsights/popular-posts-widget",{title:Ir("Popular Posts","ga-premium"),description:Ir("Add popular posts from MonsterInsights","ga-premium"),category:"widgets",icon:wr.widgetpop,keywords:[Ir("Popular","ga-premium"),Ir("Posts","ga-premium"),Ir("Widget","ga-premium"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},label_color:{type:"string"},label_text:{type:"string"},label_background:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},meta_color:{type:"string"},meta_size:{type:"string"},meta_author:{type:"boolean"},meta_date:{type:"boolean"},meta_comments:{type:"boolean"},comments_color:{type:"string"},columns:{type:"number",default:1},widget_title:{type:"boolean"},widget_title_text:{type:"string"},post_count:{type:"number",default:5},categories:{type:"array",default:[]}},edit:Br((e=>({themes:e("monsterinsights/v1/popular-posts/widget").receiveThemes()})))((e=>{const{attributes:{theme:i,title_size:a,title_color:s,label_color:r,label_text:n,label_background:o,background_color:l,background_border:c,meta_color:h,meta_size:d,meta_author:u,meta_comments:g,meta_date:p,comments_color:f,columns:m,widget_title:x,widget_title_text:b,post_count:v,categories:y},themes:C,setAttributes:w}=e,S=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],k=void 0!==C.themes?C.themes:{},E=void 0===e.attributes.theme?C.selected:i,A=void 0!==E&&void 0!==k[E]?k[E]:{},P=void 0!==A.styles?A.styles:{};let L={};for(const t in P)if(P.hasOwnProperty(t))for(const i in P[t]){if(!P[t].hasOwnProperty(i))continue;const a=t+"_"+i;void 0===e.attributes[a]?L[a]=P[t][i]:L[a]=e.attributes[a],"on"===L[a]&&(L[a]=!0),"off"===L[a]&&(L[a]=!1)}const M=(e,t)=>{let i=[1,2,3,4,5,6,7,8,9,10];return 2===e&&(i=[2,4,6,8,10]),3===e&&(i=[3,6,9]),t&&(i=i.map((function(e){return{value:e,label:e}}))),i},T=(e,i)=>{const a=L[i];return(0,t.createElement)(qr,{key:"monsterinsights-popular-posts-input"+i,label:e,value:parseInt(a),min:1,max:100,onChange:e=>w({[i]:""===e?"":parseInt(e)})})},_=(e,i)=>{const a=L[i];return[(0,t.createElement)("label",{key:"monsterinsights-popular-posts-label"+i},e),(0,t.createElement)(jr,{key:"monsterinsights-popular-posts-input"+i,value:a,colors:S,onChange:e=>{w({[i]:e})}})]},F=(e,i)=>{if(e.length>0&&void 0!==e[i]){const a=e[i];return(0,t.createElement)("div",{className:"monsterinsights-widget-popular-posts-image"},(0,t.createElement)("img",{src:$r.vue_assets_path+"img/"+a}))}},D=()=>{if(void 0!==P.label)return(0,t.createElement)("span",{style:{color:L.label_color,backgroundColor:L.label_background},className:"monsterinsights-widget-popular-posts-label"},L.label_text)},H=()=>{if(void 0!==P.meta)return[(0,t.createElement)("div",{className:"monsterinsights-widget-popular-posts-meta",key:"monsterinsights-widget-popular-posts-meta-options",style:{color:L.meta_color,fontSize:L.meta_size+"px"}},O(),I(),N()),(0,t.createElement)("span",{key:"monsterinsights-widget-popular-posts-comments-options"},z())]},O=()=>{if(L.meta_author)return(0,t.createElement)("span",{className:"monsterinsights-widget-popular-posts-author"},"by Aazim Akhtar")},I=()=>{if(L.meta_author&&L.meta_date)return(0,t.createElement)("span",{dangerouslySetInnerHTML:{__html:P.meta.separator}})},z=()=>{if(void 0!==P.meta&&void 0!==P.meta.comments&&L.meta_comments){let e=void 0!==P.comments?L.comments_color:L.meta_color;return(0,t.createElement)("span",{className:"monsterinsights-widget-popular-posts-comments",style:{color:e,fontSize:L.meta_size+"px"}},wr.comments(e)," 24")}},N=()=>{if(L.meta_date)return(0,t.createElement)("span",{className:"monsterinsights-widget-popular-posts-date"},"Yesterday")},R=e=>{for(;e.length<=10;)e=e.concat(e);return e};return[(0,t.createElement)(Xr,{key:"monsterinsights-popular-posts-widget-inspector-controls"},(0,t.createElement)(Yr,{title:Ir("Theme","ga-premium"),key:"monsterinsights-popular-posts-widget-theme"},(0,t.createElement)(Vr,{key:"monsterinsights-popular-posts-widget-theme-row"},(0,t.createElement)(or,{id:"monsterinsights-popular-posts-widget-theme",options:k,selected:E,icons:wr,onChange:e=>{w({theme:e})}}))),(()=>{if(void 0===P.title)return;let e=[];return void 0!==P.title.size&&e.push(T(Ir("Title Font Size","ga-premium"),"title_size")),void 0!==P.title.color&&e.push(_(Ir("Title Color","ga-premium"),"title_color")),(0,t.createElement)(Yr,{title:Ir("Title Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-title"},e)})(),(()=>{if(void 0===P.background||void 0===P.background.color)return;let e=[];return void 0!==P.background.color&&e.push(_(Ir("Background Color","ga-premium"),"background_color")),(0,t.createElement)(Yr,{title:Ir("Background Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-background"}," ",e," ")})(),(()=>{if(void 0===P.label)return;let e=[];return void 0!==P.label.text&&e.push(((e,i)=>{const a=L[i];return(0,t.createElement)(Wr,{key:"monsterinsights-popular-posts-input"+i,label:e,type:"text",value:a,onChange:e=>w({[i]:e})})})(Ir("Label Text","ga-premium"),"label_text")),void 0!==P.label.color&&e.push(_(Ir("Label Color","ga-premium"),"label_color")),void 0!==P.label.background&&e.push(_(Ir("Label Background","ga-premium"),"label_background")),(0,t.createElement)(Yr,{title:Ir("Label Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-label"}," ",e," ")})(),(()=>{let e=[];if(void 0!==P.border&&void 0!==P.border.color&&e.push(_(Ir("Border Color","ga-premium"),"borderColor")),void 0!==P.border&&void 0!==P.border.color2&&e.push(_(Ir("Bottom Border Color","ga-premium"),"borderColor2")),void 0!==P.background&&void 0!==P.background.border&&e.push(_(Ir("Border Color","ga-premium"),"background_border")),0!==e.length)return(0,t.createElement)(Yr,{title:Ir("Border Settings","ga-premium"),key:"monsterinsights-popular-posts-inline-border"}," ",e," ")})(),(()=>{if(void 0===P.meta)return;let e=[];return void 0!==P.meta.size&&e.push(T(Ir("Meta Font Size","ga-premium"),"meta_size")),void 0!==P.meta.color&&e.push(_(Ir("Meta Color","ga-premium"),"meta_color")),(0,t.createElement)(Yr,{title:Ir("Meta Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-meta-styles"},e)})(),(()=>{if(void 0!==P.comments)return(0,t.createElement)(Yr,{title:Ir("Comment Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-comment-styles"},_(Ir("Comment Color","ga-premium"),"comments_color"))})(),(0,t.createElement)(Yr,{title:Ir("Wide-Layout Options","ga-premium"),key:"monsterinsights-popular-posts-widget-columns"},(0,t.createElement)(Gr,{label:Ir("Choose Layout","ga-premium"),help:Ir("Adjust the number of columns displayed when the widget is placed in a wide container.","ga-premium"),className:"monsterinsights-wide-column-options monsterinsights-popular-posts-widget-columns-control",key:"monsterinsights-popular-posts-widget-columns-control",options:[{value:1,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-one"},(0,t.createElement)("span",null),(0,t.createElement)("span",null))},{value:2,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-two"},(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null))},{value:3,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-three"},(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null))}],selected:m,onChange:e=>{w({columns:""===e?"":parseInt(e)});const t=M(parseInt(e));-1===t.indexOf(v)&&w({post_count:parseInt(t[0])})}}),(0,t.createElement)(Ur,{label:Ir("Post Count","ga-premium"),help:Ir("Number of posts displayed.","ga-premium"),options:M(m,!0),value:v,key:"monsterinsights-popular-posts-widget-post-count",onChange:e=>{w({post_count:parseInt(e)})}})),(()=>{if(void 0!==P.meta)return(0,t.createElement)(Yr,{title:Ir("Display Options","ga-premium"),key:"monsterinsights-popular-posts-widget-meta-options"},(()=>{if(void 0!==P.meta.author)return(0,t.createElement)(Zr,{label:Ir("Display Author","ga-premium"),checked:L.meta_author,onChange:e=>{w({meta_author:e})}})})(),(()=>{if(void 0!==P.meta.date)return(0,t.createElement)(Zr,{label:Ir("Display Date","ga-premium"),checked:L.meta_date,onChange:e=>{w({meta_date:e})}})})(),(()=>{if(void 0!==P.meta.comments)return(0,t.createElement)(Zr,{label:Ir("Display Comments","ga-premium"),checked:L.meta_comments,onChange:e=>{w({meta_comments:e})}})})())})(),(0,t.createElement)(Yr,{title:Ir("Behavior Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-behavior-options"},(0,t.createElement)(Zr,{label:Ir("Display Widget Title","ga-premium"),checked:x,onChange:e=>{w({widget_title:e})}}),(0,t.createElement)(Wr,{key:"monsterinsights-popular-posts-input-widget-title-text",label:Ir("Widget Title","ga-premium"),type:"text",value:b,onChange:e=>w({widget_title_text:e})}),(0,t.createElement)(Or,{label:Ir("Only Show Posts From These Categories","ga-premium"),slug:"category",onUpdateTerms:e=>{w({categories:e})},terms:y}))),(0,t.createElement)("div",{key:"monsterinsights-popular-posts-widget-preview"},(0,t.createElement)("div",{className:"monsterinsights-widget-popular-posts-widget monsterinsights-widget-popular-posts-"+E+" monsterinsights-widget-popular-posts-columns-"+m},(()=>{if(x)return(0,t.createElement)("h2",{className:"monsterinsights-widget-popular-posts-widget-title"},b)})(),(0,t.createElement)("div",{className:"monsterinsights-widget-popular-posts-text"},(()=>{if(void 0!==A.list&&void 0!==A.list.items){let e=R(A.list.items),i=void 0!==A.list.images?R(A.list.images):[];const a=[];for(const s in e){if(parseInt(s)===parseInt(v))break;a.push((0,t.createElement)("li",{key:"monsterinsights-popular-posts-preview-list-item-"+s,style:{backgroundColor:L.background_color,borderColor:L.background_border}},F(i,s),(0,t.createElement)("div",{className:"monsterinsights-widget-popular-posts-text"},D(),(0,t.createElement)("a",{className:"monsterinsights-widget-popular-posts-title",style:{color:L.title_color,fontSize:L.title_size+"px"}},e[s]),H())))}return(0,t.createElement)("ul",{className:"monsterinsights-widget-popular-posts-list"},a)}})())))]})),save:e=>null});let Jr={};Jr.productspop=(0,t.createElement)("svg",{width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0H3.72076L4.72076 3H20.2198L17.8198 15H6.25597L3.04653 4.30185L2.27924 2H0V0ZM12.9405 7.70557L12 5L11.0595 7.70557L8.19577 7.76393L10.4783 9.49443L9.64886 12.2361L12 10.6L14.3511 12.2361L13.5217 9.49443L15.8042 7.76393L12.9405 7.70557ZM10 17.5C10 18.3284 9.32843 19 8.5 19C7.67157 19 7 18.3284 7 17.5C7 16.6716 7.67157 16 8.5 16C9.32843 16 10 16.6716 10 17.5ZM15.5 19C16.3284 19 17 18.3284 17 17.5C17 16.6716 16.3284 16 15.5 16C14.6716 16 14 16.6716 14 17.5C14 18.3284 14.6716 19 15.5 19Z",fill:"#555D66"})),Jr.alpha=(0,t.createElement)("svg",{width:"74",height:"39",viewBox:"0 0 74 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"31",y:"12",width:"43",height:"7",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"31",y:"23",width:"32",height:"7",rx:"2",fill:"#4296F0"}),(0,t.createElement)("rect",{x:"31",y:"34",width:"43",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{y:"12",width:"27",height:"27",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{width:"74",height:"4",fill:"#338EEF"})),Jr.beta=(0,t.createElement)("svg",{width:"74",height:"65",viewBox:"0 0 74 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"65",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"8",y:"41",width:"58",height:"7",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"52",width:"42",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"54",y:"52",width:"12",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"8",width:"58",height:"29",rx:"2",fill:"#338EEF"})),Jr.charlie=(0,t.createElement)("svg",{width:"74",height:"50",viewBox:"0 0 74 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"50",rx:"5",fill:"#338EEF"}),(0,t.createElement)("path",{d:"M54.0625 42H19.9375C18.8438 42 17.9141 41.6111 17.1484 40.8333C16.3828 40.0556 16 39.1111 16 38V14C16 12.8889 16.3828 11.9444 17.1484 11.1667C17.9141 10.3889 18.8438 10 19.9375 10H54.0625C55.1562 10 56.0859 10.3889 56.8516 11.1667C57.6172 11.9444 58 12.8889 58 14V38C58 39.1111 57.6172 40.0556 56.8516 40.8333C56.0859 41.6111 55.1562 42 54.0625 42ZM28.3867 16.0833C27.5117 15.1389 26.4453 14.6667 25.1875 14.6667C23.9297 14.6667 22.8359 15.1389 21.9062 16.0833C21.0312 16.9722 20.5938 18.0556 20.5938 19.3333C20.5938 20.6111 21.0312 21.7222 21.9062 22.6667C22.8359 23.5556 23.9297 24 25.1875 24C26.4453 24 27.5117 23.5556 28.3867 22.6667C29.3164 21.7222 29.7812 20.6111 29.7812 19.3333C29.7812 18.0556 29.3164 16.9722 28.3867 16.0833ZM21.25 36.6667H52.75V27.3333L45.5312 20C45.0938 19.5556 44.6562 19.5556 44.2188 20L33.0625 31.3333L28.4688 26.6667C28.0312 26.2222 27.5938 26.2222 27.1562 26.6667L21.25 32.6667V36.6667Z",fill:"#59A3F2"}),(0,t.createElement)("rect",{x:"8",y:"26",width:"34",height:"7",rx:"2",fill:"#F1F7FE"}),(0,t.createElement)("rect",{x:"8",y:"17",width:"23",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"37",width:"10",height:"5",rx:"2",fill:"#A0CBF8"})),Jr.delta=(0,t.createElement)("svg",{width:"74",height:"78",viewBox:"0 0 74 78",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"74",height:"78",rx:"5",fill:"#E7F2FD"}),(0,t.createElement)("rect",{x:"8",y:"45",width:"58",height:"7",rx:"2",fill:"#338EEF"}),(0,t.createElement)("rect",{x:"8",y:"56",width:"29",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("rect",{x:"8",y:"65",width:"14",height:"5",rx:"2",fill:"#A0CBF8"}),(0,t.createElement)("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H71C72.6569 0 74 1.34315 74 3V37H0V3Z",fill:"#338EEF"})),Jr.star=(e="#EB5757")=>(0,t.createElement)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:e,xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M6.07031 0.921875C6.21094 0.640625 6.4375 0.5 6.75 0.5C7.0625 0.5 7.28906 0.640625 7.42969 0.921875L8.95312 4.01562L12.375 4.53125C12.6875 4.5625 12.8906 4.72656 12.9844 5.02344C13.0781 5.32031 13.0156 5.57812 12.7969 5.79688L10.3125 8.21094L10.8984 11.6328C10.9453 11.9297 10.8438 12.1641 10.5938 12.3359C10.3438 12.5234 10.0859 12.5469 9.82031 12.4062L6.75 10.8125L3.67969 12.4062C3.41406 12.5625 3.15625 12.5469 2.90625 12.3594C2.65625 12.1719 2.55469 11.9297 2.60156 11.6328L3.1875 8.21094L0.703125 5.79688C0.484375 5.57812 0.421875 5.32031 0.515625 5.02344C0.609375 4.72656 0.8125 4.5625 1.125 4.53125L4.54688 4.01562L6.07031 0.921875Z"})),Jr.starOutline=(e="#EB5757")=>(0,t.createElement)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:e,xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M12.375 4.53125C12.6875 4.5625 12.8906 4.72656 12.9844 5.02344C13.0781 5.32031 13.0156 5.57812 12.7969 5.79688L10.3125 8.21094L10.8984 11.6328C10.9453 11.9297 10.8438 12.1641 10.5938 12.3359C10.3438 12.5234 10.0859 12.5469 9.82031 12.4062L6.75 10.8125L3.67969 12.4062C3.41406 12.5625 3.15625 12.5469 2.90625 12.3594C2.65625 12.1719 2.55469 11.9297 2.60156 11.6328L3.1875 8.21094L0.703125 5.79688C0.484375 5.57812 0.421875 5.32031 0.515625 5.02344C0.609375 4.72656 0.8125 4.5625 1.125 4.53125L4.54688 4.01562L6.07031 0.921875C6.21094 0.640625 6.4375 0.5 6.75 0.5C7.0625 0.5 7.28906 0.640625 7.42969 0.921875L8.95312 4.01562L12.375 4.53125ZM9.11719 7.8125L11.4609 5.51562L8.20312 5.04688L6.75 2.09375L5.29688 5.04688L2.03906 5.51562L4.38281 7.8125L3.84375 11.0703L6.75 9.52344L9.65625 11.0703L9.11719 7.8125Z"}));const Qr=Jr,{FormTokenField:en}=wp.components,{__:tn}=wp.i18n,{registerBlockType:an}=wp.blocks,{apiFetch:sn}=wp,{registerStore:rn,withSelect:nn}=wp.data,{InspectorControls:on}=wp.blockEditor,{PanelBody:ln,PanelRow:cn,TextControl:hn,ColorPalette:dn,RadioControl:un,ToggleControl:gn,SelectControl:pn,RangeControl:fn}=wp.components,mn=window.monsterinsights_gutenberg_tool_vars,xn={setThemes:e=>({type:"SET_THEMES",themes:e}),receiveThemes:e=>({type:"RECEIVE_THEMES",path:e})},bn=(rn("monsterinsights/v1/popular-posts/products",{reducer:(e={themes:{}},t)=>"SET_THEMES"===t.type?{...e,themes:t.themes}:e,actions:xn,selectors:{receiveThemes(e){const{themes:t}=e;return t}},controls:{RECEIVE_THEMES:e=>sn({path:e.path})},resolvers:{*receiveThemes(e){const t=yield xn.receiveThemes("/monsterinsights/v1/popular-posts/themes/products");if(void 0!==t.themes){for(const e in t.themes)t.themes.hasOwnProperty(e)&&(t.themes[e].value=e);return xn.setThemes(t)}}}}),an("monsterinsights/popular-posts-products",{title:tn("Popular Products","ga-premium"),description:tn("Add popular products from MonsterInsights","ga-premium"),category:"widgets",icon:Qr.productspop,keywords:[tn("Popular","ga-premium"),tn("Products","ga-premium"),tn("Widget","ga-premium"),"MonsterInsights"],example:{},attributes:{theme:{type:"string"},title_size:{type:"number"},title_color:{type:"string"},background_color:{type:"string"},background_border:{type:"string"},meta_rating:{type:"boolean"},meta_price:{type:"boolean"},meta_image:{type:"boolean"},columns:{type:"number",default:1},widget_title:{type:"boolean"},widget_title_text:{type:"string"},post_count:{type:"number",default:5},categories:{type:"array",default:[]},products:{type:"array",default:[]},rating_color:{type:"string"},price_color:{type:"string"},price_size:{type:"number"}},edit:nn((e=>({themes:e("monsterinsights/v1/popular-posts/products").receiveThemes()})))((e=>{const{attributes:{theme:i,title_size:a,title_color:s,label_color:r,label_text:n,label_background:o,background_color:l,background_border:c,meta_rating:h,meta_price:d,meta_image:u,columns:g,widget_title:p,widget_title_text:f,post_count:m,categories:x,products:b,rating_color:v,price_color:y,price_size:C},themes:w,setAttributes:S}=e,k=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],E=void 0!==w.themes?w.themes:{},A=void 0===e.attributes.theme?w.selected:i,P=void 0!==A&&void 0!==E[A]?E[A]:{},L=void 0!==P.styles?P.styles:{};let M={};for(const t in L)if(L.hasOwnProperty(t))for(const i in L[t]){if(!L[t].hasOwnProperty(i))continue;const a=t+"_"+i;void 0===e.attributes[a]?M[a]=L[t][i]:M[a]=e.attributes[a],"on"===M[a]&&(M[a]=!0),"off"===M[a]&&(M[a]=!1)}const T=()=>{if(void 0===L.title)return;let e=[];return void 0!==L.title.size&&e.push(R(tn("Title Font Size","ga-premium"),"title_size")),void 0!==L.title.color&&e.push(B(tn("Title Color","ga-premium"),"title_color")),(0,t.createElement)(ln,{title:tn("Title Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-title"},e)},_=()=>{if(void 0===L.price)return;let e=[];return void 0!==L.price.size&&e.push(R(tn("Price Font Size","ga-premium"),"price_size")),void 0!==L.price.color&&e.push(B(tn("Price Color","ga-premium"),"price_color")),(0,t.createElement)(ln,{title:tn("Price Settings","ga-premium"),key:"monsterinsights-popular-posts-products-price-styles"},e)},F=()=>{if(void 0!==L.rating)return(0,t.createElement)(ln,{title:tn("Rating Settings","ga-premium"),key:"monsterinsights-popular-posts-products-rating-styles"},B(tn("Rating Color","ga-premium"),"rating_color"))},D=(e,t)=>{let i=[1,2,3,4,5,6,7,8,9,10];return 2===e&&(i=[2,4,6,8,10]),3===e&&(i=[3,6,9]),t&&(i=i.map((function(e){return{value:e,label:e}}))),i},H=()=>{if(void 0!==L.meta)return(0,t.createElement)(ln,{title:tn("Display Options","ga-premium"),key:"monsterinsights-popular-posts-widget-meta-options"},O(),I(),z())},O=()=>{if(void 0!==L.meta.price)return(0,t.createElement)(gn,{label:tn("Display Price","ga-premium"),checked:M.meta_price,onChange:e=>{S({meta_price:e})}})},I=()=>{if(void 0!==L.meta.rating)return(0,t.createElement)(gn,{label:tn("Display Rating","ga-premium"),checked:M.meta_rating,onChange:e=>{S({meta_rating:e})}})},z=()=>{if(void 0!==L.meta.image)return(0,t.createElement)(gn,{label:tn("Display Image","ga-premium"),checked:M.meta_image,onChange:e=>{S({meta_image:e})}})},N=()=>{if(void 0===L.background||void 0===L.background.color)return;let e=[];return void 0!==L.background.color&&e.push(B(tn("Background Color","ga-premium"),"background_color")),(0,t.createElement)(ln,{title:tn("Background Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-background"}," ",e," ")},R=(e,i)=>{const a=M[i];return(0,t.createElement)(fn,{key:"monsterinsights-popular-posts-input"+i,label:e,type:"number",value:parseInt(a),min:1,max:100,onChange:e=>S({[i]:""===e?"":parseInt(e)})})},B=(e,i)=>{const a=M[i];return[(0,t.createElement)("label",{key:"monsterinsights-popular-posts-label"+i},e),(0,t.createElement)(dn,{key:"monsterinsights-popular-posts-input"+i,value:a,colors:k,onChange:e=>{S({[i]:e})}})]},X=(e,i)=>{let a;if(a=void 0!==P.image||M.meta_image,e.length>0&&void 0!==e[i]&&a){const a=e[i];return(0,t.createElement)("div",{className:"monsterinsights-products-popular-posts-image"},(0,t.createElement)("img",{src:mn.vue_assets_path+"img/"+a}))}},Y=(e,i)=>{if(e.length>0&&void 0!==e[i]&&M.meta_price){const a=e[i];return(0,t.createElement)("span",{className:"monsterinsights-products-popular-posts-price",style:{color:M.price_color,fontSize:M.price_size+"px"}},a)}},V=()=>{if(void 0!==L.meta&&void 0!==L.meta.rating&&M.meta_rating)return(0,t.createElement)("span",{className:"monsterinsights-products-popular-posts-rating"},Qr.star(M.rating_color),Qr.star(M.rating_color),Qr.star(M.rating_color),Qr.star(M.rating_color),Qr.starOutline(M.rating_color))},W=e=>{for(;e.length<=10;)e=e.concat(e);return e};return[(0,t.createElement)(on,{key:"monsterinsights-popular-posts-widget-inspector-controls"},"pro"!==mn.license_type&&"master"!==mn.license_type?(0,t.createElement)("div",{className:"monsterinsights-popular-posts-no-woocoomerce"},(0,t.createElement)("h3",null,tn("This Block requires MonsterInsights Pro.","ga-premium")),(0,t.createElement)("p",null,tn("To use the Popular Products Block, you must have a MonsterInsights Pro license.","ga-premium")),(0,t.createElement)("p",null,(0,t.createElement)("a",{target:"_blank",href:mn.upgrade_url},tn("Upgrade to Pro and Unlock Popular Products","ga-premium")))):mn.is_woocommerce_installed?[(0,t.createElement)(ln,{title:tn("Theme","ga-premium"),key:"monsterinsights-popular-posts-widget-theme"},(0,t.createElement)(cn,{key:"monsterinsights-popular-posts-widget-theme-row"},(0,t.createElement)(or,{id:"monsterinsights-popular-posts-products-theme",options:E,className:"monsterinsights-popular-posts-products-theme-picker",selected:A,icons:Qr,onChange:e=>{S({theme:e})}}))),T(),N(),_(),F(),(0,t.createElement)(ln,{title:tn("Wide-Layout Options","ga-premium"),key:"monsterinsights-popular-posts-widget-columns"},(0,t.createElement)(un,{label:tn("Choose Layout","ga-premium"),help:tn("Adjust the number of columns displayed when the widget is placed in a wide container.","ga-premium"),className:"monsterinsights-wide-column-options monsterinsights-popular-posts-widget-columns-control",key:"monsterinsights-popular-posts-widget-columns-control",options:[{value:1,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-one"},(0,t.createElement)("span",null),(0,t.createElement)("span",null))},{value:2,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-two"},(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null))},{value:3,label:(0,t.createElement)("span",{className:"monsterinsights-wide-column monsterinsights-wide-column-three"},(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null),(0,t.createElement)("span",null))}],selected:g,onChange:e=>{S({columns:""===e?"":parseInt(e)});const t=D(parseInt(e));-1===t.indexOf(m)&&S({post_count:parseInt(t[0])})}}),(0,t.createElement)(pn,{label:tn("Products Count","ga-premium"),help:tn("Number of products displayed.","ga-premium"),options:D(g,!0),value:m,key:"monsterinsights-popular-posts-widget-post-count",onChange:e=>{S({post_count:parseInt(e)})}})),H(),(0,t.createElement)(ln,{title:tn("Behavior Settings","ga-premium"),key:"monsterinsights-popular-posts-widget-behavior-options"},(0,t.createElement)(gn,{label:tn("Display Widget Title","ga-premium"),checked:p,onChange:e=>{S({widget_title:e})}}),(0,t.createElement)(hn,{key:"monsterinsights-popular-posts-input-widget-title-text",label:tn("Widget Title","ga-premium"),type:"text",value:f,onChange:e=>S({widget_title_text:e})}),(0,t.createElement)("label",{className:"components-base-control__label"},tn("Only Show Posts From These Categories","ga-premium")),(0,t.createElement)(Or,{slug:"product_cat",onUpdateTerms:e=>{S({categories:e})},terms:x}),(0,t.createElement)(en,{label:tn("Exclude These Product IDs","ga-premium"),value:b,onChange:e=>{let t,i=[];for(t in e)e.hasOwnProperty(t)&&(isNaN(e[t])||i.push(e[t]));S({products:i})}}))]:(0,t.createElement)("div",{className:"monsterinsights-popular-posts-no-woocoomerce"},(0,t.createElement)("h3",null,tn("This Block requires WooCommerce.","ga-premium")),(0,t.createElement)("p",null,tn("To use the Popular Products Block, you must have WooCommerce installed and activated.","ga-premium")),(0,t.createElement)("p",null,(0,t.createElement)("a",{href:mn.install_woocommerce_url},tn("Install WooCommerce","ga-premium"))))),"pro"!==mn.license_type&&"master"!==mn.license_type?(0,t.createElement)("div",{className:"monsterinsights-popular-posts-no-pro"},(0,t.createElement)("p",null,(0,t.createElement)("b",null,tn("This Block requires MonsterInsights Pro.","ga-premium")))):mn.is_woocommerce_installed?(0,t.createElement)("div",{key:"monsterinsights-popular-posts-widget-preview"},(()=>{if(p)return(0,t.createElement)("h2",{className:"monsterinsights-products-popular-posts-widget-title"},f)})(),(0,t.createElement)("div",{className:"monsterinsights-products-popular-posts-widget monsterinsights-products-popular-posts-"+A+" monsterinsights-products-popular-posts-columns-"+g},(()=>{if(void 0!==P.list&&void 0!==P.list.items){let e=W(P.list.items),i=void 0!==P.list.images?W(P.list.images):[],a=void 0!==P.list.prices?W(P.list.prices):[];const s=[];for(const r in e){if(parseInt(r)===parseInt(m))break;s.push((0,t.createElement)("li",{key:"monsterinsights-popular-posts-preview-list-item-"+r,style:{backgroundColor:M.background_color,borderColor:M.background_border}},X(i,r),(0,t.createElement)("div",{className:"monsterinsights-products-popular-posts-text"},(0,t.createElement)("a",{className:"monsterinsights-products-popular-posts-title",style:{color:M.title_color,fontSize:M.title_size+"px"}},e[r]),Y(a,r),V())))}return(0,t.createElement)("ul",{className:"monsterinsights-products-popular-posts-list"},s)}})())):(0,t.createElement)("div",{key:"monsterinsights-popular-products-no-woocommerce"},(0,t.createElement)("p",null,(0,t.createElement)("b",null,tn("This Block requires WooCommerce.","ga-premium"))))]})),save:e=>null}),window.wp.blocks),vn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"monsterinsights/site-insights","title":"Site Insights","category":"widgets","description":"Display your analytics stats on your website.","textdomain":"default","attributes":{"type":{"type":"string","default":""},"metric":{"type":"string","default":"sessions"},"primaryColor":{"type":"string","default":"#4CABFF"},"secondaryColor":{"type":"string","default":"#E6F1FD"},"textColor":{"type":"string","default":"#393F4C"},"backgroundColor":{"type":"string","default":"#FFFFFF"},"withComparison":{"type":"boolean","default":true}},"supports":{"inserter":false,"reusable":false,"html":false,"anchor":true}}'),yn=window.wp.primitives;let Cn={};Cn.sessions=(0,t.createElement)(yn.SVG,{width:"71",height:"59",viewBox:"0 0 71 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.G,{clipPath:"url(#clip0_849_3208)"},(0,t.createElement)(yn.Path,{d:"M68.84 14.4392H2.65731C1.55472 14.4392 0.660889 15.333 0.660889 16.4356V43.8335C0.660889 44.9361 1.55472 45.8299 2.65731 45.8299H68.84C69.9426 45.8299 70.8364 44.9361 70.8364 43.8335V16.4356C70.8364 15.333 69.9426 14.4392 68.84 14.4392Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M69.4759 0.587646H2.02141C1.27002 0.587646 0.660889 1.19567 0.660889 1.94571C0.660889 2.69574 1.27002 3.30377 2.02141 3.30377H69.4759C70.2273 3.30377 70.8364 2.69574 70.8364 1.94571C70.8364 1.19567 70.2273 0.587646 69.4759 0.587646Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M53.9777 6.89722H2.02141C1.27002 6.89722 0.660889 7.50524 0.660889 8.25528C0.660889 9.00531 1.27002 9.61334 2.02141 9.61334H53.9777C54.7291 9.61334 55.3382 9.00531 55.3382 8.25528C55.3382 7.50524 54.7291 6.89722 53.9777 6.89722Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M62.2541 25.2742H33.9542C33.377 25.2742 32.9091 25.7409 32.9091 26.3167C32.9091 26.8925 33.377 27.3593 33.9542 27.3593H62.2541C62.8312 27.3593 63.2991 26.8925 63.2991 26.3167C63.2991 25.7409 62.8312 25.2742 62.2541 25.2742Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M62.2541 35.5818H33.9542C33.377 35.5818 32.9091 36.0486 32.9091 36.6244C32.9091 37.2002 33.377 37.6669 33.9542 37.6669H62.2541C62.8312 37.6669 63.2991 37.2002 63.2991 36.6244C63.2991 36.0486 62.8312 35.5818 62.2541 35.5818Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M62.2541 30.4304H33.9542C33.377 30.4304 32.9091 30.8972 32.9091 31.473C32.9091 32.0488 33.377 32.5156 33.9542 32.5156H62.2541C62.8312 32.5156 63.2991 32.0488 63.2991 31.473C63.2991 30.8972 62.8312 30.4304 62.2541 30.4304Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M49.3095 56.0735H1.92773C1.17633 56.0735 0.5672 56.6815 0.5672 57.4315C0.5672 58.1816 1.17633 58.7896 1.92773 58.7896H49.3095C50.0609 58.7896 50.67 58.1816 50.67 57.4315C50.67 56.6815 50.0609 56.0735 49.3095 56.0735Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M66.0055 49.7637H2.02141C1.27002 49.7637 0.660889 50.3717 0.660889 51.1217C0.660889 51.8718 1.27002 52.4798 2.02141 52.4798H66.0055C66.7569 52.4798 67.3661 51.8718 67.3661 51.1217C67.3661 50.3717 66.7569 49.7637 66.0055 49.7637Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M24.4586 30.5406C24.3487 30.8408 24.1753 31.0692 23.8327 31.1199C23.4225 31.1834 23.0292 30.8789 23.0038 30.4644C22.9912 30.2699 22.9912 30.0754 22.9954 29.8808C23.0081 29.5002 23.2618 29.2253 23.634 29.1704C23.9681 29.1238 24.2979 29.3395 24.4121 29.6821C24.4248 29.7201 24.4375 29.7582 24.4544 29.8005V30.5448L24.4586 30.5406Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M19.5911 23.8757C19.0752 23.529 18.5254 23.2498 17.946 23.0426C16.893 22.6662 15.8103 22.5224 14.6981 22.6239C13.2898 22.755 12.0042 23.2245 10.8623 24.0661C9.43715 25.1191 8.48138 26.4978 8.00773 28.2063C7.04774 31.6487 8.69284 35.3788 11.8815 36.9985C12.5455 37.3368 13.2433 37.5694 13.9707 37.7132C14.4274 37.8062 14.6854 38.1742 14.5924 38.5886C14.5035 38.9904 14.1314 39.2399 13.7212 39.1553C10.5832 38.504 8.32491 36.7236 7.01813 33.8013C6.29496 32.1816 6.08774 30.4688 6.40492 28.718C6.91663 25.8676 8.41795 23.6643 10.9554 22.2898C14.0426 20.6194 17.1552 20.7166 20.1874 22.5224C20.2635 22.569 20.3354 22.6155 20.4242 22.6705C20.5849 22.4379 20.7456 22.2095 20.9021 21.9811C20.9444 21.9219 20.9825 21.8627 21.029 21.8077C21.177 21.6386 21.325 21.6555 21.4011 21.8712C21.4815 22.0995 21.5407 22.3364 21.6041 22.569C21.7564 23.1145 21.9086 23.6601 22.0609 24.2098C22.1793 24.6327 22.027 24.8315 21.5872 24.8653C20.8514 24.9245 20.1155 24.9964 19.3796 25.0599C19.2401 25.0726 19.0794 25.1275 18.9863 24.9838C18.8891 24.8357 19.0202 24.7173 19.0963 24.6031C19.257 24.3621 19.4219 24.1253 19.5953 23.88L19.5911 23.8757Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M15.5098 27.424C15.5098 28.2529 15.5098 29.0818 15.5098 29.9107C15.5098 30.0375 15.5521 30.0967 15.662 30.1517C17.1718 30.9256 18.6773 31.708 20.1829 32.4862C20.5085 32.6553 20.6354 32.8879 20.5635 33.1839C20.4831 33.5223 20.1406 33.7168 19.8107 33.6069C19.7431 33.5857 19.6796 33.5519 19.6162 33.518C17.9034 32.6342 16.1949 31.7461 14.4821 30.8664C14.3679 30.8072 14.3341 30.7438 14.3341 30.6211C14.3341 28.7392 14.3341 26.8573 14.3341 24.9754C14.3341 24.5778 14.5498 24.3241 14.8923 24.3072C15.2476 24.2903 15.5098 24.5525 15.5098 24.9331C15.5098 25.762 15.5098 26.5909 15.5098 27.4198V27.424Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M22.0397 34.4695C22.3357 34.516 22.5472 34.6386 22.6825 34.8797C22.822 35.125 22.822 35.383 22.6656 35.6198C22.5387 35.8101 22.3907 35.9919 22.2342 36.1569C21.9847 36.4148 21.5829 36.436 21.2954 36.2203C21.012 36.0089 20.9063 35.6029 21.0924 35.3026C21.2319 35.0785 21.4011 34.867 21.5914 34.6852C21.7056 34.5752 21.8874 34.5414 22.0397 34.4737V34.4695Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M17.2776 37.603C17.7344 37.603 18.0389 37.8525 18.0981 38.1951C18.1615 38.5503 17.9712 38.9013 17.6286 39.0113C17.4045 39.0832 17.1719 39.1339 16.9393 39.1635C16.5883 39.2058 16.2669 38.9606 16.1781 38.6095C16.0935 38.2712 16.2627 37.9033 16.5883 37.7806C16.842 37.6876 17.1127 37.6453 17.2776 37.6073V37.603Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M23.2406 33.9155C22.6951 33.9155 22.3483 33.4715 22.4752 32.9978C22.5301 32.799 22.602 32.6045 22.6824 32.4142C22.8304 32.0716 23.2152 31.9025 23.5663 32.0167C23.9257 32.1309 24.1456 32.503 24.0526 32.8709C23.9976 33.0866 23.9215 33.2981 23.8327 33.5053C23.71 33.7802 23.4817 33.9071 23.2449 33.9197L23.2406 33.9155Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M23.2196 28.312C22.9828 28.2993 22.7544 28.1597 22.636 27.8764C22.5556 27.6861 22.4837 27.4915 22.4287 27.2928C22.3273 26.9418 22.5133 26.5781 22.8474 26.4343C23.1773 26.2989 23.5791 26.4089 23.7398 26.7261C23.8624 26.9629 23.9639 27.2251 24.0189 27.4873C24.1119 27.9187 23.7355 28.3204 23.2196 28.3077V28.312Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M19.9717 36.4402C20.2846 36.4571 20.5553 36.6432 20.661 36.9308C20.7668 37.2141 20.6949 37.5482 20.4538 37.7343C20.2635 37.8781 20.0563 38.0092 19.8364 38.1107C19.4811 38.2756 19.0921 38.136 18.906 37.8062C18.7241 37.4721 18.8172 37.0788 19.1386 36.8546C19.2993 36.7447 19.4642 36.639 19.6376 36.5501C19.7391 36.4952 19.8575 36.4782 19.9675 36.4444L19.9717 36.4402Z",fill:"#54A0DE"})),(0,t.createElement)(yn.Defs,null,(0,t.createElement)("clipPath",{id:"clip0_849_3208"},(0,t.createElement)(yn.Rect,{width:"70.2692",height:"58.2068",fill:"white",transform:"translate(0.567291 0.587646)"})))),Cn.pageviews=(0,t.createElement)(yn.SVG,{width:"71",height:"59",viewBox:"0 0 71 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.G,{clipPath:"url(#clip0_849_3229)"},(0,t.createElement)(yn.Path,{d:"M68.9982 14.0337H2.81558C1.71298 14.0337 0.819153 14.9275 0.819153 16.0301V43.4279C0.819153 44.5305 1.71298 45.4244 2.81558 45.4244H68.9982C70.1008 45.4244 70.9947 44.5305 70.9947 43.4279V16.0301C70.9947 14.9275 70.1008 14.0337 68.9982 14.0337Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M69.6341 0.181885H2.17968C1.42828 0.181885 0.819153 0.789909 0.819153 1.53995C0.819153 2.28998 1.42828 2.89801 2.17968 2.89801H69.6341C70.3855 2.89801 70.9947 2.28998 70.9947 1.53995C70.9947 0.789909 70.3855 0.181885 69.6341 0.181885Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M54.136 6.4917H2.17968C1.42828 6.4917 0.819153 7.09972 0.819153 7.84976C0.819153 8.5998 1.42828 9.20782 2.17968 9.20782H54.136C54.8874 9.20782 55.4965 8.5998 55.4965 7.84976C55.4965 7.09972 54.8874 6.4917 54.136 6.4917Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M62.4126 26.106H34.1127C33.5355 26.106 33.0676 26.5727 33.0676 27.1485C33.0676 27.7243 33.5355 28.1911 34.1127 28.1911H62.4126C62.9897 28.1911 63.4576 27.7243 63.4576 27.1485C63.4576 26.5727 62.9897 26.106 62.4126 26.106Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M53.4016 31.2622H34.1127C33.5355 31.2622 33.0676 31.729 33.0676 32.3048C33.0676 32.8806 33.5355 33.3474 34.1127 33.3474H53.4016C53.9787 33.3474 54.4466 32.8806 54.4466 32.3048C54.4466 31.729 53.9787 31.2622 53.4016 31.2622Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M49.468 55.668H2.08623C1.33484 55.668 0.725708 56.276 0.725708 57.026C0.725708 57.7761 1.33484 58.3841 2.08623 58.3841H49.468C50.2194 58.3841 50.8285 57.7761 50.8285 57.026C50.8285 56.276 50.2194 55.668 49.468 55.668Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M66.1638 49.3582H2.17968C1.42828 49.3582 0.819153 49.9662 0.819153 50.7162C0.819153 51.4662 1.42828 52.0743 2.17968 52.0743H66.1638C66.9152 52.0743 67.5243 51.4662 67.5243 50.7162C67.5243 49.9662 66.9152 49.3582 66.1638 49.3582Z",fill:"#E6F1FD"}),(0,t.createElement)(yn.Path,{d:"M21.8335 19.5252C21.9223 19.545 22.011 19.5647 22.0997 19.5844C23.6131 19.89 24.6335 21.1322 24.6482 22.7146C24.6581 24.2624 24.6482 25.8103 24.6482 27.3581C24.6482 27.7821 24.456 28.0729 24.1159 28.1813C23.7955 28.2898 23.4603 28.1863 23.2434 27.9299C23.0905 27.7475 23.0659 27.5306 23.0659 27.3088V22.7787C23.0659 22.2266 22.8934 21.7583 22.4448 21.4132C22.154 21.1865 21.8187 21.0879 21.454 21.0829C18.24 21.0829 15.026 21.078 11.812 21.0829C10.9247 21.0829 10.2839 21.7041 10.2198 22.5716C10.2198 22.6357 10.2148 22.7047 10.2148 22.7688V36.2607C10.2148 36.8177 10.3923 37.2811 10.836 37.6261C11.1367 37.8578 11.4916 37.9515 11.8662 37.9515H14.4098C14.7795 37.9515 15.0654 38.1585 15.1739 38.4888C15.2774 38.7944 15.1887 39.1444 14.9175 39.3268C14.7696 39.4254 14.5725 39.4993 14.395 39.5043C13.5274 39.519 12.6599 39.5141 11.7923 39.5092C10.062 39.5092 8.61771 38.1043 8.6325 36.2755C8.65222 33.6924 8.63743 31.1094 8.63743 28.5215V22.7442C8.63743 21.5167 9.15009 20.5654 10.2198 19.9442C10.5451 19.7569 10.9395 19.683 11.3043 19.5548C11.3535 19.54 11.4028 19.5302 11.4521 19.5154H21.8286L21.8335 19.5252Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M26.7628 32.4896C26.7283 33.1452 26.4917 33.7023 26.0333 34.1607C24.6185 35.5656 23.2038 36.9655 21.7743 38.3606C21.6362 38.4937 21.439 38.5923 21.2517 38.6465C20.2757 38.9275 19.2898 39.1838 18.3138 39.4598C17.9884 39.5486 17.6877 39.5338 17.4363 39.2873C17.18 39.0359 17.1652 38.7303 17.2638 38.4C17.5546 37.4486 17.8406 36.4972 18.1462 35.5508C18.2053 35.3635 18.3187 35.1811 18.4518 35.0431C19.8468 33.648 21.2517 32.2579 22.6615 30.8777C23.958 29.6059 26.0579 30.084 26.615 31.7748C26.6938 32.0065 26.7135 32.2579 26.7628 32.4945V32.4896ZM19.1567 37.6014C19.6546 37.4634 20.1081 37.3451 20.5616 37.212C20.6799 37.1726 20.8032 37.1085 20.8919 37.0247C21.7693 36.167 22.6468 35.2994 23.5193 34.4318C23.5636 34.3874 23.608 34.3431 23.6277 34.3184L22.5235 33.2192C22.5235 33.2192 22.5087 33.229 22.4939 33.2389C21.5623 34.1607 20.6306 35.0726 19.7039 35.9994C19.6645 36.0388 19.6349 36.0782 19.6201 36.1275C19.4722 36.6008 19.3243 37.0789 19.1616 37.6014H19.1567ZM23.6819 32.0706L24.7861 33.1649C25.0622 32.9579 25.2101 32.6868 25.1411 32.3319C25.0819 32.0164 24.8798 31.8143 24.5643 31.7305C24.1897 31.6368 23.9186 31.7995 23.6869 32.0706H23.6819Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M16.6477 25.7708H12.6303C12.0979 25.7708 11.743 25.3715 11.812 24.8736C11.8613 24.5236 12.1472 24.2525 12.5169 24.218C12.5563 24.218 12.5958 24.218 12.6352 24.218H20.6554C21.1335 24.218 21.4737 24.5335 21.4934 24.9722C21.5082 25.4307 21.1582 25.7757 20.6751 25.7757C19.7681 25.7757 18.8611 25.7757 17.9541 25.7757H16.6477V25.7708Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M16.6279 28.8961H12.6449C12.1076 28.8961 11.7477 28.5165 11.8069 28.0137C11.8513 27.6539 12.1421 27.3729 12.5167 27.3384C12.5611 27.3384 12.6104 27.3384 12.6548 27.3384H20.6355C21.1383 27.3384 21.4883 27.6588 21.4883 28.1123C21.4883 28.5609 21.1432 28.8961 20.6651 28.8961C19.6792 28.8961 18.6933 28.8961 17.7074 28.8961H16.6279Z",fill:"#54A0DE"}),(0,t.createElement)(yn.Path,{d:"M15.0505 32.0213C14.2371 32.0213 13.4238 32.0213 12.6104 32.0213C12.0879 32.0213 11.7379 31.6122 11.8118 31.1094C11.871 30.7298 12.1963 30.4636 12.6252 30.4636C13.3696 30.4636 14.109 30.4636 14.8533 30.4636C15.7308 30.4636 16.6131 30.4636 17.4906 30.4636C18.0131 30.4636 18.3631 30.8777 18.2891 31.3756C18.23 31.7551 17.9046 32.0213 17.4758 32.0213C16.6673 32.0213 15.8638 32.0213 15.0505 32.0213Z",fill:"#54A0DE"})),(0,t.createElement)(yn.Defs,null,(0,t.createElement)("clipPath",{id:"clip0_849_3229"},(0,t.createElement)(yn.Rect,{width:"70.2692",height:"58.2068",fill:"white",transform:"translate(0.725647 0.182129)"})))),Cn.top10countries=(0,t.createElement)("svg",{width:"95",height:"83",viewBox:"0 0 95 83",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_851_4688)"},(0,t.createElement)("path",{d:"M91.8562 19.6332H3.14928C1.67068 19.6332 0.474609 20.8934 0.474609 22.4444V60.9865C0.474609 62.5375 1.67068 63.7976 3.14928 63.7976H91.8562C93.3348 63.7976 94.5309 62.5375 94.5309 60.9865V22.4347C94.5309 20.8837 93.3348 19.6235 91.8562 19.6235V19.6332Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M92.7041 0.13916H2.30192C1.29421 0.13916 0.474854 0.992204 0.474854 2.04882C0.474854 3.10543 1.29421 3.95847 2.30192 3.95847H92.7041C93.7118 3.95847 94.5311 3.10543 94.5311 2.04882C94.5311 0.992204 93.7118 0.13916 92.7041 0.13916Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M71.9374 9.01868H2.30168C1.29396 9.01868 0.474609 9.87172 0.474609 10.9283C0.474609 11.9849 1.29396 12.838 2.30168 12.838H71.9374C72.9451 12.838 73.7645 11.9849 73.7645 10.9283C73.7645 9.87172 72.9451 9.01868 71.9374 9.01868Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M83.0318 41.095H45.0966C44.3244 41.095 43.6934 41.7541 43.6934 42.5587C43.6934 43.3633 44.3244 44.0225 45.0966 44.0225H83.0224C83.7947 44.0225 84.4256 43.3633 84.4256 42.5587C84.4256 41.7541 83.7947 41.095 83.0224 41.095H83.0318Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M70.9487 48.3362H45.0966C44.3244 48.3362 43.6934 48.9954 43.6934 49.7999C43.6934 50.6045 44.3244 51.2637 45.0966 51.2637H70.9487C71.7209 51.2637 72.3519 50.6045 72.3519 49.7999C72.3519 48.9954 71.7209 48.3362 70.9487 48.3362Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M65.6841 78.2122H2.17936C1.17165 78.2122 0.352295 79.0652 0.352295 80.1218C0.352295 81.1784 1.17165 82.0315 2.17936 82.0315H65.6841C66.6918 82.0315 67.5111 81.1784 67.5111 80.1218C67.5111 79.0652 66.6918 78.2122 65.6841 78.2122Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M88.0608 69.3326H2.30168C1.29396 69.3326 0.474609 70.1857 0.474609 71.2423C0.474609 72.2989 1.29396 73.152 2.30168 73.152H88.0608C89.0685 73.152 89.8879 72.2989 89.8879 71.2423C89.8879 70.1857 89.0685 69.3326 88.0608 69.3326Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M20.4454 54.3403C20.0017 54.3092 19.5579 54.278 19.1142 54.2365C17.2585 54.1015 15.423 53.8317 13.648 53.2192C12.8311 52.9389 12.0444 52.5964 11.3989 51.9735C10.4408 51.0496 10.4913 49.7728 11.5099 48.9112C12.1553 48.3714 12.8916 48.0393 13.6681 47.7797C15.0397 47.3126 16.4517 47.0635 17.8838 46.887C17.9544 46.887 18.0351 46.8662 18.146 46.8455C18.0855 46.7313 18.0351 46.6483 17.9746 46.5548C16.6736 44.4787 15.4532 42.361 14.5456 40.0773C14.011 38.7174 13.537 37.3264 13.537 35.8524C13.537 32.7071 14.838 30.2676 17.3997 28.5652C18.973 27.5064 20.7379 27.1223 22.6037 27.3403C24.9031 27.6102 26.779 28.7001 28.201 30.5686C29.4314 32.1984 29.9861 34.0565 29.8954 36.1119C29.855 37.0773 29.613 38.0012 29.3104 38.9147C28.6952 40.7728 27.8279 42.5064 26.8698 44.1984C26.4058 45.0081 25.9117 45.8074 25.4276 46.6067C25.3872 46.669 25.357 46.7417 25.2864 46.8559C25.6696 46.9078 26.0226 46.9493 26.3655 47.0012C27.959 47.2503 29.5424 47.5617 30.9946 48.3092C31.5594 48.5998 32.0839 48.9528 32.4268 49.5133C32.9109 50.2919 32.7898 51.2261 32.1444 51.8801C31.509 52.5237 30.7324 52.8974 29.9054 53.1881C28.1103 53.8317 26.2445 54.1015 24.3686 54.2469C23.9148 54.278 23.4509 54.3195 22.9869 54.3507H20.4152L20.4454 54.3403ZM21.7263 49.0981C21.7767 49.0358 21.807 49.0047 21.8372 48.9631C23.1584 47.1154 24.419 45.2261 25.5284 43.2434C26.537 41.4476 27.4547 39.6102 27.9993 37.6067C28.2918 36.5375 28.3725 35.4683 28.1607 34.368C27.4446 30.7659 24.0056 28.3887 20.4959 29.105C18.499 29.5098 16.9963 30.6621 16.0079 32.4891C15.2515 33.8801 15.0296 35.3749 15.3423 36.9527C15.6146 38.2918 16.1088 39.5375 16.6736 40.7624C17.7426 43.0358 19.0436 45.1638 20.4354 47.2399C20.8489 47.8524 21.2825 48.4545 21.7263 49.0877V49.0981ZM22.17 52.6586C22.7953 52.6275 23.8442 52.586 24.8931 52.4925C26.3958 52.3576 27.8884 52.1085 29.3205 51.6102C29.9054 51.4026 30.4702 51.1742 30.9442 50.7382C31.1157 50.5825 31.1258 50.4268 30.9442 50.3126C30.561 50.0635 30.1878 49.7832 29.7844 49.6171C28.0497 48.9112 26.2142 48.6621 24.3686 48.5064C24.2879 48.5064 24.1669 48.5894 24.1165 48.6621C23.5719 49.4095 23.0374 50.1673 22.4928 50.9147C22.0389 51.5479 21.4439 51.5479 20.9901 50.9147C20.4454 50.1777 19.9109 49.4303 19.3966 48.6829C19.2957 48.5375 19.1848 48.4752 19.0133 48.5064C17.8636 48.6829 16.7038 48.8282 15.5642 49.0462C14.6363 49.2226 13.6984 49.4925 12.8916 50.0323C12.2058 50.4891 12.1957 50.624 12.8916 51.0289C13.4866 51.3818 14.1421 51.6413 14.8078 51.8282C17.077 52.5029 19.4067 52.6483 22.1801 52.6794L22.17 52.6586Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M25.5587 35.7071C25.5587 37.8663 23.8442 39.6414 21.7364 39.6414C19.6286 39.6414 17.8838 37.8559 17.904 35.6863C17.9141 33.5064 19.6286 31.7625 21.7364 31.7625C23.8442 31.7625 25.5587 33.5272 25.5587 35.6967V35.7071ZM23.9047 35.7071C23.9047 34.4822 22.9265 33.4753 21.7364 33.4753C20.5463 33.4753 19.5681 34.4926 19.5681 35.7071C19.5681 36.9216 20.5564 37.9493 21.7364 37.9389C22.9265 37.9389 23.9047 36.9216 23.9047 35.6967V35.7071Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M63.8569 31.4983H44.6162C44.1116 31.4983 43.7026 31.9193 43.7026 32.4386C43.7026 32.9579 44.1116 33.3789 44.6162 33.3789H63.8569C64.3614 33.3789 64.7704 32.9579 64.7704 32.4386C64.7704 31.9193 64.3614 31.4983 63.8569 31.4983Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_851_4688"},(0,t.createElement)("rect",{width:"94.1787",height:"81.9019",fill:"white",transform:"translate(0.352295 0.13916)"})))),Cn.newvsreturning=(0,t.createElement)("svg",{width:"71",height:"61",viewBox:"0 0 71 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_826_6591)"},(0,t.createElement)("path",{d:"M68.4518 14.9785H2.56845C1.47084 14.9785 0.581055 15.8861 0.581055 17.0057V44.8251C0.581055 45.9446 1.47084 46.8522 2.56845 46.8522H68.4518C69.5494 46.8522 70.4392 45.9446 70.4392 44.8251V17.0057C70.4392 15.8861 69.5494 14.9785 68.4518 14.9785Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M69.0849 0.913574H1.93543C1.18743 0.913574 0.581055 1.53095 0.581055 2.29253C0.581055 3.05411 1.18743 3.67149 1.93543 3.67149H69.0849C69.8329 3.67149 70.4392 3.05411 70.4392 2.29253C70.4392 1.53095 69.8329 0.913574 69.0849 0.913574Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M53.6568 7.32031H1.93543C1.18743 7.32031 0.581055 7.93769 0.581055 8.69927C0.581055 9.46085 1.18743 10.0782 1.93543 10.0782H53.6568C54.4048 10.0782 55.0112 9.46085 55.0112 8.69927C55.0112 7.93769 54.4048 7.32031 53.6568 7.32031Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M61.8959 23.5625H33.7239C33.1494 23.5625 32.6836 24.0365 32.6836 24.6211C32.6836 25.2058 33.1494 25.6797 33.7239 25.6797H61.8959C62.4704 25.6797 62.9362 25.2058 62.9362 24.6211C62.9362 24.0365 62.4704 23.5625 61.8959 23.5625Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M52.9256 28.793H33.7239C33.1494 28.793 32.6836 29.2669 32.6836 29.8516C32.6836 30.4362 33.1494 30.9102 33.7239 30.9102H52.9256C53.5001 30.9102 53.9659 30.4362 53.9659 29.8516C53.9659 29.2669 53.5001 28.793 52.9256 28.793Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M35.7506 35.5952H33.7239C33.1494 35.5952 32.6836 36.0692 32.6836 36.6538C32.6836 37.2385 33.1494 37.7125 33.7239 37.7125H35.7506C36.3251 37.7125 36.7909 37.2385 36.7909 36.6538C36.7909 36.0692 36.3251 35.5952 35.7506 35.5952Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M42.2869 35.5952H40.2603C39.6857 35.5952 39.22 36.0692 39.22 36.6538C39.22 37.2385 39.6857 37.7125 40.2603 37.7125H42.2869C42.8615 37.7125 43.3273 37.2385 43.3273 36.6538C43.3273 36.0692 42.8615 35.5952 42.2869 35.5952Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M48.8233 35.5952H46.7967C46.2221 35.5952 45.7563 36.0692 45.7563 36.6538C45.7563 37.2385 46.2221 37.7125 46.7967 37.7125H48.8233C49.3979 37.7125 49.8636 37.2385 49.8636 36.6538C49.8636 36.0692 49.3979 35.5952 48.8233 35.5952Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M49.0097 57.2529H1.84217C1.09417 57.2529 0.487793 57.8703 0.487793 58.6319C0.487793 59.3935 1.09417 60.0108 1.84217 60.0108H49.0097C49.7577 60.0108 50.3641 59.3935 50.3641 58.6319C50.3641 57.8703 49.7577 57.2529 49.0097 57.2529Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M65.6302 50.8467H1.93543C1.18743 50.8467 0.581055 51.4641 0.581055 52.2256C0.581055 52.9872 1.18743 53.6046 1.93543 53.6046H65.6302C66.3782 53.6046 66.9846 52.9872 66.9846 52.2256C66.9846 51.4641 66.3782 50.8467 65.6302 50.8467Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M18.8701 37.928H7.54442C7.51007 37.913 7.47082 37.8929 7.43156 37.8829C6.56299 37.6427 6.04774 36.8418 6.21459 35.9309C6.61207 33.7486 7.7358 32.0568 9.57108 30.8855C9.9293 30.6553 10.3219 30.4801 10.7095 30.2749C9.67903 29.449 9.07055 28.3729 8.9675 27.0214C8.86445 25.66 9.28156 24.4788 10.2139 23.5077C11.7793 21.876 14.277 21.7759 15.9455 23.2675C16.8533 24.0833 17.3685 25.1194 17.4421 26.3557C17.5403 27.9775 16.9171 29.2838 15.7001 30.2799L17.1085 31.0207C17.7317 30.0797 18.5512 29.3739 19.5768 28.9034C17.9378 27.3968 18.0212 25.0293 19.2921 23.6479C20.514 22.3165 22.526 22.1663 23.895 23.3175C24.6409 23.9432 25.0728 24.749 25.1758 25.7351C25.3034 26.9964 24.8716 28.0475 23.9588 28.9034C24.0226 28.9335 24.0668 28.9585 24.1061 28.9785C25.4408 29.6292 26.3928 30.6553 26.9571 32.0568C27.119 32.4572 27.2123 32.8877 27.3399 33.3031V33.8136C27.3399 33.8136 27.3153 33.8286 27.3153 33.8437C27.0651 34.6645 26.6185 35.0049 25.7843 35.0049H19.984C20.0527 35.2952 20.1214 35.5605 20.1754 35.8308C20.3717 36.8318 19.8761 37.6427 18.9143 37.903C18.8947 37.903 18.8799 37.928 18.8652 37.938H18.8603L18.8701 37.928ZM13.2073 36.6516H18.5168C18.875 36.6516 19.0321 36.4514 18.9634 36.096C18.9241 35.8958 18.8799 35.6956 18.826 35.5004C18.031 32.6924 15.4548 30.8755 12.643 31.1358C10.1109 31.371 7.94681 33.4132 7.4561 36.021C7.36777 36.4815 7.50517 36.6516 7.96153 36.6516H13.2122H13.2073ZM13.1926 29.8344C14.8463 29.8394 16.2105 28.4179 16.2154 26.6761C16.2203 24.9342 14.8708 23.4977 13.2171 23.4877C11.5585 23.4827 10.1943 24.8992 10.1845 26.636C10.1747 28.3979 11.5192 29.8244 13.1926 29.8344ZM18.0555 31.8415C18.6051 32.3871 19.0468 32.9777 19.4099 33.6334C19.4394 33.6885 19.5424 33.7185 19.6111 33.7185C21.6868 33.7185 23.7576 33.7185 25.8334 33.7185C26.0787 33.7185 26.1278 33.6585 26.0787 33.4132C25.6224 31.1308 23.7331 29.5992 21.466 29.7393C19.9988 29.8244 18.8799 30.5802 18.0555 31.8415ZM21.7653 23.8231C20.5582 23.8231 19.5718 24.8542 19.5669 26.1255C19.5669 27.3968 20.5484 28.4429 21.7506 28.448C22.948 28.453 23.9441 27.4069 23.949 26.1405C23.949 24.8642 22.9725 23.8281 21.7653 23.8231Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_826_6591"},(0,t.createElement)("rect",{width:"69.9514",height:"59.1025",fill:"white",transform:"translate(0.487793 0.913574)"})))),Cn.device=(0,t.createElement)("svg",{width:"71",height:"60",viewBox:"0 0 71 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M68.1116 14.9289H2.17891C1.07991 14.9289 0.190918 15.8389 0.190918 16.9589V44.7907C0.190918 45.9107 1.07991 46.8207 2.17891 46.8207H68.1116C69.2106 46.8207 70.0996 45.9107 70.0996 44.7907V16.9519C70.0996 15.8319 69.2106 14.9219 68.1116 14.9219V14.9289Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M68.7416 0.852051H1.54891C0.799915 0.852051 0.190918 1.46805 0.190918 2.23104C0.190918 2.99404 0.799915 3.61004 1.54891 3.61004H68.7416C69.4906 3.61004 70.0996 2.99404 70.0996 2.23104C70.0996 1.46805 69.4906 0.852051 68.7416 0.852051Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M53.3067 7.26416H1.54891C0.799915 7.26416 0.190918 7.88016 0.190918 8.64315C0.190918 9.40615 0.799915 10.0221 1.54891 10.0221H53.3067C54.0557 10.0221 54.6647 9.40615 54.6647 8.64315C54.6647 7.88016 54.0557 7.26416 53.3067 7.26416Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M48.6589 57.23H1.45809C0.709095 57.23 0.100098 57.846 0.100098 58.609C0.100098 59.372 0.709095 59.988 1.45809 59.988H48.6589C49.4079 59.988 50.0169 59.372 50.0169 58.609C50.0169 57.846 49.4079 57.23 48.6589 57.23Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M65.2906 50.8179H1.54891C0.799915 50.8179 0.190918 51.4339 0.190918 52.1969C0.190918 52.9599 0.799915 53.5759 1.54891 53.5759H65.2906C66.0396 53.5759 66.6486 52.9599 66.6486 52.1969C66.6486 51.4339 66.0396 50.8179 65.2906 50.8179Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M57.8498 22.895H36.7869C36.3771 22.895 36.0449 23.2272 36.0449 23.637V23.735C36.0449 24.1448 36.3771 24.477 36.7869 24.477H57.8498C58.2596 24.477 58.5918 24.1448 58.5918 23.735V23.637C58.5918 23.2272 58.2596 22.895 57.8498 22.895Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M60.5168 27.2139H36.7869C36.3771 27.2139 36.0449 27.5461 36.0449 27.9559V28.0539C36.0449 28.4637 36.3771 28.7959 36.7869 28.7959H60.5168C60.9266 28.7959 61.2588 28.4637 61.2588 28.0539V27.9559C61.2588 27.5461 60.9266 27.2139 60.5168 27.2139Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M51.7319 31.5327H36.7869C36.3771 31.5327 36.0449 31.8649 36.0449 32.2747V32.3727C36.0449 32.7825 36.3771 33.1147 36.7869 33.1147H51.7319C52.1417 33.1147 52.4739 32.7825 52.4739 32.3727V32.2747C52.4739 31.8649 52.1417 31.5327 51.7319 31.5327Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M44.7669 36.7407H36.7869C36.3771 36.7407 36.0449 37.0729 36.0449 37.4827V37.5807C36.0449 37.9905 36.3771 38.3227 36.7869 38.3227H44.7669C45.1767 38.3227 45.5089 37.9905 45.5089 37.5807V37.4827C45.5089 37.0729 45.1767 36.7407 44.7669 36.7407Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M27.0848 27.0387V37.9727C26.8118 39.0227 26.1468 39.5757 25.0408 39.5757H11.7338C10.7398 39.5197 9.96984 38.5817 10.1868 37.5877C10.3548 36.8177 10.9568 36.3207 11.7898 36.2647H12.8398L13.0638 34.3887H8.97585C7.86985 34.3887 7.09985 33.6187 7.09985 32.5127V23.5108C7.09985 22.4048 7.86985 21.6348 8.97585 21.6348H23.8788C24.9848 21.6348 25.7548 22.4048 25.7548 23.5108V25.2747C25.7548 25.4427 25.8108 25.4987 25.9788 25.6037C26.4758 25.8277 26.8608 26.2127 27.0288 26.7657C27.0288 26.8777 27.0288 26.9337 27.0848 27.0387ZM24.4878 25.4357V23.5598C24.4878 23.0628 24.3198 22.8948 23.8228 22.8948H9.03184C8.53485 22.8948 8.31085 23.0628 8.31085 23.5598V32.4497C8.31085 32.9467 8.47885 33.1147 8.97585 33.1147H18.4678V27.3747C18.4678 27.2067 18.4678 26.9897 18.5238 26.8217C18.7478 25.9397 19.4618 25.3867 20.3998 25.3867H24.2638C24.3198 25.4427 24.4318 25.4427 24.4878 25.4427V25.4357ZM25.8108 32.4987V27.4167C25.8108 26.9197 25.5868 26.6957 25.0898 26.6957H20.3998C19.9028 26.6957 19.6788 26.9197 19.6788 27.4167V37.5737C19.6788 38.0707 19.9028 38.2947 20.3998 38.2947H25.0338C25.5308 38.2947 25.7548 38.0707 25.7548 37.5737C25.8108 35.8657 25.8108 34.1507 25.8108 32.4917V32.4987ZM18.4678 34.4307H14.3308L14.1068 36.2507H18.4678V34.4307ZM18.4118 37.5247H11.7338C11.5658 37.5247 11.4048 37.6927 11.4048 37.9097C11.4048 38.0777 11.5728 38.2387 11.7338 38.2947H18.5798L18.4118 37.5247Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.7797 37.3636C22.2827 37.3636 21.8977 36.9786 21.8977 36.4816C21.8977 35.9846 22.2827 35.5996 22.8357 35.5996C23.3327 35.5996 23.7177 35.9846 23.7177 36.4816C23.6617 36.9786 23.2767 37.3636 22.7797 37.3636Z",fill:"#54A0DE"})),Cn.age=(0,t.createElement)("svg",{width:"98",height:"81",viewBox:"0 0 98 81",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_887_3265)"},(0,t.createElement)("path",{d:"M94.4783 19.4344H3.17888C1.65785 19.4344 0.424805 20.6674 0.424805 22.1885V59.984C0.424805 61.505 1.65785 62.738 3.17888 62.738H94.4783C95.9994 62.738 97.2324 61.505 97.2324 59.984V22.1885C97.2324 20.6674 95.9994 19.4344 94.4783 19.4344Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M95.3555 0.325806H2.30166C1.2651 0.325806 0.424805 1.16458 0.424805 2.19926C0.424805 3.23394 1.2651 4.07271 2.30166 4.07271H95.3555C96.3921 4.07271 97.2324 3.23394 97.2324 2.19926C97.2324 1.16458 96.3921 0.325806 95.3555 0.325806Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M73.9757 9.03021H2.30166C1.2651 9.03021 0.424805 9.86899 0.424805 10.9037C0.424805 11.9383 1.2651 12.7771 2.30166 12.7771H73.9757C75.0123 12.7771 75.8526 11.9383 75.8526 10.9037C75.8526 9.86899 75.0123 9.03021 73.9757 9.03021Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M85.3932 36.0878H46.3533C45.5571 36.0878 44.9116 36.7318 44.9116 37.5261C44.9116 38.3204 45.5571 38.9643 46.3533 38.9643H85.3932C86.1894 38.9643 86.8348 38.3204 86.8348 37.5261C86.8348 36.7318 86.1894 36.0878 85.3932 36.0878Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M72.9624 43.2009H46.3533C45.5571 43.2009 44.9116 43.8449 44.9116 44.6392C44.9116 45.4335 45.5571 46.0774 46.3533 46.0774H72.9624C73.7586 46.0774 74.4041 45.4335 74.4041 44.6392C74.4041 43.8449 73.7586 43.2009 72.9624 43.2009Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M67.5358 76.869H2.17226C1.13571 76.869 0.29541 77.7077 0.29541 78.7424C0.29541 79.7771 1.13571 80.6159 2.17226 80.6159H67.5358C68.5723 80.6159 69.4126 79.7771 69.4126 78.7424C69.4126 77.7077 68.5723 76.869 67.5358 76.869Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M90.5682 68.1645H2.30166C1.2651 68.1645 0.424805 69.0033 0.424805 70.0379C0.424805 71.0726 1.2651 71.9114 2.30166 71.9114H90.5682C91.6048 71.9114 92.4451 71.0726 92.4451 70.0379C92.4451 69.0033 91.6048 68.1645 90.5682 68.1645Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M29.4137 27.0098C29.5361 27.037 29.6585 27.0642 29.7809 27.0914C31.8686 27.513 33.2762 29.2267 33.2966 31.4095C33.3102 33.5448 33.2966 35.6801 33.2966 37.8153C33.2966 38.4001 33.0314 38.8014 32.5622 38.951C32.1202 39.1006 31.6578 38.9578 31.3586 38.6042C31.1478 38.3525 31.1138 38.0533 31.1138 37.7473V31.4979C31.1138 30.7363 30.8758 30.0903 30.2569 29.6143C29.8557 29.3015 29.3933 29.1655 28.8901 29.1587C24.4564 29.1587 20.0226 29.1519 15.5889 29.1587C14.3649 29.1587 13.4809 30.0155 13.3925 31.2123C13.3925 31.3007 13.3857 31.3959 13.3857 31.4843V50.0965C13.3857 50.8649 13.6305 51.5041 14.2425 51.9801C14.6573 52.2997 15.1469 52.429 15.6637 52.429H19.1726C19.6826 52.429 20.077 52.7146 20.2267 53.1702C20.3695 53.5918 20.2471 54.0746 19.873 54.3262C19.669 54.4622 19.397 54.5642 19.1522 54.571C17.9554 54.5914 16.7586 54.5846 15.5617 54.5778C13.1748 54.5778 11.1824 52.6398 11.2028 50.1169C11.23 46.5536 11.2096 42.9903 11.2096 39.4202V31.4503C11.2096 29.7571 11.9168 28.4447 13.3925 27.5878C13.8413 27.3294 14.3853 27.2274 14.8885 27.0506C14.9565 27.0302 15.0245 27.0166 15.0925 26.9962H29.4069L29.4137 27.0098Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M36.214 44.8941C36.1664 45.7985 35.84 46.567 35.2076 47.1994C33.2559 49.1374 31.3043 51.0687 29.3322 52.9932C29.1418 53.1768 28.8698 53.3128 28.6114 53.3876C27.265 53.7752 25.9049 54.1288 24.5585 54.5096C24.1097 54.632 23.6949 54.6116 23.3481 54.2716C22.9945 53.9248 22.974 53.5032 23.1101 53.0476C23.5113 51.7351 23.9057 50.4227 24.3273 49.117C24.4089 48.8586 24.5653 48.607 24.7489 48.4166C26.6734 46.4922 28.6114 44.5745 30.5563 42.6705C32.3447 40.916 35.2416 41.5756 36.01 43.9081C36.1188 44.2277 36.146 44.5745 36.214 44.9009V44.8941ZM25.7213 51.9459C26.4081 51.7555 27.0338 51.5923 27.6594 51.4087C27.8226 51.3543 27.9926 51.2659 28.115 51.1503C29.3254 49.9671 30.5359 48.7702 31.7395 47.5734C31.8007 47.5122 31.8619 47.451 31.8891 47.417L30.3659 45.9005C30.3659 45.9005 30.3455 45.9141 30.3251 45.9277C29.0398 47.1994 27.7546 48.4574 26.4761 49.7359C26.4217 49.7903 26.3809 49.8447 26.3605 49.9127C26.1565 50.5655 25.9525 51.2251 25.7281 51.9459H25.7213ZM31.9639 44.3161L33.4872 45.8257C33.868 45.5401 34.072 45.1661 33.9768 44.6765C33.8952 44.2413 33.6164 43.9625 33.1811 43.8469C32.6643 43.7177 32.2903 43.9421 31.9707 44.3161H31.9639Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.26 35.6255H16.7178C15.9834 35.6255 15.4938 35.0746 15.589 34.3878C15.657 33.905 16.0514 33.531 16.5614 33.4834C16.6158 33.4834 16.6702 33.4834 16.7246 33.4834H27.7885C28.4481 33.4834 28.9173 33.9186 28.9445 34.5238C28.9649 35.1562 28.4821 35.6323 27.8157 35.6323C26.5645 35.6323 25.3132 35.6323 24.062 35.6323H22.26V35.6255Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.2326 39.9366H16.738C15.9968 39.9366 15.5004 39.413 15.582 38.7194C15.6432 38.223 16.0444 37.8354 16.5612 37.7878C16.6224 37.7878 16.6904 37.7878 16.7516 37.7878H27.7612C28.4548 37.7878 28.9376 38.2298 28.9376 38.8554C28.9376 39.4742 28.4616 39.9366 27.802 39.9366C26.4419 39.9366 25.0819 39.9366 23.7218 39.9366H22.2326Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M20.057 44.2482C18.935 44.2482 17.8129 44.2482 16.6909 44.2482C15.9701 44.2482 15.4873 43.6838 15.5893 42.9901C15.6709 42.4665 16.1197 42.0993 16.7113 42.0993C17.7381 42.0993 18.7582 42.0993 19.785 42.0993C20.9954 42.0993 22.2127 42.0993 23.4231 42.0993C24.1439 42.0993 24.6267 42.6705 24.5247 43.3573C24.4431 43.881 23.9943 44.2482 23.4027 44.2482C22.2875 44.2482 21.179 44.2482 20.057 44.2482Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_887_3265"},(0,t.createElement)("rect",{width:"96.9368",height:"80.2967",fill:"white",transform:"translate(0.29541 0.325989)"})))),Cn.gender=(0,t.createElement)("svg",{width:"98",height:"81",viewBox:"0 0 98 81",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_887_3284)"},(0,t.createElement)("path",{d:"M94.4783 19.4344H3.17888C1.65785 19.4344 0.424805 20.6674 0.424805 22.1884V59.9839C0.424805 61.505 1.65785 62.738 3.17888 62.738H94.4783C95.9994 62.738 97.2324 61.505 97.2324 59.9839V22.1884C97.2324 20.6674 95.9994 19.4344 94.4783 19.4344Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M95.3555 0.325806H2.30166C1.2651 0.325806 0.424805 1.16458 0.424805 2.19926C0.424805 3.23394 1.2651 4.07271 2.30166 4.07271H95.3555C96.3921 4.07271 97.2324 3.23394 97.2324 2.19926C97.2324 1.16458 96.3921 0.325806 95.3555 0.325806Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M73.9757 9.03021H2.30166C1.2651 9.03021 0.424805 9.86899 0.424805 10.9037C0.424805 11.9383 1.2651 12.7771 2.30166 12.7771H73.9757C75.0123 12.7771 75.8526 11.9383 75.8526 10.9037C75.8526 9.86899 75.0123 9.03021 73.9757 9.03021Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M85.3932 36.0878H46.3533C45.5571 36.0878 44.9116 36.7317 44.9116 37.526C44.9116 38.3204 45.5571 38.9643 46.3533 38.9643H85.3932C86.1894 38.9643 86.8348 38.3204 86.8348 37.526C86.8348 36.7317 86.1894 36.0878 85.3932 36.0878Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M72.9624 43.2009H46.3533C45.5571 43.2009 44.9116 43.8449 44.9116 44.6392C44.9116 45.4335 45.5571 46.0774 46.3533 46.0774H72.9624C73.7586 46.0774 74.4041 45.4335 74.4041 44.6392C74.4041 43.8449 73.7586 43.2009 72.9624 43.2009Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M67.5358 76.869H2.17226C1.13571 76.869 0.29541 77.7077 0.29541 78.7424C0.29541 79.7771 1.13571 80.6159 2.17226 80.6159H67.5358C68.5723 80.6159 69.4126 79.7771 69.4126 78.7424C69.4126 77.7077 68.5723 76.869 67.5358 76.869Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M90.5682 68.1645H2.30166C1.2651 68.1645 0.424805 69.0033 0.424805 70.038C0.424805 71.0727 1.2651 71.9114 2.30166 71.9114H90.5682C91.6048 71.9114 92.4451 71.0727 92.4451 70.038C92.4451 69.0033 91.6048 68.1645 90.5682 68.1645Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M29.4137 27.0098C29.5361 27.037 29.6585 27.0642 29.7809 27.0914C31.8686 27.513 33.2762 29.2266 33.2966 31.4095C33.3102 33.5448 33.2966 35.68 33.2966 37.8153C33.2966 38.4001 33.0314 38.8013 32.5622 38.9509C32.1202 39.1005 31.6578 38.9577 31.3586 38.6041C31.1478 38.3525 31.1138 38.0533 31.1138 37.7473V31.4979C31.1138 30.7363 30.8758 30.0903 30.2569 29.6143C29.8557 29.3015 29.3933 29.1654 28.8901 29.1586C24.4564 29.1586 20.0226 29.1518 15.5889 29.1586C14.3649 29.1586 13.4809 30.0155 13.3925 31.2123C13.3925 31.3007 13.3857 31.3959 13.3857 31.4843V50.0965C13.3857 50.8649 13.6305 51.5041 14.2425 51.9801C14.6573 52.2997 15.1469 52.4289 15.6637 52.4289H19.1726C19.6826 52.4289 20.077 52.7145 20.2267 53.1701C20.3695 53.5918 20.2471 54.0746 19.873 54.3262C19.669 54.4622 19.397 54.5642 19.1522 54.571C17.9554 54.5914 16.7586 54.5846 15.5617 54.5778C13.1748 54.5778 11.1824 52.6397 11.2028 50.1169C11.23 46.5535 11.2096 42.9902 11.2096 39.4201V31.4503C11.2096 29.7571 11.9168 28.4446 13.3925 27.5878C13.8413 27.3294 14.3853 27.2274 14.8885 27.0506C14.9565 27.0302 15.0245 27.0166 15.0925 26.9962H29.4069L29.4137 27.0098Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M36.214 44.8941C36.1664 45.7985 35.84 46.5669 35.2076 47.1993C33.2559 49.1374 31.3043 51.0686 29.3322 52.9931C29.1418 53.1767 28.8698 53.3127 28.6114 53.3875C27.265 53.7751 25.9049 54.1287 24.5585 54.5095C24.1097 54.6319 23.6949 54.6115 23.3481 54.2715C22.9945 53.9247 22.974 53.5031 23.1101 53.0475C23.5113 51.7351 23.9057 50.4226 24.3273 49.117C24.4089 48.8586 24.5653 48.607 24.7489 48.4166C26.6734 46.4921 28.6114 44.5745 30.5563 42.6704C32.3447 40.9159 35.2416 41.5756 36.01 43.908C36.1188 44.2276 36.146 44.5745 36.214 44.9009V44.8941ZM25.7213 51.9459C26.4081 51.7555 27.0338 51.5923 27.6594 51.4086C27.8226 51.3542 27.9926 51.2658 28.115 51.1502C29.3254 49.967 30.5359 48.7702 31.7395 47.5733C31.8007 47.5121 31.8619 47.4509 31.8891 47.4169L30.3659 45.9005C30.3659 45.9005 30.3455 45.9141 30.3251 45.9277C29.0398 47.1993 27.7546 48.4574 26.4761 49.7358C26.4217 49.7902 26.3809 49.8446 26.3605 49.9126C26.1565 50.5654 25.9525 51.225 25.7281 51.9459H25.7213ZM31.9639 44.316L33.4872 45.8257C33.868 45.5401 34.072 45.1661 33.9768 44.6765C33.8952 44.2412 33.6164 43.9624 33.1811 43.8468C32.6643 43.7176 32.2903 43.942 31.9707 44.316H31.9639Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.26 35.6254H16.7178C15.9834 35.6254 15.4938 35.0746 15.589 34.3878C15.657 33.905 16.0514 33.531 16.5614 33.4834C16.6158 33.4834 16.6702 33.4834 16.7246 33.4834H27.7885C28.4481 33.4834 28.9173 33.9186 28.9445 34.5238C28.9649 35.1562 28.4821 35.6322 27.8157 35.6322C26.5645 35.6322 25.3132 35.6322 24.062 35.6322H22.26V35.6254Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.2326 39.9366H16.738C15.9968 39.9366 15.5004 39.413 15.582 38.7194C15.6432 38.223 16.0444 37.8354 16.5612 37.7878C16.6224 37.7878 16.6904 37.7878 16.7516 37.7878H27.7612C28.4548 37.7878 28.9376 38.2298 28.9376 38.8554C28.9376 39.4742 28.4616 39.9366 27.802 39.9366C26.4419 39.9366 25.0819 39.9366 23.7218 39.9366H22.2326Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M20.057 44.2481C18.935 44.2481 17.8129 44.2481 16.6909 44.2481C15.9701 44.2481 15.4873 43.6837 15.5893 42.9901C15.6709 42.4665 16.1197 42.0993 16.7113 42.0993C17.7381 42.0993 18.7582 42.0993 19.785 42.0993C20.9954 42.0993 22.2127 42.0993 23.4231 42.0993C24.1439 42.0993 24.6267 42.6705 24.5247 43.3573C24.4431 43.8809 23.9943 44.2481 23.4027 44.2481C22.2875 44.2481 21.179 44.2481 20.057 44.2481Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_887_3284"},(0,t.createElement)("rect",{width:"96.9368",height:"80.2967",fill:"white",transform:"translate(0.29541 0.325989)"})))),Cn.topinterests=(0,t.createElement)("svg",{width:"98",height:"81",viewBox:"0 0 98 81",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_887_3303)"},(0,t.createElement)("path",{d:"M94.4783 19.4343H3.17888C1.65785 19.4343 0.424805 20.6674 0.424805 22.1884V59.9839C0.424805 61.5049 1.65785 62.738 3.17888 62.738H94.4783C95.9994 62.738 97.2324 61.5049 97.2324 59.9839V22.1884C97.2324 20.6674 95.9994 19.4343 94.4783 19.4343Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M95.3555 0.325684H2.30166C1.2651 0.325684 0.424805 1.16446 0.424805 2.19914C0.424805 3.23382 1.2651 4.07259 2.30166 4.07259H95.3555C96.3921 4.07259 97.2324 3.23382 97.2324 2.19914C97.2324 1.16446 96.3921 0.325684 95.3555 0.325684Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M73.9757 9.03015H2.30166C1.2651 9.03015 0.424805 9.86893 0.424805 10.9036C0.424805 11.9383 1.2651 12.7771 2.30166 12.7771H73.9757C75.0123 12.7771 75.8526 11.9383 75.8526 10.9036C75.8526 9.86893 75.0123 9.03015 73.9757 9.03015Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M85.3932 36.0878H46.3533C45.5571 36.0878 44.9116 36.7317 44.9116 37.526C44.9116 38.3203 45.5571 38.9643 46.3533 38.9643H85.3932C86.1894 38.9643 86.8348 38.3203 86.8348 37.526C86.8348 36.7317 86.1894 36.0878 85.3932 36.0878Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M72.9624 43.2008H46.3533C45.5571 43.2008 44.9116 43.8447 44.9116 44.639C44.9116 45.4334 45.5571 46.0773 46.3533 46.0773H72.9624C73.7586 46.0773 74.4041 45.4334 74.4041 44.639C74.4041 43.8447 73.7586 43.2008 72.9624 43.2008Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M67.5358 76.8689H2.17226C1.13571 76.8689 0.29541 77.7077 0.29541 78.7424C0.29541 79.777 1.13571 80.6158 2.17226 80.6158H67.5358C68.5723 80.6158 69.4126 79.777 69.4126 78.7424C69.4126 77.7077 68.5723 76.8689 67.5358 76.8689Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M90.5682 68.1644H2.30166C1.2651 68.1644 0.424805 69.0032 0.424805 70.0379C0.424805 71.0726 1.2651 71.9113 2.30166 71.9113H90.5682C91.6048 71.9113 92.4451 71.0726 92.4451 70.0379C92.4451 69.0032 91.6048 68.1644 90.5682 68.1644Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M29.4137 27.0097C29.5361 27.0369 29.6585 27.0641 29.7809 27.0913C31.8686 27.5129 33.2762 29.2266 33.2966 31.4094C33.3102 33.5447 33.2966 35.6799 33.2966 37.8152C33.2966 38.4 33.0314 38.8012 32.5622 38.9508C32.1202 39.1004 31.6578 38.9576 31.3586 38.604C31.1478 38.3524 31.1138 38.0532 31.1138 37.7472V31.4978C31.1138 30.7362 30.8758 30.0902 30.2569 29.6142C29.8557 29.3014 29.3933 29.1654 28.8901 29.1586C24.4564 29.1586 20.0226 29.1518 15.5889 29.1586C14.3649 29.1586 13.4809 30.0154 13.3925 31.2122C13.3925 31.3006 13.3857 31.3958 13.3857 31.4842V50.0964C13.3857 50.8648 13.6305 51.504 14.2425 51.98C14.6573 52.2996 15.1469 52.4288 15.6637 52.4288H19.1726C19.6826 52.4288 20.077 52.7144 20.2267 53.17C20.3695 53.5917 20.2471 54.0745 19.873 54.3261C19.669 54.4621 19.397 54.5641 19.1522 54.5709C17.9554 54.5913 16.7586 54.5845 15.5617 54.5777C13.1748 54.5777 11.1824 52.6396 11.2028 50.1168C11.23 46.5535 11.2096 42.9902 11.2096 39.4201V31.4502C11.2096 29.757 11.9168 28.4445 13.3925 27.5877C13.8413 27.3293 14.3853 27.2273 14.8885 27.0505C14.9565 27.0301 15.0245 27.0165 15.0925 26.9961H29.4069L29.4137 27.0097Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M36.214 44.8939C36.1664 45.7984 35.84 46.5668 35.2076 47.1992C33.2559 49.1373 31.3043 51.0685 29.3322 52.993C29.1418 53.1766 28.8698 53.3126 28.6114 53.3874C27.265 53.775 25.9049 54.1286 24.5585 54.5094C24.1097 54.6318 23.6949 54.6114 23.3481 54.2714C22.9945 53.9246 22.974 53.503 23.1101 53.0474C23.5113 51.7349 23.9057 50.4225 24.3273 49.1169C24.4089 48.8585 24.5653 48.6068 24.7489 48.4164C26.6734 46.492 28.6114 44.5743 30.5563 42.6703C32.3447 40.9158 35.2416 41.5754 36.01 43.9079C36.1188 44.2275 36.146 44.5743 36.214 44.9007V44.8939ZM25.7213 51.9457C26.4081 51.7553 27.0338 51.5921 27.6594 51.4085C27.8226 51.3541 27.9926 51.2657 28.115 51.1501C29.3254 49.9669 30.5359 48.7701 31.7395 47.5732C31.8007 47.512 31.8619 47.4508 31.8891 47.4168L30.3659 45.9004C30.3659 45.9004 30.3455 45.914 30.3251 45.9276C29.0398 47.1992 27.7546 48.4572 26.4761 49.7357C26.4217 49.7901 26.3809 49.8445 26.3605 49.9125C26.1565 50.5653 25.9525 51.2249 25.7281 51.9457H25.7213ZM31.9639 44.3159L33.4872 45.8256C33.868 45.54 34.072 45.1659 33.9768 44.6763C33.8952 44.2411 33.6164 43.9623 33.1811 43.8467C32.6643 43.7175 32.2903 43.9419 31.9707 44.3159H31.9639Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.26 35.6253H16.7178C15.9834 35.6253 15.4938 35.0745 15.589 34.3877C15.657 33.9049 16.0514 33.5309 16.5614 33.4833C16.6158 33.4833 16.6702 33.4833 16.7246 33.4833H27.7885C28.4481 33.4833 28.9173 33.9185 28.9445 34.5237C28.9649 35.1561 28.4821 35.6321 27.8157 35.6321C26.5645 35.6321 25.3132 35.6321 24.062 35.6321H22.26V35.6253Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.2326 39.9366H16.738C15.9968 39.9366 15.5004 39.413 15.582 38.7193C15.6432 38.2229 16.0444 37.8353 16.5612 37.7877C16.6224 37.7877 16.6904 37.7877 16.7516 37.7877H27.7612C28.4548 37.7877 28.9376 38.2297 28.9376 38.8554C28.9376 39.4742 28.4616 39.9366 27.802 39.9366C26.4419 39.9366 25.0819 39.9366 23.7218 39.9366H22.2326Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M20.057 44.2481C18.935 44.2481 17.8129 44.2481 16.6909 44.2481C15.9701 44.2481 15.4873 43.6837 15.5893 42.9901C15.6709 42.4665 16.1197 42.0992 16.7113 42.0992C17.7381 42.0992 18.7582 42.0992 19.785 42.0992C20.9954 42.0992 22.2127 42.0992 23.4231 42.0992C24.1439 42.0992 24.6267 42.6705 24.5247 43.3573C24.4431 43.8809 23.9943 44.2481 23.4027 44.2481C22.2875 44.2481 21.179 44.2481 20.057 44.2481Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_887_3303"},(0,t.createElement)("rect",{width:"96.9368",height:"80.2967",fill:"white",transform:"translate(0.29541 0.325928)"})))),Cn.scrolldepth=(0,t.createElement)("svg",{width:"98",height:"81",viewBox:"0 0 98 81",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_887_3322)"},(0,t.createElement)("path",{d:"M94.4783 19.4343H3.17888C1.65785 19.4343 0.424805 20.6674 0.424805 22.1884V59.9839C0.424805 61.5049 1.65785 62.738 3.17888 62.738H94.4783C95.9994 62.738 97.2324 61.5049 97.2324 59.9839V22.1884C97.2324 20.6674 95.9994 19.4343 94.4783 19.4343Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M95.3555 0.325684H2.30166C1.2651 0.325684 0.424805 1.16446 0.424805 2.19914C0.424805 3.23382 1.2651 4.07259 2.30166 4.07259H95.3555C96.3921 4.07259 97.2324 3.23382 97.2324 2.19914C97.2324 1.16446 96.3921 0.325684 95.3555 0.325684Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M73.9757 9.03027H2.30166C1.2651 9.03027 0.424805 9.86905 0.424805 10.9037C0.424805 11.9384 1.2651 12.7772 2.30166 12.7772H73.9757C75.0123 12.7772 75.8526 11.9384 75.8526 10.9037C75.8526 9.86905 75.0123 9.03027 73.9757 9.03027Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M85.3932 36.0876H46.3533C45.5571 36.0876 44.9116 36.7316 44.9116 37.5259C44.9116 38.3202 45.5571 38.9641 46.3533 38.9641H85.3932C86.1894 38.9641 86.8348 38.3202 86.8348 37.5259C86.8348 36.7316 86.1894 36.0876 85.3932 36.0876Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M72.9624 43.2009H46.3533C45.5571 43.2009 44.9116 43.8449 44.9116 44.6392C44.9116 45.4335 45.5571 46.0774 46.3533 46.0774H72.9624C73.7586 46.0774 74.4041 45.4335 74.4041 44.6392C74.4041 43.8449 73.7586 43.2009 72.9624 43.2009Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M67.5358 76.8689H2.17226C1.13571 76.8689 0.29541 77.7077 0.29541 78.7424C0.29541 79.777 1.13571 80.6158 2.17226 80.6158H67.5358C68.5723 80.6158 69.4126 79.777 69.4126 78.7424C69.4126 77.7077 68.5723 76.8689 67.5358 76.8689Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M90.5682 68.1646H2.30166C1.2651 68.1646 0.424805 69.0033 0.424805 70.038C0.424805 71.0727 1.2651 71.9115 2.30166 71.9115H90.5682C91.6048 71.9115 92.4451 71.0727 92.4451 70.038C92.4451 69.0033 91.6048 68.1646 90.5682 68.1646Z",fill:"#E6F1FD"}),(0,t.createElement)("path",{d:"M29.4137 27.0097C29.5361 27.0369 29.6585 27.0641 29.7809 27.0913C31.8686 27.5129 33.2762 29.2266 33.2966 31.4094C33.3102 33.5447 33.2966 35.6799 33.2966 37.8152C33.2966 38.4 33.0314 38.8012 32.5622 38.9508C32.1202 39.1004 31.6578 38.9576 31.3586 38.604C31.1478 38.3524 31.1138 38.0532 31.1138 37.7472V31.4978C31.1138 30.7362 30.8758 30.0902 30.2569 29.6142C29.8557 29.3014 29.3933 29.1654 28.8901 29.1586C24.4564 29.1586 20.0226 29.1518 15.5889 29.1586C14.3649 29.1586 13.4809 30.0154 13.3925 31.2122C13.3925 31.3006 13.3857 31.3958 13.3857 31.4842V50.0964C13.3857 50.8648 13.6305 51.504 14.2425 51.98C14.6573 52.2996 15.1469 52.4288 15.6637 52.4288H19.1726C19.6826 52.4288 20.077 52.7144 20.2267 53.17C20.3695 53.5917 20.2471 54.0745 19.873 54.3261C19.669 54.4621 19.397 54.5641 19.1522 54.5709C17.9554 54.5913 16.7586 54.5845 15.5617 54.5777C13.1748 54.5777 11.1824 52.6396 11.2028 50.1168C11.23 46.5535 11.2096 42.9902 11.2096 39.4201V31.4502C11.2096 29.757 11.9168 28.4445 13.3925 27.5877C13.8413 27.3293 14.3853 27.2273 14.8885 27.0505C14.9565 27.0301 15.0245 27.0165 15.0925 26.9961H29.4069L29.4137 27.0097Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M36.214 44.8939C36.1664 45.7984 35.84 46.5668 35.2076 47.1992C33.2559 49.1373 31.3043 51.0685 29.3322 52.993C29.1418 53.1766 28.8698 53.3126 28.6114 53.3874C27.265 53.775 25.9049 54.1286 24.5585 54.5094C24.1097 54.6318 23.6949 54.6114 23.3481 54.2714C22.9945 53.9246 22.974 53.503 23.1101 53.0474C23.5113 51.7349 23.9057 50.4225 24.3273 49.1169C24.4089 48.8585 24.5653 48.6068 24.7489 48.4164C26.6734 46.492 28.6114 44.5743 30.5563 42.6703C32.3447 40.9158 35.2416 41.5754 36.01 43.9079C36.1188 44.2275 36.146 44.5743 36.214 44.9007V44.8939ZM25.7213 51.9457C26.4081 51.7553 27.0338 51.5921 27.6594 51.4085C27.8226 51.3541 27.9926 51.2657 28.115 51.1501C29.3254 49.9669 30.5359 48.7701 31.7395 47.5732C31.8007 47.512 31.8619 47.4508 31.8891 47.4168L30.3659 45.9004C30.3659 45.9004 30.3455 45.914 30.3251 45.9276C29.0398 47.1992 27.7546 48.4572 26.4761 49.7357C26.4217 49.7901 26.3809 49.8445 26.3605 49.9125C26.1565 50.5653 25.9525 51.2249 25.7281 51.9457H25.7213ZM31.9639 44.3159L33.4872 45.8256C33.868 45.54 34.072 45.1659 33.9768 44.6763C33.8952 44.2411 33.6164 43.9623 33.1811 43.8467C32.6643 43.7175 32.2903 43.9419 31.9707 44.3159H31.9639Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.26 35.6252H16.7178C15.9834 35.6252 15.4938 35.0744 15.589 34.3876C15.657 33.9048 16.0514 33.5308 16.5614 33.4832C16.6158 33.4832 16.6702 33.4832 16.7246 33.4832H27.7885C28.4481 33.4832 28.9173 33.9184 28.9445 34.5236C28.9649 35.156 28.4821 35.632 27.8157 35.632C26.5645 35.632 25.3132 35.632 24.062 35.632H22.26V35.6252Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M22.2326 39.9365H16.738C15.9968 39.9365 15.5004 39.4128 15.582 38.7192C15.6432 38.2228 16.0444 37.8352 16.5612 37.7876C16.6224 37.7876 16.6904 37.7876 16.7516 37.7876H27.7612C28.4548 37.7876 28.9376 38.2296 28.9376 38.8552C28.9376 39.474 28.4616 39.9365 27.802 39.9365C26.4419 39.9365 25.0819 39.9365 23.7218 39.9365H22.2326Z",fill:"#54A0DE"}),(0,t.createElement)("path",{d:"M20.057 44.248C18.935 44.248 17.8129 44.248 16.6909 44.248C15.9701 44.248 15.4873 43.6836 15.5893 42.9899C15.6709 42.4663 16.1197 42.0991 16.7113 42.0991C17.7381 42.0991 18.7582 42.0991 19.785 42.0991C20.9954 42.0991 22.2127 42.0991 23.4231 42.0991C24.1439 42.0991 24.6267 42.6703 24.5247 43.3572C24.4431 43.8808 23.9943 44.248 23.4027 44.248C22.2875 44.248 21.179 44.248 20.057 44.248Z",fill:"#54A0DE"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_887_3322"},(0,t.createElement)("rect",{width:"96.9368",height:"80.2967",fill:"white",transform:"translate(0.29541 0.325928)"})))),Cn.placeholderLogo=(0,t.createElement)(yn.SVG,{width:"60",height:"57",viewBox:"0 0 60 57",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.Path,{d:"M19.7912 37.5017H27.8325V44.5394H19.9381C18.6896 43.9886 17.6615 43.2053 16.9149 42.2873C17.2087 40.7696 18.298 38.7869 19.7912 37.5017Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M20.2563 38.0891C19.1915 39.1907 18.1389 40.5248 17.7839 42.0425C18.4204 42.8013 19.2527 43.3888 20.1462 43.8172H26.9023V38.0891H20.2563Z",fill:"#7D5DC2"}),(0,t.createElement)(yn.Path,{d:"M18.3959 40.488C18.1878 40.7818 17.7962 41.969 17.7717 42.0424C18.4081 42.8013 19.2404 43.3888 20.1339 43.8172H23.7323V40.7451C21.9576 40.7328 20.1829 40.6472 18.3959 40.488Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M19.7545 43.0461C20.5868 43.3277 20.9784 43.8539 21.1008 44.5394H18.2001C18.3959 43.9519 18.9467 43.2297 19.7545 43.0461Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M19.7422 43.3645C19.2894 43.4869 18.91 43.8418 18.6652 44.2457H19.7545V43.3645H19.7422Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M22.6185 42.8748C23.7323 43.1807 24.2709 43.9273 24.4055 44.5393H20.5378C20.7948 43.8906 21.5782 43.0216 22.6185 42.8748Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M22.594 43.1809C21.9821 43.2911 21.3823 43.7194 21.0274 44.2457H22.6185V43.1809H22.594Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M37.4772 37.5017H29.4359V44.5394H37.3303C38.5788 43.9886 39.6069 43.2053 40.3535 42.2873C40.072 40.7696 38.9827 38.7869 37.4772 37.5017Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M37.0244 38.0891C38.0892 39.1907 39.1418 40.5248 39.4967 42.0425C38.8603 42.8013 38.028 43.3888 37.1345 43.8172H30.3783V38.0891H37.0244Z",fill:"#7D5DC2"}),(0,t.createElement)(yn.Path,{d:"M38.8725 40.488C39.0806 40.7818 39.4722 41.969 39.4967 42.0424C38.8603 42.8013 38.028 43.3888 37.1345 43.8172H33.5361V40.7451C35.3108 40.7328 37.0978 40.6472 38.8725 40.488Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M37.5262 43.0461C36.6939 43.3277 36.3022 43.8539 36.1798 44.5394H39.0806C38.8848 43.9519 38.334 43.2297 37.5262 43.0461Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M37.5384 43.3645C37.9913 43.4869 38.3707 43.8418 38.6155 44.2457H37.5262V43.3645H37.5384Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M34.6622 42.8748C33.5484 43.1807 33.0098 43.9273 32.8752 44.5393H36.7429C36.4858 43.8906 35.7025 43.0216 34.6622 42.8748Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M34.6744 43.1809C35.2864 43.2911 35.8861 43.7194 36.241 44.2457H34.6499V43.1809H34.6744Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M7.13561 39.6681C7.18457 40.9532 7.47831 41.9569 8.04133 42.5811C8.92257 42.5076 9.66918 41.5285 10.0119 40.684C9.49782 39.7905 8.49419 39.3866 7.13561 39.6681Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M7.58846 40.0229C7.61294 40.7695 7.80877 41.5406 8.21267 42.1036L8.55538 40.0719C8.24939 39.9985 7.91893 39.9985 7.58846 40.0229Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M9.36318 40.3534C9.44886 41.504 9.59573 42.5198 10.3179 43.5479C11.6152 43.2664 12.6311 42.5443 13.0595 41.3938C12.423 39.9373 10.9054 39.7415 9.36318 40.3534Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M10.5015 43.0584L11.3705 40.5004C10.8809 40.4025 10.3301 40.4759 9.80382 40.6473C9.88949 41.5163 10.0364 42.2874 10.5015 43.0584Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M13.6225 41.296C13.8428 42.6056 15.079 43.2543 15.7032 43.2176C15.9847 42.7402 16.2662 42.116 16.2662 41.3694L15.7277 40.9166C14.9077 40.7574 14.0387 40.8186 13.6225 41.296Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M15.4829 42.777C15.7277 42.4098 15.8868 41.8468 15.9113 41.3083L15.0301 41.1614L15.4829 42.777Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M16.2785 23.7446V41.3572C13.2309 41.7366 9.68142 41.6142 7.13561 39.6559C7.18457 38.0158 7.34368 36.4125 7.63743 34.8825C8.1882 32.1164 9.22856 29.5951 11.0278 27.5266C12.6189 25.7029 14.21 24.8339 16.2785 23.7446Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M7.99237 39.2519C9.5835 40.4759 13.4022 40.8553 15.4095 40.5983V25.1643C10.2322 27.9182 8.17596 32.9976 7.99237 39.2519Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M7.99237 39.252C8.80018 39.8763 10.171 40.2679 11.603 40.4882C11.8111 36.5594 11.7866 30.6477 10.9054 29.0811C8.98377 31.8105 8.11477 35.2987 7.99237 39.252Z",fill:"#A58DD4"}),(0,t.createElement)(yn.Path,{d:"M11.603 36.6328C12.2762 36.6328 12.8147 37.1713 12.8147 37.8445C12.8147 38.5177 12.2762 39.0562 11.603 39.0562C10.9298 39.0562 10.3913 38.5177 10.3913 37.8445C10.3913 37.1713 10.9298 36.6328 11.603 36.6328Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M14.4915 10.0119C14.1366 7.7231 14.5282 6.53587 14.9933 4.44292C16.4498 5.65463 17.38 6.52363 19.1547 7.41711C19.5097 5.20177 20.293 3.10882 21.4313 1.15051L22.1044 0C24.6992 1.95831 26.9146 3.52496 28.6281 6.11973C30.3416 3.52496 32.5569 1.95831 35.1517 0L35.8249 1.15051C36.9631 3.10882 37.7465 5.20177 38.1014 7.41711C39.8761 6.52363 40.8063 5.65463 42.2628 4.44292C42.7402 6.52363 43.1196 7.71086 42.7647 10.0119L45.9714 10.8931C45.3349 19.2649 44.6862 26.4005 43.8662 34.7723C43.756 35.9228 43.6337 37.0856 43.5113 38.2361C43.4745 38.5665 43.0706 39.1663 41.3571 39.1785C32.9853 39.7415 24.2219 39.7415 15.8623 39.1785C14.1488 39.154 13.7449 38.5665 13.7082 38.2361C13.5858 37.0611 13.4634 35.8861 13.3532 34.7111C13.3043 34.2338 13.2553 33.7564 13.2064 33.2668C12.5087 25.8008 11.8233 18.3592 11.248 10.8809L14.4548 9.99964H14.4915V10.0119Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M22.4594 1.75024C21.0763 4.10022 20.3052 6.58483 20.1584 9.15512C18.7386 8.61658 17.123 7.73534 15.7277 6.59707C15.4462 7.84549 15.5074 9.47334 15.8868 10.8931C14.7118 11.1624 13.6225 11.4439 12.5332 11.7621C13.1207 19.4485 13.6715 27.1349 14.4303 34.7968C14.5037 35.5556 14.6629 37.1957 14.7485 37.9546C15.0545 38.1259 15.691 38.1259 15.948 38.1381C24.3687 38.7012 32.8874 38.7012 41.3082 38.1381C41.5774 38.1137 42.2016 38.1137 42.5076 37.9546C42.5933 37.208 42.7524 35.5311 42.8258 34.7968C43.5725 27.1226 44.1355 19.4363 44.723 11.7621C43.6337 11.4439 42.5443 11.1624 41.3694 10.8931C41.7488 9.47334 41.81 7.84549 41.5285 6.59707C40.1454 7.74758 38.5176 8.61658 37.0978 9.15512C36.9509 6.59707 36.1798 4.10022 34.7968 1.75024C31.9817 3.87991 30.1335 5.42208 28.6281 8.50642C27.1104 5.42208 25.2745 3.87991 22.4472 1.75024H22.4594Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M22.4594 1.75024C22.6675 5.16505 23.5242 8.95928 25.1398 10.5504C22.9857 10.3179 21.8352 10.0608 20.1706 9.15512C18.7386 8.61658 17.123 7.73534 15.7277 6.59707C16.4743 8.84913 17.1964 10.4525 18.6774 12.0191C17.4167 11.9947 16.6946 11.5785 15.8868 10.8931C14.7118 11.1624 13.6225 11.4439 12.5332 11.7621C13.1207 19.4485 13.6715 27.1349 14.4303 34.7968C14.5037 35.5556 14.6629 37.1957 14.7485 37.9546C15.0545 38.1259 15.691 38.1259 15.948 38.1382C20.1584 38.4197 24.3932 38.5543 28.6281 38.5543V33.9767C22.0922 34.4908 16.1194 24.1852 22.9857 17.4167L21.6149 18.1756C21.4435 17.0863 21.7862 15.7277 22.2391 14.6262C23.1326 12.4842 25.507 10.8931 28.6281 10.5137V8.49418C27.1104 5.40984 25.2867 3.86767 22.4594 1.75024Z",fill:"#A58DD4"}),(0,t.createElement)(yn.Path,{d:"M38.5788 12.0192C40.0475 10.4525 40.7819 8.83692 41.5285 6.58486C41.81 7.83329 41.7488 9.46113 41.3694 10.8809C40.5616 11.5786 39.8394 11.9947 38.5788 12.0192ZM36.0942 11.3827C36.8285 11.3827 37.416 11.9825 37.416 12.7046C37.416 13.439 36.8163 14.0265 36.0942 14.0265C35.3598 14.0265 34.7723 13.4267 34.7723 12.7046C34.7723 11.9825 35.372 11.3827 36.0942 11.3827ZM40.9287 14.3692C41.4306 14.3692 41.8467 14.7853 41.8467 15.2871C41.8467 15.7889 41.4306 16.2051 40.9287 16.2051C40.4269 16.2051 40.0108 15.7889 40.0108 15.2871C40.0108 14.7731 40.4147 14.3692 40.9287 14.3692ZM32.1286 10.5382C33.7442 8.95932 34.6009 5.16509 34.809 1.73804C36.1921 4.08801 36.9632 6.57262 37.11 9.14291C35.4332 10.0486 34.2827 10.3057 32.1286 10.5382Z",fill:"#7D5DC2"}),(0,t.createElement)(yn.Path,{d:"M16.6334 13.3042C17.8329 13.3042 18.8121 14.2834 18.8121 15.4828C18.8121 16.6823 17.8329 17.6614 16.6334 17.6614C15.434 17.6614 14.4548 16.6823 14.4548 15.4828C14.4548 14.2834 15.434 13.3042 16.6334 13.3042ZM15.2259 19.9869C15.7032 19.9869 16.0949 20.3786 16.0949 20.8559C16.0949 21.3333 15.7032 21.7249 15.2259 21.7249C14.7486 21.7249 14.3569 21.3333 14.3569 20.8559C14.3569 20.3786 14.7486 19.9869 15.2259 19.9869Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M28.775 14.4915C33.9523 14.4915 38.1504 18.6896 38.1504 23.8669C38.1504 29.0442 33.9523 33.2423 28.775 33.2423C23.5977 33.2423 19.3995 29.0442 19.3995 23.8669C19.3995 18.6896 23.5977 14.4915 28.775 14.4915Z",fill:"#D3E8EF"}),(0,t.createElement)(yn.Path,{d:"M19.6443 21.7372C20.4644 18.2123 23.2794 15.4462 26.8289 14.6996C30.6966 14.4058 33.8299 17.1107 33.8299 20.7948C33.8299 24.5034 30.6476 27.7958 26.7432 28.1385C22.8266 28.4812 19.6566 25.764 19.6566 22.0432C19.6443 21.9453 19.6443 21.8352 19.6443 21.7372Z",fill:"white"}),(0,t.createElement)(yn.Path,{d:"M31.6635 20.2686C34.5887 20.2686 36.9509 22.6308 36.9509 25.556C36.9509 28.4812 34.5887 30.8434 31.6635 30.8434C28.7382 30.8434 26.376 28.4812 26.376 25.556C26.376 22.643 28.7382 20.2686 31.6635 20.2686Z",fill:"#EA4E64"}),(0,t.createElement)(yn.Path,{d:"M31.6635 20.2686C32.4345 20.2686 33.1689 20.4277 33.8298 20.7337V20.7949C33.8298 24.4055 30.8189 27.6245 27.0247 28.114C26.6086 27.3552 26.3638 26.4862 26.3638 25.556C26.3638 22.6308 28.726 20.2686 31.6635 20.2686Z",fill:"#EC6277"}),(0,t.createElement)(yn.Path,{d:"M31.6635 22.1289C33.5606 22.1289 35.1028 23.6588 35.1028 25.5682C35.1028 27.4653 33.5728 29.0075 31.6635 29.0075C29.7664 29.0075 28.2242 27.4775 28.2242 25.5682C28.2242 23.6711 29.7541 22.1289 31.6635 22.1289Z",fill:"#232323"}),(0,t.createElement)(yn.Path,{d:"M31.6635 22.1289C32.3611 22.1289 33.0098 22.337 33.5484 22.6919C32.8874 24.8828 31.1494 26.7432 28.9218 27.6244C28.4935 27.0492 28.2364 26.327 28.2364 25.5682C28.2242 23.6711 29.7541 22.1289 31.6635 22.1289Z",fill:"#323232"}),(0,t.createElement)(yn.Path,{d:"M27.9182 21.6028C29.1177 21.6028 30.0846 22.5697 30.0846 23.7692C30.0846 24.9686 29.1177 25.9356 27.9182 25.9356C26.7187 25.9356 25.7518 24.9686 25.7518 23.7692C25.7518 22.5697 26.7187 21.6028 27.9182 21.6028Z",fill:"white"}),(0,t.createElement)(yn.Path,{d:"M17.7472 28.163C20.4154 26.6942 24.43 29.2645 24.1362 33.426C21.5904 32.6426 18.8365 30.2437 17.7472 28.163Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M17.7472 28.1631C20.1706 28.212 22.8511 29.5829 24.1362 33.4261C21.0886 33.0833 18.249 30.7579 17.7472 28.1631Z",fill:"#A58DD4"}),(0,t.createElement)(yn.Path,{d:"M19.0079 31.639C19.3628 31.5166 21.0274 31.5533 21.162 31.7369C21.3211 31.9572 20.8805 33.0832 20.4154 33.8176C19.8034 33.328 19.3016 32.6548 19.0079 31.639Z",fill:"#7D5DC2"}),(0,t.createElement)(yn.Path,{d:"M18.5183 31.2351C18.8732 31.1127 20.5378 31.1495 20.6725 31.3331C20.8316 31.5534 20.3909 32.6794 19.9258 33.4138C19.3139 32.9242 18.8121 32.251 18.5183 31.2351Z",fill:"white"}),(0,t.createElement)(yn.Path,{d:"M19.0201 30.6599C19.1303 33.0221 22.2146 35.2987 25.1398 34.4541C25.2989 35.1396 24.8338 35.5435 24.3565 35.6414C21.7005 35.8739 19.1425 34.1971 18.298 32.0552C18.0532 31.4677 18.3225 30.7333 19.0201 30.6599Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M18.5183 35.0906C19.2527 36.4736 20.4032 37.1223 21.6639 37.3304C19.8647 38.1382 18.2735 37.0611 18.5183 35.0906Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M19.73 35.4209C21.1743 36.2287 22.5451 36.4857 24.1362 36.3389C22.9735 37.1099 20.6969 37.1956 19.73 35.4209Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M32.0184 11.8355C29.1177 6.81729 21.4802 9.74252 22.2513 15.3727C24.1607 12.2149 27.8448 11.1868 32.0184 11.8355Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M32.0184 11.8355C30.3783 9.00816 26.9268 8.82457 24.6135 10.379C24.6013 11.0399 24.7971 11.5172 25.1521 11.8967C27.0247 10.991 29.4726 10.6238 32.0184 11.8355Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M47.2076 30.917C50.2552 30.917 52.7521 33.3649 52.7521 36.4247C52.7521 39.4846 50.2552 41.9325 47.2076 41.9325C44.1599 41.9325 41.6631 39.4846 41.6631 36.4247C41.6631 33.3649 44.1599 30.917 47.2076 30.917Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M47.2076 31.7246C49.8268 31.7246 51.9443 33.8298 51.9443 36.4123C51.9443 39.0071 49.8268 41.1 47.2076 41.1C44.5883 41.1 42.4709 38.9948 42.4709 36.4123C42.4709 33.8298 44.6006 31.7246 47.2076 31.7246Z",fill:"#9478CF"}),(0,t.createElement)(yn.Path,{d:"M47.2076 31.7246C49.068 31.7246 50.6714 32.7894 51.4547 34.3316C51.626 36.7795 48.6396 38.5787 46.6446 37.7342C45.1758 36.9386 44.16 35.3842 44.16 33.6095C44.16 33.3157 44.1844 33.0342 44.2456 32.7527C45.0657 32.1163 46.0938 31.7246 47.2076 31.7246Z",fill:"#A58DD4"}),(0,t.createElement)(yn.Path,{d:"M45.2737 35.6904C45.0534 35.0172 47.5748 34.1727 47.8073 34.8459L50.3042 42.3242C50.5245 42.9973 48.0031 43.8419 47.7706 43.1687L45.2737 35.6904Z",fill:"#2B3039"}),(0,t.createElement)(yn.Path,{d:"M48.8966 34.9314C47.9052 35.5434 47.0852 36.1431 46.4977 37.2569C47.3422 38.285 48.456 38.848 49.6799 38.7011C50.6713 37.4527 50.1573 36.0207 48.8966 34.9314Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M49.6677 36.6448C49.5208 36.2165 49.2516 35.8126 48.9089 35.4209C48.15 35.9105 47.5258 36.4368 47.0485 37.1956C47.5748 37.2446 48.3948 37.1099 49.6677 36.6448Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M49.8513 37.9302C48.8599 38.5421 48.0399 39.1419 47.4524 40.2557C48.2969 41.2838 49.4107 41.8468 50.6346 41.6999C51.626 40.4515 51.112 39.0195 49.8513 37.9302Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M50.6224 39.5213C50.4755 39.0929 50.2062 38.689 49.8635 38.2974C49.1047 38.7869 48.4805 39.3132 48.0031 40.0721C48.5294 40.1333 49.3495 39.9864 50.6224 39.5213Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M44.6863 38.2238C45.6287 37.9912 46.461 37.8443 47.4769 38.1381C47.5993 39.2396 47.2933 40.2433 46.4977 40.8797C45.1758 40.7696 44.6128 39.6191 44.6863 38.2238Z",fill:"#5F3EA7"}),(0,t.createElement)(yn.Path,{d:"M45.2615 39.5579C45.0901 39.2152 45.0045 38.8235 44.9678 38.3952C45.7021 38.2238 46.3753 38.1504 47.1219 38.3095C46.8526 38.6644 46.2896 39.0683 45.2615 39.5579Z",fill:"#6F4BBB"}),(0,t.createElement)(yn.Path,{d:"M42.8014 17.9675C37.7954 18.249 33.9645 22.545 34.246 27.5509C34.5275 32.5569 38.8236 36.3878 43.8295 36.1063C48.8354 35.8248 52.6664 31.5288 52.3849 26.5228C52.1034 21.5169 47.8196 17.6859 42.8014 17.9675Z",fill:"#393F4C"}),(0,t.createElement)(yn.Path,{d:"M42.8748 19.0936C38.4931 19.3384 35.1272 23.1082 35.372 27.5021C35.6168 31.8839 39.3866 35.2497 43.7805 34.9927C48.1623 34.7479 51.5281 30.9781 51.2833 26.5842C51.0263 22.2025 47.2688 18.8366 42.8748 19.0936Z",fill:"#D3E8EF"}),(0,t.createElement)(yn.Path,{d:"M49.374 30.9781C50.1818 29.7297 50.6224 28.2242 50.5367 26.6209C50.3531 23.4508 48.1623 20.8683 45.2615 20.0728C45.029 22.8144 44.7842 25.5071 44.5271 28.2732C45.4941 28.6649 47.9909 29.9133 49.374 30.9781Z",fill:"white"}),(0,t.createElement)(yn.Path,{d:"M42.7524 19.9749C38.9337 20.1953 36.0085 23.4632 36.241 27.2819C36.2778 27.8204 36.3634 28.3467 36.5103 28.8363C36.4981 28.7262 36.4858 28.616 36.4858 28.4936C36.241 24.0629 39.6191 20.2687 44.0498 20.0117H44.0865C43.6581 19.9749 43.2053 19.9505 42.7524 19.9749Z",fill:"white"}),(0,t.createElement)(yn.Path,{d:"M36.5103 31.1617C36.6572 31.4065 36.8163 31.6391 36.9876 31.8594L39.3376 28.6037L44.7475 30.8557L47.8808 24.3811L51.0263 24.9808C50.9406 24.687 50.855 24.3933 50.7448 24.1118L47.4401 23.4753L44.368 29.8276L39.0806 27.6245L36.5103 31.1617Z",fill:"#999999"}),(0,t.createElement)(yn.Path,{d:"M39.1051 26.4739C40.0108 26.4249 40.7819 27.1104 40.8308 28.0161C40.8798 28.9218 40.1944 29.6929 39.2886 29.7418C38.3829 29.7908 37.6118 29.1054 37.5629 28.1997C37.5017 27.3062 38.1993 26.5351 39.1051 26.4739Z",fill:"#1EC185"}),(0,t.createElement)(yn.Path,{d:"M47.5625 22.3003C48.4683 22.2514 49.2393 22.9368 49.2883 23.8425C49.3373 24.7482 48.6518 25.5193 47.7461 25.5683C46.8404 25.6172 46.0693 24.9318 46.0204 24.0261C45.9592 23.1204 46.6568 22.3493 47.5625 22.3003Z",fill:"#EA4E64"}),(0,t.createElement)(yn.Path,{d:"M44.4537 28.7139C45.3594 28.6649 46.1305 29.3503 46.1795 30.2561C46.2284 31.1618 45.543 31.9329 44.6373 31.9818C43.7316 32.0308 42.9605 31.3454 42.9115 30.4397C42.8503 29.5339 43.548 28.7629 44.4537 28.7139Z",fill:"#FF893A"}),(0,t.createElement)(yn.Path,{d:"M8.98376 53.7435C8.98376 53.9883 8.9348 54.1841 8.82465 54.3187C8.71449 54.4534 8.54314 54.5146 8.31059 54.5146C8.07804 54.5146 7.90669 54.4411 7.80877 54.3187C7.69862 54.1964 7.64966 53.9883 7.64966 53.7435V52.8623C7.64966 52.6175 7.69862 52.4216 7.80877 52.287C7.91893 52.1646 8.09028 52.0912 8.31059 52.0912C8.54314 52.0912 8.71449 52.1646 8.82465 52.287C8.9348 52.4094 8.98376 52.6175 8.98376 52.8623V53.7435ZM10.1098 53.7435V52.8623C10.1098 52.6175 10.0731 52.3972 9.99964 52.1768C9.9262 51.9565 9.82828 51.7729 9.66917 51.6138C9.5223 51.4547 9.32647 51.3201 9.10616 51.2344C8.88585 51.1365 8.61658 51.0875 8.29835 51.0875C7.99237 51.0875 7.7231 51.1365 7.49055 51.2344C7.27024 51.3323 7.07441 51.4547 6.92753 51.6138C6.78066 51.7729 6.6705 51.9688 6.59707 52.1768C6.52363 52.3972 6.48691 52.6175 6.48691 52.8623V53.7435C6.48691 53.9883 6.52363 54.2208 6.59707 54.4289C6.6705 54.6492 6.76842 54.8328 6.92753 54.9919C7.07441 55.151 7.27024 55.2857 7.49055 55.3713C7.71086 55.4693 7.98013 55.5182 8.29835 55.5182C8.60434 55.5182 8.87361 55.4693 9.10616 55.3713C9.32647 55.2734 9.5223 55.151 9.66917 54.9919C9.81604 54.8328 9.9262 54.637 9.99964 54.4289C10.0731 54.2208 10.1098 53.9883 10.1098 53.7435ZM14.773 54.9674V52.6542C14.773 52.4216 14.7485 52.2013 14.6996 52.0177C14.6506 51.8219 14.5772 51.6505 14.467 51.5159C14.3569 51.3813 14.21 51.2711 14.0387 51.1977C13.8673 51.112 13.6348 51.0875 13.3655 51.0875C13.0962 51.0875 12.8514 51.1242 12.6434 51.1977C12.4353 51.2834 12.2639 51.3813 12.1048 51.5159C12.0559 51.4302 11.9824 51.3568 11.909 51.3078C11.8233 51.2466 11.7499 51.1977 11.652 51.1732C11.554 51.1487 11.4684 51.1365 11.3827 51.1365C11.2236 51.1365 11.0889 51.1732 10.9788 51.2466C10.8686 51.3201 10.8197 51.4302 10.8197 51.6016C10.8197 51.6873 10.8319 51.7485 10.8564 51.7974C10.8809 51.8464 10.9298 51.8953 10.9666 51.9198C11.04 51.981 11.0889 52.0422 11.1379 52.0912C11.1869 52.1401 11.2113 52.2503 11.2113 52.3972V54.9674C11.2113 55.1266 11.2603 55.2612 11.3705 55.3713C11.4806 55.4815 11.6152 55.5305 11.7744 55.5305C11.9335 55.5305 12.0681 55.4815 12.1783 55.3713C12.2884 55.2612 12.3374 55.1266 12.3374 54.9674V52.4828C12.423 52.3727 12.5087 52.2992 12.6311 52.238C12.7413 52.1768 12.8759 52.1401 13.035 52.1401C13.1574 52.1401 13.2553 52.1646 13.341 52.1891C13.4267 52.2258 13.4756 52.2748 13.5246 52.336C13.5613 52.3972 13.598 52.4584 13.6103 52.544C13.6225 52.6297 13.6348 52.7031 13.6348 52.7888V54.9674C13.6348 55.1266 13.6837 55.2612 13.7939 55.3713C13.904 55.4815 14.0387 55.5305 14.1978 55.5305C14.3569 55.5305 14.4915 55.4815 14.6017 55.3713C14.7118 55.2612 14.773 55.1266 14.773 54.9674ZM18.8855 54.1474C18.8855 53.9148 18.8488 53.7313 18.7876 53.5844C18.7141 53.4375 18.6285 53.3151 18.5183 53.2172C18.4081 53.1193 18.2857 53.0458 18.1511 52.9969C18.0165 52.9479 17.8696 52.899 17.735 52.8623C17.5881 52.8378 17.4657 52.8133 17.3433 52.7888C17.2209 52.7643 17.1108 52.7399 17.0128 52.7031C16.9149 52.6664 16.8415 52.6297 16.7925 52.5807C16.7436 52.5318 16.7069 52.4584 16.7069 52.3604C16.7069 52.2625 16.7558 52.1768 16.8415 52.1034C16.9272 52.03 17.074 52.0055 17.2699 52.0055C17.4167 52.0055 17.5514 52.0177 17.6738 52.0422C17.7962 52.0667 17.943 52.1156 18.1022 52.1646C18.2246 52.2013 18.3469 52.1891 18.4571 52.1279C18.5673 52.0667 18.6407 51.9688 18.6774 51.8464C18.7264 51.724 18.7141 51.6016 18.6529 51.4914C18.5917 51.3813 18.4938 51.2956 18.3714 51.2589C18.2123 51.2099 18.041 51.161 17.8696 51.1242C17.6983 51.0875 17.4657 51.0753 17.1964 51.0753C16.9884 51.0753 16.7803 51.0998 16.5967 51.161C16.4131 51.2222 16.2418 51.3078 16.0949 51.418C15.948 51.5282 15.8379 51.675 15.7522 51.8464C15.6665 52.0177 15.6298 52.2136 15.6298 52.4339C15.6298 52.6419 15.6543 52.8133 15.7155 52.9602C15.7644 53.107 15.8379 53.2172 15.9358 53.3029C16.0337 53.4008 16.1316 53.462 16.254 53.5232C16.3764 53.5721 16.4988 53.6211 16.6212 53.6456C16.7681 53.6823 16.9027 53.719 17.0496 53.7435C17.1964 53.768 17.3188 53.7925 17.429 53.8292C17.5391 53.8659 17.6248 53.9148 17.6983 53.9638C17.7717 54.025 17.7962 54.1107 17.7962 54.2086C17.7962 54.331 17.735 54.4411 17.6126 54.5146C17.4902 54.588 17.3311 54.6247 17.1108 54.6247C16.8904 54.6247 16.7191 54.6125 16.5967 54.5758C16.4743 54.5391 16.3519 54.5023 16.2295 54.4656C16.1194 54.4167 15.997 54.4289 15.8746 54.4779C15.7522 54.5268 15.6665 54.6247 15.6298 54.7716C15.5931 54.8818 15.6053 55.0042 15.6543 55.1266C15.7032 55.2489 15.7889 55.3346 15.9113 55.3713C16.0582 55.4203 16.2173 55.4693 16.4009 55.4937C16.5845 55.5305 16.817 55.5427 17.123 55.5427C17.3433 55.5427 17.5636 55.5182 17.7839 55.4693C18.0042 55.4203 18.1878 55.3469 18.3469 55.2245C18.5061 55.1143 18.6407 54.9674 18.7386 54.7961C18.8365 54.6247 18.8855 54.4167 18.8855 54.1596V54.1474ZM22.337 54.9797C22.337 54.8328 22.288 54.7227 22.1901 54.6247C22.0922 54.5268 21.9821 54.4779 21.8352 54.4779H21.6761C21.4068 54.4779 21.2355 54.4044 21.1375 54.2576C21.0519 54.1107 21.0029 53.8536 21.0029 53.5232V52.0544H21.6394C21.7618 52.0544 21.8719 52.0055 21.9698 51.9198C22.0555 51.8219 22.1045 51.7117 22.1045 51.5894C22.1045 51.4547 22.0555 51.3568 21.9698 51.2589C21.8841 51.1732 21.774 51.1242 21.6394 51.1242H21.0029V50.5612C21.0029 50.4021 20.9539 50.2675 20.8438 50.1573C20.7336 50.0472 20.599 49.986 20.4399 49.986C20.2808 49.986 20.1461 50.0349 20.036 50.1573C19.9258 50.2675 19.8646 50.4021 19.8646 50.5612V51.1242H19.73C19.6076 51.1242 19.4975 51.1732 19.3995 51.2589C19.3139 51.3446 19.2649 51.4547 19.2649 51.5894C19.2649 51.7117 19.3139 51.8219 19.3995 51.9198C19.4852 52.0177 19.5954 52.0544 19.73 52.0544H19.8646V53.5354C19.8646 53.8292 19.8891 54.0862 19.9503 54.331C20.0115 54.5758 20.1094 54.7716 20.2318 54.943C20.3665 55.1143 20.5256 55.2489 20.7336 55.3346C20.9417 55.4325 21.1987 55.4693 21.4925 55.4693H21.8107C21.9576 55.4693 22.0677 55.4203 22.1657 55.3224C22.288 55.2367 22.3248 55.1143 22.337 54.9797ZM25.2622 52.7031V52.8133H23.9649V52.7031C23.9649 52.4584 24.0138 52.2748 24.124 52.1524C24.2341 52.03 24.4055 51.9565 24.6258 51.9565C24.8461 51.9565 25.0052 52.03 25.1154 52.1524C25.2133 52.2748 25.2622 52.4584 25.2622 52.7031ZM26.3515 53.2539V52.899C26.3515 52.6542 26.3148 52.4216 26.2536 52.2136C26.1802 51.9933 26.0945 51.7974 25.9476 51.6383C25.813 51.467 25.6294 51.3446 25.4091 51.2344C25.1888 51.1365 24.9195 51.0875 24.6013 51.0875C24.2953 51.0875 24.0261 51.1365 23.8057 51.2344C23.5854 51.3323 23.4018 51.467 23.255 51.6383C23.1081 51.8097 23.0102 52.0055 22.9245 52.2258C22.8511 52.4461 22.8143 52.6909 22.8143 52.9235V53.7068C22.8143 53.9516 22.8511 54.1841 22.9123 54.4044C22.9735 54.6247 23.0714 54.8206 23.2183 54.9797C23.3651 55.151 23.5487 55.2857 23.769 55.3836C23.9893 55.4815 24.2708 55.5305 24.5891 55.5305C24.7971 55.5305 25.0052 55.506 25.2255 55.4815C25.4458 55.4448 25.6661 55.3713 25.9109 55.2612C26.0211 55.2122 26.0945 55.151 26.1312 55.0409C26.1802 54.943 26.1802 54.8328 26.1435 54.6982C26.1068 54.5758 26.0333 54.4901 25.9232 54.4289C25.813 54.3799 25.7029 54.3677 25.5927 54.4167C25.4458 54.4779 25.3112 54.5268 25.1643 54.5513C25.0297 54.588 24.8583 54.6003 24.6503 54.6003C24.4177 54.6003 24.2341 54.5268 24.124 54.3922C24.0138 54.2453 23.9526 54.0495 23.9526 53.8047V53.6456H25.9476C26.0578 53.6456 26.1435 53.6089 26.2169 53.5354C26.3148 53.462 26.3515 53.3641 26.3515 53.2539ZM30.2192 51.8219C30.2559 51.7117 30.2559 51.6016 30.2315 51.4792C30.1947 51.369 30.1335 51.2711 30.0234 51.2099C29.9622 51.1732 29.8888 51.1365 29.8031 51.112C29.7174 51.0875 29.6195 51.0753 29.5093 51.0753C29.4359 51.0753 29.3625 51.0875 29.2645 51.0875C29.1666 51.0998 29.0687 51.1243 28.9708 51.161C28.8729 51.1977 28.7627 51.2466 28.6526 51.3201C28.5424 51.3935 28.4445 51.4792 28.3466 51.6016C28.2976 51.4914 28.2119 51.3935 28.114 51.3201C28.0161 51.2344 27.8937 51.1732 27.7346 51.1365C27.7101 51.1242 27.6734 51.1242 27.6367 51.1242H27.551C27.3797 51.1242 27.245 51.161 27.1349 51.2344C27.037 51.3078 26.988 51.418 26.988 51.5894C26.988 51.675 27.0002 51.7362 27.0247 51.7852C27.0492 51.8341 27.0982 51.8831 27.1349 51.9076C27.2083 51.9688 27.2695 52.03 27.3062 52.0789C27.3552 52.1279 27.3797 52.238 27.3797 52.3849V54.9552C27.3797 55.1143 27.4286 55.2489 27.5388 55.3591C27.6489 55.4693 27.7836 55.5182 27.9427 55.5182C28.1018 55.5182 28.2364 55.4693 28.3466 55.3591C28.4567 55.2489 28.5057 55.1143 28.5057 54.9552V52.6175C28.5547 52.4461 28.6526 52.3115 28.775 52.238C28.8974 52.1646 29.0565 52.1279 29.2156 52.1279C29.3257 52.1279 29.3992 52.1279 29.4481 52.1401C29.4848 52.1524 29.5338 52.1524 29.5828 52.1646C29.7419 52.2013 29.8765 52.1768 29.9867 52.0912C30.1213 52.0422 30.1825 51.9321 30.2192 51.8219ZM5.43432 49.8391C5.43432 49.6922 5.38536 49.5698 5.27521 49.4597C5.17729 49.3495 5.04266 49.3006 4.88354 49.3006C4.77339 49.3006 4.67547 49.325 4.57756 49.3618C4.47964 49.3985 4.4062 49.4842 4.34501 49.6066L2.70492 52.9357L1.10155 49.6433C1.04035 49.5209 0.966917 49.4352 0.881241 49.374C0.795565 49.325 0.68541 49.2883 0.538536 49.2883C0.391663 49.2883 0.257029 49.3373 0.159113 49.4352C0.0489578 49.5331 0 49.6678 0 49.8146V55.0164C0 55.1633 0.0489578 55.2857 0.159113 55.3836C0.257029 55.4815 0.391663 55.5427 0.526297 55.5427C0.67317 55.5427 0.795565 55.4937 0.89348 55.3836C0.991396 55.2857 1.05259 55.151 1.05259 55.0164V51.8219L2.19086 54.1964C2.23982 54.3065 2.3255 54.3922 2.41117 54.4411C2.50909 54.4901 2.59476 54.5268 2.70492 54.5268C2.81508 54.5268 2.91299 54.5023 3.01091 54.4411C3.09658 54.3799 3.17002 54.2943 3.23122 54.1841L4.36949 51.8097V54.9919C4.36949 55.1388 4.41844 55.2612 4.5286 55.3713C4.62651 55.4815 4.76115 55.5305 4.90802 55.5305C5.0549 55.5305 5.17729 55.4815 5.27521 55.3713C5.37312 55.2612 5.43432 55.1388 5.43432 54.9919V49.8391Z",fill:"#393F4C"}),(0,t.createElement)(yn.Path,{d:"M37.2691 54.9675V52.6543C37.2691 52.4217 37.2447 52.2014 37.1957 52.0178C37.1467 51.822 37.0733 51.6506 36.9632 51.516C36.853 51.3814 36.7061 51.2712 36.5348 51.1855C36.3634 51.0999 36.1309 51.0754 35.8616 51.0754C35.5923 51.0754 35.3475 51.1121 35.1395 51.1855C34.9314 51.2712 34.7601 51.3691 34.6009 51.516C34.552 51.4303 34.4785 51.3569 34.4051 51.3079C34.3194 51.2467 34.246 51.1978 34.1481 51.1733C34.0502 51.1488 33.9645 51.1366 33.8788 51.1366C33.7197 51.1366 33.5851 51.1733 33.4749 51.2467C33.3648 51.3202 33.3158 51.4303 33.3158 51.6017C33.3158 51.6874 33.328 51.7486 33.3525 51.7975C33.377 51.8465 33.426 51.8954 33.4627 51.9321C33.5361 51.9933 33.5851 52.0545 33.634 52.1035C33.683 52.1525 33.7075 52.2626 33.7075 52.4095V54.9798C33.7075 55.1389 33.7564 55.2735 33.8666 55.3837C33.9767 55.4938 34.1114 55.5428 34.2705 55.5428C34.4296 55.5428 34.5642 55.4938 34.6744 55.3837C34.7845 55.2735 34.8335 55.1389 34.8335 54.9798V52.4952C34.9192 52.385 35.0048 52.3116 35.1272 52.2504C35.2374 52.1892 35.372 52.1525 35.5311 52.1525C35.6535 52.1525 35.7514 52.1769 35.8371 52.2014C35.9228 52.2381 35.9718 52.2871 36.0207 52.3483C36.0574 52.4095 36.0942 52.4707 36.1064 52.5564C36.1186 52.642 36.1309 52.7155 36.1309 52.8012V54.9798C36.1309 55.1389 36.1798 55.2735 36.29 55.3837C36.4001 55.4938 36.5348 55.5428 36.6939 55.5428C36.853 55.5428 36.9876 55.4938 37.0978 55.3837C37.2202 55.2613 37.2691 55.1266 37.2691 54.9675ZM41.3816 54.1597C41.3816 53.9272 41.3449 53.7436 41.2837 53.5967C41.2225 53.4498 41.1246 53.3274 41.0144 53.2295C40.9043 53.1316 40.7819 53.0582 40.6472 53.0092C40.5126 52.9603 40.3657 52.9113 40.2311 52.8868C40.0842 52.8624 39.9618 52.8379 39.8394 52.8134C39.717 52.7889 39.6069 52.7644 39.509 52.7277C39.411 52.691 39.3376 52.6543 39.2887 52.6053C39.2397 52.5564 39.203 52.4829 39.203 52.385C39.203 52.2871 39.2519 52.2014 39.3376 52.128C39.4233 52.0545 39.5702 52.0301 39.766 52.0301C39.9129 52.0301 40.0475 52.0423 40.1699 52.0668C40.2923 52.0913 40.4392 52.1402 40.5983 52.1892C40.7207 52.2259 40.8431 52.2137 40.9532 52.1525C41.0634 52.0913 41.1368 51.9933 41.1735 51.871C41.2225 51.7486 41.2102 51.6262 41.149 51.516C41.0878 51.4059 40.9899 51.3202 40.8675 51.2835C40.7084 51.2345 40.5371 51.1855 40.3657 51.1488C40.1944 51.1121 39.9618 51.0999 39.6926 51.0999C39.4845 51.0999 39.2764 51.1243 39.0928 51.1855C38.9092 51.2467 38.7379 51.3324 38.591 51.4426C38.4441 51.5527 38.334 51.6996 38.2483 51.871C38.1626 52.0423 38.1259 52.2381 38.1259 52.4584C38.1259 52.6665 38.1504 52.8379 38.2116 52.9847C38.2605 53.1316 38.334 53.2418 38.4319 53.3274C38.5298 53.4254 38.6277 53.4866 38.7501 53.5478C38.8725 53.5967 38.9949 53.6457 39.1173 53.6702C39.2642 53.7069 39.3988 53.7436 39.5457 53.7681C39.6926 53.7925 39.8149 53.817 39.9251 53.8537C40.0353 53.8905 40.1209 53.9394 40.1944 53.9884C40.2678 54.0496 40.2923 54.1353 40.2923 54.2332C40.2923 54.3556 40.2311 54.4657 40.1087 54.5392C39.9863 54.6126 39.8272 54.6493 39.6069 54.6493C39.3866 54.6493 39.2152 54.6371 39.0928 54.6004C38.9704 54.5636 38.848 54.5269 38.7256 54.4902C38.6155 54.4412 38.4931 54.4535 38.3707 54.5024C38.2483 54.5514 38.1626 54.6493 38.1259 54.7962C38.0892 54.9063 38.1014 55.0287 38.1504 55.1511C38.1993 55.2735 38.285 55.3592 38.4074 55.3959C38.5543 55.4449 38.7134 55.4938 38.897 55.5305C39.0806 55.5673 39.3131 55.5795 39.6191 55.5795C39.8394 55.5795 40.0597 55.555 40.28 55.5061C40.5004 55.4571 40.6839 55.3837 40.8431 55.2613C41.0022 55.1511 41.1368 55.0043 41.2347 54.8329C41.3326 54.6615 41.3816 54.4535 41.3816 54.1964V54.1597ZM43.3889 54.9675V51.6384C43.3889 51.4793 43.3399 51.3447 43.2298 51.2345C43.1196 51.1243 42.985 51.0631 42.8259 51.0631C42.6667 51.0631 42.5321 51.1121 42.422 51.2345C42.3118 51.3447 42.2628 51.4793 42.2628 51.6384V54.9675C42.2628 55.1266 42.3118 55.2613 42.422 55.3714C42.5321 55.4816 42.6667 55.5305 42.8259 55.5305C42.985 55.5305 43.1196 55.4816 43.2298 55.3714C43.3277 55.2613 43.3889 55.1266 43.3889 54.9675ZM43.4501 49.8759C43.4501 49.7046 43.3889 49.5455 43.2665 49.4353C43.1441 49.3129 42.9972 49.2517 42.8259 49.2517C42.6545 49.2517 42.4954 49.3129 42.373 49.4353C42.2506 49.5577 42.1894 49.7046 42.1894 49.8759C42.1894 50.0473 42.2506 50.2064 42.373 50.3165C42.4954 50.4389 42.6423 50.5001 42.8259 50.5001C42.9972 50.5001 43.1563 50.4389 43.2665 50.3165C43.3889 50.2064 43.4501 50.0473 43.4501 49.8759ZM46.8037 52.3116V54.0251C46.7058 54.1108 46.5956 54.1597 46.4732 54.1964C46.3508 54.2332 46.2407 54.2576 46.1427 54.2576C45.898 54.2576 45.7266 54.1842 45.6409 54.0618C45.543 53.9394 45.5063 53.7436 45.5063 53.4988V52.8256C45.5063 52.2871 45.7266 52.0301 46.1427 52.0301C46.2529 52.0301 46.3631 52.0545 46.4732 52.1035C46.5956 52.1525 46.6935 52.2259 46.8037 52.3116ZM47.9297 51.6506C47.9297 51.4915 47.8807 51.3569 47.7828 51.2467C47.6849 51.1366 47.538 51.0754 47.3667 51.0754C47.2565 51.0754 47.1464 51.1121 47.0607 51.1733C46.9628 51.2467 46.9016 51.3202 46.8526 51.4181C46.718 51.3079 46.5834 51.2223 46.4243 51.1611C46.2651 51.0999 46.0938 51.0631 45.9224 51.0631C45.6409 51.0631 45.4084 51.0999 45.2125 51.1855C45.0167 51.2712 44.8576 51.3936 44.7352 51.565C44.6128 51.7241 44.5271 51.9321 44.4659 52.1647C44.417 52.3972 44.3803 52.6665 44.3803 52.9725V53.2907C44.3803 53.5967 44.4047 53.866 44.4537 54.1108C44.5027 54.3433 44.5883 54.5514 44.6985 54.7105C44.8086 54.8696 44.9678 54.992 45.1636 55.0777C45.3594 55.1634 45.592 55.2001 45.8857 55.2001C46.0448 55.2001 46.1917 55.1756 46.3631 55.1266C46.5222 55.0777 46.669 55.0165 46.7914 54.9308V55.1511C46.7914 55.7631 46.5222 56.0691 45.9836 56.0691C45.8368 56.0691 45.7144 56.0568 45.6287 56.0446C45.5308 56.0324 45.4573 56.0079 45.3961 55.9957C45.3227 55.9712 45.2737 55.9589 45.2125 55.9467C45.1636 55.9345 45.1024 55.9222 45.0412 55.91C44.9188 55.8977 44.8086 55.9467 44.7107 56.0446C44.6128 56.1425 44.5761 56.2527 44.5761 56.3628C44.5761 56.473 44.6128 56.5587 44.674 56.6321C44.7352 56.7055 44.8209 56.7545 44.9066 56.8035C45.0779 56.8769 45.2615 56.9258 45.4696 56.9503C45.6776 56.9748 45.8857 56.987 46.0815 56.987C46.7058 56.987 47.1709 56.8157 47.4768 56.473C47.7828 56.1303 47.9419 55.6652 47.9419 55.0777L47.9297 51.6506ZM52.5807 54.9675V52.6543C52.5807 52.4217 52.5562 52.2014 52.5073 52.0178C52.4583 51.822 52.3849 51.6506 52.2747 51.516C52.1646 51.3814 52.0177 51.2712 51.8463 51.1855C51.6627 51.0999 51.4424 51.0754 51.1732 51.0754C50.9651 51.0754 50.7693 51.0999 50.6101 51.1488C50.4388 51.1978 50.2919 51.259 50.1695 51.3569V49.9861C50.1695 49.827 50.1206 49.6923 50.0104 49.5822C49.9003 49.472 49.7656 49.4231 49.6065 49.4231C49.4474 49.4231 49.3128 49.472 49.2026 49.5822C49.0925 49.6923 49.0435 49.827 49.0435 49.9861V54.9798C49.0435 55.1389 49.0925 55.2735 49.2026 55.3837C49.3128 55.4938 49.4474 55.5428 49.6065 55.5428C49.7656 55.5428 49.9003 55.4938 50.0104 55.3837C50.1206 55.2735 50.1695 55.1389 50.1695 54.9798V52.4952C50.2552 52.385 50.3409 52.3116 50.4633 52.2504C50.5734 52.1892 50.7203 52.1525 50.8794 52.1525C51.0018 52.1525 51.0997 52.1769 51.1854 52.2014C51.2711 52.2381 51.32 52.2871 51.369 52.3483C51.4057 52.4095 51.4424 52.4707 51.4547 52.5564C51.4669 52.642 51.4792 52.7155 51.4792 52.8012V54.9798C51.4792 55.1389 51.5281 55.2735 51.6383 55.3837C51.7484 55.4938 51.8831 55.5428 52.0422 55.5428C52.2013 55.5428 52.3359 55.4938 52.4461 55.3837C52.5317 55.2735 52.5807 55.1389 52.5807 54.9675ZM56.2648 54.9798C56.2648 54.8329 56.2158 54.7227 56.1179 54.6248C56.02 54.5269 55.9098 54.478 55.763 54.478H55.6038C55.3346 54.478 55.1632 54.4045 55.0653 54.2576C54.9796 54.1108 54.9307 53.8537 54.9307 53.5233V52.0545H55.5671C55.6895 52.0545 55.7997 52.0056 55.8976 51.9199C55.9833 51.822 56.0322 51.7118 56.0322 51.5894C56.0322 51.4671 55.9833 51.3569 55.8976 51.259C55.8119 51.1733 55.7018 51.1243 55.5671 51.1243H54.9429V50.5613C54.9429 50.4022 54.894 50.2676 54.7838 50.1574C54.6736 50.0473 54.539 49.9861 54.3799 49.9861C54.2208 49.9861 54.0862 50.035 53.976 50.1574C53.8658 50.2676 53.8046 50.4022 53.8046 50.5613V51.1243H53.67C53.5476 51.1243 53.4375 51.1733 53.3395 51.259C53.2539 51.3447 53.2049 51.4548 53.2049 51.5894C53.2049 51.7118 53.2539 51.822 53.3395 51.9199C53.4252 52.0178 53.5354 52.0545 53.67 52.0545H53.8046V53.5355C53.8046 53.8293 53.8291 54.0863 53.8903 54.3311C53.9515 54.5759 54.0494 54.7717 54.1718 54.9431C54.2942 55.1144 54.4656 55.249 54.6736 55.3347C54.8817 55.4326 55.1387 55.4694 55.4325 55.4694H55.7507C55.8976 55.4694 56.0077 55.4204 56.1057 55.3225C56.2158 55.2368 56.2525 55.1144 56.2648 54.9798ZM59.8999 54.1475C59.8999 53.9149 59.8632 53.7313 59.802 53.5845C59.7285 53.4376 59.6429 53.3152 59.5327 53.2173C59.4226 53.1194 59.3002 53.0459 59.1655 52.997C59.0309 52.948 58.884 52.8991 58.7494 52.8746C58.6025 52.8501 58.4801 52.8256 58.3577 52.8012C58.2353 52.7767 58.1252 52.7522 58.0273 52.7155C57.9293 52.6788 57.8559 52.642 57.8069 52.5808C57.758 52.5319 57.7213 52.4584 57.7213 52.3605C57.7213 52.2626 57.7702 52.1769 57.8559 52.1035C57.9416 52.0301 58.0885 52.0056 58.2843 52.0056C58.4312 52.0056 58.5658 52.0178 58.6882 52.0423C58.8106 52.0668 58.9575 52.1157 59.1166 52.1647C59.239 52.2014 59.3614 52.1892 59.4715 52.128C59.5817 52.0668 59.6551 51.9689 59.6918 51.8465C59.7408 51.7241 59.7285 51.6017 59.6673 51.4915C59.6061 51.3814 59.5082 51.2957 59.3858 51.259C59.2267 51.21 59.0554 51.1611 58.884 51.1243C58.7127 51.0876 58.4801 51.0754 58.2109 51.0754C58.0028 51.0754 57.7947 51.0999 57.6111 51.1611C57.4275 51.2223 57.2562 51.3079 57.1093 51.4181C56.9624 51.5282 56.8523 51.6751 56.7666 51.8465C56.6809 52.0178 56.6442 52.2137 56.6442 52.434C56.6442 52.642 56.6687 52.8134 56.7299 52.9603C56.7788 53.1071 56.8523 53.2173 56.9502 53.303C57.0481 53.4009 57.146 53.4621 57.2684 53.5233C57.3908 53.5722 57.5132 53.6212 57.6356 53.6457C57.7825 53.6824 57.9171 53.7191 58.064 53.7436C58.2109 53.7681 58.3332 53.7925 58.4434 53.8293C58.5536 53.866 58.6392 53.9149 58.7127 53.9639C58.7861 54.0251 58.8106 54.1108 58.8106 54.2087C58.8106 54.3311 58.7494 54.4412 58.627 54.5147C58.5046 54.5881 58.3455 54.6248 58.1252 54.6248C57.9049 54.6248 57.7335 54.6126 57.6111 54.5759C57.4765 54.5392 57.3663 54.5024 57.2439 54.4657C57.1338 54.4168 57.0114 54.429 56.889 54.478C56.7666 54.5269 56.6809 54.6248 56.6442 54.7717C56.6075 54.8819 56.6197 55.0043 56.6687 55.1266C56.7176 55.249 56.8033 55.3347 56.9257 55.3714C57.0726 55.4204 57.2317 55.4694 57.4153 55.4938C57.5989 55.5306 57.8314 55.5428 58.1374 55.5428C58.3577 55.5428 58.578 55.5183 58.7983 55.4694C59.0187 55.4204 59.2022 55.347 59.3614 55.2246C59.5205 55.1144 59.6551 54.9675 59.753 54.7962C59.8509 54.6248 59.8999 54.4168 59.8999 54.1597V54.1475ZM32.3856 54.9798V49.8759C32.3856 49.7168 32.3366 49.5822 32.2142 49.4598C32.1041 49.3496 31.9695 49.2884 31.7981 49.2884C31.639 49.2884 31.5044 49.3374 31.3942 49.4598C31.284 49.5699 31.2351 49.7046 31.2351 49.8759V54.9798C31.2351 55.1389 31.284 55.2735 31.3942 55.3959C31.5044 55.5061 31.639 55.5673 31.7981 55.5673C31.9572 55.5673 32.0918 55.5183 32.2142 55.3959C32.3366 55.2735 32.3856 55.1389 32.3856 54.9798Z",fill:"#489BE8"})),Cn.blockIcon=(0,t.createElement)(yn.SVG,{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.Path,{d:"M7.53325 23.2688C7.37372 24.5627 8.41065 25.254 9.58938 24.7311C8.75629 24.5893 8.02069 24.1728 7.53325 23.2688Z",fill:"#373737"}),(0,t.createElement)(yn.Path,{d:"M8.3309 23.4905C8.96901 24.6515 10.4579 24.5894 11.2024 24.0931C10.2009 24.2084 9.19944 23.9956 8.3309 23.4905Z",fill:"#373737"}),(0,t.createElement)(yn.Path,{d:"M8.59678 21.9306C8.84493 21.4786 9.03105 20.938 8.94242 20.8228C8.88038 20.7341 8.31317 20.6987 7.90549 20.7164C7.87891 20.6012 7.86118 20.4949 7.86118 20.3796C7.41805 20.4328 7.23193 20.9025 7.3826 21.2925C7.94094 22.7016 9.59826 23.7918 11.3353 23.6322C11.6455 23.5702 11.9469 23.3043 11.8494 22.8612C10.644 23.2157 9.38555 22.7371 8.60564 21.9306H8.59678Z",fill:"#373737"}),(0,t.createElement)(yn.Path,{d:"M16.3427 8.10481C14.4461 4.8345 9.46533 6.73997 9.9705 10.418C11.2201 8.35297 13.6219 7.6794 16.3427 8.10481Z",fill:"#373737"}),(0,t.createElement)(yn.Path,{d:"M28.9276 21.5316L28.9099 21.5138C28.9099 21.5138 28.8301 21.4518 28.7681 21.4075C28.7592 21.3986 28.7415 21.3898 28.7326 21.3809C29.61 20.0692 29.938 18.5005 29.6544 16.9496C29.3619 15.3632 28.4756 13.9806 27.1551 13.0678C26.5524 12.6512 25.8966 12.3499 25.1876 12.1726C25.3117 10.6571 25.4357 9.11502 25.5598 7.50203V7.4134L23.4771 6.83733C23.6632 5.55225 23.4771 4.77234 23.2378 3.71768V3.68223C23.2024 3.54929 23.1669 3.40749 23.1315 3.26569L23.096 3.08844L22.5997 3.49612C21.8818 4.09878 21.3058 4.57736 20.3929 5.05594C20.1536 3.65564 19.6573 2.31739 18.9306 1.07662L18.4254 0.208081L18.3279 0.278982C18.2127 0.367609 18.0886 0.456235 17.9734 0.544861C16.4756 1.67042 15.1728 2.6453 14.1359 4.16081C13.0901 2.6453 11.7784 1.66155 10.2629 0.518273L9.84638 0.199219L9.34121 1.06776C8.60561 2.31739 8.10931 3.65564 7.87002 5.04708C6.9483 4.5685 6.38109 4.08991 5.65436 3.47839L5.16691 3.07071L5.03397 3.65564C4.77696 4.77234 4.5997 5.52566 4.78582 6.8196L2.68538 7.39567V7.4843C2.95126 10.8787 3.24372 14.211 3.52733 17.313C3.16396 17.6143 2.8449 17.9245 2.5613 18.2524C1.45347 19.5375 0.717873 21.1239 0.327917 23.1091C0.132939 24.1549 0.0265879 25.2096 0 26.2465C0.0354505 27.1327 0.239291 27.7974 0.620384 28.214L0.655835 28.2583H0.70901C1.0192 28.2229 1.32939 28.0456 1.59527 27.7443C1.69276 28.1431 1.86115 28.5153 2.09158 28.8432L2.13589 28.9053L2.20679 28.8876C3.06647 28.7014 3.70458 28.2317 4.01477 27.567C4.1034 27.567 4.20089 27.567 4.28951 27.567C4.5288 28.2672 5.21123 28.666 5.66322 28.666C5.68095 28.666 5.68981 28.666 5.70753 28.666H5.76071L5.7873 28.6128C6.02659 28.2406 6.15953 27.8063 6.17725 27.3455V26.0692C6.26588 26.0692 6.36337 26.0781 6.46086 26.087C6.68242 26.1047 6.90399 26.1135 7.13442 26.1224C6.75332 26.7251 6.49631 27.3632 6.38109 27.9304V27.9836L6.40768 28.019C6.70015 28.3824 7.04579 28.7014 7.43575 28.9673C7.33826 29.1091 7.26736 29.2421 7.22304 29.3839L7.17873 29.5257H13.7282V26.3085H14.5613V29.5257H21.1196L21.0665 29.375C21.0133 29.2243 20.9424 29.0914 20.8538 28.9584C21.2349 28.6926 21.5805 28.3735 21.873 28.0102L21.9084 27.9747V27.9215C21.7932 27.3543 21.5273 26.7162 21.1462 26.1135C21.5894 26.087 22.0236 26.0604 22.4579 26.0338C22.644 26.0338 22.839 26.0161 23.0428 25.9806C23.7164 27.115 24.9306 27.8152 26.2422 27.8152H26.2777L26.5259 28.5508C26.6411 28.8698 27.1817 28.8166 27.6071 28.6748C28.0325 28.533 28.4934 28.2494 28.387 27.9304L28.2984 27.6822C28.3604 27.6822 28.4313 27.6822 28.5111 27.6645H28.5554L28.582 27.6291C28.8035 27.3632 28.9365 27.0353 28.9453 26.6896C30.3456 25.2539 30.3456 22.9496 28.9188 21.5227L28.9276 21.5316ZM19.9321 26.1933C20.2954 26.6542 20.579 27.1682 20.7651 27.7177C20.5968 27.8861 20.3929 28.0456 20.1713 28.1963L19.6839 28.5242H15.5628V26.3174C17.1049 26.2997 18.5672 26.2554 19.9321 26.1933ZM27.421 23.0914L27.3589 23.0382L27.288 23.0825C27.1285 23.18 26.9778 23.2775 26.8449 23.375L26.7917 23.2243C27.3589 22.8876 27.8552 22.471 28.2718 21.9836C29.3796 22.9762 29.5657 24.6158 28.6972 25.8299C28.5643 25.5907 28.4047 25.3868 28.2275 25.2184C28.4756 24.5271 28.1832 23.7561 27.421 23.1003V23.0914ZM26.0384 27.0707C26.0384 27.0707 25.9941 27.0707 25.9675 27.0707C25.9852 27.053 26.003 27.0353 26.0207 27.0175L26.0384 27.0707ZM24.6027 25.2096L23.9646 25.3868C23.9646 25.3868 23.9646 25.3514 23.9646 25.3336L24.0975 24.0397C24.39 24.022 24.6736 23.9865 24.966 23.9156L25.3471 25.05C25.099 25.0766 24.8508 25.1298 24.5849 25.2007L24.6027 25.2096ZM23.9557 25.4311H24.5229C24.5052 26.0249 24.6736 26.5035 24.9926 26.8048C24.4874 26.5744 24.062 26.2022 23.7518 25.7236C23.8759 25.6172 23.938 25.5109 23.9557 25.4311ZM3.10192 27.115C2.99557 27.3455 2.83604 27.5404 2.62334 27.6645C2.58789 27.567 2.5613 27.4607 2.54357 27.3366L2.15362 25.2627L1.41802 26.2731L0.983752 26.7339C1.03693 25.7413 1.16987 24.022 1.32053 23.313C1.67504 21.5138 2.33087 20.0781 3.33235 18.9348C3.4387 18.8196 3.53619 18.7044 3.64254 18.598C3.73117 19.5907 3.82866 20.5833 3.92614 21.5759L4.07681 23.0382C4.13885 23.7384 4.21861 24.4474 4.28951 25.1475L4.30724 25.3425C4.32496 25.4932 4.4579 25.8477 5.16691 25.9983V26.9023L5.07829 26.5655H4.36928C4.22747 26.5655 4.11226 26.5655 3.97932 26.5655L3.35007 26.539L3.10192 27.115ZM4.98966 23.0648C4.82127 21.3455 4.65288 19.5641 4.51108 17.7827C4.48449 17.4725 4.4579 17.1623 4.43131 16.861C4.29838 15.2657 4.1743 13.6704 4.05908 12.0751L4.02363 11.5877C3.93501 10.4356 3.84638 9.27455 3.75775 8.12241C4.43131 7.92743 5.11374 7.75018 5.84934 7.58179L5.96455 7.5552L5.93796 7.44885C5.7164 6.6069 5.66322 5.64087 5.79616 4.87869C6.62925 5.53452 7.56869 6.06628 8.57016 6.44737L8.71196 6.50055V6.34988C8.80945 4.73689 9.28804 3.1682 10.1477 1.68814C11.9202 3.0264 13.0724 4.01015 14.0384 5.97765L14.1359 6.18149L14.2334 5.97765C15.1994 4.01015 16.3516 3.0264 18.1241 1.68814C18.966 3.15934 19.4446 4.72802 19.551 6.35875V6.50941L19.7016 6.45624C20.7031 6.08401 21.6337 5.55225 22.4845 4.88755C22.6174 5.6586 22.5731 6.62463 22.3427 7.45771L22.3161 7.56406L22.4313 7.59065C23.1669 7.75904 23.8582 7.93629 24.5229 8.13127L24.2304 12.0042C23.9468 11.9777 23.6632 11.9777 23.3796 11.9865C22.1034 12.0574 20.8715 12.536 19.8966 13.3425C19.2319 11.8802 18.0443 10.7546 16.5465 10.1608C14.9956 9.54043 13.3028 9.56702 11.7696 10.2317C10.2452 10.8876 9.05761 12.1017 8.44609 13.6438C7.83456 15.1859 7.85229 16.8698 8.50812 18.3942C7.99409 18.3144 7.46233 18.3942 6.98375 18.6601L6.61152 18.8639H7.03693C7.77253 18.8905 8.48154 19.0943 9.10192 19.4843C9.49188 20.0515 9.97046 20.5478 10.5288 20.9644C10.7858 21.3898 10.9719 21.824 11.1049 22.2406L11.2733 22.7989L11.3176 22.2229C11.3353 21.9747 11.3353 21.7177 11.2999 21.4695C13.5775 22.6926 16.3427 22.3824 18.3013 20.6896C19.2319 22.5862 21.0931 23.8624 23.2024 24.0486C23.1758 24.2258 23.1581 24.4119 23.1492 24.5803L23.2555 24.6158H23.1492L23.1226 24.8905C23.1226 24.9525 23.1049 25.0146 23.1049 25.0766C23.0162 25.1121 22.9188 25.1298 22.8124 25.1387C22.7326 25.1387 22.644 25.1475 22.5554 25.1564H22.5288C22.5288 25.1564 22.449 25.1564 22.4225 25.1564C21.7666 25.1918 21.1108 25.2361 20.4638 25.2716C18.4963 25.3691 16.5554 25.4223 14.6854 25.4311H13.6396C11.7696 25.4311 9.82866 25.3691 7.86115 25.2716H7.70162C7.16987 25.2361 6.63811 25.2007 6.09749 25.1652L5.88479 25.1475C5.68095 25.1475 5.48597 25.1298 5.32644 25.0943H5.29985C5.29985 25.0943 5.23781 25.0678 5.20236 25.0589C5.14919 24.6158 5.07829 23.8181 5.02511 23.2952L4.99852 23.0559L4.98966 23.0648ZM14.7563 14.1224C15.1728 14.406 15.421 14.8669 15.421 15.372C15.421 16.2051 14.7474 16.8787 13.9143 16.8787C13.7814 16.8787 13.6484 16.861 13.4889 16.8078L13.3383 16.7635V16.9141C13.3914 17.8802 13.8168 18.8019 14.5347 19.4223C15.0665 19.892 15.7223 20.1844 16.4225 20.2642C15.9173 20.3972 15.4387 20.4592 14.9069 20.4326C13.356 20.3706 11.9557 19.7768 11.0694 18.8019C10.3338 17.9865 9.97932 16.9496 10.0414 15.8063C10.192 13.2273 12.1418 11.5611 14.9956 11.5611C16.6617 11.5611 17.8759 12.6601 18.5583 13.4932C18.0709 13.3248 17.5391 13.2184 17.0606 13.2007C16.2363 13.1564 15.4298 13.4134 14.7474 13.9274L14.6233 14.0249L14.7474 14.1135L14.7563 14.1224ZM27.7134 15.8418C27.678 15.5582 27.5451 15.3011 27.3323 15.1062C27.0931 14.8935 26.7917 14.796 26.4815 14.8048C26.1625 14.8226 25.8789 14.9644 25.6662 15.1948C25.4535 15.4252 25.356 15.7354 25.3737 16.0456C25.3914 16.3381 25.5155 16.6128 25.7194 16.8255L24.6647 18.9969C24.5938 18.9969 24.5229 18.988 24.4431 18.988C24.1329 19.0057 23.8493 19.1475 23.6366 19.3779C23.6366 19.3779 23.6278 19.3957 23.6189 19.3957L22.192 18.8019C22.2186 18.5183 22.1388 18.2435 21.9705 18.0131C21.7843 17.7561 21.5096 17.5877 21.1994 17.5434C20.8892 17.4902 20.5702 17.57 20.322 17.7561C20.065 17.9422 19.8966 18.2169 19.8523 18.5271C19.808 18.8373 19.8789 19.1564 20.065 19.4045L19.2851 20.5035C19.1787 20.3174 19.0812 20.1047 18.9926 19.8831C18.9838 19.8565 18.966 19.7945 18.9394 19.7236C19.8523 18.7576 20.3575 17.4991 20.3575 16.1697C20.3575 15.6025 20.26 15.0441 20.0739 14.4946C20.127 14.4326 20.1713 14.3706 20.1891 14.3617C21.0665 13.5198 22.2186 13.0146 23.4239 12.9437C23.6987 12.926 23.9734 12.9437 24.2482 12.9703C24.4786 12.9969 24.7356 13.0412 24.9749 13.1032C26.4904 13.4932 27.7489 14.5567 28.3781 15.9747L27.7223 15.8506L27.7134 15.8418ZM24.0089 23.1003C22.3516 23.1977 20.7474 22.471 19.7194 21.1682L20.6677 19.8565C21.1108 19.9983 21.5982 19.8565 21.9084 19.5109L23.3353 20.1047C23.3353 20.1579 23.3353 20.2022 23.3353 20.2554C23.3619 20.7428 23.6898 21.1682 24.1507 21.31L24.2304 21.3366C24.3279 21.3632 24.4343 21.372 24.5672 21.372C24.9926 21.3455 25.3826 21.0884 25.5598 20.7073C25.6485 20.539 25.6839 20.344 25.675 20.1313C25.6573 19.8388 25.5332 19.5641 25.3205 19.3514L26.3752 17.18C26.4461 17.1889 26.5259 17.1977 26.5968 17.1889C27.0044 17.1623 27.3678 16.9319 27.5628 16.5862L28.6529 16.7901C29.0074 18.2169 28.7326 19.7236 27.8907 20.9289C27.7932 21.0707 27.6869 21.2125 27.5716 21.3455C26.6854 22.3735 25.4003 23.0116 24.0532 23.0914H24L24.0089 23.1003ZM7.50665 27.7354C7.69276 27.1948 7.97637 26.6808 8.33973 26.211C9.70458 26.2731 11.1758 26.3174 12.7001 26.3351V28.5419H8.58789L8.10044 28.214C7.88774 28.0722 7.6839 27.9038 7.50665 27.7354Z",fill:"#373737"})),Cn.themeIcon=(e="#EB5757")=>(0,t.createElement)(yn.SVG,{width:"14",height:"19",viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.Path,{d:"M7.875 0.899463C7.875 1.59183 8.0816 2.24711 8.49479 2.8653C8.93229 3.48349 9.44271 4.06458 10.026 4.60859C10.6337 5.15259 11.2292 5.73369 11.8125 6.35188C12.4201 6.97007 12.9306 7.76135 13.3438 8.72572C13.7812 9.66537 14 10.7163 14 11.8785C14 13.832 13.3073 15.5011 11.9219 16.8858C10.5608 18.2953 8.92014 19 7 19C5.07986 19 3.42708 18.2953 2.04167 16.8858C0.680556 15.5011 0 13.832 0 11.8785C0 9.94973 0.668403 8.28062 2.00521 6.87116C2.27257 6.57443 2.58854 6.50024 2.95312 6.64861C3.31771 6.79697 3.5 7.08134 3.5 7.50171V10.6545C3.5 11.3221 3.71875 11.8908 4.15625 12.3607C4.61806 12.8305 5.16493 13.0654 5.79688 13.0654C6.45312 13.0654 7.01215 12.8428 7.47396 12.3978C7.93576 11.9279 8.16667 11.3592 8.16667 10.6916C8.16667 10.2712 8.04514 9.86318 7.80208 9.46754C7.58333 9.0719 7.31597 8.71336 7 8.3919C6.68403 8.07044 6.34375 7.73662 5.97917 7.39043C5.63889 7.04425 5.34722 6.66097 5.10417 6.2406C4.88542 5.82024 4.73958 5.35041 4.66667 4.83114C4.59375 4.31186 4.67882 3.68131 4.92188 2.93948C5.18924 2.17293 5.63889 1.33219 6.27083 0.417277C6.51389 0.0463641 6.84201 -0.0772735 7.25521 0.0463641C7.6684 0.170002 7.875 0.454368 7.875 0.899463Z",fill:e}));const wn=Cn,Sn=window.wp.blockEditor,kn=window.wp.compose,En=(0,kn.createHigherOrderComponent)((e=>class extends yi.Component{state={error:null,loading:!0,gaData:null};componentDidMount(){null===this.state.gaData&&null===this.state.error&&this.loadData()}loadData=()=>{const e=this;wp.ajax.send("monsterinsights_vue_get_report_data",{data:{nonce:monsterinsights.nonce,report:"site-insights"}}).done((t=>{e.setState({loading:!1,gaData:t})})).fail((t=>{const i=t;e.setState({loading:!1,error:i})}))};render(){const{error:i,loading:a,gaData:s}=this.state;return(0,t.createElement)(e,{...this.props,error:i,isLoading:a,gaData:s})}}),"withGaData"),An=window.wp.components,Pn=(0,t.createElement)(yn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(yn.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),Ln=(0,t.createElement)(yn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(yn.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Mn=[{icon:Pn,title:(0,Ui.__)("Graph","ga-premium"),type:"graph"},{icon:Ln,title:(0,Ui.__)("Scorecard","ga-premium"),type:"scorecard"}],Tn={sessions:{label:(0,Ui.__)("Sessions","ga-premium"),value:"sessions"},pageviews:{label:(0,Ui.__)("Page views","ga-premium"),value:"pageviews"},newvsreturning:{label:(0,Ui.__)("New vs Returning","ga-premium"),value:"newvsreturning"},top10countries:{label:(0,Ui.__)("Top Countries","ga-premium"),value:"top10countries"},device:{label:(0,Ui.__)("Device Breakdown","ga-premium"),value:"device"},age:{label:(0,Ui.__)("Age Breakdown","ga-premium"),value:"age"},gender:{label:(0,Ui.__)("Gender Breakdown","ga-premium"),value:"gender"},topinterests:{label:(0,Ui.__)("Top Interests","ga-premium"),value:"topinterests"},scrolldepth:{label:(0,Ui.__)("Scroll Depth","ga-premium"),value:"scrolldepth"}},Fn=[{name:"pink",color:"#F58EA8"},{name:"red",color:"#CD3034"},{name:"orange",color:"#FD6A21"},{name:"yellow",color:"#FBB82B"},{name:"green",color:"#7FDBB6"},{name:"green",color:"#21CF86"},{name:"blue",color:"#91D2FA"},{name:"blue",color:"#1B95E0"},{name:"purple",color:"#9A57DD"},{name:"gray",color:"#EEEEEE"},{name:"gray",color:"#ACB8C3"},{name:"black",color:"#000000"}],Dn=["sessions","pageviews"];function Hn({type:e,setDisplayType:i=NOOP}){return(0,t.createElement)(Sn.BlockControls,null,(0,t.createElement)(An.ToolbarDropdownMenu,{controls:Mn.map((t=>{const a=e===t.type;return{...t,isActive:a,onClick:()=>{i(t.type)}}}))}))}const On=()=>{};function In({attributes:e="",setAttributes:i=On}){const{type:a,metric:s,primaryColor:r,secondaryColor:n,withComparison:o}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Sn.InspectorControls,{key:"monsterinsights-stats-inspector-controls"},(0,t.createElement)(An.PanelBody,{title:(0,Ui.__)("Choose a Metric","ga-premium"),key:"monsterinsights-site-insights-metric-panel"},(0,t.createElement)(An.PanelRow,null,(0,t.createElement)(or,{id:"monsterinsights-stats-display-picker",className:"monsterinsights-site-insights-metric-picker",options:Tn,icons:wn,selected:s,itemsPerGroup:6,onChange:e=>{i({metric:e})}})),"scorecard"===a&&Dn.includes(s)&&(0,t.createElement)(An.PanelRow,null,(0,t.createElement)(An.CheckboxControl,{label:"Show Comparison",checked:o,onChange:e=>{i({withComparison:e})}})))),(0,t.createElement)(Sn.InspectorControls,{key:"monsterinsights-stats-inspector-controls-style",group:"styles"},(0,t.createElement)(An.PanelBody,{title:(0,Ui.__)("Colors settings","ga-premium"),key:"monsterinsights-stats-colors-panel"},(0,t.createElement)(An.BaseControl,null,(0,t.createElement)("label",{htmlFor:""},(0,Ui.__)("Primary color","ga-premium")),(0,t.createElement)(An.ColorPalette,{value:r,colors:Fn,onChange:e=>{i({primaryColor:e})}})),(0,t.createElement)(An.BaseControl,null,(0,t.createElement)("label",{htmlFor:""},(0,Ui.__)("Secondary color","ga-premium")),(0,t.createElement)(An.ColorPalette,{value:n,colors:Fn,onChange:e=>{i({secondaryColor:e})}})))))}var zn=i(229);const Nn=e=>e.charAt(0).toUpperCase()+e.slice(1),Rn=e=>{if("string"!=typeof e)return!1;if(e.startsWith("#"))return e;const t="--wp--preset--color--"+e;return window.getComputedStyle(document.body).getPropertyValue(t)},{get:Bn,isEmpty:Xn}=lodash,Yn=({options:e})=>(0,t.createElement)(zn.Z,{className:"monsterinsights-area-chart",options:e,series:e.series,height:e?.chart?.height||450,width:e?.chart?.width||"100%",type:"area"}),Vn=(e,t)=>{const{primaryColor:i,secondaryColor:a,title:s,chartType:r="sessions"}=e,n=((e,t={})=>{const i=t[e];if(void 0!==i)return Rn(i);const a=t?.style?.color||{};let s=!1;switch(e){case"textColor":s=a?.text;break;case"backgroundColor":s=a?.background}return s})("textColor",e),o=Bn(t,"overviewgraph.labels",[]),l=Bn(t,"overviewgraph."+r+".datapoints",[]);return!Xn(l)&&{series:[{name:s,data:l}],chart:{type:"area",zoom:{enabled:!1},toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"straight",width:4,colors:[i]},fill:{type:"solid"},colors:[a],markers:{style:"hollow",size:5,colors:["#ffffff"],strokeColors:i},title:{text:s,align:"left",style:{color:n,fontSize:"20px",fontWeight:"bold"}},grid:{show:!0,borderColor:"rgba(58, 147, 221, 0.15)",xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}},padding:{top:10,right:10,bottom:10,left:10}},xaxis:{categories:o},yaxis:{type:"numeric"}}},{get:Wn,isEmpty:jn}=lodash,Gn=({options:e})=>(0,t.createElement)(zn.Z,{className:"monsterinsights-donut-chart",type:"donut",options:e,series:e.series,height:e?.chart?.height||350,width:e?.chart?.width||"100%"}),Zn=window.wp.htmlEntities,{get:Un,isEmpty:qn}=lodash,$n=({options:e})=>(0,t.createElement)(zn.Z,{options:e,series:e.series,type:"bar",height:e?.chart?.height||350,width:e?.chart?.width||"100%"}),{get:Kn}=lodash,Jn=({options:e})=>(0,t.createElement)(zn.Z,{className:"monsterinsights-radial-chart",options:e,series:e.series,type:"radialBar",height:e?.chart?.height||450}),Qn=(0,yi.forwardRef)((function({icon:e,size:t=24,...i},a){return(0,yi.cloneElement)(e,{width:t,height:t,...i,ref:a})})),eo=window.wp.url;function to(e){const{title:i=(0,Ui.__)("Oops!","ga-premium"),text:a=(0,Ui.__)("We cannot get data for this metric. Please make sure the license is valid and properly connected.","ga-premium"),link:s,linkLabel:r=(0,Ui.__)("Go to Settings","ga-premium")}=e,n=s||(0,eo.addQueryArgs)("admin.php?page=monsterinsights_settings");return(0,t.createElement)(An.Placeholder,{className:"monsterinsights-block-placeholder",isColumnLayout:!0},(0,t.createElement)(Qn,{icon:wn.placeholderLogo,size:120}),(0,t.createElement)("div",{className:"monsterinsights-block-error-placeholder-content"},(0,t.createElement)("h3",null,i),(0,t.createElement)("p",null,a),r&&(0,t.createElement)(An.Button,{variant:"link",href:n},r)))}const io=({attributes:e,data:i})=>{const{metric:a}=e;let s={},r=null,n=null;const o=(0,Ui.__)('No "%s" data. Please make sure you have "Google Signals" enabled on the property.',"ga-premium");if(null===i)return null;switch(a){case"sessions":s=Vn({...e,title:(0,Ui.__)("Sessions","ga-premium"),chartType:"sessions"},i),r=(0,t.createElement)(Yn,{options:s});break;case"pageviews":s=Vn({...e,title:(0,Ui.__)("Page views","ga-premium"),chartType:"pageviews"},i),r=(0,t.createElement)(Yn,{options:s});break;case"newvsreturning":s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("New vs Returning","ga-premium")}=e,n=Wn(t,"newvsreturn",[]);return!jn(n)&&{series:[n.new,n.returning],chart:{width:"100%",height:"auto",type:"donut"},colors:[i,a],title:{text:r,align:"left",style:{color:Rn(s),fontSize:"20px"}},labels:[(0,Ui.__)("New Visitors","ga-premium"),(0,Ui.__)("Returning Visitors","ga-premium")],plotOptions:{pie:{donut:{size:"65%"}}},legend:{position:"right",horizontalAlign:"center",floating:!1,fontSize:"17px",height:"100%",markers:{width:30,height:30,radius:30},formatter:function(e,t){return[e,"<strong> "+t.w.globals.series[t.seriesIndex]+"%</strong>"]}},dataLabels:{enabled:!1},responsive:[{breakpoint:767,options:{legend:{show:!1}}}]}})(e,i),r=(0,t.createElement)(Gn,{options:s});break;case"top10countries":s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("Top 10 Countries","ga-premium")}=e,n=Un(t,"countries",[]),o=[],l=[];return n.forEach(((e,t)=>{o[t]=parseInt(e.sessions),l[t]=e.name})),{series:[{name:r,data:o}],title:{text:r,align:"left",style:{color:Rn(s),fontSize:"20px"}},colors:[i],chart:{type:"bar",height:430,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!0,borderRadius:5,borderRadiusApplication:"end",dataLabels:{position:"center"}}},dataLabels:{style:{fontSize:"12px",colors:[s]}},xaxis:{categories:l}}})(e,i),r=(0,t.createElement)($n,{options:s});break;case"device":s=((e,t)=>{const{primaryColor:i,secondaryColor:a,title:s=(0,Ui.__)("Device Breakdown","ga-premium")}=e,r=Wn(t,"devices",[]);return!jn(r)&&{series:Object.values(r).map((e=>parseInt(e))),labels:Object.keys(r).map((e=>Nn(e))),chart:{width:"100%",height:"auto",type:"donut"},colors:[i,a],legend:{position:"right",horizontalAlign:"center",floating:!1,fontSize:"17px",height:"100%",markers:{width:30,height:30,radius:30},formatter:function(e,t){return[e,"<strong> "+t.w.globals.series[t.seriesIndex]+"%</strong>"]}},title:{text:s,align:"left",style:{color:i,fontSize:"20px"}},dataLabels:{enabled:!1}}})(e,i),r=(0,t.createElement)(Gn,{options:s});break;case"age":n=(0,Ui.__)("Age Breakdown","ga-premium"),s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("Age","ga-premium")}=e,n=Un(t,"age",[]);if(qn(n))return!1;const o=[],l=[],c=[];return n.forEach(((e,t)=>{o[t]=parseInt(e.sessions),c[t]=e.age,l[t]=e.percent})),{series:[{name:r,data:o}],title:{text:r,align:"left",style:{color:Rn(s),fontSize:"20px"}},colors:[i],chart:{type:"bar",height:430,toolbar:{show:!1}},plotOptions:{bar:{borderRadius:5,borderRadiusApplication:"end",dataLabels:{position:"top"}}},dataLabels:{enabled:!0,offsetY:-20,style:{fontSize:"12px",colors:[i]}},xaxis:{categories:c}}})({...e,title:n},i),r=s?(0,t.createElement)($n,{options:s}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(o,n)});break;case"gender":n=(0,Ui.__)("Gender Breakdown","ga-premium"),s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r}=e,n=[],o=[],l=Wn(t,"gender",[]);return!jn(l)&&{series:l.map(((e,t)=>(n[t]=e.percent,o[t]=Nn(e.gender),parseInt(e.sessions)))),labels:o,chart:{width:"100%",height:"auto",type:"donut"},colors:[i,a],title:{text:r,align:"left",style:{color:Rn(s),fontSize:"20px"}},legend:{position:"right",horizontalAlign:"center",floating:!1,fontSize:"17px",height:"100%",markers:{width:30,height:30,radius:30},formatter:(e,t)=>[e,"<strong> "+n[t.seriesIndex]+"%</strong>"]},dataLabels:{enabled:!1},responsive:[{breakpoint:767,options:{legend:{show:!1}}}]}})({...e,title:n},i),r=s?(0,t.createElement)(Gn,{options:s}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(o,n)});break;case"topinterests":n=(0,Ui.__)("Top Interests","ga-premium"),s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("Top Interests","ga-premium")}=e,n=Un(t,"interest",[]),o=[],l=[],c=[];return!qn(n)&&(n.forEach(((e,t)=>{o[t]=parseInt(e.sessions),c[t]=(0,Zn.decodeEntities)(e.interest),l[t]=e.percent})),{series:[{name:r,data:o}],title:{text:r,align:"left",style:{color:Rn(s),fontSize:"20px"}},colors:[i],chart:{type:"bar",height:430,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!0,borderRadius:5,borderRadiusApplication:"end",dataLabels:{position:"center"}}},dataLabels:{enabled:!0,style:{fontSize:"12px",colors:[s]}},xaxis:{categories:c}})})({...e,title:n},i),r=s?(0,t.createElement)($n,{options:s}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(o,n)});break;case"scrolldepth":s=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("Average Scroll Depth","ga-premium")}=e,n=Kn(t,"scroll.average",0);return{series:[parseInt(n)],labels:[r],chart:{height:400,type:"radialBar"},plotOptions:{radialBar:{hollow:{size:n+"%"}}},colors:[i,a]}})(e,i),r=(0,t.createElement)(Jn,{options:s})}return r};function ao(e){const{leftLabel:i="",rightLabel:a="",leftValue:s=0,rightValue:r=0,dateRageLabel:n=(0,Ui.__)("vs. Previews 30 days","ga-premium"),leftPrevValue:o=null,rightPrevValue:l=null,withComparison:c}=e,h=qe()("monsterinsights-duo-scorecard-compare-percentage",{"is-positive-percentage":o>0}),d=qe()("monsterinsights-duo-scorecard-compare-percentage",{"is-positive-percentage":l>0});return(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard"},(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-half monsterinsights-duo-scorecard-left"},(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-content"},(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-title"},i),(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-value"},s)),c&&(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-compare"},(0,t.createElement)("div",{className:h},o),(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-compare-label"},n))),(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-half monsterinsights-duo-scorecard-right"},(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-content"},(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-title"},a),(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-value"},r)),c&&(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-compare"},(0,t.createElement)("div",{className:d},l),(0,t.createElement)("div",{className:"monsterinsights-duo-scorecard-compare-label"},n))))}function so(e){const{label:i="",value:a=null}=e;return(0,t.createElement)("div",{className:"monsterinsights-scorecard-simple-card"},(0,t.createElement)("div",{className:"monsterinsights-scorecard-simple-card-value"},a+"%"),(0,t.createElement)("div",{className:"monsterinsights-scorecard-simple-card-label"},i))}const{get:ro,isEmpty:no}=lodash;function oo(e){const{headers:i,rows:a}=e;return(0,t.createElement)("div",{className:"monsterinsights-scorecard-table"},(0,t.createElement)("div",{className:"monsterinsights-scorecard-table-header"},i.map((e=>(0,t.createElement)("div",{className:"monsterinsights-scorecard-table-head",key:e},e)))),(0,t.createElement)("div",{className:"monsterinsights-scorecard-table-rows"},a.map(((e,i)=>(0,t.createElement)("div",{className:"monsterinsights-scorecard-table-row",key:i},e.map((e=>(0,t.createElement)("div",{className:"monsterinsights-scorecard-table-column",key:e},e))))))))}const{get:lo}=lodash;function co({attributes:e,data:i}){const{metric:a,withComparison:s}=e;let r=null;const n=(0,Ui.__)('No "%s" data. Please make sure you have "Google Signals" enabled on the property.',"ga-premium");switch(a){case"sessions":r=(0,t.createElement)(ao,{leftLabel:(0,Ui.__)("Sessions","ga-premium"),rightLabel:(0,Ui.__)("Page views","ga-premium"),leftValue:lo(i,"infobox.sessions.value"),leftPrevValue:lo(i,"infobox.sessions.prev"),rightValue:lo(i,"infobox.pageviews.value"),rightPrevValue:lo(i,"infobox.pageviews.prev"),withComparison:s});break;case"pageviews":r=(0,t.createElement)(ao,{leftLabel:(0,Ui.__)("Avg. Session Duration","ga-premium"),rightLabel:(0,Ui.__)("Bounce Rate","ga-premium"),leftValue:lo(i,"infobox.duration.value"),leftPrevValue:lo(i,"infobox.duration.prev"),rightValue:lo(i,"infobox.bounce_rate.value"),rightPrevValue:lo(i,"infobox.bounce_rate.prev"),withComparison:s});break;case"top10countries":const a=((e,t)=>{const i=ro(t,"countries",[]);return{headers:[(0,Ui.__)("Top 10 Countries","ga-premium"),(0,Ui.__)("Sessions","ga-premium")],rows:i.map(((e,t)=>[e.name,e.sessions]))}})(0,i);r=(0,t.createElement)(oo,{headers:a.headers,rows:a.rows});break;case"newvsreturning":const o=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("New vs. Returning Visitors","ga-premium")}=e,n=Un(t,"newvsreturn",[]);return{series:[{data:[n.returning,n.new]}],title:{text:r,style:{color:Rn(s),fontSize:"20px"}},chart:{type:"bar",height:160,width:"90%",toolbar:{show:!1}},colors:[i,a],tooltip:{enabled:!1},grid:{show:!1},plotOptions:{bar:{borderRadius:5,horizontal:!0,columnWidth:"50%",barHeight:"50%",dataLabels:{position:"center"}}},dataLabels:{formatter:function(e){return e+"%"},style:{colors:[s]}},xaxis:{show:!1,categories:[(0,Ui.__)("Returning Visitors","ga-premium"),(0,Ui.__)("New Visitors","ga-premium")],axisBorder:{show:!1},labels:{show:!1},axisTicks:{show:!1}},yaxis:{show:!0,labels:{show:!0},axisTicks:{show:!1}}}})(e,i);r=(0,t.createElement)($n,{options:o});break;case"device":const l=((e,t)=>{const{primaryColor:i,secondaryColor:a,textColor:s,title:r=(0,Ui.__)("Device Breakdown","ga-premium")}=e,n=Un(t,"devices",[]);return!qn(n)&&{series:[{data:Object.values(n).map(((e,t)=>e))}],title:{text:r,style:{color:s,fontSize:"20px"}},chart:{type:"bar",height:240,width:"90%",toolbar:{show:!1}},colors:[i,a],tooltip:{enabled:!1},grid:{show:!1},plotOptions:{bar:{borderRadius:5,horizontal:!0,columnWidth:"50%",barHeight:"50%",dataLabels:{position:"center"}}},dataLabels:{formatter:function(e){return e+"%"},style:{colors:[s]}},xaxis:{show:!1,categories:Object.keys(n).map(((e,t)=>e)),axisBorder:{show:!1},labels:{show:!1},axisTicks:{show:!1}},yaxis:{show:!0,labels:{show:!0},axisTicks:{show:!1}}}})(e,i);r=(0,t.createElement)($n,{options:l});break;case"age":const c=((e,t)=>{const i=ro(t,"age",[]);return!no(i)&&{headers:[(0,Ui.__)("Age Range","ga-premium"),(0,Ui.__)("Sessions","ga-premium"),(0,Ui.__)("Percent","ga-premium")],rows:i.map(((e,t)=>[e.age,e.sessions,e.percent+"%"]))}})(0,i);r=c?(0,t.createElement)(oo,{headers:c.headers,rows:c.rows}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(n,(0,Ui.__)("Age Breakdown","ga-premium"))});break;case"gender":const h=((e,t)=>{const i=ro(t,"gender",[]);return!no(i)&&{headers:[(0,Ui.__)("Gender","ga-premium"),(0,Ui.__)("Sessions","ga-premium"),(0,Ui.__)("Percent","ga-premium")],rows:i.map(((e,t)=>[e.gender,e.sessions,e.percent+"%"]))}})(0,i);r=h?(0,t.createElement)(oo,{headers:h.headers,rows:h.rows}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(n,(0,Ui.__)("Gender Breakdown","ga-premium"))});break;case"topinterests":const d=((e,t)=>{const i=ro(t,"interest",[]);return!no(i)&&{headers:[(0,Ui.__)("Categories","ga-premium"),(0,Ui.__)("% of Interest","ga-premium")],rows:i.map(((e,t)=>[(0,Zn.decodeEntities)(e.interest),e.percent+"%"]))}})(0,i);r=d?(0,t.createElement)(oo,{headers:d.headers,rows:d.rows}):(0,t.createElement)(to,{title:null,linkLabel:null,text:sprintf(n,(0,Ui.__)("Top Interests","ga-premium"))});break;case"scrolldepth":const u=lo(i,"scroll.average",0);r=(0,t.createElement)(so,{value:u,label:(0,Ui.__)("Average Scroll Depth","ga-premium")})}return r}const ho=()=>{};function uo({setDisplayType:e=ho}){return(0,t.createElement)(An.Placeholder,{className:"monsterinsights-block-placeholder",isColumnLayout:!0},(0,t.createElement)(Qn,{icon:wn.placeholderLogo,size:60}),(0,t.createElement)("select",{name:"type",id:"type",onChange:t=>{e(t.target.value)},defaultValue:""},(0,t.createElement)("option",{value:"",disabled:!0,hidden:!0},(0,Ui.__)("Select a Display Method","ga-premium")),(0,t.createElement)("option",{value:"graph"},(0,Ui.__)("Graph","ga-premium")),(0,t.createElement)("option",{value:"scorecard"},(0,Ui.__)("Scorecard","ga-premium"))))}const go=(0,kn.compose)([(0,Sn.withColors)(["backgroundColor","textColor"]),kn.withInstanceId,En])((function(e){const{attributes:i,setAttributes:a,clientId:s,gaData:r,error:n}=e,{type:o,metric:l,textColor:c,backgroundColor:h,style:d}=i;let u="";void 0===c&&void 0!==d?.color.text&&(u+=(0,Sn.getColorClassName)("text",d?.color.text)),"scorecard"===o&&(["top10countries","topinterests"].includes(l)&&(u=" with-2-columns"),["age","gender"].includes(l)&&(u=" with-3-columns"));const g=(0,Sn.useBlockProps)({className:"monsterinsights-stats-block monsterinsights-"+o+"-block "+u,id:"block-id-"+s}),p=e=>{a({type:e})};return null!==n?(0,t.createElement)("div",{...g},(0,t.createElement)(to,null)):(0,t.createElement)("div",null,(0,t.createElement)(In,{attributes:i,setAttributes:a}),(0,t.createElement)(Hn,{type:o,setDisplayType:p}),!o&&(0,t.createElement)(uo,{setDisplayType:p}),o&&(0,t.createElement)("div",{...g},"graph"===o&&(0,t.createElement)(io,{attributes:i,data:r}),"scorecard"===o&&(0,t.createElement)(co,{attributes:i,data:r})))})),{name:po}=vn,fo={icon:wn.blockIcon,edit:go,save:e=>null};(0,bn.registerBlockType)(vn,fo);const{setLocaleData:mo}=wp.i18n;void 0!==window.monsterinsights_gutenberg_tool_vars.translations&&mo(window.monsterinsights_gutenberg_tool_vars.translations,"ga-premium")})()})();