UNPKG

@syncfusion/ej2-charts

Version:

Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.

12 lines 1.76 MB
/*!
*  filename: ej2-charts.min.js
*  version : 32.1.22
*  Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
*  Use of this code is subject to the terms of our license.
*  A copy of the current license can be obtained at any time by e-mailing
*  licensing@syncfusion.com. Any infringement will be prosecuted under
*  applicable laws. 
*/
this.ej=this.ej||{},this.ej.charts=function(e,t,i,o,r,n,a,l,s){"use strict";function h(e,i,o){for(var r=t.extend([],e,null),n=0;n<r.length;n++)for(var a=0;a<i.length;a++)r[n][i[a]]instanceof Date&&(r[n][i[a]]=r[n][i[a]].getTime());return r.sort(function(e,t){for(var r=0,n=0,a=0;a<i.length;a++)r+=e[i[a]],n+=t[i[a]];return!o&&r<n||o&&r>n?-1:r===n?0:1}),r}function c(e){return-1!==e.indexOf("<br>")}function d(e){for(var i,o=t.extend([],e.points,null,!0),r=[],n=0,a=0;a<o.length;a++)i=o[a],t.isNullOrUndefined(i.x)||(i.index=n++,r.push(i));return r}function p(e,t){var o=e.component,r=0,n=0,a="Top"===o.titleStyle.position||"Bottom"===o.titleStyle.position&&!o.legendSettings.visible?15:5;o.title&&(r=i.measureText(o.title,o.titleStyle,o.themeStyle.chartTitleFont).height*o.titleCollection.length+a,o.subTitle&&(n=i.measureText(o.subTitle,o.subTitleStyle,o.themeStyle.chartSubTitleFont).height*o.subTitleCollection.length));var l;return t?"Top"===e.axis.scrollbarSettings.position?(l=o.margin.top+5+(e.height+5)*o.scrollBarModule.topScrollBarCount+("Top"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Top"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.topScrollBarCount++):"Bottom"===e.axis.scrollbarSettings.position&&(l=o.availableSize.height-((e.height+5)*o.scrollBarModule.bottomScrollBarCount+e.height+o.margin.bottom+5+("Bottom"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Bottom"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.bottomScrollBarCount++):"Right"===e.axis.scrollbarSettings.position?(l=o.availableSize.width-((e.height+5)*o.scrollBarModule.rightScrollBarCount+e.height+5+o.margin.right+("Right"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Right"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.rightScrollBarCount++):"Left"===e.axis.scrollbarSettings.position&&(l=o.margin.left+5+(e.height+5)*o.scrollBarModule.leftScrollBarCount+("Left"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Left"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.leftScrollBarCount++),l}function u(e,o,r,n,a){var l=n.element.style.transform;l&&(n.element.style.transform="");var s,h,d,p,u,g=new i.SvgRenderer(n.element.id),m=[],y={id:"rotate_text",x:n.initialClipRect.x,y:n.initialClipRect.y,"font-size":e.size||a.size,"font-style":e.fontStyle||a.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight||a.fontWeight,transform:"rotate("+r+", 0, 0)","text-anchor":"middle"};s=c(o)?(m=o.split("<br>"))[0]:o;var f=g.createText(y,s);if(n.delayRedraw||n.redraw||n.stockChart||n.element.appendChild(n.svgObject),"string"!=typeof m&&m.length>1)for(var v=1,b=m.length;v<b;v++)h=i.measureText(m[v],e,n.themeStyle.axisLabelFont).height,d=y.y+v*h,p=m[v],u=g.createTSpan({x:y.x,id:y.id,y:d},p),f.appendChild(u);var x=n.svgRenderer.createSvg({id:"AxisLabelMax_svg",width:n.availableSize.width,height:n.availableSize.height});document.body.appendChild(x),x.appendChild(f);var S=f.getBoundingClientRect();if(l&&(n.element.style.transform=l),t.remove(x),n.delayRedraw||n.redraw||n.stockChart||n.pointsAdded||t.remove(n.svgObject),n.enableCanvas){var C=i.measureText(o,e,n.themeStyle.axisLabelFont).width,F=i.measureText(o,e,n.themeStyle.axisLabelFont).height,w=r*Math.PI/180,L=Math.abs(Math.cos(w)*C)+Math.abs(Math.sin(w)*F),P=Math.abs(Math.sin(w)*C)+Math.abs(Math.cos(w)*F);return new i.Size(L,P)}return new i.Size(S.right-S.left,S.bottom-S.top)}function g(e){if(!e)return null;var i="string"==typeof e?he(e):e;i&&t.remove(i)}function m(e,t){return Math.log(e)/Math.log(t)}function y(e,o,r,n,a,l,s,h,c){var d=document.getElementById(a),p=i.measureText(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}),u=p.width+5;o=o+u>n?o-(u+15):o,c&&o<c.x&&(o=c.x),r=h?r-p.height/2:r+15,c&&r+p.height>c.y+c.height&&(r-=r+p.height-(c.y+c.height)),d?(d.innerText=e,d.style.top=r.toString()+"px",d.style.left=(o+15).toString()+"px"):((d=t.createElement("div",{id:a,styles:"top:"+r.toString()+"px;left:"+(o+15).toString()+'px;background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom : 2px; padding-top : 2px; font-size:12px; font-family: "Segoe UI"'})).innerText=e,l.appendChild(d),parseInt(d.style.left.replace("px",""),10)<0&&(d.style.left="0px")),s&&setTimeout(function(){g(a)},1500)}function f(e,t){return e<t.max&&e>t.min}function v(e,t){return e<=t.max&&e>=t.min}function b(e,t){return"Logarithmic"===t.valueType?m(e,t.logBase):e}function x(e,t,i,o){if(o.chart.zoomModule&&o.chart.zoomSettings.enableAnimation)return!0;var r=b(t.xValue,o.xAxis),n=e?b(e.xValue,o.xAxis):r,a=i?b(i.xValue,o.xAxis):r,l=Math.floor(o.xAxis.visibleRange.min),s=Math.ceil(o.xAxis.visibleRange.max);return n>=l&&n<=s||r>=l&&r<=s||a>=l&&a<=s||l>=n&&l<=a}function S(e){for(var t=0,i=0,o=e;i<o.length;i++)t+=o[i];return t}function C(e,i,o,r,n){var a=0,l=0;if(null!==r)for(s=i+1;s<o;s++)-1===r.indexOf(s)&&(s===n.intermediateSumIndexes[l]||n.intermediateSumIndexes[n.intermediateSumIndexes.length-1]<s)&&(a+=e[s][n.yName],s===n.intermediateSumIndexes[l]&&(l+=1));else for(var s=i+1;s<o;s++)t.isNullOrUndefined(e[s][n.yName])||t.isNullOrUndefined(n.sumIndexes)||-1!==n.sumIndexes.indexOf(s)||(a+=e[s][n.yName]);return a}function F(e,t){return e.x+=t.left,e.y+=t.top,e.width-=t.left+t.right,e.height-=t.top+t.bottom,e}function w(e,t){return e.x+=t.x,e.y+=t.y,e.width-=t.x+t.width,e.height-=t.y+t.height,e}function L(e,t,i){var o=e*Math.PI/180;return new mo(Math.cos(o)*t+i.x,Math.sin(o)*t+i.y)}function P(e){return e*(Math.PI/180)}function A(e,t,i,o){for(var r=[],n=0;n<4;n++){var a=e[n],l=a.x-t,s=a.y-i,h=l*Math.cos(P(o))-s*Math.sin(P(o)),c=l*Math.sin(P(o))+s*Math.cos(P(o));a.x=h+t,a.y=c+i,r.push(new mo(a.x,a.y))}return r}function M(e,i){var o,r,n,a,l,s,h,c,d=[e,i];for(a=0;a<d.length;a++){var p=d[a];for(l=0;l<p.length;l++){var u=(l+1)%p.length,g=p[l],m=p[u],y=new mo(m.y-g.y,g.x-m.x);for(o=r=void 0,s=0;s<e.length;s++)n=y.x*e[s].x+y.y*e[s].y,(t.isNullOrUndefined(o)||n<o)&&(o=n),(t.isNullOrUndefined(r)||n>r)&&(r=n);for(h=c=void 0,s=0;s<i.length;s++)n=y.x*i[s].x+y.y*i[s].y,(t.isNullOrUndefined(h)||n<h)&&(h=n),(t.isNullOrUndefined(c)||n>c)&&(c=n);if(r<h||c<o)return!1}}return!0}function D(e,t,i,o,r){var n=L(270,i,new mo(e,t)),a=L(270,i,new mo(e+r/10,t));return"M "+e+" "+t+" L "+(e+i)+" "+t+" A "+i+" "+i+" 0 1 1 "+n.x+" "+n.y+" Z M "+(e+r/10)+" "+(t-o/10)+" L"+(e+i)+" "+(t-o/10)+" A "+i+" "+i+" 0 0 0 "+a.x+" "+a.y+" Z"}function k(e,t){var i=Math.atan2(t.y-e.y,t.x-e.x);return(i=i<0?6.283+i:i)*(180/Math.PI)}function R(e,t){for(var i=[],o=0;o<=t-1;o++)i.push(e[o]);return i}function T(e,t){var i,o=t.visibleRange;return i=0===o.delta?.5:(e-o.min)/o.delta,(t.isChart?t.isAxisInverse:t.isInversed)?1-i:i}function E(e,t,i,o,r,n){e="Logarithmic"===i.valueType?m(e>1?e:1,i.logBase):e,t="Logarithmic"===o.valueType?m(t>1?t:1,o.logBase):t,e+="Category"===i.valueType&&"BetweenTicks"===i.labelPlacement&&"Radar"!==n.type?.5:0;var a=n.chart.radius*T(t,o),l=I(O(e,i),n.chart.primaryXAxis.startAngle);return{x:n.clipRect.width/2+n.clipRect.x+a*l.x,y:n.clipRect.height/2+n.clipRect.y+a*l.y}}function _(e,t){void 0===t&&(t=!1);var i=["NaN","NaN"];return e.indexOf("_polygon")>-1?i=["NaN","NaN"]:e.indexOf("_Point_")>-1?i=e.split("_Series_")[1].split("_Point_"):e.indexOf("_shape_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_shape_"))[0]="0":e.indexOf("_text_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_text_"))[0]="0":e.indexOf("_datalabel_")>-1?(i=e.split("_datalabel_")[1].split("_g_"))[0]=i[0].replace("Series_",""):e.indexOf("TextGroup")>-1?(i=e.split("TextGroup"))[0]=i[1]:e.indexOf("ShapeGroup")>-1&&((i=e.split("ShapeGroup"))[0]=i[1]),new Pi(parseInt(i[0],10),parseInt(i[1],10))}function I(e,t){t=t<0?t+360:t;var i=Math.PI*(1.5-2*e);return i+=t*Math.PI/180,{x:Math.cos(i),y:Math.sin(i)}}function O(e,t){var i,o,r=t.visibleRange;return"Category"!==t.valueType?(i=r.max-("DateTime"===t.valueType?t.dateTimeInterval:r.interval)-r.min,o=t.visibleLabels.length-1,i=0===i?1:i):(i=1===t.visibleLabels.length?1:t.visibleLabels[t.visibleLabels.length-1].value-t.visibleLabels[0].value,o=t.visibleLabels.length),t.isAxisInverse?(e-r.min)/i*(1-1/o):1-(e-r.min)/i*(1-1/o)}function z(e,i,o,r,n,a){var l=he(e),s="top:"+o.toString()+"px;left:"+r.toString()+"px;color:black !important; background:#FFFFFF !important; position:absolute;border:1px solid #707070;font-size:"+n+";border-radius:2px; z-index:1";l?(l.setAttribute("innerHTML","&nbsp;"+i+"&nbsp;"),l.style.cssText=s):(l=t.createElement("div",{id:e,innerHTML:"&nbsp;"+i+"&nbsp;",styles:s}),he(a).appendChild(l))}function B(e,o,r,n,a,l){for(var s,h,c,d,p,u,g=o.isAxisOpposedPosition,m=e.enableRtl?"end":a?"start":"auto",y=e.availableSize.width,f=o.scrollbarSettings.enable||o.zoomingScrollBar&&o.zoomingScrollBar.svgObject?o.scrollBarHeight:0,v=e.enableRtl&&!a&&!o.isInversed||o.isInversed&&!(e.enableRtl&&!a),b=0;b<2;b++){if(s=i.measureText(b?v?o.startLabel:o.endLabel:v?o.endLabel:o.startLabel,o.labelStyle,e.themeStyle.axisLabelFont),a?(p=b?new mo(l.x-f,l.y+3):new mo(o.rect.x-f,l.y+l.height-3),c=l.x+(g?l.width+5+f:-(s.width+5+5+f)),d=l.y+(b?0:l.height-s.height-5),c+=c<0||y<c+s.width+5?g?-s.width/2:s.width/2:0,u=N(3,3,new i.Rect(c,d,s.width+5,s.height+5),p,5,!1,!1,!g,p.x,p.y+(b?-3:3))):(p=b?new mo(l.x+l.width-3,l.y+l.height+f):new mo(l.x+3,l.y+l.height+f),c=l.x+(b?l.width-s.width-5:0),d=g?l.y-s.height-10-f:l.y+l.height+5+f,u=N(3,3,new i.Rect(c,d,s.width+5,s.height+5),p,5,g,!g,!1,p.x+(b?3:-3),p.y)),c+=2.5,d=d+s.height/4*3+2.5,h=e.renderer.drawPath({id:e.element.id+"_Zoom_"+n+"_AxisLabel_Shape_"+b,fill:e.themeStyle.crosshairFill,width:2,color:e.themeStyle.crosshairFill,opacity:1,"stroke-dasharray":null,d:u},null),r.appendChild(h),"Fluent"===e.theme||"FluentDark"===e.theme){var x=e.element.id+"_shadow";h.setAttribute("filter",t.Browser.isIE?"":"url(#"+x+")");var S='<filter id="'+x+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';S+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',S+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=e.renderer.createDefs();C.setAttribute("id",e.element.id+"SVG_tooltip_definition"),r.appendChild(C),C.innerHTML=S,h.setAttribute("stroke","#cccccc"),h.setAttribute("stroke-width","0.5")}je(e.renderer,new i.TextOption(e.element.id+"_Zoom_"+n+"_AxisLabel_"+b,c,d,m,b?v?o.startLabel:o.endLabel:v?o.endLabel:o.startLabel),{color:e.themeStyle.crosshairLabelFont.color,fontFamily:"Segoe UI",fontWeight:"Regular",size:"11px"},e.themeStyle.crosshairLabelFont.color,r,null,null,null,null,null,null,null,null,null,null,e.themeStyle.crosshairLabelFont)}return r}function N(e,t,i,o,r,n,a,l,s,h){var c="",d=i.x,p=i.y,u=i.x+i.width,g=i.y+i.height;return n?(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g),0!==r&&(c=(c=c.concat(" L "+(o.x+r/2)+" "+g)).concat(" L "+s+" "+(g+r)+" L "+(o.x-r/2)+" "+g)),c=o.x-r/2>d?c.concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):0===r?c.concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):c.concat(" L "+d+" "+(g+t)+" z")):c=a?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p+" L "+(o.x-r/2)+" "+p)).concat(" L "+s+" "+o.y)).concat(" L "+(o.x+r/2)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):l?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t)+" L "+u+" "+(o.y-r/2))).concat(" L "+(u+r)+" "+h)).concat(" L "+u+" "+(o.y+r/2))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):(c=(c=(c=(c=(c=c.concat("M "+(d+e)+" "+p+" Q "+d+" "+p+" "+d+" "+(p+t)+" L "+d+" "+(o.y-r/2))).concat(" L "+(d-r)+" "+h)).concat(" L "+d+" "+(o.y+r/2))).concat(" L "+d+" "+(g-t)+" Q "+d+" "+g+" "+(d+e)+" "+g)).concat(" L "+(u-e)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-t))).concat(" L "+u+" "+(p+t)+" Q "+u+" "+p+" "+(u-e)+" "+p+" z"),c}function V(e,t,i,o,r){return void 0===o&&(o=0),void 0===r&&(r=0),e>=i.x-o&&e<=i.x+i.width+o&&t>=i.y-r&&t<=i.y+i.height+r}function H(e,t,i){return(i.isAxisInverse?1-e/t:e/t)*i.visibleRange.delta+i.visibleRange.min}function W(e,t,i){return(i.isAxisInverse?e/t:1-e/t)*i.visibleRange.delta+i.visibleRange.min}function j(e,t){void 0===t&&(t=!1);var i=e.clipRect;!t||"Polar"!==e.type&&"Radar"!==e.type?e.chart.requireInvertedAxis?(i.x=e.yAxis.rect.x,i.y=e.xAxis.rect.y,i.width=e.yAxis.rect.width,i.height=e.xAxis.rect.height):(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):"Scatter"===e.drawType?(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):(i.x=e.xAxis.rect.x/2,i.y=e.yAxis.rect.y/2,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height)}function U(e){return e.substr(0,1).toLowerCase()+e.substr(1)}function X(e,t,o){var r,n,a,l;return o?(r=t.rect.x,n=e.rect.y,a=t.rect.width,l=e.rect.height):(r=e.rect.x,n=t.rect.y,a=e.rect.width,l=t.rect.height),new i.Rect(r,n,a,l)}function G(e,i){for(var o,r,n,a=Number.MAX_VALUE,l=!0,s=[],h=0,c=i;h<c.length;h++)if((p=c[h]).visible&&1!==p.points.map(function(e){return e.xValue}).length){l=!1;break}for(var d=0;d<i.length;d++){var p=i[d];if(o=[],p.visible&&(e.name===p.xAxisName||"primaryXAxis"===e.name&&null===p.xAxisName||e.name===p.chart.primaryXAxis.name&&!p.xAxisName))if(p.type.indexOf("Stacking")>-1&&-1===s.indexOf(p.stackingGroup)&&s.push(p.stackingGroup),(o=p.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length&&l)if("Category"===e.valueType){var u=p.xAxis.visibleRange.min,g=o[0]-u;0!==g&&(a=Math.min(a,g))}else if("DateTime"===e.valueType){var m=1===i.length?2592e4:2592e6;n=p.xMin===p.xMax?p.xMin-m:p.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r))}else n=p.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r));else for(var y=0;y<o.length;y++){var f=o[y];y>0&&f&&0!==(r=p.type.indexOf("Stacking")>-1&&"Category"===e.valueType?s.length:f-o[y-1])&&(a=Math.min(a,r))}}return a===Number.MAX_VALUE&&(a=1),a}function Y(e){var t;switch(e){case"Linear":t=Z}return t}function Z(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t}function q(e,i,o,r,n,a,l){var s=!!r.accumulation;e.style.visibility="hidden";var h=e.getAttribute("transform");new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(t){if(t.timeStamp>t.delay&&(t.element.style.visibility="visible"),s?t.element.id.indexOf("_datalabel_Series_")>-1:(t.element.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("StackLabel")>-1)&&!(r.chart.stackLabels.visible&&e.getAttribute("data-collide"))){t.element.style.visibility="visible";var i=s?r.opacity:r.marker.dataLabel.opacity,o=t.timeStamp/500*i;s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",Math.min(o,i).toString()):(r.textElement.setAttribute("opacity",Math.min(o,i).toString()),r.shapeElement.setAttribute("opacity",Math.min(o,i).toString()))}},end:function(){"Scatter"!==r.type&&"Bubble"!==r.type||!r.lastValueLabelElement||r.lastValueLabelElement.setAttribute("visibility","visible");var t=document.getElementById(r.chart.element.id+"_Annotation_Collections");t&&"Line"!==r.type&&(t.style.visibility="visible"),(e.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("_datalabel_Series_")>-1||e.id.indexOf("StackLabel")>-1)&&(s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",r.opacity.toString()):(r.textElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()),r.shapeElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()))),r.chart.stackLabels.visible&&e.getAttribute("data-collide")||(e.style.visibility=""),e.setAttribute("transform",h||""),"Scatter"!==r.type&&"Bubble"!==r.type||l||n!==r.points.length-1||r.chart.trigger("animationComplete",{series:r})}})}function Q(e,o,r,n,a){var l=function(t){e.setAttribute("x",t.x+""),e.setAttribute("y",t.y+""),e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")};new t.Animation({}).animate(t.createElement("div"),{duration:r,delay:o,progress:function(e){l(new i.Rect(Z(e.timeStamp,a.x,n.x-a.x,e.duration),Z(e.timeStamp,a.y,n.y-a.y,e.duration),Z(e.timeStamp,a.width,n.width-a.width,e.duration),Z(e.timeStamp,a.height,n.height-a.height,e.duration)))},end:function(){l(n)}})}function $(e,i,o,r,n){if(!o||!r&&!e)return null;var a=300;t.isNullOrUndefined(n)||(a=n);var l,s,h,c=r||e.getAttribute("d"),d=c.split(/(?=[LMCZAQ])/),p=i.split(/(?=[LMCZAQ])/),u=[],g=[];e.setAttribute("d",c),new t.Animation({}).animate(t.createElement("div"),{duration:a,progress:function(t){l="",d.map(function(e,i){if(u=e.split(" "),g=p[i]?p[i].split(" "):u,"Z"===u[0]?l+="Z ":""===u[0]?l="":l+=u[0]+" "+Z(t.timeStamp,+u[1],+g[1]-+u[1],t.duration)+" "+Z(t.timeStamp,+u[2],+g[2]-+u[2],t.duration)+" ","C"===u[0]||"Q"===u[0])for(s=3,h="Q"===u[0]?4:6;s<h;)l+=Z(t.timeStamp,+u[s],+g[s]-+u[s],t.duration)+" "+Z(t.timeStamp,+u[++s],+g[s]-+u[s],t.duration)+" ",++s;"A"===u[0]&&(l+="0 0 1 "+Z(t.timeStamp,+u[6],+g[6]-+u[6],t.duration)+" "+Z(t.timeStamp,+u[7],+g[7]-+u[7],t.duration)+" ")}),e.setAttribute("d",l)},end:function(){e.setAttribute("d",i)}})}function K(e,i,o,r,n,a,l){if(!o||!r&&!e)return null;var s=300;t.isNullOrUndefined(n)||(s=n);var h=r||e.getAttribute("d"),c=i,d="";e.setAttribute("d",h),new t.Animation({}).animate(t.createElement("div"),{duration:s,progress:function(t){d="";for(var i=h.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),o=c.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),r=Math.max(i.length,o.length),n=0;n<r;n++){for(var a=i[n]||"",p=o[n]||"",u=a.trim().split(/\s+/),g=p.trim().split(/\s+/),m=[],y=1;y<u.length;y++){var f=parseFloat(u[y]),v=parseFloat(g[y]);if(!isNaN(f)&&!isNaN(v)&&(u.length===g.length||l)){var b=Z(t.timeStamp,f,v-f,s);m.push(b)}}m.length>0&&u.length!==g.length?d+="L":m.length>0&&(d+=u[0]),d+=" "+m.join(" "),d+=" "}e.setAttribute("d",d)},end:function(){e.setAttribute("d",a||i)}})}function J(e,t,i,o){void 0===o&&(o="drawClipPath");var r=Ve(e,t.id,t,i);if(r){var n=i.createDefs();return n.appendChild(r),n}return i[o](t)}function ee(e,t,i,o,r){var n={cancel:!1,name:Ti,axis:r,text:i,value:t,labelStyle:o};if(e.trigger(Ti,n),!n.cancel){var a=-1!==n.text.indexOf("<br>"),l=r.enableTrim?a?Be(r.maximumLabelWidth,n.text,r.labelStyle,e.themeStyle.axisLabelFont):ze(r.maximumLabelWidth,n.text,r.labelStyle,e.enableRtl,e.themeStyle.axisLabelFont):n.text;r.visibleLabels.push(new ro(l,n.value,n.labelStyle,n.text))}}function te(e){return null!=e.minimum&&null!=e.maximum}function ie(e){return e.zoomFactor<1&&e.zoomPosition>=0}function oe(e,i){var o="Horizontal"===i.orientation?e.width:e.height;if(t.isNullOrUndefined(i.desiredIntervals)){var r=("Horizontal"===i.orientation?.533:1)*i.maximumLabels;return r=Math.max(o*(r/100),1)}return i.desiredIntervals}function re(e,i,o,r,n){new t.Animation({}).animate(e,{duration:o,delay:i,name:r,progress:function(e){e.element.style.visibility="visible"},end:function(e){n?t.remove(e.element):e.element.style.visibility="visible"}})}function ne(e,t,o,r,n,a,l,s,h,c){var d=l||new i.SvgRenderer(""),p=ae(e,o,t,n,r,h,c);return d["draw"+p.functionName](p.renderOption,s?new Int32Array([s.x,s.y]):null)}function ae(e,o,r,n,a,l,s){var h,c,d,p="Path",u=l,g=u&&"Circle"===r?o.width-2:o.width,m=u&&"Circle"===r?o.height-2:o.height,y=u?s.targetWidth:0,f=e.x,v=e.y,b=e.y+-m/2,x=e.x+-g/2;switch(r){case"Bubble":case"Circle":p="Ellipse",t.merge(n,{rx:g/2,ry:m/2,cx:f,cy:v});break;case"Plus":h="M "+x+" "+v+" L "+(f+g/2)+" "+v+" M "+f+" "+(v+m/2)+" L "+f+" "+(v+-m/2),t.merge(n,{d:h});break;case"Cross":h="M "+x+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" M "+x+" "+(v+m/2)+" L "+(f+g/2)+" "+(v+-m/2),t.merge(n,{d:h});break;case"Multiply":h="M "+(f-y)+" "+(v-y)+" L "+(f+y)+" "+(v+y)+" M "+(f-y)+" "+(v+y)+" L "+(f+y)+" "+(v-y),t.merge(n,{d:h,stroke:n.fill});break;case"HorizontalLine":h="M "+x+" "+v+" L "+(f+g/2)+" "+v,t.merge(n,{d:h});break;case"VerticalLine":h="M "+f+" "+(v+m/2)+" L "+f+" "+(v+-m/2),t.merge(n,{d:h});break;case"Diamond":h="M "+x+" "+v+" L "+f+" "+(v+-m/2)+" L "+(f+g/2)+" "+v+" L "+f+" "+(v+m/2)+" L "+x+" "+v+" z",t.merge(n,{d:h});break;case"ActualRect":h="M "+x+" "+(v+-m/8)+" L "+(f+y)+" "+(v+-m/8)+" L "+(f+y)+" "+(v+m/8)+" L "+x+" "+(v+m/8)+" L "+x+" "+(v+-m/8)+" z",t.merge(n,{d:h});break;case"TargetRect":h="M "+(x+y)+" "+(v+-m/2)+" L "+(f+y/2)+" "+(v+-m/2)+" L "+(f+y/2)+" "+(v+m/2)+" L "+(x+y)+" "+(v+m/2)+" L "+(x+y)+" "+(v+-m/2)+" z",t.merge(n,{d:h});break;case"Rectangle":case"Hilo":case"HiloOpenClose":case"Candle":case"Waterfall":case"BoxAndWhisker":case"StepArea":case"RangeStepArea":case"StackingStepArea":case"Square":case"Flag":h="M "+x+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" L "+x+" "+(v+m/2)+" L "+x+" "+(v+-m/2)+" z",t.merge(n,{d:h});break;case"Pyramid":case"Triangle":h="M "+x+" "+(v+m/2)+" L "+f+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" L "+x+" "+(v+m/2)+" z",t.merge(n,{d:h});break;case"Funnel":case"InvertedTriangle":h="M "+(f+g/2)+" "+(v-m/2)+" L "+f+" "+(v+m/2)+" L "+(f-g/2)+" "+(v-m/2)+" L "+(f+g/2)+" "+(v-m/2)+" z",t.merge(n,{d:h});break;case"Pentagon":for(L=0;L<=5;L++)c=g/2*Math.cos(Math.PI/180*(72*L)),d=m/2*Math.sin(Math.PI/180*(72*L)),h=0===L?"M "+(f+c)+" "+(v+d)+" ":h.concat("L "+(f+c)+" "+(v+d)+" ");h=h.concat("Z"),t.merge(n,{d:h});break;case"Image":p="Image",t.merge(n,{href:a,height:m,width:g,x:x,y:b});break;case"Star":for(var S=Math.min(g,m)/2,C=S/2,F=Math.PI/5,w="",L=0;L<10;L++){var P=L%2==0?S:C,A=f+P*Math.cos(L*F-Math.PI/2),M=v+P*Math.sin(L*F-Math.PI/2);w+=(0===L?"M":"L")+A+","+M}w+="Z",t.merge(n,{d:w})}return n=Oe(e,new i.Size(g,m),r,n).renderOption,{renderOption:n,functionName:p}}function le(e,t,o){var r=t.x<o.x?o.x:t.x>o.x+o.width?o.x+o.width:t.x,n=t.y<o.y?o.y:t.y>o.y+o.height?o.y+o.height:t.y;return new i.Rect(r>e.x?e.x:r,n>e.y?e.y:n,Math.abs(r-e.x),Math.abs(n-e.y))}function se(e,t,i){return e>i?i:e<t?t:e}function he(e){return document.getElementById(e)}function ce(e){var i=null;try{i="function"!=typeof e&&document.querySelectorAll(e).length?t.compile(document.querySelector(e).innerHTML.trim()):t.compile(e)}catch(o){i=t.compile(e)}return i}function de(e,t,i,o,r,n,a,l,s,h){var c=e.getBoundingClientRect();t.accumulationDataLabelModule.calculateLabelSize(i,e,n,o,r,a,l,s,h,c,!0)}function pe(e,t,i,o,r,n){var a=document.getElementById(t.element.id+"_Series_"+(void 0===o.index?o.category:o.index)+"_DataLabelCollections");a&&(0===i.index&&(t.dataLabelCollections=[]),t.dataLabelModule.calculateTemplateLabelSize(a,e,i,o,o.marker.dataLabel,r,o.clipRect,n,!0))}function ue(e,t,i,o,r,n,a,l,s,h,c,d,p,u,g){var m,y=ce(i);try{var f={chart:o,series:n,point:r};e.id.indexOf("AxisLabelTemplate")>-1&&(f={value:r.value,label:r.text});var v=a?a+"_template":"template",b=y?y(f,o,v,a||e.id.replace(/[^a-zA-Z0-9]/g,"")):[];if(b.length)for(var x=(m=Array.prototype.slice.call(b)).length,S=0;S<x;S++)e.appendChild(m[S]);var C=void 0;"accumulationchart"===o.getModuleName()?(C=c.length&&c[t]?de.bind(this,e,o,h,c,s,c[t],d,p,u,g):C,o.isReact&&o.renderReactTemplates(C)):"chart"===o.getModuleName()&&(C=r&&n?pe.bind(this,e,o,r,n,l,g):C,o.isReact&&o.renderReactTemplates(C))}catch(t){return e}return e}function ge(e,t){return"font-size:"+(e.size||t.size)+"; font-style:"+(e.fontStyle||t.fontStyle)+"; font-weight:"+(e.fontWeight||t.fontWeight)+"; font-family:"+e.fontFamily+";opacity:"+e.opacity+"; color:"+e.color+";"}function me(e,i,o){void 0===i&&(i=!1),o||document.body.appendChild(e);var r=e.getBoundingClientRect();return i?t.remove(e):o||g(e.id),r}function ye(e,t){for(var i,o=0,r=e.length;o<r;o++)e[o].id.indexOf(t)>-1&&(i=e[o]);return i}function fe(e,t,i,o,r){e="Logarithmic"===i.valueType?m(e>0?e:Math.pow(i.logBase,i.visibleRange.min),i.logBase):e,t="Logarithmic"===o.valueType?m(t>0?t:Math.pow(o.logBase,o.visibleRange.min),o.logBase):t,e=T(e,i),t=T(t,o);var n=r?i.rect.height:i.rect.width,a=r?o.rect.width:o.rect.height;return new mo(r?t*a:e*n,r?(1-e)*n:(1-t)*a)}function ve(e,t,i,o,r,n,a){if(void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r="x"),void 0===n&&(n="y"),!(e&&e.hasChildNodes()&&t))return null;be(!1,t,e,i,o,r,n,void 0,void 0,void 0,void 0,void 0,a)}function be(e,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v){if(void 0===a&&(a=!1),void 0===l&&(l="x"),void 0===s&&(s="y"),void 0===d&&(d=!1),void 0===p&&(p=!1),void 0===u&&(u=null),void 0===m&&(m=!1),void 0===y&&(y=0),e)return null;var b=m?null:o.querySelector("#"+r.id),x=b||he(r.id),S=r,C=t.isNullOrUndefined(g)?300:g;if(n&&a&&x)if(h=h||("DIV"===x.tagName?new mo(+x.style[l].split("px")[0],+x.style[s].split("px")[0]):new mo(+x.getAttribute(l),+x.getAttribute(s))),c&&"undefined"!==c)$(r,r.getAttribute("d"),n,c,C);else if(p&&u)Q(S,0,C,new i.Rect(+x.getAttribute("x"),+x.getAttribute("y"),+x.getAttribute("width"),+x.getAttribute("height")),u);else{var F="DIV"===S.tagName?new mo(+S.style[l].split("px")[0],+S.style[s].split("px")[0]):new mo(+S.getAttribute(l),+S.getAttribute(s)),w=x.getAttribute("transform");He(S,C,h,F,l,s,y,f,void 0!==v?new mo(v.match(/\d+/g).map(Number)[0],v.match(/\d+/g).map(Number)[1]):w?new mo(parseFloat(w.split(",")[1]),parseFloat(w.split(",")[2])):new mo(0,0),void 0!==v)}else n&&a&&!x&&d&&re(S,0,600,"FadeIn");b?o.replaceChild(S,x):o.appendChild(S)}function xe(e,t,o,r,n){var a=Math.abs(e-o),l=Math.abs(t-r),s=Math.max(Se(Math.min(e,o),a,n.x,n.width),n.x),h=Math.max(Se(Math.min(t,r),l,n.y,n.height),n.y);return new i.Rect(s,h,Math.min(a,n.width),Math.min(l,n.height))}function Se(e,t,i,o){return e<i?e=i:e+t>o+i&&(e=o+i-t),e}function Ce(e,t,i){var o=t.marker.dataLabel.format?t.marker.dataLabel.format:t.yAxis.labelFormat,r=[],n=null!==o.match("{value}");switch(t.seriesType){case"XY":"PolarRadar"===t.chart.chartAreaType?-1!==t.drawType.indexOf("Stacking")?("Logarithmic"===t.yAxis.valueType&&b(t.stackedValues.endValues[e.index],t.yAxis)||v(t.stackedValues.endValues[e.index],t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):("Logarithmic"===t.yAxis.valueType&&b(e.yValue,t.yAxis)||v(e.yValue,t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):r.push(e.text||e.yValue.toString());break;case"HighLow":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString());break;case"HighLowOpenClose":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString()),r.push(e.text||Math.max(e.open,e.close).toString()),r.push(e.text||Math.min(e.open,e.close).toString());break;case"BoxPlot":r.push(e.text||e.median.toString()),r.push(e.text||e.maximum.toString()),r.push(e.text||e.minimum.toString()),r.push(e.text||e.upperQuartile.toString()),r.push(e.text||e.lowerQuartile.toString());for(var a=0,l=e.outliers;a<l.length;a++){var s=l[a];r.push(e.text||s.toString())}}if((o||i.useGroupingSeparator)&&!e.text){var h="DateTime"===t.yAxis.valueType&&/[yMdHhms]/.test(o||"");t.yAxis.format=h?i.intl.getDateFormat({format:n?"":o}):i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var c=0;c<r.length;c++){var d=h?t.yAxis.format(new Date(Number(r[c]))):t.yAxis.format(parseFloat(r[c]));r[c]=n?o.replace("{value}",d):d}}return r}function Fe(e){window.clearInterval(e)}function we(e,t,o){var r=new i.Rect(e.x+o.x,e.y+o.y,e.width,e.height);return t.some(function(e){return r.x<e.x+e.width&&r.x+r.width>e.x&&r.y<e.y+e.height&&r.height+r.y>e.y})}function Le(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.height+e.y>t.y}function Pe(e,t){return e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.y<=t.y&&e.height+e.y>=t.y+t.height}function Ae(e,t,o){return new i.Rect(e.x-t.width/2-o.left,e.y-t.height/2-o.top,t.width+o.left+o.right,t.height+o.top+o.bottom)}function Me(e){return"#"+De(e.r)+De(e.g)+De(e.b)}function De(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ke(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?new vo(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):new vo(255,255,255)}function Re(e){e="transparent"===e?"white":e;var i=document.getElementById("chartmeasuretext");i||(i=t.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(i)),i.style.color=e,e=window.getComputedStyle(i).color,i.style.color="";var o;if(0!==e.indexOf("rgb")&&0!==e.indexOf("hsl")||(o=(e=e.replace(/\s/g,"").replace(/[()]/g,"")).slice(3).split(",")),o&&o.length){var r=o.map(function(e){return parseInt(e,10)}),n=r[0],a=r[1],l=r[2];return Me(new vo(n,a,l))}return""}function Te(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1}function Ee(e,t){(e=(e=Re(e)).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var i,o="#",r=0;r<3;r++)i=parseInt(e.substr(2*r,2),16),o+=("00"+(i=Math.round(Math.min(Math.max(0,i+i*t),255))).toString(16)).substr(i.toString(16).length);return o}function _e(e,t){var i=ke(e);return i.r=parseInt(Math.floor(i.r*t).toString(),10),i.g=parseInt(Math.floor(i.g*t).toString(),10),i.b=parseInt(Math.floor(i.b*t).toString(),10),"#"+De(i.r).toUpperCase()+De(i.g).toUpperCase()+De(i.b).toUpperCase()}function Ie(e){var t=Math.floor(e.length/2);return e.length%2?e[t]:(e[t-1]+e[t])/2}function Oe(e,i,o,r){var n="",a=i.height,l=i.width,s=e.x,h=e.y;switch(o){case"MultiColoredLine":case"Line":case"StackingLine":case"StackingLine100":n="M "+(s+.75*-l)+" "+h+" L "+(s+.75*l)+" "+h,t.merge(r,{d:n});break;case"StepLine":r.fill="transparent",n="M "+(s+-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+h+" L "+(s+-l/10)+" "+h+" L "+(s+-l/10)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+-a/2)+" L "+(s+l/2)+" "+(h+-a/2)+"L "+(s+l/2)+" "+(h+a/2)+" L"+(s+l/2+2.5)+" "+(h+a/2),t.merge(r,{d:n});break;case"UpArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+-l/2)+" "+(h+a/2)+" L "+s+" "+(h-a/2)+" L "+(s+l/2)+" "+(h+a/2)+"L "+(s+l/2-2)+" "+(h+a/2)+" L "+s+" "+(h-a/2+4)+"L"+(s-l/2+2)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"DownArrow":n="M "+(s-l/2)+" "+(h-a/2)+" L "+s+" "+(h+a/2)+" L "+(s+l/2)+" "+(h-a/2)+"L "+(s+l/2-2)+" "+(h-a/2)+" L "+s+" "+(h+a/2-4)+"L"+(s-l/2+2)+" "+(h-a/2)+" Z",t.merge(r,{d:n});break;case"RightArrow":n="M "+(s+-l/2)+" "+(h-a/2)+" L "+(s+l/2)+" "+h+" L "+(s+-l/2)+" "+(h+a/2)+" L "+(s+-l/2)+" "+(h+a/2-2)+" L "+(s+l/2-4)+" "+h+" L"+(s+-l/2)+" "+(h-a/2+2)+" Z",t.merge(r,{d:n});break;case"LeftArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+l/2)+" "+(h-a/2)+" L "+(s+-l/2)+" "+h+" L "+(s+l/2)+" "+(h+a/2)+" L "+(s+l/2)+" "+(h+a/2-2)+" L "+(s+-l/2+4)+" "+h+" L"+(s+l/2)+" "+(h-a/2+2)+" Z",t.merge(r,{d:n});break;case"Column":case"Pareto":case"StackingColumn":case"StackingColumn100":case"RangeColumn":case"Histogram":n="M "+(s-l/5*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h+a/2)+" L "+(s-l/5*3)+" "+(h+a/2)+" Z M "+(s+-l/10-l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h+a/2)+" L "+(s+-l/10-l/20)+" "+(h+a/2)+" Z M "+(s+l/10*3)+" "+h+" L "+(s+l/5*3)+" "+h+" L "+(s+l/5*3)+" "+(h+a/2)+" L "+(s+l/10*3)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"Bar":case"StackingBar":case"StackingBar100":n="M "+(s+-l/2+-2.5)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/10*3)+" L "+(s-l/2-2.5)+" "+(h-a/10*3)+" Z M "+(s+-l/2+-2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h+a/10+.5)+" L "+(s-l/2-2.5)+" "+(h+a/10+.5)+" Z M "+(s-l/2-2.5)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/2+1)+" L "+(s-l/2-2.5)+" "+(h+a/2+1)+" Z",t.merge(r,{d:n});break;case"Spline":r.fill="transparent",n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2),t.merge(r,{d:n});break;case"Area":case"MultiColoredArea":case"RangeArea":case"StackingArea":case"StackingArea100":n="M "+(s-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/4+-1.25)+" "+(h-a/2)+" L "+s+" "+(h+a/4)+" L "+(s+l/4+1.25)+" "+(h+-a/2+a/4)+" L "+(s+a/2+2.5)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"SplineArea":case"SplineRangeArea":n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" Z M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2)+"  Z",t.merge(r,{d:n});break;case"Pie":case"Doughnut":r.stroke="transparent",n=D(s,h,Math.min(a,l)/2,a,l),t.merge(r,{d:n})}return{renderOption:r}}function ze(e,t,o,r,n){var a=t,l=i.measureText(t,o,n).width;if(l>e)for(var s=t.length-1;s>=0;--s)if(a=r?"..."+t.substring(0,s):t.substring(0,s)+"...",(l=i.measureText(a,o,n).width)<=e)return a;return a}function Be(e,t,o,r){for(var n=[],a=t.split("<br>"),l=0;l<a.length;l++){t=a[l];var s=i.measureText(t,o,r).width;if(s>e){for(var h=t.length-1;h>=0;--h)if(t=t.substring(0,h)+"...",(s=i.measureText(t,o,r).width)<=e){n.push(t);break}}else n.push(t)}return n}function Ne(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function Ve(e,t,i,o){if(!e)return null;var r=he(t);return r&&i&&o.setElementAttributes(i,"clipPath"===r.tagName?r.childNodes[0]:r),r}function He(e,i,o,r,n,a,l,s,h,c){void 0===n&&(n="x"),void 0===a&&(a="y"),void 0===l&&(l=0),void 0===s&&(s=new mo(0,0)),void 0===h&&(h=new mo(0,0));var d="DIV"===e.tagName,p=function(t,i,o,r){d?(e.style[n]=t+"px",e.style[a]=i+"px"):(e.setAttribute(n,t+""),e.setAttribute(a,i+""),l&&s.x&&s.y&&h.x&&h.y&&o&&r&&e.setAttribute("transform","rotate("+l+","+o+","+r+")"),c&&e.setAttribute("transform","translate("+o+","+r+")"))};p(o.x,o.y,h.x,h.y),new t.Animation({}).animate(t.createElement("div"),{duration:i,progress:function(e){p(Z(e.timeStamp,o.x,r.x-o.x,e.duration),Z(e.timeStamp,o.y,r.y-o.y,e.duration),Z(e.timeStamp,h.x,s.x-h.x,e.duration),Z(e.timeStamp,h.y,s.y-h.y,e.duration))},end:function(){p(r.x,r.y,s.x,s.y)}})}function We(e,i,o,r,n){if(e&&o&&r){var a=function(e){return n?n.replace("{value}",e.toString()):e.toString()};new t.Animation({}).animate(t.createElement("div"),{duration:i,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,n=o+(r-o)*i;n=o%1!=0||r%1!=0?parseFloat(n.toFixed(1)):Math.round(n),e.textContent=a(n)},end:function(){e.textContent=a(r)}})}}function je(e,t,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v){void 0===a&&(a=!1),void 0===h&&(h=!1);var b,x,S,C,F,w={},L=0,P=0;if(t.text.length>1&&m){for(var A=0,M=t.text.length;A<M;A++)P=Math.max(P,i.measureText(t.text[A],o,y).width);L=i.measureText(t.text[0],o,y).width}F=t.text.length>1&&m?t.x+P/2-L/2:t.x,w={id:t.id,x:F,y:t.y,fill:r||"black","font-size":o.size||y.size,"font-style":o.fontStyle||y.fontStyle,"font-family":o.fontFamily||y.fontFamily,"font-weight":o.fontWeight||y.fontWeight,"text-anchor":t.anchor,labelRotation:t.labelRotation,transform:t.transform,opacity:o.opacity,"dominant-baseline":t.baseLine};var D="string"==typeof t.text?t.text:a?t.text[t.text.length-1]:t.text[0],k=d?d.x:0,R=d?d.y:0,T=e.createText(w,D,k,R);if("string"!=typeof t.text&&t.text.length>1)for(var A=1,M=t.text.length;A<M;A++)x=i.measureText(t.text[A],o,y).height,L=i.measureText(t.text[A],o,y).width,S=t.y+(a?-A*x:A*x),F=m?t.x+P/2-L/2:t.x,C=a?t.text[t.text.length-(A+1)]:t.text[A],g?b=e.createText(w,C,null,null,S,!0):(b=e.createTSpan({x:F,id:t.id,y:S},C),T.appendChild(b));return u||be(e instanceof i.CanvasRenderer,n,T,l,s,"x","y",null,null,h,!1,null,c,!1,t.labelRotation,f,v),T}function Ue(e){var o=e.element.clientWidth||e.element.offsetWidth,r=e.element.clientHeight;e.stockChart&&(o=e.stockChart.availableSize.width,r=e.stockChart.availableSize.height);var n,a=450;if("rangeNavigator"===e.getModuleName()){var l=e,s=l.tooltip.enable?35:0,h=l.periodSelectorSettings.periods.length?l.periodSelectorSettings.height:0;n=l.margin.top+l.margin.bottom+s;var c=i.measureText("tempString",l.labelStyle,l.themeStyle.axisLabelFont).height;if(a=(e.series.length?t.Browser.isDevice?80:120:(l.enableGrouping?55+c:40)+n)+h,l.disableRangeSelector&&(a=h),e.stockChart&&e.stockChart.chart&&"Outside"===e.stockChart.chart.axisCollections[1].labelPosition){var d=e.stockChart.chart.axisCollections[1].labelPadding+.5*e.stockChart.chart.axisCollections[1].lineStyle.width;e.width=(e.stockChart.availableSize.width-(e.stockChart.chart.axisCollections[1].maxLabelSize.width+d)).toString()}}e.availableSize=new i.Size(Ne(e.width,o)||o||600,Ne(e.height,r||a)||r||a),"chart"===e.getModuleName()&&(e.scaleX=1,e.scaleY=1)}function Xe(e){e.canvasRender=new i.CanvasRenderer(e.element.id),e.renderer=e.enableCanvas?e.canvasRender:new i.SvgRenderer(e.element.id),Ue(e),e.stockChart&&"chart"===e.getModuleName()?e.svgObject=e.stockChart.chartObject:e.stockChart&&"rangeNavigator"===e.getModuleName()&&e.stockChart.selectorObject?e.svgObject=e.stockChart.selectorObject:e.enableCanvas?e.svgObject=e.renderer.createCanvas({id:e.element.id+"_canvas",width:e.availableSize.width,height:e.availableSize.height}):(e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),e.svgObject.setAttribute("aria-label","Interactive chart")),e.enableCanvas&&(e.renderer.ctx.direction=e.enableRtl?"rtl":"ltr")}function Ge(e,t,i,o,r){var n=[];switch(t.textOverflow){case"Wrap":n=Ze(e,i,t,o,e.indexOf(" ")<0||null,null,r);break;case"Trim":n.push(ze(i,e,t,o,r));break;default:n.push(e)}return n}function Ye(e,t){return"Near"===t.textAlignment?e.x:"Center"===t.textAlignment?e.x+e.width/2:e.x+e.width}function Ze(e,t,o,r,n,a,l,s){if(n)return qe(e,t,o,l);for(var h,c=e.split(" "),d="",p=[],u=i.measureText("chartMeasureText",o,l).height,g=0,m=0,y=c.length;m<y;m++){if(h=c[m],i.measureText(d.concat(""===d?"":" "+h),o,l).width<t)d=d.concat((""===d?"":" ")+h);else if(""!==d){if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?d:ze(t,d,o,r,l)),d=h}else{if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?h:ze(t,h,o,r,l))}if(d&&m===y-1){if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?d:ze(t,d,o,r,l))}}return p}function qe(e,t,o,r){var n=i.measureText(e,o,r).width,a=[];if(n>t){for(var l="",s=0,h=1;h<e.length;)l=e.substring(s,h),(n=i.measureText(l,o,r).width)<t?h++:n===t?(s=h,a.push(l),h++,l=""):n>t&&(l=l.slice(0,-1),s=h-1,a.push(l),l="");l.length>0&&a.push(l)}else a.push(e);return a}function Qe(e,t){for(var i=e.replace(t," "),o=e.match(t),r=" ",n=" ",a=0,l={0:"₀",1:"₁",2:"₂",3:"₃",4:"₄",5:"₅",6:"₆",7:"₇",8:"₈",9:"₉"},s={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹"},h=0;h<=i.length-1;h++)if(" "===i[h]){r=t===Ei?o[a].replace(/~/g,""):o[a].replace(/\^/g,"");for(var c=0;c<r.length;c++)n+=t===Ei?l[r[c]]:s[r[c]];a++}else n+=i[h];return n.trim()}function $e(e,t){return Number(t)===e.start?e.colors[0]:Number(t)===e.end?e.colors[e.colors.length-1]:Me(Ke(Number(t),e))}function Ke(e,t){var i=t.start,o=t.end,r=0,n=o-i;r=(e-i)/n;var a,l;if(t.colors.length<=2)a="#"===t.colors[0].charAt(0)?t.colors[0]:Re(t.colors[0]),l="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:Re(t.colors[t.colors.length-1]);else{a="#"===t.colors[0].charAt(0)?t.colors[0]:Re(t.colors[0]),l="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:Re(t.colors[t.colors.length-1]);for(var s=n/(t.colors.length-1),h=t.colors.length-1,c=[],d={},p=1;p<h;p++)d={b:i+p*s,color:t.colors[p]},c.push(d);for(var u=0;u<c.length;u++)i<=e&&e<=c[u].b&&0===u?(l="#"===c[u].color.charAt(0)?c[u].color:Re(c[u].color),r=e<=c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s):c[u].b<=e&&e<=o&&u===c.length-1&&(a="#"===c[u].color.charAt(0)?c[u].color:Re(c[u].color),r=e<c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s),u!==c.length-1&&u<c.length&&c[u].b<=e&&e<=c[u+1].b&&(a="#"===c[u].color.charAt(0)?c[u].color:Re(c[u].color),l="#"===c[u+1].color.charAt(0)?c[u+1].color:Re(c[u+1].color),r=Math.abs(e-c[u+1].b)/s)}return Je(r,a,l)}function Je(e,t,i){var o=i.split("#")[1],r=t.split("#")[1],n=et(e,parseInt(r.substr(0,2),16),parseInt(o.substr(0,2),16)),a=et(e,parseInt(r.substr(2,2),16),parseInt(o.substr(2,2),16)),l=et(e,parseInt(r.substr(4,2),16),parseInt(o.substr(4,2),16));return new vo(n,a,l)}function et(e,t,i){var o=i-t;return Math.round(t+o*e)}function tt(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}}function it(e){var t;switch(e){case"Fabric":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function ot(e,t,o){var r,n="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b";switch(e){case"HighContrastLight":case"HighContrast":r={axisLabel:"#ffffff",axisTitle:"#ffffff",axisLine:"#ffffff",majorGridLine:"#BFBFBF",minorGridLine:"#969696",majorTickLine:"#BFBFBF",minorTickLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:t?"#000000":"transparent",areaBorder:"#ffffff",errorBar:"#ffffff",crosshairLine:"#ffffff",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"#ffffff",crosshairLabel:"#000000",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",markerShadow:"#BFBFBF",selectionRectFill:"rgba(255, 217, 57, 0.3)",selectionRectStroke:"#ffffff",selectionCircleStroke:"#FFD939",tabColor:"#FFD939",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#FFD939",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":r={axisLabel:"#DADADA",axisTitle:"#ffffff",axisLine:" #6F6C6C",majorGridLine:"#414040",minorGridLine:"#514F4F",majorTickLine:"#414040",minorTickLine:" #4A4848",chartTitle:"#ffffff",legendLabel:"#DADADA",background:t?n:"transparent",areaBorder:" #9A9A9A",errorBar:"#ffffff",crosshairLine:"#F4F4F4",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"MaterialDark"===e?"#F4F4F4":"FabricDark"===e?"#A19F9D":"#F0F0F0",crosshairLabel:"#282727",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",markerShadow:null,selectionRectFill:"rgba(56,169,255, 0.1)",selectionRectStroke:"#38A9FF",selectionCircleStroke:"#282727",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.24)":"FabricDark"===e?"#6F6C6C":"#414141",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":r={axisLabel:"#212529",axisTitle:"#212529",axisLine:"#CED4DA",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",majorTickLine:"#ADB5BD",minorTickLine:"#CED4DA",chartTitle:"#212529",legendLabel:"#212529",background:t?"#FFFFFF":"transparent",areaBorder:"#DEE2E6",errorBar:"#000000",crosshairLine:"#6C757D",crosshairBackground:"rgba(0, 0, 0, 0.1)",crosshairFill:"#212529",crosshairLabel:"#FFFFFF",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",markerShadow:null,selectionRectFill:"rgba(255,255,255, 0.1)",selectionRectStroke:"rgba(0, 123, 255)",selectionCircleStroke:"#495057",tabColor:"#007BFF",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#007BFF",toolkitFill:"#495057",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(-5,-5,26,26),chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#6C757D",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":r={axisLabel:"#4B5563",axisTitle:"#6B7280",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#111827",legendLabel:"#4B5563",background:t?"rgba(255,255,255, 0.0)":"transparent",areaBorder:"#D1D5DB",errorBar:"#1F2937",crosshairLine:"#1F2937",crosshairBackground:"rgba(107, 114, 128, 0.1)",crosshairFill:"#111827",crosshairLabel:"#F9FAFB",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",markerShadow:null,selectionRectFill:"rgba(224, 231, 255, 0.25)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#4F46E5",bearFillColor:"#EF291F",bullFillColor:"#0D72DE",toolkitSelectionColor:"#212529",toolkitFill:"#6B7280",toolkitIconRectOverFill:"#F9FAFB",toolkitIconRectSelectionFill:"#F3F4F6",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},stripLineLabelFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3Dark":r={axisLabel:"#D1D5DB",axisTitle:"#9CA3AF",axisLine:" #374151",majorGridLine:"#282F3C",minorGridLine:"#282F3C",majorTickLine:"#374151",minorTickLine:" #374151",chartTitle:"#FFFFFF",legendLabel:"#D1D5DB",background:t?"#1f2937":"transparent",areaBorder:" #374151",errorBar:"#6B7280",crosshairLine:"#6B7280",crosshairBackground:"rgba(107, 114, 128, 0.1)",crosshairFill:"#F9FAFB",crosshairLabel:"#1F2937",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",markerShadow:null,selectionRectFill:"rgba(30, 27, 75, 0.25)",selectionRectStroke:"#6366F1",selectionCircleStroke:"#282727",tabColor:"#22D3EE",bearFillColor:"#EF291F",bullFillColor:"#0D72DE",toolkitSelectionColor:"#FFFFFF",toolkitFill:"#FFFFFF",toolkitIconRectOverFill:"#242A38",toolkitIconRectSelectionFill:"#242A38",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},stripLineLabelFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind":r={axisLabel:"#6B728",axisTitle:"#374151",axisLine:" #D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:" #D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:t?"rgba(255,255,255, 0.0)":"transparent",areaBorder:" #E5E7EB",errorBar:"#374151",crosshairLine:"#1F2937",crosshairBackground:"rgba(90, 97, 246, 0.1)",crosshairFill:"#111827",crosshairLabel:"#F9FAFB",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#4F46E5",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#4F46E5",toolkitFill:"#6B7280",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":r={axisLabel:"#9CA3AF",axisTitle:"#9CA3AF",axisLine:" #4B5563",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:" #4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:t?"#1f2937":"transparent",areaBorder:" #374151",errorBar:"#ffffff",crosshairLine:"#9CA3AF",crosshairBackground:"rgba(90, 97, 246, 0.1)",crosshairFill:"#F9FAFB",crosshairLabel:"#1F2937",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",markerShadow:null,selectionRectFill:"rgba(34,211,238, 0.1)",selectionRectStroke:"#22D3EE",selectionCircleStroke:"#282727",tabColor:"#22D3EE",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#22D3EE",toolkitFill:"#D1D5DB",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":r={axisLabel:"#212529",axisTitle:"#212529",axisLine:"#DEE2E6",majorGridLine:"#E9ECEF",minorGridLine:"#E9ECEF",majorTickLine:"#DEE2E6",minorTickLine:"#E9ECEF",chartTitle:"#212529",legendLabel:"#212529",background:t?"#212529":"transparent",areaBorder:"#E9ECEF",errorBar:"#343A40",crosshairLine:"#343A40",crosshairBackground:"rgba(52, 58, 64, 0.1)",crosshairFill:"#000000",crosshairLabel:"#FFFFFF",tooltipFill:"#E9ECEF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",markerShadow:null,selectionRectFill:"rgba(134,183,254, 0.1)",selectionRectStroke:"#0D6EFD",selectionCircleStroke:"#6B7280",tabColor:"#0D6EFD",bearFillColor:"#DC3545",bullFillColor:"#6F42C1",toolkitSelectionColor:"#6E757D",toolkitFill:"#6E757D",toolkitIconRectOverFill:"#F8F9FA",toolkitIconRectSelectionFill:"#F8F9FA",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"accumulationchart"===o.getModuleName()?"#21252980":"#212529",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"14px":"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},stripLineLabelFont:{color:"#6C757D",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":r={axisLabel:"#DEE2E6",axisTitle:"#DEE2E6",axisLine:"#495057",majorGridLine:"#343A40",minorGridLine:"#343A40",majorTickLine:"#495057",minorTickLine:"#343A40",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:t?"#212529":"transparent",areaBorder:"#343A40",errorBar:"#ADB5BD",crosshairLine:"#ADB5BD",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#212529",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",markerShadow:null,selectionRectFill:"rgba(134,183,254, 0.25)",selectionRectStroke:"#0D6EFD",selectionCircleStroke:"#0D6EFD",tabColor:"#0D6EFD",bearFillColor:"#DC3545",bullFillColor:"#6F42C1",toolkitSelectionColor:"#F8F9FA",toolkitFill:"#ADB5BD",toolkitIconRectOverFill:"#2B3035",toolkitIconRectSelectionFill:"#343A40",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"accumulationchart"===o.getModuleName()?"#DEE2E680":"#DEE2E6",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"14px":"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},stripLineLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":r={axisLabel:"#3B3A39",axisTitle:"#201F1E",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:" #D2D0CE",chartTitle:"#201F1E",legendLabel:"#323130",background:t?"#FFFFFF":"transparent",areaBorder:"#EDEBE9",errorBar:"#A19F9D",crosshairLine:"#A19F9D",crosshairBackground:"rgba(161, 159, 157, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#323130",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#0078D4",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#0078D4",toolkitFill:"#A19F9D",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#A19F9D",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":r={axisLabel:"#C8C6C4",axisTitle:"#F3F2F1",axisLine:"#3B3A39",majorGridLine:"#414040",minorGridLine:"#414040",majorTickLine:"#3B3A39",minorTickLine:"#3B3A39",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:t?"#383838":"transparent",areaBorder:"#414040",errorBar:"#D2D0CE",crosshairLine:"#D2D0CE",crosshairBackground:"rgba(161, 159, 157, 0.1)",crosshairFill:"#323130",crosshairLabel:"#F3F2F1",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#0078D4",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#0078D4",toolkitFill:"#484644",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#F3F2F2",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#484644",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":r={axisLabel:"#616161",axisTitle:"#242424",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:"#D2D0CE",chartTitle:"#242424",legendLabel:"#242424",background:t?"#383838":"transparent",areaBorder:"#EDEBE9",errorBar:"#A19F9D",crosshairLine:"#A19F9D",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#242424",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",markerShadow:null,selectionRectFill:"rgba(180, 214, 250, 0.1)",selectionRectStroke:"#0F6CBD",selectionCircleStroke:"#0F6CBD",tabColor:"#0078D4",bearFillColor:"#E7910F",bullFillColor:"#0076E5",toolkitSelectionColor:"#424242",toolkitFill:"#424242",toolkitIconRectOverFill:"#E6E6E6",toolkitIconRectSelectionFill:"#E6E6E6",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"chart"===o.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2HighContrast":r={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#292827",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:t?"#383838":"transparent",areaBorder:"#292827",errorBar:"#8A8886",crosshairLine:"#8A8886",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"#000000",crosshairLabel:"#FFFFFF",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(26, 235, 255, 0.2)",selectionRectStroke:"#1AEBFF",selectionCircleStroke:"#1AEBFF",tabColor:"#0078D4",bearFillColor:"#584EC6",bullFillColor:"#43B786",toolkitSelectionColor:"#FFFFFF",toolkitFill:"#FFFFFF",toolkitIconRectOverFill:"#1AEBFF",toolkitIconRectSelectionFill:"#1AEBFF",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"chart"===o.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2Dark":r={axisLabel:"#ADADAD",axisTitle:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:t?"#383838":"transparent",areaBorder:"#292827",errorBar:"#8A8886",crosshairLine:"#8A8886",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#292929",crosshairLabel:"#FFFFFF",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(14, 71, 117, 0.1)",selectionRectStroke:"#115EA3",selectionCircleStroke:"#115EA3",tabColor:"#0078D4",bearFillColor:"#584EC6",bullFillColor:"#43B786",toolkitSelectionColor:"#D6D6D6",toolkitFill:"#D6D6D6",toolkitIconRectOverFill:"#333333",toolkitIconRectSelectionFill:"#333333",toolkitIconRect:new i.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"accumulationchart"===o.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"chart"===o.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3":r={axisLabel:"#1E192B",axisTitle:"#1C1B1F",axisLine:"#C4C7C5",majorGridLine:"#C4C7C5",minorGridLine:"#C4C7C5",majorTickLine:"#C4C7C5",minorTickLine:" #C4C7C5",chartTitle:"#1C1B1F",legendLabel:"#49454E",background:t?"#FFFFFF":"transparent",areaBorder:"#E7E0EC",errorBar:"#79747E",crosshairLine:"#49454E",crosshairBackground:"rgba(73, 69, 78, 0.1)",crosshairFill:"#313033",crosshairLabel:"#F4EFF4",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",markerShadow:null,selectionRectFill:"rgb(98, 0, 238, 0.06)",selectionRectStroke:"#6200EE",selectionCircleStroke:"#79747E",tabColor:"#49454E",bearFillColor:"#5887FF",bullFillColor:"#F7523F",toolkitSelectionColor:"#49454E",toolkitFill:"#49454E",toolkitIconRectOverFill:"#EADDFF",toolkitIconRectSelectionFill:"#EADDFF",toolkitIconRect:new i.Rect(-4,-5,26,26),histogram:"#D21020",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#79747E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":r={axisLabel:"#E6E1E5",axisTitle:"#E6E1E5",axisLine:"#49454F",majorGridLine:"#444746",minorGridLine:"#444746",majorTickLine:"#444746",minorTickLine:" #444746",chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:t?"#FFFFFF":"transparent",areaBorder:"#49454F",errorBar:"#938F99",crosshairLine:"#CAC4D0",crosshairBackground:"rgba(73, 69, 78, 0.1)",crosshairFill:"#E6E1E5",crosshairLabel:"#313033",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",markerShadow:null,selectionRectFill:"rgba(78, 170, 255, 0.06)",selectionRectStroke:"#4EAAFF",selectionCircleStroke:"#938F99",tabColor:"#CAC4D0",bearFillColor:"#B3F32F",bullFillColor:"#FF9E45",toolkitSelectionColor:"#CAC4D0",toolkitFill:"#CAC4D0",toolkitIconRectOverFill:"#4F378B",toolkitIconRectSelectionFill:"#4F378B",toolkitIconRect:new i.Rect(-4,-5,26,26),histogram:"#FF9E45",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#938F99",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;default:r={axisLabel:"#686868",axisTitle:"#424242",axisLine:"#b5b5b5",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",majorTickLine:"#b5b5b5",minorTickLine:"#d6d6d6",chartTitle:"#424242",legendLabel:"#353535",background:t?"#FFFFFF":"transparent",areaBorder:"Gray",errorBar:"#000000",crosshairLine:"#4f4f4f",crosshairBackground:"rgba(0, 0, 0, 0.1)",crosshairFill:"Material"===e?"#000816":"Fabric"===e?"#FFFFFF":"#212529",crosshairLabel:"#e5e5e5",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",markerShadow:null,selectionRectFill:"rgba(41, 171, 226, 0.1)",selectionRectStroke:"#29abe2",selectionCircleStroke:"#29abe2",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"Material"===e?"rgba(158, 158, 158, 1)":"Fabric"===e?"#A6A6A6":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}}}return r}function rt(e){var t;switch(e){case"HighContrastLight":t={backRect:"#333",thumb:"#bfbfbf",circle:"#fff",circleHover:"#685708",arrow:"#333",grip:"#333",arrowHover:"#fff",backRectBorder:"#969696"};break;case"Bootstrap":t={backRect:"#f5f5f5",thumb:"#e6e6e6",circle:"#fff",circleHover:"#eee",arrow:"#8c8c8c",grip:"#8c8c8c"};break;case"Fabric":t={backRect:"#f8f8f8",thumb:"#eaeaea",circle:"#fff",circleHover:"#eaeaea",arrow:"#a6a6a6",grip:"#a6a6a6"};break;case"MaterialDark":t={backRect:"#424242",thumb:"#616161",circle:"#757575",circleHover:"#616161",arrow:"#BDBDBD",grip:"#BDBDBD"};break;case"FabricDark":t={backRect:"#282727",thumb:"#333232",circle:"#4A4848",circleHover:"#514F4F",arrow:"#ADB5BD",grip:"#DADADA"};break;case"BootstrapDark":t={backRect:"#2A2A2A",thumb:"#313131",circle:"#414141",circleHover:"#484848",arrow:"#DADADA",grip:"#FFFFFF"};break;case"Bootstrap5":t={backRect:"#E9ECEF",thumb:"#ADB5BD",circle:"#F8F9FA",circleHover:"#F8F9FA",arrow:"#6E757D",grip:"#6E757D"};break;case"Bootstrap5Dark":t={backRect:"#343A40",thumb:"#ADB5BD",circle:"#2B3035",circleHover:"#2B3035",arrow:"#ADB5BD",grip:"#ADB5BD"};break;case"HighContrast":t={backRect:"#757575",thumb:"#BFBFBF",circle:"#FFFFFF",circleHover:"#FFFFFF",arrow:"#ADB5BD",grip:"#969696"};break;case"Tailwind3Dark":t={backRect:"#282F3C",thumb:"#374151",circle:"#111827",circleHover:"#eee",arrow:"#D1D5DB",grip:"#D1D5DB"};break;case"Fluent":t={backRect:"#F3F2F1",thumb:"#E1DFDD",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#605E5C",grip:"#605E5C"};break;case"FluentDark":t={backRect:"#252423",thumb:"#323130",circle:"#3B3A39",circleHover:"#3B3A39",arrow:"#ADB5BD",grip:"#A19F9D"};break;case"Fluent2":t={backRect:"#F5F5F5",thumb:"#F0F0F0",circle:"#FAFAFA",circleHover:"#FAFAFA",arrow:"#424242",grip:"#424242"};break;case"Fluent2Dark":t={thumb:"#0A0A0A",backRect:"#141414",circle:"#1F1F1F",circleHover:"#1F1F1F",arrow:"#D6D6D6",grip:"#D6D6D6"};break;case"Fluent2HighContrast":t={thumb:"#333333",backRect:"#000000",circle:"#000000",circleHover:"#000000",arrow:"#FFFFFF",grip:"#FFFFFF"};break;case"Material3":t={backRect:"rgba(103, 80, 164, 0.05)",thumb:" rgba(103, 80, 164, 0.14)",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#49454E",grip:"#49454E"};break;case"Material3Dark":t={backRect:"rgba(208, 188, 255, 0.05)",thumb:"rgba(208, 188, 255, 0.14)",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#CAC4D0",grip:"#CAC4D0"};break;case"Tailwind3":t={backRect:"#E5E7EB",thumb:"#D1D5DB",circle:"#FFFFFF",circleHover:"#eee",arrow:"#6B7280",grip:"#6B7280"};break;case"TailwindDark":t={backRect:"#6B7280",thumb:"#374151",circle:"#4B5563",circleHover:"#4B5563",arrow:"#ADB5BD",grip:"#D1D5DB"};break;default:t={backRect:"#f5f5f5",thumb:"#e0e0e0",circle:"#fff",circleHover:"#eee",arrow:"#9e9e9e",grip:"#9e9e9e"}}return t}function nt(e,t){for(var i,o=e.axis.rect,r="Horizontal"===e.axis.orientation,n=!1,a=0,l=0,s=e.axis.series;l<s.length;l++)(d=s[l]).marker.visible&&d.marker.height>a&&(a=d.marker.height);for(var h=0,c=e.axis.series;h<c.length;h++){var d=c[h];if(d.visible&&(i=d.yMin.toString(),n=d.yData.some(function(e){return e===i})),n)break}var u=(e.axis.isAxisOpposedPosition&&r?-16:n?a:0)+o.y+Math.max(.5,e.axis.lineStyle.width/2),g=(e.axis.isAxisOpposedPosition&&!r?16:0)+o.x-(e.isVertical?e.height:0);r||"Left"!==e.axis.scrollbarSettings.position&&"Right"!==e.axis.scrollbarSettings.position?!r||"Top"!==e.axis.scrollbarSettings.position&&"Bottom"!==e.axis.scrollbarSettings.position||(u=p(e,r)):g=p(e,r),e.svgObject=t.createSvg({id:e.component.element.id+"_scrollBar_svg"+e.axis.name,width:e.isVertical?e.height:e.axis.scrollbarSettings.enableZoom?e.width+e.svgExtraWidth:e.width,height:e.isVertical?e.width:e.height,style:"position: absolute;top: "+u+"px;left: "+(g-(!e.isVertical&&e.axis.scrollbarSettings.enableZoom?e.svgExtraWidth/2:0))+"px;cursor:auto;"}),e.elements.push(e.svgObject)}function at(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e===r.index)return r}return t[0]}function lt(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.index===e)return r}return null}function st(e,t,i){var o=(e-t.min)/t.delta;return i?1-o:o}function ht(e,t,i,o){return(e=st(e,t,o))*i}function ct(e,t,i,o){return(o?1-e/t:e/t)*i.delta+i.min}function dt(e,t,i){var o=[];return e.map(function(e){e.xValue>=t&&e.xValue<=i&&o.push({x:e.x,y:e.y})}),o}function pt(e,t){return e.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function ut(e,i){var o=i.navigatorStyleSettings.thumb,r=t.isNullOrUndefined(o.width)?t.Browser.isDevice?15:20:o.width,n=t.isNullOrUndefined(o.height)?t.Browser.isDevice?15:20:o.height,a="HighContrast"===e?"#969696":"#6F6C6C",l="HighContrast"===e?"#4A4848":"#414040",s={gridLineColor:"#E0E0E0",axisLineColor:"#000000",labelFontColor:"#686868",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#EEEEEE",thumpLineColor:"rgba(189, 189, 189, 1)",thumbBackground:"rgba(250, 250, 250, 1)",gripColor:"#757575",background:"#FFFFFF",thumbHoverColor:"#EEEEEE",selectedRegionColor:i.series.length?"transparent":"#FF4081",tooltipBackground:"Material"===e?"#000816":"Fabric"===e?"#FFFFFF":"#212529",tooltipFontColor:"#dbdbdb",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};switch(e){case"Fabric":s.selectedRegionColor=i.series.length?"transparent":"#007897";break;case"Bootstrap":s.selectedRegionColor=i.series.length?"transparent":"#428BCA";break;case"HighContrastLight":s={gridLineColor:"#bdbdbd",axisLineColor:"#969696",labelFontColor:"#ffffff",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.3)":"#EEEEEE",thumpLineColor:"#ffffff",thumbBackground:"#262626",gripColor:"#ffffff",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"transparent":"#FFD939",tooltipBackground:"#ffffff",tooltipFontColor:"#000000",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"HighContrast":s={gridLineColor:l,axisLineColor:a,labelFontColor:"#DADADA",unselectedRectColor:i.series.length?"rgba(43, 43, 43, 0.6)":"#514F4F",thumpLineColor:"#969696",thumbBackground:"#333232",gripColor:"#DADADA",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"rgba(22, 22, 22, 0.6)":"#FFD939",tooltipBackground:"#FFFFFF",tooltipFontColor:"#282727",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":s={labelFontColor:"#DADADA",axisLineColor:" #6F6C6C",gridLineColor:"#414040",tooltipBackground:"FabricDark"===e?"#A19F9D":"BootstrapDark"===e?"#F0F0F0":"#F4F4F4",tooltipFontColor:"#333232",unselectedRectColor:i.series.length?"rgba(43, 43, 43, 0.6)":"#514F4F",thumpLineColor:"#969696",thumbBackground:"#333232",gripColor:"#DADADA",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"rgba(22, 22, 22, 0.6)":"FabricDark"===e?"#007897":"BootstrapDark"===e?"#428BCA":"#FF4081",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#CED4DA",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":s={gridLineColor:"#E0E0E0",axisLineColor:"#CED4DA",labelFontColor:"#212529",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#514F4F",thumpLineColor:"rgba(189, 189, 189, 1)",thumbBackground:"#FFFFFF",gripColor:"#495057",background:"transparent",thumbHoverColor:"#EEEEEE",selectedRegionColor:i.series.length?"transparent":"#FFD939",tooltipBackground:"#212529",tooltipFontColor:"rgba(255, 255, 255)",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":s={gridLineColor:"#D1D5DB",axisLineColor:"#D1D5DB",labelFontColor:"#4B5563",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#1F2937",thumbBackground:"#FFFFFF",gripColor:"#6B7280",background:"transparent",thumbHoverColor:"#1F2937",selectedRegionColor:i.series.length?"#6B72801A":"#4F46E5",tooltipBackground:"#111827",tooltipFontColor:"#F9FAFB",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":s={gridLineColor:"#374151",axisLineColor:"#374151",labelFontColor:"#D1D5DB",unselectedRectColor:i.series.length?"transparent":"#4B5563",thumpLineColor:"#6B7280",thumbBackground:"#111827",gripColor:"#D1D5DB",background:"transparent",thumbHoverColor:"#E5E7EB",selectedRegionColor:i.series.length?"#6B72801A":"#22D3EE",tooltipBackground:"#F9FAFB",tooltipFontColor:"#1F2937",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":s={gridLineColor:"#E5E7EB",axisLineColor:"#D1D5DB",labelFontColor:"#6B7280",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#9CA3AF",thumbBackground:"#FFFFFF",gripColor:"#6B7280",background:"transparent",thumbHoverColor:"#374151",selectedRegionColor:i.series.length?"rgba(79, 70, 229, 0.3)":"#4F46E5",tooltipBackground:"#111827",tooltipFontColor:"#F9FAFB",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":s={gridLineColor:"#374151",axisLineColor:"#4B5563",labelFontColor:"#9CA3AF",unselectedRectColor:i.series.length?"transparent":"#4B5563",thumpLineColor:"#6B7280",thumbBackground:"#1F2937",gripColor:"#D1D5DB",background:"transparent",thumbHoverColor:"#E5E7EB",selectedRegionColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#22D3EE",tooltipBackground:"#E9ECEF",tooltipFontColor:"#1F2937",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":s={gridLineColor:"#E9ECEF",axisLineColor:"#DEE2E6",labelFontColor:"#21252980",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#CED4DA",thumbBackground:"#FFFFFF",gripColor:"#6E757D",background:"transparent",thumbHoverColor:"#666666",selectedRegionColor:i.series.length?"rgba(52, 58, 64, 0.1)":"#ADB5BD",tooltipBackground:"#000000E5",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#21252980",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":s={gridLineColor:"#343A40",axisLineColor:"#495057",labelFontColor:"#DEE2E680",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#6C757D",thumbBackground:"#212529",gripColor:"#ADB5BD",background:"transparent",thumbHoverColor:"#666666",selectedRegionColor:i.series.length?"rgba(173, 181, 189, 0.1)":"#ADB5BD",tooltipBackground:"#FFFFFFE5",tooltipFontColor:"#212529",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":s={gridLineColor:"#EDEBE9",axisLineColor:"#D2D0CE",labelFontColor:"#3B3A39",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#0078D4",thumbBackground:"#FFFFFF",gripColor:"#0078D4",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(0, 120, 212, 0.1)":"#ADB5BD",tooltipBackground:"#FFFFFF",tooltipFontColor:"#323130",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":s={gridLineColor:"#414040",axisLineColor:"#3B3A39",labelFontColor:"#C8C6C4",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#797775",thumbBackground:"black",gripColor:"#797775",background:"transparent",thumbHoverColor:"black",selectedRegionColor:i.series.length?"rgba(121, 119, 117, 0.1)":"#797775",tooltipBackground:"#323130",tooltipFontColor:"#F3F2F1",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":s={gridLineColor:"#EDEBE9",axisLineColor:"#D2D0CE",labelFontColor:"#616161",unselectedRectColor:i.series.length?"rgba(250, 250, 250, 0.1)":"#A19F9D",thumpLineColor:"#A19F9D",thumbBackground:"#FAFAFA",gripColor:"#424242",background:"transparent",thumbHoverColor:"#FAFAFA",selectedRegionColor:i.series.length?"rgba(161, 159, 157, 0.4)":"#797775",tooltipBackground:"#FFFFFF",tooltipFontColor:"#242424",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2Dark":s={gridLineColor:"#8A8886",axisLineColor:"#3B3A39",labelFontColor:"#ADADAD",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#8A8886",thumbBackground:"#1F1F1F",gripColor:"#D6D6D6",background:"transparent",thumbHoverColor:"#1F1F1F",selectedRegionColor:i.series.length?"rgba(138, 136, 134, 0.4)":"#797775",tooltipBackground:"#292929",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2HighContrast":s={gridLineColor:"#8A8886",axisLineColor:"#3B3A39",labelFontColor:"#ADADAD",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#8A8886",thumbBackground:"#1F1F1F",gripColor:"#FFFFFF",background:"transparent",thumbHoverColor:"#1F1F1F",selectedRegionColor:i.series.length?"rgba(138, 136, 134, 0.1)":"#797775",tooltipBackground:"#000000",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":s={gridLineColor:"#C4C7C5",axisLineColor:"#C4C7C5",labelFontColor:"#1E192B",unselectedRectColor:i.series.length?"transparent":"#E5E5E5",thumpLineColor:"#49454E",thumbBackground:"#FFFFFF",gripColor:"#49454E",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(73, 69, 78, 0.1)":"#49454E",tooltipBackground:"#313033",tooltipFontColor:"#F4EFF4",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":s={gridLineColor:"#444746",axisLineColor:"#444746",labelFontColor:"#E6E1E5",unselectedRectColor:i.series.length?"transparent":"#E5E5E5",thumpLineColor:"#CAC4D0",thumbBackground:"#1C1B1F",gripColor:"#CAC4D0",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(202, 196, 208, 0.1)":"#49454E",tooltipBackground:"#E6E1E5",tooltipFontColor:"#313033",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;default:s.selectedRegionColor=i.series.length?"transparent":"#FF4081"}return s}function gt(e,t,i){for(var o=[],r=0;r<e;++r){for(var n=[],a=0;a<t;++a)n[a]=i;o[r]=n}return o}function mt(e){var i="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b",o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"rgba(0,0,0,0.54)",categoryFontColor:"#666666",labelFontFamily:"SegoeUI",tooltipFill:"#000816",legendLabel:"#353535",tooltipBoldLabel:"#ffffff",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"rgba(0,0,0,0.87)",dataLabelFontColor:"#ffffff",titleFontFamily:"SegoeUI",subTitleFontColor:" rgba(0,0,0,0.54)",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"rgba(0, 0, 0, 1)",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"rgba(0, 0, 0, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"rgba(249, 250, 251, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};switch(e){case"Fabric":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"#666666",categoryFontColor:"#666666",labelFontFamily:"SegoeUI",tooltipFill:"#FFFFFF",legendLabel:"#353535",tooltipBoldLabel:"#ffffff",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#333333",dataLabelFontColor:"#ffffff",titleFontFamily:"SegoeUI",subTitleFontColor:"#666666",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#0078D6",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#333333",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#333333",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#333333",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"rgba(0,0,0,0.54)",categoryFontColor:"rgba(0,0,0,0.54)",labelFontFamily:"Helvetica",tooltipFill:"#212529",legendLabel:"#212529",tooltipBoldLabel:"rgba(255,255,255)",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"rgba(0,0,0,0.87)",dataLabelFontColor:"#ffffff",titleFontFamily:"Helvetica-Bold",subTitleFontColor:" rgba(0,0,0,0.54)",subTitleFontFamily:"Helvetica",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#317AB9",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#676767",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#676767",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"HighContrast":o={majorTickLineColor:"#FFFFFF",minorTickLineColor:"#FFFFFF",background:"#000000",labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"SegoeUI",tooltipFill:"#FFFFFF",legendLabel:"#ffffff",tooltipBoldLabel:"#000000",featuredMeasureColor:"#000000",comparativeMeasureColor:"#000000",titleFontColor:"#FFFFFF",dataLabelFontColor:"#ffffff",titleFontFamily:"HelveticaNeue",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#FFD939",rangeStrokes:[{color:"#757575"},{color:"#BDBDBD"},{color:"#EEEEEE"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":o={majorTickLineColor:"#F0F0F0",minorTickLineColor:"#F0F0F0",background:i,labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"Helvetica",tooltipFill:"MaterialDark"===e?"#F4F4F4":"FabricDark"===e?"#A19F9D":"#F0F0F0",legendLabel:"#DADADA",tooltipBoldLabel:"#282727",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#FFFFFF",dataLabelFontColor:"#ffffff",titleFontFamily:"Helvetica-Bold",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"Helvetica",firstRangeColor:"#8D8D8D",secondRangeColor:"#ADADAD",thirdRangeColor:"#EEEEEE",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",rangeStrokes:[{color:"#8D8D8D"},{color:"#ADADAD"},{color:"#EEEEEE"}],titleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"#202528",categoryFontColor:"#202528",labelFontFamily:"HelveticaNeue",tooltipFill:"#212529",legendLabel:"#212529",tooltipBoldLabel:"rgba(255,255,255)",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#202528",dataLabelFontColor:"#ffffff",titleFontFamily:"HelveticaNeue-Bold",subTitleFontColor:"HelveticaNeue",subTitleFontFamily:"#202528",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#007BFF",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":o={majorTickLineColor:"#9CA3AF",minorTickLineColor:"#9CA3AF",background:"transparent",labelFontColor:"#4B5563",categoryFontColor:"#111827",labelFontFamily:"Inter",tooltipFill:"#111827",legendLabel:"#4B5563",tooltipBoldLabel:"#F9FAFB",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#111827",dataLabelFontColor:"#111827",titleFontFamily:"Inter",subTitleFontColor:"#6B7280",subTitleFontFamily:"Inter",firstRangeColor:"#9CA3AF",secondRangeColor:"#D1D5DB",thirdRangeColor:"#E5E7EB",tabColor:"#4F46E5",rangeStrokes:[{color:"#9CA3AF"},{color:"#D1D5DB"},{color:"#E5E7EB"}],titleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":o={majorTickLineColor:"#4B5563",minorTickLineColor:"#4B5563",background:"transparent",labelFontColor:"#D1D5DB",categoryFontColor:"#FFFFFF",labelFontFamily:"Inter",tooltipFill:"#F9FAFB",legendLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",featuredMeasureColor:"#6B7280",comparativeMeasureColor:"#6B7280",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Inter",subTitleFontColor:"#9CA3AF",subTitleFontFamily:"Inter",firstRangeColor:"#4B5563",secondRangeColor:"#374151",thirdRangeColor:"#282F3C",tabColor:"#22D3EE",rangeStrokes:[{color:"#4B5563"},{color:"#374151"},{color:"#282F3C"}],titleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":o={majorTickLineColor:"#D1D5DB",minorTickLineColor:"#D1D5DB",background:"transparent",labelFontColor:"#6B7280",categoryFontColor:"#6B7280",labelFontFamily:"Inter",tooltipFill:"#111827",legendLabel:"#374151",tooltipBoldLabel:"#F9FAFB",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#374151",dataLabelFontColor:"#F9FAFB",titleFontFamily:"Inter",subTitleFontColor:"#374151",subTitleFontFamily:"Inter",firstRangeColor:"#9CA3AF",secondRangeColor:"#D1D5DB",thirdRangeColor:"#E5E7EB",tabColor:"#4F46E5",rangeStrokes:[{color:"#9CA3AF"},{color:"#D1D5DB"},{color:"#E5E7EB"}],titleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":o={majorTickLineColor:"#4B5563",minorTickLineColor:"#4B5563",background:"transparent",labelFontColor:"#9CA3AF",categoryFontColor:"#9CA3AF",labelFontFamily:"Inter",tooltipFill:"#E9ECEF",legendLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",titleFontFamily:"Inter",subTitleFontColor:"#D1D5DB",subTitleFontFamily:"Inter",firstRangeColor:"#6B7280",secondRangeColor:"#4B5563",thirdRangeColor:"#374151",tabColor:"#22D3EE",rangeStrokes:[{color:"#6B7280"},{color:"#4B5563"},{color:"#374151"}],titleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":o={majorTickLineColor:"#CED4DA",minorTickLineColor:"#CED4DA",background:"transparent",labelFontColor:"#212529",categoryFontColor:"#212529",labelFontFamily:"Segoe UI",tooltipFill:"#000000E5",legendLabel:"#212529",tooltipBoldLabel:"#212529",featuredMeasureColor:"#343A40",comparativeMeasureColor:"#343A40",titleFontColor:"#212529",dataLabelFontColor:"#212529",titleFontFamily:"Segoe UI",subTitleFontColor:"#212529",subTitleFontFamily:"Segoe UI",firstRangeColor:"#CED4DA",secondRangeColor:"#DEE2E6",thirdRangeColor:"#E9ECEF",tabColor:"#0D6EFD",rangeStrokes:[{color:"#CED4DA"},{color:"#DEE2E6"},{color:"#E9ECEF"}],titleFont:{color:"#212529",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},subTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":o={majorTickLineColor:"#6C757D",minorTickLineColor:"#6C757D",background:"#212529",labelFontColor:"#DEE2E6",categoryFontColor:"#DEE2E6",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFFE5",legendLabel:"#DEE2E6",tooltipBoldLabel:"#212529",featuredMeasureColor:"#ADB5BD",comparativeMeasureColor:"#ADB5BD",titleFontColor:"#DEE2E6",dataLabelFontColor:"#DEE2E6",titleFontFamily:"Segoe UI",subTitleFontColor:"#DEE2E6",subTitleFontFamily:"Segoe UI",firstRangeColor:"#6C757D",secondRangeColor:"#495057",thirdRangeColor:"#343A40",tabColor:"#0D6EFD",rangeStrokes:[{color:"#6C757D"},{color:"#495057"},{color:"#343A40"}],titleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},subTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":o={majorTickLineColor:"#C8C6C4",minorTickLineColor:"#C8C6C4",background:"rgba(255, 255, 255, 0.0001)",labelFontColor:"#3B3A39",categoryFontColor:"#3B3A39",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFF",legendLabel:"#3B3A39",tooltipBoldLabel:"#323130",featuredMeasureColor:"#A19F9D",comparativeMeasureColor:"#A19F9D",titleFontColor:"#201F1E",dataLabelFontColor:"#3B3A39",titleFontFamily:"Segoe UI",subTitleFontColor:"#201F1E",subTitleFontFamily:"Segoe UI",firstRangeColor:"#C8C6C4",secondRangeColor:"#D2D0CE",thirdRangeColor:"#EDEBE9",tabColor:"#0078D4",rangeStrokes:[{color:"#C8C6C4"},{color:"#D2D0CE"},{color:"#EDEBE9"}],titleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#C8C6C4",categoryFontColor:"#C8C6C4",labelFontFamily:"Segoe UI",tooltipFill:"#323130",legendLabel:"#C8C6C4",tooltipBoldLabel:"#F3F2F1",featuredMeasureColor:"#797775",comparativeMeasureColor:"#797775",titleFontColor:"#F3F2F1",dataLabelFontColor:"#C8C6C4",titleFontFamily:"Segoe UI",subTitleFontColor:"#F3F2F1",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":o={majorTickLineColor:"#C8C6C4",minorTickLineColor:"#C8C6C4",background:"transparent",labelFontColor:"#C8C6C4",categoryFontColor:"#616161",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFF",legendLabel:"#242424",tooltipBoldLabel:"#242424",featuredMeasureColor:"#A19F9D",comparativeMeasureColor:"#A19F9D",titleFontColor:"#242424",dataLabelFontColor:"#424242",titleFontFamily:"Segoe UI",subTitleFontColor:"#616161",subTitleFontFamily:"Segoe UI",firstRangeColor:"#C8C6C4",secondRangeColor:"#D2D0CE",thirdRangeColor:"#EDEBE9",tabColor:"#0078D4",rangeStrokes:[{color:"#C8C6C4"},{color:"#D2D0CE"},{color:"#EDEBE9"}],titleFont:{color:"#242424",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#ADADAD",categoryFontColor:"#ADADAD",labelFontFamily:"Segoe UI",tooltipFill:"#292929",legendLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",featuredMeasureColor:"#8A8886",comparativeMeasureColor:"#8A8886",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Segoe UI",subTitleFontColor:"#ADADAD",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"Segoe UI",tooltipFill:"#000000",legendLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",featuredMeasureColor:"#8A8886",comparativeMeasureColor:"#8A8886",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Segoe UI",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":o={majorTickLineColor:"#C4C7C5",minorTickLineColor:"#C4C7C5",background:"transparent",labelFontColor:"#1E192B",categoryFontColor:"#1E192B",labelFontFamily:"Roboto",tooltipFill:"#313033",legendLabel:"#49454E",tooltipBoldLabel:"#F4EFF4",featuredMeasureColor:"#79747E",comparativeMeasureColor:"#79747E",titleFontColor:"#1C1B1F",dataLabelFontColor:"#49454E",titleFontFamily:"Roboto",subTitleFontColor:"#1C1B1F",subTitleFontFamily:"Roboto",firstRangeColor:"#a6a6a9",secondRangeColor:"#C4C7C5",thirdRangeColor:"#E7E0EC",tabColor:"#49454E",rangeStrokes:[{color:"#a6a6a9"},{color:"#C4C7C5"},{color:"#E7E0EC"}],titleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":o={majorTickLineColor:"#444746",minorTickLineColor:"#444746",background:"transparent",labelFontColor:"#E6E1E5",categoryFontColor:"#E6E1E5",labelFontFamily:"Roboto",tooltipFill:"#E6E1E5",legendLabel:"#CAC4D0",tooltipBoldLabel:"#313033",featuredMeasureColor:"#938F99",comparativeMeasureColor:"#938F99",titleFontColor:"#E6E1E5",dataLabelFontColor:"#CAC4D0",titleFontFamily:"Roboto",subTitleFontColor:"#E6E1E5",subTitleFontFamily:"Roboto",firstRangeColor:"rgba(147,143,153,0.4)",secondRangeColor:"#444746",thirdRangeColor:"#49454F",tabColor:"#CAC4D0",rangeStrokes:[{color:"rgba(147,143,153,0.4)"},{color:"#444746"},{color:"#49454F"}],titleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}}}return o}function yt(e){e.renderer=new i.SvgRenderer(e.element.id),Ct(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height})}function ft(e){return document.getElementById(e)}function vt(e,t,i,o){var r=t,n=Lt(t,i,o).width;if(n>e)for(var a=t.length-1;a>=0;--a)if(r=t.substring(0,a)+"...",(n=Lt(r,i,o).width)<=e||r.length<4)return r.length<4&&(r=" "),r;return r}function bt(e){var i=null;try{i="function"!=typeof e&&document.querySelectorAll(e).length?t.compile(document.querySelector(e).innerHTML.trim()):t.compile(e)}catch(o){i=t.compile(e)}return i}function xt(e,i,o){for(var r=e[0].outerHTML,n=Object.keys(o),a=RegExp,l=0;l<n.length;l++)r=r.replace(new a("{{:"+n[l]+"}}","g"),o[n[l].toString()]);var s=t.createElement("div",{id:i,styles:"position: absolute"});return s.innerText=r,s}function St(){for(var e=1;1+.5*e!=1;)e*=.5;return e}function Ct(e){var t=e.element.clientWidth,i=e.element.clientHeight;e.availableSize=new Es(wt(e.width,t)||t||600,wt(e.height,i)||i||450)}function Ft(e,i,o,r,n){var a,l;new t.Animation({}).animate(i,{duration:r,delay:o,name:n,progress:function(e){a=(e.timeStamp-e.delay)/e.duration,l=0+1*a,e.element.style.opacity=l.toString()},end:function(t){t.element.style.opacity=1..toString(),e.trigger("animationComplete",event)}})}function wt(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function Lt(e,i,o){var r=document.getElementById("smithchartmeasuretext");return null===r&&(r=t.createElement("text",{id:"smithchartmeasuretext"}),document.body.appendChild(r)),r.innerText=e,r.style.position="absolute",r.style.visibility="hidden",r.style.left="0",r.style.top="-100",r.style.whiteSpace="nowrap",r.style.fontSize=i.size||o.size,r.style.fontWeight=i.fontWeight||o.fontWeight,r.style.fontStyle=i.fontStyle||o.fontStyle,r.style.fontFamily=i.fontFamily||o.fontFamily,r.style.lineHeight="normal",new Es(r.clientWidth,r.clientHeight)}function Pt(e){var i=document.getElementById(e);return i?t.remove(i):null}function At(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t}function Mt(e,t,i,o){return-t*Math.sin(e/o*(Math.PI/2))+i+t}function Dt(e){var t;switch(e){case"Linear":t=At;break;case"Reverse":t=Mt}return t}function kt(e,t,o,r,n){var a={id:e.id,x:e.x,y:e.y,fill:o,"font-size":t.size||n.size,"font-style":t.fontStyle||n.fontStyle,"font-family":t.fontFamily||n.fontFamily,"font-weight":t.fontWeight||n.fontWeight,"text-anchor":e.anchor,opacity:t.opacity},l=e.text,s=new i.SvgRenderer("").createText(a,l);return r.appendChild(s),s}function Rt(e){var t;switch(e){case"Fabric":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"Fluent":case"FluentDark":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function Tt(e){var t,i="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b";switch(e){case"HighContrast":t={axisLabel:"#ffffff",axisLine:"#ffffff",majorGridLine:"#BFBFBF",minorGridLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:"#000000",areaBorder:"#ffffff",tooltipFill:"#ffffff",dataLabel:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tooltipFontSize:"12px",tabColor:"#FFD939",smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"BootstrapDark":case"FabricDark":t={axisLabel:"#DADADA",axisLine:" #6F6C6C",majorGridLine:"#414040",minorGridLine:"#514F4F",chartTitle:"#ffffff",legendLabel:"#DADADA",background:i,areaBorder:" #9A9A9A",tooltipFill:"MaterialDark"===e?"#F4F4F4":"BootstrapDark"===e?"#F0F0F0":"#A19F9D",dataLabel:"#DADADA",tooltipBoldLabel:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"BootstrapDark"===e?"#1A1A1A":"#DADADA",tooltipLightLabel:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"BootstrapDark"===e?"#1A1A1A":"#DADADA",tooltipHeaderLine:"#9A9A9A",tooltipFontSize:"12px",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",smithchartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#676767":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#676767":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#CED4DA":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={axisLabel:"#212529",axisLine:"#ADB5BD",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529",background:"#FFFFFF",areaBorder:"#DEE2E6",tooltipFill:"#212529",dataLabel:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#FFFFFF",tooltipFontSize:"12px",tabColor:"#007BFF",fontFamily:"Helvetica",fontSize:"16px",labelFontFamily:"Helvetica",tooltipFillOpacity:1,tooltipTextOpacity:.9,smithchartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={axisLabel:"#4B5563",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#D1D5DB",chartTitle:"#6B7280",legendLabel:"#6B7280",background:"#FFFFFF",areaBorder:"#D1D5DB",tooltipFill:"#111827",dataLabel:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tooltipFontSize:"12px",tabColor:"#4F46E5",fontFamily:"Inter",fontSize:"12px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendTitleFont:{color:"#374151",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"500"},dataLabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Tailwind3Dark":t={axisLabel:"#D1D5DB",axisLine:"#282F3C",majorGridLine:"#282F3C",minorGridLine:"#374151",chartTitle:"#9CA3AF",legendLabel:"#9CA3AF",background:"rgba(17, 24, 39, 1)",areaBorder:"#374151",tooltipFill:"#F9FAFB",dataLabel:"#FFFFFF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tooltipFontSize:"12px",tabColor:"#22D3EE",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"500"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Tailwind":t={axisLabel:"#6B7280",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:"#FFFFFF",areaBorder:"#D1D5DB6",tooltipFill:"#111827",dataLabel:"#F9FAFB",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",tooltipFontSize:"12px",tabColor:"#4F46E5",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={axisLabel:"#9CA3AF",axisLine:"#4B5563",majorGridLine:"#374151",minorGridLine:"#4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"#1f2937",areaBorder:"#4B5563",tooltipFill:"#E9ECEF",dataLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tooltipFontSize:"12px",tabColor:"#22D3EE",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={axisLabel:"#21252980",axisLine:"#DEE2E6",majorGridLine:"#DEE2E6",minorGridLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529BF",background:"#FFFFFF",areaBorder:"#E9ECEF",tooltipFill:"#000000E5",dataLabel:"#212529",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tooltipFontSize:"12px",tabColor:"#0D6EFD",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#212529BF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#21252980",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={axisLabel:"#DEE2E680",axisLine:"#495057",majorGridLine:"#495057",minorGridLine:"#495057",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6BF",background:"#212529",areaBorder:"#343A40",tooltipFill:"#FFFFFFE5",dataLabel:"#DEE2E6",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tooltipFontSize:"12px",tabColor:"#0D6EFD",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#DEE2E6BF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#E9ECEF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={axisLabel:"#3B3A39",axisLine:"#D2D0CE",majorGridLine:"#D2D0CE",minorGridLine:"#EDEBE9",chartTitle:"#201F1E",legendLabel:"#323130",background:"#FFFFFF",areaBorder:" #D2D0CE",tooltipFill:"#FFFFFF",dataLabel:"#3B3A39",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={axisLabel:"#C8C6C4",axisLine:"#3B3A39",majorGridLine:"#414040",minorGridLine:"#414040",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",areaBorder:"#414040",tooltipFill:"#323130",dataLabel:"#C8C6C4",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F2",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={axisLabel:"#616161",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#FAFAFA",chartTitle:"#242424",legendLabel:"#424242",background:"#FFFFFF",areaBorder:"#EDEBE9",tooltipFill:"#FFFFFF",dataLabel:"#242424",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#424242",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={axisLabel:"#ADADAD",axisLine:"#3B3A39",majorGridLine:"#292827",minorGridLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#D6D6D6",background:"transparent",areaBorder:"#292827",tooltipFill:"#292929",dataLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D6D6D6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={axisLabel:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"#1c1b1f",areaBorder:"#292827",tooltipFill:"#000000",dataLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={axisLine:"#C4C7C5",axisLabel:"#1C1B1F",majorGridLine:"#C4C7C5",minorGridLine:"#C4C7C5",legendLabel:"#1C1B1F",background:"#FFFFFF",chartTitle:"#1C1B1F",areaBorder:" #E7E0EC",dataLabel:"#49454E",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tooltipFontFamily:"Inter",tooltipFontSize:"12px",tabColor:"#49454E",fontFamily:"Inter",fontSize:"16px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={axisLabel:"#E6E1E5",axisLine:"#444746",majorGridLine:"#444746",minorGridLine:"#444746",chartTitle:"#E6E1E5",legendLabel:"#E6E1E5",background:"transparent",areaBorder:" #49454F",tooltipFill:"#E6E1E5",dataLabel:"#CAC4D0",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tooltipFontFamily:"Roboto",tooltipFontSize:"12px",tabColor:"#CAC4D0",fontFamily:"Roboto",fontSize:"16px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={axisLabel:"#686868",axisLine:"#b5b5b5",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",chartTitle:"#424242",legendLabel:"#353535",background:"#FFFFFF",areaBorder:"Gray",tooltipFill:"Material"===e?"#000816":"Bootstrap"===e?"#212529":"#FFFFFF",dataLabel:"#424242",tooltipBoldLabel:"Material"===e?"rgba(249, 250, 251, 1)":"Bootstrap"===e?"#F9FAFB":"#333333",tooltipLightLabel:"Material"===e?"rgba(249, 250, 251, 1)":"Bootstrap"===e?"#F9FAFB":"#333333",tooltipHeaderLine:"Fabric"===e?"#D2D0CE":"#ffffff",tooltipFontSize:"12px",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",smithchartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#333333",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#F3F2F1",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Bootstrap"===e?"#676767":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Bootstrap"===e?"#676767":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#333333",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}function Et(e){var t;switch(e){case"Fabric":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function _t(e){var t;switch(e){case"BootstrapDark":case"FabricDark":case"MaterialDark":case"HighContrast":t={axisLineColor:"#ffffff",dataLabelColor:"BootstrapDark"===e?"#676767":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"#969696",rangeBandColor:"#ffffff",tooltipFill:"BootstrapDark"===e?"#F0F0F0":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"#F4F4F4":"#FFFFFF",background:"#000000",tooltipFontColor:"BootstrapDark"===e?"#1A1A1A":"FabricDark"===e?"#DADADA":"MaterialDark"===e?"rgba(18, 18, 18, 1)":"#000000",trackerLineColor:"#ffffff",labelFontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",tooltipFontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",dataLabelFont:{fontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",color:"BootstrapDark"===e?"#676767":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"#969696",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"BootstrapDark"===e?"#0070F0":"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#FFD939"};break;case"Bootstrap4":t={axisLineColor:"#6C757D",dataLabelColor:"#495057",rangeBandColor:"#212529",tooltipFill:"#212529",background:"#FFFFFF",tooltipFontColor:"#F9FAFB",trackerLineColor:"#212529",fontFamily:"Helvetica",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Helvetica",tooltipFontFamily:"Helvetica",dataLabelFont:{fontFamily:"Helvetica",color:"#495057",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#007BFF"};break;case"Tailwind3":t={axisLineColor:"#4B5563",dataLabelColor:"#111827",rangeBandColor:"#1F2937",background:"#FFFFFF",tooltipFill:"#111827",tooltipFontColor:"#F9FAFB",trackerLineColor:"#1F2937",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#6B7280",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"500",tabColor:"#4F46E5"};break;case"Tailwind3Dark":t={axisLineColor:"#D1D5DB",dataLabelColor:"#FFFFFF",rangeBandColor:"#6B7280",background:"transparent",tooltipFill:"#F9FAFB",tooltipFontColor:"#1F2937",trackerLineColor:"#6B7280",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#FFFFFF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"500",tabColor:"#22D3EE"};break;case"Tailwind":t={axisLineColor:"#4B5563",dataLabelColor:"#6B7280",rangeBandColor:"#212529",background:"#FFFFFF",tooltipFill:"#111827",tooltipFontColor:"#F9FAFB",trackerLineColor:"#1F2937",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#6B7280",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#4F46E5"};break;case"TailwindDark":t={axisLineColor:"#D1D5DB",dataLabelColor:"#9CA3AF",rangeBandColor:"#F9FAFB",background:"transparent",tooltipFill:"#E9ECEF",tooltipFontColor:"#1F2937",trackerLineColor:"#9CA3AF",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#9CA3AF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#22D3EE"};break;case"Bootstrap5":t={axisLineColor:"#343A40",dataLabelColor:"#212529BF",rangeBandColor:"#343A40",background:"rgba(255, 255, 255, 0.0)",tooltipFill:"#000000E5",tooltipFontColor:"#FFFFFF",trackerLineColor:"#343A40",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#495057",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0D6EFD"};break;case"Bootstrap5Dark":t={axisLineColor:"#ADB5BD",dataLabelColor:"#DEE2E6BF",rangeBandColor:"#ADB5BD",background:"rgba(255, 255, 255, 0.0)",tooltipFill:"#FFFFFFE5",tooltipFontColor:"#212529",trackerLineColor:"#ADB5BD",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#E9ECEF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0D6EFD"};break;case"Fluent":t={axisLineColor:"#D2D0CE;",dataLabelColor:"#3B3A39",rangeBandColor:"#A19F9D",background:"rgba(255, 255, 255, 0.0001)",tooltipFill:"#FFFFFF",tooltipFontColor:"#323130",trackerLineColor:"#A19F9D",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#3B3A39",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"FluentDark":t={axisLineColor:"#3B3A39;",dataLabelColor:"#D2D0CE",rangeBandColor:"#797775",background:"transparent",tooltipFill:"#323130",tooltipFontColor:"#F3F2F1",trackerLineColor:"#797775",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#D2D0CE",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2":t={axisLineColor:"#D2D0CE",dataLabelColor:"#424242",rangeBandColor:"#A19F9D",background:"transparent",tooltipFill:"#FFFFFF",tooltipFontColor:"#242424",trackerLineColor:"#D2D0CE",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#242424",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2Dark":t={axisLineColor:"#8A8886",dataLabelColor:"#D6D6D6",rangeBandColor:"#8A8886",background:"transparent",tooltipFill:"#292929",tooltipFontColor:"#FFFFFF",trackerLineColor:"#3B3A39",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#D6D6D6",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2HighContrast":t={axisLineColor:"#8A8886",dataLabelColor:"#FFFFFF",rangeBandColor:"#8A8886",background:"transparent",tooltipFill:"#000000",tooltipFontColor:"#FFFFFF",trackerLineColor:"#3B3A39",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#FFFFFF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Material3":t={axisLineColor:"#C4C7C5",dataLabelColor:"#49454E",rangeBandColor:"rgba(73, 69, 78, 0.3)",background:"rgba(255, 255, 255, 0.0001)",tooltipFill:"#313033",tooltipFontColor:"#F4EFF4",trackerLineColor:"#49454E",fontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",tooltipFontFamily:"Roboto",dataLabelFont:{fontFamily:"Roboto",color:"#49454E",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#49454E"};break;case"Material3Dark":t={axisLineColor:"#49454F",dataLabelColor:"#CAC4D0",rangeBandColor:"rgba(202, 196, 208, 0.3)",background:"transparent",tooltipFill:"#E6E1E5",tooltipFontColor:"#313033",trackerLineColor:"#CAC4D0",fontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",tooltipFontFamily:"Roboto",dataLabelFont:{fontFamily:"Roboto",color:"#CAC4D0",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#CAC4D0"};break;default:t={axisLineColor:"#000000",dataLabelColor:"Bootstrap"===e?"#676767":"Fabric"===e?"#666666":"rgba(97, 97, 97, 1)",rangeBandColor:"#000000",background:"#FFFFFF",tooltipFill:"Bootstrap"===e?"#212529":"Fabric"===e?"#FFFFFF":"#000816",tooltipFontColor:"Bootstrap"===e?"#F9FAFB":"Fabric"===e?"#333333":"rgba(249, 250, 251, 1)",trackerLineColor:"#000000",labelFontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",tooltipFontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",dataLabelFont:{fontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",color:"Bootstrap"===e?"#676767":"Fabric"===e?"#666666":"rgba(97, 97, 97, 1)",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9"}}return t}function It(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function Ot(e){var t=e.element.clientWidth?e.element.clientWidth:e.element.parentElement?e.element.parentElement.clientWidth?e.element.parentElement.clientWidth:window.innerWidth:100,i=e.element.clientHeight?e.element.clientHeight:e.element.parentElement?e.element.parentElement.clientHeight:50;e.availableSize=new Vh(It(e.width,t)||t,It(e.height,i)||i||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):i))}function zt(e){e.renderer=new i.SvgRenderer(e.element.id),Ot(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height})}function Bt(e,t){return t&&t.appendChild(e),e}function Nt(e,t,i){return Bt(e.renderer.drawCircle(t),i)}function Vt(e,t,i,o,r){return"M "+e.x+" "+(t+e.y)+" Q "+e.x+" "+e.y+" "+(e.x+t)+" "+e.y+" L "+(e.x+e.width-i)+" "+e.y+" Q "+(e.x+e.width)+" "+e.y+" "+(e.x+e.width)+" "+(e.y+i)+" L "+(e.x+e.width)+" "+(e.y+e.height-r)+" Q "+(e.x+e.width)+" "+(e.y+e.height)+" "+(e.x+e.width-r)+" "+(e.y+e.height)+" L "+(e.x+o)+" "+(e.y+e.height)+" Q "+e.x+" "+(e.y+e.height)+" "+e.x+" "+(e.y+e.height-o)+" L "+e.x+" "+(t+e.y)+" Z"}function Ht(e,t,i){return t.d=Vt(t.rect,t.topLeft,t.topRight,t.bottomLeft,t.bottomRight),Bt(e.renderer.drawPath(t),i)}function Wt(e,t,i){return Bt(e.renderer.drawPath(t),i)}function jt(e,i,o){var r=document.getElementById("sparklinesmeasuretext");return null===r&&(r=t.createElement("text",{id:"sparklinesmeasuretext"}),document.body.appendChild(r)),r.innerText=e,r.style.fontStyle=i.fontStyle||o.fontStyle,r.style.fontFamily=i.fontFamily||o.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.position="absolute",r.style.fontSize=i.size||o.size,r.style.fontWeight=i.fontWeight||o.fontWeight,r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new Vh(r.clientWidth,r.clientHeight)}function Ut(e,t,o,r,n){var a={id:e.id,x:e.x,y:e.y,transform:e.transform,opacity:t.opacity,fill:o,"font-family":t.fontFamily||n.fontFamily,"font-weight":t.fontWeight||n.fontWeight,"font-size":t.size||n.size,"font-style":t.fontStyle||n.fontStyle,"text-anchor":e.anchor,"dominant-baseline":e.baseLine},l=new i.SvgRenderer("").createText(a,e.text);return l.style["user-select"]="none",l.style["-moz-user-select"]="none",l.style["-webkit-touch-callout"]="none",l.style["-webkit-user-select"]="none",l.style["-khtml-user-select"]="none",l.style["-ms-user-select"]="none",l.style["-o-user-select"]="none",r.appendChild(l),l}function Xt(e){var i=document.getElementById(e);return i?t.remove(i):null}function Gt(e){return document.getElementById(e)}function Yt(e,t,i){return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height}function Zt(e){var t;switch(e){case"HighContrastLight":case"HighContrast":t={axisLabel:"#969696",axisTitle:"#969696",majorGridLine:"#BFBFBF",minorGridLine:"#969696",majorTickLine:"#BFBFBF",minorTickLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:"transparent",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tabColor:"#FFD939",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#000000",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":t={axisLabel:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",axisTitle:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",majorGridLine:"#414040",minorGridLine:"#514F4F",majorTickLine:"#414040",minorTickLine:"#4A4848",chartTitle:"#ffffff",legendLabel:"#DADADA",background:"transparent",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",backWallColor:"#222222",leftWallColor:"#272727",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"MaterialDark"===e?"#000000":"FabricDark"===e?"#000000":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={axisLabel:"#222222",axisTitle:"#212529",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",majorTickLine:"#ADB5BD",minorTickLine:"#CED4DA",chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",tabColor:"#007BFF",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#222222",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={axisLabel:"#4B5563",axisTitle:"#6B7280",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#111827",legendLabel:"#6B7280",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tabColor:"#4F46E5",backWallColor:"rgba(209, 213, 219, 0.03)",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":t={axisLabel:"#D1D5DB",axisTitle:"#9CA3AF",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:"#4B5563",chartTitle:"#FFFFFF",legendLabel:"#9CA3AF",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tabColor:"#22D3EE",backWallColor:"rgb(55,65,81, 0.3)",leftWallColor:"rgb(255,255,255,0.1)",chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":t={axisLabel:"#222222",axisTitle:"#374151",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",tabColor:"#4F46E5",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={axisLabel:"#D1D5DB",axisTitle:"#D1D5DB",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:"#4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tabColor:"#22D3EE",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={axisLabel:"#212529",axisTitle:"#212529",majorGridLine:"#DEE2E6",minorGridLine:"#DEE2E6",majorTickLine:"#DEE2E6",minorTickLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#000000E5",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tabColor:"#0D6EFD",backWallColor:"#DEE2E6",leftWallColor:"#DEE2E6",chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#343A40",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"700"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#21252980",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={axisLabel:"#DEE2E6",axisTitle:"#DEE2E6",majorGridLine:"#495057",minorGridLine:"#495057",majorTickLine:"#495057",minorTickLine:"#495057",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:"transparent",tooltipFill:"#FFFFFFE5",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tabColor:"#0D6EFD",backWallColor:"#495057",leftWallColor:"#495057",chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"700"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={axisLabel:"#222222",axisTitle:"#201F1E",majorGridLine:"#DDDDDD",minorGridLine:"#DDDDDD",majorTickLine:"#DDDDDD",minorTickLine:"#DDDDDD",chartTitle:"#201F1E",legendLabel:"#323130",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={axisLabel:"#D2D0CE",axisTitle:"#D2D0CE",majorGridLine:"#414040",minorGridLine:"#414040",majorTickLine:"#3B3A39",minorTickLine:"#3B3A39",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#F3F2F2",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={axisLabel:"#616161",axisTitle:"#242424",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:"#D2D0CE",chartTitle:"#242424",legendLabel:"#242424",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",majorGridLine:"#292827",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#000000",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={axisLabel:"#222222",axisTitle:"#1C1B1F",majorGridLine:"#DDDDDD",minorGridLine:"#DDDDDD",majorTickLine:"#DDDDDD",minorTickLine:"#DDDDDD",chartTitle:"#1C1B1F",legendLabel:"#49454E",background:"transparent",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tabColor:"#49454E",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Roboto",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={axisLabel:"#CAC4D0",axisTitle:"#CAC4D0",majorGridLine:"#444746",minorGridLine:"#444746",majorTickLine:"#444746",minorTickLine:"#444746",chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:"transparent",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tabColor:"#CAC4D0",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#000000",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={axisLabel:"#222222",axisTitle:"#424242",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",majorTickLine:"#b5b5b5",minorTickLine:"#d6d6d6",chartTitle:"#424242",legendLabel:"#353535",background:"transparent",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}function qt(e){var t;switch(e){case"Fabric":t=["#06DCFF","#EF36BB","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":t=["#9B43F4","#F7523F","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Bootstrap":t=["#6355C7","#FFB400","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#41E4FF","#FF5B5B","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#55C75A","#FFB400","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#41E4FF","#FD7400","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#BC43F4","#FFC539","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5C43F4","#FFB400","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#00C2FF","#FD7400","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":t=["#41E4FF","#FF7E6F","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent":t=["#2196F5","#FC7400","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6A56FF","#00DBFF","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#00C2FF","#FFB400","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#6355C7","#00AEE0","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function Qt(e,i){for(var o,r,n,a=Number.MAX_VALUE,l=0;l<i.length;l++){var s=i[l];if(o=[],s.visible&&(e.name===s.xAxisName||"primaryXAxis"===e.name&&null===s.xAxisName))if((o=s.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length)n="DateTime"===e.valueType&&s.xMin===s.xMax?s.xMin-2592e4:s.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r));else for(var h=0;h<o.length;h++){var c=o[h];h>0&&c&&0!==(r=c-o[h-1])&&(a=Math.min(a,r))}}return a===Number.MAX_VALUE&&(a=1),a}function $t(e,t){var i=t.visibleRange,o=(e-i.min)/i.delta;return t.isAxisInverse?1-o:o}function Kt(e){var t;switch(e){case"Fabric":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function Jt(e){var t;switch(e){case"HighContrastLight":case"HighContrast":t={chartTitle:"#ffffff",legendLabel:"#ffffff",background:"transparent",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tabColor:"#FFD939",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":t={chartTitle:"#ffffff",legendLabel:"#DADADA",background:"transparent",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",tabColor:"#007BFF",chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={chartTitle:"#111827",legendLabel:"#6B7280",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tabColor:"#4F46E5",chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":t={chartTitle:"#FFFFFF",legendLabel:"#9CA3AF",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tabColor:"#22D3EE",chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":t={chartTitle:"#374151",legendLabel:"#374151",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",tabColor:"#4F46E5",chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tabColor:"#22D3EE",chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#000000E5",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tabColor:"#0D6EFD",chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#21252980",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:"transparent",tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tabColor:"#0D6EFD",chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={chartTitle:"#201F1E",legendLabel:"#323130",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={chartTitle:"#242424",legendLabel:"#242424",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#000000",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={chartTitle:"#1C1B1F",legendLabel:"#49454E",background:"transparent",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tabColor:"#49454E",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:"transparent",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tabColor:"#CAC4D0",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={chartTitle:"#424242",legendLabel:"#353535",background:"transparent",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}var ei=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ti=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ii=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Line")],i.prototype,"type",void 0),ti([t.Property(null)],i.prototype,"color",void 0),ti([t.Property(1)],i.prototype,"width",void 0),ti([t.Property(null)],i.prototype,"length",void 0),ti([t.Property("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),oi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(0)],i.prototype,"x",void 0),ti([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),ri=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(null)],i.prototype,"accessibilityDescription",void 0),ti([t.Property(null)],i.prototype,"accessibilityRole",void 0),ti([t.Property(!0)],i.prototype,"focusable",void 0),ti([t.Property(0)],i.prototype,"tabIndex",void 0),i}(t.ChildProperty),ni=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(null)],i.prototype,"accessibilityDescriptionFormat",void 0),i}(ri),ai=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Normal")],i.prototype,"fontStyle",void 0),ti([t.Property("16px")],i.prototype,"size",void 0),ti([t.Property("Normal")],i.prototype,"fontWeight",void 0),ti([t.Property("")],i.prototype,"color",void 0),ti([t.Property("Center")],i.prototype,"textAlignment",void 0),ti([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),ti([t.Property(1)],i.prototype,"opacity",void 0),ti([t.Property("Wrap")],i.prototype,"textOverflow",void 0),i}(t.ChildProperty),li=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Normal")],i.prototype,"fontStyle",void 0),ti([t.Property("16px")],i.prototype,"size",void 0),ti([t.Property("Normal")],i.prototype,"fontWeight",void 0),ti([t.Property("")],i.prototype,"color",void 0),ti([t.Property("Center")],i.prototype,"textAlignment",void 0),ti([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),ti([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),si=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(null)],i.prototype,"text",void 0),ti([t.Complex({fontFamily:null,size:"16px",fontStyle:"Normal",fontWeight:"600",color:null},ai)],i.prototype,"textStyle",void 0),ti([t.Property(null)],i.prototype,"hoverTextFormat",void 0),i}(t.ChildProperty),hi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("")],i.prototype,"color",void 0),ti([t.Property(1)],i.prototype,"width",void 0),ti([t.Property("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),ci=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(0)],i.prototype,"x",void 0),ti([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),di=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(t.Browser.isDevice?5:10)],i.prototype,"left",void 0),ti([t.Property(t.Browser.isDevice?5:10)],i.prototype,"right",void 0),ti([t.Property(t.Browser.isDevice?5:10)],i.prototype,"top",void 0),ti([t.Property(t.Browser.isDevice?5:10)],i.prototype,"bottom",void 0),i}(t.ChildProperty),pi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(!0)],i.prototype,"enable",void 0),ti([t.Property(1e3)],i.prototype,"duration",void 0),ti([t.Property(0)],i.prototype,"delay",void 0),i}(t.ChildProperty),ui=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(!1)],i.prototype,"enable",void 0),ti([t.Property(!0)],i.prototype,"enableMarker",void 0),ti([t.Property(!1)],i.prototype,"shared",void 0),ti([t.Property(null)],i.prototype,"fill",void 0),ti([t.Property(null)],i.prototype,"header",void 0),ti([t.Property(null)],i.prototype,"opacity",void 0),ti([t.Complex({fontFamily:null,size:null,fontStyle:"Normal",fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),ti([t.Property(null)],i.prototype,"format",void 0),ti([t.Property(null)],i.prototype,"template",void 0),ti([t.Property(!0)],i.prototype,"enableAnimation",void 0),ti([t.Property(300)],i.prototype,"duration",void 0),ti([t.Property(1e3)],i.prototype,"fadeOutDuration",void 0),ti([t.Property("Move")],i.prototype,"fadeOutMode",void 0),ti([t.Property(!1)],i.prototype,"enableTextWrap",void 0),ti([t.Property(!0)],i.prototype,"showNearestPoint",void 0),ti([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),ti([t.Complex({x:null,y:null},oi)],i.prototype,"location",void 0),ti([t.Property(!1)],i.prototype,"enableHighlight",void 0),ti([t.Property(!1)],i.prototype,"showNearestTooltip",void 0),ti([t.Property(!0)],i.prototype,"showHeaderLine",void 0),i}(t.ChildProperty),gi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(null)],i.prototype,"fill",void 0),ti([t.Complex({color:"",width:0},hi)],i.prototype,"border",void 0),ti([t.Property("Gap")],i.prototype,"mode",void 0),i}(t.ChildProperty),mi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(0)],i.prototype,"series",void 0),ti([t.Property(0)],i.prototype,"point",void 0),i}(t.ChildProperty),yi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(0)],i.prototype,"topLeft",void 0),ti([t.Property(0)],i.prototype,"topRight",void 0),ti([t.Property(0)],i.prototype,"bottomLeft",void 0),ti([t.Property(0)],i.prototype,"bottomRight",void 0),i}(t.ChildProperty),fi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(0)],i.prototype,"left",void 0),ti([t.Property(0)],i.prototype,"right",void 0),ti([t.Property(0)],i.prototype,"top",void 0),ti([t.Property(0)],i.prototype,"bottom",void 0),i}(t.ChildProperty),vi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("transparent")],i.prototype,"color",void 0),ti([t.Property(0)],i.prototype,"width",void 0),ti([t.Property(.8)],i.prototype,"cornerRadius",void 0),i}(t.ChildProperty),bi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Normal")],i.prototype,"fontStyle",void 0),ti([t.Property("15px")],i.prototype,"size",void 0),ti([t.Property("500")],i.prototype,"fontWeight",void 0),ti([t.Property("")],i.prototype,"color",void 0),ti([t.Property("Center")],i.prototype,"textAlignment",void 0),ti([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),ti([t.Property(1)],i.prototype,"opacity",void 0),ti([t.Property("Wrap")],i.prototype,"textOverflow",void 0),ti([t.Property("Top")],i.prototype,"position",void 0),ti([t.Property(0)],i.prototype,"x",void 0),ti([t.Property(0)],i.prototype,"y",void 0),ti([t.Property("transparent")],i.prototype,"background",void 0),ti([t.Complex({},vi)],i.prototype,"border",void 0),ti([t.Complex({},ri)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),xi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Top")],i.prototype,"position",void 0),ti([t.Property(0)],i.prototype,"x",void 0),ti([t.Property(0)],i.prototype,"y",void 0),i}(ai),Si=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Complex({},hi)],i.prototype,"border",void 0),ti([t.Property("transparent")],i.prototype,"background",void 0),ti([t.Property(1)],i.prototype,"opacity",void 0),ti([t.Property(null)],i.prototype,"backgroundImage",void 0),ti([t.Property(null)],i.prototype,"width",void 0),ti([t.Complex({left:0,right:0,top:0,bottom:0},di)],i.prototype,"margin",void 0),i}(t.ChildProperty),Ci=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(!1)],i.prototype,"enable",void 0),ti([t.Property(null)],i.prototype,"minY",void 0),ti([t.Property(null)],i.prototype,"maxY",void 0),ti([t.Property(null)],i.prototype,"fill",void 0),i}(t.ChildProperty),Fi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property("Years")],i.prototype,"intervalType",void 0),ti([t.Property(1)],i.prototype,"interval",void 0),ti([t.Property(null)],i.prototype,"text",void 0),ti([t.Property(!1)],i.prototype,"selected",void 0),i}(t.ChildProperty),wi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(43)],i.prototype,"height",void 0),ti([t.Property("Bottom")],i.prototype,"position",void 0),ti([t.Collection([],Fi)],i.prototype,"periods",void 0),i}(t.ChildProperty),Li=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ei(i,e),ti([t.Property(!1)],i.prototype,"enable",void 0),ti([t.Property(!0)],i.prototype,"enableMarker",void 0),ti([t.Property(!1)],i.prototype,"shared",void 0),ti([t.Property(null)],i.prototype,"fill",void 0),ti([t.Property(null)],i.prototype,"header",void 0),ti([t.Property(.75)],i.prototype,"opacity",void 0),ti([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),ti([t.Property(null)],i.prototype,"format",void 0),ti([t.Property(null)],i.prototype,"template",void 0),ti([t.Property(!0)],i.prototype,"enableAnimation",void 0),ti([t.Property(300)],i.prototype,"duration",void 0),ti([t.Property(1e3)],i.prototype,"fadeOutDuration",void 0),ti([t.Property("Move")],i.prototype,"fadeOutMode",void 0),ti([t.Property(!1)],i.prototype,"enableTextWrap",void 0),ti([t.Property(!0)],i.prototype,"showNearestPoint",void 0),ti([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),ti([t.Property("Fixed")],i.prototype,"position",void 0),ti([t.Property(!1)],i.prototype,"showNearestTooltip",void 0),ti([t.Property(!0)],i.prototype,"showHeaderLine",void 0),i}(t.ChildProperty),Pi=function(){function e(e,t){this.series=e,this.point=t}return e}(),Ai=function(){function e(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"median",{get:function(){return this.mStart+(this.mEnd-this.mStart)/2},enumerable:!0,configurable:!0}),e}(),Mi=function(){function e(e){this.isColumn=0,this.isStacking=!1,this.chart=e}return e.prototype.calculateNumericNiceInterval=function(e,i,o){var r=oe(o,e),n=i/r;if(!t.isNullOrUndefined(e.desiredIntervals)&&this.isAutoIntervalOnBothAxis(e))return n;for(var a=Math.pow(10,Math.floor(m(n,10))),l=0,s=e.intervalDivs;l<s.length;l++){var h=a*s[l];if(r<i/h)break;n=h}return n},e.prototype.isAutoIntervalOnBothAxis=function(e){return!(e.zoomFactor<1||e.zoomPosition>0)||!e.enableAutoIntervalOnZooming},e.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),!e.startFromZero&&this.isColumn>0?(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.max=e.doubleRange.end+e.actualRange.interval,e.doubleRange.start-e.actualRange.interval<0&&e.doubleRange.start>0?e.actualRange.min=0:e.actualRange.min=e.doubleRange.start-(this.isStacking?0:e.actualRange.interval)):(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end)},e.prototype.initializeDoubleRange=function(e){null!==e.minimum?this.min=e.minimum:null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=0),null!==e.maximum?this.max=e.maximum:null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=5),this.min===this.max&&(this.max=e.valueType.indexOf("Category")>-1?this.max:this.min+1),e.doubleRange=new Ai(this.min,this.max),e.actualRange={}},e.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},e.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!te(e))for(var i=0,o=e.series;i<o.length;i++){var r=o[i];r.visible&&(this.paddingInterval=0,t.isNullOrUndefined(r.points)||(e.maxPointLength=r.points.length),e.maxPointLength=r.points.length,((r.type.indexOf("Column")>-1||r.type.indexOf("Histogram")>-1)&&"Horizontal"===e.orientation||r.type.indexOf("Bar")>-1&&"Vertical"===e.orientation)&&("Double"!==r.xAxis.valueType&&"DateTime"!==r.xAxis.valueType||"Auto"!==r.xAxis.rangePadding||(this.paddingInterval=.5*G(r.xAxis,e.series))),"Horizontal"===e.orientation&&(this.chart.requireInvertedAxis?this.yAxisRange(e,r):this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval)),"Vertical"===e.orientation&&(this.isColumn+=-1!==r.type.indexOf("Column")||-1!==r.type.indexOf("Bar")||"Column"===r.drawType?1:0,this.isStacking=-1!==r.type.indexOf("Stacking"),this.chart.requireInvertedAxis?this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval):this.yAxisRange(e,r)))}},e.prototype.yAxisRange=function(e,t){if(t.dragSettings.enable&&this.chart.dragY&&(this.chart.dragY>=e.visibleRange.max&&(t.yMax=this.chart.dragY+e.visibleRange.interval),this.chart.dragY<=e.visibleRange.min&&(t.yMin=this.chart.dragY-e.visibleRange.interval)),"Waterfall"===t.type){for(var i=0,o=0,r=0;r<t.yData.length;r++)t.intermediateSumIndexes&&-1!==t.intermediateSumIndexes.indexOf(r)||t.sumIndexes&&-1!==t.sumIndexes.indexOf(r)||(o+=t.yData[r]),o>i&&(i=o);this.findMinMax(t.yMin,i)}else this.findMinMax(t.yMin,t.yMax)},e.prototype.findMinMax=function(e,t){(null===this.min||this.min>e)&&(this.min=e),(null===this.max||this.max<t)&&(this.max=t),this.max===this.min&&this.max<0&&this.min<0&&(this.max=0)},e.prototype.applyRangePadding=function(e,t){var i=e.actualRange.min,o=e.actualRange.max;if(!te(e)){var r=e.actualRange.interval,n=e.getRangePadding(this.chart);"Additional"===n||"Round"===n?this.findAdditional(e,i,o,r,t):"Normal"===n?this.findNormal(e,i,o,r,t):this.updateActualRange(e,i,o,r)}e.actualRange.delta=e.actualRange.max-e.actualRange.min,this.calculateVisibleRange(t,e)},e.prototype.updateActualRange=function(e,t,i,o){e.actualRange={min:null!=e.minimum?e.minimum:t,max:null!=e.maximum?e.maximum:i,interval:null!=e.interval?e.interval:o,delta:e.actualRange.delta}},e.prototype.findAdditional=function(e,i,o,r,n){var a,l;if(a=Math.floor(i/r)*r,l=Math.ceil(o/r)*r,"Additional"===e.rangePadding&&(a-=r,l+=r),!t.isNullOrUndefined(e.desiredIntervals)){var s=l-a;r=this.calculateNumericNiceInterval(e,s,n)}this.updateActualRange(e,a,l,r)},e.prototype.findNormal=function(e,t,i,o,r){var n,a,l=t;t<0?(l=0,.365*o>=o+(n=t+.05*t)%o&&(n-=o),n%o<0&&(n=n-o-n%o)):(n=t<5/6*i?0:t-.5*(i-t))%o>0&&(n-=n%o),.365*o>=o-(a=i>0?i+.05*(i-l):i-.05*(i-l))%o&&(a+=o),a%o>0&&(a=a+o-a%o),e.doubleRange=new Ai(n,a),(0===n||n<0&&a<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),a=Math.ceil(a/o)*o),this.updateActualRange(e,n,a,o)},e.prototype.calculateVisibleRange=function(e,i){if(i.visibleRange={max:i.actualRange.max,min:i.actualRange.min,delta:i.actualRange.delta,interval:i.actualRange.interval},"Cartesian"===this.chart.chartAreaType){var o=!t.isNullOrUndefined(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;(i.zoomFactor<1||i.zoomPosition>0)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateNumericNiceInterval(i,i.doubleRange.delta,e):i.visibleRange.interval)}var r=(i.visibleRange.max-i.visibleRange.min)%i.visibleRange.interval;if(0!==r&&!isNaN(r)&&"Double"===i.valueType&&"Vertical"===i.orientation&&"Auto"===i.rangePadding){for(var n=void 0,a=i.visibleRange.min;a<=i.visibleRange.max&&n!==a;a+=i.visibleRange.interval)n=a;n<i.visibleRange.max&&(i.visibleRange.max=n+i.visibleRange.interval)}i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval)},e.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r=e.visibleRange.min;!("chart"===i.getModuleName()&&"PolarRadar"===i.chartAreaType)&&(e.zoomFactor<1||e.zoomPosition>0||this.paddingInterval)&&(r=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval);var n=this.getFormat(e),a=null!==n.match("{value}"),l=0,s=0;e.labelFormat&&e.labelFormat.indexOf("n")>-1&&(s=parseInt(e.labelFormat.substring(1,e.labelFormat.length),10)),e.format=i.intl.getNumberFormat({format:a?"":n,useGrouping:i.useGroupingSeparator}),e.startLabel=e.format(e.visibleRange.min),e.endLabel=e.format(e.visibleRange.max),e.visibleRange.interval&&(e.visibleRange.interval+"").indexOf(".")>=0&&(l=(e.visibleRange.interval+"").split(".")[1].length);for(var h;r<=e.visibleRange.max&&h!==r;r+=e.visibleRange.interval)h=r,o=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(r,e.visibleRange)&&ee(i,r,this.formatValue(e,a,n,r),o,e);r&&(r+"").indexOf(".")>=0&&(r+"").split(".")[1].length>10&&(r=(r+"").split(".")[1].length>(s||l)?+r.toFixed(s||l):r)<=e.visibleRange.max&&ee(i,r,this.formatValue(e,a,n,r),o,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},e.prototype.getFormat=function(e){return e.labelFormat?0===e.labelFormat.indexOf("p")&&-1===e.labelFormat.indexOf("{value}")&&e.isStack100?"{value}%":e.labelFormat:e.isStack100?"{value}%":""},e.prototype.formatValue=function(e,t,i,o){var r=o%1?Number(o.toLocaleString("en-US").split(",").join("")):o;return t?i.replace("{value}",e.format(r)):i?e.format(o):e.format(r)},e.prototype.getModuleName=function(){return"Double"},e.prototype.destroy=function(){},e}(),Di="legendClick",ki="load",Ri="pointRender",Ti="axisLabelRender",Ei=/~\d+~/g,_i=/\^\d+\^/g,Ii="onZooming",Oi=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),zi=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Bi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property("0")],i.prototype,"x",void 0),zi([t.Property("0")],i.prototype,"y",void 0),zi([t.Property(null)],i.prototype,"content",void 0),zi([t.Property("Center")],i.prototype,"horizontalAlignment",void 0),zi([t.Property("Pixel")],i.prototype,"coordinateUnits",void 0),zi([t.Property("Chart")],i.prototype,"region",void 0),zi([t.Property("Middle")],i.prototype,"verticalAlignment",void 0),zi([t.Property(null)],i.prototype,"xAxisName",void 0),zi([t.Property(null)],i.prototype,"yAxisName",void 0),zi([t.Property(null)],i.prototype,"description",void 0),zi([t.Complex({},ri)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),Ni=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property("")],i.prototype,"color",void 0),zi([t.Property(1)],i.prototype,"width",void 0),zi([t.Property("Rectangle")],i.prototype,"type",void 0),i}(t.ChildProperty),Vi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property(null)],i.prototype,"start",void 0),zi([t.Property(null)],i.prototype,"end",void 0),zi([t.Property("")],i.prototype,"text",void 0),zi([t.Property(null)],i.prototype,"maximumTextWidth",void 0),zi([t.Property(null)],i.prototype,"customAttributes",void 0),zi([t.Property("")],i.prototype,"type",void 0),i}(t.ChildProperty),Hi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property(!0)],i.prototype,"visible",void 0),zi([t.Property(!1)],i.prototype,"startFromAxis",void 0),zi([t.Property(null)],i.prototype,"start",void 0),zi([t.Property(null)],i.prototype,"end",void 0),zi([t.Property(null)],i.prototype,"size",void 0),zi([t.Property("#808080")],i.prototype,"color",void 0),zi([t.Property(null)],i.prototype,"dashArray",void 0),zi([t.Property("Auto")],i.prototype,"sizeType",void 0),zi([t.Property(!1)],i.prototype,"isRepeat",void 0),zi([t.Property(null)],i.prototype,"repeatEvery",void 0),zi([t.Property(null)],i.prototype,"repeatUntil",void 0),zi([t.Property(!1)],i.prototype,"isSegmented",void 0),zi([t.Property(null)],i.prototype,"segmentStart",void 0),zi([t.Property(null)],i.prototype,"segmentEnd",void 0),zi([t.Property(null)],i.prototype,"segmentAxisName",void 0),zi([t.Complex({color:"transparent",width:1},hi)],i.prototype,"border",void 0),zi([t.Property("")],i.prototype,"text",void 0),zi([t.Property(null)],i.prototype,"rotation",void 0),zi([t.Property("Middle")],i.prototype,"horizontalAlignment",void 0),zi([t.Property("Middle")],i.prototype,"verticalAlignment",void 0),zi([t.Complex({size:"12px",color:null,fontStyle:"Normal",fontWeight:"400",fontFamily:null},ai)],i.prototype,"textStyle",void 0),zi([t.Property("Behind")],i.prototype,"zIndex",void 0),zi([t.Property(1)],i.prototype,"opacity",void 0),zi([t.Property("")],i.prototype,"imageUrl",void 0),i}(t.ChildProperty),Wi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property("Center")],i.prototype,"alignment",void 0),zi([t.Property("Wrap")],i.prototype,"overflow",void 0),zi([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},ai)],i.prototype,"textStyle",void 0),zi([t.Complex({color:null,width:1,type:"Rectangle"},Ni)],i.prototype,"border",void 0),zi([t.Collection([],Vi)],i.prototype,"categories",void 0),i}(t.ChildProperty),ji=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property(null)],i.prototype,"minimum",void 0),zi([t.Property(null)],i.prototype,"maximum",void 0),i}(t.ChildProperty),Ui=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property(!1)],i.prototype,"enable",void 0),zi([t.Property(null)],i.prototype,"pointsLength",void 0),zi([t.Complex({},ji)],i.prototype,"range",void 0),zi([t.Property(null)],i.prototype,"trackColor",void 0),zi([t.Property(0)],i.prototype,"scrollbarRadius",void 0),zi([t.Property(null)],i.prototype,"scrollbarColor",void 0),zi([t.Property(0)],i.prototype,"trackRadius",void 0),zi([t.Property(null)],i.prototype,"gripColor",void 0),zi([t.Property(16)],i.prototype,"height",void 0),zi([t.Property(!0)],i.prototype,"enableZoom",void 0),zi([t.Property("PlaceNextToAxisLine")],i.prototype,"position",void 0),i}(t.ChildProperty),Xi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property("Far")],i.prototype,"horizontalAlignment",void 0),zi([t.Property("Top")],i.prototype,"verticalAlignment",void 0),zi([t.Property(0)],i.prototype,"x",void 0),zi([t.Property(0)],i.prototype,"y",void 0),zi([t.Property(!1)],i.prototype,"draggable",void 0),i}(t.ChildProperty),Gi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Oi(i,e),zi([t.Property(!1)],i.prototype,"visible",void 0),zi([t.Property("transparent")],i.prototype,"fill",void 0),zi([t.Property(null)],i.prototype,"format",void 0),zi([t.Property(0)],i.prototype,"angle",void 0),zi([t.Property(5)],i.prototype,"rx",void 0),zi([t.Property(5)],i.prototype,"ry",void 0),zi([t.Complex({left:5,right:5,top:5,bottom:5},di)],i.prototype,"margin",void 0),zi([t.Complex({width:null,color:null},hi)],i.prototype,"border",void 0),zi([t.Complex({size:null,color:null,fontStyle:null,fontWeight:"Bold",fontFamily:null},li)],i.prototype,"font",void 0),i}(t.ChildProperty),Yi=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Zi=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},qi=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t}return Yi(i,e),i.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(r):this.nearSizes.push(r)},Zi([t.Property("100%")],i.prototype,"height",void 0),Zi([t.Complex({},hi)],i.prototype,"border",void 0),i}(t.ChildProperty),Qi=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t.padding=0,t}return Yi(i,e),i.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Top"===e.scrollbarSettings.position||"Bottom"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(r):this.nearSizes.push(r)},Zi([t.Property("100%")],i.prototype,"width",void 0),Zi([t.Complex({},hi)],i.prototype,"border",void 0),i}(t.ChildProperty),$i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(1)],i.prototype,"width",void 0),Zi([t.Property("")],i.prototype,"dashArray",void 0),Zi([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Ki=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(.7)],i.prototype,"width",void 0),Zi([t.Property("")],i.prototype,"dashArray",void 0),Zi([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Ji=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(1)],i.prototype,"width",void 0),Zi([t.Property("")],i.prototype,"dashArray",void 0),Zi([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),eo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(1)],i.prototype,"width",void 0),Zi([t.Property(5)],i.prototype,"height",void 0),Zi([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),to=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(.7)],i.prototype,"width",void 0),Zi([t.Property(5)],i.prototype,"height",void 0),Zi([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),io=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Zi([t.Property(!1)],i.prototype,"enable",void 0),Zi([t.Property(null)],i.prototype,"fill",void 0),Zi([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),oo=function(e){function o(t,o,r,n){var a=e.call(this,t,o,r,n)||this;return a.visibleLabels=[],a.series=[],a.rect=new i.Rect(void 0,void 0,0,0),a.axisBottomLine=null,a.intervalDivs=[10,5,2,1],a.isStack100=!1,a.crossAt=null,a.updatedRect=null,a.multiLevelLabelHeight=0,a.isChart=!0,a.isIntervalInDecimal=!0,a.titleCollection=[],a.titleSize=new i.Size(0,0),a.internalVisibility=!0,a.isRTLEnabled=!1,a.angle=a.labelRotation,a}return Yi(o,e),o.prototype.findTickSize=function(e){return"Inside"===this.tickPosition?0:!e||e.visibleRange&&!this.isInside(e.visibleRange)?this.majorTickLines.height:0},o.prototype.isInside=function(e){return f(this.crossAt,e)||!this.isAxisOpposedPosition&&this.crossAt>=e.max||this.isAxisOpposedPosition&&this.crossAt<=e.min},o.prototype.findLabelSize=function(e,o,r,n){var a=0,l="Horizontal"===this.orientation;if(this.title){var s=this.titleRotation;if(t.isNullOrUndefined(s)?(this.titleSize=i.measureText(this.title,this.titleStyle,n.themeStyle.axisTitleFont),a=this.titleSize.height+o):(this.titleSize=u(this.titleStyle,this.title,s,n,n.themeStyle.axisTitleFont),a=("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+o),this.rect.width||this.rect.height){var h=l?this.rect.width:this.rect.height;this.titleCollection=Ge(this.title,this.titleStyle,h,n.enableRtl,n.themeStyle.axisTitleFont),a*=this.titleCollection.length}}var c,d,p=a+o+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight;if(e&&this.placeNextToAxisLine){var g=e.visibleRange,m="Horizontal"===e.orientation?e.rect.width:e.rect.height;if(!g||!m)return 0;this.isInside(g)&&(p=(c=(d=this.findDifference(e))*((m-((c=d*(m/g.delta))<p?p-c:0))/g.delta))<p?p-c:0)}var y=""!==this.title&&5!==this.titlePadding?this.titlePadding:0;return this.isAxisOpposedPosition?r.insideFarSizes.push(p):r.insideNearSizes.push(p),"Inside"===this.labelPosition?(o=n.axes.indexOf(this)>-1?-5:5,this.isAxisOpposedPosition&&r.farSizes.length<1||!this.isAxisOpposedPosition&&r.nearSizes.length<1?a+o+y:this.isAxisOpposedPosition?a+o+y+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight:a+o+y):p},o.prototype.updateCrossValue=function(){var e=this.crossAt;if(null===e||!this.isInside(this.crossInAxis.visibleRange))return this.updatedRect=this.rect,null;var i=this.crossInAxis.visibleRange;this.isAxisOpposedPosition?this.crossAt<i.min&&(e=i.min):this.crossAt>i.max&&(e=i.max),this.updatedRect=t.extend({},this.rect,null,!0),"Horizontal"===this.orientation?(e=this.crossInAxis.rect.height-T(e,this.crossInAxis)*this.crossInAxis.rect.height,this.updatedRect.y=this.crossInAxis.rect.y+e):(e=T(e,this.crossInAxis)*this.crossInAxis.rect.width,this.updatedRect.x=this.crossInAxis.rect.x+e)},o.prototype.findDifference=function(e){var t=0;return t=this.isAxisOpposedPosition?e.isAxisInverse?e.visibleRange.min:e.visibleRange.max:e.isAxisInverse?e.visibleRange.max:e.visibleRange.min,Math.abs(this.crossAt-t)},o.prototype.calculateVisibleRangeOnZooming=function(){if(ie(this)){var e=this.actualRange,t=void 0,i=void 0;i=this.isAxisInverse?(t=this.actualRange.max-this.zoomPosition*this.actualRange.delta)-this.zoomFactor*this.actualRange.delta:(t=this.actualRange.min+this.zoomPosition*this.actualRange.delta)+this.zoomFactor*this.actualRange.delta,t<e.min&&(i+=e.min-t,t=e.min),i>e.max&&(t-=i-e.max,i=e.max),this.doubleRange=new Ai(t,i),this.visibleRange={min:this.doubleRange.start,max:this.doubleRange.end,delta:this.doubleRange.delta,interval:this.visibleRange.interval}}},o.prototype.triggerRangeRender=function(e,t,i,o){var r={cancel:!1,name:"axisRangeCalculated",axis:this,minimum:t,maximum:i,interval:o};e.trigger("axisRangeCalculated",r),r.cancel||(this.visibleRange={min:r.minimum,max:r.maximum,interval:r.interval,delta:r.maximum-r.minimum})},o.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"!==t)return t;switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal"}return t},o.prototype.getMaxLabelWidth=function(e){var o,r,n=this,a=0,l=!1;this.angle=this.labelRotation,this.maxLabelSize=new i.Size(0,0);var s,h=this.labelIntersectAction;if(this.labelTemplate&&!t.isNullOrUndefined(this.labelTemplate))return void this.getMaxTemplateLabelWidth(e);for(var d=this,p=0,g=this.visibleLabels.length;p<g;p++)!function(t,p){if(s=d.visibleLabels[t],r=c(s.originalText))s.size=i.measureText(s.originalText.replace(/<br>/g," "),d.labelStyle,e.themeStyle.axisLabelFont),s.breakLabelSize=i.measureText(d.enableTrim?s.text.join("<br>"):s.originalText,d.labelStyle,e.themeStyle.axisLabelFont);else if(d.enableWrap){var g=e.initialClipRect.height/d.visibleLabels.length;s.text=Ze(s.text,d.maximumLabelWidth,d.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont,"Vertical"===d.orientation?g:null);var m=0,y=0;s.text.forEach(function(t){var o=i.measureText(t,n.labelStyle,e.themeStyle.axisLabelFont);m=Math.max(m,o.width),y+=o.height}),s.size.width=m,s.size.height=y}else-90!==d.angle&&90!==d.angle&&270!==d.angle&&-270!==d.angle||"Vertical"!==d.orientation?s.size=i.measureText(s.text,d.labelStyle,e.themeStyle.axisLabelFont):s.size=u(d.labelStyle,s.text,d.angle,e,e.themeStyle.axisLabelFont);var f=r?s.breakLabelSize.width:s.size.width;f>d.maxLabelSize.width&&(d.maxLabelSize.width=f,d.rotatedLabel=s.text);var v=r?s.breakLabelSize.height:s.size.height;if(v>d.maxLabelSize.height&&(d.maxLabelSize.height=v),r&&(s.text=d.enableTrim?s.text:s.originalText.split("<br>")),"None"===h||"Hide"===h||"Trim"===h)return"continue";if(("None"!==h||d.angle%360==0)&&"Horizontal"===d.orientation&&d.rect.width>0&&!l){var b=r?s.breakLabelSize.width:s.size.width;switch(o=T(s.value,d)*d.rect.width+d.rect.x,o-=b/2,"Shift"===d.edgeLabelPlacement&&(0===t&&o<d.rect.x&&(o=d.rect.x),t===d.visibleLabels.length-1&&o+b>d.rect.x+d.rect.width&&(o=d.rect.x+d.rect.width-b)),h){case"MultipleRows":t>0&&d.findMultiRows(t,o,s,r);break;case"Rotate45":case"Rotate90":t>0&&(d.isAxisInverse?o+b>=a:o<=a)&&(d.angle="Rotate45"===h?45:90,l=!0);break;default:if(r){for(var x=void 0,S=[],C=void 0,F=0;F<s.text.length;F++)if((x=Ze(s.text[F],d.rect.width/d.visibleLabels.length,d.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont)).length>1)for(var w=0;w<x.length;w++)C=x[w],S.push(C);else S.push(x[0]);s.text=S}else s.text=Ze(s.text,d.rect.width/d.visibleLabels.length,d.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont);var L=s.size.height*s.text.length;L>d.maxLabelSize.height&&(d.maxLabelSize.height=L)}a=d.isAxisInverse?o:o+b}}(p);if(0!==this.angle&&"Horizontal"===this.orientation){this.rotatedLabel=t.isNullOrUndefined(this.rotatedLabel)?"":this.rotatedLabel;m=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!m&&c(this.rotatedLabel)?this.maxLabelSize=new i.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=u(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}else if(0!==this.angle&&"Vertical"===this.orientation){this.rotatedLabel=t.isNullOrUndefined(this.rotatedLabel)?"":this.rotatedLabel;var m=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!m&&c(this.rotatedLabel)?this.maxLabelSize=new i.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=u(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}e.multiLevelLabelModule&&this.multiLevelLabels.length>0&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)},o.prototype.getMaxTemplateLabelWidth=function(e){for(var o,r,n=0,a=!1,l=this.labelIntersectAction,s=0,h=this.visibleLabels.length;s<h;s++){r=this.visibleLabels[s];var c=me(ue(t.createElement("div",{id:"_AxisLabelTemplate_",styles:"position:absolute; cursor: default; white-space: nowrap;pointer-events:none; z-index:1;"}),s,this.labelTemplate,e,r),e.redraw),d=c.width,p=c.height;if(r.size=new i.Size(d,p),d>this.maxLabelSize.width&&(this.maxLabelSize.width=d),p>this.maxLabelSize.height&&(this.maxLabelSize.height=p),"None"!==l&&"Hide"!==l&&"Horizontal"===this.orientation&&this.rect.width>0&&!a){var u=r.size.width;switch(o=T(r.value,this)*this.rect.width+this.rect.x,o-=u/2,"Shift"===this.edgeLabelPlacement&&(0===s&&o<this.rect.x&&(o=this.rect.x),s===this.visibleLabels.length-1&&o+u>this.rect.x+this.rect.width&&(o=this.rect.x+this.rect.width-u)),l){case"Rotate45":case"Rotate90":s>0&&(this.isAxisInverse?o+u>=n:o<=n)&&(this.angle="Rotate45"===l?45:90,a=!0)}n=this.isAxisInverse?o:o+u}}if(this.maxLabelSize.height=0===this.visibleLabels.length&&this.crosshairTooltip.enable?15.96:this.maxLabelSize.height,0!==this.rect.height&&(this.maxLabelSize.height=Math.min(this.maxLabelSize.height,this.rect.height/2)),0!==this.rect.width&&(this.maxLabelSize.width=Math.min(this.maxLabelSize.width,this.rect.width/2)),0!==this.angle&&"Horizontal"===this.orientation){var g=this.angle*(Math.PI/180),d=this.maxLabelSize.width,p=this.maxLabelSize.height;this.maxLabelSize=new i.Size(Math.abs(d*Math.cos(g))+Math.abs(p*Math.sin(g)),Math.abs(d*Math.sin(g))+Math.abs(p*Math.cos(g)))}e.multiLevelLabelModule&&this.multiLevelLabels.length>0&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)},o.prototype.findMultiRows=function(e,t,i,o){for(var r,n,a,l=[],s=e-1;s>=0;s--)r=this.visibleLabels[s],a=o?r.breakLabelSize.width:r.size.width,n=T(r.value,this)*this.rect.width+this.rect.x,(this.isAxisInverse?t+i.size.width>n-.5*a:t<n+.5*a)?(l.push(r.index),i.index=i.index>r.index?i.index:r.index+1):i.index=l.indexOf(r.index)>-1?i.index:r.index;var h=(o?i.breakLabelSize.height:i.size.height)*i.index+5*(i.index-1);h>this.maxLabelSize.height&&(this.maxLabelSize.height=h)},o.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new Mi(e):this.baseModule=e[U(this.valueType)+"Module"]},o.prototype.setIsInversedAndOpposedPosition=function(e){void 0===e&&(e=!1),this.isAxisOpposedPosition=this.opposedPosition||!e&&this.isRTLEnabled&&"Vertical"===this.orientation,this.opposedPosition&&!e&&this.isRTLEnabled&&"Vertical"===this.orientation&&(this.isAxisOpposedPosition=!1),this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation,this.isInversed&&!e&&this.isRTLEnabled&&"Horizontal"===this.orientation&&(this.isAxisInverse=!1)},o.prototype.updateAxis=function(){var e=this.baseModule.chart,t=e.chartAxisLayoutPanel,i=e.axisCollections.indexOf(this),o=he(e.element.id+"AxisInsideCollection"),r=he(e.element.id+"AxisOutsideCollection");t.element=e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Inside"});var n=e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Outside"}),a=t.findAxisPosition(this);t.drawAxis(this,i,a,n,o,r),e.enableCanvas||be(e.enableCanvas,o,t.element,e.redraw)},Zi([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},ai)],o.prototype,"labelStyle",void 0),Zi([t.Complex({},io)],o.prototype,"crosshairTooltip",void 0),Zi([t.Property("")],o.prototype,"title",void 0),Zi([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],o.prototype,"titleStyle",void 0),Zi([t.Property("")],o.prototype,"labelFormat",void 0),Zi([t.Property("")],o.prototype,"skeleton",void 0),Zi([t.Property("DateTime")],o.prototype,"skeletonType",void 0),Zi([t.Property("Center")],o.prototype,"lineBreakAlignment",void 0),Zi([t.Property(0)],o.prototype,"plotOffset",void 0),Zi([t.Property(null)],o.prototype,"plotOffsetLeft",void 0),Zi([t.Property(null)],o.prototype,"plotOffsetTop",void 0),Zi([t.Property(null)],o.prototype,"plotOffsetRight",void 0),Zi([t.Property(null)],o.prototype,"plotOffsetBottom",void 0),Zi([t.Property(!1)],o.prototype,"isIndexed",void 0),Zi([t.Property(10)],o.prototype,"logBase",void 0),Zi([t.Property(0)],o.prototype,"columnIndex",void 0),Zi([t.Property(0)],o.prototype,"rowIndex",void 0),Zi([t.Property(1)],o.prototype,"span",void 0),Zi([t.Property(null)],o.prototype,"desiredIntervals",void 0),Zi([t.Property(3)],o.prototype,"maximumLabels",void 0),Zi([t.Property(1)],o.prototype,"zoomFactor",void 0),Zi([t.Property(0)],o.prototype,"zoomPosition",void 0),Zi([t.Property(!0)],o.prototype,"enableScrollbarOnZooming",void 0),Zi([t.Property(!1)],o.prototype,"opposedPosition",void 0),Zi([t.Property(!0)],o.prototype,"enableAutoIntervalOnZooming",void 0),Zi([t.Property("Auto")],o.prototype,"rangePadding",void 0),Zi([t.Property("Double")],o.prototype,"valueType",void 0),Zi([t.Property("Shift")],o.prototype,"edgeLabelPlacement",void 0),Zi([t.Property("Auto")],o.prototype,"intervalType",void 0),Zi([t.Property("BetweenTicks")],o.prototype,"labelPlacement",void 0),Zi([t.Property("Outside")],o.prototype,"tickPosition",void 0),Zi([t.Property("Outside")],o.prototype,"labelPosition",void 0),Zi([t.Property(null)],o.prototype,"labelTemplate",void 0),Zi([t.Property("")],o.prototype,"name",void 0),Zi([t.Property(!0)],o.prototype,"visible",void 0),Zi([t.Property(0)],o.prototype,"minorTicksPerInterval",void 0),Zi([t.Property(0)],o.prototype,"labelRotation",void 0),Zi([t.Property(null)],o.prototype,"titleRotation",void 0),Zi([t.Property(null)],o.prototype,"crossesAt",void 0),Zi([t.Property(!0)],o.prototype,"placeNextToAxisLine",void 0),Zi([t.Property(null)],o.prototype,"crossesInAxis",void 0),Zi([t.Property(null)],o.prototype,"minimum",void 0),Zi([t.Property(null)],o.prototype,"maximum",void 0),Zi([t.Property(null)],o.prototype,"interval",void 0),Zi([t.Property(34)],o.prototype,"maximumLabelWidth",void 0),Zi([t.Property(!1)],o.prototype,"enableTrim",void 0),Zi([t.Property(!1)],o.prototype,"enableWrap",void 0),Zi([t.Property(5)],o.prototype,"labelPadding",void 0),Zi([t.Property(5)],o.prototype,"titlePadding",void 0),Zi([t.Complex({},eo)],o.prototype,"majorTickLines",void 0),Zi([t.Complex({},to)],o.prototype,"minorTickLines",void 0),Zi([t.Complex({},$i)],o.prototype,"majorGridLines",void 0),Zi([t.Complex({},Ki)],o.prototype,"minorGridLines",void 0),Zi([t.Complex({},Ji)],o.prototype,"lineStyle",void 0),Zi([t.Property(t.Browser.isDevice?"Rotate45":"Trim")],o.prototype,"labelIntersectAction",void 0),Zi([t.Property(!1)],o.prototype,"isInversed",void 0),Zi([t.Property(100)],o.prototype,"coefficient",void 0),Zi([t.Property(0)],o.prototype,"startAngle",void 0),Zi([t.Property(!0)],o.prototype,"startFromZero",void 0),Zi([t.Property(null)],o.prototype,"description",void 0),Zi([t.Property(2)],o.prototype,"tabIndex",void 0),Zi([t.Collection([],Hi)],o.prototype,"stripLines",void 0),Zi([t.Collection([],Wi)],o.prototype,"multiLevelLabels",void 0),Zi([t.Complex({color:null,width:0,type:"Rectangle"},Ni)],o.prototype,"border",void 0),Zi([t.Complex({},Ui)],o.prototype,"scrollbarSettings",void 0),o}(t.ChildProperty),ro=function(){function e(e,t,o,r,n,a,l){void 0===n&&(n=new i.Size(0,0)),void 0===a&&(a=new i.Size(0,0)),void 0===l&&(l=1),this.text=e,this.originalText=r,this.value=t,this.labelStyle=o,this.size=n,this.breakLabelSize=a,this.index=l}return e}(),no=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ao=function(){function e(e,t,i,o,r,n){this.verticalStandardMean=e,this.horizontalStandardMean=i,this.verticalSquareRoot=t,this.horizontalSquareRoot=o,this.verticalMean=r,this.horizontalMean=n}return e}(),lo=function(){function e(e,t,i,o,r){this.startAngle=e,this.endAngle=t,this.innerRadius=i,this.radius=o,this.currentXPosition=r}return e}(),so=function(){function e(e){this.id=e}return e}(),ho=function(){function e(e,t){this.startValues=e,this.endValues=t}return e}(),co=function(e){function t(t,i,o,r,n,a,l,s,h){var c=e.call(this,t,i,o.width,o.color,r,h)||this;return c.y=n.y,c.x=n.x,c.height=n.height,c.width=n.width,c.rx=a||0,c.ry=l||0,c.transform=s||"",c.stroke=0!==o.width&&""!==c.stroke?null===o.color?"":o.color:"transparent",c}return no(t,e),t}(i.PathOption),po=function(){function e(e,t,i,o,r,n,a,l){this.height=e,this.width=t,this.href=i,this.x=o,this.y=r,this.id=n,this.visibility=a,this.preserveAspectRatio=l}return e}(),uo=function(e){function t(t,i,o,r,n,a,l){var s=e.call(this,t,i,o.width,o.color,r)||this;return s.cy=a,s.cx=n,s.r=l,s}return no(t,e),t}(i.PathOption),go=function(){function e(e,t,i){this.id=e,this.points=t,this.fill=i}return e}(),mo=function(){function e(e,t){this.x=e,this.y=t}return e}(),yo=function(){function e(e,t){this.x=0,this.y=0,this.x=e,this.y=t}return e}(),fo=function(){function e(e,t,i,o){this.left=e,this.right=t,this.top=i,this.bottom=o}return e}(),vo=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),bo=function(){function e(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.lierIndex=i}return e}(),xo=function(){function e(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.index=i}return e}(),So=function(){function e(e,t){this.point=e,this.series=t}return e}(),Co=function(){function e(e,t){this.controlPoint1=e,this.controlPoint2=t}return e}(),Fo={size:"13px",fontWeight:"400",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},wo=function(){function e(e){this.chart=e,this.padding=5}return e.prototype.measureAxis=function(e){var t=this.chart,o=t.chartArea.width?Ne(t.chartArea.width,t.availableSize.width):null;this.crossAt(t),this.seriesClipRect=new i.Rect(e.x,e.y,e.width,e.height),this.initialClipRect=e,this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.initialClipRect=F(this.initialClipRect,new fo(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.initialClipRect=F(this.initialClipRect,new fo(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||this.calculateAxisSize(this.initialClipRect),this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.seriesClipRect=F(this.seriesClipRect,new fo(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.seriesClipRect=F(this.seriesClipRect,new fo(0,0,this.topSize,this.bottomSize)),o&&this.calculateFixedChartArea(t,o),this.chart.delayRedraw||(t.refreshAxis(),this.calculateAxisSize(this.seriesClipRect))},e.prototype.calculateFixedChartArea=function(e,t){this.seriesClipRect.width=t,this.seriesClipRect.x=e.availableSize.width-e.margin.right-t-("Right"===e.legendSettings.position?e.legendModule.legendBounds.width:0);for(var i=0,o=e.rows;i<o.length;i++){var r=o[i];this.seriesClipRect.x-=S(r.farSizes)}},e.prototype.measureRowAxis=function(e,t){var o;this.calculateRowSize(t);for(var r=0,n=e.rows;r<n.length;r++)(o=n[r]).nearSizes=[],o.farSizes=[],o.insideNearSizes=[],o.insideFarSizes=[],this.arrangeAxis(o),this.measureDefinition(o,e,new i.Size(e.availableSize.width,o.computedHeight)),this.leftSize<S(o.nearSizes)&&(this.leftSize=S(o.nearSizes)),this.rightSize<S(o.farSizes)&&(this.rightSize=S(o.farSizes))},e.prototype.measureColumnAxis=function(e,t){var o;this.calculateColumnSize(t);for(var r=0,n=e.columns;r<n.length;r++)(o=n[r]).farSizes=[],o.nearSizes=[],o.insideNearSizes=[],o.insideFarSizes=[],this.arrangeAxis(o),this.measureDefinition(o,e,new i.Size(o.computedWidth,e.availableSize.height)),this.bottomSize<S(o.nearSizes)&&(this.bottomSize=S(o.nearSizes)),this.topSize<S(o.farSizes)&&(this.topSize=S(o.farSizes))},e.prototype.measureDefinition=function(e,t,i){for(var o,r=0,n=e.axes;r<n.length;r++){var a=n[r];o=a.scrollbarSettings.height,a.scrollBarHeight=t.scrollBarModule&&t.zoomModule&&t.zoomSettings.enableScrollbar&&a.enableScrollbarOnZooming&&t.zoomModule.isZoomed&&(a.zoomFactor<1||a.zoomPosition>0)?o:0,a.scrollBarHeight=t.scrollBarModule&&(t.zoomModule&&t.zoomSettings.enableScrollbar&&a.enableScrollbarOnZooming&&t.zoomModule.isZoomed&&(a.zoomFactor<1||a.zoomPosition>0)||a.scrollbarSettings.enable)?o:0,a.getModule(t),a.baseModule.calculateRangeAndInterval(i,a),e.computeSize(a,a.scrollBarHeight,e,t)}e.farSizes.length>0&&(e.farSizes[e.farSizes.length-1]-=10),e.nearSizes.length>0&&(e.nearSizes[e.nearSizes.length-1]-=10)},e.prototype.calculateAxisSize=function(e){var t,i,o,r,n,a,l,s=this.chart,h=0,c=0,d=0;this.calculateRowSize(e);for(var p=!1,u=0,g=s.rows.length;u<g;u++){h=0,c=0;for(var m=0,y=(t=s.rows[u]).axes.length;m<y;m++){if(r=t.axes[m],l=r.plotOffset,0===r.rect.height){r.rect.height=t.computedHeight,d=0;for(var f=u+1,v=u+r.span;f<v;f++)d+=(o=s.rows[f]).computedHeight;r.rect.y=t.computedTop-d+(r.plotOffsetTop?r.plotOffsetTop:l),r.rect.height=r.rect.height+d-this.getAxisOffsetValue(r.plotOffsetTop,r.plotOffsetBottom,r.plotOffset),r.rect.width=0}"primaryYAxis"===r.name&&"Outside"===r.labelPosition&&(p=!0),r.isAxisOpposedPosition?(n="Inside"===r.labelPosition&&"Vertical"===r.orientation?c>0?e.x+e.width+S(R(t.farSizes,c))+r.maxLabelSize.width+r.multiLevelLabelHeight+("Inside"===r.tickPosition?r.majorTickLines.height:0)+r.labelPadding:e.x+e.width-S(R(t.insideFarSizes,c)):e.x+e.width+S(R(t.farSizes,c)),r.rect.x=r.rect.x>=n?r.rect.x:n,c++):(n="Inside"===r.labelPosition&&"Vertical"===r.orientation?e.x+S(R(t.insideNearSizes,p?h-1:h)):e.x-S(R(t.nearSizes,h)),r.rect.x=r.rect.x<=n?r.rect.x:n,h++)}}this.calculateColumnSize(e);for(var u=0,g=s.columns.length;u<g;u++){h=0,c=0;for(var m=0,b=(i=s.columns[u]).axes.length;m<b;m++){if(r=i.axes[m],l=r.plotOffset,0===r.rect.width){for(var f=u,x=u+r.span;f<x;f++)o=s.columns[f],r.rect.width+=o.computedWidth;r.rect.x=i.computedLeft+(r.plotOffsetLeft?r.plotOffsetLeft:l),r.rect.width-=this.getAxisOffsetValue(r.plotOffsetLeft,r.plotOffsetRight,r.plotOffset),r.rect.height=0}r.isAxisOpposedPosition?(a="Inside"===r.labelPosition&&"Horizontal"===r.orientation?c>0?e.y-S(R(i.farSizes,c))-r.maxLabelSize.height-r.multiLevelLabelHeight-("Inside"===r.tickPosition?r.majorTickLines.height:0)-r.labelPadding:e.y+S(R(i.insideFarSizes,c)):e.y-S(R(i.farSizes,c)),r.rect.y=r.rect.y<=a?r.rect.y:a,c++):(a="Inside"===r.labelPosition&&"Horizontal"===r.orientation?h>0?e.y+e.height+S(R(i.nearSizes,h))+r.maxLabelSize.height+r.multiLevelLabelHeight+("Inside"===r.tickPosition?r.majorTickLines.height:0)+r.labelPadding:e.y+e.height-S(R(i.insideNearSizes,h)):e.y+e.height+S(R(i.nearSizes,h)),r.rect.y=r.rect.y>=a?r.rect.y:a,h++)}}},e.prototype.measure=function(){for(var e,t,i,o,r,n=this.chart,a=0,l=n.axisCollections;a<l.length;a++){var s=l[a];if("Vertical"===s.orientation){n.verticalAxes.push(s),o=this.getActualRow(s),e=n.rows[o],this.pushAxis(e,s),r=o+s.span>n.rows.length?n.rows.length:o+s.span;for(h=o+1;h<r;h++)(i=n.rows[h]).axes[e.axes.length-1]=s,n.rows[h]=i;n.rows[o]=e}else{n.horizontalAxes.push(s),o=this.getActualColumn(s),t=n.columns[o],this.pushAxis(t,s),r=o+s.span>n.columns.length?n.columns.length:o+s.span;for(var h=o+1;h<r;h++)(i=n.columns[h]).axes[t.axes.length-1]=s,n.columns[h]=i;n.columns[o]=t}s.isRTLEnabled=n.enableRtl,s.setIsInversedAndOpposedPosition()}},e.prototype.getAxisOffsetValue=function(e,t,i){return e?e+(t||i):t?t+i:2*i},e.prototype.crossAt=function(e){for(var t=0,i=e.axisCollections;t<i.length;t++){var o=i[t];if(null!==o.crossesAt)if(o.crossesInAxis)for(var r=2,n=e.axisCollections.length;r<n;r++)o.crossesInAxis!==e.axisCollections[r].name||(o.crossInAxis=e.axisCollections[r],o.crossAt=this.updateCrossAt(o.crossInAxis,o.crossesAt));else e.requireInvertedAxis?o.crossInAxis="Horizontal"===o.orientation?e.primaryXAxis:e.primaryYAxis:o.crossInAxis="Horizontal"===o.orientation?e.primaryYAxis:e.primaryXAxis,o.crossAt=this.updateCrossAt(o.crossInAxis,o.crossesAt)}},e.prototype.updateCrossAt=function(e,t){switch(e.valueType){case"DateTime":var i={skeleton:"full",type:"dateTime"},r=this.chart.intl.getDateParser(i),n=this.chart.intl.getDateFormat(i);return Date.parse(r(n(new Date(o.DataUtil.parse.parseJson({val:t}).val))));case"Category":return parseFloat(t)?parseFloat(t):e.labels.indexOf(t);case"Logarithmic":return m(t,e.logBase);default:return t}},e.prototype.pushAxis=function(e,t){for(var i=0,o=e.axes.length;i<=o;i++)if(!e.axes[i]){e.axes[i]=t;break}},e.prototype.arrangeAxis=function(e){for(var t=[],i=0,o=e.axes.length;i<=o;i++)e.axes[i]&&t.push(e.axes[i]);e.axes=t},e.prototype.getActualColumn=function(e){var t=this.chart.columns.length,i=e.columnIndex;return i>=t?t-1:i<0?0:i},e.prototype.getActualRow=function(e){var t=this.chart.rows.length,i=e.rowIndex;return i>=t?t-1:i<0?0:i},e.prototype.calculateRowSize=function(e){for(var t,i=this.chart,o=e.y+e.height,r=0,n=Math.max(0,e.height),a=0,l=i.rows.length;a<l;a++)r=-1!==(t=i.rows[a]).height.indexOf("%")?Math.min(n,e.height*parseInt(t.height,10)/100):Math.min(n,parseInt(t.height,10)),r=a!==l-1?r:n,t.computedHeight=r,o-=r,t.computedTop=o,n-=r},e.prototype.calculateColumnSize=function(e){for(var t,i=this.chart,o=e.x,r=0,n=Math.max(0,e.width),a=0,l=i.columns.length;a<l;a++)r=-1!==(t=i.columns[a]).width.indexOf("%")?Math.min(n,e.width*parseInt(t.width,10)/100):Math.min(n,parseInt(t.width,10)),r=a!==l-1?r:n,t.computedWidth=r,t.computedLeft=o,o+=r,n-=r},e.prototype.renderAxes=function(){var e,t=this.chart,i=t.renderer.createGroup({id:t.element.id+"AxisInsideCollection"}),o=t.renderer.createGroup({id:t.element.id+"AxisOutsideCollection"});o&&o.setAttribute("aria-hidden","true");var r,n;t.scrollBarModule&&(t.scrollBarModule.topScrollBarCount=0,t.scrollBarModule.bottomScrollBarCount=0,t.scrollBarModule.leftScrollBarCount=0,t.scrollBarModule.rightScrollBarCount=0);for(var a=0,l=t.axisCollections.length;a<l;a++){var s=!0;(e=t.axisCollections[a]).index=a,this.element=t.renderer.createGroup({id:t.element.id+"AxisGroup"+a+"Inside"}),this.element&&this.element.setAttribute("aria-hidden","true"),(r=t.renderer.createGroup({id:t.element.id+"AxisGroup"+a+"Outside"}))&&r.setAttribute("aria-hidden","true");for(var h=0,c=e.series;h<c.length;h++){var d=c[h];if(e.name!==d.yAxisName&&e.name!==d.xAxisName);else if(s=d.visible,"Pareto"!==d.category||d.paretoOptions.showAxis||"Line"!==d.type||(s=!1),s)break}s?(n=this.findAxisPosition(e),this.drawAxis(e,a,n,r,i,o)):e.zoomingScrollBar&&e.zoomingScrollBar.removeScrollSvg()}return this.drawPaneLines(t,i),be(t.enableCanvas,t.svgObject,i,t.redraw),o},e.prototype.renderScrollbar=function(e,i){var o=!t.isNullOrUndefined(e.zoomModule)&&e.zoomModule.isZoomed;if(i.zoomingScrollBar||e.scrollBarModule.injectTo(i,e),(o&&(i.zoomFactor<1||i.zoomPosition>0)||i.scrollbarSettings.enable&&(i.zoomFactor<=1||i.zoomPosition>=0))&&!i.zoomingScrollBar.isScrollUI)e.scrollElement||(e.scrollElement=Ve(e.redraw,e.element.id+"_scrollElement")||t.createElement("div",{id:e.element.id+"_scrollElement"})),be(!1,e.scrollElement,i.zoomingScrollBar.render(!0),!0);else if(1===i.zoomFactor&&0===i.zoomPosition&&i.zoomingScrollBar.svgObject&&!i.scrollbarSettings.enable)i.zoomingScrollBar.destroy();else if(i.zoomingScrollBar.svgObject){var r=(i.isAxisOpposedPosition&&"Horizontal"===i.orientation?-16:0)+i.rect.y+Math.max(.5,i.lineStyle.width/2),n=(i.isAxisOpposedPosition&&"Horizontal"!==i.orientation?16:0)+(i.rect.x-("Horizontal"===i.orientation&&i.scrollbarSettings.enableZoom?i.zoomingScrollBar.svgExtraWidth/2:0))-("Vertical"===i.orientation?i.scrollbarSettings.height:0);"Horizontal"===i.orientation||"Left"!==i.scrollbarSettings.position&&"Right"!==i.scrollbarSettings.position?"Horizontal"!==i.orientation||"Top"!==i.scrollbarSettings.position&&"Bottom"!==i.scrollbarSettings.position||(r=p(i.zoomingScrollBar,!0)):n=p(i.zoomingScrollBar,!1),i.zoomingScrollBar.svgObject.style.top=r+"px",i.zoomingScrollBar.svgObject.style.left=n+"px"}i.zoomingScrollBar.isScrollUI&&(i.zoomingScrollBar.isScrollUI=!1)},e.prototype.drawPaneLines=function(e,t){this.element=e.renderer.createGroup({id:e.element.id+"DefinitionLine"});for(var i=0,o=e.rows.length;i<o;i++){var r=e.rows[i];r.border.color&&this.drawBottomLine(r,i,!0)}for(var i=0,o=e.columns.length;i<o;i++){var n=e.columns[i];n.border.color&&this.drawBottomLine(n,i,!1)}t=t||he(e.element.id+"AxisInsideCollection"),this.chart.enableCanvas||t.appendChild(this.element)},e.prototype.drawAxis=function(e,t,i,o,r,n){e.updateCrossValue();var a="";"Horizontal"===e.orientation?(e.visible&&e.internalVisibility&&e.lineStyle.width>0&&this.drawAxisLine(e,t,e.plotOffset,0,0,0,e.plotOffsetLeft,e.plotOffsetRight,i?o:this.element,e.updatedRect),a="X"):(e.visible&&e.internalVisibility&&e.lineStyle.width>0&&this.drawAxisLine(e,t,0,e.plotOffset,e.plotOffsetBottom,e.plotOffsetTop,0,0,i?o:this.element,e.updatedRect),a="Y"),(e.majorGridLines.width>0||e.majorTickLines.width>0||e.minorTickLines.width>0||e.minorGridLines.width>0)&&this["draw"+a+"AxisGridLine"](e,t,i||"Inside"===e.tickPosition?o:this.element,e.updatedRect),e.visible&&e.internalVisibility&&(this["draw"+a+"AxisLabels"](e,t,i||"Inside"===e.labelPosition?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect),this["draw"+a+"AxisBorder"](e,t,i||"Inside"===e.labelPosition?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect),this["draw"+a+"AxisTitle"](e,t,i?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect)),this.chart.enableCanvas||(r.appendChild(this.element),o&&o.childNodes.length>0&&n.appendChild(o)),this.chart.scrollBarModule&&(this.chart.zoomSettings.enableScrollbar&&e.enableScrollbarOnZooming||e.scrollbarSettings.enable)?this.renderScrollbar(this.chart,e):e.zoomingScrollBar&&e.zoomingScrollBar.destroy()},e.prototype.findAxisPosition=function(e){return null!==e.crossAt&&e.isInside(e.crossInAxis.visibleRange)},e.prototype.drawBottomLine=function(e,t,i){var o,r,n,a,l,s=this.chart,h={};i?(n=a=(e=e).computedTop+e.computedHeight,r=(o=this.seriesClipRect.x)+this.seriesClipRect.width,l="Row"):(o=r=(e=e).computedLeft,a=(n=this.seriesClipRect.y)+this.seriesClipRect.height,l="Column"),h={id:s.element.id+"_AxisBottom_"+l+t,x1:o,y1:n,x2:r,y2:a,"stroke-width":e.border.width,stroke:e.border.color},this.htmlObject=s.renderer.drawLine(h),be(s.enableCanvas,this.element,this.htmlObject)},e.prototype.drawAxisLine=function(e,t,i,o,r,n,a,l,s,h){var c=this.chart,d={},p=he(c.element.id+"AxisLine_"+t),u=p?p.getAttribute("d"):"";p=null,d={id:c.element.id+"AxisLine_"+t,d:"M "+(h.x-i-a)+" "+(h.y-o-n)+" L "+(h.x+h.width+i+l)+" "+(h.y+h.height+o+r),"stroke-dasharray":e.lineStyle.dashArray,"stroke-width":e.lineStyle.width,stroke:e.lineStyle.color||c.themeStyle.axisLine},this.htmlObject=c.renderer.drawPath(d),be(c.enableCanvas,s,this.htmlObject,c.redraw,!0,"x","y",null,u,null,null,null,c.duration)},e.prototype.drawYAxisGridLine=function(e,i,o,r){var n,a,l="Logarithmic"===e.valueType,s=e.valueType.indexOf("Category")>-1,h=0,c="",d="",p=e.isAxisOpposedPosition,u=p?e.majorTickLines.height:-e.majorTickLines.height,g=p?.5*e.lineStyle.width:.5*-e.lineStyle.width,m="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,y=t.isNullOrUndefined(e.crossesAt)&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?p?e.scrollBarHeight:-e.scrollBarHeight:0,v="Inside"===e.tickPosition,b=v?r.x-u-g:r.x+u+g+y,x=e.visibleLabels.length,S=this.chart.themeStyle,C=1;e.valueType.indexOf("Category")>-1&&"BetweenTicks"===e.labelPlacement&&x>0&&!this.chart.stockChart&&(x+=1);for(var F=e.minorGridLines,w=e.minorTickLines,L=0;L<x;L++)(h=-1*(h=T(n=e.visibleLabels[L]?e.visibleLabels[L].value-m:e.visibleLabels[L-1].value+e.visibleRange.interval-m,e)*r.height)+(r.y+r.height))>=r.y&&r.y+r.height>=h&&(this.chart.redraw&&!this.chart.enableCanvas&&this.chart.zoomRedraw&&e.visible&&e.majorGridLines.width&&0!==L&&!he(this.chart.element.id+"_MajorGridLine_"+i+"_"+L)&&(c="M "+this.seriesClipRect.x+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(L||1)*C:-this.seriesClipRect.height/(L||1)*C))+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(L||1)*C:-this.seriesClipRect.height/(L||1)*C)),this.updateAxisElement(e,i,c,L,"_MajorGridLine_",this.element,!1),he(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1])),(f(n,e.visibleRange)||this.isBorder(e,L,h))&&(c="M "+this.seriesClipRect.x+" "+h+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+h,this.renderGridLine(e,i,c,e.majorGridLines,"_MajorGridLine_",L,this.element,S.majorGridLine,e.majorGridLines.dashArray)),this.chart.redraw&&this.chart.zoomRedraw&&e.majorTickLines.width&&0!==L&&!he(this.chart.element.id+"_MajorTickLine_"+i+"_"+L)&&!this.chart.enableCanvas&&e.visible&&(d="M "+this.seriesClipRect.x+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(L||1)*C:-this.seriesClipRect.height/(L||1)*C))+" L "+b+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(L||1)*C:-this.seriesClipRect.height/(L||1)*C)),this.updateAxisElement(e,i,d,L,"_MajorTickLine_",o,!1),he(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1]),C+=1),d="M "+(r.x+g+(v?y:0))+" "+h+" L "+b+" "+h,this.renderGridLine(e,i,d,e.majorTickLines,"_MajorTickLine_",L,o,S.majorTickLine),(F.width>0||w.width>0)&&e.minorTicksPerInterval>0&&(0!==L||!ie(e)||l||s||this.renderMinorGridOnZooming(e,n,r,L,i,S,o),a=this.drawAxisMinorLine(e,n,r,L),this.renderGridLine(e,i,a[0],F,"_MinorGridLine_",L,this.element,S.minorGridLine,F.dashArray),this.renderGridLine(e,i,a[1],w,"_MinorTickLine_",L,o,S.minorTickLine),L===x-1&&ie(e)&&l&&!s&&this.renderMinorGridOnZooming(e,n+e.visibleRange.interval,r,L,i,S,o)));if(x&&this.previousYLabel>x&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw)for(L=x;L<this.previousYLabel;L++){var P=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height/x*(L-x+1)+this.seriesClipRect.height:-this.seriesClipRect.height/x*(L-x+1));e.majorGridLines.width&&(c="M "+this.seriesClipRect.x+" "+ +P+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+P,this.updateAxisElement(e,i,c,L,"_MajorGridLine_",this.element,!0)),e.majorTickLines.width&&(d="M "+this.seriesClipRect.x+" "+P+" L "+b+" "+P,this.updateAxisElement(e,i,d,L,"_MajorTickLine_",o,!0))}},e.prototype.isBorder=function(e,t,i){var o=this.chart.chartArea.border,r=this.seriesClipRect,n=e.orientation,a="Horizontal"===n?r.x:r.y,l="Horizontal"===n?r.width:r.height,s="Horizontal"===n?0:e.visibleLabels.length-1,h="Horizontal"===n?e.visibleLabels.length-1:0;return e.plotOffset>0||((i===a||i===a+l)&&(o.width<=0||"transparent"===o.color)||(i!==a&&t===s||i!==a+l&&t===h))},e.prototype.drawYAxisLabels=function(e,o,r,n){var a,l,s,h,d,p=this.chart,u=0,g=0,m=e.labelPadding,y="Inside"===e.labelPosition,f=e.isAxisOpposedPosition,v=(e.labelPosition===e.tickPosition?e.majorTickLines.height:0)+m+.5*e.lineStyle.width,b=e.angle%360,x=-90===b||90===b||270===b||-270===b;v+=x?y?5:-5:0,v=f?v:-v;var S,C,F,w,L,P,A,M=p.renderer.createGroup({id:p.element.id+"AxisLabels"+o}),D=t.isNullOrUndefined(e.crossesAt)&&"Left"!==e.scrollbarSettings.position&&"Right"!==e.scrollbarSettings.position?e.scrollBarHeight*(f?1:-1):0,k=e.isAxisInverse,R=1,E=k?n.y:n.y+n.height,_=!f&&!y||f&&y;w=y?_?v:-v:_?v+(p.enableRtl?-D:D):-v+(p.enableRtl?-D:D);var I=[],O=[];e.visibleLabels.map(function(e){I.push(e.size.width),O.push(e.breakLabelSize.width)});var z=Math.max.apply(Math,I),B=Math.max.apply(Math,O);if(d=z,b>=-45&&b<=45&&0!==b&&(d=z*Math.cos(b*Math.PI/180))<0&&(d=-d),e.labelTemplate){var N=p.element.id+"_YAxisLabelTemplate_Collection";p.yAxisLabelTemplate=t.createElement("div",{id:N})}for(var V=0,H=e.visibleLabels.length;V<H;V++)if(a=e.visibleLabels[V],e.labelTemplate){L=n.height/H;var W=e.maxLabelSize.width<a.size.width?e.maxLabelSize.width:a.size.width,j=Math.min(a.size.height,L);if(y)u=n.x-v-(f?W:0);else{var U=null==e.crossesAt?e.scrollBarHeight*(f?1:-1):0;u=n.x+v+U-(f?0:W)}if(g=T(a.value,e)*n.height,g=Math.floor(-1*g+(n.y+n.height)),g+=y?0:-j/2,"Hide"===e.edgeLabelPlacement){var X=g+j,G=g;if((0===V||k&&V===H-1)&&X>n.y+n.height||(V===H-1||k&&0===V)&&G<n.y)continue}else if("Shift"===e.edgeLabelPlacement){var Y=.5*p.border.width,Z=y?n.y+n.height:p.availableSize.height-Y,q=y?n.y:Y;(0===V||k&&V===H-1)&&g+j>Z?g-=g+j-Z:(V===H-1||k&&0===V)&&g<q&&(g+=q-g)}var Q=ue(t.createElement("div",{id:p.element.id+e.name+"_AxisLabelTemplate_"+V,styles:"position: absolute; pointer-events:none; cursor: default; white-space: nowrap; z-index:1; left: "+u+"px; top: "+g+"px; width: "+W+"px; height: "+j+"px;"}),V,e.labelTemplate,p,a);p.yAxisLabelTemplate.appendChild(Q)}else{switch(h=c(e.visibleLabels[V].originalText),l=h?e.visibleLabels[V].breakLabelSize:e.visibleLabels[V].size,g=T(e.visibleLabels[V].value,e)*n.height+(p.stockChart&&"Outside"!==e.labelPosition?7:0),g=Math.floor(-1*g+(n.y+n.height)),S=l.height/8*e.visibleLabels[V].text.length/2,C=p.requireInvertedAxis&&"Inside"===e.labelPosition?0:l.height/4*3+3,L=n.height/e.visibleLabels.length,P=("Trim"===e.labelIntersectAction||"Wrap"===e.labelIntersectAction)&&0!==b&&l.width>L?L:l.width,g=h?"Inside"===e.labelPosition?g-l.height/2-S+C:g-S:"Inside"===e.labelPosition?g+C:g,"Inside"===e.labelPosition&&(0===V&&!e.isInversed||V===H-1&&e.isInversed)&&(p.stockChart?g-=C:g-=C-(p.requireInvertedAxis&&"Inside"===e.labelPosition?0:e.opposedPosition?-v:v)),F=e.majorGridLines.width>e.majorTickLines.width?e.majorGridLines.width:e.majorTickLines.width,"Far"===e.labelStyle.textAlignment?g=g-F-10:"Near"===e.labelStyle.textAlignment&&(g=g+F+10),A=y?w+(0===b?l.width:h?B:z)/2:w-(0===b?l.width:h?B:d)/2,e.enableWrap&&p.requireInvertedAxis&&b&&(!e.opposedPosition&&"Inside"===e.labelPosition||e.opposedPosition&&"Outside"===e.labelPosition)&&(A=e.opposedPosition?A-z/2:A+z/2),u=f?0!==e.scrollBarHeight&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?n.x+e.scrollBarHeight+v-A:n.x-A:n.x+A,x&&(u+=f?5:-5),A=w,s=new i.TextOption(p.element.id+o+"_AxisLabel_"+V,u,g,"middle",a.text,"","middle",b),e.edgeLabelPlacement){case"None":break;case"Hide":((0===V||k&&V===H-1)&&s.y>n.y||(V===H-1||k&&0===V)&&s.y-.5*l.height<n.y)&&(s.text="");break;case"Shift":(0===V||k&&V===H-1)&&s.y>n.y+n.height?s.y=g=n.y+n.height:(V===H-1||k&&0===V)&&s.y<=0&&(s.y=g=n.y+.5*l.height)}var $=s.y,K=s.y-P;if(h&&($=s.y-P/2,K=s.y+P/2),90!==b&&270!==b||"Hide"!==e.labelIntersectAction||0===V||!(k?K<=E:$>=E)){if(E=k?$:K,s.transform="rotate("+b+","+u+","+g+")",this.chart.redraw&&this.chart.zoomRedraw&&!he(s.id)&&!this.chart.enableCanvas&&e.visible){var J=s.y;s.y=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(V||1)*R:-this.seriesClipRect.height/(V||1)*R),this.updateAxisElement(e,o,"",V,"_AxisLabel_",M,!1,s,a),s.y=J,R+=1}je(p.renderer,s,a.labelStyle,a.labelStyle.color||p.themeStyle.axisLabelFont.color,M,!1,p.redraw,!0,!0,p.duration,null,null,null,p.enableCanvas,null,p.themeStyle.axisLabelFont,new mo(u,g))}}if(this.previousYLabel&&e.visibleLabels.length&&this.previousYLabel>e.visibleLabels.length&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&p.redraw&&s.text)for(V=e.visibleLabels.length;V<this.previousYLabel;V++)s.y=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/e.visibleLabels.length*(V-e.visibleLabels.length+1):-this.seriesClipRect.height/e.visibleLabels.length*(V-e.visibleLabels.length+1)),s.id=p.element.id+o+"_AxisLabel_"+V,this.updateAxisElement(e,o,"",V,"_AxisLabel_",M,!0,s,a);else this.previousYLabel=e.visibleLabels.length;this.chart.enableCanvas||e.labelTemplate||(p.delayRedraw?e.visible&&e.internalVisibility&&this.createZoomingLabel(this.chart,M,e,o,n):be(p.enableCanvas,r,M,p.redraw))},e.prototype.rangeAnimate=function(e,i,o,r,n,a,l){var s=this;i&&new t.Animation({}).animate(i,{duration:o,progress:function(){var e=he(i.id);if(e.style.animation="",r)V(parseFloat(e.getAttribute("x")),parseFloat(e.getAttribute("y")),n)?e.style.visibility="visible":e.style.visibility="hidden";else{var t=e.getAttribute("d").split(" ");V(parseFloat(t[1]),parseFloat(t[2]),n)?e.style.visibility="visible":e.style.visibility="hidden"}},end:function(){var t=he(i.id);t.style.visibility="",a&&l>=e.visibleLabels.length&&(g(t),r&&("Vertical"===e.orientation?s.previousYLabel=e.visibleLabels.length:s.previousXLabel=e.visibleLabels.length))}})},e.prototype.getAxisLabelXvalue=function(e,t,i){var o=t.lineBreakAlignment,r="Inside"===t.labelPosition,n=t.isAxisOpposedPosition;return n&&r||!n&&!r?"Right"===o?e:"Center"===o?e-i/2:e-i:"Left"===o?e:"Center"===o?e+i/2:e+i},e.prototype.drawYAxisBorder=function(e,t,i,o){if(e.border.width>0){var r=void 0,n=void 0,a="Outside"===e.labelPosition&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?e.scrollBarHeight:0,l=e.isAxisOpposedPosition;a*=l?1:-1;for(var s=o.height/e.visibleRange.delta*("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval),h=void 0,c=e.maxLabelSize.width+10+(e.tickPosition===e.labelPosition?e.majorTickLines.height:0),d="",p="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?-.5:0,u=l&&"Inside"===e.labelPosition||!l&&"Outside"===e.labelPosition?o.x-c+a:o.x+c+a,g=0,m=e.visibleLabels.length;g<m;g++)switch(n=T(e.visibleLabels[g].value+p,e),n=(e.isAxisInverse?1-n:n)*o.height,"Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?(r=-1*n+(o.y+o.height),h=-1*n-s+(o.y+o.height)):(r=-1*n+s/2+(o.y+o.height),h=-1*n-s/2+(o.y+o.height)),e.border.type){case"Rectangle":case"WithoutTopBorder":r>o.y+o.height?d+="M "+u+" "+(o.y+o.height)+" L "+u+" "+h+" ":Math.floor(o.y)>h?d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" L "+u+" "+o.y+" ":(d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" L "+u+" "+h+" ",g===e.visibleLabels.length-1&&(d+="M "+(o.x+a)+" "+h+" L "+u+" "+h+" "));break;case"WithoutTopandBottomBorder":r>o.y+o.height||h<Math.floor(o.y)||(d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" M "+u+" "+h+" L "+(o.x+a)+" "+h)}""!==(d+="Rectangle"===e.border.type?"M "+(o.x+a)+" "+o.y+" L "+(o.x+a)+" "+(o.y+o.height)+" ":"")&&this.createAxisBorderElement(e,t,d,i)}for(g=0;g<this.chart.visibleSeries.length;g++)if(e.multiLevelLabels.length>0&&this.chart.multiLevelLabelModule&&this.chart.visibleSeries[g].visible){this.chart.multiLevelLabelModule.renderYAxisMultiLevelLabels(e,t,i,o);break}},e.prototype.drawYAxisTitle=function(e,t,o,r){if(e.title){var n=this.chart,a=!1,l=e.isAxisOpposedPosition,s=(null==e.titleRotation?l?90:-90:e.titleRotation)%360,h=("Inside"===e.tickPosition?0:e.majorTickLines.height+e.titlePadding)+("Inside"===e.labelPosition?0:e.maxLabelSize.width+e.multiLevelLabelHeight+this.padding);h="Outside"===e.tickPosition||"Inside"!==e.tickPosition&&"Inside"!==e.labelPosition?h:5===e.titlePadding?h:h+e.titlePadding,h=l?h+("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:e.scrollBarHeight):-h-("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:e.scrollBarHeight),(-90!==s&&!l||90!==s&&l)&&(h+=e.isAxisOpposedPosition?e.titleSize.width/2+("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding):-e.titleSize.width/2-("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding),a=!0);var c=r.x+h,d=void 0,p=void 0;"Center"===e.titleStyle.textAlignment?(p="middle",d=r.y+.5*r.height):"Near"===e.titleStyle.textAlignment?(p=e.opposedPosition?"end":"start",d=r.height+r.y):(p=e.opposedPosition?"start":"end",d=r.y);var u=e.titleSize.height*(e.titleCollection.length-1),g=new i.TextOption(n.element.id+"_AxisTitle_"+t,c,d+(a?-u:-("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding)-u),p,e.titleCollection,"rotate("+s+","+c+","+d+")",null,s);je(n.renderer,g,e.titleStyle,e.titleStyle.color||n.themeStyle.axisTitleFont.color,o,null,null,null,null,null,null,null,null,n.enableCanvas,null,n.themeStyle.axisTitleFont,new mo(c,d)).setAttribute("aria-hidden","true")}},e.prototype.drawXAxisGridLine=function(e,o,r,n){var a,l,s="Logarithmic"===e.valueType,h=e.valueType.indexOf("Category")>-1,c=0,d="",p="",u=1,g=e.isAxisOpposedPosition,m=g?-e.majorTickLines.height:e.majorTickLines.height,y=g?.5*-e.lineStyle.width:.5*e.lineStyle.width,v=t.isNullOrUndefined(e.crossesAt)&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?g?-e.scrollBarHeight:e.scrollBarHeight:0,b=e.valueType.indexOf("Category")>-1&&"BetweenTicks"===e.labelPlacement&&!this.chart.stockChart?.5:0,x=e.visibleLabels.length,S="Inside"===e.tickPosition,C=S?n.y-m-y:n.y+m+y+v,F=this.chart.themeStyle;e.valueType.indexOf("Category")>-1&&x>0&&"BetweenTicks"===e.labelPlacement&&!this.chart.stockChart&&(x+=1);for(var w=this.calculateGridLineId(r,x),L=0;L<x;L++)(c=T(a="DateTimeCategory"!==e.valueType?e.visibleLabels[L]?e.visibleLabels[L].value-b:e.visibleLabels[L-1].value+e.visibleRange.interval-b:e.visibleLabels[L]?e.visibleLabels[L].value-b:e.visibleRange.max,e)*n.width+n.x)>=n.x&&n.x+n.width>=c&&((f(a,e.visibleRange)||this.isBorder(e,L,c))&&(this.chart.redraw&&(this.chart.pointsAdded&&!this.chart.pointsRemoved||this.chart.zoomRedraw)&&e.majorGridLines.width&&0!==L&&e.visible&&!he(this.chart.element.id+"_MajorGridLine_"+o+"_"+L)&&!this.chart.enableCanvas&&(d="M "+(P=this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/x*u:this.seriesClipRect.width+this.seriesClipRect.width/(L||1)*u))+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+P+" "+this.seriesClipRect.y,this.renderGridLine(e,o,d,e.majorGridLines,"_MajorGridLine_",L,this.element,F.majorGridLine,e.majorGridLines.dashArray,w.MajorGridLine&&w.MajorGridLine.ids?w.MajorGridLine.ids[L]:null,!!w.MajorGridLine&&w.MajorGridLine.isPointRemoved),this.rangeAnimate(e,this.element.childNodes[this.element.childNodes.length-1],this.chart.duration,!1,new i.Rect(this.seriesClipRect.x,e.rect.y,this.seriesClipRect.x+this.seriesClipRect.width,this.chart.availableSize.height),!1,L),he(r.id)&&he(r.id).appendChild(this.element.childNodes[this.element.childNodes.length-1])),d="M "+c+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+c+" "+this.seriesClipRect.y,this.renderGridLine(e,o,d,e.majorGridLines,"_MajorGridLine_",L,this.element,F.majorGridLine,e.majorGridLines.dashArray,w.MajorGridLine&&w.MajorGridLine.ids?w.MajorGridLine.ids[L]:null,!!w.MajorGridLine&&w.MajorGridLine.isPointRemoved)),this.chart.redraw&&this.chart.zoomRedraw&&e.majorTickLines.width&&!he(this.chart.element.id+"_MajorTickLine_"+o+"_"+L)&&!this.chart.enableCanvas&&e.visible&&(p="M "+(this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/x*u:this.seriesClipRect.width+this.seriesClipRect.width/(L||1)*u))+" "+(n.y+y+(S?v:0))+" L "+(this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/x*u:this.seriesClipRect.width+this.seriesClipRect.width/(L||1)*u))+" "+C,this.updateAxisElement(e,o,p,L,"_MajorTickLine_",r,!1),he(r.id).appendChild(this.element.childNodes[this.element.childNodes.length-1]),u+=1),p="M "+c+" "+(n.y+y+(S?v:0))+" L "+c+" "+C,this.renderGridLine(e,o,p,e.majorTickLines,"_MajorTickLine_",L,r,F.majorTickLine,null,w.MajorTickLine&&w.MajorTickLine.ids?w.MajorTickLine.ids[L]:null,!!w.MajorTickLine&&w.MajorTickLine.isPointRemoved),e.minorTicksPerInterval>0&&(e.minorGridLines.width>0||e.minorTickLines.width>0)&&(0!==L||!ie(e)||s||h||this.renderMinorGridOnZooming(e,a,n,L,o,F,r),l=this.drawAxisMinorLine(e,a,n,L),this.renderGridLine(e,o,l[0],e.minorGridLines,"_MinorGridLine_",L,this.element,F.minorGridLine,e.minorGridLines.dashArray,w.MinorGridLine&&w.MinorGridLine.ids?w.MinorGridLine.ids[L]:null,!!w.MinorGridLine&&w.MinorGridLine.isPointRemoved),this.renderGridLine(e,o,l[1],e.minorTickLines,"_MinorTickLine_",L,r,F.minorTickLine,null,w.MinorTickLine&&w.MinorTickLine.ids?w.MinorTickLine.ids[L]:null,!!w.MinorTickLine&&w.MinorTickLine.isPointRemoved),L===x-1&&ie(e)&&s&&!h&&this.renderMinorGridOnZooming(e,a+e.visibleRange.interval,n,L,o,F,r)));if(x&&this.previousXLabel>x&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw)for(L=x;L<this.previousXLabel;L++){var P=this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/x*(L-x+1):this.seriesClipRect.width+this.seriesClipRect.width/x*(L-x+1));e.majorGridLines.width&&(d="M "+P+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+P+" "+this.seriesClipRect.y,this.updateAxisElement(e,o,d,L,"_MajorGridLine_",this.element,!0)),e.majorTickLines.width&&(p="M "+P+" "+(n.y+y+(S?v:0))+" L "+P+" "+C,this.updateAxisElement(e,o,p,L,"_MajorTickLine_",r,!0))}},e.prototype.calculateGridLineId=function(e,t){var i=this,o={};return this.chart.pointsRemoved&&["MajorGridLine","MajorTickLine","MinorGridLine","MinorTickLine"].forEach(function(r){for(var n=he(e.id),a=n.querySelectorAll('[id*="_'+r+'_"]'),l=[],s=0;s<a.length;s++)l.push(a[s]);var h="MajorGridLine"===r&&i.chart.chartArea.border.width?t-2:t;if(h="MinorGridLine"===r||"MinorTickLine"===r?t-1:h,l.length>0&&l.length>h){for(var c=l.length,d=0;d<c-h;d++)l[d]&&n.removeChild(l[d]),l.shift();var p=l.map(function(e){var t=e.id.split("_");return parseInt(t[t.length-1],10)});o[r]={ids:p,isPointRemoved:!0}}}),o},e.prototype.renderMinorGridOnZooming=function(e,t,i,o,r,n,a){var l=this.drawAxisMinorLine(e,t,i,o,!0);this.renderGridLine(e,r,l[0],e.minorGridLines,"_MinorGridLine_",-1,this.element,n.minorGridLine,e.minorGridLines.dashArray),this.renderGridLine(e,r,l[1],e.minorTickLines,"_MinorTickLine_",-1,a,n.minorTickLine)},e.prototype.drawAxisMinorLine=function(e,t,i,o,r){var n,a=t,l=0,s=0,h=e.visibleRange,c="Inside"===e.tickPosition,d=[],p=e.isAxisOpposedPosition?-e.minorTickLines.height:e.minorTickLines.height,u=1,g=1,m=c?i.y-p:i.y+p,y=c?i.x+p:i.x-p,v="",b="",x=e.isAxisInverse;if("Logarithmic"===e.valueType&&(g=(n=Math.pow(e.logBase,a-h.interval))+(u=(Math.pow(e.logBase,a)-n)/(e.minorTicksPerInterval+1))),"Horizontal"===e.orientation)for(S=0;S<e.minorTicksPerInterval;S++)a=this.findLogNumeric(e,g,a,o,r),g+=u,f(a,h)&&(s=(a-h.min)/(h.max-h.min),s=Math.ceil((x?1-s:s)*i.width),l=Math.floor(s+i.x),this.chart.enableCanvas?(v=""===v?"M "+l+" "+this.seriesClipRect.y+" L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height):v+" M "+l+" "+this.seriesClipRect.y+" L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height),l=Math.floor(s+i.x),b=""===b?b.concat("M "+l+" "+i.y+" L "+l+" "+(m+e.scrollBarHeight)):b.concat(" M "+l+" "+i.y+" L "+l+" "+(m+e.scrollBarHeight))):(v=v.concat("M "+l+" "+this.seriesClipRect.y+"L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height)),l=Math.floor(s+i.x),b=b.concat("M "+l+" "+i.y+"L "+l+" "+(m+e.scrollBarHeight))));else for(var S=0;S<e.minorTicksPerInterval;S++)f(a=this.findLogNumeric(e,g,a,o,r),h)&&(s=(a-h.min)/(h.max-h.min),s=-1*Math.ceil((x?1-s:s)*i.height),l=Math.floor(s+i.y+i.height),this.chart.enableCanvas?(v=""===v?"M "+this.seriesClipRect.x+" "+l+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l:v+" M "+this.seriesClipRect.x+" "+l+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l,l=Math.floor(s+i.y+i.height),b=""===b?b.concat("M "+i.x+" "+l+" L "+(y-e.scrollBarHeight)+" "+l+" "):b.concat(" M "+i.x+" "+l+" L "+(y-e.scrollBarHeight)+" "+l+" ")):(v=v.concat("M "+this.seriesClipRect.x+" "+l+"L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l+" "),l=Math.floor(s+i.y+i.height),b=b.concat("M "+i.x+" "+l+"L "+(y-e.scrollBarHeight)+" "+l+" "))),g+=u;return d.push(v),d.push(b),d},e.prototype.findLogNumeric=function(e,t,i,o,r){var n,a=e.visibleRange;if("Logarithmic"===e.valueType)i=m(t,e.logBase);else if("DateTime"===e.valueType)n=e.dateTimeInterval/(e.minorTicksPerInterval+1),i=r?i-n:i+n;else if("DateTimeCategory"===e.valueType){var l="BetweenTicks"===e.labelPlacement?.5:0;i+=((e.visibleLabels[o+1]?e.visibleLabels[o+1].value-l:e.visibleRange.max)-(e.visibleLabels[o]?e.visibleLabels[o].value-l:e.visibleRange.min))/(e.minorTicksPerInterval+1)}else n=a.interval/(e.minorTicksPerInterval+1),i=r?i-n:i+n;return i},e.prototype.drawXAxisLabels=function(e,o,r,n){var a,l,s,h,d,p,g,m,y,f,v=this.chart,b=0,x=0,S=0,C=e.labelPadding,F=v.renderer.createGroup({id:v.element.id+"AxisLabels"+o}),w="Inside"===e.labelPosition,L=e.isAxisOpposedPosition,P=e.labelPosition===e.tickPosition?e.majorTickLines.height:0,D=P+C+.5*e.lineStyle.width,k=e.angle%360,R=0===k||-180===k||180===k,E=e.isAxisInverse,_=1,I=E?n.x+n.width:n.x,O=0,z=e.visibleLabels.length,B=e.scrollbarSettings.enable||!w&&t.isNullOrUndefined(e.crossesAt)&&(e.zoomFactor<1||e.zoomPosition>0)?"Top"===e.scrollbarSettings.position||"Bottom"===e.scrollbarSettings.position?0:e.scrollBarHeight:0,N=[],H=!1,W=[],j=new i.Size(0,0);D+=90===k||270===k||-90===k||-270===k?w?5:-5:0;var U=!L&&!w||L&&w,X=he(v.element.id+"AxisLabels"+o),G=this.removeAxisLabelElements(e,X),Y=v.legendModule&&"Right"===v.legendSettings.position&&v.legendModule.legendBounds.height+v.legendModule.legendBounds.y>=e.rect.y?v.legendModule.legendBounds.width:0,Z=U?360>=k&&k>=180||-1>=k&&k>=-180:1<=k&&k<=180||-181>=k&&k>=-360;if(e.labelTemplate){var q=v.element.id+"_XAxisLabelTemplate_Collection";v.xAxisLabelTemplate=t.createElement("div",{id:q})}for(var Q=v.border,$=.5*Q.width,K=v.initialClipRect.x+v.initialClipRect.width-.5*Q.width,J=0,ee=z;J<ee;J++)if(y=e.visibleLabels[J],e.labelTemplate){b=T(y.value,e)*n.width+n.x;var te=y.size.width;m=n.width/ee;var ie=Math.min(te,m);if(0===k&&(b-=ie/2),w&&0!==k?x=L?n.y+D+y.size.height/4:n.y+D-e.maxLabelSize.height:(s=L&&!w||!L&&w?-(D+(0!==k?0:y.size.height))-B:D+B,x=n.y+s-(L&&0!==k?e.maxLabelSize.height+s-y.size.height/4:0)),0===k){var oe=$,re=K,ne=b,ae=ie,le=ne+ae;if("Shift"===e.edgeLabelPlacement){var se=b,ce=m;te>ce&&(te=ce);var de=!E&&0===J||E&&J===ee-1,pe=!E&&J===ee-1||E&&0===J;if(de&&se<$){ge=$-se;se=$+2,m-=ge}else if(pe)if(!E&&se+te>K)m-=ge=se+te-K,(se-=ge+2)<=I&&(se+=me=I-se+2,te-=me);else if(E&&se<$){var ge=$-se;if(se=$+2,m-=ge,se+te>=I){var me=se+te-I+2;se-=me,te-=me}}if(se+te>K&&(te-=ye=se+te-K),se<$){var ye=$-se;se+=ye,te-=ye}b=se,y.size.width=te}else if("Hide"===e.edgeLabelPlacement){var fe=ne<oe,ve=le>re;if(!E&&ne<I||E&&le>I||fe||ve)continue;y.size.width=ae,b=ne}else{if(!E&&ne<I)le=(ne+=be=I-ne)+(ae=Math.max(0,ae-be));else if(E&&le>I){be=le-I;le=ne+(ae=Math.max(0,ae-be))}if(ne<oe){be=oe-ne;le=(ne=oe)+(ae=Math.max(0,ae-be))}if(le>re){var be=le-re;le=ne+(ae=Math.max(0,ae-be))}if(ae<=0)continue;y.size.width=ae,b=ne}}Ke="";if(0!==k){var xe=this.getRotateTemplateStyles(k,y.size.width,y.size.height);b+=xe.x/2,x+=xe.y,(w&&!L||!w&&L)&&(x-=y.size.height),Ke="rotate("+k+"deg)"}var Se=ue(t.createElement("div",{id:v.element.id+e.name+"_AxisLabelTemplate_"+J,styles:"position: absolute; pointer-events:none; cursor: default; white-space: nowrap; z-index:1; left: "+b+"px; top: "+x+"px; width: "+y.size.width+"px; height: "+y.size.height+"px;"}),J,e.labelTemplate,v,y);Se.style.transform=Ke,""===Ke&&(Se.style.overflow="hidden"),Se.style.transformOrigin="0 0",v.xAxisLabelTemplate.appendChild(Se),I=E?b:b+y.size.width}else{f=c(y.originalText)||"Wrap"===e.labelIntersectAction&&y.text.length>1,b=T(y.value,e)*n.width+n.x,l=y.size,e.enableWrap&&(l.height=i.measureText(y.text,e.labelStyle,v.themeStyle.axisLabelFont).height),m=n.width/z,p=f?y.breakLabelSize.width:l.width,O=("Trim"===e.labelIntersectAction||"Wrap"===e.labelIntersectAction)&&0===k&&p>m?m:p,a=l.height/4,b-=f||0!==k?0:O/2,0!==k&&(b-=f?"Left"===e.lineBreakAlignment?y.breakLabelSize.width/2:"Right"===e.lineBreakAlignment?-y.breakLabelSize.width/2:0:-90===k||270===k?-a:90===k||-270===k?a:0),"Far"===e.labelStyle.textAlignment?b=b+O-10:"Near"===e.labelStyle.textAlignment&&(b=b-O+10),f&&"Center"!==e.lineBreakAlignment&&0===k&&(b+="Left"===e.lineBreakAlignment?-O/2:O/2);var Ce=f?R?e.opposedPosition||w?0:l.height:y.breakLabelSize.width/2:0;if(D=f?P+C+.5*e.lineStyle.width:D,w&&k?x=f?L?n.y+D+Ce:n.y-D-Ce:L?n.y+D+a:n.y-D-a:(s=f?U?D+B+(k?Ce:3*a):-(D+B+Ce):U?D+B+(k?1:3)*a:-(D+B+(k?a:y.index>1?2*a:0)),x=n.y+s*y.index),h=f?this.getAnchor(e):v.enableRtl?Z?"":"end":v.isRtlEnabled||Z?"end":"start",d=new i.TextOption(v.element.id+o+"_AxisLabel_"+J,b,x,h),d.id=G&&X&&X.children[J]?X.children[J].id:d.id,0!==k&&(j=u(y.labelStyle,y.originalText,k,v,v.themeStyle.axisLabelFont),g=k<0&&k>-90||k<-180&&k>-270||k>90&&k<180||k>270&&k<360),e.edgeLabelPlacement)switch(e.edgeLabelPlacement){case"None":break;case"Hide":if((0===J||E&&J===ee-1)&&d.x<n.x||(J===ee-1||E&&0===J)&&d.x+(0===k?O:j.width)>n.x+n.width)continue;break;case"Shift":if(J===ee-2&&"MultipleRows"!==e.labelIntersectAction&&(S="start"===h||""===h?d.x+O:"middle"===h?d.x+O/2:d.x),(0===J||E&&J===ee-1)&&(d.x<n.x||0!==k&&g&&d.x<n.x||"Center"===e.lineBreakAlignment&&d.x-y.size.width/y.text.length/2<n.x&&0===k))if(m-=n.x-d.x,""===h||"start"===h)b=d.x<=0?d.x=0:d.x,m=n.width/z;else if(g&&0!==k)m=n.width/z,n.x+m>d.x+j.width?d.x=b=n.x+D:d.x=b=n.x+m-D;else if(f&&"Center"===e.lineBreakAlignment&&"OnTicks"===e.labelPlacement&&0===k){for(var Fe=0,we=0;we<y.text.length;we++){var Le=i.measureText(y.text[we],e.labelStyle,v.themeStyle.axisLabelFont).width;Le>Fe&&(Fe=Le)}d.x=b=n.x+Fe/2}else"start"===h&&d.x>0||(d.x=b=R?n.x:n.x+D);else if((J===ee-1||E&&0===J)&&(d.x+O>v.availableSize.width-v.border.width-Y&&("start"===h||""===h)&&0===k||""===h&&0!==k&&!g&&d.x+j.width>v.availableSize.width-v.border.width-Y||"middle"===h&&0!==k&&!g&&d.x+j.width/2>v.availableSize.width-v.border.width-Y||"end"===h&&0!==k&&!g&&d.x>v.availableSize.width-v.border.width-Y||"end"===h&&d.x>v.availableSize.width-v.border.width-Y&&0===k||"middle"===h&&d.x+O/2>v.availableSize.width-v.border.width-Y&&0===k)){var Pe=0!==k?j.width:O,Ae=void 0;if(Ae="start"===h||""===h?d.x-(d.x+Pe-v.availableSize.width+v.border.width+5+Y):"middle"===h?d.x-(d.x+Pe/2-v.availableSize.width+v.border.width+5+Y):d.x-(d.x-(v.availableSize.width+v.border.width+5+Y)),0!==S&&Ae<S){var Me=v.availableSize.width-S;y.text=ze(Me,y.originalText,e.labelStyle,v.isRtlEnabled,v.themeStyle.axisLabelFont)}else d.x=b=Ae}}d.text=this.getLabelText(y,e,m),d.labelRotation=k;var De=void 0,ke=void 0;if(f&&0===k?"Right"===e.lineBreakAlignment?(De=d.x-O,ke=d.x):"Center"===e.lineBreakAlignment?(De=d.x-O/2,ke=d.x+O/2):(De=d.x,ke=d.x+O):(De=d.x,ke=d.x+O),0!==k||"Hide"!==e.labelIntersectAction||0===J||!(E?ke>=I:De<=I)){if(I=f?"Right"===e.lineBreakAlignment?E?d.x-O:d.x:"Center"===e.lineBreakAlignment?E?d.x-O/2:d.x+O/2:E?d.x:d.x+O:E?d.x:d.x+O,0!==k){var Re=void 0,Te=void 0;if(f){var Ee=0,_e=0;Re=y.breakLabelSize.height,_e=y.breakLabelSize.height-4,"Center"===e.lineBreakAlignment?Ee=-y.breakLabelSize.width/2:"Right"===e.lineBreakAlignment&&(Ee=-y.breakLabelSize.width),U&&(_e=y.breakLabelSize.height/(d.text.length+1)),Te=new i.Rect(d.x+Ee,d.y-_e,y.breakLabelSize.width,Re)}else Re=x-(d.y-y.size.height/2),Te=new i.Rect(d.x,d.y-(y.size.height/2-5),y.size.width,Re);var Ie=this.getRectanglePoints(Te),Oe=f?Te.x+Te.width/2:b,Be=f?Te.y+Te.height/2:x-Re/2;if(d.transform=f?"rotate("+k+","+Oe+","+Be+")":"rotate("+k+","+b+","+x+")",N.push(A(Ie,Oe,Be,k)),H=!1,"None"!==e.labelIntersectAction)for(var Ne=J;Ne>0;Ne--)if(N[J]&&N[Ne-1]&&M(N[J],N[Ne-1])){H=!0,N[J]=null;break}var Ve=k>0&&k<90||k>180&&k<270||k<-90&&k>-180||k<-270&&k>-360,He=new i.Rect(d.x,d.y-(l.height/2+D/2),y.size.width,Re),We=this.getRectanglePoints(He),Ue=[];Ue.push(new mo(Ve?this.chart.availableSize.width:this.padding,e.rect.y)),Ue.push(new mo(Ve?this.chart.availableSize.width:this.padding,e.rect.y+e.maxLabelSize.height)),W.push(A(We,Oe,Be,k));for(var Xe=new i.Rect(0,e.rect.y,this.chart.availableSize.width,2*e.maxLabelSize.height),Ge=0;Ge<W[J].length;Ge++)if(!e.opposedPosition&&!V(W[J][Ge].x,W[J][Ge].y,Xe)&&"string"==typeof d.text){var Ye=this.calculateIntersection(W[J][0],W[J][1],Ue[0],Ue[1]),Ze=Ve?this.chart.availableSize.width-b:b,qe=Ye.y-e.rect.y,Qe=Math.sqrt(Ze*Ze+qe*qe);d.text=ze(Qe,y.text,y.labelStyle,v.enableRtl,v.themeStyle.axisLabelFont)}}if(this.chart.redraw&&(v.pointsAdded&&!v.pointsRemoved||this.chart.zoomRedraw)&&!he(d.id)&&0!==J&&!this.chart.enableCanvas&&e.visible){var $e=d.x;d.x=this.seriesClipRect.x+(v.enableRtl!==e.isInversed?-this.seriesClipRect.width/(J||1)*_:this.seriesClipRect.width+this.seriesClipRect.width/(J||1)*_);var Ke=d.transform;d.transform=k?"rotate("+k+","+d.x+","+parseFloat(d.transform.split(",")[2])+")":"";var Je=je(v.renderer,d,y.labelStyle,y.labelStyle.color||v.themeStyle.axisLabelFont.color,F,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),v.redraw,!0,null,v.duration,null,y.size,H,v.enableCanvas,null,v.themeStyle.axisLabelFont);this.rangeAnimate(e,Je,this.chart.duration,!0,new i.Rect(this.seriesClipRect.x,e.rect.y,this.seriesClipRect.x+this.seriesClipRect.width,this.chart.availableSize.height),!1,J),d.x=$e,d.transform=Ke,_+=1}var et=je(v.renderer,d,y.labelStyle,y.labelStyle.color||v.themeStyle.axisLabelFont.color,F,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),v.redraw,!0,null,v.duration,null,y.size,H,v.enableCanvas,null,v.themeStyle.axisLabelFont,new mo(parseFloat(d.transform.split(",")[1]),parseFloat(d.transform.split(",")[2])));G&&(et.id=v.element.id+o+"_AxisLabel_"+J)}}if(this.previousXLabel&&z&&this.previousXLabel>z&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw&&d.text)for(J=z;J<this.previousXLabel;J++)d.x=this.seriesClipRect.x+(v.enableRtl!==e.isInversed?-this.seriesClipRect.width/z*(J-z+1):this.seriesClipRect.width+this.seriesClipRect.width/z*(J-z+1)),d.id=v.element.id+o+"_AxisLabel_"+J,d.transform=k?"rotate("+k+","+d.x+","+parseFloat(d.transform.split(",")[2])+")":"",this.updateAxisElement(e,o,"",J,"_AxisLabel_",F,!0,d,y);else this.previousXLabel=z;this.chart.enableCanvas||e.labelTemplate||(v.delayRedraw?e.visible&&e.internalVisibility&&this.createZoomingLabel(this.chart,F,e,o,n):r.appendChild(F))},e.prototype.getRotateTemplateStyles=function(e,t,i){var o=e*Math.PI/180,r=[{x:0,y:0},{x:t,y:0},{x:t,y:i},{x:0,y:i}].map(function(e){return{x:e.x*Math.cos(o)-e.y*Math.sin(o),y:e.x*Math.sin(o)+e.y*Math.cos(o)}}),n=-Math.min.apply(Math,r.map(function(e){return e.x})),a=-Math.min.apply(Math,r.map(function(e){return e.y}));return{x:Math.round(100*n)/100,y:Math.round(100*a)/100}},e.prototype.updateAxisElement=function(e,t,o,r,n,a,l,s,h){var c,d=n.indexOf("Grid")>-1,p=n.indexOf("Label")>-1;p?c=je(this.chart.renderer,s,h.labelStyle,h.labelStyle.color||this.chart.themeStyle.axisLabelFont.color,a,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),this.chart.redraw,!0,null,this.chart.duration,null,null,null,this.chart.enableCanvas,null,this.chart.themeStyle.axisLabelFont):(this.renderGridLine(e,t,o,d?e.majorGridLines:e.majorTickLines,n,r,this.element,d?this.chart.themeStyle.majorGridLine:this.chart.themeStyle.majorTickLine,d?e.majorGridLines.dashArray:null),this.element&&a.childNodes&&(c=this.element.childNodes[a.childNodes.length-1])),this.rangeAnimate(e,c,this.chart.duration,p,new i.Rect("Vertical"===e.orientation?0:this.seriesClipRect.x,"Vertical"===e.orientation?this.seriesClipRect.y:e.rect.y,this.seriesClipRect.width,this.seriesClipRect.height),l,r)},e.prototype.removeAxisLabelElements=function(e,t){if(this.chart.pointsRemoved&&t&&t.childNodes.length){var i=!1;if(e.valueType.indexOf("Category")>-1){var o=[];e.visibleLabels.map(function(e){"string"!=typeof e.text?o.push(e.text.join("")):o.push(e.text)});for(var r=t.childNodes.length-1;r>=0;r--){var n=t.childNodes[r];-1===o.indexOf(n.textContent.trim())&&(t.removeChild(n),i=!0)}}else if(t.childNodes.length>e.visibleLabels.length)for(var a=0;a<t.childNodes.length-e.visibleLabels.length;a++)t.removeChild(t.childNodes[a]),i=!0;return i}return!1},e.prototype.calculateIntersection=function(e,t,i,o){var r=i.x-o.x,n=e.x-t.x,a=i.y-o.y,l=e.y-t.y,s=n*a-l*r,h=e.x*t.y-e.y*t.x,c=i.x*o.y-i.y*o.x;return{x:(h*r-n*c)/s,y:(h*a-l*c)/s}},e.prototype.getAnchor=function(e){return"Center"===e.lineBreakAlignment?"middle":this.chart.enableRtl?"Left"===e.lineBreakAlignment?"end":"start":"Left"===e.lineBreakAlignment?"start":"end"},e.prototype.getRectanglePoints=function(e){return[new mo(e.x,e.y),new mo(e.x+e.width,e.y),new mo(e.x+e.width,e.y+e.height),new mo(e.x,e.y+e.height)]},e.prototype.getLabelText=function(e,t,i){if(c(e.originalText)){for(var o=[],r=void 0,n=0;n<e.text.length;n++)r=this.findAxisLabel(t,e.text[n],i),o.push(r);return o}return this.findAxisLabel(t,e.text,i)},e.prototype.drawXAxisBorder=function(e,t,i,o){if(e.border.width>0){for(var r="Outside"===e.labelPosition&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?e.scrollBarHeight:0,n=e.isAxisOpposedPosition,a=void 0,l=o.y+(n?-1:1)*r,s=void 0,h=o.width/e.visibleRange.delta*("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval),c=void 0,d=e.maxLabelSize.height+(e.tickPosition===e.labelPosition?e.majorTickLines.height:0),p="",u="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?-.5:0,g=n&&"Inside"===e.labelPosition||!n&&"Outside"===e.labelPosition?o.y+d+10+r:o.y-d-10-r,m=0,y=e.visibleLabels.length;m<y;m++)switch(s=T(e.visibleLabels[m].value+u,e),s=(e.isAxisInverse?1-s:s)*o.width,"Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?(a=s+o.x,c=s+h+o.x):(a=s-.5*h+o.x,c=s+.5*h+o.x),e.border.type){case"Rectangle":case"WithoutTopBorder":a<o.x&&"OnTicks"!==e.labelPlacement?p+="M "+o.x+" "+g+" L "+c+" "+g+" ":Math.floor(c)>o.width+o.x&&1!==e.visibleLabels.length&&m!==e.visibleLabels.length-1?p+="M "+a+" "+l+" L "+a+" "+g+" L "+(o.width+o.x)+" "+g+" ":(p+="M "+(a=0===m&&"OnTicks"===e.labelPlacement?o.x:a)+" "+l+" L "+a+" "+g+" L "+(c=m===e.visibleLabels.length-1&&"OnTicks"===e.labelPlacement?c-.5*h:c)+" "+g+" ",0===m&&(p+="M "+a+" "+l+" L "+a+" "+g+" M "+a+" "+g+" L "+o.x+" "+g),m===e.visibleLabels.length-1&&(p+="M "+c+" "+l+" L "+c+" "+g+" M "+c+" "+g+" L "+(o.width+o.x)+" "+g));break;case"WithoutTopandBottomBorder":a<o.x||Math.floor(c)>o.width+o.x||(p+="M "+a+" "+l+" L "+a+" "+g+" M "+c+" "+l+" L "+c+" "+g)}""!==(p+="Rectangle"===e.border.type?"M  "+o.x+" "+l+"L "+(o.x+o.width)+" "+l:"")&&this.createAxisBorderElement(e,t,p,i)}for(m=0;m<this.chart.visibleSeries.length;m++)if(this.chart.multiLevelLabelModule&&e.multiLevelLabels.length>0&&this.chart.visibleSeries[m].visible){this.chart.multiLevelLabelModule.renderXAxisMultiLevelLabels(e,t,i,o);break}},e.prototype.createAxisBorderElement=function(e,t,o,r){var n=he(this.chart.element.id+"_BorderLine_"+t),a=n?n.getAttribute("d"):"",l=this.chart.renderer.drawPath(new i.PathOption(this.chart.element.id+"_BorderLine_"+t,"transparent",e.border.width,e.border.color||this.chart.themeStyle.axisLine,1,"",o));l.style.pointerEvents="none",be(this.chart.enableCanvas,r,l,this.chart.redraw,!1,"x","y",null,a,!0,null,null,this.chart.duration)},e.prototype.findAxisLabel=function(e,t,i){return"Trim"===e.labelIntersectAction?e.angle%360!=0||e.enableTrim?t:ze(i,t,e.labelStyle,this.chart.enableRtl,this.chart.themeStyle.axisLabelFont):t},e.prototype.drawXAxisTitle=function(e,o,r,n){if(e.title){var a=this.chart,l=i.measureText(e.title,e.titleStyle,this.chart.themeStyle.axisTitleFont),s=t.isNullOrUndefined(e.crossesAt)&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?e.scrollBarHeight:0,h=("Inside"===e.tickPosition?0:e.majorTickLines.height+e.titlePadding)+("Inside"===e.labelPosition?0:e.maxLabelSize.height+e.multiLevelLabelHeight+e.labelPadding);h="Outside"===e.tickPosition||"Inside"!==e.tickPosition&&"Inside"!==e.labelPosition?h:5===e.titlePadding?h:h+e.titlePadding;var c=e.titleSize.height*(e.titleCollection.length-1);h=e.isAxisOpposedPosition?-(h+l.height/4+s+c):h+3*l.height/4+s;var d=e.titleRotation?e.titleRotation:0,p=void 0,u=n.y+h,g=void 0;"Center"===e.titleStyle.textAlignment?(g="middle",p=n.x+.5*n.width):"Near"===e.titleStyle.textAlignment?(g="start",p=n.x):(g="end",p=n.x+n.width),0!==d&&(u+=e.opposedPosition?-(e.titleSize.height/2+l.height/4):e.titleSize.height/2-l.height/4);var m=new i.TextOption(a.element.id+"_AxisTitle_"+o,p,u,g,e.titleCollection,"rotate("+d+","+p+","+u+")",null,d);je(a.renderer,m,e.titleStyle,e.titleStyle.color||a.themeStyle.axisTitleFont.color,r,null,a.redraw,a.redraw,null,null,null,null,null,a.enableCanvas,null,a.themeStyle.axisTitleFont,new mo(p,u)).setAttribute("aria-hidden","true")}},e.prototype.renderGridLine=function(e,t,o,r,n,a,l,s,h,c,d){void 0===h&&(h=null),void 0===c&&(c=null),void 0===d&&(d=!1);var p,u,g=this.chart;r.width>0&&e.visible&&e.internalVisibility&&o&&(p=(u=he(g.element.id+n+t+"_"+(d?c:a)))?u.getAttribute("d"):null,u=null,this.htmlObject=g.renderer.drawPath(new i.PathOption(g.element.id+n+t+"_"+(d?c:a),"transparent",r.width,r.color||s,null,h,o)),be(g.enableCanvas,l,this.htmlObject,g.redraw,!0,"x","y",null,p,!0,null,null,g.duration),d&&(this.htmlObject.id=g.element.id+n+t+"_"+a))},e.prototype.findParentNode=function(e,t,i){return document.getElementById(e+"AxisGroup"+i+"Inside").contains(document.getElementById(t.id))?document.getElementById(e+"AxisGroup"+i+"Inside"):document.getElementById(e+"AxisGroup"+i+"Outside")},e.prototype.createZoomingLabel=function(e,t,i,o,r){var n=this.findParentNode(e.element.id,t,o);t.setAttribute("opacity","0.3");var a=e.renderer.createGroup({id:e.element.id+"AxisLabels_Zoom"+o});a=B(e,i,a,o,"Vertical"===i.orientation,r),n.replaceChild(t,document.getElementById(t.id)),he(e.element.id+"AxisLabels_Zoom"+o)?n.replaceChild(a,document.getElementById(a.id)):n.appendChild(a)},e}(),Lo=function(){function e(e){this.currentPoints=[],this.previousPoints=[],this.insideRegion=!1,this.commonXvalues=[],this.chart=e,this.lierIndex=0}return e.prototype.getData=function(){for(var e,t,i,o,r=this.chart,n=null,a=null,l=r.visibleSeries.length-1;l>=0;l--){if(a=r.visibleSeries[l],e="Scatter"===a.type||"Scatter"===a.drawType||a.marker.visible?(a.marker.height+5)/2:0,t="Scatter"===a.type||"Scatter"===a.drawType||a.marker.visible?(a.marker.width+5)/2:0,i=r.mouseX,o=r.mouseY,a.dragSettings.enable&&a.isRectSeries)if("Bar"===a.type&&r.isTransposed||!r.isTransposed&&"Bar"!==a.type){var s=a.marker.height/2;o=a.yAxis.isAxisInverse?o-s:o+s}else{var h=a.marker.width/2;i=a.yAxis.isAxisInverse?i+h:i-h}if(a.visible&&V(i,o,a.clipRect,e,t)&&(n=this.getRectPoint(a,a.clipRect,i,o)),n)return new bo(n,a)}return new bo(n,a)},e.prototype.isSelected=function(e){return(e.selectionMode.indexOf("Drag")>-1||e.selectionMode.indexOf("Lasso")>-1)&&e.selectionModule&&null!==e.selectionModule.rectPoints},e.prototype.getRectPoint=function(e,t,i,o){var r,n,a,l,s,h,c=0;if(this.chart.isScrolling)return null;for(var d=0,p=e.points;d<p.length;d++){var u=p[d];if(u.regionData||u.regions&&u.regions.length){if(u.regionData&&"PolarRadar"===this.chart.chartAreaType&&e.drawType.indexOf("Column")>-1&&(r=i-(e.clipRect.width/2+e.clipRect.x),n=o-(e.clipRect.height/2+e.clipRect.y),c=2*Math.PI*(u.regionData.currentXPosition<0?1+u.regionData.currentXPosition:u.regionData.currentXPosition),a=(Math.atan2(n,r)+.5*Math.PI-c)%(2*Math.PI),a=a<0?2*Math.PI+a:a,a+=2*Math.PI*e.chart.primaryXAxis.startAngle,l=u.regionData.startAngle,l-=c,l=l<0?2*Math.PI+l:l,s=u.regionData.endAngle,s-=c,s=s<0?2*Math.PI+s:s,h=Math.sqrt(Math.pow(Math.abs(r),2)+Math.pow(Math.abs(n),2)),a>=l&&a<=s&&(h>=u.regionData.innerRadius&&h<=u.regionData.radius||h<=u.regionData.innerRadius&&h>=u.regionData.radius)&&h<=e.chart.radius))return u;if((e.dragSettings.enable&&e.isRectSeries||e.isRectSeries&&e.marker.visible&&"PolarRadar"!==this.chart.chartAreaType)&&this.isPointInThresholdRegion(i,o,u,t,e))return this.insideRegion=!0,u;if(!this.insideRegion&&this.checkRegionContainsPoint(u.regions,t,i,o))return u;if(this.insideRegion&&this.checkRegionContainsPoint(u.regions,t,i,o))return u}}return null},e.prototype.checkRegionContainsPoint=function(e,t,o,r){var n=this;return e.some(function(e,a){return n.lierIndex=a,V(o,r,new i.Rect(("Cartesian"===n.chart.chartAreaType?t.x:0)+e.x,("Cartesian"===n.chart.chartAreaType?t.y:0)+e.y,e.width,e.height))})},e.prototype.isPointInThresholdRegion=function(e,t,o,r,n){var a,l=this,s="Bar"===n.type,h=n.yAxis.isAxisInverse,c=n.chart.isTransposed,d=0,p=0,u=a=20;return h&&c?s?(d=o.regions[0].height-10,a=o.regions[0].width):(p=-10,u=o.regions[0].height):h||o.yValue<0?s?(p=-10,u=o.regions[0].height):(d=o.regions[0].height-10,a=o.regions[0].width):c?s?(d=-10,a=o.regions[0].width):(p=o.regions[0].width-10,u=o.regions[0].height):s?(p=o.regions[0].width-10,u=o.regions[0].height):(d=-10,a=o.regions[0].width),o.regions.some(function(o){return V(e,t,new i.Rect(("Cartesian"===l.chart.chartAreaType?r.x:0)+o.x+p,("Cartesian"===l.chart.chartAreaType?r.y:0)+o.y+d,a,u))})},e.prototype.getClosest=function(e,t,i){var o,r,n=i||e.xData,a=n.length,l=.5,s=.5;if("DateTime"===e.xAxis.valueType&&1===e.points.length){l=e.xAxis.visibleRange.min,s=e.xAxis.visibleRange.max;for(var h=0;h<e.chart.visibleSeries.length;h++){var c=e.chart.visibleSeries[h];c.xMin>=l&&c.xMin<e.xMin&&(l=c.xMin+.1),c.xMax<=s&&c.xMax>e.xMax&&(s=c.xMax-.1),c.visible&&c.points.length>1&&(c.xMax>=l&&c.xMax<e.xMin&&(l=c.xMax+.1),c.xMin<=s&&c.xMin>e.xMax&&(s=c.xMin-.1))}l!==e.xAxis.visibleRange.min&&(l=Math.abs(e.xMin-l)/2),s!==e.xAxis.visibleRange.max&&(s=Math.abs(e.xMax-s)/2)}if(t>=e.xMin-l&&t<=e.xMax+s)for(var d=0;d<a;d++)r=n[d],(null==o||Math.abs(r-t)<Math.abs(o-t))&&(o=r);return-1!==e.xData.indexOf(o)?o:null},e.prototype.binarySearch=function(e,t){for(var i,o=0,r=t.length,n=-1,a=!1;!1===a&&o<=r;)t[i=Math.floor((o+r)/2)].xValue===e?(a=!0,n=i):t[i].xValue>e?r=i-1:o=i+1;return-1!==n?t[n]:null},e.prototype.getClosestX=function(e,t,i){var o,r=t.clipRect;e.mouseX<=r.x+r.width&&e.mouseX>=r.x&&(o=e.requireInvertedAxis?W(e.mouseY-r.y,r.height,t.xAxis):H(e.mouseX-r.x,r.width,t.xAxis));var n=this.getClosest(t,o,i),a=(n||0===n)&&t.points.length>0?this.binarySearch(n,h(t.points,["xValue"])):null;return a&&a.visible&&"Cartesian"===this.chart.chartAreaType&&("Indicator"===t.category&&"Histogram"===t.name||a.symbolLocations&&a.symbolLocations.length>0&&a.symbolLocations[0].x>=0&&a.symbolLocations[0].x<=r.width)?new bo(a,t):null},e.prototype.mergeXvalues=function(e){if(e.length&&(!this.commonXvalues.length||this.commonXvalues.length!==e[0].xData.length)){this.commonXvalues=e[0].xData;for(var t=1;t<e.length;t++)this.commonXvalues=this.getDistinctValues(this.commonXvalues,e[t].xData)}return this.commonXvalues},e.prototype.commonXValue=function(e){for(var t=[],i=0;i<e.length;i++)for(var o=0;e[i].points&&o<e[i].points.length;o++){var r=e[i].points[o];r&&(0===r.index||r.index===e[i].points.length-1||r.symbolLocations&&r.symbolLocations.length>0)&&t.push(r.xValue)}return t},e.prototype.getDistinctValues=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var i,o={},r=[];for(i=0;i<e.length;i++)o[n=e[i]]||(o[n]=!0,r.push(n));for(i=0;i<t.length;i++){var n=t[i];o[n]||(o[n]=!0,r.push(n))}return r},e.prototype.findMouseValues=function(e,t,i){t.requireInvertedAxis?(i.valueY=(1-T(e.point.xValue,e.series.xAxis))*e.series.xAxis.rect.height+e.series.xAxis.rect.y,i.valueX=t.mouseX,t.crosshair.snapToData&&("BoxAndWhisker"===e.series.type&&e.point.regions.length?i.valueX=e.point.regions[0].x+e.series.clipRect.x:t.tooltip.shared?t.crosshairModule.valueX=e.point.symbolLocations[0].x+e.series.clipRect.x:i.valueX=e.point.symbolLocations[0].x+e.series.clipRect.x)):("PolarRadar"===t.chartAreaType?i.valueX=O(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x:i.valueX="TrendLine"===e.series.category&&t.tooltip.shared?i.valueX:T(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x,i.valueY=t.mouseY,t.crosshair.snapToData&&("BoxAndWhisker"===e.series.type&&e.point.regions.length?i.valueY=e.point.regions[0].y+e.series.clipRect.y:i.valueY=e.point.symbolLocations[0].y+e.series.clipRect.y))},e}(),Po=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ao=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Mo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(!1)],i.prototype,"enable",void 0),Ao([t.Complex({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},ai)],i.prototype,"font",void 0),Ao([t.Property(null)],i.prototype,"background",void 0),Ao([t.Complex({},hi)],i.prototype,"border",void 0),Ao([t.Property("")],i.prototype,"lineColor",void 0),Ao([t.Property(1)],i.prototype,"lineWidth",void 0),Ao([t.Property("")],i.prototype,"dashArray",void 0),Ao([t.Property(5)],i.prototype,"rx",void 0),Ao([t.Property(5)],i.prototype,"ry",void 0),i}(t.ChildProperty),Do=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(!1)],i.prototype,"visible",void 0),Ao([t.Property(!0)],i.prototype,"showZero",void 0),Ao([t.Property(null)],i.prototype,"name",void 0),Ao([t.Property("transparent")],i.prototype,"fill",void 0),Ao([t.Property(null)],i.prototype,"format",void 0),Ao([t.Property(1)],i.prototype,"opacity",void 0),Ao([t.Property(0)],i.prototype,"angle",void 0),Ao([t.Property(!1)],i.prototype,"enableRotation",void 0),Ao([t.Property("Auto")],i.prototype,"position",void 0),Ao([t.Property(5)],i.prototype,"rx",void 0),Ao([t.Property(5)],i.prototype,"ry",void 0),Ao([t.Property("Center")],i.prototype,"alignment",void 0),Ao([t.Complex({width:null,color:null},hi)],i.prototype,"border",void 0),Ao([t.Complex({left:5,right:5,top:5,bottom:5},di)],i.prototype,"margin",void 0),Ao([t.Complex({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},ai)],i.prototype,"font",void 0),Ao([t.Property(null)],i.prototype,"template",void 0),Ao([t.Property("Hide")],i.prototype,"labelIntersectAction",void 0),i}(t.ChildProperty),ko=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(!1)],i.prototype,"visible",void 0),Ao([t.Property(null)],i.prototype,"shape",void 0),Ao([t.Property("")],i.prototype,"imageUrl",void 0),Ao([t.Property(5)],i.prototype,"height",void 0),Ao([t.Property(!1)],i.prototype,"isFilled",void 0),Ao([t.Property(5)],i.prototype,"width",void 0),Ao([t.Complex({width:2,color:null},hi)],i.prototype,"border",void 0),Ao([t.Complex({x:0,y:0},ci)],i.prototype,"offset",void 0),Ao([t.Property(null)],i.prototype,"fill",void 0),Ao([t.Property(!0)],i.prototype,"allowHighlight",void 0),Ao([t.Property(1)],i.prototype,"opacity",void 0),Ao([t.Complex({},Do)],i.prototype,"dataLabel",void 0),i}(t.ChildProperty),Ro=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(null)],i.prototype,"fill",void 0),Ao([t.Property(1)],i.prototype,"width",void 0),Ao([t.Property("0")],i.prototype,"dashArray",void 0),Ao([t.Complex(null,ko)],i.prototype,"marker",void 0),Ao([t.Property(!0)],i.prototype,"showAxis",void 0),i}(t.ChildProperty),To=function(){function e(){this.symbolLocations=null,this.regions=null,this.percentage=null,this.regionData=null,this.isSelect=!1,this.marker={visible:!1},this.isPointInRange=!0,this.verticalError=null,this.verticalNegativeError=null,this.horizontalError=null,this.horizontalNegativeError=null,this.verticalPositiveError=null,this.horizontalPositiveError=null}return e}(),Eo=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new i.Rect(0,0,0,0),t}return Po(o,e),o.prototype.setDataSource=function(e,t){e&&(this.points=e.points),t.trendLineModule.initDataSource(this),t.visibleSeriesCount++},Ao([t.Property("")],o.prototype,"name",void 0),Ao([t.Property("")],o.prototype,"dashArray",void 0),Ao([t.Property(!0)],o.prototype,"visible",void 0),Ao([t.Property("Linear")],o.prototype,"type",void 0),Ao([t.Property(2)],o.prototype,"period",void 0),Ao([t.Property(2)],o.prototype,"polynomialOrder",void 0),Ao([t.Property(0)],o.prototype,"backwardForecast",void 0),Ao([t.Property(0)],o.prototype,"forwardForecast",void 0),Ao([t.Complex({},pi)],o.prototype,"animation",void 0),Ao([t.Complex({},ko)],o.prototype,"marker",void 0),Ao([t.Property(!0)],o.prototype,"enableTooltip",void 0),Ao([t.Property(null)],o.prototype,"intercept",void 0),Ao([t.Property("")],o.prototype,"fill",void 0),Ao([t.Property(1)],o.prototype,"width",void 0),Ao([t.Property("SeriesType")],o.prototype,"legendShape",void 0),Ao([t.Complex({},ri)],o.prototype,"accessibility",void 0),o}(t.ChildProperty),_o=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(1)],i.prototype,"width",void 0),Ao([t.Property(10)],i.prototype,"length",void 0),Ao([t.Property(null)],i.prototype,"color",void 0),Ao([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Io=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(null)],i.prototype,"value",void 0),Ao([t.Property(null)],i.prototype,"color",void 0),Ao([t.Property("0")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),Oo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Po(i,e),Ao([t.Property(!1)],i.prototype,"visible",void 0),Ao([t.Property("Fixed")],i.prototype,"type",void 0),Ao([t.Property("Both")],i.prototype,"direction",void 0),Ao([t.Property("Vertical")],i.prototype,"mode",void 0),Ao([t.Property(null)],i.prototype,"color",void 0),Ao([t.Property(1)],i.prototype,"verticalError",void 0),Ao([t.Property(1)],i.prototype,"width",void 0),Ao([t.Property(1)],i.prototype,"horizontalError",void 0),Ao([t.Property(3)],i.prototype,"verticalPositiveError",void 0),Ao([t.Property(3)],i.prototype,"verticalNegativeError",void 0),Ao([t.Property(1)],i.prototype,"horizontalPositiveError",void 0),Ao([t.Property(1)],i.prototype,"horizontalNegativeError",void 0),Ao([t.Complex(null,_o)],i.prototype,"errorBarCap",void 0),Ao([t.Property("")],i.prototype,"errorBarColorMapping",void 0),i}(t.ChildProperty),zo=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.rangeColorPoints=[],t.isAdvancedColor=void 0,t.currentViewData=[],t.clipRect=new i.Rect(0,0,0,0),t.seriesType="XY",t.isRectTypeSeries=!1,t.removedPointIndex=null,t.isLegendClicked=!1,t}return Po(r,e),r.prototype.processJsonData=function(){var e=0,i=new To,o=this instanceof Bo&&"Histogram"===this.type?"x":this.xName,r=this instanceof Bo&&this.marker.dataLabel.name?this.marker.dataLabel.name:"";this instanceof Bo&&("Waterfall"!==this.type&&"Histogram"!==this.type||(this.currentViewData=this.chart[U(this.type)+"SeriesModule"].processInternalData(t.extend([],this.currentViewData,null,!0),this)),"Pareto"===this.category&&(this.currentViewData=t.extend([],this.currentViewData,null,!0),"Line"===this.type&&(this.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(this.currentViewData,this))),this.isRectTypeSeries=this.type.indexOf("Column")>-1||this.type.indexOf("Bar")>-1||this.type.indexOf("Histogram")>-1);var n=(this.currentViewData||[]).length;if(this.points=[],this.xMin=1/0,this.xMax=-1/0,this.yMin=1/0,this.yMax=-1/0,this.sizeMax=-1/0,this.getSeriesType(),"Category"===this.xAxis.valueType)for(;e<n;)this.pushCategoryPoint(i,e,r,o),e++;else if(this.xAxis.valueType.indexOf("DateTime")>-1)for(var a={skeleton:"full",type:"dateTime"},l=this.chart.intl.getDateParser(a),s=this.chart.intl.getDateFormat(a);e<n;)this.pushDateTimePoint(i,e,r,o,l,s),e++;else for(;e<n;)this.pushDoublePoint(i,e,r,o),e++;this.updateSplineValue(),this.updateYAxisForErrorBars(),this instanceof Bo&&"Waterfall"===this.type&&t.isNullOrUndefined(this.yAxis.minimum)&&(this.yMin=Math.min.apply(Math,this.chart.waterfallSeriesModule.cumulativeSums))},r.prototype.updateYAxisForErrorBars=function(){if(this instanceof Bo&&this.chart.errorBarModule){var e=void 0,i=void 0;if(this.errorBar.verticalError)for(var o=0;o<this.points.length;o++){for(var r=[],n=[],a=0;a<this.points.length;a++){var l=this.points[a];l.verticalError&&(r.push(l.verticalError),n.push(l.yValue-l.verticalError))}e=r&&r.length>0?Math.max.apply(Math,r):0,i=r&&r.length>0?Math.min.apply(Math,n):0}this.yMax+=!isNaN(e)&&t.isNullOrUndefined(this.yAxis.maximum)?e:0,this.yMin=!isNaN(i)&&i<this.yMin&&i<0&&t.isNullOrUndefined(this.yAxis.minimum)?i:this.yMin}},r.prototype.pushCategoryPoint=function(e,t,i,o){e=this.dataPoint(t,i,o),this.pushCategoryData(e,t,e.x),this.pushData(e,t),this.setEmptyPoint(e,t),this.rangeColorsInterior(e)},r.prototype.pushDoublePoint=function(e,t,i,o){(e=this.dataPoint(t,i,o)).xValue=e.x,this.pushData(e,t),this.setEmptyPoint(e,t)},r.prototype.pushDateTimePoint=function(e,i,r,n,a,l){e=this.dataPoint(i,r,n),t.isNullOrUndefined(e.x)||""===e.x?e.visible=!1:(e.x=new Date(o.DataUtil.parse.parseJson({val:e.x}).val),"DateTime"===this.xAxis.valueType?e.xValue=Date.parse(e.x.toString()):this.pushCategoryData(e,i,Date.parse(a(l(e.x))).toString()),this.pushData(e,i),this.setEmptyPoint(e,i))},r.prototype.updateSplineValue=function(){if(this instanceof Bo&&(!this.chart.stockChart||"DateTimeCategory"!==this.xAxis.valueType)){if(this.type.indexOf("Spline")>-1||this.drawType.indexOf("Spline")>-1&&"PolarRadar"===this.chart.chartAreaType){var e=this.type.indexOf("Area")>-1||this.drawType.indexOf("Area")>-1,t=this.type.indexOf("Range")>-1;this.chart["spline"+(e?t?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(this)}else this.type.indexOf("Histogram")>-1&&(this.xAxis.maximum||this.xAxis.minimum)&&this.chart.histogramSeriesModule.calculateBinValues(this);this.type.indexOf("Histogram")>-1&&1===this.points.length&&(this.xMin=this.xMin-this.histogramValues.binWidth,this.xMax=this.xMax+this.histogramValues.binWidth)}},r.prototype.rangeColorsInterior=function(e){this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&1===this.chart.visibleSeries.length&&("Column"===this.chart.series[0].type||"Bar"===this.chart.series[0].type||"Scatter"===this.chart.series[0].type||"Bubble"===this.chart.series[0].type)&&(this.rangeColorPoints[e.interior]?void 0!==this.rangeColorPoints[e.interior]&&this.rangeColorPoints[e.interior].push(e):this.rangeColorPoints[e.interior]=[])},r.prototype.pushData=function(e,t){e.index=t,e.yValue=e.y,e.series=this,this.xMin=Math.min(this.xMin,e.xValue),this.xMax=Math.max(this.xMax,e.xValue),this.xData.push(e.xValue)},r.prototype.dataPoint=function(e,i,o){this.points[e]=new To;var r=this.points[e],n=this.currentViewData[e],a=this.enableComplexProperty?t.getValue:this.getObjectValue;r.x=a(o,n);var l=this.yAxis.valueType.indexOf("DateTime")>-1;return r.high=l?new Date(a(this.high,n)):a(this.high,n),r.low=l?new Date(a(this.low,n)):a(this.low,n),r.open=l?new Date(a(this.open,n)):a(this.open,n),r.close=l?new Date(a(this.close,n)):a(this.close,n),r.volume=l?new Date(a(this.volume,n)):a(this.volume,n),r.interior=a(this.pointColorMapping,n),this instanceof Bo&&(this.errorBar.visible&&(r.errorBarColor=a(this.errorBar.errorBarColorMapping,n),r.verticalError="string"==typeof this.errorBar.verticalError?a(this.errorBar.verticalError,n):this.errorBar.verticalError,r.horizontalError="string"==typeof this.errorBar.horizontalError?a(this.errorBar.horizontalError,n):this.errorBar.horizontalError,r.verticalNegativeError="string"==typeof this.errorBar.verticalNegativeError?a(this.errorBar.verticalNegativeError,n):this.errorBar.verticalNegativeError,r.verticalPositiveError="string"==typeof this.errorBar.verticalPositiveError?a(this.errorBar.verticalPositiveError,n):this.errorBar.verticalPositiveError,r.horizontalNegativeError="string"==typeof this.errorBar.horizontalNegativeError?a(this.errorBar.horizontalNegativeError,n):this.errorBar.horizontalNegativeError,r.horizontalPositiveError="string"==typeof this.errorBar.horizontalPositiveError?a(this.errorBar.horizontalPositiveError,n):this.errorBar.horizontalPositiveError),r.y=l?new Date(a(this.yName,n)):a(this.yName,n),r.size=a(this.size,n),r.text=a(i,n),r.tooltip=a(this.tooltipMappingName,n),this.isAdvancedColorSupported()&&(this.rangeColorName=this.colorName.length>0?this.colorName:this.yName,r.colorValue=a(this.rangeColorName,n),r.interior=this.getPointFillColor(r.interior,r.colorValue))),r},r.prototype.isAdvancedColorSupported=function(){return t.isNullOrUndefined(this.isAdvancedColor)&&(this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&("Column"===this.chart.series[0].type||"Bar"===this.chart.series[0].type||"Scatter"===this.chart.series[0].type||"Bubble"===this.chart.series[0].type)?this.isAdvancedColor=!0:this.isAdvancedColor=!1),this.isAdvancedColor},r.prototype.getPointFillColor=function(e,t){var i=e;if(t&&this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0)for(var o=0,r=this.chart.rangeColorSettings;o<r.length;o++){var n=r[o];t>=n.start&&t<=n.end&&(i=n.colors.length>1?$e(n,t):n.colors[0])}return i},r.prototype.getObjectValue=function(e,t){return t[e]},r.prototype.setEmptyPoint=function(e,i){if(!this.findVisibility(e))return e.visible=!0,null;switch(e.isEmpty=!0,this instanceof Bo&&e.isPointInRange?this.emptyPointSettings.mode:"Drop"){case"Zero":e.visible=!0,this instanceof Bo&&this.seriesType.indexOf("HighLow")>-1?(e.high=e.low=0,this.seriesType.indexOf("HighLowOpenClose")>-1&&(e.open=e.close=0)):e.y=e.yValue=this.yData[i]=0;break;case"Average":this instanceof Bo&&(this.seriesType.indexOf("HighLow")>-1?(e.high=t.isNullOrUndefined(e.high)||isNaN(+e.high)?this.getAverage(this.high,i):e.high,e.low=t.isNullOrUndefined(e.low)||isNaN(+e.low)?this.getAverage(this.low,i):e.low,this.seriesType.indexOf("HighLowOpenClose")>-1&&(e.open=t.isNullOrUndefined(e.open)||isNaN(+e.open)?this.getAverage(this.open,i):e.open,e.close=t.isNullOrUndefined(e.close)||isNaN(+e.close)?this.getAverage(this.close,i):e.close)):e.y=e.yValue=this.yData[i]=this.getAverage(this.yName,i)),e.visible=!0;break;case"Drop":case"Gap":this.yData[i]=null,e.visible=!1}},r.prototype.findVisibility=function(e){var i,o=this instanceof Bo?this.seriesType:"HighLowOpenClose",r=this.yAxis.minimum,n=this.yAxis.maximum;switch(o){case"XY":return"PolarRadar"===this.chart.chartAreaType&&(!t.isNullOrUndefined(r)&&e.yValue<r||!t.isNullOrUndefined(n)&&e.yValue>n)?(e.isPointInRange=!1,!0):(this.setXYMinMax(e.yValue),this.yData.push(e.yValue),this instanceof Bo&&"Bubble"===this.type&&(this.sizeMax=Math.max(this.sizeMax,t.isNullOrUndefined(e.size)||isNaN(+e.size)?this.sizeMax:e.size)),t.isNullOrUndefined(e.x)||t.isNullOrUndefined(e.y)||isNaN(+e.y));case"HighLow":return this.setHiloMinMax(e.high,e.low),t.isNullOrUndefined(e.x)||t.isNullOrUndefined(e.low)||isNaN(+e.low)||t.isNullOrUndefined(e.high)||isNaN(+e.high);case"HighLowOpenClose":return this.setHiloMinMax(e.high,e.low),t.isNullOrUndefined(e.x)||t.isNullOrUndefined(e.low)||isNaN(+e.low)||t.isNullOrUndefined(e.open)||isNaN(+e.open)||t.isNullOrUndefined(e.close)||isNaN(+e.close)||t.isNullOrUndefined(e.high)||isNaN(+e.high);case"BoxPlot":return i=(e.y||[null]).filter(function(e){return!t.isNullOrUndefined(e)&&!isNaN(e)}).sort(function(e,t){return e-t}),e.y=i,this.yMin=Math.min(this.yMin,Math.min.apply(Math,i)),this.yMax=Math.max(this.yMax,Math.max.apply(Math,i)),!i.length}},r.prototype.setXYMinMax=function(e){var i,o="Logarithmic"===this.yAxis.valueType||"Logarithmic"===this.xAxis.valueType,r=e<0||"None"===this.yAxis.rangePadding;i=this.isRectTypeSeries&&!te(this.yAxis)?o?e:r?e:0:e,this.yMin=o?Math.min(this.yMin,t.isNullOrUndefined(i)||isNaN(i)||0===i||"0"===i.toString()||""===i.toString()?this.yMin:i):Math.min(this.yMin,t.isNullOrUndefined(i)||isNaN(i)?this.yMin:i),this.yMax=Math.max(this.yMax,t.isNullOrUndefined(e)||isNaN(e)?this.yMax:e)},r.prototype.setHiloMinMax=function(e,i){this.yMin=Math.min(this.yMin,Math.min(t.isNullOrUndefined(i)||isNaN(i)?this.yMin:i,t.isNullOrUndefined(e)||isNaN(e)?this.yMin:e)),this.yMax=Math.max(this.yMax,Math.max(t.isNullOrUndefined(i)||isNaN(i)?this.yMax:i,t.isNullOrUndefined(e)||isNaN(e)?this.yMax:e))},r.prototype.getSeriesType=function(){var e;if(this instanceof Bo){var t="PolarRadar"===this.chart.chartAreaType?this.drawType:this.type;if(t)switch(t){case"RangeColumn":case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"Hilo":e="HighLow";break;case"HiloOpenClose":case"Candle":e="HighLowOpenClose";break;case"BoxAndWhisker":e="BoxPlot";break;default:e="XY"}}this.seriesType=e},r.prototype.pushCategoryData=function(e,t,i){if(!this.chart.tooltip.shared&&!this.visible)return null;this.xAxis.isIndexed?(this.xAxis.labels[t]?this.xAxis.labels[t]+=", "+i:this.xAxis.labels.push(i),e.xValue=t):(void 0===this.xAxis.indexLabels[i]&&(this.xAxis.indexLabels[i]=this.xAxis.labels.length,this.xAxis.labels.push(i)),e.xValue=this.xAxis.indexLabels[i])},r.prototype.getAverage=function(e,t,i){return void 0===i&&(i=this.currentViewData),((i[t-1]?i[t-1][e]||0:0)+(i[t+1]?i[t+1][e]||0:0))/2},r.prototype.refreshDataManager=function(e){var i=this;this.chart=e;var r;if(!((r=e.isAngular?Object.keys(this.dataSource).length?this.dataSource:e.dataSource:this.dataSource||e.dataSource)instanceof o.DataManager)&&t.isNullOrUndefined(this.query))return void this.dataManagerSuccess({result:r,count:r.length},!1);this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(e){return i.dataManagerSuccess(e)})},r.prototype.dataManagerSuccess=function(e,t){if(void 0===t&&(t=!0),this.currentViewData=e.count?e.result:[],this.chart.allowServerDataBinding=!1,this instanceof Bo){this.chart.stockChart&&(this.chart.stockChart.series[this.index].localData=this.currentViewData);var i={name:"seriesRender",series:this,data:this.currentViewData,fill:this.interior};this.chart.trigger("seriesRender",i),this.interior=i.fill,this.currentViewData=i.data}!this.chart.stockChart||this instanceof Bo||(this.currentViewData=this.chart.stockChart.findCurrentData(this.chart.stockChart.series[0].localData,this.chart.stockChart.series[0].xName)),this.processJsonData(),this.recordsCount=e.count,this.refreshChart(t)},r.prototype.refreshChart=function(e){var t=this.chart;if(this instanceof Bo&&(t.visibleSeriesCount+=e?1:0),t.refreshTechnicalIndicator(this),this instanceof Bo&&"TrendLine"!==this.category)for(var i=0,o=this.trendlines;i<o.length;i++)o[i].setDataSource(this,t);t.visibleSeries.length===t.visibleSeriesCount&&(t.refreshBound(),t.trigger("loaded",{chart:t}),this.chart.stockChart&&this.chart.stockChart.initialRender&&(this.chart.stockChart.initialRender=!1,this.chart.stockChart.stockChartDataManagerSuccess())),this instanceof Bo&&(t.visibleSeriesCount+=e?0:1)},Ao([t.Property("")],r.prototype,"xName",void 0),Ao([t.Property("")],r.prototype,"colorName",void 0),Ao([t.Property("")],r.prototype,"high",void 0),Ao([t.Property("")],r.prototype,"low",void 0),Ao([t.Property("")],r.prototype,"open",void 0),Ao([t.Property("")],r.prototype,"close",void 0),Ao([t.Property("")],r.prototype,"volume",void 0),Ao([t.Property("")],r.prototype,"pointColorMapping",void 0),Ao([t.Property(!0)],r.prototype,"visible",void 0),Ao([t.Property(null)],r.prototype,"xAxisName",void 0),Ao([t.Property(null)],r.prototype,"yAxisName",void 0),Ao([t.Complex(null,pi)],r.prototype,"animation",void 0),Ao([t.Property(null)],r.prototype,"fill",void 0),Ao([t.Property(1)],r.prototype,"width",void 0),Ao([t.Property("")],r.prototype,"dashArray",void 0),Ao([t.Property("")],r.prototype,"dataSource",void 0),Ao([t.Property()],r.prototype,"query",void 0),Ao([t.Collection([],Io)],r.prototype,"segments",void 0),Ao([t.Property("X")],r.prototype,"segmentAxis",void 0),Ao([t.Property(!1)],r.prototype,"enableComplexProperty",void 0),r}(t.ChildProperty),Bo=function(e){function o(t,i,o,r){var n=e.call(this,t,i,o,r)||this;return n.visibleSeriesCount=0,n.category="Series",n.isRectSeries=!1,n.drawPoints=[],n.lowDrawPoints=[],n.delayedAnimation=!1,n.rangeColorName=n.colorName.length>0?n.colorName:n.yName,n.currentData=[],n}return Po(o,e),o.prototype.refreshAxisLabel=function(){if(-1===this.xAxis.valueType.indexOf("Category"))return null;this.xAxis.labels=[],this.xAxis.indexLabels={};for(var e={skeleton:"full",type:"dateTime"},t=this.chart.intl.getDateParser(e),i=this.chart.intl.getDateFormat(e),o=0,r=this.xAxis.series;o<r.length;o++){var n=r[o];if(n.visible&&"TrendLine"!==n.category){n.xMin=1/0,n.xMax=-1/0;for(var a=0,l=n.points;a<l.length;a++){var s=l[a];n.pushCategoryData(s,s.index,"DateTimeCategory"===this.xAxis.valueType?Date.parse(t(i(s.x))).toString():s.x),n.xMin=Math.min(n.xMin,s.xValue),n.xMax=Math.max(n.xMax,s.xValue)}}}},o.prototype.findSeriesCollection=function(e,t,i){for(var o=[],r=0,n=t.axes;r<n.length;r++)for(var a=0,l=n[r].series;a<l.length;a++)for(var s=l[a],h=0,c=e.axes;h<c.length;h++)for(var d=0,p=c[h].series;d<p.length;d++){var u=p[d];u===s&&u.visible&&this.rectSeriesInChart(u,i)&&o.push(u)}return o},o.prototype.rectSeriesInChart=function(e,t){var i=e.type.toLowerCase();return-1!==i.indexOf("column")||-1!==i.indexOf("bar")||-1!==i.indexOf("histogram")||-1!==i.indexOf("hiloopenclose")||-1!==i.indexOf("candle")||-1!==i.indexOf("pareto")||-1!==i.indexOf("hilo")||-1!==e.drawType.indexOf("Column")||-1!==i.indexOf("waterfall")||-1!==i.indexOf("boxandwhisker")||t},o.prototype.calculateStackedValue=function(e,t){for(var i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.calculateStackingValues(this.findSeriesCollection(r,l,!0),e)}},o.prototype.calculateStackingValues=function(e,t){var i,o,r,n,a,l=[],s=[],h=[],c=[];t&&(c=this.findFrequencies(e));for(var p=[],u=[],g=0;g<e.length;g++)p[(C=e[g]).stackingGroup]?void 0!==p[C.stackingGroup]&&p[C.stackingGroup].push(C):(p[C.stackingGroup]=[],p[C.stackingGroup].push(C));for(var m=Object.keys(p),y=0;y<m.length;y++){for(var f=[],v=[],b=p[m[y]],x=0,S=b;x<S.length;x++){var C=S[x];if(-1!==C.type.indexOf("Stacking")||-1!==C.drawType.indexOf("Stacking")&&"PolarRadar"===C.chart.chartAreaType){r=-1!==C.type.indexOf("StackingArea")?"StackingArea100":-1!==C.type.indexOf("StackingLine")?"StackingLine100":C.stackingGroup,-1!==C.type.indexOf("100")?(t=!0,c=[],c=this.findFrequencies(b)):t=!1,s[r]||(s[r]=[],h[r]=[]),l=C.yData,i=[],o=[],f.push(C);for(var F=0,w=(u=d(C)).length;F<w;F++)n=0,a=+l[F],void 0===s[r][u[F].xValue]&&(s[r][u[F].xValue]=0),void 0===h[r][u[F].xValue]&&(h[r][u[F].xValue]=0),t?(a=a/c[r][u[F].xValue]*100,a=isNaN(a)?0:a,u[F].percentage=+a.toFixed(2)):v[F]=v[F]?v[F]+Math.abs(a):Math.abs(a),a>=0?(n=s[r][u[F].xValue],s[r][u[F].xValue]+=a):(n=h[r][u[F].xValue],h[r][u[F].xValue]+=a),i.push(n),o.push(a+n),t&&o[F]>100&&(o[F]=100);C.stackedValues=new ho(i,o);var L="Logarithmic"===C.yAxis.valueType,P=-1!==C.type.indexOf("Column")||-1!==C.type.indexOf("Bar");C.yMin=L&&P&&C.yMin<1?C.yMin:C.yAxis.startFromZero&&"Auto"===C.yAxis.rangePadding&&C.yMin>=0?0:parseFloat(Math.min.apply(0,t?i:o).toFixed(10)),C.yMax=Math.max.apply(0,o),C.yMin>Math.min.apply(0,o)&&(C.yMin=t?-100:L&&P&&C.yMin<1?C.yMin:Math.min.apply(0,o)),C.yMax<Math.max.apply(0,i)&&(C.yMax=0)}}this.findPercentageOfStacking(f,v,t)}},o.prototype.findPercentageOfStacking=function(e,t,i){for(var o=0,r=e;o<r.length;o++){var n=r[o];if(i)return null;for(var a=0,l=d(n);a<l.length;a++){var s=l[a];s.percentage=Math.abs(+(s.y/t[s.index]*100).toFixed(2))}}},o.prototype.findFrequencies=function(e){for(var t,i=[],o=[],r=0,n=e;r<n.length;r++){var a=n[r];if(a.yAxis.isStack100=-1!==a.type.indexOf("100"),o=d(a),-1!==a.type.indexOf("Stacking")){i[t=-1!==a.type.indexOf("StackingArea")?"StackingArea100":-1!==a.type.indexOf("StackingLine")?"StackingLine100":a.stackingGroup]||(i[t]=[]);for(var l=0,s=o.length;l<s;l++)void 0===i[t][o[l].xValue]&&(i[t][o[l].xValue]=0),a.yData[l]>0?i[t][o[l].xValue]+=a.yData[l]:i[t][o[l].xValue]-=a.yData[l]}}return i},o.prototype.renderSeries=function(e){if(this.chart.stockChart&&"DateTimeCategory"===this.xAxis.valueType){for(var t=0;t<this.points.length;t++){var i=this.xAxis.labels.indexOf(Date.parse(this.points[t].x.toString()).toString());this.points[t].xValue=i,e.series.length>1&&(this.xData[t]=i,this.xMin=this.xMin>i?i:this.xMin,this.xMax=this.xMax<i?i:this.xMax)}if(this instanceof o&&this.type.indexOf("Spline")>-1){var r=this.type.indexOf("Area")>-1,n=this.type.indexOf("Range")>-1;this.chart["spline"+(r?n?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(this)}}var a=U(this.type);e[(a=a.replace("100",""))+"SeriesModule"]&&("Indicator"!==this.category&&"TrendLine"!==this.category&&this.createSeriesElements(e),this.visiblePoints=d(this),this.chart.enableCanvas?(this.chart.canvasRender.ctx.save(),this.chart.canvasRender.ctx.beginPath(),e.requireInvertedAxis?this.chart.canvasRender.ctx.rect(this.yAxis.rect.x,this.xAxis.rect.y,this.yAxis.rect.width,this.xAxis.rect.height):this.chart.canvasRender.ctx.rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),this.chart.canvasRender.ctx.clip(),e[a+"SeriesModule"].render(this,this.xAxis,this.yAxis,e.requireInvertedAxis),this.chart.canvasRender.ctx.restore()):e[a+"SeriesModule"].render(this,this.xAxis,this.yAxis,e.requireInvertedAxis),"Indicator"!==this.category&&(this.errorBar.visible&&this.chart.errorBarModule.render(this),this.marker.dataLabel.visible&&(this.chart.enableCanvas?(this.chart.canvasRender.ctx.save(),this.chart.canvasRender.ctx.beginPath(),e.requireInvertedAxis?this.chart.canvasRender.ctx.rect(this.yAxis.rect.x,this.xAxis.rect.y,this.yAxis.rect.width,this.xAxis.rect.height):this.chart.canvasRender.ctx.rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),this.chart.canvasRender.ctx.clip(),e.dataLabelModule.render(this,this.chart,this.marker.dataLabel),this.chart.canvasRender.ctx.restore()):e.dataLabelModule.render(this,this.chart,this.marker.dataLabel)),!this.chart.enableCanvas&&this.lastValueLabel.enable&&e.lastValueLabelModule.render(this,this.chart,this.lastValueLabel),this.appendSeriesElement(e.seriesElements,e)),this.chart.enableCanvas||this.performAnimation(e,a,this.errorBar,this.marker,this.marker.dataLabel))},o.prototype.createSeriesElements=function(e){if("Indicator"!==this.category){var t=e.element.id,i=this.marker.border.width+8+5,o="Bubble"===this.type||"Scatter"===this.type||!this.marker.visible&&e.tooltip.shared&&e.enableCanvas?e.svgRenderer:e.renderer,r=void 0===this.index?this.category:this.index,n=void 0,a=void 0,l=void 0;if("Scatter"===this.type||"Scatter"===this.drawType?(n=(this.marker.height+i)/2,a=(this.marker.width+i)/2):(n=0,a=0),"PolarRadar"===e.chartAreaType){var s="Scatter"===this.drawType?Math.max(this.marker.width,this.marker.height):0;l=new uo(t+"_ChartSeriesClipRect_"+r,"transparent",{width:1,color:"Gray"},1,this.clipRect.width/2+this.clipRect.x,this.clipRect.height/2+this.clipRect.y,e.radius+s),this.clipRectElement=J(e.redraw,l,o,"drawCircularClipPath")}else l=new co(t+"_ChartSeriesClipRect_"+r,"transparent",{width:1,color:"Gray"},1,{x:0===this.xAxis.columnIndex?-a:0,y:this.yAxis.rowIndex===e.rows.length-1?-n:0,width:this.clipRect.width+(this.xAxis.columnIndex===e.columns.length-1?2*a:a),height:this.clipRect.height+(0===this.yAxis.rowIndex?2*n:n)}),this.clipRectElement=J(e.redraw,l,o);var h="Cartesian"===e.chartAreaType?"translate("+this.clipRect.x+","+this.clipRect.y+")":"";this.symbolElement=null,this.seriesElement=o.createGroup({id:t+"SeriesGroup"+r,transform:h,"clip-path":"url(#"+t+"_ChartSeriesClipRect_"+r+")"}),this.seriesElement&&(this.seriesElement.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.seriesElement.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.seriesElement.style.outline="none",this.seriesElement.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.name+","+this.type+" series with "+this.points.length+" data points"),this.seriesElement.setAttribute("aria-hidden","false")),this.chart.enableCanvas&&"Bubble"!==this.type||(this.seriesElement.setAttribute("tabindex",this.accessibility.focusable?0===r?"0":this.checkTabindex(e.visibleSeries,r)?"":String(this.accessibility.tabIndex):"-1"),this.seriesElement.style.outline="none",this.seriesElement.appendChild(this.clipRectElement))}},o.prototype.checkTabindex=function(e,t){for(var i=0;i<t;i++)if(e[i].visible)return!0;return!1},o.prototype.appendSeriesElement=function(e,t){var i=this.marker,o=i.dataLabel,r=this.lastValueLabel,n=t.redraw;"TrendLine"!==this.category&&(be(t.enableCanvas,t.seriesElements,this.seriesElement,n),this.errorBar.visible&&("PolarRadar"===t.chartAreaType?be(t.enableCanvas,t.seriesElements,this.seriesElement,n):be(t.enableCanvas,t.seriesElements,this.errorBarElement,n))),i.visible&&("Cartesian"===t.chartAreaType||"Scatter"!==this.drawType&&"PolarRadar"===t.chartAreaType)&&"Scatter"!==this.type&&"Bubble"!==this.type&&"Candle"!==this.type&&"Hilo"!==this.type&&"HiloOpenClose"!==this.type&&this.symbolElement&&be(t.enableCanvas,t.seriesElements,this.symbolElement,n),o.visible&&this.textElement&&(be(t.enableCanvas,t.dataLabelElements,this.shapeElement,n),be(t.enableCanvas,t.dataLabelElements,this.textElement,n)),!t.enableCanvas&&t.dataLabelElements.hasChildNodes()&&t.seriesElements.appendChild(t.dataLabelElements),r.enable&&this.lastValueLabelElement&&be(t.enableCanvas,t.lastValueLabelElements,this.lastValueLabelElement,n)},o.prototype.performAnimation=function(e,i,o,r,n){!(this.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)||!e.animateSeries||e.stockChart&&e.stockChart.isStockChartRendered||(e[i+"SeriesModule"].doAnimation(this),o.visible&&e.errorBarModule.doErrorBarAnimation(this),r.visible&&(this.isRectSeries||"Line"===this.type||"Polar"===this.type||"Radar"===this.type)&&e.markerRender.doMarkerAnimation(this),n.visible&&"edge"!==t.Browser.info.name&&!t.Browser.isIE&&e.dataLabelModule.doDataLabelAnimation(this))},o.prototype.setPointColor=function(e,t){return t=e.interior||t,e.isEmpty?this.emptyPointSettings.fill||t:t},o.prototype.setBorderColor=function(e,t){return t.width=e.isEmpty?this.emptyPointSettings.border.width||t.width:t.width,t.color=e.isEmpty?this.emptyPointSettings.border.color||t.color:t.color,t},o.prototype.addPoint=function(e,o){var r=this.yMin,n=this.yMax;if(this.removeTrackballElements(),this.dataSource.push(e),"Radar"===this.type||"Polar"===this.type)return this.chart.refresh();if("Histogram"===this.type){this.currentViewData=this.chart[U(this.type)+"SeriesModule"].processInternalData(t.extend([],this.dataSource,null,!0),this);for(c=0;c<this.currentViewData.length;c++)this.updatePoint(c)}else{this.currentViewData=this.dataSource;var a=0===this.points.length?0:this.points[this.points.length-1].index+1;this.updatePoint(a)}if("Pareto"===this.category){var l=t.extend([],this.dataSource,null,!0),s=this.chart.visibleSeries[this.index+this.chart.series.length];s.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(l,this);for(c=0;c<s.currentViewData.length;c++)s.points[c]||s.updatePoint(c),s.points[c].y=s.points[c].yValue=s.currentViewData[c][s.yName]}this.visiblePoints.push(this.points[this.points.length-1]),this.updateSplineValue(),this.chart.calculateStackValues(),this.chart.redraw=this.chart.enableAnimation;var h=this.chart.duration;if(this.chart.duration=t.isNullOrUndefined(o)?500:o,this.chart.animateSeries=!1,this.chart.pointsAdded=!0,this.chart.enableAnimation&&!this.isRectSeries&&"Bubble"!==this.type&&"Scatter"!==this.type&&-1===this.type.indexOf("step")&&this.marker&&this.marker.visible&&this.visible)for(var c=this.points.length-2;c>=0;c--)if(this.points[c]&&!t.isNullOrUndefined(this.points[this.points.length-2].y)&&this.points[c].symbolLocations&&void 0!==this.points[c].symbolLocations[0]){this.chart.markerRender.renderMarker(this,this.points[this.points.length-2],this.points[c].symbolLocations[0],null,!0);break}this.yMin>=r&&this.yMax<=n&&(te(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new i.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis()),this.chart.pointsAdded=!1,this.updateSeries(!0,!1)),(this.yMin<r||this.yMax>n)&&(this.updateChartAxis(),this.chart.pointsAdded=!1,this.updateSeries(!0,!0)),this.chart.redraw=!1,this.chart.duration=h},o.prototype.removePoint=function(e,o){var r=t.extend([],this.dataSource,null,!0),n=this.chart.duration;if(r.length>0&&e>=0&&e<r.length){if(r.splice(e,1),this.dataSource.splice(e,1),this.removeTrackballElements(e),"Radar"===this.type||"Polar"===this.type)return this.chart.refresh();if(this.chart.redraw=this.chart.enableAnimation,this.chart.animateSeries=!1,this.chart.pointsAdded=!0,this.chart.duration=t.isNullOrUndefined(o)?500:o,"Histogram"===this.type){var a=this.points.length;this.points=[],this.visiblePoints=[],this.currentViewData=this.chart[U(this.type)+"SeriesModule"].processInternalData(t.extend([],this.dataSource,null,!0),this);for(c=0;c<this.currentViewData.length;c++)this.updatePoint(c);a>this.points.length&&(this.removedPointIndex=e)}else this.removedPointIndex=e,this.points.splice(e,1),this.visiblePoints.splice(e,1);this.yData=[],this.xData=[];var l=this.yMin,s=this.yMax;this.yMin=1/0,this.xMin=1/0,this.yMax=-1/0,this.xMax=-1/0,this.xAxis.valueType.indexOf("Category")>-1&&(this.xAxis.labels=[],this.xAxis.indexLabels={}),0===e&&(this.chart.pointsRemoved=this.chart.enableAnimation);for(c=0;c<this.points.length;c++)this.updatePointsAfterRemoval(c);if("Pareto"===this.category){var h=this.chart.visibleSeries[this.index+this.chart.series.length];h.yMin=1/0,h.xMin=1/0,h.yMax=-1/0,h.xMax=-1/0,h.points.splice(e,1),h.visiblePoints.splice(e,1),h.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(this.dataSource,this);for(var c=0;c<h.currentViewData.length;c++)h.points[c].y=h.points[c].yValue=h.currentViewData[c][h.yName],h.updatePointsAfterRemoval(c)}this.updateSplineValue(),this.chart.calculateStackValues(),te(this.xAxis)||s!==this.yMax||l!==this.yMin?(s<this.yMax||l>this.yMin||s>this.yMax||l<this.yMin)&&(this.updateChartAxis(),this.createSeriesElements(this.chart),this.chart.pointsAdded=!1,this.updateSeries(!0,!0)):(this.xAxis.baseModule.calculateRangeAndInterval(new i.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis(),this.createSeriesElements(this.chart),this.chart.pointsAdded=!1,this.updateSeries(!0,!1))}be(this.chart.enableCanvas,this.chart.seriesElements,this.seriesElement,!0),this.chart.redraw=!1,this.chart.duration=n,this.chart.pointsRemoved=!1,this.removedPointIndex=null},o.prototype.updatePointsAfterRemoval=function(e){var t=this.points[e],i={skeleton:"full",type:"dateTime"},o=this.chart.intl.getDateParser(i),r=this.chart.intl.getDateFormat(i);"Category"===this.xAxis.valueType?this.pushCategoryData(t,e,t.x):"DateTimeCategory"===this.xAxis.valueType&&1===this.chart.series.length&&this.pushCategoryData(t,e,Date.parse(o(r(t.x))).toString()),this.pushData(t,e),this.setEmptyPoint(this.points[e],e)},o.prototype.removeTrackballElements=function(e){if(this.marker.visible)if(void 0!==e){var t=this.chart.element.id+"_Series_"+this.index+"_Point_"+e+"_Trackball_",i=he(t+"0");i&&i.remove();var o=he(t+"1");o&&o.remove(),(s=he(this.chart.element.id+"_Series_"+this.index+"_Point_"+e+"_Symbol"))&&s.setAttribute("visibility","visible")}else{var r=this.chart.element.id+"_EJ2-Trackball_Series_"+this.index+"_Point_",n=document.querySelectorAll('[class*="'+r+'"]');if(n[0]){var a=n[0].id.match(/_Point_(\d+)_/),l=a?parseInt(a[1],10):null;n[0].remove();var s=he(this.chart.element.id+"_Series_"+this.index+"_Point_"+l+"_Symbol");s&&s.setAttribute("visibility","visible")}n[1]&&n[1].remove()}if(this.chart.tooltip.enable){this.chart.tooltipModule.previousPoints=[];var h=he(this.chart.element.id+"_tooltip");h&&h.remove()}},o.prototype.setData=function(e,o){var r=this;if(!e)return null;this.currentViewData=null;var n=[];if(this.dataSource.length===e.length)for(y=0;y<e.length;y++)if(e[y][this.xName]instanceof Date?n.push(e[y][this.xName].getTime()):n.push(e[y][this.xName]),this.currentData.length<this.dataSource.length){var a=t.extend([],this.dataSource,null,!0);a[y][this.xName]instanceof Date?this.currentData.push(a[y][this.xName].getTime()):this.currentData.push(a[y][this.xName])}var l=n.every(function(e){return-1!==r.currentData.indexOf(e)});this.currentViewData&&(l=!0);var s=!1,h=this.yMin,c=this.yMax;this.yMin=1/0,this.yMax=-1/0;var d=[];this.chart.dataLabelCollections=[],this.chart.rotatedDataLabelCollections=[];var p=!1,u=null;if(this.dataSource.length===e.length&&"Radar"!==this.type&&"Polar"!==this.type&&l)if(p=!0,this.yData=[],"Histogram"===this.type&&this.dataSource.length===e.length){var g=this.chart[U(this.type)+"SeriesModule"].processInternalData(t.extend([],e,null,!0),this);this.currentViewData=g;for(var m=0;m<g.length;m++)this.updatePoint(m)}else for(var y=0;y<e.length;y++){var f=e[y][this.xName];this.dataSource[y][this.xName];e[y][this.xName]instanceof Date&&(f=e[y][this.xName].getTime(),this.dataSource[y][this.xName].getTime()),this.currentData[y]!==f&&(s=!0);var v=this.points[y],b=this.enableComplexProperty?t.getValue:this.getObjectValue,x=this.dataSource[y],S=e[y];"XY"===this.seriesType||"BoxPlot"===this.seriesType?(v.y=b(this.yName,S),"Bubble"===this.type&&x[this.size]!==S[this.size]&&(v.size=b(this.size,S)),d.push(y)):x[this.high]===S[this.high]&&x[this.low]===S[this.low]&&x[this.open]===S[this.open]&&x[this.close]===S[this.close]&&x[this.volume]===S[this.volume]||(v.high=b(this.high,S),v.low=b(this.low,S),v.open=b(this.open,S),v.close=b(this.close,S),v.volume=b(this.volume,S),d.push(y)),v.yValue=v.y,v.x=b(this.xName,S),this.currentViewData||(v.index="DateTime"===this.xAxis.valueType&&"number"!=typeof v.x?this.currentData.indexOf(v.x.getTime()):this.currentData.indexOf(v.x)),("Category"===this.xAxis.valueType||"DateTimeCategory"===this.xAxis.valueType)&&y<this.xAxis.visibleLabels.length&&(this.xAxis.visibleLabels[y].value=n.indexOf(this.currentData[y*this.xAxis.visibleRange.interval]),this.xAxis.labels[y]=String(n[y])),this.setEmptyPoint(v,y),this.dataSource[y]=e[y]}if(p){this.chart.redraw=this.chart.enableAnimation,this.chart.animateSeries=!1,this.chart.pointsAdded=!0;var C=this.chart.duration;if(this.chart.duration=t.isNullOrUndefined(o)?500:o,-1!==this.type.indexOf("Stacking")&&this.chart.calculateStackValues(),this.updateSplineValue(),c===this.yMax&&h===this.yMin&&this.visible)this.chart.pointsAdded=!1,this.chart[U("Pareto"===this.category?"Column":this.type.replace("100",""))+"SeriesModule"].updateDirection(this,d,this.chart.requireInvertedAxis),this.lastValueLabel.enable&&this.chart.lastValueLabelModule&&(this.chart.lastValueLabelCollections=[],this.chart.lastValueLabelModule.render(this,this.chart,this.lastValueLabel,!0),this.lastValueLabelElement&&be(this.chart.enableCanvas,this.chart.lastValueLabelElements,this.lastValueLabelElement,!0)),this.chart.annotationModule&&this.chart.annotationModule.renderAnnotations(he(this.chart.element.id+"_Secondary_Element")),!te(this.xAxis)&&s&&this.xAxis.updateAxis();else if((c<this.yMax||h>this.yMin||c>this.yMax||h<this.yMin)&&this.visible){var F=this.yAxis.maxLabelSize.width;this.yAxis.baseModule.calculateRangeAndInterval(new i.Size(this.chart.availableSize.width,this.yAxis.rect.height),this.yAxis),F<this.yAxis.maxLabelSize.width?(this.chart.calculateBounds(),this.chart.axisCollections.forEach(function(e){te(e)||e.updateAxis()}),this.chart.chartAxisLayoutPanel.drawPaneLines(this.chart),this.chart.renderAreaBorder()):(te(this.yAxis)||this.yAxis.updateAxis(),!te(this.xAxis)&&s&&this.xAxis.updateAxis(),"Histogram"!==this.type||te(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new i.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis())),this.chart.pointsAdded=!1,s&&(this.chart[U("Pareto"===this.category?"Column":this.type.replace("100",""))+"SeriesModule"].updateDirection(this,d,this.chart.requireInvertedAxis),u=this.index),this.updateSeries(!1,!0,u),this.chart.stripLineModule&&this.chart.stripLineModule.renderStripLine(this.chart,"Behind",this.chart.axisCollections)}this.chart.redraw=!1,this.chart.pointsRemoved=!1,this.chart.duration=C}else this.dataSource=e},o.prototype.updateChartAxis=function(){var e=this.yAxis.maxLabelSize.width;this.yAxis.baseModule.calculateRangeAndInterval(new i.Size(this.chart.availableSize.width,this.yAxis.rect.height),this.yAxis),e<this.yAxis.maxLabelSize.width?(this.chart.calculateBounds(),this.chart.axisCollections.forEach(function(e){te(e)||e.updateAxis()}),this.chart.chartAxisLayoutPanel.drawPaneLines(this.chart),this.chart.renderAreaBorder()):(te(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new i.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis()),te(this.yAxis)||this.yAxis.updateAxis()),this.chart.stripLineModule&&this.chart.stripLineModule.renderStripLine(this.chart,"Behind",this.chart.axisCollections)},o.prototype.updateSeries=function(e,t,i){var o=[];e&&t?new Set(this.xAxis.series.concat(this.yAxis.series)).forEach(function(e){o.push(e)}):o=e?this.xAxis.series.slice():this.yAxis.series.slice();for(var r=0,n=o;r<n.length;r++){var a=n[r];if(a.visible&&a.index!==i){j(a,this.chart.enableCanvas);var l="translate("+this.clipRect.x+","+this.clipRect.y+")";a.seriesElement.setAttribute("transform",l),a.chart[U(a.type.replace("100",""))+"SeriesModule"].render(a,a.xAxis,a.yAxis,a.chart.requireInvertedAxis,a.chart.enableAnimation),a.marker.visible&&"Cartesian"===a.chart.chartAreaType&&"Scatter"!==a.type&&"Bubble"!==a.type&&"Candle"!==a.type&&"Hilo"!==a.type&&"HiloOpenClose"!==a.type&&a.symbolElement&&(a.symbolElement.setAttribute("transform",l),be(a.chart.enableCanvas,a.chart.seriesElements,a.symbolElement,!0)),a.marker.dataLabel.visible&&a.chart.dataLabelModule&&(a.chart.dataLabelCollections=[],a.chart.dataLabelModule.render(a,a.chart,a.marker.dataLabel),a.textElement&&(a.shapeElement&&a.shapeElement.setAttribute("transform",l),be(a.chart.enableCanvas,a.chart.dataLabelElements,a.shapeElement,!0),a.textElement.setAttribute("transform",l),be(a.chart.enableCanvas,a.chart.dataLabelElements,a.textElement,!0))),a.lastValueLabel.enable&&a.chart.lastValueLabelModule&&(a.chart.lastValueLabelCollections=[],a.chart.lastValueLabelModule.render(a,a.chart,a.lastValueLabel,!0),a.lastValueLabelElement&&be(a.chart.enableCanvas,a.chart.lastValueLabelElements,a.lastValueLabelElement,!0)),a.chart.annotationModule&&a.chart.annotationModule.renderAnnotations(he(a.chart.element.id+"_Secondary_Element"))}}},o.prototype.updatePoint=function(e){var t=new To,i=this instanceof o&&this.marker.dataLabel.name?this.marker.dataLabel.name:"",r=this instanceof o&&"Histogram"===this.type?"x":this.xName;if("Category"===this.xAxis.valueType)this.pushCategoryPoint(t,e,i,r);else if(this.xAxis.valueType.indexOf("DateTime")>-1){var n=this.points[e],a={skeleton:"full",type:"dateTime"},l=this.chart.intl.getDateParser(a),s=this.chart.intl.getDateFormat(a);this.pushDateTimePoint(n,e,i,r,l,s)}else this.pushDoublePoint(t,e,i,r)},o.prototype.formatAccessibilityDescription=function(e,t){return t.accessibility.accessibilityDescriptionFormat.replace("${series.name}",t&&t.name?t.name:"").replace("${point.x}",e&&e.x?e.x.toString():"").replace("${point.y}",e&&e.y?e.y.toString():"").replace("${point.high}",e&&e.high?e.high.toString():"").replace("${point.low}",e&&e.low?e.low.toString():"").replace("${point.close}",e&&e.close?e.close.toString():"").replace("${point.open}",e&&e.open?e.open.toString():"").replace("${point.maximum}",e&&e.maximum?e.maximum.toString():"").replace("${point.minimum}",e&&e.minimum?e.minimum.toString():"").replace("${point.median}",e&&e.median?e.median.toString():"").replace("${point.lowerQuartile}",e&&e.lowerQuartile?e.lowerQuartile.toString():"").replace("${point.upperQuartile}",e&&e.upperQuartile?e.upperQuartile.toString():"")},Ao([t.Property("")],o.prototype,"name",void 0),Ao([t.Property("")],o.prototype,"yName",void 0),Ao([t.Property("Line")],o.prototype,"drawType",void 0),Ao([t.Property(!0)],o.prototype,"isClosed",void 0),Ao([t.Property(null)],o.prototype,"bearFillColor",void 0),Ao([t.Property(null)],o.prototype,"bullFillColor",void 0),Ao([t.Property(!1)],o.prototype,"enableSolidCandles",void 0),Ao([t.Property("")],o.prototype,"size",void 0),Ao([t.Property(null)],o.prototype,"binInterval",void 0),Ao([t.Property(!1)],o.prototype,"showNormalDistribution",void 0),Ao([t.Property("")],o.prototype,"stackingGroup",void 0),Ao([t.Complex({color:null,width:0},hi)],o.prototype,"border",void 0),Ao([t.Complex({},Mo)],o.prototype,"lastValueLabel",void 0),Ao([t.Property(1)],o.prototype,"opacity",void 0),Ao([t.Property(0)],o.prototype,"zOrder",void 0),Ao([t.Property("")],o.prototype,"groupName",void 0),Ao([t.Property("Line")],o.prototype,"type",void 0),Ao([t.Complex(null,Oo)],o.prototype,"errorBar",void 0),Ao([t.Complex(null,ko)],o.prototype,"marker",void 0),Ao([t.Complex(null,Ro)],o.prototype,"paretoOptions",void 0),Ao([t.Complex({},Ci)],o.prototype,"dragSettings",void 0),Ao([t.Collection([],Eo)],o.prototype,"trendlines",void 0),Ao([t.Property(!0)],o.prototype,"enableTooltip",void 0),Ao([t.Property(!0)],o.prototype,"showNearestTooltip",void 0),Ao([t.Property("")],o.prototype,"tooltipFormat",void 0),Ao([t.Property("")],o.prototype,"tooltipMappingName",void 0),Ao([t.Property("SeriesType")],o.prototype,"legendShape",void 0),Ao([t.Property("")],o.prototype,"legendImageUrl",void 0),Ao([t.Property(null)],o.prototype,"selectionStyle",void 0),Ao([t.Property(null)],o.prototype,"unSelectedStyle",void 0),Ao([t.Property(null)],o.prototype,"nonHighlightStyle",void 0),Ao([t.Property(1)],o.prototype,"minRadius",void 0),Ao([t.Property(3)],o.prototype,"maxRadius",void 0),Ao([t.Property("Natural")],o.prototype,"splineType",void 0),Ao([t.Property(.5)],o.prototype,"cardinalSplineTension",void 0),Ao([t.Complex(null,gi)],o.prototype,"emptyPointSettings",void 0),Ao([t.Property(!0)],o.prototype,"showMean",void 0),Ao([t.Property("Normal")],o.prototype,"boxPlotMode",void 0),Ao([t.Property(!0)],o.prototype,"showOutliers",void 0),Ao([t.Property(null)],o.prototype,"columnWidth",void 0),Ao([t.Property(null)],o.prototype,"columnWidthInPixel",void 0),Ao([t.Property("Rectangle")],o.prototype,"columnFacet",void 0),Ao([t.Property(0)],o.prototype,"columnSpacing",void 0),Ao([t.Property("#C64E4A")],o.prototype,"negativeFillColor",void 0),Ao([t.Property("#4E81BC")],o.prototype,"summaryFillColor",void 0),Ao([t.Property()],o.prototype,"intermediateSumIndexes",void 0),Ao([t.Property()],o.prototype,"sumIndexes",void 0),Ao([t.Property("Left")],o.prototype,"step",void 0),Ao([t.Property(!1)],o.prototype,"noRisers",void 0),Ao([t.Complex({},ni)],o.prototype,"accessibility",void 0),Ao([t.Complex({color:"black",width:2},ii)],o.prototype,"connector",void 0),Ao([t.Complex(null,yi)],o.prototype,"cornerRadius",void 0),o}(zo),No=function(){function e(e,t){this.initDataManager(e,t)}return e.prototype.initDataManager=function(e,t){this.dataManager=e instanceof o.DataManager?e:new o.DataManager(e),this.query=t instanceof o.Query?t:new o.Query},e.prototype.generateQuery=function(){return this.query.clone()},e.prototype.getData=function(e){var t=this;if(this.dataManager.ready){var i=new o.Deferred;return this.dataManager.ready.then(function(){t.dataManager.executeQuery(e).then(function(e){i.resolve(e)})}).catch(function(e){i.reject(e)}),i.promise}return this.dataManager.executeQuery(e)},e}(),Vo=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ho=function(e){function o(t){var i=e.call(this,t)||this;return i.elementId=t.element.id,i.commonXvalues=[],i}return Vo(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler))},o.prototype.mouseUpHandler=function(){var e=this.chart;!e.isTouch||e.crosshair.enable||this.isSelected(e)||this.chart.zoomModule&&he(this.elementId+"_ZoomArea")||this.markerMove(!0)},o.prototype.mouseMoveHandler=function(){var e=this.chart;"None"===e.highlightMode&&!e.tooltip.enable||e.isTouch&&!e.startMove||this.isSelected(e)||this.chart.zoomModule&&(he(this.elementId+"_ZoomArea")||this.chart.zoomModule.startPanning)||this.markerMove(!1)},o.prototype.markerMove=function(e){var i=this,o=this.chart;this.currentPoints=[];var r,n,a,l;if(o.tooltip.shared&&o.tooltip.enable){if(!V(o.mouseX,o.mouseY,o.chartAxisLayoutPanel.seriesClipRect))return null;if(o.tooltip.enable){var s="PolarRadar"===o.chartAreaType?this.getData():null;if(this.chart.tooltip.showNearestPoint)for(var h=0,c=o.visibleSeries;h<c.length;h++){var d=c[h];d.enableTooltip&&"Indicator"!==d.category&&("Cartesian"===o.chartAreaType&&d.visible?r=this.getClosestX(o,d,this.commonXValue(this.chart.visibleSeries)):"PolarRadar"===o.chartAreaType&&d.visible&&null!==s.point&&(r=new bo(d.points[s.point.index],d)),r&&(this.currentPoints.push(r),r=null))}else this.currentPoints=this.chart.tooltipModule.currentPoints}}else r=this.getData(),l=r.series,n=this.previousPoints[0],a=l&&("Bubble"===l.type||"Scatter"===l.drawType||"Scatter"===l.type||"Candle"!==l.type&&"Hilo"!==l.type&&"HiloOpenClose"!==l.type&&l.marker.visible&&0!==l.marker.width&&0!==l.marker.height),r.lierIndex=this.lierIndex,r.point&&a&&(!n||n.point!==r.point||n&&n.lierIndex>3&&n.lierIndex!==this.lierIndex)&&this.currentPoints.push(r),r.point&&a&&o.isPointMouseDown&&this.currentPoints.push(r),0!==this.currentPoints.length||!r.point||a||t.isNullOrUndefined(n)||n.point===r.point||(this.removeHighlightedMarker(n.series,n.point),this.previousPoints=t.extend([],r,null,!0)),o.tooltip.showNearestTooltip&&this.chart.tooltipModule&&this.chart.tooltipModule.currentPoints&&(a||"Pareto"===l.type&&l.paretoOptions.marker.visible)&&0===this.currentPoints.length&&V(o.mouseX,o.mouseY,o.chartAxisLayoutPanel.seriesClipRect)&&(this.currentPoints=this.chart.tooltipModule.currentPoints);var p=this.previousPoints.length;if((this.currentPoints.length>0||p>0&&o.tooltip.shared)&&(0===p||o.isPointMouseDown||p>0&&(0===this.currentPoints.length||this.previousPoints[0].point!==this.currentPoints[0].point))){if(p>0)for(var u=0,g=this.previousPoints;u<g.length;u++){var m=g[u];t.isNullOrUndefined(m)||this.removeHighlightedMarker(m.series,m.point)}for(var y=this,f=0,v=this.currentPoints;f<v.length;f++)!function(e){(e&&e.point||"Candle"!==l.type&&"Hilo"!==l.type&&"HiloOpenClose"!==l.type)&&(Fe(y.markerExplode),y.isRemove=!0,e.point.symbolLocations.map(function(t,o){!e.series.marker.allowHighlight||e.series.isRectSeries&&!e.point.marker.visible||i.drawTrackBall(e.series,e.point,t,o)}))}(v[f]);this.previousPoints=t.extend([],this.currentPoints,null,!0)}o.tooltip.enable||!(0===this.currentPoints.length&&this.isRemove||e&&this.isRemove)&&V(o.mouseX,o.mouseY,o.chartAxisLayoutPanel.seriesClipRect)||(this.isRemove=!1,t.isNullOrUndefined(this.previousPoints[0])||(this.markerExplode=+setTimeout(function(){i.previousPoints[0]&&i.removeHighlightedMarker(i.previousPoints[0].series,i.previousPoints[0].point)},2e3))),this.currentPoints=[]},o.prototype.animationDuration=function(){var e=200;return this.chart.maxPointCount>100?e=10:this.chart.maxPointCount>50&&(e=100),e},o.prototype.drawTrackBall=function(e,o,r,n){var a,l=o.marker,s=e.marker,h=l.shape||s.shape||"Circle";if("None"===h||"Image"===h)return null;var c,d=e.symbolElement||e.seriesElement;this.chart.highlightModule&&"None"!==this.chart.highlightMode&&(c=this.chart.highlightModule.generateStyle(e)),this.chart.selectionModule&&"None"!==this.chart.selectionMode&&(c=this.chart.selectionModule.generateStyle(e));var p=this.elementId+"_Series_"+e.index+"_Point_"+o.index+"_Trackball"+(n||"");he(p+"_1")&&he(p+"_1").getAttribute("e-animate")&&(t.Animation.stop(he(p+"_1")),t.remove(he(p+"_1")));var u=new i.Size((l.width||s.width)+3,(l.height||s.height)+3),g=l.border||e.border,m="BoxAndWhisker"===e.type||"Bubble"===e.type||"Scatter"===e.type,y=g.color&&"transparent"!==g.color?g.color:l.fill||o.interior||(m?o.color:e.interior),f=ke(Re(y)),v=l.border?l.border.width:s.border.width,b=e.chart.themeStyle.markerShadow||"rgba("+f.r+","+f.g+","+f.b+",0.2)",x=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+o.index+"_Symbol");if(t.isNullOrUndefined(x)||x.setAttribute("visibility","visible"),this.chart.enableCanvas){var S=document.getElementById(this.chart.element.id+"_Secondary_Element");(a=this.chart.svgRenderer.createSvg({id:this.chart.element.id+"_trackball_svg",width:this.chart.availableSize.width,height:this.chart.availableSize.height})).style.cssText="position: absolute; display:block; pointer-events: none",S.appendChild(a)}for(var C=0;C<2;C++){var F=new i.PathOption(p+"_"+C,C?l.fill||o.color||(m?e.interior:"#ffffff"):"transparent",v+(C?0:8),C?y:b,l.opacity||s.opacity,e.marker.border.dashArray,""),w=ne(r,h,u,l.imageUrl,F,"",this.chart.svgRenderer,e.clipRect);w.setAttribute("class",this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+o.index);var L=-1!==d.id.indexOf("Symbol")?"_Symbol":"",P=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+o.index+L);""===c||t.isNullOrUndefined(c)||t.isNullOrUndefined(P)||!P.hasAttribute("class")||c!==P.getAttribute("class")||w.classList.add(c),w.setAttribute("clip-path",d.getAttribute("clip-path")),w.setAttribute("transform",d.getAttribute("transform")),this.chart.enableCanvas?a.appendChild(w):this.chart.svgObject.appendChild(w),o.symbolLocations.length>1&&e.marker.visible&&"Bubble"!==e.type&&"Scatter"!==e.type&&this.trackballAnimate(w,0,this.animationDuration(),e,o.index,r,!1,!1)}o.symbolLocations.length<2&&e.marker.visible&&this.doAnimation(e,o,!1)},o.prototype.doAnimation=function(e,t,i){if(void 0===i&&(i=!1),"Bubble"!==e.type&&"Scatter"!==e.type)for(var o=this.animationDuration(),r=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+t.index),n=0,a=r.length;n<a;n++)this.trackballAnimate(r[n],0,o,e,t.index,t.symbolLocations[0],!1,i)},o.prototype.trackballAnimate=function(e,i,o,r,n,a,l,s,h){var c=a.x,d=a.y,p="Polar"!==r.type&&"Radar"!==r.type?r.clipRect.x:0,u="Polar"!==r.type&&"Radar"!==r.type?r.clipRect.y:0,g=e.getAttribute("transform"),m=r.marker.width/(r.marker.width+3),y=r.marker.height/(r.marker.height+3),f=Math.min(m,y);h||e.setAttribute("transform","translate("+(c+p)+" "+(d+u)+") scale("+f+") translate("+-c+" "+-d+")"),new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(i){if(i.element.style.animation="",i.timeStamp>i.delay){if(!r.visible&&h)return void t.remove(e);var o=i.timeStamp/i.duration,n=h?Math.max(f,1-(1-f)*o):Math.min(1,f+(1-f)*o);e.setAttribute("transform","translate("+(c+p)+" "+(d+u)+") scale("+n+") translate("+-c+" "+-d+")")}},end:function(){e.style.visibility="",e.setAttribute("transform",g),l||n!==r.points.length-1||r.chart.trigger("animationComplete",{series:r}),(h||s)&&t.remove(e)}})},o.prototype.removeHighlightedMarker=function(e,i,o){if(void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=!1),t.isNullOrUndefined(e)||t.isNullOrUndefined(i))for(var r=0,n=e.points;r<n.length;r++)for(var a=n[r],l=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+a.index),s=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+a.index+"_Symbol"),h=0,c=l.length;h<c;h++)t.isNullOrUndefined(s)||s.setAttribute("visibility","visible"),t.remove(l[0]);else{var s=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+i.index+"_Symbol"),d=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+i.index);0===d.length&&((l=document.querySelectorAll('[class*="'+this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+i.index+'"]'))[1]&&l[1].remove(),l[0]&&l[0].remove());for(h=d.length-1;h>=0;h--)(!e.marker.visible||d[h]&&"0"===d[h].id[d[h].id.length-1]||"Scatter"===e.type)&&t.remove(d[h]);for(h=d.length-1;h>=0;h--)d[h]&&"1"===d[h].id[d[h].id.length-1]&&"Bubble"!==e.type&&"Scatter"!==e.type&&e.marker.visible&&(d[h].setAttribute("opacity",s?s.getAttribute("opacity"):d[h].getAttribute("opacity")),this.trackballAnimate(d[h],0,this.animationDuration(),e,i.index,i.symbolLocations[h],null,null,!0));t.isNullOrUndefined(s)||s.setAttribute("visibility","visible")}o&&(this.previousPoints=[])},o}(Lo),Wo=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),jo=["Circle","Triangle","Diamond","Rectangle","Pentagon","InvertedTriangle","VerticalLine","Cross","Plus","HorizontalLine","Star"],Uo=function(e){function o(t){var i=e.call(this,t)||this;return i.addEventListener(),i}return Wo(o,e),o.prototype.render=function(e){var t=this,i=e.chart.redraw;this.createElement(e,i);for(var o=0,r=e.points;o<r.length;o++)!function(o){o.visible&&o.symbolLocations&&o.symbolLocations.length&&o.symbolLocations.map(function(r,n){if("Cartesian"===e.chart.chartAreaType&&(!e.isRectSeries||e.type.indexOf("Column")>-1)&&-1===e.type.indexOf("100")&&-1===e.type.indexOf("Range")){var a=e.chart.axisCollections.filter(function(t){return e.chart.isTransposed?"Horizontal"===t.orientation:"Vertical"===t.orientation}).some(function(e){var t=e.actualRange;if("Logarithmic"===e.valueType){var i=m(o.yValue,e.logBase);return isFinite(i)&&i>=t.min&&i<=t.max}return o.yValue>=t.min&&o.yValue<=t.max});"None"!==e.marker.shape&&a&&t.renderMarker(e,o,r,n,i)}else"None"!==e.marker.shape&&t.renderMarker(e,o,r,n,i)})}(r[o])},o.prototype.renderMarker=function(e,o,r,n,a){var l=void 0===e.index?e.category:e.index,s=e.marker;e.marker.shape=e.marker.shape?e.marker.shape:jo[l%10];var h,c,d,p,u={color:s.border.color,width:s.border.width},g=s.border.color;r.x=r.x+s.offset.x,r.y=r.y-s.offset.y;var m,y="BoxAndWhisker"===e.type,f=s.fill||(y||e.marker.isFilled?o.interior||e.interior:"#ffffff"),v=y&&!this.chart.enableCanvas?ye(e.seriesElement.childNodes,"Series_"+e.index+"_Point_"+o.index):e.symbolElement;u.color=g||e.setPointColor(o,e.interior);var b=this.elementId+"_Series_"+l+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=o.index||this.chart.pointsAdded?o.index+1:o.index)+"_Symbol"+(n||""),x={cancel:!1,name:Ri,series:e,point:o,fill:o.isEmpty?e.emptyPointSettings.fill||f:f,border:{color:"BoxAndWhisker"===e.type?t.isNullOrUndefined(g)||"transparent"===g?Ee(f,-.6):g:u.color,width:u.width},height:s.height,width:s.width,shape:s.shape};if(x.border=e.setBorderColor(o,{width:x.border.width,color:x.border.color}),e.isRectSeries&&"BoxAndWhisker"!==e.type||(this.chart.trigger(Ri,x),o.color=x.fill),x.cancel)r=null,o.marker={visible:!1};else{var S=void 0;S="RangeArea"===e.type||"RangeColumn"===e.type||"RangeColumn"===e.drawType||"SplineRangeArea"===e.type||"RangeStepArea"===e.type?n?o.low:o.high:y?o.outliers[n]:o.y;var C=x.point.marker.fill||x.fill,F=void 0;F=t.isNullOrUndefined(x.point.marker.border)?{color:x.border.color,width:x.border.width}:{color:x.point.marker.border.color||x.border.color,width:x.point.marker.border.width||x.border.width};var w=x.point.marker.width||x.width,L=x.point.marker.height||x.height,P=x.point.marker.opacity||s.opacity,A=x.point.marker.shape||x.shape,M=x.point.marker.imageUrl||s.imageUrl;p=new i.PathOption(b,C,F.width,F.color,P,e.marker.border.dashArray),(void 0!==v&&null!==v||this.chart.enableCanvas)&&(a&&he(p.id)&&(m=he(p.id),d="Circle"===A?"c":"",h={x:+m.getAttribute(d+"x"),y:+m.getAttribute(d+"y")},c=m.getAttribute("d")),(m=ne(r,A,new i.Size(w,L),M,p,o.x.toString()+":"+S.toString(),this.chart.renderer,e.clipRect))&&(m.setAttribute("role","img"),"TrendLine"===e.category&&p.id===this.elementId+"_Series_0_Point_0_Symbol"&&(m.setAttribute("tabindex","0"),m.setAttribute("class","e-chart-focused")),m.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(o,e):o.x+": "+o.y+", "+e.name)),be(this.chart.enableCanvas,v,m,a,!0,d+"x",d+"y",h,c,!1,!1,null,e.chart.duration),null!==e.removedPointIndex&&e.removedPointIndex<=o.index&&(v.lastChild.id=this.elementId+"_Series_"+l+"_Point_"+o.index+"_Symbol"+(n||""))),o.marker={border:F,fill:C,height:L,visible:!0,shape:A,width:w,imageUrl:M}}},o.prototype.createElement=function(e,t){var i,o,r=e.marker,n=r.border.width+(this.chart.zoomModule&&this.chart.zoomModule.isAxisZoomed(this.chart.axisCollections)?0:13),a=e.chart.svgRenderer,l=void 0===e.index?e.category:e.index,s="Cartesian"===e.chart.chartAreaType?"translate("+e.clipRect.x+","+e.clipRect.y+")":"";if(r.visible){var h=(r.height+n)/2,c=(r.width+n)/2;i="Cartesian"===e.chart.chartAreaType?J(t,o=new co(this.elementId+"_ChartMarkerClipRect_"+l,"transparent",{width:1,color:"Gray"},1,{x:-c,y:-h,width:e.clipRect.width+2*c,height:e.clipRect.height+2*h},0,0,"",e.marker.border.dashArray),a):J(t,o=new uo(this.elementId+"_ChartMarkerClipRect_"+l,"transparent",{width:1,color:"Gray"},1,e.clipRect.width/2+e.clipRect.x,e.clipRect.height/2+e.clipRect.y,e.chart.radius+Math.max(h,c)),a,"drawCircularClipPath"),o={id:this.elementId+"SymbolGroup"+l,transform:s,"clip-path":"url(#"+this.elementId+"_ChartMarkerClipRect_"+l+")"},e.symbolElement=a.createGroup(o),e.symbolElement.appendChild(i),this.chart.enableCanvas&&document.getElementById(this.chart.element.id+"_tooltip_svg").appendChild(e.symbolElement)}},o.prototype.getRangeLowPoint=function(e,t){var i=e.x,o=e.y;return t.chart.requireInvertedAxis?(o+=e.height/2,i+=t.yAxis.isAxisInverse?e.width:0):(o+=t.yAxis.isAxisInverse?0:e.height,i+=e.width/2),{x:i,y:o}},o.prototype.calculateDistance=function(e,t){var i=t.x-e.x,o=t.y-e.y;return Math.sqrt(i*i+o*o)},o.prototype.doMarkerAnimation=function(e){if("Scatter"!==e.type&&"Bubble"!==e.type&&"Candle"!==e.type&&"Hilo"!==e.type&&"HiloOpenClose"!==e.type&&("PolarRadar"!==e.chart.chartAreaType||"Scatter"!==e.drawType)){for(var i=e.symbolElement.childNodes,o=e.animation.delay+(0===e.animation.duration&&"Enable"===t.animationMode?1e3:e.animation.duration),r=e.chart.animated?e.chart.duration:200,n=o,a=e.pathElement?e.pathElement.getTotalLength():0,l=[],s=1;"Line"===e.type&&s<e.points.length;s++)if(e.points[s-1].symbolLocations[0]&&e.points[s].symbolLocations[0]){var h=this.calculateDistance(e.points[s-1].symbolLocations[0],e.points[s].symbolLocations[0]);l.push(h)}for(var c=1,d="RangeArea"===e.type||"RangeColumn"===e.type||"SplineRangeArea"===e.type||"RangeStepArea"===e.type?2:1,s=0;s<e.points.length;s++)if(e.points[s].symbolLocations){if(!e.points[s].symbolLocations.length||!i[c])continue;if("Line"===e.type&&(0===s&&(n=0),s>0&&(n+=l[s-1]/a*o,r=0)),q(i[c],n,r,e,s,e.points[s].symbolLocations[0],!1),2===d){var p=this.getRangeLowPoint(e.points[s].regions[0],e);q(i[c+1],n,r,e,s,p,!1)}c+=d}}},o}(Ho),Xo=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Go=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Yo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xo(i,e),Go([t.Property(!0)],i.prototype,"visible",void 0),Go([t.Property(null)],i.prototype,"height",void 0),Go([t.Property(null)],i.prototype,"width",void 0),Go([t.Complex({x:0,y:0},oi)],i.prototype,"location",void 0),Go([t.Property("Auto")],i.prototype,"position",void 0),Go([t.Property("Series")],i.prototype,"mode",void 0),Go([t.Property(8)],i.prototype,"padding",void 0),Go([t.Property(null)],i.prototype,"itemPadding",void 0),Go([t.Property("Center")],i.prototype,"alignment",void 0),Go([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),Go([t.Property(10)],i.prototype,"shapeHeight",void 0),Go([t.Property(10)],i.prototype,"shapeWidth",void 0),Go([t.Complex({},hi)],i.prototype,"border",void 0),Go([t.Complex({left:0,right:0,top:0,bottom:0},di)],i.prototype,"margin",void 0),Go([t.Complex({left:0,right:0,top:0,bottom:0},fi)],i.prototype,"containerPadding",void 0),Go([t.Property(8)],i.prototype,"shapePadding",void 0),Go([t.Property("transparent")],i.prototype,"background",void 0),Go([t.Property(1)],i.prototype,"opacity",void 0),Go([t.Property(!0)],i.prototype,"toggleVisibility",void 0),Go([t.Property(!1)],i.prototype,"enableHighlight",void 0),Go([t.Property(null)],i.prototype,"description",void 0),Go([t.Property(3)],i.prototype,"tabIndex",void 0),Go([t.Property(null)],i.prototype,"title",void 0),Go([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"titleStyle",void 0),Go([t.Property("Top")],i.prototype,"titlePosition",void 0),Go([t.Property("Normal")],i.prototype,"textWrap",void 0),Go([t.Property("Ellipsis")],i.prototype,"textOverflow",void 0),Go([t.Property(100)],i.prototype,"maximumTitleWidth",void 0),Go([t.Property(null)],i.prototype,"maximumLabelWidth",void 0),Go([t.Property(!0)],i.prototype,"enablePages",void 0),Go([t.Property(!1)],i.prototype,"isInversed",void 0),Go([t.Property(!1)],i.prototype,"reverse",void 0),Go([t.Property("Auto")],i.prototype,"layout",void 0),Go([t.Property(null)],i.prototype,"maximumColumns",void 0),Go([t.Property(!1)],i.prototype,"fixedWidth",void 0),Go([t.Complex({},ri)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),Zo=function(){function e(e){this.maxItemHeight=0,this.rowHeights=[],this.pageHeights=[],this.columnHeights=[],this.pageXCollections=[],this.chartRowCount=1,this.legendTitleCollections=[],this.legendRegions=[],this.pagingRegions=[],this.chart=e,this.legend=e.legendSettings,this.legendID=e.element.id+"_chart_legend",this.isChartControl="chart"===e.getModuleName()||"chart3d"===e.getModuleName(),this.isAccChartControl="accumulationchart"===e.getModuleName()||"circularchart3d"===e.getModuleName(),this.isBulletChartControl="bulletChart"===e.getModuleName(),this.isStockChartControl="stockChart"===e.getModuleName(),this.bulletChart=this.chart,this.fivePixel=5,this.rowCount=0,this.pageButtonSize=8,this.maxColumns=0,this.maxWidth=0,this.currentPage=1,this.backwardArrowOpacity=0,this.forwardArrowOpacity=1,this.arrowWidth=2*(this.fivePixel+this.pageButtonSize+this.fivePixel),this.arrowHeight=this.arrowWidth,this.isTop=!1,this.isTitle=!1,this.currentPageNumber=1}return e.prototype.calculateLegendBounds=function(e,t,o,r,n){var a=this.legend,l=this.isBulletChartControl||("accumulationchart"===this.chart.getModuleName()||"chart"===this.chart.getModuleName())&&("Auto"!==this.legend.layout||this.legend.maximumColumns>0)?"40%":"20%";this.getPosition(a.position,t),this.legendBounds=new i.Rect(e.x,e.y,0,0),this.isVertical="Left"===this.position||"Right"===this.position,this.itemPadding=this.legend.itemPadding?this.legend.itemPadding:this.isVertical?8:20,this.isVertical?(this.legendBounds.height=Ne(a.height,t.height-(e.y-this.chart.margin.top))||e.height,this.legendBounds.width=Ne(a.width||l,t.width)):(this.legendBounds.width=Ne(a.width,t.width)||e.width,this.legendBounds.height=Ne(a.height||l,t.height)),"chart3d"===this.chart.getModuleName()?this.library.get3DLegendBounds(t,this.legendBounds,a):this.library.getLegendBounds(t,this.legendBounds,a),this.isBulletChartControl||(this.legendBounds.width+=this.legend.containerPadding.left+this.legend.containerPadding.right,this.legendBounds.height+=this.legend.containerPadding.top+this.legend.containerPadding.bottom),this.getLocation(this.position,a.alignment,this.legendBounds,e,t,o,r,n)},e.prototype.getPosition=function(e,t){var i=this.chart,o=this.chart;this.isChartControl||this.isBulletChartControl||this.isStockChartControl?this.position="Auto"!==e?e:"Bottom":("Auto"===e&&((i||o).visibleSeries&&"Funnel"===(i||o).visibleSeries[0].type||"Pyramid"===(i||o).visibleSeries[0].type)&&(e="Top"),this.position="Auto"!==e?e:t.width>t.height?"Right":"Bottom")},e.prototype.setBounds=function(e,t,i,o){var r=i.title&&"Top"===i.titlePosition?this.legendTitleSize.height+this.fivePixel:0;this.isVertical&&this.isPaging&&!i.enablePages&&!this.isBulletChartControl&&(r=i.title&&"Top"===i.titlePosition?this.legendTitleSize.height+this.fivePixel:0,r+=this.pageButtonSize+this.fivePixel),e=Math.min(e,o.width),t=Math.min(t,o.height),"Gradient"===i.mode?(o.width=i.width?o.width:this.isVertical?e:.75*o.width,o.height=i.height?o.height:this.isVertical?.75*o.height:t):(o.width=i.width?o.width:e,o.height=i.height?o.height:t),this.isBulletChartControl||this.isTop&&"None"!==i.titleStyle.textOverflow&&(this.calculateLegendTitle(i,o),o.height+="Wrap"===i.titleStyle.textOverflow&&this.legendTitleCollections.length>1?this.legendTitleSize.height-this.legendTitleSize.height/this.legendTitleCollections.length:0),this.rowCount=Math.max(1,Math.ceil((o.height-i.padding-r)/(this.maxItemHeight+i.padding)))},e.prototype.getLocation=function(e,t,o,r,n,a,l,s){var h=this.legend.border.width,c=this.isBulletChartControl,d=this.bulletChart,p="Inside"===d.labelPosition,u="Inside"===d.tickPosition,g="Vertical"===d.orientation,m=c&&""!==d.categoryField?a.width+this.chart.border.width+3*h:0,y=this.chart.margin.bottom,f=o.height+h+this.legend.margin.top+this.legend.margin.bottom,v=o.width+h+this.legend.margin.left+this.legend.margin.right;if("Bottom"===e)o.x=this.alignLegend(o.x,n.width,o.width,t),o.y=!l||o.height!==l.height&&"Pie"===this.chart.series[0].type?r.y+(r.height-f)+h+this.legend.margin.top:l.y,o.y+=!c||d.opposedPosition||p||u||g?g&&""!==d.categoryField?a.height+2*h:0:d.majorTickLines.height+y+this.legend.border.width+2*h,s&&o.height===l.height||F(r,new fo(0,0,0,f));else if("Top"===e){var b=void 0;this.isChartControl&&(b=i.measureText("100",this.chart.verticalAxes[0].labelStyle,this.chart.themeStyle.legendLabelFont)),o.x=this.alignLegend(o.x,n.width,o.width,t),o.y=!l||o.height!==l.height&&"Pie"===this.chart.series[0].type?r.y+h+this.legend.margin.top:l.y,o.y-=!c||!d.opposedPosition||p||u||g?0:d.majorTickLines.height+this.chart.margin.top,f-=c?2*-h:this.isChartControl?2*-h-b.height/2:0,s&&o.height===l.height||F(r,new fo(0,0,f,0))}else"Right"===e?(o.x=!l||o.width!==l.width&&"Pie"===this.chart.series[0].type?r.x+(r.width-o.width)-this.legend.margin.right:l.x,o.y=r.y+this.alignLegend(0,n.height-(r.y+y),o.height,t),v+=c&&d.opposedPosition&&!p&&!u&&g?this.chart.margin.left+this.chart.margin.right+d.majorTickLines.height:0,s&&o.width===l.width||F(r,new fo(0,v,0,0))):"Left"===e?(o.x=!l||o.width!==l.width&&"Pie"===this.chart.series[0].type?o.x+this.legend.margin.left:l.x,o.y=r.y+this.alignLegend(0,n.height-(r.y+y),o.height,t),v+=!c||d.opposedPosition||p||u||!g?"Vertical"!==d.orientation&&""!==d.categoryField?m:0:o.x-this.chart.margin.left+h+d.majorTickLines.height,s&&o.width===l.width||F(r,new fo(v,0,0,0))):(o.x=this.legend.location.x,o.y=this.legend.location.y,F(r,new fo(0,0,0,0)))},e.prototype.alignLegend=function(e,t,i,o){switch(o){case"Far":e=t-i-e;break;case"Center":e=(t-i)/2}return e},e.prototype.renderLegend=function(e,t,o,r,n){var a,l,s=0,h=0,c=(new i.Rect(0,0,0,0),new i.Rect(0,0,0,0));n&&(a=he(this.legendID+"_element").getAttribute("x"),l=he(this.legendID+"_element").getAttribute("y"));var d=this.findFirstLegendPosition(this.legendCollections),p=t.padding;this.itemPadding=this.isBulletChartControl?t.padding:this.itemPadding;var u=t.enablePages,g=t.titlePosition,m=this.isPaging&&!t.enablePages&&this.isVertical&&("accumulationchart"!==e.getModuleName()&&"chart"!==e.getModuleName()||"Auto"===this.legend.layout)?this.pageButtonSize:0,y=e.renderer.createGroup({id:this.legendID+"_g"}),f=this.createLegendElements(e,o,y,t,this.legendID,r);this.legendRegions=[],this.chartRowCount=1;var v=0;if(s=this.isTitle&&(this.isTop||this.isVertical)?this.legendTitleSize.height:0,this.isChartControl||this.isAccChartControl&&(!this.isVertical||t.layout&&"Auto"!==t.layout)){for(var b=1,x=this.rowHeights[0]+(this.isVertical||this.rowHeights.length>1&&this.legend.itemPadding&&"chart"===this.chart.getModuleName()?this.itemPadding:p),S=1;S<this.rowHeights.length;S++)x+this.rowHeights[S]+((this.isVertical||this.rowHeights.length>1&&"chart"===this.chart.getModuleName())&&this.legend.itemPadding?this.itemPadding:p)>this.legendBounds.height-this.pageButtonSize-this.maxItemHeight/2-this.legend.containerPadding.top-this.legend.containerPadding.bottom&&(this.pageHeights[b-1]=x+s,b++,x=0),x+=this.rowHeights[S]+(this.isVertical||this.rowHeights.length>1&&this.legend.itemPadding&&"chart"===this.chart.getModuleName()?this.itemPadding:p);this.pageHeights[b-1]=x+s,this.totalPages=b}for(S=0;S<this.legendCollections.length;S++)if(""!==this.legendCollections[S].text){v=Math.max(this.legendCollections[S].textSize.height,v);break}if(this.isChartControl||this.isAccChartControl||(this.maxItemHeight=Math.max(v,t.shapeHeight)),u||!this.isPaging||this.isVertical?this.isTitle&&!this.isVertical&&(h=g===(this.isRtlEnable?"Right":"Left")?this.fivePixel+this.legendTitleSize.width:0):(h=this.isTitle&&"Left"===g?this.legendTitleSize.width:0,h+=this.pageButtonSize+2*this.fivePixel),"Gradient"===e.legendSettings.mode&&this.legendCollections.length>1)this.getLinearLegend(o,e,t,f),this.totalPages=1;else if(d!==this.legendCollections.length){var C=void 0,F=0,w=this.legendCollections[d],L=this.isBulletChartControl?p:h+p+t.shapeWidth/2+t.containerPadding.left,P=this.isBulletChartControl&&!this.isRtlEnable?o.x+h+p+t.shapeWidth/2:this.isRtlEnable?o.x+("accumulationchart"!==this.chart.getModuleName()||!this.isVertical||"Auto"!==t.layout||t.maximumColumns>0?o.width:this.maxWidth)-L:o.x+L,A=new mo(P,this.isBulletChartControl?o.y+s+m+p+this.maxItemHeight/2:o.y+s+m+p+this.maxItemHeight/2+t.containerPadding.top),M=e.isRtlEnabled||e.enableRtl?"end":"start",D=new i.TextOption("",A.x,A.y,M),k=t.shapePadding+this.itemPadding+t.shapeWidth;this.totalPages=this.totalPages=this.isAccChartControl||this.isChartControl||this.isBulletChartControl||this.isStockChartControl?this.totalPages:0,this.pageXCollections=[],this.legendCollections[d].location=A;var R=void 0;if(!t.enablePages&&this.isPaging){var T=A.x-this.fivePixel,E=A.y-this.fivePixel,_=this.isTitle&&!this.isVertical&&"Left"===g?this.legendTitleSize.width+this.fivePixel:0,I=this.isVertical?this.pageButtonSize+Math.abs(E-o.y):0,O=this.isTitle&&!this.isVertical&&"Right"===g?this.legendTitleSize.width+this.fivePixel:0;O+=this.isVertical?0:this.fivePixel+this.pageButtonSize+this.fivePixel,c=new i.Rect(T,E,o.width-O-_,o.height-I)}else c=o;for(var z=void 0,S=0;S<this.legendCollections.length;S++)z=this.legendCollections[S],R=this.isReverse?this.legendCollections.length-1-F:F,"accumulationchart"===this.chart.getModuleName()&&-1===this.chart.accumulationLegendModule.legendRenderArgFill.indexOf(S)&&(z.fill=(this.chart||this.chart||this.chart||this.chart).visibleSeries[0].points[z.pointIndex].color),"stockChart"===this.chart.getModuleName()&&(z.type=this.chart.visibleSeries[F].type),this.accessbilityText=this.isBulletChartControl?"Legend of bullet chart"+z.text:"Click to show or hide the "+z.text+" series",z.render&&z.text&&""!==z.text&&(!(C=e.renderer.createGroup({id:this.legendID+this.generateId(z,"_g_",R)}))||"chart"!==this.chart.getModuleName()&&"accumulationchart"!==this.chart.getModuleName()?C&&(C.setAttribute("tabindex",0===S?"0":""),C.style.outline="none",C.setAttribute("aria-label",t.description||z.text+" series is "+(z.visible?"showing, press enter to hide the ":"hidden, press enter to show the ")+z.text+" series"),C.setAttribute("role","button"),C.setAttribute("aria-pressed",z.visible?"true":"false")):(C.setAttribute("tabindex",0===S&&t.accessibility.focusable?String(t.accessibility.tabIndex):""),C.style.outline="none",C.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:z.text+" series is "+(z.visible?"showing, press enter to hide the ":"hidden, press enter to show the ")+z.text+" series"),C.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"button"),C.setAttribute("aria-pressed",z.visible?"true":"false")),this.library.getRenderPoint(z,A,k,w,c,F,d),this.renderSymbol(z,C,R),this.renderText(e,z,C,D,F,R),C&&(C.style.cssText="pointer-events: bounding-box; cursor: "+(!t.toggleVisibility&&("None"===e.selectionMode||"None"===e.highlightMode||"None"===e.selectionMode)||this.isBulletChartControl?"auto":"pointer")),f&&f.appendChild(C),w=z),F++;this.totalPages=this.isPaging&&!this.isBulletChartControl&&!this.legend.enablePages&&!this.isVertical&&this.totalPages>this.chartRowCount?this.chartRowCount:this.totalPages,this.currentPage=this.currentPage>1&&this.currentPage>this.totalPages?this.totalPages:this.currentPage,this.isPaging&&this.totalPages>1?this.renderPagingElements(e,o,D,y):this.totalPages=1}if(n){var B="translate("+(this.rowCount>1?0:Math.round(Number(a))-Math.round(this.legendBounds.x))+" \n              + ',' + "+(Math.round(Number(l))-Math.round(this.legendBounds.y))+")",N="translate("+(Math.round(Number(a))-Math.round(this.legendBounds.x))+", "+(Math.round(Number(l))-Math.round(this.legendBounds.y))+")";be(e.enableCanvas,e.svgObject,y,r,!0,"x","y",void 0,void 0,void 0,void 0,void 0,e.duration,void 0,void 0,new mo(0,0),"Top"===this.position||"Bottom"===this.position?B:N)}else be(e.enableCanvas,e.svgObject,y,r)},e.prototype.getLinearLegend=function(e,t,o,r){var n="http://www.w3.org/2000/svg",a=this.legendCollections[0],l=this.legendCollections[1],s=this.chart.renderer.createDefs(),h=document.createElementNS(n,"linearGradient"),c=[],d=[];o.title&&(this.isVertical?(e.y+=this.legendTitleSize.height,e.height-=this.legendTitleSize.height):"Left"===o.titlePosition?(e.x+=this.legendTitleSize.width,e.width-=this.legendTitleSize.width):"Right"===o.titlePosition?e.width-=this.legendTitleSize.width:"Top"===o.titlePosition&&(e.y+=this.legendTitleSize.height,e.height-=this.legendTitleSize.height));for(var p=0,u=this.chart.rangeColorSettings;p<u.length;p++){var g=u[p];if(d.indexOf(g.start)<0&&d.push(g.start),g.colors.length>2){var m=g.end-g.start,y=g.colors.length-1;if(m>0){m/=y;for(v=1;v<y;v++){var f=g.start+m*v;d.push(f)}}else for(var v=1;v<y;v++)d.push(g.start)}d.indexOf(g.end)<0&&d.push(g.end);for(var b=0,x=g.colors;b<x.length;b++){var S=x[b];c.indexOf(S)<0&&c.push(S)}g.colors.length>0&&g.colors.length<2&&c.push(g.colors[0])}var C=this.isRtlEnable&&!this.isVertical?"100%":"0%",F=this.isVertical||this.isRtlEnable?"0%":"100%",w=this.isVertical?"100%":"0%";h.setAttribute("id",this.generateId(a,"linearGradient",0)),h.setAttribute("x1",C),h.setAttribute("y1","0%"),h.setAttribute("x2",F),h.setAttribute("y2",w);for(var L=d[d.length-1]-d[0],P=0;P<c.length;P++){var A=d[P]-d[0];A/=L;var M=document.createElementNS(n,"stop");M.setAttribute("offset",A.toString()),M.setAttribute("stop-color",c[P]),M.setAttribute("stop-opacity",1..toString()),h.appendChild(M)}var D,k,R,T,E=a.text.toString(),_=l.text.toString(),I=i.measureText(E,o.textStyle,this.chart.themeStyle.legendLabelFont),O=i.measureText(_,o.textStyle,this.chart.themeStyle.legendLabelFont),z=I.width>O.width?I.width:O.width,B=I.height>O.height?I.height:O.height,N=2*z+4*o.padding,V=e.width,H=e.height,W=e.x+z+2*o.padding,j=e.y+o.padding;if(this.isVertical){if(N=2*B+4*o.padding,V=e.width-2*o.padding,H=e.height-N,W=e.x+o.padding,j=e.y+B+2*o.padding,D=e.y+o.padding+B,k=j+H+B,R=e.x+.5*e.width-.5*z,T=R,V>30){var U=V-30;V=30,W+=U/2}}else if(V=e.width-N,H=e.height-2*o.padding,R=e.x+(this.isRtlEnable?V+3*o.padding+z:o.padding+(z-I.width)),T=e.x+(this.isRtlEnable?o.padding+(z-O.width):V+3*o.padding+z),D=e.y+.5*e.height+.25*B,k=D,H>30){var X=H-30;H=30,j+=X/2}var G=t.enableRtl?"end":"",Y=new i.TextOption("",R,D,G,E);Y.id=this.legendID+this.generateId(a,"_text_",1);var Z=a.visible?o.textStyle.color||t.themeStyle.legendLabelFont.color:"#D3D3D3",q=!this.isStockChartControl&&this.chart.enableCanvas;je(t.renderer,Y,o.textStyle,Z,r,!1,!1,!1,!1,null,this.currentPageNumber&&q?new i.Rect(0,-this.translatePage(q,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,null,null,null,null,this.chart.themeStyle.legendLabelFont),(Y=new i.TextOption("",T,k,G,_)).id=this.legendID+this.generateId(a,"_text_",2),je(t.renderer,Y,o.textStyle,Z,r,!1,!1,!1,!1,null,this.currentPageNumber&&q?new i.Rect(0,-this.translatePage(q,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,null,null,null,null,this.chart.themeStyle.legendLabelFont);var Q=t.renderer.drawRectangle({width:V,height:H,x:W,y:j,fill:"url(#"+this.generateId(a,"linearGradient",0)+")"});s.appendChild(h),r.appendChild(s),r.appendChild(Q)},e.prototype.findFirstLegendPosition=function(e){for(var t=0,i=0,o=e;i<o.length;i++){var r=o[i];if(r.render&&r.text&&""!==r.text)break;t++}return t},e.prototype.calculateLegendTitle=function(e,t){if(e.title){this.isTop="Top"===e.titlePosition;var o="Trim"===e.titleStyle.textOverflow?2*e.padding:0;this.isTop||this.isVertical?this.legendTitleCollections=Ge(e.title,e.titleStyle,t.width-o,this.chart.enableRtl,this.chart.themeStyle.legendTitleFont):this.legendTitleCollections[0]=ze(e.maximumTitleWidth,e.title,e.titleStyle,this.chart.enableRtl,this.chart.themeStyle.legendTitleFont);var r=this.isTop?e.title:this.legendTitleCollections[0];this.legendTitleSize=i.measureText(r,e.titleStyle,this.chart.themeStyle.legendTitleFont),this.legendTitleSize.height*=this.legendTitleCollections.length}else this.legendTitleSize=new i.Size(0,0)},e.prototype.renderLegendTitle=function(e,t,o,r){var n=t.padding,a=t.titleStyle.textAlignment;this.isTop="Top"===t.titlePosition;var l=tt(t.titleStyle.textAlignment,e.enableRtl),s=Ye(o,t.titleStyle);l=this.isTop||this.isVertical?l:e.enableRtl?"end":"",s="Near"===a?s+n:"Far"===a?s-n:s,s=this.isTop||this.isVertical?s:o.x+("Left"===t.titlePosition?5:o.width-this.legendTitleSize.width-5);var h=o.height/2+this.legendTitleSize.height/4,c=o.y+(this.isTop||this.isVertical?this.legendTitleSize.height/this.legendTitleCollections.length:h),d=new i.TextOption(this.legendID+"_title",s,c,l,this.legendTitleCollections);je(e.renderer,d,t.titleStyle,t.titleStyle.color||this.chart.themeStyle.legendTitleFont.color,r,null,null,null,null,null,null,null,null,null,null,this.chart.themeStyle.legendTitleFont)},e.prototype.createLegendElements=function(e,t,i,o,r,n){var a=o.padding,l=new co(r+"_element",o.background,o.border,o.opacity,t,0,0,"",this.legend.border.dashArray),s=e.renderer.createGroup({id:r+"_collections"}),h=!this.isStockChartControl&&e.enableCanvas,c=e.renderer.createClipPath({id:r+"_clipPath"});return l.width=!this.isRtlEnable||"accumulationchart"!==this.chart.getModuleName()||!this.isVertical||"Auto"!==o.layout||o.maximumColumns>0?t.width:this.maxWidth,i?i.appendChild(e.renderer.drawRectangle(l)):e.renderer.drawRectangle(l),o.title&&this.renderLegendTitle(e,o,t,i),h||i.appendChild(s),this.legendTranslateGroup=e.renderer.createGroup({id:r+"_translate_g"}),h||s.appendChild(this.legendTranslateGroup),l.y+=(this.isTop?this.legendTitleSize.height:0)+(this.isBulletChartControl?0:o.containerPadding.top),l.height-=(!this.isTop||!this.isChartControl&&this.isVertical&&"Auto"===o.layout?0:this.legendTitleSize.height)+(this.isBulletChartControl?0:o.containerPadding.top),l.id+="_clipPath_rect",l.width=this.isChartControl||"bulletChart"===e.getModuleName()||this.isStockChartControl||"accumulationchart"===e.getModuleName()&&("Auto"!==o.layout||o.maximumColumns>0)||!this.isVertical?t.width:this.maxWidth-a+o.containerPadding.left+o.containerPadding.right,l.width="Right"===e.legendSettings.titlePosition?l.width-this.legendTitleSize.width-a:l.width,h?this.pagingClipRect=l:(this.clipRect=e.renderer.drawRectangle(l),c.appendChild(this.clipRect)),be(h,e.svgObject,c,n),h||(s.style.cssText="clip-path:url(#"+c.id+")"),this.legendTranslateGroup},e.prototype.renderSymbol=function(e,t,o){var r,n,a=this.isBulletChartControl?this.chart:null,l=e.visible?e.fill:"#D3D3D3",s=("chart"===this.chart.getModuleName()||"stockChart"===this.chart.getModuleName())&&("SeriesType"===e.shape&&e.type.toLowerCase().indexOf("line")>-1&&-1===e.type.toLowerCase().indexOf("area")||"HorizontalLine"===e.shape||"VerticalLine"===e.shape||"Cross"===e.shape),h=!("chart"!==this.chart.getModuleName()&&"stockChart"!==this.chart.getModuleName()||"Scatter"!==e.type&&"Bubble"!==e.type),c=!this.isStockChartControl&&this.chart.enableCanvas,d="SeriesType"===e.shape?e.type:e.shape,p=s?"Series"===this.legend.mode?this.chart.visibleSeries[o].width:this.chart.visibleSeries[0].width:this.isBulletChartControl&&"Multiply"===e.shape?4:1;if(d="Scatter"===d?e.markerShape:d,h&&o<this.chart.visibleSeries.length){var u=this.chart.visibleSeries[o],g=u.border,m="HorizontalLine"===d||"VerticalLine"===d;r=m?l:g.color?g.color:l,p=m?u.width:g.width?g.width:1}for(var y=new i.PathOption(this.legendID+this.generateId(e,"_shape_",o),l,p,h?r:l,this.legend.opacity,e.dashArray,""),f=i.measureText(e.text,this.legend.textStyle,this.chart.themeStyle.legendLabelFont),v=0,b=0,x=e.textCollection;b<x.length;b++){var S=x[b],C=i.measureText(S,this.legend.textStyle,this.chart.themeStyle.legendLabelFont);C.width>v&&(v=C.width)}var F=this.legend.isInversed&&!this.isRtlEnable?e.location.x+("Wrap"===this.legend.textWrap&&e.textCollection.length>1?v:f.width)+this.legend.shapePadding:e.location.x,w=e.location.y;c?(n=-this.translatePage(c,null,this.currentPageNumber-1,this.currentPageNumber),ne({x:F,y:w},d,new i.Size(this.legend.shapeWidth,this.legend.shapeHeight),"",y,this.accessbilityText,this.chart.renderer,this.currentPageNumber?new i.Rect(0,n,0,0):null,this.isBulletChartControl,a),this.legendRegions.push({rect:new i.Rect(e.location.x-this.legend.shapeWidth,e.location.y,this.legend.shapeWidth+this.legend.shapePadding,this.legend.shapeHeight+n),index:o})):t.appendChild(ne({x:F,y:w},d,new i.Size(this.legend.shapeWidth,this.legend.shapeHeight),e.url,y,this.accessbilityText,this.chart.renderer,null,this.isBulletChartControl,a)),("Line"===d&&e.markerVisibility&&"Image"!==e.markerShape||"Doughnut"===e.type&&"Doughnut"===d)&&(y.id=this.legendID+this.generateId(e,"_shape_marker_",o),d="Doughnut"===e.type?"Circle":e.markerShape,y.fill="Doughnut"===e.type?"#FFFFFF":y.fill,c?ne({x:F,y:w},d,new i.Size(this.legend.shapeWidth/2,this.legend.shapeHeight/2),"",y,this.accessbilityText,this.chart.renderer,this.currentPageNumber?new i.Rect(0,-this.translatePage(c,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,this.isBulletChartControl,a):t.appendChild(ne({x:F,y:w},d,new i.Size(this.legend.shapeWidth/2,this.legend.shapeHeight/2),"",y,this.accessbilityText,null,null,this.isBulletChartControl,a)))},e.prototype.renderText=function(e,t,o,r,n,a){var l=this,s=e.legendSettings,h=t.visible?s.textStyle.color||e.themeStyle.legendLabelFont.color:"#D3D3D3",c=!this.isStockChartControl&&this.chart.enableCanvas;if(r.id=this.legendID+this.generateId(t,"_text_",a),r.text=t.textCollection.length>0?t.textCollection:t.text,s.isInversed&&!this.isRtlEnable)r.x=t.location.x-s.shapeWidth/2;else if(this.isRtlEnable){var d=t.textCollection.length>1?Math.max.apply(Math,t.textCollection.map(function(e){return i.measureText(e,s.textStyle,l.chart.themeStyle.legendLabelFont).width})):i.measureText(t.text,s.textStyle,this.chart.themeStyle.legendLabelFont).width;r.x="bulletChart"===this.chart.getModuleName()?t.location.x-s.shapeWidth:t.location.x-(d+s.shapeWidth/2+s.shapePadding)}else r.x=t.location.x+s.shapeWidth/2+s.shapePadding;if(r.y=t.location.y+this.maxItemHeight/4,je(e.renderer,r,s.textStyle,h,o,!1,!1,!1,!1,null,this.currentPageNumber&&c?new i.Rect(0,-this.translatePage(c,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,null,null,null,null,this.chart.themeStyle.legendLabelFont),c){for(var p=i.measureText(t.text,s.textStyle,this.chart.themeStyle.legendLabelFont),u=void 0,g=0;g<this.legendRegions.length;g++)if(this.legendRegions[g].index===n){u=this.legendRegions[g];break}u.rect.y=r.y<u.rect.y?r.y:u.rect.y,u.rect.width+=p.width,u.rect.height=p.height,u.rect.y-=.5*p.height,u.rect.x-=this.isRtlEnable?u.rect.width:0}},e.prototype.renderPagingElements=function(e,o,r,n){var a=e.renderer.createGroup({id:this.legendID+"_navigation"}),l=!this.isStockChartControl&&e.enableCanvas,s=this.isBulletChartControl?0:this.legendTitleSize.height,h=this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("Contrast")>-1?"#FFFFFF":"#545454",c=e.legendSettings,d=this.legendID+(this.isRtlEnable?"_pagedown":"_pageup"),p=this.legendID+(this.isRtlEnable?"_pageup":"_pagedown"),u=new i.PathOption(d,"transparent",5,h,1,"",""),g=e.availableSize.width<110||e.availableSize.height<190?4:this.pageButtonSize,m=t.extend({},t.getValue("properties",c.textStyle),null,!0);m.size=e.availableSize.width<110||e.availableSize.height<190&&!this.isBulletChartControl&&"accumulationchart"===this.chart.getModuleName()?"8px":c.textStyle.size;var y=c.enablePages||!this.isPaging||this.isVertical||this.isBulletChartControl?this.rowCount-1:1,f=this.isTitle&&"Left"===c.titlePosition?this.legendTitleSize.width:0;this.pagingRegions=[],this.backwardArrowOpacity=1!==this.currentPage?1:0,this.forwardArrowOpacity=this.currentPage===this.totalPages?0:1,l||n.appendChild(a),this.isChartControl||this.isAccChartControl||(this.isBulletChartControl||this.isStockChartControl||!this.isVertical?this.totalPages=Math.ceil(this.totalPages/Math.max(1,this.rowCount-1)):this.totalPages=Math.ceil(this.totalPages/this.maxColumns)),a&&(a.style.cursor="pointer"),!this.isChartControl&&!this.isAccChartControl||!c.enablePages&&this.isPaging?this.clipPathHeight=y*(this.maxItemHeight+c.padding):this.clipPathHeight=this.pageHeights[0]-(this.isTitle&&this.isTop&&(this.isChartControl||!this.isVertical||"Auto"!==c.layout)?this.legendTitleSize.height:0)-c.containerPadding.top-c.containerPadding.bottom,l?(this.pagingClipRect.height=this.legendBounds.height-this.clipPathHeight-(this.pagingClipRect.y-this.legendBounds.y)-c.border.width,this.pagingClipRect.y=this.pagingClipRect.y+this.clipPathHeight,this.pagingClipRect.x+=c.border.width,this.pagingClipRect.width-=c.border.width+c.border.width/2,this.chart.renderer.clearRect(new i.Rect(this.pagingClipRect.x,this.pagingClipRect.y,this.pagingClipRect.width,this.pagingClipRect.height))):this.clipRect.setAttribute("height",this.clipPathHeight.toString());var v,b=o.x+g/2,x=o.y+this.clipPathHeight+(s+o.height-this.clipPathHeight)/2;!this.isPaging||c.enablePages||this.isVertical||this.isBulletChartControl||(b=o.x+this.pageButtonSize+f,x=c.title&&this.isTop?o.y+8+s+g/1+.5:o.y+8+g+.5);var S=i.measureText(this.totalPages+"/"+this.totalPages,m,this.chart.themeStyle.legendLabelFont),C=this.isRtlEnable?c.border.width+g/2:o.width-(2*(g+8)+8+S.width);l?ne({x:b,y:x},"LeftArrow",new i.Size(g,g),"",u,"LeftArrow",this.chart.renderer,new i.Rect(C,0,0,0)):!this.isVertical||c.enablePages||this.isBulletChartControl?(u.opacity=this.isBulletChartControl?u.opacity:c.enablePages?1:this.isRtlEnable?this.forwardArrowOpacity:this.backwardArrowOpacity,a.appendChild(ne({x:b,y:x},"LeftArrow",new i.Size(g,g),"",u))):(b=o.x+o.width/2,x=o.y+g/2+4+s,u.opacity=this.backwardArrowOpacity,a.appendChild(ne({x:b,y:x},"UpArrow",new i.Size(g,g),"",u))),this.pagingRegions.push(new i.Rect(this.isRtlEnable?b:b+o.width-(2*(g+8)+8+S.width)-.5*g,x-.5*g,g,g)),r.x=b+g/2+8,r.y=x+S.height/4,r.id=this.legendID+"_pagenumber",r.text=this.isRtlEnable?this.totalPages+"/1":"1/"+this.totalPages;var F=this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("Contrast")>-1?"#FFFFFF":c.textStyle.color||"Tailwind3"===this.chart.theme?"#111827":"Tailwind3Dark"===this.chart.theme?"#FFFFFF":this.chart.themeStyle.legendLabelFont.color;l&&this.totalNoOfPages&&(r.text=this.isRtlEnable?this.totalNoOfPages+"/"+this.currentPageNumber:this.currentPageNumber+"/"+this.totalNoOfPages),(c.enablePages||this.isBulletChartControl)&&(v=je(e.renderer,r,m,F,a,!1,!1,!1,!1,null,new i.Rect(C,0,0,0),null,null,null,null,this.chart.themeStyle.legendLabelFont)),b=r.x+8+g/2+S.width,!this.isPaging||c.enablePages||this.isBulletChartControl||this.isVertical||(b=o.x+o.width-(this.isBulletChartControl?this.fivePixel:0)-this.pageButtonSize-(c.title&&"Right"===c.titlePosition?this.legendTitleSize.width+this.fivePixel:0)),u.id=p,u.opacity=c.enablePages?1:this.isRtlEnable?this.backwardArrowOpacity:this.forwardArrowOpacity,l?ne({x:b,y:x},"RightArrow",new i.Size(g,g),"",u,"RightArrow",this.chart.renderer,new i.Rect(C,0,0,0)):!this.isVertical||c.enablePages||this.isBulletChartControl?a.appendChild(ne({x:b,y:x},"RightArrow",new i.Size(g,g),"",u)):(b=o.x+o.width/2,x=o.y+o.height-g/2,a.appendChild(ne({x:b,y:x},"DownArrow",new i.Size(g,g),"",u))),this.pagingRegions.push(new i.Rect(this.isRtlEnable?b:b+(o.width-(2*(g+8)+8+S.width)-.5*g),x-.5*g,g,g)),l||!c.enablePages&&!this.isBulletChartControl?(1===this.currentPageNumber&&this.calTotalPage&&(c.enablePages||this.isBulletChartControl)&&(this.totalNoOfPages=this.totalPages,this.calTotalPage=!1),c.enablePages||this.isBulletChartControl||this.translatePage(l,null,this.currentPage-1,this.currentPage,c)):a.setAttribute("transform","translate("+C+", 0)"),(c.enablePages||this.isBulletChartControl)&&this.translatePage(l,v,this.currentPage-1,this.currentPage,c)},e.prototype.getPageHeight=function(e,t){for(var i=0,o=0;o<t;o++)i+=e[o]-(this.isTitle&&this.isTop?this.legendTitleSize.height:0);return i},e.prototype.translatePage=function(e,t,i,o,r){var n=this.isChartControl||this.isAccChartControl?i?this.getPageHeight(this.pageHeights,i):0:this.clipPathHeight*i;e||!this.isChartControl&&!this.isAccChartControl||(this.clipRect.setAttribute("height",(this.pageHeights[i]-(this.isTitle&&this.isTop&&(this.isChartControl||!this.isVertical||"Auto"!==r.layout)?this.legendTitleSize.height:0)-r.containerPadding.top-r.containerPadding.bottom).toString()),this.isAccChartControl&&this.isPaging&&!r.enablePages&&this.isVertical&&("accumulationchart"!==this.chart.getModuleName()||"Auto"===r.layout)&&this.clipRect.setAttribute("height",this.legendBounds.height.toString()));var a="translate(0,-"+n+")";if(!this.isChartControl&&!this.isBulletChartControl&&!this.isStockChartControl&&("accumulationchart"!==this.chart.getModuleName()||"Auto"===r.layout)&&this.isVertical){var l=this.pageXCollections[i*this.maxColumns];n=(n=this.isRtlEnable?this.legendBounds.x+this.maxWidth-l:l-this.legendBounds.x)<0?0:n,a=(this.isRtlEnable?"translate(":"translate(-")+n+",0)"}return this.chart.enableCanvas||this.legendTranslateGroup.setAttribute("transform",a),this.chart.enableCanvas||!r.enablePages&&!this.isBulletChartControl||(t.textContent=o+"/"+this.totalPages),this.currentPage=o,n},e.prototype.changePage=function(e,t){var i=this.chart.legendSettings,o=document.getElementById(this.legendID+"_pageup"),r=document.getElementById(this.legendID+"_pagedown"),n=!this.isStockChartControl&&this.chart.enableCanvas,a=i.enablePages||this.isBulletChartControl?document.getElementById(this.legendID+"_pagenumber"):null,l=i.enablePages||this.isBulletChartControl?parseInt(a.textContent.split("/")[0],10):this.currentPage;t&&l>1?this.translatePage(n,a,l-2,l-1,i):!t&&l<this.totalPages&&this.translatePage(n,a,l,l+1,i),!this.isPaging||i.enablePages||this.isBulletChartControl||(this.currentPage===this.totalPages?this.hideArrow(r):this.showArrow(r),1===this.currentPage?this.hideArrow(o):this.showArrow(o))},e.prototype.hideArrow=function(e){e.setAttribute("opacity","0")},e.prototype.showArrow=function(e){e.setAttribute("opacity","1")},e.prototype.generateId=function(e,t,i){return this.isChartControl||this.isStockChartControl?t+i:t+e.pointIndex},e.prototype.move=function(e){var t=this,i=this.chart.mouseX,o=this.chart.mouseY;if(e.target.textContent.indexOf("...")>-1){var r=e.target.id.split(this.legendID+"_text_");if(2===r.length){var n=parseInt(r[1],10),a=this.chart.element;if(!isNaN(n))if(this.chart.isTouch&&g(this.chart.element.id+"_EJ2_Legend_Tooltip"),this.isChartControl)y(this.chart.visibleSeries[n].name,i,o,a.offsetWidth,a.id+"_EJ2_Legend_Tooltip",he(this.chart.element.id+"_Secondary_Element"),null,null,this.legendBounds);else{var l=this.isReverse?this.legendCollections.length-1-n:n;y("accumulationchart"===this.chart.getModuleName()?this.legendCollections[l].originalText:this.chart.visibleSeries[0].points[n].x.toString(),i+10,o+10,a.offsetWidth,a.id+"_EJ2_Legend_Tooltip",he(this.chart.element.id+"_Secondary_Element"))}}}else g(this.chart.element.id+"_EJ2_Legend_Tooltip");this.chart.isTouch&&(clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(function(){g(t.chart.element.id+"_EJ2_Legend_Tooltip")},1e3))},e}(),qo=function(){function e(e,t,i,o,r,n,a,l,s,h,c,d){this.location={x:0,y:0},this.textCollection=[],this.text=e,this.fill=t,this.shape=i,this.url=n,this.visible=o,this.type=r,this.markerVisibility=l,this.markerShape=a,this.pointIndex=s,this.seriesIndex=h,this.dashArray=c,this.originalText=d}return e}(),Qo=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$o=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ko=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new i.Rect(0,0,0,0),t}return Qo(o,e),o.prototype.setDataSource=function(e,t){e&&(this.xData=e.xData,this.yData=e.yData,this.points=e.points);var i=U(this.type);this.visible&&t[i+"IndicatorModule"].initDataSource(this,t),t.visibleSeriesCount+=this.targetSeries.length},$o([t.Property("Sma")],o.prototype,"type",void 0),$o([t.Property(14)],o.prototype,"period",void 0),$o([t.Property(14)],o.prototype,"kPeriod",void 0),$o([t.Property(3)],o.prototype,"dPeriod",void 0),$o([t.Property(80)],o.prototype,"overBought",void 0),$o([t.Property(20)],o.prototype,"overSold",void 0),$o([t.Property(2)],o.prototype,"standardDeviation",void 0),$o([t.Property("Close")],o.prototype,"field",void 0),$o([t.Property(12)],o.prototype,"slowPeriod",void 0),$o([t.Property(26)],o.prototype,"fastPeriod",void 0),$o([t.Property(!0)],o.prototype,"showZones",void 0),$o([t.Complex({color:"#ff9933",width:2},ii)],o.prototype,"macdLine",void 0),$o([t.Property("Both")],o.prototype,"macdType",void 0),$o([t.Property("#2ecd71")],o.prototype,"macdPositiveColor",void 0),$o([t.Property("#e74c3d")],o.prototype,"macdNegativeColor",void 0),$o([t.Property("rgba(211,211,211,0.25)")],o.prototype,"bandColor",void 0),$o([t.Complex({color:"#ffb735",width:1},ii)],o.prototype,"upperLine",void 0),$o([t.Complex({color:"#f2ec2f",width:1},ii)],o.prototype,"lowerLine",void 0),$o([t.Complex({color:"#f2ec2f",width:1},ii)],o.prototype,"periodLine",void 0),$o([t.Complex({},ri)],o.prototype,"accessibility",void 0),$o([t.Property("")],o.prototype,"seriesName",void 0),o}(zo),Jo=function(){function e(e){this.control=e}return e.prototype.print=function(e){this.printWindow=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),this.printWindow.moveTo(0,0),this.printWindow.resizeTo(screen.availWidth,screen.availHeight);var i={cancel:!1,htmlContent:this.getHTMLContent(e),name:"beforePrint"};this.control.trigger("beforePrint",i),i.cancel||t.print(i.htmlContent,this.printWindow)},e.prototype.getHTMLContent=function(e){var i=t.createElement("div");if(e)if(e instanceof Array)for(var o=0;o<e.length;o++){var r=e[o];i.appendChild(he(r).cloneNode(!0))}else e instanceof Element?i.appendChild(e.cloneNode(!0)):i.appendChild(he(e).cloneNode(!0));else i.appendChild(this.control.element.cloneNode(!0));for(var n=0;n<i.children.length;n++){for(var a=this.control.theme.indexOf("Dark")>-1||this.control.theme.indexOf("HighContrast")>-1?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)",l=i.children[n],s=0;s<l.children.length;s++){var h=void 0,c=!1;l.id.indexOf("_stockChart_svg")>-1?(h=l.children[0].getAttribute("fill"),c=!0):l.children[s].id.indexOf("_svg")>-1&&(h=l.children[s].children[0].getAttribute("fill"),c=!0),c&&(h="transparent"===h?a:h,l.children[s].children[0].setAttribute("fill",h))}i[n]=l}return i},e}(),er=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),tr=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ir=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return er(i,e),tr([t.Property()],i.prototype,"start",void 0),tr([t.Property()],i.prototype,"end",void 0),tr([t.Property([])],i.prototype,"colors",void 0),tr([t.Property("")],i.prototype,"label",void 0),i}(t.ChildProperty),or=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return er(i,e),tr([t.Property(!1)],i.prototype,"enable",void 0),tr([t.Property("")],i.prototype,"dashArray",void 0),tr([t.Complex({color:null,width:1},hi)],i.prototype,"line",void 0),tr([t.Property("Both")],i.prototype,"lineType",void 0),tr([t.Property("")],i.prototype,"verticalLineColor",void 0),tr([t.Property("")],i.prototype,"horizontalLineColor",void 0),tr([t.Property(1)],i.prototype,"opacity",void 0),tr([t.Property(!1)],i.prototype,"snapToData",void 0),tr([t.Property(!1)],i.prototype,"highlightCategory",void 0),i}(t.ChildProperty),rr=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return er(i,e),tr([t.Property(!1)],i.prototype,"enableSelectionZooming",void 0),tr([t.Property(!1)],i.prototype,"enablePinchZooming",void 0),tr([t.Property(!1)],i.prototype,"showToolbar",void 0),tr([t.Property(!1)],i.prototype,"enableMouseWheelZooming",void 0),tr([t.Property(!0)],i.prototype,"enableDeferredZooming",void 0),tr([t.Property("XY")],i.prototype,"mode",void 0),tr([t.Property(["Zoom","ZoomIn","ZoomOut","Pan","Reset"])],i.prototype,"toolbarItems",void 0),tr([t.Property(!1)],i.prototype,"enablePan",void 0),tr([t.Property(!1)],i.prototype,"enableScrollbar",void 0),tr([t.Property(!1)],i.prototype,"enableAnimation",void 0),tr([t.Complex({},Xi)],i.prototype,"toolbarPosition",void 0),tr([t.Complex({},ri)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),nr=function(e){function o(i,o){var r=e.call(this,i,o)||this;return r.rotatedDataLabelCollections=[],r.animated=!1,r.isPointMouseDown=!1,r.isScrolling=!1,r.checkResize=0,r.visible=0,r.clickCount=0,r.maxPointCount=0,r.singleClickTimer=0,r.chartAreaType="Cartesian",r.isRtlEnabled=!1,r.isCrosshair=!0,r.chartid=57723,r.isLegendClicked=!1,r.isZoomed=!1,r.previousTargetId="",r.currentPointIndex=0,r.currentSeriesIndex=0,r.currentLegendIndex=0,r.previousPageX=null,r.previousPageY=null,r.allowPan=!1,r.pointsRemoved=!1,r.pointsAdded=!1,r.zoomRedraw=!1,t.setValue("mergePersistData",r.mergePersistChartData,r),r}return er(o,e),o.prototype.mergePersistChartData=function(){var e=window.localStorage.getItem(this.getModuleName()+this.element.id);if(!t.isNullOrUndefined(e)&&""!==e){var i=JSON.parse(e),o=Object.keys(i);this.isProtectedOnChange=!0;for(var r=0,n=o;r<n.length;r++){var a=n[r];"object"!=typeof this[a]||t.isNullOrUndefined(this[a])?this[a]=i[a]:t.extend(this[a],i[a])}this.isProtectedOnChange=!1}},o.prototype.isIdHasSpecialCharacter=function(e){var t=/^[A-Za-z ]+$/,i=/^[0-9 ]+$/,o="";if(t.test(e))return e;var r=0;i.test(e[0])&&(o+="\\3"+e[0],r=1);for(var n=r;n<e.length;n++)t.test(e[n])||-1!==e.indexOf("-")||-1!==e.indexOf("_")||-1!==e.indexOf("\\")||i.test(e[n])?o+=e[n]:o+="\\"+e[n];return o},o.prototype.preRender=function(){this.element.id=this.isIdHasSpecialCharacter(this.element.id),this.allowServerDataBinding=!1,this.markerIndex=0,this.unWireEvents(),this.initPrivateVariable(),this.setCulture(),this.wireEvents(),this.stockChart&&(null===this.stockChart.tooltip.header&&(this.tooltip.header=this.stockChart.theme.indexOf("Tailwind3")>-1?"${point.x}":"<b>${point.x}</b>"),null===this.stockChart.tooltip.format&&(this.tooltip.format=this.stockChart.theme.indexOf("Tailwind3")>-1?"High : ${point.high}<br/>Low : ${point.low}<br/>Open : ${point.open}<br/>Close : ${point.close}":"High : <b>${point.high}</b><br/>Low : <b>${point.low}</b><br/>Open : <b>${point.open}</b><br/>Close : <b>${point.close}</b>")),this.element.setAttribute("dir",this.enableRtl?"rtl":"ltr")},o.prototype.initPrivateVariable=function(){if(this.animateSeries=!0,this.delayRedraw=!1,this.dragY=null,this.horizontalAxes=[],this.verticalAxes=[],this.refreshAxis(),this.refreshDefinition(this.rows),this.refreshDefinition(this.columns),this.tooltipModule&&(this.tooltipModule.previousPoints=[]),this.element.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.element.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.element.style.outline="none",this.element.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.title+". Syncfusion interactive chart."),this.element.classList.contains("e-chart-focused")||this.element.setAttribute("class",this.element.getAttribute("class")+" e-chart-focused"),""===this.element.id){for(var e=document.getElementsByClassName("e-chart").length,t="chart_"+this.chartid+"_"+e;document.getElementById(t);)e++,t="chart_"+this.chartid+"_"+e;this.element.id="chart_"+this.chartid+"_"+e}this.svgId=this.stockChart?this.stockChart.element.id+"_stockChart_chart":this.element.id+(this.enableCanvas?"_canvas":"_svg")},o.prototype.render=function(){var e=this;this.svgRenderer=new i.SvgRenderer(this.element.id);var t={chart:this,theme:this.theme,name:ki,cancel:!1};this.stockChart?(this.isRtlEnabled="rtl"===window.getComputedStyle(document.querySelector("body")).direction,this.cartesianChartRendering(t)):this.trigger(ki,t,function(){t.cancel||e.cartesianChartRendering(t)}),this.applyZoomkit()},o.prototype.cartesianChartRendering=function(e){this.setTheme(),this.createChartSvg(),this.markerRender=new Uo(this),this.calculateAreaType(),this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.calculateVisibleAxis(),this.processData(),this.renderComplete(),this.mouseMoveEvent(),this.allowServerDataBinding=!0},o.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},o.prototype.animate=function(e){if(this.redraw=!0,this.animated=!0,this.duration=e||1e3,this.tooltipModule)this.tooltipModule.removeHighlightedMarker(this.tooltipModule.previousPoints,!0);else if(this.markerRender.previousPoints)for(var t=0;t<this.markerRender.previousPoints.length;t++)this.markerRender.removeHighlightedMarker(this.markerRender.previousPoints[t].series,this.markerRender.previousPoints[t].point)},o.prototype.refreshBound=function(){this.rotatedDataLabelCollections=[],this.legendModule&&this.legendSettings.visible&&this.legendModule.getLegendOptions(this.visibleSeries,this),this.tooltip.enable&&this.tooltipModule&&(this.tooltipModule.previousPoints=[]),this.calculateStackValues(),this.calculateBounds();var e=this.series.every(function(e){return 0===(e.dataSource||[]).length});if(this.stockChart&&!this.stockChart.rangeFound&&(this.stockChart.enablePeriodSelector||this.stockChart.enableSelector))return null;this.renderElements(),this.renderNoDataTemplate(e&&!t.isNullOrUndefined(this.noDataTemplate)),g("chartmeasuretext"),this.removeSelection(),this.markerRender&&this.markerRender.mergeXvalues(this.visibleSeries)},o.prototype.renderNoDataTemplate=function(e){var o=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(o&&o.remove(),e){var r=this.enableHtmlSanitizer?this.sanitize(this.noDataTemplate):this.noDataTemplate,n=t.createElement("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),a=0,l=this.element.querySelector("#"+this.element.id+"_ChartBorder");if(l){var s=l.getAttribute("stroke-width");a=s?parseFloat(s):0}var h=a,c=a,d=this.availableSize.width-2*a,p=this.availableSize.height-2*a;if(this.title){var u=(this.title?i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height:0)+(this.subTitle?i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height:0)+(this.subTitle?5:0);switch(this.titleStyle.position){case"Top":h=u+11,p-=u+11;break;case"Left":c=u+11,d-=u+11;break;case"Bottom":p=p-u-16;break;case"Right":d=d-u-11}}n.style.cssText="position: absolute; top: "+h+"px; left: "+c+"px; width: "+d+"px;\n            height: "+p+"px; z-index: 1;\n        ",he(this.element.id+"_Secondary_Element").appendChild(n),ue(n,null,r,this,null,null,this.element.id+"_NoData")}},o.prototype.calculateStackValues=function(){for(var e,t=!1,i=0,o=this.visibleSeries.length;i<o;i++)(e=this.visibleSeries[i]).visible&&(e.position=e.rectCount=void 0),-1===e.type.indexOf("Stacking")&&(-1===e.drawType.indexOf("Stacking")||"PolarRadar"!==this.chartAreaType)||t||(e.calculateStackedValue(e.type.indexOf("100")>-1,this),t=!0)},o.prototype.removeSelection=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var o=t[e];if(o.visible)for(var r=0,n=o.points;r<n.length;r++)n[r].isSelect=!1}he(this.element.id+"_ej2_drag_multi_group")?(this.selectionMode.indexOf("Drag")>-1&&(this.selectionModule.filterArray=[]),g(this.element.id+"_ej2_drag_multi_group"),this.selectionModule.calculateDragSelectedElements(this,new i.Rect(0,0,0,0),!0)):he(this.element.id+"_ej2_drag_group")&&("Lasso"!==this.selectionMode&&(this.selectionModule.filterArray=[]),g(this.element.id+"_ej2_drag_group"),this.selectionModule.calculateDragSelectedElements(this,new i.Rect(0,0,0,0),!0))},o.prototype.renderElements=function(){this.renderBorder(),this.renderTitle(),this.renderAreaBorder(),this.renderSeriesElements(this.renderAxes()),this.renderLegend(),this.applyZoomkit(),this.performSelection(),this.setSecondaryElementPosition(),(this.xAxisLabelTemplate||this.yAxisLabelTemplate)&&(this.xAxisLabelTemplate&&be(!1,he(this.element.id+"_Secondary_Element"),this.xAxisLabelTemplate,this.redraw),this.yAxisLabelTemplate&&be(!1,he(this.element.id+"_Secondary_Element"),this.yAxisLabelTemplate,this.redraw)),this.renderAnnotation(),this.stackLabels.visible&&this.visibleSeries.some(function(e){return e.type&&e.type.indexOf("Stacking")>-1})&&this.dataLabelModule&&this.dataLabelModule.renderStackLabels()},o.prototype.renderAxes=function(){this.yAxisElements=this.renderer.createGroup({id:this.element.id+"yAxisCollection"});var e;return this.rows.length>0&&this.columns.length>0&&(e=this.chartAxisLayoutPanel.renderAxes()),this.stripLineModule&&this.stripLineModule.renderStripLine(this,"Behind",this.axisCollections),e},o.prototype.renderLegend=function(){if(this.legendModule&&this.legendModule.legendCollections.length&&this.legendSettings.visible){this.legendModule.calTotalPage=!0;var e=this.legendSettings.border.width,t=this.legendModule.legendBounds,o=new i.Rect(t.x,t.y,t.width,t.height);this.enableCanvas&&(this.canvasRender.ctx.beginPath(),o=new i.Rect(o.x-e/2,o.y-e/2,o.width+e,o.height+e),this.renderer.canvasClip(o)),this.legendModule.renderLegend(this,this.legendSettings,t),this.enableCanvas&&this.renderer.canvasRestore()}this.redraw||(this.stockChart?he(this.stockChart.chartObject.id)||this.stockChart.mainObject.appendChild(this.svgObject):this.element.appendChild(this.svgObject))},o.prototype.setSecondaryElementPosition=function(){var e=he(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=he(this.svgId).getBoundingClientRect();e.style.left=Math.max((i.left-t.left)/this.scaleX,0)+"px",e.style.top=Math.max((i.top-t.top)/this.scaleY,0)+"px"}},o.prototype.initializeModuleElements=function(){this.dataLabelCollections=[],this.lastValueLabelCollections=[];var e=this.element.id;this.series.length&&(this.seriesElements=this.svgRenderer.createGroup({id:e+"SeriesCollection"})),this.indicators.length&&(this.indicatorElements=this.renderer.createGroup({id:e+"IndicatorCollection"})),this.hasTrendlines()&&(this.trendLineElements=this.renderer.createGroup({id:e+"TrendLineCollection"})),this.lastValueLabelModule&&(this.lastValueLabelElements=this.renderer.createGroup({id:e+"LastValueLabelCollection"})),this.dataLabelElements=this.renderer.createGroup({id:e+"DataLabelCollection"})},o.prototype.hasTrendlines=function(){for(var e,t=0,i=this.series;t<i.length&&!(e=!!i[t].trendlines.length);t++);return e},o.prototype.renderSeriesElements=function(e){this.initializeModuleElements();var t=this.element.id;if("g"!==this.element.tagName){var i=Ve(this.redraw,t+"_Secondary_Element")||this.createElement("div");i.id=t+"_Secondary_Element",i.style.cssText="position: relative",be(!1,this.element,i,this.redraw)}if(this.enableCanvas){var o=document.getElementById(t+"_Secondary_Element");o=o||this.createElement("div",{id:t+"_Secondary_Element",attrs:{style:"position: relative; left:0px; top:0px"}});var r=this.svgRenderer.createSvg({id:t+"_tooltip_svg",width:this.availableSize.width,height:this.availableSize.height});r.style.cssText="position: absolute; pointer-events: none",o.appendChild(r)}if(this.tooltip.enable&&!this.stockChart&&be(this.enableCanvas,this.svgObject,this.renderer.createGroup({id:t+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.rows.length>0&&this.columns.length>0){if(this.initializeIndicator(),this.initializeTrendLine(),this.renderSeries(),this.enableCanvas)for(var n=0,a=this.visibleSeries;n<a.length;n++){var l=a[n];l.lastValueLabel.enable&&this.lastValueLabelModule.render(l,this,l.lastValueLabel)}this.trendLineElements&&be(this.enableCanvas,this.svgObject,this.trendLineElements,this.redraw),this.appendElementsAfterSeries(e)}},o.prototype.renderSeries=function(){var e;this.enableCanvas&&this.renderer.canvasClip(this.chartAxisLayoutPanel.seriesClipRect);for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];(e="TrendLine"===o.category?this.series[o.sourceIndex].trendlines[o.index].visible:o.visible)||o.lastValueLabelElement&&(g(o.lastValueLabelElement.id),o.lastValueLabelElement=null),e?(this.visible++,j(o,this.enableCanvas),this.enableCanvas&&this.renderCanvasSeries(),o.renderSeries(this)):o.isLegendClicked&&(o.type.indexOf("StackingArea")>-1||o.type.indexOf("StackingBar")>-1||o.type.indexOf("StackingColumn")>-1)&&(j(o,this.enableCanvas),o.renderSeries(this))}this.enableCanvas&&this.renderer.canvasRestore(),this.visible=0;var r={id:this.element.id+"_ChartAreaClipRect_",x:this.chartAxisLayoutPanel.seriesClipRect.x,y:this.chartAxisLayoutPanel.seriesClipRect.y,width:this.chartAxisLayoutPanel.seriesClipRect.width,height:this.chartAxisLayoutPanel.seriesClipRect.height,fill:"transparent","stroke-width":1,stroke:"Gray"};if(!(!this.seriesElements||r.height<0||r.width<0)){var n;n="PolarRadar"===this.chartAreaType?J(this.redraw,r,this.renderer,"drawCircularClipPath"):J(this.redraw,r,this.renderer),this.enableCanvas||this.seriesElements.appendChild(n);var a=document.getElementById(this.element.id+"_series_svg");a?be(!1,a,this.seriesElements,this.redraw):be(this.enableCanvas,this.svgObject,this.seriesElements,this.redraw)}},o.prototype.renderCanvasSeries=function(){var e;e=this.enableCanvas?e:this.svgObject},o.prototype.initializeIndicator=function(){for(var e=0,t=this.indicators;e<t.length;e++){var i=t[e];this[U(i.type)+"IndicatorModule"]&&this[U(i.type)+"IndicatorModule"].createIndicatorElements(this,i,i.index)}this.indicatorElements&&be(this.enableCanvas,this.svgObject,this.indicatorElements,this.redraw)},o.prototype.initializeTrendLine=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.trendlines.length&&this.trendLineModule.getTrendLineElements(i,this)}},o.prototype.appendElementsAfterSeries=function(e){"PolarRadar"===this.chartAreaType&&be(this.enableCanvas,this.svgObject,this.yAxisElements,this.redraw),be(this.enableCanvas,this.svgObject,e,this.redraw),(this.zoomModule&&this.zoomSettings.enableScrollbar&&this.scrollElement&&this.scrollElement.childElementCount||this.scrollElement&&this.scrollElement.childElementCount)&&be(!1,he(this.element.id+"_Secondary_Element"),this.scrollElement,this.redraw),this.stripLineModule&&this.stripLineModule.renderStripLine(this,"Over",this.axisCollections),this.tooltip.enable&&!this.stockChart||be(this.enableCanvas,this.svgObject,this.renderer.createGroup({id:this.element.id+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.stockChart&&this.stockChart.calculateStockEvents(),this.lastValueLabelElements&&this.lastValueLabelElements.hasChildNodes()&&be(this.enableCanvas,this.svgObject,this.lastValueLabelElements,this.redraw)},o.prototype.applyZoomkit=function(){"PolarRadar"!==this.chartAreaType&&(this.redraw&&!this.zoomRedraw||!this.zoomModule||this.zoomSettings.enablePan&&!this.zoomModule.performedUI&&!this.zoomSettings.showToolbar||this.zoomModule.applyZoomToolkit(this,this.axisCollections))},o.prototype.renderAnnotation=function(){this.annotationModule&&this.annotationModule.renderAnnotations(he((this.stockChart?this.stockChart.element.id:this.element.id)+"_Secondary_Element"))},o.prototype.performSelection=function(){var e=[];this.selectionModule&&(e=t.extend([],this.selectionModule.selectedDataIndexes,null,!0),this.selectionModule.invokeSelection(this)),this.highlightModule&&this.highlightModule.invokeHighlight(this),e.length>0&&(this.selectionModule.selectedDataIndexes=e,this.selectionModule.redrawSelection(this,this.selectionMode))},o.prototype.processData=function(e){void 0===e&&(e=!0),this.visibleSeriesCount=0;for(var i=!0,o=0,r=0,n=this.visibleSeries;r<n.length;r++)(p=n[r]).visible||this.legendSettings.visible?"Indicator"!==p.category&&"TrendLine"!==p.category&&this.initializeDataModule(p):this.visibleSeriesCount++;for(var a=0,l=this.indicators;a<l.length;a++){var s=l[a];if(s.dataSource){var h=s;this.initializeDataModule(h),i=!1}}if(e&&(!this.visibleSeries.length||this.visibleSeriesCount===this.visibleSeries.length&&i)&&(this.refreshBound(),this.trigger("loaded",{chart:this})),!this.stockChart&&this.visibleSeries.length>0)for(var c=0,d=this.visibleSeries;c<d.length;c++){var p=d[c];t.isNullOrUndefined(p.points)||(this.maxPointCount=Math.max(o,p.points.length),o=p.points.length)}},o.prototype.initializeDataModule=function(e){e.xData=[],e.yData=[];var t;t=this.isAngular?Object.keys(e.dataSource).length?e.dataSource:this.dataSource:e.dataSource||this.dataSource,e.dataModule=new No(t,e.query),e.points=[],e.refreshDataManager(this)},o.prototype.calculateBounds=function(){var e=this.margin,t=0,o=0,r="Top"===this.titleStyle.position||"Bottom"===this.titleStyle.position&&!this.legendSettings.visible?15:5,n=e.left+this.border.width,a=this.availableSize.width-n-e.right-this.border.width,l=0;this.titleCollection=[],this.subTitleCollection=[],this.title?(this.titleCollection=Ge(this.title,this.titleStyle,a,this.enableRtl,this.themeStyle.chartTitleFont),t=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length+r,this.subTitle&&(this.subTitleCollection=Ge(this.subTitle,this.subTitleStyle,a,this.enableRtl,this.themeStyle.chartSubTitleFont),o=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length+r)):"Top"!==this.legendSettings.position&&this.border.width&&(l=10);var s=e.top+l+this.border.width+.5*this.chartArea.border.width,h=this.availableSize.height-s-this.border.width-e.bottom,c=o+t+this.titleStyle.border.width+this.subTitleStyle.border.width;switch(this.titleStyle.position){case"Top":s+=c,h-=c;break;case"Bottom":h-=c;break;case"Left":n+=c,a-=c;break;case"Right":n-=this.titleStyle.border.width+this.subTitleStyle.border.width,a-=c}if(this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?s+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(n+=this.stockChart.stockLegendModule.legendBounds.width)),this.scrollBarModule&&(this.zoomModule&&this.zoomSettings.enableScrollbar&&this.zoomModule.isZoomed||this.scrollSettingEnabled))for(var d=0,p=this.axisCollections.length;d<p;d++){var u=this.axisCollections[d];"Horizontal"===u.orientation&&"Bottom"===u.scrollbarSettings.position?h-=u.scrollbarSettings.height+10:"Horizontal"===u.orientation&&"Top"===u.scrollbarSettings.position?(h-=u.scrollbarSettings.height+10,s+=u.scrollbarSettings.height+10):"Vertical"===u.orientation&&"Right"===u.scrollbarSettings.position?a-=u.scrollbarSettings.height+10:"Vertical"===u.orientation&&"Left"===u.scrollbarSettings.position&&(a-=u.scrollbarSettings.height+10,n+=u.scrollbarSettings.height+10)}this.initialClipRect=new i.Rect(n,s,a,h),this.legendModule&&this.legendSettings.visible&&this.legendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null),this.initialClipRect.y+=this.chartArea.margin.top,this.initialClipRect.height-=this.chartArea.margin.top+this.chartArea.margin.bottom,this.initialClipRect.x+=this.chartArea.margin.left,this.initialClipRect.width-=this.chartArea.margin.left+this.chartArea.margin.right,this.chartAxisLayoutPanel.measureAxis(this.initialClipRect)},o.prototype.print=function(e){var t=new Jo(this),i=this.width;"chart"===this.getModuleName()&&parseInt(this.width,10)>=80&&this.width.indexOf("%")>-1&&(this.width="80%",this.dataBind()),t.print(e),"chart"===this.getModuleName()&&parseInt(this.width,10)>=80&&this.width.indexOf("%")>-1&&(this.width=i,this.dataBind())},o.prototype.initTrendLines=function(){this.isProtectedOnChange=!0;for(var e=0,t=this.visibleSeries;e<t.length;e++)for(var i=t[e],o=0,r=0,n=i.trendlines;r<n.length;r++){var a=n[r];this.trendLineModule&&(a.index=o,a.sourceIndex=i.index,this.trendLineModule.initSeriesCollection(a,this),a.targetSeries&&(a.targetSeries.xAxisName=i.xAxisName,a.targetSeries.yAxisName=i.yAxisName,this.visibleSeries.push(a.targetSeries))),o++}this.isProtectedOnChange=!1},o.prototype.calculateAreaType=function(){var e=this.series[0];this.chartArea.border.width=this.stockChart?0:this.chartArea.border.width,e&&(this.requireInvertedAxis=-1!==e.type.indexOf("Bar")&&!this.isTransposed||-1===e.type.indexOf("Bar")&&this.isTransposed&&"PolarRadar"!==this.chartAreaType),this.chartAxisLayoutPanel="PolarRadar"===this.chartAreaType?this.polarSeriesModule||this.radarSeriesModule:new wo(this)},o.prototype.calculateVisibleAxis=function(){var e,t=[this.primaryXAxis,this.primaryYAxis];t="Cartesian"===this.chartAreaType?t.concat(this.axes):t,this.paretoSeriesModule&&this.series[0]&&"Pareto"===this.series[0].type&&(t=t.concat(this.paretoSeriesModule.paretoAxes)),this.axisCollections=[],this.zoomModule&&(this.zoomModule.isPanning=this.zoomModule.isAxisZoomed(t)&&this.zoomSettings.enablePan,this.svgObject.setAttribute("cursor",this.zoomModule.isPanning?"pointer":"auto"),this.scrollBarModule&&(this.scrollBarModule.axes=t)),this.scrollSettingEnabled&&this.scrollBarModule&&(this.scrollBarModule.axes=t);for(var i=0,o=t.length;i<o;i++){(e=t[i]).series=[],e.multiLevelLabelHeight=0,e.labels=[],e.indexLabels={},e.orientation=0===i&&0===this.visibleSeries.length?this.requireInvertedAxis?"Vertical":"Horizontal":1===i&&0===this.visibleSeries.length?this.requireInvertedAxis?"Horizontal":"Vertical":e.orientation;for(var r=0,n=this.visibleSeries;r<n.length;r++){var a=n[r];this.initAxis(a,e,!0),"Pareto"===a.category&&"Line"===a.type&&a.yAxis&&(a.yAxis.internalVisibility=a.paretoOptions.showAxis)}for(var l=0,s=this.indicators;l<s.length;l++){var h=s[l];this.initAxis(h,e,!1)}this.scrollBarModule&&!e.zoomingScrollBar&&this.scrollBarModule.injectTo(e,this),null!=e.orientation&&this.axisCollections.push(e)}this.rows.length>0&&this.columns.length>0&&this.chartAxisLayoutPanel.measure()},o.prototype.initAxis=function(e,t,i){e.xAxisName===t.name||null==e.xAxisName&&"primaryXAxis"===t.name?(t.orientation=this.requireInvertedAxis?"Vertical":"Horizontal",e.xAxis=t,i&&t.series.push(e)):(e.yAxisName===t.name||null==e.yAxisName&&"primaryYAxis"===t.name)&&(t.orientation=this.requireInvertedAxis?"Horizontal":"Vertical",e.yAxis=t,i&&t.series.push(e))},o.prototype.initTechnicalIndicators=function(){for(var e=0,t=0,i=this.indicators;t<i.length;t++){var o=i[t],r=o,n=U(r.type);if(this[n+"IndicatorModule"]){r.index=e,this[n+"IndicatorModule"].initSeriesCollection(r,this);for(var a=0,l=r.targetSeries;a<l.length;a++){var s=l[a];(o.seriesName||o.dataSource)&&this.visibleSeries.push(s)}}e++}},o.prototype.refreshTechnicalIndicator=function(e){if(this.indicators.length){if(e instanceof Bo&&"Indicator"!==e.category)for(var t=0,i=this.indicators;t<i.length;t++){var o=i[t];o.seriesName!==e.name||o.dataSource||o.setDataSource(e,this)}else e instanceof Ko&&e.setDataSource(e instanceof Bo?e:null,this)}},o.prototype.calculateVisibleSeries=function(){var e;this.visibleSeries=[];for(var t=this.palettes.length?this.palettes:it(this.theme),i=t.length,o=this.series.sort(function(e,t){return e.zOrder-t.zOrder}),r=0,n=o.length;r<n;r++){switch(e=o[r],e.category="Pareto"===o[0].type?"Pareto":"Series",e.index=r,e.interior=e.fill||t[r%i],e.marker.shape||!e.marker.visible&&"Scatter"!==e.type&&"Scatter"!==e.drawType||(e.marker.shape=jo[this.markerIndex%10],this.markerIndex++),this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.type){case"Bar":case"StackingBar":case"StackingBar100":if(-1===o[0].type.indexOf("Bar"))continue;break;case"Polar":case"Radar":if("PolarRadar"!==this.chartAreaType)continue;if("PolarRadar"===this.chartAreaType&&(null!==e.xAxisName&&this.primaryXAxis.name!==e.xAxisName||null!==e.yAxisName&&this.primaryYAxis.name!==e.yAxisName))continue;break;case"Pareto":this.visibleSeries.push(e),this.paretoSeriesModule.initSeries(e,this);continue;default:if("PolarRadar"===this.chartAreaType||o[0].type.indexOf("Bar")>-1)continue}this.visibleSeries.push(e),o[r]=e}},o.prototype.isSecondaryAxis=function(e){return this.axes.indexOf(e)>-1},o.prototype.renderTitle=function(){var e,t=this.margin;if(this.title){var o=tt(this.titleStyle.textAlignment,this.enableRtl),r=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont);e=new i.Rect(t.left,0,this.availableSize.width-t.left-t.right,0);var n=this.titleStyle.border.width,a=this.margin.top+3*r.height/4,l=Ye(e,this.titleStyle||this.themeStyle.chartTitleFont)+n,s=void 0,h=this.titleStyle.textAlignment,c=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":a+=.5*n,l+="start"===o?.5*n+this.border.width:"end"===o?2*-n-this.border.width:0;break;case"Bottom":l+="start"===o?.5*n+this.border.width:"end"===o?2*-n-this.border.width:0,a=this.availableSize.height-this.margin.bottom-c.height-r.height/2-.5*n-.5*this.subTitleStyle.border.width;break;case"Left":l=this.margin.left+3*r.height/4+.5*n,a="Near"===h?t.bottom+.5*n+this.border.width:"Far"===h?this.availableSize.height-t.bottom-.5*n-this.border.width:this.availableSize.height/2,o="Near"===h?"end":"Far"===h?"start":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,s="rotate(-90,"+l+","+a+")";break;case"Right":l=this.availableSize.width-this.margin.right-3*r.height/4-.5*n,a="Near"===h?t.bottom+.5*n+this.border.width:"Far"===h?this.availableSize.height-t.bottom-.5*n-this.border.width:this.availableSize.height/2,o="Near"===h?"start":"Far"===h?"end":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,s="rotate(90,"+l+","+a+")";break;case"Custom":l=this.titleStyle.x,a=this.titleStyle.y,o="middle"}var d={id:this.element.id+"_ChartTitleBorder",x:l-("middle"===o?r.width/2+5:"end"===o?r.width+5:5),y:a-r.height+r.height/4,rx:this.titleStyle.border.cornerRadius,ry:this.titleStyle.border.cornerRadius,width:r.width+10,height:r.height*this.titleCollection.length,fill:this.titleStyle.background,"stroke-width":n,stroke:this.titleStyle.border.color,transform:s||"",d:""},p=Ve(this.redraw,this.element.id+"_ChartTitleBorder",d,this.renderer)||this.renderer.drawRectangle(d);be(this.enableCanvas,this.svgObject,p,this.redraw);var u=new i.TextOption(this.element.id+"_ChartTitle",l,a,o,this.titleCollection,s,"auto"),g=Ve(this.redraw,this.element.id+"_ChartTitle",u,this.renderer)||je(this.renderer,u,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,null,null,null,null,null,null,null,null,this.enableCanvas,null,this.themeStyle.chartTitleFont);g&&!this.enableCanvas&&(g.setAttribute("tabindex",this.titleStyle.accessibility.focusable?String(this.titleStyle.accessibility.tabIndex):"-1"),g.style.outline="none",g.setAttribute("class","e-chart-focused"),g.setAttribute("role",this.titleStyle.accessibility.accessibilityRole),g.setAttribute("aria-label",this.titleStyle.accessibility.accessibilityDescription)),this.subTitle&&this.renderSubTitle(u)}},o.prototype.renderSubTitle=function(e){for(var t=0,o=0,r=0,n=0,a=this.titleStyle.textAlignment,l=0,s=this.titleCollection;l<s.length;l++){var h=s[l];t=(r=i.measureText(h,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?r:t}for(var c=0,d=this.subTitleCollection;c<d.length;c++){var p=d[c];o=(n=i.measureText(p,this.subTitleStyle,this.themeStyle.chartSubTitleFont).width)>o?n:o}t=Math.max(r,o);var u=i.measureText(this.subTitleCollection.reduce(function(e,t){return e.length>t.length?e:t}),this.subTitleStyle,this.themeStyle.chartSubTitleFont),g=tt(this.subTitleStyle.textAlignment,this.enableRtl),m=new i.Rect("Center"===a?e.x-.5*t:"Far"===a?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(m.x="Center"===a?e.x-.5*t:"Far"===a?this.margin.left+3*u.height/4:e.x-t);var y=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont),f=e.y*e.text.length+u.height+5+this.titleStyle.border.width+.5*this.subTitleStyle.border.width;"Bottom"===this.titleStyle.position&&(f=e.y*e.text.length+5+y.height/2+u.height/2);var v={id:this.element.id+"_ChartSubTitleBorder",x:Ye(m,this.subTitleStyle)-("middle"===g?u.width/2+5:"end"===g?u.width+5:5),y:f-u.height+u.height/4,rx:this.subTitleStyle.border.cornerRadius,ry:this.subTitleStyle.border.cornerRadius,width:u.width+10,height:u.height*this.subTitleCollection.length,fill:this.subTitleStyle.background,"stroke-width":this.subTitleStyle.border.width,stroke:this.subTitleStyle.border.color,transform:e.transform,d:""},b=Ve(this.redraw,this.element.id+"_ChartSubTitleBorder",v,this.renderer)||this.renderer.drawRectangle(v);be(this.enableCanvas,this.svgObject,b,this.redraw);var x=new i.TextOption(this.element.id+"_ChartSubTitle",Ye(m,this.subTitleStyle),f,tt(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto"),S=Ve(this.redraw,this.element.id+"_ChartSubTitle",x,this.renderer)||je(this.renderer,x,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,null,null,null,null,null,null,null,null,this.enableCanvas,null,this.themeStyle.chartSubTitleFont);S&&!this.enableCanvas&&(S.setAttribute("tabindex",this.subTitleStyle.accessibility.focusable?String(this.subTitleStyle.accessibility.tabIndex):"-1"),this.subTitleStyle.accessibility.focusable&&(S.style.outline="none"),S.setAttribute("class","e-chart-focused"),S.setAttribute("role",this.subTitleStyle.accessibility.accessibilityRole),S.setAttribute("aria-label",this.subTitleStyle.accessibility.accessibilityDescription))},o.prototype.renderBorder=function(){var e=0,t=0,o=this.border.width,r=this.backgroundImage,n=r?"transparent":this.background||this.themeStyle.background;this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?t+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(e+=this.stockChart.stockLegendModule.legendBounds.width));var a=new co(this.element.id+"_ChartBorder",n,this.border,1,new i.Rect(.5*o+e,.5*o+t,this.availableSize.width-o,this.availableSize.height-o),0,0,"",this.border.dashArray);if(this.htmlObject=Ve(this.redraw,this.element.id+"_ChartBorder",a,this.renderer)||this.renderer.drawRectangle(a),this.htmlObject.setAttribute("aria-hidden","true"),be(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw),r){var l=new po(this.availableSize.height-o,this.availableSize.width-o,r,0,0,this.element.id+"_ChartBackground","visible","none");this.htmlObject=Ve(this.redraw,this.element.id+"_ChartBackground",l,this.renderer)||this.renderer.drawImage(l),be(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw)}},o.prototype.renderAreaBorder=function(){if("PolarRadar"===this.chartAreaType)return null;var e=he(this.element.id+"_ChartAreaBorder"),t=e?new i.Rect(+e.getAttribute("x"),+e.getAttribute("y"),+e.getAttribute("width"),+e.getAttribute("height")):null,o=new co(this.element.id+"_ChartAreaBorder",this.chartArea.background,{width:this.chartArea.border.width,color:this.chartArea.border.color||this.themeStyle.areaBorder},this.chartArea.opacity,this.chartAxisLayoutPanel.seriesClipRect,0,0,"",this.chartArea.border.dashArray);if(o.height<0||o.width<0)return null;this.htmlObject=this.renderer.drawRectangle(o),this.htmlObject.setAttribute("aria-hidden","true"),be(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw,!0,"x","y",null,null,!0,!0,t),this.htmlObject=null;var r=this.chartArea.backgroundImage;if(r){var n=this.chartArea.border.width,a=new po(this.initialClipRect.height-n,this.initialClipRect.width-n,r,this.initialClipRect.x,this.initialClipRect.y,this.element.id+"_ChartAreaBackground","visible","none");this.htmlObject=this.renderer.drawImage(a),be(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw,!0,"x","y",null,null,!0,!0)}},o.prototype.addSeries=function(e){for(var t=window.scrollY||document.documentElement.scrollTop,i=0,o=e;i<o.length;i++){var r=o[i];r=new Bo(this,"series",r,!0),this.series.push(r)}this.refresh(),window.scrollTo(0,t)},o.prototype.removeSeries=function(e){this.redraw=!1;var t=window.scrollY||document.documentElement.scrollTop,i=this.visibleSeries[e];i&&(i.xAxis.series.length<=1&&(i.xAxis.orientation=null),i.yAxis.series.length<=1&&(i.yAxis.orientation=null));for(var o=0;o<this.axes.length;o++)null===this.axes[o].orientation&&this.axes.splice(o,1);this.series.splice(e,1),this.refresh(),window.scrollTo(0,t)},o.prototype.clearSeries=function(){this.series=[];var e=window.scrollY||document.documentElement.scrollTop;this.refresh(),window.scrollTo(0,e)},o.prototype.addAxes=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o=new oo(this,"axes",o),this.axes.push(o)}this.refresh()},o.prototype.removeAxis=function(e){this.redraw=!1,this.axes.splice(e,1),this.refresh()},o.prototype.destroy=function(){this.scrollBarModule&&this.scrollBarModule.destroy(),this.markerRender&&(this.markerRender.removeEventListener(),this.markerRender=null),this.horizontalAxes=[],this.verticalAxes=[],this.visibleSeries=[],this.axisCollections=[],this.rotatedDataLabelCollections=[],this.seriesElements=null,this.chartAxisLayoutPanel=null,this.dataLabelCollections=null,this.visibleSeriesCount=null,this.dataLabelElements=null,this.lastValueLabelCollections=null,this.lastValueLabelElements=null,this.xAxisLabelTemplate=null,this.yAxisLabelTemplate=null,this.yAxisElements=null;var t=document.getElementById(this.element.id+"Keyboard_chart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),g("chartmeasuretext"),this.element&&(this.unWireEvents(),this.isReact&&this.clearTemplate(),e.prototype.destroy.call(this),this.enableCanvas||(this.removeSvg(),this.svgObject=null))},o.prototype.getModuleName=function(){return"chart"},o.prototype.getPersistData=function(){var e=["loaded","animationComplete","primaryXAxis","primaryYAxis"];return this.addOnPersist(e)},o.prototype.createChartSvg=function(){this.removeSvg(),Xe(this)},o.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.chartOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,"dblclick",this.chartOnDoubleClick),t.EventHandler.remove(this.element,"contextmenu",this.chartRightClick),t.EventHandler.remove(this.element,r,this.mouseLeave),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.touchObject&&(this.touchObject.destroy(),this.touchObject=null)},o.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.chartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,"dblclick",this.chartOnDoubleClick,this),t.EventHandler.add(this.element,"contextmenu",this.chartRightClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),this.resizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.longPressBound=this.longPress.bind(this),this.touchObject=new t.Touch(this.element,{tapHold:this.longPressBound,tapHoldThreshold:500}),this.setStyle(this.element)}},o.prototype.chartRightClick=function(e){return!this.crosshair.enable||!this.crosshairModule||2!==e.buttons&&0!==e.which&&"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},o.prototype.setStyle=function(e){var t=this.zoomSettings,i=t.enableSelectionZooming||t.enablePinchZooming||"None"!==this.selectionMode||"None"!==this.highlightMode;e.style.touchAction=i?"none":"element",e.style.msTouchAction=i?"none":"element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},o.prototype.isOrientation=function(){return"orientation"in window&&"onorientationchange"in window},o.prototype.longPress=function(e){return this.mouseX=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientX:0,this.mouseY=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientY:0,this.startMove=!0,this.allowPan=!this.stockChart&&this.allowPan,this.setMouseXY(this.mouseX,this.mouseY),this.notify("tapHold",e),!1},o.prototype.setMouseXY=function(e,t){if(he(this.svgId)){var i=he(this.svgId).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.scaleX=i.width/this.availableSize.width,this.scaleY=i.height/this.availableSize.height,this.mouseY=(t-o.top-Math.max(i.top-o.top,0))/this.scaleY,this.mouseX=(e-o.left-Math.max(i.left-o.left,0))/this.scaleX,this.stockChart&&(this.mouseX+="Left"===this.stockChart.legendSettings.position?this.stockChart.stockLegendModule.legendBounds.width:0,this.mouseY+="Top"===this.stockChart.legendSettings.position?this.stockChart.stockLegendModule.legendBounds.height:0)}},o.prototype.export=function(e,t){this.exportModule&&(this.exportModule.export(e,t),this.afterExport&&this.exportModule.getDataUrl(this))},o.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,name:"resized",currentSize:new i.Size(0,0),previousSize:new i.Size(this.availableSize.width,this.availableSize.height)},o={name:"beforeResize",cancelResizedEvent:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger("beforeResize",o),o.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){if(e.isDestroyed||e.stockChart)return void clearTimeout(e.resizeTo);e.createChartSvg(),t.currentSize=e.availableSize,e.trigger("resized",t),e.refreshAxis(),e.refreshBound(),e.trigger("loaded",{chart:e})},500)),!1},o.prototype.mouseMove=function(e){var t,i,o;return!this.allowPan&&("touchmove"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,i=e.clientY),this.previousPageX=t,this.previousPageY=i,he(this.svgId)&&(this.setMouseXY(t,i),this.chartOnMouseMove(e)),!1)},o.prototype.mouseLeave=function(e){var t,i,o;return(!this.stockChart||!this.stockChart.onPanning)&&("touchleave"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY),this.previousPageX=null,this.previousPageY=null,this.setMouseXY(t,i),this.chartOnMouseLeave(e),!1)},o.prototype.chartOnMouseLeave=function(e){var i=e.target,o=t.Browser.isPointer?"pointerleave":"mouseleave";return this.trigger("chartMouseLeave",{target:i.id,x:this.mouseX,y:this.mouseY}),g(this.element.id+"_EJ2_AxisLabel_Tooltip"),this.isChartDrag=this.isPointMouseDown=!1,this.notify(o,e),!1},o.prototype.chartOnDoubleClick=function(e){var t=e.target;return this.trigger("chartDoubleClick",{target:t.id,x:this.mouseX,y:this.mouseY}),!1},o.prototype.chartKeyDown=function(e){var t="";return(this.isZoomed&&"Tab"===e.code||"Space"===e.code)&&e.preventDefault(),this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("Series")>-1||"Escape"===e.code)&&(t="ESC"),"None"!==this.highlightMode&&"Tab"===e.code&&this.previousTargetId.indexOf("_chart_legend_")>-1&&this.highlightModule&&this.highlightModule.removeLegendHighlightStyles(),!e.ctrlKey||"+"!==e.key&&"Equal"!==e.code&&"-"!==e.key&&"Minus"!==e.code?82===e.keyCode&&this.isZoomed?(e.preventDefault(),this.isZoomed=!1,t="R"):e.code.indexOf("Arrow")>-1&&(e.preventDefault(),t=this.isZoomed?e.code:""):(e.preventDefault(),this.isZoomed=this.zoomModule&&(this.zoomSettings.enableDeferredZooming||this.zoomSettings.enableSelectionZooming||this.zoomSettings.enablePinchZooming||this.zoomSettings.enableMouseWheelZooming),t=this.isZoomed?e.code:""),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},o.prototype.chartKeyUp=function(e){var t,i,o="",r=e.target.id,n=e.target,a=he(this.element.id+"_ChartTitle"),l=he(this.element.id+"SeriesCollection"),s=he(this.element.id+"_chart_legend_translate_g"),h=he(this.element.id+"_chart_legend_pageup");if(a&&a.setAttribute("class","e-chart-focused"),l&&l.firstElementChild&&l.firstElementChild.children[1]&&((d=(c=l.firstElementChild.children[1]).getAttribute("class"))&&-1===d.indexOf("e-chart-focused")?d+=" e-chart-focused":d||(d="e-chart-focused"),c.setAttribute("class",d)),s){var c=s.firstElementChild,d=c.getAttribute("class");d&&-1===d.indexOf("e-chart-focused")?d+=" e-chart-focused":d||(d="e-chart-focused"),c.setAttribute("class",d)}if(h&&h.setAttribute("class","e-chart-focused"),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Series_")>-1&&-1===r.indexOf("_Series_")){t=he(this.element.id+"SeriesCollection");(this.previousTargetId.indexOf("_Symbol")>-1?he(this.element.id+"SymbolGroup"+this.currentSeriesIndex):t.children[this.currentSeriesIndex])&&(this.previousTargetId.indexOf("_Symbol")>-1?he(this.element.id+"SymbolGroup"+this.currentSeriesIndex).children[this.currentPointIndex+1]:this.previousTargetId.indexOf("_Point_")>-1?t.children[this.currentSeriesIndex].children[this.currentPointIndex+1]:t.children[this.currentSeriesIndex]),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===r.indexOf("_chart_legend_page")&&-1===r.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,he(this.element.id+"_chart_legend_pageup")):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===r.indexOf("_chart_legend_g_")&&(t=he(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));if(this.previousTargetId=r,r.indexOf("SeriesGroup")>-1){this.currentSeriesIndex=+r.split("SeriesGroup")[1],n.removeAttribute("tabindex"),n.blur(),n.children.length>1&&-1===n.children[1].id.indexOf("_Point_")&&(i=he(this.element.id+"SymbolGroup"+r.split("SeriesGroup")[1]));var p=null;i&&i.children.length>1?p=i.children[1]:n.children.length>1&&(p=n.children[1]),p&&(r=this.focusChild(p))}else r.indexOf("_ChartTitle")>-1&&this.setNavigationStyle(r);o=r!==this.element.id?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=r,r.indexOf("_chart_legend_page")>-1)"ArrowLeft"===e.code?(he(this.element.id+"_chart_legend_pagedown").removeAttribute("tabindex"),this.focusChild(he(this.element.id+"_chart_legend_pageup"))):"ArrowRight"===e.code&&(he(this.element.id+"_chart_legend_pageup").removeAttribute("tabindex"),this.focusChild(he(this.element.id+"_chart_legend_pagedown")));else if(r.indexOf("_chart_legend_")>-1){var u=n.parentElement.children;u[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,u.length);var g=u[this.currentLegendIndex];this.focusChild(g),this.removeNavigationStyle(),this.setNavigationStyle(g.id),r=g.children[1].id,o="None"!==this.highlightMode?"ArrowMove":""}else if(r.indexOf("_Series_")>-1){t=n.parentElement.parentElement;var m=e.target;if(n.removeAttribute("tabindex"),n.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code){for(var y=[],f=0;f<t.children.length;f++)t.children[f].id.indexOf("SeriesGroup")>-1&&y.push(+t.children[f].id.split("SeriesGroup")[1]);this.currentSeriesIndex=y.indexOf(this.currentSeriesIndex)+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=y[this.getActualIndex(this.currentSeriesIndex,y.length)]}else this.currentPointIndex+="ArrowUp"===e.code?1:-1;r.indexOf("_Symbol")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"SymbolGroup"+this.currentSeriesIndex).childElementCount-1),m=he(this.element.id+"_Series_"+this.currentSeriesIndex+"_Point_"+this.currentPointIndex+"_Symbol")):r.indexOf("_Point_")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"SeriesGroup"+this.currentSeriesIndex).childElementCount-1),m=he(this.element.id+"_Series_"+this.currentSeriesIndex+"_Point_"+this.currentPointIndex)),r=this.focusChild(m),o="ArrowMove"}}else"Enter"!==e.code&&"Space"!==e.code||!(r.indexOf("_chart_legend_")>-1||r.indexOf("_Point_")>-1)||(r=r.indexOf("_chart_legend_page")>-1?r:r.indexOf("_chart_legend_")>-1?n.children[1].id:r,o="Enter");return""!==o&&this.chartKeyboardNavigations(e,r,o),!1},o.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},o.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},o.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-chart-focused")?t="e-chart-focused "+t:t||(t="e-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!t.isNullOrUndefined(this.element)&&(this.element.focus(),this.setNavigationStyle(this.element.id))},o.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&(t.style.setProperty("outline",this.focusBorderWidth+"px solid "+(this.focusBorderColor||this.themeStyle.tabColor)),t.style.setProperty("margin",this.focusBorderMargin+"px"))},o.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*=_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_ChartTitle],g[id*=_chart_legend],  text[id*=_ChartSubTitle], div[id*=_Annotation], g[id*=IndicatorGroup], g[id*=_Zooming_Zoom], g[id*=_Zooming_ZoomIn], g[id*=_Zooming_ZoomOut], g[id*=_Zooming_Pan], g[id*=_Zooming_Reset], path[id*=_TrendLine_]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},o.prototype.chartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,this.removeNavigationStyle(),(i.indexOf("Arrow")>-1||"Tab"===i)&&this.setNavigationStyle(t),i){case"Tab":case"ArrowMove":if(this.highlightModule&&this.highlightModule.removeLegendHighlightStyles(),t.indexOf("_Point_")>-1){var o=+t.split("_Series_")[1].split("_Point_")[0],r=+t.split("_Series_")[1].replace("_Symbol","").split("_Point_")[1],n=this.visibleSeries[o].points[r].symbolLocations[0];this.mouseX=n.x+this.initialClipRect.x-(this.visibleSeries[o].type.indexOf("StackingBar")>-1?this.visibleSeries[o].marker.height/2:0),this.mouseY=n.y+this.initialClipRect.y+(this.visibleSeries[o].type.indexOf("StackingColumn")>-1?this.visibleSeries[o].marker.height/2:0),this.highlightModule&&(this.highlightModule.highlightChart(document.getElementById(t),"mousemove"),this.highlightModule.completeSelection(document.getElementById(t),"mousemove")),this.tooltipModule&&this.tooltipModule.tooltip()}if(this.highlightModule&&"None"!==this.highlightMode){t=t.indexOf("_chart_legend_g_")>-1?document.getElementById(t).firstChild.id:t;for(var a=this.element.id+"_chart_legend",l=[a+"_text_",a+"_shape_marker_",a+"_shape_"],s=0;s<l.length;s++){var h=l[s];if(t.indexOf(h)>-1){document.getElementById(t).setAttribute("class",""),this.highlightModule.legendSelection(this,parseInt(t.split(h)[1],10),document.getElementById(t),"mousemove");break}}}break;case"Enter":case"Space":t.indexOf("_chart_legend_")>-1?(this.isLegendClicked=!0,this.legendModule.click(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id)):(this.selectionModule&&this.selectionModule.calculateSelectedElements(document.getElementById(t),"click"),this.setNavigationStyle(t));break;case"CtrlP":this.print();break;case"ESC":this.tooltipModule.removeTooltip(1);break;case"Equal":case"Minus":this.zoomModule.isZoomed=this.zoomModule.performedUI=!0,this.zoomModule.isPanning=this.isChartDrag=!1,"Equal"===i?this.zoomModule.toolkit.zoomInOutCalculation(1,this,this.axisCollections,this.zoomSettings.mode):this.zoomModule.toolkit.zoomInOutCalculation(-1,this,this.axisCollections,this.zoomSettings.mode),this.zoomModule.performZoomRedraw(this),this.element.focus();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":var c="ArrowUp"===i?10:"ArrowDown"===i?-10:0,d="ArrowLeft"===i?-10:"ArrowRight"===i?10:0;this.zoomModule.isPanning=this.isChartDrag=!0,this.zoomModule.doPan(this,this.axisCollections,d,c),this.zoomModule.performZoomRedraw(this),this.element.focus();break;case"R":this.zoomModule.toolkit.reset(e)}},o.prototype.chartOnMouseClick=function(e){var t=this,i=e.target,o=this;this.clickCount++;var r=this.FindXYPointValue(o.mouseX,o.mouseY),n=400;1===this.clickCount?this.singleClickTimer=+setTimeout(function(){o.clickCount=0,o.trigger("chartMouseClick",{target:i.id,x:o.mouseX,y:o.mouseY,axisData:r})},n):2!==this.clickCount||this.pointDoubleClick||(clearTimeout(this.singleClickTimer),this.clickCount=0);if(this.isAngular){n=this.pointDoubleClick.observers.length>0?400:0}else n=this.pointDoubleClick?400:0;return 1===this.clickCount&&this.pointClick?this.singleClickTimer=+setTimeout(function(){t.clickCount=0,t.triggerPointEvent("pointClick",e)},n):2===this.clickCount&&this.pointDoubleClick&&(clearTimeout(this.singleClickTimer),this.clickCount=0,this.triggerPointEvent("pointDoubleClick",e)),this.axisLabelClick&&this.triggerAxisLabelClickEvent("axisLabelClick",e),this.removeNavigationStyle(),this.notify("click",e),!1},o.prototype.FindXYPointValue=function(e,t){if(V(e,t,this.chartAxisLayoutPanel.seriesClipRect)&&this.series.some(function(e){return e.visible})){for(var i=void 0,o=void 0,r=void 0,n={},a=0,l=this.axisCollections.length;a<l;a++)"Horizontal"===(i=this.axisCollections[a]).orientation?(o=H(Math.abs(e-i.rect.x),i.rect.width,i),n[this.axisCollections[a].name]=o):(r=W(Math.abs(t-i.rect.y),i.rect.height,i),n[this.axisCollections[a].name]=r);return n}return null},o.prototype.triggerPointEvent=function(e,t){var i=t,o=new Lo(this).getData();o.series&&o.point&&this.trigger(e,{series:o.series,point:o.point,seriesIndex:o.series.index,pointIndex:o.point.index,x:this.mouseX,y:this.mouseY,pageX:i.pageX,pageY:i.pageY})},o.prototype.triggerAxisLabelClickEvent=function(e,t){var i=t.target,o=t;if(-1!==i.id.indexOf("_AxisLabel_")){var r=i.id.split("_AxisLabel_"),n=+r[0].slice(-1),a=+r[1],l=this.axisCollections[n];!l.visible||0!==n&&1!==n||this.trigger(e,{chart:this,axis:l,text:l.visibleLabels[a].text,labelID:i.id,index:a,location:new mo(o.pageX,o.pageY),value:l.visibleLabels[a].value})}},o.prototype.chartOnMouseMove=function(e){var i=e.target,o=this.FindXYPointValue(this.mouseX,this.mouseY);return this.trigger("chartMouseMove",{target:i.id,x:this.mouseX,y:this.mouseY,axisData:o}),this.pointMove&&this.triggerPointEvent("pointMove",e),this.isTouch||(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY)),this.dataEditingModule&&this.dataEditingModule.pointMouseMove(e),this.crosshair.enable&&this.startMove&&e.preventDefault(),this.notify(t.Browser.touchMoveEvent,e),this.isTouch=!1,!1},o.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"_ChartTitle"||r===this.element.id+"_ChartSubTitle"||r.indexOf("_AxisTitle")>-1||r.indexOf("_legend_title")>-1,a=0;r.indexOf("_AxisTitle")>-1&&(a=parseInt(r.replace(this.element.id,"").replace("AxisLabel_","").split("_")[2],10)),n&&e.target.textContent.indexOf("...")>-1?y(r===this.element.id+"_ChartTitle"?this.title:r.indexOf("_AxisTitle")>-1?this.axisCollections[a].title:r.indexOf("_ChartSubTitle")>-1?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",he(this.element.id+"_Secondary_Element"),o):g(this.element.id+"_EJ2_Title_Tooltip")},o.prototype.axisTooltip=function(e,t,i,o){var r=e.target.id;if((r.indexOf("AxisLabel")>-1||r.indexOf("Axis_MultiLevelLabel")>-1)&&e.target.textContent.indexOf("...")>-1){var n=this.legendSettings.visible||""===this.primaryXAxis.title;y(this.findAxisLabel(r),t,i,this.element.offsetWidth,this.element.id+"_EJ2_AxisLabel_Tooltip",he(this.element.id+"_Secondary_Element"),o,n)}else g(this.element.id+"_EJ2_AxisLabel_Tooltip")},o.prototype.findAxisLabel=function(e){var t;return e.indexOf("AxisLabel")>-1?(t=e.replace(this.element.id,"").replace("AxisLabel_","").split("_"),this.axisCollections[parseInt(t[0],10)].visibleLabels[parseInt(t[1],10)].originalText):(t=e.replace(this.element.id,"").replace("Axis_MultiLevelLabel_Level_","").replace("Text_","").split("_"),this.axisCollections[parseInt(t[0],10)].multiLevelLabels[parseInt(t[1],10)].categories[parseInt(t[2],10)].text)},o.prototype.chartOnMouseDown=function(e){var i,o,r,n,a=this.FindXYPointValue(this.mouseX,this.mouseY),l=t.Browser.isDevice?20:30,s=this.element.getBoundingClientRect(),h=e.target;this.stockChart&&this.stockChart.zoomSettings.enablePan&&(this.allowPan=!0),this.trigger("chartMouseDown",{target:h.id,x:this.mouseX,y:this.mouseY,axisData:a}),"touchstart"===e.type?(this.isTouch=!0,i=(n=e).changedTouches[0].clientX,o=n.changedTouches[0].clientY,r=n.target):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY,r=e.target);var c=he(this.svgId).getBoundingClientRect();return this.mouseDownX=this.previousMouseMoveX=i-s.left-Math.max(c.left-s.left,0),this.mouseDownY=this.previousMouseMoveY=o-s.top-Math.max(c.top-s.top,0),this.isTouch&&(this.isDoubleTap=(new Date).getTime()<this.threshold&&-1===r.id.indexOf(this.element.id+"_Zooming_")&&(this.mouseDownX-l>=this.mouseX||this.mouseDownX+l>=this.mouseX)&&(this.mouseDownY-l>=this.mouseY||this.mouseDownY+l>=this.mouseY)&&(this.mouseX-l>=this.mouseDownX||this.mouseX+l>=this.mouseDownX)&&(this.mouseY-l>=this.mouseDownY||this.mouseY+l>=this.mouseDownY)),this.dataEditingModule&&this.dataEditingModule.pointMouseDown(),this.notify(t.Browser.touchStartEvent,e),!1},o.prototype.mouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,this.isTouch=!0,t=o.changedTouches[0].clientY):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,t),this.chartOnMouseUp(e),!1},o.prototype.chartOnMouseUp=function(e){var i=e.target,o=this.FindXYPointValue(this.mouseX,this.mouseY);return this.trigger("chartMouseUp",{target:i.id,x:this.mouseX,y:this.mouseY,axisData:o}),this.isChartDrag=!1,this.allowPan=!1,this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.axisTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.threshold=(new Date).getTime()+300),this.dataEditingModule&&this.dataEditingModule.pointMouseUp(),!this.enableCanvas&&this.seriesElements&&this.seriesElements.removeAttribute("clip-path"),this.notify(t.Browser.touchEndEvent,e),!1},o.prototype.setCulture=function(){this.intl=new t.Internationalization,this.setLocaleConstants(),this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},o.prototype.setAnnotationValue=function(e,t){var i,o=he(this.element.id+"_Annotation_Collections"),r=this.annotations[e];null!==t&&(r.content=t,o?(g(this.element.id+"_Annotation_"+e),i=this.createElement("div"),this.annotationModule.processAnnotation(r,e,i),o.appendChild(i.children[0])):this.annotationModule.renderAnnotations(he(this.element.id+"_Secondary_Element")))},o.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ResetZoom:"Reset Zoom"}},o.prototype.setTheme=function(){this.themeStyle=ot(this.theme,this.enableCanvas,this)},o.prototype.requiredModules=function(){var e,t=this,i=[],o=this.series,r=!1,n=!1,a=!1,l=!1,s=this.zoomSettings,h=!1;return this.chartAreaType=o.length>0&&("Polar"===o[0].type||"Radar"===o[0].type)?"PolarRadar":"Cartesian",this.tooltip.enable&&i.push({member:"Tooltip",args:[this]}),o.map(function(r){t.isLegend=t.legendSettings.visible&&(""!==r.name||!!t.isLegend),e=-1!==r.type.indexOf("100")?r.type.replace("100","")+"Series":r.type+"Series",n=r.errorBar.visible||n,l=r.marker.dataLabel.visible||l||"Pareto"===r.type&&r.paretoOptions.marker.dataLabel.visible,h=r.lastValueLabel.enable||h,a=r.dragSettings.enable||a,i.some(function(t){return t.member===e})||i.push({member:e,args:[t,o]}),"PolarRadar"===t.chartAreaType&&i.push({member:r.drawType+"Series",args:[t,o]}),"Pareto"===r.type&&(i.push({member:"ColumnSeries",args:[t,o]}),i.push({member:"LineSeries",args:[t,o]}))}),this.findIndicatorModules(i),this.findTrendLineModules(i),i=this.findAxisModule(i),r=this.annotations.some(function(e){return null!==e.content}),n&&i.push({member:"ErrorBar",args:[this,o]}),this.isLegend&&i.push({member:"Legend",args:[this]}),(this.enableExport||this.allowExport)&&i.push({member:"Export",args:[this]}),"PolarRadar"!==this.chartAreaType&&this.crosshair.enable&&i.push({member:"Crosshair",args:[this]}),"PolarRadar"!==this.chartAreaType&&!this.scrollSettingEnabled&&(s.enableSelectionZooming||s.enableMouseWheelZooming||s.enablePinchZooming||s.enablePan||s.enableScrollbar||s.showToolbar)&&(i.push({member:"Zoom",args:[this,this.zoomSettings]}),s.enableScrollbar&&i.push({member:"ScrollBar",args:[this]})),"None"===this.selectionMode||"PolarRadar"===this.chartAreaType&&this.selectionMode.indexOf("Drag")>-1||i.push({member:"Selection",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&i.push({member:"Highlight",args:[this]}),(l||this.stackLabels.visible)&&i.push({member:"DataLabel",args:[this,o]}),h&&i.push({member:"LastValueLabel",args:[this,o]}),a&&i.push({member:"DataEditing",args:[this]}),r&&i.push({member:"Annotation",args:[this]}),i},o.prototype.findAxisModule=function(e){var t=[];t.push(this.primaryXAxis),t.push(this.primaryYAxis);for(var i=!1,o=!1,r=!1,n=!1,a=!1,l=!1,s=0,h=t=t.concat(this.axes);s<h.length;s++){var c=h[s];i="DateTime"===c.valueType||i,o="Category"===c.valueType||o,r="Logarithmic"===c.valueType||r,a="DateTimeCategory"===c.valueType||a,n=this.findStriplineVisibility(c.stripLines)||n,l=c.multiLevelLabels.length>0||l,this.scrollSettingEnabled=!!c.scrollbarSettings.enable||this.scrollSettingEnabled}return i&&e.push({member:"DateTime",args:[this]}),o&&e.push({member:"Category",args:[this]}),r&&e.push({member:"Logarithmic",args:[this]}),n&&e.push({member:"StripLine",args:[this]}),l&&e.push({member:"MultiLevelLabel",args:[this]}),a&&e.push({member:"DateTimeCategory",args:[this]}),this.scrollSettingEnabled&&e.push({member:"ScrollBar",args:[this]}),e},o.prototype.findIndicatorModules=function(e){var t,i,o=this.indicators;if(this.indicators.length){e.push({member:"LineSeries",args:[this]}),o.map(function(e){t=t||"Macd"===e.type,i=i||"BollingerBands"===e.type}),t&&e.push({member:"ColumnSeries",args:[this]}),i&&e.push({member:"RangeAreaSeries",args:[this]}),i&&e.push({member:"SplineRangeAreaSeries",args:[this]});for(var r=0,n=this.indicators;r<n.length;r++){var a=n[r];e.push({member:a.type+"Indicator",args:[this]})}}},o.prototype.findTrendLineModules=function(e){for(var t,i,o=this,r=this,n=0,a=this.series;n<a.length;n++)!function(n){var a;n.trendlines.map(function(e){a=a||o.getActualProperties(e).marker&&o.getActualProperties(e).marker.visible,t=!(!t&&"Linear"!==e.type&&"MovingAverage"!==e.type),i=!(!i&&t&&"Exponential"!==e.type&&"Logarithmic"!==e.type&&"Power"!==e.type&&"Polynomial"!==e.type)}),a&&e.push({member:"Marker",args:[r,n]})}(a[n]);(t||i)&&e.push({member:"TrendLine",args:[this]}),t&&e.push({member:"LineSeries",args:[this]}),i&&e.push({member:"SplineSeries",args:[this]})},o.prototype.findStriplineVisibility=function(e){for(var t=!1,i=0,o=e;i<o.length;i++)if(o[i].visible){t=!0;break}return t},o.prototype.removeSvg=function(){if(this.redraw)return null;if(this.enableCanvas&&this.svgObject&&"CANVAS"===this.svgObject.tagName)return this.renderer.clearRect(new i.Rect(0,0,this.availableSize.width,this.availableSize.height)),this.svgObject.parentNode&&t.remove(this.svgObject),null;g(this.element.id+"_Secondary_Element"),this.isReact&&this.clearTemplate();var e=0;if(this.zoomModule&&this.zoomModule.pinchTarget&&(this.zoomModule.pinchTarget.id="",this.zoomModule.pinchTarget.setAttribute("opacity","0"),this.svgObject.appendChild(this.zoomModule.pinchTarget),e=1),this.svgObject){for(;this.svgObject.childNodes.length>e;)this.svgObject.removeChild(this.svgObject.firstChild);this.svgObject.hasChildNodes()||!this.svgObject.parentNode||this.stockChart||t.remove(this.svgObject)}this.trendLineElements=null},o.prototype.refreshDefinition=function(e){for(var t=0,i=e;t<i.length;t++)i[t].axes=[]},o.prototype.refreshAxis=function(){var e=this.primaryXAxis;e.rect=new i.Rect(void 0,void 0,0,0),(e=this.primaryYAxis).isStack100=!1,e.rect=new i.Rect(void 0,void 0,0,0);for(var t=0,o=this.axes;t<o.length;t++)(e=a=o[t]).rect=new i.Rect(void 0,void 0,0,0),e.isStack100=!1;if(this.paretoSeriesModule&&this.series[0]&&"Pareto"===this.series[0].type)for(var r=0,n=this.paretoSeriesModule.paretoAxes;r<n.length;r++){var a=n[r];(e=a).rect=new i.Rect(void 0,void 0,0,0),e.isStack100=!1}},o.prototype.axisChange=function(e){return!(!e.name&&!e.valueType)&&(this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(),!0)},o.prototype.getVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},o.prototype.refreshLiveData=function(){this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),this.enableCanvas?this.createChartSvg():this.removeSvg(),this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this})},o.prototype.removeStyles=function(){g(this.element.id+"_ej2_chart_selection"),g(this.element.id+"_ej2_chart_highlight")},o.prototype.mouseMoveEvent=function(){if(this.tooltip.enable&&null!==this.previousPageX&&null!==this.previousPageY){var e=document.createEvent("MouseEvent");e.initMouseEvent("mousemove",!0,!1,window,1,100,100,this.previousPageX,this.previousPageY,!1,!1,!1,!1,0,null),this.element.dispatchEvent(e)}},o.prototype.showTooltip=function(e,t,i){if(void 0===i&&(i=!1),i)for(var o=0,r=this.visibleSeries;o<r.length;o++)for(var n=r[o],a=0,l=n.points;a<l.length;a++){var s=l[a],h="DateTime"===n.xAxis.valueType?s.xValue:s.x,c=e;if("DateTime"===n.xAxis.valueType&&(c=new Date(c).getTime()),e===h&&t===s.yValue){this.mouseX=s.regions[0].x+this.chartAxisLayoutPanel.seriesClipRect.x,this.mouseY=s.regions[0].y+this.chartAxisLayoutPanel.seriesClipRect.y,this.tooltipModule.tooltip(),this.markerRender.mouseMoveHandler();break}}else this.isTouch&&(this.startMove=!0),this.mouseX=e,this.mouseY=t,this.tooltipModule.mouseMoveHandler(),this.markerRender.mouseMoveHandler()},o.prototype.hideTooltip=function(){this.tooltipModule.removeTooltip(t.Browser.isDevice?2e3:1e3)},o.prototype.showCrosshair=function(e,t){this.mouseX=e,this.mouseY=t,this.isCrosshair=!1,V(this.mouseX,this.mouseY,this.chartAxisLayoutPanel.seriesClipRect)?this.crosshairModule.crosshair():this.hideCrosshair(),this.isCrosshair=!0},o.prototype.hideCrosshair=function(){this.crosshairModule.removeCrosshair(t.Browser.isDevice?2e3:1e3)},o.prototype.sanitize=function(e){return this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e):e},o.prototype.onPropertyChanged=function(e,i){var o=!1,r=!1;this.animateSeries=!1;var n,a=!1,l=!1;if(!this.delayRedraw&&!this.zoomRedraw){for(var s=0,h=Object.keys(e);s<h.length;s++){var c=h[s];switch(a=a||"primaryXAxis"!==c&&"primaryYAxis"!==c&&"axes"!==c,l&&a&&(this.redraw=!1),c){case"primaryXAxis":n=e.primaryXAxis,r=this.axisChange(n),e.primaryXAxis.edgeLabelPlacement&&(o=!0),e.primaryXAxis.crosshairTooltip||(r=!0),e.primaryXAxis.scrollbarSettings&&(r=!0),t.isNullOrUndefined(n.isInversed)&&t.isNullOrUndefined(n.opposedPosition)||this.primaryXAxis.setIsInversedAndOpposedPosition(),this.primaryXAxis.zoomingScrollBar&&this.primaryXAxis.zoomingScrollBar.isScrollUI||!this.zoomModule||t.isNullOrUndefined(n.zoomFactor)&&t.isNullOrUndefined(n.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),e.primaryXAxis.crosshairTooltip&&(e.primaryXAxis.crosshairTooltip.enable||(g(this.element.id+"_axis_tooltip_0"),g(this.element.id+"_axis_tooltip_text_0")));break;case"primaryYAxis":n=e.primaryYAxis,r=this.axisChange(n),e.primaryYAxis.edgeLabelPlacement&&(o=!0),e.primaryYAxis.crosshairTooltip||(r=!0),e.primaryYAxis.scrollbarSettings&&(r=!0),t.isNullOrUndefined(n.isInversed)&&t.isNullOrUndefined(n.opposedPosition)||this.primaryYAxis.setIsInversedAndOpposedPosition(),this.primaryYAxis.zoomingScrollBar&&this.primaryYAxis.zoomingScrollBar.isScrollUI||!this.zoomModule||t.isNullOrUndefined(n.zoomFactor)&&t.isNullOrUndefined(n.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),e.primaryYAxis.crosshairTooltip&&(e.primaryYAxis.crosshairTooltip.enable||(g(this.element.id+"_axis_tooltip_1"),g(this.element.id+"_axis_tooltip_text_1")));break;case"axes":for(var d=0,p=Object.keys(e.axes);d<p.length;d++){var u=p[d];n=e.axes[u],r=r||this.axisChange(n),n.crosshairTooltip||(r=!0),n.scrollbarSettings&&(r=!0),t.isNullOrUndefined(n.isInversed)&&t.isNullOrUndefined(n.opposedPosition)||this.axes[u].setIsInversedAndOpposedPosition(),this.axes[u].zoomingScrollBar&&this.axes[u].zoomingScrollBar.isScrollUI||!this.zoomModule||t.isNullOrUndefined(n.zoomFactor)&&t.isNullOrUndefined(n.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),n.crosshairTooltip&&(n.crosshairTooltip.enable||(g(this.element.id+"_axis_tooltip_"+this.axes[u].index),g(this.element.id+"_axis_tooltip_text_"+this.axes[u].index)))}break;case"height":case"width":this.createChartSvg(),r=!0;break;case"subTitle":case"title":r=!0;break;case"titleStyle":e.titleStyle&&(e.titleStyle.size||e.titleStyle.textOverflow||e.titleStyle.position)?r=!0:o=!0;break;case"subTitleStyle":e.subTitleStyle&&(e.subTitleStyle.size||e.subTitleStyle.textOverflow)?r=!0:o=!0;break;case"border":o=!0;break;case"dataSource":this.processData(!1),r=!0;break;case"enableCanvas":this.refresh();break;case"series":for(var m=this.series.length,y=!1,f=void 0,v=0;v<m;v++){if(f=e.series[v],!t.isNullOrUndefined(f)&&f.lastValueLabel&&this.series[v].lastValueLabel.enable&&this.lastValueLabelModule){this.lastValueLabelCollections=[];var b=t.extend(this.series[v].lastValueLabel,f.lastValueLabel);this.lastValueLabelModule.render(this.series[v],this,b,!0),this.series[v].lastValueLabelElement&&be(this.enableCanvas,this.lastValueLabelElements,this.series[v].lastValueLabelElement,!0)}else!t.isNullOrUndefined(f)&&f.lastValueLabel&&!f.lastValueLabel.enable&&this.series[v]&&this.series[v].lastValueLabelElement&&(g(this.series[v].lastValueLabelElement.id),this.series[v].lastValueLabelElement=null);!t.isNullOrUndefined(f)&&(f.dataSource||f.query||f.errorBar||f.xName||f.yName||f.size||f.high||f.low||f.open||f.close||f.trendlines||f.fill||f.name||f.marker||f.width||f.binInterval||f.type||f.visible!==i.series[v].visible||f.legendShape||f.emptyPointSettings||f.opacity||f.columnWidth||f.columnSpacing||f.opacity||f.dashArray||f.bearFillColor||f.bullFillColor)&&(t.extend(this.getVisibleSeries(this.visibleSeries,v),f,null,!0),y=!0)}y&&(this.calculateAreaType(),this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),r=!0);break;case"indicators":r=!0;break;case"zoomSettings":(e.zoomSettings.enableScrollbar||i.zoomSettings.enableScrollbar)&&(r=!0),o=!0;break;case"background":o=!0;break;case"chartArea":e.chartArea.border&&e.chartArea.border.width&&(r=!0),o=!0;break;case"legendSettings":e.legendSettings.background&&e.legendSettings.opacity||(r=!0),o=!0;break;case"palettes":this.calculateVisibleSeries(),o=!0;break;case"selectedDataIndexes":this.selectionModule?(this.selectionModule.currentMode=this.selectionMode,this.selectionModule.selectedDataIndexes=this.selectedDataIndexes,this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode,!0)):this.highlightModule&&(this.highlightModule.currentMode=this.highlightMode,this.highlightModule.highlightDataIndexes=this.selectedDataIndexes,this.highlightModule.styleId=this.element.id+"_ej2_chart_highlight",this.highlightModule.redrawSelection(this,i.selectionMode,!0));break;case"selectionMode":this.selectionModule&&e.selectionMode&&-1===e.selectionMode.indexOf("Drag")&&(this.selectionModule.currentMode=this.selectionMode,"None"===i.selectionMode&&this.selectionModule.invokeSelection(this),this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode,!0));break;case"isMultiSelect":this.selectionModule&&!e.isMultiSelect&&this.selectionModule.selectedDataIndexes.length>1&&(this.selectionModule.currentMode=this.selectionMode,this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode));break;case"highlightMode":case"selectionPattern":case"highlightPattern":this.removeStyles(),o=!0;break;case"theme":this.animateSeries=!0;break;case"enableRtl":case"locale":case"currencyCode":this.refresh();break;case"tooltip":this.tooltipModule&&(this.tooltipModule.previousPoints=[],this.tooltip.template&&(this.tooltipModule.template=this.tooltip.template))}}!r&&o&&(this.rotatedDataLabelCollections=[],this.removeSvg(),this.renderElements(),this.trigger("loaded",{chart:this})),r&&(this.enableCanvas?this.createChartSvg():this.removeSvg(),this.isReact&&this.clearTemplate(),this.dragY=null,this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this}),this.redraw=!1,this.animated=!1)}this.zoomRedraw=!1},tr([t.Property(null)],o.prototype,"noDataTemplate",void 0),tr([t.Property(null)],o.prototype,"width",void 0),tr([t.Property(null)],o.prototype,"height",void 0),tr([t.Property("")],o.prototype,"title",void 0),tr([t.Property("")],o.prototype,"dataSource",void 0),tr([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},bi)],o.prototype,"titleStyle",void 0),tr([t.Property("")],o.prototype,"subTitle",void 0),tr([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null,accessibility:{focusable:!1}},bi)],o.prototype,"subTitleStyle",void 0),tr([t.Complex({},di)],o.prototype,"margin",void 0),tr([t.Complex({color:"#DDDDDD",width:0},hi)],o.prototype,"border",void 0),tr([t.Property(null)],o.prototype,"background",void 0),tr([t.Complex({border:{color:null,width:.5},background:"transparent"},Si)],o.prototype,"chartArea",void 0),tr([t.Property(!1)],o.prototype,"enableHtmlSanitizer",void 0),tr([t.Complex({name:"primaryXAxis"},oo)],o.prototype,"primaryXAxis",void 0),tr([t.Complex({name:"primaryYAxis"},oo)],o.prototype,"primaryYAxis",void 0),tr([t.Collection([{}],qi)],o.prototype,"rows",void 0),tr([t.Collection([{}],Qi)],o.prototype,"columns",void 0),tr([t.Collection([{}],oo)],o.prototype,"axes",void 0),tr([t.Collection([{}],Bo)],o.prototype,"series",void 0),tr([t.Collection([{accessibility:{focusable:!1}}],Bi)],o.prototype,"annotations",void 0),tr([t.Property([])],o.prototype,"palettes",void 0),tr([t.Property("Material")],o.prototype,"theme",void 0),tr([t.Complex({},ui)],o.prototype,"tooltip",void 0),tr([t.Complex({},or)],o.prototype,"crosshair",void 0),tr([t.Complex({},Yo)],o.prototype,"legendSettings",void 0),tr([t.Collection([{}],ir)],o.prototype,"rangeColorSettings",void 0),tr([t.Complex({},rr)],o.prototype,"zoomSettings",void 0),tr([t.Property("")],o.prototype,"highlightColor",void 0),tr([t.Property("None")],o.prototype,"selectionMode",void 0),tr([t.Property("None")],o.prototype,"highlightMode",void 0),tr([t.Property("None")],o.prototype,"selectionPattern",void 0),tr([t.Property("None")],o.prototype,"highlightPattern",void 0),tr([t.Property(!1)],o.prototype,"isMultiSelect",void 0),tr([t.Property(!1)],o.prototype,"allowMultiSelection",void 0),tr([t.Property(!0)],o.prototype,"enableExport",void 0),tr([t.Property(!1)],o.prototype,"allowExport",void 0),tr([t.Collection([],mi)],o.prototype,"selectedDataIndexes",void 0),tr([t.Property(!1)],o.prototype,"useGroupingSeparator",void 0),tr([t.Property(!1)],o.prototype,"enableAutoIntervalOnBothAxis",void 0),tr([t.Property(!1)],o.prototype,"isTransposed",void 0),tr([t.Property(!1)],o.prototype,"enableCanvas",void 0),tr([t.Property(null)],o.prototype,"backgroundImage",void 0),tr([t.Collection([],Ko)],o.prototype,"indicators",void 0),tr([t.Property(!0)],o.prototype,"enableAnimation",void 0),tr([t.Property(null)],o.prototype,"description",void 0),tr([t.Property(1)],o.prototype,"tabIndex",void 0),tr([t.Property(!0)],o.prototype,"enableSideBySidePlacement",void 0),tr([t.Complex({},ri)],o.prototype,"accessibility",void 0),tr([t.Property(null)],o.prototype,"focusBorderColor",void 0),tr([t.Property(1.5)],o.prototype,"focusBorderWidth",void 0),tr([t.Property(0)],o.prototype,"focusBorderMargin",void 0),tr([t.Complex({},Gi)],o.prototype,"stackLabels",void 0),tr([t.Event()],o.prototype,"resized",void 0),tr([t.Event()],o.prototype,"beforeResize",void 0),tr([t.Event()],o.prototype,"annotationRender",void 0),tr([t.Event()],o.prototype,"beforePrint",void 0),tr([t.Event()],o.prototype,"loaded",void 0),tr([t.Event()],o.prototype,"beforeExport",void 0),tr([t.Event()],o.prototype,"afterExport",void 0),tr([t.Event()],o.prototype,"load",void 0),tr([t.Event()],o.prototype,"animationComplete",void 0),tr([t.Event()],o.prototype,"legendRender",void 0),tr([t.Event()],o.prototype,"textRender",void 0),tr([t.Event()],o.prototype,"pointRender",void 0),tr([t.Event()],o.prototype,"seriesRender",void 0),tr([t.Event()],o.prototype,"axisLabelRender",void 0),tr([t.Event()],o.prototype,"axisLabelClick",void 0),tr([t.Event()],o.prototype,"axisRangeCalculated",void 0),tr([t.Event()],o.prototype,"axisMultiLabelRender",void 0),tr([t.Event()],o.prototype,"legendClick",void 0),tr([t.Event()],o.prototype,"multiLevelLabelClick",void 0),tr([t.Event()],o.prototype,"tooltipRender",void 0),tr([t.Event()],o.prototype,"sharedTooltipRender",void 0),tr([t.Event()],o.prototype,"chartMouseMove",void 0),tr([t.Event()],o.prototype,"chartMouseClick",void 0),tr([t.Event()],o.prototype,"chartDoubleClick",void 0),tr([t.Event()],o.prototype,"pointClick",void 0),tr([t.Event()],o.prototype,"pointDoubleClick",void 0),tr([t.Event()],o.prototype,"pointMove",void 0),tr([t.Event()],o.prototype,"chartMouseLeave",void 0),tr([t.Event()],o.prototype,"chartMouseDown",void 0),tr([t.Event()],o.prototype,"chartMouseUp",void 0),tr([t.Event()],o.prototype,"dragComplete",void 0),tr([t.Event()],o.prototype,"selectionComplete",void 0),tr([t.Event()],o.prototype,"zoomComplete",void 0),tr([t.Event()],o.prototype,"onZooming",void 0),tr([t.Event()],o.prototype,"scrollStart",void 0),tr([t.Event()],o.prototype,"scrollEnd",void 0),tr([t.Event()],o.prototype,"scrollChanged",void 0),tr([t.Event()],o.prototype,"dragStart",void 0),tr([t.Event()],o.prototype,"drag",void 0),tr([t.Event()],o.prototype,"dragEnd",void 0),tr([t.Property("USD")],o.prototype,"currencyCode",void 0),o=tr([t.NotifyPropertyChanges],o)}(t.Component),ar=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),t.prototype.calculateDateTimeNiceInterval=function(e,t,i,o,r){void 0===r&&(r=!0);var n,a=new Date(i),l=new Date(o),s=Math.abs((a.getTime()-l.getTime())/864e5);switch(e.actualIntervalType=e.intervalType,e.intervalType){case"Years":n=this.calculateNumericNiceInterval(e,s/365,t);break;case"Quarter":n=this.calculateNumericNiceInterval(e,s/365*4,t);break;case"Months":n=this.calculateNumericNiceInterval(e,s/30,t);break;case"Weeks":n=this.calculateNumericNiceInterval(e,s/7,t);break;case"Days":n=this.calculateNumericNiceInterval(e,s,t);break;case"Hours":n=this.calculateNumericNiceInterval(e,24*s,t);break;case"Minutes":n=this.calculateNumericNiceInterval(e,24*s*60,t);break;case"Seconds":n=this.calculateNumericNiceInterval(e,24*s*60*60,t);break;case"Auto":return(n=this.calculateNumericNiceInterval(e,s/365,t))>=1?(e.actualIntervalType="Years",n):(n=this.calculateNumericNiceInterval(e,s/30,t))>=1?(e.actualIntervalType="Months",n):(n=this.calculateNumericNiceInterval(e,s/7,t))>=1&&!r?(e.actualIntervalType="Weeks",n):(n=this.calculateNumericNiceInterval(e,s,t))>=1?(e.actualIntervalType="Days",n):(n=this.calculateNumericNiceInterval(e,24*s,t))>=1?(e.actualIntervalType="Hours",n):(n=this.calculateNumericNiceInterval(e,24*s*60,t))>=1?(e.actualIntervalType="Minutes",n):(n=this.calculateNumericNiceInterval(e,24*s*60*60,t),e.actualIntervalType="Seconds",n)}return n},t.prototype.getSkeleton=function(e,t,i){var o=e.actualIntervalType;return e.skeleton?e.skeleton:"Years"===o?e.isChart?"DateTime"===e.valueType&&e.isIntervalInDecimal?"y":"yMMM":"y":"Quarter"===o?"yMMM":"Months"===o?e.isChart?"MMMd":"MMM":"Weeks"===o?"MEd":"Days"===o?e.isChart?"DateTime"===e.valueType?"MMMd":"yMd":"MMMd":"Hours"===o?e.isChart?"DateTime"===e.valueType?"Hm":"EHm":"h":"Minutes"===o?e.isChart?"Hms":"hm":e.isChart?"Hms":"hms"},t.prototype.findCustomFormats=function(e){var t=e.labelFormat?e.labelFormat:"";return!e.isChart||e.skeleton||"Months"!==e.actualIntervalType||t||(t="DateTime"===e.valueType?"MMM yyyy":"yMMM"),t},t}(Mi),sr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),hr=function(e){function i(t){return e.call(this,t)||this}return sr(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){var i={skeleton:"full",type:"dateTime"},r=this.chart.intl.getDateParser(i),n=this.chart.intl.getDateFormat(i);null!==e.minimum?this.min=Date.parse(r(n(new Date(o.DataUtil.parse.parseJson({val:e.minimum}).val)))):null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=Date.parse(r(n(new Date(1970,1,1))))),null!==e.maximum?this.max=Date.parse(r(n(new Date(o.DataUtil.parse.parseJson({val:e.maximum}).val)))):null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=Date.parse(r(n(new Date(1970,5,1))))),this.min===this.max&&(this.max=this.max+2592e6,this.min=this.min-2592e6),e.actualRange={},e.doubleRange=new Ai(this.min,this.max);var a=this.calculateDateTimeNiceInterval(e,t,e.doubleRange.start,e.doubleRange.end);e.interval?e.actualRange.interval=e.interval:e.actualRange.interval=a,e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end},i.prototype.applyRangePadding=function(e,t){this.min=e.actualRange.min,this.max=e.actualRange.max;var i,o,r=e.actualRange.interval;if(!te(e)){var n=e.getRangePadding(this.chart);i=new Date(this.min),o=new Date(this.max);var a=e.actualIntervalType;if("None"===n)this.min=i.getTime(),this.max=o.getTime();else if("Additional"===n||"Round"===n)switch(a){case"Years":this.getYear(i,o,n,r);break;case"Months":this.getMonth(i,o,n,r);break;case"Days":this.getDay(i,o,n,r);break;case"Hours":this.getHour(i,o,n,r);break;case"Minutes":var l=i.getMinutes()/r*r,s=o.getMinutes()+(i.getMinutes()-l);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,59).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s+r,0).getTime());break;case"Seconds":var h=i.getSeconds()/r*r,c=o.getSeconds()+(i.getSeconds()-h);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c,0).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c+r,0).getTime())}}e.actualRange.min=(e.minimum,this.min),e.actualRange.max=(e.maximum,this.max),e.actualRange.delta=e.actualRange.max-e.actualRange.min,e.doubleRange=new Ai(e.actualRange.min,e.actualRange.max),this.calculateVisibleRange(t,e)},i.prototype.getYear=function(e,t,i,o){var r=e.getFullYear(),n=t.getFullYear();"Additional"===i?(this.min=new Date(r-o,1,1,0,0,0).getTime(),this.max=new Date(n+o,1,1,0,0,0).getTime()):(this.min=new Date(r,0,0,0,0,0).getTime(),this.max=new Date(n,11,30,23,59,59).getTime())},i.prototype.getMonth=function(e,t,i,o){var r=e.getMonth(),n=t.getMonth();"Round"===i?(this.min=new Date(e.getFullYear(),r,0,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n,new Date(t.getFullYear(),t.getMonth(),0).getDate(),23,59,59).getTime()):(this.min=new Date(e.getFullYear(),r+-o,1,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n+o,2===n?28:30,0,0,0).getTime())},i.prototype.getDay=function(e,t,i,o){var r=e.getDate(),n=t.getDate();"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),r,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n,23,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),r+-o,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n+o,0,0,0).getTime())},i.prototype.getHour=function(e,t,i,o){var r=e.getHours()/o*o,n=t.getHours()+(e.getHours()-r);"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r+-o,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n+o,0,0).getTime())},i.prototype.calculateVisibleRange=function(e,i){i.visibleRange={min:i.actualRange.min,max:i.actualRange.max,interval:i.actualRange.interval,delta:i.actualRange.delta};var o=!t.isNullOrUndefined(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;ie(i)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateDateTimeNiceInterval(i,e,i.visibleRange.min,i.visibleRange.max):i.visibleRange.interval),i.dateTimeInterval=this.increaseDateTimeInterval(i,i.visibleRange.min,i.visibleRange.interval).getTime()-i.visibleRange.min,i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval)},i.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r,n=e.visibleRange.min,a=e.visibleLabels;for(null===e.minimum&&(n=this.alignRangeStart(e,n,e.visibleRange.interval).getTime()),this.startValue&&this.startValue<n&&i.zoomModule&&i.zoomModule.isPanning?n=this.startValue:this.startValue=n;n<=e.visibleRange.max;){o=t.extend({},t.getValue("properties",e.labelStyle),null,!0),r=a.length?e.visibleLabels[a.length-1].value:n,e.format=i.intl.getDateFormat({format:this.findCustomFormats(e),type:U(e.skeletonType),skeleton:this.getSkeleton(e,n,r)}),e.startLabel=e.format(new Date(e.visibleRange.min)),e.endLabel=e.format(new Date(e.visibleRange.max)),v(n,e.visibleRange)&&(this.increaseDateTimeInterval(e,n,e.visibleRange.interval).getTime()>e.visibleRange.max&&(e.endLabel=e.format(new Date(n))),ee(i,n,e.format(new Date(n)),o,e));var l=n;if(n=this.increaseDateTimeInterval(e,n,e.visibleRange.interval).getTime(),l===n)break}"Months"!==e.actualIntervalType&&"Days"!==e.actualIntervalType||!e.isChart||(e.format=i.intl.getDateFormat({format:e.labelFormat||("Months"!==e.actualIntervalType||e.skeleton?"":"y MMM"),type:U(e.skeletonType),skeleton:e.skeleton||("Days"===e.actualIntervalType?"MMMd":"")})),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.increaseDateTimeInterval=function(e,t,i){var o=new Date(t);e.interval?(e.isIntervalInDecimal=i%1==0,e.visibleRange.interval=i):(i=Math.ceil(i),e.visibleRange.interval=i);var r=e.actualIntervalType;if(e.isIntervalInDecimal)switch(r){case"Years":return o.setFullYear(o.getFullYear()+i),o;case"Quarter":return o.setMonth(o.getMonth()+3*i),o;case"Months":return o.setMonth(o.getMonth()+i),o;case"Weeks":return o.setDate(o.getDate()+7*i),o;case"Days":return o.setDate(o.getDate()+i),o;case"Hours":return o.setHours(o.getHours()+i),o;case"Minutes":return o.setMinutes(o.getMinutes()+i),o;case"Seconds":return o.setSeconds(o.getSeconds()+i),o}else o=this.getDecimalInterval(o,i,r);return o},i.prototype.alignRangeStart=function(e,t,i){var o=new Date(t);switch(e.actualIntervalType){case"Years":var r=Math.floor(Math.floor(o.getFullYear()/i)*i);return o=new Date(r,o.getMonth(),o.getDate(),0,0,0);case"Months":var n=Math.floor(Math.floor(o.getMonth()/i)*i);return o=new Date(o.getFullYear(),n,o.getDate(),0,0,0);case"Days":var a=Math.floor(Math.floor(o.getDate()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),a,0,0,0);case"Hours":var l=Math.floor(Math.floor(o.getHours()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),l,0,0);case"Minutes":var s=Math.floor(Math.floor(o.getMinutes()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,0,0);case"Seconds":var h=Math.floor(Math.floor(o.getSeconds()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),h,0)}return o},i.prototype.getDecimalInterval=function(e,t,i){var o=Math.floor(t),r=t-o;switch(i){case"Years":var n=Math.round(12*r);return e.setFullYear(e.getFullYear()+o),e.setMonth(e.getMonth()+n),e;case"Quarter":return e.setMonth(e.getMonth()+3*t),e;case"Months":var a=Math.round(30*r);return e.setMonth(e.getMonth()+o),e.setDate(e.getDate()+a),e;case"Weeks":return e.setDate(e.getDate()+7*t),e;case"Days":var l=Math.round(24*r);return e.setDate(e.getDate()+o),e.setHours(e.getHours()+l),e;case"Hours":var s=Math.round(60*r);return e.setHours(e.getHours()+o),e.setMinutes(e.getMinutes()+s),e;case"Minutes":var h=Math.round(60*r);return e.setMinutes(e.getMinutes()+o),e.setSeconds(e.getSeconds()+h),e;case"Seconds":var c=Math.round(1e3*r);return e.setSeconds(e.getSeconds()+o),e.setMilliseconds(e.getMilliseconds()+c),e}return e},i.prototype.getModuleName=function(){return"DateTime"},i.prototype.destroy=function(){},i}(lr),cr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),dr=function(e){function i(t){return e.call(this,t)||this}return cr(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),e.actualRange={},e.interval?e.actualRange.interval=Math.ceil(e.interval):e.actualRange.interval=Math.max(1,Math.floor(e.doubleRange.delta/oe(t,e))),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end,e.actualRange.delta=e.doubleRange.delta},i.prototype.applyRangePadding=function(e,i){var o;e.series.forEach(function(i){o||(o=(i.type.indexOf("Column")>-1||i.type.indexOf("Bar")>-1)&&!(e.zoomFactor<1||e.zoomPosition>0)&&t.isNullOrUndefined(e.minimum)&&t.isNullOrUndefined(e.maximum))});var r="BetweenTicks"!==e.labelPlacement&&!o||this.chart.stockChart||"PolarRadar"===this.chart.chartAreaType?0:.5;r>0?(e.actualRange.min-=r,e.actualRange.max+=r):e.actualRange.max+=e.actualRange.max?0:.5,e.doubleRange=new Ai(e.actualRange.min,e.actualRange.max),e.actualRange.delta=e.doubleRange.delta,this.calculateVisibleRange(i,e)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[],e.visibleRange.interval=e.visibleRange.interval<1?1:e.visibleRange.interval;var i,o=Math.ceil(e.visibleRange.min);(e.zoomFactor<1||e.zoomPosition>0)&&(o=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval);var r;for(e.startLabel=e.labels[Math.round(e.visibleRange.min)],e.endLabel=e.labels[Math.floor(e.visibleRange.max)];o<=e.visibleRange.max;o+=e.visibleRange.interval)i=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(o,e.visibleRange)&&e.labels.length>0&&(r=Math.round(o),ee(this.chart,r,e.labels[r]?e.labels[r].toString():"",i,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Category"},i.prototype.destroy=function(){},i}(lr),pr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ur=function(e){function i(t){return e.call(this,t)||this}return pr(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.calculateVisibleRange(e,t),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),this.min=this.min<0?0:this.min;var i=m(this.min,e.logBase);i=isFinite(i)?i:this.min;var o=1===this.max?1:m(this.max,e.logBase);o=isFinite(i)?o:this.max,this.min=Math.floor(i/1),e.series&&e.series.some(function(e){return(-1!==e.type.indexOf("Column")||-1!==e.type.indexOf("Bar"))&&-1===e.type.indexOf("Range")})&&(this.min=this.min<=0?+this.min-1:this.min),this.max=Math.ceil(o/1),this.max=this.max===this.min?this.max+1:this.max,e.actualRange.interval=e.interval||this.calculateLogNiceInterval(this.max-this.min,t,e),e.actualRange.min=this.min,e.actualRange.max=this.max,e.actualRange.delta=this.max-this.min},i.prototype.calculateVisibleRange=function(e,i){i.visibleRange={interval:i.actualRange.interval,max:i.actualRange.max,min:i.actualRange.min,delta:i.actualRange.delta};var o=!t.isNullOrUndefined(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;(i.zoomFactor<1||i.zoomPosition>0)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateLogNiceInterval(i.doubleRange.delta,e,i):i.visibleRange.interval,i.visibleRange.interval=0===Math.floor(i.visibleRange.interval)?1:Math.floor(i.visibleRange.interval),i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval))},i.prototype.calculateLogNiceInterval=function(e,t,i){var o=oe(t,i),r=e,n=Math.pow(i.logBase,Math.floor(m(r,10)));i.intervalDivs=r>=10?[10,5,2,1,.5,.2]:i.intervalDivs;for(var a=0,l=i.intervalDivs.length;a<l;a++){var s=n*i.intervalDivs[a];if(o<e/s)break;r=s}return r},i.prototype.calculateVisibleLabels=function(e,i){var o=e.visibleRange.min;e.visibleLabels=[];var r,n;(e.zoomFactor<1||e.zoomPosition>0)&&(o=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval);var a=this.getFormat(e),l=null!==a.match("{value}"),s=Math.pow(e.logBase,e.visibleRange.min);for(e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator,maximumFractionDigits:s<1?20:3}),e.startLabel=e.format(s<1?+s.toPrecision(1):s),e.endLabel=e.format(Math.pow(e.logBase,e.visibleRange.max));o<=e.visibleRange.max;o+=e.visibleRange.interval)r=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(o,e.visibleRange)&&(n=Math.pow(e.logBase,o),ee(this.chart,o,this.formatValue(e,l,a,n<1?+n.toPrecision(1):n),r,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Logarithmic"},i.prototype.destroy=function(){},i}(Mi),gr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),mr=function(e){function i(t){return e.call(this,t)||this}return gr(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.axisSize=e,this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[];e.labelPlacement;var i,o=0,r="rangeNavigator"===this.chart.getModuleName();this.axisSize=r?this.chart.availableSize:this.axisSize,(r||this.chart.stockChart)&&e.labels.sort(function(e,t){return Number(e)-Number(t)}),"Auto"===e.intervalType?this.calculateDateTimeNiceInterval(e,this.axisSize,parseInt(e.labels[0],10),parseInt(e.labels[e.labels.length-1],10)):e.actualIntervalType=e.intervalType,e.format=this.chart.intl.getDateFormat({format:e.labelFormat,type:U(e.skeletonType),skeleton:this.getSkeleton(e,null,null)});for(var n=!r&&this.chart.stockChart?1:0,a=e.interval?e.interval:1;n<e.labels.length;n+=a)i=t.extend({},t.getValue("properties",e.labelStyle),null,!0),this.chart.stockChart||r?"Auto"===e.intervalType?(!r&&1===n||this.StartOfWeek(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e,n,o)||e.isIndexed)&&v(n,e.visibleRange)&&(ee(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e),o=n):(!r&&1===n||!this.sameInterval(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e.actualIntervalType,n)||e.isIndexed)&&v(n,e.visibleRange)&&(!r&&1===n||this.isMaximum(n,o,e))&&(ee(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e),o=n):this.sameInterval(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e.actualIntervalType,n)&&!e.isIndexed||v(n,e.visibleRange)&&ee(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e);e.startLabel=e.visibleLabels[0]?e.visibleLabels[0].text:"",e.endLabel=e.visibleLabels[e.visibleLabels.length-1]?e.visibleLabels[e.visibleLabels.length-1].text:"",e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getIndexedAxisLabel=function(e,t){for(var i=e.split(","),o=0;o<i.length;o++)i[o]=t(new Date(parseInt(i[o],10)));return i.join(", ")},i.prototype.sameInterval=function(e,t,i,o){var r;if(0===o)r=!1;else switch(i){case"Years":r=new Date(e).getFullYear()===new Date(t).getFullYear();break;case"Quarter":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&Math.floor(new Date(e).getMonth()/3)===Math.floor(new Date(t).getMonth()/3);break;case"Months":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth();break;case"Weeks":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth()&&Math.floor((new Date(e).getDate()-1)/7)===Math.floor((new Date(t).getDate()-1)/7);break;case"Days":r=Math.abs(e-t)<864e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Hours":r=Math.abs(e-t)<36e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Minutes":r=Math.abs(e-t)<6e4&&new Date(e).getMinutes()===new Date(t).getMinutes();break;case"Seconds":r=Math.abs(e-t)<1e3&&new Date(e).getDay()===new Date(t).getDay()}return r},i.prototype.StartOfWeek=function(e,t,i,o,r){if(0===o)return!0;var n=!1;if(i.labels.length>=30){var a=new Date(t),l=new Date(e);a.setDate(a.getDate()-a.getDay()),l.setDate(l.getDate()-l.getDay()),n=!(a.getTime()===l.getTime())&&this.isMaximum(o,r,i)}else n=this.isMaximum(o,r,i);return n},i.prototype.isMaximum=function(e,t,i){if(0===e)return!0;return T(e,i)*i.rect.width-T(t,i)*i.rect.width>=(i.labels.length>=15?100:50)},i.prototype.getModuleName=function(){return"DateTimeCategory"},i.prototype.destroy=function(){},i}(dr),yr=function(){function e(){}return e.prototype.measureStripLine=function(e,t,o,r,n,a){var l,s,h=e.orientation,c="DateTime"===e.valueType;if(t.isRepeat&&null!==t.size)l=r,s=null;else if("DateTimeCategory"===e.valueType){var d=t.start,p=t.end;l=null!=d&&"number"!=typeof d?e.labels.indexOf(this.dateToMilliSeconds(d,a).toString()):d,s=null!=p&&"number"!=typeof p?e.labels.indexOf(this.dateToMilliSeconds(p,a).toString()):p}else l=null===t.start?null:c&&this.isCoreDate(t.start)?this.dateToMilliSeconds(t.start,a):+("Logarithmic"===e.valueType?m(t.start,e.logBase):t.start),s=null===t.end?null:c&&this.isCoreDate(t.start)?this.dateToMilliSeconds(t.end,a):+("Logarithmic"===e.valueType?m(t.end,e.logBase):t.end);var u=this.getFromTovalue(l,s,t.size,t.startFromAxis,e,t),g="Vertical"===h?(u.to-u.from)*e.rect.height:o.height,y="Horizontal"===h?(u.to-u.from)*e.rect.width:o.width,f="Vertical"===h?o.x:u.from*e.rect.width+e.rect.x,v="Horizontal"===h?o.y:e.rect.y+e.rect.height-("Pixel"===t.sizeType?u.from:u.to)*e.rect.height;if(t.isSegmented&&null!=t.segmentStart&&null!=t.segmentEnd&&"Pixel"!==t.sizeType){var d=c&&this.isCoreDate(t.segmentStart)?this.dateToMilliSeconds(t.segmentStart,a):+t.segmentStart,p=c&&this.isCoreDate(t.segmentEnd)?this.dateToMilliSeconds(t.segmentEnd,a):+t.segmentEnd,b=this.getFromTovalue(d,p,null,null,n,t);"Vertical"===n.orientation?(v=n.rect.y+n.rect.height-b.to*n.rect.height,g=(b.to-b.from)*n.rect.height):(f=b.from*n.rect.width+n.rect.x,y=(b.to-b.from)*n.rect.width)}return 0!==g&&0!==y||"Pixel"===t.sizeType&&(null!==t.start||t.startFromAxis)?new i.Rect(f,v,y,g):new i.Rect(0,0,0,0)},e.prototype.getFromTovalue=function(e,i,o,r,n,a){var l=!a.isRepeat&&r?n.visibleRange.min:e;"Double"!==n.valueType||null===o||r||null!=a.start||(l+=o);var s=this.getToValue(Math.max(e,t.isNullOrUndefined(i)?e:i),l,o,n,i,a);return l=this.findValue(l,n),s=this.findValue(s,n),{from:T(n.isAxisInverse?s:l,n),to:T(n.isAxisInverse?l:s,n)}},e.prototype.getToValue=function(e,t,i,o,r,n){var a=n.sizeType,l=null===r;if("DateTime"!==o.valueType)return"Pixel"===n.sizeType?t:l?t+i:e;var s=new Date(t);switch("Auto"===a&&(a=o.actualIntervalType,i*=o.visibleRange.interval),a){case"Years":return l?new Date(s.setFullYear(s.getFullYear()+i)):e;case"Months":return l?new Date(s.setMonth(s.getMonth()+i)):e;case"Days":return l?new Date(s.setDate(s.getDate()+i)):e;case"Hours":return l?new Date(s.setHours(s.getHours()+i)):e;case"Minutes":return l?new Date(s.setMinutes(s.getMinutes()+i)):e;case"Seconds":return l?new Date(s.setSeconds(s.getSeconds()+i)):e;default:return t}},e.prototype.findValue=function(e,t){return e<t.visibleRange.min?e=t.visibleRange.min:e>t.visibleRange.max&&(e=t.visibleRange.max),e},e.prototype.dateParse=function(e,t){var i=t.intl.getDateParser({skeleton:"full",type:"dateTime"}),r=t.intl.getDateFormat({skeleton:"full",type:"dateTime"});return new Date(Date.parse(i(r(new Date(o.DataUtil.parse.parseJson({val:e}).val)))))},e.prototype.renderStripLine=function(e,t,i){var o,r=e.element.id+"_stripline_"+t+"_",n=e.chartAxisLayoutPanel.seriesClipRect,a=0,l=0,s=null,h=new co(r+"ClipRect","transparent",{width:1,color:"Gray"},1,{x:n.x,y:n.y,width:n.width,height:n.height}),c=e.renderer.createGroup({id:r+"collections","clip-path":"url(#"+r+"ClipRect)"});e.enableCanvas||c.appendChild(J(e.redraw,h,e.renderer));for(var d=0,p=i;d<p.length;d++)for(var u=p[d],g=0,m=0,y=u.stripLines;m<y.length;m++){var f=y[m];if(f.visible&&f.zIndex===t)if(f.isSegmented&&null!=f.segmentStart&&null!=f.segmentEnd&&"Pixel"!==f.sizeType&&(s=this.getSegmentAxis(i,u,f)),f.isRepeat&&null!=f.repeatEvery&&null!==f.size&&"Pixel"!==f.sizeType)for(a=null!=f.repeatUntil?"DateTime"===u.valueType?this.dateToMilliSeconds(f.repeatUntil,e):+f.repeatUntil:u.actualRange.max,l="DateTime"===u.valueType&&this.isCoreDate(f.start)?this.dateToMilliSeconds(f.start,e):f.start,(f.startFromAxis&&"DateTime"===u.valueType&&"Auto"===f.sizeType||f.start<u.visibleRange.min)&&(l=u.visibleLabels[0]&&u.visibleLabels[0].value===u.visibleRange.min?u.visibleRange.min:u.visibleLabels[0]&&u.visibleLabels[0].value-("DateTime"===u.valueType?u.dateTimeInterval:u.visibleRange.interval)),l=f.startFromAxis&&"DateTime"!==u.valueType?u.visibleRange.min:l;l<a;)o=v(l+("DateTime"===u.valueType?u.dateTimeInterval*+f.size:f.size),u.visibleRange),(l>=u.visibleRange.min&&l<u.visibleRange.max||o)&&this.renderStripLineElement(u,f,n,r,c,e,l,s,g),g++,l=this.getStartValue(u,f,l);else this.renderStripLineElement(u,f,n,r,c,e,null,s,g),g++}be(e.enableCanvas,e.svgObject,c,e.redraw)},e.prototype.isCoreDate=function(e){return"string"==typeof e},e.prototype.dateToMilliSeconds=function(e,t){return this.dateParse(e,t).getTime()},e.prototype.renderPath=function(e,t,o,r,n,a){var l=he(o),s=l?l.getAttribute("d"):"",h=e.size,c="Vertical"===a.orientation?"M "+t.x+" "+t.y+" L "+(t.x+t.width)+" "+t.y:"M "+t.x+" "+t.y+" L "+t.x+" "+(t.y+t.height);"Pixel"!==e.sizeType&&(c="Vertical"===a.orientation?"M "+t.x+" "+(t.y+t.height/2)+" L "+(t.x+t.width)+" "+(t.y+t.height/2):"M "+(t.x+t.width/2)+" "+t.y+" L "+(t.x+t.width/2)+" "+(t.y+t.height),h="Vertical"===a.orientation?t.height:t.width),be(n.enableCanvas,r,n.renderer.drawPath(new i.PathOption(o,"none",h,e.color,e.opacity,e.dashArray,c)),n.redraw,!0,"x","y",null,s,!0,null,null,n.duration)},e.prototype.renderRectangle=function(e,t,o,r,n){var a=he(o),l=a?new i.Rect(+a.getAttribute("x"),+a.getAttribute("y"),+a.getAttribute("width"),+a.getAttribute("height")):null;be(n.enableCanvas,r,n.renderer.drawRectangle(new co(o,"none",e.border,e.opacity,t,0,0,"",e.border.dashArray)),n.redraw,!0,"x","y",null,null,!0,!0,l,n.duration)},e.prototype.drawImage=function(e,t,i,o,r){"Pixel"===e.sizeType&&(t.width=t.width?t.width:e.size,t.height=t.height?t.height:e.size);var n=new po(t.height,t.width,e.imageUrl,t.x,t.y,i,"visible","none"),a=r.renderer.drawImage(n);be(r.enableCanvas,o,a,r.redraw,!0,"x","y",null,null,!0,!0)},e.prototype.renderText=function(e,t,o,r,n,a){var l,s=i.measureText(e.text,e.textStyle,n.themeStyle.stripLineLabelFont),h=null===e.rotation,c=s.height/8*3,d=s.height/4,p=t.y+t.height/2+d,u=h?"Vertical"===a.orientation?0:-90:e.rotation,g=t.x+t.width/2;if("Horizontal"===a.orientation){g=this.getTextStart(g+c*this.factor(e.horizontalAlignment),t.width,e.horizontalAlignment),p=this.getTextStart(p-c,t.height,e.verticalAlignment)+("Start"!==e.verticalAlignment||h?0:s.height/4),l=h?this.invertAlignment(e.verticalAlignment):e.horizontalAlignment;var m=90===Math.abs(e.rotation)||270===Math.abs(e.rotation)?s.height/2:s.width/2;l=g-m<a.rect.x?"Start":g+m>a.rect.x+a.rect.width?"End":l}else g=this.getTextStart(g,t.width,e.horizontalAlignment),p=this.getTextStart(p+c*this.factor(e.verticalAlignment)-5,t.height,e.verticalAlignment),l=e.horizontalAlignment,l=n.enableRtl?"End"===l?"Start":"Start"===l?"End":l:l;je(n.renderer,new i.TextOption(o,g,p,l,e.text,"rotate("+u+" "+g+","+p+")","middle"),e.textStyle,e.textStyle.color||n.themeStyle.stripLineLabelFont.color,r,null,null,null,null,null,null,null,null,n.enableCanvas,null,n.themeStyle.stripLineLabelFont)},e.prototype.invertAlignment=function(e){switch(e){case"Start":e="End";break;case"End":e="Start"}return e},e.prototype.getStartValue=function(e,t,i){return"DateTime"===e.valueType?this.getToValue(null,i,+t.repeatEvery,e,null,t):i+ +t.repeatEvery},e.prototype.getSegmentAxis=function(e,t,i){var o;if(null==i.segmentAxisName)return"Horizontal"===t.orientation?e[1]:e[0];for(var r=0;r<e.length;r++)i.segmentAxisName===e[r].name&&(o=e[r]);return o},e.prototype.renderStripLineElement=function(e,t,o,r,n,a,l,s,h){var c=this.measureStripLine(e,t,o,l,s,a);if(t.imageUrl)this.drawImage(t,c,r+"rect_"+e.name+"_"+h,n,a);else{this.renderPath(t,c,r+("Pixel"===t.sizeType?"path_":"rect_")+e.name+"_"+h,n,a,e);var d=new i.Rect("Horizontal"===e.orientation?c.x-t.size/2:c.x,"Vertical"===e.orientation?c.y-t.size/2:c.y,c.width?c.width:t.size,c.height?c.height:t.size);this.renderRectangle(t,"Pixel"===t.sizeType?d:c,r+"border_"+e.name+"_"+h,n,a)}""!==t.text&&this.renderText(t,c,r+"text_"+e.name+"_"+h,n,a,e)},e.prototype.factor=function(e){var t=0;switch(e){case"Start":t=1;break;case"End":t=-1}return t},e.prototype.getTextStart=function(e,t,i){switch(i){case"Start":e=e-t/2+5;break;case"End":e=e+t/2-5}return e},e.prototype.getModuleName=function(){return"StripLine"},e.prototype.destroy=function(){},e}(),fr=function(){function e(e){this.chart=e}return e.prototype.enableComplexProperty=function(e){var i=[],o=[],r=e.xAxis.visibleRange,n=e.yAxis.visibleRange,a=e.points,l=e.clipRect,s=this.chart&&this.chart.zoomRedraw&&this.chart.redraw?this.previousX:Math.abs(r.delta/l.width),h=this.chart&&this.chart.zoomRedraw&&this.chart.redraw?this.previousY:Math.abs(n.delta/l.height),c=a[0]&&a[0].xValue>s?0:s,d=a[0]&&a[0].y>h?0:h;this.previousX=s,this.previousY=h;for(var p=0,u=0,g=0,m=a;g<m.length;g++){var y=m[g];y.symbolLocations=[],p=t.isNullOrUndefined(y.xValue)?r.min:y.xValue,u=t.isNullOrUndefined(y.yValue)?n.min:y.yValue,(Math.abs(c-p)>=s||Math.abs(d-u)>=h)&&(i.push(y),c=p,d=u)}for(var f,v=0;v<i.length;v++)f=i[v],t.isNullOrUndefined(f.x)||"Indicator"===e.category&&(isNaN(f.xValue)||isNaN(f.yValue))||o.push(f);return o},e.prototype.getLineDirection=function(e,t,i,o,r,n){var a="";if(null!=e){var l=r(e.xValue,e.yValue,i.xAxis,i.yAxis,o,i),s=r(t.xValue,t.yValue,i.xAxis,i.yAxis,o,i);a=n+" "+l.x+" "+l.y+" L "+s.x+" "+s.y+" "}return a},e.prototype.appendLinePath=function(e,t,i){var o=this.appendPathElement(e,t,i);$(o.element,e.d,t.chart.redraw,o.previousDirection,o.chart.duration)},e.prototype.appendPathElement=function(e,t,i){var o=he(e.id),r=t.chart,n=o?o.getAttribute("d"):null,a=t.chart.renderer.drawPath(e,new Int32Array([t.clipRect.x,t.clipRect.y]));if(a&&a.setAttribute("clip-path",i),"TrendLine"===t.category&&a){var l=r.series[t.sourceIndex].trendlines[t.index];l.marker.visible||a.setAttribute("tabindex",l.accessibility.focusable?String(l.accessibility.tabIndex):"-1"),a.setAttribute("role",l.accessibility.accessibilityRole?l.accessibility.accessibilityRole:""),a.setAttribute("aria-label",l.accessibility.accessibilityDescription?l.accessibility.accessibilityDescription:"")}return t.pathElement=a,t.chart.enableCanvas||t.seriesElement.appendChild(a),t.isRectSeries=!1,{element:o,previousDirection:n,chart:r}},e.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=l;s<a;s++)n.length!==r.length&&r.push(r[r.length-1].replace("M","L"));K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(t.removedPointIndex===t.points.length?n.push(n[n.length-1].replace("M","L")):n.splice(1,0,n[0].replace("M","L")));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},e.prototype.addAreaPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(l<n.length){for(s=l;s<a;s++)n.length!==r.length&&n.length!==r.length&&(1===r.length?r.push(r[r.length-(-1!==e.id.indexOf("border")?1:2)].replace("M","L")):r.splice(r.length-1,0,r[r.length-(-1!==e.id.indexOf("border")?1:2)]));K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(t.removedPointIndex===t.points.length?1===n.length?n.push(n[n.length-(-1!==e.id.indexOf("border")?1:2)].replace("M","L")):n.splice(n.length-1,0,n[n.length-(-1!==e.id.indexOf("border")?1:2)]):n.splice(1,0,n[1]?n[1]:n[0]));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},e.prototype.renderMarker=function(e){e.marker&&e.marker.visible&&e.chart.markerRender.render(e)},e.prototype.doProgressiveAnimation=function(e,i){var o,r=new t.Animation({}),n=e.pathElement,a=n.getAttribute("stroke-dasharray"),l=e.pathElement.getTotalLength();n.style.visibility="hidden",r.animate(n,{duration:0===i.duration&&"Enable"===t.animationMode?1e3:i.duration,delay:i.delay,progress:function(e){n.style.visibility="visible",o=Math.abs(Math.round(e.timeStamp*l/e.duration)),n.setAttribute("stroke-dasharray",o+","+l)},end:function(){var t=he(e.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.lastValueLabelElement&&e.lastValueLabelElement.setAttribute("visibility","visible"),n.setAttribute("stroke-dasharray",a),n.style.visibility="",e.chart.trigger("animationComplete",{series:e})}})},e.prototype.storePointLocation=function(e,t,o,r){var n=t.marker&&t.marker.width?t.marker.width:0,a=t.marker&&t.marker.height?t.marker.height:0;e.symbolLocations.push(r(e.xValue,e.yValue,t.xAxis,t.yAxis,o,t)),e.regions.push(new i.Rect(e.symbolLocations[0].x-n,e.symbolLocations[0].y-a,2*n,2*a))},e.prototype.withinYRange=function(e,t){return e.yValue>=t.visibleRange.min&&e.yValue<=t.visibleRange.max},e.prototype.GetStepLineDirection=function(e,t,i,o,r,n){void 0===o&&(o="L");var a=r.noRisers&&n?" M ":" L ";if("Right"===i)return(o=r.noRisers&&n?"M":"L")+" "+t.x+" "+e.y+" L "+e.x+" "+e.y+" ";if("Center"===i){var l=t.x+(e.x-t.x)/2;return o+" "+l+" "+t.y+a+l+" "+e.y+" L "+e.x+" "+e.y+" "}return o+" "+e.x+" "+t.y+a+e.x+" "+e.y+" "},e.prototype.getFirstLastVisiblePoint=function(e){for(var t=null,i=null,o=0,r=e;o<r.length;o++){var n=r[o];null===t&&n.visible&&(t=i=n),i=n.visible?n:i}return{first:t||e[0],last:i||e[e.length-1]}},e.prototype.getBorderDirection=function(e){var t=e.split(" ");return t.length>3&&!this.chart.stackingAreaSeriesModule&&!this.chart.stackingStepAreaSeriesModule?t.splice(t.length-4,3):(this.chart.stackingAreaSeriesModule||this.chart.stackingStepAreaSeriesModule)&&(t.splice(t.length/2+1,t.length/2+1),"L"!==t[t.length-1]&&"M"!==t[t.length-1]||t.splice(t.length-1,1)),t.join(" ")},e.prototype.removeEmptyPointsBorder=function(e){var t,i=0,o=e.split(" ");if(4===o.length)return o.join(" ");do{(t=o.indexOf("M",i))>-1&&(o.splice(t+1,3),i=t+1,t-6>0&&(o.splice(t-6,6),i-=6))}while(-1!==t);return o.join(" ")},e.prototype.doLinearAnimation=function(e,t){var i=e.clipRectElement.childNodes[0].childNodes[0],o=e.chart.animated?e.chart.duration:t.duration,r=Y("Linear"),n=+i.getAttribute("height"),a=+i.getAttribute("width"),l=+i.getAttribute("x")+(e.chart.enableRtl?a:0),s=e.chart.requireInvertedAxis?+i.getAttribute("height")+ +i.getAttribute("y"):+i.getAttribute("y");if(i.style.visibility="hidden",this.animateRect(e,t,i,o,r,n,a,l,s,void 0),e.marker&&e.marker.visible&&e.symbolElement){var h=e.symbolElement.childNodes[0].childNodes[0];h.style.visibility="hidden",this.animateRect(e,t,h,o,r,n,a,l,s,void 0)}},e.prototype.animateRect=function(e,i,o,r,n,a,l,s,h,c){new t.Animation({}).animate(o,{duration:0===r&&"Enable"===t.animationMode?1e3:r,delay:i.delay,progress:function(t){o.style.visibility="visible",e.chart.requireInvertedAxis?(c=n(t.timeStamp,0,a,t.duration),o.setAttribute("transform","translate("+s+" "+h+") scale(1,"+c/a+") translate("+-s+" "+-h+")")):(c=n(t.timeStamp,0,l,t.duration),o.setAttribute("transform","translate("+s+" "+h+") scale("+c/l+", 1) translate("+-s+" "+-h+")"))},end:function(){var t=he(e.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.lastValueLabelElement&&e.lastValueLabelElement.setAttribute("visibility","visible");var i=document.getElementById(e.chart.element.id+"_StackLabelGroup");i&&(q(i,0,r,e,null,null,!1),i.setAttribute("visibility","visible")),o.setAttribute("transform","translate(0,0)"),e.chart.trigger("animationComplete",{series:e})}})},e}(),vr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vr(t,e),t.prototype.render=function(e,t,o,r,n,a){for(var l,s,h="",c=null,d="M",p=e.chart&&"PolarRadar"===e.chart.chartAreaType,u=e.emptyPointSettings&&"Drop"===e.emptyPointSettings.mode,g=p?E:fe,m="TrendLine"===e.category?e.points:this.enableComplexProperty(e),y=0,f=m;y<f.length;y++){var v=f[y];v.regions=[],v.symbolLocations=[],v.visible&&x(m[v.index-1],v,m[v.index+1],e)?(h+=this.getLineDirection(c,v,e,r,g,d),d=c?"L":d,c=v,this.storePointLocation(v,e,r,g),""===h&&1===m.length&&(h="M "+v.symbolLocations[0].x+" "+v.symbolLocations[0].y)):(c=u?c:null,d=u?d:"M")}if(p&&e.isClosed){var b=this.getFirstLastVisiblePoint(m);s=g(b.last.xValue,b.last.yValue,t,o,r,e),l=g(b.first.xValue,b.first.yValue,t,o,r,e),h=h.concat(d+" "+s.x+" "+s.y+" L "+l.x+" "+l.y)}var S="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:"TrendLine"===e.category?e.chart.element.id+"_Series_"+e.sourceIndex+"_TrendLine_"+e.index:e.chart.element.id+"_Series_"+(void 0===e.index?e.category:e.index),C=new i.PathOption(S,"none",e.width,e.interior,e.opacity,e.dashArray,h);this[n?"addPath":"appendLinePath"](C,e,""),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doProgressiveAnimation(e,t)},t.prototype.getModuleName=function(){return"LineSeries"},t.prototype.destroy=function(){},t}(fr),xr=function(){function e(){}return e.prototype.getSideBySideInfo=function(e){if(e.isRectSeries=!0,(e.chart.enableSideBySidePlacement&&!e.position||!t.isNullOrUndefined(e.columnWidthInPixel))&&this.getSideBySidePositions(e),e.columnWidthInPixel)return new Ai(0,0);var i,o="Histogram"!==e.type&&e.chart.enableSideBySidePlacement?e.position:0,r="Histogram"!==e.type&&e.chart.enableSideBySidePlacement?e.rectCount:1,n=e.chart.visibleSeries,a=e.chart.enableSideBySidePlacement?e.columnSpacing:0,l=null===e.columnWidth||isNaN(+e.columnWidth)?"Histogram"===e.type?1:.7:Math.min(e.columnWidth,1),s=G(e.xAxis,n),h=s*l,c=o/r-.5,d=new Ai(c,c+1/r);if(!isNaN(d.start)&&!isNaN(d.end)){if(e.groupName&&-1===e.type.indexOf("Stacking")){var p=.7;e.chart.series.filter(function(e){e.columnWidth>p&&(p=e.columnWidth)});var u=s*p,g=new Ai(d.start*u,d.end*u),m=(g.delta-(d.end*h-d.start*h))/2;d=new Ai(g.start+m,g.end-m)}else d=new Ai(d.start*h,d.end*h);i=a*d.delta,d=new Ai(d.start+i/2,d.end-i/2)}return d},e.prototype.getRectangle=function(e,t,o,r,n){var a=fe(e,t,n.xAxis,n.yAxis,n.chart.requireInvertedAxis),l=fe(o,r,n.xAxis,n.yAxis,n.chart.requireInvertedAxis);return new i.Rect(Math.min(a.x,l.x),Math.min(a.y,l.y),Math.abs(l.x-a.x),Math.abs(l.y-a.y))},e.prototype.drawCylinder=function(e,i,o,r,n){var a=r.width,l=r.height;if(n.chart.enableCanvas){var s=n.chart.canvasRender.ctx,h=s;s.save();var c=Re(e.fill),d=r.x+n.clipRect.x,p=r.y+n.clipRect.y,u=2*Math.PI+.1,g=void 0,m=void 0,y=void 0,f=void 0,v=void 0,b=void 0,x=void 0,S=void 0,C=void 0,F=void 0,w=void 0,L=void 0,P=void 0,A=void 0,M=void 0,D=void 0,k=void 0,R=void 0,T=void 0,E=0,_=0,I=0,O=0,z=0;s.fillStyle=_e(c,.9),s.lineWidth=0,s.strokeStyle=_e(c,.9),s.globalAlpha=e.opacity,o.isColumn?(E=d,_=a+d,f=y=d+(g=a/2),F=v=p-(m=g/4),S=d,x=d+a,b=C=p+l-m,k=Math.PI,R=-g,T=m,o.stacking&&(o.isLastSeries||(F=v=p+m))):(O=l+p,I=p,S=y=d+(g=(m=l/2)/4),x=f=d+a+g,C=p+l,F=p,b=v=p+m,z=Math.PI/2,k=1.5*Math.PI,o.stacking&&(o.isLastSeries||(x=f=d+a-g)),R=g=-g,T=-(m=-m));var B=_e(c,.7),N=s.createLinearGradient(E,I,_,O);N.addColorStop(0,c),N.addColorStop(.3,B),N.addColorStop(.7,B),N.addColorStop(1,c);for(var V=1;V<=4;V++){ie=0;for(V<4&&s.beginPath(),V%2==0?(w=f,L=b,P=S,A=F):(w=y,L=v,P=x,A=C),4===V&&(g=R,m=T,s.fillStyle=N),V>2&&(ie=z,u=k);ie<=u;ie+=.1)M=w-g*Math.cos(ie),D=L+m*Math.sin(ie),0===ie?s.moveTo(M,D):s.lineTo(M,D);V>2&&s.lineTo(P,A),3!==V&&(s.stroke(),s.fill())}e.id.indexOf("Series")>=0&&(s.clip(),s.restore(),s=h)}else{var H=n.chart,d=r.x,p=r.y,W=e.id,j=c=e.fill;Te(c)||(c=Re(c));var U=0,X=0,G=0,Y=0,Z=0,q=0,Q=void 0,$=void 0,K=void 0,J=void 0,ee=void 0,te=void 0,g=void 0,m=void 0,ie=2;for(o.isColumn?(Q=K=d,J=$=(m=(g=a/2)/4)<p?p-m:o.stacking?p+m:p-m,U=2*g,Y=m<p?l:l<2*m?l:o.stacking?l-2*m:l,ee=Q,te=m<p?$+l:l<$?l+$:o.stacking?l+(p-m):l+$,Z=100,o.stacking&&(o.isLastSeries||($=J=p+m,Y=l<g/2?l:l-g/2))):(g=(m=l/2)/4,$=J=p,X=2*m,G=a,ee=(Q=K=Math.abs(d-g))+a,te=$,q=100,o.stacking&&(o.isLastSeries||(ee=Q+a-2*g,G=a-2*g))),t.remove(this.element);ie--;)e.d="M"+Q.toString()+","+$.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+U.toString()+","+X.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+(-1*U).toString()+","+(-1*X).toString(),e.id=W+"_Region_"+ie,e.fill=_e(c,.9),ie%2==0&&"StackingBar100"!==n.type&&"StackingBar"!==n.type&&"Bar"!==n.type&&(e.fill=e.fill+"10"),this.element=H.renderer.drawPath(this.options,new Int32Array([n.clipRect.x,n.clipRect.y])),be(n.chart.enableCanvas,n.seriesElement,this.element,H.redraw),Q=ee,$=te;e.d="M"+K.toString()+","+J.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+U.toString()+","+X.toString()+"l"+G.toString()+" "+Y.toString()+"a"+g.toString()+","+m.toString()+" 0 1,1 "+(-1*U).toString()+","+(-1*X).toString()+" z",e.id=W+"_Region_2",e.fill=_e(c,.7);var oe=void 0;if(-1===j.indexOf("url")){if(!document.getElementById(W)){oe={id:W,x1:"0%",y1:"0%",x2:Z.toString()+"%",y2:q.toString()+"%"};var re=[{colorStop:"0%",color:c},{colorStop:"30%",color:_e(c,.7)},{colorStop:"70%",color:_e(c,.7)},{colorStop:"100%",color:c}];this.drawGradient(oe,re,n)}e.fill="url(#"+oe.id+")"}this.element=H.renderer.drawPath(this.options,new Int32Array([n.clipRect.x,n.clipRect.y])),be(n.chart.enableCanvas,n.seriesElement,this.element,H.redraw)}},e.prototype.drawGradient=function(e,t,i){var o=i.chart.renderer.createDefs(),r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"linearGradient");n.setAttribute("id",e.id),n.setAttribute("x1",e.x1),n.setAttribute("y1",e.y1),n.setAttribute("x2",e.x2),n.setAttribute("y2",e.y2);for(var a=0;a<t.length;a++){var l=document.createElementNS(r,"stop");l.setAttribute("offset",t[a].colorStop),l.setAttribute("stop-color",t[a].color),l.setAttribute("stop-opacity","1"),n.appendChild(l)}i.seriesElement.appendChild(o),o.appendChild(n)},e.prototype.getSideBySidePositions=function(e){for(var t=e.chart,i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.findRectPosition(e.findSeriesCollection(r,l,!1))}},e.prototype.findRectPosition=function(e){for(var t=[],i={rectCount:0,position:null},o=0;o<e.length;o++)if(-1!==(n=e[o]).type.indexOf("Stacking")||""!==n.groupName){var r=-1!==n.type.indexOf("Stacking")?n.stackingGroup:n.type+n.groupName;r?void 0===t[r]?(n.position=i.rectCount,t[r]=i.rectCount++):n.position=t[r]:null===i.position?(n.position=i.rectCount,i.position=i.rectCount++):n.position=i.position}else n.position=i.rectCount++;for(o=0;o<e.length;o++){var n=e[o];n.rectCount=i.rectCount}},e.prototype.updateSymbolLocation=function(e,t,i){i.chart.requireInvertedAxis?this.updateYRegion(e,t,i):this.updateXRegion(e,t,i),"Histogram"===i.type&&(e.minimum=+e.x-i.histogramValues.binWidth/2,e.maximum=+e.x+i.histogramValues.binWidth/2)},e.prototype.updateXRegion=function(e,t,i){e.symbolLocations.push({x:t.x+t.width/2,y:"BoxPlot"===i.seriesType||-1!==i.seriesType.indexOf("HighLow")||e.yValue>=0==!i.yAxis.isAxisInverse?t.y:t.y+t.height}),this.getRegion(e,t,i),"RangeColumn"===i.type&&e.symbolLocations.push({x:t.x+t.width/2,y:t.y+t.height})},e.prototype.updateYRegion=function(e,t,i){e.symbolLocations.push({x:"BoxPlot"===i.seriesType||-1!==i.seriesType.indexOf("HighLow")||e.yValue>=0==!i.yAxis.isAxisInverse?t.x+t.width:t.x,y:t.y+t.height/2}),this.getRegion(e,t,i),"RangeColumn"===i.type&&e.symbolLocations.push({x:t.x,y:t.y+t.height/2})},e.prototype.renderMarker=function(e){e.marker&&e.marker.visible&&e.chart.markerRender.render(e)},e.prototype.getRegion=function(e,t,o){if(0===e.y){var r=o.marker&&o.marker.width?o.marker.width:0,n=o.marker&&o.marker.height?o.marker.height:0;e.regions.push(new i.Rect(e.symbolLocations[0].x-r,e.symbolLocations[0].y-n,2*r,2*n))}else e.regions.push(t)},e.prototype.triggerEvent=function(e,t,i,o){var r={cancel:!1,name:Ri,series:e,point:t,fill:e.setPointColor(t,i),border:e.setBorderColor(t,o),cornerRadius:e.cornerRadius};return e.chart.trigger(Ri,r),t.color=r.fill,r},e.prototype.drawRectangle=function(e,t,o,r){var n=e.chart;if((n.requireInvertedAxis?o.height:o.width)<=0)return null;var a;if(0===t.y)a=this.calculateRoundedRectPath(o,0,0,0,0);else{var l=void 0,s=void 0,h=void 0,c=void 0,d=t.y<0;n.requireInvertedAxis?(l=d?r.cornerRadius.topRight:r.cornerRadius.topLeft,s=d?r.cornerRadius.topLeft:r.cornerRadius.topRight,h=d?r.cornerRadius.bottomRight:r.cornerRadius.bottomLeft,c=d?r.cornerRadius.bottomLeft:r.cornerRadius.bottomRight):(l=d?r.cornerRadius.bottomLeft:r.cornerRadius.topLeft,s=d?r.cornerRadius.bottomRight:r.cornerRadius.topRight,h=d?r.cornerRadius.topLeft:r.cornerRadius.bottomLeft,c=d?r.cornerRadius.topRight:r.cornerRadius.bottomRight),a=this.calculateRoundedRectPath(o,l,s,h,c,n.requireInvertedAxis)}var p="Indicator"===e.category?n.element.id+"_Indicator_"+e.index+"_"+e.name+"_Point_"+t.index:n.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),u=Ve(n.redraw,p),g=u?u.getAttribute("d"):"";switch(this.options=new i.PathOption(p,r.fill,r.border.width,r.border.color,e.opacity,e.border.dashArray,"Cylinder"===e.columnFacet?"":a),this.element=n.renderer.drawPath(this.options,new Int32Array([e.clipRect.x,e.clipRect.y])),null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(this.element.id=n.element.id+"_Series_"+e.index+"_Point_"+t.index),e.seriesType){case"XY":this.element.setAttribute("role","img"),this.element.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x+":"+t.yValue+", "+e.name);break;case"HighLow":this.element.setAttribute("role","img"),this.element.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x+":"+t.high+", "+t.low+", "+e.name)}("Cylinder"!==e.columnFacet||!n.redraw&&n.enableAnimation||!e.seriesElement.querySelector("#"+this.element.id))&&be(e.chart.enableCanvas,e.seriesElement,this.element,n.redraw),e.chart.enableCanvas||$(this.element,"Cylinder"===e.columnFacet?"":a,n.redraw,g,n.duration)},e.prototype.animate=function(e){for(var t=e.seriesElement.childNodes,i="Indicator"===e.category?0:1,o=0,r=d(e);o<r.length;o++){var n=r[o];if(n.symbolLocations.length||"BoxAndWhisker"===e.type&&n.regions.length)if("Column"!==e.type&&"Bar"!==e.type&&"StackingColumn"!==e.type&&"StackingColumn100"!==e.type&&"StackingBar"!==e.type&&"StackingBar100"!==e.type||"Cylinder"!==e.columnFacet)this.animateRect(t[i],e,n),i++;else for(var a=0;a<t.length;a++)this.animateRect(t[a],e,n)}},e.prototype.animateRect=function(e,i,o){var r,n,a,l,s=i.animation,h=i.chart.animated?i.chart.duration:s.duration,c=Y("Linear"),d=o.yValue<0,p=+o.regions[0].height,u=+o.regions[0].width;i.chart.requireInvertedAxis?(n=+o.regions[0].y,i.type.indexOf("Stacking")>-1?(r=T(0,i.yAxis)*i.yAxis.rect.width,a=r,l=n):(r=+o.regions[0].x,l=d?n:n+p,a=-1!==i.seriesType.indexOf("HighLow")||-1!==i.type.indexOf("Waterfall")?r+u/2:d!==i.yAxis.isAxisInverse?r+u:r)):(r=+o.regions[0].x,i.type.indexOf("Stacking")>-1?(n=(1-T(0,i.yAxis))*i.yAxis.rect.height,a=r,l=n):(n=+o.regions[0].y,l=-1!==i.seriesType.indexOf("HighLow")||-1!==i.type.indexOf("Waterfall")?n+p/2:d!==i.yAxis.isAxisInverse?n:n+p,a=d?r:r+u));var g;t.isNullOrUndefined(e)||(e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:0===h&&"Enable"===t.animationMode?1e3:h,delay:s.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",i.chart.requireInvertedAxis?(u=u||1,g=c(t.timeStamp-t.delay,0,u,t.duration),e.setAttribute("transform","translate("+a+" "+l+") scale("+g/u+", 1) translate("+-a+" "+-l+")")):(p=p||1,g=c(t.timeStamp-t.delay,0,p,t.duration),e.setAttribute("transform","translate("+a+" "+l+") scale(1,"+g/p+") translate("+-a+" "+-l+")")))},end:function(){var t=document.getElementById(i.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),i.lastValueLabelElement&&i.lastValueLabelElement.setAttribute("visibility","visible");var r=document.getElementById(i.chart.element.id+"_StackLabelGroup");r&&(q(r,0,h,i,null,null,!1),r.setAttribute("visibility","visible")),e.setAttribute("transform","translate(0,0)");var n=i.seriesElement;if((e===n.lastElementChild||o.index===i.points.length-1||"Waterfall"===i.type&&e===n.children[n.childElementCount-2])&&(i.chart.trigger("animationComplete",{series:i}),"Waterfall"===i.type))for(var a=n.childNodes,l=0;l<a.length;l++)-1!==a[l].id.indexOf("Connector")&&(a[l].style.visibility="visible",a[l].setAttribute("transform","translate(0,0)"))}}))},e.prototype.calculateRoundedRectPath=function(e,t,i,o,r,n){var a=e.width/2,l=e.height/2;return t=Math.min(t,a,l),i=Math.min(i,a,l),o=Math.min(o,a,l),r=Math.min(r,a,l),"M "+e.x+" "+(t+e.y)+" Q "+e.x+" "+e.y+" "+(e.x+t)+" "+e.y+" L "+(e.x+e.width-i)+" "+e.y+" Q "+(e.x+e.width)+" "+e.y+" "+(e.x+e.width)+" "+(e.y+i)+" L "+(e.x+e.width)+" "+(e.y+e.height-r)+" Q "+(e.x+e.width)+" "+(e.y+e.height)+" "+(e.x+e.width-r)+" "+(e.y+e.height)+" L "+(e.x+o)+" "+(e.y+e.height)+" Q "+e.x+" "+(e.y+e.height)+" "+e.x+" "+(e.y+e.height-o)+" L "+e.x+" "+(t+e.y)+" Z"},e}(),Sr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Cr=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Sr(o,e),o.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.yAxis.visibleRange.min,0),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}this.renderMarker(e)},o.prototype.renderPoint=function(e,o,r,n){if(o.symbolLocations=[],o.regions=[],o.visible&&x(e.points[o.index-1],o,e.points[o.index+1],e)){this.rect=this.getRectangle(o.xValue+r.start,o.yValue,o.xValue+r.end,n,e),this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel-(e.chart.enableSideBySidePlacement?e.columnWidthInPixel*e.columnSpacing:0):this.rect.width;t.isNullOrUndefined(e.rectCount)||e.rectCount;this.rect.x=e.columnWidthInPixel?this.rect.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):this.rect.x;var a="Indicator"===e.category?o.color:e.interior,l=this.triggerEvent(e,o,a,{width:e.border.width,color:e.border.color});if(!l.cancel){var s=this.rect.y;if(o.yValue<n&&o.yValue>=0&&e.chart.zoomModule&&e.chart.zoomModule.isAxisZoomed(e.chart.axisCollections)&&(s=fe(o.xValue+r.start,o.yValue,e.xAxis,e.yAxis,e.chart.requireInvertedAxis).y),this.updateSymbolLocation(o,new i.Rect(this.rect.x,s,this.rect.width,this.rect.height),e),this.drawRectangle(e,o,this.rect,l),"Cylinder"===e.columnFacet){var h={isColumn:!0,stacking:!1,isLastSeries:!0};this.drawCylinder(this.options,this.element,h,this.rect,e)}}}},o.prototype.updateDirection=function(e,t){for(var i=Math.max(e.yAxis.visibleRange.min,0),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[o]],e.points[t[o]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},o.prototype.doAnimation=function(e){this.animate(e)},o.prototype.getModuleName=function(){return"ColumnSeries"},o.prototype.destroy=function(){},o}(xr),Fr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fr(t,e),t.prototype.getAreaPathDirection=function(e,t,i,o,r,n,a){var l,s="";return null===n&&(s+=a+" "+(l=r(e,t,i.xAxis,i.yAxis,o,i)).x+" "+l.y+" "),s},t.prototype.getAreaEmptyDirection=function(e,t,i,o,r){var n="";return n+=this.getAreaPathDirection(e.x,e.y,i,o,r,null,"L"),n+=this.getAreaPathDirection(t.x,t.y,i,o,r,null,"L")},t.prototype.setPointColor=function(e,t,i,o,r){if(""===i.pointColorMapping){for(var n=void 0,a=0;a<r.length;a++)if(n=r[a],(o?e.xValue:e.yValue)<=this.getAxisValue(n.value,o?i.xAxis:i.yAxis,i.chart)||!n.value&&0!==n.value){e.interior=n.color;break}return null==e.interior&&(e.interior=i.interior),!1}return!!t&&i.setPointColor(e,i.interior)!==i.setPointColor(t,i.interior)},t.prototype.sortSegments=function(e,t){var i=this,o="X"===e.segmentAxis?e.xAxis:e.yAxis;return[].concat(t).sort(function(t,r){return i.getAxisValue(t.value,o,e.chart)-i.getAxisValue(r.value,o,e.chart)})},t.prototype.applySegmentAxis=function(e,t,i,o){var r=this;if(""!==e.pointColorMapping)return t.map(function(t){r[o?"addMulticolorPath":"appendLinePath"](t,e,"")}),null;var n,a="X"===e.segmentAxis,l=a?e.xAxis:e.yAxis,s=e.chart;this.includeSegment(i,l,e,i.length);for(var h,c,d,p=i.length,u=0,g=this,m=0;m<p;m++)!function(p){n=i[p],h=g.getAxisValue(n.value,l,e.chart),(c=g.createClipRect(p?g.getAxisValue(i[p-1].value,l,e.chart):l.visibleRange.min,h,e,p,a))&&t.map(function(t){u+=1,d={"clip-path":c,"stroke-dasharray":n.dashArray,opacity:t.opacity,stroke:e.type.indexOf("Line")>-1?n.color||e.interior:t.stroke,"stroke-width":t["stroke-width"],fill:e.type.indexOf("Line")>-1?"none":n.color||e.interior,id:t.id+"_Segment_"+p,d:t.d},u%2==0&&r.chart.multiColoredAreaSeriesModule&&"transparent"!==e.border.color&&0!==d["stroke-width"]&&(d.fill="transparent"),o?r.addMulticolorPath(d,e,"",!0):$(he(d.id),d.d,s.redraw),e.pathElement=s.renderer.drawPath(d),e.chart.enableCanvas||o||e.seriesElement.appendChild(s.renderer.drawPath(d))})}(m)},t.prototype.includeSegment=function(e,t,i,o){if(o<=0)return e.push({value:t.visibleRange.max,color:i.interior}),null;this.getAxisValue(e[o-1].value,t,i.chart)<t.visibleRange.max&&e.push({value:t.visibleRange.max,color:i.interior})},t.prototype.addMulticolorPath=function(e,t,i,o){var r=this.appendPathElement(e,t,i);if(null!==r.previousDirection&&""!==r.previousDirection||(r.previousDirection="M "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]+" L "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]+" L "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]),null!==e.d&&""!==e.d||(e.d="M "+r.previousDirection.split(" ").slice(-3)[0]+" "+r.previousDirection.split(" ").slice(-5)[0]+" L "+r.previousDirection.split(" ").slice(-3)[0]+" "+r.previousDirection.split(" ").slice(-5)[0]),o){var n=r.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),l=Math.max(n.length,a.length),s=Math.min(n.length,a.length);if(n.length===a.length&&K(he(e.id),e.d,t.chart.redraw,r.previousDirection,this.chart.duration),n.length<a.length){for(h=s;h<l;h++)a.length!==n.length&&n.splice(n.length-(-1!==t.type.indexOf("Line")?1:2),0,n[n.length-(-1!==t.type.indexOf("Line")?1:2)]);K(he(e.id),e.d,t.chart.redraw,n.join(" "),this.chart.duration)}if(n.length>a.length){for(var h=s;h<l;h++)a.length!==n.length&&a.splice(1,0,a[1].replace("M","L"));K(r.element,a.join(""),t.chart.redraw,n.join(""),this.chart.duration,e.d)}}},t.prototype.createClipRect=function(e,t,i,o,r){var n=i.chart.requireInvertedAxis,a=fe(r?e:i.xAxis.visibleRange.min,r?i.yAxis.visibleRange.max:t,i.xAxis,i.yAxis,n),l=fe(r?t:i.xAxis.visibleRange.max,r?i.yAxis.visibleRange.min:e,i.xAxis,i.yAxis,n);l=n?[a,a=l][0]:l;var s;return(i.xAxis.isInversed||i.xAxis.isAxisInverse?a.x-l.x>0:l.x-a.x>0)&&(i.yAxis.isInversed?a.y-l.y>0:l.y-a.y>0)?(s=new co(i.chart.element.id+"_ChartSegment"+i.index+"ClipRect_"+o,"transparent",{width:1,color:"Gray"},1,{x:i.xAxis.isInversed||i.xAxis.isAxisInverse?l.x:a.x,y:i.yAxis.isInversed?l.y:a.y,width:i.xAxis.isInversed||i.xAxis.isAxisInverse?a.x-l.x:l.x-a.x,height:i.yAxis.isInversed?a.y-l.y:l.y-a.y}),i.chart.enableCanvas||i.seriesElement.appendChild(J(i.chart.redraw,s,i.chart.renderer)),"url(#"+i.chart.element.id+"_ChartSegment"+i.index+"ClipRect_"+o+")"):null},t.prototype.getAxisValue=function(e,t,i){if(null===e&&(e=t.visibleRange.max),"DateTime"===t.valueType){var r={skeleton:"full",type:"dateTime"};return Date.parse(i.intl.getDateParser(r)(i.intl.getDateFormat(r)(new Date(o.DataUtil.parse.parseJson({val:e}).val))))}if(t.valueType.indexOf("Category")>-1){var n="DateTimeCategory"===t.valueType?e.getTime().toString():e;return t.labels.indexOf(n)<0?+e:t.labels.indexOf(n)}return+e},t}(fr),Lr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t,o,r,n,a){var l=null,s="",h=e.chart&&"PolarRadar"===e.chart.chartAreaType,c=Math.max(e.yAxis.visibleRange.min,0);h&&(c=this.getFirstLastVisiblePoint(e.points).first.yValue);for(var d,p,u=e.emptyPointSettings&&"Drop"===e.emptyPointSettings.mode,g=e.border.width?e.border.width:0,m=e.border.color?e.border.color:e.interior,y="PolarRadar"===e.chart.chartAreaType?E:fe,f=this.enableComplexProperty(e),v="",b=0;b<f.length;b++)d=(p=f[b]).xValue,p.symbolLocations=[],p.regions=[],p.visible&&x(f[b-1],p,f[b+1],e)&&(s+=this.getAreaPathDirection(d,c,e,r,y,l,"M"),l=l||new mo(d,c),s+=this.getAreaPathDirection(d,p.yValue,e,r,y,null,"L"),f[b+1]&&!f[b+1].visible&&(!h||h&&this.withinYRange(f[b+1],o))&&!u&&(s+=this.getAreaEmptyDirection({x:d,y:c},l,e,r,y),l=null),this.storePointLocation(p,e,r,y));if(h&&""!==s){var S="",C=this.chart;S+=this.getAreaPathDirection(0,c,e,r,y,null,"L"),(t.isAxisInverse||o.isAxisInverse)&&(s+="Polar"===e.type?C.polarSeriesModule.getPolarIsInversedPath(t,S):C.radarSeriesModule.getRadarIsInversedPath(t,S)),s=s.concat(s+" Z")}this[n?"addAreaPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,""!==s?s+this.getAreaPathDirection(e.points[e.points.length-1].xValue,"PolarRadar"===e.chart.chartAreaType?e.points[e.points.length-1].yValue:c,e,r,y,null,"L"):""),e,""),0!==e.border.width&&(v=this.removeEmptyPointsBorder(s),this[n?"addAreaPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",g,m,1,e.border.dashArray,v),e,"")),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AreaSeries"},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t}(wr),Ar=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Mr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Ar(t,e),t.prototype.render=function(e){var t=Math.max(e.yAxis.visibleRange.min,0);this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o){if(t.symbolLocations=[],t.regions=[],t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){this.rect=this.getRectangle(t.xValue+i.start,t.yValue,t.xValue+i.end,o,e),this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.y=e.columnWidthInPixel?this.rect.y-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):this.rect.y;var r=this.triggerEvent(e,t,e.interior,{width:e.border.width,color:e.border.color});if(!r.cancel&&(this.updateSymbolLocation(t,this.rect,e),this.drawRectangle(e,t,this.rect,r),"Cylinder"===e.columnFacet)){var n={isColumn:!1,stacking:!1,isLastSeries:!0};this.drawCylinder(this.options,this.element,n,this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.yAxis.visibleRange.min,0),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[o]],e.points[t[o]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"BarSeries"},t}(xr),Dr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),kr=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.visibleAxisLabelRect=[],t}return Dr(o,e),o.prototype.measureAxis=function(e){var t=this.chart;this.initialClipRect=e,this.seriesClipRect=new i.Rect(e.x,e.y,e.width,e.height),this.measureRowAxis(t,this.initialClipRect),this.measureColumnAxis(t,this.initialClipRect),this.calculateAxisSize()},o.prototype.measureRowAxis=function(e,t){this.calculateRowSize(t);var o=e.rows[0];this.measureDefinition(o,e,new i.Size(e.availableSize.width,o.computedHeight))},o.prototype.measureColumnAxis=function(e,t){this.calculateColumnSize(t);var o=e.columns[0];this.measureDefinition(o,e,new i.Size(o.computedWidth,e.availableSize.height))},o.prototype.measureDefinition=function(e,t,i){for(var o=0,r=e.axes;o<r.length;o++){var n=r[o];n.getModule(t),n.baseModule.calculateRangeAndInterval(i,n)}},o.prototype.calculateAxisSize=function(){var e=this.chart;this.centerX=.5*this.initialClipRect.width+this.initialClipRect.x,this.centerY=.5*this.initialClipRect.height+this.initialClipRect.y,e.radius=Math.min(this.initialClipRect.width,this.initialClipRect.height)/2-5-e.primaryXAxis.majorTickLines.height-e.primaryXAxis.maxLabelSize.height,e.radius=e.primaryXAxis.coefficient*e.radius/100,this.seriesClipRect.y=this.centerY-e.radius,this.seriesClipRect.x=this.centerX-e.radius,this.seriesClipRect.height=2*e.radius,this.seriesClipRect.width=2*e.radius,this.calculateRowSize(this.seriesClipRect),e.primaryYAxis.rect=this.seriesClipRect,this.calculateColumnSize(this.seriesClipRect),e.primaryXAxis.rect=this.seriesClipRect},o.prototype.measure=function(){var e=this.chart,t=e.primaryYAxis;t.isRTLEnabled=e.enableRtl,t.setIsInversedAndOpposedPosition(!0),e.verticalAxes.push(t);var i=e.rows[0];i.axes[0]=t,e.rows[0]=i;var o=e.primaryXAxis;o.isRTLEnabled=e.enableRtl,o.setIsInversedAndOpposedPosition(!0),e.horizontalAxes.push(o);var r=e.columns[0];r.axes[0]=o,e.columns[0]=r},o.prototype.calculateRowSize=function(e){var t=this.chart,i=t.rows[0];i.computedHeight=e.height/2,i.computedTop=e.y,t.rows[0]=i},o.prototype.calculateColumnSize=function(e){var t=this.chart,i=t.columns[0];i.computedLeft=e.x,i.computedWidth=e.width,t.columns[0]=i},o.prototype.renderAxes=function(){var e,t=this.chart;this.startAngle=t.primaryXAxis.startAngle;for(var i=t.renderer.createGroup({id:t.element.id+"AxisCollection"}),o=t.renderer.createGroup({id:t.element.id+"AxisOutsideCollection"}),r=0,n=t.axisCollections.length;r<n;r++)this.element=t.renderer.createGroup({id:t.element.id+"AxisGroup"+r}),"Horizontal"===(e=t.axisCollections[r]).orientation?((e.majorGridLines.width>0||e.majorTickLines.width>0)&&this.drawXAxisGridLine(e,r),e.visible&&e.internalVisibility&&this.drawXAxisLabels(e,r)):(this.drawYAxisGridLine(e,r),e.lineStyle.width>0&&this.drawYAxisLine(e,r),e.visible&&e.internalVisibility&&this.drawYAxisLabels(e,r)),this.chart.enableCanvas||i.appendChild(this.element);return this.chart.enableCanvas||i.appendChild(this.element),be(t.enableCanvas,t.svgObject,i,t.redraw),o},o.prototype.drawYAxisLine=function(e,t){var i=this.chart,o={},r=I(O(e.visibleLabels[0].value,e),this.startAngle),n="M "+this.centerX+" "+this.centerY+"L "+(this.centerX+i.radius*r.x)+" "+(this.centerY+i.radius*r.y);o={id:i.element.id+"AxisLine_"+t,d:n,"stroke-dasharray":e.lineStyle.dashArray,"stroke-width":e.lineStyle.width,stroke:e.lineStyle.color||i.themeStyle.axisLine};var a=i.renderer.drawPath(o);this.setPointerEventNone(a),this.chart.enableCanvas||i.yAxisElements.appendChild(a)},o.prototype.drawYAxisLabels=function(e,o){var r,n,a,l,s=this.chart,h=0,c=0,d=this.startAngle<0?this.startAngle+360:this.startAngle,p=[],u=[];u[0]=!0;var g=e.labelIntersectAction,m=s.renderer.createGroup({id:s.element.id+"AxisLabels"+o}),y=I(O(e.visibleLabels[0].value,e),this.startAngle);if(e.labelTemplate){var f=s.element.id+"_YAxisLabelTemplate_Collection";s.yAxisLabelTemplate=t.createElement("div",{id:f})}for(var v=s.radius/e.visibleLabels.length,b=0,x=e.visibleLabels.length;b<x;b++){var S=e.visibleLabels[b];if(l=!1,a=s.radius*T(e.visibleLabels[b].value,e),r=e.visibleLabels[b].size,a=s.radius*T(e.visibleLabels[b].value,e),h=this.centerX+a*y.x+(e.majorTickLines.height+r.width/2+2.5)*Math.cos(d*Math.PI/180)*("Inside"===e.labelPosition&&s.enableRtl?-1:"Inside"===e.labelPosition?1:"Outside"===e.labelPosition&&s.enableRtl?1:-1),c=this.centerY+a*y.y+(e.majorTickLines.height+r.height/2)*Math.sin(d*Math.PI/180)*("Inside"===e.labelPosition&&s.enableRtl?-1:"Inside"===e.labelPosition?1:"Outside"===e.labelPosition&&s.enableRtl?1:-1),c+=r.height/4,p[b]=this.getLabelRegion(h,c,e.visibleLabels[b],"middle"),e.labelTemplate||(p[b]=this.getLabelRegion(h,c,S,"middle")),0!==b&&"Hide"===g&&!e.labelTemplate){for(var C=b;C>=0;C--){if(C=0===C?0:C===b?C-1:C,u[C]&&Le(p[b],p[C])){l=!0,u[b]=!1;break}u[b]=!0}if(l)continue;for(var F=0,w=this.visibleAxisLabelRect;F<w.length;F++){var L=w[F];if(Le(p[b],L)){l=!0;break}}}if(!l)if(e.labelTemplate||this.visibleAxisLabelRect.push(p[b]),n=new i.TextOption(s.element.id+o+"_AxisLabel_"+b,h,c,"middle",S.text),e.labelTemplate){var P=new i.Size(S.size.width,S.size.height),A=void 0,M=void 0,D="Outside"===e.labelPosition,k=Math.cos(d*Math.PI/180),R=Math.sin(d*Math.PI/180),E=e.majorTickLines.height+P.width+4.5,_=e.majorTickLines.height+P.height/2,z=this.centerX+a*y.x,B=this.centerY+a*y.y;A=z+(D?-E:E)*k,M=B+(D?-_:_)*R,A-=.5*P.width*(D?1-k:1+k);var N=.5*this.chart.border.width;if(A<N){var V=N-A;P.width=Math.max(0,S.size.width-V),A=N}M-=P.height>v?v/2:P.height/2;var H=s.element.id+"_YAxisLabelTemplate_"+o+"_"+b,W=ue(t.createElement("div",{id:H,styles:"position:absolute; pointer-events:none; z-index:1;left:"+A+"px; top:"+M+"px;width:"+P.width+"px; height:"+P.height+"px;"}),b,e.labelTemplate,s,S);s.yAxisLabelTemplate.appendChild(W)}else je(s.renderer,n,e.labelStyle,e.labelStyle.color||s.themeStyle.axisLabelFont.color,m,!1,s.redraw,!0,!0,null,null,null,null,s.enableCanvas,null,s.themeStyle.axisLabelFont)}this.chart.enableCanvas||e.labelTemplate||s.yAxisElements.appendChild(m)},o.prototype.drawYAxisGridLine=function(e,t){var o,r,n,a,l,s,h,c,d=this.chart,p="",u="",g=this.startAngle<0?this.startAngle+360:this.startAngle,m={color:e.majorGridLines.color||d.themeStyle.majorGridLine,width:e.majorGridLines.width};if(e.majorGridLines.width>0)if("Polar"===d.visibleSeries[0].type){for(y=0;y<e.visibleLabels.length;y++)s=(h=he(d.element.id+"_MajorGridLine_"+t+"_"+y))?h.getAttribute("r"):null,r=d.radius*T(e.visibleLabels[y].value,e),e.isInversed&&!c&&(c=r),o=new uo(d.element.id+"_MajorGridLine_"+t+"_"+y,"transparent",m,e.majorGridLines.width,this.centerX,this.centerY,r),be(d.enableCanvas,this.element,d.renderer.drawCircle(o),d.redraw,!0,"r","r",new mo(+s,+s),null,!0);r===d.radius||e.isInversed&&c===d.radius||(o=new uo(d.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length+1,"transparent",m,e.majorGridLines.width,this.centerX,this.centerY,d.radius),be(d.enableCanvas,this.element,d.renderer.drawCircle(o),d.redraw,!0,"r","r",new mo(+s,+s),null,!0))}else{for(var y=0;y<e.visibleLabels.length;y++)r=d.radius*T(e.visibleLabels[y].value,e),u=this.renderRadarGrid(r,"",d),s=(h=he(d.element.id+"_MajorGridLine_"+t+"_"+y))?h.getAttribute("d"):null,o=new i.PathOption(d.element.id+"_MajorGridLine_"+t+"_"+y,"transparent",e.majorGridLines.width,e.majorGridLines.color||d.themeStyle.majorGridLine,null,null,u),be(d.enableCanvas,this.element,d.renderer.drawPath(o),d.redraw,!0,"x","y",null,s,!0);r!==d.radius&&(u=this.renderRadarGrid(d.radius,"",d),s=(h=he(d.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length))?h.getAttribute("d"):null,o=new i.PathOption(d.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length,"transparent",e.majorGridLines.width,e.majorGridLines.color||d.themeStyle.majorGridLine,null,null,u),be(d.enableCanvas,this.element,d.renderer.drawPath(o),d.redraw,!0,"x","y",null,s,!0))}if(e.majorTickLines.width>0){n=I(O(e.visibleLabels[0].value,e),this.startAngle);for(var f=0;f<e.visibleLabels.length;f++)r=d.radius*T(e.visibleLabels[f].value,e),p="M "+(a=this.centerX+r*n.x)+" "+(l=this.centerY+r*n.y)+" L "+(a+e.majorTickLines.height*Math.cos(g*Math.PI/180)*("Inside"===e.tickPosition&&d.enableRtl?-1:"Inside"===e.tickPosition?1:"Outside"===e.tickPosition&&d.enableRtl?1:-1))+" "+(l+e.majorTickLines.height*Math.sin(g*Math.PI/180)*("Inside"===e.tickPosition&&d.enableRtl?-1:"Inside"===e.tickPosition?1:"Outside"===e.tickPosition&&d.enableRtl?1:-1)),this.renderTickLine(e,t,p,"",f)}},o.prototype.renderRadarGrid=function(e,t,i){for(var o,r,n,a,l,s,h=0,c=i.primaryXAxis.visibleLabels.length;h<c;h++)o=I(O(i.primaryXAxis.visibleLabels[h].value,i.primaryXAxis),this.startAngle),r=h+1<c?I(O(i.primaryXAxis.visibleLabels[h+1].value,i.primaryXAxis),this.startAngle):I(O(i.primaryXAxis.visibleLabels[0].value,i.primaryXAxis),this.startAngle),n=this.centerX+e*o.x,a=this.centerY+e*o.y,l=this.centerX+e*r.x,s=this.centerY+e*r.y,t=t.concat((h?"L ":"M ")+n+" "+a+" L "+l+" "+s+" ");return t},o.prototype.drawXAxisGridLine=function(e,t){for(var i,o,r,n,a,l=this.chart,s="",h="",c="",d="",p=this.centerX,u=this.centerY,g=e.visibleLabels.length,m=0;m<g;m++)i=e.visibleLabels[m].value,o=I(O(e.visibleLabels[m].value,e),this.startAngle),s="M "+p+" "+u+" L "+(r=this.centerX+l.radius*o.x)+" "+(n=this.centerY+l.radius*o.y),h="M "+r+" "+n+" L "+(r+e.majorTickLines.height*o.x*("Inside"===e.tickPosition?-1:1))+" "+(n+e.majorTickLines.height*o.y*("Inside"===e.tickPosition?-1:1)),e.minorTicksPerInterval>0&&(e.minorGridLines.width>0||e.minorTickLines.width>0)&&"Category"!==e.valueType&&"Radar"!==l.visibleSeries[0].type&&(c=(a=this.drawAxisMinorLine(e,i,c,d))[0],d=a[1]),this.renderTickLine(e,t,h,d,m),this.renderGridLine(e,t,s,c,m)},o.prototype.drawAxisMinorLine=function(e,t,i,o){for(var r,n,a,l=t,s=e.visibleRange,h=[],c=0;c<e.minorTicksPerInterval;c++)if(l+=("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval)/(e.minorTicksPerInterval+1),f(l,s)){a=I(O(l,e),this.startAngle),r=this.centerX+this.chart.radius*a.x,n=this.centerY+this.chart.radius*a.y;var d=r+e.minorTickLines.height*a.x*("Inside"===e.tickPosition?-1:1),p=n+e.minorTickLines.height*a.y*("Inside"===e.tickPosition?-1:1);i=i.concat("M "+this.centerX+" "+this.centerY+"L "+r+" "+n),o=o.concat("M "+r+" "+n+"L "+d+" "+p)}return h.push(i),h.push(o),h},o.prototype.drawXAxisLabels=function(e,o){this.visibleAxisLabelRect=[];var r;this.chart.legendModule&&(r=this.chart.legendModule.legendBounds);var n,a,l,s,h,c,d,p=this.chart,u=0,g=0,m=p.renderer.createGroup({id:p.element.id+"AxisLabels"+o}),y="Inside"===e.labelPosition,f="",v=[],b=[];b[0]=!0;var x=e.labelIntersectAction,S="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,C=p.radius+e.majorTickLines.height;if(C=y?-C:C,e.labelTemplate){var F=p.element.id+"_XAxisLabelTemplate_Collection";p.xAxisLabelTemplate=t.createElement("div",{id:F})}for(var w=0,L=e.visibleLabels.length;w<L;w++){if(d=!1,a=I(O(e.visibleLabels[w].value+S,e),this.startAngle),isNaN(a.x)||isNaN(a.y)||(u=this.centerX+(C+e.majorTickLines.height+5)*a.x,g=this.centerY+(C+e.majorTickLines.height+5)*a.y,f=parseFloat(u.toFixed(1))===parseFloat(this.centerX.toFixed(1))?"middle":u<this.centerX&&!y||u>this.centerX&&y?"end":"start"),c=e.visibleLabels[w],l=c.text,(e.enableTrim||"Trim"===x)&&!e.enableWrap&&!e.labelTemplate)for(var P=e.visibleLabels[w].originalText,A=void 0,M=void 0,D=e.labelPosition,k=p.availableSize.width,R=P.length,T=R-1;T>=0;--T)if(A=P.substring(0,T)+"...",M=i.measureText(A,e.labelStyle,this.chart.themeStyle.axisLabelFont).width,u===k/2?u-M/2>=0&&u+M/2<=k:"Outside"===D&&(u>=k/2&&u+M<=k||u<=k/2&&u-M>=0)||"Inside"===D&&(u+M<=k/2||u-M>=k/2)){l=T===R-1?P:A,c.size.width=i.measureText(l,e.labelStyle,this.chart.themeStyle.axisLabelFont).width,c.text=l;break}if(e.labelTemplate||(v[w]=this.getLabelRegion(u,g,c,f)),0===w?s=u:w!==e.visibleLabels.length-1||"Category"===e.valueType||e.labelTemplate||(h=i.measureText(l,e.labelStyle,this.chart.themeStyle.axisLabelFont).height,l=(h+=u)>s?"":l),0!==w&&"Hide"===x&&!e.labelTemplate)for(var E=w;E>=0;E--){if(E=0===E?0:E===w?E-1:E,b[E]&&Le(v[w],v[E])){d=!0,b[w]=!1;break}b[w]=!0}if(!d&&r&&!e.labelTemplate&&(d=Le(v[w],r))){var _=this.getAvailableSpaceToTrim(r,v[w]);_>0&&(l=ze(_,e.visibleLabels[w].originalText,e.labelStyle,this.chart.enableRtl,this.chart.themeStyle.axisLabelFont),d=!1)}if(n=new i.TextOption(p.element.id+o+"_AxisLabel_"+w,u,g,p.enableRtl?"end"===f?"start":"start"===f?"end":f:f,l,"","central"),!d)if(e.labelTemplate||this.visibleAxisLabelRect.push(v[w]),e.labelTemplate){var z=.5*p.border.width,B=z+(p.availableSize.width-p.border.width),N=n.x,V=n.y,H=new i.Size(c.size.width,c.size.height);if("middle"===f?N-=H.width/2:"end"===f&&(N-=H.width),N<z){W=z-N;H.width=Math.max(0,H.width-W),N=z}else if("start"===f&&N+H.width>B){var W=N+H.width-B;H.width=Math.max(0,H.width-W)}a.y<-.5?V-=H.height:a.y>.5||(V-=H.height/2);var j=p.element.id+"_XAxisLabelTemplate_"+o+"_"+w,U=ue(t.createElement("div",{id:j,styles:"position:absolute; pointer-events:none; z-index:1; left:"+N+"px; top:"+V+"px; width:"+H.width+"px; height:"+H.height+"px;"}),w,e.labelTemplate,p,c);p.xAxisLabelTemplate.appendChild(U)}else je(p.renderer,n,c.labelStyle,c.labelStyle.color||p.themeStyle.axisLabelFont.color,m,!1,p.redraw,!0,!0,null,null,null,null,p.enableCanvas,null,p.themeStyle.axisLabelFont)}this.chart.enableCanvas||e.labelTemplate||this.element.appendChild(m)},o.prototype.getAvailableSpaceToTrim=function(e,t){var i=e.x,o=i+e.width,r=t.x,n=r+t.width,a=0;return r>i&&r<o&&n>o?a=n-o:r>i&&r<o&&n<o?a=0:n>i&&n<o&&r<i?a=i-r:n>i&&n>o&&r<i&&(a=i-r),a},o.prototype.getLabelRegion=function(e,t,o,r){return"middle"===r?e-=o.size.width/2:"end"===r&&(e-=o.size.width),t-=o.size.height/2,new i.Rect(e,t,o.size.width,o.size.height)},o.prototype.renderTickLine=function(e,t,o,r,n){var a,l,s,h=this.chart;e.majorTickLines.width>0&&(l=(s=he(h.element.id+"_MajorTickLine_"+t+"_"+n))?s.getAttribute("d"):null,a=new i.PathOption(h.element.id+"_MajorTickLine_"+t+"_"+n,"transparent",e.majorTickLines.width,e.majorTickLines.color||h.themeStyle.majorTickLine,null,null,o),s=h.renderer.drawPath(a),this.setPointerEventNone(s),be(h.enableCanvas,h.yAxisElements,s,h.redraw,!0,"x","y",null,l)),e.minorTickLines.width>0&&(l=(s=he(h.element.id+"_MinorTickLine_"+t+"_"+n))?s.getAttribute("d"):null,a=new i.PathOption(h.element.id+"_MinorTickLine_"+t+"_"+n,"transparent",e.minorTickLines.width,e.minorTickLines.color||h.themeStyle.minorTickLine,null,null,r),s=h.renderer.drawPath(a),this.setPointerEventNone(s),be(h.enableCanvas,h.yAxisElements,s,h.redraw,!0,"x","y",null,l))},o.prototype.renderGridLine=function(e,t,o,r,n){var a,l,s,h=this.chart;e.majorGridLines.width>0&&(l=(s=he(h.element.id+"_MajorGridLine_"+t+"_"+n))?s.getAttribute("d"):null,a=new i.PathOption(h.element.id+"_MajorGridLine_"+t+"_"+n,"transparent",e.majorGridLines.width,e.majorGridLines.color||h.themeStyle.majorGridLine,null,e.majorGridLines.dashArray,o),be(h.enableCanvas,this.element,h.renderer.drawPath(a),h.redraw,!0,"x","y",null,l)),e.minorGridLines.width>0&&(l=(s=he(h.element.id+"_MinorGridLine_"+t+"_"+n))?s.getAttribute("d"):null,a=new i.PathOption(h.element.id+"_MinorGridLine_"+t+"_"+n,"transparent",e.minorGridLines.width,e.minorGridLines.color||h.themeStyle.minorGridLine,null,e.minorGridLines.dashArray,r),be(h.enableCanvas,this.element,h.renderer.drawPath(a),h.redraw,!0,"x","y",null,l))},o.prototype.setPointerEventNone=function(e){e&&(e.style.pointerEvents="none")},o}(fr),Rr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Tr=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Rr(o,e),o.prototype.render=function(e,i,o,r){for(var n=U(e.drawType),a=o.minimum,l=o.maximum,s=0,h=e.points;s<h.length;s++){var c=h[s];c.visible=c.visible&&!(!t.isNullOrUndefined(a)&&c.yValue<a||!t.isNullOrUndefined(l)&&c.yValue>l)}e.points.length&&(e.drawType.indexOf("Column")>-1?this.columnDrawTypeRender(e,i,o):e.chart[n+"SeriesModule"].render(e,i,o,r))},o.prototype.columnDrawTypeRender=function(e,t,o){var r,n,a,l,s,h,c,d,p,u,g,y,f,v,b,S,C,F,w,L,P=t.actualRange.min,A=e.clipRect.width/2+e.clipRect.x,M=e.clipRect.height/2+e.clipRect.y,D="RangeColumn"===e.drawType,k="Polar"===e.type,R="Logarithmic"===o.valueType,E="StackingColumn"===e.drawType,_="",I=0,O=e.columnWidth||1,z=((e.points[1]?e.points[1].xValue:2*e.points[0].xValue)-e.points[0].xValue)*O,B=t.isAxisInverse,N="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?0:B?-z/2:z/2,V="DateTime"===t.valueType?t.dateTimeInterval:1;this.getSeriesPosition(e);var H=B?e.rectCount-1-e.position:e.position;do{I+=V,P+=V}while(P<=t.actualRange.max-("Category"===t.valueType?0:1));for(var W=0,j=e.points;W<j.length;W++){var U=j[W];U.symbolLocations=[],U.regions=[],U.visible&&x(e.points[U.index-1],U,e.points[U.index+1],e)&&(s=(B?t.visibleRange.max-U.xValue:U.xValue-t.visibleRange.min)+(z/e.rectCount*H-N)+I/360*t.startAngle,s/=I,a=2*Math.PI*(s+t.startAngle),l=2*Math.PI*(s+t.startAngle+z/e.rectCount/I),0===a&&0===l?(l=2*Math.PI,L="1"):L="0",c=a,d=l,a=a-.5*Math.PI+e.columnSpacing/2,l=l-.5*Math.PI-1e-6-e.columnSpacing/2,E||D?(f=D?U.low:e.stackedValues.startValues[U.index],v=D?U.high:e.stackedValues.endValues[U.index],v=(v=R?m(0===v?1:v,o.logBase):v)>o.actualRange.max?o.actualRange.max:v):(f=o.visibleRange.min,v=U.yValue>o.actualRange.max?o.actualRange.max:U.yValue),p=A+(h=f!==v||D?e.chart.radius*T(v,o):0)*Math.cos(a),u=A+h*Math.cos(l),g=M+h*Math.sin(a),y=M+h*Math.sin(l),S=A+(b=e.chart.radius*T(0===f&&0!==o.visibleRange.min?o.visibleRange.min:f,o))*Math.cos(a),C=M+b*Math.sin(a),F=A+b*Math.cos(l),w=M+b*Math.sin(l),_=k?"M "+p+" "+g+" A "+h+" "+h+" 0 "+L+" 1 "+u+" "+y+" L "+F+" "+w+" A "+b+" "+b+" 1 0 0 "+S+" "+C+" Z":"M "+p+" "+g+" L "+u+" "+y+" L "+F+" "+w+" L "+S+" "+C+" Z",U.regionData=new lo(c,d,b,h,s),n=this.triggerEvent(e.chart,e,U),r=new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+U.index,n.fill,n.border.width,n.border.color,e.opacity,e.dashArray,_),n.cancel||(this.appendLinePath(r,e,""),k?(U.symbolLocations.push({x:A+h*Math.cos(a+(l-a)/2),y:M+h*Math.sin(a+(l-a)/2)}),D&&U.symbolLocations.push({x:A+b*Math.cos(a+(l-a)/2),y:M+b*Math.sin(a+(l-a)/2)})):(U.symbolLocations.push({x:(p+u)/2,y:(g+y)/2}),D&&U.symbolLocations.push({x:(F+S)/2,y:(w+C)/2}))))}this.renderMarker(e),e.isRectSeries=!0},o.prototype.triggerEvent=function(e,t,i){var o={cancel:!1,name:Ri,series:t,point:i,fill:t.setPointColor(i,t.interior),border:t.setBorderColor(i,{width:t.border.width,color:t.border.color})};return e.trigger(Ri,o),i.color=o.fill,o},o.prototype.getSeriesPosition=function(e){for(var t=[],i=[],o={rectCount:0,position:null},r=0,n=e.chart.visibleSeries;r<n.length;r++){var a=n[r];!a.visible||"Polar"!==a.type&&"Radar"!==a.type||-1===a.drawType.indexOf("Column")||t.push(a)}for(s=0;s<t.length;s++){var l=t[s];-1!==l.drawType.indexOf("Stacking")?l.stackingGroup?void 0===i[l.stackingGroup]?(l.position=o.rectCount,i[l.stackingGroup]=o.rectCount++):l.position=i[l.stackingGroup]:null===o.position?(l.position=o.rectCount,o.position=o.rectCount++):l.position=o.position:l.position=o.rectCount++}for(var s=0;s<t.length;s++)t[s].rectCount=o.rectCount},o.prototype.doAnimation=function(e){var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1;if("Scatter"===e.drawType)for(var n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&o[r]&&(q(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}else for(r=1;r<o.length;r++)this.doPolarRadarAnimation(o[r],i,t,e)},o.prototype.doPolarRadarAnimation=function(e,i,o,r){var n=r.clipRect.width/2+r.clipRect.x,a=r.clipRect.height/2+r.clipRect.y,l=0;e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(t){t.timeStamp>t.delay&&(t.element.style.visibility="visible",l=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate("+n+" "+a+") scale("+l+") translate("+-n+" "+-a+")"))},end:function(){var t=document.getElementById(r.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.style.visibility="visible",e.removeAttribute("transform"),r.chart.trigger("animationComplete",{series:r})}})},o.prototype.getPolarIsInversedPath=function(e,t){var i=this.chart.radius,o=t,r=e.isAxisInverse?"1 1 ":"1 0 ",n=I(O(e.visibleLabels[0].value,e),this.startAngle),a=this.centerX+i*n.x,l=this.centerY+i*n.y;return o+="L "+a+" "+l+" A "+i+" "+i+" 0 "+r+a+" "+(this.centerY+i)+" A "+i+" "+i+" 0 "+r+a+" "+l+" "},o.prototype.getModuleName=function(){return"PolarSeries"},o.prototype.destroy=function(){},o}(kr),Er=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_r=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Er(i,e),i.prototype.render=function(e,i,o,r){for(var n=U(e.drawType),a=o.minimum,l=o.maximum,s=0,h=e.points;s<h.length;s++){var c=h[s];c.visible=c.visible&&!(!t.isNullOrUndefined(a)&&c.yValue<a||!t.isNullOrUndefined(l)&&c.yValue>l)}e.points.length&&(-1===e.drawType.indexOf("Column")?e.chart[n+"SeriesModule"].render(e,i,o,r):this.columnDrawTypeRender(e,i,o))},i.prototype.getRadarIsInversedPath=function(e,t){var i,o,r,n=this.chart.radius,a=e.visibleLabels.length,l=t;if(r=I(O(e.visibleLabels[0].value,e),this.startAngle),o=this.centerY+n*r.y,i=this.centerX+n*r.x,isNaN(i)||isNaN(o))return l;l+=" L "+i+" "+o+" ";for(var s=a-1;s>=0;s--)r=I(O(e.visibleLabels[s].value,e),this.startAngle),o=this.centerY+n*r.y,l+="L "+(i=this.centerX+n*r.x)+" "+o+" ";return l},i.prototype.getModuleName=function(){return"RadarSeries"},i.prototype.destroy=function(){},i}(Tr),Ir=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Ir(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=e.stackedValues,i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}e.visible&&this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o){if(t.symbolLocations=[],t.regions=[],t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){var r=void 0,n=void 0;if(!e.visible&&e.isLegendClicked){for(var a=e.index;a>=0;a--)if(e.chart.visibleSeries[a].visible){r=e.chart.visibleSeries[a].index;break}n=e.index>0&&void 0!==r?e.chart.visibleSeries[r].stackedValues.endValues[t.index]:e.stackedValues.startValues[t.index]}this.rect=this.getRectangle(t.xValue+i.start,!e.visible&&e.isLegendClicked?n:o.endValues[t.index],t.xValue+i.end,!e.visible&&e.isLegendClicked?n:o.startValues[t.index],e),e.chart.isTransposed&&e.columnWidthInPixel?(this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.x-=e.columnWidthInPixel/2):this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.y=e.columnWidthInPixel?e.chart.isTransposed?this.rect.y:this.rect.y-e.columnWidthInPixel/2:this.rect.y;var l=this.triggerEvent(e,t,e.interior,{width:e.visible?e.border.width:0,color:e.visible?e.border.color:""});if(!l.cancel&&(this.drawRectangle(e,t,this.rect,l),this.updateSymbolLocation(t,this.rect,e),"Cylinder"===e.columnFacet)){var s={isColumn:!1,stacking:"StackingBar100"===e.type,isLastSeries:!0};this.drawCylinder(this.options,this.element,s,this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=[],o=0;o<e.yAxis.series.length;o++){var r=e.yAxis.series[o];r.stackingGroup===e.stackingGroup&&i.push(r)}for(var n=0;n<i.length;n++)for(o=0;o<t.length;o++)this.renderPoint(i[n],i[n].points[t[o]],this.sideBySideInfo[e.index],i[n].stackedValues),e.marker&&e.marker.visible&&i[n].chart.markerRender.renderMarker(i[n],i[n].points[t[o]],i[n].points[t[o]].symbolLocations[0],null,!0),i[n].marker.dataLabel.visible&&i[n].chart.dataLabelModule&&(i[n].chart.dataLabelModule.commonId=i[n].chart.element.id+"_Series_"+i[n].index+"_Point_",i[n].chart.dataLabelModule.renderDataLabel(i[n],i[n].points[t[o]],null,i[n].marker.dataLabel))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingBarSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t}(xr),zr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return zr(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.border.width,1),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}},t.prototype.renderPoint=function(e,t,i,o){var r,n,a="";if(t.regions=[],t.symbolLocations=[],t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){n=this.getRectangle(t.xValue+i.median,Math.max(t.high,t.low),t.xValue+i.median,Math.min(t.high,t.low),e),e.chart.requireInvertedAxis?(n.y-=o/2,n.height=o):(n.x-=o/2,n.width=o),r=this.getRectangle(t.xValue+i.start,Math.max(t.open,t.close),t.xValue+i.end,Math.min(t.open,t.close),e),a=this.getPathString(n,r,e);var l=this.triggerPointRenderEvent(e,t);l.cancel||(this.drawCandle(e,t,r,l,a),this.updateSymbolLocation(t,n,e),this.updateSymbolLocation(t,r,e))}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.border.width,1),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.triggerPointRenderEvent=function(e,t){var i=this.getCandleColor(t,e),o={color:e.border.color,width:Math.max(e.border.width,1)};return this.triggerEvent(e,t,i,o)},t.prototype.getCandleColor=function(e,t){var i=t.points[e.index-1];return!1===t.enableSolidCandles?i&&i.close>e.close?t.bullFillColor||t.chart.themeStyle.bullFillColor:t.bearFillColor||t.chart.themeStyle.bearFillColor:e.open>e.close?t.bullFillColor||t.chart.themeStyle.bullFillColor:t.bearFillColor||t.chart.themeStyle.bearFillColor},t.prototype.getPathString=function(e,t,i){var o="",r=i.chart.requireInvertedAxis?e.y+e.height/2:e.x+e.width/2;return o+=i.chart.requireInvertedAxis?"M "+e.x+" "+r+" L "+t.x+" "+r:"M "+r+" "+e.y+" L "+r+" "+t.y,o=o.concat(" M "+t.x+" "+t.y+" L "+(t.x+t.width)+" "+t.y+" L "+(t.x+t.width)+" "+(t.y+t.height)+" L "+t.x+" "+(t.y+t.height)+" Z"),o+=i.chart.requireInvertedAxis?" M "+(t.x+t.width)+" "+r+" L "+(e.x+e.width)+" "+r:" M "+r+" "+(t.y+t.height)+" L "+r+" "+(e.y+e.height)},t.prototype.drawCandle=function(e,t,o,r,n){if((e.chart.requireInvertedAxis?o.height:o.width)<=0)return null;var a=e.enableSolidCandles?r.fill:t.open>t.close?r.fill:"transparent";r.border.color=r.fill;var l=new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),a,r.border.width,r.border.color,e.opacity,e.dashArray,n),s=he(l.id),h=s?s.getAttribute("d"):null,c=e.chart.renderer.drawPath(l,new Int32Array([e.clipRect.x,e.clipRect.y]));null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(c.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index),c.setAttribute("role","img"),c.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.high.toString()+":"+t.low.toString()+":"+t.close.toString()+":"+t.open.toString()),e.chart.enableCanvas||e.seriesElement.appendChild(c),$(s,n,e.chart.redraw,h,e.chart.duration)},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.getModuleName=function(){return"CandleSeries"},t.prototype.destroy=function(){},t}(xr),Nr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Nr(t,e),t.prototype.render=function(e){e.isRectSeries=!0,this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=e.stackedValues,i=d(e),o=0,r=i;o<r.length;o++){var n=r[o];this.renderPoint(e,n,this.sideBySideInfo[e.index],t,i)}e.visible&&this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o,r){if(t.symbolLocations=[],t.regions=[],t.visible&&x(r[t.index-1],t,r[t.index+1],e)){var n=void 0,a=void 0;if(!e.visible&&e.isLegendClicked){for(var l=e.index;l>=0;l--)if(e.chart.visibleSeries[l].visible){n=e.chart.visibleSeries[l].index;break}a=e.index>0&&void 0!==n?e.chart.visibleSeries[n].stackedValues.endValues[t.index]:e.stackedValues.startValues[t.index]}this.rect=this.getRectangle(t.xValue+i.start,!e.visible&&e.isLegendClicked?a:o.endValues[t.index],t.xValue+i.end,!e.visible&&e.isLegendClicked?a:o.startValues[t.index],e),e.chart.isTransposed&&e.columnWidthInPixel?(this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.width,this.rect.y-=e.columnWidthInPixel/2):this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.width,this.rect.x=e.columnWidthInPixel?e.chart.isTransposed?this.rect.x:this.rect.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.position):this.rect.x;var s=this.triggerEvent(e,t,e.interior,{width:e.visible?e.border.width:0,color:e.visible?e.border.color:""});if(!s.cancel&&(this.drawRectangle(e,t,this.rect,s),this.updateSymbolLocation(t,this.rect,e),"Cylinder"===e.columnFacet)){var h={isColumn:!0,stacking:"StackingColumn100"===e.type,isLastSeries:!0};this.drawCylinder(this.options,this.element,h,this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=[],o=0;o<e.xAxis.series.length;o++){var r=e.xAxis.series[o];r.stackingGroup===e.stackingGroup&&i.push(r)}for(var n=0;n<i.length;n++)for(var a=d(i[n]),o=0;o<t.length;o++)this.renderPoint(i[n],i[n].points[t[o]],this.sideBySideInfo[e.index],i[n].stackedValues,a),e.marker&&e.marker.visible&&i[n].chart.markerRender.renderMarker(i[n],i[n].points[t[o]],i[n].points[t[o]].symbolLocations[0],null,!0),i[n].marker.dataLabel.visible&&i[n].chart.dataLabelModule&&(i[n].chart.dataLabelModule.commonId=i[n].chart.element.id+"_Series_"+i[n].index+"_Point_",i[n].chart.dataLabelModule.renderDataLabel(i[n],i[n].points[t[o]],null,i[n].marker.dataLabel))},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingColumnSeries"},t}(xr),Hr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hr(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c="",d="M",p=null,u=this.enableComplexProperty(e);l="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var g=0,m=u;g<m.length;g++){var y=m[g];y.symbolLocations=[],y.regions=[],y.visible&&x(u[y.index-1],y,u[y.index+1],e)?("M"!==d||u[y.index+1]&&u[y.index+1].visible||(c=""),null!=p?(h=fe(y.xValue,y.yValue,t,o,r),s=fe(p.xValue,p.yValue,t,o,r),c=c.concat(d+" "+s.x+" "+s.y+this.GetStepLineDirection(h,s,e.step,"L",e,!0)),d="L"):(s=fe(y.xValue-l,y.yValue,t,o,r),c=c.concat(d+" "+s.x+" "+s.y+" "),d="L"),this.storePointLocation(y,e,r,fe),""===c&&(c="M "+y.symbolLocations[0].x+" "+y.symbolLocations[0].y),p=y):(p="Drop"===e.emptyPointSettings.mode?p:null,d="Drop"===e.emptyPointSettings.mode?d:"M")}u.length>0&&(s=fe(u[u.length-1].xValue+l,u[u.length-1].yValue,t,o,r),c=c.concat(d+" "+s.x+" "+s.y+" "));var f=new i.PathOption(e.chart.element.id+"_Series_"+e.index,"transparent",e.width,e.interior,e.opacity,e.dashArray,c);this[n?"addPath":"appendLinePath"](f,e,""),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StepLineSeries"},t}(fr),jr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jr(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c,d,p=null,u="",g=this.enableComplexProperty(e),m=g.length,y=Math.max(e.yAxis.visibleRange.min,0),f=null,v="";d="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var b=0;b<m;b++)c=(h=g[b]).xValue,h.symbolLocations=[],h.regions=[],h.visible&&x(g[b-1],h,g[b+1],e)&&(null===p&&(p=new mo(c,0),u+="M "+(l=fe(c-d,y,t,o,r)).x+" "+l.y+" ",u+="L "+(l=fe(c-d,h.yValue,t,o,r)).x+" "+l.y+" ",v+="M "+l.x+" "+l.y+" "),null!=f?(l=fe(h.xValue,h.yValue,t,o,r),s=fe(f.xValue,f.yValue,t,o,r),u=u.concat(this.GetStepLineDirection(l,s,e.step,"L",e)),v+=this.GetStepLineDirection(l,s,e.step,"L",e,!0)):"Gap"===e.emptyPointSettings.mode&&(u+="L "+(l=fe(h.xValue,h.yValue,t,o,r)).x+" "+l.y+" ",v+="L "+l.x+" "+l.y+" "),this.storePointLocation(h,e,r,fe),f=h),g[b+1]&&!g[b+1].visible&&"Drop"!==e.emptyPointSettings.mode&&(u+="L "+(l=fe(c+d,y,t,o,r)).x+" "+l.y,p=null,f=null);m>1&&""!==u?(u+="L "+(s=fe((p={x:g[m-1].xValue+d,y:g[m-1].yValue}).x,p.y,t,o,r)).x+" "+s.y+" ",v+="L "+s.x+" "+s.y+" ",u+="L "+(s=fe((p={x:g[m-1].xValue+d,y:y}).x,p.y,t,o,r)).x+" "+s.y+" "):u="";var S=new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,u);if(this[n?"addAreaPath":"appendLinePath"](S,e,""),0!==e.border.width){var C=new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,v);this[n?"addAreaPath":"appendLinePath"](C,e,"")}a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StepAreaSeries"},t}(fr),Xr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xr(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c,d="PolarRadar"===e.chart.chartAreaType,p=d?E:fe,u="",g=this.enableComplexProperty(e),m=g.length,y=e.stackedValues,f=d?Math.max(e.yAxis.visibleRange.min,y.endValues[0]):Math.max(e.yAxis.visibleRange.min,y.startValues[0]),v=0,b="";m>0&&(h=p(g[0].xValue,f,t,o,r,e),u=u.concat("M "+h.x+" "+h.y+" "));for(var S,C=e.chart&&"PolarRadar"===e.chart.chartAreaType,F=e.index;F>=0;F--)if(e.chart.visibleSeries[F].visible&&e.chart.visibleSeries[F].type.indexOf("Stacking")>-1){S=e.chart.visibleSeries[F].index;break}for(F=0;F<m;F++)if(l=g[F].index,g[F].symbolLocations=[],g[F].regions=[],g[F].visible&&x(g[F-1],g[F],g[F+1],e)){var w=e.index>0&&void 0!==S?this.chart.visibleSeries[S].stackedValues.endValues[l]:y.startValues[l];h=p(g[F].xValue,!e.visible&&e.isLegendClicked?w:y.endValues[l],t,o,r,e),u=u.concat("L "+h.x+" "+h.y+" "),g[F].symbolLocations.push(p(g[F].xValue,y.endValues[l],t,o,r,e)),g[F].regions.push(new i.Rect(g[F].symbolLocations[0].x-e.marker.width,g[F].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height))}else if(!C&&"Drop"!==e.emptyPointSettings.mode){for(A=F-1;A>=v;A--)l=g[A].index,c=p(g[A].xValue,y.startValues[l],t,o,r,e),u=u.concat("L "+c.x+" "+c.y+" ");g[F+1]&&g[F+1].visible&&(!C||C&&this.withinYRange(g[F+1],o))&&(s=g[F+1].index,h=p(g[F+1].xValue,y.startValues[s],t,o,r,e),u=u.concat("M "+h.x+" "+h.y+" ")),v=F+1}if("PolarRadar"===e.chart.chartAreaType&&g.length>1){var L=this.getFirstLastVisiblePoint(e.points),P=this.chart;u+="L "+(c=p((h={x:L.first.xValue,y:y.endValues[L.first.index]}).x,h.y,t,o,r,e)).x+" "+c.y+" ",1===this.chart.visible&&(t.isAxisInverse||o.isAxisInverse)&&(this.chart.enableAnimation=!1,u="Polar"===e.type?P.polarSeriesModule.getPolarIsInversedPath(t,u):P.radarSeriesModule.getRadarIsInversedPath(t,u))}if(!C||C&&e.index!==this.getFirstSeriesIndex(e.chart.visibleSeries))for(var A=m-1;A>=v;A--)if(l=g[A].index,!C||g[A].visible){var M=this.getPreviousSeries(e);"Drop"===M.emptyPointSettings.mode&&M.points[A].isEmpty||(c=p(g[A].xValue,!e.visible&&e.isLegendClicked&&e.index>0&&void 0!==S?this.chart.visibleSeries[S].stackedValues.endValues[l]:y.startValues[l],t,o,r,e),y.startValues[l]===y.endValues[l]&&(c.y=Math.floor(c.y)),u=u.concat((A===m-1&&d?"M":"L")+" "+c.x+" "+c.y+" "))}var D=new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,u);if(this[n?"addAreaPath":"appendLinePath"](D,e,""),0!==e.border.width&&e.visible){b=this.removeEmptyPointsBorder(this.getBorderDirection(u));var k=new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.visible?e.border.width:0,e.border.color?e.border.color:e.interior,1,e.border.dashArray,b);this[n?"addAreaPath":"appendLinePath"](k,e,"")}!a&&e.visible&&this.renderMarker(e)},t.prototype.updateDirection=function(e,t){for(var i=0;i<e.xAxis.series.length;i++){var o=e.xAxis.series[i];this.render(o,o.xAxis,o.yAxis,o.chart.requireInvertedAxis,!1,!0);for(var r=0;r<t.length;r++)o.marker&&o.marker.visible&&o.chart.markerRender.renderMarker(o,o.points[t[r]],o.points[t[r]].symbolLocations[0],null,!0),o.marker.dataLabel.visible&&o.chart.dataLabelModule&&(o.chart.dataLabelModule.commonId=o.chart.element.id+"_Series_"+o.index+"_Point_",o.chart.dataLabelModule.renderDataLabel(o,o.points[t[r]],null,o.marker.dataLabel))}},t.prototype.addAreaPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=r.length;s<n.length;s++)n.length!==r.length&&r.splice((r.length+1)/2,0,r.slice((r.length-1)/2)[0],r.slice((r.length-1)/2)[1]);K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(n.splice(1,0,n[1]),n.splice(n.length-1,0,n[n.length-1]));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingAreaSeries"},t.prototype.getPreviousSeries=function(e){for(var t=e.chart.visibleSeries,i=0,o=t.length;i<o;i++)if(e.index===t[i].index&&0!==i)return t[i-1];return t[0]},t.prototype.getFirstSeriesIndex=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];if(o.visible)return o.index}return 0},t}(fr),Yr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c,d,p,u,g,m,y,f=null,v="",b="",S=e.stackedValues,C=this.enableComplexProperty(e),F=Math.max(e.yAxis.visibleRange.min,S.startValues[0]),w=C.length,L=null,P=0;g="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var A=0;A<w;A++)if(c=C[A],u=c.xValue,c.symbolLocations=[],c.regions=[],y=c.index,c.visible&&x(C[A-1],c,C[A+1],e)&&(null===f&&(f=new mo(u,0),v+="M "+(l=fe(u-g,F,t,o,r)).x+" "+l.y+" ",v+="L "+(l=fe(u-g,S.endValues[y],t,o,r)).x+" "+l.y+" ",b+="M "+l.x+" "+l.y+" "),null!=L?(l=fe(c.xValue,S.endValues[y],t,o,r),s=fe(L.xValue,S.endValues[L.index],t,o,r),v+=this.GetStepLineDirection(l,s,e.step,"L",e,!1),b+=this.GetStepLineDirection(l,s,e.step,"L",e,!0)):"Gap"===e.emptyPointSettings.mode&&(v+="L "+(l=fe(c.xValue,S.endValues[y],t,o,r)).x+" "+l.y+" ",b+="L "+l.x+" "+l.y+" "),C[A].symbolLocations.push(fe(C[A].xValue,S.endValues[y],t,o,r)),C[A].regions.push(new i.Rect(C[A].symbolLocations[0].x-e.marker.width,C[A].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height)),L=c),C[A+1]&&!C[A+1].visible&&null!==f&&"Drop"!==e.emptyPointSettings.mode){for(var M=void 0,D=A;D>=P;D--)y=C[D].index,M=0===D?0:C[D-1].index,l=fe(C[y].xValue,S.startValues[y],t,o,r),0!==D&&(S.startValues[y]<S.startValues[M]||S.startValues[y]>S.startValues[M])?(v=v.concat("L "+l.x+" "+l.y+" "),s=fe(C[M].xValue,S.startValues[M],t,o,r)):s=fe(C[y].xValue,S.startValues[y],t,o,r),C[M].visible&&(v=v.concat(this.GetStepLineDirection(s,l,this.prevStep,"L",e)));P=A+2,f=null,L=null}if(""!==v){w>1&&(y=C[w-1].index,v+="L "+(s=fe((f={x:C[w-1].xValue+g,y:S.endValues[y]}).x,f.y,t,o,r)).x+" "+s.y+" ",b+="L "+s.x+" "+s.y+" ",v+="L "+(s=fe((f={x:C[w-1].xValue+g,y:S.startValues[y]}).x,f.y,t,o,r)).x+" "+s.y+" ");for(D=w-1;D>=P;D--){var k=void 0;C[D].visible&&(y=C[D].index,d=fe(C[D].xValue,S.startValues[y],t,o,r),v=v.concat("L "+d.x+" "+d.y+" ")),0===D||C[D-1].visible||(k=this.getNextVisiblePointIndex(C,D)),0!==D&&C[D].visible&&(m=k||D-1,y=k?C[k].index:C[D-1].index,p=fe(C[m].xValue,S.startValues[y],t,o,r),(0===D||C[D-1].visible)&&(v=v.concat(this.GetStepLineDirection(p,d,this.prevStep,"L",e))))}this.prevStep="Right"===e.step?"Left":"Left"===e.step?"Right":e.step,h=new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,v),this[n?"addPath":"appendLinePath"](h,e,""),0!==e.border.width&&(h=new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,b),this[n?"addPath":"appendLinePath"](h,e,"")),a||this.renderMarker(e)}},t.prototype.updateDirection=function(e,t){for(var i=0;i<e.xAxis.series.length;i++){var o=e.xAxis.series[i];this.render(o,o.xAxis,o.yAxis,o.chart.requireInvertedAxis,!1,!0);for(var r=0;r<t.length;r++)o.marker&&o.marker.visible&&o.chart.markerRender.renderMarker(o,o.points[t[r]],o.points[t[r]].symbolLocations[0],null,!0),o.marker.dataLabel.visible&&o.chart.dataLabelModule&&(o.chart.dataLabelModule.commonId=o.chart.element.id+"_Series_"+o.index+"_Point_",o.chart.dataLabelModule.renderDataLabel(o,o.points[t[r]],null,o.marker.dataLabel))}},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(Math.floor(r.length/2)-1,0,r[Math.floor(r.length/2)-1],r[Math.floor(r.length/2)-1]),r.splice(Math.floor(r.length/2)+2,0,r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2]));K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,n[2]),n.splice(n.length-3,0,n[n.length-3]));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingStepAreaSeries"},t.prototype.getNextVisiblePointIndex=function(e,t){var i;for(i=t-1;i>=0;i--)if(e[i].visible)return i;return 0},t}(fr),qr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qr(t,e),t.prototype.render=function(e,t,o,r,n,a){for(var l,s,h,c,d="PolarRadar"===e.chart.chartAreaType?E:fe,p="",u=this.enableComplexProperty(e),g=u.length,m=e.stackedValues,y=0;y<g;y++)u[y].regions=[],u[y].symbolLocations=[],l=u[y].index,u[y].visible&&x(u[y-1],u[y],u[y+1],e)?(h=d(u[y].xValue,m.endValues[l],t,o,r,e),p=p.concat((y?"L":"M")+" "+h.x+" "+h.y+" "),u[y].symbolLocations.push(d(u[y].xValue,m.endValues[l],t,o,r,e)),u[y].regions.push(new i.Rect(u[y].symbolLocations[0].x-e.marker.width,u[y].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height))):"Drop"!==e.emptyPointSettings.mode&&u[y+1]&&u[y+1].visible&&(s=u[y+1].index,h=d(u[y+1].xValue,m.endValues[s],t,o,r,e),p=p.concat("M "+h.x+" "+h.y+" "));"PolarRadar"===e.chart.chartAreaType&&u.length>1&&(p+="L "+(c=d((h={y:m.endValues[0],x:e.points[0].xValue}).x,h.y,t,o,r,e)).x+" "+c.y+" ");var f=new i.PathOption(e.chart.element.id+"_Series_"+e.index,"none",e.width,e.interior,e.opacity,e.dashArray,p);this[n?"addPath":"appendLinePath"](f,e,""),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingLineSeries"},t}(fr),$r=function(){function e(){}return e.prototype.render=function(e,t,i,o){e.isRectSeries=!1;for(var r=e.marker,n=this.enableComplexProperty(e),a="PolarRadar"===e.chart.chartAreaType?E:fe,l={width:this.isLineShapeMarker(r.shape)?e.width:e.border.width,color:this.isLineShapeMarker(r.shape)?e.interior:e.border.color},s=0,h=n;s<h.length;s++){var c=h[s];this.renderPoint(e,c,o,a,l,n)}},e.prototype.renderPoint=function(e,t,i,o,r,n){var a,l=e.chart.redraw&&t.symbolLocations?t.symbolLocations[0]:null;t.symbolLocations=[],t.regions=[],t.visible&&x(n[t.index-1],t,n[t.index+1],e)&&(a={cancel:!1,name:Ri,series:e,point:t,fill:e.setPointColor(t,e.interior),border:e.setBorderColor(t,{width:r.width,color:r.color}),height:e.marker.height,width:e.marker.width,shape:e.marker.shape},e.chart.trigger(Ri,a),a.border={width:this.isLineShapeMarker(a.shape)?e.width:e.border.width,color:this.isLineShapeMarker(a.shape)?e.interior:e.border.color},a.cancel?t.marker={visible:!0}:(t.symbolLocations.push(o(t.xValue,t.yValue,e.xAxis,e.yAxis,i,e)),t.color=a.fill,this.refresh(e,t,a,l)))},e.prototype.updateDirection=function(e,t,i){for(var o=e.marker,r=this.enableComplexProperty(e),n="PolarRadar"===e.chart.chartAreaType?E:fe,a={width:this.isLineShapeMarker(o.shape)?e.width:e.border.width,color:this.isLineShapeMarker(o.shape)?e.interior:e.border.color},l=0;l<t.length;l++)this.renderPoint(e,e.points[t[l]],i,n,a,r),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[l]],null,e.marker.dataLabel))},e.prototype.isLineShapeMarker=function(e){return e.indexOf("Line")>-1||"Plus"===e||"Cross"===e},e.prototype.enableComplexProperty=function(e){for(var i=[],o=[],r=e.yAxis.visibleRange,n=e.xAxis.visibleRange,a=e.clipRect,l=e.points,s=Math.abs(r.delta/a.height),h=Math.abs(n.delta/a.width),c=l[0]&&l[0].y>s?0:s,d=l[0]&&l[0].x>h?0:h,p=0,u=0,g=0,m=l;g<m.length;g++){var y=m[g];y.symbolLocations||(y.symbolLocations=[]),p=y.yValue?y.yValue:r.min,u=y.xValue?y.xValue:n.min,(Math.abs(c-p)>=s||Math.abs(d-u)>=h)&&(o.push(y),c=p,d=u)}for(var f,v=0;v<o.length;v++)f=o[v],t.isNullOrUndefined(f.x)||""===f.x||i.push(f);return i},e.prototype.refresh=function(e,t,o,r){var n,a,l=e.chart,s=e.marker,h=o.point.marker.imageUrl||s.imageUrl,c=new i.PathOption(l.element.id+"_Series_"+e.index+"_Point_"+t.index,o.fill,o.border.width,e.chart.enableCanvas&&!o.border.color?o.fill:o.border.color,e.opacity,e.border.dashArray);if(l.redraw&&he(c.id)){n="Circle"===o.shape?"c":"",a=he(c.id).getAttribute("d");var d=he(c.id);r={x:+d.getAttribute(n+"x"),y:+d.getAttribute(n+"y")}}var p=ne(t.symbolLocations[0],o.shape,new i.Size(o.width,o.height),h,c,t.x.toString()+":"+t.yValue.toString(),e.chart.renderer,e.clipRect);be(e.chart.enableCanvas,e.seriesElement,p,l.redraw,!0,n+"x",n+"y",r,a,!1,!1,null,l.duration,!0),t.regions.push(new i.Rect(t.symbolLocations[0].x-s.width,t.symbolLocations[0].y-s.height,2*s.width,2*s.height)),t.marker={border:o.border,fill:o.fill,height:o.height,visible:!0,width:o.width,shape:o.shape,imageUrl:h}},e.prototype.doAnimation=function(e){for(var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1,n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&o[r]&&(q(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}},e.prototype.getModuleName=function(){return"ScatterSeries"},e.prototype.destroy=function(){},e}(),Kr=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Kr(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=0,i=e.points;t<i.length;t++){var o=i[t];this.renderPoint(e,o,this.sideBySideInfo[e.index])}this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i){var o;if(t.symbolLocations=[],t.regions=[],t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){(o=this.getRectangle(t.xValue+i.start,t.high,t.xValue+i.end,t.low,e)).width=e.columnWidthInPixel?e.columnWidthInPixel:o.width,e.columnWidthInPixel&&(1===e.chart.columns.length?o.x=o.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):o.x=o.x+o.width/2-e.columnWidthInPixel);var r=this.triggerEvent(e,t,e.interior,{width:e.border.width,color:e.border.color});r.cancel||(this.updateSymbolLocation(t,o,e),this.drawRectangle(e,t,o,r))}},t.prototype.updateDirection=function(e,t){for(var i=this,o=0;o<t.length;o++)!function(o){i.renderPoint(e,e.points[t[o]],i.sideBySideInfo[e.index]),e.marker&&e.marker.visible&&e.points[t[o]].symbolLocations.map(function(i,r){e.chart.markerRender.renderMarker(e,e.points[t[o]],i,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))}(o)},t.prototype.getModuleName=function(){return"RangeColumnSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(xr),en=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t.prevPoint=null,t}return en(t,e),t.prototype.render=function(e,t,o,r,n,a){this.prevPoint=null;var l,s,h,c,d,p=null,u="",g=0,m="M",y=void 0,f=e.border.width?e.border.width:0,v=e.border.color?e.border.color:e.interior,b=Math.max(e.yAxis.visibleRange.min,0),S=this.enableComplexProperty(e);"Category"===t.valueType&&"BetweenTicks"===t.labelPlacement&&(g=.5);for(var C=0,F=S.length;C<F;C++){if(l=S[C],l.symbolLocations=[],l.regions=[],c=Math.min(l.low,l.high),d=Math.max(l.low,l.high),o.isAxisInverse){var w=c;c=d,d=w}var L=fe(l.xValue,c,t,o,r),P=fe(l.xValue,d,t,o,r);l.symbolLocations.push(P),l.symbolLocations.push(L);var A=new i.Rect(Math.min(L.x,P.x),Math.min(L.y,P.y),Math.max(Math.abs(P.x-L.x),e.marker.width),Math.max(Math.abs(P.y-L.y),e.marker.width));l.regions.push(A),l.visible&&x(S[l.index-1],l,S[l.index+1],e)?(null===p&&(p=new mo(l.xValue,0),u+=m+" "+(s=fe(l.xValue-g,b,t,o,r)).x+" "+s.y+" ",u+="L "+(s=fe(l.xValue-g,l.high>l.low?l.high:l.low,t,o,r)).x+" "+s.y+" ",this.borderDirection+=m+" "+s.x+" "+s.y+" "),null!=this.prevPoint?(s=fe(l.xValue,l.high>l.low?l.high:l.low,t,o,r),h=fe(this.prevPoint.xValue,this.prevPoint.high>this.prevPoint.low?this.prevPoint.high:this.prevPoint.low,t,o,r),u+=this.GetStepLineDirection(s,h,e.step,m,e,!1),this.borderDirection+=this.GetStepLineDirection(s,h,e.step,m,e,!0)):"Gap"===e.emptyPointSettings.mode&&(u+=m+" "+(s=fe(l.xValue,l.high>l.low?l.high:l.low,t,o,r)).x+" "+s.y+" ",this.borderDirection+=m+" "+s.x+" "+s.y+" "),y=!1,m=" L",this.prevPoint=l,(C+1<S.length&&!S[C+1].visible||C===S.length-1)&&(m="M",u=(u=this.closeRangeStepAreaPath(S,l,e,u,C,t,o,r)).concat(" Z "),y=!0,this.prevPoint=null,p=null)):(!1===y&&0!==C&&(u=this.closeRangeStepAreaPath(S,l,e,u,C,t,o,r),y=!0),m="M",l.symbolLocations=[])}var M=new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,u);this[n?"addPath":"appendLinePath"](M,e,""),0!==e.border.width&&(this[n?"addPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",f,v,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),a||this.renderMarker(e)},t.prototype.closeRangeStepAreaPath=function(e,t,i,o,r,n,a,l){for(var s,h,c,d,p=r;p>=0&&e[p].visible;p--){if(t=e[p],c=Math.min(t.low,t.high),d=Math.max(t.low,t.high),a.isAxisInverse){var u=c;c=d,d=u}null!=this.prevPoint&&(s=fe(t.xValue,t.low<t.high?t.low:t.high,n,a,l),h=fe(this.prevPoint.xValue,this.prevPoint.low<this.prevPoint.high?this.prevPoint.low:this.prevPoint.high,n,a,l),o+=this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"L",i,!1),this.borderDirection+=p===r?this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"M",i,!0):this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"L",i,!0)),this.prevPoint=t}return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)!function(i){e.marker&&e.marker.visible&&e.points[t[i]].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))}(i)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(Math.floor(r.length/2)-1,0,r[Math.floor(r.length/2)-1],r[Math.floor(r.length/2)-1]),r.splice(Math.floor(r.length/2)+2,0,r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2]));K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,n[2]),n.splice(n.length-3,0,n[n.length-3]));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"RangeStepAreaSeries"},t.prototype.destroy=function(){},t}(fr),on=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),rn=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.cumulativeSums=[],t}return on(o,e),o.prototype.render=function(e){for(var o,r,n,a,l=this.getSideBySideInfo(e),s=Math.max(e.yAxis.visibleRange.min,0),h=0,c="",d=0,p=null,u=e.chart.requireInvertedAxis,g=0,m=e.chart.redraw,y=0,f=e.points;y<f.length;y++){var v=f[y];if(v.symbolLocations=[],v.regions=[],v.visible&&x(e.points[v.index-1],v,e.points[v.index+1],e)){var b=this.isIntermediateSum(e,v.index),S=this.isSumIndex(e,v.index);d+=b||!0===S?0:v.yValue,n=!0===b?g:null===h||S?s:h,o=this.getRectangle(v.xValue+l.start,d,v.xValue+l.end,n,e),r=this.triggerPointRenderEvent(e,v),b&&(g=d),h=d,r.cancel||(this.updateSymbolLocation(v,o,e),this.drawRectangle(e,v,o,r));var C=v.regions[0];if(null!==p){var F=u?p.x:p.y,w=u?C.x:C.y,L=void 0,P=void 0,A=C.y,M=C.x,D=e.points[v.index-1==-1?1:v.index-1];if(0===v.yValue?(L=u?p.x+p.width:p.y+p.height,P=u?v.symbolLocations[0].x:v.symbolLocations[0].y):(L=u?0===D.yValue?D.symbolLocations[0].x:p.x+p.width:0===D.yValue?D.symbolLocations[0].y:p.y+p.height,P=u?C.x+C.width:C.y+C.height),Math.round(F)===Math.round(w)||Math.round(L)===Math.round(w)?(a=u?0===C.x&&0===p.x?P:C.x:C.y,a=0===v.yValue?u?v.symbolLocations[0].x:v.symbolLocations[0].y:a):a=P,u)0===D.yValue&&(p.y=p.y+p.height/2+o.height/2-p.height),0===v.yValue&&(A=C.y+C.height/2-o.height/2),c=c.concat("M "+a+" "+(e.xAxis.isInversed?p.y+p.height:p.y)+" L "+a+" "+(e.xAxis.isInversed?A:A+C.height)+" ");else{var k=p.x;0===D.yValue&&(k=k+p.width/2+o.width/2-p.width,M=C.x+C.width/2+o.width/2-C.width),0===v.yValue&&(M=C.x+C.width/2-o.width/2),c=c.concat("M "+(e.xAxis.isInversed?k:k+p.width)+" "+a+" L "+(e.xAxis.isInversed?M+C.width:M)+" "+a+" ")}}p=v.regions[0]}}var R=new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Connector_","none",e.connector.width,e.connector.color,e.opacity,e.connector.dashArray,c);m&&he(R.id)&&(c=he(R.id).getAttribute("d"));var T=Ve(m,R.id,R,e.chart.renderer)||e.chart.renderer.drawPath(R,new Int32Array([e.clipRect.x,e.clipRect.y]));T.style.visibility=e.chart.enableCanvas?null:(e.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.chart.animateSeries?"hidden":"visible",be(e.chart.enableCanvas,e.seriesElement,T,m,!0,null,null,null,c,null,null,null,e.chart.duration),this.renderMarker(e)},o.prototype.updateDirection=function(e,t){if(this.render(e),e.marker.visible&&be(e.chart.enableCanvas,e.chart.seriesElements,e.symbolElement,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule)for(var i=0;i<t.length;i++){e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_";for(var o=e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel),r=0;r<o.length;r++)e.chart.dataLabelModule.doDataLabelAnimation(e,o[r])}},o.prototype.isIntermediateSum=function(e,t){return void 0!==e.intermediateSumIndexes&&-1!==e.intermediateSumIndexes.indexOf(t)},o.prototype.isSumIndex=function(e,t){return void 0!==e.sumIndexes&&-1!==e.sumIndexes.indexOf(t)},o.prototype.triggerPointRenderEvent=function(e,t){var i,o=this.isIntermediateSum(e,t.index),r=this.isSumIndex(e,t.index);return i=o||r?e.summaryFillColor:t.y<0?e.negativeFillColor:e.interior,this.triggerEvent(e,t,i,{color:e.border.color,width:e.border.width})},o.prototype.processInternalData=function(e,i){for(var o,r=e,n=0,a=!t.isNullOrUndefined(i.intermediateSumIndexes)&&i.intermediateSumIndexes.length>0?i.intermediateSumIndexes.sort(function(e,t){return e-t}):i.intermediateSumIndexes,l=!t.isNullOrUndefined(i.sumIndexes)&&i.sumIndexes.length>0?i.sumIndexes.sort(function(e,t){return e-t}):i.sumIndexes,s=0,h=0;h<r.length;h++)s+=void 0!==r[h][i.yName]?r[h][i.yName]:0,this.cumulativeSums.push(s);if(void 0!==a&&a.length>0)for(h=0;h<a.length;h++)for(p=0;p<r.length;p++)p===a[h]&&(o=0===h?C(r,-1,a[h],null,i):C(r,a[h-1],a[h],null,i),r[p][i.yName]=o);if(void 0!==l&&l.length>0)for(var c=0,d=0;d<l.length;d++)for(var p=0;p<r.length;p++)p===l[d]&&(void 0!==a&&a.length>c&&a[d]!==l[d]&&a[d]<l[d]?(o=C(r,a.length<=1?a[0]-1:a[d]-1,l[d],l,i),c+=1):o=0===d?C(r,-1,l[d],null,i):C(r,l[d-1],l[d],null,i),n+=o,r[p][i.yName]=n);return r},o.prototype.doAnimation=function(e){this.animate(e)},o.prototype.getModuleName=function(){return"WaterfallSeries"},o.prototype.destroy=function(){},o}(xr),nn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),an=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return nn(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=0,i=e.points;t<i.length;t++){var o=i[t];this.renderPoint(e,o,this.sideBySideInfo[e.index])}},t.prototype.renderPoint=function(e,t,i){t.symbolLocations=[],t.regions=[];var o;if(t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){o=this.getRectangle(t.xValue+i.median,t.high,t.xValue+i.median,t.low,e);var r=this.triggerPointRenderEvent(e,t);r.cancel||(e.chart.requireInvertedAxis?(o.height=r.border.width,o.y=o.y-o.height/2):(o.width=r.border.width,o.x=o.x-o.width/2),r.border.width=0,this.updateSymbolLocation(t,o,e),this.drawRectangle(e,t,o,r))}},t.prototype.updateDirection=function(e,t){for(var i=0;i<t.length;i++)this.renderPoint(e,e.points[t[i]],this.sideBySideInfo[e.index]),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.triggerPointRenderEvent=function(t,i){var o={color:t.fill,width:Math.max(t.border.width,2)};return e.prototype.triggerEvent.call(this,t,i,t.interior,o)},t.prototype.getModuleName=function(){return"HiloSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(xr),ln=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return ln(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.border.width,2),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}},t.prototype.renderPoint=function(e,t,i,o){t.symbolLocations=[],t.regions=[];var r,n,a;if(t.visible&&x(e.points[t.index-1],t,e.points[t.index+1],e)){r=this.getRectangle(t.xValue+i.start,Math.max(t.high,t.low),t.xValue+i.end,Math.min(t.high,t.low),e),t.regions.push(this.getRectangle(t.xValue+i.median,Math.max(t.high,t.low),t.xValue+i.median,Math.min(t.high,t.low),e)),this.updateTickRegion(!e.chart.requireInvertedAxis,t.regions[0],o),t.regions.push(this.getRectangle(t.xValue+i.start,Math.max(t.open,t.close),t.xValue+i.median,Math.max(t.open,t.close),e)),t.regions.push(this.getRectangle(t.xValue+i.median,Math.min(t.open,t.close),t.xValue+i.end,Math.min(t.open,t.close),e));var l=this.triggerPointRenderEvent(e,t);if(!l.cancel){this.updateSymbolLocation(t,t.regions[0],e),n=t.open>t.close?1:2,a=t.open>t.close?2:1;var s={x:t.regions[n].x,y:t.regions[n].y},h={x:t.regions[a].x,y:t.regions[a].y};this.drawHiloOpenClosePath(e,t,s,h,r,l)}this.updateTickRegion(e.chart.requireInvertedAxis,t.regions[1],o),this.updateTickRegion(e.chart.requireInvertedAxis,t.regions[2],o)}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.border.width,2),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.updateTickRegion=function(e,t,i){e?(t.x-=i/2,t.width=i):(t.y-=i/2,t.height=i)},t.prototype.triggerPointRenderEvent=function(e,t){var i=t.open<=t.close?e.bearFillColor||e.chart.themeStyle.bearFillColor:e.bullFillColor||e.chart.themeStyle.bullFillColor,o={color:e.border.color,width:Math.max(e.border.width,1)};return this.triggerEvent(e,t,i,o)},t.prototype.drawHiloOpenClosePath=function(e,t,o,r,n,a){var l;e.chart.requireInvertedAxis?(l="M "+n.x+" "+(n.y+n.height/2)+" L "+(n.x+n.width)+" "+(n.y+n.height/2)+" ",l+="M "+o.x+" "+(n.y+n.height/2)+" L "+o.x+" "+(n.y+n.height)+" ",l+="M "+r.x+" "+(n.y+n.height/2)+" L "+r.x+" "+n.y+" "):(l="M "+(n.x+n.width/2)+" "+(n.y+n.height)+" L "+(n.x+n.width/2)+" "+n.y+" ",l+="M "+n.x+" "+o.y+" L "+(n.x+n.width/2+a.border.width/2)+" "+o.y+" ",l+="M "+(n.x+n.width/2-a.border.width/2)+" "+r.y+" L "+(n.x+n.width)+" "+r.y+" ");var s=new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),a.fill,a.border.width,a.fill,e.opacity,e.dashArray,l);$(he(s.id),l,e.chart.redraw,null,e.chart.duration);var h=e.chart.renderer.drawPath(s,new Int32Array([e.clipRect.x,e.clipRect.y]));null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(h.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index),h.setAttribute("role","img"),h.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.high.toString()+":"+t.low.toString()+":"+t.close.toString()+":"+t.open.toString()),e.chart.enableCanvas||e.seriesElement.appendChild(h)},t.prototype.getModuleName=function(){return"HiloOpenCloseSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(xr),hn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),cn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t}return hn(t,e),t.prototype.render=function(e,t,o,r,n,a){for(var l,s="",h="M",c=void 0,d=e.border.width?e.border.width:0,p=e.border.color?e.border.color:e.interior,u=this.enableComplexProperty(e),g=0,m=u.length;g<m;g++){(l=u[g]).symbolLocations=[],l.regions=[];var y=Math.min(l.low,l.high),f=Math.max(l.low,l.high);if(o.isAxisInverse){var v=y;y=f,f=v}var b=fe(l.xValue,y,t,o,r),S=fe(l.xValue,f,t,o,r);l.symbolLocations.push(S),l.symbolLocations.push(b);var C=new i.Rect(Math.min(b.x,S.x),Math.min(b.y,S.y),Math.max(Math.abs(S.x-b.x),e.marker.width),Math.max(Math.abs(S.y-b.y),e.marker.width));r?C.y-=e.marker.width/2:C.x-=e.marker.width/2,l.regions.push(C),l.visible&&x(u[l.index-1],l,u[l.index+1],e)?(s=s.concat(h+" "+b.x+" "+b.y+" "),this.borderDirection+=h+" "+b.x+" "+b.y+" ",c=!1,(g+1<u.length&&!u[g+1].visible||g===u.length-1)&&(h="M",s=(s=this.closeRangeAreaPath(u,l,e,s,g)).concat(" Z"),c=!0),h="L"):(!1===c&&0!==g&&(s=this.closeRangeAreaPath(u,l,e,s,g),c=!0),h="M",l.symbolLocations=[])}var F="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:e.chart.element.id+"_Series_"+e.index,w=new i.PathOption(F,e.interior,0,"transparent",e.opacity,e.dashArray,s);this[n?"addPath":"appendLinePath"](w,e,""),0!==e.border.width&&(this[n?"addPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",d,p,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),a||this.renderMarker(e)},t.prototype.closeRangeAreaPath=function(e,t,i,o,r){for(var n=r;n>=0&&(e[n].visible&&e[n].symbolLocations[0]);n--)o+="L "+(t=e[n]).symbolLocations[0].x+" "+t.symbolLocations[0].y+" ",this.borderDirection+=(n===r?"M":"L")+" "+t.symbolLocations[0].x+" "+t.symbolLocations[0].y+" ";return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)!function(i){e.marker&&e.marker.visible&&e.points[t[i]].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))}(i)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=r.length;s<n.length;s++)n.length!==r.length&&r.splice((r.length-1)/2,0,r.slice(0,(r.length-1)/2).pop(),r.slice(0,(r.length-1)/2+1).pop());K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(n.splice(1,0,n[0]),n.splice(n.length-2,0,n[n.length-2]));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"RangeAreaSeries"},t.prototype.destroy=function(){},t}(fr),dn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),pn=function(e){function i(t){var i=e.call(this,t)||this;return i.splinePoints=[],i.lowSplinePoints=[],i}return dn(i,e),i.prototype.findSplinePoint=function(e){var t,i,o,r=[],n=[],a=0,l=!1;r=this.filterEmptyPoints(e);for(var s=0;s<r.length;s++)null!==(o=r[s]).x&&""!==o.x&&(o.index=a,a++,n.push(o));var h=!1;if(this.splinePoints=this.findSplineCoefficients(n,e,h),"SplineRangeArea"===e.type&&(h=!h,this.lowSplinePoints=this.findSplineCoefficients(n,e,h)),n.length>1){e.drawPoints=[],e.lowDrawPoints=[];for(var c=0,d=n;c<d.length;c++){var p=d[c];if(l=l||p.yValue<0,0!==p.index){var u=this.getPreviousIndex(n,p.index-1,e);"SplineRangeArea"===e.type&&(n[u].yValue=n[u].high>n[u].low?n[u].high:n[u].low,p.yValue=p.high>p.low?p.high:p.low),t=this.getControlPoints(n[u],p,this.splinePoints[u],this.splinePoints[p.index],e),e.drawPoints.push(t),"SplineRangeArea"===e.type&&(n[u].yValue=n[u].low<n[u].high?n[u].low:n[u].high,p.yValue=p.low<p.high?p.low:p.high,i=this.getControlPoints(n[u],p,this.lowSplinePoints[u],this.lowSplinePoints[p.index],e),e.lowDrawPoints.push(i));var g=e.yMax-e.yMin;p.yValue&&t.controlPoint1.y&&t.controlPoint2.y&&g>1&&(e.yMin=Math.min(e.yMin,p.yValue,t.controlPoint1.y,t.controlPoint2.y),e.yMax=Math.ceil(Math.max(e.yMax,p.yValue,t.controlPoint1.y,t.controlPoint2.y)),e.yMin="Logarithmic"!==e.yAxis.valueType?Math.floor(e.yMin):e.yMin)}}!l&&e.yMin<0&&(e.yMin=0),"PolarRadar"===e.chart.chartAreaType&&e.isClosed&&(t=this.getControlPoints({xValue:n[n.length-1].xValue,yValue:n[n.length-1].yValue},{xValue:n[n.length-1].xValue+1,yValue:n[0].yValue},this.splinePoints[0],this.splinePoints[n[n.length-1].index],e),e.drawPoints.push(t))}},i.prototype.getPreviousIndex=function(e,i,o){if("Drop"!==o.emptyPointSettings.mode)return i;for(;t.isNullOrUndefined(e[i])&&i>-1;)i-=1;return i},i.prototype.getNextIndex=function(e,i,o){if("Drop"!==o.emptyPointSettings.mode)return i;for(;t.isNullOrUndefined(e[i])&&i<e.length;)i+=1;return i},i.prototype.filterEmptyPoints=function(e,i){if("Drop"!==e.emptyPointSettings.mode&&this.isPointInRange(e.points))return i||e.points;for(var o=i||t.extend([],e.points,null,!0),r=0;r<o.length;r++)o[r].index=r,o[r].isEmpty&&(o[r].symbolLocations=[],o[r].regions=[],o.splice(r,1),r--);return o},i.prototype.isPointInRange=function(e){for(var t=0,i=e;t<i.length;t++)if(!i[t].isPointInRange)return!1;return!0},i.prototype.findSplineCoefficients=function(e,t,i){var o=[],r=[],n=t.cardinalSplineTension?t.cardinalSplineTension:.5;switch(n<0?n=0:n>1&&(n=1),t.splineType){case"Monotonic":o=this.monotonicSplineCoefficients(e,t,i);break;case"Cardinal":o=this.cardinalSplineCofficients(e,t);break;default:"Clamped"===t.splineType?o=this.clampedSplineCofficients(e,t,i):(o[0]=r[0]=0,o[e.length-1]=0),o=this.naturalSplineCoefficients(e,t,i)}return o},i.prototype.monotonicSplineCoefficients=function(e,t,i){for(var o,r=e.length,n=[],a=[],l=[],s=[],h=0;h<r-1;h++)"SplineRangeArea"===t.type&&(i||(e[h+1].yValue=e[h+1].high>e[h+1].low?e[h+1].high:e[h+1].low,e[h].yValue=e[h].high>e[h].low?e[h].high:e[h].low),i&&(e[h+1].yValue=e[h+1].low<e[h+1].high?e[h+1].low:e[h+1].high,e[h].yValue=e[h].low<e[h].high?e[h].low:e[h].high)),a[h]=e[h+1].xValue-e[h].xValue,l[h]=e[h+1].yValue-e[h].yValue,s[h]=l[h]/a[h];var c=s.length;n[0]=s[0],n[r-1]=s[c-1];for(var d=0;d<a.length;d++)c>d+1&&(s[d]*s[d+1]<=0?n[d+1]=0:(o=a[d]+a[d+1],n[d+1]=3*o/((o+a[d+1])/s[d]+(o+a[d])/s[d+1])));return n},i.prototype.cardinalSplineCofficients=function(e,t){var i=e.length,o=[],r=t.cardinalSplineTension?t.cardinalSplineTension:.5;r=r<0?0:r>1?1:r;for(var n=0;n<i;n++)o[n]=0===n?i>2?r*(e[n+2].xValue-e[n].xValue):0:n===i-1?i>2?r*(e[i-1].xValue-e[i-3].xValue):0:r*(e[n+1].xValue-e[n-1].xValue);return o},i.prototype.clampedSplineCofficients=function(e,t,i){for(var o=e.length,r=[],n=[],a=0;a<o-1;a++)"SplineRangeArea"===t.type&&(i||(e[1].yValue=e[1].high>e[1].low?e[1].high:e[1].low,e[0].yValue=e[0].high>e[0].low?e[0].high:e[0].low,e[e.length-1].yValue=e[e.length-1].high>e[e.length-1].low?e[e.length-1].high:e[e.length-1].low,e[e.length-2].yValue=e[e.length-2].high>e[e.length-2].low?e[e.length-2].high:e[e.length-2].low),i&&(e[1].yValue=e[1].low<e[1].high?e[1].low:e[1].high,e[0].yValue=e[0].low<e[0].high?e[0].low:e[0].high,e[e.length-1].yValue=e[e.length-1].low<e[e.length-1].high?e[e.length-1].low:e[e.length-1].high,e[e.length-2].yValue=e[e.length-2].low<e[e.length-2].high?e[e.length-2].low:e[e.length-2].high)),r[0]=3*(e[1].yValue-e[0].yValue)/(e[1].xValue-e[0].xValue)-3,n[0]=.5,r[e.length-1]=3*(e[e.length-1].yValue-e[e.length-2].yValue)/(e[e.length-1].xValue-e[e.length-2].xValue),r[0]=n[0]=Math.abs(r[0])===1/0?0:r[0],r[e.length-1]=n[e.length-1]=Math.abs(r[e.length-1])===1/0?0:r[e.length-1];return r},i.prototype.naturalSplineCoefficients=function(e,t,i){var o,r,n,a,l,s=e.length,h=[],c=[];h[0]=c[0]=0,h[e.length-1]=0;for(var d=1;d<s-1;d++)if("SplineRangeArea"===t.type&&(i||(e[d+1].yValue=e[d+1].low>e[d+1].high?e[d+1].low:e[d+1].high,e[d].yValue=e[d].low>e[d].high?e[d].low:e[d].high,e[d-1].yValue=e[d-1].low>e[d-1].high?e[d-1].low:e[d-1].high),i&&(e[d+1].yValue=e[d+1].high<e[d+1].low?e[d+1].high:e[d+1].low,e[d].yValue=e[d].high<e[d].low?e[d].high:e[d].low,e[d-1].yValue=e[d-1].high<e[d-1].low?e[d-1].high:e[d-1].low)),n=e[d].xValue-e[d-1].xValue,a=e[d+1].xValue-e[d-1].xValue,l=e[d+1].xValue-e[d].xValue,o=e[d+1].yValue-e[d].yValue||null,r=e[d].yValue-e[d-1].yValue||null,0===n||0===a||0===l)h[d]=0,c[d]=0;else{var p=1/(n*h[d-1]+2*a);h[d]=-p*l,c[d]=p*(6*(o/l-r/n)-n*c[d-1])}for(var u=s-2;u>=0;u--)h[u]=h[u]*h[u+1]+c[u];return h},i.prototype.getControlPoints=function(e,t,i,o,r){var n,a,l,s=i,h=o,c=e.xValue,d=e.yValue,p=t.xValue,u=t.yValue;switch(r.splineType){case"Cardinal":"DateTime"===r.xAxis.valueType&&(s=i/this.dateTimeInterval(r),h=o/this.dateTimeInterval(r)),n=new mo(c+i/3,d+s/3),a=new mo(p-o/3,u-h/3),l=new Co(n,a);break;case"Monotonic":var g=(p-c)/3;n=new mo(c+g,d+i*g),a=new mo(p-g,u-o*g),l=new Co(n,a);break;default:var m=p-c,y=1/3*(d+2*u-1/3*(m*=m)*(.5*i+o));n=new mo((2*c+p)*(1/3),1/3*(2*d+u-1/3*m*(i+.5*o))),a=new mo((c+2*p)*(1/3),y),l=new Co(n,a)}return l},i.prototype.dateTimeInterval=function(e){var t=e.xAxis.actualIntervalType;return"Years"===t?31536e6:"Months"===t?2592e6:"Days"===t?864e5:"Hours"===t?36e5:"Minutes"===t?6e4:"Seconds"===t?1e3:2592e6},i.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},i}(fr),un=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),gn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t}return un(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c,d,p,u="",g=void 0,m=null,y=[],f=[],v=0,b=e.border.width?e.border.width:0,S=e.border.color?e.border.color:e.interior,C="";y=this.filterEmptyPoints(e);for(A=0;A<y.length;A++)null!==(l=y[A]).x&&""!==l.x&&(l.index=v,v++,f.push(l));for(var F,w,L=this.enableComplexProperty(e),P=L.length,A=0;A<P;A++){(l=L[A]).regions=[],l.symbolLocations=[],w=this.getNextIndex(f,l.index-1,e),F=this.getPreviousIndex(f,l.index-1,e);var M=Math.min(l.low,l.high),D=Math.max(l.low,l.high);if(o.isAxisInverse){var k=M;M=D,D=k}var R=fe(l.xValue,M,t,o,r),T=fe(l.xValue,D,t,o,r);l.symbolLocations.push(T),l.symbolLocations.push(R);var E=new i.Rect(Math.min(R.x,T.x),Math.min(R.y,T.y),Math.max(Math.abs(T.x-R.x),e.marker.width),Math.max(Math.abs(T.y-R.y),e.marker.width));r?E.y-=e.marker.width/2:E.x-=e.marker.width/2,l.regions.push(E),l.visible&&x(L[F],l,L[w],e)?(m?(d=e.drawPoints[F].controlPoint1,p=e.drawPoints[F].controlPoint2,s=fe(l.xValue,l.high>l.low?l.high:l.low,t,o,r),h=fe(d.x,d.y,t,o,r),c=fe(p.x,p.y,t,o,r),u=u.concat("C "+h.x+" "+h.y+" "+c.x+" "+c.y+" "+s.x+" "+s.y+" "),this.borderDirection+="C "+h.x+" "+h.y+" "+c.x+" "+c.y+" "+s.x+" "+s.y+" "):(o.isAxisInverse?(u=u.concat("M "+T.x+" "+T.y+" L "+R.x+" "+R.y+" "),this.borderDirection+="M "+T.x+" "+T.y+" ",C="L "+R.x+" "+R.y):(u=u.concat("M "+R.x+" "+R.y+" L "+T.x+" "+T.y+" "),this.borderDirection+="M "+T.x+" "+T.y+" ",C="L "+R.x+" "+R.y),g=!1),(A+1<L.length&&!L[A+1].visible||A===L.length-1)&&(u=this.closeSplineRangeAreaPath(L,l,e,u,A,t,o,r),this.borderDirection+=C,C="",u=u.concat(" Z"),g=!0),m=l):(!1===g&&0!==A&&(u=this.closeSplineRangeAreaPath(L,l,e,u,A,t,o,r),g=!0),m=null,l.symbolLocations=[])}var _="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:e.chart.element.id+"_Series_"+e.index,I=new i.PathOption(_,e.interior,0,"transparent",e.opacity,e.dashArray,u);this[n?"addPath":"appendLinePath"](I,e,""),0!==e.border.width&&(this[n?"addPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",b,S,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),a||this.renderMarker(e)},t.prototype.closeSplineRangeAreaPath=function(e,t,i,o,r,n,a,l){for(var s,h,c,d,p,u=null,g=r;g>0&&e[g].visible;g--){t=e[g];var m=Math.min(t.low,t.high),y=Math.max(t.low,t.high);if(a.isAxisInverse){var f=m;m=y,y=f}var v=fe(t.xValue,m,n,a,l),b=fe(t.xValue,y,n,a,l);u&&i.lowDrawPoints[g]?(d=i.lowDrawPoints[g].controlPoint1,p=i.lowDrawPoints[g].controlPoint2,s=fe(t.xValue,t.low<t.high?t.low:t.high,n,a,l),h=fe(d.x,d.y,n,a,l),c=fe(p.x,p.y,n,a,l),isNaN(h.y)&&isNaN(c.y)||(o=o.concat("C "+c.x+" "+c.y+" "+h.x+" "+h.y+" "+s.x+" "+s.y+" "),this.borderDirection+="C "+c.x+" "+c.y+" "+h.x+" "+h.y+" "+s.x+" "+s.y+" ")):a.isAxisInverse?(o=o.concat("L "+b.x+" "+b.y+" "),this.borderDirection+="M "+b.x+" "+b.y+" "):(o=o.concat("L "+v.x+" "+v.y+" "),this.borderDirection+="M "+v.x+" "+v.y+" "),u=t}return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)!function(i){e.marker&&e.marker.visible&&e.points[i].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))}(i)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(r.length/2+1,0,"C "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")+" "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")+" "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")),r.splice(r.length/2+2,0,"C "+r[r.length/2+1].split(" ").slice(1,3).join(" ")+" "+r[r.length/2+1].split(" ").slice(1,3).join(" ")+" "+r[r.length/2+1].split(" ").slice(1,3).join(" ")));K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,"C "+n[1].split(" ").slice(-3).join(" ")+n[1].split(" ").slice(-3).join(" ")+n[1].split(" ").slice(-3).join(" ")),n.splice(n.length-1,0,"C "+n[n.length-2].split(" ").slice(-4).join(" ")+n[n.length-2].split(" ").slice(-4).join(" ")+n[n.length-2].split(" ").slice(-4).join(" ")));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"SplineRangeAreaSeries"},t.prototype.destroy=function(){},t}(pn),mn=function(){function e(){}return e.prototype.render=function(e,t,i,o){var r,n=e.points,a=Math.max(e.chart.initialClipRect.height,e.chart.initialClipRect.width),l=a/100,s=e.maxRadius*l,h=e.minRadius*l,c=null;if(null===e.maxRadius||null===e.minRadius){for(var d=0,p=e.chart.visibleSeries;d<p.length;d++){var u=p[d];"Bubble"!==u.type||!0!==u.visible||null!==u.maxRadius&&null!==u.minRadius||(c=u.sizeMax>c?u.sizeMax:c)}h=s=1,r=a/5/2*s}else c=e.sizeMax,r=s-h;for(var g=0,m=n;g<m.length;g++){var y=m[g];this.renderPoint(e,y,o,r,c,h,n)}},e.prototype.renderPoint=function(e,t,o,r,n,a,l,s){var h=e.chart.redraw&&t.symbolLocations?t.symbolLocations[0]:null;t.symbolLocations=[],t.regions=[];var c;if(t.visible&&x(l[t.index-1],t,l[t.index+1],e)){c=(c=null===e.maxRadius||null===e.minRadius?r*Math.abs(+t.size/n):a+r*Math.abs(+t.size/n))||a;var d={cancel:!1,name:Ri,series:e,point:t,fill:e.setPointColor(t,e.interior),border:e.setBorderColor(t,{width:e.border.width,color:e.border.color}),height:2*c,width:2*c};if(e.chart.trigger(Ri,d),d.cancel)t.marker={visible:!1};else{t.symbolLocations.push(fe(t.xValue,t.yValue,e.xAxis,e.yAxis,o)),t.color=d.fill;var p=new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index,d.fill,d.border.width,d.border.color,e.opacity,e.border.dashArray);if(s&&he(p.id)){var u=he(p.id);h={x:+u.getAttribute("cx"),y:+u.getAttribute("cy")}}var g=ne(t.symbolLocations[0],"Circle",new i.Size(d.width,d.height),e.marker.imageUrl,p,t.x.toString()+":"+t.yValue.toString(),e.chart.svgRenderer,e.clipRect);be(e.chart.enableCanvas,e.seriesElement,g,e.chart.redraw,!0,"cx","cy",h,null,!1,!1,null,e.chart.duration,!0),t.regions.push(new i.Rect(t.symbolLocations[0].x-c,t.symbolLocations[0].y-c,2*c,2*c)),t.marker={border:d.border,fill:d.fill,height:d.height,visible:!0,shape:"Circle",width:d.width},e.chart.enableCanvas&&e.chart.markerRender.render(e),h=e.chart.redraw&&!h?t.symbolLocations[0]:h,e.chart.redraw&&He(g,e.chart.duration?e.chart.duration:300,h,t.symbolLocations[0],"cx","cy")}}},e.prototype.updateDirection=function(e,t,i){var o,r=e.points,n=Math.max(e.chart.initialClipRect.height,e.chart.initialClipRect.width),a=n/100,l=e.maxRadius*a,s=e.minRadius*a,h=null;if(null===e.maxRadius||null===e.minRadius){for(var c=0,d=e.chart.visibleSeries;c<d.length;c++){var p=d[c];"Bubble"!==p.type||!0!==p.visible||null!==p.maxRadius&&null!==p.minRadius||(h=p.sizeMax>h?p.sizeMax:h)}s=l=1,o=n/5/2*l}else h=e.sizeMax,o=l-s;for(var u=0;u<t.length;u++)this.renderPoint(e,e.points[t[u]],i,o,h,s,r,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[u]],null,e.marker.dataLabel))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"BubbleSeries"},e.prototype.doAnimation=function(e){for(var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1,n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&(q(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}},e}(),yn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yn(t,e),t.prototype.render=function(e,t,o,r,n,a){var l=null,s="",h="M",c=[],d="TrendLine"===e.category?e.points:this.enableComplexProperty(e);c=this.filterEmptyPoints(e,d);for(var p,u="PolarRadar"===e.chart.chartAreaType?E:fe,g=0,m=c;g<m.length;g++){var y=m[g];1===y.index&&(s=""),p=this.getPreviousIndex(c,y.index-1,e),y.symbolLocations=[],y.regions=[],y.visible?(x(c[p],y,c[this.getNextIndex(c,y.index-1,e)],e)&&(null!==l&&(s=this.getSplineDirection(e.drawPoints[p],l,y,t,o,r,e,h,u,s),h="L"),this.storePointLocation(y,e,r,u),""===s&&1===c.length&&(s="M "+y.symbolLocations[0].x+" "+y.symbolLocations[0].y),null===l&&""!==s&&(y.index===c.length-1||c[y.index+1]&&!c[y.index+1].visible)&&(s+="M "+y.symbolLocations[0].x+" "+y.symbolLocations[0].y+" ")),l=y):(h="M",l=null,y.symbolLocations=[])}if(c.length>0&&e.drawPoints.length>0&&"PolarRadar"===e.chart.chartAreaType&&e.isClosed){var f=this.getFirstLastVisiblePoint(c);s=this.getSplineDirection(e.drawPoints[e.drawPoints.length-1],f.last,{xValue:f.first.xValue,yValue:f.first.yValue},t,o,r,e,h,u,s),h="L"}var v="TrendLine"===e.category?e.chart.element.id+"_Series_"+e.sourceIndex+"_TrendLine_"+e.index:e.chart.element.id+"_Series_"+e.index,b=new i.PathOption(v,"transparent",e.width,e.interior,e.opacity,e.dashArray,s);this[n?"addPath":"appendLinePath"](b,e,""),a||this.renderMarker(e)},t.prototype.getSplineDirection=function(e,t,i,o,r,n,a,l,s,h){var c=e.controlPoint1,d=e.controlPoint2,p=s(t.xValue,t.yValue,o,r,n,a),u=s(i.xValue,i.yValue,o,r,n,a),g=s(c.x,c.y,o,r,n,a),m=s(d.x,d.y,o,r,n,a);return h.concat(l+" "+p.x+" "+p.y+" C "+g.x+" "+g.y+" "+m.x+" "+m.y+" "+u.x+" "+u.y+" ")},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(0===t.removedPointIndex&&r.length>n.length&&r[2]&&0===r[2].indexOf("M")&&(r.splice(0,r.length-n.length),o.previousDirection=r.join("")),r.length<n.length){for(c=r.length;c<n.length;c++)if(n.length!==r.length)if(n.length===r.length+1&&0===n[n.length-1].indexOf("M"))r.push(n[n.length-1]);else if(0===r[r.length-1].indexOf("C"))r.push("L "+r[r.length-1].split(" ").slice(-3).join(" "));else if(0===r[r.length-1].indexOf("L")){var s=r[r.length-1].split(" ").slice(-3);r.push("C "+s.join(" ")+s.join(" ")+s.join(" "))}else{var h=r[r.length-1].replace("M","");r.push("C"+h+h+h)}K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration,"",!0)}else if(r.length>n.length){for(var c=l;c<a;c++)if(t.removedPointIndex===t.points.length&&n.length!==r.length)if(0===n[n.length-1].indexOf("C"))n.push("L "+n[n.length-1].split(" ").slice(-3).join(" "));else if(0===n[n.length-1].indexOf("L")){var d=n[n.length-1].split(" ").slice(-3);n.push("C "+d.join(" ")+d.join(" ")+d.join(" "))}else{var p=n[n.length-1].replace("M","");n.push("C"+p+p+p)}else if(1===n.length){var u=n[n.length-1].replace("M","");n.push("C"+u+u+u)}else n.length!==r.length&&n.splice(1,0,"C "+n[0].split(" ").slice(-3).join(" ")+n[0].split(" ").slice(-3).join(" ")+n[0].split(" ").slice(-3).join(" "),n[0].replace("M","L"));K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d,!0)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration,"",!0)}},t.prototype.getModuleName=function(){return"SplineSeries"},t.prototype.destroy=function(){},t}(pn),vn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),bn=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return vn(o,e),o.prototype.render=function(t){e.prototype.render.call(this,t),t.showNormalDistribution&&this.renderNormalDistribution(t)},o.prototype.calculateBinInterval=function(e,t){for(var i=S(e)/e.length,o=0,r=0,n=e;r<n.length;r++){var a=n[r];o+=(a-i)*(a-i)}t.histogramValues.mean=i,t.histogramValues.sDValue=Math.sqrt(Math.abs(o/e.length)),t.histogramValues.binWidth=t.binInterval||Math.round(3.5*t.histogramValues.sDValue/Math.pow(e.length,1/3))||1},o.prototype.processInternalData=function(e,t){for(var i,o=[],r=[],n=Object.keys(e),a=0;a<n.length;a++){var l=n[a];r.push(e[l][t.yName])}t.histogramValues={yValues:r};var s=Math.min.apply(Math,t.histogramValues.yValues),h=Math.max.apply(Math,t.histogramValues.yValues);this.calculateBinInterval(t.histogramValues.yValues,t);for(var c,d=t.histogramValues.binWidth,p=0;p<e.length;)c=r.filter(function(e){return e>=s&&e<s+d}).length,s+d===h&&(c+=r.filter(function(e){return e>=h}).length),o.push((i={x:s+d/2},i[t.yName]=c,i)),s+=d,p+=c;return o},o.prototype.calculateBinValues=function(e){var t,i,o=e.histogramValues.yValues.length,r=e.histogramValues.binWidth,n=e.histogramValues.mean,a=e.histogramValues.sDValue,l=e.xAxis.minimum?parseInt(e.xAxis.minimum.toString(),10):e.xMin,s=((e.xAxis.maximum?parseInt(e.xAxis.maximum.toString(),10):e.xMax)-l)/499;if(e.points.length)for(var h=0;h<500;h++)t=l+h*s,i=Math.exp(-(t-n)*(t-n)/(2*a*a))/(a*Math.sqrt(2*Math.PI))*r*o,e.yMin=e.yMin>i?i:e.yMin,e.yMax=e.yMax<i?i:e.yMax},o.prototype.renderNormalDistribution=function(e){var o,r,n=e.xAxis.actualRange.min,a=e.xAxis.actualRange.max,l="",s="M",h=e.histogramValues.yValues.length,c=e.histogramValues.binWidth,d=e.histogramValues.mean,p=e.histogramValues.sDValue,u=(a-n)/499;if(e.points.length)for(var g=0;g<500;g++)l+=s+" "+(r=fe(o=n+g*u,Math.exp(-(o-d)*(o-d)/(2*p*p))/(p*Math.sqrt(2*Math.PI))*c*h,e.xAxis,e.yAxis,e.chart.requireInvertedAxis)).x+" "+r.y+" ",s="L";var m=e.chart.renderer.drawPath(new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_NDLine","transparent",2,e.chart.themeStyle.histogram||e.chart.themeStyle.errorBar,e.opacity,e.dashArray,l),new Int32Array([e.clipRect.x,e.clipRect.y]));m.style.visibility=e.chart.enableCanvas?null:(e.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.chart.animateSeries?"hidden":"visible",e.chart.enableCanvas||e.seriesElement.appendChild(m)},o.prototype.doAnimation=function(t){e.prototype.doAnimation.call(this,t),t.showNormalDistribution&&re(t.seriesElement.lastElementChild,0===t.animation.duration?1e3:t.animation.duration,500,"FadeIn")},o.prototype.updateDirection=function(e){this.render(e),e.marker.visible&&be(e.chart.enableCanvas,e.chart.seriesElements,e.symbolElement,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelCollections=[],e.chart.dataLabelModule.render(e,e.chart,e.marker.dataLabel),e.textElement&&(be(e.chart.enableCanvas,e.chart.dataLabelElements,e.shapeElement,!0),be(e.chart.enableCanvas,e.chart.dataLabelElements,e.textElement,!0)))},o.prototype.getModuleName=function(){return"HistogramSeries"},o.prototype.destroy=function(){},o}(Cr),xn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.render=function(e,t,o,r,n,a){var l,s,h,c,d,p,u=null,g="",m=null,y=null,f=[],v=[],b=0;f=this.filterEmptyPoints(e);for(var S="",C=0;C<f.length;C++)null!==(p=f[C]).x&&""!==p.x&&(p.index=b,b++,v.push(p));for(var F,w=v.length,L="PolarRadar"===e.chart.chartAreaType?E:fe,P="PolarRadar"===e.chart.chartAreaType?e.points[0].yValue:Math.max(e.yAxis.visibleRange.min,0),C=0;C<w;C++)(p=v[C]).symbolLocations=[],p.regions=[],F=this.getPreviousIndex(v,p.index-1,e),p.visible&&x(v[F],p,v[this.getNextIndex(v,p.index-1,e)],e)?(u?(c=e.drawPoints[F].controlPoint1,d=e.drawPoints[F].controlPoint2,l=L(p.xValue,p.yValue,t,o,r,e),s=L(c.x,c.y,t,o,r,e),h=L(d.x,d.y,t,o,r,e),g=g.concat("C "+s.x+" "+s.y+" "+h.x+" "+h.y+" "+l.x+" "+l.y+" ")):(g+="M "+(m=L(p.xValue,P,t,o,r,e)).x+" "+m.y+" ",g+="L "+(y=L(p.xValue,p.yValue,t,o,r,e)).x+" "+y.y+" "),this.storePointLocation(p,e,r,L),u=p):(u=null,p.symbolLocations=[]),(C+1<w&&!v[C+1].visible||C===w-1)&&l&&m&&(m=L(p.xValue,P,t,o,r,e),g=g.concat("L "+m.x+" "+m.y+" "));this[n?"addPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,g),e,""),0!==e.border.width&&(S=this.removeEmptyPointsBorder(this.getBorderDirection(g)),this[n?"addPath":"appendLinePath"](new i.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,S),e,"")),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){2===o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g).length&&(o.previousDirection=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g)[0]+"L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" C "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]),2===e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g).length&&(e.d=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g)[0]+"L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" C "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]);var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(c=r.length;c<n.length;c++)if(n.length!==r.length){var s=void 0,h="C "+(s=4===r[r.length-1].split(" ").length&&-1!==e.id.indexOf("border")?r[r.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(1).join(" "):r[r.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(5).join(" "))+s+s;-1!==e.id.indexOf("border")?r.push(h):r.splice(r.length-1,0,h)}K(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(var c=l;c<a;c++)if(n.length!==r.length){var d=void 0;if(t.removedPointIndex===t.points.length){h="C "+(d=4===r[r.length-1].split(" ").length&&-1!==e.id.indexOf("border")?n[n.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(1).join(" "):n[n.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(5).join(" "))+d+d;-1!==e.id.indexOf("border")?n.push(h):n.splice(n.length-1,0,h)}else d=4===r[r.length-1].split(" ").length?"C "+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(1).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(1).join(" "):"C "+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" "),n.splice(-1!==e.id.indexOf("border")?1:2,0,d)}K(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else K(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.getModuleName=function(){return"SplineAreaSeries"},t.prototype.destroy=function(){},t}(pn),Cn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cn(t,e),t.prototype.initSeriesCollection=function(e,t){e.targetSeries=[];var i=new Bo(e,"targetSeries",{},!0);this.setSeriesProperties(i,e,e.type,e.fill,e.width,t)},t.prototype.setSeriesProperties=function(e,t,i,o,r,n){e.name=i.length<=4?i.toLocaleUpperCase():i,e.xName="x",e.yName="y",e.fill=o||"#606eff",e.dashArray=t.dashArray,e.width=r,e.xAxisName=t.xAxisName,e.animation=t.animation,e.yAxisName=t.yAxisName,e.clipRectElement=t.clipRectElement,e.points=[],e.enableTooltip=!0,e.interior=e.fill,e.category="Indicator",e.index=t.index,e.chart=n,e.xMin=1/0,e.xMax=-1/0,e.yMin=1/0,e.yMax=-1/0,e.xData=[],e.yData=[],e.marker.visible=!1,t.targetSeries.push(e)},t.prototype.createIndicatorElements=function(e,t,o){(t.seriesName||t.dataSource)&&j(t.targetSeries[0]);var r=new i.Rect(0,0,0,0);(t.seriesName||t.dataSource)&&(r=t.targetSeries[0].clipRect);var n=new co(e.element.id+"_ChartIndicatorClipRect_"+o,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:r.width,height:r.height}),a=J(e.redraw,n,e.renderer);t.indicatorElement=e.renderer.createGroup({id:e.element.id+"IndicatorGroup"+o,transform:"translate("+r.x+","+r.y+")","clip-path":"url(#"+e.element.id+"_ChartIndicatorClipRect_"+o+")"}),t.indicatorElement&&(t.indicatorElement.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:""),t.indicatorElement.setAttribute("tabindex",t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),t.accessibility.focusable&&(t.indicatorElement.style.outline="none"),t.indicatorElement.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:""),t.indicatorElement.appendChild(a));for(var l=0,s=t.targetSeries;l<s.length;l++){var h=s[l];h.clipRectElement=a;var c=h.chart.renderer.createGroup({id:h.chart.element.id+"_Indicator_"+t.index+"_"+h.name+"_Group"});t.indicatorElement&&t.indicatorElement.appendChild(c),h.seriesElement=c}e.indicatorElements&&e.indicatorElements.appendChild(t.indicatorElement)},t.prototype.getDataPoint=function(e,t,i,o,r,n){void 0===n&&(n=null);var a=new To;return a.x=e,a.y=t,a.xValue=i.xValue,a.color=o.fill,a.index=r,a.yValue=t,a.visible=!0,o.xMin=Math.min(o.xMin,a.xValue),o.yMin=Math.min(o.yMin,a.yValue),o.xMax=Math.max(o.xMax,a.xValue),o.yMax=Math.max(o.yMax,a.yValue),o.xData.push(a.xValue),n&&"Macd"===n.type&&"Column"===o.type&&(a.y>=0?a.color=n.macdPositiveColor:a.color=n.macdNegativeColor),a},t.prototype.getRangePoint=function(e,t,i,o,r,n){var a=new To;return a.x=e,a.high=t,a.low=i,a.xValue=o.xValue,a.color=r.fill,a.index=n,a.visible=!0,r.xData.push(a.xValue),a},t.prototype.setSeriesRange=function(e,t,i){void 0===i&&(i=null),i?i.points=e:t.targetSeries[0].points=e},t}(fr),wn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wn(t,e),t.prototype.initDataSource=function(e){var t=[],i=e.points;if(i&&i.length){var o=i,r=U(e.field),n=e.targetSeries[0];if(o&&o.length&&o.length>=e.period){for(var a=0,l=0,s=0;s<e.period;s++)l+=o[s][r];a=l/e.period,t.push(this.getDataPoint(o[e.period-1].x,a,o[e.period-1],n,t.length));for(var h=e.period;h<o.length;)l-=o[h-e.period][r],a=(l+=o[h][r])/e.period,t.push(this.getDataPoint(o[h].x,a,o[h],n,t.length)),h++}this.setSeriesRange(t,e)}},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"SmaIndicator"},t}(Fn),Pn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),An=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.initDataSource=function(e){var t=U(e.field),i=[],o=e.targetSeries[0],r=e.points;if(r&&r.length&&r.length>=e.period){for(var n=0,a=0,l=2/(e.period+1),s=0;s<e.period;s++)n+=r[s][t];a=n/e.period,i.push(this.getDataPoint(r[e.period-1].x,a,r[e.period-1],o,i.length));for(var h=e.period;h<r.length;){var c=i[h-e.period][o.yName],d=(r[h][t]-c)*l+c;i.push(this.getDataPoint(r[h].x,d,r[h],o,i.length)),h++}}this.setSeriesRange(i,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"EmaIndicator"},t}(Fn),Mn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mn(t,e),t.prototype.initDataSource=function(e){var t=[],i=U(e.field),o=e.points;if(o&&o.length&&o.length>=e.period){var r=e.targetSeries[0],n=e.points;if(n.length&&n.length>=e.period){for(var a=0,l=[],s=0,h=n.length,c=e.period;h>=c;){a=0;for(p=s=n.length-h;p<s+c;p++)a+=n[p][i];a/=c,l.push(a),h--}for(var d=0;d<c-1;d++){a=0;for(p=0;p<d+1;p++)a+=n[p][i];a/=d+1,l.splice(d,0,a)}for(s=e.period;s<=l.length;){a=0;for(var p=s-e.period;p<s;p++)a+=l[p];a/=e.period,t.push(this.getDataPoint(n[s-1].x,a,n[s-1],r,t.length)),s++}}}this.setSeriesRange(t,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"TmaIndicator"},t}(Fn),kn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.initDataSource=function(e){var t=[],i=e.points;i.length>0&&i.length>e.period&&(t=this.calculateADPoints(e,i)),this.setSeriesRange(t,e)},t.prototype.calculateADPoints=function(e,t){var i=[],o=0,r=0,n=0,a=0,l=0,s=e.targetSeries[0];for(r=0;r<t.length;r++)n=Number(t[r].high),a=Number(t[r].low),o+=((l=Number(t[r].close))-a-(n-l))/(n-a?n-a:1)*Number(t[r].volume),i[r]=this.getDataPoint(t[r].x,o,t[r],s,i.length);return i},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AccumulationDistributionIndicator"},t}(Fn),Tn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tn(t,e),t.prototype.initDataSource=function(e){var t=e.points;t.length>0&&t.length>e.period&&this.calculateATRPoints(e,t)},t.prototype.calculateATRPoints=function(e,t){for(var i=0,o=0,r=0,n=0,a=0,l=[],s=[],h=e.period,c=0,d=e.targetSeries[0],p=0;p<t.length;p++)o=Number(t[p].high)-Number(t[p].low),p>0&&(r=Math.abs(Number(t[p].high)-Number(t[p-1].close)),n=Math.abs(Number(t[p].low)-Number(t[p-1].close))),c+=a=Math.max(o,r,n),p>=h?(i=(Number(s[p-1].y)*(h-1)+a)/h,l.push(this.getDataPoint(t[p].x,i,t[p],d,l.length))):(i=c/h,p===h-1&&l.push(this.getDataPoint(t[p].x,i,t[p],d,l.length))),s[p]={x:t[p].x,y:i};this.setSeriesRange(l,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AtrIndicator"},t}(Fn),_n=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),In=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _n(t,e),t.prototype.initSeriesCollection=function(t,i){e.prototype.initSeriesCollection.call(this,t,i);var o=new Bo(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,o,t,"UpperLine",t.upperLine.color,t.upperLine.width,i)},t.prototype.initDataSource=function(e){var t=[],i=[],o=e.points;if(o&&o.length){var r=e.targetSeries[1],n=e.targetSeries[0],a=e.period;if(o.length>=e.period)for(var l=0;l<o.length;l++)t.push(this.getDataPoint(o[l].x,100,o[l],r,t.length)),l<a||i.push(this.getDataPoint(o[l].x,Number(o[l].close)/Number(o[l-a].close)*100,o[l],n,i.length));this.setSeriesRange(i,e,e.targetSeries[0]),this.setSeriesRange(t,e,e.targetSeries[1])}},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"MomentumIndicator"},t}(Fn),On=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return On(t,e),t.prototype.initSeriesCollection=function(t,i){if(e.prototype.initSeriesCollection.call(this,t,i),t.showZones){var o=new Bo(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,o,t,"LowerLine",t.lowerLine.color,t.lowerLine.width,i);var r=new Bo(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,r,t,"UpperLine",t.upperLine.color,t.upperLine.width,i)}},t.prototype.initDataSource=function(e){var t=[],i=[],o=[],r=e.targetSeries[0],n=e.points;if(n.length&&n.length>=e.period){if(e.showZones)for(h=0;h<n.length;h++)o.push(this.getDataPoint(n[h].x,e.overBought,n[h],e.targetSeries[1],o.length)),i.push(this.getDataPoint(n[h].x,e.overSold,n[h],e.targetSeries[2],i.length));for(var a=Number(n[0].close),l=0,s=0,h=1;h<=e.period;h++){var c=Number(n[h].close);c>a?l+=c-a:s+=a-c,a=c}l/=e.period,s/=e.period,t.push(this.getDataPoint(n[e.period].x,100-100/(1+l/s),n[e.period],r,t.length));for(var d=e.period+1;d<n.length;d++){var p=Number(n[d].close);p>a?(l=(l*(e.period-1)+(p-a))/e.period,s=s*(e.period-1)/e.period):p<a&&(s=(s*(e.period-1)+(a-p))/e.period,l=l*(e.period-1)/e.period),a=p,t.push(this.getDataPoint(n[d].x,100-100/(1+l/s),n[d],r,t.length))}}this.setSeriesRange(t,e,e.targetSeries[0]),e.showZones&&(this.setSeriesRange(o,e,e.targetSeries[1]),this.setSeriesRange(i,e,e.targetSeries[2]))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"RsiIndicator"},t}(Fn),Bn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bn(t,e),t.prototype.initSeriesCollection=function(t,i){e.prototype.initSeriesCollection.call(this,t,i);var o=new Bo(t,"targetSeries",{},!0);if(this.setSeriesProperties(o,t,"PeriodLine",t.periodLine.color,t.periodLine.width,i),t.showZones){var r=new Bo(t,"targetSeries",{},!0);this.setSeriesProperties(r,t,"UpperLine",t.upperLine.color,t.upperLine.width,i);var n=new Bo(t,"targetSeries",{},!0);this.setSeriesProperties(n,t,"LowerLine",t.lowerLine.color,t.lowerLine.width,i)}},t.prototype.initDataSource=function(e){var t=[],i=[],o=[],r=[],n=[],a=e.points;if(a.length&&a.length>=e.period){if(e.showZones)for(var l=0;l<a.length;l++)i.push(this.getDataPoint(a[l].x,e.overBought,a[l],e.targetSeries[2],i.length)),o.push(this.getDataPoint(a[l].x,e.overSold,a[l],e.targetSeries[3],o.length));n=this.calculatePeriod(e.period,e.kPeriod,a,e.targetSeries[1]),r=this.smaCalculation(e.period,e.kPeriod,n,e.targetSeries[1]),t=this.smaCalculation(e.period+e.kPeriod-1,e.dPeriod,n,e.targetSeries[0])}this.setSeriesRange(t,e,e.targetSeries[0]),this.setSeriesRange(r,e,e.targetSeries[1]),e.showZones&&(this.setSeriesRange(i,e,e.targetSeries[2]),this.setSeriesRange(o,e,e.targetSeries[3]))},t.prototype.smaCalculation=function(e,t,i,o){var r=[];if(i.length>=e+t){for(var n=e+(t-1),a=[],l=[],s=0;s<i.length;s++){var h=Number(i[s].y);a.push(h)}for(var c=a.length;c>=n;){for(var d=0,s=e-1;s<e+t-1;s++)d+=a[s];d/=t,l.push(d.toFixed(2)),a.splice(0,1),c=a.length}for(var p=n-1,s=0;s<i.length;s++)s<p||(r.push(this.getDataPoint(i[s].x,Number(l[s-p]),i[s],o,r.length)),i[s].y=Number(l[s-p]))}return r},t.prototype.calculatePeriod=function(e,t,i,o){for(var r=[],n=[],a=[],l=[],s=0;s<i.length;s++)r[s]=i[s].low,n[s]=i[s].high,a[s]=i[s].close;if(i.length>e){for(var h=[],c=[],d=0;d<e-1;++d)c.push(0),h.push(0),l.push(this.getDataPoint(i[d].x,i[d].close,i[d],o,l.length));for(d=e-1;d<i.length;++d){for(var p=Number.MAX_VALUE,u=Number.MIN_VALUE,s=0;s<e;++s)p=Math.min(p,r[d-s]),u=Math.max(u,n[d-s]);c.push(u),h.push(p)}for(d=e-1;d<i.length;++d){var g=0,m=0;g+=a[d]-h[d],m+=c[d]-h[d],l.push(this.getDataPoint(i[d].x,g/m*100,i[d],o,l.length))}}return l},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StochasticIndicator"},t}(Fn),Vn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vn(t,e),t.prototype.initSeriesCollection=function(e,t){e.targetSeries=[];var i=new Bo(e,"targetSeries",{},!0);i.type="RangeArea","transparent"!==e.bandColor&&"none"!==e.bandColor&&this.setSeriesProperties(i,e,"BollingerBand",e.bandColor,0,t);var o=new Bo(e,"targetSeries",{},!0);this.setSeriesProperties(o,e,"BollingerBand",e.fill,e.width,t);var r=new Bo(e,"targetSeries",{},!0);this.setSeriesProperties(r,e,"UpperLine",e.upperLine.color,e.upperLine.width,t);var n=new Bo(e,"targetSeries",{},!0);this.setSeriesProperties(n,e,"LowerLine",e.lowerLine.color,e.lowerLine.width,t)},t.prototype.initDataSource=function(e){var t="transparent"!==e.bandColor&&"none"!==e.bandColor,i=t?1:0,o=[],r=[],n=[],a=[],l=e.targetSeries[i+1],s=e.targetSeries[i+2],h=e.targetSeries[i],c=t?e.targetSeries[0]:null,d=e.points;if(d.length&&d.length>=e.period){for(var p=0,u=0,g=e.standardDeviation,m=d.length,y=Math.round(e.period),f=[],v=[],b=[],x=0;x<y;x++)p+=Number(d[x].close);for(var S=p/e.period,C=0;C<m;C++){var F=Number(d[C].close);if(C>=y-1&&C<m){C-e.period>=0?(S=(p+=F-Number(d[C-y].close))/e.period,f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C]-v[C-y]):(f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C]);var w=Math.sqrt(u/e.period),L=f[C]-g*w,P=f[C]+g*w;if(C+1===y)for(var A=0;A<y-1;A++)b[A]={X:d[A].x,mb:f[C],lb:L,ub:P,visible:!0};b[C]={X:d[C].x,mb:f[C],lb:L,ub:P,visible:!0}}else C<e.period-1&&(f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C])}for(var M=-1,D=-1,k=0;k<m;k++)if(k>=y-1){r.push(this.getDataPoint(d[k].x,b[k].ub,d[k],l,r.length)),n.push(this.getDataPoint(d[k].x,b[k].lb,d[k],s,n.length)),o.push(this.getDataPoint(d[k].x,b[k].mb,d[k],h,o.length)),t&&a.push(this.getRangePoint(d[k].x,r[++M].y,n[++D].y,d[k],c,a.length))}}t&&this.setSeriesRange(a,e,e.targetSeries[0]),this.setSeriesRange(o,e,e.targetSeries[i]),this.setSeriesRange(r,e,e.targetSeries[i+1]),this.setSeriesRange(n,e,e.targetSeries[i+2])},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"BollingerBandsIndicator"},t}(Fn),Wn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wn(t,e),t.prototype.initSeriesCollection=function(t,i){if(e.prototype.initSeriesCollection.call(this,t,i),"Line"===t.macdType||"Both"===t.macdType){var o=new Bo(t,"targetSeries",{},!0);this.setSeriesProperties(o,t,"MacdLine",t.macdLine.color,t.macdLine.width,i)}if("Histogram"===t.macdType||"Both"===t.macdType){var r=new Bo(t,"targetSeries",{},!0);r.type="Column",this.setSeriesProperties(r,t,"Histogram",t.macdPositiveColor,t.width,i)}},t.prototype.initDataSource=function(e){var t,i,o=[],r=e.fastPeriod,n=e.slowPeriod,a=e.period,l=r+a,s=[],h=[],c=e.points,d=e.targetSeries[0];if("Histogram"===e.macdType?t=e.targetSeries[1]:(i=e.targetSeries[1],"Both"===e.macdType&&(t=e.targetSeries[2])),c&&l<c.length&&n<=r&&n>0&&l-2>=0){var p=this.calculateEMAValues(n,c,"close"),u=this.calculateEMAValues(r,c,"close"),g=this.getMACDVales(e,p,u);s=this.getMACDPoints(e,g,c,i||d);var m=this.calculateEMAValues(a,s,"y");o=this.getSignalPoints(e,m,c,d),t&&(h=this.getHistogramPoints(e,g,m,c,t))}this.setSeriesRange(o,e,e.targetSeries[0]),t&&this.setSeriesRange(h,e,t),i&&this.setSeriesRange(s,e,i)},t.prototype.calculateEMAValues=function(e,t,i){for(var o=0,r=0,n=[],a=2/(e+1),l=0;l<e;l++)o+=Number(t[l][i]);r=o/e,n.push(r);for(var s=r,h=e;h<t.length;h++)s=(Number(t[h][i])-s)*a+s,n.push(s);return n},t.prototype.getMACDPoints=function(e,t,i,o){for(var r=[],n=e.fastPeriod-1,a=0;n<i.length;)r.push(this.getDataPoint(i[n].x,t[a],i[n],o,r.length)),n++,a++;return r},t.prototype.getSignalPoints=function(e,t,i,o){for(var r=e.fastPeriod+e.period-2,n=0,a=[];r<i.length;)a.push(this.getDataPoint(i[r].x,t[n],i[r],o,a.length)),r++,n++;return a},t.prototype.getMACDVales=function(e,t,i){for(var o=[],r=e.fastPeriod-e.slowPeriod,n=0;n<i.length;n++)o.push(t[n+r]-i[n]);return o},t.prototype.getHistogramPoints=function(e,t,i,o,r){for(var n=e.fastPeriod+e.period-2,a=0,l=[];n<o.length;)l.push(this.getDataPoint(o[n].x,t[a+(e.period-1)]-i[a],o[n],r,l.length,e)),n++,a++;return l},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"MacdIndicator"},t}(Fn),Un=function(){function e(){}return e.prototype.initSeriesCollection=function(e,t){var i=new Bo(e,"targetSeries",{},!0);"Linear"===e.type||"MovingAverage"===e.type?i.type="Line":i.type="Spline",this.setSeriesProperties(i,e,e.type,e.fill,e.width,t)},e.prototype.setSeriesProperties=function(e,t,i,o,r,n){e.name=t.name,e.xName="x",e.yName="y",e.fill=o||"blue",e.width=r,e.dashArray=t.dashArray,e.clipRectElement=t.clipRectElement,e.points=[],e.enableTooltip=t.enableTooltip,e.index=t.index,e.sourceIndex=t.sourceIndex,e.interior=e.fill,e.animation=t.animation,e.legendShape="HorizontalLine",e.marker=t.marker,e.category="TrendLine",e.chart=n,e.xMin=1/0,e.xMax=-1/0,e.yMin=1/0,e.yMax=-1/0,e.xData=[],e.yData=[],t.targetSeries=e},e.prototype.createTrendLineElements=function(e,t,i,o,r){t.trendLineElement=o,t.targetSeries.clipRectElement=r,t.targetSeries.seriesElement=o,e.trendLineElements&&e.trendLineElements.appendChild(t.trendLineElement)},e.prototype.getDataPoint=function(e,t,i,o){var r=new To;return r.x="DateTime"===i.xAxis.valueType?new Date(Number(e)):e,r.y=t,r.xValue=Number(e),r.color=i.fill,r.index=o,r.yValue=Number(t),r.visible=!0,i.xMin=Math.min(i.xMin,r.xValue),i.yMin=Math.min(i.yMin,r.yValue),i.xMax=Math.max(i.xMax,r.xValue),i.yMax=Math.max(i.yMax,r.yValue),i.xData.push(r.xValue),r},e.prototype.findSlopeIntercept=function(e,t,i,o){for(var r=0,n=0,a=0,l=0,s=0,h=0,c=0;s<o.length;)isNaN(t[s])&&(t[s]=(t[s-1]+t[s+1])/2),r+=e[s],n+=t[s],a+=e[s]*t[s],l+=e[s]*e[s],s++;var d=i.type;if(!i.intercept||"Linear"!==d&&"Exponential"!==d)h=(o.length*a-r*n)/(o.length*l-r*r),h="Linear"===d?h:Math.abs(h),c="Exponential"===d||"Power"===d?Math.exp((n-h*r)/o.length):(n-h*r)/o.length;else switch(c=i.intercept,d){case"Linear":h=(a-i.intercept*r)/l;break;case"Exponential":h=(a-Math.log(Math.abs(i.intercept))*r)/l}return{slope:h,intercept:c}},e.prototype.initDataSource=function(e){var t=e.points;if(t&&t.length){var i=e.targetSeries;switch(e.type){case"Linear":this.setLinearRange(t,e,i);break;case"Exponential":this.setExponentialRange(t,e,i);break;case"MovingAverage":this.setMovingAverageRange(t,e,i);break;case"Polynomial":this.setPolynomialRange(t,e,i);break;case"Power":this.setPowerRange(t,e,i);break;case"Logarithmic":this.setLogarithmicRange(t,e,i)}"Linear"!==e.type&&"MovingAverage"!==e.type&&i.chart.splineSeriesModule.findSplinePoint(i)}},e.prototype.setExponentialRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n],l=a.yValue?Math.log(a.yValue):0;o.push(a.xValue),r.push(l),n++}var s=this.findSlopeIntercept(o,r,t,e);i.points=this.getExponentialPoints(t,e,o,r,i,s)},e.prototype.setLogarithmicRange=function(e,t,i){for(var o=[],r=[],n=[],a=0;a<e.length;){var l=e[a],s=l.xValue?Math.log(l.xValue):0;n.push(l.xValue),o.push(s),r.push(l.yValue),a++}var h=this.findSlopeIntercept(o,r,t,e);i.points=this.getLogarithmicPoints(t,e,n,r,i,h)},e.prototype.setPolynomialRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n];o.push(a.xValue),r.push(a.yValue),n++}i.points=this.getPolynomialPoints(t,e,o,r,i)},e.prototype.setPowerRange=function(e,t,i){for(var o=[],r=[],n=[],a=0;a<e.length;){var l=e[a],s=l.xValue?Math.log(l.xValue):0,h=l.yValue?Math.log(l.yValue):0;n.push(l.xValue),o.push(s),r.push(h),a++}var c=this.findSlopeIntercept(o,r,t,e);i.points=this.getPowerPoints(t,e,n,r,i,c)},e.prototype.setLinearRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n];o.push(a.xValue),r.push(a.yValue),n++}var l=this.findSlopeIntercept(o,r,t,e);i.points=this.getLinearPoints(t,e,o,r,i,l)},e.prototype.setMovingAverageRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n];r.push(a.xValue),o.push(a.yValue),n++}i.points=this.getMovingAveragePoints(t,e,r,o,i)},e.prototype.getLogarithmicPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast,h=s?Math.log(s):0,c=n.intercept+n.slope*h,d=i[a-1],p=d?Math.log(d):0,u=n.intercept+n.slope*p,g=i[i.length-1]+e.forwardForecast,m=g?Math.log(g):0,y=n.intercept+n.slope*m;return l.push(this.getDataPoint(s,c,r,l.length)),l.push(this.getDataPoint(d,u,r,l.length)),l.push(this.getDataPoint(g,y,r,l.length)),l},e.prototype.getPowerPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast;s=s>-1?s:0;var h=n.intercept*Math.pow(s,n.slope),c=i[a-1],d=n.intercept*Math.pow(c,n.slope),p=i[i.length-1]+e.forwardForecast,u=n.intercept*Math.pow(p,n.slope);return l.push(this.getDataPoint(s,h,r,l.length)),l.push(this.getDataPoint(c,d,r,l.length)),l.push(this.getDataPoint(p,u,r,l.length)),l},e.prototype.getPolynomialPoints=function(e,t,i,o,r){var n=t.length<=e.polynomialOrder?t.length:e.polynomialOrder;n=Math.max(2,n),n=Math.min(6,n),e.polynomialOrder=n,e.polynomialSlopes=[],e.polynomialSlopes.length=e.polynomialOrder+1;for(var a=0;a<i.length;){for(var l=i[a],s=o[a],h=0;h<=e.polynomialOrder;)e.polynomialSlopes[h]||(e.polynomialSlopes[h]=0),e.polynomialSlopes[h]+=Math.pow(l,h)*s,++h;a++}var c=[];c.length=1+2*e.polynomialOrder;var d=[];d.length=e.polynomialOrder+1;for(var p=0;p<e.polynomialOrder+1;)d[p]=[],d[p].length=3,p++;for(var u=0;u<i.length;){for(var g=i[u],m=1,y=0;y<c.length;)c[y]||(c[y]=0),c[y]+=m,m*=g,++y;++u}for(var f=0;f<=e.polynomialOrder;){for(var v=0;v<=e.polynomialOrder;)d[f][v]=c[f+v],++v;++f}return this.gaussJordanElimination(d,e.polynomialSlopes)||(e.polynomialSlopes=null),this.getPoints(e,t,i,r)},e.prototype.getMovingAveragePoints=function(e,i,o,r,n){var a=[],l=e.period>=i.length?i.length-1:e.period;l=1===l?1:Math.max(2,l);for(var s,h,c,d,p=0;p<i.length;){s=c=d=0;for(var u=p;c<l;u++)c++,s+=r[u];s=l-d<0?null:s?s/(l-d):s,t.isNullOrUndefined(s)||isNaN(s)||(h=o[l-1+p],a.push(this.getDataPoint(h,s,n,a.length))),p++}return a},e.prototype.getLinearPoints=function(e,t,i,o,r,n){var a=[],l=i.indexOf(Math.max.apply(null,i)),s=i[i.indexOf(Math.min.apply(null,i))]-e.backwardForecast,h=n.slope*s+n.intercept,c=i[l]+e.forwardForecast,d=n.slope*c+n.intercept;return a.push(this.getDataPoint(s,h,r,a.length)),a.push(this.getDataPoint(c,d,r,a.length)),a},e.prototype.getExponentialPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast,h=n.intercept*Math.exp(n.slope*s),c=i[a-1],d=n.intercept*Math.exp(n.slope*c),p=i[i.length-1]+e.forwardForecast,u=n.intercept*Math.exp(n.slope*p);return l.push(this.getDataPoint(s,isNaN(h)?0:h,r,l.length)),l.push(this.getDataPoint(c,isNaN(d)?0:d,r,l.length)),l.push(this.getDataPoint(p,isNaN(u)?0:u,r,l.length)),l},e.prototype.getPoints=function(e,t,i,o){var r,n,a=e.polynomialSlopes,l=[],s=1,h=1;for(t.sort(function(e,t){return e.xValue-t.xValue}),i.sort(function(e,t){return e-t});null!==a&&h<=a.length;)1===h?(r=i[0]-e.backwardForecast,n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))):h===a.length?(r=i[t.length-1]+e.forwardForecast,n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))):(s+=(t.length+("DateTime"===o.xAxis.valueType?h:e.forwardForecast))/a.length,r=i[parseInt(s.toString(),10)-1],n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))),h++;return l},e.prototype.getPolynomialYValue=function(e,t){for(var i=0,o=0;o<e.length;)i+=e[o]*Math.pow(t,o),o++;return i},e.prototype.gaussJordanElimination=function(e,t){var i=e.length,o=[],r=[],n=[];o.length=i,r.length=i,n.length=i;for(var a=0;a<i;)n[a]=0,++a;for(var l=0;l<i;){for(var s=0,h=0,c=0,d=0;d<i;){if(1!==n[d])for(v=0;v<i;)0===n[v]&&Math.abs(e[d][v])>=s&&(s=Math.abs(e[d][v]),h=d,c=v),++v;++d}if(++n[c],h!==c){for(var p=0;p<i;){f=e[h][p];e[h][p]=e[c][p],e[c][p]=f,++p}var u=t[h];t[h]=t[c],t[c]=u}if(r[l]=h,o[l]=c,0===e[c][c])return!1;var g=1/e[c][c];e[c][c]=1;for(var m=0;m<i;)e[c][m]*=g,++m;t[c]*=g;for(var y=0;y<i;){if(y!==c){var f=e[y][c];e[y][c]=0;for(var v=0;v<i;)e[y][v]-=e[c][v]*f,++v;t[y]-=t[c]*f}++y}++l}for(var b=i-1;b>=0;){if(r[b]!==o[b])for(var x=0;x<i;){var S=e[x][r[b]];e[x][r[b]]=e[x][o[b]],e[x][o[b]]=S,++x}--b}return!0},e.prototype.getTrendLineElements=function(e,t){j(e);var i=e.clipRect,o=t.renderer.drawClipPath(new co(t.element.id+"_ChartTrendlineClipRect_"+e.index,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:i.width,height:i.height})),r=t.renderer.createGroup({id:t.element.id+"TrendlineSeriesGroup"+e.index,transform:"translate("+i.x+","+i.y+")","clip-path":"url(#"+t.element.id+"_ChartTrendlineClipRect_"+e.index+")"});r&&r.appendChild(o);for(var n=0,a=e.trendlines;n<a.length;n++){var l=a[n];this.createTrendLineElements(t,l,l.index,r,o)}},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"TrendLine"},e}(),Xn=function(){function e(e){this.arrowLocation=new mo(0,0),this.rx=2,this.ry=2,this.highlightWidth=0,this.crosshairLeftOverflow=0,this.crosshairRightOverflow=0,this.chart=e,this.elementID=this.chart.element.id,this.svgRenderer=new i.SvgRenderer(this.chart.element.id),(this.chart.crosshair.snapToData||this.chart.crosshair.highlightCategory)&&(this.data=new Lo(this.chart)),this.addEventListener()}return e.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this)}},e.prototype.mouseUpHandler=function(){this.chart.startMove&&this.removeCrosshair(2e3)},e.prototype.mouseLeaveHandler=function(){this.removeCrosshair(1e3)},e.prototype.mouseMoveHandler=function(e){var i=this.chart;i.stockChart&&i.stockChart.onPanning&&(i.mouseY<i.chartAxisLayoutPanel.seriesClipRect.y?i.mouseY=i.chartAxisLayoutPanel.seriesClipRect.y:i.mouseY>i.chartAxisLayoutPanel.seriesClipRect.y+i.chartAxisLayoutPanel.seriesClipRect.height&&(i.mouseY=i.chartAxisLayoutPanel.seriesClipRect.y+i.chartAxisLayoutPanel.seriesClipRect.height)),"touchmove"===e.type&&(t.Browser.isIos||t.Browser.isIos7)&&i.startMove&&e.preventDefault&&e.preventDefault(),i.disableTrackTooltip||(i.crosshair.enable&&V(i.mouseX,i.mouseY,i.chartAxisLayoutPanel.seriesClipRect)?!i.startMove&&i.isTouch||this.crosshair():this.removeCrosshair(1e3))},e.prototype.longPress=function(){var e=this.chart;return V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&this.crosshair(),!1},e.prototype.findMousePoints=function(e){for(var t=this.data.getData(),i=e.isTransposed?"x":"y",o=null,r=1/0,n="x"===i?e.mouseX:e.mouseY,a=!1,l=this.data.mergeXvalues(this.chart.visibleSeries),s=0,h=e.visibleSeries;s<h.length;s++){var c=h[s];if(a=a||c.visible,c.visible&&"TrendLine"!==c.category){var d=this.data.getClosestX(e,c,l)||t;if(d&&d.point&&d.point.symbolLocations[0]){var p=d.point.symbolLocations[0][i]+d.series.clipRect[i];if(e.crosshair.snapToData||e.crosshair.highlightCategory){var u=Math.abs(p-n);u<r&&(r=u,o=d)}}}}if((e.crosshair.snapToData||e.crosshair.highlightCategory)&&o&&(t=o,e.crosshairModule.highlightWidth=0,e.crosshair.highlightCategory&&"Category"===t.series.xAxis.valueType)){var g=e.isTransposed||e.requireInvertedAxis?e.chartAxisLayoutPanel.seriesClipRect.height:e.chartAxisLayoutPanel.seriesClipRect.width,m=g/t.series.xAxis.visibleRange.delta,y=(t.point.xValue-t.series.xAxis.visibleRange.min)/(t.series.xAxis.visibleRange.max-t.series.xAxis.visibleRange.min);e.crosshairModule.crosshairLeftOverflow=Math.max(0,m/2-y*g),e.crosshairModule.crosshairRightOverflow=Math.max(0,y*g+m/2-g),e.crosshairModule.highlightWidth=Math.max(0,m-e.crosshairModule.crosshairLeftOverflow-e.crosshairModule.crosshairRightOverflow)}return t&&t.point&&this.data.findMouseValues(t,e,this),a},e.prototype.crosshair=function(){var e=this.chart.series.filter(function(e){return e.visible}).length,o=!0;(this.chart.crosshair.snapToData||this.chart.crosshair.highlightCategory)&&(o=this.findMousePoints(this.chart));var r,n,a=this.chart,l="",s="",h=document.getElementById(this.elementID+"_crosshair_axis"),c=a.crosshair,d=document.getElementById(this.elementID+"_tooltip"),p=a.chartAxisLayoutPanel.seriesClipRect,u=a.enableCanvas?document.getElementById(this.elementID+"_Secondary_Element"):document.getElementById(this.elementID+"_UserInteraction"),g=document.getElementById(this.elementID+"_Crosshair");if(a.enableCanvas&&(g||(g=t.createElement("div",{id:this.elementID+"_Crosshair",styles:"position: absolute; pointer-events: none"}),u.appendChild(g))),this.stopAnimation(),0===e||a.crosshair.snapToData&&void 0===this.valueY||a.isCrosshair&&a.tooltip.enable&&a.tooltipModule&&!V(a.tooltipModule.valueX,a.tooltipModule.valueY,p)||a.crosshair.snapToData&&!o)return null;if(this.valueX=a.crosshair.snapToData||a.crosshair.highlightCategory?this.valueX:a.tooltip.enable&&a.tooltipModule&&a.tooltipModule.valueX?a.tooltipModule.valueX:a.mouseX,this.valueY=a.crosshair.snapToData||a.crosshair.highlightCategory?this.valueY:a.tooltip.enable&&a.tooltipModule&&a.tooltipModule.valueY?a.tooltipModule.valueY:a.mouseY,!a.enableCanvas&&u&&u.setAttribute("opacity","1"),"Both"===c.lineType||"Horizontal"===c.lineType)if(a.crosshair.highlightCategory&&0!==this.highlightWidth&&(a.isTransposed||a.requireInvertedAxis)){y=this.highlightWidth;a.crosshairModule.valueY=this.adjustCrosshairPositionForOverflow(this.valueY,!0,a);var m=this.valueY-y/2;l="M "+p.x+" "+m+" L "+(p.x+p.width)+" "+m+" L "+(p.x+p.width)+" "+(m+y)+" L "+p.x+" "+(m+y)+" Z"}else l+="M "+p.x+" "+this.valueY+" L "+(p.x+p.width)+" "+this.valueY;if("Both"===c.lineType||"Vertical"===c.lineType)if(a.crosshair.highlightCategory&&0!==this.highlightWidth&&!a.requireInvertedAxis){var y=this.highlightWidth;a.crosshairModule.valueX=this.adjustCrosshairPositionForOverflow(this.valueX,!1,a);var f=this.valueX-y/2;s="M "+f+" "+p.y+" L "+(f+y)+" "+p.y+" L "+(f+y)+" "+(p.y+p.height)+" L "+f+" "+(p.y+p.height)+" Z"}else s+="M "+this.valueX+" "+p.y+" L "+this.valueX+" "+(p.y+p.height);if(a.enableCanvas){h||(h=this.svgRenderer.createGroup({id:this.elementID+"_crosshair_axis"}));var v=a.tooltip.enable?a.element.id+"_tooltip_svg":a.element.id+"_svg";n=this.svgRenderer.createSvg({id:v,width:a.availableSize.width,height:a.availableSize.height}),a.tooltip.enable&&((d=d||a.tooltipModule.createElement()).appendChild(n),u.appendChild(d)),r=new i.PathOption(this.elementID+"_HorizontalLine","none",c.line.width,c.horizontalLineColor||c.line.color||a.themeStyle.crosshairLine,c.opacity,a.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===a.theme||a.theme.indexOf("Tailwind3")>-1?c.dashArray||"2.5":c.dashArray,l),this.drawCrosshairLine(r,g,p.x,this.valueY,p.width,0,l),r=new i.PathOption(this.elementID+"_VerticalLine","none",c.line.width,c.verticalLineColor||c.line.color||a.themeStyle.crosshairLine,c.opacity,a.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===a.theme||a.theme.indexOf("Tailwind3")>-1?c.dashArray||"2.5":c.dashArray,s),this.drawCrosshairLine(r,g,this.valueX,p.y,0,p.height,s),this.renderAxisTooltip(a,p,h),n.appendChild(h),a.tooltip.enable||g.appendChild(n)}else if(0===u.childNodes.length){var b=a.crosshair.highlightCategory&&0!==this.highlightWidth&&(a.isTransposed||a.requireInvertedAxis),x=a.crosshair.highlightCategory&&0!==this.highlightWidth&&!a.requireInvertedAxis;h=a.renderer.createGroup({id:this.elementID+"_crosshair_axis"}),r=new i.PathOption(this.elementID+"_HorizontalLine",b?c.horizontalLineColor||c.line.color?this.crosshairLightenColor(c.horizontalLineColor||c.line.color):a.themeStyle.crosshairBackground:"none",b?0:c.line.width,b?"none":c.horizontalLineColor||c.line.color||a.themeStyle.crosshairLine,c.opacity,b?null:a.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===a.theme||a.theme.indexOf("Tailwind3")>-1?c.dashArray||"2.5":c.dashArray,l),this.renderCrosshairLine(r,u),r=new i.PathOption(this.elementID+"_VerticalLine",x?c.verticalLineColor||c.line.color?this.crosshairLightenColor(c.verticalLineColor||c.line.color):a.themeStyle.crosshairBackground:"none",x?0:c.line.width,x?"none":c.verticalLineColor||c.line.color||a.themeStyle.crosshairLine,c.opacity,x?null:a.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===a.theme||a.theme.indexOf("Tailwind3")>-1?c.dashArray||"2.5":c.dashArray,s),this.renderCrosshairLine(r,u),u.appendChild(h),this.renderAxisTooltip(a,p,u.lastChild)}else document.getElementById(this.elementID+"_HorizontalLine").setAttribute("d",l),document.getElementById(this.elementID+"_VerticalLine").setAttribute("d",s),this.renderAxisTooltip(a,p,u.lastChild)},e.prototype.crosshairLightenColor=function(e){var t=ke(Re(e));return"rgb("+t.r+","+t.g+","+t.b+",0.25)"},e.prototype.adjustCrosshairPositionForOverflow=function(e,t,i){return i.crosshairModule.crosshairLeftOverflow>0&&(e+=t?-i.crosshairModule.crosshairLeftOverflow/2:i.crosshairModule.crosshairLeftOverflow/2),i.crosshairModule.crosshairRightOverflow>0&&(e+=t?i.crosshairModule.crosshairRightOverflow/2:-i.crosshairModule.crosshairRightOverflow/2),e},e.prototype.renderCrosshairLine=function(e,t){var i=this.chart.renderer.drawPath(e);t.appendChild(i)},e.prototype.drawCrosshairLine=function(e,i,o,r,n,a,l){if(!document.getElementById(e.id)&&l){var s=t.createElement("div",{id:e.id});i.appendChild(s)}if(document.getElementById(e.id)){var h="top:"+r.toString()+"px;left:"+o.toString()+"px;width:"+n+"px;height:"+a+"px;fill:"+e.stroke+";border: 0.5px solid "+e.stroke+";opacity: "+e.opacity+" ; position: absolute",c=document.getElementById(e.id),d=document.getElementById(this.elementID+"_crosshair_axis");c.style.cssText=h,i.style.opacity="1",d&&(d.style.opacity="1")}},e.prototype.renderAxisTooltip=function(e,o,r){for(var n,a,l,s,h,c,d,p,u=0,m=e.axisCollections.length;u<m;u++)if(n=e.axisCollections[u],p=n.placeNextToAxisLine?n.updatedRect:n.rect,n.crosshairTooltip.enable)if(p&&(this.valueX<=p.x+p.width&&p.x<=this.valueX||this.valueY<=p.y+p.height&&p.y<=this.valueY)){if(s=document.getElementById(this.elementID+"_axis_tooltip_"+u),h=document.getElementById(this.elementID+"_axis_tooltip_text_"+u),(a=this.getAxisText(n))&&a.indexOf("<br")>-1&&(a=this.getAxisText(n).split(/<br.*?>/g)),!a)continue;if((l=this.tooltipLocation(a,n,o,p)).y+l.height/2>e.availableSize.height||l.y<0)continue;if(null===s&&(s=e.enableCanvas?this.svgRenderer.drawPath({id:this.elementID+"_axis_tooltip_"+u,fill:n.crosshairTooltip.fill||e.themeStyle.crosshairFill}):e.renderer.drawPath({id:this.elementID+"_axis_tooltip_"+u,fill:n.crosshairTooltip.fill||e.themeStyle.crosshairFill},null),r.appendChild(s),c=new i.TextOption(this.elementID+"_axis_tooltip_text_"+u,0,0,e.stockChart&&e.enableRtl?"end":"start",a),h=je(e.enableCanvas?this.svgRenderer:e.renderer,c,n.crosshairTooltip.textStyle,n.crosshairTooltip.textStyle.color||e.themeStyle.crosshairLabelFont.color,r,null,null,null,null,null,null,null,null,e.enableCanvas,null,this.chart.themeStyle.crosshairLabelFont)),d=N(this.rx,this.ry,l,this.arrowLocation,9,this.isTop,this.isBottom,this.isLeft,this.valueX,this.valueY),s.setAttribute("d",d),"string"!=typeof a&&a.length>1)for(v=0;v<a.length;v++)h.childNodes[v].textContent=a[v];else h.textContent=a;h.setAttribute("x",(l.x+5+(e.enableRtl?this.elementSize.width:0)).toString()),h.setAttribute("y",(l.y+5+3*this.elementSize.height/4).toString());var y=this.chart.element.id+"_shadow";if("string"!=typeof a&&a.length>1){var f=0;h.setAttribute("y",(l.y+5+3*this.elementSize.height/(4*a.length)).toString());for(var v=0;v<h.children.length;v++)f+=this.elementSize.height/a.length,h.children[v].setAttribute("x",(l.x+5+(e.enableRtl?this.elementSize.width:0)+this.elementSize.width/2).toString()),h.children[v].setAttribute("y",(parseInt(h.getAttribute("y"),10)+f).toString()),h.children[v].style.textAnchor="middle"}if("Fluent"===this.chart.theme||"FluentDark"===this.chart.theme||"Fabric"===this.chart.theme||"FabricDark"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme){var b=this.chart.renderer.createDefs(),x="Fluent"===this.chart.theme||"Fabric"===this.chart.theme?"#D2D0CE":"Fluent2HighContrast"===this.chart.theme?"#FFFFFF":null,S="Fluent"===this.chart.theme||"Fabric"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme?1:null;b.setAttribute("id",this.chart.element.id+"SVG_tooltip_definition"),r.appendChild(b),s.setAttribute("stroke",x),s.setAttribute("stroke-width"," "+S)}else if(this.chart.theme.indexOf("Fluent2")>-1){s.setAttribute("box-shadow","0px 1.6px 3.6px 0px #00000021, 0px 0.3px 0.9px 0px #0000001A"),s.setAttribute("filter",t.Browser.isIE?"":"url(#"+y+")");var C='<filter id="'+y+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';C+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>',C+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',(b=this.chart.renderer.createDefs()).setAttribute("id",this.chart.element.id+"SVG_tooltip_definition"),s.appendChild(b),b.innerHTML=C}}else g(this.elementID+"_axis_tooltip_"+u),g(this.elementID+"_axis_tooltip_text_"+u)},e.prototype.getAxisText=function(e){var t;this.isBottom=!1,this.isTop=!1,this.isLeft=!1,this.isRight=!1;var i="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,o=e.isAxisOpposedPosition;return"Horizontal"===e.orientation?(t=H(Math.abs(this.valueX-e.rect.x),e.rect.width,e)+i,this.isBottom=!o,this.isTop=o):(t=W(Math.abs(this.valueY-e.rect.y),e.rect.height,e)+i,this.isRight=o,this.isLeft=!o),"DateTime"===e.valueType?e.format(new Date(t)):"Category"===e.valueType?e.labels[Math.floor(t)]:"DateTimeCategory"===e.valueType?this.chart.dateTimeCategoryModule.getIndexedAxisLabel(e.labels[Math.round(t)],e.format):"Logarithmic"===e.valueType?t=e.format(Math.pow(e.logBase,t)):e.labelFormat&&null!==e.labelFormat.match("{value}")?e.labelFormat.replace("{value}",e.format(t)):e.format(t)},e.prototype.tooltipLocation=function(e,t,o,r){var n,a=o.x,l=o.y,s="Inside"===t.labelPosition,h=t.scrollbarSettings.enable||t.zoomingScrollBar&&t.zoomingScrollBar.svgObject?t.scrollBarHeight:0;if(this.elementSize=i.measureText(e,t.crosshairTooltip.textStyle,this.chart.themeStyle.crosshairLabelFont),"string"!=typeof e&&e.length>1){this.elementSize.width=0,this.elementSize.height=0;for(var c=0;c<e.length;c++){var d=i.measureText(e[c],t.crosshairTooltip.textStyle,this.chart.themeStyle.crosshairLabelFont);this.elementSize.height+=d.height,this.elementSize.width<d.width&&(this.elementSize.width=d.width)}}var p=t.isAxisOpposedPosition;if("Horizontal"===t.orientation){var u=s?r.y-this.elementSize.height-19:r.y+h,g=s?r.y-this.elementSize.height-9:r.y+9;this.arrowLocation=new mo(this.valueX,u),n=new i.Rect(this.valueX-this.elementSize.width/2-5,g+(s?0:h),this.elementSize.width+10,this.elementSize.height+10),p&&(n.y=s?r.y:r.y-(this.elementSize.height+10+9)-h),n.x<a&&(n.x=a),n.x+n.width>a+o.width&&(n.x-=n.x+n.width-(a+o.width)),this.arrowLocation.x+4.5>n.x+n.width-this.rx&&(this.arrowLocation.x=n.x+n.width-this.rx-9),this.arrowLocation.x-9<n.x+this.rx&&(this.arrowLocation.x=n.x+this.rx+9)}else{h*=p?1:-1,this.arrowLocation=new mo(r.x,this.valueY);var m=s?r.x-h:r.x-this.elementSize.width-19;n=new i.Rect(m+h,this.valueY-this.elementSize.height/2-5,this.elementSize.width+10,this.elementSize.height+10),p?(n.x=s?r.x-this.elementSize.width-9:r.x+9+h,n.x+n.width>this.chart.availableSize.width&&(this.arrowLocation.x-=n.x+n.width-this.chart.availableSize.width,n.x-=n.x+n.width-this.chart.availableSize.width)):n.x<0&&(this.arrowLocation.x-=n.x,n.x=0),n.y<l&&(n.y=l),n.y+n.height>=l+o.height&&(n.y-=n.y+n.height-(l+o.height)),this.arrowLocation.y+4.5>n.y+n.height-this.ry&&(this.arrowLocation.y=n.y+n.height-this.ry-4.5),this.arrowLocation.y-4.5<n.y+this.ry&&(this.arrowLocation.y=n.y+this.ry+4.5)}return n},e.prototype.stopAnimation=function(){Fe(this.crosshairInterval)},e.prototype.progressAnimation=function(){Fe(this.crosshairInterval)},e.prototype.removeCrosshair=function(e){var i=this.chart,o=i.enableCanvas?document.getElementById(this.elementID+"_Crosshair"):document.getElementById(this.elementID+"_UserInteraction"),r=i.enableCanvas?document.getElementById(this.elementID+"_crosshair_axis"):null;this.stopAnimation(),o&&"0"!==o.getAttribute("opacity")&&(this.crosshairInterval=+setTimeout(function(){new t.Animation({}).animate(o,{duration:200,progress:function(e){o.style.animation="",i.enableCanvas?(o.style.opacity=(1-e.timeStamp/e.duration).toString(),r.style.opacity=(1-e.timeStamp/e.duration).toString()):o.setAttribute("opacity",(1-e.timeStamp/e.duration).toString())},end:function(){i.enableCanvas?(o.style.opacity="0",r.style.opacity="0"):o.setAttribute("opacity","0"),i.startMove=!1,i.tooltipModule&&(i.tooltipModule.valueX=null,i.tooltipModule.valueY=null)}})},e))},e.prototype.getModuleName=function(){return"Crosshair"},e.prototype.destroy=function(){},e}(),Gn=function(){function e(e){this.selectionStyle=[],this.control=e}return e.prototype.seriesStyles=function(){var e,i,o=document.getElementById(this.styleId),r="{}",n=this.control.selectionPattern,a=this.control.highlightPattern;if(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor||t.isNullOrUndefined(o)||"None"!==n||"None"!==a){document.getElementById(this.styleId)&&document.getElementById(this.styleId).remove(),(o=this.control.createElement("div")).setAttribute("id",this.styleId);for(var l=0,s=this.control.visibleSeries;l<s.length;l++){var h=s[l],c=this.control.visibleSeries[h.index]||this.control.visibleSeries[h.index];if(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor||(!t.isNullOrUndefined(n)||!t.isNullOrUndefined(a))&&("None"!==n||"None"!==a)){var d=this.styleId.indexOf("highlight")>0?a:n;if("Pie"!==c.type&&"Funnel"!==c.type&&"Pyramid"!==c.type&&"circularchart3d"!==this.control.getModuleName()||"transparent"===this.control.highlightColor)c.type&&"transparent"!==this.control.highlightColor&&(i=c.opacity,r="{ fill:"+(e=this.pattern(this.control,this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:""!==c.pointColorMapping||this.control.rangeColorSettings&&this.control.rangeColorSettings.length>1?c.points[0].color:c.interior,h.index,d,i))+"}");else for(var p=0;p<c.points.length;p++)i=c.opacity,r="{ fill:"+(e=this.pattern(this.control,this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:c.points[p].color,h.points[p].index,d,i))+"}",h.selectionStyle||this.styleId+"_series_"+h.index+"_point_"+h.points[p].index+",."+this.styleId+"_series_"+h.index+"_point_"+h.points[p].index+"> *","None"===this.control.highlightMode&&this.control.legendSettings.enableHighlight&&!h.isRectSeries&&(o.innerText+="."+this.styleId+"_series_"+h.index+"> * { stroke-width:3;} ",this.selectionStyle.push([this.styleId+"_series_"+h.index,"stroke-width","3"])),r=r.indexOf("None")>-1?"{fill:"+(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:c.points[p].color)+"!important}":r,this.selectionStyle.push([this.styleId+"_series_"+h.index+"_point_"+h.points[p].index,"fill",e?e.indexOf("None")>-1?this.styleId.indexOf("highlight")>-1?this.control.highlightColor:"":e:""])}h.selectionStyle||this.styleId+"_series_"+h.index+",."+this.styleId+"_series_"+h.index+"> *","None"===this.control.highlightMode&&this.control.legendSettings.enableHighlight&&!h.isRectSeries&&this.selectionStyle.push([this.styleId+"_series_"+h.index,"stroke-width",(parseFloat(h.width?h.width.toString():"0")+1).toString()]),r=r.indexOf("None")>-1?"{}":r,this.selectionStyle.push([this.styleId+"_series_"+h.index,"fill",e?e.indexOf("None")>-1?this.styleId.indexOf("highlight")>-1?this.control.highlightColor:"":e:""])}var u="transparent"!==this.control.highlightColor?"circularchart3d"===this.control.getModuleName()?.2:.3:i;t.isNullOrUndefined(this.control.selectionModule)&&"None"===this.control.selectionMode&&""!==this.control.highlightColor&&(u=1),this.selectionStyle.push([this.unselected,"opacity",u.toString()]);var g=document.getElementById(this.control.element.id+"_Secondary_Element");g&&g.appendChild(o)}},e.prototype.pattern=function(e,t,i,o,r){var n=e.svgObject,a=[],l={id:e.element.id+"_"+o+"_Selection_"+i,patternUnits:"userSpaceOnUse"};switch(o){case"Dots":l.height=l.width=6,l.width=6,a[0]={x:0,y:0,width:7,height:7,transform:"translate(0,0)",fill:"#ffffff",opacity:r,name:"rect"},a[1]={cx:3,cy:3,r:2,"stroke-width":1,fill:t,name:"circle"};break;case"Pacman":l.height="18.384",l.width="17.917",a[0]={name:"rect",x:0,y:0,width:17.917,height:18.384,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M9.081,9.194l5.806-3.08c-0.812-1.496-2.403-3.052-4.291-3.052H8.835C6.138,3.063,3,6.151,3,8.723v1.679   c0,2.572,3.138,5.661,5.835,5.661h1.761c2.085,0,3.835-1.76,4.535-3.514L9.081,9.194z","stroke-width":1,stroke:t,fill:t};break;case"Chessboard":l.height=l.width=10,a[0]={x:0,y:0,width:10,height:10,fill:"#ffffff",opacity:r,name:"rect"},a[1]={x:0,y:0,width:5,height:5,fill:t,opacity:r,name:"rect"},a[2]={x:5,y:5,width:5,height:5,fill:t,opacity:r,name:"rect"};break;case"Crosshatch":l.height=l.width="8",a[0]={x:0,y:0,width:8,height:8,transform:"translate(0,0)",fill:"#ffffff",opacity:r,name:"rect"},a[1]={d:"M0 0L8 8ZM8 0L0 8Z","stroke-width":1,stroke:t,name:"path"};break;case"DiagonalForward":l.height=l.width=6,a[0]={x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:"#ffffff",opacity:r,name:"rect"},a[1]={d:"M 3 -3 L 9 3 M 6 6 L 0 0 M 3 9 L -3 3","stroke-width":2,stroke:t,name:"path"};break;case"DiagonalBackward":l.height=l.width=6,a[0]={x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:"#ffffff",opacity:r,name:"rect"},a[1]={d:"M 3 -3 L -3 3 M 0 6 L 6 0 M 9 3 L 3 9","stroke-width":2,stroke:t,name:"path"};break;case"Grid":l.height=l.width=6,a[0]={name:"rect",x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M1 3.5L11 3.5 M0 3.5L11 3.5 M0 7.5L11 7.5 M0 11.5L11 11.5 M5.5 0L5.5 12 M11.5 0L11.5 12Z","stroke-width":1,stroke:t};break;case"Turquoise":l.height=l.width=17,a[0]={name:"rect",x:0,y:0,width:17,height:17,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M0.5739999999999998,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[2]={name:"path",d:"M11.805,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[3]={name:"path",d:"M6.19,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[4]={name:"path",d:"M11.805,8.217a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[5]={name:"path",d:"M6.19,8.217a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[6]={name:"path",d:"M11.805,13.899a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t},a[7]={name:"path",d:"M6.19,13.899a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":10,stroke:t,fill:t};break;case"Star":l.height=l.width=21,a[0]={name:"rect",x:0,y:0,width:21,height:21,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M15.913,18.59L10.762 12.842 5.613 18.75 8.291 11.422 0.325 9.91 8.154 8.33 5.337 0.91 10.488 6.658 15.637 0.75 12.959 8.078 20.925 9.59 13.096 11.17 z","stroke-width":1,stroke:t,fill:t};break;case"Triangle":l.height=l.width=10,a[0]={name:"rect",x:0,y:0,width:10,height:10,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M4.987,0L7.48 4.847 9.974 9.694 4.987 9.694 0 9.694 2.493 4.847 z","stroke-width":1,stroke:t,fill:t};break;case"Circle":l.height=l.width=9,a[0]={name:"rect",x:0,y:0,width:9,height:9,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"circle",cx:5.125,cy:3.875,r:3.625,"stroke-width":1,fill:t};break;case"Tile":l.height=l.width=18,a[0]={name:"rect",x:0,y:0,width:18,height:18,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M0,9L0 0 9 0 z","stroke-width":1,stroke:t,fill:t},a[2]={name:"path",d:"M9,9L9 0 18 0 z","stroke-width":1,stroke:t,fill:t},a[3]={name:"path",d:"M0,18L0 9 9 9 z","stroke-width":1,stroke:t,fill:t},a[4]={name:"path",d:"M9,18L9 9 18 9 z","stroke-width":1,stroke:t,fill:t};break;case"HorizontalDash":l.height=l.width=12,a[0]={name:"rect",x:0,y:0,width:12,height:12,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M0,1.5 L10 1.5 M0,5.5 L10 5.5 M0,9.5 L10 9.5 z","stroke-width":1,stroke:t,fill:t};break;case"VerticalDash":l.height=l.width=12,a[0]={name:"rect",x:0,y:0,width:12,height:12,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M1.5,0 L1.5 10 M5.5,0 L5.5 10 M9.5,0 L9.5 10 z","stroke-width":1,stroke:t,fill:t};break;case"Rectangle":l.height=l.width=12,a[0]={name:"rect",width:12,height:12,fill:"#ffffff",opacity:r},a[1]={name:"rect",x:1,y:2,width:4,height:9,fill:t,opacity:r},a[2]={name:"rect",x:7,y:2,width:4,height:9,fill:t,opacity:r};break;case"Box":l.height=l.width=10,a[0]={name:"rect",width:13,height:13,fill:"#ffffff",opacity:r},a[1]={name:"rect",x:1.5,y:1.5,width:10,height:9,fill:t,opacity:r};break;case"HorizontalStripe":l.height=12,l.width=10,a[0]={name:"rect",x:0,y:0,width:10,height:12,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M0,0.5 L10 0.5 M0,4.5 L10 4.5 M0,8.5 L10 8.5 z","stroke-width":1,stroke:t,fill:t};break;case"VerticalStripe":l.height=10,l.width=12,a[0]={name:"rect",x:0,y:0,width:12,height:10,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"path",d:"M0.5,0 L0.5 10 M4.5,0 L4.5 10 M8.5,0 L8.5 10 z","stroke-width":1,stroke:t,fill:t};break;case"Bubble":l.height=l.width=20,a[0]={name:"rect",x:0,y:0,width:20,height:20,transform:"translate(0,0)",fill:"#ffffff",opacity:r},a[1]={name:"circle",cx:5.217,cy:11.325,r:3.429,"stroke-width":1,fill:"#D0A6D1"},a[2]={name:"circle",cx:13.328,cy:6.24,r:4.884,"stroke-width":1,fill:t},a[3]={name:"circle",cx:13.277,cy:14.66,r:3.018,"stroke-width":1,fill:"#D0A6D1"}}var s=e.svgRenderer||e.renderer,h=s.createPattern(l,"pattern");return this.loadPattern(e,a,h,s),n.appendChild(h),"url(#"+e.element.id+"_"+o+"_Selection_"+i+")"},e.prototype.loadPattern=function(e,t,i,o){var r;for(r=0;r<t.length;r++){var n=o.createPattern(t[r],t[r].name);i.appendChild(n)}},e.prototype.concatIndexes=function(e,t){return e.concat(t)},e.prototype.checkVisibility=function(e,t){if(void 0===t&&(t=null),!e)return!1;for(var i=!1,o=[],r=0,n=e;r<n.length;r++){s=n[r];-1===o.indexOf(s.series)&&o.push(s.series)}for(var a=0,l=o;a<l.length;a++){var s=l[a];if(null!=t&&t.rangeColorSettings&&t.rangeColorSettings.length>0&&t.rangeColorSettings[0].colors.length>0){if(this.control.series[0].visible){i=!0;break}}else if(this.control.visibleSeries[s].visible){i=!0;break}}return i},e.prototype.addSvgClass=function(e,t){var i=e.getAttribute("class")||"";i+=""!==i?" ":"";var o=e.id.indexOf("datalabel")>-1||e.id.indexOf("Text")>-1||e.id.indexOf("TextShape")>-1;if(-1===i.indexOf(t)){e.setAttribute("class",i+t);var r=this.selectionStyle;if(t&&-1!==t.indexOf("highlight")&&("chart"===this.control.getModuleName()&&this.control.highlightModule?r=this.control.highlightModule.selectionStyle:"accumulationchart"===this.control.getModuleName()&&this.control.accumulationHighlightModule?r=this.control.accumulationHighlightModule.selectionStyle:"chart3d"===this.control.getModuleName()&&this.control.highlight3DModule?r=this.control.highlight3DModule.selectionStyle:"circularchart3d"===this.control.getModuleName()&&this.control.circularChartHighlight3DModule&&(r=this.control.circularChartHighlight3DModule.selectionStyle)),"g"===e.tagName.toLowerCase())e.querySelectorAll("*").forEach(function(e){for(var i=0;i<r.length;i++){var n=r[i],a=n[0],l=e.getAttribute("class")?e.getAttribute("class"):"";a!==t&&-1===a.indexOf(t)||-1!==l.indexOf("selection")||("fill"===n[1]&&n[2]&&!o&&(e.style.fill=n[2]),"opacity"===n[1]&&n[2]&&(e.style.opacity=n[2],e.style.fill=""),"stroke-width"===n[1]&&n[2]&&(e.style.strokeWidth=n[2]))}});else for(var n=0;n<r.length;n++){var a=r[n],l=a[0],s=e.getAttribute("class")?e.getAttribute("class"):"";l!==t&&-1===l.indexOf(t)||-1!==t.indexOf("highlight")&&-1!==s.indexOf("selection")||("fill"===a[1]&&a[2]&&!o&&(e.style.fill=a[2]),"opacity"===a[1]&&a[2]&&(e.style.opacity=a[2],e.style.fill=""),"stroke-width"===a[1]&&a[2]&&-1===e.id.indexOf("legend_shape")&&(e.style.strokeWidth=a[2]))}}},e.prototype.removeSvgClass=function(e,t){var i=e.getAttribute("class")||"";if(i.indexOf(t)>-1){e.setAttribute("class",i.replace(t,"").trim());var o=this.selectionStyle;if(t&&-1!==t.indexOf("highlight")&&("chart"===this.control.getModuleName()&&this.control.highlightModule?o=this.control.highlightModule.selectionStyle:"accumulationchart"===this.control.getModuleName()&&this.control.accumulationHighlightModule?o=this.control.accumulationHighlightModule.selectionStyle:"chart3d"===this.control.getModuleName()&&this.control.highlight3DModule?o=this.control.highlight3DModule.selectionStyle:"circularchart3d"===this.control.getModuleName()&&this.control.circularChartHighlight3DModule&&(o=this.control.circularChartHighlight3DModule.selectionStyle)),"g"===e.tagName.toLowerCase())e.querySelectorAll("*").forEach(function(e){for(var i=0;i<o.length;i++){var r=o[i],n=r[0],a=e.getAttribute("class")?e.getAttribute("class"):"";n!==t&&-1===n.indexOf(t)||-1!==a.indexOf("selection")||("fill"===r[1]&&r[2]&&(e.style.fill=""),"opacity"===r[1]&&r[2]&&(e.style.opacity=""),"stroke-width"===r[1]&&r[2]&&(e.style.strokeWidth=""))}});else for(var r=0;r<o.length;r++){var n=o[r],a=n[0],l=e.getAttribute("class")?e.getAttribute("class"):"";a!==t&&-1===a.indexOf(t)||-1!==t.indexOf("highlight")&&-1!==l.indexOf("selection")||("fill"===n[1]&&n[2]&&(e.style.fill=""),"opacity"===n[1]&&n[2]&&(e.style.opacity=""),"stroke-width"===n[1]&&n[2]&&(e.style.strokeWidth=""))}}},e.prototype.getChildren=function(e){for(var t=[],i=0;i<e.childNodes.length;i++)"defs"!==e.childNodes[i].tagName&&t.push(e.childNodes[i]);return t},e}(),Yn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Zn=function(e){function o(t){var i=e.call(this,t)||this;i.isdrawRect=!0,i.multiDataIndexes=[],i.pathIndex=0,i.seriesIndex=0,i.count=-1,i.dragRectArray=[],i.filterArray=[],i.totalSelectedPoints=[],i.chart=t,i.renderer=t.renderer;var o=t.selectionMode;return i.isMultiDrag=t.isMultiSelect&&o.indexOf("Drag")>-1,i.addEventListener(),i}return Yn(o,e),o.prototype.addEventListener=function(){if(!(this.chart.isDestroyed||this.chart.stockChart&&this.chart.stockChart.onPanning)){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(e,this.mouseLeave,this),this.chart.on("click",this.mouseClick,this),this.chart.on(t.Browser.touchStartEvent,this.mousedown,this),this.chart.on(t.Browser.touchEndEvent,this.mouseLeave,this)}},o.prototype.mousedown=function(e){var t=this.chart;t.isPointMouseDown||"None"===t.selectionMode||t.isChartDrag||(t.isDoubleTap||!t.isTouch||this.rectPoints)&&this.dragStart(t,t.chartAxisLayoutPanel.seriesClipRect,t.mouseDownX,t.mouseDownY,e)},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("pointerleave",this.mouseLeave),this.chart.off("click",this.mouseClick),this.chart.off(t.Browser.touchStartEvent,this.mousedown),this.chart.off(t.Browser.touchEndEvent,this.mouseLeave))},o.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.closeIconId=e.element.id+"_ej2_drag_close",this.draggedRectGroup=e.element.id+"_ej2_drag_group",this.multiRectGroup=e.element.id+"_ej2_drag_multi_group",this.draggedRect=e.element.id+"_ej2_drag_rect",this.lassoPath=e.element.id+"_ej2_drag_path",this.selectedDataIndexes=[],this.rectPoints=null,this.isSeriesMode="Series"===e.selectionMode},o.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,e.selectionMode.indexOf("Drag")>-1||this.selectDataIndex(e,this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes))},o.prototype.generateStyle=function(e){return e?(this.styleId.indexOf("selection")>1&&"None"!==this.chart.selectionMode&&(this.unselected=e.unSelectedStyle||this.unselected),this.styleId.indexOf("highlight")>0&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&(this.unselected=e.nonHighlightStyle||this.unselected),e.selectionStyle||this.styleId+"_series_"+e.index):"undefined"},o.prototype.selectDataIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.performSelection(r,e,this.getElementByIndex(e,r,"",this.series[r.series].marker.visible)[0])}},o.prototype.getElementByIndex=function(e,t,i,o,r){void 0===i&&(i="");var n=e.element.id+"_Series_"+t.series+"_Point_"+t.point,a=e.series[t.series];return n="Scatter"!==a.type&&"Bubble"!==a.type&&o?n+"_Symbol"+i:n,!o&&r?[he(n+"_Text_0"+i),he(n+"_TextShape_0"+i)]:[he(n),"RangeArea"!==a.type&&"SplineRangeArea"!==a.type&&"RangeStepArea"!==a.type||!a.marker.visible?null:he(n+"1")]},o.prototype.getClusterElements=function(e,t){for(var i,o,r=[],n=0,a=e.visibleSeries;n<a.length;n++){var l=a[n];if(l.visible){t=new Pi(l.index,t.point),l.isRectSeries&&r.push(this.getElementByIndex(e,t)[0]),r.push(this.getElementByIndex(e,t,"",l.marker.visible)[0]);var s=document.getElementById(e.element.id+"_Series_"+l.index+"_Point_"+t.point+"_Text_0"),h=document.getElementById(e.element.id+"_Series_"+l.index+"_Point_"+t.point+"_TextShape_0");s&&r.push(s),h&&r.push(h),i=this.generateStyle(e.visibleSeries[t.series]),o=document.querySelectorAll("."+i),this.findTrackballElements(o,i);var c=l.marker.visible&&l.isRectSeries?2:1;c+=s&&h?2:s||h?1:0,!e.isMultiSelect&&o.length>0&&o[0].id!==(r[r.length-c]?r[r.length-c].id:"")&&this.removeSelection(e,t.series,o,i,!0)}}return r},o.prototype.findTrackballElements=function(e,i){for(var o,r,n=0;n<e.length;n++)if(!t.isNullOrUndefined(e[n])&&(o=t.isNullOrUndefined(e[n].parentNode)?[]:[].slice.call(e[0].parentNode.querySelectorAll("."+i))).length>0){r=[];for(var a=0;a<o.length;a++)o[a].id.indexOf("Trackball")>-1&&r.push(o[a]);this.removeStyles(r)}},o.prototype.findElements=function(e,t,i,o,r,n){return void 0===o&&(o=""),this.isSeriesMode?this.getSeriesElements(t):"Cluster"===this.currentMode?this.getClusterElements(e,i):this.getElementByIndex(e,i,o,r,n)},o.prototype.isAlreadySelected=function(e,i){if("click"===i?(this.currentMode=this.chart.selectionMode,this.styleId=this.chart.element.id+(this.chart.selectionModule&&"None"!==this.chart.selectionMode?"_ej2_chart_selection":"_ej2_chart_highlight")):"mousemove"!==i&&"pointermove"!==i||(this.currentMode=this.chart.highlightMode,this.highlightDataIndexes=[],this.styleId=this.chart.element.id+"_ej2_chart_highlight"),"None"!==this.chart.highlightMode&&"None"===this.chart.selectionMode&&"click"===i)return!1;if(("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&this.previousSelectedEle&&this.previousSelectedEle[0]){var o=e.parentNode?e.parentNode.id:"",r=void 0;e.parentNode&&(r=o.indexOf("SeriesGroup")>0||o.indexOf("SymbolGroup")>0);for(var n=0;n<this.previousSelectedEle.length;n++)if(this.previousSelectedEle[n]&&this.previousSelectedEle[n].hasAttribute("class"))if(this.previousSelectedEle[n].getAttribute("class").indexOf("highlight")>-1&&(r||"click"===i)){if(this.previousSelectedEle[n].removeAttribute("class"),this.previousSelectedEle[n].id.indexOf("Group")>0)for(var a=0;a<this.previousSelectedEle[n].children.length;a++)""===this.chart.highlightColor||t.isNullOrUndefined(this.chart.highlightColor)||"None"!==this.chart.highlightPattern||this.previousSelectedEle[n].children[a].setAttribute("fill",this.previousSelectedEle[n].children[a].id.indexOf("Text")>-1||this.previousSelectedEle[n].children[a].id.indexOf("TextShape")>-1?this.previousSelectedEle[n].children[a].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(this.previousSelectedEle[n].id).series].interior),this.previousSelectedEle[n].children[a].removeAttribute("style");else""===this.chart.highlightColor||t.isNullOrUndefined(this.chart.highlightColor)||"None"!==this.chart.highlightPattern||this.previousSelectedEle[n].setAttribute("fill",this.previousSelectedEle[n].id.indexOf("Text")>-1||this.previousSelectedEle[n].id.indexOf("TextShape")>-1?this.previousSelectedEle[n].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(this.previousSelectedEle[n].id).series].interior),this.previousSelectedEle[n].removeAttribute("style");this.addOrRemoveIndex(this.highlightDataIndexes,this.indexFinder(this.previousSelectedEle[n].id))}else!r&&this.previousSelectedEle[n].getAttribute("class").indexOf("highlight")>-1&&this.performSelection(this.indexFinder(this.previousSelectedEle[n].id),this.chart,this.previousSelectedEle[n])}return!0},o.prototype.mouseClick=function(e){this.calculateSelectedElements(e.target,e.type,!0),this.chart.highlightModule&&this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.target.id.indexOf("_chart_legend_")&&this.chart.isTouch&&t.Browser.isDevice&&this.removeLegendHighlightStyles()},o.prototype.calculateSelectedElements=function(e,i,o){if(!t.isNullOrUndefined(e)&&!("None"===this.chart.selectionMode&&"None"===this.chart.highlightMode||e.id&&-1===e.id.indexOf(this.chart.element.id+"_"))){if("mousemove"===i||"pointermove"===i){if(e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;if(!t.isNullOrUndefined(e.parentNode)&&e.parentNode.hasAttribute("class")&&(e.parentNode.getAttribute("class").indexOf("highlight")>0||e.parentNode.getAttribute("class").indexOf("selection")>0))return}if(this.isAlreadySelected(e,i),e.id&&e.id.indexOf("_Series_")>-1&&-1===e.id.indexOf("_Text_")){var r=void 0;if(e.id.indexOf("_Trackball_1")>-1)r=he(e.id.split("_Trackball_")[0]+"_Symbol"),r=t.isNullOrUndefined(r)?he(e.id.split("_Trackball_")[0]):r;else if(e.id.indexOf("_Trackball_0")>-1)return null;this.performSelection(this.indexFinder(e.id),this.chart,r||e,o)}}},o.prototype.performSelection=function(e,t,i,o){if(this.isSeriesMode="Series"===this.currentMode,"BoxAndWhisker"===t.visibleSeries[e.series].type&&i&&i.id===t.element.id+"_Series_"+e.series+"_Point_"+e.point+"_BoxPath"&&(i=i.parentNode),"Area"===t.visibleSeries[e.series].type&&("Point"===this.currentMode||"Cluster"===this.currentMode)&&i&&i.id===this.chart.element.id+"_Series_"+e.series){var r=this.generateStyle(t.series[e.series]),n=document.querySelectorAll("."+r);this.findTrackballElements(n,r),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point)}switch(this.currentMode){case"Series":this.selection(t,e,this.getSeriesElements(t.series[e.series])),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point);break;case"Point":if(!isNaN(e.point)&&i||!o&&isNaN(e.point)){var a=[];a.push(i);var l=this.chart.visibleSeries[e.series],s=t.element.id+"_Series_"+e.series+"_Point_"+e.point,h=document.getElementById(s+"_Text_0");l.marker.dataLabel.visible&&null!==h&&(a.push(h),a.push(document.getElementById(s+"_TextShape_0"))),null===a[0]||!t.series[e.series].marker.visible||-1===t.series[e.series].type.indexOf("Column")&&-1===t.series[e.series].type.indexOf("Bar")||(-1===i.id.indexOf("_Symbol")&&he(i.id+"_Symbol")?a.push(he(i.id+"_Symbol")):-1!==i.id.indexOf("_Symbol")&&he(i.id.replace("_Symbol",""))&&a.push(he(i.id.replace("_Symbol","")))),this.selection(t,e,!o&&isNaN(e.point)?this.getSeriesElements(t.series[e.series]):a),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point)}break;case"Cluster":(!isNaN(e.point)||!o&&isNaN(e.point))&&(!o&&isNaN(e.point)?this.selection(t,e,this.getSeriesElements(t.series[e.series])):this.clusterSelection(t,e),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point))}},o.prototype.selectionComplete=function(e,t,i){var o,r,n,a,l,s=[];if("Cluster"===i){for(var h=0,c=e.visibleSeries;h<c.length;h++)if((u=c[h]).visible)for(p=0;p<this.selectedDataIndexes.length;p++)r=e.isMultiSelect?this.selectedDataIndexes[p].point:t.point,n=u.index,o=u.points,!isNaN(r)&&r<o.length&&(a="RangeArea"!==u.type||u.type.indexOf("SplineRangeArea")>-1||u.type.indexOf("RangeStepArea")>-1?o[r].yValue:o[r].regions[0].y,l=o[r].xValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),"Indicator"!==u.category&&s.push({x:l,y:a,seriesIndex:n,pointIndex:r}),"RangeArea"!==u.type&&"SplineRangeArea"!==u.type&&"RangeStepArea"!==u.type||s.push({x:l,y:o[r].regions[0].y,seriesIndex:n,pointIndex:r}))}else if("Series"===i)if(e.isMultiSelect)for(p=0;p<this.selectedDataIndexes.length;p++)n=this.selectedDataIndexes[p].series,this.selectedDataIndexes.length>0&&s.push({seriesIndex:n});else n=this.selectedDataIndexes.length>0?this.selectedDataIndexes[0].series:this.highlightDataIndexes&&this.highlightDataIndexes.length>0?this.highlightDataIndexes[0].series:0,(this.selectedDataIndexes.length>0||this.highlightDataIndexes&&this.highlightDataIndexes.length>0)&&s.push({seriesIndex:n});else if("Point"===i){var d=[];d=this.styleId.indexOf("highlight")>-1?this.highlightDataIndexes:this.selectedDataIndexes;for(var p=0;p<d.length;p++){r=d[p].point,n=d[p].series;var u=e.series[n];o=u.points,isNaN(r)||(l=o[r].xValue,a="RangeArea"!==u.type||u.type.indexOf("SplineRangeArea")>-1||u.type.indexOf("RangeStepArea")>-1?o[r].yValue:o[r].regions[0].y,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}}var g={name:"selectionComplete",selectedDataValues:s,cancel:!1,chart:e};e.trigger("selectionComplete",g)},o.prototype.selection=function(e,i,o){"Lasso"!==this.currentMode&&(e.isMultiSelect||-1!==this.currentMode.indexOf("Drag")||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,i,e.series));var r=this.rangeColorMappingEnabled()?0:i.series;if(!t.isNullOrUndefined(o[0])){e.visibleSeries[r].isRectSeries&&o[0].id&&(document.getElementById(o[0].id+"_Symbol")?o.push(he(o[0].id+"_Symbol")):-1!==o[0].id.indexOf("SeriesGroup")&&document.getElementById(o[0].id.replace("SeriesGroup","SymbolGroup"))&&o.push(he(o[0].id.replace("SeriesGroup","SymbolGroup"))));var n=void 0,a=o[0]&&(o[0].getAttribute("class")||"");a=a.replace("e-chart-focused","").trim();var l=o[0].parentNode&&(o[0].parentNode.getAttribute("class")||"");""!==a&&"Cluster"!==this.currentMode&&this.findTrackballElements(o,a),o[0]&&a.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles(o):o[0].parentNode&&l.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles([o[0].parentNode]):(this.previousSelectedEle="None"!==e.highlightMode||e.legendSettings.enableHighlight?o:[],this.applyStyles(o),n=!0),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,i,n):this.addOrRemoveIndex(this.selectedDataIndexes,i,n)}},o.prototype.clusterSelection=function(e,t){this.selection(e,t,this.getClusterElements(e,new Pi(t.series,t.point)))},o.prototype.removeMultiSelectElements=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],(this.isSeriesMode&&!this.toEquals(t[n],i,this.isSeriesMode)||"Cluster"===this.currentMode&&!this.toEquals(t[n],i,!1)||!this.isSeriesMode&&this.toEquals(t[n],i,!0)&&!this.toEquals(t[n],i,!1))&&(this.removeStyles(this.findElements(e,r,t[n],"",!1)),r.marker.visible&&this.removeStyles(this.findElements(e,r,t[n],"",!0)),r.marker.dataLabel.visible&&this.removeStyles(this.findElements(e,r,t[n],"",!1,!0)),t.splice(n,1),n--)},o.prototype.blurEffect=function(e,i,o,r){void 0===o&&(o=!1),void 0===r&&(r=0);for(var n=this.checkVisibility(this.highlightDataIndexes,this.chart)||this.checkVisibility(this.selectedDataIndexes,this.chart),a=0,l=i;a<l.length;a++){var s=l[a],h=void 0,c=void 0;this.rangeColorMappingEnabled()?!1===o?(h=Object.keys(s.rangeColorPoints).indexOf(s.points[r].interior),c=s.points[r].interior):(h=r,c=document.getElementById(e+"_chart_legend_shape_"+r).getAttribute("fill")):(h=s.index,c=this.chart.visibleSeries[s.index].interior),s.visible&&(this.checkSelectionElements(he(e+"SeriesGroup"+s.index),this.generateStyle(s),n,o,h,c),s.marker.dataLabel.visible&&!t.isNullOrUndefined(s.shapeElement)&&(this.checkSelectionElements(s.shapeElement,this.generateStyle(s),n,o,h,c),this.checkSelectionElements(s.textElement,this.generateStyle(s),n,o,h,c)),t.isNullOrUndefined(he(e+"SymbolGroup"+s.index))||this.checkSelectionElements(he(e+"SymbolGroup"+s.index),this.generateStyle(s),n,o,h,c))}},o.prototype.checkSelectionElements=function(e,i,o,r,n,a){if(void 0===r&&(r=!0),void 0===n&&(n=0),void 0===a&&(a="#D3D3D3"),e){var l=this.isSeriesMode?e.childNodes||[e]:e.childNodes||e;"None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(l=e.childNodes||e),"Cluster"===this.chart.selectionMode&&"text"===e.tagName.toLowerCase()&&e.id.indexOf("_Text_")>=0&&(l=[e]);for(var s=void 0,h=void 0,c=void 0,d=e,p=this.chart.visibleSeries[this.rangeColorMappingEnabled()?0:n].marker.dataLabel.visible&&(e.id.indexOf("Text")>-1||e.id.indexOf("TextShape")>-1)&&"g"!==e.tagName,u=0;u<l.length&&!p;u++)s=l[u].getAttribute("class")||"",h=l[u].parentNode.getAttribute("class")||"","None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(i=s.indexOf("selection")>0||s.indexOf("highlight")>0?s:i,i=h.indexOf("selection")>0||h.indexOf("highlight")>0?h:i),-1===s.indexOf(i)&&-1===h.indexOf(i)&&o?this.addSvgClass(l[u],this.unselected):(d=l[u],this.removeSvgClass(l[u],this.unselected),this.removeSvgClass(l[u].parentNode,this.unselected),""!==l[u].id&&-1!==s.indexOf(this.unselected)&&-1===h.indexOf(i)&&this.highlightAnimation(l[u],1===this.chart.series.length?0:this.indexFinder(l[u].id).series,700,.3)),l[u].id.indexOf("Trackball")>0&&d.classList[0]===i&&(this.removeSvgClass(l[u],this.unselected),this.removeSvgClass(l[u].parentNode,this.unselected),this.addSvgClass(l[u],i));if(e.id.indexOf("Symbol")>-1&&e.querySelectorAll("."+i)[0]&&e.querySelectorAll("."+i)[0].getAttribute("class")===i){var g=he(this.control.element.id+"_Series_"+e.id[e.id.length-1]);(g&&g.hasAttribute("class")?g.getAttribute("class"):"").indexOf(this.unselected)>-1&&this.removeSvgClass(g,this.unselected)}if(this.control.legendModule&&this.control.legendSettings.visible&&this.control.legendSettings.visible&&(!r||!this.rangeColorMappingEnabled||e!==this.control.visibleSeries[0].textElement&&e!==this.control.visibleSeries[0].shapeElement)&&(c=he(this.control.element.id+"_chart_legend_shape_"+n))){c.hasAttribute("class")&&(this.removeSvgClass(c,c.getAttribute("class")),t.isNullOrUndefined(this.chart.highlightColor&&""!==this.chart.highlightColor)||this.chart.legendSettings.enableHighlight||(c.setAttribute("stroke",a),"None"===this.chart.highlightPattern&&c.setAttribute("fill",a))),s=d.getAttribute("class")||"",h=d.parentNode.getAttribute("class")||"",-1===s.indexOf(i)&&-1===h.indexOf(i)&&o?(this.addSvgClass(c,"None"!==this.chart.highlightMode||!this.chart.legendSettings.enableHighlight||this.chart.selectionModule&&0!==this.chart.selectionModule.selectedDataIndexes.length?this.unselected:i),this.removeSvgClass(c,i),""===this.chart.highlightColor||t.isNullOrUndefined(this.chart.highlightColor)||(c.setAttribute("stroke",this.control.visibleSeries[n].interior),"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.control.visibleSeries[n].interior))):(this.removeSvgClass(c,this.unselected),t.isNullOrUndefined(this.chart.highlightColor)||""===this.chart.highlightColor||(c.setAttribute("stroke",this.control.visibleSeries[n].interior),"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.control.visibleSeries[n].interior)),""===s&&""===h||"EJ2-Trackball"===s.trim()?this.removeSvgClass(c,i):(this.addSvgClass(c,i),i.indexOf("highlight")>0&&""!==this.chart.highlightColor&&"transparent"!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&(c.setAttribute("stroke",this.chart.highlightColor),this.styleId.indexOf("highlight")>0&&"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.chart.highlightColor))));var m=void 0;if(this.rangeColorMappingEnabled())for(u=0;u<this.chart.rangeColorSettings.length;u++)c!==(m=document.getElementById(this.chart.element.id+"_chart_legend_shape_"+u))?(this.addSvgClass(m,this.unselected),this.removeSvgClass(m,i)):!0===r&&this.addSvgClass(m,i),-1===s.indexOf(i)&&!1===r&&this.removeSvgClass(m,this.unselected);r&&h.indexOf(i)>-1&&this.addSvgClass(c,i)}}},o.prototype.applyStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r){if(this.removeSvgClass(r.parentNode,this.unselected),this.removeSvgClass(r,this.unselected),"fill"===this.chart.series[0].pointColorMapping||this.rangeColorMappingEnabled()){var n=this.getSelectionClass(r.id),a=n.indexOf("highlight")>-1?parseInt(n.split(this.chart.element.id+"_ej2_chart_highlight_series_")[1],10):parseInt(n.split(this.chart.element.id+"_ej2_chart_selection_series_")[1],10),l=this.styleId.indexOf("highlight")>0?this.chart.highlightPattern:this.chart.selectionPattern,s=void 0;if((n.indexOf("highlight")>-1||n.indexOf("selection")>-1)&&(s=document.getElementById(this.chart.element.id+"_"+l+"_Selection_"+a)),-1===r.id.indexOf("legend")&&-1===r.id.indexOf("Text")&&-1===r.id.indexOf("TextShape")&&-1===r.id.indexOf("Group")&&null!=s)for(c=1;c<s.children.length;c++)s.children[c].setAttribute("fill",r.getAttribute("fill")),s.children[c].setAttribute("stroke",r.getAttribute("fill"))}if(this.addSvgClass(r,this.getSelectionClass(r.id)),r.id.indexOf("Group")>0)for(var h=this.indexFinder(r.id),c=0;c<r.children.length;c++)"defs"!==r.children[c].nodeName&&this.stopElementAnimation(r.children[c],h.series);if(this.styleId.indexOf("highlight")>0&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&"None"===this.chart.highlightPattern&&"transparent"!==this.chart.highlightColor)if(r.id.indexOf("Group")>0)for(c=0;c<r.children.length;c++)r.children[c].setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.children[c].getAttribute("fill"):this.chart.highlightColor);else r.setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.getAttribute("fill"):this.chart.highlightColor)}}},o.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.visibleSeries[this.indexFinder(e).series])},o.prototype.removeStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r&&(this.removeSvgClass(r,this.getSelectionClass(r.id)),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor))if(r.id.indexOf("Group")>0)for(var n=0;n<r.children.length;n++)r.children[n].setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.children[n].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(r.id).series].interior);else r.setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.getAttribute("fill"):this.control.visibleSeries[this.indexFinder(r.id).series].interior)}},o.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.toEquals(e[o],t,this.isSeriesMode)&&(e.splice(o,1),o--);i&&e.push(t)},o.prototype.toEquals=function(e,t,i){return(e.series===t.series||"Cluster"===this.currentMode&&!i)&&(i||e.point===t.point)},o.prototype.redrawSelection=function(e,i,o){this.isSeriesMode="Series"===i,t.isNullOrUndefined(i)||(-1!==i.indexOf("Drag")||"Lasso"===i||o?e.isRedrawSelection=!1:e.isRedrawSelection=!0);var r=t.extend([],this.selectedDataIndexes,null,!0),n=t.extend([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&n.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes,e.series),r=n):this.removeSelectedElements(e,this.selectedDataIndexes,e.series),this.blurEffect(e.element.id,e.visibleSeries,!1),this.selectDataIndex(e,r)},o.prototype.legendSelection=function(e,i,o,r){if("mousemove"===r){if(o.id.indexOf("text")>1&&(o=he(o.id.replace("text","shape"))),o.id.indexOf("marker")>1&&(o=he(o.id.replace("_marker",""))),o.id.indexOf("g")>1&&(o=he(o.id.replace("_g_","_shape_"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.chart.highlightMode}if(this.isAlreadySelected(o,r)){var n=this.generateStyle(e.visibleSeries[i]),a=document.querySelectorAll("."+n);this.isSeriesMode="Series"===this.currentMode;if(a.length>0)this.removeSelection(e,i,a,n,!0);else{for(var l=0,s=e.visibleSeries;l<s.length;l++)(v=s[l]).index===i||e.isMultiSelect||(n=this.generateStyle(e.visibleSeries[v.index]),a=document.querySelectorAll("."+n),this.removeSelection(e,i,a,n,!0));var h=[];if(this.rangeColorMappingEnabled()){for(var c=0,d=e.visibleSeries[0].seriesElement.children;c<d.length;c++){var p=d[c];if(o.getAttribute("fill")===p.getAttribute("fill")){if(e.visibleSeries[0].marker.dataLabel.visible){var u=this.indexFinder(p.id).point;if(!isNaN(u)&&u>=0){var g=document.getElementById(this.chart.element.id+"_Series_0_Point_"+u+"_Text_0"),m=document.getElementById(this.chart.element.id+"_Series_0_Point_"+u+"_TextShape_0");g&&h.push(g),m&&h.push(m)}}h.push(p)}}for(var y=0,f=h;y<f.length;y++){var v=f[y];if(t.isNullOrUndefined(v))return;this.checkSelectionElements(v,n,!1,!0,i)}}else if(e.visibleSeries[i].visible)for(var b=0,x=h=this.getSeriesElements(e.visibleSeries[i]);b<x.length;b++){var S=x[b];if(t.isNullOrUndefined(S))return;this.checkSelectionElements(S,n,!1,!0,i)}this.isSeriesMode=!0,this.selection(e,new Pi(i,NaN),h),this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries,!0,i)}}},o.prototype.rangeColorMappingEnabled=function(){return!(!(this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&1===this.chart.visibleSeries.length&&this.chart.rangeColorSettings[0].colors.length>0)||"Column"!==this.chart.series[0].type&&"Bar"!==this.chart.series[0].type&&"Scatter"!==this.chart.series[0].type&&"Bubble"!==this.chart.series[0].type)},o.prototype.removeSelection=function(e,t,i,o,r){if(i.length>0){for(var n=[],a=0;a<i.length;a++)n.push(i[a]);this.removeStyles(n),this.isSeriesMode=!0,this.addOrRemoveIndex(this.selectedDataIndexes,new Pi(t,NaN));for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];if(o=this.generateStyle(h),document.querySelectorAll("."+o).length>0){for(var c=0,d=n;c<d.length;c++){var p=d[c];this.checkSelectionElements(p,o,!0,!0,t)}r=!1;break}}r&&(this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}},o.prototype.getSeriesElements=function(e){var t=[e.seriesElement];return e.marker.visible&&"Scatter"!==e.type&&"Bubble"!==e.type&&!e.isRectSeries?t.push(e.symbolElement):e.marker.visible&&e.isRectSeries&&t.push(e.symbolElement),e.marker.dataLabel.visible&&(t.push(e.textElement),t.push(e.shapeElement)),t},o.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("SeriesGroup")>-1?(t=e.split("SeriesGroup"))[0]=t[1]:e.indexOf("SymbolGroup")>-1?(t=e.split("SymbolGroup"))[0]=t[1]:e.indexOf("_Point_")>-1?t=e.split("_Series_")[1].split("_Point_"):e.indexOf("_border_")>-1?t[0]=e.split("_border_")[1]:e.indexOf("_Series_")>-1?t[0]=e.split("_Series_")[1]:e.indexOf("_chart_legend_shape_")>-1?(t=e.split("_chart_legend_shape_"))[0]=t[1]:e.indexOf("TextGroup")>-1?(t=e.split("TextGroup"))[0]=t[1]:e.indexOf("ShapeGroup")>-1&&((t=e.split("ShapeGroup"))[0]=t[1]),new Pi(parseInt(t[0],10),parseInt(t[1],10))},o.prototype.calculateDragSelectedElements=function(e,t,o){this.removeSelectedElements(e,this.selectedDataIndexes,e.series);var r="Lasso"===e.selectionMode,n=new i.Rect(t.x,t.y,t.width,t.height),a=new mo(e.chartAxisLayoutPanel.seriesClipRect.x,e.chartAxisLayoutPanel.seriesClipRect.y);this.removeOffset(n,a);var l,s,h=[],c=[];this.isSeriesMode=!1;var d=e.allowMultiSelection&&(this.rectGrabbing||this.resizing);if(this.rectPoints=this.dragRectArray[d?this.targetIndex:this.count]=new i.Rect(t.x,t.y,t.width,t.height),t.width&&t.height&&!o){var p=new i.Rect(t.x,t.y,t.width,t.height);this.removeOffset(p,a),this.filterArray[d?this.targetIndex:this.count]=p}for(var u=this,g=0,m=e.visibleSeries;g<m.length;g++)!function(t){if(t.visible){l=t.points,h=[];var i,o;!e.isTransposed&&-1===t.type.indexOf("Bar")||e.isTransposed&&-1!==t.type.indexOf("Bar")?(i=t.xAxis.rect.x-a.x,o=t.yAxis.rect.y-a.y):(i=t.xAxis.rect.y-a.y,o=t.yAxis.rect.x-a.x);for(var r=0;r<l.length;r++){var d="RangeArea"!==t.type||t.type.indexOf("SplineRangeArea")>-1||t.type.indexOf("RangeStepArea")>-1?l[r].yValue:l[r].regions[0].y,p=void 0,g=l[r].xValue;"Category"===e.primaryXAxis.valueType?g=l[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(g=new Date(l[r].xValue)),(p="BoxAndWhisker"===t.type?l[r].regions.some(function(e){return V(e.x+i,e.y+o,n)}):"Lasso"===e.selectionMode?l[r].isSelect:e.allowMultiSelection?u.isPointSelect(l[r],i,o,u.filterArray):l[r].symbolLocations.some(function(e){return e&&V(e.x+i,e.y+o,n)}))&&"Indicator"!==t.category&&(s=new Pi(t.index,l[r].index),u.selection(e,s,u.findElements(e,t,s,"",!t.isRectSeries&&t.marker.visible)),h.push({x:g,y:d})),!p||"RangeArea"!==t.type&&"SplineRangeArea"!==t.type&&"RangeStepArea"!==t.type||h.push({x:g,y:l[r].regions[0].y})}c.push(h)}}(m[g]);this.blurEffect(e.element.id,e.visibleSeries);var y=r?e.mouseDownX:t.x+t.width,f=r?e.mouseDownY:t.y;o||this.createCloseButton(y,f);var v={name:"dragComplete",selectedDataValues:c,cancel:!1};e.trigger("dragComplete",v)},o.prototype.removeOffset=function(e,t){e.x-=t.x,e.y-=t.y},o.prototype.isPointSelect=function(e,t,i,o){for(var r=e.symbolLocations[0],n=0,a=o;n<a.length;n++){var l=a[n];if(l&&r&&V(r.x+t,r.y+i,l))return!0}return!1},o.prototype.drawDraggingRect=function(e,o){var r=e.chartAxisLayoutPanel.seriesClipRect,n=e.chartArea.border.width,a=e.themeStyle.selectionRectFill,l=e.themeStyle.selectionRectStroke,s="Lasso"===e.selectionMode;switch(this.isdrawRect&&(r.x=r.x-n/2,r.y=r.y-n/2,r.width=r.width+n,r.height=r.height+n,this.isdrawRect=!1),e.selectionMode){case"DragX":o.y=r.y,o.height=r.height;break;case"DragY":o.x=r.x,o.width=r.width}if((o.width<5||o.height<5)&&!s)return null;var h=e.selectionMode.indexOf("Drag")>-1||"Lasso"===e.selectionMode;if(e.allowMultiSelection&&h){var c=void 0,d=void 0,p=he(this.multiRectGroup);if(p||(p=e.svgRenderer.createGroup({id:this.multiRectGroup}),e.svgObject.appendChild(p)),this.rectGrabbing||this.resizing){var u=he(this.draggedRect+this.targetIndex);u.nextSibling&&t.remove(u.nextSibling),this.setAttributes(u,o)}else if(!he(this.draggedRectGroup+this.count)){d=e.svgRenderer.createGroup({id:this.draggedRectGroup+this.count});m=document.getElementById(e.element.id+"_series_svg");e.enableCanvas?m.appendChild(d):p.appendChild(d)}"Lasso"!==e.selectionMode?(c=e.svgRenderer.drawRectangle(new co(this.draggedRect+this.count,a,{color:l,width:1},1,o,0,0,"",e.theme.indexOf("Fluent2")<1?"3":""))).style.cursor="move":c=e.svgRenderer.drawPath(new i.PathOption(this.lassoPath+this.count,a,3,l,1,"",this.path)),d||this.rectGrabbing||this.resizing?this.rectGrabbing||this.resizing||d.appendChild(c):he(this.draggedRectGroup+this.count).appendChild(c)}else{c=he(s?this.lassoPath:this.draggedRect);if(this.closeIcon&&g(this.closeIconId),c)s?c.setAttribute("d",this.path):this.setAttributes(c,o);else{var d=e.svgRenderer.createGroup({id:this.draggedRectGroup}),m=document.getElementById(e.element.id+"_series_svg");e.enableCanvas?m.appendChild(d):e.svgObject.appendChild(d),c="Lasso"!==e.selectionMode?e.svgRenderer.drawRectangle(new co(this.draggedRect,a,{color:l,width:1},1,o,0,0,"",e.theme.indexOf("Fluent2")<1?"3":"")):e.svgRenderer.drawPath(new i.PathOption(this.lassoPath,a,3,l,1,"",this.path)),d.appendChild(c)}}},o.prototype.getIndex=function(e){var t;for(t=e.length-1;t>0;t--){var i=Number(e[t]);if(isNaN(i))break}return+e.substr(t+1,e.length-1)},o.prototype.createCloseButton=function(e,t){var i=this.chart.allowMultiSelection,o=this.chart.themeStyle.selectionCircleStroke,r=this.rectGrabbing||this.resizing,n=this.chart.svgRenderer.createGroup({id:this.closeIconId+(i?r?this.targetIndex:this.count:""),style:"cursor:pointer; visibility: visible;"});n.appendChild(this.chart.svgRenderer.drawCircle(new uo(this.closeIconId+"_circle"+(i?r?this.targetIndex:this.count:""),"#FFFFFF",{color:o,width:1},1,e,t,10)));var a="M "+(e-4)+" "+(t-4)+" L "+(e+4)+" "+(t+4)+" M "+(e-4)+" "+(t+4)+" L "+(e+4)+" "+(t-4);n.appendChild(this.chart.svgRenderer.drawPath({id:this.closeIconId+"_cross"+(i?r?this.targetIndex:this.count:""),d:a,stroke:o,"stroke-width":2,fill:o})),this.closeIcon=n;var l=he(this.draggedRectGroup+(i?r?this.targetIndex:this.count:""));l&&l.appendChild(n)},o.prototype.removeDraggedElements=function(e,o,r){if(o.id&&o.id.indexOf(this.closeIconId)>-1&&-1===r.indexOf("move")){var n=!0;if(e.allowMultiSelection){var a=this.getIndex(o.id),l=he(this.multiRectGroup);if(t.remove(he(this.draggedRectGroup+a)),this.dragRectArray[a]=null,this.filterArray[a]=null,this.totalSelectedPoints[a]=null,l&&0===l.childElementCount&&(g(l),this.dragRectArray=[],this.filterArray=[],this.totalSelectedPoints=[]),"Lasso"===this.currentMode){if(null!=this.multiDataIndexes[a])for(c=0;c<this.multiDataIndexes[a].length;c++)this.multiDataIndexes[a][c].isSelect=!1;this.multiDataIndexes[a]=null;for(var s=0;s<this.multiDataIndexes.length;s++)if(null!=this.multiDataIndexes[s]){n=!1;for(var h=0;h<this.multiDataIndexes[s].length;h++)this.multiDataIndexes[s][h].isSelect=!0}this.calculateDragSelectedElements(e,this.dragRect,!0)}else if(this.filterArray.length)for(var c=0;c<this.filterArray.length;c++)this.filterArray[c]&&(n=!1,this.calculateDragSelectedElements(e,this.filterArray[c],!0));else this.calculateDragSelectedElements(e,new i.Rect(0,0,0,0),!0)}else t.remove(he(this.draggedRectGroup)),this.removeSelectedElements(e,this.selectedDataIndexes,e.series);this.blurEffect(e.element.id,e.visibleSeries),this.changeCursorStyle(!1,e.svgObject,"auto"),e.allowMultiSelection&&!n||(this.rectPoints=null)}},o.prototype.resizingSelectionRect=function(e,t,o,r){var n;if(e.allowMultiSelection&&r.id.indexOf("_ej2_drag_rect")>-1||this.dragRectArray[this.targetIndex]){r.id.indexOf("_ej2_drag_rect")>-1&&(this.targetIndex=this.getIndex(r.id));var a=this.dragRectArray[this.targetIndex];n=new i.Rect(a.x,a.y,a.width,a.height)}if(e.allowMultiSelection||(n=new i.Rect(this.rectPoints.x,this.rectPoints.y,this.rectPoints.width,this.rectPoints.height)),n){var l=this.findResizeMode(e.svgObject,n,t);this.resizing&&(n=xe(n.x,n.y,n.x+n.width,n.y+n.height,e.chartAxisLayoutPanel.seriesClipRect),this.drawDraggingRect(e,n),this.dragRect=n),o&&(this.resizing=l)}},o.prototype.findResizeMode=function(e,t,o){var r="se-resize",n=!1;if(this.resizing){var a=t.x,l=t.y,s=o.x-a,h=o.y-l;switch(this.resizeMode){case 0:h=Math.abs(t.height+t.y-o.y),t.y=Math.min(t.height+t.y,o.y),t.height=h;break;case 1:s=Math.abs(t.width+t.x-o.x),t.x=Math.min(t.width+t.x,o.x),t.width=s;break;case 2:t.height=Math.abs(h),t.y=Math.min(o.y,l);break;case 3:t.width=Math.abs(s),t.x=Math.min(o.x,a);break;case 4:t.width=Math.abs(s),t.height=Math.abs(h),t.x=Math.min(o.x,a),t.y=Math.min(o.y,l)}}else for(var c=[new i.Rect(t.x,t.y,t.width-5,5),new i.Rect(t.x,t.y,5,t.height),new i.Rect(t.x,t.y+t.height-5,t.width-5,5),new i.Rect(t.x+t.width-5,t.y+5,5,t.height-15),new i.Rect(t.x+t.width-10,t.y+t.height-10,10,10)],d=0;d<c.length;d++)if(V(o.x,o.y,c[d])){r=4===d?r:d%2==0?"ns-resize":"ew-resize",n=!0,this.resizeMode=d;break}return"Lasso"!==this.currentMode&&this.changeCursorStyle(n,he(this.chart.allowMultiSelection?this.draggedRect+this.targetIndex:this.draggedRect),r),this.changeCursorStyle(n,e,r),n},o.prototype.changeCursorStyle=function(e,t,i){i=e?i:this.control.svgObject===t?"auto":"move",t&&(t.style.cursor=i)},o.prototype.removeSelectedElements=function(e,t,i){t=e.isRedrawSelection?t:t.splice(0,t.length);for(var o,r=0,n=i;r<n.length;r++){var a=n[r];if(a.visible){o=this.getSeriesElements(a),this.removeStyles(o);for(var l=0,s=o;l<s.length;l++){var h=s[l];this.removeStyles(this.getChildren(h))}}}},o.prototype.setAttributes=function(e,t){for(var i=0,o=Object.keys(t);i<o.length;i++){var r=o[i];e.setAttribute(r,t[r])}},o.prototype.draggedRectMoved=function(e,t,o){var r;if((this.resizing||this.rectGrabbing)&&e.allowMultiSelection){var n=this.dragRectArray[this.targetIndex];r=new i.Rect(n.x,n.y,n.width,n.height)}else r=new i.Rect(this.rectPoints.x,this.rectPoints.y,this.rectPoints.width,this.rectPoints.height);r.x-=t.x-e.mouseX,r.y-=t.y-e.mouseY,r=xe(r.x,r.y,r.x+r.width,r.height+r.y,e.chartAxisLayoutPanel.seriesClipRect),o?this.drawDraggingRect(e,r):this.calculateDragSelectedElements(e,r)},o.prototype.mouseLeave=function(e){this.completeSelection(e.target,e.type)},o.prototype.completeSelection=function(e,t){var i=this.chart;"None"!==i.selectionMode&&(this.currentMode=i.selectionMode,(this.dragging||this.resizing)&&this.dragRect.width>5&&this.dragRect.height>5?this.calculateDragSelectedElements(i,this.dragRect):!i.allowMultiSelection&&this.rectGrabbing&&this.rectPoints.width&&this.rectPoints.height?this.draggedRectMoved(i,this.dragRect):this.rectGrabbing&&this.dragRectArray[this.targetIndex].width&&this.dragRectArray[this.targetIndex].height&&this.draggedRectMoved(i,this.dragRect),"Lasso"===i.selectionMode&&this.dragging&&this.path&&-1!==this.path.indexOf("L")&&(i.allowMultiSelection?he(this.lassoPath+this.count)&&(he(this.lassoPath+this.count).setAttribute("d",this.path+"Z"),this.pointChecking(he(this.lassoPath+this.count))):(he(this.lassoPath).setAttribute("d",this.path+"Z"),this.pointChecking(he(this.lassoPath))),(this.dragging||this.resizing)&&this.calculateDragSelectedElements(i,this.dragRect)),this.dragging=!1,this.rectGrabbing=!1,this.resizing=!1,this.removeDraggedElements(i,e,t))},o.prototype.getDragRect=function(e,t){return xe(e.mouseDownX,e.mouseDownY,e.mouseX,e.mouseY,t)},o.prototype.dragStart=function(e,t,o,r,n){var a=e.selectionMode;this.currentMode=e.selectionMode,this.dragging=(a.indexOf("Drag")>-1||"Lasso"===a)&&(e.isDoubleTap||!e.isTouch)&&"PolarRadar"!==e.chartAreaType;var l=n.target;if(this.path=void 0,this.dragging&&(this.count=he(this.multiRectGroup)?this.count+1:0,this.dragRect=new i.Rect(e.mouseDownX,e.mouseDownY,0,0),(e.mouseDownX<t.x||e.mouseDownX>t.x+t.width||e.mouseDownY<t.y||e.mouseDownY>t.y+t.height)&&(this.dragging=!1)),"Lasso"===a)for(var s=0,h=e.visibleSeries;s<h.length;s++){var c=h[s];if(c.visible)for(var d=0,p=c.points;d<p.length;d++){var u=p[d];e.allowMultiSelection||(u.isSelect=!1)}}if("Lasso"!==a&&(this.rectPoints&&!e.allowMultiSelection&&(this.dragRect=new i.Rect(e.mouseDownX,e.mouseDownY,0,0),this.resizingSelectionRect(e,new mo(o,r),!0),this.rectGrabbing=V(o,r,this.rectPoints)),e.allowMultiSelection)){var g=this.getIndex(l.id);this.targetIndex=this.isDragRect(l.id)?g:void 0,this.dragRectArray.length&&this.isDragRect(l.id)&&(this.resizingSelectionRect(e,new mo(o,r),!0,l),this.rectGrabbing=V(o,r,this.dragRectArray[g]))}},o.prototype.isDragRect=function(e){return e.indexOf("_ej2_drag_rect")>-1},o.prototype.mouseMove=function(e){var i=this.chart,o=e.target,r=e.type;this.highlightChart(o,r),"None"!==i.selectionMode&&("touchmove"===r&&(t.Browser.isIos||t.Browser.isIos7)&&this.dragging&&e.preventDefault&&e.preventDefault(),this.selectionAndDrag(i,o,r))},o.prototype.highlightChart=function(e,i){if("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight){if(!t.isNullOrUndefined(e)){if(e.id.indexOf("_legend_text")>1&&(e=he(e.id.replace("text","shape"))),e.id.indexOf("marker")>1&&(e=he(e.id.replace("_marker",""))),e.id.indexOf("g")>1&&(e=he(e.id.replace("_g_","_shape_"))),e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;this.calculateSelectedElements(e,i),this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_g_")&&-1===e.id.indexOf("chart_legend_shape")&&-1===e.id.indexOf("_Series_")?this.removeLegendHighlightStyles():this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_")&&e.id.indexOf("_Series_")>-1&&this.chart.tooltip&&this.chart.tooltip.enableHighlight&&"None"===this.chart.highlightMode&&this.removeLegendHighlightStyles(!0)}}else;},o.prototype.selectionAndDrag=function(e,t,i){V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&!this.chart.enableCanvas?(this.rectGrabbing&&!this.resizing?this.draggedRectMoved(e,this.dragRect,!0):this.dragging&&!this.resizing&&("Lasso"===e.selectionMode?(this.getPath(e.mouseDownX,e.mouseDownY,e.mouseX,e.mouseY),this.drawDraggingRect(e,this.dragRect)):(this.dragRect=this.getDragRect(e,e.chartAxisLayoutPanel.seriesClipRect),this.drawDraggingRect(e,this.dragRect))),this.rectPoints&&!e.allowMultiSelection?this.resizingSelectionRect(e,new mo(e.mouseX,e.mouseY),null,t):(e.allowMultiSelection&&!this.dragging||this.resizing)&&this.resizingSelectionRect(e,new mo(e.mouseX,e.mouseY),null,t)):this.completeSelection(t,i)},o.prototype.removeLegendHighlightStyles=function(e){this.chart.highlightModule.highlightDataIndexes=[];for(var t,i=0;i<this.chart.visibleSeries.length;i++)if(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i])),0===this.selectedDataIndexes.length){for(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));t.length>0;)if((n=t[0])&&(this.removeSvgClass(n,n.getAttribute("class")),n.id.indexOf("Group")>0&&!this.chart.visibleSeries[i].isRectSeries))for(var o=this.indexFinder(n.id),r=0;r<n.children.length;r++)"defs"!==n.children[r].nodeName&&this.highlightAnimation(n.children[r],o.series,e?0:700,.3,!e);for(t=document.getElementsByClassName(this.unselected);t.length>0;)(n=t[0])&&(this.removeSvgClass(n,n.getAttribute("class")),""!==n.id&&this.highlightAnimation(n,1===this.chart.series.length?0:this.indexFinder(n.id).series,e?0:700,.3))}else for(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));t.length>0;){var n=t[0];n&&(this.removeSvgClass(n,n.getAttribute("class")),this.addSvgClass(n,this.unselected))}},o.prototype.getPath=function(e,t,i,o){this.dragging&&(this.path?this.path=this.path+" L"+i+" "+o:this.path="M "+e+" "+t)},o.prototype.highlightAnimation=function(e,i,o,r,n){var a,l,s=this,h=parseFloat(this.chart.visibleSeries[i].width.toString())+1;n?l=-1!==e.id.indexOf("border")&&this.chart.visibleSeries[i].border.width?parseFloat(this.chart.visibleSeries[i].border.width.toString()):-1!==e.id.indexOf("Symbol")&&this.chart.visibleSeries[i].marker.border.width?parseFloat(this.chart.visibleSeries[i].marker.border.width.toString()):parseFloat(this.chart.visibleSeries[i].width.toString()):(a=-1!==e.id.indexOf("border")?1:-1!==e.id.indexOf("Symbol")?parseFloat(this.chart.visibleSeries[i].marker.opacity.toString()):-1!==e.id.indexOf("legend_shape")?parseFloat(this.chart.legendSettings.opacity.toString()):parseFloat(this.chart.visibleSeries[i].opacity.toString()),t.isNullOrUndefined(this.chart.selectionModule)&&"None"===this.chart.selectionMode&&""!==this.chart.highlightColor&&(r=1)),(a||n&&l&&h)&&new t.Animation({}).animate(e,{duration:o,progress:function(t){if(e.style.animation="",!s.chart.tooltip.enableHighlight||!s.chart.tooltipModule.svgTooltip){var i=t.timeStamp/t.duration;if(n){var o=h+(l-h)*i;e.setAttribute("stroke-width",o.toString())}else{var c=r+(a-r)*i;e.setAttribute("opacity",c.toString())}}},end:function(){s.chart.tooltip.enableHighlight&&s.chart.tooltipModule.svgTooltip||(n?e.setAttribute("stroke-width",l.toString()):e.setAttribute("opacity",a.toString()))}})},o.prototype.stopElementAnimation=function(e,i){var o;o=-1!==e.id.indexOf("border")?1:-1!==e.id.indexOf("Symbol")?parseFloat(this.chart.visibleSeries[i].marker.opacity.toString()):parseFloat(this.chart.visibleSeries[i].opacity.toString()),e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",o.toString())},o.prototype.pointChecking=function(e){var t,i=this,o=this.chart,r=he(o.svgId).getBoundingClientRect(),n=o.chartAxisLayoutPanel.seriesClipRect.x+Math.max(r.left,0),a=o.chartAxisLayoutPanel.seriesClipRect.y+Math.max(r.top,0);this.multiDataIndexes[this.count]=[];for(var l=0,s=o.visibleSeries;l<s.length;l++)s[l].points.filter(function(r){r.symbolLocations&&r.symbolLocations.length&&(t=document.elementFromPoint(r.symbolLocations[0].x+n,r.symbolLocations[0].y+a)),t===e?(r.isSelect=!0,i.chart.allowMultiSelection&&"Lasso"===i.currentMode&&(i.multiDataIndexes[i.count][i.seriesIndex]=r,i.seriesIndex++)):o.allowMultiSelection||(r.isSelect=!1)});this.seriesIndex=0},o.prototype.getModuleName=function(){return"Selection"},o.prototype.destroy=function(){this.removeEventListener()},o}(Gn),qn=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Qn=function(e){function o(t){var i=e.call(this,t)||this;return i.element=i.chart.element,i.textStyle=t.tooltip.textStyle,i.control=t,i.template=t.tooltip.template,i}return qn(o,e),o.prototype.getElement=function(e){return document.getElementById(e)},o.prototype.getTooltipElement=function(e){this.inverted=this.chart.requireInvertedAxis,this.header=null===this.control.tooltip.header?this.control.tooltip.shared?"${point.x}":"${series.name}":this.control.tooltip.header,this.formattedText=[];var t=document.getElementById(this.chart.element.id+"_tooltip"),i=this.chart.element.id.indexOf("stockChart")>-1;return!e&&!t||i?this.createElement():null},o.prototype.createElement=function(){var e=document.createElement("div");return e.id=this.element.id+"_tooltip",e.className="ejSVGTooltip",e.style.pointerEvents="none",e.style.position="absolute",e.style.zIndex="1",e},o.prototype.pushData=function(e,t,i,o,r){return!!e.series.enableTooltip&&(this.currentPoints.push(e),this.stopAnimation(),i&&!document.getElementById(i.id)&&(this.chart.stockChart?document.getElementById(this.chart.stockChart.element.id+"_Secondary_Element").appendChild(i):document.getElementById(this.element.id+"_Secondary_Element").appendChild(i)),!0)},o.prototype.removeHighlight=function(){for(var e,t=0,i=this.previousPoints.length;t<i;t++)((e=this.previousPoints[t]).series.isRectSeries||this.chart.tooltip.enableHighlight)&&e.series.visible&&this.highlightPoint(e.series,e.point.index,!1)},o.prototype.animateHighlight=function(e,i,o,r){var n=this,a=parseFloat(i.getAttribute("opacity")),l=null;null!==r&&(l=parseFloat(i.getAttribute("stroke-width"))),new t.Animation({}).animate(i,{duration:o,progress:function(t){if(i.style.animation="",!n.svgTooltip){if(null!==r){var o=l+t.timeStamp/t.duration*(r-l);i.setAttribute("stroke-width",Math.max(o,r).toString())}var s=a+t.timeStamp/t.duration*(e-a);i.setAttribute("opacity",Math.min(s,e).toString())}},end:function(){n.svgTooltip||(null!==r&&i.setAttribute("stroke-width",r.toString()),i.setAttribute("opacity",e.toString()))}})},o.prototype.highlightPoint=function(e,i,o){var r=this,n="BoxAndWhisker"===e.type?this.getElement(this.element.id+"_Series_"+e.index+"_Point_"+i+"_BoxPath"):this.getElement(this.element.id+"_Series_"+e.index+"_Point_"+i),a=this.control.accumulationSelectionModule,l="accumulationchart"===this.chart.getModuleName(),s=!!(a&&a.selectedDataIndexes.length>0);if(n||!e.isRectSeries)if(!s||s&&n.getAttribute("class")&&-1===n.getAttribute("class").indexOf("_ej2_chart_selection_series_")||!e.isRectSeries)if(e.isRectSeries&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor))n.setAttribute("fill",o&&"transparent"!==this.chart.highlightColor?this.chart.highlightColor:""!==e.pointColorMapping?e.points[0].color:e.points[i].color||e.interior);else if("None"!==this.control.highlightMode||!this.chart.tooltip.enableHighlight||this.chart.tooltip.shared&&!l)e.isRectSeries&&n.setAttribute("opacity",(o&&"transparent"!==this.chart.highlightColor?e.opacity/2:e.opacity).toString());else{if(o&&(l?this.control.accumulationSelectionModule&&this.control.accumulationSelectionModule.selectedDataIndexes.length>0:this.chart.selectionModule&&this.chart.selectionModule.selectedDataIndexes.length>0))return;for(var h=this.element.id+"_Series_"+e.index+"_Point_"+i,c=this,d=0,p=this.chart.visibleSeries;d<p.length;d++)!function(t){var n=[],a="number"==typeof t.width?t.width:parseFloat(t.width);if(n=l?[c.getElement(c.chart.element.id+"_Series_"+t.index)]:new Zn(c.chart).getSeriesElements(t),l&&c.control.series[0].dataLabel.visible){var s=c.getElement(c.element.id+"_datalabel_Series_0");s&&n.push(s)}n.forEach(function(n){null!==n&&n.childNodes.forEach(function(s){var c=s.id.indexOf("border")>-1?1:s.id.indexOf("Symbol")>-1?t.marker.opacity:t.opacity,d=s.id.indexOf("border")>-1&&t.border.width?parseFloat(t.border.width.toString()):s.id.indexOf("Symbol")>-1&&t.marker.border.width?parseFloat(t.marker.border.width.toString()):a;o&&"transparent"!==r.chart.highlightColor&&""!==s.id?(l?n.getAttribute("id").indexOf("datalabel")>-1?_(s.id).point===i:s.id===h:n.getAttribute("id")===r.element.id+"DataLabelCollection"?_(s.id).series===e.index:t.index===e.index)?(s.setAttribute("opacity",c.toString()),e.isRectSeries&&!(s.id.indexOf("border")>-1)||l||s.setAttribute("stroke-width",(d+1).toString())):(s.setAttribute("opacity",l?s.id.indexOf("datalabel")>-1?"0.5":"0.3":s.getAttribute("id").indexOf("Text")>-1?"0.5":"0.3"),e.isRectSeries&&!(s.id.indexOf("border")>-1)||l||s.setAttribute("stroke-width",d.toString())):r.currentPoints[0]||""===s.id||r.animateHighlight(c,s,r.chart.tooltip.duration,e.isRectSeries&&!(s.id.indexOf("border")>-1)||l?null:d)})})}(p[d])}else n.setAttribute("opacity",e.opacity.toString())},o.prototype.highlightPoints=function(){for(var e=0,t=this.currentPoints;e<t.length;e++){var i=t[e];(i.series.isRectSeries||this.chart.tooltip.enableHighlight)&&"Series"===i.series.category&&this.highlightPoint(i.series,i.point.index,!0)}},o.prototype.createTooltip=function(e,t,o,r,n,a,l,s,h,c,d,p){void 0===h&&(h=!1),void 0===c&&(c=null),void 0===d&&(d=null);var u=this.currentPoints[0].series,m=e.tooltipModule||e.tooltip3DModule||e.accumulationTooltipModule;if(!m||null===o)return void g(this.chart.element.id+"_tooltip");t?(this.svgTooltip=new i.Tooltip({opacity:e.tooltip.opacity?e.tooltip.opacity:"Material3"===this.chart.theme||"Material3Dark"===this.chart.theme||this.chart.theme.indexOf("Bootstrap5")>-1?1:.75,header:this.headerText,content:this.text,fill:e.tooltip.fill,border:e.tooltip.border,enableAnimation:e.tooltip.enableAnimation,location:o,shared:this.control.tooltip.shared,crosshair:h,shapes:a,markerImage:d&&d.marker&&""!==d.marker.imageUrl?d.marker.imageUrl:"",clipBounds:"PolarRadar"===this.chart.chartAreaType?new mo(0,0):r,areaBounds:s,palette:this.findPalette(),template:p||this.template,data:d,theme:e.theme,offset:l,textStyle:e.tooltip.textStyle,isNegative:u.isRectSeries&&"Waterfall"!==u.type&&n&&n.y<0,inverted:this.chart.requireInvertedAxis&&u.isRectSeries,arrowPadding:this.text.length>1||this.chart.stockChart||null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y?0:7,availableSize:e.availableSize,duration:this.chart.tooltip.duration,isCanvas:this.chart.enableCanvas,isFixed:null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y,isTextWrap:e.tooltip.enableTextWrap&&"chart"===e.getModuleName(),blazorTemplate:{name:"Template",parent:this.chart.tooltip},controlInstance:this.chart,enableRTL:e.enableRtl,controlName:"Chart",allowHighlight:"chart"===e.getModuleName()&&!u.marker.allowHighlight,tooltipRender:function(){m.removeHighlight(),m.highlightPoints(),m.updatePreviousPoint(c)},animationComplete:function(e){e.tooltip.fadeOuted&&m.fadeOut(m.previousPoints)},showHeaderLine:this.chart.tooltip.showHeaderLine,showNearestTooltip:this.chart.tooltip.showNearestTooltip}),this.svgTooltip.appendTo(this.getElement(this.element.id+"_tooltip"))):this.svgTooltip&&(this.svgTooltip.location=o,this.svgTooltip.content=this.text,this.svgTooltip.header=this.headerText,this.svgTooltip.offset=l,this.svgTooltip.palette=this.findPalette(),this.svgTooltip.shapes=a,this.svgTooltip.data=d,this.svgTooltip.template=this.template,this.svgTooltip.controlName="Chart",this.svgTooltip.crosshair=h,this.svgTooltip.textStyle=e.tooltip.textStyle,this.svgTooltip.isNegative=u.isRectSeries&&"Waterfall"!==u.type&&n&&n.y<0,this.svgTooltip.clipBounds="PolarRadar"===this.chart.chartAreaType?new mo(0,0):r,this.svgTooltip.arrowPadding=this.text.length>1||this.chart.stockChart||null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y?0:7,this.svgTooltip.allowHighlight="chart"===e.getModuleName()&&!u.marker.allowHighlight,this.svgTooltip.dataBind()),this.chart.isReact&&this.chart.renderReactTemplates()},o.prototype.findPalette=function(){for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(this.findColor(o,o.series))}return e},o.prototype.findColor=function(e,t){return!t.isRectSeries||"Candle"!==t.type&&"Hilo"!==t.type&&"HiloOpenClose"!==t.type?(e.point.color&&"#ffffff"!==e.point.color?e.point.color:e.point.interior)||t.marker.fill||t.interior:e.point.color},o.prototype.updatePreviousPoint=function(e){e&&(this.currentPoints=this.currentPoints.concat(e)),this.previousPoints=t.extend([],this.currentPoints,null,!0)},o.prototype.fadeOut=function(e){var t=this.chart.enableCanvas?this.getElement(this.element.id+"_tooltip_group"):this.getElement(this.element.id+"_tooltip_svg")||this.getElement(this.element.id+"_tooltipparent_template");t&&parseInt(t.getAttribute("opacity"),10)>0||(this.valueX=null,this.valueY=null,this.currentPoints=[],this.removeHighlight(),this.removeHighlightedMarker(e,!0),this.svgTooltip=null,this.control.trigger("animationComplete",{}))},o.prototype.removeHighlightedMarker=function(e,t){if(this.chart.markerRender)for(var i=0,o=e;i<o.length;i++){var r=o[i];g(this.element.id+"_Series_"+r.series.index+"_Point_"+r.point.index+"_Trackball"),this.chart.markerRender.removeHighlightedMarker(r.series,r.point,t)}this.previousPoints=[]},o.prototype.removeText=function(){this.textElements=[];var e=this.getElement(this.element.id+"_tooltip_group");if(e&&e.childNodes.length>0)for(;e.lastChild&&1!==e.childNodes.length;)e.removeChild(e.lastChild)},o.prototype.stopAnimation=function(){Fe(this.toolTipInterval)},o.prototype.removeTooltip=function(e){var t=this,i=this.getElement(this.element.id+"_tooltip");this.stopAnimation(),i&&this.previousPoints.length>0&&(this.toolTipInterval=+setTimeout(function(){t.svgTooltip&&t.svgTooltip.fadeOut()},e))},o}(Lo),$n=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Kn=function(e){function o(t){var i=e.call(this,t)||this;return i.commonXvalues=[],i.addEventListener(),i}return $n(o,e),o.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this)}},o.prototype.mouseUpHandler=function(){var e=this.control,t=this.getData();t.lierIndex=this.lierIndex,e.isTouch&&!this.isSelected(e)&&(V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&e.tooltip.shared||!e.tooltip.shared)?e.crosshair.enable?e.startMove&&"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(2e3):(this.tooltip(),"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(e.tooltip.fadeOutDuration)):this.findData(t,this.previousPoints[0])||"Click"!==e.tooltip.fadeOutMode||this.removeTooltip(0)},o.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.chart.tooltip.fadeOutDuration)},o.prototype.mouseMoveHandler=function(){var e=this.chart;e.stockChart&&e.stockChart.onPanning&&(e.mouseY<e.chartAxisLayoutPanel.seriesClipRect.y?e.mouseY=e.chartAxisLayoutPanel.seriesClipRect.y:e.mouseY>e.chartAxisLayoutPanel.seriesClipRect.y+e.chartAxisLayoutPanel.seriesClipRect.height&&(e.mouseY=e.chartAxisLayoutPanel.seriesClipRect.y+e.chartAxisLayoutPanel.seriesClipRect.height)),e.disableTrackTooltip||this.isSelected(e)||(e.tooltip.shared||e.isTouch&&!e.startMove||this.tooltip(),V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)?!e.tooltip.shared||e.isTouch&&!e.startMove||this.tooltip():e.tooltip.shared&&"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(this.chart.tooltip.fadeOutDuration))},o.prototype.longPress=function(){var e=this.chart;return e.crosshair.enable&&V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&(this.tooltip(),e.markerRender.markerMove(!1)),!1},o.prototype.tooltip=function(){var e=this.chart.enableCanvas?this.element.id+"_tooltip_group":this.element.id+"_tooltip_svg",t=this.getElement(e),i=this.chart.stockChart&&t&&t.firstChild.childNodes.length>1,o=t&&parseInt(t.getAttribute("opacity"),10)>0&&!i,r=this.getTooltipElement(o),n=document.getElementById(this.chart.element.id+"_tooltip_svg");this.chart.enableCanvas&&r&&n&&(document.getElementById(this.chart.element.id+"_Secondary_Element").appendChild(r),r.appendChild(n)),this.chart.tooltip.shared?this.renderGroupedTooltip(this.chart,!o,r):this.renderSeriesTooltip(this.chart,!o,r)},o.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header,e.series.xAxis,e.series.yAxis),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},o.prototype.findShapes=function(){if(!this.chart.tooltip.enableMarker)return[];for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(o.point.marker.shape||o.series.marker.shape||"Circle")}return e},o.prototype.renderSeriesTooltip=function(e,t,i){var o=this.getData(),r=null,n=1/0;if(o.lierIndex=this.lierIndex,this.currentPoints=[],this.findData(o,this.previousPoints[0])){if((!e.dataEditingModule||!e.dataEditingModule.isPointDragging)&&this.previousPoints[0]&&o.point.index===this.previousPoints[0].point.index&&o.series.index===this.previousPoints[0].series.index)return null;this.pushData(o,t,i,!0)&&this.triggerTooltipRender(o,t,this.getTooltipText(o),this.findHeader(o))}else{var a=V(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect);if(o.point||!this.isRemove||"Move"!==e.tooltip.fadeOutMode||e.tooltip.showNearestTooltip&&a){for(var l=this.mergeXvalues(this.chart.visibleSeries),s=e.visibleSeries.length-1;s>=0;s--){var h=e.visibleSeries[s];if(h.visible&&"TrendLine"!==h.category&&(o=this.getClosestX(e,h,l)||o,e.tooltip.showNearestTooltip&&a&&h.showNearestTooltip&&o&&o.point&&h.enableTooltip&&o.point.symbolLocations[0])){var c=Math.sqrt(Math.pow(e.mouseX-o.series.clipRect.x-o.point.symbolLocations[0].x,2)+Math.pow(e.mouseY-o.series.clipRect.y-o.point.symbolLocations[0].y,2));c<n&&(n=c,r=o)}}e.tooltip.showNearestTooltip&&r&&this.pushData(r,t,i,!0)&&(o=r,this.triggerTooltipRender(o,t,this.getTooltipText(o),this.findHeader(o)))}else this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.isRemove=!1}o&&o.point&&this.findMouseValues(o,e,this)},o.prototype.triggerTooltipRender=function(e,o,r,n){var a=this,l={cancel:!1,name:"tooltipRender",text:r,headerText:n,template:void 0,series:e.series,textStyle:this.textStyle,point:e.point,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,seriesName:e.series.name,pointIndex:e.point.index,pointText:e.point.text}},s=this.chart.border.width,h=this.chart.tooltip,c=function(r){if(r.cancel)a.removeHighlight(),t.remove(a.getElement(a.element.id+"_tooltip"));else{"BoxAndWhisker"===e.series.type&&(a.removeText(),o=!0),a.headerText=r.headerText,a.formattedText=a.formattedText.concat(r.text),a.text=a.formattedText;var n=a.getSymbolLocation(e);(n=n||new mo(null,null)).x=null!==h.location.x?h.location.x:n.x,n.y=null!==h.location.y?h.location.y:n.y,n=null===n.x&&null===n.y?null:n,a.createTooltip(a.chart,o,n,e.series.clipRect,e.point,a.findShapes(),a.findMarkerHeight(a.currentPoints[0]),new i.Rect(s,s,a.chart.availableSize.width-3-2*s,a.chart.availableSize.height-3-2*s),a.chart.crosshair.enable,null,a.getTemplateText(e),a.template?r.template:"")}a.isRemove=!0};c.bind(this,e),this.chart.trigger("tooltipRender",l,c)},o.prototype.findMarkerHeight=function(e){var t=e.series;return(t.marker.visible||this.chart.tooltip.shared&&(!t.isRectSeries||t.marker.visible)||"Scatter"===t.type||"Scatter"===t.drawType)&&"Candle"!==t.type&&"Hilo"!==t.type&&"HiloOpenClose"!==t.type?(t.marker.height+2)/2+2*t.marker.border.width:0},o.prototype.findData=function(e,t){return e.point&&(!t||t.point!==e.point||t&&t.lierIndex>3&&t.lierIndex!==this.lierIndex||t.point===e.point)},o.prototype.getSymbolLocation=function(e){var t;if("BoxAndWhisker"!==e.series.type){if(!e.point.symbolLocations[0])return null;t=new mo(e.point.symbolLocations[0].x,e.point.symbolLocations[0].y)}switch(e.series.type){case"BoxAndWhisker":return this.getBoxLocation(e);case"Waterfall":return this.getWaterfallRegion(e,t);case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"RangeColumn":return this.getRangeArea(e,t);default:return t}},o.prototype.getRangeArea=function(e,t){return e.point.regions[0]&&(this.inverted?t.x=e.point.regions[0].x+e.point.regions[0].width/2:t.y=e.point.regions[0].y+e.point.regions[0].height/2,"RangeStepArea"===e.series.type&&(t.y=e.point.regions[0].y+e.point.regions[0].height/2+e.point.regions[0].width)),t},o.prototype.getWaterfallRegion=function(e,t){return this.inverted?t.x=e.point.y<0?t.x+(this.chart.enableRtl?-e.point.regions[0].width:e.point.regions[0].width):t.x:t.y=e.point.y<0?t.y-e.point.regions[0].height:t.y,t},o.prototype.getTooltipText=function(e){var t=e.series;return this.parseTemplate(e.point,t,this.getFormat(this.chart,t),t.xAxis,t.yAxis)},o.prototype.getTemplateText=function(e){if(this.template=this.chart.enableHtmlSanitizer?this.chart.sanitize(this.template):this.template,this.template&&this.chart.tooltip.shared){for(var i=[],o=0;o<e.length;o++)i[o]=t.extend({},e[o].point),i[o].x=this.formatPointValue(e[o].point,e[o].series.xAxis,"x",!0,!1),"XY"===e[o].series.seriesType?i[o].y=this.formatPointValue(e[o].point,e[o].series.yAxis,"y",!1,!0):(i[o].low=this.formatPointValue(e[o].point,e[o].series.yAxis,"low",!1,!0),i[o].high=this.formatPointValue(e[o].point,e[o].series.yAxis,"high",!1,!0));return i}return this.template?((i=t.extend({},e.point)).x=this.formatPointValue(e.point,e.series.xAxis,"x",!0,!1),"XY"===e.series.seriesType?i.y=this.formatPointValue(e.point,e.series.yAxis,"y",!1,!0):(i.low=this.formatPointValue(e.point,e.series.yAxis,"low",!1,!0),i.high=this.formatPointValue(e.point,e.series.yAxis,"high",!1,!0)),i):e.point},o.prototype.renderGroupedTooltip=function(e,t,o){var r,n,a=[],l="PolarRadar"===e.chartAreaType?this.getData():null;this.stopAnimation(),this.removeHighlight(),this.currentPoints=[];var s,h,c,d=[],p=Number.MAX_VALUE,u=Number.MAX_VALUE;t&&(e.stockChart?o&&!i.getElement(o.id)&&document.getElementById(e.stockChart.element.id+"_Secondary_Element").appendChild(o):o&&document.getElementById(this.element.id+"_Secondary_Element").appendChild(o)),this.removeText();for(var g={text:[],cancel:!1,name:"sharedTooltipRender",data:[],point:[],series:[],headerText:"",textStyle:this.textStyle,template:[]},m=0,y=0,f=e.visibleSeries;y<f.length;y++){var v=f[y];v.enableTooltip&&v.visible&&("Cartesian"===e.chartAreaType&&v.visible?r=this.getClosestX(e,v,this.commonXValue(this.chart.visibleSeries)):"PolarRadar"===e.chartAreaType&&v.visible&&null!==l.point&&(r=new bo(v.points[l.point.index],v)),e.tooltip.showNearestPoint&&!r&&(r=this.getClosestX(e,v,this.commonXValue([v]))),r&&(g.data.push({pointX:r.point.x,pointY:r.point.y,seriesIndex:r.series.index,seriesName:r.series.name,pointIndex:r.point.index,pointText:r.point.text}),g.series[m]=r.series,g.point[m]=r.point,g.headerText=this.findHeader(r),this.currentPoints.push(r),null!=this.template&&g.template.push(e.enableHtmlSanitizer?e.sanitize(this.template.toString()):this.template.toString()),g.text.push(this.getTooltipText(r)),s=e.requireInvertedAxis?e.mouseY-r.series.clipRect.y:e.mouseX-r.series.clipRect.x,h=e.mouseY-r.series.clipRect.y,r.point.symbolLocations&&r.point.symbolLocations.length&&Math.abs(s-r.point.symbolLocations[0].x)<=p&&Math.abs(r.point.symbolLocations[0].y-h)<Math.abs(u-h)&&(p=Math.abs(s-r.point.symbolLocations[0].x),u=r.point.symbolLocations[0].y,c=r),n=c||r,a.push(r)),m++)}if(!e.tooltip.showNearestPoint){var b=[];this.currentPoints=[],g.point=[],g.series=[],g.data=[],g.text=[];for(var x=0,S=a;x<S.length;x++){var C=S[x];C.point.symbolLocations[0].x!==n.point.symbolLocations[0].x&&(-1===C.series.type.indexOf("Column")&&-1===n.series.type.indexOf("Column")||C.point.xValue!==n.point.xValue)||(g.point.push(C.point),g.series.push(C.series),g.text.push(this.getTooltipText(C)),g.headerText=this.findHeader(C),b.push(C),g.data.push({pointX:C.point.x,pointY:C.point.y,seriesIndex:C.series.index,seriesName:C.series.name,pointIndex:C.point.index,pointText:C.point.text}))}a=b,this.currentPoints=b}a.length>0&&this.currentPoints.length>0?this.triggerSharedTooltip(g,n,d,e,t,a):this.getElement(this.element.id+"_tooltip_path")&&this.getElement(this.element.id+"_tooltip_path").setAttribute("d","")},o.prototype.triggerSharedTooltip=function(e,t,o,r,n,a){var l,s,h=this,c=e.template,d={cancel:!1,name:"sharedTooltipRender",text:e.text,headerText:e.headerText,textStyle:e.textStyle,template:c,point:e.point,series:e.series,data:e.data},p=this.chart.border.width,u=[];r.stockChart&&(l=r.stockChart.enablePeriodSelector?r.stockChart.toolbarHeight:0,s=i.measureText(this.chart.stockChart.title,this.chart.stockChart.titleStyle,this.chart.themeStyle.tooltipLabelFont).height+10);var m=function(e){if(e.cancel)g(h.element.id+"_tooltip"),o.push(t);else{"BoxAndWhisker"===t.series.type&&(h.removeText(),n=!0);for(var c=0;c<e.text.length;c++)e.text[c]&&u.push(h.currentPoints[c]);h.currentPoints=u,h.formattedText=h.formattedText.concat(e.text),h.text=e.text,h.headerText=e.headerText,"object"!=typeof e.template?(e.template=e.template.split(","),e.template.length>u.length&&(e.template=e.template.splice(e.template.length-1))):e.template.length>u.length&&e.template.splice(e.template.length-1);var d=h.chart.tooltip;h.findMouseValues(t,h.chart,h);var m=h.findSharedLocation();(m=m||new mo(null,null)).x=null!==d.location.x?d.location.x:m.x,m.y=null!==d.location.y?d.location.y:m.y,m=null===m.x&&null===m.y?null:m,-1===t.series.type.indexOf("Range")||V(m.x,m.y,r.chartAxisLayoutPanel.seriesClipRect)?h.createTooltip(r,n,m,1===h.currentPoints.length?h.currentPoints[0].series.clipRect:null,1===a.length?a[0].point:null,h.findShapes(),h.findMarkerHeight(h.currentPoints[0]),new i.Rect(p,r.stockChart?l+s+p:p,h.chart.availableSize.width-3-2*p,h.chart.availableSize.height-3-2*p),h.chart.crosshair.enable,o,h.template?h.getTemplateText(a):null,h.template?e.template.join(""):""):(g(h.element.id+"_tooltip"),o.push(t)),t=null}};m.bind(this,t,o),this.chart.trigger("sharedTooltipRender",d,m)},o.prototype.findSharedLocation=function(){var e=this.chart.stockChart;if(e){1===this.text.length&&this.text.push("");var t=e.enablePeriodSelector?e.toolbarHeight:0,i=document.getElementById(e.element.id+"_ChartTitle"),o=""!==e.title?i.getBoundingClientRect().height+10:0;return"Nearest"===e.tooltip.position?new mo(this.valueX,this.valueY+t+o):new mo(this.chart.chartAxisLayoutPanel.seriesClipRect.x+5,this.chart.chartAxisLayoutPanel.seriesClipRect.y+t+5+o)}return this.currentPoints.length>1?new mo(this.valueX,this.valueY):this.getSymbolLocation(this.currentPoints[0])},o.prototype.getBoxLocation=function(e){return this.lierIndex>3?e.point.outliers.length>0?e.point.symbolLocations[this.lierIndex-4]:null:{x:e.point.regions[0].x+e.point.regions[0].width/2,y:e.point.regions[0].y+e.point.regions[0].height/2}},o.prototype.parseTemplate=function(e,t,i,o,r){for(var n,a,l=RegExp,s=0,h=Object.keys(e);s<h.length;s++)n=new l("${point."+(p=h[s])+"}","gm"),i=i.replace(n.source,this.formatPointValue(e,"${point.x}"===n.source?o:r,p,"${point.x}"===n.source&&"TrendLine"!==t.category,"${point.high}"===n.source||"${point.open}"===n.source||"${point.close}"===n.source||"${point.low}"===n.source||"${point.y}"===n.source||"${point.minimum}"===n.source||"${point.maximum}"===n.source||"${point.outliers}"===n.source||"${point.upperQuartile}"===n.source||"${point.lowerQuartile}"===n.source||"${point.median}"===n.source));for(var c=0,d=Object.keys(Object.getPrototypeOf(t));c<d.length;c++){var p=d[c];n=new l("${series."+p+"}","gm"),a=t[p],i=i.replace(n.source,a)}return i},o.prototype.formatPointValue=function(e,i,o,r,n){var a,l,s;if("Category"!==i.valueType&&r){l=i.labelFormat&&null!==i.labelFormat.match("{value}");var h="Double"===i.valueType?+e[o]:e[o];a=l?i.labelFormat.replace("{value}",i.format(h)):i.format(h)}else if(n&&!t.isNullOrUndefined(e[o]))l=i.labelFormat&&null!==i.labelFormat.match("{value}"),s="outliers"===o?i.format(e[o][this.lierIndex-4]):"DateTime"===i.valueType?i.format(new Date(+e[o])):i.format(+e[o]),a=l?i.labelFormat.replace("{value}",s):s;else if("size"===o){var c=this.chart.intl.getNumberFormat({format:"",useGrouping:this.chart.useGroupingSeparator});a=(a="number"==typeof e[o]?c(e[o]):e[o])||""}else a=e[o];return a},o.prototype.getFormat=function(e,t){if(t.tooltipFormat)return"XY"===t.seriesType&&"Indicator"===t.category?this.getIndicatorTooltipFormat(t,e,e.tooltip.format):t.tooltipFormat;if(!t.tooltipFormat&&e.tooltip.format)return"XY"===t.seriesType&&"Indicator"===t.category?this.getIndicatorTooltipFormat(t,e,e.tooltip.format):e.tooltip.format;var i="Histogram"===t.type?"${point.minimum}-${point.maximum}":"${point.x}",o=e.tooltip.shared?"${series.name}":i;switch(t.seriesType){case"XY":return"Indicator"===t.category&&this.getIndicatorTooltipFormat(t,e,e.tooltip.format),o+" : "+("Bubble"===t.type?e.theme.indexOf("Tailwind3")>-1?"${point.y}  Size : ${point.size}":"<b>${point.y}</b>  Size : <b>${point.size}</b>":e.theme.indexOf("Tailwind3")>-1?"${point.y}":"<b>${point.y}</b>");case"HighLow":return o+"<br/>High : <b>${point.high}</b><br/>Low : <b>${point.low}</b>";case"HighLowOpenClose":return o+"<br/>High : <b>${point.high}</b><br/>Low : <b>${point.low}</b><br/>Open : <b>${point.open}</b><br/>Close : <b>${point.close}</b>";case"BoxPlot":return o+"<br/>"+(this.lierIndex>3?"Outliers : <b>${point.outliers}</b>":"Maximum : <b>${point.maximum}</b><br/>Q3 : <b>${point.upperQuartile}</b><br/>Median : <b>${point.median}</b><br/>Q1 : <b>${point.lowerQuartile}</b><br/>Minimum : <b>${point.minimum}</b>")}},o.prototype.getIndicatorTooltipFormat=function(e,t,i){return"XY"===e.seriesType?e.name+" : <b>${point.y}</b>":i},o.prototype.removeHighlightedMarker=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];g(this.element.id+"_Series_"+r.series.index+"_Point_"+r.point.index+"_Trackball"),this.chart.markerRender&&this.chart.markerRender.removeHighlightedMarker(r.series,r.point,t)}this.previousPoints=[]},o.prototype.getModuleName=function(){return"Tooltip"},o.prototype.destroy=function(){},o}(Qn),Jn=function(){function e(e){this.iconRectOverFill="transparent",this.iconRectSelectionFill="transparent",this.zoomCompleteEvtCollection=[],this.isZoomed=!1,this.chart=e,this.elementId=e.element.id,this.chart.svgRenderer=new i.SvgRenderer(this.elementId)}return e.prototype.createPanButton=function(e,t){var o=this.chart.svgRenderer,r=this.chart.zoomModule.isPanning?this.chart.themeStyle.toolkitSelectionColor:this.chart.themeStyle.toolkitFill,n="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,";n+="11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z",this.elementOpacity=!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===this.chart.theme?"1":this.elementOpacity),e.id=this.elementId+"_Zooming_Pan",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Pan")),this.panElements=e,e.appendChild(o.drawRectangle(new co(this.elementId+"_Zooming_Pan_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(o.drawPath(new i.PathOption(this.elementId+"_Zooming_Pan_2","Fluent2HighContrast"===this.chart.theme&&"0.2"===this.elementOpacity?"#3FF23F":r,null,null,1,null,n))),t.appendChild(e),this.wireEvents(e,this.pan)},e.prototype.createZoomButton=function(e,t){var o=this.chart.svgRenderer,r=this.chart.zoomModule.isPanning||!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?this.chart.themeStyle.toolkitFill:this.chart.themeStyle.toolkitSelectionColor;this.elementOpacity=this.chart.zoomModule.isPanning||this.chart.zoomModule.isZoomed||!this.chart.zoomSettings.showToolbar?"1":"0.2";var n=this.chart.zoomModule.isPanning?"transparent":this.chart.themeStyle.toolkitIconRectSelectionFill,a="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,";a+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",a+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",e.id=this.elementId+"_Zooming_Zoom",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Zoom")),e.setAttribute("opacity",this.elementOpacity),this.zoomElements=e,this.selectedID=this.chart.zoomModule.isPanning?this.chart.element.id+"_Zooming_Pan_1":this.elementId+"_Zooming_Zoom_1",e.appendChild(o.drawRectangle(new co(this.elementId+"_Zooming_Zoom_1",n,{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(o.drawPath(new i.PathOption(this.elementId+"_Zooming_Zoom_3",r,null,null,1,null,a+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"))),t.appendChild(e),this.wireEvents(e,this.zoom)},e.prototype.createZoomInButton=function(e,t,o){var r=this.chart.svgRenderer,n=this.chart.themeStyle.toolkitFill,a="M10.103,0C6.812,0,4.16,2.651,4.16,5.943c0,1.509,0.503,2.834,1.417,3.885l-0.274,0.229H4.571L0,";a+="14.628l0,0L1.372,16l4.571-4.572v-0.685l0.228-0.275c1.052,0.868,2.423,1.417,3.885,1.417c3.291,0,5.943-2.651,",a+="5.943-5.943C16,2.651,13.395,0,10.103,0z M10.058,10.058c-2.286,0-4.114-1.828-4.114-4.114c0-2.286,1.828-4.114,",e.id=this.elementId+"_Zooming_ZoomIn",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("ZoomIn"));e.appendChild(r.drawRectangle(new co(this.elementId+"_Zooming_ZoomIn_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1?4:this.chart.theme.indexOf("Bootstrap5")>-1?2:0,this.chart.theme.indexOf("Fluent2")>-1?4:this.chart.theme.indexOf("Bootstrap5")>-1?2:0))),e.appendChild(r.drawPath(new i.PathOption(this.elementId+"_Zooming_ZoomIn_2",n,null,null,1,null,a+"4.114-4.114c2.286,0,4.114,1.828,4.114,4.114C14.172,8.229,12.344,10.058,10.058,10.058z"))),e.appendChild(r.drawPolygon(new go(this.elementId+"_Zooming_ZoomIn_3","12.749,5.466 10.749,5.466 10.749,3.466 9.749,3.466 9.749,5.466 7.749,5.466 7.749,6.466 9.749,6.466 9.749,8.466 10.749,8.466 10.749,6.466 12.749,6.466",n))),this.zoomInElements=e,this.elementOpacity=o.zoomModule.isPanning||!o.zoomModule.isZoomed&&!o.zoomSettings.showToolbar&&!this.enableZoomButton?"0.2":"1",e.setAttribute("opacity",this.elementOpacity),t.appendChild(e),this.wireEvents(e,this.zoomIn)},e.prototype.createZoomOutButton=function(e,t,o){var r=this.chart.svgRenderer,n=this.chart.themeStyle.toolkitFill,a="M0,14.622L1.378,16l4.533-4.533v-0.711l0.266-0.266c1.022,0.889,2.4,1.422,3.866,";a+="1.422c3.289,0,5.955-2.666,5.955-5.955S13.333,0,10.044,0S4.089,2.667,4.134,5.911c0,1.466,0.533,2.844,",a+="1.422,3.866l-0.266,0.266H4.578L0,14.622L0,14.622z M5.911,5.911c0-2.311,1.822-4.133,4.133-4.133s4.133,1.822,4.133,",e.id=this.elementId+"_Zooming_ZoomOut",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("ZoomOut")),e.appendChild(r.drawRectangle(new co(this.elementId+"_Zooming_ZoomOut_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(r.drawPath(new i.PathOption(this.elementId+"_Zooming_ZoomOut_2","Fluent2HighContrast"===o.theme&&!o.zoomModule.isZoomed||"Fluent2HighContrast"===o.theme&&o.zoomModule.isPanning?"#3FF23F":n,null,null,1,null,a+"4.133s-1.866,4.133-4.133,4.133S5.911,8.222,5.911,5.911z M12.567,6.466h-5v-1h5V6.466z"))),this.zoomOutElements=e,this.elementOpacity=o.zoomModule.isPanning||!o.zoomModule.isZoomed&&o.zoomSettings.showToolbar&&!this.enableZoomButton?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===o.theme?"1":this.elementOpacity),t.appendChild(e),this.wireEvents(e,this.zoomOut)},e.prototype.createResetButton=function(e,t,o,r){var n,a=this.chart.svgRenderer,l=this.chart.themeStyle.toolkitFill,s="M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,";s+="1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,",s+="13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,",e.id=this.elementId+"_Zooming_Reset",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Reset")),this.elementOpacity=!o.zoomModule.isZoomed&&o.zoomSettings.showToolbar?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===o.theme?"1":this.elementOpacity),r?(n=i.measureText(this.chart.getLocalizedLabel("ResetZoom"),{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}),e.appendChild(a.drawRectangle(new co(this.elementId+"_Zooming_Reset_1","transparent",{},1,new i.Rect(0,0,n.width,n.height)))),je(o.renderer,new i.TextOption(this.elementId+"_Zooming_Reset_2",0+n.width/2,0+3*n.height/4,"middle",this.chart.getLocalizedLabel("ResetZoom"),"rotate(0,0,0)","auto"),{size:"12px"},"Material3Dark"===this.chart.theme||"Fluent2Dark"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme?"White":"black",e,null,null,null,null,null,null,null,null,o.enableCanvas,null,{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"})):(e.appendChild(a.drawRectangle(new co(this.elementId+"_Zooming_Reset_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(a.drawPath(new i.PathOption(this.elementId+"_Zooming_Reset_2","Fluent2HighContrast"===o.theme&&"0.2"===this.elementOpacity?"#3FF23F":l,null,null,1,null,s+"3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z")))),t.appendChild(e),this.wireEvents(e,this.reset)},e.prototype.wireEvents=function(e,i){t.EventHandler.add(e,"mousedown touchstart",i,this),t.EventHandler.add(e,"mouseover",this.showTooltip,this),t.EventHandler.add(e,"mouseout",this.removeTooltip,this),t.EventHandler.add(this.chart.element,"mousemove",this.mouseMoveHandler,this),t.EventHandler.add(this.chart.zoomModule.toolkitElements,"mousedown",this.mouseDownHandler,this),window.addEventListener("mouseup",this.mouseUpHandler.bind(this),!0)},e.prototype.mouseMoveHandler=function(e){this.chart.zoomSettings.toolbarPosition.draggable&&(this.isDragging?this.performDragAndDrop(e):this.chart.zoomModule.toolkitElements.setAttribute("cursor",e.target.id.indexOf("Zooming_Rect")>-1?"grab":"none"))},e.prototype.mouseDownHandler=function(e){this.chart.zoomSettings.toolbarPosition.draggable&&!this.isDragging&&e.target.id.indexOf("Zooming_Rect")>-1&&(this.isDragging=!0,this.chart.zoomModule.toolkitElements.setAttribute("cursor","grabbing"))},e.prototype.mouseUpHandler=function(e){this.isDragging&&(this.isDragging=!1,this.chart.zoomModule.toolkitElements.setAttribute("cursor",e.target.id.indexOf("Zooming_Rect")>-1?"grab":"none"))},e.prototype.performDragAndDrop=function(e){var t=this.chart.zoomModule.toolkitElements.getBoundingClientRect().width,i=this.chart.zoomModule.toolkitElements.getBoundingClientRect().height,o=e.type.indexOf("touch")>-1?e.changedTouches[0].clientX:this.chart.mouseX,r=e.type.indexOf("touch")>-1?e.changedTouches[0].clientY:this.chart.mouseY,n=Math.max(this.chart.border.width+2,Math.min(o-t/2,this.chart.availableSize.width-t-this.chart.border.width-2)),a=Math.max(this.chart.border.width+2,Math.min(r-i/2,this.chart.availableSize.height-i-this.chart.border.width-2));o<this.chart.availableSize.width&&r<this.chart.availableSize.height&&(this.chart.zoomModule.toolkitElements.setAttribute("transform","translate("+n+","+a+")"),this.dragHorizontalRatio=n/this.chart.availableSize.width,this.dragVerticalRatio=a/this.chart.availableSize.height)},e.prototype.showTooltip=function(e){var t=e.currentTarget.id.split("_Zooming_")[1],o=e.layerX-(i.measureText(t,{size:"10px"},{size:"10px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).width+5),r=he(e.currentTarget.id+"_1"),n=he(e.currentTarget.id+"_2"),a=he(e.currentTarget.id+"_3");"1"===e.currentTarget.getAttribute("opacity")?e.currentTarget.setAttribute("cursor","pointer"):e.currentTarget.setAttribute("cursor","auto"),r&&(this.hoveredID=r.id,r.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"transparent":this.chart.themeStyle.toolkitIconRectOverFill)),n&&n.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitSelectionColor),a&&a.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitSelectionColor),this.chart.isTouch||this.isDragging||z("EJ2_Chart_ZoomTip",this.chart.getLocalizedLabel(t),e.layerY+10,o,"10px",this.chart.element.id)},e.prototype.removeTooltip=function(){if(this.hoveredID&&he(this.hoveredID)){var e=this.chart.zoomModule.isPanning?this.hoveredID.indexOf("_Pan_")>-1?this.chart.themeStyle.toolkitIconRectSelectionFill:"transparent":this.hoveredID.indexOf("_Zoom_")>-1&&"0.2"!==this.elementOpacity&&"Fluent2HighContrast"!==this.chart.theme?this.chart.themeStyle.toolkitIconRectSelectionFill:"transparent";he(this.hoveredID).setAttribute("fill",e)}var t=this.hoveredID?he(this.hoveredID.replace("_1","_2")):null,i=this.hoveredID?he(this.hoveredID.replace("_1","_3")):null;if(t){o=this.chart.zoomModule.isPanning?this.hoveredID.indexOf("_Pan_")>-1?this.chart.themeStyle.toolkitSelectionColor:"0.2"===this.elementOpacity&&"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===he(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":"1"===this.elementOpacity&&"Tailwind3"===this.chart.theme?"#212529":this.chart.themeStyle.toolkitFill:this.hoveredID.indexOf("_Zoom_")>-1?this.chart.themeStyle.toolkitSelectionColor:"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===he(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":"Tailwind3Dark"===this.chart.theme&&this.chart.zoomModule.isDevice?"black":this.chart.themeStyle.toolkitFill;t.setAttribute("fill",o)}if(i){var o=this.chart.zoomModule.isPanning||!this.chart.isZoomed&&this.chart.zoomSettings.showToolbar?"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===he(this.hoveredID).nextElementSibling.getAttribute("fill")&&"1"===this.elementOpacity?"#3FF23F":"1"===this.elementOpacity&&"Tailwind3"===this.chart.theme?"#212529":this.chart.themeStyle.toolkitFill:this.hoveredID.indexOf("_Zoom_")>-1?this.chart.themeStyle.toolkitSelectionColor:"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===he(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitFill;i.setAttribute("fill",o)}g("EJ2_Chart_ZoomTip")},e.prototype.reset=function(e){if(!this.chart.zoomModule.isZoomed)return!1;var i=this.chart;this.enableZoomButton=!1,i.redraw=i.enableCanvas?i.redraw:i.zoomSettings.enableAnimation,!i.zoomModule.isDevice&&i.zoomModule.toolkitElements?t.remove(i.zoomModule.toolkitElements):"touchstart"===e.type&&e.stopPropagation();var o;this.removeTooltip(),i.svgObject.setAttribute("cursor","auto");var r=[];this.zoomCompleteEvtCollection=[];for(var n=0,a=i.axisCollections;n<a.length;n++){var l=a[n];o={cancel:!1,name:"zoomComplete",axis:l,previousZoomFactor:l.zoomFactor,previousZoomPosition:l.zoomPosition,currentZoomFactor:1,currentZoomPosition:0,previousVisibleRange:l.visibleRange,currentVisibleRange:null},l.zoomFactor=1,l.zoomPosition=0,l.zoomingScrollBar&&(l.zoomingScrollBar.isScrollUI=!1),o.cancel||(l.zoomFactor=o.currentZoomFactor,l.zoomPosition=o.currentZoomPosition,this.zoomCompleteEvtCollection.push(o)),r.push({zoomFactor:l.zoomFactor,zoomPosition:l.zoomFactor,axisName:l.name,axisRange:l.visibleRange}),i.zoomModule.isDevice&&i.trigger("zoomComplete",o)}return this.setDefferedZoom(i)},e.prototype.setDefferedZoom=function(e){e.disableTrackTooltip=!1;var i=e.duration;if(e.duration=600,e.zoomModule.isZoomed=e.zoomModule.isPanning=e.isChartDrag=e.delayRedraw=!1,e.zoomModule.touchMoveList=e.zoomModule.touchStartList=[],e.zoomModule.pinchTarget=null,e.zoomRedraw=e.zoomSettings.enableAnimation,e.redraw){var o=he(e.element.id+"_Zooming_KitCollection");if(o&&o.remove(),e.tooltipModule){he(e.element.id+"_tooltip")&&he(e.element.id+"_tooltip").remove();for(var r=0,n=e.visibleSeries;r<n.length;r++){var a=n[r];t.isNullOrUndefined(a)||!a.marker.visible&&!e.tooltip.shared&&"Scatter"!==a.type&&"Bubble"!==a.type||e.markerRender.removeHighlightedMarker(a,null,!0)}}}else e.removeSvg();return e.refreshAxis(),e.refreshBound(),this.elementOpacity="1",e.duration=i,e.redraw=!1,!1},e.prototype.zoomIn=function(){return this.zoomInOutCalculation(1,this.chart,this.chart.axisCollections,this.chart.zoomSettings.mode),!1},e.prototype.zoomOut=function(){return this.enableZoomButton=!1,this.zoomInOutCalculation(-1,this.chart,this.chart.axisCollections,this.chart.zoomSettings.mode),!1},e.prototype.zoom=function(){return this.chart.zoomModule.isPanning=!1,this.elementOpacity="1",this.chart.svgObject.setAttribute("cursor","auto"),this.zoomInElements&&this.zoomInElements.setAttribute("opacity",this.elementOpacity),this.elementOpacity=!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?"0.2":"1",this.zoomOutElements&&this.zoomOutElements.setAttribute("opacity",this.elementOpacity),this.applySelection(this.zoomElements.childNodes,this.chart.themeStyle.toolkitSelectionColor),"Fluent2HighContrast"===this.chart.theme&&(this.zoomInElements&&this.applySelection(this.zoomInElements.childNodes,this.chart.themeStyle.toolkitFill),this.zoomOutElements&&this.applySelection(this.zoomOutElements.childNodes,this.chart.themeStyle.toolkitFill)),this.panElements&&this.applySelection(this.panElements.childNodes,"Tailwind3Dark"===this.chart.theme?"#FFFFFF":"#737373"),he(this.selectedID)&&he(this.selectedID).setAttribute("fill","transparent"),this.selectedID=this.chart.element.id+"_Zooming_Zoom_1",he(this.selectedID).setAttribute("fill",this.chart.themeStyle.toolkitIconRectSelectionFill),!1},e.prototype.pan=function(){if(!this.chart.zoomModule.isZoomed)return!1;if(this.chart.zoomModule.isPanning=!0,this.chart.svgObject.setAttribute("cursor","pointer"),this.elementOpacity="0.2",this.zoomInElements?this.zoomInElements.setAttribute("opacity",this.elementOpacity):null,this.zoomOutElements?this.zoomOutElements.setAttribute("opacity",this.elementOpacity):null,"Fluent2HighContrast"===this.chart.theme){var e=he(this.chart.element.id+"_Zooming_ZoomOut");e&&e.setAttribute("opacity","1");var t=he(this.chart.element.id+"_Zooming_ZoomIn");t&&t.setAttribute("opacity","1");var i=he(this.chart.element.id+"_Zooming_ZoomOut_2");i&&i.setAttribute("fill","#3FF23F");var o=he(this.chart.element.id+"_Zooming_ZoomIn_2");o&&o.setAttribute("fill","#3FF23F");var r=he(this.chart.element.id+"_Zooming_ZoomIn_3");r&&r.setAttribute("fill","#3FF23F")}return this.panElements?this.applySelection(this.panElements.childNodes,this.chart.themeStyle.toolkitSelectionColor):null,this.zoomElements?this.applySelection(this.zoomElements.childNodes,"Tailwind3Dark"===this.chart.theme?"#FFFFFF":"#737373"):null,he(this.selectedID)&&he(this.selectedID).setAttribute("fill","transparent"),this.selectedID=this.chart.element.id+"_Zooming_Pan_1",he(this.selectedID).setAttribute("fill",this.chart.themeStyle.toolkitIconRectSelectionFill),!1},e.prototype.zoomInOutCalculation=function(e,t,i,o){var r=this;if(this.isZoomed=!0,t.zoomSettings.showToolbar&&(this.elementOpacity=this.zoomInElements.getAttribute("opacity")),!t.zoomModule.isPanning&&"0.2"!==this.elementOpacity){t.zoomSettings.showToolbar&&!t.isZoomed&&(t.zoomModule.isZoomed=!0);var n=void 0,a=void 0,l=void 0;t.disableTrackTooltip=!0,t.delayRedraw=!0;var s=void 0;this.zoomCompleteEvtCollection=[];for(var h=[],c=0,d=i;c<d.length;c++){var p=d[c];s={cancel:!1,name:"zoomComplete",axis:p,previousZoomFactor:p.zoomFactor,previousZoomPosition:p.zoomPosition,currentZoomFactor:p.zoomFactor,currentZoomPosition:p.zoomPosition,previousVisibleRange:p.visibleRange,currentVisibleRange:null},("Horizontal"===p.orientation&&"Y"!==o||"Vertical"===p.orientation&&"X"!==o)&&(n=1===(l=Math.max(Math.max(1/se(p.zoomFactor,0,1),1)+.25*e,1))?1:se(1/l,0,1),a=1===l?0:p.zoomPosition+.5*(p.zoomFactor-n),p.zoomPosition===a&&p.zoomFactor===n||(n=a+n>1?1-a:n),s.currentZoomFactor=n,s.currentZoomPosition=a,s.cancel||(p.zoomFactor=s.currentZoomFactor,p.zoomPosition=s.currentZoomPosition,this.zoomCompleteEvtCollection.push(s)),h.push({zoomFactor:p.zoomFactor,zoomPosition:p.zoomFactor,axisName:p.name,axisRange:p.visibleRange}))}var u={cancel:!1,axisCollection:h,name:Ii};this.chart.trigger(Ii,u,function(){u.cancel&&new ea(t).zoomCancel(i,r.zoomCompleteEvtCollection)})}},e.prototype.applySelection=function(e,t){for(var i=1,o=e.length;i<o;i++)e[i].setAttribute("fill",t)},e}(),ea=function(){function e(e){this.zoomCompleteEvtCollection=[],this.startPanning=!1,this.chart=e,this.isPointer=t.Browser.isPointer,this.browserName=t.Browser.info.name,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.addEventListener(),this.isDevice=t.Browser.isDevice;var o=e.zoomSettings;this.toolkit=new Jn(e),this.zooming=o,this.elementId=e.element.id,this.zoomingRect=new i.Rect(0,0,0,0),this.zoomAxes=[],this.zoomkitOpacity=1,this.isIOS=t.Browser.isIos||t.Browser.isIos7,this.isZoomed=this.performedUI=this.zooming.enablePan||this.chart.primaryXAxis.zoomFactor<1&&this.chart.primaryXAxis.zoomPosition>0||this.chart.primaryYAxis.zoomFactor<1&&this.chart.primaryYAxis.zoomPosition>0||this.isAxisZoomed(this.chart.axes),o.enableScrollbar&&(e.scrollElement=t.createElement("div",{id:e.element.id+"_scrollElement"}))}return e.prototype.renderZooming=function(e,t,i){this.calculateZoomAxesRange(t),!this.zooming.enableSelectionZooming||i&&(!t.isDoubleTap||1!==this.touchStartList.length)||this.isPanning&&!t.isDoubleTap?this.isPanning&&t.isChartDrag&&(!i||i&&1===this.touchStartList.length)&&(this.pinchTarget=i?e.target:null,this.doPan(t,t.axisCollections)):(this.isPanning=!!this.isDevice||this.isPanning,this.performedUI=!0,this.drawZoomingRectangle(t))},e.prototype.drawZoomingRectangle=function(e){var i=e.chartAxisLayoutPanel.seriesClipRect,o=new mo(e.previousMouseMoveX,e.previousMouseMoveY),r=new mo(e.mouseX,e.mouseY),n=this.zoomingRect=le(o,r,i);if(n.width>0&&n.height>0){if(this.isZoomed=!0,e.disableTrackTooltip=!0,e.svgObject.setAttribute("cursor","crosshair"),"X"===this.zooming.mode?(n.height=i.height,n.y=i.y):"Y"===this.zooming.mode&&(n.width=i.width,n.x=i.x),e.tooltipModule){e.tooltipModule.removeTooltip(0);for(var a=0,l=e.visibleSeries;a<l.length;a++){var s=l[a];t.isNullOrUndefined(s)||!s.marker.visible&&!e.tooltip.shared||e.markerRender.removeHighlightedMarker(s,null,!0)}}e.crosshairModule&&e.crosshairModule.removeCrosshair(0);var h=e.svgObject;if(this.chart.enableCanvas){var c=document.getElementById(this.chart.element.id+"_Secondary_Element");(h=this.chart.svgRenderer.createSvg({id:this.chart.element.id+"_zoomRect_svg",width:this.chart.availableSize.width,height:this.chart.availableSize.height})).style.cssText="position: absolute; display:block; pointer-events: none",c.appendChild(h)}h.appendChild(e.svgRenderer.drawRectangle(new co(this.elementId+"_ZoomArea",e.themeStyle.selectionRectFill,{color:e.themeStyle.selectionRectStroke,width:1},1,n,0,0,"","3")))}},e.prototype.doPan=function(e,i,o,r){var n=this;if(void 0===o&&(o=0),void 0===r&&(r=0),e.startMove&&e.crosshair.enable)return null;var a,l;this.isZoomed=!0,this.startPanning=!0,this.offset=e.delayRedraw?this.offset:e.chartAxisLayoutPanel.seriesClipRect,e.delayRedraw=!0,this.zoomCompleteEvtCollection=[],e.disableTrackTooltip=!0;for(var s,h=[],c=0,d=i;c<d.length;c++){var p=d[c];s={cancel:!1,name:"zoomComplete",axis:p,previousZoomFactor:p.zoomFactor,previousZoomPosition:p.zoomPosition,currentZoomFactor:p.zoomFactor,currentZoomPosition:p.zoomPosition,previousVisibleRange:p.visibleRange,currentVisibleRange:null},a=Math.max(1/se(p.zoomFactor,0,1),1),"Horizontal"===p.orientation?(l=(0!==o?o:e.previousMouseMoveX-e.mouseX)/p.rect.width/a,s.currentZoomPosition=se(p.zoomPosition+l,0,1-p.zoomFactor)):(l=(0!==r?r:e.previousMouseMoveY-e.mouseY)/p.rect.height/a,s.currentZoomPosition=se(p.zoomPosition-l,0,1-p.zoomFactor)),s.cancel||(p.zoomFactor=s.currentZoomFactor,p.zoomPosition=s.currentZoomPosition,this.zoomCompleteEvtCollection.push(s)),h.push({zoomFactor:p.zoomFactor,zoomPosition:p.zoomFactor,axisName:p.name,axisRange:p.visibleRange})}if(e.tooltipModule){var u=he(e.element.id+"_tooltip");u&&u.remove();for(var g=0,m=e.visibleSeries;g<m.length;g++){var y=m[g];t.isNullOrUndefined(y)||!y.marker.visible&&!e.tooltip.shared&&"Scatter"!==y.type&&"Bubble"!==y.type||e.markerRender.removeHighlightedMarker(y,null,!0)}}var f={cancel:!1,axisCollection:h,name:Ii};this.chart.trigger(Ii,f,function(){f.cancel?n.zoomCancel(i,n.zoomCompleteEvtCollection):(n.performDefferedZoom(e),n.redrawOnZooming(e,!1))})},e.prototype.performDefferedZoom=function(e){var t,i;if(this.zooming.enableDeferredZooming){switch(t=e.mouseX-e.mouseDownX,i=e.mouseY-e.mouseDownY,this.zooming.mode){case"X":i=0;break;case"Y":t=0}this.setTransform(t,i,null,null,e,!1),this.refreshAxis(e.chartAxisLayoutPanel,e,e.axisCollections),e.enableCanvas&&this.performZoomRedraw(e)}else this.performZoomRedraw(e);e.previousMouseMoveX=e.mouseX,e.previousMouseMoveY=e.mouseY},e.prototype.performZoomRedraw=function(e){var i=this.zoomingRect;if(e.animateSeries=!1,this.isZoomed)if(i.width>0&&i.height>0)this.performedUI=!0,e.svgObject.setAttribute("cursor","auto"),this.doZoom(e,e.axisCollections,e.chartAxisLayoutPanel.seriesClipRect),e.isDoubleTap=!1;else if(e.disableTrackTooltip){if(e.disableTrackTooltip=!1,e.delayRedraw=!1,e.enableCanvas)e.createChartSvg();else{var o=he(e.element.id+"_ZoomArea");o&&o.remove();var r=he(e.element.id+"_Zooming_KitCollection");if(r&&r.remove(),e.tooltipModule){he(e.element.id+"_tooltip")&&he(e.element.id+"_tooltip").remove();for(var n=0,a=e.visibleSeries;n<a.length;n++){var l=a[n];t.isNullOrUndefined(l)||!l.marker.visible&&!e.tooltip.shared&&"Scatter"!==l.type&&"Bubble"!==l.type||e.markerRender.removeHighlightedMarker(l,null,!0)}}}var s=e.duration;this.isPanning&&(e.isChartDrag||this.startPanning)||e.enableCanvas||(e.duration=600,e.redraw=this.zooming.enableAnimation,e.zoomRedraw=this.zooming.enableAnimation);var h=[];e.highlightModule&&(e.legendSettings.enableHighlight||"None"!==e.highlightMode)&&e.highlightModule.highlightDataIndexes&&(h=e.highlightModule.highlightDataIndexes),e.refreshAxis(),e.refreshBound(),e.highlightModule&&(e.legendSettings.enableHighlight||"None"!==e.highlightMode)&&h&&(e.highlightModule.highlightDataIndexes=h),this.isZoomed||(e.zoomRedraw=this.zooming.enableAnimation),this.startPanning=!1,e.redraw=!1,e.duration=s,this.toolkit.isZoomed&&(e.zoomRedraw=!1,this.toolkit.isZoomed=!1)}},e.prototype.refreshAxis=function(e,t,o){var r=t.zoomSettings.mode;e.measureAxis(new i.Rect(t.initialClipRect.x,t.initialClipRect.y,t.initialClipRect.width,t.initialClipRect.height)),o.map(function(t,i){"Horizontal"===t.orientation&&"Y"!==r&&e.drawXAxisLabels(t,i,null,t.placeNextToAxisLine?t.updatedRect:t.rect),"Vertical"===t.orientation&&"X"!==r&&e.drawYAxisLabels(t,i,null,t.placeNextToAxisLine?t.updatedRect:t.rect)})},e.prototype.doZoom=function(e,t,o){var r,n=this,a=this.zoomingRect,l=this.zooming.mode;this.isPanning=e.zoomSettings.enablePan||this.isPanning;var s=[];this.zoomCompleteEvtCollection=[];for(var h=0,c=t;h<c.length;h++){var d=c[h];r={cancel:!1,name:"zoomComplete",axis:d,previousZoomFactor:d.zoomFactor,previousZoomPosition:d.zoomPosition,currentZoomFactor:d.zoomFactor,currentZoomPosition:d.zoomPosition,previousVisibleRange:d.visibleRange,currentVisibleRange:null},"Horizontal"===d.orientation?"Y"!==l&&(r.currentZoomPosition+=Math.abs((a.x-o.x)/o.width)*d.zoomFactor,r.currentZoomFactor*=a.width/o.width):"X"!==l&&(r.currentZoomPosition+=(1-Math.abs((a.height+(a.y-o.y))/o.height))*d.zoomFactor,r.currentZoomFactor*=a.height/o.height),parseFloat(r.currentZoomFactor.toFixed(3))<=.001&&(r.currentZoomFactor=r.previousZoomFactor,r.currentZoomPosition=r.previousZoomPosition),r.cancel||(d.zoomFactor=r.currentZoomFactor,d.zoomPosition=r.currentZoomPosition,e.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(r)),s.push({zoomFactor:d.zoomFactor,zoomPosition:d.zoomFactor,axisName:d.name,axisRange:d.visibleRange})}var p={cancel:!1,axisCollection:s,name:Ii};this.chart.trigger(Ii,p,function(){p.cancel?n.zoomCancel(t,n.zoomCompleteEvtCollection):(n.zoomingRect=new i.Rect(0,0,0,0),n.redrawOnZooming(e))})},e.prototype.redrawOnZooming=function(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!1);var o=i?this.toolkit.zoomCompleteEvtCollection:this.zoomCompleteEvtCollection;t&&this.performZoomRedraw(e);for(var r,n=0;n<o.length;n++)o[n].cancel||(r={cancel:!1,name:"zoomComplete",axis:e.axisCollections[n],previousZoomFactor:o[n].previousZoomFactor,previousZoomPosition:o[n].previousZoomPosition,currentZoomFactor:e.axisCollections[n].zoomFactor,currentZoomPosition:e.axisCollections[n].zoomPosition,currentVisibleRange:e.axisCollections[n].visibleRange,previousVisibleRange:o[n].previousVisibleRange},e.trigger("zoomComplete",r))},e.prototype.performMouseWheelZooming=function(e,t,i,o,r){var n,a,l,s=this,h="mozilla"!==this.browserName||this.isPointer?e.wheelDelta>0?1:-1:-e.detail/3>0?1:-1,c=this.zooming.mode,d=.5;this.isZoomed=!0,this.calculateZoomAxesRange(o),o.disableTrackTooltip=!0,this.performedUI=!0,this.isPanning=o.zoomSettings.enablePan||this.isPanning,this.zoomCompleteEvtCollection=[];for(var p,u=[],g=0,m=r;g<m.length;g++){var y=m[g];p={cancel:!1,name:"zoomComplete",axis:y,previousZoomFactor:y.zoomFactor,previousZoomPosition:y.zoomPosition,currentZoomFactor:y.zoomFactor,currentZoomPosition:y.zoomPosition,currentVisibleRange:null,previousVisibleRange:y.visibleRange},("Vertical"===y.orientation&&"X"!==c||"Horizontal"===y.orientation&&"Y"!==c)&&((n=(n=Math.max(Math.max(1/se(y.zoomFactor,0,1),1)+.25*h,1))>5e10?5e10:n)>=1&&(d=(d="Horizontal"===y.orientation?t/y.rect.width:1-i/y.rect.height)>1?1:d<0?0:d,a=1===n?1:se((h>0?.9:1.1)/n,0,1),l=1===n?0:y.zoomPosition+(y.zoomFactor-a)*d,y.zoomPosition===l&&y.zoomFactor===a||(a=l+a>1?1-l:a),parseFloat(p.currentZoomFactor.toFixed(3))<=.001?(p.currentZoomFactor=p.previousZoomFactor,p.currentZoomPosition=p.previousZoomPosition):(p.currentZoomFactor=a,p.currentZoomPosition=l)),p.currentZoomFactor===p.previousZoomFactor&&p.currentZoomPosition===p.previousZoomPosition&&(o.disableTrackTooltip=!1),p.cancel||(y.zoomFactor=p.currentZoomFactor,y.zoomPosition=p.currentZoomPosition,o.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(p))),u.push({zoomFactor:y.zoomFactor,zoomPosition:y.zoomFactor,axisName:y.name,axisRange:y.visibleRange})}var f={cancel:!1,axisCollection:u,name:Ii};this.chart.trigger(Ii,f,function(){f.cancel?s.zoomCancel(r,s.zoomCompleteEvtCollection):s.redrawOnZooming(o)})},e.prototype.performPinchZooming=function(e,t){if(this.zoomingRect.width>0&&this.zoomingRect.height>0||t.startMove&&t.crosshair.enable)return!1;this.calculateZoomAxesRange(t),this.isZoomed=!0,this.isPanning=!0,this.performedUI=!0,this.offset=t.delayRedraw?this.offset:t.chartAxisLayoutPanel.seriesClipRect,t.delayRedraw=!0,t.disableTrackTooltip=!0;var o=t.element.getBoundingClientRect(),r=this.touchStartList,n=this.touchMoveList,a=r[0].pageX-o.left,l=r[0].pageY-o.top,s=n[0].pageX-o.left,h=n[0].pageY-o.top,c=r[1].pageX-o.left,d=r[1].pageY-o.top,p=n[1].pageX-o.left,u=n[1].pageY-o.top,g=Math.abs(s-p)/Math.abs(a-c),m=Math.abs(h-u)/Math.abs(l-d),y=(this.offset.x-s)/g+a,f=(this.offset.y-h)/m+l,v=new i.Rect(y,f,this.offset.width/g,this.offset.height/m),b=s-g*a,x=h-m*l;if(!isNaN(g-g)&&!isNaN(m-m))switch(this.zooming.mode){case"XY":this.setTransform(b,x,g,m,t,!0);break;case"X":this.setTransform(b,0,g,1,t,!0);break;case"Y":this.setTransform(0,x,1,m,t,!0)}return this.calculatePinchZoomFactor(t,v)||(this.refreshAxis(t.chartAxisLayoutPanel,t,t.axisCollections),this.redrawOnZooming(t,!1)),!0},e.prototype.calculatePinchZoomFactor=function(e,t){var i,o,r,n,a,l,s,h,c,d=this.zooming.mode,p=[];this.zoomCompleteEvtCollection=[];for(var u=0;u<e.axisCollections.length;u++){var g=e.axisCollections[u];("Horizontal"===g.orientation&&"Y"!==d||"Vertical"===g.orientation&&"X"!==d)&&(h=g.zoomFactor,c=g.zoomPosition,s={cancel:!1,name:"zoomComplete",axis:g,previousZoomFactor:g.zoomFactor,previousZoomPosition:g.zoomPosition,currentZoomFactor:h,currentZoomPosition:c,previousVisibleRange:g.visibleRange,currentVisibleRange:null},"Horizontal"===g.orientation?(r=(a=t.x-this.offset.x)/(l=g.rect.width/this.zoomAxes[u].delta)+this.zoomAxes[u].min,n=(a=t.x+t.width-this.offset.x)/l+this.zoomAxes[u].min):(a=t.y-this.offset.y,l=g.rect.height/this.zoomAxes[u].delta,r=(-1*a+g.rect.height)/l+this.zoomAxes[u].min,n=(-1*(a=t.y+t.height-this.offset.y)+g.rect.height)/l+this.zoomAxes[u].min),i=Math.min(r,n),o=Math.max(r,n),c=(i-this.zoomAxes[u].actualMin)/this.zoomAxes[u].actualDelta,h=(o-i)/this.zoomAxes[u].actualDelta,s.currentZoomPosition=c<0?0:c,s.currentZoomFactor=h>1?1:h<.03?.03:h,s.cancel||(g.zoomFactor=s.currentZoomFactor,g.zoomPosition=s.currentZoomPosition,e.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(s)),p.push({zoomFactor:g.zoomFactor,zoomPosition:g.zoomFactor,axisName:g.name,axisRange:g.visibleRange}))}var m={cancel:!1,axisCollection:p,name:Ii};return!(m.cancel||(this.chart.trigger(Ii,m),!m.cancel))&&(this.zoomCancel(e.axisCollections,this.zoomCompleteEvtCollection),!0)},e.prototype.setTransform=function(e,t,i,o,r,n){r.enableCanvas||r.seriesElements.setAttribute("clip-path","url(#"+this.elementId+"_ChartAreaClipRect_)"),r.indicatorElements&&r.indicatorElements.setAttribute("clip-path","url(#"+this.elementId+"_ChartAreaClipRect_)");var a,l,s,h;if(null!==e&&null!==t)for(var c=0,d=r.visibleSeries;c<d.length;c++){var p=d[c];l=r.requireInvertedAxis?p.yAxis.rect.x:p.xAxis.rect.x,s=r.requireInvertedAxis?p.xAxis.rect.y:p.yAxis.rect.y,a="translate("+(e+(n?i*l:l))+","+(t+(n?o*s:s))+")",a=i||o?a+" scale("+i+" "+o+")":a,p.visible&&("Indicator"===p.category?p.seriesElement.parentNode.setAttribute("transform",a):r.enableCanvas||p.seriesElement.setAttribute("transform",a),h=he(r.element.id+"_Series_"+p.index+"_DataLabelCollections"),p.errorBarElement&&p.errorBarElement.setAttribute("transform",a),p.symbolElement&&p.symbolElement.setAttribute("transform",a),p.textElement&&(p.textElement.setAttribute("visibility","hidden"),p.shapeElement.setAttribute("visibility","hidden")),h&&(h.style.visibility="hidden"))}},e.prototype.calculateZoomAxesRange=function(e){for(var t,i,o=0;o<e.axisCollections.length;o++){var r=e.axisCollections[o];i=r.visibleRange,this.zoomAxes[o]?e.delayRedraw||(this.zoomAxes[o].min=i.min,this.zoomAxes[o].delta=i.delta):(t={actualMin:r.actualRange.min,actualDelta:r.actualRange.delta,min:i.min,delta:i.delta},this.zoomAxes[o]=t)}},e.prototype.showZoomingToolkit=function(e){var o,r,n=this.zooming.toolbarItems,a=e.chartAxisLayoutPanel.seriesClipRect,l=e.svgRenderer,s=this.isDevice?0===n.length?0:1:n.length,h=this.isDevice?i.measureText("Reset Zoom",{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).width:16,c=this.isDevice?i.measureText("Reset Zoom",{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).height:e.theme.indexOf("Fluent2")>-1||e.theme.indexOf("Bootstrap5")>-1?18:22,d=s*h+10*(s+1)+10*(s-1),p=this.zooming.toolbarPosition;switch(p.horizontalAlignment){case"Far":o=a.x+a.width-d-10;break;case"Near":o=a.x+10;break;case"Center":o=a.width/2-d/2+a.x}switch(o+=p.x,p.verticalAlignment){case"Bottom":r=a.height-a.y+c+10;break;case"Top":r=a.y+10;break;case"Middle":r=a.height/2-c/2+a.y}r+=p.y,o=null!=this.toolkit.dragHorizontalRatio?Math.min(Math.max(this.chart.border.width+2,this.toolkit.dragHorizontalRatio*this.chart.availableSize.width),this.chart.availableSize.width-d-this.chart.border.width-2):o,r=null!=this.toolkit.dragVerticalRatio?Math.min(Math.max(this.chart.border.width+2,this.toolkit.dragVerticalRatio*this.chart.availableSize.height),this.chart.availableSize.height-c-this.chart.border.width-2):r;var u,g=10,m=this.toolkit,y='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';if(y+='<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>',y+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',0===s||he(this.elementId+"_Zooming_KitCollection"))return!1;var f=l.createDefs();n=this.isDevice?["Reset"]:n,f.innerHTML=y,this.toolkitElements=l.createGroup({id:this.elementId+"_Zooming_KitCollection",transform:"translate("+o+","+r+")"}),this.toolkitElements.appendChild(f);var v="Tailwind3"===this.chart.theme?"#F9FAFB":"Fluent"===this.chart.theme?"#F3F2F1":"Material3"===this.chart.theme?"#FFFFFF":"Material3Dark"===this.chart.theme?"#1C1B1F":"Fluent2"===this.chart.theme?"#F5F5F5":"Fluent2Dark"===this.chart.theme?"#141414":"Fluent2HighContrast"===e.theme?"#000000":"Bootstrap5"===e.theme?"#E9ECEF":"Bootstrap5Dark"===e.theme?"#343A40":"Tailwind3Dark"!==e.theme||this.isDevice?"Tailwind"===this.chart.theme?"#F3F4F6":"#fafafa":"#1D2432";this.toolkitElements.appendChild(l.drawRectangle(new co(this.elementId+"_Zooming_Rect",v,{color:"transparent",width:1},1,new i.Rect(0,0,d,c+20),this.chart.theme.indexOf("Bootstrap5")>-1?1:4,this.chart.theme.indexOf("Bootstrap5")>-1?1:4)));var b=l.drawRectangle(new co(this.elementId+"_Zooming_Rect",v,{color:"transparent",width:1},.1,new i.Rect(0,0,d,c+20),4,4));"Tailwind"===this.chart.theme||"TailwindDark"===this.chart.theme?b.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):"Tailwind3Dark"===this.chart.theme?b.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):"Material3"===this.chart.theme||"Material3Dark"===this.chart.theme||"Fluent2"===this.chart.theme||"Fluent2Dark"===this.chart.theme||this.chart.theme.indexOf("Bootstrap5")>-1?(b.setAttribute("filter","drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.15)) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3))"),b.setAttribute("fill","Material3"===this.chart.theme?"#FFFFFF":"Fluent2"===this.chart.theme?"#F5F5F5":"Bootstrap5"===this.chart.theme?"#E9ECEF":"Bootstrap5Dark"===this.chart.theme?"#343A40":"#1C1B1F"),b.setAttribute("rx",this.chart.theme.indexOf("Bootstrap5")>-1?"1px":"4px"),b.setAttribute("ry",this.chart.theme.indexOf("Bootstrap5")>-1?"1px":"4px"),b.setAttribute("opacity","1")):("Tailwind3"===e.theme&&b.setAttribute("fill","#F9FAFB"),b.setAttribute("filter","url(#chart_shadow)")),this.toolkitElements.appendChild(b);for(var x,S=!1,C=1;C<=s;C++){switch(x=n[C-1],u=l.createGroup({transform:"translate("+g+","+(this.isDevice?10:e.theme.indexOf("Fluent2")>-1||e.theme.indexOf("Bootstrap5")>-1?11:13)+")"}),x){case"Pan":m.createPanButton(u,this.toolkitElements),S=!0;break;case"Zoom":m.createZoomButton(u,this.toolkitElements);break;case"ZoomIn":m.createZoomInButton(u,this.toolkitElements,e);break;case"ZoomOut":m.createZoomOutButton(u,this.toolkitElements,e);break;case"Reset":m.createResetButton(u,this.toolkitElements,e,this.isDevice)}g+=h+20}if(this.toolkitElements.setAttribute("opacity",this.isDevice?"1":""+this.zoomkitOpacity),this.toolkitElements.setAttribute("cursor","auto"),e.enableCanvas){var F=document.createElement("div");F.id=e.element.id+"_zoom",F.style.cssText="position:absolute; z-index:1";var w=e.availableSize.height/2,L=e.svgRenderer.createSvg({id:e.element.id+"_zoomkit_svg",width:e.availableSize.width,height:w});L.style.position="absolute",L.appendChild(this.toolkitElements),F.appendChild(L),document.getElementById(this.elementId+"_Secondary_Element").appendChild(F)}else e.svgObject.appendChild(this.toolkitElements);return this.isDevice||(t.EventHandler.add(this.toolkitElements,"mousemove touchstart",this.zoomToolkitMove,this),t.EventHandler.add(this.toolkitElements,"mouseleave touchend",this.zoomToolkitLeave,this),this.isPanning&&S&&m.pan()),!0},e.prototype.applyZoomToolkit=function(e,t){var i=this.isAxisZoomed(t);i?(this.showZoomingToolkit(e),this.isZoomed=!0):e.zoomSettings.showToolbar?(this.isZoomed=i,this.showZoomingToolkit(e)):(this.toolkit.removeTooltip(),this.isPanning=!1,this.isZoomed=!1,e.isZoomed=!1,e.svgObject.setAttribute("cursor","auto"))},e.prototype.zoomCancel=function(e,t){for(var i=0,o=t;i<o.length;i++)for(var r=o[i],n=0,a=e;n<a.length;n++){var l=a[n];if(l.name===r.axis.name){l.zoomFactor=r.previousZoomFactor,l.zoomPosition=r.previousZoomPosition,l.visibleRange=r.previousVisibleRange;break}}},e.prototype.isAxisZoomed=function(e){for(var t=!1,i=0,o=e;i<o.length;i++){var r=o[i];t=t||1!==r.zoomFactor||0!==r.zoomPosition}return t},e.prototype.zoomToolkitMove=function(){var e=this.toolkitElements;return this.zoomkitOpacity=1,e.setAttribute("opacity",""+this.zoomkitOpacity),!1},e.prototype.zoomToolkitLeave=function(){var e=this.toolkitElements;return this.zoomkitOpacity=1,e.setAttribute("opacity",""+this.zoomkitOpacity),!1},e.prototype.addEventListener=function(){this.chart.isDestroyed||(t.EventHandler.add(this.chart.element,this.wheelEvent,this.chartMouseWheel,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchStartEvent,this.mouseDownHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.chart.on(this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){t.EventHandler.remove(this.chart.element,this.wheelEvent,this.chartMouseWheel),this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchStartEvent,this.mouseDownHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler),this.chart.off(this.cancelEvent,this.mouseCancelHandler))},e.prototype.chartMouseWheel=function(e){var t=this.chart,i=t.element.getBoundingClientRect(),o=he(t.svgId).getBoundingClientRect(),r=e.clientX-i.left-Math.max(o.left-i.left,0),n=e.clientY-i.top-Math.max(o.top-i.top,0);return this.zooming.enableMouseWheelZooming&&V(r,n,t.chartAxisLayoutPanel.seriesClipRect)&&(e.preventDefault(),this.performMouseWheelZooming(e,r,n,t,t.axisCollections)),!1},e.prototype.mouseMoveHandler=function(e){var t=this.chart,i=null;"touchmove"===e.type&&(e.preventDefault&&this.isIOS&&(this.isPanning||t.isDoubleTap||this.zooming.enablePinchZooming&&this.touchStartList.length>1)&&e.preventDefault(),i=e.touches),t.isChartDrag&&(t.isTouch&&(this.touchMoveList=this.addTouchPointer(this.touchMoveList,e,i),this.zooming.enablePinchZooming&&this.touchMoveList.length>1&&this.touchStartList.length>1&&this.performPinchZooming(e,t)),this.renderZooming(e,t,t.isTouch))},e.prototype.mouseDownHandler=function(e){var t,i=this.chart,o=null;"touchstart"===e.type?(o=e.touches,t=e.target):t=e.target,-1===t.id.indexOf(i.element.id+"_Zooming_")&&(i.zoomSettings.enablePinchZooming||i.zoomSettings.enableSelectionZooming||this.chart.zoomModule.isPanning)&&V(i.previousMouseMoveX,i.previousMouseMoveY,i.chartAxisLayoutPanel.seriesClipRect)&&(i.isChartDrag=!0),i.isTouch&&(this.touchStartList=this.addTouchPointer(this.touchStartList,e,o))},e.prototype.mouseUpHandler=function(e){var t=this.chart,i=-1===e.target.id.indexOf(t.element.id+"_ZoomOut_")||-1===e.target.id.indexOf(t.element.id+"_ZoomIn_");(t.isChartDrag||i)&&this.redrawOnZooming(t,!0,!0),t.isTouch&&(t.isDoubleTap&&V(t.mouseX,t.mouseY,t.chartAxisLayoutPanel.seriesClipRect)&&1===this.touchStartList.length&&this.isZoomed&&this.toolkit.reset(e),this.touchStartList=[],t.isDoubleTap=!1)},e.prototype.mouseCancelHandler=function(){this.isZoomed&&this.performZoomRedraw(this.chart),this.pinchTarget=null,this.touchStartList=[],this.touchMoveList=[]},e.prototype.addTouchPointer=function(e,t,i){if(i){e=[];for(var o=0,r=i.length;o<r;o++)e.push({pageX:i[o].clientX,pageY:i[o].clientY,pointerId:null})}else if(0===(e=e||[]).length)e.push({pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId});else for(var o=0,n=e.length;o<n;o++)e[o].pointerId===t.pointerId?e[o]={pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId}:e.push({pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId});return e},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.removeEventListener()},e}(),ta=function(){function e(e){this.isPointDragging=!1,this.chart=e}return e.prototype.pointMouseDown=function(){var e=this.chart,t=new Lo(e),i=t.getData(),o=e.zoomSettings.enableSelectionZooming||e.zoomSettings.enablePinchZooming;!i.point||!t.insideRegion&&i.series.isRectSeries||(this.seriesIndex=i.series.index,this.pointIndex=i.point.index,e.series[this.seriesIndex].dragSettings.enable&&!o&&(e.trigger("dragStart",{series:i.series,seriesIndex:this.seriesIndex,pointIndex:this.pointIndex,point:i.point,oldValue:e.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue}),e.isPointMouseDown=!0,e.zoomSettings.enableDeferredZooming=!1))},e.prototype.pointMouseMove=function(e){var t,i=this.chart;"touchmove"===e.type&&e.preventDefault&&e.preventDefault();var o=new Lo(i),r=o.getData();r.series.dragSettings.enable&&r.point&&(o.insideRegion||!r.series.isRectSeries)?this.getCursorStyle(r):i.svgObject.style.cursor="null",i.isPointMouseDown&&((t=i.series[this.seriesIndex]).type.indexOf("Spline")>-1&&i[U(t.type)+"SeriesModule"].findSplinePoint(t),this.pointDragging(this.seriesIndex,this.pointIndex))},e.prototype.getCursorStyle=function(e){var t=this.chart;e.series.type.indexOf("Stacking")>-1?t.svgObject.style.cursor="":"Bar"===e.series.type&&t.isTransposed?t.svgObject.style.cursor="ns-resize":t.isTransposed||"Bar"===e.series.type?t.svgObject.style.cursor="ew-resize":t.svgObject.style.cursor="ns-resize"},e.prototype.pointDragging=function(e,i){var o,r,n,a=this.chart,l=[],s=a.visibleSeries[e],h=s.dragSettings,c=s.xAxis,d=s.yAxis,p=s.isRectSeries?1:0,u=X(c,d,a.requireInvertedAxis);"Bar"===s.type?(o=a.isTransposed?u.y+u.height-a.mouseY:a.mouseX-u.x,r=a.isTransposed?u.height:u.width):(o=a.isTransposed?a.mouseX-u.x:u.y+u.height-a.mouseY,r=a.isTransposed?u.width:u.height),n=(n=d.isAxisInverse?1-o/r:o/r)*d.visibleRange.delta+d.visibleRange.min;var g=null!==d.minimum?d.visibleRange.min+p:t.isNullOrUndefined(h.minY)?n:h.minY;if((null!==d.maximum?d.visibleRange.max+p:t.isNullOrUndefined(h.maxY)?n:h.maxY)>=n&&g<=n){s.points[i].yValue=s.points[i].y=a.dragY="Logarithmic"===d.valueType?Math.pow(d.logBase,n):parseFloat(n.toFixed(2)),s.points[i].interior=h.fill;for(var m=0;m<s.points.length;m++)l[m]=s.points[m].yValue;s.yMin=Math.min.apply(null,l),s.yMax=Math.max.apply(null,l),this.isPointDragging=!0,a.refreshBound(),a.trigger("drag",{seriesIndex:e,pointIndex:i,series:s,point:s.points[i],oldValue:a.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:s.points[i].yValue}),a.zoomRedraw=!1}},e.prototype.pointMouseUp=function(){var e=this.chart;e.isPointMouseDown&&e.series[this.seriesIndex].dragSettings.enable&&(e.trigger("dragEnd",{series:e.series[this.seriesIndex],point:e.visibleSeries[this.seriesIndex].points[this.pointIndex],seriesIndex:this.seriesIndex,pointIndex:this.pointIndex,oldValue:e.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue}),e.visibleSeries[this.seriesIndex].points[this.pointIndex].y=e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue,e.isPointMouseDown=!1,this.isPointDragging=!1,this.seriesIndex=this.pointIndex=void 0)},e.prototype.getModuleName=function(){return"DataEditing"},e.prototype.destroy=function(){},e}(),ia=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),oa=function(e){function i(t){var i=e.call(this,t)||this;return i.chart=t,i.renderer=t.renderer,i.wireEvents(),i}return ia(i,e),i.prototype.wireEvents=function(){this.chart.isDestroyed||this.chart.stockChart&&this.chart.stockChart.onPanning||this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.chart.isDestroyed||this.chart.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[],this.isSeriesMode="Series"===e.highlightMode},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"Highlight"},i.prototype.destroy=function(){this.unWireEvents()},i}(Zn),ra=function(){function e(e){this.padding=6,this.chart=e}return e.prototype.initPrivateVariables=function(e){this.chart=e,this.elementID=e.element.id,this.svgRenderer=e.renderer},e.prototype.render=function(e,t,i,o){if(this.chart&&this.svgRenderer||this.initPrivateVariables(t),!t.enableCanvas&&!e.lastValueLabelElement){var r=this.elementID+"_LastValueLabel_Group_"+e.index;e.lastValueLabelElement=t.renderer.createGroup({id:r})}this.renderLastValue(e,t,i,o||!1)},e.prototype.renderLastValue=function(e,t,o,r){var n="HighLowOpenClose"===e.seriesType,a="HighLow"===e.seriesType;if(!(e.visiblePoints.length<1)){var l=e.visiblePoints[e.visiblePoints.length-1],s=e.yAxis,h=e.clipRect,c=this.elementID+"_LastValueLabel_"+e.index,d=n?parseFloat(l.close):a?parseFloat(l.low):l.yValue;if(!(!("Candle"===e.type?l.symbolLocations&&l.symbolLocations.length>0:n?l.regions&&l.regions.length>0:l.symbolLocations&&l.symbolLocations.length>0)||d>s.visibleRange.max||d<s.visibleRange.min)){var p=e.chart.requireInvertedAxis?h.x+("Candle"===e.type?l.symbolLocations[1].x:n?l.open<=l.close?l.regions[1].x:l.regions[2].x:l.symbolLocations[0].x):h.x,u=e.chart.requireInvertedAxis?h.y:h.y+("Candle"===e.type?l.symbolLocations[1].y:n?l.open<=l.close?l.regions[1].y:l.regions[2].y:l.symbolLocations[0].y),g="translate("+(p=!t.requireInvertedAxis||!a&&"Candle"!==e.type||s.isInversed?p:p-l.regions[a?0:1].width)+","+(u=t.requireInvertedAxis||!a&&"Candle"!==e.type||s.isInversed?u:u+l.regions[a?0:1].height)+")",m=e.lastValueLabelElement?e.lastValueLabelElement.getAttribute("transform"):null,y=s.labelFormat,f=d.toString();y&&y.indexOf("n")>-1||(f=d%1==0?d.toFixed(0):"0"===d.toFixed(2).slice(-1)?d.toFixed(1):d.toFixed(2));var v=y&&null!==y.match("{value}")?y.replace("{value}",s.format(parseFloat(f))):s.format(parseFloat(f)),b=o.font,x=i.measureText(v,b,this.chart.themeStyle.crosshairLabelFont),S=x.width+2*this.padding,C=x.height+2*this.padding,F=t.requireInvertedAxis?t.enableCanvas?s.rect.y:s.rect.y-u:t.enableCanvas?s.rect.x:s.rect.x-p,w="Outside"===s.tickPosition?s.majorTickLines.height:0,L=s.labelPadding,P=2*o.border.width,A=t.requireInvertedAxis?s.maxLabelSize.height:s.maxLabelSize.width,M="Outside"===s.labelPosition,D=t.enableRtl&&!t.requireInvertedAxis?!s.opposedPosition:s.opposedPosition,k=t.requireInvertedAxis?(t.enableCanvas?p:0)-S/2:M?F+(D?L+w-P:-(L+w+P+A)):F+(D?-S:0),R=t.requireInvertedAxis?M?F+(D?-(C+L+w):L+w+P):F+(D?0:-C):(t.enableCanvas?u:0)-C/2;k=Math.max(-p+P,Math.min(k,t.availableSize.width-S-P-p)),R=Math.max(-u+P,Math.min(R,t.availableSize.height-C-P-u));var T=new i.Rect(k,R,S,C);t.lastValueLabelCollections.push(T);var E=this.chart.renderer.drawRectangle(new co(this.elementID+"_LastValueLabel_Background_"+e.index,o.background||t.themeStyle.crosshairFill,{width:o.border.width||1,color:o.border.color},1,T,o.rx,o.ry));be(this.chart.enableCanvas,e.lastValueLabelElement,E,this.chart.redraw);var _=t.requireInvertedAxis?(t.enableCanvas?u:0)+(D?h.height:0):t.enableCanvas?u:0,I="M "+(t.requireInvertedAxis?t.enableCanvas?p:0:D?t.enableCanvas?p:0:t.enableCanvas?p+h.width:h.width)+" "+_+" L "+(t.requireInvertedAxis?t.enableCanvas?p:0:D?k:k+S)+" "+(t.requireInvertedAxis?D?R+C:R:t.enableCanvas?u:0),O=this.chart.renderer.drawPath(new i.PathOption(this.elementID+"_LastValueLine_"+e.index,"none",o.lineWidth||1,o.lineColor||t.themeStyle.crosshairLine,1,o.dashArray||"",I));be(this.chart.enableCanvas,e.lastValueLabelElement,O,this.chart.redraw),je(this.chart.renderer,new i.TextOption(c,T.x+T.width/2,T.y+T.height/2+.35*x.height,"middle",v),b,b.color||t.themeStyle.crosshairLabelFont.color,e.lastValueLabelElement,!1,t.redraw,!1,!1,null,null,null,null,t.enableCanvas,null,this.chart.themeStyle.crosshairLabelFont,new mo(T.x+T.width/2,T.y+T.height/2+.35*x.height)),!this.chart.enableCanvas&&r&&m&&this.chart.enableAnimation?this.animateLastValueLabel(e.lastValueLabelElement,m,p,u,e.chart.duration):this.chart.enableCanvas||(e.lastValueLabelElement.setAttribute("transform",g),e.lastValueLabelElement.setAttribute("visibility",(t.stockChart?t.stockChart.initialRender:t.animateSeries)&&e.animation.enable?"hidden":"visible"))}}},e.prototype.animateLastValueLabel=function(e,i,o,r,n){var a=i.split(/[(),\s]+/),l=parseFloat(a[1])||0,s=parseFloat(a[2])||0,h=500;t.isNullOrUndefined(n)||(h=n),new t.Animation({}).animate(t.createElement("div"),{duration:h,progress:function(t){var i=Z(t.timeStamp,s,r-s,t.duration),n="translate("+Z(t.timeStamp,l,o-l,t.duration)+","+i+")";e.setAttribute("transform",n)},end:function(){var t="translate("+o+","+r+")";e.setAttribute("transform",t)}})},e.prototype.getModuleName=function(){return"LastValueLabel"},e.prototype.destroy=function(){},e}(),na=function(){function e(e){this.errorHeight=0,this.dataLabelRectCollection={},this.chart=e}return e.prototype.initPrivateVariables=function(e,t){var i="",o="",r=e.chart.renderer,n=void 0===e.index?e.category:e.index;"Cartesian"===e.chart.chartAreaType&&(i="translate("+e.clipRect.x+","+e.clipRect.y+")",o="url(#"+this.chart.element.id+"_ChartSeriesClipRect_"+n+")"),t.dataLabel.visible&&!this.chart.enableCanvas&&(e.shapeElement=r.createGroup({id:this.chart.element.id+"ShapeGroup"+n,transform:i,"clip-path":"url(#"+this.chart.element.id+"_ChartSeriesClipRect_"+n+")"}),e.textElement=r.createGroup({id:this.chart.element.id+"TextGroup"+n,transform:i,"clip-path":o}),e.textElement.setAttribute("aria-hidden","true")),this.markerHeight="Scatter"===e.type||t.visible?t.height/2:0,this.commonId=this.chart.element.id+"_Series_"+n+"_Point_",this.calculateErrorHeight(e,e.marker.dataLabel.position),this.chartBackground="transparent"===this.chart.chartArea.background?this.chart.background||this.chart.themeStyle.background:this.chart.chartArea.background},e.prototype.calculateErrorHeight=function(e,t){if(!e.errorBar.visible)return null;if(e.errorBar.visible&&"PolarRadar"!==this.chart.chartAreaType){var i=e.errorBar.direction,o=this.chart.errorBarModule.positiveHeight,r=this.chart.errorBarModule.negativeHeight;this.isRectSeries(e)?("Top"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Minus"===i?r:0),"Outer"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Plus"===i?o:0)):("Top"!==t&&"Outer"!==t&&"Auto"!==t||("Both"!==i&&"Plus"!==i||e.chart.isTransposed?this.errorHeight=0:this.errorHeight=o),"Bottom"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Minus"===i?r:0))}else this.errorHeight=0},e.prototype.isRectSeries=function(e){return e.isRectSeries||"RangeArea"===e.type||"SplineRangeArea"===e.type||"RangeStepArea"===e.type},e.prototype.render=function(e,i,o){this.initPrivateVariables(e,e.marker),this.inverted=i.requireInvertedAxis,this.yAxisInversed=e.yAxis.isAxisInverse;var r=i.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections",n=t.createElement("div",{id:r}),a=d(e);if(e.visible)for(var l=0;l<a.length;l++)this.renderDataLabel(e,a[l],n,o);n.childElementCount&&(i.enableCanvas?he(i.element.id+"_Secondary_Element").appendChild(n):be(i.enableCanvas,he(i.element.id+"_Secondary_Element"),n,i.redraw,!1,"x","y",null,"",!1,!1,null,i.duration))},e.prototype.renderDataLabel=function(e,o,r,n){if(!n.showZero&&(0===o.y||0===o.y&&"Zero"===e.emptyPointSettings.mode))return null;this.margin=n.margin;var a,l,s,h,c,d,p,g,m,y,f,v=[],b={x:0,y:0},x=e.clipRect,S=!1,C=[];n.angle="Rotate90"===n.labelIntersectAction?90:n.angle,n.enableRotation="Rotate90"===n.labelIntersectAction||n.enableRotation;var F=d=n.angle,w={width:n.border.width,color:n.border.color},L=t.extend({},t.getValue("properties",n.font),null,!0);if(o.symbolLocations.length&&o.symbolLocations[0]||"BoxAndWhisker"===e.type&&o.regions.length){a=(v=null!==o.text?Ce(o,e,this.chart):[]).length;for(var P=0;P<a;P++){var A={cancel:!1,name:"textRender",series:e,point:o,text:v[P],border:w,color:n.fill,template:n.template,font:L,location:b,textSize:i.measureText(v[P],n.font,this.chart.themeStyle.datalabelFont)};if(this.chart.trigger("textRender",A),!A.cancel)if(this.fontBackground=A.color,this.isDataLabelShape(A),this.markerHeight="Bubble"===e.type?o.regions[0].height/2:this.markerHeight,null!==A.template)this.createDataLabelTemplate(r,e,n,o,A,P,this.chart.redraw);else{m=n.enableRotation?u(n.font,A.text,n.angle,this.chart,this.chart.themeStyle.datalabelFont):i.measureText(A.text,n.font,this.chart.themeStyle.datalabelFont);var D=this.calculateTextPosition(o,e,m,n,P),k=new i.Rect(D.x+x.x,D.y+x.y,D.width,D.height);if(n.enableRotation){var R=this.getRectanglePoints(k);if(p=D.x+D.width/2,g=D.y+D.height/2,!(S="Rotate90"!==n.labelIntersectAction&&-90!==F&&this.isDataLabelOverlapWithChartBound(R,this.chart,{x:0,y:0,width:0,height:0}))){this.chart.rotatedDataLabelCollections.push(R);for(var T=this.chart.rotatedDataLabelCollections.length-1,E=T;E>=0;E--)if(this.chart.rotatedDataLabelCollections[T]&&this.chart.rotatedDataLabelCollections[E-1]&&M(this.chart.rotatedDataLabelCollections[T],this.chart.rotatedDataLabelCollections[E-1])){S=!0,this.chart.rotatedDataLabelCollections[T]=null;break}}}else S=we(D,this.chart.dataLabelCollections,x);if(S&&"None"!==n.labelIntersectAction)he(this.commonId+o.index+"_Text_0")&&e.chart.redraw&&e.currentData&&he(this.commonId+o.index+"_Text_0").remove();else{var _=he(this.commonId+o.index+"_TextShape_"+P);_&&(f={x:+_.getAttribute("x"),y:+_.getAttribute("y")}),this.chart.dataLabelCollections.push(k),this.isShape&&(y=this.chart.renderer.drawRectangle(new co(this.commonId+o.index+"_TextShape_"+P,A.color,A.border,n.opacity,D,n.rx,n.ry,"",n.border.dashArray),new Int32Array([x.x,x.y])),e.shapeElement&&be(this.chart.enableCanvas,e.shapeElement,y,this.chart.redraw,!0,"x","y",f));var I=ke(Re("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("HighContrast")>-1?"black":"white":this.fontBackground)),O=Math.round((299*I.r+587*I.g+114*I.b)/1e3);l=D.x+this.margin.left+m.width/2+b.x,s=n.enableRotation&&"PolarRadar"!==this.chart.chartAreaType?D.y+this.margin.top+m.height/2+m.width/4+("Auto"===n.position?o.regions[0].width/10:0)+b.y:D.y+this.margin.top+3*m.height/4+b.y,b={x:0,y:0},0!==F&&n.enableRotation?(h=p,c=g,d=F>360?F-360:F<-360?F+360:F):(d=0,h=D.x,c=D.y,l-="Cartesian"===this.chart.chartAreaType&&l+m.width/2>x.width?!this.chart.requireInvertedAxis&&l>x.width?0:l+m.width/2-x.width:0,s-=s+m.height>x.y+x.height&&!(e.type.indexOf("Bar")>-1)?s+m.height-(x.y+x.height):0);var z="Rotate90"===n.labelIntersectAction?"Top"===n.position?"start":"Middle"===n.position?"middle":"end":-90===F&&n.enableRotation?"Top"===n.position?"end":"Middle"===n.position?"middle":"start":"middle",B=void 0;this.chart.redraw&&document.getElementById(this.commonId+o.index+"_Text_"+P)&&(B=document.getElementById(this.commonId+o.index+"_Text_"+P).textContent),A.text&&C.push(je(this.chart.renderer,new i.TextOption(this.commonId+(null!==e.removedPointIndex&&e.removedPointIndex<=o.index?o.index+1:o.index)+"_Text_"+P,l,s,z,A.text,"rotate("+d+","+h+","+c+")","auto",d),A.font,A.font.color||("Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":O>=128||"Hilo"===e.type||"HiloOpenClose"===e.type?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"),e.textElement,!1,this.chart.redraw,!0,!1,e.chart.duration,e.clipRect,null,null,this.chart.enableCanvas,null,this.chart.themeStyle.datalabelFont,new mo(h,c))),this.isShape&&n.enableRotation&&y.setAttribute("transform","rotate("+n.angle+", "+h+", "+c+")"),this.chart.stackLabels.visible&&e.type.indexOf("Stacking")>-1&&(this.dataLabelRectCollection=this.dataLabelRectCollection?this.dataLabelRectCollection:{},this.dataLabelRectCollection[this.commonId+(null!==e.removedPointIndex&&e.removedPointIndex<=o.index?o.index+1:o.index)+"_Text_"+P]=k,this.dataLabelRectCollection[this.commonId+o.index+"_TextShape_"+P]=k),null!==e.removedPointIndex&&e.removedPointIndex<=o.index&&(e.textElement.lastChild.id=this.commonId+o.index+"_Text_"+P),this.chart.redraw&&B!==A.text&&We(e.textElement.querySelector("#"+this.commonId+o.index+"_Text_"+P),this.chart.duration,parseFloat(B),parseFloat(A.text),e.marker.dataLabel.format||e.yAxis.labelFormat)}}}}return C},e.prototype.renderStackLabels=function(){var e=this.chart.renderer.createGroup({id:this.chart.element.id+"_StackLabelGroup"});!this.chart.enableCanvas&&e&&this.chart.seriesElements.appendChild(e);var t={},i={},o=[],r=[],n=0;if(this.chart.visibleSeries&&this.chart.visibleSeries.length>0){for(var a=0;a<this.chart.visibleSeries.length;a++)r=Object.keys(o),o[(h=this.chart.visibleSeries[a]).stackingGroup]?void 0!==o[h.stackingGroup]&&o[h.stackingGroup].push(h):(o[h.stackingGroup]=[],o[h.stackingGroup].push(h));if(""!==r[0])for(var l=0;l<r.length;l++){t={},i={};for(s=o[r[l]][o[r[l]].length-1].index;s>=0;s--){h=this.chart.visibleSeries[s];if(!this.chart.enableCanvas&&h.animation.enable&&this.chart.animateSeries&&e.setAttribute("visibility","hidden"),h.visible&&h.points&&h.points.length>0)for(c=0;c<h.points.length;c++){d=h.points[c];!t[p=String(d.x)]&&h.stackedValues.endValues[c]>0&&d.visible&&(t[p]=d),!i[p]&&h.stackedValues.endValues[c]<0&&d.visible&&(i[p]=d)}}n=this.calculateStackLabel(t,i,e,n)}else{for(var s=this.chart.visibleSeries.length-1;s>=0;s--){var h=this.chart.visibleSeries[s];if(!this.chart.enableCanvas&&h.animation.enable&&this.chart.animateSeries&&e.setAttribute("visibility","hidden"),h.visible&&h.points&&h.points.length>0)for(var c=0;c<h.points.length;c++){var d=h.points[c],p=String(d.x);!t[p]&&h.stackedValues.endValues[c]>0&&d.visible&&(t[p]=d),!i[p]&&h.stackedValues.endValues[c]<0&&d.visible&&(i[p]=d)}}this.calculateStackLabel(t,i,e,n)}}},e.prototype.calculateStackLabel=function(e,o,r,n){var a=this;return[e,o].forEach(function(l,s){if(l){var h,c=0;Object.keys(l).forEach(function(d){var p=l[d].series.stackedValues.endValues[l[d].index],u=o[d]?o[d].series.stackedValues.endValues[o[d].index]:0;if(0===s?(c=p+u,h=l[d]):e[d]||(c=p,h=l[d]),h&&h.symbolLocations[0]&&V(h.symbolLocations[0].x+h.series.clipRect.x,h.symbolLocations[0].y+h.series.clipRect.y,h.series.clipRect)){var g=h.series,m=h.symbolLocations[0],y=a.chart.stackLabels.format,f=c%1==0?c.toFixed(0):"0"===c.toFixed(2).slice(-1)?c.toFixed(1):c.toFixed(2);y&&(f=null!==y.match("{value}")?y.replace("{value}",f.toString()):a.chart.intl.getNumberFormat({format:y,useGrouping:a.chart.useGroupingSeparator})(c));var v=t.extend({},t.getValue("properties",a.chart.stackLabels.font),null,!0),b={cancel:!1,name:"textRender",series:g,point:null,text:f,border:a.chart.stackLabels.border,color:a.chart.stackLabels.fill,template:null,font:v,location:null,textSize:i.measureText(f,a.chart.stackLabels.font,a.chart.themeStyle.datalabelFont)};if(a.chart.trigger("textRender",b),!b.cancel){var x=i.measureText(b.text,b.font,a.chart.themeStyle.datalabelFont);void 0===a.chartBackground&&(a.chartBackground="transparent"===a.chart.chartArea.background?a.chart.background||a.chart.themeStyle.background:a.chart.chartArea.background);var S=ke(Re("transparent"===b.color&&"transparent"===a.chartBackground?a.chart.theme.indexOf("Dark")>-1||a.chart.theme.indexOf("HighContrast")>-1?"black":"white":"transparent"!==a.chart.stackLabels.fill?a.chart.stackLabels.fill:a.chartBackground)),C=Math.round((299*S.r+587*S.g+114*S.b)/1e3),F=x.width+b.border.width+a.chart.stackLabels.margin.left+a.chart.stackLabels.margin.right-5,w=a.chart.requireInvertedAxis?5:a.chart.primaryYAxis.isInversed?0===s?x.height+5:-10:0===s?-10:x.height+5,L=a.chart.requireInvertedAxis?a.chart.primaryYAxis.isInversed?0===s?-(10+x.width/2):10+x.width/2:0===s?10+x.width/2:-(10+x.width/2):0;L+="Far"===b.font.textAlignment?F:"Near"===b.font.textAlignment?-F:0;var P=Math.max(g.clipRect.x+x.width,Math.min(L+g.clipRect.x+m.x,g.clipRect.x+g.clipRect.width-x.width)),A=Math.max(g.clipRect.y+x.height,Math.min(w+g.clipRect.y+m.y-(a.chart.stackLabels.angle>0&&!a.chart.requireInvertedAxis?x.width/2:0),g.clipRect.y+g.clipRect.height-x.height));a.chart.enableCanvas&&(P-=g.clipRect.x,A-=g.clipRect.y);var M=new i.Rect(P-x.width/2-a.chart.stackLabels.margin.left,A-x.height-a.chart.stackLabels.margin.top,x.width+(a.chart.stackLabels.margin.left+a.chart.stackLabels.margin.right),x.height+5+(a.chart.stackLabels.margin.top+a.chart.stackLabels.margin.bottom)),D=a.chart.renderer.drawRectangle(new co(a.chart.element.id+"StackLabel_TextShape_"+n,b.color,b.border,null,M,a.chart.stackLabels.rx,a.chart.stackLabels.ry,"",null),new Int32Array([m.x,m.y]));D.setAttribute("transform","rotate("+a.chart.stackLabels.angle+", "+P+", "+A+")"),be(a.chart.enableCanvas,r,D,a.chart.redraw),je(a.chart.renderer,new i.TextOption(a.chart.element.id+"_StackLabel_"+n,P,A,"middle",b.text,"rotate("+a.chart.stackLabels.angle+", "+P+", "+A+")","auto",a.chart.stackLabels.angle),b.font,b.font.color||("Bootstrap5"===a.chart.theme?"#212529":"Bootstrap5Dark"===a.chart.theme?"#DEE2E6":C>=128?a.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":a.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"),r,null,a.chart.redraw,!0,null,a.chart.duration,g.clipRect,null,null,a.chart.enableCanvas,null,a.chart.themeStyle.datalabelFont,null),"StackingLine"!==g.type&&"StackingArea"!==g.type||document.querySelectorAll('[id^="'+a.chart.element.id+"_Series_"+g.index+"_Point_"+h.index+'_Text_"], \n                                [id^="'+a.chart.element.id+"_Series_"+g.index+"_Point_"+h.index+'_TextShape_"]').forEach(function(e){e.id&&(e.style.visibility="hidden",e.setAttribute("data-collide","true"))});for(var k in a.dataLabelRectCollection)if(Object.prototype.hasOwnProperty.call(a.dataLabelRectCollection,k)){var R=a.dataLabelRectCollection[k];if(R&&we(M,[R],{x:0,y:0,height:0,width:0})){var T=document.getElementById(k);T&&(T.style.visibility="hidden",T.setAttribute("data-collide","true"))}}}}n++})}}),n},e.prototype.getRectanglePoints=function(e){return[new mo(e.x,e.y),new mo(e.x+e.width,e.y),new mo(e.x+e.width,e.y+e.height),new mo(e.x,e.y+e.height)]},e.prototype.isDataLabelOverlapWithChartBound=function(e,t,i){for(var o=0;o<e.length;o++)if(!V(e[o].x+i.x,e[o].y+i.y,t.initialClipRect))return!0;return!1},e.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l){this.margin={left:0,right:0,bottom:0,top:0};var s=i.clipRect,h=ue(t.createElement("div",{id:this.chart.element.id+"_Series_"+(void 0===i.index?i.category:i.index)+"_DataLabel_"+r.index+(a?"_"+a:""),styles:"position: absolute;background-color:"+n.color+";"+ge(o.font,this.chart.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),r.index,this.chart.enableHtmlSanitizer?this.chart.sanitize(n.template):n.template,this.chart,r,i,this.chart.element.id+"_DataLabel",a);this.calculateTemplateLabelSize(e,h,r,i,o,a,s,l)},e.prototype.calculateTemplateLabelSize=function(e,t,o,r,n,a,l,s,h){var c=me(t,s,h),d=this.calculateTextPosition(o,r,{width:c.width,height:c.height},n,a),p=!1;h&&(p=0===c.width||0===c.height),t.style.left=("PolarRadar"===this.chart.chartAreaType?0:r.clipRect.x)+d.x-0+"px",t.style.top=("PolarRadar"===this.chart.chartAreaType?0:r.clipRect.y)+d.y+0+"px";var u=r.chart.requireInvertedAxis?r.xAxis:r.yAxis,g=r.chart.requireInvertedAxis?r.yAxis:r.xAxis;t.childElementCount&&!p&&(!we(d,this.chart.dataLabelCollections,l)||"None"===n.labelIntersectAction)&&("XY"!==r.seriesType||void 0===o.yValue||v(o.yValue,r.yAxis.visibleRange)||r.type.indexOf("Stacking")>-1||r.type.indexOf("100")>-1&&v(r.stackedValues.endValues[o.index],r.yAxis.visibleRange))&&v(o.xValue,r.xAxis.visibleRange)&&parseFloat(t.style.top)>=u.rect.y&&parseFloat(t.style.left)>=g.rect.x&&parseFloat(t.style.top)<=u.rect.y+u.rect.height&&parseFloat(t.style.left)<=g.rect.x+g.rect.width&&(this.chart.dataLabelCollections.push(new i.Rect(d.x+l.x,d.y+l.y,d.width,d.height)),be(this.chart.enableCanvas,e,t,s,!0,"left","top"),r.animation.enable&&this.chart.animateSeries&&!this.chart.enableCanvas?this.doDataLabelAnimation(r,t):this.chart.enableCanvas&&e.appendChild(t))},e.prototype.calculateTextPosition=function(e,t,i,o,r){var n=r>1&&"Candle"===t.type?e.regions[1]:e.regions[0];r>1&&"HiloOpenClose"===t.type&&(n=2===r?e.regions[1]:e.regions[2]);var a;a=this.getLabelLocation(e,t,i,r);var l=t.clipRect;if(this.chart.requireInvertedAxis&&this.isRectSeries(t)&&"BoxAndWhisker"!==t.type){this.locationY=a.y;s=i.width+this.borderWidth+this.margin.left+this.margin.right-5;a.x="Auto"===o.position?a.x:this.calculateAlignment(s,a.x,o.alignment,e.yValue<0),a.x=this.calculateRectPosition(a.x,n,e.yValue<0!==this.yAxisInversed,o.position,t,i,r,e)}else{this.locationX=a.x;var s=i.height+2*this.borderWidth+this.markerHeight+this.margin.bottom+this.margin.top+5;a.x="Auto"===o.position?a.x:this.calculateAlignment(s,a.x,o.alignment,!!this.isRectSeries(t)&&e.yValue<0),a.y=this.isRectSeries(t)&&"BoxAndWhisker"!==t.type?this.calculateRectPosition(a.y,n,e.yValue<0!==this.yAxisInversed,o.position,t,i,r,e):this.calculatePathPosition(a.y,o.position,t,e,i,r),this.isRectSeries(t)&&"PolarRadar"===this.chart.chartAreaType&&(a=this.calculatePolarRectPosition(a,o.position,t,e,i,r,o.alignment,s))}var h=Ae(a,i,this.margin);!0===o.enableRotation&&0!==o.angle||h.y>l.y+l.height||h.x>l.x+l.width||h.x+h.width<0||h.y+h.height<0||(h.x=h.x<0?"StackingColumn"!==t.type||this.inverted?5:0:h.x,h.y=h.y<0&&!this.chart.requireInvertedAxis&&"None"!==o.labelIntersectAction?5:h.y,h.x-=h.x+h.width>l.x+l.width?h.x+h.width-(l.x+l.width)+5:0,h.y-=h.y+h.height>l.y+l.height?h.y+h.height-(l.y+l.height)+5:0,this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground);var c;return this.inverted&&t.isRectSeries&&h.x+h.width>n.x+n.width&&(c=!0),this.fontBackground=c?this.chartBackground:this.fontBackground,h},e.prototype.calculatePolarRectPosition=function(e,t,i,o,r,n,a,l){var s,h=this.chart.availableSize.width,c="Center"===a?0:"Far"===a?1:-1,d=o.regionData.startAngle-.5*Math.PI+(o.regionData.endAngle-o.regionData.startAngle)/2;return s=0===n?o.regionData.radius<o.regionData.innerRadius?o.regionData.innerRadius:o.regionData.radius:o.regionData.radius>o.regionData.innerRadius?o.regionData.innerRadius:o.regionData.radius,this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground,i.drawType.indexOf("Stacking")>-1?t="Outer"===t?"Top":t:i.drawType.indexOf("Range")>-1&&(t="Outer"===t||"Top"===t?t:"Auto"),"Outer"===t?s=0===n?s+10+this.markerHeight:s-10-this.markerHeight:"Middle"===t?(s=s/2+5,"StackingColumn"===i.drawType&&(s=o.regionData.innerRadius+(o.regionData.radius-o.regionData.innerRadius)/2+5-r.height/2)):"Top"===t?s=0===n?s-10-this.markerHeight:s+10+this.markerHeight:"Bottom"===t?(s=10,s+="StackingColumn"===i.drawType?o.regionData.innerRadius+this.markerHeight:0):s=0===n?s>=i.chart.radius?s-5:"StackingColumn"===i.drawType?s-10:s+10:s>=i.chart.radius?s+5:s-10,s+=l*c,e.x=i.clipRect.width/2+i.clipRect.x+s*Math.cos(d),"StackingColumn"===i.drawType?e.x=e.x<h/2?e.x+r.width/2:e.x>h/2?e.x-r.width/2:e.x:"Column"===i.drawType&&(e.x=e.x<h/2?e.x-r.width/2:e.x>h/2?e.x+r.width/2:e.x),e.y=i.clipRect.height/2+i.clipRect.y+s*Math.sin(d),e},e.prototype.getLabelLocation=function(e,t,i,o){var r=new mo(0,0),n="Candle"===t.type&&o>1?e.regions[1]:e.regions[0];"HiloOpenClose"===t.type&&(n=2===o?e.regions[1]:e.regions[2]);var a=t.xAxis,l=t.yAxis,s=t.chart.requireInvertedAxis;if("BoxAndWhisker"===t.type){switch(this.markerHeight=0,o){case 0:r=fe(e.xValue,e.median,a,l,s);break;case 1:r=fe(e.xValue,e.maximum,a,l,s);break;case 2:r=fe(e.xValue,e.minimum,a,l,s);break;case 3:r=fe(e.xValue,e.upperQuartile,a,l,s);break;case 4:r=fe(e.xValue,e.lowerQuartile,a,l,s);break;default:r=fe(e.xValue,e.outliers[o-5],a,l,s),this.markerHeight=t.marker.height/2}s?r.y=e.regions[0].y+e.regions[0].height/2:r.x=e.regions[0].x+e.regions[0].width/2}else r=s&&t.type.indexOf("Stacking")>-1&&0===e.yValue?{x:n.x+n.width,y:n.y+n.height/2}:0===o||1===o?new mo(e.symbolLocations[0].x,e.symbolLocations[0].y):2!==o&&3!==o||"Candle"!==t.type?s?{x:n.x+n.width/2,y:n.y}:{x:n.x+n.width,y:n.y+n.height/2}:new mo(e.symbolLocations[1].x,e.symbolLocations[1].y);if(o>1&&"HiloOpenClose"===t.type)if(t.chart.requireInvertedAxis){var h=n.height;r.y=n.y+h/2+2*(2===o?1:-1)}else{var c=n.width;r.x=n.x+c/2+2*(2===o?1:-1)}return r},e.prototype.calculateRectPosition=function(e,t,i,o,r,n,a,l){if("PolarRadar"===r.chart.chartAreaType)return null;var s=this.margin,h=r.marker.dataLabel.enableRotation?n.width:this.inverted?n.width:n.height;switch("Bottom"===o&&"StackingColumn"===r.type&&!this.inverted&&t.height<n.height?this.extraSpace=this.borderWidth+(Math.abs(t.height-n.height/2)<5?0:5):this.extraSpace=this.borderWidth+h/2+("Outer"!==o&&r.type.indexOf("Column")>-1&&Math.abs(t.height-n.height)<5?0:5),"StackingColumn100"===r.type||"StackingBar100"===r.type?o="Outer"===o?"Top":o:r.type.indexOf("Range")>-1?o="Outer"===o||"Top"===o?o:"Auto":"Waterfall"===r.type&&(o="Auto"===o?"Middle":o),o){case"Bottom":e=this.inverted?i?e+("Waterfall"===r.type?+this.extraSpace+s.left+this.markerHeight:+t.width-this.extraSpace-s.left):e-t.width+this.extraSpace+s.right:i?e+("Waterfall"===r.type?-this.extraSpace-s.top-this.markerHeight:-t.height+this.extraSpace+s.top):e+t.height-this.extraSpace-s.bottom;break;case"Middle":e=e=this.inverted?i?e+t.width/2:e-t.width/2:i?e-t.height/2:e+t.height/2;break;case"Auto":e=this.calculateRectActualPosition(e,t,i,r,n,a,l);break;default:this.extraSpace+=this.errorHeight,e=this.calculateTopAndOuterPosition(e,t,o,r,a,this.extraSpace,i,l)}var c=this.inverted?e<t.x||e>t.x+t.width:e<t.y||e>t.y+t.height;this.fontBackground=c?"transparent"===this.fontBackground?this.chartBackground:this.fontBackground:"transparent"===this.fontBackground?l.color||r.interior:this.fontBackground;var d=r.chart.series.length;if("Outer"===o&&r.type.indexOf("Stacking")>-1&&d-1>r.index)for(var p=void 0,u=void 0,g=r.index+1;g<d;g++)if(p=r.chart.series[g],u=p.points[l.index],p.type.indexOf("Stacking")>-1&&-1===p.type.indexOf("100")){this.fontBackground=u&&(u.yValue<0&&l.yValue<0||u.yValue>0&&l.yValue>0)?u?u.color:p.interior:this.fontBackground;break}return e},e.prototype.calculatePathPosition=function(e,t,i,o,r,n){switch(i.type.indexOf("Area")>-1&&"RangeArea"!==i.type&&"SplineRangeArea"!==i.type&&"RangeStepArea"!==i.type&&this.yAxisInversed&&"Auto"!==i.marker.dataLabel.position&&(t="Top"===t?"Bottom":"Bottom"===t?"Top":t),this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground,t){case"Top":case"Outer":e=e-this.markerHeight-this.borderWidth-r.height/2-this.margin.bottom-5-this.errorHeight;break;case"Bottom":e=e+this.markerHeight+this.borderWidth+r.height/2+this.margin.top+5+this.errorHeight;break;case"Auto":e=this.calculatePathActualPosition(e,this.markerHeight,i,o,r,n)}return e},e.prototype.isDataLabelShape=function(e){this.isShape="transparent"!==e.color||e.border.width>0,this.borderWidth=e.border.width,this.isShape||(this.margin={left:0,right:0,bottom:0,top:0})},e.prototype.calculateRectActualPosition=function(e,t,i,o,r,n,a){for(var l,s,h=!0,c=0,d=this.chart.dataLabelCollections,p=-1!==o.type.indexOf("Range")||"Hilo"===o.type?2:4;h&&c<p;){var u=this.getPosition(c);this.fontBackground=o.marker.dataLabel.fill,o.type.indexOf("Stacking")>-1&&"Outer"===u&&(u="Top",c++),l=this.calculateRectPosition(e,t,i,u,o,r,n,a),this.inverted?h=(s=Ae(new mo(l,this.locationY),r,this.margin)).x<0||we(s,d,o.clipRect)||s.x+s.width>o.clipRect.width:(o.marker.dataLabel.enableRotation&&(r.width=r.width-a.regions[0].width/10),h=(s=Ae(new mo(this.locationX,l),r,this.margin)).y<0||we(s,d,o.clipRect)||s.y>o.clipRect.height,null===o.marker.dataLabel.template&&!0!==h&&(h=s.y/2+r.height+("Outer"===u?a.regions[0].height+this.extraSpace:a.regions[0].height-2*this.extraSpace)>o.clipRect.height)),c++}return l},e.prototype.calculateAlignment=function(e,t,i,o){switch(i){case"Far":t=this.inverted?o?t-e:t+e:o?t+e:t-e;break;case"Near":t=this.inverted?o?t+e:t-e:o?t-e:t+e}return t},e.prototype.calculateTopAndOuterPosition=function(e,t,i,o,r,n,a,l){var s,h=this.margin;switch(o.type){case"RangeColumn":case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"Hilo":s=0===r&&!this.yAxisInversed||1===r&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s);break;case"Candle":s=(0===r||2===r)&&!this.yAxisInversed||(1===r||3===r)&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s,r>1);break;case"HiloOpenClose":r<=1?(s=0===r&&!this.yAxisInversed||1===r&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s)):e=this.yAxisInversed?this.inverted?e-n-h.right:e+n+h.top:this.inverted?e+n+h.left:e-n-h.bottom;break;default:e=a&&"Top"===i||!a&&"Outer"===i||"Top"===i&&0===o.visiblePoints[l.index].yValue?this.inverted?e+(a&&"Waterfall"===o.type?+t.width-n-h.left:+n+h.left+this.markerHeight):e+(a&&"Waterfall"===o.type?-t.height+n+h.bottom:-n-h.bottom-this.markerHeight):this.inverted?e+(a&&"Waterfall"===o.type?+t.width+n+h.top:-n-h.right-this.markerHeight):e+(a&&"Waterfall"===o.type?-t.height-n-h.top:+n+h.top+this.markerHeight)}return e},e.prototype.updateLabelLocation=function(e,t,i,o,r,n,a){return void 0===a&&(a=!1),t=this.inverted?n?"Outer"!==e||a?t-i-o.right-this.markerHeight:t+i+o.left+this.markerHeight:"Outer"!==e||a?t-r.width+i+o.left+this.markerHeight:t-r.width-i-o.right-this.markerHeight:n?"Outer"!==e||a?t+i+o.top+this.markerHeight:t-i-o.bottom-this.markerHeight:"Outer"!==e||a?t+r.height-i-o.bottom-this.markerHeight:t+r.height+i+o.top+this.markerHeight},e.prototype.calculatePathActualPosition=function(e,t,i,o,r,n){var a,l,s,h,c,d=i.points,p=o.index,u=d[p].yValue,g=d.length-1>p?d[p+1]:null,m=p>0?d[p-1]:null,y=!0,f=this.chart.dataLabelCollections;if("Bubble"===i.type)a="Top";else if(i.type.indexOf("Step")>-1)a="Top",p&&(a=m&&m.visible&&u>m.yValue===this.yAxisInversed&&u!==m.yValue?"Bottom":"Top");else if("BoxAndWhisker"===i.type)1===n||3===n||n>4?a=i.yAxis.isAxisInverse?"Bottom":"Top":2===n||4===n?a=i.yAxis.isAxisInverse?"Top":"Bottom":(y=!1,a="Middle",l=this.calculatePathPosition(e,a,i,o,r,n));else if(0===p)a=!g||!g.visible||u>g.yValue||u<g.yValue&&this.yAxisInversed?"Top":"Bottom";else if(p===d.length-1)a=!m||!m.visible||u>m.yValue||u<m.yValue&&this.yAxisInversed?"Top":"Bottom";else if(g.visible||m&&m.visible)if(g.visible&&m){var v=(g.yValue-m.yValue)/2,b=v*p+(g.yValue-v*(p+1));a=this.yAxisInversed?b<u?"Bottom":"Top":b<u?"Top":"Bottom"}else a=g.yValue>u||m&&m.yValue>u?"Bottom":"Top";else a="Top";for(h="Bottom"===a,c=["Outer","Top","Bottom","Middle","Auto"].indexOf(a);y&&c<4;)l=this.calculatePathPosition(e,this.getPosition(c),i,o,r,n),y=(s=Ae(new mo(this.locationX,l),r,this.margin)).y<0||we(s,f,i.clipRect)||s.y+s.height>i.clipRect.height,c=h?c-1:c+1,h=!1;return l},e.prototype.doDataLabelAnimation=function(e,t){for(var i,o,r=e.shapeElement.childNodes,n=e.textElement.childNodes,a=e.animation.delay+e.animation.duration,l=e.chart.animated?e.chart.duration:200,s=t?1:n.length,h=0;h<s;h++)o=n[h],t?(t.style.visibility="hidden",re(t,a,l,"ZoomIn")):(i=new mo(+o.getAttribute("x")+ +o.getAttribute("width")/2,+o.getAttribute("y")+ +o.getAttribute("height")/2),q(o,a,e.animation.duration,e,null,i,!0),r[h]&&(o=r[h],i=new mo(+o.getAttribute("x")+ +o.getAttribute("width")/2,+o.getAttribute("y")+ +o.getAttribute("height")/2),q(o,a,e.animation.duration,e,null,i,!0)))},e.prototype.getPosition=function(e){return["Outer","Top","Bottom","Middle","Auto"][e]},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){},e}(),aa=function(){function e(e){this.chart=e}return e.prototype.render=function(e){if("PolarRadar"===this.chart.chartAreaType)return null;this.createElement(e,this.chart),this.renderErrorBar(e)},e.prototype.renderErrorBar=function(e){for(var t,o,r=e.index,n=e.errorBar,a=e.errorBar.errorBarCap,l=["",""],s=e.chart.redraw,h=0,c=e.points;h<c.length;h++){var d=c[h];if(d.visible&&d.symbolLocations[0]){var p=0,u=0;switch(n.mode){case"Vertical":u=d.verticalError;break;case"Horizontal":p=d.horizontalError;break;case"Both":p=d.horizontalError,u=d.verticalError}l=this["calculate"+n.type+"Value"](d,e,this.chart.requireInvertedAxis,p,u),t=this.chart.element.id+"_Series__ErrorBarGroup_"+r+"_Point_"+d.index,o=this.chart.element.id+"_Series__ErrorBarCap_"+r+"_Point_"+d.index;var g=new i.PathOption(t,"",n.width,n.errorBarColorMapping?d.errorBarColor:n.color||this.chart.themeStyle.errorBar,null,"",l[0]),m=he(g.id),y=m?m.getAttribute("d"):null;e.errorBarElement&&e.errorBarElement.appendChild(this.chart.renderer.drawPath(g)),$(m,l[0],s,y,this.chart.duration);var f=new i.PathOption(o,"",a.width,n.errorBarCap.color?a.color:n.errorBarColorMapping?d.errorBarColor:n.color||this.chart.themeStyle.errorBar,null,"",l[1]);y=(m=he(f.id))?m.getAttribute("d"):null,e.errorBarElement&&be(this.chart.enableCanvas,e.errorBarElement,this.chart.renderer.drawPath(f),s),$(m,l[1],s,y,this.chart.duration)}}},e.prototype.findLocation=function(e,t,i,o,r){var n=t.errorBar,a=n.direction,l=[],s=t.type.indexOf("Stacking")>-1?t.stackedValues.endValues[e.index]:"HighLow"===t.seriesType||"HighLowOpenClose"===t.seriesType?t.points[e.index].high:e.yValue,h=fe(e.xValue+("Plus"===a||"Both"===a?"Custom"!==n.type||"Horizontal"!==n.mode&&"Both"!==n.mode?o:o=e.horizontalPositiveError:0),s+("Plus"===a||"Both"===a?"Custom"!==n.type||"Vertical"!==n.mode&&"Both"!==n.mode?r:r=e.verticalPositiveError:0),t.xAxis,t.yAxis,i);if(l.push(h),t.isRectSeries){c=e.symbolLocations[0];l.push(c)}else{var c=fe(e.xValue,e.yValue,t.xAxis,t.yAxis,i);l.push(c)}var d=fe(e.xValue-("Minus"===a||"Both"===a?"Custom"!==n.type||"Horizontal"!==n.mode&&"Both"!==n.mode?o:o=e.horizontalNegativeError:0),s-("Minus"===a||"Both"===a?"Custom"!==n.type||"Vertical"!==n.mode&&"Both"!==n.mode?r:r=e.verticalNegativeError:0),t.xAxis,t.yAxis,i);return l.push(d),e.error="Vertical"===n.mode?n.verticalError:n.horizontalError,this.negativeHeight="Vertical"===n.mode||"Both"===n.mode?i?l[1].x-l[2].x:l[2].y-l[1].y:0,this.positiveHeight="Vertical"===n.mode||"Both"===n.mode?i?l[0].x-l[1].x:l[1].y-l[0].y:0,this.getErrorDirection(l[0],l[1],l[2],t,i)},e.prototype.calculateFixedValue=function(e,t,i,o,r){return this.findLocation(e,t,i,o,r)},e.prototype.calculatePercentageValue=function(e,t,i,o,r){return o=o/100*e.xValue,r=r/100*e.yValue,this.findLocation(e,t,i,o,r)},e.prototype.calculateStandardDeviationValue=function(e,t,i,o,r){var n=this.meanCalculation(t,t.errorBar.mode);return o*=n.horizontalSquareRoot+n.horizontalMean,r*=n.verticalSquareRoot+n.verticalMean,this.findLocation(e,t,i,o,r)},e.prototype.calculateStandardErrorValue=function(e,t,i,o,r){var n=t.points.length,a=this.meanCalculation(t,t.errorBar.mode);return o=o*a.horizontalSquareRoot/Math.sqrt(n),r=r*a.verticalSquareRoot/Math.sqrt(n),this.findLocation(e,t,i,o,r)},e.prototype.calculateCustomValue=function(e,t,i,o,r){return this.findLocation(e,t,i,o,r)},e.prototype.getHorizontalDirection=function(e,t,i,o,r,n){var a="",l="";return a+="M "+e.x+" "+t.y+" L "+i.x+" "+t.y,l+="Plus"===o||"Both"===o?"M "+e.x+" "+(t.y-n)+" L "+e.x+" "+(t.y+n):"",l+="Minus"===o||"Both"===o?"M "+i.x+" "+(t.y-n)+" L "+i.x+" "+(t.y+n):" ",[a,l]},e.prototype.getVerticalDirection=function(e,t,i,o,r,n){var a="",l="";return a+="M "+t.x+" "+e.y+" L "+t.x+" "+i.y,l+="Plus"===o||"Both"===o?"M "+(t.x-n)+" "+e.y+" L "+(t.x+n)+" "+e.y:"",l+="Minus"===o||"Both"===o?"M "+(t.x-n)+" "+i.y+" L "+(t.x+n)+" "+i.y:"",[a,l]},e.prototype.getBothDirection=function(e,t,i,o,r,n){var a="",l="",s=this.getHorizontalDirection(e,t,i,o,r,n),h=this.getVerticalDirection(e,t,i,o,r,n);return l=s[0].concat(h[0]),a=s[1].concat(h[1]),[l,a]},e.prototype.getErrorDirection=function(e,t,i,o,r){var n,a=o.errorBar.direction,l=o.errorBar.mode,s=o.errorBar.errorBarCap.length,h=l;switch(l){case"Both":h=l;break;case"Horizontal":h=r?"Vertical":l;break;case"Vertical":h=r?"Horizontal":l}switch(h){case"Horizontal":n=this.getHorizontalDirection(e,t,i,a,h,s);break;case"Vertical":n=this.getVerticalDirection(e,t,i,a,h,s);break;case"Both":n=this.getBothDirection(e,t,i,a,h,s)}return[n[0],n[1]]},e.prototype.meanCalculation=function(e,t){var i=0,o=0,r=0,n=0,a=e.points.length;switch(t){case"Vertical":r=(o=S(e.yData))/a;break;case"Horizontal":n=(i=S(e.xData))/a;break;case"Both":r=(o=S(e.yData))/a,n=(i=S(e.xData))/a}for(var l=0,s=e.points;l<s.length;l++){var h=s[l];"Vertical"===t?o+=Math.pow(h.yValue-r,2):"Horizontal"===t?i+=Math.pow(h.xValue-n,2):(o+=Math.pow(h.yValue-r,2),i+=Math.pow(h.xValue-n,2))}var c=o/(a-1),d=Math.sqrt(o/(a-1)),p=i/(a-1),u=Math.sqrt(i/(a-1));return new ao(c,d,p,u,r,n)},e.prototype.createElement=function(e,t){var i="Cartesian"===t.chartAreaType?"translate("+e.clipRect.x+","+e.clipRect.y+")":"",o=e.marker.height/2,r=e.marker.width/2;if("Cartesian"===t.chartAreaType){var n=new co(t.element.id+"_ChartErrorBarClipRect_"+e.index,"transparent",{width:1,color:"Gray"},1,{x:-r,y:-o,width:e.clipRect.width+2*r,height:e.clipRect.height+2*o});e.errorBarElement=t.renderer.createGroup({id:t.element.id+"ErrorBarGroup"+e.index,transform:i,"clip-path":"url(#"+t.element.id+"_ChartErrorBarClipRect_"+e.index+")"}),e.errorBarElement&&e.errorBarElement.appendChild(J(t.redraw,n,t.renderer))}},e.prototype.doErrorBarAnimation=function(e){var i=e.errorBarElement.childNodes;if(!i)return null;for(var o=e.animation.delay+(0===e.animation.duration&&"Enable"===t.animationMode?1e3:e.animation.duration),r=1;r<i.length;){for(var n=0;n<e.points.length;n++)e.points[n].symbolLocations[0]&&(i[r].style.visibility="hidden",re(i[r],o,350,e.chart.requireInvertedAxis?"SlideLeftIn":"SlideBottomIn",!1));r++}},e.prototype.getModuleName=function(){return"ErrorBar"},e.prototype.destroy=function(){},e}(),la=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),sa=function(e){function o(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return la(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},o.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.highlightModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.highlightModule.legendSelection(this.chart,o,e.target,e.type);break}}},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e,t){this.legendCollections=[];var i,o,r=[];this.isRtlEnable=t.enableRtl,this.isReverse=!this.isRtlEnable&&t.legendSettings.reverse,e.length>1&&(this.legend.mode="Series");for(var n=0,a=e;n<a.length;n++){var l=a[n];if("Series"===this.legend.mode)"Indicator"!==l.category&&(i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=l.interior,this.legendCollections.push(new qo(l.name,o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:l.visible,i,l.legendImageUrl?l.legendImageUrl:"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray)));else if("Point"===this.legend.mode)for(var s=0,h=l.points;s<h.length;s++){p=h[s];i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=p.interior?p.interior:l.interior,this.legendCollections.push(new qo(p.x.toString(),o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:p.visible,i,"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray))}else if("Range"===this.legend.mode)for(var c=0,d=l.points;c<d.length;c++){var p=d[c];i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=p.interior?p.interior:l.interior;var u="Others";if(r.indexOf(o)<0&&(r.push(o),t.rangeColorSettings.length>=1&&1===t.rangeColorSettings[0].colors.length)){for(var g=0,m=t.rangeColorSettings;g<m.length;g++){var y=m[g];y.colors[0]===o&&(u=y.label)}this.legendCollections.push(new qo(u,o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:p.visible,i,"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray))}}else if(0===this.legendCollections.length&&t.rangeColorSettings.length>0){var f=t.rangeColorSettings[0].start.toString(),v=t.rangeColorSettings[t.rangeColorSettings.length-1].end.toString();this.legendCollections.push(new qo(f,l.interior,"Rectangle",!0,i,"",l.marker.shape,l.marker.visible)),this.legendCollections.push(new qo(v,l.interior,"Rectangle",!0,i,"",l.marker.shape,l.marker.visible))}}this.isReverse&&"Gradient"!==t.legendSettings.mode&&this.legendCollections.reverse()},o.prototype.getLegendBounds=function(e,t,o){this.calculateLegendTitle(o,t),this.isTitle=!!o.title,this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var r,n=o.padding,a=o.titlePosition,l=0,s=0,h=this.arrowWidth,c=this.arrowHeight,d=this.isVertical&&!o.enablePages?c:0,p=this.isTitle&&"Top"===a?this.legendTitleSize.height+this.fivePixel:0;p=this.isTitle&&this.isVertical&&"Top"!==a?this.legendTitleSize.height+this.fivePixel:p,this.isVertical?s=o.width?0:e.width/100*5:l=o.height?0:e.height/100*5,t.height+=l,t.width+=s;var u,g=o.shapeWidth,m=o.shapePadding,y=0,f=0,v=0,b=0,x=0,S=0,C=0,F=!1;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);var w="Auto"===o.layout&&o.maximumColumns>0;if(o.fixedWidth)for(P=0;P<this.legendCollections.length;P++){var L=g+m+(this.isVertical?n:0===P?n:this.itemPadding)+(o.maximumLabelWidth?o.maximumLabelWidth:i.measureText(this.legendCollections[P].text,o.textStyle,this.chart.themeStyle.legendLabelFont).width);this.maxWidth=Math.max(this.maxWidth,L)}for(var P=0;P<this.legendCollections.length;P++)if(r=this.legendCollections[P],Ei.test(r.text)&&(r.text=Qe(r.text,Ei)),_i.test(r.text)&&(r.text=Qe(r.text,_i)),u={fill:r.fill,text:r.text,shape:r.shape,markerShape:r.markerShape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",u),r.render=!u.cancel,r.text=u.text,r.fill=u.fill,r.shape=u.shape,r.markerShape=u.markerShape,r.textSize=i.measureText(r.text,o.textStyle,this.chart.themeStyle.legendLabelFont),g=r.text?o.shapeWidth:0,m=r.text?o.shapePadding:0,r.render&&r.text){F=!0,f+=v=o.fixedWidth?this.maxWidth:g+m+(o.maximumLabelWidth?o.maximumLabelWidth:r.textSize.width)+(this.isVertical&&"Horizontal"!==o.layout?n:0===P||1===x&&S>0&&"Horizontal"===o.layout?n:this.itemPadding),o.enablePages||this.isVertical||(C=this.isTitle&&"Top"!==a?this.legendTitleSize.width+this.fivePixel:0,C+=h),this.getLegendHeight(r,o,t,f,this.maxItemHeight,n),(w?x===o.maximumColumns:"Vertical"===o.layout||t.width<n+f+C||this.isVertical&&"Auto"===o.layout)&&(y=Math.max(y,f+n+C-(this.isVertical&&"Auto"===this.legend.layout?0:v)),0===S&&v!==f&&(S=1),f=this.isVertical&&"Auto"===this.legend.layout?0:v,S++,x=0,b=d);var A=S>0?S-1:0;this.rowHeights[A]=Math.max(this.rowHeights[A]?this.rowHeights[A]:0,Math.max(r.textSize.height,o.shapeHeight)),this.columnHeights[x]=(this.columnHeights[x]?this.columnHeights[x]:0)+Math.max(r.textSize.height,o.shapeHeight)+(this.isVertical||S>0&&this.legend.itemPadding?0===P?n:this.itemPadding:n),x++}b=Math.max.apply(null,this.columnHeights)+n+p,b=Math.max(b,this.maxItemHeight+n+n+p),"Horizontal"===o.layout&&(b=this.maxItemHeight+2*n+p+this.pageButtonSize+o.border.width),this.isPaging=(t.height<b||"Horizontal"===o.layout&&this.rowHeights.length>1)&&!w,this.isPaging&&!o.enablePages&&(this.isVertical||(b=this.maxItemHeight+n+n+("Top"===a?p:0))),this.totalPages=S,w&&this.maxWidth&&o.fixedWidth&&(f=this.maxWidth*o.maximumColumns,this.isPaging=!1),this.isPaging&&"Auto"===this.legend.layout||this.isVertical||(f+=this.isTitle&&"Top"!==a?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),F?this.setBounds(Math.max(f+n,y),b,o,t):this.setBounds(0,0,o,t)},o.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=Ze(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=this.legend.fixedWidth?this.maxWidth:i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),h=o.location.x+(this.isRtlEnable?-s:s);("Auto"===this.legend.layout&&this.legend.maximumColumns>0?n%this.legend.maximumColumns==0:"Vertical"===this.legend.layout||this.isWithinBounds(h,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r)||this.isVertical&&"Auto"===this.legend.layout)?(e.location.x=t.x,n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+(!this.isVertical||"Horizontal"===this.legend.layout||this.legend.maximumColumns>0?this.rowHeights[this.chartRowCount-2]:Math.max(o.textSize.height,this.legend.shapeHeight))+(this.isVertical||this.chartRowCount>1&&this.legend.itemPadding?this.itemPadding:l)):(e.location.x=n===a?o.location.x:h,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);this.isVertical||!this.isPaging||this.legend.enablePages||(c=this.legendBounds.width-e.location.x-this.fivePixel),c=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,c):c,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=ze(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},o.prototype.isWithinBounds=function(e,t,i){return this.isRtlEnable?e-t<i.x-this.legend.shapeWidth/2:e+t>i.x+i.width+this.legend.shapeWidth/2},o.prototype.LegendClick=function(e,t){var i=this.chart,o="Series"===i.legendSettings.mode?e:0,r=this.isReverse?this.legendCollections.length-1-e:e,n=i.visibleSeries[o],a=this.legendCollections[r];if("Series"===i.legendSettings.mode){s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:n.points,name:Di,cancel:!1};this.chart.trigger(Di,s),n.legendShape=s.legendShape,s.cancel||(null!==n.fill&&(i.visibleSeries[e].interior=n.fill),i.legendSettings.toggleVisibility?(n.chart.isProtectedOnChange=!0,"TrendLine"===n.category?!i.series[n.sourceIndex].trendlines[n.index].visible&&i.series[n.sourceIndex].visible?i.series[n.sourceIndex].trendlines[n.index].visible=!0:i.series[n.sourceIndex].trendlines[n.index].visible=!1:this.changeSeriesVisiblity(n,n.visible),a.visible="TrendLine"===n.category?i.series[n.sourceIndex].trendlines[n.index].visible:n.visible,this.refreshLegendToggle(i,n),i.highlightModule&&i.legendSettings.enableHighlight&&i.highlightModule.legendSelection(i,e,t.target,"mousemove")):i.highlightModule?i.highlightModule.legendSelection(i,e,t.target,t.type):i.selectionModule&&i.selectionModule.legendSelection(i,e,t.target,t.type),n.chart.isProtectedOnChange=!1)}else if("Point"===i.legendSettings.mode){var l=n.points[e],s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:[l],name:Di,cancel:!1};this.chart.trigger(Di,s),i.legendSettings.toggleVisibility&&!s.cancel&&(l.visible=!l.visible,(c=this.legendCollections[e]).visible=l.visible,this.refreshLegendToggle(i,n))}else if("Range"===i.legendSettings.mode){for(var h=[],c=this.legendCollections[e],d=0,p=n.points;d<p.length;d++){l=p[d];c.fill===(l.interior||n.interior)&&h.push(l)}s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:h,name:Di,cancel:!1};if(this.chart.trigger(Di,s),i.legendSettings.toggleVisibility&&!s.cancel){c.visible=!c.visible;for(var u=0,g=h;u<g.length;u++)(l=g[u]).visible=!l.visible;this.refreshLegendToggle(i,n)}}},o.prototype.refreshLegendToggle=function(e,o){var r=[];if(e.selectionModule&&(r=t.extend([],e.selectionModule.selectedDataIndexes,null,!0)),e.svgObject.childNodes.length>0&&!e.enableAnimation&&!e.enableCanvas){for(;e.svgObject.lastChild;)e.svgObject.removeChild(e.svgObject.lastChild);t.remove(e.svgObject)}e.animateSeries=!1,e.redraw=e.enableAnimation,o.isLegendClicked=!0,e.rotatedDataLabelCollections=[],g(i.getElement(e.element.id+"_Secondary_Element").querySelectorAll(".ejSVGTooltip")[0]),this.redrawSeriesElements(o,e),e.removeSvg(),e.refreshAxis(),o.refreshAxisLabel(),this.refreshSeries(e.visibleSeries);for(var n=0,a=e.visibleSeries;n<a.length;n++){var l=a[n];t.isNullOrUndefined(l)||e.markerRender.removeHighlightedMarker(l,null,!0)}e.refreshBound(),e.trigger("loaded",{chart:e}),r.length>0&&(e.selectionModule.selectedDataIndexes=r,e.selectionModule.redrawSelection(e,e.selectionMode)),e.enableCanvas||!e.highlightModule||"None"===e.highlightMode&&!e.legendSettings.enableHighlight||e.highlightModule.redrawSelection(e,e.highlightMode),e.redraw=!1,o.isLegendClicked=!1},o.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),(this.isSecondaryAxis(e.yAxis)||"Pareto"===e.category&&"Line"===e.type)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.trendlines.length&&e.visible&&e.trendlines.forEach(function(e){e.visible=!0})},o.prototype.isSecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},o.prototype.redrawSeriesElements=function(e,t){if(!t.redraw)return null;g(t.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections")},o.prototype.refreshSeries=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];if(o.type.indexOf("Spline")>-1){var r=o.type.indexOf("Area")>-1||o.drawType.indexOf("Area")>-1,n=o.type.indexOf("Range")>-1;this.chart["spline"+(r?n?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(o)}o.visible&&(o.position=void 0)}},o.prototype.click=function(e){var t=this;if(this.chart.legendSettings.visible){for(var i,o=this.chart.mouseX,r=this.chart.mouseY,n=[],a=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,l=0,s=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"];l<s.length;l++){var h=s[l];if(a.indexOf(h)>-1){i=parseInt(a.split(h)[1],10),this.LegendClick(i,e);break}}a.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):a.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),this.chart.enableCanvas&&this.pagingRegions.length&&this.checkWithinBounds(o,r),(n=this.legendRegions.filter(function(e){return V(o,r+(t.isPaging?(t.currentPageNumber-1)*t.translatePage(t.chart.enableCanvas,null,1,2):0),e.rect)})).length&&this.chart.enableCanvas&&this.LegendClick(n[0].index,e)}},o.prototype.checkWithinBounds=function(e,t){var o=this.chart.renderer,r=this.legendBounds,n=this.chart.legendSettings.border.width,a=new i.Rect(r.x,r.y,r.width,r.height);return a.x=a.x-n/2,a.y=a.y-n/2,a.width=a.width+n,a.height=a.height+n,V(e,t,this.pagingRegions[0])?(this.isRtlEnable?this.canvasPageUp(o,a,r):this.canvasPageDown(o,a,r),null):V(e,t,this.pagingRegions[1])?(this.isRtlEnable?this.canvasPageDown(o,a,r):this.canvasPageUp(o,a,r),null):void 0},o.prototype.canvasPageDown=function(e,t,i){--this.currentPageNumber>0?(this.legendRegions=[],e.clearRect(t),e.canvasClip(new co("legendClipPath","transparent",{width:0,color:""},null,t)),this.renderLegend(this.chart,this.legend,i),e.canvasRestore()):++this.currentPageNumber},o.prototype.canvasPageUp=function(e,t,i){++this.currentPageNumber>0&&this.currentPageNumber<=this.totalNoOfPages?(this.legendRegions=[],e.clearRect(t),e.canvasClip(new co("legendClipPath","transpaent",{width:0,color:""},null,t)),this.renderLegend(this.chart,this.legend,i),e.canvasRestore()):--this.currentPageNumber},o.prototype.getModuleName=function(){return"Legend"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),ha=function(){function e(e){this.control=e}return e.prototype.render=function(e,i){return this.isChart="chart"===this.control.getModuleName(),this.annotation=e,ue(t.createElement("div",{id:this.control.element.id+"_Annotation_"+i,styles:"position: absolute; z-index: 1"}),i,this.control.enableHtmlSanitizer?this.control.sanitize(e.content):e.content,this.control)},e.prototype.setAnnotationPixelValue=function(e){var t="Chart"===this.annotation.region?new i.Rect(0,0,this.control.availableSize.width,this.control.availableSize.height):this.isChart?this.control.chartAxisLayoutPanel.seriesClipRect:this.control.series[0].accumulationBound;return e.x=("string"!=typeof this.annotation.x?"number"==typeof this.annotation.x?this.annotation.x:0:Ne(this.annotation.x,t.width))+t.x,e.y=("number"==typeof this.annotation.y?this.annotation.y:Ne(this.annotation.y,t.height))+t.y,!0},e.prototype.setAnnotationPointValue=function(e){var t=new mo(0,0);if(this.isChart){for(var i=this.control,r=this.annotation,n=r.xAxisName,a=r.yAxisName,l=i.requireInvertedAxis,s=this.control.stockChart,h=void 0,c=void 0,d=void 0,p=0,u=i.axisCollections;p<u.length;p++){var g=u[p];if(n===g.name||null==n&&"primaryXAxis"===g.name)if((h=g).isIndexed)d=Number(r.x);else if(h.valueType.indexOf("Category")>-1){var y="DateTimeCategory"===h.valueType?r.x.getTime().toString():r.x;if("object"==typeof y)for(var f=0;f<h.labels.length;f++)h.labels[f].toString()===r.x.toString()&&(d=f);if(h.labels.indexOf(y)<0)return!1;d=h.labels.indexOf(y)}else if("DateTime"===h.valueType){var b={skeleton:"full",type:"dateTime"};d="object"==typeof this.annotation.x||"object"==typeof new Date(this.annotation.x)?Date.parse(i.intl.getDateParser(b)(i.intl.getDateFormat(b)(new Date(o.DataUtil.parse.parseJson({val:r.x}).val)))):0}else d=+r.x;else(a===g.name||null==a&&"primaryYAxis"===g.name)&&(c=g)}return!!(h&&c&&v("Logarithmic"===h.valueType?m(d,h.logBase):d,h.visibleRange)&&v("Logarithmic"===c.valueType?m(+r.y,c.logBase):+r.y,c.visibleRange))&&(t=fe(d,+r.y,h,c,l),e.x=t.x+(l?c.rect.x:h.rect.x),e.y=t.y+(l?h.rect.y:c.rect.y)+(s&&s.enablePeriodSelector?s.toolbarHeight+s.titleSize.height:0),!0)}return this.setAccumulationPointValue(e)},e.prototype.processAnnotation=function(e,t,i){this.control;var o=new mo(0,0),r=this.render(e,t);(function(){r.style.transform="translate(-50%, -50%)"}).bind(o,this),this["setAnnotation"+e.coordinateUnits+"Value"](o)?this.setElementStyle(o,r,i):this.control.redraw&&g(r.id)},e.prototype.setAccumulationPointValue=function(e){for(var t,i=0,o=this.control.visibleSeries[0].points;i<o.length;i++){var r=o[i];if("object"==typeof r.x){if(Date.parse(r.x)===Date.parse(this.annotation.x)&&r.y===this.annotation.y){t=r;break}}else if(r.x===this.annotation.x&&r.y===this.annotation.y){t=r;break}}return!(!t||!t.visible)&&(e.x=t.symbolLocation.x,e.y=t.symbolLocation.y,!0)},e.prototype.setElementStyle=function(e,t,i){var o=me(t,this.control.redraw),r={cancel:!1,name:"annotationRender",content:t,location:e},n=this.control;if(this.control.trigger("annotationRender",r),!r.cancel){r.content.style.left=this.setAlignmentValue(this.annotation.horizontalAlignment,o.width,r.location.x)+"px",r.content.style.top=this.setAlignmentValue(this.annotation.verticalAlignment,o.height,r.location.y)+"px";var a=n.annotationModule.annotation;"chart"===n.getModuleName()&&a&&a.accessibility?(r.content.setAttribute("aria-label",a.accessibility.accessibilityDescription?a.accessibility.accessibilityDescription:"Annotation"),r.content.setAttribute("role",a.accessibility.accessibilityRole?a.accessibility.accessibilityRole:"img"),r.content.setAttribute("tabindex",a.accessibility.focusable?String(a.accessibility.tabIndex):"-1"),a.accessibility.focusable&&(r.content.style.outline="none")):(r.content.setAttribute("aria-label",this.annotation.description||"Annotation"),r.content.setAttribute("role","img")),ve(r.content,i,this.control.redraw,!0,"left","top",this.control.duration)}},e.prototype.setAlignmentValue=function(e,t,i){switch(e){case"Top":case"Near":i-=t;break;case"Bottom":case"Far":i+=0;break;case"Middle":case"Center":i-=t/2}return i},e}(),ca=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),da=function(e){function i(t,i){var o=e.call(this,t)||this;return o.chart=t,o.annotations=i,o}return ca(i,e),i.prototype.renderAnnotations=function(e){var i=this;this.annotations=this.chart.annotations,this.parentElement=Ve(this.chart.redraw,this.chart.element.id+"_Annotation_Collections")||t.createElement("div",{id:this.chart.element.id+"_Annotation_Collections"}),this.annotations.map(function(e,t){i.processAnnotation(e,t,i.parentElement)});for(var o=0;"chart"===this.chart.getModuleName()&&!this.chart.enableCanvas&&o<this.chart.visibleSeries.length;o++)if(this.chart.visibleSeries[o].animation.enable&&this.chart.animateSeries){this.parentElement.style.visibility="hidden";break}ve(this.parentElement,e,this.chart.redraw)},i.prototype.destroy=function(){},i.prototype.getModuleName=function(){return"Annotation"},i}(ha),pa=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ua=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return pa(o,e),o.prototype.render=function(e,t,i,o){this.sideBySideInfo=this.getSideBySideInfo(e);for(var r=0,n=e.points;r<n.length;r++){var a=n[r];this.renderPoint(e,a,this.sideBySideInfo,void 0,t,i,o)}e.marker.visible&&e.chart.markerRender.render(e)},o.prototype.updateTipRegion=function(e,t,i){var o=this.getRectangle(t.xValue+i.median,t.maximum,t.xValue+i.median,t.minimum,e);this.updateTipSize(e,t,o,e.chart.requireInvertedAxis)},o.prototype.updateTipSize=function(e,t,i,o){var r=e.border.width||1;o?(i.y-=r/2,i.height=i.height||r):(i.x-=r/2,i.width=i.width||r),t.regions.push(i)},o.prototype.renderPoint=function(e,i,o,r,n,a,l){i.symbolLocations=[],i.regions=[];var s;i.visible&&x(e.points[i.index-1],i,e.points[i.index+1],e)&&(this.findBoxPlotValues(i.y,i,e.boxPlotMode,e.showOutliers),this.updateTipRegion(e,i,o),s=this.getRectangle(i.xValue+o.start,i.upperQuartile,i.xValue+o.end,i.lowerQuartile,e),i.regions.push(s),(r=this.triggerEvent(e,i,e.interior,{color:t.isNullOrUndefined(e.border.color)||"transparent"===e.border.color?Ee(e.interior,-.6):e.border.color,width:e.border.width?e.border.width:1})).cancel||this.renderBoxAndWhisker(e,i,r,this.getPathString(i,e,fe(i.xValue,i.median,n,a,l),fe(i.xValue+o.median,i.average,n,a,l)),o.median))},o.prototype.updateDirection=function(e,t,i){for(a=0;a<t.length;a++){var o=e.points[t[a]];if(this.renderPoint(e,o,this.sideBySideInfo,void 0,e.xAxis,e.yAxis,i),o.symbolLocations&&o.symbolLocations.length&&e.marker.visible&&e.chart.markerRender.renderMarker(e,o,o.symbolLocations[0],o.symbolLocations.length-1,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule){if(e.chart.dataLabelCollections=[],e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",0===o.outliers.length){var r=he(e.chart.dataLabelModule.commonId+o.index+"_Text_5");r&&r.remove()}e.chart.dataLabelModule.renderDataLabel(e,o,null,e.marker.dataLabel)}}for(var n=e.seriesElement.children,a=n.length-1;a>=0;a--)0===n[a].children.length&&e.seriesElement.removeChild(n[a])},o.prototype.getPathString=function(e,t,i,o){var r=e.regions[0],n=e.regions[1],a="",l=t.chart.requireInvertedAxis?r.y+r.height/2:r.x+r.width/2,s=n.x+n.width,h=n.y+n.height,c=r.x+r.width,d=r.y+r.height;return t.chart.requireInvertedAxis?(this.updateTipSize(t,e,{x:r.x,y:n.y,width:0,height:h-n.y},!1),this.updateTipSize(t,e,{x:c,y:n.y,width:0,height:h-n.y},!0),a+="M "+r.x+" "+n.y+" L "+r.x+" "+h,a+="M "+r.x+" "+l+" L "+n.x+" "+l,a+=" M "+n.x+" "+n.y+" L "+s+" "+n.y+" L "+s+" "+h+" L "+n.x+" "+h+" Z",a+=" M "+s+" "+l+" L "+c+" "+l,a+=" M "+c+" "+n.y+" L "+c+" "+h,a+=" M "+i.x+" "+n.y+" L "+i.x+" "+h,a+=t.showMean?"M "+(o.x+5)+" "+(o.y-5)+" L "+(o.x-5)+" "+(o.y+5)+"M "+(o.x-5)+" "+(o.y-5)+" L "+(o.x+5)+" "+(o.y+5):""):(this.updateTipSize(t,e,{x:n.x,y:r.y,width:s-n.x,height:0},!0),this.updateTipSize(t,e,{x:n.x,y:d,width:s-n.x,height:0},!0),a+="M "+n.x+" "+r.y+" L "+s+" "+r.y,a+=" M "+l+" "+r.y+" L "+l+" "+n.y,a+=" M "+n.x+" "+n.y+" L "+s+" "+n.y+" L "+s+" "+h+" L "+n.x+" "+h+" Z",a+=" M "+l+" "+h+" L "+l+" "+d,a+=" M "+n.x+" "+d+" L "+s+" "+d,a+=" M "+n.x+" "+i.y+" L "+s+" "+i.y,a+=t.showMean?" M "+(o.x-5)+" "+(o.y-5)+" L "+(o.x+5)+" "+(o.y+5)+" M "+(o.x+5)+" "+(o.y-5)+" L "+(o.x-5)+" "+(o.y+5):""),a},o.prototype.renderBoxAndWhisker=function(e,t,o,r,n){var a,l,s=e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),h=he(s+"_BoxPath")?he(s+"_BoxPath").getAttribute("d"):"",c=e.chart.renderer.drawPath(new i.PathOption(s+"_BoxPath",o.fill,o.border.width,o.border.color,e.opacity,e.border.dashArray,r),new Int32Array([e.clipRect.x,e.clipRect.y]));c.setAttribute("role","img"),c.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.maximum.toString()+":"+t.minimum.toString()+":"+t.lowerQuartile.toString()+":"+t.upperQuartile.toString());var d=e.chart.renderer.createGroup({id:s});be(e.chart.enableCanvas,d,c,e.chart.redraw,!0,null,null,null,h,null,null,null,e.chart.duration),null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(d.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index,c.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index+"_BoxPath");for(var p=0;p<t.outliers.length;p++)a=fe(t.xValue+n,t.outliers[p],e.xAxis,e.yAxis,e.chart.requireInvertedAxis),l=new i.Size(e.marker.width,e.marker.height),t.symbolLocations.push(a),this.updateTipSize(e,t,{x:a.x-l.width/2,y:a.y-l.height/2,width:l.width,height:l.height},!0);be(e.chart.enableCanvas,e.seriesElement,d,e.chart.redraw,!1,null,null,null,null,null,null,null,e.chart.duration,!0)},o.prototype.findBoxPlotValues=function(e,t,i,o){var r=e.length,n={average:S(e)/r,lowerQuartile:0,upperQuartile:0,maximum:0,minimum:0,median:0,outliers:[]};"Exclusive"===i?(n.lowerQuartile=this.getExclusiveQuartileValue(e,r,.25),n.upperQuartile=this.getExclusiveQuartileValue(e,r,.75),n.median=this.getExclusiveQuartileValue(e,r,.5)):"Inclusive"===i?(n.lowerQuartile=this.getInclusiveQuartileValue(e,r,.25),n.upperQuartile=this.getInclusiveQuartileValue(e,r,.75),n.median=this.getInclusiveQuartileValue(e,r,.5)):(n.median=Ie(e),this.getQuartileValues(e,r,n)),this.getMinMaxOutlier(e,r,n,o),t.minimum=n.minimum,t.maximum=n.maximum,t.lowerQuartile=n.lowerQuartile,t.upperQuartile=n.upperQuartile,t.median=n.median,t.outliers=n.outliers,t.average=n.average},o.prototype.getExclusiveQuartileValue=function(e,t,i){if(0===t)return 0;if(1===t)return e[0];var o=i*(t+1),r=Math.floor(Math.abs(o)),n=o-r;return 0===r?e[0]:r>t-1?e[t-1]:n*(e[r]-e[r-1])+e[r-1]},o.prototype.getInclusiveQuartileValue=function(e,t,i){if(0===t)return 0;if(1===t)return e[0];var o=i*(t-1),r=Math.floor(Math.abs(o));return(o-r)*(e[r+1]-e[r])+e[r]},o.prototype.getQuartileValues=function(e,t,i){if(1===t)return i.lowerQuartile=e[0],i.upperQuartile=e[0],null;var o=t%2==0,r=t/2,n=e.slice(0,r),a=e.slice(o?r:r+1,t);i.lowerQuartile=Ie(n),i.upperQuartile=Ie(a)},o.prototype.getMinMaxOutlier=function(e,t,i,o){for(var r=1.5*(i.upperQuartile-i.lowerQuartile),n=0;n<t;n++){if(!(e[n]<i.lowerQuartile-r&&o)){i.minimum=e[n];break}i.outliers.push(e[n])}for(n=t-1;n>=0;n--){if(!(e[n]>i.upperQuartile+r&&o)){i.maximum=e[n];break}i.outliers.push(e[n])}},o.prototype.doAnimation=function(e){this.animate(e)},o.prototype.getModuleName=function(){return"BoxAndWhiskerSeries"},o.prototype.destroy=function(){},o}(xr),ga=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ma=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return ga(o,e),o.prototype.render=function(e,i,o,r,n,a){var l,s,h,c,d=this,p=null,u="",g=Math.max(e.yAxis.visibleRange.min,0),m=[],y=this.sortSegments(e,e.segments),f="";this.enableComplexProperty(e).map(function(t,n,a){t.symbolLocations=[],t.regions=[],c=!1,t.visible&&x(a[n-1],t,a[n+1],e)&&(u+=d.getAreaPathDirection(t.xValue,g,e,r,fe,p,"M"),p=p||new mo(t.xValue,g),l=fe(t.xValue,t.yValue,i,o,r),h&&d.setPointColor(t,h,e,"X"===e.segmentAxis,y)?(c=!0,s=fe(p.x,g,i,o,r),u+="L "+l.x+" "+l.y+" ",u+="L "+l.x+" "+s.y+" ",d.generatePathOption(m,e,h,u,"_Point_"+h.index),u="M "+l.x+" "+s.y+" L "+l.x+" "+l.y+" "):(u+="L "+l.x+" "+l.y+" ",d.setPointColor(t,null,e,"X"===e.segmentAxis,y)),a[n+1]&&!a[n+1].visible&&"Drop"!==e.emptyPointSettings.mode&&(u+=d.getAreaEmptyDirection({x:t.xValue,y:g},p,e,r,fe),p=null),h=t,d.storePointLocation(t,e,r,fe))}),t.isNullOrUndefined(c)||c||(u=e.points.length>1?u+this.getAreaPathDirection(h.xValue,g,e,r,fe,null,"L"):"",this.generatePathOption(m,e,h,u,"")),0!==e.border.width&&(f=this.removeEmptyPointsBorder(this.getBorderDirection(u)),this.generateBorderPathOption(m,e,h,f,"")),this.applySegmentAxis(e,m,y,n),a||this.renderMarker(e)},o.prototype.generatePathOption=function(e,t,o,r,n){e.push(new i.PathOption(t.chart.element.id+"_Series_"+t.index+n,t.setPointColor(o,t.interior),0,"transparent",t.opacity,t.dashArray,r))},o.prototype.generateBorderPathOption=function(e,t,o,r,n){e.push(new i.PathOption(t.chart.element.id+"_Series_border_"+t.index+n,"transparent",t.border.width,t.border.color?t.border.color:t.interior,1,t.border.dashArray,r))},o.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},o.prototype.destroy=function(){},o.prototype.getModuleName=function(){return"MultiColoredAreaSeries"},o.prototype.doAnimation=function(e){this.doLinearAnimation(e,e.animation)},o}(wr),ya=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ya(t,e),t.prototype.render=function(e,t,o,r,n,a){for(var l,s=null,h="M",c=this.enableComplexProperty(e),d=[],p="",u=null,g=this.sortSegments(e,e.segments),m=0,y=c;m<y.length;m++){var f=y[m];f.regions=[],f.visible&&x(c[f.index-1],f,c[f.index+1],e)?(l=f,p+=this.getLineDirection(s,f,e,r,fe,h),null!=s?this.setPointColor(f,s,e,"X"===e.segmentAxis,g)?(d.push(new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+s.index,"none",e.width,e.setPointColor(s,e.interior),e.opacity,e.dashArray,p)),h="M",p=""):h="L":this.setPointColor(f,u,e,"X"===e.segmentAxis,g)&&""!==p&&(d.push(new i.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+u.index,"none",e.width,e.setPointColor(u,e.interior),e.opacity,e.dashArray,p)),h="M",p=""),s=f,u=f,this.storePointLocation(f,e,r,fe)):(s="Drop"===e.emptyPointSettings.mode?s:null,h="Drop"===e.emptyPointSettings.mode?h:"M",f.symbolLocations=[])}""!==p&&d.push(new i.PathOption(e.chart.element.id+"_Series_"+e.index,"none",e.width,e.setPointColor(l,e.interior),e.opacity,e.dashArray,p)),this.applySegmentAxis(e,d,g,n),a||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){this.doLinearAnimation(e,e.animation)},t.prototype.getModuleName=function(){return"MultiColoredLineSeries"},t.prototype.destroy=function(){},t}(wr),va=function(){function e(e){this.xAxisPrevHeight=[],this.xAxisMultiLabelHeight=[],this.yAxisPrevHeight=[],this.yAxisMultiLabelHeight=[],this.multiLevelLabelRectXRegion=[],this.xLabelCollection=[],this.chart=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.chart.isDestroyed||this.chart.on("click",this.click,this)},e.prototype.getMultilevelLabelsHeight=function(e){var t,o,r,n=this,a=0,l=[],s=[],h="Vertical"===e.orientation,c=h?e.rect.height:e.rect.width;e.multiLevelLabels.map(function(d,p){d.categories.map(function(a,s){if(""!==a.text&&null!==a.start&&null!==a.end){t=i.measureText(a.text,d.textStyle,n.chart.themeStyle.axisLabelFont),o=h?null!==a.maximumTextWidth?a.maximumTextWidth:t.width:t.height,o+=2*d.border.width+("CurlyBrace"===d.border.type?10:0),r=null!==a.maximumTextWidth?a.maximumTextWidth:T("string"==typeof a.end?Number(new Date(a.end)):a.end,e)*c-T("string"==typeof a.start?Number(new Date(a.start)):a.start,e)*c;var u=e.multiLevelLabels[p].categories.length;r=0!==s&&s!==u-1||"OnTicks"!==e.labelPlacement||"Shift"!==e.edgeLabelPlacement?r:r/2,t.width>r-10&&(n.chart.enableRtl?r<0:r>0)&&"Wrap"===d.overflow&&!h&&(o*=Ze(a.text,r-10,d.textStyle,n.chart.enableRtl,null,null,n.chart.themeStyle.axisLabelFont).length),l[p]=l[p]?l[p]<o?o:l[p]:o}}),s[p]=a,a+=l[p]?l[p]+10:0}),e.multiLevelLabelHeight=a+(""!==e.title||this.chart.legendModule&&this.chart.legendSettings.visible?5:0),h?(this.yAxisMultiLabelHeight=l,this.yAxisPrevHeight=s):(this.xAxisMultiLabelHeight=l,this.xAxisPrevHeight=s)},e.prototype.renderXAxisMultiLevelLabels=function(e,o,r,n){var a,l,s,h,c,d,p,u,g,m,y,f,v=this,b=(e.labelPosition===e.tickPosition?e.majorTickLines.height:0)+e.maxLabelSize.height+10,x="",S="Outside"===e.labelPosition,C=e.isAxisInverse,F=e.isAxisOpposedPosition,w=e.scrollbarSettings.enable||S&&t.isNullOrUndefined(e.crossesAt)?e.scrollBarHeight:0,L=F&&!S||!F&&S?n.y+b-e.majorTickLines.width:n.y-b-e.multiLevelLabelHeight;this.createClipRect(n.x-e.majorTickLines.width,L+w,e.multiLevelLabelHeight+10,n.width+2*e.majorTickLines.width,this.chart.element.id+"_XAxis_Clippath_"+o,this.chart.element.id+"XAxisMultiLevelLabel"+o),e.multiLevelLabels.map(function(r,L){h=0,v.labelElement=v.chart.renderer.createGroup({id:v.chart.element.id+o+"_MultiLevelLabel"+L}),r.categories.map(function(P,A){f=r.categories.length,x="",d="string"==typeof P.start?Number(new Date(P.start)):P.start,p="string"==typeof P.end?Number(new Date(P.end)):P.end;var M=t.extend({},t.getValue("properties",r.textStyle),null,!0);if(!(y=v.triggerMultiLabelRender(e,P.text,M,e.multiLevelLabels[L].alignment,P.customAttributes)).cancel){s=T(d,e)*n.width,c=T(p,e)*n.width,c=C?[s,s=c][0]:c,u=i.measureText(y.text,y.textStyle,v.chart.themeStyle.axisLabelFont),g=(null===P.maximumTextWidth?c-s:P.maximumTextWidth)-10,a=s+n.x+10,l=(F&&!S||!F&&S?b+n.y+u.height/2+10+v.xAxisPrevHeight[L]:n.y-b+u.height/2-v.xAxisMultiLabelHeight[L]-v.xAxisPrevHeight[L])+w,"Center"===y.alignment?(a+=(c-s-10)/2,m="middle"):"Far"===y.alignment?(a=a+(c-s-10)-r.border.width/2,"OnTicks"!==e.labelPlacement||0!==A&&A!==f-1||(a+=(c-s-10)/2,a-=u.width/2),m="end"):(m="start",a+=r.border.width/2),l="CurlyBrace"===r.border.type?!F&&S||F&&!S?l+10:l-5:l;var D=new i.TextOption(v.chart.element.id+o+"_Axis_MultiLevelLabel_Level_"+L+"_Text_"+A,a,l,m,y.text);if("None"!==r.overflow){if(e.edgeLabelPlacement&&"OnTicks"===e.labelPlacement)switch(e.edgeLabelPlacement){case"None":break;case"Shift":0===A||C&&A===f-1?("Center"===y.alignment&&(D.x<n.x+10||D.x-u.width/2)<e.rect.x?(D.x+=n.x/2,D.x/2<n.x&&(D.x=n.x+5,D.anchor="start")):"Far"===y.alignment&&(D.x<n.x+10||D.x>n.x+10)?D.x+=u.width/2-g/2:"Near"===y.alignment&&(D.x<n.x+10||D.x>n.x+10)&&(D.x=n.x+10),g/=2):(A===f-1||C&&0===A)&&("Center"===y.alignment&&D.x>n.x+n.width?(D.x-=10,D.x>n.width&&(D.x=n.width+n.x,D.anchor="end")):"Far"===y.alignment&&(D.x=n.width+n.x),g/=2)}D.text="Wrap"===r.overflow?Ze(y.text,g,y.textStyle,v.chart.enableRtl,null,null,v.chart.themeStyle.axisLabelFont):ze(g,y.text,y.textStyle,v.chart.enableRtl,v.chart.themeStyle.axisLabelFont),D.x=D.x-5}if(je(v.chart.renderer,D,y.textStyle,y.textStyle.color||v.chart.themeStyle.axisLabelFont.color,v.labelElement,!1,v.chart.redraw,!0,null,null,null,null,null,v.chart.enableCanvas,null,v.chart.themeStyle.axisLabelFont),v.chart.enableCanvas){var k=i.measureText(y.text,y.textStyle,v.chart.themeStyle.axisLabelFont);v.multiLevelLabelRectXRegion.push(new i.Rect(D.x,D.y,k.width,k.height)),v.xLabelCollection.push(D)}r.border.width>0&&"WithoutBorder"!==r.border.type&&""!==(x=v.renderXAxisLabelBorder(L,c-s-10,e,s,b,u,D,n,y.alignment,x,S,F,h))&&(v.createBorderElement(L,o,e,x,h),h++),v.chart.enableCanvas||v.multiElements.appendChild(v.labelElement)}})}),this.chart.enableCanvas||r.appendChild(this.multiElements)},e.prototype.renderXAxisLabelBorder=function(e,i,o,r,n,a,l,s,h,c,d,p,u){var g,m,y,f,v=10,b=o.multiLevelLabels[e],x=b.categories[u].type,S=i+v,C=t.isNullOrUndefined(this.xAxisMultiLabelHeight[e])?0:this.xAxisMultiLabelHeight[e]+v,F="Outside"===o.labelPosition?o.scrollBarHeight:0,w=r+s.x,L=!p&&d||p&&!d?n+s.y+this.xAxisPrevHeight[e]+F:s.y-n-this.xAxisPrevHeight[e]-F,P=x||b.border.type;switch(P){case"WithoutTopandBottomBorder":case"Rectangle":case"WithoutTopBorder":var A=u===o.multiLevelLabels[e].categories.length-1&&w+S>s.width?s.width+s.x:w+S,M=0===u&&o.multiLevelLabels[e].categories[0].start<=0?s.x:w;c+="M "+M+" "+L+" L "+M+" "+(L+(C=!p&&d||p&&!d?C:-C))+" M "+A+" "+L+" L "+A+" "+(L+C),c+="WithoutTopandBottomBorder"!==P?" L "+M+" "+(L+C)+" ":" ",c+="Rectangle"===P?"M "+M+" "+L+" L "+A+" "+L:" ";break;case"Brace":"Near"===h?(y=l.x,f=l.x+a.width+2):"Center"===h?(y=l.x-a.width/2-2,f=l.x+a.width/2+2):(y=l.x-a.width-2,f=l.x),c+="M "+w+" "+L+" L "+w+" "+(L+(C=!p&&d||p&&!d?C:-C)/2)+" M "+w+" "+(L+C/2)+" L "+(y-2)+" "+(L+C/2)+" M "+f+" "+(L+C/2)+" L "+(w+S)+" "+(L+C/2)+" M "+(w+S)+" "+(L+C/2)+" L "+(w+S)+" "+L;break;case"CurlyBrace":!p&&d||p&&!d?(v=10,g=15,m=5):(v=-10,g=-15,m=-5),c+="Center"===h?"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+S/2-5)+" "+(L+v)+" L "+(w+S/2)+" "+(L+g)+" L "+(w+S/2+5)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L:"Near"===h?"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+15)+" "+(L+g)+" L "+(w+20)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L:"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+S-20)+" "+(L+v)+" L "+(w+S-15)+" "+(L+g)+" L "+(w+S-10)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L}return c},e.prototype.renderYAxisMultiLevelLabels=function(e,o,r,n){var a,l,s,h,c,d,p,u,g,m,y=this,f="Outside"===e.labelPosition,v=(e.tickPosition===e.labelPosition?e.majorTickLines.height:0)+e.maxLabelSize.width+10,b="",x=e.isAxisInverse,S=e.isAxisOpposedPosition,C=f&&t.isNullOrUndefined(e.crossesAt)?e.scrollBarHeight:0;C*=S?1:-1;var F=S&&!f||!S&&f?n.x-e.multiLevelLabelHeight-v-10:n.x+v;this.createClipRect(F+C,n.y-e.majorTickLines.width,n.height+2*e.majorTickLines.width,e.multiLevelLabelHeight+10,this.chart.element.id+"_YAxis_Clippath_"+o,this.chart.element.id+"YAxisMultiLevelLabel"+o),e.multiLevelLabels.map(function(r,F){y.labelElement=y.chart.renderer.createGroup({id:y.chart.element.id+o+"_MultiLevelLabel"+F}),p=0,r.categories.map(function(w,L){b="",g="string"==typeof w.end?Number(new Date(w.end)):w.end,u="string"==typeof w.start?Number(new Date(w.start)):w.start,h=T(u,e)*n.height,c=T(g,e)*n.height,c=x?[h,h=c][0]:c;var P=t.extend({},t.getValue("properties",r.textStyle),null,!0);if(!(d=y.triggerMultiLabelRender(e,w.text,P,r.alignment,w.customAttributes)).cancel){var A=null===w.maximumTextWidth?y.yAxisMultiLabelHeight[F]/2:w.maximumTextWidth/2;a=i.measureText(d.text,d.textStyle,y.chart.themeStyle.axisLabelFont),m=c-h,l=n.x-v-y.yAxisPrevHeight[F]-A-5,s=n.height+n.y-h-m/2,l=S?f?n.x+v+5+A+y.yAxisPrevHeight[F]+C:n.x-v-A-y.yAxisPrevHeight[F]-5:f?l+C:n.x+v+5+A+y.yAxisPrevHeight[F],"Center"===d.alignment?s+=a.height/4:"Far"===d.alignment?s+=m/2-a.height/2:s=s-m/2+a.height,l="CurlyBrace"===r.border.type?!S&&f||S&&!f?l-10:l+10:l;var M=new i.TextOption(y.chart.element.id+o+"_Axis_MultiLevelLabel_Level_"+F+"_Text_"+L,l,s,"middle",d.text);M.text="Trim"===r.overflow?ze(null===w.maximumTextWidth?y.yAxisMultiLabelHeight[F]:w.maximumTextWidth,d.text,d.textStyle,y.chart.enableRtl,y.chart.themeStyle.axisLabelFont):M.text,M.text="Wrap"===r.overflow?Ze(d.text,null===w.maximumTextWidth?y.yAxisMultiLabelHeight[F]:w.maximumTextWidth,d.textStyle,y.chart.enableRtl,null,null,y.chart.themeStyle.axisLabelFont):M.text,"string"!=typeof M.text&&M.text.length>1&&(M.y-=10*M.text.length/2),je(y.chart.renderer,M,d.textStyle,d.textStyle.color||y.chart.themeStyle.axisLabelFont.color,y.labelElement,y.chart.redraw,!0,null,null,null,null,null,null,y.chart.enableCanvas,null,y.chart.themeStyle.axisLabelFont),r.border.width>0&&"WithoutBorder"!==r.border.type&&""!==(b=y.renderYAxisLabelBorder(F,m,e,c,v,h,a,M,n,d.alignment,b,f,S,p))&&(y.createBorderElement(F,o,e,b,p),p++),y.chart.enableCanvas||y.multiElements.appendChild(y.labelElement)}})}),this.chart.enableCanvas||r.appendChild(this.multiElements)},e.prototype.renderYAxisLabelBorder=function(e,i,o,r,n,a,l,s,h,c,d,p,u,g){var m,y,f=r-a,v=10,b=o.multiLevelLabels[e],x=b.categories[g].type,S=h.y+h.height-r,C=p&&t.isNullOrUndefined(o.crossesAt)?o.scrollBarHeight:0;C*=u?1:-1;var F=(null===b.categories[g].maximumTextWidth?this.yAxisMultiLabelHeight[e]:b.categories[g].maximumTextWidth)+v,w=(!u&&p||u&&!p?h.x-n-this.yAxisPrevHeight[e]:h.x+n+this.yAxisPrevHeight[e])+C,L=x||b.border.type;switch(L){case"WithoutTopandBottomBorder":case"Rectangle":case"WithoutTopBorder":d+="M "+w+" "+S+" L "+(w+(F=!u&&p||u&&!p?-F:F))+" "+S+" M "+w+" "+(S+f)+" L "+(w+F)+" "+(S+f),d+="WithoutTopandBottomBorder"!==L?" L "+(w+F)+" "+S+" ":" ",d+="Rectangle"===L?"M "+w+" "+(S+f)+"L "+w+" "+S+" ":" ";break;case"Brace":d+="M "+w+" "+S+" L "+(w-(F=!u&&p||u&&!p?F:-F)/2)+" "+S+" L "+(w-F/2)+" "+(s.y-l.height/2-4)+" M "+(w-F/2)+" "+(s.y+l.height/4+2)+" L "+(w-F/2)+" "+(S+f)+" L "+w+" "+(S+f);break;case"CurlyBrace":!u&&p||u&&!p?(v=-10,m=-15,y=-5):(v=10,m=15,y=5),d+="Center"===c?"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+v)+" "+(S+(f-10)/2)+" L "+(w+m)+" "+(S+(f-10)/2+5)+" L "+(w+v)+" "+(S+(f-10)/2+10)+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+y)+" "+(S+f)+" "+w+" "+(S+f):"Far"===c?"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+v)+" "+(S+f-20)+"  L "+(w+m)+" "+(S+(f-15))+" L "+(w+v)+" "+(S+(f-10))+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+v)+" "+(S+f)+" "+w+" "+(S+f):"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+m)+" "+(S+15)+" L "+(w+v)+" "+(S+20)+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+y)+" "+(S+f)+" "+w+" "+(S+f)}return d},e.prototype.createClipRect=function(e,t,i,o,r,n){this.multiElements=this.chart.renderer.createGroup({id:n,"clip-path":"url(#"+r+")"}),this.chart.enableCanvas||this.multiElements.appendChild(J(this.chart.redraw,{id:r,x:e,y:t,width:o,height:i,fill:"white","stroke-width":1,stroke:"Gray"},this.chart.renderer))},e.prototype.createBorderElement=function(e,t,o,r,n){var a=r,l=this.chart.renderer.drawPath(new i.PathOption(this.chart.element.id+t+"_Axis_MultiLevelLabel_Rect_"+e+"_"+n,"Transparent",o.multiLevelLabels[e].border.width,o.multiLevelLabels[e].border.color||this.chart.themeStyle.axisLine,1,"",r));l.style.pointerEvents="none",be(this.chart.enableCanvas,this.labelElement,l,this.chart.redraw,!0,"x","y",null,a)},e.prototype.triggerMultiLabelRender=function(e,t,i,o,r){var n={cancel:!1,name:"axisMultiLabelRender",axis:e,text:t,textStyle:i,alignment:o,customAttributes:r};return this.chart.trigger("axisMultiLabelRender",n),n},e.prototype.MultiLevelLabelClick=function(e,t){var i=parseInt(e.substr(0,1),10),o=parseInt(e.substr(7),10),r=this.chart.axisCollections[t],n=r.multiLevelLabels[i].categories,a=n[o].text,l=n[o].start,s=n[o].end,h={axis:r,level:i,text:a,customAttributes:n[o].customAttributes,start:l,end:s,name:"multiLevelLabelClick",cancel:!1};return this.chart.trigger("multiLevelLabelClick",h),h},e.prototype.click=function(e){var t,i,o,r=e.target.id,n="_Axis_MultiLevelLabel_Level_";if(this.chart.enableCanvas)for(var a=0;a<this.multiLevelLabelRectXRegion.length;a++)V(e.x,e.y,this.multiLevelLabelRectXRegion[a],this.multiLevelLabelRectXRegion[a].width,this.multiLevelLabelRectXRegion[a].height)&&(r=this.xLabelCollection[a].id);r.indexOf(n)>-1&&(t=r.split(n)[1],i=r.split(n)[0],o=parseInt(i.charAt(i.length-1),10),this.MultiLevelLabelClick(t,o))},e.prototype.getModuleName=function(){return"MultiLevelLabel"},e.prototype.destroy=function(){},e}(),ba=function(){function e(e){this.chartId=e.element.id+"_"}return e.prototype.renderElements=function(e,t){var i=e.axis.isAxisInverse,o=e.axis.scrollbarSettings,r=t.createGroup({id:this.chartId+"scrollBar_"+e.axis.name,transform:"translate("+(e.isVertical&&i?e.height:i?e.width:"0")+","+(e.isVertical&&i?"0":i?e.height:e.isVertical?e.width:"0")+") rotate("+(e.isVertical&&i?"90":e.isVertical?"270":i?"180":"0")+")"}),n=t.createGroup({id:this.chartId+"scrollBar_backRect_"+e.axis.name}),a=t.createGroup({id:this.chartId+"scrollBar_thumb_"+e.axis.name,transform:"translate(0,0)"});return this.backRect(e,t,n,o),this.thumb(e,t,a,o),this.renderCircle(e,t,a,o),this.arrows(e,t,a,o),this.thumbGrip(e,t,a,o),r.appendChild(n),r.appendChild(a),r},e.prototype.backRect=function(e,t,o,r){var n=e.scrollbarThemeStyle,a=t.drawRectangle(new co(this.chartId+"scrollBarBackRect_"+e.axis.name,r.trackColor||n.backRect,{width:1,color:r.trackColor||n.backRect},1,new i.Rect(r.enableZoom&&!e.isVertical?e.svgExtraWidth/2:0,0,e.width,e.height),r.trackRadius,r.trackRadius));o.appendChild(a)},e.prototype.arrows=function(e,t,o,r){var n=e.scrollbarThemeStyle,a=new i.PathOption(this.chartId+"scrollBar_leftArrow_"+e.axis.name,n.arrow,1,n.arrow,1,"","");this.leftArrowEle=t.drawPath(a),a.id=this.chartId+"scrollBar_rightArrow_"+e.axis.name,this.rightArrowEle=t.drawPath(a),this.setArrowDirection(this.thumbRectX,this.thumbRectWidth,e.height),r.enableZoom&&(o.appendChild(this.leftArrowEle),o.appendChild(this.rightArrowEle))},e.prototype.setArrowDirection=function(e,t,i){var o=i/2,r="M "+(e-o/2)+" "+i/2+" L "+(e-o/2+(i/2-o/4))+" "+(i-o/2)+" L "+(e-o/2+(i/2-o/4))+" "+o/2+" Z",n="M "+(e+t+o/2)+" "+i/2+" L "+(e+t+o/2-(i/2-o/4))+" "+(i-o/2)+" L "+(e+t+o/2-(i/2-o/4))+" "+o/2+" Z";this.leftArrowEle.setAttribute("d",r),this.rightArrowEle.setAttribute("d",n)},e.prototype.thumb=function(e,t,o,r){e.startX=this.thumbRectX;var n=e.scrollbarThemeStyle;this.slider=t.drawRectangle(new co(this.chartId+"scrollBarThumb_"+e.axis.name,r.scrollbarColor||n.thumb,{width:1,color:r.scrollbarColor||n.thumb},1,new i.Rect(r.enableZoom?this.thumbRectX:this.thumbRectX-e.height/2,0,r.enableZoom?this.thumbRectWidth:this.thumbRectWidth+e.height/2,e.height),r.scrollbarRadius,r.scrollbarRadius)),o.appendChild(this.slider)},e.prototype.renderCircle=function(e,t,i,o){var r=e.scrollbarThemeStyle,n=new uo(this.chartId+"scrollBar_leftCircle_"+e.axis.name,r.circle,{width:1,color:r.circle},1,this.thumbRectX,e.height/2,e.height/2),a=t.createDefs(),l=t.createGroup({id:this.chartId+e.axis.name+"_thumb_shadow"});a.innerText='<filter x="-25.0%" y="-20.0%" width="150.0%" height="150.0%" filterUnits="objectBoundingBox"id="scrollbar_shadow"><feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite><feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.16 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter>',l.innerText='<use fill="black" fill-opacity="1" filter="url(#scrollbar_shadow)" xlink:href="#'+this.chartId+"scrollBar_leftCircle_"+e.axis.name+'"></use><use fill="black" fill-opacity="1" filter="url(#scrollbar_shadow)" xlink:href="#'+this.chartId+"scrollBar_rightCircle_"+e.axis.name+'"></use>',this.leftCircleEle=t.drawCircle(n),n.id=this.chartId+"scrollBar_rightCircle_"+e.axis.name,n.cx=this.thumbRectX+this.thumbRectWidth,this.rightCircleEle=t.drawCircle(n),i.appendChild(a),o.enableZoom&&(i.appendChild(this.leftCircleEle),i.appendChild(this.rightCircleEle)),i.appendChild(l)},e.prototype.thumbGrip=function(e,t,i,o){var r=e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?-5:0,n=0,a=e.scrollbarThemeStyle,l=new uo(this.chartId+"scrollBar_gripCircle0_"+e.axis.name,o.gripColor||a.grip,{width:1,color:o.gripColor||a.grip},1,0,0,1);this.gripCircle=t.createGroup({id:this.chartId+"scrollBar_gripCircle_"+e.axis.name,transform:"translate("+(o.enableZoom?this.thumbRectX+this.thumbRectWidth/2+5*(e.isVertical?1:-1):this.thumbRectX+this.thumbRectWidth/2+5*(e.isVertical?2:0)-o.height/2)+","+(e.isVertical?e.height/2+2.5-.5:e.height/2-2.5-.5)+") rotate("+(e.isVertical?"180":"0")+")"});for(var s=1;s<=(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?10:6);s++)l.id=this.chartId+"scrollBar_gripCircle"+s+"_"+e.axis.name,l.cx=r,l.cy=n,this.gripCircle.appendChild(t.drawCircle(l)),r=s===(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?5:3)?e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?-5:0:r+5,n=s>=(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?5:3)?5:0;o.height>=12&&i.appendChild(this.gripCircle)},e}(),xa=function(){function e(e,i){this.svgExtraWidth=50,this.scrollRange={max:null,min:null,interval:null,delta:null},this.component=e,this.elements=[],this.scrollElements=new ba(e),this.axis=i,this.mouseMoveListener=this.scrollMouseMove.bind(this),this.mouseUpListener=this.scrollMouseUp.bind(this),this.animateDuration=500,this.isPointer=t.Browser.isPointer,this.browserName=t.Browser.info.name}return e.prototype.getMouseXY=function(e){var t,i,o;e.type.indexOf("touch")>-1?(t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(t=e.clientX,i=e.clientY);var r=he(this.component.element.id+"_scrollBar_svg"+this.axis.name).getBoundingClientRect();this.mouseX=t-Math.max(r.left,0),this.mouseY=i-Math.max(r.top,0)},e.prototype.wireEvents=function(e){t.EventHandler.add(e,t.Browser.touchStartEvent,this.scrollMouseDown,this),t.EventHandler.add(e,t.Browser.touchMoveEvent,this.scrollMouseMove,this),t.EventHandler.add(e,t.Browser.touchEndEvent,this.scrollMouseUp,this),t.EventHandler.add(e,"mousewheel",this.scrollMouseWheel,this),window.addEventListener("mousemove",this.mouseMoveListener,!1),window.addEventListener("mouseup",this.mouseUpListener,!1)},e.prototype.unWireEvents=function(e){t.EventHandler.remove(e,t.Browser.touchStartEvent,this.scrollMouseDown),t.EventHandler.remove(e,t.Browser.touchMoveEvent,this.scrollMouseMove),t.EventHandler.remove(e,t.Browser.touchEndEvent,this.scrollMouseUp),t.EventHandler.remove(e,"mousewheel",this.scrollMouseWheel),window.removeEventListener("mousemove",this.mouseMoveListener,!1),window.removeEventListener("mouseup",this.mouseUpListener,!1)},e.prototype.scrollMouseDown=function(e){var t=e.target.id,i=this.scrollElements,o=this.axis.isAxisInverse;if(this.getMouseXY(e),this.isResizeLeft=this.isExist(t,"_leftCircle_")||this.isExist(t,"_leftArrow_"),this.isResizeRight=this.isExist(t,"_rightCircle_")||this.isExist(t,"_rightArrow_"),this.previousXY=this.isVertical&&o?this.mouseY:this.isVertical?this.width-this.mouseY:o?this.width-this.mouseX:this.mouseX,this.previousWidth=i.thumbRectWidth,this.previousRectX=i.thumbRectX,this.startZoomPosition=this.axis.zoomPosition,this.startZoomFactor=this.axis.zoomFactor,this.startRange=this.axis.visibleRange,this.scrollStarted=!0,this.component.trigger("scrollStart",this.getArgs("scrollStart")),this.isExist(t,"scrollBarThumb_")||this.isExist(t,"gripCircle"))this.isThumbDrag=!0,this.axis.scrollbarSettings.height>=12&&(this.svgObject.style.cursor="-webkit-grabbing");else if(this.isExist(t,"scrollBarBackRect_")){var r=this.moveLength(this.previousXY,this.previousRectX);if(i.thumbRectX=this.isWithIn(r)?r:i.thumbRectX,this.positionThumb(i.thumbRectX,i.thumbRectWidth),this.setZoomFactorPosition(i.thumbRectX,i.thumbRectWidth),this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition,this.isLazyLoad){var n=i.thumbRectX>this.previousRectX?"RightMove":"LeftMove",a=this.calculateLazyRange(i.thumbRectX,i.thumbRectWidth,n);a&&this.component.trigger("scrollEnd",a)}}""===this.component.element.style.height&&(this.isCustomHeight=!0,this.component.element.style.height=this.component.availableSize.height+"px")},e.prototype.isExist=function(e,t){return e.indexOf(t)>-1},e.prototype.isWithIn=function(e){var t=this.axis.scrollbarSettings.height/2;return e-(this.axis.scrollbarSettings.enableZoom&&"Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)-t>=0&&e+this.scrollElements.thumbRectWidth+t<=this.width+(this.axis.scrollbarSettings.enableZoom&&"Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)},e.prototype.moveLength=function(e,t,i){void 0===i&&(i=this.axis.scrollbarSettings.height/2);var o=.1*(this.width-2*i);return o=e<t?t-(t-o>i?o:i):t+(t+this.scrollElements.thumbRectWidth+o<this.width-i?o:i)},e.prototype.setZoomFactorPosition=function(e,t){this.isScrollUI=!0;var i=this.axis,o=this.axis.scrollbarSettings.height/2;i.scrollbarSettings.enableZoom&&!this.isVertical&&(e-=this.svgExtraWidth/2,t+=this.svgExtraWidth/2);var r=e+t+o+1,n=o+.5,a=this.isVertical?i.rect.height:this.width+(i.scrollbarSettings.enableZoom?this.svgExtraWidth:0);this.zoomFactor=(t+(r>=this.width?o+1:0))/a,this.zoomPosition=r>a?1-i.zoomFactor:e<o+1?0:(e-(e-n<=0?n:0))/a,this.zoomPosition=this.component.enableRtl&&!this.isVertical&&!i.isInversed||i.isInversed&&(!this.component.enableRtl||this.isVertical)?1-(this.zoomPosition+i.zoomFactor):this.zoomPosition},e.prototype.scrollMouseMove=function(e){var i=e.target,o=this.scrollElements,r=this.axis.isAxisInverse;if(!he(this.svgObject.id))return null;this.getMouseXY(e),t.isNullOrUndefined(i.id)||(this.setCursor(i),this.setTheme(i));var n,a=this.isVertical&&r?this.width-this.mouseY:this.isVertical?this.mouseY:this.mouseX,l=this.axis.visibleRange,s=this.zoomPosition,h=this.zoomFactor,c=this.previousRectX-o.thumbRectX<0?"RightMove":"LeftMove";this.isLazyLoad&&(this.isThumbDrag||this.isResizeLeft||this.isResizeRight)&&(n=this.calculateLazyRange(o.thumbRectX,o.thumbRectWidth,c));var d=n?n.currentRange:null;if(this.isThumbDrag){this.component.isScrolling=this.isThumbDrag,a=this.isVertical||r?this.width-a:a;var p=o.thumbRectX+(a-this.previousXY);a>=p+o.thumbRectWidth?this.setCursor(i):this.axis.scrollbarSettings.height>=12&&(this.svgObject.style.cursor="-webkit-grabbing"),a>=0&&a<=p+o.thumbRectWidth&&(o.thumbRectX=this.isWithIn(p)?p:o.thumbRectX,this.positionThumb(o.thumbRectX,o.thumbRectWidth),this.previousXY=a,this.setZoomFactorPosition(p,o.thumbRectWidth),this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition),this.component.trigger("scrollChanged",this.getArgs("scrollChanged",l,s,h,d))}else(this.isResizeLeft&&("Horizontal"!==this.axis.orientation||a>this.svgExtraWidth/2+this.axis.scrollbarSettings.height/2)||this.isResizeRight&&("Horizontal"!==this.axis.orientation||a<this.width+this.svgExtraWidth))&&this.resizeThumb()},e.prototype.scrollMouseWheel=function(e){if(!this.axis.scrollbarSettings.enableZoom)return null;var t=he(this.component.element.id+"_scrollBar_svg"+this.axis.name).getBoundingClientRect();this.mouseX=e.clientX-Math.max(t.left,0),this.mouseY=e.clientY-Math.max(t.top,0);var i,o=.5,r=this.scrollElements,n=this.axis,a="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?1:-1:-e.detail/3>0?1:-1,l=Math.max(Math.max(1/se(n.zoomFactor,0,1),1)+.25*a,1),s=this.axis.visibleRange,h=this.zoomPosition,c=this.zoomFactor;l>=1&&(o=(o="Horizontal"===n.orientation?this.mouseX/n.rect.width:1-this.mouseY/n.rect.height)>1?1:o<0?0:o,this.zoomFactor=1===l?1:se(1/l,0,1),this.zoomPosition=1===l?0:n.zoomPosition+(n.zoomFactor-this.zoomFactor)*o),r.thumbRectX=this.isWithIn(this.zoomPosition*this.width)?this.zoomPosition*this.width:r.thumbRectX,this.isScrollUI=!0,this.positionThumb(r.thumbRectX,r.thumbRectWidth),this.isLazyLoad&&(this.setZoomFactorPosition(r.thumbRectX,r.thumbRectWidth),this.axis.zoomFactor=this.zoomFactor,this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition),n.zoomFactor=this.zoomFactor,n.zoomPosition=this.zoomPosition,this.isLazyLoad&&(i=this.calculateMouseWheelRange(r.thumbRectX,r.thumbRectWidth))&&i.currentRange.minimum!==i.previousAxisRange.minimum&&i.currentRange.maximum!==i.previousAxisRange.maximum&&(this.component.trigger("scrollEnd",i),this.isScrollEnd=!1),this.isLazyLoad||this.component.trigger("scrollChanged",this.getArgs("scrollChanged",s,h,c))},e.prototype.scrollMouseUp=function(){var e;this.startX=this.scrollElements.thumbRectX;var t=this.axis.scrollbarSettings.height/2,i=this.startX+this.scrollElements.thumbRectWidth+t+1,o=t+.5;if(!this.isResizeLeft&&!this.isResizeRight||this.isLazyLoad||(this.axis.zoomFactor=i>=this.width-1&&this.startX-o<=0?1:this.zoomFactor),this.isLazyLoad){var r=this.previousRectX-this.startX;if((r>0||r<0)&&this.isThumbDrag){var n=r<0?"RightMove":"LeftMove";this.startX="RightMove"===n?this.startX+Math.abs(r)<this.width-t?this.startX:this.width-t-this.scrollElements.thumbRectWidth:this.startX+this.scrollElements.thumbRectWidth-Math.abs(r)>t?this.startX:t,(e=this.calculateLazyRange(this.startX,this.scrollElements.thumbRectWidth,n))&&(this.component.trigger("scrollEnd",e),this.scrollStarted=!1)}(this.isResizeLeft||this.isResizeRight)&&(e=this.calculateLazyRange(this.startX,this.scrollElements.thumbRectWidth))&&(this.component.trigger("scrollEnd",e),this.scrollStarted=!1)}this.isThumbDrag=!1,this.isResizeLeft=!1,this.isResizeRight=!1,this.isScrollEnd=!1,this.component.isScrolling=!1,this.scrollStarted&&!this.isLazyLoad&&(this.component.trigger("scrollEnd",this.getArgs("scrollChanged",this.startRange,this.startZoomPosition,this.startZoomFactor)),this.scrollStarted=!1),this.isCustomHeight&&(this.component.element.style.height=null)},e.prototype.calculateMouseWheelRange=function(e,t){var i,o,r,n=this.scrollRange,a=this.getStartEnd(this.previousStart,this.previousEnd,!1),l=this.axis.scrollbarSettings.height/2;e+t+l<=this.width&&(o=(e-l)/this.width,i=t/this.width);var s=n.min+o*n.delta,h=s+i*n.delta;return h&&(r={axis:this.axis,currentRange:this.getStartEnd(s,h,!0),previousAxisRange:a}),r},e.prototype.calculateLazyRange=function(e,t,i){var o,r,n,a,l,s=t,h=this.scrollRange,c=this.getStartEnd(this.previousStart,this.previousEnd,!1),d=this.axis.scrollbarSettings.height/2;return this.isResizeRight||"RightMove"===i?(o=(s=this.isResizeRight?s+16:s)/this.width,r="RightMove"===i?(e+d)/this.width:this.axis.zoomPosition,a=(n="RightMove"===i?h.min+r*h.delta:this.previousStart)+o*h.delta):this.isResizeLeft||"LeftMove"===i?(r=(e-d)/this.width,o=s/this.width,n=(n=h.min+r*h.delta)>=h.min?n:h.min,a="LeftMove"===i?n+o*h.delta:this.previousEnd):this.isThumbDrag&&(r="RightMove"===i?(e+d)/this.width:(e-d)/this.width,o=this.scrollElements.thumbRectWidth/this.width,a=(n=(n=h.min+r*h.delta)>=h.min?n:h.min)+o*h.delta),a&&(l={axis:this.axis,currentRange:this.getStartEnd(n,a,!0),previousAxisRange:c}),l},e.prototype.getStartEnd=function(e,t,i){var o=this.valueType;if("DateTime"!==o&&"DateTimeCategory"!==o||!i){if(i){var r=Math.round(e),n=Math.ceil(t);"Category"===this.axis.valueType&&(n-=!this.axis.scrollbarSettings.enableZoom&&n-r>this.previousEnd-this.previousStart?n-r-(this.previousEnd-this.previousStart):0),this.previousStart=e=r,this.previousEnd=t=n}}else this.previousStart=e,this.previousEnd=t;switch(o){case"Double":case"Category":case"Logarithmic":e=Math.round(e),t=Math.ceil(t);break;case"DateTime":case"DateTimeCategory":e=new Date(e),t=new Date(t)}return{minimum:e,maximum:t}},e.prototype.render=function(e){return(this.component.zoomModule||e&&this.axis.scrollbarSettings.enable)&&this.getDefaults(),this.getTheme(),this.removeScrollSvg(),nt(this,this.component.svgRenderer),this.wireEvents(this.svgObject),this.svgObject.appendChild(this.scrollElements.renderElements(this,this.component.svgRenderer)),this.svgObject},e.prototype.getTheme=function(){this.scrollbarThemeStyle=rt(this.component.theme)},e.prototype.removeScrollSvg=function(){document.getElementById(this.component.element.id+"_scrollBar_svg"+this.axis.name)&&t.remove(document.getElementById(this.component.element.id+"_scrollBar_svg"+this.axis.name))},e.prototype.setCursor=function(e){var t=e.id;this.svgObject.style.cursor=(t.indexOf("scrollBarThumb_")>-1||t.indexOf("_gripCircle")>-1)&&this.axis.scrollbarSettings.height>=12?"-webkit-grab":t.indexOf("Circle_")>-1||t.indexOf("Arrow_")>-1?this.isVertical?"ns-resize":"ew-resize":"auto"},e.prototype.setTheme=function(e){var t=e.id,i=t.indexOf("_leftCircle_")>-1||t.indexOf("_leftArrow_")>-1,o=t.indexOf("_rightCircle_")>-1||t.indexOf("_rightArrow_")>-1,r=this.scrollbarThemeStyle,n=this.scrollElements.leftArrowEle,a=this.scrollElements.rightArrowEle,l=this.scrollElements.leftCircleEle,s=this.scrollElements.rightCircleEle,h=this.isCurrentAxis(e,n);l.style.fill=i&&h?r.circleHover:r.circle,s.style.fill=o&&h?r.circleHover:r.circle,l.style.stroke=i&&h?r.circleHover:r.circle,s.style.stroke=o&&h?r.circleHover:r.circle,"HighContrastLight"===this.component.theme&&(n.style.fill=i&&h?r.arrowHover:r.arrow,n.style.stroke=i&&h?r.arrowHover:r.arrow,a.style.fill=o&&h?r.arrowHover:r.arrow,a.style.stroke=o&&h?r.arrowHover:r.arrow,l.style.stroke=i&&h?r.circleHover:r.circle,s.style.stroke=o&&h?r.circleHover:r.circle)},e.prototype.isCurrentAxis=function(e,t){return e.id.split("_")[2]===t.id.split("_")[2]},e.prototype.resizeThumb=function(){var e,t=this.axis.scrollbarSettings.height/2,i=2*t+10+14,o=this.previousRectX,r=this.axis.isAxisInverse,n=this.isVertical&&r?this.mouseY:this.isVertical?this.width-this.mouseY:r?this.width-this.mouseX:this.mouseX,a=Math.abs(this.previousXY-n);if(this.isResizeLeft&&n>=0){var l=o+(n>this.previousXY?a:-a);if(e=l-t>=0?this.previousWidth+(n>this.previousXY?-a:a):this.previousWidth,l=l-t>=0?l:o,e>=i&&n<l+e){this.scrollElements.thumbRectX=this.previousRectX=l,this.scrollElements.thumbRectWidth=this.previousWidth=e,this.previousXY=n,this.setZoomFactorPosition(l,e);s={axis:this.axis,name:"scrollChanged",range:this.axis.visibleRange,zoomFactor:this.zoomFactor,zoomPosition:this.zoomPosition,previousRange:this.axis.visibleRange,previousZoomFactor:this.axis.zoomFactor,previousZoomPosition:this.axis.zoomPosition,currentRange:null,cancel:!1};this.component.trigger("scrollChanged",s),s.cancel?(this.zoomFactor=s.previousZoomFactor,this.zoomPosition=s.previousZoomPosition):(this.positionThumb(l,e),this.axis.zoomFactor=s.zoomFactor,this.axis.zoomPosition=s.zoomPosition)}}else if(this.isResizeRight){e=n>=i+this.scrollElements.thumbRectX&&n<=this.width+("Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)-t?n-this.scrollElements.thumbRectX:this.previousWidth,this.scrollElements.thumbRectWidth=this.previousWidth=e,this.previousXY=n,this.setZoomFactorPosition(this.startX,e),this.isLazyLoad||this.setZoomFactorPosition(this.startX,e);var s={axis:this.axis,name:"scrollChanged",range:this.axis.visibleRange,zoomFactor:this.zoomFactor,zoomPosition:this.zoomPosition,previousRange:this.axis.visibleRange,previousZoomFactor:this.axis.zoomFactor,previousZoomPosition:this.axis.zoomPosition,currentRange:null,cancel:!1};this.component.trigger("scrollChanged",s),s.cancel?(this.zoomFactor=s.previousZoomFactor,this.zoomPosition=s.previousZoomPosition):(this.positionThumb(this.startX,e),this.axis.zoomFactor=s.zoomFactor,this.axis.zoomPosition=s.zoomPosition)}},e.prototype.positionThumb=function(e,t){var i=this.scrollElements;i.slider.setAttribute("x",this.axis.scrollbarSettings.enableZoom?e.toString():(e-this.axis.scrollbarSettings.height/2).toString()),i.slider.setAttribute("width",this.axis.scrollbarSettings.enableZoom?t.toString():(t+this.axis.scrollbarSettings.height).toString()),i.leftCircleEle.setAttribute("cx",e.toString()),i.rightCircleEle.setAttribute("cx",(e+t).toString()),i.setArrowDirection(e,t,this.height),i.gripCircle.setAttribute("transform","translate("+(e+t/2+5*(this.isVertical?1:-1))+","+(this.isVertical?this.axis.scrollbarSettings.height/2+2.5-.5:this.axis.scrollbarSettings.height/2-2.5-.5)+") rotate("+(this.isVertical?"180":"0")+")")},e.prototype.getDefaults=function(){var e=this.axis,t=this.axis.scrollbarSettings.height/2,i=2*t+10+14;this.axis.scrollbarSettings.enable&&(this.isLazyLoad=!0,this.getLazyDefaults(e)),this.isVertical="Vertical"===e.orientation;var o=this.component.enableRtl&&!this.isVertical&&!e.isInversed||e.isInversed&&!(this.component.enableRtl&&!this.isVertical);this.zoomFactor=this.isLazyLoad?this.zoomFactor:e.zoomFactor,this.zoomPosition=this.isLazyLoad?o?1-(this.zoomPosition+this.zoomFactor):this.zoomPosition:o?1-(e.zoomPosition+e.zoomFactor):e.zoomPosition;var r=this.zoomFactor*(this.isVertical?e.rect.height:e.rect.width);r=this.isLazyLoad&&!this.axis.scrollbarSettings.enableZoom||r>i?r:i,this.scrollX=e.rect.x,this.scrollY=e.rect.y,this.width=this.isVertical?e.rect.height:e.rect.width,this.height=this.axis.scrollbarSettings.height;var n=this.zoomPosition*(this.isVertical?e.rect.height:this.width),a=this.width-i-t;this.scrollElements.thumbRectX=n>a?!this.isVertical&&this.axis.scrollbarSettings.enableZoom?a+this.svgExtraWidth/2:a:n<t?!this.isVertical&&this.axis.scrollbarSettings.enableZoom?t+this.svgExtraWidth/2:t:!this.isVertical&&this.axis.scrollbarSettings.enableZoom?n+this.svgExtraWidth/2:n,this.scrollElements.thumbRectWidth=this.isThumbDrag?this.scrollElements.thumbRectWidth:r+this.scrollElements.thumbRectX<this.width-2*t?r:(!this.isVertical&&this.axis.scrollbarSettings.enableZoom?this.width+this.svgExtraWidth/2:this.width)-this.scrollElements.thumbRectX-t},e.prototype.getLazyDefaults=function(e){var t,i,o=e.valueType,r=e.scrollbarSettings,n=e.scrollbarSettings.range,a=e.visibleRange,l=e.scrollbarSettings.pointsLength;this.valueType=o=r.range.minimum&&r.range.maximum||!r.pointsLength?o:"Double";var s={skeleton:"full",type:"dateTime"},h=this.component.intl.getDateParser(s),c=this.component.intl.getDateFormat(s);switch(o){case"Double":case"Category":case"Logarithmic":t=n.minimum?n.minimum:l?0:a.min,i=n.maximum?n.maximum:l?l-1:a.max;break;case"DateTime":case"DateTimeCategory":t=n.minimum?Date.parse(h(c(n.minimum))):a.min,i=n.maximum?Date.parse(h(c(n.maximum))):a.max}t=Math.min(t,a.min),i=Math.max(i,a.max);var d=(a.max-a.min)/(i-t),p=(a.min-t)/(i-t);this.zoomFactor=n.minimum||n.maximum?d:this.axis.maxPointLength/e.scrollbarSettings.pointsLength,this.zoomPosition=n.minimum||n.maximum?p:e.zoomPosition,this.zoomPosition=this.component.enableRtl&&"Horizontal"===e.orientation&&!e.isInversed||e.isInversed&&(!this.component.enableRtl||"Horizontal"!==e.orientation)?1-(this.zoomPosition+this.zoomFactor):this.zoomPosition,this.scrollRange.min=t,this.scrollRange.max=i,this.scrollRange.delta=i-t,this.previousStart=a.min,this.previousEnd=a.max},e.prototype.getLogRange=function(e){var t=e.scrollbarSettings.range,i=m(t.minimum,e.logBase),o=m(t.maximum,e.logBase);return i=isFinite(i)?i:t.minimum,o=isFinite(i)?o:t.maximum,{minimum:Math.floor(i/1),maximum:Math.ceil(o/1)}},e.prototype.injectTo=function(t,i){t.zoomingScrollBar=new e(i,t)},e.prototype.destroy=function(){var e=this;this.axes?this.axes.map(function(e){e.zoomingScrollBar.destroy()}):(this.elements.map(function(i){e.unWireEvents(i),t.remove(i.firstChild)}),this.elements=[])},e.prototype.getModuleName=function(){return"ScrollBar"},e.prototype.getArgs=function(e,t,i,o,r){return{axis:this.axis,name:e,range:this.axis.visibleRange,zoomFactor:this.axis.zoomFactor,zoomPosition:this.axis.zoomPosition,previousRange:t,previousZoomFactor:o,previousZoomPosition:i,currentRange:r}},e}(),Sa=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ca=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.paretoAxes=[],t}return Sa(t,e),t.prototype.initSeries=function(e,t){var i=new Bo(t,"series",e.properties,!0),o=t.palettes.length?t.palettes:it(t.theme),r=o.length;i.name="Pareto",i.yAxisName=e.yAxisName+"_CumulativeAxis",i.category="Pareto",e.category="Pareto",i.index=e.index+t.series.length,i.type="Line",i.interior=i.fill=i.paretoOptions.fill?i.paretoOptions.fill:o[i.index%r],i.width=i.paretoOptions.width,i.dashArray=i.paretoOptions.dashArray,i.marker=i.paretoOptions.marker,i.marker&&i.marker.visible&&(i.marker.shape=i.marker.shape?i.marker.shape:jo[t.markerIndex%10],t.markerIndex++),t.visibleSeries.push(i),this.initAxis(e,i,t)},t.prototype.initAxis=function(e,t,i){if(!this.paretoAxes.some(function(e){return e.name===t.yAxisName})){var o=e.yAxisName&&i.axes.length?i.axes.filter(function(t){return t.name===e.yAxisName})[0]:i.primaryYAxis,r=new oo(i,"axes",{name:t.yAxisName,majorGridLines:{width:0},majorTickLines:o.majorTickLines,lineStyle:o.lineStyle,minimum:0,maximum:100,interval:20,rowIndex:o.rowIndex,opposedPosition:!0,labelFormat:"{value}%"});this.paretoAxes.push(r)}},t.prototype.render=function(e){e.chart.columnSeriesModule.render(e)},t.prototype.performCumulativeCalculation=function(e,t){for(var i=e,o=0,r=0,n=i.length,a=0;a<n;a++)o+=i[a][t.yName];for(a=0;a<n;a++)r+=i[a][t.yName],i[a][t.yName]=Number((r/o*100).toFixed(2));return i},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.getModuleName=function(){return"ParetoSeries"},t.prototype.destroy=function(){},t}(xr),Fa=function(){function e(e){this.control=e}return e.prototype.export=function(e,i,o,n,a,l,s,h,c,d){var p=this,u=this.getControlsValue(n,s,d&&"PDF"===e,e),m=[],y=[],f=[],v=!(t.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1);o=t.isNullOrUndefined(o)?r.PdfPageOrientation.Landscape:o;for(var b=this,x=0;x<u.length;x++)!function(r){y.push(a||u[r].width),f.push(l||u[r].height);var s=n[r].svgObject,d=n[r].enableCanvas,x=void 0;d||(s=t.createElement("canvas",{id:"ej2-canvas",attrs:{width:y[r].toString(),height:f[r].toString()}}));var S='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+u[r].svg.outerHTML+"</svg>",C=window.URL.createObjectURL(new Blob("SVG"===e?[S]:[(new XMLSerializer).serializeToString(u[r].svg)],{type:"image/svg+xml"}));if("SVG"===e)if("msie"===t.Browser.info.name){var F=new Blob([(new XMLSerializer).serializeToString(u[r].svg)],{type:"application/octet-stream"});window.navigator.msSaveOrOpenBlob(F,i+"."+e.toLocaleLowerCase())}else b.triggerDownload(i,e,C,v);else if("msie"===t.Browser.info.name){var w=s;d||(w=b.createCanvas()),x=w.toDataURL(),m.push(s),"PDF"===e?m.length===u.length&&b.exportPdf(m,o,y,f,v,i,h,c):b.doexport(e,x,i)}else{var L=new Image,P=s.getContext("2d");L.onload=function(){P.drawImage(L,0,0),window.URL.revokeObjectURL(C),m.push(s),"PDF"===e?m.length===u.length&&p.exportPdf(m,o,y,f,v,i,h,c):window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(s.toBlob(null),i+"."+e.toLocaleLowerCase()):p.triggerDownload(i,e,s.toDataURL("image/"+e.toLowerCase()),v)},L.src=C}d||g(document.getElementById(n[r].element.id+"_canvas"))}(x)},e.prototype.getDataUrl=function(e){var i=this.getControlsValue([e]),o=this.control.svgObject,r=this.control.enableCanvas;r||(o=t.createElement("canvas",{id:"ej2-canvas",attrs:{width:i[0].width.toString(),height:i[0].height.toString()}}));var n=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(i[0].svg)],{type:"image/svg+xml"}));if("msie"===t.Browser.info.name){var a=o;r||(a=this.createCanvas());var l={name:"afterExport",cancel:!1,dataUrl:o.toDataURL("image/png")};return e.trigger("afterExport",l),{element:a,dataUrl:a.toDataURL()}}var s=new Image,h=o.getContext("2d");return s.onload=function(){h.drawImage(s,0,0),window.URL.revokeObjectURL(n);var t={name:"afterExport",cancel:!1,dataUrl:o.toDataURL("image/png")};return e.trigger("afterExport",t),t.dataUrl},s.src=n,{element:o,blobUrl:n}},e.prototype.triggerDownload=function(e,i,o,r){t.createElement("a",{attrs:{download:e+"."+i.toLocaleLowerCase(),href:o}}).dispatchEvent(new MouseEvent(r?"click":"move",{view:window,bubbles:!1,cancelable:!0}))},e.prototype.getControlsValue=function(e,o,r,n){for(var a,l=0,s=0,h=new i.SvgRenderer("").createSvg({id:"Svg_Export_Element",width:200,height:200}),c=[],d=0;d<e.length;d++){var p=e[d];p.enableRtl&&h.setAttribute("direction","rtl");var u=p.enableCanvas,g=p.svgObject.cloneNode(!0),m=p.renderer.createGroup({style:t.isNullOrUndefined(o)||o?"transform: translateY("+s+"px)":"transform: translateX("+l+"px)"});if("transparent"===(a=g.childNodes[0]?g.childNodes[0].getAttribute("fill"):"transparent")&&(a=p.theme.indexOf("Dark")>-1||p.theme.indexOf("HighContrast")>-1?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)"),!u){if("stockChart"===p.getModuleName()){g.childNodes[0].firstChild.setAttribute("fill",a);for(var y=1;y<g.childNodes.length;y++)g.childNodes[y].childNodes[0].setAttribute("fill",a)}else"SVG"===n&&g.childNodes[0].setAttribute("fill",a);m.appendChild(g)}var f=0,v=0;p.stockLegendModule&&p.legendSettings.visible&&("Bottom"===p.legendSettings.position||"Top"===p.legendSettings.position||"Auto"===p.legendSettings.position?f+=p.stockLegendModule.legendBounds.height:"Left"!==p.legendSettings.position&&"Right"!==p.legendSettings.position||(v+=p.stockLegendModule.legendBounds.width)),l=t.isNullOrUndefined(o)||o?Math.max(p.availableSize.width+v,l):l+p.availableSize.width+v,s=t.isNullOrUndefined(o)||o?s+p.availableSize.height+f:Math.max(p.availableSize.height+f,s),u||h.appendChild(m),(r||d===e.length-1)&&((!r&&!this.control.enableCanvas||r&&!u)&&(h.setAttribute("width",l+""),h.setAttribute("height",s+""),h.style.backgroundColor=a),c.push({width:l,height:s,svg:h})),r&&d<e.length&&(l=0,s=0,h=new i.SvgRenderer("").createSvg({id:"Svg_Export_Element",width:200,height:200}))}return c},e.prototype.createCanvas=function(){var e=this.control;this.canvasRender(!0,e);var t=e.svgObject;return this.canvasRender(!1,e),t},e.prototype.canvasRender=function(e,t){t.enableCanvas=e,t.preRender(),t.render()},e.prototype.exportPdf=function(e,t,o,n,a,l,s,h){for(var c=new r.PdfDocument,d=c.pageSettings.margins,p=c.pageSettings.width,u=c.pageSettings.height,g=0;e.length>g;g++){var m=e[g].toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");c.pageSettings.orientation=t;var y=p<o[g]?o[g]+d.left+d.right:p,f=0===t&&u>n[g]?o[g]+d.left+d.right:u<n[g]?n[g]+d.top+d.bottom:u;if(void 0!==s){for(var v=new r.PdfStandardFont(1,s.fontSize||15),b=new r.PdfSolidBrush(new r.PdfColor(0,0,0)),x=Ze(s.content,o[g]-(d.left+d.right+p/2),{size:s.fontSize.toString(),fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"},null),S=i.measureText("chartMeasureText",{size:s.fontSize.toString(),fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).height,C=S*x.length,F=new r.PdfPageTemplateElement(y,C),w=0;w<x.length;w++){var L=(s.y||0)+w*S;F.graphics.drawString(x[w],v,null,b,s.x,L,null)}c.template.top=F}if(void 0!==h){var v=new r.PdfStandardFont(1,h.fontSize||15),P=new r.PdfPageTemplateElement(y,30);P.graphics.drawString(h.content+"",v,null,new r.PdfSolidBrush(new r.PdfColor(0,0,0)),h.x,h.y,null),c.template.bottom=P}c.pageSettings.size=new r.SizeF(y,f),m=m.slice(m.indexOf(",")+1),c.pages.add().graphics.drawImage(new r.PdfBitmap(m),0,0,o[g],n[g])}a&&(c.save(l+".pdf"),c.destroy())},e.prototype.doexport=function(e,t,i){var o=[],r=e||"JPG";o=[t],this.exportImage(o,i,r,t)},e.prototype.exportImage=function(e,i,o,r){for(var n=[],a=e instanceof HTMLElement?0:e.length,l=0;l<a;l++){for(var s=(r=(r=e[l]).replace(/^data:[a-z]*;,/,"")).split(","),h=atob(s[1]),c=new ArrayBuffer(h.length),d=new Uint8Array(c),p=0;p<h.length;p++)d[p]=h.charCodeAt(p);n.push(c)}for(var u=0;u<n.length;u++){var g=new Blob([n[u]],{type:"application/octet-stream"});"msie"===t.Browser.info.name&&window.navigator.msSaveOrOpenBlob(g,i+"."+o.toLocaleLowerCase())}},e}(),wa=function(){function e(e){this.actualRowCount=0,this.series=[],this.axisCollection=[],this.requiredValuesLength=0,this.histogramSeriesCount=0,this.chart=e}return e.prototype.export=function(e,t,i,o,r,n,a,l,s,h){var c=new Fa(this.chart);if(o=o||[this.chart],"CSV"===e||"XLSX"===e)this.excelExport(o,t,e,r,n);else{var d={cancel:!1,name:"beforeExport",width:r,height:n,excelProperties:{rows:void 0,columns:void 0}};this.chart.trigger("beforeExport",d),d.cancel||c.export(e,t,i,o,r=d.width,n=d.height,a,l,s,h)}},e.prototype.excelExport=function(e,t,i,o,r){this.rows=[],this.actualRowCount=1;for(var a=[],l=[],s={bold:!0,hAlign:"Center",vAlign:"Center",wrapText:!0},h=[],c=0;c<e.length;c++){var d="rangeNavigator"===e[c].getModuleName(),p="accumulationchart"===e[c].getModuleName();if(this.series=d?e[c].series:e[c].visibleSeries,d&&0===this.series.length)e[c].dataSource&&this.createRangeNavigatorExcelSheet(e[c],s,i);else{if(this.histogramSeriesCount=0,this.requiredValuesLength=0,this.axisCollection=[],p||d?this.axisCollection.push(null):this.axisCollection="stockChart"===e[c].getModuleName()?e[c].chart.horizontalAxes:e[c].isTransposed?e[c].verticalAxes:e[c].horizontalAxes,l=this.getRequiredValues(d),0===this.requiredValuesLength&&this.series.length===this.histogramSeriesCount)return;h=this.getXValue(l,e[c],d,p),this.getTitle(l,s,e[c],d,p,i,h[0].length),this.createExcelSheet(d,p,h,i,l,s,e[c])}}var u=[];this.requiredValuesLength=0===this.requiredValuesLength?1:this.requiredValuesLength;for(var g=0;g<this.requiredValuesLength;g++)u.push({index:g+1,width:100});var m={cancel:!1,name:"beforeExport",width:o,height:r,excelProperties:{rows:this.rows,columns:u}};if(e[0].trigger("beforeExport",m),!m.cancel){a.push({columns:m.excelProperties.columns,rows:m.excelProperties.rows});var y=new n.Workbook({worksheets:a},"XLSX"===i?"xlsx":"csv");t=t||("XLSX"===i?"XLSX":"CSV"),y.save(t+("XLSX"===i?".xlsx":".csv"))}},e.prototype.createRangeNavigatorExcelSheet=function(e,t,i){var o=e.xName,r=e.yName;this.rows.push({index:this.actualRowCount,cells:[{index:1,value:e.valueType.indexOf("DateTime")>-1?e.valueType:"Category",colSpan:1,rowSpan:1,style:t},{index:2,value:r,colSpan:1,rowSpan:1,style:t}]}),this.actualRowCount++;for(var n=e.dataSource,a=0;a<n.length;a++)this.rows.push({index:this.actualRowCount,cells:[{index:1,value:"CSV"===i&&null===n[a][o]?"":n[a][o],colSpan:1,rowSpan:1,style:t},{index:2,value:"CSV"===i&&null===n[a][r]?"":n[a][r],colSpan:1,rowSpan:1,style:{}}]}),this.actualRowCount++;this.requiredValuesLength=2},e.prototype.getRequiredValues=function(e){for(var t=[],i=this,o=0;o<this.series.length;o++)!function(o){var r=i.series[o].type;if(!e&&!i.series[o].visible||"TrendLine"===i.series[o].category)return t.push([]),"continue";if("Histogram"===r?(t.push([]),i.histogramSeriesCount++):"Pareto"===i.series[o].category?t.push([i.series[o].xName,"y"]):-1!==r.indexOf("Range")||"Hilo"===r?t.push([i.series[o].xName,i.series[o].high,i.series[o].low]):"HiloOpenClose"===r||"Candle"===r?(t.push([i.series[o].xName,i.series[o].high,i.series[o].low,i.series[o].open,i.series[o].close]),"Candle"===r&&""!==i.series[o].volume&&t[o].push(i.series[o].volume)):"BoxAndWhisker"===r?t.push([i.series[o].xName,"maximum","upperQuartile","median","lowerQuartile","minimum","outliers"]):"Bubble"===r?(t.push([i.series[o].xName,i.series[o].yName]),""!==i.series[o].size&&t[o].push(i.series[o].size)):"Pie"===r?(t.push([i.series[o].xName,i.series[o].yName]),i.series[o].radius.match(/[a-zA-Z]/)&&t[o].push(i.series[o].radius)):t.push([i.series[o].xName,i.series[o].yName]),i.series[o].errorBar&&i.series[o].errorBar.visible){var n=i.series[o].errorBar;["verticalError","horizontalError","verticalNegativeError","horizontalNegativeError","verticalPositiveError","horizontalPositiveError"].forEach(function(e){"string"==typeof n[e]&&t[o].push(n[e])})}i.requiredValuesLength+=t[o].length}(o);return t},e.prototype.getTitle=function(e,t,i,o,r,n,a){var l,s=[],h=[],c=1,d=!1;!o&&"XLSX"===n&&i.title&&(this.rows.push({}),l=this.rows.length>0?this.rows.length-1:-1,this.actualRowCount++,d=!0);for(var p=0;p<this.axisCollection.length&&(!r||0!==a);p++){for(var u=!1,g="",m=c,y=!1,f=0;f<this.series.length;f++){var v=null!==this.axisCollection[p]?"primaryXAxis"===this.axisCollection[p].name||"primaryYAxis"===this.axisCollection[p].name&&this.series[f].type.indexOf("Bar")>-1?null:this.axisCollection[p].name:"";if(o||(r||v===this.series[f].xAxisName)&&this.series[f].visible&&"TrendLine"!==this.series[f].category&&"Histogram"!==this.series[f].type){y||(s.push({}),c++),y=!0;var b=this.series[f].name,x="BoxAndWhisker"===this.series[f].type?e[f].length-1:e[f].length;if(e[f][1]===this.series[f].yName)for(C=1;C<x;C++)s.push({index:c,value:1===C?b||"Series-"+(f+1):e[f][C],colSpan:1,rowSpan:1,style:t}),c++;else{s.push({index:c,value:b||"Series-"+(f+1),colSpan:x-1,rowSpan:1,style:t});for(var S=c,C=1;C<x;C++)h.push({index:S,value:e[f][C],colSpan:1,rowSpan:1,style:t}),S++;"BoxAndWhisker"===this.series[f].type&&(s.push({index:S,value:e[f][x],colSpan:1,rowSpan:2,style:t}),S++),c=S,u=!0}g=r?e[0][0]:o?i.valueType:this.axisCollection[p].valueType,g=r||g.indexOf("DateTime")>-1?g:"Category"}}y&&(s[m-1]={index:m,value:g,colSpan:1,rowSpan:u?2:1,style:t})}s.length&&(this.rows.push({index:this.actualRowCount,cells:s}),this.actualRowCount++),h.length&&(this.rows.push({index:this.actualRowCount,cells:h}),this.actualRowCount++),d&&((s=[]).push({index:1,value:i.title,colSpan:1===c?c:c-1,rowSpan:1,style:t}),this.rows[l]={index:l+1,cells:s}),this.requiredValuesLength=c-1},e.prototype.getXValue=function(e,t,i,r){for(var n=[],a=0;a<this.axisCollection.length;a++){for(var l=[],s=r?"":i?t.valueType:this.axisCollection[a].valueType,h=0;h<this.series.length;h++){var c=null!==this.axisCollection[a]?"primaryXAxis"===this.axisCollection[a].name||"primaryYAxis"===this.axisCollection[a].name&&this.series[h].type.indexOf("Bar")>-1?null:this.axisCollection[a].name:"";if((i||(r||c===this.series[h].xAxisName)&&this.series[h].visible)&&"TrendLine"!==this.series[h].category&&"Histogram"!==this.series[h].type)for(var d=this.series[h].dataSource instanceof o.DataManager?r?this.series[h].resultData:this.series[h].currentViewData:this.series[h].dataSource,p=0;p<d.length;p++)r&&!this.series[h].points[p].visible||l.push(s.indexOf("DateTime")>-1?new Date(d[p][e[h][0]]).getTime():d[p][e[h][0]])}n.push(l)}for(var u=0;u<n.length;u++)!function(e){n[e]=n[e].filter(function(t,i){return n[e].indexOf(t)===i})}(u);return n},e.prototype.createExcelSheet=function(e,i,r,n,a,l,s){for(var h=0,c=0,d=0;d<this.axisCollection.length;d++){for(var p=i?"":e?s[0].valueType:this.axisCollection[d].valueType,u=0;u<this.series.length;u++){var g=null!==this.axisCollection[d]?"primaryXAxis"===this.axisCollection[d].name||"primaryYAxis"===this.axisCollection[d].name&&this.series[u].type.indexOf("Bar")>-1?null:this.axisCollection[d].name:"";if((e||(i||this.series[u].xAxisName===g)&&this.series[u].visible)&&"TrendLine"!==this.series[u].category&&"Histogram"!==this.series[u].type)for(var m=this.series[u].dataSource instanceof o.DataManager?i?this.series[u].resultData:this.series[u].currentViewData:this.series[u].dataSource,y=0;y<m.length;y++){var f=p.indexOf("DateTime")>-1?"Pareto"===this.series[u].category?new Date(this.series[u].points[y][a[u][0]]).getTime():new Date(m[y][a[u][0]]).getTime():"Pareto"===this.series[u].category?this.series[u].points[y][a[u][0]]:m[y][a[u][0]];if(r[d].indexOf(f)>-1){c=h||1;for(var v=[],b="BoxAndWhisker"===this.series[u].type?a[u].length-1:a[u].length,x=0;x<b;x++){var S=this.series[u].enableComplexProperty?t.getValue(a[u][x],m[y]):m[y][a[u][x]],C=0===x||"BoxAndWhisker"!==this.series[u].type&&"Pareto"!==this.series[u].category?S:this.series[u].points[y][a[u][x]];null===C&&"CSV"===n&&(C=""),v.push({index:0===x?0===h?1:h:c,value:C,colSpan:1,rowSpan:1,style:0===x?l:{}}),c++}"BoxAndWhisker"===this.series[u].type&&(v.push({index:c,value:this.series[u].points[y].outliers[0],colSpan:1,rowSpan:1,style:{}}),c++),this.rows.push({index:this.actualRowCount,cells:v}),this.actualRowCount++}}}h=c}},e.prototype.getDataUrl=function(e){return new Fa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"Export"},e.prototype.destroy=function(){},e}(),La=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Pa=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Aa=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return La(i,e),Pa([t.Property(null)],i.prototype,"content",void 0),Pa([t.Property("0")],i.prototype,"x",void 0),Pa([t.Property("0")],i.prototype,"y",void 0),Pa([t.Property("Pixel")],i.prototype,"coordinateUnits",void 0),Pa([t.Property("Chart")],i.prototype,"region",void 0),Pa([t.Property("Middle")],i.prototype,"verticalAlignment",void 0),Pa([t.Property("Center")],i.prototype,"horizontalAlignment",void 0),Pa([t.Property(null)],i.prototype,"description",void 0),i}(t.ChildProperty),Ma=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return La(i,e),Pa([t.Property(!1)],i.prototype,"visible",void 0),Pa([t.Property(!0)],i.prototype,"showZero",void 0),Pa([t.Property(null)],i.prototype,"name",void 0),Pa([t.Property("transparent")],i.prototype,"fill",void 0),Pa([t.Property("Inside")],i.prototype,"position",void 0),Pa([t.Property(5)],i.prototype,"rx",void 0),Pa([t.Property(5)],i.prototype,"ry",void 0),Pa([t.Property(0)],i.prototype,"angle",void 0),Pa([t.Property(!1)],i.prototype,"enableRotation",void 0),Pa([t.Complex({width:null,color:null},hi)],i.prototype,"border",void 0),Pa([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"font",void 0),Pa([t.Complex({},ii)],i.prototype,"connectorStyle",void 0),Pa([t.Property(null)],i.prototype,"template",void 0),Pa([t.Property("")],i.prototype,"format",void 0),Pa([t.Property(null)],i.prototype,"maxWidth",void 0),Pa([t.Property("Ellipsis")],i.prototype,"textOverflow",void 0),Pa([t.Property("Normal")],i.prototype,"textWrap",void 0),i}(t.ChildProperty),Da=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return La(i,e),Pa([t.Property("50%")],i.prototype,"x",void 0),Pa([t.Property("50%")],i.prototype,"y",void 0),i}(t.ChildProperty),ka=function(){function e(){this.visible=!0,this.symbolLocation=null,this.region=null,this.labelRegion=null,this.labelVisible=!0,this.regions=null,this.isExplode=!1,this.isClubbed=!1,this.isSliced=!1,this.argsData=null,this.isLabelUpdated=null,this.initialLabelRegion=null}return e}(),Ra=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.points=[],t.clubbedPoints=[],t.sumOfPoints=0,t.isRectSeries=!0,t.clipRect=new i.Rect(0,0,0,0),t.category="Series",t.rightSidePoints=[],t.leftSidePoints=[],t}return La(r,e),r.prototype.refreshDataManager=function(e,i){var r=this;this.accumulation=e,this.radius=this.radius?this.radius:t.Browser.isDevice&&"Outside"===this.dataLabel.position?"40%":"80%";var n=this.dataSource||e.dataSource;if(!(n instanceof o.DataManager)&&t.isNullOrUndefined(this.query))return void this.dataManagerSuccess({result:n,count:n.length},e,i);this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(t){return r.dataManagerSuccess(t,e)})},r.prototype.dataManagerSuccess=function(e,t,i){void 0===i&&(i=!0);var o={name:"seriesRender",series:this,data:e.result};t.allowServerDataBinding=!1,t.trigger("seriesRender",o),this.resultData=""!==e.result?e.result:[],i||this.getPoints(this.resultData,t),++t.seriesCounts===t.visibleSeries.length&&i&&(this.getPoints(this.resultData,t),t.refreshChart())},r.prototype.getPoints=function(e,i){var o=Object.keys(e).length;if(this.sumOfPoints=0,0===o)return this.points=[],null;this.groupTo&&this.findSumOfPoints(e),this.points=[],this.clubbedPoints=[],this.sumOfClub=0;for(var r,n=this.palettes.length?this.palettes:it(i.theme),a=Ne(this.groupTo,this.sumOfPoints),l=0;l<o;l++)r=this.setPoints(e,l,n,i),this.isClub(r,a,l)?(r.index=this.clubbedPoints.length,r.isExplode=!0,this.clubbedPoints.push(r),r.isSliced=!0):(t.isNullOrUndefined(r.y)&&(r.visible=!1),this.pushPoints(r,n));if(this.groupTo||this.findSumOfPoints(e),this.lastGroupTo=this.groupTo,this.sumOfClub>0){var s=this.generateClubPoint();this.pushPoints(s,n);var h=this.points.length-1;this.clubbedPoints.map(function(e){e.index+=h,e.color=s.color})}this.clubbedPoints.length&&this.explode&&"Pie"===this.type&&(this.explodeAll||this.points[this.points.length-1].index===this.explodeIndex)&&(this.points.splice(this.points.length-1,1),this.points=this.points.concat(this.clubbedPoints))},r.prototype.generateClubPoint=function(){var e=new ka;return e.isClubbed=!0,e.x="Others",e.y=this.sumOfClub,e.text=e.originalText=e.x+": "+this.sumOfClub,e.sliceRadius="80%",e},r.prototype.pushPoints=function(e,t){e.index=this.points.length,e.isExplode=this.explodeAll||e.index===this.explodeIndex,e.color=e.color||t[e.index%t.length],this.points.push(e)},r.prototype.isClub=function(e,i,o){if(!t.isNullOrUndefined(i)){if("Value"===this.groupMode&&Math.abs(e.y)<=i)return this.sumOfClub+=Math.abs(e.y),!0;if("Point"===this.groupMode&&o>=i)return this.sumOfClub+=Math.abs(e.y),!0}return!1},r.prototype.findSumOfPoints=function(e){for(var i=Object.keys(e).length,o=0;o<i;o++)t.isNullOrUndefined(e[o])||t.isNullOrUndefined(e[o][this.yName])||isNaN(e[o][this.yName])||!(this.points.length&&this.points[o]&&this.points[o].visible&&!t.isNullOrUndefined(this.points[o].y)||this.groupTo)||(this.sumOfPoints+=Math.abs(e[o][this.yName]))},r.prototype.setPoints=function(e,i,o,r){var n=new ka;return n.x=t.getValue(this.xName,e[i]),n.y=t.getValue(this.yName,e[i]),n.legendImageUrl=t.getValue(this.legendImageUrl,e[i]),n.color=t.getValue(this.pointColorMapping,e[i]),n.text=n.originalText=t.getValue(this.dataLabel.name||"",e[i]),n.tooltip=t.getValue(this.tooltipMappingName||"",e[i]),n.sliceRadius=t.getValue(this.radius,e[i]),n.sliceRadius=t.isNullOrUndefined(n.sliceRadius)?"80%":n.sliceRadius,n.separatorY=r.intl.formatNumber(n.y,{useGrouping:r.useGroupingSeparator}),this.setVisibility(n,i),this.setAccEmptyPoint(n,i,e),n},r.prototype.renderSeries=function(e,i){var o=i?he(e.element.id+"_Series_"+this.index):e.renderer.createGroup({id:e.element.id+"_Series_"+this.index});this.renderPoints(e,o,i);var r;e.accumulationDataLabelModule&&this.dataLabel.visible&&((r=e.renderer.createGroup({id:e.element.id+"_datalabel_Series_"+this.index})).style.visibility=(this.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&"Pie"===this.type?"hidden":"visible",this.renderDataLabel(e,r,i)),"Pie"===this.type&&(e.redraw||this.findMaxBounds(this.labelBound,this.accumulationBound),e.pieSeriesModule.animateSeries(e,this.animation,this,o,this.borderRadius,this.points)),!e.redraw&&e.accumulationLegendModule&&(this.labelBound.x-=e.explodeDistance,this.labelBound.y-=e.explodeDistance,this.labelBound.height+=e.explodeDistance-this.labelBound.y,this.labelBound.width+=e.explodeDistance-this.labelBound.x)},r.prototype.renderPoints=function(e,t,o,r,n,a){for(var l,s,h=e.element.id+"_Series_"+this.index+"_Point_",c=[],d=[],p=["Chessboard","Dots","DiagonalForward","Crosshatch","Pacman","DiagonalBackward","Grid","Turquoise","Star","Triangle","Circle","Tile","HorizontalDash","VerticalDash","Rectangle","Box","VerticalStripe","HorizontalStripe","Bubble"],u=0,g=this.points;u<g.length;u++){var m=g[u];m.percentage=+(m.y/this.sumOfPoints*100).toFixed(2);var y={cancel:!1,name:Ri,series:this,point:m,fill:m.color,border:this.isEmpty(m)?{width:this.emptyPointSettings.border.width,color:this.emptyPointSettings.border.color}:{width:this.border.width,color:this.border.color},pattern:this.applyPattern?p[m.index%p.length]:"None"};e.trigger(Ri,y),m.color=y.fill,s=m.color,this.applyPattern&&(s=new Gn(e).pattern(e,m.color,m.index,y.pattern,this.opacity)),l=new i.PathOption(h+m.index,s,y.border.width||1,y.border.color||m.color,this.opacity,y.series.dashArray,""),"Trapezoidal"===this.funnelMode&&"Funnel"===this.type?(c.push(l),m.visible&&d.push(m)):e[U(this.type)+"SeriesModule"].renderPoint(m,this,e,l,t,o,r,n,a)}"Trapezoidal"===this.funnelMode&&"Funnel"===this.type?e[U(this.type)+"SeriesModule"].renderTrapezoidalFunnel(this,d,e,c,t,o):be(!1,e.getSeriesElement(),t,o)},r.prototype.renderDataLabel=function(e,i,o){e.accumulationDataLabelModule.findAreaRect();var r=t.createElement("div",{id:e.element.id+"_Series_0_DataLabelCollections"});this.leftSidePoints=[],this.rightSidePoints=[];for(var n=[],a=[],l=0,s=this.points;l<s.length;l++){var h=s[l];h.visible&&(this.dataLabel.showZero||!this.dataLabel.showZero&&(0!==h.y||0===h.y&&"Zero"===this.emptyPointSettings.mode))&&e.accumulationDataLabelModule.renderDataLabel(h,this.dataLabel,i,this.points,this.index,r,o),h.midAngle>=90&&h.midAngle<=270?this.leftSidePoints.push(h):h.midAngle>=0&&h.midAngle<=90?a.push(h):n.push(h)}if(n.sort(function(e,t){return e.midAngle-t.midAngle}),a.sort(function(e,t){return e.midAngle-t.midAngle}),this.leftSidePoints.sort(function(e,t){return e.midAngle-t.midAngle}),this.rightSidePoints=n.concat(a),e.accumulationDataLabelModule.drawDataLabels(this,this.dataLabel,i,r,o),null!==this.dataLabel.template&&r.childElementCount){var c=e.accumulationDataLabelModule.drawDataLabels.bind(e.accumulationDataLabelModule,this,this.dataLabel,i,r,o);e.isReact&&e.renderReactTemplates(c),be(!1,he(e.element.id+"_Secondary_Element"),r,o)}be(!1,e.getSeriesElement(),i,o)},r.prototype.findMaxBounds=function(e,t){e.x=t.x<e.x?t.x:e.x,e.y=t.y<e.y?t.y:e.y,e.height=t.y+t.height>e.height?t.y+t.height:e.height,e.width=t.x+t.width>e.width?t.x+t.width:e.width},r.prototype.findMaxLabelWidth=function(){for(var e,t=0;t<this.points.length;t++)(e=this.points[0].textSize.width)<this.points[t].textSize.width&&(e=this.points[t].textSize.width);return e},r.prototype.setAccEmptyPoint=function(e,i,o){if(!t.isNullOrUndefined(e.y)&&!isNaN(e.y))return null;switch(e.color=this.emptyPointSettings.fill||e.color,this.emptyPointSettings.mode){case"Zero":e.y=0,e.visible=!0;break;case"Average":var r=o[i-1]?o[i-1][this.yName]||0:0,n=o[i+1]?o[i+1][this.yName]||0:0;e.y=(Math.abs(r)+Math.abs(n))/2,this.sumOfPoints+=e.y,e.visible=!0;break;default:e.visible=!1}},r.prototype.setVisibility=function(e,t){this.accumulation.accumulationLegendModule&&this.accumulation.accumulationLegendModule.legendCollections&&this.accumulation.accumulationLegendModule.legendCollections[t]&&!this.accumulation.accumulationLegendModule.legendCollections[t].visible&&(e.visible=!1)},r.prototype.setData=function(e,i){if(!e)return null;var o=!1;if(this.dataSource.length===e.length){o=!0;for(a=0;a<e.length;a++){if(this.dataSource[a][this.xName]!==e[a][this.xName]){o=!1;break}var r=this.points[a];this.dataSource[a][this.yName]!==e[a][this.yName]&&(r.y=e[a][this.yName],this.dataSource[a]=e[a])}}if(o){this.sumOfPoints=0;for(var n=[],a=0;a<this.resultData.length;a++)this.points[a]&&this.points[a].visible&&n.push(this.resultData[a]);this.findSumOfPoints(n),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation,this.accumulation.animateSeries=!1;var l=this.accumulation.duration;this.accumulation.duration=t.isNullOrUndefined(i)?500:i,this.accumulation[U(this.type)+"SeriesModule"].initProperties(this.accumulation,this),this.renderPoints(this.accumulation,he(this.accumulation.element.id+"_Series_"+this.index),this.accumulation.redraw,null,null,!0),this.accumulation.centerLabel.text&&this.accumulation.renderCenterLabel(!0,!0),this.accumulation.annotationModule&&this.accumulation.annotationModule.renderAnnotations(he(this.accumulation.element.id+"_Secondary_Element")),this.accumulation.accumulationDataLabelModule&&this.dataLabel.visible&&this.renderDataLabel(this.accumulation,he(this.accumulation.element.id+"_datalabel_Series_"+this.index),this.accumulation.redraw),this.accumulation.redraw=!1,this.accumulation.duration=l}else this.dataSource=e},r.prototype.addPoint=function(e,i){var o;this.accumulation.series[0].dataLabel.visible&&(o=this.findMaxLabelWidth()),this.dataSource.push(e),this.resultData=this.dataSource,this.sumOfPoints=0;for(var r=[],n=0;n<this.resultData.length;n++)this.points[n]&&this.points[n].visible?r.push(this.resultData[n]):n===this.resultData.length-1&&r.push(this.resultData[n]);var a=0===this.points.length?0:this.points[this.points.length-1].index+1,l=this.palettes.length?this.palettes:it(this.accumulation.theme),s=this.setPoints(this.dataSource,a,l,this.accumulation);this.pushPoints(s,l),this.findSumOfPoints(r),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation;var h=this.accumulation.duration;this.accumulation.duration=t.isNullOrUndefined(i)?500:i,this.updateSeries(he(this.accumulation.element.id+"_Series_"+this.index),o,"addPoint"),this.accumulation.redraw=!1,this.accumulation.duration=h},r.prototype.removePoint=function(e,i){var o=t.extend([],this.dataSource,null,!0),r=this.accumulation.duration;if(o.length>0&&e>=0&&e<o.length){this.sumOfPoints=0;for(var n=[],a=0;a<this.dataSource.length;a++)a!==e&&this.points[a]&&this.points[a].visible&&n.push(this.dataSource[a]);o.splice(e,1),this.dataSource.splice(e,1),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation,this.accumulation.duration=t.isNullOrUndefined(i)?500:i,this.points.splice(e,1);for(a=e;a<this.points.length;a++){var l=this.points[a];l.index=a,l.y=this.points[a].y}this.findSumOfPoints(n);var s=he(this.accumulation.element.id+"_Series_0_Point_"+this.points.length);s&&s.parentNode.removeChild(s),this.updateSeries(he(this.accumulation.element.id+"_Series_"+this.index),void 0,"removePoint",e),this.accumulation.redraw=!1,this.accumulation.duration=r}},r.prototype.updateSeries=function(e,t,o,r){var n,a=this.accumulation[U(this.type)+"SeriesModule"].radius,l=this.accumulation[U(this.type)+"SeriesModule"].center;if(this.accumulation.legendSettings.visible){if("addPoint"===o)this.accumulation.accumulationLegendModule.legendCollections.push(new qo(this.points[this.points.length-1].x.toString(),this.points[this.points.length-1].color,this.legendShape,this.points[this.points.length-1].visible,this.type,this.points[this.points.length-1].legendImageUrl,null,null,this.points[this.points.length-1].index,this.index));else{this.accumulation.accumulationLegendModule.legendCollections.splice(r,1);for(var s=r;s<this.accumulation.accumulationLegendModule.legendCollections.length;s++)this.accumulation.accumulationLegendModule.legendCollections[s].pointIndex=s}if(this.accumulation.accumulationLegendModule.legendCollections.length>=1&&(n=this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.accumulationLegendModule.calculateLegendBounds(this.accumulation.initialClipRect,this.accumulation.availableSize,null,n,!0),!this.dataLabel||"Outside"!==this.dataLabel.position||"Bottom"!==this.accumulation.legendSettings.position&&"Top"!==this.accumulation.legendSettings.position?n.width!==this.accumulation.accumulationLegendModule.legendBounds.width:n.height!==this.accumulation.accumulationLegendModule.legendBounds.height)){var h=this.accumulation.title?i.measureText(this.accumulation.title,this.accumulation.titleStyle,this.accumulation.themeStyle.chartTitleFont).height*this.accumulation.titleCollection.length:0,c=this.accumulation.subTitle?i.measureText(this.accumulation.subTitle,this.accumulation.subTitleStyle,this.accumulation.themeStyle.chartSubTitleFont).height*this.accumulation.subTitleCollection.length:0;this.accumulation.initialClipRect=new i.Rect(this.accumulation.margin.left,this.accumulation.margin.top,this.accumulation.availableSize.width,this.accumulation.availableSize.height),w(this.accumulation.initialClipRect,new i.Rect(0,c+h,this.accumulation.margin.right+this.accumulation.margin.left,this.accumulation.margin.bottom+this.accumulation.margin.top)),this.accumulation.accumulationLegendModule.calculateLegendBounds(this.accumulation.initialClipRect,this.accumulation.availableSize,null)}}if(this.accumulation[U(this.type)+"SeriesModule"].initProperties(this.accumulation,this),this.renderPoints(this.accumulation,e,this.accumulation.redraw,a,l,!0),n&&("Bottom"===this.accumulation.legendSettings.position||"Top"===this.accumulation.legendSettings.position?n.height!==this.accumulation.accumulationLegendModule.legendBounds.height:n.width!==this.accumulation.accumulationLegendModule.legendBounds.width)&&this.accumulation.centerLabel.text&&this.accumulation.renderCenterLabel(!0,!0),this.accumulation.annotationModule&&this.accumulation.annotationModule.renderAnnotations(he(this.accumulation.element.id+"_Secondary_Element")),this.accumulation.accumulationDataLabelModule&&this.dataLabel.visible){var d=this.accumulation.renderer.createGroup({id:this.accumulation.element.id+"_datalabel_Series_"+this.index});this.renderDataLabel(this.accumulation,d,this.accumulation.redraw)}this.accumulation.legendSettings.visible&&("Pie"===this.type&&(this.dataLabel.visible&&this.points[this.points.length-1]&&this.points[this.points.length-1].textSize.width>t&&"Top"!==this.accumulation.legendSettings.position&&"Bottom"!==this.accumulation.legendSettings.position&&(this.accumulation.visibleSeries[0].findMaxBounds(this.accumulation.visibleSeries[0].labelBound,this.points[this.points.length-1].labelRegion),this.findMaxBounds(this.labelBound,this.accumulationBound),this.labelBound.x-=this.accumulation.explodeDistance,this.labelBound.y-=this.accumulation.explodeDistance,this.labelBound.height+=this.accumulation.explodeDistance-this.labelBound.y,this.labelBound.width+=this.accumulation.explodeDistance-this.labelBound.x),this.accumulation.accumulationLegendModule.getSmartLegendLocation(this.accumulation.visibleSeries[0].labelBound,this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.margin)),this.accumulation.accumulationLegendModule.renderLegend(this.accumulation,this.accumulation.legendSettings,this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.redraw,!0))},r.prototype.isEmpty=function(e){return e.color===this.emptyPointSettings.fill},Pa([t.Property("")],r.prototype,"dataSource",void 0),Pa([t.Property()],r.prototype,"query",void 0),Pa([t.Property("")],r.prototype,"xName",void 0),Pa([t.Property("")],r.prototype,"name",void 0),Pa([t.Property("")],r.prototype,"tooltipMappingName",void 0),Pa([t.Property("")],r.prototype,"yName",void 0),Pa([t.Property(!0)],r.prototype,"visible",void 0),Pa([t.Complex({color:null,width:0},hi)],r.prototype,"border",void 0),Pa([t.Complex(null,pi)],r.prototype,"animation",void 0),Pa([t.Property("SeriesType")],r.prototype,"legendShape",void 0),Pa([t.Property("")],r.prototype,"legendImageUrl",void 0),Pa([t.Property("")],r.prototype,"pointColorMapping",void 0),Pa([t.Property(!1)],r.prototype,"applyPattern",void 0),Pa([t.Property(null)],r.prototype,"selectionStyle",void 0),Pa([t.Property(null)],r.prototype,"groupTo",void 0),Pa([t.Property("Value")],r.prototype,"groupMode",void 0),Pa([t.Complex({},Ma)],r.prototype,"dataLabel",void 0),Pa([t.Property([])],r.prototype,"palettes",void 0),Pa([t.Property(0)],r.prototype,"startAngle",void 0),Pa([t.Property(null)],r.prototype,"endAngle",void 0),Pa([t.Property(null)],r.prototype,"radius",void 0),Pa([t.Property("0")],r.prototype,"innerRadius",void 0),Pa([t.Property("Pie")],r.prototype,"type",void 0),Pa([t.Property(!0)],r.prototype,"enableTooltip",void 0),Pa([t.Property(!1)],r.prototype,"explode",void 0),Pa([t.Property("30%")],r.prototype,"explodeOffset",void 0),Pa([t.Property(!1)],r.prototype,"explodeAll",void 0),Pa([t.Property(null)],r.prototype,"explodeIndex",void 0),Pa([t.Complex({mode:"Drop"},gi)],r.prototype,"emptyPointSettings",void 0),Pa([t.Property(0)],r.prototype,"gapRatio",void 0),Pa([t.Property("80%")],r.prototype,"width",void 0),Pa([t.Property("80%")],r.prototype,"height",void 0),Pa([t.Property("20%")],r.prototype,"neckWidth",void 0),Pa([t.Property("20%")],r.prototype,"neckHeight",void 0),Pa([t.Property("Linear")],r.prototype,"pyramidMode",void 0),Pa([t.Property("Standard")],r.prototype,"funnelMode",void 0),Pa([t.Property(1)],r.prototype,"opacity",void 0),Pa([t.Property("0")],r.prototype,"dashArray",void 0),Pa([t.Complex({},ri)],r.prototype,"accessibility",void 0),Pa([t.Property(0)],r.prototype,"borderRadius",void 0),r}(t.ChildProperty),Ta=function(){function e(e){this.accumulation=e}return Object.defineProperty(e.prototype,"center",{get:function(){return this.pieCenter||("Pie"===this.accumulation.visibleSeries[0].type?this.accumulation.pieSeriesModule.pieBaseCenter:null)},set:function(e){this.pieCenter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return void 0!==this.pieRadius?this.pieRadius:this.accumulation.pieSeriesModule.pieBaseRadius},set:function(e){this.pieRadius=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelRadius",{get:function(){return void 0!==this.pieLabelRadius?this.pieLabelRadius:this.accumulation.pieSeriesModule.pieBaseLabelRadius},set:function(e){this.pieLabelRadius=e},enumerable:!0,configurable:!0}),e.prototype.isCircular=function(){return"Pie"===this.accumulation.type},e.prototype.isVariousRadius=function(){return this.accumulation.pieSeriesModule.isRadiusMapped},e.prototype.processExplode=function(e){if(e.target.id.indexOf("_Series_")>-1||e.target.id.indexOf("_datalabel_")>-1){var t=_(e.target.id).point;if(isNaN(t)||e.target.id.indexOf("_datalabel_")>-1&&"Outside"===this.accumulation.visibleSeries[0].points[t].labelPosition)return null;this.explodePoints(t,this.accumulation),this.deExplodeAll(t,this.accumulation.enableAnimation?300:0)}},e.prototype.invokeExplode=function(){for(var e=this.accumulation.visibleSeries[0],t=this.accumulation.enableAnimation?300:0,i=0,o=e.points;i<o.length;i++){var r=o[i];r.isExplode&&0!==r.y&&this.pointExplode(r.index,r,t)}if(this.accumulation.accumulationSelectionModule&&"None"!==this.accumulation.selectionMode&&this.accumulation.accumulationSelectionModule.selectedDataIndexes.length)for(var n=0,a=this.accumulation.accumulationSelectionModule.selectedDataIndexes;n<a.length;n++){var l=a[n];this.explodePoints(l.point,this.accumulation,!0),this.deExplodeAll(l.point,t)}},e.prototype.deExplodeAll=function(e,t){for(var i=this.accumulation.element.id+"_Series_0_Point_",o=0,r=this.accumulation.visibleSeries[0].points;o<r.length;o++){var n=r[o];(e!==n.index&&!n.isSliced||n.isClubbed)&&(n.isExplode=!1,this.deExplodeSlice(n.index,i,t))}},e.prototype.explodePoints=function(e,i,o,r){void 0===o&&(o=!1);var n=i.visibleSeries[0],a=n.points,l=lt(e,a),s=!0,h=this.accumulation.enableAnimation?300:0;if(t.isNullOrUndefined(l))return null;var c=!o&&(l.isSliced||n.clubbedPoints.length&&a[a.length-1].index===n.clubbedPoints[n.clubbedPoints.length-1].index);"Pie"===n.type&&(c||l.isClubbed)&&(s=this.clubPointExplode(e,l,n,a,i,h,c)),s&&0!==l.y&&this.pointExplode(e,l,h,o,r)},e.prototype.getSum=function(e){var t=0;return e.map(function(e){t+=e.visible?e.y:0}),t},e.prototype.clubPointExplode=function(e,t,i,o,r,n,a){if(void 0===a&&(a=!1),t.isClubbed)return r.animateSeries=!1,o.splice(o.length-1,1),i.clubbedPoints.map(function(e){e.visible=!0,e.isExplode=!0}),r.visibleSeries[0].points=o.concat(i.clubbedPoints),this.deExplodeAll(e,n),i.sumOfPoints=this.getSum(r.visibleSeries[0].points),r.refreshChart(),!1;if(a||t.isSliced){r.animateSeries=!1,o.splice(o.length-i.clubbedPoints.length,i.clubbedPoints.length);var l=i.generateClubPoint();if(l.index=o.length,l.color=i.clubbedPoints[0].color,o.push(l),i.sumOfPoints=this.getSum(o),this.deExplodeAll(e,n),l.isExplode=!1,r.visibleSeries[0].points=o,r.refreshChart(),this.pointExplode(l.index,o[l.index],0,!0),l.isExplode=!1,this.deExplodeSlice(l.index,r.element.id+"_Series_0_Point_",n),t.isSliced)return!1}return!0},e.prototype.pointExplode=function(e,t,i,o,r){var n,a=this.accumulation.element.id+"_Series_0_Point_",l=this.accumulation;n=this.isCircular()?L(t.midAngle,l.explodeDistance,this.center):{x:t.labelRegion&&t.labelRegion.x<t.region.x?-l.explodeDistance:l.explodeDistance,y:0},this.isExplode(a+e)||o?(t.isExplode=!0,this.explodeSlice(e,n,a,this.center||{x:0,y:0},i,r)):(t.isExplode=!1,this.deExplodeSlice(e,a,i))},e.prototype.isExplode=function(e){var t=he(e),i=t?t.getAttribute("transform"):null;return t&&("translate(0, 0)"===i||null===i||"translate(0)"===i)},e.prototype.deExplodeSlice=function(e,t,i){var o=he(t+e),r=o?o.getAttribute("transform"):null;if(this.accumulation.enableAnimation&&o&&r&&"translate(0, 0)"!==r&&"translate(0)"!==r){var n=r.split("(")[1].split(")")[0].split(",");this.performAnimation(e,t,0,0,+n[0],+n[1]||0,i,!0)}else this.performAnimation(e,t,0,0,0,0,i,!0)},e.prototype.setTranslate=function(e,t,i,o){this.setElementTransform(t+e,i),this.setElementTransform(t+e+"_polygon",i),this.accumulation.visibleSeries[0].dataLabel.visible&&(t=this.accumulation.element.id+"_datalabel_Series_0_",this.setElementTransform(t+"shape_"+e,i),this.setElementTransform(t+"text_"+e,i+o),this.setElementTransform(t+"connector_"+e,i))},e.prototype.setElementTransform=function(e,t){var i=he(e);i&&i.setAttribute("transform",t)},e.prototype.explodeSlice=function(e,t,i,o,r,n){n&&he(this.accumulation.element.id+"_Series_0_Point_"+e).getAttribute("transform")?this.setElementTransform(i+e,"translate("+(t.x-o.x)+", "+(t.y-o.y)+")"):this.performAnimation(e,i,0,0,t.x-o.x,t.y-o.y,r)},e.prototype.performAnimation=function(e,i,o,r,n,a,l,s){var h=this,c=this.accumulation,d=i.split("_"),p=parseInt(i.split("_")[d.length-3],10),u=c.visibleSeries[p].points[e];if(l<=0)return this.setTranslate(e,i,"translate("+n+", "+a+")",u.transform),null;var g,m,y="Pie"===this.accumulation.series[p].type&&this.accumulation.animateSeries&&this.accumulation.series[0].animation.enable?this.accumulation.series[0].animation.duration:0;new t.Animation({}).animate(t.createElement("div"),{duration:l,delay:y,progress:function(t){g=Z(t.timeStamp,o,n,t.duration),m=Z(t.timeStamp,r,a,t.duration),h.setTranslate(e,i,"translate("+(s?n-g:g)+", "+(s?a-m:m)+")",u.transform)},end:function(){h.setTranslate(e,i,"translate("+(s?o:n)+", "+(s?o:a)+")",u.transform)}})},e}(),Ea=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_a=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Ea(o,e),o.prototype.initProperties=function(e,t){this.accumulation=e,this.size=Math.min(e.initialClipRect.width,e.initialClipRect.height),this.initAngles(t);var i=parseInt(t.radius,10);if(-1===t.radius.indexOf("%")&&"number"!=typeof i||isNaN(i)){var o=[];this.isRadiusMapped=!0;for(var r=0;r<Object.keys(t.points).length;r++)-1!==t.points[r].sliceRadius.indexOf("%")?o[r]=Ne(t.points[r].sliceRadius,this.size/2):o[r]=parseInt(t.points[r].sliceRadius,10);var n=Math.min.apply(null,o),a=Math.max.apply(null,o);this.pieBaseRadius=this.seriesRadius=a,this.innerRadius=Ne(t.innerRadius,this.seriesRadius),this.innerRadius=this.innerRadius>n?this.innerRadius/2:this.innerRadius}else this.isRadiusMapped=!1,this.pieBaseRadius=Ne(t.radius,t.border.width>20?.4*this.size:this.size/2),this.innerRadius=Ne(t.innerRadius,this.pieBaseRadius),this.pieBaseLabelRadius="Inside"===t.dataLabel.position?(this.pieBaseRadius-this.innerRadius)/2+this.innerRadius:this.pieBaseRadius+Ne(t.dataLabel.connectorStyle.length||"4%",this.size/2);this.radius=this.pieBaseRadius,this.labelRadius=this.pieBaseLabelRadius,e.explodeDistance=t.explode?Ne(t.explodeOffset,this.pieBaseRadius):0,this.findCenter(e,t),this.center=this.pieBaseCenter,e.redraw||this.defaultLabelBound(t,t.dataLabel.visible,t.dataLabel.position),this.totalAngle-=.001},o.prototype.getLabelRadius=function(e,t){return"Inside"===e.dataLabel.position?(Ne(t.sliceRadius,this.pieBaseRadius)-this.innerRadius)/2+this.innerRadius:Ne(t.sliceRadius,this.size/2)+Ne(e.dataLabel.connectorStyle.length||"4%",this.size/2)},o.prototype.findCenter=function(e,t){this.accumulation=e,this.pieBaseCenter={x:Ne(e.center.x,e.initialClipRect.width)+e.initialClipRect.x,y:Ne(e.center.y,e.initialClipRect.height)+e.initialClipRect.y};var i=this.getSeriesBound(t),o=new mo(i.x+i.width/2,i.y+i.height/2);this.pieBaseCenter.x+=this.pieBaseCenter.x-o.x,this.pieBaseCenter.y+=this.pieBaseCenter.y-o.y,this.accumulation.origin=this.pieBaseCenter},o.prototype.initAngles=function(e){var i=t.isNullOrUndefined(e.endAngle)?e.startAngle:e.endAngle;this.totalAngle=(i-e.startAngle)%360,this.startAngle=e.startAngle-90,this.totalAngle=this.totalAngle<=0?360+this.totalAngle:this.totalAngle,this.startAngle=(this.startAngle<0?this.startAngle+360:this.startAngle)%360},o.prototype.defaultLabelBound=function(e,t,o){var r=this.getSeriesBound(e);e.accumulationBound=r,e.labelBound=new i.Rect(r.x,r.y,r.width+r.x,r.height+r.y),t&&"Outside"===o&&(e.labelBound=new i.Rect(1/0,1/0,-1/0,-1/0))},o.prototype.getSeriesBound=function(e){var t=new i.Rect(1/0,1/0,-1/0,-1/0);this.initAngles(e);var o=this.startAngle,r=this.totalAngle,n=(this.startAngle+r)%360;n=0===n?360:n,e.findMaxBounds(t,this.getRectFromAngle(o)),e.findMaxBounds(t,this.getRectFromAngle(n)),e.findMaxBounds(t,new i.Rect(this.pieBaseCenter.x,this.pieBaseCenter.y,0,0));var a=(90*Math.floor(o/90)+90)%360,l=90*Math.floor(n/90)%360;l=0===l?360:l,(r>=90||l===a)&&(e.findMaxBounds(t,this.getRectFromAngle(a)),e.findMaxBounds(t,this.getRectFromAngle(l))),(0===o||o+r>=360)&&e.findMaxBounds(t,this.getRectFromAngle(0));for(var s=a===l?0:Math.floor(r/90),h=1;h<s;h++)((a+=90)<l||n<o||360===r)&&e.findMaxBounds(t,this.getRectFromAngle(a));return t.width-=t.x,t.height-=t.y,t},o.prototype.getRectFromAngle=function(e){var t=L(e,this.pieBaseRadius,this.pieBaseCenter);return new i.Rect(t.x,t.y,0,0)},o.prototype.getPathArc=function(e,t,i,o,r,n,a,l){var s=i-t,h=(s=s<0?s+360:s)<180?0:1;return r||0!==r?this.getDoughnutPath(e,L(t,o,e),L(i,o,e),o,L(t,r,e),L(i,r,e),r,h,n,a,l):this.getPiePath(e,L(t,o,e),L(i,o,e),o,h,n,l)},o.prototype.getPiePath=function(e,t,i,o,r,n,a){n=1===this.sliceCheck(a)?0:n;var l=Math.atan2(t.y-e.y,t.x-e.x),s=Math.atan2(i.y-e.y,i.x-e.x);n=this.adjustCornerRadius(l,s,o,n);var h=t.x-n*Math.cos(l),c=t.y-n*Math.sin(l),d=i.x-n*Math.cos(Math.PI/2+s),p=i.y-n*Math.sin(Math.PI/2+s),u=i.x-n*Math.cos(s),g=i.y-n*Math.sin(s),m=t.x+n*Math.cos(Math.PI/2+l),y=t.y+n*Math.sin(Math.PI/2+l);return"M "+e.x+" "+e.y+" L "+h+" "+c+" A "+n+" "+n+" 0 0 1 "+m+" "+y+" A "+o+" "+o+" 0 "+r+" 1 "+d+" "+p+" A "+n+" "+n+" 0 0 1 "+u+" "+g+" Z"},o.prototype.getDoughnutPath=function(e,t,i,o,r,n,a,l,s,h,c){s=1===this.sliceCheck(c)?0:s;var d=Math.atan2(t.y-r.y,t.x-r.x),p=Math.atan2(i.y-n.y,i.x-n.x);s=this.adjustCornerRadius(d,p,a,s),s=h&&0===this.innerRadius?-1*s:s;var u=t.x-s*Math.cos(d),g=t.y-s*Math.sin(d),m=i.x-s*Math.cos(Math.PI/2+p),y=i.y-s*Math.sin(Math.PI/2+p),f=n.x+s*Math.cos(p),v=n.y+s*Math.sin(p),b=r.x+s*Math.cos(Math.PI/2+d),x=r.y+s*Math.sin(Math.PI/2+d),S=t.x+s*Math.cos(Math.PI/2+d),C=t.y+s*Math.sin(Math.PI/2+d),F=i.x-s*Math.cos(p),w=i.y-s*Math.sin(p),L=n.x-s*Math.cos(Math.PI/2+p),P=n.y-s*Math.sin(Math.PI/2+p),A=r.x+s*Math.cos(d),M=r.y+s*Math.sin(d);return h?"M "+S+" "+C+" A "+o+" "+o+" 0 "+l+" 1 "+m+" "+y+" L "+L+" "+P+" A "+a+" "+a+" 0 "+l+" 0 "+b+" "+x+" Z":"M "+u+" "+g+" A "+s+" "+s+" 0 0 1 "+S+" "+C+" A "+o+" "+o+" 0 "+l+" 1 "+m+" "+y+" A "+s+" "+s+" 0 0 1 "+F+" "+w+" L "+f+" "+v+" A "+s+" "+s+" 0 0 1 "+L+" "+P+" A "+a+" "+a+" 0 "+l+" 0 "+b+" "+x+" A "+s+" "+s+" 0 0 1 "+A+" "+M+" Z"},o.prototype.adjustCornerRadius=function(e,t,i,o){var r=Math.abs(t-e);r>Math.PI&&(r=2*Math.PI-r);var n=i*(r/(2*Math.PI));return Math.min(o,n)},o.prototype.sliceCheck=function(e){for(var t=0,i=0;i<e.length;i++)e[i].visible&&t++;return t},o.prototype.doAnimation=function(e,i,o,r,n){var a,l=this,s=i.startAngle-90,h=this.accumulation.duration?this.accumulation.duration:i.animation.duration;this.pieBaseCenter.x+=1;var c=.75*Math.max(this.accumulation.availableSize.height,this.accumulation.availableSize.width);c+=.414*c;var d=Y("Linear");new t.Animation({}).animate(e,{duration:0===h&&"Enable"===t.animationMode?1e3:h,delay:i.animation.delay,progress:function(t){a=d(t.timeStamp,s,l.totalAngle,t.duration),e.setAttribute("d",l.getPathArc(l.pieBaseCenter,s,a,c,0,r,!1,n))},end:function(){l.pieBaseCenter.x-=1,e.setAttribute("d",l.getPathArc(l.pieBaseCenter,0,359.99999,c,0,r,!1,n)),l.accumulation.trigger("animationComplete",{series:i,accumulation:l.accumulation,chart:l.accumulation});var t=he(l.accumulation.element.id+"_datalabel_Series_"+i.index);t&&q(t,i.animation.delay,i.animation.duration,i,null,null,!1),o.style.cssText="";var a=he(l.accumulation.element.id+"_Annotation_Collections");a&&(a.style.visibility="visible")}})},o}(Ta),Ia=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Oa=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Ia(o,e),o.prototype.renderPoint=function(e,t,i,o,r,n,a,l,s){var h=t.sumOfPoints,c=this.accumulation.visibleSeries[0].points,d=t.borderRadius;e.startAngle=this.startAngle;var p=e.visible?e.y:0,u=h?Math.abs(p)/h*this.totalAngle:null,g=Math.PI/180*(90-(360-this.startAngle)-90);if(this.radius=this.isRadiusMapped?Ne(e.sliceRadius,this.seriesRadius):this.radius,o.d=this.getPathOption(e,u,this.startAngle%360,d,c),e.midAngle=(this.startAngle-u/2)%360,e.endAngle=this.startAngle%360,e.symbolLocation=L(e.midAngle,(this.radius+this.innerRadius)/2,this.center),n){var m=i.renderer.drawPath(o);!e.isExplode&&s&&m.setAttribute("transform","translate(0, 0)"),m.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),m.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),m.style.outline="none",m.setAttribute("stroke-linejoin","round"),m.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),void 0===e.degree&&(e.degree=u,e.start=g),r.appendChild(m),this.refresh(e,u,g,i,o,d,c,a,l,s)}else(m=i.renderer.drawPath(o)).setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),m.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),m.style.outline="none",m.setAttribute("stroke-linejoin","round"),m.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),r.appendChild(m),e.degree=u,e.start=g},o.prototype.findSeries=function(e,t){var i=0===this.innerRadius?this.radius+3:this.innerRadius-3,o=0===this.innerRadius?i+2:i-2;this.toggleInnerPoint(e,i,o,t)},o.prototype.toggleInnerPoint=function(e,o,r,n){var a,l=_(e.target.id,!0),s=e.target.id.substring(0,e.target.id.indexOf("Series")-1),h=document.getElementById(this.accumulation.element.id+"PointHover_Border"),c=this.accumulation.visibleSeries[0].points,d=l.series,p=l.point,u=he(s+"_Series_"+d+"_Point_"+p);if(!isNaN(l.series)&&u){if(!(t.isNullOrUndefined(d)||isNaN(d)||t.isNullOrUndefined(p)||isNaN(p))){var g=this.accumulation.visibleSeries[0].points[p],m=u.getAttribute("class")===s+"_ej2_deselected"?this.accumulation.tooltip.enable?.5:.3:this.accumulation.tooltip.enable?.5:1,y=this.getPathArc(this.accumulation.pieSeriesModule.center,g.startAngle%360,(g.startAngle+g.degree)%360,o,r,n,!0,c);h&&s===this.accumulation.element.id&&(h.getAttribute("d")!==y||g.isExplode)&&(h.parentNode.removeChild(h),h=null);var f=he(s+"_Series_"+d);if(!h&&(!g.isExplode||g.isExplode&&"click"!==e.type)){var v=new i.PathOption(s+"PointHover_Border",g.color,1,g.color,m,"",y);if((a=this.accumulation.renderer.drawPath(v)).removeAttribute("transform"),"None"!==this.accumulation.selectionMode&&e.target.hasAttribute("class")&&this.accumulation.accumulationSelectionModule.addSvgClass(a,e.target.getAttribute("class")),f.appendChild(a),g.isExplode&&a){var b=u.getAttribute("transform");b&&a.setAttribute("transform",b)}}}}else h&&(this.removeBorder(h,1e3),h=null)},o.prototype.removeBorder=function(e,t){e&&setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},t)},o.prototype.refresh=function(e,i,o,r,n,a,l,s,h,c){var d=this,p=he(n.id),u=r.duration?r.duration:300;new t.Animation({}).animate(t.createElement("div"),{duration:u,delay:0,progress:function(t){var n=Z(t.timeStamp,e.degree,i-e.degree,t.duration),u=Z(t.timeStamp,e.start,o-e.start,t.duration);if(u=(u/(Math.PI/180)+360)%360,s&&h){var g=Z(t.timeStamp,s,d.radius-s,t.duration),m=Z(t.timeStamp,h.x,d.center.x-h.x,t.duration),y=Z(t.timeStamp,h.y,d.center.y-h.y,t.duration);p.setAttribute("d",d.getPathOption(e,n,u,a,l,g,m,y))}else p.setAttribute("d",d.getPathOption(e,n,u,a,l));e.isExplode&&r.accBaseModule.explodePoints(e.index,r,!0,c),p.style.visibility="visible"},end:function(){p.style.visibility=e.visible?"visible":"hidden",p.setAttribute("d",n.d),e.degree=i,e.start=o}})},o.prototype.getPathOption=function(e,t,i,o,r,n,a,l){if(!t)return"";var s=this.getPathArc(a?{x:a,y:l}:this.center,i%360,(i+t)%360,this.isRadiusMapped?Ne(e.sliceRadius,this.size/2):n||this.radius,this.innerRadius,o,!1,r);return this.startAngle+=t,s},o.prototype.animateSeries=function(e,o,r,n,a,l){var s=e.element.id+"SeriesGroup"+r.index;if((r.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries){var h=e.renderer.createClipPath({id:s+"_clipPath"}),c=new i.PathOption(s+"_slice","transparent",1,"transparent",1,"",""),d=e.renderer.drawPath(c);h.appendChild(d),e.svgObject.appendChild(h),n.style.cssText="clip-path:url(#"+h.id+"); -webkit-clip-path:url(#"+h.id+");",this.doAnimation(d,r,n,a,l)}},o.prototype.getModuleName=function(){return"PieSeries"},o.prototype.destroy=function(){},o}(_a),za=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ba=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Na=function(e){function o(t,i){var o=e.call(this,t,i)||this;return o.animateselected=!1,o.explodeDistance=0,o.currentLegendIndex=0,o.currentPointIndex=0,o.previousTargetId="",o.isLegendClicked=!1,o.chartid=57724,o}return za(o,e),o.prototype.animate=function(e){this.duration=0===e&&"Enable"===t.animationMode?700:e,this.animateselected=!0,this.animateSeries=!1;var i=0,o=[],r=[],n=[],a=this.visibleSeries[0],l=[];if(l=a.dataSource,a.sumOfPoints=0,a.points.length<Object.keys(a.dataSource).length)this.refresh();else if(a.points.length>Object.keys(a.dataSource).length){var s=this.visibleSeries[0];s.points=s.points.filter(function(e){return e.visible=!1,r.push(e.index),o.push(e.color),l.some(function(t){var o=t;return e.x===o.x&&(e.visible=!0,n.push(e.index),e.index=i,i++),e.x===o.x})});for(var h=r.filter(function(e){return n.indexOf(e)<0}),c=r.length-h.length,d=r.length-1;d>=c;d--)g("container_Series_0_Point_"+r[d]);for(d=0;d<s.points.length;d++)s.points[d].y=s.dataSource[d].y,s.points[d].color=o[d],s.sumOfPoints+=s.dataSource[d].y;this.redraw=this.enableAnimation,this.animateSeries=!1,this.calculateBounds(),this.renderElements()}else{for(d=0;d<a.points.length;d++)a.points[d].y=a.dataSource[d][a.yName],a.points[d].color=null!=a.dataSource[d][a.pointColorMapping]?a.dataSource[d][a.pointColorMapping]:a.points[d].color,a.sumOfPoints+=a.dataSource[d][a.yName];this.redraw=this.enableAnimation,this.animateSeries=!1,this.removeSvg(),this.refreshPoints(a.points),this.renderElements()}},Object.defineProperty(o.prototype,"type",{get:function(){return this.series&&this.series.length?this.series[0].type:"Pie"},enumerable:!0,configurable:!0}),o.prototype.preRender=function(){if(this.allowServerDataBinding=!1,this.unWireEvents(),this.setCulture(),this.animateSeries=!0,""===this.element.id){for(var e=document.getElementsByClassName("e-accumulationchart").length,t="acc_chart_"+this.chartid+"_"+e;document.getElementById(t);)e++,t="acc_chart_"+this.chartid+"_"+e;this.element.id="acc_chart_"+this.chartid+"_"+e}this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":"ltr"),this.element.style.outline="none"},o.prototype.setTheme=function(){this.themeStyle=ot(this.theme,!1,this)},o.prototype.render=function(){var e=this;-1===this.element.className.indexOf("e-accumulationchart")&&this.element.classList.add("e-accumulationchart"),this.element.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.element.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.element.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.title+". Syncfusion interactive chart."),this.element.setAttribute("class",this.element.getAttribute("class")+" e-accumulationchart-focused");var t={chart:this,accumulation:this,theme:this.theme,name:ki,cancel:!1};this.trigger(ki,t,function(){e.setTheme(),e.accBaseModule=new Ta(e),e.pieSeriesModule=new Oa(e),e.calculateVisibleSeries(),e.processData(),e.renderComplete(),e.allowServerDataBinding=!0})},o.prototype.unWireEvents=function(){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchMoveEvent,r=t.Browser.touchEndEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,o,this.accumulationMouseMove),t.EventHandler.remove(this.element,r,this.accumulationMouseEnd),t.EventHandler.remove(this.element,i,this.accumulationMouseStart),t.EventHandler.remove(this.element,"click",this.accumulationOnMouseClick),t.EventHandler.remove(this.element,"dblclick",this.accumulationOnDoubleClick),t.EventHandler.remove(this.element,"contextmenu",this.accumulationRightClick),t.EventHandler.remove(this.element,n,this.accumulationMouseLeave),t.EventHandler.remove(this.element,"keydown",this.accumulationChartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.accumulationChartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.accumulationResizeBound)},o.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchEndEvent,r=t.Browser.touchMoveEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.add(this.element,r,this.accumulationMouseMove,this),t.EventHandler.add(this.element,o,this.accumulationMouseEnd,this),t.EventHandler.add(this.element,i,this.accumulationMouseStart,this),t.EventHandler.add(this.element,"click",this.accumulationOnMouseClick,this),t.EventHandler.add(this.element,"dblclick",this.accumulationOnDoubleClick,this),t.EventHandler.add(this.element,"contextmenu",this.accumulationRightClick,this),t.EventHandler.add(this.element,n,this.accumulationMouseLeave,this),t.EventHandler.add(this.element,"keydown",this.accumulationChartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.accumulationChartKeyUp,this),this.accumulationResizeBound=this.accumulationResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.accumulationResizeBound),new t.Touch(this.element),this.setStyle(this.element)}},o.prototype.setMouseXY=function(e){var t,i,o=he(this.element.id+"_svg");if(o&&this.element){var r=o.getBoundingClientRect(),n=this.element.getBoundingClientRect();if(e.type.indexOf("touch")>-1){this.isTouch=!0;var a=e;i=a.changedTouches[0].clientY,t=a.changedTouches[0].clientX}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY;this.mouseY=i-n.top-Math.max(r.top-n.top,0),this.mouseX=t-n.left-Math.max(r.left-n.left,0)}},o.prototype.accumulationMouseEnd=function(e){return this.setMouseXY(e),this.trigger("chartMouseUp",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.accumulationDataLabelModule&&this.visibleSeries[0].dataLabel.visible&&this.accumulationDataLabelModule.move(e,this.mouseX,this.mouseY,this.isTouch),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.move(e)),this.centerLabel.hoverTextFormat&&this.updateCenterLabel(e),this.notify(t.Browser.touchEndEvent,e),!1},o.prototype.accumulationMouseStart=function(e){return this.setMouseXY(e),this.trigger("chartMouseDown",{target:e.target.id,x:this.mouseX,y:this.mouseY}),!1},o.prototype.accumulationResize=function(){var e=this;this.animateSeries=!1;var t={accumulation:this,previousSize:new i.Size(this.availableSize.width,this.availableSize.height),name:"resized",currentSize:new i.Size(0,0),chart:this},o={name:"beforeResize",cancelResizedEvent:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger("beforeResize",o),o.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);Ue(e),t.currentSize=e.availableSize,e.trigger("resized",t),e.refreshSeries(),e.refreshChart()},500)),!1},o.prototype.print=function(e){var t=document.getElementById(this.element.id+"_Series_0").style.clipPath;document.getElementById(this.element.id+"_Series_0").style.clipPath="",new Jo(this).print(e),document.getElementById(this.element.id+"_Series_0").style.clipPath=t},o.prototype.export=function(e,t){this.exportModule&&(this.exportModule.export(e,t),this.afterExport&&this.exportModule.getDataUrl(this))},o.prototype.setStyle=function(e){e.style.touchAction="element",e.style.msTouchAction="element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit",this.theme},o.prototype.setAnnotationValue=function(e,t){var i,o=this.annotations[e],r=he(this.element.id+"_Annotation_Collections");t&&(o.content=t,r?(i=this.createElement("div"),g(this.element.id+"_Annotation_"+e),this.annotationModule.processAnnotation(o,e,i),r.appendChild(i.children[0])):this.annotationModule.renderAnnotations(he(this.element.id+"_Secondary_Element")))},o.prototype.accumulationMouseMove=function(e){return!!he(this.element.id+"_svg")&&(this.setMouseXY(e),this.trigger("chartMouseMove",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointMove&&this.triggerPointEvent("pointMove",e.target,e),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.move(e),this.accumulationDataLabelModule&&this.visibleSeries[0]&&this.visibleSeries[0].dataLabel.visible&&this.accumulationDataLabelModule.move(e,this.mouseX,this.mouseY),this.centerLabel.hoverTextFormat&&this.updateCenterLabel(e),this.isTouch||this.titleTooltip(e,this.mouseX,this.mouseY),this.enableBorderOnMouseMove&&"Pie"===this.type&&this.pieSeriesModule&&V(this.mouseX,this.mouseY,this.initialClipRect)&&this.pieSeriesModule.findSeries(e,this.series[0].borderRadius),this.notify(t.Browser.touchMoveEvent,e),!1)},o.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"_title"||r===this.element.id+"_subTitle"||r===this.element.id+"_chart_legend_title";e.target.textContent.indexOf("...")>-1&&n?y(r===this.element.id+"_title"?this.title:r===this.element.id+"_subTitle"?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",he(this.element.id+"_Secondary_Element"),o):g(this.element.id+"_EJ2_Title_Tooltip")},o.prototype.accumulationChartKeyDown=function(e){var t="";return this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("Series")>-1||"Escape"===e.code)&&(t="ESC"),e.code.indexOf("Arrow")>-1&&e.preventDefault(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},o.prototype.accumulationChartKeyUp=function(e){var t="",i=e.target.id,o=he(this.element.id+"_chart_legend_translate_g"),r=he(this.element.id+"_chart_legend_pageup");if(o){var n=o.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-accumulationchart-focused")?a+=" e-accumulationchart-focused":a||(a="e-accumulationchart-focused"),n.setAttribute("class",a)}if(r&&r.setAttribute("class","e-accumulationchart-focused"),this.removeNavigationStyle(),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Point_")>-1&&-1===i.indexOf("_Point_")){var l=document.getElementById(this.previousTargetId).parentElement;this.setTabIndex(l.children[this.currentPointIndex],l.firstElementChild),this.currentPointIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===i.indexOf("_chart_legend_page")&&-1===i.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,r):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("chart_legend_g_")&&o&&this.setTabIndex(o.children[this.currentLegendIndex],o.firstElementChild);this.previousTargetId=i,i.indexOf("_chart_legend_g_")>-1&&"None"!==this.highlightMode?(i=e.target.lastElementChild.id,t="Tab"):i.indexOf("_Point_")>-1&&("None"!==this.highlightMode||this.tooltip.enable)&&(t="Tab")}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),i.indexOf("_chart_legend_page")>-1)e.target.removeAttribute("tabindex"),this.previousTargetId=i=this.element.id+"_chart_legend_page"+("ArrowRight"===e.code?"up":"down"),this.focusTarget(he(i));else if(i.indexOf("_chart_legend_")>-1&&o){e.target.removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,o.children.length);var s=o.children[this.currentLegendIndex];this.focusTarget(s),this.removeNavigationStyle(),this.setNavigationStyle(s.id),this.previousTargetId=i=s.lastElementChild.id,t="None"!==this.highlightMode?"ArrowMove":""}else if(i.indexOf("_Point_")>-1){e.target.setAttribute("tabindex","-1"),this.currentPointIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1;for(var h=0,c=0;c<e.target.parentElement.children.length;c++)h=e.target.parentElement.children[c].id.indexOf("_Point_")>-1?h+1:h;this.currentPointIndex=this.getActualIndex(this.currentPointIndex,h),i=this.element.id+"_Series_0_Point_"+this.currentPointIndex,this.focusTarget(he(i)),this.removeNavigationStyle(),this.setNavigationStyle(i),t=this.tooltip.enable?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(i.indexOf("_chart_legend_")>-1||i.indexOf("_Point_")>-1)||(i=i.indexOf("_chart_legend_g")>-1?e.target.lastElementChild.id:i,t="Enter");return""!==t&&this.chartKeyboardNavigations(e,i,t),"Tab"===e.code&&this.setNavigationStyle(i),!1},o.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},o.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},o.prototype.focusTarget=function(e){var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-accumulationchart-focused")?t+=" e-accumulationchart-focused":t||(t="e-accumulationchart-focused"),e.setAttribute("tabindex","0"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!t.isNullOrUndefined(this.element)&&this.element.focus()},o.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&(t.style.setProperty("outline",this.focusBorderWidth+"px solid "+(this.focusBorderColor||this.themeStyle.tabColor)),t.style.setProperty("margin",this.focusBorderMargin+"px"))},o.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_Series_0_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title],g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},o.prototype.chartKeyboardNavigations=function(e,i,o){switch(this.isLegendClicked=!1,o){case"Tab":case"ArrowMove":if(this.accumulationHighlightModule,i.indexOf("_Point_")>-1){var r=+i.split("_Series_")[1].split("_Point_")[0],n=+i.split("_Series_")[1].replace("_Symbol","").split("_Point_")[1],a=this.visibleSeries[r].points[n].symbolLocation;if(this.mouseX=a.x+this.initialClipRect.x,this.mouseY=a.y+this.initialClipRect.y,this.accumulationHighlightModule){var l=he(i);if(!t.isNullOrUndefined(l)){if(l.id.indexOf("text")>1&&(l=he(l.id.replace("text","shape"))),l.hasAttribute("class")&&l.getAttribute("class").indexOf("highlight")>-1)return;return void this.accumulationHighlightModule.calculateSelectedElements(this,l,"mousemove")}}if(this.accumulationTooltipModule){var s=this.visibleSeries[r],h=void 0;s.enableTooltip&&(h=new xo(s.points[n],s)),this.accumulationTooltipModule.renderSeriesTooltip(this,h)}}if(this.accumulationHighlightModule&&"None"!==this.highlightMode){i=i.indexOf("_chart_legend_g_")>-1?document.getElementById(i).firstChild.id:i;for(var c=this.element.id+"_chart_legend",d=[c+"_text_",c+"_shape_marker_",c+"_shape_"],p=0;p<d.length;p++){var u=d[p];if(i.indexOf(u)>-1){document.getElementById(i).setAttribute("class",""),this.accumulationHighlightModule.legendSelection(this,0,parseInt(i.split(u)[1],10),he(i),"mousemove");break}}}break;case"Enter":case"Space":i.indexOf("_chart_legend_")>-1&&this.accumulationLegendModule?(this.isLegendClicked=!0,this.accumulationLegendModule.click(e),this.focusChild(document.getElementById(i).parentElement),this.setNavigationStyle(document.getElementById(i).parentElement.id)):(this.accumulationSelectionModule&&this.accumulationSelectionModule.calculateSelectedElements(this,document.getElementById(i),"click"),this.setNavigationStyle(i));break;case"CtrlP":this.print();break;case"ESC":this.accumulationTooltipModule&&this.accumulationTooltipModule.removeTooltip(1)}},o.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-accumulationchart-focused")?t="e-accumulationchart-focused "+t:t||(t="e-accumulationchart-focused"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.accumulationOnDoubleClick=function(e){return this.trigger("chartDoubleClick",{target:e.target.id,x:this.mouseX,y:this.mouseY}),!1},o.prototype.accumulationOnMouseClick=function(e){return this.setMouseXY(e),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.click(e),"None"!==this.selectionMode&&this.accumulationSelectionModule&&this.accumulationSelectionModule.calculateSelectedElements(this,e.target,e.type),this.visibleSeries[0].explode&&this.accBaseModule.processExplode(e),this.enableBorderOnMouseMove&&this.pieSeriesModule&&"Pie"===this.type&&this.pieSeriesModule.findSeries(e,this.series[0].borderRadius),this.trigger("chartMouseClick",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointClick&&this.triggerPointEvent("pointClick",e.target,e),this.removeNavigationStyle(),!1},o.prototype.triggerPointEvent=function(e,t,i){var o=i,r=_(t.id,!0);r.series>=0&&r.point>=0&&this.trigger(e,{series:this.series[r.series],point:this.series[r.series].points[r.point],seriesIndex:r.series,pointIndex:r.point,x:this.mouseX,y:this.mouseY,pageX:o.pageX,pageY:o.pageY})},o.prototype.accumulationRightClick=function(e){return 2!==e.buttons||"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},o.prototype.accumulationMouseLeave=function(e){this.setMouseXY(e),this.trigger("chartMouseLeave",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e);var i=document.getElementById(this.element.id+"PointHover_Border");return i&&(this.pieSeriesModule.removeBorder(i,1e3),i=null),!1},o.prototype.setCulture=function(){this.intl=new t.Internationalization},o.prototype.createPieSvg=function(){this.removeSvg(),Xe(this)},o.prototype.removeSvg=function(){if(this.redraw)return null;if(g(this.element.id+"_Secondary_Element"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&t.remove(this.svgObject)}g("EJ2_legend_tooltip"),g("EJ2_datalabel_tooltip"),g(this.element.id+"PointHover_Border")},o.prototype.createSecondaryElement=function(){var e=Ve(this.redraw,this.element.id+"_Secondary_Element")||this.createElement("div",{id:this.element.id+"_Secondary_Element",styles:"position: relative"});be(!1,this.element,e,this.redraw)},o.prototype.calculateVisibleSeries=function(){this.visibleSeries=[];for(var e=0,t=this.series.length;e<t;e++)if(this.series[e].index=e,this.series[e].type===this.type&&0===this.visibleSeries.length){this.visibleSeries.push(this.series[e]);break}},o.prototype.processData=function(e){void 0===e&&(e=!0),this.seriesCounts=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.dataModule=new No(o.dataSource||this.dataSource,o.query),o.refreshDataManager(this,e)}},o.prototype.refreshChart=function(){this.doGrouppingProcess(),this.createPieSvg(),this.calculateBounds(),this.renderElements(),g("chartmeasuretext")},o.prototype.doGrouppingProcess=function(){var e=this.visibleSeries[0];t.isNullOrUndefined(e.resultData)||t.isNullOrUndefined(e.lastGroupTo)||e.lastGroupTo===e.groupTo||e.getPoints(e.resultData,this)},o.prototype.calculateBounds=function(){this.initialClipRect=new i.Rect(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height),this.titleCollection=[],this.subTitleCollection=[];var e=0,t=0;if(this.title&&(this.titleCollection=Ge(this.title,this.titleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartTitleFont)),e=this.title?i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length:e,this.subTitle){for(var o=0,r=this.titleCollection;o<r.length;o++){var n=r[o];i.measureText(n,this.titleStyle,this.themeStyle.chartSubTitleFont).width}this.subTitleCollection=Ge(this.subTitle,this.subTitleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartSubTitleFont),t=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length}var a=this.margin.left+this.border.width,l=this.availableSize.width-a-this.margin.right-this.border.width,s=this.margin.top+this.border.width,h=this.availableSize.height-s-this.border.width-this.margin.bottom,c=t+e;switch(this.titleStyle.position){case"Top":a=0,s=t+e,l=this.margin.right+this.margin.left,h=this.margin.bottom+this.margin.top;break;case"Bottom":h-=c+2*this.margin.bottom;break;case"Left":a+=c,l-=c;break;case"Right":l-=c}"Top"!==this.titleStyle.position?this.initialClipRect=new i.Rect(a,s,l,h):this.initialClipRect=w(this.initialClipRect,new i.Rect(a,s,l,h)),this.calculateLegendBounds()},o.prototype.calculateLegendBounds=function(){if(!this.accumulationLegendModule||!this.legendSettings.visible)return null;this.accumulationLegendModule.getLegendOptions(this,this.visibleSeries),this.accumulationLegendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null)},o.prototype.renderElements=function(){this.renderBorder(),this.createSecondaryElement(),this.renderSeries(),this.renderTitle(),this.renderCenterLabel(!0),this.renderLegend(),be(!1,this.element,this.svgObject,this.redraw),this.processSelection(),this.processExplode(),this.renderAnnotation(),this.setSecondaryElementPosition(),this.series.every(function(e){return 0===(e.dataSource||[]).length})&&!t.isNullOrUndefined(this.noDataTemplate)&&this.renderNoDataTemplate(!0),this.trigger("loaded",{accumulation:this,chart:this}),this.animateSeries=!1},o.prototype.setSecondaryElementPosition=function(){var e=he(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=he(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},o.prototype.renderNoDataTemplate=function(e){var o=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(o&&o.remove(),e){var r="function"==typeof this.noDataTemplate?this.noDataTemplate():this.noDataTemplate,n=this.enableHtmlSanitizer&&"string"==typeof r?this.sanitize(r):r,a=t.createElement("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),l=0,s=this.element.querySelector("#"+this.element.id+"_border");s&&(l=parseFloat(s.getAttribute("stroke-width")));var h=this.availableSize.width-2*l,c=this.availableSize.height-2*l,d=l,p=l,u=0;if(this.title)switch(u=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height+(this.subTitle?i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height:0)+(this.subTitle?5:0),this.titleStyle.position){case"Top":d+=u+10,c-=u+10;break;case"Left":p+=u+10,h-=u+10;break;case"Bottom":c-=u+16;break;case"Right":h-=u+10}a.style.cssText="position: absolute; top: "+d+"px; left: "+p+"px; width: "+h+"px;\n                height: "+c+"px; z-index: 1;\n            ",he(this.element.id+"_Secondary_Element").appendChild(a),ue(a,null,n,this,null,null,this.element.id+"_NoData")}},o.prototype.renderAnnotation=function(){this.annotationModule&&this.annotationModule.renderAnnotations(he(this.element.id+"_Secondary_Element"))},o.prototype.processExplode=function(){return this.redraw?null:this.visibleSeries[0].explode?void this.accBaseModule.invokeExplode():null},o.prototype.renderSeries=function(){this.redraw||this.svgObject.appendChild(this.renderer.createGroup({id:this.element.id+"_SeriesCollection"}));for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&this[U(i.type)+"SeriesModule"]&&(this[U(i.type)+"SeriesModule"].initProperties(this,i),i.renderSeries(this,this.redraw))}},o.prototype.renderBorder=function(){var e=this.border.width,t=new co(this.element.id+"_border",this.background||this.themeStyle.background,this.border,1,new i.Rect(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e),0,0,"",this.border.dashArray),o=this.renderer.drawRectangle(t);o.setAttribute("aria-hidden","true"),be(!1,this.svgObject,o,this.redraw);var r=this.backgroundImage;if(r){var n=new po(this.availableSize.height-e,this.availableSize.width-e,r,0,0,this.element.id+"_background","visible","none");be(!1,this.svgObject,this.renderer.drawImage(n),this.redraw)}},o.prototype.renderLegend=function(){if(!this.accumulationLegendModule||!this.legendSettings.visible)return null;this.accumulationLegendModule.legendCollections.length&&("Pie"===this.visibleSeries[0].type&&this.accumulationLegendModule.getSmartLegendLocation(this.visibleSeries[0].labelBound,this.accumulationLegendModule.legendBounds,this.margin),this.accumulationLegendModule.renderLegend(this,this.legendSettings,this.accumulationLegendModule.legendBounds,this.redraw))},o.prototype.processSelection=function(){var e=[];this.accumulationSelectionModule&&"None"!==this.selectionMode&&(e=t.extend([],this.accumulationSelectionModule.selectedDataIndexes,null,!0),this.accumulationSelectionModule.invokeSelection(this)),this.accumulationHighlightModule&&"None"!==this.highlightMode&&this.accumulationHighlightModule.invokeHighlight(this),e.length>0&&(this.accumulationSelectionModule.selectedDataIndexes=e,this.accumulationSelectionModule.redrawSelection(this))},o.prototype.renderTitle=function(){var e=this.margin;if(!this.title)return null;var t,o=tt(this.titleStyle.textAlignment,this.enableRtl),r=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont),n=this.margin.top+3*r.height/4,a=void 0===this.accumulationLegendModule?0:"Top"===this.legendSettings.position?this.accumulationLegendModule.legendBounds.height:0,l=0===this.explodeDistance?0:this.explodeDistance,s=0!==a?0:l/2,h=new i.Rect(e.left,0,this.availableSize.width-e.left-e.right,0),c=this.margin.top+3*r.height/4,d=Ye(h,this.titleStyle||this.themeStyle.chartTitleFont),p=this.titleStyle.textAlignment,u=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":d=Ye(h,this.titleStyle),c=n;break;case"Bottom":d+="start"===o?this.border.width:"end"===o?this.border.width:0,c=this.availableSize.height-this.margin.bottom-u.height-r.height/2;break;case"Left":d=this.margin.left+3*r.height/4,c="Near"===p?e.bottom+this.border.width:"Far"===p?this.availableSize.height-e.bottom-this.border.width:this.availableSize.height/2,o="Near"===p?"end":"Far"===p?"start":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,t="rotate(-90,"+d+","+c+")";break;case"Right":d=this.availableSize.width-this.margin.right-3*r.height/4,c="Near"===p?e.bottom+this.border.width:"Far"===p?this.availableSize.height-e.bottom-this.border.width:this.availableSize.height/2,o="Near"===p?"start":"Far"===p?"end":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,t="rotate(90,"+d+","+c+")";break;case"Custom":d=this.titleStyle.x,c=this.titleStyle.y,o="middle"}var g=new i.TextOption(this.element.id+"_title",d,c,o,this.titleCollection,t,"auto"),m="Pie"===this.series[0].type&&"Outside"===this.visibleSeries[0].dataLabel.position&&this.visibleSeries[0].dataLabel.connectorStyle.length?Ne(this.visibleSeries[0].dataLabel.connectorStyle.length,this.accBaseModule.radius):0;this.subTitle||"Funnel"===this.series[0].type||"Pyramid"===this.series[0].type||"Top"!==this.titleStyle.position||(g.y=parseInt(this.series[0].radius,10)>=80?g.y:this.accBaseModule.center.y-this.accBaseModule.radius-20-n-a-s-m,"Pie"===this.series[0].type&&(parseInt(this.series[0].radius,10)<80||isNaN(parseInt(this.series[0].radius,10)))&&(g.y=g.y<this.initialClipRect.y-a?this.initialClipRect.y-a:g.y));var y=je(this.renderer,g,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,null,null,null,null,this.themeStyle.chartTitleFont);y&&(y.setAttribute("tabindex","0"),y.style.outline="none",y.parentNode.insertBefore(y,this.svgObject.children&&this.svgObject.children[1])),this.subTitle&&this.renderSubTitle(g)},o.prototype.updateCenterLabel=function(e){var t=this.getPieData(e);this.format=null==t.point?"":this.parseFormat(t.point,this.visibleSeries[0],this.centerLabel.hoverTextFormat),this.renderCenterLabel()},o.prototype.getPieData=function(e){var t=_(e.target.id,!0);return isNaN(t.series)?new xo(null,null):new xo(this.visibleSeries[0].points[t.point],this.visibleSeries[0])},o.prototype.parseFormat=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++)o=new n("${point."+(c=l[a])+"}","gm"),i=i.replace(o.source,e[c]);for(var s=0,h=Object.keys(Object.getPrototypeOf(t));s<h.length;s++){var c=h[s];o=new n("${series."+c+"}","gm"),r=t[c],i=i.replace(o.source,r)}return i},o.prototype.renderCenterLabel=function(e,o){var r=this;if(!this.centerLabel.text||"Pie"!==this.type)return null;var n=[];o&&he(this.element.id+"_centerLabel").querySelectorAll("tspan").forEach(function(e){n.push({x:e.getAttribute("x"),y:e.getAttribute("y")})});for(var a,l=this.series[0],s=tt(this.centerLabel.textStyle.textAlignment,this.enableRtl),h=this.pieSeriesModule.innerRadius?2*this.pieSeriesModule.innerRadius*.7071067:2*this.pieSeriesModule.radius*.7071067,c=(this.format||this.centerLabel.text).split("<br>"),d=i.measureText(c[0],this.centerLabel.textStyle,this.themeStyle.chartTitleFont),p=c.length,u=0;u<p;u++)i.measureText(c[u],this.centerLabel.textStyle,this.themeStyle.chartTitleFont).width>h&&c.splice.apply(c,[u,1].concat(Ze(c[u],h,this.centerLabel.textStyle,this.enableRtl,null,null,this.themeStyle.chartTitleFont)));d.height*c.length>h?a=this.accBaseModule.center.y+(d.height+10)/2-h/2:l.startAngle&&l.endAngle&&180===Math.abs(l.endAngle-l.startAngle)?(a=this.accBaseModule.center.y-d.height*c.length/2+(d.height+10)/2-this.pieSeriesModule.innerRadius/2+(this.pieSeriesModule.innerRadius?10:0),d.height*c.length+this.pieSeriesModule.innerRadius/2+10>h&&(a=this.accBaseModule.center.y+(d.height+10)/2-h/2)):a=c.length>1?this.accBaseModule.center.y-d.height*c.length/2+(d.height+10)/2:this.accBaseModule.center.y+d.height/4;for(var g=new i.TextOption(this.element.id+"_centerLabel",(this.series[0].animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e?this.pieSeriesModule.center.x-1:this.pieSeriesModule.center.x,a,s,"","","auto"),m=je(this.renderer,g,this.centerLabel.textStyle,this.centerLabel.textStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,null,null,null,null,this.themeStyle.chartTitleFont),y=[],u=0;u<c.length;u++){var f={x:g.x,y:g.y+u*d.height,fill:""},v=this.renderer.createTSpan(f,"");v.style.fontFamily="inherit",v.style.fontStyle="inherit",v.style.fontSize="inherit",v.style.fontWeight=c[u].indexOf("<b>")>-1||c[u].indexOf("</b>")>-1?"bold":"inherit",v.textContent=c[u].replace(/<\/?b>/g,""),m.appendChild(v),y.push(v)}o&&y.forEach(function(e,t){r.animateTspan(e,Number(n[t].x),Number(n[t].y),Number(e.getAttribute("x")),Number(e.getAttribute("y")),r.duration)}),e&&(this.series[0].animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.animateSeries&&this.centerLabelDelay(m)},o.prototype.animateTspan=function(e,i,o,r,n,a){new t.Animation({}).animate(e,{duration:a,progress:function(t){e.style.animation="";var a=t.timeStamp/t.duration,l=i+(r-i)*a,s=o+(n-o)*a;e.setAttribute("x",l.toString()),e.setAttribute("y",s.toString())},end:function(){e.setAttribute("x",r.toString()),e.setAttribute("y",n.toString())}})},o.prototype.centerLabelDelay=function(e){e.style.visibility="hidden",new t.Animation({}).animate(e,{delay:this.duration?this.duration:this.series[0].animation.duration,progress:function(e){e.element.style.visibility="visible"}})},o.prototype.renderSubTitle=function(e){for(var t=0,o=0,r=this.titleStyle.textAlignment,n=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont),a=0,l=this.titleCollection;a<l.length;a++){var s=l[a];t=(o=i.measureText(s,this.titleStyle,this.themeStyle.chartSubTitleFont).width)>t?o:t}var h=new i.Rect("Center"===r?e.x-t/2:"Far"===r?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(h.x="Center"===r?e.x-.5*t:"Far"===r?this.margin.left+3*n.height/4:e.x-t);var c=new i.TextOption(this.element.id+"_subTitle",Ye(h,this.subTitleStyle),e.y*e.text.length+3*n.height/4+10,tt(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto");je(this.renderer,c,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,null,null,null,null,this.themeStyle.chartSubTitleFont)},o.prototype.getSeriesElement=function(){return this.svgObject.getElementsByTagName("g")[0]},o.prototype.refreshSeries=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];this.refreshPoints(i.points)}},o.prototype.refreshPoints=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o.labelPosition=null,o.labelRegion=null,o.labelVisible=!0}},o.prototype.getModuleName=function(){return"accumulationchart"},o.prototype.destroy=function(){if(this.element){this.unWireEvents(),e.prototype.destroy.call(this),this.element.classList.remove("e-accumulationchart"),this.element.classList.remove("e-accumulationchart-focused");var t=document.getElementById(this.element.id+"Keyboard_accumulationchart_focus");t&&t.remove(),g("chartmeasuretext"),this.removeSvg();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),this.svgObject=null}},o.prototype.requiredModules=function(){var e=[];return e.push({member:this.type+"Series",args:[this]}),this.legendSettings.visible&&e.push({member:"AccumulationLegend",args:[this]}),this.findDatalabelVisibility()&&e.push({member:"AccumulationDataLabel",args:[this]}),this.tooltip.enable&&e.push({member:"AccumulationTooltip",args:[this]}),"None"!==this.selectionMode&&e.push({member:"AccumulationSelection",args:[this]}),"None"!==this.highlightMode&&e.push({member:"AccumulationHighlight",args:[this]}),(this.enableExport||this.allowExport)&&e.push({member:"Export",args:[this]}),this.annotations.some(function(e){return null!==e.content})&&e.push({member:"Annotation",args:[this]}),e},o.prototype.findDatalabelVisibility=function(){for(var e=0,t=this.series;e<t.length;e++)if(t[e].dataLabel.visible)return!0;return!1},o.prototype.changeVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},o.prototype.getPersistData=function(){return""},o.prototype.sanitize=function(e){return this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e):e},o.prototype.onPropertyChanged=function(i,o){for(var r={refreshElements:!1,refreshBounds:!1},n=0,a=Object.keys(i);n<a.length;n++)switch(a[n]){case"theme":this.animateSeries=!0;break;case"title":case"subTitle":case"height":case"width":case"margin":r.refreshBounds=!0;break;case"titleStyle":i.titleStyle&&(i.titleStyle.size||i.titleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"subTitleStyle":i.subTitleStyle&&(i.subTitleStyle.size||i.subTitleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"legendSettings":r.refreshBounds=!0,r.refreshElements=!0;break;case"dataSource":this.processData(!1),r.refreshBounds=!0;break;case"series":if(!this.animateselected){for(var l=this.series.length,s=!1,h=void 0,c=0;c<l;c++)h=i.series[c],i.series[c]&&(i.series[c].dataSource||i.series[c].yName||i.series[c].xName||h.type||i.series[c].dataLabel||h.radius||h.innerRadius||h.startAngle||h.endAngle||h.gapRatio||h.neckWidth||h.explode||h.neckWidth||h.pyramidMode||h.explodeOffset||h.funnelMode)&&(t.extend(this.changeVisibleSeries(this.visibleSeries,c),h,null,!0),s=!0),i.series[c]&&!t.isNullOrUndefined(i.series[c].explodeIndex)&&i.series[c].explodeIndex>=0&&i.series[c].explodeIndex!==o.series[c].explodeIndex?(this.accBaseModule.explodePoints(i.series[c].explodeIndex,this),this.accBaseModule.deExplodeAll(i.series[c].explodeIndex,this.enableAnimation?300:0)):i.series[c].explodeIndex<0&&this.accBaseModule.deExplodeAll(i.series[c].explodeIndex,this.enableAnimation?300:0),this.pieSeriesModule||(this.pieSeriesModule=new Oa(this));s&&(this.calculateVisibleSeries(),this.processData(!1),r.refreshBounds=!0)}this.animateselected=!1,this.redraw=!1;break;case"enableRtl":case"locale":case"currencyCode":e.prototype.refresh.call(this);break;case"background":case"border":case"annotations":case"enableSmartLabels":r.refreshElements=!0;break;case"isMultiSelect":case"selectedDataIndexes":case"selectionMode":this.accumulationSelectionModule&&(t.isNullOrUndefined(this.accumulationSelectionModule.selectedDataIndexes)?this.accumulationSelectionModule.invokeSelection(this):(this.accumulationSelectionModule.selectedDataIndexes=this.selectedDataIndexes,this.accumulationSelectionModule.redrawSelection(this)));break;case"tooltip":this.accumulationTooltipModule&&(this.accumulationTooltipModule.previousPoints=[],this.tooltip.template&&(this.accumulationTooltipModule.template=this.tooltip.template));break;case"center":t.isNullOrUndefined(i.center.x)||(this.center.x=i.center.x,r.refreshElements=!0),t.isNullOrUndefined(i.center.y)||(this.center.y=i.center.y,r.refreshElements=!0)}!r.refreshBounds&&r.refreshElements?(this.createPieSvg(),this.renderElements()):r.refreshBounds&&(this.refreshSeries(),this.createPieSvg(),this.calculateBounds(),this.renderElements())},Ba([t.Property(null)],o.prototype,"noDataTemplate",void 0),Ba([t.Property(null)],o.prototype,"width",void 0),Ba([t.Property(null)],o.prototype,"height",void 0),Ba([t.Property(null)],o.prototype,"title",void 0),Ba([t.Property(null)],o.prototype,"backgroundImage",void 0),Ba([t.Complex({},Da)],o.prototype,"center",void 0),Ba([t.Property("")],o.prototype,"dataSource",void 0),Ba([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},xi)],o.prototype,"titleStyle",void 0),Ba([t.Property(null)],o.prototype,"subTitle",void 0),Ba([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},xi)],o.prototype,"subTitleStyle",void 0),Ba([t.Complex({},Yo)],o.prototype,"legendSettings",void 0),Ba([t.Complex({},ui)],o.prototype,"tooltip",void 0),Ba([t.Complex({},si)],o.prototype,"centerLabel",void 0),Ba([t.Property("None")],o.prototype,"selectionMode",void 0),Ba([t.Property("")],o.prototype,"highlightColor",void 0),Ba([t.Property("None")],o.prototype,"highlightMode",void 0),Ba([t.Property("None")],o.prototype,"selectionPattern",void 0),Ba([t.Property("None")],o.prototype,"highlightPattern",void 0),Ba([t.Property(!1)],o.prototype,"enableHtmlSanitizer",void 0),Ba([t.Property(!0)],o.prototype,"enableBorderOnMouseMove",void 0),Ba([t.Property(!1)],o.prototype,"isMultiSelect",void 0),Ba([t.Property(!0)],o.prototype,"enableAnimation",void 0),Ba([t.Collection([],mi)],o.prototype,"selectedDataIndexes",void 0),Ba([t.Complex({},di)],o.prototype,"margin",void 0),Ba([t.Property(!0)],o.prototype,"enableSmartLabels",void 0),Ba([t.Complex({color:"#DDDDDD",width:0},hi)],o.prototype,"border",void 0),Ba([t.Property(null)],o.prototype,"background",void 0),Ba([t.Collection([{}],Ra)],o.prototype,"series",void 0),Ba([t.Collection([{}],Aa)],o.prototype,"annotations",void 0),Ba([t.Property("Material")],o.prototype,"theme",void 0),Ba([t.Property(!1)],o.prototype,"useGroupingSeparator",void 0),Ba([t.Property(!0)],o.prototype,"enableExport",void 0),Ba([t.Property(!1)],o.prototype,"allowExport",void 0),Ba([t.Complex({},ri)],o.prototype,"accessibility",void 0),Ba([t.Property(null)],o.prototype,"focusBorderColor",void 0),Ba([t.Property(1.5)],o.prototype,"focusBorderWidth",void 0),Ba([t.Property(0)],o.prototype,"focusBorderMargin",void 0),Ba([t.Event()],o.prototype,"loaded",void 0),Ba([t.Event()],o.prototype,"legendClick",void 0),Ba([t.Event()],o.prototype,"load",void 0),Ba([t.Event()],o.prototype,"seriesRender",void 0),Ba([t.Event()],o.prototype,"legendRender",void 0),Ba([t.Event()],o.prototype,"textRender",void 0),Ba([t.Event()],o.prototype,"tooltipRender",void 0),Ba([t.Event()],o.prototype,"pointRender",void 0),Ba([t.Event()],o.prototype,"annotationRender",void 0),Ba([t.Event()],o.prototype,"beforePrint",void 0),Ba([t.Event()],o.prototype,"chartMouseMove",void 0),Ba([t.Event()],o.prototype,"chartMouseClick",void 0),Ba([t.Event()],o.prototype,"chartDoubleClick",void 0),Ba([t.Event()],o.prototype,"pointClick",void 0),Ba([t.Event()],o.prototype,"pointMove",void 0),Ba([t.Event()],o.prototype,"animationComplete",void 0),Ba([t.Event()],o.prototype,"chartMouseDown",void 0),Ba([t.Event()],o.prototype,"chartMouseLeave",void 0),Ba([t.Event()],o.prototype,"chartMouseUp",void 0),Ba([t.Event()],o.prototype,"beforeResize",void 0),Ba([t.Event()],o.prototype,"resized",void 0),Ba([t.Event()],o.prototype,"beforeExport",void 0),Ba([t.Event()],o.prototype,"afterExport",void 0),Ba([t.Event()],o.prototype,"selectionComplete",void 0),Ba([t.Property("USD")],o.prototype,"currencyCode",void 0),o=Ba([t.NotifyPropertyChanges],o)}(t.Component),Va=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Va(t,e),t.prototype.initProperties=function(e,t){var o=e.initialClipRect;t.triangleSize=new i.Size(Ne(t.width,o.width),Ne(t.height,o.height)),t.neckSize=new i.Size(Ne(t.neckWidth,o.width),Ne(t.neckHeight,o.height)),this.defaultLabelBound(t,t.dataLabel.visible,t.dataLabel.position,e),"30%"===t.explodeOffset&&(t.explodeOffset="25px"),e.explodeDistance=Ne(t.explodeOffset,o.width);var r=t.points;this.initializeSizeRatio(r,t)},t.prototype.initializeSizeRatio=function(e,t,i){void 0===i&&(i=!1);for(var o=t.sumOfPoints,r=Math.min(Math.max(t.gapRatio,0),1),n=0!==o?1/(o*(1+r/(1-r))):0,a=r/(e.length-1),l=0,s=e.length-1;s>=0;s--){var h=i?e.length-1-s:s;if(e[h].visible){var c=n*e[h].y;e[h].yRatio=l,e[h].heightRatio=c,l+=c+a}}},t.prototype.setLabelLocation=function(e,t,o){var r=o.length-1,n="Funnel"===e.type?o.length-2:o.length-1,a=(o[0].x+o[n].x)/2,l=(o[1].x+o[n-1].x)/2;t.region=new i.Rect(a,o[0].y,l-a,o[n].y-o[0].y),t.symbolLocation={x:t.region.x+t.region.width/2,y:t.region.y+t.region.height/2},t.labelOffset={x:t.symbolLocation.x-(o[0].x+o[r].x)/2,y:t.symbolLocation.y-(o[0].y+o[r].y)/2}},t.prototype.getPath=function(e,t,i,o,r,n){var a=n.points.length,l=n.borderRadius,s=Math.min(t.region.width,t.region.height),h=Math.min(n.neckSize.height,n.neckSize.width);0===h&&(h=0===n.neckSize.height&&0===n.neckSize.width?t.region.height:0===n.neckSize.width?n.neckSize.height:n.neckSize.width),l=l>s/2?s/2:l,"Funnel"===n.type&&(l=l>h/2?h/2:l);var c=Math.atan2(e[1].x-e[2].x,e[1].y-e[2].y),d=l;if("Pyramid"===n.type&&(l=t.index===r&&1!==a&&o!==r?0:l,i+=e[0].x-d*Math.sin(-c)+" "+(e[0].y+-d*Math.cos(c))+" Q"+e[0].x+" "+e[0].y+" "+(e[0].x+l*Math.sin(-c))+" "+(e[0].y+-l*Math.cos(-c)),i+=" L"+(e[1].x+l*Math.sin(-c))+" "+(e[1].y+-l*Math.cos(c)),l=t.index===r?d:0,i+=" L"+(e[2].x-d*Math.sin(-c))+" "+(e[2].y- -d*Math.cos(c))+" Q"+e[2].x+" "+e[2].y+" "+(e[2].x-l)+" "+e[2].y,i+=" L"+(e[3].x+l)+" "+e[3].y+" Q"+e[3].x+" "+e[3].y+" "+(e[3].x+d*Math.sin(-c))+" "+(e[3].y- -d*Math.cos(c))),"Funnel"===n.type)if(l=t.index===o&&1!==a&&o!==r?0:l,i+=e[0].x+-l*Math.sin(-c)+" "+(e[0].y+-l*Math.cos(c))+" Q"+e[0].x+" "+e[0].y+" "+(e[0].x+l)+" "+e[0].y,i+=" L"+(e[1].x-l)+" "+e[1].y+" Q"+e[1].x+" "+e[1].y+" "+(e[1].x-l*Math.sin(c))+" "+(e[1].y+-l*Math.cos(c)),l=t.index===o?d:0,"0%"===n.neckWidth){var p=e[5].x+(e[3].x-e[5].x)/2;i+=" L"+(e[2].x+-l*Math.sin(-c))+" "+(e[2].y- -l*Math.cos(c))+" Q"+p+" "+e[2].y+" "+(e[5].x- -l*Math.sin(-c))+" "+(e[2].y- -l*Math.cos(c))}else{i="0%"!==n.neckHeight&&e[2].y!==e[3].y?i+=" L"+e[2].x+" "+e[2].y:i;var u="0%"===n.neckHeight?l*Math.sin(-c):0,g="0%"===n.neckHeight?-l*Math.cos(c):l;i+=" L"+(e[3].x-u)+" "+(e[3].y-g)+" Q"+e[3].x+" "+e[3].y+" "+(e[3].x-g)+" "+e[3].y,i+=" L"+(e[4].x+g)+" "+e[4].y+" Q"+e[4].x+" "+e[4].y+" "+(e[5].x+u)+" "+(e[4].y-g),i="0%"!==n.neckHeight&&e[4].y!==e[5].y?i+=" L"+e[5].x+" "+e[5].y:i}return i},t.prototype.findPath=function(e,t,i){for(var o="M ",r=-1,n=-1,a=0;a<i.points.length;a++)i.points[a].visible&&(-1===r&&(r=a),n=a);if(!i.borderRadius||t.index!==n&&t.index!==r)for(var l=0;l<e.length;l++)o+=e[l].x+" "+e[l].y,l!==e.length-1&&(o+=" L ");else o=this.getPath(e,t,o,r,n,i);return o+" Z "},t.prototype.defaultLabelBound=function(e,t,o,r){var n=(r.initialClipRect.width-e.triangleSize.width)/2,a=(r.initialClipRect.height-e.triangleSize.height)/2,l=new i.Rect(n,a,e.triangleSize.width,e.triangleSize.height);e.labelBound=new i.Rect(l.x,l.y,l.width+l.x,l.height+l.y),e.accumulationBound=l,t&&"Outside"===o&&(e.labelBound=new i.Rect(1/0,1/0,-1/0,-1/0))},t}(Ta),Wa=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.getSegmentData=function(e,t,i){var o,r,n,a,l,s,h,c,d=t.triangleSize,p=(i.initialClipRect.width-t.triangleSize.width)/2+i.initialClipRect.x,u=i.initialClipRect.y+(i.initialClipRect.height-d.height)/2,g=e.yRatio*d.height,m=g+e.heightRatio*d.height,y=t.neckSize;o=y.width+(d.width-y.width)*((d.height-y.height-g)/(d.height-y.height)),a=(r=d.width/2-o/2)+o,o=m>d.height-y.height||d.height===y.height?y.width:y.width+(d.width-y.width)*((d.height-y.height-m)/(d.height-y.height)),l=(n=d.width/2-o/2)+o,g>=d.height-y.height?(r=n=s=d.width/2-y.width/2,a=l=h=d.width/2+y.width/2):m>d.height-y.height&&(h=l=(s=n=d.width/2-o/2)+o,c=d.height-y.height);var f={x:p+0+r,y:g+=u},v={x:p+0+a,y:g},b={x:p+0+l,y:m+=u},x={x:p+0+n,y:m},S={x:p+0+l,y:m},C={x:p+0+n,y:m};(c+=u)&&(S={x:p+0+h,y:c},C={x:p+0+s,y:c});var F=[f,v,S,b,x,C];return this.setLabelLocation(t,e,F),this.findPath(F,e,t)},t.prototype.renderPoint=function(e,t,i,o,r,n,a,l,s){if(!e.visible)return g(o.id),null;var h,c=this.getSegmentData(e,t,i);e.midAngle=0,o.d=c,s&&document.getElementById(o.id)&&(h=document.getElementById(o.id).getAttribute("d"));var d=i.renderer.drawPath(o);d.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),d.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),d.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+":"+e.y+"%. "+t.name),be(!1,r,d,n,s||void 0,s?"x":void 0,s?"y":void 0,void 0,s?h:void 0,void 0,void 0,void 0,s?i.duration:void 0),e.isExplode&&i.accBaseModule.explodePoints(e.index,i,!0)},t.prototype.renderTrapezoidalFunnel=function(e,t,o,r,n,a){for(var l=e.triangleSize.width,s=e.triangleSize.height,h=(o.initialClipRect.width-l)/2+o.initialClipRect.x,c=o.initialClipRect.y+(o.initialClipRect.height-s)/2,d=Math.max.apply(Math,t.map(function(e){return e.y})),p=0,u=a?he(o.element.id+"_Series_"+e.index+"_Polygon"):o.renderer.createGroup({id:o.element.id+"_Series_"+e.index+"_Polygon"}),m=0;m<e.points.length;m++){var y=e.points[m],f=r[y.index];if(y.visible){var v=(s-10*(t.length-1))/t.length,b=l*(y.y/d),x=t.indexOf(y),S=x<t.length-1?l*(t[x+1].y/d):0,C=h+(l-b)/2,F=c+p,w=Math.min(e.borderRadius,v/2),L="M"+(C+w)+" "+F+" L"+(C+b-w)+" "+F+" A"+w+" "+w+" 0 0 1 "+(C+b)+" "+(F+w)+" L"+(C+b)+" "+(F+v-w)+" A"+w+" "+w+" 0 0 1 "+(C+b-w)+" "+(F+v)+" L"+(C+w)+" "+(F+v)+" A"+w+" "+w+" 0 0 1 "+C+" "+(F+v-w)+" L"+C+" "+(F+w)+" A"+w+" "+w+" 0 0 1 "+(C+w)+" "+F+" Z";y.midAngle=0,f.d=L;var P=o.renderer.drawPath(f);if(P.setAttribute("role",e.accessibility.accessibilityRole?e.accessibility.accessibilityRole:"img"),P.setAttribute("tabindex",0===y.index&&e.accessibility.focusable?String(e.accessibility.tabIndex):"-1"),P.setAttribute("aria-label",e.accessibility.accessibilityDescription?e.accessibility.accessibilityDescription:y.x+":"+y.y+"%. "+e.name),be(!1,n,P,a),x<t.length-1){var A=new i.PathOption(f.id+"_polygon",this.lightenColor(f.fill),.4*f["stroke-width"],this.lightenColor(f.stroke),f.opacity,f["stroke-dasharray"],""),M=[[(l-b)/2+h+w,F+v],[(l+b)/2+h-w,F+v],[(l+S)/2+h,F+v+10],[(l-S)/2+h,F+v+10]],D="M"+M[0][0]+" "+M[0][1]+" L"+M[1][0]+" "+M[1][1]+" L"+M[2][0]+" "+M[2][1]+" L"+M[3][0]+" "+M[3][1]+" Z";A.d=D,be(!1,u,o.renderer.drawPath(A),a)}else g(f.id+"_polygon");p+=v+10,y.region=new i.Rect(C,F,b,v),y.symbolLocation={x:y.region.x+y.region.width/2,y:y.region.y+y.region.height/2},y.labelOffset={x:y.symbolLocation.x+y.region.width/2,y:y.symbolLocation.y+y.region.height/2},y.isExplode&&o.accBaseModule.explodePoints(y.index,o,!0)}else g(f.id),g(f.id+"_polygon")}be(!1,o.getSeriesElement(),n,a),be(!1,o.getSeriesElement(),u,a)},t.prototype.lightenColor=function(e){var t=ke(Re(e));return"rgb("+t.r+","+t.g+","+t.b+",0.4)"},t.prototype.getModuleName=function(){return"FunnelSeries"},t.prototype.destroy=function(){},t}(Ha),Ua=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ua(t,e),t.prototype.getSegmentData=function(e,t,i){var o=t.triangleSize,r=i.initialClipRect.y+(i.initialClipRect.height-o.height)/2,n=(i.initialClipRect.width-t.triangleSize.width)/2+i.initialClipRect.x,a=e.yRatio,l=e.yRatio+e.heightRatio,s=.5*(1-e.yRatio),h=.5*(1-l);a+=r/o.height,l+=r/o.height;var c=[{x:n+0+s*o.width,y:a*o.height},{x:n+0+(1-s)*o.width,y:a*o.height},{x:n+0+(1-h)*o.width,y:l*o.height},{x:n+0+h*o.width,y:l*o.height}];return this.setLabelLocation(t,e,c),this.findPath(c,e,t)},t.prototype.initializeSizeRatio=function(t,i){"Linear"===i.pyramidMode?e.prototype.initializeSizeRatio.call(this,t,i,!0):this.calculateSurfaceSegments(i)},t.prototype.calculateSurfaceSegments=function(e){for(var t=e.points.length,i=e.sumOfPoints,o=[],r=[],n=Math.min(0,Math.max(e.gapRatio,1)),a=e.points.length>1?n/(t-1):0,l=this.getSurfaceHeight(0,i),s=0,h=0;h<t;h++)e.points[h].visible&&(o[h]=s,r[h]=this.getSurfaceHeight(s,Math.abs(e.points[h].y)),s+=r[h]+a*l);for(var c=1/(s-a*l),h=0;h<t;h++)e.points[h].visible&&(e.points[h].yRatio=c*o[h],e.points[h].heightRatio=c*r[h])},t.prototype.getSurfaceHeight=function(e,t){return this.solveQuadraticEquation(1,2*e,-t)},t.prototype.solveQuadraticEquation=function(e,t,i){var o,r,n=t*t-4*e*i;if(n>=0){var a=Math.sqrt(n);return o=(-t-a)/(2*e),r=(-t+a)/(2*e),Math.max(o,r)}return 0},t.prototype.renderPoint=function(e,t,o,r,n,a,l,s,h){if(!e.visible)return i.removeElement(r.id),null;var c;r.d=this.getSegmentData(e,t,o),h&&document.getElementById(r.id)&&(c=document.getElementById(r.id).getAttribute("d")),e.midAngle=0;var d=o.renderer.drawPath(r);d.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),d.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),d.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),be(!1,n,d,a,h||void 0,h?"x":void 0,h?"y":void 0,void 0,h?c:void 0,void 0,void 0,void 0,h?o.duration:void 0),e.isExplode&&o.accBaseModule.explodePoints(e.index,o,!0)},t.prototype.getModuleName=function(){return"PyramidSeries"},t.prototype.destroy=function(){},t}(Ha),Ga=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ya=function(e){function o(t){var o=e.call(this,t)||this;return o.legendRenderArgFill=[],o.library=o,o.titleRect=new i.Rect(0,t.margin.top,0,0),o.addEventListener(),o}return Ga(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on("click",this.click,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},o.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&this.chart.accumulationHighlightModule&&"None"!==this.chart.highlightMode){this.chart.legendSettings.toggleVisibility||this.click(e);for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.accumulationHighlightModule.legendSelection(this.chart,0,o,e.target,e.type);break}}}},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e,i){this.legendCollections=[],this.isRtlEnable=e.enableRtl,this.isReverse=!this.isRtlEnable&&e.legendSettings.reverse;for(var o=0;o<1;o++){var r=i[o].type;"Pie"!==r&&"Doughnut"!==r||(r="0"!==i[o].innerRadius&&"0%"!==i[o].innerRadius?"Doughnut":"Pie");for(var n=0,a=i[o].points;n<a.length;n++){var l=a[n];t.isNullOrUndefined(l.x)||t.isNullOrUndefined(l.y)||this.legendCollections.push(new qo(e.useGroupingSeparator&&"number"==typeof l.x?e.intl.formatNumber(l.x,{useGrouping:!0}):l.x.toString(),l.color,i[o].legendShape,l.visible,r,l.legendImageUrl,null,null,l.index,i[o].index,null,l.x.toString()))}this.isReverse&&this.legendCollections.reverse()}},o.prototype.getLegendBounds=function(e,t,o){this.calculateLegendTitle(o,t),this.isTitle=!!o.title;var r,n=0,a=0;this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var l=o.padding,s=o.titlePosition,h=0,c=this.arrowWidth,d=o.enablePages?0:this.arrowHeight;this.isVertical?n=o.width?0:e.width/100*5:a=o.height?0:e.height/100*5,t.width+=n,t.height+=a;var p=o.shapePadding,u=o.maximumLabelWidth?o.maximumLabelWidth:0,g=o.shapeWidth,m=0,y=0,f=0,v=[],b=[],x=0,S=0,C=0,F=0,w=0;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);var L,P=!1,A="Auto"===o.layout&&o.maximumColumns>0;if(o.fixedWidth)for(D=0;D<this.legendCollections.length;D++){var M=g+p+(this.isVertical?l:0===D?l:this.itemPadding)+(o.maximumLabelWidth?o.maximumLabelWidth:i.measureText(this.legendCollections[D].text,o.textStyle,this.chart.themeStyle.legendLabelFont).width);this.maxColumnWidth=this.maxColumnWidth>M?this.maxColumnWidth:M}for(var D=0;D<this.legendCollections.length;D++)if(r=this.legendCollections[D],L={fill:r.fill,text:r.text,shape:r.shape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",L),r.render=!L.cancel,r.text=r.originalText=L.text.indexOf("&")>-1?this.convertHtmlEntities(L.text):L.text,r.fill!==L.fill&&this.legendRenderArgFill.push(D),r.fill=L.fill,r.shape=L.shape,r.textSize=i.measureText(r.text,o.textStyle,this.chart.themeStyle.legendLabelFont),r.render&&""!==r.text)if(P=!0,F=o.fixedWidth?this.maxColumnWidth:g+p+(o.maximumLabelWidth?o.maximumLabelWidth:r.textSize.width)+(this.isVertical&&"Horizontal"!==o.layout?l:0===D||1===y&&f>0&&"Horizontal"===o.layout?l:this.itemPadding),this.getLegendHeight(r,o,t,m,this.maxItemHeight,l),this.isVertical&&"Auto"===o.layout&&!A)(C+=Math.max(r.textSize.height,o.shapeHeight)+(0===D?l:this.itemPadding))+this.itemPadding+d/this.pageButtonSize>t.height&&(m+=u,x=this.getPageWidth(b),this.totalPages=Math.max(f,this.totalPages||1),m-x+F>t.width?(b.push(m-x),S=f=this.rowHeights.length):f=S,v.push(u),u=0,C=Math.max(r.textSize.height,o.shapeHeight)+l,y++),this.columnHeights[y]=(this.columnHeights[y]?this.columnHeights[y]:0)+Math.max(r.textSize.height,o.shapeHeight)+(0===D?l:this.itemPadding),u=Math.max(F,u),this.rowHeights[f]=Math.max(this.rowHeights[f]?this.rowHeights[f]:0,Math.max(r.textSize.height,o.shapeHeight)),f++;else{o.enablePages||(h=this.isTitle&&"Top"!==s?this.legendTitleSize.width+this.fivePixel:0,h+=c),m+=F,(A?o.maximumColumns===y:t.width<l+m+h||"Vertical"===this.legend.layout&&1===y)&&(u=Math.max(u,m+l+h-F),0===f&&F!==m&&(f=1),m=F,f++,y=0);var k=f?f-1:f;this.rowHeights[k]=Math.max(this.rowHeights[k]?this.rowHeights[k]:0,Math.max(r.textSize.height,o.shapeHeight)),this.columnHeights[y]=(this.columnHeights[y]?this.columnHeights[y]:0)+Math.max(r.textSize.height,o.shapeHeight)+l,A&&this.columnHeights[y]>t.height&&(this.columnHeights[y]-=Math.max(r.textSize.height,o.shapeHeight)+l),y++}w="Top"===s?this.legendTitleSize.height:0,this.isVertical&&"Auto"===o.layout&&!A?(m+=u,this.isPaging=t.width<m+l,C=Math.max.apply(null,this.columnHeights)+l+d+w,C=Math.max(C,(this.totalPages||1)*(this.maxItemHeight+l)+l+d),this.isPaging=this.isPaging&&this.totalPages>1,v.push(u)):(this.totalPages=this.totalRowCount=f,C=Math.max.apply(null,this.columnHeights)+l+d+w,this.isPaging=(t.height<C||"Horizontal"===o.layout&&this.rowHeights.length>1)&&!A,C=!o.enablePages&&this.isPaging&&"Vertical"!==o.layout?this.maxItemHeight+l+l+w:C,C=Math.max(C,this.maxItemHeight+l+l+w),"Horizontal"===o.layout&&(C=this.maxItemHeight+2*l+w+this.pageButtonSize+o.border.width),this.isPaging||(m+=this.isTitle&&"Top"!==s?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0)),this.maxColumns=0;var R;A&&this.maxColumnWidth&&o.fixedWidth?(R=this.maxColumnWidth*o.maximumColumns+l,this.isPaging=!1):R=this.isVertical&&"Auto"===o.layout&&!A?this.getMaxColumn(v,t.width,l,m+l):Math.max(m+l,u),P?this.setBounds(R,C,o,t):this.setBounds(0,0,o,t)},o.prototype.getPageWidth=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t},o.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=Ze(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,"AnyWhere"===t.textWrap,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},o.prototype.convertHtmlEntities=function(e){var t=e.replace("&amp;","&").replace("&lt;","<").replace("&gt;",">").replace("&quot;",'"').replace("&nbsp;"," ").replace("&cent;","¢").replace("&pound;","£").replace("&yen;","¥").replace("&euro;","€").replace("&copy;","©").replace("&reg;","®");return t=t.replace("&#38;","&").replace("&#60;","<").replace("&#62;",">").replace("&#34;",'"').replace("&#160;"," ").replace("&#162;","¢").replace("&#163;","£").replace("&#165;","¥").replace("&#8364;","€").replace("&#169;","©").replace("&#174;","®")},o.prototype.getMaxColumn=function(e,t,i,o){var r=i;this.maxColumnWidth=Math.max.apply(null,e);for(var n=0,a=e;n<a.length;n++){a[n];if(r+=this.maxColumnWidth,this.maxColumns++,r+i>t){r-=this.maxColumnWidth,this.maxColumns--;break}}this.isPaging=r<o&&this.totalPages>1,r===i&&(r=t),this.maxColumns=Math.max(1,this.maxColumns),this.maxWidth=r;var l=this.maxColumnWidth+i,s=0,h=this.columnHeights.length;if(this.isPaging&&this.isVertical){for(var c=1;c<h;c++)(l+=this.maxColumnWidth+i)>t&&(this.pageHeights.push(s!==c-1?Math.max.apply(null,this.columnHeights.slice(s,c-1)):this.columnHeights[s]),l=this.maxColumnWidth+i,s=c);this.pageHeights.push(s!==h-1?Math.max.apply(null,this.columnHeights.slice(s,h-1)):this.columnHeights[s]),this.totalPages=this.pageHeights.length}return r},o.prototype.getAvailWidth=function(e,t){if(!this.isVertical||"Auto"!==this.legend.layout||this.legend.maximumColumns>0){if(!this.isVertical&&"Vertical"!==this.legend.layout&&!(this.legend.maximumColumns>0)&&this.isPaging&&!this.legend.enablePages)return t-e-this.fivePixel}else t=this.maxWidth;return t-(2*this.legend.padding+this.legend.shapeWidth+this.legend.shapePadding)},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=o.location.y+this.maxItemHeight/4+(o.textCollection.length>0?(o.textCollection.length-1)*this.maxItemHeight:0);if(!this.isVertical||"Auto"!==this.legend.layout||this.legend.maximumColumns>0){var h=this.legend.fixedWidth?this.maxColumnWidth:i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),c=o.location.x+(this.isRtlEnable?-h:h);("Auto"===this.legend.layout&&this.legend.maximumColumns>0?n%this.legend.maximumColumns==0:this.isWithinBounds(c,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r,this.legend.shapeWidth/2)||"Vertical"===this.legend.layout)?(n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+this.rowHeights[this.chartRowCount-2]+l,e.location.x=t.x):(e.location.y=o.location.y,e.location.x=n===a?o.location.x:c)}else if(n===a||s+Math.max(e.textSize.height,this.legend.shapeHeight)+l>r.y+r.height){e.location.x=o.location.x+(n===a?0:this.isRtlEnable?-this.maxColumnWidth:this.maxColumnWidth),e.location.y=t.y;var d=this.legend.shapeWidth/2+l;this.pageXCollections.push(e.location.x+(this.isRtlEnable?d:-d))}else e.location.x=o.location.x,e.location.y=o.location.y+Math.max(o.textSize.height,this.legend.shapeHeight)+this.itemPadding;var p=this.getAvailWidth(e.location.x,this.legendBounds.width);p=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,p):p,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=ze(+p.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},o.prototype.isWithinBounds=function(e,t,i,o){return this.isRtlEnable?e-t<i.x-o:e+t>i.x+i.width+o},o.prototype.getSmartLegendLocation=function(e,t,i){var o;switch(this.position){case"Left":o=(e.x-t.width-i.left)/2,t.x=e.x-t.width<i.left?t.x:e.x-t.width-o;break;case"Right":o=(this.chart.availableSize.width-i.right-(e.x+e.width+t.width))/2,t.x=e.x+e.width+t.width>this.chart.availableSize.width-i.right?t.x:e.x+e.width+o;break;case"Top":this.getTitleRect(this.chart),o=(e.y-t.height-(this.titleRect.y+this.titleRect.height))/2,t.y=e.y-t.height<i.top?t.y:e.y-t.height-o;break;case"Bottom":o=(this.chart.availableSize.height-i.bottom-(e.y+e.height+t.height))/2,t.y=e.y+e.height+t.height>this.chart.availableSize.height-i.bottom?t.y:e.y+e.height+o}},o.prototype.getTitleRect=function(e){if(!e.title)return null;var t=i.measureText(e.title,e.titleStyle,this.chart.themeStyle.legendTitleFont);this.titleRect=new i.Rect(e.availableSize.width/2-t.width/2,e.margin.top,t.width,t.height)},o.prototype.legendByIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.pointIndex===e)return r}return null},o.prototype.click=function(e){var t=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,i=this.chart,o=[this.legendID+"_text_",this.legendID+"_shape_",this.legendID+"_shape_marker_"];this.chart.animateSeries=!1;for(var r=0,n=o;r<n.length;r++){var a=n[r];if(t.indexOf(a)>-1){var l=parseInt(t.split(a)[1],10);if(this.chart.legendSettings.toggleVisibility&&!isNaN(l)){var s=this.chart.visibleSeries[0],h=lt(l,s.points),c=this.legendByIndex(l,this.legendCollections),d={legendText:c.text,legendShape:c.shape,chart:i,series:s,point:h,name:Di,cancel:!1};if(this.chart.trigger(Di,d),!d.cancel){h.visible=!h.visible,c.visible=h.visible,s.sumOfPoints+=h.visible?h.y:-h.y,i.redraw=i.enableAnimation,this.sliceVisibility(l,h.visible),i.removeSvg(),this.chart.refreshPoints(s.points),this.chart.calculateBounds();var p=document.getElementById(this.chart.element.id+"PointHover_Border");p&&this.chart.pieSeriesModule.removeBorder(p,0),this.chart.accumulationTooltipModule&&this.chart.accumulationTooltipModule.removeTooltip(0),this.chart.renderElements()}}else this.chart.accumulationSelectionModule&&!isNaN(l)?this.chart.accumulationSelectionModule.legendSelection(this.chart,0,l,e.target,e.type):this.chart.accumulationHighlightModule&&!isNaN(l)&&this.chart.accumulationHighlightModule.legendSelection(this.chart,0,l,e.target,e.type)}}t.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):t.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),i.redraw=!1},o.prototype.sliceVisibility=function(e,t){var i=this.chart.element.id+"_Series_0_Point_";this.chart.visibleSeries[0].dataLabel.visible&&(i=this.chart.element.id+"_datalabel_Series_0_",this.sliceAnimate(he(i+"g_"+e),t))},o.prototype.sliceAnimate=function(e,i){if(!e)return null;new t.Animation({}).animate(e,{duration:300,delay:0,name:i?"FadeIn":"FadeOut",end:function(e){e.element.style.visibility=i?"visible":"hidden"}})},o.prototype.getModuleName=function(){return"AccumulationLegend"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),Za=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qa=function(e){function o(t){var i=e.call(this,t)||this;return i.rightSideRenderingPoints=[],i.leftSideRenderingPoints=[],i.id=t.element.id+"_datalabel_Series_",i}return Za(o,e),o.prototype.getDataLabelPosition=function(e,t,o,r){var n=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.labelRadius:this.getLabelDistance(e,t);if(this.accumulation.title){var a=i.measureText(this.accumulation.title,this.accumulation.titleStyle,this.accumulation.themeStyle.datalabelFont);this.titleRect=new i.Rect(this.accumulation.availableSize.width/2-a.width/2,this.accumulation.margin.top,a.width,a.height)}this.getLabelRegion(e,t.position,o,n,this.marginValue),e.labelAngle=e.midAngle,e.labelPosition=t.position,this.accumulation.enableSmartLabels&&this.getSmartLabel(e,t,o,r)},o.prototype.getLabelRegion=function(e,t,o,r,n,a){void 0===a&&(a=0);var l=a||e.midAngle,s=L(l,r,this.isCircular()?this.center:this.getLabelLocation(e,t));s.y="Inside"===t?s.y-o.height/2:s.y,s.x="Inside"===t?s.x-o.width/2:s.x,e.labelRegion=new i.Rect(s.x,s.y,o.width+2*n,o.height+2*n),"Outside"===t&&(e.labelRegion.y-=e.labelRegion.height/2,l>=90&&l<=270?e.labelRegion.x-=e.labelRegion.width+20:e.labelRegion.x+=20)},o.prototype.calculateLabelCollection=function(e,t){if(null!==e.argsData.template)return null;var i=e.labelPosition||t.position,o=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.labelRadius:this.getLabelDistance(e,t),r=this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.radius-this.accumulation.pieSeriesModule.innerRadius,n=L(e.midAngle,o,this.isCircular()?this.center:this.getLabelLocation(e,i)),a=t.maxWidth;a||(a="Outside"===i?this.isCircular()?n.x>=this.center.x?this.areaRect.x+this.areaRect.width-n.x:n.x-this.areaRect.x:n.x>=e.region.x?this.areaRect.x+this.areaRect.width-n.x:n.x-this.areaRect.x:this.isCircular()?r-20:e.region.width),-1!==e.label.indexOf("<br>")?e.labelCollection=e.label.split("<br>"):"Normal"===t.textWrap&&"Ellipsis"===t.textOverflow?e.labelCollection[0]=ze(a,e.label,e.argsData.font,this.accumulation.enableRtl,this.accumulation.themeStyle.datalabelFont):"Wrap"===t.textWrap||"AnyWhere"===t.textWrap?e.labelCollection=Ze(e.label,a,e.argsData.font,this.accumulation.enableRtl,"AnyWhere"===t.textWrap,"Clip"===t.textOverflow,this.accumulation.themeStyle.datalabelFont):e.labelCollection[0]=e.label},o.prototype.getTextSize=function(e,t){for(var o,r=0,n=t.font,a=t.maxWidth?t.maxWidth:0,l=0;l<e.length;l++)o=i.measureText(e[l],n,this.accumulation.themeStyle.datalabelFont),a=Math.max(o.width,a),r+=o.height;return"Clip"===t.textOverflow&&"Normal"!==t.textWrap&&t.maxWidth&&(a=t.maxWidth),new i.Size(a,r)},o.prototype.getSmartLabel=function(e,t,o,r){var n=this.isCircular(),a=n?this.radius:this.getLabelDistance(e,t);a+=Ne(n?t.connectorStyle.length||"4%":"0px",a);var l=this.findPreviousPoint(r,e.index,e.labelPosition);if("Inside"===t.position?(e.labelRegion.height-=4,e.labelRegion.width-=4,(l&&l.labelRegion&&!t.enableRotation&&(Le(e.labelRegion,l.labelRegion)||this.isOverlapping(e,r))||!n&&!Pe(e.region,e.labelRegion))&&(e.labelPosition="Outside",n||(a=this.getLabelDistance(e,t)),this.calculateLabelCollection(e,t),(o=this.getTextSize(e.labelCollection,t)).height+=4,o.width+=4,e.textSize=o,this.getLabelRegion(e,e.labelPosition,o,a,this.marginValue),(l=this.findPreviousPoint(r,e.index,e.labelPosition))&&(Le(e.labelRegion,l.labelRegion)||this.isConnectorLineOverlapping(e,l))&&this.setOuterSmartLabel(l,e,t.border.width,a,o,this.marginValue))):l&&l.labelRegion&&(Le(e.labelRegion,l.labelRegion)||this.isOverlapping(e,r)||this.isConnectorLineOverlapping(e,l))&&this.setOuterSmartLabel(l,e,t.border.width,a,o,this.marginValue),this.isOverlapping(e,r)&&("Pyramid"===this.accumulation.type||"Funnel"===this.accumulation.type)){var s=e.midAngle||0,h=n?this.radius:this.getLabelDistance(e,t),c=L(s,-h,this.isCircular()?this.center:this.getLabelLocation(e,"OutsideLeft"));e.labelRegion=new i.Rect(c.x,c.y,o.width+2*this.marginValue,o.height+2*this.marginValue),e.labelRegion.y-=e.labelRegion.height/2,e.labelRegion.x=e.labelRegion.x-20-e.labelRegion.width,l&&l.labelRegion&&(Le(e.labelRegion,l.labelRegion)||this.isOverlapping(e,r)||this.isConnectorLineOverlapping(e,l))&&this.setOuterSmartLabel(l,e,t.border.width,h,o,this.marginValue)}},o.prototype.move=function(e,t,i,o){var r=this;if(e.target.textContent.indexOf("...")>-1){var n=e.target.id.split(this.id);if(2===n.length){var a=parseInt(n[1].split("_text_")[0],10),l=parseInt(n[1].split("_text_")[1],10);if(!isNaN(a)&&!isNaN(l)){o&&g(this.accumulation.element.id+"_EJ2_Datalabel_Tooltip");var s=at(a,this.accumulation.visibleSeries).points[l];y(s.text||s.y.toString(),t,i,this.areaRect.width,this.accumulation.element.id+"_EJ2_Datalabel_Tooltip",he(this.accumulation.element.id+"_Secondary_Element"),null,null,this.accumulation.initialClipRect)}}}else g(this.accumulation.element.id+"_EJ2_Datalabel_Tooltip");o&&(clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(function(){g(r.accumulation.element.id+"_EJ2_Datalabel_Tooltip")},1e3))},o.prototype.findPreviousPoint=function(e,t,i){for(var o=e[0],r=t-1;r>=0;r--)if((o=e[r]).visible&&o.labelVisible&&o.labelRegion&&o.labelPosition===i)return o;return null},o.prototype.isOverlapping=function(e,t){for(var i=e.index-1;i>=0;i--)if(t[i].visible&&t[i].labelVisible&&t[i].labelRegion&&e.labelRegion&&e.labelVisible&&Le(e.labelRegion,t[i].labelRegion))return!0;return!1},o.prototype.textTrimming=function(e,t,i,o,r){if(Le(e.labelRegion,t)){var n=e.labelRegion.width;if("Right"===o?n=t.x-e.labelRegion.x:"Left"===o?(n=e.labelRegion.x-(t.x+t.width))<0&&(n+=e.labelRegion.width,e.labelRegion.x=t.x+t.width):"InsideRight"===o?n=t.x+t.width-e.labelRegion.x:"InsideLeft"===o?(n=e.labelRegion.x+e.labelRegion.width-t.x)<e.labelRegion.width&&(e.labelRegion.x=t.x):this.accumulation.enableSmartLabels&&this.setPointVisibileFalse(e),e.labelVisible&&e.labelRegion){-1!==e.label.indexOf("<br>")?e.labelCollection=e.label.split("<br>"):n<e.labelRegion.width&&("Normal"===r.textWrap&&"Ellipsis"===r.textOverflow?e.labelCollection[0]=ze(n-2*this.marginValue,e.label,i,this.accumulation.enableRtl,this.accumulation.themeStyle.datalabelFont):"Wrap"!==r.textWrap&&"AnyWhere"!==r.textWrap||(e.labelCollection=Ze(e.label,n-2*this.marginValue,i,this.accumulation.enableRtl,"AnyWhere"===r.textWrap,"Clip"===r.textOverflow,this.accumulation.themeStyle.datalabelFont)),e.labelRegion.width=n);for(var a=0;a<e.labelCollection.length;a++)if(3===e.labelCollection[a].length&&e.labelCollection[a].indexOf("...")>-1){this.setPointVisibileFalse(e);break}}}},o.prototype.setPointVisibileFalse=function(e){e.labelVisible=!1,e.labelRegion=null},o.prototype.setPointVisibleTrue=function(e){e.labelVisible=!0},o.prototype.setOuterSmartLabel=function(e,t,i,o,r,n){if(this.isCircular()){var a=this.getOverlappedAngle(e.labelRegion,t.labelRegion,t.midAngle,2*i);for(this.getLabelRegion(t,"Outside",r,o,n,a),a>t.endAngle&&(a=t.midAngle),t.labelAngle=a;t.labelVisible&&(Le(e.labelRegion,t.labelRegion)||a<=e.labelAngle||a<=.9*t.midAngle||this.isConnectorLineOverlapping(t,e))&&!(a>t.endAngle);)t.labelAngle=a,this.getLabelRegion(t,"Outside",r,o,n,a),a+=.1}else this.setSmartLabelForSegments(t,e)},o.prototype.setSmartLabelForSegments=function(e,t){var i=e.labelRegion,o="Funnel"===this.accumulation.type?t.labelRegion.y-(i.y+i.height):e.labelRegion.y-(t.labelRegion.y+t.labelRegion.height);o<0&&(e.labelRegion.y+="Funnel"===this.accumulation.type?o:-o)},o.prototype.isConnectorLineOverlapping=function(e,t){var i;!this.isCircular()&&e.labelRegion.x<e.region.x&&(i="outsideLeft");var o=this.getLabelLocation(e,i),r=new mo(0,0);this.getEdgeOfLabel(e.labelRegion,e.labelAngle,r,0,e);var n=this.getLabelLocation(t),a=new mo(0,0);return this.getEdgeOfLabel(t.labelRegion,t.labelAngle,a,0,e),this.isLineRectangleIntersect(o,r,e.labelRegion)||this.isLineRectangleIntersect(o,r,t.labelRegion)||this.isLineRectangleIntersect(n,a,e.labelRegion)},o.prototype.isLineRectangleIntersect=function(e,t,i){var o=[new mo(Math.round(i.x),Math.round(i.y)),new mo(Math.round(i.x+i.width),Math.round(i.y)),new mo(Math.round(i.x+i.width),Math.round(i.y+i.height)),new mo(Math.round(i.x),Math.round(i.y+i.height))];e.x=Math.round(e.x),e.y=Math.round(e.y),t.x=Math.round(t.x),t.y=Math.round(t.y);for(var r=0;r<o.length;r++)if(this.isLinesIntersect(e,t,o[r],o[(r+1)%o.length]))return!0;return!1},o.prototype.isLinesIntersect=function(e,t,i,o){var r=t.y-e.y,n=e.x-t.x,a=r*e.x+n*e.y,l=o.y-i.y,s=i.x-o.x,h=l*i.x+s*i.y,c=r*s-l*n;if(0!==c){var d=(s*a-n*h)/c,p=(r*h-l*a)/c,u=Math.min(e.x,t.x)<=d&&d<=Math.max(e.x,t.x);return u=u&&Math.min(e.y,t.y)<=p&&p<=Math.max(e.y,t.y),u=u&&Math.min(i.x,o.x)<=d&&d<=Math.max(i.x,o.x),u=u&&Math.min(i.y,o.y)<=p&&p<=Math.max(i.y,o.y)}return!1},o.prototype.getOverlappedAngle=function(e,t,i,o){var r=e.x;return i>=90&&i<=270?(t.y=e.y-(o+t.height/2),r=e.x+e.width):t.y=e.y+e.height+o,k(this.center,new mo(r,t.y))},o.prototype.getConnectorPath=function(e,t,i,o){void 0===o&&(o=0);var r=i.connectorStyle,n=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],t):this.labelRadius:this.getLabelDistance(t,i),a=this.getConnectorStartPoint(t,r),l=this.accumulation.enableSmartLabels?t.midAngle:o||t.midAngle,s=new mo(0,0),h=this.getEdgeOfLabel(e,l,s,r.width,t);if("Curve"===r.type){if(this.isCircular()){var c=n-(this.isVariousRadius()?Ne(t.sliceRadius,this.accumulation.pieSeriesModule.size/2):this.radius);return t.isLabelUpdated?s=this.getPerpendicularDistance(a,t):(s=L(l,n-c/2,this.center),"Outside"===t.labelPosition&&"Inside"===i.position&&(s=L(l,n-1.25*c,this.center))),"M "+a.x+" "+a.y+" Q "+s.x+" "+s.y+" "+h.x+" "+h.y}return this.getPolyLinePath(a,h)}return"M "+a.x+" "+a.y+" L "+s.x+" "+s.y+" L "+h.x+" "+h.y},o.prototype.getPolyLinePath=function(e,t){var i=[e,t];if(e.y===t.y)return"M "+e.x+" "+e.y+" L "+t.x+" "+t.y;for(var o="M",r=0;r<=16;r++){var n=r/16,a=this.getBezierPoint(n,i,0,2);o+=a.x+","+a.y,16!==r&&(o+=" L")}return o},o.prototype.getBezierPoint=function(e,t,i,o){if(1===o)return t[i];var r=this.getBezierPoint(e,t,i,o-1),n=this.getBezierPoint(e,t,i+1,o-1),a=(r.x,r.x),l=(r.y,r.y),s=(1-e)*a+e*(n.x,n.x),h=(1-e)*l+e*(n.y,n.y);return r.x,{x:s,y:h}},o.prototype.getEdgeOfLabel=function(e,t,i,o,r){void 0===o&&(o=1);var n=new mo(e.x,e.y);return t>=90&&t<=270?(n.x+=e.width+o/2+10,n.y+=e.height/2,i.x=n.x+10,i.y=n.y):r&&r.region&&r.region.x>r.labelRegion.x?(n.x+=2*o+e.width+10,n.y+=e.height/2,i.x=n.x+10,i.y=n.y):(n.x-=10-o/2,n.y+=e.height/2,i.x=n.x-10,i.y=n.y),n},o.prototype.getLabelDistance=function(e,t){if(e.labelPosition&&t.position!==e.labelPosition||t.connectorStyle.length&&"Outside"===t.position){var i=Ne(t.connectorStyle.length||"70px",this.accumulation.initialClipRect.width);if(i<this.accumulation.initialClipRect.width)return i}var o,r=e.labelPosition||t.position,n=this.accumulation.visibleSeries[0],a=(this.accumulation.initialClipRect.width-n.triangleSize.width)/2;switch(r){case"Inside":return 0;case"Outside":return o=e.symbolLocation.x+e.labelOffset.x,this.accumulation.initialClipRect.width-o-a}},o.prototype.getLabelLocation=function(e,t){if(void 0===t&&(t="Outside"),"Pie"!==this.accumulation.type&&"Trapezoidal"!==this.accumulation.series[0].funnelMode){t="OutsideLeft"===t?"OutsideLeft":e.labelPosition||t;var i={x:e.symbolLocation.x,y:e.symbolLocation.y-e.labelOffset.y};switch(t){case"Inside":i.y=e.region.y+e.region.height/2;break;case"Outside":i.x+=e.labelOffset.x;break;case"OutsideLeft":i.x-=e.labelOffset.x}return i}if("Trapezoidal"===this.accumulation.series[0].funnelMode&&"Funnel"===this.accumulation.type){var o={x:e.symbolLocation.x,y:e.symbolLocation.y};return"Outside"===t&&(o.x=e.labelOffset.x),o}return L(e.midAngle,this.isVariousRadius()?Ne(e.sliceRadius,this.accumulation.pieSeriesModule.seriesRadius):this.radius,this.center)},o.prototype.getConnectorStartPoint=function(e,t){var i;return!this.isCircular()&&e.region.x>e.labelRegion.x&&(i="OutsideLeft"),this.isCircular()?L(e.midAngle,(this.isVariousRadius()?Ne(e.sliceRadius,this.accumulation.pieSeriesModule.seriesRadius):this.radius)-t.width,this.center):this.getLabelLocation(e,i)},o.prototype.findAreaRect=function(){this.areaRect=new i.Rect(0,0,this.accumulation.availableSize.width,this.accumulation.availableSize.height);var e=this.accumulation.margin;F(this.areaRect,new fo(e.left,e.right,e.top,e.bottom))},o.prototype.renderDataLabel=function(e,i,o,r,n,a,l){var s=this.accumulation.element.id+"_datalabel_Series_"+n+"_",h=this.accumulation.renderer.createGroup({id:s+"g_"+e.index}),c={width:i.border.width,color:i.border.color},d=t.extend({},t.getValue("properties",i.font),null,!0);e.label=this.getDatalabelText(i.format,this.accumulation,e.originalText||e.y.toString());var p={cancel:!1,name:"textRender",series:this.accumulation.visibleSeries[0],point:e,text:e.label,border:c,color:i.fill,template:this.accumulation.enableHtmlSanitizer?this.accumulation.sanitize(i.template):i.template,font:d};this.accumulation.trigger("textRender",p),e.argsData=p;var u=null!==p.template;e.labelVisible=!p.cancel,e.text=e.label=p.text,e.labelCollection=[],this.marginValue=p.border.width?5+p.border.width:1;var g=t.createElement("div",{id:this.accumulation.element.id+"_Series_0_DataLabel_"+e.index,styles:"position: absolute;background-color:"+p.color+";"+ge(i.font,this.accumulation.themeStyle.datalabelFont)+";border:"+p.border.width+"px solid "+p.border.color+";"});this.calculateLabelSize(u,g,e,r,p,h,s,i,l)},o.prototype.getDatalabelText=function(e,t,i){if(Number(i)){var o=null!==e.match("{value}"),r=t.intl.getNumberFormat({format:o?"":e,useGrouping:t.useGroupingSeparator});i=o?e.replace("{value}",r(parseFloat(i))):r(parseFloat(i))}return i},o.prototype.calculateLabelSize=function(e,t,i,o,r,n,a,l,s,h,c){this.calculateLabelCollection(i,l);var d=e?c?{width:h.width,height:h.height}:this.getTemplateSize(t,i,r,s,e,o,n,a,l):this.getTextSize(i.labelCollection,l);d.height+=4,d.width+=4,i.textSize=d,i.templateElement=t,this.getDataLabelPosition(i,l,d,o),i.labelRegion&&this.correctLabelRegion(i.labelRegion,i.textSize)},o.prototype.drawDataLabels=function(e,o,r,n,a){var l,s,h=e.leftSidePoints.concat(e.rightSidePoints);h.sort(function(e,t){return e.index-t.index}),"Pie"===e.type&&this.accumulation.enableSmartLabels&&this.extendedLabelsCalculation();for(var c=0,d=h;c<d.length;c++){var p=d[c];if(!t.isNullOrUndefined(p.argsData)&&!t.isNullOrUndefined(p.y)){this.finalizeDatalabels(p,h,o);var u=document.getElementById(this.accumulation.element.id+"_Series_0_Point_"+p.index),g=this.accumulation.element.id+"_datalabel_Series_0_",m=this.accumulation.renderer.createGroup({id:g+"g_"+p.index});m.setAttribute("aria-hidden","true");var y=void 0,f=void 0;if(p.visible&&p.labelVisible){if(l=s=o.angle,p.argsData.template)this.setTemplateStyle(p.templateElement,p,n,o.font.color,p.color,a);else{y=new mo(p.labelRegion.x+this.marginValue,p.labelRegion.y+3*p.textSize.height/(4*p.labelCollection.length)+this.marginValue);var v=(f=he(g+"shape_"+p.index))?new mo(+f.getAttribute("x"),+f.getAttribute("y")):null,b=p.textSize.width,x="rotate("+(s=o.enableRotation?0===l?"Outside"===p.labelPosition?0:p.midAngle>=90&&p.midAngle<=260?p.midAngle+180:p.midAngle:l>360?l-360:l<-360?l+360:l:0)+","+(y.x+b/2)+","+y.y+")";p.transform=x,be(!1,m,this.accumulation.renderer.drawRectangle(new co(g+"shape_"+p.index,p.argsData.color,p.argsData.border,1,p.labelRegion,o.rx,o.ry,x,e.dataLabel.border.dashArray)),a,!0,"x","y",v,null,!1,!1,null,this.accumulation.duration),je(this.accumulation.renderer,new i.TextOption(g+"text_"+p.index,y.x,y.y,this.accumulation.enableRtl?"end":"start",p.labelCollection,x,"auto",s),p.argsData.font,p.argsData.font.color||this.getSaturatedColor(p,p.argsData.color),m,!1,a,!0,!1,this.accumulation.duration,null,null,null,null,!0,this.accumulation.themeStyle.datalabelFont),f=null}if(u&&"None"!==this.accumulation.highlightMode){m.setAttribute("class",u.getAttribute("class")?u.getAttribute("class"):"");for(var S=0;S<m.children.length;S++){var C=document.getElementById(m.children[S].id);C&&(m.children[S].style.opacity=C.style.opacity)}}if(this.accumulation.accumulationLegendModule&&this.accumulation.legendSettings.visible&&!this.accumulation.redraw&&("Outside"===o.position||this.accumulation.enableSmartLabels)&&this.accumulation.visibleSeries[0].findMaxBounds(this.accumulation.visibleSeries[0].labelBound,p.labelRegion),"Outside"===p.labelPosition){var F=he(g+"connector_"+p.index),w=F?F.getAttribute("d"):"";be(!1,m,this.accumulation.renderer.drawPath(new i.PathOption(g+"connector_"+p.index,"transparent",o.connectorStyle.width,o.connectorStyle.color||p.color,1,o.connectorStyle.dashArray,this.getConnectorPath(t.extend({},p.labelRegion,null,!0),p,o,p.labelAngle))),a,!0,null,null,null,w,!1,!1,null,this.accumulation.duration)}be(!1,r,m,a)}else he(m.id)&&he(m.id).parentNode.removeChild(he(m.id))}}"Pie"===this.accumulation.type&&"Normal"===o.textWrap&&"Clip"===o.textOverflow&&this.dataLabelClipPath(o,r)},o.prototype.dataLabelClipPath=function(e,t){var o,r=this.accumulation.element.id+"_datalabel_Series_0_",n=this.accumulation.renderer.createClipPath({id:r+"clipPath"}),a=this.accumulation.pieSeriesModule.pieBaseRadius;if("Inside"===e.position)o=this.accumulation.renderer.drawCircle(new uo(r+"clipPath_rect","transparent",{width:0},0,this.center.x,this.center.y,a));else if(e.maxWidth){var l=this.center.x-a-Ne(e.connectorStyle.length||"4%",a)-e.maxWidth,s=this.center.y-a-Ne(e.connectorStyle.length||"4%",a)-e.maxWidth,h=2*(a+Ne(e.connectorStyle.length||"4%",a)+e.maxWidth),c=h;if(this.accumulation.legendSettings.visible){var d=this.accumulation.accumulationLegendModule;"Left"===d.position?(c=d.legendBounds.x+d.legendBounds.width-l>0?c-(d.legendBounds.width-l):c,l=d.legendBounds.x+d.legendBounds.width<l?l:d.legendBounds.x+d.legendBounds.width):"Right"===d.position&&(c=l+c-d.legendBounds.x>0?c-(l+c-d.legendBounds.x):c)}o=this.accumulation.renderer.drawRectangle(new co(r+"clipPath_rect","transparent",{width:0},0,new i.Rect(l,s,h,c),0,0))}("Inside"===e.position||e.maxWidth)&&(n.appendChild(o),be(!1,this.accumulation.svgObject,n),t.style.cssText="clip-path:url(#"+n.id+")")},o.prototype.finalizeDatalabels=function(e,t,o){if((this.isOverlapping(e,t)||this.titleRect&&e.labelRegion&&Le(e.labelRegion,this.titleRect))&&this.isCircular()&&"Outside"===e.labelPosition&&this.accumulation.enableSmartLabels&&this.setPointVisibileFalse(e),this.accumulation.accumulationLegendModule&&this.accumulation.legendSettings.visible&&e.labelVisible&&e.labelRegion&&!o.maxWidth&&("Clip"!==o.textOverflow||"Normal"!==o.textWrap)){var r=this.accumulation.accumulationLegendModule.legendBounds;"Pie"!==this.accumulation.visibleSeries[0].type&&"Left"===this.accumulation.legendSettings.position&&"Outside"===o.position&&(e.labelRegion.x=e.labelRegion.x+r.width);var n=this.accumulation.legendSettings.border.width/2;this.textTrimming(e,new i.Rect(r.x-n,r.y-n,r.width+2*n,r.height+2*n),o.font,this.accumulation.accumulationLegendModule.position,o)}if(e.labelVisible&&e.labelRegion&&!o.maxWidth&&("Clip"!==o.textOverflow||"Normal"!==o.textWrap)){var a=this.isCircular()?e.labelRegion.x>=this.center.x?"InsideRight":"InsideLeft":e.labelRegion.x>=e.region.x?"InsideRight":"InsideLeft";this.textTrimming(e,this.areaRect,o.font,a,o)}e.labelVisible&&e.labelRegion&&!o.maxWidth&&"Clip"!==o.textOverflow&&this.accumulation.enableSmartLabels&&(e.labelRegion.y+e.labelRegion.height/2>this.areaRect.y+this.areaRect.height||e.labelRegion.y<this.areaRect.y||e.labelRegion.x<this.areaRect.x||e.labelRegion.x+e.labelRegion.width>this.areaRect.x+this.areaRect.width)&&this.setPointVisibileFalse(e)},o.prototype.getTemplateSize=function(e,t,i,o,r,n,a,l,s){var h=me(e=ue(e,t.index,i.template,this.accumulation,t,this.accumulation.visibleSeries[0],this.accumulation.element.id+"_DataLabel",0,i,r,n,a,l,s,o),o);return{width:h.width,height:h.height}},o.prototype.setTemplateStyle=function(e,t,i,o,r,n){e.style.left=t.labelRegion.x+"px",e.style.top=t.labelRegion.y+"px",e.style.color=o||this.getSaturatedColor(t,"Inside"===t.labelPosition?r:this.getLabelBackground(t)),e.childElementCount&&(be(!1,i,e,n,!0,"left","top"),this.doTemplateAnimation(this.accumulation,e))},o.prototype.getSaturatedColor=function(e,t){var i,o=ke(Re(i="transparent"===(i=this.marginValue>=1?"transparent"===t?this.getLabelBackground(e):t:this.getLabelBackground(e))?this.accumulation.theme.indexOf("Dark")>-1||this.accumulation.theme.indexOf("HighContrast")>-1?"black":"white":i)),r=Math.round((299*o.r+587*o.g+114*o.b)/1e3);return"Bootstrap5"===this.accumulation.theme?"#212529":"Bootstrap5Dark"===this.accumulation.theme?"#DEE2E6":r>=128?this.accumulation.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.accumulation.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"},o.prototype.doTemplateAnimation=function(e,i){var o=e.visibleSeries[0],r=o.animation.delay+o.animation.duration;(o.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&(i.style.visibility="hidden",re(i,r,200,"ZoomIn"))},o.prototype.getLabelBackground=function(e){return"Outside"===e.labelPosition?this.accumulation.background||this.accumulation.themeStyle.background:e.y?e.color:this.accumulation.theme.indexOf("dark")?"white":"black"},o.prototype.correctLabelRegion=function(e,t,i){void 0===i&&(i=4),e.height-=i,e.width-=i,e.x+=i/2,e.y+=i/2,t.height-=i,t.width-=i},o.prototype.getModuleName=function(){return"AccumulationDataLabel"},o.prototype.destroy=function(){},o.prototype.extendedLabelsCalculation=function(){var e=this,t=this.accumulation.series[0];t.rightSidePoints.forEach(function(t,i,o){t.initialLabelRegion=t.labelRegion,t.isLabelUpdated=0,e.skipPoints(t,o,i)}),t.leftSidePoints.forEach(function(t,i,o){t.initialLabelRegion=t.labelRegion,t.isLabelUpdated=0,e.skipPoints(t,o,i)}),this.arrangeLeftSidePoints(t),this.isIncreaseAngle=!1,this.arrangeRightSidePoints(t)},o.prototype.arrangeRightSidePoints=function(e){var t,i,o=e.rightSidePoints.filter(function(e){return e.labelVisible&&"Outside"===e.labelPosition});this.rightSideRenderingPoints=o;var r,n,a,l=o[o.length-1];l&&l.labelAngle>90&&l.labelAngle<270&&(this.isIncreaseAngle=!0,this.changeLabelAngle(l,89));for(var s=o.length-1;s>=0;s--)if(n=o[s],a=o[s+1],this.isOverlapWithNext(n,o,s)&&n.labelVisible||!(n.labelAngle<=90||n.labelAngle>=270))if(r=l.labelAngle+10,i=!0,t?this.isIncreaseAngle=!1:r>90&&r<270&&a.isLabelUpdated&&(this.isIncreaseAngle=!0),this.isIncreaseAngle)for(h=s+1;h>0;h--)this.decreaseAngle(o[h],o[h-1],e,!0);else for(var h=s+1;h<o.length;h++)this.increaseAngle(o[h-1],o[h],e,!0);else i&&a&&!a.isLabelUpdated&&(t=!0)},o.prototype.arrangeLeftSidePoints=function(e){var t=this,i=e.leftSidePoints.filter(function(e){return e.labelVisible&&"Outside"===e.labelPosition});this.leftSideRenderingPoints=i;for(var o,r,n,a,l=0;l<i.length;l++)if(r=i[l],o=i[l-1],this.isOverlapWithPrevious(r,i,l)&&r.labelVisible||!(r.labelAngle<270))if(n=!0,a&&(this.isIncreaseAngle=!1),this.isIncreaseAngle)for(s=l;s<i.length;s++)this.increaseAngle(i[s-1],i[s],e,!1);else for(var s=l;s>0;s--)this.decreaseAngle(i[s],i[s-1],e,!1),i.filter(function(e,o){e.isLabelUpdated&&i[o].labelAngle-10<100&&(t.isIncreaseAngle=!0)});else n&&o&&o.isLabelUpdated&&(a=!0)},o.prototype.decreaseAngle=function(e,i,o,r){if(t.isNullOrUndefined(e)||t.isNullOrUndefined(i))return null;var n=1;if(r)for(;Le(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&!(i.labelRegion.height+i.labelRegion.y<e.labelRegion.y);){if((a=i.midAngle-n)<0&&(a=360+a),a<=270&&a>=90){a=270,this.isIncreaseAngle=!0;break}this.changeLabelAngle(i,a),n++}else for(e.labelAngle>270&&(this.changeLabelAngle(e,270),i.labelAngle=270);Le(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&e.labelRegion.y+e.labelRegion.height>i.labelRegion.y;){var a=i.midAngle-n;if(!(a<=270&&a>=90)){a=90,this.isIncreaseAngle=!0;break}if(this.changeLabelAngle(i,a),Le(e.labelRegion,i.labelRegion)&&!o.leftSidePoints.indexOf(i)&&a-1<90&&a-1>270){this.changeLabelAngle(e,e.labelAngle+1),this.arrangeLeftSidePoints(o);break}n++}},o.prototype.increaseAngle=function(e,i,o,r){if(t.isNullOrUndefined(e)||t.isNullOrUndefined(i))return null;var n=1;if(r)for(;Le(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&!(e.labelRegion.y+e.labelRegion.height<i.labelRegion.y);){if((a=i.midAngle+n)<270&&a>90){a=90,this.isIncreaseAngle=!0;break}if(this.changeLabelAngle(i,a),Le(e.labelRegion,i.labelRegion)&&a+1>90&&a+1<270&&this.rightSideRenderingPoints.indexOf(i)===this.rightSideRenderingPoints.length-1){this.changeLabelAngle(e,e.labelAngle-1),i.labelRegion=i.initialLabelRegion,this.arrangeRightSidePoints(o);break}if(n>360)break;n++}else for(;Le(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&e.labelRegion.y<i.labelRegion.y+i.labelRegion.height;){var a=i.midAngle+n;if(!(a<270&&a>90)){a=270,this.isIncreaseAngle=!1;break}if(this.changeLabelAngle(i,a),n>360)break;n++}},o.prototype.changeLabelAngle=function(e,t){var i,o=this.accumulation.series[0].dataLabel;this.isVariousRadius()&&(i=this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e));var r="Outside"===e.labelPosition&&this.accumulation.enableSmartLabels&&"Inside"===o.position?this.radius+Ne(o.connectorStyle.length||"4%",this.accumulation.pieSeriesModule.size/2):this.isVariousRadius()?i:this.accumulation.pieSeriesModule.labelRadius+10,n=this.isVariousRadius()?i:r;this.getLabelRegion(e,"Outside",e.textSize,n,this.marginValue,t),e.isLabelUpdated=1,e.labelAngle=t},o.prototype.isOverlapWithPrevious=function(e,t,i){for(var o=0;o<i;o++)if(o!==t.indexOf(e)&&t[o].visible&&t[o].labelVisible&&t[o].labelRegion&&e.labelRegion&&e.labelVisible&&Le(e.labelRegion,t[o].labelRegion))return!0;return!1},o.prototype.isOverlapWithNext=function(e,t,i){for(var o=i;o<t.length;o++)if(o!==t.indexOf(e)&&t[o].visible&&t[o].labelVisible&&t[o].labelRegion&&e.labelRegion&&e.labelVisible&&Le(e.labelRegion,t[o].labelRegion))return!0;return!1},o.prototype.skipPoints=function(e,t,i){if(i>0&&(e.midAngle<285&&e.midAngle>255||e.midAngle<105&&e.midAngle>75)){var o=t[i-1],r=e.endAngle%360-e.startAngle%360;(l=o.endAngle%360-o.startAngle%360)<=r&&r<5&&o.labelVisible&&this.setPointVisibleTrue(e)}else if(i>1&&(e.midAngle<300&&e.midAngle>240||e.midAngle<120&&e.midAngle>60)){var n=t[i-1],a=t[i-2],r=e.endAngle%360-e.startAngle%360,l=n.endAngle%360-n.startAngle%360,s=a.endAngle%360-a.startAngle%360;r<3&&l<3&&s<3&&n.labelVisible&&e.labelVisible&&this.setPointVisibleTrue(e)}},o.prototype.getPerpendicularDistance=function(e,t){var i=10+10*Math.sin(t.midAngle*Math.PI/360);return t.midAngle>270&&t.midAngle<360?new mo(e.x+i*Math.cos((360-t.midAngle)*Math.PI/180),e.y-i*Math.sin((360-t.midAngle)*Math.PI/180)):t.midAngle>0&&t.midAngle<90?new mo(e.x+i*Math.cos(t.midAngle*Math.PI/180),e.y+i*Math.sin(t.midAngle*Math.PI/180)):t.midAngle>0&&t.midAngle<90?new mo(e.x-i*Math.cos((t.midAngle-90)*Math.PI/180),e.y+i*Math.sin((t.midAngle-90)*Math.PI/180)):new mo(e.x-i*Math.cos((t.midAngle-180)*Math.PI/180),e.y-i*Math.sin((t.midAngle-180)*Math.PI/180))},o}(Ta),Qa=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$a=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.addEventListener(),i.template=i.accumulation.tooltip.template,i}return Qa(i,e),i.prototype.addEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeaveHandler,this),this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.accumulation.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},i.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.accumulation.tooltip.fadeOutDuration)},i.prototype.mouseUpHandler=function(e){var t=this.accumulation;t.tooltip.enable&&t.isTouch&&V(t.mouseX,t.mouseY,t.initialClipRect)&&(this.tooltip(e),this.removeTooltip(2e3))},i.prototype.mouseMoveHandler=function(e){var t=this.accumulation;t.tooltip.enable&&V(t.mouseX,t.mouseY,t.initialClipRect)&&this.tooltip(e)},i.prototype.tooltip=function(e){this.renderSeriesTooltip(this.accumulation,this.getPieData(e,this.accumulation))},i.prototype.renderSeriesTooltip=function(e,t){var i=this.getElement(this.element.id+"_tooltip_svg"),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o),n=!o;if(this.currentPoints=[],!t.point||this.previousPoints[0]&&this.previousPoints[0].point===t.point)!t.point&&this.isRemove&&(this.removeTooltip(this.accumulation.tooltip.fadeOutDuration),this.isRemove=!1);else{if(this.previousPoints[0]&&t.point.index===this.previousPoints[0].point.index&&t.series.index===this.previousPoints[0].series.index)return null;this.pushData(t,n,r,!1)&&this.triggerTooltipRender(t,n,this.getTooltipText(t,e.tooltip),this.findHeader(t))}},i.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a=this.chart.tooltip,l={cancel:!1,name:"tooltipRender",text:o,point:e.point,textStyle:this.textStyle,series:e.series,headerText:r,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,pointIndex:e.point.index,pointText:e.point.text,seriesName:e.series.name}},s=function(o){o.cancel?(n.removeHighlight(),t.remove(n.getElement(n.element.id+"_tooltip"))):(n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText,n.headerText=o.headerText,n.createTooltip(n.chart,i,{x:null!==a.location.x?a.location.x:e.point.symbolLocation.x,y:null!==a.location.y?a.location.y:e.point.symbolLocation.y},e.series.clipRect,e.point,a.enableMarker?["Circle"]:[],0,n.chart.initialClipRect,!1,null,e.point,n.template?n.accumulation.enableHtmlSanitizer?n.accumulation.sanitize(n.template):o.template:"")),n.isRemove=!0};s.bind(this,e),this.chart.trigger("tooltipRender",l,s)},i.prototype.getPieData=function(e,i){var o=_(e.target.id,!0);if(!isNaN(o.series)){var r=o.series,n=o.point;if(!(t.isNullOrUndefined(r)||isNaN(r)||t.isNullOrUndefined(n)||isNaN(n))){var a=this.getSeriesFromIndex(r,i.visibleSeries);if(a.enableTooltip)return new xo(a.points[n],a)}}return new xo(null,null)},i.prototype.getSeriesFromIndex=function(e,t){return t[0]},i.prototype.getTooltipText=function(e,t){var i=e.series,o=t.format?t.format:this.accumulation.theme.indexOf("Tailwind3")>-1?"${point.x} : ${point.y}":"${point.x} : <b>${point.y}</b>";return o=this.accumulation.useGroupingSeparator?o.replace("${point.y}","${point.separatorY}"):o,this.parseTemplate(e.point,i,o)},i.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},i.prototype.parseTemplate=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++){o=new n("${point."+(d=l[a])+"}","gm");var s="x"===d&&this.accumulation.useGroupingSeparator&&"number"==typeof e[d]?this.accumulation.intl.formatNumber(e.x,{useGrouping:!0}):e[d];i=i.replace(o.source,s)}for(var h=0,c=Object.keys(Object.getPrototypeOf(t));h<c.length;h++){var d=c[h];o=new n("${series."+d+"}","gm"),r=t[d],i=i.replace(o.source,r)}return i},i.prototype.getModuleName=function(){return"AccumulationTooltip"},i.prototype.destroy=function(){},i}(Qn),Ka=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ja=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.renderer=t.renderer,i.addEventListener(),i}return Ka(i,e),i.prototype.addEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.accumulation.on("click",this.mouseClick,this))},i.prototype.removeEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.off(t.Browser.touchMoveEvent,this.mouseMove),this.accumulation.off("click",this.mouseClick))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.rectPoints=null},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes),e)},i.prototype.generateStyle=function(e,t){return e.selectionStyle||this.styleId+"_series_"+e.index+"_point_"+t},i.prototype.findElements=function(e,t,i){return[this.getElementByIndex(i)]},i.prototype.getElementByIndex=function(e){var t=this.control.element.id+"_Series_"+e.series+"_Point_"+e.point;return document.getElementById(t)},i.prototype.isAlreadySelected=function(e,t){if("mousemove"===t?(this.currentMode=this.accumulation.highlightMode,this.highlightDataIndexes=[],this.styleId=this.accumulation.element.id+"_ej2_chart_highlight"):"click"===t&&(this.currentMode=this.accumulation.selectionMode,this.styleId=this.accumulation.element.id+"_ej2_chart_selection"),"None"!==this.accumulation.highlightMode&&"None"===this.accumulation.selectionMode&&"click"===t)return!1;if("None"!==this.accumulation.highlightMode&&this.previousSelectedElement&&this.previousSelectedElement[0]){var i=e.parentNode.id,o=void 0;e.parentNode&&(o=i.indexOf("SeriesGroup")>0||i.indexOf("SymbolGroup")>0);for(var r=0;r<this.previousSelectedElement.length;r++)this.previousSelectedElement[r].hasAttribute("class")&&(this.previousSelectedElement[r].getAttribute("class").indexOf("highlight")>-1&&(o||"click"===t)?(this.previousSelectedElement[r].removeAttribute("class"),this.addOrRemoveIndex(this.highlightDataIndexes,_(this.previousSelectedElement[r].id))):!o&&this.previousSelectedElement[r].getAttribute("class").indexOf("highlight")>-1&&this.performSelection(_(this.previousSelectedElement[r].id),this.accumulation,this.previousSelectedElement[r]))}return!0},i.prototype.mouseClick=function(e,t){this.calculateSelectedElements(e,t.target,t.type)},i.prototype.calculateSelectedElements=function(e,i,o){if(!t.isNullOrUndefined(i)&&("None"!==e.highlightMode||"None"!==e.selectionMode)&&-1!==i.id.indexOf(e.element.id+"_")&&("mousemove"!==o||t.isNullOrUndefined(i.parentNode)||!i.parentNode.hasAttribute("class")||!(i.parentNode.getAttribute("class").indexOf("highlight")>0||i.parentNode.getAttribute("class").indexOf("selection")>0))&&!(i.getAttribute("id").indexOf("_connector_")>-1)){if(this.isAlreadySelected(i,o),"Point"===this.accumulation.selectionMode&&"mousemove"===o&&this.accumulation.accumulationLegendModule&&this.accumulation.accumulationHighlightModule.highlightDataIndexes&&this.accumulation.accumulationHighlightModule.highlightDataIndexes.length>0&&-1===i.id.indexOf("_chart_legend_")&&-1===i.id.indexOf("_Series_"))for(var r=0;r<this.accumulation.accumulationHighlightModule.previousSelectedElement.length;r++)this.removeStyles(this.accumulation.accumulationHighlightModule.previousSelectedElement,_(this.accumulation.accumulationHighlightModule.previousSelectedElement[r].id)),this.blurEffect(this.accumulation.element.id,this.accumulation.visibleSeries);(i.id.indexOf("_Series_")>-1||i.id.indexOf("_datalabel_")>-1)&&this.performSelection(_(i.id),e,i)}},i.prototype.performSelection=function(e,t,i){switch(i=i.id.indexOf("datalabel")>-1?t.getSeriesElement().childNodes[e.series].childNodes[e.point]:i,this.currentMode){case"Point":if(!isNaN(e.point)){var o=document.getElementById(t.element.id+"_datalabel_Series_"+e.series+"_g_"+e.point);this.series[0].dataLabel.visible&&o&&(o.setAttribute("class",i&&i.hasAttribute("class")?i.getAttribute("class"):o.hasAttribute("class")?o.getAttribute("class"):""),this.selection(t,e,[o])),this.selection(t,e,[i]),this.selectionComplete(t,t.series[0]),this.blurEffect(t.element.id,t.visibleSeries)}}},i.prototype.selectionComplete=function(e,t){for(var i,o=[],r=0;r<this.selectedDataIndexes.length;r++)i=this.selectedDataIndexes[r].point,isNaN(i)||o.push({x:t.dataSource[i][t.xName],y:t.points[i].y,seriesIndex:this.selectedDataIndexes[r].series,pointIndex:i});var n={name:"selectionComplete",selectedDataValues:o,cancel:!1};e.trigger("selectionComplete",n)},i.prototype.selection=function(e,i,o){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectEelments(e,this.selectedDataIndexes,i,e.series);var r=o[0]&&(o[0].getAttribute("class")||"");if(o[0]&&r.indexOf(this.getSelectionClass(o[0].id,i.point))>-1){if(this.removeStyles(o,i),this.styleId.indexOf("highlight")>0&&"None"!==e.highlightMode?this.addOrRemoveIndex(this.highlightDataIndexes,i):this.addOrRemoveIndex(this.selectedDataIndexes,i),e.enableBorderOnMouseMove&&-1===o[0].id.indexOf("datalabel")){n=document.getElementById(o[0].id.split("_")[0]+"PointHover_Border");t.isNullOrUndefined(n)||this.removeSvgClass(n,n.getAttribute("class"))}}else{if(this.previousSelectedElement="None"!==e.highlightMode?o:[],o[0]&&r.indexOf("selection")<0&&this.applyStyles(o,i),e.enableBorderOnMouseMove&&-1===o[0].id.indexOf("datalabel")){var n=document.getElementById(o[0].id.split("_")[0]+"PointHover_Border");t.isNullOrUndefined(n)||(this.removeSvgClass(n,n.getAttribute("class")),this.addSvgClass(n,o[0].getAttribute("class")))}this.styleId.indexOf("highlight")>0&&"None"!==e.highlightMode?this.addOrRemoveIndex(this.highlightDataIndexes,i,!0):this.addOrRemoveIndex(this.selectedDataIndexes,i,!0)}},i.prototype.redrawSelection=function(e){var i=t.extend([],this.selectedDataIndexes,null,!0),o=t.extend([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&o.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes),i=o):this.removeSelectedElements(e,this.selectedDataIndexes),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(i,e)},i.prototype.removeSelectedElements=function(e,t){for(var i=0,o=t;i<o.length;i++){a=o[i];this.removeStyles([this.getElementByIndex(a)],a)}for(var r=e.visibleSeries[0].points,n=0;n<r.length;n++){var a=new Pi(0,r[n].index);this.removeStyles([this.getElementByIndex(a)],a),e.visibleSeries[0].dataLabel.visible&&this.removeStyles([document.getElementById(e.element.id+"_datalabel_Series_0_g_"+r[n].index)],a)}},i.prototype.legendSelection=function(e,t,i,o,r){if("mousemove"===r){if(o.id.indexOf("text")>1&&(o=he(o.id.replace("text","shape"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.accumulation.highlightMode}if(this.isAlreadySelected(o,r)){var n=e.getSeriesElement().childNodes[t].childNodes[i],a=document.getElementById(e.element.id+"_datalabel_Series_"+t+"_g_"+i);this.series[0].dataLabel.visible&&a&&this.selection(e,new Pi(t,i),[a]),this.selection(e,new Pi(t,i),[n]),this.blurEffect(e.element.id,e.visibleSeries)}},i.prototype.selectDataIndex=function(e,t){for(var i,o=0,r=e;o<r.length;o++){var n=r[o];(i=this.getElementByIndex(n))&&this.performSelection(n,t,i)}},i.prototype.removeMultiSelectEelments=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],this.checkEquals(t[n],i)||(this.removeStyles(this.findElements(e,r,t[n]),t[n]),r.dataLabel.visible&&this.removeStyles([document.getElementById(e.element.id+"_datalabel_Series_0_g_"+t[n].point)],t[n]),t.splice(n,1),n--)},i.prototype.blurEffect=function(e,t){for(var i=this.checkVisibility(this.highlightDataIndexes)||this.checkVisibility(this.selectedDataIndexes),o=0,r=t;o<r.length;o++){var n=r[o];n.visible&&this.checkSelectionElements(document.getElementById(e+"_SeriesCollection"),this.generateStyle(n),i)}},i.prototype.checkSelectionElements=function(e,t,i){var o=[];e.childNodes[0].childNodes.forEach(function(e){return o.push(e)});var r=document.getElementById(this.control.element.id+"_datalabel_Series_0");r&&r.childNodes.forEach(function(e){return o.push(e)});for(var n,a,l,s=0;s<o.length;s++)a=o[s].getAttribute("class")||"",l=o[s].parentNode.getAttribute("class")||"","None"===this.accumulation.selectionMode&&"None"===this.accumulation.highlightMode||(t=a.indexOf("selection")>0||a.indexOf("highlight")>0?a:t,t=l.indexOf("selection")>0||l.indexOf("highlight")>0?l:t),-1===a.indexOf(t)&&-1===l.indexOf(t)&&i?this.addSvgClass(o[s],this.unselected):this.removeSvgClass(o[s],this.unselected),-1===a.indexOf(t)&&-1===l.indexOf(t)&&i?this.addSvgClass(o[s],this.unselected):(this.removeSvgClass(o[s],this.unselected),this.removeSvgClass(o[s].parentNode,this.unselected)),this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(n=document.getElementById(this.control.element.id+"_chart_legend_shape_"+s))&&(-1===a.indexOf(t)&&-1===l.indexOf(t)&&i?this.addSvgClass(n,this.unselected):this.removeSvgClass(n,this.unselected))},i.prototype.applyStyles=function(e,t){for(var i=this.control.accumulationTooltipModule,o=0,r=e;o<r.length;o++){var n=r[o],a=void 0;if(n){this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(a=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point),this.removeSvgClass(a,a.getAttribute("class")),this.addSvgClass(a,this.getSelectionClass(a.id,t.point))),this.removeSvgClass(n.parentNode,this.unselected),this.removeSvgClass(n,this.unselected);var l=i&&i.previousPoints.length>0&&i.previousPoints[0].point.index!==t.point?i.svgTooltip.opacity:this.series[t.series].opacity;n.setAttribute("opacity",l.toString()),this.addSvgClass(n,this.getSelectionClass(n.id,t.point))}}},i.prototype.getSelectionClass=function(e,t){return this.generateStyle(this.control.series[_(e).series],t)},i.prototype.removeStyles=function(e,t){for(var i,o=this.control.accumulationTooltipModule,r=0,n=e;r<n.length;r++){var a=n[r];if(a){this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(i=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point),this.removeSvgClass(i,this.getSelectionClass(i.id,t.point)));var l=o&&o.previousPoints.length>0&&o.previousPoints[0].point.index===t.point?o.svgTooltip.opacity:this.series[t.series].opacity;a.setAttribute("opacity",l.toString()),this.removeSvgClass(a,this.getSelectionClass(a.id,t.point))}}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.checkEquals(e[o],t)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.checkEquals=function(e,t){return e.point===t.point&&e.series===t.series},i.prototype.mouseMove=function(e){var i=this.accumulation,o=e.target;if("None"!==i.highlightMode&&!t.isNullOrUndefined(o)){if(e.target.id.indexOf("text")>1&&(o=he(e.target.id.replace("text","shape"))),o.hasAttribute("class")&&o.getAttribute("class").indexOf("highlight")>-1)return;return void this.calculateSelectedElements(i,e.target,e.type)}i.selectionMode},i.prototype.getModuleName=function(){return"AccumulationSelection"},i.prototype.destroy=function(){this.removeEventListener()},i}(Gn),el=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),tl=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.renderer=t.renderer,i.wireEvents(),i}return el(i,e),i.prototype.wireEvents=function(){this.accumulation.isDestroyed||this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.accumulation.isDestroyed||this.accumulation.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[]},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"AccumulationHighlight"},i.prototype.destroy=function(){this.unWireEvents()},i}(Ja),il=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ol=function(e){function i(t){var i=e.call(this,t)||this;return i.pie=t,i}return il(i,e),i.prototype.renderAnnotations=function(e){var i=this;this.annotations=this.pie.annotations;var o=this.pie.redraw;this.parentElement=Ve(o,this.pie.element.id+"_Annotation_Collections")||t.createElement("div",{id:this.pie.element.id+"_Annotation_Collections"}),this.annotations.map(function(e,t){i.processAnnotation(e,t,i.parentElement)}),this.pie.series[0].animation.enable&&"Pie"===this.pie.series[0].type&&this.pie.animateSeries&&(this.parentElement.style.visibility="hidden"),ve(this.parentElement,e,o)},i.prototype.getModuleName=function(){return"Annotation"},i.prototype.destroy=function(){},i}(ha),rl=function(){function e(e,t,i,o,r){void 0===r&&(r=!0),this.x=e,this.y=t,this.xValue=i,this.visible=r}return e}(),nl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),al=function(e){function r(t){var i=e.call(this)||this;return i.dataSource=t.dataSource,i.xName=t.xName,i.yName=t.yName,i.query=t.query,i.xMin=1/0,i.xMax=-1/0,i.yMin=1/0,i.yMax=-1/0,i.labels=[],i.indexLabels={},i}return nl(r,e),r.prototype.renderChart=function(e){var t,i,o=this;this.seriesLength=0,e.rangeSlider.points=[],e.series.length?e.series.map(function(r){t=r.dataSource||e.dataSource,i=r.query||e.query,r.points=[],o.processDataSource(t,i,e,r)}):this.processDataSource(e.dataSource,e.query,e)},r.prototype.processDataSource=function(e,i,r,n){var a=this;if(!(e instanceof o.DataManager)&&!t.isNullOrUndefined(e)&&t.isNullOrUndefined(i))return void this.dataManagerSuccess({result:e,count:e.length},r,n);r.dataModule=new No(e,i),r.dataModule.getData(r.dataModule.generateQuery().requiresCount()).then(function(e){return a.dataManagerSuccess(e,r,n)})},r.prototype.dataManagerSuccess=function(e,t,i){var o=e.count?e.result:[];t.allowServerDataBinding=!1,this.processJsonData(o,t,Object.keys(o).length,i),this.seriesLength+=i?1:this.seriesLength,i&&this.seriesLength!==t.series.length||(this.processXAxis(t),this.calculateGroupingBounds(t),this.processYAxis(t),t.renderChart())},r.prototype.processJsonData=function(e,i,r,n){for(var a,l=0,s=n&&n.xName||i.xName,h=n&&n.yName||i.yName;l<r;){if(a=new rl(t.getValue(s,e[l]),t.getValue(h,e[l])),a.yValue=+a.y,i.valueType.indexOf("DateTime")>-1){var c=i.intl.getDateParser({skeleton:"full",type:"dateTime"}),d=i.intl.getDateFormat({skeleton:"full",type:"dateTime"});a.x=new Date(o.DataUtil.parse.parseJson({val:a.x}).val),a.xValue=Date.parse(c(d(a.x))),"DateTimeCategory"===i.valueType&&(void 0===this.indexLabels[a.xValue.toString()]&&(this.indexLabels[a.xValue.toString()]=this.labels.length,this.labels.push(a.xValue.toString())),a.xValue=this.indexLabels[a.xValue])}else a.xValue=+a.x;n&&n.points.push(a),this.xMin=Math.min(this.xMin,a.xValue),this.yMin=Math.min(this.yMin,a.yValue),this.xMax=Math.max(this.xMax,a.xValue),this.yMax=Math.max(this.yMax,a.yValue),i.rangeSlider.points.push(a),l++}},r.prototype.processXAxis=function(e){var t={minimum:e.minimum,maximum:e.maximum,interval:e.interval,valueType:e.valueType,isInversed:e.enableRtl,labelFormat:e.labelFormat,logBase:e.logBase,skeleton:e.skeleton,skeletonType:e.skeletonType};this.xAxis=t,this.xAxis.intervalType=e.intervalType,this.xAxis.maximumLabels=3,this.xAxis.skeleton=e.skeleton,this.xAxis.intervalDivs=[10,5,2,1],this.xAxis.rect=e.bounds,this.xAxis.visibleLabels=[],this.xAxis.orientation="Horizontal",this.xAxis.labels=this.labels,this.xAxis.indexLabels=this.indexLabels;var i=e[U(e.valueType)+"Module"];i.min=this.xMin,i.max=this.xMax,i.getActualRange(this.xAxis,e.bounds),"Double"!==this.xAxis.valueType&&"DateTime"!==this.xAxis.valueType&&"DateTimeCategory"!==this.xAxis.valueType||i.updateActualRange(this.xAxis,this.xAxis.actualRange.min,this.xAxis.actualRange.max,this.xAxis.actualRange.interval),this.xAxis.actualRange.delta=this.xAxis.actualRange.max-this.xAxis.actualRange.min,this.xAxis.visibleRange=this.xAxis.actualRange,i.calculateVisibleLabels(this.xAxis,e),"DateTimeCategory"===this.xAxis.valueType&&e.periodSelectorModule&&(e.periodSelectorModule.isDatetimeCategory=!0,e.periodSelectorModule.sortedData=this.labels.map(function(e){return parseInt(e,10)}))},r.prototype.processYAxis=function(e){var t={majorGridLines:{width:0},rangePadding:"None",majorTickLines:{width:0},labelStyle:{size:"0"},visible:!1,valueType:"Double",minimum:null,maximum:null,interval:null};this.yAxis=t,this.yAxis.rect=e.bounds,this.yAxis.maximumLabels=3,this.yAxis.intervalDivs=[10,5,2,1],this.yAxis.orientation="Vertical",this.yMin===this.yMax&&(this.yMax+=1,this.yMin-=1),e.doubleModule.min=this.yMin,e.doubleModule.max=this.yMax,e.doubleModule.getActualRange(this.yAxis,e.bounds),e.doubleModule.updateActualRange(this.yAxis,this.yAxis.actualRange.min,this.yAxis.actualRange.max,this.yAxis.actualRange.interval),this.yAxis.actualRange.delta=this.yAxis.actualRange.max-this.yAxis.actualRange.min,this.yAxis.visibleRange=this.yAxis.actualRange},r.prototype.renderSeries=function(e){var i=this;this.chartGroup=e.renderer.createGroup({id:e.element.id+"_chart"});var o=it(e.theme);e.series.map(function(r,n){if(!e.stockChart||e.stockChart.series[n].visible){if(r.xAxis=i.xAxis,r.yAxis=i.yAxis,r.chart=e,r.index=n,r.xAxis.isInversed=e.enableRtl,r.interior=r.fill||o[n%o.length],i.createSeriesElement(e,r,n),"DateTimeCategory"===r.xAxis.valueType)for(var a=0;a<r.points.length;a++)r.points[a].xValue=i.xAxis.labels.indexOf(Date.parse(r.points[a].x.toString()).toString());e[U(r.type)+"SeriesModule"]?e[U(r.type)+"SeriesModule"].render(r,i.xAxis,i.yAxis,!1):e.lineSeriesModule.render(r,i.xAxis,i.yAxis,!1),i.chartGroup.appendChild(r.seriesElement),(r.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&e[U(r.type)+"SeriesModule"]&&e[U(r.type)+"SeriesModule"].doAnimation(r)}})},r.prototype.appendSeriesElements=function(e){e.svgObject.appendChild(this.chartGroup),e.series.length&&this.drawSeriesBorder(e)},r.prototype.createSeriesElement=function(e,t,o){var r=e.element.id;t.clipRect=new i.Rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),t.clipRectElement=e.renderer.drawClipPath(new co(r+"_RangeSeriesClipRect_"+o,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:t.clipRect.width,height:t.clipRect.height})),t.seriesElement=e.renderer.createGroup({id:r+"SeriesGroup"+o,transform:"translate("+t.clipRect.x+","+t.clipRect.y+")","clip-path":"url(#"+r+"_RangeSeriesClipRect_"+o+")"}),t.seriesElement.appendChild(t.clipRectElement)},r.prototype.calculateGroupingBounds=function(e){var t=e.margin.bottom,o=i.measureText("string",e.labelStyle,e.themeStyle.axisLabelFont).height,r="DateTimeCategory"===e.valueType?parseInt(this.xAxis.labels[this.xMin],10):this.xMin,n="DateTimeCategory"===e.valueType?parseInt(this.xAxis.labels[this.xMax],10):this.xMax;this.calculateDateTimeNiceInterval(this.xAxis,new i.Size(e.bounds.width,e.bounds.height),r,n,!1),!e.enableGrouping||"DateTime"!==e.valueType&&"DateTimeCategory"!==e.valueType||"Years"===this.xAxis.actualIntervalType&&e.series.length||(e.bounds.height-="Outside"===e.labelPosition||0===e.series.length?t+o:o+2*t),e.series.length||(e.bounds.y+=e.bounds.height/4,e.bounds.height=e.bounds.height/2)},r.prototype.drawSeriesBorder=function(e){var t=e.stockChart?"M":"L",o=e.stockChart?"":"Z",r=new i.PathOption(e.element.id+"_SeriesBorder","transparent",e.navigatorBorder.width,e.navigatorBorder.color||(e.theme.indexOf("Dark")>-1?"#49454F":"#DDDDDD"),1,e.navigatorBorder.dashArray,"M "+e.bounds.x+" "+e.bounds.y+" L "+(e.bounds.x+e.bounds.width)+" "+e.bounds.y+t+(e.bounds.x+e.bounds.width)+" "+(e.bounds.y+e.bounds.height)+" L "+e.bounds.x+" "+(e.bounds.y+e.bounds.height)+o),n=e.renderer.drawPath(r);e.svgObject.appendChild(n)},r}(lr),ll=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),sl=function(e){function t(t){var i=e.call(this)||this;return i.firstLevelLabels=[],i.secondLevelLabels=[],i.rangeNavigator=t,i}return ll(t,e),t.prototype.renderGridLines=function(){var e=0,t=this.rangeNavigator,o=t.majorGridLines,r=t.majorTickLines,n="",a="",l=t.bounds,s=t.chartSeries.xAxis,h=t.disableRangeSelector?"transparent":null;this.gridLines=t.renderer.createGroup({id:t.element.id+"_GridLines"});var c="Outside"===t.tickPosition||0===t.series.length?l.y+l.height+r.height:l.y+l.height-r.height;if(this.firstLevelLabels=[],s.labelStyle=t.labelStyle,s.skeleton=t.skeleton,s.skeletonType=t.skeletonType,s.isChart=!1,t.valueType.indexOf("DateTime")>-1){var d=this.calculateDateTimeNiceInterval(s,l,s.doubleRange.start,s.doubleRange.end,s.isChart);"DateTime"===t.valueType&&this.findAxisLabels(s,d),this.actualIntervalType=s.actualIntervalType,"DateTimeCategory"!==t.valueType||"Quarter"!==this.actualIntervalType&&"Weeks"!==this.actualIntervalType||this.findSecondaryAxisLabels(s)}this.firstLevelLabels=s.visibleLabels,this.lowerValues=[];for(var p=s.visibleLabels.length,u=0;u<p;u++)this.lowerValues.push(this.firstLevelLabels[u].value),(e=T(this.firstLevelLabels[u].value,s)*l.width+l.x)>=l.x&&l.x+l.width>=e&&(n=n.concat("M "+e+" "+(t.bounds.y+t.bounds.height)+" L "+e+" "+t.bounds.y+" "),a=a.concat("M "+e+" "+(l.y+l.height)+" L "+e+" "+c+" "));var g=new i.PathOption(t.element.id+"_MajorGridLine","transparent",o.width,t.series.length?h||o.color||t.themeStyle.gridLineColor:"transparent",1,o.dashArray,n);this.gridLines.appendChild(t.renderer.drawPath(g)),g=new i.PathOption(t.element.id+"_MajorTickLine","transparent",r.width,h||r.color||t.themeStyle.gridLineColor,1,o.dashArray,a),this.gridLines.appendChild(t.renderer.drawPath(g))},t.prototype.renderAxisLabels=function(){var e,t=this.rangeNavigator.chartSeries.xAxis,o=this.rangeNavigator,r=o.renderer.createGroup({id:o.element.id+"_AxisLabels"}),n=o.renderer.createGroup({id:o.element.id+"_FirstLevelAxisLabels"}),a=o.renderer.createGroup({id:o.element.id+"_SecondLevelAxisLabels"}),l=t;if(e=this.findLabelY(o,!1),this.placeAxisLabels(t,e,"_AxisLabel_",o,n),l.intervalType=l.actualIntervalType=o.groupBy||this.getSecondaryLabelType(t.actualIntervalType),l.labelFormat="",o.enableGrouping&&o.valueType.indexOf("DateTime")>-1&&"Years"!==this.actualIntervalType){l.visibleRange.interval=1,l.visibleLabels=[];var s=this.calculateDateTimeNiceInterval(l,o.bounds,l.doubleRange.start,l.doubleRange.end,l.isChart);"DateTime"===o.valueType?this.findAxisLabels(l,s):this.findSecondaryAxisLabels(l),this.secondLevelLabels=l.visibleLabels,e=this.findLabelY(o,!0);var h=this.placeAxisLabels(l,e,"_SecondaryLabel_",o,a),c=new i.PathOption(o.element.id+"_SecondaryMajorLines","transparent",o.majorTickLines.width,o.majorTickLines.color||o.themeStyle.gridLineColor,1,o.majorGridLines.dashArray,h);this.gridLines.appendChild(o.renderer.drawPath(c))}o.chartSeries.xAxis.visibleLabels=o.chartSeries.xAxis.visibleLabels.concat(l.visibleLabels),r.style.cursor=t.valueType.indexOf("DateTime")>-1?"cursor: pointer":"cursor: default",r.appendChild(n),r.appendChild(a),o.svgObject.appendChild(this.gridLines),o.svgObject.appendChild(r)},t.prototype.getSecondaryLabelType=function(e){var t=["Years","Quarter","Months","Weeks","Days","Hours","Minutes","Seconds"];return"Years"===e?"Years":t[t.indexOf(e)-1]},t.prototype.findSecondaryAxisLabels=function(e){e.visibleLabels=[],e.visibleRange.interval=Math.max(e.visibleRange.interval,1);var t;this.rangeNavigator.format=this.rangeNavigator.intl.getDateFormat({format:e.labelFormat||"",type:U(e.skeleton),skeleton:this.getSkeleton(e,null,null)});for(var i=Math.ceil(e.visibleRange.min);i<=e.visibleRange.max;i+=e.visibleRange.interval)if((!this.rangeNavigator.dateTimeCategoryModule.sameInterval(e.labels.map(Number)[i],e.labels.map(Number)[i-e.visibleRange.interval],e.actualIntervalType,i)||e.isIndexed)&&v(i,e.visibleRange)&&this.rangeNavigator.dateTimeCategoryModule.isMaximum(i,t,e)){var o=new Date(e.labels.map(Number)[i]);if("Quarter"===e.actualIntervalType){var r=[0,3,6,9],n=Math.floor(o.getMonth()/3);o.setMonth(r[n])}e.visibleLabels.push(new ro(this.dateFormats(this.rangeNavigator.format(o),e,e.visibleLabels.length),i,this.rangeNavigator.labelStyle,this.rangeNavigator.format(o))),t=i}},t.prototype.findAxisLabels=function(e,t){e.visibleLabels=[];var i,o,r=new Date(e.visibleRange.min);switch(t=this.rangeNavigator.interval?this.rangeNavigator.interval:t,e.actualIntervalType){case"Years":r=new Date(r.getFullYear(),0,1);break;case"Quarter":r=r.getMonth()<=2?new Date(r.getFullYear(),0,1):r.getMonth()<=5?new Date(r.getFullYear(),3,1):r.getMonth()<=8?new Date(r.getFullYear(),6,1):new Date(r.getFullYear(),9,1);break;case"Months":r=new Date(r.getFullYear(),r.getMonth());break;case"Weeks":r=new Date(r.getFullYear(),r.getMonth(),r.getDate()-r.getDay());break;case"Days":r=new Date(r.getFullYear(),r.getMonth(),r.getDate());break;case"Hours":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours());break;case"Minutes":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes());break;case"Seconds":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds())}for(i=r.getTime(),this.rangeNavigator.format=this.rangeNavigator.intl.getDateFormat({format:e.labelFormat||"",type:U(e.skeletonType),skeleton:this.getSkeleton(e,null,null)});i<=e.visibleRange.max;)o=this.dateFormats(this.rangeNavigator.format(new Date(i)),e,e.visibleLabels.length),e.visibleLabels.push(new ro(o,i,this.rangeNavigator.labelStyle,o)),i=this.increaseDateTimeInterval(e,i,t).getTime()},t.prototype.dateFormats=function(e,t,i){var o=e,r=this.rangeNavigator.enableGrouping&&0===this.firstLevelLabels.length;switch(t.actualIntervalType){case"Quarter":e.indexOf("Jan")>-1?o=r?"Quarter1":e.replace("Jan","Quarter1"):e.indexOf("Apr")>-1?o=r?"Quarter2":e.replace("Apr","Quarter2"):e.indexOf("Jul")>-1?o=r?"Quarter3":e.replace("Jul","Quarter3"):e.indexOf("Oct")>-1&&(o=r?"Quarter4":e.replace("Oct","Quarter4"));break;case"Weeks":o="Week"+ ++i;break;default:o=e}return o},t.prototype.findLabelY=function(e,t){var o,r=e.bounds.y+e.bounds.height,n=e.majorTickLines.height,a=i.measureText("Quarter1 2011",e.labelStyle,e.themeStyle.axisLabelFont).height,l="Inside"===e.labelPosition?3:8;return o="Outside"===e.labelPosition&&"Outside"===e.tickPosition||0===e.series.length?r+n+l+.75*a:"Inside"===e.labelPosition&&"Inside"===e.tickPosition?r-n-l:"Inside"===e.labelPosition&&"Outside"===e.tickPosition?r-l:r+l+.75*a,t&&(l=15,"Outside"===e.labelPosition||0===e.series.length?o+=l+.75*a:o="Outside"===e.tickPosition||0===e.series.length?r+n+l+.75*a:r+l+.75*a),o},t.prototype.placeAxisLabels=function(e,t,o,r,n){var a,l,s,h,c=e.visibleLabels.length,d=r.bounds,p="",u=r.disableRangeSelector?"transparent":null,g=r.enableRtl?d.x+d.width:d.x,m=e.actualIntervalType,y="Auto"===r.labelPlacement&&"DateTime"===r.valueType||"BetweenTicks"===r.labelPlacement?c>1?e.visibleLabels[1].value-e.visibleLabels[0].value:(e.visibleRange.max-e.visibleLabels[0].value)/2:0;r.valueType.indexOf("DateTime")>-1&&("Quarter"===m||"Weeks"===m)&&this.findSuitableFormat(e,r);for(var f=0,v=c;f<v;f++)if(a=e.visibleLabels[f],a.size=i.measureText(a.text,e.labelStyle,r.themeStyle.axisLabelFont),!("Middle"===r.secondaryLabelAlignment||o.indexOf("_AxisLabel_")>-1)||"Auto"!==r.labelPlacement&&"BetweenTicks"!==r.labelPlacement?o.indexOf("Secondary")>-1&&(s=this.findAlignment(e,f)):s=T(a.value+y/2,e)*d.width+d.x,"OnTicks"===r.labelPlacement&&"Inside"===r.labelPosition?s=T(a.value,e)*d.width+d.x+a.size.width/2+2:"OnTicks"===r.labelPlacement&&"Outside"===r.labelPosition&&(s=T(a.value,e)*d.width+d.x),h=T(a.value,e)*d.width+d.x,(0===f||f===e.visibleLabels.length-1&&r.enableRtl)&&s<d.x&&(s=d.x+a.size.width/2),(f===e.visibleLabels.length-1||0===f&&r.enableRtl)&&s+a.size.width>d.x+d.width&&(s=d.x+d.width-a.size.width/2),o.indexOf("_SecondaryLabel_")>-1&&s>=d.x&&d.x+d.width>=s&&(p=p.concat("M "+h+" "+t+" L "+h+" "+(t-a.size.height))),"Hide"!==r.labelIntersectAction||0===f||!this.isIntersect(e,s,a.size.width,g,l.size.width)){"Middle"===r.secondaryLabelAlignment&&1===e.visibleLabels.length&&(s=T(a.value,e)+(d.x+d.width/2));var b=r.labelStyle,x={size:b.size,color:u||b.color||r.themeStyle.axisLabelFont.color,fontFamily:b.fontFamily,fontStyle:b.fontStyle||r.labelStyle.fontStyle,fontWeight:b.fontWeight||r.labelStyle.fontWeight,opacity:b.opacity||r.labelStyle.opacity,textAlignment:b.textAlignment||r.labelStyle.textAlignment,textOverflow:b.textOverflow||r.labelStyle.textOverflow},S={cancel:!1,name:"labelRender",text:a.text,value:a.value,labelStyle:x,region:new i.Rect(s,t,a.size.width,a.size.height)};r.trigger("labelRender",S),S.cancel||(r.labels.push(S),je(this.rangeNavigator.renderer,new i.TextOption(this.rangeNavigator.element.id+o+f,s,t,"middle",S.text),S.labelStyle,S.labelStyle.color||r.themeStyle.labelFontColor,n,null,null,null,null,null,null,null,null,null,null,r.themeStyle.axisLabelFont).style.cursor=e.valueType.indexOf("DateTime")>-1?"cursor: pointer":"cursor: default",g=s,l=a)}return p},t.prototype.isIntersect=function(e,t,i,o,r){return e.isInversed?t+i/2>o-r/2:t-i/2<o+r/2},t.prototype.findSuitableFormat=function(e,t){for(var o,r,n=e.visibleLabels,a=n.length,l=t.bounds,s="DateTime"===t.valueType?a>1?n[1].value-n[0].value:e.visibleRange.interval:0,h=0;h<a;h++)r=T(n[h].value+s/2,e)*l.width+l.x,n[h].size=i.measureText(n[h].text,e.labelStyle,t.themeStyle.axisLabelFont),0===h&&r<l.x&&(r=l.x+n[h].size.width/2),"Quarter"===e.actualIntervalType?0!==h&&(n[h].text.indexOf("Quarter")>-1&&this.isIntersect(e,r,n[h].size.width,o,n[h-1].size.width)?(n.every(function(e){return e.text=e.text.toString().replace("Quarter","QTR"),!0}),e.visibleLabels=n,this.findSuitableFormat(e,t)):this.isIntersect(e,r,n[h].size.width,o,n[h-1].size.width)&&(n.every(function(e){return e.text=e.text.toString().replace("QTR","Q"),!0}),e.visibleLabels=n)):"Weeks"===e.actualIntervalType&&0!==h&&n[h].text.indexOf("Week")>-1&&this.isIntersect(e,r,n[h].size.width,o,n[h-1].size.width)&&(n.every(function(e){return e.text=e.text.toString().replace("Week","W"),!0}),e.visibleLabels=n),o=r},t.prototype.findAlignment=function(e,t){var i=e.visibleLabels[t],o=e.visibleLabels[t+1],r=this.rangeNavigator.bounds;return"Near"===this.rangeNavigator.secondaryLabelAlignment?T(i.value,e)*r.width+r.x+i.size.width/2:T(o?o.value:e.visibleRange.max,e)*r.width+r.x-i.size.width},t}(hr),hl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),cl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},dl=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new i.Rect(0,0,0,0),t}return hl(o,e),cl([t.Property(null)],o.prototype,"dataSource",void 0),cl([t.Property(null)],o.prototype,"xName",void 0),cl([t.Property(null)],o.prototype,"yName",void 0),cl([t.Property()],o.prototype,"query",void 0),cl([t.Property("Line")],o.prototype,"type",void 0),cl([t.Complex({enable:!1},pi)],o.prototype,"animation",void 0),cl([t.Complex({color:"transparent",width:2},hi)],o.prototype,"border",void 0),cl([t.Property(null)],o.prototype,"fill",void 0),cl([t.Property(1)],o.prototype,"width",void 0),cl([t.Property(1)],o.prototype,"opacity",void 0),cl([t.Property("0")],o.prototype,"dashArray",void 0),o}(t.ChildProperty),pl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return hl(i,e),cl([t.Property(null)],i.prototype,"width",void 0),cl([t.Property(null)],i.prototype,"height",void 0),cl([t.Complex({width:1,color:null},hi)],i.prototype,"border",void 0),cl([t.Property(null)],i.prototype,"fill",void 0),cl([t.Property("Circle")],i.prototype,"type",void 0),i}(t.ChildProperty),ul=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return hl(i,e),cl([t.Complex({},pl)],i.prototype,"thumb",void 0),cl([t.Property(null)],i.prototype,"selectedRegionColor",void 0),cl([t.Property(null)],i.prototype,"unselectedRegionColor",void 0),i}(t.ChildProperty),gl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return hl(i,e),cl([t.Property(!1)],i.prototype,"enable",void 0),cl([t.Property(null)],i.prototype,"opacity",void 0),cl([t.Property(null)],i.prototype,"fill",void 0),cl([t.Property(null)],i.prototype,"format",void 0),cl([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),cl([t.Property(null)],i.prototype,"template",void 0),cl([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),cl([t.Property("OnDemand")],i.prototype,"displayMode",void 0),i}(t.ChildProperty),ml=function(){function e(e){this.control=e,this.points=[],this.isIOS=t.Browser.isIos||t.Browser.isIos7;var i=e.navigatorStyleSettings.thumb;this.thumbVisible=0!==e.themeStyle.thumbWidth&&0!==e.themeStyle.thumbHeight,this.elementId=e.element.id,this.thumpPadding=e.themeStyle.thumbWidth/2,this.addEventListener(),this.thumbColor=e.disableRangeSelector?"transparent":i.fill||e.themeStyle.thumbBackground}return e.prototype.render=function(e){var t=e.renderer,i=e.navigatorStyleSettings,o=e.disableRangeSelector?"transparent":null,r=t.createGroup({id:this.elementId+"_sliders",style:e.disableRangeSelector?"pointer-events:none;":""}),n=new co(this.elementId+"_leftUnSelectedArea",o||i.unselectedRegionColor||e.themeStyle.unselectedRectColor,{width:0},1,{x:e.bounds.x,y:e.bounds.y,width:e.bounds.width/3,height:e.bounds.height},0,0,"",i.thumb.border.dashArray);this.leftUnSelectedElement=t.drawRectangle(n),n.id=this.elementId+"_rightUnSelectedArea",this.rightUnSelectedElement=t.drawRectangle(n),n.id=this.elementId+"_SelectedArea",n.fill=o||i.selectedRegionColor||e.themeStyle.selectedRegionColor,this.selectedElement=t.drawRectangle(n),this.selectedElement.setAttribute("role","region"),this.selectedElement.setAttribute("aria-label","Range Slider with "+e.rangeSlider.points.length+" data points"),this.selectedElement.style.cursor="-webkit-grab",this.leftSlider=t.createGroup({id:this.elementId+"_LeftSlider",style:"cursor: ew-resize"}),this.rightSlider=t.createGroup({id:this.elementId+"_RightSlider",style:"cursor: ew-resize"}),this.createThump(t,e.bounds,this.leftSlider,this.elementId+"_LeftSlider",r),this.createThump(t,e.bounds,this.rightSlider,this.elementId+"_RightSlider"),r.appendChild(this.leftUnSelectedElement),r.appendChild(this.rightUnSelectedElement),r.appendChild(this.selectedElement),r.appendChild(this.leftSlider),r.appendChild(this.rightSlider),e.svgObject.appendChild(r)},e.prototype.createThump=function(e,t,o,r,n){var a,l=this.control,s=l.navigatorStyleSettings.thumb,h=l.themeStyle,c=t.y+t.height/2,d=this.thumpPadding,p=l.themeStyle.thumbHeight/2-5,u=l.disableRangeSelector?"transparent":null,g=u||s.border.color||h.thumpLineColor;o.appendChild(e.drawPath(new i.PathOption(r+"_ThumpLine","transparent",s.border.width,l.series.length?g:"transparent",1,s.border.dashArray,"M "+d+" "+t.y+" L "+d+" "+(t.y+t.height)+" "))),this.thumpY=c-l.themeStyle.thumbHeight/2,this.sliderY=t.y>this.thumpY?this.thumpY:t.y,n&&!l.disableRangeSelector&&((a=e.createDefs()).innerText='<rect xmlns="http://www.w3.org/2000/svg" id="'+this.control.element.id+'_shadow" x="0" y="'+this.thumpY+'" width="'+l.themeStyle.thumbWidth+'" height="'+l.themeStyle.thumbHeight+'" rx="'+("Circle"===s.type?"50%":"0%")+'"/><filter xmlns="http://www.w3.org/2000/svg" x="-25.0%" y="-20.0%" width="150.0%" height="150.0%" filterUnits="objectBoundingBox" id="ej2-range-shadow"><feOffset dx="0" dy="1" in="SourceAlpha"result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.16 0" type="matrix" in="shadowBlurOuter1"/></filter>',n.appendChild(a)),o.innerText+='<use xmlns="http://www.w3.org/2000/svg" fill="black" fill-opacity="1" filter="url(#ej2-range-shadow)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-1"/>',"Circle"===s.type?o.appendChild(ne({x:d,y:c},"Circle",{width:l.themeStyle.thumbWidth,height:l.themeStyle.thumbHeight},"",new i.PathOption(r+"_ThumpSymbol",u||this.thumbColor,s.border.width,g,1,null))):o.appendChild(e.drawRectangle(new co(r+"_ThumpSymbol",u||this.thumbColor,{width:s.border.width,color:g},1,{x:d-l.themeStyle.thumbWidth/2,y:c-l.themeStyle.thumbHeight/2,width:l.themeStyle.thumbWidth,height:l.themeStyle.thumbHeight},2,2,"",s.border.dashArray))),this.thumbVisible&&o.appendChild(e.drawPath(new i.PathOption(r+"_ThumpGrip","transparent",1,u||l.themeStyle.gripColor,1,null,"M "+(d+2)+" "+(c+p)+" L "+(d+2)+" "+(c-p)+" "+(this.control.theme.indexOf("Fluent2")>-1||this.control.theme.indexOf("Bootstrap5")>-1||this.control.theme.indexOf("Tailwind3")>-1?"":"M "+d+" "+(c+p)+" L "+d+" "+(c-p)+" ")+"M "+(d-2)+" "+(c+p)+" L "+(d-2)+" "+(c-p)+" ")))},e.prototype.setSlider=function(e,t,i,o,r){void 0===r&&(r=!1);var n=this.control,a=n.bounds.x,l=n.chartSeries.xAxis.actualRange,s=0===n.series.length;isNaN(e)&&isNaN(t)&&(e=0,t=n.bounds.width),t>=e||(e=[t,t=e][0]),e=t>=e?e:[t,t=e][0],e=Math.max(e,l.min),t=Math.min(t,l.max),this.startX=a+ht(e,l,n.bounds.width,n.enableRtl),this.endX=a+ht(t,l,n.bounds.width,n.enableRtl);var h=n.enableRtl?this.endX:this.startX,c=n.enableRtl?this.startX:this.endX;this.sliderWidth=Math.abs(this.endX-this.startX),this.selectedElement.setAttribute("x",h+""),this.selectedElement.setAttribute("width",this.sliderWidth+""),this.leftUnSelectedElement.setAttribute("width",h-a+""),this.rightUnSelectedElement.setAttribute("x",c+""),this.rightUnSelectedElement.setAttribute("width",n.bounds.width-(c-a)+""),this.leftSlider.setAttribute("transform","translate("+(this.startX-this.thumpPadding)+", 0)"),this.rightSlider.setAttribute("transform","translate("+(this.endX-this.thumpPadding)+", 0)");var d=this.control.svgObject.getBoundingClientRect().left-this.control.element.getBoundingClientRect().left,p=this.control.enableRtl?this.endX:this.startX,u=this.control.enableRtl?this.startX:this.endX;this.leftRect={x:s?d+a:a,y:s?0:n.bounds.y,width:s?p-a:p,height:s?this.thumpY:n.bounds.height},this.rightRect={x:s?d+u:u,y:s?0:n.bounds.y,width:n.bounds.width-(c-a),height:s?this.thumpY:n.bounds.height},this.midRect={x:s?p+d:0,y:s?0:n.bounds.y,width:s?Math.abs(this.endX-this.startX):u,height:s?this.thumpY:n.bounds.height},this.currentStart=e,this.currentEnd=t,o&&(this.control.rangeTooltipModule.renderLeftTooltip(this),this.control.rangeTooltipModule.renderRightTooltip(this));var g=this.control.periodSelectorModule;if(g&&this.control.redraw&&"rangeNavigator"===this.control.getModuleName()){var m=g.findSelectedIndex(e,t,g.control.periods);g.setSelectedStyle(m),this.control.redraw=!1}i&&!r&&this.triggerEvent(l)},e.prototype.triggerEvent=function(e){var t=this.control.chartSeries.xAxis,i=t.valueType,o={cancel:!1,start:"DateTime"===i?new Date(this.currentStart):"DateTimeCategory"===i?this.currentStart:"Logarithmic"===i?Math.pow(t.logBase,this.currentStart):this.currentStart,end:"DateTime"===i?new Date(this.currentEnd):"DateTimeCategory"===i?this.currentEnd:"Logarithmic"===i?Math.pow(t.logBase,this.currentEnd):this.currentEnd,name:"changed",selectedData:dt(this.points,this.currentStart,this.currentEnd),zoomPosition:(this.control.enableRtl?e.max-this.currentEnd:this.currentStart-e.min)/e.delta,zoomFactor:(this.currentEnd-this.currentStart)/e.delta,selectedPeriod:this.selectedPeriod?this.selectedPeriod:""};this.control.trigger("changed",o)},e.prototype.addEventListener=function(){this.control.isDestroyed||(this.control.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.control.on(t.Browser.touchStartEvent,this.mouseDownHandler,this),this.control.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.control.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.control.isDestroyed||(this.control.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.control.off(t.Browser.touchStartEvent,this.mouseDownHandler),this.control.off(t.Browser.touchEndEvent,this.mouseUpHandler),this.control.off(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseCancelHandler))},e.prototype.mouseMoveHandler=function(e){var t,i,o=this.control,r=o.chartSeries.xAxis.actualRange,n=o.bounds;if(this.getCurrentSlider(e.target.id),this.isDrag&&o.mouseX>=n.x){switch(this.currentSlider){case"Left":o.startValue=this.getRangeValue(Math.abs(o.mouseX-n.x));break;case"Right":o.endValue=this.getRangeValue(Math.abs(o.mouseX-n.x));break;case"Middle":t=Math.max(this.getRangeValue(Math.abs(this.startX-(this.previousMoveX-o.mouseX)-n.x)),r.min),i=Math.min(this.getRangeValue(Math.abs(this.endX-(this.previousMoveX-o.mouseX)-n.x)),r.max),Math.floor(Math.abs(ht(i,r,o.bounds.width,o.enableRtl)-ht(t,r,o.bounds.width,o.enableRtl)))===Math.floor(this.sliderWidth)?(o.startValue=t,o.endValue=i):(i===r.max&&(o.endValue=r.max),Math.floor(this.startX)===n.x&&(o.startValue=r.min))}if(e.preventDefault&&this.isIOS&&e.preventDefault(),"Middle"!==this.currentSlider){var a=this.control.periodSelectorModule;if(a){var l=a.control.periods;l.map(function(e){e.selected=!1}),a.selectedIndex=void 0;var s=a.findSelectedIndex(o.startValue,o.endValue,l);a.setSelectedStyle(s)}}this.setSlider(o.startValue,o.endValue,!o.enableDeferredUpdate,o.rangeTooltipModule&&o.tooltip.enable),this.previousMoveX=o.mouseX}},e.prototype.getRangeValue=function(e){var t=this.control,i=t.chartSeries.xAxis.actualRange;return ct(e,t.bounds.width,i,t.enableRtl)},e.prototype.mouseDownHandler=function(e){this.currentSlider=this.getCurrentSlider(e.target.id),this.selectedElement.style.cursor="-webkit-grabbing",this.isDrag=!("UnSelectedArea"===this.currentSlider||!this.currentSlider),this.previousMoveX=this.control.mouseDownX},e.prototype.getCurrentSlider=function(e){var t=this.control.themeStyle.thumbHoverColor;return e.indexOf(this.elementId+"_LeftSlider")>-1?(this.leftSlider.childNodes[2].setAttribute("fill",t),"Left"):e.indexOf(this.elementId+"_RightSlider")>-1?(this.rightSlider.childNodes[2].setAttribute("fill",t),"Right"):e.indexOf(this.elementId+"_SelectedArea")>-1?"Middle":e.indexOf("UnSelectedArea")>-1?(this.leftSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.rightSlider.childNodes[2].setAttribute("fill",this.thumbColor),"UnSelectedArea"):e.indexOf(this.elementId+"_AxisLabel_")>-1&&("DateTime"===this.control.valueType||"DateTimeCategory"===this.control.valueType)?(this.labelIndex=+e.substring(e.lastIndexOf("_")+1,e.length),"firstLevelLabels"):e.indexOf(this.elementId+"_SecondaryLabel")>-1&&("DateTime"===this.control.valueType||"DateTimeCategory"===this.control.valueType)?(this.labelIndex=+e.substring(e.lastIndexOf("_")+1,e.length),"secondLevelLabels"):(this.leftSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.rightSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.control.periodSelectorModule&&(this.control.periodSelectorModule.triggerChange=!0),null)},e.prototype.mouseUpHandler=function(){var e=this.control,t=e.chartSeries.xAxis.actualRange,i=e.enableDeferredUpdate,o=e.tooltip.enable;if(e.stockChart&&(e.stockChart.zoomChange=!1),"UnSelectedArea"===this.currentSlider){var r=void 0,n=void 0,a=void 0,l=e.enableRtl,s=e.endValue-e.startValue;e.mouseDownX<this.startX?(r=Math.max(this.getRangeValue(e.mouseDownX-this.sliderWidth/2-e.bounds.x),t.min),a=l?r:r+s,n=l?r-s:r):(r=Math.min(this.getRangeValue(e.mouseDownX+this.sliderWidth/2-e.bounds.x),t.max),n=l?r:r-s,a=l?r+s:r),this.performAnimation(n,a,e),i=!1}else if("firstLevelLabels"===this.currentSlider||"secondLevelLabels"===this.currentSlider){var h=e.rangeAxis[this.currentSlider][this.labelIndex+1];if(this.selectedPeriod){var c=this.control.periodSelectorModule;if(c){var d=c.control.periods;d.map(function(e){e.selected=!1}),c.selectedIndex=void 0;var p=c.findSelectedIndex(e.rangeAxis[this.currentSlider][this.labelIndex].value,h?e.allowIntervalData?h.value-1:h.value:t.max,d);c.setSelectedStyle(p)}}this.performAnimation(e.rangeAxis[this.currentSlider][this.labelIndex].value,h?e.allowIntervalData?h.value-1:h.value:t.max,e),i=!1}else null===this.currentSlider&&(i=!1);this.isDrag&&e.allowSnapping&&(this.setAllowSnapping(e,this.currentStart,this.currentEnd,!0,o),i=!1),i&&this.setSlider(this.currentStart,this.currentEnd,!0,o),null!==this.currentSlider&&this.control.periodSelectorSettings.periods.length>0&&(this.control.periodSelectorModule.triggerChange=!1,this.control.periodSelectorModule.datePicker.startDate=this.control.periodSelectorModule.isDatetimeCategory?new Date(this.control.periodSelectorModule.sortedData[Math.floor(this.currentStart)]):new Date(this.currentStart),this.control.periodSelectorModule.datePicker.endDate=this.control.periodSelectorModule.isDatetimeCategory?new Date(this.control.periodSelectorModule.sortedData[Math.floor(this.currentEnd)]):new Date(this.currentEnd)),this.selectedElement.style.cursor="-webkit-grab",e.startValue=this.currentStart,e.endValue=this.currentEnd,this.isDrag=!1,this.labelIndex=null,this.currentSlider=null},e.prototype.setAllowSnapping=function(e,t,i,o,r){var n=e.rangeAxis.lowerValues;n.push(e.chartSeries.xAxis.actualRange.max),this.setSlider(pt(n,t),pt(n,i),o,r),e.startValue=this.currentStart,e.endValue=this.currentEnd},e.prototype.performAnimation=function(e,i,o){var r=this,n=this.currentStart,a=this.currentEnd,l=o.enableDeferredUpdate,s=o.tooltip.enable;new t.Animation({}).animate(t.createElement("div"),{duration:0===this.control.animationDuration&&"Enable"===t.animationMode?1e3:this.control.animationDuration,progress:function(t){r.setSlider(Z(t.timeStamp,0,e-n,t.duration)+n,Z(t.timeStamp,0,i-a,t.duration)+a,!l,s)},end:function(){o.allowSnapping?r.setAllowSnapping(o,e,i,!0,s):r.setSlider(e,i,!0,s),r.control.startValue=r.currentStart,r.control.endValue=r.currentEnd,r.control.periodSelectorSettings.periods.length>0&&(r.control.periodSelectorModule.triggerChange=!1,r.control.periodSelectorModule.datePicker.startDate=r.control.periodSelectorModule.isDatetimeCategory?new Date(r.control.periodSelectorModule.sortedData[Math.floor(r.currentStart)]):new Date(r.currentStart),r.control.periodSelectorModule.datePicker.endDate=r.control.periodSelectorModule.isDatetimeCategory?new Date(r.control.periodSelectorModule.sortedData[Math.floor(r.currentEnd)]):new Date(r.currentEnd))}})},e.prototype.mouseCancelHandler=function(){this.isDrag&&this.control.allowSnapping&&this.setAllowSnapping(this.control,this.currentStart,this.currentEnd,!1,this.control.tooltip.enable),this.isDrag=!1,this.currentSlider=null,this.control.startValue=this.currentStart,this.control.endValue=this.currentEnd},e.prototype.destroy=function(){this.removeEventListener()},e}(),yl=function(){function e(e){this.control={},this.isDatetimeCategory=!1,this.sortedData=[],this.startValue=0,this.endValue=0,this.rootControl=e,"stockChart"===this.rootControl.getModuleName()&&(this.sortedData=this.rootControl.sortedData,this.isDatetimeCategory=this.rootControl.isDateTimeCategory)}return e.prototype.setControlValues=function(e){"rangeNavigator"===e.getModuleName()?(this.control.periods=this.rootControl.periodSelectorSettings.periods,this.control.seriesXMax=e.chartSeries.xMax,this.control.seriesXMin=e.chartSeries.xMin,this.control.rangeSlider=e.rangeSlider,this.control.rangeNavigatorControl=e,this.control.endValue=e.endValue,this.control.startValue=e.startValue):(this.control.periods=this.rootControl.periods,this.control.endValue=this.control.seriesXMax=e.seriesXMax,this.control.startValue=this.control.seriesXMin=e.seriesXMin,this.control.rangeNavigatorControl=this.rootControl.rangeNavigator,this.control.rangeNavigatorControl&&(this.control.rangeSlider=this.rootControl.rangeNavigator.rangeSlider)),this.control.element=e.element,this.control.disableRangeSelector=e.disableRangeSelector},e.prototype.appendSelector=function(e,t){void 0===t&&(t=0),this.renderSelectorElement(null,e,t),this.renderSelector()},e.prototype.renderSelectorElement=function(e,o,r){this.periodSelectorSize=e?this.periodSelectorSize:new i.Rect(r,this.rootControl.titleSize.height?this.rootControl.titleSize.height:10,o.width,o.height);var n,a;e?(n=e.themeStyle.thumbWidth,a=e.element):(n=o.thumbSize,a=o.element),he(a.id+"_Secondary_Element")&&t.remove(he(a.id+"_Secondary_Element")),this.periodSelectorDiv=t.createElement("div",{id:a.id+"_Secondary_Element",styles:"width: "+(this.periodSelectorSize.width-n)+"px;height: "+this.periodSelectorSize.height+"px;top:"+this.periodSelectorSize.y+"px;left:"+(this.periodSelectorSize.x+n/2)+"px; position: absolute"}),a.appendChild(this.periodSelectorDiv)},e.prototype.renderSelector=function(){var e=this;this.setControlValues(this.rootControl);var i,o=!0,r=this.control.element.id,n=t.createElement("div",{id:r+"_selector"}),s=this.control.periods,h=this.updateCustomElement(),c=r+"customRange";this.periodSelectorDiv.appendChild(n);for(var d=0;d<s.length;d++)h.push({align:"Left",text:s[d].text});"stockChart"===this.rootControl.getModuleName()&&(o=this.rootControl.enableCustomRange),o&&(this.calendarId=r+"_calendar",h.push({template:"<button id="+this.calendarId+"></button>",align:"Right"}));var p={selector:h,name:"RangeSelector",cancel:!1,enableCustomFormat:!0,content:"Date Range"};if("stockChart"===this.rootControl.getModuleName()&&this.rootControl.exportType.length){var u=t.createElement("button",{id:r+"_export",styles:"text-transform: none; text-overflow: unset",className:"e-dropdown-btn e-btn e-flat"});u.innerText="Export",h.push({template:u,align:"Right"})}this.rootControl.trigger("selectorRender",p),this.toolbar=new a.Toolbar({items:p.selector,height:this.periodSelectorSize.height,clicked:function(t){e.buttonClick(t,e.control)},created:function(){if(e.nodes=e.toolbar.element.querySelectorAll(".e-toolbar-left")[0],t.isNullOrUndefined(e.selectedIndex)&&s.map(function(t,o){if(t.selected&&null!==e.selectedPeriod){i=t,e.control.startValue=e.changedRange(t.intervalType,e.control.endValue,t.interval).getTime(),e.isDatetimeCategory&&(e.control.startValue="stockChart"!==e.rootControl.getModuleName()?e.findStartValue(e.control.startValue,e.control.endValue):e.rootControl.startValue),e.control.startValue=t.text&&"all"===t.text.toLowerCase()?e.control.seriesXMin:e.control.startValue,e.control.endValue=t.text&&"all"===t.text.toLowerCase()?e.control.seriesXMax:e.control.endValue,e.selectedIndex=e.nodes.childNodes.length-s.length+o;var r=e.control.rangeSlider;r&&(r.selectedPeriod=t.text)}}),!i&&"stockChart"!==e.rootControl.getModuleName()){var o=e.findSelectedIndex(e.control.startValue,e.control.endValue,s);e.selectedIndex=o||e.selectedIndex}e.setSelectedStyle(e.selectedIndex)}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(n),this.triggerChange=!0,o&&(this.datePicker=new l.DateRangePicker({min:this.isDatetimeCategory?new Date(this.sortedData[this.control.seriesXMin]):new Date(this.control.seriesXMin),max:this.isDatetimeCategory?new Date(this.sortedData[this.control.seriesXMax]):new Date(this.control.seriesXMax),format:"dd/MM/yyyy",placeholder:"Select a range",showClearButton:!1,startDate:this.isDatetimeCategory?new Date(this.sortedData[Math.floor(this.control.startValue)]):new Date(this.control.startValue),endDate:this.isDatetimeCategory?new Date(this.sortedData[Math.floor(this.control.endValue)]):new Date(this.control.endValue),created:function(){if(p.enableCustomFormat){for(var i=document.getElementsByClassName("e-date-range-wrapper"),o=void 0,n=0;n<i.length;n++)-1!==i[n].children[0].id.indexOf(r)&&(o=i[n]);o.style.display="none";var a=t.createElement("div",{id:c,className:"e-control e-btn e-dropdown-btn e-flat",styles:"font-size: 14px; font-weight: 500; text-transform: none "});a.innerText=p.content,o.insertAdjacentElement("afterend",a),he(c).insertAdjacentElement("afterbegin",t.createElement("span",{id:r+"dateIcon",className:"e-input-group-icon e-range-icon e-btn-icon e-icons",styles:"font-size: 16px; min-height: 0px; margin: -3px 0 0 0; outline: none; min-width: 30px"})),document.getElementById(c).onclick=function(){e.datePicker.show(he(c))}}},change:function(t){if(e.triggerChange&&(e.isDatetimeCategory&&(e.startValue=t.startDate.getTime(),e.endValue=t.endDate.getTime(),e.findPeriodValue(e.startValue,e.endValue)),e.control.rangeSlider&&t.event?("stockChart"!==e.rootControl.getModuleName()&&(e.control.rangeNavigatorControl.startValue=e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.control.rangeNavigatorControl.endValue=e.isDatetimeCategory?e.endValue:t.endDate.getTime(),e.selectedIndex=void 0,e.selectedPeriod=null,e.control.rangeNavigatorControl.refresh()),e.control.rangeSlider.performAnimation(e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.isDatetimeCategory?e.endValue:t.endDate.getTime(),e.control.rangeNavigatorControl)):t.event&&e.rootControl.rangeChanged(e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.isDatetimeCategory?e.endValue:t.endDate.getTime()),e.nodes=e.toolbar.element.querySelectorAll(".e-toolbar-left")[0],!e.rootControl.resizeTo&&e.control.rangeSlider&&e.control.rangeSlider.isDrag))for(var i=0,o=e.nodes.childNodes.length;i<o;i++)e.nodes.childNodes[i].childNodes[0].classList.remove("e-active"),e.nodes.childNodes[i].childNodes[0].classList.remove("e-active")}}),this.datePicker.appendTo("#"+this.calendarId))},e.prototype.findPeriodValue=function(e,t){for(i=0;i<this.sortedData.length;i++)if(this.sortedData[i]>=e){this.startValue=i;break}for(var i=this.sortedData.length-1;i>=0;i--)if(this.sortedData[i]<=t){this.endValue=i;break}},e.prototype.findSelectedIndex=function(e,t,i){for(var o,r=(t-e)/864e5,n=0;n<i.length;n++){var a=i[n];"Years"===a.intervalType&&r/365===a.interval?o=n:"Months"!==a.intervalType||r/30!==a.interval&&r/31!==a.interval?"Days"===a.intervalType&&r===a.interval?o=n:"Weeks"===a.intervalType&&r/7===a.interval?o=n:"Hours"===a.intervalType&&24*r===a.interval?o=n:"Seconds"===a.intervalType&&24*r*3600===a.interval&&(o=n):o=n}return o},e.prototype.updateCustomElement=function(){var e=[],i=this.rootControl.element.id,o="text-transform: none; text-overflow: unset",r="e-dropdown-btn e-btn e-flat";if("stockChart"===this.rootControl.getModuleName()){if(this.rootControl.seriesType.length){var n=t.createElement("button",{id:i+"_seriesType",styles:o,className:r});n.innerText="Series",e.push({template:n,align:"Left"})}if(this.rootControl.indicatorType.length){var a=t.createElement("button",{id:i+"_indicatorType",styles:o,className:r});a.innerText="Indicators",e.push({template:a,align:"Left"})}if(this.rootControl.trendlineType.length){var l=t.createElement("button",{id:i+"_trendType",styles:o,className:r});l.innerText="Trendline",e.push({template:l,align:"Left"})}}return e},e.prototype.setSelectedStyle=function(e){for(var i=0,o=this.nodes.childNodes.length;i<o;i++)this.nodes.childNodes[i].childNodes[0].classList.remove("e-active");t.isNullOrUndefined(e)||(this.nodes.childNodes[e].childNodes[0].classList.add("e-flat"),this.nodes.childNodes[e].childNodes[0].classList.add("e-active"))},e.prototype.buttonClick=function(e,i){var o,r,n=this,a=e.item,l=this.control.rangeSlider,s=this.control.periods,h=s.filter(function(e){return e.text===a.text});s.map(function(t,i){t.selected&&"stockChart"!==n.rootControl.getModuleName()&&(t.selected=!1),t.text===e.item.text&&(n.selectedIndex=n.nodes.childNodes.length-s.length+i,"stockChart"!==n.rootControl.getModuleName()&&(t.selected=!0))}),""!==e.item.text&&this.setSelectedStyle(this.selectedIndex),l&&a.text&&(l.selectedPeriod=a.text),"all"===a.text.toLowerCase()?(o=i.seriesXMin,r=i.seriesXMax,l?l.performAnimation(o,r,this.control.rangeNavigatorControl):this.rootControl.rangeChanged(o,r)):"ytd"===a.text.toLowerCase()?l?(o=this.isDatetimeCategory?new Date(new Date(this.sortedData[Math.floor(l.currentEnd)]).getFullYear().toString()).getTime():new Date(new Date(l.currentEnd).getFullYear().toString()).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,l.currentEnd):o,r=l.currentEnd,l.performAnimation(o,r,this.control.rangeNavigatorControl)):(o=this.isDatetimeCategory?new Date(new Date(this.sortedData[Math.floor(this.rootControl.currentEnd)]).getFullYear().toString()).getTime():new Date(new Date(this.rootControl.currentEnd).getFullYear().toString()).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,this.rootControl.currentEnd):o,r=this.rootControl.currentEnd,this.rootControl.rangeChanged(o,r)):""!==a.text.toLowerCase()&&(l?(o=this.changedRange(h[0].intervalType,l.currentEnd,h[0].interval).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,l.currentEnd):o,r=l.currentEnd,l.performAnimation(o,r,this.control.rangeNavigatorControl)):(o=this.changedRange(h[0].intervalType,this.rootControl.currentEnd,h[0].interval).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,this.rootControl.currentEnd):o,r=this.rootControl.currentEnd,this.rootControl.rangeChanged(o,r))),"stockChart"===this.rootControl.getModuleName()&&(this.rootControl.zoomChange=!1),he(this.calendarId+"_popup")&&!t.Browser.isDevice&&(he(this.calendarId+"_popup").querySelectorAll(".e-range-header")[0].style.display="none")},e.prototype.findStartValue=function(e,t){for(var i=Math.floor(t);i>=0;i--)if(this.sortedData[i]<=e)return i+1;return 0},e.prototype.changedRange=function(e,t,i){var o=this.isDatetimeCategory?new Date(this.sortedData[Math.floor(t)]):new Date(t);switch(e){case"Quarter":o.setMonth(o.getMonth()-3*i);break;case"Months":o.setMonth(o.getMonth()-i);break;case"Weeks":o.setDate(o.getDate()-7*i);break;case"Days":o.setDate(o.getDate()-i);break;case"Hours":o.setHours(o.getHours()-i);break;case"Minutes":o.setMinutes(o.getMinutes()-i);break;case"Seconds":o.setSeconds(o.getSeconds()-i);break;default:o.setFullYear(o.getFullYear()-i)}return o},e.prototype.getModuleName=function(){return"PeriodSelector"},e.prototype.destroy=function(){},e}(),fl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),vl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},bl=function(e){function o(t,i){var o=e.call(this,t,i)||this;return o.animateSeries=!0,o.chartid=57725,o.redraw=!1,o}return fl(o,e),o.prototype.preRender=function(){if(this.unWireEvents(),this.setCulture(),this.allowServerDataBinding=!1,this.periodSelectorModule&&(this.periodSelectorModule.selectedIndex=null),""===this.element.id){var e=document.getElementsByClassName("e-rangenavigator").length;this.element.id="rangenavigator_"+this.chartid+"_"+e}this.wireEvents()},o.prototype.initPrivateVariables=function(){this.doubleModule=new Mi,this.labels=[],this.rangeSlider=new ml(this),this.chartSeries=new al(this),this.lineSeriesModule=new br,this.rangeAxis=new sl(this)},o.prototype.setCulture=function(){this.intl=new t.Internationalization},o.prototype.setSliderValue=function(){var e="DateTime"===this.valueType,t="DateTimeCategory"===this.valueType,i=this.chartSeries.xAxis.actualRange;this.startValue=this.startValue||t&&0===this.startValue?this.startValue:this.value[0]?e?new Date(this.value[0].toString()).getTime():t?this.getRangeValue(new Date(this.value[0].toString()).getTime(),!0):+this.value[0]:i.min,this.endValue=this.endValue||t&&0===this.endValue?this.endValue:this.value[1]?e?new Date(this.value[1].toString()).getTime():t?this.getRangeValue(new Date(this.value[1].toString()).getTime(),!1):+this.value[1]:i.max},o.prototype.getRangeValue=function(e,t){for(var i=this.chartSeries.xAxis.labels,o=i.length-1;o>=0&&parseInt(i[o],10)>e;)o--;return t?-1!==o?o:this.chartSeries.xAxis.actualRange.min:0===o?this.chartSeries.xAxis.actualRange.max:o},o.prototype.render=function(){var e=this,t={name:"load",rangeNavigator:this,theme:this.theme};this.trigger("load",t,function(){e.setTheme(),e.initPrivateVariables(),e.createRangeSvg(),e.calculateBounds(),e.chartSeries.renderChart(e),g("chartmeasuretext"),e.renderComplete(),e.allowServerDataBinding=!0}),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Range navigator Syncfusion interactive chart.")},o.prototype.setTheme=function(){this.themeStyle=ut(this.theme,this)},o.prototype.createRangeSvg=function(){this.removeSvg(),Xe(this),this.renderChartBackground()},o.prototype.calculateBounds=function(){var e=this.enableGrouping?15:8,t=this.navigatorStyleSettings.thumb,o=i.measureText("tempString",this.labelStyle,this.themeStyle.axisLabelFont).height,r=this.margin,n=!this.series.length,a=!this.disableRangeSelector&&n&&this.tooltip.enable?35:0;this.periodSelectorModule||!this.periodSelectorSettings.periods.length||this.stockChart||(this.periodSelectorModule=new yl(this));var l=this.periodSelectorModule;this.periodSelectorModule&&this.periodSelectorSettings.periods.length>0&&(l.periodSelectorSize={x:0,y:0,height:0,width:0},l.periodSelectorSize.width=this.availableSize.width,l.periodSelectorSize.height=this.periodSelectorSettings.height,l.periodSelectorSize.y="Bottom"===this.periodSelectorSettings.position?this.availableSize.height-l.periodSelectorSize.height:0);var s="Top"===this.periodSelectorSettings.position&&l?l.periodSelectorSize.y+l.periodSelectorSize.height:0,h=0,c=0;this.stockChart&&this.stockChart.stockLegendModule&&this.stockChart.legendSettings.visible&&("Left"===this.stockChart.legendSettings.position?h+=this.stockChart.stockLegendModule.legendBounds.width:"Top"===this.stockChart.legendSettings.position&&(c+=this.stockChart.stockLegendModule.legendBounds.height)),this.bounds=new i.Rect(this.themeStyle.thumbWidth/2+t.border.width+r.left+h,r.top+a+s+c,this.availableSize.width-this.themeStyle.thumbWidth-2*t.border.width-r.left-r.right,this.availableSize.height-r.top-r.bottom-a-(l?l.periodSelectorSize.height:0));var d=("Outside"===this.labelPosition||n?o+e:0)+("Outside"===this.tickPosition||n?this.majorTickLines.height:0);if(this.bounds.height-=d,n){var p=this.enableGrouping?this.bounds.height-(o+e):this.bounds.height;this.bounds.y+=this.themeStyle.thumbHeight>p?(this.themeStyle.thumbHeight-p)/2:0}this.disableRangeSelector&&(this.bounds.y=0,this.bounds.height=this.periodSelectorSettings.periods.length>0?this.periodSelectorSettings.height:0)},o.prototype.renderChart=function(e){void 0===e&&(e=!1),this.chartSeries.renderSeries(this),this.chartSeries.appendSeriesElements(this),this.rangeAxis.renderGridLines(),this.rangeAxis.renderAxisLabels(),this.createSecondaryElement(),this.setSliderValue(),this.renderPeriodSelector(),this.renderSlider(e),this.stockChart||this.element.appendChild(this.svgObject),this.trigger("loaded",{rangeNavigator:this}),this.rangeSlider.setSlider(this.startValue,this.endValue,!1,this.tooltip.enable&&"Always"===this.tooltip.displayMode,e)},o.prototype.renderPeriodSelector=function(){this.periodSelectorModule&&(this.periodSelectorModule.renderSelectorElement(this),this.periodSelectorModule.renderSelector())},o.prototype.createSecondaryElement=function(){if(this.tooltip.enable){var e=this.createElement("div");e.id=this.element.id+"_Secondary_Element",e.style.position="relative",this.element.appendChild(e)}},o.prototype.renderSlider=function(e){this.rangeSlider.render(this),this.periodSelectorModule&&(this.startValue=this.periodSelectorModule.control.startValue,this.endValue=this.periodSelectorModule.control.endValue),this.rangeSlider.setSlider(this.startValue,this.endValue,!0,this.tooltip.enable&&"Always"===this.tooltip.displayMode,e)},o.prototype.removeSvg=function(){he(this.element.id+"_Secondary_Element")&&(t.remove(he(this.element.id+"_Secondary_Element")),this.isReact&&this.clearTemplate());if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);this.svgObject.hasChildNodes()||!this.svgObject.parentNode||this.stockChart||t.remove(this.svgObject)}},o.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.rangeOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.rangeOnMouseClick),t.EventHandler.remove(this.element,r,this.mouseLeave),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.rangeResize)},o.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.rangeOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.rangeOnMouseClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.rangeResize.bind(this));var i=this.element;i.style.touchAction="none",i.style.msTouchAction="none",i.style.msContentZooming="none",i.style.msUserSelect="none",i.style.webkitUserSelect="none",i.style.position="relative",i.style.display="block"},o.prototype.rangeResize=function(){var e=this;if(!document.getElementById(this.element.id)||!this.svgObject)return!1;this.animateSeries=!1,this.removeAllTooltip();var t={name:"beforeResize",cancelResizedEvent:!1};this.resizeTo&&clearTimeout(this.resizeTo);var o={rangeNavigator:this,name:"resized",currentSize:new i.Size(0,0),previousSize:new i.Size(this.availableSize.width,this.availableSize.height)};return this.trigger("beforeResize",t),t.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);e.createRangeSvg(),o.currentSize=e.availableSize,e.trigger("resized",o),e.calculateBounds(),e.chartSeries.processXAxis(e),e.chartSeries.calculateGroupingBounds(e),e.chartSeries.processYAxis(e),e.renderChart(!0)},500)),!1},o.prototype.removeAllTooltip=function(){this.tooltip.enable&&"Always"===this.tooltip.displayMode&&(he(this.element.id+"_leftTooltip")&&t.remove(he(this.element.id+"_leftTooltip")),he(this.element.id+"_rightTooltip")&&t.remove(he(this.element.id+"_rightTooltip")))},o.prototype.mouseMove=function(e){return!this.stockChart&&(he(this.stockChart?this.element.id:this.element.id+"_svg")&&(this.mouseX=this.setMouseX(e),this.notify(t.Browser.touchMoveEvent,e)),!1)},o.prototype.mouseLeave=function(e){var i=this.rangeSlider;if(i.isDrag){if(this.stockChart)return!1;var o=i.control.tooltip.enable;i.control.allowSnapping&&(i.isDrag=!1,i.setAllowSnapping(i.control,i.currentStart,i.currentEnd,!1,o)),i.triggerEvent(this.chartSeries.xAxis.actualRange)}var r=t.Browser.isPointer?"pointerleave":"mouseleave";return this.mouseX=this.setMouseX(e),this.notify(r,e),!1},o.prototype.rangeOnMouseClick=function(e){return this.notify("click",e),!1},o.prototype.print=function(e){new Jo(this).print(e)},o.prototype.export=function(e,t,i,o,r,n,a){o=o||[this],new Fa(this).export(e,t,i,o,r,n,a)},o.prototype.renderChartBackground=function(){var e=0,t=0;this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?e+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(t+=this.stockChart.stockLegendModule.legendBounds.width));var o=new co(this.element.id+"_ChartBorder",this.background||this.themeStyle.background,{width:0,color:"transparent"},1,new i.Rect(t,e,this.availableSize.width,this.availableSize.height));this.svgObject.appendChild(this.renderer.drawRectangle(o))},o.prototype.rangeOnMouseDown=function(e){return this.mouseDownX=this.setMouseX(e),this.notify(t.Browser.touchStartEvent,e),!1},o.prototype.mouseEnd=function(e){return this.mouseX=this.setMouseX(e),this.notify(t.Browser.touchEndEvent,e),!1},o.prototype.setMouseX=function(e){var t=e.type.indexOf("touch")>-1?e.changedTouches[0].clientX:e.clientX,i=this.element.getBoundingClientRect(),o=this.stockChart?he(this.element.id).getBoundingClientRect():he(this.element.id+"_svg").getBoundingClientRect();return t-i.left-Math.max(o.left-i.left,0)},o.prototype.getPersistData=function(){var e=["loaded"];return this.addOnPersist(e)},o.prototype.onPropertyChanged=function(t){var i=!1,o=!1,r=!1;this.animateSeries=!1;for(var n=0,a=Object.keys(t);n<a.length;n++)switch(a[n]){case"width":case"height":case"navigatorBorder":case"enableGrouping":case"labelPosition":case"tickPosition":case"labelStyle":o=!0;break;case"enableRtl":case"xName":case"yName":case"query":case"minimum":case"maximum":case"interval":case"intervalType":case"logBase":case"valueType":case"majorGridLines":case"minorGridLines":case"navigatorStyleSettings":case"labelFormat":case"skeleton":case"skeletonType":case"secondaryLabelAlignment":case"background":i=!0;break;case"dataSource":case"series":i=!0,o=!0;break;case"theme":this.animateSeries=!0;break;case"locale":e.prototype.refresh.call(this);break;case"value":this.startValue=null,this.endValue=null,r=!0,this.redraw=!0}!o&&i&&(this.removeSvg(),this.chartSeries.xMin=1/0,this.chartSeries.xMax=-1/0,this.chartSeries.renderChart(this)),o&&i&&(this.removeSvg(),this.chartSeries.xMin=this.chartSeries.yMin=1/0,this.chartSeries.xMax=this.chartSeries.yMax=-1/0,this.calculateBounds(),this.chartSeries.renderChart(this)),o&&!i&&(this.removeSvg(),this.calculateBounds(),this.chartSeries.renderChart(this)),o||i||!r||(this.setSliderValue(),this.rangeSlider.setSlider(this.startValue,this.endValue,!0,this.tooltip.enable&&"Always"===this.tooltip.displayMode))},o.prototype.requiredModules=function(){var e=this,t=[];return this.series.map(function(i){"Area"!==i.type&&"StepLine"!==i.type||t.push({member:i.type+"Series",args:[e]})}),this.periodSelectorSettings.periods.length>0&&t.push({member:"PeriodSelector",args:[this]}),"Double"!==this.valueType&&t.push({member:this.valueType,args:[this]}),this.tooltip.enable&&t.push({member:"RangeTooltip",args:[this]}),t},o.prototype.getModuleName=function(){return"rangeNavigator"},o.prototype.destroy=function(){this.unWireEvents(),this.isReact&&this.clearTemplate(),this.rangeSlider.destroy(),e.prototype.destroy.call(this),this.element.innerText="",this.element.classList.remove("e-rangenavigator")},vl([t.Property(null)],o.prototype,"width",void 0),vl([t.Property(null)],o.prototype,"height",void 0),vl([t.Property(null)],o.prototype,"dataSource",void 0),vl([t.Property(null)],o.prototype,"xName",void 0),vl([t.Property(null)],o.prototype,"yName",void 0),vl([t.Property()],o.prototype,"query",void 0),vl([t.Collection([],dl)],o.prototype,"series",void 0),vl([t.Complex({},gl)],o.prototype,"tooltip",void 0),vl([t.Property(null)],o.prototype,"minimum",void 0),vl([t.Property(null)],o.prototype,"maximum",void 0),vl([t.Property(null)],o.prototype,"interval",void 0),vl([t.Property("Auto")],o.prototype,"intervalType",void 0),vl([t.Property("Hide")],o.prototype,"labelIntersectAction",void 0),vl([t.Property(10)],o.prototype,"logBase",void 0),vl([t.Property("Double")],o.prototype,"valueType",void 0),vl([t.Property("Outside")],o.prototype,"labelPosition",void 0),vl([t.Property("Auto")],o.prototype,"labelPlacement",void 0),vl([t.Property(500)],o.prototype,"animationDuration",void 0),vl([t.Property(!1)],o.prototype,"enableGrouping",void 0),vl([t.Property(!1)],o.prototype,"enableDeferredUpdate",void 0),vl([t.Property(!1)],o.prototype,"disableRangeSelector",void 0),vl([t.Property(!1)],o.prototype,"allowSnapping",void 0),vl([t.Property(!1)],o.prototype,"allowIntervalData",void 0),vl([t.Property(!1)],o.prototype,"useGroupingSeparator",void 0),vl([t.Property()],o.prototype,"groupBy",void 0),vl([t.Property("Outside")],o.prototype,"tickPosition",void 0),vl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],o.prototype,"labelStyle",void 0),vl([t.Complex({},$i)],o.prototype,"majorGridLines",void 0),vl([t.Complex({},eo)],o.prototype,"majorTickLines",void 0),vl([t.Complex({},ul)],o.prototype,"navigatorStyleSettings",void 0),vl([t.Complex({},wi)],o.prototype,"periodSelectorSettings",void 0),vl([t.Complex({color:null,width:1},hi)],o.prototype,"navigatorBorder",void 0),vl([t.Property("Material")],o.prototype,"theme",void 0),vl([t.Property([])],o.prototype,"value",void 0),vl([t.Property(null)],o.prototype,"background",void 0),vl([t.Property("")],o.prototype,"labelFormat",void 0),vl([t.Property("")],o.prototype,"skeleton",void 0),vl([t.Property("DateTime")],o.prototype,"skeletonType",void 0),vl([t.Property("Middle")],o.prototype,"secondaryLabelAlignment",void 0),vl([t.Complex({top:5,bottom:5,right:5,left:5},di)],o.prototype,"margin",void 0),vl([t.Event()],o.prototype,"load",void 0),vl([t.Event()],o.prototype,"loaded",void 0),vl([t.Event()],o.prototype,"resized",void 0),vl([t.Event()],o.prototype,"beforeResize",void 0),vl([t.Event()],o.prototype,"labelRender",void 0),vl([t.Event()],o.prototype,"changed",void 0),vl([t.Event()],o.prototype,"tooltipRender",void 0),vl([t.Event()],o.prototype,"selectorRender",void 0),vl([t.Event()],o.prototype,"beforePrint",void 0),o=vl([t.NotifyPropertyChanges],o)}(t.Component),xl=function(){function e(e){this.stockChart=e}return e.prototype.initializeChart=function(e){var i=this,r=this.stockChart,n=null,a=null;if(r.isProtectedOnChange=!0,r.chartObject){for(var l=document.getElementById(r.chartObject.id);l.firstChild;)l.removeChild(l.firstChild);he(r.chartObject+"_tooltip")&&t.remove(he(r.chartObject+"_tooltip"))}else r.chartObject=r.renderer.createGroup({id:r.element.id+"_stockChart_chart"}),r.mainObject.appendChild(r.chartObject);if(this.stockChart.isDateTimeCategory="DateTimeCategory"===this.stockChart.primaryXAxis.valueType,this.stockChart.isDateTimeCategory&&!this.stockChart.sortedData.length){for(var s=0,h=this.stockChart.series;s<h.length;s++)for(var c=h[s],d=c.dataSource,p=c.xName,u=0,g=d;u<g.length;u++){var m=g[u],y=Date.parse(new Date(o.DataUtil.parse.parseJson({val:m[p]}).val).toString());-1===this.stockChart.sortedData.indexOf(y)&&this.stockChart.sortedData.push(y)}this.stockChart.sortedData.sort(function(e,t){return e-t})}if(this.cartesianChartSize=this.calculateChartSize(),r.chart=new nr({chartArea:r.chartArea,margin:this.findMargin(r),primaryXAxis:this.copyObject(r.primaryXAxis),primaryYAxis:this.copyObject(r.primaryYAxis),rows:r.rows,indicators:r.indicators,axes:r.axes,tooltipRender:function(e){i.stockChart.trigger("tooltipRender",e)},axisLabelRender:function(e){i.stockChart.trigger("axisLabelRender",e)},seriesRender:function(t){n=null!=i.stockChart.startValue&&i.stockChart.isDateTimeCategory?i.stockChart.sortedData[Math.floor(i.stockChart.startValue)]:i.stockChart.startValue,a=null!=i.stockChart.endValue&&i.stockChart.isDateTimeCategory?i.stockChart.sortedData[Math.floor(i.stockChart.endValue)]:i.stockChart.endValue,t.data&&n&&a&&(t.data=t.data.filter(function(e){return new Date(o.DataUtil.parse.parseJson({val:e[t.series.xName]}).val).getTime()>=n&&new Date(o.DataUtil.parse.parseJson({val:e[t.series.xName]}).val).getTime()<=a})),t.data=e||t.data,i.stockChart.trigger("seriesRender",t)},onZooming:function(e){i.stockChart.trigger(Ii,e)},pointClick:function(e){i.stockChart.trigger("pointClick",e)},pointMove:function(e){i.stockChart.trigger("pointMove",e)},dataSource:r.dataSource,series:this.findSeriesCollection(r.series),zoomSettings:this.copyObject(r.zoomSettings),tooltip:r.tooltip,crosshair:r.crosshair,height:this.cartesianChartSize.height.toString(),selectedDataIndexes:r.selectedDataIndexes,selectionMode:r.selectionMode,isMultiSelect:r.isMultiSelect,annotations:r.annotations,theme:r.theme,legendSettings:{visible:!1},enableRtl:r.enableRtl,zoomComplete:function(e){if(-1!==e.axis.valueType.indexOf("DateTime")&&r.rangeNavigator){i.stockChart.zoomChange=!0;var t=i.calculateUpdatedRange(e.currentZoomFactor,e.currentZoomPosition,e.axis);r.rangeSelector.sliderChange(t.start,t.end)}}}),0!==r.indicators.length){if(r.isSelect)for(var f=0;f<r.indicators.length;f++)r.chart.indicators[f].animation.enable=!1,r.chart.indicators[f].dataSource=t.extend([],r.chart.series[0].dataSource,null,!0);r.isSelect=!0}r.chart.stockChart=r,r.chart.appendTo(r.chartObject),r.isProtectedOnChange=!1,r.onPanning&&(he(this.stockChart.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),r.chart.mouseMove(r.mouseMoveEvent))},e.prototype.findMargin=function(e){var t={};return t.top=e.stockLegendModule&&e.legendSettings.visible&&"Top"===e.legendSettings.position?e.margin.top:2*e.margin.top,t.left=e.margin.left,t.right=e.margin.right,t.bottom=e.margin.bottom,t},e.prototype.findSeriesCollection=function(e){for(var t=[],i=0,o=e.length;i<o;i++)t.push(e[i]),t[i].high=e[i].high,t[i].low=e[i].low,t[i].open=e[i].open,t[i].close=e[i].close,t[i].xName=e[i].xName,t[i].volume=e[i].volume,t[i].animation=e[i].animation,e[i].localData&&(t[i].dataSource=e[i].localData),t[i].yName=""===e[i].yName?e[i].close:e[i].yName,t[i].splineType="Spline"===t[i].type?"Cardinal":"Natural";return t},e.prototype.calculateChartSize=function(){var e=this.stockChart;return new i.Size(e.availableSize.width,e.enablePeriodSelector&&e.enableSelector?e.availableSize.height-e.toolbarHeight-51:e.enableSelector&&!e.enablePeriodSelector?e.availableSize.height-51:e.enablePeriodSelector&&!e.enableSelector?e.availableSize.height-e.toolbarHeight:e.availableSize.height)},e.prototype.calculateUpdatedRange=function(e,t,i){var o,r,n=i.actualRange;return r=(o=n.min+t*n.delta)+e*n.delta,this.stockChart.isDateTimeCategory&&(o=this.stockChart.sortedData.indexOf(parseInt(i.labels[Math.floor(o)],10)),r=this.stockChart.sortedData.indexOf(parseInt(i.labels[Math.floor(r)],10))),{start:o,end:r}},e.prototype.cartesianChartRefresh=function(e,t){e.cartesianChart.initializeChart(t)},e.prototype.copyObject=function(e){return t.extend({},e,{},!0)},e}(),Sl=function(){function e(e){this.stockChart=e}return e.prototype.initializeRangeNavigator=function(){var e=this,i=this.stockChart;i.chart.axisCollections[1].labelPadding,i.chart.axisCollections[1].lineStyle.width;if(i.selectorObject){for(var o=document.getElementById(i.selectorObject.id);o.firstChild;)o.removeChild(o.firstChild);he(i.selectorObject.id+"_leftTooltip")&&t.remove(he(i.selectorObject.id+"_leftTooltip")),he(i.selectorObject.id+"_rightTooltip")&&t.remove(he(i.selectorObject.id+"_rightTooltip"))}else i.selectorObject=i.renderer.createGroup({id:i.element.id+"_stockChart_rangeSelector",transform:"translate(0,"+i.cartesianChart.cartesianChartSize.height+")"}),i.mainObject.appendChild(i.selectorObject);i.rangeNavigator=new bl({locale:"en",valueType:i.primaryXAxis.valueType,theme:this.stockChart.theme,series:this.findSeriesCollection(i.series),height:this.calculateChartSize().height.toString(),tickPosition:"Inside",majorTickLines:{width:0},value:[i.isDateTimeCategory?new Date(i.sortedData[Math.floor(i.startValue)]):new Date(i.startValue),i.isDateTimeCategory?new Date(i.sortedData[Math.floor(i.endValue)]):new Date(i.endValue)],margin:this.findMargin(),tooltip:{enable:i.tooltip.enable,displayMode:"OnDemand"},labelPlacement:"OnTicks",labelPosition:"Inside",dataSource:i.dataSource,intervalType:i.primaryXAxis.intervalType,enableRtl:i.enableRtl,changed:function(t){var o={name:"rangeChange",end:t.end,selectedData:t.selectedData,start:t.start,zoomFactor:t.zoomFactor,zoomPosition:t.zoomPosition,data:void 0};e.stockChart.trigger("rangeChange",o),e.stockChart.startValue=t.start,e.stockChart.endValue=t.end,e.stockChart.zoomChange||e.stockChart.cartesianChart.cartesianChartRefresh(e.stockChart,o.data),i.periodSelector&&i.periodSelector.datePicker&&(i.periodSelector.datePicker.startDate=e.stockChart.isDateTimeCategory?new Date(e.stockChart.sortedData[Math.floor(t.start)]):new Date(t.start),i.periodSelector.datePicker.endDate=e.stockChart.isDateTimeCategory?new Date(e.stockChart.sortedData[Math.floor(t.end)]):new Date(t.end),i.periodSelector.datePicker.dataBind())}}),i.rangeNavigator.stockChart=i,i.rangeNavigator.appendTo(i.selectorObject)},e.prototype.findMargin=function(){var e={};return e.top=5,e.left=0,e.right=0,e.bottom=0,e},e.prototype.findSeriesCollection=function(e){for(var t=[],i=0,o=e.length;i<o;i++)t.push(e[i]),t[i].xName=e[i].xName,t[i].yName=e[i].yName;return t},e.prototype.calculateChartSize=function(){var e=this.stockChart;return new i.Size(e.availableSize.width,e.enableSelector?51:0)},e.prototype.sliderChange=function(e,t){this.stockChart.rangeNavigator.rangeSlider.performAnimation(e,t,this.stockChart.rangeNavigator)},e}(),Cl=function(){function e(e){this.selectedSeries="",this.selectedIndicator="",this.selectedTrendLine="",this.indicators=[],this.stockChart=e,this.selectedSeries=this.stockChart.series[0].type}return e.prototype.initializePeriodSelector=function(){var e=this.stockChart.tempPeriods;this.stockChart.periods=e,this.stockChart.periodSelector.rootControl=this.stockChart;var t=this.stockChart.chart.chartAxisLayoutPanel.seriesClipRect,i=he(this.stockChart.element.id+"_Secondary_Element"),o=this.stockChart.toolbarHeight;this.stockChart.periodSelector.appendSelector({thumbSize:0,element:i,width:t.width,height:o},t.x),this.stockChart.seriesType.length>0&&this.initializeSeriesSelector(),this.initializeIndicatorSelector(),this.stockChart.trendlineType.length>0&&this.initializeTrendlineSelector(),this.exportButton()},e.prototype.getDropDownItems=function(e){var t=[];if(e===this.stockChart.seriesType){for(r=0;r<e.length;r++)t.push({text:"&nbsp;&nbsp;&nbsp;"+e[r].toString()});for(r=0;r<this.stockChart.series.length;r++)for(i=0;i<t.length;i++)(o="OHLC"===(o=t[i].text.replace("&nbsp;&nbsp;&nbsp;",""))?"HiloOpenClose":o)===this.stockChart.series[r].type&&(t[i].text=t[i].text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;"))}else if(e===this.stockChart.indicatorType){for(r=0;r<e.length;r++)t.push({text:"&nbsp;&nbsp;&nbsp;"+e[r].toString()});for(r=0;r<this.stockChart.indicators.length;r++)for(var i=0;i<t.length;i++){var o=t[i].text.replace("&nbsp;&nbsp;&nbsp;","");(o="Accumulation distribution"===(o=o.toLowerCase().replace(/(^\w|_\w)/g,function(e){return e.toUpperCase()}).replace(/_/g,""))?"AccumulationDistribution":"Bollinger bands"===o?"BollingerBands":o)===this.stockChart.indicators[r].type&&(t[i].text=t[i].text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;"),this.indicators.push(o))}}else if(e===this.stockChart.exportType)for(r=0;r<e.length;r++)t.push({text:e[r].toString()});else for(var r=0;r<e.length;r++)"Print"!==e[r].toString()&&t.push({text:"&nbsp;&nbsp;&nbsp;"+e[r].toString()});return t},e.prototype.addedSeries=function(e){for(var t=this.stockChart.series,i=0;i<t.length;i++)if("volume"!==t[i].yName){t[i].type=e.indexOf("Candle")>-1?"Candle":e.indexOf("OHLC")>-1?"HiloOpenClose":e,t[i].enableSolidCandles="Candle"===e;for(var o=0;o<t[i].trendlines.length;o++){var r=t[i].trendlines[o];r.animation.enable=!1,r.enableTooltip=!1}}},e.prototype.initializeSeriesSelector=function(){var e=this;this.stockChart.seriesType.indexOf("HiloOpenClose")>-1&&(this.stockChart.seriesType[this.stockChart.seriesType.indexOf("HiloOpenClose")]="OHLC"),this.stockChart.seriesType.indexOf("Candle")>-1&&-1===this.stockChart.seriesType.indexOf("Hollow Candle")&&(this.stockChart.seriesType[this.stockChart.seriesType.length]="Hollow Candle"),new s.DropDownButton({enableHtmlSanitizer:!1,items:this.getDropDownItems(this.stockChart.seriesType),select:function(t){e.selectedSeries=t.item.text;var i=e.tickMark(t);if(e.addedSeries(i),e.stockChart.cartesianChart.initializeChart(),e.stockChart.stockLegendModule&&e.stockChart.stockLegendModule.legendCollections.length&&e.stockChart.legendSettings.visible){var o=e.stockChart.stockLegendModule.legendBounds;e.stockChart.stockLegendModule.renderLegend(e.stockChart,e.stockChart.legendSettings,o)}}}).appendTo("#"+this.stockChart.element.id+"_seriesType")},e.prototype.initializeTrendlineSelector=function(){var e=this;this.trendlineDropDown=new s.DropDownButton({enableHtmlSanitizer:!1,items:this.stockChart.resizeTo?this.trendlineDropDown.items:this.getDropDownItems(this.stockChart.trendlineType),select:function(t){var i=e.tickMark(t);if(e.selectedTrendLine=""===e.selectedTrendLine?i:e.selectedTrendLine+","+i,e.trendline!==i){e.trendline=i;for(var o=0;o<e.stockChart.series.length;o++)if("volume"!==e.stockChart.series[o].yName)if(0===e.stockChart.series[0].trendlines.length){var r=void 0;e.stockChart.trendlinetriggered&&(r=[{type:i,width:1,enableTooltip:!1}],e.stockChart.trendlinetriggered=!1),e.stockChart.series[0].trendlines=r}else e.stockChart.series[0].trendlines[0].width=1,e.stockChart.series[0].trendlines[0].type=i,e.stockChart.series[0].trendlines[0].animation.enable=!!e.stockChart.trendlinetriggered;e.stockChart.cartesianChart.initializeChart()}else t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text.replace("&#10004&nbsp;",""),e.stockChart.series[0].trendlines[0].width=0,e.trendline=null,e.stockChart.cartesianChart.initializeChart()}}),this.trendlineDropDown.appendTo("#"+this.stockChart.element.id+"_trendType")},e.prototype.initializeIndicatorSelector=function(){var e=this;this.indicatorDropDown=new s.DropDownButton({enableHtmlSanitizer:!1,items:this.stockChart.resizeTo?this.indicatorDropDown.items:this.getDropDownItems(this.stockChart.indicatorType),select:function(t){for(var i=0;i<e.stockChart.series.length;i++)0!==e.stockChart.series[i].trendlines.length&&(e.stockChart.series[i].trendlines[0].animation.enable=!1);t.item.text=t.item.text.indexOf("&#10004&nbsp;")>=0?t.item.text.substr(t.item.text.indexOf(";")+1):t.item.text;var o=t.item.text.replace("&nbsp;&nbsp;&nbsp;",""),r=o=(o=o.split(" ")[0].toLocaleLowerCase()+(o.split(" ")[1]?o.split(" ")[1]:"")).substr(0,1).toUpperCase()+o.substr(1);if(e.selectedIndicator=-1===e.selectedIndicator.indexOf(r)?e.selectedIndicator+" "+r:e.selectedIndicator.replace(r,""),"Tma"===r||"BollingerBands"===r||"Sma"===r||"Ema"===r)if(-1===e.indicators.indexOf(r)){t.item.text="&#10004&nbsp;"+t.item.text.replace("&nbsp;&nbsp;&nbsp;","");var n=e.getIndicator(r,e.stockChart.series[0].yAxisName);e.indicators.push(r),e.stockChart.indicators=e.stockChart.indicators.concat(n),e.stockChart.cartesianChart.initializeChart()}else{t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text;for(var a=0;a<e.stockChart.indicators.length;a++)e.stockChart.indicators[a].type===r&&e.stockChart.indicators.splice(a,1);e.indicators.splice(e.indicators.indexOf(r),1),e.stockChart.cartesianChart.initializeChart()}else e.createIndicatorAxes(r,t)}}),this.indicatorDropDown.appendTo("#"+this.stockChart.element.id+"_indicatorType")},e.prototype.getIndicator=function(e,t){var i=this.stockChart.series[0];return[{type:e,period:3,yAxisName:t,dataSource:i.localData,xName:i.xName,open:i.open,close:i.close,high:i.high,low:i.low,volume:i.volume,fill:"Sma"===e?"#32CD32":"#6063ff",animation:{enable:!1},upperLine:{color:"#FFE200",width:1},periodLine:{width:2},lowerLine:{color:"#FAA512",width:1},fastPeriod:8,slowPeriod:5,macdType:"Both",width:1,macdPositiveColor:"#6EC992",macdNegativeColor:"#FF817F",bandColor:"rgba(245, 203, 35, 0.12)"}]},e.prototype.createIndicatorAxes=function(e,t){if(-1===this.indicators.indexOf(e)){t.item.text="&#10004&nbsp;"+t.item.text.replace("&nbsp;&nbsp;&nbsp;",""),this.indicators.push(e);var i=this.stockChart.rows.length;this.stockChart.rows[this.stockChart.rows.length-1].height="15%";var o=[{height:100-15*i+"px"}];if(1===this.stockChart.rows.length&&(this.stockChart.isSingleAxis=!0),this.stockChart.rows=this.stockChart.rows.concat(o),this.stockChart.isSingleAxis)for(a=0;a<this.stockChart.axes.length;a++)this.stockChart.axes[a].rowIndex+=1;else this.stockChart.axes[0].rowIndex+=1;var r=[{plotOffset:10,opposedPosition:!0,rowIndex:this.stockChart.isSingleAxis?0:this.stockChart.axes.length,desiredIntervals:1,labelFormat:"n2",majorGridLines:this.stockChart.primaryYAxis.majorGridLines,lineStyle:this.stockChart.primaryYAxis.lineStyle,labelPosition:this.stockChart.primaryYAxis.labelPosition,majorTickLines:this.stockChart.primaryYAxis.majorTickLines,rangePadding:"None",name:e.toString()}];this.stockChart.axes=this.stockChart.axes.concat(r),this.stockChart.primaryYAxis.rowIndex=this.stockChart.isSingleAxis?i+1:0;var n=this.getIndicator(e,e.toString());this.stockChart.indicators=this.stockChart.indicators.concat(n),this.stockChart.cartesianChart.initializeChart()}else{t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text;for(var a=0;a<this.stockChart.indicators.length;a++)this.stockChart.indicators[a].type===e&&this.stockChart.indicators.splice(a,1);this.indicators.splice(this.indicators.indexOf(e),1);for(var l=0,s=0;s<this.stockChart.axes.length;s++)this.stockChart.axes[s].name===e&&(l=this.stockChart.axes[s].rowIndex,this.stockChart.rows.splice(s,1),this.stockChart.axes.splice(s,1));for(s=0;s<this.stockChart.axes.length;s++)0!==this.stockChart.axes[s].rowIndex&&this.stockChart.axes[s].rowIndex>l&&(this.stockChart.axes[s].rowIndex=this.stockChart.axes[s].rowIndex-1);this.stockChart.cartesianChart.initializeChart()}},e.prototype.tickMark=function(e){for(var t,i=e.item.parentObj.items,o=0;o<i.length;o++)i[o].text=i[o].text.indexOf("&#10004&nbsp;")>=0?i[o].text.substr(i[o].text.indexOf(";")+1):i[o].text,i[o].text.indexOf("&nbsp;&nbsp;&nbsp;")>=0||(i[o].text="&nbsp;&nbsp;&nbsp;"+i[o].text);return e.item.text.indexOf("&nbsp;&nbsp;&nbsp;")>=0?(t=e.item.text.replace("&nbsp;&nbsp;&nbsp;",""),e.item.text=e.item.text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;")):t=e.item.text.replace("&#10004&nbsp;",""),t},e.prototype.exportButton=function(){var e=this;new s.DropDownButton({enableHtmlSanitizer:!1,items:this.getDropDownItems(this.stockChart.exportType),select:function(o){var r=o.item.text;if(e.stockChart.chart.exportModule){var n=e.stockChart,a=n.element.id+"_stockChart_",l=n.svgObject.getBoundingClientRect();e.stockChart.svgObject.insertAdjacentElement("afterbegin",e.addExportSettings("Print"===r));var s=n.svgObject.firstElementChild.getBoundingClientRect(),h=new co("additionalRect","transparent",{width:0,color:"transparent"},1,new i.Rect(0,0,e.stockChart.availableSize.width,s.height));n.svgObject.firstElementChild.insertAdjacentElement("afterbegin",e.stockChart.renderer.drawRectangle(h)),e.stockChart.svgObject.setAttribute("height",(l.height+s.height).toString()),he(a+"chart").style.transform="translateY("+s.height+"px)",n.enableSelector&&he(a+"rangeSelector").setAttribute("transform","translate(0,"+(n.cartesianChart.cartesianChartSize.height+s.height)+")"),e.stockChart.legendSettings.visible&&e.stockChart.stockLegendModule&&(he(n.element.id+"_chart_legend_g").style.transform="translateY("+s.height+"px)"),"Print"===r?e.stockChart.chart.print(e.stockChart.svgObject.id):n.chart.exportModule.export(r,"StockChart",null,[n],null,n.svgObject.clientHeight),t.remove(he(e.stockChart.element.id+"_additionalExport")),he(a+"chart").style.transform="",n.enableSelector&&he(a+"rangeSelector").setAttribute("transform","translate(0,"+n.cartesianChart.cartesianChartSize.height+")"),e.stockChart.legendSettings.visible&&e.stockChart.stockLegendModule&&(he(n.element.id+"_chart_legend_g").style.transform="translateY(0px)"),e.stockChart.svgObject.setAttribute("height",l.height.toString())}}}).appendTo("#"+this.stockChart.element.id+"_export")},e.prototype.calculateAutoPeriods=function(){var e=[],t=this.stockChart.isDateTimeCategory?this.stockChart.sortedData[this.stockChart.seriesXMin]:this.stockChart.seriesXMin,i=this.stockChart.isDateTimeCategory?this.stockChart.sortedData[this.stockChart.seriesXMax]:this.stockChart.seriesXMax;return(e=this.findRange(t,i)).push({text:"YTD",selected:!0},{text:"All"}),e},e.prototype.findRange=function(e,t){var i=[];return(t-e)/3154e7>=1?i.push({text:"1M",interval:1,intervalType:"Months"},{text:"3M",interval:3,intervalType:"Months"},{text:"6M",interval:6,intervalType:"Months"},{text:"1Y",interval:1,intervalType:"Years"}):(t-e)/1577e7>=1?i.push({text:"1M",interval:1,intervalType:"Months"},{text:"3M",interval:3,intervalType:"Months"},{text:"6M",interval:6,intervalType:"Months"}):(t-e)/2628e6>=1?i.push({text:"1D",interval:1,intervalType:"Days"},{text:"3W",interval:3,intervalType:"Weeks"},{text:"1M",interval:1,intervalType:"Months"}):(t-e)/864e5>=1&&i.push({text:"1H",interval:1,intervalType:"Hours"},{text:"12H",interval:12,intervalType:"Hours"},{text:"1D",interval:1,intervalType:"Days"}),i},e.prototype.addExportSettings=function(e){var t=this.stockChart.renderer.createGroup({id:this.stockChart.element.id+"_additionalExport",width:this.stockChart.availableSize.width,fill:this.stockChart.background?this.stockChart.background:"transparent"}),o=i.measureText(this.stockChart.title,this.stockChart.titleStyle,this.stockChart.themeStyle.chartTitleFont).height,r=new i.TextOption(t.id+"_Title",Ye(new i.Rect(0,0,this.stockChart.availableSize.width,0),this.stockChart.titleStyle),0,"middle",this.stockChart.title,"","text-before-edge");if(je(this.stockChart.renderer,r,this.stockChart.titleStyle,this.stockChart.titleStyle.color||this.stockChart.themeStyle.chartTitleFont.color,t,null,null,null,null,null,null,null,null,null,null,this.stockChart.themeStyle.chartTitleFont),e)return t;var n={size:"16px",fontWeight:"600",color:this.stockChart.themeStyle.chartTitleFont.color,fontStyle:"Normal",fontFamily:this.stockChart.themeStyle.chartTitleFont.fontFamily},a=i.measureText("Series: "+this.selectedSeries,n).width/2,l=o;return this.textElementSpan(new i.TextOption(t.id+"_Series",a,l,"start",["Series : ",this.selectedSeries],"","text-before-edge"),n,this.stockChart.themeStyle.chartTitleFont.color,t),a+=i.measureText("Series: "+this.selectedSeries+" Z",n).width,""!==this.selectedIndicator&&(this.textElementSpan(new i.TextOption(t.id+"_Indicator",a,l,"start",["Indicator :",this.selectedIndicator],"","text-before-edge"),n,this.stockChart.themeStyle.chartTitleFont.color,t),a+=i.measureText("Indicator: "+this.selectedIndicator+" Z",n).width),""!==this.selectedTrendLine&&this.textElementSpan(new i.TextOption(t.id+"_TrendLine",a,l,"start",["Trendline :",this.selectedTrendLine],"","text-before-edge"),n,this.stockChart.themeStyle.chartTitleFont.color,t),t},e.prototype.textElementSpan=function(e,t,o,r,n,a,l,s,h){void 0===n&&(n=!1),void 0===s&&(s=!1);var c,d=new i.SvgRenderer(""),p={};p={id:e.id,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,x:e.x,y:e.y,fill:o,"font-size":t.size,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine};var u="string"==typeof e.text?e.text:n?e.text[e.text.length-1]:e.text[0],g=d.createText(p,u);if("string"!=typeof e.text&&e.text.length>1)for(var m=1,y=e.text.length;m<y;m++)e.text[m]=" "+e.text[m],c=d.createTSpan({x:e.x+i.measureText(u,t).width+5,id:e.id,y:e.y,opacity:.5},e.text[m]),g.appendChild(c);return be(!1,r,g,a,l,"x","y",null,null,s,!1,null,h),g},e}(),Fl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),wl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ll=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("")],i.prototype,"color",void 0),wl([t.Property("16px")],i.prototype,"size",void 0),wl([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),wl([t.Property("Normal")],i.prototype,"fontStyle",void 0),wl([t.Property("Normal")],i.prototype,"fontWeight",void 0),wl([t.Property(1)],i.prototype,"opacity",void 0),wl([t.Property("Trim")],i.prototype,"textOverflow",void 0),wl([t.Property("Center")],i.prototype,"textAlignment",void 0),i}(t.ChildProperty),Pl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("")],i.prototype,"color",void 0),wl([t.Property(1)],i.prototype,"width",void 0),i}(t.ChildProperty),Al=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Complex({},Pl)],i.prototype,"border",void 0),wl([t.Property("transparent")],i.prototype,"background",void 0),wl([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Ml=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property(null)],i.prototype,"left",void 0),wl([t.Property(null)],i.prototype,"right",void 0),wl([t.Property(null)],i.prototype,"top",void 0),wl([t.Property(null)],i.prototype,"bottom",void 0),i}(t.ChildProperty),Dl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property(!1)],i.prototype,"startFromAxis",void 0),wl([t.Property(!0)],i.prototype,"visible",void 0),wl([t.Property(null)],i.prototype,"start",void 0),wl([t.Property("#808080")],i.prototype,"color",void 0),wl([t.Property(null)],i.prototype,"end",void 0),wl([t.Property(null)],i.prototype,"size",void 0),wl([t.Property("Auto")],i.prototype,"sizeType",void 0),wl([t.Property(null)],i.prototype,"dashArray",void 0),wl([t.Property(!1)],i.prototype,"isRepeat",void 0),wl([t.Property(null)],i.prototype,"repeatEvery",void 0),wl([t.Property(!1)],i.prototype,"isSegmented",void 0),wl([t.Property(null)],i.prototype,"repeatUntil",void 0),wl([t.Property(null)],i.prototype,"segmentStart",void 0),wl([t.Property(null)],i.prototype,"segmentAxisName",void 0),wl([t.Property(null)],i.prototype,"segmentEnd",void 0),wl([t.Property(1)],i.prototype,"opacity",void 0),wl([t.Property("")],i.prototype,"text",void 0),wl([t.Complex({color:"transparent",width:1},Pl)],i.prototype,"border",void 0),wl([t.Property(null)],i.prototype,"rotation",void 0),wl([t.Property("Behind")],i.prototype,"zIndex",void 0),wl([t.Property("Middle")],i.prototype,"horizontalAlignment",void 0),wl([t.Property("Middle")],i.prototype,"verticalAlignment",void 0),wl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ll)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),kl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property(null)],i.prototype,"fill",void 0),wl([t.Property("Gap")],i.prototype,"mode",void 0),wl([t.Complex({color:"transparent",width:0},Pl)],i.prototype,"border",void 0),i}(t.ChildProperty),Rl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("Line")],i.prototype,"type",void 0),wl([t.Property(null)],i.prototype,"length",void 0),wl([t.Property(null)],i.prototype,"color",void 0),wl([t.Property("")],i.prototype,"dashArray",void 0),wl([t.Property(1)],i.prototype,"width",void 0),i}(t.ChildProperty),Tl=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.localData=void 0,t}return Fl(i,e),wl([t.Property("date")],i.prototype,"xName",void 0),wl([t.Property("close")],i.prototype,"yName",void 0),wl([t.Property("open")],i.prototype,"open",void 0),wl([t.Property("close")],i.prototype,"close",void 0),wl([t.Property("high")],i.prototype,"high",void 0),wl([t.Property("low")],i.prototype,"low",void 0),wl([t.Property("volume")],i.prototype,"volume",void 0),wl([t.Property("")],i.prototype,"pointColorMapping",void 0),wl([t.Property("SeriesType")],i.prototype,"legendShape",void 0),wl([t.Property("")],i.prototype,"legendImageUrl",void 0),wl([t.Complex(null,pi)],i.prototype,"animation",void 0),wl([t.Property(null)],i.prototype,"xAxisName",void 0),wl([t.Property(null)],i.prototype,"yAxisName",void 0),wl([t.Property(null)],i.prototype,"fill",void 0),wl([t.Property("0")],i.prototype,"dashArray",void 0),wl([t.Property(1)],i.prototype,"width",void 0),wl([t.Property("")],i.prototype,"name",void 0),wl([t.Property("")],i.prototype,"dataSource",void 0),wl([t.Property()],i.prototype,"query",void 0),wl([t.Property("#e74c3d")],i.prototype,"bullFillColor",void 0),wl([t.Property("#2ecd71")],i.prototype,"bearFillColor",void 0),wl([t.Property(!1)],i.prototype,"enableSolidCandles",void 0),wl([t.Property(!0)],i.prototype,"visible",void 0),wl([t.Complex({color:"transparent",width:0},hi)],i.prototype,"border",void 0),wl([t.Property(1)],i.prototype,"opacity",void 0),wl([t.Property("Candle")],i.prototype,"type",void 0),wl([t.Complex(null,ko)],i.prototype,"marker",void 0),wl([t.Collection([],Eo)],i.prototype,"trendlines",void 0),wl([t.Property(!0)],i.prototype,"enableTooltip",void 0),wl([t.Property("")],i.prototype,"tooltipMappingName",void 0),wl([t.Property(null)],i.prototype,"selectionStyle",void 0),wl([t.Property(.5)],i.prototype,"cardinalSplineTension",void 0),wl([t.Complex(null,yi)],i.prototype,"cornerRadius",void 0),wl([t.Complex(null,kl)],i.prototype,"emptyPointSettings",void 0),wl([t.Property(null)],i.prototype,"columnWidth",void 0),wl([t.Property(0)],i.prototype,"columnSpacing",void 0),wl([t.Property(!0)],i.prototype,"showNearestTooltip",void 0),wl([t.Complex({},Mo)],i.prototype,"lastValueLabel",void 0),i}(t.ChildProperty),El=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("Sma")],i.prototype,"type",void 0),wl([t.Property(14)],i.prototype,"period",void 0),wl([t.Property(3)],i.prototype,"dPeriod",void 0),wl([t.Property(14)],i.prototype,"kPeriod",void 0),wl([t.Property(80)],i.prototype,"overBought",void 0),wl([t.Property(20)],i.prototype,"overSold",void 0),wl([t.Property("Close")],i.prototype,"field",void 0),wl([t.Property(2)],i.prototype,"standardDeviation",void 0),wl([t.Property(12)],i.prototype,"slowPeriod",void 0),wl([t.Property(!0)],i.prototype,"showZones",void 0),wl([t.Property(26)],i.prototype,"fastPeriod",void 0),wl([t.Complex({color:"#ff9933",width:2},Rl)],i.prototype,"macdLine",void 0),wl([t.Property("Both")],i.prototype,"macdType",void 0),wl([t.Property("#e74c3d")],i.prototype,"macdNegativeColor",void 0),wl([t.Property("#2ecd71")],i.prototype,"macdPositiveColor",void 0),wl([t.Property("rgba(211,211,211,0.25)")],i.prototype,"bandColor",void 0),wl([t.Complex({color:"#ffb735",width:1},Rl)],i.prototype,"upperLine",void 0),wl([t.Property("")],i.prototype,"seriesName",void 0),wl([t.Complex({color:"#f2ec2f",width:1},Rl)],i.prototype,"periodLine",void 0),wl([t.Complex({color:"#f2ec2f",width:1},Rl)],i.prototype,"lowerLine",void 0),wl([t.Property("")],i.prototype,"high",void 0),wl([t.Property("")],i.prototype,"open",void 0),wl([t.Property("")],i.prototype,"low",void 0),wl([t.Property("")],i.prototype,"xName",void 0),wl([t.Property("")],i.prototype,"close",void 0),wl([t.Property("")],i.prototype,"pointColorMapping",void 0),wl([t.Property("")],i.prototype,"volume",void 0),wl([t.Property(null)],i.prototype,"xAxisName",void 0),wl([t.Property(null)],i.prototype,"yAxisName",void 0),wl([t.Complex(null,pi)],i.prototype,"animation",void 0),wl([t.Property(null)],i.prototype,"fill",void 0),wl([t.Property("0")],i.prototype,"dashArray",void 0),wl([t.Property(1)],i.prototype,"width",void 0),wl([t.Property()],i.prototype,"query",void 0),wl([t.Property("")],i.prototype,"dataSource",void 0),i}(t.ChildProperty),_l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Complex({},io)],i.prototype,"crosshairTooltip",void 0),wl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"labelStyle",void 0),wl([t.Property("")],i.prototype,"title",void 0),wl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ll)],i.prototype,"titleStyle",void 0),wl([t.Property("")],i.prototype,"labelFormat",void 0),wl([t.Property("DateTime")],i.prototype,"skeletonType",void 0),wl([t.Property("")],i.prototype,"skeleton",void 0),wl([t.Property(0)],i.prototype,"plotOffset",void 0),wl([t.Property(10)],i.prototype,"logBase",void 0),wl([t.Property(0)],i.prototype,"rowIndex",void 0),wl([t.Property(1)],i.prototype,"span",void 0),wl([t.Property(3)],i.prototype,"maximumLabels",void 0),wl([t.Property(null)],i.prototype,"desiredIntervals",void 0),wl([t.Property(1)],i.prototype,"zoomFactor",void 0),wl([t.Property(0)],i.prototype,"zoomPosition",void 0),wl([t.Property(!1)],i.prototype,"opposedPosition",void 0),wl([t.Property(!0)],i.prototype,"enableAutoIntervalOnZooming",void 0),wl([t.Property("Double")],i.prototype,"valueType",void 0),wl([t.Property("Auto")],i.prototype,"rangePadding",void 0),wl([t.Property("None")],i.prototype,"edgeLabelPlacement",void 0),wl([t.Property("BetweenTicks")],i.prototype,"labelPlacement",void 0),wl([t.Property("Auto")],i.prototype,"intervalType",void 0),wl([t.Property("Outside")],i.prototype,"tickPosition",void 0),wl([t.Property("")],i.prototype,"name",void 0),wl([t.Property("Outside")],i.prototype,"labelPosition",void 0),wl([t.Property(!0)],i.prototype,"visible",void 0),wl([t.Property(0)],i.prototype,"labelRotation",void 0),wl([t.Property(0)],i.prototype,"minorTicksPerInterval",void 0),wl([t.Property(null)],i.prototype,"crossesAt",void 0),wl([t.Property(null)],i.prototype,"crossesInAxis",void 0),wl([t.Property(!0)],i.prototype,"placeNextToAxisLine",void 0),wl([t.Property(null)],i.prototype,"minimum",void 0),wl([t.Property(null)],i.prototype,"interval",void 0),wl([t.Property(null)],i.prototype,"maximum",void 0),wl([t.Property(34)],i.prototype,"maximumLabelWidth",void 0),wl([t.Complex({},eo)],i.prototype,"majorTickLines",void 0),wl([t.Property(!1)],i.prototype,"enableTrim",void 0),wl([t.Complex({},to)],i.prototype,"minorTickLines",void 0),wl([t.Complex({},Ki)],i.prototype,"minorGridLines",void 0),wl([t.Complex({},$i)],i.prototype,"majorGridLines",void 0),wl([t.Complex({},Ji)],i.prototype,"lineStyle",void 0),wl([t.Property(!1)],i.prototype,"isInversed",void 0),wl([t.Property("Trim")],i.prototype,"labelIntersectAction",void 0),wl([t.Property(100)],i.prototype,"coefficient",void 0),wl([t.Property(0)],i.prototype,"startAngle",void 0),wl([t.Property(2)],i.prototype,"tabIndex",void 0),wl([t.Collection([],Dl)],i.prototype,"stripLines",void 0),wl([t.Property(null)],i.prototype,"description",void 0),i}(t.ChildProperty),Il=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("100%")],i.prototype,"height",void 0),wl([t.Complex({},Pl)],i.prototype,"border",void 0),i}(t.ChildProperty),Ol=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property(2)],i.prototype,"period",void 0),wl([t.Property("")],i.prototype,"name",void 0),wl([t.Property("Linear")],i.prototype,"type",void 0),wl([t.Property(2)],i.prototype,"polynomialOrder",void 0),wl([t.Property(0)],i.prototype,"forwardForecast",void 0),wl([t.Property(0)],i.prototype,"backwardForecast",void 0),wl([t.Complex({},pi)],i.prototype,"animation",void 0),wl([t.Property(!0)],i.prototype,"enableTooltip",void 0),wl([t.Complex({},ko)],i.prototype,"marker",void 0),wl([t.Property(null)],i.prototype,"intercept",void 0),wl([t.Property("")],i.prototype,"fill",void 0),wl([t.Property("SeriesType")],i.prototype,"legendShape",void 0),wl([t.Property(1)],i.prototype,"width",void 0),i}(t.ChildProperty),zl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("0")],i.prototype,"y",void 0),wl([t.Property("0")],i.prototype,"x",void 0),wl([t.Property(null)],i.prototype,"content",void 0),wl([t.Property("Chart")],i.prototype,"region",void 0),wl([t.Property("Center")],i.prototype,"horizontalAlignment",void 0),wl([t.Property("Pixel")],i.prototype,"coordinateUnits",void 0),wl([t.Property("Middle")],i.prototype,"verticalAlignment",void 0),wl([t.Property(null)],i.prototype,"yAxisName",void 0),wl([t.Property(null)],i.prototype,"description",void 0),wl([t.Property(null)],i.prototype,"xAxisName",void 0),i}(t.ChildProperty),Bl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property(0)],i.prototype,"point",void 0),wl([t.Property(0)],i.prototype,"series",void 0),i}(t.ChildProperty),Nl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fl(i,e),wl([t.Property("Circle")],i.prototype,"type",void 0),wl([t.Property("")],i.prototype,"text",void 0),wl([t.Property("")],i.prototype,"description",void 0),wl([t.Property()],i.prototype,"date",void 0),wl([t.Complex({color:"black",width:1},Pl)],i.prototype,"border",void 0),wl([t.Property("transparent")],i.prototype,"background",void 0),wl([t.Property(!0)],i.prototype,"showOnSeries",void 0),wl([t.Property("close")],i.prototype,"placeAt",void 0),wl([t.Complex(Fo,Ll)],i.prototype,"textStyle",void 0),wl([t.Property([])],i.prototype,"seriesIndexes",void 0),i}(t.ChildProperty),Vl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hl=function(e){function r(t){var i=e.call(this,t.chart)||this;return i.symbolLocations=[],i.stockChart=t,i.chartId=i.stockChart.element.id,i}return Vl(r,e),r.prototype.renderStockEvents=function(){var e,t,o,r=this.stockChart,n=r.renderer.createGroup({id:this.chartId+"_StockEvents"});this.symbolLocations=gt(r.series.length,r.stockEvents.length,new mo(0,0));for(var a=0;a<r.stockEvents.length;a++){e=this.stockChart.stockEvents[a];for(var l=0,s=r.chart.series;l<s.length;l++){var h=s[l],c={name:"stockEventRender",stockChart:r,text:e.text,type:e.type,cancel:!1,series:h};if(r.trigger("stockEventRender",c),e.text=c.text,e.type=c.type,o=i.measureText(e.text+"W",e.textStyle,this.stockChart.themeStyle.axisLabelFont),!c.cancel){t=r.renderer.createGroup({id:this.chartId+"_Series_"+h.index+"_StockEvents_"+a});var d=this.dateParse(e.date).getTime();if(d=this.stockChart.isDateTimeCategory?h.xAxis.labels.indexOf(d.toString()):d,v(d,h.xAxis.visibleRange)&&d>=h.xMin&&d<=h.xMax)if(e.seriesIndexes.length>0)for(var p=0;p<e.seriesIndexes.length;p++)e.seriesIndexes[p]===h.index&&n.appendChild(this.creatEventGroup(t,h,e,a,o));else n.appendChild(this.creatEventGroup(t,h,e,a,o))}}}return n},r.prototype.creatEventGroup=function(e,t,i,o,r){var n=this.findClosePoint(t,i);return i.showOnSeries||(n.y=t.yAxis.rect.y+t.yAxis.rect.height),this.symbolLocations[t.index][o]=n,this.createStockElements(e,i,t,o,n,r),e},r.prototype.findClosePoint=function(e,t){var i=this.dateParse(t.date).getTime();i=this.stockChart.isDateTimeCategory?e.xAxis.labels.indexOf(i.toString()):i;for(var o,r,n,a=this.getClosest(e,i),l=0;l<e.points.length;l++)a===(r=e.points[l]).xValue&&r.visible?o=new bo(r,e):0!==l&&l!==e.points.length-1&&a>e.points[l-1].xValue&&a<e.points[l+1].xValue&&(o=new bo(r,e));var s=e.xAxis.rect.x+T(o.point.xValue,e.xAxis)*e.xAxis.rect.width;return n=T(o.point[t.placeAt],e.yAxis)*e.yAxis.rect.height,n=-1*n+(e.yAxis.rect.y+e.yAxis.rect.height),new mo(s,n)},r.prototype.createStockElements=function(e,t,o,r,n,a){var l,s,h=new i.Size(a.width>20?a.width:20,a.height>20?a.height:20),c=n.x,d=n.y,p=this.chartId+"_Series_"+o.index+"_StockEvents_"+r,u=t.border;switch(t.type){case"Flag":case"Circle":case"Square":e.appendChild(ne(new mo(c,d),"Circle",new i.Size(2,2),"",new i.PathOption(p+"_Circle","transparent",u.width,u.color),this.dateParse(t.date).toISOString())),e.appendChild(ne(new mo(c,d-5),"VerticalLine",new i.Size(9,9),"",new i.PathOption(p+"_Path",u.color,u.width,u.color),this.dateParse(t.date).toISOString())),e.appendChild(ne(new mo("Flag"!==t.type?c:c+h.width/2,d-h.height),t.type,h,"",new i.PathOption(p+"_Shape",t.background,u.width,u.color),this.dateParse(t.date).toISOString())),je(this.stockChart.renderer,new i.TextOption(p+"_Text","Flag"!==t.type?n.x:n.x+h.width/2,n.y-h.height,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;case"ArrowUp":case"ArrowDown":case"ArrowRight":case"ArrowLeft":l="M "+c+" "+d+" "+this.findArrowpaths(t.type),s=new i.PathOption(p+"_Shape",t.background,u.width,u.color,1,"",l),e.appendChild(this.stockChart.renderer.drawPath(s));break;case"Triangle":case"InvertedTriangle":h.height=3*a.height,h.width=a.width+1.5*a.width,e.appendChild(ne(new mo(n.x,n.y),t.type,new i.Size(20,20),"",new i.PathOption(p+"_Shape",t.background,u.width,u.color),this.dateParse(t.date).toISOString())),je(this.stockChart.renderer,new i.TextOption(p+"_Text",n.x,n.y,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;case"Text":a.height+=8,l="M "+c+" "+d+" L "+(c-5)+" "+(d-5)+" L "+(c-a.width/2)+" "+(d-5)+" L "+(c-a.width/2)+" "+(d-a.height)+" L "+(c+a.width/2)+" "+(d-a.height)+" L "+(c+a.width/2)+" "+(d-5)+" L "+(c+5)+" "+(d-5)+" Z",s=new i.PathOption(p+"_Shape",t.background,u.width,u.color,1,"",l),e.appendChild(this.stockChart.renderer.drawPath(s)),je(this.stockChart.renderer,new i.TextOption(p+"_Text",c,d-a.height/2,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;default:l="M "+c+" "+d+" L "+(c-a.width/2)+" "+(d-a.height/3)+" L "+(c-a.width/2)+" "+(d-a.height)+" L "+(c+a.width/2)+" "+(d-a.height)+" L "+(c+a.width/2)+" "+(d-a.height/3)+" Z",s=new i.PathOption(p+"_Shape",t.background,u.width,u.color,1,"",l),e.appendChild(this.stockChart.renderer.drawPath(s)),je(this.stockChart.renderer,new i.TextOption(p+"_Text",c,d-a.height/2,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e)}},r.prototype.renderStockEventTooltip=function(e){var o=parseInt(e.split("_StockEvents_")[0].split(this.chartId+"_Series_")[1],10),r=parseInt(e.split("_StockEvents_")[1].replace(/\D+/g,""),10),n=this.symbolLocations[o][r],a=new mo(n.x,n.y+this.stockChart.toolbarHeight+this.stockChart.titleSize.height);this.applyHighLights(r,o);var l=this.getElement(this.chartId+"_StockEvents_Tooltip_svg");if(this.stockEventTooltip&&l&&parseInt(l.getAttribute("opacity"),10)>0)this.stockEventTooltip.content=[this.stockChart.stockEvents[r].description],this.stockEventTooltip.location=a,this.stockEventTooltip.dataBind();else{he(this.chartId+"_StockEvents_Tooltip_svg")&&t.remove(he(this.chartId+"_StockEvents_Tooltip"));var s=t.createElement("div",{id:this.chartId+"_StockEvents_Tooltip",className:"ejSVGTooltip",attrs:{style:"pointer-events:none; position:absolute;z-index: 1"}});he(this.chartId+"_Secondary_Element").appendChild(s),this.stockEventTooltip=new i.Tooltip({opacity:1,header:"",content:[this.stockChart.stockEvents[r].description],enableAnimation:!0,location:a,theme:this.stockChart.theme,inverted:!0,areaBounds:this.stockChart.chart.chartAxisLayoutPanel.seriesClipRect}),this.stockEventTooltip.areaBounds.y+=this.stockChart.toolbarHeight+this.stockChart.titleSize.height,this.stockEventTooltip.appendTo("#"+s.id)}},r.prototype.removeStockEventTooltip=function(e){var i=this,o=this.getElement(this.chartId+"_StockEvents_Tooltip");this.stopAnimation(),o&&this.stockEventTooltip?this.toolTipInterval=+setTimeout(function(){i.stockEventTooltip.fadeOut(),i.removeHighLights()},e):o&&this.stockChart.onPanning&&t.remove(o)},r.prototype.findArrowpaths=function(e){var t="";switch(e){case"ArrowUp":t="l -10 10 l 5 0 l 0 10 l 10 0 l 0 -10 l 5 0 z";break;case"ArrowDown":t="l -10 -10 l 5 0 l 0 -10 l 10 0 l 0 10 l 5 0 z";break;case"ArrowLeft":t="l -10 -10 l 0 5 l -10 0 l 0 10 l 10 0 l 0 5 z";break;case"ArrowRight":t="l 10 -10 l 0 5 l 10 0 l 0 10 l -10 0 l 0 5 z"}return t},r.prototype.applyHighLights=function(e,t){this.pointIndex===e&&this.seriesIndex===t||this.removeHighLights(),this.pointIndex=e,this.seriesIndex=t;var i=this.chartId+"_Series_"+t+"_StockEvents_"+e;this.setOpacity(i+"_Shape",.5),this.setOpacity(i+"_Text",.5)},r.prototype.removeHighLights=function(){var e=this.chartId+"_Series_"+this.seriesIndex+"_StockEvents_"+this.pointIndex;this.setOpacity(e+"_Shape",1),this.setOpacity(e+"_Text",1)},r.prototype.setOpacity=function(e,t){he(e)&&he(e).setAttribute("opacity",t.toString())},r.prototype.dateParse=function(e){var t=this.chart.intl.getDateParser({skeleton:"full",type:"dateTime"}),i=this.chart.intl.getDateFormat({skeleton:"full",type:"dateTime"});return new Date(Date.parse(t(i(new Date(o.DataUtil.parse.parseJson({val:e}).val)))))},r}(Qn),Wl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),jl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ul=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Wl(i,e),jl([t.Property(!1)],i.prototype,"visible",void 0),jl([t.Property(null)],i.prototype,"height",void 0),jl([t.Property(null)],i.prototype,"width",void 0),jl([t.Complex({x:0,y:0},oi)],i.prototype,"location",void 0),jl([t.Property("Auto")],i.prototype,"position",void 0),jl([t.Property("Series")],i.prototype,"mode",void 0),jl([t.Property(8)],i.prototype,"padding",void 0),jl([t.Property(null)],i.prototype,"itemPadding",void 0),jl([t.Property("Center")],i.prototype,"alignment",void 0),jl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ll)],i.prototype,"textStyle",void 0),jl([t.Property(10)],i.prototype,"shapeHeight",void 0),jl([t.Property(10)],i.prototype,"shapeWidth",void 0),jl([t.Complex({},Pl)],i.prototype,"border",void 0),jl([t.Complex({left:0,right:0,top:0,bottom:0},Ml)],i.prototype,"margin",void 0),jl([t.Complex({left:0,right:0,top:0,bottom:0},fi)],i.prototype,"containerPadding",void 0),jl([t.Property(8)],i.prototype,"shapePadding",void 0),jl([t.Property("transparent")],i.prototype,"background",void 0),jl([t.Property(1)],i.prototype,"opacity",void 0),jl([t.Property(!0)],i.prototype,"toggleVisibility",void 0),jl([t.Property(null)],i.prototype,"description",void 0),jl([t.Property(3)],i.prototype,"tabIndex",void 0),jl([t.Property(null)],i.prototype,"title",void 0),jl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ll)],i.prototype,"titleStyle",void 0),jl([t.Property("Top")],i.prototype,"titlePosition",void 0),jl([t.Property(100)],i.prototype,"maximumTitleWidth",void 0),jl([t.Property(!0)],i.prototype,"enablePages",void 0),jl([t.Property(!1)],i.prototype,"isInversed",void 0),i}(t.ChildProperty),Xl=function(e){function o(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return Wl(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd),this.chart.off(t.Browser.touchMoveEvent,this.mouseMove))},o.prototype.mouseMove=function(e){this.chart.legendSettings.visible&&!this.chart.isTouch&&this.move(e)},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e){this.legendCollections=[];var t,i;e.length>1&&(this.legend.mode="Series");for(var o=0,r=e;o<r.length;o++){var n=r[o];"Series"===this.legend.mode&&"Indicator"!==n.category&&(t=n.type,i=n.pointColorMapping&&n.points.length>0&&n.points[0].interior?n.points[0].interior:n.interior,this.legendCollections.push(new qo(n.name,i,n.legendShape,"TrendLine"===n.category?this.chart.series[n.sourceIndex].trendlines[n.index].visible:n.visible,t,n.legendImageUrl,n.marker.shape,n.marker.visible)))}},o.prototype.getLegendBounds=function(e,t,o){this.calculateLegendTitle(o,t);var r=o.padding;this.isTitle=!!o.title;var n,a=o.titlePosition,l=0,s=0,h=this.arrowHeight,c=this.arrowWidth,d=this.isVertical&&!o.enablePages?h:0,p=this.isTitle&&"Top"===a?this.fivePixel+this.legendTitleSize.height:0;p=this.isTitle&&this.isVertical&&"Top"!==a?this.fivePixel+this.legendTitleSize.height:p,this.isVertical?l=o.width?0:e.width/100*5:s=o.height?0:e.height/100*5,t.height+=s,t.width+=l;var u,g=o.shapePadding,m=o.shapeWidth,y=0,f=0,v=0,b=0,x=0,S=0;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);for(var C=!1,F=0;F<this.legendCollections.length;F++)n=this.legendCollections[F],_i.test(n.text)&&(n.text=Qe(n.text,_i)),Ei.test(n.text)&&(n.text=Qe(n.text,Ei)),u={fill:n.fill,text:n.text,shape:n.shape,markerShape:n.markerShape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",u),n.text=u.text,n.render=!u.cancel,n.shape=u.shape,n.fill=u.fill,n.markerShape=u.markerShape,n.textSize=i.measureText(n.text,o.textStyle,this.chart.themeStyle.legendLabelFont),n.render&&(C=!0,f+=v=g+m+n.textSize.width+(this.isVertical?r:0===F?r:this.itemPadding),o.enablePages||this.isVertical||(S=this.isTitle&&"Top"!==a?this.legendTitleSize.width+this.fivePixel:0,S+=c),(t.width<r+f+S||this.isVertical)&&(y=Math.max(y,f+r+S-(this.isVertical?0:v)),0===x&&v!==f&&(x=1),f=this.isVertical?0:v,b=++x*(this.maxItemHeight+(this.isVertical?this.itemPadding:r))+r+p+d));b=Math.max(b,this.maxItemHeight+r+r+p),this.isPaging=t.height<b,this.isPaging&&!o.enablePages&&(this.isVertical||(b=this.maxItemHeight+r+r+("Top"===a?p:0))),this.totalPages=x,this.isPaging||this.isVertical||(f+=this.isTitle&&"Top"!==a?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),C?this.setBounds(Math.max(f+r,y),b,o,t):this.setBounds(0,0,o,t)},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=o.location.x+i+o.textSize.width,s=this.legend.padding;l+(e.textSize.width+i-this.itemPadding)>r.x+r.width+this.legend.shapeWidth/2||this.isVertical?(e.location.x=t.x,e.location.y=n===a?o.location.y:o.location.y+this.maxItemHeight+(this.isVertical?this.itemPadding:s)):(e.location.x=n===a?o.location.x:l,e.location.y=o.location.y);var h=this.legendBounds.width+this.legendBounds.x-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);e.text=ze(+h.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont)},o.prototype.legendClick=function(e){var t=this.chart,i="Series"===t.legendSettings.mode?e:0,o=t.visibleSeries[i],r=this.legendCollections[e],n={legendText:r.text,legendShape:r.shape,chart:t,series:o,name:Di,cancel:!1};this.chart.trigger(Di,n),o.legendShape=n.legendShape,null!==o.fill&&(t.visibleSeries[e].interior=o.fill),t.legendSettings.toggleVisibility&&(t.legendClicked=!0,this.changeSeriesVisiblity(o,o.visible),r.visible="TrendLine"===o.category?t.series[o.sourceIndex].trendlines[o.index].visible:o.visible,this.refreshLegendToggle(t))},o.prototype.refreshLegendToggle=function(e){var t=e.stockLegendModule.legendBounds;e.stockLegendModule.renderLegend(e,e.legendSettings,t)},o.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.SecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),this.SecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible}))},o.prototype.SecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},o.prototype.click=function(e){var t=this;if(this.chart.legendSettings.visible){for(var i,o=this.chart.mouseY,r=this.chart.mouseX,n=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"],a=e.target.id,l=0,s=n;l<s.length;l++){var h=s[l];if(a.indexOf(h)>-1){i=parseInt(a.split(h)[1],10),this.legendClick(i);break}}a.indexOf(this.legendID+"_pagedown")>-1?this.changePage(e,!1):a.indexOf(this.legendID+"_pageup")>-1&&this.changePage(e,!0),this.legendRegions.filter(function(e){return V(r,o+(t.isPaging?(t.currentPageNumber-1)*t.translatePage(!1,null,1,2):0),e.rect)})}},o.prototype.getModuleName=function(){return"StockLegend"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),Gl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Yl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Zl=function(e){function r(i,o){var r=e.call(this,i,o)||this;return r.isSingleAxis=!1,r.chartid=57723,r.tempSeriesType=[],r.zoomChange=!1,r.allowPan=!1,r.onPanning=!1,r.trendlinetriggered=!0,r.initialRender=!0,r.rangeFound=!1,r.tempPeriods=[],r.isDateTimeCategory=!1,r.sortedData=[],r.visibleRange={min:0,max:0,delta:0,interval:0},r.isStockChartRendered=!1,n.Inject(Cr,cn,gn),r.toolbarHeight=r.enablePeriodSelector?t.Browser.isDevice?56:42:0,r}Gl(r,e),n=r,r.prototype.onPropertyChanged=function(e){for(var t=0,i=Object.keys(e);t<i.length;t++)switch(i[t]){case"series":this.storeDataSource(),this.chartRender(),this.stockChartDataManagerSuccess(),this.legendClicked=!1}},r.prototype.rangeChanged=function(e,t){var i=document.getElementById(this.chartObject.id);if(i)for(;i.firstChild;)i.removeChild(i.firstChild);this.startValue=e,this.endValue=t,this.cartesianChart.initializeChart(),this.periodSelector.datePicker.startDate=this.isDateTimeCategory?new Date(this.sortedData[e]):new Date(e),this.periodSelector.datePicker.endDate=this.isDateTimeCategory?new Date(this.sortedData[t]):new Date(t),this.periodSelector.datePicker.dataBind()},r.prototype.preRender=function(){this.unWireEvents(),this.initPrivateVariable(),this.allowServerDataBinding=!1,this.isProtectedOnChange=!0,this.setCulture(),this.wireEvents()},r.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.stockChartOnMouseDown),t.EventHandler.remove(this.element,i,this.stockChartOnMouseMove),t.EventHandler.remove(this.element,o,this.stockChartMouseEnd),t.EventHandler.remove(this.element,"click",this.stockChartOnMouseClick),t.EventHandler.remove(this.element,"contextmenu",this.stockChartRightClick),t.EventHandler.remove(this.element,r,this.stockChartOnMouseLeave),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.stockChartResize)},r.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.stockChartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.stockChartOnMouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.stockChartMouseEnd,this),t.EventHandler.add(this.element,"click",this.stockChartOnMouseClick,this),t.EventHandler.add(this.element,"contextmenu",this.stockChartRightClick,this),t.EventHandler.add(this.element,e,this.stockChartOnMouseLeave,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.stockChartResize.bind(this)),this.setStyle(this.element)},r.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-stockChart").length;this.element.id="stockChart_"+this.chartid+"_"+e}this.seriesXMax=null,this.seriesXMin=null,this.startValue=null,this.endValue=null,this.currentEnd=null,this.margin={right:null===this.margin.right?t.Browser.isDevice?5:10:this.margin.right,left:null===this.margin.left?t.Browser.isDevice?5:10:this.margin.left,top:null===this.margin.top?t.Browser.isDevice?5:10:this.margin.top,bottom:null===this.margin.bottom?t.Browser.isDevice?5:10:this.margin.bottom},this.isStockChartRendered=!1},r.prototype.setCulture=function(){this.intl=new t.Internationalization},r.prototype.storeDataSource=function(){for(var e=0;e<this.series.length;e++){var t=this.series[e];this.tempSeriesType.push(t.type),t.localData=void 0}0===this.series.length&&this.series.push({}),this.initialRender=!this.legendClicked,this.rangeFound=!1,this.resizeTo=null,this.startValue=null,this.endValue=null},r.prototype.render=function(){var e=this,t={name:"load",stockChart:this,theme:this.theme};this.trigger("load",t,function(){e.themeStyle=ot(e.theme,!1,e),e.storeDataSource(),e.drawSVG(),e.renderTitle(),e.renderLegend(),e.chartModuleInjection(),e.chartRender(),e.dataSource instanceof o.DataManager&&e.series[0].dataSource instanceof o.DataManager||(e.stockChartDataManagerSuccess(),e.initialRender=!1),e.renderComplete(),e.allowServerDataBinding=!0,e.isStockChartRendered=!0}),this.isProtectedOnChange=!1},r.prototype.stockChartDataManagerSuccess=function(){this.findRange();var e=this.series.every(function(e){var t=e.dataSource||[];return!t||0===t.length});this.renderNoDataTemplate(e&&!t.isNullOrUndefined(this.noDataTemplate)),this.renderRangeSelector(),this.renderPeriodSelector(),this.trigger("loaded",{stockChart:this})},r.prototype.renderNoDataTemplate=function(e){var o=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(o&&o.remove(),e){var r="function"==typeof this.noDataTemplate?this.noDataTemplate():this.noDataTemplate,n=t.createElement("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),a=this.element.querySelector("#"+this.element.id+"_Secondary_Element"),l=0,s=document.getElementById(this.element.id+"_stock_border");if(s){var h=getComputedStyle(s),c=h.borderWidth||h.borderTopWidth;l=c?parseFloat(c):0}var d=0;this.title&&(d=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height+11);var p=this.element.getBoundingClientRect(),u=document.querySelector("#"+this.element.id+"_rangeSelector")||a.querySelector('[id*="rangeSelector"]'),g=p.bottom;if(u){var m=u.getBoundingClientRect();g=Math.max(g,m.bottom)}var y=g-a.getBoundingClientRect().top-d-l;n.style.cssText="position: absolute; top: "+d+"px; left: "+l+"px; width: "+(this.availableSize.width-2*l)+"px;\n                height: "+y+"px; z-index: 1;\n            ",he(this.element.id+"_Secondary_Element").appendChild(n),ue(n,null,r,this,null,null,this.element.id+"_NoData")}},r.prototype.setStyle=function(e){var t=this.zoomSettings,i=t.enableSelectionZooming||t.enablePinchZooming||"None"!==this.selectionMode||this.crosshair.enable;e.style.msTouchAction=i?"none":"element",e.style.touchAction=i?"none":"element",e.style.msUserSelect="none",e.style.msContentZooming="none",e.style.position="relative",e.style.display="block",e.style.webkitUserSelect="none"},r.prototype.drawSVG=function(){this.removeSvg(),Ue(this),this.renderer=new i.SvgRenderer(this.element.id),this.renderBorder(),this.createSecondaryElements(),this.calculateVisibleSeries(),this.calculateLegendBounds(),this.mainObject=this.renderer.createSvg({id:this.element.id+"_stockChart_svg",width:this.availableSize.width,height:this.availableSize.height-(this.enablePeriodSelector?this.toolbarHeight:0)-this.titleSize.height,style:"display: block;"}),this.svgObject=this.mainObject,this.element.appendChild(this.mainObject)},r.prototype.calculateVisibleSeries=function(){this.visibleSeries=[];for(var e,t=it(this.theme),i=t.length,o=this.series.sort(function(e,t){return e.zOrder-t.zOrder}),r=0,n=o.length;r<n;r++)(e=o[r]).category="Series",e.index=r,e.interior=e.fill||t[r%i],this.visibleSeries.push(e),o[r]=e},r.prototype.createSecondaryElements=function(){var e=Ve(!1,this.element.id+"_Secondary_Element")||this.createElement("div");e.id=this.element.id+"_Secondary_Element",this.title?(this.titleSize=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont),this.titleSize.height+=15):this.titleSize={height:null,width:null};var t=(this.enablePeriodSelector?this.toolbarHeight:0)+this.titleSize.height;e.style.cssText="position: relative; height:"+t+"px",be(!1,this.element,e,!1)},r.prototype.requiredModules=function(){var e=[];return this.legendSettings.visible&&e.push({member:"StockLegend",args:[this]}),e},r.prototype.findCurrentData=function(e,t){var i=this.enablePeriodSelector||this.enableSelector?void 0:e,o=this.isDateTimeCategory?new Date(this.sortedData[Math.floor(this.startValue)]).getTime():this.startValue,r=this.isDateTimeCategory?new Date(this.sortedData[Math.floor(this.endValue)]).getTime():this.endValue;return e&&o&&r&&(i=e.filter(function(e){return new Date(Date.parse(e[t])).getTime()>=o&&new Date(Date.parse(e[t])).getTime()<=r})),i},r.prototype.renderPeriodSelector=function(){this.enablePeriodSelector&&(this.toolbarSelector.initializePeriodSelector(),this.periodSelector.toolbar.refreshOverflow(),this.enableSelector||this.cartesianChart.cartesianChartRefresh(this))},r.prototype.chartRender=function(){this.sortedData=[],this.cartesianChart=new xl(this),this.cartesianChart.initializeChart()},r.prototype.renderRangeSelector=function(){this.enableSelector&&(this.rangeSelector=new Sl(this),this.rangeSelector.initializeRangeNavigator())},r.prototype.getModuleName=function(){return"stockChart"},r.prototype.getPersistData=function(){return""},r.prototype.removeSvg=function(){document.getElementById(this.element.id+"_Secondary_Element")&&t.remove(document.getElementById(this.element.id+"_Secondary_Element"));if(this.mainObject){for(;this.mainObject.childNodes.length>0;)this.mainObject.removeChild(this.mainObject.firstChild);!this.mainObject.hasChildNodes()&&this.mainObject.parentNode&&(t.remove(this.mainObject),this.mainObject=null,this.selectorObject=null,this.chartObject=null)}},r.prototype.chartModuleInjection=function(){for(var e,t=0,i=this.getInjectedModules();t<i.length;t++){var o=i[t];-1===(e=o.prototype.getModuleName().toLowerCase()).indexOf("rangetooltip")?nr.Inject(o):bl.Inject(o),"datetime"!==e&&"areaseries"!==e&&"steplineseries"!==e&&"datetimecategory"!==e||bl.Inject(o)}},r.prototype.findRange=function(){var e=this;this.seriesXMin=1/0,this.seriesXMax=-1/0;for(var t=0,i=this.chart.series;t<i.length;t++){var o=i[t];o.visible&&(this.seriesXMin=Math.min(this.seriesXMin,o.xMin),this.seriesXMax=Math.max(this.seriesXMax,o.xMax))}this.endValue=this.currentEnd=this.seriesXMax,this.enablePeriodSelector?(this.toolbarSelector=new Cl(this),this.periodSelector=new yl(this),this.tempPeriods=this.periods.length?this.periods:this.toolbarSelector.calculateAutoPeriods(),this.tempPeriods.map(function(t){if(t.selected&&"ytd"===t.text.toLowerCase())if(e.isDateTimeCategory){for(var i=new Date(e.sortedData[e.currentEnd]).getFullYear(),o=e.currentEnd-1;o>=0;o--)if(new Date(e.sortedData[o]).getFullYear()!==i){e.startValue=o+1;break}e.startValue=-1===o?0:e.startValue}else e.startValue=new Date(new Date(e.currentEnd).getFullYear().toString()).getTime();else t.selected&&"all"===t.text.toLowerCase()?e.startValue=e.seriesXMin:t.selected&&(e.startValue=e.periodSelector.changedRange(t.intervalType,e.endValue,t.interval).getTime(),e.startValue=e.isDateTimeCategory?e.periodSelector.findStartValue(e.startValue,e.endValue):e.startValue)})):this.startValue=this.seriesXMin,this.rangeFound=!0},r.prototype.stockChartResize=function(){var e=this;return!!document.getElementById(this.element.id)&&(this.animateSeries=!1,this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.cartesianChart&&(Ue(e),e.renderBorder(),e.calculateLegendBounds(),e.renderTitle(),e.renderLegend(),e.cartesianChart.cartesianChartRefresh(e),e.mainObject.setAttribute("width",(e.availableSize.width+(!e.stockLegendModule||"Right"!==e.legendSettings.position&&"Left"!==e.legendSettings.position?0:e.stockLegendModule.legendBounds.width)).toString()),e.enablePeriodSelector&&e.renderPeriodSelector())},500),!1)},r.prototype.stockChartOnMouseDown=function(e){var i,o,r,n,a=this.chart.element.getBoundingClientRect(),l=e.target;if(this.trigger("stockChartMouseDown",{target:l.id,x:this.mouseX,y:this.mouseY}),"touchstart"===e.type?(this.isTouch=!0,i=(n=e).changedTouches[0].clientX,r=n.target,o=n.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY,r=e.target),r.id.indexOf(this.element.id+"_stockChart_chart")>-1){var s=he(this.element.id+"_stockChart_chart").getBoundingClientRect();this.mouseDownY=this.previousMouseMoveY=o-a.top-Math.max(s.top-a.top,0),this.mouseDownX=this.previousMouseMoveX=i-a.left-Math.max(s.left-a.left,0),this.setMouseXY(i,o),this.referenceXAxis=this.chart.primaryXAxis,he(this.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),this.isDateTimeCategory?(this.visibleRange.min=this.sortedData.indexOf(parseInt(this.referenceXAxis.labels[this.referenceXAxis.visibleRange.min],10)),this.visibleRange.max=this.sortedData.indexOf(parseInt(this.referenceXAxis.labels[this.referenceXAxis.visibleRange.max],10)),this.visibleRange.delta=this.referenceXAxis.visibleRange.delta,this.visibleRange.interval=this.referenceXAxis.visibleRange.interval):this.visibleRange=this.referenceXAxis.visibleRange,this.mouseDownXPoint=ct(this.mouseX-this.referenceXAxis.rect.x,this.referenceXAxis.rect.width,this.visibleRange,this.referenceXAxis.isInversed),this.allowPan=!0,this.notify(t.Browser.touchStartEvent,e)}return!1},r.prototype.stockChartMouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,t=o.changedTouches[0].clientY,this.isTouch=!0):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),he(this.element.id+"_stockChart_chart").setAttribute("cursor","auto"),this.onPanning=!1,this.setMouseXY(i,t),this.stockChartOnMouseUp(e),!1},r.prototype.stockChartOnMouseUp=function(e){var i=e.target;return this.trigger("stockChartMouseUp",{target:i.id,x:this.mouseX,y:this.mouseY}),this.isChartDrag=!1,this.allowPan=!1,this.rangeNavigator&&(this.rangeNavigator.rangeSlider.isDrag=!1),this.isTouch&&(this.threshold=(new Date).getTime()+300),this.notify(t.Browser.touchEndEvent,e),this.stockEvent&&this.stockEvent.removeStockEventTooltip(0),!1},r.prototype.setMouseXY=function(e,t){var i=he(this.element.id+"_stockChart_chart");if(this.element&&i){var o=this.element.getBoundingClientRect(),r=i.getBoundingClientRect();this.mouseX=e-o.left-Math.max(r.left-o.left,0),this.mouseY=t-o.top-Math.max(r.top-o.top,0)}},r.prototype.stockChartOnMouseMove=function(e){var t,i,o;return this.mouseMoveEvent=e,"touchmove"===e.type?(this.isTouch=!0,o=(i=e).changedTouches[0].clientY,t=i.changedTouches[0].clientX):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,o=e.clientY),this.trigger("stockChartMouseMove",{target:e.target.id,x:this.mouseX,y:this.mouseY}),he(this.element.id+"_stockChart_chart")&&(this.setMouseXY(t,o),this.chartOnMouseMove(e)),!1},r.prototype.chartOnMouseMove=function(e){if(this.rangeNavigator&&this.rangeNavigator.rangeSlider.isDrag&&(this.rangeNavigator.mouseX=this.mouseX,this.rangeNavigator.rangeSlider.mouseMoveHandler(e)),this.allowPan&&!this.chart.startMove&&this.mouseDownXPoint&&this.mouseX!==this.previousMouseMoveX&&this.zoomSettings.enablePan){this.onPanning=!0,this.zoomChange=!1,he(this.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),this.mouseUpXPoint=ct(this.mouseX-this.referenceXAxis.rect.x,this.referenceXAxis.rect.width,this.visibleRange,this.referenceXAxis.isInversed);var i=Math.abs(this.mouseUpXPoint-this.mouseDownXPoint);this.mouseDownXPoint<this.mouseUpXPoint?this.seriesXMin<=this.visibleRange.min-i&&(this.startValue=this.visibleRange.min-i,this.endValue=this.visibleRange.max-i,this.enableSelector?this.rangeNavigator.rangeSlider.setSlider(this.visibleRange.min-i,this.visibleRange.max-i,!this.rangeNavigator.enableDeferredUpdate,this.rangeNavigator.rangeTooltipModule&&this.rangeNavigator.tooltip.enable):this.cartesianChart.cartesianChartRefresh(this)):this.seriesXMax>=this.visibleRange.max+i&&(this.startValue=this.visibleRange.min+i,this.endValue=this.visibleRange.max+i,this.enableSelector?this.rangeNavigator.rangeSlider.setSlider(this.visibleRange.min+i,this.visibleRange.max+i,!this.rangeNavigator.enableDeferredUpdate,this.rangeNavigator.rangeTooltipModule&&this.rangeNavigator.tooltip.enable):this.cartesianChart.cartesianChartRefresh(this))}if(this.notify(t.Browser.touchMoveEvent,e),""===e.target.id&&!0==!this.onPanning){var o=void 0;(this.chart.tooltip.enable||this.crosshair.enable)&&(o=document.getElementById(this.element.id+"_stockChart_chart_tooltip"))&&t.remove(o),he(this.element.id+"_StockEvents_Tooltip")&&this.stockEvent.removeStockEventTooltip(0)}return-1!==e.target.id.indexOf("StockEvents")?(clearInterval(this.stockEvent.toolTipInterval),this.stockEvent.renderStockEventTooltip(e.target.id)):this.stockEvent&&this.stockEvent.removeStockEventTooltip(1e3),this.isTouch=!1,!1},r.prototype.stockChartOnMouseClick=function(e){var t=e.target;return this.trigger("stockChartMouseClick",{target:t.id,x:this.mouseX,y:this.mouseY}),this.notify("click",e),!1},r.prototype.stockChartRightClick=function(e){return!this.crosshair.enable||2!==e.buttons&&0!==e.which&&"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},r.prototype.stockChartOnMouseLeave=function(e){var t,i,o;return"touchleave"===e.type?(this.isTouch=!0,i=(t=e).changedTouches[0].clientX,o=t.changedTouches[0].clientY):(i=e.clientX,o=e.clientY,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,o),this.allowPan=!1,this.stockChartOnMouseLeaveEvent(e),!1},r.prototype.stockChartOnMouseLeaveEvent=function(e){var i=t.Browser.isPointer?"pointerleave":"mouseleave";return this.isChartDrag=!1,this.notify(i,e),this.stockEvent&&this.stockEvent.removeStockEventTooltip(1e3),this.rangeNavigator&&(this.rangeNavigator.rangeSlider.isDrag=!1),this.onPanning&&(this.onPanning=!1,this.chart.mouseLeave(e),he(this.element.id+"_stockChart_chart").setAttribute("cursor","auto")),!1},r.prototype.destroy=function(){this.cartesianChart=null,this.chart=null,this.periodSelector=null,this.rangeNavigator=null,this.rangeSelector=null,this.tempPeriods=[],this.toolbarSelector=null,this.visibleSeries=[],this.yAxisElements=null;var t=document.getElementById(this.element.id+"_stockChart_chartKeyboard_chart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_stock_border");i&&i.remove(),this.element&&(this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null)},r.prototype.renderBorder=function(){if(this.border.width){var e=this.createElement("div");e.id=this.element.id+"_stock_border",e.style.width=this.availableSize.width+"px",e.style.height=this.availableSize.height+"px",e.style.position="absolute",e.style.border=this.border.width+"px solid "+this.border.color,e.style.pointerEvents="none",be(!1,he(this.element.id),e)}},r.prototype.renderTitle=function(){var e;if(this.title){be(!1,he(this.element.id+"_Secondary_Element"),this.renderer.createSvg({id:this.element.id+"_stockChart_Title",width:this.availableSize.width,height:this.titleSize.height,fill:this.background||this.themeStyle.background}),!1);var t=this.titleStyle.textAlignment,o="Near"===t?"start":"Far"===t?"end":"middle";e=new i.Rect(0,0,this.availableSize.width,0);var r=new i.TextOption(this.element.id+"_ChartTitle",Ye(e,this.titleStyle),this.titleSize.height-10,o,this.title,"","auto");je(this.renderer,r,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color||this.findTitleColor(),he(this.element.id+"_stockChart_Title"),!1,!1,null,null,null,null,null,null,null,null,this.themeStyle.chartTitleFont),this.availableSize.height-=this.titleSize.height+5}},r.prototype.calculateLegendBounds=function(){this.stockLegendModule&&this.legendSettings.visible&&this.stockLegendModule.getLegendOptions(this.visibleSeries);var e=this.titleSize.height,t=this.border.width,o=this.availableSize.width-this.border.width-t,r=.5*this.chartArea.border.width+this.border.width,n=this.availableSize.height-r-this.border.width-(this.enablePeriodSelector?this.toolbarHeight:0)-e;this.initialClipRect=new i.Rect(t,r,o,n),this.tempAvailableSize=new i.Size(this.availableSize.width,this.availableSize.height-(this.enablePeriodSelector?this.toolbarHeight:0)-e),this.stockLegendModule&&this.legendSettings.visible&&this.stockLegendModule.calculateLegendBounds(this.initialClipRect,this.tempAvailableSize,null)},r.prototype.renderLegend=function(){if(this.stockLegendModule&&this.stockLegendModule.legendCollections.length&&this.legendSettings.visible){this.stockLegendModule.calTotalPage=!0;var e=this.stockLegendModule.legendBounds;this.stockLegendModule.renderLegend(this,this.legendSettings,e),"Auto"===this.legendSettings.position||"Bottom"===this.legendSettings.position||"Top"===this.legendSettings.position?this.availableSize.height-=this.stockLegendModule.legendBounds.height:"Left"!==this.legendSettings.position&&"Right"!==this.legendSettings.position||(this.availableSize.width-=this.stockLegendModule.legendBounds.width)}},r.prototype.findTitleColor=function(){return this.theme.toLocaleLowerCase().indexOf("highcontrast")>-1||this.theme.indexOf("Dark")>-1?"#ffffff":"#424242"},r.prototype.calculateStockEvents=function(){this.stockEvents.length&&(this.stockEvent=new Hl(this),be(!1,this.chartObject,this.stockEvent.renderStockEvents()))};var n;return Yl([t.Property(null)],r.prototype,"noDataTemplate",void 0),Yl([t.Property(null)],r.prototype,"width",void 0),Yl([t.Property(null)],r.prototype,"height",void 0),Yl([t.Property("")],r.prototype,"dataSource",void 0),Yl([t.Complex({},Ml)],r.prototype,"margin",void 0),Yl([t.Complex({color:"#DDDDDD",width:1},Pl)],r.prototype,"border",void 0),Yl([t.Property(null)],r.prototype,"background",void 0),Yl([t.Property("Material")],r.prototype,"theme",void 0),Yl([t.Complex({name:"primaryXAxis",valueType:"DateTime"},_l)],r.prototype,"primaryXAxis",void 0),Yl([t.Complex({border:{color:null,width:.5},background:"transparent"},Al)],r.prototype,"chartArea",void 0),Yl([t.Complex({name:"primaryYAxis",opposedPosition:!0,labelPosition:"Inside",tickPosition:"Inside"},_l)],r.prototype,"primaryYAxis",void 0),Yl([t.Collection([{}],Il)],r.prototype,"rows",void 0),Yl([t.Collection([{opposedPosition:!0}],_l)],r.prototype,"axes",void 0),Yl([t.Collection([],Tl)],r.prototype,"series",void 0),Yl([t.Collection([],Nl)],r.prototype,"stockEvents",void 0),Yl([t.Property(!1)],r.prototype,"isTransposed",void 0),Yl([t.Property("")],r.prototype,"title",void 0),Yl([t.Complex({size:null,fontWeight:null,color:null,fontStyle:null,fontFamily:null},Ll)],r.prototype,"titleStyle",void 0),Yl([t.Collection([],El)],r.prototype,"indicators",void 0),Yl([t.Complex({shared:!0,enableMarker:!1},Li)],r.prototype,"tooltip",void 0),Yl([t.Complex({dashArray:"5",lineType:"Vertical"},or)],r.prototype,"crosshair",void 0),Yl([t.Complex({},Ul)],r.prototype,"legendSettings",void 0),Yl([t.Complex({enablePan:!0},rr)],r.prototype,"zoomSettings",void 0),Yl([t.Property(!0)],r.prototype,"enablePeriodSelector",void 0),Yl([t.Property(!0)],r.prototype,"enableCustomRange",void 0),Yl([t.Property(!1)],r.prototype,"isSelect",void 0),Yl([t.Property(!0)],r.prototype,"enableSelector",void 0),Yl([t.Collection([],Fi)],r.prototype,"periods",void 0),Yl([t.Collection([{}],zl)],r.prototype,"annotations",void 0),Yl([t.Event()],r.prototype,"selectorRender",void 0),Yl([t.Event()],r.prototype,"stockChartMouseMove",void 0),Yl([t.Event()],r.prototype,"stockChartMouseLeave",void 0),Yl([t.Event()],r.prototype,"stockChartMouseDown",void 0),Yl([t.Event()],r.prototype,"stockChartMouseUp",void 0),Yl([t.Event()],r.prototype,"stockChartMouseClick",void 0),Yl([t.Event()],r.prototype,"pointClick",void 0),Yl([t.Event()],r.prototype,"pointMove",void 0),Yl([t.Event()],r.prototype,"onZooming",void 0),Yl([t.Event()],r.prototype,"legendRender",void 0),Yl([t.Event()],r.prototype,"legendClick",void 0),Yl([t.Property("None")],r.prototype,"selectionMode",void 0),Yl([t.Property(!1)],r.prototype,"isMultiSelect",void 0),Yl([t.Event()],r.prototype,"load",void 0),Yl([t.Event()],r.prototype,"loaded",void 0),Yl([t.Event()],r.prototype,"rangeChange",void 0),Yl([t.Event()],r.prototype,"axisLabelRender",void 0),Yl([t.Event()],r.prototype,"beforeExport",void 0),Yl([t.Event()],r.prototype,"tooltipRender",void 0),Yl([t.Event()],r.prototype,"seriesRender",void 0),Yl([t.Event()],r.prototype,"stockEventRender",void 0),Yl([t.Collection([],Bl)],r.prototype,"selectedDataIndexes",void 0),Yl([t.Property([])],r.prototype,"seriesType",void 0),Yl([t.Property(["EMA","TMA","SMA","Momentum","ATR","Accumulation Distribution","Bollinger Bands","MACD","Stochastic","RSI"])],r.prototype,"indicatorType",void 0),Yl([t.Property(["PNG","JPEG","SVG","PDF","XLSX","CSV","Print"])],r.prototype,"exportType",void 0),Yl([t.Property([])],r.prototype,"trendlineType",void 0),r=n=Yl([t.NotifyPropertyChanges],r)}(t.Component),ql=function(){function e(e){this.control=e,this.elementId=e.element.id}return e.prototype.renderLeftTooltip=function(e){this.fadeOutTooltip();var t=this.getTooltipContent(e.currentStart),i=this.getContentSize(t),o=this.control.enableRtl?e.rightRect:e.leftRect;i>o.width&&(o=e.midRect),this.leftTooltip=this.renderTooltip(o,this.createElement("_leftTooltip"),e.startX,t)},e.prototype.getContentSize=function(e){var o=this.control.tooltip.textStyle;return this.control.tooltip.template?ue(t.createElement("div",{id:"measureElement",styles:"position: absolute;"}),0,this.control.tooltip.template,this.control).getBoundingClientRect().width:i.measureText(e[0],o,this.control.themeStyle.tooltipLabelFont).width+20},e.prototype.renderRightTooltip=function(e){this.fadeOutTooltip();var t=this.getTooltipContent(e.currentEnd),i=this.getContentSize(t),o=this.control.enableRtl?e.leftRect:e.rightRect;i>o.width&&((o=e.midRect).x=this.control.series.length?0:o.x),this.rightTooltip=this.renderTooltip(o,this.createElement("_rightTooltip"),e.endX,t)},e.prototype.createElement=function(e){if(he(this.elementId+e))return he(this.elementId+e);var t=document.createElement("div");if(t.id=this.elementId+e,t.className="ejSVGTooltip",t.style.cssText="pointer-events:none; position:absolute;z-index: 1",this.control.stockChart){var i=this.control.stockChart;he(i.element.id+"_Secondary_Element").appendChild(t),t.style.transform="translateY("+(i.availableSize.height-i.toolbarHeight-51+i.toolbarHeight+i.titleSize.height)+"px)"}else he(this.elementId+"_Secondary_Element").appendChild(t);return t},e.prototype.renderTooltip=function(e,t,o,r){var n=this.control,a=n.tooltip,l={cancel:!1,name:"tooltipRender",text:r,textStyle:a.textStyle};l.textStyle.fontWeight=a.textStyle.fontWeight||this.control.themeStyle.tooltipLabelFont.fontWeight,this.control.trigger("tooltipRender",l);var s=n.svgObject.getBoundingClientRect().left-n.element.getBoundingClientRect().left;return l.cancel?null:new i.Tooltip({location:{x:o,y:n.rangeSlider.sliderY},content:l.text,marginX:2,enableShadow:!1,marginY:2,arrowPadding:8,rx:4,ry:4,inverted:n.series.length>0,areaBounds:e,fill:a.fill?a.fill:this.control.themeStyle.tooltipBackground,theme:this.control.theme,clipBounds:{x:s},border:a.border,opacity:a.opacity?a.opacity:"Material3"===this.control.theme||"Material3Dark"===this.control.theme||this.control.theme.indexOf("Bootstrap5")>-1?1:.75,template:a.template,textStyle:l.textStyle,availableSize:n.availableSize,controlName:"RangeNavigator",data:{start:this.getTooltipContent(this.control.startValue)[0],end:this.getTooltipContent(this.control.endValue)[0],value:r[0]}},t)},e.prototype.getTooltipContent=function(e){var t,i=this.control,o=i.tooltip,r=i.chartSeries.xAxis,n=o.format||r.labelFormat,a=null!==n.match("{value}"),l=r.valueType;return e="DateTimeCategory"===l?parseInt(r.labels[Math.floor(e)],10):e,l.indexOf("DateTime")>-1?t=i.intl.getDateFormat({format:n||"MM/dd/yyyy",type:U(i.skeletonType),skeleton:"DateTime"===l?i.dateTimeModule.getSkeleton(r,null,null):i.dateTimeCategoryModule.getSkeleton(r,null,null)})(new Date(e)):(r.format=i.intl.getNumberFormat({format:a?"":n,useGrouping:i.useGroupingSeparator}),t=i.doubleModule.formatValue(r,a,n,"Logarithmic"===l?Math.pow(r.logBase,e):e)),[t]},e.prototype.fadeOutTooltip=function(){var e=this;"OnDemand"===this.control.tooltip.displayMode&&(Fe(this.toolTipInterval),this.rightTooltip&&(this.toolTipInterval=+setTimeout(function(){e.leftTooltip.fadeOut(),e.rightTooltip.fadeOut()},1e3)))},e.prototype.getModuleName=function(){return"RangeTooltip"},e.prototype.destroy=function(){},e}(),Ql=function(){function e(e){this.bulletChart=e,this.isVertical="Vertical"===e.orientation,this.isLabelsInside="Inside"===e.labelPosition,this.isHorizontal="Horizontal"===e.orientation,this.isLeft="Left"===e.titlePosition,this.isRight="Right"===e.titlePosition,this.isTop="Top"===e.titlePosition,this.majorTickSize=e.majorTickLines.height,this.location=10,this.labelOffset=15,this.labelSize=parseFloat(e.labelStyle.size),this.isLabelBelow=!this.bulletChart.opposedPosition}return e.prototype.renderMajorTickLines=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXMajorTickLines(e,t):this.renderYMajorTickLines(e,t)},e.prototype.renderMinorTickLines=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXMinorTickLines(e,t):this.renderYMinorTickLines(e,t)},e.prototype.renderAxisLabels=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXAxisLabels(e,t):this.renderYAxisLabels(e,t)},e.prototype.renderXMajorTickLines=function(e,t){for(var i,o,r=this.bulletChart,n=r.renderer.createGroup({id:r.svgObject.id+"_majorTickGroup"}),a=r.minimum,l=r.maximum,s=r.interval,h=r.enableRtl,c=r.initialClipRect.y+(r.opposedPosition?0:r.initialClipRect.height),d=c+(r.opposedPosition?"Inside"!==r.tickPosition?-this.majorTickSize:this.majorTickSize:"Inside"!==r.tickPosition?this.majorTickSize:-this.majorTickSize),p=r.majorTickLines,u=p.color||r.themeStyle.majorTickLineColor,g=r.initialClipRect.x+(r.enableRtl?r.initialClipRect.width:0),m=r.initialClipRect.x+p.width/2+(h?r.initialClipRect.width:0),y=a;y<=l;y+=s){(o=r.enableRtl?y===a:y===l)&&(m-=p.width/2),o=r.enableRtl?y===a:y===l,r.majorTickLines.useRangeColor&&(u=this.bindingRangeStrokes(m-(o?this.bulletChart.majorTickLines.width/2:0),g,this.bulletChart.orientation,r.enableRtl)),i=this.majorTicks(m,m,c,d,u,y);var f=r.renderer.drawLine(i);m+=h?-e:e,n.appendChild(f),t.appendChild(n)}},e.prototype.renderYMajorTickLines=function(e,t){for(var i,o,r=this.bulletChart,n=r.renderer.createGroup({id:r.svgObject.id+"_majorTickGroup"}),a=r.minimum,l=r.maximum,s=r.interval,h=r.enableRtl,c=r.initialClipRect,d=c.x+(r.opposedPosition?c.width:0),p=d-(r.opposedPosition?"Inside"!==r.tickPosition?-this.majorTickSize:this.majorTickSize:"Inside"!==r.tickPosition?this.majorTickSize:-this.majorTickSize),u=r.majorTickLines,g=u.color||r.themeStyle.majorTickLineColor,m=c.y+(r.enableRtl?0:c.height),y=c.y+u.width/2+(h?0:c.height),f=a;f<=l;f+=s){(i=r.enableRtl?f===l:f===a)&&(y-=u.width/2),i=r.enableRtl?f===a:f===l,r.majorTickLines.useRangeColor&&(g=this.bindingRangeStrokes(y-(i?this.bulletChart.majorTickLines.width/2:0),m,this.bulletChart.orientation,r.enableRtl)),o=this.majorTicks(d,p,y,y,g,f);var v=r.renderer.drawLine(o);y+=h?e:-e,n.appendChild(v),t.appendChild(n)}},e.prototype.majorTicks=function(e,t,i,o,r,n){return{id:this.bulletChart.svgObject.id+"_MajorTickLine_"+n,x1:e,y1:i,x2:t,y2:o,"stroke-width":this.bulletChart.majorTickLines.width,stroke:this.bulletChart.majorTickLines.useRangeColor&&r?r:this.bulletChart.majorTickLines.color||r}},e.prototype.bindingRangeStrokes=function(e,t,i,o){return"Vertical"===i&&!o||o&&"Horizontal"===i?this.backwardStrokeBinding(e,t):this.forwardStrokeBinding(e,t)},e.prototype.renderXMinorTickLines=function(e,t){for(var i,o,r,n,a=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_minorTickGroup"}),l=this.bulletChart,s=l.maximum,h=l.minimum,c=l.interval,d=l.minorTickLines.height,p=this.bulletChart.minorTicksPerInterval,u=l.initialClipRect.x,g=l.initialClipRect.y+(l.opposedPosition?0:l.initialClipRect.height),m=g+(l.opposedPosition?"Inside"!==l.tickPosition?-d:d:"Inside"!==l.tickPosition?d:-d),y=l.minorTickLines.color||l.themeStyle.minorTickLineColor,f=l.initialClipRect.x+(l.enableRtl?l.initialClipRect.width:0),v=h;v<s;v+=c){i=e/p;for(var b=1;b<=p;b++)o=u+i-i/(p+1),l.minorTickLines.useRangeColor&&(y=this.bindingRangeStrokes(o,f,this.bulletChart.orientation,l.enableRtl)),r=this.minorXTicks(o,o,g,m,y,v.toString()+b.toString()),n=this.bulletChart.renderer.drawLine(r),a.appendChild(n),t.appendChild(a),i=e/p*(b+1);u+=e}},e.prototype.renderYMinorTickLines=function(e,t){for(var i,o,r,n,a=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_minorTickGroup"}),l=this.bulletChart,s=l.maximum,h=l.minimum,c=l.interval,d=l.minorTickLines.height,p=this.bulletChart.minorTicksPerInterval,u=l.initialClipRect.y+(l.enableRtl?0:l.initialClipRect.height),g=l.initialClipRect.x+(l.opposedPosition?l.initialClipRect.width:0),m=g-(l.opposedPosition?"Inside"!==l.tickPosition?-d:d:"Inside"!==l.tickPosition?d:-d),y=l.minorTickLines.color||l.themeStyle.minorTickLineColor,f=l.initialClipRect.y+(l.enableRtl?0:l.initialClipRect.height),v=h;v<s;v+=c){i=e/p;for(var b=1;b<=p;b++)o=this.bulletChart.enableRtl?u+i-i/(p+1):u-i+i/(p+1),l.minorTickLines.useRangeColor&&(y=this.bindingRangeStrokes(o,f,this.bulletChart.orientation,l.enableRtl)),r=this.minorXTicks(g,m,o,o,y,v.toString()+b.toString()),n=this.bulletChart.renderer.drawLine(r),a.appendChild(n),t.appendChild(a),i=e/p*(b+1);u-=this.bulletChart.enableRtl?-e:e}},e.prototype.minorXTicks=function(e,t,i,o,r,n){return{id:this.bulletChart.svgObject.id+"_MajorTickLine_"+n,x1:e,x2:t,y1:i,y2:o,"stroke-width":this.bulletChart.minorTickLines.width,stroke:this.bulletChart.minorTickLines.useRangeColor&&r?r:this.bulletChart.minorTickLines.color||r}},e.prototype.forwardStrokeBinding=function(e,t){for(var i=this.bulletChart,o=t,r=0;r<=i.rangeCollection.length-1;r++)if(o+=r?i.rangeCollection[r-1]:0,e>=o&&e<o+i.rangeCollection[r])return i.ranges[r].color;return null},e.prototype.backwardStrokeBinding=function(e,t){for(var i=this.bulletChart,o=t,r=0;r<=i.rangeCollection.length-1;r++)if(o-=r?i.rangeCollection[r-1]:0,Math.round(e)>=Math.round(o-i.rangeCollection[r])&&e<=o)return i.ranges[r].color;return null},e.prototype.renderXAxisLabels=function(e,t){var o,r,n=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_axisLabelGroup"}),a=this.bulletChart,l=this.bulletChart.locale,s=a.enableRtl,h=(a.tickPosition===a.labelPosition?a.majorTickLines.height:0)+10,c=a.initialClipRect.y+(a.opposedPosition?"Inside"===a.labelPosition?h:-h:a.initialClipRect.height+("Inside"===a.labelPosition?-h:h)),d=a.initialClipRect.x+(s?a.initialClipRect.width:0),p=a.minimum,u=a.maximum,g=a.interval,m=l&&this.bulletChart.enableGroupSeparator,y=this.getFormat(this.bulletChart),f=a.labelStyle.color||a.themeStyle.axisLabelFont.color,v=null!==y.match("{value}");this.format=this.bulletChart.intl.getNumberFormat({format:v?"":y,useGrouping:this.bulletChart.enableGroupSeparator});var b=a.initialClipRect.x+(a.enableRtl?a.initialClipRect.width:0);c+=i.measureText(this.formatValue(this,v,y,this.bulletChart.maximum),a.labelStyle,this.bulletChart.themeStyle.axisLabelFont).height/3;for(var x=p;x<=u;x+=g){r=a.enableRtl?x===p:x===u,a.labelStyle.useRangeColor&&(f=this.bindingRangeStrokes(d-(r?this.bulletChart.majorTickLines.width/2:0),b,this.bulletChart.orientation,a.enableRtl)),o=m?x.toLocaleString(l):this.formatValue(this,v,y,x);var S=this.labelXOptions(d,c,o,x);this.bulletChart.labelStyle.fontFamily=this.bulletChart.labelStyle.fontFamily||this.bulletChart.themeStyle.axisLabelFont.fontFamily;var C=i.textElement(S,this.bulletChart.labelStyle,f,t,this.bulletChart.themeStyle.axisLabelFont);n.appendChild(C),d+=s?-e:e}t.appendChild(n)},e.prototype.labelXOptions=function(e,t,i,o){return{id:this.bulletChart.svgObject.id+"_AxisLabel_"+o,anchor:"middle",text:i,transform:"",x:e,y:t,baseLine:"",labelRotation:0}},e.prototype.renderYAxisLabels=function(e,t){var o,r,n=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_axisLabelGroup"}),a=this.bulletChart,l=a.locale,s=a.enableRtl,h=(a.tickPosition===a.labelPosition?a.majorTickLines.height:0)+10,c=a.initialClipRect.y+(s?0:a.initialClipRect.height),d=a.initialClipRect.x+(a.opposedPosition?a.initialClipRect.width+("Inside"===a.labelPosition?-(h+10):h):"Inside"===a.labelPosition?h+10:-h),p=a.minimum,u=a.maximum,g=a.interval,m=l&&this.bulletChart.enableGroupSeparator,y=a.labelStyle.color||a.themeStyle.axisLabelFont.color,f=this.getFormat(this.bulletChart),v=null!==f.match("{value}");this.format=this.bulletChart.intl.getNumberFormat({format:v?"":f,useGrouping:this.bulletChart.enableGroupSeparator});var b=a.initialClipRect.y+(a.enableRtl?0:a.initialClipRect.height),x=i.measureText(this.formatValue(this,v,f,this.bulletChart.maximum),a.labelStyle,this.bulletChart.themeStyle.axisLabelFont).width/2,S=i.measureText(this.formatValue(this,v,f,this.bulletChart.maximum),a.labelStyle,this.bulletChart.themeStyle.axisLabelFont).height/3;c+=S;for(var C=p;C<=u;C+=g){r=a.enableRtl?C===u:C===p,a.labelStyle.useRangeColor&&(y=this.bindingRangeStrokes(c-S-(r?this.bulletChart.majorTickLines.width/2:0),b,this.bulletChart.orientation,a.enableRtl)),o=m?C.toLocaleString(l):this.formatValue(this,v,f,C);var F=this.labelXOptions(d-(this.bulletChart.opposedPosition?-x:x),c,o,C);this.bulletChart.labelStyle.fontFamily=this.bulletChart.labelStyle.fontFamily||this.bulletChart.themeStyle.axisLabelFont.fontFamily;var w=i.textElement(F,this.bulletChart.labelStyle,y,t,a.themeStyle.axisLabelFont);n.appendChild(w),c+=s?e:-e}t.appendChild(n)},e.prototype.getFormat=function(e){return e.labelFormat?e.labelFormat:""},e.prototype.formatValue=function(e,t,i,o){return t?i.replace("{value}",e.format(o)):e.format(o)},e}(),$l=function(){function e(e){this.comparative=[],this.dataSource=e.dataSource,this.isVertical="Vertical"===e.orientation,this.isTicksInside="Inside"===e.tickPosition,this.isLabelsInside="Inside"===e.labelPosition,this.isHorizontal="Horizontal"===e.orientation,this.isLeft="Left"===e.titlePosition,this.isRight="Right"===e.titlePosition,this.isTop="Top"===e.titlePosition,this.location=10,this.featureBarBounds=[],this.majorTickSize=e.majorTickLines.height,this.labelOffset=15,this.labelSize=12,this.bulletChart=e,this.isLabelBelow=!this.bulletChart.opposedPosition,this.scaleOrientation=this.bulletChart.orientation,this.rangeColor=[]}return e.prototype.drawScaleGroup=function(e){var t=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_rangeGroup"}),o=this.bulletChart.maximum,r=this.bulletChart.ranges;this.scaleSettingsGroup=e;var n,a=this.bulletChart,l=a.enableRtl,s=a.initialClipRect,h=s.x+(l&&"Horizontal"===a.orientation?s.width:0),c=s.y+(l||"Vertical"!==a.orientation?0:s.height),d=0;a.rangeCollection=[];for(var p=0,u="Horizontal"===a.orientation?s.width:s.height,g="Horizontal"===a.orientation?s.height:s.width,m=0;m<r.length;m++){d=u*((r[m].end-p)/o),"Horizontal"===a.orientation?h-=l?d:0:c-=l?0:d,n=new co(a.svgObject.id+"_range_"+m,r[m].color||this.bulletChart.themeStyle.rangeStrokes[m].color,{width:1},r[m].opacity,new i.Rect(h,c,"Horizontal"===a.orientation?d:g,"Horizontal"===a.orientation?g:d));var y=a.renderer.drawRectangle(n);t.appendChild(y),e.appendChild(t),"Horizontal"===a.orientation?h+=l?0:d:c+=l?d:0,a.rangeCollection.push(d),p=r[m].end}return this.bulletChart.rangeCollection},e.prototype.sortRangeCollection=function(e,t){return e-t},e.prototype.renderFeatureBar=function(e){0!==e&&this.renderCommonFeatureBar(e,this.isHorizontal)},e.prototype.renderCommonFeatureBar=function(e,o){for(var r,n,a,l,s=this.bulletChart,h=o?s.initialClipRect.y+s.initialClipRect.height:s.initialClipRect.x,c=s.renderer.createGroup({id:s.svgObject.id+"_featureGroup"}),d=(o?s.initialClipRect.height:s.initialClipRect.width)/e,p=0;p<e;p++){if(a=s.dataSource[p],r=a[s.categoryField],n=o?h-d*p-(d+s.valueHeight)/2:h+d*p+d/2-s.valueHeight/2,l=this.calculateFeatureMeasureBounds(a[s.valueField],r,o),a&&"Dot"===s.type){var u=a[s.valueField];l.pointX=o?l.pointX+(u>0&&!s.enableRtl||u<0&&s.enableRtl?l.width:0)-3:l.pointX+(u>0&&s.enableRtl||u<0&&!s.enableRtl?l.width:0)-3,l.width=6}if(l){var g=o?this.featureBar(l.pointX,n,l.width,p):this.verticalFeatureBar(n,l.pointX,l.width,p);if(c.appendChild(g),this.feature=g,this.scaleSettingsGroup.appendChild(c),this.featureBarBounds[p]={x:l.pointX,y:n,width:l.width,height:s.valueHeight},!t.isNullOrUndefined(r)){var m=i.measureText(r,s.categoryLabelStyle,s.themeStyle.axisLabelFont),y=o?m.width:m.height,f=s.initialClipRect,v=void 0,b=void 0;o?(v=s.enableRtl?f.x+f.width+5+y/2:f.x-5-y/2,b=this.drawcategory(v,n,r)):(v=s.enableRtl?f.y-5-y/2:f.y+f.height+5+y/2,b=this.drawcategory(n+s.valueHeight/2,v,r)),s.categoryLabelStyle.fontFamily=s.categoryLabelStyle.fontFamily||s.themeStyle.axisLabelFont.fontFamily,i.textElement(b,s.categoryLabelStyle,s.categoryLabelStyle.color||s.themeStyle.categoryFontColor,this.scaleSettingsGroup)}}(s.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.doValueBarAnimation()}},e.prototype.featureBar=function(e,t,o,r){var n=new co(this.bulletChart.svgObject.id+"_FeatureMeasure_"+r,this.bulletChart.dataSource[r][this.bulletChart.valueFill]||this.bulletChart.valueFill,this.bulletChart.valueBorder,1,new i.Rect(e,t,o,this.bulletChart.valueHeight),0,0,"",this.bulletChart.valueBorder.dashArray),a=this.bulletChart.renderer.drawRectangle(n);return a.setAttribute("class",this.bulletChart.svgObject.id+"_FeatureMeasure"),a.id=this.bulletChart.svgObject.id+"_FeatureMeasure_"+r,a.setAttribute("role","img"),a.setAttribute("tabindex","0"),a.style.outline="none",a.setAttribute("aria-label",this.bulletChart.title+", value: "+this.bulletChart.dataSource[r].value+", target: "+this.bulletChart.dataSource[r].target),a},e.prototype.verticalFeatureBar=function(e,t,o,r){var n=new co(this.bulletChart.svgObject.id+"_FeatureMeasure_"+r,this.bulletChart.dataSource[r][this.bulletChart.valueFill]||this.bulletChart.valueFill,this.bulletChart.valueBorder,1,new i.Rect(e,t,this.bulletChart.valueHeight,o)),a=this.bulletChart.renderer.drawRectangle(n);return a.setAttribute("class",this.bulletChart.svgObject.id+"_FeatureMeasure"),a.id=this.bulletChart.svgObject.id+"_FeatureMeasure_"+r,a.setAttribute("role","img"),a.setAttribute("tabindex","0"),a.style.outline="none",a.setAttribute("aria-label",this.bulletChart.title+", value: "+this.bulletChart.dataSource[r].value+", target: "+this.bulletChart.dataSource[r].target),a},e.prototype.drawcategory=function(e,t,i){return{id:"",anchor:"middle",x:e,y:t+(parseInt(this.bulletChart.categoryLabelStyle.size,10)/4+this.bulletChart.valueHeight/2),transform:"",text:i,baseLine:"",labelRotation:0}},e.prototype.renderComparativeSymbol=function(e){0!==e&&this.renderCommonComparativeSymbol(e,this.isHorizontal)},e.prototype.renderCommonComparativeSymbol=function(e,i){for(var o,r,n,a,l,s,h=this.bulletChart,c=h.initialClipRect,d=i?c.width:c.height,p=i?c.y+c.height:c.x,u=h.renderer.createGroup({id:h.svgObject.id+"_comparativeGroup"}),g=h.minimum,m=h.maximum,y=m-g,f=i?c.x-2.5:c.y+c.height,v=[],b=h.targetTypes,x="Rect",S=b.length,C=(i?c.height:c.width)/e,F=0;F<e;F++){o=h.dataSource[F][h.targetField],v=v.concat(o);for(var w=0;w<v.length;w++)x=b[w%S],v[w]>=g&&v[w]<=m&&(r=(l=i?p-C*F-C/2:p+C*F+C/2)-7.5,n=l+7.5,l=d/(y/(y-(m-v[w]))),a=i?f+(h.enableRtl?d-l:l):f-(h.enableRtl?d-l:l),s=this.getTargetElement(x,i,a,r,n,v[w],F),this.comparative.push(s),u.appendChild(s),r=0,n=0),this.scaleSettingsGroup.appendChild(u);v=[],(h.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.doTargetBarAnimation(0)}},e.prototype.getTargetElement=function(e,t,o,r,n,a,l){var s,h,c=this.bulletChart,d="Cross"===e?c.targetWidth-1:1,p="Circle"===e?c.targetWidth-1:c.targetWidth,u=t?o+p/2:r+(n-r)/2,g=t?r+(n-r)/2:o,m=c.svgObject.id+"_ComparativeMeasure_"+l,y=c.svgObject.id+"_ComparativeMeasure",f=c.dataSource[l][c.targetColor]||c.targetColor;if("Rect"===e)s=t?this.compareMeasure(o,r,n,l,a):this.compareVMeasure(r,n,o,l),h=c.renderer.drawLine(s);else if("Circle"===e)s=new uo(m,f,{width:1,color:f||"black"},1,u,g,p),h=c.renderer.drawCircle(s);else{var v="M "+(u-p)+" "+(g-p)+" L "+(u+p)+" "+(g+p)+" M "+(u-p)+" "+(g+p)+" L "+(u+p)+" "+(g-p);s=new i.PathOption(m,"transparent",d,f,1,"",v),h=c.renderer.drawPath(s)}return h.setAttribute("class",y),h},e.prototype.compareMeasure=function(e,t,i,o,r){var n=this.bulletChart;return{class:n.svgObject.id+"_ComparativeMeasure",id:n.svgObject.id+"_ComparativeMeasure_"+o,x1:r===n.maximum?e-n.targetWidth/2:r===n.minimum?e+n.targetWidth/2:e,y1:t,x2:r===n.maximum?e-n.targetWidth/2:r===n.minimum?e+n.targetWidth/2:e,y2:i,"stroke-width":n.targetWidth,stroke:n.dataSource[o][n.targetColor]||n.targetColor||"black"}},e.prototype.compareVMeasure=function(e,t,i,o){var r=this.bulletChart;return{class:r.svgObject.id+"_ComparativeMeasure",id:r.svgObject.id+"_ComparativeMeasure_"+o,x1:e,y1:i,x2:t,y2:i,"stroke-width":r.targetWidth,stroke:r.dataSource[o][r.targetColor]||r.targetColor||"black"}},e.prototype.calculateFeatureMeasureBounds=function(e,o,r){var n=this.bulletChart,a=n.minimum;if((e=e<a&&a<=0?a:e)>=a){var l=void 0,s=void 0,h=void 0,c=r?n.initialClipRect.x:n.initialClipRect.y,d=r?n.initialClipRect.width:n.initialClipRect.height,p=n.maximum-n.minimum,u=n.maximum-e,g=(n.enableRtl?"backward":"forward")+this.scaleOrientation.toLowerCase();o=t.isNullOrUndefined(o)?"":o;var m=i.measureText(o.toString(),n.labelStyle,this.bulletChart.themeStyle.axisLabelFont).width;switch(g){case"forwardhorizontal":case"backwardvertical":l=c+(a>0?0:d/p*Math.abs(a)),h=d/(p/(a>0?p-u:e)),e<0&&(l-=h=Math.abs(h)),h=l+h<c+d?h:c+d-l,s=c-("forwardhorizontal"===g?m/2+5:this.labelOffset);break;default:l=c+(d-d/(p/(p-u))),h=a>0?d/(p/(p-u)):d/(p/e),e<0&&(l-=h=Math.abs(h)),l<c&&(h=l+h-c,l=c),s=c+d+("backwardhorizontal"===g?m/2+5:5)}return{pointX:l,width:h,lastPointX:s}}return null},e.prototype.doValueBarAnimation=function(){var e=this.feature;if(!e)return null;var i,o,r,n,a,l=this.bulletChart.animation,s=this.bulletChart.animateSeries?this.bulletChart.animation.duration:l.duration,h=Y("Linear"),c=this.bulletChart.dataSource<0,d=e.getBoundingClientRect().height,p=e.getBoundingClientRect().width;"Horizontal"===this.bulletChart.orientation&&e&&(o=parseInt(e.getAttribute("height"),10),i=parseInt(e.getAttribute("x"),10),n=c?o:o+d,r=i),e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:0===s&&"Enable"===t.animationMode?1e3:s,delay:l.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",p=p||1,a=h(t.timeStamp-t.delay,0,p,t.duration),e.setAttribute("transform","translate("+r+" "+n+") scale("+a/p+", 1) translate("+-r+" "+-n+")"))},end:function(){e.setAttribute("transform","translate(0,0)"),e.style.visibility="visible"}})},e.prototype.doTargetBarAnimation=function(e){var t,i,o=this.comparative[e];if(!o)return null;"Horizontal"===this.bulletChart.orientation&&o&&(i=parseFloat(o.getAttribute("y1"))+parseFloat(o.getAttribute("y2")),t=parseFloat(o.getAttribute("x1"))),o.style.visibility="hidden",this.animateRect(o,t,i,e+1)},e.prototype.animateRect=function(e,i,o,r){var n,a=this,l=Y("Linear"),s=this.bulletChart.animation,h=this.comparative.length,c=this.bulletChart.animateSeries?this.bulletChart.animation.duration:s.duration;new t.Animation({}).animate(e,{duration:0===c&&"Enable"===t.animationMode?1e3:c,delay:s.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",n=l(t.timeStamp-t.delay,0,1,t.duration),e.setAttribute("transform","translate("+i+" "+o/2+") scale(1,"+n+") translate("+-i+" "+-o/2+")"))},end:function(){e.setAttribute("transform","translate(0,0)"),r<h&&a.doTargetBarAnimation(r+1)}})},e}(),Kl=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},es=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(null)],i.prototype,"end",void 0),Jl([t.Property(1)],i.prototype,"opacity",void 0),Jl([t.Property(null)],i.prototype,"color",void 0),Jl([t.Property(null)],i.prototype,"index",void 0),Jl([t.Property(null)],i.prototype,"name",void 0),Jl([t.Property("Rectangle")],i.prototype,"shape",void 0),Jl([t.Property("")],i.prototype,"legendImageUrl",void 0),i}(t.ChildProperty),ts=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(12)],i.prototype,"height",void 0),Jl([t.Property(1)],i.prototype,"width",void 0),Jl([t.Property(null)],i.prototype,"color",void 0),Jl([t.Property(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),is=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(8)],i.prototype,"height",void 0),Jl([t.Property(1)],i.prototype,"width",void 0),Jl([t.Property(null)],i.prototype,"color",void 0),Jl([t.Property(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),os=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property("Normal")],i.prototype,"fontStyle",void 0),Jl([t.Property("16px")],i.prototype,"size",void 0),Jl([t.Property("")],i.prototype,"color",void 0),Jl([t.Property("Normal")],i.prototype,"fontWeight",void 0),Jl([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),Jl([t.Property("Center")],i.prototype,"textAlignment",void 0),Jl([t.Property("None")],i.prototype,"textOverflow",void 0),Jl([t.Property(1)],i.prototype,"opacity",void 0),Jl([t.Property(!0)],i.prototype,"enableTrim",void 0),Jl([t.Property(null)],i.prototype,"maximumTitleWidth",void 0),Jl([t.Property(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),rs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(!1)],i.prototype,"enable",void 0),Jl([t.Property(null)],i.prototype,"fill",void 0),Jl([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},os)],i.prototype,"textStyle",void 0),Jl([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),Jl([t.Property(null)],i.prototype,"template",void 0),i}(t.ChildProperty),ns=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(!1)],i.prototype,"enable",void 0),Jl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},os)],i.prototype,"labelStyle",void 0),i}(t.ChildProperty),as=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kl(i,e),Jl([t.Property(!1)],i.prototype,"visible",void 0),Jl([t.Complex({x:0,y:0},oi)],i.prototype,"location",void 0),Jl([t.Property(8)],i.prototype,"padding",void 0),Jl([t.Property("Center")],i.prototype,"alignment",void 0),Jl([t.Property(10)],i.prototype,"shapeHeight",void 0),Jl([t.Property(10)],i.prototype,"shapeWidth",void 0),Jl([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},os)],i.prototype,"textStyle",void 0),Jl([t.Property("Auto")],i.prototype,"position",void 0),Jl([t.Complex({left:0,right:0,top:0,bottom:0},di)],i.prototype,"margin",void 0),Jl([t.Complex({},hi)],i.prototype,"border",void 0),Jl([t.Property(5)],i.prototype,"shapePadding",void 0),Jl([t.Property("transparent")],i.prototype,"background",void 0),Jl([t.Property(1)],i.prototype,"opacity",void 0),Jl([t.Property(3)],i.prototype,"tabIndex",void 0),i}(t.ChildProperty),ls=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ss=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},hs=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.bulletid=57726,r.animateSeries=!0,r.padding=5,r.leftSize=0,r.rightSize=0,r.topSize=0,r.bottomSize=0,r.maxLabelSize=new i.Size(0,0),r.maxTitleSize=new i.Size(0,0),r.intervalDivs=[10,5,2,1],r.currentLegendIndex=0,r.previousTargetId="",r}return ls(o,e),o.prototype.preRender=function(){this.allowServerDataBinding=!1,this.unWireEvents(),this.initPrivateValues(),this.setCulture(),this.wireEvents()},o.prototype.initPrivateValues=function(){if(this.delayRedraw=!1,this.scale=new $l(this),this.bulletAxis=new Ql(this),""===this.element.id){var e=document.getElementsByClassName("e-BulletChart").length;this.element.id="BulletChart_"+this.bulletid+"_"+e}},o.prototype.setCulture=function(){this.intl=new t.Internationalization},o.prototype.render=function(){var e=this,t={bulletChart:this,theme:this.theme,name:"load"};this.trigger("load",t,function(){e.setTheme(),e.createSvg(e),e.findRange(),e.bulletChartLegendModule&&e.legendSettings.visible&&(e.calculateVisibleElements(),e.bulletChartLegendModule.getLegendOptions(e.visibleRanges)),e.calculatePosition(),e.renderBulletElements(),e.trigger("loaded",{bulletChart:e}),e.allowServerDataBinding=!0,e.renderComplete()})},o.prototype.setTheme=function(){this.themeStyle=mt(this.theme),null!==this.targetColor&&"#191919"!==this.targetColor&&null!=this.valueFill||!(this.theme.indexOf("Fluent")>-1||this.theme.indexOf("Bootstrap5")>-1||this.theme.indexOf("Tailwind3")>-1)||(this.valueFill=this.valueFill?this.valueFill:"FluentDark"===this.theme?"#797775":"Bootstrap5"===this.theme?"#343A40":"Tailwind3"===this.theme?"#1F2937":"Tailwind3Dark"===this.theme?"#6B7280":"#A19F9D",this.targetColor="#191919"===this.targetColor?"FluentDark"===this.theme?"#797775":"Bootstrap5"===this.theme?"#343A40":"Tailwind3"===this.theme?"#1F2937":"Tailwind3Dark"===this.theme?"#6B7280":"#A19F9D":this.targetColor),null!==this.targetColor&&"#191919"!==this.targetColor&&null!=this.valueFill||!(this.theme.indexOf("Material3")>-1||this.theme.indexOf("Bootstrap5")>-1)||(this.valueFill=this.valueFill?this.valueFill:"Material3Dark"===this.theme?"#938F99":"Bootstrap5Dark"===this.theme?"#343A40":"#79747E",this.targetColor="#191919"===this.targetColor?"Material3Dark"===this.theme?"#938F99":"Bootstrap5Dark"===this.theme?"#343A40":"#79747E":this.targetColor)},o.prototype.findRange=function(){if(this.minimum||(this.minimum=0),!this.maximum&&this.ranges.length){this.maximum=0;for(e=0;e<this.ranges.length;e++)this.maximum=this.maximum>this.ranges[e].end?this.maximum:this.ranges[e].end}if(null===this.maximum)if(t.isNullOrUndefined(this.dataSource))this.maximum=10;else for(var e=0;e<Object.keys(this.dataSource).length;e++)this.dataSource[e][this.targetField]>this.dataSource[e][this.valueField]?this.maximum=this.maximum>this.dataSource[e][this.targetField]?this.maximum+this.interval:this.dataSource[e][this.targetField]+this.interval:this.maximum=this.maximum>this.dataSource[e][this.valueField]?this.maximum+this.interval:this.dataSource[e][this.valueField]+this.interval;this.interval||(this.interval=this.calculateNumericNiceInterval(this.maximum-this.minimum))},o.prototype.getActualDesiredIntervalsCount=function(e){var t="Horizontal"===this.orientation?e.width:e.height,i=3*("Horizontal"===this.orientation?.533:1);return i=Math.max(t*(i/100),1)},o.prototype.calculateNumericNiceInterval=function(e){for(var t=this.getActualDesiredIntervalsCount(this.availableSize),i=e/t,o=Math.pow(10,Math.floor(m(i,10))),r=0,n=this.intervalDivs;r<n.length;r++){var a=o*n[r];if(t<e/a)break;i=a}return i},o.prototype.setSecondaryElementPosition=function(){var e=he(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=he(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px",e.style.position="relative"}},o.prototype.createSvg=function(e){this.removeSvg(),e.renderer=new i.SvgRenderer(e.element.id),this.calculateAvailableSize(this),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),this.renderChartBackground()},o.prototype.renderChartBackground=function(){var e=new co(this.element.id+"_ChartBorder",this.themeStyle.background,{width:this.border.width||0,color:this.border.color||"transparent"},1,new i.Rect(0,0,this.availableSize.width,this.availableSize.height),0,0,"",this.border.dashArray);this.svgObject.appendChild(this.renderer.drawRectangle(e))},o.prototype.renderBulletElements=function(){var e=this.renderer.createGroup({id:this.svgObject.id+"_scaleGroup"});this.renderBulletChartTitle(),this.svgObject.appendChild(e),this.rangeCollection=this.scale.drawScaleGroup(e);var t=("Horizontal"===this.orientation?this.initialClipRect.width:this.initialClipRect.height)/((this.maximum-this.minimum)/this.interval);this.bulletAxis.renderMajorTickLines(t,e),this.bulletAxis.renderMinorTickLines(t,e),this.bulletAxis.renderAxisLabels(t,e),this.bulletChartRect.x="Left"===this.titlePosition||"Right"===this.titlePosition||"Vertical"===this.orientation?this.bulletChartRect.x:0;var i=this.element.id;if("g"!==this.element.tagName){var o=Ve(this.redraw,i+"_Secondary_Element")||this.createElement("div");o.id=i+"_Secondary_Element",be(!1,this.element,o,this.redraw)}this.tooltip.enable&&be(!1,this.svgObject,this.renderer.createGroup({id:i+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.bindData(),this.renderDataLabel(),this.renderBulletLegend(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition()},o.prototype.renderBulletLegend=function(){if(this.bulletChartLegendModule&&this.bulletChartLegendModule.legendCollections.length){this.bulletChartLegendModule.calTotalPage=!0;var e=this.bulletChartLegendModule.legendBounds;this.bulletChartLegendModule.renderLegend(this,this.legendSettings,e)}},o.prototype.bulletResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,name:"resized",currentSize:new i.Size(0,0),previousSize:new i.Size(this.availableSize.width,this.availableSize.height)};return this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);e.createSvg(e),t.currentSize=e.availableSize,e.trigger("resized",t),e.calculatePosition(),e.renderBulletElements()},500),!1},o.prototype.bindData=function(){null!=this.dataSource&&(this.dataCount=this.dataSource.length,this.drawMeasures(this.dataCount))},o.prototype.drawMeasures=function(e){this.scale.renderFeatureBar(e),this.scale.renderComparativeSymbol(e)},o.prototype.calculatePosition=function(){var e=this.margin,t=0,o=0,r=new i.Size(0,0);this.titleCollections=[],this.subTitleCollections=[];var n=0,a=0,l=5;if(this.title){this.titleCollections=Ge(this.title,this.titleStyle,this.titleStyle.maximumTitleWidth,this.enableRtl,this.themeStyle.titleFont),t=i.measureText(this.title,this.titleStyle,this.themeStyle.titleFont).height*this.titleCollections.length+5;for(var s=0,h=this.titleCollections;s<h.length;s++){var c=h[s];n=(r=i.measureText(c,this.titleStyle,this.themeStyle.titleFont)).width>n?r.width:n,a=r.height>a?r.height:a}if(l+=a,this.subTitleCollections=Ge(this.subtitle,this.subtitleStyle,this.titleStyle.maximumTitleWidth,this.enableRtl),this.subtitle){for(var d=0,p=this.subTitleCollections;d<p.length;d++){var u=p[d];n=(r=i.measureText(u,this.subtitleStyle,this.themeStyle.subTitleFont)).width>n?r.width:n,a=r.height>a?r.height:a}o=i.measureText(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont).height*this.subTitleCollections.length+5,l+=a}}this.maxTitleSize=new i.Size(n,"Vertical"===this.orientation?l:a),this.maxLabelSize=this.getMaxLabelWidth(),this.initialClipRect=this.getBulletBounds("Vertical"===this.orientation?l:n,t,o,e),this.bulletChartRect=new i.Rect(this.initialClipRect.x,this.initialClipRect.y,this.initialClipRect.width,this.initialClipRect.height),this.bulletChartLegendModule&&this.bulletChartLegendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,this.maxLabelSize)},o.prototype.getBulletBounds=function(e,t,o,r){var n=new i.Rect(0,0,0,0),a=this.enableRtl,l=this.labelPosition===this.tickPosition?5:0,s="Inside"===this.tickPosition?0:this.majorTickLines.height,h="Inside"===this.labelPosition?0:5+("Outside"===this.tickPosition?0:i.measureText(this.maximum.toString(),this.labelStyle,this.themeStyle.dataLabelFont).height),c=0,d=0,p=0,u=0,g=0,m=0,y=0,f=0,v=e,b=this.bulletAxis.getFormat(this),x=null!==b.match("{value}");this.bulletAxis.format=this.intl.getNumberFormat({format:x?"":b,useGrouping:this.enableGroupSeparator});var S,C=i.measureText(this.bulletAxis.formatValue(this.bulletAxis,x,b,this.maximum),this.labelStyle,this.themeStyle.axisLabelFont).width;switch("Horizontal"===this.orientation?(S=this.maxLabelSize.width,c=this.opposedPosition?s+h+l:0,d=this.opposedPosition?0:s+h+l,y=S&&!a?S:0,y+=v&&"Left"===this.titlePosition?15:0,f=S&&a?S:0,f+=v&&"Right"===this.titlePosition?5:0):(S=this.maxLabelSize.height,u=this.opposedPosition?s+l:0,u+=this.opposedPosition&&"Inside"!==this.labelPosition?C:0,p=this.opposedPosition?0:s+l,p+=this.opposedPosition||"Inside"===this.labelPosition?0:C,g=S&&a?S+5:0,m=S&&!a?S+5:0),this.titlePosition){case"Left":n.x=r.left+v+y+p,n.width=this.availableSize.width-r.right-n.x-f-u<0?0:this.availableSize.width-r.right-n.x-f-u,n.y=r.top+c+g,n.height=this.availableSize.height-n.y-r.bottom-d-m<0?0:this.availableSize.height-n.y-r.bottom-d-m;break;case"Right":n.x=r.left+y+p,n.width=this.availableSize.width-u-r.right-n.x-(v+5)-f<0?0:this.availableSize.width-u-r.right-n.x-(v+5)-f,n.y=r.top+c+g,n.height=this.availableSize.height-n.y-r.bottom-d-m<0?0:this.availableSize.height-n.y-r.bottom-d-m;break;case"Top":n.x=r.left+p+y,n.width=this.availableSize.width-r.right-n.x-f-u<0?0:this.availableSize.width-r.right-n.x-f-u,n.y=r.top+(t+o)+c+g,n.height=this.availableSize.height-n.y-r.bottom-d-m<0?0:this.availableSize.height-n.y-r.bottom-d-m;break;case"Bottom":n.x=r.left+p+y,n.y=r.top+c+g,n.width=this.availableSize.width-r.right-n.x-f-u<0?0:this.availableSize.width-r.right-n.x-f-u,n.height=this.availableSize.height-n.y-m-r.bottom-d-(t+o)<0?0:this.availableSize.height-n.y-m-r.bottom-d-(t+o)}return n},o.prototype.getMaxLabelWidth=function(){if(this.maxLabelSize=new i.Size(0,0),!this.categoryField)return this.maxLabelSize;var e;if(!t.isNullOrUndefined(this.dataSource))for(var o=0,r=Object.keys(this.dataSource).length;o<r;o++)(e=i.measureText(this.dataSource[o][this.categoryField]||"",this.categoryLabelStyle,this.themeStyle.axisLabelFont)).width>this.maxLabelSize.width&&(this.maxLabelSize.width=e.width),e.height>this.maxLabelSize.height&&(this.maxLabelSize.height=e.height);return this.maxLabelSize},o.prototype.calculateVisibleElements=function(){var e,t=this.ranges;this.visibleRanges=[];for(var i=0,o=t.length;i<o;i++)(e=t[i]).index=i,this.visibleRanges.push(e),t[i]=e},o.prototype.renderBulletChartTitle=function(){var e=this.margin,t=0,o=0,r="middle",n="",a=this.titleStyle.textAlignment,l=i.measureText(this.title,this.titleStyle,this.themeStyle.titleFont),s=this.subtitle?i.measureText(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont):new i.Size(0,0);if(this.title){if("Horizontal"===this.orientation)switch(this.titlePosition){case"Top":t=this.findHorizontalAlignment(e),r="Far"===a?"end":"Near"===a?"start":"middle",o=e.top+l.height/2+5;break;case"Bottom":t=this.findHorizontalAlignment(e),r="Far"===a?"end":"Near"===a?"start":"middle",o=this.availableSize.height-e.bottom-l.height/3+10-(s.height?s.height+5:0);break;case"Left":r="end",t=e.left+this.maxTitleSize.width,o=this.margin.top+this.availableSize.height/2-l.height/3-(s.height?s.height:0);break;case"Right":r="start",t=this.availableSize.width-e.right-this.maxTitleSize.width+5,o=this.margin.top+this.availableSize.height/2-l.height/3-(s.height?s.height:0)}else{switch(this.titlePosition){case"Top":t=this.availableSize.width/2+10,o=this.margin.top+l.height/2+5;break;case"Bottom":t=this.availableSize.width/2,o=this.availableSize.height-this.margin.bottom-l.height/3+10-(s.height?s.height+5:0);break;case"Left":o=this.findVerticalAlignment(e),r="Far"===a?"start":"Near"===a?"end":"middle",t=e.left;break;case"Right":t=this.availableSize.width-e.right-l.height/3,r="Far"===a?"start":"Near"===a?"end":"middle",o=this.findVerticalAlignment(e)}n="Left"===this.titlePosition?"rotate(-90,"+t+","+o+")":"Right"===this.titlePosition?"rotate(90,"+t+","+o+")":""}var h=new i.TextOption(this.element.id+"_BulletChartTitle",t,o,r,this.titleCollections,n,"auto"),c=je(this.renderer,h,this.titleStyle,this.titleStyle.color||this.themeStyle.titleFont.color,this.svgObject,null,null,null,null,null,null,null,null,null,null,this.themeStyle.titleFont);c&&(c.setAttribute("aria-label",this.title+". Syncfusion interactive chart."),c.setAttribute("tabindex","0"),c.style.outline="none",c.setAttribute("role","img")),this.subtitle&&this.renderBulletChartSubTitle(t,o,r)}},o.prototype.renderDataLabel=function(){var e,t,o,r=0,n=0,a=this.enableRtl,l=this.dataLabel.labelStyle.textAlignment,s=this.labelFormat?this.labelFormat:"",h=null!==s.match("{value}");if(this.dataLabel.enable)for(var c=0,d=Object.keys(this.dataSource).length;c<d;c++){t=this.dataSource[c],o=this.scale.featureBarBounds[c];var p=t[this.valueField].toString();this.format=this.intl.getNumberFormat({format:h?"":s,useGrouping:this.enableGroupSeparator}),p=h?s.replace("{value}",this.format(p)):p;var u=i.measureText(p,this.dataLabel.labelStyle,this.themeStyle.axisLabelFont),g=u.width,m=u.height;"Horizontal"===this.orientation?(e="Rect"===this.type?"end":a?"end":"start",(r=this.findTextAlignment(o,g,l))-g<this.initialClipRect.x&&(e="start"),r>this.initialClipRect.width&&(r-=g),n=o.y+o.height/2):(e="middle",r=o.y+o.height/2,(n=this.findTextAlignment(o,g,l))+m/2>this.initialClipRect.height+this.initialClipRect.y&&(n-=m/3));var y=new i.TextOption(this.element.id+"_DataLabel_"+c,r,n,e,p,"","middle");je(this.renderer,y,this.dataLabel.labelStyle,this.dataLabel.labelStyle.color||this.themeStyle.dataLabelFont.color,this.svgObject,null,null,null,null,null,null,null,null,null,null,this.themeStyle.dataLabelFont)}},o.prototype.findTextAlignment=function(e,t,i){var o=0;switch(i){case"Center":o=e.x+e.width/2;break;case"Near":o=e.x+("Horizontal"===this.orientation?this.enableRtl?e.width-5:5:this.enableRtl?10:e.width);break;case"Far":o=e.x+("Horizontal"===this.orientation?(this.enableRtl?"Rect"===this.type?t+10:-10:e.width)+("Rect"===this.type?-5:5):(this.enableRtl?e.width+("Rect"===this.type?-10:10):0)+("Rect"===this.type?10:-10))}return o},o.prototype.findHorizontalAlignment=function(e){var t=0;switch(this.titleStyle.textAlignment){case"Center":t=(this.availableSize.width-e.left-e.right)/2;break;case"Near":t=e.left;break;case"Far":t=this.availableSize.width-e.right}return t},o.prototype.findVerticalAlignment=function(e){var t=0;switch(this.titleStyle.textAlignment){case"Center":t=(this.availableSize.height-e.top-e.bottom)/2;break;case"Near":t=e.top;break;case"Far":t=this.availableSize.height-e.bottom}return t},o.prototype.renderBulletChartSubTitle=function(e,t,o){var r=this.margin,n="",a=i.measureText(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont);if("Horizontal"===this.orientation)switch(this.titlePosition){case"Top":t=t+a.height+2.5;break;case"Bottom":t=this.availableSize.height-r.bottom-a.height/3+5;break;case"Left":case"Right":t=t+a.height+2.5}else{switch(this.titlePosition){case"Top":t=t+a.height+2.5;break;case"Bottom":t=this.availableSize.height-r.bottom-a.height/3+5;break;case"Left":e+=a.height+2.5;break;case"Right":e-=a.height+2.5}n="Left"===this.titlePosition?"rotate(-90,"+e+","+t+")":"Right"===this.titlePosition?"rotate(90,"+e+","+t+")":""}var l=new i.TextOption(this.element.id+"_BulletChartSubTitle",e,t,o,this.subTitleCollections,n,"auto"),s=je(this.renderer,l,this.subtitleStyle,this.subtitleStyle.color||this.themeStyle.subTitleFont.color,this.svgObject,null,null,null,null,null,null,null,null,null,null,this.themeStyle.subTitleFont);s&&(s.setAttribute("aria-label",this.subtitle),s.setAttribute("tabindex","0"),s.style.outline="none",s.setAttribute("role","img"))},o.prototype.calculateAvailableSize=function(e){var t=this.element.clientWidth||this.element.offsetWidth||200,o="Vertical"===this.orientation?450:"Left"===this.titlePosition||"Right"===this.titlePosition?83:126,r=this.element.clientHeight||o;e.availableSize=new i.Size(Ne(e.width,t)||t,Ne(e.height,r)||r)},o.prototype.removeSvg=function(){var e=document.getElementById(this.element.id+"_svg");e&&t.remove(e)},o.prototype.getPersistData=function(){var e=["loaded"];return this.addOnPersist(e)},o.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.bulletMouseDown),t.EventHandler.remove(this.element,i,this.bulletMouseMove),t.EventHandler.remove(this.element,o,this.bulletMouseLeave),t.EventHandler.remove(this.element,"click",this.bulletChartOnMouseClick),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound)},o.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.bulletMouseMove,this),t.EventHandler.add(this.element,e,this.bulletMouseLeave,this),t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.bulletMouseDown,this),t.EventHandler.add(this.element,"click",this.bulletChartOnMouseClick,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),this.resizeBound=this.bulletResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.setStyle(this.element)},o.prototype.chartKeyDown=function(e){"Tab"===e.code&&this.removeNavigationStyle()},o.prototype.setStyle=function(e){e.style.position="relative",e.style.display="block"},o.prototype.bulletMouseMove=function(e){var i=e.clientX,o=e.clientY;this.setPointMouseXY(i,o);var r=e.target.id,n=e.target.className.baseVal;if(!(n===this.svgObject.id+"_FeatureMeasure"&&(this.svgObject.id,0)||t.isNullOrUndefined(this.dataSource)))for(var a=0;a<Object.keys(this.dataSource).length;a++)document.getElementById(this.svgObject.id+"_FeatureMeasure_"+a).setAttribute("opacity","1"),document.getElementById(this.svgObject.id+"_ComparativeMeasure_"+a).setAttribute("opacity","1");if(!this.isTouchEvent(e)){var l="tooltipDiv"+this.element.id,s=document.getElementById(l);s&&(this.isReact&&this.clearTemplate(),t.remove(s)),this.bulletTooltipModule&&(this.bulletTooltipModule._elementTooltip(e,n,r,this.mouseX),this.bulletTooltipModule._displayTooltip(e,n,r,this.mouseX,this.mouseY))}},o.prototype.setPointMouseXY=function(e,t){var i=he(this.svgObject.id).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.mouseX=e-o.left-Math.max(i.left-o.left,0),this.mouseY=t-o.top-Math.max(i.top-o.top,0)},o.prototype.bulletMouseLeave=function(e){if(!this.isTouchEvent(e)){var i=document.getElementById(".tooltipDiv"+this.element.id);i&&(this.isReact&&this.clearTemplate(),t.remove(i))}},o.prototype.isTouchEvent=function(e){return"touch"===e.pointerType||e.type.indexOf("touch")>-1},o.prototype.bulletMouseDown=function(e){var i,o,r;if("touchstart"===e.type?(this.isTouch=!0,i=(r=e).changedTouches[0].clientX,o=r.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY),this.setPointMouseXY(i,o),this.isTouchEvent(e)){this.isReact&&this.clearTemplate();var n=document.getElementById("tooltipDiv"+this.element.id);n&&t.remove(n);var a=e.target.id,l=e.target.className.baseVal;this.bulletTooltipModule&&(this.bulletTooltipModule._elementTooltip(e,l,a,this.mouseX),this.bulletTooltipModule._displayTooltip(e,l,a,this.mouseX,this.mouseY))}this.removeNavigationStyle()},o.prototype.bulletChartOnMouseClick=function(e){var t=e.target;return this.trigger("bulletChartMouseClick",{target:t.id,x:this.mouseX,y:this.mouseY}),this.notify("click",e),this.removeNavigationStyle(),!1},o.prototype.print=function(e){new Jo(this).print(e)},o.prototype.export=function(e,t,i,o,r,n,a){o=o||[this],new Fa(this).export(e,t,i,o,r,n,a)},o.prototype.chartKeyUp=function(e){var t,i=e.target.id,o=e.target,r=he(this.element.id+"_chart_legend_translate_g");if(this.removeNavigationStyle(),"Tab"===e.code&&this.setNavigationStyle(i),r){var n=r.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-bullet-chart-focused")?a+=" e-bullet-chart-focused":a||(a="e-bullet-chart-focused"),n.setAttribute("class",a)}if("Tab"===e.code)""!==this.previousTargetId&&this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("_chart_legend_g_")&&(t=he(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild)),this.previousTargetId=i;else if(e.code.indexOf("Arrow")>-1&&(e.preventDefault(),i.indexOf("_chart_legend_")>-1)){var l=o.parentElement.children;l[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,l.length);var s=l[this.currentLegendIndex];this.focusChild(s),this.removeNavigationStyle(),this.setNavigationStyle(s.id),i=s.children[1].id}return!1},o.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},o.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title], text[id*=_BulletChartTitle] ,g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},o.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},o.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},o.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-bullet-chart-focused")?t="e-bullet-chart-focused "+t:t||(t="e-bullet-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.onPropertyChanged=function(t){var i=!1,o=!1;if(this.animateSeries=!1,!this.delayRedraw){for(var r=0,n=Object.keys(t);r<n.length;r++)switch(n[r]){case"height":case"width":this.createSvg(this),o=!0;break;case"subtitle":case"title":o=!0;break;case"tickPosition":case"labelPosition":case"titlePosition":i=!0;break;case"minimum":case"maximum":case"interval":o=!0;break;case"majorTickLines":case"minorTickLines":case"type":case"ranges":case"valueFill":case"targetColor":o=!0;break;case"titleStyle":t.titleStyle?o=!0:i=!0;break;case"subtitleStyle":t.subtitleStyle&&(t.subtitleStyle.size||t.subtitleStyle.textOverflow)?o=!0:i=!0;break;case"border":case"opposedPosition":i=!0;break;case"dataSource":this.bindData(),o=!0;break;case"theme":this.animateSeries=!0;break;case"enableRtl":case"locale":case"currencyCode":e.prototype.refresh.call(this)}!o&&i&&(this.removeSvg(),this.renderBulletElements(),this.trigger("loaded",{bulletChart:this})),o&&(this.render(),this.trigger("loaded",{bulletChart:this}),this.redraw=!1)}},o.prototype.requiredModules=function(){for(var e,t=[],i=0;i<this.ranges.length;i++)null!==this.ranges[i].name&&(e=!0);return this.isLegend=this.legendSettings.visible&&(e||!!this.isLegend||""!==this.targetField||""!==this.valueField),this.tooltip.enable&&t.push({member:"BulletTooltip",args:[this]}),this.isLegend&&t.push({member:"BulletChartLegend",args:[this]}),t},o.prototype.getModuleName=function(){return"bulletChart"},o.prototype.destroy=function(){this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null,this.element.classList.remove("e-BulletChart"),this.element.innerText="";var t=document.getElementById(this.element.id+"Keyboard_bullet_chart_focus");t&&t.remove(),g("chartmeasuretext")},ss([t.Property(null)],o.prototype,"width",void 0),ss([t.Property(null)],o.prototype,"height",void 0),ss([t.Property(null)],o.prototype,"locale",void 0),ss([t.Complex({},ts)],o.prototype,"majorTickLines",void 0),ss([t.Complex({},is)],o.prototype,"minorTickLines",void 0),ss([t.Property(null)],o.prototype,"minimum",void 0),ss([t.Property(null)],o.prototype,"maximum",void 0),ss([t.Property(null)],o.prototype,"interval",void 0),ss([t.Property(4)],o.prototype,"minorTicksPerInterval",void 0),ss([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},os)],o.prototype,"labelStyle",void 0),ss([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},os)],o.prototype,"categoryLabelStyle",void 0),ss([t.Property("")],o.prototype,"labelFormat",void 0),ss([t.Property("")],o.prototype,"title",void 0),ss([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},os)],o.prototype,"titleStyle",void 0),ss([t.Property("")],o.prototype,"subtitle",void 0),ss([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},os)],o.prototype,"subtitleStyle",void 0),ss([t.Property("Horizontal")],o.prototype,"orientation",void 0),ss([t.Complex({color:"#DDDDDD",width:0},hi)],o.prototype,"border",void 0),ss([t.Complex({},rs)],o.prototype,"tooltip",void 0),ss([t.Collection([{end:null,opacity:1,color:""},{end:null,opacity:1,color:""},{end:null,opacity:1,color:""}],es)],o.prototype,"ranges",void 0),ss([t.Property("Outside")],o.prototype,"labelPosition",void 0),ss([t.Property("Outside")],o.prototype,"tickPosition",void 0),ss([t.Property("Top")],o.prototype,"titlePosition",void 0),ss([t.Property(!1)],o.prototype,"opposedPosition",void 0),ss([t.Property("Material")],o.prototype,"theme",void 0),ss([t.Complex({},pi)],o.prototype,"animation",void 0),ss([t.Complex({},ns)],o.prototype,"dataLabel",void 0),ss([t.Complex({},as)],o.prototype,"legendSettings",void 0),ss([t.Property(!1)],o.prototype,"enableGroupSeparator",void 0),ss([t.Complex({top:15,bottom:10,left:15,right:15},di)],o.prototype,"margin",void 0),ss([t.Property(5)],o.prototype,"targetWidth",void 0),ss([t.Property("#191919")],o.prototype,"targetColor",void 0),ss([t.Property(6)],o.prototype,"valueHeight",void 0),ss([t.Property(null)],o.prototype,"valueFill",void 0),ss([t.Complex({color:"transparent",width:0},hi)],o.prototype,"valueBorder",void 0),ss([t.Property(null)],o.prototype,"dataSource",void 0),ss([t.Property(null)],o.prototype,"query",void 0),ss([t.Property(null)],o.prototype,"categoryField",void 0),ss([t.Property("Rect")],o.prototype,"type",void 0),ss([t.Property("")],o.prototype,"valueField",void 0),ss([t.Property("")],o.prototype,"targetField",void 0),ss([t.Property(["Rect","Cross","Circle"])],o.prototype,"targetTypes",void 0),ss([t.Property(0)],o.prototype,"tabIndex",void 0),ss([t.Event()],o.prototype,"tooltipRender",void 0),ss([t.Event()],o.prototype,"load",void 0),ss([t.Event()],o.prototype,"loaded",void 0),ss([t.Event()],o.prototype,"bulletChartMouseClick",void 0),ss([t.Event()],o.prototype,"legendRender",void 0),ss([t.Event()],o.prototype,"beforePrint",void 0),o=ss([t.NotifyPropertyChanges],o)}(t.Component),cs=function(){function e(e){this.control=e,this.elementId=e.element.id,this.bulletAxis=new Ql(this.control)}return e.prototype._elementTooltip=function(e,t,i,o){var r=this.control.createElement("div");r.id="tooltip",r.className="tooltipDiv";var n=e.target,a=o+20,l=e.clientY,s="",h=this.control.tooltip.textStyle.fontStyle?this.control.tooltip.textStyle.fontStyle:this.control.themeStyle.tooltipLabelFont.fontStyle,c=this.control.tooltip.fill?this.control.tooltip.fill:this.control.themeStyle.tooltipFill,d="left:"+a+"px;top:"+l+'px;display: block; position: absolute; "z-index": "13000",cursor: default;font-family: Segoe UI;color:'+(this.control.themeStyle.tooltipLabelFont.color||this.control.themeStyle.tooltipBoldLabel)+"; font-size: 13px; background-color:"+c+"; border: 1px solid #707070;font-style:"+h+";";r.style.cssText=d,t===this.control.svgObject.id+"_Caption"?s=n.textContent===this.control.title?"":this.control.title:t===this.control.svgObject.id+"_SubTitle"&&(s=n.textContent===this.control.subtitle?"":this.control.subtitle),""!==s&&(r.innerHTML="&nbsp"+s+"&nbsp",document.body.insertAdjacentElement("afterbegin",r))},e.prototype._displayTooltip=function(e,t,i,o,r){if("undefined"!==t&&this.control.tooltip.enable&&(t===this.control.svgObject.id+"_FeatureMeasure"||t===this.control.svgObject.id+"_ComparativeMeasure")){var n=[],a=void 0,l=this.bulletAxis.getFormat(this.control),s=null!==l.match("{value}"),h=i.substring(i.lastIndexOf("_")+1),c=[];this.bulletAxis.format=this.bulletAxis.bulletChart.intl.getNumberFormat({format:s?"":l,useGrouping:this.bulletAxis.bulletChart.enableGroupSeparator});var d=this.control.dataSource[h][this.control.valueField];n=n.concat(this.control.dataSource[h][this.control.targetField]);var p=this.control.dataSource[h][this.control.categoryField],u=d?d.toString():"",g=n?n.toString():"",m=p?p.toString():"";u=this.bulletAxis.formatValue(this.bulletAxis,s,l,+d);for(F=0;F<n.length;F++)c=c.concat(this.bulletAxis.formatValue(this.bulletAxis,s,l,+n[F]));var y={value:u,target:c,category:m=this.bulletAxis.formatValue(this.bulletAxis,s,l,+p)},f={value:u,target:g,category:m},v="position: absolute; z-index: 13000; display: block;";0===document.getElementsByClassName("tooltipDiv"+this.control.element.id).length&&((a=this.control.createElement("div")).id="tooltipDiv"+this.control.element.id,a.style.cssText=v,document.getElementById(this.control.element.id+"_Secondary_Element").appendChild(a));var b={value:y.value,target:y.target,name:"tooltipRender"};if(""!==this.control.tooltip.template&&null!=this.control.tooltip.template){this.updateTemplateFn();for(var x=this.control.createElement("div",{id:this.control.element.id+"parent_template"}),S=this.templateFn(f,this.control,"template",x.id+"_blazorTemplate","",null,x);S&&S.length>0;)1===S.length?(x.appendChild(S[0]),S=null):x.appendChild(S[0]);b.template=x.innerHTML,this.control.trigger("tooltipRender",b),x.innerHTML=b.template,a.appendChild(x)}else{for(var C="Value : "+b.value,F=0;F<b.target.length;F++)C+="<br/> Target"+(0===F?"":"_"+F)+" : "+b.target[F];b.text=C,this.control.trigger("tooltipRender",b),a.innerHTML=b.text,a.style.font=this.control.tooltip.textStyle.fontStyle?this.control.tooltip.textStyle.fontStyle:this.control.themeStyle.tooltipLabelFont.fontStyle,a.style.color=this.control.themeStyle.tooltipLabelFont.color||this.control.themeStyle.tooltipBoldLabel,a.style.fontSize=this.control.themeStyle.titleFont.size}var w=this.control.tooltip.fill?this.control.tooltip.fill:this.control.themeStyle.tooltipFill,L="Fabric"===this.control.theme||"Fluent"===this.control.theme&&!this.control.tooltip.border.width?1:this.control.tooltip.border.width,P="Fabric"===this.control.theme||"Fluent"===this.control.theme&&!this.control.tooltip.border.color?"#D2D0CE":this.control.tooltip.border.color,A=this.control.tooltip.border.dashArray?"dashed "+P+"; border-dasharray: "+this.control.tooltip.border.dashArray+";":"Solid "+P+";",M=o,D=r;if(M=M+Ne(a.getAttribute("width"),this.control.containerWidth)<window.innerWidth?M:Ne(a.getAttribute("width"),this.control.containerWidth),D=D+Ne(a.getAttribute("height"),this.control.containerHeight)<window.innerHeight?D:Ne(a.getAttribute("height"),this.control.containerHeight),void 0!==M&&null!==M||(M=o),M+a.clientWidth>this.control.availableSize.width&&(M-=a.clientWidth+20),void 0!==D&&null!==D||(D=e.clientY),D+a.clientHeight>this.control.availableSize.height&&(D-=a.clientHeight+20),""!==this.control.tooltip.template&&null!=this.control.tooltip.template)a.style.cssText="position: absolute;left:"+(M+20)+"px;top:"+(D+20)+"px;";else{var k=this.control.tooltip.textStyle.fontFamily||this.control.themeStyle.tooltipLabelFont.fontFamily,R=v+"left:"+(M+20)+"px;top:"+(D+20)+"px;-webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px;-o-border-radius: 5px 5px 5px 5px;border-radius: 5px 5px 5px 5px;background-color:"+w+";color:"+(this.control.tooltip.textStyle.color||this.control.themeStyle.tooltipLabelFont.color)+"; border:"+L+"px "+A+"padding-bottom: 7px;font-style:"+this.control.themeStyle.tooltipLabelFont.fontStyle+"; padding-left: 10px; font-family:"+k+"; font-size:"+this.control.tooltip.textStyle.size+"; padding-right: 10px; padding-top: 7px";if(a.style.cssText=R,this.control.theme.indexOf("Fluent2")>-1){var T=this.control.element.id+"_shadow",E='<filter id="'+T+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/><feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',_=this.control.renderer.createDefs();_.setAttribute("id",this.control.element.id+"SVG_tooltip_definition"),a.appendChild(_),_.innerHTML=E,a.style.filter="url(#"+T+")"}}t!==this.control.svgObject.id+"_FeatureMeasure"&&t!==this.control.svgObject.id+"_ComparativeMeasure"||document.getElementById(i).setAttribute("opacity","0.6"),this.control.isReact&&this.control.renderReactTemplates()}},e.prototype.updateTemplateFn=function(){if(this.control.tooltip.template)try{"function"!=typeof this.control.tooltip.template&&document.querySelectorAll(this.control.tooltip.template).length?this.templateFn=t.compile(document.querySelector(this.control.tooltip.template).innerHTML.trim()):this.templateFn=t.compile(this.control.tooltip.template)}catch(e){this.templateFn=t.compile(this.control.tooltip.template)}},e.prototype.getModuleName=function(){return"BulletTooltip"},e.prototype.destroy=function(){},e}(),ds=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ps=function(e){function o(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return ds(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on(t.Browser.touchMoveEvent,this.bulletMouseMove,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd),this.chart.off(t.Browser.touchMoveEvent,this.bulletMouseMove))},o.prototype.bulletMouseMove=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e){this.legendCollections=[];var i,o=0;this.isRtlEnable=this.chart.enableRtl;for(var r=this.chart,n=0,a=e;n<a.length;n++){var l=a[n];null!==l.name&&(i=l.color?l.color:r.themeStyle.rangeStrokes[l.index].color,this.legendCollections.push(new qo(l.name,i,l.shape,this.chart.legendSettings.visible,null,l.legendImageUrl,null,!1,l.index,null)),o++)}if(null!==r.dataSource&&""!==r.valueField){i=r.theme.indexOf("Dark")>-1?"white":r.valueFill?r.valueFill:"black";s="Vertical"===r.orientation?"TargetRect":"ActualRect";this.legendCollections.push(new qo("Actual",i,s,this.chart.legendSettings.visible,null,"",null,!1,o++,null))}if(null!==r.dataSource&&""!==r.targetField){i=r.theme.indexOf("Dark")>-1?"white":r.targetColor?r.targetColor:"black";for(var s="Rect"===r.targetTypes[0]?"Vertical"===r.orientation?"ActualRect":"TargetRect":r.targetTypes[0],h=0;h<Object.keys(r.dataSource).length;h++)if(t.isNullOrUndefined(r.dataSource[h][r.targetField].length)||1===r.dataSource[h][r.targetField].length)for(;0===h;){this.legendCollections.push(new qo("Target",i,s,this.chart.legendSettings.visible,null,"",null,!1,o++,null));break}else for(var c=r.targetTypes,d=[],p=c.length;0===h;){for(var u=0;u<p;u++)d[u]=c[u%p],d[u]="Rect"===d[u]?"Vertical"===r.orientation?"ActualRect":"TargetRect":d[u],d[u]="Cross"===d[u]?"Multiply":d[u],this.legendCollections.push(new qo("Target_"+u,i,d[u],this.chart.legendSettings.visible,null,"",null,!1,o++,null));break}}},o.prototype.getLegendBounds=function(e,t,o){var r=0,n=o.padding,a=0;this.isVertical?r=e.width/100*5:a=e.height/100*5,t.height+=a,t.width+=r;var l,s=0,h=0,c=0,d=0,p=0,u=o.shapeWidth,g=o.shapePadding;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);for(var m=!1,y=0,f=this.legendCollections;y<f.length;y++){var v=f[y];l={fill:v.fill,text:v.text,shape:v.shape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",l),v.render=!l.cancel,v.text=l.text,v.fill=l.fill,v.shape=l.shape,v.textSize=i.measureText(v.text,o.textStyle,this.chart.themeStyle.legendLabelFont),v.render&&""!==v.text&&(m=!0,h+=d=u+g+v.textSize.width+n,(t.width<n+h||this.isVertical)&&(s=Math.max(s,h+n-(this.isVertical?0:d)),0===c&&d!==h&&(c=1),h=this.isVertical?0:d,p=++c*(this.maxItemHeight+n)+n))}p=Math.max(p,this.maxItemHeight+n+n),this.isPaging=t.height<p,this.totalPages=c,m?this.setBounds(Math.max(h+n,s),"Bottom"===this.position||"Top"===this.position?Math.min(p,this.chart.initialClipRect.height-(this.legend.border.width+this.legend.margin.bottom+this.legend.margin.top)):p,o,t):this.setBounds(0,0,o,t)},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),s=o.location.x+(this.isRtlEnable?-l:l),h=this.legend.padding;s+(e.textSize.width+i)>r.x+r.width+this.legend.shapeWidth/2||this.isVertical?(e.location.x=t.x,e.location.y=n===a?o.location.y:o.location.y+this.maxItemHeight+h):(e.location.x=n===a?o.location.x:s,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);e.text=ze(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont)},o.prototype.click=function(e){var t=e.target.id;t.indexOf(this.legendID+"_pagedown")>-1?this.changePage(e,!1):t.indexOf(this.legendID+"_pageup")>-1&&this.changePage(e,!0)},o.prototype.getModuleName=function(){return"BulletChartLegend"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),us=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),gs=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ms=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return us(i,e),gs([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),gs([t.Property("Normal")],i.prototype,"fontStyle",void 0),gs([t.Property("Regular")],i.prototype,"fontWeight",void 0),gs([t.Property("")],i.prototype,"color",void 0),gs([t.Property("12px")],i.prototype,"size",void 0),gs([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),ys=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return us(i,e),gs([t.Property(t.Browser.isDevice?5:10)],i.prototype,"top",void 0),gs([t.Property(t.Browser.isDevice?5:10)],i.prototype,"bottom",void 0),gs([t.Property(t.Browser.isDevice?5:10)],i.prototype,"right",void 0),gs([t.Property(t.Browser.isDevice?5:10)],i.prototype,"left",void 0),i}(t.ChildProperty),fs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return us(i,e),gs([t.Property(0)],i.prototype,"width",void 0),gs([t.Property(1)],i.prototype,"opacity",void 0),gs([t.Property("transparent")],i.prototype,"color",void 0),i}(t.ChildProperty),vs=function(){function e(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o}return e}(),bs=function(){function e(){}return e}(),xs=function(){function e(){}return e}(),Ss=function(){function e(){}return e}(),Cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return us(t,e),t}(bs),Fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return us(t,e),t}(Cs),ws=function(){function e(){}return e}(),Ls=function(){function e(){}return e}(),Ps=function(){function e(){}return e}(),As=function(){function e(){}return e}(),Ms=function(){function e(e,t,i,o,r){this.id=e,this.fill=t,this.borderColor=i,this.borderWidth=o,this.opacity=r}return e}(),Ds=function(){function e(){}return e}(),ks=function(){function e(){this.counterclockwise=0,this.clockwise=1}return e}(),Rs=function(){function e(){}return e}(),Ts=function(){function e(){}return e}(),Es=function(){function e(e,t){this.width=e,this.height=t}return e}(),_s=function(){function e(){}return e}(),Is=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Os=function(){function e(e,t,i,o,r,n,a){this.id=e,this.opacity=r,this.fill=t,this.stroke=o,this["stroke-width"]=i,this["stroke-dasharray"]=n,this.d=a}return e}(),zs=function(e){function t(t,i,o,r,n){var a=e.call(this,t,i,o.width,o.color,r)||this;return a.y=n.y,a.x=n.x,a.height=n.height,a.width=n.width,a}return Is(t,e),t}(Os),Bs=function(e){function t(t,i,o,r,n,a,l,s){var h=e.call(this,t,i,o.width,o.color,r)||this;return h.cy=a,h.cx=n,h.r=l,h["stroke-dasharray"]=s,h}return Is(t,e),t}(Os),Ns=function(){function e(e,t,i,o,r){this.id=e,this.x=t,this.y=i,this.anchor=o,this.text=r}return e}(),Vs=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hs=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ws=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(!0)],i.prototype,"visible",void 0),Hs([t.Property("")],i.prototype,"text",void 0),Hs([t.Property("")],i.prototype,"description",void 0),Hs([t.Property("Center")],i.prototype,"textAlignment",void 0),Hs([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),js=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(0)],i.prototype,"x",void 0),Hs([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),Us=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(1)],i.prototype,"width",void 0),Hs([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Xs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(10)],i.prototype,"width",void 0),Hs([t.Property(10)],i.prototype,"height",void 0),Hs([t.Complex({},Us)],i.prototype,"border",void 0),i}(t.ChildProperty),Gs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(1)],i.prototype,"width",void 0),Hs([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Ys=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Vs(i,e),Hs([t.Property(!1)],i.prototype,"visible",void 0),Hs([t.Property("bottom")],i.prototype,"position",void 0),Hs([t.Property("Center")],i.prototype,"alignment",void 0),Hs([t.Property(null)],i.prototype,"width",void 0),Hs([t.Property(null)],i.prototype,"height",void 0),Hs([t.Property("circle")],i.prototype,"shape",void 0),Hs([t.Property(null)],i.prototype,"rowCount",void 0),Hs([t.Property(null)],i.prototype,"columnCount",void 0),Hs([t.Property(8)],i.prototype,"itemPadding",void 0),Hs([t.Property(5)],i.prototype,"shapePadding",void 0),Hs([t.Property("")],i.prototype,"description",void 0),Hs([t.Property(!0)],i.prototype,"toggleVisibility",void 0),Hs([t.Complex({},Ws)],i.prototype,"title",void 0),Hs([t.Complex({},js)],i.prototype,"location",void 0),Hs([t.Complex({},Xs)],i.prototype,"itemStyle",void 0),Hs([t.Complex({},Gs)],i.prototype,"border",void 0),Hs([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),Zs=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qs=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Qs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Zs(i,e),qs([t.Property(1)],i.prototype,"width",void 0),qs([t.Property("")],i.prototype,"dashArray",void 0),qs([t.Property(!0)],i.prototype,"visible",void 0),qs([t.Property(null)],i.prototype,"color",void 0),qs([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),$s=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Zs(i,e),qs([t.Property(1)],i.prototype,"width",void 0),qs([t.Property("")],i.prototype,"dashArray",void 0),qs([t.Property(!1)],i.prototype,"visible",void 0),qs([t.Property(null)],i.prototype,"color",void 0),qs([t.Property(8)],i.prototype,"count",void 0),i}(t.ChildProperty),Ks=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Zs(i,e),qs([t.Property(!0)],i.prototype,"visible",void 0),qs([t.Property(1)],i.prototype,"width",void 0),qs([t.Property(null)],i.prototype,"color",void 0),qs([t.Property("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),Js=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Zs(i,e),qs([t.Property(!0)],i.prototype,"visible",void 0),qs([t.Property("Outside")],i.prototype,"labelPosition",void 0),qs([t.Property("Hide")],i.prototype,"labelIntersectAction",void 0),qs([t.Complex({},Qs)],i.prototype,"majorGridLines",void 0),qs([t.Complex({},$s)],i.prototype,"minorGridLines",void 0),qs([t.Complex({},Ks)],i.prototype,"axisLine",void 0),qs([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"labelStyle",void 0),i}(t.ChildProperty),eh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),th=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ih=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return eh(i,e),th([t.Property(!0)],i.prototype,"visible",void 0),th([t.Property("")],i.prototype,"text",void 0),th([t.Property("")],i.prototype,"description",void 0),th([t.Property("Far")],i.prototype,"textAlignment",void 0),th([t.Property(!0)],i.prototype,"enableTrim",void 0),th([t.Property(null)],i.prototype,"maximumWidth",void 0),th([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),oh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return eh(i,e),th([t.Property(!0)],i.prototype,"visible",void 0),th([t.Property("")],i.prototype,"text",void 0),th([t.Property("")],i.prototype,"description",void 0),th([t.Property("Center")],i.prototype,"textAlignment",void 0),th([t.Property(!0)],i.prototype,"enableTrim",void 0),th([t.Property(null)],i.prototype,"maximumWidth",void 0),th([t.Complex({},ih)],i.prototype,"subtitle",void 0),th([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"font",void 0),th([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),rh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),nh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ah=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(1)],i.prototype,"width",void 0),nh([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),lh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(!1)],i.prototype,"visible",void 0),nh([t.Property(null)],i.prototype,"fill",void 0),nh([t.Property(.75)],i.prototype,"opacity",void 0),nh([t.Property("")],i.prototype,"template",void 0),nh([t.Complex({},ah)],i.prototype,"border",void 0),i}(t.ChildProperty),sh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(3)],i.prototype,"width",void 0),nh([t.Property("white")],i.prototype,"color",void 0),i}(t.ChildProperty),hh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(.1)],i.prototype,"width",void 0),nh([t.Property("white")],i.prototype,"color",void 0),i}(t.ChildProperty),ch=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(1)],i.prototype,"width",void 0),nh([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),dh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(!1)],i.prototype,"visible",void 0),nh([t.Property("")],i.prototype,"template",void 0),nh([t.Property(null)],i.prototype,"fill",void 0),nh([t.Property(1)],i.prototype,"opacity",void 0),nh([t.Complex({},hh)],i.prototype,"border",void 0),nh([t.Complex({},ch)],i.prototype,"connectorLine",void 0),nh([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ms)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),ph=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property(!1)],i.prototype,"visible",void 0),nh([t.Property("circle")],i.prototype,"shape",void 0),nh([t.Property(6)],i.prototype,"width",void 0),nh([t.Property(6)],i.prototype,"height",void 0),nh([t.Property("")],i.prototype,"imageUrl",void 0),nh([t.Property("")],i.prototype,"fill",void 0),nh([t.Property(1)],i.prototype,"opacity",void 0),nh([t.Complex({},sh)],i.prototype,"border",void 0),nh([t.Complex({},dh)],i.prototype,"dataLabel",void 0),i}(t.ChildProperty),uh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rh(i,e),nh([t.Property("visible")],i.prototype,"visibility",void 0),nh([t.Property([])],i.prototype,"points",void 0),nh([t.Property("")],i.prototype,"resistance",void 0),nh([t.Property("")],i.prototype,"reactance",void 0),nh([t.Property("")],i.prototype,"tooltipMappingName",void 0),nh([t.Property(null)],i.prototype,"dataSource",void 0),nh([t.Property("")],i.prototype,"name",void 0),nh([t.Property(null)],i.prototype,"fill",void 0),nh([t.Property(!1)],i.prototype,"enableAnimation",void 0),nh([t.Property("2000ms")],i.prototype,"animationDuration",void 0),nh([t.Property(!1)],i.prototype,"enableSmartLabels",void 0),nh([t.Property(1)],i.prototype,"width",void 0),nh([t.Property(1)],i.prototype,"opacity",void 0),nh([t.Complex({},ph)],i.prototype,"marker",void 0),nh([t.Complex({},lh)],i.prototype,"tooltip",void 0),i}(t.ChildProperty),gh=function(){function e(){}return e.prototype.calculateAreaBounds=function(e,t,i){var o=e.margin,r=e.border,n=this.getLegendSpace(e,i),a=n.leftLegendWidth+o.left+r.width,l=n.rightLegendWidth+o.left+o.right+2*r.width,s=e.availableSize.width-(a+l);return{x:a,y:o.top+2*e.elementSpacing+n.modelTitleHeight+n.modelsubTitleHeight+n.topLegendHeight+r.width,width:s,height:e.availableSize.height-(n.modelTitleHeight+2*e.elementSpacing+n.modelsubTitleHeight+o.top+n.topLegendHeight+n.bottomLegendHeight)}},e.prototype.getLegendSpace=function(e,t){var i,o=e.title,r=e.legendSettings,n=r.position.toLowerCase(),a=0,l=0,s=e.font,h=0,c=r.border.width,d=0,p=0,u=0,g=0,m=0;return r.visible&&(i=t.width+5+e.elementSpacing+2*c,d="left"===n?i:0,p="right"===n?i:0,m=r.title.visible?Lt(r.title.text,s,e.themeStyle.legendLabelFont).height:0,u="top"===n?e.elementSpacing+t.height+m:0,g="bottom"===n?e.elementSpacing+t.height+m:0),a=Lt(o.subtitle.text,s,e.themeStyle.legendLabelFont).height,""!==o.text&&o.visible,h=0,l=""!==o.subtitle.text&&o.subtitle.visible?a:0,{leftLegendWidth:d,rightLegendWidth:p,topLegendHeight:u,bottomLegendHeight:g,modelTitleHeight:h,modelsubTitleHeight:l}},e}(),mh=function(){function e(){this.radialLabels=[-50,-20,-10,-5,-4,-3,-2,-1.5,-1,-.8,-.6,-.4,-.2,0,.2,.4,.6,.8,1,1.5,2,3,4,5,10,20,50],this.radialLabelCollections=[],this.horizontalLabelCollections=[],this.labelCollections=[],this.direction=new ks}return e.prototype.renderArea=function(e,t){this.calculateChartArea(e,t),this.calculateCircleMargin(e,t),this.calculateXAxisRange(e),this.calculateRAxisRange(e),this.measureHorizontalAxis(e),this.measureRadialAxis(e),e.horizontalAxis.visible&&this.updateHAxis(e),e.radialAxis.visible&&this.updateRAxis(e),e.horizontalAxis.visible&&this.drawHAxisLabels(e),e.radialAxis.visible&&this.drawRAxisLabels(e)},e.prototype.updateHAxis=function(e){var t=e.horizontalAxis.majorGridLines,i=e.horizontalAxis.minorGridLines,o=e.horizontalAxis.axisLine;t.visible&&this.updateHMajorGridLines(e),i.visible&&this.updateHMinorGridLines(e),o.visible&&this.updateHAxisLine(e)},e.prototype.updateRAxis=function(e){var t=e.radialAxis.majorGridLines,i=e.radialAxis.minorGridLines,o=e.radialAxis.axisLine;t.visible&&this.updateRMajorGridLines(e),i.visible&&this.updateRMinorGridLines(e),o.visible&&this.updateRAxisLine(e)},e.prototype.measureHorizontalAxis=function(e){var t=e.horizontalAxis.minorGridLines;this.measureHMajorGridLines(e),t.visible&&this.measureHMinorGridLines(e)},e.prototype.measureRadialAxis=function(e){var t=e.radialAxis.minorGridLines;this.measureRMajorGridLines(e),t.visible&&this.measureRMinorGridLines(e)},e.prototype.calculateChartArea=function(e,t){var i=e.availableSize.width,o=e.availableSize.height;i=t.width,o=t.height;var r=Math.min(i,o),n=Math.min(i,o),a=t.x+(t.width/2-r/2),l=t.y+((o-n)/2>0?(o-n)/2:0);e.chartArea={x:a,y:l,width:r,height:n}},e.prototype.calculateCircleMargin=function(e,t){var i=0,o=e.chartArea.width,r=e.radius;i=this.maximumLabelLength(e);var n="Outside"===e.radialAxis.labelPosition?i+10:10,a=(o-2*n>0?o-2*n:0)/2,l=r>1?1:r<.1?.1:r;this.areaRadius=a*l,this.circleLeftX=e.chartArea.x+n+a*(1-l),this.circleTopY=e.chartArea.y+n+a*(1-l),this.circleCenterX=this.circleLeftX+this.areaRadius,this.circleCenterY=t.y+t.height/2},e.prototype.maximumLabelLength=function(e){for(var t,i=0,o=e.horizontalAxis.labelStyle,r=0;r<this.radialLabels.length;r++)i<(t=Lt(this.radialLabels[r].toString(),o,e.themeStyle.axisLabelFont)).width&&(i=t.width);return i},e.prototype.calculateAxisLabels=function(){for(var e=0,t=0,i=[],o=2*this.areaRadius,r=0;r<2;r+=.1){var n=!1,a=!1,l=o*(1/((r=Math.round(10*r)/10)+1))/2*2;0!==e&&1!==r?(r<1&&(n=this.isOverlap(1,o,l,30)),r>1&&(a=this.isOverlap(2,o,l,30)),n||a||e-l>=30&&(i[t]=r,t++,e=l)):(e=l,i[t]=r,t++)}for(var s=[2,3,4,5,10,20,50],h=0;h<s.length;h++)i[t]=s[h],t++;return i},e.prototype.isOverlap=function(e,t,i,o){return i-t*(1/(e+1))/2*2<o},e.prototype.calculateXAxisRange=function(e){for(var t,i,o,r=2*this.areaRadius,n=this.calculateAxisLabels(),a=this.circleCenterY,l=this.circleLeftX,s=this.circleLeftX,h=0;h<n.length;h++)i=r*(1/((t=n[h])+1))/2,"Impedance"===e.renderType&&(s=l+r-2*i),o=s+i,this.horizontalLabelCollections.push({centerX:o,centerY:a,radius:i,value:t,region:null})},e.prototype.calculateRAxisRange=function(e){var t,i,o,r=2*this.areaRadius,n=new Ps;"Impedance"===e.renderType?(n.x=this.circleLeftX+r,n.y=this.circleTopY+this.areaRadius):(n.x=this.circleLeftX,n.y=this.circleTopY+this.areaRadius);for(var a=0;a<this.radialLabels.length;a++)o=this.radialLabels[a],i=Math.abs(1/o*r/2),t="Impedance"===e.renderType?o>0?n.y-i:n.y+i:o<0?n.y-i:n.y+i,this.radialLabelCollections.push({centerX:n.x,centerY:t,radius:i,value:o})},e.prototype.measureHMajorGridLines=function(e){var t,i,o,r,n,a=[];this.majorHGridArcPoints=[];for(var l=0;l<this.horizontalLabelCollections.length;l++){var s=new Cs;s=this.horizontalLabelCollections[l],a=this.calculateHMajorArcStartEndPoints(s.value),"Impedance"===e.renderType?(o=a[0],r=a[1]):(o=a[1],r=a[0]),n={width:s.radius,height:s.radius},0!==s.value&&50!==s.value?(t=this.intersectingCirclePoints(o[0].centerX,o[0].centerY,o[0].radius,s.centerX,s.centerY,s.radius,e.renderType),i=this.intersectingCirclePoints(r[0].centerX,r[0].centerY,r[0].radius,s.centerX,s.centerY,s.radius,e.renderType),this.majorHGridArcPoints.push({startPoint:t,endPoint:i,rotationAngle:2*Math.PI,sweepDirection:"Impedance"===e.renderType?this.direction.counterclockwise:this.direction.clockwise,isLargeArc:!0,size:n})):(t={x:s.centerX+s.radius,y:s.centerY},i={x:s.centerX+s.radius,y:s.centerY-.05},this.majorHGridArcPoints.push({startPoint:t,endPoint:i,rotationAngle:2*Math.PI,sweepDirection:this.direction.clockwise,isLargeArc:!0,size:n}))}},e.prototype.measureRMajorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c=[];this.majorRGridArcPoints=[],this.labelCollections=[];for(var d=St(),p=0;p<this.radialLabelCollections.length;p++)(t=this.radialLabelCollections[p]).radius<=d||(i=t.value,o=(c=this.calculateMajorArcStartEndPoints(t,Math.abs(i),e))[0],r=c[1],n=this.circleXYRadianValue(this.circleCenterX,this.circleCenterY,r.x,r.y)*(180/Math.PI),0!==i?(a={x:o.x,y:o.y},l={x:r.x,y:r.y},s={width:t.radius,height:t.radius},h=i>0?this.direction.clockwise:this.direction.counterclockwise,this.majorRGridArcPoints.push({startPoint:a,endPoint:l,size:s,rotationAngle:2*Math.PI,isLargeArc:!1,sweepDirection:h}),this.labelCollections.push({centerX:r.x,centerY:r.y,angle:n,value:i,radius:this.areaRadius,region:null})):(a={x:this.circleLeftX,y:this.circleCenterY},l={x:this.circleCenterX+this.areaRadius,y:this.circleCenterY},this.majorRGridArcPoints.push({startPoint:a,endPoint:l,size:null,rotationAngle:null,isLargeArc:null,sweepDirection:null}),this.labelCollections.push({centerX:"Impedance"===e.renderType?this.circleCenterX-this.areaRadius:this.circleCenterX+this.areaRadius,centerY:this.circleCenterY,angle:"Impedance"===e.renderType?180:360,value:i,radius:this.areaRadius,region:null})))},e.prototype.circleXYRadianValue=function(e,t,i,o){var r;return r=Math.atan2(o-t,i-e),r=r<0?r+360*Math.PI/180:r},e.prototype.calculateMajorArcStartEndPoints=function(e,t,i){var o=[],r=[],n=this.circleCenterX,a=this.circleCenterY;return t>=10?o[0]="Impedance"===i.renderType?{x:n+this.areaRadius,y:a}:{x:n-this.areaRadius,y:a}:r=t>=3?this.horizontalLabelCollections.filter(function(e){return 10===e.value}):t>=1?this.horizontalLabelCollections.filter(function(e){return 5===e.value}):this.horizontalLabelCollections.filter(function(e){return 3===e.value}),r.length>0&&(o[0]=this.intersectingCirclePoints(e.centerX,e.centerY,e.radius,r[0].centerX,r[0].centerY,r[0].radius,i.renderType)),o[1]=this.intersectingCirclePoints(e.centerX,e.centerY,e.radius,n,a,this.areaRadius,i.renderType),o},e.prototype.calculateHMajorArcStartEndPoints=function(e){var t,i,o=[];return e<=.3?(t=2,i=-2):e<=1?(t=3,i=-3):e<=2?(t=5,i=-5):e<=5?(t=10,i=-10):(t=50,i=-50),o[0]=this.radialLabelCollections.filter(function(e){return e.value===t}),o[1]=this.radialLabelCollections.filter(function(e){return e.value===i}),o},e.prototype.calculateMinorArcStartEndPoints=function(e){var t,i,o=[];return e<=.1?(t=1,i=-1):e<=.2?(t=.8,i=-.8):e<=.3?(t=.4,i=-.4):e<=.6?(t=1,i=-1):e<=1?(t=1.5,i=-1.5):e<=1.5?(t=2,i=-2):e<=2?(t=1,i=-1):e<=5?(t=3,i=-3):(t=10,i=-10),o[0]=this.radialLabelCollections.filter(function(e){return e.value===t}),o[1]=this.radialLabelCollections.filter(function(e){return e.value===i}),o},e.prototype.intersectingCirclePoints=function(e,t,i,o,r,n,a){var l={x:0,y:0},s=e-o,h=t-r,c=Math.sqrt(s*s+h*h),d=c*c,p=(i*i-n*n)/(2*d),u=i*i-n*n,g=Math.sqrt(2*(i*i+n*n)/d-u*u/(d*d)-1),m=(e+o)/2+p*(o-e),y=g*(r-t)/2,f=m+y,v=m-y,b=(t+r)/2+p*(r-t),x=g*(e-o)/2,S=b+x,C=b-x;return"Impedance"===a?v<f?(l.x=v,l.y=C):(l.x=f,l.y=S):f>v?(l.x=f,l.y=S):(l.x=v,l.y=C),{x:l.x,y:l.y}},e.prototype.updateHMajorGridLines=function(e){var t=e.horizontalAxis.majorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_horizontalAxisMajorGridLines"});i.setAttribute("aria-hidden","true");var o=this.calculateGridLinesPath(this.majorHGridArcPoints),r=new Os(e.element.id+"_horizontalAxisMajorGridLines","none",t.width,t.color?t.color:e.themeStyle.majorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateRMajorGridLines=function(e){var t=e.radialAxis.majorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_radialAxisMajorGridLines"});i.setAttribute("aria-hidden","true");var o=this.calculateGridLinesPath(this.majorRGridArcPoints),r=new Os(e.element.id+"_radialAxisMajorGridLines","none",t.width,t.color?t.color:e.themeStyle.majorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateHAxisLine=function(e){var t=this.areaRadius,i=e.horizontalAxis.axisLine,o=e.renderer.createGroup({id:e.element.id+"_svg_hAxisLine"});o.setAttribute("aria-hidden","true");var r={x:this.circleCenterX+t,y:this.circleCenterY},n={x:this.circleCenterX+t,y:this.circleCenterY-.05},a={width:t,height:t},l=this.direction.clockwise,s=2*Math.PI,h="M"+r.x+" "+r.y+" A "+a.width+" "+a.height+" "+s+" 1 "+l+" "+n.x+" "+n.y,c=new Os(e.element.id+"_horizontalAxisLine","none",i.width,i.color?i.color:e.themeStyle.axisLine,1,i.dashArray,h),d=e.renderer.drawPath(c);o.appendChild(d),e.svgObject.appendChild(o)},e.prototype.updateRAxisLine=function(e){var t=this.areaRadius,i=e.radialAxis.axisLine,o={x:this.circleCenterX-t,y:this.circleCenterY},r={x:this.circleCenterX+t,y:this.circleCenterY},n={width:0,height:0},a=this.direction.counterclockwise,l="M "+o.x+" "+o.y+" A "+n.width+" "+n.height+" 0 0 "+a+" "+r.x+" "+r.y,s=new Os(e.element.id+"_radialAxisLine","none",i.width,i.color?i.color:e.themeStyle.axisLine,1,i.dashArray,l),h=e.renderer.createGroup({id:e.element.id+"_svg_rAxisLine"});h.setAttribute("aria-hidden","true");var c=e.renderer.drawPath(s);h.appendChild(c),e.svgObject.appendChild(h)},e.prototype.drawHAxisLabels=function(e){var t=e.horizontalAxis;e.radialAxis.labelStyle.fontFamily=e.themeStyle.fontFamily||e.radialAxis.labelStyle.fontFamily;var i,o,r,n,a,l,s,h,c,d,p,u,g,m=e.horizontalAxis.labelStyle,y=e.renderer.createGroup({id:e.element.id+"_HAxisLabels"});y.setAttribute("aria-hidden","true");for(var f=this,v=0;v<this.horizontalLabelCollections.length;v++)!function(v){if(i=f.horizontalLabelCollections[v],o=f.horizontalLabelCollections[v].value.toString(),0!==i.value){if(r="Impedance"===e.renderType?i.centerX-i.radius:i.centerX+i.radius,n=i.centerY,a=Lt(o,m,e.themeStyle.axisLabelFont),r="Impedance"===e.renderType?r-a.width:r,"Outside"===t.labelPosition?n-=a.height/4:n+=a.height,f.horizontalLabelCollections[v].region=f.calculateRegion(o,a,r,n),"Hide"===t.labelIntersectAction){l=f.horizontalLabelCollections[v],s=l.region.bounds,h=s.width,c=s.x;for(var b=1;b<v;b++)d=f.horizontalLabelCollections[b],p=d.region.bounds,u=p.width,g=p.x,"Impedance"===e.renderType&&g+u>c&&(o=""),"Admittance"===e.renderType&&g<c+h&&(o="")}var x={text:o.toString(),x:r,y:n,name:"axisLabelRender",cancel:!1},S=function(t){if(!t.cancel){var i=new Ns(e.element.id+"_HLabel_"+v,x.x,x.y,"none",x.text),o=m.color?m.color:e.themeStyle.axisLabelFont.color;m.fontFamily=m.fontFamily||e.themeStyle.labelFontFamily;var r=kt(i,m,o,y,e.themeStyle.axisLabelFont);y.appendChild(r)}};S.bind(f),e.trigger("axisLabelRender",x,S)}}(v);e.svgObject.appendChild(y)},e.prototype.drawRAxisLabels=function(e){e.radialAxis.labelStyle.fontFamily=e.themeStyle.fontFamily||e.radialAxis.labelStyle.fontFamily;var t,i,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v=e.radialAxis.labelStyle,b=new Fs,x=e.radialAxis,S=e.renderer.createGroup({id:e.element.id+"_RAxisLabels"});S.setAttribute("aria-hidden","true");for(var C=this,F=0;F<this.labelCollections.length;F++)!function(F){if(b=C.labelCollections[F],t=b.value.toString(),i=Lt(t,v,e.themeStyle.axisLabelFont),o=Math.round(100*b.angle)/100,"Outside"===x.labelPosition?(r=C.circlePointPosition(C.circleCenterX,C.circleCenterY,b.angle,C.areaRadius+2),n=C.setLabelsOutsidePosition(o,r.x,r.y,i)):(r=C.circlePointPosition(C.circleCenterX,C.circleCenterY,b.angle,C.areaRadius-2),n=C.setLabelsInsidePosition(o,r.x,r.y,i)),C.labelCollections[F].region=C.calculateRegion(t,i,n.x,n.y),"Hide"===x.labelIntersectAction){c=C.labelCollections[F],d=c.region.bounds,s=d.width,h=d.height,a=d.x,l=d.y;for(var w=0;w<F;w++)y=C.labelCollections[w],f=y.region.bounds,g=f.width,m=f.height,p=f.x,u=f.y,p<=a+s&&a<=p+g&&u<=l+h&&l<=u+m&&(t=" ")}var L={text:t.toString(),x:n.x,y:n.y,name:"axisLabelRender",cancel:!1},P=function(t){if(!t.cancel){var i=new Ns(e.element.id+"_RLabel_"+F,L.x,L.y,"none",L.text),o=v.color?v.color:e.themeStyle.axisLabelFont.color;v.fontFamily=e.themeStyle.labelFontFamily?e.themeStyle.labelFontFamily:v.fontFamily;var r=kt(i,v,o,S,e.themeStyle.axisLabelFont);S.appendChild(r)}};P.bind(C),e.trigger("axisLabelRender",L,P)}(F);e.svgObject.appendChild(S)},e.prototype.calculateRegion=function(e,t,i,o){new Ss;return{bounds:{x:i,y:o,width:t.width,height:t.height},labelText:e}},e.prototype.updateHMinorGridLines=function(e){var t=e.horizontalAxis.minorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_horizontalAxisMinorGridLines"}),o=this.calculateGridLinesPath(this.minorHGridArcPoints),r=new Os(e.element.id+"_horizontalAxisMinorGridLines","none",t.width,t.color?t.color:e.themeStyle.minorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateRMinorGridLines=function(e){var t=e.radialAxis.minorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_radialAxisMinorGridLines"}),o=this.calculateGridLinesPath(this.minorGridArcPoints),r=new Os(e.element.id+"_radialAxisMinorGridLines","none",t.width,t.color?t.color:e.themeStyle.minorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.calculateGridLinesPath=function(e){for(var t,i,o,r,n=new _s,a="",l=0;l<e.length;l++)t=(n=e[l]).startPoint.x,i=n.startPoint.y,o=n.endPoint.x,r=n.endPoint.y,a=a+"M "+t+" "+i+" A "+(n.size?n.size.width:0)+" "+(n.size?n.size.height:0)+" "+(n.rotationAngle?n.rotationAngle:0)+" "+(n.isLargeArc?1:0)+" "+(n.sweepDirection?n.sweepDirection:0)+" "+o+" "+r+" ";return a.toString()},e.prototype.measureHMinorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c,d,p,u,g=[],m=e.horizontalAxis.minorGridLines.count;this.minorHGridArcPoints=[];for(var y=2*this.areaRadius,f=0;f<this.horizontalLabelCollections.length-3;f++){s=this.horizontalLabelCollections[f],h=this.horizontalLabelCollections[f+1],p=(c=2*(s.radius-h.radius))/(d=Math.floor(m/100*c));for(var v=0;v<d;v++)u=h.radius+v*p/2,l=("Impedance"===e.renderType?this.circleLeftX+y-2*u:this.circleLeftX)+u,o=h.value>5,g=this.calculateMinorArcStartEndPoints(h.value),"Impedance"===e.renderType?(t=g[0],i=g[1]):(t=g[1],i=g[0]),r=this.intersectingCirclePoints(t[0].centerX,t[0].centerY,t[0].radius,l,s.centerY,u,e.renderType),n=this.intersectingCirclePoints(i[0].centerX,i[0].centerY,i[0].radius,l,s.centerY,u,e.renderType),a={width:u,height:u},this.minorHGridArcPoints.push({startPoint:r,endPoint:n,rotationAngle:2*Math.PI,sweepDirection:"Impedance"===e.renderType?this.direction.counterclockwise:this.direction.clockwise,isLargeArc:o,size:a})}},e.prototype.measureRMinorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c,d,p=e.radialAxis.minorGridLines.count,u=Math.PI*(2*this.areaRadius),g=t="Impedance"===e.renderType?this.circleCenterX+this.areaRadius:this.circleCenterX-this.areaRadius,m=this.circleCenterY;this.minorGridArcPoints=[];for(var y={x:g,y:m},f=2;f<this.labelCollections.length-3;f++){n=this.labelCollections[f],a=this.labelCollections[f+1],"Impedance"===e.renderType?(i=360===a.angle?0:a.angle,o=Math.abs(i-n.angle)):(i=360===n.angle?0:n.angle,o=Math.abs(i-a.angle)),s=u/360*o,c=o/(h=Math.floor(p/100*s)),d=a.value>0?a.value:n.value,r=this.minorGridLineArcIntersectCircle(Math.abs(d));for(var v=1;v<h;v++){var b=c*v+(360===n.angle?i:n.angle),x=this.circlePointPosition(this.circleCenterX,this.circleCenterY,b,this.areaRadius),S=this.arcRadius(y,x,b),C=b>180?this.circleCenterY-S:this.circleCenterY+S,F=this.intersectingCirclePoints(t,C,S,r[0].centerX,r[0].centerY,r[0].radius,e.renderType),w={x:F.x,y:F.y},L={x:x.x,y:x.y};l={width:S,height:S};var P=n.value>=0?this.direction.clockwise:this.direction.counterclockwise;this.minorGridArcPoints.push({startPoint:w,endPoint:L,rotationAngle:2*Math.PI,sweepDirection:P,isLargeArc:!1,size:l})}}},e.prototype.minorGridLineArcIntersectCircle=function(e){var t;return t=e>=3?20:e>=1.5?10:e>=.6?3:2,this.horizontalLabelCollections.filter(function(e){return e.value===t})},e.prototype.circlePointPosition=function(e,t,i,o){var r=i*(Math.PI/180);return{x:e+o*Math.cos(r),y:t+o*Math.sin(r)}},e.prototype.setLabelsInsidePosition=function(e,t,i,o){var r=t,n=i;return 0===e||360===e?(r-=o.width,n-=o.height/2):90===e?(r-=o.width,n+=o.height/8):180===e?n+=o.height:270===e?n+=o.height/2:e>0&&e<=20?r-=o.width:e>20&&e<=60?(r-=o.width+o.width/2,n+=o.height/2):e>60&&e<90?(r-=o.width+o.width/4,n+=o.height/4):e>90&&e<=135?(r-=o.width/2,n+=o.height/16):e>135&&e<=150?(r+=o.width/2,n+=o.height/2):e>150&&e<180?(r+=o.width/2,n+=o.height):e>180&&e<=210?(r+=o.width/6,n+=o.height/6):e>210&&e<240?n+=o.height/4:e>225&&e<270?n+=o.height/3:e>270&&e<=300?(r-=o.width+o.width/4,n+=o.height/4):e>300&&e<=330?(r-=o.width+o.width/3,n+=o.height/4):e>330&&e<=340?(r-=o.width+o.width/2,n+=o.height/4):e>340&&(r-=o.width,n+=o.height/8),{x:r,y:n}},e.prototype.setLabelsOutsidePosition=function(e,t,i,o){var r=t,n=i;return 90===e?(r-=o.width/2,n+=o.height):180===e?(r-=o.width+5,n-=o.height/4):270===e?(r-=o.width/2,n-=o.height/4):360===e?(r+=5,n-=o.height/2):e>0&&e<=30?(r+=o.width/4,n+=o.height/8):e>30&&e<=60?(r+=o.width/2,n+=o.height/4):e>60&&e<=90?(r-=o.width/2,n+=o.height):e>90&&e<=135?(r-=o.width,n+=o.height):e>135&&e<=180?(r-=o.width+o.width/4,n+=o.height/4):e>180&&e<=210?(r-=o.width+o.width/4,n-=o.height/4):e>210&&e<=270?(r-=o.width,n-=o.height/4):e>270&&e<=340?n-=o.height/4:e>340&&(n+=o.height/4,r+=o.width/6),{x:r,y:n}},e.prototype.arcRadius=function(e,t,i){var o=i>180?90*Math.PI/180:270*Math.PI/180,r=(t.x-e.x)/2,n=(t.y-e.y)/2,a=(n-r*((Math.cos(o)*n-Math.sin(o)*r)/(Math.cos(o)*r+Math.sin(o)*n)))/Math.sin(o),l=e.y+Math.sin(o)*a;return Math.abs(e.y-l)},e}(),yh=function(){function e(){}return e.prototype.drawMarker=function(e,t,i,o){if(e.series[t].marker.visible){var r=e.series[t].marker,n=e.series[t].points.length-1,a=r.width,l=r.height,s=r.shape,h=e.renderer.createGroup({id:e.element.id+"_svg_series"+t+"_Marker"});i.appendChild(h);for(var c=r.border.width,d=r.border.color,p=r.opacity,u=r.fill?r.fill:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],g=0;g<n+1;g++){var m=o[g].point,y=g,f=new Ms(e.element.id+"_Series"+t+"_Points"+y+"_Marker"+y,u,d,c,p);h.appendChild(this.drawSymbol(s,r.imageUrl,m,new Es(a,l),f,e))}}},e.prototype.drawSymbol=function(e,t,i,o,r,n){var a,l,s,h,c=e.toLowerCase(),d={color:r.borderColor,width:r.borderWidth},p=r.opacity,u=i.x,g=i.y,m=Math.sqrt(o.height*o.height+o.width*o.width)/2;switch(c){case"circle":l=new Bs(r.id,r.fill,d,p,i.x,i.y,m,null),a=n.renderer.drawCircle(l);break;case"rectangle":h="M "+(u+-o.width/2)+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+-o.height/2)+"z",s=new Os(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"triangle":h="M "+(u+-o.width/2)+" "+(g+o.height/2)+" L "+u+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+o.height/2)+"z",s=new Os(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"diamond":h="M "+(u+-o.width/2)+" "+g+" L "+u+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+g+" L "+u+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+g+"z",s=new Os(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"pentagon":for(var y=0;y<=5;y++){var f=m*Math.cos(Math.PI/180*(72*y)),v=m*Math.sin(Math.PI/180*(72*y));h=0===y?"M "+(u+f)+" "+(g+v)+" ":h.concat("L "+(u+f)+" "+(g+v)+" ")}h=h.concat("Z"),s=new Os(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s)}return a.setAttribute("role","img"),a.setAttribute("aria-label","x: "+i.x+", y: "+i.y),n.element.id+"_Series0_Points0_Marker0"===r.id&&a.setAttribute("tabindex","0"),a},e}(),fh=function(){function e(){this.textOptions=[],this.labelOptions=[],this.allPoints=[]}return e.prototype.drawDataLabel=function(e,t,i,o,r){this.textOptions=[],this.allPoints=[];for(var n,a,l,s,h,c=e.margin,d=e.series[t].marker,p=d.dataLabel,u=p.textStyle,g=o.length,m=0;m<g;m++){h=Lt(s=e.series[t].points[m].reactance.toString(),u,e.themeStyle.dataLabelFont);var y=(a=o[m].point).x-h.width/2,f=a.y-(h.height+d.height+c.top),v=h.width+c.left/2+c.right/2,b=h.height+c.top/2+c.bottom/2;u.fontFamily=u.fontFamily?u.fontFamily:e.themeStyle.dataLabelFont.fontFamily,n=m,l=new Ds,l={textX:y+c.left/2,textY:f+b/2+c.top/2,x:y,y:f},this.textOptions[m]={id:e.element.id+"_Series"+t+"_Points"+n+"_dataLabel_displayText"+m,x:l.textX,y:l.textY,fill:"black",text:s,font:u,xPosition:y,yPosition:f,width:v,height:b,location:a,labelOptions:l,visible:!0,connectorFlag:null}}var x=new Ts;x.textOptions=this.textOptions,this.labelOptions.push(x),this.drawDatalabelSymbol(e,t,p,i,r,o)},e.prototype.calculateSmartLabels=function(e,t){for(var i=e.textOptions.length,o=0;o<i;o++)this.allPoints[this.allPoints.length]=e.textOptions[o],this.connectorFlag=!1,this.compareDataLabels(o,e,0,t),this.labelOptions[t].textOptions[o]=e.textOptions[o],this.labelOptions[t].textOptions[o].connectorFlag=this.connectorFlag},e.prototype.compareDataLabels=function(e,t,i,o){for(var r,n,a=this.allPoints.length,l=0;l<a;l++)if(n=this.allPoints[l],r=this.allPoints[a-1],this.isCollide(n,r))switch(this.connectorFlag=!0,i){case 0:this.resetValues(r),this.prevLabel=n,r.xPosition=this.prevLabel.xPosition+(this.prevLabel.width/2+r.width/2+10),r.x=r.xPosition+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 1:this.resetValues(r),r.xPosition=this.prevLabel.xPosition+this.prevLabel.width/2+r.width/2+10,r.x=r.xPosition+5,r.yPosition=r.location.y+r.height/2+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 2:this.resetValues(r),r.yPosition=r.location.y+r.height/2+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 3:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-10,r.x=r.xPosition+5,r.yPosition=r.height/2+r.location.y+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 4:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-10,r.x=r.xPosition+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 5:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-10,r.x=r.xPosition+5,r.yPosition=this.prevLabel.yPosition-r.height-10,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 6:this.resetValues(r),r.yPosition=this.prevLabel.yPosition-(r.height+10),r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 7:this.resetValues(r),r.xPosition=this.prevLabel.xPosition+this.prevLabel.width/2+r.width/2+10,r.x=r.xPosition+5,r.yPosition=this.prevLabel.yPosition-r.height-10,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 8:i=0,this.compareDataLabels(e,t,i,o)}},e.prototype.isCollide=function(e,t){var i=!1;return e!==t&&(i=!(e.y+e.height<t.y||e.y>t.y+t.height||e.x+e.width/2<t.x-t.width/2||e.x-e.width/2>t.x+t.width/2)),i},e.prototype.resetValues=function(e){e.xPosition=e.labelOptions.x,e.yPosition=e.labelOptions.y,e.x=e.labelOptions.textX,e.y=e.labelOptions.textY},e.prototype.drawConnectorLines=function(e,t,i,o,r){var n,a=o.location;n=a.y>o.y?o.y:o.y-o.height/2;var l="M "+a.x+" "+a.y+" L "+o.x+" "+n,s=e.series[t].marker.dataLabel.connectorLine,h=s.color?s.color:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],c=new Os(e.element.id+"_dataLabelConnectorLine_series"+t+"_point"+i,"none",s.width,h,1,"none",l),d=e.renderer.drawPath(c);r.appendChild(d)},e.prototype.drawDatalabelSymbol=function(e,i,o,r,n,a){for(var l=0;l<e.series[i].points.length;l++)if(o.template){var s=t.createElement("div",{id:e.element.id+"_seriesIndex_"+i+"_Label_Template_Group",className:"template",styles:"position: absolute;"});document.getElementById(e.element.id+"_Secondary_Element").appendChild(s);var h=o.template+"_seriesIndex"+i+"_pointIndex"+l+e.element.id,c={point:e.series[i].points[l].reactance},d=xt(bt(o.template)(e),h,c);s.appendChild(d),d.style.left=a[l].point.x-d.offsetWidth/2+"px",d.style.top=a[l].point.y-d.offsetHeight-e.series[i].marker.height/2+"px";var p=parseInt(d.style.left,10),u=parseInt(d.style.top,10),g=d.offsetWidth,m=d.offsetHeight,y=a[l].point,f={textX:p,textY:u,x:p,y:u};this.labelOptions[i].textOptions[l]={id:h,x:p,y:u,fill:"black",text:"",font:o.textStyle,xPosition:p,yPosition:u,width:g,height:m,location:y,labelOptions:f,visible:!0,connectorFlag:null}}},e}(),vh=function(){function e(){this.xValues=[],this.yValues=[],this.pointsRegion=[],this.lineSegments=[],this.location=[],this.dataLabel=new fh}return e.prototype.processData=function(e){var t=e.dataSource,i=e.resistance,o=e.reactance,r=e.tooltipMappingName;e.points=[];for(var n=0;n<t.length;n++)e.points.push({resistance:t[n][i],reactance:t[n][o],tooltip:t[n][r]})},e.prototype.draw=function(e,i,o){for(var r,n,a,l,s=e.renderer.createGroup({id:e.element.id+"_svg_seriesCollections"}),h=e.series,c=h.length,d=i.areaRadius,p=0;p<c;p++){var u=p;h[p].dataSource&&h[p].resistance&&h[p].reactance&&this.processData(h[p]),this.pointsRegion[p]=[],this.location[p]=[];for(M=0;M<h[p].points.length;M++)this.xValues[M]=h[p].points[M].resistance,this.yValues[M]=h[p].points[M].reactance;for(var g=i.circleCenterX,m=i.circleCenterY,y=2*i.areaRadius,f=m,v={x:g+("Impedance"===e.renderType?d:-d),y:m}.x,b=0;b<h[p].points.length;b++){var x=this.xValues[b],S=y*(1/(x+1))/2,C=this.yValues[b],F=Math.abs(1/C*y/2);"Impedance"===e.renderType?(n=C>0?m-F:m+F,r=i.circleLeftX+y-S):(n=C<0?m-F:m+F,r=i.circleLeftX+S),a=i.intersectingCirclePoints(v,n,F,r,f,S,e.renderType);var w=St();Math.abs(C)<w&&(a.x="Impedance"===e.renderType?r-S:r+S,a.y=m),this.pointsRegion[p][b]=new Ls,this.pointsRegion[p][b]={point:a,x:x,y:C},this.location[p][b]={x:a.x,y:a.y}}for(D=0;D<h[p].points.length-1;D++)l=D+1,this.lineSegments[D]=new ws,this.lineSegments[D]={x1:this.xValues[D],y1:this.yValues[D],x2:this.xValues[l],y2:this.yValues[l]};e.svgObject.appendChild(s),this.drawSeries(e,u,s,o)}for(M=0;M<e.series.length;M++)if(e.series[M].enableSmartLabels&&e.series[M].marker.dataLabel.visible){var L=e.renderer.createGroup({id:e.element.id+"_svg_series"+M+"_Datalabel_connectorLines"});(k=document.getElementById(e.element.id+"_svg_seriesCollection"+M))&&(k.setAttribute("aria-label","Smithchart with "+h[M].points.length+" points"),k.appendChild(L)),this.dataLabel.calculateSmartLabels(this.dataLabel.labelOptions[M],M);for(b=0;b<e.series[M].points.length;b++){var P=this.dataLabel.labelOptions[M].textOptions[b];(P.xPosition+P.width>e.chartArea.x+e.chartArea.width||P.xPosition<e.chartArea.x||P.yPosition<e.chartArea.y||P.yPosition+P.height>e.chartArea.y+e.chartArea.height)&&(this.dataLabel.labelOptions[M].textOptions[b].connectorFlag=!1,this.dataLabel.labelOptions[M].textOptions[b].visible=!1),P.connectorFlag&&this.dataLabel.drawConnectorLines(e,M,b,P,L)}}for(var A=this,M=0;M<e.series.length;M++)!function(t){var i=e.series[t].marker.dataLabel;if(e.series[t].marker.dataLabel.visible){var o=document.getElementById(e.element.id+"_svg_seriesCollection"+t),r=e.renderer.createGroup({id:e.element.id+"_svg_series"+t+"_Datalabel"});r.setAttribute("aria-hidden","true"),o&&o.appendChild(r);for(var n=0;n<e.series[t].points.length;n++)!function(o){var n=A.dataLabel.labelOptions[t].textOptions[o];if(!i.template&&n.visible){var a=new Rs;a=A.dataLabel.labelOptions[t].textOptions[o];var l=i.textStyle,s=a.xPosition,h=a.yPosition,c=e.element.id+"_Series"+t+"_Points"+o+"_dataLabel_symbol"+o,d=i.fill?i.fill:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],p=e.series[t].marker.dataLabel.border,u=new zs(c,d,p,a.opacity,new vs(s,h,a.width,a.height)),g=e.renderer.drawRectangle(u);r.appendChild(g);var m={text:a.text,x:a.x,y:a.y,seriesIndex:t,pointIndex:o,name:"textRender",cancel:!1},y=function(t){if(!t.cancel){var i=new Ns(a.id,t.x,t.y,"start",t.text),o=l.color?l.color:e.themeStyle.dataLabelFont.color,n=kt(i,l,o,r,e.themeStyle.dataLabelFont);r.appendChild(n)}};y.bind(A),e.trigger("textRender",m,y)}else if(i.template){var f=document.getElementById(i.template+"_seriesIndex"+t+"_pointIndex"+o+e.element.id);f.style.left=A.dataLabel.labelOptions[t].textOptions[o].xPosition+"px",f.style.top=A.dataLabel.labelOptions[t].textOptions[o].yPosition+"px"}}(n)}}(M);for(var D=0;D<e.series.length;D++)if((e.series[D].enableAnimation&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries){e.series[D].marker.dataLabel.template&&this.animateDataLabelTemplate(D,e);var k=document.getElementById(e.element.id+"_svg_seriesCollection"+D);k.setAttribute("aria-label","Smithchart with "+h[D].points.length+" points"),this.performAnimation(e,k,D)}},e.prototype.drawSeries=function(e,t,i,o){var r=this,n=e.renderer.createGroup({id:e.element.id+"_svg_seriesCollection"+t,"clip-path":"url(#"+e.element.id+"_ChartSeriesClipRect_"+t+")"});e.series[t].marker.visible||(n.setAttribute("tabindex",0===t?"0":""),n.style.outline="none"),n.setAttribute("visibility",e.series[t].visibility),n.setAttribute("role","region"),n.setAttribute("aria-label","Smithchart with "+e.series[t].points.length+" points"),i.appendChild(n);for(var a,l="",s=e.series[t].points.length-1,h=0;h<s;h++){var c=this.pointsRegion[t][h].point,d=this.pointsRegion[t][h+1].point;l=l+"M "+c.x+" "+c.y+" L "+d.x+" "+d.y+" "}var p=l.toString(),u=e.series[t].fill||e.seriesColors[t%e.seriesColors.length],g={text:e.series[t].name,fill:u,name:"seriesRender",cancel:!1},m=function(i){if(!i.cancel){var l=new Os(e.element.id+"_series"+t+"_points","none",e.series[t].width,g.fill,e.series[t].opacity,"none",p);r.clipRectElement=e.renderer.drawClipPath(new zs(e.element.id+"_ChartSeriesClipRect_"+t,"transparent",{width:1,color:"Gray"},1,{x:o.x,y:o.y,width:e.availableSize.width,height:e.availableSize.height})),n.appendChild(r.clipRectElement);var s=e.renderer.createGroup({id:e.element.id+"_svg"+t});a=e.renderer.drawPath(l),s.appendChild(a),n.appendChild(s)}};m.bind(this),e.trigger("seriesRender",g,m),(new yh).drawMarker(e,t,n,this.pointsRegion[t]),this.dataLabel.drawDataLabel(e,t,n,this.pointsRegion[t],o)},e.prototype.animateDataLabelTemplate=function(e,t){for(var i=t.series[e].points.length,o=parseFloat(t.series[e].animationDuration),r=0;r<i;r++){var n=document.getElementById(t.series[e].marker.dataLabel.template+"_seriesIndex"+e+"_pointIndex"+r+t.element.id);n.style.visibility="hidden",Ft(t,n,0,o,"FadeIn")}},e.prototype.performAnimation=function(e,i,o){var r,n=new t.Animation({}),a=i.childNodes[0].childNodes[0].childNodes[0],l=Dt("Linear"),s=Dt("Reverse"),h=+a.getAttribute("width"),c=+a.getAttribute("x");n.animate(a,{duration:0===parseFloat(e.series[o].animationDuration)&&"Enable"===t.animationMode?2e3:parseFloat(e.series[o].animationDuration),progress:function(t){"Impedance"===e.renderType?(r=l(t.timeStamp-t.delay,0,h,t.duration),a.setAttribute("width",r.toString())):(r=s(t.timeStamp-t.delay,h,0,t.duration),a.setAttribute("x",r.toString()))},end:function(){"Impedance"===e.renderType?a.setAttribute("width",h.toString()):a.setAttribute("x",c.toString());var t={cancel:!1,name:"animationComplete",smithchart:e};e.trigger("animationComplete",t)}})},e.prototype.getLocation=function(e,t){return{x:this.location[e][t].x,y:this.location[e][t].y}},e}(),bh=function(){function e(e){this.control=e}return e.prototype.print=function(e){this.smithchartPrint=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),this.smithchartPrint.moveTo(0,0),this.smithchartPrint.resizeTo(screen.availWidth,screen.availHeight);var i={cancel:!1,htmlContent:this.getHTMLContent(e),name:"beforePrint"};this.control.trigger("beforePrint",i),i.cancel||t.print(i.htmlContent,this.smithchartPrint)},e.prototype.getHTMLContent=function(e){var i=t.createElement("div");return e?e instanceof Array?e.forEach(function(e){i.appendChild(ft(e).cloneNode(!0))}):e instanceof Element?i.appendChild(e.cloneNode(!0)):i.appendChild(ft(e).cloneNode(!0)):i.appendChild(this.control.element.cloneNode(!0)),i},e.prototype.export=function(e,i,o){var n=this,a=t.createElement("canvas",{id:"ej2-canvas",attrs:{width:this.control.availableSize.width.toString(),height:this.control.availableSize.height.toString()}}),l=!(t.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1);o=t.isNullOrUndefined(o)?r.PdfPageOrientation.Landscape:o;var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+this.control.svgObject.outerHTML+"</svg>",h=window.URL.createObjectURL(new Blob("SVG"===e?[s]:[(new XMLSerializer).serializeToString(this.control.svgObject)],{type:"image/svg+xml"}));if("SVG"===e)this.triggerDownload(i,e,h,l);else{var c=new Image,d=a.getContext("2d");c.onload=function(){if(d.drawImage(c,0,0),window.URL.revokeObjectURL(h),"PDF"===e){var t=new r.PdfDocument,s=a.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");t.pageSettings.orientation=o,s=s.slice(s.indexOf(",")+1),t.pages.add().graphics.drawImage(new r.PdfBitmap(s),0,0,n.control.availableSize.width-60,n.control.availableSize.height),l&&(t.save(i+".pdf"),t.destroy())}else n.triggerDownload(i,e,a.toDataURL("image/png").replace("image/png","image/octet-stream"),l)},c.src=h}},e.prototype.triggerDownload=function(e,i,o,r){t.createElement("a",{attrs:{download:e+"."+i.toLocaleLowerCase(),href:o}}).dispatchEvent(new MouseEvent(r?"click":"move",{view:window,bubbles:!1,cancelable:!0}))},e}(),xh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Sh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ch=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.isLegendClicked=!1,o.previousTargetId="",o.currentPointIndex=0,o.currentSeriesIndex=0,o.currentLegendIndex=0,o}return xh(i,e),i.prototype.getModuleName=function(){return"smithchart"},i.prototype.getPersistData=function(){return""},i.prototype.createChartSvg=function(){this.removeSvg(),yt(this)},i.prototype.renderTitle=function(e,i,o){var r,n=this,a=e.textStyle,l=Lt(e.text,a,this.themeStyle.smithchartTitleFont),s=e.textAlignment,h=e.text,c=t.isNullOrUndefined(e.maximumWidth)?Math.abs(this.margin.left+this.margin.right-this.availableSize.width):e.maximumWidth,d=l.width>c;r=l.width>this.availableSize.width?this.margin.left+this.border.width:"Center"===s?this.availableSize.width/2-l.width/2:"Near"===s?this.margin.left+this.elementSpacing+this.border.width:this.availableSize.width-l.width-(this.margin.right+this.elementSpacing+this.border.width);var p=this.margin.top+l.height/2+this.elementSpacing;e.enableTrim&&d&&(h=vt(c,e.text,a,this.themeStyle.smithchartTitleFont),l=Lt(h,a,this.themeStyle.smithchartTitleFont)),o=this.renderer.createGroup({id:this.element.id+"_Title_Group"});var u,g={text:h,x:r,y:p,name:"titleRender",cancel:!1},m=function(t){if(!t.cancel){kt(u=new Ns(n.element.id+"_Smithchart_"+i,t.x,t.y,"start",t.text),a,a.color||n.themeStyle.smithchartTitleFont.color,o,n.themeStyle.smithchartTitleFont).setAttribute("tabindex","0");var r={x:t.x,y:t.y,textSize:l};n.svgObject.appendChild(o),""!==e.subtitle.text&&e.subtitle.visible&&n.renderSubtitle(e,i,l,n.availableSize,r,o)}};m.bind(this),this.trigger("titleRender",g,m)},i.prototype.renderSubtitle=function(e,i,o,r,n,a){var l=this,s=e.subtitle.textStyle,h=e.subtitle,c=Lt(h.text,s,this.themeStyle.smithchartSubtitleFont),d=h.text,p=t.isNullOrUndefined(h.maximumWidth)?.75*this.bounds.width:h.maximumWidth;h.enableTrim&&c.width>p&&(d=vt(p,h.text,s,this.themeStyle.smithchartSubtitleFont));var u="Far"===e.subtitle.textAlignment?n.x+n.textSize.width:"Near"===e.subtitle.textAlignment?n.x:n.x+n.textSize.width/2,g=n.y+2*this.elementSpacing,m="Far"===e.subtitle.textAlignment?"end":"Near"===e.subtitle.textAlignment?"start":"middle",y={text:d,x:u,y:g,name:"subtitleRender",cancel:!1},f=function(e){if(!e.cancel){var t=kt(new Ns(l.element.id+"_Smithchart_"+i,e.x,e.y,m,e.text),s,s.color||l.themeStyle.smithchartSubtitleFont.color,a,l.themeStyle.smithchartSubtitleFont);t.setAttribute("aria-label",h.description||e.text),a.appendChild(t)}};f.bind(this),this.trigger("subtitleRender",y,f)},i.prototype.renderBorder=function(){var e=this.border;this.background=this.background?this.background:this.themeStyle.background;var t=new zs(this.element.id+"_SmithchartBorder",this.background,e,1,new vs(e.width/2,e.width/2,this.availableSize.width-e.width,this.availableSize.height-e.width));this.svgObject.appendChild(this.renderer.drawRectangle(t)).setAttribute("aria-hidden","true")},i.prototype.onPropertyChanged=function(e){var t=!1;if(!this.delayRedraw){for(var i=0,o=Object.keys(e);i<o.length;i++)switch(o[i]){case"background":case"border":case"series":case"legendSettings":case"radius":case"enableRtl":t=!0;break;case"size":this.createChartSvg(),t=!0;break;case"theme":case"renderType":this.animateSeries=!0,t=!0}t&&this.render()}},i.prototype.preRender=function(){this.allowServerDataBinding=!1,this.trigger("load",{smithchart:this}),this.unWireEVents(),this.initPrivateVariable(),this.wireEVents()},i.prototype.initPrivateVariable=function(){this.animateSeries=!0,this.delayRedraw=!1,this.element.setAttribute("role","region"),this.element.setAttribute("aria-label",this.title.description||this.title.text+". Syncfusion interactive chart."),this.element.setAttribute("tabindex","0"),this.element.style.outline="none"},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("text[id*=_Smithchart_title], g[id*=_svg_Legend], g[id*=_svg_seriesCollection], path[id*=_Points], [id*="+this.element.id+"]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.setTheme=function(){this.themeStyle=Tt(this.theme),this.seriesColors=Rt(this.theme)},i.prototype.render=function(){this.createChartSvg(),this.element.appendChild(this.svgObject),this.setTheme(),this.createSecondaryElement(),this.renderBorder(),this.smithchartLegendModule&&this.legendSettings.visible&&(this.legendBounds=this.smithchartLegendModule.calculateLegendBounds(this));var e=new gh;this.bounds=e.calculateAreaBounds(this,this.title,this.legendBounds),""!==this.title.text&&this.title.visible&&this.renderTitle(this.title,"title",null);var t=new mh;t.renderArea(this,this.bounds),this.seriesrender=new vh,this.seriesrender.draw(this,t,this.bounds),this.smithchartLegendModule&&this.legendSettings.visible&&this.smithchartLegendModule.renderLegend(this),this.renderComplete(),this.allowServerDataBinding=!0,this.trigger("loaded",{smithchart:this})},i.prototype.createSecondaryElement=function(){if(t.isNullOrUndefined(document.getElementById(this.element.id+"_Secondary_Element"))){var e=t.createElement("div",{id:this.element.id+"_Secondary_Element",styles:"z-index:1;"});this.element.appendChild(e);var i=this.element.getBoundingClientRect(),o=document.getElementById(this.element.id+"_svg");if(o){var r=o.getBoundingClientRect();e.style.left=Math.max(r.left-i.left,0)+"px",e.style.top=Math.max(r.top-i.top,0)+"px"}}else Pt(this.element.id+"_Secondary_Element")},i.prototype.destroy=function(){if(this.element){this.unWireEVents(),e.prototype.destroy.call(this),this.element.classList.remove("e-smithchart"),this.removeSvg(),this.svgObject=null;var t=document.getElementById(this.element.id+"Keyboard_smith_chart_focus");t&&t.remove(),Pt("smithchartmeasuretext")}},i.prototype.wireEVents=function(){t.EventHandler.add(this.element,"click",this.smithchartOnClick,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.smithchartOnResize.bind(this))},i.prototype.mouseMove=function(e){"touchmove"===e.type?this.isTouch=!0:this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,this.tooltipRenderModule&&!this.isTouch&&this.tooltipRenderModule.smithchartMouseMove(this,e)},i.prototype.mouseEnd=function(e){if("touchend"===e.type?this.isTouch=!0:this.isTouch="touch"===e.pointerType||"2"===e.pointerType,this.tooltipRenderModule&&this.isTouch){var t=this.tooltipRenderModule.smithchartMouseMove(this,e);t&&(this.fadeoutTo=+setTimeout(function(){t.fadeOut()},2e3))}},i.prototype.smithchartOnClick=function(e){var t=e.target,i=this.isLegendClicked?t.children[1].id:t.id,o=document.getElementById(i).parentElement;if("containerlegendItem_Group"===document.getElementById(o.id).parentElement.id&&this.legendSettings.toggleVisibility){for(var r=o.childNodes[1],n=o.childNodes[0],a=r.textContent,l=void 0,s=void 0,h=0;h<this.smithchartLegendModule.legendSeries.length;h++)a===this.smithchartLegendModule.legendSeries[h].text&&(l=this.smithchartLegendModule.legendSeries[h].seriesIndex,s=this.smithchartLegendModule.legendSeries[h].fill);var c=document.getElementById(this.element.id+"_svg_seriesCollection"+l);"visible"===c.getAttribute("visibility")?(n.setAttribute("fill","gray"),c.setAttribute("visibility","hidden"),this.series[l].visibility="hidden"):(n.setAttribute("fill",s),c.setAttribute("visibility","visible"),this.series[l].visibility="visible")}this.removeNavigationStyle()},i.prototype.unWireEVents=function(){t.EventHandler.remove(this.element,"click",this.smithchartOnClick),t.EventHandler.remove(this.element,t.Browser.touchMoveEvent,this.mouseMove),t.EventHandler.remove(this.element,t.Browser.touchEndEvent,this.mouseEnd),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.smithchartOnResize)},i.prototype.print=function(e){new bh(this).print(e)},i.prototype.export=function(e,t,i){new bh(this).export(e,t,i)},i.prototype.chartKeyDown=function(e){var t="";return this.series[this.currentSeriesIndex].tooltip.visible&&("Tab"===e.code&&this.previousTargetId.indexOf("_Series")>-1||"Escape"===e.code)&&(t="ESC"),""!==t&&this.smithchartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},i.prototype.chartKeyUp=function(e){var t,i="",o=e.target.id,r=e.target,n=he(this.element.id+"_Smithchart_title"),a=he(this.element.id+"_svg_seriesCollections"),l=he(this.element.id+"legendItem_Group");if(this.removeNavigationStyle(),n&&n.setAttribute("class","e-smith-chart-focused"),a&&a.firstElementChild&&a.firstElementChild.children[1].lastElementChild&&((h=(s=a.firstElementChild.children[1].lastElementChild).getAttribute("class"))&&-1===h.indexOf("e-smith-chart-focused")?h+=" e-smith-chart-focused":h||(h="e-smith-chart-focused"),s.setAttribute("class",h)),l){var s=l.firstElementChild,h=s.getAttribute("class");h&&-1===h.indexOf("e-smith-chart-focused")?h+=" e-smith-chart-focused":h||(h="e-smith-chart-focused"),s.setAttribute("class",h)}if("Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Series")>-1&&-1===o.indexOf("_Series")){t=he(this.element.id+"_svg_seriesCollections");var c=this.previousTargetId.indexOf("_Marker")>-1?he(this.element.id+"_svg_series"+this.currentSeriesIndex+"_Marker").children[this.currentPointIndex]:t.children[this.currentSeriesIndex];this.setTabIndex(c,document.getElementById(this.element.id+"_Series0_Points0_Marker0")),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_svg_Legend")>-1&&-1===o.indexOf("_svg_Legend")&&(t=he(this.element.id+"legendItem_Group"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));this.previousTargetId=o,i=this.series[0].tooltip.visible?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=o,o.indexOf("_svg_Legend")>-1){var d=r.parentElement.children;d[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,d.length);var p=d[this.currentLegendIndex];this.focusChild(p),this.removeNavigationStyle(),this.setNavigationStyle(p.id),o=p.children[1].id}else if(o.indexOf("_Series")>-1){t=r.parentElement.parentElement.parentElement;var u=e.target;if(r.removeAttribute("tabindex"),r.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code){for(var g=[],m=0;m<t.children.length;m++)t.children[m].id.indexOf("_svg_seriesCollection")>-1&&g.push(+t.children[m].id.split("_svg_seriesCollection")[1]);this.currentSeriesIndex=g.indexOf(this.currentSeriesIndex)+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=g[this.getActualIndex(this.currentSeriesIndex,g.length)]}else this.currentPointIndex+="ArrowUp"===e.code?1:-1;o.indexOf("_Marker")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"_svg_series"+this.currentSeriesIndex+"_Marker").childElementCount),u=he(this.element.id+"_Series"+this.currentSeriesIndex+"_Points"+this.currentPointIndex+"_Marker"+this.currentPointIndex)),o=this.focusChild(u),this.removeNavigationStyle(),this.setNavigationStyle(o),i=this.series[this.currentSeriesIndex].tooltip.visible?"ArrowMove":""}}else("Enter"===e.code||"Space"===e.code)&&o.indexOf("_svg_Legend")>-1&&(o=o.indexOf("_svg_Legend")>-1?r.children[1].id:o,i="Enter");return""!==i&&this.smithchartKeyboardNavigations(e,o,i),"Tab"===e.code&&this.setNavigationStyle(o),!1},i.prototype.smithchartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,i){case"Tab":case"ArrowMove":if(t.indexOf("_Points")>-1){var o=+t.split("_Series")[1].split("_Points")[0],r=+t.split("_Series")[1].split("_Marker")[0].split("_Points")[1];this.tooltipRenderModule&&this.series[o].tooltip.visible&&this.tooltipRenderModule.createTooltip(this,e,r,o,this.series[o])}break;case"Enter":case"Space":t.indexOf("_LegendItemText")>-1&&(this.isLegendClicked=!0,this.delayRedraw=!0,this.smithchartOnClick(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id));break;case"ESC":this.tooltipRenderModule.tooltipElement.fadeOut()}},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-smith-chart-focused")?t="e-smith-chart-focused "+t:t||(t="e-smith-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.smithchartOnResize=function(){var e=this;return this.animateSeries=!1,this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.render()},500),!1},i.prototype.requiredModules=function(){var e=[];this.legendSettings.visible&&e.push({member:"SmithchartLegend",args:[this]});for(var t=0;t<this.series.length;t++)if(this.series[t].tooltip.visible){e.push({member:"TooltipRender",args:[this]});break}return e},i.prototype.removeSvg=function(){Pt(this.element.id+"_Secondary_Element");if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&t.remove(this.svgObject)}},Sh([t.Property("Impedance")],i.prototype,"renderType",void 0),Sh([t.Property("")],i.prototype,"width",void 0),Sh([t.Property("")],i.prototype,"height",void 0),Sh([t.Property("Material")],i.prototype,"theme",void 0),Sh([t.Complex({},ys)],i.prototype,"margin",void 0),Sh([t.Complex({},ms)],i.prototype,"font",void 0),Sh([t.Complex({},fs)],i.prototype,"border",void 0),Sh([t.Complex({},oh)],i.prototype,"title",void 0),Sh([t.Collection([{}],uh)],i.prototype,"series",void 0),Sh([t.Complex({},Ys)],i.prototype,"legendSettings",void 0),Sh([t.Complex({},Js)],i.prototype,"horizontalAxis",void 0),Sh([t.Complex({},Js)],i.prototype,"radialAxis",void 0),Sh([t.Property(null)],i.prototype,"background",void 0),Sh([t.Property(10)],i.prototype,"elementSpacing",void 0),Sh([t.Property(1)],i.prototype,"radius",void 0),Sh([t.Event()],i.prototype,"beforePrint",void 0),Sh([t.Event()],i.prototype,"animationComplete",void 0),Sh([t.Event()],i.prototype,"load",void 0),Sh([t.Event()],i.prototype,"loaded",void 0),Sh([t.Event()],i.prototype,"legendRender",void 0),Sh([t.Event()],i.prototype,"titleRender",void 0),Sh([t.Event()],i.prototype,"subtitleRender",void 0),Sh([t.Event()],i.prototype,"textRender",void 0),Sh([t.Event()],i.prototype,"axisLabelRender",void 0),Sh([t.Event()],i.prototype,"seriesRender",void 0),Sh([t.Event()],i.prototype,"tooltipRender",void 0),i=Sh([t.NotifyPropertyChanges],i)}(t.Component),Fh=function(){function e(){}return e.prototype.smithchartMouseMove=function(e,t){var i,o,r;"touchend"===t.type||"touchmove"===t.type?(o=(i=t).changedTouches[0].clientX,r=i.changedTouches[0].clientY,this.tooltipElement=void 0):(r=t.clientY,o=t.clientX),this.setMouseXY(e,o,r);for(var n=0;n<e.series.length;n++){var a=e.series[n],l=n,s=new As;if((s=this.closestPointXY(e,this.mouseX,this.mouseY,a,l)).location&&a.tooltip.visible&&"visible"===a.visibility){this.createTooltip(e,t,s.index,l,a);break}this.tooltipElement&&(this.tooltipElement.enable&&!a.tooltip.template&&(this.tooltipElement.enable=!1),this.tooltipElement.fadeOut())}return this.tooltipElement},e.prototype.setMouseXY=function(e,t,i){var o=document.getElementById(e.element.id+"_svg");if(e.element&&o){var r=e.element.getBoundingClientRect(),n=o.getBoundingClientRect();this.mouseX=t-r.left-Math.max(n.left-r.left,0),this.mouseY=i-r.top-Math.max(n.top-r.top,0)}},e.prototype.createTooltip=function(e,o,r,n,a){var l=this,s=a.points[r],h=s.resistance,c=s.reactance,d=s.tooltip?[s.tooltip]:null,p=[h+" : "+(e.theme.indexOf("Tailwind3")>-1?c:"<b>"+c+"</b>")],u={cancel:!1,name:"tooltipRender",text:d||p,headerText:e.theme.indexOf("Tailwind3")>-1?a.name:"<b>"+a.name+"</b>",template:a.tooltip.template,point:s},g=function(o){var r=e.series[n].marker.height/2,h=document.getElementById(e.element.id+"_smithchart_tooltip_div");t.isNullOrUndefined(h)&&(h=t.createElement("div",{id:e.element.id+"_smithchart_tooltip_div",styles:"pointer-events: none; position: absolute;z-index:1;"}),document.getElementById(e.element.id+"_Secondary_Element").appendChild(h)),l.tooltipElement=new i.Tooltip({enable:!0,header:o.headerText,content:o.text,border:a.tooltip.border,fill:a.tooltip.fill||e.themeStyle.tooltipFill,opacity:a.tooltip.opacity,data:s,template:o.template,location:{x:l.locationX+e.element.offsetLeft,y:l.locationY-r+e.element.offsetTop},shared:!1,areaBounds:new vs(e.bounds.x,e.bounds.y,e.bounds.width,e.bounds.height),palette:[a.fill||e.seriesColors[n%e.seriesColors.length]],shapes:["Circle"],availableSize:e.availableSize,theme:e.theme}),l.tooltipElement.opacity=e.themeStyle.tooltipFillOpacity||l.tooltipElement.opacity,l.tooltipElement.textStyle.fontFamily=e.themeStyle.fontFamily||"Roboto, Segoe UI, Noto, Sans-serif",l.tooltipElement.textStyle.size=e.themeStyle.tooltipFontSize||"13px",l.tooltipElement.textStyle.color=e.themeStyle.tooltipBoldLabel||l.tooltipElement.textStyle.color,l.tooltipElement.appendTo(h);var c=document.getElementById(e.element.id+"_smithchart_tooltip_div_Trackball_0");c&&c.setAttribute("role","img")};g.bind(this,e),e.trigger("tooltipRender",u,g)},e.prototype.closestPointXY=function(e,t,i,o,r){for(var n,a,l,s=0;s<o.points.length;s++){a=e.seriesrender.getLocation(r,s),this.locationX=a.x,this.locationY=a.y,n=s;var h=t-a.x,c=i-a.y;if(Math.abs(Math.sqrt(h*h+c*c))<o.marker.width){l=a,n=s;break}}return{location:l,index:n}},e.prototype.getModuleName=function(){return"TooltipRender"},e.prototype.destroy=function(){},e}(),wh=function(){function e(){this.legendSeries=[]}return e.prototype.renderLegend=function(e){this._drawLegend(e)},e.prototype.calculateLegendBounds=function(e){this.legendSeries=[];var t,i,o=e.legendSettings,r=o.height,n=o.width,a=o.itemPadding>0?o.itemPadding:0,l=o.position.toLowerCase(),s=o.title.textStyle,h=0,c=0,d=0,p=e.availableSize.width-(4*e.elementSpacing-2*o.border.width+2*e.border.width),u=o.rowCount,g=o.columnCount,m=Lt(e.legendSettings.title.text,s,e.themeStyle.legendTitleFont),y=0,f=0,v=0,b=0,x=0,S=e.series.length;if(e.legendSettings.visible&&0!==S){"bottom"===l||"top"===l||"custom"===l?(u&&g&&u<=g?u=S/g:null==u&&null!=g?u=S/g:null==u&&null==g&&(u=1),u&&(t=Math.ceil(S/u))):(u&&g&&u<=g?g=S/u:null!=u&&null==g?g=S/u:null==u&&null==g&&(g=1),g&&(t=g));for(var C=0;C<S;C++){this.legendSeries.push({text:e.series[C].name?e.series[C].name:"series"+C,seriesIndex:C,shape:e.legendSettings.shape,fill:e.series[C].fill||e.seriesColors[C%e.seriesColors.length],bounds:null});var F=this._getLegendSize(e,this.legendSeries[C]);h=Math.max(F.width,h),c=Math.max(F.height,c),this.legendSeries[C].bounds={width:h,height:c},x+=1,v=v+h+a,b=Math.max(c,b),"top"!==l&&"bottom"!==l&&"custom"!==l||v>p&&(v-=F.width+a,y=Math.max(y,v),v=F.width+a,f=f+b+a),x!==t&&C!==S-1||(y=Math.max(y,v),d=f=f+b+a,x=0,b=0,v=0)}i={x:0,y:0,width:m.width>y-a?m.width+20+a:y+20-2*e.border.width,height:d+e.elementSpacing}}return this.legendActualBounds=i,null!=n&&(this.legendActualBounds.width=n),null!=r&&(this.legendActualBounds.height=r),this.legendActualBounds},e.prototype._getLegendSize=function(e,t){var i=e.legendSettings,o=i.itemStyle.width,r=i.itemStyle.height,n=Lt(t.text,i.textStyle,e.themeStyle.legendLabelFont);return{width:o+n.width+i.shapePadding,height:Math.max(r,n.height)}},e.prototype._drawLegend=function(e){var t,i,o=e.legendSettings,r=o.position.toLowerCase(),n=o.alignment,a=this.legendActualBounds,l=0,s=e.title.font?e.title.font:e.title.textStyle,h=Lt(e.title.text,s,e.themeStyle.legendLabelFont).height,c=Lt(e.title.subtitle.text,e.title.subtitle.textStyle,e.themeStyle.legendLabelFont).height,d=e.elementSpacing,p=h+c+d+e.margin.top,u=o.itemPadding>0?o.itemPadding:0,g=e.availableSize.width,m=e.availableSize.height,y=o.border.width,f=0,v=Lt(o.title.text,o.title.textStyle,e.themeStyle.legendLabelFont).height,b=e.border.width,x=g-2*b,S=m-2*b;if(a.height+=v,"custom"!==r){switch(r){case"bottom":a.y=S-(a.height+y+d);break;case"top":a.y=b+p;break;case"right":a.x=x-a.width-2*d;break;case"left":a.x=b+2*d}if("left"===r||"right"===r)switch(n){case"Center":a.y=S/2-(a.height+2*y)/2+d/2;break;case"Near":a.y=b+2*d+p;break;case"Far":a.y=S-(a.height+y)-2*d}else switch(n){case"Center":a.x=x/2-(a.width+2*y)/2+d/2;break;case"Near":a.x=b+2*d;break;case"Far":a.x=x-(a.width+y)-2*d}}else a.y=o.location.y<S?o.location.y:0,a.x=o.location.x<x?o.location.x:0;if("bottom"===r||"top"===r)for(var C=0;C<this.legendSeries.length;C++)if((f+=this.legendSeries[C].bounds.width+u)>x){a.x=x/2-(a.width+2*y)/2+d/2;break}var F=e.renderer.createGroup({id:e.element.id+"_legend_group"});e.svgObject.appendChild(F),this.legendItemGroup=e.renderer.createGroup({id:e.element.id+"legendItem_Group"});var w=t=d,L=i=d;""!==o.title.text&&o.title.visible&&(F.appendChild(this.drawLegendTitle(e,o,a,F)),L=i=d+v);for(var P=0;P<this.legendSeries.length;P++)!(o.rowCount<o.columnCount||o.rowCount===o.columnCount)||"top"!==r&&"bottom"!==r&&"custom"!==r?(L+this.legendSeries[P].bounds.height+u+v+b>a.height+i&&(L=i,w+=l+u),this.legendGroup=this.drawLegendItem(e,o,this.legendSeries[P],P,w,L),F.appendChild(this.legendGroup),L+=this.legendSeries[P].bounds.height+u,l=Math.max(l,this.legendSeries[P].bounds.width)):(w+this.legendSeries[P].bounds.width>a.width+t&&(w=d,L+=this.legendSeries[P].bounds.height+u),this.legendGroup=this.drawLegendItem(e,o,this.legendSeries[P],P,w,L),F.appendChild(this.legendGroup),w+=this.legendSeries[P].bounds.width+u);F.setAttribute("transform","translate("+a.x.toString()+","+a.y.toString()+")"),this.drawLegendBorder(F,e,o,a)},e.prototype.drawLegendBorder=function(e,t,i,o){var r=new zs(t.element.id+"_svg_legendRect","none",i.border,1,new vs(0,0,o.width,o.height));e.appendChild(t.renderer.drawRectangle(r))},e.prototype.drawLegendTitle=function(e,t,i,o){var r=e.elementSpacing,n=Lt(t.title.text,t.title.textStyle,e.themeStyle.legendLabelFont),a=n.width,l=n.height,s=t.title.textAlignment,h=0,c=i.width,d=r+l/2;switch(s){case"Far":h=c-a-h;break;case"Center":h=c/2-a/2}h<0&&(h=0,c=a),c<a+h&&(c=a+h);var p=kt(new Ns(e.element.id+"_LegendTitleText",h,d,"start",t.title.text),t.title.textStyle,t.title.textStyle.color||e.themeStyle.legendTitleFont.color,o,e.themeStyle.legendTitleFont);return p.setAttribute("aria-label",t.title.description||t.title.text),p},e.prototype.drawLegendItem=function(e,t,i,o,r,n){var a=this,l=t.itemStyle,s=Lt(i.text,t.textStyle,e.themeStyle.legendLabelFont).height,h={x:r+l.width/2,y:n+(s>l.height?s:l.height)/2},c=e.renderer.createGroup({id:e.element.id+"_svg_Legend"+o.toString()});c.style.cursor=t.toggleVisibility?"pointer":"default",c.setAttribute("tabindex",0===o?"0":"");var d={text:i.text,fill:i.fill,shape:i.shape,name:"legendRender",cancel:!1},p=function(r){if(!r.cancel){var n=a.drawLegendShape(e,i,h.x,h.y,o,t,r);c.appendChild(n);var d=new Ns(e.element.id+"_LegendItemText"+o.toString(),h.x+l.width/2+t.shapePadding,h.y+s/4,"start",r.text);t.textStyle.fontFamily=t.textStyle.fontFamily||e.themeStyle.legendLabelFont.fontFamily,t.textStyle.size=t.textStyle.size||e.themeStyle.legendLabelFont.size;var p=kt(d,t.textStyle,t.textStyle.color||e.themeStyle.legendLabelFont.color,c,e.themeStyle.legendLabelFont);c.setAttribute("aria-label",t.description||"Show "+d.text),c.setAttribute("role","button"),c.appendChild(p),a.legendItemGroup.appendChild(c)}};return p.bind(this),e.trigger("legendRender",d,p),this.legendItemGroup},e.prototype.drawLegendShape=function(e,t,i,o,r,n,a){var l,s,h,c,d=n.itemStyle,p=d.width,u=d.height,g=i+-p/2,m={color:d.border.color,width:d.border.width},y="visible"===e.series[r].visibility?a.fill:"grey",f=a.shape.toLowerCase(),v=Math.sqrt(u*u+p*p)/2;switch(f){case"circle":s=new Bs(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m,1,i,o,v,null),l=e.renderer.drawCircle(s);break;case"rectangle":c="M "+g+" "+(o+-u/2)+" L "+(p/2+i)+" "+(o+-u/2)+" L "+(i+p/2)+" "+(o+u/2)+" L "+g+" "+(o+u/2)+" L "+g+" "+(o+-u/2)+" z",h=new Os(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"diamond":c="M "+g+" "+o+" L "+i+" "+(o+-u/2)+" L "+(p/2+i)+" "+o+" L "+i+" "+(o+u/2)+" L "+g+" "+o+" z",h=new Os(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"pentagon":for(var b=0;b<=5;b++){var x=v*Math.cos(Math.PI/180*(72*b)),S=v*Math.sin(Math.PI/180*(72*b));c=0===b?"M "+(x+i)+" "+(o+S)+" ":c.concat("L "+(i+x)+" "+(o+S)+" ")}c=c.concat("Z"),h=new Os(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"triangle":c="M "+g+" "+(u/2+o)+" L "+i+" "+(o+-u/2)+" L "+(i+p/2)+" "+(o+u/2)+" L "+g+" "+(o+u/2)+" Z",h=new Os(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h)}return l},e.prototype.getModuleName=function(){return"SmithchartLegend"},e.prototype.destroy=function(){},e}(),Lh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ph=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ah=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property("")],i.prototype,"color",void 0),Ph([t.Property(0)],i.prototype,"width",void 0),i}(t.ChildProperty),Mh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(null)],i.prototype,"size",void 0),Ph([t.Property(null)],i.prototype,"color",void 0),Ph([t.Property("Roboto, Segoe UI, Noto, Sans-serif")],i.prototype,"fontFamily",void 0),Ph([t.Property(null)],i.prototype,"fontWeight",void 0),Ph([t.Property(null)],i.prototype,"fontStyle",void 0),Ph([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Dh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(!1)],i.prototype,"visible",void 0),Ph([t.Property(null)],i.prototype,"color",void 0),Ph([t.Property(1)],i.prototype,"width",void 0),i}(t.ChildProperty),kh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(!1)],i.prototype,"visible",void 0),Ph([t.Property("")],i.prototype,"fill",void 0),Ph([t.Property("")],i.prototype,"template",void 0),Ph([t.Property("")],i.prototype,"format",void 0),Ph([t.Complex({color:null,width:null},Ah)],i.prototype,"border",void 0),Ph([t.Complex({size:"12px",fontWeight:null,fontStyle:"Normal",fontFamily:null},Mh)],i.prototype,"textStyle",void 0),Ph([t.Complex({},Dh)],i.prototype,"trackLineSettings",void 0),i}(t.ChildProperty),Rh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property("transparent")],i.prototype,"background",void 0),Ph([t.Complex({},Ah)],i.prototype,"border",void 0),i}(t.ChildProperty),Th=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(!1)],i.prototype,"visible",void 0),Ph([t.Property(null)],i.prototype,"color",void 0),Ph([t.Property("")],i.prototype,"dashArray",void 0),Ph([t.Property(1)],i.prototype,"width",void 0),Ph([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Eh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(null)],i.prototype,"startRange",void 0),Ph([t.Property(null)],i.prototype,"endRange",void 0),Ph([t.Property(null)],i.prototype,"color",void 0),Ph([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),_h=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(null)],i.prototype,"minX",void 0),Ph([t.Property(null)],i.prototype,"maxX",void 0),Ph([t.Property(null)],i.prototype,"minY",void 0),Ph([t.Property(null)],i.prototype,"maxY",void 0),Ph([t.Property(0)],i.prototype,"value",void 0),Ph([t.Complex({},Th)],i.prototype,"lineSettings",void 0),i}(t.ChildProperty),Ih=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(5)],i.prototype,"left",void 0),Ph([t.Property(5)],i.prototype,"right",void 0),Ph([t.Property(5)],i.prototype,"bottom",void 0),Ph([t.Property(5)],i.prototype,"top",void 0),i}(t.ChildProperty),Oh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property([])],i.prototype,"visible",void 0),Ph([t.Property(1)],i.prototype,"opacity",void 0),Ph([t.Property(8)],i.prototype,"size",void 0),Ph([t.Property("#00bdae")],i.prototype,"fill",void 0),Ph([t.Complex({width:1},Ah)],i.prototype,"border",void 0),i}(t.ChildProperty),zh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property(0)],i.prototype,"x",void 0),Ph([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),Bh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lh(i,e),Ph([t.Property([])],i.prototype,"visible",void 0),Ph([t.Property(1)],i.prototype,"opacity",void 0),Ph([t.Property("transparent")],i.prototype,"fill",void 0),Ph([t.Property("")],i.prototype,"format",void 0),Ph([t.Complex({color:"transparent",width:0},Ah)],i.prototype,"border",void 0),Ph([t.Complex({size:null,fontWeight:null,fontStyle:null,fontFamily:null},Mh)],i.prototype,"textStyle",void 0),Ph([t.Complex({},zh)],i.prototype,"offset",void 0),Ph([t.Property("None")],i.prototype,"edgeLabelMode",void 0),i}(t.ChildProperty),Nh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vh=function(){function e(e,t){this.width=e,this.height=t}return e}(),Hh=function(){function e(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o}return e}(),Wh=function(){function e(e,t,i,o,r,n,a){this.id=e,this.fill=t,this.opacity=r,this["stroke-width"]=i,this.stroke=o,this.d=a,this["stroke-dasharray"]=n}return e}(),jh=function(e){function t(t,i,o,r,n,a,l,s,h){void 0===a&&(a=0),void 0===l&&(l=0),void 0===s&&(s=0),void 0===h&&(h=0);var c=e.call(this,t,i,o.width,o.color,r)||this;return c.rect=n,c.topLeft=a,c.topRight=l,c.bottomLeft=s,c.bottomRight=h,c}return Nh(t,e),t}(Wh),Uh=function(e){function t(t,i,o,r,n,a,l,s){var h=e.call(this,t,i,o.width,o.color,r)||this;return h.cy=a,h.cx=n,h.r=l,h["stroke-dasharray"]=s,h}return Nh(t,e),t}(Wh),Xh=function(){function e(e,t,i,o,r,n,a){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.x=t,this.y=i,this.anchor=o,this.text=r,this.transform=a,this.baseLine=n}return e}(),Gh=function(){function e(e){this.sparkline=e}return e.prototype.processData=function(){var e=this.sparkline.dataSource;!t.isNullOrUndefined(e)&&e.length&&(isNaN(this.sparkline.dataSource[0])&&"Numeric"!==this.sparkline.valueType?this["process"+this.sparkline.valueType]():(e=this.sparkline.enableRtl?e.reverse():e,this.sparkline.sparklineData=e),this.axisCalculation())},e.prototype.processDataManager=function(){var e,t,i=this;this.sparkline.dataSource instanceof o.DataManager?(e=this.sparkline.dataSource,t=this.sparkline.query instanceof o.Query?this.sparkline.query:new o.Query,e.executeQuery(t).then(function(e){i.sparkline.setProperties({dataSource:e.result},!0),i.sparkline.sparklineData=i.sparkline.dataSource,i.sparkline.processSparklineData()})):this.sparkline.processSparklineData()},e.prototype.processCategory=function(e,t,i){var o=this;void 0===e&&(e=this.sparkline.dataSource),void 0===t&&(t=this.sparkline.xName),void 0===i&&(i=this.sparkline.yName);var r=[],n=[];e.forEach(function(e){-1===n.indexOf(e[t])&&n.push(e[t]);var a={};a[o.sparkline.xName]=n.indexOf(e[t]),a[o.sparkline.yName]=e[i],r.push(a)}),this.sparkline.sparklineData=r},e.prototype.processDateTime=function(e,t,i){void 0===e&&(e=this.sparkline.dataSource),void 0===t&&(t=this.sparkline.xName),void 0===i&&(i=this.sparkline.yName);var o=[];e.forEach(function(e){var r={};r[t]=e[t].getTime(),r[i]=e[i],o.push(r)}),this.sparkline.sparklineData=o},e.prototype.renderSeries=function(){var e=this,t=this.sparkline;this.clipId=t.element.id+"_sparkline_clip_path",this.drawAxis();var i={name:"seriesRendering",cancel:!1,lineWidth:t.lineWidth,border:t.border,fill:t.fill,sparkline:t},o=function(i){if(e.visiblePoints&&!i.cancel){if("Pie"!==t.type&&"WinLoss"!==t.type&&t.rangeBandSettings.length){for(var o=e.sparkline.renderer.createGroup({id:e.sparkline.element.id+"_sparkline_rangeband_g"}),r=0;r<t.rangeBandSettings.length;r++)(t.axisSettings.minY<=t.rangeBandSettings[r].startRange||t.axisSettings.maxY>=t.rangeBandSettings[r].endRange)&&e.rangeBand(t.rangeBandSettings[r],o,r);e.sparkline.svgObject.appendChild(o)}e["render"+t.type](e.visiblePoints,i),e.renderMarker(e.visiblePoints),e.renderLabel(e.visiblePoints)}};o.bind(this),t.trigger("seriesRendering",i,o)},e.prototype.rangeBand=function(e,t,i){var o=this.sparkline,r=o.availableSize.height-2*o.padding.top,n=o.availableSize.width-2*o.padding.left,a=e.startRange,l=e.endRange,s=r-r/this.unitY*(a-this.min)+o.padding.top,h=r-r/this.unitY*(l-this.min)+o.padding.top,c=e.color||this.sparkline.sparkTheme.rangeBandColor;h>r+o.padding.top?h=r+o.padding.top:h<0+o.padding.top&&(h=0+o.padding.top),s>r+o.padding.top?s=r+o.padding.top:s<0+o.padding.top&&(s=0+o.padding.top);var d="M "+o.padding.left+" "+s+" L "+(n+o.padding.left)+" "+s+" L "+(n+o.padding.left)+" "+h+" L "+o.padding.left+" "+h+" Z ",p={id:o.element.id+"_rangeBand_"+i,fill:c,opacity:e.opacity,stroke:"transparent","stroke-width":o.lineWidth,d:d,"stroke-dasharray":""};Wt(this.sparkline,p,t)},e.prototype.renderLine=function(e,t){var i=this.sparkline,o=this.sparkline.renderer.createGroup({id:i.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),r=this.sparkline.fill;r="#00bdae"===this.sparkline.fill&&"Bootstrap4"===this.sparkline.theme?this.sparkline.sparkTheme.axisLineColor:r;for(var n=new Wh(i.element.id+"_sparkline_line","transparent",t.lineWidth,r,i.opacity),a="",l=0,s=e.length;l<s;l++)0===l&&(a="M "+e[0].x+" "+e[l].y+" "),a+="L "+e[l].x+" "+e[l].y+" ";n.d=a,n["aria-label"]="Line series with"+e.length+"data points",n.tabindex="0",Wt(this.sparkline,n,o),this.sparkline.svgObject.appendChild(o)},e.prototype.renderPie=function(e,i){var o,r,n,a,l=this.sparkline,s=l.availableSize.height-(l.padding.top+l.padding.bottom),h=l.availableSize.width-(l.padding.left+l.padding.right),c=s<=h?s/2:h/2,d=l.availableSize.width/2,p=l.availableSize.height/2,u=0,g=i.border.color,m=l.opacity,y=i.border.width,f=l.palette.length?l.palette:Et(this.sparkline.theme),v=this.sparkline.renderer.createGroup({id:l.element.id+"_sparkline_g"}),b=t.extend([],[],e);if(l.highPointColor||l.lowPointColor){var x=b.map(function(e){return e.yVal});n=Math.min.apply(null,x),a=Math.max.apply(null,x)}this.negativePointIndexes=[];for(var S=0,C=90,F=void 0,w=void 0;S<e.length;S++){F=(C+=u)+(u=360===(u=e[S].degree)?u-.001:u),o=(C-90)*Math.PI/180,r=(F-90)*Math.PI/180,e[S].stAng=o,e[S].endAng=r,w=u<180?"0":"1";var L=e[S].coordinates={sX:d+c*Math.cos(o),sY:p+c*Math.sin(o),eX:d+c*Math.cos(r),eY:p+c*Math.sin(r)},P="M "+d+" "+p+" L "+L.eX+" "+L.eY+" A "+c+" "+c+" 0 "+w+",0 "+L.sX+" "+L.sY+" Z",A={id:l.element.id+"_sparkline_pie_"+S,opacity:m,fill:f[S%f.length],stroke:g,"stroke-width":y,d:P,"stroke-dasharray":""};this.getPieSpecialPoint(e[S],l,A,S,a,n,e.length);var M=this.triggerPointRender("pointRendering",S,A.fill,{color:g,width:y});if(A.fill=M.fill,A.stroke=M.border.color,A["stroke-width"]=M.border.width,!M.cancel){var D=Wt(this.sparkline,A,v);D.setAttribute("role","img"),D.setAttribute("aria-label",l.dataSource[S][l.xName]+" : "+e[S].yVal),D.setAttribute("tabindex",0===S?"0":"-1"),D.style.outline="none"}var k=r-o,R={x:d+c/2*Math.cos(o+k/2),y:p+c/2*Math.sin(o+k/2)};e[S].location.x=R.x,e[S].location.y=R.y}this.sparkline.svgObject.appendChild(v)},e.prototype.getPieSpecialPoint=function(e,t,i,o,r,n,a){e.yVal<0&&t.negativePointColor&&(i.fill=t.negativePointColor,this.negativePointIndexes.push(o)),0===o&&t.startPointColor?(i.fill=t.startPointColor,this.startPointIndex=o):o===a-1&&t.endPointColor&&(i.fill=t.endPointColor,this.endPointIndex=o),e.yVal===r&&t.highPointColor?(i.fill=t.highPointColor,this.highPointIndex=o):e.yVal===n&&t.lowPointColor&&(i.fill=t.lowPointColor,this.lowPointIndex=o)},e.prototype.renderArea=function(e,t){for(var i=this.sparkline,o=this.sparkline.renderer.createGroup({id:i.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),r=new Wh(i.element.id+"_sparkline_area",t.fill,0,"transparent",i.opacity),n="",a="",l=0,s=e.length;l<s;l++)0!==l?a+="L "+e[l].x+" "+e[l].y+" ":(n="M "+e[l].x+" "+this.axisHeight+" ",a="M "+e[l].x+" "+e[l].y+" "),n+="L "+e[l].x+" "+e[l].y+" ",l===s-1&&(n+="L "+e[l].x+" "+this.axisHeight+" Z");r.d=n,r["aria-label"]="Area series with"+e.length+"data points",Wt(this.sparkline,r,o),r=new Wh(i.element.id+"_sparkline_area_str","transparent",t.border.width,t.border.color,i.opacity,"",a),Wt(this.sparkline,r,o),this.sparkline.svgObject.appendChild(o)},e.prototype.renderColumn=function(e,i){var o,r,n=this,a=this.sparkline,l=t.extend([],[],e),s=this.sparkline.renderer.createGroup({id:a.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"});if(this.sparkline.highPointColor||this.sparkline.lowPointColor){var h=l.map(function(e){return e.markerPosition});r=Math.min.apply(null,h),o=Math.max.apply(null,h)}var c,d=a.element.id+"_sparkline_column_",p=new jh(d,"",i.border,a.opacity,null),u=e.length;this.negativePointIndexes=[];for(var g=a.palette.length?a.palette:Et(this.sparkline.theme),m=this,y=0;y<u;y++)!function(t){c=e[t],p.id=d+t,p.fill="#00bdae"!==a.fill?a.fill:g[0],p.rect=new Hh(c.x,c.y,c.width,c.height),m.getSpecialPoint(!0,c,a,p,t,r,o,u),c.location.y=c.markerPosition<=m.axisHeight?c.y:c.y+c.height,c.location.x=c.x+c.width/2,p.stroke=i.border.color?i.border.color:p.fill;var l={name:"pointRendering",cancel:!1,pointIndex:t,fill:p.fill,border:{color:p.stroke,width:i.border.width}};m.sparkline.trigger("pointRendering",l,function(){if(c=e[t],p.id=d+t,p.rect=new Hh(c.x,c.y,c.width,c.height),n.getSpecialPoint(!0,c,a,p,t,r,o,u),p.fill=l.fill,p.stroke=l.border.color,c.location.y=c.markerPosition<=n.axisHeight?c.y:c.y+c.height,p["stroke-width"]=l.border.width,c.location.x=c.x+c.width/2,!l.cancel){var i=Ht(a,p,s);i.setAttribute("role","img"),i.setAttribute("aria-label",a.dataSource[t][a.xName]+" : "+e[t].yVal),i.setAttribute("tabindex",0===t?"0":"-1"),i.style.outline="none",s.appendChild(i)}})}(y);this.sparkline.svgObject.appendChild(s)},e.prototype.renderWinLoss=function(e,t){for(var i,o=this.sparkline,r=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),n=o.element.id+"_sparkline_winloss_",a=new jh(n,"",t.border,o.opacity,null),l=e.length,s=o.palette.length,h=o.palette.length?o.palette:Et(this.sparkline.theme),c=0;c<l;c++){i=e[c],a.id=n+c,a.fill=s?o.palette[c%s]:i.yVal===this.axisValue?this.sparkline.tiePointColor||"#a216f3":i.yVal>this.axisValue?t.fill||h[c%h.length]:o.negativePointColor||"#e20f07",a.stroke=t.border.color?t.border.color:a.fill,a.rect=new Hh(i.x,i.y,i.width,i.height),i.location.x=i.x+i.width/2,i.location.y=i.yVal>=this.axisValue?i.y:i.y+i.height;var d=this.triggerPointRender("pointRendering",c,a.fill,{color:a.stroke,width:t.border.width});if(a.fill=d.fill,a.stroke=d.border.color,a["stroke-width"]=d.border.width,!d.cancel){var p=Ht(o,a,r);p.setAttribute("role","img"),p.setAttribute("aria-label",o.dataSource[c][o.xName]+" : "+e[c].yVal),p.setAttribute("tabindex",0===c?"0":"-1"),p.style.outline="none"}}this.sparkline.svgObject.appendChild(r)},e.prototype.renderMarker=function(e){var i=this,o=this.sparkline,r=o.markerSettings;if("Pie"!==o.type&&"WinLoss"!==o.type&&r.visible.length){var n,a,l,s=t.extend([],[],e),h=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_marker_g","clip-path":"url(#"+this.clipId+")"}),c=o.element.id+"_sparkline_marker_",d=new Uh("",r.fill,r.border,r.opacity,0,0,r.size/2,""),p=r.visible.join();if(p.toLowerCase().indexOf("high")>-1||p.toLowerCase().indexOf("low")>-1){var u=s.map(function(e){return e.markerPosition});a=Math.min.apply(null,u),l=Math.max.apply(null,u)}this.negativePointIndexes=[];for(var g=this,m=0,y=e.length;m<y;m++)!function(t,s){n=e[t],d.id=c+t,d.cx=n.location.x,d.cy=n.location.y,d.fill=r.fill;var u=p.toLowerCase().indexOf("all")>-1;u=g.getSpecialPoint(u,n,o,d,t,a,l,s,p.toLowerCase()),d.stroke=r.border.color||d.fill;var m={name:"markerRendering",cancel:!1,border:{color:d.stroke,width:r.border.width},fill:d.fill,pointIndex:t,sparkline:g.sparkline,x:d.cx,y:d.cy,size:r.size};g.sparkline.trigger("markerRendering",m,function(){if(u&&!m.cancel){d.id=c+t,d.cx=m.x,d.cy=m.y,d.fill=m.fill,d.stroke=m.border.color,d["stroke-width"]=m.border.width,d.r=m.size/2;var r=Nt(o,d,h);r.setAttribute("role","img"),r.setAttribute("aria-label",o.dataSource[t][o.xName]+" : "+e[t].yVal),(i.sparkline.type.indexOf("Line")>-1||i.sparkline.type.indexOf("Area")>-1)&&(r.setAttribute("tabindex",0===t?"0":"-1"),r.style.outline="none"),h.appendChild(r)}})}(m,y);this.sparkline.svgObject.appendChild(h)}},e.prototype.getSpecialPoint=function(e,t,i,o,r,n,a,l,s){return void 0===s&&(s=""),t.markerPosition>this.axisHeight&&(o.fill=i.negativePointColor||o.fill,this.negativePointIndexes.push(r),e=e||s.indexOf("negative")>-1),0===r?(o.fill=i.startPointColor||o.fill,this.startPointIndex=r,e=e||s.indexOf("start")>-1):r===l-1&&(o.fill=i.endPointColor||o.fill,this.endPointIndex=r,e=e||s.indexOf("end")>-1),t.markerPosition===n?(o.fill=i.highPointColor||o.fill,this.highPointIndex=r,e=e||s.indexOf("high")>-1):t.markerPosition===a&&(o.fill=i.lowPointColor||o.fill,this.lowPointIndex=r,e=e||s.indexOf("low")>-1),s.indexOf("none")>-1&&(e=!1),e},e.prototype.renderLabel=function(e){var i=this,o=this.sparkline,r=o.dataLabelSettings,n=r.textStyle.color||o.sparkTheme.dataLabelColor;if("WinLoss"!==o.type&&r.visible.length){var a=t.extend([],[],e),l=o.element.id+"_sparkline_label_",s=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_label_g",style:"pointer-events: none;"});s.setAttribute("aria-hidden","true");for(var h,c,d,p=l+"text_",u=l+"rect_",g=new Xh("",0,0,"middle","","middle"),m=r.textStyle,y=a.map(function(e){return e.markerPosition}),f=Math.min.apply(null,y),v=Math.max.apply(null,y),b="transparent"!==r.fill||r.border.width?2:0,x=jt("sparkline_measure_text",m,this.sparkline.sparkTheme.dataLabelFont),S=new jh("",r.fill,r.border,r.opacity,null),C=this,F=0,w=e.length;F<w;F++)!function(t,a){c=e[t],g.id=p+t,g.x=c.location.x+r.offset.x,g.y=("Pie"===o.type?c.location.y:c.markerPosition>C.axisHeight?c.location.y+x.height/2+1+2+b:c.location.y-x.height/2-1-b)+r.offset.y,g.text=""!==r.format?C.formatter(r.format,C.sparkline.dataSource[t]):c.yVal.toString();var y={name:"dataLabelRendering",cancel:!1,border:r.border,fill:r.fill,pointIndex:t,sparkline:C.sparkline,x:g.x,y:g.y,text:g.text,color:n};C.sparkline.trigger("dataLabelRendering",y,function(){x=jt(y.text,m,i.sparkline.sparkTheme.dataLabelFont),g.text=y.text;var e=r.visible.join().toLowerCase().indexOf("all")>-1;e=i.getLabelVisible(e,c,t,r,a,f,v),d=i.arrangeLabelPosition(r.edgeLabelMode,e,y.x,t,a,x,b),e&&!y.cancel&&d.render&&(S.id=u+t,S.fill=y.fill,S.stroke=y.border.color,S["stroke-width"]=y.border.width,g.y=y.y,g.x=d.x,S.rect=new Hh(g.x-(x.width/2+b),g.y-b-x.height/1.75,x.width+2*b,x.height+2*b),h=i.sparkline.renderer.createGroup({id:l+"g"+t}),Ht(o,S,h),Ut(g,m,y.color,h,i.sparkline.sparkTheme.dataLabelFont),s.appendChild(h))})}(F,w);this.sparkline.svgObject.appendChild(s)}},e.prototype.arrangeLabelPosition=function(e,t,i,o,r,n,a){return"None"===e?{x:i,render:t}:(0===o&&i-n.width/2-a<=0?"Hide"===e?t=!1:i=this.sparkline.padding.left+a+n.width/2:o===r-1&&i+n.width/2+a>=this.sparkline.availableSize.width&&("Hide"===e?t=!1:i-=n.width/2+a),{x:i,render:t})},e.prototype.getLabelVisible=function(e,t,i,o,r,n,a){var l=o.visible.join().toLowerCase();return t.markerPosition>this.axisHeight&&(e=e||l.indexOf("negative")>-1),0===i?e=e||l.indexOf("start")>-1:i===r-1&&(e=e||l.indexOf("end")>-1),t.markerPosition===n?e=e||l.indexOf("high")>-1:t.markerPosition===a&&(e=e||l.indexOf("low")>-1),o.visible.join().toLowerCase().indexOf("none")>-1&&(e=!1),e},e.prototype.formatter=function(e,i){if(t.isNullOrUndefined(e))return null;for(var o=0,r=Object.keys(i);o<r.length;o++){var n=r[o];e=e.split("${"+n+"}").join(i[n])}return e},e.prototype.axisCalculation=function(){this.findRanges(this.sparkline.sparklineData)},e.prototype.getInterval=function(e,i){var o=1,r=e[0][i],n=t.isNullOrUndefined(e[1])?void 0:e[1][i];if(!t.isNullOrUndefined(r)&&!t.isNullOrUndefined(n)){var a=[];t.extend([],e).forEach(function(e){t.isNullOrUndefined(e[i])||a.push(e)}),a.sort(function(e,o){return t.isNullOrUndefined(e[i])||t.isNullOrUndefined(o[i])?0:e[i]-o[i]}),o=(a=this.sparkline.enableRtl?a.reverse():a)[1][i]-a[0][i]}return o},e.prototype.getPaddingInterval=function(e,t,i,o){for(var r=this.sparkline.availableSize.height,n=1*e.length,a=o/(n=Math.max(r*(n/100),1)),l=0,s=this.sparkline.intervalDivs;l<s.length;l++){var h=1*s[l];if(n<o/h)break;a=h}return a},e.prototype.findRanges=function(e){var i,o,r,n,a,l=this.sparkline,s=e.length,h=0,c=Array.isArray(e)&&"object"!=typeof e[0];if(c)if("Pie"===l.type)for(R=0;R<s;R++)h+=Math.abs(e[R]);else i=Math.max.apply(null,e),o=Math.min.apply(null,e),r=0,n=s-1;else if("Pie"===l.type)for(R=0;R<s;R++)h+=Math.abs(e[R][l.yName]);else{if(t.isNullOrUndefined(e[0][l.xName])){var d=e.map(function(e){return e[l.yName]});i=Math.max.apply(null,d),o=Math.min.apply(null,d)}else i=(a=(a=t.extend([],e)).sort(function(e,t){return e[l.yName]-t[l.yName]}))[a.length-1][l.yName],o=a[0][l.yName];t.isNullOrUndefined(e[0][l.xName])?(r=0,n=s-1):(a=a.sort(function(e,t){return e[l.xName]-t[l.xName]}),n=(a=this.sparkline.enableRtl?a.reverse():a)[a.length-1][l.xName],r=a[0][l.xName])}var p,u,g,m,y,f=0,v=l.padding,b=l.axisSettings,x=b.value;if("Pie"!==l.type){this.maxLength=s,u=l.availableSize.height-(v.bottom+v.top),g=l.availableSize.width-(v.left+v.right),n=t.isNullOrUndefined(b.maxX)?n:b.maxX,r=t.isNullOrUndefined(b.minX)?r:b.minX,i=t.isNullOrUndefined(b.maxY)?i:b.maxY,o=t.isNullOrUndefined(b.minY)?o:b.minY;var S=b.lineSettings.color||this.sparkline.sparkTheme.axisLineColor,C={name:"axisRendering",cancel:!1,sparkline:l,maxX:n,minX:r,maxY:i,minY:o,value:b.value,lineColor:S,lineWidth:b.lineSettings.width};if(l.trigger("axisRendering",C),C.cancel)return void(this.visiblePoints=[]);n=C.maxX,r=C.minX,i=C.maxY,o=C.minY,x=this.axisValue=C.value,this.axisColor=C.lineColor,this.axisWidth=C.lineWidth}var F=n-r,w=i-o;F=0===F?1:F,w=0===w?1:w,this.unitX=F,this.unitY=w,this.min=o,f=0,m=u-u/w*-o,m=o<0&&i<=0?0:o<0&&i>0?m:u,x>=o&&x<=i&&(m=u-Math.round(u*((x-o)/this.unitY))),this.axisHeight=m+v.top;for(var L,P,A=[],M=i-o,D=this.getInterval(e,l.xName),k=this.getPaddingInterval(e,l.xName,l.valueType,M),R=0;R<s;R++)if(t.isNullOrUndefined(e[R][l.xName])&&t.isNullOrUndefined(e[R][l.yName])&&0!==e[R][l.yName]&&c?(L=R,P=e[R]):t.isNullOrUndefined(e[R][l.xName])?(L=R,P=e[R][l.yName]):(L=e[R][l.xName],P=e[R][l.yName]),!t.isNullOrUndefined(L)&&!t.isNullOrUndefined(P)){if("Line"===l.type||"Area"===l.type)p=o!==i&&1!==s?u-Math.round(u*((P-o)/this.unitY)):v.top,y={x:r!==n?Math.round(g*((L-r)/this.unitX)):g/2,y:p,markerPosition:p};else if("Column"===l.type||"WinLoss"===l.type){var T=g/((n-r)/D+1);if(T-=1,f=(L-r)/D*(T+1)+.5,"WinLoss"===l.type){y={x:f,y:p=P>x?u/4:P<x?.5*u:.5*u-u/40,height:P!==x?u/4:u/20,width:T,markerPosition:p>m?m+Math.abs(p-m):p}}else{0===R&&"None"!==l.rangePadding&&(o-="Additional"===l.rangePadding?k+v.top:k,w=(i+="Additional"===l.rangePadding?k+v.top:k)-o,F=0===(F=n-r)?1:F,w=0===w?1:w,this.unitX=F,this.unitY=w,this.min=o);var E=u/this.unitY*(P-o),_=P===o&&P>x?1!==s&&1!==this.unitY?u/this.unitY*(o/2):1|E:P===i&&P<x&&1!==s&&1!==this.unitY?u/this.unitY*(-i/2):E;y={x:f,y:(p=Math.abs(u-_))>m?m:p,height:Math.abs(p-m),width:T,markerPosition:p>m?m+Math.abs(p-m):p}}}else"Pie"===l.type&&(y={percent:Math.abs(P)/h*100,degree:Math.abs(P)/h*360});"Pie"!==l.type&&(y.x+=v.left,y.y+=v.top),"WinLoss"!==l.type&&(y.markerPosition+=v.top),y.location={x:y.x,y:y.y},y.xVal=L,y.yVal=P,A.push(y)}A.sort(function(e,t){return e.x-t.x}),this.visiblePoints=A},e.prototype.drawAxis=function(){var e=this.sparkline,t=this.axisHeight;if("WinLoss"!==e.type&&"Pie"!==e.type&&e.axisSettings.lineSettings.visible){var i={id:e.element.id+"_Sparkline_XAxis",x1:e.padding.left,y1:t,x2:e.availableSize.width-e.padding.right,y2:t,stroke:this.axisColor,opacity:e.axisSettings.lineSettings.opacity,"stroke-dasharray":e.axisSettings.lineSettings.dashArray,"stroke-width":this.axisWidth,"clip-path":"url(#"+this.clipId+")"};e.svgObject.appendChild(e.renderer.drawLine(i))}},e.prototype.triggerPointRender=function(e,t,i,o){var r={name:e,cancel:!1,border:o,fill:i,sparkline:this.sparkline,pointIndex:t};return this.sparkline.trigger(e,r),r},e}(),Yh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Zh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},qh=function(e){function i(i,o){var r=e.call(this,i,o)||this;return r.isDevice=t.Browser.isDevice,r.intervalDivs=[10,5,2,1],r.previousTargetId="",r.currentPointIndex=0,r}return Yh(i,e),i.prototype.preRender=function(){this.allowServerDataBinding=!1,this.unWireEvents(),this.trigger("load",{sparkline:this}),this.sparkTheme=_t(this.theme),this.sparklineRenderer=new Gh(this),this.setTheme(),this.createSVG(),this.wireEvents(),this.setCulture()},i.prototype.render=function(){this.sparklineRenderer.processDataManager(),this.renderComplete(),this.allowServerDataBinding=!0},i.prototype.processSparklineData=function(){this.sparklineRenderer.processData(),this.renderSparkline(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition(),this.trigger("loaded",{sparkline:this})},i.prototype.renderSparkline=function(){this.renderBorder(),this.createDiv(),this.sparklineRenderer.renderSeries()},i.prototype.createDiv=function(){var e=document.createElement("div");e.id=this.element.id+"_Secondary_Element",e.style.position="relative",this.element.appendChild(e),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.style.display="block",this.element.style.position="relative"},i.prototype.setSecondaryElementPosition=function(){var e=Gt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=Gt(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},i.prototype.renderBorder=function(){var e,t=this.containerArea.border.width;(t>0||"transparent"!==this.containerArea.background)&&(e=new jh(this.element.id+"_SparklineBorder",this.sparkTheme.background,this.containerArea.border,1,new Hh(t/2,t/2,this.availableSize.width-t,this.availableSize.height-t)),this.svgObject.appendChild(Ht(this,e)));var i=this.padding;this.markerSettings.visible.length&&(i.left=0,i.right=0,i.bottom=0,i.top=0),e=new jh(this.element.id+"_sparkline_clip_rect","transparent",{color:"transparent",width:0},1,new Hh(i.left,i.top,this.availableSize.width-(i.left+i.right),this.availableSize.height-(i.top+i.bottom)));var o=this.renderer.createClipPath({id:this.element.id+"_sparkline_clip_path"});Ht(this,e,o),this.svgObject.appendChild(o)},i.prototype.createSVG=function(){this.removeSvg(),zt(this)},i.prototype.removeSvg=function(){if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&t.remove(this.svgObject)}Xt(this.element.id+"_Secondary_Element"),this.sparklineTooltipModule&&this.sparklineTooltipModule.removeTooltipElements()},i.prototype.setCulture=function(){this.intl=new t.Internationalization,this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},i.prototype.setTheme=function(){this.sparkTheme=_t(this.theme)},i.prototype.requiredModules=function(){var e=[];return(this.tooltipSettings.visible||this.tooltipSettings.trackLineSettings.visible)&&e.push({member:"SparklineTooltip",args:[this]}),e},i.prototype.unWireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,t.Browser.touchMoveEvent,this.sparklineMove),t.EventHandler.remove(this.element,e,this.sparklineMouseLeave),t.EventHandler.remove(this.element,t.Browser.touchEndEvent,this.sparklineMouseEnd),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.sparklineResize)},i.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.sparklineMove,this),t.EventHandler.add(this.element,"click",this.sparklineClick,this),t.EventHandler.add(this.element,e,this.sparklineMouseLeave,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.sparklineMouseEnd,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.sparklineResize.bind(this)),new t.Touch(this.element)},i.prototype.sparklineResize=function(){var e=this,t={name:"resize",previousSize:this.availableSize,sparkline:this,currentSize:new Vh(0,0)};return this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);e.unWireEvents(),e.createSVG(),e.refreshing=!0,e.wireEvents(),t.currentSize=e.availableSize,e.trigger("resize",t),e.render(),e.refreshing=!1},500),!1},i.prototype.sparklineMove=function(e){this.setSparklineMouseXY(e),this.notify(t.Browser.touchMoveEvent,e);var i={name:"sparklineMouseMove",cancel:!1,sparkline:this,event:e};this.trigger(i.name,i);var o=this.isPointRegion(e);if(o.isPointRegion){var r={name:"pointRegionMouseMove",cancel:!1,event:e,sparkline:this,pointIndex:o.pointIndex};this.trigger(r.name,r)}return!1},i.prototype.sparklineClick=function(e){this.setSparklineMouseXY(e);var t={name:"sparklineMouseClick",cancel:!1,sparkline:this,event:e};this.trigger(t.name,t);var i=this.isPointRegion(e);if(i.isPointRegion){var o={name:"pointRegionMouseClick",cancel:!1,event:e,sparkline:this,pointIndex:i.pointIndex};this.trigger(o.name,o)}return this.removeNavigationStyle(),!1},i.prototype.isPointRegion=function(e){var i=this,o=this.element.id+"_",r=e.target.id.replace(o,"").split("_");if(r[1]===this.type.toLowerCase()){var n=parseInt(r[2],10);return!t.isNullOrUndefined(n)&&!isNaN(n)||"Line"!==this.type&&"Area"!==this.type||this.sparklineRenderer.visiblePoints.forEach(function(e,t){if(Yt(i.mouseX,i.mouseY,new Hh(e.x-5,e.y-5,10,10)))return void(n=t)}),{isPointRegion:!0,pointIndex:n}}return{isPointRegion:!1,pointIndex:null}},i.prototype.sparklineMouseEnd=function(e){return this.setSparklineMouseXY(e),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.sparklineMouseLeave=function(e){return this.setSparklineMouseXY(e),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e),!1},i.prototype.chartKeyDown=function(e){var t="";return this.tooltipSettings.visible&&("Tab"===e.code&&this.previousTargetId.indexOf("_sparkline_")>-1||"Escape"===e.code)&&(t="ESC"),""!==t&&this.sparklineKeyboardNavigations(e,e.target.id,t),("Tab"===e.code||"Enter"===e.code||e.code.indexOf("Arrow")>-1)&&this.removeNavigationStyle(),!1},i.prototype.chartKeyUp=function(e){var t,i="",o=e.target.id,r=e.target,n=he(this.element.id+"_sparkline_g"),a=he(this.element.id+"_sparkline_line");if(this.removeNavigationStyle(),this.setNavigationStyle(o),a&&a.removeAttribute("tabindex"),n&&n.firstElementChild){var l=n.firstElementChild,s=l.getAttribute("class");s&&-1===s.indexOf("e-sparkline-focused")?s+=" e-sparkline-focused":s||(s="e-sparkline-focused"),l.setAttribute("class",s)}if("Tab"===e.code)""!==this.previousTargetId&&this.previousTargetId.indexOf("_sparkline_")>-1&&-1===o.indexOf("_sparkline_")&&(t=he(this.element.id+"_sparkline_g"),this.setTabIndex(t.children[this.currentPointIndex],t.firstElementChild)),this.previousTargetId=o,i=this.tooltipSettings.visible?"Tab":"";else if(e.code.indexOf("Arrow")>-1&&(e.preventDefault(),this.previousTargetId=o,o.indexOf("_sparkline_")>-1)){t=r.parentElement;var h=e.target;r.removeAttribute("tabindex"),r.blur(),"ArrowUp"!==e.code&&"ArrowDown"!==e.code||(this.currentPointIndex+="ArrowUp"===e.code?1:-1),o.indexOf("_marker")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"_sparkline_marker_g").childElementCount),h=he(this.element.id+"_sparkline_marker_"+this.currentPointIndex)):o.indexOf("_column")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"_sparkline_g").childElementCount),h=he(this.element.id+"_sparkline_column_"+this.currentPointIndex)):o.indexOf("_winloss")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"_sparkline_g").childElementCount),h=he(this.element.id+"_sparkline_winloss_"+this.currentPointIndex)):o.indexOf("_pie")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,he(this.element.id+"_sparkline_g").childElementCount),h=he(this.element.id+"_sparkline_pie_"+this.currentPointIndex)),o=this.focusChild(h),i=this.tooltipSettings.visible?"ArrowMove":""}return""!==i&&this.sparklineKeyboardNavigations(e,o,i),!1},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.sparkTheme.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_sparkline_], [id*="+this.element.id+"]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.sparklineKeyboardNavigations=function(e,t,i){switch(i){case"Tab":case"ArrowMove":if(t.indexOf("_sparkline_")>-1){var o=void 0;o=this.type.indexOf("Line")>-1||this.type.indexOf("Area")>-1?+t.split("_sparkline_")[1].split("marker_")[1]:this.type.indexOf("WinLoss")>-1?+t.split("_sparkline_")[1].split("winloss_")[1]:this.type.indexOf("Pie")>-1?+t.split("_sparkline_")[1].split("pie_")[1]:+t.split("_sparkline_")[1].split("column_")[1],this.sparklineTooltipModule&&this.sparklineTooltipModule.renderTooltip(this.sparklineRenderer.visiblePoints[o])}break;case"ESC":this.sparklineTooltipModule.removeTooltipElements()}},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-sparkline-focused")?t="e-sparkline-focused "+t:t||(t="e-sparkline-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.setSparklineMouseXY=function(e){var t,i;if(e.type.indexOf("touch")>-1){this.isTouch=!0;var o=e;i=o.changedTouches[0].clientX,t=o.changedTouches[0].clientY}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientY,i=e.clientX;var r=this.element.getBoundingClientRect(),n=Gt(this.element.id+"_svg").getBoundingClientRect();this.mouseY=t-r.top-Math.max(n.top-r.top,0),this.mouseX=i-r.left-Math.max(n.left-r.left,0)},i.prototype.onPropertyChanged=function(e){for(var t=!1,i=!1,o=0,r=Object.keys(e);o<r.length;o++)switch(r[o]){case"xName":case"yName":case"axisSettings":case"rangeBandSettings":case"type":case"valueType":case"enableRtl":case"dataSource":i=!0;break;case"border":case"markerSettings":case"dataLabelSettings":case"tooltipSettings":case"startPointColor":case"highPointColor":case"lowPointColor":case"endPointColor":case"negativePointColor":case"theme":t=!0}i?(this.createSVG(),this.sparklineRenderer.processData(),this.refreshSparkline()):t&&(this.createSVG(),this.refreshSparkline())},i.prototype.refreshSparkline=function(){this.renderSparkline(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition()},i.prototype.getModuleName=function(){return"sparkline"},i.prototype.destroy=function(){this.sparklineData=[];var t=document.getElementById(this.element.id+"Keyboard_sparkline_focus");t&&t.remove(),Xt("sparklinesmeasuretext"),this.element&&(this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null)},i.prototype.getPersistData=function(){return""},Zh([t.Property(null)],i.prototype,"width",void 0),Zh([t.Property(null)],i.prototype,"height",void 0),Zh([t.Complex({},Ah)],i.prototype,"border",void 0),Zh([t.Property("Line")],i.prototype,"type",void 0),Zh([t.Property("None")],i.prototype,"rangePadding",void 0),Zh([t.Property(null)],i.prototype,"dataSource",void 0),Zh([t.Property(null)],i.prototype,"query",void 0),Zh([t.Property("Numeric")],i.prototype,"valueType",void 0),Zh([t.Property(null)],i.prototype,"xName",void 0),Zh([t.Property(null)],i.prototype,"yName",void 0),Zh([t.Property("#00bdae")],i.prototype,"fill",void 0),Zh([t.Property("")],i.prototype,"highPointColor",void 0),Zh([t.Property("")],i.prototype,"lowPointColor",void 0),Zh([t.Property("")],i.prototype,"startPointColor",void 0),Zh([t.Property("")],i.prototype,"endPointColor",void 0),Zh([t.Property("")],i.prototype,"negativePointColor",void 0),Zh([t.Property("")],i.prototype,"tiePointColor",void 0),Zh([t.Property([])],i.prototype,"palette",void 0),Zh([t.Property(1)],i.prototype,"lineWidth",void 0),Zh([t.Property(1)],i.prototype,"opacity",void 0),Zh([t.Property(null)],i.prototype,"format",void 0),Zh([t.Property(!1)],i.prototype,"useGroupingSeparator",void 0),Zh([t.Complex({},kh)],i.prototype,"tooltipSettings",void 0),Zh([t.Complex({},Rh)],i.prototype,"containerArea",void 0),Zh([t.Collection([],Eh)],i.prototype,"rangeBandSettings",void 0),Zh([t.Complex({},_h)],i.prototype,"axisSettings",void 0),Zh([t.Complex({},Oh)],i.prototype,"markerSettings",void 0),Zh([t.Complex({},Bh)],i.prototype,"dataLabelSettings",void 0),Zh([t.Complex({},Ih)],i.prototype,"padding",void 0),Zh([t.Property("Material")],i.prototype,"theme",void 0),Zh([t.Event()],i.prototype,"loaded",void 0),Zh([t.Event()],i.prototype,"load",void 0),Zh([t.Event()],i.prototype,"tooltipInitialize",void 0),Zh([t.Event()],i.prototype,"seriesRendering",void 0),Zh([t.Event()],i.prototype,"axisRendering",void 0),Zh([t.Event()],i.prototype,"pointRendering",void 0),Zh([t.Event()],i.prototype,"pointRegionMouseMove",void 0),Zh([t.Event()],i.prototype,"pointRegionMouseClick",void 0),Zh([t.Event()],i.prototype,"sparklineMouseMove",void 0),Zh([t.Event()],i.prototype,"sparklineMouseClick",void 0),Zh([t.Event()],i.prototype,"dataLabelRendering",void 0),Zh([t.Event()],i.prototype,"markerRendering",void 0),Zh([t.Event()],i.prototype,"resize",void 0),i=Zh([t.NotifyPropertyChanges],i)}(t.Component),Qh=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(i[o[r]]=e[o[r]]);return i},$h=function(){function e(e){this.sparkline=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.sparkline.isDestroyed||(this.sparkline.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeaveHandler,this),this.sparkline.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.sparkline.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},e.prototype.mouseLeaveHandler=function(){this.removeTooltipElements()},e.prototype.mouseUpHandler=function(e){this.sparkline.isTouch&&(this.processTooltip(e),this.fadeOut())},e.prototype.fadeOut=function(){clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(this.removeTooltipElements.bind(this),5e3)},e.prototype.removeTooltipElements=function(){this.removeTooltip(),this.removeTracker()},e.prototype.mouseMoveHandler=function(e){this.processTooltip(e)},e.prototype.processTooltip=function(e){var i,o=this.sparkline,r=o.sparklineRenderer.visiblePoints,n=o.mouseX,a=o.mouseY;if("Pie"!==o.type)for(var l=t.extend([],[],r).map(function(e){return e.location.x}),s=1/0,h=0,c=void 0,d=l.length;h<d;h++)s>(c=Math.abs(n-l[h]))&&(s=c,i=h);else{var p=e.target.id;i=parseInt(p.split("_pie_")[1],10)}if(isNaN(i)||!Yt(n,a,new Hh(0,0,o.availableSize.width,o.availableSize.height)))return this.removeTracker(),void this.removeTooltip();this.pointIndex!==i&&(this.pointIndex=i,this.renderTrackerLine(r[i]),this.renderTooltip(r[i]))},e.prototype.renderTrackerLine=function(e){var i=this.sparkline,o=i.tooltipSettings.trackLineSettings,r=i.sparkTheme.trackerLineColor?i.sparkTheme.trackerLineColor:o.color;if(o.visible&&"Pie"!==i.type){var n=Gt(i.element.id+"_sparkline_tracker_g");t.isNullOrUndefined(n)&&(n=i.renderer.createGroup({id:i.element.id+"_sparkline_tracker_g"}),i.svgObject.appendChild(n));var a=Gt(i.element.id+"_sparkline_tracker"),l="M "+e.location.x+" "+i.padding.top+" L "+e.location.x+" "+(i.availableSize.height-i.padding.bottom);if(t.isNullOrUndefined(a)){var s=new Wh(i.element.id+"_sparkline_tracker",r,o.width,r,1);s.d=l,Wt(i,s,n)}else a.setAttribute("d",l),a.setAttribute("stroke-width",o.width.toString()),a.setAttribute("stroke",r)}},e.prototype.renderTooltip=function(e){var i=this,o=this.sparkline,r=o.tooltipSettings;if(r.visible){var n=Gt(o.element.id+"_sparkline_tooltip_div");t.isNullOrUndefined(n)&&(n=t.createElement("div",{id:o.element.id+"_sparkline_tooltip_div",styles:"pointer-events: none; position: absolute;z-index:1;"}),Gt(o.element.id+"_Secondary_Element").appendChild(n));var a=e.xVal.toString();"Category"===o.valueType?a=o.dataSource[e.xVal][o.xName]:"DateTime"===o.valueType&&(a=new Date(e.xVal).toDateString());var l=this.getFormat(o.tooltipSettings.format,o,a,this.formatValue(e.yVal,o).toString()),s={x:e.location.x,y:e.location.y};s="Pie"===o.type?{x:e.location.x,y:e.location.y}:s;var h=r.textStyle.color||o.sparkTheme.tooltipFontColor,c=""===r.fill?o.sparkTheme.tooltipFill:r.fill,d={name:"tooltipInitialize",cancel:!1,text:l,textStyle:{size:r.textStyle.size,opacity:o.sparkTheme.tooltipTextOpacity||r.textStyle.opacity,fontWeight:r.textStyle.fontWeight||o.sparkTheme.tooltipFontWeight,fontStyle:r.textStyle.fontStyle,fontFamily:r.textStyle.fontFamily||o.sparkTheme.tooltipFontFamily,color:h}};o.trigger("tooltipInitialize",d,function(){i.addTooltip(d,o,c,r,s,n)})}},e.prototype.addTooltip=function(e,o,r,n,a,l,s){var h;if(t.isNullOrUndefined(e))s.cancel,h=s;else{var c=e.cancel;Qh(e,["cancel"]);c,h=e}if(!e.cancel){var d=new i.Tooltip({content:h.text,border:n.border,template:n.template,data:o.dataSource[this.pointIndex],fill:r,textStyle:h.textStyle,enableAnimation:!1,enableRTL:o.enableRtl,location:{x:a.x,y:a.y},shared:!1,availableSize:this.sparkline.availableSize,areaBounds:new Hh(0,0,o.availableSize.width,o.availableSize.height),theme:o.theme});d.opacity=o.sparkTheme.tooltipFillOpacity||d.opacity,d.appendTo(l)}},e.prototype.getFormat=function(e,i,o,r){if(t.isNullOrUndefined(e)||""===e)return[r];var n=e;return n=n.split("${"+i.xName+"}").join(o).split("${"+i.yName+"}").join(r),[n]},e.prototype.formatValue=function(e,t){return t.format&&!isNaN(Number(e))?t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator})(e):e},e.prototype.removeTracker=function(){var e=this.sparkline.element.querySelector("#"+this.sparkline.element.id+"_sparkline_tracker_g");return e?t.remove(e):null},e.prototype.removeTooltip=function(){this.pointIndex=null;var e=this.sparkline.element.querySelector("#"+this.sparkline.element.id+"_sparkline_tooltip_div");return e?t.remove(e):null},e.prototype.getModuleName=function(){return"SparklineTooltip"},e.prototype.destroy=function(){},e}(),Kh=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ec=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kh(i,e),Jh([t.Property("Normal")],i.prototype,"fontStyle",void 0),Jh([t.Property("16px")],i.prototype,"size",void 0),Jh([t.Property("Normal")],i.prototype,"fontWeight",void 0),Jh([t.Property("")],i.prototype,"color",void 0),Jh([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),Jh([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),tc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kh(i,e),Jh([t.Property("transparent")],i.prototype,"color",void 0),Jh([t.Property(0)],i.prototype,"width",void 0),Jh([t.Property(.8)],i.prototype,"cornerRadius",void 0),i}(t.ChildProperty),ic=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kh(i,e),Jh([t.Property("Normal")],i.prototype,"fontStyle",void 0),Jh([t.Property("15px")],i.prototype,"size",void 0),Jh([t.Property("500")],i.prototype,"fontWeight",void 0),Jh([t.Property("")],i.prototype,"color",void 0),Jh([t.Property("Center")],i.prototype,"textAlignment",void 0),Jh([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),Jh([t.Property(1)],i.prototype,"opacity",void 0),Jh([t.Property("Wrap")],i.prototype,"textOverflow",void 0),Jh([t.Property("Top")],i.prototype,"position",void 0),Jh([t.Property(0)],i.prototype,"x",void 0),Jh([t.Property(0)],i.prototype,"y",void 0),Jh([t.Property("transparent")],i.prototype,"background",void 0),Jh([t.Complex({},tc)],i.prototype,"border",void 0),i}(t.ChildProperty),oc=function(){function e(e){this.chart=e}return e.prototype.measureAxis=function(e){var t=this.chart;this.seriesClipRect=new i.Rect(e.x,e.y,e.width,e.height),this.initialClipRect=e,this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.initialClipRect=F(this.initialClipRect,new fo(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.initialClipRect=F(this.initialClipRect,new fo(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||this.calculateAxisSize(this.initialClipRect),this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.seriesClipRect=F(this.seriesClipRect,new fo(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.seriesClipRect=F(this.seriesClipRect,new fo(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||(t.refreshAxis(),this.calculateAxisSize(this.seriesClipRect))},e.prototype.measureRowAxis=function(e,t){var o;this.calculateRowSize(t);for(var r=0,n=e.rows;r<n.length;r++)(o=n[r]).nearSizes=[],o.farSizes=[],this.arrangeAxis(o),this.measureDefinition(o,e,new i.Size(e.availableSize.width,o.computedHeight)),this.leftSize<S(o.nearSizes)&&(this.leftSize=S(o.nearSizes)),this.rightSize<S(o.farSizes)&&(this.rightSize=S(o.farSizes))},e.prototype.measureColumnAxis=function(e,t){var o;this.calculateColumnSize(t);for(var r=0,n=e.columns;r<n.length;r++)(o=n[r]).farSizes=[],o.nearSizes=[],this.arrangeAxis(o),this.measureDefinition(o,e,new i.Size(o.computedWidth,e.availableSize.height)),this.bottomSize<S(o.nearSizes)&&(this.bottomSize=S(o.nearSizes)),this.topSize<S(o.farSizes)&&(this.topSize=S(o.farSizes))},e.prototype.measureDefinition=function(e,t,i){for(var o=0,r=e.axes;o<r.length;o++){var n=r[o];n.getModule(t),n.baseModule.calculateRangeAndInterval(i,n),e.computeSize(n,t)}e.farSizes.length>0&&(e.farSizes[e.farSizes.length-1]-=10),e.nearSizes.length>0&&(e.nearSizes[e.nearSizes.length-1]-=10)},e.prototype.calculateAxisSize=function(e){var t,i,o,r,n,a,l,s=this.chart,h=0,c=0,d=0;this.calculateRowSize(e);for(var p=0,u=s.rows.length;p<u;p++){h=0,c=0;for(var g=0,m=(t=s.rows[p]).axes.length;g<m;g++){if(r=t.axes[g],l=r.plotOffset,0===r.rect.height){r.rect.height=t.computedHeight,d=0;for(var y=p+1,f=p+r.span;y<f;y++)d+=(o=s.rows[y]).computedHeight;r.rect.y=t.computedTop-d+(r.plotOffsetTop?r.plotOffsetTop:l),r.rect.height=r.rect.height+d-this.getAxisOffsetValue(r.plotOffsetTop,r.plotOffsetBottom,r.plotOffset),r.rect.width=0}r.isAxisOpposedPosition?(n=e.x+e.width+S(R(t.farSizes,c)),r.rect.x=r.rect.x>=n?r.rect.x:n,c++):(n=e.x-S(R(t.nearSizes,h)),r.rect.x=r.rect.x<=n?r.rect.x:n,h++)}}this.calculateColumnSize(e);for(var p=0,u=s.columns.length;p<u;p++){h=0,c=0;for(var g=0,v=(i=s.columns[p]).axes.length;g<v;g++){if(r=i.axes[g],l=r.plotOffset,0===r.rect.width){for(var y=p,b=p+r.span;y<b;y++)o=s.columns[y],r.rect.width+=o.computedWidth;r.rect.x=i.computedLeft+(r.plotOffsetLeft?r.plotOffsetLeft:l),r.rect.width-=this.getAxisOffsetValue(r.plotOffsetLeft,r.plotOffsetRight,r.plotOffset),r.rect.height=0}r.isAxisOpposedPosition?(a=e.y-S(R(i.farSizes,c)),r.rect.y=r.rect.y<=a?r.rect.y:a,c++):(a=e.y+e.height+S(R(i.nearSizes,h)),r.rect.y=r.rect.y>=a?r.rect.y:a,h++)}}},e.prototype.measure=function(){for(var e,t,i,o,r,n=this.chart,a=0,l=n.axisCollections;a<l.length;a++){var s=l[a];if("Vertical"===s.orientation){n.verticalAxes.push(s),o=this.getActualRow(s),e=n.rows[o],this.pushAxis(e,s),r=o+s.span>n.rows.length?n.rows.length:o+s.span;for(h=o+1;h<r;h++)(i=n.rows[h]).axes[e.axes.length-1]=s,n.rows[h]=i;n.rows[o]=e}else{n.horizontalAxes.push(s),o=this.getActualColumn(s),t=n.columns[o],this.pushAxis(t,s),r=o+s.span>n.columns.length?n.columns.length:o+s.span;for(var h=o+1;h<r;h++)(i=n.columns[h]).axes[t.axes.length-1]=s,n.columns[h]=i;n.columns[o]=t}s.isRTLEnabled=n.enableRtl,s.setIsInversedAndOpposedPosition()}},e.prototype.getAxisOffsetValue=function(e,t,i){return e?e+(t||i):t?t+i:2*i},e.prototype.pushAxis=function(e,t){for(var i=0,o=e.axes.length;i<=o;i++)if(!e.axes[i]){e.axes[i]=t;break}},e.prototype.arrangeAxis=function(e){for(var t=[],i=0,o=e.axes.length;i<=o;i++)e.axes[i]&&t.push(e.axes[i]);e.axes=t},e.prototype.getActualColumn=function(e){var t=this.chart.columns.length,i=e.columnIndex;return i>=t?t-1:i<0?0:i},e.prototype.getActualRow=function(e){var t=this.chart.rows.length,i=e.rowIndex;return i>=t?t-1:i<0?0:i},e.prototype.calculateRowSize=function(e){for(var t,i=this.chart,o=e.y+e.height,r=0,n=Math.max(0,e.height),a=0,l=i.rows.length;a<l;a++)r=-1!==(t=i.rows[a]).height.indexOf("%")?Math.min(n,e.height*parseInt(t.height,10)/100):Math.min(n,parseInt(t.height,10)),r=a!==l-1?r:n,t.computedHeight=r,o-=r,t.computedTop=o,n-=r},e.prototype.calculateColumnSize=function(e){for(var t,i=this.chart,o=e.x,r=0,n=Math.max(0,e.width),a=0,l=i.columns.length;a<l;a++)r=-1!==(t=i.columns[a]).width.indexOf("%")?Math.min(n,e.width*parseInt(t.width,10)/100):Math.min(n,parseInt(t.width,10)),r=a!==l-1?r:n,t.computedWidth=r,t.computedLeft=o,o+=r,n-=r},e}(),rc=function(){return(rc=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},nc=function(){function e(){this.transform=null}return e}(),ac=new nc,lc=function(){function e(e,t,i){this.x=0,this.y=0,this.z=0,this.epsilon=1e-5,this.x=e,this.y=t||0,this.z=i||0}return e.prototype.isValid=function(e){return!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)},e.prototype.vector3D=function(e,t,i){return this.x=e,this.y=t,this.z=i,{x:this.x,y:this.y,z:this.z}},e.prototype.vector3DMinus=function(e,t){return this.vector3D(e.x-t.x,e.y-t.y,e.z-t.z)},e.prototype.vector3DPlus=function(e,t){return this.vector3D(e.x+t.x,e.y+t.y,e.z+t.z)},e.prototype.vector3DMultiply=function(e,t){var i=e.y*t.z-t.y*e.z,o=e.z*t.x-t.z*e.x,r=e.x*t.y-t.x*e.y;return this.vector3D(i,o,r)},e.prototype.vector3DAdd=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},e.prototype.vector3DStarMultiply=function(e,t){var i=e.x*t,o=e.y*t,r=e.z*t;return this.vector3D(i,o,r)},e.prototype.getLength=function(e){var t=this.vector3DAdd(e,e);return Math.sqrt(t)},e.prototype.normalize=function(){var e=this.getLength(this);this.x/=e,this.y/=e,this.z/=e},e.prototype.getNormal=function(e,t,i){var o=this.vector3DMinus(e,t),r=this.vector3DMinus(i,t),n=this.vector3DMultiply(o,r),a=this.getLength(n);return a<this.epsilon?this.vector3D(0,0,0):this.vector3D(n.x/a,n.y/a,n.z/a)},e}(),sc=function(){function e(){this.matrixSize=4}return e.prototype.matrix3D=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.createArray(e);return t},e.prototype.isAffine=function(e){return 0===e[0][3]&&0===e[1][3]&&0===e[2][3]&&1===e[3][3]},e.prototype.createArray=function(e){for(var t=[],i=0;i<e;++i)t[i]=0;return t},e.prototype.getIdentity=function(){for(var e=this.matrix3D(this.matrixSize),t=0;t<this.matrixSize;t++)e[t][t]=1;return e},e.prototype.getInterval=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=this.getMinor(e,i,o);return t=this.transposed(t),t=this.getMatrixMultiple(1/this.getDeterminant(e),t)},e.prototype.getMatrixMultiple=function(e,t){for(var i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++)t[i][o]=t[i][o]*e;return t},e.prototype.getMatrixVectorMultiple=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z+e[3][0],o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z+e[3][1],r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z+e[3][2];if(!this.isAffine(e)){var n=1/(e[0][3]*t.x+e[1][3]*t.y+e[2][3]*t.z+e[3][3]);i*=n,o*=n,r*=n}return{x:i,y:o,z:r}},e.prototype.getMatrixVectorAnd=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z,o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z,r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z;return new lc(i,o,r)},e.prototype.getMatrixMultiplication=function(e,t){for(var i=this.getIdentity(),o=0;o<this.matrixSize;o++)for(var r=0;r<this.matrixSize;r++){for(var n=0,a=0;a<this.matrixSize;a++)n+=e[a][r]*t[o][a];i[o][r]=n}return i},e.prototype.getMinor=function(e,t,i){return((t+i)%2==0?1:-1)*this.getDeterminant(this.getMatrix(e,t,i))},e.prototype.getMatrix=function(e,t,i){for(var o=e.length-1,r=this.createArray(o),n=0;n<o;n++){var a=n>=t?n+1:n;r[n]=this.createArray(o);for(var l=0;l<o;l++){var s=l>=i?l+1:l;r[n][l]=e[a][s]}}return r},e.prototype.getDeterminant=function(e){var t=e.length,i=0;if(t<2)i=e[0][0];else for(var o=1,r=0;r<t;r++){var n=this.getMatrix(e,r,0);i+=o*e[r][0]*this.getDeterminant(n),o=o>0?-1:1}return i},e.prototype.transform=function(e,t,i){var o=this.getIdentity();return o[3][0]=e,o[3][1]=t,o[3][2]=i,o},e.prototype.turn=function(e){var t=this.getIdentity();return t[0][0]=Math.cos(e),t[2][0]=-Math.sin(e),t[0][2]=Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.tilt=function(e){var t=this.getIdentity();return t[1][1]=Math.cos(e),t[2][1]=Math.sin(e),t[1][2]=-Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.transposed=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=e[o][i];return t},e}(),hc=function(){function e(){this.toRadial=Math.PI/180,this.vector=new lc(0,0,0),this.matrixObj=new sc}return e.prototype.transform3D=function(e){return{viewingArea:e,rotation:0,tilt:0,depth:0,perspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixObj.getIdentity(),perspective:this.matrixObj.getIdentity(),resultMatrix:this.matrixObj.getIdentity(),viewMatrix:this.matrixObj.getIdentity()}},e.prototype.transform=function(e){this.setCenter(this.vector.vector3D(e.viewingArea.width/2,e.viewingArea.height/2,e.depth/2),e),this.setViewMatrix(this.matrixObj.transform(0,0,e.depth),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.turn(-this.toRadial*e.rotation)),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.tilt(-this.toRadial*e.tilt)),e),this.updatePerspective(e.perspectiveAngle,e),e.needUpdate=!0},e.prototype.updatePerspective=function(e,t){var i=(t.viewingArea.width+t.viewingArea.height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(e%181))/2))+2*t.depth/2;t.perspective[0][0]=i,t.perspective[1][1]=i,t.perspective[2][3]=1,t.perspective[3][3]=i},e.prototype.degreeToRadianConverter=function(e){return e*Math.PI/180},e.prototype.toScreen=function(e,t,i){return i?(this.matrixObj=i,e=i.getMatrixVectorMultiple(this.result(t,i),e)):(t.chartObj=this.matrixObj,e=this.matrixObj.getMatrixVectorMultiple(this.result(t),e)),{x:e.x,y:e.y}},e.prototype.setViewMatrix=function(e,t){t.viewMatrix!==e&&(t.viewMatrix=e,t.needUpdate=!0)},e.prototype.result=function(e,t){var i=e.chartObj?e.chartObj:this.matrixObj;if(i||(i=t),!e.needUpdate)return e.resultMatrix;var o=this.matrixObj?this.matrixObj:t;return e.resultMatrix=i.getMatrixMultiplication(o.getInterval(e.centeredMatrix),e.perspective),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.viewMatrix),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.centeredMatrix),e.needUpdate=!1,e.resultMatrix},e.prototype.setCenter=function(e,t){t.centeredMatrix=this.matrixObj.transform(-e.x,-e.y,-e.z),t.needUpdate=!0},e}(),cc=function(){function e(){this.vector=new lc(0,0,0)}return e.prototype.addVisual=function(e,t){return null==e||fc.test()?-1:yc.add(e,t)},e.prototype.prepareView=function(e,t,i,o,r,n){null==ac.transform?ac.transform=n.transform3D.transform3D(r):ac.transform.viewingArea=r,ac.tree||(ac.tree=[]),ac.transform.rotation=i,ac.transform.tilt=o,ac.transform.depth=t,ac.transform.perspectiveAngle=e,n.transform3D.transform(ac.transform),ac.tree[n.chart3D.id]=yc.build()},e.prototype.view=function(e,t,i,o,r,n,a){if(2===arguments.length){if(null==e)return;var l=this.vector.vector3D(0,0,32767);this.drawNode3D(ac.tree[t.chart3D.id],l,e,t)}else{if(null==e)return;null==ac.transform?ac.transform=t.transform3D.transform3D(r):ac.transform.viewingArea=r,ac.transform.rotation=i,ac.transform.tilt=o,ac.transform.depth=a,ac.transform.perspectiveAngle=n,t.transform3D.transform(ac.transform);var s=this.vector.vector3D(0,0,32767);this.drawNode3D(ac.tree[t.chart3D.id],s,e,t)}},e.prototype.draw3DElement=function(e,t){e.plane.element?"text"===e.plane.element.tag||"dataLabel"===e.plane.element.tag?fc.drawText(e.plane,t):"template"===e.plane.element.tag?fc.drawTemplate(e.plane,t):fc.drawLine(e.plane,t):fc.draw(e.plane,t)},e.prototype.drawNode3D=function(e,t,i,o){if(null!==e&&null!=ac.transform)for(;;){if(gc.vector3DAdd(fc.getNormal(o.transform3D.result(ac.transform),e.plane.vectorPoints),t)>e.plane.d){if(null!=e.front&&this.drawNode3D(e.front,t,i,o),this.draw3DElement(e,o),null!=e.back){e=e.back;continue}}else if(null!=e.back&&this.drawNode3D(e.back,t,i,o),this.draw3DElement(e,o),null!=e.front){e=e.front;continue}break}},e}(),dc=function(){function e(e){this.epsilon=5e-4,this.chart=e}return e.prototype.add=function(e,t){return this.chart=t,t.polygons.push(e),t.polygons.length-1},e.prototype.getNext=function(e,t){return e>=t?e-t:e<0?e+t:e},e.prototype.vector3DIndexClassification=function(e,t,i){return{index:t,result:i,vector:e,isCuttingBackPoint:!1,cuttingBackPairIndex:null,alreadyCutBack:!1,isCuttingFrontPoint:!1,cuttingFrontPairIndex:null,alreadyCutFront:!1}},e.prototype.classifyPoint=function(e,t){var i="OnPlane",o=-t.d-gc.vector3DAdd(e,t.normal);return o>this.epsilon?i="OnBack":o<-this.epsilon&&(i="OnFront"),i},e.prototype.classifyPolygon=function(e,t){var i="Unknown",o=t.points;if(null==o)return i;for(var r=0,n=0,a=0,l=e.normal,s=e.d,h=0,c=o.length;h<c;h++){var d=-s-gc.vector3DAdd(o[h],l);if(d>this.epsilon?r++:d<-this.epsilon?n++:a++,r>0&&n>0)break}return i=a===o.length?"OnPlane":n+a===o.length?"ToRight":r+a===o.length?"ToLeft":"Unknown"},e.prototype.splitPolygon=function(e,t){var i=[],o=[];if(null!=e.points){for(var r=[],n=[],a=[],l=void 0,s=void 0,h=e.points.length,c=0;c<h;c++){var d=e.points[c],p=e.points[this.getNext(c+1,h)],u=this.classifyPoint(d,t),g=this.classifyPoint(p,t),m=this.vector3DIndexClassification(d,r.length,u);if(r.push(m),u!==g&&"OnPlane"!==u&&"OnPlane"!==g){var y=gc.vector3DMinus(d,p),f=gc.vector3DMinus(gc.vector3DStarMultiply(t.normal,-t.d),p),v=gc.vector3DAdd(f,t.normal)/gc.vector3DAdd(t.normal,y),b=gc.vector3DPlus(p,gc.vector3DStarMultiply(y,v)),x=this.vector3DIndexClassification(b,r.length,"OnPlane");r.push(x),n.push(x),a.push(x)}else if("OnPlane"===u){var S=e.points[this.getNext(c-1,h)],C=this.classifyPoint(S,t);if(C===g)continue;if("OnPlane"!==C&&"OnPlane"!==g)n.push(m),a.push(m);else if("OnPlane"===C)switch(g){case"OnBack":n.push(m);break;case"OnFront":a.push(m)}else if("OnPlane"===g)switch(C){case"OnBack":n.push(m);break;case"OnFront":a.push(m)}}}if(0!==a.length||0!==n.length){for(c=0;c<n.length-1;c+=2){var F=n[c],w=n[c+1];F.cuttingBackPoint=!0,w.cuttingBackPoint=!0,F.alterCuttingBackPairIndex=w.index,w.alterCuttingBackPairIndex=F.index}for(c=0;c<a.length-1;c+=2){var L=a[c],P=a[c+1];L.cuttingFrontPoint=!0,P.cuttingFrontPoint=!0,L.alterCuttingFrontPairIndex=P.index,P.alterCuttingFrontPairIndex=L.index}for(c=0;c<n.length-1;c++)if(!(F=n[c]).alreadyCutBack&&(l=this.cutOutBackPolygon(r,F)).length>2){var A=fc.polygon3D(l,e);i.push(rc({},A))}for(c=0;c<a.length-1;c++)if(!(w=a[c]).alreadyCutFront&&(s=this.cutOutFrontPolygon(r,w)).length>2){var M=fc.polygon3D(s,e);o.push(rc({},M))}}}else i.push(e),o.push(e);return{backPolygon:i,frontPolygon:o}},e.prototype.cutOutFrontPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutFront=!0,i.push(o.vector);var r=e[o.alterCuttingFrontPairIndex];if(o.cuttingFrontPoint)if(r.alreadyCutFront){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"!==n.result||n.alreadyCutFront){if("OnFront"!==a.result||a.alreadyCutFront)return i;o=a}else o=n}else o=r;else{var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"===n.result||n.alreadyCutFront){if("OnBack"===a.result||a.alreadyCutFront)return i;o=a}else o=n}}return null},e.prototype.cutOutBackPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutBack=!0,i.push(o.vector);var r=e[o.alterCuttingBackPairIndex];if(o.cuttingBackPoint)if(r.alreadyCutBack){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"!==n.result||n.alreadyCutBack){if("OnBack"!==a.result||a.alreadyCutBack)return i;o=a}else o=n}else o=r;else{var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"===n.result||n.alreadyCutBack){if("OnFront"===a.result||a.alreadyCutBack)return i;o=a}else o=n}}return null},e.prototype.build=function(e){if(e){var t=e;if(t.length<1)return null;var i={back:null,front:null,plane:null},o=t[0];i.plane=o;for(var r=[],n=[],a=1,l=t.length;a<l;a++){var s=t[a];if(s!==o)switch(this.classifyPolygon(o,s)){case"OnPlane":case"ToRight":n.push(s);break;case"ToLeft":r.push(s);break;case"Unknown":if(!s.element||"line"!==s.element.tag&&"text"!==s.element.tag){for(var h=this.splitPolygon(s,o),c=0;c<h.backPolygon.length;c++)h.backPolygon[c].name=h.backPolygon[c].name+"-back",r.push(h.backPolygon[c]);for(var d=0;d<h.frontPolygon.length;d++)h.frontPolygon[d].name=h.frontPolygon[d].name+"-front",n.push(h.frontPolygon[d])}else r.push(s)}}return r.length>0&&(i.back=this.build(r)),n.length>0&&(i.front=this.build(n)),i}return this.build(this.chart.polygons)},e}(),pc=function(){function e(){}return e.prototype.getStringBuilder=function(){var e=[],t=0;return{append:function(i){return e[t++]=i,this},remove:function(t,i){return e.splice(t,i||1),this},insert:function(t,i){return e.splice(t,0,i),this},toString:function(t){return e.join(t||"")}}},e.prototype.hexToValue=function(e){var t,i;return 0===e.indexOf("rgba(")?(i=e.slice(5,-1).split(","),i?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10),alpha:parseFloat(i[3])}:null):0===e.indexOf("rgb(")?(i=e.slice(4,-1).split(","),i?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10)}:null):(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),t?{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16)}:null)},e.prototype.hexColor=function(e){var t=e.red,i=e.green,o=e.blue;if(e.alpha)return"rgba("+t.toString()+","+i.toString()+","+o.toString()+","+e.alpha+")";var r=[t.toString(16),i.toString(16),o.toString(16)];return r.forEach(function(e,t){1===e.length&&(r[t]="0"+e)}),"#"+r.join("").toUpperCase()},e.prototype.checkColorFormat=function(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1},e.prototype.drawText=function(e,t,o,r){var n=document.getElementById(e.id);if(null===n&&(n=document.createElementNS("http://www.w3.org/2000/svg","text")),t.length>1&&"string"!=typeof t)for(var a=0,l=0;l<t.length;l++){var s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.textContent=t[l],s.setAttribute("x",String(e.x)),s.setAttribute("dy",String(a)),n.appendChild(s),a=i.measureText(t[l],o,r.themeStyle.axisLabelFont).height}else n.textContent=t;return n=r.svgRenderer.setElementAttributes(e,n)},e.prototype.transform3DToVisible=function(e,t,i,o){if(null!=e.xAxis&&null!=e.yAxis){"Logarithmic"===e.xAxis.valueType&&t>0&&(t=Math.log(t)/Math.log(10));var r=e.yAxis.logBase;if("Logarithmic"===e.yAxis.valueType&&i>0&&(i=Math.log(i)/Math.log(r)),o.requireInvertedAxis){var n=o.chartAxisLayoutPanel.seriesClipRect.x,a=o.chartAxisLayoutPanel.seriesClipRect.y;return{x:n+e.yAxis.rect.width*$t(i,e.yAxis),y:a+e.xAxis.rect.height*(1-$t(t,e.xAxis))}}var n=e.xAxis.rect.x,l=e.yAxis.rect.y;return{x:n+Math.round(e.xAxis.rect.width*$t(t,e.xAxis)),y:l+Math.round(e.yAxis.rect.height*(1-$t(i,e.yAxis)))}}return{x:0,y:0}},e}(),uc=function(){function e(){this.epsilon=1e-5,this.normal={x:0,y:0,z:0},this.vector=new lc(0,0,0),this.vectorPoints=[],this.matrixObj=new sc,this.tabIndex=!0}return e.prototype.polygon3D=function(e,t,i,o,r,n,a,l,s,h){if(3===arguments.length)return this.calculateNormal(e,t,i),null;if(2===arguments.length)return this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints),(d=t).normal=this.normal,d.points=e,d.vectorPoints=this.vectorPoints,d.isSplit=!0,d.d=this.d,d;this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints);var c={tag:"path",parent:s},d={normal:this.normal,points:e,vectorPoints:this.vectorPoints,index:i,tag:t,name:l||null,strokeThickness:r,opacity:n,fill:a,d:this.d,text:h||"",polygonElement:c};return 1!==arguments.length&&(d.polygonElement=c),d},e.prototype.createLine=function(e,t,i,o,r,n){var a=e.width,l=[];return l[0]=this.vector.vector3D(t,i,n),l[1]=this.vector.vector3D(t+a,r+a,n),l[2]=this.vector.vector3D(o,r,n),this.line3D(e,l)},e.prototype.line3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.text3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.createCylinder=function(e,t,i,o,r,n,a,l,s,h,c){var d,p,u,g,m=0,y=24,f=360/y,v=Math.PI/180,b=(e.z+t.z)/2,x=[],S=[],C=[],F=[],w=t.y-e.y<t.z-e.z?(t.y-e.y)/2:(t.z-e.z)/2,L=t.x-e.x<t.z-e.z?(t.x-e.x)/2:(t.z-e.z)/2,P=(e.x+t.x)/2,A=(e.y+t.y)/2;switch(r){case"Bar":case"StackingBar":case"StackingBar100":for(y++;y--;)p=A+w*Math.cos(m*f*v),u=b+w*Math.sin(m*f*v),S[m]={Y:p,Z:u},C.push(this.vector.vector3D(e.x,S[m].Y,S[m].Z)),F.push(this.vector.vector3D(t.x,S[m].Y,S[m].Z)),m>0&&(g=[this.vector.vector3D(e.x,S[m-1].Y,S[m-1].Z),this.vector.vector3D(t.x,S[m-1].Y,S[m-1].Z),this.vector.vector3D(t.x,S[m].Y,S[m].Z),this.vector.vector3D(e.x,S[m].Y,S[m].Z)],x[m+1]=this.polygon3D(g,i,o,a,0,s,a,"-"+(m+1).toString()+"-"+h,c),vc.addVisual(x[m+1],i)),m++;break;case"Column":case"StackingColumn":case"StackingColumn100":for(y++;y--;)d=P+L*Math.cos(m*f*v),u=b+L*Math.sin(m*f*v),S[m]={Y:d,Z:u},C.push(this.vector.vector3D(S[m].Y,e.y,S[m].Z)),F.push(this.vector.vector3D(S[m].Y,t.y,S[m].Z)),m>0&&(g=[this.vector.vector3D(S[m-1].Y,e.y,S[m-1].Z),this.vector.vector3D(S[m-1].Y,t.y,S[m-1].Z),this.vector.vector3D(S[m].Y,t.y,S[m].Z),this.vector.vector3D(S[m].Y,e.y,S[m].Z)],x[m+1]=this.polygon3D(g,i,o,a,0,s,a,"-"+(m+1).toString()+"-"+h,c),vc.addVisual(x[m+1],i)),m++}return x[0]=this.polygon3D(F,i,o,n,0,s,a,"-0-"+h,c),x[1]=this.polygon3D(C,i,o,n,l,s,a,"-1-"+h,c),vc.addVisual(x[0],i),vc.addVisual(x[1],i),x},e.prototype.createBox=function(e,t,i,o,r,n,a,l,s,h,c,d){var p=[],u=[this.vector.vector3D(e.x,e.y,e.z),this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(t.x,t.y,e.z),this.vector.vector3D(e.x,t.y,e.z)],g=[this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(e.x,t.y,t.z)],m=[this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(e.x,e.y,e.z)],y=[this.vector.vector3D(e.x,t.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(t.x,t.y,e.z),this.vector.vector3D(e.x,t.y,e.z)],f=[this.vector.vector3D(e.x,e.y,e.z),this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(e.x,t.y,t.z),this.vector.vector3D(e.x,t.y,e.z)],v=[this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(t.x,t.y,e.z)];return h?(p[0]=this.polygon3D(u,i,o,r,a,l,n,"-0-"+h,c,d),p[1]=this.polygon3D(g,i,o,r,a,l,n,"-1-"+h,c,d),p[2]=this.polygon3D(m,i,o,r,a,l,n,"-2-"+h,c,d),p[3]=this.polygon3D(y,i,o,r,a,l,n,"-3-"+h,c,d),p[4]=this.polygon3D(f,i,o,r,a,l,n,"-4-"+h,c,d),p[5]=this.polygon3D(v,i,o,r,a,l,n,"-5-"+h,c,d)):(p[0]=this.polygon3D(u,i,o,r,a,l,n,"-0-"+o,c,d),p[1]=this.polygon3D(g,i,o,r,a,l,n,"-1-"+o,c,d),p[2]=this.polygon3D(m,i,o,r,a,l,n,"-2-"+o,c,d),p[3]=this.polygon3D(y,i,o,r,a,l,n,"-3-"+o,c,d),p[4]=this.polygon3D(f,i,o,r,a,l,n,"-4-"+o,c,d),p[5]=this.polygon3D(v,i,o,r,a,l,n,"-5-"+o,c,d)),s?(vc.addVisual(p[0],i),vc.addVisual(p[1],i),vc.addVisual(p[2],i),vc.addVisual(p[3],i),vc.addVisual(p[4],i),vc.addVisual(p[5],i)):(vc.addVisual(p[5],i),vc.addVisual(p[4],i),vc.addVisual(p[0],i),vc.addVisual(p[1],i),vc.addVisual(p[2],i),vc.addVisual(p[3],i)),p},e.prototype.calculateNormal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=3){var i=e[0],o=e[1],r=e[2],n=this.vector.vector3DMinus(i,o),a=this.vector.vector3DMinus(r,o),l=this.vector.vector3DMultiply(n,a),s=this.vector.getLength(l);s<this.epsilon&&(s=1),this.normal=this.vector.vector3D(l.x/s,l.y/s,l.z/s),this.d=-(this.normal.x*i.x+this.normal.y*i.y+this.normal.z*i.z),e[3]&&(e[3].normal=this.normal,e[3].d=this.d)}else{var h=e[0];this.calculateNormal(h[0],h[1],h[2],e[1]);for(var c=3;c<h.length&&this.test();c++)this.calculateNormal(h[c],h[0],h[c/2])}},e.prototype.test=function(){return!this.vector.isValid(this.normal)},e.prototype.transform=function(e,t){if(null!=t.points){for(var i=0;i<t.points.length;i++)t.vectorPoints[i]=t.points[i]=mc.getMatrixVectorMultiple(e,t.points[i]);this.calculateNormal(t.vectorPoints,t)}},e.prototype.getNormal=function(e,t){var i;if(null!=t){i=this.vector.getNormal(this.matrixObj.getMatrixVectorMultiple(e,t[0]),mc.getMatrixVectorMultiple(e,t[1]),this.matrixObj.getMatrixVectorMultiple(e,t[2]));for(var o=3;o<t.length&&!this.vector.isValid(i)&&t[o/2];o++){var r=mc.getMatrixVectorMultiple(e,t[o]),n=mc.getMatrixVectorMultiple(e,t[0]),a=mc.getMatrixVectorMultiple(e,t[o/2]);i=this.vector.getNormal(r,n,a)}}else i=mc.getMatrixVectorAnd(e),this.vector.normalize();return i},e.prototype.createTextElement=function(e,t,i,o){var r=[],n=e.x,a=e.y,l=t.width,s=t.height;return r[0]=this.vector.vector3D(n,a,e.z),r[1]=this.vector.vector3D(n+l,a+s+o,e.z),r[2]=this.vector.vector3D(n+l+i,a+s+o,e.z),this.text3D(t,r)},e.prototype.drawLine=function(e,t){var i=ac.transform;if(null!=i){var o=t.transform3D.toScreen(e.vectorPoints[0],i),r=t.transform3D.toScreen(e.vectorPoints[2],i),n={id:e.element.id,x1:o.x,y1:o.y,x2:r.x,y2:r.y,"stroke-dasharray":"","stroke-width":e.element.width,stroke:e.element.stroke,opacity:e.element.opacity};if(t.chart3D.appendChild(t.svgRenderer.drawLine(n)),t.previousID&&t.isTouch){var a=document.getElementById(t.previousID),l=document.getElementById(n.id);a&&l&&l.parentNode.insertBefore(l,a.nextSibling)}t.previousID=n.id}},e.prototype.drawTemplate=function(e,t){var i=e.element,o=ac.transform;if(null!=o){var r=i.label,n=t.transform3D.toScreen(e.vectorPoints[0],o);t.dataLabel3DModule.createDataLabelTemplate(r.series.dataLabelElement,r.series,r.series.dataLabel,r.series.visiblePoints[r.pointIndex],i.argsData,r.pointIndex,!1,n)}},e.prototype.drawText=function(e,t){var o=e.element,r=ac.transform;if(null!=r){var n=t.transform3D.toScreen(e.vectorPoints[0],r),a=n.x,l=n.y;if("text"===o.tag){var s={id:o.id,x:a,y:l,fill:o.font.color||o.fill,"font-size":o.font.size,"font-family":o.font.fontFamily,"font-style":o.font.fontStyle,"font-weight":o.font.fontWeight,opacity:o.font.opacity,"text-anchor":o.textAnchor,cursor:"default",transform:o.angle?"rotate("+o.angle+","+a+","+l+")":""},h=t.svg3DRenderer.drawText(s,o.label.text,e.element.font,t);o.id.indexOf("-axis-title")>-1&&h.setAttribute("aria-hidden","true"),t.chart3D.append(h)}else{var c=o.series,d=c.yAxis&&c.yAxis.labelFormat?c.yAxis.labelFormat:"",p=o.point.text?o.point.text:o.point.y+d.substring(d.indexOf("}")+1),u=i.measureText(p,c.dataLabel.font,t.themeStyle.datalabelFont),g=c.dataLabel.margin,m=u.width+g.left+g.right,y=u.height+g.top+g.bottom,f={x:n.x,y:n.y},v=f.x-g.left/2+g.right/2,b=f.y-g.top/2-y/g.top+g.bottom/2,x=c.index;this.dataLabelSymbol(x,c,o.pointIndex,v,b,m,y,t)}}},e.prototype.dataLabelSymbol=function(e,t,i,o,r,n,a,l){var s="M "+(o+-n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+-a/2)+" z",h={id:l.element.id+"-svg-data-label-series-"+e+"-point-"+i,fill:t.dataLabel.fill,"stroke-width":t.dataLabel.border.width,"stroke-dasharray":t.dataLabel.border.dashArray,stroke:t.dataLabel.border.color,opacity:t.dataLabel.opacity,visibility:"",d:s},c=l.svgRenderer.drawPath(h);l.chart3D.append(c)},e.prototype.draw=function(e,t){if(!(null==e.vectorPoints||e.vectorPoints.length<=0)){var i=ac.transform,o=t.svg3DRenderer.getStringBuilder(),r=e.fill;t.svg3DRenderer.checkColorFormat(r)||"transparent"!==r&&(r=Re(r));var n={StartPoint:null};if(null!=i){n.StartPoint=t.transform3D.toScreen(e.vectorPoints[0],i),o.append("M "+n.StartPoint.x+" "+n.StartPoint.y+" ");for(var a=0;a<e.vectorPoints.length;a++){var l=t.transform3D.toScreen(e.vectorPoints[a],i);o.append("L "+l.x+" "+l.y+" ")}}var s=o.toString(),h="Light",c=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,0,1)))-1),d=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,1,0)))-1),p=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(1,0,0)))-1);!e.name||e.name.indexOf("-wall-brush")>-1||(c===p?(h="ZLight",r=this.applyZLight(r,t)):d===c||0!==c&&d<c?(h="XLight",r=this.applyXLight(r,t)):c<0?(h="ZLight",r=this.applyZLight(r,t)):h="Light");var u={id:t.element.id+"-svg"+e.name,name:h,fill:r,stroke:"","stroke-width":e.strokeThickness,opacity:e.opacity,d:s},g=t.svgRenderer.drawPath(u);if(e.text&&(g.setAttribute("aria-label",e.text),g.setAttribute("role","img")),e.name&&e.name.indexOf("-wall-brush")>-1&&g.setAttribute("aria-hidden","true"),g.id.indexOf("0-region-series-0-point-0")>-1){if(this.tabIndex)g.setAttribute("tabindex","0");else{var m=e.polygonElement.parent.querySelectorAll('[id*="0-region-series-0-point-0"]');m.length>0&&m[m.length-1].removeAttribute("tabindex"),g.setAttribute("tabindex","0")}this.tabIndex=!1}if(be(!1,e.polygonElement.parent,g,t.redraw,!0,"x","y",null,s),t.previousID&&t.isTouch){var y=document.getElementById(t.previousID),f=document.getElementById(u.id);y&&f&&f.parentNode.insertBefore(f,y.nextSibling)}t.previousID=u.id}},e.prototype.applyXLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.7*i.red).toString(),10),i.green=parseInt((.7*i.green).toString(),10),i.blue=parseInt((.7*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e.prototype.applyZLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.9*i.red).toString(),10),i.green=parseInt((.9*i.green).toString(),10),i.blue=parseInt((.9*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e}(),gc=new lc(0,0,0),mc=new sc,yc=new dc,fc=new uc,vc=new cc,bc=function(){function e(){}return e.prototype.update3DWall=function(e){this.updateBackWall(e);for(var t=0;t<e.axisCollections.length;t++){var i=e.axisCollections[t],o=i.opposedPosition||i.isAxisOpposedPosition;"vertical"===i.orientation.toLowerCase()?o?this.updateRightWall(e):this.updateLeftWall(e):o?this.updateTopWall(e):this.updateBottomWall(e)}},e.prototype.updateTopWall=function(e){var t=0,i=e.chartAxisLayoutPanel.seriesClipRect,o=i.y;t=e.wallSize<o?o-e.wallSize:-(e.wallSize-o);for(var r=e.vector.vector3D(i.x+i.width,-e.depth,o-.1),n=e.vector.vector3D(i.x,-.1,t),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"top-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.tilt(Math.PI/2),a[l])},e.prototype.updateRightWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i=t.x+t.width,o={left:-e.depth,top:t.y,bottom:t.height+t.y,right:0},r=e.vector.vector3D(o.left,o.top,i+1.5),n=e.vector.vector3D(o.right,o.bottom,i+e.wallSize),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"right-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.turn(-Math.PI/2),a[l])},e.prototype.updateBackWall=function(e){var t=e.chartAxisLayoutPanel.seriesClipRect,i=e.vector.vector3D(t.x,t.y,0===e.depth?1.5:e.depth+e.wallSize),o=e.vector.vector3D(t.x+t.width,t.y+t.height,0===e.depth?1.5:e.depth);e.polygon.createBox(i,o,e,0,e.wallColor||e.themeStyle.backWallColor,e.wallColor||e.themeStyle.backWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.25,!1,"back-wall-brush",e.chart3D)},e.prototype.updateLeftWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i={left:-e.depth,top:t.y,bottom:t.height+t.y,right:0},o=t.x,r=e.vector.vector3D(i.left,i.top,o-.1),n=e.vector.vector3D(i.right,i.bottom,o-e.wallSize),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"left-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.turn(-Math.PI/2),a[l])},e.prototype.updateBottomWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i=t.y+t.height,o=e.vector.vector3D(t.x+t.width,-e.depth,e.wallSize+i),r=e.vector.vector3D(t.x,-.1,i+1),n=e.polygon.createBox(r,o,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"bottom-wall-brush",e.chart3D),a=0;a<n.length;a++)e.polygon.transform(e.matrixObj.tilt(Math.PI/2),n[a])},e}(),xc=function(){function e(){}return e.prototype.drawAxes=function(e,t,i){t.majorGridLines.width&&this.drawGridLines3D(t,i,e),t.visible&&t.internalVisibility&&t.majorTickLines.width&&this.renderTicks3D(t,t.majorTickLines.height,t.majorTickLines.width,i,e),t.visible&&t.internalVisibility&&(this.drawAxisLabel(t,i,e),this.drawAxisTitle(t,i,e))},e.prototype.drawAxisTitle=function(e,t,o){if(e.title){var r={size:e.titleStyle.size||t.themeStyle.axisTitleFont.size,fontWeight:e.titleStyle.fontWeight||t.themeStyle.axisTitleFont.fontWeight,fontStyle:e.titleStyle.fontStyle||t.themeStyle.axisTitleFont.fontStyle,fontFamily:e.titleStyle.fontFamily||t.themeStyle.axisTitleFont.fontFamily,color:e.titleStyle.color,opacity:e.titleStyle.opacity},n=e.opposedPosition||e.isAxisOpposedPosition,a={width:t.availableSize.width,height:t.availableSize.height},l=t.transform3D.transform3D(a);l.viewingArea=a,l.rotation=0,l.tilt=0,l.depth=100,l.perspectiveAngle=90,t.transform3D.transform(l);if("horizontal"===e.orientation.toLowerCase()){var s=0,h=i.measureText(e.title,e.titleStyle,t.themeStyle.axisTitleFont).height/2;s=e.titleRotation?e.titlePadding+10+e.labelPadding+e.titleSize.height/2:e.titlePadding+h+e.labelPadding+10;var c=e.maxLabelSize.height+s,d=(m={text:e.title,location:{x:e.rect.width/2,y:c+e.majorTickLines.height+t.wallSize}}).location.x+e.rect.x,p=n?e.rect.y-m.location.y:m.location.y+e.rect.y;(y={width:0,height:0,angle:e.titleRotation?e.titleRotation:0,label:m,textAnchor:"middle",tag:"text",font:r,id:t.element.id+"-svg-axis-title-"+o,child:t.chart3D}).font.color=y.font.color?y.font.color:t.themeStyle.axisTitle,y.font.fontFamily=y.font.fontFamily?y.font.fontFamily:t.themeStyle.axisTitleFont.fontFamily,t.graphics.addVisual(t.polygon.createTextElement(t.vector.vector3D(d,p,0),y,10,10),t)}else{var u=i.measureText(e.title,e.titleStyle,t.themeStyle.axisTitleFont),s=0;s=e.titleRotation?e.labelPadding+e.titlePadding+e.titleSize.width/2:e.titlePadding+e.labelPadding;var d=n?e.rect.x+(10+e.maxLabelSize.width+e.majorTickLines.height+t.wallSize+s):e.rect.x-(10+e.maxLabelSize.width+e.majorTickLines.height+t.wallSize+s),g=(null==e.titleRotation?n?90:-90:e.titleRotation)%360,m={text:e.title,location:{x:u.width/2,y:0}},p=m.location.y+(e.rect.y+e.rect.height)+e.rect.height/2*-1,y={width:u.width,height:u.height,angle:g,label:m,textAnchor:"middle",tag:"text",font:r,id:t.element.id+"-svg-axis-title-"+o,child:t.chart3D};y.font.color=y.font.color?y.font.color:t.themeStyle.axisTitle,y.font.fontFamily=y.font.fontFamily?y.font.fontFamily:t.themeStyle.axisTitleFont.fontFamily,t.graphics.addVisual(t.polygon.createTextElement(t.vector.vector3D(d,p,0),y,10,10),t)}}},e.prototype.textTrim=function(e,t,o,r){var n,a=t.length;if(i.measureText(t,o,r).width>e){for(var l=a-1;l>=0;--l)if(n=t.substring(0,l)+"...",i.measureText(n,o,r).width<=e)return n;return""}return t},e.prototype.multipleRows=function(e,t,o,r,n){for(var a,l,s=[],h=e-1;h>=0;h--)a=r.visibleLabels[h],l=i.measureText(a.text,r.labelStyle,n),t<$t(h,r)*r.rect.width+r.rect.x+l.width/2?(a.index=a.index?a.index:0,s.push(a.index),o.index=o.index>a.index?o.index:a.index+1):o.index=s.indexOf(a.index)>-1?o.index:a.index},e.prototype.drawAxisLabel=function(e,o,r){for(var n,a=[],l=e.visibleLabels.length,s=o.chartAxisLayoutPanel.seriesClipRect,h=e.opposedPosition||e.isAxisOpposedPosition,c=e.angle?5:10,d=s.y+(!h&&s.height),p=s.x+(h&&s.width),g=0;g<l;g++)if(!t.isNullOrUndefined(e.visibleLabels[g].text)){var m=0,y=0,f=void 0,v=void 0,b=i.measureText(e.visibleLabels[g].text,e.labelStyle,o.themeStyle.axisLabelFont),x=(e.visibleLabels[g].value-e.visibleRange.min)/e.visibleRange.delta;if(x=e.isInversed||e.isAxisInverse?1-x:x,x=isNaN(x)?0:x,"horizontal"===e.orientation.toLowerCase())m=Math.round(e.rect.width*x)+s.x+e.plotOffset,y=h?d-o.wallSize-e.majorTickLines.height-e.labelPadding-c/2:d+o.wallSize+e.majorTickLines.height+c+e.labelPadding,v="middle";else{y=Math.round(e.plotOffset+e.rect.y+b.height/4+e.rect.height*(1-x));var S=0;S=90===e.labelRotation||-90===e.labelRotation||270===e.labelRotation||-270===e.labelRotation?2*c:c,m=h?e.rect.x+e.majorTickLines.height+S+e.labelPadding:p-o.wallSize-e.majorTickLines.height-S+e.labelPadding,v=h?e.isRTLEnabled?"end":"start":e.isRTLEnabled?"start":"end"}a.push({x:m,y:y,size:b});var C=e.rect.width/e.visibleLabels.length-5,F=a[g];if((F.x>e.rect.x&&0===g||F.x+F.size.width/2>e.rect.x+e.rect.width&&g===e.visibleLabels.length-1)&&"Trim"!==e.labelIntersectAction&&e.labelIntersectAction.indexOf("wrap")<0){if("Hide"===e.edgeLabelPlacement)continue;"Shift"===e.edgeLabelPlacement&&(0===g?F.x=m=e.rect.x+F.size.width/2:g===e.visibleLabels.length-1&&(F.x=m=e.rect.x+e.rect.width-F.size.width/2))}if("horizontal"===e.orientation.toLowerCase())if(e.labelRotation)n=e.labelRotation,y+=(P=u(e.labelStyle,e.visibleLabels[g].text,n,o,o.themeStyle.axisLabelFont)).height/2;else if("Trim"===e.labelIntersectAction)e.visibleLabels[g].text=this.textTrim(C,e.visibleLabels[g].text,e.labelStyle,o.themeStyle.axisLabelFont);else if(!e.angle||"Rotate45"!==e.labelIntersectAction&&"Rotate90"!==e.labelIntersectAction){if("MultipleRows"===e.labelIntersectAction)f=F.x,f-=b.width/2,this.multipleRows(g,f,e.visibleLabels[g],e,o.themeStyle.axisLabelFont),y=e.visibleLabels[g].index?y+e.visibleLabels[g].index*(b.height+5):y;else if("Hide"===e.labelIntersectAction){for(var w=!1,L=0;L<g;L++)if(a[L].x+a[L].size.width/2>=a[g].x-a[g].size.width/2){w=!0;break}if(w)continue}}else{var P=u(e.labelStyle,e.visibleLabels[g].text,e.angle,o,o.themeStyle.axisLabelFont);y+=P.height/2}var A={size:e.visibleLabels[g].labelStyle.size,fontWeight:e.visibleLabels[g].labelStyle.fontWeight,fontStyle:e.visibleLabels[g].labelStyle.fontStyle,fontFamily:e.visibleLabels[g].labelStyle.fontFamily,color:e.visibleLabels[g].labelStyle.color,opacity:e.visibleLabels[g].labelStyle.opacity},M={width:b.width,height:b.height,label:e.visibleLabels[g],textAnchor:v,tag:"text",font:A,id:o.element.id+"-"+r+"-axis-label-"+g,child:o.chart3D,angle:e.angle};M.font.color=M.font.color?M.font.color:o.themeStyle.axisLabel,M.font.fontFamily=M.font.fontFamily?M.font.fontFamily:o.themeStyle.axisLabelFont.fontFamily,o.graphics.addVisual(o.polygon.createTextElement(o.vector.vector3D(m,y,0),M,10,10),o)}},e.prototype.renderTicks3D=function(e,t,i,o,r){var n,a=e.visibleLabels.length,l=o.chartAxisLayoutPanel.seriesClipRect,s="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0;a+="Category"===e.valueType&&a>0&&"BetweenTicks"===e.labelPlacement?1:0;for(var h,c=0;c<a;c++){var d=0,p=0,u=0,g=0,m=((h="DateTimeCategory"!==e.valueType?e.visibleLabels[c]?e.visibleLabels[c].value-s:e.visibleLabels[c-1].value+e.visibleRange.interval-s:e.visibleLabels[c].value?e.visibleLabels[c].value-s:e.visibleRange.max)-e.visibleRange.min)/e.visibleRange.delta;m=e.isInversed||e.isAxisInverse?1-m:m,m=isNaN(m)?0:m,"horizontal"===e.orientation.toLowerCase()?p=d=Math.round(e.rect.width*m)+l.x+e.plotOffset:u=g=Math.round(e.plotOffset+e.rect.height*(1-m))+e.rect.y;var y=this.calculatePosition3D(e,t,i,d,u,p,g,o),f={width:e.majorTickLines.width,opacity:1,stroke:e.majorTickLines.color||o.themeStyle.majorTickLine,child:o.chart3D,tag:"line",id:""};if(f.id=o.element.id+"-"+r+"-major-tick-lines-"+c,o.graphics.addVisual(o.polygon.createLine(f,y.x1,y.y1,y.x2,y.y2,0),o),e.minorGridLines.width&&e.minorTicksPerInterval>0&&c<a-1){n=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(var v=0;v<e.minorTicksPerInterval;v++){m=$t(e.visibleLabels[c].value+n*(v+1),e),m=isNaN(m)?0:m,"horizontal"===e.orientation.toLowerCase()?d=p=Math.round(e.plotOffset+l.width*m+l.x):u=g=Math.round(e.plotOffset+l.height*(1-m))+e.rect.y;var b=this.calculatePosition3D(e,t,i,d,u,p,g,o),x={width:e.minorTickLines.width,opacity:.6,stroke:e.minorTickLines.color||o.themeStyle.minorTickLine,child:o.chart3D,tag:"line",id:""};x.id=o.element.id+"-"+r+"-minor-tick-lines-"+c+"-"+v,o.graphics.addVisual(o.polygon.createLine(x,b.x1,b.y1,b.x2,b.y2,0),o)}}}},e.prototype.calculatePosition3D=function(e,t,i,o,r,n,a,l){var s=e.opposedPosition||e.isAxisOpposedPosition,h=l.chartAxisLayoutPanel.seriesClipRect,c=h.y+(!s&&h.height),d=h.x+(s&&h.width);if("horizontal"===e.orientation.toLowerCase()){r=0,a=s?t:r+t;var p=s?c-l.wallSize-t:c+l.wallSize-t/2;r+=p,a+=p,o=n=o}else{o=0,n=s?o+t:t;var u=s?d+l.wallSize:d-l.wallSize-t;o+=u,n+=u,r=a=r}return{x1:o,y1:r,x2:n,y2:a}},e.prototype.drawGridLines3D=function(e,t,i){if(null!=e){var o,r,n,a,l,s,h=e.visibleLabels.length,c=e.opposedPosition||e.isAxisOpposedPosition,d=e.orientation,p="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0;h+="Category"===e.valueType&&h>0&&"BetweenTicks"===e.labelPlacement?1:0;var u=t.chartAxisLayoutPanel.seriesClipRect;if("horizontal"===d.toLowerCase()){x=void 0;for(x=0;x<h;x++){S=$t(s="DateTimeCategory"!==e.valueType?e.visibleLabels[x]?e.visibleLabels[x].value-p:e.visibleLabels[x-1].value+e.visibleRange.interval-p:e.visibleLabels[x].value?e.visibleLabels[x].value-p:e.visibleRange.max,e);S=isNaN(S)?0:S,n=r=Math.round(e.rect.width*S)+u.x+e.plotOffset,a=u.y,l=u.y+u.height;var g=t.depth>2?t.depth-2:1,m=u.y+(!c&&u.height);(C={opacity:1,width:e.majorGridLines.width,stroke:e.majorGridLines.color||t.themeStyle.majorGridLine,child:t.chart3D,tag:"line",id:""}).id=t.element.id+"-"+i+"-grid-lines-"+x,t.graphics.addVisual(t.polygon.createLine(C,r,a,n,l,g),t);var y={opacity:C.opacity,width:C.width,stroke:C.stroke,child:C.child,tag:C.tag,id:""};y.id=C.id+"-parallel",y.id=t.element.id+"-"+i+"-parallel-grid-lines-"+x;L=t.polygon.createLine(y,n,0,n,-g,m);if(t.polygon.transform(t.matrixObj.tilt(Math.PI/2),L),t.graphics.addVisual(L,t),e.minorGridLines.width&&e.minorTicksPerInterval>0&&x<h-1){o=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(P=0;P<e.minorTicksPerInterval;P++){S=$t(e.visibleLabels[x].value+o*(P+1),e),S=isNaN(S)?0:S,n=r=Math.round(u.width*S)+u.x,a=u.y,l=u.y+u.height;var f={opacity:.6,width:e.minorGridLines.width,stroke:e.minorGridLines.color||t.themeStyle.minorGridLine,child:t.chart3D,tag:"line",id:""};f.id=t.element.id+"-"+i+"-minor-grid-lines-"+x+"-"+P,t.graphics.addVisual(t.polygon.createLine(f,r,a,n,l,g),t);var v={opacity:f.opacity,width:f.width,stroke:f.stroke,child:f.child,tag:f.tag,id:""};v.id=t.element.id+"-"+i+"-parallel-minor-grid-lines-"+x+"-"+P;var b=t.polygon.createLine(v,n,0,n,-g,m);t.polygon.transform(t.matrixObj.tilt(Math.PI/2),b),t.graphics.addVisual(b,t)}}}}else for(var x=0;x<h;x++){var S=((s=e.visibleLabels[x]?e.visibleLabels[x].value-p:e.visibleLabels[x-1].value+e.visibleRange.interval-p)-e.visibleRange.min)/e.visibleRange.delta;r=u.x,a=Math.round(e.rect.height*(1-S))+.5,a+=e.rect.y,n=r+u.width,l=a;var g=t.depth>2?t.depth-2:1,C={opacity:1,width:e.majorGridLines.width,stroke:e.majorGridLines.color||t.themeStyle.majorGridLine,axisName:e.name,child:t.chart3D,tag:"line",id:""};C.id=t.element.id+"-"+i+"-grid-lines-"+x,t.graphics.addVisual(t.polygon.createLine(C,r,a,n,l,g),t);var F=u.x+(c&&u.width+1),w={opacity:C.opacity,width:C.width,stroke:C.stroke,child:C.child,tag:C.tag,id:""};w.id=t.element.id+"-"+i+"-parallel-grid-lines-"+x;var L=t.polygon.createLine(w,-g,l,0,l,F);if(t.polygon.transform(t.matrixObj.turn(-Math.PI/2),L),t.graphics.addVisual(L,t),e.minorGridLines.width&&e.minorTicksPerInterval>0&&x<h-1){o=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(var P=0;P<e.minorTicksPerInterval;P++){var A=$t(e.visibleLabels[x].value+o*(P+1),e);r=u.x,a=Math.round(e.rect.height*(1-A))+.5,a+=e.rect.y,n=r+u.width,l=a;var M={opacity:.6,width:e.minorGridLines.width,stroke:e.minorGridLines.color||t.themeStyle.minorGridLine,axisName:e.name,child:t.chart3D,tag:"line",id:""};M.id=t.element.id+"-"+i+"-minor-grid-lines-"+x+"-"+P,t.graphics.addVisual(t.polygon.createLine(M,r,a,n,l,g),t);var D={opacity:M.opacity,width:M.width,stroke:M.stroke,child:M.child,tag:M.tag,id:""};D.id=t.element.id+"-"+i+"-parallel-minor-grid-lines-"+x+P;var k=t.polygon.createLine(D,-g,l,0,l,F);t.polygon.transform(t.matrixObj.turn(-Math.PI/2),k),t.graphics.addVisual(k,t)}}}}},e}(),Sc=function(){function e(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),e}(),Cc=function(){function e(e){this.isColumn=0,this.isStacking=!1,this.chart=e}return e.prototype.calculateNumericNiceInterval=function(e,i,o){var r=oe(o,e),n=i/r;if(!t.isNullOrUndefined(e.desiredIntervals))return n;for(var a=Math.pow(10,Math.floor(m(n,10))),l=0,s=e.intervalDivs;l<s.length;l++){var h=a*s[l];if(r<i/h)break;n=h}return n},e.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),!e.startFromZero&&this.isColumn>0?(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.max=e.doubleRange.end+e.actualRange.interval,e.doubleRange.start-e.actualRange.interval<0&&e.doubleRange.start>0?e.actualRange.min=0:e.actualRange.min=e.doubleRange.start-(this.isStacking?0:e.actualRange.interval)):(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end)},e.prototype.initializeDoubleRange=function(e){null!==e.minimum?this.min=e.minimum:null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=0),null!==e.maximum?this.max=e.maximum:null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=5),this.min===this.max&&(this.max=e.valueType.indexOf("Category")>-1?this.max:this.min+1),e.doubleRange=new Sc(this.min,this.max),e.actualRange={}},e.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},e.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!te(e))for(var i=0,o=e.series;i<o.length;i++){var r=o[i];r.visible&&(this.paddingInterval=0,t.isNullOrUndefined(r.points)||(e.maxPointLength=r.points.length),e.maxPointLength=r.points.length,(r.type.indexOf("Column")>-1&&"Horizontal"===e.orientation||r.type.indexOf("Bar")>-1&&"Vertical"===e.orientation)&&("Double"!==r.xAxis.valueType&&"DateTime"!==r.xAxis.valueType||"Auto"!==r.xAxis.rangePadding||(this.paddingInterval=.5*Qt(r.xAxis,e.series))),"Horizontal"===e.orientation&&(this.chart.requireInvertedAxis?this.yAxisRange(e,r):this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval)),"Vertical"===e.orientation&&(this.isColumn+=-1!==r.type.indexOf("Column")||-1!==r.type.indexOf("Bar")?1:0,this.isStacking=-1!==r.type.indexOf("Stacking"),this.chart.requireInvertedAxis?this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval):this.yAxisRange(e,r)))}},e.prototype.yAxisRange=function(e,t){this.findMinMax(t.yMin,t.yMax)},e.prototype.findMinMax=function(e,t){(null===this.min||this.min>e)&&(this.min=e),(null===this.max||this.max<t)&&(this.max=t),this.max===this.min&&this.max<0&&this.min<0&&(this.max=0)},e.prototype.applyRangePadding=function(e,t){var i=e.actualRange.min,o=e.actualRange.max;if(!te(e)){var r=e.actualRange.interval,n=e.getRangePadding(this.chart);"Additional"===n||"Round"===n?this.findAdditional(e,i,o,r,t):"Normal"===n?this.findNormal(e,i,o,r,t):this.updateActualRange(e,i,o,r)}e.actualRange.delta=e.actualRange.max-e.actualRange.min,this.calculateVisibleRange(t,e)},e.prototype.updateActualRange=function(e,t,i,o){e.actualRange={min:null!=e.minimum?e.minimum:t,max:null!=e.maximum?e.maximum:i,interval:null!=e.interval?e.interval:o,delta:e.actualRange.delta}},e.prototype.findAdditional=function(e,i,o,r,n){var a,l;if(a=Math.floor(i/r)*r,l=Math.ceil(o/r)*r,"Additional"===e.rangePadding&&(a-=r,l+=r),!t.isNullOrUndefined(e.desiredIntervals)){var s=l-a;r=this.calculateNumericNiceInterval(e,s,n)}this.updateActualRange(e,a,l,r)},e.prototype.findNormal=function(e,t,i,o,r){var n,a,l=t;t<0?(l=0,.365*o>=o+(n=t+.05*t)%o&&(n-=o),n%o<0&&(n=n-o-n%o)):(n=t<5/6*i?0:t-.5*(i-t))%o>0&&(n-=n%o),.365*o>=o-(a=i>0?i+.05*(i-l):i-.05*(i-l))%o&&(a+=o),a%o>0&&(a=a+o-a%o),e.doubleRange=new Sc(n,a),(0===n||n<0&&a<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),a=Math.ceil(a/o)*o),this.updateActualRange(e,n,a,o)},e.prototype.calculateVisibleRange=function(e,t){if(t.visibleRange={max:t.actualRange.max,min:t.actualRange.min,delta:t.actualRange.delta,interval:t.actualRange.interval},t.maximum&&"Vertical"===t.orientation&&"Auto"===t.rangePadding){for(var i=void 0,o=t.visibleRange.min;o<=t.visibleRange.max&&i!==o;o+=t.visibleRange.interval)i=o;i<t.visibleRange.max&&(t.visibleRange.max=i+t.visibleRange.interval)}t.triggerRangeRender(this.chart,t.visibleRange.min,t.visibleRange.max,t.visibleRange.interval)},e.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r=e.visibleRange.min,n=this.getFormat(e),a=null!==n.match("{value}"),l=0,s=0;e.labelFormat&&e.labelFormat.indexOf("n")>-1&&(s=parseInt(e.labelFormat.substring(1,e.labelFormat.length),10)),e.format=i.intl.getNumberFormat({format:a?"":n,useGrouping:i.useGroupingSeparator}),e.startLabel=e.format(e.visibleRange.min),e.endLabel=e.format(e.visibleRange.max),e.visibleRange.interval&&(e.visibleRange.interval+"").indexOf(".")>=0&&(l=(e.visibleRange.interval+"").split(".")[1].length);for(var h;r<=e.visibleRange.max&&h!==r;r+=e.visibleRange.interval)h=r,o=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(r,e.visibleRange)&&ee(i,r,this.formatValue(e,a,n,r),o,e);r&&(r+"").indexOf(".")>=0&&(r+"").split(".")[1].length>10&&(r=(r+"").split(".")[1].length>(s||l)?+r.toFixed(s||l):r)<=e.visibleRange.max&&ee(i,r,this.formatValue(e,a,n,r),o,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},e.prototype.getFormat=function(e){return e.labelFormat?0===e.labelFormat.indexOf("p")&&-1===e.labelFormat.indexOf("{value}")&&e.isStack100?"{value}%":e.labelFormat:e.isStack100?"{value}%":""},e.prototype.formatValue=function(e,t,i,o){var r=o%1?Number(o.toLocaleString().split(",").join("")):o;return t?i.replace("{value}",e.format(r)):i?e.format(o):e.format(r)},e.prototype.getModuleName=function(){return"Double3D"},e}(),Fc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),wc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Lc=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t}return Fc(i,e),i.prototype.computeSize=function(e,t){var i=0;e.visible&&e.internalVisibility&&(i+=e.majorTickLines.height+e.findLabelSize(5,t)),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},wc([t.Property("100%")],i.prototype,"height",void 0),i}(t.ChildProperty),Pc=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t}return Fc(i,e),i.prototype.computeSize=function(e,t){var i=0;e.visible&&e.internalVisibility&&(i+=e.majorTickLines.height+e.findLabelSize(5,t)),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},wc([t.Property("100%")],i.prototype,"width",void 0),i}(t.ChildProperty),Ac=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fc(i,e),wc([t.Property(1)],i.prototype,"width",void 0),wc([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Mc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fc(i,e),wc([t.Property(.7)],i.prototype,"width",void 0),wc([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Dc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fc(i,e),wc([t.Property(0)],i.prototype,"width",void 0),wc([t.Property(5)],i.prototype,"height",void 0),wc([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),kc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fc(i,e),wc([t.Property(0)],i.prototype,"width",void 0),wc([t.Property(5)],i.prototype,"height",void 0),wc([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Rc=function(e){function o(t,o,r,n){var a=e.call(this,t,o,r,n)||this;return a.visibleLabels=[],a.series=[],a.rect=new i.Rect(void 0,void 0,0,0),a.isStack100=!1,a.updatedRect=null,a.isIntervalInDecimal=!0,a.intervalDivs=[10,5,2,1],a.titleCollection=[],a.titleSize=new i.Size(0,0),a.internalVisibility=!0,a.isRTLEnabled=!1,a.angle=a.labelRotation,a}return Fc(o,e),o.prototype.findLabelSize=function(e,o){var r=0,n="Horizontal"===this.orientation;if(this.title){var a=this.titleRotation;if(t.isNullOrUndefined(a)?(this.titleSize=i.measureText(this.title,this.titleStyle,o.themeStyle.axisTitleFont),r=this.titleSize.height+e):(this.titleSize=u(this.titleStyle,this.title,a,o,o.themeStyle.axisTitleFont),r=("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+e),this.rect.width||this.rect.height){var l=n?this.rect.width:this.rect.height;this.titleCollection=Ge(this.title,this.titleStyle,l,o.enableRtl,o.themeStyle.axisTitleFont),r*=this.titleCollection.length}}return r+e+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)},o.prototype.triggerRangeRender=function(e,t,i,o){var r={cancel:!1,axis:this,minimum:t,maximum:i,interval:o};e.trigger("axisRangeCalculated",r),r.cancel||(this.visibleRange={min:r.minimum,max:r.maximum,interval:r.interval,delta:r.maximum-r.minimum})},o.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"!==t)return t;switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100?"Round":"Normal"}return t},o.prototype.getMaxLabelWidth=function(e){var o,r,n=0,a=!1;this.angle=this.labelRotation,this.maxLabelSize=new i.Size(0,0);for(var l,s=this.labelIntersectAction,h=0,d=this.visibleLabels.length;h<d;h++){(r=c((l=this.visibleLabels[h]).originalText))?(l.size=i.measureText(l.originalText.replace(/<br>/g," "),this.labelStyle,e.themeStyle.axisLabelFont),l.breakLabelSize=i.measureText(this.enableTrim?l.text.join("<br>"):l.originalText,this.labelStyle,e.themeStyle.axisLabelFont)):l.size=i.measureText(l.text,this.labelStyle,e.themeStyle.axisLabelFont);var p=r?l.breakLabelSize.width:l.size.width;p>this.maxLabelSize.width&&(this.maxLabelSize.width=p,this.rotatedLabel=l.text);var g=r?l.breakLabelSize.height:l.size.height;if(g>this.maxLabelSize.height&&(this.maxLabelSize.height=g),r&&(l.text=this.enableTrim?l.text:l.originalText.split("<br>")),"None"!==s&&"Hide"!==s&&"Trim"!==s&&("None"!==s||this.angle%360==0)&&"Horizontal"===this.orientation&&this.rect.width>0&&!a){var m=r?l.breakLabelSize.width:l.size.width;switch(o=$t(l.value,this)*this.rect.width+this.rect.x,o-=m/2,"Shift"===this.edgeLabelPlacement&&(0===h&&o<this.rect.x&&(o=this.rect.x),h===this.visibleLabels.length-1&&o+m>this.rect.x+this.rect.width&&(o=this.rect.x+this.rect.width-m)),s){case"MultipleRows":h>0&&this.findMultiRows(h,o,l,r);break;case"Rotate45":case"Rotate90":h>0&&(this.isAxisInverse?o+m>=n:o<=n)&&(this.angle="Rotate45"===s?45:90,a=!0);break;default:if(r){for(var y=void 0,f=[],v=void 0,b=0;b<l.text.length;b++)if((y=Ze(l.text[b],this.rect.width/this.visibleLabels.length,this.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont)).length>1)for(var x=0;x<y.length;x++)v=y[x],f.push(v);else f.push(y[0]);l.text=f}else l.text=Ze(l.text,this.rect.width/this.visibleLabels.length,this.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont);var S=l.size.height*l.text.length;S>this.maxLabelSize.height&&(this.maxLabelSize.height=S)}n=this.isAxisInverse?o:o+m}}if(0!==this.angle&&"Horizontal"===this.orientation)this.rotatedLabel=t.isNullOrUndefined(this.rotatedLabel)?"":this.rotatedLabel,!(C=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle)&&c(this.rotatedLabel)&&(this.maxLabelSize=new i.Size(this.maxLabelSize.height,this.maxLabelSize.width)),this.maxLabelSize=u(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont);else if(0!==this.angle&&"Vertical"===this.orientation){this.rotatedLabel=t.isNullOrUndefined(this.rotatedLabel)?"":this.rotatedLabel;var C=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;!C&&c(this.rotatedLabel)&&(this.maxLabelSize=new i.Size(this.maxLabelSize.height,this.maxLabelSize.width)),this.maxLabelSize=u(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}},o.prototype.findMultiRows=function(e,t,i,o){for(var r,n,a,l=[],s=e-1;s>=0;s--)r=this.visibleLabels[s],a=o?r.breakLabelSize.width:r.size.width,n=$t(r.value,this)*this.rect.width+this.rect.x,(this.isAxisInverse?t+i.size.width>n-.5*a:t<n+.5*a)?(l.push(r.index),i.index=i.index>r.index?i.index:r.index+1):i.index=l.indexOf(r.index)>-1?i.index:r.index;var h=(o?i.breakLabelSize.height:i.size.height)*i.index+5*(i.index-1);h>this.maxLabelSize.height&&(this.maxLabelSize.height=h)},o.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new Cc(e):this.baseModule=e[U(this.valueType)+"3DModule"]},o.prototype.setIsInversedAndOpposedPosition=function(){this.isAxisOpposedPosition=this.opposedPosition||this.isRTLEnabled&&"Vertical"===this.orientation,this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation},wc([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},ec)],o.prototype,"labelStyle",void 0),wc([t.Property("")],o.prototype,"title",void 0),wc([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ec)],o.prototype,"titleStyle",void 0),wc([t.Property("")],o.prototype,"labelFormat",void 0),wc([t.Property("")],o.prototype,"skeleton",void 0),wc([t.Property("DateTime")],o.prototype,"skeletonType",void 0),wc([t.Property(0)],o.prototype,"plotOffset",void 0),wc([t.Property(null)],o.prototype,"plotOffsetLeft",void 0),wc([t.Property(null)],o.prototype,"plotOffsetTop",void 0),wc([t.Property(null)],o.prototype,"plotOffsetRight",void 0),wc([t.Property(null)],o.prototype,"plotOffsetBottom",void 0),wc([t.Property(!1)],o.prototype,"isIndexed",void 0),wc([t.Property(10)],o.prototype,"logBase",void 0),wc([t.Property(0)],o.prototype,"columnIndex",void 0),wc([t.Property(0)],o.prototype,"rowIndex",void 0),wc([t.Property(1)],o.prototype,"span",void 0),wc([t.Property(null)],o.prototype,"desiredIntervals",void 0),wc([t.Property(3)],o.prototype,"maximumLabels",void 0),wc([t.Property(!1)],o.prototype,"opposedPosition",void 0),wc([t.Property("Auto")],o.prototype,"rangePadding",void 0),wc([t.Property("Double")],o.prototype,"valueType",void 0),wc([t.Property("None")],o.prototype,"edgeLabelPlacement",void 0),wc([t.Property("Auto")],o.prototype,"intervalType",void 0),wc([t.Property("OnTicks")],o.prototype,"labelPlacement",void 0),wc([t.Property("")],o.prototype,"name",void 0),wc([t.Property(!0)],o.prototype,"visible",void 0),wc([t.Property(0)],o.prototype,"minorTicksPerInterval",void 0),wc([t.Property(0)],o.prototype,"labelRotation",void 0),wc([t.Property(null)],o.prototype,"titleRotation",void 0),wc([t.Property(null)],o.prototype,"minimum",void 0),wc([t.Property(null)],o.prototype,"maximum",void 0),wc([t.Property(null)],o.prototype,"interval",void 0),wc([t.Property(34)],o.prototype,"maximumLabelWidth",void 0),wc([t.Property(!1)],o.prototype,"enableTrim",void 0),wc([t.Property(5)],o.prototype,"labelPadding",void 0),wc([t.Property(5)],o.prototype,"titlePadding",void 0),wc([t.Complex({},Dc)],o.prototype,"majorTickLines",void 0),wc([t.Complex({},kc)],o.prototype,"minorTickLines",void 0),wc([t.Complex({},Ac)],o.prototype,"majorGridLines",void 0),wc([t.Complex({},Mc)],o.prototype,"minorGridLines",void 0),wc([t.Property(t.Browser.isDevice?"Rotate45":"Trim")],o.prototype,"labelIntersectAction",void 0),wc([t.Property(!1)],o.prototype,"isInversed",void 0),wc([t.Property(!0)],o.prototype,"startFromZero",void 0),o}(t.ChildProperty),Tc=function(){function e(e,t,o,r,n,a,l){void 0===n&&(n=new i.Size(0,0)),void 0===a&&(a=new i.Size(0,0)),void 0===l&&(l=1),this.text=e,this.originalText=r,this.value=t,this.labelStyle=o,this.size=n,this.breakLabelSize=a,this.index=l}return e}(),Ec=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ic=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ec(i,e),_c([t.Property(!1)],i.prototype,"visible",void 0),_c([t.Property(null)],i.prototype,"name",void 0),_c([t.Property("transparent")],i.prototype,"fill",void 0),_c([t.Property(null)],i.prototype,"format",void 0),_c([t.Property(1)],i.prototype,"opacity",void 0),_c([t.Property(0)],i.prototype,"angle",void 0),_c([t.Property(!1)],i.prototype,"enableRotation",void 0),_c([t.Property("Middle")],i.prototype,"position",void 0),_c([t.Complex({width:null,color:null},hi)],i.prototype,"border",void 0),_c([t.Complex({left:5,right:5,top:5,bottom:5},di)],i.prototype,"margin",void 0),_c([t.Complex({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},ec)],i.prototype,"font",void 0),_c([t.Property(null)],i.prototype,"template",void 0),i}(t.ChildProperty),Oc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ec(i,e),_c([t.Property(null)],i.prototype,"fill",void 0),_c([t.Property("Gap")],i.prototype,"mode",void 0),i}(t.ChildProperty),zc=function(){function e(){this.symbolLocations=null,this.percentage=null,this.isSelect=!1}return e}(),Bc=function(e){function r(t,o,r,n){var a=e.call(this,t,o,r,n)||this;return a.currentViewData=[],a.clipRect=new i.Rect(0,0,0,0),a.visibleSeriesCount=0,a.category="Series",a.isRectSeries=!1,a.all=!1,a}return Ec(r,e),r.prototype.processJsonData=function(){var e=0,i=new zc,n=this.xName,a=this instanceof r&&this.dataLabel.name?this.dataLabel.name:"",l=(this.currentViewData||[]).length;if(this.points=[],this.xMin=1/0,this.xMax=-1/0,this.yMin=1/0,this.yMax=-1/0,this.sizeMax=-1/0,"Category"===this.xAxis.valueType)for(;e<l;)i=this.dataPoint(e,a,n),this.pushCategoryData(i,e,i.x),this.pushData(i,e),this.setEmptyPoint(i,e),e++;else if(this.xAxis.valueType.indexOf("DateTime")>-1)for(var s={skeleton:"full",type:"dateTime"},h=this.chart.intl.getDateParser(s),c=this.chart.intl.getDateFormat(s);e<l;)i=this.dataPoint(e,a,n),t.isNullOrUndefined(i.x)||""===i.x?i.visible=!1:(i.x=new Date(o.DataUtil.parse.parseJson({val:i.x}).val),"DateTime"===this.xAxis.valueType?i.xValue=Date.parse(i.x.toString()):this.pushCategoryData(i,e,Date.parse(h(c(i.x))).toString()),this.pushData(i,e),this.setEmptyPoint(i,e)),e++;else for(;e<l;)(i=this.dataPoint(e,a,n)).xValue=i.x,this.pushData(i,e),this.setEmptyPoint(i,e),e++},r.prototype.pushData=function(e,t){e.index=t,e.yValue=e.y,e.series=this,this.xMin=Math.min(this.xMin,e.xValue),this.xMax=Math.max(this.xMax,e.xValue),this.xData.push(e.xValue)},r.prototype.dataPoint=function(e,t,i){this.points[e]=new zc;var o=this.points[e],n=this.currentViewData[e],a=this.get3DObjectValue;return o.x=a(i,n),o.interior=a(this.pointColorMapping,n),this instanceof r&&(o.y=a(this.yName,n),o.size=a(this.size,n),o.text=a(t,n),o.tooltip=a(this.tooltipMappingName,n)),o},r.prototype.get3DObjectValue=function(e,t){return t[e]},r.prototype.setEmptyPoint=function(e,t){if(!this.findVisibility(e))return e.visible=!0,null;switch(e.isEmpty=!0,(this instanceof r&&this).emptyPointSettings.mode){case"Zero":e.visible=!0,e.y=e.yValue=this.yData[t]=0;break;case"Average":this instanceof r&&(e.y=e.yValue=this.yData[t]=this.getAverage(this.yName,t)),e.visible=!0;break;case"Drop":case"Gap":this.yData[t]=null,e.visible=!1}},r.prototype.findVisibility=function(e){return this.setXYMinMax(e.yValue),this.yData.push(e.yValue),t.isNullOrUndefined(e.x)||t.isNullOrUndefined(e.y)||isNaN(+e.y)},r.prototype.setXYMinMax=function(e){var i,o="Logarithmic"===this.yAxis.valueType||"Logarithmic"===this.xAxis.valueType,r=e<0||"None"===this.yAxis.rangePadding;i=te(this.yAxis)?e:o?e:r?e:0,this.yMin=o?Math.min(this.yMin,t.isNullOrUndefined(i)||isNaN(i)||0===i||"0"===i.toString()||""===i.toString()?this.yMin:i):Math.min(this.yMin,t.isNullOrUndefined(i)||isNaN(i)?this.yMin:i),this.yMax=Math.max(this.yMax,t.isNullOrUndefined(e)||isNaN(e)?this.yMax:e)},r.prototype.pushCategoryData=function(e,t,i){if(this.chart.tooltip&&!this.visible)return null;this.xAxis.isIndexed?(this.xAxis.labels[t]?this.xAxis.labels[t]+=", "+i:this.xAxis.labels.push(i),e.xValue=t):(void 0===this.xAxis.indexLabels[i]&&(this.xAxis.indexLabels[i]=this.xAxis.labels.length,this.xAxis.labels.push(i)),e.xValue=this.xAxis.indexLabels[i])},r.prototype.getAverage=function(e,t,i){return void 0===i&&(i=this.currentViewData),((i[t-1]?i[t-1][e]||0:0)+(i[t+1]?i[t+1][e]||0:0))/2},r.prototype.refreshDataManager=function(e){var i=this;this.chart=e;var r;if(!((r=e.isAngular?Object.keys(this.dataSource).length?this.dataSource:e.dataSource:this.dataSource||e.dataSource)instanceof o.DataManager)&&t.isNullOrUndefined(this.query))return void this.dataManagerSuccess({result:r,count:r.length},!1);this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(e){return i.dataManagerSuccess(e)})},r.prototype.dataManagerSuccess=function(e,t){if(void 0===t&&(t=!0),this.currentViewData=e.count?e.result:[],this.chart.allowServerDataBinding=!1,this instanceof r){var i={series:this,data:this.currentViewData,fill:this.interior};this.chart.trigger("seriesRender",i),this.interior=i.fill,this.currentViewData=i.data}this.processJsonData(),this.refreshChart(t),this.currentViewData=null},r.prototype.refreshChart=function(e){var t=this.chart;this instanceof r&&(t.visibleSeriesCount+=e?1:0),t.visibleSeries.length===t.visibleSeriesCount&&(t.refreshBound(),t.trigger("loaded",{chart:t})),this instanceof r&&(t.visibleSeriesCount+=e?0:1)},r.prototype.refreshAxisLabel=function(){if("Category"!==this.xAxis.valueType)return null;this.xAxis.labels=[],this.xAxis.indexLabels={};for(var e=0,t=this.xAxis.series;e<t.length;e++){var i=t[e];if(i.visible){i.xMin=1/0,i.xMax=-1/0;for(var o=0,r=i.points;o<r.length;o++){var n=r[o];i.pushCategoryData(n,n.index,n.x),i.xMin=Math.min(i.xMin,n.xValue),i.xMax=Math.max(i.xMax,n.xValue)}}}},r.prototype.findSeriesCollection=function(e,t,i){for(var o=[],r=0,n=t.axes;r<n.length;r++)for(var a=0,l=n[r].series;a<l.length;a++)for(var s=l[a],h=0,c=e.axes;h<c.length;h++)for(var d=0,p=c[h].series;d<p.length;d++){var u=p[d];u===s&&u.visible&&this.rectSeriesInChart(u,i)&&o.push(u)}return o},r.prototype.rectSeriesInChart=function(e,t){var i=e.type.toLowerCase();return-1!==i.indexOf("column")||-1!==i.indexOf("bar")||t},r.prototype.calculateStackedValue=function(e,t){for(var i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.calculateStackingValues(this.findSeriesCollection(r,l,!0),e)}},r.prototype.calculateStackingValues=function(e,t){var i,o,r,n,a,l=[],s=[],h=[],c=[];t&&(c=this.findFrequencies(e));for(var p=[],u=[],g=0;g<e.length;g++)p[(S=e[g]).stackingGroup]?void 0!==p[S.stackingGroup]&&p[S.stackingGroup].push(S):(p[S.stackingGroup]=[],p[S.stackingGroup].push(S));for(var m=Object.keys(p),y=0;y<m.length;y++){for(var f=[],v=[],b=0,x=p[m[y]];b<x.length;b++){var S=x[b];if(-1!==S.type.indexOf("Stacking")){s[r=S.stackingGroup]||(s[r]=[],h[r]=[]),l=S.yData,i=[],o=[],f.push(S);for(var C=0,F=(u=d(S)).length;C<F;C++)n=0,a=+l[C],void 0===s[r][u[C].xValue]&&(s[r][u[C].xValue]=0),void 0===h[r][u[C].xValue]&&(h[r][u[C].xValue]=0),t?(a=a/c[r][u[C].xValue]*100,a=isNaN(a)?0:a,u[C].percentage=+a.toFixed(2)):v[C]=v[C]?v[C]+Math.abs(a):Math.abs(a),a>=0?(n=s[r][u[C].xValue],s[r][u[C].xValue]+=a):(n=h[r][u[C].xValue],h[r][u[C].xValue]+=a),i.push(n),o.push(a+n),t&&o[C]>100&&(o[C]=100);S.stackedValues=new ho(i,o);var w="Logarithmic"===S.yAxis.valueType,L=-1!==S.type.indexOf("Column")||-1!==S.type.indexOf("Bar");S.yMin=w&&L&&S.yMin<1?S.yMin:S.yAxis.startFromZero&&S.type.indexOf("100")>-1&&"Auto"===S.yAxis.rangePadding&&S.yMin>=0?0:parseFloat(Math.min.apply(0,t?i:o).toFixed(10)),S.yMax=Math.max.apply(0,o),S.yMin>Math.min.apply(0,o)&&(S.yMin=t?-100:w&&L&&S.yMin<1?S.yMin:Math.min.apply(0,o)),S.yMax<Math.max.apply(0,i)&&(S.yMax=0)}}this.findPercentageOfStacking(f,v,t)}},r.prototype.findPercentageOfStacking=function(e,t,i){for(var o=0,r=e;o<r.length;o++){var n=r[o];if(i)return null;for(var a=0,l=d(n);a<l.length;a++){var s=l[a];s.percentage=Math.abs(+(s.y/t[s.index]*100).toFixed(2))}}},r.prototype.findFrequencies=function(e){for(var t,i=[],o=[],r=0,n=e;r<n.length;r++){var a=n[r];if(a.yAxis.isStack100=-1!==a.type.indexOf("100"),o=this.getVisiblePoints(),-1!==a.type.indexOf("Stacking")){i[t=a.stackingGroup]||(i[t]=[]);for(var l=0,s=o.length;l<s;l++)void 0===i[t][o[l].xValue]&&(i[t][o[l].xValue]=0),a.yData[l]>0?i[t][o[l].xValue]+=a.yData[l]:i[t][o[l].xValue]-=a.yData[l]}}return i},r.prototype.renderSeries=function(e){var t=U(this.type);e[(t=t.replace("100",""))+"Series3DModule"]&&(this.visiblePoints=this.getVisiblePoints(),e[t+"Series3DModule"].draw(this,e),this.dataLabel.visible&&this.visible&&e.dataLabel3DModule.render(this,this.chart,this.dataLabel))},r.prototype.getVisiblePoints=function(){for(var e,i=t.extend([],this.points,null,!0),o=[],r=0,n=0;n<i.length;n++)e=i[n],t.isNullOrUndefined(e.x)||(e.index=r++,o.push(e));return o},r.prototype.setPointColor=function(e,t){return t=e.interior||t,e.isEmpty?this.emptyPointSettings.fill||t:t},r.prototype.getYValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].yValue);return t},r.prototype.getXValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].xValue);return t},r.prototype.getSegmentDepth=function(e){var t,i,o=this.chart.depth;if(this.chart.enableSideBySidePlacement)t=a=o/4,i=a*("Rectangle"===e.columnFacet?2.5:3);else{var r=e.position-1,n=e.rectCount,a=o/(2*n+n+1);i=(t=a+a*r*3)+a*("Rectangle"===e.columnFacet?1.5:2)}return{start:t,end:i,delta:i-t}},r.prototype.getSideBySidePositions=function(e){for(var t=e.chart,i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.findRectPosition(e.findSeriesCollection(r,l,!1))}},r.prototype.findRectPosition=function(e){for(var t=[],i={rectCount:0,position:null},o=0;o<e.length;o++)if(-1!==(n=e[o]).type.indexOf("Stacking")||""!==n.groupName){var r=-1!==n.type.indexOf("Stacking")?n.stackingGroup:n.type+n.groupName;r?void 0===t[r]?(n.position=i.rectCount,t[r]=i.rectCount++):n.position=t[r]:null===i.position?(i.rectCount++,n.position=i.rectCount,i.position=i.rectCount):n.position=i.position}else i.rectCount++,n.position=i.rectCount;for(o=0;o<e.length;o++){var n=e[o];n.rectCount=i.rectCount}},r.prototype.getDoubleRange=function(e,t){var i,o;return e>t?(i=t,o=e):(i=e,o=t),{start:i,end:o,delta:o-i,median:(i+o)/2,isEmpty:isNaN(i)||isNaN(o)}},r.prototype.setStyle=function(e){return{interior:e.interior,opacity:e.opacity,dashArray:""}},r.prototype.getSideBySideInfo=function(e){this.chart.currentSeries=e;var t=Qt(e.xAxis,this.chart.visibleSeries),i=e.columnSpacing,o=null===e.columnWidth||isNaN(+e.columnWidth)?.7:Math.min(e.columnWidth,1);this.getSideBySidePositions(e);var r=e.position,n=e.rectCount,a=t*o,l=(r-(""===e.stackingGroup?1:0))/n-.5,s=this.getDoubleRange(l,l+1/n);if(!this.chart.enableSideBySidePlacement)return this.getDoubleRange(-a/2,a/2);if(!s.isEmpty){var h=i*(s=this.getDoubleRange(s.start*a,s.end*a)).delta;s=this.getDoubleRange(s.start+h/2,s.end-h/2)}return s},_c([t.Property("")],r.prototype,"xName",void 0),_c([t.Property("")],r.prototype,"pointColorMapping",void 0),_c([t.Property(!0)],r.prototype,"visible",void 0),_c([t.Property(null)],r.prototype,"xAxisName",void 0),_c([t.Property(null)],r.prototype,"yAxisName",void 0),_c([t.Complex({duration:2e3},pi)],r.prototype,"animation",void 0),_c([t.Property(null)],r.prototype,"fill",void 0),_c([t.Property("")],r.prototype,"dataSource",void 0),_c([t.Property()],r.prototype,"query",void 0),_c([t.Complex({},Ic)],r.prototype,"dataLabel",void 0),_c([t.Property("")],r.prototype,"name",void 0),_c([t.Property("")],r.prototype,"yName",void 0),_c([t.Property("")],r.prototype,"size",void 0),_c([t.Property("")],r.prototype,"stackingGroup",void 0),_c([t.Property(1)],r.prototype,"opacity",void 0),_c([t.Property("")],r.prototype,"groupName",void 0),_c([t.Property("Column")],r.prototype,"type",void 0),_c([t.Property(!0)],r.prototype,"enableTooltip",void 0),_c([t.Property("")],r.prototype,"tooltipFormat",void 0),_c([t.Property("")],r.prototype,"tooltipMappingName",void 0),_c([t.Property("SeriesType")],r.prototype,"legendShape",void 0),_c([t.Property("")],r.prototype,"legendImageUrl",void 0),_c([t.Complex(null,Oc)],r.prototype,"emptyPointSettings",void 0),_c([t.Property(null)],r.prototype,"columnWidth",void 0),_c([t.Property("Rectangle")],r.prototype,"columnFacet",void 0),_c([t.Property(.1)],r.prototype,"columnSpacing",void 0),r}(t.ChildProperty),Nc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Hc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Nc(i,e),Vc([t.Property(!1)],i.prototype,"enable",void 0),Vc([t.Property(!0)],i.prototype,"enableMarker",void 0),Vc([t.Property(null)],i.prototype,"fill",void 0),Vc([t.Property(null)],i.prototype,"header",void 0),Vc([t.Property(null)],i.prototype,"opacity",void 0),Vc([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),Vc([t.Property(null)],i.prototype,"format",void 0),Vc([t.Property(null)],i.prototype,"template",void 0),Vc([t.Property(!0)],i.prototype,"enableAnimation",void 0),Vc([t.Property(300)],i.prototype,"duration",void 0),Vc([t.Property(1e3)],i.prototype,"fadeOutDuration",void 0),Vc([t.Property("Move")],i.prototype,"fadeOutMode",void 0),Vc([t.Property(!1)],i.prototype,"enableTextWrap",void 0),Vc([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),Vc([t.Complex({x:null,y:null},oi)],i.prototype,"location",void 0),i}(t.ChildProperty),Wc=function(e){function o(t){var i=e.call(this,t)||this;return i.chart3D=t,i.commonXvalues=[],i.addEventListener(),i}return Nc(o,e),o.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this)}},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("pointerleave",this.mouseLeaveHandler),this.chart.off("tapHold",this.longPress),this.chart.off(t.Browser.touchMoveEvent,this.mouseLeaveHandler),this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler))},o.prototype.mouseUpHandler=function(e){var t=this,i=this.control,o=this.get3dData(e);i.isTouch?(this.tooltip(e),"Move"===i.tooltip.fadeOutMode&&(this.removeTooltip(i.tooltip.fadeOutDuration),clearTimeout(this.timerId),this.timerId=+setTimeout(function(){t.removeBlurEffect()},500)),i.startMove&&"Move"===i.tooltip.fadeOutMode&&(this.removeTooltip(2e3),this.removeBlurEffect())):this.findData(o,this.previousPoints[0])||"Click"!==i.tooltip.fadeOutMode||(this.removeTooltip(0),this.removeBlurEffect())},o.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.removeBlurEffect()},o.prototype.mouseMoveHandler=function(e){var t=this.chart3D;t.mouseX=t.mouseX/t.scaleX,t.mouseY=t.mouseY/t.scaleY,t.disableTrackTooltip||t.rotateActivate||t.isTouch&&!t.startMove||this.tooltip(e)},o.prototype.longPress=function(){return!1},o.prototype.seriesStyles=function(){if(!this.styleAdded){var e=document.createElement("style");e.setAttribute("id",this.element.id+"_ej2_chart_tooltip"),e.innerText+=" ."+this.element.id+"_ej2_tooltipDeselected { opacity:0.2;} ",document.body.appendChild(e),this.styleAdded=!0}},o.prototype.tooltip=function(e){var t=this.element.id+"_tooltip_svg",i=this.getElement(t),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o);this.chart3D.tooltip3DModule&&this.renderSeriesTooltip(this.chart3D,!o,r,e)},o.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header,e.series.xAxis,e.series.yAxis),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},o.prototype.renderSeriesTooltip=function(e,t,i,o){var r=this.get3dData(o);this.currentPoints=[],!this.findData(r,this.previousPoints[0])||(!this.previousPoints[0]||this.previousPoints[0].point.index===r.point.index&&this.previousPoints[0].series.index===r.series.index&&this.chart3D.isRemove)&&this.previousPoints[0]?!r.point&&this.chart3D.isRemove&&"Move"===e.tooltip.fadeOutMode&&(this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.removeBlurEffect(),this.chart3D.isRemove=!1):this.pushData(r,t,i,!0)&&this.triggerTooltipRender(r,t,this.getTooltipText(r),this.findHeader(r)),r&&r.point&&this.findMouseValue(r,e)},o.prototype.triggerTooltipRender=function(e,o,r,n){var a=this,l={cancel:!1,text:r,headerText:n,template:void 0,textStyle:this.textStyle,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,seriesName:e.series.name,pointIndex:e.point.index,pointText:e.point.text}},s=this.chart.border.width,h=function(r){r.cancel?(a.removeHighlight(),t.remove(a.getElement(a.element.id+"_tooltip"))):(a.headerText=r.headerText,a.formattedText=a.formattedText.concat(r.text),a.text=a.formattedText,a.createTooltip(a.chart,o,a.getSymbolLocation(e),e.series.clipRect,e.point,a.chart3D.tooltip.enableMarker?["Circle"]:[],0,new i.Rect(s,s,a.chart.availableSize.width-3-2*s,a.chart.availableSize.height-3-2*s),!1,null,a.getTemplateText(e),a.template?r.template:""),a.blurEffect(a.chart3D.visibleSeries,e.series)),a.chart3D.isRemove=!0};h.bind(this,e),this.chart.trigger("tooltipRender",l,h)},o.prototype.blurEffect=function(e,t){if(!this.chart3D.highlight3DModule||this.chart3D.legendSettings.enableHighlight&&"None"===this.chart3D.highlightMode){for(var i=[],o=0,r=e;o<r.length;o++){var n=r[o];if(n.visible&&n.index!==t.index)document.getElementById(this.element.id).querySelectorAll('[id*="region-series-'+n.index+'"]').forEach(function(e){i.push(e)});else if(n.visible)for(var a=document.getElementById(this.element.id).querySelectorAll('[id*="region-series-'+n.index+'"]'),l=0;l<a.length;l++){var s=a[l];(h=s.getAttribute("class")||"").indexOf(this.element.id+"_ej2_tooltipDeselected")>-1&&s.setAttribute("class",h.replace(this.element.id+"_ej2_tooltipDeselected","")),this.chart3D.stopElementAnimation(s,n.index)}}for(l=0;l<i.length;l++)if(i[l]){var h=i[l].getAttribute("class")||"";-1===(h+=""!==h?" ":"").indexOf("_selection_")&&-1===h.indexOf(this.element.id+"_ej2_tooltipDeselected")&&i[l].setAttribute("class",h+this.element.id+"_ej2_tooltipDeselected")}}},o.prototype.removeBlurEffect=function(){if(!this.chart3D.highlight3DModule||this.chart3D.legendSettings.enableHighlight&&"None"===this.chart3D.highlightMode)for(var e=document.getElementsByClassName(this.element.id+"_ej2_tooltipDeselected");e.length>0;){var t=e[0],i=t.getAttribute("class")||"";if(i.indexOf(this.element.id+"_ej2_tooltipDeselected")>-1){t.setAttribute("class",i.replace(this.element.id+"_ej2_tooltipDeselected",""));var o=parseFloat(t.id.split("-series-")[1].split("-point-")[0]);this.chart3D.highlightAnimation(t,o,700,.2)}}},o.prototype.getSymbolLocation=function(e){var t,i,o=document.getElementById(this.element.id+"_svg").getBoundingClientRect();if(t="Cylinder"===e.series.columnFacet?document.querySelectorAll('[id*="'+this.element.id+"-svg-"+(-1===e.series.type.indexOf("Column")?"0":"1")+"-region-series-"+e.series.index+"-point-"+e.point.index+'"]'):document.querySelectorAll('[id*="'+this.element.id+"-svg-"+(-1===e.series.type.indexOf("Column")?"5":"2")+"-region-series-"+e.series.index+"-point-"+e.point.index+'"]')){if(1===t.length)i=t[0].getBoundingClientRect();else for(var r=0;r<t.length;r++){var n=t[r];if(-1!==n.id.indexOf("-"+e.point.index+"-back-front")||-1!==n.id.indexOf("-"+e.point.index+"-front-back")){i=n.getBoundingClientRect();break}}0===t.length||i||(i=t[0].getBoundingClientRect())}return new mo(null!==this.chart3D.tooltip.location.x?this.chart3D.tooltip.location.x:i.left-o.left+i.width/2,null!==this.chart3D.tooltip.location.y?this.chart3D.tooltip.location.y:i.top-o.top+i.height/2)},o.prototype.getTooltipText=function(e){return this.parseTemplate(e.point,e.series,this.getFormat(this.chart3D,e.series),e.series.xAxis,e.series.yAxis)},o.prototype.getTemplateText=function(e){if(this.template){var i=t.extend({},e.point);return i.x=this.formatPointValue(e.point,e.series.xAxis,"x",!0,!1),i.y=this.formatPointValue(e.point,e.series.yAxis,"y",!1,!0),i}return e.point},o.prototype.findMouseValue=function(e,t){t.requireInvertedAxis?(this.valueY=(1-$t(e.point.xValue,e.series.xAxis))*e.series.xAxis.rect.height+e.series.xAxis.rect.y,this.valueX=t.mouseX):(this.valueX=$t(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x,this.valueY=t.mouseY)},o.prototype.parseTemplate=function(e,t,i,o,r){for(var n,a,l=RegExp,s=0,h=Object.keys(e);s<h.length;s++)n=new l("${point."+(p=h[s])+"}","gm"),i=i.replace(n.source,this.formatPointValue(e,"${point.x}"===n.source?o:r,p,"${point.x}"===n.source,"${point.y}"===n.source));for(var c=0,d=Object.keys(Object.getPrototypeOf(t));c<d.length;c++){var p=d[c];n=new l("${series."+p+"}","gm"),a=t[p],i=i.replace(n.source,a)}return i},o.prototype.formatPointValue=function(e,i,o,r,n){var a,l,s;return"Category"!==i.valueType&&r?a=(l=i.labelFormat&&null!==i.labelFormat.match("{value}"))?i.labelFormat.replace("{value}",i.format(e[o])):i.format(e[o]):n&&!t.isNullOrUndefined(e[o])?(l=i.labelFormat&&null!==i.labelFormat.match("{value}"),s=i.format(e[o]),a=l?i.labelFormat.replace("{value}",s):s):a=e[o],a},o.prototype.getFormat=function(e,t){if(t.tooltipFormat)return t.tooltipFormat;if(!t.tooltipFormat&&e.tooltip.format)return e.tooltip.format;return"${point.x} : "+(e.theme.indexOf("Tailwind3")>-1?"${point.y}":"<b>${point.y}</b>")},o.prototype.get3dData=function(e){var i,o,r,n=this.chart3D,a=null,l=null,s=this.chart3D.mouseX,h=this.chart3D.mouseY,c=this.chart3D.chartAxisLayoutPanel.seriesClipRect,d=e.target;if(d&&s>c.x&&s<c.x+c.width&&h>c.y&&h<c.y+c.height){var p=d.nodeName;("shape"===p||"path"===p)&&d.id.indexOf("region")>1&&(i=d.id.match(/(\d+)/g),o=parseInt(i[i.length-1].toString(),10),r=parseInt(i[i.length-2].toString(),10))}return t.isNullOrUndefined(r)||(l=n.visibleSeries[r]),l&&l.visible&&(a=l.points[o]),new So(a,l)},o.prototype.findData=function(e,t){return e.point&&(!t||t.point!==e.point||t.point===e.point)},o.prototype.getModuleName=function(){return"Tooltip3D"},o.prototype.destroy=function(){this.removeEventListener()},o}(Qn),jc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Uc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Xc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return jc(i,e),Uc([t.Property(!0)],i.prototype,"visible",void 0),Uc([t.Property(null)],i.prototype,"height",void 0),Uc([t.Property(null)],i.prototype,"width",void 0),Uc([t.Complex({x:0,y:0},oi)],i.prototype,"location",void 0),Uc([t.Property("Auto")],i.prototype,"position",void 0),Uc([t.Property("Series")],i.prototype,"mode",void 0),Uc([t.Property(8)],i.prototype,"padding",void 0),Uc([t.Property(null)],i.prototype,"itemPadding",void 0),Uc([t.Property("Center")],i.prototype,"alignment",void 0),Uc([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),Uc([t.Property(10)],i.prototype,"shapeHeight",void 0),Uc([t.Property(10)],i.prototype,"shapeWidth",void 0),Uc([t.Complex({},hi)],i.prototype,"border",void 0),Uc([t.Complex({left:0,right:0,top:0,bottom:0},di)],i.prototype,"margin",void 0),Uc([t.Complex({left:0,right:0,top:0,bottom:0},fi)],i.prototype,"containerPadding",void 0),Uc([t.Property(8)],i.prototype,"shapePadding",void 0),Uc([t.Property("transparent")],i.prototype,"background",void 0),Uc([t.Property(1)],i.prototype,"opacity",void 0),Uc([t.Property(!0)],i.prototype,"toggleVisibility",void 0),Uc([t.Property(!1)],i.prototype,"enableHighlight",void 0),Uc([t.Property(null)],i.prototype,"description",void 0),Uc([t.Property(3)],i.prototype,"tabIndex",void 0),Uc([t.Property(null)],i.prototype,"title",void 0),Uc([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"titleStyle",void 0),Uc([t.Property("Top")],i.prototype,"titlePosition",void 0),Uc([t.Property("Normal")],i.prototype,"textWrap",void 0),Uc([t.Property("Ellipsis")],i.prototype,"textOverflow",void 0),Uc([t.Property(100)],i.prototype,"maximumTitleWidth",void 0),Uc([t.Property(null)],i.prototype,"maximumLabelWidth",void 0),Uc([t.Property(!0)],i.prototype,"enablePages",void 0),Uc([t.Property(!1)],i.prototype,"isInversed",void 0),Uc([t.Property(!1)],i.prototype,"reverse",void 0),i}(t.ChildProperty),Gc=function(e){function o(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return jc(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},o.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.highlight3DModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.highlight3DModule.legendSelection(this.chart,o,e.target,e.type);break}}},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e,t){this.legendCollections=[];var i,o;this.isRtlEnable=t.enableRtl,this.isReverse=!this.isRtlEnable&&t.legendSettings.reverse,e.length>1&&(this.legend.mode="Series");for(var r=0,n=e;r<n.length;r++){var a=n[r];if("Series"===this.legend.mode)i=a.type,o=a.pointColorMapping&&a.points.length>0&&a.points[0].interior?a.points[0].interior:a.interior,this.legendCollections.push(new qo(a.name,o,a.legendShape,a.visible,i,a.legendImageUrl?a.legendImageUrl:"","None",!1,null,null));else if("Point"===this.legend.mode)for(var l=this,s=0,h=a.points;s<h.length;s++)!function(e){i=a.type,o=e.interior?e.interior:a.interior,0===l.legendCollections.filter(function(t){return t.text===e.x.toString()}).length&&l.legendCollections.push(new qo(e.x.toString(),o,a.legendShape,e.visible,i,"","None",!1))}(h[s])}this.isReverse&&this.legendCollections.reverse()},o.prototype.get3DLegendBounds=function(e,t,o){this.calculateLegendTitle(o,t),this.isTitle=!!o.title,this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var r,n=o.padding,a=o.titlePosition,l=0,s=0,h=this.arrowWidth,c=this.arrowHeight,d=this.isVertical&&!o.enablePages?c:0,p=this.isTitle&&"Top"===a?this.legendTitleSize.height+this.fivePixel:0;p=this.isTitle&&this.isVertical&&"Top"!==a?this.legendTitleSize.height+this.fivePixel:p,this.isVertical?s=o.width?0:e.width/100*5:l=o.height?0:e.height/100*5,t.height+=l,t.width+=s;var u,g=o.shapeWidth,m=o.shapePadding,y=0,f=0,v=0,b=0,x=0,S=0,C=0,F=!1;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);for(var w=0;w<this.legendCollections.length;w++)if(r=this.legendCollections[w],Ei.test(r.text)&&(r.text=Qe(r.text,Ei)),_i.test(r.text)&&(r.text=Qe(r.text,_i)),u={fill:r.fill,text:r.text,shape:r.shape,cancel:!1},this.chart.trigger("legendRender",u),r.render=!u.cancel,r.text=u.text,r.fill=u.fill,r.shape=u.shape,r.markerShape="None",r.textSize=i.measureText(r.text,o.textStyle,this.chart.themeStyle.legendLabelFont),g=r.text?o.shapeWidth:0,m=r.text?o.shapePadding:0,r.render&&r.text){F=!0,f+=v=g+m+(o.maximumLabelWidth?o.maximumLabelWidth:r.textSize.width)+(this.isVertical?n:0===w?n:this.itemPadding),o.enablePages||this.isVertical||(C=this.isTitle&&"Top"!==a?this.legendTitleSize.width+this.fivePixel:0,C+=h),this.getLegendHeight(r,o,t,f,this.maxItemHeight,n),(t.width<n+f+C||this.isVertical)&&(y=Math.max(y,f+n+C-(this.isVertical?0:v)),0===S&&v!==f&&(S=1),f=this.isVertical?0:v,S++,x=0,b=d);var L=S>0?S-1:0;this.rowHeights[L]=Math.max(this.rowHeights[L]?this.rowHeights[L]:0,r.textSize.height),this.columnHeights[x]=(this.columnHeights[x]?this.columnHeights[x]:0)+r.textSize.height+(this.isVertical?0===w?n:this.itemPadding:n),x++}b=Math.max.apply(null,this.columnHeights)+n+p,b=Math.max(b,this.maxItemHeight+n+n+p),this.isPaging=t.height<b,this.isPaging&&!o.enablePages&&(this.isVertical?b+=b:b=this.maxItemHeight+n+n+("Top"===a?p:0)),this.totalPages=S,this.isPaging||this.isVertical||(f+=this.isTitle&&"Top"!==a?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),F?this.setBounds(Math.max(f+n,y),b,o,t):this.setBounds(0,0,o,t)},o.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=Ze(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),h=o.location.x+(this.isRtlEnable?-s:s);this.isWithinBounds(h,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r)||this.isVertical?(e.location.x=t.x,n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+(this.isVertical?o.textSize.height:this.rowHeights[this.chartRowCount-2])+(this.isVertical?this.itemPadding:l)):(e.location.x=n===a?o.location.x:h,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);this.isVertical||!this.isPaging||this.legend.enablePages||(c=this.legendBounds.width-e.location.x-this.fivePixel),c=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,c):c,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=ze(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},o.prototype.isWithinBounds=function(e,t,i){return this.isRtlEnable?e-t<i.x-this.legend.shapeWidth/2:e+t>i.x+i.width+this.legend.shapeWidth/2},o.prototype.LegendClick=function(e,t){var i=this.chart,o="Series"===i.legendSettings.mode?e:0,r=this.isReverse?this.legendCollections.length-1-e:e,n=i.visibleSeries[o],a=this.legendCollections[r];if("Series"===i.legendSettings.mode){s={legendText:a.text,legendShape:a.shape,series:n,cancel:!1};this.chart.trigger(Di,s),n.legendShape=s.legendShape,s.cancel||(null!==n.fill&&(i.visibleSeries[e].interior=n.fill),i.legendSettings.toggleVisibility?(n.chart.isProtectedOnChange=!0,this.changeSeriesVisiblity(n,n.visible),a.visible=n.visible,this.refreshLegendToggle(i,n)):i.highlight3DModule?i.highlight3DModule.legendSelection(i,e,t.target,t.type):i.selection3DModule&&i.selection3DModule.legendSelection(i,e,t.target,t.type),n.chart.isProtectedOnChange=!1)}else if("Point"===i.legendSettings.mode){var l=n.points[e],s={legendText:a.text,legendShape:a.shape,series:n,cancel:!1};this.chart.trigger(Di,s),i.legendSettings.toggleVisibility&&!s.cancel&&(l.visible=!l.visible,this.legendCollections[e].visible=l.visible,this.refreshLegendToggle(i,n))}},o.prototype.refreshLegendToggle=function(e,o){var r=[];if(e.selection3DModule&&(r=t.extend([],e.selection3DModule.selectedDataIndexes,null,!0)),e.svgObject.childNodes.length>0){for(;e.svgObject.lastChild;)e.svgObject.removeChild(e.svgObject.lastChild);t.remove(e.svgObject)}e.animateSeries=!1,g(i.getElement(e.element.id+"_Secondary_Element").querySelectorAll(".ejSVGTooltip")[0]),this.redrawSeriesElements(o,e),e.removeSvg(),e.refreshAxis(),o.refreshAxisLabel(),this.refreshSeries(e.visibleSeries),e.polygons=[],e.refreshBound(),e.trigger("loaded",{chart:e}),r.length>0&&(e.selection3DModule.selectedDataIndexes=r,e.selection3DModule.redrawSelection(e,e.selectionMode)),(e.highlight3DModule&&"None"!==e.highlightMode||e.legendSettings.enableHighlight)&&e.highlight3DModule.redrawSelection(e,e.highlightMode),e.redraw=!1},o.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible}))},o.prototype.isSecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},o.prototype.redrawSeriesElements=function(e,t){if(!t.redraw)return null;g(t.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections")},o.prototype.refreshSeries=function(e){for(var t=0,i=e;t<i.length;t++)i[t].position=void 0},o.prototype.click=function(e){if(this.chart.legendSettings.visible){for(var t,i=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,o=0,r=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"];o<r.length;o++){var n=r[o];if(i.indexOf(n)>-1){t=parseInt(i.split(n)[1],10),this.LegendClick(t,e);break}}i.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):i.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1)}},o.prototype.getModuleName=function(){return"Legend3D"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),Yc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Zc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},qc=function(e){function o(t,i){var o=e.call(this,t,i)||this;return o.previousTargetId="",o.currentPointIndex=0,o.currentSeriesIndex=0,o.currentLegendIndex=0,o.animated=!1,o.isPointMouseDown=!1,o.visible=0,o.clickCount=0,o.maxPointCount=0,o.singleClickTimer=0,o.isRtlEnabled=!1,o.scaleX=1,o.scaleY=1,o.chartId=57723,o.isLegendClicked=!1,o.rotateActivate=!1,o.isRemove=!1,o.polygons=[],o}return Yc(o,e),o.prototype.isIdHasSpecialCharacter=function(e){var t=/^[A-Za-z ]+$/,i=/^[0-9 ]+$/,o="";if(t.test(e))return e;var r=0;i.test(e[0])&&(o+="\\3"+e[0],r=1);for(var n=r;n<e.length;n++)t.test(e[n])||-1!==e.indexOf("-")||-1!==e.indexOf("_")||-1!==e.indexOf("\\")||i.test(e[n])?o+=e[n]:o+="\\"+e[n];return o},o.prototype.preRender=function(){this.element.id=this.isIdHasSpecialCharacter(this.element.id),this.allowServerDataBinding=!1,this.unWireEvents(),this.initPrivateVariable(),this.setCulture(),this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":"")},o.prototype.initPrivateVariable=function(){if(this.delayRedraw=!1,this.animateSeries=!0,this.horizontalAxes=[],this.verticalAxes=[],this.polygons=[],this.vector=new lc(0,0,0),this.wallRender=new bc,this.matrixObj=new sc,this.bspTreeObj=new dc,this.polygon=new uc,this.graphics=new cc,this.transform3D=new hc,this.svg3DRenderer=new pc,this.axisRender=new xc,this.chart3DRender=new nc,this.chartAxisLayoutPanel=new oc(this),this.refreshAxis(),this.refreshDefinition(this.rows),this.refreshDefinition(this.columns),this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[]),this.element.setAttribute("role","region"),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.setAttribute("aria-label",this.description||this.title+". Syncfusion interactive chart."),this.element.classList.contains("e-chart-focused")||this.element.setAttribute("class",this.element.getAttribute("class")+" e-chart-focused"),""===this.element.id){var e=document.getElementsByClassName("e-chart").length;this.element.id="chart_"+this.chartId+"_"+e}this.svgId=this.element.id+"_svg"},o.prototype.setCulture=function(){this.intl=new t.Internationalization,this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},o.prototype.render=function(){var e=this;this.svgRenderer=new i.SvgRenderer(this.element.id);var t={chart:this,theme:this.theme,cancel:!1};this.trigger(ki,t,function(){t.cancel||e.cartesianChartRendering()})},o.prototype.cartesianChartRendering=function(){this.setTheme(),this.createChartSvg(),this.calculateVisibleSeries(),this.calculateVisibleAxis(),this.processData(),this.renderComplete(),this.allowServerDataBinding=!0},o.prototype.createChartSvg=function(){this.removeSvg(),Xe(this)},o.prototype.removeSvg=function(){if(this.redraw)return null;i.removeElement(this.element.id+"_Secondary_Element"),this.isReact&&this.clearTemplate();if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&t.remove(this.svgObject)}},o.prototype.processData=function(e){void 0===e&&(e=!0),this.visibleSeriesCount=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.visible||this.legendSettings.visible?this.initializeDataModule(o):this.visibleSeriesCount++}!e||this.visibleSeries.length&&this.visibleSeriesCount!==this.visibleSeries.length||(this.refreshBound(),this.trigger("loaded",{chart:this}))},o.prototype.initializeDataModule=function(e){e.xData=[],e.yData=[];var t;t=this.isAngular?Object.keys(e.dataSource).length?e.dataSource:this.dataSource:e.dataSource||this.dataSource,e.dataModule=new No(t,e.query),e.points=[],e.refreshDataManager(this)},o.prototype.animate=function(e){this.redraw=!0,this.animated=!0,this.duration=e||1e3},o.prototype.refreshBound=function(){this.legend3DModule&&this.legendSettings.visible&&this.legend3DModule.getLegendOptions(this.visibleSeries,this),this.tooltip.enable&&this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[]),this.calculateStackValues(),this.calculateBounds(),this.renderElements(),i.removeElement("chartmeasuretext"),this.removeSelection()},o.prototype.removeSelection=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];if(i.visible)for(var o=0,r=i.points;o<r.length;o++)r[o].isSelect=!1}},o.prototype.calculateStackValues=function(){for(var e,t=!1,i=0,o=this.visibleSeries.length;i<o;i++)(e=this.visibleSeries[i]).position=e.rectCount=void 0,-1===e.type.indexOf("Stacking")||t||(e.calculateStackedValue(e.type.indexOf("100")>-1,this),t=!0)},o.prototype.calculateBounds=function(){var e=this.margin,t=0,o=0,r=0,n="Top"===this.titleStyle.position||"Bottom"===this.titleStyle.position?15:5,a=e.left+this.border.width,l=this.availableSize.width-a-e.right-this.border.width,s=0,h=e.top+this.border.width,c=this.availableSize.height-h-this.border.width-e.bottom;if(this.titleCollection=[],this.subTitleCollection=[],this.title){if(this.titleCollection=Ge(this.title,this.titleStyle,"Left"===this.titleStyle.position||"Right"===this.titleStyle.position?c:l,this.enableRtl,this.themeStyle.chartTitleFont),t=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length+n,this.subTitle){for(var d=0,p=0,u=this.titleCollection;p<u.length;p++){var g=u[p];d=(r=i.measureText(g,this.titleStyle,this.themeStyle.chartSubTitleFont).width)>d?r:d}this.subTitleCollection=Ge(this.subTitle,this.subTitleStyle,d,this.enableRtl,this.themeStyle.chartSubTitleFont),o=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length+n}}else"Top"!==this.legendSettings.position&&this.border.width&&(s=10);h=e.top+s+this.border.width,c=this.availableSize.height-h-this.border.width-e.bottom;var m=o+t+this.titleStyle.border.width+this.subTitleStyle.border.width;switch(this.titleStyle.position){case"Top":h+=m,c-=m;break;case"Bottom":c-=m;break;case"Left":a+=m,l-=m;break;case"Right":a-=this.titleStyle.border.width+this.subTitleStyle.border.width,l-=m}this.initialClipRect=new i.Rect(a,h,l,c),this.legend3DModule&&this.legendSettings.visible&&this.legend3DModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null),this.chartAxisLayoutPanel.measureAxis(this.initialClipRect)},o.prototype.renderElements=function(){this.renderBorder(),this.renderTitle(),this.createSeriesElements(),this.render3DChart(),this.renderLegend(),this.performSelection(),this.setSecondaryElementPosition(),this.doAnimation()},o.prototype.animateRect=function(e,i,o,r,n,a){var l,s,h=i.animation,c=i.chart.animated?i.chart.duration:h.duration,d=Y("Linear"),p=e.getAttribute("height")?+e.getAttribute("height"):0,u=e.getAttribute("width")?+e.getAttribute("width"):0,g=o.yValue<0,m=+e.getAttribute("x"),y=+e.getAttribute("y");i.chart.requireInvertedAxis?i.type.indexOf("Stacking")>-1?(l=m,s=y):(s=g?y:y+p,l=g!==i.yAxis.isAxisInverse?m+u:m):(s=g!==i.yAxis.isAxisInverse?y:y+p,l=g?m:m+u);var f;t.isNullOrUndefined(e)||(e.style.visibility="hidden",r&&(r.style.visibility="hidden"),n&&(n.style.visibility="hidden"),a&&(a.style.visibility="hidden"),new t.Animation({}).animate(e,{duration:0===c&&"Enable"===t.animationMode?1e3:c,delay:h.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",i.chart.requireInvertedAxis?(u=u||1,f=d(t.timeStamp-t.delay,0,u,t.duration),e.setAttribute("transform","translate("+l+" "+s+") scale("+f/u+", 1) translate("+-l+" "+-s+")")):(p=p||1,f=d(t.timeStamp-t.delay,0,p,t.duration),e.setAttribute("transform","translate("+l+" "+s+") scale(1,"+f/p+") translate("+-l+" "+-s+")")))},end:function(){e.setAttribute("transform","translate(0,0)"),r&&(r.style.visibility="visible"),n&&(n.style.visibility="visible"),a&&(a.style.visibility="visible"),i.chart.trigger("animationComplete",{series:i})}}))},o.prototype.doAnimation=function(){for(var e=this,t=this,i=0;i<this.visibleSeries.length;i++)!function(i){var o=t.visibleSeries[i];if(o.visible&&o.animation.enable&&t.animateSeries&&!t.rotateActivate){var r=void 0,n=void 0,a=void 0,l=new co(t.element.id+"_ChartSeriesClipRect_"+i,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:t.availableSize.width,height:t.availableSize.height}),s=J(t.redraw,l,t.svgRenderer);be(!1,t.chart3D,s.children[0],t.redraw);for(var h=0;o.visiblePoints&&h<o.visiblePoints.length;h++){var c=o.visiblePoints[h];document.querySelectorAll('[id*="region-series-'+i+'"]').forEach(function(t){t.setAttribute("clip-path","url(#"+e.element.id+"_ChartSeriesClipRect_"+i+")")}),o.dataLabel.visible&&(r=he(t.element.id+"-svg-series-"+o.index+"-point-"+h+"-data-label"),n=he(t.element.id+"-svg-data-label-series-"+o.index+"-point-"+h),a=he(t.element.id+"-series-"+o.index+"-data-label-"+h)),t.animateRect(document.getElementById(t.element.id+"_ChartSeriesClipRect_"+i).children[0],o,c,r,n,a)}}}(i)},o.prototype.performSelection=function(){var e=[];this.selection3DModule&&(e=t.extend([],this.selection3DModule.selectedDataIndexes,null,!0),this.selection3DModule.invokeSelection(this)),this.highlight3DModule&&this.highlight3DModule.invokeHighlight(this),(!this.highlight3DModule||this.legendSettings.enableHighlight&&"None"===this.highlightMode)&&this.tooltip3DModule&&this.tooltip3DModule.seriesStyles(),e.length>0&&(this.selection3DModule.selectedDataIndexes=e,this.selection3DModule.redrawSelection(this,this.selectionMode))},o.prototype.renderLegend=function(){if(this.legend3DModule&&this.legend3DModule.legendCollections.length&&this.legendSettings.visible){this.legend3DModule.calTotalPage=!0;var e=this.legend3DModule.legendBounds;this.legend3DModule.renderLegend(this,this.legendSettings,e)}this.redraw||this.element.appendChild(this.svgObject)},o.prototype.setSecondaryElementPosition=function(){var e=he(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=he(this.svgId).getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},o.prototype.initializeModuleElements=function(){this.dataLabelCollections=[];var e=this.element.id;this.series.length&&(this.seriesElements=this.svgRenderer.createGroup({id:e+"SeriesCollection"})),this.dataLabelElements=this.renderer.createGroup({id:e+"DataLabelCollection"})},o.prototype.createSeriesElements=function(){this.initializeModuleElements();var e=this.element.id,t=Ve(this.redraw,e+"_Secondary_Element")||this.createElement("div");t.id=e+"_Secondary_Element",t.style.cssText="position: relative",be(!1,this.element,t,this.redraw),this.tooltip.enable&&be(!1,this.svgObject,this.renderer.createGroup({id:e+"_UserInteraction",style:"pointer-events:none;"}),this.redraw)},o.prototype.renderTitle=function(){var e,t=this.margin;if(this.title){var o=tt(this.titleStyle.textAlignment,this.enableRtl),r=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont);e=new i.Rect(t.left,0,this.availableSize.width-t.left-t.right,0);var n=this.titleStyle.border.width,a=this.margin.top+3*r.height/4,l=Ye(e,this.titleStyle||this.themeStyle.chartTitleFont)+n,s=void 0,h=this.titleStyle.textAlignment,c=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":a+=.5*n,l+="start"===o?.5*n+this.border.width:"end"===o?2*-n-this.border.width:0;break;case"Bottom":l+="start"===o?.5*n+this.border.width:"end"===o?2*-n-this.border.width:0,a=this.availableSize.height-this.margin.bottom-c.height-r.height/2-.5*n-.5*this.subTitleStyle.border.width;break;case"Left":l=this.margin.left+3*r.height/4+.5*n,a="Near"===h?t.bottom+.5*n+this.border.width:"Far"===h?this.availableSize.height-t.bottom-.5*n-this.border.width:this.availableSize.height/2,o="Near"===h?"end":"Far"===h?"start":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,s="rotate(-90,"+l+","+a+")";break;case"Right":l=this.availableSize.width-this.margin.right-3*r.height/4-.5*n,a="Near"===h?t.bottom+.5*n+this.border.width:"Far"===h?this.availableSize.height-t.bottom-.5*n-this.border.width:this.availableSize.height/2,o="Near"===h?"start":"Far"===h?"end":"middle",o=this.enableRtl?"end"===o?"start":"start"===o?"end":o:o,s="rotate(90,"+l+","+a+")";break;case"Custom":l=this.titleStyle.x,a=this.titleStyle.y,o="middle"}var d={id:this.element.id+"-chart-title-border",x:l-("middle"===o?r.width/2+5:"end"===o?r.width+5:5),y:a-r.height+r.height/4,rx:this.titleStyle.border.cornerRadius,ry:this.titleStyle.border.cornerRadius,width:r.width+10,height:r.height*this.titleCollection.length,fill:this.titleStyle.background,"stroke-width":n,stroke:this.titleStyle.border.color,transform:s||""},p=Ve(this.redraw,this.element.id+"-chart-title-border",d,this.renderer)||this.renderer.drawRectangle(d);be(!1,this.svgObject,p,this.redraw);var u=new i.TextOption(this.element.id+"-chart-title",l,a,o,this.titleCollection,s,"auto"),g=Ve(this.redraw,this.element.id+"-chart-title",u,this.renderer)||je(this.renderer,u,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,null,null,null,null,null,null,null,null,!1,null,this.themeStyle.chartTitleFont);g&&(g.setAttribute("tabindex","0"),g.style.outline="none",g.setAttribute("class","e-chart-focused")),this.subTitle&&this.renderSubTitle(u)}},o.prototype.renderSubTitle=function(e){for(var t=0,o=0,r=this.titleStyle.textAlignment,n=0,a=this.titleCollection;n<a.length;n++){var l=a[n];t=(o=i.measureText(l,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?o:t}var s=i.measureText(this.subTitleCollection.reduce(function(e,t){return e.length>t.length?e:t}),this.subTitleStyle,this.themeStyle.chartSubTitleFont),h=tt(this.subTitleStyle.textAlignment,this.enableRtl),c=new i.Rect("Center"===r?e.x-.5*t:"Far"===r?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(c.x="Center"===r?e.x-.5*t:"Far"===r?this.margin.left+3*s.height/4:e.x-t);var d=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont),p=e.y*e.text.length+s.height+5+this.titleStyle.border.width+.5*this.subTitleStyle.border.width;"Bottom"===this.titleStyle.position&&(p=e.y*e.text.length+5+d.height/2+s.height/2);var u={id:this.element.id+"-chart-sub-title-border",x:Ye(c,this.subTitleStyle)-("middle"===h?s.width/2+5:"end"===h?s.width+5:5),y:p-s.height+s.height/4,rx:this.subTitleStyle.border.cornerRadius,ry:this.subTitleStyle.border.cornerRadius,width:s.width+10,height:s.height*this.subTitleCollection.length,fill:this.subTitleStyle.background,"stroke-width":this.subTitleStyle.border.width,stroke:this.subTitleStyle.border.color,transform:e.transform},g=Ve(this.redraw,this.element.id+"-chart-sub-title-border",u,this.renderer)||this.renderer.drawRectangle(u);be(!1,this.svgObject,g,this.redraw);var m=new i.TextOption(this.element.id+"-chart-sub-title",Ye(c,this.subTitleStyle),p,tt(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto");Ve(this.redraw,this.element.id+"-chart-sub-title",m,this.renderer)||je(this.renderer,m,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,null,null,null,null,null,null,null,null,!1,null,this.themeStyle.chartSubTitleFont)},o.prototype.renderBorder=function(){var e=this.border.width,t=this.backgroundImage,o=t?"transparent":this.background||this.themeStyle.background,r=new co(this.element.id+"-chart-border",o,this.border,1,new i.Rect(.5*e+0,.5*e+0,this.availableSize.width-e,this.availableSize.height-e),0,0,"",this.border.dashArray);if(this.htmlObject=Ve(this.redraw,this.element.id+"-chart-border",r,this.renderer)||this.renderer.drawRectangle(r),this.htmlObject.setAttribute("aria-hidden","true"),be(!1,this.svgObject,this.htmlObject,this.redraw),t){var n=new po(this.availableSize.height-e,this.availableSize.width-e,t,0,0,this.element.id+"-chart-background","visible","none");this.htmlObject=Ve(this.redraw,this.element.id+"-chart-background",n,this.renderer)||this.renderer.drawImage(n),be(!1,this.svgObject,this.htmlObject,this.redraw)}},o.prototype.requiredModules=function(){var e,t=this,i=[],o=this.series,r=!1;return this.tooltip.enable&&i.push({member:"Tooltip3D",args:[this]}),o.map(function(n){t.isLegend=t.legendSettings.visible&&(""!==n.name||!!t.isLegend),e=-1!==n.type.indexOf("100")?n.type.replace("100","")+"Series3D":n.type+"Series3D",r=n.dataLabel.visible||r,i.some(function(t){return t.member===e})||i.push({member:e,args:[t,o]})}),r&&i.push({member:"DataLabel3D",args:[this,o]}),i=this.findAxisModule(i),this.isLegend&&i.push({member:"Legend3D",args:[this]}),this.enableExport&&i.push({member:"Export3D",args:[this]}),"None"!==this.selectionMode&&i.push({member:"Selection3D",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&i.push({member:"Highlight3D",args:[this]}),i},o.prototype.findAxisModule=function(e){var t=[];t.push(this.primaryXAxis),t.push(this.primaryYAxis);for(var i=!1,o=!1,r=!1,n=!1,a=0,l=t=t.concat(this.axes);a<l.length;a++){var s=l[a];i="DateTime"===s.valueType||i,o="Category"===s.valueType||o,r="Logarithmic"===s.valueType||r,n="DateTimeCategory"===s.valueType||n}return i&&e.push({member:"DateTime3D",args:[this]}),o&&e.push({member:"Category3D",args:[this]}),r&&e.push({member:"Logarithmic3D",args:[this]}),n&&e.push({member:"DateTimeCategory3D",args:[this]}),e},o.prototype.setTheme=function(){this.themeStyle=Zt(this.theme)},o.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},o.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*=_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_ChartTitle],g[id*=_chart_legend],  text[id*=_ChartSubTitle], div[id*=_Annotation]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},o.prototype.render3DChart=function(){this.chart3D=this.svgRenderer.createGroup({id:this.element.id+"-svg-chart-3d"}),this.chart3D.setAttribute("role","region"),this.chart3D.setAttribute("aria-hidden","false"),this.draw3DAxis(),this.wallRender.update3DWall(this),this.renderSeries(),be(!1,this.svgObject,this.chart3D,this.redraw);var e=new i.Size(this.availableSize.width,this.availableSize.height);this.graphics.prepareView(this.perspectiveAngle,this.depth,this.rotation,this.tilt,e,this),this.graphics.view(this.svgObject,this)},o.prototype.draw3DAxis=function(){for(var e=0;e<this.axisCollections.length;e++)this.axisRender.drawAxes(e,this.axisCollections[e],this)},o.prototype.renderSeries=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&(this.visible++,i.renderSeries(this))}this.visible=0},o.prototype.initAxis=function(e,t,i){e.xAxisName===t.name||null==e.xAxisName&&"primaryXAxis"===t.name?(t.orientation=this.requireInvertedAxis?"Vertical":"Horizontal",e.xAxis=t,i&&t.series.push(e)):(e.yAxisName===t.name||null==e.yAxisName&&"primaryYAxis"===t.name)&&(t.orientation=this.requireInvertedAxis?"Horizontal":"Vertical",e.yAxis=t,i&&t.series.push(e))},o.prototype.calculateVisibleAxis=function(){var e,t=[this.primaryXAxis,this.primaryYAxis];t=t.concat(this.axes),this.axisCollections=[];for(var i=0,o=t.length;i<o;i++){(e=t[i]).series=[],e.labels=[],e.indexLabels={},e.orientation=0===i?this.requireInvertedAxis?"Vertical":"Horizontal":1===i?this.requireInvertedAxis?"Horizontal":"Vertical":e.orientation;for(var r=0,n=this.visibleSeries;r<n.length;r++){var a=n[r];this.initAxis(a,e,!0)}null!=e.orientation&&this.axisCollections.push(e)}this.rows.length>0&&this.columns.length>0&&this.chartAxisLayoutPanel.measure()},o.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.chartOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,r,this.mouseLeave),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.touchObject&&(this.touchObject.destroy(),this.touchObject=null)},o.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.chartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),this.resizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.longPressBound=this.longPress.bind(this),this.touchObject=new t.Touch(this.element,{tapHold:this.longPressBound,tapHoldThreshold:500}),this.setStyle(this.element)}},o.prototype.longPress=function(e){return this.mouseX=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientX:0,this.mouseY=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientY:0,this.startMove=!0,this.setMouseXY(this.mouseX,this.mouseY),this.notify("tapHold",e),!1},o.prototype.chartOnMouseClick=function(e){var t=this,i=e.target,o=this,r=400;1===++this.clickCount?this.singleClickTimer=+setTimeout(function(){o.clickCount=0,o.trigger("chart3DMouseClick",{target:i.id,x:o.mouseX,y:o.mouseY})},r):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0);return r=(this.isAngular,0),1===this.clickCount&&this.pointClick&&(this.singleClickTimer=+setTimeout(function(){t.clickCount=0,t.triggerPointEvent("pointClick",e)},r)),this.removeNavigationStyle(),this.notify("click",e),!1},o.prototype.export=function(e,t){this.export3DModule&&(this.export3DModule.export(e,t),this.afterExport&&this.export3DModule.getDataUrl(this))},o.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,currentSize:new i.Size(0,0),previousSize:new i.Size(this.availableSize.width,this.availableSize.height)},o={cancel:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger("beforeResize",o),o.cancel||(this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);e.createChartSvg(),t.currentSize=e.availableSize,e.trigger("resized",t),e.polygons=[],e.refreshAxis(),e.refreshBound(),e.trigger("loaded",{chart:e})},500)),!1},o.prototype.triggerPointEvent=function(e,i){var o,r,n,a=null,l=null,s=i.target;if(s){var h=s.nodeName;("path"===h||"shape"===h)&&s.id.indexOf("-region-")>1&&(o=s.id.match(/(\d+)/g),r=parseInt(o[o.length-1].toString(),10),n=parseInt(o[o.length-2].toString(),10)),t.isNullOrUndefined(n)||(a=this.visibleSeries[n]),a&&a.visible&&(l=a.points[r])}a&&l&&this.trigger(e,{series:a,point:l,seriesIndex:n,pointIndex:r,x:this.mouseX,y:this.mouseY})},o.prototype.chartOnMouseDown=function(e){var i,o,r,n=this.element.getBoundingClientRect(),a=e.target;this.trigger("chart3DMouseDown",{target:a.id,x:this.mouseX,y:this.mouseY}),"touchstart"===e.type?(this.isTouch=!0,i=(r=e).changedTouches[0].clientX,o=r.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY);var l=he(this.svgId).getBoundingClientRect();return this.mouseDownX=this.previousMouseMoveX=i-n.left-Math.max(l.left-n.left,0),this.mouseDownY=this.previousMouseMoveY=o-n.top-Math.max(l.top-n.top,0),this.enableRotation&&(this.isTouch&&this.tooltip3DModule&&this.tooltip3DModule.svgTooltip&&this.tooltip3DModule.svgTooltip.fadeOut(),this.rotateActivate=!0,this.previousCoords={x:this.mouseDownX,y:this.mouseDownY}),this.notify(t.Browser.touchStartEvent,e),!1},o.prototype.mouseMove=function(e){var t,i,o;return"touchmove"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,i=e.clientY),he(this.svgId)&&(this.setMouseXY(t,i),this.chartOnMouseMove(e)),!1},o.prototype.mouseLeave=function(e){var t,i,o;return"touchleave"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY),this.setMouseXY(t,i),this.chartOnMouseLeave(e),!1},o.prototype.mouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,this.isTouch=!0,t=o.changedTouches[0].clientY):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,t),this.chartOnMouseUp(e),!1},o.prototype.chartOnMouseUp=function(e){var i=e.target;return this.trigger("chart3DMouseUp",{target:i.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY,this.isTouch)),this.notify(t.Browser.touchEndEvent,e),this.rotateActivate=!1,this.delayRedraw=!1,!1},o.prototype.print=function(e){new Jo(this).print(e)},o.prototype.chartOnMouseMove=function(e){var i=e.target;if(this.trigger("chart3DMouseMove",{target:i.id,x:this.mouseX,y:this.mouseY}),this.pointMove&&this.triggerPointEvent("pointMove",e),this.isTouch||(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY)),this.rotateActivate&&V(this.mouseX,this.mouseY,this.chartAxisLayoutPanel.seriesClipRect)){var o=this.previousCoords.x-this.mouseX,r=this.previousCoords.y-this.mouseY;if(o||r){if(this.tilt-=r,this.rotation+=o,this.isTouch)document.querySelectorAll('[id*="axis-label-"]').forEach(function(e){return e.remove()}),this.delayRedraw=!0;else{var n=document.getElementById(this.chart3D.id);n.innerHTML="",n.remove()}var a={width:this.availableSize.width,height:this.availableSize.height};this.graphics.view(this.svgObject,this,this.rotation,this.tilt,a,this.perspectiveAngle,this.depth),be(!1,this.svgObject,this.chart3D,this.redraw),this.previousCoords.y=this.mouseY,this.previousCoords.x=this.mouseX,this.isRemove=!1}}return this.notify(t.Browser.touchMoveEvent,e),this.isTouch=!1,!1},o.prototype.titleTooltip=function(e,t,o,r){var n=e.target.id,a=n===this.element.id+"-chart-title"||n===this.element.id+"-chart-sub-title"||n.indexOf("-axis-title")>-1||n.indexOf("_legend_title")>-1,l=0;n.indexOf("-axis-title")>-1&&(l=parseInt(n.replace(this.element.id+"-svg","").replace("-axis-title","").split("-")[1],10)),a&&e.target.textContent.indexOf("...")>-1?y(n===this.element.id+"-chart-title"?this.title:n.indexOf("-axis-title")>-1?this.axisCollections[l].title:n.indexOf("-chart-sub-title")>-1?this.subTitle:this.legendSettings.title,t,o,this.element.offsetWidth,this.element.id+"-EJ2-title-tooltip",he(this.element.id+"_Secondary_Element"),r):i.removeElement(this.element.id+"-EJ2-title-tooltip")},o.prototype.setMouseXY=function(e,t){if(he(this.svgId)){var i=he(this.svgId).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.mouseY=t-o.top-Math.max(i.top-o.top,0)/this.scaleX,this.mouseX=e-o.left-Math.max(i.left-o.left,0)/this.scaleY}},o.prototype.chartOnMouseLeave=function(e){var o=e.target,r=t.Browser.isPointer?"pointerleave":"mouseleave";return this.trigger("chart3DMouseLeave",{target:o.id,x:this.mouseX,y:this.mouseY}),i.removeElement(this.element.id+"-EJ2-axis-label-tooltip"),this.isPointMouseDown=!1,this.notify(r,e),this.rotateActivate=!1,this.delayRedraw=!1,!1},o.prototype.chartKeyDown=function(e){var t="";return"Tab"===e.code&&this.removeNavigationStyle(),"Space"===e.code&&e.preventDefault(),this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("-series")>-1||"Escape"===e.code)&&(t="ESC"),"None"!==this.highlightMode&&"Tab"===e.code&&this.previousTargetId.indexOf("_chart_legend_")>-1&&this.highlight3DModule&&this.highlight3DModule.removeLegendHighlightStyles(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),!1},o.prototype.chartKeyUp=function(e){var t,i="",o=e.target.id,r=e.target,n=he(this.element.id+"-chart-title"),a=he(this.element.id+"-svg-0-region-series-0-point-0"),l=he(this.element.id+"_chart_legend_translate_g"),s=he(this.element.id+"_chart_legend_pageup");if(this.removeNavigationStyle(),n&&n.setAttribute("class","e-chart-focused"),a&&((c=a.getAttribute("class"))&&-1===c.indexOf("e-chart-focused")?c+=" e-chart-focused":c||(c="e-chart-focused"),a.setAttribute("class",c)),l){var h=l.firstElementChild,c=h.getAttribute("class");c&&-1===c.indexOf("e-chart-focused")?c+=" e-chart-focused":c||(c="e-chart-focused"),h.setAttribute("class",c)}if(s&&s.setAttribute("class","e-chart-focused"),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("-series-")>-1&&-1===o.indexOf("-series-")){var d=he(this.element.id+"-svg-0-region-series-"+this.currentSeriesIndex+"-point-"+this.currentPointIndex);this.setTabIndex(d,a),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===o.indexOf("_chart_legend_page")&&-1===o.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,he(this.element.id+"_chart_legend_pageup")):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===o.indexOf("_chart_legend_g_")&&(t=he(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));this.previousTargetId=o,o.indexOf("-series-")>-1&&(this.currentSeriesIndex=+o.split("-series-")[1].split("-point-")[0],r.removeAttribute("tabindex"),r.blur(),o=this.focusChild(r)),i="None"!==this.highlightMode||this.tooltip.enable?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=o,o.indexOf("_chart_legend_page")>-1)"ArrowLeft"===e.code?(he(this.element.id+"_chart_legend_pagedown").removeAttribute("tabindex"),this.focusChild(he(this.element.id+"_chart_legend_pageup"))):"ArrowRight"===e.code&&(he(this.element.id+"_chart_legend_pageup").removeAttribute("tabindex"),this.focusChild(he(this.element.id+"_chart_legend_pagedown")));else if(o.indexOf("_chart_legend_")>-1){var p=r.parentElement.children;p[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,p.length);var u=p[this.currentLegendIndex];this.focusChild(u),this.removeNavigationStyle(),this.setNavigationStyle(u.id),o=u.children[1].id,i="None"!==this.highlightMode?"ArrowMove":""}else if(o.indexOf("-series-")>-1){var g=e.target;if(r.removeAttribute("tabindex"),r.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code?(this.currentSeriesIndex=this.currentSeriesIndex+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=this.getActualIndex(this.currentSeriesIndex,this.series.length)):this.currentPointIndex+="ArrowUp"===e.code?1:-1,o.indexOf("-point-")>-1){this.currentPointIndex=this.getActualIndex(this.currentPointIndex,this.visibleSeries[this.currentSeriesIndex].points.length?this.currentSeries.points.length:1);for(var m=document.querySelectorAll('[id*="svg-0-region-series-'+this.currentSeriesIndex+"-point-"+this.currentPointIndex+'"]'),y=0;y<m.length;y++)m[y].id.split("-point-")[1].split("-")[0]===this.currentPointIndex.toString()&&(g=m[y])}o=this.focusChild(g),this.removeNavigationStyle(),this.setNavigationStyle(g.id),i=this.tooltip.enable||"None"!==this.highlightMode?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(o.indexOf("_chart_legend_")>-1||o.indexOf("-point-")>-1)||(o=o.indexOf("_chart_legend_page")>-1?o:o.indexOf("_chart_legend_")>-1?r.children[1].id:o,i="Enter");return""!==i&&this.chartKeyboardNavigations(e,o,i),"Tab"===e.code&&this.setNavigationStyle(o),!1},o.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},o.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},o.prototype.axisTooltip=function(e,t,o,r){var n=e.target.id;if(n.indexOf("axis-label")>-1&&e.target.textContent.indexOf("...")>-1){var a=this.legendSettings.visible||""===this.primaryXAxis.title;y(this.findAxisLabel(n),t,o,this.element.offsetWidth,this.element.id+"-EJ2-axis-label-tooltip",he(this.element.id+"_Secondary_Element"),r,a)}else i.removeElement(this.element.id+"-EJ2-axis-label-tooltip")},o.prototype.findAxisLabel=function(e){var t=e.replace(this.element.id+"-","").replace("-axis-label","").split("-");return this.axisCollections[parseInt(t[0],10)].visibleLabels[parseInt(t[1],10)].originalText},o.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-chart-focused")?t="e-chart-focused "+t:t||(t="e-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!t.isNullOrUndefined(this.element)&&this.element.focus()},o.prototype.chartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,this.removeNavigationStyle(),this.setNavigationStyle(t),i){case"Tab":case"ArrowMove":if(this.highlight3DModule&&this.highlight3DModule.removeLegendHighlightStyles(),t.indexOf("-point-")>-1){if(document.activeElement){var o=document.activeElement.getBoundingClientRect(),r=o.left+o.width/2,n=o.top,a=window.scrollX+r,l=window.scrollY+n;this.mouseX=a,this.mouseY=l}if(this.highlight3DModule&&(this.highlight3DModule.highlightChart(document.getElementById(t),"mousemove"),this.highlight3DModule.completeSelection()),this.tooltip3DModule){var s={series:this.visibleSeries[t.split("-series-")[1].split("-point-")[0]],point:this.visibleSeries[t.split("-series-")[1].split("-point-")[0]].points[t.split("-point-")[1].split("-")[0]]},h=document.getElementById(this.element.id+"_tooltip_svg"),c=h&&parseInt(h.getAttribute("opacity"),10)>0,d=this.tooltip3DModule.getTooltipElement(c);this.tooltip3DModule.pushData(s,!c,d,!0)&&this.tooltip3DModule.triggerTooltipRender(s,!c,this.tooltip3DModule.getTooltipText(s),this.tooltip3DModule.findHeader(s))}}if(this.highlight3DModule&&"None"!==this.highlightMode){t=t.indexOf("_chart_legend_g_")>-1?document.getElementById(t).firstChild.id:t;for(var p=this.element.id+"_chart_legend",u=[p+"_text_",p+"_shape_marker_",p+"_shape_"],g=0;g<u.length;g++){var m=u[g];if(t.indexOf(m)>-1){document.getElementById(t).setAttribute("class",""),this.highlight3DModule.legendSelection(this,parseInt(t.split(m)[1],10),document.getElementById(t),"mousemove");break}}}break;case"Enter":case"Space":t.indexOf("_chart_legend_")>-1?(this.isLegendClicked=!0,this.legend3DModule.click(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id)):(this.selection3DModule&&this.selection3DModule.calculateSelectedElements(document.getElementById(t),"click"),this.setNavigationStyle(t));break;case"CtrlP":this.print();break;case"ESC":this.tooltip3DModule.removeTooltip(1)}},o.prototype.setStyle=function(e){var t="None"!==this.selectionMode||"None"!==this.highlightMode;e.style.touchAction=this.enableRotation||t?"none":"element",e.style.msTouchAction=t?"none":"element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},o.prototype.isSecondaryAxis=function(e){return this.axes.indexOf(e)>-1},o.prototype.refreshDefinition=function(e){for(var t=0,i=e;t<i.length;t++)i[t].axes=[]},o.prototype.addSeries=function(e){this.animateSeries=!1;for(var t=0,i=e;t<i.length;t++){var o=i[t];o=new Bc(this,"series",o),this.series.push(o)}this.refresh()},o.prototype.removeSeries=function(e){this.redraw=!1,this.animateSeries=!1,this.visibleSeries[e]&&(this.visibleSeries[e].xAxis.orientation=null,this.visibleSeries[e].yAxis.orientation=null);for(var t=0;t<this.axes.length;t++)null===this.axes[t].orientation&&this.axes.splice(t,1);this.series.splice(e,1),this.refresh()},o.prototype.refreshAxis=function(){var e=this.primaryXAxis;e.rect=new i.Rect(void 0,void 0,0,0),(e=this.primaryYAxis).isStack100=!1,e.rect=new i.Rect(void 0,void 0,0,0);for(var t=0,o=this.axes;t<o.length;t++)(e=o[t]).rect=new i.Rect(void 0,void 0,0,0),e.isStack100=!1},o.prototype.axisChange=function(e){return!(!e.name&&!e.valueType)&&(this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(),!0)},o.prototype.getVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},o.prototype.removeStyles=function(){i.removeElement(this.element.id+"_ej2_chart_selection"),i.removeElement(this.element.id+"_ej2_chart_highlight")},o.prototype.calculateVisibleSeries=function(){var e;this.visibleSeries=[];var t=this.palettes.length?this.palettes:qt(this.theme),i=t.length,o=this.series,r=this.series[0];r&&(this.requireInvertedAxis=-1!==r.type.indexOf("Bar")&&!this.isTransposed||-1===r.type.indexOf("Bar")&&this.isTransposed);for(var n=0,a=o.length;n<a;n++){switch(e=o[n],e.category="Series",e.index=n,e.interior=e.fill||t[n%i],this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.type){case"Bar":case"StackingBar":case"StackingBar100":if(-1===o[0].type.indexOf("Bar"))continue;break;default:if(o[0].type.indexOf("Bar")>-1)continue}this.visibleSeries.push(e),o[n]=e}},o.prototype.highlightAnimation=function(e,i,o,r){var n=parseFloat(this.visibleSeries[i].opacity.toString());n&&new t.Animation({}).animate(e,{duration:o,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,o=r+(n-r)*i;e.setAttribute("opacity",o.toString())},end:function(){e.setAttribute("opacity",n.toString())}})},o.prototype.stopElementAnimation=function(e,i){var o=parseFloat(this.visibleSeries[i].opacity.toString());e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",o.toString())},o.prototype.destroy=function(){this.horizontalAxes=[],this.verticalAxes=[],this.visibleSeries=[],this.axisCollections=[],this.seriesElements=null,this.chartAxisLayoutPanel=null,this.dataLabelElements=null,this.dataLabelCollections=null,i.removeElement(this.element.id+"Keyboard_chart_focus"),i.removeElement(this.element.id+"_ej2_chart_highlight"),i.removeElement("chartmeasuretext");var t=document.getElementById(this.element.id+"_ej2_chart_highlight");t&&t.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");if(o&&o.remove(),this.element){this.unWireEvents(),this.isReact&&this.clearTemplate(),e.prototype.destroy.call(this),this.polygons=[];var r=document.getElementById(this.chart3D.id);r&&(r.innerHTML="",r.remove()),this.removeSvg(),this.svgObject=null}},o.prototype.getModuleName=function(){return"chart3d"},o.prototype.getPersistData=function(){var e=["loaded"];return this.addOnPersist(e)},o.prototype.onPropertyChanged=function(e,i){var o,r=!1,n=!1;this.animateSeries=!1;var a,l,s=!1;if(!this.delayRedraw){for(var h=0,c=Object.keys(e);h<c.length;h++)switch(c[h]){case"primaryXAxis":o=e.primaryXAxis,n=this.axisChange(o),e.primaryXAxis.edgeLabelPlacement&&(r=!0),n=!0,t.isNullOrUndefined(o.isInversed)&&t.isNullOrUndefined(o.opposedPosition)||this.primaryXAxis.setIsInversedAndOpposedPosition();break;case"primaryYAxis":o=e.primaryYAxis,n=this.axisChange(o),e.primaryYAxis.edgeLabelPlacement&&(r=!0),n=!0,t.isNullOrUndefined(o.isInversed)&&t.isNullOrUndefined(o.opposedPosition)||this.primaryYAxis.setIsInversedAndOpposedPosition();break;case"axes":for(var d=0,p=Object.keys(e.axes);d<p.length;d++){var u=p[d];o=e.axes[u],n=n||this.axisChange(o),n=!0,t.isNullOrUndefined(o.isInversed)&&t.isNullOrUndefined(o.opposedPosition)||this.axes[u].setIsInversedAndOpposedPosition()}break;case"height":case"width":this.createChartSvg(),n=!0;break;case"subTitle":case"title":n=!0;break;case"titleStyle":e.titleStyle&&(e.titleStyle.size||e.titleStyle.textOverflow)?n=!0:r=!0;break;case"subTitleStyle":e.subTitleStyle&&(e.subTitleStyle.size||e.subTitleStyle.textOverflow)?n=!0:r=!0;break;case"border":r=!0;break;case"series":a=this.series.length;for(var g=0;g<a;g++)(l=e.series[g])&&(l.dataSource||l.query||l.xName||l.yName||l.size||l.fill||l.name||l.type)&&(t.extend(this.getVisibleSeries(this.visibleSeries,g),l,null,!0),s=!0);this.availableSize&&this.element&&(this.element.style.height=this.element.style.height&&"inherit"!==this.element.style.height?this.element.style.height:this.availableSize.height+"px"),s&&(this.calculateVisibleSeries(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),n=!0);break;case"background":r=!0;break;case"dataSource":this.processData(!1),n=!0;break;case"legendSettings":e.legendSettings.background&&e.legendSettings.opacity||(n=!0),r=!0;break;case"palettes":this.calculateVisibleSeries(),r=!0;break;case"selectedDataIndexes":this.selection3DModule&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.selectedDataIndexes=this.selectedDataIndexes,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode,!0));break;case"selectionMode":this.selection3DModule&&e.selectionMode&&-1===e.selectionMode.indexOf("Drag")&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode,!0));break;case"isMultiSelect":this.selection3DModule&&!e.isMultiSelect&&this.selection3DModule.selectedDataIndexes.length>1&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode));break;case"highlightMode":case"selectionPattern":case"highlightPattern":this.removeStyles(),r=!0;break;case"theme":this.animateSeries=!0;break;case"enableRtl":case"locale":case"currencyCode":this.refresh();break;case"tooltip":this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[],this.tooltip.template&&(this.tooltip3DModule.template=this.tooltip.template));break;case"enableRotation":case"tilt":case"depth":case"wallSize":case"rotation":case"perspectiveAngle":case"enableSideBySidePlacement":r=!0}!n&&r&&(this.removeSvg(),this.polygons=[],this.renderElements(),this.trigger("loaded",{chart:this})),n&&(this.removeSvg(),this.isReact&&this.clearTemplate(),this.polygons=[],this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this}),this.redraw=!1,this.animated=!1)}},Zc([t.Property("")],o.prototype,"title",void 0),Zc([t.Property("")],o.prototype,"subTitle",void 0),Zc([t.Property("Bootstrap5")],o.prototype,"theme",void 0),Zc([t.Property(null)],o.prototype,"description",void 0),Zc([t.Property(null)],o.prototype,"width",void 0),Zc([t.Property(null)],o.prototype,"backgroundImage",void 0),Zc([t.Property(null)],o.prototype,"background",void 0),Zc([t.Property("")],o.prototype,"dataSource",void 0),Zc([t.Property(null)],o.prototype,"height",void 0),Zc([t.Property(50)],o.prototype,"depth",void 0),Zc([t.Property(2)],o.prototype,"wallSize",void 0),Zc([t.Property(0)],o.prototype,"tilt",void 0),Zc([t.Property(!1)],o.prototype,"enableRotation",void 0),Zc([t.Property(0)],o.prototype,"rotation",void 0),Zc([t.Property(!0)],o.prototype,"enableSideBySidePlacement",void 0),Zc([t.Property(90)],o.prototype,"perspectiveAngle",void 0),Zc([t.Property(null)],o.prototype,"wallColor",void 0),Zc([t.Property(!1)],o.prototype,"isTransposed",void 0),Zc([t.Property("USD")],o.prototype,"currencyCode",void 0),Zc([t.Property(!1)],o.prototype,"enableExport",void 0),Zc([t.Event()],o.prototype,"load",void 0),Zc([t.Event()],o.prototype,"loaded",void 0),Zc([t.Event()],o.prototype,"pointClick",void 0),Zc([t.Event()],o.prototype,"pointMove",void 0),Zc([t.Event()],o.prototype,"pointRender",void 0),Zc([t.Event()],o.prototype,"legendRender",void 0),Zc([t.Event()],o.prototype,"legendClick",void 0),Zc([t.Event()],o.prototype,"seriesRender",void 0),Zc([t.Event()],o.prototype,"textRender",void 0),Zc([t.Event()],o.prototype,"tooltipRender",void 0),Zc([t.Event()],o.prototype,"beforeResize",void 0),Zc([t.Event()],o.prototype,"resized",void 0),Zc([t.Event()],o.prototype,"chart3DMouseMove",void 0),Zc([t.Event()],o.prototype,"chart3DMouseClick",void 0),Zc([t.Event()],o.prototype,"chart3DMouseDown",void 0),Zc([t.Event()],o.prototype,"chart3DMouseLeave",void 0),Zc([t.Event()],o.prototype,"chart3DMouseUp",void 0),Zc([t.Event()],o.prototype,"axisLabelRender",void 0),Zc([t.Event()],o.prototype,"selectionComplete",void 0),Zc([t.Event()],o.prototype,"beforeExport",void 0),Zc([t.Event()],o.prototype,"afterExport",void 0),Zc([t.Event()],o.prototype,"beforePrint",void 0),Zc([t.Complex({},di)],o.prototype,"margin",void 0),Zc([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ic)],o.prototype,"titleStyle",void 0),Zc([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ic)],o.prototype,"subTitleStyle",void 0),Zc([t.Complex({},Xc)],o.prototype,"legendSettings",void 0),Zc([t.Complex({color:"#DDDDDD",width:0},hi)],o.prototype,"border",void 0),Zc([t.Complex({name:"primaryXAxis"},Rc)],o.prototype,"primaryXAxis",void 0),Zc([t.Complex({name:"primaryYAxis"},Rc)],o.prototype,"primaryYAxis",void 0),Zc([t.Complex({},Hc)],o.prototype,"tooltip",void 0),Zc([t.Collection([{}],Lc)],o.prototype,"rows",void 0),Zc([t.Collection([{}],Pc)],o.prototype,"columns",void 0),Zc([t.Collection([{}],Rc)],o.prototype,"axes",void 0),Zc([t.Collection([{}],Bc)],o.prototype,"series",void 0),Zc([t.Property("")],o.prototype,"highlightColor",void 0),Zc([t.Property("None")],o.prototype,"selectionMode",void 0),Zc([t.Property("None")],o.prototype,"highlightMode",void 0),Zc([t.Property("None")],o.prototype,"selectionPattern",void 0),Zc([t.Property("None")],o.prototype,"highlightPattern",void 0),Zc([t.Property(!1)],o.prototype,"isMultiSelect",void 0),Zc([t.Collection([],mi)],o.prototype,"selectedDataIndexes",void 0),Zc([t.Property(!1)],o.prototype,"useGroupingSeparator",void 0),Zc([t.Property([])],o.prototype,"palettes",void 0),o=Zc([t.NotifyPropertyChanges],o)}(t.Component),Qc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qc(t,e),t.prototype.calculateDateTimeNiceInterval=function(e,t,i,o){var r,n=new Date(i),a=new Date(o),l=Math.abs((n.getTime()-a.getTime())/864e5);switch(e.actualIntervalType=e.intervalType,e.intervalType){case"Years":r=this.calculateNumericNiceInterval(e,l/365,t);break;case"Months":r=this.calculateNumericNiceInterval(e,l/30,t);break;case"Days":r=this.calculateNumericNiceInterval(e,l,t);break;case"Hours":r=this.calculateNumericNiceInterval(e,24*l,t);break;case"Minutes":r=this.calculateNumericNiceInterval(e,24*l*60,t);break;case"Seconds":r=this.calculateNumericNiceInterval(e,24*l*60*60,t);break;case"Auto":return(r=this.calculateNumericNiceInterval(e,l/365,t))>=1?(e.actualIntervalType="Years",r):(r=this.calculateNumericNiceInterval(e,l/30,t))>=1?(e.actualIntervalType="Months",r):(r=this.calculateNumericNiceInterval(e,l,t))>=1?(e.actualIntervalType="Days",r):(r=this.calculateNumericNiceInterval(e,24*l,t))>=1?(e.actualIntervalType="Hours",r):(r=this.calculateNumericNiceInterval(e,24*l*60,t))>=1?(e.actualIntervalType="Minutes",r):(r=this.calculateNumericNiceInterval(e,24*l*60*60,t),e.actualIntervalType="Seconds",r)}return r},t.prototype.getSkeleton=function(e){var t=e.actualIntervalType;return e.skeleton?e.skeleton:"Years"===t?"DateTime"===e.valueType&&e.isIntervalInDecimal?"y":"yMMM":"Months"===t?"MMMd":"Days"===t?"DateTime"===e.valueType?"MMMd":"yMd":"Hours"===t?"DateTime"===e.valueType?"Hm":"EHm":"Hms"},t.prototype.findCustomFormats=function(e){var t=e.labelFormat?e.labelFormat:"";return e.skeleton||"Months"!==e.actualIntervalType||t||(t="DateTime"===e.valueType?"MMM yyyy":"yMMM"),t},t}(Cc),Kc=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jc=function(e){function i(t){return e.call(this,t)||this}return Kc(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),e.actualRange={},e.interval?e.actualRange.interval=Math.ceil(e.interval):e.actualRange.interval=Math.max(1,Math.floor(e.doubleRange.delta/oe(t,e))),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end,e.actualRange.delta=e.doubleRange.delta},i.prototype.applyRangePadding=function(e,t){e.actualRange.min-=.5,e.actualRange.max+=.5,e.doubleRange=new Sc(e.actualRange.min,e.actualRange.max),e.actualRange.delta=e.doubleRange.delta,this.calculateVisibleRange(t,e)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[],e.visibleRange.interval=e.visibleRange.interval<1?1:e.visibleRange.interval;var i,o,r=Math.ceil(e.visibleRange.min);for(e.startLabel=e.labels[Math.round(e.visibleRange.min)],e.endLabel=e.labels[Math.floor(e.visibleRange.max)];r<=e.visibleRange.max;r+=e.visibleRange.interval)i=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(r,e.visibleRange)&&e.labels.length>0&&(o=Math.round(r),ee(this.chart,o,e.labels[o]?e.labels[o].toString():o.toString(),i,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Category3D"},i.prototype.destroy=function(){},i}($c),ed=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),td=function(e){function i(t){return e.call(this,t)||this}return ed(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){var i={skeleton:"full",type:"dateTime"},r=this.chart.intl.getDateParser(i),n=this.chart.intl.getDateFormat(i);null!==e.minimum?this.min=Date.parse(r(n(new Date(o.DataUtil.parse.parseJson({val:e.minimum}).val)))):null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=Date.parse(r(n(new Date(1970,1,1))))),null!==e.maximum?this.max=Date.parse(r(n(new Date(o.DataUtil.parse.parseJson({val:e.maximum}).val)))):null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=Date.parse(r(n(new Date(1970,5,1))))),this.min===this.max&&(this.max=this.max+2592e6,this.min=this.min-2592e6),e.actualRange={},e.doubleRange=new Sc(this.min,this.max);var a=this.calculateDateTimeNiceInterval(e,t,e.doubleRange.start,e.doubleRange.end);e.interval?e.actualRange.interval=e.interval:e.actualRange.interval=a,e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end},i.prototype.applyRangePadding=function(e,t){this.min=e.actualRange.min,this.max=e.actualRange.max;var i,o,r=e.actualRange.interval;if(!te(e)){var n=e.getRangePadding(this.chart);i=new Date(this.min),o=new Date(this.max);var a=e.actualIntervalType;if("None"===n)this.min=i.getTime(),this.max=o.getTime();else if("Additional"===n||"Round"===n)switch(a){case"Years":this.getYear(i,o,n,r);break;case"Months":this.getMonth(i,o,n,r);break;case"Days":this.getDay(i,o,n,r);break;case"Hours":this.getHour(i,o,n,r);break;case"Minutes":var l=i.getMinutes()/r*r,s=o.getMinutes()+(i.getMinutes()-l);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,59).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s+r,0).getTime());break;case"Seconds":var h=i.getSeconds()/r*r,c=o.getSeconds()+(i.getSeconds()-h);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c,0).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c+r,0).getTime())}}e.actualRange.min=(e.minimum,this.min),e.actualRange.max=(e.maximum,this.max),e.actualRange.delta=e.actualRange.max-e.actualRange.min,e.doubleRange=new Sc(e.actualRange.min,e.actualRange.max),this.calculateVisibleRange(t,e)},i.prototype.getYear=function(e,t,i,o){var r=e.getFullYear(),n=t.getFullYear();"Additional"===i?(this.min=new Date(r-o,1,1,0,0,0).getTime(),this.max=new Date(n+o,1,1,0,0,0).getTime()):(this.min=new Date(r,0,0,0,0,0).getTime(),this.max=new Date(n,11,30,23,59,59).getTime())},i.prototype.getMonth=function(e,t,i,o){var r=e.getMonth(),n=t.getMonth();"Round"===i?(this.min=new Date(e.getFullYear(),r,0,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n,new Date(t.getFullYear(),t.getMonth(),0).getDate(),23,59,59).getTime()):(this.min=new Date(e.getFullYear(),r+-o,1,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n+o,2===n?28:30,0,0,0).getTime())},i.prototype.getDay=function(e,t,i,o){var r=e.getDate(),n=t.getDate();"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),r,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n,23,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),r+-o,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n+o,0,0,0).getTime())},i.prototype.getHour=function(e,t,i,o){var r=e.getHours()/o*o,n=t.getHours()+(e.getHours()-r);"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r+-o,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n+o,0,0).getTime())},i.prototype.calculateVisibleRange=function(e,t){t.visibleRange={min:t.actualRange.min,max:t.actualRange.max,interval:t.actualRange.interval,delta:t.actualRange.delta},t.dateTimeInterval=this.increaseDateTimeInterval(t,t.visibleRange.min,t.visibleRange.interval).getTime()-t.visibleRange.min,t.triggerRangeRender(this.chart,t.visibleRange.min,t.visibleRange.max,t.visibleRange.interval)},i.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r=e.visibleRange.min;for(te(e)||(r=this.alignRangeStart(e,r,e.visibleRange.interval).getTime());r<=e.visibleRange.max;){o=t.extend({},t.getValue("properties",e.labelStyle),null,!0),e.format=i.intl.getDateFormat({format:this.findCustomFormats(e)||"",type:U(e.skeletonType),skeleton:this.getSkeleton(e)}),e.startLabel=e.format(new Date(e.visibleRange.min)),e.endLabel=e.format(new Date(e.visibleRange.max)),v(r,e.visibleRange)&&(this.increaseDateTimeInterval(e,r,e.visibleRange.interval).getTime()>e.visibleRange.max&&(e.endLabel=e.format(new Date(r))),ee(i,r,e.format(new Date(r)),o,e));var n=r;if(r=this.increaseDateTimeInterval(e,r,e.visibleRange.interval).getTime(),n===r)break}"Months"!==e.actualIntervalType&&"Days"!==e.actualIntervalType||(e.format=i.intl.getDateFormat({format:e.labelFormat||("Months"!==e.actualIntervalType||e.skeleton?"":"y MMM"),type:U(e.skeletonType),skeleton:e.skeleton||("Days"===e.actualIntervalType?"MMMd":"")})),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.increaseDateTimeInterval=function(e,t,i){var o=new Date(t);e.interval?(e.isIntervalInDecimal=i%1==0,e.visibleRange.interval=i):(i=Math.ceil(i),e.visibleRange.interval=i);var r=e.actualIntervalType;if(e.isIntervalInDecimal)switch(r){case"Years":return o.setFullYear(o.getFullYear()+i),o;case"Months":return o.setMonth(o.getMonth()+i),o;case"Days":return o.setDate(o.getDate()+i),o;case"Hours":return o.setHours(o.getHours()+i),o;case"Minutes":return o.setMinutes(o.getMinutes()+i),o;case"Seconds":return o.setSeconds(o.getSeconds()+i),o}return o},i.prototype.alignRangeStart=function(e,t,i){var o=new Date(t);switch(e.actualIntervalType){case"Years":var r=Math.floor(Math.floor(o.getFullYear()/i)*i);return o=new Date(r,o.getMonth(),o.getDate(),0,0,0);case"Months":var n=Math.floor(Math.floor(o.getMonth()/i)*i);return o=new Date(o.getFullYear(),n,o.getDate(),0,0,0);case"Days":var a=Math.floor(Math.floor(o.getDate()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),a,0,0,0);case"Hours":var l=Math.floor(Math.floor(o.getHours()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),l,0,0);case"Minutes":var s=Math.floor(Math.floor(o.getMinutes()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,0,0);case"Seconds":var h=Math.floor(Math.floor(o.getSeconds()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),h,0)}return o},i.prototype.getModuleName=function(){return"DateTime3D"},i.prototype.destroy=function(){},i}($c),id=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),od=function(e){function i(t){return e.call(this,t)||this}return id(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.axisSize=e,this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[];var i;"Auto"===e.intervalType?this.calculateDateTimeNiceInterval(e,this.axisSize,parseInt(e.labels[0],10),parseInt(e.labels[e.labels.length-1],10)):e.actualIntervalType=e.intervalType,e.format=this.chart.intl.getDateFormat({format:e.labelFormat||"",type:U(e.skeletonType),skeleton:this.getSkeleton(e)});for(var o=0;o<e.labels.length;o++)i=t.extend({},t.getValue("properties",e.labelStyle),null,!0),this.sameInterval(e.labels.map(Number)[o],e.labels.map(Number)[o-1],e.actualIntervalType,o)&&!e.isIndexed||v(o-0,e.visibleRange)&&ee(this.chart,o,e.isIndexed?this.getIndexedAxisLabel(e.labels[o],e.format):e.format(new Date(e.labels.map(Number)[o])),i,e);e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getIndexedAxisLabel=function(e,t){for(var i=e.split(","),o=0;o<i.length;o++)i[o]=t(new Date(parseInt(i[o],10)));return i.join(", ")},i.prototype.sameInterval=function(e,t,i,o){var r;if(0===o)r=!1;else switch(i){case"Years":r=new Date(e).getFullYear()===new Date(t).getFullYear();break;case"Months":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth();break;case"Days":r=Math.abs(e-t)<864e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Hours":r=Math.abs(e-t)<36e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Minutes":r=Math.abs(e-t)<6e4&&new Date(e).getMinutes()===new Date(t).getMinutes();break;case"Seconds":r=Math.abs(e-t)<1e3&&new Date(e).getDay()===new Date(t).getDay()}return r},i.prototype.getModuleName=function(){return"DateTimeCategory3D"},i.prototype.destroy=function(){},i}(Jc),rd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),nd=function(e){function i(t){return e.call(this,t)||this}return rd(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.calculateVisibleRange(e,t),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),this.min=this.min<0?0:this.min;var i=m(this.min,e.logBase);i=isFinite(i)?i:this.min;var o=1===this.max?1:m(this.max,e.logBase);o=isFinite(i)?o:this.max,this.min=Math.floor(i/1),e.series&&e.series.some(function(e){return-1!==e.type.indexOf("Column")||-1!==e.type.indexOf("Bar")})&&(this.min=this.min<=0?+this.min-1:this.min),this.max=Math.ceil(o/1),this.max=this.max===this.min?this.max+1:this.max,e.actualRange.interval=e.interval||this.calculateLogNiceInterval(this.max-this.min,t,e),e.actualRange.min=this.min,e.actualRange.max=this.max,e.actualRange.delta=this.max-this.min},i.prototype.calculateVisibleRange=function(e,t){t.visibleRange={interval:t.actualRange.interval,max:t.actualRange.max,min:t.actualRange.min,delta:t.actualRange.delta}},i.prototype.calculateLogNiceInterval=function(e,t,i){for(var o=oe(t,i),r=e,n=Math.pow(i.logBase,Math.floor(m(r,10))),a=0,l=i.intervalDivs.length;a<l;a++){var s=n*i.intervalDivs[a];if(o<e/s)break;r=s}return r},i.prototype.calculateVisibleLabels=function(e,i){var o=e.visibleRange.min;e.visibleLabels=[];var r,n,a=this.getFormat(e),l=null!==a.match("{value}"),s=Math.pow(e.logBase,e.visibleRange.min);for(e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator,maximumFractionDigits:s<1?20:3}),e.startLabel=e.format(s<1?+s.toPrecision(1):s),e.endLabel=e.format(Math.pow(e.logBase,e.visibleRange.max));o<=e.visibleRange.max;o+=e.visibleRange.interval)r=t.extend({},t.getValue("properties",e.labelStyle),null,!0),v(o,e.visibleRange)&&(n=Math.pow(e.logBase,o),ee(this.chart,o,this.formatValue(e,l,a,n<1?+n.toPrecision(1):n),r,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Logarithmic3D"},i.prototype.destroy=function(){},i}(Cc),ad=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(Ri,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()?t.top:t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i,v=t.x+":"+t.yValue+", "+e.name;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D,v)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints),i=e.getYValues(e.visiblePoints);if(null!=t&&null!=i)for(var o=e.getSideBySideInfo(e),r=e.getSegmentDepth(e),n=o.delta/2,a=e.visiblePoints,l=0;l<a.length;l++){var s=t[l]+o.start,h=t[l]+o.end,c=i[l];if(this.setData(s,c,h,0,r.start,r.end,e,a[l]),e.dataLabel.visible)switch(a[l].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=c,a[l].symbolLocations.z=r.start;break;case"Bottom":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=-.2+e.yAxis.visibleRange.min,a[l].symbolLocations.z=r.start+(r.end-r.start)/2;break;default:a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=Math.abs(0-c)/2+e.yAxis.visibleRange.min/2,a[l].symbolLocations.z=r.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"ColumnSeries3D"},e}(),ld=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(Ri,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()?t.top:t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints);if(null!=t)for(var i=e.getSideBySideInfo(e),o=e.getSegmentDepth(e),r=i.delta/2,n=e.visiblePoints,a=0;a<n.length;a++){var l=t[a]+i.start,s=t[a]+i.end,h=e.stackedValues.startValues[a],c=e.stackedValues.endValues[a];if(this.setData(l,h,s,c,o.start,o.end,e,n[a]),e.dataLabel.visible)switch(n[a].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h,n[a].symbolLocations.z=o.start+o.delta/2;break;case"Bottom":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c-.2,n[a].symbolLocations.z=o.start+(o.end-o.start)/2;break;default:n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h+(c-h)/2,n[a].symbolLocations.z=o.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"StackingColumnSeries3D"},e}(),sd=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e),e.isRectSeries=!0;for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(Ri,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()?t.top:t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints);if(null!=t)for(var i=e.getSideBySideInfo(e),o=e.getSegmentDepth(e),r=i.delta/2,n=e.visiblePoints,a=0;a<n.length;a++){var l=t[a]+i.start,s=t[a]+i.end,h=e.stackedValues.startValues[a],c=e.stackedValues.endValues[a];if(this.setData(l,c,s,h,o.start,o.end,e,n[a]),e.dataLabel.visible)switch(n[a].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c,n[a].symbolLocations.z=o.start+o.delta/2;break;case"Bottom":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h-.2,n[a].symbolLocations.z=o.start+(o.end-o.start)/2;break;default:n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c+(h-c)/2,n[a].symbolLocations.z=o.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"StackingBarSeries3D"},e}(),hd=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(Ri,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=o.visibleSeries.indexOf(e),n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c||a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()?t.top:t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints),i=e.getYValues(e.visiblePoints);if(null!=t){e.isRectSeries=!0;for(var o=e.getSideBySideInfo(e),r=e.getSegmentDepth(e),n=o.delta/2,a=e.visiblePoints,l=0;l<a.length;l++){var s=t[l]+o.start,h=t[l]+o.end,c=i[l];if(this.setData(s,c,h,0,r.start,r.end,e,a[l]),e.dataLabel.visible)switch(a[l].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=c,a[l].symbolLocations.z=r.start;break;case"Bottom":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=-.2+e.yAxis.visibleRange.min,a[l].symbolLocations.z=r.start+(r.end-r.start)/2;break;default:a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=Math.abs(0-c)/2+e.yAxis.visibleRange.min/2,a[l].symbolLocations.z=r.start}}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"BarSeries3D"},e}(),cd=function(){function e(e){this.chart=e}return e.prototype.render=function(e,i,o){var r,n=i.element.id+"-series-"+e.index+"-data-label-collections";e.dataLabelElement=t.createElement("div",{id:n});for(var a=0;a<e.visiblePoints.length;a++)(r=e.visiblePoints[a]).visible&&this.draw3DDataLabel(e,r.index,r,i,o);e.dataLabel.template&&be(!1,document.getElementById(this.chart.element.id+"_Secondary_Element"),e.dataLabelElement,i.redraw,!1,"x","y",null,"",!1,!1,null)},e.prototype.draw3DDataLabel=function(e,t,o,r,n){var a,l,s={data:null},h=this.getLabelText(o,e,this.chart)[0],c=i.measureText(h,n.font,this.chart.themeStyle.datalabelFont),d=r.svg3DRenderer.transform3DToVisible(e,o.symbolLocations.x,o.symbolLocations.y,r);l=d.y,a=d.x,l="Bottom"===e.dataLabel.position?d.y+0:d.y-0,a=d.x+0,s.data={text:h,location:{x:a,y:l},series:e,pointIndex:t},s.data.Text=s.data.text;var p={cancel:!1,series:e,point:o,text:h,border:n.border,color:n.fill,template:n.template,textStyle:n.font};if(r.trigger("textRender",p),this.fontBackground="Middle"===e.dataLabel.position&&"transparent"===p.color?o.color:p.color,s.data.text=p.text,!e.dataLabel.template&&""!==s.data.Text&&!p.cancel){var u={tag:"dataLabel",series:e,point:o,pointIndex:t,id:r.svgObject.id+e.index+"-data-label"+t,child:r.chart3D};r.graphics.addVisual(r.polygon.createTextElement(r.vector.vector3D(a,l,o.symbolLocations.z),u,0,-c.height),r)}var g=e.dataLabel&&e.dataLabel.template?"template":"text",m=ke(Re("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1||"HighContrast"===this.chart.theme?"#000000":"#FFFFFF":this.fontBackground)),y=Math.round((299*m.r+587*m.g+114*m.b)/1e3),f={size:p.textStyle.size||this.chart.themeStyle.datalabelFont.size,fontWeight:p.textStyle.fontWeight||this.chart.themeStyle.datalabelFont.fontWeight,fontStyle:p.textStyle.fontStyle||r.themeStyle.datalabelFont.fontStyle,fontFamily:p.textStyle.fontFamily||this.chart.themeStyle.datalabelFont.fontFamily,color:p.textStyle.color||("Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":p.textStyle.color),opacity:p.textStyle.opacity},v={width:c.width,height:c.height,label:s.data,textAnchor:"middle",tag:g,font:f,angle:e.dataLabel.angle,id:r.element.id+"-svg-series-"+e.index+"-point-"+t+"-data-label",child:r.chart3D,argsData:p,fill:y>=128?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"#000000":"#FFFFFF"};p.cancel||r.graphics.addVisual(r.polygon.createTextElement(r.vector.vector3D(a,l,o.symbolLocations.z),v,0,-c.height),r)},e.prototype.getLabelText=function(e,t,i){var o=t.dataLabel.format?t.dataLabel.format:t.yAxis.labelFormat,r=[],n=null!==o.match("{value}");if(r.push(e.text||e.yValue.toString()),(o||i.useGroupingSeparator)&&!e.text){t.yAxis.format=i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var a=0;a<r.length;a++)r[a]=n?o.replace("{value}",t.yAxis.format(parseFloat(r[a]))):t.yAxis.format(parseFloat(r[a]))}return r},e.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l,s){this.margin={left:0,right:0,bottom:0,top:0};var h=i.clipRect,c=this.createTemplate(t.createElement("div",{id:this.chart.element.id+"-series-"+i.index+"-data-label-"+a,styles:"position: absolute;background-color:"+n.color+";"+ge(o.font,this.chart.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),n.template,this.chart,r,i,this.chart.element.id+"-data-label-",a,s);this.calculateTemplateLabelSize(e,c,r,i,o,h,l,s)},e.prototype.calculateTemplateLabelSize=function(e,t,o,r,n,a,l,s,h){var c=me(t,l,h),d={x:0,y:0,width:0,height:0},p=this.calculateTextPosition(r,o,c,s),u=!1;h&&(u=0===c.width||0===c.height),t.style.left=p.left-0+"px",t.style.top=p.top+0+"px";var g=ke(Re("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1?"black":"white":this.fontBackground)),m=r.chart.requireInvertedAxis?r.xAxis:r.yAxis,y=r.chart.requireInvertedAxis?r.yAxis:r.xAxis;t.style.color=n.font.color||"Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":Math.round((299*g.r+587*g.g+114*g.b)/1e3)>=128?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white",t.childElementCount&&!u&&!we(d,this.chart.dataLabelCollections,a)&&(void 0===o.yValue||v(o.yValue,r.yAxis.visibleRange)||r.type.indexOf("Stacking")>-1||r.type.indexOf("100")>-1&&v(r.stackedValues.endValues[o.index],r.yAxis.visibleRange))&&v(o.xValue,r.xAxis.visibleRange)&&parseFloat(t.style.top)>=m.rect.y&&parseFloat(t.style.left)>=y.rect.x&&parseFloat(t.style.top)<=m.rect.y+m.rect.height&&parseFloat(t.style.left)<=y.rect.x+y.rect.width&&(this.chart.dataLabelCollections.push(new i.Rect(d.x+a.x,d.y+a.y,d.width,d.height)),be(!1,e,t,l,!0,"left","top"))},e.prototype.calculateTextPosition=function(e,t,i,o){var r,n,a,l=i.width/2,s=i.height;return-1!==e.type.indexOf("Bar")?(r=o.x-l,n=o.y-s+e.xAxis.plotOffset,a=o.x+l):(r=o.x-l,n=o.y-s,a=o.x+l),{left:r,top:n,right:a}},e.prototype.chartReactTemplate=function(e,t,i,o,r,n,a){var l=document.getElementById(t.element.id+"-series-"+o.index+"-data-label-collections");l&&(0===i.index&&(t.dataLabelCollections=[]),t.dataLabel3DModule.calculateTemplateLabelSize(l,e,i,o,o.dataLabel,o.clipRect,n,a,!0))},e.prototype.createTemplate=function(e,t,i,o,r,n,a,l,s){var h,c=ce(t);try{var d={chart:i,series:r,point:o},p=n+"-template",u=c?c(d,i,p,n):[];if(u.length)for(var g=(h=Array.prototype.slice.call(u)).length,m=0;m<g;m++)e.appendChild(h[m]);var y=void 0;"chart3d"===i.getModuleName()&&(y=o&&r?this.chartReactTemplate.bind(this,e,i,o,r,a,s,l):y,i.isReact&&i.renderReactTemplates(y))}catch(t){return e}return e},e.prototype.getModuleName=function(){return"DataLabel3D"},e.prototype.destroy=function(){},e}(),dd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),pd=function(e){function i(t){var i=e.call(this,t)||this;return i.seriesIndex=0,i.chart=t,i.addEventListener(),i}return dd(i,e),i.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(e,this.mouseLeave,this),this.chart.on("click",this.mouseClick,this),this.chart.on(t.Browser.touchStartEvent,this.mousedown,this),this.chart.on(t.Browser.touchEndEvent,this.mouseLeave,this)}},i.prototype.mousedown=function(){var e=this.chart;e.isPointMouseDown||e.selectionMode},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("pointerleave",this.mouseLeave),this.chart.off("click",this.mouseClick),this.chart.off(t.Browser.touchStartEvent,this.mousedown),this.chart.off(t.Browser.touchEndEvent,this.mouseLeave))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.isSeriesMode="Series"===e.selectionMode},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(e,this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes))},i.prototype.generateStyle=function(e){return e?this.styleId+"_series_"+e.index:"undefined"},i.prototype.selectDataIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.performSelection(r,e,this.getElementByIndex(e,r)[0])}},i.prototype.getElementByIndex=function(e,t){var i=[];return document.querySelectorAll('[id*="-region-series-'+t.series+"-point-"+t.point+'"]').forEach(function(e){i.push(e)}),i},i.prototype.getClusterElements=function(e,t){for(var i=[],o=0,r=e.visibleSeries;o<r.length;o++){var n=r[o];if(n.visible){t=new Pi(n.index,t.point);for(var a=this.getElementByIndex(e,t),l=0;l<a.length;l++)i.push(a[l])}}return i},i.prototype.findElements=function(e,t,i){return this.isSeriesMode?this.getSeriesElements(t):"Cluster"===this.currentMode?this.getClusterElements(e,i):this.getElementByIndex(e,i)},i.prototype.isAlreadySelected=function(e,i,o){if("click"===i?(this.currentMode=this.chart.selectionMode,this.styleId=this.chart.element.id+"_ej2_chart_selection"):"mousemove"!==i&&"pointermove"!==i||(this.currentMode=this.chart.highlightMode,this.highlightDataIndexes=[],this.styleId=this.chart.element.id+"_ej2_chart_highlight"),"None"!==this.chart.highlightMode&&"None"===this.chart.selectionMode&&"click"===i)return!1;if(("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&this.previousSelectedEle&&this.previousSelectedEle[0]){var r=void 0,n=e.nodeName;e.parentNode&&(r=("path"===n||"shape"===n)&&e.id.indexOf("region")>1);for(var a=this,l=0;l<this.previousSelectedEle.length;l++)!function(e){if(a.previousSelectedEle[e].hasAttribute("class"))if(a.previousSelectedEle[e].getAttribute("class").indexOf("highlight")>-1&&(r||"click"===i)){var n;a.previousSelectedEle[e].classList.forEach(function(e){e.indexOf("selection")>-1&&(n=e)}),a.previousSelectedEle[e].removeAttribute("class"),n&&a.addSvgClass(a.previousSelectedEle[e],n),a.previousSelectedEle[e].classList.remove(a.styleId+"_series_"+o.series),""===a.chart.highlightColor||t.isNullOrUndefined(a.chart.highlightColor)||"None"!==a.chart.highlightPattern||a.previousSelectedEle[e].setAttribute("fill",a.control.visibleSeries[a.indexFinder(a.previousSelectedEle[e].id).series].interior),a.addOrRemoveIndex(a.highlightDataIndexes,a.indexFinder(a.previousSelectedEle[e].id))}else!r&&a.previousSelectedEle[e].getAttribute("class").indexOf("highlight")>-1&&a.performSelection(a.indexFinder(a.previousSelectedEle[e].id),a.chart,a.previousSelectedEle[e])}(l)}return!0},i.prototype.mouseClick=function(e){this.chart.rotateActivate||this.calculateSelectedElements(e.target,e.type)},i.prototype.calculateSelectedElements=function(e,i){if(!t.isNullOrUndefined(e)&&!("None"===this.chart.selectionMode&&"None"===this.chart.highlightMode||e.id&&-1===e.id.indexOf(this.chart.element.id+"-"))&&("mousemove"!==i&&"pointermove"!==i||!e.hasAttribute("class")||!(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))&&(this.isAlreadySelected(e,i,this.indexFinder(e.id)),e.id&&e.id.indexOf("-series-")>-1&&-1===e.id.indexOf("_Text_"))){this.performSelection(this.indexFinder(e.id),this.chart,e)}},i.prototype.performSelection=function(e,t,i){switch(this.isSeriesMode="Series"===this.currentMode,this.currentMode){case"Series":this.selection(t,e,this.getSeriesElements(t.series[e.series])),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries);break;case"Point":!isNaN(e.point)&&i&&(this.selection(t,e,this.getElementByIndex(t,e)),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries));break;case"Cluster":isNaN(e.point)||(this.clusterSelection(t,e),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries))}},i.prototype.selectionComplete=function(e,t,i){var o,r,n,a,l,s=[];if("Cluster"===i){for(var h=0,c=e.visibleSeries;h<c.length;h++)if((u=c[h]).visible)for(p=0;p<this.selectedDataIndexes.length;p++)r=e.isMultiSelect?this.selectedDataIndexes[p].point:t.point,n=u.index,o=u.points,isNaN(r)||(a=o[r].yValue,l=o[r].xValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}else if("Series"===i)if(e.isMultiSelect)for(p=0;p<this.selectedDataIndexes.length;p++)n=this.selectedDataIndexes[p].series,this.selectedDataIndexes.length>0&&s.push({seriesIndex:n});else n=this.selectedDataIndexes.length>0?this.selectedDataIndexes[0].series:this.highlightDataIndexes&&this.highlightDataIndexes.length>0?this.highlightDataIndexes[0].series:0,(this.selectedDataIndexes.length>0||this.highlightDataIndexes&&this.highlightDataIndexes.length>0)&&s.push({seriesIndex:n});else if("Point"===i){var d=[];d=this.styleId.indexOf("highlight")>-1?this.highlightDataIndexes:this.selectedDataIndexes;for(var p=0;p<d.length;p++){r=d[p].point,n=d[p].series;var u=e.series[n];o=u.points,isNaN(r)||(l=o[r].xValue,a=o[r].yValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}}var g={selectedDataValues:s,cancel:!1,chart:e};e.trigger("selectionComplete",g)},i.prototype.selection=function(e,i,o){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,i,e.series);var r=i.series;if(!t.isNullOrUndefined(o[0])){e.visibleSeries[r].isRectSeries&&o[0].id&&document.getElementById(o[0].id+"_Symbol")&&o.push(he(o[0].id+"_Symbol"));var n=void 0,a=o[0]&&(o[0].getAttribute("class")||"");o[0]&&a.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles(o):(this.previousSelectedEle="None"!==e.highlightMode||e.legendSettings.enableHighlight?o:[],this.chart.selection3DModule&&(this.chart.selection3DModule.previousSelectedEle=o),this.applyStyles(o),n=!0),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,i,n):this.addOrRemoveIndex(this.selectedDataIndexes,i,n)}},i.prototype.clusterSelection=function(e,t){this.selection(e,t,this.getClusterElements(e,new Pi(t.series,t.point)))},i.prototype.removeMultiSelectElements=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],(this.isSeriesMode&&!this.toEquals(t[n],i,this.isSeriesMode)||"Cluster"===this.currentMode&&!this.toEquals(t[n],i,!1)||!this.isSeriesMode&&this.toEquals(t[n],i,!0)&&!this.toEquals(t[n],i,!1))&&(this.removeStyles(this.findElements(e,r,t[n])),t.splice(n,1),n--)},i.prototype.blurEffect=function(e,i){for(var o=this.checkVisibility(this.highlightDataIndexes,this.chart)||this.checkVisibility(this.selectedDataIndexes,this.chart),r=this,n=0,a=i;n<a.length;n++)!function(i){var n=i.index,a=r.chart.visibleSeries[i.index].interior,l=[];i.visible&&(document.querySelectorAll('[id*="region-series-'+i.index+'"]').forEach(function(e){l.push(e)}),r.checkSelectionElements(l,r.generateStyle(i),o,n,a),t.isNullOrUndefined(he(e+"SymbolGroup"+i.index))||r.checkSelectionElements(l,r.generateStyle(i),o,n,a))}(a[n])},i.prototype.checkSelectionElements=function(e,i,o,r,n){void 0===r&&(r=0),void 0===n&&(n="#D3D3D3");var a=this.isSeriesMode?e||[e]:e;"None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(a=e);for(var l,s,h,c=e,d=0;d<a.length;d++)l=a[d].getAttribute("class")||"",s=a[d].parentNode.getAttribute("class")||"","None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(i=l.indexOf("selection")>0||l.indexOf("highlight")>0?l:i),-1===l.indexOf(i)&&-1===s.indexOf(i)&&o?this.addSvgClass(a[d],this.unselected):(c=a[d],-1!==l.indexOf(this.unselected)&&this.chart.tooltip3DModule&&i.indexOf("highlight")>0&&this.chart.highlightAnimation(a[d],r,700,.3),this.removeSvgClass(a[d],this.unselected),this.removeSvgClass(a[d].parentNode,this.unselected));this.control.legend3DModule&&this.control.legendSettings.visible&&(h=he(this.control.element.id+"_chart_legend_shape_"+r))&&(h.hasAttribute("class")&&(this.removeSvgClass(h,h.getAttribute("class")),t.isNullOrUndefined(this.chart.highlightColor&&""!==this.chart.highlightColor)||this.chart.legendSettings.enableHighlight||(h.setAttribute("stroke",n),"None"===this.chart.highlightPattern&&h.setAttribute("fill",n))),c.length>0?(l=c[0].getAttribute("class"),s=c[0].parentNode.getAttribute("class")||""):c&&(l=c.getAttribute("class")||"",s=c.parentNode.getAttribute("class")||""),-1===l.indexOf(i)&&-1===s.indexOf(i)&&o?(this.addSvgClass(h,"None"===this.chart.highlightMode&&this.chart.legendSettings.enableHighlight?i:this.unselected),this.removeSvgClass(h,i),""===this.chart.highlightColor||t.isNullOrUndefined(this.chart.highlightColor)||(h.setAttribute("stroke",this.control.visibleSeries[r].interior),"None"===this.chart.highlightPattern&&h.setAttribute("fill",this.control.visibleSeries[r].interior))):(this.removeSvgClass(h,this.unselected),t.isNullOrUndefined(this.chart.highlightColor)||""===this.chart.highlightColor||(h.setAttribute("stroke",this.control.visibleSeries[r].interior),"None"===this.chart.highlightPattern&&h.setAttribute("fill",this.control.visibleSeries[r].interior)),""===l&&""===s||"EJ2-Trackball"===l.trim()?this.removeSvgClass(h,i):(this.addSvgClass(h,i),i.indexOf("highlight")>0&&""!==this.chart.highlightColor&&"transparent"!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&(h.setAttribute("stroke",this.chart.highlightColor),this.styleId.indexOf("highlight")>0&&"None"===this.chart.highlightPattern&&h.setAttribute("fill",this.chart.highlightColor)))))},i.prototype.applyStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r){if(this.removeSvgClass(r.parentNode,this.unselected),this.removeSvgClass(r,this.unselected),"fill"===this.chart.series[0].pointColorMapping){var n=this.getSelectionClass(r.id),a=n.indexOf("highlight")>-1?parseInt(n.split(this.chart.element.id+"_ej2_chart_highlight_series_")[1],10):parseInt(n.split(this.chart.element.id+"_ej2_chart_selection_series_")[1],10),l=this.styleId.indexOf("highlight")>0?this.chart.highlightPattern:this.chart.selectionPattern,s=void 0;if((n.indexOf("highlight")>-1||n.indexOf("selection")>-1)&&(s=document.getElementById(this.chart.element.id+"_"+l+"_Selection_"+a)),-1===r.id.indexOf("legend")&&-1===r.id.indexOf("Group")&&null!=s)for(var h=1;h<s.children.length;h++)s.children[h].setAttribute("fill",r.getAttribute("fill")),s.children[h].setAttribute("stroke",r.getAttribute("fill"))}if(this.addSvgClass(r,this.getSelectionClass(r.id)),this.chart.tooltip3DModule&&this.getSelectionClass(r.id).indexOf("highlight")>0){a=parseFloat(r.id.split("-series-")[1].split("-point-")[0]);this.chart.stopElementAnimation(r,a)}this.styleId.indexOf("highlight")>0&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&"None"===this.chart.highlightPattern&&"transparent"!==this.chart.highlightColor&&r.setAttribute("fill",this.chart.highlightColor)}}},i.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.visibleSeries[this.indexFinder(e).series])},i.prototype.removeStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r&&(this.removeSvgClass(r,this.getSelectionClass(r.id)),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor)){var n=this.control.visibleSeries[this.indexFinder(r.id).series].interior;"ZLight"===r.getAttribute("name")&&(n=this.chart.polygon.applyZLight(n,this.control)),"XLight"===r.getAttribute("name")&&(n=this.chart.polygon.applyXLight(n,this.control)),r.setAttribute("fill",n)}}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.toEquals(e[o],t,this.isSeriesMode)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.toEquals=function(e,t,i){return(e.series===t.series||"Cluster"===this.currentMode&&!i)&&(i||e.point===t.point)},i.prototype.redrawSelection=function(e,i,o){this.isSeriesMode="Series"===i,t.isNullOrUndefined(i)||(e.isRedrawSelection=!o);var r=t.extend([],this.selectedDataIndexes,null,!0),n=t.extend([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&n.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes,e.series),r=n):this.removeSelectedElements(e,this.selectedDataIndexes,e.series),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(e,r)},i.prototype.legendSelection=function(e,t,i,o){if("mousemove"===o){if(i.id.indexOf("text")>1&&(i=he(i.id.replace("text","shape"))),i.id.indexOf("marker")>1&&(i=he(i.id.replace("_marker",""))),i.id.indexOf("g")>1&&(i=he(i.id.replace("_g_","_shape_"))),i.hasAttribute("class")&&(i.getAttribute("class").indexOf("highlight")>-1||i.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.chart.highlightMode}else"click"===o&&(i.id.indexOf("text")>1&&(i=he(i.id.replace("text","shape"))),i.id.indexOf("g")>1&&(i=he(i.id.replace("_g_","_shape_"))));var r=this.indexFinder(i.id);if(this.isAlreadySelected(i,o,r)){var n=this.generateStyle(e.visibleSeries[t]),a=document.querySelectorAll("."+n);this.isSeriesMode="Series"===this.currentMode;if(a.length>0)this.removeSelection(e,t,a,n,!0);else{for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];h.index===t||e.isMultiSelect||(n=this.generateStyle(e.visibleSeries[h.index]),a=document.querySelectorAll("."+n),this.removeSelection(e,t,a,n,!0))}var c=[];(c="Point"===this.chart.legendSettings.mode?this.getElementByIndex(e,r):this.getSeriesElements(e.visibleSeries[t])).length>0&&(this.checkSelectionElements(c,n,!1,t,""),this.isSeriesMode=!0,this.selection(e,new Pi(r.series,NaN),c),this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}}},i.prototype.removeSelection=function(e,t,i,o,r){if(i.length>0){for(var n=[],a=0;a<i.length;a++)n.push(i[a]);this.removeStyles(n),this.isSeriesMode=!0,this.addOrRemoveIndex(this.selectedDataIndexes,new Pi(t,NaN));for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];if(o=this.generateStyle(h),document.querySelectorAll("."+o).length>0){for(var c=0,d=n;c<d.length;c++){var p=d[c];this.checkSelectionElements(p,o,!0,t,"")}r=!1;break}}r&&(this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}},i.prototype.getSeriesElements=function(e){var t=[];return e.visible&&document.querySelectorAll('[id*="region-series-'+e.index+'"]').forEach(function(e){t.push(e)}),t},i.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("-point-")>-1?t=e.split("-series-")[1].split("-point-"):e.indexOf("-border-")>-1?t[0]=e.split("-border-")[1]:e.indexOf("-series-")>-1?t[0]=e.split("-series-")[1]:e.indexOf("_chart_legend_shape_")>-1&&((t=e.split("_chart_legend_shape_"))[0]=t[1]),new Pi(parseInt(t[0],10),parseInt(t[1],10))},i.prototype.removeSelectedElements=function(e,t,i){t=e.isRedrawSelection?t:t.splice(0,t.length);for(var o,r=0,n=i;r<n.length;r++){var a=n[r];if(a.visible){o=this.getSeriesElements(a),this.removeStyles(o);for(var l=0,s=o;l<s.length;l++){var h=s[l];this.removeStyles(this.getChildren(h))}}}},i.prototype.mouseLeave=function(){this.completeSelection()},i.prototype.completeSelection=function(){var e=this.chart;"None"!==e.selectionMode&&(this.currentMode=e.selectionMode)},i.prototype.mouseMove=function(e){var i=this.chart,o=e.target,r=e.type;this.highlightChart(o,r),"None"!==i.selectionMode&&"touchmove"===r&&(t.Browser.isIos||t.Browser.isIos7)&&e.preventDefault&&e.preventDefault()},i.prototype.highlightChart=function(e,i){if(this.chart.rotateActivate||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight);else if(!t.isNullOrUndefined(e)){if(e.id.indexOf("_legend_text")>1&&(e=he(e.id.replace("text","shape"))),e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;this.calculateSelectedElements(e,i),this.chart.highlight3DModule.highlightDataIndexes&&this.chart.highlight3DModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_")&&-1===e.id.indexOf("-series-")&&this.removeLegendHighlightStyles()}},i.prototype.removeLegendHighlightStyles=function(){this.chart.highlight3DModule.highlightDataIndexes=[];for(var e,i=0;i<this.chart.visibleSeries.length;i++)if(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i])),0===this.selectedDataIndexes.length){for(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));e.length>0;)if((r=e[0])&&(this.removeSvgClass(r,r.getAttribute("class")),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!t.isNullOrUndefined(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor)){var o=this.control.visibleSeries[i].interior;"ZLight"===r.getAttribute("name")&&(o=this.chart.polygon.applyZLight(o,this.control)),"XLight"===r.getAttribute("name")&&(o=this.chart.polygon.applyXLight(o,this.control)),-1!==r.id.indexOf("_chart_legend_shape")&&r.getAttribute("stroke")&&r.setAttribute("stroke",o),r.setAttribute("fill",o)}for(e=document.getElementsByClassName(this.unselected);e.length>0;)(r=e[0])&&(this.removeSvgClass(r,r.getAttribute("class")),this.chart.tooltip3DModule&&this.generateStyle(this.chart.visibleSeries[i]).indexOf("highlight")>-1&&this.chart.highlightAnimation(r,i,700,.3))}else for(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));e.length>0;){var r=e[0];r&&(this.removeSvgClass(r,r.getAttribute("class")),this.addSvgClass(r,this.unselected))}},i.prototype.getModuleName=function(){return"Selection3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(Gn),ud=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),gd=function(e){function i(t){var i=e.call(this,t)||this;return i.chart=t,i.wireEvents(),i}return ud(i,e),i.prototype.wireEvents=function(){this.chart.isDestroyed||this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.chart.isDestroyed||this.chart.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[],this.isSeriesMode="Series"===e.highlightMode},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"Highlight3D"},i.prototype.destroy=function(){this.unWireEvents()},i}(pd),md=function(){function e(e){this.chart=e}return e.prototype.export=function(e,t){var i=new Fa(this.chart),o={cancel:!1,width:null,height:null};this.chart.trigger("beforeExport",o),o.cancel||i.export(e,t,void 0,[this.chart])},e.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){var h=new Fa(this.chart);i=i||[this.chart];var c={cancel:!1,width:o,height:r};this.chart.trigger("beforeExport",c),c.cancel||h.export("PDF",e,t,i,o=c.width,r=c.height,n,a,l,s)},e.prototype.getDataUrl=function(e){return new Fa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"Export3D"},e.prototype.destroy=function(){},e}(),yd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),fd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},vd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yd(i,e),fd([t.Property("Normal")],i.prototype,"fontStyle",void 0),fd([t.Property("16px")],i.prototype,"size",void 0),fd([t.Property("Normal")],i.prototype,"fontWeight",void 0),fd([t.Property("")],i.prototype,"color",void 0),fd([t.Property("Segoe UI")],i.prototype,"fontFamily",void 0),fd([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),bd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yd(i,e),fd([t.Property(null)],i.prototype,"color",void 0),fd([t.Property(1)],i.prototype,"width",void 0),fd([t.Property(null)],i.prototype,"length",void 0),fd([t.Property("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),xd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yd(i,e),fd([t.Property(!1)],i.prototype,"visible",void 0),fd([t.Property(null)],i.prototype,"name",void 0),fd([t.Property("transparent")],i.prototype,"fill",void 0),fd([t.Property("Inside")],i.prototype,"position",void 0),fd([t.Property(0)],i.prototype,"angle",void 0),fd([t.Property(!1)],i.prototype,"enableRotation",void 0),fd([t.Complex({width:null,color:null},hi)],i.prototype,"border",void 0),fd([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},vd)],i.prototype,"font",void 0),fd([t.Complex({},bd)],i.prototype,"connectorStyle",void 0),fd([t.Property(null)],i.prototype,"template",void 0),fd([t.Property("")],i.prototype,"format",void 0),i}(t.ChildProperty),Sd=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return yd(o,e),o.prototype.renderDataLabel=function(e,o){var r=o.element.id+"-series-"+e.index+"-data-label-collections";e.labelBound=t.isNullOrUndefined(e.labelBound)?new i.Rect(1/0,1/0,-1/0,-1/0):e.labelBound,e.dataLabelElement=t.createElement("div",{id:r});for(var n=0;n<e.points.length;n++){var a=e.points[n],l=this.getDatalabelText(e.dataLabel.format,o,a.text?a.text:t.isNullOrUndefined(a.y)?"":a.y.toString()),s={width:e.dataLabel.border.width,color:e.dataLabel.border.color,dashArray:e.dataLabel.border.dashArray},h=t.extend({},t.getValue("properties",e.dataLabel.font),null,!0),c={cancel:!1,name:"textRender",series:e,point:a,text:l,border:s,color:e.dataLabel.fill,template:e.dataLabel.template,font:h};o.trigger("textRender",c),a.argsData=c,!a.visible||c.cancel||t.isNullOrUndefined(a.y)||this.draw3DDataLabel(e,a.index,a,o)}e.dataLabel.template&&be(!1,document.getElementById(o.element.id+"_Secondary_Element"),e.dataLabelElement,o.redraw,!1,"x","y",null,"",!1,!1,null)},o.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l,s,h){var c=this.createTemplate(t.createElement("div",{id:h.element.id+"-series-"+i.index+"-data-label-"+a,styles:"position: absolute;background-color:"+n.color+";"+ge(o.font,h.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),n.template,h,r,i,h.element.id+"-data-label-");this.calculateTemplateLabelSize(e,c,r,i,o,l,s)},o.prototype.calculateTemplateLabelSize=function(e,t,i,o,r,n,a,l){var s=me(t,n,l);t.style.left=a.x-s.width/2+"px",t.style.top=a.y-s.height+"px",be(!1,e,t,n,!0,"left","top")},o.prototype.createTemplate=function(e,t,i,o,r,n){var a,l=ce(t);try{var s={chart:i,series:r,point:o},h=n+"-template",c=l?l(s,i,h,n):[];if(c.length)for(var d=(a=Array.prototype.slice.call(c)).length,p=0;p<d;p++)e.appendChild(a[p]);i.isReact&&i.renderReactTemplates(void 0)}catch(t){return e}return e},o.prototype.draw3DDataLabel=function(e,o,r,n){var a,l,s,h,c=e.dataLabel.connectorStyle.length?parseFloat(e.dataLabel.connectorStyle.length):e.dataLabel.connectorStyle.length,d={data:null},p={x:0,y:0},u=e.index,g=r.symbolLocation.center,m=r.symbolLocation.radius*e.coefficient;t.isNullOrUndefined(c)&&(c=i.measureText(r.argsData.text,e.dataLabel.font,n.themeStyle.datalabelFont).height),null!=e&&"Inside"!==e.dataLabel.position?a=r.symbolLocation.radius+c:null!=e&&(a=m+(r.symbolLocation.radius-m)/2),l=p.x=g.x+parseFloat(r.argsData.font.size)/3+a*Math.cos(r.symbolLocation.angle),s=p.y=g.y+parseFloat(r.argsData.font.size)/3+a*Math.sin(r.symbolLocation.angle),d.data={text:r.argsData.text,location:{x:l,y:s},series:e,pointIndex:o,seriesIndex:u},d.data.Text=d.data.text;var y=i.measureText(r.argsData.text,e.dataLabel.font,n.themeStyle.datalabelFont);l=p.x=d.data.location.x,s=p.y=d.data.location.y;var f=e.dataLabel.template?"template":"text",v=this.getSaturatedColor(r,r.argsData.color,n),b={width:y.width,height:y.height,fill:v,label:d.data,textAnchor:"middle",tag:f,font:r.argsData.font,angle:0,id:n.element.id+"-svg-data-label-text-"+o,child:n.groupElement};if(n.circularChartLegend3DModule&&n.legendSettings.visible&&r.visible&&"Outside"===e.dataLabel.position){var x=n.circularChartLegend3DModule.legendBounds,S=n.legendSettings.border.width/2;x=new i.Rect(x.x-S,x.y-S,x.width+2*S,x.height+2*S);var C=new i.Rect(b.label.location.x+y.width/2+20,b.label.location.y+2.5,b.width,b.height);if(Le(C,x)&&("Right"===n.circularChartLegend3DModule.position?b.width=x.x-C.x:"Left"===n.circularChartLegend3DModule.position&&(b.width=C.x-(x.x+x.width),b.width<0&&(b.width+=C.width,b.label.location.x=x.x+x.width-y.width/2+20)),C&&b.width<C.width&&(b.label.text=ze(b.width,b.label.text,e.dataLabel.font,n.enableRtl,n.themeStyle.datalabelFont)),3===b.label.text.length&&b.label.text.indexOf("...")>-1))return}var F;if("Inside"!==e.dataLabel.position&&(F=this.updateConnectorLine(r,o,e,c,n)),e.dataLabel.template&&"Inside"!==e.dataLabel.position){var w=this.createTemplate(t.createElement("div",{id:n.element.id+"-series-data-label-0",styles:"position: absolute;background-color:"+r.argsData.color+";"+ge(r.argsData.font,n.themeStyle.datalabelFont)+";border:"+r.argsData.border.width+"px solid "+r.argsData.border.color+";"}),r.argsData.template,n,r,e,n.element.id+"-data-label-");y=i.measureText(w.textContent,e.dataLabel.font,n.themeStyle.datalabelFont)}n.circularChartLegend3DModule&&n.legendSettings.visible&&"Outside"===e.dataLabel.position&&n.visibleSeries[0].findMaxBounds(n.visibleSeries[0].labelBound,{x:l,y:s,width:y.width,height:y.height});var L=0,P=0,A=r.symbolLocation.angle;if("Inside"!==e.dataLabel.position&&((A>1.5&&A<1.8||A>1.3&&A<1.5||A>4.5&&A<4.8||A>4.3&&A<4.5)&&(p.x=F.x,p.y=F.y,A=F.angle),A<Math.PI/2||A>=Math.PI/2+Math.PI?(L=y.width/2+20,P=2.5):(L=-(y.width/2+("transparent"!==r.argsData.color||r.argsData.border.color?25:20)),P=2.5)),!r.argsData.template&&""!==d.data.text){var M={tag:"dataLabel",series:e,point:r,pointIndex:o,id:n.element.id+"-svg-"+u+"-data-label-"+o,child:n.groupElement},D=void 0,k="";if(e.dataLabel.enableRotation){if(0===(D=h=e.dataLabel.angle)){var R=function(e){return e*(180/Math.PI)}(r.symbolLocation.angle);"Outside"===e.dataLabel.position?h=0:R>=90&&R<=260?(h=R+180,p.x=p.x-parseFloat(r.argsData.font.size)/2):h=R}else h=D>360?D-360:D<-360?D+360:D;k="rotate("+h+","+p.x+","+p.y+")"}M.transform=k;var T=n.polygon.createTextElement(n.vector.vector3D(l+L,s+P,r.symbolLocation.z?r.symbolLocation.z:0),M,0,-y.height);n.circular3DPolygon.push(T)}b.angle=e.dataLabel.enableRotation?0!==e.dataLabel.angle?e.dataLabel.angle:h:0;var E=n.polygon.createTextElement(n.vector.vector3D(p.x+L,p.y+P,-1),b,0,-y.height);n.circular3DPolygon.push(E)},o.prototype.getSaturatedColor=function(e,t,i){var o,r=ke(Re(o="transparent"===(o="transparent"===t?this.getLabelBackground(e,i):t)?i.theme.indexOf("Dark")>-1||i.theme.indexOf("HighContrast")>-1?"black":"white":o)),n=Math.round((299*r.r+587*r.g+114*r.b)/1e3);return"Bootstrap5"===i.theme?"#212529":"Bootstrap5Dark"===i.theme?"#DEE2E6":n>=128?i.theme.indexOf("Tailwind3")>-1?"#4B5563":"black":i.theme.indexOf("Tailwind3")>-1?"#D1D5DB":"white"},o.prototype.getLabelBackground=function(e,t){return"Outside"===e.argsData.series.dataLabel.position?t.background||t.themeStyle.background:e.y?e.color:t.theme.indexOf("dark")?"white":"black"},o.prototype.getDatalabelText=function(e,t,i){if(Number(i)){var o=null!==e.match("{value}"),r=t.intl.getNumberFormat({format:o?"":e,useGrouping:t.useGroupingSeparator});i=o?e.replace("{value}",r(parseFloat(i))):r(parseFloat(i))}return i},o.prototype.updateConnectorLine=function(e,t,i,o,r){var n=[],a=e.symbolLocation,l=a.center.x+Math.cos(a.angle)*a.radius,s=a.center.y+Math.sin(a.angle)*a.radius;n.push({x:l,y:s});var h=a.radius+o,c=a.angle;l=a.center.x+Math.cos(c)*h,s=a.center.y+Math.sin(c)*h,n.push({x:l,y:s});var d;return d=c<Math.PI/2||c>=Math.PI/2+Math.PI?10:-10,n.push({x:l+d,y:s}),this.drawLineSegment(n,t,i,r),{x:l,y:s,angle:c}},o.prototype.drawLineSegment=function(e,t,i,o){for(var r=[],n=0;n<e.length;n++)r.push(o.vector.vector3D(e[n].x,e[n].y,0));var a=i.index,l=i.points[t].color,s=i.dataLabel.connectorStyle.color?i.dataLabel.connectorStyle.color:l,h={width:i.dataLabel.connectorStyle.width,stroke:s,child:o.groupElement,tag:"polyline",dashArray:i.dataLabel.connectorStyle.dashArray,id:o.element.id+"-datalabel-series-"+a+"-connector-"+t},c=o.polygon.createPolyline(r,h);o.circular3DPolygon.push(c)},o.prototype.getModuleName=function(){return"CircularChartDataLabel3D"},o.prototype.destroy=function(){},o}(t.ChildProperty),Cd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Fd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},wd=function(){function e(){this.visible=!0,this.isExplode=!1,this.argsData=null}return e}(),Ld=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Cd(i,e),Fd([t.Property(null)],i.prototype,"fill",void 0),Fd([t.Property("Gap")],i.prototype,"mode",void 0),i}(t.ChildProperty),Pd=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.points=[],t.sumOfPoints=0,t.isRectSeries=!0,t.clipRect=new i.Rect(0,0,0,0),t.category="Series",t.rightSidePoints=[],t.leftSidePoints=[],t.segments=[],t.isExploded=!1,t}return Cd(r,e),r.prototype.refreshDataManager=function(e,i){var r=this,n=this.dataSource||e.dataSource;if(!(n instanceof o.DataManager)&&t.isNullOrUndefined(this.query))return void this.dataManagerSuccess({result:n,count:n.length},e,i);this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(t){return r.dataManagerSuccess(t,e)})},r.prototype.dataManagerSuccess=function(e,t,i){void 0===i&&(i=!0);var o={name:"seriesRender",series:this,data:e.result};t.allowServerDataBinding=!1,t.trigger("seriesRender",o),this.resultData=""!==e.result?e.result:[],i||this.getPoints(this.resultData,t),++t.seriesCounts===t.visibleSeries.length&&i&&(this.getPoints(this.resultData,t),t.refreshChart())},r.prototype.getPoints=function(e,i){var o=Object.keys(e).length;if(this.sumOfPoints=0,0===o)return this.points=[],null;this.findSumOfPoints(e),this.points=[];for(var r,n=this.palettes.length?this.palettes:Kt(i.theme),a=0;a<o;a++)r=this.setPoints(e,a,i),t.isNullOrUndefined(r.y)&&(r.visible=!1),this.pushPoints(r,n,i)},r.prototype.pushPoints=function(e,t,i){e.index=this.points.length,e.isExplode=this.explodeAll||e.index===this.explodeIndex,e.color=e.color||t[e.index%t.length];var o={cancel:!1,name:Ri,series:this,point:e,fill:e.color};i.trigger(Ri,o),e.color=o.fill,e.visible=!o.cancel,this.points.push(e)},r.prototype.findSumOfPoints=function(e){for(var i=Object.keys(e).length,o=0;o<i;o++)t.isNullOrUndefined(e[o])||t.isNullOrUndefined(e[o][this.yName])||isNaN(e[o][this.yName])||(this.sumOfPoints+=Math.abs(e[o][this.yName]))},r.prototype.setPoints=function(e,i,o){var r=new wd;return r.x=t.getValue(this.xName,e[i]),r.y=t.getValue(this.yName,e[i]),r.percentage=+(r.y/this.sumOfPoints*100).toFixed(2),r.legendImageUrl=t.getValue(this.legendImageUrl,e[i]),r.color=t.getValue(this.pointColorMapping,e[i]),r.text=r.originalText=t.getValue(this.dataLabel.name||"",e[i]),r.tooltip=t.getValue(this.tooltipMappingName||"",e[i]),r.sliceRadius=t.getValue(this.radius?this.radius:"80%",e[i]),r.sliceRadius=t.isNullOrUndefined(r.sliceRadius)?"80%":r.sliceRadius,r.separatorY=o.intl.formatNumber(r.y,{useGrouping:o.useGroupingSeparator}),this.setEmptyPoint(r,i,e,o),r},r.prototype.draw=function(e,o){var r=o.visibleSeries.indexOf(e);this.calculateSize(o,e);var n=e.radius?e.radius:t.Browser.isDevice&&"Outside"===e.dataLabel.position?"40%":"80%",a=parseInt(n,10);(-1===n.indexOf("%")&&"number"!=typeof a||isNaN(a))&&(this.isRadiusMapped=!0),e.size=this.isRadiusMapped?.8:parseInt(n,10)/100,e.coefficient=parseInt(e.innerRadius,10)/100,o.circularRadius[r]=.97*Math.min(e.actualWidth/2-(o.legendSettings.visible&&o.circularChartLegend3DModule&&("Right"===o.legendSettings.position||"Left"===o.legendSettings.position)?o.circularChartLegend3DModule.legendBounds.width:0),e.actualHeight/2)*e.size,o.innerRadius[r]=e.coefficient*o.circularRadius[r],this.createPolygons(e,o),this.dataLabel.visible&&o.circularChartDataLabel3DModule.renderDataLabel(e,o),be(!1,o.svgObject,o.groupElement,o.redraw);var l=new i.Size(o.availableSize.width,o.availableSize.height);o.graphics.prepareView(0,o.depth,o.rotation,o.tilt,l,o),o.graphics.view(o.svgObject,o)},r.prototype.calculateSize=function(e,t){var i=e.legendSettings,o=0,r=0,n=e.circularChartLegend3DModule?e.circularChartLegend3DModule.position:"Auto",a=e.title,l=e.subTitle,s=e.titleLocation,h=e.subTitleLocation,c=e.titleStyle.textOverflow,d=e.subTitleStyle.textOverflow,p=!(!a||"Wrap"!==c),u=!(!l||"Wrap"!==d);i.visible&&e.circularChartLegend3DModule&&"Custom"!==n&&("Right"===n||"Left"===n?o="right"===n.toLowerCase()?e.margin.right:e.margin.left+e.circularChartLegend3DModule.legendBounds.width:r="Top"===n?e.margin.top:"Bottom"===n?e.margin.bottom+e.circularChartLegend3DModule.legendBounds.height:0),t.actualWidth=e.availableSize.width-o;var g=.5*t.actualWidth+("Left"===n?o:0);if(p||u){m=s.size.height+(u?h.size.height:0)+r;return t.actualHeight=e.svgObject.height.baseVal.value-m,{centerX:g,centerY:y=.5*t.actualHeight+(s.size.height+(u?h.size.height:0))}}var m=(a?s.y:0)+r;t.actualHeight=e.svgObject.height.baseVal.value-m;var y=.5*t.actualHeight+("Top"===n?m:a?s.y:0);return{centerX:g,centerY:y}},r.prototype.createPolygons=function(e,t){for(var i,o,r,n=[],a=[],l=[],s=(n=0===e.segments.length?this.createPoints(e,t):e.segments).length,h=0;h<s;h++)if((i=n[h]).visible&&(r=n[h].pointIndex,o={opacity:e.opacity,interior:e.points[r].color},null!==(l=this.createSector(i,t,o,e.index))))for(d=0;d<l.length;d++)if(a[d]||(a[d]=[]),null!==l[d])for(var c=0;c<l[d].length;c++)a[d].push(l[d][c]);for(h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++){var p=a[h][d];t.circular3DPolygon.push(p)}return null},r.prototype.createSector=function(e,t,i,o){var r=Math.ceil(e.actualEndValue/6),n=Math.PI/180,a=0,l=t.depth;if(r<1)return null;for(var s=[],h=e.actualEndValue/r,c=[],d=[],p=0;p<r+1;p++){var u=e.center.x+e.radius*Math.cos((e.actualStartValue+p*h)*n),g=e.center.y+e.radius*Math.sin((e.actualStartValue+p*h)*n);c[p]={x:u,y:g};var m=e.center.x+e.inSideRadius*Math.cos((e.actualStartValue+p*h)*n),y=e.center.y+e.inSideRadius*Math.sin((e.actualStartValue+p*h)*n);d[p]={x:m,y:y}}for(var f=[],v=[],p=0;p<r;p++)v=[this.vector(c[p].x,c[p].y,0),this.vector(c[p].x,c[p].y,l),this.vector(c[p+1].x,c[p+1].y,l),this.vector(c[p+1].x,c[p+1].y,0)],f[p]=t.polygon.polygon3D(v,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText),a++;if(s[1]=f,e.inSideRadius>0){for(var b=[],p=0;p<r;p++)v=[this.vector(d[p].x,d[p].y,0),this.vector(d[p].x,d[p].y,l),this.vector(d[p+1].x,d[p+1].y,l),this.vector(d[p+1].x,d[p+1].y,0)],b[p]=t.polygon.polygon3D(v,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText),a++;s[3]=b}for(var x=[],S=[],p=0;p<r+1;p++)x.push(this.vector(c[p].x,c[p].y,0)),S.push(this.vector(c[p].x,c[p].y,l));if(e.inSideRadius>0)for(p=r;p>-1;p--)x.push(this.vector(d[p].x,d[p].y,0)),S.push(this.vector(d[p].x,d[p].y,l));else x.push(e.center),S.push(this.vector(e.center.x,e.center.y,l));if(s[0]=[],s[0].push(t.polygon.polygon3D(x,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[0].push(t.polygon.polygon3D(S,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,e.inSideRadius>0){var C=[this.vector(c[0].x,c[0].y,0),this.vector(c[0].x,c[0].y,l),this.vector(d[0].x,d[0].y,l),this.vector(d[0].x,d[0].y,0)],F=[this.vector(c[r].x,c[r].y,0),this.vector(c[r].x,c[r].y,l),this.vector(d[r].x,d[r].y,l),this.vector(d[r].x,d[r].y,0)];s[2]=[],s[2].push(t.polygon.polygon3D(C,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[2].push(t.polygon.polygon3D(F,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++}else{var C=[this.vector(c[0].x,c[0].y,0),this.vector(c[0].x,c[0].y,l),this.vector(e.center.x,e.center.y,l),this.vector(e.center.x,e.center.y,0)],F=[this.vector(c[r].x,c[r].y,0),this.vector(c[r].x,c[r].y,l),this.vector(e.center.x,e.center.y,l),this.vector(e.center.x,e.center.y,0)];s[2]=[],s[2].push(t.polygon.polygon3D(C,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[2].push(t.polygon.polygon3D(F,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++}return s},r.prototype.createPoints=function(e,o){e.segments=[];for(var r=this.calculateSize(o,e),n=0,a=e.points,l=a.length,s=0;s<l;s++)a[s].visible&&!t.isNullOrUndefined(a[s].y)&&(n+=a[s].y);for(var h,c,d,p,u=360/(n=0!==n?n:1),g=e.index,m=o.innerRadius[g],y=this.getYValues(e.points),f=o.depth,v=0,b=0,x=0,S=new i.Rect(0,0,0,0),C={X:0,Y:0},F=0,w=o.circularRadius[g],L=0;L<l;L++)if(e.points[L].visible&&!t.isNullOrUndefined(y[L])){c=e.points[L].index,d=Math.abs(y[L]),b=Math.abs(d)*(2*Math.PI/n),S.x=0,S.y=0;var P=e.points[L];e.isRadiusMapped?-1!==e.points[L].sliceRadius.indexOf("%")?P.radius=Ne(e.points[L].sliceRadius,this.size/2):P.radius=parseInt(e.points[L].sliceRadius,10):P.radius=w;var A=P.x+":"+P.y+", "+e.name;t.isNullOrUndefined(d)||(e.explode&&(e.explodeIndex===P.index||!e.isExploded&&e.explodeAll)&&(C.X=Math.cos(2*Math.PI*(x+d/2)/n),C.Y=Math.sin(2*Math.PI*(x+d/2)/n),S.x=.01*P.radius*C.X*Ne(e.explodeOffset,100),S.y=.01*P.radius*C.Y*Ne(e.explodeOffset,100)),h=this.vector(S.x+r.centerX,S.y+r.centerY,0),p=this.createSegment(h,u*x,u*d,f,P.radius,L,d,m,c,e,A),e.segments.push(p)),this.addPieDataLabel(F,y[L],v,v+b,P.radius,this.isChartRotated(o)?o.depth+5:0,h,e.points[L]),F++,v+=b,x+=d}return e.segments},r.prototype.addPieDataLabel=function(e,t,i,o,r,n,a,l){var s=(i+o)/2;l.symbolLocation={x:0,y:0,radius:0,angle:0},l.symbolLocation.x=e,l.symbolLocation.y=t,l.symbolLocation.radius=r,l.symbolLocation.angle=s,l.symbolLocation.center=a,l.startDepth=n},r.prototype.isChartRotated=function(e){var t=Math.abs(e.tilt%360),i=Math.abs(e.rotation%360);return(t>90&&t<270)!=(i>90&&i<270)},r.prototype.createSegment=function(e,t,i,o,r,n,a,l,s,h,c){return{startValue:t,endValue:i,depth:o,radius:r,index:n,yData:a,center:e,inSideRadius:l,actualEndValue:i,actualStartValue:t,pointIndex:s,series:h,visible:!0,accessibilityText:c}},r.prototype.vector=function(e,t,i){return{x:e,y:t,z:i}},r.prototype.getYValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].y);return t},r.prototype.findMaxBounds=function(e,t){e.x=t.x<e.x?t.x:e.x,e.y=t.y<e.y?t.y:e.y,e.height=t.y+t.height>e.height?t.y+t.height:e.height,e.width=t.x+t.width>e.width?t.x+t.width:e.width},r.prototype.setEmptyPoint=function(e,i,o,r){if(!t.isNullOrUndefined(e.y)&&!isNaN(e.y))return null;e.color=this.emptyPointSettings.fill||e.color;var n,a;switch(this.emptyPointSettings.mode){case"Zero":e.y=0,e.visible=!0;break;case"Average":n=o[i-1]?o[i-1][this.yName]||0:0,a=o[i+1]?o[i+1][this.yName]||0:0,e.y=(Math.abs(n)+Math.abs(a))/2,e.separatorY=r.intl.formatNumber(e.y,{useGrouping:r.useGroupingSeparator}),this.sumOfPoints+=e.y,e.visible=!0;break;default:e.visible=!1}},Fd([t.Property("")],r.prototype,"dataSource",void 0),Fd([t.Property()],r.prototype,"query",void 0),Fd([t.Property("")],r.prototype,"xName",void 0),Fd([t.Property("")],r.prototype,"name",void 0),Fd([t.Property("")],r.prototype,"tooltipMappingName",void 0),Fd([t.Property("")],r.prototype,"yName",void 0),Fd([t.Property(!0)],r.prototype,"visible",void 0),Fd([t.Complex(null,pi)],r.prototype,"animation",void 0),Fd([t.Property("SeriesType")],r.prototype,"legendShape",void 0),Fd([t.Property("")],r.prototype,"legendImageUrl",void 0),Fd([t.Property("")],r.prototype,"pointColorMapping",void 0),Fd([t.Complex({},xd)],r.prototype,"dataLabel",void 0),Fd([t.Property([])],r.prototype,"palettes",void 0),Fd([t.Property(null)],r.prototype,"radius",void 0),Fd([t.Property("0")],r.prototype,"innerRadius",void 0),Fd([t.Property(!0)],r.prototype,"enableTooltip",void 0),Fd([t.Property(!1)],r.prototype,"explode",void 0),Fd([t.Property("30%")],r.prototype,"explodeOffset",void 0),Fd([t.Property(!1)],r.prototype,"explodeAll",void 0),Fd([t.Property(null)],r.prototype,"explodeIndex",void 0),Fd([t.Complex({mode:"Drop"},Ld)],r.prototype,"emptyPointSettings",void 0),Fd([t.Property(1)],r.prototype,"opacity",void 0),r}(t.ChildProperty),Ad=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cd(t,e),t.prototype.getModuleName=function(){return"PieSeries3D"},t.prototype.destroy=function(){},t}(Pd),Md=function(){return(Md=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)},Dd=new(function(){function e(){this.transform=null}return e}()),kd=function(){function e(e,t,i){this.x=0,this.y=0,this.z=0,this.epsilon=1e-5,this.x=e,this.y=t||0,this.z=i||0}return e.prototype.isValid=function(e){return!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)},e.prototype.vector3D=function(e,t,i){return this.x=e,this.y=t,this.z=i,{x:this.x,y:this.y,z:this.z}},e.prototype.vector3DMinus=function(e,t){return this.vector3D(e.x-t.x,e.y-t.y,e.z-t.z)},e.prototype.vector3DPlus=function(e,t){return this.vector3D(e.x+t.x,e.y+t.y,e.z+t.z)},e.prototype.vector3DMultiply=function(e,t){var i=e.y*t.z-t.y*e.z,o=e.z*t.x-t.z*e.x,r=e.x*t.y-t.x*e.y;return this.vector3D(i,o,r)},e.prototype.vector3DAdd=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},e.prototype.vector3DStarMultiply=function(e,t){var i=e.x*t,o=e.y*t,r=e.z*t;return this.vector3D(i,o,r)},e.prototype.getLength=function(e){var t=this.vector3DAdd(e,e);return Math.sqrt(t)},e.prototype.getNormal=function(e,t,i){var o=this.vector3DMinus(e,t),r=this.vector3DMinus(i,t),n=this.vector3DMultiply(o,r),a=this.getLength(n);return a<this.epsilon?this.vector3D(0,0,0):this.vector3D(n.x/a,n.y/a,n.z/a)},e}(),Rd=function(){function e(){this.matrixSize=4}return e.prototype.matrix3D=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.createArray(e);return t},e.prototype.isAffine=function(e){return 0===e[0][3]&&0===e[1][3]&&0===e[2][3]&&1===e[3][3]},e.prototype.createArray=function(e){for(var t=[],i=0;i<e;++i)t[i]=0;return t},e.prototype.getIdentity=function(){for(var e=this.matrix3D(this.matrixSize),t=0;t<this.matrixSize;t++)e[t][t]=1;return e},e.prototype.getInterval=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=this.getMinor(e,i,o);return t=this.transposed(t),t=this.getMatrixMultiple(1/this.getDeterminant(e),t)},e.prototype.getMatrixMultiple=function(e,t){for(var i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++)t[i][o]=t[i][o]*e;return t},e.prototype.getMatrixVectorMultiple=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z+e[3][0],o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z+e[3][1],r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z+e[3][2];if(!this.isAffine(e)){var n=1/(e[0][3]*t.x+e[1][3]*t.y+e[2][3]*t.z+e[3][3]);i*=n,o*=n,r*=n}return{x:i,y:o,z:r}},e.prototype.getMatrixMultiplication=function(e,t){for(var i=this.getIdentity(),o=0;o<this.matrixSize;o++)for(var r=0;r<this.matrixSize;r++){for(var n=0,a=0;a<this.matrixSize;a++)n+=e[a][r]*t[o][a];i[o][r]=n}return i},e.prototype.getMinor=function(e,t,i){return((t+i)%2==0?1:-1)*this.getDeterminant(this.getMatrix(e,t,i))},e.prototype.getMatrix=function(e,t,i){for(var o=e.length-1,r=this.createArray(o),n=0;n<o;n++){var a=n>=t?n+1:n;r[n]=this.createArray(o);for(var l=0;l<o;l++){var s=l>=i?l+1:l;r[n][l]=e[a][s]}}return r},e.prototype.getDeterminant=function(e){var t=e.length,i=0;if(t<2)i=e[0][0];else for(var o=1,r=0;r<t;r++){var n=this.getMatrix(e,r,0);i+=o*e[r][0]*this.getDeterminant(n),o=o>0?-1:1}return i},e.prototype.transform=function(e,t,i){var o=this.getIdentity();return o[3][0]=e,o[3][1]=t,o[3][2]=i,o},e.prototype.turn=function(e){var t=this.getIdentity();return t[0][0]=Math.cos(e),t[2][0]=-Math.sin(e),t[0][2]=Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.tilt=function(e){var t=this.getIdentity();return t[1][1]=Math.cos(e),t[2][1]=Math.sin(e),t[1][2]=-Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.transposed=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=e[o][i];return t},e}(),Td=function(){function e(){this.toRadial=Math.PI/180,this.vector=new kd(0,0,0),this.matrixObj=new Rd}return e.prototype.transform3D=function(e){return{viewingArea:e,rotation:0,tilt:0,depth:0,perspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixObj.getIdentity(),perspective:this.matrixObj.getIdentity(),resultMatrix:this.matrixObj.getIdentity(),viewMatrix:this.matrixObj.getIdentity()}},e.prototype.transform=function(e){this.setCenter(this.vector.vector3D(e.viewingArea.width/2,e.viewingArea.height/2,e.depth/2),e),this.setViewMatrix(this.matrixObj.transform(0,0,e.depth),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.turn(-this.toRadial*e.rotation)),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.tilt(-this.toRadial*e.tilt)),e),this.updatePerspective(e.perspectiveAngle,e),e.needUpdate=!0},e.prototype.updatePerspective=function(e,t){var i=(t.viewingArea.width+t.viewingArea.height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(e%181))/2))+2*t.depth/2;t.perspective[0][0]=i,t.perspective[1][1]=i,t.perspective[2][3]=1,t.perspective[3][3]=i},e.prototype.degreeToRadianConverter=function(e){return e*Math.PI/180},e.prototype.toScreen=function(e,t,i){return i?(this.matrixObj=i,e=i.getMatrixVectorMultiple(this.result(t,i),e)):(t.chartObj=this.matrixObj,e=this.matrixObj.getMatrixVectorMultiple(this.result(t),e)),{x:e.x,y:e.y}},e.prototype.setViewMatrix=function(e,t){t.viewMatrix!==e&&(t.viewMatrix=e,t.needUpdate=!0)},e.prototype.result=function(e,t){var i=e.chartObj?e.chartObj:this.matrixObj;if(i||(i=t),!e.needUpdate)return e.resultMatrix;var o=this.matrixObj;return e.resultMatrix=i.getMatrixMultiplication(o.getInterval(e.centeredMatrix),e.perspective),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.viewMatrix),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.centeredMatrix),e.needUpdate=!1,e.resultMatrix},e.prototype.setCenter=function(e,t){t.centeredMatrix=this.matrixObj.transform(-e.x,-e.y,-e.z),t.needUpdate=!0},e}(),Ed=function(){function e(){this.vector=new kd(0,0,0)}return e.prototype.prepareView=function(e,t,i,o,r,n){0===arguments.length?Nd.build(null,n):(null==Dd.transform?Dd.transform=n.transform3D.transform3D(r):Dd.transform.viewingArea=r,Dd.tree||(Dd.tree=[]),Dd.transform.rotation=i,Dd.transform.tilt=o,Dd.transform.depth=t,Dd.transform.perspectiveAngle=e,n.transform3D.transform(Dd.transform),Dd.tree[n.groupElement.id]=Nd.build(null,n))},e.prototype.view=function(e,t,i,o,r,n,a){if(2===arguments.length){if(null==e)return;var l=this.vector.vector3D(0,0,32767);this.drawNode3D(Dd.tree[t.groupElement.id],l,e,t)}else{if(null==e)return;null==Dd.transform?Dd.transform=t.transform3D.transform3D(r):Dd.transform.viewingArea=r,Dd.transform.rotation=i,Dd.transform.tilt=o,Dd.transform.depth=a,Dd.transform.perspectiveAngle=n,t.transform3D.transform(Dd.transform);var s=this.vector.vector3D(0,0,32767);this.drawNode3D(Dd.tree[t.groupElement.id],s,e,t)}},e.prototype.draw3DElement=function(e,t){e.plane.element?"text"===e.plane.element.tag||"dataLabel"===e.plane.element.tag?Vd.drawText(e.plane,t):"polyline"===e.plane.element.tag?Vd.drawPolyLine(e.plane,t):"template"===e.plane.element.tag&&Vd.drawTemplate(e.plane,t):Vd.draw(e.plane,t)},e.prototype.drawNode3D=function(e,t,i,o){if(null!==e&&null!=Dd.transform){for(;;){if(zd.vector3DAdd(Vd.getNormal(o.transform3D.result(Dd.transform),e.plane.vectorPoints),t)>e.plane.d){if(null!=e.front&&this.drawNode3D(e.front,t,i,o),this.draw3DElement(e,o),null!=e.back){e=e.back;continue}}else if(null!=e.back&&this.drawNode3D(e.back,t,i,o),this.draw3DElement(e,o),null!=e.front){e=e.front;continue}break}return null}},e}(),_d=function(){function e(e){this.epsilon=5e-4,this.chart=e}return e.prototype.getNext=function(e,t){return e>=t?e-t:e<0?e+t:e},e.prototype.vector3DIndexClassification=function(e,t,i){return{index:t,result:i,vector:e,isCuttingBackPoint:!1,cuttingBackPairIndex:null,alreadyCutBack:!1,isCuttingFrontPoint:!1,cuttingFrontPairIndex:null,alreadyCutFront:!1}},e.prototype.classifyPoint=function(e,t){var i="OnPlane",o=-t.d-zd.vector3DAdd(e,t.normal);return o>this.epsilon?i="OnBack":o<-this.epsilon&&(i="OnFront"),i},e.prototype.classifyPolygon=function(e,t){var i="Unknown",o=t.points;if(null==o)return i;for(var r=0,n=0,a=0,l=e.normal,s=e.d,h=0,c=o.length;h<c;h++){var d=-s-zd.vector3DAdd(o[h],l);if(d>this.epsilon?r++:d<-this.epsilon?n++:a++,r>0&&n>0)break}return i=a===o.length?"OnPlane":n+a===o.length?"ToRight":r+a===o.length?"ToLeft":"Unknown"},e.prototype.splitPolygon=function(e,t){var i=[],o=[];if(null!=e.points){for(var r=[],n=[],a=[],l=void 0,s=void 0,h=e.points.length,c=0;c<h;c++){var d=e.points[c],p=e.points[this.getNext(c+1,h)],u=this.classifyPoint(d,t),g=this.classifyPoint(p,t),m=this.vector3DIndexClassification(d,r.length,u);if(r.push(m),u!==g&&"OnPlane"!==u&&"OnPlane"!==g){var y=zd.vector3DMinus(d,p),f=zd.vector3DMinus(zd.vector3DStarMultiply(t.normal,-t.d),p),v=zd.vector3DAdd(f,t.normal)/zd.vector3DAdd(t.normal,y),b=zd.vector3DPlus(p,zd.vector3DStarMultiply(y,v)),x=this.vector3DIndexClassification(b,r.length,"OnPlane");r.push(x),n.push(x),a.push(x)}}if(0!==a.length||0!==n.length){for(c=0;c<n.length-1;c+=2){var S=n[c],C=n[c+1];S.cuttingBackPoint=!0,C.cuttingBackPoint=!0,S.alterCuttingBackPairIndex=C.index,C.alterCuttingBackPairIndex=S.index}for(c=0;c<a.length-1;c+=2){var F=a[c],w=a[c+1];F.cuttingFrontPoint=!0,w.cuttingFrontPoint=!0,F.alterCuttingFrontPairIndex=w.index,w.alterCuttingFrontPairIndex=F.index}for(c=0;c<n.length-1;c++)if(!(S=n[c]).alreadyCutBack&&(l=this.cutOutBackPolygon(r,S)).length>2){var L=Vd.polygon3D(l,e);i.push(Md({},L))}for(c=0;c<a.length-1;c++)if(!(C=a[c]).alreadyCutFront&&(s=this.cutOutFrontPolygon(r,C)).length>2){var P=Vd.polygon3D(s,e);o.push(Md({},P))}}}else i.push(e),o.push(e);return{backPolygon:i,frontPolygon:o}},e.prototype.cutOutFrontPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutFront=!0,i.push(o.vector);var r=e[o.alterCuttingFrontPairIndex];if(o.cuttingFrontPoint)if(r.alreadyCutFront){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"!==n.result||n.alreadyCutFront){if("OnFront"!==a.result||a.alreadyCutFront)return i;o=a}else o=n}else o=r;else{var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"===n.result||n.alreadyCutFront){if("OnBack"===a.result||a.alreadyCutFront)return i;o=a}else o=n}}return null},e.prototype.cutOutBackPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutBack=!0,i.push(o.vector);var r=e[o.alterCuttingBackPairIndex];if(o.cuttingBackPoint)if(r.alreadyCutBack){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"!==n.result||n.alreadyCutBack){if("OnBack"!==a.result||a.alreadyCutBack)return i;o=a}else o=n}else o=r;else{var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"===n.result||n.alreadyCutBack){if("OnFront"===a.result||a.alreadyCutBack)return i;o=a}else o=n}}return null},e.prototype.build=function(e,t){if(e){var i=e;if(i.length<1)return null;var o={back:null,front:null,plane:null},r=i[0];o.plane=r;for(var n=[],a=[],l=1,s=i.length;l<s;l++){var h=i[l];if(h!==r)switch(this.classifyPolygon(r,h)){case"OnPlane":case"ToRight":a.push(h);break;case"ToLeft":n.push(h);break;case"Unknown":if(h.element)n.push(h);else{for(var c=this.splitPolygon(h,r),d=0;d<c.backPolygon.length;d++)c.backPolygon[d].name=c.backPolygon[d].name+"-back",n.push(c.backPolygon[d]);for(var p=0;p<c.frontPolygon.length;p++)c.frontPolygon[p].name=c.frontPolygon[p].name+"-front",a.push(c.frontPolygon[p])}}}return n.length>0&&(o.back=this.build(n)),a.length>0&&(o.front=this.build(a)),o}return this.build(t.circular3DPolygon)},e}(),Id=function(){function e(){}return e.prototype.getStringBuilder=function(){var e=[],t=0;return{append:function(i){return e[t++]=i,this},toString:function(t){return e.join(t||"")}}},e.prototype.hexToValue=function(e){var t,i;return 0===e.indexOf("rgba(")?(i=e.slice(5,-1).split(","),i?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10),alpha:parseFloat(i[3])}:null):0===e.indexOf("rgb(")?(i=e.slice(4,-1).split(","),i?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10)}:null):(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),t?{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16)}:null)},e.prototype.drawText=function(e,t,i,o){var r=document.getElementById(e.id)||o.groupElement.querySelector("#"+e.id);return null===r&&(r=document.createElementNS("http://www.w3.org/2000/svg","text")),r.textContent=t,r=o.renderer.setElementAttributes(e,r)},e.prototype.hexColor=function(e){var t=e.red,i=e.green,o=e.blue;if(e.alpha)return"rgba("+t.toString()+","+i.toString()+","+o.toString()+","+e.alpha+")";var r=[t.toString(16),i.toString(16),o.toString(16)];return r.forEach(function(e,t){1===e.length&&(r[t]="0"+e)}),"#"+r.join("").toUpperCase()},e.prototype.checkColorFormat=function(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1},e}(),Od=function(){function e(){this.epsilon=1e-5,this.normal={x:0,y:0,z:0},this.vector=new kd(0,0,0),this.vectorPoints=[],this.matrixObj=new Rd}return e.prototype.polygon3D=function(e,t,i,o,r,n,a,l,s,h){if(2===arguments.length)return this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints),(d=t).normal=this.normal,d.points=e,d.vectorPoints=this.vectorPoints,d.isSplit=!0,d.d=this.d,d;this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints);var c={tag:"path",parent:s},d={normal:this.normal,points:e,vectorPoints:this.vectorPoints,index:i,tag:t,name:l||null,strokeThickness:r,opacity:n,fill:a,d:this.d,text:h||"",polygonElement:c};return 1!==arguments.length&&(d.polygonElement=c),d},e.prototype.calculateNormal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=3){var i=e[0],o=e[1],r=e[2],n=this.vector.vector3DMinus(i,o),a=this.vector.vector3DMinus(r,o),l=this.vector.vector3DMultiply(n,a),s=this.vector.getLength(l);s<this.epsilon&&(s=1),this.normal=this.vector.vector3D(l.x/s,l.y/s,l.z/s),this.d=-(this.normal.x*i.x+this.normal.y*i.y+this.normal.z*i.z),e[3]&&(e[3].normal=this.normal,e[3].d=this.d)}else{var h=e[0];this.calculateNormal(h[0],h[1],h[2],e[1]);for(var c=3;c<h.length&&this.test();c++)this.calculateNormal(h[c],h[0],h[c/2])}},e.prototype.test=function(){return!this.vector.isValid(this.normal)},e.prototype.getNormal=function(e,t){var i;if(null!=t){i=this.vector.getNormal(this.matrixObj.getMatrixVectorMultiple(e,t[0]),Bd.getMatrixVectorMultiple(e,t[1]),this.matrixObj.getMatrixVectorMultiple(e,t[2]));for(var o=3;o<t.length&&!this.vector.isValid(i)&&t[o/2];o++){var r=Bd.getMatrixVectorMultiple(e,t[o]),n=Bd.getMatrixVectorMultiple(e,t[0]),a=Bd.getMatrixVectorMultiple(e,t[o/2]);i=this.vector.getNormal(r,n,a)}}return i},e.prototype.createTextElement=function(e,t,i,o){var r=[],n=e.x,a=e.y,l=t.width,s=t.height;return r[0]=this.vector.vector3D(n,a,e.z),r[1]=this.vector.vector3D(n+l,a+s+o,e.z),r[2]=this.vector.vector3D(n+l+i,a+s+o,e.z),this.text3D(t,r)},e.prototype.createPolyline=function(e,t){if(2===e.length){var i=e[1];e.push({x:i.x,y:i.y,z:i.z})}return this.polyLine3D(t,e)},e.prototype.polyLine3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.text3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.drawPolyLine=function(e,t){var i=Dd.transform,o=t.svg3DRenderer.getStringBuilder(),r=t.transform3D.toScreen(e.vectorPoints[0],i);o.append("M "+r.x+" "+r.y+" ");var n=t.transform3D.toScreen(e.vectorPoints[1],i);o.append("L "+n.x+" "+n.y+" "),o.append("M "+n.x+" "+n.y+" ");var a=t.transform3D.toScreen(e.vectorPoints[2],i);o.append("L "+a.x+" "+a.y+" ");var l=o.toString(),s={id:e.element.id,"stroke-dasharray":e.element.dashArray,"stroke-width":e.element.width,stroke:e.element.stroke,d:l},h=t.renderer.drawPath(s);be(!1,t.groupElement,h,t.redraw,!0,"x","y",null,l)},e.prototype.drawText=function(e,t){var o=e.element,r=Dd.transform;if(null!=r){var n=t.transform3D.toScreen(e.vectorPoints[0],r),a=n.x,l=n.y;if("text"===o.tag){var s={id:o.id,x:a,y:l,fill:o.font.color||o.fill,"font-size":o.font.size,"font-family":o.font.fontFamily||t.themeStyle.datalabelFont.fontFamily,"font-style":o.font.fontStyle,"font-weight":o.font.fontWeight,opacity:o.font.opacity,"text-anchor":o.textAnchor,cursor:"default",transform:o.angle?"rotate("+o.angle+","+a+","+l+")":""},h=t.svg3DRenderer.drawText(s,o.label.text,e.element.font,t);if(o.id.indexOf("text")>-1&&h.setAttribute("aria-hidden","true"),t.groupElement.append(h),t.previousID&&t.isTouch){var c=document.getElementById(t.previousID),d=document.getElementById(s.id);c&&d&&d.parentNode.insertBefore(d,c.nextSibling)}t.previousID=s.id}else{var p=o.series,u=o.point.argsData.text,g=i.measureText(u,o.point.argsData.font,t.themeStyle.datalabelFont),m=g.width+10+10,y=g.height+10+10,f={x:n.x,y:n.y},v=f.x-5+5,b=f.y-5-y/10+5,x=p.index;this.dataLabelSymbol(x,p,o,v,b,m,y,t)}}},e.prototype.dataLabelSymbol=function(e,t,i,o,r,n,a,l){var s="M "+(o+-n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+-a/2)+" z",h="";if(t.dataLabel.enableRotation){var c=void 0,d=c=t.dataLabel.angle;if(0===d){var p=function(e){return e*(180/Math.PI)}(i.point.symbolLocation.angle);c="Outside"===t.dataLabel.position?0:p>=90&&p<=260?p+180:p}else c=d>360?d-360:d<-360?d+360:d;h="rotate("+c+","+o+","+r+")"}var u={id:l.element.id+"-svg-data-label-series-"+e+"-shape-"+i.pointIndex,fill:i.point.argsData.color,"stroke-width":i.point.argsData.border.width,stroke:i.point.argsData.border.color,"stroke-dasharray":i.point.argsData.border.dashArray,opacity:1,visibility:"",transform:h,d:s},g=l.renderer.drawPath(u);if(l.groupElement.append(g),l.previousID&&l.isTouch){var m=document.getElementById(l.previousID),y=document.getElementById(u.id);m&&y&&y.parentNode.insertBefore(y,m.nextSibling)}l.previousID=u.id},e.prototype.draw=function(e,t){if(!(null==e.vectorPoints||e.vectorPoints.length<=0)){var i=Dd.transform,o=t.svg3DRenderer.getStringBuilder(),r=e.fill;t.svg3DRenderer.checkColorFormat(r)||(r=Re(r));var n={StartPoint:null};if(null!=i){n.StartPoint=t.transform3D.toScreen(e.vectorPoints[0],i),o.append("M "+n.StartPoint.x+" "+n.StartPoint.y+" ");for(var a=0;a<e.vectorPoints.length;a++){var l=t.transform3D.toScreen(e.vectorPoints[a],i);o.append("L "+l.x+" "+l.y+" ")}}var s=o.toString(),h="Light",c=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,0,1)))-1),d=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,1,0)))-1),p=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(1,0,0)))-1);!e.name||e.name.indexOf("-wall-brush")>-1||(c===p?(h="ZLight",r=this.applyZLight(r,t)):d===c||0!==c&&d<c?(h="XLight",r=this.applyXLight(r,t)):c<0?(h="ZLight",r=this.applyZLight(r,t)):h="Light");var u={id:t.element.id+"-svg-"+e.name,name:h,fill:r,stroke:"","stroke-width":e.strokeThickness,opacity:e.opacity,d:s},g=t.renderer.drawPath(u);if(e.text&&(g.setAttribute("aria-label",e.text),g.setAttribute("role","img")),be(!1,e.polygonElement.parent,g,t.redraw,!0,"x","y",null,s),t.previousID&&t.isTouch){var m=document.getElementById(t.previousID),y=document.getElementById(u.id);m&&y&&y.parentNode.insertBefore(y,m.nextSibling)}t.previousID=u.id}},e.prototype.drawTemplate=function(e,t){var i=e.element,o=Dd.transform;if(null!=o){var r=i.label,n=t.transform3D.toScreen(e.vectorPoints[0],o);t.circularChartDataLabel3DModule.createDataLabelTemplate(r.series.dataLabelElement,r.series,r.series.dataLabel,r.series.points[r.pointIndex],r.series.points[r.pointIndex].argsData,r.pointIndex,!1,n,t)}},e.prototype.applyXLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.7*i.red).toString(),10),i.green=parseInt((.7*i.green).toString(),10),i.blue=parseInt((.7*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e.prototype.applyZLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.9*i.red).toString(),10),i.green=parseInt((.9*i.green).toString(),10),i.blue=parseInt((.9*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e}(),zd=new kd(0,0,0),Bd=new Rd,Nd=new _d,Vd=new Od,Hd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Wd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},jd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Hd(i,e),Wd([t.Property(!0)],i.prototype,"visible",void 0),Wd([t.Property(null)],i.prototype,"height",void 0),Wd([t.Property(null)],i.prototype,"width",void 0),Wd([t.Complex({x:0,y:0},oi)],i.prototype,"location",void 0),Wd([t.Property("Auto")],i.prototype,"position",void 0),Wd([t.Property(8)],i.prototype,"padding",void 0),Wd([t.Property(null)],i.prototype,"itemPadding",void 0),Wd([t.Property("Center")],i.prototype,"alignment",void 0),Wd([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),Wd([t.Property(10)],i.prototype,"shapeHeight",void 0),Wd([t.Property(10)],i.prototype,"shapeWidth",void 0),Wd([t.Complex({},hi)],i.prototype,"border",void 0),Wd([t.Complex({left:0,right:0,top:0,bottom:0},di)],i.prototype,"margin",void 0),Wd([t.Complex({left:0,right:0,top:0,bottom:0},fi)],i.prototype,"containerPadding",void 0),Wd([t.Property(8)],i.prototype,"shapePadding",void 0),Wd([t.Property("transparent")],i.prototype,"background",void 0),Wd([t.Property(1)],i.prototype,"opacity",void 0),Wd([t.Property(!0)],i.prototype,"toggleVisibility",void 0),Wd([t.Property(!1)],i.prototype,"enableHighlight",void 0),Wd([t.Property(null)],i.prototype,"description",void 0),Wd([t.Property(3)],i.prototype,"tabIndex",void 0),Wd([t.Property(null)],i.prototype,"title",void 0),Wd([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],i.prototype,"titleStyle",void 0),Wd([t.Property("Top")],i.prototype,"titlePosition",void 0),Wd([t.Property("Normal")],i.prototype,"textWrap",void 0),Wd([t.Property("Ellipsis")],i.prototype,"textOverflow",void 0),Wd([t.Property(100)],i.prototype,"maximumTitleWidth",void 0),Wd([t.Property(null)],i.prototype,"maximumLabelWidth",void 0),Wd([t.Property(!0)],i.prototype,"enablePages",void 0),Wd([t.Property(!1)],i.prototype,"isInversed",void 0),Wd([t.Property(!1)],i.prototype,"reverse",void 0),i}(t.ChildProperty),Ud=function(e){function o(t){var o=e.call(this,t)||this;return o.library=o,o.titleRect=new i.Rect(0,t.margin.top,0,0),o.addEventListener(),o}return Hd(o,e),o.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on("click",this.click,this))},o.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},o.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.circularChartHighlight3DModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=0,r=t;o<r.length;o++){var n=r[o];if(i.indexOf(n)>-1){this.chart.circularChartSelection3DModule?this.chart.circularChartSelection3DModule.legendSelection(this.chart,e.target,e.type):this.chart.circularChartHighlight3DModule&&this.chart.circularChartHighlight3DModule.legendSelection(this.chart,e.target,e.type);break}}},o.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},o.prototype.getLegendOptions=function(e,i){this.legendCollections=[],this.isRtlEnable=e.enableRtl,this.isReverse=!this.isRtlEnable&&e.legendSettings.reverse;for(var o=0;o<1;o++){for(var r=0,n=i[o].points;r<n.length;r++){var a=n[r];t.isNullOrUndefined(a.x)||t.isNullOrUndefined(a.y)||this.legendCollections.push(new qo(a.x.toString(),a.color,i[o].legendShape,a.visible,"Pie",i[0].legendImageUrl,null,null,a.index,i[o].index))}this.isReverse&&this.legendCollections.reverse()}},o.prototype.getLegendBounds=function(e,t,o){this.calculateLegendTitle(o,t),this.isTitle=!!o.title;var r,n=0,a=0;this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var l=o.padding,s=o.titlePosition,h=0,c=this.arrowWidth,d=o.enablePages?0:this.arrowHeight;this.isVertical?n=o.width?0:e.width/100*5:a=o.height?0:e.height/100*5,t.width+=n,t.height+=a;var p=o.shapePadding,u=o.maximumLabelWidth?o.maximumLabelWidth:0,g=o.shapeWidth,m=0,y=0,f=0,v=[],b=[],x=0,S=0,C=0,F=0,w=0;this.maxItemHeight=Math.max(i.measureText("MeasureText",o.textStyle,this.chart.themeStyle.legendLabelFont).height,o.shapeHeight);for(var L,P=!1,A=0;A<this.legendCollections.length;A++)if(r=this.legendCollections[A],L={fill:r.fill,text:r.text,shape:r.shape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",L),r.render=!L.cancel,r.text=L.text.indexOf("&")>-1?this.convertHtmlEntities(L.text):L.text,r.fill=L.fill,r.shape=L.shape,r.textSize=i.measureText(r.text,o.textStyle,this.chart.themeStyle.legendLabelFont),r.render&&""!==r.text)if(P=!0,F=g+p+(o.maximumLabelWidth?o.maximumLabelWidth:r.textSize.width)+(this.isVertical?l:0===A?l:this.itemPadding),this.getLegendHeight(r,o,t,m,this.maxItemHeight,l),this.isVertical)(C+=r.textSize.height+(0===A?l:this.itemPadding))+this.itemPadding+d/this.pageButtonSize>t.height&&(m+=u,x=this.getPageWidth(b),this.totalPages=Math.max(f,this.totalPages||1),m-x+F>t.width?(b.push(m-x),S=f=this.rowHeights.length):f=S,v.push(u),u=0,C=r.textSize.height+l,y++),this.columnHeights[y]=(this.columnHeights[y]?this.columnHeights[y]:0)+r.textSize.height+(0===A?l:this.itemPadding),u=Math.max(F,u),this.rowHeights[f]=Math.max(this.rowHeights[f]?this.rowHeights[f]:0,r.textSize.height),f++;else{o.enablePages||(h=this.isTitle&&"Top"!==s?this.legendTitleSize.width+this.fivePixel:0,h+=c),m+=F,t.width<l+m+h&&(u=Math.max(u,m+l+h-F),0===f&&F!==m&&(f=1),m=F,f++,y=0);var M=f?f-1:f;this.rowHeights[M]=Math.max(this.rowHeights[M]?this.rowHeights[M]:0,r.textSize.height),this.columnHeights[y]=(this.columnHeights[y]?this.columnHeights[y]:0)+r.textSize.height+l,y++}w="Top"===s?this.legendTitleSize.height:0,this.isVertical?(m+=u,this.isPaging=t.width<m+l,C=Math.max.apply(null,this.columnHeights)+l+d+w,C=Math.max(C,(this.totalPages||1)*(this.maxItemHeight+l)+l+d),this.isPaging=this.isPaging&&this.totalPages>1,v.push(u)):(this.totalPages=f,C=Math.max.apply(null,this.columnHeights)+l+d+w,this.isPaging=t.height<C,C=!o.enablePages&&this.isPaging?this.maxItemHeight+l+l+w:C,C=Math.max(C,this.maxItemHeight+l+l+w),this.isPaging||(m+=this.isTitle&&"Top"!==s?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0)),this.maxColumns=0;var D=this.isVertical?this.getMaxColumn(v,t.width,l,m+l):Math.max(m+l,u);P?this.setBounds(D,C,o,t):this.setBounds(0,0,o,t)},o.prototype.getPageWidth=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t},o.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=Ze(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},o.prototype.convertHtmlEntities=function(e){var t=e.replace("&amp;","&").replace("&lt;","<").replace("&gt;",">").replace("&quot;",'"').replace("&nbsp;"," ").replace("&cent;","¢").replace("&pound;","£").replace("&yen;","¥").replace("&euro;","€").replace("&copy;","©").replace("&reg;","®");return t=t.replace("&#38;","&").replace("&#60;","<").replace("&#62;",">").replace("&#34;",'"').replace("&#160;"," ").replace("&#162;","¢").replace("&#163;","£").replace("&#165;","¥").replace("&#8364;","€").replace("&#169;","©").replace("&#174;","®")},o.prototype.getMaxColumn=function(e,t,i,o){var r=i;this.maxColumnWidth=Math.max.apply(null,e);for(s=0;s<e.length;s++)if(r+=this.maxColumnWidth,this.maxColumns++,r+i>t){r-=this.maxColumnWidth,this.maxColumns--;break}this.isPaging=r<o&&this.totalPages>1,r===i&&(r=t),this.maxColumns=Math.max(1,this.maxColumns),this.maxWidth=r;var n=this.maxColumnWidth+i,a=0,l=this.columnHeights.length;if(this.isPaging&&this.isVertical){for(var s=1;s<l;s++)(n+=this.maxColumnWidth+i)>t&&(this.pageHeights.push(a!==s-1?Math.max.apply(null,this.columnHeights.slice(a,s-1)):this.columnHeights[a]),n=this.maxColumnWidth+i,a=s);this.pageHeights.push(a!==l-1?Math.max.apply(null,this.columnHeights.slice(a,l-1)):this.columnHeights[a]),this.totalPages=this.pageHeights.length}return r},o.prototype.getAvailWidth=function(e,t){if(this.isVertical)t=this.maxWidth;else if(!this.isVertical&&this.isPaging&&!this.legend.enablePages)return t-e-this.fivePixel;return t-(2*this.legend.padding+this.legend.shapeWidth+this.legend.shapePadding)},o.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=o.location.y+this.maxItemHeight/4+(o.textCollection.length>0?(o.textCollection.length-1)*this.maxItemHeight:0);if(this.isVertical)if(n===a||s+e.textSize.height+l>r.y+r.height){e.location.x=o.location.x+(n===a?0:this.isRtlEnable?-this.maxColumnWidth:this.maxColumnWidth),e.location.y=t.y;var h=this.legend.shapeWidth/2+l;this.pageXCollections.push(e.location.x+(this.isRtlEnable?h:-h))}else e.location.x=o.location.x,e.location.y=o.location.y+o.textSize.height+this.itemPadding;else{var c=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),d=o.location.x+(this.isRtlEnable?-c:c);this.isWithinBounds(d,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r,this.legend.shapeWidth/2)?(n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+this.rowHeights[this.chartRowCount-2]+l,e.location.x=t.x):(e.location.y=o.location.y,e.location.x=n===a?o.location.x:d)}var p=this.getAvailWidth(e.location.x,this.legendBounds.width);p=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,p):p,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=ze(+p.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},o.prototype.isWithinBounds=function(e,t,i,o){return this.isRtlEnable?e-t<i.x-o:e+t>i.x+i.width+o},o.prototype.getSmartLegendLocation=function(e,t,i){var o;switch(this.position){case"Left":o=(e.x-t.width-i.left)/2,t.x=e.x-t.width<i.left?t.x:e.x-t.width-o;break;case"Right":o=(this.chart.availableSize.width-i.right-(e.x+e.width+t.width))/2,t.x=e.x+e.width+t.width>this.chart.availableSize.width-i.right?t.x:e.x+e.width+o;break;case"Top":this.getTitleRect(this.chart),o=(e.y-t.height-(this.titleRect.y+this.titleRect.height))/2,t.y=e.y-t.height<i.top?t.y:e.y-t.height-o;break;case"Bottom":o=(this.chart.availableSize.height-i.bottom-(e.y+e.height+t.height))/2,t.y=e.y+e.height+t.height>this.chart.availableSize.height-i.bottom?t.y:e.y+e.height+o}},o.prototype.getTitleRect=function(e){if(!e.title)return null;var t=i.measureText(e.title,e.titleStyle,this.chart.themeStyle.legendTitleFont);this.titleRect=new i.Rect(e.availableSize.width/2-t.width/2,e.margin.top,t.width,t.height)},o.prototype.legendByIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.pointIndex===e)return r}return null},o.prototype.click=function(e){var t=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,i=this.chart,o=[this.legendID+"_text_",this.legendID+"_shape_",this.legendID+"_shape_marker_"];this.chart.animateSeries=!1;for(var r=0,n=o;r<n.length;r++){var a=n[r];if(t.indexOf(a)>-1){var l=parseInt(t.split(a)[1],10);if(this.chart.legendSettings.toggleVisibility&&!isNaN(l)){var s=this.chart.visibleSeries[0],h=s.points[l],c=this.legendByIndex(l,this.legendCollections),d={legendText:c.text,legendShape:c.shape,chart:i,series:s,point:h,name:Di,cancel:!1};if(this.chart.trigger(Di,d),!d.cancel){h.visible=!h.visible,c.visible=h.visible,s.sumOfPoints+=h.visible?h.y:-h.y,i.redraw=i.enableAnimation,this.sliceVisibility(l,h.visible),i.removeSeriesElements(i),i.removeSvg();var p=document.getElementById(this.chart.element.id+"-svg-chart-3d");if(p)for(;p.childNodes.length>0;)p.removeChild(p.firstChild);this.chart.circular3DPolygon=[],this.chart.visibleSeries[0].segments=[],this.chart.animateSeries=!1,this.chart.calculateBounds(),this.chart.renderElements(),i.circularChartHighlight3DModule&&("None"!==i.highlightMode||i.legendSettings.enableHighlight)&&i.circularChartHighlight3DModule.redrawSelection(i)}}else this.chart.circularChartSelection3DModule&&!isNaN(l)?this.chart.circularChartSelection3DModule.legendSelection(this.chart,e.target,e.type):this.chart.circularChartHighlight3DModule&&!isNaN(l)&&this.chart.circularChartHighlight3DModule.legendSelection(this.chart,e.target,e.type)}}t.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):t.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),i.redraw=!1},o.prototype.sliceVisibility=function(e,t){var i=this.chart.element.id+"_Series_0_Point_";this.chart.visibleSeries[0].dataLabel.visible&&(i=this.chart.element.id+"_datalabel_Series_0_",this.sliceAnimate(he(i+"g_"+e),t))},o.prototype.sliceAnimate=function(e,i){if(!e)return null;new t.Animation({}).animate(e,{duration:300,delay:0,name:i?"FadeIn":"FadeOut",end:function(e){e.element.style.visibility=i?"visible":"hidden"}})},o.prototype.getModuleName=function(){return"CircularChartLegend3D"},o.prototype.destroy=function(){this.removeEventListener()},o}(Zo),Xd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Gd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Yd=function(){function e(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.index=i}return e}(),Zd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xd(i,e),Gd([t.Property(!1)],i.prototype,"enable",void 0),Gd([t.Property(!0)],i.prototype,"enableMarker",void 0),Gd([t.Property(null)],i.prototype,"fill",void 0),Gd([t.Property(null)],i.prototype,"header",void 0),Gd([t.Property(null)],i.prototype,"opacity",void 0),Gd([t.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},ai)],i.prototype,"textStyle",void 0),Gd([t.Property(null)],i.prototype,"format",void 0),Gd([t.Property(null)],i.prototype,"template",void 0),Gd([t.Property(!1)],i.prototype,"enableAnimation",void 0),Gd([t.Property(300)],i.prototype,"duration",void 0),Gd([t.Property(700)],i.prototype,"fadeOutDuration",void 0),Gd([t.Property(!1)],i.prototype,"enableTextWrap",void 0),Gd([t.Complex({color:null,width:null},hi)],i.prototype,"border",void 0),Gd([t.Complex({x:null,y:null},oi)],i.prototype,"location",void 0),i}(t.ChildProperty),qd=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPoints=[],t.previousPoints=[],t.tooltipRendered=!1,t}return Xd(o,e),o.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.control.tooltip.fadeOutDuration)},o.prototype.mouseUpHandler=function(e,t){this.control=t,this.element=t.element;var i=Math.abs(t.mouseX-t.cachedX)<10&&Math.abs(t.mouseY-t.cachedY)<10;this.control.tooltip.enable&&!t.rotateActivate&&i&&V(this.control.mouseX,this.control.mouseY,this.control.initialClipRect)&&this.control.isTouch?(this.tooltip(e),this.removeTooltip(2e3),this.tooltipRendered=!0):this.control.isTouch&&this.removeTooltip(0)},o.prototype.mouseMoveHandler=function(e,t){this.control=t,this.element=t.element,this.tooltipRendered||(this.control.tooltip.enable&&!t.rotateActivate&&V(this.control.mouseX,this.control.mouseY,this.control.initialClipRect)?this.tooltip(e):this.removeTooltip(0)),this.tooltipRendered=!1},o.prototype.tooltip=function(e){this.renderSeriesTooltip(this.control,this.getPieData(e,this.control))},o.prototype.getElement=function(e){return document.getElementById(e)},o.prototype.getTooltipElement=function(e){this.header=null===this.control.tooltip.header?"${series.name}":this.control.tooltip.header,this.formattedText=[];var t=document.getElementById(this.control.element.id+"_tooltip");return e||t?null:this.createElement()},o.prototype.createElement=function(){var e=document.createElement("div");return e.id=this.element.id+"_tooltip",e.className="ejSVGTooltip",e.style.pointerEvents="none",e.style.position="absolute",e.style.zIndex="1",e},o.prototype.renderSeriesTooltip=function(e,t){var i=this.getElement(this.element.id+"_tooltip_svg"),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o),n=!o;this.template=e.tooltip.template,this.currentPoints=[],t.point?this.pushData(t,r)&&this.triggerTooltipRender(t,n,this.getTooltipText(t,e.tooltip),this.findHeader(t)):!t.point&&this.isRemove&&(this.removeTooltip(this.control.tooltip.fadeOutDuration),this.isRemove=!1)},o.prototype.removeTooltip=function(e){var t=this,i=this.getElement(this.element.id+"_tooltip");this.stopAnimation(),i&&this.previousPoints.length>0&&(this.tooltipInterval=+setTimeout(function(){t.svgTooltip&&t.svgTooltip.fadeOut()},e))},o.prototype.stopAnimation=function(){Fe(this.tooltipInterval)},o.prototype.pushData=function(e,t){return!!e.series.enableTooltip&&(this.currentPoints.push(e),this.stopAnimation(),t&&!document.getElementById(t.id)&&document.getElementById(this.element.id+"_Secondary_Element").appendChild(t),!0)},o.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a=this.control.tooltip,l={cancel:!1,text:o,point:e.point,textStyle:a.textStyle,series:e.series,headerText:r,template:this.template,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,pointIndex:e.point.index,pointText:e.point.text,seriesName:e.series.name}},s=function(o){if(o.cancel)n.removeHighlight(),t.remove(n.getElement(n.element.id+"_tooltip"));else{n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText,n.headerText=o.headerText;var r={x:null!==a.location.x?a.location.x:n.control.mouseX,y:null!==a.location.y?a.location.y:n.control.mouseY-10};n.createTooltip(n.control,i,r,e.series.clipRect,e.point,0,n.control.initialClipRect,null,e.point,n.template?o.template:"")}n.isRemove=!0};s.bind(this,e),this.control.trigger("tooltipRender",l,s)},o.prototype.getPieData=function(e,t){var i,o=t.visibleSeries[0],r=e.target;if(r.id.indexOf("point")>-1&&r.id.indexOf("series")>-1){var n=parseInt(r.id.split("point-")[1],10);i=o.points[n]}else if(r.id.indexOf("-data-label-text")>-1&&"Inside"===o.dataLabel.position){a=parseInt(r.id.split("data-label-text-")[1],10);i=o.points[a]}else if(r.id.indexOf("data-label-series")>-1&&"Inside"===o.dataLabel.position){var a=parseInt(r.id.split("data-label-series-0-shape-")[1],10);i=o.points[a]}return i?{point:i,series:o,index:i.index}:new Yd(null,null)},o.prototype.getTooltipText=function(e,t){var i=e.series,o=t.format?t.format:this.control.theme.indexOf("Tailwind3")>-1?"${point.x} : ${point.y}":"${point.x} : <b>${point.y}</b>";return o=this.control.useGroupingSeparator?o.replace("${point.y}","${point.separatorY}"):o,this.parseTemplate(e.point,i,o)},o.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},o.prototype.parseTemplate=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++)o=new n("${point."+(c=l[a])+"}","gm"),i=i.replace(o.source,e[c]);for(var s=0,h=Object.keys(Object.getPrototypeOf(t));s<h.length;s++){var c=h[s];o=new n("${series."+c+"}","gm"),r=t[c],i=i.replace(o.source,r)}return i},o.prototype.createTooltip=function(e,t,o,r,n,a,l,s,h,c){void 0===s&&(s=null),void 0===h&&(h=null);var d=e.circularChartTooltip3DModule;if(!d||null===o)return void g(this.control.element.id+"_tooltip");t?(this.svgTooltip=new i.Tooltip({opacity:e.tooltip.opacity?e.tooltip.opacity:"Material3"===this.control.theme||"Material3Dark"===this.control.theme||this.control.theme.indexOf("Bootstrap5")>-1?1:.75,header:this.headerText,content:this.text,fill:e.tooltip.fill,border:e.tooltip.border,enableAnimation:e.tooltip.enableAnimation,location:o,shared:!1,crosshair:!1,shapes:e.tooltip.enableMarker?["Circle"]:[],clipBounds:r,areaBounds:l,palette:this.findPalette(),template:c||this.template,data:h,theme:e.theme,offset:a,textStyle:e.tooltip.textStyle,isNegative:!1,inverted:!1,arrowPadding:0,availableSize:e.availableSize,duration:this.control.tooltip.duration,isCanvas:!1,isFixed:null!==this.control.tooltip.location.x||null!==this.control.tooltip.location.y,isTextWrap:e.tooltip.enableTextWrap,blazorTemplate:{name:"Template",parent:this.control.tooltip},controlInstance:this.control,enableRTL:e.enableRtl,controlName:"Chart",allowHighlight:!1,tooltipRender:function(){d.removeHighlight(),d.highlightPoints(),d.updatePreviousPoint(s)},animationComplete:function(e){e.tooltip.fadeOuted&&d.fadeOut()}}),this.svgTooltip.appendTo(this.getElement(this.element.id+"_tooltip"))):this.svgTooltip&&(this.svgTooltip.location=o,this.svgTooltip.content=this.text,this.svgTooltip.header=this.headerText,this.svgTooltip.offset=a,this.svgTooltip.palette=this.findPalette(),this.svgTooltip.shapes=e.tooltip.enableMarker?["Circle"]:[],this.svgTooltip.data=h,this.svgTooltip.template=this.template,this.svgTooltip.controlName="Chart",this.svgTooltip.crosshair=!1,this.svgTooltip.textStyle=e.tooltip.textStyle,this.svgTooltip.isNegative=!1,this.svgTooltip.clipBounds=r,this.svgTooltip.arrowPadding=0,this.svgTooltip.allowHighlight=!1,this.svgTooltip.dataBind()),this.control.isReact&&this.control.renderReactTemplates()},o.prototype.highlightPoints=function(){for(var e=0,t=this.currentPoints;e<t.length;e++){var i=t[e];i.series.isRectSeries&&"Series"===i.series.category&&this.highlightPoint(i.series,i.point.index,!0)}},o.prototype.removeHighlight=function(){for(var e,t=0,i=this.previousPoints.length;t<i;t++)(e=this.previousPoints[t]).series.isRectSeries&&e.series.visible&&this.highlightPoint(e.series,e.point.index,!1)},o.prototype.highlightPoint=function(e,t,i){var o=this;if(this.control.circularChartHighlight3DModule&&"None"===this.control.highlightMode||!this.control.circularChartHighlight3DModule){var r=[];document.querySelectorAll('[id*="region-series-0-point-'+t+'"]').forEach(function(e){parseInt(e.id.split("point-")[1],10)===t&&r.push(e)});var n=document.getElementById(this.control.element.id+"-svg-data-label-text-"+t),a=document.getElementById(this.control.element.id+"-datalabel-series-0-connector-"+t),l=document.getElementById(this.control.element.id+"-svg-data-label-series-0-shape-"+t);n&&r.push(n),a&&r.push(a),l&&r.push(l);var s=document.getElementById(this.element.id+"-svg-chart-3d").children;if(s)for(var h=0,c=s;h<c.length;h++){var d=c[h];if(d.parentElement.id===this.control.groupElement.id){var p=!d.hasAttribute("class")||-1===d.getAttribute("class").indexOf("_selection_");d.setAttribute("opacity",(i&&"transparent"!==this.control.highlightColor&&p?.2:e.opacity).toString())}}r&&r.forEach(function(t){t.parentElement.id===o.control.groupElement.id&&t.setAttribute("opacity",e.opacity.toString())})}},o.prototype.fadeOut=function(){var e=this.getElement(this.element.id+"_tooltip_svg");e&&parseInt(e.getAttribute("opacity"),10)>0||(this.currentPoints=[],this.removeHighlight(),this.previousPoints=[],this.svgTooltip=null,this.control.trigger("animationComplete",{}))},o.prototype.updatePreviousPoint=function(e){e&&(this.currentPoints=this.currentPoints.concat(e)),this.previousPoints=t.extend([],this.currentPoints,null,!0)},o.prototype.findPalette=function(){for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(o.point.color)}return e},o.prototype.getModuleName=function(){return"CircularChartTooltip3D"},o.prototype.destroy=function(){},o}(t.ChildProperty),Qd=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$d=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Kd=function(e){function o(t,i){var o=e.call(this,t,i)||this;return o.chartId=57724,o.explodeDistance=0,o.rotateActivate=!1,o.previousTargetId="",o.currentPointIndex=0,o.currentLegendIndex=0,o.isLegendClicked=!1,o.delayRedraw=!1,o}return Qd(o,e),Object.defineProperty(o.prototype,"type",{get:function(){return"Pie"},enumerable:!0,configurable:!0}),o.prototype.preRender=function(){if(this.allowServerDataBinding=!1,this.unWireEvents(),this.titleLocation={x:0,y:0,size:new i.Size(0,0)},this.subTitleLocation={x:0,y:0,size:new i.Size(0,0)},this.circularRadius=[],this.innerRadius=[],this.matrixObj=new Rd,this.bspTreeObj=new _d,this.polygon=new Od,this.vector=new kd(null,null,null),this.graphics=new Ed,this.transform3D=new Td,this.svg3DRenderer=new Id,this.circular3DPolygon=[],this.explodeDistance=0,this.setCulture(),this.animateSeries=!0,""===this.element.id){var e=document.getElementsByClassName("e-circular3dchart").length;this.element.id="acc_chart_"+this.chartId+"_"+e}this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":""),this.element.style.outline="none"},o.prototype.unWireEvents=function(){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchMoveEvent,r=t.Browser.touchEndEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,o,this.chartOnMouseMove),t.EventHandler.remove(this.element,r,this.chartMouseUp),t.EventHandler.remove(this.element,i,this.chartMouseDown),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,n,this.chartMouseLeave),t.EventHandler.remove(this.element,"keydown",this.circular3DChartKeyDown),t.EventHandler.remove(this.element,"keyup",this.circular3DChartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.chartResizeBound)},o.prototype.chartOnMouseClick=function(e){if(this.setMouseXY(e),this.circularChartLegend3DModule&&this.legendSettings.visible&&this.circularChartLegend3DModule.click(e),"None"!==this.selectionMode&&this.circularChartSelection3DModule&&this.circularChartSelection3DModule.calculateSelectedElements(this,e.target,e.type),this.visibleSeries[0].explode){var t=e.target.id,i=void 0,o=void 0;t.indexOf("-point-")>-1&&(i=t.split("-series-")[1].split("-point-"),o=parseInt(i[1],10),this.visibleSeries[0].explodeIndex===o||this.visibleSeries[0].points[o].isExplode?(this.visibleSeries[0].explodeIndex=null,this.visibleSeries[0].isExploded=!0,this.visibleSeries[0].points.forEach(function(e){e.isExplode=!1})):this.visibleSeries[0].explodeIndex=o,this.removeSeriesElements(this),this.visibleSeries[0].segments=[],this.circular3DPolygon=[],this.renderSeries(),this.processSelection(),this.delayRedraw=!0)}return this.trigger("circularChart3DMouseClick",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointClick&&this.triggerPointEvent("pointClick",e.target,e),this.removeNavigationStyle(),!1},o.prototype.triggerPointEvent=function(e,t,i){var o,r=i,n=this.visibleSeries[0];if(t.id.indexOf("point")>-1&&t.id.indexOf("series")>-1){var a=parseInt(t.id.split("point-")[1],10);o=n.points[a]}o&&this.trigger(e,{series:n,point:o,seriesIndex:n.index,pointIndex:o.index,x:this.mouseX,y:this.mouseY,pageX:r.pageX,pageY:r.pageY})},o.prototype.chartOnMouseMove=function(e){if(!he(this.element.id+"_svg"))return!1;if(this.setMouseXY(e),this.trigger("circularChart3DMouseMove",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.rotateActivate){var i=this.previousCoords.x-this.mouseX,o=this.previousCoords.y-this.mouseY;if(i||o){if(this.tilt-=o,this.rotation+=i,!this.isTouch){var r=document.getElementById(this.groupElement.id);r.innerHTML="",r.remove()}var n={width:this.availableSize.width,height:this.availableSize.height};this.graphics.view(this.svgObject,this,this.rotation,this.tilt,n,0,this.depth),be(!1,this.svgObject,this.groupElement,this.redraw),this.setSeriesTabIndex(),this.previousCoords.y=this.mouseY,this.previousCoords.x=this.mouseX,this.circularChartHighlight3DModule&&"None"!==this.highlightMode&&(this.circularChartHighlight3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove"),this.circularChartHighlight3DModule.previousSelectedElement=[]),this.processSelection()}}return this.pointMove&&this.triggerPointEvent("pointMove",e.target,e),this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseMoveHandler(e,this),this.isTouch||this.titleTooltip(e,this.mouseX,this.mouseY),this.notify(t.Browser.touchMoveEvent,e),!1},o.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"-title"||r===this.element.id+"-sub-title"||r===this.element.id+"_chart_legend_title";e.target.textContent.indexOf("...")>-1&&n?y(r===this.element.id+"-title"?this.title:r===this.element.id+"-sub-title"?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",he(this.element.id+"_Secondary_Element"),o):g(this.element.id+"_EJ2_Title_Tooltip")},o.prototype.setMouseXY=function(e){var t,i,o=he(this.element.id+"_svg");if(o&&this.element){var r=o.getBoundingClientRect(),n=this.element.getBoundingClientRect();if(e.type.indexOf("touch")>-1){this.isTouch=!0;var a=e;i=a.changedTouches[0].clientY,t=a.changedTouches[0].clientX}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY;this.mouseY=i-n.top-Math.max(r.top-n.top,0),this.mouseX=t-n.left-Math.max(r.left-n.left,0)}},o.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchEndEvent,r=t.Browser.touchMoveEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.add(this.element,r,this.chartOnMouseMove,this),t.EventHandler.add(this.element,o,this.chartMouseUp,this),t.EventHandler.add(this.element,i,this.chartMouseDown,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,n,this.chartMouseLeave,this),t.EventHandler.add(this.element,"keydown",this.circular3DChartKeyDown,this),t.EventHandler.add(this.element,"keyup",this.circular3DChartKeyUp,this),this.chartResizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.chartResizeBound),this.setStyle(this.element)}},o.prototype.chartMouseLeave=function(e){return this.setMouseXY(e),this.trigger("circularChart3DMouseLeave",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseLeaveHandler(),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e),this.rotateActivate=!1,!1},o.prototype.chartMouseUp=function(e){return this.setMouseXY(e),this.trigger("circularChart3DMouseUp",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.rotateActivate=!1,this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseUpHandler(e,this),this.notify(t.Browser.touchEndEvent,e),!1},o.prototype.chartMouseDown=function(e){this.setMouseXY(e),this.trigger("circularChart3DMouseDown",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.cachedX=this.mouseX,this.cachedY=this.mouseY;var t=he(this.element.id+"_svg").getBoundingClientRect(),i=document.getElementById(this.element.id+"-svg-chart-3d").getBoundingClientRect(),o={x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height};return this.enableRotation&&V(this.mouseX,this.mouseY,o)&&(this.rotateActivate=!0,this.previousCoords={x:this.mouseX,y:this.mouseY}),!1},o.prototype.setStyle=function(e){e.style.touchAction=this.enableRotation?"none":"element",e.style.msTouchAction="element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},o.prototype.setCulture=function(){this.intl=new t.Internationalization},o.prototype.render=function(){var e=this;-1===this.element.className.indexOf("e-circular3dchart")&&this.element.classList.add("e-circular3dchart"),this.element.setAttribute("role","region"),this.element.setAttribute("tabindex","0"),this.element.setAttribute("aria-label",this.title+". Syncfusion interactive chart."),this.element.setAttribute("class",this.element.getAttribute("class")+" e-circular3dchart-focused");var t={chart:this,theme:this.theme,name:ki,cancel:!1};this.trigger(ki,t,function(){t.cancel||(e.setTheme(),e.calculateVisibleSeries(),e.processData(),e.renderComplete(),e.allowServerDataBinding=!0)})},o.prototype.setTheme=function(){this.themeStyle=Jt(this.theme)},o.prototype.processData=function(e){void 0===e&&(e=!0),this.seriesCounts=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.dataModule=new No(o.dataSource||this.dataSource,o.query),o.refreshDataManager(this,e)}},o.prototype.refreshChart=function(){this.createPieSvg(),this.calculateBounds(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.groupElement=this.renderer.createGroup({id:this.element.id+"-svg-chart-3d"}),this.groupElement.setAttribute("role","region"),this.groupElement.setAttribute("aria-hidden","false"),this.renderElements(),g("chartmeasuretext")},o.prototype.renderElements=function(){this.renderBorder(),this.createSecondaryElement(),this.renderTitle(),this.renderSeries(),this.renderLegend(),be(!1,this.element,this.svgObject,this.redraw),this.processSelection(),this.setSecondaryElementPosition(),this.trigger("loaded",{chart:this}),this.setSeriesTabIndex(),this.doAnimation(),this.animateSeries=!1},o.prototype.setSeriesTabIndex=function(){for(var e,t=0;t<this.visibleSeries[0].points.length;t++)if(this.visibleSeries[0].points[t].visible){e=document.querySelectorAll('[id*="region-series-0-point-'+this.visibleSeries[0].points[t].index+'"]');break}e&&e.length>0&&e[e.length-1].setAttribute("tabindex","0")},o.prototype.processSelection=function(){var e=[];this.circularChartSelection3DModule&&"None"!==this.selectionMode&&(e=t.extend([],this.circularChartSelection3DModule.selectedDataIndexes,null,!0),this.circularChartSelection3DModule.invokeSelection(this)),this.circularChartHighlight3DModule&&this.circularChartHighlight3DModule.invokeHighlight(this),e.length>0&&(this.circularChartSelection3DModule.selectedDataIndexes=e,this.circularChartSelection3DModule.redrawSelection(this))},o.prototype.highlightAnimation=function(e,i,o){var r=parseFloat(this.visibleSeries[0].opacity.toString());r&&new t.Animation({}).animate(e,{duration:i,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,n=o+(r-o)*i;e.setAttribute("opacity",n.toString())},end:function(){e.setAttribute("opacity",r.toString())}})},o.prototype.stopElementAnimation=function(e){var i=parseFloat(this.visibleSeries[0].opacity.toString());e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",i.toString())},o.prototype.doAnimation=function(){var e=this.visibleSeries[0];if(e.animation.enable&&this.animateSeries){var t=this.renderer.createClipPath({id:this.element.id+"SeriesGroup0_clipPath"}),o=new i.PathOption(this.element.id+"SeriesGroup0_slice","transparent",1,"transparent",1,"",""),r=this.renderer.drawPath(o);t.appendChild(r),this.svgObject.appendChild(t);var n=this.element.id,a=this.groupElement.id;document.querySelectorAll('[id*="region-series-"]').forEach(function(e){e.parentElement.id===a&&(e.style.cssText="clip-path:url(#"+t.id+"); -webkit-clip-path:url(#"+t.id+");",e.setAttribute("clip-path","url(#"+n+"SeriesGroup0_clipPath)"))}),e.segments[0]&&this.animationRect(r,e)}},o.prototype.renderLegend=function(){if(!this.circularChartLegend3DModule||!this.legendSettings.visible)return null;this.circularChartLegend3DModule.legendCollections.length&&this.visibleSeries[0].labelBound&&this.circularChartLegend3DModule.getSmartLegendLocation(this.visibleSeries[0].labelBound,this.circularChartLegend3DModule.legendBounds,this.margin),this.circularChartLegend3DModule.renderLegend(this,this.legendSettings,this.circularChartLegend3DModule.legendBounds,this.redraw)},o.prototype.animationRect=function(e,i){var o,r=this,n=i.animation.duration,a=.75*Math.max(this.availableSize.height,this.availableSize.width);a+=.414*a;for(var l=Y("Linear"),s={x:i.segments[0].center.x-this.rotation/2,y:i.segments[0].center.y+this.tilt/2},h=0;h<i.points.length;h++){var c=he(this.element.id+"-svg-data-label-text-"+h);c&&(c.style.visibility="hidden");var d=he(this.element.id+"-svg-data-label-series-0-shape-"+h);d&&(d.style.visibility="hidden");var p=he(this.element.id+"-series-"+i.index+"-data-label-"+h);p&&(p.style.visibility="hidden");var u=he(this.element.id+"-datalabel-series-0-connector-"+h);u&&(u.style.visibility="hidden")}t.isNullOrUndefined(e)||new t.Animation({}).animate(e,{duration:0===n&&"Enable"===t.animationMode?1e3:n,delay:i.animation.delay,progress:function(t){o=l(t.timeStamp,-90,359.99999,t.duration),e.setAttribute("d",r.getPathArc(s,-90,o,a))},end:function(){e.setAttribute("d",r.getPathArc(s,0,359.99999,a)),r.trigger("animationComplete",{series:i,chart:r});for(var t=0;t<i.points.length;t++){var o=he(r.element.id+"-svg-data-label-text-"+t);o&&(o.style.visibility="visible");var n=he(r.element.id+"-svg-data-label-series-0-shape-"+t);n&&(n.style.visibility="visible");var l=he(r.element.id+"-series-"+i.index+"-data-label-"+t);l&&(l.style.visibility="visible");var h=he(r.element.id+"-datalabel-series-0-connector-"+t);h&&(h.style.visibility="visible")}}})},o.prototype.getPathArc=function(e,t,i,o){var r=i-t,n=(r=r<0?r+360:r)<180?0:1;return this.getPiePath(e,L(t,o,e),L(i,o,e),o,n)},o.prototype.getPiePath=function(e,t,i,o,r){return"M "+e.x+" "+e.y+" L "+t.x+" "+t.y+" A "+o+" "+o+" 0 "+r+" 1 "+i.x+" "+i.y+" Z"},o.prototype.renderBorder=function(){var e=this.border.width,t=new co(this.element.id+"-border",this.background||this.themeStyle.background,this.border,1,new i.Rect(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e)),o=this.renderer.drawRectangle(t);o.setAttribute("aria-hidden","true"),be(!1,this.svgObject,o,this.redraw);var r=this.backgroundImage;if(r){var n=new po(this.availableSize.height-e,this.availableSize.width-e,r,0,0,this.element.id+"-background","visible","none");be(!1,this.svgObject,this.renderer.drawImage(n),this.redraw)}},o.prototype.createSecondaryElement=function(){var e=Ve(this.redraw,this.element.id+"_Secondary_Element")||this.createElement("div",{id:this.element.id+"_Secondary_Element",styles:"position: relative"});be(!1,this.element,e,this.redraw)},o.prototype.renderSeries=function(){this.redraw||this.svgObject.appendChild(this.renderer.createGroup({id:this.element.id+"_SeriesCollection"}));for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&this.pieSeries3DModule&&(i.draw(i,this),this.defaultLabelBound(i))}},o.prototype.defaultLabelBound=function(e){if(e.segments.length>0&&e.dataLabel.visible){var t=this.getSeriesBound(e);e.dataLabel.visible&&"Inside"===e.dataLabel.position&&(e.labelBound=new i.Rect(t.x,t.y,t.width+t.x,t.height+t.y)),e.findMaxBounds(e.labelBound,t),this.circularChartLegend3DModule&&(e.labelBound.x-=this.explodeDistance,e.labelBound.y-=this.explodeDistance,e.labelBound.height+=this.explodeDistance-e.labelBound.y,e.labelBound.width+=this.explodeDistance-e.labelBound.x)}},o.prototype.getSeriesBound=function(e){var t=new i.Rect(1/0,1/0,-1/0,-1/0),o=0;o=0===o?360:o,e.findMaxBounds(t,this.getRectFromAngle(0)),e.findMaxBounds(t,this.getRectFromAngle(o)),e.findMaxBounds(t,new i.Rect(e.segments[0].center.x,e.segments[0].center.y,0,0));var r=(90*Math.floor(0)+90)%360,n=90*Math.floor(o/90)%360;n=0===n?360:n,e.findMaxBounds(t,this.getRectFromAngle(r)),e.findMaxBounds(t,this.getRectFromAngle(n)),e.findMaxBounds(t,this.getRectFromAngle(0));for(var a=r===n?0:Math.floor(4),l=1;l<a;l++)r+=90,e.findMaxBounds(t,this.getRectFromAngle(r));return t.width-=t.x,t.height-=t.y,t},o.prototype.getRectFromAngle=function(e){var t=L(e,this.circularRadius[0],this.visibleSeries[0].segments[0].center);return new i.Rect(t.x,t.y,0,0)},o.prototype.renderTitle=function(){var e=this.margin;if(!this.title)return null;var t=this.getTextAnchor(this.titleStyle.textAlignment,this.enableRtl),o=i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont),r=this.margin.top+3*o.height/4,n=new i.Rect(e.left,0,this.availableSize.width-e.left-e.right,0),a=new i.TextOption(this.element.id+"-title",Ye(n,this.titleStyle),r,t,this.titleCollection,"","auto");this.titleLocation={x:a.x,y:a.y,size:o};var l=je(this.renderer,a,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,null,null,null,null,this.themeStyle.chartTitleFont);l&&(l.setAttribute("tabindex","0"),l.style.outline="none",l.parentNode.insertBefore(l,this.svgObject.children&&this.svgObject.children[1])),this.subTitle&&this.renderSubTitle(a)},o.prototype.getTextAnchor=function(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}},o.prototype.renderSubTitle=function(e){for(var t=0,o=0,r=this.titleStyle.textAlignment,n=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont),a=0,l=this.titleCollection;a<l.length;a++){var s=l[a];t=(o=i.measureText(s,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?o:t}var h=new i.Rect("Center"===r?e.x-t/2:"Far"===r?e.x-t:e.x,0,t,0),c=new i.TextOption(this.element.id+"-sub-title",Ye(h,this.subTitleStyle),e.y*e.text.length+3*n.height/4+10,this.getTextAnchor(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,"","auto");this.subTitleLocation={x:c.x,y:c.y,size:n},je(this.renderer,c,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,null,null,null,null,this.themeStyle.chartSubTitleFont)},o.prototype.setSecondaryElementPosition=function(){var e=he(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=he(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},o.prototype.createPieSvg=function(){this.removeSvg(),Xe(this)},o.prototype.removeSvg=function(){if(this.redraw)return null;if(g(this.element.id+"_Secondary_Element"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&t.remove(this.svgObject)}g("EJ2_legend_tooltip"),g("EJ2_datalabel_tooltip"),g(this.element.id+"PointHover_Border")},o.prototype.calculateVisibleSeries=function(){this.visibleSeries=[],this.series[0].index=0,this.visibleSeries.push(this.series[0])},o.prototype.calculateBounds=function(){this.initialClipRect=new i.Rect(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height),this.titleCollection=[],this.subTitleCollection=[];var e=0,t=0,o=0,r=0;if(this.title&&(this.titleCollection=Ge(this.title,this.titleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartTitleFont)),e=this.title?i.measureText(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length:e,this.subTitle){for(var n=0,a=this.titleCollection;n<a.length;n++){var l=a[n];o=(r=i.measureText(l,this.titleStyle,this.themeStyle.chartTitleFont).width)>o?r:o}this.subTitleCollection=Ge(this.subTitle,this.subTitleStyle,o,this.enableRtl,this.themeStyle.chartSubTitleFont),t=i.measureText(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length}w(this.initialClipRect,new i.Rect(0,t+e,this.margin.right+this.margin.left,this.margin.bottom+this.margin.top)),this.calculateLegendBounds()},o.prototype.calculateLegendBounds=function(){if(!this.circularChartLegend3DModule||!this.legendSettings.visible)return null;this.circularChartLegend3DModule.getLegendOptions(this,this.visibleSeries),this.circularChartLegend3DModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null)},o.prototype.print=function(e){new Jo(this).print(e)},o.prototype.export=function(e,t){this.circularChartExport3DModule&&(this.circularChartExport3DModule.export(e,t),this.afterExport&&this.circularChartExport3DModule.getDataUrl(this))},o.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){this.circularChartExport3DModule&&this.circularChartExport3DModule.pdfExport(e,t,i,o,r,n,a,l,s)},o.prototype.requiredModules=function(){var e=[];return e.push({member:this.type+"Series3D",args:[this]}),this.legendSettings.visible&&e.push({member:"CircularChartLegend3D",args:[this]}),this.series[0].dataLabel.visible&&e.push({member:"CircularChartDataLabel3D",args:[this]}),this.tooltip.enable&&e.push({member:"CircularChartTooltip3D",args:[this]}),"None"!==this.selectionMode&&e.push({member:"CircularChartSelection3D",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&e.push({member:"CircularChartHighlight3D",args:[this]}),this.enableExport&&e.push({member:"CircularChartExport3D",args:[this]}),e},o.prototype.setNavigationStyle=function(e){var t="";switch(this.theme){case"HighContrastLight":case"HighContrast":t="#969696";break;case"MaterialDark":case"FabricDark":case"Bootstrap":case"Bootstrap4":t="#66afe9";break;case"Tailwind":case"TailwindDark":t="#4f46e5";break;case"Bootstrap5":case"Bootstrap5Dark":t="#0d6efd";break;case"Fluent":case"FluentDark":t="#9e9e9e";break;case"Fluent2":case"Fluent2Dark":case"Fluent2HighContrast":t="#0078D4";break;default:t="#9e9e9e"}var i=document.getElementById(e);i&&i.style.setProperty("outline","1.5px solid "+t)},o.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_Series_0_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title],g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},o.prototype.circular3DChartKeyDown=function(e){var t="";return this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("series")>-1||this.previousTargetId.indexOf("legend")>-1||"Escape"===e.code)&&(t="ESC"),e.code.indexOf("Arrow")>-1&&e.preventDefault(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},o.prototype.chartKeyboardNavigations=function(e,i,o){switch(this.isLegendClicked=!1,o){case"Tab":case"ArrowMove":if(i.indexOf("-point-")>-1){var r=parseInt(i.split("point-")[1],10),n=this.visibleSeries[0].points[r],a=n.symbolLocation.center,l=n.symbolLocation.radius*this.visibleSeries[0].coefficient,s=l+(n.symbolLocation.radius-l)/2;if(this.mouseX=a.x+s*Math.cos(n.symbolLocation.angle),this.mouseY=a.y+s*Math.sin(n.symbolLocation.angle),this.circularChartHighlight3DModule){var h=he(i);t.isNullOrUndefined(h)||(h.id.indexOf("text")>1&&(h=he(h.id.replace("text","shape"))),this.circularChartSelection3DModule?this.circularChartSelection3DModule.calculateSelectedElements(this,h,"mousemove"):this.circularChartHighlight3DModule.calculateSelectedElements(this,h,"mousemove"))}if(this.circularChartTooltip3DModule){var c=this.visibleSeries[0],d=void 0;c.enableTooltip&&(d=new Yd(c.points[r],c)),this.circularChartTooltip3DModule.element=this.element,this.circularChartTooltip3DModule.control=this,this.circularChartTooltip3DModule.renderSeriesTooltip(this,d)}}if(this.circularChartHighlight3DModule&&"None"!==this.highlightMode){i=i.indexOf("_chart_legend_g_")>-1?document.getElementById(i).firstChild.id:i;for(var p=this.element.id+"_chart_legend",u=[p+"_text_",p+"_shape_marker_",p+"_shape_"],g=0;g<u.length;g++){var m=u[g];if(i.indexOf(m)>-1){document.getElementById(i).setAttribute("class",""),this.circularChartSelection3DModule?this.circularChartSelection3DModule.legendSelection(this,he(i),"mousemove"):this.circularChartHighlight3DModule.legendSelection(this,he(i),"mousemove");break}}}break;case"Enter":case"Space":i.indexOf("_chart_legend_")>-1&&this.circularChartLegend3DModule?(this.isLegendClicked=!0,this.circularChartLegend3DModule.click(e),this.focusChild(document.getElementById(i).parentElement),this.setNavigationStyle(document.getElementById(i).parentElement.id)):(this.circularChartSelection3DModule&&this.circularChartSelection3DModule.calculateSelectedElements(this,document.getElementById(i),"click"),this.setNavigationStyle(i));break;case"CtrlP":this.print();break;case"ESC":this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.removeTooltip(1),this.circularChartSelection3DModule?this.circularChartSelection3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove"):this.circularChartHighlight3DModule&&"None"!==this.highlightMode&&this.circularChartHighlight3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove")}},o.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-circular3dchart-focused")?t="e-circular3dchart-focused "+t:t||(t="e-circular3dchart-focused"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.circular3DChartKeyUp=function(e){var t="",i=e.target.id,o=he(this.element.id+"_chart_legend_translate_g"),r=he(this.element.id+"_chart_legend_pageup");if(o){var n=o.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-circular3dchart-focused")?a+=" e-circular3dchart-focused":a||(a="e-circular3dchart-focused"),n.setAttribute("class",a)}if(r&&r.setAttribute("class","e-circular3dchart-focused"),this.removeNavigationStyle(),"Tab"===e.code)""!==this.previousTargetId&&(this.previousTargetId.indexOf("-point-")>-1&&-1===i.indexOf("-point-")?this.currentPointIndex=0:this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===i.indexOf("_chart_legend_page")&&-1===i.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,r):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("chart_legend_g_")?this.setTabIndex(o.children[this.currentLegendIndex],o.firstElementChild):this.previousTargetId.indexOf("-title")>-1&&i.indexOf("-point-")>-1&&(this.currentPointIndex=parseInt(i.split("point-")[1],10))),this.previousTargetId=i,i.indexOf("_chart_legend_g_")>-1&&"None"!==this.highlightMode?(i=e.target.lastElementChild.id,t="Tab"):i.indexOf("-point-")>-1&&("None"!==this.highlightMode||this.tooltip.enable)&&(t="Tab");else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),i.indexOf("_chart_legend_page")>-1)e.target.removeAttribute("tabindex"),this.previousTargetId=i=this.element.id+"_chart_legend_page"+("ArrowRight"===e.code?"up":"down"),this.focusTarget(he(i));else if(i.indexOf("_chart_legend_")>-1){e.target.removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,o.children.length);var l=o.children[this.currentLegendIndex];this.focusTarget(l),this.removeNavigationStyle(),this.setNavigationStyle(l.id),this.previousTargetId=i=l.lastElementChild.id,t="None"!==this.highlightMode?"ArrowMove":""}else if(i.indexOf("-point-")>-1){e.target.setAttribute("tabindex","-1");for(var s=0,h=[],c=0;c<this.visibleSeries[0].points.length;c++)s=this.visibleSeries[0].points[c].visible?s+1:s,this.visibleSeries[0].points[c].visible&&h.push(this.visibleSeries[0].points[c].index);this.currentPointIndex=h.indexOf(this.currentPointIndex)+("ArrowUp"===e.code||"ArrowRight"===e.code?1:-1),this.currentPointIndex=h[this.getActualIndex(this.currentPointIndex,h.length)];var d=document.querySelectorAll('[id*="region-series-0-point-'+this.currentPointIndex+'"]'),p=void 0;d.length>0&&(p=d[d.length-1]),i=p?p.id:"",this.focusTarget(he(i)),this.removeNavigationStyle(),this.setNavigationStyle(i),t=this.tooltip.enable||this.circularChartHighlight3DModule?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(i.indexOf("_chart_legend_")>-1||i.indexOf("-point-")>-1)||(i=i.indexOf("_chart_legend_g")>-1?e.target.lastElementChild.id:i,t="Enter");return""!==t&&this.chartKeyboardNavigations(e,i,t),"Tab"===e.code&&this.setNavigationStyle(i),!1},o.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},o.prototype.focusTarget=function(e){var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-circular3dchart-focused")?t+=" e-circular3dchart-focused":t||(t="e-circular3dchart-focused"),e.setAttribute("tabindex","0"),e.setAttribute("class",t),e.focus(),e.id},o.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},o.prototype.getPersistData=function(){return""},o.prototype.getModuleName=function(){return"circularchart3d"},o.prototype.destroy=function(){if(this.element){this.unWireEvents(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],e.prototype.destroy.call(this),this.element.classList.remove("e-circular3dchart"),this.element.classList.remove("e-circular3dchart-focused");var t=document.getElementById(this.element.id+"Keyboard_circular3dchart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),g("chartmeasuretext"),this.removeSvg(),this.svgObject=null}},o.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={previousSize:new i.Size(this.availableSize.width,this.availableSize.height),currentSize:new i.Size(0,0),chart:this},o={cancel:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger("beforeResize",o),o.cancel||(this.resizeTo=+setTimeout(function(){if(e.isDestroyed)return void clearTimeout(e.resizeTo);Ue(e),t.currentSize=e.availableSize,e.trigger("resized",t),e.refreshChart()},500)),!1},o.prototype.changeVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},o.prototype.removeSeriesElements=function(e){document.querySelectorAll('[id*="region-series-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="data-label-text-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="data-label-series-0-shape-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="datalabel-series-0-connector-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()})},o.prototype.onPropertyChanged=function(i,o){for(var r={refreshElements:!1,refreshBounds:!1},n=0,a=Object.keys(i);n<a.length;n++){switch(a[n]){case"theme":this.animateSeries=!0;break;case"title":case"subTitle":case"height":case"width":case"margin":case"enableRotation":case"depth":r.refreshBounds=!0;break;case"tilt":case"rotation":this.rotateActivate||(r.refreshBounds=!0,this.animateSeries=!1);break;case"titleStyle":i.titleStyle&&(i.titleStyle.size||i.titleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"subTitleStyle":i.subTitleStyle&&(i.subTitleStyle.size||i.subTitleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"legendSettings":r.refreshBounds=!0,r.refreshElements=!0;break;case"dataSource":this.processData(!1),r.refreshBounds=!0;break;case"series":if(!this.delayRedraw){for(var l=!1,s=void 0,h=void 0,c=0;c<this.series.length;c++)((s=i.series[c]).explodeOffset||s.radius||s.innerRadius||s.emptyPointSettings)&&(h=!0),i.series[c]&&(i.series[c].dataSource||i.series[c].yName||i.series[c].xName||i.series[c].dataLabel||h)&&(t.extend(this.changeVisibleSeries(this.visibleSeries,c),s,null,!0),l=!0),i.series[c]&&!t.isNullOrUndefined(i.series[c].explodeIndex)&&i.series[c].explodeIndex>=0&&i.series[c].explodeIndex!==o.series[c].explodeIndex&&(l=!0,this.removeSeriesElements(this));l&&(this.processData(!1),r.refreshBounds=!0)}this.delayRedraw=!1,this.redraw=!1;break;case"enableRtl":case"locale":this.circularChartHighlight3DModule&&g(this.circularChartHighlight3DModule.styleId),this.circularChartSelection3DModule&&g(this.circularChartSelection3DModule.styleId),e.prototype.refresh.call(this);break;case"background":case"border":r.refreshElements=!0;break;case"isMultiSelect":case"selectedDataIndexes":case"selectionMode":this.circularChartSelection3DModule&&(t.isNullOrUndefined(this.circularChartSelection3DModule.selectedDataIndexes)?this.circularChartSelection3DModule.invokeSelection(this):(this.circularChartSelection3DModule.selectedDataIndexes=this.selectedDataIndexes,this.circularChartSelection3DModule.redrawSelection(this)));break;case"tooltip":this.circularChartTooltip3DModule&&(this.circularChartTooltip3DModule.previousPoints=[],this.tooltip.template&&(this.circularChartTooltip3DModule.template=this.tooltip.template))}!r.refreshBounds&&r.refreshElements?(this.removeSeriesElements(this),this.createPieSvg(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.renderElements()):r.refreshBounds&&(this.removeSeriesElements(this),this.createPieSvg(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.calculateBounds(),this.renderElements())}},$d([t.Property(null)],o.prototype,"width",void 0),$d([t.Property(null)],o.prototype,"height",void 0),$d([t.Property(null)],o.prototype,"title",void 0),$d([t.Property(null)],o.prototype,"backgroundImage",void 0),$d([t.Property("")],o.prototype,"dataSource",void 0),$d([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],o.prototype,"titleStyle",void 0),$d([t.Property(null)],o.prototype,"subTitle",void 0),$d([t.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},ai)],o.prototype,"subTitleStyle",void 0),$d([t.Property("None")],o.prototype,"selectionMode",void 0),$d([t.Property("None")],o.prototype,"highlightMode",void 0),$d([t.Collection([{}],Pd)],o.prototype,"series",void 0),$d([t.Complex({},jd)],o.prototype,"legendSettings",void 0),$d([t.Property("")],o.prototype,"highlightColor",void 0),$d([t.Property("None")],o.prototype,"selectionPattern",void 0),$d([t.Property("None")],o.prototype,"highlightPattern",void 0),$d([t.Property(!1)],o.prototype,"isMultiSelect",void 0),$d([t.Property(!0)],o.prototype,"enableAnimation",void 0),$d([t.Property("Material")],o.prototype,"theme",void 0),$d([t.Collection([],mi)],o.prototype,"selectedDataIndexes",void 0),$d([t.Complex({},di)],o.prototype,"margin",void 0),$d([t.Complex({color:"#DDDDDD",width:0},hi)],o.prototype,"border",void 0),$d([t.Complex({},Zd)],o.prototype,"tooltip",void 0),$d([t.Property(null)],o.prototype,"background",void 0),$d([t.Property(!1)],o.prototype,"useGroupingSeparator",void 0),$d([t.Property(50)],o.prototype,"depth",void 0),$d([t.Property(0)],o.prototype,"tilt",void 0),$d([t.Property(!1)],o.prototype,"enableRotation",void 0),$d([t.Property(0)],o.prototype,"rotation",void 0),$d([t.Property(!1)],o.prototype,"enableExport",void 0),$d([t.Event()],o.prototype,"load",void 0),$d([t.Event()],o.prototype,"loaded",void 0),$d([t.Event()],o.prototype,"legendRender",void 0),$d([t.Event()],o.prototype,"legendClick",void 0),$d([t.Event()],o.prototype,"selectionComplete",void 0),$d([t.Event()],o.prototype,"pointRender",void 0),$d([t.Event()],o.prototype,"seriesRender",void 0),$d([t.Event()],o.prototype,"textRender",void 0),$d([t.Event()],o.prototype,"beforeExport",void 0),$d([t.Event()],o.prototype,"afterExport",void 0),$d([t.Event()],o.prototype,"beforePrint",void 0),$d([t.Event()],o.prototype,"beforeResize",void 0),$d([t.Event()],o.prototype,"resized",void 0),$d([t.Event()],o.prototype,"circularChart3DMouseMove",void 0),$d([t.Event()],o.prototype,"circularChart3DMouseClick",void 0),$d([t.Event()],o.prototype,"circularChart3DMouseDown",void 0),$d([t.Event()],o.prototype,"circularChart3DMouseLeave",void 0),$d([t.Event()],o.prototype,"circularChart3DMouseUp",void 0),$d([t.Event()],o.prototype,"pointClick",void 0),$d([t.Event()],o.prototype,"pointMove",void 0),$d([t.Event()],o.prototype,"tooltipRender",void 0),o=$d([t.NotifyPropertyChanges],o)}(t.Component),Jd=function(){function e(e){this.chart=e}return e.prototype.export=function(e,t){var i=new Fa(this.chart),o={cancel:!1,width:null,height:null};this.chart.trigger("beforeExport",o),o.cancel||i.export(e,t,void 0,[this.chart])},e.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){var h=new Fa(this.chart);i=i||[this.chart];var c={cancel:!1,width:o,height:r};this.chart.trigger("beforeExport",c),c.cancel||h.export("PDF",e,t,i,o=c.width,r=c.height,n,a,l,s)},e.prototype.getDataUrl=function(e){return new Fa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"CircularChartExport3D"},e.prototype.destroy=function(){},e}(),ep=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),tp=function(e){function i(t){var i=e.call(this,t)||this;return i.circular3D=t,i.renderer=t.renderer,i.addEventListener(),i}return ep(i,e),i.prototype.addEventListener=function(){this.circular3D.isDestroyed||(this.circular3D.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.circular3D.on("click",this.mouseClick,this))},i.prototype.removeEventListener=function(){this.circular3D.isDestroyed||(this.circular3D.off(t.Browser.touchMoveEvent,this.mouseMove),this.circular3D.off("click",this.mouseClick))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.rectPoints=null},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes),e)},i.prototype.generateStyle=function(e,t){return this.styleId+"_series_"+e.index+"_point_"+t},i.prototype.getElementByIndex=function(e){var t=this,i=[];document.querySelectorAll('[id*="-region-series-'+e.series+"-point-"+e.point+'"]').forEach(function(o){o.id.indexOf(t.circular3D.element.id+"-")>-1&&t.indexFinder(o.id).point===e.point&&i.push(o)});var o=document.getElementById(this.control.element.id+"-svg-data-label-text-"+e.point),r=document.getElementById(this.control.element.id+"-datalabel-series-0-connector-"+e.point),n=document.getElementById(this.control.element.id+"-svg-data-label-series-0-shape-"+e.point);return o&&i.push(o),r&&i.push(r),n&&i.push(n),i},i.prototype.isAlreadySelected=function(e,t,i){if("mousemove"===t?(this.currentMode=this.circular3D.highlightMode,this.highlightDataIndexes=[],this.styleId=this.circular3D.element.id+"_ej2_chart_highlight"):"click"!==t&&"keyup"!==t||(this.currentMode=this.circular3D.selectionMode,this.styleId=this.circular3D.element.id+"_ej2_chart_selection"),"None"!==this.circular3D.highlightMode&&"None"===this.circular3D.selectionMode&&"click"===t)return!1;if(("None"!==this.circular3D.highlightMode||this.circular3D.legendSettings.enableHighlight)&&this.previousSelectedElement&&this.previousSelectedElement[0]){var o=void 0,r=e.nodeName;e.parentNode&&(o=("path"===r||"shape"===r)&&e.id.indexOf("region")>1);for(var n=this,a=0;a<this.previousSelectedElement.length;a++)!function(e){if(n.previousSelectedElement[e].hasAttribute("class"))if(n.previousSelectedElement[e].getAttribute("class").indexOf("highlight")>-1&&(o||"click"===t||"keyup"===t)){var r;n.previousSelectedElement[e].classList.forEach(function(e){e.indexOf("selection")>-1&&(r=e)}),n.previousSelectedElement[e].removeAttribute("class"),r&&n.addSvgClass(n.previousSelectedElement[e],r),n.previousSelectedElement[e].classList.remove(n.styleId+"_series_"+i.series),n.addOrRemoveIndex(n.highlightDataIndexes,n.indexFinder(n.previousSelectedElement[e].id))}else!o&&n.previousSelectedElement[e].getAttribute("class").indexOf("highlight")>-1&&n.performSelection(n.indexFinder(n.previousSelectedElement[e].id),n.circular3D,n.previousSelectedElement[e])}(a)}return!0},i.prototype.mouseClick=function(e,t){this.calculateSelectedElements(e,t.target,t.type)},i.prototype.calculateSelectedElements=function(e,i,o){t.isNullOrUndefined(i)||"None"===e.selectionMode&&"None"===e.highlightMode||i.id&&-1===i.id.indexOf(e.element.id+"-")||i.getAttribute("id").indexOf("_connector_")>-1||(this.isAlreadySelected(i,o,this.indexFinder(i.id)),(i.id.indexOf("-series-")>-1||i.id.indexOf("-data-label-")>-1)&&this.performSelection(this.indexFinder(i.id),e,i))},i.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("-point-")>-1?t=e.split("-series-")[1].split("-point-"):e.indexOf("-border-")>-1?t[0]=e.split("-border-")[1]:e.indexOf("data-label-series-0-shape-")>-1&&"Inside"===this.control.series[0].dataLabel.position?(t[0]="0",t[1]=e.split("-shape-")[1]):e.indexOf("-series-")>-1?t[0]=e.split("-series-")[1]:e.indexOf("_chart_legend_shape_")>-1?(t=e.split("_chart_legend_shape_"))[0]="0":e.indexOf("_chart_legend_g_")>-1?(t=e.split("_chart_legend_g_"))[0]="0":e.indexOf("-data-label-")>-1?(t[0]="0",t[1]=e.split("-data-label-text-")[1]):e.indexOf("-connector-")>-1&&(t[0]="0",t[1]=e.split("-connector-")[1]),new Pi(parseInt(t[0],10),parseInt(t[1],10))},i.prototype.performSelection=function(e,t,i){!isNaN(e.point)&&"Point"===this.currentMode&&i&&this.getElementByIndex(e).length>0&&(this.selection(t,e,this.getElementByIndex(e)),this.selectionComplete(t,t.series[0]),this.blurEffect(t.element.id,t.visibleSeries))},i.prototype.selectionComplete=function(e,t){for(var i,o=[],r=0;r<this.selectedDataIndexes.length;r++)i=this.selectedDataIndexes[r].point,isNaN(i)||o.push({x:t.dataSource[i][t.xName],y:t.points[i].y,seriesIndex:this.selectedDataIndexes[r].series,pointIndex:i});var n={name:"selectionComplete",selectedDataValues:o,cancel:!1};e.trigger("selectionComplete",n)},i.prototype.selection=function(e,t,i){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,t);var o=i[0]&&(i[0].getAttribute("class")||"");i[0]&&o.indexOf(this.getSelectionClass(i[0].id))>-1?(this.removeStyles(i),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,t):this.addOrRemoveIndex(this.selectedDataIndexes,t)):(this.previousSelectedElement="None"!==e.highlightMode?i:[],o.indexOf("selection")<0&&this.applyStyles(i,t),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,t,!0):this.addOrRemoveIndex(this.selectedDataIndexes,t,!0))},i.prototype.redrawSelection=function(e){var i=t.extend([],this.selectedDataIndexes,null,!0),o=t.extend([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&o.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes),i=o):this.removeSelectedElements(e,this.selectedDataIndexes),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(i,e)},i.prototype.removeSelectedElements=function(e,t){for(var i=0,o=t;i<o.length;i++){a=o[i];this.removeStyles(this.getElementByIndex(a))}for(var r=e.visibleSeries[0].points,n=0;n<r.length;n++){var a=new Pi(0,r[n].index);this.removeStyles(0===this.getElementByIndex(a).length?[document.getElementById(this.control.element.id+"_chart_legend_shape_"+a.point)]:this.getElementByIndex(a))}},i.prototype.legendSelection=function(e,t,i){if("mousemove"===i){if(t.id.indexOf("text")>1&&(t=he(t.id.replace("text","shape"))),t.id.indexOf("marker")>1&&(t=he(t.id.replace("_marker",""))),t.id.indexOf("g")>1&&(t=he(t.id.replace("_g_","_shape_"))),t.hasAttribute("class")&&(t.getAttribute("class").indexOf("highlight")>-1||t.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.circular3D.highlightMode}else"click"===i&&(t.id.indexOf("text")>1&&(t=he(t.id.replace("text","shape"))),t.id.indexOf("g")>1&&(t=he(t.id.replace("_g_","_shape_"))));var o=this.indexFinder(t.id);if(this.isAlreadySelected(t,i,o)){var r=this.generateStyle(e.visibleSeries[o.series],o.point),n=document.querySelectorAll("."+r);if(n.length>0)this.removeSelection(e,o.series,n,r,!0,o);else{for(var a=0,l=e.visibleSeries[0].points;a<l.length;a++){var s=l[a];s.index!==o.point&&(!e.isMultiSelect||r.indexOf("highlight")>0)&&(r=this.generateStyle(e.visibleSeries[o.series],s.index),n=document.querySelectorAll("."+r),this.removeSelection(e,o.series,n,r,!0,o))}var h=[];(h=this.getElementByIndex(o)).length>0&&(this.checkSelectionElements(h,r,!1,o.point),this.selection(e,o,h),this.blurEffect(e.element.id,e.visibleSeries))}}},i.prototype.selectDataIndex=function(e,t){for(var i,o=0,r=e;o<r.length;o++){var n=r[o];(i=this.getElementByIndex(n)[0])&&this.performSelection(n,t,i)}},i.prototype.removeMultiSelectElements=function(e,t,i){for(var o=0;o<t.length;o++)this.checkEquals(t[o],i)||(this.removeStyles(this.getElementByIndex(t[o])),t.splice(o,1),o--)},i.prototype.blurEffect=function(e,t){for(var i=this.checkVisibility(this.highlightDataIndexes)||this.checkVisibility(this.selectedDataIndexes),o=0,r=t[0].points;o<r.length;o++){var n=r[o],a=[];n.visible&&(a=this.getElementByIndex({series:0,point:n.index}),this.checkSelectionElements(a,this.generateStyle(t[0],n.index),i,n.index))}},i.prototype.checkSelectionElements=function(e,t,i,o){void 0===o&&(o=0);var r=e;"None"===this.circular3D.selectionMode||"None"===this.circular3D.highlightMode&&!this.circular3D.legendSettings.enableHighlight||(r=e);for(var n,a,l=e,s=0;s<r.length;s++)if(n=r[s].getAttribute("class")||"","None"===this.circular3D.selectionMode||"None"===this.circular3D.highlightMode&&!this.circular3D.legendSettings.enableHighlight||(t=n.indexOf("selection")>0||n.indexOf("highlight")>0?n:t),-1===n.indexOf(t)&&i?this.addSvgClass(r[s],this.unselected):(l=r[s],-1!==n.indexOf(this.unselected)&&t.indexOf("highlight")>0&&this.circular3D.highlightAnimation(r[s],700,.3),this.removeSvgClass(r[s],this.unselected),this.removeSvgClass(r[s].parentNode,this.unselected)),(-1!==r[s].id.indexOf("-data-label-text-")||-1!==r[s].id.indexOf("-connector-")||-1!==r[s].id.indexOf("-data-label-series-0-shape-"))&&(this.highlightDataIndexes&&this.highlightDataIndexes[0]&&o===this.highlightDataIndexes[0].point&&this.removeSvgClass(r[s],this.unselected),this.selectedDataIndexes))for(var h=0;h<this.selectedDataIndexes.length;h++)o===this.selectedDataIndexes[h].point&&this.removeSvgClass(r[s],this.unselected);this.control.circularChartLegend3DModule&&this.control.legendSettings.visible&&(a=he(this.control.element.id+"_chart_legend_shape_"+o))&&(a.hasAttribute("class")&&this.removeSvgClass(a,a.getAttribute("class")),l.length>0?n=l[0].getAttribute("class"):l&&(n=l.getAttribute("class")||""),-1===n.indexOf(t)&&i?this.addSvgClass(a,this.unselected):(this.removeSvgClass(a,this.unselected),""===n?this.removeSvgClass(a,t):this.addSvgClass(a,t)))},i.prototype.applyStyles=function(e,t){for(var i=this.control.circularChartTooltip3DModule,o=0,r=e;o<r.length;o++){var n=r[o];if(n){this.removeSvgClass(n.parentNode,this.unselected),this.removeSvgClass(n,this.unselected);var a=i&&i.previousPoints.length>0&&i.previousPoints[0].point.index!==t.point?i.svgTooltip.opacity:this.series[t.series].opacity;n.setAttribute("opacity",a.toString()),-1===n.id.indexOf("-data-label-text-")&&-1===n.id.indexOf("-connector-")&&-1===n.id.indexOf("-data-label-series-0-shape-")&&this.addSvgClass(n,this.getSelectionClass(n.id)),this.getSelectionClass(n.id).indexOf("highlight")>0&&this.circular3D.stopElementAnimation(n)}}if(this.control.circularChartLegend3DModule&&this.control.legendSettings.visible){var l=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point);this.removeSvgClass(l,l.getAttribute("class")),this.addSvgClass(l,this.getSelectionClass(l.id))}},i.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.series[this.indexFinder(e).series],this.indexFinder(e).point)},i.prototype.removeSelection=function(e,t,i,o,r,n){if(i.length>0){for(var a=[],l=0;l<i.length;l++)a.push(i[l]);this.removeStyles(a),this.addOrRemoveIndex(this.selectedDataIndexes,new Pi(t,n.point));for(var s=0,h=e.visibleSeries[0].points;s<h.length;s++){var c=h[s];if(o=this.generateStyle(e.visibleSeries[0],c.index),document.querySelectorAll("."+o).length>0){for(var d=0,p=a;d<p.length;d++){var u=p[d];this.checkSelectionElements(u,o,!0,n.point)}r=!1;break}}r&&this.blurEffect(e.element.id,e.visibleSeries)}},i.prototype.removeStyles=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o&&this.removeSvgClass(o,this.getSelectionClass(o.id))}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.checkEquals(e[o],t)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.checkEquals=function(e,t){return e.point===t.point&&e.series===t.series},i.prototype.mouseMove=function(e){var i=this.circular3D,o=e.target;if(!i.rotateActivate&&i.circularChartHighlight3DModule&&("None"!==i.highlightMode||i.legendSettings.enableHighlight)&&!t.isNullOrUndefined(o)){if(e.target.id.indexOf("text")>1&&e.target.id.indexOf("legend")>-1&&(o=he(e.target.id.replace("text","shape"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;return this.calculateSelectedElements(i,e.target,e.type),void(this.highlightDataIndexes&&(-1===o.id.indexOf("_chart_legend_")||-1!==o.id.indexOf("_legend_element"))&&this.highlightDataIndexes.length>0&&-1===o.id.indexOf("-series-")&&-1===o.id.indexOf("-data-label-")&&this.removeLegendHighlightStyles())}i.selectionMode},i.prototype.removeLegendHighlightStyles=function(){this.circular3D.circularChartHighlight3DModule.highlightDataIndexes=[];for(var e,t=0;t<this.circular3D.visibleSeries[0].points.length;t++)if(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t)),0===this.selectedDataIndexes.length){for(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t));e.length>0;)(i=e[0])&&this.removeSvgClass(i,i.getAttribute("class"));for(e=document.getElementsByClassName(this.unselected);e.length>0;)(i=e[0])&&(this.removeSvgClass(i,i.getAttribute("class")),this.generateStyle(this.circular3D.visibleSeries[0],t).indexOf("highlight")>-1&&this.circular3D.highlightAnimation(i,700,.3))}else for(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t));e.length>0;){var i=e[0];i&&(this.removeSvgClass(i,i.getAttribute("class")),this.addSvgClass(i,this.unselected))}},i.prototype.getModuleName=function(){return"CircularChartSelection3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(Gn),ip=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),op=function(e){function i(t){var i=e.call(this,t)||this;return i.circular3D=t,i.renderer=t.renderer,i.wireEvents(),i}return ip(i,e),i.prototype.wireEvents=function(){this.circular3D.isDestroyed||this.circular3D.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.circular3D.isDestroyed||this.circular3D.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[]},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=t.extend({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"CircularChartHighlight3D"},i.prototype.destroy=function(){this.unWireEvents()},i}(tp);return nr.Inject(br,$r,Cr,fn,Sn,yr,Pr,xa,Wr,Ur,Vr,Qr,Gr,Zr,Mr,Or,Jr,mn,Kn,Xn,dr,hr,ur,sa,ea,na,Zn,da,an,sn,rn,cn,tn,gn,Br,Tr,_r,Ln,Dn,An,Rn,jn,En,zn,In,Nn,Hn,ua,bn,aa,Un,mr,fa,ma,va,Ca,wa,ta,oa,ra),Na.Inject(Oa,ja,Xa,$a,Ya,Ja,tl,qa,ol,wa),bl.Inject(ql,yl,Pr,Wr,hr,ur,wa,mr),qh.Inject($h),Ch.Inject(wh,Fh),Zl.Inject(br,Cr,fn,Sn,yr,Pr,cn,Kn,Xn,hr,ea,na,Zn,da,an,sn,Br,Ln,Dn,An,Rn,jn,En,zn,In,Nn,Hn,Un,ql,wa,Xl,mr,ra),hs.Inject(cs,ps),qc.Inject(ad,ld,hd,sd,Jc,td,od,nd,Wc,Gc,cd,pd,md,gd),Kd.Inject(Ad,qd,Ud,tp,Sd,op,Jd),e.AccPointData=xo,e.AccPoints=ka,e.Accessibility=ri,e.AccumulationAnnotation=ol,e.AccumulationAnnotationSettings=Aa,e.AccumulationChart=Na,e.AccumulationDataLabel=qa,e.AccumulationDataLabelSettings=Ma,e.AccumulationDistributionIndicator=Rn,e.AccumulationHighlight=tl,e.AccumulationLegend=Ya,e.AccumulationSelection=Ja,e.AccumulationSeries=Ra,e.AccumulationTooltip=$a,e.Animation=pi,e.AreaSeries=Pr,e.AtrIndicator=En,e.Axis=oo,e.AxisLine=Ji,e.AxisRenderer=xc,e.AxisSettings=_h,e.BarSeries=Mr,e.BarSeries3D=hd,e.BinaryTreeBuilder=dc,e.BollingerBands=Hn,e.Border=hi,e.BoxAndWhiskerSeries=ua,e.BubbleSeries=mn,e.BulletChart=hs,e.BulletChartLegend=ps,e.BulletChartLegendSettings=as,e.BulletDataLabel=ns,e.BulletLabelStyle=os,e.BulletTooltip=cs,e.BulletTooltipSettings=rs,e.CandleSeries=Br,e.CartesianAxisLayoutPanel=oc,e.Category=dr,e.Category3D=Jc,e.CenterLabel=si,e.Chart=nr,e.Chart3D=qc,e.Chart3DAxis=Rc,e.Chart3DColumn=Pc,e.Chart3DDataLabelSettings=Ic,e.Chart3DEmptyPointSettings=Oc,e.Chart3DLegendSettings=Xc,e.Chart3DMajorGridLines=Ac,e.Chart3DMajorTickLines=Dc,e.Chart3DMinorGridLines=Mc,e.Chart3DMinorTickLines=kc,e.Chart3DPoint=zc,e.Chart3DRender=nc,e.Chart3DRow=Lc,e.Chart3DSeries=Bc,e.Chart3DTextFont=ec,e.Chart3DTooltipSettings=Hc,e.ChartAnnotation=da,e.ChartAnnotationSettings=Bi,e.ChartArea=Si,e.ChartLocation=mo,e.ChartSegment=Io,e.ChartTransform3D=hc,e.CircleOption=uo,e.CircularChart3D=Kd,e.CircularChart3DConnector=bd,e.CircularChart3DDataLabelFont=vd,e.CircularChart3DDataLabelSettings=xd,e.CircularChart3DEmptyPointSettings=Ld,e.CircularChart3DLegendSettings=jd,e.CircularChart3DPointData=Yd,e.CircularChart3DPoints=wd,e.CircularChart3DSeries=Pd,e.CircularChart3DTooltipSettings=Zd,e.CircularChartDataLabel3D=Sd,e.CircularChartExport3D=Jd,e.CircularChartHighlight3D=op,e.CircularChartLegend3D=Ud,e.CircularChartSelection3D=tp,e.CircularChartTooltip3D=qd,e.ClosestPoint=As,e.CoefficientToVector=I,e.ColorValue=vo,e.Column=Qi,e.ColumnSeries=Cr,e.ColumnSeries3D=ad,e.Connector=ii,e.ContainerArea=Rh,e.ContainerPadding=fi,e.ControlPoints=Co,e.CornerRadius=yi,e.Crosshair=Xn,e.CrosshairSettings=or,e.CrosshairTooltip=io,e.CustomizeOption=so,e.DataEditing=ta,e.DataLabel=na,e.DataLabel3D=cd,e.DataLabelSettings=Do,e.DataLabelTextOptions=Rs,e.DataPoint=rl,e.DateTime=hr,e.DateTime3D=td,e.DateTimeCategory=mr,e.DateTimeCategory3D=od,e.Direction=ks,e.Double=Mi,e.Double3D=Cc,e.DragSettings=Ci,e.EmaIndicator=An,e.EmptyPointSettings=gi,e.ErrorBar=aa,e.ErrorBarCapSettings=_o,e.ErrorBarSettings=Oo,e.Export=wa,e.Export3D=md,e.Font=ai,e.FunnelSeries=ja,e.Graphics3D=cc,e.GridArcPoints=_s,e.Highlight=oa,e.Highlight3D=gd,e.HiloOpenCloseSeries=sn,e.HiloSeries=an,e.HistogramSeries=bn,e.HorizontalLabelCollection=Cs,e.ImageOption=po,e.Index=Pi,e.Indexes=mi,e.LabelBorder=Ni,e.LabelCollection=bs,e.LabelLocation=yo,e.LabelOffset=zh,e.LabelOption=Ts,e.LabelRegion=Ss,e.LastValueLabel=ra,e.LastValueLabelSettings=Mo,e.Legend=sa,e.Legend3D=Gc,e.LegendBorder=Gs,e.LegendItemStyle=Xs,e.LegendItemStyleBorder=Us,e.LegendLocation=js,e.LegendSeries=xs,e.LegendTitle=Ws,e.LineSegment=ws,e.LineSeries=br,e.LineSettings=Th,e.Location=oi,e.Logarithmic=ur,e.Logarithmic3D=nd,e.MacdIndicator=jn,e.MajorGridLines=$i,e.MajorTickLines=eo,e.MajorTickLinesSettings=ts,e.Margin=di,e.MarkerOptions=Ms,e.MarkerSettings=ko,e.Matrix3D=sc,e.Mean=ao,e.MinorGridLines=Ki,e.MinorTickLines=to,e.MinorTickLinesSettings=is,e.MomentumIndicator=In,e.MultiColoredAreaSeries=ma,e.MultiColoredLineSeries=fa,e.MultiColoredSeries=wr,e.MultiLevelCategories=Vi,e.MultiLevelLabel=va,e.MultiLevelLabels=Wi,e.NiceInterval=lr,e.NiceIntervals=$c,e.Offset=ci,e.Padding=Ih,e.ParetoOptions=Ro,e.ParetoSeries=Ca,e.PeriodSelector=yl,e.PeriodSelectorSettings=wi,e.Periods=Fi,e.PieCenter=Da,e.PieSeries=Oa,e.PieSeries3D=Ad,e.Point=Ps,e.Point3D=So,e.PointData=bo,e.PointRegion=Ls,e.Points=To,e.PolarArc=lo,e.PolarSeries=Tr,e.Polygon3D=uc,e.PolygonOption=go,e.PyramidSeries=Xa,e.RadarSeries=_r,e.RadialLabelCollections=Fs,e.Range=es,e.RangeAreaSeries=cn,e.RangeBandSettings=Eh,e.RangeColorSetting=ir,e.RangeColumnSeries=Jr,e.RangeNavigator=bl,e.RangeNavigatorAxis=sl,e.RangeNavigatorSeries=dl,e.RangeSeries=al,e.RangeSlider=ml,e.RangeStepAreaSeries=tn,e.RangeTooltip=ql,e.RangeTooltipSettings=gl,e.RectOption=co,e.Row=qi,e.RsiIndicator=zn,e.ScatterSeries=$r,e.ScrollBar=xa,e.ScrollbarSettings=Ui,e.ScrollbarSettingsRange=ji,e.Selection=Zn,e.Selection3D=pd,e.Series=Bo,e.SeriesAccessibility=ni,e.SeriesBase=zo,e.SeriesMarker=ph,e.SeriesMarkerBorder=sh,e.SeriesMarkerDataLabel=dh,e.SeriesMarkerDataLabelBorder=hh,e.SeriesMarkerDataLabelConnectorLine=ch,e.SeriesTooltip=lh,e.SeriesTooltipBorder=ah,e.SmaIndicator=Ln,e.Smithchart=Ch,e.SmithchartAxis=Js,e.SmithchartAxisLine=Ks,e.SmithchartBorder=fs,e.SmithchartFont=ms,e.SmithchartLabelPosition=Ds,e.SmithchartLegend=wh,e.SmithchartLegendSettings=Ys,e.SmithchartMajorGridLines=Qs,e.SmithchartMargin=ys,e.SmithchartMinorGridLines=$s,e.SmithchartRect=vs,e.SmithchartSeries=uh,e.SmithchartSize=Es,e.Sparkline=qh,e.SparklineBorder=Ah,e.SparklineDataLabelSettings=Bh,e.SparklineFont=Mh,e.SparklineMarkerSettings=Oh,e.SparklineTooltip=$h,e.SparklineTooltipSettings=kh,e.SplineAreaSeries=Sn,e.SplineRangeAreaSeries=gn,e.SplineSeries=fn,e.StackLabelSettings=Gi,e.StackLabelsFont=li,e.StackValues=ho,e.StackingAreaSeries=Gr,e.StackingBarSeries=Or,e.StackingBarSeries3D=sd,e.StackingColumnSeries=Vr,e.StackingColumnSeries3D=ld,e.StackingLineSeries=Qr,e.StackingStepAreaSeries=Zr,e.StepAreaSeries=Ur,e.StepLineSeries=Wr,e.StochasticIndicator=Nn,e.StockChart=Zl,e.StockChartAnnotationSettings=zl,e.StockChartArea=Al,e.StockChartAxis=_l,e.StockChartBorder=Pl,e.StockChartConnector=Rl,e.StockChartFont=Ll,e.StockChartIndexes=Bl,e.StockChartIndicator=El,e.StockChartLegendSettings=Ul,e.StockChartRow=Il,e.StockChartStripLineSettings=Dl,e.StockChartTrendline=Ol,e.StockEmptyPointSettings=kl,e.StockEventsSettings=Nl,e.StockLegend=Xl,e.StockMargin=Ml,e.StockSeries=Tl,e.StockTooltipSettings=Li,e.StripLine=yr,e.StripLineSettings=Hi,e.StyleSettings=ul,e.Subtitle=ih,e.Svg3DRenderer=pc,e.TechnicalIndicator=Ko,e.Thickness=fo,e.ThumbSettings=pl,e.Title=oh,e.TitleBorder=tc,e.TitleSettings=ic,e.TitleStyleSettings=xi,e.TmaIndicator=Dn,e.ToolbarPosition=Xi,e.Tooltip=Kn,e.Tooltip3D=Wc,e.TooltipRender=Fh,e.TooltipSettings=ui,e.TrackLineSettings=Dh,e.TransformToVisible=E,e.Trendline=Eo,e.Trendlines=Un,e.Vector3D=lc,e.Visible3DLabels=Tc,e.VisibleLabels=ro,e.WallRenderer=bc,e.WaterfallSeries=rn,e.Zoom=ea,e.ZoomSettings=rr,e.accReactTemplate=de,e.afterExport="afterExport",e.animateAddPoints=K,e.animateRectElement=Q,e.animateRedrawElement=He,e.animateTextElement=We,e.animationComplete="animationComplete",e.annotationRender="annotationRender",e.appendChildElement=be,e.appendClipElement=J,e.appendElement=ve,e.applyZLight=_e,e.axisLabelClick="axisLabelClick",e.axisLabelRender=Ti,e.axisMultiLabelRender="axisMultiLabelRender",e.axisRangeCalculated="axisRangeCalculated",e.beforeExport="beforeExport",e.beforePrint="beforePrint",e.beforeResize="beforeResize",e.bulletChartMouseClick="bulletChartMouseClick",e.calculateLegendShapes=Oe,e.calculateRect=Ae,e.calculateScrollbarOffset=p,e.calculateShapes=ae,e.calculateSize=Ue,e.chartDoubleClick="chartDoubleClick",e.chartMouseClick="chartMouseClick",e.chartMouseDown="chartMouseDown",e.chartMouseLeave="chartMouseLeave",e.chartMouseMove="chartMouseMove",e.chartMouseUp="chartMouseUp",e.chartReactTemplate=pe,e.checkBounds=Se,e.checkColorFormat=Te,e.colorNameToHex=Re,e.componentToHex=De,e.containsRect=Pe,e.convertHexToColor=ke,e.convertToHexCode=Me,e.createSvg=Xe,e.createTemplate=ue,e.createTooltip=z,e.createZoomingLabels=B,e.degreeToLocation=L,e.degreeToRadian=P,e.drag="drag",e.dragComplete="dragComplete",e.dragEnd="dragEnd",e.dragStart="dragStart",e.drawSymbol=ne,e.findClipRect=j,e.findCrosshairDirection=N,e.findlElement=ye,e.firstToLowerCase=U,e.get3DSeriesColor=qt,e.get3DThemeColor=Zt,e.getActualDesiredIntervalsCount=oe,e.getAngle=k,e.getAnimationFunction=Y,e.getBulletThemeColor=mt,e.getColorByValue=$e,e.getDraggedRectLocation=xe,e.getElement=he,e.getExactData=dt,e.getFontStyle=ge,e.getGradientColor=Ke,e.getLabelText=Ce,e.getMedian=Ie,e.getMinPointsDelta=G,e.getMinPointsDeltaValue=Qt,e.getNearestValue=pt,e.getPercentage=et,e.getPercentageColor=Je,e.getPoint=fe,e.getRangeThemeColor=ut,e.getRangeValueXByPoint=ct,e.getRectLocation=le,e.getRotatedRectangleCoordinates=A,e.getSaturationColor=Ee,e.getScrollbarThemeColor=rt,e.getSeriesColor=it,e.getSeriesFromIndex=at,e.getTemplateFunction=ce,e.getTextAnchor=tt,e.getThemeColor=ot,e.getTitle=Ge,e.getTransform=X,e.getUnicodeText=Qe,e.getValueXByPoint=H,e.getValueYByPoint=W,e.getVisiblePoints=d,e.getXLocation=ht,e.indexFinder=_,e.inside=f,e.isBreakLabel=c,e.isCollide=we,e.isOverlap=Le,e.isRotatedRectIntersect=M,e.isZoomSet=ie,e.legendClick=Di,e.legendRender="legendRender",e.lineBreakLabelTrim=Be,e.linear=Z,e.load=ki,e.loaded="loaded",e.logBase=m,e.logWithIn=b,e.markerAnimate=q,e.measureElementRect=me,e.minMax=se,e.multiLevelLabelClick="multiLevelLabelClick",e.onZooming=Ii,e.pathAnimation=$,e.pointByIndex=lt,e.pointClick="pointClick",e.pointDoubleClick="pointDoubleClick",e.pointMove="pointMove",e.pointRender=Ri,e.rangeValueToCoefficient=st,e.redrawElement=Ve,e.regSub=Ei,e.regSup=_i,e.removeElement=g,e.resized="resized",e.rotateTextSize=u,e.scrollChanged="scrollChanged",e.scrollEnd="scrollEnd",e.scrollStart="scrollStart",e.selectionComplete="selectionComplete",e.seriesRender="seriesRender",e.setRange=te,e.sharedTooltipRender="sharedTooltipRender",e.showTooltip=y,e.smithchartBeforePrint="beforePrint",e.sort=h,e.stockEventFont=Fo,e.stockEventRender="stockEventRender",e.stopTimer=Fe,e.stringToNumber=Ne,e.subArray=R,e.subArraySum=C,e.subtractRect=w,e.subtractThickness=F,e.sum=S,e.templateAnimate=re,e.textElement=je,e.textRender="textRender",e.textTrim=ze,e.textWrap=Ze,e.textWrapAnyWhere=qe,e.titleBorder=vi,e.titlePositionX=Ye,e.titleSettings=bi,e.tooltipRender="tooltipRender",e.triggerLabelRender=ee,e.valueToCoefficient=T,e.valueToCoefficients=$t,e.valueToPolarCoefficient=O,e.withIn=v,e.withInBounds=V,e.withInRange=x,e.zoomComplete="zoomComplete",e}({},ej.base,ej.svgbase,ej.data,ej.pdfexport,ej.excelexport,ej.navigations,ej.calendars,ej.splitbuttons),this.ejs=ej;
//# sourceMappingURL=ej2-charts.min.js.map