-
Notifications
You must be signed in to change notification settings - Fork 46
/
fusioncharts.powercharts.js
2 lines (2 loc) · 538 KB
/
fusioncharts.powercharts.js
1
2
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[10],{1465:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a=e.config.showLegend?1:0;(0,r.componentFactory)(e,n["default"],"legend",a,[{}]),(t=e.getChildren("legend"))&&t[0]&&!t[0].getState("removed")?e.addToEnv("legend",t[0]):e.deleteFromEnv("legend")};var r=a(274),n=o(a(630))},1461:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(588)),l=a(1454),i=a(274),s=a(282),c=o(a(1462));(0,s.addDep)({name:"axisRefPolarAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"axisRefVisuals"},a.getName=function(){return"axisRefVisualsPolar"},a.createLine=function(e,t){return"polarCategory"===t.getName()?this.createNormalLine(e,t):"numeric"===t.getName()?this.createRadialLine(e,t):void 0},a.createRadialLine=function(e,t){var a,o,r,n,i,s=this,c=s.getFromEnv("xAxis")[0],d=c.config.tickValues.tickValue,u=t,h=s.config.containers[e.layer],p=s.getFromEnv("animationManager"),g=s.getFromEnv("toolTipController"),f=e.attr,m=["M"],v=u.getId()+"_"+(e.id||e.from),b=e.handlers,x=s.getGraphicalElement(v);for(n=function(e,t){var a=e.getScale(),o=e.config.axisRange;return Math.abs(a.getRangeValue(t)-a.getRangeValue(o.min))}(u,e.from),r=d?d.length-1:0,a=0;a<=r;a++)i=(0,l.getCoordinates)({radius:n,theta:a},c),m.push(i.x,i.y,"L");for(o in m.pop(),m.push("Z"),f.path=m,x=s.addGraphicalElement(v,p.setAnimation({container:h,el:x||"path",attr:f,component:s,label:"path"})),e.toolText?g.enableToolTip(x,e.toolText):g.disableToolTip(x),b)b.hasOwnProperty(o)&&x.on(o,b[o].bind(t));return[v]},a.createNormalLine=function(e,t){var a,o,r=this,n=r.config,s=t.config,c=(0,i.pluckNumber)(s.radius,0),d=["M"],u=n.containers[e.layer],h=r.getFromEnv("animationManager"),p=r.getFromEnv("toolTipController"),g=s.axisDimention.centerX,f=s.axisDimention.centerY,m=t.getId()+"_"+(e.id||e.from),v=e.handlers,b=r.getGraphicalElement(m);for(o in d.push(g,f,"L"),a=(0,l.getCoordinates)({radius:c,theta:e.from},t),d.push(a.x,a.y),e.attr.path=d,b=r.addGraphicalElement(m,h.setAnimation({container:u,el:b||"path",attr:e.attr,component:r,label:"path"})),e.toolText?p.enableToolTip(b,e.toolText):p.disableToolTip(b),v)v.hasOwnProperty(o)&&b.on(o,v[o].bind(t));return[m]},a.createBand=function(){return[]},t}(n["default"]),u=d;t["default"]=u},1462:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1458)),n={"initial.axis.axisRefVisualsPolar":function(){return{"path.appearing":r["default"],"text.appearing":r["default"]}}};t["default"]=n},1350:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=a(290),i=o(a(276)),s=a(274);function c(e){var t=e.target;t.justFocussed&&(t.justFocussed=!1,s.hasTouch||t.select())}function d(e,t,a){var o=this.config.linkedAxis.getLinkedParent();if(e!==t+"")return a?o.changeUpperLimits&&o.changeUpperLimits(Number(e)):o.changeLowerLimits&&o.changeLowerLimits(Number(e))}function u(e){var t,a=e.target,o={opacity:1,filter:"alpha(opacity=100)",color:(0,s.rgbaToHex)(a.axisLabel.attr("fill"))};for(t in o)a.style[t]=o[t];a.value=a.dataValue,a.justFocussed=!0,a.hasFocus=!0,a.axisLabel&&a.axisLabel.hide()}function h(e){var t=e.target,a=t.value,o=t.oldValue,r=t.isMaxLabel;d.call(this,a,o,r),t.style.opacity=0,t.style.filter="alpha(opacity=0)",t.axisLabel&&t.axisLabel.show(),s.isIE&&document.getElementsByTagName("body")[0].focus&&document.getElementsByTagName("body")[0].focus(),t.justFocussed=!1,t.hasFocus=!1}function p(e){var t=e.target,a=function(e){return"number"==typeof e.which?e.which:e.keyCode}(e.originalEvent),o=t.value,r=t.oldValue,n=t.isMaxLabel;13===a?!1===d.call(this,o,r,n)?t.style.color="#dd0000":i["default"].fire(t,"blur",e):27===a&&(t.value=r,i["default"].fire(t,"blur",e))}function g(e){return function(t){e.parentNode&&i["default"].fire(e,"blur",t)}}function f(e){return function(t){t.target!==e&&e.hasFocus&&i["default"].fire(e,"blur",t)}}function m(e,t){i["default"].unlisten(this.config.linkedAxis.getLinkedParent(),"defaultprevented",t),e.parentNode.removeChild(e)}function v(e,t){return function(){i["default"].unlisten(r.getLinkedParent().getLinkedItem("container"),"mousedown",t),e.parentNode.removeChild(e)}}var b=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(){this.config.linkedAxis=this.getLinkedParent(),r=this.config.linkedAxis,this.config.onKeyUp=p.bind(this),this.config.onBlur=h.bind(this),this.config.onFocus=u.bind(this),this.config.onMouseUp=c.bind(this)},a.getType=function(){return"helper"},a.getName=function(){return"limitUpdater"},a.draw=function(){var e,t,a,o,r,n,l,c,d,u,h,p,b=this,x=b.getFromEnv("chartConfig"),k=b.config.linkedAxis,y=k.getAxisConfig("extremeLabels"),C=k.getLimit(),w=b.getFromEnv("chart-container"),A=b.getFromEnv("style").inCanvasStyle,S=(0,s.extend2)({outline:"none","-webkit-appearance":"none",filter:"alpha(opacity=0)",position:"absolute",background:"transparent",border:"1px solid #cccccc",textAlign:"right",top:0,left:0,width:50,zIndex:20,opacity:0,borderRadius:0,display:"block"},A),N={max:{element:y.lastLabel.graphic,value:C.max},min:{element:y.firstLabel.graphic,value:C.min}};for(o in S.color=(0,s.hashify)(S.color),S.fontSize=S.fontSize+"px",N)if(N.hasOwnProperty(o)){if(n=(a=N[o].element)&&a.getBBox(),c=N[o].value,l="max"===o,t=o+"Input",e=b.getGraphicalElement(t),!n||!a){e&&(e.style.display="none");continue}for(r in e||(e=b.addGraphicalElement(t,(0,s.createElement)("input",{type:"text",value:c,id:"fc-updater-"+o},w))),i["default"].listen(e,["focus","mouseup","blur","keyup"],[this.config.onFocus,this.config.onMouseUp,this.config.onBlur,this.config.onKeyUp]),s.hasSVG?(i["default"].listen(w,"defaultprevented",d=g(e)),i["default"].listen(w,"destroy",m.bind(this,e,d))):(i["default"].listen(w,"mousedown",p=f(e)),i["default"].listen(w,"destroy",v(e,p))),u=n.x+n.width-x.marginLeft,h=x.marginLeft,S.top=n.y+"px",S.left=h+"px",S.width=u+"px",S)S.hasOwnProperty(r)&&(e.style[r]=S[r]);e.dataValue=c,e.value=c,e.oldValue=c,e.name=c||"",e.axisLabel=a,e.isMaxLabel=l}},a.removingDraw=function(){var e,t,a=this.getGraphicalElement();for(e in a)a.hasOwnProperty(e)&&((t=a[e])&&t.parentNode&&t.parentNode.removeChild(t),delete a[e])},t}(l.ComponentInterface),x=b;t["default"]=x},1316:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(866)),l=o(a(569)),i=o(a(538)),s=o(a(566)),c=a(274),d=a(572),u=function(e){return null!==e&&e!==c.UNDEF&&""!==e&&!isNaN(e)},h={wrtVisible:!0},p=c.preDefStr.POSITION_START,g=c.preDefStr.POSITION_TOP,f=c.preDefStr.POSITION_BOTTOM,m=c.preDefStr.POSITION_END,v=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=[]),0===e.length)return[];var a=e.length-1,o=t.length-1,r=[e[a]];for(a--;a>=0;)t[o]>e[a]?(r.push(t[o]),o--):(r.push(e[a]),a--);return r},b=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new n["default"],t.config.labelMap=[],t}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.base=10,t.showMinorDivLineValues=1,t.numMinorDivLines=c.UNDEF},a.getName=function(){return"log"},a.configureAttributes=function(t){var a,o=this,r=o.config,n=o.getFromEnv("number-formatter"),l=o.getFromEnv("color-manager");e.prototype.configureAttributes.call(this,t),a=r.rawAttr,r.minorDivlinecolor=(0,c.convertColor)((0,c.pluck)(a.minorDivlinecolor,l.getColor("divLineColor")),(0,c.pluckNumber)(a.minorDivLineAlpha,l.getColor("divLineAlpha")/2)),r.axisMinValue=n.getCleanValue(a.axisMinValue),r.axisMaxValue=n.getCleanValue(a.axisMaxValue),r.minorTicks=[],r.axisMinValue<=0&&(r.axisMinValue=c.UNDEF),r.axisMaxValue<=0&&(r.axisMaxValue=c.UNDEF),o.getScale().setBase(r.base),r.minorDivLineThickness=(0,c.pluckNumber)(a.minorDivLineThickness,1),r.band.isDraw=0},a.generateTicks=function(){var e=this.getScale().ticks();return this.config._allTicks=e.slice(),e},a.generateMinorTicks=function(){return this.getScale().minorTicks(this.config.numMinorDivLines)},a._setAxisRange=function(e){var t=e.min,a=void 0===t?.1:t,o=e.max,r=void 0===o?1:o,n=this.getScale().setDomain([a,r]).nice(),l=this.config,i=l.axisRange;l.ticks=this.generateTicks(),l.minorTicks=this.generateMinorTicks();var s=n.getDomain();a=s[0],r=s[1],i.max=r,i.min=a,this.setVisibleConfig(a,r)},a.setDataLimit=function(e,t){var a,o,r=e,n=t,l=this.config,s=l.axisMaxValue,c=l.axisMinValue;u(c)&&Number(c)<=n&&(n=c),u(s)&&Number(s)>=r&&(r=s),0===n&&(n=1),0===r&&(r=l.base);var d=this.getTrendLineLimits();a=d[0],o=d[1];var h=(0,i["default"])([a,o,n,r],(function(e){return Number(e)}));n=h[0],r=h[1],this._setAxisRange({min:n,max:r})},a._parseLabel=function(){var e,t,a,o,r,n,l,i,s,d,u,b,x,k,y,C,w=this,A=w.config,S=w.getFromEnv("chart").config,N=A.axisRange,L=A.isOpposit,D=A.labels,E=D.style,T=A.isVertical,F=N.max,P=N.min,_=S.canvasBottom,V=S.canvasLeft,I=S.canvasRight,B=S.canvasTop,M=A.labelPadding,O=w.getFromEnv("number-formatter"),R=A.labelMaxH,G=A.labelMaxW,H=A.axisStartPosition,z=w.components,W=A.minorTicks;if(E.lineHeight&&-1!==(n=E.lineHeight).indexOf("px")&&(n=n.replace("px",""),n=parseFloat(n)),A.labels.isDraw)for(C=1!==w.getZoom(),y=z.labels,e=A.labels.step?N.tickInterval*A.labels.step:N.tickInterval,r=A.labels.rotation,o=this.getVisibleConfig(),z.labelIndexArr=[],A.allTicks=s=v(A.ticks,A.minorTicks),k=T?R:G,d=s.length,t=0;t<d;t++)if(u=s[t],b=w.getPixel(u,h),(!(W.indexOf(u)>=0)||A.showMinorDivLineValues)&&!(x&&b>x-k&&b<x+k)&&(!C||!(u<o.minValue||u>o.maxValue))&&(A.labels.drawNormalVal||A.labels.drawLimitVal&&(u===P||u===F))&&(A.labels.drawNormalVal||u===P||u===F)&&(A.labels.drawLimitVal||u!==P&&u!==F)&&(0!==A.showZeroPlaneValue||0!==A.showZeroPlane||0!==u)){if(1===A.showZeroPlane&&1===A.showZeroPlaneValue&&(u<0&&u+e>0||u>0&&u-e<0))if(T){if(b+R>=w.getPixel(0,h)&&w.getPixel(0,h)>=b-R)continue}else if(b+G>=w.getPixel(0,h)&&w.getPixel(0,h)>=b-G)continue;i={fill:E.color,"font-size":E.fontSize,cursor:E.labelLink?"pointer":""},T?(a=""+(A.numberFormatterFn?O[A.numberFormatterFn]:A.isPercent?O.percentValue:O.yAxis).call(O,u),l=A.hasCategory&&A.categories.category[t].labelPadding||0,i["text-anchor"]=L?p:m,i.text=a,i.x=L?(H||I)+M:(H||V)-M,i.y=l?b+l:b,x=i.y):(a=""+(A.numberFormatterFn?O[A.numberFormatterFn]:A.isPercent?O.percentValue:O.xAxis).call(O,u),l=A.hasCategory&&Number(A.categories.category[t].labelPadding)||0,i.text=a,i.x=b,i.y=L?(H||B)-M:(H||_)+M,l&&(i.y+=l),r?(i["text-anchor"]=L?p:m,i["vertical-align"]="middle"):i["vertical-align"]=L?f:g,x=i.x),D.shiftX&&(i.x+=D.shiftX),D.shiftY&&(i.y+=D.shiftY),i.transform=(0,c.getSuggestiveRotation)(r,i.x,i.y),z.labelIndexArr.push(t),y[t]=y[t]||{config:{props:{label:{}}}},i["text-bound"]=void 0===u?[]:[(0,c.pluck)(E.backgroundColor,""),(0,c.pluck)(E.borderColor,""),(0,c.pluck)(E.borderThickness,""),(0,c.pluck)(E.borderPadding,0),(0,c.pluck)(E.borderRadius,0),(0,c.pluck)(E.borderDash,"none")],y[t].config.props.label.attr=i,y[t].config.props.label.css=a.css,y[t].config.value=u}},a._drawLabel=function(){var e,t,a,o,r,n,i,s,c,d=this,u=d.config,h=d.getFromEnv("animationManager"),p=d.getFromEnv("chart"),g=u.labels.style,f=u.axisContainer,m=[],v=d.components,b=v.labelIndexArr,x={fontFamily:g.fontFamily,fontSize:g.fontSize,fontWeight:g.fontWeight,fontStyle:g.fontStyle,lineHeight:g.lineHeight},k=function(e){return function(t){p.plotEventHandler(this,t,e)}};if(u.labels.isDraw){for(c=v.labels,f.css(x),i=b.length,t=0;t<i;t++)a=(s=c[e=b[t]].config.value)+"_label",n=d.getGraphicalElement(a),m.push(a),(n=this.addGraphicalElement(a,h.setAnimation({container:f,el:n||"text",attr:c[e].config.props.label.attr,data:{value:s},component:this,label:"text",css:c[e].config.props.label.css}))).on("fc-click",k("dataLabelClick")).hover(k("dataLabelRollOver"),k("dataLabelRollOut")),n.data("eventArgs",{link:g.labelLink,text:c[e].config.props.label.attr.text,index:e});o=(0,l["default"])(u.labelMap,m)}else o=u.labelMap;u.labelMap=m,function(t){for(e=0;e<t.length;++e)(r=d.getGraphicalElement(t[e]))&&d.removeGraphicalElement(r)}(o)},a._getVMaxLabelDimention=function(){var e,t,a,o,r,n,l,i,s=this,c=s.config,d=s.getFromEnv("chart"),u=s.getFromEnv("smartLabel"),h=s.getFromEnv("number-formatter"),p=c.labels.style,g=0;for(u.useEllipsesOnOverflow(d.config.useEllipsesWhenOverflow),u.setStyle({fontSize:p.fontSize,fontFamily:p.fontFamily,lineHeight:p.lineHeight,fontWeight:p.fontWeight}),l=c.isPercent?h.percentValue:h.xAxis,c.allTicks=e=v(c.ticks,c.minorTicks),t=e.length,o=0;o<t;o++)i=e[o],r=""+l.call(h,i),n=u.getOriSize(r),s.components.labels[o]={config:{width:n.width,height:n.height,props:{label:{}}}},r.length>g&&(a=n,g=r.length);return a},a._getHMaxLabelDimention=function(){return this._getVMaxLabelDimention()},a.getCleanValue=function(e){var t=e,a=null;return(t=Math.abs(t))>0&&(a=this.getFromEnv("number-formatter").getCleanValue(t)),a},t}(s["default"]);b.prototype.getTrendLineLimits=d.getTrendLineLimits;var x=b;t["default"]=x},1457:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1458)),n={"initial.axis.polar":function(){return{"path.appearing":r["default"],"text.appearing":r["default"]}}};t["default"]=n},1456:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(567)),i=a(274),s=a(1454),c=o(a(569)),d=o(a(563)),u=o(a(1457)),h=a(282),p=o(a(586)),g=a(572),f="normal",m=i.preDefStr.POSITION_MIDDLE,v=i.preDefStr.POSITION_START,b=i.preDefStr.POSITION_TOP,x=i.preDefStr.POSITION_BOTTOM,k=i.preDefStr.POSITION_END,y=Math,C=y.min,w=y.PI,A=2*w;(0,h.addDep)({name:"polarAnimation",type:"animationRule",extension:u["default"]});var S=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new p["default"],t.config.referenceInfo=[],t}(0,n["default"])(t,e);var a=t.prototype;return a.getName=function(){return"polarCategory"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawPlotBands=!1,this.config.forceZeroTick=!1},a.configureAttributes=function(t){var a=this,o=a.config,r=t,n=a.getFromEnv("chart").getFromEnv("dataSource").chart,l=a.getFromEnv("color-manager");e.prototype.configureAttributes.call(this,t),o.gridLineColor=(0,i.convertColor)((0,i.pluck)(r.radarSpikeColor,l.getColor("divLineColor")),(0,i.pluckNumber)(r.radarSpikeAlpha,r.radarInLineAlpha,l.getColor("divLineAlpha"))),o.radarSpikeThickness=(0,i.pluckNumber)(n.radarspikethickness,1)},a.setAxisDimention=function(e){var t,a=this,o=a.getScale(),r=a.config,n=a.getFromEnv("chart").config,l=r.startAngle||-w/2,s=r.totalAngle||-A,c=l+s,d=s/((r.tickValues.tickValue||[]).length||1),u=r.axisDimention||(r.axisDimention={});u.opposite=(0,i.pluckNumber)(e.opposite,u.opposite),u.centerX=(0,i.pluckNumber)(e.x,u.x,n.canvasLeft),u.centerY=(0,i.pluckNumber)(e.y,u.y,n.canvasTop),u.axisLength=A,c-=d,t=r.clockWise?[c,l]:[l,c],o.setRange(t)},a._parseCategoryPlotLine=function(){var e,t,a,o=this.config,n=o.tickValues.tickValue,l=o.gridLineColor,i=o.radarSpikeThickness,s=o.referenceInfo;if(e={stroke:l,"stroke-width":i},(!n[0]||n[0].x===r&&n[0].y===r)&&o.lines.isDraw&&o.numDivLines)for(t=0;t<n.length;++t)a=t,s.push({from:a,type:"line",layer:1,attr:e})},a.placeAxis=function(e,t){var a,o,n,l,s,c,d,u,h,p=this,g=p.config,m=p.getFromEnv("chart"),v=m.getFromEnv("smartLabel"),b=g.labels.style,x=m.getFromEnv("dataSource").categories,k=g.labelPadding=(0,i.pluckNumber)(g.rawAttr.axisValuePadding,10),y=g.useEllipsesWhenOverflow,w=0,A=0,S=0,N=0,L=t/2,D=t/2,E=e/2,T=e/2,F=g.tickValues&&g.tickValues.tickValue;if(g.labels.isDraw=1,g.labels.drawNormalVal=1,g.labels.drawLimitVal=1,p.components||(p.components={}),p.components.labels=[],g.showLabels){if(x){var P=x[0];s={fontFamily:P.font,fontSize:P.fontsize,color:P.fontcolor}}for(a=0,o=F.length;a<o;a++)c={fontFamily:(n=F[a]).font,fontSize:n.fontsize,fontWeight:n.fontbold?"bold":f,fontStyle:n.fontitalic?"italic":f},d={fontFamily:(0,i.pluck)(c.fontFamily,s.fontFamily,b.fontFamily),fontSize:(0,i.pluck)(c.fontSize,s.fontSize,this.computeFontSize(b.fontSizeWithUnit)+i.PXSTRING),fontWeight:(0,i.pluck)(c.fontWeight,b.fontWeight),fontStyle:(0,i.pluck)(c.fontStyle,b.fontStyle)},h=(u=(0,i.setLineHeight)(d)).replace(/px/gi,""),v.useEllipsesOnOverflow(m.config.useEllipsesWhenOverflow),v.setStyle(d),n.oriLabel===r&&(n.oriLabel=n.label),0===a?(l=v.getSmartText(n.oriLabel,e,C(h,L),y),n.label=l.text,n.tooltext=l.tooltext,l.width+=l.width?k:0,l.height+=l.height?k:0,l.height>w&&(N=w=l.height)):a===o/2?(l=v.getSmartText(n.oriLabel,e,C(h,D),y),n.label=l.text,n.tooltext=l.tooltext,l.width+=l.width?k:0,l.height+=l.height?k:0,l.height>N&&(N=l.height)):a<o/2?(l=v.getSmartText(n.oriLabel,T,u,y),n.label=l.text,n.tooltext=l.tooltext,l.width+=l.width?k:0,l.height+=l.height?k:0,l.width>A&&(A=l.width)):(l=v.getSmartText(n.oriLabel,E,u,y),n.label=l.text,n.tooltext=l.tooltext,l.width+=l.width?k:0,l.height+=l.height?k:0,l.width>S&&(S=l.width)),p.components.labels.push({config:{width:l.width,height:l.height,props:{label:{attr:{}}}}})}else for(a=0,o=F.length;a<o;a++)p.components.labels.push({config:{width:0,height:0,props:{label:{attr:{}}}}});return{top:w,left:A,right:S,bottom:N}},a._drawComponents=function(){var e=this.config;e.drawLabels&&e.hasCategory&&this._drawCategory()},a.allocatePosition=function(){var e=this.config;e.drawLabels&&e.hasCategory&&this._parseCategory()},a._parseCategory=function(){var e,t,a,o,n,l,c,d,u,h,p,g,f,y,C,w,A,S,N=this,L=N.config,D=N.getFromEnv("chart"),E=L.isOpposit,T=L.labels,F=T.style,P=N.config.categoryLabel||(N.config.categoryLabel={}),_=D.getFromEnv("dataSource").categories,V=L.tickValues.tickValue,I=L.labelPadding,B={},M={},O=L.axisDimention.centerX,R=L.axisDimention.centerY,G=N.getScale();if(y=(0,i.pluckNumber)(L.radius,0),t=V?V.length-1:0,L.labels.isDraw){if(_){var H=_[0];B.fontFamily=H.font,B.fontSize=H.fontsize,B.color=H.fontcolor}for(F.fontSize=this.computeFontSize(F.fontSizeWithUnit),e=0;e<=t;e++)a=V[e],p=(0,i.pluckNumber)(a.x,a.y,e),(L.labels.drawNormalVal||L.labels.drawLimitVal&&(0===e||p===t))&&(L.labels.drawNormalVal||0===p||p===t)&&(L.labels.drawLimitVal||0!==p&&p!==t)&&(M={fontFamily:(0,i.pluck)(a.font,a.labelfont),fontSize:(0,i.pluck)(a.fontsize,a.labelfontsize),fontWeight:(0,i.pluckNumber)(a.fontbold,a.labelfontbold,0)?"bold":r,fontStyle:(0,i.pluckNumber)(a.fontitalic,a.labelfontitalic,0)?"italic":r},u=(0,i.convertColor)((0,i.pluck)(a.fontcolor,a.labelfontcolor,B.color,F.color),(0,i.pluckNumber)(a.labelalpha,L.rawAttr.labelFontAlpha,100)),(c={fontFamily:(0,i.pluck)(M.fontFamily,B.fontFamily,F.fontFamily),fontSize:(0,i.pluck)(M.fontSize,B.fontSize,F.fontSize),fontWeight:(0,i.pluck)(M.fontWeight,F.fontWeight),fontStyle:(0,i.pluck)(M.fontStyle,F.fontStyle)}).lineHeight=(0,i.setLineHeight)(c),c.lineHeight&&-1!==(n=c.lineHeight).indexOf("px")&&(n=n.replace(/px/i,""),n=parseFloat(n)),w=G.getRangeValue(p),(h=(0,s.polarToCartesian)(y+I,w)).x+=O,h.y+=R,g=h.x,f=h.y,o=a.label||"",0!==(0,i.pluckNumber)(a.showlabel,1)&&0!==L.showLabels||(o=""),l=a.labelPadding||0,d={fill:u,"line-height":n,"font-size":F.fontSize,text:o,cursor:a.link?"pointer":"default",x:g,y:f},l&&(d.y+=l),d["vertical-align"]=E?x:b,0===e?(d["text-anchor"]=m,d["vertical-align"]=x):e===(t+1)/2?(d["text-anchor"]=m,d["vertical-align"]=b):e<(t+1)/2?(d["text-anchor"]=k,d["vertical-align"]=m):(d["text-anchor"]=v,d["vertical-align"]=m),w=G.getRangeValue(p),(C=(0,s.polarToCartesian)(y,w)).x+=O,C.y+=R,T.shiftX&&(d.x+=T.shiftX),T.shiftY&&(d.y+=T.shiftY),(P=L.categoryLabel=P||{})[S="Label"+e]=P[S]||{},P[S].config=P[S].config||{},P[S].config.labelBox=A={label:o,lineHeight:c.lineHeight,border:(0,i.pluckNumber)(a.borderthickness,a.labelborderthickness)?(0,i.pluckNumber)(a.borderthickness,a.labelborderthickness,1)+"px solid":"",borderColor:a.bordercolor||a.labelbordercolor?(0,i.convertColor)(a.bordercolor||a.labelbordercolor,(0,i.pluckNumber)(a.borderalpha,a.labelborderalpha,a.alpha,a.labelalpha,100)):i.BLANKSTRING,borderThickness:(0,i.pluckNumber)(a.borderthickness,a.labelborderthickness),borderPadding:(0,i.pluckNumber)(a.borderpadding,a.labelborderpadding),borderRadius:(0,i.pluckNumber)(a.borderradius,a.labelborderradius),backgroundColor:a.bgcolor||a.labelbgcolor?(0,i.convertColor)(a.bgcolor||a.labelbgcolor,(0,i.pluckNumber)(a.bgalpha,a.labelbgalpha,a.alpha,a.labelalpha,100)):i.BLANKSTRING,borderDash:(0,i.pluckNumber)(a.borderdashed,a.labelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(a.borderdashlen,a.labelborderdashlen,4),(0,i.pluckNumber)(a.borderdashgap,a.labelborderdashgap,2)):0===(0,i.pluckNumber)(a.borderdashed,a.labelborderdashed)?"none":F.borderDash},P[S].config.labelBox["text-bound"]=o?[(0,i.pluck)(A.backgroundColor,F.backgroundColor),(0,i.pluck)(A.borderColor,F.borderColor),(0,i.pluck)(A.borderThickness,F.borderThickness),(0,i.pluck)(A.borderPadding,F.borderPadding),(0,i.pluck)(A.borderRadius,F.borderRadius),(0,i.pluck)(A.borderDash,F.borderDash)]:[],d["text-bound"]=P[S].config.labelBox["text-bound"],N.components.labels[e].config.props.label.css=c,N.components.labels[e].config.props.label.attr=Object.assign(N.components.labels[e].config.props.label.attr,d))}},a._drawCategory=function(){var e,t,a,o,r,n,l,s,d,u,h,p=this,g=p.config,f=p.getFromEnv("chart"),m=f.getFromEnv("animationManager"),v=g.labels.style,b=g.axisContainer,x=g.tickValues.tickValue,k=function(e){return function(t){f.plotEventHandler(this,t,e)}},y=p.getFromEnv("toolTipController"),C=0,w=[];if(t=x?x.length-1:0,g.labels.isDraw){for(e=0,C=0;e<=t;e++)a=x[e],s=(0,i.pluckNumber)(a.x,a.y,e),(g.labels.drawNormalVal||g.labels.drawLimitVal&&(0===e||s===t))&&(g.labels.drawNormalVal||0===s||s===t)&&(g.labels.drawLimitVal||0!==s&&s!==t)&&(u="Label"+e,w.push(u),l=p.components.labels[e].config.props.label.attr,n=p.components.labels[e].config.props.label.css,r=p.getGraphicalElement(u),o=m.setAnimation({css:n,el:r||"text",attr:l,container:b,component:p,label:"polarLabel"}),g.showTooltip&&a.tooltext?y.enableToolTip(o,a.tooltext):y.disableToolTip(o),o.data("eventArgs",{link:a.link||a.labellink||v.labelLink,text:l.text,index:C}),r||(p.addGraphicalElement(u,o),o.on("fc-click",k("datalabelclick")).hover(k("dataLabelRollOver"),k("dataLabelRollOut"))),C+=1);g.labelMap=g.labelMap||[],h=(0,c["default"])(g.labelMap,w)}else h=w;g.labelMap=w,function(t){for(e=0;e<t.length;++e)(d=p.getGraphicalElement(t[e]))&&p.removeGraphicalElement(d)}(h)},a.getTranslation=function(){if(this)return 0},a.getReferenceInfo=function(){return this.config.referenceInfo},a.setVisibleConfig=function(e,t){var a,o=this,r=o.config,n=o.getScale();return!(e>=t||e<r.axisRange.min||t>r.axisRange.max)&&(a=n.setDomain([e,t]).getDomain(),r.visibleMin=a[0],r.visibleMax=a[1],o.clearReferenceInfo(),o._parseReferenceVisuals(),o.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),o.asyncDraw(),!0)},a._parseReferenceVisuals=function(){this.config.drawPlotlines&&this._parseCategoryPlotLine()},a.clearReferenceInfo=function(){this.config.referenceInfo=[]},a._setAxisRange=function(e){var t,a=e.min,o=e.max,r=this.config,n=r.axisRange,l=e.divGap;a>o||(t=(o-a)/(r.categoryNumDivLines+1),this.getScale().setDomain([a,o]),r.ticks=(0,d["default"])(a,o,t).concat(o),r._allTicks=r.ticks.slice(),n.min=a,n.max=o,n.tickInterval=l||t,this.setVisibleConfig(n.min,n.max))},t}(l["default"]);S.prototype.setTickValues=g.setTickValues,S.prototype.shiftLabels=g.shiftLabels,S.prototype._createContainer=g._createContainer,S.prototype.setAxisPadding=g.setAxisPadding,S.prototype.getPixel=g.getPixel,S.prototype.getLabel=g.getLabel;var N=S;t["default"]=N},1385:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(290),l=a(274),i=o(a(537)),s=o(a(427)),c=function(e){var t,a,o,r,n,s=e.config.axesConf,c=e.config.axisMapById,u=c&&Array.from(c.keys())||[],h=!0,p=e.getFromEnv("chart").getChildren("canvas")[0],g=p.getChildren("axisRefVisualCartesian")[0],f=function(){return g.asyncDraw()};(0,l.componentFactory)(e,i["default"],"yAxis",s.length,s),t=(e.getChildren("yAxis")||[]).slice(0),a=e.config.axisMapById=new Map,("l"===e.config.side?t.reverse():t).forEach((function(t){if(!t.getState("removed")&&0!==t.config.showaxis){var l,i,s=t.getId();(n={}).axis=t,r=c&&c.get(s),n.checkbox=r&&r.checkbox,a.set(s,n),0===t.config.showaxis?t.hide():t.show(),p.attachAxis(t,!0),h&&(e.config.besideCanvas=s),h=!1,d||(o=t),t.setLinkedItem("canvas",p),g.setLinkedItem(t.getId(),t),g.addExtEventListener("visiblerangeset",f,t),d++,l=s,-1!==(i=u.indexOf(l))&&u.splice(i,1)}})),o&&p.setPrimaryAxis("yAxis",o),function(e,t){var a,o,r;for(r=e.length-1;r>-1;r--)a=e[r],(o=t.get(a)).checkbox&&o.checkbox.remove(),o.axis&&o.axis.remove(),t["delete"](a)}(u,c)},d=0,u=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",c),t}(0,r["default"])(t,e),t.resetAxisCount=function(){d=0};var a=t.prototype;return a.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.axesConf=e.axesConf||[],t.checkboxesConf=e.checkboxesConf||[],t.side=e.side},a.placeAxis=function(e){var t,a=this,o=e,r=a.config.side,n=a.getAxesDetails(),l=a.getFromEnv("chartConfig").axesPadding,i=0,s=0,c={right:0,left:0};return n.forEach((function(e){var a=e.value||(e.value={}),n=e.axis;n.getState("removed")||0===n.config.showaxis||(t=n.placeAxis(.7*o),"r"===r?(o-=a.width=t.right,c.right+=t.right,i+=l):(o-=a.width=t.left,c.left+=t.left,s+=l))})),{dimension:c,rightPadding:i,leftPadding:s}},a.setAxisDimention=function(){var e=this,t=e.config,a=e.getAxesDetails(),o=e.getFromEnv("chartConfig").axesPadding,r=e.getFromEnv("chart").getChildren("canvas")[0].config,n=r.canvasBorderWidth,l=r.canvasPaddingTop,i=r.canvasPaddingBottom,s=r.canvasLeft,c=r.canvasTop,d=r.canvasHeight,u=s+r.canvasWidth,h="r"===t.side,p="r"===t.side?s-n:u+n,g=0;a.forEach((function(e){var t=e.value||(e.value={}),a=e.axis;0===a.config.showaxis||a.getState("removed")||(t.x=h?u+n+g+o:s-n-g-o,t.y=c+l,t.height=d-l-i,t.opposite=p,g+=t.width+o,a.setAxisDimention({x:t.x,y:t.y,opposite:t.opposite,axisLength:t.height}))}))},a.drawHotElements=function(){var e,t,a=this,o=a.config,r="r"===o.side,n=a.getFromEnv("chartConfig").allowAxisShift,i=a.getFromEnv("chart"),s=o.axisMapById,c=a.getGraphicalElement("axisHotElement")||[],d=-1,u={cursor:"col-resize",stroke:l.TRACKER_FILL,fill:l.TRACKER_FILL,visibility:!0};for(n&&s.forEach((function(e,t){var o,n=e.value;u.x=n.x+(r?0:-n.width),u.y=n.y,u.width=n.width,u.height=n.height,(o=c[++d])||(o=a.addGraphicalElement("axisHotElement",a.getFromEnv("paper").rect(i.getChildContainer("trackerGroup")),!0)).on("fc-click",a._resuffelAxis),o.attr(u).data("axisDetails",{axisSelectorUI:a,canvas:i.getChildren("canvas")[0],axisId:t})})),e=d+1,t=c.length;e<t;e++)a.removeGraphicalElement(c[e])},a.drawCheckBoxes=function(){var e=this,t=e.config,a=e.getFromEnv("chartConfig"),o="r"===t.side,r=t.axisMapById;a.allowSelection?r.forEach((function(t,r){var n=t.value,l=t.checkbox,i=t.axis.config,c=o?t.axis.getAxisConfig("axisNamePadding"):-n.width;l||(l=t.checkbox=new s["default"],e.attachChild(l,"checkbox",!0),l.configure({isChecked:!0,text:"",stroke:a.checkBoxColor,symbolStroke:a.checkBoxColor,strokeWidth:1,symbolStrokeWidth:1,containerInfo:{id:"buttonGroup",label:"group",isParent:!0}}),l.addEventListener("fc-click",(function(){var t=this;t.toggle(),e._dolegendInteraction.call(t,r,t.getFromEnv("chart")),i.checkBoxChecked=!i.checkBoxChecked}))),l.setDimension({x:n.x+c,y:n.y+n.height+4})})):r.forEach((function(e,t){e.checkbox&&e.checkbox.remove(),delete e.checkbox}))},a._createLayers=function(){var e=this,t=e.getFromEnv("chart").getChildContainer("selectorGroup");e.createContainer("axisBottomGroup",{name:"axis-bottom-group"},t),e.createContainer("axisTopGroup",{name:"axis-top-group"},t),e.createContainer("buttonGroup",{name:"buttons"},t)},a.createContainer=function(e,t,a){return this.addChildContainer(e,this.getFromEnv("animationManager").setAnimation({container:a,attr:t,el:this.getChildContainer(e)||"group",component:this,label:"group"}))},a.draw=function(){this._createLayers(),this.drawHotElements(),this.drawCheckBoxes()},a._resuffelAxis=function(){var e,t,a,o,r,n,l=this.data("axisDetails"),i=l.axisSelectorUI,s=i.config,c=l.canvas,d=l.axisId,u=i.getAxesDetails();s.besideCanvas!==d&&(u=i.config.axisMapById=(e=s.besideCanvas,t=d,o=[e,(a=u).get(e)],r=[t,a.get(t)],n=Array.from(a.entries()).map((function(a){var n=a[0],l=a[1];return n===e?r:n===t?o:[n,l]})),new Map(n))),s.besideCanvas=d,c.setPrimaryAxis("yAxis",u.get(d).axis),i.setAxisDimention(),i.asyncDraw(),c.getChildren("axisRefVisualCartesian")[0].asyncDraw()},a._dolegendInteraction=function(e,t){var a,o,r=[];for(a in t.iterateComponents((function(e){"dataset"===e.getType()&&r.push(e)})),r)r.hasOwnProperty(a)&&(o=r[a]).getFromEnv("yAxis").getId()===e&&(!o.getState("visible")&&this.config.checked?(o.config.legendInteractivity=!0,o.show()):o.getState("visible")&&!this.config.checked&&(o.config.legendInteractivity=!0,o.hide()))},a.manipulateCheckBox=function(e){var t,a,o,r=e.data,n=r.dataset,l=n.getFromEnv("yAxis").getId(),i=n.getLinkedParent().getChildren().dataset,s=!0;if(o=this.getAxesDetails().get(l))if("hide"===r.state){for(t=0,a=i.length;t<a;t++)i[t].getState("visible")&&(s=!1);s&&o.checkbox&&o.checkbox.uncheck()}else o.checkbox&&o.checkbox.check()},a.getAxesDetails=function(){return this.config.axisMapById},a.getType=function(){return"customAxisUI"},a.getName=function(){return"multiAxisSelectorUI"},a.getAxes=function(){return Array.from(this.config.axisMapById.values()).map((function(e){return e.axis}))},t}(n.ComponentInterface);t["default"]=u},1460:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(522)),l=a(1454),i=a(274),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"polarCanvas"},a.getType=function(){return"canvas"},a.configureAttributes=function(){e.prototype.configureAttributes.call(this);var t=this.config,a=this.getFromEnv("chart"),o=a.getFromEnv("dataSource").chart,r=a.getFromEnv("color-manager");t.radarBorderColor=(0,i.convertColor)((0,i.pluck)(o.radarbordercolor,r.getColor("divLineColor")),(0,i.pluckNumber)(o.radarborderalpha,100)),t.radarFillColor=(0,i.convertColor)((0,i.pluck)(o.radarfillcolor,r.getColor("altHGridColor")),(0,i.pluckNumber)(o.radarfillalpha,r.getColor("altHGridAlpha"))),t.radarBorderThickness=(0,i.pluckNumber)(o.radarborderthickness,2),t.showRadarBorder=(0,i.pluckNumber)(o.showradarborder,1)},a.draw=function(){this.createGroup(),this.drawCanvas()},a.drawCanvas=function(){var e,t,a,o,r,n,s,c=this,d=this.config,u=c.getFromEnv("chart"),h=u.config,p=u.getChildren("xAxis")[0],g=u.getFromEnv("animationManager"),f=c.getContainer("radarBorderContainer"),m=c.getContainer("canvasGroup"),v=p.config,b={stroke:d.radarBorderColor,fill:d.radarFillColor,"stroke-width":d.radarBorderThickness,path:[]},x=v.tickValues.tickValue,k=p.getScale(),y=c.getGraphicalElement("radarBorder"),C=v.axisDimention.centerX,w=v.axisDimention.centerY;if(n=(0,i.pluckNumber)(v.radius,0),a=x?x.length-1:0,d.canvasLeft=d.canvasLeft||h.canvasLeft,d.canvasTop=d.canvasTop||h.canvasTop,d.canvasWidth=d.canvasWidth||h.canvasWidth,d.canvasHeight=d.canvasHeight||h.canvasHeight,0!==d.showRadarBorder){for(b.path.push("M"),t=0;t<=a;t++)o=k.getRangeValue(t),(r=(0,l.polarToCartesian)(n,o)).x+=C,r.y+=w,b.path.push(r.x,r.y,"L");b.path.pop(),b.path.push("Z")}e=g.setAnimation({el:f||"group",attr:{name:"radarBorderContainer"},container:m,component:c,label:"group"}),f||c.addContainer("radarBorderContainer",e),s=g.setAnimation({el:y||"path",attr:b,container:e,component:p,label:"path"}),y||c.addGraphicalElement("radarBorder",s)},t}(n["default"]),c=s;t["default"]=c},1352:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),n=o(a(288)),l=a(290),i=a(274),s=function(e){return function(t){var a=e.config;a.dragStart&&a.hoveredDS.drag("dragmove",t,a.hoveredInfo.pointIndex)}},c=function(e){return function(t){var a=e.config;a.dragStart&&a.hoveredDS.drag("dragend",t,a.hoveredInfo.pointIndex),a.dragStart=!1}},d=["fc-dragstart","fc-dragmove","fc-dragend"],u=function(e){function t(){var t,a;return(t=e.call(this)||this).config.eventCb={"fc-dragstart":(a=(0,r["default"])(t),function(e){for(var t,o,r,n=a.getFromEnv("chart"),l=a.config,s=n.config.datasetOrder||n.getDatasets(),c=(0,i.getMouseCoordinate)(n.getFromEnv("chart-container"),e,n),d=s.length;d--&&!t;)(r=s[d])&&r.getState("visible")&&(o=r._getHoveredPlot&&r._getHoveredPlot(c.chartX,c.chartY))&&o.hovered&&(t=!0,l.dragStart=!0,l.hoveredInfo=o,l.hoveredDS=r,r.drag("dragstart",e,o.pointIndex,c))}),"fc-dragmove":s((0,r["default"])(t)),"fc-dragend":c((0,r["default"])(t))},t}(0,n["default"])(t,e);var a=t.prototype;return a.addEvents=function(){var e=this,t=e.getFromEnv("chart").getChildren("canvas");e.removeEvents(),t.forEach((function(t){d.forEach((function(a){t.addEventListener(a,e.config.eventCb[a])}))}))},a.removeEvents=function(){var e=this;e.getFromEnv("chart").getChildren("canvas").forEach((function(t){d.forEach((function(a){t.removeEventListener(a,e.config.eventCb[a])}))}))},a._dispose=function(){this.removeEvents(),e.prototype._dispose.call(this)},t}(l.ComponentInterface);t["default"]=u},1343:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=a(274),i=o(a(540)),s=o(a(539)),c=a(286),d=o(a(695)),u=o(a(1344)),h=a(282),p=a(1345),g=(0,h.getDepsByType)("transcoder"),f=l.preDefStr.UNDERSCORE,m=l.BLANKSTRING,v=0,b=function(e){var t,a=e.sender.apiInstance,o=a.getChildren("canvas")[0].getChildren("vCanvas")[0],r=a.config,n=e.data,l=n&&n.endValue,i=n&&n.startValue;(l>r.yMax||l<r.yMin||i===r.yMin||i===r.yMax)&&(t=o.getDataLimits(),r.yMax=t.max,r.yMin=t.min)},x=function(e){function t(){var t;return(t=e.call(this)||this).eiMethods.getDataWithId=function(){for(var e,t,a,o,r,n,l,i,s,c,d=this.apiInstance&&this.apiInstance.getJSONData(),u=[[m]],h=d.dataset,p=d.categories&&d.categories[0]&&d.categories[0].category,g=h&&h.length||0,v=0;g--;)if(r=h[g])for(u[0][g+1]=r.id||r.seriesname,l=r.id||g+1,c=(o=r.data)&&o.length||0,s=0;s<c;s+=1){if(!u[n=s+1]){for(a=p&&p[s+v]||{};a.vline;)a=p[s+(v+=1)]||{};t=a.label||a.name||m,u[n]=[t]}e=u[n],i=o[s].id||n+f+l,e[g+1]=[i,Number(o[s].value)]}return u},t.eiMethods.getData=function(e){var t,a,o=this,r=o.apiInstance&&o.apiInstance.getJSONData(),n=r.dataset,l=n&&n.length||0,i=0;if(e)a=e.toString().toLowerCase(),t=/^json$/gi.test(a)?r:g[a]().fromJSON(r,o).data;else for((t=u["default"].call(o.apiInstance)).unshift([m]);i<l;)t[0][i+1]=n[i++].seriesname;return t},t.eiMethods.setUpperLimit=function(e,t){var a,o=this.apiInstance;if(!t)return o.changeUpperLimits(e);o.addJob("setUpperLimitId"+v++,(function(){a=o.changeUpperLimits(e),"function"==typeof t&&t(a)}),c.priorityList.postRender)},t.eiMethods.setLowerLimit=function(e,t){var a,o=this.apiInstance;if(!t)return o.changeLowerLimits(e);o.addJob("setLowerLimitId"+v++,(function(){a=o.changeLowerLimits(e),"function"==typeof t&&t(a)}),c.priorityList.postRender)},t.eiMethods.getLowerLimit=function(e){var t=this.apiInstance,a=t.getChildren("yAxis")[0];if(a){if(!e)return a.config.axisRange.min;t.addJob("getLowerLimitId"+v++,(function(){"function"==typeof e&&e(a.config.axisRange.min)}),c.priorityList.postRender)}},t.eiMethods.getUpperLimit=function(e){var t=this.apiInstance,a=t.getChildren("yAxis")[0];if(a){if(!e)return a.config.axisRange.max;t.addJob("getUpperLimitId"+v++,(function(){"function"==typeof e&&e(a.config.axisRange.max)}),c.priorityList.postRender)}},t}(0,n["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragBase"},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),"DragNode"!==this.getName()&&this.getFromEnv("chartInstance").addEventListener("dataplotdragend",b)},a.mouseoutHandler=function(e,t,a){var o=this,r=o.config.datasetOrder||o.getDatasets(),n=o.getChildren("mouseTracker")[0];r[t]&&r[t].components.data[a]?r[t]._firePlotEvent(l.MOUSEOUT,a,e):o.getFromEnv("toolTipController").hideAll(),delete n._lastDatasetIndex,delete n._lastPointIndex},t.getName=function(){return"DragBase"},a._mouseEvtHandler=function(e,t){var a,o,n,i,s,c,d,u=this,h=t.mouseTracker,p=u.config.datasetOrder||u.getDatasets(),g=(0,l.getMouseCoordinate)(u.getFromEnv("chart-container"),e.originalEvent,u),f=!1,m=p.length,v=h._lastDatasetIndex,b=h._lastPointIndex;if(b!==r&&p[v]&&p[v].components.data[b]&&(c=p[v].components.data[b].config.dragStart),!c)for(;m--&&!f;)(a=p[m])&&a.getState("visible")&&(o=a._getHoveredPlot&&a._getHoveredPlot(g.chartX,g.chartY))&&o.hovered&&(f=!0,o.datasetIndex=m,s=h.getMouseEvents(e,o.datasetIndex,o.pointIndex));if(c&&v!==r&&(d=e.type===l.MOUSEOUT?l.MOUSEMOVE:e.type,p[v]&&p[v]._firePlotEvent&&p[v]._firePlotEvent(d,b,e)),!c&&(!f||s&&s.fireOut)&&v!==r&&p[v]&&p[v]._firePlotEvent&&(s&&!s.events.length?h.mouseoutTimer=setTimeout((function(){u.mouseoutHandler(e,v,b)}),20):(u.mouseoutHandler(e,v,b),clearTimeout(h.mouseoutTimer))),f)for((i=s.events&&s.events.length)&&(h._lastDatasetIndex=o.datasetIndex,b=h._lastPointIndex=o.pointIndex),n=0;n<i;n+=1)a&&a._firePlotEvent&&a._firePlotEvent(s.events[n],b,e)},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a,o=this.getFromEnv("dataSource").chart;(a=this.config).formAction=(0,l.getValidValue)(o.formaction),o.submitdataasxml!==l.ZEROSTRING||o.formdataformat||(o.formdataformat=g.csv().format),a.formDataFormat=(0,l.pluck)(o.formdataformat,g.xml().format),a.formTarget=(0,l.pluck)(o.formtarget,"_self"),a.formMethod=(0,l.pluck)(o.formmethod,"POST"),a.submitFormAsAjax=(0,l.pluckNumber)(o.submitformusingajax,1),a.restoreBtnTitle=(0,l.pluck)(o.restoretext,o.restorebtntitle,"Restore"),a.submitBtnTitle=(0,l.pluck)(o.submittext,o.formbtntitle,"Submit"),a.showFormBtn=(0,l.pluckNumber)(o.enablesubmit,o.showformbtn,1)&&a.formAction,a.showRestoreBtn=(0,l.pluckNumber)(o.enablerestore,o.showrestorebtn,1),a.formBtnTitle=(0,l.pluck)(o.formbtntitle,"Submit"),a.formBtnStyle={fontSize:a.style.outCanfontSize,fontFamily:a.style.outCanfontFamily,fontWeight:"bold"},a.restoreBtnWidth=(0,l.pluckNumber)(o.restorebtnwidth,0),a.allowAxisChange=(0,l.pluckNumber)(o.allowaxischange,1),o.toolbary||o.toolbarx?a.spaceHardCoded=!0:delete a.spaceHardCoded,a.drawTrendRegion=(0,l.pluckNumber)(o.drawcrossline,0)},a._storeIntialLimit=function(e,t){this.config.axisInitialLimit={min:e,max:t}},a.attachMenuButtons=function(){e.prototype.attachMenuButtons.call(this),this.addConfigureOptions()},a.addConfigureOptions=function(){var e,t,a=this,o=a.getFromEnv("toolbar"),r=o.getChild("hamburgerMenu-"+o.getId()+"-"+a.getId()+"-0"),n=a.config,l=[{name:"Increase Upper Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeUpperLimits(e.max+e.tickInterval)},action:"click"},{name:"Increase Lower Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeLowerLimits(e.min+e.tickInterval)},action:"click"},{name:"Decrease Upper Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeUpperLimits(e.max-e.tickInterval)},action:"click"},{name:"Decrease Lower Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeLowerLimits(e.min-e.tickInterval)},action:"click"}];n.showFormBtn&&(t={name:n.submitBtnTitle,handler:function(){p.submitData.call(a)},action:"click"},l.push(t)),n.showRestoreBtn&&(e={name:n.restoreBtnTitle,handler:function(){a.restoreData()},action:"click"},l.push(e)),n.allowAxisChange&&r.appendInMenu(l)},a.restoreData=function(){var e=this,t=e.getChildren("yAxis")[0],a=e.getFromEnv("chart-attrib"),o=e.config.axisInitialLimit;e.iterateComponents((function(e){var t;(t=e.getChildren("dataset"))&&t.forEach((function(e){e.restore()}))})),t.resetStoredLimits(),t.setAxisConfig({axisMaxValue:a.yaxismaxvalue,axisMinValue:a.yaxisminvalue}),t.setDataLimit(o.max,o.min),e.fireChartInstanceEvent("dataRestored",{}),e._manageInteractiveSpace()},a.changeLowerLimits=function(e){var t=this,a=t.getChildren("yAxis")[0],o=a.getLimit(),n=o.min,l=t.config,i=(0,s["default"])([l.yMin,a.getTrendLineLimits()[0]]),c=!1,d=o.max;return t.getFromEnv("animationManager").setAnimationState("update"),e!==r&&e<i&&e!==o.min&&l.allowAxisChange&&(n=e,c=!0),c&&(a.resetStoredLimits(),a.setAxisConfig({axisMaxValue:d,axisMinValue:n,showLowerLimit:!0}),a.setDataLimit(d,n),t._manageInteractiveSpace()),c},a.changeUpperLimits=function(e){var t,a=this,o=a.getChildren("yAxis")[0],n=o.getLimit(),l=n.min,s=a.config,c=(0,i["default"])([s.yMax,o.getTrendLineLimits()[1]]),d=!1;return a.getFromEnv("animationManager").setAnimationState("update"),e!==r&&e>c&&e!==n.max&&s.allowAxisChange&&(t=e,d=!0),d&&(o.resetStoredLimits(),o.setAxisConfig({axisMaxValue:t,axisMinValue:l,showUpperLimit:!0}),o.setDataLimit(t,l),a._manageInteractiveSpace()),d},a.getJSONData=function(){var e,t,a,o,r,n,i,s=this,c=s.getChildren("canvas")[0].getChildren("vCanvas")[0],d=s.getFromEnv("dataSource"),u=[];if(c.iterateComponents((function(t){"group"===t.getType()&&(e=t)})),e)u=e.getJSONData&&e.getJSONData();else for(n=(a=s.getDatasets()).length,r=0;r<n;r++)o={seriesname:(t=a[r]).config.seriesname,data:t.getJSONData().data},u.push(o);return(i=(0,l.extend2)({},d)).dataset=u,i},t}(d["default"]);x.prototype._manageInteractiveSpace=l._manageInteractiveSpace;var k=x;t["default"]=k},1345:(e,t,a)=>{var o=a(269);t.__esModule=!0,t.submitData=function(){var e,t,a,o,l,d=this,u=new n["default"],h=d.config,p=c.json(),g=c.csv&&c.csv()||"csv",f=c.xml(),m=h.formAction,v=d.getFromEnv("chartInstance");h.formDataFormat===p.format?(e=p.format,d.getJSONData&&(t=JSON.stringify(d.getJSONData())),d.getCollatedData&&(t=JSON.stringify(d.getCollatedData()))):h.formDataFormat&&h.formDataFormat===g.format?(e=g.format,(t=d.getCSVString&&d.getCSVString())!==r&&""!==t||(d.getJSONData&&(t=g.fromJSON(d.getJSONData()).data),d.getCollatedData&&(t=g.fromJSON(d.getCollatedData()).data))):(e=f.format,d.getCollatedData&&(t=f.fromJSON(d.getCollatedData()).data),d.getJSONData&&(t=f.fromJSON(d.getJSONData()).data));d.fireChartInstanceEvent("beforeDataSubmit",{data:t},r,(function(){h.submitFormAsAjax?(u.onError=function(e,a,o,r){d.fireChartInstanceEvent("dataSubmitError",{xhrObject:a.xmlhttp,url:r,statusText:e,httpStatus:a.xmlhttp&&a.xmlhttp.status?a.xmlhttp.status:-1,data:t},[v.id,e,a.xmlhttp&&a.xmlhttp.status])},u.onSuccess=function(e,a,o,r){d.fireChartInstanceEvent("dataSubmitted",{xhrObject:u,response:e,url:r,data:t},[v.id,e])},(a={})["str"+e.toUpperCase()]=t,u.open&&u.abort(),u.post(m,a)):((o=window.document.createElement("span")).innerHTML=s["default"].createHTML('<form style="display:none" action="'+m+'" method="'+h.formMethod+'" target="'+h.formTarget+'"> <input type="hidden" name="strXML" value="'+(0,i.xssEncode)(t)+'"><input type="hidden" name="dataFormat" value="'+e.toUpperCase()+'" /></form>'),l=o.removeChild(o.firstChild),window.document.body.appendChild(l),l.submit&&l.submit(),l.parentNode.removeChild(l),o=l=null)}),(function(){d.fireChartInstanceEvent("dataSubmitCancelled",{data:t})}))};var r,n=o(a(370)),l=a(282),i=a(274),s=o(a(299)),c=(0,l.getDepsByType)("transcoder")},1314:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=o(a(1315)),i=a(274),s=o(a(421)),c=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",l["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MsLog"};var a=t.prototype;return a._feedAxesRawData=function(){var e,t,a=this,o=a.getFromEnv("dataSource"),r=a.getFromEnv("chart-attrib");return e=a.getSpecificxAxisConf(),"1"===(t=a.getSpecificyAxisConf()).base&&(t.base=10,t.logBase=10),t.minorDivlinecolor=(0,i.pluck)(r.minordivlinecolor,t.divLineColor),t.minorDivLineThickness=(0,i.pluck)(r.minordivlinethickness,1),t.minorDivLineAlpha=(0,i.pluck)(r.minordivlinealpha,t.divLineAlpha/2),e.vtrendlines=o.vtrendlines,t.trendlines=o.trendlines,{yAxisConf:[t],xAxisConf:[e]}},a.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.getBasexAxisConf();return t.showZeroPlane=e.showvzeroplane,t.zeroPlaneThickness=e.vzeroplanethickness,t.zeroPlaneAlpha=e.vzeroplanealpha,t.showAxisLine=(0,i.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,0),t.axisLineColor=(0,i.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),t.isReverse=!1,t.showAlternateGridColor=(0,i.pluckNumber)(e.showalternatevgridcolor,0),t.numDivLines=e.numvdivlines,t.maxLabelHeight=e.maxlabelheight,t.axisName=e.xaxisname,t.setAdaptiveMin=e.setadaptivexmin,t.showLimits=e.showvlimits,t.showDivLineValues=(0,i.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues),t},a.getSpecificyAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),a=e.config.is3D?i.chartPaletteStr.chart3D:i.chartPaletteStr.chart2D,o=!!(0,i.pluckNumber)(t.invertyaxis,0),r=e.getFromEnv("color-manager"),n=(0,i.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,t.basefontsize,10);return{isVertical:!0,isReverse:!o,isOpposit:(0,s["default"])(t.yaxisposition,"right"),outCanfontFamily:(0,i.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(n),outCanfontSizeWithUnit:n,outCancolor:(0,i.pluck)(t.outcnvbasefontcolor,t.basefontcolor,r.getColor(a.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:t.yaxisnamepadding,axisValuePadding:t.yaxisvaluespadding,axisNameFont:t.yaxisnamefont,axisNameFontSize:this.computeFontSize(t.yaxisnamefontsize),axisNameFontSizeWithUnit:t.yaxisnamefontsize,axisNameFontColor:t.yaxisnamefontcolor,axisNameFontBold:t.yaxisnamefontbold,axisNameFontItalic:t.yaxisnamefontitalic,axisNameBgColor:t.yaxisnamebgcolor,axisNameBorderColor:t.yaxisnamebordercolor,axisNameAlpha:t.yaxisnamealpha,axisNameFontAlpha:t.yaxisnamefontalpha,axisNameBgAlpha:t.yaxisnamebgalpha,axisNameBorderAlpha:t.yaxisnameborderalpha,axisNameBorderPadding:t.yaxisnameborderpadding,axisNameBorderRadius:t.yaxisnameborderradius,axisNameBorderThickness:t.yaxisnameborderthickness,axisNameBorderDashed:t.yaxisnameborderdashed,axisNameBorderDashLen:t.yaxisnameborderdashlen,axisNameBorderDashGap:t.yaxisnameborderdashgap,axisNameWidth:t.yaxisnamewidth,useEllipsesWhenOverflow:t.useellipseswhenoverflow,rotateAxisName:(0,i.pluckNumber)(t.rotateyaxisname,1),axisName:t.yaxisname,divLineColor:(0,i.pluck)(t.divlinecolor,r.getColor(a.divLineColor)),divLineAlpha:(0,i.pluck)(t.divlinealpha,r.getColor("divLineAlpha")),divLineThickness:(0,i.pluckNumber)(t.divlinethickness,2),divLineIsDashed:Boolean((0,i.pluckNumber)(t.divlinedashed,t.divlineisdashed,0)),divLineDashLen:(0,i.pluckNumber)(t.divlinedashlen,4),divLineDashGap:(0,i.pluckNumber)(t.divlinedashgap,2),showAlternateGridColor:(0,i.pluckNumber)(t.showalternatehgridcolor,1),alternateGridColor:(0,i.pluck)(t.alternatehgridcolor,r.getColor("altHGridColor")),alternateGridAlpha:(0,i.pluck)(t.alternatehgridalpha,r.getColor("altHGridAlpha")),numDivLines:t.numdivlines,axisMinValue:t.yaxisminvalue,axisMaxValue:t.yaxismaxvalue,setAdaptiveMin:t.setadaptiveymin,adjustDiv:t.adjustdiv,labelStep:t.yaxisvaluesstep,showAxisValues:(0,i.pluckNumber)(t.showyaxisvalues,t.showyaxisvalue),showLimits:(0,i.pluckNumber)(t.showyaxislimits,t.showlimits,e.showLimits),showDivLineValues:(0,i.pluckNumber)(t.showdivlinevalues,t.showdivlinevalue),showZeroPlane:t.showzeroplane,zeroPlaneColor:t.zeroplanecolor,zeroPlaneThickness:t.zeroplanethickness,zeroPlaneAlpha:t.zeroplanealpha,showZeroPlaneValue:t.showzeroplanevalue,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,showAxisLine:(0,i.pluckNumber)(t.showyaxisline,t.showaxislines,t.drawAxisLines,0),axisLineThickness:(0,i.pluckNumber)(t.yaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,i.pluckNumber)(t.yaxislinealpha,t.axislinealpha,100),base:t.base,logBase:t.logbase,axisLineColor:(0,i.pluck)(t.yaxislinecolor,t.axislinecolor,"#000000"),showMinorDivLineValues:(0,i.pluckNumber)(t.showminordivlinevalues,0),numMinorDivLines:t.numminordivlines,labelFont:t.yaxisvaluefont,labelFontSize:this.computeFontSize(t.yaxisvaluefontsize),labelFontSizeWithUnit:t.yaxisvaluefontsize,labelFontColor:t.yaxisvaluefontcolor,labelAlpha:t.yaxisvaluealpha,labelFontBold:t.yaxisvaluefontbold,labelFontItalic:t.yaxisvaluefontitalic,labelBdrColor:t.yaxisvaluebordercolor,labelBdrAlpha:t.yaxisvalueborderalpha,labelBgAlpha:t.yaxisvaluebgalpha,labelLink:t.yaxisvaluelink,labelBgColor:t.yaxisvaluebgcolor,labelBdrThickness:t.yaxisvalueborderthickness,labelBdrPadding:t.yaxisvalueborderpadding,labelBdrRadius:t.yaxisvalueborderradius,labelBdrDashed:t.yaxisvalueborderdashed,labelBdrDashLen:t.yaxisvalueborderdashlen,labelBdrDashGap:t.yaxisvalueborderdashgap}},t}(n["default"]);t["default"]=c},1419:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),n=o(a(288)),l=a(274),i=o(a(538)),s=o(a(695)),c=a(690),d=o(a(1420)),u=o(a(1424)),h=o(a(1426));l.setAttribDefs&&(0,l.setAttribDefs)({whiskerslimitswidthratio:{type:l.attrTypeNum,pAttr:"whiskerslimitswidthratio"},outliersupperrangeratio:{type:l.attrTypeNum,pAttr:"outliersupperrangeratio"},outlierslowerrangeratio:{type:l.attrTypeNum,pAttr:"outlierslowerrangeratio"},showalloutliers:{type:l.attrTypeNum,pAttr:"showalloutliers"},showmean:{type:l.attrTypeNum,pAttr:"showmean"},showsd:{type:l.attrTypeNum,pAttr:"showsd"},showmd:{type:l.attrTypeNum,pAttr:"showmd"},showqd:{type:l.attrTypeNum,pAttr:"showqd"},showminvalues:{type:l.attrTypeNum,pAttr:"showminvalues"},showmaxvalues:{type:l.attrTypeNum,pAttr:"showmaxvalues"},showq1values:{type:l.attrTypeNum,pAttr:"showq1values"},showq3values:{type:l.attrTypeNum,pAttr:"showq3values"},showmedianvalues:{type:l.attrTypeNum,pAttr:"showmedianvalues"}});var p,g=l.preDefStr.POLYGON,f=l.preDefStr.colors.c000000,m="boxandwhisker2d",v="above",b=function(e){(0,n["default"])(a,e),a.getName=function(){return"BoxAndWhisker2D"};var t=a.prototype;function a(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return a.maxColWidth=+Infinity,a.useErrorAnimation=1,a.avoidCrispError=0,a.plotSpacePercent=20,a.useplotgradientcolor=1,a.fireGroupEvent=!0,a.hasScroll=!0,a.eiMethods.scrollTo=c.scrollTo,t.registerFactory("dataset",u["default"],["vCanvas"]),t}return t.getName=function(){return"BoxAndWhisker2D"},a.includeInputOptions=function(){return["SwipeGesture"]},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.avgScrollPointWidth=40,t.decimals=2,t.defaultDatasetType=m,t.showplotborder=1,t.plotborderdashlen=5,t.plotborderdashgap=4,t.plotfillalpha=l.HUNDREDSTRING,t.useroundedges=0,t.plotborderthickness=1,t.showvalues=1,t.valuepadding=2,t.decimals=2,t.showtooltip=1,t.maxcolwidth=50,t.rotatevalues=0,t.use3dlighting=1,t.whiskerslimitswidthratio=40,t.outliersupperrangeratio=0,t.outlierslowerrangeratio=0,t.showalloutliers=0,t.showmean=0,t.showsd=0,t.showmd=0,t.showqd=0,t.showminvalues=1,t.showmaxvalues=1,t.showq1values=0,t.showq3values=0,t.showmedianvalues=1,t.tooltipsepchar=": ",t.anchorborderthickness=1,t.anchorimageurl=p,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=p,t.anchorbgalpha=l.HUNDREDSTRING,t.anchorimagealpha=l.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=p,t.anchorbordercolor=p,t.anchorradius=3,t.linedashlen=5,t.linedashgap=4,t.linedashed=p,t.linealpha=l.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0},t.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),c.configurer.call(this,t)},t._setAxisScale=function(){c.setAxisScale.call(this,m)},t._resetViewPortConfig=function(){c.resetViewPortConfig.call(this)},t._getLineJSONdata=function(){var e,t,a,o,r,n,s,c,d,u,h,m,b,x,k,y,C,w,A,S,N,L,D,E,T=this.getChildren("BoxAndWhiskerStatisticalCalc")[0],F=this.getFromEnv("dataSource"),P=F.chart,_=F.dataset,V=_.length,I=[],B=[],M=[],O=function(e){C=Number(e);var t=T.values?(0,i["default"])(T.values):[r.min,r.max];k=t[0],y=t[1],(C<k||C>y)&&x.push({showvalue:r.showoutliervalue,valueposition:r.outliervalueposition,value:C,index:L,anchorbgcolor:r.outliericoncolor,anchorbordercolor:r.outliericonbordercolor,anchorradius:r.outliericonradius,anchoralpha:r.outliericonalpha,anchorbgalpha:r.outliericonalpha,anchorsides:r.outliericonsides,dip:r.outliericonshape})};for(E=0;E<V;E++)for(t=_[E],d=B[E]={},s=M[E]={showMean:{seriesname:"Mean",valueposition:(0,l.pluck)(t.meanvalueposition,P.meanvalueposition,v),showvalues:(0,l.pluckNumber)(t.showmeanvalues,P.showmeanvalues,0),anchorbgcolor:(0,l.pluck)(t.meaniconcolor,P.meaniconcolor,f),anchorbordercolor:(0,l.pluck)(t.meaniconbordercolor,P.meaniconbordercolor,f),anchorradius:(0,l.pluckNumber)(t.meaniconradius,P.meaniconradius,5),anchoralpha:(0,l.pluck)(t.alpha,t.meaniconalpha,P.meaniconalpha),linethickness:(0,l.pluck)(t.linethickness,P.linethickness,1),anchorsides:(0,l.pluck)(t.meaniconsides,P.meaniconsides,3),showline:!(0,l.pluckNumber)(t.drawmeanconnector,P.drawmeanconnector),dip:(0,l.pluck)(t.meaniconshape,P.meaniconshape,g),color:(0,l.pluck)(t.meaniconcolor,P.meaniconcolor,f),data:[]},showSD:{seriesname:"SD",valueposition:(0,l.pluck)(t.sdvalueposition,P.sdvalueposition,v),showvalues:(0,l.pluckNumber)(t.showsdvalues,P.showsdvalues,0),anchorbgcolor:(0,l.pluck)(t.sdiconcolor,P.sdiconcolor,f),anchorbordercolor:(0,l.pluck)(t.sdiconbordercolor,P.sdiconbordercolor,f),anchorradius:(0,l.pluckNumber)(t.sdiconradius,P.sdiconradius,5),anchoralpha:(0,l.pluck)(t.alpha,t.sdiconalpha,P.sdiconalpha),anchorbgalpha:(0,l.pluck)(t.sdiconalpha,P.sdiconalpha,100),linethickness:(0,l.pluck)(t.linethickness,P.linethickness,1),anchorsides:(0,l.pluck)(t.sdiconsides,P.sdiconsides,3),showline:!(0,l.pluckNumber)(t.drawsdconnector,P.drawsdconnector),dip:(0,l.pluck)(t.sdiconshape,P.sdiconshape,g),color:(0,l.pluck)(t.sdiconcolor,P.sdiconcolor,f),data:[]},showQD:{seriesname:"QD",valueposition:(0,l.pluck)(t.qdvalueposition,P.qdvalueposition,v),showvalues:(0,l.pluckNumber)(t.showqdvalues,P.showqdvalues,0),anchorbgcolor:(0,l.pluck)(t.qdiconcolor,P.qdiconcolor,f),anchorbordercolor:(0,l.pluck)(t.qdiconbordercolor,P.qdiconbordercolor,f),anchorradius:(0,l.pluckNumber)(t.qdiconradius,P.qdiconradius,5),anchoralpha:(0,l.pluck)(t.alpha,t.qdiconalpha,P.qdiconalpha),anchorbgalpha:(0,l.pluck)(t.qdiconalpha,P.qdiconalpha,100),linethickness:(0,l.pluck)(t.linethickness,P.linethickness,1),anchorsides:(0,l.pluck)(t.qdiconsides,P.qdiconsides,3),showline:!(0,l.pluckNumber)(t.drawqdconnector,P.drawqdconnector),dip:(0,l.pluck)(t.qdiconshape,P.qdiconshape,g),color:(0,l.pluck)(t.qdiconcolor,P.qdiconcolor,f),data:[]},showMD:{seriesname:"MD",valueposition:(0,l.pluck)(t.mdvalueposition,P.mdvalueposition,v),showvalues:(0,l.pluckNumber)(t.showmdvalues,P.showmdvalues,0),anchorbgcolor:(0,l.pluck)(t.mdiconcolor,P.mdiconcolor,f),anchorbordercolor:(0,l.pluck)(t.mdiconbordercolor,P.mdiconbordercolor,f),anchorradius:(0,l.pluckNumber)(t.mdiconradius,P.mdiconradius,5),anchoralpha:(0,l.pluck)(t.alpha,t.mdiconalpha,P.mdiconalpha),anchorbgalpha:(0,l.pluck)(t.mdiconalpha,P.mdiconalpha,100),linethickness:(0,l.pluck)(t.linethickness,P.linethickness,1),anchorsides:(0,l.pluck)(t.mdiconsides,P.mdiconsides,3),showline:!(0,l.pluckNumber)(t.drawmdconnector,P.drawmdconnector),dip:(0,l.pluck)(t.mdiconshape,P.mdiconshape,g),color:(0,l.pluck)(t.mdiconcolor,P.mdiconcolor,f),data:[]},outliers:{seriesname:"Outliers",valueposition:(0,l.pluck)(t.outliervalueposition,P.outliervalueposition,v),showvalues:(0,l.pluckNumber)(t.showoutliervalues,P.showoutliervalues,0),anchorbgcolor:(0,l.pluck)(t.outliericoncolor,P.outliericoncolor,f),anchorbordercolor:(0,l.pluck)(t.outliericonbordercolor,P.outliericonbordercolor,f),anchorradius:(0,l.pluckNumber)(t.outliericonradius,P.outliericonradius,5),anchoralpha:(0,l.pluck)(t.alpha,t.outliericonalpha,P.outliericonalpha),includeinlegend:t.seriesname?1:0,anchorbgalpha:(0,l.pluck)(t.outliericonalpha,P.outliericonalpha,100),linethickness:(0,l.pluck)(t.linethickness,P.linethickness,1),anchorsides:(0,l.pluck)(t.outliericonsides,P.outliericonsides,3),showline:!(0,l.pluckNumber)(t.drawoutliersconnector,P.drawoutliersconnector),color:(0,l.pluck)(t.outliericoncolor,P.outliericoncolor,f),dip:(0,l.pluck)(t.outliericonshape,P.outliericonshape,g),data:[]}},e=(0,l.pluckNumber)(t.showmean,P.showmean,0),u=(0,l.pluckNumber)(t.showsd,P.showsd,0),h=(0,l.pluckNumber)(t.showqd,P.showqd,0),m=(0,l.pluckNumber)(t.showmd,P.showmd,0),o=(a=t.data)&&a.length||0,L=0;L<o;L++)(r=a[L]).min&&r.max&&r.q1&&r.q3&&r.median?(w=r.mean,A=r.sd,S=r.md,N=r.qd):(T.setArray(r.value),T.getQuartiles(),w=T.getMean(),A=T.getSD(),N=T.getQD(),S=T.getMD()),b=r.outliers,e=d.showMean=d.showMean||(0,l.pluckNumber)(r.showmean,e),u=d.showSD=d.showSD||(0,l.pluckNumber)(r.showsd,u),h=d.showQD=d.showQD||(0,l.pluckNumber)(r.showqd,h),m=d.showMD=d.showMD||(0,l.pluckNumber)(r.showmd,m),s.showMean.data.push({showvalue:r.showmeanvalue,valueposition:r.meanvalueposition,value:e&&(w||p),anchorbgcolor:r.meaniconcolor,anchorbordercolor:r.meaniconbordercolor,anchorradius:r.meaniconradius,anchoralpha:r.meaniconalpha,anchorbgalpha:r.meaniconalpha,anchorsides:r.meaniconsides,dip:r.meaniconshape}),s.showSD.data.push({showvalue:r.showsdvalue,valueposition:r.sdvalueposition,value:u&&(A||p),anchorbgcolor:r.sdiconcolor,anchorbordercolor:r.sdiconbordercolor,anchorradius:r.sdiconradius,anchoralpha:r.sdiconalpha,anchorbgalpha:r.sdiconalpha,anchorsides:r.sdiconsides,dip:r.sdiconshape}),s.showQD.data.push({showvalue:r.showqdvalue,valueposition:r.qdvalueposition,value:h&&(N||p),anchorbgcolor:r.qdiconcolor,anchorbordercolor:r.qdiconbordercolor,anchorradius:r.qdiconradius,anchoralpha:r.qdiconalpha,anchorbgalpha:r.qdiconalpha,anchorsides:r.qdiconsides,dip:r.qdiconshape}),s.showMD.data.push({showvalue:r.showmdvalue,valueposition:r.mdvalueposition,value:m&&(S||p),anchorbgcolor:r.mdiconcolor,anchorbordercolor:r.mdiconbordercolor,anchorradius:r.mdiconradius,anchoralpha:r.mdiconalpha,anchorbgalpha:r.mdiconalpha,anchorsides:r.mdiconsides,dip:r.mdiconshape}),b&&(x=s.outliers.data,b.split(l.COMMA).forEach(O),d.outliers=!0);for(c=B.length,D=0;D<c;D++)for(E in d=B[D],n=I[D]=[],d)d[E]&&n.push(M[D][E]);return I},t.getDSdef=function(){return d["default"]},t.getDSGroupdef=function(){return h["default"]},a}(s["default"]);t["default"]=b},1406:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(274),l=o(a(626)),i=o(a(590)),s=o(a(1407)),c=o(a(1417)),d=a(1408),u=o(a(421)),h=n.preDefStr.altHGridColorStr,p=n.preDefStr.altHGridAlphaStr,g=Math,f=g.max,m=g.round,v=n.preDefStr.POSITION_BOTTOM,b=n.preDefStr.divLineAlpha3DStr,x=n.preDefStr.defaultFontStr,k=n.preDefStr.divLineAlphaStr,y=n.preDefStr.altVGridColorStr,C=n.preDefStr.altVGridAlphaStr,w=n.preDefStr.colors.c000000,A={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:b,legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},S=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t.paletteIndex=3,t.hasInteractiveLegend=!1,t.numOfCanvas=2,t.registerFactory("vCanvas",i["default"],["axis"]),t.registerFactory("axis",c["default"],["canvas"]),t.registerFactory("dataset",s["default"],["vCanvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"candlestick"},t.getName=function(){return"candlestick"},a.getDSdef=function(e){return"bar"===e?d.CandleStickBarDataset:"line"===e?d.CandleStickLineDataset:d.CandleStickDataset},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="candlestick",t.drawanchors=0,t.enablemousetracking=!0,t.iscandlestick=!0,t.canvasborderthickness=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t)},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a,o=this,r=o.config,l=o.getFromEnv("chart-attrib"),i=o.getFromEnv("color-manager");r.showVolumeChart=(0,n.pluckNumber)(l.showvolumechart,function(e){if(!e||!e.dataset)return 0;var t=e.dataset[0].data;return!!(Array.isArray(t)&&t.filter((function(e){return e.volume}))||[]).length}(t),1),r.rollOverBandColor=(0,n.convertColor)((0,n.pluck)(l.rolloverbandcolor,i.getColor(h)),(0,n.pluck)(l.rolloverbandalpha,i.getColor(p))),r.crosslinecolor=(0,n.pluck)(l.crosslinecolor,l.rolloverbandcolor,i.getColor(h)),r.drawcrosslineontop=0,r.crosslinealpha=(0,n.pluckNumber)(l.crosslinealpha,l.rolloverbandalpha,i.getColor(p)),r.drawcrossline=1,r.skipClipping=!0,l=o.getFromEnv("chart-attrib"),r.vplotbordercolor=(0,n.getFirstValue)(l.vplotbordercolor,n.BLANKSTRING),r.vplotborderalpha=(0,n.getFirstValue)(l.vplotborderalpha,n.BLANKSTRING),r.vplotborderthickness=(0,n.pluckNumber)(l.vplotborderthickness,1),r.showplotborder=(0,n.pluckNumber)(l.showvplotborder,1),a=(0,n.pluckNumber)(l.volumeheightpercent,40),r.volumeHeightPercent=a<20?20:a>80?80:a,r.canvasBorderWidth=(0,n.pluckNumber)(l.canvasborderthickness,1)},a._spaceManager=function(){var e,t,a,o,r,l,i,s,c,d,u,h,p,g,b,x,k,y,C,w,A,S,N=this,L=N.config,D=N.getChildren(),E=L.legendPosition?L.legendPosition.split("-"):[],T=D.xAxis&&D.xAxis[0],F=D.yAxis&&D.yAxis[0],P=D.yAxis&&D.yAxis[1],_=N.getFromEnv("legend"),V=N.config.showVolumeChart,I=V?L.volumeHeightPercent:0,B=D.canvas[0],M=B.config,O=L.width,R=L.height,G={},H=L.chartBorderWidth,z=M.canvasBorderWidth,W=L.minCanvasHeight,U=L.minCanvasWidth,j=L.canvasMarginLeft,J=L.canvasMarginRight,K=L.canvasMarginTop,q=L.canvasMarginBottom,Y=L.origCanvasTopMargin,X=L.origCanvasBottomMargin,Q=L.origCanvasLeftMargin,Z=L.origCanvasRightMargin;N._allocateSpace({top:H,bottom:H,left:H,right:H}),e=.225*L.availableHeight,t=N._manageActionBarSpace&&N._manageActionBarSpace(e)||{},N._allocateSpace(t),h=E[0]===n.POSITION_LEFT||E[0]===n.POSITION_RIGHT?.225*L.canvasWidth:.3*L.canvasHeight,!1!==L.hasLegend&&T&&L.showLegend&&N._allocateSpace(_._manageLegendPosition(h)),a=.7*L.canvasWidth,d=F.placeAxis(a),u=V?P.placeAxis(a):{},G.left=f(d.left,u.left||0),G.right=f(d.right,u.right||0),N._allocateSpace(G),U>O-j-J&&(A=!0,p=L.canvasWidth-U,S=j+J,j=L.canvasMarginLeft=p*j/S,J=L.canvasMarginRight=p*J/S),k=j>L.canvasLeft?j-L.canvasLeft:0,y=J>O-L.canvasRight?J+L.canvasRight-O:0,N._allocateSpace({left:k,right:y}),A&&(S=Q+Z,(b=L.canvasWidth)>U&&(k=(p=b-U)*Q/S,y=p*Z/S),N._allocateSpace({left:k,right:y})),o=.225*L.canvasHeight,o=E[0]===n.POSITION_TOP||E[0]===v?.6*L.canvasHeight:.6*L.canvasWidth,N._manageChartMenuBar(o),N._allocateSpace({top:L.canvasMarginTop,bottom:L.canvasMarginBottom}),o=.3*L.canvasHeight,l=T.placeAxis(o),T&&N._allocateSpace(l),l.bottom+=6,M.intermediarySpace=l.bottom,V&&N._allocateSpace({bottom:10}),N._allocateSpace({top:z,bottom:2*z,left:z,right:z}),W>R-K-q&&(x=!0,p=L.canvasHeight-W,S=K+q,K=L.canvasMarginTop=p*K/S,q=L.canvasMarginBottom=p*q/S),C=K>L.canvasTop?K-L.canvasTop:0,w=q>R-L.canvasBottom?q+L.canvasBottom-R:0,N._allocateSpace({top:C,bottom:w}),x&&(S=Y+X,(g=L.canvasHeight)>W&&(C=(p=g-W)*Y/S,w=p*X/S),N._allocateSpace({top:C,bottom:w})),r=L.canvasHeight,M.canvasHeight=m((100-I)/100*r),M.canvasTop=L.canvasTop,M.canvasLeft=L.canvasLeft,M.canvasBottom=M.canvasTop+M.canvasHeight,M.canvasWidth=L.canvasWidth,M.canvasRight=L.canvasRight,M.canvasY=L.canvasTop+M.canvasHeight+z,B.setDimension({top:M.canvasTop,left:M.canvasLeft,width:M.canvasWidth,height:M.canvasHeight}),V&&((s=(i=D.canvas[1]).config).canvasHeight=I/100*r,s.canvasTop=M.canvasBottom+l.bottom+2*z,s.canvasLeft=L.canvasLeft,s.canvasBottom=s.canvasTop+s.canvasHeight+2*z,s.canvasRight=L.canvasRight,s.canvasWidth=L.canvasWidth,c=L.canvasTop+M.canvasHeight+l.bottom+2*z,s.canvasY=c,i.setDimension({top:s.canvasTop,left:s.canvasLeft,width:s.canvasWidth,height:s.canvasHeight}))},a._postSpaceManagement=function(){e.prototype._postSpaceManagement.call(this)},a.setAxisDimention=function(){var e,t=this.getChildren(),a=t.xAxis&&t.xAxis[0],o=t.yAxis&&t.yAxis[0],r=t.yAxis&&t.yAxis[1],n=t.canvas,l=n[0].config,i=l.canvasBorderWidth,s=l.canvasLeft-i;a&&a.setAxisDimention({x:l.canvasLeft,y:a.config.isOpposit?l.canvasTop-i:l.canvasY,opposite:a.config.isOpposit?l.canvasY:l.canvasTop-i,axisLength:l.canvasWidth}),o&&o.setAxisDimention({x:o.config.isOpposit?l.canvasRight+i:s,y:l.canvasTop,opposite:o.config.isOpposit?s:l.canvasRight+i,axisLength:l.canvasHeight}),a.setCanvas(l),o.setCanvas(l),this.config.showVolumeChart&&(e=n[1].config,r&&r.setAxisDimention({x:o.config.isOpposit?e.canvasRight+i:s,y:e.canvasTop,opposite:o.config.isOpposit?s:e.canvasRight+i,axisLength:e.canvasHeight}),r&&r.setCanvas(e))},a._feedAxesRawData=function(){var e,t,a,o=this,r=o.getFromEnv("color-manager"),l=o.getFromEnv("dataSource"),i=o.getFromEnv("chart-attrib"),s=[],c=[],d=o.config.is3D,g=d?A.chart3D:A.chart2D,f=(0,n.pluckFontSizeMaintainUnit)(i.outcnvbasefontsize,i.basefontsize,10);return(e={isVertical:!1,isReverse:!1,isOpposit:(0,u["default"])(i.xaxisposition,"top"),drawTrendLabels:!0,outCanfontFamily:(0,n.pluck)(i.outcnvbasefont,i.basefont,x),outCanfontSize:this.computeFontSize(f),outCanfontSizeWithUnit:f,outCancolor:(0,n.pluck)(i.outcnvbasefontcolor,i.basefontcolor,r.getColor(g.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:i.xaxisnamepadding,axisValuePadding:i.labelpadding,axisNameFont:i.xaxisnamefont,axisNameFontSize:this.computeFontSize(i.xaxisnamefontsize),axisNameFontSizeWithUnit:i.xaxisnamefontsize,axisNameFontColor:i.xaxisnamefontcolor,axisNameFontBold:i.xaxisnamefontbold,axisNameFontItalic:i.xaxisnamefontitalic,axisNameBgColor:i.xaxisnamebgcolor,axisNameBorderColor:i.xaxisnamebordercolor,axisNameAlpha:i.xaxisnamealpha,axisNameFontAlpha:i.xaxisnamefontalpha,axisNameBgAlpha:i.xaxisnamebgalpha,axisNameBorderAlpha:i.xaxisnameborderalpha,axisNameBorderPadding:i.xaxisnameborderpadding,axisNameBorderRadius:i.xaxisnameborderradius,axisNameBorderThickness:i.xaxisnameborderthickness,axisNameBorderDashed:i.xaxisnameborderdashed,axisNameBorderDashLen:i.xaxisnameborderdashlen,axisNameBorderDashGap:i.xaxisnameborderdashgap,useEllipsesWhenOverflow:i.useellipseswhenoverflow,divLineColor:(0,n.pluck)(i.vdivlinecolor,i.divlinecolor,r.getColor(g.divLineColor)),divLineAlpha:(0,n.pluck)(i.vdivlinealpha,i.divlinealpha,d?r.getColor(b):r.getColor(k)),divLineThickness:(0,n.pluckNumber)(i.vdivlinethickness,i.divlinethickness,1),divLineIsDashed:Boolean((0,n.pluckNumber)(i.vdivlinedashed,i.vdivlineisdashed,i.divlinedashed,i.divlineisdashed,0)),divLineDashLen:(0,n.pluckNumber)(i.vdivlinedashlen,i.divlinedashlen,4),divLineDashGap:(0,n.pluckNumber)(i.vdivlinedashgap,i.divlinedashgap,2),showAlternateGridColor:(0,n.pluckNumber)(i.showalternatevgridcolor,0),alternateGridColor:(0,n.pluck)(i.alternatevgridcolor,r.getColor(y)),alternateGridAlpha:(0,n.pluck)(i.alternatevgridalpha,r.getColor(C)),numDivLines:i.numvdivlines,labelFont:i.labelfont,labelFontSize:this.computeFontSize(i.labelfontsize),labelFontSizeWithUnit:i.labelfontsize,labelFontColor:i.labelfontcolor,labelAlpha:i.labelalpha,labelFontBold:i.labelfontbold,labelFontItalic:i.labelfontitalic,labelBdrColor:i.labelbordercolor,labelBdrAlpha:i.labelborderalpha,labelLink:i.labellink,labelBgAlpha:i.labelbgalpha,labelBgColor:i.labelbgcolor,labelBdrThickness:i.labelborderthickness,labelBdrPadding:i.labelborderpadding,labelBdrRadius:i.labelborderradius,labelBdrDashed:i.labelborderdashed,labelBdrDashLen:i.labelborderdashlen,labelBdrDashGap:i.labelborderdashgap,axisName:i.xaxisname,axisMinValue:i.xaxisminvalue,axisMaxValue:i.xaxismaxvalue,setAdaptiveMin:i.setadaptivexmin,adjustDiv:i.adjustvdiv,labelDisplay:i.labeldisplay,showLabels:i.showlabels,rotateLabels:i.rotatelabels,slantLabel:(0,n.pluckNumber)(i.slantlabels,i.slantlabel),labelStep:(0,n.pluckNumber)(i.labelstep,i.xaxisvaluesstep),showAxisValues:(0,n.pluckNumber)(i.showxaxisvalues,i.showxaxisvalue),showLimits:i.showvlimits,showDivLineValues:(0,n.pluckNumber)(i.showvdivlinevalues,i.showvdivlinevalues),showZeroPlane:i.showvzeroplane,zeroPlaneColor:i.vzeroplanecolor,zeroPlaneThickness:i.vzeroplanethickness,zeroPlaneAlpha:i.vzeroplanealpha,showZeroPlaneValue:i.showvzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:(0,n.pluckNumber)(i.showxaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,n.pluckNumber)(i.xaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,n.pluckNumber)(i.xaxislinealpha,i.axislinealpha,100),axisLineColor:(0,n.pluck)(i.xaxislinecolor,i.axislinecolor,w),freezeLimit:!0}).vtrendlines=l.vtrendlines,c.push(e),(t={isVertical:!0,isReverse:!0,isOpposit:(0,u["default"])(i.yaxisposition,"left"),drawLabelsOpposit:1,axisNameAlignCanvas:1,outCanfontFamily:(0,n.pluck)(i.outcnvbasefont,i.basefont,x),outCanfontSize:this.computeFontSize(f),outCanfontSizeWithUnit:f,outCancolor:(0,n.pluck)(i.outcnvbasefontcolor,i.basefontcolor,r.getColor(g.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:i.yaxisnamepadding,axisValuePadding:i.yaxisvaluespadding,axisNameFont:i.pyaxisnamefont,axisNameFontSize:i.pyaxisnamefontsize,axisNameFontSizeWithUnit:i.pyaxisnamefontsize,axisNameFontColor:i.pyaxisnamefontcolor,axisNameFontBold:i.pyaxisnamefontbold,axisNameFontItalic:i.pyaxisnamefontitalic,axisNameBgColor:i.pyaxisnamebgcolor,axisNameBorderColor:i.pyaxisnamebordercolor,axisNameAlpha:i.pyaxisnamealpha,axisNameFontAlpha:i.pyaxisnamefontalpha,axisNameBgAlpha:i.pyaxisnamebgalpha,axisNameBorderAlpha:i.pyaxisnameborderalpha,axisNameBorderPadding:i.pyaxisnameborderpadding,axisNameBorderRadius:i.pyaxisnameborderradius,axisNameBorderThickness:i.pyaxisnameborderthickness,axisNameBorderDashed:i.pyaxisnameborderdashed,axisNameBorderDashLen:i.pyaxisnameborderdashlen,axisNameBorderDashGap:i.pyaxisnameborderdashgap,axisNameWidth:i.yaxisnamewidth,useEllipsesWhenOverflow:i.useellipseswhenoverflow,rotateAxisName:(0,n.pluckNumber)(i.rotateyaxisname,1),axisName:i.pyaxisname,divLineColor:(0,n.pluck)(i.divlinecolor,r.getColor(g.divLineColor)),divLineAlpha:(0,n.pluck)(i.divlinealpha,r.getColor(k)),divLineThickness:(0,n.pluckNumber)(i.divlinethickness,1),divLineIsDashed:Boolean((0,n.pluckNumber)(i.divlinedashed,i.divlineisdashed,1)),divLineDashLen:(0,n.pluckNumber)(i.divlinedashlen,4),divLineDashGap:(0,n.pluckNumber)(i.divlinedashgap,2),showAlternateGridColor:(0,n.pluckNumber)(i.showalternatehgridcolor,1),alternateGridColor:(0,n.pluck)(i.alternatehgridcolor,r.getColor(h)),alternateGridAlpha:(0,n.pluck)(i.alternatehgridalpha,r.getColor(p)),numDivLines:(0,n.pluckNumber)(i.numpdivlines,5),axisMinValue:i.pyaxisminvalue,axisMaxValue:i.pyaxismaxvalue,setAdaptiveMin:(0,n.pluckNumber)(i.setadaptiveymin,1),adjustDiv:i.adjustdiv,labelStep:i.yaxisvaluesstep,showAxisValues:(0,n.pluckNumber)(i.showyaxisvalues,i.showyaxisvalue),showLimits:(0,n.pluckNumber)(i.showyaxislimits,i.showlimits,o.showLimits),showDivLineValues:(0,n.pluckNumber)(i.showdivlinevalues,i.showdivlinevalue),showZeroPlane:i.showzeroplane,zeroPlaneColor:i.zeroplanecolor,zeroPlaneThickness:i.zeroplanethickness,zeroPlaneAlpha:i.zeroplanealpha,showZeroPlaneValue:i.showzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:(0,n.pluckNumber)(i.showyaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,n.pluckNumber)(i.yaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,n.pluckNumber)(i.yaxislinealpha,i.axislinealpha,100),axisLineColor:(0,n.pluck)(i.yaxislinecolor,i.axislinecolor,w),labelFont:i.yaxisvaluefont,labelFontSize:this.computeFontSize(i.yaxisvaluefontsize),labelFontSizeWithUnit:i.yaxisvaluefontsize,labelFontColor:i.yaxisvaluefontcolor,labelAlpha:i.yaxisvaluealpha,labelFontBold:i.yaxisvaluefontbold,labelFontItalic:i.yaxisvaluefontitalic,labelBdrColor:i.yaxisvaluebordercolor,labelBgAlpha:i.yaxisvaluebgalpha,labelBdrAlpha:i.yaxisvalueborderalpha,labelLink:i.yaxisvaluelink,labelBgColor:i.yaxisvaluebgcolor,labelBdrThickness:i.yaxisvalueborderthickness,labelBdrPadding:i.yaxisvalueborderpadding,labelBdrRadius:i.yaxisvalueborderradius,labelBdrDashed:i.yaxisvalueborderdashed,labelBdrDashLen:i.yaxisvalueborderdashlen,labelBdrDashGap:i.yaxisvalueborderdashgap}).trendlines=l.trendlines,s.push(t),o.config.showVolumeChart&&(a={isVertical:!0,isReverse:!0,isOpposit:(0,u["default"])(i.yaxisposition,"left"),axisIndex:1,drawLabelsOpposit:1,axisNameAlignCanvas:1,uniqueClassName:1,outCanfontFamily:(0,n.pluck)(i.outcnvbasefont,i.basefont,x),outCanfontSize:this.computeFontSize(f),outCanfontSizeWithUnit:f,outCancolor:(0,n.pluck)(i.outcnvbasefontcolor,i.basefontcolor,r.getColor(g.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:i.yaxisnamepadding,axisValuePadding:i.yaxisvaluespadding,axisNameFont:i.vyaxisnamefont,axisNameFontSize:i.vyaxisnamefontsize,axisNameFontSizeWithUnit:i.vyaxisnamefontsize,axisNameFontColor:i.vyaxisnamefontcolor,axisNameFontBold:i.vyaxisnamefontbold,axisNameFontItalic:i.vyaxisnamefontitalic,axisNameBgColor:i.vyaxisnamebgcolor,axisNameBorderColor:i.vyaxisnamebordercolor,axisNameAlpha:i.vyaxisnamealpha,axisNameFontAlpha:i.vyaxisnamefontalpha,axisNameBgAlpha:i.vyaxisnamebgalpha,axisNameBorderAlpha:i.vyaxisnameborderalpha,axisNameBorderPadding:i.vyaxisnameborderpadding,axisNameBorderRadius:i.vyaxisnameborderradius,axisNameBorderThickness:i.vyaxisnameborderthickness,axisNameBorderDashed:i.vyaxisnameborderdashed,axisNameBorderDashLen:i.vyaxisnameborderdashlen,axisNameBorderDashGap:i.vyaxisnameborderdashgap,axisNameWidth:i.yaxisnamewidth,useEllipsesWhenOverflow:i.useellipseswhenoverflow,rotateAxisName:(0,n.pluckNumber)(i.rotateyaxisname,1),axisName:i.vyaxisname,divLineColor:(0,n.pluck)(i.divlinecolor,r.getColor(g.divLineColor)),divLineAlpha:(0,n.pluck)(i.divlinealpha,r.getColor(k)),divLineThickness:(0,n.pluckNumber)(i.divlinethickness,1),divLineIsDashed:Boolean((0,n.pluckNumber)(i.divlinedashed,i.divlineisdashed,1)),divLineDashLen:(0,n.pluckNumber)(i.divlinedashlen,4),divLineDashGap:(0,n.pluckNumber)(i.divlinedashgap,2),showAlternateGridColor:(0,n.pluckNumber)(i.showalternatehgridcolor,1),alternateGridColor:(0,n.pluck)(i.alternatehgridcolor,r.getColor(h)),alternateGridAlpha:(0,n.pluck)(i.alternatehgridalpha,r.getColor(p)),numDivLines:i.numdivlines,axisMinValue:i.vyaxisminvalue,axisMaxValue:i.vyaxismaxvalue,setAdaptiveMin:i.setadaptiveymin,adjustDiv:i.adjustdiv,labelStep:i.yaxisvaluesstep,showAxisValues:(0,n.pluckNumber)(i.showyaxisvalues,i.showyaxisvalue),showLimits:(0,n.pluckNumber)(i.showsecondarylimits,i.showlimits),showDivLineValues:(0,n.pluckNumber)(i.showdivlinevalues,i.showdivlinevalue),showZeroPlane:i.showzeroplane,zeroPlaneColor:i.zeroplanecolor,zeroPlaneThickness:i.zeroplanethickness,zeroPlaneAlpha:i.zeroplanealpha,showZeroPlaneValue:i.showzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:(0,n.pluckNumber)(i.showyaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,n.pluckNumber)(i.yaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,n.pluckNumber)(i.yaxislinealpha,i.axislinealpha,100),axisLineColor:(0,n.pluck)(i.yaxislinecolor,i.axislinecolor,w),labelFont:i.yaxisvaluefont,labelFontSize:this.computeFontSize(i.yaxisvaluefontsize),labelFontSizeWithUnit:i.yaxisvaluefontsize,labelFontColor:i.yaxisvaluefontcolor,labelAlpha:i.yaxisvaluealpha,labelFontBold:i.yaxisvaluefontbold,labelFontItalic:i.yaxisvaluefontitalic,labelBdrColor:i.yaxisvaluebordercolor,labelBgAlpha:i.yaxisvaluebgalpha,labelBdrAlpha:i.yaxisvalueborderalpha,labelLink:i.yaxisvaluelink,labelBgColor:i.yaxisvaluebgcolor,labelBdrThickness:i.yaxisvalueborderthickness,labelBdrPadding:i.yaxisvalueborderpadding,labelBdrRadius:i.yaxisvalueborderradius,labelBdrDashed:i.yaxisvalueborderdashed,labelBdrDashLen:i.yaxisvalueborderdashlen,labelBdrDashGap:i.yaxisvalueborderdashgap},s.push(a)),{xAxisConfigure:c,yAxisConfigure:s}},a.mouseoutHandler=function(e,t,a){var o=this,r=o.config.datasetOrder||o.getDatasets(),n=o.getChildren("mouseTracker")[0];r[t]&&r[t].components.data[a]?r[t]._firePlotEvent("fc-mouseout",a,e):o.getFromEnv("toolTipController").hideAll(),delete n._lastDatasetIndex,delete n._lastPointIndex},a._mouseEvtHandler=function(e,t){var a,o,r,l,i,s,c,d=this,u=t.mouseTracker,h=e.originalEvent,p=d.getChildren("canvas").length,g=h&&(0,n.getMouseCoordinate)(d.getFromEnv("chart-container"),h,d),f=g&&g.chartX||0,m=g&&g.chartY||0,v=!1,b=u._lastDatasetIndex,x=u._lastPointIndex;for(l=0;l<p;l++)for(i=(a=d.getDatasets()).length;i--&&!v;)(o=a[i])&&o.getState("visible")&&(r=o._getHoveredPlot&&o._getHoveredPlot(f,m))&&r.hovered&&(v=!0,r.datasetIndex=i,c=u.getMouseEvents(e,r.datasetIndex,r.pointIndex));if((!v||c&&c.fireOut)&&void 0!==b&&a[b]&&a[b]._firePlotEvent&&(c&&!c.events.length?u.mouseoutTimer=setTimeout((function(){d.mouseoutHandler(e,b,x)}),20):(d.mouseoutHandler(e,b,x),clearTimeout(u.mouseoutTimer))),v)for((s=c.events&&c.events.length)&&(u._lastDatasetIndex=r.datasetIndex,x=u._lastPointIndex=r.pointIndex),i=0;i<s;i+=1)o&&o._firePlotEvent&&o._firePlotEvent(c.events[i],x,e,r.datasetIndex)},a._allocateSpace=function(e){var t,a,o=this.getChildren("canvas"),r=o&&o[0].config,n=this.config,l=n.canvasHeight,i=n.canvasWidth;a=n.canvasLeft+=e.left||0,t=n.canvasTop+=e.top||0,i=n.canvasWidth=f(i-((e.left||0)+(e.right||0)),0),l=n.canvasHeight=f(l-((e.top||0)+(e.bottom||0)),0),n.availableHeight=f(n.availableHeight-((e.top||0)+(e.bottom||0)),0),n.availableWidth=f(n.availableWidth-((e.left||0)+(e.right||0)),0),n.canvasRight=a+i,n.canvasBottom=t+l,r&&(r.canvasPaddingLeft=f(r.canvasPaddingLeft,e.paddingLeft||0),r.canvasPaddingRight=f(r.canvasPaddingRight,e.paddingRight||0),r.canvasPaddingTop=f(r.canvasPaddingTop,e.paddingTop||0),r.canvasPaddingBottom=f(r.canvasPaddingBottom,e.paddingBottom||0))},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").dataset,t=e&&e[0]&&e[0].data;if(!e||!t||!Array.isArray(t))return!0},t}(l["default"]);t["default"]=S},1464:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),n=o(a(288)),l=o(a(520)),i=o(a(446)),s=o(a(481)),c=o(a(1465)),d=o(a(1466)),u=o(a(541)),h=a(274),p=o(a(421)),g=o(a(540)),f=o(a(1467)),m=a(627),v="post",b=["1E77B4","FF7F0E","2BA02C","D62728","9466BD","8C564B","E376C2","7F7F7F","BCBD22","17BECF"],x="FFFFFF,FFFFFF",k="tangential",y="outside",C="inside",w=[k,y,C],A=function(e){function t(t){var a;a=e.call(this,t)||this;var o=(0,r["default"])(a);return o.deregisterFactory("canvas"),o.registerFactory("legend",c["default"]),o.registerFactory("nodelinkManager",d["default"]),o.defaultPaletteOptions={paletteColors:[b,b,b,b,b],bgColor:[x,x,x,x,x]},a}(0,n["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.skipCanvasDrawing=!0,t.friendlyName="Chord",t.nodes={},t.mode=v,t.isPost=!0,t.nodeSpacing=2,t.minNodeSize=.01,t.startingAngle=0,t.links={},t.linksOrder=[],t.nodesOrder=[],t.totalAngle=360,t.clockwise=1,t.nodeLabelGap=10,t.nodeLabelPosition=10,t.nodeThickness=12,t.nodeLinkPadding=3,t.linkAlpha=70,t.linkBorderAlpha=100,t.linkBorderThickness=1,t.nodeHoverAlpha=100,t.linkHoverAlpha=100,t.nodeHoverColor=h.UNDEF,t.linkHoverColor=h.UNDEF,t.showNodeLabels=1,t.showNodeBorder=1,t.showLinkBorder=1,t.nodeBorderColor=h.UNDEF,t.nodeBorderThickness=1,t.nodeBorderDashed=0,t.nodeBorderDashedLen=2,t.nodeBorderDashedGap=1,t.nodeBorderAlpha=100,t.showLinkValueOnHover=1,t.nodeAlpha=70,t.nodeLabelPosition=k,t.nodeLabelFont="Verdana,sans",t.nodeLabelFontSize=12,t.nodeLabelFontBold=h.NORMAL,t.nodeLabelFontItalic=h.NORMAL,t.highlightEffect=1,t.enableToggle=1,t.chordradius=100,t.nodeLabelColor="#5F5F5F",t.unfocussedAlpha=35,t.deactiveNodeColor="#c4c4c4",t.sortOrder=h.UNDEF,t.tooltipsepchar=h.BLANKSTRING,t.linkColorByDominance=1,t.useEllipsesOnOverflow=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a,o,r=this,n=r.config,l=n.nodes,c=n.links,d=n.nodesOrder,f=n.linksOrder,m=n.connectors=t.links,b=m.length,x=r.getFromEnv("number-formatter"),k=t.chart,A=r.getFromEnv("color-manager");for(n.mode="pre"===k.mode?"pre":v,n.isPost=(0,p["default"])(n.mode,v),n.minNodeSize=(0,h.pluckNumber)(k.minnodesize,n.minNodeSize),n.startingAngle=(0,h.pluckNumber)(k.startingangle,n.startingAngle),n.totalAngle=(0,h.pluckNumber)(k.totalangle,n.totalAngle),n.nodeLabelGap=(0,h.pluckNumber)(k.nodelabelpadding,n.nodeLabelGap),n.nodeThickness=(0,h.pluckNumber)(k.nodethickness,n.nodeThickness),n.nodeSpacing=(0,h.pluckNumber)(k.nodespacing,n.nodeSpacing),n.clockwise=(0,h.pluckNumber)(k.clockwise,n.clockwise),n.nodeLinkPadding=(0,h.pluckNumber)(k.nodelinkpadding,n.nodeLinkPadding),n.linkAlpha=(0,h.pluckNumber)(k.linkalpha,n.linkAlpha),n.linkBorderAlpha=(0,h.pluckNumber)(k.linkborderalpha,n.linkBorderAlpha),n.linkBorderThickness=(0,h.pluckNumber)(k.linkborderthickness,n.linkBorderThickness),n.nodeHoverAlpha=(0,h.pluckNumber)(k.nodehoveralpha,n.nodeHoverAlpha),n.linkHoverAlpha=(0,h.pluckNumber)(k.linkhoveralpha,n.linkHoverAlpha),n.showLinkValueOnHover=(0,h.pluckNumber)(k.showlinkvalueonhover,n.showLinkValueOnHover),n.showNodeLabels=(0,h.pluckNumber)(k.shownodelabels,n.showNodeLabels),n.showNodeBorder=(0,h.pluckNumber)(k.shownodeborder,n.showNodeBorder),n.showLinkBorder=(0,h.pluckNumber)(k.showlinkborder,n.showLinkBorder),n.nodeBorderColor=(0,h.pluck)(k.nodebordercolor,n.nodeBorderColor),n.nodeBorderThickness=(0,h.pluckNumber)(k.nodeborderthickness,n.nodeBorderThickness),n.nodeBorderDashed=(0,h.pluckNumber)(k.nodeborderdashed,n.nodeBorderDashed),n.nodeBorderDashedLen=(0,h.pluckNumber)(k.nodeborderdashedlen,n.nodeBorderDashedLen),n.nodeBorderDashedGap=(0,h.pluckNumber)(k.nodeborderdashedgap,n.nodeBorderDashedGap),n.nodeBorderAlpha=(0,h.pluckNumber)(k.nodeborderalpha,n.nodeBorderAlpha),n.nodeAlpha=(0,h.pluckNumber)(k.nodealpha,n.nodeAlpha),n.nodeLabelPosition=w.includes(k.nodelabelposition)?k.nodelabelposition:n.nodeLabelPosition,n.nodeLabelFont=(0,h.pluck)(k.nodelabelfont,k.basefont,n.nodeLabelFont),n.nodeLabelFontSize=(0,h.pluckFontSize)(k.nodelabelfontsize,this.computeFontSize(k.basefontsize),n.nodeLabelFontSize),n.nodeLabelFontBold=(0,h.pluckNumber)(k.nodelabelfontbold,0)?h.BOLD:h.NORMAL,n.nodeLabelColor=(0,h.pluck)(k.nodelabelcolor,k.basefontcolor,n.nodeLabelColor),n.nodeLabelFontItalic=(0,h.pluckNumber)(k.nodelabelfontitalic,0)?"italic":h.NORMAL,n.highlightEffect=(0,h.pluckNumber)(k.highlighteffect,n.highlightEffect),n.enableToggle=(0,h.pluckNumber)(k.enabletoggle,n.enableToggle),n.chordradius=Math.max((0,h.pluckNumber)(k.chordradius,n.chordradius),0),n.unfocussedAlpha=(0,h.pluckNumber)(k.unfocussedalpha,n.unfocussedAlpha),n.deactiveNodeColor=(0,h.pluck)(k.deactivenodecolor,n.deactiveNodeColor),n.sortOrder=(0,h.pluck)(k.sortorder,n.sortOrder),n.linkColorByDominance=(0,h.pluckNumber)(k.linkcolorbydominance,n.linkColorByDominance),n.textOutline=(0,h.pluckNumber)(k.textoutline,0),n.useEllipsesOnOverflow=(0,h.pluckNumber)(k.useellipsesonoverflow,n.useEllipsesOnOverflow),n.datalabelStyle={"font-size":n.nodeLabelFontSize,"font-family":n.nodeLabelFont,"font-weight":n.nodeLabelFontBold,"font-style":n.nodeLabelFontItalic},n.nodeLabelPosition===C&&(n.nodeLabelGap=0),a=0;a<b;++a)if(o=m[a],(0,s["default"])(o)&&(0,h.parseUnsafeString)(o.from)&&(0,h.parseUnsafeString)(o.to)){var S,N=m[a],L=N.from,D=N.to,E=N.value,T=N.tooltext,F=(0,g["default"])([x.getCleanValue(E),0],Number),P=void 0;S=[L=(0,h.parseUnsafeString)(L),D=(0,h.parseUnsafeString)(D)].sort().toString(),l[L]||(l[L]={index:d.push(L)-1,total:0,adjustedTotal:0,nodeCovered:0,label:L,linkedLinks:[],scale:new u["default"],active:!0,nodeLabelGap:n.nodeLabelGap,unfocussed:!1,hovered:!1,toolTipSepChar:n.tooltipsepchar,showToolTip:n.showToolTip}),l[D]||(l[D]={index:d.push(D)-1,total:0,adjustedTotal:0,nodeCovered:0,label:D,linkedLinks:[],scale:new u["default"],active:!0,nodeLabelGap:n.nodeLabelGap,unfocussed:!1,hovered:!1,toolTipSepChar:n.tooltipsepchar,showToolTip:n.showToolTip}),c[S]?P=c[S]:(P=c[S]={key:S,points:[],dominantNode:[],subservientNode:[],subservientFlowDataValue:[],dominantFlowDataValue:[],dominantNodeColor:[],subservientNodeColor:[],index:f.push(S)-1,linkedNodes:n.isPost?[D,L]:[L,D],tooltip:{},visible:!0,tooltext:T,unfocussed:!1,hovered:!1,focussedState:{},unfocussedState:{},normalState:{},sanitisedValue:0,toolTipSepChar:n.tooltipsepchar,showToolTip:n.showToolTip},l[L].linkedLinks.push(S),l[D].linkedLinks.push(S),P.alpha=(0,h.pluckNumber)(N.alpha,n.linkAlpha),P.hoverAlpha=(0,h.pluckNumber)(N.hoveralpha,n.linkHoverAlpha),P.borderAlpha=(0,h.pluckNumber)(N.borderalpha,n.linkBorderAlpha),P.tooltext=(0,h.pluck)(N.tooltext,n.linktooltext,h.UNDEF),P.showBorder=n.showLinkBorder,P.borderThickness=n.linkBorderThickness,P.unfocussedAlpha=(0,h.pluckNumber)(N.unfocussedAlpha,n.unfocussedAlpha),P.style=n.datalabelStyle),l[n.isPost?D:L].total+=F,P.tooltip[L+" to "+D]={value:x.dataLabels(F)},P.showLinkValueOnHover=n.showLinkValueOnHover,P[n.isPost?D:L]=F,c[S].sanitisedValue+=F}var _=function(e){c.hasOwnProperty(e)&&0===c[e].sanitisedValue&&(delete c[e],n.linksOrder=f=f.filter((function(t){return t!==e})),e.split(",").forEach((function(t){l[t].linkedLinks=l[t].linkedLinks.filter((function(t){return t!==e}))})))};for(var V in c)_(V);(0,i["default"])(t.nodes)&&t.nodes.forEach((function(e){if(function(e,t){return(0,s["default"])(e)&&(0,h.parseUnsafeString)(e.label)&&t[e.label]}(e,l)){var t=(0,h.parseUnsafeString)(e.label);l[t]=Object.assign({},e,l[t])}})),"ascending"===n.sortOrder?d.sort((function(e,t){return l[e].total-l[t].total})):"descending"===n.sortOrder&&d.sort((function(e,t){return l[t].total-l[e].total})),d.forEach((function(e,t){var a=l[e],o=(n.showNodeBorder?n.nodeBorderThickness:0)||0;a.index=t,a.label=(0,h.parseUnsafeString)(a.label),a.alpha=(0,h.pluckNumber)(a.alpha,n.nodeAlpha),a.borderAlpha=(0,h.pluckNumber)(a.borderalpha,n.nodeBorderAlpha),a.hoverAlpha=(0,h.pluckNumber)(a.hoveralpha,n.nodeHoverAlpha),a.borderDashedLen=(0,h.pluckNumber)(a.borderdashedlen,n.nodeBorderDashedLen),a.borderDashedGap=(0,h.pluckNumber)(a.borderdashedgap,n.nodeBorderDashedGap),a.borderDashed=(0,h.pluckNumber)(a.borderdashed,n.nodeBorderDashed)?[a.borderDashedLen,a.borderDashedGap]:"none",a.rawColor=(0,h.pluck)(a.color,A.getPlotColor(t)),a.unfocussedAlpha=(0,h.pluckNumber)(a.unfocussedalpha,n.unfocussedAlpha),a.borderColor=(0,h.pluck)(a.bordercolor,n.nodeBorderColor,(0,h.getDarkColor)(a.rawColor,80)),a.tooltext=(0,h.pluck)(a.tooltext,k.plottooltext,h.UNDEF),a.color=(0,h.hashify)(a.rawColor),a.labelPosition=(0,h.pluck)(a.labelposition,n.nodeLabelPosition),a.nodeLabelGap=n.nodeLabelGap,!(0,h.pluckNumber)(k.exportenabled)||a.labelPosition!==y&&a.labelPosition!==C?a.showLabel=(0,h.pluckNumber)(a.showlabel,n.showNodeLabels):a.showLabel=0,a.showBorder=n.showNodeBorder,a.labelColor=(0,h.pluck)(a.labelcolor,n.nodeLabelColor),a.style=n.datalabelStyle,a.focussedState={fill:(0,h.convertColor)(a.rawColor,a.hoverAlpha),stroke:(0,h.convertColor)(a.borderColor,a.borderAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.normalState={fill:(0,h.convertColor)(a.rawColor,a.alpha),stroke:(0,h.convertColor)(a.borderColor,a.borderAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.unfocussedState={fill:(0,h.convertColor)(a.rawColor,a.unfocussedAlpha),stroke:(0,h.convertColor)(a.borderColor,a.unfocussedAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.deactiveState={fill:n.deactiveNodeColor,stroke:n.deactiveNodeColor,"stroke-width":o,"stroke-dasharray":a.borderDashed},a.linkedLinks.forEach((function(e){var t=new RegExp("^"+a.label),o=c[e].tooltip;for(var r in o)o.hasOwnProperty(r)&&t.test(r)&&(o[r].color=a.color)}))})),f.forEach((function(e){var t=c[e],a=t.linkedNodes,o=a[0],r=a[1];o===r&&(t.dominantNode.push(o),t.subservientNode.push(o),t.subservientFlowDataValue.push(x.dataLabels(t[o])),t.dominantFlowDataValue.push(x.dataLabels(t[o])),t.dominantNodeColor.push(l[o].color),t.subservientNodeColor.push(l[o].color)),t[r]===t[o]?(t.dominantNode.push(o,r),t.subservientNode.push(r,o),t.subservientFlowDataValue.push(x.dataLabels(t[r])),t.dominantFlowDataValue.push(x.dataLabels(t[o])),t.dominantNodeColor.push(l[o].color,l[r].color),t.subservientNodeColor.push(l[r].color,l[o].color)):n.isPost?(t[r]||0)>(t[o]||0)?(n.linkColorByDominance?t.dominantNode.push(r):t.dominantNode.push(o),n.linkColorByDominance?t.subservientNode.push(o):t.subservientNode.push(r),n.linkColorByDominance?t.dominantFlowDataValue.push(x.dataLabels(t[r])):t.dominantFlowDataValue.push(x.dataLabels(t[o])),n.linkColorByDominance?t.subservientFlowDataValue.push(x.dataLabels(t[o])):t.subservientFlowDataValue.push(x.dataLabels(t[r])),n.linkColorByDominance?t.dominantNodeColor.push(l[r].color):t.dominantNodeColor.push(l[o].color),n.linkColorByDominance?t.subservientNodeColor.push(l[o].color):t.subservientNodeColor.push(l[r].color)):(n.linkColorByDominance?t.dominantNode.push(o):t.dominantNode.push(r),n.linkColorByDominance?t.subservientNode.push(r):t.subservientNode.push(o),n.linkColorByDominance?t.dominantFlowDataValue.push(x.dataLabels(t[o])):t.dominantFlowDataValue.push(x.dataLabels(t[r])),n.linkColorByDominance?t.subservientFlowDataValue.push(x.dataLabels(t[r])):t.subservientFlowDataValue.push(x.dataLabels(t[o])),n.linkColorByDominance?t.dominantNodeColor.push(l[o].color):t.dominantNodeColor.push(l[r].color),n.linkColorByDominance?t.subservientNodeColor.push(l[r].color):t.subservientNodeColor.push(l[o].color)):(t[r]||0)>(t[o]||0)?(n.linkColorByDominance?t.dominantNode.push(o):t.dominantNode.push(r),n.linkColorByDominance?t.subservientNode.push(r):t.subservientNode.push(o),n.linkColorByDominance?t.dominantFlowDataValue.push(x.dataLabels(t[o])):t.dominantFlowDataValue.push(x.dataLabels(t[r])),n.linkColorByDominance?t.subservientFlowDataValue.push(x.dataLabels(t[r])):t.subservientFlowDataValue.push(x.dataLabels(t[o])),n.linkColorByDominance?t.dominantNodeColor.push(l[o].color):t.dominantNodeColor.push(l[r].color),n.linkColorByDominance?t.subservientNodeColor.push(l[r].color):t.subservientNodeColor.push(l[o].color)):(n.linkColorByDominance?t.dominantNode.push(r):t.dominantNode.push(o),n.linkColorByDominance?t.subservientNode.push(o):t.subservientNode.push(r),n.linkColorByDominance?t.dominantFlowDataValue.push(x.dataLabels(t[r])):t.dominantFlowDataValue.push(x.dataLabels(t[o])),n.linkColorByDominance?t.subservientFlowDataValue.push(x.dataLabels(t[o])):t.subservientFlowDataValue.push(x.dataLabels(t[r])),n.linkColorByDominance?t.dominantNodeColor.push(l[r].color):t.dominantNodeColor.push(l[o].color),n.linkColorByDominance?t.subservientNodeColor.push(l[o].color):t.subservientNodeColor.push(l[r].color))}))},t.getName=function(){return"Chord"},a.getName=function(){return"Chord"},a.getDSdef=function(){return f["default"]},a._manageLegendSpace=function(){m._manageLegendSpace.call(this)},a._spaceManager=function(){var e,t,a,o,r,n,l,i,s=this,c=s.config,d=s.getChildren("node-link-manager")[0];c.showLegend&&s._manageLegendSpace(),s._manageChartMenuBar(.6*c.availableHeight),s.allocateDimensionOfChartMenuBar(),s.config.showLegend&&s.getChildren("legend")&&s.getChildren("legend")[0].postSpaceManager(),e=c.canvasHeight,t=c.canvasWidth,a=c.canvasLeft+t/2,o=c.canvasTop+e/2,i=(n=Math.min(e,t)/2)-(l=.3*n)-c.nodeLabelGap,r=d._manageSpace({maxSpace:i}),s.config.cx=a,s.config.cy=o;var u=Math.max((n-r.width-c.nodeLabelGap)*c.chordradius/100,l),h=u-c.nodeThickness,p=h-c.nodeLinkPadding;c.ribbonRadius=p,d.setDimension({nodeOuterRadius:u,nodeInnerRadius:h,ribbonRadius:p}),d.setTranslation(a,o)},a._checkInvalidData=function(){var e=this.getFromEnv("chartInstance");return(0,i["default"])(this.getFromEnv("dataSource").links)?!this:(e.__state.dataReady=!1,e.jsVars.hasNativeMessage=!0,e.jsVars.drawCount+=1,!0)},a._checkInvalidSpecificData=function(){return!this},t}(l["default"]);t["default"]=A},1470:(e,t)=>{t.__esModule=!0,t.normaliseAngle=function(e){return e-a},t.getArcLength=function(e,t,a){return l*e*Math.abs(a-t)/360},t.getTextRotationByQuadrant=function(e){var t=e;s(t)&&(t-=180);return t},t.isAngleInLeftHemisphere=s,t.isAngleInTopHemisphere=function(e){return Math.abs(e)>180&&Math.abs(e)<360},t.getCartesianDistance=function(e,t,a,o){return Math.sqrt((a-e)*(a-e)+(o-t)*(o-t))},t.MEDIUMSQUARE=t.SMALLSQUARE=t.HALF_PI=t.PI2=t.COS=t.SIN=t.PI=t.C=t.Z=t.L=t.A=t.M=void 0;var a=90,o=Math.PI,r=Math.sin,n=Math.cos,l=2*o,i=o/2;function s(e){return Math.abs(e)>90&&Math.abs(e)<270}t.MEDIUMSQUARE="◼",t.SMALLSQUARE="■",t.HALF_PI=i,t.PI2=l,t.COS=n,t.SIN=r,t.PI=o,t.C="C",t.Z="Z",t.L="L",t.A="A",t.M="M"},1359:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1342)),l=o(a(1356)),i=a(274),s=a(740),c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragArea"},t.getName=function(){return"DragArea"},a.getDSGroupdef=function(){},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;s._setDefaultConfig.call(this),t.isDrag=!0,t.anchoralpha=i.HUNDREDSTRING,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},a.getDSdef=function(){return l["default"]},t}(n["default"]),d=c;t["default"]=d},1342:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1343)),l=o(a(1346)),i=o(a(1348)),s=o(a(1349)),c=o(a(1351)),d=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("limitUpdater",s["default"],["axis"]),t.registerFactory("dragTracker",c["default"],["canvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragColumn2D"},t.getName=function(){return"DragColumn2D"},a.getDSGroupdef=function(){return i["default"]},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isDrag=!0},a.getDSdef=function(){return l["default"]},t}(n["default"]);t["default"]=d},1354:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1355)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragLine"},t.getName=function(){return"DragLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isDrag=!0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},a.getDSdef=function(){return n["default"]},t}(o(a(1359))["default"]);t["default"]=l},1395:(e,t,a)=>{var o=a(269);t.__esModule=!0,t.configurer=t["default"]=void 0;var r,n=o(a(292)),l=o(a(288)),i=o(a(1343)),s=a(1396),c=a(274),d=a(282),u=o(a(1404)),h=a(1345),p=o(a(722)),g=a(327);t.configurer=r;var f=function(e){function t(){var t;t=e.call(this)||this;var a=(0,n["default"])(t);return a.fireGroupEvent=!0,a.usesXYinCategory=!0,a.dontShowLegendByDefault=!0,t.registerFactory("dataset",u["default"],["vCanvas"]),t.registerFactory("axis",p["default"],["canvas"]),t}(0,l["default"])(t,e),t.getName=function(){return"DragNode"};var a=t.prototype;return a.getName=function(){return"DragNode"},a._checkInvalidSpecificData=function(){if(!this.getFromEnv("dataSource").dataset)return!0},a._mouseEvtHandler=function(e,t){(0,g._mouseEvtHandler)(this,e,t)},a.parseChartAttr=function(t){var a,o=this.getFromEnv("dataSource").chart,r=(0,d.getDepsByType)("transcoder");e.prototype.parseChartAttr.call(this,t),(a=this.config).formAction=(0,c.getValidValue)(o.formaction),a.showLegend=(0,c.pluckNumber)(o.showlegend,0),o.submitdataasxml!==c.ZEROSTRING||o.formdataformat||(o.formdataformat=r.csv().format),a.formDataFormat=(0,c.pluck)(o.formdataformat,r.xml().format),a.formTarget=(0,c.pluck)(o.formtarget,"_self"),a.formMethod=(0,c.pluck)(o.formmethod,"POST"),a.submitFormAsAjax=(0,c.pluckNumber)(o.submitformusingajax,1),a.viewMode=(0,c.pluckNumber)(o.viewmode,0),a.drawTrendRegion=0},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="dragnode",t.limitUpdaterEnabled=!1,t.skipClipping=!0,t.numVDivLines=0,t.numDivLines=0,t.setadaptivexmin=1,t.showLimits=0,t.showdivlinevalues=0,t.showzeroplane=0,t.showyaxisvalues=0,t.enablemousetracking=!0,t.showzeroplaneontop=0},a.addConfigureOptions=function(){var e,t,a=this,o=a.config,r=a.getFromEnv("toolbar"),n=r.getChild("hamburgerMenu-"+r.getId()+"-"+a.getId()+"-0"),l=[{name:"Add Node",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showNodeAddUI()},action:"click"},{name:"Add Connector",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showConnectorAddUI()},action:"click"},{name:"Add Label",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showLabelUpdateUI()},action:"click"}];o.showRestoreBtn&&(e={name:o.restoreBtnTitle,handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].restoreData()},action:"click"},l.push(e)),o.showFormBtn&&(t={name:o.submitBtnTitle,handler:function(){h.submitData.call(a)},action:"click"},l.push(t)),a.config.viewMode||n.appendInMenu(l)},a.getDSdef=function(e){switch(e){case"connector":return s.DragNodeConnector;case"dragnode":return s.DragNodeDataset;case"dragableLabels":return s.DragNodeLabels}},a.getDSGroupdef=function(){return s.DragNodeGroup},a._setCategories=function(){var e,t,a=this.getFromEnv("dataSource"),o=this.getChildren("xAxis"),r=a.categories&&a.categories[0].category||[],n=r.length,l=[];for(e=0;e<n;e++)undefined!==(t=r[e]||{}).x&&l.push(t);o&&o[0].setTickValues(l)},a.getJSONData=function(){var e,t=this.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0],a={};return t&&(a=t.getJSONData()),(e=(0,c.extend2)({},this.getFromEnv("dataSource"))).dataset=a.dataset,e.connectors=a.connectors,e.labels=a.labels,e},t}(i["default"]);t.configurer=r=f.prototype.configure;var m=f;t["default"]=m},1322:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=o(a(689)),i=o(a(1323)),s=function(e){function t(){var t;return(t=e.call(this)||this).showValues=0,t.isErrorChart=!0,t.eiMethods={},t}(0,r["default"])(t,e),t.getName=function(){return"ErrorBar2D"};var a=t.prototype;return a.getName=function(){return"ErrorBar2D"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="errorbar2d",t.enablemousetracking=!0},a.getDSGroupdef=function(){return l["default"]},a.getDSdef=function(){return i["default"]},t}(n["default"]);t["default"]=s},1326:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=a(740),i=o(a(1327)),s=function(e){function t(){var t;return(t=e.call(this)||this).useErrorGroup=!0,t.isErrorChart=!0,t.hasAnchor=!0,t.defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t.canvasPaddingModifiers=["anchor","errorbar"],t}(0,r["default"])(t,e),t.getName=function(){return"ErrorLine"};var a=t.prototype;return a.getName=function(){return"ErrorLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="errorline",l._setDefaultConfig.call(this),this.zeroplanethickness=1,this.zeroplanealpha=40,t.showzeroplaneontop=0,t.defaultcrosslinethickness=1,t.enablemousetracking=!0},a.getDSGroupdef=function(){},a.getDSdef=function(){return i["default"]},t}(n["default"]);t["default"]=s},1331:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(719)),l=o(a(1332)),i=function(e){function t(){var t;return(t=e.call(this)||this).isXY=!0,t.defaultZeroPlaneHighlighted=!1,t.useErrorGroup=!0,t.isErrorChart=!0,t.hasAnchor=!0,t.initAnimation=!0,t}(0,r["default"])(t,e),t.getName=function(){return"ErrorScatter"};var a=t.prototype;return a.getName=function(){return"ErrorScatter"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="errorscatter",t.enablemousetracking=!0},a.getDSGroupdef=function(){},a.getDSdef=function(){return l["default"]},t}(n["default"]);t["default"]=i},1439:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(626)),i=o(a(1440)),s=o(a(1442)),c=o(a(1443)),d=o(a(628)),u=o(a(1444)),h=o(a(1448)),p=a(274),g=o(a(421)),f=p.preDefStr.defaultFontStr,m=p.preDefStr.divLineAlpha3DStr,v=p.preDefStr.divLineAlphaStr,b=p.preDefStr.altVGridColorStr,x=p.preDefStr.altVGridAlphaStr,k=p.preDefStr.altHGridColorStr,y=p.preDefStr.altHGridAlphaStr,C=p.preDefStr.colors.c000000,w=function(e){return e.id!==r},A=function(e){function t(){var t;return(t=e.call(this)||this).tooltipsepchar=" = ",t.hasGradientLegend=!0,t.registerFactory("axis",c["default"],["canvas"]),t.registerFactory("legend",h["default"],["canvas"]),t.registerFactory("colormanager-decider",u["default"],["legend"]),t.registerFactory("dataset",d["default"],["colormanager-decider","vCanvas"]),t}(0,n["default"])(t,e),t.getName=function(){return"HeatMap"};var a=t.prototype;return a.getName=function(){return"HeatMap"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isSingleSeries=!0,t.hasLegend=!0,t.defaultDatasetType="heatmap",t.enablemousetracking=!0},a._checkInvalidSpecificData=function(){var e,t=this.getFromEnv("dataSource"),a=t.dataset,o=t.colorrange;if(a)for(var r=0;r<a.length;r++)if(a[r].data){e=a[r].data;break}if(!a||!e||0===e.length||!o||!o.color&&!Number(o.gradient))return!0},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},a.configureAttributes=function(e){var t,a,o=this,r=o.config,n=o.getFromEnv("dataSource"),l=o.config.skipConfigureIteration={},i=e.dataset,s=[];if(t=n.rows&&n.rows.row.filter(w),a=n.columns&&n.columns.column.filter(w),!t||!a){for(var c=0;c<i.length;c++)for(var d=0;d<i[c].data.length;d++)s.push(i[c].data[d]);t||(t=s.map((function(e){return(0,p.getFirstValue)(e.rowid)})).filter((function(e,t,a){return a.indexOf(e)===t}))),a||(a=s.map((function(e){return(0,p.getFirstValue)(e.columnid)})).filter((function(e,t,a){return a.indexOf(e)===t})))}o.parseChartAttr(e),o.addToEnv("chartColorRange",e.colorrange||{}),o.createComponent(e),o._feedAxesRawData(),l.axis=!0,o.addToEnv("totalRows",t.length),o.addToEnv("totalColumns",a.length),o.configureChildren(),o.asyncDraw(),o.getFromEnv("toolTipController").setStyle({backgroundColor:p.hasSVG?(0,p.convertColor)(r.tooltipbgcolor||"FFF",r.tooltipbgalpha||100):(r.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(r.tooltipcolor||r.basefontcolor||"545454").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:p.hasSVG?(0,p.convertColor)(r.tooltipbordercolor||"666",r.tooltipborderalpha||100):(r.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,p.pluckNumber)(r.tooltipborderthickness,1)+"px",showToolTipShadow:(0,p.pluckNumber)(r.showtooltipshadow||0),borderRadius:(0,p.pluckNumber)(r.tooltipborderradius,0)+"px",fontSize:(0,p.pluckNumber)(r.basefontsize,10)+"px",fontFamily:r.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,p.pluckNumber)(r.tooltippadding||3)+"px"})},a._postSpaceManagement=function(){var e=this,t=e.getChildren("xAxis")[0],a=e.getFromEnv("legend"),o=e.config.xDepth;e.setAxisDimention(),t&&t.shiftLabels(-o,0),a&&a.postSpaceManager(),e.allocateDimensionOfChartMenuBar()},a.setAxisDimention=function(){var e=this,t=e.getChildren("xAxis")&&e.getChildren("xAxis")[0],a=e.getChildren("yAxis")&&e.getChildren("yAxis")[0],o=e.getFromEnv("chartConfig"),r=e.getChildren("canvas")[0],n=r.config,l=r.getEffectiveDimensions(),i=l.left,s=l.top,c=l.width,d=l.height,u=l.paddingLeft,h=l.paddingRight,p=n&&n.canvasBorderWidth,g=n&&n.canvasPadding;t&&t.setAxisConfig({canvasPaddingLeft:Math.max(u,g),canvasPaddingRight:Math.max(h,g)}),t&&t.setAxisDimention({x:i,y:t.config.isOpposit?s+(o.shift||0)-p:s+d+(o.shift||0)+p,opposite:t.config.isOpposit?s+d+p:s-p,axisLength:c}),a&&a.setAxisDimention({x:a.config.isOpposit?i+c+p:i-p,y:s,opposite:a.config.isOpposit?i-p:i+c+p,axisLength:d})},a._feedAxesRawData=function(){var e,t,a=this,o=a.getFromEnv("color-manager"),n=a.getFromEnv("dataSource"),l=n.chart,i=a.config.is3D,s=i?p.chartPaletteStr.chart3D:p.chartPaletteStr.chart2D,c=(0,p.parseUnsafeString)(l.xaxisposition).toLowerCase(),d=(0,p.pluckFontSizeMaintainUnit)(l.outcnvbasefontsize,l.basefontsize,10);return e={mapTickValuesById:!0,isVertical:!1,isReverse:!1,isOpposit:(0,p.pluckNumber)("top"===c||r,"bottom"!==c&&r,!!a.config.placeAxisLabelsOnTop),outCanfontFamily:(0,p.pluck)(l.outcnvbasefont,l.basefont,f),outCanfontSize:this.computeFontSize(d),outCanfontSizeWithUnit:d,outCancolor:(0,p.pluck)(l.outcnvbasefontcolor,l.basefontcolor,o.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:l.xaxisnamepadding,axisValuePadding:(0,p.pluckNumber)(l.labelxpadding,l.labelpadding,4),axisNameFont:l.xaxisnamefont,axisNameFontSize:this.computeFontSize(l.xaxisnamefontsize),axisNameFontSizeWithUnit:l.xaxisnamefontsize,axisNameFontColor:l.xaxisnamefontcolor,axisNameFontBold:l.xaxisnamefontbold,axisNameFontItalic:l.xaxisnamefontitalic,axisNameBgColor:l.xaxisnamebgcolor,axisNameBorderColor:l.xaxisnamebordercolor,axisNameAlpha:l.xaxisnamealpha,axisNameFontAlpha:l.xaxisnamefontalpha,axisNameBgAlpha:l.xaxisnamebgalpha,axisNameBorderAlpha:l.xaxisnameborderalpha,axisNameBorderPadding:l.xaxisnameborderpadding,axisNameBorderRadius:l.xaxisnameborderradius,axisNameBorderThickness:l.xaxisnameborderthickness,axisNameBorderDashed:l.xaxisnameborderdashed,axisNameBorderDashLen:l.xaxisnameborderdashlen,axisNameBorderDashGap:l.xaxisnameborderdashgap,useEllipsesWhenOverflow:l.useellipseswhenoverflow,divLineColor:(0,p.pluck)(l.vdivlinecolor,l.divlinecolor,o.getColor(s.divLineColor)),divLineAlpha:(0,p.pluck)(l.vdivlinealpha,l.divlinealpha,i?o.getColor(m):o.getColor(v)),divLineThickness:(0,p.pluckNumber)(l.vdivlinethickness,l.divlinethickness,1),divLineIsDashed:Boolean((0,p.pluckNumber)(l.vdivlinedashed,l.vdivlineisdashed,l.divlinedashed,l.divlineisdashed,0)),divLineDashLen:(0,p.pluckNumber)(l.vdivlinedashlen,l.divlinedashlen,4),divLineDashGap:(0,p.pluckNumber)(l.vdivlinedashgap,l.divlinedashgap,2),showAlternateGridColor:(0,p.pluckNumber)(l.showalternatevgridcolor,0),alternateGridColor:(0,p.pluck)(l.alternatevgridcolor,o.getColor(b)),alternateGridAlpha:(0,p.pluck)(l.alternatevgridalpha,o.getColor(x)),numDivLines:l.numvdivlines,labelFont:l.labelfont,labelFontSize:this.computeFontSize(l.labelfontsize),labelFontSizeWithUnit:l.labelfontsize,labelFontColor:l.labelfontcolor,labelAlpha:l.labelalpha,labelFontBold:l.labelfontbold,labelFontItalic:l.labelfontitalic,labelBdrColor:l.labelbordercolor,labelBdrAlpha:l.labelborderalpha,labelLink:l.labellink,labelBgColor:l.labelbgcolor,labelBgAlpha:l.labelbgalpha,labelBdrThickness:l.labelborderthickness,labelBdrPadding:l.labelborderpadding,labelBdrRadius:l.labelborderradius,labelBdrDashed:l.labelborderdashed,labelBdrDashLen:l.labelborderdashlen,labelBdrDashGap:l.labelborderdashgap,axisName:l.xaxisname,axisMinValue:l.xaxisminvalue,axisMaxValue:l.xaxismaxvalue,setAdaptiveMin:l.setadaptivexmin,adjustDiv:l.adjustvdiv,labelDisplay:l.labeldisplay,showLabels:(0,p.pluckNumber)(l.showxaxislabels,l.showlabels),rotateLabels:l.rotatexaxislabels,slantLabel:(0,p.pluckNumber)(l.slantlabels,l.slantlabel),labelStep:(0,p.pluckNumber)(l.labelstep,l.xaxisvaluesstep),showAxisValues:(0,p.pluckNumber)(l.showxaxisvalues,l.showxaxisvalue),maxLabelHeight:l.maxlabelheight,showZeroPlane:l.showvzeroplane,zeroPlaneColor:l.vzeroplanecolor,zeroPlaneThickness:l.vzeroplanethickness,zeroPlaneAlpha:l.vzeroplanealpha,showZeroPlaneValue:l.showvzeroplanevalue,trendlineColor:l.trendlinecolor,trendlineToolText:l.trendlinetooltext,trendlineThickness:l.trendlinethickness,trendlineAlpha:l.trendlinealpha,showTrendlinesOnTop:l.showtrendlinesontop,showAxisLine:(0,p.pluckNumber)(l.showxaxisline,l.showaxislines,l.drawAxisLines,0),axisLineThickness:(0,p.pluckNumber)(l.xaxislinethickness,l.axislinethickness,1),axisLineAlpha:(0,p.pluckNumber)(l.xaxislinealpha,l.axislinealpha,100),axisLineColor:(0,p.pluck)(l.xaxislinecolor,l.axislinecolor,C)},t={mapTickValuesById:!0,isVertical:!0,isReverse:!1,isOpposit:(0,g["default"])(l.yaxisposition,"right"),outCanfontFamily:(0,p.pluck)(l.outcnvbasefont,l.basefont,f),outCanfontSize:this.computeFontSize(d),outCanfontSizeWithUnit:d,outCancolor:(0,p.pluck)(l.outcnvbasefontcolor,l.basefontcolor,o.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:l.yaxisnamepadding,axisValuePadding:(0,p.pluckNumber)(l.labelypadding,l.yaxisvaluespadding,4),axisNameFont:l.yaxisnamefont,axisNameFontSize:this.computeFontSize(l.yaxisnamefontsize),axisNameFontSizeWithUnit:l.yaxisnamefontsize,axisNameFontColor:l.yaxisnamefontcolor,axisNameFontBold:l.yaxisnamefontbold,axisNameFontItalic:l.yaxisnamefontitalic,axisNameBgColor:l.yaxisnamebgcolor,axisNameBorderColor:l.yaxisnamebordercolor,axisNameAlpha:l.yaxisnamealpha,axisNameFontAlpha:l.yaxisnamefontalpha,axisNameBgAlpha:l.yaxisnamebgalpha,axisNameBorderAlpha:l.yaxisnameborderalpha,axisNameBorderPadding:l.yaxisnameborderpadding,axisNameBorderRadius:l.yaxisnameborderradius,axisNameBorderThickness:l.yaxisnameborderthickness,axisNameBorderDashed:l.yaxisnameborderdashed,axisNameBorderDashLen:l.yaxisnameborderdashlen,axisNameBorderDashGap:l.yaxisnameborderdashgap,axisNameWidth:l.yaxisnamewidth,useEllipsesWhenOverflow:l.useellipseswhenoverflow,rotateAxisName:(0,p.pluckNumber)(l.rotateyaxisname,1),axisName:l.yaxisname,showAlternateGridColor:(0,p.pluckNumber)(l.showalternatehgridcolor,1),alternateGridColor:(0,p.pluck)(l.alternatehgridcolor,o.getColor(k)),alternateGridAlpha:(0,p.pluck)(l.alternatehgridalpha,o.getColor(y)),numDivLines:l.numdivlines,axisMinValue:l.yaxisminvalue,axisMaxValue:l.yaxismaxvalue,setAdaptiveMin:l.setadaptiveymin,adjustDiv:l.adjustdiv,labelStep:l.yaxisvaluesstep,showLabels:(0,p.pluckNumber)(l.showyaxislabels,l.showlabels),maxLabelWidthPercent:l.maxlabelwidthpercent,showAxisValues:(0,p.pluckNumber)(l.showyaxisvalues,l.showyaxisvalue),divLineColor:(0,p.pluck)(l.hdivlinecolor,o.getColor(s.divLineColor)),divLineAlpha:(0,p.pluck)(l.hdivlinealpha,o.getColor(v)),divLineThickness:(0,p.pluckNumber)(l.hdivlinethickness,1),divLineIsDashed:Boolean((0,p.pluckNumber)(l.hdivlinedashed,l.hdivlineisdashed,0)),divLineDashLen:(0,p.pluckNumber)(l.hdivlinedashlen,4),divLineDashGap:(0,p.pluckNumber)(l.hdivlinedashgap,2),showZeroPlane:l.showzeroplane,zeroPlaneColor:l.zeroplanecolor,zeroPlaneThickness:l.zeroplanethickness,zeroPlaneAlpha:l.zeroplanealpha,showZeroPlaneValue:l.showzeroplanevalue,trendlineColor:l.trendlinecolor,trendlineToolText:l.trendlinetooltext,trendlineThickness:l.trendlinethickness,trendlineAlpha:l.trendlinealpha,showTrendlinesOnTop:l.showtrendlinesontop,showAxisLine:(0,p.pluckNumber)(l.showyaxisline,l.showaxislines,l.drawAxisLines,0),axisLineThickness:(0,p.pluckNumber)(l.yaxislinethickness,l.axislinethickness,1),axisLineAlpha:(0,p.pluckNumber)(l.yaxislinealpha,l.axislinealpha,100),axisLineColor:(0,p.pluck)(l.yaxislinecolor,l.axislinecolor,C),labelFont:l.labelfont,labelFontSize:this.computeFontSize(l.labelfontsize),labelFontSizeWithUnit:l.labelfontsize,labelFontColor:l.labelfontcolor,labelAlpha:l.labelalpha,labelFontBold:l.labelfontbold,labelFontItalic:l.labelfontitalic,labelBdrColor:l.labelbordercolor,labelBdrAlpha:l.labelborderalpha,labelLink:l.labellink,labelBgColor:l.labelbgcolor,labelBgAlpha:l.labelbgalpha,labelBdrThickness:l.labelborderthickness,labelBdrPadding:l.labelborderpadding,labelBdrRadius:l.labelborderradius,labelBdrDashed:l.labelborderdashed,labelBdrDashLen:l.labelborderdashlen,labelBdrDashGap:l.labelborderdashgap},e.vtrendlines=n.vtrendlines,t.trendlines=n.trendlines,{yAxisConf:[t],xAxisConf:[e]}},a._setCategories=function(){var e,t,a,o,r,n,l,i,s,c,d,u,h=this,g=h.getFromEnv("dataSource"),f=h.getChildren("xAxis"),m=h.getChildren("yAxis"),v=[],b=[];if(!g.columns||!g.rows)for(g.columns={},g.columns.column=n=[],g.rows={},g.rows.row=l=[],a=0;a<(g.dataset&&g.dataset.length);a++)for(e=g.dataset&&g.dataset[a].data&&g.dataset[a].data.length,t=0;t<e;t++){for(i=(0,p.getFirstValue)(g.dataset[a].data[t].columnid),s=(0,p.getFirstValue)(g.dataset[a].data[t].rowid),c=!0,d=!0,u=0;u<n.length;u++)i===n[u].id&&(c=!1);for(c&&(o={id:i,label:i},g.columns.column.push(o)),u=0;u<l.length;u++)s===l[u].id&&(d=!1);d&&(r={id:s,label:s},g.rows.row.push(r))}for(n=g.columns.column,l=g.rows.row,t=0;t<(n&&n.length);t++)n[t].label=(0,p.pluck)(n[t].label,n[t].name,n[t].id),v.push(n[t]);for(g.columns.column=v,t=0;t<(l&&l.length);t++)l[t].label=(0,p.pluck)(l[t].label,l[t].name,l[t].id),b.push(l[t]);g.rows.row=b,g.columns&&f[0].setTickValues(g.columns.column),g.rows&&m[0].setTickValues(g.rows.row),f[0].setAxisConfig({categoryNumDivLines:h.getFromEnv("totalColumns")-1,categoryDivLinesFromZero:0,showAlternateGridColor:0}),m[0].setAxisConfig({categoryNumDivLines:h.getFromEnv("totalRows")-1,categoryDivLinesFromZero:0,showAlternateGridColor:0})},a.getDSdef=function(){return i["default"]},a.getDSGroupdef=function(){return s["default"]},t}(l["default"]);t["default"]=A},1336:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=o(a(617)),i=a(740),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"InverseMSArea"};var a=t.prototype;return a.getName=function(){return"InverseMSArea"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="area",t.isInverse=!0,t.zeroplanethickness=2,t.zeroplanealpha=80,t.showzeroplaneontop=1,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,i._setDefaultConfig.call(this)},a.getDSdef=function(){return l["default"]},a.getDSGroupdef=function(){},t}(n["default"]),c=s;t["default"]=c},1338:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=o(a(595)),i=o(a(689)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"InverseMSColumn2d"};var a=t.prototype;return a.getName=function(){return"InverseMSColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="column",t.isInverse=!0,t.enablemousetracking=!0},a.getDSdef=function(){return l["default"]},a.getDSGroupdef=function(){return i["default"]},t}(n["default"]),c=s;t["default"]=c},1340:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=o(a(616)),i=a(740),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"InverseMSLine"};var a=t.prototype;return a.getName=function(){return"InverseMSLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="line",t.isInverse=!0,t.zeroplanethickness=1,t.zeroplanealpha=4,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,i._setDefaultConfig.call(this)},a.getDSdef=function(){return l["default"]},a.getDSGroupdef=function(){},t}(n["default"]);t["default"]=s},1361:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(1362)),i=o(a(1365)),s=a(274),c="100",d=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e),t.getName=function(){return"Kagi"};var a=t.prototype;return a.getName=function(){return"Kagi"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="kagi",t.setAdaptiveMin=!0,t.anchorborderthickness=1,t.anchorimageurl=r,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=r,t.anchorbgalpha=c,t.anchorimagealpha=c,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=r,t.anchorbordercolor=r,t.anchorradius=3,t.showvalues=1,t.plotfillalpha="70",t.linedashlen=5,t.linedashgap=4,t.linedashed=r,t.linealpha=c,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.zeroplanethickness=1,t.enablemousetracking=!0,t.zeroplanealpha=40,t.showzeroplaneontop=0},a._getDataset=function(){var e=[];return this.iterateComponents((function(t){t.getType&&"dataset"===t.getType()&&e.push(t)})),e},a._postSpaceManagement=function(){var e,t=this,a=t.config,o=t.getChildren("xAxis")[0],r=t.getChildren("yAxis")[0],n=t.getChildren("canvas")[0],l=n.config,i=l.canvasBorderWidth,c=(0,s.pluckNumber)(l.canvasPadding,15),d=l.canvasPaddingTop,u=l.canvasPaddingBottom,h=l.canvasPaddingLeft,p=l.canvasPaddingRight,g=t.getFromEnv("dataSource").chart,f=t._getDataset()[0].config,m=f&&f.shiftCount,v=(0,s.pluckNumber)(o.getAxisConfig("axisMinValue"),0),b=(0,s.pluckNumber)(o.getAxisConfig("axisMaxValue"),m-1),x=(0,s.pluckNumber)(g.maxhshiftpercent,10),k=t.config.canvasWidth-2*c,y=a.shift||0;r&&r.setAxisDimention({x:r.config.isOpposit?a.canvasRight+i:a.canvasLeft-i,y:a.canvasTop+d,opposite:r.config.isOpposit?a.canvasLeft-i:a.canvasRight+i,axisLength:a.canvasHeight-d-u}),t._setPosition(),f&&(x=x<=0?10:x,e=f.xShiftLength=Math.min(k/m,x*k/100),b=Math.max(b,1)),n.setCanvasPadding(),o&&o.setAxisConfig({canvasPaddingLeft:Math.max(h,c)+e/2,canvasPaddingRight:Math.max(p,c)+e/2}),o&&o.setAxisDimention({x:t.config.canvasLeft+c+e/2,axisLength:e*(b-v),y:o.config.isOpposit?a.canvasTop-i:a.canvasBottom+y+i,opposite:o.config.isOpposit?a.canvasBottom+y+i:a.canvasTop-i}),t.allocateDimensionOfChartMenuBar()},a._setPosition=function(){var e,t,a,o,r,n,l,i,c=this,d=c.getFromEnv("dataSource"),u=c._getDataset()[0],h=d.data||u&&u[0]&&u[0].data,p=u.components.data,g=p&&p.length,f=c.getChildren("yAxis")[0],m=0,v=m,b=[];for(e=0;e<g;e++)a=(t=p[e].config).setValue,(d=p[e])||(d=p[e]={graphics:{}}),t.isDefined||(a=t.plotValue),a=(0,s.pluck)(t.plotValue,a),t.plotY=(0,s.toPrecision)(f.getPixel(t.setValue),2),t.graphY=a&&(0,s.toPrecision)(f.getPixel(a),2),t.plotX=v,t.isShift?(v=m+=1,h&&b.push(h[e])):e===g-1&&h&&b.push(h[e]),e&&(i=p[e-1].config,o=t&&t.objParams&&t.objParams.isRally,r=t&&t.objParams&&t.objParams.lastHigh,n=t&&t.objParams&&t.objParams.lastLow,l=t&&t.objParams&&t.objParams.isRallyInitialised,i&&l&&i.isRally!==t.isRally?(t.isChanged=!0,t.ty=(0,s.toPrecision)(f.getPixel(o?r:n),2)):t.isChanged=!1)},a.getDSdef=function(){return i["default"]},t}(l["default"]),u=d;t["default"]=u},1313:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1314)),l=o(a(689)),i=o(a(595)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"LogMSColumn2d"};var a=t.prototype;return a.getName=function(){return"LogMSColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="column",t.enablemousetracking=!0},a.getDSGroupdef=function(){return l["default"]},a.getDSdef=function(){return i["default"]},t}(n["default"]),c=s;t["default"]=c},1318:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1314)),l=o(a(616)),i=a(740),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"LogMSLine"};var a=t.prototype;return a.getName=function(){return"LogMSLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="line",t.zeroplanethickness=1,t.enablemousetracking=!0,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,i._setDefaultConfig.call(this)},a.getDSGroupdef=function(){},a.getDSdef=function(){return l["default"]},t}(n["default"]);t["default"]=s},1320:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1313)),l=o(a(698)),i=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"LogStackedColumn2d"};var a=t.prototype;return a.getName=function(){return"LogStackedColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isstacked=!0},a.getDSGroupdef=function(){return l["default"]},t}(n["default"]),s=i;t["default"]=s},1391:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(626)),l=a(740),i=o(a(1392)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"MSStepLine"};var a=t.prototype;return a.getName=function(){return"MSStepLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="msstepline",t.drawverticaljoins=1,t.useforwardsteps=1,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,l._setDefaultConfig.call(this)},a.getDSGroupdef=function(){},a.getDSdef=function(){return i["default"]},t}(n["default"]);t["default"]=s},1383:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),n=o(a(288)),l=o(a(740)),i=o(a(1384)),s=o(a(1386)),c=o(a(1387)),d=a(282),u=o(a(442)),h=a(274),p=o(a(421)),g=h.preDefStr.defaultFontStr,f=h.preDefStr.divLineAlphaStr,m=h.preDefStr.altVGridColorStr,v=h.preDefStr.altVGridAlphaStr,b=h.preDefStr.colors.c000000,x=h.preDefStr.POSITION_BOTTOM,k=h.preDefStr.divLineAlpha3DStr,y=(0,d.getDep)("redraphael","plugin");(0,u["default"])(y);var C=function(e){function t(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return a.defaultPlotShadow=1,a.axisPaddingLeft=0,a.axisPaddingRight=0,t.registerFactory("axis",i["default"],["canvas"]),t.registerFactory("vCanvas",s["default"],["axis"]),t.registerFactory("dataset",c["default"],["vCanvas"]),t}(0,n["default"])(t,e),t.getName=function(){return"MultiAxisLine"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="multiaxisline",t.defaultcrosslinethickness=1},a.getName=function(){return"MultiAxisLine"},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource");if(!e.axis||!e.categories)return!0},a._feedAxesRawData=function(){var e,t,a,o,r,n,l,i,s,c,d,u,x,y,C,w,A=this,S=A.config,N=A.getFromEnv("color-manager"),L=A.getFromEnv("number-formatter"),D=A.getFromEnv("dataSource"),E=D.chart,T=A.config.is3D,F=T?h.chartPaletteStr.chart3D:h.chartPaletteStr.chart2D,P=(0,h.pluckFontSizeMaintainUnit)(E.outcnvbasefontsize,E.basefontsize,10),_=[],V={},I=[];for(e={isVertical:!1,isReverse:!1,isOpposit:(0,p["default"])(E.xaxisposition,"top"),outCanfontFamily:(0,h.pluck)(E.outcnvbasefont,E.basefont,g),outCanfontSize:this.computeFontSize(P),outCanfontSizeWithUnit:P,outCancolor:(0,h.pluck)(E.outcnvbasefontcolor,E.basefontcolor,N.getColor(F.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:E.xaxisnamepadding,axisValuePadding:E.labelpadding,axisNameFont:E.xaxisnamefont,axisNameFontSize:this.computeFontSize(E.xaxisnamefontsize),axisNameFontSizeWithUnit:E.xaxisnamefontsize,axisNameFontColor:E.xaxisnamefontcolor,axisNameFontBold:E.xaxisnamefontbold,axisNameFontItalic:E.xaxisnamefontitalic,axisNameBgColor:E.xaxisnamebgcolor,axisNameBorderColor:E.xaxisnamebordercolor,axisNameAlpha:E.xaxisnamealpha,axisNameFontAlpha:E.xaxisnamefontalpha,axisNameBgAlpha:E.xaxisnamebgalpha,axisNameBorderAlpha:E.xaxisnameborderalpha,axisNameBorderPadding:E.xaxisnameborderpadding,axisNameBorderRadius:E.xaxisnameborderradius,axisNameBorderThickness:E.xaxisnameborderthickness,axisNameBorderDashed:E.xaxisnameborderdashed,axisNameBorderDashLen:E.xaxisnameborderdashlen,axisNameBorderDashGap:E.xaxisnameborderdashgap,useEllipsesWhenOverflow:E.useellipseswhenoverflow,divLineColor:(0,h.pluck)(E.vdivlinecolor,E.divlinecolor,N.getColor(F.divLineColor)),divLineAlpha:(0,h.pluck)(E.vdivlinealpha,E.divlinealpha,T?N.getColor(k):N.getColor(f)),divLineThickness:(0,h.pluckNumber)(E.vdivlinethickness,E.divlinethickness,1),divLineIsDashed:Boolean((0,h.pluckNumber)(E.vdivlinedashed,E.vdivlineisdashed,E.divlinedashed,E.divlineisdashed,0)),divLineDashLen:(0,h.pluckNumber)(E.vdivlinedashlen,E.divlinedashlen,4),divLineDashGap:(0,h.pluckNumber)(E.vdivlinedashgap,E.divlinedashgap,2),showAlternateGridColor:(0,h.pluckNumber)(E.showalternatevgridcolor,0),alternateGridColor:(0,h.pluck)(E.alternatevgridcolor,N.getColor(m)),alternateGridAlpha:(0,h.pluck)(E.alternatevgridalpha,N.getColor(v)),numDivLines:E.numvdivlines,labelFont:E.labelfont,labelFontSize:this.computeFontSize(E.labelfontsize),labelFontSizeWithUnit:E.labelfontsize,labelFontColor:E.labelfontcolor,labelAlpha:E.labelalpha,labelFontBold:E.labelfontbold,labelFontItalic:E.labelfontitalic,labelBdrColor:E.labelbordercolor,labelBdrAlpha:E.labelborderalpha,labelLink:E.labellink,labelBgColor:E.labelbgcolor,labelBgAlpha:E.labelbgalpha,labelBdrThickness:E.labelborderthickness,labelBdrPadding:E.labelborderpadding,labelBdrRadius:E.labelborderradius,labelBdrDashed:E.labelborderdashed,labelBdrDashLen:E.labelborderdashlen,labelBdrDashGap:E.labelborderdashgap,maxLabelHeight:E.maxlabelheight,axisName:E.xaxisname,axisMinValue:E.xaxisminvalue,axisMaxValue:E.xaxismaxvalue,setAdaptiveMin:E.setadaptivexmin,adjustDiv:E.adjustvdiv,labelDisplay:E.labeldisplay,showLabels:E.showlabels,rotateLabels:E.rotatelabels,slantLabel:(0,h.pluckNumber)(E.slantlabels,E.slantlabel),labelStep:(0,h.pluckNumber)(E.labelstep,E.xaxisvaluesstep),showAxisValues:(0,h.pluckNumber)(E.showxaxisvalues,E.showxaxisvalue),showLimits:E.showvlimits,showDivLineValues:(0,h.pluckNumber)(E.showvdivlinevalues,E.showvdivlinevalues),showZeroPlane:E.showvzeroplane,zeroPlaneColor:E.vzeroplanecolor,zeroPlaneThickness:E.vzeroplanethickness,zeroPlaneAlpha:E.vzeroplanealpha,showZeroPlaneValue:E.showvzeroplanevalue,trendlineColor:E.trendlinecolor,trendlineToolText:E.trendlinetooltext,trendlineThickness:E.trendlinethickness,trendlineAlpha:E.trendlinealpha,showTrendlinesOnTop:E.showtrendlinesontop,showAxisLine:(0,h.pluckNumber)(E.showxaxisline,E.showaxislines,E.drawAxisLines,0),axisLineThickness:(0,h.pluckNumber)(E.xaxislinethickness,E.axislinethickness,1),axisLineAlpha:(0,h.pluckNumber)(E.xaxislinealpha,E.axislinealpha,100),axisLineColor:(0,h.pluck)(E.xaxislinecolor,E.axislinecolor,b)},I.push(e),t={outCanfontFamily:(0,h.pluck)(E.outcnvbasefont,E.basefont,g),outCanfontSize:this.computeFontSize(P),outCanfontSizeWithUnit:P,outCancolor:(0,h.pluck)(E.outcnvbasefontcolor,E.basefontcolor,N.getColor(F.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:E.useellipseswhenoverflow,showAlternateGridColor:0,axisNameFont:E.yaxisnamefont,axisNameFontSize:this.computeFontSize(E.yaxisnamefontsize),axisNameFontSizeWithUnit:E.yaxisnamefontsize,axisNameFontColor:E.yaxisnamefontcolor,axisNameFontBold:E.yaxisnamefontbold,axisNameFontItalic:E.yaxisnamefontitalic,axisNameBgColor:E.yaxisnamebgcolor,axisNameBorderColor:E.yaxisnamebordercolor,axisNameAlpha:E.yaxisnamealpha,axisNameFontAlpha:E.yaxisnamefontalpha,axisNameBgAlpha:E.yaxisnamebgalpha,axisNameBorderAlpha:E.yaxisnameborderalpha,axisNameBorderPadding:E.yaxisnameborderpadding,axisNameBorderRadius:E.yaxisnameborderradius,axisNameBorderThickness:E.yaxisnameborderthickness,axisNameBorderDashed:E.yaxisnameborderdashed,axisNameBorderDashLen:E.yaxisnameborderdashlen,axisNameBorderDashGap:E.yaxisnameborderdashgap,labelFont:E.yaxisvaluefont,labelFontSize:this.computeFontSize(E.yaxisvaluefontsize),labelFontSizeWithUnit:E.yaxisvaluefontsize,labelFontColor:E.yaxisvaluefontcolor,labelAlpha:E.yaxisvaluealpha,labelFontBold:E.yaxisvaluefontbold,labelFontItalic:E.yaxisvaluefontitalic,labelBdrColor:E.yaxisvaluebordercolor,labelBdrAlpha:E.yaxisvalueborderalpha,labelLink:E.yaxisvaluelink,labelBgColor:E.yaxisvaluebgcolor,labelBgAlpha:E.yaxisvaluebgalpha,labelBdrThickness:E.yaxisvalueborderthickness,labelBdrPadding:E.yaxisvalueborderpadding,labelBdrRadius:E.yaxisvalueborderradius,labelBdrDashed:E.yaxisvalueborderdashed,labelBdrDashLen:E.yaxisvalueborderdashlen,labelBdrDashGap:E.yaxisvalueborderdashgap},s={side:"l",axesConf:[]},c={side:"r",axesConf:[]},o=0,r=(a=D.axis||[]).length;o<r;o++){for(V={},l=a[o],V.checkBoxChecked=!1,C=0,w=l.dataset?l.dataset.length:0;C<w;C+=1)0!==Number(l.dataset[C].visible)&&(V.checkBoxChecked=!0);i=N.getPlotColor(o),d=(0,h.pluck)(l.color,E.axiscolor,i),u=(0,h.pluckNumber)(l.divlinethickness,E.divlinethickness,1),x=(0,h.pluckNumber)(l.tickwidth,E.axistickwidth,2),y=(0,h.pluckNumber)(l.axislinethickness,E.axislinethickness,2),n=!(0,h.pluckNumber)(l.axisonleft,1),t.isVertical=!0,t.isReverse=!0,t.isOpposit=n,t.labelStep=(0,h.pluckNumber)(l.yaxisvaluesstep,l.yaxisvaluestep,E.yaxisvaluesstep,E.yaxisvaluestep),t.axisMaxValue=l.maxvalue,t.axisMinValue=l.minvalue,t.setAdaptiveMin=(0,h.pluckNumber)(l.setadaptiveymin,E.setadaptiveymin),t.numDivLines=(0,h.pluckNumber)(l.numdivlines,E.numdivlines,4),t.adjustDiv=(0,h.pluckNumber)(l.adjustdiv,E.adjustdiv),t.showAxisValues=(0,h.pluckNumber)(l.showyaxisvalues,l.showyaxisvalue,E.showyaxisvalues,E.showyaxisvalue,1),t.showLimits=(0,h.pluckNumber)(l.showlimits,E.showyaxislimits,E.showlimits,t.showAxisValues),t.showDivLineValues=(0,h.pluckNumber)(l.showdivlinevalue,E.showdivlinevalues,l.showdivlinevalues,t.showAxisValues),t.showZeroPlane=(0,h.pluckNumber)(l.showzeroplane,E.showzeroplane),t.showZeroPlaneValue=(0,h.pluckNumber)(l.showzeroplanevalue,E.showzeroplanevalue),t.zeroPlaneColor=l.zeroplanecolor,t.zeroPlaneThickness=(0,h.pluckNumber)(l.zeroplanethickness,l.divlinethickness,S.zeroplanethickness,2),t.zeroPlaneAlpha=(0,h.pluckNumber)(l.zeroplanealpha,l.divlinealpha,S.zeroplanealpha),t.showZeroPlaneOnTop=S.showzeroplaneontop,t.divLineColor=(0,h.pluck)(l.divlinecolor,d),t.divLineAlpha=(0,h.pluckNumber)(l.divlinealpha,E.divlinealpha,N.getColor(f),100),t.divLineThickness=u,t.divLineIsDashed=Boolean((0,h.pluckNumber)(l.divlinedashed,l.divlineisdashed,E.divlinedashed,E.divlineisdashed,0)),t.divLineDashLen=(0,h.pluckNumber)(l.divlinedashlen,E.divlinedashlen,4),t.divLineDashGap=(0,h.pluckNumber)(l.divlinedashgap,E.divlinedashgap,2),t.showAxisLine=1,t.axisLineThickness=y,t.axisLineAlpha=100,t.axisLineColor=d,t.tickLength=x,t.tickColor=d,t.tickAlpha=100,t.tickWidth=y,t.axisName=l.title,t.rotateAxisName=1,t.axisNameAlignCanvas=!0,t.drawAxisNameFromBottom=!0,(0,h.extend2)(V,t),L.parseMLAxisConf(l,o),0===(0,h.pluckNumber)(l.showaxis)?(0,h.extend2)(V,{axisIndex:o,drawAxisLineWRTCanvas:!1,drawLabels:!1,drawPlotlines:!1,drawAxisLine:!1,drawPlotBands:!1,drawAxisName:!1,drawTrendLines:!1,drawTrendLabels:!1,drawTick:!1,drawTickMinor:!1,showAxis:0}):(0,h.extend2)(V,{axisIndex:o,drawAxisLineWRTCanvas:!1,drawLabels:!0,drawPlotlines:!0,drawAxisLine:!0,drawPlotBands:!0,drawAxisName:!0,drawTrendLines:!0,drawTrendLabels:!0,drawTick:!0,drawTickMinor:!0,showAxis:1}),n?c.axesConf.push(V):s.axesConf.push(V)}return s.axesConf.length&&_.push(s),c.axesConf.length&&_.push(c),{xAxisConfigure:I,yAxisConfigure:_}},a._postSpaceManagement=function(){var e=this,t=e.getFromEnv("legend"),a=t&&t.config&&t.config.legendPos?t.config.legendPos.split("-"):[];e.setAxisDimention(),a[0]===h.POSITION_LEFT?e._allocateSpace({left:5}):a[0]===h.POSITION_RIGHT&&e._allocateSpace({right:5}),e.getChildren("yAxisSelectorUI").forEach((function(e){e.setAxisDimention()})),e.getChildren("canvas")[0].setCanvasPadding(),e.setAxisDimention(),e.config.showLegend&&t.postSpaceManager(),e.allocateDimensionOfChartMenuBar()},a.setAxisDimention=function(){var e=this,t=e.config,a=e.getChildren("xAxis")[0],o=t.xDepth||0,r=e.getChildren("canvas")[0].config,n=r.canvasBorderWidth,l=r.canvasPadding,i=r.canvasPaddingLeft,s=t.shift||0,c=r.canvasPaddingRight;a&&a.setAxisDimention({x:t.canvasLeft+o+Math.max(i,l),y:a.config.isOpposit?t.canvasTop-n:t.canvasBottom+s+n,opposite:a.config.isOpposit?t.canvasBottom+s+n:t.canvasTop-n,axisLength:t.canvasWidth-o-Math.max(i,l)-Math.max(c,l)})},a._spaceManager=function(){var e,t,a,o,r,n,l,i,s,c,d=this,u=d.getChildren("canvas")[0],p=d.config,g=p.legendPosition?p.legendPosition.split("-"):[],f=d.getChildren("xAxis"),m=d.getChildren("yAxisSelectorUI"),v=p.yDepth,b=d.getFromEnv("legend"),k=0,y=0,C=m.length||0,w=d.getFromEnv("dataSource").chart,A=(0,h.pluckNumber)(w.showborder,d.config.is3D?0:1),S=u.config.canvasBorderWidth,N=p.borderWidth=A?(0,h.pluckNumber)(w.borderthickness,1):0,L=p.canvasMarginTop,D=p.canvasMarginBottom,E=p.canvasMarginLeft,T=p.canvasMarginRight,F=(p.minCanvasHeight,p.minCanvasWidth,p.height),P=p.width;p.origCanvasTopMargin,p.origCanvasBottomMargin,p.origCanvasLeftMargin,p.origCanvasRightMargin;for(d._allocateSpace({top:N,bottom:N,left:N,right:N}),d._allocateSpace({left:p.canvasMarginLeft,right:p.canvasMarginRight}),n="left"===g[0]||"right"===g[0]?.3*p.canvasWidth:.3*p.canvasHeight,!1!==p.hasLegend&&f&&p.showLegend&&d._allocateSpace(b._manageLegendPosition(n)),o=0;o<C;o++)k+=(r=m[o].placeAxis(p.canvasWidth)).rightPadding,y+=r.leftPadding,d._allocateSpace(r.dimension);e=.225*p.availableHeight,t=d._manageActionBarSpace&&d._manageActionBarSpace(e)||{},d._allocateSpace(t),a=g[0]===h.POSITION_TOP||g[0]===x?.6*p.canvasHeight:.6*p.canvasWidth,d._manageChartMenuBar(a),.7*p.canvasWidth>k+y&&d._allocateSpace({left:y,right:k}),a=.6*p.canvasHeight,f[0]&&d._allocateSpace(f[0].placeAxis(a)),a=.325*p.canvasHeight,d._getDSspace&&d._allocateSpace(d._getDSspace(a)),v&&d._allocateSpace({bottom:v}),d._allocateSpace({top:S,bottom:S,left:S,right:S}),l=L>p.canvasTop?L-p.canvasTop:0,i=D>F-p.canvasBottom?D+p.canvasBottom-F:0,s=E>p.canvasLeft?E-p.canvasLeft:0,c=T>P-p.canvasRight?T+p.canvasRight-P:0,d._allocateSpace({top:l,bottom:i,left:s,right:c}),p.actualCanvasMarginTop=l,p.actualCanvasMarginLeft=s,p.actualCanvasMarginRight=c,p.actualCanvasMarginBottom=i,u.setDimension({top:p.canvasTop,left:p.canvasLeft,width:p.canvasWidth,height:p.canvasHeight})},a.configure=function(t){e.prototype.configure.call(this,t);var a=this.config,o=this.getFromEnv("dataSource").chart;a.axesPadding=5,a.allowAxisShift=(0,h.pluckNumber)(o.allowaxisshift,1),a.allowSelection=(0,h.pluckNumber)(o.allowselection,1),a.checkBoxColor=(0,h.pluck)(o.checkboxcolor,"#2196f3"),a.axisConfigured=!0},t}(l["default"]);t["default"]=C},1373:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(520)),l=o(a(1374)),i=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions=null,t.registerFactory("dataset",l["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MultilevelPie"};var a=t.prototype;return a.getName=function(){return"MultilevelPie"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!1,t.hasLegend=!1,t.defaultDatasetType="multiLevelPie",t.valuefontbold=0,t.skipCanvasDrawing=!0},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").category;if(!e||!e[0]||!Array.isArray(e))return!0},a._spaceManager=function(){var e,t=this,a=t.config;t._allocateSpace(t._manageActionBarSpace&&t._manageActionBarSpace(.225*a.availableHeight)||{}),e=.7*a.canvasHeight,t._manageChartMenuBar(e),t.allocateDimensionOfChartMenuBar()},t}(n["default"]);t["default"]=i},1451:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(739)),l=o(a(1452)),i=o(a(1455)),s=o(a(1459)),c=a(274),d=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("canvas",s["default"]),t.registerFactory("axis",i["default"],["canvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(t){this.config.drawfullareaborder=1,this.config.radarRadius=(0,c.pluckNumber)(t.chart.radarradius),e.prototype.configureAttributes.call(this,t),this.config.alignLegendWithCanvas=0},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.axisType="polar",t.axisValuePadding=10,t.gridLineWidth=1,t.showRadarBorder=1,t.showvalues=0,t.radarBorderThickness=2,t.skipCanvasDrawing=!0,t.useplotgradientcolor=0,t.plotfillalpha=50},a.setAxisDimention=function(){this.getChildren("yAxis")},a._feedAxesRawData=function(){var e,t,a=this,o=a.getFromEnv("dataSource");return e=a.getSpecificxAxisConf(),t=a.getSpecificyAxisConf(),e.vtrendlines=o.vtrendlines,t.trendlines=o.trendlines,{xAxisConf:[e],yAxisConf:[t]}},a.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.getBasexAxisConf();return t.isReverse=this.config.reverseXAxis,t.axisLineColor=(0,c.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),t.showAlternateGridColor=(0,c.pluckNumber)(e.showalternatevgridcolor,1),t.numDivLines=e.numvdivlines,t.axisName=e.xaxisname,t.setAdaptiveMin=e.setadaptivexmin,t.showLimits=e.showvlimits,t.showDivLineValues=(0,c.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues),t.zeroPlaneThickness=e.vzeroplanethickness,t.zeroPlaneAlpha=e.vzeroplanealpha,t.showZeroPlaneValue=e.showvzeroplanevalue,t.showAxisLine=(0,c.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,0),t.showRadarBorder=e.showradarborder,t.radarBorderColor=e.radarbordercolor,t.radarBorderThickness=e.radarborderthickness,t.radarBorderAlpha=e.radarborderalpha,t.radarFillColor=e.radarfillcolor,t.radarFillAlpha=e.radarfillalpha,t.radarSpikeColor=e.radarspikecolor,t.radarSpikeThickness=e.radarspikethickness,t.radarSpikeAlpha=e.radarspikealpha,t.radarInLineAlpha=e.radarinlinealpha,t.showTooltip=(0,c.pluckNumber)(e.showtooltip,1),t},a.getSpecificyAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),a=e.config,o=a.is3D?c.chartPaletteStr.chart3D:c.chartPaletteStr.chart2D,r=e.getFromEnv("color-manager"),n=(0,c.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,t.basefontsize,10);return{isVertical:!0,isReverse:!a.isInverse,isOpposit:!1,outCanfontFamily:(0,c.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(n),outCanfontSizeWithUnit:n,outCancolor:(0,c.pluck)(t.outcnvbasefontcolor,t.basefontcolor,r.getColor(o.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:t.yaxisnamepadding,axisValuePadding:t.yaxisvaluespadding,axisNameFont:t.yaxisnamefont,axisNameFontSize:this.computeFontSize(t.yaxisnamefontsize),axisNameFontSizeWithUnit:t.yaxisnamefontsize,axisNameFontColor:t.yaxisnamefontcolor,axisNameFontBold:t.yaxisnamefontbold,axisNameFontItalic:t.yaxisnamefontitalic,axisNameBgColor:t.yaxisnamebgcolor,axisNameBorderColor:t.yaxisnamebordercolor,axisNameAlpha:t.yaxisnamealpha,axisNameFontAlpha:t.yaxisnamefontalpha,axisNameBgAlpha:t.yaxisnamebgalpha,axisNameBorderAlpha:t.yaxisnameborderalpha,axisNameBorderPadding:t.yaxisnameborderpadding,axisNameBorderRadius:t.yaxisnameborderradius,axisNameBorderThickness:t.yaxisnameborderthickness,axisNameBorderDashed:t.yaxisnameborderdashed,axisNameBorderDashLen:t.yaxisnameborderdashlen,axisNameBorderDashGap:t.yaxisnameborderdashgap,axisNameWidth:t.yaxisnamewidth,useEllipsesWhenOverflow:t.useellipseswhenoverflow,rotateAxisName:(0,c.pluckNumber)(t.rotateyaxisname,1),divLineColor:(0,c.pluck)(t.divlinecolor,r.getColor(o.divLineColor)),divLineAlpha:(0,c.pluck)(t.divlinealpha,r.getColor("divLineAlpha")),divLineThickness:(0,c.pluckNumber)(t.divlinethickness,1),divLineIsDashed:Boolean((0,c.pluckNumber)(t.divlinedashed,t.divlineisdashed,0)),divLineDashLen:(0,c.pluckNumber)(t.divlinedashlen,4),divLineDashGap:(0,c.pluckNumber)(t.divlinedashgap,2),showAlternateGridColor:(0,c.pluckNumber)(t.showalternatehgridcolor,1),alternateGridColor:(0,c.pluck)(t.alternatehgridcolor,r.getColor("altHGridColor")),alternateGridAlpha:(0,c.pluck)(t.alternatehgridalpha,r.getColor("altHGridAlpha")),numDivLines:t.numdivlines,axisMinValue:t.yaxisminvalue,axisMaxValue:t.yaxismaxvalue,setAdaptiveMin:t.setadaptiveymin,adjustDiv:t.adjustvdiv,labelStep:t.yaxisvaluesstep,showAxisValues:(0,c.pluckNumber)(t.showyaxisvalues,t.showyaxisvalue),showLimits:(0,c.pluckNumber)(t.showyaxislimits,t.showlimits,e.showLimits),showDivLineValues:(0,c.pluckNumber)(t.showdivlinevalues,t.showdivlinevalue),zeroPlaneColor:t.zeroplanecolor,zeroPlaneThickness:(0,c.pluckNumber)(t.zeroplanethickness,t.divlinethickness,2),zeroPlaneAlpha:t.zeroplanealpha,showZeroPlaneValue:t.showzeroplanevalue,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,axisLineThickness:(0,c.pluckNumber)(t.yaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,c.pluckNumber)(t.yaxislinealpha,t.axislinealpha,100),axisLineColor:(0,c.pluck)(t.yaxislinecolor,t.axislinecolor,"#000000"),showTooltip:(0,c.pluckNumber)(t.showtooltip,1)}},a._spaceManager=function(){var e,t,a,o,r,n,l,i,s=this,d=s.config,u=s.getFromEnv("chart-attrib"),h=d.radarBorderThickness,p=d.legendPosition?d.legendposition.split("-"):[],g=s.getChildren("xAxis")&&s.getChildren("xAxis")[0],f=(s.getChildren("yAxis")&&s.getChildren("yAxis")||[])[0],m=s.getChildren("legend")&&s.getChildren("legend")[0],v=c.preDefStr.POSITION_BOTTOM,b=Math,x=b.min,k=b.max,y=b.abs;d.radarRadius=(0,c.pluckNumber)(u.radarradius),d.radarRadius!==c.UNDEF?(d.radarRadius=d.radarRadius>x(d.canvasHeight,d.canvasWidth)/2?x(d.canvasHeight,d.canvasWidth)/2:d.radarRadius,d.availableHeight=o=d.canvasHeight-2*d.radarRadius,d.availableWidth=a=d.canvasWidth-2*d.radarRadius):(d.availableHeight=o=.7*d.canvasHeight,d.availableWidth=a=.7*d.canvasWidth),p[0]===c.POSITION_TOP||p[0],r=p[0]===c.POSITION_TOP||p[0]===v?o:a,!1!==d.hasLegend&&g&&d.showLegend&&((l=m._manageLegendPosition(r)).bottom=x(k(l.bottom,0),r),l.right=x(k(l.right,0),r),l.top=x(k(l.top,0),r),l.left=x(k(l.left,0),r),s._allocateSpace(l)),g&&(l=g.placeAxis(d.availableWidth,d.availableHeight),s._allocateSpace(l)),f&&(l=f.placeAxis(d.canvasWidth)),l=s._manageChartMenuBar(d.availableHeight),e=.225*d.availableHeight,t=s._manageActionBarSpace&&(s._manageActionBarSpace(e)||{}),s._allocateSpace(t),i=d.radarRadius>0?2*d.radarRadius:x(d.canvasHeight,d.canvasWidth),d.canvasHeight>i&&(n=y((d.canvasHeight-i)/2),s._allocateSpace({top:n,bottom:n})),d.canvasWidth>i&&(n=y((d.canvasWidth-i)/2),s._allocateSpace({left:n,right:n})),i/=2,f.setAxisDimention({x:d.canvasLeft+d.canvasWidth/2,y:d.canvasTop+d.canvasHeight/2-(i-h/2),axisLength:i-h/2}),g.setAxisConfig({radius:i-h/2}),g.setAxisDimention({x:d.canvasLeft+d.canvasWidth/2,y:d.canvasTop+d.canvasHeight/2})},t.getName=function(){return"Radar"},a.getName=function(){return"Radar"},a.getDSdef=function(){return l["default"]},t}(n["default"]);t["default"]=d},1428:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(520)),l=o(a(1429)),i=o(a(1437)),s=o(a(349)),c=a(274),d=o(a(629)),u=a(1435),h="vertical",p="horizontal",g="right",f=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("legend",d["default"]),t.registerFactory("dataset",i["default"],["legend"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;this.legendposition=g,t.legendPosition=c.preDefStr.POSITION_BOTTOM,t.orientation=p,t.skipCanvasDrawing=!0,t.alignCaptionWithCanvas=!1,t.basefontsize=11},t.getName=function(){return"sankey"},a.getName=function(){return"sankey"},a.getDSdef=function(){return l["default"]},a._checkInvalidData=function(){var e=this.getFromEnv("dataSource");return(!(0,s["default"])(e.nodes)||!e.nodes.length)&&(delete this.config.errorMessage,!0)},a._checkInvalidSpecificData=function(){var e,t,a,o,r,n,l,i=this,s=(e=i.getFromEnv("dataSource"),a=[],o=[],r=e.nodes||[],n=e.links||[],l={},r.forEach((function(e){(t=(0,c.pluck)(e.id,e.label))&&(l[t.toString()]=e)})),Object.keys(l).forEach((function(e,t){a.push(Object.assign({},l[e],{props:{}})),a[t].id=(0,c.parseUnsafeString)((a[t].id||a[t].label).toString()),a[t].label=(0,c.parseUnsafeString)((a[t].label||a[t].id).toString())})),n.forEach((function(e){l[e.from]&&l[e.to]&&o.push(Object.assign({},e,{props:{source:(0,c.parseUnsafeString)(e.from),target:(0,c.parseUnsafeString)(e.to)},value:(0,c.pluck)(e.value,"0")}))})),{nodes:a,links:o});return(0,u.createNodeLinks)(s),(0,u.traverseGraph)(s)?(delete i.config.errorMessage,i.addToEnv("sankey-graph",s),!1):(i.config.errorMessage="Self loops and circular links are not supported.",!0)},a.setChartMessage=function(t,a,o){var r=this.config.errorMessage;e.prototype.setChartMessage.call(this,t||r,a,o)},a.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var a=this,o=a.config,r=t.chart||{},n=a.getFromEnv("number-formatter"),l=a.getFromEnv("sankey-graph"),i=l.nodes,s=l.links;"undefined"!=typeof r.orientation?(o.orientation=r.orientation.toString().toLowerCase(),o.orientation=o.orientation===h?h:p):o.orientation=p,"undefined"!=typeof r.legendposition?o.legendPosition=["top-left","top","top-right","right-top","right","right-bottom","bottom-right","bottom","bottom-left","left-bottom","left","left-top"].includes(r.legendposition.toString().toLowerCase())?r.legendposition.toString().toLowerCase():c.preDefStr.POSITION_BOTTOM:o.legendPosition=g,o.legendposition=o.legendPosition,a.addToEnv("orientation",o.orientation),o.nodeWidth=Math.max(0,n.getCleanValue((0,c.pluck)(r.nodewidth,20))),i.forEach((function(e){e.nodeWidth=o.nodeWidth})),s.forEach((function(e){e.value=Math.max(0,n.getCleanValue((0,c.pluck)(e.value,0)))})),(0,u.createNodeValues)(l)},a._spaceManager=function(){var e,t,a,o=this,r=o.config,n=r.legendPosition,l=r.showLegend,i=r.marginLeft,s=r.marginTop,d=r.marginRight,u=r.marginBottom,h=+o.getFromEnv("chartWidth"),p=+o.getFromEnv("chartHeight");h-=i+d,p-=s+u,t=o._manageActionBarSpace(.225*p),o._allocateSpace(t),l&&((n=n||[]).split("-")[0]===c.POSITION_TOP||n.split("-")[0]===c.preDefStr.POSITION_BOTTOM?e=.3*p:(e=.3*h,n.split("-")[0]===c.POSITION_LEFT?o._allocateSpace({left:11}):n.split("-")[0]===c.POSITION_RIGHT&&o._allocateSpace({right:11})),a=o.getChildren("legend")[0]._manageLegendPosition(e),o._allocateSpace(a)),o._manageChartMenuBar(.6*r.availableHeight)},a._postSpaceManagement=function(){var e=this,t=e.config.showLegend,a=e.getChildren("legend");a.length&&t&&a.forEach((function(e){return e.postSpaceManager()})),e.allocateDimensionOfChartMenuBar()},t}(n["default"]);t["default"]=f},1369:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(274),l=o(a(719)),i=o(a(1370)),s=a(282),c=a(1345),d=o(a(442)),u=(0,s.getDep)("redraphael","plugin"),h=",",p="config",g="rgba(192,192,192,"+(n.isIE?.002:1e-6)+")",f="visible",m="hidden",v="round",b="null",x=Math.PI/180,k=function(e){return Object.keys(e).length},y="M",C="L",w="t";function A(e){var t,a=e.chart,o=a.getFromEnv("paper"),r=a.config,l=a.getChildren("yAxis")[0],i=a.getChildren("xAxis")[0],s=e.selectionLeft,c=e.selectionTop,d=e.selectionWidth,u=e.selectionHeight,b=s+d,x=c+u,k=d>15&&u>15,y={resizeEleRadius:15,canvasTop:r.canvasTop,canvasRight:r.canvasLeft+r.canvasWidth,canvasLeft:r.canvasLeft,canvasBottom:r.canvasTop+r.canvasHeight},C=r._selectEleArr||(r._selectEleArr=[]);y.index=C.length,y.id="SELECT_"+y.index,y.selectBoxG=t=o.group("selection-box",a.getChildContainer("trackerGroup")).toFront(),y.selectBoxTracker=o.rect(s,c,d,u,t).attr({"stroke-width":1,stroke:(0,n.toRaphaelColor)(r.selectBorderColor),fill:r.selectFillColor}).css({cursor:"move"}),y.selectBoxTracker.node._isTrackerElem=!0,y.selectBoxTracker.data(p,{position:6,selectEleObj:y,chart:a,xChange:!0,yChange:!0}),y.topTracker=o.rect(s,c-6,d,12,t).attr({"stroke-width":0,fill:g}).css("cursor",n.hasSVG?"ns-resize":"n-resize"),y.topTracker.node._isTrackerElem=!0,y.topTracker.data(p,{position:1,selectEleObj:y,yChange:!0,chart:a}),y.rightTracker=o.rect(s+d-6,c,12,u,t).attr({"stroke-width":0,fill:g}).css("cursor",n.hasSVG?"ew-resize":"w-resize"),y.rightTracker.node._isTrackerElem=!0,y.rightTracker.data(p,{position:2,chart:a,selectEleObj:y,xChange:!0}),y.bottomTracker=o.rect(s,c+u-6,d,12,t).attr({"stroke-width":0,fill:g}).css("cursor",n.hasSVG?"ns-resize":"n-resize"),y.bottomTracker.node._isTrackerElem=!0,y.bottomTracker.data(p,{position:3,chart:a,selectEleObj:y,yChange:!0}),y.leftTracker=o.rect(s-6,c,12,u,t).attr({"stroke-width":0,fill:g}).css("cursor",n.hasSVG?"ew-resize":"e-resize"),y.leftTracker.node._isTrackerElem=!0,y.leftTracker.data(p,{position:4,chart:a,selectEleObj:y,xChange:!0}),y.cornerInnerSymbol=o.symbol("resizeIcon",0,0,15,t).attr({transform:w+b+h+x,"stroke-width":1,visibility:k?f:m,stroke:"#999999"}),y.cornerInnerSymbol.node._isTrackerElem=!0,y.cornerOuterSymbol=o.symbol("resizeIcon",0,0,-12,t).attr({transform:w+b+h+x,strokeWidth:1,visibility:k?m:f,stroke:"#777777"}),y.cornerOuterSymbol.node._isTrackerElem=!0,y.resizeTracker=o.circle(b,x,12,t).attr({"stroke-width":1,stroke:g,fill:g}).css("cursor",n.hasSVG?"nwse-resize":"nw-resize"),y.resizeTracker.node._isTrackerElem=!0,y.resizeTracker.data(p,{position:5,chart:a,selectEleObj:y,yChange:!0,xChange:!0}),y.closeButton=o.symbol("closeIcon",0,0,6,t).attr({transform:"t"+b+h+c,"stroke-width":2,stroke:r.selectionCancelButtonBorderColor,fill:r.selectionCancelButtonFillColor,"stroke-linecap":v,"stroke-linejoin":v}).css({cursor:"pointer",_cursor:"hand"}).on("fc-click",(function(){a.deleteSelection(this,a)})),y.closeButton.node._isTrackerElem=!0,y.closeButton.data(p,{chart:a,index:y.index}),y.startX=i.getValue(s),y.startY=l.getValue(c),y.endX=i.getValue(b),y.endY=l.getValue(x),y.isVisible=!0,C.push(y),a.bindDragEvent(y)}function S(e,t){var a,o,r,n,l,i=e.data(p).index,s=t.config._selectEleArr,c=t.getChildren("xAxis")[0],d=t.getChildren("yAxis")[0];for(r in l={selectionLeft:(n=(a=s.find((function(e){return e.index===i}))).selectBoxTracker.getBBox()).x,selectionTop:n.y,selectionWidth:n.width,selectionHeight:n.height,startXValue:c.getValue(n.x,1),startYValue:d.getValue(n.y,1),endXValue:c.getValue(n.x+n.width,1),endYValue:d.getValue(n.y+n.height,1),data:t.getCollatedData(),id:a.id},a)a.hasOwnProperty(r)&&((o=a[r]).remove&&o.remove(),delete a[r]);s=s.filter(k),t.fireChartInstanceEvent("selectionRemoved",l)}(0,d["default"])(u),u.addSymbol({resizeIcon:function(e,t,a){var o,r=a,l=e,i=t,s=(0,n.pluckNumber)(r,15)/3,c=[];for(s<0&&(l+=(r=-r)-(s=-s)/2,i+=r-s/2),o=3;o>0;o-=1)c.push(y,l-s*o,i-3,C,l-3,i-s*o);return c},closeIcon:function(e,t,a){var o=e,r=t,n=1.3*a,l=43*x,i=48*x,s=o+n*Math.cos(l),c=r+n*Math.sin(l),d=.71*(a-2),u=.71*(a-2),h=function(e,t,a,o,r,n){return["A",a,o,0,n,r,e,t]}(o+n*Math.cos(i),r+n*Math.sin(i),n,n,0,1);return[y,s,c].concat(h).concat([y,e+d,t-u,C,e-d,t+u,y,e-d,t-u,C,e+d,t+u])},configureIcon:function(e,t,a){var o=.5,r=a-1,n=.25,l=.71*r,i=.71*(r+2),s=e-r,c=t-r,d=e+r,u=t+r,h=e+o,p=t+o,g=e-o,f=t-o,m=s-2,v=c-2,b=d+2,x=u+2,k=e+l,w=t+l,A=e-l,S=t-l,N=e+i,L=t+i,D=e-i,E=t-i;return[y,s,p,C,m,p,m,f,s,f,A-n,S+n,D-n,E+n,D+n,E-n,A+n,S-n,g,c,g,v,h,v,h,c,k-n,S-n,N-n,E-n,N+n,E+n,k+n,S+n,d,f,b,f,b,p,d,p,k+n,w-n,N+n,L-n,N-n,L+n,k-n,w+n,h,u,h,x,g,x,g,u,A+n,w+n,D+n,L+n,D-n,L-n,A-n,w-n,"Z"]},axisIcon:function(e,t,a){var o=a-1,r=.33*o,n=o/2,l=e-o,i=t-o,s=e+n,c=t+o,d=e-n,u=t+r,h=t-r;return[y,l,i,C,s,i,s,c,l,c,y,d,u,C,s,u,y,d,h,C,s,h]},loggerIcon:function(e,t,a){var o=a-1,r=t-o,n=e-o,l=n+2*o,i=n+2,s=l-2,c=r+2,d=c+o,u=d+2;return[y,n,r,C,l,r,l,c,s,c,s,d,l,d,l,u,n,u,n,d,i,d,i,c,n,c,n,r]}});var N=function(e){(0,r["default"])(o,e),o.getName=function(){return"SelectScatter"};var t=o.prototype;function o(){var t;return(t=e.call(this)||this).isXY=!0,t.defaultZeroPlaneHighlighted=!1,t.eiMethods={getData:function(e){var t=this.apiInstance;return t&&t.getData(e)},restoreData:function(){var e=this.apiInstance;return e&&e.restoreData()},submitData:function(){var e=this.apiInstance;return e&&e.submitData()}},t}return t.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.formBtnTitle=(0,n.pluck)(t.chart.submittext,t.chart.formbtntitle,"Submit"),this.config.restoreBtnTitle=(0,n.pluck)(t.chart.restoretext,t.chart.restorebtntitle,"Restore")},t.getName=function(){return"SelectScatter"},t.configureAttributes=function(t){var a=this.getFromEnv("chart").config,o=this.getFromEnv("dataSource").chart||{};a.formAction=(0,n.getValidValue)(o.formaction),a.enableSubmit=(0,n.pluckNumber)(o.enablesubmit,o.showformbtn,1)&&a.formAction,a.enableRestore=(0,n.pluckNumber)(o.enablerestore,o.showrestorebtn,1),e.prototype.configureAttributes.call(this,t)},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="selectScatter",t.allowreversexaxis=!0,t.enablemousetracking=!0},t.attachMenuButtons=function(){e.prototype.attachMenuButtons.call(this);var t,a=this,o=a.getFromEnv("chartConfig"),r=a.getFromEnv("toolbar"),n=r.getChild("hamburgerMenu-"+r.getId()+"-"+a.getId()+"-0"),l=[];o.enableRestore&&l.push({name:o.restoreBtnTitle,handler:function(){a.restoreData()},action:"click"}),o.enableSubmit&&(t={name:o.formBtnTitle,handler:function(){c.submitData.call(a)},action:"click"},l.push(t)),l.length>0&&n.appendInMenu(l)},t.getData=function(e){var t,o,r,l=this.getCollatedData(),i=[],s=l.dataset,c=s&&s.length||0,d=0,u=0;if(e)i=/^json$/gi.test(e)?l:/^csv$/gi.test(e)?this.getCSVString():a.g.core.transcodeData(l,"json",e);else for(;d<c;d+=1)if(o=s[d]){for((r=t=(o=s[d]&&s[d].data)&&o.length||0)&&(i[u]||(i[u]=[(0,n.getValidValue)(s[d].id,b)]));r--;)i[u][r+1]=(0,n.getValidValue)(o[r].id,b);t&&(u+=1)}return i},t.getCSVString=function(){for(var e=this.getData(),t=e.length;t--;)e[t]=e[t].join(h);return e.join("|")},t.getCollatedData=function(e){var t,a,o,r,l,i,s,c,d,u,h,p=this.getDatasets(),g=this.config._selectEleArr,f=g&&g.length||0,m=e||this.getFromEnv("dataSource"),v=(0,n.extend2)({},m),b=v.dataset,x=b&&b.length,k=!1,y=[];if(!f||!x)return m;for(;f--;)if(r=g[f])for(c=r.startX,d=r.endX,u=r.startY,h=r.endY,l=x;l--;)if(p[l].getState("visible"))for(y[l]||(y[l]={data:[]}),s=(o=b[l].data)&&o.length;s--;)t=(i=o[s]).x,a=i.y,t>c&&t<d&&a<u&&a>h&&(y[l].data[s]=k=!0);for(;x--;)for(s=(o=b[x].data)&&o.length;s--;)y[x]&&y[x].data[s]||o.splice(s,1);return k?v:m},t.createSelectionBox=function(e){A.call(this,e)},t._deleteAllSelection=function(){var e,t,a,o,r,n=this.config._selectEleArr;if(n){for(t=0,a=n.length;t<a;t++)for(r in e=n[t])e.hasOwnProperty(r)&&((o=e[r]).remove&&o.remove(),delete e[r]);delete this.config._selectEleArr}},t.deleteSelection=function(e,t){S.call(this,e,t)},t.bindDragEvent=function(e){var t,a=this;for(t in e)/Tracker/.test(t)&&e[t].drag(a.move,a.start,a.up)},t.start=function(){var e=this.data(p).selectEleObj,t=e.topTracker,a=e.rightTracker,o=e.bottomTracker,r=e.leftTracker,n=e.resizeTracker,l=t.data(p),i=a.data(p),s=o.data(p),c=r.data(p),d=n.data(p),u=e.selectBoxTracker.data(p),h=e.selectBoxTracker.getBBox();l.ox=h.x,l.oy=h.y,i.ox=h.x2,i.oy=h.y,s.ox=h.x,s.oy=h.y2,c.ox=h.x,c.oy=h.y,l.ox=h.x,l.oy=h.y,d.ox=h.x2,d.oy=h.y2,u.ox=h.x,u.oy=h.y,u.ow=h.width,u.oh=h.height,u.ox2=h.x2,u.oy2=h.y2,e.selectBoxG.toFront(),t.hide(),a.hide(),o.hide(),r.hide(),n.hide(),this.show()},t.move=function(e){var t,a,o,r,n=this,l=n.data(p),i=l.selectEleObj,s=l.chart,c=i.topTracker,d=i.rightTracker,u=i.bottomTracker,h=i.leftTracker,g=i.resizeTracker,f=i.selectBoxTracker,m=i.canvasLeft,v=i.canvasRight,b=i.canvasTop,x=i.canvasBottom,k=s.getChildren("xAxis")[0],y=s.getChildren("yAxis")[0],C=f.data(p),w={},A=e.data[0],S=e.data[1];switch(A=l.xChange?A:0,S=l.yChange?S:0,o=A+l.ox,r=S+l.oy,o=Math.min(v-(l.ow||0),Math.max(o,m)),r=Math.min(x-(l.oh||0),Math.max(r,b)),l.position){case 1:w.y=Math.min(C.oy2,r),w.height=Math.abs(C.oy2-r)||1,c.attr({y:r+-6});break;case 2:w.x=Math.min(C.ox,o),w.width=Math.abs(C.ox-o)||1,d.attr({x:o+-6});break;case 3:w.y=Math.min(C.oy,r),w.height=Math.abs(C.oy-r)||1,u.attr({y:r+-6});break;case 4:w.x=Math.min(C.ox2,o),w.width=Math.abs(C.ox2-o)||1,h.attr({x:o+-6});break;case 5:w.x=Math.min(C.ox,o),w.width=Math.abs(C.ox-o)||1,w.y=Math.min(C.oy,r),w.height=Math.abs(C.oy-r)||1,g.attr({cx:o,cy:r});break;default:w.x=o,w.y=r}n.data("dragStarted")||(a={selectionLeft:(t=f.getBBox()).x,selectionTop:t.y,selectionWidth:t.width,selectionHeight:t.height,startXValue:k.getValue(t.x),startYValue:y.getValue(t.y),endXValue:k.getValue(t.x+t.width),endYValue:y.getValue(t.y+t.height),id:i.id},s.fireChartInstanceEvent("BeforeSelectionUpdate",a),n.data("dragStarted",1)),f.animate(w),i.isVisible&&(i.closeButton.hide(),i.cornerInnerSymbol.hide(),i.cornerOuterSymbol.hide(),i.isVisible=!1)},t.up=function(){var e,t,a=this,o=a.data(p),r=o.selectEleObj,n=o.chart,l=n.getChildren("xAxis")[0],i=n.getChildren("yAxis")[0],s=r.topTracker,c=r.rightTracker,d=r.bottomTracker,u=r.leftTracker,g=r.resizeTracker,f=r.selectBoxTracker;setTimeout((function(){e=f.getBBox(),r.startX=l.getValue(e.x),r.startY=i.getValue(e.y),r.endX=l.getValue(e.x2),r.endY=i.getValue(e.y2),s.attr({x:e.x,y:e.y+-6,width:e.width}),c.attr({x:e.x2+-6,y:e.y,height:e.height}),d.attr({x:e.x,y:e.y2+-6,width:e.width}),u.attr({x:e.x+-6,y:e.y,height:e.height}),g.attr({cx:e.x2,cy:e.y2}),r.closeButton.transform(w+e.x2+h+e.y),r.cornerInnerSymbol.transform(w+e.x2+h+e.y2),r.cornerOuterSymbol.transform(w+e.x2+h+e.y2),r.closeButton.show(),e.width<15||e.height<15?(r.cornerInnerSymbol.hide(),r.cornerOuterSymbol.show()):(r.cornerInnerSymbol.show(),r.cornerOuterSymbol.hide()),r.isVisible=!0,s.show(),c.show(),d.show(),u.show(),g.show(),a.data("dragStarted")&&(t={selectionLeft:e.x,selectionTop:e.y,selectionWidth:e.width,selectionHeight:e.height,startXValue:l.getValue(e.x),startYValue:i.getValue(e.y),endXValue:l.getValue(e.x+e.width),endYValue:i.getValue(e.y+e.height),data:n.getCollatedData(),id:r.id},n.fireChartInstanceEvent("SelectionUpdated",t),a.data("dragStarted",0))}),100)},t.restoreData=function(){var e,t=this,a=[];for(t.iterateComponents((function(e){e.getType&&"dataset"===e.getType()&&a.push(e)})),t._deleteAllSelection(),e=0;e<a.length;e++)a[e].asyncDraw();return t.fireChartInstanceEvent("dataRestored",{}),!0},t._postSpaceManagement=function(){e.prototype._postSpaceManagement.call(this),this._deleteAllSelection()},t.getDSdef=function(){return i["default"]},t.getDSGroupdef=function(){},o}(l["default"]);t["default"]=N},1378:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1379)),l=o(a(1373)),i=a(274),s=["1E77B4","FF7F0E","2BA02C","D62728","9466BD","8C564B","E376C2","7F7F7F","BCBD22","17BECF"],c="FFFFFF,FFFFFF",d=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions={paletteColors:[s,s,s,s,s],bgColor:[c,c,c,c,c]},t.registerFactory("dataset",n["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Sunburst"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.allowdrilltonode=1,this.config.showvaluesintooltip=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this;a.config.allowdrilltonode=(0,i.pluckNumber)(t.chart.allowdrilltonode,1),a.config.allowdrilltonode&&a.addToEnv("linkClickFN",(function(){return null}))},a.getName=function(){return"Sunburst"},a._checkInvalidSpecificData=function(){var e=this.parseAndSanitizeData(),t=0;if(!e||!Array.isArray(e)||0===e.length)return!0;for(;t<e.length;t++)if(e[t].category&&0===e[t].category.length&&!e[t].value)return!0},a.parseAndSanitizeData=function(){var e=[],t=[],a={},o=(0,i.extend2)({},this.getFromEnv("dataSource"));if(o&&o.data&&Array.isArray(o.data)){for(var r in t=o.data.map((function(e){return a[e.id]=e,!e.parent&&(e.isRootNode=!0),!e.categories&&(e.category=[]),e})).filter((function(e){return!(!e.id||e.value&&isNaN(+e.value)||!(!e.parent||e.parent&&a[e.parent]))||(delete a[e.id],!1)})),a)if(a.hasOwnProperty(r)){var n=a[r];n.parent&&a[n.parent].category.push(n),n.isRootNode&&e.push(n)}this.addToEnv("parsedDataSource",e)}return t},t}(l["default"]);t["default"]=d},1362:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(517)),l=o(a(1363)),i=a(690),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"WaterFall2D"};var a=t.prototype;return a.getName=function(){return"WaterFall2D"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.hasScroll=!0;var t=this.config;t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="Waterfall2D",t.enablemousetracking=!0,t.avgScrollPointWidth=75},a._setAxisScale=function(){i.setAxisScale.call(this)},a.getDSdef=function(){return l["default"]},t}(n["default"]),c=s;t["default"]=c},1425:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(290),l=a(274),i=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.setArray=function(e){var t,a,o=this.getFromEnv("number-formatter"),r=0,n=e;for(!n&&(n=l.BLANK),a=n.replace(/\s/g,l.BLANK).split(l.COMMASTRING),t=this.dataLength=a&&a.length;t--;)r+=a[t]=o.getCleanValue(a[t]);a&&a.sort((function(e,t){return e-t})),this.values=a,this.mean=r/this.dataLength,this.getFrequencies()},a.getQuartiles=function(){var e,t,a,o,r,n,i=this.values,s=this.dataLength,c=s%2;switch(l.BLANKSTRING){case"tukey":c?(e=(s+3)/4,a=(3*s+1)/4):(e=(s+2)/4,a=(3*s+2)/4);break;case"mooremccabe":c?a=3*(e=(s+1)/4):(e=(s+2)/4,a=(3*s+2)/4);break;case"freundperles":e=(s+3)/4,a=(3*s+1)/4;break;case"mendenhallsincich":e=Math.round((s+1)/4),a=Math.round(3*e);break;default:a=3*(e=(s+1)/4)}return e-=1,a-=1,t=Math.floor(e),o=Math.floor(a),r=e-t?i[t]+(i[Math.ceil(e)]-i[t])*(e-t):i[e],n=a-o?i[o]+(i[Math.ceil(a)]-i[o])*(a-o):i[a],this.quartiles={q1:r,q3:n},this.quartiles},a.getMinMax=function(){var e=this.values;return{min:e[0],max:e[this.dataLength-1]}},a.getMean=function(){return this.mean},a.getMD=function(){for(var e,t=this.mean,a=this.frequencies,o=a.length,r=0;o--;)r+=(e=a[o]).frequency*Math.abs(e.value-t);return r/this.dataLength},a.getSD=function(){for(var e=this.mean,t=this.values,a=this.dataLength,o=a,r=0;a--;)r+=Math.pow(t[a]-e,2);return Math.sqrt(r/(o-1))},a.getQD=function(){return.5*(this.quartiles.q3-this.quartiles.q1)},a.getFrequencies=function(){var e,t,a,o=[],r=this.dataLength,n=this.values,i=0;for(a=0;a<r;a+=1)i+=e=n[a],(0,l.defined)(o[a])?o[a].frequency+=1:((t={}).value=e,t.frequency=1,o[a]=t);this.sum=i,this.frequencies=o},a.getMedian=function(){var e=this.dataLength,t=.5*e,a=this.values;return e%2==0?(a[t]+a[t-1])/2:a[Math.floor(t)]},t}(n.ComponentInterface),s=i;t["default"]=s},1422:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.boxandwhiskerline":function(){return{"line.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}],"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}]}}}},1421:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(616)),i=a(274),s=a(282),c=o(a(1422)),d=i.preDefStr.POLYGON,u=i.preDefStr.SPOKE,h=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})};(0,s.addDep)({name:"boxandwhiskerlineAnimation",type:"animationRule",extension:c["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.getName=function(){return"boxandwhiskerline"},a.createCoordinates=function(){var e,t,a,o,n,l=this,i=l.components.data,s=l.getFromEnv("yAxis"),c=l.getFromEnv("xAxis"),d=i.length;for(a=0;a<d;a++)t=(e=i[a])&&e.config,e!==r&&(o=c.getPixel(t._x),n=s.getPixel(t._y),t._Px=o+l.getFromEnv("columnXShift")+l.getFromEnv("columnWidth")/2,t._Py=n)},a.getAllPlots=function(e,t){var a,o,r=this.components.data,n=[];for(a=0,o=r.length;a<o;a++)(r[a].config._x>=e||r[a].config._x<=t)&&n.push(r[a]);return n},a.calculateScrollRange=function(){var e=this.config,t=this.components.data;e.scrollMinVal=0,e.scrollMaxVal=t.length,e.scrollMinValForLabel=e.scrollMinVal,e.scrollMaxValForLabel=e.scrollMaxVal},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i,s=this,c=e,d=t,u=s.getFromEnv("xAxis"),h=s.components.data.length,p=s.config,g=p&&p.radius||0;for(c+=u.getTranslation(),o=Math.floor(Math.max(u.getValue(c-g),0)),r=Math.ceil(Math.min(u.getValue(c+g),h-1)),l=(i=s.getAllPlots(o,r)).length;l>=0&&(!(a=i[l])||!(n=s.isWithinShape(a,l,c,d)));l--);return n},a._addLegend=function(e){if(e){var t,a,o=this,r=o.config,n=o.getFromEnv("chart").getChildren("legend")[0],l=(0,i.pluckNumber)(r.drawanchors,1);r.includeinlegend?(a={anchorSide:l?r.anchorsides:0,label:(0,i.getFirstValue)(r.JSONData.seriesname),customLegendIcon:!1,spoke:"spoke"===r.dip?1:0,drawLine:!r.showline,index:o.getJSONIndex()},(t=n.getItem(o.config.legendItemId))||(o.config.legendItemId=n.createItem(o),t=n.getItem(o.config.legendItemId),o.addExtEventListener("fc-click",(function(){t.itemClickFn()}),t)),t.configure(a),t.setStateCosmetics("default",{symbol:{fill:(0,i.toRaphaelColor)({color:r.anchorbgcolor,alpha:r.anchorbgalpha}),rawFillColor:r.anchorbgcolor,stroke:(0,i.toRaphaelColor)({color:r.anchorbordercolor,alpha:"100"})},background:{legendBackgroundColor:(0,i.toRaphaelColor)(o.getFromEnv("legendBackgroundColor")),alpha:20}}),o.getState("visible")?t.removeLegendState("hidden"):t.setLegendState("hidden")):o.config.legendItemId&&n.disposeItem(o.config.legendItemId)}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this,o=a.config.JSONData,r=a.config;a.setState("visible",a.getLinkedParent().getState("visible")),r.skipCommonElements=o.showline,r.dip=o.dip},a.createContainer=function(){var e,t,a=this,o=a.getLinkedParent().getLinkedParent(),r=a.groupName||a.dsGroup||a.getType();!o.getChildContainer(r+"VcanvasGroup")&&(r="default"),e=o.getChildContainer("manager-defaultVcanvasGroup-lines"),t=o.getChildContainer(r+"ShadowVcanvasGroup"),!a.getContainer("shadowGroup")&&a.addContainer("shadowGroup",h({name:"shadow-group"},t,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("commonElemsGroup",h({name:"common-elems-group"},e,a)),!a.getContainer("plotGroup")&&a.addContainer("plotGroup",h({name:"common-elems-group"},e,a)),!a.getContainer("labelGroup")&&a.addContainer("labelGroup",h({name:"label-group","class":"fusioncharts-datalabels",opacity:1},o.getChildContainer("vcanvasLabelGroup"),a))},a._setConfigure=function(e,t){var a,o,n,l,s,c,h,p,g=this,f=g.config,m=g.getFromEnv("chartConfig"),v=g.config.JSONData,b=e||v.data||[],x=g.getFromEnv("xAxis").getTicksLen(),k=e&&e.data.length,y="Outliers"===v.seriesname?b.length:k||Math.min(x,b.length);for(f.imageCount=0,(n=g.components.data)||(n=g.components.data=[]),f.maxRadius=-Infinity,l=0;l<y;l++)e?(a=e&&e.data[l]||{},o=t!==r?n[p=t+l]:n[p=n.length-y+l],s=p):(o=n[l],a=b&&b[l]||{},s=l),o||(o=n[s]={}),o.config||(o.config={}),o.graphics||(o.graphics={}),g._plotConfigure(s,a,k),p&&p++,c=o&&o.config,h=(0,i.pluck)(a.dip,v.dip),c.dip=h===d?0:h===u?1:0,c.toolText=c.finalTooltext="<b>"+v.seriesname+m.tooltipsepchar+"</b>"+c.displayValue},t}(l["default"]),g=p;t["default"]=g},1423:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.boxandwhisker2D":function(){return{"upperBox.appearing":function(e){return[{initialAttr:{x:e.attr.x,y:e.attr.y+e.attr.height,height:0,width:e.attr.width},slot:"plot",startEnd:{start:0,end:.5}}]},"lowerBox.appearing":function(e){return[{initialAttr:{x:e.attr.x,y:e.attr.y,height:0,width:e.attr.width},slot:"plot",startEnd:{start:0,end:.5}}]},"path.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}],"midline.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:0,end:.2}}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1420:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(595)),i=o(a(1421)),s=a(274),c=a(282),d=o(a(1423)),u="plotBorderColor",h="setRolloverAttr",p="setRolloutAttr",g=s.preDefStr.colors.c000000,f=s.preDefStr.LABEL,m=s.preDefStr.UNDERSCORE,v=s.preDefStr.POINTER,b=s.preDefStr.BLANK,x=s.preDefStr.ROUND,k=s.preDefStr.GROUPID,y=s.preDefStr.POSITION_START,C=s.preDefStr.POSITION_BOTTOM,w=s.preDefStr.POSITION_TOP,A=s.preDefStr.showHoverEffectStr,S=s.preDefStr.EVENTARGS,N=s.preDefStr.POSITION_END,L="M",D="H",E="V",T="<b>",F="</b>",P="<br />",_=s.preDefStr.pStr,V=s.preDefStr.sStr,I="none",B=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})},M=function(){return function(){this.hide()}};(0,c.addDep)({name:"boxandwhisker2dAnimation",type:"animationRule",extension:d["default"]});var O=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.createContainer=function(){var e,t,a=this,o=a.getLinkedParent(),r=a.groupName||a.dsGroup||a.type;!o.getChildContainer(r+"VcanvasGroup")&&(r="default"),e=o.getChildContainer(r+"VcanvasGroup"),t=o.getChildContainer(r+"ShadowVcanvasGroup"),!a.getContainer("shadowGroup")&&a.addContainer("shadowGroup",B({name:"shadow-group"},t,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("lowerBoxGroup",B({name:"lower-box-group"},e,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("upperBoxGroup",B({name:"upper-box-group"},e,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("upperWhiskerGroup",B({name:"upper-whisker-group"},e,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("lowerWhiskerGroup",B({name:"lower-whisker-group"},e,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("medianGroup",B({name:"median-group"},e,a)),!a.getContainer("labelGroup")&&a.addContainer("labelGroup",B({name:"label-group","class":"fusioncharts-datalabels"},o.getChildContainer("vcanvasLabelGroup"),a))},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,n,l,i,c,d,h,p,g,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe,re,ne,le,ie,se,ce,de,ue,he,pe,ge,fe,me,ve,be,xe,ke,ye,Ce,we,Ae,Se,Ne,Le,De,Ee,Te,Fe,Pe,_e,Ve,Ie,Be,Me,Oe=this,Re=Oe.config,Ge=Oe.config.JSONData,He=Ge.data,ze=He&&He.length,We=Oe.getFromEnv("chartConfig"),Ue=Oe.getFromEnv("xAxis"),je=Ue.getTicksLen(),Je=Math.min(je,ze),Ke=Oe.getFromEnv("chart-attrib"),qe=Oe.getFromEnv("color-manager"),Ye=Re.index,Xe=Re.plotColor=qe.getPlotColor(Ye),Qe=(0,s.pluckNumber)(Ge.dashed,Ke.plotborderdashed),Ze=(0,s.parseUnsafeString)((0,s.pluck)(Ke.tooltipsepchar,": ")),$e=Oe.components.data,et=Oe.getFromEnv("number-formatter"),tt=-Infinity,at=+Infinity,ot=Oe.getFromEnv("BoxAndWhiskerStatisticalCalc");for(Oe.setState("visible",!(1!==(0,s.pluckNumber)(Oe.config.JSONData.visible,!Number(Oe.config.JSONData.initiallyhidden),1))),(0,s.parseConfiguration)(Ge,Re,We,{data:!0}),Re.defaultPadding={left:.5,right:.5},Re.seriesname=(0,s.parseUnsafeString)(Ge.seriesname),Re.includeInLegend=(0,s.pluckNumber)(Ge.includeinlegend,Re.seriesname?1:0),Re.legendSymbolColor=Re.plotColor,c=Re.plotborderdashlen,d=Re.plotborderdashgap,m=Re.plotfillalpha,p=Re.useroundedges,v=Re.ratio,h=Re.plotborderthickness,Re.rotatevalues&&(Re.rotatevalues=270),Re.plotfillAngle=f=(0,s.pluckNumber)(360-Ke.plotfillangle,90),Re.plotColor=Xe=(0,s.pluck)(Ge.color,Xe),Re.plotRadius=(0,s.pluckNumber)(Ke.useroundedges,p?1:0),Re.showTextOutline=(0,s.pluckNumber)(Ke.textoutline,0),Re.plotgradientcolor=b=(0,s.getDefinedColor)(Ke.plotgradientcolor,qe.getColor("plotGradientColor")),!We.useplotgradientcolor&&(b=s.BLANKSTRING),Re.plotBorderAlpha=x=Re.showplotborder?(0,s.pluck)(Ke.plotborderalpha,m,s.HUNDREDSTRING):0,Re.plotBorderColor=k=(0,s.pluck)(Ke.plotbordercolor,qe.getColor(u)),Re.plotBorderDashStyle=y=Qe?(0,s.getDashStyle)(c,d,h):I,Re.showShadow=p?(0,s.pluckNumber)(Ke.showshadow,1):(0,s.pluckNumber)(Ke.showshadow,qe.getColor("showShadow")),Re.showHoverEffect=g=(0,s.pluckNumber)(Ke.plothovereffect,Ke.showhovereffect,r),Re.parentYAxis=ee=(0,s.pluck)(Ge.parentyaxis&&Ge.parentyaxis.toLowerCase(),_)===V?1:0,Re.dataSeparator=s.COMMASTRING,Re.textDirection="1"===Ke.hasrtltext?"rtl":s.BLANKSTRING,Re.showMeanLegend=Re.showSDLegend=Re.showMDLegend=Re.showQDLegend=Re.showOutliersLegend=0,!Oe.components.data&&(Oe.components.data=[]),$e=Oe.components.data,Re.upperBoxColor=me=(0,s.pluck)(Ge.upperboxcolor,Ke.upperboxcolor,qe.getPlotColor(2*Ye)),ve=Re.upperBoxAlpha=(0,s.pluck)(Ge.upperboxalpha,Ke.upperboxalpha,m,s.HUNDREDSTRING),Re.lowerBoxColor=be=(0,s.pluck)(Ge.lowerboxcolor,Ke.lowerboxcolor,qe.getPlotColor(2*Ye+1)),xe=Re.lowerBoxAlpha=(0,s.pluck)(Ge.lowerboxalpha,Ke.lowerboxalpha,m,s.HUNDREDSTRING),re=0;re<Je;re++){if(C=He&&He[re],S=(A=$e[re])&&A.config,A||(A=$e[re]={graphics:{}}),A.config||(S=$e[re].config={}),C.min&&C.max&&C.q1&&C.q3&&C.median)le=(ne={q1:C.q1,q3:C.q3}).q1,ie=ne.q3,se={min:C.min,max:C.max},S.min=ce=se.min,S.max=de=se.max,ue=C.median,S.mean=he=C.mean,S.md=pe=C.md,S.sd=ge=C.sd,S.qd=fe=C.qd,S.outliers=C.outliers,S.explicitData=!0;else{if(!C.value){S.setValue=r,S.explicitData=!1;continue}S.outliers=C.outliers,S.rawValue=C.value,ot.setArray(C.value),le=(ne=ot.getQuartiles()).q1,ie=ne.q3,se=ot.getMinMax(),S.min=ce=se.min,S.max=de=se.max,ue=ot.getMedian(),S.mean=he=ot.getMean(),S.md=pe=ot.getMD(),S.sd=ge=ot.getSD(),S.qd=fe=ot.getQD(),S.explicitData=!1}De=(0,s.pluck)(C.upperquartilecolor,Ge.upperquartilecolor,Ke.upperquartilecolor,Ke.plotbordercolor,qe.getColor(u)),Ee=(0,s.pluckNumber)(C.upperquartilealpha,Ge.upperquartilealpha,Ke.upperquartilealpha,Ke.plotborderalpha,100),S.upperQuartile={value:ie,color:(0,s.convertColor)(De,Ee),rawColor:De,alpha:Ee,borderWidth:(0,s.pluckNumber)(C.upperquartilethickness,Ge.upperquartilethickness,Ke.upperquartilethickness,Ke.plotborderthickness,p?0:1),displayValue:et.dataLabels(ie)},Ve=(0,s.pluck)(C.lowerquartilecolor,Ge.lowerquartilecolor,Ke.lowerquartilecolor,Ke.plotbordercolor,qe.getColor(u)),C.lowerquartilealpha,Ge.lowerquartilealpha,Ke.lowerquartilealpha,Ke.plotborderalpha,Ie=100,S.lowerQuartile={value:le,color:(0,s.convertColor)(Ve,Ie),rawColor:Ve,alpha:Ie,borderWidth:(0,s.pluckNumber)(C.lowerquartilethickness,Ge.lowerquartilethickness,Ke.lowerquartilethickness,Ke.plotborderthickness,p?0:1),displayValue:et.dataLabels(le)},S.valuePadding=(0,s.pluckNumber)(C.valuepadding,Re.valuepadding),Te=(0,s.pluck)(C.upperboxbordercolor,Ge.upperboxbordercolor,Ke.upperboxbordercolor,Ke.plotbordercolor,qe.getColor(u)),Fe=(0,s.pluckNumber)(C.upperboxborderalpha,Ge.upperboxborderalpha,Ke.upperboxborderalpha,Ke.plotborderalpha,100),S.upperBoxBorder={color:(0,s.convertColor)(Te,Fe),rawColor:Te,alpha:Fe,borderWidth:(0,s.pluckNumber)(C.upperboxborderthickness,Ge.upperboxborderthickness,Ke.upperboxborderthickness,!p&&Ke.plotborderthickness,p?0:1)},Pe=(0,s.pluck)(C.lowerboxbordercolor,Ge.lowerboxbordercolor,Ke.lowerboxbordercolor,Ke.plotbordercolor,qe.getColor(u)),_e=(0,s.pluckNumber)(C.lowerboxborderalpha,Ge.lowerboxborderalpha,Ke.lowerboxborderalpha,Ke.plotborderalpha,100),S.lowerBoxBorder={color:(0,s.convertColor)(Pe,_e),rawColor:Pe,alpha:_e,borderWidth:(0,s.pluckNumber)(C.lowerboxborderthickness,Ge.lowerboxborderthickness,Ke.lowerboxborderthickness,!p&&Ke.plotborderthickness,p?0:1)},S.median={value:ue,color:(0,s.convertColor)((0,s.pluck)(C.mediancolor,Ge.mediancolor,Ke.mediancolor,Ke.plotbordercolor,qe.getColor(u)),(0,s.pluckNumber)(C.medianalpha,Ge.medianalpha,Ke.medianalpha,Ke.plotborderalpha,100)),borderWidth:(0,s.pluckNumber)(C.medianthickness,Ge.medianthickness,Ke.medianthickness,Ke.plotborderthickness,1),displayValue:et.dataLabels(ue)},Re.upperBoxColor=me=(0,s.pluck)(C.upperboxcolor,Ge.upperboxcolor,Ke.upperboxcolor,qe.getPlotColor(2*Ye)),ve=Re.upperBoxAlpha=(0,s.pluck)(C.upperboxalpha,Ge.upperboxalpha,Ke.upperboxalpha,m,s.HUNDREDSTRING),Re.lowerBoxColor=be=(0,s.pluck)(C.lowerboxcolor,Ge.lowerboxcolor,Ke.lowerboxcolor,qe.getPlotColor(2*Ye+1)),xe=Re.lowerBoxAlpha=(0,s.pluck)(C.lowerboxalpha,Ge.lowerboxalpha,Ke.lowerboxalpha,m,s.HUNDREDSTRING),S.upperBoxColor=me,S.upperBoxAlpha=ve,S.upperColorArr=(0,s.getColumnColor)(me,ve,r,r,p,k,x.toString(),0,!1),S.lowerBoxColor=be,S.lowerBoxAlpha=xe,S.lowerColorArr=(0,s.getColumnColor)(be,xe,r,r,p,k,x.toString(),0,!1),ye=(0,s.pluckNumber)(C.showmean,Ge.showmean,Ke.showmean)&&(0,s.pluckNumber)(C.showmeanvalue,Ge.showmeanvalues,Ke.showmeanvalues),we=(0,s.pluckNumber)(C.showmd,Ge.showmd,Ke.showmd)&&(0,s.pluckNumber)(C.showmdvalue,Ge.showmdvalues,Ke.showmdvalues),Ce=(0,s.pluckNumber)(C.showsd,Ge.showsd,Ke.showsd)&&(0,s.pluckNumber)(C.showsdvalue,Ge.showsdvalues,Ke.showsdvalues),Ae=(0,s.pluckNumber)(C.showqd,Ge.showqd,Ke.showqd)&&(0,s.pluckNumber)(C.showqdvalue,Ge.showqdvalues,Ke.showqdvalues),Se=(0,s.pluckNumber)(C.showoutlier,Ge.showoutlier,Ke.showoutlier)&&(0,s.pluckNumber)(C.showoutliervalue,Ge.showoutliervalues,Ke.showoutliervalues),Be=ye||we||Ce||Ae||Se?0:1,S.showMinValues=(0,s.pluckNumber)(C.showminvalue,C.showvalue,Ge.showminvalues,Ge.showvalues,Ke.showminvalues,Ke.showvalues,Be),S.showMaxValues=(0,s.pluckNumber)(C.showmaxvalue,C.showvalue,Ge.showmaxvalues,Ge.showvalues,Ke.showmaxvalues,Ke.showvalues,Be),S.showMedianValues=(0,s.pluckNumber)(C.showmedianvalue,C.showvalue,Ge.showmedianvalues,Ge.showvalues,Ke.showmedianvalues,Ke.showvalues,Be),S.showQ3Values=(0,s.pluckNumber)(C.showq3value,Ge.showq3values,Ke.showq3values,0),S.showQ1Values=(0,s.pluckNumber)(C.showq1value,Ge.showq1values,Ke.showq1values,0),S.upperWhiskerRawColor=(0,s.getFirstColor)((0,s.pluck)(C.upperwhiskercolor,Ge.upperwhiskercolor,Ke.upperwhiskercolor,Ke.plotbordercolor,qe.getColor(u))),S.upperWhiskerColor=(0,s.convertColor)(S.upperWhiskerRawColor,ke),S.upperWhiskerThickness=(0,s.pluckNumber)(C.upperwhiskerthickness,Ge.upperwhiskerthickness,Ke.upperwhiskerthickness,Ke.plotborderthickness,1),S.upperWhiskerShadowOpacity=Re.showShadow?NaN:0,S.lowerWhiskerAlpha=Le=(0,s.getFirstAlpha)((0,s.pluck)(C.lowerwhiskeralpha,Ge.lowerwhiskeralpha,Ke.lowerwhiskeralpha,Ke.plotborderalpha,100)),S.lowerWhiskerRawColor=(0,s.getFirstColor)((0,s.pluck)(C.lowerwhiskercolor,Ge.lowerwhiskercolor,Ke.lowerwhiskercolor,Ke.plotbordercolor,qe.getColor(u))),S.lowerWhiskerColor=(0,s.convertColor)(S.lowerWhiskerRawColor,Le),S.lowerWhiskerThickness=(0,s.pluckNumber)(C.lowerwhiskerthickness,Ge.lowerwhiskerthickness,Ke.lowerwhiskerthickness,Ke.plotborderthickness,1),S.lowerWhiskerShadowOpacity=Re.showShadow?Le/100:0,S.setValue=w=et.getCleanValue(C.value),S.setLink=(0,s.pluck)(C.link),S.toolTipValue=Z=et.dataLabels(w,ee),S.setDisplayValue=$=(0,s.parseUnsafeString)(C.displayvalue),S.displayValue=(0,s.pluck)($,Z),te=(0,s.pluckNumber)(C.dashed),ae=(0,s.pluckNumber)(C.dashlen,c),oe=d=(0,s.pluckNumber)(C.dashgap,d),tt=Math.max(tt,de),at=Math.min(at,ce),S.dataLabelStyle=Oe._configureDataLabelStyle(C),S.plotBorderDashStyle=1===te?(0,s.getDashStyle)(ae,oe,h):0===te?I:y,Xe=(0,s.pluck)(C.color,Re.plotColor),m=(0,s.pluck)(C.alpha,Re.plotfillalpha),w<0&&!p&&(l=f,f=360-f),S.colorArr=(0,s.getColumnColor)(Xe+s.COMMA+b,m,v,f,p,k,x.toString(),0,!1),S.label=N=(0,s.getValidValue)((0,s.parseUnsafeString)(Ue.getLabel((0,s.pluckNumber)(re)).label)),0!==g&&(L=(0,s.pluck)(C.upperboxhovercolor,Ge.upperboxhovercolor,Ke.upperboxhovercolor,me),D=(0,s.pluck)(C.upperboxhoveralpha,Ge.upperboxhoveralpha,Ke.upperboxhoveralpha,ve),E=(0,s.pluck)(C.upperboxborderhovercolor,Ge.upperboxborderhovercolor,Ke.upperboxborderhovercolor,C.upperboxbordercolor,Ge.upperboxbordercolor,Ke.upperboxbordercolor,Ke.plotbordercolor,qe.getColor(u)),B=(0,s.pluck)(C.upperboxborderhoveralpha,Ge.upperboxborderhoveralpha,Ke.upperboxborderhoveralpha,C.upperboxborderalpha,Ge.upperboxborderalpha,Ke.upperboxborderalpha,Ke.plotborderalpha,100),M=p?0:(0,s.pluck)(C.upperboxborderhoverthickness,Ge.upperboxborderhoverthickness,Ke.upperboxborderhoverthickness,S.upperBoxBorder.borderWidth),O=(0,s.pluck)(C.lowerboxhovercolor,Ge.lowerboxhovercolor,Ke.lowerboxhovercolor,be),R=(0,s.pluck)(C.lowerboxhoveralpha,Ge.lowerboxhoveralpha,Ke.lowerboxhoveralpha,xe),G=(0,s.pluck)(C.lowerboxborderhovercolor,Ge.lowerboxborderhovercolor,Ke.lowerboxborderhovercolor,C.lowerboxbordercolor,Ge.lowerboxbordercolor,Ke.lowerboxbordercolor,Ke.plotbordercolor,qe.getColor(u)),H=(0,s.pluck)(C.lowerboxborderhoveralpha,Ge.lowerboxborderhoveralpha,Ke.lowerboxborderhoveralpha,C.lowerboxborderalpha,Ge.lowerboxborderalpha,Ke.lowerboxborderalpha,Ke.plotborderalpha,100),z=p?0:(0,s.pluck)(C.lowerboxborderhoverthickness,Ge.lowerboxborderhoverthickness,Ke.lowerboxborderhoverthickness,S.lowerBoxBorder.borderWidth),W=(0,s.pluck)(C.upperquartilehovercolor,Ge.upperquartilehovercolor,Ke.upperquartilehovercolor,C.upperquartilecolor,Ge.upperquartilecolor,Ke.upperquartilecolor,Ke.plotbordercolor,qe.getColor(u)),U=(0,s.pluck)(C.upperquartilehoveralpha,Ge.upperquartilehoveralpha,Ke.upperquartilehoveralpha,C.upperquartilealpha,Ge.upperquartilealpha,Ke.upperquartilealpha,Ke.plotborderalpha,100),j=(0,s.pluck)(C.upperquartilehoverthickness,Ge.upperquartilehoverthickness,Ke.upperquartilehoverthickness,S.upperQuartile.borderWidth),J=(0,s.pluck)(C.lowerquartilehovercolor,Ge.lowerquartilehovercolor,Ke.lowerquartilehovercolor,C.lowerquartilecolor,Ge.lowerquartilecolor,Ke.lowerquartilecolor,Ke.plotbordercolor,qe.getColor(u)),K=(0,s.pluck)(C.lowerquartilehoveralpha,Ge.lowerquartilehoveralpha,Ke.lowerquartilehoveralpha,C.lowerquartilealpha,Ge.lowerquartilealpha,Ke.lowerquartilealpha,Ke.plotborderalpha,100),q=(0,s.pluck)(C.lowerquartilehoverthickness,Ge.lowerquartilehoverthickness,Ke.lowerquartilehoverthickness,S.lowerQuartile.borderWidth),Y=(0,s.pluck)(C.medianhovercolor,Ge.medianhovercolor,Ke.medianhovercolor,C.mediancolor,Ge.mediancolor,Ke.mediancolor,Ke.plotbordercolor,qe.getColor(u)),X=(0,s.pluck)(C.medianhoveralpha,Ge.medianhoveralpha,Ke.medianhoveralpha,C.medianalpha,Ge.medianalpha,Ke.medianalpha,Ke.plotborderalpha,100),Q=(0,s.pluck)(C.medianhoverthickness,Ge.medianhoverthickness,Ke.medianhoverthickness,S.median.borderWidth),1===g&&(me===L&&(L=(0,s.getLightColor)(L,70)),be===O&&(O=(0,s.getLightColor)(O,70))),S.upperBoxHoverColorArr=(0,s.getColumnColor)(L,D,r,r,p,k,x.toString(),0,!1),S.lowerBoxHoverColorArr=(0,s.getColumnColor)(O,R,r,r,p,k,x.toString(),0,!1),S.setUpperBoxRolloutAttr={fill:(0,s.toRaphaelColor)(S.upperColorArr[0])},S.setUpperBoxRolloverAttr={fill:(0,s.toRaphaelColor)(S.upperBoxHoverColorArr[0])},S.setLowerBoxRolloutAttr={fill:(0,s.toRaphaelColor)(S.lowerColorArr[0])},S.setLowerBoxRolloverAttr={fill:(0,s.toRaphaelColor)(S.lowerBoxHoverColorArr[0])},S.setUpperBoxBorderRolloverAttr={stroke:(0,s.convertColor)(E,B),"stroke-width":M},S.setUpperBoxBorderRolloutAttr={stroke:S.upperBoxBorder.color,"stroke-width":S.upperBoxBorder.borderWidth},S.setLowerBoxBorderRolloverAttr={stroke:(0,s.convertColor)(G,H),"stroke-width":z},S.setLowerBoxBorderRolloutAttr={stroke:S.lowerBoxBorder.color,"stroke-width":S.lowerBoxBorder.borderWidth},S.setUpperQuartileRolloverAttr={stroke:(0,s.convertColor)(W,U),"stroke-width":j},S.setUpperQuartileRolloutAttr={stroke:S.upperQuartile.color,"stroke-width":S.upperQuartile.borderWidth},S.setLowerQuartileRolloverAttr={stroke:(0,s.convertColor)(J,K),"stroke-width":q},S.setLowerQuartileRolloutAttr={stroke:S.lowerQuartile.color,"stroke-width":S.lowerQuartile.borderWidth},S.setMedianRolloverAttr={stroke:(0,s.convertColor)(Y,X),"stroke-width":Q},S.setMedianRolloutAttr={stroke:S.median.color,"stroke-width":S.median.borderWidth}),t=S.toolTipValue,o=(0,s.getValidValue)((0,s.parseUnsafeString)((0,s.pluck)(C.tooltext,Ge.plottooltext,Ke.plottooltext),!1)),Re.showtooltip?null===t?i=!1:o!==r?(n=[1,2,3,4,5,6,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],a={maxValue:de,maxDataValue:et.dataLabels(de),minValue:ce,minDataValue:et.dataLabels(ce),Q1:et.dataLabels(le),unformattedQ1:le,Q3:et.dataLabels(ie),unformattedQ3:ie,median:et.dataLabels(ue),unformattedMedian:ue,SD:et.dataLabels(ge),unformattedsd:ge,QD:et.dataLabels(fe),unformattedQD:fe,MD:et.dataLabels(pe),unformattedMD:pe,mean:et.dataLabels(he),unformattedMean:he,label:N,yaxisName:We.yaxisname,xaxisName:We.xaxisname,formattedValue:t,value:N},i=(0,s.parseTooltext)(o,n,a,C,Ke,Ge)):i=T+"Maximum"+Ze+F+et.dataLabels(de)+P+T+"Q3"+Ze+F+et.dataLabels(ie)+P+T+"Median"+Ze+F+et.dataLabels(ue)+P+T+"Q1"+Ze+F+et.dataLabels(le)+P+T+"Minimum"+Ze+F+et.dataLabels(ce):i=!1,S.toolText=i,S.setTooltext=i,l&&(f=l)}Re.showalloutliers?(Me=Oe._getOutLiersLimit(),tt=Math.max(tt,Me.max),at=Math.min(at,Me.min)):(Ne=tt-at,tt+=Re.outliersupperrangeratio*Ne,at-=Re.outlierslowerrangeratio*Ne),Re.maxValue=tt,Re.minValue=at,Oe.setState("dirty",!0),Oe._createSubDS(),We.showLegend&&Oe._addLegend()},a._createSubDS=function(){var e=this,t=e.config.index,a=e.getFromEnv("lineJSON")[t],o=a.length;(0,s.datasetFactory)(e,i["default"],"dataset",o,a,function(e,t){for(var a=[],o=t;o;)a.unshift(e+Number("."+o)),o--;return a}(t,o)),o||e.iterateComponents((function(e){"line"===e.getName()&&e.remove()}))},a._getOutLiersLimit=function(){var e,t,a,o,r,n=this.getFromEnv("lineJSON")[this.config.index],l=n.length,i=-Infinity,s=+Infinity;for(r=0;r<l;r++)if("Outliers"===(e=n[r]).seriesname){for(t=(o=e.data).length,a=0;a<t;a++)i=Math.max(o[a].value,i),s=Math.min(o[a].value,s);return{max:i,min:s}}return{max:i,min:s}},a.parsePlotAttributes=function(e,t){var a,o,n,l,i,c,d,u,h,p,g,f,m,k,A,S,T,F,P,_,V,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe,re,ne,le,ie,se,ce,de,ue,he,pe=this,ge=pe.config,fe=t,me=pe.getState("visible"),ve=pe.getFromEnv("chartConfig"),be=pe.getFromEnv("xAxis"),xe=pe.getFromEnv("yAxis"),ke=pe.components.data,ye=ve.dataLabelStyle,Ce=ge.rotatevalues,we=pe.getFromEnv("number-formatter"),Ae=Ce?s.POSITION_LEFT:s.POSITION_MIDDLE,Se=pe.getFromEnv("smartLabel"),Ne=+Infinity;o=pe.getFromEnv("columnWidth"),l=(i=e&&e.config)&&i.setValue,(i.explicitData||e!==r&&l!==r&&null!==l)&&(n=i.setLink,e.graphics||(ke[fe].graphics={}),e.graphics.label||(ke[fe].graphics.label=[]),a=be.getPixel(fe)+pe.getFromEnv("columnXShift"),u=((d=(c=i.upperQuartile||{})&&c.value)||0===d)&&xe.getPixel(d),g=((p=(h=i.lowerQuartile||{})&&h.value)||0===p)&&xe.getPixel(p),A=(k=((m=(f=i.median)&&f.value)||0===m)&&xe.getPixel(m))-u,S=g-k,T=i.upperBoxBorder||{},F=i.lowerBoxBorder||{},M=i.valuePadding,i.eventArgs={index:fe,link:n,maximum:i.max,minimum:i.min,median:m,q3:c.value,q1:h.value,maxDisplayValue:i.showMaxValues?we.dataLabels(i.max):s.BLANKSTRING,minDisplayValue:i.showMinValues?we.dataLabels(i.min):s.BLANKSTRING,medianDisplayValue:i.showMedianValues?we.dataLabels(m):s.BLANKSTRING,q1DisplayValue:i.showQ1Values?we.dataLabels(h.value):s.BLANKSTRING,q3DisplayValue:i.showQ3Values?we.dataLabels(c.value):s.BLANKSTRING,categoryLabel:i.label,toolText:i.toolText,datasetIndex:ge.index,datasetName:pe.config.JSONData.seriesname,visible:me,value:i.rawValue,showValue:i.showValue,upperBoxColor:i.upperBoxColor,upperBoxAlpha:i.upperBoxAlpha,lowerBoxColor:i.lowerBoxColor,lowerBoxAlpha:i.lowerBoxAlpha,upperQuartileColor:c.rawColor,upperQuartileThickness:c.borderWidth,upperQuartileAlpha:c.alpha,lowerQuartileColor:h.rawColor,lowerQuartileThickness:h.borderWidth,lowerQuartileAlpha:h.alpha,upperBoxBorderColor:T.rawColor,upperBoxBorderThickness:T.borderWidth,upperBoxBorderAlpha:T.alpha,lowerBoxBorderColor:F.rawColor,lowerBoxBorderThickness:F.borderWidth,lowerBoxBorderAlpha:F.alpha,upperWhiskerColor:i.upperWhiskerRawColor,upperWhiskerThickness:i.upperWhiskerThickness,lowerWhiskerThickness:i.lowerWhiskerThickness,lowerWhiskerColor:i.lowerWhiskerRawColor,upperWhiskerAlpha:i.upperWhiskerAlpha,lowerWhiskerAlpha:i.lowerWhiskerAlpha,outliers:i.outliers},P=Math.round(a)+T.borderWidth%2*.5,_=Math.round(a+o)+T.borderWidth%2*.5,V=Math.round(u)+c.borderWidth%2*.5,o=_-P,B={upperBox:{fill:(0,s.toRaphaelColor)(i.upperColorArr[0]),"stroke-width":0,"stroke-dasharray":I,cursor:n?v:s.BLANKSTRING,visibility:me},lowerBox:{fill:(0,s.toRaphaelColor)(i.lowerColorArr[0]),"stroke-width":0,"stroke-dasharray":I,cursor:n?v:b,visibility:me},upperBoxBorder:{stroke:T.color,"stroke-width":T.borderWidth,"stroke-linecap":x,dashstyle:T.dashStyle,visibility:me},lowerBoxBorder:{stroke:F.color,"stroke-width":F.borderWidth,dashstyle:F.dashStyle,"stroke-linecap":x,visibility:me},upperQuartile:{stroke:(0,s.toRaphaelColor)(c.color),"stroke-width":c.borderWidth,"stroke-dasharray":c.dashSyle,"stroke-linecap":x,cursor:n?v:b,visibility:me},lowerQuartile:{stroke:(0,s.toRaphaelColor)(h.color),"stroke-width":h.borderWidth,"stroke-dasharray":h.dashSyle,cursor:n?v:s.BLANKSTRING,"stroke-linecap":x,visibility:me},median:{stroke:(0,s.toRaphaelColor)(f.color),"stroke-width":f.borderWidth,"stroke-dasharray":f.dashSyle,cursor:n?v:s.BLANKSTRING,"stroke-linecap":x,visibility:me}},ce=V,te=Object.assign({x:P,y:V,width:Math.max(o,0),height:Math.max(Math.min(Ne,A),0),r:0},B.upperBox),ee=Object.assign({path:[L,P,V,E,V+A,L,_,V,E,V+A]},B.upperBoxBorder),ae=Object.assign({path:[L,P,V,D,P+o]},B.upperQuartile),O=V,R=o*(ge.whiskerslimitswidthratio/100)/2,z=G=xe.getPixel(i.max),H=P,z=Math.round(G)+i.upperWhiskerThickness%2/2,P=Math.round(P+o/2)+i.upperWhiskerThickness%2/2,oe={path:W=[L,P,O,E,Math.min(z,ce),L,P-R,Math.min(z,ce),D,P+R],"stroke-width":i.upperWhiskerThickness,cursor:n?v:s.BLANKSTRING,"stroke-linecap":x,stroke:i.upperWhiskerColor,visibility:me},q=i.dataLabelStyle,Se.useEllipsesOnOverflow(pe.getFromEnv("chartConfig").useEllipsesWhenOverflow),Se.setStyle(ye),U=Se.getOriSize(we.dataLabels(i.max)),j=Ce?U.width:U.height,(K=G-.5*i.upperWhiskerThickness-M-j*(Ce?.5:1))-(Ce?j/2:0)<ve.canvasTop&&(K=ve.canvasTop+(Ce?j/2:0)),re={text:we.dataLabels(i.max),x:H+o/2,title:c.originalText||s.BLANKSTRING,y:K,"text-anchor":Ce?s.POSITION_MIDDLE:Ae,"vertical-align":Ce?s.POSITION_MIDDLE:w,visibility:s.visibleStr,direction:ge.textDirection,fill:q.color,transform:(0,s.getSuggestiveRotation)(Ce,H+o/2,K),"text-bound":[q.backgroundColor,q.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},P=Math.round(a)+F.borderWidth%2*.5,_=Math.round(a+o)+F.borderWidth%2*.5,V=Math.round(k+S)+h.borderWidth%2*.5,he=(de=k)+(ue=Math.max(Math.min(Ne,V-k),0)),X=Object.assign({x:P,y:de,width:Math.max(o,0),height:ue,r:0},B.lowerBox),Y=Object.assign({path:[L,P,k,E,k+S,L,_,k,E,k+S]},B.lowerBoxBorder),V=Math.round(k+S)+h.borderWidth%2*.5,Q=Object.assign({path:[L,P,V,D,P+o]},B.lowerQuartile),O=V,R=o*(ge.whiskerslimitswidthratio/100)/2,z=G=xe.getPixel(i.min),H=P,z=Math.round(G)+i.lowerWhiskerThickness%2/2,H=Math.round(H+o/2)+i.lowerWhiskerThickness%2/2,W=[L,H,O,E,Math.max(z,he),L,H-R,Math.max(z,he),D,H+R],Se.setStyle(ye),U=Se.getOriSize(we.dataLabels(i.min)),j=Ce?U.width:U.height,(J=G+.5*i.lowerWhiskerThickness+M)+j>ve.canvasBottom&&(J=ve.canvasBottom-j),ne={text:we.dataLabels(i.min),x:H,title:c.originalText||s.BLANKSTRING,y:J,"text-anchor":Ce?N:Ae,"vertical-align":Ce?s.POSITION_MIDDLE:w,visibility:s.visibleStr,direction:ge.textDirection,fill:q.color,transform:(0,s.getSuggestiveRotation)(Ce,H,J),"text-bound":[q.backgroundColor,q.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},Z={path:W,"stroke-width":i.lowerWhiskerThickness,cursor:n?v:s.BLANKSTRING,"stroke-linecap":x,stroke:i.lowerWhiskerColor,visibility:me},V=Math.round(k)+f.borderWidth%2*.5,$=Object.assign({path:[L,P,V,D,P+o]},B.median),Ae=Ce?s.POSITION_LEFT:s.POSITION_MIDDLE,le={text:c.displayValue,x:a+o/2,title:c.originalText||s.BLANKSTRING,y:u-M,"text-anchor":Ce?y:Ae,"vertical-align":Ce?s.POSITION_MIDDLE:C,visibility:s.visibleStr,direction:ge.textDirection,fill:q.color,transform:(0,s.getSuggestiveRotation)(Ce,a+o/2,u-M),"text-bound":[q.backgroundColor,q.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},se={text:f.displayValue,x:P+o/2,y:k-M,title:f.originalText||s.BLANKSTRING,"text-anchor":Ce?y:Ae,"vertical-align":Ce?s.POSITION_MIDDLE:C,visibility:s.visibleStr,direction:ge.textDirection,fill:q.color,transform:(0,s.getSuggestiveRotation)(Ce,P+o/2,k-M),"text-bound":[q.backgroundColor,q.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},ie={text:h.displayValue,x:a+o/2,y:g+M,title:h.originalText||s.BLANKSTRING,"text-anchor":Ce?y:Ae,"vertical-align":Ce?s.POSITION_MIDDLE:w,visibility:s.visibleStr,direction:ge.textDirection,fill:q.color,transform:(0,s.getSuggestiveRotation)(Ce,a+o/2,g+M),"text-bound":[q.backgroundColor,q.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},i.props={lowerBoxBorderEle:{attr:Y},lowerBoxElem:{attr:X},lowerQuartileEle:{attr:Q},lowerWhiskerEle:{attr:Z},midLineElem:{attr:$},upperBoxElem:{attr:te},upperBoxBorderEle:{attr:ee},upperQuartileEle:{attr:ae},upperWhiskerEle:{attr:oe},upperQuartileMaxLabel:{attr:re},upperQuartileMinLabel:{attr:ne},medianLabel:{attr:se},upperQuartileLabel:{attr:le},lowerQuartileLabel:{attr:ie}})},a.allocatePosition=function(){var e,t,a,o=this,r=o.config.JSONData.data,n=r&&r.length,l=o.getFromEnv("xAxis").getTicksLen(),i=o.components.data;for(a=Math.min(l,n),o.setColumnPosition(),t=0;t<a;t++)e=i[t],o.parsePlotAttributes(e,t)},a.drawPlots=function(){var e,t,a,o,n,l,i,c,d,u,g,v,x,y,C,w,N,L,D,E,T,F,P,_,V,I,B,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe,re,ne=this,le=ne.config,ie=ne.config.JSONData.data,se=ie&&ie.length,ce=ne.getFromEnv("chart"),de=ne.getFromEnv("xAxis").getTicksLen(),ue=ne.getFromEnv("toolTipController"),he=ne.components.data,pe=le.showShadow,ge=ne.getContainer("upperBoxGroup").toBack(),fe=ne.getContainer("lowerBoxGroup"),me=ne.getContainer("medianGroup"),ve=ne.getContainer("upperWhiskerGroup"),be=ne.getContainer("lowerWhiskerGroup"),xe=ne.getContainer("labelGroup"),ke=ne.getContainer("shadowGroup"),ye=(ne.components.removeDataArr||[]).length,Ce=le.showHoverEffect,we=ne.getFromEnv("animationManager"),Ae=function(e){return function(t){ce.plotEventHandler(e,t)}},Se=function(e,t){return function(a){var o;if(0!==t.data(A))for(o in e)o!==f&&(we.setAnimation({el:e[o],doNotRemove:!0,attr:t.data(h)[o],component:ne}),ce.plotEventHandler(t,a,"DataPlotRollOver"))}},Ne=function(e,t){return function(a){var o;if(0!==t.data(A))for(o in e)o!==f&&(we.setAnimation({el:e[o],doNotRemove:!0,attr:t.data(p)[o],component:ne}),ce.plotEventHandler(t,a,"DataPlotRollOut"))}};for(c=function(e){return function(){this.show(),this.shadow(e)}},ne.setColumnPosition(),ne.getState("visible")?(ge.show(),fe.show(),ve.show(),be.show(),me.show(),ke.show(),xe.show(),ne._conatinerHidden=!1):(xe.hide(),ve.hide(),ge.hide(),be.hide(),fe.hide(),me.hide(),ke.hide()),e=Math.min(de,se),t=0;t<e;t++)if(n=(l=(o=he[t])&&o.config)&&l.setValue,j=!1,J=!1,K=!1,q=!1,Y=!1,X=!1,Q=!1,Z=!1,$=!1,l.explicitData||o!==r&&n!==r&&null!==n)B=o.graphics,o.graphics||(he[t].graphics={}),B.label||(he[t].graphics.label=[]),i=l.upperQuartile||{},d=l.lowerQuartile||{},u=l.median,a=l.toolText,O=le.index+m+t,v=o.graphics.upperBoxElem,g=we.setAnimation({el:v||"rect",attr:l.props.upperBoxElem.attr,label:"upperBox",container:ge,component:ne}),v||(o.graphics.upperBoxElem=g,j=!0),g.shadow({opacity:pe?le.upperBoxAlpha/100:0},ke),y=o.graphics.upperBoxBorderEle,x=we.setAnimation({el:y||"path",attr:l.props.upperBoxBorderEle.attr,container:ge,label:"path",component:ne}),y||(o.graphics.upperBoxBorderEle=x,K=!0),w=o.graphics.upperQuartileEle,C=we.setAnimation({el:w||"path",attr:l.props.upperQuartileEle.attr,label:"path",container:ge,component:ne}),w||(o.graphics.upperQuartileEle=C,Y=!0),G=o.graphics.upperWhiskerEle,R=we.setAnimation({el:G||"path",attr:l.props.upperWhiskerEle.attr,label:"path",container:ve,component:ne}),c({opacity:l.upperWhiskerShadowOpacity}),G||(o.graphics.upperWhiskerEle=R,Z=!0),ne.getFromEnv("smartLabel").useEllipsesOnOverflow(ce.config.useEllipsesWhenOverflow),l.showMaxValues?((I=B.label[3])&&I.show(),V=we.setAnimation({el:I||"text",attr:l.props.upperQuartileMaxLabel.attr,component:ne,label:"text",container:xe}),I||(B.label[3]=V),B.label[3].data(k,O)):B.label[3]&&we.setAnimation({el:B.label[3],component:ne,attr:{"text-bound":[]},callback:M.call(B.label[3])}),L=o.graphics.lowerBoxElem,N=we.setAnimation({el:L||"rect",attr:l.props.lowerBoxElem.attr,label:"lowerBox",container:fe,component:ne}),L||(o.graphics.lowerBoxElem=N,J=!0),N.shadow({opacity:pe?le.lowerBoxAlpha/100:0},ke),E=o.graphics.lowerBoxBorderEle,D=we.setAnimation({el:E||"path",attr:l.props.lowerBoxBorderEle.attr,component:ne,label:"path",container:fe}),E||(o.graphics.lowerBoxBorderEle=D,q=!0),F=o.graphics.lowerQuartileEle,T=we.setAnimation({el:F||"path",attr:l.props.lowerQuartileEle.attr,component:ne,label:"path",container:fe}),F||(o.graphics.lowerQuartileEle=T,X=!0),H=o.graphics.lowerWhiskerEle,l.showMinValues?((I=B.label[4])&&I.show(),V=we.setAnimation({el:I||"text",attr:l.props.upperQuartileMinLabel.attr,label:"text",container:xe,component:ne}),I||(B.label[4]=V),B.label[4].data(k,O)):B.label[4]&&we.setAnimation({el:B.label[4],component:ne,attr:{"text-bound":[]},callback:M.call(B.label[4])}),z=o.graphics.lowerWhiskerEle,H=we.setAnimation({el:z||"path",attr:l.props.lowerWhiskerEle.attr,label:"path",container:be,component:ne}),c({opacity:l.lowerWhiskerShadowOpacity}),z||(o.graphics.lowerWhiskerEle=H,$=!0),_=o.graphics.midLineElem,P=we.setAnimation({el:_||"path",component:ne,label:"midline",container:me,attr:l.props.midLineElem.attr}),_||(o.graphics.midLineElem=P,Q=!0),ee={upperBoxElem:l.setUpperBoxRolloverAttr,lowerBoxElem:l.setLowerBoxRolloverAttr,upperBoxBorderEle:l.setUpperBoxBorderRolloverAttr,lowerBoxBorderEle:l.setLowerBoxBorderRolloverAttr,upperQuartileEle:l.setUpperQuartileRolloverAttr,lowerQuartileEle:l.setLowerQuartileRolloverAttr,midLineElem:l.setMedianRolloverAttr},te={upperBoxElem:l.setUpperBoxRolloutAttr,lowerBoxElem:l.setLowerBoxRolloutAttr,upperBoxBorderEle:l.setUpperBoxBorderRolloutAttr,lowerBoxBorderEle:l.setLowerBoxBorderRolloutAttr,upperQuartileEle:l.setUpperQuartileRolloutAttr,lowerQuartileEle:l.setLowerQuartileRolloutAttr,midLineElem:l.setMedianRolloutAttr},g.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),j&&(g.on("fc-click",Ae(g)),g.on("fc-mouseover",Se(o.graphics,g)),g.on("fc-mouseout",Ne(o.graphics,g))),N.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),J&&(N.on("fc-click",Ae(N)),N.on("fc-mouseover",Se(o.graphics,N)),N.on("fc-mouseout",Ne(o.graphics,N))),x.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),K&&(x.on("fc-click",Ae(x)),x.on("fc-mouseover",Se(o.graphics,x)),x.on("fc-mouseout",Ne(o.graphics,x))),D.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),q&&(D.on("fc-click",Ae(D)),D.on("fc-mouseover",Se(o.graphics,D)),D.on("fc-mouseout",Ne(o.graphics,D))),C.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),Y&&(C.on("fc-click",Ae(C)),C.on("fc-mouseover",Se(o.graphics,C)),C.on("fc-mouseout",Ne(o.graphics,C))),T.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),X&&(T.on("fc-click",Ae(T)),T.on("fc-mouseover",Se(o.graphics,T)),T.on("fc-mouseout",Ne(o.graphics,T))),P.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),Q&&(P.on("fc-click",Ae(P)),P.on("fc-mouseover",Se(o.graphics,P)),P.on("fc-mouseout",Ne(o.graphics,P))),R.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),Z&&(R.on("fc-click",Ae(R)),R.on("fc-mouseover",Se(o.graphics,R)),R.on("fc-mouseout",Ne(o.graphics,R))),H.data(k,O).data(S,l.eventArgs).data(A,Ce).data(h,ee).data(p,te),$&&(H.on("fc-click",Ae(H)),H.on("fc-mouseover",Se(o.graphics,H)),H.on("fc-mouseout",Ne(o.graphics,H))),(0,s.defined)(i.displayValue)&&i.displayValue!==b&&l.showQ3Values?((I=B.label[0])&&I.show(),V=we.setAnimation({el:I||"text",attr:l.props.upperQuartileLabel.attr,component:ne,label:"text",container:xe}),I||(B.label[0]=V),B.label[0].data(k,O)):B.label[0]&&we.setAnimation({el:B.label[0],component:ne,attr:{"text-bound":[]},callback:M.call(B.label[0])}),(0,s.defined)(u.displayValue)&&u.displayValue!==b&&l.showMedianValues?((I=B.label[1])&&I.show(),(V=we.setAnimation({el:I||"text",attr:l.props.medianLabel.attr,component:ne,label:"text",container:xe})).outlineText(le.showTextOutline,l.props.medianLabel.attr.fill),I||(B.label[1]=V),B.label[1].data(k,O)):B.label[1]&&we.setAnimation({el:B.label[1],component:ne,attr:{"text-bound":[]},callback:M.call(B.label[1])}),(0,s.defined)(d.displayValue)&&d.displayValue!==b&&l.showQ1Values?(I=B.label[2],V=we.setAnimation({el:I||"text",component:ne,attr:l.props.lowerQuartileLabel.attr,container:xe}),I||(B.label[2]=V,V.show()),B.label[2].data(k,O)):B.label[2]&&we.setAnimation({el:B.label[2],component:ne,attr:{"text-bound":[]},callback:M.call(B.label[2])}),le.showtooltip?(ue.enableToolTip(g,a),ue.enableToolTip(N,a),ue.enableToolTip(x,a),ue.enableToolTip(D,a),ue.enableToolTip(C,a),ue.enableToolTip(T,a),ue.enableToolTip(P,a),ue.enableToolTip(R,a),ue.enableToolTip(H,a)):(ue.enableToolTip(g,!1),ue.enableToolTip(N,!1),ue.enableToolTip(x,!1),ue.enableToolTip(D,!1),ue.enableToolTip(C,!1),ue.enableToolTip(T,!1),ue.enableToolTip(P,!1),ue.enableToolTip(R,!1),ue.enableToolTip(H,!1));else for(W in U=o.graphics)if(U[W]instanceof Array)for(ae=0,re=(oe=U[W]).length;ae<re;ae++)oe[ae]&&oe[ae].hide();else U[W].hide();!1!==ne.getState("visible")||!1!==ne._conatinerHidden&&ne._conatinerHidden!==r||(ge.hide(),fe.hide(),ve.hide(),be.hide(),me.hide(),ke.hide(),xe&&xe.hide(),ne._conatinerHidden=!0),ye&&ne.removePlots()},a.removePlots=function(){var e,t,a,o,r,n,l=this,i=l.components.removeDataArr,s=l.getFromEnv("animationManager"),c=i.length;for(o=0;o<c;o++)if(e=i[0],i.splice(0,1),e&&e.graphics)for(t in a=e.graphics)if(t!==f)a[t].shadow({opacity:0}),a[t].hide();else for(r=a[t].length,n=0;n<r;n++)a[t][n]&&(a[t][n].shadow({opacity:0}),s.setAnimation({el:a[t][n],component:l,attr:{"text-bound":[]},callback:M.call(a[t][n])}))},a.removeData=function(e,t,a){var o=this,n=e,l=t,i=o.components,s=i.data,c=i.removeDataArr||(i.removeDataArr=[]);(n=n||0)+(l=l||1)===s.length?o.endPosition=!0:0!==n&&n!==r||(o.endPosition=!1),i.removeDataArr=c=c.concat(s.splice(n,l)),a&&o.asyncDraw()},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showplotborder=r,t.plotborderdashlen=r,t.plotborderdashgap=r,t.plotfillalpha=r,t.useroundedges=r,t.ratio=r,t.plotborderthickness=r,t.showvalues=r,t.valuepadding=r,t.showtooltip=r,t.maxcolwidth=r,t.rotatevalues=r,t.use3dlighting=r,t.whiskerslimitswidthratio=r,t.outliersupperrangeratio=r,t.outlierslowerrangeratio=r,t.showalloutliers=r,t.showmean=r,t.showsd=r,t.showmd=r,t.showqd=r,t.showminvalues=r,t.showmaxvalues=r,t.showq1values=r,t.showq3values=r,t.showmedianvalues=r},a.getDataLimits=function(){var e=this.config,t=this.getState("removed");return{max:t?-Infinity:e.maxValue,min:t?+Infinity:e.minValue}},a._addLegend=function(){var e,t,a,o=this,r=o.config,n=o.getFromEnv("legend"),l=o.getFromEnv("chart-attrib"),i=r.JSONData||{},c=r.upperBoxColor,d=r.lowerBoxColor;e={FCcolor:{color:c+s.COMMA+d,angle:90,ratio:"50, 0",alpha:"100, 100"}},t={label:(0,s.getFirstValue)(o.config.JSONData.seriesname),index:o.getJSONIndex(),mainDS:!0},r.includeInLegend?((a=n.getItem(o.config.legendItemId))||(o.config.legendItemId=n.createItem(o),a=n.getItem(o.config.legendItemId),o.addExtEventListener("fc-click",(function(){a.itemClickFn()}),a)),a.configure(t),a.setStateCosmetics("default",{symbol:{fill:(0,s.toRaphaelColor)(e),bgAlpha:(0,s.pluckNumber)(i.legendiconbgalpha,i.legendiconalpha,l.legendiconbgalpha,l.legendiconalpha,r.plotfillalpha),borderAlpha:(0,s.pluckNumber)(i.legendiconborderalpha,i.legendiconalpha,l.legendiconborderalpha,l.legendiconalpha,r.plotfillalpha),rawFillColor:r.upperBoxColor,stroke:(0,s.toRaphaelColor)(g)},background:{legendBackgroundColor:(0,s.toRaphaelColor)(c),alpha:20}}),o.getState("visible")?a.removeLegendState("hidden"):a.setLegendState("hidden")):o.config.legendItemId&&n.disposeItem(o.config.legendItemId),o._mapChildren((function(e){e.getState("removed")||(e.addToEnv("legendBackgroundColor",c),e&&e._addLegend(!0))}))},a.legendInteractivity=function(){var e,t,a=this,o=a.getChildren("dataset");for(e=a.getState("visible")?"hide":"show",t=0;t<(o&&o.length);t++)o[t][e]();a[e]()},a.drawLabel=function(){return this},a.getName=function(){return"boxandwhisker2D"},a.childChanged=function(){return this},a.show=function(){e.prototype.show.call(this)},a.hide=function(){e.prototype.hide.call(this)},t}(l["default"]),R=O;t["default"]=R},1410:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.candlestick":function(){return{"rect.appearing":function(e){return[{initialAttr:{y:e.attr.y+e.attr.height,height:0},slot:"plot"}]},"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}},"initial.dataset.volume":function(){return{"rect.appearing":function(e){return[{initialAttr:{y:e.attr.y+e.attr.height,height:0},slot:"plot"}]},"*":null}}}},1409:(e,t,a)=>{var o=a(269);t.__esModule=!0,t._parseToolText=t._firePlotEvent=t.getPlotIndices=t["default"]=void 0;var r,n=o(a(288)),l=a(274),i=o(a(1323)),s=a(282),c=o(a(1410)),d=a(595),u=l.preDefStr.colors,h=u.B90000,p=u.FFFFFF,g="<b>",f="</b>",m=" ",v="<br />",b=function(e,t,a){var o,r,n,l=this,i=l.getFromEnv("chart"),s=l.components.data[t],c=l.config.currentToolTip,d=s.graphics.element,u=a.originalEvent,h=i.getFromEnv("paper").canvas.style,p=l.getFromEnv("toolTipController");if(d)switch(o=(r=s.config).toolText,n=r.setLink,e){case"fc-mouseover":o&&(c?p.draw(u,o,c):c=l.config.currentToolTip=p.draw(u,o)),i.plotEventHandler(d,a,"DataPlotRollOver"),n&&(h.cursor="pointer");break;case"fc-mouseout":p.hide(c),i.plotEventHandler(d,a,"DataPlotRollOut"),n&&(h.cursor="default");break;case"fc-click":i.plotEventHandler(d,a);break;case"fc-mousemove":o&&(c?p.draw(u,o,c):c=l.config.currentToolTip=p.draw(u,o))}},x=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),n=[],l=this.config.JSONData&&this.config.JSONData.data;for(t=l.length;t--;)(a=l[t]).x>=o&&a.x<=r&&n.push(t);return n},k=function(e){var t,a=this,o=a.config,n=a.components.data,i=a.getFromEnv("chart-attrib"),s="line"===o.plotType?1:0,c="",d=o.JSONData.data[e],u=n[e].config,h=a.getFromEnv("xAxis").getLabel(u.x).label,p=u.open,b=u.close,x=a.getFromEnv("yAxis"),k=u.high,y=u.low,C=u.volume,w=C!==r?d.volumetooltext:r;return o.showTooltip?(t=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(w,d.tooltext,o.volumeToolText,o.toolText),!1)))!==r?t=(0,l.parseTooltext)(t,[3,5,6,10,54,55,56,57,58,59,60,61,81,82],{label:h,yaxisName:(0,l.parseUnsafeString)(i.yaxisname),xaxisName:(0,l.parseUnsafeString)(i.xaxisname),openValue:d.open,openDataValue:x.dataLabels(p),closeValue:d.close,closeDataValue:x.dataLabels(b),highValue:d.high,highDataValue:x.dataLabels(k),lowValue:d.low,lowDataValue:x.dataLabels(y),volumeValue:d.volume,volumeDataValue:x.dataLabels(C)},d,i):(t=null===p||s?c:g+"Open:"+f+m+x.dataLabels(p)+v,t+=null!==b?g+"Close:"+f+m+x.dataLabels(b)+v:c,t+=null===k||s?c:g+"High:"+f+m+x.dataLabels(k)+v,t+=null===y||s?c:g+"Low:"+f+m+x.dataLabels(y)+v,t+=null!==C?g+"Volume:"+f+m+x.dataLabels(C):c):t=c,t};t._parseToolText=k,t.getPlotIndices=x,t._firePlotEvent=b,(0,s.addDep)({name:"candlestickAnimation",type:"animationRule",extension:c["default"]});var y=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,n=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,l=o-n;l>0&&this.removeData(n,l,!1)}},a.removePlots=function(){var e=this.components,t=e&&e.removeDataArr;(0,d._removePlots)(t,this.__removeElem)},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,i,s,c,d,u,g,f,m,v,b,x,k,y,C,w,A,S=this,N=S.config,L=S.getFromEnv("chart"),D=S.config.JSONData,E=D.data||[],T=L.getFromEnv("dataSource").chart,F=E.length,P=S.getFromEnv("number-formatter"),_=S.getFromEnv("color-manager"),V=N.bearBorderColor=(0,l.getFirstColor)((0,l.pluck)(T.bearbordercolor,h)),I=N.bearFillColor=(0,l.getFirstColor)((0,l.pluck)(T.bearfillcolor,h)),B=N.bullBorderColor=(0,l.getFirstColor)((0,l.pluck)(T.bullbordercolor,_.getColor("canvasBorderColor"))),M=N.bullFillColor=(0,l.getFirstColor)((0,l.pluck)(T.bullfillcolor,p)),O=N.linethickness=N.plotBorderThickness=(0,l.pluckNumber)(T.plotlinethickness,1),R=N.plotLineDashLen=(0,l.pluckNumber)(T.plotlinedashlen,5),G=N.plotLineDashGap=(0,l.pluckNumber)(T.plotlinedashgap,4),H=-Infinity,z=+Infinity,W=-Infinity,U=+Infinity;for(S.setState("visible",1===(0,l.pluckNumber)(D.visible,1)),S._conatinerHidden=!!S.getState("visible"),N.minAbsNonZeroValue=Infinity,N.minAbsNonZeroData={},N.defaultPadding={left:.5,right:.5},N.parentYAxis=0,N.toolText=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(D.tooltext,T.plottooltext),!1)),N.name=(0,l.getValidValue)(D.seriesname),N.showTooltip=(0,l.pluckNumber)(T.showtooltip,1),N.showShadow=(0,l.pluckNumber)(T.showshadow,_.getColor("showShadow")),N.showErrorValue=!0,N.errorBarWidthPercent=0,A=(0,l.pluck)(T.maxcolwidth),N.maxColWidth=Math.abs((0,l.pluckNumber)(A,50))||1,w=Math.max((0,l.pluckNumber)(T.plotspacepercent,20)%100,0),N.plotSpacePercent=N.groupPadding=w/200,k=S.components.data=S.components.data||(S.components.data=[]),N.valuePadding=(0,l.pluckNumber)(D.valuepadding,T.valuepadding,2),N.plotBorderThickness=O,n=0;n<F;n+=1)y=E[n],(i=k[n])||(i=k[n]={}),!i.config&&(i.config={}),!i.graphics&&(i.graphics={}),C=i.config,y&&!y.vline&&(C.setLink=(0,l.pluck)(y.link),s=C.open=P.getCleanValue(y.open),c=C.close=P.getCleanValue(y.close),d=C.high=P.getCleanValue(y.high),u=C.low=P.getCleanValue(y.low),null!==(C.volume=P.getCleanValue(y.volume,!0))&&(L.config.drawVolume=!0),m=C.x=P.getCleanValue(y.x),v=C.closeVal=Math.min(s,c),x=C.yVal=Math.max(s,c),g=Math.min(s,c,d,u),f=Math.max(s,c,d,u),C.valuePadding=(0,l.pluckNumber)(y.valuepadding,N.valuePadding),a=(0,l.getFirstColor)((0,l.pluck)(y.bordercolor,c<s?V:B)),o=(0,l.pluckNumber)(y.alpha,100),t=(0,l.getFirstColor)((0,l.pluck)(y.color,c<s?I:M)),C.dashed=(0,l.pluckNumber)(y.dashed,0),C.plotBorderDashStyle=(0,l.pluckNumber)(y.dashed)?(0,l.getDashStyle)(R,G):"none",r={opacity:N.showShadow?o/100:0},C.color=t,C.alpha=o,C.setColor=C.color,C.setAlpha=C.alpha,C.anchorImageUrl=(0,l.pluck)(y.anchorimageurl,D.anchorimageurl,T.anchorimageurl),b=C.borderColor=a,C.borderAlpha=C.plotLineAlpha,C.colorArr=[{color:C.color,alpha:C.alpha},{color:C.borderColor,alpha:C.borderAlpha}],C.showValue=1,C.hoverEffects={},C.y=Math.abs(c-s),C.previousY=v,C.link=(0,l.pluck)(y.link),C.errorValueArr=[],d-x>0&&(C.errorValue=!0,C.errorValueArr.push({errorValue:x-d,errorStartValue:x,errorBarColor:b,errorBarThickness:O,opacity:1})),u-v<0&&(C.errorValue=!0,C.errorValueArr.push({errorValue:v-u,errorStartValue:v,errorBarColor:b,errorBarThickness:O,opacity:1})),C.setValue=x,0!==x&&N.minAbsNonZeroValue>Math.abs(x)&&(N.minAbsNonZeroValue=Math.abs(x),N.minAbsNonZeroData=C),C.dataLabelStyle=S._configureDataLabelStyle(y),null!==g&&(H=Math.max(H,g),z=Math.min(z,g)),null!==f&&(H=Math.max(H,f),z=Math.min(z,f)),null!==m&&(W=Math.max(W,m),U=Math.min(U,m)),m=null!==m?m:n+1,C._x=m,C._y=x,C._b=v,C.high=Math.max(s,c,d,u),C.low=Math.min(s,c,d,u),C.shadow=r,C.toolText=S._parseToolText(n),C.toolTipValue="",C.displayValue=(0,l.parseUnsafeString)((0,l.pluck)(y.displayvalue,y.valuetext,"")));N.yMax=H,N.yMin=z,N.xMax=W,N.xMin=U,S.setState("dirty",!0)},a._parseToolText=function(e){return k.call(this,e)},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.calculateScrollRange=function(){var e=this,t=e.config,a=e.components.data&&e.components.data.length;t.scrollMinVal=t.scrollMinValForLabel=0,t.scrollMaxVal=t.scrollMaxValForLabel=a},a.getPlotIndices=function(e){return x.call(this,e)},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i=this;for(a=i.getFromEnv("xAxis").getValue(e),o=(n=i.getPlotIndices(a)).length-1;o>-1&&!(r=(l=n[o])-a>0?i._checkPointerOverPlot(l,e,t)||i._checkPointerOverPlot(l-1,e,t):i._checkPointerOverPlot(l+1,e,t)||i._checkPointerOverPlot(l,e,t));o--);return r},a._firePlotEvent=function(e,t,a){b.call(this,e,t,a)},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getName=function(){return"candlestick"},t}(i["default"]),C=y;t["default"]=C},1412:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.candlestickbar":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:1,"stroke-width":1},finalAttr:{opacity:1}}]},"*":null}}}},1411:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(274),l=o(a(595)),i=a(1323),s=a(1409),c=a(282),d=o(a(1412)),u=n.preDefStr.colors,h=u.B90000,p=u.FFFFFF,g=n.preDefStr.ROUND,f=n.preDefStr.visibleStr,m=function(e){return function(){this.shadow(e)}};(0,c.addDep)({name:"candlestickbarAnimation",type:"animationRule",extension:d["default"]});var v=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,n=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,l=o-n;l>0&&this.removeData(n,l,!1)}},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,l,i,s,c,d,u,g,f,m,v,b,x,k=this,y=k.config,C=k.getFromEnv("chart").getFromEnv("dataSource"),w=k.config.JSONData,A=w.data||[],S=C.chart,N=A.length,L=k.getFromEnv("number-formatter"),D=k.getFromEnv("color-manager"),E=y.bearBorderColor=(0,n.getFirstColor)((0,n.pluck)(S.bearbordercolor,h)),T=y.bearFillColor=(0,n.getFirstColor)((0,n.pluck)(S.bearfillcolor,h)),F=y.bullBorderColor=(0,n.getFirstColor)((0,n.pluck)(S.bullbordercolor,D.getColor("canvasBorderColor"))),P=y.bullFillColor=(0,n.getFirstColor)((0,n.pluck)(S.bullfillcolor,p)),_=-Infinity,V=+Infinity,I=-Infinity,B=+Infinity;for(k.setState("visible",1===(0,n.pluckNumber)(w.visible,1)),k._conatinerHidden=!!k.getState("visible"),y.defaultPadding={left:.5,right:.5},y.minAbsNonZeroValue=Infinity,y.minAbsNonZeroData={},y.linethickness=(0,n.pluckNumber)(S.plotlinethickness,2),y.toolText=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(w.tooltext,S.plottooltext),!1)),y.name=(0,n.getValidValue)(w.seriesname),y.showTooltip=(0,n.pluckNumber)(S.showtooltip,1),y.showErrorValue=!0,y.errorBarWidthPercent=0,x=(0,n.pluck)(S.maxcolwidth),y.maxColWidth=Math.abs((0,n.pluckNumber)(x,50))||1,y.enableAnimation=(0,n.pluckNumber)(S.animation,S.defaultanimation,1),y.animation=!!y.enableAnimation&&{duration:1e3*(0,n.pluckNumber)(S.animationduration,1)},y.plotLineDashLen=(0,n.pluckNumber)(S.plotlinedashlen,5),y.plotLineDashGap=(0,n.pluckNumber)(S.plotlinedashgap,4),m=k.components.data=k.components.data||(k.components.data=[]),y.valuePadding=(0,n.pluckNumber)(w.valuepadding,S.valuepadding,2),y.showShadow=(0,n.pluckNumber)(S.showshadow,D.getColor("showShadow")),r=0;r<N;r++)v=A[r],(l=m[r])||(l=m[r]={}),!l.config&&(l.config={}),!l.graphics&&(l.graphics={}),b=l.config,v&&!v.vline&&(b.setLink=(0,n.pluck)(v.link),i=b.open=L.getCleanValue(v.open),s=b.close=L.getCleanValue(v.close),c=L.getCleanValue(v.high),d=L.getCleanValue(v.low),b.volume=L.getCleanValue(v.volume,!0),f=b.x=L.getCleanValue(v.x),b.high=Math.max(i,s,c,d),b.low=Math.min(i,s,c,d),b.yVal=Math.max(i,s),u=Math.min(i,s,c,d),g=Math.max(i,s,c,d),b.valuePadding=(0,n.pluckNumber)(v.valuepadding,y.valuePadding),a=(0,n.getFirstColor)((0,n.pluck)(v.bordercolor,s<i?E:F)),o=(0,n.pluckNumber)(v.alpha,100),t=(0,n.getFirstColor)((0,n.pluck)(v.color,s<i?T:P)),b.color=t,b.alpha=o,b.setColor=b.color,b.setAlpha=b.alpha,b.borderColor=a,b.borderAlpha=b.plotLineAlpha,b.colorArr=[{color:b.color,alpha:b.alpha},{color:b.borderColor,alpha:b.borderAlpha}],b.showValue=1,b.hoverEffects={},b.link=(0,n.pluck)(v.link),b.setValue=b.y,0!==b.setValue&&y.minAbsNonZeroValue>Math.abs(b.setValue)&&(y.minAbsNonZeroValue=Math.abs(b.setValue),y.minAbsNonZeroData=b),b.dataLabelStyle=k._configureDataLabelStyle(v),null!==u&&(_=Math.max(_,u),V=Math.min(V,u)),null!==g&&(_=Math.max(_,g),V=Math.min(V,g)),null!==f&&(I=Math.max(I,f),B=Math.min(B,f)),b.dashStyle=(0,n.pluckNumber)(v.dashed)?(0,n.getDashStyle)(y.plotLineDashLen,y.plotLineDashGap):"none",b.shadow={opacity:y.showShadow?o/100:0},f=null!==f?f:r+1,b.toolText=k._parseToolText(r),b.toolTipValue="",b._x=f,b.y=i,b.previousY=s,b.dashed=(0,n.pluckNumber)(y.plotLineDashed,v.dashed,0));y.yMax=_,y.yMin=V,y.xMax=I,y.xMin=B,k.setState("dirty",!0)},a.drawPlots=function(){var e,t,a,o,r,l,i,s,c,d,u,h,p,v,b,x,k=this,y=k.getFromEnv("animationManager"),C=k.config,w=k.components.data,A=w.length,S=k.getFromEnv("xAxis"),N=k.getFromEnv("yAxis"),L=C.linethickness>5?C.linethickness/2:2.5,D=k.getContainer("plotGroup");for(y.setAnimation({el:D,attr:{opacity:k.getState("visible")?1:0},component:k}),k.setColumnPosition(),t=0;t<A;t+=1)e=(a=w[t]).config,x=a.graphics,u=null,null===(l=e.y)?u=x.element:(r=e._x,o=e.link,e.setLink=e.link,s=S.getPixel(r),i=e.previousY,d=N.getPixel(i),c=N.getPixel(l),h=N.getPixel(e.high),p=N.getPixel(e.low),v=k.getFromEnv("columnXShift"),a.errorBar=[],a.errorBar.push([{_xPos:s-L,_yPos:h,_height:Math.abs(h-p),_width:2*L},{_xPos:s+v,_yPos:c,_height:2*L,_width:Math.abs(v)},{_xPos:s,_yPos:d,_height:2*L,_width:Math.abs(v)}]),b=["M",s,p,"L",s,h,"M",s,c,"L",s+v,c,"M",s,d,"L",s-v,d],u=x.element,(u=y.setAnimation({el:u||"path",container:D,attr:{path:b,cursor:o?"pointer":"",fill:(0,n.toRaphaelColor)(e.color),stroke:(0,n.toRaphaelColor)(e.borderColor),"stroke-width":C.linethickness,"stroke-dasharray":e.dashStyle,"stroke-linecap":g,"stroke-linejoin":g,"shape-rendering":"crisp",visibility:f},label:"path",component:k,callback:m.call(u,e.shadow)})).data("eventArgs",a.trackerConfig.eventArgs),x.element=u)},a._parseToolText=function(e){return s._parseToolText.call(this,e)},a._firePlotEvent=function(e,t,a){s._firePlotEvent.call(this,e,t,a)},a._checkPointerOverColumn=function(){},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i=this;for(a=i.getFromEnv("xAxis").getValue(e),o=(n=s.getPlotIndices.call(i,a)).length-1;o>-1&&!(r=(l=n[o])-a>0?i._checkPointerOverPlot(l,e,t)||i._checkPointerOverPlot(l-1,e,t):i._checkPointerOverPlot(l+1,e,t)||i._checkPointerOverPlot(l,e,t));o--);return r},a._checkPointerOverPlot=function(e,t,a){return i._checkPointerOverPlot.call(this,e,t,a)},a._checkPointerOverErrorBar=function(e,t,a){return i._checkPointerOverErrorBar.call(this,e,t,a)},a.drawLabel=function(){},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getName=function(){return"candlestickbar"},t}(l["default"]),b=v;t["default"]=b},1413:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(274),l=o(a(616)),i=a(1409),s=n.preDefStr.colors,c=s.B90000,d=s.FFFFFF,u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,l,i,s,u,h,p,g,f,m,v,b,x,k,y,C=this,w=C.config,A=C.config.JSONData,S=A.data||[],N=C.getFromEnv("chart-attrib"),L=S.length,D=C.getFromEnv("number-formatter"),E=C.getFromEnv("color-manager"),T=w.bearBorderColor=(0,n.getFirstColor)((0,n.pluck)(N.bearbordercolor,c)),F=w.bearFillColor=(0,n.getFirstColor)((0,n.pluck)(N.bearfillcolor,c)),P=w.bullBorderColor=(0,n.getFirstColor)((0,n.pluck)(N.bullbordercolor,E.getColor("canvasBorderColor"))),_=w.bullFillColor=(0,n.getFirstColor)((0,n.pluck)(N.bullfillcolor,d)),V=w.linethickness=w.plotBorderThickness=(0,n.pluckNumber)(N.plotlinethickness,2),I=!!(0,n.pluckNumber)(N.drawanchors,0),B=(0,n.pluckNumber)(N.anchorstartangle,90),M=(0,n.pluckNumber)(N.anchorradius,this.anchorRadius,3),O=(0,n.getFirstColor)((0,n.pluck)(N.anchorbordercolor,P)),R=(0,n.pluckNumber)(N.anchorborderthickness,this.anchorBorderThickness,1),G=(0,n.getFirstColor)((0,n.pluck)(N.anchorbgcolor,E.getColor("anchorBgColor"))),H=(0,n.pluck)(N.anchoralpha,"0"),z=(0,n.pluck)(N.anchorbgalpha,H),W=-Infinity,U=+Infinity,j=-Infinity,J=+Infinity;for(C.setState("visible",1===(0,n.pluckNumber)(A.visible,1)),w.plotLineDashLen=(0,n.pluckNumber)(N.plotlinedashlen,5),w.plotLineDashGap=(0,n.pluckNumber)(N.plotlinedashgap,4),C._conatinerHidden=!!C.getState("visible"),w.defaultPadding={left:.5,right:.5},w.plotType="line",w.parentYAxis=0,w.toolText=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(A.tooltext,N.plottooltext),!1)),w.name=(0,n.getValidValue)(A.seriesname),w.showTooltip=(0,n.pluckNumber)(N.showtooltip,1),w.maxColWidth=Math.abs((0,n.pluckNumber)((0,n.pluck)(N.maxcolwidth),50))||1,w.enableAnimation=(0,n.pluckNumber)(N.animation,N.defaultanimation,1),w.animation=!!w.enableAnimation&&{duration:1e3*(0,n.pluckNumber)(N.animationduration,1)},w.lineAlpha=(0,n.pluck)(N.plotlinealpha,"100"),y=Math.max((0,n.pluckNumber)(N.plotspacepercent,20)%100,0),w.plotSpacePercent=w.groupPadding=y/200,b=C.components.data=C.components.data||(C.components.data=[]),w.valuePadding=(0,n.pluckNumber)(A.valuepadding,N.valuepadding,2),w.plotBorderThickness=V,w.showvalues=1,w.showShadow=(0,n.pluckNumber)(N.showshadow,E.getColor("showShadow")),i=0;i<L;i+=1)x=S[i],(s=b[i])||(s=b[i]={}),!s.config&&(s.config={}),!s.graphics&&(s.graphics={}),k=s.config,x&&!x.vline&&(k.setLink=(0,n.pluck)(x.link),u=k.open=D.getCleanValue(x.open),h=k.close=D.getCleanValue(x.close),p=k.high=D.getCleanValue(x.high),g=k.low=D.getCleanValue(x.low),k.volume=D.getCleanValue(x.volume,!0),v=k.x=D.getCleanValue(x.x),k.closeVal=Math.min(u,h),k.yVal=Math.max(u,h),f=Math.min(u,h,p,g),m=Math.max(u,h,p,g),k.valuePadding=(0,n.pluckNumber)(x.valuepadding,w.valuePadding),a=(0,n.getFirstColor)((0,n.pluck)(x.bordercolor,h<u?T:P)),o=(0,n.pluck)(x.alpha,w.lineAlpha),t=(0,n.getFirstColor)((0,n.pluck)(x.color,h<u?F:_)),r=(0,n.pluckNumber)(x.dashed)?(0,n.getDashStyle)(w.plotLineDashLen,w.plotLineDashGap):"none",k.dashStyle=r,l={opacity:w.showShadow?o/100:0},k.rawDataColor=t,k.color=a,k.alpha=o,k.dashed=(0,n.pluckNumber)(w.plotLineDashed,x.dashed,0),k.setColor=k.color,k.setAlpha=k.alpha,k.anchorImageUrl=(0,n.pluck)(x.anchorimageurl,A.anchorimageurl,N.anchorimageurl),k.borderColor=a,k.borderAlpha=k.plotLineAlpha,k.colorArr=[{color:k.color,alpha:k.alpha},{color:k.borderColor,alpha:k.borderAlpha}],k.dataLabelStyle=C._configureDataLabelStyle(x),k.anchorSides=(0,n.pluckNumber)(x.anchorsides,A.anchorsides,N.anchorsides),k.symbol=(0,n.mapSymbolName)(k.anchorSides).split("_"),k.anchorProps={enabled:I,bgColor:G,symbol:k.symbol,bgAlpha:z*H/100+"",borderColor:O,borderAlpha:H,anchorAlpha:H,borderThickness:R,imageUrl:k.anchorImageUrl,radius:M,imageScale:(0,n.pluckNumber)(x.imagescale,A.imagescale,N.imagescale,100),imagePadding:(0,n.pluckNumber)(x.anchorimagepadding,A.anchorimagepadding,N.anchorimagepadding,1),imageAlpha:(0,n.pluckNumber)(A.anchorimagealpha,N.anchorimagealpha,100),startAngle:B},k.showValue=x.displayvalue?1:0,k.hoverEffects={},k.anchorSides=(0,n.pluckNumber)(x.anchorsides,A.anchorsides,N.anchorsides),k.symbol=(0,n.mapSymbolName)(k.anchorSides).split("_"),k.hoverEffects={},k.y=h,k.link=(0,n.pluck)(x.link),k.toolText=C._parseToolText(i),k.toolTipValue=n.BLANKSTRING,k.setValue=k._y=k.y,k.displayValue=(0,n.parseUnsafeString)((0,n.pluck)(x.displayvalue,x.valuetext,"")),null!==f&&(W=Math.max(W,f),U=Math.min(U,f)),null!==m&&(W=Math.max(W,m),U=Math.min(U,m)),null!==v&&(j=Math.max(j,v),J=Math.min(J,v)),v=v||i+1,k._x=k.x=v,k.high=Math.max(u,h,p,g),k.low=Math.min(u,h,p,g),k.shadow=l);w.yMax=W,w.yMin=U,w.xMax=j,w.xMin=J,C.setState("dirty",!0)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawLine=1},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.config.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.rawDataColor,borderColor:a.borderColor,dashed:a.dashed})},a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,n=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,l=o-n;l>0&&this.removeData(n,l,!1)}},a.calculateScrollRange=function(){var e=this,t=e.config,a=e.components.data&&e.components.data.length;t.scrollMinVal=t.scrollMinValForLabel=0,t.scrollMaxVal=t.scrollMaxValForLabel=a},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getPlotIndices=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),n=[],l=this.config.JSONData&&this.config.JSONData.data;for(t=l.length;t--;)(a=l[t]).x>=o&&a.x<=r&&n.push(t);return n},a._parseToolText=function(e){return i._parseToolText.call(this,e)},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i,s=this,c=e,d=t,u=s.getFromEnv("xAxis"),h=s.components.data,p=s.config,g=p&&p.radius||0;c+=u.getTranslation();var f=(r=(o=s.getPlotIndices(Math.floor(Math.max(u.getValue(c-g),0))))[0])>(n=(o=s.getPlotIndices(Math.ceil(Math.min(u.getValue(c+g),h.length-1))))[o.length-1])?[n,r]:[r,n];for(r=f[0],i=n=f[1];i>=r&&(!(a=h[i])||!(l=s.isWithinShape(a,i,c,d)));i--);return l},a.getName=function(){return"candlestickline"},t}(l["default"]),h=u;t["default"]=h},1408:(e,t,a)=>{var o=a(269);t.__esModule=!0;var r=o(a(1409));t.CandleStickDataset=r["default"];var n=o(a(1411));t.CandleStickBarDataset=n["default"];var l=o(a(1413));t.CandleStickLineDataset=l["default"];var i=o(a(1414));t.VolumeDataset=i["default"];var s=o(a(1415));t.TrendSet=s["default"]},1416:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.trendset.trendset":o(a(619))["default"]["initial.dataset.line"]};t["default"]=r},1415:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(616)),l=a(274),i=a(282),s=o(a(1416));(0,i.addDep)({name:"trendsetAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawLine=1},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,i,s=this,c=s.getFromEnv("chart-attrib"),d=s.config.JSONData,u=s.index,h=d.data||d.set||[],p=s.config,g=s.components.data,f=-Infinity,m=+Infinity,v=-Infinity,b=+Infinity,x=s.getFromEnv("number-formatter"),k=(0,l.getFirstColor)((0,l.pluck)(d.color,c.trendsetcolor,"666666")),y=(0,l.pluck)(d.alpha,c.trendsetalpha,"100"),C=(0,l.pluckNumber)(d.thickness,c.trendsetthickness,2),w=Boolean((0,l.pluckNumber)(d.dashed,c.trendsetdashed,0)),A=(0,l.pluckNumber)(d.dashlen,c.trendsetdashlen,4),S=(0,l.pluckNumber)(d.dashgap,c.trendsetdashgap,4);for(p.includeInLegend=(0,l.pluckNumber)(d.includeinlegend,1),p.lineColor=k,p.lineAlpha=y,p.connectNullData=(0,l.pluckNumber)(c.connectnulldata,0),p.linethickness=C,p.lineDashStyle=w?(0,l.getDashStyle)(A,S):"none",p.name=(0,l.getValidValue)(d.name),p.includeInLegend=(0,l.pluckNumber)(d.includeinlegend,1),p.defaultPadding={left:.5,right:.5},g||(g=s.components.data=[]),u=0,i=h.length;u<i;u+=1)(t=h[u])&&!t.vline&&(a=(r=(o=g[u]=g[u]||(g[u]={})).config=o.config||(o.config={}))._y=r.setValue=x.getCleanValue(t.value),r.setColor=p.lineColor,r.setAlpha=p.lineAlpha,n=x.getCleanValue(t.x),n=r._x=r.x=null!==n?n:u+1,f=Math.max(f,a),m=Math.min(m,a),b=Math.min(b,n),v=Math.max(v,n),r.anchorProps=this._parseAnchorProperties(u),r.hoverEffects={},o.graphics||(o.graphics={}));p.max=f,p.min=m,p.xMax=v,p.xMin=b,s.getFromEnv("chartConfig").showLegend&&s._addLegend(),s.setState("visible",!0),s.setState("dirty",!0)},a._addLegend=function(){var e,t=this,a=t.config,o=t.getFromEnv("legend");a.includeinlegend?((e=o.getItem(t.config.legendItemId))?e.configure({style:o.config.itemStyle,hiddenStyle:o.config.itemHiddenStyle,datasetVisible:o.config.datasetVisible,hoverStyle:o.config.itemHoverStyle}):(t.config.legendItemId=o.createItem(t),e=o.getItem(t.config.legendItemId)),e.configure({enabled:a.includeInLegend,interactiveLegend:!1,type:t.type,drawLine:!0,label:(0,l.getFirstValue)(t.config.JSONData.name)}),e.setStateCosmetics("default",{symbol:{stroke:(0,l.toRaphaelColor)({color:a.lineColor,alpha:"100"}),rawFillColor:a.lineColor}})):t.config.legendItemId&&o.disposeItem(t.config.legendItemId)},a.getDataLimits=function(){var e=this.config;return{max:e.max,min:e.min,xMax:e.xMax,xMin:e.xMin}},a.getType=function(){return"trendset"},a.drawLabel=function(){},a.getName=function(){return"trendset"},t}(n["default"]),d=c;t["default"]=d},1414:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(595)),l=a(274),i=a(1409),s=l.preDefStr.colors,c=s.B90000,d=s.FFFFFF,u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,i,s,u,h,p,g,f,m,v,b,x,k,y=this,C=y.config,w=y.config.JSONData,A=w.data||[],S=y.getFromEnv("chart-attrib"),N=y.getFromEnv("chartConfig"),L=A.length,D=y.getFromEnv("color-manager"),E=C.bearBorderColor=(0,l.getFirstColor)((0,l.pluck)(S.bearbordercolor,N.vplotbordercolor,c)),T=C.bearFillColor=(0,l.getFirstColor)((0,l.pluck)(S.bearfillcolor,c)),F=C.bullBorderColor=(0,l.getFirstColor)((0,l.pluck)(S.bullbordercolor,N.vplotbordercolor,D.getColor("canvasBorderColor"))),P=C.bullFillColor=(0,l.getFirstColor)((0,l.pluck)(S.bullfillcolor,d)),_=(0,l.pluckNumber)(N.showplotborder,1)?(0,l.pluckNumber)(S.vplotborderthickness,1):0,V=y.getFromEnv("number-formatter"),I=-Infinity,B=+Infinity,M=-Infinity,O=+Infinity;for(y.setState("visible",1===(0,l.pluckNumber)(w.visible,1)),!0===y.getState("visible")?y._conatinerHidden=!1:y._containerHidden=!0,C.minAbsNonZeroValue=Infinity,C.minAbsNonZeroData={},C.parentYAxis=1,C.volumeToolText=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(w.volumetooltext,S.volumetooltext,S.plottooltext),!1)),C.name=(0,l.getValidValue)(w.seriesname),C.showTooltip=(0,l.pluckNumber)(S.showtooltip,1),C.showShadow=(0,l.pluckNumber)(S.showshadow,D.getColor("showShadow")),C.maxColWidth=Math.abs((0,l.pluckNumber)((0,l.pluck)(S.maxcolwidth),50))||1,k=Math.max((0,l.pluckNumber)(S.plotspacepercent,20)%100,0),C.plotSpacePercent=C.groupPadding=k/200,C.plotborderthickness=_,v=y.components.data=y.components.data||(y.components.data=[]),g=(0,l.extend2)((0,l.extend2)({},S),{sforcedecimals:(0,l.getFirstValue)(S.forcevdecimals,S.forcedecimals),sforceyaxisvaluedecimals:(0,l.getFirstValue)(S.forcevyaxisvaluedecimals,S.forceyaxisvaluedecimals),syaxisvaluedecimals:(0,l.getFirstValue)(S.vyaxisvaluedecimals,S.yaxisvaluedecimals),sformatnumber:(0,l.getFirstValue)(S.vformatnumber,S.formatnumber),sformatnumberscale:(0,l.getFirstValue)(S.vformatnumberscale,S.formatnumberscale,"1"),sdefaultnumberscale:(0,l.getFirstValue)(S.vdefaultnumberscale,S.defaultnumberscale),snumberscaleunit:(0,l.getFirstValue)(S.vnumberscaleunit,S.numberscaleunit),vnumberscalevalue:(0,l.getFirstValue)(S.vnumberscalevalue,S.numberscalevalue),sscalerecursively:(0,l.getFirstValue)(S.vscalerecursively,S.scalerecursively),smaxscalerecursion:(0,l.getFirstValue)(S.vmaxscalerecursion,S.maxscalerecursion),sscaleseparator:(0,l.getFirstValue)(S.vscaleseparator,S.scaleseparator),snumberprefix:(0,l.getFirstValue)(S.vnumberprefix,S.numberprefix),snumbersuffix:(0,l.getFirstValue)(S.vnumbersuffix,S.numbersuffix),sdecimals:(0,l.getFirstValue)(S.vdecimals,S.decimals)}),f=C.plotLineDashLen=(0,l.pluckNumber)(S.plotlinedashlen,5),m=C.plotLineDashGap=(0,l.pluckNumber)(S.plotlinedashgap,4),y.getFromEnv("number-formatter").configure(g),r=0;r<L;r+=1)b=A[r],(n=v[r])||(n=v[r]={}),!n.config&&(n.config={}),!n.graphics&&(n.graphics={}),x=n.config,b&&!b.vline&&(i=x.open=V.getCleanValue(b.open),s=x.close=V.getCleanValue(b.close),u=x.volume=V.getCleanValue(b.volume,!0),x.high=V.getCleanValue(b.high),x.low=V.getCleanValue(b.low),h=x.x=V.getCleanValue(b.x),I=Math.max(I,u),B=Math.min(B,u),M=Math.max(M,h),O=Math.min(O,h),x.borderColor=(0,l.getFirstColor)((0,l.pluck)(b.bordercolor,s<i?E:F)),a=(0,l.pluckNumber)(b.alpha,100),p=(0,l.pluckNumber)(N.vplotborderalpha,b.alpha,100),t=(0,l.getFirstColor)((0,l.pluck)(b.color,s<i?T:P)),o={opacity:C.showShadow?a/100:0},x.color=t,x.alpha=a,x.setLink=b.link,x.borderWidth=_,x.borderAlpha=p,x.y=u,x.colorArr=[{color:x.color,alpha:x.alpha},{color:x.borderColor,alpha:x.borderAlpha}],x.toolText=y._parseToolText(r),x.toolTipValue=l.BLANKSTRING,x.setValue=x._y=x.y,0!==u&&C.minAbsNonZeroValue>Math.abs(u)&&(C.minAbsNonZeroValue=Math.abs(u),C.minAbsNonZeroData=x),x.dashed=(0,l.pluckNumber)(C.plotLineDashed,b.dashed,0),x.plotBorderDashStyle=(0,l.pluckNumber)(b.dashed)?(0,l.getDashStyle)(f,m):"none",h=null!==h?h:r+1,x._x=h,x.shadow=o);C.defaultPadding={left:0,right:0},C.yMax=I,C.yMin=B,C.xMax=M,C.xMin=O,y.setState("dirty",!0)},a._parseToolText=function(e){return i._parseToolText.call(this,e)},a.getPlotIndices=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),n=[],l=this.config.JSONData&&this.config.JSONData.data;for(t=l.length;t--;)(a=l[t]).x>=o&&a.x<=r&&n.push(t);return n},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i=this,s=e,c=t,d=i.getFromEnv("xAxis");for(s+=d.getTranslation(),a=d.getValue(s),o=(n=i.getPlotIndices(a)).length-1;o>-1&&!(r=(l=n[o])-a>0?i._checkPointerOverColumn(l,s,c)||i._checkPointerOverColumn(l-1,s,c):i._checkPointerOverColumn(l+1,s,c)||i._checkPointerOverColumn(l,s,c));o--);return r},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.calculateScrollRange=function(){var e=this,t=e.config;t.scrollMinVal=0,t.scrollMaxVal=e.components.data&&e.components.data.length,t.scrollMinValForLabel=t.scrollMinVal,t.scrollMaxValForLabel=t.scrollMaxVal},a.drawLabel=function(){},a.getName=function(){return"volume"},t}(n["default"]),h=u;t["default"]=h},1467:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),n=o(a(288)),l=a(290),i=o(a(1468)),s=o(a(1471)),c=a(274);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var h=function(e,t){return e-t},p=function(e){function t(t){var a;return(a=e.call(this,t)||this).registerFactory("chord-node-factory",i["default"]),a.registerFactory("chord-link-factory",s["default"]),a}(0,n["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.total=0,t.adjustedTotal=0},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t);var a,o=this.config,r=o.totalAngle,n=o.startingAngle,l=o.nodesOrder,i=o.nodes,s=o.linksOrder,d=o.links;r-=o.nodeSpacing*l.length,a=o.total=l.reduce((function(e,t){return e+i[t].total}),0),o.adjustedTotal=l.reduce((function(e,t){var r=i[t];return r.total/(a||1)<o.minNodeSize?r.adjustedTotal=(a||1)*o.minNodeSize:r.adjustedTotal=r.total,e+r.adjustedTotal}),0),o.interactiveLegend=(0,c.pluckNumber)(this.getFromEnv("chart-attrib").interactivelegend,1);var u=r/o.adjustedTotal;l.forEach((function(e){var t=i[e];t.startingAngle=n,t.arcAngle=t.adjustedTotal*u,t.endingAngle=n+t.arcAngle,t.scale.setRange([t.startingAngle,t.endingAngle]).setDomain([0,t.adjustedTotal]),n=t.endingAngle+o.nodeSpacing})),s.forEach((function(e){if(d[e].visible){var t,a,r=d[e],n=o.isPost?r.linkedNodes[1]:r.linkedNodes[0],l=o.isPost?r.linkedNodes[0]:r.linkedNodes[1],s=i[n],c=i[l],u=s.scale,h=c.scale,p=u.getRangeValue(s.nodeCovered),g=u.getRangeValue(s.nodeCovered+=r[n]||0);r.points.length&&(r.points.length=0),n===l?(t=p,a=g):(t=h.getRangeValue(c.nodeCovered),a=h.getRangeValue(c.nodeCovered+=r[l]||0)),r.points.push(p,g,t,a)}})),s.forEach((function(e){var t=d[e],a=t.dominantNode;if(t.angles=t.points.slice(0).sort(h),a.length>1&&i[a[0]].rawColor!==i[a[1]].rawColor){var o=i[a[0]].index>i[a[1]].index?[i[a[1]],i[a[0]]]:[i[a[0]],i[a[1]]];t.rawColor=[o[0].rawColor,o[1].rawColor]}else t.normalState.fill=(0,c.convertColor)(i[a[0]].rawColor,t.alpha),t.normalState.stroke=(0,c.convertColor)(i[a[0]].rawColor,t.borderAlpha),t.focussedState.fill=(0,c.convertColor)(i[a[0]].rawColor,t.hoverAlpha),t.focussedState.stroke=t.focussedState.fill,t.unfocussedState.fill=(0,c.convertColor)(i[a[0]].rawColor,t.unfocussedAlpha),t.unfocussedState.stroke=t.unfocussedState.fill}))},a.setDimension=function(e){var t=this,a=t.config;Object.assign(a,e),t.getChildren("node")&&t.getChildren("node").forEach((function(e){return!e.getState("removed")&&e.setDimension({outerRadius:a.nodeOuterRadius,innerRadius:a.nodeInnerRadius})})),t.getChildren("ribbon")&&t.getChildren("ribbon").forEach((function(e){return!e.getState("removed")&&e.setDimension({radius:a.ribbonRadius})}))},a._manageSpace=function(e){var t=this.getChildren("node").map((function(t){return t._manageSpace(e)})),a=Math.max.apply(Math,t);return{width:a,height:a}},a._createContainer=function(){var e=this,t=e.config;e.addGraphicalElement({el:"group",container:{id:"plotGroup",isParent:!0},component:e,label:"link-container",id:"link-container",attr:{name:"link-container",transform:t.translate}}),e.addGraphicalElement({el:"group",container:{id:"plotGroup",isParent:!0},component:e,label:"node-container",id:"node-container",attr:u({name:"node-container",transform:t.translate},t.datalabelStyle)})},a.draw=function(){this._createContainer()},a.getName=function(){return"node-link-manager"},a.getType=function(){return"node-link-manager"},a._addLegend=function(){var e,t,a=this,o=a.config,r=o.nodes,n=o.nodesOrder,l=a.getFromEnv("legend"),i=o.legendItemMap||(o.legendItemMap={}),s=new Set;Object.keys(i).forEach((function(e){return s.add(i[e])})),n.forEach((function(o){var n=r[o];t=i[o],(e=l.getItem(t))?(e.removeLegendState("hidden"),s["delete"](t)):(t=l.createItem(),e=l.getItem(t),i[o]=t,a.addExtEventListener("fc-click",(function(){if(a.config.interactiveLegend){var e=a.config.nodes[o],t=l.getItem(i[o]);a.nodeClicked(e.label,t)}}),e),a.addExtEventListener("fc-mouseover",(function(){a.config.interactiveLegend&&a.nodeHoverIn(o)}),e),a.addExtEventListener("fc-mouseout",(function(){a.config.interactiveLegend&&a.nodeHoverOut(o)}),e)),e.configure({enabled:!0,label:o}),e.setStateCosmetics("default",{symbol:{rawFillColor:n.color,rawStrokeColor:n.color,fill:n.color,stroke:n.color}})})),s.forEach((function(e){l.disposeItem(e)}))},a.nodeClicked=function(e,t){if(this.config.enableToggle){var a=this.config,o=a.nodes,r=a.nodesOrder,n=a.links,l=o[e],i=l.linkedLinks,s=l.active;l.active?t&&t.setLegendState("hidden"):t&&t.removeLegendState("hidden"),l.active=!s,i.forEach((function(e){var t=n[e],r=a.isPost?t.linkedNodes[1]:t.linkedNodes[0],l=a.isPost?t.linkedNodes[0]:t.linkedNodes[1],i=o[r],s=o[l],d=t.visible;t.visible=i.active&&s.active,t.visible!==d&&(t.visible?(i.total=(0,c.toPrecision)(i.total+(t[r]||0),4),l!==r&&(s.total=(0,c.toPrecision)(s.total+(t[l]||0),4))):(i.total=(0,c.toPrecision)(i.total-(t[r]||0),4),l!==r&&(s.total=(0,c.toPrecision)(s.total-(t[l]||0),4))))})),r.forEach((function(e){return o[e].nodeCovered=0})),s?this.nodeHoverOut(e,!1):this.nodeHoverIn(e,!1),this.setData({},!0),this.setDimension()}},a.linkHoverIn=function(e,t){if(void 0===t&&(t=!0),this.config.highlightEffect){var a=this,o=a.config,r=o.links,n=o.nodes,l=o.nodesOrder,i=o.linksOrder,s=r[e].linkedNodes;l.forEach((function(e){var o=n[e],r=a.getChild(e);r&&!r.getState("removed")&&(s.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&r.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),i.forEach((function(o){var n=r[o],l=a.getChild(o);l&&!l.getState("removed")&&(o===e?(n.hovered=!0,n.unfocussed=!1):(n.hovered=!1,n.unfocussed=!0),t&&l.setData({hovered:n.hovered,unfocussed:n.unfocussed},!0))})),t&&this.setDimension()}},a.resetEffect=function(e){void 0===e&&(e=!0);var t=this,a=t.config,o=a.links,r=a.nodes,n=a.nodesOrder,l=a.linksOrder;n.forEach((function(a){var o=r[a],n=t.getChild(a);n&&!n.getState("removed")&&(o.hovered=!1,o.unfocussed=!1,e&&n.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),l.forEach((function(a){var r=o[a],n=t.getChild(a);n&&!n.getState("removed")&&(r.hovered=!1,r.unfocussed=!1,e&&n.setData({hovered:r.hovered,unfocussed:r.unfocussed},!0))})),this.setDimension()},a.linkHoverOut=function(e,t){void 0===t&&(t=!0),this.config.highlightEffect&&this.resetEffect(t)},a.nodeHoverIn=function(e,t){if(void 0===t&&(t=!0),this.config.highlightEffect){var a=this,o=a.config,r=o.links,n=o.nodes,l=o.nodesOrder,i=o.linksOrder,s=n[e],c=s.linkedLinks,d=c.map((function(t){return r[t].linkedNodes[0]===e?r[t].linkedNodes[1]:r[t].linkedNodes[0]}));d.push(e),l.forEach((function(e){var o=n[e],r=a.getChild(e);r&&!r.getState("removed")&&(d.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&s.active&&r.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),i.forEach((function(e){var o=r[e],n=a.getChild(e);n&&!n.getState("removed")&&(c.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&s.active&&n.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),t&&s.active&&this.setDimension()}},a.nodeHoverOut=function(e,t){void 0===t&&(t=!0),this.config.highlightEffect&&this.resetEffect(t)},t}(l.SmartRenderer);t["default"]=p},1469:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(290),l=a(1454),i=a(1470),s=a(274),c=a(651),d=function(e,t,a,o){var r=(0,l.polarToCartesian)(o,(0,i.normaliseAngle)(e),!1),n=r.x,s=r.y,c=(0,l.polarToCartesian)(o,(0,i.normaliseAngle)(t),!1);return"M "+n+" "+s+" A "+o+" "+o+" 0 "+(a>180?1:0)+" "+(e>t?0:1)+" "+c.x+" "+c.y},u="#ff0000",h="tangential",p="outside",g=function(e){var t=this,a=t.getLinkedParent(),o=t.getFromEnv("legend"),r=t.getFromEnv("chart"),n=o?o.getItem(a.config.legendItemMap[t.config.label]):null,l={};v(l,t),a.nodeClicked(t.config.label,n),r.plotEventHandler(null,e,"dataplotclick",l)},f=function(e){var t=this.getFromEnv("chart");this.getLinkedParent().nodeHoverIn(this.config.label);var a={};v(a,this),t.plotEventHandler(null,e,"DataPlotRollOver",a)},m=function(e){var t=this.getFromEnv("chart");this.getLinkedParent().nodeHoverOut(this.config.label);var a={};v(a,this),t.plotEventHandler(null,e,"DataPlotRollOut",a)},v=function(e,t){var a,o=t.getLinkedParent();for(e.label=t.config.label,e.color=t.config.color,e.alpha=t.config.alpha,e.links={},e.value=t.config.total,e.displayValue=t.config.formattedValue,e.nodeValue=t.config.nodevalue,e.nodeDataValue=t.config.nodedatavalue,e.plotFillColor=t.config.plotfillcolor,e.toolText=t.config.tooltext,a=0;a<t.config.linkedLinks.length;a++){var r,n=t.config.linkedLinks[a],l=o.config.links[n],i=[],c=e.label,d={},u={};d[c]=l[c],u[r=n.replace(c,"").replace(",","")]=l[r],i.push(d),r!==c&&l[r]!==s.UNDEF&&i.push(u),e.links[n]=i}},b=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},x=function(e){function t(t){var a;return(a=e.call(this,t)||this).addEventListener("fc-click",g),a.addEventListener("fc-mouseover",f),a.addEventListener("fc-mouseout",m),a}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.styles={fill:u,stroke:u,"fill-alpha":.7}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t);var a=this;a.config.formattedValue=a.getFromEnv("number-formatter").dataLabels(a.config.total),a.config.formattedNodeDataValue=a.getFromEnv("number-formatter").dataLabels(a.config.nodedatavalue)},a.setDimension=function(e){Object.assign(this.config,e)},a.allocatePosition=function(){var e,t,a,o,r,n=this,u=n.config,g=u.label,f=n.getFromEnv("chartConfig"),m=f.canvasHeight,v=f.canvasWidth,b=f.cx,x=f.cy,k=f.style,y=u.labelPosition,C=u.outerRadius+u.nodeLabelGap,w=n.getFromEnv("smartLabel"),A=(0,i.normaliseAngle)(u.startingAngle),S=(0,i.normaliseAngle)(u.endingAngle),N={};switch(u.style["font-size"]=a=this.computeFontSize(k.inCanfontSizeWithUnit),o=(0,s.setLineHeight)({fontSize:a}).replace(/px/gi,s.BLANKSTRING),w.setStyle(u.style),w.useEllipsesOnOverflow(n.getFromEnv("chartConfig").useEllipsesOnOverflow),y){case h:var L,D,E=(A+S)/2%360,T=0;switch(r=(0,l.polarToCartesian)(C,E,!1),(0,c.getQuadrant)((0,l.deg2Rad)(E))){case 0:L=v/2,D=m/2,e=Math.tan((0,l.deg2Rad)(360-E)),T=Math.abs(L*e)<=D?(0,i.getCartesianDistance)(r.x+b,r.y+x,b+L,x-L*e):(0,i.getCartesianDistance)(r.x+b,r.y+x,b-D/e,x+D);break;case 1:L=-1*v/2,D=m/2,e=Math.tan((0,l.deg2Rad)(180+E)),T=Math.abs(L*e)<=Math.abs(D)?(0,i.getCartesianDistance)(r.x+b,r.y+x,b+L,x+L*e):(0,i.getCartesianDistance)(r.x+b,r.y+x,b+D/e,x+D);break;case 2:L=-1*v/2,D=m/2*-1,e=Math.tan((0,l.deg2Rad)(360-E)),T=Math.abs(L*e)<=Math.abs(D)?(0,i.getCartesianDistance)(r.x+b,r.y+x,b+L,x-L*e):(0,i.getCartesianDistance)(r.x+b,r.y+x,b-D/e,x+D);break;case 3:L=v/2,D=m/2*-1,e=Math.tan((0,l.deg2Rad)(-1*E)),T=Math.abs(L*e)<=Math.abs(D)?(0,i.getCartesianDistance)(r.x+b,r.y+x,b+L,x-L*e):(0,i.getCartesianDistance)(r.x+b,r.y+x,b-D/e,x+D)}t=w.getSmartText(g,T,o),N.transform=(0,s.getSuggestiveRotation)((0,i.getTextRotationByQuadrant)(E),r.x,r.y),(0,i.isAngleInLeftHemisphere)(E)&&(N["text-anchor"]="end"),N.x=r.x,N.y=r.y;break;case p:var F=(A+S)/2%360,P=(0,l.deg2Rad)(F),_=(0,c.getCleanAngle)(P),V=(0,l.rad2Deg)(_),I=(0,i.isAngleInTopHemisphere)(V),B=(0,i.getArcLength)(C,A,S),M=I?u.startingAngle:u.endingAngle,O=I?u.endingAngle:u.startingAngle;t=w.getSmartText(g,B-4,o),s.isIE11&&(I||(C+=.7*t.height)),N.textpath={path:d(M,O,u.arcAngle,C),startOffset:"50%"},N[s.TEXTANCHOR]=s.MIDDLESTR,N["vertical-align"]=I?"top":"bottom",N.transform=null,N.x=0,N.y=0;break;default:var R=(A+S)/2%360,G=(0,l.deg2Rad)(R),H=(0,c.getCleanAngle)(G),z=(0,l.rad2Deg)(H),W=(0,i.isAngleInTopHemisphere)(z),U=(u.outerRadius+u.innerRadius)/2,j=(0,i.getArcLength)(U,A,S),J=W?u.startingAngle:u.endingAngle,K=W?u.endingAngle:u.startingAngle;t=w.getSmartText(g,j-4,o),s.isIE11&&(W?U-=.3*t.height:U+=.3*t.height),N.textpath={path:d(J,K,u.arcAngle,U),startOffset:"50%"},N[s.TEXTANCHOR]=s.MIDDLESTR,N["vertical-align"]=s.MIDDLESTR,N.transform=null,N.x=0,N.y=0}N.fill=(0,s.convertColor)(u.labelColor,100),N.text=t.text,N.cursor=s.POINTER,N["text-anchor"]=N["text-anchor"]||"start",n.config.labelAttrs=N,n.config.path=function(e,t,a,o,r){var n=(0,i.normaliseAngle)(e),c=(0,i.normaliseAngle)(t),d=(0,l.polarToCartesian)(o,n,!1),u=d.x,h=d.y,p=(0,l.polarToCartesian)(o,c,!1),g=p.x,f=p.y,m=(0,l.polarToCartesian)(r,n,!1),v=m.x,b=m.y,x=(0,l.polarToCartesian)(r,c,!1),k=x.x,y=x.y;return u=(0,s.toPrecision)(u,4),h=(0,s.toPrecision)(h,4),g=(0,s.toPrecision)(g,4),f=(0,s.toPrecision)(f,4),v=(0,s.toPrecision)(v,4),b=(0,s.toPrecision)(b,4),k=(0,s.toPrecision)(k,4),y=(0,s.toPrecision)(y,4),[i.M,u,h,i.A,o,o,0,a>180?1:0,1,g,f,i.L,k,y,i.A,r,r,0,a>180?1:0,0,v,b,i.Z]}(u.startingAngle,u.endingAngle,u.arcAngle,u.outerRadius,u.innerRadius),n.config.focussedState.path=n.config.path,n.config.normalState.path=n.config.path,n.config.unfocussedState.path=n.config.path,n.config.deactiveState.path=n.config.path},a.draw=function(){var e,t=this,a=t.config,o=t.getFromEnv("chartConfig"),r=a.showToolTip?function(e,t,a){var o,r,n,l,c,d,u,h,p,g=s.isIpad?i.SMALLSQUARE:i.MEDIUMSQUARE,f=[3,133,134,143,144,145],m=t.computeFontSize(a.style.inCanfontSizeWithUnit),v=t.getLinkedParent(),x=a&&a.drawcustomlegendicon,k=t.getFromEnv("legend"),y=(null==e?void 0:e.nonce)||"",C=[],w=[],A=x&&k&&k.config&&k.config.isActive?k.getItem(v.config.legendItemMap[t.config.label]):null,S=A&&A.getGraphicalElement();if(u=s.BLANKSTRING,A){if(o=(c=S&&S.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),l=c&&c.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)w.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),C[r]=o[r].split(",");if(C&&C.length)for(r=0;r<C.length;r++){if(C[r].length)for(n=0;n<C[r].length;n++)C[r][n]=Number(C[r][n]),"A"!==w[r]?0===n?C[r][n]=C[r][n]-l.x:1===n&&(C[r][n]=C[r][n]-l.y):"A"===w[r]&&(5===n?C[r][n]=C[r][n]-l.x:6===n&&(C[r][n]=C[r][n]-l.y));u+=w[r]+C[r].toString()}u+="Z"}h={label:e.label,value:e.total,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:A?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+u+" fill = "+S.legendItemSymbol.node.getAttribute("fill")+" stroke = "+S.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+S.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+S.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+S.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+S.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"},p=(0,s.parseTooltext)(e.tooltext,f,h,{label:e.label,value:e.formattedValue,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:A?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+u+" fill = "+S.legendItemSymbol.node.getAttribute("fill")+" stroke = "+S.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+S.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+S.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+S.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+S.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"}),d=(0,s.parseTooltext)(e.tooltext,f,h,{label:e.label,value:e.formattedValue,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:A?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+u+" fill = "+S.legendItemSymbol.node.getAttribute("fill")+" stroke = "+S.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+S.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+S.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+S.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+S.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"}),e.setToolText=p,e.setPlotTooltext=e.setToolText?e.setToolText:d;var N=b("tooltip"),L=b("tooltip-color");return e.tooltext?'\n <style nonce="'+y+'">\n .'+N+" {\n padding: 2px;\n vertical-align: middle;\n font-size: "+m+"px;\n }\n\n ."+L+" {\n color: "+e.color+';\n }\n </style>\n <div class="'+N+'">\n <span class="'+L+'">\n '+g+"\n </span>\n "+e.setPlotTooltext+"\n </div>":'\n <style nonce="'+y+'">\n .'+N+" {\n padding: 2px;\n vertical-align: middle;\n font-size: "+m+"px;\n }\n\n ."+L+" {\n color: "+e.color+';\n }\n </style>\n <div class="'+N+'">\n <span class="'+L+'">\n '+g+"\n </span>\n "+(e.label+e.toolTipSepChar)+"\n \n "+e.formattedValue+"\n </div>"}(a,this,o):s.BLANKSTRING;(e=t.config.active?a.hovered?a.focussedState:a.unfocussed?a.unfocussedState:a.normalState:a.deactiveState).cursor=s.POINTER,t.addGraphicalElement({el:"group",container:{id:"node-container",isParent:!0},tooltext:r,component:t,label:"text-path-container",id:"text-path-container",attr:{name:"text-path-container"}}),t.addGraphicalElement({el:"path",label:"node",tooltext:r,container:{id:"text-path-container"},attr:e,component:t},!0),a.showLabel&&t.addGraphicalElement({el:"text",label:"node-label",container:{id:"text-path-container"},attr:a.labelAttrs,outlineText:!!o.textOutline,css:{},tooltext:r,component:t},!0)},a._manageSpace=function(e){var t,a=this.config,o=this.getFromEnv("smartLabel");return o.setStyle(a.style),t=o.getOriSize(a.label),a.showLabel?a.labelPosition===h?t.width>e.maxSpace?o.getSmartText(a.label,e.maxSpace,t.height).width:t.width:a.labelPosition===p?t.height:0:0},a.getName=function(){return"node"},a.getType=function(){return"dataset"},t}(n.SmartRenderer);t["default"]=x},1472:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(290),l=a(1454),i=a(274),s=a(1470),c=function(e){return e-s.HALF_PI},d=function(){var e=this.getFromEnv("chart");this.getLinkedParent().linkHoverIn(this.config.key);var t={};p(t,this),e.fireChartInstanceEvent("linkRollOver",t)},u=function(){var e=this.getFromEnv("chart");this.getLinkedParent().linkHoverOut(this.config.key);var t={};p(t,this),e.fireChartInstanceEvent("linkRollOut",t)},h=function(){var e=this.getFromEnv("chart"),t={};p(t,this),e.fireChartInstanceEvent("linkClick",t)},p=function(e,t){var a;for(e.dominantFlowValue=t.config[t.config.dominantNode[0]],a=0;a<t.config.linkedNodes.length&&t.config.linkedNodes[a]===t.config.dominantNode[0];a++);e.subservientFlowValue=t.config[t.config.linkedNodes[a]],e.linkedNodes=t.config.linkedNodes,e.dominantFlowValue===e.subservientFlowValue?e.color=t.config.rawColor||(0,i.rgbaToHex)(t.config.normalState.fill):e.color=(0,i.rgbaToHex)(t.config.normalState.fill),e.alpha=t.config.alpha},g=function(e){return 0===e.length?[]:1===e.length?[e[0]]:e.filter((function(t,a){return e.indexOf(t)===a}))},f=function(e,t){var a,o=e,r=t,n=[];if(!r.length)return[];if(1===r.length)return o[r[0]];for(a=0;a<r.length;a++)n.push(o[r[a]]);return n},m=function(e,t,a,o){var r,n,l,s=i.BLANKSTRING;if(""!==o&&a&&a.length){if(1===a.length)return"<svg height= "+(n=(r=a[0].getGraphicalElement()).legendItemSymbol.node.getBBox()).height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+o+" fill = "+r.legendItemSymbol.node.getAttribute("fill")+" stroke = "+r.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+r.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+r.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+r.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+r.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>";for(l=0;l<a.length;l++)s+="<svg height= "+(n=(r=a[l].getGraphicalElement()).legendItemSymbol.node.getBBox()).height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+o+" fill = "+r.legendItemSymbol.node.getAttribute("fill")+" stroke = "+r.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+r.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+r.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+r.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+r.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>"}else if(e.length)for(l=0;l<e.length;l++)s+="\n <span style='color: "+e[l]+";'>\n "+t+"\n </span>";return s},v=function(e,t,a){var o,r=[];if(a&&a.length){if(1===a.length)return[e.getItem(t.config.legendItemMap[a[0]])];for(o=0;o<a.length;o++)r.push(e.getItem(t.config.legendItemMap[a[o]]))}return r},b=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},x=function(e){function t(t){var a;return(a=e.call(this,t)||this).addEventListener("fc-mouseover",d),a.addEventListener("fc-mouseout",u),a.addEventListener("fc-click",h),a}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t)},a.setDimension=function(e){this.config.radius=e.radius},a.allocatePosition=function(){var e,t,a,o,r=this.config;r.path=(e=r.points,t=r.radius,a=0,o=e.map((function(o,r){var n=(0,l.deg2Rad)(o),d=(0,l.polarToCartesian)(t,c((0,l.deg2Rad)(a))+n),u=d.x,h=d.y,p=.6,g=Math.abs((0,l.deg2Rad)(e[3-r])-n),f=Math.abs((0,l.deg2Rad)(e[(r+1)%4])-n);return g>s.PI&&(g=s.PI2-g),g*t<t&&(p*=g),{x:u=(0,i.toPrecision)(u,4),y:h=(0,i.toPrecision)(h,4),cpX:(1-p)*u,cpY:(1-p)*h,arc:f}})),[s.M,o[0].x,o[0].y,s.A,t,t,0,o[0].arc>s.PI?1:0,1,o[1].x,o[1].y,s.C,o[1].cpX,o[1].cpY,o[2].cpX,o[2].cpY,o[2].x,o[2].y,s.A,t,t,0,o[2].arc>s.PI?1:0,1,o[3].x,o[3].y,s.C,o[3].cpX,o[3].cpY,o[0].cpX,o[0].cpY,o[0].x,o[0].y].join(" ")),r.ribbonAttrs=r.hovered?r.focussedState:r.unfocussed?r.unfocussedState:r.normalState,r.ribbonAttrs.path=r.path,r.ribbonAttrs["stroke-width"]=(r.showBorder?r.borderThickness:0)||0},a.draw=function(){var e=this,t=e.getFromEnv("chart").config,a=t.canvasHeight,o=t.canvasWidth,r=t.canvasLeft+o/2,n=t.canvasTop+a/2,d=t.width,u=t.height,h=t.ribbonRadius,p=e.config,x=p.angles,k=p.showToolTip?function(e,t,a,o){var r,n,l,c,d,u,h,p,x,k,y=i.isIpad?s.SMALLSQUARE:s.MEDIUMSQUARE,C=i.BLANKSTRING,w=t&&t.drawcustomlegendicon,A=o.getLinkedParent(),S=o.getFromEnv("legend"),N=[],L=(null==t?void 0:t.nonce)||"",D=[],E=w&&S&&S.config&&S.config.isActive?v(S,A,g(e.dominantNode)):null,T=w&&S&&S.config&&S.config.isActive?v(S,A,g(e.subservientNode)):null;if(p=i.BLANKSTRING,E&&E.length){if(n=(c=(l=E&&E[0]&&E[0].getGraphicalElement())&&l.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),h=c&&c.node.getBBox(),n&&n.length)for(d=0;d<n.length;d++)D.push(n[d][0]),n[d]=n[d].substring(1,n[d].length),d===n.length-1&&(n[d]=n[d].substring(0,n[d].length-1)),N[d]=n[d].split(",");if(N&&N.length)for(d=0;d<N.length;d++){if(N[d].length)for(u=0;u<N[d].length;u++)N[d][u]=Number(N[d][u]),"A"!==D[d]?0===u?N[d][u]=N[d][u]-h.x:1===u&&(N[d][u]=N[d][u]-h.y):"A"===D[d]&&(5===u?N[d][u]=N[d][u]-h.x:6===u&&(N[d][u]=N[d][u]-h.y));p+=D[d]+N[d].toString()}p+="Z"}for(r in(x={toolText:e.tooltext,dominantNode:g(e.dominantNode),subservientNode:g(e.subservientNode),dominantFlowDataValue:g(e.dominantFlowDataValue),subservientFlowDataValue:g(e.subservientFlowDataValue)}).dominantFlowValue=f(e,x.dominantNode),x.subservientFlowValue=f(e,x.subservientNode),x.dominantPlotIdentifier=m(g(e.dominantNodeColor),y,E,p),x.subservientPlotIdentifier=m(g(e.subservientNodeColor),y,T,p),k=(0,i.parseTooltext)(e.tooltext,[135,136,137,138,139,140,146,147],x,e),e.setLinkToolText=k,e.tooltip){var F=b("tooltip-color");e.tooltip.hasOwnProperty(r)&&(C+='\n <style nonce="'+L+'">\n .'+F+" {\n color: "+e.tooltip[r].color+';\n }\n </style>\n <span class="'+F+'">\n '+y+"\n </span>\n "+(r+e.toolTipSepChar)+"\n "+(e.showLinkValueOnHover?" ":"")+"\n "+(e.showLinkValueOnHover?e.tooltip[r].value:"")+"\n <br>")}var P=b("tooltip");return e.tooltext?'<div class="'+P+'">\n '+e.setLinkToolText+"\n </div>":'\n <style nonce="'+L+'">\n .'+P+" {\n padding: 2px;\n vertical-align: middle;\n font-size: "+a+'px;\n }\n </style>\n <div class="'+P+'">\n '+C+"\n </div>"}(p,t,t.style.baseFontSize,e):i.BLANKSTRING,y=(0,l.polarToCartesian)(h,c((0,l.deg2Rad)(x[0]))),C=y.x,w=y.y,A=(0,l.polarToCartesian)(h,c((0,l.deg2Rad)(x[3]))),S=A.x,N=A.y;p.dominantNode.length>1&&p.rawColor&&(p.ribbonAttrs.fill=(0,i.toRaphaelColor)({color:p.rawColor[0]+","+p.rawColor[1],alpha:p.hovered?p.hoverAlpha:p.unfocussed?p.unfocussedAlpha:p.alpha,x1:(C+r)/d,y1:(w+n)/u,x2:(S+r)/d,y2:(N+n)/u}),p.ribbonAttrs.stroke=(0,i.toRaphaelColor)({color:p.rawColor[0]+","+p.rawColor[1],alpha:p.hovered?p.hoveredAlpha:p.unfocussed?p.unfocussedAlpha:p.borderAlpha,x1:(C+r)/d,y1:(w+n)/u,x2:(S+r)/d,y2:(N+n)/u})),e.addGraphicalElement({el:"path",label:"ribbon",tooltext:k,attr:p.ribbonAttrs,container:{id:"link-container",isParent:!0},component:e})},a.getName=function(){return"ribbon"},a.getType=function(){return"dataset"},t}(n.SmartRenderer);t["default"]=x},1357:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.dragArea":o(a(618))["default"]["*.dataset.area"]};t["default"]=r},1356:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=t._drag=t._updateImage=t.configurer=t.__firePlotEvent=void 0;var r,n,l,i,s,c=o(a(288)),d=o(a(617)),u=a(274),h=a(1346),p=o(a(1357)),g=a(282),f="setRolloverAttr",m="setRolloutAttr",v="DataPlotRollOut",b="DataPlotRollOver",x="default",k=u.hasSVG?"ns-resize":"n-resize",y=Math.min,C=Math.max;t._drag=i,t.__firePlotEvent=l,t.configurer=n,t._updateImage=r,(0,g.addDep)({name:"dragAreaAnimation",type:"animationRule",extension:p["default"]});var w=function(e){function t(){return e.apply(this,arguments)||this}(0,c["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragArea"},a.configureAttributes=function(t){var a=this.config,o=this.getFromEnv("chart-attrib"),r=a.JSONData;a.allowDrag=(0,u.pluckNumber)(r.allowdrag,1),a.allowNegDrag=(0,u.pluckNumber)(r.allownegativedrag,1),a.allowAxisChange=(0,u.pluckNumber)(o.allowaxischange,1),a.snapToDivOnly=(0,u.pluckNumber)(o.snaptodivonly,0),a.doNotSnap=(0,u.pluckNumber)(o.donotsnap,0),a.snapToDiv=(0,u.pluckNumber)(o.snaptodiv,1),a.snapToDivRelaxation=(0,u.pluckNumber)(o.snaptodivrelaxation,10),a.doNotSnap&&(a.snapToDiv=a.snapToDivOnly=0),e.prototype.configureAttributes.call(this,t)},a._plotConfigure=function(t,a){var o,r=this.config;e.prototype._plotConfigure.call(this,t,a),(o=this.components.data[t].config).allowDrag=(0,u.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,u.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},t.updateImage=function(e){var t,a=e.graphics,o=a.image||a.element,r=e.config,n=r.anchorProps,l=r.hoverEffects,i=o&&o.data("imgRef"),s=n.imageScale,c=i.height*s*.01,d=i.width*s*.01,h=e._xPos,p=e._yPos,g=l.imageHoverScale,v=i.width*g*.01,b=i.height*g*.01,x=n.radius=n.isAnchorRadius?n.radius:y(d,c)/2,k=n.imagePadding,C=x-k-.5*n.borderThickness,w=l.radius-k-.5*l.anchorBorderThickness,A=n.symbol[1],S=(0,u.polyPathToPath)([A||2,h,p,w>0?w:0,l.startAngle,l.dip]),N=(0,u.polyPathToPath)([A||2,h,p,C>0?C:0,n.startAngle,0]),L={x:h-i.width*s*.005,y:p-i.height*s*.005,width:d,height:c,alpha:100};L["clip-path"]=N,(t={x:h-i.width*g*.005,y:p-i.height*g*.005,width:v,height:b,alpha:100})["clip-path"]=S,o.attr(L),o.data(f,t),o.data(m,L)},a.drag=function(e,a,o,r){var n,l,i,c,d,p,g,v,b,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R=this,G=r,H=R.config,z=H.index,W=R.getFromEnv("chart"),U=W.config,j=U.canvasTop,J=R.components.data,K=R.getFromEnv("paper").canvas.style,q=R.getFromEnv("yAxis"),Y=q.getTicks(),X=(0,u.mathAbs)(q.getValue(q.getPixel(0)-H.snapToDivRelaxation)),Q=H.snapToDivOnly?.5*(0,u.mathAbs)(Y[1]-Y[0]):X,Z={xaxisName:U.xaxisname,yaxisName:U.yaxisname},$=R.getGraphicalElement().lineElement,ee=U.dragTolerance+1,te=R.getName(),ae="dragLine"===te||"dragArea"===te,oe=x,re=H.JSONData,ne=R.getFromEnv("chart-container");switch(G=G||(0,u.getMouseCoordinate)(ne,a,W),e){case"dragstart":i=(n=J[o]).config,p=n._yPos,D=n._xPos,L=i.allowDrag,b=G.chartY,A=G.chartX,L&&b>=p-ee&&b<=p+ee&&A<=D+ee&&A>=D-ee?(i.dragStart=!0,i._pointerDy=0,i._dragStartY=b,i._dragBuffer=p-b,n.dragged=!0,n.startValue=i.setValue,n.name=H.seriesname,n.datasetIndex=H.index,w=i.anchorProps,B=i.hoverEffects,C={index:NaN,dataIndex:NaN,datasetIndex:n.datasetIndex,startValue:n.startValue,datasetName:n.name,color:i.color,alpha:i.alpha,anchorBgColor:w.bgColor,anchorBgAlpha:w.anchorBgAlpha,anchorAlpha:w.anchorAlpha,anchorBorderColor:w.borderColor,anchorBorderThickness:w.borderThickness,anchorRadius:w.radius,anchorSides:w.sides,anchorStartAngle:w.startAngle,anchorHoverColor:B.anchorColor,anchorHoverAlpha:B.anchorAlpha,anchorHoverSides:B.anchorSides,dashed:i.dashed,valuePosition:i.valuePosition,id:i.id},i.dragStart=!0):i.dragStart=!1;break;case"dragmove":(i=(n=J[o]).config).dragStart&&(b=G.chartY,i.allowDrag&&(K.cursor=k),l=n.graphics.element,i._pointerDy++,T=n.graphics.image,D=n._xPos,V=l,b+=i._dragBuffer,v=i.allowNegDrag?U.canvasBottom:q.yBasePos,M=(w=i.anchorProps).startAngle||90,B=i.hoverEffects,I=i.hoverEffects&&i.hoverEffects.enabled,w.imageUrl,b<j?b=j:b>v&&(b=v),n._yPos=p=b,i._y=c=i.setValue=q.getValue(p),i._Py=q.getPixel(i._y),d=R.getFromEnv("number-formatter").dataLabels(c),i.toolTipValue=d,i.displayValue=d,R.parseLabelAttributes(n,y),R.drawLabel(y,NaN),n.graphics.element=l,R.getFromEnv("toolTipController").hide(H.currentToolTip),I&&(g=V.data(f))&&(g.path=(0,u.polyPathToPath)([B.anchorSides||2,D,p,B.anchorRadius,B.startAngle,B.dip])),I&&(E=V.data(m))&&(E.path=(0,u.polyPathToPath)([w.symbol[1]||2,D,p,w.radius,w.startAngle,i.dip||0])),V&&V.attr(E||{path:(0,u.polyPathToPath)([w.symbol[1]||2,D,p,w.radius,M,0])}),T&&t.updateImage(n),ae&&R.drawCommonElements(),$&&(H=R.config,F=i.pathStartIndex,P=i.pathEndIndex,_=i.lastPath,_=R.getLinePath(J,{begin:F,end:P}),$.attr({path:_.getPathArr()})),1===i._pointerDy&&(C={index:o,dataIndex:o,datasetIndex:z,startValue:n.startValue,datasetName:n.name,color:i.color,alpha:i.alpha,anchorBgColor:w.bgColor,anchorBgAlpha:w.anchorBgAlpha,anchorAlpha:w.anchorAlpha,anchorBorderColor:w.borderColor,anchorBorderThickness:w.borderThickness,anchorRadius:w.radius,anchorSides:w.sides,anchorStartAngle:w.startAngle,anchorHoverColor:B.anchorColor,anchorHoverAlpha:B.anchorAlpha,anchorHoverSides:B.anchorSides,dashed:i.dashed,valuePosition:i.valuePosition,id:i.id},W.fireChartInstanceEvent("dataplotDragStart",C)));break;case"dragend":(i=(n=J[o]).config).dragStart&&(R.setMaxMin(n),(H.snapToDiv||H.snapToDivOnly)&&(l=n.graphics.element,T=n.graphics.image,D=n._xPos,V=l,M=(w=i.anchorProps).startAngle||90,B=i.hoverEffects,I=i.hoverEffects&&i.hoverEffects.enabled,w.imageUrl,i.setValue=(0,u.snapPoint)({snapPixel:Q,datasetConf:H},Y,n),b=q.getPixel(i.setValue),n._yPos=p=b,i._y=c=i.setValue,i._Py=q.getPixel(i._y),d=R.getFromEnv("number-formatter").dataLabels(c),i.toolTipValue=d,i.displayValue=d,R.parseLabelAttributes(n,y),R.drawLabel(y,NaN),n.graphics.element=l,I&&(g=V.data(f))&&(g.path=(0,u.polyPathToPath)([B.anchorSides||2,D,p,B.anchorRadius,B.startAngle,B.dip])),I&&(E=V.data(m))&&(E.path=(0,u.polyPathToPath)([w.symbol[1]||2,D,p,w.radius,w.startAngle,i.dip||0])),V&&V.attr(E||{path:(0,u.polyPathToPath)([w.symbol[1]||2,D,p,w.radius,M,0])}),T&&t.updateImage(n),ae&&R.drawCommonElements(),$&&(H=R.config,F=i.pathStartIndex,P=i.pathEndIndex,_=i.lastPath,_=R.getLinePath(J,{begin:F,end:P}),$.attr({path:_.getPathArr()}))),C={index:o,dataIndex:o,datasetIndex:z,startValue:n.startValue,endValue:i.setValue,datasetName:n.name,color:i.color,alpha:i.alpha,anchorBgColor:w.bgColor,anchorBgAlpha:w.anchorBgAlpha,anchorAlpha:w.anchorAlpha,anchorBorderColor:w.borderColor,anchorBorderThickness:w.borderThickness,anchorRadius:w.radius,anchorSides:w.sides,anchorStartAngle:w.startAngle,anchorHoverColor:B.anchorColor,anchorHoverAlpha:B.anchorAlpha,anchorHoverSides:B.anchorSides,dashed:i.dashed,valuePosition:i.valuePosition,id:i.id},O=[W.getFromEnv("chartInstance").id,C.dataIndex,C.datasetIndex,C.datasetName,C.startValue,C.endValue],l&&h.updateDataValue.call(l,a,W),i._pointerDy&&(W.fireChartInstanceEvent("dataplotDragEnd",C),W.fireChartInstanceEvent("chartupdated",C,O)),(S=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(n.tooltext,re.plottooltext,R.getFromEnv("chart-attrib").plottooltext),!1)))!==s&&(Z.formattedValue=i.toolTipValue,Z.label=i.label,N=(0,u.parseTooltext)(S,[1,2,3,4,5,6,7],Z,{value:i.toolTipValue},s,re),i.setTooltext=N,S=N,i.toolText=N),N=i.finalTooltext=!1!==i.toolText?S||i.toolText.substring(0,i.toolText.indexOf(i.formatedVal))+i.toolTipValue:"",b>=p-ee&&b<=p+ee&&A<=D+ee&&A>=D-ee||(K.cursor=oe),i._dragBuffer=0,i._pointerDy=0,i.dragStart=!1)}},a._firePlotEvent=function(e,t,a){var o,r,n,l,i,s,c,d,h,p,g,f,m,y=this,w=y.config,A=y.getFromEnv("chart"),S=y.getFromEnv("chartConfig").drawTrendRegion,N=y.getFromEnv("paper"),L=y.getFromEnv("toolTipController"),D=N.canvas.style,E=y.components.data[t],T=w.currentToolTip,F=a.originalEvent,P=x;if("touchend"===e&&(f=F.changedTouches[0],F.pageX=f&&f.pageX,F.pageY=f&&f.pageY),n=(r=(0,u.getMouseCoordinate)(A.getFromEnv("chart-container"),F,A)).chartY,l=r.chartX,E)switch(c=E.graphics.element,m=(g=E.config).anchorProps,h=g.finalTooltext,d=g.hoverEffects.enabled,p=g.eventArgs,i=E._yPos,s=E._xPos,g.dragTolerance=g.dragTolerance<m.markerRadius?m.markerRadius+.5:g.dragTolerance,o=C(g.dragTolerance,g.hoverEffects.anchorRadius||0)+1,e){case"fc-mouseover":g.allowDrag&&(D.cursor=k),g.dragStart||!h||g.dragStart||S||(T?L.draw(F,h,T):T=w.currentToolTip=L.draw(F,h)),g.dragStart||(d&&y._hoverPlotAnchor(E,b),c&&A.plotEventHandler(c,a,b,p));break;case"fc-mouseout":D.cursor=P,d&&y._hoverPlotAnchor(E,v),c&&A.plotEventHandler(c,a,v,p),L.hide(w.currentToolTip);break;case"fc-mousemove":!g.dragStart&&h&&n>=i-o&&n<=i+o&&l<=s+o&&l>=s-o?(g.allowDrag&&(D.cursor=k),T?L.draw(F,h,T):T=w.currentToolTip=L.draw(F,h)):L.hide(w.currentToolTip);break;case"fc-click":c&&A.plotEventHandler(c,a,"dataplotclick",p)}},a.restore=function(){h._restore.call(this)},a.getJSONData=function(){return h._getJSONData.call(this)},t}(d["default"]);t._updateImage=r=w.prototype.updateImage,t.__firePlotEvent=l=w.prototype._firePlotEvent,t.configurer=n=w.prototype.configureAttributes,t._drag=i=w.prototype.drag;var A=w;t["default"]=A},1347:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.dragColumn":o(a(599))["default"]["initial.dataset.column"]};t["default"]=r},1346:(e,t,a)=>{var o=a(269);t.__esModule=!0,t.updateDataValue=t._restore=t._getJSONData=t["default"]=void 0;var r,n,l,i=o(a(288)),s=o(a(595)),c=a(274),d=o(a(1347)),u=a(282),h=c.preDefStr.setRolloverAttrStr,p=c.preDefStr.setRolloutAttrStr,g="default",f=c.preDefStr.DATAPLOTCLICK,m=c.hasSVG?"ns-resize":"n-resize",v=function(e,t){var a,o=t.getChildren("yAxis")[0],r=t.getFromEnv("chart-container"),n=this.data("eventArgs");a=(0,c.getMouseCoordinate)(r,e,t),n.value=o.getValue(a.chartY),this.data("eventArgs",n)};t.updateDataValue=v,t._restore=n,t._getJSONData=r,(0,u.addDep)({name:"dragColumnAnimation",type:"animationRule",extension:d["default"]});var b=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragColumn"},a.configureAttributes=function(t){var a=this.config,o=this.getFromEnv("chart-attrib"),r=a.JSONData;a.allowDrag=(0,c.pluckNumber)(r.allowdrag,1),a.allowNegDrag=(0,c.pluckNumber)(r.allownegativedrag,1),a.allowAxisChange=(0,c.pluckNumber)(o.allowaxischange,1),a.snapToDivOnly=(0,c.pluckNumber)(o.snaptodivonly,0),a.snapToDiv=a.snapToDivOnly?1:(0,c.pluckNumber)(o.snaptodiv,1),a.doNotSnap=(0,c.pluckNumber)(o.donotsnap,0),a.snapToDivRelaxation=(0,c.pluckNumber)(o.snaptodivrelaxation,10),a.doNotSnap&&(a.snapToDiv=a.snapToDivOnly=0),e.prototype.configureAttributes.call(this,t)},a._plotConfigure=function(t,a){var o,r=this.config,n=this.components.data;e.prototype._plotConfigure.call(this,t,a),(o=n[t].config).allowDrag=(0,c.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,c.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},a.drag=function(e,t,a,o){var r,n,i,s,d,u,f,b,x,k,y,C,w,A,S,N,L,D,E,T,F=this,P=o,_=F.config,V=F.getFromEnv("chart"),I=V.config,B=I.canvasTop,M=I.canvasBottom,O=F.getFromEnv("toolTipController"),R=F.getFromEnv("number-formatter"),G=F.components.data,H=F.getFromEnv("paper").canvas.style,z=F.getFromEnv("yAxis"),W=z.yBasePos,U=I.yaxisname,j={xaxisName:I.xaxisname,yaxisName:U},J=z.getTicks(),K=I.dragTolerance+1,q=g,Y=_.JSONData,X=F.getFromEnv("chart-attrib"),Q=I.useplotgradientcolor,Z=I.useroundedges,$=F.getFromEnv("chart-container"),ee=(0,c.mathAbs)(z.getValue(z.getPixel(0)-_.snapToDivRelaxation)),te=_.snapToDivOnly?.5*(0,c.mathAbs)(J[1]-J[0]):ee;switch(P=P||(0,c.getMouseCoordinate)($,t,V),e){case"dragstart":n=(L=G[a]).config,r=L.graphics.element,u=L._yPos,b=L._height,i=n.setValue<0?u+b:u,T=n.allowDrag,y=P.chartY,T&&y>=i-K&&y<=i+K?(n.dragStart=!0,n._pointerDy=0,n._dragStartY=y,n._dragBuffer=i-y,L.startValue=n.setValue,L.name=_.seriesname,L.datasetIndex=_.index,L.dragged=!0):n.dragStart=!1;break;case"dragmove":(n=(L=G[a]).config).dragStart&&(r=L.graphics.element,A=n.plotIndex,k=n.allowNegDrag?M:W,y=P.chartY,n._rollOverResponseSetterFire=!1,H.cursor=m,n._pointerDy++,(y+=n._dragBuffer)<B?y=B:y>k&&(y=k),u=W<y?W:y,b=(0,c.mathAbs)(W-y),L._yPos=u,L._height=b,i=u>=W?u+b:u,n._y=s=n.setValue=z.getValue(i),d=R.dataLabels(s),n.toolTipValue=d,n.displayValue=(0,c.pluck)(n.setDisplayValue,d),Q&&!Z&&(n.colorArr[0].FCcolor.angle=f=u<W?90:270),r.attr({y:L._yPos,height:L._height}),F.parseLabelAttributes(L),F.drawLabel(A,A+1),L.graphics.element=r,O.hide(_.currentToolTip),1===n._pointerDy&&(S={index:a,dataIndex:a,datasetIndex:L.datasetIndex,startValue:L.startValue,datasetName:L.name,color:n.originalPlotColor,gradientColor:_.plotgradientcolor,alpha:n.plotFillAlpha,borderColor:_.plotbordercolor,borderAlpha:n.plotBorderAlpha,borderThickness:I.plotborderthickness,borderDashed:n.dashed,hoverColor:n.hoverColor,hoverAlpha:n.hoverAlpha,borderHoverColor:n.hoverBorderColor,borderHoverAlpha:n.hoverBorderAlpha},V.fireChartInstanceEvent("dataplotDragStart",S)));break;case"dragend":var ae;n=(L=G[a]).config,ae=L._height,n.dragStart&&(u=L._yPos,r=L.graphics.element,D=(0,c.getValidValue)((0,c.parseUnsafeString)((0,c.pluck)(L.tooltext,Y.plottooltext,X.plottooltext),!1)),y=P.chartY,F.setMaxMin(L),0===n.givenPlotShowValue?n.showValue=0:1===n.givenPlotShowValue?n.showValue=1:1!==n.givenPlotShowValue&&_.showValues&&(Math.sqrt(ae*ae)<n.minplotheightforvalue?n.showValue=0:n.showValue=1),(_.snapToDiv||_.snapToDivOnly)&&(n.setValue=(0,c.snapPoint)({snapPixel:te,datasetConf:_},J,L),u=W<(y=z.getPixel(n.setValue))?W:y,b=(0,c.mathAbs)(W-y),L._yPos=u,L._height=b,r.attr({y:u,height:b}),d=R.dataLabels(n.setValue),n.toolTipValue=d,n.displayValue=(0,c.pluck)(n.setDisplayValue,d),F.parseLabelAttributes(L),F.drawLabel(A,A+1)),S={index:a,dataIndex:a,datasetIndex:L.datasetIndex,startValue:L.startValue,endValue:n.setValue,datasetName:L.name,color:n.originalPlotColor,gradientColor:_.plotgradientcolor,alpha:n.plotFillAlpha,borderColor:_.plotbordercolor,borderAlpha:n.plotBorderAlpha,borderThickness:I.plotborderthickness,borderDashed:n.dashed,hoverColor:n.hoverColor,hoverAlpha:n.hoverAlpha,borderHoverColor:n.hoverBorderColor,borderHoverAlpha:n.hoverBorderAlpha,id:n.id},N=[V.getFromEnv("chartInstance").id,S.dataIndex,S.datasetIndex,S.datasetName,S.startValue,S.endValue],v.call(r,t,V),n._pointerDy&&(V.fireChartInstanceEvent("dataplotDragEnd",S),V.fireChartInstanceEvent("chartupdated",S,N)),Q&&!Z&&(f=u>=W?90:270,(x=r.data(h))&&x.fill&&((C=(C=x.fill).split("-"))[0]=f,x.fill=C.join("-")),(w=r.data(p))&&w.fill&&((C=(C=w.fill).split("-"))[0]=f,w.fill=C.join("-"))),n._dragBuffer=0,n._pointerDy=0,D!==l&&(j.formattedValue=n.toolTipValue,j.label=n.label,E=(0,c.parseTooltext)(D,[1,2,3,4,5,6,7],j,{value:n.toolTipValue},l,Y),n.setTooltext=E,D=E,n.toolText=E),E=n.finalTooltext=!1!==n.toolText?n.toolText+(D?"":n.toolTipValue):"",y>=i-K&&y<=i+K||(H.cursor=q),n.dragStart=!1)}},a._firePlotEvent=function(e,a,o){var r,n,l=this,i=l.getFromEnv("chart"),s=l.config,d=s.currentToolTip,u=l.getFromEnv("chartConfig"),h=u.drawTrendRegion,p=l.getFromEnv("paper").canvas.style,v=l.getFromEnv("toolTipController"),b=l.components.data[a],x=b.config,k=b.graphics.element,y=x.finalTooltext||x.toolText,C=o.originalEvent,w=g,A=(0,c.getMouseCoordinate)(l.getFromEnv("chart-container"),C,i).chartY,S=b._yPos,N=b._height,L=l.getFromEnv("yAxis").yBasePos,D=x.allowDrag,E=S,T=S+N;if(r=u.dragTolerance+1,n=S>=L?S+N:S,k)switch(e){case"fc-mouseover":A<=T-r&&A>=E+r&&!h&&y&&(d?v.draw(C,y,d):d=s.currentToolTip=v.draw(C,y)),!x._rollOverResponseSetterFire&&A<=T&&A>=E&&(t._rolloverResponseSetter(i,k,o,this),x._rollOverResponseSetterFire=!0);break;case"fc-mouseout":p.cursor=w,x._rollOverResponseSetterFire&&t._rolloutResponseSetter(i,k,o,this),x._rollOverResponseSetterFire=!1,v.hide(s.currentToolTip);break;case"fc-click":i.plotEventHandler(k,o,f);break;case"fc-mousemove":x.dragStart||(n=x.setValue<0?S+N:S,D&&A>=n-r&&A<=n+r?(p.cursor=m,v.hide(s.currentToolTip)):(p.cursor=w,x._rollOverResponseSetterFire&&!h&&y&&(d?v.draw(C,y,d):d=s.currentToolTip=v.draw(C,y))),!x._rollOverResponseSetterFire&&A<=T&&A>=E?(t._rolloverResponseSetter(i,k,o),x._rollOverResponseSetterFire=!0):!x._rollOverResponseSetterFire||A<=T&&A>=E||(v.hide(s.currentToolTip),x._rollOverResponseSetterFire=!1,t._rolloutResponseSetter(i,k,o,this)))}},t._rolloverResponseSetter=function(e,t,a,o){var r=t&&t.getData(),n=e.getFromEnv("animationManager");t&&0!==r.showHoverEffect&&!0!==r.draged&&t&&(n.setAnimationState("mouseOver"),n.setAnimation({el:t,label:"rect",component:o,attr:t.getData().setRolloverAttr}),e.plotEventHandler(t,a,"DataPlotRollOver"))},t._rolloutResponseSetter=function(e,t,a,o){var r=t&&t.getData(),n=e.getFromEnv("animationManager");t&&0!==r.showHoverEffect&&!0!==r.draged&&(n.setAnimationState("mouseOut"),n.setAnimation({el:t,label:"rect",component:o,attr:t.getData().setRolloutAttr}),e.plotEventHandler(t,a,"DataPlotRollOut"))},a.getJSONData=function(){var e,t,a,o,r,n=this.config.JSONData.data,l=this.components.data,i=[],s={};for(r=0,o=n.length;r<o;r++){for(a in t=n[r],e=l[r],s={},t)s[a]="value"===a?e.config.setValue:t[a];i.push(s)}return{data:i}},a.restore=function(){this.setData(this.config.JSONData,!0)},t}(s["default"]);t._getJSONData=r=b.prototype.getJSONData,t._restore=n=b.prototype.restore;var x=b;t["default"]=x},1358:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.dragLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1355:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(616)),l=a(1356),i=a(274),s=a(1346),c=a(282),d=o(a(1358));(0,c.addDep)({name:"dragLineAnimation",type:"animationRule",extension:d["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a._firePlotEvent=function(){l.__firePlotEvent.apply(this,arguments)},a.updateImage=function(e){l._updateImage.call(this,e)},a.drag=function(){l._drag.apply(this,arguments)},a.configureAttributes=function(){l.configurer.apply(this,arguments)},a._plotConfigure=function(t,a){var o,r=this.config,n=this.components.data;e.prototype._plotConfigure.call(this,t,a),(o=n[t].config).allowDrag=(0,i.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,i.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},a.getType=function(){return"dataset"},a.getName=function(){return"dragLine"},a.restore=function(){s._restore.call(this)},a.getJSONData=function(){return s._getJSONData.call(this)},t}(n["default"]),h=u;t["default"]=h},1402:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNodeConnector":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0,"text-bound":"none"},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1401:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1397)),l=a(274),i=a(282),s=o(a(1402)),c=l.preDefStr.EVENTARGS,d=l.preDefStr.configStr,u=function(e){var t,a=e.config,o=a.fromPointObj,r=a.toPointObj,n=a.fromX,i=a.fromY,s=a.toX,c=a.toY,d=["M",n,i];return a.arrowAtStart&&(d=(t=o.config).shapeType===l.SHAPE_RECT?d.concat(p._drawArrow(n,i,s,c,t.shapeArg.width,t.shapeArg.height)):d.concat(p._drawArrow(n,i,s,c,t.shapeArg.radius))),a.arrowAtEnd&&(d=(t=r.config).shapeType===l.SHAPE_RECT?d.concat(p._drawArrow(s,c,n,i,t.shapeArg.width,t.shapeArg.height)):d.concat(p._drawArrow(s,c,n,i,t.shapeArg.radius))),d.push("L",s,c),d},h=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:a,label:"group"})};(0,i.addDep)({name:"connectorAnimation",type:"animationRule",extension:s["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragNodeConnector"},a._setDatasetIndex=function(){var e=this,t=e.getLinkedParent().getChildren("connector");e.config.datasetIndex=t.indexOf(e)},a.configureAttributes=function(e){if(e)this.trimData(e),this.config.JSONData=e;else if(!e&&!this.config.JSONData)return!1;var t,a=this,o=a.getFromEnv("chart-attrib"),r=a.config,n=a.config.JSONData,i=n.connector,s=i&&i.length,c=l.HUNDREDSTRING;for(r.connectorsTooltext=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(n.connectortooltext,o.connectortooltext),!1)),r.stdThickness=(0,l.pluckNumber)(n.stdthickness,1),r.conColor=(0,l.getFirstColor)((0,l.pluck)(n.color,"FF5904")),r.conAlpha=(0,l.pluck)(n.alpha,c),r.conDashGap=(0,l.pluckNumber)(n.dashgap,5),r.conDashLen=(0,l.pluckNumber)(n.dashlen,5),r.conDashed=Boolean((0,l.pluckNumber)(n.dashed,0)),r.arrowAtStart=Boolean((0,l.pluckNumber)(n.arrowatstart,1)),r.arrowAtEnd=Boolean((0,l.pluckNumber)(n.arrowatend,1)),r.conStrength=(0,l.pluckNumber)(n.strength,1),r.toolTipSepChar=(0,l.pluck)(o.tooltipsepchar," - "),r.showTooltip=(0,l.pluckNumber)(o.showtooltip,1),r.showTextOutline=(0,l.pluckNumber)(o.textoutline,0),r.viewMode=(0,l.pluckNumber)(o.viewmode,1),r._refreshData=!0,a._setDatasetIndex("connector"),t=0;t<s;t+=1)this._setConfigure(t,i[t]);r._refreshData=!0},a._setConfigure=function(e,t){var a,o,r,n=this,i=n.components.data||(n.components.data=[]),s=i[e]||(i[e]=i[e]={}),c=n.config,d=(0,l.parseUnsafeString)((0,l.pluck)(t.label,t.name)),u=(0,l.pluck)(t.alpha,c.conAlpha),h=n.getFromEnv("smartLabel"),p="$fromLabel"+c.toolTipSepChar+"$toLabel",g={FCcolor:{color:(0,l.getFirstColor)((0,l.pluck)(t.color,c.conColor)),alpha:u}},f=c.connectorsTooltext,m=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(t.tooltext,f),!1)),v=Boolean((0,l.pluckNumber)(t.dashed,c.conDashed));h.setStyle(n.getFromEnv("dataLabelStyle")),h.useEllipsesOnOverflow(n.getFromEnv("chartConfig").useEllipsesWhenOverflow),r=h.getOriSize(d),o=s.config=s.config||(s.config={}),!s.graphics&&(s.graphics={}),a=!!c.showTooltip&&(0,l.pluck)(m,d?"$label":p),(o=s.config={_options:t,id:(0,l.pluck)(t.id,e).toString(),from:(0,l.pluck)(t.from,l.BLANK),to:(0,l.pluck)(t.to,l.BLANK),label:d,toolText:a,customToolText:m,color:g,index:e,dashStyle:v?(0,l.getDashStyle)((0,l.pluckNumber)(t.dashlen,c.conDashLen),(0,l.pluckNumber)(t.dashgap,c.conDashGap)):l.DASH_DEF,dashed:t.dashed,dashlen:t.dashlen,dashgap:t.dashgap,arrowAtStart:Boolean((0,l.pluckNumber)(t.arrowatstart,c.arrowAtStart)),arrowAtEnd:Boolean((0,l.pluckNumber)(t.arrowatend,c.arrowAtEnd)),conStrength:(0,l.pluckNumber)(t.strength,c.conStrength),link:t.link,stdThickness:c.stdThickness,labelWidth:r.widht,labelHeight:r.height}).datasetIndex=n.config.datasetIndex,o.add=t.add,o.update=t.update,o.dataLabelStyle=n._configureDataLabelStyle(t),c._refreshData&&delete s.removed},a.createContainer=function(){var e=this,t=e.getLinkedParent().getChildContainer();!e.getContainer("connectorGroup")&&e.addContainer("connectorGroup",h("connectorGroup",t.connectorGroup,e)),!e.getContainer("connectorDataLabelGroup")&&e.addContainer("connectorDataLabelGroup",h("connectorDataLabelGroup",t.connectorGroup,e))},a.draw=function(){var e,t,a,o,r,n,l,i=this,s=i.getLinkedParent(),c=i.config,d=i.components.data,u=i.getFromEnv("dataLabelStyle"),h=d.length,p=i.components.removeDataArr||[],g=p.length;for(i.createContainer(),c.cleared=!1,i.getContainer("connectorDataLabelGroup").css(u),n=0;n<h;n++)t=(l=(e=d[n]).config).from,a=l.to,o=s.getNode(t),r=s.getNode(a),o&&r&&!0!==l.deleted&&i.drawConnector(e,o,r,n);for(i.config.drawn=!0,n=0;n<g;n++)i._removeDataVisuals(p.shift())},a.parsePlotAttributes=function(e,t,a){var o,r,n,i,s,c,d,h,p,g,f,m,v=this.getFromEnv("number-formatter"),b=e.config,x=b.eventArgs||(b.eventArgs={});b.fromPointObj=t,b.toPointObj=a,p=t.config,g=a.config,b.fromX=o=p._xPos,b.fromY=n=p._yPos,b.toX=r=g._xPos,b.toY=i=g._yPos,b._labelX=(o+r)/2,b._labelY=(n+i)/2,b.strokeWidth=s=b.conStrength*b.stdThickness,f=b.color,b.textBgColor=f&&f.FCcolor&&f.FCcolor.color,x.label=b.label,x.arrowAtStart=b.arrowAtStart,x.arrowAtEnd=b.arrowAtEnd,x.link=b.link,x.id=b.id,x.fromNodeId=p.id,x.toNodeId=g.id,b.toolText=(0,l.parseTooltext)(b.toolText,[3,83,84,85,86,87,88,89,90,91,92],{label:b.label,fromXValue:v.dataLabels(t.config.x),fromYValue:v.dataLabels(t.config.y),fromXDataValue:t.config.x,fromYDataValue:t.config.y,fromLabel:(0,l.pluck)(t.config.displayValue,t.config.id),toXValue:v.dataLabels(a.config.x),toYValue:v.dataLabels(a.config.y),toXDataValue:a.config.x,toYDataValue:a.config.y,toLabel:(0,l.pluck)(a.config.displayValue,a.config.id)}),p=t.config,g=a.config,d=p.startConnectors||(p.startConnectors={}),h=g.endConnectors||(g.endConnectors={}),d[m=e.config.id+"-"+p.id+"-"+g.id]=e,h[m]=e,c=u(e),b.props={element:{attr:{path:c,"stroke-width":s,"stroke-dasharray":b.dashStyle,cursor:b.link?l.POINTER:l.BLANKSTRING,stroke:(0,l.toRaphaelColor)(f)}}}},a.allocatePosition=function(){var e,t,a,o,r,n,l,i=this,s=i.getLinkedParent(),c=i.components.data,d=c.length;for(e=0;e<d;e++)o=(a=(t=c[e]).config).from,r=a.to,n=s.getNode(o),l=s.getNode(r),n&&l&&!0!==a.deleted&&i.parsePlotAttributes(t,n,l,e)},a.drawConnector=function(e){var t,a,o=this,r=o.getFromEnv("toolTipController"),n=o.getFromEnv("animationManager"),l=e.graphics,i=o.getContainer("connectorGroup"),s=e.config,u=s.toolText,h=s.eventArgs||(s.eventArgs={}),p=o.config,g=o.components.pool||{};e.removed||(t=a=l.graphic,l.graphic||g.graphic&&g.graphic.path&&g.graphic.path.length&&(a=l.graphic=g.graphic.path.shift()),t=n.setAnimation({el:a||"path",container:i,attr:s.props.element.attr,label:"path",component:o}),a||(l.graphic=t,t.on("fc-mousedown",o.mouseDown).on("fc-mousemove",o.mousemove).on("fc-mouseup",o.mouseup).hover(o.hoverIn,o.hoverOut)),t.show().data(c,h).data("viewMode",p.viewMode).data(d,s).data("dataset",o),p.showTooltip?r.enableToolTip(t,u):r.disableToolTip(t),o.drawLabel(e))},a.drawLabel=function(e){var t,a,o,r,n,i,s,u,h,p,g,f,m=this,v=m.getFromEnv("toolTipController"),b=m.config,x=m.getFromEnv("animationManager"),k=m.getContainer("connectorDataLabelGroup"),y=m.getFromEnv("dataLabelStyle"),C=m.components.data,w=m.components.pool||{},A=C.length,S=function(e){t=e.config,o=t.toolText,u=e.graphics,a=t.label,p=t._labelX,g=t._labelY,n=t.dataLabelStyle||y,f=t.textBgColor,a?(s=u.text=u.text||w.element&&w.element.text&&w.element.text.shift(),r={text:a,fill:n.color,direction:l.BLANKSTRING,cursor:t.link?l.POINTER:l.BLANKSTRING,"text-bound":[(0,l.pluck)(n.backgroundColor,f),(0,l.pluck)(n.borderColor,f),1,"2"],x:p,y:g},(i=x.setAnimation({el:s||"text",attr:r,container:k,label:"text",component:m})).show(),i.outlineText(b.showTextOutline,r.fill),s||(u.text=i,i.on("fc-mousedown",m.mouseDown).on("fc-mousemove",m.mousemove).on("fc-mouseup",m.mouseup).hover(m.hoverIn,m.hoverOut)),i.data(c,t.eventArgs).data("viewMode",b.viewMode).data(d,t).data("dataset",m),b.showTooltip?v.enableToolTip(i,o):v.disableToolTip(i)):u.text&&u.text.hide()};if(e)S(e);else for(h=0;h<A;h++)S(C[h])},a.mouseDown=function(){var e=this,t=e.data("dataset").getLinkedParent();t.clearLongPress(),e.data("fire_click_event",1),t.triggerConnectorUI(e)},a.mousemove=function(){var e=this.data("dataset").getLinkedParent();this.data("fire_click_event",0),e.clearLongPress()},a.mouseup=function(){this.data("dataset").getLinkedParent().clearLongPress()},a.hoverIn=function(e){this.data("dataset").getFromEnv("chart").plotEventHandler(this,e,"ConnectorRollover")},a.hoverOut=function(e){this.data("dataset").getFromEnv("chart").plotEventHandler(this,e,"ConnectorRollout")},t._drawArrow=function(e,t,a,o,r,n){var l,i,s,c,d=(t-o)/(e-a),u=Math.atan(d),h=[];return u<0&&(u=2*Math.PI+u),o>t?(a>=e&&u>Math.PI||a<e&&u>Math.PI)&&(u-=Math.PI):(a>=e&&u<Math.PI&&0!==u||a<e&&u<Math.PI)&&(u+=Math.PI),void 0===n?(l=e+r*Math.cos(u),i=t+r*Math.sin(u)):(s=Math.abs(r)/2,c=Math.abs(n)/2,l=e+(s=e<a?s:-s),i=t+s*Math.tan(u),Math.abs(t-i)>Math.abs(c)&&(i=t+(c=t<o?c:-c),l=e+c/Math.tan(u))),h.push("L",l,i,l+10*Math.cos(u+.79),i+10*Math.sin(u+.79),"M",l+10*Math.cos(u-.79),i+10*Math.sin(u-.79),"L",l,i),h},a.removeData=function(e,t){var a=e,o=this.components,r=o.data;a<0&&(a=0),o.removeDataArr=r.splice(a,t)},a.trimData=function(e){if(this.config.JSONData){var t=this.components,a=t.data&&t.data.length,o=e.connector&&e.connector.length||0,r=a-o;r>0&&this.removeData(o,r)}},t}(n["default"]),g=p;t["default"]=g},1399:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(1397)),l=a(274),i=a(282),s=o(a(1400)),c=l.preDefStr.PX,d="rgba(192,192,192,"+(l.isIE?.002:1e-6)+")",u=function(e){function t(){var t;return t=e.call(this)||this,(0,i.addDep)({name:"draggablelabelAnimation",type:"animationRule",extension:s["default"]}),t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragNodeLabels"},a.configure=function(e){if(e)this.trimData(e),this.config.JSONData=e.label;else if(!e&&!this.config.JSONData)return!1;var t,a=this,o=a.getFromEnv("chart-attrib"),r=a.config,n=(a.config.JSONData||[]).length,i=a.components.data;for(r.viewMode=(0,l.pluckNumber)(o.viewmode,0),i||(i=a.components.data=[]),t=0;t<n;t++)a._setConfigure(t)},a._setConfigure=function(e,t){var a,o,r,n,i=this,s=i.config.JSONData,d=t||s[e],u=i.components.data,h=i.getFromEnv("style").inCanvasStyle,p=h.fontSize;!(a=u[e])&&(a=u[e]={}),!a.graphics&&(a.graphics={}),r=a.config=a.config||(a.config={}),o=(0,l.parseUnsafeString)((0,l.pluck)(d.text,d.label)),r._options=d,r.add=d.add,o&&(r.text=o,r.x=d.x||0,r.y=d.y||0,r.labelFontSize=n=(0,l.pluckNumber)(d.fontsize,p),r.labelColor=(0,l.hashify)((0,l.pluck)(d.color,h.color)),r.alpha=(0,l.pluckNumber)(d.alpha,100)/100,r.allowDrag=(0,l.pluckNumber)(d.allowdrag,1),r.padding=(0,l.pluckNumber)(d.padding,5),d.fontsize?r.labelCSS={fontSize:n+c}:r.labelCSS={},r.labelBGColor=(0,l.pluck)(d.bgcolor&&d.bgcolor.replace(l.dropHash,l.HASHSTRING)),r.labelBDColor=(0,l.pluck)(d.bordercolor&&d.bordercolor.replace(l.dropHash,l.HASHSTRING)),r.link=d.link,r.borderThickness=d.borderthickness,r.dashLen=d.dashlen,r.dashGap=d.dashgap,r.dashed=d.dashed,r.radius=d.radius)},a.getJSONData=function(){var e,t,a=this.components.data,o=a.length,r=[];for(t=0;t<o;t++)(e=a[t]).removed||e.config._options&&r.push(e.config._options);return r},a.createContainer=function(){var e=this,t=e.getFromEnv("animationManager"),a=e.getLinkedParent().getChildContainer();!e.getContainer("dragLabelGroup")&&e.addContainer("dragLabelGroup",t.setAnimation({el:"group",attr:{name:"dragLabelGroup"},label:"group",component:e,container:a.defaultVcanvasGroup}))},a.allocatePosition=function(){this.parsePlotAttributes()},a.parsePlotAttributes=function(){var e,t,a,o,r,n,i,s,c,d,u,h,p,g,f,m,v,b,x,k,y,C=this,w=C.components.data,A=C.getFromEnv("yAxis"),S=C.getFromEnv("xAxis"),N=C.getFromEnv("smartLabel"),L=C.getFromEnv("dataLabelStyle"),D=w&&w.length,E=C.getFromEnv("chartConfig");for(k=0;k<D;k++)(p=w[k]).removed||(u=p.config,!p.graphics&&(p.graphics={}),u.index=k,o=S.getPixel(u.x),r=A.getPixel(u.y),i=u.text,s=u.labelBGColor,c=u.labelBDColor,d=u.padding,g=u.allowDrag,f=u.labelFontSize,n=u.labelColor,m=u.radius,a=u.dashed,u.borderThickness,e=u.dashLen,t=u.dashGap,b=u.borderThickness,y=u.labelCSS,h={x:o,y:r,text:i,align:l.POSITION_CENTER,fill:n,"text-bound":[s||l.BLANKSTRING,c||l.BLANKSTRING,(0,l.pluckNumber)(b,1),d,(0,l.pluckNumber)(m,0),(0,l.pluckNumber)(a,0)?(0,l.getDashStyle)((0,l.pluckNumber)(e,5),(0,l.pluckNumber)(t,4)):l.DASH_DEF],visibility:l.visibleStr},x={backgroundColor:s,borderColor:c,borderPadding:d,fontSize:f+l.PXSTRING,fontStyle:L.fontStyle,fontWeight:L.fontWeight,borderRadius:0,borderDash:l.DASH_DEF,fontFamily:L.fontFamily},(0,l.setLineHeight)(x),N.useEllipsesOnOverflow(E.useEllipsesWhenOverflow),N.setStyle(x),y["line-height"]=x.lineHeight,u.eventArgs={link:u.link,text:i,x:o,y:r,allowdrag:g,sourceType:"labelnode"},u.props={element:{attr:h}},u.labelCSSApplied=y,v=N.getOriSize(i),u.width=v.width,u.height=v.height,u.xPos=o,u.yPos=r)},a.draw=function(){var e,t,a,o,r,n,l=this,i=l.components.data,s=l.getFromEnv("animationManager"),c=l.getFromEnv("dataLabelStyle"),d=i&&i.length,u=l.components.removeDataArr||[],h=u.length;for(l.createContainer(),(n=l.getContainer("dragLabelGroup")).css({"font-weight":c.fontWeight,"font-style":c.fontStyle,"font-size":c.fontSize,"font-family":c.fontFamily}),r=0;r<d;r++)(t=i[r]).removed||(e=t.config,o=t.graphics.element,a=s.setAnimation({el:o||"text",container:n,css:e.labelCSS,attr:e.props.element.attr,component:l}),o?(e.labelCSSApplied&&a.removeCSS(),a.show().css(e.labelCSS)):t.graphics.element=a,a.data("eventArgs",e.eventArgs));for(l.drawTracker(),r=0;r<h;r++)l._removeDataVisuals(u.shift())},a.drawTracker=function(){var e,t,a,o,r,n,i,s,c,u,h,p,g,f,m=this,v=m.components.data,b=m.getFromEnv("animationManager"),x=m.getFromEnv("chart"),k=m.getLinkedParent(),y=m.config,C=m.getContainer("dragLabelGroup"),w=v&&v.length,A=function(){var e=this,t=e.data("drag-options"),a=t.dataset,o=t.index,r=a.components.data[o];e.data("fire_click_event",1),k.clearLongPress(),k.triggerLabelUI(e,r)},S=function(){this.data("fire_click_event")&&(this.data("fire_click_event",0),k.clearLongPress())},N=function(e){var t=this.data("fire_click_event");k.clearLongPress(),t&&x.plotEventHandler(this,e,"LabelClick")},L=function(e){x.plotEventHandler(this,e,"LabelRollover")},D=function(e){x.plotEventHandler(this,e,"LabelRollout")},E=function(e,t){m._labelDragMove.call(this,e,t,x)},T=function(e){m._labelDragStart.call(this,e,x)},F=function(e){m._labelDragUp.call(this,e)};for(f=0;f<w;f++)(e=v[f]).removed||(a=(t=e.config).padding||0,p=t.width,g=t.height,u=t.xPos-p/2,h=t.yPos-g/2,n=t.allowDrag,i=t.text,c=e.graphics.trackerElement,r={x:u-a,y:h-a,width:p+2*a,height:g+2*a,cursor:t.allowDrag?"move":l.BLANKSTRING,fill:d,stroke:d},o={link:t.link,text:i,x:u,y:h,allowdrag:n,sourceType:"labelnode"},s=b.setAnimation({el:c||"rect",container:C,attr:r,component:m}),c||(e.graphics.trackerElement=s,s.on("fc-mousedown",A).on("fc-mousemove",S).on("fc-mouseup",N).data("viewMode",y.viewMode).data(l.preDefStr.EVENTARGS,o).hover(L,D),t.allowDrag&&s.drag(E,T,F)),s.data("drag-options",{index:f,dataset:m}))},a._labelDragStart=function(){var e=this,t=e.getBBox(),a=e.data("drag-options"),o=a.dataset,r=o.getLinkedParent(),n=a.index,l=o.components.data[n],i=l.graphics.element,s=l.dragStart=l.dragStart||(l.dragStart={});a.ox=i.attr("x"),a.oy=i.attr("y"),a.bBox=t,s.xPos=l.config.xPos,s.yPos=l.config.yPos,s.bBox=t,e.data("fire_click_event",1),e.data("fire_dragend",0),r.clearLongPress(),r.triggerLabelUI(e,l)},a._labelDragMove=function(e,t){var a,o,r=this,n=r.data("drag-options"),l=n.index,i=n.dataset,s=i.getFromEnv("chart"),c=i.getFromEnv("chartConfig"),d=c.canvasLeft,u=c.canvasRight,h=c.canvasBottom,p=c.canvasTop,g=i.getLinkedParent(),f=i.components.data[l],m=f.graphics.element,v=f.dragStart,b=v.bBox,x=t[0],k=t[1],y=v.bBox.x+x,C=v.bBox.x2+x,w=v.bBox.y+k,A=v.bBox.y2+k,S=i.getFromEnv("yAxis"),N=i.getFromEnv("xAxis");y<d&&(x+=d-y),C>u&&(x-=C-u),w<p&&(k+=p-w),A>h&&(k-=A-h),v.draged=!0,r.attr({x:b.x+x,y:b.y+k}),a=n.ox+x,o=n.oy+k,m.attr({x:n.ox+x,y:n.oy+k}),f.config.x=N.getValue(a),f.config.y=S.getValue(o),r.data("fire_dragend")||(s.plotEventHandler(r,e,"LabelDragStart"),r.data("fire_dragend",1)),r.data("fire_click_event")&&(r.data("fire_click_event",0),g.clearLongPress())},a._labelDragUp=function(e){var t=this,a=t.data("drag-options"),o=a.index,r=a.dataset,n=r.getFromEnv("chart"),i=n.getChildren("xAxis")[0],s=n.getChildren("yAxis")[0],c=r.getLinkedParent(),d="labeldragend",u=r.components.data[o].dragStart,h=t.data("eventArgs");h.x=i.getValue(t.attr("x")),h.y=s.getValue(t.attr("y")),u.draged=!1,t.data("fire_dragend")&&(n.fireChartInstanceEvent("chartupdated",(0,l.extend2)({sourceEvent:d},h),e),n.fireChartInstanceEvent("chartupdated",h,e),n.plotEventHandler(t,e,d)),c.clearLongPress()},a.removeData=function(e,t){var a=this.components,o=a.data;a.removeDataArr=o.splice(e,t)},a.trimData=function(e){if(this.config.JSONData){var t=this.config.JSONData,a=t&&t.length,o=e.label&&e.label.length||0,r=a-o;r>0&&this.removeData(o,r)}},t}(n["default"]);t["default"]=u},1400:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNodeLabels":function(){return{"group.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]}}}}},1398:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNode":function(){return{"node.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]}}}}},1397:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(617)),i=a(274),s=a(282),c=o(a(1398)),d=o(a(390)),u=o(a(724)),h=(0,s.getDep)("redraphael","plugin"),p=Math.max,g=Math.min,f=i.preDefStr.CIRCLE,m=i.preDefStr.POLYGON,v=i.preDefStr.RECTANGLE,b=i.preDefStr.UNDERSCORE,x=i.preDefStr.GROUPID,k=i.preDefStr.EVENTARGS,y=i.preDefStr.OBJECTBOUNDINGBOX,C=i.preDefStr.DEFAULT,w=i.preDefStr.COMMA,A=i.preDefStr.POSITION_TOP,S=!!i.hasSVG,N=function(){this.hide()},L=function(e){return e!==r&&null!==e},D=function(e,t,a,o){return t.setAnimation({el:"group",attr:{name:e},container:a,component:o})},E=function(e,t,a){var o,r,n,l=e,s=t;return l=(0,i.getFirstColor)(l),s=(0,i.getFirstAlpha)(s),r=(0,i.getLightColor)(l,80),n=(0,i.getDarkColor)(l,65),o={FCcolor:{gradientUnits:y,color:r+w+n,alpha:s+w+s,ratio:i.BGRATIOSTRING}},a?o.FCcolor.angle=1===a?0:180:(o.FCcolor.cx=.4,o.FCcolor.cy=.4,o.FCcolor.r="50%",o.FCcolor.radialGradient=!0),o},T=function(e,t,a){var o,n=e.setTooltext,l=e.formatedVal,s=t.seriesname,c=e.label,d=e.xValue,u=e.pointLabel,h=t.tooltipSepChar;return n!==r?o=(0,i.parseTooltext)(n,[3,4,5,6,8,9,10,11],{yaxisName:(0,i.parseUnsafeString)(a.yaxisname),xaxisName:(0,i.parseUnsafeString)(a.xaxisname),yDataValue:l,xDataValue:d,label:c},e,a,t):u!==r?o=c:null===l?o=!1:(t.seriesNameInToolTip&&(s=(0,i.getFirstValue)(t.seriesname)),o=s?s+h:i.BLANK,o+=d?d+h:i.BLANK,o+=l),o};(0,s.addDep)({name:"dragNodeAnimation",type:"animationRule",extension:c["default"]}),(0,d["default"])(h);var F=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.getName=function(){return"dragNode"},a.getType=function(){return"dataset"},a.hide=function(){var e=this,t=e.getLinkedParent(),a={hide:!0};e.setState("dirty",!0),e.setState("visible",!1),t.childChanged(a),e.getFromEnv("chart").getChildren("legend")[0].getItem(e.config.legendItemId).setLegendState("hidden"),e.asyncDraw()},a.show=function(){var e=this,t=e.getLinkedParent(),a=e.getFromEnv("legend").getItem(e.config.legendItemId),o={show:!0};e.setState("visible",!0),e.setState("dirty",!0),t.childChanged(o),a&&a.removeLegendState("hidden"),e.asyncDraw()},a._setDatasetIndex=function(){var e=this,t=e.getLinkedParent().getChildren("dataset");e.config.datasetIndex=t.indexOf(e)},a.pointInShape=function(e,t,a){var o,r,n,l,i,s=this.getFromEnv("chart").getChildren("canvas")[0].config,c=a.symbol,d=a._xPos,u=a._yPos;return!(e<s.canvasLeft||e>s.canvasLeft+s.canvasWidth||t<s.canvasTop||t>s.canvasTop+s.canvasHeight)&&("rectangle"===c?(l=a._plotWidth,u-=(i=a._plotHeight)/2,e>=(d-=l/2)&&t>=u&&e<=d+l&&t<=u+i):(o=(e-d)*(e-d),r=(t-u)*(t-u),n=Number(a.radius),o+r<=(n*=n)))},a._firePlotEvent=function(e,t,a){var o,n,l,s=this,c=s.getFromEnv("chart"),d=s.components,u=s.getFromEnv("toolTipController"),h=d.data[t]||{},p=s.getGraphicalElement("sharedAnchor"),g=h.graphics&&h.graphics.element||(h.config&&h.config.setValue)!==r&&p,f=this.config.currentToolTip,m=s.config.viewMode,v=s.getLinkedParent(),b=h.graphics.element;if(g)switch(l=(o=h.config).setLink,n=o.eventArgs,e){case"fc-mouseover":s._decideTooltipType(t,a),s._rolloverResponseSetter(c,h,a),l&&(g.node.style.cursor=i.POINTER);break;case"fc-mouseout":u.hide(f),s._rolloutResponseSetter(c,h,a),l&&(g.node.style.cursor=C);break;case"fc-click":b.data("fire_click_event")&&c.plotEventHandler(g,a,"dataplotclick",n);break;case"fc-mousemove":v.hideWaitElem(),s._decideTooltipType(t,a);break;case"fc-mousedown":clearTimeout(b._longpressactive),b.data("fire_click_event",1),m||v.drawWaitingRing(h,s.config.datasetIndex);break;case"fc-mouseup":v.hideWaitElem(),v.clearLongPress()}},a.dragUp=function(e){this.data("drag-options").dataset._dragUp.call(this,e)},a.dragMove=function(e,t){var a=this.data("drag-options").dataset,o=t[0],r=t[1],n=t[2],l=t[3];a._dragMove.call(this,o,r,n,l)},a.dragStart=function(e){this.data("drag-options").dataset._dragStart.call(this,e)},a._dragStart=function(){var e,t=this.data("drag-options"),a=t.dataObj,o=a.graphics.element,r=o.getBBox(),n=a.config,l=t.dataset,i=l.getFromEnv("chart"),s=n.dragStart||(n.dragStart={}),c=a.graphics.cloneGraphic,d=l.getContainer("cloneGraphicGroup"),u=a.graphics.cloneText,h=a.graphics.image,p=a.graphics.cloneImage,g=a.graphics.label;S&&(o._.dirty=1),n.allowDrag&&(!c&&a.graphics.element&&(c=a.graphics.cloneGraphic=a.graphics.element.clone(),d.appendChild(c)),g&&!u&&((u=a.graphics.cloneText=a.graphics.label.clone()).followers[0]&&u.followers[0].el&&d.appendChild(u.followers[0].el),d.appendChild(u)),h&&!p&&(p=a.graphics.cloneImage=a.graphics.image.clone(),d.appendChild(p)),u&&u.show(),p&&p.show(),c&&c.show()),s.xPos=n._xPos,s.yPos=n._yPos,s.x=n.x,s.y=n.y,s.bBox=r,s.origX=s.lastDx||(s.lastDx=0),s.origY=s.lastDy||(s.lastDy=0),e=o.data(k),i.fireChartInstanceEvent("dataplotdragstart",e),c&&c.show(),u&&u.show(),p&&p.show()},a._dragMove=function(e,t){var a,o=e,r=t,n=this.data("drag-options"),l=n.dataObj,i=l.graphics.element,s=l.graphics.cloneGraphic,c=l.graphics.cloneImage,d=l.graphics.cloneText,u=l.config,h=u.dragStart,p=h.bBox.x+o,g=h.bBox.x2+o,f=h.bBox.y+r,m=h.bBox.y2+r,v=n.dataset,b=v.getFromEnv("animationManager"),x=v.getLinkedParent(),k=v.getFromEnv("chartConfig"),y=k.canvasLeft,C=k.canvasRight,A=k.canvasTop,S=k.canvasBottom;p<y&&(o+=y-p),g>C&&(o-=g-C),f<A&&(r+=A-f),m>S&&(r-=m-S),(o||r)&&(i.data("fire_click_event",0),x.hideWaitElem(),x.clearLongPress()),u.allowDrag&&(h.draged=!0,h.lastDx=o,h.lastDy=r,a=n._transformObj={transform:"t"+(h.origX+o)+w+(h.origY+r)},s&&b.setAnimation({el:s,attr:a,component:v}),c&&b.setAnimation({el:c,attr:a,component:v}),d&&b.setAnimation({el:d,attr:{x:u._xPos+o,y:u._yPos+r},component:v}))},a._getHoveredPlot=function(e,t){var a=this.config.tree.getNeighbour({x:e,y:t},!1);if(a)return{pointIndex:a.index||a.i,hovered:!0,pointObj:a.data}},a._rolloutResponseSetter=function(e,t,a){var o=this.getFromEnv("animationManager"),r=t.config,n=t.graphics.element,l=r.dragStart,s=n.data("unHoverAttr");l&&Object.keys(l).length||("poly"!==r.shapeType&&r.shapeType!==f||(s.path=(0,i.polyPathToPath)([r.shapeArg.sides,r._xPos,r._yPos,s.r,r.startAngle,0])),r.rollOverProperties.enabled&&o.setAnimation({el:n,attr:s,component:this}),e&&e.plotEventHandler(n,a,"DataPlotRollOut"))},a._rolloverResponseSetter=function(e,t,a){var o=this.getFromEnv("animationManager"),r=t.config,n=t.graphics.element,l=r.dragStart,s=n.data("hoverAttr");l&&Object.keys(l).length||("poly"!==r.shapeType&&r.shapeType!==f||(s.path=(0,i.polyPathToPath)([r.shapeArg.sides,r._xPos,r._yPos,s.r,r.startAngle,0])),r.rollOverProperties.enabled&&o.setAnimation({el:n,attr:s,component:this}),e&&e.plotEventHandler(n,a,"DataPlotRollOver"))},a._dragUp=function(e){var t,a,o,r,n,l,s=this.data("drag-options"),c=s.dataset,d=c.getFromEnv("chart"),u=c.components.data,h=s.dataObj,p=h.graphics.element,g=c.getLinkedParent(),f="dataplotdragend",m=h.config,v=h.config.dragStart||{},b=c.getFromEnv("yAxis"),x=h.graphics.cloneText,y=c.getFromEnv("xAxis"),C={},w=c.config.datasetIndex,A=h.graphics.cloneGraphic,S=h.graphics.cloneImage;if(g.hideWaitElem(),g.clearLongPress(),v.draged){for(v.origX+=v.lastDx,v.origY+=v.lastDy,h.config._xPos=v.xPos+v.lastDx,h.config._yPos=v.yPos+v.lastDy,C.x=y.getValue(h.config._xPos),C.y=b.getValue(h.config._yPos),C.update=!0,o=0,n=u.length;o<n&&(r=u[o],h.config.id!==r.config.id);o++);c.updatePointConfig(C,o),(l=p.data(k)).x=C.x,l.y=C.y,c.parsePlotAttributes(o),c._drawNode(o),t=h.config.startConnectors,a=h.config.endConnectors,g.drawNodeConnectors(t,w),g.drawNodeConnectors(a,w),(0,i.getMouseCoordinate)(d.getFromEnv("chart-container"),e,d).sourceEvent=f,d.fireChartInstanceEvent("chartupdated",(0,i.extend2)({sourceEvent:f},l),e),d.fireChartInstanceEvent(f,l,e),v.draged=!1,c._setupKdTree()}x&&x.hide(),A&&A.hide(),S&&S.hide(),delete m.dragStart},a.updatePointConfig=function(e,t){var a,o=this,n=o.components.data,l=o.config,s=(n[t]||{}).config,c=o.getFromEnv("number-formatter"),d=o.getFromEnv("chart-attrib");s!==r&&(s.y=c.getCleanValue((0,i.pluck)(e.y)),s.x=c.getCleanValue((0,i.pluck)(e.x)),s._options.x=s.x,s._options.y=s.y,a=c.xAxis(s.x),s.formatedVal=null===s.y?s.y:c.dataLabels(s.y),s.xValue=a,l.showTooltip?s.toolText=T(s,l,d):s.toolText=!1,s.update=e.update)},a.getNode=function(e){return e?this.components.nodes[e]:this.components.nodes},a.configureAttributes=function(e){if(e)this.trimData(e),this.config.JSONData=e;else if(!e&&!this.config.JSONData)return!1;var t,a,o,n,l,s,c,d=this,u=d.config.datasetIndex,h=d.config.JSONData,p=h.data||[],g=d.getFromEnv("chart-attrib"),f=d.getFromEnv("chartConfig"),m=p.length,v=d.config,b=i.ZEROSTRING,x=d.getFromEnv("color-manager"),k=i.HUNDREDSTRING;for(v.context={},d.components.nodes={},v.showValues=(0,i.pluckNumber)(h.showvalues,g.showvalues,1),c=v.useRoundEdges=(0,i.pluckNumber)(g.useroundedges),v.zIndex=1,v.name=(0,i.getValidValue)(h.seriesname),v.viewMode=(0,i.pluckNumber)(g.viewmode,0),v.id=(0,i.pluck)(h.id,d.index),0!==(0,i.pluckNumber)(h.includeinlegend)&&v.name!==r||(v.showInLegend=!1),v.seriesname=(0,i.parseUnsafeString)(h.seriesname),v.includeinlegend=(0,i.pluckNumber)(h.includeinlegend,v.seriesname?1:0),v.showTooltip=(0,i.pluckNumber)(g.showtooltip,1),v.seriesNameInTooltip=(0,i.pluckNumber)(g.seriesnameintooltip,1),v.showTextOutline=(0,i.pluckNumber)(g.textoutline,0),v.tooltipSepChar=(0,i.pluck)(g.tooltipsepchar," - "),a=v.plotFillAlpha=(0,i.pluck)(g.plotfillalpha,k),o=v.showPlotBorder=(0,i.pluckNumber)(g.showplotborder,1),n=v.plotBorderColor=(0,i.getFirstColor)((0,i.pluck)(g.plotbordercolor,"666666")),l=v.plotBorderThickness=(0,i.pluckNumber)(g.plotborderthickness,c?2:1),s=v.plotBorderAlpha=(0,i.pluck)(g.plotborderalpha,g.plotfillalpha,c?"35":"95"),v.use3DLighting=Boolean((0,i.pluckNumber)(g.use3dlighting,g.is3d,c?1:0)),v.color=(0,i.getFirstColor)((0,i.pluck)(h.color,x.getPlotColor(u))),v.alpha=(0,i.pluck)(h.plotfillalpha,h.nodeFillAlpha,h.alpha,a),v.datasetShowPlotBorder=Boolean((0,i.pluckNumber)(h.showplotborder,o)),v.datasetPlotBorderColor=(0,i.getFirstColor)((0,i.pluck)(h.plotbordercolor,h.nodebordercolor,n)),v.datasetPlotBorderThickness=(0,i.pluckNumber)(h.plotborderthickness,h.nodeborderthickness,l),v.datasetPlotBorderAlpha=v.datasetShowPlotBorder?(0,i.pluck)(h.plotborderalpha,h.nodeborderalpha,h.alpha,s):b,v.datasetAllowDrag=Boolean((0,i.pluckNumber)(h.allowdrag,1)),v.colorObj={fillColor:(0,i.convertColor)(v.color,v.alpha),lineColor:{FCcolor:{color:v.datasetPlotBorderColor,alpha:v.datasetPlotBorderAlpha}}},v.lineWidth=undefined,v.symbol="poly_4",d.components.data||(d.components.data=[]),d.setState("visible",1===(0,i.pluckNumber)(h.visible,!Number(h.initiallyhidden),1)),v.yMin=v.yMax=v.xMax=v.xMin=0,d._refreshData=!0,t=0;t<m;t+=1)this._setConfigure(t);d._refreshData=!1,f.showLegend&&d._addLegend(),d._setDatasetIndex(),d.setState("dirty",!0)},a._setConfigure=function(e,t){var a,o,r,n,l,s,c=this,d=c.config.JSONData,u=d.data,h=t||u[e],v=c.components.data,b=c.config,x=v[e]=v[e]||(v[e]={}),k=x.config=x.config||(x.config={}),y=b.id,C=b.yMin||+Infinity,w=b.yMax||-Infinity,S=b.xMax||-Infinity,N=b.xMin||+Infinity,D=b.use3DLighting,F=b.datasetPlotBorderThickness,P=b.datasetPlotBorderColor,_=b.datasetPlotBorderAlpha,V=c.getFromEnv("chart-attrib"),I=b.color,B=b.alpha,M=b.datasetAllowDrag,O=c.getFromEnv("number-formatter");if(!x.graphics&&(x.graphics={}),k._options=(0,i.extend2)({},h),h||t){if(o=k.y=O.getCleanValue((0,i.pluck)(h.y)),r=k.x=O.getCleanValue((0,i.pluck)(h.x)),k.index=e,k.dragStart||(k.dragStart={}),w=p(w,k.y),C=g(C,k.y),S=p(S,k.x),N=g(N,k.x),null===o)k.value=null;else{switch(n=O.xAxis(r),k.formatedVal=null===o?o:O.dataLabels(o),k.setTooltext=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(h.tooltext,d.plottooltext,V.plottooltext),!1)),k.pointLabel=(0,i.pluck)(h.label,h.name),l=(0,i.parseUnsafeString)(k.pointLabel),k.label=l,k.name=l,k.displayValue=l,k.xValue=n,t||(k.startConnectors={},k.endConnectors={}),b.showTooltip?k.toolText=T(k,b,V):k.toolText=!1,k.link=h.link,k.id=(0,i.pluck)(h.id,y+i.preDefStr.UNDERSCORE+e),k.allowDrag=Boolean((0,i.pluckNumber)(h.allowdrag,M)),a=k.shape=(0,i.getValidValue)((0,i.pluck)(h.shape),i.preDefStr.RECTANGLE).toLowerCase(),k.height=(0,i.getValidValue)((0,i.pluck)(h.height),10),k.width=(0,i.getValidValue)((0,i.pluck)(h.width),10),k.radius=(0,i.getValidValue)((0,i.pluck)(h.radius),10),k.numSides=(0,i.getValidValue)((0,i.pluck)(h.numsides),4),k.color=(0,i.getFirstColor)((0,i.pluck)(h.color,I)),k.borderColor=(0,i.getFirstColor)((0,i.pluck)(h.bordercolor,P)),k.alpha=(0,i.pluck)(h.alpha,B),k.imageURL=(0,i.getValidValue)(h.imageurl),k.imageNode=Boolean((0,i.pluckNumber)(h.imagenode)),k.imageWidth=h.imagewidth,k.imageHeight=h.imageheight,k.imageAlign=(0,i.getValidValue)(h.imagealign,i.BLANK).toLowerCase(),k.labelAlign=(0,i.pluck)(h.labelalign,k.imageNode&&L(k.imageURL)?A:i.preDefStr.POSITION_MIDDLE),k.hovercolor=(0,i.pluck)(h.hovercolor,d.hovercolor),k.borderhoveralpha=(0,i.pluck)(h.borderhoveralpha,d.borderhoveralpha),k.borderhovercolor=(0,i.pluck)(h.borderhovercolor,d.borderhovercolor),k.borderhoverthickness=(0,i.pluck)(h.borderhoverthickness,d.borderhoverthickness),k.hoveralpha=(0,i.pluck)(h.hoveralpha,d.hoveralpha),k.hoverheight=(0,i.pluck)(h.hoverheight,d.hoverheight),k.hoverradius=(0,i.pluck)(h.hoverradius,d.hoverradius),k.hoverwidth=(0,i.pluck)(h.hoverwidth,d.hoverwidth),k.dataLabelStyle=c._configureDataLabelStyle(h),k.shape){case f:s=0;break;case m:s=2,a=(0,i.mapSymbolName)(k.numSides);break;default:s=1}k.symbol=a,D?(k.fillColor=E(k.color,k.alpha,s),k.cloneFillColor=E(k.color,50,s)):(k.fillColor={color:k.color,alpha:k.alpha},k.cloneFillColor=(0,i.convertColor)(k.color,50)),k.colorArr=[{FCcolor:{color:k.color,alpha:k.alpha}},{FCcolor:{color:k.borderColor,alpha:_}}],k.rollOverProperties=c.pointHoverOptions(x,V,{shapeType:s,use3D:D,height:k.height,width:k.width,radius:k.radius,color:k.color,alpha:k.alpha,borderColor:k.borderColor,borderAlpha:_,borderThickness:F})}!k.update&&t&&(k.update=t.update),!k.add&&t&&(k.add=t.add),!0===c._refreshData&&delete x.removed}x.dataset=c,b.xMax=S,b.xMin=N,b.yMin=C,b.yMax=w},a.pointHoverOptions=function(e,t,a){var o,n,l,s,c=this,d=(0,i.pluckNumber)(e.config.showhovereffect,c.config.showhovereffect,t.plothovereffect,t.showhovereffect),u={},h=!!(0,i.pluck)(e.config.hovercolor,c.config.hovercolor,t.plotfillhovercolor,e.config.hoveralpha,c.config.hoveralpha,t.plotfillhoveralpha,e.config.borderhovercolor,c.config.borderhovercolor,t.plotborderhovercolor,e.config.borderhoveralpha,c.config.borderhoveralpha,t.plotborderhoveralpha,e.config.borderhoverthickness,c.config.borderhoverthickness,t.plotborderhoverthickness,e.config.hoverheight,c.config.hoverheight,t.plothoverheight,e.config.hoverwidth,c.config.hoverwidth,t.plothoverwidth,e.config.hoverradius,c.config.hoverradius,t.plothoverradius,d),p=!1;return(d===r&&h||d)&&(p=!0,o=(0,i.pluck)(e.config.hovercolor,c.config.hovercolor,t.plotfillhovercolor,(0,i.getLightColor)(a.color,70)),u={rawhoverAlpha:n=(0,i.pluck)(e.config.hoveralpha,c.config.hoveralpha,t.plotfillhoveralpha,a.alpha),rawhoverColor:o,rawhoverBorderColor:l=(0,i.pluck)(e.config.borderhovercolor,c.config.borderhovercolor,t.plotborderhovercolor,a.borderColor),rawhoverBorderAlpha:(0,i.pluckNumber)(e.config.borderhoveralpha,c.config.borderhoveralpha,t.plotborderhoveralpha,n,a.borderAlpha),stroke:(0,i.convertColor)(l,(0,i.pluckNumber)(e.config.borderhoveralpha,c.config.borderhoveralpha,t.plotborderhoveralpha,n,a.borderAlpha)),"stroke-width":(0,i.pluckNumber)(e.config.borderhoverthickness,c.config.borderhoverthickness,t.plotborderhoverthickness,a.borderThickness),height:(0,i.pluckNumber)(e.config.hoverheight,c.config.hoverheight,t.plothoverheight,a.height),width:(0,i.pluckNumber)(e.config.hoverwidth,c.config.hoverwidth,t.plothoverwidth,a.width),r:(0,i.pluckNumber)(e.config.hoverradius,c.config.hoverradius,t.plothoverradius,a.radius)},s=a.use3D?E((0,i.getFirstColor)((0,i.pluck)(e.config.hovercolor,c.config.hovercolor,t.plotfillhovercolor,(0,i.getLightColor)(a.color,70))),(0,i.pluck)(e.config.hoveralpha,c.config.hoveralpha,t.plotfillhoveralpha,a.alpha),a.shapeType):(0,i.convertColor)(o,n),u.fill=(0,i.toRaphaelColor)(s)),{enabled:p,rollOverAttrs:u}},a._addLegend=function(){var e,t=this,a=t.config,o=t.getFromEnv("legend"),r={enabled:a.includeInLegend,type:t.type,anchorSide:4,label:(0,i.getFirstValue)(t.config.JSONData.seriesname)};a.includeinlegend?((e=o.getItem(t.config.legendItemId))?e.configure({style:o.config.itemStyle,hiddenStyle:o.config.itemHiddenStyle,datasetVisible:o.config.datasetVisible,hoverStyle:o.config.itemHoverStyle}):(t.config.legendItemId=o.createItem(t),e=o.getItem(t.config.legendItemId),t.addExtEventListener("fc-click",(function(){e.itemClickFn()}),e)),e.configure(r),e.setStateCosmetics("default",{symbol:{fill:(0,i.toRaphaelColor)({color:a.color,alpha:a.alpha}),rawFillColor:a.color,stroke:(0,i.toRaphaelColor)({color:a.plotBorderColor,alpha:i.HUNDREDSTRING}),"stroke-width":a.anchorBorderThickness}}),t.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden")):t.config.legendItemId&&o.disposeItem(t.config.legendItemId)},a.createContainer=function(){var e=this,t=e.getFromEnv("animationManager"),a=e.getLinkedParent().getChildContainer();!e.getContainer("nodesGroup")&&e.addContainer("nodesGroup",D("nodesGroup",t,a.defaultVcanvasGroup,e)),!e.getContainer("dataLabelsGroup")&&e.addContainer("dataLabelsGroup",D("dataLabelsGroup",t,a.vcanvasLabelGroup,e)),!e.getContainer("cloneGraphicGroup")&&e.addContainer("cloneGraphicGroup",D("cloneGraphicGroup",t,a.defaultVcanvasGroup,e))},a.draw=function(){var e,t,a,o=this,r=o.components,n=o.getFromEnv("smartLabel"),l=r.data,i=o.components.removeDataArr||[],s=i.length,c=o.getFromEnv("dataLabelStyle"),d={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle};if(o.getState("dirty")||o._contextChanged()){for(o.createContainer(),a=o.getContainer("nodesGroup"),o.getFromEnv("animationManager").setAnimation({el:o.getContainer("cloneGraphicGroup"),attr:{opacity:.3},component:o}),a.css(d),n.useEllipsesOnOverflow(o.getFromEnv("chartConfig").useEllipsesWhenOverflow),e=0,t=l.length;e<t;e+=1)!l[e].removed&&this._drawNode(e);for(o.config.drawn=!0,e=0;e<s;e++)o._removeDataVisuals(i.shift());o._setupKdTree()}},a._setupKdTree=function(){var e,t,a,o,n,l=this.config,s=this.components.data,c=-Infinity;for(n=l.searchDataArr=[],e=s.length,t=0;t<e;t++)a=s[t].config,s[t].removed||a._yPos===r||isNaN(a._yPos)||(o=a.props.element.attr,c=Math.max(c,(0,i.pluckNumber)(a.radius,0)),n.push({x:(0,i.pluckNumber)(o.x,a._xPos),y:(0,i.pluckNumber)(o.y,a._yPos),index:t,data:s[t],shapeInfo:{type:a.shape,radius:(0,i.pluck)(a.radius,0),width:(0,i.pluckNumber)(a.width),height:(0,i.pluckNumber)(a.height),sides:(0,i.pluckNumber)(a.numSides)}}));l.tree=new u["default"](!0).buildKdTree(n),l.tree._setSearchLimit(c,c)},a.drawLabel=function(e){var t,a,o,n,l,s,c,d,u,h,p,g,f,m,v,b,y,C,w,S,N,D,E,T,F=this,P=F.getFromEnv("chart"),_=F.config,V=_.datasetIndex,I=F.getFromEnv("animationManager"),B=F.components.data,M=B.length,O=F.getContainer("nodesGroup"),R=F.getFromEnv("chartConfig"),G=F.getFromEnv("dataLabelStyle"),H=F.dragUp,z=F.dragMove,W=F.dragStart,U=F.getFromEnv("smartLabel"),j=F.getState("visible");for(U.setStyle(G),e!==r?M=(t=e)+1:t=0;t<M;t++)if(y=(l=(p=B[t]).config)._plotWidth,C=l._plotHeight,s=l.displayValue,w=l.labelAlign,b=(S=p.graphics).cloneText,N=p.config.rollOverProperties,D=l.shapeType,j&&L(s)&&s!==i.BLANK){switch(U.useEllipsesOnOverflow(R.useEllipsesWhenOverflow),u=.5*C-.5*(d=U.getSmartText(s,y-1,C-1)).height,w){case A:u=-u;break;case i.POSITION_BOTTOM:break;default:u=0}f=l._xPos,E=l._yPos,p._yAdjustment=g=u,m=E+g,c=l.link?i.POINTER:l.allowDrag?"move":i.BLANKSTRING,n=l.dataLabelStyle,a={text:d.text,title:d.tooltext||i.BLANKSTRING,fill:n.color,"text-bound":[n.backgroundColor,n.borderColor,G.borderThickness,G.borderPadding,G.borderRadius,G.borderDash],x:f,y:m,cursor:c},o=S.label,(o=I.setAnimation({el:o||"text",attr:a,container:O,component:F})).outlineText(_.showTextOutline,a.fill),S.label?o.show():(o=F.addGraphicalElement("plotLabel",o,!0),S.label=o,o.drag(z,W,H)),T=S&&(S.image||S.element),b&&I.setAnimation({el:b,attr:{transform:i.BLANKSTRING,x:f,y:m,text:d.text,title:d.tooltext||i.BLANKSTRING,fill:G.color,"text-bound":[G.backgroundColor,G.borderColor,G.borderThickness,G.borderPadding,G.borderRadius,G.borderDash]},component:F}),o.data("drag-options",{dataObj:p,dataset:F,datasetIndex:V,pointIndex:p.config.index,cursor:c,chart:P,link:p.link}),h={index:t,link:l.link,y:l.y,x:l.x,shape:(0,i.pluck)(D,"rect"),width:l.width,height:l.height,radius:l.radius,sides:l.numSides,label:l.displayValue,toolText:l.toolText,id:l.id,datasetIndex:V,datasetName:F.config.JSONData.seriesname,sourceType:"dataplot",allowDrag:l.allowDrag,numSides:l.numSides,imageNode:l.imageNode,imageAlign:l.imageAlign,imageWidth:l.imageWidth,imageHeight:l.imageHeight,labelAlign:l.labelAlign,color:l.color,alpha:l.alpha,hoverColor:l.rollOverProperties.rollOverAttrs.rawhoverColor,hoverAlpha:l.rollOverProperties.rollOverAttrs.rawhoverAlpha,borderHoverColor:l.rollOverProperties.rollOverAttrs.rawhoverBorderColor,borderHoverAlpha:l.rollOverProperties.rollOverAttrs.rawhoverBorderAlpha,borderHoverThickness:l.rollOverProperties.rollOverAttrs["stroke-width"],hoverHeight:l.rollOverProperties.rollOverAttrs.height,hoverWidth:l.rollOverProperties.rollOverAttrs.width,hoverRadius:l.rollOverProperties.rollOverAttrs.r},v=V+"_"+t,o.data(x,v),o.data(k,h),o.data("hoverAttr",N&&N.rollOverAttrs),o.data("unHoverAttr",T.data("unHoverAttr"))}else S.label&&S.label.hide()},a.parsePlotAttributes=function(e){var t,a,o,n,l,s,c,d,u,h,p,g,m,x,k,y,C,w,A,S,N,L,D,E=this,T=E.config.datasetIndex,F=E.components,P=F.nodes,_=E.getFromEnv("xAxis"),V=E.getFromEnv("yAxis"),I=F.data[e],B=I.config,M=E.config,O=I.graphics||(I.graphics={}),R=B.symbol,G=M.colorObj.lineColor,H=M.datasetPlotBorderThickness,z=I.config.rollOverProperties,W=B.shape,U=B.link?i.POINTER:B.allowDrag?"move":i.BLANKSTRING,j=O.cloneImage;if(B._yPos=a=V.getPixel(B.y),B._xPos=t=_.getPixel(B.x),a!==r&&!isNaN(a)){if(B.shapeArg={},d=B.shapeArg,n=(0,i.pluckNumber)(B.height),o=(0,i.pluckNumber)(B.width),l=(0,i.pluckNumber)(B.radius),m=R===v,s=B.id,c=B.imageNode,u=B.imageURL,h=B.imageAlign,p=m?o:1.4*l,x=(0,i.pluckNumber)(B.imageWidth,p),g=m?n:1.4*l,k=(0,i.pluckNumber)(B.imageHeight,g),w=(0,i.toRaphaelColor)(B.fillColor),B._plotWidth=p,B._plotHeight=g,C={fill:w,"stroke-width":H,stroke:(0,i.toRaphaelColor)(G)},S=[(R=(R=d.symbol=(0,i.pluck)(B.symbol,M.symbol,i.BLANK)).split(b))[1],t,a,B.radius,B.startAngle,0],"poly"===R[0]||R[0]===f?(B.shapeType=R[0],B.elemType="path",N={path:(0,i.polyPathToPath)(S)},d.x=t,d.y=a,d.radius=B.radius,d.sides=R[1],C.r=B.radius,delete C.width,delete C.x,delete C.y,delete C.height,z&&z.enabled&&(delete(A=z.rollOverAttrs).x,delete A.y,delete A.width,delete A.height)):(B.shapeType=i.SHAPE_RECT,B.elemType=i.SHAPE_RECT,d.x=t-o/2,d.y=a-n/2,d.r=0,d.width=o,d.height=n,N={x:d.x,y:d.y,width:o,height:n,r:0},C.width=o,C.height=n,C.x=t-o/2,C.y=a-n/2,z&&z.enabled&&((A=z.rollOverAttrs).x=t-A.width/2,A.y=a-A.height/2,delete A.r)),N.fill=w,N["stroke-width"]=H,N.stroke=(0,i.toRaphaelColor)(G),B.eventArgs={index:e,link:B.link,y:B.y,x:B.x,shape:(0,i.pluck)(W,"rect"),width:o,height:n,radius:l,sides:B.numSides,label:B.displayValue,toolText:B.toolText,id:B.id,datasetIndex:T,datasetName:E.config.JSONData.seriesname,sourceType:"dataplot",allowDrag:B.allowDrag,numSides:B.numSides,imageNode:B.imageNode,imageAlign:B.imageAlign,imageWidth:B.imageWidth,imageHeight:B.imageHeight,labelAlign:B.labelAlign,color:B.color,alpha:B.alpha,hoverColor:B.rollOverProperties.rollOverAttrs.rawhoverColor,hoverAlpha:B.rollOverProperties.rollOverAttrs.rawhoverAlpha,borderHoverColor:B.rollOverProperties.rollOverAttrs.rawhoverBorderColor,borderHoverAlpha:B.rollOverProperties.rollOverAttrs.rawhoverBorderAlpha,borderHoverThickness:B.rollOverProperties.rollOverAttrs["stroke-width"],hoverHeight:B.rollOverProperties.rollOverAttrs.height,hoverWidth:B.rollOverProperties.rollOverAttrs.width,hoverRadius:B.rollOverProperties.rollOverAttrs.r},c&&u){switch(k>g&&(k=g),x>p&&(x=p),h){case i.POSITION_MIDDLE:y=a-k/2;break;case i.POSITION_BOTTOM:y=g>k?a+g/2-k:a-k/2;break;default:y=g>k?a-.5*g:a-k/2}B.imageX=t-x/2,B.imageY=y,B.imageWidth=x,B.imageHeight=k,D={src:u,x:B.imageX,y:y,width:x,height:k,cursor:U},j&&(L={transform:i.BLANKSTRING,src:u,x:B.imageX,y:y,width:x,height:k})}B.pointAttr=C,P[s]=I,B.props={element:{attr:N},imageElement:{attr:D},cloneImage:{attr:L},cloneGraphic:{attr:N}}}},a.allocatePosition=function(e){var t,a,o=this;if(a=o.components.data.length,e!==r)o.parsePlotAttributes(e);else for(t=0;t<a;t++)o.parsePlotAttributes(t)},a._drawNode=function(e){var t,a,o=this,n=o.getFromEnv("chart"),l=o.config.datasetIndex,s=o.getLinkedParent(),c=o.components,d=o.getFromEnv("animationManager"),u=c.data[e],h=u.config,p=u.graphics||(u.graphics={}),g=h.imageNode,f=h.imageURL,m=o.getContainer("nodesGroup"),v=u.config.rollOverProperties,b=o.dragUp,y=o.dragMove,C=o.dragStart,w=h.link?i.POINTER:h.allowDrag?"move":i.BLANKSTRING,A=p.graphic,S=p.cloneText,L=p.cloneGraphic,D=p.cloneImage,E=p.image,T=p.label,F=o.getState("visible");h._yPos===r||isNaN(h._yPos)?(p.element&&(p.element=d.setAnimation({el:p.element,component:o})),p.image&&(p.image=d.setAnimation({el:p.image,component:o})),p.label&&(p.label=d.setAnimation({el:p.label,component:o}))):(a=(A=p.element)&&A.type,-1===h.elemType.indexOf(a)&&A&&(A.remove(),A=p.element=null,T&&T.remove(),E&&E.remove(),delete p.label,delete p.image,E=null,T=null),A=d.setAnimation({el:A||h.elemType,label:"node",attr:h.props.element.attr,container:m,component:o}),p.graphic||A.drag(y,C,b),p.element=A,A.show(),s.animationDone=!0,t=l+"_"+e,L&&(L.type===A.type?d.setAnimation({el:L,attr:h.props.element.attr,component:o}).transform(i.BLANKSTRING):(L.remove(),delete u.graphics.cloneGraphic,S&&(S.remove(),delete u.graphics.cloneText))),g&&f?(E=d.setAnimation({el:p.image||"image",attr:F&&h.props.imageElement.attr,doNotRemove:!0,container:m,component:o,callback:!F&&N}),!p.image&&E&&E.drag(y,C,b),p.image=E,F&&E.show(),E.data("drag-options",{dataObj:u,dataset:o,datasetIndex:o.index,pointIndex:u.config.index,cursor:w,link:u.link}),E.data(x,t),E.data(k,h.eventArgs),E.data("hoverAttr",v&&v.rollOverAttrs),E.data("unHoverAttr",h.pointAttr),D&&d.setAnimation({el:D,attr:h.props.cloneImage.attr,component:o})):p.image&&(p.image=d.setAnimation({el:p.image,component:o})),o.drawLabel(e),d.setAnimation({el:A,attr:{cursor:w},component:o}),A.data("drag-options",{dataObj:u,dataset:o,datasetIndex:o.index,pointIndex:u.config.index,cursor:w,chart:n,link:u.link}),A.data(x,t),A.data(k,h.eventArgs),A.data("hoverAttr",v&&v.rollOverAttrs),A.data("unHoverAttr",h.pointAttr),F?A.show():A.hide())},a.trimData=function(e){if(this.config.JSONData){var t=this.components,a=t.data&&t.data.length,o=e.data&&e.data.length||0,r=a-o;r>0&&this.removeData(o,r)}},a.removeData=function(e,t){var a=e,o=t,r=this.components,n=this.getLinkedParent(),l=r.data,i=r.removeDataArr||(r.removeDataArr=[]);o=o||1,(a=a||0)<0&&(a=0),r.removeDataArr=i=i.concat(l.splice(a,o)),n._clearConnectors()},a._removeDataVisuals=function(e){var t,a,o;if(e)for(t in a=e.graphics)(o=a[t]).hide&&"function"==typeof o.hide&&(this.getFromEnv("animationManager").setAnimation({el:o,attr:{"text-bound":[]},component:this}),o.hide(),o.transform&&o.transform(i.BLANKSTRING))},a.getJSONData=function(){var e,t,a=this.components.data,o=a.length,r=[];for(t=0;t<o;t++)(e=a[t]).removed||e.config._options&&(delete e.config._options.update,delete e.config._options.add,r.push(e.config._options));return r},t}(l["default"]),P=F;t["default"]=P},1396:(e,t,a)=>{var o=a(269);t.__esModule=!0;var r=o(a(1397));t.DragNodeDataset=r["default"];var n=o(a(1399));t.DragNodeLabels=n["default"];var l=o(a(1401));t.DragNodeConnector=l["default"];var i=o(a(1403));t.DragNodeGroup=i["default"]},1324:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={column:{"initial.dataset.errorBar2D":o(a(599))["default"]["initial.dataset.column"]},error:{"initial.dataset.errorBar2D":function(){return{"path.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}};t["default"]=r},1323:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=t._checkPointerOverPlot=t._checkPointerOverErrorBar=t._firePlotEvent=t._rolloutResponseSetter=t._rolloverResponseSetter=t.removePlots=t._getHoveredPlot=void 0;var r,n,l,i,s,c,d=o(a(288)),u=a(274),h=o(a(595)),p=a(282),g=o(a(1324)),f=u.preDefStr.colors.AAAAAA,m=u.preDefStr.ROUND,v=u.preDefStr.PERCENTAGESTRING,b=u.preDefStr.pStr,x=u.preDefStr.sStr,k="default",y="pointer",C=function(e,t,a,o){var r=t.graphics,n=r&&r.element,l=e.getFromEnv("animationManager");!t.errorBarHovered&&n&&0!==n.getData().showHoverEffect&&(l.setAnimationState("mouseOver"),l.setAnimation({el:n,label:"rect",component:o,attr:n.getData().setRolloverAttr,doNotRemove:!0})),n&&e.plotEventHandler(n,a,"DataPlotRollOver")},w=function(e,t,a,o){var r=t.graphics,n=r&&r.element,l=e.getFromEnv("animationManager");!t.errorBarHovered&&n&&0!==n.getData().showHoverEffect&&(l.setAnimationState("mouseOut"),l.setAnimation({el:n,label:"rect",component:o,attr:n.getData().setRolloutAttr,doNotRemove:!0})),n&&e.plotEventHandler(n,a,"DataPlotRollOut")};t._rolloutResponseSetter=w,t._rolloverResponseSetter=C,t._checkPointerOverErrorBar=c,t._checkPointerOverPlot=s,t._firePlotEvent=i,t._getHoveredPlot=l,t.removePlots=n,(0,p.addDep)({name:"errorbar2DColumnAnimation",type:"animationRule",extension:g["default"].column}),(0,p.addDep)({name:"errorbar2DErrorAnimation",type:"animationRule",extension:g["default"].error});var A=function(e){function t(){var t;return(t=e.call(this)||this).drawCallBackFn=function(e){return function(){"disappearing"===e?this.hide():this.show()}},t}(0,d["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorBar2D"},a.ErrorValueConfigure=function(){var e,t,a,o,n,l,i,s,c,d,h,p,g,m,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B=this,M=B.config,O=M.JSONData,R=O.data,G=B.getFromEnv("chart-attrib"),H=B.components.data,z=(0,u.pluckNumber)(G.seriesnameintooltip,1),W=(0,u.parseUnsafeString)((0,u.pluck)(G.tooltipsepchar,", ")),U=B.getFromEnv("number-formatter"),j=-Infinity,J=Infinity,K=B.getFromEnv("xAxis").getTicksLen(),q=Math.min(K,R&&R.length),Y=function(t){var o;return M.showTooltip?null===m?o=!1:t!==r?(i=[1,2,3,4,5,6,7,99,100,101,102,120,121,131,132],s={yaxisName:(0,u.parseUnsafeString)(G.yaxisname),xaxisName:(0,u.parseUnsafeString)(G.xaxisname),formattedValue:a.toolTipValue,errorValue:h,errorDataValue:a.errorToolTipValue,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue,positiveErrorValue:p,negativeErrorValue:g,positiveErrorDataValue:a.positiveErrorToolTipValue,negativeErrorDataValue:a.negativeErrorToolTipValue,label:a.label},o=(0,u.parseTooltext)(t,i,s,e,G,O)):(z&&(n=(0,u.getFirstValue)(O&&O.seriesname)),o=n?n+W:"",o+=a.label?a.label+W:""):o=!1,o};for(M.showTooltip=(0,u.pluckNumber)(G.showtooltip,1),M.errorInPercent=l=(0,u.pluckNumber)(O.errorinpercent,G.errorinpercent),M.showValues=(0,u.pluckNumber)(O.showvalues,G.showvalues,0),M.errorBarShadow=y=(0,u.pluckNumber)(G.errorbarshadow,G.showshadow,1),M.ignoreEmptyDatasets=(0,u.pluckNumber)(O.ignoreemptydatasets,0),L=(0,u.pluckNumber)(G.halferrorbar,1),M.notHalfErrorBar=!(0,u.pluckNumber)(G.halferrorbar,1),d=(0,u.getFirstAlpha)((0,u.pluck)(O.errorbaralpha,G.errorbaralpha,M.plotfillalpha)),M.errorBarWidthPercent=(0,u.pluckNumber)(O.errorbarwidthpercent,G.errorbarwidthpercent,70),M.errorBarColor=(0,u.convertColor)((0,u.getFirstColor)((0,u.pluck)(O.errorbarcolor,G.errorbarcolor,f)),d),M.errorBarThickness=(0,u.pluckNumber)(O.errorbarthickness,G.errorbarthickness,1),M.shadowOpacity=y?d/250:0,M.parentYAxis=C=(0,u.pluck)(O.parentyaxis&&O.parentyaxis.toLowerCase(),b)===x?1:0,M.cumulativeValueOnErrorBar=(0,u.pluckNumber)(O.cumulativevalueonerrorbar,G.cumulativevalueonerrorbar,1),I=0;I<q;I++)(t=H[I])&&(e=R&&R[I],a=t&&t.config,_=r,V=r,(0,u.pluckNumber)(e.value)!==r&&(t||(t=H[I]={graphics:{}}),t.config||(a=H[I].config={}),w=a.setValue,a.setErrorValue=h=U.getCleanValue(e.errorvalue),a.errorInPercent=(0,u.pluckNumber)(e.errorinpercent,l,0),p=U.getCleanValue((0,u.pluckNumber)(e.positiveerrorvalue,h)),g=U.getCleanValue((0,u.pluckNumber)(e.negativeerrorvalue,h)),a.errorInPercent&&(a.setErrorValue=h=(0,u.pluckNumber)((h/100*w).toFixed(2))),a.cumulativeValueOnErrorBar=(0,u.pluckNumber)(e.cumulativevalueonerrorbar,M.cumulativeValueOnErrorBar,1),a.positiveErrorValue=U.getCleanValue((0,u.pluckNumber)(e.positiveerrorvalue,e.errorvalue)),a.errorInPercent&&a.positiveErrorValue&&(a.positiveErrorValue=(0,u.pluckNumber)((a.positiveErrorValue/100*w).toFixed(2))),a.positiveCumulativeErrorValue=w+(0,u.pluckNumber)(a.positiveErrorValue,a.setErrorValue),a.negativeErrorValue=U.getCleanValue((0,u.pluckNumber)(e.negativeerrorvalue,e.errorvalue)),a.errorInPercent&&a.negativeErrorValue&&(a.negativeErrorValue=(0,u.pluckNumber)((a.negativeErrorValue/100*w).toFixed(2))),a.negativeCumulativeErrorValue=w-(0,u.pluckNumber)(a.negativeErrorValue,a.setErrorValue),a.errorToolTipValue=U.dataLabels(h,C),a.negativeErrorToolTipValue=U.dataLabels(a.negativeErrorValue,C),a.negativeCumulativeErrorTooltipValue=U.dataLabels(a.negativeCumulativeErrorValue,C),a.positiveErrorToolTipValue=U.dataLabels(a.positiveErrorValue,C),a.positiveCumulativeErrorTooltipValue=U.dataLabels(a.positiveCumulativeErrorValue,C),a.errorPercentValue=Math.round(h/w*u.HUNDREDSTRING*u.HUNDREDSTRING)/u.HUNDREDSTRING+v,T=a.cumulativeValueOnErrorBar,a.notHalfErrorBar=M.notHalfErrorBar,a.halfErrorBar=L,a.showValue=(0,u.pluckNumber)(e.showvalue,M.showValues),a.hasErrorValue=(0,u.pluckNumber)(e.errorvalue)!==r?1:0,A=a.errorValue=h,c=a.errorToolTipValue,m=c,o=Y(k=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,m),!1))),_=V=r,(k=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.positiveErrorToolTipValue),!1)))&&a.positiveErrorToolTipValue&&(_=Y(k)),(k=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.negativeErrorToolTipValue),!1)))&&a.negativeErrorToolTipValue&&(V=Y(k)),T&&((k=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.positiveCumulativeErrorTooltipValue),!1)))&&a.positiveCumulativeErrorTooltipValue&&(F=Y(k)),(k=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.negativeCumulativeErrorTooltipValue),!1)))&&a.negativeCumulativeErrorTooltipValue&&(P=Y(k))),D=a.positiveErrorValue,E=a.negativeErrorValue,(e.positiveerrorvalue||e.negativeerrorvalue)&&(a.halfErrorBar=0,a.notHalfErrorBar=!0),S=w+(null!==D?D:h),N=w-(a.halfErrorBar||E<0&&w<0?0:null!==E?E:h),j=Math.max(j,S,N),J=Math.min(J,S,N),a.errorValueArr=[],null===a.positiveErrorValue&&(a.positiveErrorValue=r),A=-a.positiveErrorValue,a.errorValueArr.push({errorValue:A,tooltext:T?F:_||o,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:A,tooltext:_||o}),a.notHalfErrorBar&&(A=a.negativeErrorValue,a.errorValueArr.push({errorValue:A,tooltext:T?P:V||o,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:A,tooltext:V||o})),a.toolText=Y(a.setTooltext)));M.maxValue=j,M.minValue=J},a.drawErrorValue=function(){var e,t,a,o,n,l,i,s,c,d,h,p,g,f,v,b,x,k,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B=this,M=B.config,O=B.getState("visible"),R=B.getFromEnv("yAxis"),G=M.errorBarThickness,H=M.errorBarColor,z=M.scrollMaxVal,W=B.getFromEnv("animationManager");for(t=M.scrollMinVal;t<z;t++)if((i=B.components.data[t])&&(_=i.trackerConfig,(I=i.errorTrackerConfig={}).errorTrackerArr=[],s=(c=i&&i.config)&&c.setValue,i!==r))if(i&&(s===r||null===s||""===c.errorValue||c.errorValue===r||null===c.errorValue&&null===c.positiveErrorValue&&null===c.negativeErrorValue))for(w=i.graphics.error&&i.graphics.error.length,a=0;a<w;a++)i.graphics.error&&i.graphics.error[a]&&(W.setAnimation({el:i.graphics.error[a],label:"path",callback:B.drawCallBackFn("disappearing")}),i.graphics.error[a].shadow({opacity:0}));else{for(i.errorBar&&delete i.errorBar,b=c.errorValueArr,I.errorLen=w=b.length,!i.graphics.error&&(i.graphics.error=[]),S=B.getJSONIndex()+"_"+t,o=c.setLink,L=s<0,D=i._xPos,E=i._yPos,T=i._width,F=i._height,l=L?E+F:E,n=D+T/2,i.errorBar||(i.errorBar=[]);w--;)N=null,I.errorTrackerArr[w]={},x=b[w],I.errorTrackerArr[w].tooltext=x.tooltext,P=x.errorStartValue,C=isNaN(P)?l:R.getPixel(P),null===(k=x.errorValue)||isNaN(k)?i.graphics.error&&i.graphics.error[w]&&W.setAnimation({el:i.graphics.error[w],label:"path",doNotRemove:!0,callback:B.drawCallBackFn("disappearing")}).shadow({opacity:0}):(A=T*(M.errorBarWidthPercent/100)/2,v=O?-1:0,f=R.getPixel(R.getValue(isNaN(P)?E:C)+k*v,{wrtVisible:!0}),L&&(f+=F),f,n,V=(G=(0,u.pluckNumber)(x.errorBarThickness,G))>5?G/2:2.5,h=Math.round(f)+G%2/2,p=Math.round(n)+G%2/2,i.errorBar[w]||(i.errorBar[w]=[]),x.errorEdgeBar?(g=["M",p-A,h,"H",p+A],i.errorBar[w][1]={_xPos:p-A-V,_yPos:h-V,_height:2*V,_width:2*(A+V),_toolText:x.tooltext}):(g=["M",p,C,"V",h],i.errorBar[w][0]={_xPos:p-V,_yPos:h<C?h:C,_height:Math.abs(C-h),_width:2*V,_toolText:x.tooltext}),e={path:g,stroke:H=(0,u.pluck)(x.errorBarColor,H),"stroke-width":G,cursor:o?y:"","stroke-linecap":m},d=!i.graphics.error[w]&&O?"appearing":O?"updating":"disappearing",N=i.graphics.error[w]=W.setAnimation({el:i.graphics.error[w]||"path",container:B.getContainer("errorPlotGroup"),component:B,attr:e,label:"path",state:d,callback:B.drawCallBackFn(d)}).shadow({opacity:M.shadowOpacity},B.getContainer("errorShadowGroup")),B.getFromEnv("chartConfig").enablemousetracking&&N.data("groupId",S).data("eventArgs",_.eventArgs));if(!c.notHalfErrorBar)for(a=2;a<4;a++)i.graphics.error&&i.graphics.error[a]&&W.setAnimation({el:i.graphics.error[a],label:"path",doNotRemove:!0,callback:B.drawCallBackFn("disappearing")}).shadow({opacity:0})}},a._firePlotEvent=function(e,t,a){var o=this,r=o.getFromEnv("chart"),n=o.components.data[t],l=n.graphics.element,i=n.graphics.label,s=n.errorBarHovered,c=n.config.setLink;if(l)switch(e){case"fc-mouseover":o._decideTooltipType(t,a),C(r,n,a,this),c&&(l.css({cursor:y}),i&&i.css({cursor:y}));break;case"fc-mouseout":o.getFromEnv("toolTipController").hide(o.config.currentToolTip),w(r,n,a,this),c&&(l.css({cursor:k}),i&&i.css({cursor:k}));break;case"fc-click":r.plotEventHandler(l,a);break;case"fc-mousemove":o._decideTooltipType(t,a),s&&!n._isRollover?(0!==l.showHoverEffect&&l.attr(l.getData().setRolloutAttr),n._isRollover=!0,n._isRollout=!1):s||n._isRollout||(0!==l.showHoverEffect&&l.attr(l.getData().setRolloverAttr),n._isRollover=!1,n._isRollout=!0)}},a._checkPointerOverErrorBar=function(e,t,a){var o,r,n,l,i,s,c,d,u,h,p=this.components.data,g=p[e];if(g&&(r=g.errorBar))for(l=r&&r.length;l--;)for(i=(n=r[l])&&n.length;i--;)if(n[i]&&n[i]._xPos&&(c=n[i]._xPos,d=n[i]._yPos,u=n[i]._height,h=n[i]._width,s=n[i]._toolText,o=t>=c&&t<=c+h&&a>=d&&a<=d+u))return{pointIndex:e,hovered:o,pointObj:p[e],toolText:s}},a._checkPointerOverPlot=function(e,t,a){var o,r,n=this,l=n.components.data[e],i=l&&l.config;if(l)return o=n.config.JSONData.plottooltext||n.getFromEnv("chart-attrib").plottooltext?"":i.toolTipValue,(r=n._checkPointerOverErrorBar(e,t,a))?(l.errorBarHovered=!0,i.finalTooltext=r.toolText):(r=n._checkPointerOverColumn(e,t,a),l.errorBarHovered=!1,r&&(i.finalTooltext=!1!==i.toolText&&i.toolText+o)),r},a._getHoveredPlot=function(e,t){var a,o,r=this;return a=r.getFromEnv("xAxis").getValue(e),(o=Math.round(a))-a>0?r._checkPointerOverPlot(o,e,t)||r._checkPointerOverPlot(o-1,e,t):r._checkPointerOverPlot(o+1,e,t)||r._checkPointerOverPlot(o,e,t)},a.removePlots=function(){var e,t,a,o,r=this.components,n=r.removeDataArr,l=r.pool||(r.pool={element:[],hotElement:[],label:[]}),i=n.length;for(a=0;a<i;a++)if(e=n[0],n.splice(0,1),e&&e.graphics){for((t=e.graphics).element&&t.element.hide()&&t.element.shadow({opacity:0}),o=0;o<4;o++)t.error&&t.error[o]&&this.getFromEnv("animationManager").setAnimation({el:t.error[o],label:"path"});e.graphics.element&&(l.element=l.element.concat(e.graphics.element)),e.graphics.hotElement&&(l.hotElement=l.hotElement.concat(e.graphics.hotElement)),e.graphics.label&&(l.label=l.label.concat(e.graphics.label))}r.pool=l},t}(h["default"]);t.removePlots=n=A.prototype.removePlots,t._getHoveredPlot=l=A.prototype._getHoveredPlot,t._firePlotEvent=i=A.prototype._firePlotEvent,t._checkPointerOverPlot=s=A.prototype._checkPointerOverPlot,t._checkPointerOverErrorBar=c=A.prototype._checkPointerOverErrorBar;var S=A;t["default"]=S},1328:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.errorLine":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]},"*":null}}}},1327:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=a(274),i=a(1323),s=o(a(616)),c=a(282),d=o(a(1328)),u=o(a(1329)),h=l.preDefStr.colors.AAAAAA,p=l.preDefStr.ROUND,g=l.preDefStr.PERCENTAGESTRING,f="pointer",m="rgba(192,192,192,"+(l.isIE?.002:1e-6)+")",v=Math,b=v.round,x=v.min,k=v.max,y=v.abs,C=l.hasTouch?l.TOUCH_THRESHOLD_PIXELS:l.CLICK_THRESHOLD_PIXELS;(0,c.addDep)({name:"errorlineErrorAnimation",type:"animationRule",extension:d["default"]}),(0,c.addDep)({name:"errorlineLineAnimation",type:"animationRule",extension:u["default"]});var w=function(e){function t(){var t;return(t=e.call(this)||this).drawCallbackFn=function(e){return function(){"disappearing"===e&&this.hide()}},t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorLine"},a.ErrorValueConfigure=function(){var e,t,a,o,n,i,s,c,d,u,p,f,m,v,y,C,w,A,S,N,L,D,E,T,F,P,_,V=this,I=V.getFromEnv("chart"),B=V.config,M=B.parentYAxis,O=B.JSONData,R=O.data,G=I.getFromEnv("dataSource").chart,H=V.getFromEnv("xAxis").getTicksLen(),z=V.components.data,W=V.getFromEnv("number-formatter"),U=B.linethickness,j=-Infinity,J=Infinity,K=(0,l.pluck)(G.tooltipsepchar,", "),q=(0,l.pluckNumber)(G.seriesnameintooltip,1),Y=function(t){var o;return I.config.showtooltip?null===c?o=!1:t!==r?(D=[1,2,3,4,5,6,7,99,100,101,102,120,121,131,132],E={yaxisName:(0,l.parseUnsafeString)(G.yaxisname),xaxisName:(0,l.parseUnsafeString)(G.xaxisname),formattedValue:a.toolTipValue,errorValue:s,errorDataValue:a.errorToolTipValue,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue,positiveErrorValue:p,negativeErrorValue:u,positiveErrorDataValue:a.positiveErrorToolTipValue,negativeErrorDataValue:a.negativeErrorToolTipValue,label:a.label},o=(0,l.parseTooltext)(t,D,E,e,G,O)):(q&&(T=(0,l.getFirstValue)(O&&O.seriesname)),o=T?T+K:"",o+=a.label?a.label+K:""):o=!1,o};for(B.errorBarShadow=C=(0,l.pluckNumber)(G.errorbarshadow,G.showshadow,1),B.ignoreEmptyDatasets=(0,l.pluckNumber)(O.ignoreemptydatasets,0),B.notHalfErrorBar=!(0,l.pluckNumber)(G.halferrorbar,1),n=(0,l.getFirstAlpha)((0,l.pluck)(O.errorbaralpha,G.errorbaralpha,B.alpha)),B.errorBarWidth=(0,l.pluckNumber)(O.errorbarwidth,G.errorbarwidth,5),B.errorBarColor=(0,l.convertColor)((0,l.getFirstColor)((0,l.pluck)(O.errorbarcolor,G.errorbarcolor,h)),n),i=(0,l.pluckNumber)(O.errorbarthickness,G.errorbarthickness,1),B.errorBarThickness=i>U?U:i,B.shadowOpacity=C?n/250:0,B.errorInPercent=F=(0,l.pluckNumber)(O.errorinpercent,G.errorinpercent),B.cumulativeValueOnErrorBar=(0,l.pluckNumber)(O.cumulativevalueonerrorbar,G.cumulativevalueonerrorbar,1),_=0;_<H;_++)e=R&&R[_],R&&e&&(t=z[_],a=t&&t.config,t||(t=z[_]={graphics:{}}),t.config||(a=z[_].config={}),S=a.setValue,a.notHalfErrorBar=B.notHalfErrorBar,s=W.getCleanValue(e.errorvalue),a.errorToolTipValue=W.dataLabels(s,M),p=W.getCleanValue((0,l.pluckNumber)(e.positiveerrorvalue,s)),u=W.getCleanValue((0,l.pluckNumber)(e.negativeerrorvalue,s)),a.setErrorValue=a.errorValue=N=s,a.hasErrorValue=(0,l.pluckNumber)(e.errorvalue)!==r?1:0,o=a.errorToolTipValue,c=o,P=Y(d=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,c),!1))),a.errorInPercent=(0,l.pluckNumber)(e.errorinpercent,F,0),a.errorInPercent&&(a.setErrorValue=s=(0,l.pluckNumber)((s/100*S).toFixed(2))),a.cumulativeValueOnErrorBar=L=(0,l.pluckNumber)(e.cumulativevalueonerrorbar,B.cumulativeValueOnErrorBar,1),a.positiveErrorValue=W.getCleanValue((0,l.pluckNumber)(e.positiveerrorvalue,e.errorvalue)),a.errorInPercent&&a.positiveErrorValue&&(a.positiveErrorValue=(0,l.pluckNumber)((a.positiveErrorValue/100*S).toFixed(2))),a.positiveCumulativeErrorValue=S+(0,l.pluckNumber)(a.positiveErrorValue,a.setErrorValue),a.negativeErrorValue=W.getCleanValue((0,l.pluckNumber)(e.negativeerrorvalue,e.errorvalue)),a.errorInPercent&&a.negativeErrorValue&&(a.negativeErrorValue=(0,l.pluckNumber)((a.negativeErrorValue/100*S).toFixed(2))),a.negativeCumulativeErrorValue=S-(0,l.pluckNumber)(a.negativeErrorValue,a.setErrorValue),a.errorToolTipValue=W.dataLabels(s,M),a.negativeErrorToolTipValue=W.dataLabels(a.negativeErrorValue,M),a.negativeCumulativeErrorTooltipValue=W.dataLabels(a.negativeCumulativeErrorValue,M),a.positiveErrorToolTipValue=W.dataLabels(a.positiveErrorValue,M),a.positiveCumulativeErrorTooltipValue=W.dataLabels(a.positiveCumulativeErrorValue,M),a.errorPercentValue=b(s/S*l.HUNDREDSTRING*l.HUNDREDSTRING)/l.HUNDREDSTRING+g,v=y=r,(d=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.positiveErrorToolTipValue),!1)))&&a.positiveErrorToolTipValue&&(v=Y(d)),(d=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.negativeErrorToolTipValue),!1)))&&a.negativeErrorToolTipValue&&(y=Y(d)),(e.positiveerrorvalue||e.negativeerrorvalue)&&(a.halfErrorBar=0,a.notHalfErrorBar=!0),L&&((d=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.positiveCumulativeErrorTooltipValue),!1)))&&a.positiveCumulativeErrorTooltipValue&&(f=Y(d)),(d=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,O.errorplottooltext,G.errorplottooltext,a.negativeCumulativeErrorTooltipValue),!1)))&&a.negativeCumulativeErrorTooltipValue&&(m=Y(d))),w=S+(null!==a.positiveErrorValue?a.positiveErrorValue:s),A=S-(a.halfErrorBar||a.negativeErrorValue<0&&S<0?0:null!==a.negativeErrorValue?a.negativeErrorValue:s),j=k(j,w,A),J=x(J,w,A),null===s&&(s=r),a.errorValueArr=[],null===a.positiveErrorValue&&(a.positiveErrorValue=r),N=-a.positiveErrorValue,a.errorValueArr.push({errorValue:N,tooltext:L?f:v||P,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:N,tooltext:v||P}),a.notHalfErrorBar&&(N=a.negativeErrorValue,a.errorValueArr.push({errorValue:N,tooltext:L?m:y||P,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:N,tooltext:y||P})),a.toolText=Y(a.setTooltext));B.maxValue=j,B.minValue=J},a._show=function(){var e=this,t=e.chart,a=e.graphics&&e.graphics.container,o=e.graphics&&e.graphics.dataLabelContainer,r=e.graphics&&e.graphics.errorGroupContainer,n=e.graphics&&e.graphics.errorShadowContainer;t._chartAnimation(),a.lineGroup.show(),a.anchorGroup.show(),a.anchorShadowGroup.show(),a.lineShadowGroup.show(),o.show(),e.setState("visible",!0),r&&r.show(),n&&n.show(),e._conatinerHidden=!1,t._setAxisLimits(),e.yAxis.draw(),t._drawDataset()},a._hide=function(){var e=this,t=e.chart;t._chartAnimation(),e.setState("visible",!1),t._setAxisLimits(),e.yAxis.draw(),t._drawDataset()},a.draw=function(){e.prototype.draw.call(this),this.drawErrorValue()},a.drawErrorValue=function(){var e,t,a,o,n,l,i,s,c,d,u,h,g,v,x,k,w,A,S,N,L,D,E,T,F,P,_=this,V=_.config,I=_.getFromEnv("xAxis").getTicksLen(),B=_.getState("visible"),M=_.getFromEnv("yAxis"),O=_.components.data,R=V.errorBarThickness,G=R>5?R/2:2.5,H=_.getFromEnv("animationManager");for(t=0;t<I;t++)if(d=(u=(c=O[t])&&c.config)&&u.setValue,c!==r&&d!==r&&null!==d)if((P=c.errorTrackerConfig={}).errorTrackerArr=[],w=u.errorValueArr,P.errorLen=L=w.length,!c.graphics.error&&(c.graphics.error=[]),!c.graphics.errorTracker&&(c.graphics.errorTracker=[]),""===u.errorValue||u.errorValue===r||null===u.errorValue&&null===u.positiveErrorValue&&null===u.negativeErrorValue)for(o=0;o<L;o++)c.graphics.error&&c.graphics.error[o]&&H.setAnimation({el:c.graphics.error[o]||"path",label:"path",component:_,callback:_.drawCallbackFn("disappearing")}).shadow({opacity:0});else{for(l=u.setLink,T=c._xPos,s=F=c._yPos,i=T,c.errorBar&&delete c.errorBar,c.errorBar=[];L--;)E=null,P.errorTrackerArr[L]={},A=w[L],P.errorTrackerArr[L].tooltext=A.tooltext,N=s,null===(S=A.errorValue)||isNaN(S)?c.graphics.error&&c.graphics.error[L]&&(c.graphics.error[L].hide(),c.graphics.error[L].shadow({opacity:0})):(D=V.errorBarWidth/2,k=B?1:0,x=F+(M.getPixel(0)-M.getPixel(1))*S*k,i,h=b(x)+R%2/2,g=b(i)+R%2/2,c.errorBar[L]||(c.errorBar[L]=[]),A.errorEdgeBar?(v=["M",g-D,h,"H",g+D],c.errorBar[L][1]={_xPos:g-D-G,_yPos:h-G,_height:2*G,_width:2*(D+G),_toolText:A.tooltext}):(v=["M",g,N,"V",h],c.errorBar[L][0]={_xPos:g-G,_yPos:h<N?h:N,_height:y(N-h),_width:2*G,_toolText:A.tooltext}),e={path:v,stroke:V.errorBarColor,"stroke-width":R,cursor:l?f:"","stroke-linecap":p},n=!c.graphics.error[L]&&B?"appearing":B?"updating":"disappearing",E=c.graphics.error[L]=H.setAnimation({el:c.graphics.error[L]||"path",state:n,attr:e,label:"path",component:_,container:_.getContainer("errorPlotGroup"),callback:_.drawCallbackFn(n)}),"disappearing"!==n&&E.show(),E&&E.shadow({opacity:V.shadowOpacity},_.getContainer("errorShadowGroup")),P.errorTrackerArr[L].attr={path:v,stroke:m,"stroke-width":R<C?C:R,cursor:l?f:""});if(!u.notHalfErrorBar)for(o=2;o<4;o++)c.graphics.error&&c.graphics.error[o]&&H.setAnimation({el:c.graphics.error[o]||"path",label:"path",component:_,doNotRemove:!0,callback:_.drawCallbackFn("disappearing")}).shadow({opacity:0})}else if(c&&c.graphics.error)for(a=0;a<c.graphics.error.length;a++)c.graphics.error&&c.graphics.error[a]&&H.setAnimation({el:c.graphics.error[a]||"path",label:"path",component:_,doNotRemove:!0,callback:_.drawCallbackFn("disappearing")}).shadow({opacity:0})},a._firePlotEvent=function(e,t,a){i._firePlotEvent.call(this,e,t,a)},a._checkPointerOverErrorBar=function(e,t,a){return i._checkPointerOverErrorBar.call(this,e,t,a)},a._checkPointerOverPlot=function(e,t,a){var o,r=this,n=r.components.data[e],l=n&&n.config;if(n)return(o=r.isWithinShape(n,e,t,a))?(n.errorBarHovered=!1,l.finalTooltext=!1!==l.toolText&&l.toolText):(o=r._checkPointerOverErrorBar(e,t,a))&&(n.errorBarHovered=!0,l.finalTooltext=o.toolText),o},a._getHoveredPlot=function(e,t){return i._getHoveredPlot.call(this,e,t)},a.getCanvasPadding=function(){var e,t,a,o,r,n,i=this,s=.5*i.config.errorBarWidth,c=i.getFromEnv("chart"),d=c.config.dataLabelStyle,u=i.components&&i.components.data||[],h=u[0],p=u[u.length-1],g={},f=c.getFromEnv("smartLabel"),m={paddingLeft:0,paddingRight:0};return h&&(n=(e=h.config).showValue,a=e&&e.anchorProps||{},n&&(t=e.displayValue,f.useEllipsesOnOverflow(c.config.useEllipsesWhenOverflow),f.setStyle(d),g=f.getOriSize(t)),e.setValue&&(o=k((0,l.pluckNumber)(a.radius,0),s)+(0,l.pluckNumber)(a.borderThickness,0),r=(g.width||0)/2),m.paddingLeft=k(o,r)),p&&(n=(e=p.config).showValue,a=e&&e.anchorProps||{},n&&(t=e.displayValue,f.setStyle(d),g=f.getOriSize(t)),e.setValue&&(o=k((0,l.pluckNumber)(a.radius,0),s)+(0,l.pluckNumber)(a.borderThickness,0),r=(g.width||0)/2),m.paddingRight=k(o,r)),m},a.removePlots=function(){i.removePlots.call(this)},t}(s["default"]);t["default"]=w},1329:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.errorLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1334:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.errorScatter":o(a(1329))["default"]["initial.dataset.errorLine"]};t["default"]=r},1332:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(723)),i=a(274),s=o(a(724)),c=a(282),d=o(a(1333)),u=o(a(1334)),h=i.preDefStr.colors.AAAAAA,p=i.preDefStr.ROUND,g=i.preDefStr.PERCENTAGESTRING,f="horizontal",m="vertical",v="optional",b="M",x="disappearing";(0,c.addDep)({name:"errorscatterAnimation",type:"animationRule",extension:d["default"]}),(0,c.addDep)({name:"errorscatterErrorAnimation",type:"animationRule",extension:u["default"]});var k=function(e){function t(){var t;return(t=e.call(this)||this).drawCallbackFn=function(e){return function(){"disappearing"===e&&this.hide()}},t.removeCallbackFn=function(){this.hide(),this.shadow({opacity:0})},t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorScatter"},a.ErrorValueConfigure=function(){var e,t,a,o,n,l,s,c,d,u,p,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe,re=this,ne=re.config,le=ne.JSONData,ie=re.getFromEnv("dataSource").categories&&re.getFromEnv("dataSource").categories[0].category,se=re.getFromEnv("chart-attrib"),ce=le.data,de=ce&&ce.length||0,ue=re.components.data,he=re.getFromEnv("number-formatter"),pe=(0,i.pluck)(se.tooltipsepchar,", "),ge=(0,i.parseUnsafeString)(se.yaxisname),fe=(0,i.parseUnsafeString)(se.xaxisname),me=ne.parentYAxis,ve=-Infinity,be=+Infinity,xe=ve,ke=be,ye=be,Ce=ve,we=function(t,o){var n;return ne.showTooltip?null===S?n=!1:t!==r?(E=[1,2,3,4,5,6,7,8,9,10,11,99,100,101,102,103,104,105,106,107,109,120,121,123,124,125,126,127,128,129,130],T={yaxisName:ge,xaxisName:fe,yDataValue:S,xDataValue:a.label,formattedValue:a.toolTipValue,horizontalErrorValue:k,horizontalErrorDataValue:C,verticalErrorValue:y,verticalErrorDataValue:w,horizontalErrorPercentValue:L,verticalErrorPercentValue:D,label:a.label,horizontalPositiveErrorValue:a.useHorizontalErrorBar?O:r,horizontalPositiveErrorDataValue:a.useHorizontalErrorBar?G:r,horizontalNegativeErrorValue:d?r:M,horizontalNegativeErrorDataValue:d?r:W,verticalPositiveErrorValue:a.useVerticalErrorBar?B:r,verticalPositiveErrorDataValue:a.useVerticalErrorBar?j:r,verticalNegativeErrorValue:u?r:q,verticalNegativeErrorDataValue:u?r:ae,errorValue:o,errorDataValue:o,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue},n=(0,i.parseTooltext)(t,E,T,e,se,le)):null===S?n=!1:(ne.seriesNameInTooltip&&(F=(0,i.getFirstValue)(le&&le.seriesname)),n=F?F+pe:"",n+=A.x?he.xAxis(A.x)+pe:"",n+=a.toolTipValue):n=!1,n};for(ne.errorBarShadow=l=(0,i.pluckNumber)(se.errorbarshadow,se.showshadow,0),ne.ignoreEmptyDatasets=(0,i.pluckNumber)(le.ignoreemptydatasets,0),ne.notHalfErrorBar=!(0,i.pluckNumber)(se.halferrorbar,1),ne.errorBarAlpha=(0,i.getFirstAlpha)((0,i.pluck)(le.errorbaralpha,se.errorbaralpha)),ne.errorBarWidth=s=(0,i.pluckNumber)(le.errorbarwidth,se.errorbarwidth,5),ne.errorBarColor=c=(0,i.convertColor)((0,i.getFirstColor)((0,i.pluck)(le.errorbarcolor,se.errorbarcolor,h)),o),ne.errorBarThickness=n=(0,i.pluckNumber)(le.errorbarthickness,se.errorbarthickness,1),ne.shadowOpacity=l?NaN:0,ne.halfHorizontalErrorBar=d=(0,i.pluckNumber)(se.halfhorizontalerrorbar,1),ne.halfVerticalErrorBar=u=(0,i.pluckNumber)(se.halfverticalerrorbar,1),ne.initAnimation===r&&(ne.initAnimation=re.getFromEnv("chart").initAnimation),p=(0,i.pluck)(le.horizontalerrorbaralpha,le.errorbaralpha,se.horizontalerrorbaralpha,o),f=(0,i.pluckNumber)(le.verticalerrorbaralpha,le.errorbaralpha,se.verticalerrorbaralpha,o),m=(0,i.convertColor)((0,i.pluck)(le.horizontalerrorbarcolor,le.errorbarcolor,se.horizontalerrorbarcolor,c),p),v=(0,i.convertColor)((0,i.pluck)(le.verticalerrorbarcolor,le.errorbarcolor,se.verticalerrorbarcolor,c),f),b=(0,i.pluckNumber)(le.horizontalerrorbarthickness,le.errorbarthickness,se.horizontalerrorbarthickness,n),x=(0,i.pluckNumber)(le.verticalerrorbarthickness,le.errorbarthickness,se.verticalerrorbarthickness,n),ne.horizontalErrorBarWidth=(0,i.pluckNumber)(le.horizontalerrorbarwidth,se.horizontalerrorbarwidth,s),ne.verticalErrorBarWidth=(0,i.pluckNumber)(le.verticalerrorbarwidth,se.verticalerrorbarwidth,s),ne.cumulativeValueOnErrorBar=(0,i.pluckNumber)(le.cumulativevalueonerrorbar,se.cumulativevalueonerrorbar,1),oe=0;oe<de;oe++)ce&&(e=ce&&ce[oe],t=ue[oe],a=t&&t.config,t||(t=ue[oe]={graphics:{}}),t.config||(a=ue[oe].config={}),A=a.setValue,a.errorValue=e.errorvalue,a.cumulativeValueOnErrorBar=ee=(0,i.pluckNumber)(e.cumulativevalueonerrorbar,ne.cumulativeValueOnErrorBar,1),a.hErrorValue=k=he.getCleanValue((0,i.pluck)(e.horizontalerrorvalue,e.errorvalue)),C=he.xAxis(k),a.vErrorValue=y=he.getCleanValue((0,i.pluck)(e.verticalerrorvalue,e.errorvalue)),w=he.dataLabels(y),a.hPositiveErrorValue=O=he.getCleanValue((0,i.pluck)(e.horizontalpositiveerrorvalue,e.positiveerrorvalue,k)),a.hNegativeErrorValue=M=he.getCleanValue((0,i.pluck)(e.horizontalnegativeerrorvalue,e.negativeerrorvalue,k)),a.vPositiveErrorValue=B=he.getCleanValue((0,i.pluck)(e.verticalpositiveerrorvalue,e.positiveerrorvalue,y)),a.vNegativeErrorValue=q=he.getCleanValue((0,i.pluck)(e.verticalnegativeerrorvalue,e.negativeerrorvalue,y)),L=Math.round(k/A.x*i.HUNDREDSTRING*i.HUNDREDSTRING)/i.HUNDREDSTRING+g,D=Math.round(y/A.y*i.HUNDREDSTRING*i.HUNDREDSTRING)/i.HUNDREDSTRING+g,G=he.dataLabels(O,me),R=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,G),!1)),W=he.dataLabels(M,me),J=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,W),!1)),j=he.dataLabels(B,me),Q=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,j),!1)),ae=he.dataLabels(q,me),te=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,ae),!1)),H=Z=$=Y=r,ee&&(z=he.dataLabels(A.x+O,me),H=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,z),!1)),U=he.dataLabels(A.x-M,me),Z=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,U),!1)),K=he.dataLabels(A.y+B,me),$=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,K),!1)),X=he.dataLabels(A.y-q,me),Y=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,le.errorplottooltext,se.errorplottooltext,X),!1))),ie&&ie[oe]&&(a.label=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(ie[oe].tooltext,ie[oe].label)))),e.horizontalpositiveerrorvalue||e.positiveerrorvalue||e.horizontalnegativeerrorvalue||e.negativeerrorvalue?a.halfHorizontalErrorBar=d=0:a.halfHorizontalErrorBar=d=ne.halfHorizontalErrorBar,e.verticalpositiveerrorvalue||e.positiveerrorvalue||e.verticalnegativeerrorvalue||e.negativeerrorvalue?a.halfVerticalErrorBar=u=0:a.halfVerticalErrorBar=u=ne.halfVerticalErrorBar,null!==A.x&&(P=A.x+Number(O),_=A.x-(d?0:Number(M)),Ce=Math.max(Ce,P,_),ye=Math.min(ye,P,_)),null!==A.y&&(P=A.y+Number(B),_=A.y-(u?0:Number(q)),xe=Math.max(xe,P,_),ke=Math.min(ke,P,_)),a.useHorizontalErrorBar=(0,i.pluckNumber)(e.usehorizontalerrorbar,le.usehorizontalerrorbar,se.usehorizontalerrorbar,0),a.useVerticalErrorBar=(0,i.pluckNumber)(e.useverticalerrorbar,le.useverticalerrorbar,se.useverticalerrorbar,1),a.errorValueConf={},(V=a.errorValueConf.horizontal={}).mandatory={},V.mandatory.marker={errorValue:-(null===O?r:O),tooltext:we(R,G),errorBarColor:m,isHorizontal:!0,errorBarThickness:b,shadowOpacity:l?p/250:0},V.mandatory.limit={errorValue:-(null===O?r:O),tooltext:ee?we(H,z):we(R,G),errorBarColor:m,isHorizontal:!0,errorBarThickness:b,shadowOpacity:l?p/250:0,errorEdgeBar:!0},V.optional={},V.optional.marker={errorValue:M,tooltext:we(J,W),errorBarColor:m,isHorizontal:!0,errorBarThickness:b,shadowOpacity:l?p/250:0},V.optional.limit={errorValue:M,tooltext:ee?we(Z,U):we(J,W),errorBarColor:m,isHorizontal:!0,errorBarThickness:b,shadowOpacity:l?p/250:0,errorEdgeBar:!0},(I=a.errorValueConf.vertical={}).mandatory={},I.mandatory.marker={errorValue:-(null===B?r:B),tooltext:we(Q,j),errorBarColor:v,errorBarThickness:x,shadowOpacity:l?f/250:0},I.mandatory.limit={errorValue:-(null===B?r:B),tooltext:ee?we($,K):we(Q,j),errorBarColor:v,errorBarThickness:x,shadowOpacity:l?f/250:0,errorEdgeBar:!0},I.optional={},I.optional.marker={errorValue:q,tooltext:we(te,ae),errorBarColor:v,errorBarThickness:x,shadowOpacity:l?f/250:0},I.optional.limit={errorValue:q,tooltext:ee?we(Y,X):we(te,ae),errorBarColor:v,errorBarThickness:x,shadowOpacity:l?f/250:0,errorEdgeBar:!0},A=a.setValue,S=a.formatedVal,ne.showTooltip?a.setTooltext!==r?(E=[1,2,3,4,5,6,7,8,9,10,11,99,100,101,102,103,104,105,106,107,109,120,121,123,124,125,126,127,128,129,130],T={yaxisName:ge,xaxisName:fe,yDataValue:S,xDataValue:a.label,formattedValue:a.toolTipValue,horizontalErrorValue:k,horizontalErrorDataValue:C,verticalErrorValue:y,verticalErrorDataValue:w,horizontalErrorPercentValue:L,verticalErrorPercentValue:D,label:a.label,horizontalPositiveErrorValue:a.useHorizontalErrorBar?O:r,horizontalPositiveErrorDataValue:a.useHorizontalErrorBar?G:r,horizontalNegativeErrorValue:d?r:M,horizontalNegativeErrorDataValue:d?r:W,verticalPositiveErrorValue:a.useVerticalErrorBar?B:r,verticalPositiveErrorDataValue:a.useVerticalErrorBar?j:r,verticalNegativeErrorValue:u?r:q,verticalNegativeErrorDataValue:u?r:ae,errorValue:a.errorValue,errorDataValue:he.dataLabels(a.errorValue,ne.parentYAxis)},N=(0,i.parseTooltext)(a.setTooltext,E,T,e,se,le)):null===S?N=!1:(ne.seriesNameInTooltip&&(F=(0,i.getFirstValue)(le&&le.seriesname)),N=F?F+pe:"",N+=A.x?he.xAxis(A.x)+pe:"",N+=a.toolTipValue):N=!1,a.toolText=N);ne.xMax=Ce,ne.xMin=ye,ne.yMin=ke,ne.yMax=xe},a.drawErrorValue=function(){var e,t,a,o,n,l,i,c,d,u,h,g,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q=this,Z=Q.config,$=Q.config.JSONData.data,ee=$&&$.length,te=Q.getState("visible"),ae=Q.components.data,oe=Q.getFromEnv("animationManager"),re=[];for(t=0;t<ee;t++)if((X=(g=ae[t]).errorTrackerConfig={}).errorTrackerArr=[],k=(C=g&&g.config)&&C.setValue,J=C.errorValueConf,g!==r&&k!==r&&null!==k&&J){if(Y=Object.keys(o=g.graphics),null===C.vErrorValue&&null===C.vPositiveErrorValue&&null===C.vNegativeErrorValue)for(j=0;j<Y.length;j++)Y[j].match(/error-horizontal-/)&&(oe.setAnimation({el:o[Y[j]],state:"disappearing",callback:Q.drawCallbackFn("disappearing")}),o[Y[j]].shadow({opacity:0}));if(null===C.hErrorValue&&null===C.hPositiveErrorValue&&null===C.vPositiveErrorValue)for(j=0;j<Y.length;j++)Y[j].match(/error-vertical-/)&&(oe.setAnimation({el:o[Y[j]],state:"disappearing",callback:Q.drawCallbackFn("disappearing")}),o[Y[j]].shadow({opacity:0}));if(!(null===C.hErrorValue&&null===C.vErrorValue&&C.hPositiveErrorValue&&C.hNegativeErrorValue&&C.vPositiveErrorValue&&C.vNegativeErrorValue))for(K in d=C.setLink,H=g._xPos,h=g._yPos,u=H,J)if(J.hasOwnProperty(K))for(P in _=J[K])if(_.hasOwnProperty(P))for(B in V=_[P])if(V.hasOwnProperty(B)){if(y=r,I=V[B],e={},G=null,(X.errorTrackerArr[0]={}).tooltext=I.tooltext,O=h,M=I.errorValue,w=!C.useHorizontalErrorBar&&K===f,A=!C.useVerticalErrorBar&&K===m,S=C.halfHorizontalErrorBar&&K===f&&P===v,N=C.halfVerticalErrorBar&&K===m&&P===v,w||A||S||N)y=x;else if(null===M||M===r||isNaN(M))y=x;else{if(c=I.errorBarColor,n=I.isHorizontal,l=I.errorBarThickness,i=n?Z.horizontalErrorBarWidth:Z.verticalErrorBarWidth,R=te?i/2:0,F=te?-1:0,q=l>5?l/2+.5:2.75,n)if(L=T=Q.getFromEnv("xAxis").getPixel(g.config._x+M*F),D=u,L=Math.round(O)+l%2/2,D=Math.round(T)+l%2/2,I.errorEdgeBar)for(E=[b,D,L-R,"V",L+R],z=2*R,W=L-R,U=q;U<z;U+=2*q)re.push({x:D,y:W+U,r:q,index:t,data:g,toolText:I.tooltext,barType:"h"});else for(E=[b,u,L,"H",D],z=Math.abs(u-D),W=u>D?D:u,U=q;U<z;U+=2*q)re.push({x:W+U,y:L,r:q,index:t,data:g,toolText:I.tooltext,barType:"h"});else if(L=T=Q.getFromEnv("yAxis").getPixel(g.config._y+M*F),D=u,L=Math.round(T)+l%2/2,D=Math.round(u)+l%2/2,I.errorEdgeBar)for(E=[b,D-R,L,"H",D+R],z=2*R,W=D-R,U=q;U<=z;U+=2*q)re.push({x:W+U,y:L,r:q,index:t,data:g,toolText:I.tooltext,barType:"v"});else for(E=[b,D,O,"V",L],z=Math.abs(O-L),W=O>L?L:O,U=q;U<=z;U+=2*q)re.push({x:D,y:W+U,r:q,index:t,data:g,toolText:I.tooltext,barType:"v"});e={path:E,"stroke-width":te?l:0,stroke:c,cursor:d?"pointer":"","stroke-linecap":p}}a=["error",K,P,B].join("-"),y||(y=o[a]?"updating":"appearing"),(o[a]||"disappearing"!==y)&&(G=o[a]=oe.setAnimation({el:o[a]||"path",container:Q.getContainer("errorPlotGroup"),component:Q,attr:e,state:y,label:"path",callback:Q.drawCallbackFn(y)}),"disappearing"!==y&&G.show(),G.shadow({opacity:"disappearing"===y?0:Z.shadowOpacity},Q.getContainer("errorShadowGroup")))}}re.length&&(this.config.dataTreeB=(new s["default"]).buildKdTree(re)),Z.initAnimation=!1},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i;return(a=this.config.dataTree.getNeighbour({x:e,y:t},!0))?(r=a.data.config.toolText,a.data.config.finalTooltext=r,l=a.data.config.hoverEffects,(i=a.data.graphics.element).data("hoverEnabled",l.enabled),l.enabled&&i.attr(i.getData().setRolloverAttr),{pointIndex:a.index,hovered:!0,pointObj:a.data}):(o=this.config.dataTreeB&&this.config.dataTreeB.getNeighbour({x:e,y:t},!0))?(("h"===o.barType||"v"===o.barType)&&(n=o.toolText),o.data.config.finalTooltext=n,(i=o.data.graphics.element).data("hoverEnabled",!1),i.attr(i.getData().setRolloutAttr),{pointIndex:o.index,hovered:!0,pointObj:o.data}):void 0},a.removePlots=function(){var e,t,a,o,r=this,n=r.components,l=n.removeDataArr,i=n.pool||(n.pool={element:[],hotElement:[],label:[]}),s=l.length;for(a=0;a<s;a++)if(e=l[0],l.splice(0,1),e&&e.graphics){for(o in t=e.graphics)t.hasOwnProperty(o)&&r.getFromEnv("animationManager").setAnimation({el:t[o],component:r,attr:{},state:"disappering",callback:r.removeCallbackFn});e.graphics.element&&(i.element=i.element.concat(e.graphics.element)),e.graphics.label&&(i.label=i.label.concat(e.graphics.label))}n.pool=i},t}(l["default"]);t["default"]=k},1333:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.errorScatter":o(a(619))["default"]["initial.dataset.line"]};t["default"]=r},1426:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(689)),l="manager-defaultVcanvasGroup-lines",i=function(e){function t(){return e.apply(this,arguments)||this}return(0,r["default"])(t,e),t.prototype.createContainer=function(){e.prototype.createContainer.call(this);var t=this,a=t.getLinkedParent().getChildContainer("defaultVcanvasGroup");!t.getChildContainer(l)&&t.addChildContainer(l,t.getFromEnv("animationManager").setAnimation({el:"group",component:t,attr:{name:l},container:a}))},t}(n["default"]),s=i;t["default"]=s},1348:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(689)),l=a(274),i=function(e){function t(){return e.apply(this,arguments)||this}return(0,r["default"])(t,e),t.prototype.getJSONData=function(){var e,t,a,o,r=this.getChildren("dataset"),n=[],i=r.length;for(o=0;o<i;o++)e=r[o],delete(a=(0,l.extend2)({},this.getFromEnv("dataSource").dataset[o])).data,t=e.getJSONData(),n.push((0,l.extend2)(a,t));return n},t}(n["default"]),s=i;t["default"]=s},1403:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n,l,i,s=o(a(292)),c=o(a(288)),d=a(290),u=o(a(1399)),h=a(274),p=o(a(299)),g=1e3,f={circle:"circ",rectangle:"rect",polygon:"poly"},m=h.preDefStr.INPUT,v=h.preDefStr.BLANKSPACE,b=h.preDefStr.BLANK,x=h.preDefStr.PX,k="000000",y="<option>",C="</option>",w=h.preDefStr.LABEL,A=h.preDefStr.DATASET,S=h.preDefStr.COMMA,N="appearing",L='<option value="',D="</option>",E="div",T=function(e){for(var t in e)e[t].remove()},F=function(e){return e!==r&&null!==e},P=function(e,t){switch(e.shape){case h.preDefStr.CIRCLE:e.radius=t.radius;break;case h.preDefStr.POLYGON:e.radius=t.radius,e.sides=t.numsides;break;default:e.width=t.width,e.height=t.height}},_=(n=function(){for(var e,t=this.getGraphicalElement("cacheUpdateUI"),a=t.fields.shape,o=["rectWidth","rectHeight","circPolyRadius","polySides"],r=o.length;r--;)/rect|poly|circ/gi.test(e=o[r])&&(t.labels[e].hide(),t.fields[e].hide()),new RegExp((0,h.pluck)(a.val(),"rect"),"ig").test(e)&&(t.labels[e].show(),t.fields[e].show())},l=function(){var e=this.getGraphicalElement("cacheUpdateUI").fields,t=(0,h.getValidColor)(e.color.val());t&&e.colorOut.css({background:(0,h.parseColor)(t)})},i=function(e){var t,a,o,r=this,n=r.getGraphicalElement("cacheUpdateUI"),l=r.getFromEnv("animationManager"),i=r.getFromEnv("chartConfig").height,s=n.fields.image.val(),c=["imgWidth","imgHeight","imgAlign","imgUrl"];for(t=s?250:215,e&&(n.ok.hide(),n.cancel.hide(),n.removeItem.hide(),n.error.hide()),a=c.length;!s&&a--;)o=c[a],n.labels[o].hide(),n.fields[o].hide();e&&l.setAnimationState("uichange"),l.setAnimation({el:n.dialog,state:"updating",attr:{top:(i-t)/2,height:t},component:r,label:"uidialog",callback:function(){for(a=c.length;a--&&s;)o=c[a],n.labels[o].show(),n.fields[o].show();n.ok.attr({y:t-23-5}).show(),n.cancel.attr({y:t-23-5}).show(),n.removeItem.attr({y:t-23-5}),n.error.attr({y:t-23-5+4}).show(),n.edit?n.removeItem.show():n.removeItem.hide()}})},function(e,t){var a,o,s=this,c=s.getGraphicalElement("cacheUpdateUI"),d=s.getFromEnv("paper"),u="1px solid #cccccc",g={width:80+x,border:u,fontSize:10+x,lineHeight:15+x,padding:2+x,fontFamily:(s.getFromEnv("style").inCanvasStyle||{}).fontFamily},f={textAlign:"right"},m=c&&c.fields,v=c&&c.labels;s.getFromEnv("animationManager").setAnimationState("uichange"),c||(a=!0),c=s.addGraphicalElement("cacheUpdateUI",s.createHtmlDialog(350,215,(function(e){e.stopPropagation();var t,a,o,n=c&&c.fields,l=c.edit;if(m){switch(o={x:(0,h.getFirstValue)(m.x.val(),s.getFromEnv("xAxis").getLimit().min),y:(0,h.getFirstValue)(m.y.val(),s.getFromEnv("yAxis").getLimit().min),id:a=m.id.val(),datasetId:m.dataset.val(),name:m.label.val(),tooltext:m.tooltip.val(),color:m.color.val(),alpha:m.alpha.val(),labelalign:m.labelalign.val(),allowdrag:m.draggable.val(),imagenode:m.image.val(),imagewidth:m.imgWidth.val(),imageheight:m.imgHeight.val(),imagealign:m.imgAlign.val(),imageurl:m.imgUrl.val(),link:m.link.val()},n.shape.val()){case"circ":o.shape=h.preDefStr.CIRCLE,o.radius=m.circPolyRadius.val();break;case"poly":o.shape=h.preDefStr.POLYGON,o.radius=m.circPolyRadius.val(),o.numsides=m.polySides.val();break;default:o.shape=h.preDefStr.RECTANGLE,o.width=m.rectWidth.val(),o.height=m.rectHeight.val()}if(s.getNode(o.id)&&(t=!0),!t||l!==r)return void(((a=o.datasetId)!==h.BLANKSTRING||l)&&(a=Number(a),l?s.updateNode(o):s.addNode(o),c.hide(),c.visible=!1));c.error.attr({text:"ID already exist."}),m.label.focus()}c.enableFields()}),(function(e){e.stopPropagation(),c.hide(),c.visible=!1,c.enableFields(),c.error.attr({text:b}),c.visible=!1}),(function(e){e.stopPropagation(),s.deleteNode(c.fields.id.val()),c.hide(),c.visible=!1}),c)),a&&(o=c.dialog,v=c.labels={},m=c.fields={}),c.config=e,c.edit=t,c.error||(c.error=d.html("span",{color:"ff0000",x:30,y:228},r,o)),c.enableFields||(c.enableFields=function(){var t;for(t in e)e[t]&&e[t].disabled&&m[t]&&m[t].element.removeAttribute("disabled")}),c.clearFields||(c.clearFields=function(){var e;for(e in c.fields)m[e].element.disabled||(m[e].element.value=h.BLANKSTRING)}),(0,h.fcEach)(this.nodeUpdateUIDefinition,(function(t){var a,r,x,k=t.key,y={},C=e[k]||{};!v[k]&&(v[k]=d.html(w,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},f,o)),t.noInput||((a=m[k])||(g.border="checkbox"===t.type?b:u,a=m[k]=d.html(t.inputType||"input",{x:t.labelWidth&&t.labelWidth+5||50,y:-2+(t.inputPaddingTop||0),width:t.inputWidth||50,name:k||h.BLANKSTRING},g),"select"!==t.inputType&&a.attr({type:t.type||"text"}).on("keyup",c.handleKeyPress),a.add(v[k])),F(r=(0,h.getFirstValue)(C.innerHTML,t.innerHTML))&&(y.innerHTML=p["default"].createHTML(r)),C.disabled?y.disabled="disabled":a.element&&(a.element.disabled=!1),a.attr(y),F(x=(0,h.getFirstValue)(C.value,t.value))&&a.val(x),"shape"===k&&a.on("change",(function(){n.call(s)})),"image"===k&&a.on("fc-click",(function(){i.call(s,!0)})),"color"===k&&a.on("keyup",(function(){l.call(s)})))})),l.call(this),i.call(this),n.call(this),c.visible=!0,c.fields[t?w:"id"].focus()}),V=function(e){function t(){var t;t=e.call(this)||this;var a=(0,s["default"])(t);return a.setState("visible",!0),a.connectorUpdateUIDefinition=[{key:"fromid",text:"Connect From",inputType:"select",x:10,y:15,labelWidth:80,inputWidth:100},{key:"toid",text:"Connect To",inputType:"select",x:10,y:40,labelWidth:80,inputWidth:100},{key:"arratstart",text:"Arrow At Start",x:200,y:15,type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:"arratend",text:"Arrow At End",x:200,y:40,type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:w,text:"Label",x:10,y:75,labelWidth:40,inputWidth:120},{key:"id",text:"Node ID",x:190,y:75,inputWidth:55},{key:"color",text:"Color",x:10,y:100,labelWidth:40,inputWidth:35},{key:"alpha",text:"Alpha",x:110,y:100,inputWidth:25,labelWidth:35},{key:"strength",text:"Strength",x:190,y:100,inputWidth:55,val:"0.1"},{key:"url",text:"Link",x:10,y:125,labelWidth:40,inputWidth:120},{key:"tooltext",text:"Tooltip",x:190,y:125,labelWidth:40,inputWidth:60},{key:"dashed",text:"Dashed",x:10,y:150,type:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:40},{key:"dashgap",text:"Dash Gap",x:85,y:150,labelWidth:60,inputWidth:25},{key:"dashlen",text:"Dash Length",x:190,y:150,labelWidth:70,inputWidth:30}],a.nodeUpdateUIDefinition=[{key:"id",text:"Id",inputWidth:60,x:10,y:15},{key:A,text:A,inputType:"select",inputWidth:110,innerHTML:p["default"].createHTML(r),x:170,y:15},{key:"x",text:"Value",x:10,y:40,inputWidth:21},{key:"y",text:S,x:88,y:40,inputWidth:21,labelWidth:5},{text:"(x, y)",x:125,y:40,labelWidth:33,noInput:!0},{key:"tooltip",text:"Tooltip",inputWidth:105,x:170,y:40},{key:w,text:"Label",inputWidth:92,x:10,y:65},{key:"labelalign",text:"Align",labelWidth:70,inputWidth:110,inputType:"select",innerHTML:p["default"].createHTML('<option></option><option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>'),x:145,y:63},{key:"color",text:"Color",x:10,y:90,inputWidth:60},{key:"colorOut",innerHTML:p["default"].createHTML(" "),x:85,y:90,inputWidth:15,inputType:"span"},{key:"alpha",text:"Alpha",x:170,y:90,inputWidth:20},{key:"draggable",text:"Allow Drag",value:!0,inputWidth:20,x:250,y:90,labelWidth:58,inputPaddingTop:3,type:"checkbox"},{key:"shape",text:"Shape",inputType:"select",inputWidth:97,innerHTML:p["default"].createHTML('<option value="rect">Rectangle</option><option value="circ">Circle</option><option value="poly">Polygon</option>'),x:10,y:115},{key:"rectHeight",text:"Height",x:170,y:115,inputWidth:20},{key:"rectWidth",text:"Width",x:255,y:115,inputWidth:20},{key:"circPolyRadius",text:"Radius",x:170,y:115,inputWidth:20},{key:"polySides",text:"Sides",x:255,y:115,inputWidth:20},{key:"link",text:"Link",x:10,y:140,inputWidth:92},{key:"image",text:"Image",type:"checkbox",inputPaddingTop:4,inputWidth:20,x:10,y:170},{key:"imgUrl",text:"URL",inputWidth:105,x:170,y:170},{key:"imgWidth",text:"Width",inputWidth:20,x:10,y:195},{key:"imgHeight",text:"Height",inputWidth:20,x:82,y:195},{key:"imgAlign",text:"Align",inputType:"select",inputWidth:75,innerHTML:p["default"].createHTML('<option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>'),x:170,y:195}],a.labelUpdateUIDefinition=[{key:w,text:"Label*",x:10,y:15,inputWidth:235},{key:"size",text:"Size",x:10,y:40},{key:"padding",text:"Padding",x:10,y:65},{key:"x",text:"Position",x:120,y:65,labelWidth:70,inputWidth:25},{key:"y",text:S,x:225,y:65,labelWidth:10,inputWidth:25},{key:"xy",text:"(x, y)",x:260,y:65,noInput:!0},{key:"allowdrag",text:"Allow Drag",x:120,y:40,inputType:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:70,val:1},{key:"color",text:"Color",x:10,y:90},{key:"alpha",text:"Alpha",x:145,y:90,inputWidth:30,val:h.preDefStr.HUNDREDSTRING},{key:"bordercolor",text:"Border Color",x:10,y:125,labelWidth:100},{key:"bgcolor",text:"Background Color",x:10,y:150,labelWidth:100}],t}(0,c["default"])(t,e);var a=t.prototype;return a.configure=function(){this.setState("configured",!0)},a.getType=function(){return"group"},a.getName=function(){return"dragNodeGroup"},a.showLabelUpdateUI=function(e){void 0===e&&(e={});var t,a,o,n,l=this,i=l.getFromEnv("paper"),s=l.getGraphicalElement("cacheLabelUpdateUI"),c={border:"1px solid #cccccc",fontSize:10+x,lineHeight:15+x,fontFamily:(l.getFromEnv("style").inCanvasStyle||{}).fontFamily,padding:2+x},d={textAlign:"right"},u=s&&s.fields,p=s&&s.labels;l.getFromEnv("animationManager").setAnimationState("uichange"),s||(t=!0),s=l.addGraphicalElement("cacheLabelUpdateUI",l.createHtmlDialog(315,205,(function(){var e,t=s&&s.fields;t&&((e={text:t.label.val(),x:t.x.val(),y:t.y.val(),color:t.color.val(),alpha:t.alpha.val(),bgcolor:t.bgcolor.val(),bordercolor:t.bordercolor.val(),fontsize:t.size.val(),allowdrag:t.allowdrag.val(),padding:t.padding.val()}).text?(l.addLabel&&l.addLabel(e),s.hide()):(s.error.attr({text:"Label cannot be blank."}),u.label.focus()))}),(function(){s.error.attr({text:h.BLANKSTRING}),s.hide()}),r,s)),t&&(n=s.dialog,p=s.labels={},u=s.fields={}),(0,h.fcEach)(l.labelUpdateUIDefinition,(function(t){var r=t.key;p[r]||(p[r]=i.html(w,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},d,n)),t.noInput||((a=u[r])||(a=u[r]=i.html(m,{y:-2+(t.inputPaddingTop||0),x:t.labelWidth&&t.labelWidth+5||50,width:t.inputWidth||50,type:t.inputType||"text",name:r||h.BLANKSTRING},c,p[r]).on("keyup",s.handleKeyPress)),F(o=(0,h.getFirstValue)(e[r],t.val))&&a.val(o))})),s.error||(s.error=i.html("span",{color:"ff0000",x:10,y:180},r,n)),s.fields.label.focus()},a.restoreData=function(){var e,t,a,o,r,n,l,i=this,s=i.getChildren("dataset"),c=i.getFromEnv("chart"),d=(0,h.pluckNumber)(c.config.showlegend,0),u=i.getChildren("connector"),p=c.getFromEnv("dataSource"),g=i.getChildren("labels"),f=function(e){var t,a;for(t=0;t<(e&&e.length);t++)if(delete(o=e[t]).removed,o.config.add){for(a in r=e[t].graphics)r[a].remove();e.splice(t,1),t--}},m=function(e,o,r){t=o[e],a=t.components.data,f(a),t.drawn=!1,t.configure(r[e])};for(e=0,l=s&&s.length;e<l;e++)m(e,s,p.dataset);for(e=0,l=u&&u.length;e<l;e++)m(e,u,p.connectors);g&&g.length&&(n=g[0],(a=n.components.data)&&f(a),n.configure(p.labels)),c.fireChartInstanceEvent("dataRestored"),i.asyncDraw(),d&&i.getFromEnv("legend").asyncDraw()},a.addLabel=function(e){var t,a,o=this,r=o.getChildren("labels"),n="labeladded",l=o.getFromEnv("chart");e.add=!0,r&&r[0]?r=r[0]:((0,h.componentFactory)(o,u["default"],"labels",1,[{}]),r=o.getChildren("labels")[0]),a=(r.components.data||(r.components.data=[])).length,r._setConfigure(a,e),t={text:e.text,x:e.x,y:e.y,allowdrag:e.allowdrag,sourceType:"labelnode",link:e.link},l.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:n},t)),l.fireChartInstanceEvent(n,t),r.asyncDraw()},a.showNodeAddUI=function(){var e,t,a,o=this.getChildren("dataset"),n=h.BLANKSTRING;for(a=0;a<o.length;a++)e=(t=o[a]||{}).config,"dragNode"===t.getName()&&(n+=L+t.config.datasetIndex+'">'+(e.name!==b&&e.name!==r&&e.name+h.COMMASTRING+v||b)+t.config.datasetIndex+D);this.showNodeUpdateUI({dataset:{innerHTML:p["default"].createHTML(n)}})},a.showConnectorAddUI=function(){var e,t,a=this.getNode(),o=h.BLANKSTRING;for(t in a)e=a[t].config.id,o+=L+e+'">'+e+D;this.showConnectorUpdateUI({fromid:{innerHTML:p["default"].createHTML(o)},toid:{innerHTML:p["default"].createHTML(o)}})},a.showConnectorUpdateUI=function(e,t){var a,o,n,l,i,s=this,c=s.getFromEnv("paper"),d="cacheConnectorUpdateUI"+(t?"edit":"new"),u=s.getGraphicalElement(d),g={border:"1px solid #cccccc",fontSize:10+x,lineHeight:15+x,fontFamily:(s.getFromEnv("style").inCanvasStyle||{}).fontFamily,padding:2+x},f={textAlign:"right"},v=u&&u.fields,b=u&&u.labels;s.getFromEnv("animationManager").setAnimationState("uichange"),u||(a=!0),u=s.addGraphicalElement(d,s.createHtmlDialog(315,215,(function(){var e,a=u&&u.fields;a&&((e={from:a.fromid.val(),to:a.toid.val(),id:a.id.val(),label:a.label.val(),color:a.color.val(),alpha:a.alpha.val(),link:a.url.val(),tooltext:a.tooltext.val(),strength:a.strength.val(),arrowatstart:a.arratstart.val(),arrowatend:a.arratend.val(),dashed:a.dashed.val(),dashlen:a.dashlen.val(),dashgap:a.dashgap.val()}).from?e.to?e.from!==e.to?(t?s.editConnector(e):s.addConnector(e),u.enableFields(),u.hide(),u.clearFields()):(u.error.attr({text:"Connector cannot start and end at the same node!"}),v.fromid.focus()):(u.error.attr({text:"Please select a valid connector end."}),v.toid.focus()):(u.error.attr({text:"Please select a valid connector start."}),v.fromid.focus()))}),(function(){u.error.attr({text:h.BLANKSTRING}),u.enableFields(),u.hide()}),(function(){var e=u&&u.fields;s.deleteConnector({from:e.fromid.val(),to:e.toid.val(),id:e.id.val()}),u.hide()}),u)),a&&(i=u.dialog,b=u.labels={},v=u.fields={}),u.config=e,u.enableFields||(u.enableFields=function(){var t;for(t in e)e[t]&&e[t].disabled&&v[t]&&v[t].element.removeAttribute("disabled")}),u.clearFields||(u.clearFields=function(){var e,t=u.fields;for(e in t)t[e].element.disabled||(t[e].element.value=h.BLANKSTRING)}),(0,h.fcEach)(s.connectorUpdateUIDefinition,(function(t){var a=t.key,s=e[a]||{};b[a]||(b[a]=c.html(w,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},f,i)),t.noInput||((n=v[a])||(n=v[a]=c.html(t.inputType||m,{y:-2+(t.inputPaddingTop||0),x:t.labelWidth&&t.labelWidth+5||50,width:t.inputWidth||50,name:a||h.BLANKSTRING},g),"select"!==t.inputType&&n.attr({type:t.type||"text"}).on("keyup",u.handleKeyPress),n.add(b[a])),(o=(0,h.pluck)(s.innerHTML,t.innerHTML))&&n.attr({innerHTML:p["default"].createHTML(o)}),(l=(0,h.pluck)(s.val,t.val))!==r&&n.val(l),s.disabled?n.attr({disabled:"disabled"}):n.element&&(n.element.disabled=!1))})),u.checkDash=function(){var e=v.dashed&&v.dashed.val()?"show":"hide";b.dashgap&&b.dashgap[e](),v.dashgap&&v.dashgap[e](),b.dashlen&&b.dashlen[e](),v.dashlen&&v.dashlen[e]()},u.checkDash(),v.dashed.on("fc-click",u.checkDash),u.error||(u.error=c.html("span",{color:"ff0000",x:10,y:170},r,i)),u.removeItem[t?"show":"hide"]()},a.showNodeUpdateUI=function(){return _.apply(this,arguments)},a.addNode=function(e){var t,a,o,n,l,i,s,c=this.getChildren("dataset"),d=c.length,u="nodeAdded",p=this.getFromEnv("chart");for(l=0;l<d;l++)if((n=(t=c[l]||{}).config.datasetIndex)!==r&&(n=n.toString()),n===e.datasetId){o=!0;break}t&&o&&(s=t.components.data,e.add=!0,i={index:a=s.length,dataIndex:a,link:e.link,y:e.y,x:e.x,shape:e.shape,label:e.name,toolText:e.tooltext,id:e.id,datasetIndex:t.config.datasetIndex,datasetName:t.config.seriesname,sourceType:"dataplot"},P(i,e),t._setConfigure(a,e),t.parsePlotAttributes(a),t._drawNode(a),t.setState("dirty",!0),p.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:u},i)),p.fireChartInstanceEvent(u,i),t._setupKdTree())},a.updateNode=function(e){var t,a,o,r,n,l,i,s=this.getChildren("dataset"),c=s.length,d="nodeupdated",u=this.getFromEnv("chart");for(e.update=!0,r=0;r<c;r++)for(t=(n=(o=s[r]).components.data||[]).length,i=0;i<t;i++)if(n[i].config.id===e.id){a=!0;break}o&&a&&(l={index:i,dataIndex:i,link:e.link,y:e.y,x:e.x,shape:e.shape,label:e.name,toolText:e.tooltext,id:e.id,datasetIndex:o.config.datasetIndex,datasetName:o.config.seriesname,sourceType:"dataplot"},P(l,e),o._setConfigure(i,e),o.parsePlotAttributes(i),o._drawNode(i),o.setState("dirty",!0),u.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:d},l)),u.fireChartInstanceEvent(d,l),o._setupKdTree())},a.deleteNode=function(e){var t,a,o,r,n,l,i,s,c,d,u,p,g,f=this.getNode(e),m="nodedeleted",v=this.getFromEnv("chart");if(f){for(a=(t=f.dataset).components.data,o=f.config.startConnectors,r=f.config.endConnectors,d=a.length,n=0;n<d;n++)if((s=a[n]).config.id===e){g=!0;break}if(!0===g){for(c in l=s.graphics,T(l),o)l=(i=o[c]||{}).graphics,T(l),delete i.graphics,i.removed=!0;for(c in r)l=(i=r[c]||{}).graphics,T(l),delete i.graphics,i.removed=!0;s.removed=!0,u={index:n,dataIndex:n,link:(p=s.config||{}).link,y:p.y,x:p.x,shape:p.shape,label:p.displayValue,toolText:p.toolText,id:p.id,datasetIndex:t.config.datasetIndex,datasetName:t.config.seriesname,sourceType:"dataplot"},P(u,{width:p.width,height:p.height,radius:p.radius,numsides:p.numSides}),v.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:m},u)),v.fireChartInstanceEvent(m,u),t._setupKdTree()}}},a.addConnector=function(e){var t,a=this.getChildren("connector")[0],o="connectoradded",r=this.getFromEnv("chart");e.add=!0,a._setConfigure(a.components.data.length,e),t={arrowAtEnd:Boolean(e.arrowatend),arrowAtStart:Boolean(e.arrowatstart),fromNodeId:e.from,id:e.id,label:e.label,link:e.connectorLink,sourceType:"connector",toNodeId:e.to},r.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:o},t)),r.fireChartInstanceEvent(o,t),a.asyncDraw()},a.editConnector=function(e){var t,a,o,r,n,l,i,s,c,d,u=this.getChildren("connector"),p=this.getFromEnv("chart"),g="connectorupdated",f=u.length;for(t=0;t<f;t++)for(a=(o=(s=u[t])&&s.components.data||[]).length,l=0;l<a;l++)if(r=(c=o[l].config).from,n=c.to,r===e.from&&n===e.to){i=!0;break}e.update=!0,i&&(s._setConfigure(l,e),d={arrowAtEnd:Boolean(e.arrowatend),arrowAtStart:Boolean(e.arrowatstart),fromNodeId:e.from,id:e.id,label:e.label,link:e.link,sourceType:"connector",toNodeId:e.to},p.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:g},d)),p.fireChartInstanceEvent(g,d),s.asyncDraw())},a.deleteConnector=function(e){var t,a,o,r,n,l,i,s=this.getChildren("connector"),c=!1,d=s.length,u="connectordeleted",p=this.getFromEnv("chart");for(t=0;t<d;t++)for(n=(r=s[t].components.data).length,a=0;a<n;a++)if((o=r[a]).config.from===e.from&&o.config.to===e.to){c=!0;break}c&&(l={arrowAtEnd:(i=o.config||{}).arrowAtEnd,arrowAtStart:i.arrowAtStart,fromNodeId:i.from,id:i.id,label:i.label,link:i.connectorLink,sourceType:"connector",toNodeId:i.to},T(o.graphics),delete o.graphics,o.removed=!0,p.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:u},l)),p.fireChartInstanceEvent(u,l))},a.createHtmlDialog=function(e,t,a,o,r,n){var l,i,s,c,d,u,p,g,f=this,m=f.getFromEnv("chartConfig"),v=f.getFromEnv("style").inCanvasStyle||{},b=Number(m.width),y=Number(m.height),C=f.getFromEnv("animationManager"),w={color:(0,h.hashify)(v.color),textAlign:"center",paddingTop:1+x,border:"1px solid #cccccc",borderRadius:4+x,cursor:h.preDefStr.POINTER,_cursor:"hand",backgroundColor:h.HASHSTRING+"ffffff",zIndex:21,"-webkit-border-radius":4+x},A=n;return g={width:b,height:y},n||(g.fill="transparent",g.type=E),A=C.setAnimation({el:n||"html",attr:g,component:f,label:"ui",state:N,css:{fontSize:10+x,lineHeight:15+x,fontFamily:v.fontFamily,display:"block"},container:!n&&f.getFromEnv("chart-container")}),g={width:b,height:y,opacity:.3},A.veil||(g.fill=k,g.type=E),A.veil=C.setAnimation({el:A.veil||"html",attr:g,component:f,state:N,label:"uiveil",container:!A.veil&&A}),c={x:(b-e)/2,y:(y-t)/2,width:e,height:t},A.dialog||(c.fill="efefef",c.strokeWidth=1,c.stroke=k,c.type=E),A.dialog=C.setAnimation({el:A.dialog||"html",attr:c,component:f,state:N,label:"uidialog",container:!A.dialog&&A,css:{borderRadius:5+x,boxShadow:"1px 1px 3px #000000","-webkit-border-radius":5+x,"-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'}}),d={x:e-70-5,y:t-23-5,width:65,height:17},A.ok||(d.text="Submit",d.tabIndex=1,d.type=E),l=C.setAnimation({el:A.ok||"html",state:N,attr:d,component:f,label:"uiok",css:w,container:!A.ok&&A.dialog}),!A.ok&&(A.ok=l)&&l.on("fc-mousedown",a),u={x:e-140-5,y:t-23-5,width:65,height:17},A.cancel||(u.text="Cancel",u.tabIndex=2,u.type=E),i=C.setAnimation({el:A.cancel||"html",state:N,attr:u,component:f,label:"uicancel",css:w,container:!A.cancel&&A.dialog}),!A.cancel&&(A.cancel=i)&&i.on("fc-mousedown",o),p={x:e-210-5,y:t-23-5,width:65,height:17},A.removeItem||(p.text="Delete",p.tabIndex=3,p.type=E),s=C.setAnimation({el:A.removeItem||"html",state:N,attr:p,component:f,label:"uiremove",css:w,container:!A.removeItem&&A.dialog}),!A.removeItem&&(A.removeItem=s)&&s.on("fc-mousedown",r),A.handleKeyPress||(A.handleKeyPress=function(e){13===e.keyCode?A.ok.element&&a(e):27===e.keyCode&&A.cancel.element&&o(e)}),A},a.getNode=function(e){for(var t,a={},o=this.getChildren("dataset"),r=0,n=o.length;r<n;r++)if(e){if(t=o[r].getNode(e))return t}else Object.assign(a,o[r].getNode());return!e&&a},a.createContainer=function(){var e=this,t=e.getFromEnv("animationManager"),a=e.getLinkedParent().getChildContainer();["connectorGroup","defaultVcanvasGroup","vcanvasLabelGroup","cloneGroup"].forEach((function(o){!e.getChildContainer(o)&&e.addChildContainer(o,t.setAnimation({el:"group",attr:{name:"manager-"+o},component:e,container:a[o]||a.defaultVcanvasGroup}))})),!e.getContainer("waitContainer")&&e.addContainer("waitContainer",t.setAnimation({el:"group",attr:{name:"manager-waitContainer"},container:a.defaultVcanvasGroup,component:e}))},a.draw=function(){var e,t,a=this,o={cacheUpdateUI:[350,215],cacheLabelDeleteUI:[250,100],cacheLabelUpdateUI:[350,205],cacheConnectorUpdateUIedit:[315,215],cacheConnectorUpdateUInew:[315,215]};if(!a.getState("configured")){for(e in N="update",o)if((t=a.getGraphicalElement(e))&&t.isVisible()){if("cacheUpdateUI"===e){var n=t.fields.image.val();o[e][1]=n?250:215}a.createHtmlDialog(o[e][0],o[e][1],r,r,r,t)}N="appearing"}a.setState("configured",!1),a.createContainer()},a.getDataLimits=function(){var e,t,a=this.getChildren("dataset"),o=+Infinity,r=-Infinity,n=-Infinity,l=+Infinity;for(e=0;e<a.length;e++)t=a[e].config,r=Math.max(r,t.yMax),o=Math.min(o,t.yMin),n=Math.max(n,t.xMax),l=Math.min(l,t.xMin);return{max:r,min:o,xMax:n,xMin:l}},a.isVisible=function(){return!this.isNotVisible},a.childChanged=function(){return this},a.hideWaitElem=function(){this.getGraphicalElement("waitElement")&&this.getGraphicalElement("waitElement").hide()},a.clearLongPress=function(){clearTimeout(this.config._longpressactive),delete this.config._longpressactive},a.triggerLabelUI=function(e,t){var a=this;a.config._longpressactive=setTimeout((function(){e.data("fire_click_event",0),e.data("viewMode")||a.showLabelDeleteUI(t)}),g)},a.triggerConnectorUI=function(e){var t=this,a=e.data("dataset"),o=e.data(h.preDefStr.configStr),r=o||{};t.config._longpressactive=setTimeout((function(){e.data("fire_click_event",0),e.data("viewMode")||t.showConnectorUpdateUI({fromid:{val:r.from,innerHTML:y+r.from+C,disabled:!0},toid:{val:r.to,innerHTML:y+r.to+C,disabled:!0},datasetIndex:a.config.datasetIndex,index:o.index,arratstart:{val:Boolean((0,h.pluckNumber)(r.arrowatstart,1))},arratend:{val:Boolean((0,h.pluckNumber)(r.arrowatend,1))},dashed:{val:(0,h.pluckNumber)(r.dashed)},dashgap:{val:r.dashgap},dashlen:{val:r.dashlen},label:{val:r.label},tooltext:{val:r.tooltext},id:{val:a.config.id,disabled:!0},strength:{val:r.conStrength},alpha:{val:r.alpha},color:{val:r.color.FCcolor.color}},!0)}),g)},a.deleteLabel=function(e){var t,a,o,r=this.getChildren("labels")[0],n=(0,h.pluckNumber)(e,r.config.lastTappedLabelIndex),l=r.components.data[n],i=this.getFromEnv("chart"),s="labeldeleted";t=l.graphics.element,a=l.graphics.trackerElement,t&&(o=t.data("eventArgs"),t.remove(),a&&a.remove(),delete l.graphics),i.fireChartInstanceEvent("chartupdated",(0,h.extend2)({sourceEvent:s},o)),i.fireChartInstanceEvent(s,o),l.removed=!0},a.showLabelDeleteUI=function(e){var t=this,a=t.getGraphicalElement("cacheLabelDeleteUI");t.getChildren("labels")[0].config.lastTappedLabelIndex=e.config.index,a?a.show():((a=t.addGraphicalElement("cacheLabelDeleteUI",t.createHtmlDialog(250,100,r,(function(){a.hide()}),(function(){t.deleteLabel(),a.hide()})))).message=t.getFromEnv("paper").html("span",{x:10,y:10,width:230,height:80}).add(a.dialog),a.ok.hide(),a.removeItem.translate(175).show()),a.message.attr({text:'Would you really like to delete the label: "'+e.config.text+'"?'})},a.drawWaitingRing=function(e,t){var a=this,o=e.config,n=a.getChildren("dataset")[t].config,l=a.getGraphicalElement("waitElement");a.clearLongPress(),l=a.getFromEnv("animationManager").setAnimation({el:l||"ringpath",attr:{ringpath:[o._xPos,o._yPos,8,11,0,0],fill:(0,h.toRaphaelColor)({alpha:"100,100",angle:120,color:"CCCCCC,FFFFFF",ratio:"30,50"}),"stroke-width":0},container:a.getContainer("waitContainer"),component:a}),a.getGraphicalElement("waitElement")||a.addGraphicalElement("waitElement",l),l.show().animate({ringpath:[o._xPos,o._yPos,8,11,0,6.28]},g),a.config._longpressactive=setTimeout((function(){var e=n.name!==b&&n.name!==r?n.name+h.preDefStr.BLANKSPACE:b,i=n.id!==r?(e?h.COMMASTRING:e)+n.id:b;l&&l.hide(),a.showNodeUpdateUI({x:{value:o.x},y:{value:o.y},draggable:{value:(0,h.getFirstValue)(o.allowdrag,1)},color:{value:o.color},alpha:{value:o.alpha},label:{value:(0,h.getFirstValue)(o.label,o.name)},tooltip:{value:o.toolText},shape:{value:f[o.shape]},rectWidth:{value:o.width},rectHeight:{value:o.height},circPolyRadius:{value:o.radius},polySides:{value:o.numsides},image:{value:o.imageNode},imgWidth:{value:o.imageWidth},imgHeight:{value:o.imageHeight},imgAlign:{value:o.imageAlign},imgUrl:{value:o.imageURL},id:{value:o.id,disabled:!0},link:{value:o.link},dataset:{innerHTML:p["default"].createHTML('<option value="'+i+'">'+e+i+"</option>"),disabled:!0},datasetIndex:t},!0)}),g)},a.drawNodeConnectors=function(e){var t,a,o,r,n,l;if(e)for(t in e)(r=e[t])&&(a=r.config.datasetIndex,n=r.config.fromPointObj,l=r.config.toPointObj,(o=this.getChildren("connector")[a])&&(o&&o.parsePlotAttributes(r,n,l),o&&o.drawConnector(r,n,l)))},a._clearConnectors=function(){var e,t,a,o,r,n,l=this.getNode();for(e in l)if(n=l[e]){for(r in t=n.config.startConnectors||{},a=n.config.endConnectors||{},t)o={graphics:t[r].graphics||{}},h.componentDispose.call(o);for(r in a)o={graphics:a[r].graphics||{}},h.componentDispose.call(o)}},a.getJSONData=function(){var e,t,a,o=this.getChildren(),r=o.dataset,n=o.connector,l=o.labels,i={};for(i.dataset=[],i.connectors=[],i.labels=[],e=0,t=r&&r.length;e<t;e++)a=r[e],i.dataset[e]||(i.dataset[e]=(0,h.extend2)({},a.JSONData)),i.dataset[e].data=a.getJSONData();for(e=0,t=n&&n.length;e<t;e++)a=n[e],i.connectors[e]||(i.connectors[e]=(0,h.extend2)({},a.JSONData)),i.connectors[e].connector=a.getJSONData();for(e=0,t=l&&l.length;e<t;e++)a=l[e],i.labels[e]||(i.labels[e]={label:[]}),i.labels[e].label=a.getJSONData();return i},t}(d.ComponentInterface),I=V;t["default"]=I},1442:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t.getDataLimits=null,t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"group"},a.getName=function(){return"heatMapGroup"},a.createContainer=function(){var e,t,a=this,o=a.getLinkedParent(),r=a.getFromEnv("animationManager"),n=o.getChildContainer();for(e in n)t=n[e],!a.getChildContainer(e)&&a.addChildContainer(e,r.setAnimation({el:"group",attr:{name:"manager-"+e},container:t,component:a,label:"group"}))},a.getLimits=function(e){var t,a=this,o=+Infinity,r=-Infinity,n=0,l=function(e){r=Math.max(r,e.max),o=Math.min(o,e.min)};return a._mapChildren((function(a){a.getState("removed")||!1===a.getState("visible")?e&&(t=a.getDataLimits(e),l(t)):(n++,t=a.getDataLimits(e),l(t))})),n?a.setState("visible",!0):a.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:r,min:o}},a.draw=function(){var e=this,t=e.getLimits(!0);e.addToEnv("datasetMinValue",t.min),e.addToEnv("datasetMaxValue",t.max),this.createContainer()},a.getAxisValuePadding=function(){var e={},t=-Infinity,a=-Infinity,o=-Infinity,r=-Infinity;return this._mapChildren((function(n){n.getState("removed")||(e=n.getAxisValuePadding&&n.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),a=Math.max(a,e.right||-Infinity),o=Math.max(o,e.top||-Infinity),r=Math.max(r,e.bottom||-Infinity))})),t===-Infinity&&(t=0),a===-Infinity&&(a=0),o===-Infinity&&(o=0),r===-Infinity&&(r=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=a,this.config.padding.top=o,this.config.padding.bottom=r),{left:t,right:a,top:o,bottom:r}},t}(a(290).ComponentInterface);t["default"]=n},1441:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.heatMap":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1440:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=a(290),i=a(274),s=a(282),c=o(a(1441)),d=a(286),u="normal",h="px",p=i.preDefStr.pStr,g=i.preDefStr.sStr,f="<b>",m="</b>",v="<br />",b="visible",x=i.preDefStr.miterStr,k=i.preDefStr.hiddenStr,y=i.preDefStr.showHoverEffectStr,C=i.preDefStr.POSITION_START,w=i.preDefStr.POSITION_TOP,A=i.preDefStr.POSITION_END,S=i.preDefStr.POSITION_BOTTOM,N="pointer",L=i.preDefStr.DEFAULT,D=function(e){return e!==r&&null!==e},E=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})},T="rgba(192,192,192,"+(i.isIE?.002:1e-6)+")",F=i.hasTouch?i.TOUCH_THRESHOLD_PIXELS:i.CLICK_THRESHOLD_PIXELS,P="none",_=Math.max,V=Math.min,I=Math.abs;(0,s.addDep)({name:"heatmapAnimation",type:"animationRule",extension:c["default"]});var B=function(e){function t(){var t;return(t=e.call(this)||this).components={},t.graphics={},t.dataSetArray=[],t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"heatMap"},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,n,l,s,c,d,u=this,h=u.getFromEnv("chart"),f=u.config,m=f.JSONData,v=m.data,b=v&&v.length,x=u.getFromEnv("chart-attrib"),k=u.getFromEnv("color-manager"),y=(0,i.pluckNumber)(m.dashed,x.plotborderdashed),C=u.components.data,w=u.components.plotGrid=[],A=h.isBar,S=h.config.is3D,N=-Infinity,L=+Infinity,D=u.getFromEnv("totalRows"),E=u.getFromEnv("totalColumns");for(c=0;c<D;c++)for(w.push([]),d=0;d<E;d++)w[c].push([]);for(u.setState("visible",1===(0,i.pluckNumber)(u.getState("visible"),u.config.JSONData.visible,!Number(u.config.JSONData.initiallyhidden),1)),f.showplotborder=(0,i.pluckNumber)(x.showplotborder,S?0:1),f.plotDashLen=(0,i.pluckNumber)(x.plotborderdashlen,5),f.plotDashGap=(0,i.pluckNumber)(x.plotborderdashgap,4),f.showTextOutLine=(0,i.pluckNumber)(x.textoutline,0),f.plotfillAngle=(0,i.pluckNumber)(360-x.plotfillangle,A?180:90),f.plotFillAlpha=(0,i.pluck)(m.alpha,x.plotfillalpha,"100"),f.plotColor=(0,i.pluck)(m.color,k.getPlotColor(u.index||u.positionIndex)),f.isRoundEdges=(0,i.pluckNumber)(x.useroundedges,0),f.plotRadius=(0,i.pluckNumber)(x.useRoundEdges,f.isRoundEdges?1:0),f.plotFillRatio=(0,i.pluck)(m.ratio,x.plotfillratio),f.plotgradientcolor=(0,i.getDefinedColor)(x.plotgradientcolor,k.getColor("plotGradientColor")),f.plotBorderAlpha=f.showplotborder?(0,i.pluck)(x.plotborderalpha,f.plotFillAlpha,"100"):0,f.plotBorderColor=(0,i.pluck)(x.plotbordercolor,S?"FFFFFF":k.getColor("plotBorderColor")),f.plotBorderThickness=(0,i.pluckNumber)(x.plotborderthickness,1),f.plotBorderDashStyle=y?(0,i.getDashStyle)(f.plotDashLen,f.plotDashGap):P,f.showValues=(0,i.pluckNumber)(m.showvalues,x.showvalues,1),f.valuePadding=(0,i.pluckNumber)(x.valuepadding,2),f.enableAnimation=l=(0,i.pluckNumber)(x.animation,x.defaultanimation,1),f.animation=!!l&&{duration:1e3*(0,i.pluckNumber)(x.animationduration,1)},f.transposeAnimation=(0,i.pluckNumber)(x.transposeanimation,l),f.transposeAnimDuration=1e3*(0,i.pluckNumber)(x.transposeanimduration,.2),f.showShadow=f.isRoundEdges||S?(0,i.pluckNumber)(x.showshadow,1):(0,i.pluckNumber)(x.showshadow,k.getColor("showShadow")),f.showHoverEffect=(0,i.pluckNumber)(x.plothovereffect,x.showhovereffect,r),f.showTooltip=(0,i.pluckNumber)(x.showtooltip,1),f.definedGroupPadding=Math.max((0,i.pluckNumber)(x.plotspacepercent),0),f.plotSpacePercent=Math.max((0,i.pluckNumber)(x.plotspacepercent,20)%100,0),f.maxColWidth=(0,i.pluckNumber)(A?x.maxbarheight:x.maxcolwidth,50),f.plotPaddingPercent=(0,i.pluckNumber)(x.plotpaddingpercent),f.rotateValues=(0,i.pluckNumber)(x.rotatevalues)?270:0,f.placeValuesInside=(0,i.pluckNumber)(x.placevaluesinside,0),f.defaultPadding={left:.5,right:.5,top:.5,bottom:.5},f.use3DLighting=(0,i.pluckNumber)(x.use3dlighting,1),f.parentYAxis=(0,i.pluck)(m.parentyaxis&&m.parentyaxis.toLowerCase(),p)===g?1:0,C||(C=u.components.data=[]),s=0;s<b;s++)t=v&&v[s],n=(o=C[s])&&o.config,o||(o=C[s]={graphics:{}}),o.config||(n=C[s].config={}),n.setValue=a=u.getFromEnv("number-formatter").getCleanValue(t.value),N=Math.max(N,a),L=Math.min(L,a);f.maxValue=N,f.minValue=L,u._setConfigure(),u.setState("dirty",!0)},a._setConfigure=function(){var e,t,a,o,n,l,s,c,d,p,g,b,x,k,y,C,w,A,S,N,L,D,E,F,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae=this,oe=ae.getFromEnv("chart"),re=ae.config,ne=ae.config.JSONData,le=ne.data,ie=le&&le.length,se=ae.getFromEnv("chartConfig"),ce=ae.getFromEnv("chart-attrib"),de=re.showplotborder,ue=re.plotColor=ae.getFromEnv("color-manager").getPlotColor(ae.index||ae.positionIndex),he=(0,i.pluckNumber)(ce.showtooltip,1),pe=(0,i.parseUnsafeString)((0,i.pluck)(ce.tooltipsepchar,": ")),ge=(0,i.pluckNumber)(ce.useplotgradientcolor,1),fe=i.BLANKSTRING,me=re.plotDashLen,ve=re.plotDashGap,be=re.plotBorderThickness,xe=re.isRoundEdges,ke=re.showHoverEffect,ye=re.plotfillAngle,Ce=re.plotFillAlpha,we=re.plotFillRatio,Ae=re.plotBorderAlpha,Se=re.plotBorderColor,Ne=ae.getFromEnv("chartColorRange"),Le=re.mapByPercent=(0,i.pluckNumber)(Ne.mapbypercent,0),De=re.mapByCategory=(0,i.pluckNumber)(ce.mapbycategory,0),Ee=Ne&&(0,i.pluckNumber)(Ne.gradient),Te=ae.getFromEnv("number-formatter"),Fe=oe.isBar,Pe=oe.config.is3D,_e=re.parentYAxis,Ve=re.maxValue,Ie=re.minValue,Be=(0,i.getValidValue)(ce.tltype,i.BLANK),Me=(0,i.getValidValue)(ce.trtype,i.BLANK),Oe=(0,i.getValidValue)(ce.bltype,i.BLANK),Re=(0,i.getValidValue)(ce.brtype,i.BLANK),Ge=i.BLANK,He=i.BLANK,ze=i.BLANK,We=i.BLANK,Ue=oe.getFromEnv("colorManager");if(X=se.style.inCanfontFamily,te=se.style.inCanfontSize,Z=parseInt(te,10||10),Q=se.style.inCancolor,$=u,ee=u,I=Ve-Ie,re.eventAttached||(ae.addExtEventListener("legendUpdate",(function(e,t){if("legend"===t.component)t.legendItem.hasState("hidden")?ae.show(t.legendItem,e):ae.hide(t.legendItem,e);else for(U=t.maxMinArray,j=U.length,V=0;V<j;V++)ae.updatePlot(U[V].min,U[V].max)}),Ue),re.eventAttached=!0),(!Ee||De)&&(re.colorMap=[],Ne.color))for(V=0;V<Ne.color.length;V++)re.colorMap[V]={config:Ne.color[V],dataSet:ae},re.colorMap[V].config.visible=!0;for(V=0;V<ie;V++)n=le&&le[V],l=(c=(s=ae.components.data[V])&&s.config).setValue,c.showValue=(0,i.pluckNumber)(n.showvalue,re.showValues),c.setLink=(0,i.pluck)(n.link),c.toolTipValue=J=Te.dataLabels(l,_e),c.setDisplayValue=_=(0,i.parseUnsafeString)(n.displayvalue),c.displayValue=(0,i.pluck)(_,J),K=(0,i.pluckNumber)(n.dashed),q=(0,i.pluckNumber)(n.dashlen,me),Y=ve=(0,i.pluckNumber)(n.dashgap,ve),c.plotBorderDashStyle=1===K?(0,i.getDashStyle)(q,Y):0===K?P:re.plotBorderDashStyle,c.percentValue=Le?H=n.value&&Math.round((n.value-Ie)/I*1e4)/100:r,c.dataLabelStyle=ae._configureDataLabelStyle(n),c.value=W=De?n.colorrangelabel||n.categoryid:Le?H:c.setValue,B=Ue.getColor(W),c.colorRangeLabel=n.colorrangelabel||B.label,s.legendItemIndex=B.seriesIndex,c.legendItemId=B.legendItemId,B&&!B.code&&(B.code="ffffff"),B&&B.outOfRange&&(B.code="ffffff"),c.plotFillAlpha=Ce=(0,i.pluckNumber)(n.alpha,B&&B.oriAlpha,re.plotFillAlpha),ue=(0,i.pluck)(n.color,B&&B.code),l<0&&!xe&&(ye=Fe?180-ye:360-ye),c.colorArr=(0,i.getColumnColor)(ue+","+re.plotgradientcolor,Ce.toString(),we,ye,xe,Se,Ae.toString(),Fe?1:0,!!Pe),c.visible=!0,c.color=(0,i.convertColor)(ue,c.plotFillAlpha),c.rawPlotColor=ue,0!==ke&&(x=(0,i.pluck)(n.hovercolor,ne.hovercolor,ce.plotfillhovercolor,ce.columnhovercolor,ue),k=(0,i.pluck)(n.hoveralpha,ne.hoveralpha,ce.plotfillhoveralpha,ce.columnhoveralpha,"25"),!(0,i.pluck)(n.hovergradientcolor,ne.hovergradientcolor,ce.plothovergradientcolor,!ge&&i.BLANKSTRING)&&i.BLANKSTRING,y=(0,i.pluck)(n.hoverratio,ne.hoverratio,ce.plothoverratio,we),C=(0,i.pluckNumber)(360-n.hoverangle,360-ne.hoverangle,360-ce.plothoverangle,ye),w=(0,i.pluck)(n.borderhovercolor,ne.borderhovercolor,ce.plotborderhovercolor,Se),A=(0,i.pluck)(n.borderhoveralpha,ne.borderhoveralpha,ce.plotborderhoveralpha,Ae,Ce),S=(0,i.pluckNumber)(n.borderhoverthickness,ne.borderhoverthickness,ce.plotborderhoverthickness,be),N=(0,i.pluckNumber)(n.borderhoverdashed,ne.borderhoverdashed,ce.plotborderhoverdashed),L=(0,i.pluckNumber)(n.borderhoverdashgap,ne.borderhoverdashgap,ce.plotborderhoverdashgap,me),D=(0,i.pluckNumber)(n.borderhoverdashlen,ne.borderhoverdashlen,ce.plotborderhoverdashlen,ve),E=N?(0,i.getDashStyle)(D,L):re.plotBorderDashStyle,1===ke&&x===ue&&(x=(0,i.getLightColor)(x,70)),F=(0,i.getColumnColor)(x,k,y,C,xe,w,A.toString(),Fe?1:0,!!Pe),c.setRolloutAttr={fill:(0,i.toRaphaelColor)(c.color),stroke:de&&(0,i.toRaphaelColor)(c.colorArr[1])||T,"stroke-width":be,"stroke-dasharray":[]},c.setRolloverAttr={fill:(0,i.toRaphaelColor)(F[0]),stroke:de&&(0,i.toRaphaelColor)(F[1])||T,"stroke-width":S,"stroke-dasharray":E}),Le&&(H=Te.percentValue(H)),c.setValue=l=Te.getCleanValue(n.value),c.toolTipValue=Te.dataLabels(l,_e),e=c.toolTipValue,a=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(n.tooltext,ne.plottooltext,ce.plottooltext),!1)),c.tlLabel=M=(0,i.parseUnsafeString)((0,i.pluck)(n.tllabel,n.ltlabel)),c.trLabel=O=(0,i.parseUnsafeString)((0,i.pluck)(n.trlabel,n.rtlabel)),c.blLabel=R=(0,i.parseUnsafeString)((0,i.pluck)(n.bllabel,n.lblabel)),c.brLabel=G=(0,i.parseUnsafeString)((0,i.pluck)(n.brlabel,n.rblabel)),c.tlLabelStyle={fontFamily:(0,i.pluck)(B.tlLabelFont,ce.tlfont,X),fontSize:(0,i.pluckNumber)(B.tlLabelFontSize,ce.tlfontsize,Z)+h,color:(0,i.convertColor)((0,i.pluck)(B.tlLabelFontColor,ce.tlfontcolor,Q),100),fontWeight:$,fontStyle:ee},(0,i.setLineHeight)(c.tlLabelStyle),c.trLabelStyle={fontFamily:(0,i.pluck)(B.trLabelFont,ce.trfont,X),fontSize:(0,i.pluckNumber)(B.trLabelFontSize,ce.trfontsize,Z)+h,color:(0,i.convertColor)((0,i.pluck)(B.trLabelFontColor,ce.trfontcolor,Q),100),fontWeight:$,fontStyle:ee},c.brLabelStyle={fontFamily:(0,i.pluck)(B.brLabelFont,ce.brfont,X),fontSize:(0,i.pluckNumber)(B.brLabelFontSize,ce.brfontsize,Z)+h,color:(0,i.convertColor)((0,i.pluck)(B.brLabelFontColor,ce.brfontcolor,Q),100),fontWeight:$,fontStyle:ee},c.blLabelStyle={fontFamily:(0,i.pluck)(B.blLabelFont,ce.blfont,X),fontSize:(0,i.pluckNumber)(B.blLabelFontSize,ce.blfontsize,Z)+h,color:(0,i.convertColor)((0,i.pluck)(B.blLabelFontColor,ce.blfontcolor,Q),100),fontWeight:$,fontStyle:ee},_=(0,i.getValidValue)((0,i.parseUnsafeString)(n.displayvalue)),z=De?_:(0,i.pluck)(n.displayvalue,e),c.displayValue=(0,i.pluck)(_,H,c.toolTipValue),Be!==i.BLANK&&(Ge=f+Be+pe+m),Me!==i.BLANK&&(He=f+Me+pe+m),Oe!==i.BLANK&&(ze=f+Oe+pe+m),Re!==i.BLANK&&(We=f+Re+pe+m),b=(0,i.getFirstValue)(le[V].columnid),g=(0,i.getFirstValue)(le[V].rowid),d=ae.getFromEnv("xAxis").getCategoryFromId(b.toLowerCase()),p=ae.getFromEnv("yAxis").getCategoryFromId(g.toLowerCase()),he&&(null===e?fe=!1:a!==r?(o=[1,2,5,6,7,14,93,94,95,96,97,98,112,113,114,115,116,117],t={formattedValue:e,value:n.value,yaxisName:(0,i.parseUnsafeString)(ce.yaxisname),xaxisName:(0,i.parseUnsafeString)(ce.xaxisname),displayValue:_,percentValue:Le?H:i.BLANK,tlLabel:M,trLabel:O,blLabel:R,brLabel:G,rowLabel:p.tickObj&&p.tickObj.label,columnLabel:d.tickObj&&d.tickObj.label,percentDataValue:Le?H:i.BLANK,trtype:Me,tltype:Be,brType:Re,blType:Oe,colorRangeLabel:c.colorRangeLabel},fe=(0,i.parseTooltext)(a,o,t,n,ce,t)):fe=(Le?f+"Value"+pe+m+e+v+f+"Percentage"+pe+m+H:z)+(M!==i.BLANK?v+(Ge+M):i.BLANK)+(O!==i.BLANK?v+He+O:i.BLANK)+(R!==i.BLANK?v+ze+R:i.BLANK)+(G!==i.BLANK?v+We+G:i.BLANK)),c.toolText=fe,c.setTooltext=fe},a.hide=function(e){var t,a,o,r,n,l=this,i=l.components.data,s=l.getFromEnv("chart").getChildren("colorRange")[0];for(r=e.config.datasetObj.code,t=0,a=i.length;t<a;t++)Object.keys(i[t]).length&&(n=s.getColorObj(i[t].config.value).code,o=i[t].config,r===n&&(i[t].graphics.element&&l.getFromEnv("animationManager").setAnimation({el:i[t].graphics.element,attr:{"fill-opacity":0,"stroke-width":0},component:l}),i[t].graphics.hotElement&&i[t].graphics.hotElement.hide(),o.visible=!1,i[t].visible=!1));e.setLegendState("hidden")},a.show=function(e){var t,a,o,r,n,l,i=this,s=i.components.data,c=i.getFromEnv("animationManager"),d=i.getFromEnv("chart").getChildren("colorRange")[0];for(l=e.config.datasetObj.code,r=0,n=s.length;r<n;r++)Object.keys(s[r]).length&&(a=(t=s[r].config).plotFillAlpha/100,l===(!(o=d.getColorObj(s[r].config.value)).outOfRange&&o.code)&&(s[r].graphics.element&&c.setAnimation({el:s[r].graphics.element,attr:{visibility:b},component:i}),s[r].graphics.element&&c.setAnimation({el:s[r].graphics.element,component:i,attr:{"fill-opacity":a,"stroke-width":i.config.plotBorderThickness}}),s[r].graphics.hotElement&&s[r].graphics.hotElement.show(),s[r].graphics.valEle&&s[r].graphics.valEle.show(),s[r].graphics.tlLabel&&s[r].graphics.tlLabel.show(),s[r].graphics.trLabel&&s[r].graphics.trLabel.show(),s[r].graphics.blLabel&&s[r].graphics.blLabel.show(),s[r].graphics.brLabel&&s[r].graphics.brLabel.show(),t.visible=!0,s[r].visible=!0));e&&e.removeLegendState("hidden")},a.updatePlot=function(e,t){var a,o,r,n,l,i=this,s=i.getFromEnv("animationManager"),c=i.components.data;for(r=0,n=c.length;r<n;r++)Object.keys(c[r]).length&&(o=(a=c[r].config).plotFillAlpha/100,(l=c[r].config.value)<e||l>t?a.visible&&(c[r].graphics.element&&s.setAnimation({el:c[r].graphics.element,attr:{"fill-opacity":0,"stroke-width":0},component:i}),c[r].graphics.hotElement&&c[r].graphics.hotElement.hide(),a.visible=!1,c[r].visible=!1):a.visible||(c[r].graphics.element&&s.setAnimation({el:c[r].graphics.element,attr:{"fill-opacity":o,"stroke-width":i.config.plotBorderThickness},callback:function(){this.show()},component:i}),c[r].graphics.hotElement&&c[r].graphics.hotElement.show(),c[r].graphics.valEle&&c[r].graphics.valEle.show(),c[r].graphics.tlLabel&&c[r].graphics.tlLabel.show(),c[r].graphics.trLabel&&c[r].graphics.trLabel.show(),c[r].graphics.blLabel&&c[r].graphics.blLabel.show(),c[r].graphics.brLabel&&c[r].graphics.brLabel.show(),a.visible=!0,c[r].visible=!0))},a._checkPointObj=function(e,t,a,o){var r,n,l,i,s,c=this.components.plotGrid,d=this.getFromEnv("chartConfig"),u=d.viewPortConfig,h=d.plotborderthickness;if(r=c[t]&&c[t][e],n=(n=(h=d.showplotborder?h:0)/2)%2==0?n+1:Math.round(n),r&&r.config&&r.config.visible&&(l=a-(r._xPos-u.x*u.scaleX)+n,i=o-r._yPos+n,s=l>=0&&l<=r._width+h&&i>=0&&i<=r._height+h))return{pointIndex:r._index,hovered:s,pointObj:r}},a._getHoveredPlot=function(e,t){var a,o,r,n,l=this,i=e,s=t,c=l.getFromEnv("xAxis"),d=l.getFromEnv("yAxis"),u=l.getFromEnv("chartConfig").canvasHeight/l.getFromEnv("totalRows");return i+=c.getTranslation(),s+=d.getTranslation(),o=d.getValue(s+u/2),n=Math.floor(o),a=c.getValue(i),(r=Math.round(a))-a>0?o-n>.5?l._checkPointObj(r,n,i,s)||l._checkPointObj(r-1,n,i,s):l._checkPointObj(r,n-1,i,s)||l._checkPointObj(r,n,i,s):o-n>.5?l._checkPointObj(r+1,n,i,s)||l._checkPointObj(r,n,i,s):l._checkPointObj(r,n-1,i,s)||l._checkPointObj(r+1,n,i,s)||l._checkPointObj(r,n,i,s)},a.parsePlotAttributes=function(e,t){var a,o,n,l,s,c,d,u,h,p,g,f,m,v,y,C,w,A=this,S=A.config,L=A.config.JSONData.data,D=t,E=A.getFromEnv("chart"),P=A.getFromEnv("xAxis"),_=A.getFromEnv("yAxis"),V=A.getFromEnv("chartConfig"),I=S.plotBorderThickness,B=S.plotRadius,M=E.getFromEnv("legend")&&E.getFromEnv("legend").config.isActive,O=A.components.plotGrid;_.yBasePos=_.getPixel(_.getAxisBase()),e&&Object.keys(e).length&&(f=V.canvasWidth/A.getFromEnv("totalColumns"),s=V.canvasHeight/A.getFromEnv("totalRows"),w=e.trackerConfig={},u=(h=e&&e.config).setValue,y=(0,i.getFirstValue)(L[D].columnid),C=(0,i.getFirstValue)(L[D].rowid),m=P.getCategoryFromId(y.toLowerCase()),v=_.getCategoryFromId(C.toLowerCase()),0!==m.index&&!m.index||0!==v.index&&!v.index||(S.mapByCategory||null!==u)&&(d=h.setLink,p=h.colorArr,e.graphics||(A.components.data[D].graphics={}),o=P.getPixel(m.index)-f/2,n=_.getPixel(v.index)-s/2,l=f,c=h.toolText,w.eventArgs={index:D,link:d,value:h.percentValue||u,displayValue:h.displayValue,columnId:m.tickObj.id,rowId:v.tickObj.id,tlLabel:h.tlLabel,trLabel:h.trLabel,blLabel:h.blLabel,brLabel:h.brLabel,colorRangeLabel:h.colorRangeLabel,color:h.rawPlotColor,alpha:h.plotFillAlpha,showValue:h.showValue,toolText:c||"",id:i.BLANKSTRING,datasetIndex:M?e.datasetIndex:r,datasetName:M?e.datasetName:r,visible:A.getState("visible")},a={x:o,y:n,width:l,height:s||1,r:B,fill:h.color,stroke:(0,i.toRaphaelColor)(p[1]),"stroke-width":I,"stroke-dasharray":g,"fill-opacity":h.plotFillAlpha/100,"stroke-linejoin":x,visibility:h.visible?b:k,cursor:d?N:i.BLANKSTRING},e._xPos=o,e._yPos=n,e._height=s,e._width=l,e._index=D,O[v.index][m.index]=e,e.graphics.element?((a={x:o,y:n,width:l,height:s||1}).fill=h.color,a.stroke=(0,i.toRaphaelColor)(p[1]),a["fill-opacity"]=h.visible?h.plotFillAlpha/100:0,a["stroke-width"]=h.visible?I:0,a["stroke-dasharray"]=g,a["stroke-linejoin"]=x,a.visibility=h.visible?b:k,a.cursor=d?N:i.BLANKSTRING):(a["fill-opacity"]=h.plotFillAlpha/100,a["stroke-width"]=I),(d||V.showtooltip)&&(s<F&&(n-=(F-s)/2,s=F),w.attr={x:o,y:n,width:l,height:s,r:B,cursor:d?N:i.BLANKSTRING,stroke:T,"stroke-width":I,fill:T,visibility:h.visible?b:k}),h.props={element:{attr:a}}))},a.allocatePosition=function(){var e,t,a,o=this,r=o.config.JSONData.data,n=o.components.data;for(e=r&&r.length,t=0;t<e;t++)a=n[t],o.parsePlotAttributes(a,t)},a.drawPlots=function(){var e,t,a,o,r,n,l,s,c,u,h,p,g,f=this,m=f.config,v=f.config.JSONData.data,b=f.getFromEnv("animationManager"),x=f.components.data,k=[],C=(f.components.removeDataArr||[]).length;for(e=v&&v.length,t=0;t<e;t++)g=(a=x[t]).trackerConfig,n=a&&a.config,a.graphics&&(l=a.graphics.element?f.getState("visible")?"updating":"hiding":"appearing",r=n.setValue,u=(0,i.getFirstValue)(v[t].columnid),h=(0,i.getFirstValue)(v[t].rowid),s=f.getFromEnv("xAxis").getCategoryFromId(u.toLowerCase()),c=f.getFromEnv("yAxis").getCategoryFromId(h.toLowerCase()),0!==s.index&&!s.index||0!==c.index&&!c.index?a.graphics.element=a.graphics.element&&b.setAnimation({el:a.graphics.element,component:f}):(s.tickObj&&c.tickObj&&n.value!==i.BLANKSTRING||!a.graphics||(a.graphics.element=a.graphics.element&&b.setAnimation({el:a.graphics.element,component:f})),m.mapByCategory||null!==r||!a.graphics?(p=s.index.toString()+c.index.toString(),k.push(p),a.graphics.element?(o=a.graphics.element,n.elemCreated=!1,b.setAnimation({el:o,state:l,attr:n.props.element.attr,component:f})):(o=a.graphics.element=b.setAnimation({el:"rect",component:f,attr:n.props.element.attr,label:"rect",container:f.getContainer("plotGroup")}),n.elemCreated=!0),o.shadow({opacity:m.showShadow},f.getContainer("shadowGroup")).data("BBox",undefined),f.getFromEnv("chartConfig").enablemousetracking&&o.data("eventArgs",g.eventArgs).data(y,m.showHoverEffect).data("setRolloverAttr",n.setRolloverAttr||{}).data("setRolloutAttr",n.setRolloutAttr||{})):(a.graphics.element&&a.graphics.element.hide(),a.graphics.hotElement&&a.graphics.hotElement.hide())));f.drawn?f.drawLabel():f.addJob("labelJob",f.drawLabel.bind(f),d.priorityList.label),f.drawn=!0,C&&f.removeDataElems()},a.drawLabel=function(){var e,t,a,o,n,l,s,c,d,u,h,p,g,f,m,v,x,y,L,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J=this,K=J.getFromEnv("chartConfig"),q=J.getFromEnv("smartLabel"),Y=J.getFromEnv("animationManager"),X=K.dataLabelStyle,Q=J.config,Z=(J.config.JSONData.data||[]).length,$=J.components.data,ee=J.getContainer("labelGroup"),te=J.graphics.tlLabelContainer,ae=J.graphics.blLabelContainer,oe=J.graphics.trLabelContainer,re=J.graphics.brLabelContainer;for(Y.setAnimation({el:ee,attr:{opacity:1},component:J,label:"text"}),te||(te=J.graphics.tlLabelContainer=E({name:"tlLabel"},ee,J)),ae||(ae=J.graphics.blLabelContainer=E({name:"blLabel"},ee,J)),oe||(oe=J.graphics.trLabelContainer=E({name:"trLabel"},ee,J)),re||(re=J.graphics.brLabelContainer=E({name:"brLabel"},ee,J)),q.useEllipsesOnOverflow(K.useEllipsesWhenOverflow),q.setStyle(X),t=0;t<Z;t++)(e=$[t])!==r&&e.graphics&&(H=(G=e&&e.config).setValue,Q.mapByCategory||null!==H?(a=G.displayValue,f=e.graphics.element,m=e._width,v=e._height,x=e._xPos,y=e._yPos,q.setStyle(X),a=(L=q.getSmartText(a,m,v,!1)).text,d=G.dataLabelStyle,D(a)&&a!==i.BLANK&&G.showValue?(o=y+.5*v,n=x+.5*m,c={text:a,title:L.tooltext||i.BLANKSTRING,visibility:G.visible?b:k,fill:d.color,direction:G.textDirection,x:n,y:o,cursor:G.setLink?N:i.BLANKSTRING,"text-bound":[d.backgroundColor,d.borderColor,X.borderThickness,X.borderPadding,X.borderRadius,X.borderDash]},f?(e.graphics.valEle=Y.setAnimation({el:e.graphics.valEle||"text",container:ee,component:J,label:"text",attr:c}),e.graphics.valEle.outlineText(Q.showTextOutLine,c.fill)):e.graphics.valEle&&(e.graphics.valEle=Y.setAnimation({el:e.graphics.valEle,component:J})),T=G.tlLabel,F=G.trLabel,P=G.blLabel,_=G.brLabel,u=G.tlLabelStyle,h=G.trLabelStyle,p=G.blLabelStyle,g=G.brLabelStyle,V=D(T)&&T!==i.BLANK,I=D(F)&&F!==i.BLANK,B=D(P)&&P!==i.BLANK,M=D(_)&&_!==i.BLANK,O=m*(V&&I?.5:.9),R=.5*(v-(L&&L.height||0)),l=y+4,V?(q.setStyle(u),s=x,c={text:a=(L=q.getSmartText(T,O,R,!1)).text,title:L.tooltext||i.BLANKSTRING,visibility:G.visible?b:k,fill:u.color,"font-family":u.fontFamily,"font-weight":u.fontWeight,"line-height":u.lineHeight,"font-size":u.fontSize,"text-anchor":C,"vertical-align":w,direction:G.textDirection,x:s+4,y:l,"text-bound":[u.backgroundColor,u.borderColor,u.borderThickness,u.borderPadding,u.borderRadius,u.borderDash]},z=Object.assign(c,u),e.graphics.tlLabel=Y.setAnimation({el:e.graphics.tlLabel||"text",component:J,attr:z,container:te}),e.graphics.tlLabel.outlineText(Q.showTextOutLine,z.fill)):e.graphics.tlLabel&&(e.graphics.tlLabel=Y.setAnimation({el:e.graphics.tlLabel,component:J})),I?(q.setStyle(h),s=x+m,c={text:a=(L=q.getSmartText(F,O,R,!1)).text,title:L.tooltext||i.BLANKSTRING,visibility:G.visible?b:k,fill:h.color,"font-family":h.fontFamily,"font-weight":h.fontWeight,"line-height":h.lineHeight,"font-size":h.fontSize,"text-anchor":A,"vertical-align":w,direction:G.textDirection,x:s-4,y:l,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]},W=Object.assign(c,h),e.graphics.trLabel=Y.setAnimation({el:e.graphics.trLabel||"text",attr:W,container:oe,component:J}),e.graphics.trLabel.outlineText(Q.showTextOutLine,W.fill)):e.graphics.trLabel&&(e.graphics.trLabel=Y.setAnimation({el:e.graphics.trLabel,component:J})),l=y+v-4,B?(q.setStyle(p),s=x,c={text:a=(L=q.getSmartText(P,O,R,!1)).text,title:L.tooltext||i.BLANKSTRING,visibility:G.visible?b:k,fill:p.color,"font-family":p.fontFamily,"font-weight":p.fontWeight,"line-height":p.lineHeight,"font-size":p.fontSize,"text-anchor":C,"vertical-align":S,direction:G.textDirection,x:s+4,y:l,"text-bound":[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash]},U=Object.assign(c,p),e.graphics.blLabel=Y.setAnimation({el:e.graphics.blLabel||"text",component:J,container:ae,attr:U}),e.graphics.blLabel.outlineText(Q.showTextOutLine,U.fill)):e.graphics.blLabel&&(e.graphics.blLabel=Y.setAnimation({el:e.graphics.blLabel,component:J})),M?(q.setStyle(p),s=x+m-4,c={text:a=(L=q.getSmartText(_,O,R,!1)).text,title:L.tooltext||i.BLANKSTRING,visibility:G.visible?b:k,fill:g.color,"font-family":g.fontFamily,"font-weight":g.fontWeight,"line-height":g.lineHeight,"font-size":g.fontSize,"text-anchor":A,"vertical-align":S,direction:G.textDirection,x:s,y:l,"text-bound":[g.backgroundColor,g.borderColor,g.borderThickness,g.borderPadding,g.borderRadius,g.borderDash]},j=Object.assign(c,g),e.graphics.brLabel=Y.setAnimation({el:e.graphics.brLabel||"text",attr:j,container:re,component:J}),e.graphics.brLabel.outlineText(Q.showTextOutLine,j.fill)):e.graphics.brLabel&&(e.graphics.brLabel=Y.setAnimation({el:e.graphics.brLabel,component:J}))):J.removeLabels(e)):J.removeLabels(e));J.labelDrawn=!0},a.removeLabels=function(e){var t=this,a=t.getFromEnv("animationManager");e.graphics.valEle&&(e.graphics.valEle=a.setAnimation({el:e.graphics.valEle,component:t})),e.graphics.tlLabel&&(e.graphics.tlLabel=a.setAnimation({el:e.graphics.tlLabel,component:t})),e.graphics.trLabel&&(e.graphics.trLabel=a.setAnimation({el:e.graphics.trLabel,component:t})),e.graphics.blLabel&&(e.graphics.blLabel=a.setAnimation({el:e.graphics.blLabel,component:t})),e.graphics.brLabel&&(e.graphics.brLabel=a.setAnimation({el:e.graphics.brLabel,component:t}))},a.removeDataElems=function(){var e,t,a,o,r=this,n=r.components,l=n.removeDataArr,i=n.pool||(n.pool={element:[],hotElement:[],label:[]}),s=l.length;for(o=0;o<s;o++)if(e=l[0],l.splice(0,1),e&&e.graphics){for(t in a=e.graphics)a[t]&&(a[t]=r.getFromEnv("animationManager").setAnimation({el:a[t],component:r}));e.graphics.element&&(i.element=i.element.concat(e.graphics.element)),e.graphics.hotElement&&(i.hotElement=i.hotElement.concat(e.graphics.hotElement)),e.graphics.label&&(i.label=i.label.concat(e.graphics.label))}n.pool=i},a.getAxisValuePadding=function(){return this.config.defaultPadding},a.getDataLimits=function(){var e,t,a=this.components.data,o=this.config,n=a.length,l=-Infinity,i=+Infinity;for(e=0;e<n;e++)a[e]&&Object.keys(a[e]).length&&(t=a[e].config.setValue)!==r&&null!==t&&(l=_(l,t),i=V(i,t));return o.maxValue=l,o.minValue=i,{max:o.maxValue,min:o.minValue}},a.trimData=function(e){if(this.config.JSONData){var t,a,o=this.config,r=o&&o.context,n=r&&r.prevCatlen,l=this.getFromEnv("xAxis").getTicksLen(),i=n-l,s=o.JSONData,c=s.data&&s.data.length,d=e.data&&e.data.length||0,u=c-d;i>u?(t=i,a=l):(t=u,a=d),t>0&&this.removeData(a,t,!1)}},a.draw=function(){var e=this,t=e.getFromEnv("xAxis"),a=e.getFromEnv("groupMaxWidth");a||(a=I(t.getPixel(1)-t.getPixel(0)),e.addToEnv("groupMaxWidth",a)),!e.config.drawn&&e.createContainer(),t.getState("scrolling")||e.createCoordinates(),e.drawPlots()},a.createContainer=function(){var e,t,a=this,o=a.getLinkedParent(),r=a.groupName||a.dsGroup||a.getType();!o.getChildContainer(r+"VcanvasGroup")&&(r="default"),e=o.getChildContainer(r+"VcanvasGroup"),t=o.getChildContainer(r+"ShadowVcanvasGroup"),!a.getContainer("shadowGroup")&&a.addContainer("shadowGroup",E({name:"shadow-group"},t,a)),!a.getContainer("errorShadowGroup")&&a.addContainer("errorShadowGroup",E({name:"error-shadow-group"},t,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("commonElemsGroup",E({name:"common-elems-group"},e,a)),!a.getContainer("plotGroup")&&a.addContainer("plotGroup",E({name:"plot-group"},e,a)),!a.getContainer("errorPlotGroup")&&a.addContainer("errorPlotGroup",E({name:"error-plot-group"},e,a)),a.getFromEnv("chart").hasAnchor&&a.getContainer("errorPlotGroup").insertBefore(a.getContainer("plotGroup")),!a.getContainer("labelGroup")&&a.addContainer("labelGroup",E({name:"label-group","class":"fusioncharts-datalabels"},o.getChildContainer("vcanvasLabelGroup"),a))},a.createCoordinates=function(){var e,t,a,o,n,l,i,s=this,c=s.getFromEnv("chart"),d=c.isBar,u=s.getFromEnv("yAxis"),h=s.getFromEnv("xAxis"),p=u.getPixel(u.getAxisBase()),g=c.config.xDepth||0,f=c.config.yDepth||0,m=s.components.data.length,v=s.getLinkedParent(),b=v.getstackConf&&v.getstackConf(),x=s.components.data;for(!d&&(g=-g),d&&(f=-f),o=0;o<m;o++)t=(e=x[o])&&e.config,e!==r&&(a=t._b,n=h.getPixel(b&&b[o].x||t._x)+g,l=u.getPixel(t._y)+f,i=(a?u.getPixel(a):p)+f,h.config.isVertical?(t._Px=l,t._Py=n,t._Pby=n,t._Pbx=i):(t._Px=n,t._Py=l,t._Pby=i,t._Pbx=n),s.getLineShift&&(t._Py+=s.getLineShift("y")))},a._decideTooltipType=function(e,t){var a=this,o=a.getFromEnv("chartConfig").drawTrendRegion,r=a.getFromEnv("toolTipController"),n=a.components.data[e],l=n&&(n.config.finalTooltext||n.config.toolText),i=n&&(n.graphics.element||a.graphics.sharedAnchor.element),s=a.config.currentToolTip,c=t.originalEvent;o&&i?a.config.currentToolTip=a.getLinkedParent()._drawTooltip(e,a.config.index,c,s):l&&!o&&(s?r.draw(c,l,s):s=a.config.currentToolTip=r.draw(c,l))},a._firePlotEvent=function(e,t,a){var o,n=this,l=n.getFromEnv("chart"),i=n.components.data[t],s=i.graphics.element,c=i.graphics.label;if(s)switch(o=i.config.setLink,e){case"fc-mouseover":n._decideTooltipType(t,a),function(e,t,a,o,r){var n=t.graphics,l=e.getFromEnv("animationManager"),i=n&&n.element,s=i&&i.getData();!0!==s.draged&&(l.setAnimationState("mouseOver"),i&&0!==s.showHoverEffect&&l.setAnimation({el:i,attr:i.getData().setRolloverAttr,component:r}),!o&&i&&e.plotEventHandler(i,a,"DataPlotRollOver"))}(l,i,a,r,n),o&&(s.css({cursor:N}),c&&c.css({cursor:N}));break;case"fc-mouseout":n.getFromEnv("toolTipController").hide(n.config.currentToolTip),function(e,t,a,o,r){var n=t.graphics,l=e.getFromEnv("animationManager"),i=n&&n.element,s=i&&i.getData();!0!==s.draged&&(l.setAnimationState("mouseOut"),i&&0!==s.showHoverEffect&&l.setAnimation({el:i,attr:i.getData().setRolloutAttr,component:r}),!o&&i&&e.plotEventHandler(i,a,"DataPlotRollOut"))}(l,i,a,r,n),o&&(s.css({cursor:L}),c&&c.css({cursor:L}));break;case"fc-click":l.plotEventHandler(s,a);break;case"fc-mousemove":n._decideTooltipType(t,a)}},a.removeData=function(e,t,a){var o,n,l,i=this,s=e,c=t,d=i.components,u=d.data,h=d.removeDataArr||(d.removeDataArr=[]),p=i.config,g=i.maxminFlag;for(c===r&&(c=1),(s=s||0)+c!==u.length&&i.getFromEnv("chart").isRealTime?0!==s&&s!==r||(i.endPosition=!1):i.endPosition=!0,d.removeDataArr=h=h.concat(u.splice(s,c)),o=(l=h.length)-1;o>=0;o--)if(h[o]){if((n=h[o].config).setValue!==p.maxValue&&n.setValue!==p.minValue||(g=i.maxminFlag=!0),n._x-=c,g)break}else h.splice(o,1);i.removeDataLen=l,i.resetCatPos&&i.resetCatPos(),g&&i.getDataLimits&&i.getDataLimits(),a&&i.asyncDraw()},t}(l.ComponentInterface);B.prototype._configureDataLabelStyle=i.configureDataLabelStyle;var M=B;t["default"]=M},1366:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.kagi":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1365:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(616)),i=a(274),s=a(282),c=o(a(1366)),d="bottom",u="round",h="eventArgs",p="setRolloverAttr",g="setRolloutAttr",f=function(e){return e!==r&&null!==e},m="M",v="center",b=i.hasTouch?i.TOUCH_THRESHOLD_PIXELS:i.CLICK_THRESHOLD_PIXELS,x="none";(0,s.addDep)({name:"kagiAnimation",type:"animationRule",extension:c["default"]});var k=function(e){function t(){var t;return(t=e.call(this)||this).manageSpace=i.stubFN,t.drawCommonElements=i.stubFN,t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"kagi"},a._parseShadowOptions=function(){var e=this.getFromEnv("chart").getFromEnv("dataSource").chart;return{opacity:(0,i.pluckNumber)(e.showshadow,1)?this.config.alpha/100:0}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a,o,n,l,s,c,u,h,p,g,m,b,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U=this,j=U.getFromEnv("chart"),J=0,K=[],q=0;for(a=U.components,n=a.data,l=U.config,s=U.config.JSONData.data,c=j.getFromEnv("dataSource").chart,o=a.removeDataArr||(a.removeDataArr=[]),u=!1,h=0,p=(0,i.pluckNumber)(c.reversalvalue,-1),g=(0,i.pluckNumber)(c.reversalpercentage,5),S=0;S<n.length;S+=1)n[S].config.__nullCount=q,null===n[S].config.setValue&&(o.push(n.splice(S,1)[0]),q++,S-=1);if(n.length){for(l.rallyColor=(0,i.pluck)(c.rallycolor,"FF0000"),l.rallyAlpha=(0,i.pluckNumber)(c.rallyalpha,c.linealpha,100),l.declineColor=(0,i.pluck)(c.declinecolor,"0000FF"),l.declineAlpha=(0,i.pluckNumber)(c.declinealpha,c.linealpha,100),l.canvasPadding=(0,i.pluckNumber)(c.canvaspadding,15),l.maxHShiftPercent=(0,i.pluckNumber)(c.maxhshiftpercent,10),l.rallyThickness=(0,i.pluckNumber)(c.rallythickness,c.linethickness,2),m=(0,i.pluckNumber)(c.rallydashlen,c.linedashlen,5),b=(0,i.pluckNumber)(c.rallydashgap,c.linedashgap,4),l.declineThickness=(0,i.pluckNumber)(c.declinethickness,c.linethickness,2),k=(0,i.pluckNumber)(c.declinedashlen,c.linedashlen,5),y=(0,i.pluckNumber)(c.declinedashgap,c.linedashgap,4),l.lineDashed={"true":(0,i.pluckNumber)(c.rallydashed,c.linedashed,0),"false":(0,i.pluckNumber)(c.declinedashed,c.linedashed,0)},l.rallyDashed=(0,i.pluckNumber)(c.rallydashed,c.linedashed,0)?(0,i.getDashStyle)(m,b):x,l.declineDashed=(0,i.pluckNumber)(c.declinedashed,c.linedashed,0)?(0,i.getDashStyle)(k,y):x,l.canvasPadding=(0,i.pluckNumber)(c.canvaspadding,this.canvasPadding,15),p=p>0?p:g*(l.maxValue-l.minValue)/100,C=n[0].config.setValue,w=function(e,t){for(var a,o=1,r=n[0].config.setValue;o<e;)a=n[o].config.setValue,t?a<=r&&(n[o].config.isDefined=!1):a>=r&&(n[o].config.isDefined=!1),o+=1;n[0].config.vAlign=t?d:"top",n[0].config.align=v},A=s.length,S=0,N=0;N<A;N+=1,S+=1)if((!(L=s[N])||!L.vline)&&(D&&(D=!1),(F=n[S]&&n[S].config)&&(F.isDefined=!0),S&&F)){if(F.isShift=r,E=n[S-1].config,F.vAlign="middle",F.align="right",F.showLabel=!1,T=null,V=F.setValue,P=n[S+1]&&n[S+1].config.setValue,_=Math.abs(C-V),u?V<B&&I?I=!1:V>M&&!I&&(I=!0):(V>C&&_>p?(B=C,M=null,O=!0,u=!0,w(S,I=!0)):V<C&&_>p?(B=null,M=C,O=!1,u=!0,w(S,I=!1)):(I=null,O=null,u=!1),f(E)&&(E.isRally=I),null!==I&&(n[0].config.isRally=I)),F.isRally=I,(O&&V<C||!O&&V>C)&&(T=C),G=T||V,_=Math.abs(G-P),R=null===O?null:O?G>P&&_>=p:G<P&&_>=p,E&&E.isShift)for(O?(B=C,z=d):O||(M=C,z="top"),W=v,H=S;H>1;H-=1)if(n[H].y===C){n[H].vAlign=z,n[H].align=W,n[H].showLabel=!0;break}R?(h+=1,D=!0,O=!O,F.isShift=!0,C=G,K.push(s[S+F.__nullCount]),J=U._appendCategory(J,S,K,0)):O&&V>C||!O&&V<C?C=V:T=C,F.plotValue=T,F.objParams={isRally:I,lastHigh:M,lastLow:B,isRallyInitialised:u}}U._appendCategory(J,S,K,1),K.push(L),U.getFromEnv("xAxis").setTickValues(K),l.shiftCount=h+1}},a._appendCategory=function(e,t,a,o){var r,n,l,s,c=e,d=this.config.JSONData.catData;if(c<d.length)for(r=c;r<d.length;c=r+=1){if(l=(n=d[r]).data,(s=n.index-(r+1))<t)l.lineposition=(0,i.pluckNumber)(l.lineposition,o);else if(s>t)break;a.push(l)}return c},a._getHoveredPlot=function(e,t){var a,o,r,n,l,i,s=this,c=e,d=t,u=s.getFromEnv("xAxis"),h=s.config,p=h.trackIndex,g=s.components.data,f=g.length;for(c+=u.getTranslation(),l=Math.floor(Math.max(u.getValue(c-h.maxRadius),0)),o=Math.ceil(Math.min(u.getValue(c+h.maxRadius),f-1));o>=l;o--)for(a=f=(i=p[o])&&i.length;a>=0;a--)if(r=i[a],n=s.isWithinShape(g[r],r,c,d))return n},a.getClip=function(e){var t=this.getFromEnv("chart").getChildren("canvas")[0].config,a=[t.canvasLeft,t.canvasTop,0,t.canvasTop+t.canvasHeight];return a[2]+="init"===e?0:t.canvasLeft+t.canvasWidth,a},a.parsePlotAttributes=function(e,t){var a,o,n,l,s,c,d,u,h,f,m,v,x=t,k=e,y=this,C={},w=y.getState("visible");k=k.config,m=(s=y.components.data[x]).config,a=k.trackerConfig={},h=m.hoverEffects,o=s._xPos=y.getFromEnv("xAxis").getPixel(k.plotX),n=s._yPos=k.plotY,s._index=k.plotX,f=(C=m.anchorProps).symbol,k.finalTooltext=k.toolText,n!==r&&!isNaN(n)&&k.isDefined&&(l=k.eventArgs=k.eventArgs||{},Object.assign(l,{index:x,link:m.setLink,value:m.setValue,displayValue:m.displayValue,categoryLabel:m.label,toolText:k.finalTooltext,id:y.config.userID,datasetIndex:0,datasetName:y.config.JSONData.seriesname,visible:w,color:m.color,alpha:m.alpha,anchorBgColor:C.bgColor,anchorBgAlpha:C.anchorBgAlpha,anchorAlpha:C.anchorAlpha,anchorBorderColor:C.borderColor,anchorBorderThickness:C.borderThickness,anchorRadius:C.radius,anchorSides:C.sides,anchorStartAngle:C.startAngle,anchorHoverColor:h.anchorColor,anchorHoverAlpha:h.anchorAlpha,anchorHoverSides:h.anchorSides,dashed:m.dashed,valuePosition:m.valuePosition}),c=d={},C.imageUrl&&(m.anchorImageLoaded=!1),v={path:(0,i.polyPathToPath)([f[1]||2,o,n,C.radius,C.startAngle,0]),fill:(0,i.toRaphaelColor)({color:C.bgColor,alpha:C.bgAlpha}),stroke:(0,i.toRaphaelColor)({color:C.borderColor,alpha:C.borderAlpha}),"stroke-width":C.borderThickness,visibility:C.radius?w:"hidden"},u=Math.max(C.radius,h&&h.anchorRadius||0,b)+C.borderThickness/2,a.trackerRadius=u,h.enabled&&(d={path:(0,i.polyPathToPath)([h.anchorSides||2,o,n,h.anchorRadius,h.startAngle,h.dip]),fill:(0,i.toRaphaelColor)({color:h.anchorColor,alpha:h.anchorBgAlpha}),stroke:(0,i.toRaphaelColor)({color:h.anchorBorderColor,alpha:h.anchorBorderAlpha}),"stroke-width":h.anchorBorderThickness},c={path:(0,i.polyPathToPath)([C.sides,o,n,C.radius,C.startAngle,0]),fill:(0,i.toRaphaelColor)({color:C.bgColor,alpha:C.bgAlpha}),stroke:(0,i.toRaphaelColor)({color:C.borderColor,alpha:C.borderAlpha}),"stroke-width":C.borderThickness},h.attrs={hoverEnabled:h.enabled,anchorRadius:C.radius,anchorHoverRadius:h.anchorRadius},h.attrs[p]=d,h.attrs[g]=c,C.isAnchorHoverRadius=h.attrs.anchorRadius)),k.props={element:{attr:v}}},a.parseLabelAttributes=function(e,t){var a,o,n,l,s,c,d,u,h,p,g,m,v,b,x,k,y=this,C=y.getFromEnv("chart"),w=C.config,A=C.config.dataLabelStyle,S=i.BLANKSTRING,N=w.rotatevalues?270:0,L=w.canvasTop,D=L+w.canvasHeight,E={},T={},F=t,P=y.components.data.length;x=(h=e&&e.config)&&h.setValue,e!==r&&x!==r&&null!==x&&!0!==h.labelSkip?(t>0&&(T={x:y.components.data[F-1]._xPos,y:y.components.data[F-1]._yPos}),t<P-1&&(E={x:y.components.data[F+1]._xPos,y:y.components.data[F+1]._yPos}),n=e.graphics,m=e._yPos||e.config._Py,g=e._xPos||e.config._Px,v=n.element?n.image&&.5*n.element.attr("height")||h.anchorProps.radius-3:0,a=h.valuePadding+2+v,S=h.displayValue,f(S)&&""!==S&&h.showValue&&(k={text:S,fill:(b=h.dataLabelStyle).color,"text-bound":[b.backgroundColor,b.borderColor,A.borderThickness,A.borderPadding,A.borderRadius,A.borderDash]},o=y.getFromEnv("smartLabel").getOriSize(S),N?(h._state={labelWidth:o.height,labelHeight:o.width},h._rotated=!0):(h._state={labelWidth:o.width,labelHeight:o.height},h._rotated=!1),l=s=N?o.width:o.height,l+=a,u=.5*s+a,c=m,d=g,l+=4,p=Number(N)>=1?o.height:o.width,h._valueBelowPoint=0,E.y>c?T.y<c?d-=a+3+.5*p:m-l<L?(d-=a+3+.5*p,c=L+l/2):c-=u:T.y>c?d-=a+3+.5*p:m+l>D?(d-=a+3+.5*p,c=D-l/2):(c+=u+2,h._valueBelowPoint=1),k.x=d,k.y=c),h.props=h.props||{},h.props.label={attr:k}):h&&delete h.labelSkip},a.allocatePosition=function(){var e,t,a,o,n,l,s,c,d,u=this,h=u.config,p=u.components.data,g=p&&p.length,f=u.getFromEnv("xAxis"),v=u.components.data,b=f.getPixel(0),x=f.getPixel(1)-b,k={"true":h.rallyThickness,"false":h.declineThickness},y=f.getPixel(0),C=p[0]&&!!p[0].isRally,w=b-x/2;if(h.imagesLoaded=0,p.length){if(a=h.rallyPath=[],o=h.declinePath=[],v=u.components.data=v||[],p[0].config.setValue)l=p[0].config.plotY;else for(e=1;e<g;e+=1)if(p[e].config.setValue){l=p[e].config.plotY;break}for(C=!!p[0].config.isRally,s=Math.round(l)+k[C]%2/2,C?a.push(m,w,s,"H",y):o.push(m,w,s,"H",y),(0,i.fcEach)(p,(function(e,i){var s=e;s=s.config,t=v[i],t.config.setValue,(c=p[i+1]&&p[i+1].config||{})&&(d=[m,y,l],C=s.isRally,s.isShift&&(y+=x,l=s.graphY,d.push("H",y),d[2]=Math.round(d[2])+k[C]%2/2,d=d.toString(),C?a.push(d):o.push(d),d=[m,y,l]),c.isChanged&&(l=c.ty,d.push("V",l),d[1]=Math.round(d[1])+k[!!C]%2/2,d=d.toString(),C?a.push(d):o.push(d),d=[m,y,l]),n=c.isRally,c.graphY!==d[2]&&c.graphY!==r&&(d.push("V",c.graphY),d[1]=Math.round(d[1])+k[!!n]%2/2,d=d.toString(),n?a.push(d):o.push(d)),c.graphY&&(l=c.graphY)),u.parsePlotAttributes(t,i)})),e=0;e<p.length;e++)u.parseLabelAttributes(v[e],e)}},a.drawPlots=function(){var e,t,a,o,n,l,s,c,d,f,m=this,v=m.getGraphicalElement(),b=m.getFromEnv("animationManager"),x=m.config,k=x.trackIndex={},y=m.components.data,C=m.components.data,w=x.shadow,A={},S=x.rallyThickness,N=x.declineThickness,L={stroke:(0,i.toRaphaelColor)({color:x.rallyColor,alpha:x.rallyAlpha}),"stroke-linecap":u,"stroke-linejoin":u,"stroke-width":S,"stroke-dasharray":x.rallyDashed},D={stroke:(0,i.toRaphaelColor)({color:x.declineColor,alpha:x.declineAlpha}),"stroke-linecap":u,"stroke-linejoin":u,"stroke-width":N,"stroke-dasharray":x.declineDashed},E=v.rallyElem,T=v.declineElem,F=m.getContainer("commonElemsGroup"),P=m.getContainer("plotGroup"),_=m.getContainer("shadowGroup");if(!y.length)return s&&s.hide(),void(c&&c.hide());s&&s.show(),c&&c.show(),(0,i.fcEach)(y,(function(i,s){var c=i;c=c.config,o=C[s],l=o.config,e=o.graphics,f=e.image,n=l.hoverEffects,t=o._yPos,k[c.plotX]||(k[c.plotX]=[]),k[c.plotX].push(s),o._index=c.plotX,A=l.anchorProps,t!==r&&!isNaN(t)&&c.isDefined?(A.imageUrl?m.drawAnchorImage(o):(f&&f.hide(),a=e.element,d=c.props.element.attr,(a=e.element=b.setAnimation({el:a||"path",attr:d,container:P,component:m,label:"anchor"})).show().shadow(A.shadow,_).data("anchorRadius",A.radius).data("anchorHoverRadius",n.anchorRadius).data("hoverEnabled",n.enabled).data(h,c.eventArgs)),n.enabled&&a&&a.data("anchorRadius",A.radius).data("anchorHoverRadius",n.anchorRadius).data("hoverEnabled",n.enabled).data(p,n.attrs[p]).data(g,n.attrs[g]).data(h,c.eventArgs)):(e.element&&e.element.hide(),f&&f.hide())})),L.path=x.rallyPath,(s=b.setAnimation({el:E||"path",attr:L,container:F,component:m,label:"line"})).shadow(S&&w,_),E||m.addGraphicalElement("rallyElem",s),D.path=x.declinePath,(c=b.setAnimation({el:T||"path",attr:D,container:F,component:m,label:"line"})).shadow(N&&w,_),T||m.addGraphicalElement("declineElem",c)},t}(l["default"]);t["default"]=k},1393:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.stepLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1392:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=a(274),i=o(a(616)),s=a(282),c=o(a(1393));(0,s.addDep)({name:"stepLineAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){var t;return(t=e.call(this)||this).getPathArr=function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]},t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"stepLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.drawverticaljoins=r,t.useforwardsteps=r},a._addLegend=function(){var e,t=this,a=t.config,o=t.getFromEnv("legend"),r=t.getFromEnv("chart-attrib"),n=(0,l.pluckNumber)(a.drawanchors,1),i=t.config.JSONData||{},s={enabled:a.includeinlegend,type:"line",drawLine:(0,l.pluck)(a.drawLine,!0),anchorSide:n?a.anchorsides:0,label:(0,l.getFirstValue)(t.config.JSONData.seriesname),legendIconAlpha:(0,l.pluckNumber)(i.legendiconalpha)};a.includeinlegend?((e=o.getItem(t.config.legendItemId))||(t.config.legendItemId=o.createItem(t),e=o.getItem(t.config.legendItemId),t.addExtEventListener("fc-click",(function(){e.itemClickFn()}),e)),e.configure(s),e.setStateCosmetics("default",{symbol:{fill:(0,l.toRaphaelColor)({color:a.anchorbgcolor,alpha:a.anchorbgalpha}),bgAlpha:(0,l.pluckNumber)(i.legendiconbgalpha,i.legendiconalpha,r.legendiconbgalpha,r.legendiconalpha,a.anchorbgalpha),borderAlpha:(0,l.pluckNumber)(i.legendiconborderalpha,i.legendiconalpha,r.legendiconborderalpha,r.legendiconalpha,"100"),rawFillColor:a.anchorbgcolor,rawStrokeColor:a.anchorbordercolor,stroke:(0,l.toRaphaelColor)({color:a.anchorbordercolor,alpha:"100"}),"stroke-width":a.anchorborderthickness}}),t.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden")):t.config.legendItemId&&o.disposeItem(t.config.legendItemId)},a.getLinePath=function(e,t){var a,o,n,i,s,c,d,u=this,h=u.config,p=u.getFromEnv("chartConfig"),g=(0,l.pluckNumber)(p.connectnulldata),f={},m=(0,l.pluckNumber)(h.drawverticaljoins),v=(0,l.pluckNumber)(p.stepatmiddle)?.5*u.getFromEnv("xAxis").getPVR():0,b=f.lastValidValue||!1,x=f.temp||[],k=f.temp2||[],y=f.pathArr||[],C=f.path2Arr||[],w=f.pointsJoined||0,A=t&&t.begin||0,S=t&&t.end||e.length,N=p.viewPortConfig.step||1,L=[];for(L=L.concat(e),o=A;o<S;o+=N)(c=L[o])&&((d=(n=c.config).setValue)===r||n&&!0===n.isSkipped?n&&delete n.isSkipped:(i=n._Px,s=n._Py,null===d||d.isNull?g||(x=[],k=[],b=!1):b?(x.length&&(y=y.concat(x),x=[],w++),(0,l.pluckNumber)(h.useforwardsteps)?(y.push(["H",i-v]),m?y.push(["V",s]):y.push(["M",i-v,s]),v&&y.push(["H",i])):(m?y.push(["V",s]):y.push(["M",a,s]),y.push(["H",i]),a=i)):(x.push(["M",i,s]),a=i,w=0,b=!0)));return{pathArr:y,path2Arr:C,lastValidValue:b,pointsJoined:w,temp:x,temp2:k,getPathArr:u.getPathArr}},t}(i["default"]);t["default"]=d},1389:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.multiaxisline":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1388:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(616)),l=a(274),i=a(282),s=o(a(1389));(0,i.addDep)({name:"multiAxislineAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiaxisline"},a.configure=function(t){if(!t)return!1;this.trimData(t),this.config.JSONData=t,e.prototype.configure.call(this,t)},a.parseAttributes=function(){var t,a,o=this,r=o.config.JSONData,n=o.config,i=o.getFromEnv("chart-attrib"),s=o.getFromEnv("axisData");e.prototype.parseAttributes.call(this),n.linethickness=(0,l.pluckNumber)(r.linethickness,s.linethickness,i.linethickness,2),n.lineDashLen=(0,l.pluckNumber)(r.linedashlen,s.linedashlen,i.linedashlen,5),n.lineDashGap=(0,l.pluckNumber)(r.linedashgap,s.linedashgap,i.linedashgap,4),n.alpha=(0,l.pluckNumber)(r.alpha,s.linealpha,i.linealpha,l.HUNDREDSTRING),n.linecolor=(0,l.pluck)(r.color,s.linecolor,s.color,i.linecolor,n.plotColor),n.legendSymbolColor="line"===o.getName()?n.lineColor:n.plotFillColor,a=(0,l.pluckNumber)(r.dashed,s.linedashed,i.linedashed),t=(0,l.getDashStyle)(n.lineDashLen,n.lineDashGap),n.anchorbordercolor=(0,l.pluck)(r.anchorbordercolor,r.color,s.color,i.anchorbordercolor,n.lineColor,n.plotColor),n.lineDashStyle=a?t:"none"},t}(n["default"]),d=c;t["default"]=d},1376:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.multiLevelPie":function(){var e,t=this.config;return{"ringpath.appearing":function(a){return[{initialAttr:{ringpath:[(e=a.attr.ringpath)[0],e[1],e[2],e[3],t.initialAngle,t.initialAngle]},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1375:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(288)),l=o(a(649)),i=a(595),s=a(274),c=a(282),d=o(a(1376)),u=a(286),h=o(a(390)),p=(0,c.getDep)("redraphael","plugin"),g="",f="normal",m="FFFFFF",v="none",b="DataPlotRollOver",x="DataPlotRollOut",k="pointer",y="eventArgs",C=/^[0-9]+\%?$|^([0-9]+[.][0-9]+)\%?$/;(0,c.addDep)({name:"multilevelpieAnimation",type:"animationRule",extension:d["default"]}),(0,h["default"])(p);var w=function(e){function t(){var t;return(t=e.call(this)||this).components={data:[]},t.graphics={},t}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiLevelPie"},a.configureAttributes=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,o,r=this,n=r.getFromEnv("chart"),l=n.config,c=r.config||(r.config={}),d=c.dataLabelOptions||(c.dataLabelOptions={}),u=c.piePlotOptions,h=n.config.style,p=n.getFromEnv("dataSource").chart,b=(0,s.pluckNumber)(-p.centerangle,180),x=(0,s.pluckNumber)(p.totalangle,360),k=function(e,t){for(var a=e;a.graphics.element;)a.graphics.element.attr({fill:"mouseover"===t?c.hoverFillColor:(a.config||this.data("plotItem")).color}),a=a.config.parent},y=function A(e,t){var a;for(e.graphics.element.attr({fill:"mouseover"===t?c.hoverFillColor:(e.config||this.data("plotItem")).color}),a=0;a<(e.components.data&&e.components.data.length);a++)A.call(this,e.components.data[a],t)},w=function(e){if(c.useHoverColor){var t=this.data("plotItem"),a=t.selfRef;c.highlightParentPieSlices||c.highlightChildPieSlices?!c.highlightParentPieSlices&&c.highlightChildPieSlices?y.call(this,a,e):c.highlightParentPieSlices&&!c.highlightChildPieSlices?k.call(this,a,e):c.highlightParentPieSlices&&c.highlightChildPieSlices&&(k.call(this,a,e),y.call(this,a,e)):a.graphics.element.attr({fill:"mouseover"===e?c.hoverFillColor:(a.config||t).color})}};c.usePattern=(0,s.pluckNumber)(l.usePattern,0),c.patternType=i.PATTERN_TYPES.includes(e.patterntype)?e.patterntype:l.patternType,c.patternDensity=(0,s.pluckNumber)(e.patterndensity,l.patternDensity),c.patternAlpha=(0,s.pluckNumber)(e.patternalpha,l.patternAlpha),c.patternBgColor=(0,s.pluck)(e.patternbgcolor,c.patternBgColor),c.enableAnimation=(0,s.pluckNumber)(p.animation,p.defaultanimation,1),c.animation=!!c.enableAnimation&&{duration:1e3*(0,s.pluckNumber)(p.animationduration,p.moveduration,1)},c.showShadow=(0,s.pluckNumber)(p.showshadow,0),c.useHoverColor=Boolean((0,s.pluckNumber)(p.usehovercolor,1)),c.usePattern&&(c.useHoverColor=0),c.showTextOutline=Boolean((0,s.pluckNumber)(p.textoutline,0)),c.hoverFillColor=(0,s.convertColor)((0,s.pluck)(p.hoverfillcolor,"FF5904"),(0,s.pluckNumber)(p.hoverfillalpha,100)),t=(t=(0,s.getFirstValue)(p.valuebordercolor,g))?(0,s.convertColor)(t,(0,s.pluckNumber)(p.valueborderalpha,p.valuebgalpha,p.valuealpha,100)):g,!d.style&&(d.style={fontFamily:(0,s.pluck)(p.valuefont,h.fontFamily),fontSize:(0,s.pluckNumber)(this.computeFontSize(p.valuefontsize),(a=h.fontSize,o=10,parseInt(a,o||10)))+"px",color:(0,s.convertColor)((0,s.pluck)(p.valuefontcolor,h.color),(0,s.pluckNumber)(p.valuefontalpha,p.valuealpha,100)),fontWeight:(0,s.pluckNumber)(p.valuefontbold)?"bold":f,fontStyle:(0,s.pluckNumber)(p.valuefontitalic)?"italic":f,backgroundColor:p.valuebgcolor?(0,s.convertColor)(p.valuebgcolor,(0,s.pluckNumber)(p.valuebgalpha,p.valuealpha,100)):g,border:t||p.valuebgcolor?(0,s.pluckNumber)(p.valueborderthickness,1)+"px solid":g,borderPadding:(0,s.pluckNumber)(p.valueborderpadding,2),borderThickness:(0,s.pluckNumber)(p.valueborderthickness,h.borderThickness,1),borderRadius:(0,s.pluckNumber)(p.valueborderradius,h.borderRadius,0),borderColor:t,borderDash:(0,s.pluckNumber)(p.valueborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(p.valueborderdashlen,4),(0,s.pluckNumber)(p.valueborderdashgap,2)):v}),!u&&(u=c.piePlotOptions={}),u.allowPointSelect=!1,c.borderAlpha=(0,s.pluck)(p.plotborderalpha,p.pieborderalpha,100),c.borderColor=(0,s.convertColor)((0,s.pluck)(p.plotbordercolor,p.piebordercolor,m),p.showplotborder!==s.ZEROSTRING?(0,s.pluck)(p.plotborderalpha,p.pieborderalpha,100):0),c.rawborderColor=(0,s.pluck)(p.plotbordercolor,p.piebordercolor,m),c.showplotborder=(0,s.pluckNumber)(p.showplotborder,1),c.showTooltip=(0,s.pluckNumber)(p.showtooltip,1),c.borderWidth=(0,s.pluckNumber)(p.pieborderthickness,p.plotborderthickness,1),u.startingAngle=0,u.size="100%",c.highlightParentPieSlices=(0,s.pluckNumber)(p.highlightparentpieslices,p.highlightparentpienodes,1),c.highlightChildPieSlices=(0,s.pluckNumber)(p.highlightchildpieslices,p.highlightchildpienodes,0),c.showLabels=(0,s.pluckNumber)(p.showlabels,1),c.showValues=(0,s.pluckNumber)(p.showvalues,0),c.showValuesInTooltip=(0,s.pluckNumber)(p.showvaluesintooltip,p.showvalues,0),c.showPercentValues=(0,s.pluckNumber)(p.showpercentvalues,p.showpercentagevalues,0),c.showPercentInTooltip=(0,s.pluckNumber)(p.showpercentintooltip,0),c.toolTipSepChar=(0,s.pluck)(p.tooltipsepchar,p.hovercapsepchar,s.COMMASPACE),c.labelSepChar=(0,s.parseUnsafeString)((0,s.pluck)(p.labelsepchar,c.toolTipSepChar)),c.tooltext=p.plottooltext,c.alpha=(0,s.pluck)(p.plotfillalpha,p.piefillalpha,100),c.startAngle=(b-x/2)*(Math.PI/180),c.endtAngle=(b+x/2)*(Math.PI/180),c.initialAngle=c.endtAngle,c.originX=(0,s.pluckNumber)(p.originx),c.originY=(0,s.pluckNumber)(p.originy),c.events={mouseOver:function(){w.call(this,"mouseover")},mouseOut:function(){w.call(this,"mouseout")}},l.plotBorderWidth=0,c.autoRotateLabels=l.autorotatelabels?(0,s.pluckNumber)(l.autorotatelabels):0,c.useEllipsesWhenOverflow=l.useellipseswhenoverflow?(0,s.pluckNumber)(l.useellipseswhenoverflow):1,c.skipOverlapLabels=l.skipoverlaplabels?(0,s.pluckNumber)(l.skipoverlaplabels):0,l.plotBorderWidth=0,c.maxLevel=r.addMSPieCat(r.config.JSONData,1,r,c.startAngle,c.endtAngle),c.pieRadius=parseInt(p.pieradius,10),c.innerRadius="0",C.test(p.innerradius)&&(c.innerRadius=(0,s.pluck)(p.innerradius)),d.distance=0,d.placeLabelsInside=!0},a.removalFn=function(e,t){this.getFromEnv("animationManager").setAnimation({el:e,label:"element"===t?"ringpath":"label",component:this,callback:function(){this.remove()}})},a.removeGraphics=function(e){var t,a,o,r=e.components&&e.components.data,n=e.graphics;if(r)for(o=r.length,t=0;t<o;t+=1)this.removeGraphics(r[t]);if(e.graphics)for(a in n)n.hasOwnProperty(a)&&this.removalFn(e.graphics[a],a)},a.removeChild=function(e,t,a){var o,r,n=this;if(e.length)for(o=0;o<e.length;o+=1)r=e[o],a?n.removalFn(r,t,a):n.removeGraphics(r,t);else for(o in e)n.removeChild(e[o],t,o)},a.addMSPieCat=function(e,t,a,o,n){var l,c,d,u,h,p,f,m,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V=(0,s.extend2)([],e),I=V.length,B=this,M=a.components.data,O=B.config,R=B.getFromEnv("number-formatter"),G=0,H=O.labelSepChar,z=t,W=M.length,U=function(){B.removeChild.apply(B,arguments)},j=V.length,J=n-o,K=0;for(f=0;f<I;f+=1)(h=V[f])._userValue=R.getCleanValue(h.value,!0),h._value=(0,s.pluckNumber)(h._userValue,1),G+=h._value;for(u=J/(G=G||1),f=I-1;f>=0;f-=1)p=u*(h=V[f])._value,m=(0,s.parseUnsafeString)((0,s.pluck)(h.label,h.name)),x=null!==h._userValue?R.dataLabels(h._userValue):g,k=R.percentValue(h._value/G*100),b=(0,s.pluckNumber)(h.alpha,O.alpha),A=(0,s.pluckNumber)(h.showlabel,O.showLabels),F=(0,s.pluckNumber)(O.showplotborder,1),C=1===A?m:g,1===(0,s.pluckNumber)(h.showvalue,O.showValues)&&(O.showPercentValues?C+=C!==g?H+k:k:x!==r&&x!==g&&(C+=C!==g?H+x:x)),(y=O.showTooltip?(0,s.parseUnsafeString)((0,s.pluck)(h.tooltext,h.hovertext,O.tooltext),!1):r)===g?(y=m,O.showValuesInTooltip&&(O.showPercentInTooltip?y+=y!==g?H+k:k:x!==r&&x!==g&&(y+=y!==g?H+x:x))):y=(0,s.parseTooltext)(y,[1,2,3,14],{percentValue:k,label:m,formattedValue:x},h),P=o+K,K+=p,(l=M[f])||(l=M[f]={components:{data:[]},config:{},graphics:{}}),l.graphics.element&&(_=l.config.startAngle+l.config.angleStrech),S=i.PATTERN_TYPES.includes(h.patterntype)?h.patterntype:O.patternType,N=(0,s.pluckNumber)(h.patternangle,B.getFromEnv("chart-attrib").patternangle,S===i.PATTERN_TYPES[0]?40:0),L=(0,s.pluckNumber)(h.patterndensity,O.patternDensity),D=(0,s.pluckNumber)(h.patternsize,S===i.PATTERN_TYPES[0]?2:4),E=(0,s.pluckNumber)(h.patternalpha,O.patternAlpha),T=(0,s.pluck)(h.patternbgcolor,O.patternBgColor),w=h.color||B.getFromEnv("color-manager").getPlotColor(),l.config={patternType:S,patternAngle:N,patternDensity:L,patternSize:D,patternAlpha:E,patternBgColor:T,initialAngle:_||(a.config||a.config).initialAngle,startAngle:P,alpha:b,angleStrech:p,level:t,displayValue:C,showLabel:A,showPlotBorder:F,toolText:y,link:(0,s.getValidValue)(h.link),rawColor:w,doNotSlice:!0,color:(0,s.convertColor)(w,b),borderAlpha:(0,s.pluck)(h.plotborderalpha,O.borderAlpha),borderWidth:(0,s.pluckNumber)(h.borderwidth,O.borderWidth),borderColor:(0,s.pluck)(h.bordercolor,O.borderColor),rawborderColor:(0,s.pluck)(h.bordercolor,O.rawborderColor),dashStyle:(0,s.pluckNumber)(h.valueborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(h.borderdashlen,4),(0,s.pluckNumber)(h.borderdashgap,2)):v,shadow:{opacity:.01*Math.round(b>50?b*b*b*1e-4:b*b*.01)},isSingleTon:!(I>1)},O.usePattern&&(l.config.borderColor=l.config.color,l.config.rawborderColor=(0,s.hashify)(w)),l.config.parent=a,l.config.dataLabelStyle=B._configureDataLabelStyle(h),h.category?(z=Math.max(z,B.addMSPieCat(h.category,t+1,l,P,p+P)),(c=l.components.data.length)>(d=h.category.length)&&U(l.components.data.splice(c-1,d))):(c=l.components.data.length)&&U(l.components.data.splice(0,c));return W>j&&U(M.splice(j)),z},a.parsePlotAttributes=function(e){var t,a,o,n,l,i,c,d,u,h,p,g,f,m,v,b,x,y=e,C=this,w=C.config||{},A=C.getFromEnv("chart"),S=A.config,N=C.components.data.length,L=S.dataLabelStyle,D=S.canvasWidth,E=S.canvasHeight,T=(0,s.pluckNumber)(w.originX,S.canvasLeft+.5*D),F=(0,s.pluckNumber)(w.originY,S.canvasTop+.5*E),P=(0,s.pluckNumber)(2*w.pieRadius,Math.min(D,E)),_=function(e,t){var a,o=e&&e.length;return e&&(a="%"===e.charAt(o-1)?(0,s.pluckNumber)(t)*((0,s.pluckNumber)(e.split("%")[0])/100):(0,s.pluckNumber)(e))<t?a:0}(w.innerRadius,P/2),V=C.config.pool||(C.config.pool={}),I=(P-2*_)/(2*w.maxLevel);for(w.innerSize=2*_,y||(y=C),N=y.components.data.length,m=0;m<N;m+=1)C.parsePlotAttributes(y.components.data[m]);(n=(b=y.config).level)&&(i=n*I+_,c=(n-1)*I+_,b.outerRadius=i,b.innerRadius=c,v=y.graphics,u=b.angleStrech,h=b.displayValue,p=!!b.link,d=b.color,f=(g=b.startAngle)+b.angleStrech,x=v.element,V.element&&V.element.length&&(x=v.element=x||V.element.shift()),b.plotItem={chart:A,link:b.link,value:u,color:d,labelText:h,graphics:{element:x},selfRef:y},b.eventArgs={alpha:b.alpha,borderAlpha:b.borderAlpha,link:b.link,label:b.displayValue,showLabel:b.showLabel,toolText:b.toolText,color:b.rawColor,borderColor:b.rawborderColor,borderThickness:b.borderWidth,showPlotBorder:b.showPlotBorder},w.usePattern&&(b.eventArgs.pattern={patternType:b.patternType,patternColor:b.rawColor,patternBgColor:b.patternBgColor===s.TRACKER_FILL?r:b.patternBgColor},delete b.eventArgs.color),b.props={element:{attr:{ringpath:[T,F,i,c,g,f],"stroke-width":b.borderWidth,stroke:b.borderColor,fill:(0,s.toRaphaelColor)(b.color),"stroke-dasharray":b.dashStyle,cursor:p?k:s.BLANKSTRING}}},b.props.element.patternAttr={patternType:b.patternType,patternAngle:b.patternAngle,patternDensity:b.patternDensity,patternSize:b.patternSize,color:b.color,patternAlpha:b.patternAlpha,patternBgColor:b.patternBgColor,alpha:b.alpha,x:T,y:F},h!==r&&h!==s.BLANKSTRING&&(t=(g+f)/2,o=0===c&&b.isSingleTon?0:c+(i-c)/2,(a=b._textAttrs)||(a=b._textAttrs={}),l=b.dataLabelStyle,a.text=h,a.fill=l.color||"000000",a.direction=S.textDirection,a.cursor=p?k:s.BLANKSTRING,a.x=T+o*Math.cos(t),a.y=F+o*Math.sin(t),a["line-height"]=L.lineHeight,a["text-bound"]=[l.backgroundColor,l.borderColor,L.borderThickness,L.borderPadding,L.borderRadius,L.borderDash]))},a.parseLabelAttributes=function(e){var t,a,o,n=this,l=e,i=n.components.data.length;for(!l&&(l=n),i=l.components.data.length,a=0;a<i;a+=1)n.parseLabelAttributes(l.components.data[a]);t=(o=l.config).displayValue,o.level&&t!==r&&t!==s.BLANKSTRING&&(o.props.label={attr:o._textAttrs})},a.draw=function(e){var t,a,o,r,n=this,l=e,i=n.config,s=n.getFromEnv("chart"),c=n.components,d=c.data.length,h=s.getChildContainer("datalabelsGroup"),p=i.events||{},g=n.config.pool||(n.config.pool={}),f=c.removeDataArr;for(f&&f.length&&n.removeElement(),l||(l=n,h.css(s.config.dataLabelStyle)),d=l.components.data.length,t=0;t<d;t+=1)n.draw(l.components.data[t]);(o=l.config).level?(r=(a=l.graphics).element,g.element&&g.element.length&&(r=a.element=r||g.element.shift()),(r=a.element=n.getFromEnv("animationManager").setAnimation({el:a.element||"ringpath",attr:o.props.element.attr,container:s.getChildContainer("plotGroup"),component:n,state:"appearing",label:"ringpath"})).addPattern(o.props.element.patternAttr,i.usePattern),r.shadow(i.showShadow&&!!o.shadow).data("plotItem",o.plotItem).data(y,o.eventArgs).on("fc-mouseover",(function(e){var t=this,a=p.mouseOver,r=t.plotItem||t.data("plotItem"),n=r.chart.getDatasets()[0];s.plotEventHandler(t,e,b),a&&a.call(t),n.fireEvent("datasetrollover",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-mouseout",(function(e){var t=this,a=p.mouseOut,r=t.plotItem||t.data("plotItem"),n=r.chart,l=n.getDatasets()[0];n.plotEventHandler(t,e,x),a&&a.call(t),l.fireEvent("datasetrollout",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-click",(function(e){s.plotEventHandler(this,e)})),n.getFromEnv("toolTipController").enableToolTip(r,o.toolText),t||i._drawn||(i._drawn=!0,h.show(),n.addJob("labelJob",n.drawLabel.bind(n),u.priorityList.label))):(i._drawn&&n.drawLabel(),n.removeChild(n.config.pool,!0))},a.drawLabel=function(e){var t,a,o,n,l,i,c,d,u,h,p=this,g=p.config,f=e,m=p.getFromEnv("chart"),v=p.getFromEnv("smartLabel"),k=p.getFromEnv("animationManager"),C=m.config,w=p.components.data.length,A=C.tooltip||{},S=A&&!1!==A.enabled,N=(g||{}).events||{},L=g.pool||(g.pool={}),D=m.getChildContainer("datalabelsGroup");for(D.show(),!f&&(f=p),w=f.components.data.length,c=0;c<w;c+=1)p.drawLabel(f.components.data[c]);l=(u=f.config).displayValue,u.level?(i=(d=f.graphics).label,o=u.angleStrech,l!==r&&l!==s.BLANKSTRING&&(!g.skipOverlapLabels||g.skipOverlapLabels&&o>.1)?(h=d.label,L.label&&L.label.length&&(h=d.label=h||L.label.shift()),n=u.props.label.attr,g.autoRotateLabels?(a=180*(u.startAngle+o/2)/Math.PI,Math.abs(a)>90&&Math.abs(a)<180&&(a=-(180-a)),360===Math.floor(180*o/Math.PI)&&(a=0),v.useEllipsesOnOverflow(g.useEllipsesWhenOverflow),v.setStyle(C.dataLabelStyle),t=v.getSmartText(l,u.outerRadius-u.innerRadius-10,v._lineHeight),n.text=t.text,n.transform=(0,s.getSuggestiveRotation)(parseFloat(a),n.x,n.y)):n.transform=(0,s.getSuggestiveRotation)(0,n.x,n.y),(h=d.label=k.setAnimation({el:i||"text",attr:n,container:D,component:p,state:"appearing",label:"text"})).outlineText(g.showTextOutline,n.fill),i||h.on("fc-click",(function(e){m.plotEventHandler(this,e)})).on("fc-mouseout",(function(e){var t=N.mouseOut;m.plotEventHandler(this,e,x),t&&t.call(this)})).on("fc-mouseover",(function(e){var t=N.mouseOver;m.plotEventHandler(this,e,b),t&&t.call(this)})),h.data("plotItem",u.plotItem).data(y,u.eventArgs),S&&p.getFromEnv("toolTipController").enableToolTip(h,undefined)):(i&&k.setAnimation({el:i,component:p,label:"text"}),delete d.label)):p.removeChild(p.config.pool,!0)},t}(l["default"]),A=w;t["default"]=A},1453:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(1454),r={"initial.dataset.radar":function(){return{"anchor.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]},"anchor.updating":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"anchor.disappearing":function(){return[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}]},"line.appearing":function(e){var t,a=e.component,r=a.getFromEnv("xAxis"),n=a.getFromEnv("yAxis"),l=r.getTicksLen(),i=a.getFromEnv("chartConfig"),s=e.attr,c=i.canvasTop+i.canvasHeight/2,d=[];for(t=0;t<l;t++)d.push(t?"L":"M"),d.push((0,o.getCoordinates)({radius:c,theta:0},r).x),d.push(n.getPixel(0));return d.push("Z"),[{initialAttr:{opacity:0,path:d},finalAttr:{opacity:1,path:s.path},startEnd:{start:0,end:.5},slot:"middle"}]},"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"*":null}}};t["default"]=r},1452:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(617)),l=o(a(1453)),i=a(282),s=a(1454),c=a(274),d=c.regex.dropHash;(0,i.addDep)({name:"radarAnimation",type:"animationRule",extension:l["default"]});var u=function(e){function t(){var t;return(t=e.call(this)||this).getPathArr=function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]},t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"radar"},a.createCoordinates=function(){var e,t,a,o,r,n,l,i,c=this,d=c.getFromEnv("chartConfig"),u=c.components.data.length,h=c.components.data;for(a=0;a<u;a++)i=(t=(e=h[a])&&e.config).setValue,undefined!==e&&(l=c.getFromEnv("yAxis").getPixel(i+0),r=(n=(0,s.getCoordinates)({radius:d.canvasTop+d.canvasHeight/2-l,theta:a},c.getFromEnv("xAxis"))).y,o=n.x,t._Px=o,t._Py=r,t._Pbx=o,t._Pby=r)},a.getLinePath=function(e,t,a){var o,r,n,l,i,c=this,d=c.getFromEnv("chartConfig"),u={},h=u.lastValidValue||!1,p=u.temp||[],g=u.temp2||[],f=u.pathArr||[],m=u.pointsJoined||0,v=t&&t.begin||0,b=t&&t.end||e.length,x=d.viewPortConfig.step||1,k=c.getFromEnv("yAxis"),y=c.getFromEnv("xAxis"),C=k.getPixel(0),w=c.removeDataLen||0,A=[];for(A=A.concat(e),o=v;o<b+w;o+=x)(i=A[o])&&(null===(r=i.config).setValue||r&&!0===r.isSkipped?(n=(0,s.getCoordinates)({theta:y.getLimit().min},y).x,l=k.getPixel(k.config.axisRange.min)):(n=r._Px,l=r._Py),"zero"===a?l=C:"base"===a&&(l=r._Pby),h?(p.length&&(f=f.concat(p),p=[],m++),f.push(["L",n,l])):(p.push(["M",n,l]),m=0,h=!0));return"Z"!==f[f.length-1]&&m>0&&f.push("Z"),{pathArr:f,path2Arr:[],lastValidValue:h,pointsJoined:m,temp:p,temp2:g,getPathArr:c.getPathArr}},a.configureAttributes=function(t){if(!t)return!1;this.trimData(t),this.JSONData=t;var a=this,o=a.config,r=a.getFromEnv("chart").getFromEnv("dataSource").chart,n=a.JSONData,l=a.getFromEnv("color-manager").getPlotColor(a.index);e.prototype.configureAttributes.call(this,t),o.defaultPadding={left:0,right:0},o.plotfillcolor=(0,c.pluck)(n.color,r.plotfillcolor,l),o.plotbordercolor=(0,c.pluck)(n.plotbordercolor,r.plotbordercolor,r.areabordercolor,l).split(",")[0],o.plotborderColorObject={color:o.plotbordercolor,alpha:o.plotborderalpha,angle:o.plotfillangle},o.fillColor={color:o.plotfillcolor+(o.plotgradientcolor?","+o.plotgradientcolor:c.BLANKSTRING),alpha:o.plotfillalpha,angle:o.plotfillangle},o.legendSymbolColor=o.plotfillcolor},a._getHoveredPlot=function(e,t){var a,o,r,n,l=this,i=l.getFromEnv("xAxis"),c=l.components.data,d=c.length,u=l.config,h=360/d;for(o=Math.floor(Math.max((0,s.getPlotFromPixel)({x:e-u.maxRadius,y:t},i)/h-1,0)),n=Math.floor(Math.max((0,s.getPlotFromPixel)({x:e+u.maxRadius,y:t},i)/h,d-1));n>=o&&(!(a=c[n])||!(r=l.isWithinShape(a,n,e,t)));n--);return r},a._contextChanged=function(){this.config.context||(this.config.context={});var t,a,o=this.config.context,r=o.axisCenterX;return t=!((a=this.getFromEnv("xAxis").config.axisDimention.centerX)===r),o.axisCenterX=a,t||e.prototype._contextChanged.call(this)},a.getPlotInCategoryAt=function(e,t){var a=this.components.data,o=this.getFromEnv("xAxis"),r=this.getState("visible"),n=Math.round((0,s.getPlotFromPixel)({x:e,y:t},o)),l=a.find((function(e,t,a){var r,l,i,c,d,u;return 0===t?(d=a[t+1],u=a[a.length-1]):t===a.length-1?(d=a[0],u=a[a.length-2]):(d=a[t+1],u=a[t-1]),r=(0,s.getPlotFromPixel)({x:e.config._Px,y:e.config._Py},o),l=t===a.length-1?360:(0,s.getPlotFromPixel)({x:d.config._Px,y:d.config._Py},o),i=(0,s.getPlotFromPixel)({x:u.config._Px,y:u.config._Py},o),n<=0+(c=(l-r)/2)?n>=0&&n<=0+c:n>360-c?n>=360-c&&n<=360:n>=i+c&&n<=l-c})),i=this._getHoveredPlot(e,t);return r&&i?i:!(!r||!l)&&{pointIndex:l._index,hovered:!1,pointObj:l}},a._addLegend=function(){var e,t,a,o=this,r=o.config,n=o.getFromEnv("chart-attrib"),l=o.getFromEnv("legend"),i=r.legendSymbolColor,s=(0,c.pluckNumber)(n.use3dlighting,n.useplotgradientcolor,1);e=(0,c.getLightColor)(i,60).replace(d,c.HASHSTRING),t=s?{FCcolor:{color:i+","+i+","+(0,c.getLightColor)(i,40)+","+i+","+i,ratio:"0,70,30",angle:270,alpha:"100,100,100,100,100"}}:{FCcolor:{color:i,angle:0,ratio:"0",alpha:"100"}},r.includeinlegend?((a=l.getItem(o.config.legendItemId))||(o.config.legendItemId=l.createItem(o),a=l.getItem(o.config.legendItemId),o.addExtEventListener("fc-click",(function(){a.itemClickFn()}),a)),a.configure({enabled:r.includeInLegend,type:o.type,label:(0,c.getFirstValue)(o.JSONData.seriesname),legendIconAlpha:(0,c.pluckNumber)(o.JSONData.legendiconalpha),usePattern:r.usePattern,patternAttr:{patternType:r.patternType,patternAngle:r.patternAngle,patternDensity:r.patternDensity,patternSize:r.patternSize,color:r.plotColor,patternAlpha:r.patternAlpha,patternBgColor:r.patternBgColor,alpha:r.plotfillalpha}}),a.setStateCosmetics("default",{symbol:{fill:(0,c.toRaphaelColor)(t),bgAlpha:(0,c.pluckNumber)(o.JSONData.legendiconbgalpha,o.JSONData.legendiconalpha,n.legendiconbgalpha,n.legendiconalpha,r.plotfillalpha),borderAlpha:(0,c.pluckNumber)(o.JSONData.legendiconborderalpha,o.JSONData.legendiconalpha,n.legendiconborderalpha,n.legendiconalpha,"100"),rawFillColor:i,stroke:(0,c.toRaphaelColor)(e)}}),o.getState("visible")?a.removeLegendState("hidden"):a.setLegendState("hidden")):o.config.legendItemId&&l.disposeItem(o.config.legendItemId)},a.getOldPath=function(e,t){var a,o=e,r=t.x,n=t.y,l=this.config&&this.config.prevLim,i=l.x,s=l.y,d=0,u=o.pathArr.length,h=function(e){var t=e;return(t=((t=(t=(t-i.minPixel.x)/(i.maxPixel.x-i.minPixel.x))*(i.max-i.min)+i.min)-r.min)/(r.max-r.min))*(r.maxPixel.x-r.minPixel.x)+r.minPixel.x+1},p=function(e){return e===s.base?n.base:function(e){var t=e;return(t<s.base&&t>n.base||t>s.base&&t<n.base)&&(t=n.base),t-1}(e)};if(s.min===n.min&&i.min===r.min&&s.max===n.max&&i.max===r.max)return o;if(o=(0,c.extend2)({},o),!l)return[];for(o.pathArr=o.pathArr.slice(0),o.path2Arr=o.path2Arr.slice(0),d=u;d--;)(a=o.pathArr[d].slice(0))[1]&&a.join&&(a[1]=h(a[1]),a[2]=p(a[2]),o.pathArr[d]=a);for(d=o.path2Arr.length;d--;)(a=o.path2Arr[d].slice(0))[1]&&a.join&&(a[1]=h(a[1]),a[2]=p(a[2]),o.path2Arr[d]=a);return o},a._setConfigure=function(){var e,t,a,o,r=this,n=r.config,l=r.config.JSONData.data||[],i=r.getFromEnv("xAxis").getTicksLen();for(n.imageCount=0,(a=r.components.data)||(a=r.components.data=[]),n.maxRadius=-Infinity,o=0;o<i;o++)t=a[o],e=l&&l[o]||{},t||(t=a[o]={}),t.config||(a[o].config={}),t.graphics||(t.graphics={}),r._plotConfigure(o,e)},t}(n["default"]);t["default"]=u},1436:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"*.dataset.sankey":function(){var e=this.getClip("canvas"),t=this.getClip("init");return{"linkGroup.appearing":function(){return[{initialAttr:{"clip-rect":t},finalAttr:{"clip-rect":e},slot:"plot"}]},"nodeGroup.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},"nodeLabelGroup.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1429:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),n=o(a(288)),l=a(290),i=o(a(1430)),s=o(a(1432)),c=a(1435),d=a(282),u=o(a(1436));function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var g="start",f="inside",m="end",v="",b="horizontal";(0,d.addDep)({name:"sankeyLinkAnimation",type:"animationRule",extension:u["default"]});var x=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("node",i["default"]),t.registerFactory("link",s["default"],["node"]),t}(0,n["default"])(t,e),t.getName=function(){return"sankey"};var a=t.prototype;return a.getName=function(){return"sankey"},a.getType=function(){return"dataset"},a.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},a._addLegend=function(){var e,t,a,o,r=this,n=r.config,l=r.getChildren("nodes"),i=r.getFromEnv("legend"),s=n.legendItemMap=n.legendItemMap||{},c=new Set;Object.keys(s).forEach((function(e){return c.add(s[e])})),l.forEach((function(n){o=s[n.getId()],(a=i.getItem(o))?c["delete"](o):(o=i.createItem(r),a=i.getItem(o),s[n.getId()]=o),a.configure({enabled:!0,label:n.config.label}),n.setData({legendItemId:o}),t=n.config,e=t.style,a.setStateCosmetics("default",{symbol:{fill:e.node.normal.fill,rawFillColor:t.rawCosmetics.fill,stroke:e.node.normal.stroke,cursor:"default"},text:{cursor:"default"}})})),c.forEach((function(e){i.disposeItem(e)}))},a.allocatePosition=function(){var e,t=this,a=t.getFromEnv("chartConfig"),o=t.getFromEnv("sankey-graph"),r=t.getFromEnv("orientation"),n=a.canvasLeft,l=a.canvasTop,i=a.canvasHeight,s=a.canvasWidth,d=0,u=0,h=0,p=t.config,g=p.nodeWidth,f=p.nodeSpacing,m=p.nodeRelaxation,v=p.style.node.label;e={left:n,top:l,right:n+s,bottom:l+i},t.config.nodeLabelCosmetics={"font-size":this.computeFontSize(v.fontSize),"font-family":v.fontFamily,"font-weight":v.fontWeight,"font-style":v.fontStyle},r===b?(t._accomodateBoundaryHLabels(e),(0,c.createNodeDimensions)(o,{width:[e.left,e.right],height:[e.top,e.bottom],nodeGutter:f,orientation:r,nodeRelaxation:m}),o.nodes.forEach((function(e){h=Math.max(h,e.props.depth)})),d=t.config.columnGap=Math.max((e.right-e.left-g*h)/Math.max(h,1),0),t._accomodateInternalHLabels(d)):(t._accomodateBoundaryVLabels(e),(0,c.createNodeDimensions)(o,{width:[e.left,e.right],height:[e.top,e.bottom],nodeGutter:f,orientation:r,nodeRelaxation:m}),o.nodes.forEach((function(e){h=Math.max(h,e.props.depth)})),u=t.config.columnGap=Math.max((e.bottom-e.top-g*h)/Math.max(h,1),0),t._accomodateInternalVLabels(u,e.bottom-e.top))},a._accomodateBoundaryHLabels=function(e){var t,a,o,r,n,l,i,s=this,c=s.config.labelSepChar,d=s.getChildren("nodes"),u=s.getFromEnv("smartLabel"),h=e.right-e.left,p=0,b=0;return d.forEach((function(e){var d=e.config,x=d.showValue,k=d.showLabel,y=d.label,C=d.props,w=d.labelPosition,A=d.value,S=d.rotateLabel,N=d.labelPadding,L=C.sourceLinks,D=C.targetLinks;if(u.setStyle(s.config.nodeLabelCosmetics),a=u.getSize(x?A:v),i=u.getSize(x?c+" "+A:v),n=Math.max(0,h-i.width),L.length&&!D.length){if(w===m)return;l=10*(r=w===g?.1:.2),t=u.getSmartText(k?y:v,r*n,u._lineHeight),S?(o=w===f?0:Math.max(t.height/l,a.height/l),p=Math.max(p,o+(o&&w===g?N:0))):(o=(t.width+(t.width?i.width:a.width))/l,p=Math.max(p,o+(o&&w===g?N:0))),e.setData({formattedLabel:t})}else if(!L.length&&D.length){if(w===g)return;l=10*(r=w===m?.1:.2),t=u.getSmartText(k?y:v,r*n,u._lineHeight),S?(o=w===f?0:Math.max(t.height/l,a.height/l),b=Math.max(b,o+(o&&w===m?N:0))):(o=(t.width+(t.width?i.width:a.width))/l,b=Math.max(b,o+(o&&w===m?N:0))),e.setData({formattedLabel:t})}})),e.left+=p+(p?5:0),e.right-=b+(b?5:0),e},a._accomodateInternalHLabels=function(e){var t,a,o,r=this,n=r.getChildren("nodes"),l=r.getFromEnv("smartLabel"),i=r.config.labelSepChar;n.forEach((function(n){var s=n.config,c=s.showValue,d=s.showLabel,u=s.label,h=s.value,p=s.props,f=s.rotateLabel,b=s.labelPosition,x=s.labelPadding,k=p.sourceLinks,y=p.targetLinks,C=Math.max(0,p.y1-p.y0);if(u=d?u:v,h=c?h:v,l.setStyle(r.config.nodeLabelCosmetics),a=l.getSize(c?i+" "+h:v),t=Math.max(0,.75*e-x-a.width),f)return o=l.getSmartText(u,C-a.width,l._lineHeight),void n.setData({formattedLabel:o});(k.length&&!y.length&&b===m||!k.length&&y.length&&b===g||k.length&&y.length||!k.length&&!y.length)&&(o=l.getSmartText(u,t,l._lineHeight),n.setData({formattedLabel:o}))}))},a._accomodateBoundaryVLabels=function(e){var t,a,o,r,n,l,i,s=this,c=s.getChildren("nodes"),d=s.getFromEnv("smartLabel"),u=s.config.labelSepChar,h=e.bottom-e.top,p=0,b=0;return c.forEach((function(e){var c=e.config,x=c.props,k=c.labelPosition,y=c.rotateLabel,C=c.showValue,w=c.showLabel,A=c.value,S=c.label,N=c.labelPadding,L=x.sourceLinks,D=x.targetLinks;if(A=C?A:v,S=w?S:v,d.setStyle(s.config.nodeLabelCosmetics),t=d.getSize(A),i=d.getSize(C?u+" "+A:v),n=Math.max(0,h-i.width),L.length&&!D.length){if(k===m)return;l=10*(o=k===g?.1:.2),a=d.getSmartText(S,o*n,d._lineHeight),y?(r=(a.width+(a.width?i.width:t.width))/l,p=Math.max(p,r+(r&&k===g?N:0))):(r=k===f?0:Math.max(a.height/l,t.height/l),p=Math.max(p,r+(r&&k===g?N:0))),e.setData({formattedLabel:a})}else if(!L.length&&D.length){if(k===g)return;l=10*(o=k===m?.1:.2),a=d.getSmartText(S,o*n,d._lineHeight),y?(r=(a.width+(a.width?i.width:t.width))/l,b=Math.max(b,r+(r&&k===m?N:0))):(r=k===f?0:Math.max(a.height/l,t.height/l),b=Math.max(b,r+(r&&k===m?N:0))),e.setData({formattedLabel:a})}})),e.top+=p+(p?5:0),e.bottom-=b+(b?5:0),e},a._accomodateInternalVLabels=function(e){var t,a,o,r,n=this,l=n.getChildren("nodes"),i=n.getFromEnv("smartLabel"),s=n.config.labelSepChar;l.forEach((function(l){var c=l.config,d=c.showValue,u=c.props,h=c.label,p=c.value,f=c.showLabel,b=c.rotateLabel,x=c.labelPosition,k=c.labelPadding,y=u.sourceLinks,C=u.targetLinks;if(i.setStyle(n.config.nodeLabelCosmetics),h=f?h:v,p=d?p:v,r=i.getSize(d?s+" "+p:v),t=Math.max(0,.75*e-k-r.width),o=u.x1-u.x0,!b)return a=i.getSmartText(h,o-r.width,i._lineHeight),void l.setData({formattedLabel:a});(y.length&&!C.length&&x===m||!y.length&&C.length&&x===g||y.length&&C.length||!y.length&&!C.length)&&(a=i.getSmartText(h,t,i._lineHeight),l.setData({formattedLabel:a}))}))},a.attachListeners=function(){var e=this,t=e.getChildren("nodes"),a=e.getChildren("links");t.forEach((function(t){t.onFocusCallback=t.onFocusCallback||e.interactionCallback(t,"focus"),t.onFocusOutCallback=t.onFocusOutCallback||e.interactionCallback(t,"normal"),t.onClickCallback=t.onClickCallback||e.interactionCallback(t,"click"),t.dragStartCallback=t.dragStartCallback||e.dragCallback(t,"start"),t.dragMoveCallback=t.dragMoveCallback||e.dragCallback(t,"move"),t.dragEndCallback=t.dragEndCallback||e.dragCallback(t,"end"),t.addEventListener("fc-mouseover",t.onFocusCallback),t.addEventListener("fc-mouseout",t.onFocusOutCallback),t.addEventListener("fc-click",t.onClickCallback),t.addEventListener("fc-dragstart",t.dragStartCallback),t.addEventListener("fc-dragmove",t.dragMoveCallback),t.addEventListener("fc-dragend",t.dragEndCallback)})),a&&a.forEach((function(t){t.onFocusCallback=t.onFocusCallback||e.interactionCallback(t,"focus"),t.onFocusOutCallback=t.onFocusOutCallback||e.interactionCallback(t,"normal"),t.onClickCallback=t.onClickCallback||e.interactionCallback(t,"click"),t.addEventListener("fc-mouseover",t.onFocusCallback),t.addEventListener("fc-mouseout",t.onFocusOutCallback),t.addEventListener("fc-click",t.onClickCallback)}))},a.interactionCallback=function(e,t){var a=this,o=a.config,r=a.getLinkedParent();return"node"===e.getType()?function(){var n=a.getChildren("nodes"),l=a.getChildren("links")||[],i=Object.assign({},e.config.eventArgs),s=e.getId();if(!e.config.isDragged)if("click"===t)r.fireChartInstanceEvent("dataPlotClick",i);else if("normal"===t){if(r.fireChartInstanceEvent("dataPlotRollOut",i),!o.highlightEffect)return;n.forEach((function(e){return e.setData({mode:"normal"})})),l.forEach((function(e){return e.setData({mode:"normal"})}))}else{var c=new Set,d=e.config.props,u=d.sourceLinks,h=d.targetLinks;if(r.fireChartInstanceEvent("dataPlotRollOver",i),!o.highlightEffect)return;c.add(s),u.forEach((function(e){c.add(e.to)})),h.forEach((function(e){c.add(e.from)})),n.forEach((function(e){c.has(e.getId())?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})})),l.forEach((function(e){var t=e.config.props,a=t.source,o=t.target;s===a.id||s===o.id?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})}))}}:function(){var n=a.getChildren("nodes"),l=a.getChildren("links")||[],i=Object.assign({},e.config.eventArgs);if(!e.config.isDragged)if("click"===t)r.fireChartInstanceEvent("linkClick",i);else if("normal"===t){if(r.fireChartInstanceEvent("linkRollOut",i),!o.highlightEffect)return;n.forEach((function(e){return e.setData({mode:"normal"})})),l.forEach((function(e){return e.setData({mode:"normal"})}))}else{var s=new Set,c=e.config.props,d=c.source,u=c.target;if(r.fireChartInstanceEvent("linkRollOver",i),!o.highlightEffect)return;s.add(d.id),s.add(u.id),n.forEach((function(e){s.has(e.getId())?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})})),l.forEach((function(e){return e.setData({mode:"focusOut"})})),e.setData({mode:"focus"})}}},a.dragCallback=function(e,t){var a=this,o=a.config;return"start"===t?function(){var t,r,n=e.config.props;o.enableDrag&&(e.onFocusOutCallback(),e.setData({isDragged:!0,curPos:{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1}}),n.sourceLinks.forEach((function(e){t=a.getChild(e.props.index,"links"),r=t.config.props,t.setData({isDragged:!0,curPos:{x0:r.x0,x1:r.x1,y0:r.y0,y1:r.y1}})})),n.targetLinks.forEach((function(e){t=a.getChild(e.props.index,"links"),r=t.config.props,t.setData({isDragged:!0,curPos:{x0:r.x0,x1:r.x1,y0:r.y0,y1:r.y1}})})))}:"end"===t?function(){var t=e.config.props;o.enableDrag&&(e.setData({isDragged:!1}),t.sourceLinks.forEach((function(e){a.getChild(e.props.index,"links").setData({isDragged:!1})})),t.targetLinks.forEach((function(e){a.getChild(e.props.index,"links").setData({isDragged:!1})})))}:function(t){var r,n,l,i=t.originalEvent.data,s=i[0],c=i[1],d=a.getFromEnv("orientation"),u=a.getFromEnv("chartConfig"),h=u.canvasLeft,p=u.canvasRight,g=u.canvasTop,f=u.canvasBottom,m=e.config,v=m.curPos,x=m.props;if(o.enableDrag){if(d===b){if(v.y0+c<g||v.y1+c>f)return;x.y0=v.y0+c,x.y1=v.y1+c,x.sourceLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),n=r.config.props,l=r.config.curPos,n.y0=l.y0+c,r.setData({})})),x.targetLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),n=r.config.props,l=r.config.curPos,n.y1=l.y1+c,r.setData({})}))}else{if(v.x0+s<h||v.x1+s>p)return;x.x0=v.x0+s,x.x1=v.x1+s,x.sourceLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),n=r.config.props,l=r.config.curPos,n.x0=l.x0+s,r.setData({})})),x.targetLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),n=r.config.props,l=r.config.curPos,n.x1=l.x1+s,r.setData({})}))}e.setData({})}}},a.getClip=function(e){var t=this.getFromEnv("orientation"),a=[],o=this.getFromEnv("chartConfig"),r=o.canvasTop,n=o.canvasLeft,l=o.canvasWidth,i=o.canvasHeight;return t===b?(a.push(n),a.push(r),"init"===e?a.push(0):a.push(l),a.push(i)):(a.push(n),a.push(r),a.push(l),"init"===e?a.push(0):a.push(i)),a},a.draw=function(){var e=this;e.addGraphicalElement({el:"group",attr:{name:"sankey-link-group","clip-rect":e.getClip("canvas")},id:"sankey-link-group",component:e,container:{id:"plotGroup",isParent:!0},label:"linkGroup"}),e.addGraphicalElement({el:"group",attr:{name:"sankey-node-group"},id:"sankey-node-group",component:e,container:{id:"plotGroup",isParent:!0},label:"nodeGroup"}),e.addGraphicalElement({el:"group",attr:p({name:"sankey-node-label-group"},e.config.nodeLabelCosmetics),id:"sankey-node-label-group",component:e,container:{id:"datalabelsGroup",isParent:!0},label:"nodeLabelGroup"})},t}(l.SmartRenderer);t["default"]=x},1433:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),n=o(a(288)),l=a(290),i=a(1434),s=a(274);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var d="custom",u="uniform",h=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},p=function(e,t,a){var o,r,n,l,i,c,d,u,p=s.isIpad?"■":"◼",g=t.getLinkedParent(),f=t.getFromEnv("legend"),m=a&&a.drawcustomlegendicon,v=[],b=[],x=(null==a?void 0:a.nonce)||"",k=m&&f&&f.config&&f.config.isActive?f.getItem(g.config.legendItemMap[t.config.from]):null,y=k&&k.getGraphicalElement(),C=m&&f&&f.config&&f.config.isActive?f.getItem(g.config.legendItemMap[t.config.to]):null,w=C&&C.getGraphicalElement();if(c="",k&&y){if(o=(i=y&&y.legendItemSymbol)&&i.attrs.path.split(/(?=[LMCA])/),l=i&&i.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)b.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),v[r]=o[r].split(",");if(v&&v.length)for(r=0;r<v.length;r++){if(v[r].length)for(n=0;n<v[r].length;n++)v[r][n]=Number(v[r][n]),"A"!==b[r]?0===n?v[r][n]=v[r][n]-l.x:1===n&&(v[r][n]=v[r][n]-l.y):"A"===b[r]&&(5===n?v[r][n]=v[r][n]-l.x:6===n&&(v[r][n]=v[r][n]-l.y));c+=b[r]+v[r].toString()}c+="Z"}d={linkDataValue:e.value,fromPlotIdentifier:k?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+c+" fill = "+y.legendItemSymbol.node.getAttribute("fill")+" stroke = "+y.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+y.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+y.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+y.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+y.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,s.parseColor)(e.sourceFill)+";'>"+p+" </span>",toPlotIdentifier:C?"<svg height= "+l.height+" width = "+l.width+" overflow= 'visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+c+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,s.parseColor)(e.targetFill)+";'>"+p+" </span>",flowDirection:"→"},u=(0,s.parseTooltext)(e.toolText,[148,149,142,150,151,152,153],e,d),e.setLinkTooltext=u;var A=h("tooltip"),S=h("tooltip-source-color"),N=h("tooltip-target-color");return e.toolText?'\n <style nonce="'+x+'">\n .'+A+' {\n padding: 2px;\n vertical-align: middle;\n }\n </style>\n <div class="'+A+'">\n '+e.setLinkTooltext+"\n </div>":'\n <style nonce="'+x+'">\n .'+A+" {\n padding: 2px;\n vertical-align: middle;\n }\n\n ."+S+" {\n color: "+(0,s.parseColor)(e.sourceFill)+";\n }\n\n ."+N+" {\n color: "+(0,s.parseColor)(e.targetFill)+';\n }\n </style>\n <div class="'+A+'">\n <span class="'+S+'">'+p+" </span>"+e.props.source.label+'\n →\n <span class="'+N+'">'+p+" </span>"+e.props.target.label+"\n \n "+e.value+"\n </div>"},g=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"link"},a.getName=function(){return"sankey-link"},a.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},a.allocatePosition=function(){var e,t,a,o=this,n=o.config,l=n.mode,s=n.style,h=n.props,p=n.linkPadding,g=n.linkType,f=n.curvature,m=o.getFromEnv("chartConfig").orientation,v=s.link[l],b={x:h.x0,y:h.y0,width:h.linkWidth},x=h.source,k=h.target,y=x.props.layer,C=k.props.layer,w={x:h.x1,y:h.y1,width:h.linkWidth>1?h.linkWidth:2},A=o.getLinkedParent().config.columnGap;t=Math.max("vertical"===m?x.props.x1-x.props.x0:x.props.y1-x.props.y0,0),a=Math.max("vertical"===m?x.props.x1-x.props.x0:x.props.y1-x.props.y0,0),g!==d&&g!==u&&(g=h.linkWidth>A*Math.abs(C-y)/3||b.width>.7*t||w.width>.7*a?d:u),e=(0,i.sankeyRibbon)(b,w,{orientation:m,padding:p,curvature:f,linkType:g}),n.linkAttr=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({path:e,"stroke-width":g===u?h.linkWidth>1?h.linkWidth:2:"none"},v),g===d&&(n.linkAttr.fill=n.linkAttr.stroke,n.linkAttr.stroke="none")},a.draw=function(){var e=this,t=e.config,a=e.getFromEnv("chartConfig"),o=t.id,r=t.linkAttr;e.addGraphicalElement({el:"path",attr:r,container:{id:"sankey-link-group",label:"linkGroup",isParent:!0},tooltext:p(e.config,e,a),component:e,id:o,label:"sankey-link"})},t}(l.SmartRenderer),f=g;t["default"]=f},1431:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),n=o(a(288)),l=a(290),i=a(274);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d="start",u="inside",h="middle",p="t0,0",g=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},f=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"node"},a.getName=function(){return"sankey-node"},a.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;Object.assign(t,e)},a.allocatePosition=function(){var e,t,a,o=this,r=o.config,n=r.props,l=r.style,s=r.mode,g=r.labelPosition,f=r.showLabel,m=r.formattedLabel,v=r.showValue,b=r.value,x=r.rotateLabel,k=r.labelPadding,y=l.node[s],C=l.label[s],w=o.getFromEnv("orientation"),A=o.getFromEnv("smartLabel"),S=o.getLinkedParent().config.labelSepChar,N=m.text+(v?S+" "+b:"");f&&m.text||(N=v?b:"",A.setStyle(l.label.normal),m=A.getSmartText(N)),o.config.nodeAttr=c({x:n.x0,y:n.y0,width:Math.max(0,n.x1-n.x0),height:Math.max(0,n.y1-n.y0)},y),"horizontal"===w?x?(e=g===d?n.x0-k-m.height/2:g===u?Math.abs(n.x0+n.x1)/2:n.x1+k+m.height/2,t=Math.abs(n.y1+n.y0)/2,o.config.labelAttr=c({x:e,y:t,text:N,"text-anchor":h,transform:(0,i.getSuggestiveRotation)(-90,e,t)},C)):(g===d?(e=n.x0-k,a="end"):g===u?(e=Math.abs(n.x0+n.x1)/2,a=h):(e=n.x1+k,a=d),t=Math.abs(n.y1+n.y0)/2,o.config.labelAttr=c({x:e,y:t,text:N,transform:p,"text-anchor":a},C)):x?(g===d?(t=n.y0-k,a=d):g===u?(t=Math.abs(n.y0+n.y1)/2,a=h):(t=n.y1+k,a="end"),e=Math.abs(n.x1+n.x0)/2,o.config.labelAttr=c({x:e,y:t,text:N,"text-anchor":a,transform:(0,i.getSuggestiveRotation)(-90,e,t)},C)):(t=g===d?n.y0-k-m.height/2:g===u?Math.abs(n.y0+n.y1)/2:n.y1+k+m.height/2,a=h,e=(n.x0+n.x1)/2,o.config.labelAttr=c({x:e,y:t,text:N,transform:p,"text-anchor":a},C))},a.draw=function(){var e=this,t=e.getFromEnv("chartConfig"),a=e.config,o=a.id,r=a.labelAttr,n=a.nodeAttr,l=a.textOutline,s=function(e,t,a){var o,r,n,l,s,c,d,u,h,p=i.isIpad?"■":"◼",f=[3,133,134,143,144,145],m=t.getLinkedParent(),v=t.getFromEnv("legend"),b=a&&a.drawcustomlegendicon,x=[],k=[],y=(null==a?void 0:a.nonce)||"",C=b&&v&&v.config&&v.config.isActive?v.getItem(m.config.legendItemMap[t.config.label]):null,w=C&&C.getGraphicalElement();if(d=i.BLANKSTRING,C){if(o=(c=w&&w.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),l=c&&c.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)k.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),x[r]=o[r].split(",");if(x&&x.length)for(r=0;r<x.length;r++){if(x[r].length)for(n=0;n<x[r].length;n++)x[r][n]=Number(x[r][n]),"A"!==k[r]?0===n?x[r][n]=x[r][n]-l.x:1===n&&(x[r][n]=x[r][n]-l.y):"A"===k[r]&&(5===n?x[r][n]=x[r][n]-l.x:6===n&&(x[r][n]=x[r][n]-l.y));d+=k[r]+x[r].toString()}d+="Z"}u={label:e.label,value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:C?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,i.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"},h=(0,i.parseTooltext)(e.toolText,f,u,{value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:C?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,i.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"}),s=(0,i.parseTooltext)(e.plotToolText,f,u,{value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:C?"<svg height= "+l.height+" width = "+l.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,i.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"}),e.setToolText=h,e.setPlotTooltext=e.setToolText?e.setToolText:s;var A=g("tooltip"),S=g("tooltip-color");return e.plotToolText?'\n <style nonce="'+y+'">\n .'+A+" {\n padding: 2px;\n vertical-align: middle;\n }\n\n ."+S+" {\n color: "+(0,i.parseColor)(e.rawCosmetics.fill)+';\n }\n </style>\n <div class="'+A+'">\n <span class="'+S+"\";'>"+p+" </span>\n "+e.setPlotTooltext+"\n </div>":'\n <style nonce="'+y+'">\n .'+A+" {\n padding: 2px;\n vertical-align: middle;\n }\n\n ."+S+" {\n color: "+(0,i.parseColor)(e.rawCosmetics.fill)+';\n }\n </style>\n <div class="'+A+'">\n <span class="'+S+'">'+p+" </span>"+e.label+"\n \n \n "+e.value+"\n </div>"}(e.config,e,t);n.height=n.height>1?n.height:1,e.addGraphicalElement({el:"rect",attr:n,container:{id:"sankey-node-group",label:"nodeGroup",isParent:!0},tooltext:s,component:e,id:o,label:"node-rect"}),r.text&&e.addGraphicalElement({el:"text",attr:r,container:{id:"sankey-node-label-group",label:"nodeLabelGroup",isParent:!0},tooltext:s,component:e,id:o,css:{},outlineText:l,label:"node-label"})},t}(l.SmartRenderer),m=f;t["default"]=m},1434:(e,t)=>{t.__esModule=!0,t.sankeyRibbon=void 0;var a="M",o="C",r="L",n=10,l="horizontal",i="uniform";t.sankeyRibbon=function(e,t,s){var c=s.curvature,d=s.orientation,u=s.padding,h=s.linkType;return(d=d||l)===l?(e.x=Math.floor(e.x+u),t.x=Math.ceil(t.x-u),function(e,t,l,s){void 0===l&&(l=.5),void 0===s&&(s=i);var c,d,u,h,p,g,f,m,v,b,x,k,y=e.width,C=t.width;return Math.abs(e.y-t.y)<1e-4&&(t.y+=1e-4),c=e.x+n,p=(d=e.y)-y/2,g=d+y/2,u=t.x-n,f=(h=t.y)-C/2,m=h+C/2,(u<=c||s!==i)&&(c-=n,u+=n),v=l*Math.abs(u-c)+c,b=d,x=(1-l)*Math.abs(u-c)+c,k=h,s===i?a+e.x+","+d+" "+r+c+","+d+" "+o+v+","+b+" "+x+","+k+" "+u+","+h+" "+r+t.x+","+h:a+c+","+p+" "+r+c+","+p+" "+o+v+","+p+" "+x+","+f+" "+u+","+f+" "+r+u+","+m+" "+o+x+","+m+" "+v+","+g+" "+c+","+g+" "+r+c+","+p}(e,t,c,h)):(e.y=Math.floor(e.y+u),t.y=Math.ceil(t.y-u),function(e,t,l,s){void 0===l&&(l=.5),void 0===s&&(s=i);var c,d,u,h,p,g,f,m,v,b,x,k,y=e.width,C=t.width;return Math.abs(e.x-t.x)<1e-4&&(t.x+=1e-4),p=(c=e.x)-y/2,g=c+y/2,d=e.y+n,f=(u=t.x)-C/2,m=u+C/2,((h=t.y-n)<=d||s!==i)&&(d-=n,h+=n),v=c,b=l*Math.abs(h-d)+d,x=u,k=(1-l)*Math.abs(h-d)+d,s===i?a+c+","+e.y+" "+r+c+","+d+" "+o+v+","+b+" "+x+","+k+" "+u+","+h+" "+r+u+","+t.y:a+p+","+d+" "+r+p+","+d+" "+o+p+","+b+" "+f+","+k+" "+f+","+h+" "+r+m+","+h+" "+o+m+","+k+" "+g+","+b+" "+g+","+d+" "+r+p+","+d}(e,t,c,h))}},1435:(e,t)=>{function a(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a<t;a++)o[a]=e[a];return o}t.__esModule=!0,t.createGraph=function(e){return c(e),p(e),e},t.createNodeLinks=c,t.createNodeValues=p,t.traverseGraph=function(e){var t=e.nodes,o=new Set(t),r=new Set,n=0;for(;o.size;){if(o.forEach((function(e){var t=e;t.props.depth=n;for(var o,l=a(t.props.sourceLinks);!(o=l()).done;){var i=o.value;r.add(i.props.target)}})),++n>t.length)return!1;o=r,r=new Set}return!0},t.createNodeDimensions=function(e,t){for(var o,l=t,s=e.nodes,c=r.apply(null,s.map((function(e){return e.props.depth})))+1,d=new Array(c),u=a(s);!(o=u()).done;){var p=o.value,m=r(0,n(c-1,p.props.depth));p.props.layer=m,d[m]?d[m].push(p):d[m]=[p]}if(function(e,t,o){var l,s,c,d,u,h=e,p=o,g=t,f=p.orientation;l=r.apply(null,h[g-1].map((function(e){return e.nodeWidth}))),u=f===i?(p.height[1]-p.height[0]-l)/(g-1):(p.width[1]-p.width[0]-l)/(g-1),c=p.nodeGutter,s=r.apply(null,h.map((function(e){return e.length}))),f===i?((s-1)*c>=p.width[1]-p.width[0]||(s-1)*c<0)&&(c=p.nodeGutter=10):((s-1)*c>=p.height[1]-p.height[0]||(s-1)*c<0)&&(c=p.nodeGutter=10);d=n.apply(null,h.map((function(e){for(var t,o=0,r=a(e);!(t=r()).done;){o+=t.value.props.value}return f===i?(p.width[1]-p.width[0]-(e.length-1)*c)/o:(p.height[1]-p.height[0]-(e.length-1)*c)/o}))),u&&u!==Infinity&&u!==-Infinity||(u=0);d&&d!==Infinity&&d!==-Infinity||(d=0);for(var m,v=a(h);!(m=v()).done;){var b=m.value;if(f===i)for(var x,k=p.width[0],y=a(b);!(x=y()).done;){for(var C,w=x.value,A=a(w.props.sourceLinks);!(C=A()).done;){var S=C.value;S.props.linkWidth=S.value*d}w.props.y0=p.height[0]+w.props.layer*u,w.props.y1=w.props.y0+w.nodeWidth,w.props.x0=k,w.props.x1=w.props.x0+d*w.props.value,k=w.props.x1+c}else for(var N,L=p.height[0],D=a(b);!(N=D()).done;){for(var E,T=N.value,F=a(T.props.sourceLinks);!(E=F()).done;){var P=E.value;P.props.linkWidth=P.value*d}T.props.x0=p.width[0]+T.props.layer*u,T.props.x1=T.props.x0+T.nodeWidth,T.props.y0=L,T.props.y1=T.props.y0+d*T.props.value,L=T.props.y1+c}}}(d,c,l),l.nodeRelaxation)for(var v=0;v<6;++v){var b=Math.pow(.99,v),x=Math.max(1-b,(v+1)/6);f(d,b,x,l),g(d,b,x,l)}!function(e,t){for(var o,r=e.nodes,n=t&&t.orientation,l=a(r);!(o=l()).done;){var s=o.value;if(n===i){for(var c,d=s.props.x0,u=d,p=a(h(s.props.sourceLinks,n));!(c=p()).done;){var g=c.value;g.props.x0=d+g.props.linkWidth/2,g.props.y0=g.props.source.props.y1,d+=g.props.linkWidth}for(var f,m=a(s.props.targetLinks);!(f=m()).done;){var v=f.value;v.props.x1=u+v.props.linkWidth/2,v.props.y1=v.props.target.props.y0,u+=v.props.linkWidth}}else{for(var b,x=s.props.y0,k=x,y=a(h(s.props.sourceLinks));!(b=y()).done;){var C=b.value;C.props.y0=x+C.props.linkWidth/2,C.props.x0=C.props.source.props.x1,x+=C.props.linkWidth}for(var w,A=a(s.props.targetLinks);!(w=A()).done;){var S=w.value;S.props.y1=k+S.props.linkWidth/2,S.props.x1=S.props.target.props.x0,k+=S.props.linkWidth}}}}(e,l)};var r=Math.max,n=Math.min,l=1e-6,i="vertical";function s(e,t){var a=t;return e.find((function(e){return e.id===a||e.label===a}))}function c(e){var t=e.nodes,a=e.links;t.forEach((function(e){var t=e;t.props.sourceLinks=[],t.props.targetLinks=[]})),a.forEach((function(e,a){var o=e,r=o.props,n=r.source,l=r.target;"object"!=typeof n&&(n=o.props.source=s(t,n)),"object"!=typeof l&&(l=o.props.target=s(t,l)),n.props.sourceLinks.push(o),l.props.targetLinks.push(o),o.props.index=a}))}function d(e,t){return e.props.target.props.y0-t.props.target.props.y0}function u(e,t){return e.props.target.props.x0-t.props.target.props.x0}function h(e,t){var a=e;return t===i?a.sort(u):a.sort(d),a}function p(e){var t=e.nodes;t&&t.forEach((function(e){for(var t,o=0,n=0,l=e,i=a(l.props.sourceLinks);!(t=i()).done;){var s=t.value.value;o+=Number(s)}for(var c,d=a(l.props.targetLinks);!(c=d()).done;){var u=c.value.value;n+=Number(u)}l.props.value=r(o,n)}))}function g(e,t,o,r){for(var n=r&&r.orientation,l=1,s=e.length;l<s;++l){for(var c,d=void 0,u=e[l],h=a(u);!(c=h()).done;){for(var p,g=c.value,f=0,v=0,b=a(g.props.targetLinks);!(p=b()).done;){var k=p.value,y=k.value*(g.props.layer-k.props.source.props.layer);f+=x(k.props.source,g,r)*y,v+=y}v>0&&(n===i?(d=(f/v-g.props.x0)*t,g.props.x0+=d,g.props.x1+=d):(d=(f/v-g.props.y0)*t,g.props.y0+=d,g.props.y1+=d))}m(u,o,r)}}function f(e,t,o,r){for(var n=r&&r.orientation,l=e.length-2;l>=0;--l){for(var s,c=void 0,d=e[l],u=a(d);!(s=u()).done;){for(var h,p=s.value,g=0,f=0,v=a(p.props.sourceLinks);!(h=v()).done;){var b=h.value,x=b.props.target,y=b.value*(x.props.layer-p.props.layer);g+=k(p,x,r)*y,f+=y}f>0&&(n===i?(c=(g/f-p.props.x0)*t,p.props.x0+=c,p.props.x1+=c):(c=(g/f-p.props.y0)*t,p.props.y0+=c,p.props.y1+=c))}m(d,o,r)}}function m(e,t,a){var o=e.length>>1,r=e[o];(a&&a.orientation)===i?(b(e,r.props.x0-a.nodeGutter,o-1,t,a),v(e,r.props.x1+a.nodeGutter,o+1,t,a),b(e,a.width[1],e.length-1,t,a),v(e,a.width[0],0,t,a)):(b(e,r.props.y0-a.nodeGutter,o-1,t,a),v(e,r.props.y1+a.nodeGutter,o+1,t,a),b(e,a.height[1],e.length-1,t,a),v(e,a.height[0],0,t,a))}function v(e,t,a,o,r){for(var n=a,s=t,c=r&&r.orientation;n<e.length;++n){var d=e[n],u=(s-(c===i?d.props.x0:d.props.y0))*o;c===i?(u>l&&(d.props.x0+=u,d.props.x1+=u),s=d.props.x1+r.nodeGutter):(u>l&&(d.props.y0+=u,d.props.y1+=u),s=d.props.y1+r.nodeGutter)}}function b(e,t,a,o,r){for(var n=a,s=t,c=r&&r.orientation;n>=0;--n){var d=e[n],u=((c===i?d.props.x1:d.props.y1)-s)*o;c===i?(u>l&&(d.props.x0-=u,d.props.x1-=u),s=d.props.x0-r.nodeGutter):(u>l&&(d.props.y0-=u,d.props.y1-=u),s=d.props.y0-r.nodeGutter)}}function x(e,t,o){for(var r,n=((o&&o.orientation)===i?e.props.x0:e.props.y0)-(e.props.sourceLinks.length-1)*o.nodeGutter/2,l=a(e.props.sourceLinks);!(r=l()).done;){var s=r.value,c=s.props.target,d=s.props.linkWidth;if(c===t)break;n+=d+o.nodeGutter}for(var u,h=a(t.props.targetLinks);!(u=h()).done;){var p=u.value,g=p.props.source,f=p.props.linkWidth;if(g===e)break;n-=f}return n}function k(e,t,o){for(var r,n=((o&&o.orientation)===i?t.props.x0:t.props.y0)-(t.props.targetLinks.length-1)*o.nodeGutter/2,l=a(t.props.targetLinks);!(r=l()).done;){var s=r.value,c=s.props.source,d=s.props.linkWidth;if(c===e)break;n+=d+o.nodeGutter}for(var u,h=a(e.props.sourceLinks);!(u=h()).done;){var p=u.value,g=p.props.target,f=p.props.linkWidth;if(g===t)break;n-=f}return n}},1371:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.selectScatter":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1370:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=o(a(723)),l=a(274),i=a(282),s=o(a(1371)),c=l.preDefStr.altHGridColorStr,d=l.preDefStr.altHGridAlphaStr;(0,i.addDep)({name:"selectScatterAnimation",type:"animationRule",extension:s["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"selectScatter"},a.configure=function(t){e.prototype.configure.call(this,t);var a=this.getFromEnv("chart"),o=a.config,r=a.getFromEnv("dataSource").chart,n=this.getFromEnv("color-manager"),s=(0,l.pluck)(r.selectbordercolor,n.getColor("canvasBorderColor")),u=(0,l.pluckNumber)(r.selectborderalpha,n.getColor("canvasBorderAlpha"));o.selectBorderColor={FCcolor:{color:s,alpha:u}},o.selectFillColor=(0,l.convertColor)((0,l.pluck)(r.selectfillcolor,n.getColor(c)),(0,l.pluckNumber)(r.selectfillalpha,n.getColor(d))),o.selectionCancelButtonBorderColor=(0,l.convertColor)((0,l.pluck)(r.selectioncancelbuttonbordercolor,s),(0,l.pluckNumber)(r.selectioncancelbuttonborderalpha,u)),o.selectionCancelButtonFillColor=(0,l.convertColor)((0,l.pluck)(r.selectioncancelbuttonfillcolor,"FFFFFF"),(0,l.pluckNumber)(r.selectioncancelbuttonfillalpha,100)),o.connativeZoom=!1,o.zoomType="xy",r.submitdataasxml!==l.ZEROSTRING||r.formdataformat||(r.formdataformat=(0,i.getDepsByType)("transcoder").csv&&"csv"),o.formDataFormat=(0,l.pluck)(r.formdataformat),o.formTarget=(0,l.pluck)(r.formtarget,"_self"),o.formMethod=(0,l.pluck)(r.formmethod,"POST"),o.submitFormAsAjax=(0,l.pluckNumber)(r.submitformusingajax,1)},a.draw=function(){e.prototype.draw.call(this);var t=this,a=t.getFromEnv("chart"),o=a.getFromEnv("chart-container"),r=t.getFromEnv("xAxis"),n=t.getFromEnv("yAxis");(0,l.bindSelectionEvent)(a,{selectionStart:function(e){var t=(0,l.getMouseCoordinate)(o,e.originalEvent,a),i=(0,l.extend2)({selectionLeft:e.selectionLeft,selectionTop:e.selectionTop,selectionWidth:e.selectionWidth,selectionHeight:e.selectionHeight,startXValue:r.getValue(e.selectionLeft,1),startYValue:n.getValue(e.selectionTop,1)},t);e.chart.fireChartInstanceEvent("selectionStart",i)},selectionEnd:function(e){var t=(0,l.getMouseCoordinate)(o,e.originalEvent,a),i=(0,l.extend2)({selectionLeft:e.selectionLeft,selectionTop:e.selectionTop,selectionWidth:e.selectionWidth,selectionHeight:e.selectionHeight,startXValue:r.getValue(e.selectionLeft,1),startYValue:n.getValue(e.selectionTop,1),endXValue:r.getValue(e.selectionLeft+e.selectionWidth,1),endYValue:n.getValue(e.selectionTop+e.selectionHeight,1)},t);e.chart.fireChartInstanceEvent("selectionEnd",i),e.chart.createSelectionBox(e)}})},t}(n["default"]),h=u;t["default"]=h},1381:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.multiLevelPie":function(){var e,t=this.config;return{"ringpath.appearing":function(a){return[{initialAttr:{ringpath:[(e=a.attr.ringpath)[0],e[1],e[2],e[3],t.initialAngle,t.initialAngle]},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1380:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,n=o(a(292)),l=o(a(288)),i=a(274),s=a(282),c=o(a(1381)),d=a(286),u=o(a(390)),h=o(a(1375)),p=(0,s.getDep)("redraphael","plugin"),g="",f="normal",m="FFFFFF",v="none",b="DataPlotRollOver",x="DataPlotRollOut",k="pointer",y="eventArgs",C=/^[0-9]+\%?$|^([0-9]+[.][0-9]+)\%?$/;(0,s.addDep)({name:"sunburstAnimation",type:"animationRule",extension:c["default"]}),(0,u["default"])(p);var w=function(e){function t(){var t;t=e.call(this)||this;var a=(0,n["default"])(t);return a.components={data:[]},a.graphics={},a.elementClickedFn=function(e){var t=a.getFromEnv("chart"),o=this.data(y);t.plotEventHandler(this,e),t.config.allowdrilltonode&&a.chartDrillDown(o.nodeId,o.nodeParentId,o.childrenCount)},a.drillDownToId=r,a.nodeColorMap={},t}(0,l["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiLevelPie"},a.configureAttributes=function(e){if(!e)return!1;this.config.JSONData=e,this.config.inputTree=e.inputTree||[],this.config.isDrilledDown=e.isDrilledDown;var t,a,o,r=this,n=r.getFromEnv("chart"),l=n.config,s=r.config||(r.config={}),c=s.dataLabelOptions||(s.dataLabelOptions={}),d=s.piePlotOptions,u=n.config.style,h=n.getFromEnv("dataSource").chart,p=(0,i.pluckNumber)(-h.centerangle,180),b=(0,i.pluckNumber)(h.totalangle,360),x=function(e,t){var a=e;for(k(r,t);a.graphics.element;)a.graphics.element.attr({fill:"mouseover"===t&&s.hoverFillColor?(0,i.convertColor)(s.hoverFillColor):(a.config||this.data("plotItem")).color,"fill-opacity":"mouseover"===t?s.hoverFillAlpha:(a.config||this.data("plotItem")).alpha}),a=a.config.parent},k=function A(e,t){var a=e.components.data;if(a)for(var o=0;o<a.length;o++)a[o].graphics&&a[o].graphics.element&&a[o].graphics.element.attr({fill:(a[o].config||this.data("plotItem")).color,"fill-opacity":"mouseover"===t?s.unFocussedAlpha:(a[o].config||this.data("plotItem")).alpha});if(e.components&&a)for(var r=0;r<a.length;r++)A(a[r],t)},y=function S(e,t){var a;for(e.graphics.element.attr({fill:"mouseover"===t?s.hoverFillColor:(e.config||this.data("plotItem")).color}),a=0;a<(e.components.data&&e.components.data.length);a++)S.call(this,e.components.data[a],t)},w=function(e){if(s.useHoverColor){var t=this.data("plotItem"),a=t.selfRef;s.highlightParentPieSlices||s.highlightChildPieSlices?!s.highlightParentPieSlices&&s.highlightChildPieSlices?y.call(this,a,e):s.highlightParentPieSlices&&!s.highlightChildPieSlices?x.call(this,a,e):s.highlightParentPieSlices&&s.highlightChildPieSlices&&(x.call(this,a,e),y.call(this,a,e)):a.graphics.element.attr({fill:"mouseover"===e?s.hoverFillColor:(a.config||t).color})}};s.isSingleRootNode=1===s.inputTree.length,s.enableAnimation=(0,i.pluckNumber)(h.animation,h.defaultanimation,1),s.animation=!!s.enableAnimation&&{duration:1e3*(0,i.pluckNumber)(h.animationduration,h.moveduration,1)},s.showShadow=(0,i.pluckNumber)(h.showshadow,0),s.useHoverColor=Boolean((0,i.pluckNumber)(h.usehovercolor,1)),s.showTextOutline=Boolean((0,i.pluckNumber)(h.textoutline,0)),s.hoverFillAlpha=(0,i.pluckNumber)(h.hoverfillalpha,80),s.hoverFillColor=h.hoverfillcolor,s.unFocussedAlpha=(0,i.pluck)(h.unfocussedalpha,"0.35"),t=(t=(0,i.getFirstValue)(h.valuebordercolor,g))?(0,i.convertColor)(t,(0,i.pluckNumber)(h.valueborderalpha,h.valuebgalpha,h.valuealpha,100)):g,!c.style&&(c.style={fontFamily:(0,i.pluck)(h.valuefont,u.fontFamily),fontSize:(0,i.pluckNumber)(this.computeFontSize(h.valuefontsize),(a=u.fontSize,o=10,parseInt(a,o||10)))+"px",color:(0,i.convertColor)((0,i.pluck)(h.valuefontcolor,u.color),(0,i.pluckNumber)(h.valuefontalpha,h.valuealpha,100)),fontWeight:(0,i.pluckNumber)(h.valuefontbold)?"bold":f,fontStyle:(0,i.pluckNumber)(h.valuefontitalic)?"italic":f,backgroundColor:h.valuebgcolor?(0,i.convertColor)(h.valuebgcolor,(0,i.pluckNumber)(h.valuebgalpha,h.valuealpha,100)):g,border:t||h.valuebgcolor?(0,i.pluckNumber)(h.valueborderthickness,1)+"px solid":g,borderPadding:(0,i.pluckNumber)(h.valueborderpadding,2),borderThickness:(0,i.pluckNumber)(h.valueborderthickness,u.borderThickness,1),borderRadius:(0,i.pluckNumber)(h.valueborderradius,u.borderRadius,0),borderColor:t,borderDash:(0,i.pluckNumber)(h.valueborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(h.valueborderdashlen,4),(0,i.pluckNumber)(h.valueborderdashgap,2)):v}),!d&&(d=s.piePlotOptions={}),d.allowPointSelect=!1,s.borderAlpha=(0,i.pluck)(h.plotborderalpha,h.pieborderalpha,100),s.borderColor=(0,i.convertColor)((0,i.pluck)(h.plotbordercolor,h.piebordercolor,m),0!=+h.showplotborder?(0,i.pluck)(h.plotborderalpha,h.pieborderalpha,100):0),s.rawborderColor=(0,i.pluck)(h.plotbordercolor,h.piebordercolor,m),s.showplotborder=(0,i.pluckNumber)(h.showplotborder,1),s.showTooltip=(0,i.pluckNumber)(h.showtooltip,1),s.borderWidth=(0,i.pluckNumber)(h.pieborderthickness,h.plotborderthickness,1),d.startingAngle=0,d.size="100%",s.highlightParentPieSlices=(0,i.pluckNumber)(h.highlightparentpieslices,h.highlightparentpienodes,1),s.highlightChildPieSlices=(0,i.pluckNumber)(h.highlightchildpieslices,h.highlightchildpienodes,0),s.showLabels=(0,i.pluckNumber)(h.showlabels,1),s.showValues=(0,i.pluckNumber)(h.showvalues,0),s.showValuesInTooltip=(0,i.pluckNumber)(l.showvaluesintooltip,h.showvaluesintooltip,h.showvalues,0),s.showPercentValues=(0,i.pluckNumber)(h.showpercentvalues,h.showpercentagevalues,0),s.showPercentInTooltip=(0,i.pluckNumber)(h.showpercentintooltip,0),s.toolTipSepChar=(0,i.pluck)(h.tooltipsepchar,h.hovercapsepchar,i.COMMASPACE),s.labelSepChar=(0,i.parseUnsafeString)((0,i.pluck)(h.labelsepchar,s.toolTipSepChar)),s.tooltext=h.plottooltext,s.alpha=(0,i.pluck)(h.plotfillalpha,h.piefillalpha,100),s.startAngle=(p-b/2)*(Math.PI/180),s.endtAngle=(p+b/2)*(Math.PI/180),s.initialAngle=s.endtAngle,s.originX=(0,i.pluckNumber)(h.originx),s.originY=(0,i.pluckNumber)(h.originy),s.events={mouseOver:function(){w.call(this,"mouseover")},mouseOut:function(){w.call(this,"mouseout")}},l.plotBorderWidth=0,l.plotBorderWidth=0,s.maxLevel=r.addMSPieCat(r.config.inputTree,1,r,s.startAngle,s.endtAngle),s.pieRadius=parseInt(h.pieradius,10),s.innerRadius=s.isSingleRootNode?"0":"30",C.test(h.innerradius)&&(s.isSingleRootNode||+s.innerRadius<+h.innerradius)&&(s.innerRadius=(0,i.pluck)(h.innerradius)),c.distance=0,c.placeLabelsInside=!0},a.removalFn=function(e,t){this.getFromEnv("animationManager").setAnimation({el:e,label:"element"===t?"ringpath":"label",component:this,callback:function(){this.remove()}})},a.removeGraphics=function(e){var t,a,o,r=e.components&&e.components.data,n=e.graphics;if(r)for(o=r.length,t=0;t<o;t+=1)this.removeGraphics(r[t]);if(e.graphics)for(a in n)n.hasOwnProperty(a)&&this.removalFn(e.graphics[a],a)},a.removeChild=function(e,t,a){var o,r,n=this;if(e.length)for(o=0;o<e.length;o+=1)r=e[o],a?n.removalFn(r,t,a):n.removeGraphics(r,t);else for(o in e)n.removeChild(e[o],t,o)},a.addMSPieCat=function(e,t,a,o,n,l){void 0===l&&(l=null);var s,c,d,u,h,p,f,m,b,x,k,y,C,w,A,S,N,L,D,E,T=(0,i.extend2)([],e),F=T.length,P=this,_=a.components.data,V=P.config,I=P.getFromEnv("number-formatter"),B=0,M=V.labelSepChar,O=t,R=_.length,G=function(){P.removeChild.apply(P,arguments)},H=T.length,z=n-o,W=0;for(m=0;m<F;m+=1)(p=T[m])._userValue=I.getCleanValue(p.value,!0),p._value=(0,i.pluckNumber)(p._userValue,1),B+=p._value;for(u=z/(h=l||B||1),m=F-1;m>=0;m-=1)f=u*(p=T[m])._value,b=(0,i.parseUnsafeString)((0,i.pluck)(p.label,p.name)),k=null!==p._userValue?I.dataLabels(p._userValue):g,y=I.percentValue(p._value/h*100),x=(0,i.pluckNumber)(p.alpha,V.alpha),N=(0,i.pluckNumber)(p.showlabel,V.showLabels),L=(0,i.pluckNumber)(V.showplotborder,1),w=1===N?b:g,A=(0,i.pluckNumber)(p.showlabelvalue,""),1===(0,i.pluckNumber)(p.showvalue,V.showValues)&&(V.showPercentValues?w+=w!==g?M+y:y:k!==r&&k!==g&&(w+=w!==g?M+k:k)),(C=V.showTooltip?(0,i.parseUnsafeString)((0,i.pluck)(p.tooltext,p.hovertext,V.tooltext),!1):r)===g?(C=b,V.showValuesInTooltip&&(V.showPercentInTooltip?C+=C!==g?M+y:y:k!==r&&k!==g&&(C+=C!==g?M+k:k))):C=(0,i.parseTooltext)(C,[1,2,3,14],{percentValue:y,label:b,formattedValue:k},p),D=o+W,W+=f,(s=_[m])||(s=_[m]={components:{data:[]},config:{},graphics:{}}),s.graphics.element&&(E=s.config.startAngle+s.config.angleStrech),S=p.color?p.color:t>(V.isSingleRootNode?2:1)?a.config.rawColor:P.config.isDrilledDown&&P.nodeColorMap[p.id]?P.nodeColorMap[p.id]:P.getFromEnv("color-manager").getPlotColor(),P.nodeColorMap[p.id]=S,s.config={initialAngle:E||(a.config||a.config).initialAngle,startAngle:D,alpha:x,angleStrech:f,level:t,displayValue:w,showLabel:N,showPlotBorder:L,toolText:C,link:(0,i.getValidValue)(p.link),drillDownToId:p.id,drillDownParent:p.parent,childrenCount:p.category?p.category.length:0,rawColor:S,doNotSlice:!0,color:(0,i.convertColor)(S,x),borderAlpha:(0,i.pluck)(p.plotborderalpha,V.borderAlpha),borderWidth:(0,i.pluckNumber)(p.borderwidth,V.borderWidth),borderColor:(0,i.pluck)(p.bordercolor,V.borderColor),rawborderColor:(0,i.pluck)(p.bordercolor,V.rawborderColor),dashStyle:(0,i.pluckNumber)(p.valueborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(p.borderdashlen,4),(0,i.pluckNumber)(p.borderdashgap,2)):v,shadow:{opacity:.01*Math.round(x>50?x*x*x*1e-4:x*x*.01)},isSingleTon:!(F>1),showLabelValue:A},s.config.parent=a,s.config.dataLabelStyle=P._configureDataLabelStyle(p),p.category&&p.category.length>0?(O=Math.max(O,P.addMSPieCat(p.category,t+1,s,D,f+D,p._value)),(c=s.components.data.length)>(d=p.category.length)&&G(s.components.data.splice(c-1,d))):(c=s.components.data.length)&&G(s.components.data.splice(0,c));return R>H&&G(_.splice(H)),O},a.chartDrillDown=function(e,t,a){var o=this,n=o.getFromEnv("chart").getFromEnv("parsedDataSource"),l=[].concat(n),i=o.getFromEnv("toolTipController"),s=o.drillDownToId===e?t:e,c=null;if(a>0){if(!s)return o.setData({isDrilledDown:!0,inputTree:n},!0),o.drillDownToId=r,void i.hideAll();for(;l.length>0;){var d=l.pop();d.id!==s?l.push.apply(l,d.category):c=d}(c.length>0||c.category.length>0)&&(o.drillDownToId=s,o.setData({isDrilledDown:!0,inputTree:[c]},!0),i.hideAll())}},a.parsePlotAttributes=function(e){var t,a,o,n,l,s,c,d,u,h,p,g,f,m,v,b,x,y=e,C=this,w=C.config||{},A=C.getFromEnv("chart"),S=A.config,N=C.components.data.length,L=S.dataLabelStyle,D=S.canvasWidth,E=S.canvasHeight,T=(0,i.pluckNumber)(w.originX,S.canvasLeft+.5*D),F=(0,i.pluckNumber)(w.originY,S.canvasTop+.5*E),P=(0,i.pluckNumber)(2*w.pieRadius,Math.min(D,E)),_=function(e,t){var a,o=e&&e.length;return e&&(a="%"===e.charAt(o-1)?(0,i.pluckNumber)(t)*((0,i.pluckNumber)(e.split("%")[0])/100):(0,i.pluckNumber)(e))<t?a:0}(w.innerRadius,P/2),V=C.config.pool||(C.config.pool={}),I=(P-2*_)/(2*w.maxLevel);for(w.innerSize=2*_,y||(y=C),N=y.components.data.length,m=0;m<N;m+=1)C.parsePlotAttributes(y.components.data[m]);(n=(b=y.config).level)&&(s=n*I+_,c=(n-1)*I+_,b.outerRadius=s,b.innerRadius=c,v=y.graphics,u=b.angleStrech,h=b.displayValue,p=!!A.config.allowdrilltonode&&b.childrenCount>0||!!b.link,d=b.color,f=(g=b.startAngle)+b.angleStrech,x=v.element,V.element&&V.element.length&&(x=v.element=x||V.element.shift()),b.plotItem={chart:A,link:b.link,value:u,color:d,labelText:h,graphics:{element:x},selfRef:y},b.eventArgs={alpha:b.alpha,borderAlpha:b.borderAlpha,link:b.link,label:b.displayValue,showLabel:b.showLabel,toolText:b.toolText,color:b.rawColor,borderColor:b.rawborderColor,borderThickness:b.borderWidth,showPlotBorder:b.showPlotBorder,nodeId:b.drillDownToId,nodeParentId:b.drillDownParent,childrenCount:b.childrenCount},b.props={element:{attr:{ringpath:[T,F,s,c,g,f],"stroke-width":b.borderWidth,stroke:b.borderColor,fill:(0,i.toRaphaelColor)(b.color),"stroke-dasharray":b.dashStyle,cursor:p?k:"initial"}}},h!==r&&h!==i.BLANKSTRING&&(t=(g+f)/2,o=0===c&&b.isSingleTon?0:c+(s-c)/2,(a=b._textAttrs)||(a=b._textAttrs={}),l=b.dataLabelStyle,a.text=h,a.fill=l.color||"000000",a.direction=S.textDirection,a.cursor=p?k:"initial",a.x=T+o*Math.cos(t),a.y=F+o*Math.sin(t),a["line-height"]=L.lineHeight,a["text-bound"]=[l.backgroundColor,l.borderColor,L.borderThickness,L.borderPadding,L.borderRadius,L.borderDash]))},a.parseLabelAttributes=function(e){var t,a,o,n=this,l=e,s=n.components.data.length;for(!l&&(l=n),s=l.components.data.length,a=0;a<s;a+=1)n.parseLabelAttributes(l.components.data[a]);t=(o=l.config).displayValue,o.level&&t!==r&&t!==i.BLANKSTRING&&(o.props.label={attr:o._textAttrs})},a.draw=function(e){var t,a,o,r,n,l=this,i=e,s=l.config||{},c=l.getFromEnv("chart"),u=l.components,h=u.data.length,p=c.getChildContainer("datalabelsGroup"),g=s.events||{},f=u.removeDataArr;for(f&&f.length&&l.removeElement(),i||(i=l,p.css(c.config.dataLabelStyle)),h=i.components.data.length,t=0;t<h;t+=1)l.draw(i.components.data[t]);(o=i.config).level?(n=(a=i.graphics).element,r=a.element=l.getFromEnv("animationManager").setAnimation({el:n||"ringpath",attr:o.props.element.attr,container:c.getChildContainer("plotGroup"),component:l,state:"appearing",label:"ringpath"}),n||r.on("fc-mouseover",(function(e){var t=this,a=g.mouseOver,r=t.plotItem||t.data("plotItem"),n=r.chart.getDatasets()[0];c.plotEventHandler(t,e,b),a&&a.call(t),n.fireEvent("datasetrollover",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-mouseout",(function(e){var t=this,a=g.mouseOut,r=t.plotItem||t.data("plotItem"),n=r.chart,l=n.getDatasets()[0];n.plotEventHandler(t,e,x),a&&a.call(t),l.fireEvent("datasetrollout",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})),r.shadow(s.showShadow&&!!o.shadow).data("plotItem",o.plotItem).data(y,o.eventArgs),r.off("fc-click",l.elementClickedFn),r.on("fc-click",l.elementClickedFn),l.getFromEnv("toolTipController").enableToolTip(r,o.toolText),t||s._drawn||(s._drawn=!0,p.show(),l.addJob("labelJob",l.drawLabel.bind(l),d.priorityList.label))):s._drawn&&l.drawLabel()},a.drawLabel=function(e){var t,a,o,n,l,s,c,d,u,h,p=this,g=p.config,f=e,m=p.getFromEnv("chart"),v=p.getFromEnv("animationManager"),k=p.getFromEnv("smartLabel"),C=m.config,w=p.components.data.length,A=C.tooltip||{},S=A&&!1!==A.enabled,N=(g||{}).events||{},L=m.getChildContainer("datalabelsGroup");for(L.show(),!f&&(f=p),w=f.components.data.length,c=0;c<w;c+=1)p.drawLabel(f.components.data[c]);a=(u=f.config).angleStrech,t=180*(u.startAngle+a/2)/Math.PI,Math.abs(t)>90&&Math.abs(t)<270&&(t=-(180-t)),360===Math.floor(180*a/Math.PI)&&(t=0),l=u.displayValue,k.useEllipsesOnOverflow(!0),k.setStyle(C.dataLabelStyle),o=k.getSmartText(l,u.outerRadius-u.innerRadius-10,k._lineHeight),u.level&&(s=(d=f.graphics).label,l!==r&&l!==i.BLANKSTRING&&(a>.1||1===u.showLabelValue)&&0!==u.showLabelValue?(h=d.label,(n=u.props.label.attr).text=o.text,n.transform=(0,i.getSuggestiveRotation)(parseFloat(t),n.x,n.y),(h=d.label=v.setAnimation({el:s||"text",attr:n,container:L,component:p,state:"appearing",label:"text"})).outlineText(g.showTextOutline,n.fill),s||(h.on("fc-mouseout",(function(e){var t=N.mouseOut;m.plotEventHandler(this,e,x),t&&t.call(this)})).on("fc-mouseover",(function(e){var t=N.mouseOver;m.plotEventHandler(this,e,b),t&&t.call(this)})),h.off("fc-click",p.elementClickedFn),h.on("fc-click",p.elementClickedFn)),h.data("plotItem",u.plotItem).data(y,u.eventArgs),S&&p.getFromEnv("toolTipController").enableToolTip(h,undefined)):(s&&v.setAnimation({el:s,component:p,label:"text"}),delete d.label))},t}(h["default"]),A=w;t["default"]=A},1364:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.waterFall2D":o(a(599))["default"]["initial.dataset.column"]};t["default"]=r},1363:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),n=a(274),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=c(t);if(a&&a.has(e))return a.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(o,n,l):o[n]=e[n]}o["default"]=e,a&&a.set(e,o);return o}(a(595)),i=a(282),s=o(a(1364));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}var d;(0,i.addDep)({name:"waterFall2DAnimation",type:"animationRule",extension:s["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"waterFall2D"},a.configure=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,i,s,c,u,h,p,g,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe,re,ne,le,ie,se=this,ce=se.getFromEnv("chart"),de=se.config,ue=se.config.JSONData,he=ue.data,pe=he&&he.length,ge=se.getFromEnv("xAxis").getTicksLen(),fe=Math.min(ge,pe),me=ce.getFromEnv("dataSource").chart,ve=se.getFromEnv("color-manager"),be=ve.getPlotColor(se.index||se.positionIndex),xe=(0,n.pluckNumber)(ue.dashed,me.plotborderdashed,0),ke=ce.config,ye=ke.useplotgradientcolor,Ce=(0,n.pluckNumber)(me.showtooltip,1),we=(0,n.parseUnsafeString)((0,n.pluck)(me.tooltipsepchar,", ")),Ae=se.components.data,Se=se.getFromEnv("number-formatter"),Ne={},Le=Ne.dataObj||(Ne.dataObj={}),De=Le.chart||(Le.chart={}),Ee=(0,n.pluck)(me.connectorthickness,1),Te=-Infinity,Fe=Infinity,Pe=0,_e=0,Ve=0;for(de.minAbsNonZeroValue=Infinity,de.minAbsNonZeroData={},se.setState("visible",1===(0,n.pluckNumber)(ue.visible,!Number(ue.initiallyhidden),1)),o=de.showplotborder=(0,n.pluckNumber)(me.showplotborder,1),de.plotBorderThickness=g=o?(0,n.pluckNumber)(me.plotborderthickness,1):0,de.isRoundEdges=f=(0,n.pluckNumber)(me.useroundedges,0),de.plotBorderAlpha=y=o?(0,n.pluck)(me.plotborderalpha,b,"100"):0,de.plotbordercolor=C=(0,n.pluck)(me.plotbordercolor,ve.getColor("plotBorderColor").split(",")[0]),de.plotgradientcolor=k=ye?(0,n.getDefinedColor)(me.plotgradientcolor,ve.getColor("plotGradientColor")):"",de.plotDashLen=h=(0,n.pluckNumber)(me.plotborderdashlen,6),de.showTextOutline=(0,n.pluckNumber)(me.textoutline,0),de.plotDashGap=p=(0,n.pluckNumber)(me.plotborderdashgap,3),de.use3DLighting=(0,n.pluckNumber)(me.use3dlighting,1),de.showSum=Q=(0,n.pluckNumber)(me.showsumatend,1),de.plotColor=be=(0,n.pluck)(ue.color,be),de.plotfillAngle=v=(0,n.pluckNumber)(360-me.plotfillangle,90),de.showShadow=f?(0,n.pluckNumber)(me.showshadow,1):(0,n.pluckNumber)(me.showshadow,ve.getColor("showShadow")),de.usePattern=(0,n.pluckNumber)(ke.usePattern,0),de.patternType=l.PATTERN_TYPES.includes(ue.patterntype)?ue.patterntype:ke.patternType,de.patternDensity=(0,n.pluckNumber)(ue.patterndensity,ke.patternDensity),de.patternAlpha=(0,n.pluckNumber)(ue.patternalpha,ke.patternAlpha),de.patternBgColor=(0,n.pluck)(ue.patternbgcolor,de.patternBgColor),de.showHoverEffect=m=(0,n.pluckNumber)(me.plothovereffect,me.showhovereffect,d),de.usePattern&&(de.showHoverEffect=m=0),de.plotFillAlpha=b=(0,n.pluck)(ue.alpha,me.plotfillalpha,"100"),de.plotRadius=(0,n.pluckNumber)(me.useRoundEdges,de.isRoundEdges?1:0),de.plotFillRatio=x=(0,n.pluck)(ue.ratio,me.plotfillratio),de.dashed=xe,de.plotBorderDashStyle=A=xe?(0,n.getDashStyle)(h,p):"none",de.showValues=(0,n.pluckNumber)(ue.showvalues,me.showvalues,1),de.valuePadding=(0,n.pluckNumber)(me.valuepadding,2),de.enableAnimation=j=(0,n.pluckNumber)(me.animation,me.defaultanimation,1),de.animation=!!j&&{duration:1e3*(0,n.pluckNumber)(me.animationduration,1)},De.transposeAnimation=de.transposeAnimation=(0,n.pluckNumber)(me.transposeanimation,De.transposeAnimation,j),de.transposeAnimDuration=1e3*(0,n.pluckNumber)(me.transposeanimduration,.2),de.showTooltip=(0,n.pluckNumber)(me.showtooltip,1),de.stack100Percent=(0,n.pluckNumber)(ce.stack100percent,me.stack100percent,0),de.definedGroupPadding=Math.max((0,n.pluckNumber)(me.plotspacepercent),0),de.plotSpacePercent=Math.max((0,n.pluckNumber)(me.plotspacepercent,20)%100,0),de.maxColWidth=(0,n.pluckNumber)(me.maxcolwidth,50),de.showPercentValues=(0,n.pluckNumber)(me.showpercentvalues,0),de.showPercentInToolTip=(0,n.pluckNumber)(me.showpercentintooltip,0),de.plotPaddingPercent=(0,n.pluckNumber)(me.plotpaddingpercent),de.rotateValues=(0,n.pluckNumber)(me.rotatevalues)?270:0,de.placeValuesInside=(0,n.pluckNumber)(me.placevaluesinside,0),de.parentYAxis=J="s"===(0,n.pluck)(ue.parentyaxis&&ue.parentyaxis.toLowerCase(),"p")?1:0,de.defaultPadding={left:.5,right:.5},se.setState("dirty",!0),Ae||(Ae=se.components.data=[]),de.zLine=ae={step:!0,data:[],dashStyle:"1"===me.connectordashed?(0,n.getDashStyle)((0,n.pluckNumber)(me.connectordashlen,2),(0,n.pluckNumber)(me.connectordashgap,2)):"none",useForwardSteps:!0,color:(0,n.convertColor)((0,n.pluck)(me.connectorcolor,"000000"),(0,n.pluck)(me.connectoralpha,100)),lineWidth:Ee},X=0;X<fe;X+=1)S=he[X],ee=Se.getCleanValue(S.value),te=(0,n.pluckNumber)(S.issum,0),S.vline||te?delete S._value:(Pe+=ee,S._value=ee);for(Q&&(Q=!0,fe+=1,ne={label:(0,n.getFirstValue)(me.sumlabel,"Total"),_value:Pe,value:Pe,issum:1,cumulative:1}),X=0,le=0;X<fe;X+=1)S=he[X],D=(L=Ae[X])&&L.config,L||(L=Ae[X]={graphics:{}}),L.config||(D=Ae[X].config={}),!S&&Q&&(S=he[X]=ne),be=(0,n.pluck)(S.color,ve.getPlotColor(X)),L.vline||(ee=S._value,delete S._value,D.issum=te=(0,n.pluckNumber)(S.issum,0),re=D.isCumulative=(0,n.pluckNumber)(S.cumulative,1),te?(ee=re||_e===Ve?_e:_e-Ve,D.lastComTotal=Ve,Ve=_e,ae.data.push({y:null,x:le-.5})):_e+=ee,D.valuePadding=(0,n.pluckNumber)(S.valuepadding,de.valuePadding),Te=Math.max(Te,_e),Fe=Math.min(Fe,_e),0!==ee&&de.minAbsNonZeroValue>Math.abs(ee)&&(de.minAbsNonZeroValue=Math.abs(ee),de.minAbsNonZeroData=D),D.total=_e,$=D.showLabel=(0,n.pluckNumber)(S.showlabel,me.showlabels,1),Z=D.dataLabel=(0,n.parseUnsafeString)($?(0,n.getFirstValue)(S.label,S.name):""),ee>0?(oe=(0,n.pluck)(S.color,me.positivecolor,be),0!==m&&(T=(0,n.pluck)(S.positivehovercolor,me.positivehovercolor,me.plotfillhovercolor,me.columnhovercolor,oe))):(oe=(0,n.pluck)(S.color,me.negativecolor,be),0!==m&&(T=(0,n.pluck)(S.negativehovercolor,me.negativehovercolor,me.plotfillhovercolor,me.columnhovercolor,oe))),ie=ee<0?360-v:v,b=(0,n.pluck)(S.alpha,de.plotFillAlpha),D.dashed=K=(0,n.pluckNumber)(S.dashed,de.dashed),q=(0,n.pluckNumber)(S.dashlen,h),Y=p=(0,n.pluckNumber)(S.dashgap,p),D.plotFillAlpha=b,D.plotBorderAlpha=y,D.showValue=(0,n.pluckNumber)(S.showvalue,de.showValues),D.setValue=N=ee,D.setLink=(0,n.pluck)(S.link),D.toolTipValue=W=Se.dataLabels(N,J),D.setDisplayValue=U=(0,n.getValidValue)((0,n.parseUnsafeString)(S.displayvalue)),D.displayValue=(0,n.pluck)(U,W),D.plotBorderDashStyle=w=1===K?(0,n.getDashStyle)(q,Y):0===K?"none":A,D.shadow={opacity:de.showShadow?b/100:0},D.dataLabelStyle=se._configureDataLabelStyle(S),D.patternType=l.PATTERN_TYPES.includes(S.patterntype)?S.patterntype:de.patternType,D.patternAngle=(0,n.pluckNumber)(S.patternangle,ue.patternangle,me.patternangle,D.patternType===l.PATTERN_TYPES[0]?40:0),D.patternDensity=(0,n.pluckNumber)(S.patterndensity,de.patternDensity),D.patternSize=(0,n.pluckNumber)(S.patternsize,ue.patternsize,D.patternType===l.PATTERN_TYPES[0]?2:4),D.patternAlpha=(0,n.pluckNumber)(S.patternalpha,de.patternAlpha),D.patternBgColor=(0,n.pluck)(S.patternbgcolor,de.patternBgColor),D.colorArr=E=(0,n.getColumnColor)(oe+","+k.replace(/,+?$/,""),b,x,ie,f,C,y.toString(),0,!1),0!==m&&(F=(0,n.pluck)(S.alpha,S.hoveralpha,ue.hoveralpha,me.plotfillhoveralpha,me.columnhoveralpha,b),!(P=(0,n.pluck)(S.hovergradientcolor,ue.hovergradientcolor,me.plothovergradientcolor,k))&&(P=""),_=(0,n.pluck)(S.hoverratio,ue.hoverratio,S.ratio,me.plothoverratio,x),V=(0,n.pluckNumber)(360-S.hoverangle,360-ue.hoverangle,360-me.plothoverangle,ie),I=(0,n.pluck)(S.borderhovercolor,ue.borderhovercolor,me.plotborderhovercolor,C),B=(0,n.pluck)(S.borderhoveralpha,ue.borderhoveralpha,me.plotborderhoveralpha,y,b),M=(0,n.pluckNumber)(S.borderhoverthickness,ue.borderhoverthickness,me.plotborderhoverthickness,g),O=(0,n.pluckNumber)(S.borderhoverdashed,ue.borderhoverdashed,me.plotborderhoverdashed),R=(0,n.pluckNumber)(S.borderhoverdashgap,ue.borderhoverdashgap,me.plotborderhoverdashgap,h),G=(0,n.pluckNumber)(S.borderhoverdashlen,ue.borderhoverdashlen,me.plotborderhoverdashlen,p),H=O?(0,n.getDashStyle)(G,R):w,1===m&&T===be&&(T=(0,n.getLightColor)(T,70)),D.hoverColor=T,D.hoverAlpha=F,D.hoverBorderColor=I,D.hoverBorderAlpha=B,z=(0,n.getColumnColor)(T+","+P,F,_,V,f,I,B.toString(),0,!1),D.setRolloutAttr={fill:(0,n.toRaphaelColor)(E[0]),stroke:o&&(0,n.toRaphaelColor)(E[1]),"stroke-width":g,"stroke-dasharray":w},D.setRolloverAttr={fill:(0,n.toRaphaelColor)(z[0]),stroke:o&&(0,n.toRaphaelColor)(z[1]),"stroke-width":M,"stroke-dasharray":H}),r=D.toolTipValue,D.origToolText=s=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(S.tooltext,ue.plottooltext,me.plottooltext),!1)),Ce?s!==d?(c=[1,2,3,5,6,7,20,21,24,25],i={formattedValue:r,label:Z,yaxisName:(0,n.parseUnsafeString)(me.yaxisname),xaxisName:(0,n.parseUnsafeString)(me.xaxisname),cumulativeValue:_e,cumulativeDataValue:Se.dataLabels(_e),sum:Se.dataLabels(Pe),unformattedSum:Pe},u=(0,n.parseTooltext)(s,c,i,S,me,ue)):u=null!==r&&(""!==Z?Z+we:""):u=!1,ae.data.push({y:null===ee?null:_e,x:le}),le+=1,D.originalPlotColor=(0,n.hashify)(be),D.toolText=u,D.setTooltext=u,D._x=X,D._y=N);for(de.maxValue=Te,de.minValue=Fe,de.connectNullData=(0,n.pluckNumber)(me.connectnulldata,0),de.showConnectors=(0,n.pluckNumber)(me.showconnectors,1),t=ue.catData,X=0;X<t.length;X+=1)a=t[X],he.splice(a.index,0,a.data);se.getFromEnv("xAxis").setTickValues(he),se.config.maxminFlag=!1},a.createCoordinates=function(){var e,t,a,o,r,n,l,i,s=this,c=s.getFromEnv("chart").isBar,u=s.getFromEnv("yAxis"),h=s.getFromEnv("xAxis"),p=u.getAxisBase(),g=u.getPixel(p),f=s.getFromEnv("chartConfig"),m=f.xDepth||0,v=f.yDepth||0,b=s.components.data.length,x=s.groupManager,k=x&&x.stackConf,y=s.components.data;for(!c&&(m=-m),c&&(v=-v),o=0;o<b;o++)t=(e=y[o])&&e.config,e!==d&&(i=t._y,t.issum?t.isCumulative?a=null:(a=t.lastComTotal,i+=t.lastComTotal):(a=y[o-1]&&y[o-1].config.total)&&(i+=a),r=h.getPixel(k&&k[o].x||t._x)+m,n=u.getPixel(i)+v,l=(a?u.getPixel(a):g)+v,h.config.isVertical?(t._Px=n,t._Py=r,t._Pby=r,t._Pbx=l):(t._Px=r,t._Py=n,t._Pby=l,t._Pbx=r))},a.getDataLimits=function(){var e,t,a=this.components.data,o=this.config,r=a.length,n=-Infinity,l=+Infinity;for(e=0;e<r;e++)a[e]&&(t=a[e].config.total)!==d&&(n=Math.max(n,t),l=Math.min(l,t));return o.maxValue=n,o.minValue=l,{max:o.maxValue,min:o.minValue}},a.drawPlots=function(t){var a=this;e.prototype.drawPlots.call(this,t),a.config.showConnectors?a.drawLine():a.getContainer("commonElemsGroup").hide()},a.drawLine=function(){var e,t,a,o,r,l,i,s,c=this,d=c.config,u=c.getFromEnv("yAxis"),h=u.getAxisBase(),p=u.getPixel(h),g=c.getContainer("commonElemsGroup"),f=c.getFromEnv("columnWidth")/2,m=d.zLine,v=m.data,b=v.length,x=m.lineWidth,k=c._graphics.zLine,y=null,C=[],w=[];for(u.yBasePos=p,g.toFront().show(),e=0;e<b;e+=1)null===(r=(o=v[e]).y)?(w.length=0,0===d.connectNullData&&(y=null)):(l=(0,n.pluckNumber)(o.x,e),t=u.getPixel(r),a=c.getFromEnv("xAxis").getPixel(l),a=(0,n.getCrispValue)(a,x,x).position,t=(0,n.getCrispValue)(t,x,x).position,null!==y?(w.length&&(C=C.concat(w),w.length=0),C.push("M",i,y,"m",-f,0,"H",a,"h",f,"m",0,t-y)):w.push("M",a,t),i=a,y=t);s=c.getFromEnv("animationManager").setAnimation({el:k||"path",attr:{path:C,"stroke-linecap":"round","stroke-opacity":1,"stroke-dasharray":m.dashStyle,stroke:m.color,"stroke-linejoin":x>=2?"round":"miter","stroke-width":x},container:g,component:c,label:"path"}),k||c.addGraphicalElement("zLine",s)},t}(l["default"]),h=u;t["default"]=h},1424:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getFromEnv("dataSource").dataset,l=e.getChildren("canvas")[0],i=t=l.getChildren("vCanvas")[0],s=e.config.defaultDatasetType||"";o||e.setChartMessage();(0,r.componentFactory)(t,e.getDSGroupdef(),"datasetGroup_"+s),(a=t.getChildren("datasetGroup_"+s))&&(i=a[0]),(0,r.componentFactory)(e,n["default"],"BoxAndWhiskerStatisticalCalc"),t.getChildren("datasetGroup_"+s)[0].addToEnv("BoxAndWhiskerStatisticalCalc",e.getChildren("BoxAndWhiskerStatisticalCalc")[0]),i.addToEnv("lineJSON",e._getLineJSONdata()),(0,r.datasetFactory)(i,e.getDSdef(),"dataset",o.length,o)};var r=a(274),n=o(a(1425))},1417:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o,l,i,s=e.getChildren("canvas"),c=s[0],d=s[1],u=e.config.showVolumeChart,h={zoomable:!0,pannable:!0},p=c.getChildren("axisRefVisualCartesian")[0],g=function(){return p.asyncDraw()},f=function(){return a.asyncDraw()};t=e._feedAxesRawData(),(0,r.componentFactory)(e,n["default"],"yAxis",u?2:1,t.yAxisConfigure),(0,r.componentFactory)(e,n["default"],"xAxis",1,t.xAxisConfigure),l=e.getChildren("yAxis")[0],o=e.getChildren("yAxis")[1],l.setAxisConfig({relativeAxis:o}),o&&o.setAxisConfig({relativeAxis:l}),i=e.getChildren("xAxis")[0],l.setLinkedItem("canvas",c),i.setLinkedItem("canvas",c),p.setLinkedItem(l.getId(),l),p.setLinkedItem(i.getId(),i),p.addExtEventListener("visiblerangeset",g,l),p.addExtEventListener("visiblerangeset",g,i),c.attachAxis(i,!1,e.zoomX?h:{}),c.attachAxis(l,!0,e.zoomY?h:{}),u&&(a=d.getChildren("axisRefVisualCartesian")[0],d.attachAxis(i,!1,e.zoomX?h:{}),o.setLinkedItem("canvas",d),a.setLinkedItem(o.getId(),o),a.setLinkedItem(i.getId(),i),a.addExtEventListener("visiblerangeset",f,o),a.addExtEventListener("visiblerangeset",f,i),d.attachAxis(o,!0,e.zoomY?h:{}));e._setCategories()};var r=a(274),n=o(a(537))},1407:(e,t,a)=>{t.__esModule=!0,t["default"]=function(e){var t,a,i=e.getFromEnv("dataSource"),s=i.dataset,c=i.trendset,d=e.getFromEnv("chartConfig").showVolumeChart,u=(0,o.pluck)((0,o.parseUnsafeString)(e.getFromEnv("chart-attrib").plotpriceas).toLowerCase(),"candlestick"),h=e.getChildren("canvas")[0].getChildren("vCanvas")[0],p=["candlestick","candlestickbar","candlestickline","trendset"];if(!s)return void e.setChartMessage();(a=s.slice(0))[0]&&a[0].data&&a[0].data.sort((function(e,t){return e.x-t.x})),(0,o.datasetFactory)(h,e.getDSdef(u),"dataset_"+u,s.length,a),n(p,"bar"===u?"candlestickbar":"line"===u?"candlestickline":"candlestick");d&&(t=e.getChildren("canvas")[1].getChildren("vCanvas")[0],(0,o.datasetFactory)(t,r.VolumeDataset,"dataset_volume",s.length,s));c&&((0,o.datasetFactory)(h,r.TrendSet,"dataset_trendset",c.length,c),n(p,"trendset"));l(h,p)};var o=a(274),r=a(1408),n=function(e,t){var a=e.indexOf(t);-1!==a&&e.splice(a,1)},l=function(e,t){var a;e&&e.iterateComponents((function(e){for(a=0;a<t.length;a++)e.getName()===t[a]&&e.remove()}))}},1443:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("canvas")[0],l=o.getChildren("axisRefVisualCartesian")[0],i={zoomable:!0,pannable:!0},s=e._feedAxesRawData(),c=function(){return l.asyncDraw()};(0,r.componentFactory)(e,n["default"],"yAxis",1,s.yAxisConf),(0,r.componentFactory)(e,n["default"],"xAxis",1,s.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),a.setLinkedItem("canvas",o),l.setLinkedItem(t.getId(),t),l.setLinkedItem(a.getId(),a),l.addExtEventListener("visiblerangeset",c,a),l.addExtEventListener("visiblerangeset",c,t),o.attachAxis(a,!1,e.zoomX?i:{}),o.attachAxis(t,!0,e.zoomY?i:{}),e._setCategories()};var r=a(274),n=o(a(585))},1471:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t=e.config.links;for(var a in t)t.hasOwnProperty(a)&&t[a].visible&&e.attachChild(r["default"],"ribbon",a).configure(t[a])};var r=o(a(1472))},1468:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t=e.config;t.nodesOrder.forEach((function(a){e.attachChild(r["default"],"node",a).configure(t.nodes[a])}))};var r=o(a(1469))},1351:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){(0,n.componentFactory)(e,r["default"],"dragTracker"),e.getChildren("dragTracker")[0].addEvents()};var r=o(a(1352)),n=a(274)},1404:(e,t,a)=>{t.__esModule=!0,t["default"]=function(e){var t,a,n=e.getFromEnv("dataSource"),l=n.dataset,i=n.connectors,s=n.labels,c=e.getChildren("canvas")[0],d=t=c.getChildren("vCanvas")[0],u=[];if(s&&(s=[s]),!l&&!i&&!s)return void e.setChartMessage();(0,o.componentFactory)(t,e.getDSGroupdef(),"datasetGroup_dragNode"),(a=t.getChildren("datasetGroup_dragNode"))&&(d=a[0]),l&&l.length?(0,o.componentFactory)(d,e.getDSdef("dragnode"),"dataset",l.length,l):u.push("dataset");i&&i.length?(0,o.componentFactory)(d,e.getDSdef("connector"),"connector",i.length,i):u.push("connector");s&&s.length?(0,o.componentFactory)(d,e.getDSdef("dragableLabels"),"labels",s.length,s):u.push("labels");u.length&&r(d,u)};var o=a(274),r=function(e,t){var a,o,r,n=e.getChildren();if(t&&t.length)for(r=t.length-1;r>-1;r--)for(o=(a=n[t[r]])&&a.length-1;o>-1;a[o].remove(),o--);}},1349:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("yAxis")[0];(0,r.componentFactory)(o,n["default"],"limitUpdater",e.config.allowAxisChange?1:0),t=o.getChildren("limitUpdater"),(a=t&&t[0])&&a.configure()};var r=a(274),n=o(a(1350))},1315:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("canvas")[0],i=o.getChildren("axisRefVisualCartesian")[0],s={zoomable:!0,pannable:!0},c=e._feedAxesRawData(),d=function(){return i.asyncDraw()};(0,r.componentFactory)(e,n["default"],"yAxis",1,c.yAxisConf),(0,r.componentFactory)(e,l["default"],"xAxis",1,c.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),a.setLinkedItem("canvas",o),i.setLinkedItem(t.getId(),t),i.setLinkedItem(a.getId(),a),i.addExtEventListener("visiblerangeset",d,a),i.addExtEventListener("visiblerangeset",d,t),o.attachAxis(a,!1,e.zoomX?s:{}),o.attachAxis(t,!0,e.zoomY?s:{}),e._setCategories()};var r=a(274),n=o(a(1316)),l=o(a(585))},1374:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o,l={};t=e.config.categories=e.getFromEnv("dataSource").category||[],a=t.length,!o&&a&&(l=t,o=a);if(!a)return void e.setChartMessage();(0,r.datasetFactory)(e,n["default"],"dataset",o,[l])};var r=a(274),n=o(a(1375))},1384:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("canvas")[0],i=o.getChildren("axisRefVisualCartesian")[0];t=e._feedAxesRawData(),l["default"].resetAxisCount(),(0,r.componentFactory)(e,l["default"],"yAxisSelectorUI",t.yAxisConfigure&&t.yAxisConfigure.length,t.yAxisConfigure),(0,r.componentFactory)(e,n["default"],"xAxis",1,t.xAxisConfigure),(a=e.getChildren("xAxis")[0]).setLinkedItem("canvas",o),i.setLinkedItem(a.getId(),a),i.addExtEventListener("visiblerangeset",(function(){return i.asyncDraw()}),a),o.attachAxis(a,!1),o.setPrimaryAxis("xAxis",a),e._setCategories()};var r=a(274),n=o(a(585)),l=o(a(1385))},1387:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){for(var t,a,o,l,i=e.getChildren(),s=i.yAxisSelectorUI,c=i.canvas[0],d=(a+"").length,u=c.getChildren("vCanvas"),h=function(e){s.forEach((function(t){t.manipulateCheckBox(e)}))},p=function(e){e.addEventListener("datasetVisibilityChanged",h)},g=0,f=u.length;g<f;g++)(l=u[g]).getState("removed")||(t=l.getFromEnv("axisData").dataset)&&(a=t.length,o=Array(a).fill(l.getFromEnv("yAxis").config.axisIndex).map((function(e,t){return e+(t+1)*(1/Math.pow(10,d))})),(0,r.datasetFactory)(l,n["default"],"dataset",a,t,o),(i=l.getChildren("dataset")).forEach(p))};var r=a(274),n=o(a(1388))},1386:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o,l,i,s,c=e.getChildren("canvas")[0],d=e.getChildren("yAxisSelectorUI"),u=e.getFromEnv("dataSource").axis,h=[],p=[];for(a=e.getChildren("xAxis"),i=0;i<(a&&a.length);i++)a[i].getState("removed")||h.push(a[i]);for(d.forEach((function(e){for(a=e.getChildren("yAxis"),i=0;i<(a&&a.length);i++)a[i].getState("removed")||p.push(a[i])})),(0,n.componentFactory)(c,r["default"],"vCanvas",h.length*p.length),t=c.getChildren("vCanvas"),l=0,i=0;l<(h&&h.length);l++)for(s=0;s<(p&&p.length);s++,i++)(o=t[i]).configure(),o.xAxis(h[l]).yAxis(p[s]).canvas(c),o.addToEnv("axisData",u[i]),o.addToEnv("vCanvas",t[i])};var r=o(a(591)),n=a(274)},1466:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t=e.config;(0,r.componentFactory)(e,n["default"],"node-link-manager",1,[{nodes:t.nodes,links:t.links,nodesOrder:t.nodesOrder,linksOrder:t.linksOrder,nodeLabelGap:t.nodeLabelGap,nodeLinkPadding:t.nodeLinkPadding,showLegend:t.showLegend,totalAngle:t.totalAngle,nodeSpacing:t.nodeSpacing,isPost:t.isPost,matrix:t.matrix,startingAngle:t.startingAngle,minNodeSize:t.minNodeSize,highlightEffect:t.highlightEffect,enableToggle:t.enableToggle,datalabelStyle:t.datalabelStyle}]),t.showLegend&&e.getChildren("node-link-manager")[0]._addLegend()};var r=a(274),n=o(a(1467))},1459:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t;(0,l.componentFactory)(e,r["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas");for(var a=0,o=t.length;a<o;a++)t[a].configure(),(0,l.componentFactory)(t[a],n["default"],"axisRefVisualPolar")};var r=o(a(1460)),n=o(a(1461)),l=a(274)},1455:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("canvas")[0],i=e._feedAxesRawData(),s=o.getChildren("axisRefVisualPolar")[0],c=function(){return s.asyncDraw()};(0,l.componentFactory)(e,r["default"],"yAxis",1,i.yAxisConf),(0,l.componentFactory)(e,n["default"],"xAxis",1,i.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),s.setLinkedItem(t.getId(),t),s.setLinkedItem(a.getId(),a),s.addExtEventListener("visiblerangeset",c,a),s.addExtEventListener("visiblerangeset",c,t),o.attachAxis(a,!1,{}),o.attachAxis(t,!0,{}),e._setCategories()};var r=o(a(537)),n=o(a(1456)),l=a(274)},1437:(e,t,a)=>{t.__esModule=!0,t["default"]=function(e){var t,a,i,s,c,d,u,h=e.getDSdef(),p=e.getFromEnv("dataSource").chart||{},g=e.config.dataLabelStyle,f=e.getFromEnv("sankey-graph"),m=f.nodes,v=f.links;t=(0,o.pluckNumber)(p.nodelabelfontbold,p.labelfontbold,0)?r:n,a=(0,o.pluckNumber)(p.nodelabelfontitalic,p.labelfontitalic,0)?l:n,i=(0,o.pluckNumber)(p.nodelabelborderthickness,p.labelborderthickness,1),s=(0,o.pluckNumber)(p.nodelabelborderpadding,p.labelborderpadding,2),c=(0,o.pluckNumber)(p.nodelabelborderradius,p.labelborderradius,0),d=(0,o.pluckNumber)(p.nodelabelborderdashed,p.labelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(p.nodelabelborderdashlen,p.labelborderdashlen,4),(0,o.pluckNumber)(p.nodelabelborderdashgap,p.labelborderdashgap,2)):o.DASH_DEF,u=(0,o.pluckNumber)(p.shownodes,1),(0,o.componentFactory)(e,h,"dataset",1),e.getDatasets()[0].configure({showNodes:u,nodeWidth:e.config.nodeWidth,nodeRelaxation:(0,o.pluckNumber)(p.noderelaxation,1),nodeSpacing:(0,o.pluckNumber)(p.nodespacing,10),labelSepChar:(0,o.parseUnsafeString)((0,o.pluck)(p.labelSepChar,",")),enableDrag:(0,o.pluckNumber)(p.enabledrag,!0),highlightEffect:(0,o.pluckNumber)(p.highlighteffect,!0),style:{node:{label:{fontFamily:(0,o.pluck)(p.nodelabelfont,p.labelfont,g.fontFamily),fontSize:(0,o.pluck)(p.nodelabelfontsize,p.labelfontsize,p.basefontsize,11+o.PXSTRING),fontWeight:t,fontStyle:a,borderThickness:i,borderPadding:s,borderRadius:c,borderDash:d}},link:{}},nodes:m,links:v})};var o=a(274),r="bold",n="normal",l="italic"},1432:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o,u,h,p,g,f,m,v,b,x,k,y,C,w,A=e.config.links,S=e.getFromEnv("orientation"),N=e.getFromEnv("number-formatter"),L=e.getFromEnv("dataSource").chart,D=(0,r.pluckNumber)(L.nodelinkpadding,0);A.forEach((function(A){switch(A.props.index+=r.BLANK,w=A.props.index,b=(0,r.parseUnsafeString)((0,r.pluck)(A.from)),y=(0,r.parseUnsafeString)((0,r.pluck)(A.to)),m=e.getChild(b,"nodes"),v=e.getChild(y,"nodes"),C=(0,r.parseUnsafeString)((0,r.pluck)(A.tooltext,L.linktooltext,r.UNDEF)),x=m.config.value,k=v.config.value,a=(0,r.pluck)(A.color,L.linkcolor,l),g=m.config.rawCosmetics.fill,f=v.config.rawCosmetics.fill,a.toLowerCase()){case l:a=g;break;case i:a=f;break;case s:a=g+","+f}p={fill:a,alpha:(0,r.pluckNumber)(A.alpha,L.linkalpha,20),focusAlpha:(0,r.pluckNumber)(A.hoveralpha,L.linkhoveralpha,75),focusOutAlpha:10},t=S===d?0:90,o={stroke:(0,r.toRaphaelColor)({color:p.fill,alpha:p.alpha,angle:t}),"stroke-linecap":c,fill:"none"},u={stroke:(0,r.toRaphaelColor)({color:p.fill,alpha:p.focusAlpha,angle:t})},h={stroke:(0,r.toRaphaelColor)({color:p.fill,alpha:p.focusOutAlpha,angle:t})},e.attachChild(n["default"],"links",w).setData({from:b,to:y,mode:"normal",linkValue:(0,r.pluckNumber)(A.value),value:N.dataLabels((0,r.pluckNumber)(A.value)),fromValue:x,toValue:k,toolText:C,color:p.linkColor,alpha:p.alpha,curvature:(0,r.clampNumber)((0,r.pluckNumber)(A.curvature,L.linkcurvature,.5),0,1),linkType:(0,r.pluck)(A.type,L.linktype),linkPadding:D,sourceFill:g,targetFill:f,props:A.props,rawCosmetics:p,eventArgs:{color:p.fill,alpha:p.alpha,value:A.value,from:A.props.source.label,to:A.props.target.label},style:{link:{normal:o,focus:u,focusOut:h}}})})),e.attachListeners()};var r=a(274),n=o(a(1433)),l="source",i="target",s="blend",c="butt",d="horizontal"},1430:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,o,s,c,d,u,h,p,g,f,m,v=e.config,b=v.nodes,x=v.enableDrag,k=v.style,y=e.getFromEnv("dataSource").chart,C=k.node.label,w=(0,r.pluckNumber)(y.inheritlabelcolorfromnode,1),A=e.getFromEnv("color-manager"),S=e.getFromEnv("number-formatter"),N=e.getFromEnv("chartConfig"),L=N.dataLabelStyle,D=N.showLegend;b.forEach((function(v,b){m=(0,r.pluck)(v.id,v.label),c={fill:(0,r.pluck)(v.color,y.nodecolor,A.getPlotColor(b)),alpha:(0,r.pluckNumber)(v.alpha,y.nodealpha,100),focusAlpha:(0,r.pluckNumber)(v.hoveralpha,y.nodehoveralpha,100),focusOutAlpha:40,stroke:l},f=(0,r.pluck)(v.labelalpha,y.nodelabelalpha,y.labelalpha,w?c.alpha:100),u=(u=(0,r.pluck)(v.labelbgcolor,y.nodelabelbgcolor,y.labelbgcolor))?(0,r.convertColor)(u,f):r.BLANK,h=(h=(0,r.pluck)(v.labelbordercolor,y.nodelabelbordercolor,y.labelbordercolor))?(0,r.convertColor)(h,f):r.BLANK,d=Object.assign({},L,{labelFill:(0,r.pluck)(v.labelfontcolor,y.nodelabelfontcolor,y.labelfontcolor,y.basefontcolor,w?c.fill:"#5f5f5f"),labelAlpha:f,focusAlpha:c.focusAlpha,focusOutAlpha:c.focusOutAlpha,border:u?C.borderThickness+"px solid":r.BLANK,borderColor:h,backgroundColor:u}),t={cursor:g=x?"move":"default","text-bound":[u,h,C.borderThickness,C.borderPadding,C.borderRadius,C.borderDash],fill:(0,r.convertColor)(d.labelFill,d.labelAlpha)},p=(0,r.pluck)(v.labelposition,y.nodelabelposition,r.preDefStr.POSITION_END).toLowerCase(),i.indexOf(p)<0&&(p=r.preDefStr.POSITION_END),a={fill:(0,r.convertColor)(c.fill,c.alpha),cursor:g,stroke:c.stroke},o={fill:(0,r.convertColor)(c.fill,c.focusAlpha)},s={fill:(0,r.convertColor)(c.fill,c.focusOutAlpha)},e.attachChild(n["default"],"nodes",m).setData({id:m,index:b,mode:"normal",label:(0,r.pluck)(v.label,v.id),value:S.dataLabels(v.props.value),labelPadding:S.getCleanValue((0,r.pluck)(v.labelpadding,y.nodelabelpadding,5)),visible:(0,r.pluckNumber)(v.visible,y.shownodes,1),showLabel:(0,r.pluckNumber)(v.showlabel,y.shownodelabels,1),showValue:(0,r.pluckNumber)(v.showvalue,y.shownodevalues,0),rotateLabel:(0,r.pluckNumber)(v.rotatelabel,y.rotatenodelabels,0),labelPosition:p,valuePosition:(0,r.pluck)(v.labelposition,y.nodelabelposition,r.preDefStr.POSITION_MIDDLE),plotToolText:(0,r.getValidValue)((0,r.parseUnsafeString)((0,r.pluck)(v.tooltext,y.plottooltext))),toolText:(0,r.getValidValue)((0,r.parseUnsafeString)((0,r.pluck)(v.tooltext,v.tooltext))),nodeValue:(0,r.pluckNumber)(v.nodevalue,y.nodevalue,0),nodeDataValue:S.dataLabels(v.nodedatavalue),textOutline:(0,r.pluckNumber)(v.textoutline,y.textoutline,0),rawCosmetics:c,rawLabelCosmetics:d,props:v.props,eventArgs:{color:c.fill,alpha:c.alpha,labelFill:d.labelFill,labelAlpha:d.labelAlpha,value:v.props.value,label:v.label,sourceLinks:v.props.sourceLinks.map((function(e){return e.to})),targetLinks:v.props.targetLinks.map((function(e){return e.from}))},style:{node:{normal:a,focus:o,focusOut:s},label:{normal:t,focus:Object.assign({},t,{fill:(0,r.convertColor)(d.labelFill,d.focusAlpha)}),focusOut:Object.assign({},t,{fill:(0,r.convertColor)(d.labelFill,d.focusOutAlpha)})}}})})),D&&e._addLegend()};var r=a(274),n=o(a(1431)),l="none",i=["start","inside","end"]},1379:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=a(274),n=o(a(1380)),l=function i(e){var t=0;return e.forEach((function(e){var a=e.value?+e.value:0,o=e.category.length>0?i(e.category):a;o>a?e.value=o:(e.value=a,o=a),t+=o})),t};t["default"]=function(e){var t,a=e.getFromEnv("parsedDataSource")||[];a.forEach((function(e){var t=l(e.category);!e.value&&(e.value=0),t>+e.value&&(e.value=t)})),e.config.categories=a,(t=a.length)?(0,r.datasetFactory)(e,n["default"],"dataset",t,[{inputTree:a}]):e.setChartMessage()}},1475:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(466))["default"];t["default"]=r},1311:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(786));t.Spline=r["default"];var n=o(a(1312));t.Logmscolumn2d=n["default"];var l=o(a(1317));t.Logmsline=l["default"];var i=o(a(1319));t.LogStackedColumn2d=i["default"];var s=o(a(789));t.Splinearea=s["default"];var c=o(a(791));t.Msspline=c["default"];var d=o(a(794));t.MSSplineDy=d["default"];var u=o(a(796));t.Mssplinearea=u["default"];var h=o(a(1321));t.Errorbar2d=h["default"];var p=o(a(1325));t.Errorline=p["default"];var g=o(a(1330));t.Errorscatter=g["default"];var f=o(a(1335));t.Inversemsarea=f["default"];var m=o(a(1337));t.Inversemscolumn2d=m["default"];var v=o(a(1339));t.Inversemsline=v["default"];var b=o(a(1341));t.Dragcolumn2d=b["default"];var x=o(a(1353));t.Dragline=x["default"];var k=o(a(1360));t.Kagi=k["default"];var y=o(a(1367));t.WaterFall2D=y["default"];var C=o(a(1368));t.SelectScatter=C["default"];var w=o(a(1372));t.MultilevelPie=w["default"];var A=o(a(1377));t.Sunburst=A["default"];var S=o(a(1382));t.MultiAxisLine=S["default"];var N=o(a(1390));t.MSStepLine=N["default"];var L=o(a(1394));t.DragNode=L["default"];var D=o(a(1405));t.CandleStick=D["default"];var E=o(a(1418));t.BoxAndWhisker2D=E["default"];var T=o(a(1427));t.Sankey=T["default"];var F=o(a(1438));t.HeatMap=F["default"];var P=o(a(1450));t.Radar=P["default"];var _=o(a(1463));t.Chord=_["default"];var V=o(a(1473));t.DragArea=V["default"];var I=o(a(1474)),B=o(a(1475)),M={name:"powercharts",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(I["default"]),e.addDep(B["default"]),e.addDep(r["default"]),e.addDep(n["default"]),e.addDep(i["default"]),e.addDep(l["default"]),e.addDep(s["default"]),e.addDep(d["default"]),e.addDep(c["default"]),e.addDep(u["default"]),e.addDep(h["default"]),e.addDep(p["default"]),e.addDep(g["default"]),e.addDep(f["default"]),e.addDep(m["default"]),e.addDep(v["default"]),e.addDep(b["default"]),e.addDep(x["default"]),e.addDep(k["default"]),e.addDep(y["default"]),e.addDep(C["default"]),e.addDep(w["default"]),e.addDep(A["default"]),e.addDep(S["default"]),e.addDep(N["default"]),e.addDep(L["default"]),e.addDep(D["default"]),e.addDep(E["default"]),e.addDep(T["default"]),e.addDep(F["default"]),e.addDep(P["default"]),e.addDep(_["default"]),e.addDep(V["default"])}};t["default"]=M},1418:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1419))["default"];t["default"]=r},1405:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1406))["default"];t["default"]=r},1463:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1464))["default"];t["default"]=r},1473:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1359))["default"];t["default"]=r},1341:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1342))["default"];t["default"]=r},1353:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1354))["default"];t["default"]=r},1394:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1395))["default"];t["default"]=r},1321:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1322))["default"];t["default"]=r},1325:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1326))["default"];t["default"]=r},1330:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1331))["default"];t["default"]=r},1438:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1439))["default"];t["default"]=r},1335:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1336))["default"];t["default"]=r},1337:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1338))["default"];t["default"]=r},1339:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1340))["default"];t["default"]=r},1360:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1361))["default"];t["default"]=r},1312:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1313))["default"];t["default"]=r},1317:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1318))["default"];t["default"]=r},1319:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1320))["default"];t["default"]=r},1390:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1391))["default"];t["default"]=r},1382:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1383))["default"];t["default"]=r},1372:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1373))["default"];t["default"]=r},1450:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1451))["default"];t["default"]=r},1427:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1428))["default"];t["default"]=r},1368:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1369))["default"];t["default"]=r},1377:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1378))["default"];t["default"]=r},1367:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1362))["default"];t["default"]=r}}])}));
//# sourceMappingURL=http://localhost:3052/4.1.0/map/eval/fusioncharts.powercharts.js.map