@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.
10 lines • 1.74 MB
JavaScript
/*!
* filename: ej2-charts.min.js
* version : 29.1.35
* Copyright Syncfusion Inc. 2001 - 2024. 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,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 yo(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 yo(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 yo(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 yo(e,t)),a=L(270,i,new yo(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=t.visibleRange,o=(e-i.min)/i.delta;return(t.isChart?t.isAxisInverse:t.isInversed)?1-o:o}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 Ai(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){var a=he(e),l="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";a?(a.setAttribute("innerHTML"," "+i+" "),a.style.cssText=l):(a=t.createElement("div",{id:e,innerHTML:" "+i+" ",styles:l}),document.body.appendChild(a))}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 yo(l.x-f,l.y+3):new yo(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 yo(l.x+l.width-3,l.y+l.height+f):new yo(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=[],s=0;s<i.length;s++){var h=i[s];if(o=[],h.visible&&(e.name===h.xAxisName||"primaryXAxis"===e.name&&null===h.xAxisName||e.name===h.chart.primaryXAxis.name&&!h.xAxisName))if(h.type.indexOf("Stacking")>-1&&-1===l.indexOf(h.stackingGroup)&&l.push(h.stackingGroup),(o=h.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length){var c=1===i.length?2592e4:2592e6;n="DateTime"===e.valueType&&h.xMin===h.xMax?h.xMin-c:h.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r))}else for(var d=0;d<o.length;d++){var p=o[d];d>0&&p&&0!==(r=h.type.indexOf("Stacking")>-1&&"Category"===e.valueType?l.length:p-o[d-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&&!(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.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(){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)&&(s?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.chart.isBlazor?{}: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){if(!o||!r&&!e)return null;var l=300;t.isNullOrUndefined(n)||(l=n);var s=r||e.getAttribute("d"),h=i,c="";e.setAttribute("d",s),new t.Animation({}).animate(t.createElement("div"),{duration:l,progress:function(t){c="";for(var i=s.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),o=h.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),r=Math.max(i.length,o.length),n=0;n<r;n++){for(var a=i[n]||"",d=o[n]||"",p=a.trim().split(/\s+/),u=d.trim().split(/\s+/),g=[],m=1;m<p.length;m++){var y=parseFloat(p[m]),f=parseFloat(u[m]);if(!isNaN(y)&&!isNaN(f)&&p.length===u.length){var v=Z(t.timeStamp,y,f-y,l);g.push(v)}}p.length!==u.length?c+="L":c+=p[0],c+=" "+g.join(" "),c+=" "}e.setAttribute("d",c)},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:Ei,axis:r,text:i,value:t,labelStyle:o};if(e.trigger(Ei,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 no(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=window.Blazor?a?r:{point:r}:{chart:o,series:n,point:r},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=de.bind(this,e,o,h,c,s,c[t],d,p,u,g),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 yo(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 yo(+x.style[l].split("px")[0],+x.style[s].split("px")[0]):new yo(+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 yo(+S.style[l].split("px")[0],+S.style[s].split("px")[0]):new yo(+S.getAttribute(l),+S.getAttribute(s)),w=x.getAttribute("transform");He(S,C,h,F,l,s,y,f,void 0!==v?new yo(v.match(/\d+/g).map(Number)[0],v.match(/\d+/g).map(Number)[1]):w?new yo(parseFloat(w.split(",")[1]),parseFloat(w.split(",")[2])):new yo(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){t.yAxis.format=i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var h=0;h<r.length;h++)r[h]=n?o.replace("{value}",t.yAxis.format(parseFloat(r[h]))):t.yAxis.format(parseFloat(r[h]))}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 bo(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):new bo(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 bo(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 yo(0,0)),void 0===h&&(h=new yo(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.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===_i?o[a].replace(/~/g,""):o[a].replace(/\^/g,"");for(var c=0;c<r.length;c++)n+=t===_i?l[r[c]]:s[r[c]];a++}else n+=i[h];return n.trim()}function $e(e){for(var i=0;i<e.annotations.length;i++)t.resetBlazorTemplate((e.element.id+"_Annotation_"+i).replace(/[^a-zA-Z0-9]/g,""),"ContentTemplate");t.resetBlazorTemplate(e.element.id+"_tooltipparent_template_blazorTemplate","Template"),t.resetBlazorTemplate(e.element.id+"_DataLabel")}function Ke(e,t){return Number(t)===e.start?e.colors[0]:Number(t)===e.end?e.colors[e.colors.length-1]:Me(Je(Number(t),e))}function Je(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 et(r,a,l)}function et(e,t,i){var o=i.split("#")[1],r=t.split("#")[1],n=tt(e,parseInt(r.substr(0,2),16),parseInt(o.substr(0,2),16)),a=tt(e,parseInt(r.substr(2,2),16),parseInt(o.substr(2,2),16)),l=tt(e,parseInt(r.substr(4,2),16),parseInt(o.substr(4,2),16));return new bo(n,a,l)}function tt(e,t,i){var o=i-t;return Math.round(t+o*e)}function it(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}}function ot(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 rt(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:"#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:"#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:"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"},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: