-
Notifications
You must be signed in to change notification settings - Fork 2
/
charts.js
21 lines (21 loc) · 210 KB
/
charts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @license
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
*
* This sofware is provided under multiple licenses. Please see below for
* links to appropriate usage.
*
* Free amCharts linkware license. Details and conditions:
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
*
* One of the amCharts commercial licenses. Details and pricing:
* https://www.amcharts.com/online-store/
* https://www.amcharts.com/online-store/licenses-explained/
*
* If in doubt, contact amCharts at contact@amcharts.com
*
* PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
* @hidden
*/
webpackJsonp([4],{104:function(t,e,i){"use strict";i.d(e,"b",function(){return A}),i.d(e,"a",function(){return P});var a=i(0),n=i(119),r=i(9),s=i(11),o=i(117),l=i(89),h=i(109),u=i(128),c=i(167),d=i(7),p=i(240),y=i(8),g=i(1),f=i(241),m=i(4),x=i(5),v=i(3),b=i(6),A=function(t){function e(){var e=t.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),P=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=o.a,e._axisRendererY=l.a,e.className="XYChart",e.maskBullets=!0;var i=e.chartContainer;i.layout="vertical",e.padding(15,15,15,15);var a=i.createChild(r.a);a.shouldClone=!1,a.layout="vertical",a.width=Object(y.c)(100),a.zIndex=1,e.topAxesContainer=a;var n=i.createChild(r.a);n.shouldClone=!1,n.layout="horizontal",n.width=Object(y.c)(100),n.height=Object(y.c)(100),n.zIndex=0,e.yAxesAndPlotContainer=n;var s=i.createChild(r.a);s.shouldClone=!1,s.width=Object(y.c)(100),s.layout="vertical",s.zIndex=1,e.bottomAxesContainer=s;var h=n.createChild(r.a);h.shouldClone=!1,h.layout="horizontal",h.height=Object(y.c)(100),h.contentAlign="right",h.events.on("transformed",e.updateXAxesMargins,e,!1),h.zIndex=1,e.leftAxesContainer=h;var u=n.createChild(r.a);u.shouldClone=!1,u.height=Object(y.c)(100),u.width=Object(y.c)(100),u.background.fillOpacity=0,e.plotContainer=u,e.mouseWheelBehavior="none",e._cursorContainer=u;var c=n.createChild(r.a);c.shouldClone=!1,c.layout="horizontal",c.height=Object(y.c)(100),c.zIndex=1,c.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=c,e.seriesContainer.parent=u,e.bulletsContainer.parent=u;var d=u.createChild(p.a);return d.shouldClone=!1,d.align="right",d.valign="top",d.zIndex=Number.MAX_SAFE_INTEGER,d.marginTop=5,d.marginRight=5,d.hide(0),e.zoomOutButton=d,e._bulletMask=e.plotContainer,e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},e.prototype.draw=function(){t.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},e.prototype.updatePlotElements=function(){x.each(this.series.iterator(),function(t){t.invalidate()})},e.prototype.validateData=function(){0==this._parseDataFrom&&(x.each(this.xAxes.iterator(),function(t){t.dataChangeUpdate()}),x.each(this.yAxes.iterator(),function(t){t.dataChangeUpdate()}),x.each(this.series.iterator(),function(t){t.dataChangeUpdate()})),t.prototype.validateData.call(this)},e.prototype.updateXAxesMargins=function(){var t=this.leftAxesContainer.measuredWidth,e=this.rightAxesContainer.measuredWidth,i=this.bottomAxesContainer;i.paddingLeft==t&&i.paddingRight==e||(i.paddingLeft=t,i.paddingRight=e);var a=this.topAxesContainer;a.paddingLeft==t&&a.paddingRight==e||(a.paddingLeft=t,a.paddingRight=e)},e.prototype.handleXAxisChange=function(t){this.updateXAxis(t.target)},e.prototype.handleYAxisChange=function(t){this.updateYAxis(t.target)},e.prototype.processXAxis=function(t){var e=t.newValue;e.chart=this,e.renderer=new this._axisRendererX,e.axisLetter="X",e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this),e.events.on("startchanged",this.handleXAxisRangeChange,this,!1),e.events.on("endchanged",this.handleXAxisRangeChange,this,!1),e.dataProvider=this,this.updateXAxis(e.renderer),this.processAxis(e)},e.prototype.processYAxis=function(t){var e=t.newValue;e.chart=this,e.renderer=new this._axisRendererY,e.axisLetter="Y",e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this),e.events.on("startchanged",this.handleYAxisRangeChange,this,!1),e.events.on("endchanged",this.handleYAxisRangeChange,this,!1),e.dataProvider=this,this.updateYAxis(e.renderer),this.processAxis(e)},e.prototype.handleXAxisRangeChange=function(){var t=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,t)},e.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var t=!1;x.eachContinue(this.xAxes.iterator(),function(e){return 0==m.round(e.start,3)&&1==m.round(e.end,3)||(t=!0,!1)}),x.eachContinue(this.yAxes.iterator(),function(e){return 0==m.round(e.start,3)&&1==m.round(e.end,3)||(t=!0,!1)}),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},e.prototype.seriesAppeared=function(){var t=!1;return x.each(this.series.iterator(),function(e){if(!e.appeared)return t=!1,!1}),t},e.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},e.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},e.prototype.getCommonAxisRange=function(t){var e,i;return x.each(t.iterator(),function(t){var a=t.start,n=t.end;t.renderer.inversed&&(a=1-t.end,n=1-t.start),(!v.isNumber(e)||a<e)&&(e=a),(!v.isNumber(i)||n>i)&&(i=n)}),{start:e,end:i}},e.prototype.updateXAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.topAxesContainer,e.toFront()):(e.parent=this.bottomAxesContainer,e.toBack()),e.renderer&&e.renderer.processRenderer()},e.prototype.updateYAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.rightAxesContainer,e.toBack()):(e.parent=this.leftAxesContainer,e.toFront()),e.renderer&&e.renderer.processRenderer()},e.prototype.processAxis=function(t){var e=this;t instanceof h.a&&this._dataUsers.moveValue(t);var i=t.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,t.addDisposer(new d.b(function(){e.dataUsers.removeValue(t)})),this.plotContainer.events.on("maxsizechanged",function(){e.inited&&t.invalidateDataItems()},t,!1)},Object.defineProperty(e.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new s.b,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._xAxes},enumerable:!0,configurable:!0}),e.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(e.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new s.b,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1)),this._yAxes},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(e){try{t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;i.xAxis,i.yAxis,void 0==i.fill&&(i.fill=this.colors.next()),void 0==i.stroke&&(i.stroke=i.fill)}catch(t){this.raiseCriticalError(t)}},Object.defineProperty(e.prototype,"cursor",{get:function(){return this._cursor},set:function(t){this._cursor!=t&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=t,t&&(this._disposers.push(t),t.chart=this,t.parent=this._cursorContainer,t.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),t.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),t.events.on("zoomended",this.handleCursorZoomEnd,this,!1),t.events.on("panstarted",this.handleCursorPanStart,this,!1),t.events.on("panning",this.handleCursorPanning,this,!1),t.events.on("panended",this.handleCursorPanEnd,this,!1),t.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),t.events.on("hidden",this.handleHideCursor,this,!1),t.zIndex=Number.MAX_SAFE_INTEGER-1))},enumerable:!0,configurable:!0}),e.prototype.createCursor=function(){return new c.a},e.prototype.handleCursorPositionChange=function(){if(this.cursor.visible&&!this.cursor.isHiding){var t=this.cursor.xPosition,e=this.cursor.yPosition;this.showSeriesTooltip({x:t,y:e}),this.showAxisTooltip(this.xAxes,t),this.showAxisTooltip(this.yAxes,e)}},e.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this.updateSeriesLegend()},e.prototype.updateSeriesLegend=function(){x.each(this.series.iterator(),function(t){t.updateLegendValue()})},e.prototype.hideObjectTooltip=function(t){x.each(t.iterator(),function(t){t.hideTooltip(0)})},e.prototype.showSeriesTooltip=function(t){var e=this;if(t){var i=b.spritePointToSvg({x:-.5,y:-.5},this.plotContainer),a=b.spritePointToSvg({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),n=[],r=0;this.series.each(function(s){s.tooltip.setBounds({x:0,y:0,width:e.pixelWidth,height:e.pixelHeight});var o=s.showTooltipAtPosition(t.x,t.y);o&&m.isInRectangle(o,{x:i.x,y:i.y,width:a.x-i.x,height:a.y-i.y})&&(n.push({point:o,series:s}),r+=o.y)}),n.sort(function(t,e){return t.point.y>e.point.y?1:t.point.y<e.point.y?-1:0});var s=r/n.length,o=b.svgPointToDocument({x:0,y:0},this.svgContainer.SVGContainer).y;if(n.length>0){var l=i.y,h=a.y,u=(b.spritePointToDocument({x:0,y:l},this),!1);if(s>l+(h-l)/2)for(var c=h,d=n.length-1;d>=0;d--){var p=(x=n[d].series).tooltip,y=n[d].point.y;if(p.setBounds({x:0,y:-o,width:this.pixelWidth,height:c+o}),p.invalid&&p.validate(),p.toBack(),(c=b.spritePointToSvg({x:0,y:p.label.pixelY-p.pixelY+y-p.pixelMarginTop},p).y)<-o){u=!0;break}}if(s<=l+(h-l)/2||u)for(var g=l,f=(d=0,n.length);d<f;d++){var x=n[d].series;y=n[d].point.y;(p=x.tooltip).setBounds({x:0,y:g,width:this.pixelWidth,height:h}),p.invalid&&p.validate(),p.toBack(),g=b.spritePointToSvg({x:0,y:p.label.pixelY+p.label.measuredHeight-p.pixelY+y+p.pixelMarginBottom},p).y}}}else this.series.each(function(t){t.hideTooltip()})},e.prototype.showAxisTooltip=function(t,e){var i=this;x.each(t.iterator(),function(t){(i.dataItems.length>0||t.dataItems.length>0)&&t.showTooltipAtPosition(e)})},e.prototype.getUpdatedRange=function(t,e){if(t){var i,a,n=t.renderer.inversed;t.renderer instanceof l.a&&(e=m.invertRange(e)),n?(m.invertRange(e),i=1-t.end,a=1-t.start):(i=t.start,a=t.end);var r=a-i;return{start:i+e.start*r,end:i+e.end*r}}},e.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,i=e.behavior;if("zoomX"==i||"zoomXY"==i){var a=e.xRange;a&&this.xAxes.length>0&&((a=this.getUpdatedRange(this.xAxes.getIndex(0),a)).priority="start",this.zoomAxes(this.xAxes,a))}if("zoomY"==i||"zoomXY"==i){var n=e.yRange;n&&this.yAxes.length>0&&((n=this.getUpdatedRange(this.yAxes.getIndex(0),n)).priority="start",this.zoomAxes(this.yAxes,n))}this.handleHideCursor()},e.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end});var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end})},e.prototype.handleCursorPanEnd=function(t){var e=this.cursor.behavior;if(this._panEndXRange&&("panX"==e||"panXY"==e)){var i=0;(a=this._panEndXRange).start<0&&(i=a.start),a.end>1&&(i=a.end-1),this.zoomAxes(this.xAxes,{start:a.start-i,end:a.end-i},!1,!0),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&("panY"==e||"panXY"==e)){var a;i=0;(a=this._panEndYRange).start<0&&(i=a.start),a.end>1&&(i=a.end-1),this.zoomAxes(this.yAxes,{start:a.start-i,end:a.end-i},!1,!0),this._panEndYRange=void 0,this._panStartYRange=void 0}},e.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},e.prototype.handleCursorPanning=function(t){var e=this.cursor,i=e.behavior,a=e.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var n=this._panStartXRange,r=e.xRange,s=n.end-n.start,o=r.start,l=Math.max(-a,o+n.start),h=Math.min(r.start+n.end,1+a);l<=0&&(h=l+s),h>=1&&(l=h-s);var u={start:l,end:h};this._panEndXRange=u,this.zoomAxes(this.xAxes,u)}if(this._panStartYRange&&("panY"==i||"panXY"==i)){n=this._panStartYRange,r=e.yRange,s=n.end-n.start,o=r.start,l=Math.max(-a,o+n.start),h=Math.min(r.start+n.end,1+a);l<=0&&(h=l+s),h>=1&&(l=h-s);u={start:l,end:h};this._panEndYRange=u,this.zoomAxes(this.yAxes,u)}this.handleHideCursor()},e.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(e.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(t){var e=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=t,t&&(this._disposers.push(t),t.parent=this.topAxesContainer,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toBack(),t.orientation="horizontal",t.events.on("rangechanged",this.handleXScrollbarChange,this,!1),t.adapter.add("positionValue",function(t){var i=e.xAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(t){var e=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=t,t&&(this._disposers.push(t),t.parent=this.rightAxesContainer,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toFront(),t.orientation="vertical",t.events.on("rangechanged",this.handleYScrollbarChange,this,!1),t.adapter.add("positionValue",function(t){var i=e.yAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(t.position)),t}))},enumerable:!0,configurable:!0}),e.prototype.handleXScrollbarChange=function(t){var e=t.target,i=this.zoomAxes(this.xAxes,e.range);e.fixRange(i)},e.prototype.handleYScrollbarChange=function(t){var e=t.target,i=this.zoomAxes(this.yAxes,e.range);e.fixRange(i)},e.prototype.zoomAxes=function(t,e,i,a){var n={start:0,end:1};return this.showSeriesTooltip(),this.dataInvalid||x.each(t.iterator(),function(t){if(t.renderer.inversed&&(e=m.invertRange(e)),t.hideTooltip(0),a){var r=e.end-e.start;e.start=t.roundPosition(e.start+1e-4,0),e.end=e.start+r}var s=t.zoom(e,i,i);t.renderer.inversed&&(s=m.invertRange(s)),n=s}),n},Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=this.plotContainer,i=b.documentPointToSvg(t.point,this.htmlContainer),a=b.svgPointToSprite(i,e),n=t.shift.y,r=this.getCommonAxisRange(this.xAxes),s=this.getCommonAxisRange(this.yAxes),o=this.mouseWheelBehavior;if("panX"==o||"panXY"==o){var l=r.end-r.start,h=Math.max(-0,r.start+.05*n/100),u=Math.min(r.end+.05*n/100,1);h<=0&&(u=h+l),u>=1&&(h=u-l),this.zoomAxes(this.xAxes,{start:h,end:u})}if("panY"==o||"panXY"==o){n*=-1;var c=s.end-s.start,d=Math.max(-0,s.start+.05*n/100),p=Math.min(s.end+.05*n/100,1);d<=0&&(p=d+c),p>=1&&(d=p-c),this.zoomAxes(this.yAxes,{start:d,end:p})}if("zoomX"==o||"zoomXY"==o){var y=a.x/e.maxWidth;h=Math.max(-0,r.start-.05*n/100*y);h=Math.min(h,y);u=Math.min(r.end+.05*n/100*(1-y),1);u=Math.max(u,y),this.zoomAxes(this.xAxes,{start:h,end:u})}if("zoomY"==o||"zoomXY"==o){var g=a.y/e.maxHeight;d=Math.max(-0,s.start-.05*n/100*(1-g));d=Math.min(d,g);p=Math.min(s.end+.05*n/100*g,1);p=Math.max(p,g),this.zoomAxes(this.yAxes,{start:d,end:p})}},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),e.prototype.dataSourceDateFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),x.each(this.series.iterator(),function(t){e=i.populateDataSourceFields(e,t.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},e.prototype.dataSourceNumberFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),x.each(this.series.iterator(),function(t){e=i.populateDataSourceFields(e,t.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},e.prototype.processConfig=function(e){if(e){var i=[],a=[];if(v.hasValue(e.xAxes)&&v.isArray(e.xAxes))for(var n=0,r=e.xAxes.length;n<r;n++){if(!e.xAxes[n].type)throw Error("[XYChart error] No type set for xAxes["+n+"].");v.hasValue(e.xAxes[n].axisRanges)&&(i.push({axisRanges:e.xAxes[n].axisRanges,index:n}),delete e.xAxes[n].axisRanges)}if(v.hasValue(e.yAxes)&&v.isArray(e.yAxes))for(n=0,r=e.yAxes.length;n<r;n++){if(!e.yAxes[n].type)throw Error("[XYChart error] No type set for yAxes["+n+"].");v.hasValue(e.yAxes[n].axisRanges)&&(a.push({axisRanges:e.yAxes[n].axisRanges,index:n}),delete e.yAxes[n].axisRanges)}if(v.hasValue(e.series)&&v.isArray(e.series))for(n=0,r=e.series.length;n<r;n++)e.series[n].type=e.series[n].type||"LineSeries";if(v.hasValue(e.cursor)&&!v.hasValue(e.cursor.type)&&(e.cursor.type="XYCursor"),v.hasValue(e.scrollbarX)&&!v.hasValue(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),v.hasValue(e.scrollbarY)&&!v.hasValue(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),t.prototype.processConfig.call(this,e),a.length)for(n=0,r=a.length;n<r;n++)this.yAxes.getIndex(a[n].index).config={axisRanges:a[n].axisRanges};if(i.length)for(n=0,r=i.length;n<r;n++)this.xAxes.getIndex(i[n].index).config={axisRanges:i[n].axisRanges}}},e.prototype.configOrder=function(e,i){return e==i?0:"scrollbarX"==e?1:"scrollbarX"==i?-1:"scrollbarY"==e?1:"scrollbarY"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.createSeries=function(){return new u.a},Object.defineProperty(e.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(t){var e=this;this._zoomOutButton=t,t&&t.events.on("hit",function(){e.zoomAxes(e.xAxes,{start:0,end:1}),e.zoomAxes(e.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.xAxes.copyFrom(e.xAxes),this.yAxes.copyFrom(e.yAxes),this.zoomOutButton.copyFrom(e.zoomOutButton)},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof f.a&&e.scrollbarChart.disposeData();var i=this.scrollbarY;i&&i instanceof f.a&&i.scrollbarChart.disposeData(),this.xAxes.each(function(t){t.disposeData()}),this.yAxes.each(function(t){t.disposeData()})},e.prototype.addData=function(e,i){t.prototype.addData.call(this,e,i),this.scrollbarX instanceof f.a&&this.scrollbarX.scrollbarChart.addData(e,i),this.scrollbarY instanceof f.a&&this.scrollbarY.scrollbarChart.addData(e,i)},e}(n.a);g.b.registeredClasses.XYChart=P},109:function(t,e,i){"use strict";i.d(e,"b",function(){return d}),i.d(e,"a",function(){return p});var a=i(0),n=i(164),r=i(1),s=i(26),o=i(237),l=i(4),h=i(3),u=i(5),c=i(28),d=function(t){function e(){var e=t.call(this)||this;return e.adapter=new c.a(e),e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"category",{get:function(){return this.adapter.isEnabled("category")?this.adapter.apply("category",this.properties.category):this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),e}(n.b),p=function(t){function e(){var e=t.call(this)||this;return e.dataItemsByCategory=new s.a,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme(),e}return a.c(e,t),e.prototype.createDataItem=function(){return new d},e.prototype.createAxisBreak=function(){return new o.a},e.prototype.validateDataRange=function(){var i=this;t.prototype.validateDataRange.call(this),u.each(this._series.iterator(),function(t){t.xAxis instanceof e&&t.yAxis instanceof e?t.invalidateDataRange():(t.start=i.start,t.end=i.end,i.axisBreaks.length>0&&t.invalidateDataRange())})},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this);var i=this.dataItems.length,a=l.fitToRange(Math.floor(this.start*i-1),0,i),n=l.fitToRange(Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var r=this.renderer.axisLength/this.renderer.minGridDistance,s=Math.min(this.dataItems.length,Math.ceil((n-a)/r));if(this._startIndex=Math.floor(a/s)*s,this._endIndex=Math.ceil(this.end*i),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=s,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),a=l.max(0,this._startIndex-this._frequency),n=l.min(this.dataItems.length,this._endIndex+this._frequency);for(var o=0,h=0;h<a;h++){(c=this.dataItems.getIndex(h)).__disabled=!0}h=n;for(var u=this.dataItems.length;h<u;h++){(c=this.dataItems.getIndex(h)).__disabled=!0}for(h=a;h<n;h++)if(h<this.dataItems.length){var c=this.dataItems.getIndex(h);if(h/this._frequency==Math.round(h/this._frequency))this.isInBreak(h)||(this.appendDataItem(c),this.validateDataElement(c,o)),o++;else this.validateDataElement(c,o),c.__disabled=!0}this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,o+1,this.dataItems.length),this.axisBreaks.each(function(t){var i=t.adjustedStartValue,a=t.adjustedEndValue;if(l.intersect({start:i,end:a},{start:e._startIndex,end:e._endIndex}))for(var n=l.fitToRange(Math.ceil(e._frequency/t.breakSize),1,a-i),r=0,s=i;s<=a;s+=n){var o=e.dataItems.getIndex(s);e.appendDataItem(o),e.validateDataElement(o,r),r++}}),this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},e.prototype.validateDataElement=function(e,i,a){t.prototype.validateDataElement.call(this,e);var n=this.renderer;h.isNumber(a)||(a=this.categoryToIndex(e.category));var r=this.categoryToIndex(e.endCategory);h.isNumber(r)||(r=a);var s,o,l,u=this.indexToPosition(a,e.locations.category),c=this.indexToPosition(r,e.locations.endCategory);e.position=u,e.isRange?(s=r,o=this.indexToPosition(a,e.locations.category),l=this.indexToPosition(s,e.locations.endCategory)):(s=a+this._frequency,o=this.indexToPosition(a,e.axisFill.location),l=this.indexToPosition(s,e.axisFill.location)),e.point=n.positionToPoint(u);var d=e.tick;d&&!d.disabled&&n.updateTickElement(d,u,c);var p=e.grid;p&&!p.disabled&&n.updateGridElement(p,u,c);var y=e.label;y&&!y.disabled&&(e.isRange&&void 0!=y.text||(e.text=e.text),n.updateLabelElement(y,u,c),(e.label.measuredWidth>this.ghostLabel.measuredWidth||e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=e.label.currentText));var g=e.axisFill;g&&!g.disabled&&(n.updateFillElement(g,o,l),e.isRange||this.fillRule(e,i));var f=e.mask;f&&n.updateFillElement(f,o,l)},e.prototype.processDataItem=function(e,i){t.prototype.processDataItem.call(this,e,i);var a=this.dataItemsByCategory.getKey(e.category);a!=e&&this.dataItems.remove(a),this.dataItemsByCategory.setKey(e.category,e)},e.prototype.indexToPosition=function(t,e){h.isNumber(e)||(e=.5);var i=this.startIndex,a=this.endIndex,n=this.adjustDifference(i,a),r=this.startLocation;n-=r,n-=1-this.endLocation;var s=this.axisBreaks;return u.eachContinue(s.iterator(),function(e){var n=e.adjustedStartValue,r=e.adjustedEndValue;if(t<i)return!1;if(l.intersect({start:n,end:r},{start:i,end:a})){n=Math.max(i,n),r=Math.min(a,r);var s=e.breakSize;t>r?i+=(r-n)*(1-s):t<n||(t=n+(t-n)*s)}return!0}),l.round((t+e-r-i)/n,5)},e.prototype.categoryToPosition=function(t,e){var i=this.categoryToIndex(t);return this.indexToPosition(i,e)},e.prototype.categoryToPoint=function(t,e){var i=this.categoryToPosition(t,e),a=this.renderer.positionToPoint(i),n=this.renderer.positionToAngle(i);return{x:a.x,y:a.y,angle:n}},e.prototype.anyToPoint=function(t,e){return this.categoryToPoint(t,e)},e.prototype.anyToPosition=function(t,e){return this.categoryToPosition(t,e)},e.prototype.categoryToIndex=function(t){var e=this.dataItemsByCategory.getKey(t);if(e)return e.index},e.prototype.zoomToCategories=function(t,e){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1)},e.prototype.getAnyRangePath=function(t,e,i,a){var n=this.categoryToPosition(t,i),r=this.categoryToPosition(e,a);return this.getPositionRangePath(n,r)},e.prototype.roundPosition=function(t,e){var i=this.positionToIndex(t);return this.indexToPosition(i,e)},e.prototype.getSeriesDataItem=function(t,e){return t.dataItems.getIndex(this.positionToIndex(e))},e.prototype.getX=function(t,e,i){var a;return h.hasValue(e)&&(a=this.categoryToPosition(t.categories[e],i)),h.isNaN(a)?this.basePoint.x:this.renderer.positionToPoint(a).x},e.prototype.getY=function(t,e,i){var a;return h.hasValue(e)&&(a=this.categoryToPosition(t.categories[e],i)),h.isNaN(a)?this.basePoint.y:this.renderer.positionToPoint(a).y},e.prototype.getAngle=function(t,e,i,a){return this.positionToAngle(this.categoryToPosition(t.categories[e],i))},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.adapter.apply("getTooltipText",e.category)},e.prototype.positionToIndex=function(t){t=l.round(t,10);var e=this.startIndex,i=this.endIndex,a=i-e,n=this.axisBreaks,r=null;return u.eachContinue(n.iterator(),function(n){var s=n.startPosition,o=n.endPosition,h=n.adjustedStartValue,u=n.adjustedEndValue;h=l.max(h,e),u=l.min(u,i);var c=n.breakSize;if(a-=(u-h)*(1-c),t>o)e+=(u-h)*(1-c);else if(!(t<s)){var d=(t-s)/(o-s);return r=h+Math.round(d*(u-h)),!1}return!0}),h.isNumber(r)||(r=Math.floor(t*a+e)),r>=i&&r--,r},e.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(e.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this),this.renderer.baseGrid.disabled=!0},e}(n.a);r.b.registeredClasses.CategoryAxis=p,r.b.registeredClasses.CategoryAxisDataItem=d},115:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var a=i(0),n=i(153),r=i(1),s=i(4),o=i(3),l=i(6),h=function(t){function e(){var e=t.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){this.setPropertyValue("relativeRotation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),l.relativeToValue(this.radius,t)*e},e.prototype.fixPoint=function(t,e){var i=s.DEGREES*Math.atan2(t.y,t.x);this.invalid&&this.validate();var a=this.relativeRotation;this.dy=-this._measuredHeight*(1-(t.y+e)/(2*e)),this.dx=-this._measuredWidth*(1-(t.x+e)/(2*e));var n=this.pixelRadius(e);if(o.isNumber(a)){var r=this.bbox.width,l=this.bbox.height;i>90||i<-90?-90==a&&(a=90,r=0):(-90==a&&(l=-l),90==a&&(a=-90,r=0,l=-l)),this.rotation=a+i+90;var h=s.sin(a)/2,u=s.cos(a)/2,c=this.rotation;this.dx=l*h*s.sin(c)-r*u*s.cos(c),this.dy=-l*h*s.cos(c)-r*u*s.sin(c);var d=this.pixelPaddingBottom,p=this.pixelPaddingTop,y=this.pixelPaddingLeft,g=this.pixelPaddingRight;this.inside?i>90||i<-90?n-=(d+p)*s.cos(a)+(y+g)*s.sin(a):n+=(d+this.bbox.height+p)*s.cos(a)+(y+g+this.bbox.width)*s.sin(a):n+=(l+d+p)*s.cos(a)+(r+y+g)*s.sin(a)}return this.fdx=this.dx,this.fdy=this.dy,t.x+=s.cos(i)*n,t.y+=s.sin(i)*n,t},e}(n.a);r.b.registeredClasses.AxisLabelCircular=h},128:function(t,e,i){"use strict";i.d(e,"b",function(){return v}),i.d(e,"a",function(){return b});var a=i(0),n=i(93),r=i(10),s=i(61),o=i(26),l=i(7),h=i(109),u=i(166),c=i(1),d=i(5),p=i(4),y=i(6),g=i(3),f=i(16),m=i(18),x=i(12),v=function(t){function e(){var e=t.call(this)||this;return e.className="XYSeriesDataItem",e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setProperty("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setProperty("openCategoryY",t)},enumerable:!0,configurable:!0}),e.prototype.getMin=function(t,e,i){var a,n=this;return g.isNumber(i)||(i=0),f.each(t,function(t){var r;r=e?n.getWorkingValue(t):n.getValue(t),((r+=i)<a||!g.isNumber(a))&&(a=r)}),a},e.prototype.getMax=function(t,e,i){var a,n=this;return g.isNumber(i)||(i=0),f.each(t,function(t){var r;r=e?n.getWorkingValue(t):n.getValue(t),((r+=i)>a||!g.isNumber(a))&&(a=r)}),a},e}(n.b),b=function(t){function e(){var e=t.call(this)||this;return e._xAxis=new l.d,e._yAxis=new l.d,e.className="XYSeries",e.isMeasured=!1,e.mainContainer.mask=new r.a,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e.tooltip.pointerOrientation="horizontal",e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),g.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},e.prototype.createDataItem=function(){return new v},e.prototype.dataChangeUpdate=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},e.prototype.validateData=function(){if(this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),t.prototype.validateData.call(this),this.updateItemReaderText(),!g.hasValue(this.dataFields[this._xField])||!g.hasValue(this.dataFields[this._yField]))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.')},e.prototype.processDataItem=function(e,i){try{t.prototype.processDataItem.call(this,e,i),e.events.disable(),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),e.events.enable(),this.setInitialWorkingValues(e)}catch(t){this._chart.raiseCriticalError(t)}},e.prototype.setInitialWorkingValues=function(t){},e.prototype.disposeData=function(){if(t.prototype.disposeData.call(this),this.xAxis){var e=this.dataItemsByAxis.getKey(this.xAxis.uid);e&&e.clear()}if(this.yAxis){var i=this.dataItemsByAxis.getKey(this.yAxis.uid);i&&i.clear()}},e.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis,i=t.axisFieldName,a=i+"X",n="open"+y.capitalize(i)+"X",r=e.axisFieldName,s=r+"Y",o="open"+y.capitalize(r)+"Y";this._xField=a,this._yField=s,this.dataFields[n]&&(this._xOpenField=n),this.dataFields[o]&&(this._yOpenField=o),this.dataFields[o]||this.baseAxis!=this.yAxis||(this._yOpenField=s),this.dataFields[n]||this.baseAxis!=this.xAxis||(this._xOpenField=a),this.stacked&&this.baseAxis==this.xAxis&&(this._xOpenField=a),this.stacked&&this.baseAxis==this.yAxis&&(this._yOpenField=s),this.xAxis instanceof h.a&&this.yAxis instanceof h.a&&(this._yOpenField||(this._yOpenField=s)),this._xValueFields=[],this._yValueFields=[],this.addValueField(this.xAxis,this._xValueFields,this._xField),this.addValueField(this.xAxis,this._xValueFields,this._xOpenField),this.addValueField(this.yAxis,this._yValueFields,this._yField),this.addValueField(this.yAxis,this._yValueFields,this._yOpenField)},e.prototype.addValueField=function(t,e,i){t instanceof s.a&&g.hasValue(this.dataFields[i])&&-1==e.indexOf(i)&&e.push(i)},e.prototype.setCategoryAxisField=function(t,e){g.hasValue(this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},e.prototype.setDateAxisField=function(t,e){g.hasValue(this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.createMask()},e.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();d.each(this.axisRanges.iterator(),function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)}),this.mainContainer.mask.path=t}},e.prototype.getMaskPath=function(){return x.rectToPath({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength})},e.prototype.getAxisField=function(t){return t==this.xAxis?this.xField:t==this.yAxis?this.yField:void 0},e.prototype.validateDataItems=function(){this.xAxis.updateAxisBySeries(),this.yAxis.updateAxisBySeries(),t.prototype.validateDataItems.call(this),this.xAxis.postProcessSeriesDataItems(),this.yAxis.postProcessSeriesDataItems()},e.prototype.validateDataRange=function(){this.xAxis.dataRangeInvalid&&this.xAxis.validateDataRange(),this.yAxis.dataRangeInvalid&&this.yAxis.validateDataRange(),t.prototype.validateDataRange.call(this)},e.prototype.validate=function(){this.xAxis.invalid&&this.xAxis.validate(),this.yAxis.invalid&&this.yAxis.validate(),this._showBullets=!0;var e=this.minBulletDistance;g.isNumber(e)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<e&&(this._showBullets=!1),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var t=this.chart.xAxes.getIndex(0);if(!t)throw Error("There are no X axes on chart.");this.xAxis=t}return this._xAxis.get()}},set:function(t){var e=this._xAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._xAxis.dispose(),e.series.removeValue(this)),this._xAxis.set(t,t.registerSeries(this)),this.dataItemsByAxis.setKey(t.uid,new o.a),this.invalidateData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var t=this.chart.yAxes.getIndex(0);if(!t)throw Error("There are no Y axes on chart.");this.yAxis=t}return this._yAxis.get()}},set:function(t){var e=this._yAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._yAxis.dispose(),e.series.removeValue(this)),this._yAxis.set(t,t.registerSeries(this)),this.dataItemsByAxis.setKey(t.uid,new o.a),this.invalidateData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseAxis",{get:function(){return this._baseAxis||(this.yAxis instanceof u.a&&(this._baseAxis=this.yAxis),this.xAxis instanceof u.a&&(this._baseAxis=this.xAxis),this.yAxis instanceof h.a&&(this._baseAxis=this.yAxis),this.xAxis instanceof h.a&&(this._baseAxis=this.xAxis),this._baseAxis||(this._baseAxis=this.xAxis)),this._baseAxis},set:function(t){this._baseAxis!=t&&(this._baseAxis=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.processValues=function(e){t.prototype.processValues.call(this,e);for(var i=this.dataItems,a=1/0,n=-1/0,r=1/0,s=-1/0,o=this.startIndex,l=this.endIndex,h=o;h<l;h++){var u=i.getIndex(h);this.getStackValue(u,e);var c=u.getValue("valueX","stack"),d=u.getValue("valueY","stack");a=p.min(u.getMin(this._xValueFields,e,c),a),r=p.min(u.getMin(this._yValueFields,e,d),r),n=p.max(u.getMax(this._xValueFields,e,c),n),s=p.max(u.getMax(this._yValueFields,e,d),s),this.stacked&&(this.baseAxis==this.xAxis&&(r=p.min(r,d)),this.baseAxis==this.yAxis&&(a=p.min(a,c)))}this.xAxis.processSeriesDataItems(),this.yAxis.processSeriesDataItems();var y=this.xAxis.uid,g=this.yAxis.uid;e||this._tmin.getKey(y)==a&&this._tmax.getKey(y)==n&&this._tmin.getKey(g)==r&&this._tmax.getKey(g)==s||(this._tmin.setKey(y,a),this._tmax.setKey(y,n),this._tmin.setKey(g,r),this._tmax.setKey(g,s),this.stackedSeries&&this.stackedSeries.processValues(!1),this.dispatchImmediately("extremeschanged")),this._smin.getKey(y)==a&&this._smax.getKey(y)==n&&this._smin.getKey(g)==r&&this._smax.getKey(g)==s||(this._smin.setKey(y,a),this._smax.setKey(y,n),this._smin.setKey(g,r),this._smax.setKey(g,s),this.appeared&&this.dispatchImmediately("selectionextremeschanged"))},e.prototype.hideTooltip=function(){t.prototype.hideTooltip.call(this),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i,n,r;if(this.visible&&!this.isHiding){var s=this._xAxis.get(),o=this._yAxis.get();if(s==this.baseAxis&&(i=s.getSeriesDataItem(this,s.toAxisPosition(t),this.snapTooltip)),o==this.baseAxis&&(i=o.getSeriesDataItem(this,o.toAxisPosition(e),this.snapTooltip)),this.returnBulletDefaultState(i),i&&i.visible){this.updateLegendValue(i),this.tooltipDataItem=i;var l=this.tooltipXField,h=this.tooltipYField;if(g.hasValue(i[l])&&g.hasValue(i[h])){var u=this.getPoint(i,l,h,i.locations[l],i.locations[h]);if(u){this.tooltipX=u.x,this.tooltipY=u.y,this._prevTooltipDataItem!=i&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:i}),this._prevTooltipDataItem=i);try{for(var c=a.g(i.bullets),d=c.next();!d.done;d=c.next()){d.value[1].isHover=!0}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return this.showTooltip()?y.spritePointToSvg({x:u.x,y:u.y},this):void 0}}}if(!this.tooltipText)return}this.hideTooltip()},e.prototype.returnBulletDefaultState=function(t){if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var e=a.g(this._prevTooltipDataItem.bullets),i=e.next();!i.done;i=e.next()){var n=i.value[1];n.isDisposed()?this._prevTooltipDataItem=void 0:n.isHover=!1}}catch(t){r={error:t}}finally{try{i&&!i.done&&(s=e.return)&&s.call(e)}finally{if(r)throw r.error}}var r,s},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,a=e.xField;g.hasValue(a)||(a=this.xField);var n=e.yField;if(g.hasValue(n)||(n=this.yField),this.xAxis instanceof s.a&&!i.hasValue([a])||this.yAxis instanceof s.a&&!i.hasValue([n]))e.visible=!1;else{var r=this.getBulletLocationX(e,a),o=this.getBulletLocationY(e,n),l=this.getPoint(i,a,n,r,o);if(l){var h=l.x,u=l.y;if(g.isNumber(e.locationX)&&this.xOpenField!=this.xField)h-=(h-this.xAxis.getX(i,this.xOpenField))*e.locationX;if(g.isNumber(e.locationY)&&this.yOpenField!=this.yField)u-=(u-this.yAxis.getY(i,this.yOpenField))*e.locationY;e.moveTo({x:h,y:u})}else e.visible=!1}},e.prototype.getBulletLocationX=function(t,e){var i=t.locationX,a=t.dataItem;return g.isNumber(i)||(i=a.workingLocations[e]),i},e.prototype.getBulletLocationY=function(t,e){var i=t.locationY,a=t.dataItem;return g.isNumber(i)||(i=a.workingLocations[e]),i},Object.defineProperty(e.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){this.setPropertyValue("stacked",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i,a=this;this.xAxis instanceof s.a&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof s.a&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var n,r=this.startIndex,o=this.endIndex,l=0,h=this.defaultState.transitionDuration;g.isNumber(e)&&(h=e),d.each(d.indexed(this.dataItems.iterator()),function(t){var e=t[0],s=t[1];a.sequencedInterpolation&&h>0&&(l=a.sequencedInterpolationDelay*e+h*(e-r)/(o-r)),n=s.show(h,l,i)});var u=t.prototype.show.call(this,e);return n&&!n.isFinished()&&(u=n),u},e.prototype.hide=function(e){var i,a,n=this,r=this.xAxis;r instanceof s.a&&r!=this.baseAxis&&(i=this._xValueFields,a=this.stacked||r.minZoomed<0&&r.maxZoomed>0||this.stackedSeries?0:r.min);var o=this.yAxis;o instanceof s.a&&o!=this.baseAxis&&(i=this._yValueFields,a=this.stacked||o.minZoomed<0&&o.maxZoomed>0||this.stackedSeries?0:o.min);var l=this.startIndex,h=this.endIndex,u=this.hiddenState.transitionDuration;g.isNumber(e)&&(u=e);var c,p=0;d.each(d.indexed(this.dataItems.iterator()),function(t){var e=t[0],r=t[1];0==u?r.hide(0,0,a,i):(n.sequencedInterpolation&&u>0&&(p=n.sequencedInterpolationDelay*e+u*(e-l)/(h-l)),c=r.hide(u,p,a,i))});var y=t.prototype.hide.call(this,u);return y&&!y.isFinished()&&y.delay(p),c&&!c.isFinished()&&(y=c),this.validateDataElements(),y},e.prototype.handleDataItemWorkingValueChange=function(e,i){t.prototype.handleDataItemWorkingValueChange.call(this,e,i);var a=this.baseAxis.series;d.each(a.iterator(),function(t){t.stacked&&t.invalidateProcessedData()})},e.prototype.getStackValue=function(t,e){var i=this;if(this.stacked){var a,n=this.chart,r=n.series.indexOf(this);this.xAxis!=this.baseAxis&&this.xAxis instanceof s.a&&(a=this.xField),this.yAxis!=this.baseAxis&&this.yAxis instanceof s.a&&(a=this.yField),t.setCalculatedValue(a,0,"stack"),d.eachContinue(n.series.range(0,r).backwards().iterator(),function(n){if(n.xAxis==i.xAxis&&n.yAxis==i.yAxis){n.stackedSeries=i;var r=n.dataItems.getIndex(t.index);if(r&&r.hasValue(i._xValueFields)&&r.hasValue(i._yValueFields)){var s=t.getValue(a),o=void 0;if(o=e?r.getWorkingValue(a)+r.getValue(a,"stack"):r.getValue(a)+r.getValue(a,"stack"),s>=0&&o>=0||s<0&&o<0)return t.setCalculatedValue(a,o,"stack"),!1}else if(!n.stacked)return!1}return!0})}},Object.defineProperty(e.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),e.prototype.min=function(t){return this._tmin.getKey(t.uid)},e.prototype.max=function(t){return this._tmax.getKey(t.uid)},e.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return g.isNumber(e)||(e=this.min(t)),e},e.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return g.isNumber(e)||(e=this.max(t)),e},e.prototype.processConfig=function(e){if(e){if(g.hasValue(e.xAxis)&&g.isString(e.xAxis)&&this.map.hasKey(e.xAxis)&&(e.xAxis=this.map.getKey(e.xAxis)),g.hasValue(e.yAxis)&&g.isString(e.yAxis)&&this.map.hasKey(e.yAxis)&&(e.yAxis=this.map.getKey(e.yAxis)),g.hasValue(e.axisRanges)&&g.isArray(e.axisRanges))for(var i=0,a=e.axisRanges.length;i<a;i++){var n=e.axisRanges[i];g.hasValue(n.type)||(n.type="AxisDataItem"),g.hasValue(n.axis)&&g.isString(n.axis)&&this.map.hasKey(n.axis)?n.component=this.map.getKey(n.axis):g.hasValue(n.component)&&g.isString(n.component)&&this.map.hasKey(n.component)&&(n.component=this.map.getKey(n.component))}if(!g.hasValue(e.dataFields)||!g.isObject(e.dataFields))throw Error("`dataFields` is not set for series ["+this.name+"]")}t.prototype.processConfig.call(this,e)},e.prototype.getPoint=function(t,e,i,a,n,r,s){var o=this.xAxis.getX(t,e,a),l=this.yAxis.getY(t,i,n);return{x:o=p.fitToRange(o,-2e4,2e4),y:l=p.fitToRange(l,-2e4,2e4)}},e.prototype.updateItemReaderText=function(){var t="";m.each(this.dataFields,function(e,i){t+="{"+e+"} "}),this.itemReaderText=t},e}(n.a);c.b.registeredClasses.XYSeries=b,c.b.registeredClasses.XYSeriesDataItem=v},166:function(t,e,i){"use strict";i.d(e,"b",function(){return y}),i.d(e,"a",function(){return g});var a=i(0),n=i(61),r=i(11),s=i(26),o=i(238),l=i(1),h=i(157),u=i(3),c=i(5),d=i(4),p=i(18),y=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return a.c(e,t),Object.defineProperty(e.prototype,"date",{get:function(){return this.dates.date},set:function(t){this.setDate("date",t),this.value=t.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(t){this.setDate("endDate",t),this.endValue=t.getTime()},enumerable:!0,configurable:!0}),e}(n.b),g=function(t){function e(){var e=t.call(this)||this;return e.gridIntervals=new r.b,e.dateFormats=new s.a,e.periodChangeDateFormats=new s.a,e._baseIntervalReal={timeUnit:"day",count:1},e._minDifference={},e.fillRule=function(t){var e=t.value,i=t.component,a=i._gridInterval,n=h.getDuration(a.timeUnit,a.count);Math.round((e-i.min)/n)/2==Math.round(Math.round((e-i.min)/n)/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),e.axisFieldName="date",e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_hour")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},e.prototype.createDataItem=function(){return new y},e.prototype.createAxisBreak=function(){return new o.a},e.prototype.validateDataItems=function(){var e=this.start,i=this.end,a=(this.max-this.min)/this.baseDuration;t.prototype.validateDataItems.call(this),this.maxZoomFactor=(this.max-this.min)/this.baseDuration,e+=(i-e)*(1-a/((this.max-this.min)/this.baseDuration)),this.zoom({start:e,end:i},!1,!0)},e.prototype.handleSelectionExtremesChange=function(){},e.prototype.calculateZoom=function(){var e=this;t.prototype.calculateZoom.call(this);var i=this.chooseInterval(0,this.adjustDifference(this._minZoomed,this._maxZoomed),this._gridCount);h.getDuration(i.timeUnit,i.count)<this.baseDuration&&(i=a.a({},this.baseInterval)),this._gridInterval=i,this._gridDate=h.round(new Date(this.min),i.timeUnit),this._nextGridUnit=h.getNextUnit(i.timeUnit),this._intervalDuration=h.getDuration(i.timeUnit,i.count);var n=Math.ceil(this._difference/this._intervalDuration);n=Math.floor(this.start*n)-3,h.add(this._gridDate,i.timeUnit,n*i.count),c.each(this.series.iterator(),function(t){if(t.baseAxis==e){var i=t.getAxisField(e),a=t.dataItems.findClosestIndex(e._minZoomed,function(t){return t[i]},"left"),n=t.dataItems.findClosestIndex(e._maxZoomed-1,function(t){return t[i]},"left")+1;t.startIndex=a,t.endIndex=n}})},e.prototype.validateData=function(){t.prototype.validateData.call(this),u.isNumber(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(e.prototype,"minDifference",{get:function(){var t=this,e=Number.MAX_VALUE;return this.series.each(function(i){e>t._minDifference[i.uid]&&(e=t._minDifference[i.uid])}),e!=Number.MAX_VALUE&&0!=e||(e=h.getDuration("day")),e},enumerable:!0,configurable:!0}),e.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},e.prototype.postProcessSeriesDataItems=function(){var t=this;c.each(this.series.iterator(),function(e){c.each(e.dataItems.iterator(),function(e){t.postProcessSeriesDataItem(e)})}),this.addEmptyUnitsBreaks()},e.prototype.postProcessSeriesDataItem=function(t){var e=this,i=this.baseInterval;p.each(t.dates,function(a){var n=t.getDate(a),r=h.round(h.copy(n),i.timeUnit,i.count),s=h.add(h.copy(r),i.timeUnit,i.count);t.setCalculatedValue(a,r.getTime(),"open"),t.setCalculatedValue(a,s.getTime(),"close"),t.component.dataItemsByAxis.getKey(e.uid).setKey(r.getTime().toString(),t)})},e.prototype.addEmptyUnitsBreaks=function(){var t=this;if(this.skipEmptyPeriods&&u.isNumber(this.min)&&u.isNumber(this.max)){var e=this.baseInterval.timeUnit,i=this.baseInterval.count;this.axisBreaks.clear();for(var a=h.round(new Date(this.min),e,i),n=void 0,r=function(){h.add(a,e,i);var r=a.getTime(),o=r.toString();c.contains(s.series.iterator(),function(e){return!!e.dataItemsByAxis.getKey(t.uid).getKey(o)})?n&&(n.endDate=new Date(r-1),n=void 0):n||((n=s.axisBreaks.create()).startDate=new Date(r))},s=this;a.getTime()<this.max-this.baseDuration;)r()}},e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;c.each(i.iterator(),function(t){var i=Math.ceil(e._gridCount*(Math.min(e.end,t.endPosition)-Math.max(e.start,t.startPosition))/(e.end-e.start));t.gridInterval=e.chooseInterval(0,t.adjustedEndValue-t.adjustedStartValue,i);var a=h.round(new Date(t.adjustedStartValue),t.gridInterval.timeUnit,t.gridInterval.count);a.getTime()>t.startDate.getTime()&&h.add(a,t.gridInterval.timeUnit,t.gridInterval.count),t.gridDate=a})},e.prototype.getGridDate=function(t,e){var i=this._gridInterval.timeUnit,a=this._gridInterval.count;h.round(t,i);var n=t.getTime(),r=h.copy(t),s=h.add(r,i,e).getTime(),o=this.isInBreak(s);o&&(r=new Date(o.endDate.getTime()),h.round(r,i,a),r.getTime()<o.endDate.getTime()&&h.add(r,i,a),s=r.getTime());var l=this.adjustDifference(n,s);return Math.round(l/h.getDuration(i))<a?this.getGridDate(t,e+a):r},e.prototype.getBreaklessDate=function(t,e,i){var a=new Date(t.endValue);h.round(a,e,i),h.add(a,e,i);var n=a.getTime();return(t=this.isInBreak(n))?this.getBreaklessDate(t,e,i):a},e.prototype.validateAxisElements=function(){var t=this;if(u.isNumber(this.max)&&u.isNumber(this.min)){this.calculateZoom();var e=this._gridDate.getTime(),i=this._gridInterval.timeUnit,a=this._gridInterval.count,n=h.copy(this._gridDate),r=this._dataItemsIterator;this.resetIterators();for(var s=function(){var t=o.getGridDate(new Date(n),a);e=t.getTime();var s=h.copy(t);s=h.add(s,i,a);var l=o.dateFormats.getKey(i);o.markUnitChange&&n&&h.checkChange(t,n,o._nextGridUnit)&&"year"!==i&&(l=o.periodChangeDateFormats.getKey(i));var u=o.dateFormatter.format(t,l),c=r.find(function(t){return t.text===u});o.appendDataItem(c),c.axisBreak=void 0,c.date=t,c.endDate=s,c.text=u,n=t,o.validateDataElement(c)},o=this;e<=this._maxZoomed;)s();var l=this.renderer;c.each(this.axisBreaks.iterator(),function(e){if(e.breakSize>0){var i=e.gridInterval.timeUnit,a=e.gridInterval.count;if(d.getDistance(e.startPoint,e.endPoint)>4*l.minGridDistance)for(var n,s=e.gridDate.getTime(),o=0,u=function(){var l=h.copy(e.gridDate);if(s=h.add(l,i,a*o).getTime(),o++,s>e.adjustedStartValue&&s<e.adjustedEndValue){var u=h.copy(l);u=h.add(u,i,a);var c=t.dateFormats.getKey(i);t.markUnitChange&&n&&h.checkChange(l,n,t._nextGridUnit)&&"year"!==i&&(c=t.periodChangeDateFormats.getKey(i));var d=t.dateFormatter.format(l,c),p=r.find(function(t){return t.text===d});t.appendDataItem(p),p.axisBreak=e,e.dataItems.moveValue(p),p.date=l,p.endDate=u,p.text=d,n=l,t.validateDataElement(p)}};s<=e.adjustedMax;)u()}})}},e.prototype.validateDataElement=function(t){if(u.isNumber(this.max)&&u.isNumber(this.min)){var e=this.renderer,i=t.value,a=t.endValue;u.isNumber(a)||(a=i);var n=this.valueToPosition(i),r=this.valueToPosition(a);this._gridInterval.count>1&&(r=n+(r-n)/this._gridInterval.count),t.position=n;var s=t.tick;s&&!s.disabled&&e.updateTickElement(s,n,r);var o=t.grid;o&&!o.disabled&&e.updateGridElement(o,n,r);var l=t.axisFill;l&&!l.disabled&&(e.updateFillElement(l,n,r),t.isRange||this.fillRule(t));var h=t.mask;h&&e.updateFillElement(h,n,r);var c=t.label;if(c&&!c.disabled){var d=c.location;0==d&&(d=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||t.isRange?0:.5),e.updateLabelElement(c,n,r,d)}}},Object.defineProperty(e.prototype,"baseDuration",{get:function(){return h.getDuration(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),e.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},e.prototype.fixMin=function(t){return h.round(new Date(t),this.baseInterval.timeUnit,this.baseInterval.count).getTime()+this.baseDuration*this.startLocation},e.prototype.fixMax=function(t){return h.round(new Date(t),this.baseInterval.timeUnit,this.baseInterval.count).getTime()+this.baseDuration*this.endLocation},e.prototype.chooseInterval=function(t,e,i){var n=this.gridIntervals,r=n.getIndex(t),s=h.getDuration(r.timeUnit,r.count),o=n.length-1;if(t>=o)return a.a({},n.getIndex(o));var l=Math.ceil(e/s);return e<s&&t>0?a.a({},n.getIndex(t-1)):l<=i?a.a({},n.getIndex(t)):t+1<n.length?this.chooseInterval(t+1,e,i):a.a({},n.getIndex(t))},e.prototype.formatLabel=function(t){return this.dateFormatter.format(t)},e.prototype.dateToPosition=function(t){return this.valueToPosition(t.getTime())},e.prototype.anyToPosition=function(t){return t instanceof Date?this.dateToPosition(t):this.valueToPosition(t)},e.prototype.dateToPoint=function(t){var e=this.dateToPosition(t),i=this.renderer.positionToPoint(e),a=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:a}},e.prototype.anyToPoint=function(t){return t instanceof Date?this.dateToPoint(t):this.valueToPoint(t)},e.prototype.positionToDate=function(t){return new Date(this.positionToValue(t))},e.prototype.getX=function(t,e,i){var a=this.getTimeByLocation(t,e,i);return u.isNumber(a)||(a=this.baseValue),this.renderer.positionToPoint(this.valueToPosition(a)).x},e.prototype.getY=function(t,e,i){var a=this.getTimeByLocation(t,e,i),n=t.getValue("valueX","stack");return u.isNumber(a)||(a=this.baseValue),this.renderer.positionToPoint(this.valueToPosition(a+n)).y},e.prototype.getAngle=function(t,e,i,a){var n=this.getTimeByLocation(t,e,i),r=t.getValue(a,"stack");return u.isNumber(n)||(n=this.baseValue),this.positionToAngle(this.valueToPosition(n+r))},e.prototype.getTimeByLocation=function(t,e,i){if(u.hasValue(e)){u.isNumber(i)||(i=t.workingLocations[e],u.isNumber(i)||(i=0));var a=t.values[e].open,n=t.values[e].close;return u.isNumber(a)&&u.isNumber(n)?a+(n-a)*i:void 0}},e.prototype.processSeriesDataItem=function(t,e){var i,a=t.component,n=t["date"+e];if(n){i=n.getTime();var r,s=t["openDate"+e],o=this._prevSeriesTime;if(s&&(r=s.getTime()),u.isNumber(r)){var l=Math.abs(i-r);this._minDifference[a.uid]>l&&(this._minDifference[a.uid]=l)}var h=i-o;h>0&&this._minDifference[a.uid]>h&&(this._minDifference[a.uid]=h),this._prevSeriesTime=i}},e.prototype.updateAxisBySeries=function(){t.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=h.getDuration("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),this.minDifference>=h.getDuration("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this._baseIntervalReal=e},Object.defineProperty(e.prototype,"baseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){this._baseInterval=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(this.setPropertyValue("skipEmptyPeriods",t)&&this.invalidateData(),t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e,i=this.positionToDate(t);if(i=h.round(i,this.baseInterval.timeUnit,this.baseInterval.count),u.hasValue(this.tooltipDateFormat))e=this.dateFormatter.format(i,this.tooltipDateFormat);else{var a=this.dateFormats.getKey(this.baseInterval.timeUnit);e=a?this.dateFormatter.format(i,a):this.getPositionLabel(t)}return this.adapter.apply("getTooltipText",e)},e.prototype.roundPosition=function(t,e){var i=this.baseInterval,a=i.timeUnit,n=i.count,r=this.positionToDate(t);if(h.round(r,a,n),e>0&&h.add(r,a,e*n),this.isInBreak(r.getTime()))for(;r.getTime()<this.max&&(h.add(r,a,n),this.isInBreak(r.getTime())););return this.dateToPosition(r)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getSeriesDataItem=function(t,e,i){var a=this.positionToValue(e),n=h.round(new Date(a),this.baseInterval.timeUnit,this.baseInterval.count),r=t.dataItemsByAxis.getKey(this.uid).getKey(n.getTime().toString());if(!r&&i){for(var s=0,o=void 0,l=new Date(n.getTime());l.getTime()>this.minZoomed&&(l=h.add(l,this.baseInterval.timeUnit,-this.baseInterval.count),!(o=t.dataItemsByAxis.getKey(this.uid).getKey(l.getTime().toString())))&&!(++s>5e3););for(var u=0,c=void 0,d=new Date(n.getTime());d.getTime()<this.maxZoomed&&(d=h.add(d,this.baseInterval.timeUnit,this.baseInterval.count),!(c=t.dataItemsByAxis.getKey(this.uid).getKey(d.getTime().toString())))&&!(++u>5e3););if(o&&!c)return o;if(!o&&c)return c;if(o&&c)return s<u?o:c}return r},e.prototype.getPositionLabel=function(t){var e=this.positionToDate(t);return this.dateFormatter.format(e,this.getCurrentLabelFormat())},e.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.zoomToDates=function(t,e,i,a){t=this.dateFormatter.parse(t),e=this.dateFormatter.parse(e),this.zoomToValues(t.getTime(),e.getTime(),i,a)},e.prototype.asIs=function(e){return"baseInterval"==e||t.prototype.asIs.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,e._baseInterval&&(this.baseInterval=e.baseInterval)},e.prototype.showTooltipAtPosition=function(e,i){var a=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var n,r=h.round(this.positionToDate(e),this.baseInterval.timeUnit,1).getTime();this.series.each(function(t){var i=a.getSeriesDataItem(t,e,!0);if(i){var s=void 0;t.xAxis==a&&(s=i.dateX),t.yAxis==a&&(s=i.dateY),n?Math.abs(n.getTime()-r)>Math.abs(s.getTime()-r)&&(n=s):n=s}}),n&&(n=new Date(n.getTime()+this.baseDuration/2),e=this.dateToPosition(n))}t.prototype.showTooltipAtPosition.call(this,e,!0);var s=this.toGlobalPosition(e);this.series.each(function(t){t.xAxis==a&&t.showTooltipAtPosition(s,void 0),t.yAxis==a&&t.showTooltipAtPosition(void 0,s)})},Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e}(n.a);l.b.registeredClasses.DateAxis=g,l.b.registeredClasses.DateAxisDataItem=y},167:function(t,e,i){"use strict";i.d(e,"a",function(){return y});var a=i(0),n=i(239),r=i(10),s=i(7),o=i(1),l=i(14),h=i(13),u=i(4),c=i(6),d=i(3),p=i(12),y=function(t){function e(){var e=t.call(this)||this;e._lineX=new s.d,e._lineY=new s.d,e._xAxis=new s.d,e._yAxis=new s.d,e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new h.a,a=e.createChild(r.a);a.shouldClone=!1,a.fillOpacity=.2,a.fill=i.getFor("alternativeBackground"),a.isMeasured=!1,a.interactionsEnabled=!1,e.selection=a,e._disposers.push(e.selection);var n=e.createChild(r.a);n.shouldClone=!1,n.stroke=i.getFor("grid"),n.fill=Object(l.c)(),n.strokeDasharray="3,3",n.isMeasured=!1,n.strokeOpacity=.4,n.interactionsEnabled=!1,e.lineX=n,e._disposers.push(e.lineX);var o=e.createChild(r.a);return o.shouldClone=!1,o.stroke=i.getFor("grid"),o.fill=Object(l.c)(),o.strokeDasharray="3,3",o.isMeasured=!1,o.strokeOpacity=.4,o.interactionsEnabled=!1,e.lineY=o,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.applyTheme(),e}return a.c(e,t),e.prototype.updateSize=function(){this.lineX&&(this.lineX.path=p.moveTo({x:0,y:0})+p.lineTo({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=p.moveTo({x:0,y:0})+p.lineTo({x:this.innerWidth,y:0}))},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point;this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY);var i=this.selection,a=Math.min(e.x,t.x),n=Math.min(e.y,t.y),r=u.round(Math.abs(t.x-e.x),this._positionPrecision),s=u.round(Math.abs(t.y-e.y),this._positionPrecision);switch(this.behavior){case"zoomX":n=0,s=this.pixelHeight;break;case"zoomY":a=0,r=this.pixelWidth;break;case"selectX":n=0,s=this.pixelHeight;break;case"selectY":a=0,r=this.pixelWidth}i.x=a,i.y=n,i.path=p.rectangle(r,s),i.validatePosition()}else this.selection.hide()}},e.prototype.fixPoint=function(t){return t.x=Math.max(0,t.x),t.y=Math.max(0,t.y),t.x=Math.min(this.pixelWidth,t.x),t.y=Math.min(this.pixelHeight,t.y),t},e.prototype.triggerMoveReal=function(e){t.prototype.triggerMoveReal.call(this,e),this.updateLinePositions(e),this.downPoint&&u.getDistance(this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},e.prototype.updateLinePositions=function(t){t=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=t.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=t.y),this.updateSelection()},e.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if(this.fitsToBounds(e)){this.downPoint=e,this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,a=this.downPoint.x,n=this.downPoint.y;this._usesSelection&&(i.x=a,i.y=n,i.path="",i.show()),t.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},e.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},e.prototype.triggerUpReal=function(e){this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),this.getRanges(),"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide(),t.prototype.triggerUpReal.call(this,e)),this.downPoint=void 0,this.updateSelection()},e.prototype.getPanningRanges=function(){var t=u.round(this.downPoint.x/this.innerWidth,5),e=u.round(this.downPoint.y/this.innerHeight,5),i=t-u.round(this.point.x/this.innerWidth,5),a=-e+u.round(this.point.y/this.innerHeight,5);this.xRange={start:i,end:1+i},this.yRange={start:a,end:1+a},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},e.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var t=u.round(this.downPoint.x/this.innerWidth,5),e=u.round(this.upPoint.x/this.innerWidth,5),i=u.round(this.downPoint.y/this.innerHeight,5),a=u.round(this.upPoint.y/this.innerHeight,5);this.xRange={start:u.min(t,e),end:u.max(t,e)},this.yRange={start:u.min(i,a),end:u.max(i,a)}},Object.defineProperty(e.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,-1!=t.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=t.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=t.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){if(this._xAxis.get()!=t){var e=t.chart;this._xAxis.set(t,new s.c([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),t.events.on("validated",e.handleCursorPositionChange,e,!1)]))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){if(this._yAxis.get()!=t){var e=t.chart;this._yAxis.set(t,new s.c([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),t.events.on("validated",e.handleCursorPositionChange,e,!1)]))}},enumerable:!0,configurable:!0}),e.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,i=c.svgPointToSprite({x:e.pixelX,y:e.pixelY},this),a=i.x;if(this.lineX&&(this.lineX.x=a,this.fitsToBounds(i)||this.hide()),this.xAxis&&this.fullWidthLineX){var n=this.xAxis.currentItemStartPoint,r=this.xAxis.currentItemEndPoint;if(n&&r){this.lineX.x=a;var s=r.x-n.x;this.lineX.path=p.rectangle(s,this.innerHeight,-s/2)}}},e.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,i=c.svgPointToSprite({x:e.pixelX,y:e.pixelY},this),a=i.y;if(this.lineY&&(this.lineY.y=a,this.fitsToBounds(i)||this.hide()),this.yAxis&&this.fullWidthLineY){var n=this.yAxis.currentItemStartPoint,r=this.yAxis.currentItemEndPoint;if(n&&r){this.lineY.y=a;var s=r.y-n.y;this.lineY.path=p.rectangle(this.innerWidth,s,0,-s/2)}}},Object.defineProperty(e.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineX.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.interactionsEnabled=!1,t.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineY.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.parent=this,t.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t,t&&(t.element=this.paper.add("path"),t.parent=this)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){e&&(d.hasValue(e.xAxis)&&d.isString(e.xAxis)&&this.map.hasKey(e.xAxis)&&(e.xAxis=this.map.getKey(e.xAxis)),d.hasValue(e.yAxis)&&d.isString(e.yAxis)&&this.map.hasKey(e.yAxis)&&(e.yAxis=this.map.getKey(e.yAxis))),t.prototype.processConfig.call(this,e)},e}(n.a);o.b.registeredClasses.XYCursor=y},170:function(t,e,i){"use strict";i.d(e,"b",function(){return x}),i.d(e,"a",function(){return v});var a=i(0),n=i(128),r=i(10),s=i(9),o=i(11),l=i(171),h=i(61),u=i(166),c=i(1),d=i(71),p=i(37),y=i(102),g=i(5),f=i(18),m=i(3),x=function(t){function e(){var e=t.call(this)||this;return e.className="LineSeriesDataItem",e}return a.c(e,t),e}(n.b),v=function(t){function e(){var e=t.call(this)||this;return e.minDistance=.5,e.segments=new o.e(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new o.c(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new g.ListIterator(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.segmentsContainer=e.mainContainer.createChild(s.a),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),m.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},e.prototype.createSegment=function(){return new l.a},e.prototype.createDataItem=function(){return new x},e.prototype.setInitialWorkingValues=function(t){if(this.appeared&&this.visible){var e=this._yAxis.get(),i=this._xAxis.get(),a=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==i&&e instanceof h.a){var n=e.minZoomed;a&&(n=a.values.valueY.workingValue),t.setWorkingValue("valueY",n,0),t.setWorkingValue("valueY",t.values.valueY.value),i instanceof u.a&&(t.setWorkingLocation("dateX",-.5,0),t.setWorkingLocation("dateX",.5))}if(this.baseAxis==e&&i instanceof h.a){var r=i.minZoomed;a&&(r=a.values.valueX.workingValue),t.setWorkingValue("valueX",r,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof u.a&&(t.setWorkingLocation("dateY",-.5,0),t.setWorkingLocation("dateY",.5))}}},e.prototype.updateLegendValue=function(e){t.prototype.updateLegendValue.call(this,e),e&&e.segment&&(this.tooltipColorSource=e.segment)},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this._segmentsIterator.reset(),this.openSegment(this._workingStartIndex),g.each(this.axisRanges.iterator(),function(t){e.openSegment(e._workingStartIndex,t)}),g.each(this._segmentsIterator.iterator(),function(t){t.__disabled=!0})},e.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,i=this.startIndex-1;i>=0;i--){if((n=this.dataItems.getIndex(i))&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){t=i;break}}i=this.endIndex;for(var a=this.dataItems.length;i<a;i++){var n;if((n=this.dataItems.getIndex(i))&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){e=i+1;break}}this._workingStartIndex=t,this._workingEndIndex=e},e.prototype.openSegment=function(t,e){var i,a=[],n=this._workingEndIndex,s=!1,o=this._segmentsIterator.getFirst();o.__disabled=!1,e?(o.parent=e.contents,f.copyProperties(e.contents,o,r.b)):(f.copyProperties(this,o,r.b),o.filters.clear(),o.parent=this.segmentsContainer);for(var l=t;l<n;l++){var h=this.dataItems.getIndex(l);if(h.segment=o,h.hasProperties&&(l==t?this.updateSegmentProperties(h.properties,o):s=this.updateSegmentProperties(h.properties,o,!0)),h.hasValue(this._xValueFields)&&h.hasValue(this._yValueFields))this.addPoints(a,h,this.xField,this.yField);else{if(l==t)continue;if(!this.connect){i=l;break}}if(i=l,s)break}this.closeSegment(o,a,t,i,e)},e.prototype.addPoints=function(t,e,i,a,n){var r=this.getPoint(e,i,a,e.workingLocations[i],e.workingLocations[a]);n||(e.point=r),t.push(r)},e.prototype.closeSegment=function(t,e,i,a,n){var r=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var s=a;s>=i;s--){var o=this.dataItems.getIndex(s);o.hasValue(this._xValueFields)&&o.hasValue(this._yValueFields)&&this.addPoints(r,o,this.xOpenField,this.yOpenField,!0)}else{var l=this.baseAxis,h=e.length,u=this.xAxis,c=this.yAxis;l==u?(r.push({x:e[h-1].x,y:c.basePoint.y}),r.push({x:e[0].x,y:c.basePoint.y})):(r.push({x:u.basePoint.x,y:e[h-1].y}),r.push({x:u.basePoint.x,y:e[0].y}))}this.drawSegment(t,e,r),a<this._workingEndIndex-1&&this.openSegment(a,n)},e.prototype.drawSegment=function(t,e,i){t.drawSegment(e,i,this.tensionX,this.tensionY)},e.prototype.updateSegmentProperties=function(t,e,i){var a=!1;return f.each(t,function(t,n){if(m.hasValue(n)){var r=e[t],s=void 0;r&&(s=r.toString?r.toString():r);var o=void 0;n&&(o=n.toString?n.toString():n),r==n||void 0!=s&&void 0!=o&&s==o||(i||(e[t]=n),a=!0)}}),a},Object.defineProperty(e.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(t){this.setPropertyValue("connect",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=this,i=t.pixelWidth,a=t.pixelHeight;t.disposeChildren();var n=t.createChild(d.a);if(n.shouldClone=!1,f.copyProperties(this,n,r.b),n.x2=i,n.y=a/2,n.visible=!0,this.fillOpacity>0){var s=t.createChild(y.a);f.copyProperties(this,s,r.b),s.width=i,s.height=a,s.y=0,s.strokeOpacity=0,s.visible=!0,n.y=0}g.eachContinue(this.bullets.iterator(),function(n){if(n.copyToLegendMarker){var r=!1;if(g.each(n.children.iterator(),function(t){if(t instanceof p.a)return r=!0,!0}),!r){var s=n.clone();return s.parent=t,s.isMeasured=!0,s.tooltipText=void 0,s.x=i/2,e.fillOpacity>0?s.y=0:s.y=a/2,s.visible=!0,m.hasValue(s.fill)||(s.fill=e.fill),m.hasValue(s.stroke)||(s.stroke=e.stroke),!1}}})},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.segments.clear()},e}(n.a);c.b.registeredClasses.LineSeries=v,c.b.registeredClasses.LineSeriesDataItem=x},171:function(t,e,i){"use strict";i.d(e,"a",function(){return u});var a=i(0),n=i(9),r=i(10),s=i(1),o=i(12),l=i(18),h=i(72),u=function(t){function e(){var e=t.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(r.a);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var a=e.createChild(r.a);return e.strokeSprite=a,a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e._disposers.push(a),e}return a.c(e,t),e.prototype.drawSegment=function(t,e,i,a){if(!this.disabled)if(t.length>0&&e.length>0){var n=o.moveTo({x:t[0].x-.2,y:t[0].y-.2})+o.moveTo(t[0])+new h.b(i,a).smooth(t);0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=n),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(n+=o.lineTo(e[0])+new h.b(i,a).smooth(e),n+=o.lineTo(t[0]),n+=o.closePath(),this.fillSprite.path=n)}else this.fillSprite.path="",this.strokeSprite.path=""},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e);var i=this.strokeSprite;l.copyProperties(e,i.properties,r.b),i.fillOpacity=0;var a=this.fillSprite;l.copyProperties(e,a.properties,r.b),a.strokeOpacity=0},e}(n.a);s.b.registeredClasses.LineSeriesSegment=u},172:function(t,e,i){"use strict";i.d(e,"b",function(){return d}),i.d(e,"a",function(){return p});var a=i(0),n=i(129),r=i(75),s=i(115),o=i(250),l=i(1),h=i(4),u=i(3),c=i(8),d=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,a,n){return t.prototype.hide.call(this,e,i,0,["value","radiusValue"])},e.prototype.show=function(e,i,a){return t.prototype.show.call(this,e,i,["value","radiusValue"])},e}(n.b),p=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.startAngle=-90,e.endAngle=270,e.labels.template.radius=Object(c.c)(5),e.applyTheme(),e}return a.c(e,t),e.prototype.createSlice=function(){return new r.a},e.prototype.createTick=function(){return new o.a},e.prototype.createLabel=function(){return new s.a},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),u.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},e.prototype.createDataItem=function(){return new d},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#')}% ({value.value})",t.states.create("hover").properties.scale=1.05,t.defaultState.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",function(t){t.target.hideTooltip()}),t.states.create("active").properties.shiftRadius=.1},e.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=h.getArcRect(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e).values.radiusValue.percent;i>this._maxRadiusPercent&&(this._maxRadiusPercent=i)}t.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(t,e){var i=(t.slice.middleAngle+360)%360,a=(e.slice.middleAngle+360)%360;return i>270&&(i-=360),a>270&&(a-=360),i<a?-1:1}),this._leftItems.sort(function(t,e){return(t.slice.middleAngle+360)%360<(e.slice.middleAngle+360)%360?1:-1}),this.arrangeLabels(this._rightItems),this.arrangeLabels(this._leftItems))},e.prototype.validateDataElement=function(e){if(this.pixelRadius>0){e.values.value.percent;var i=e.slice;i.radius=this.pixelRadius,u.isNumber(e.radiusValue)&&(i.radius*=e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof c.a||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=e.values.value.percent*(this.endAngle-this.startAngle)/100;var a=e.label,n=e.tick;n.slice=i,n.label=a;var r=(i.middleAngle+360)%360,s=void 0;if(this.alignLabels){var o=a.pixelRadius(i.radius),l=n.length+o;a.verticalCenter="middle";var h=this._arcRect;r>=270||r<=90?(l+=(h.width+h.x)*this.pixelRadius,a.horizontalCenter="left",this._rightItems.push(e)):(l-=h.x*this.pixelRadius,a.horizontalCenter="right",this._leftItems.push(e),l*=-1);var d=i.radius+n.length+o;s={x:l,y:i.iy*d}}else{l=i.ix*i.radius;var p=i.iy*i.radiusY;s=a.fixPoint({x:l,y:p},i.radius)}a.moveTo(s),this._currentStartAngle+=i.arc,t.prototype.validateDataElement.call(this,e)}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",h.normalizeAngle(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,a=e.locationX;u.isNumber(a)||(a=.5);var n=e.locationY;u.isNumber(n)||(n=1);var r=i.startAngle+i.arc*a,s=n*i.radius;e.x=s*h.cos(r),e.y=s*h.sin(r)},e.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,i=e.dataItem;if(i){var a=i.label;a&&(a.dx=a.fdx+e.dx+e.pixelX,a.dy=a.fdy+e.dy+e.pixelY)}}},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?h.getArcRect(t.startAngle,t.endAngle,this.pixelRadius):h.getArcRect(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),e}(n.a);l.b.registeredClasses.PieSeries=p,l.b.registeredClasses.PieSeriesDataItem=d},177:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(62),r=i(71),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="Candlestick",e.layout="none",e}return a.c(e,t),e.prototype.createAssets=function(){t.prototype.createAssets.call(this),this.lowLine=this.createChild(r.a),this.lowLine.shouldClone=!1,this.highLine=this.createChild(r.a),this.highLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},e}(n.a);s.b.registeredClasses.Candlestick=o},211:function(t,e,i){"use strict";i.d(e,"a",function(){return y});var a=i(0),n=i(114),r=i(212),s=i(213),o=i(115),l=i(1),h=i(8),u=i(4),c=i(12),d=i(6),p=i(3),y=function(t){function e(){var e=t.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=Object(h.c)(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return a.c(e,t),e.prototype.setAxis=function(e){var i=this;t.prototype.setAxis.call(this,e),e.isMeasured=!1;var a=e.tooltip;a.adapter.add("dx",function(t,e){var a=d.svgPointToSprite({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(a.y,a.x))-a.x}),a.adapter.add("dy",function(t,e){var a=d.svgPointToSprite({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(a.y,a.x))-a.y})},e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return d.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return d.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=this.positionToCoordinate(t),i=this.startAngle+(this.endAngle-this.startAngle)*e/this.axisLength;return{x:this.pixelRadius*u.cos(i),y:this.pixelRadius*u.sin(i)}},e.prototype.positionToAngle=function(t){var e,i=this.axis,a=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?this.startAngle+(i.end-t)*a:this.startAngle+(t-i.start)*a,u.round(e,3)},e.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,i=this.endAngle-e;this.line.path=c.moveTo({x:t*u.cos(e),y:t*u.sin(e)})+c.arcTo(e,i,t,t)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var n=u.DEGREES*Math.atan2(a.y,a.x),r=d.relativeRadiusToValue(p.hasValue(t.radius)?t.radius:Object(h.c)(100),this.pixelRadius),s=d.relativeRadiusToValue(t.innerRadius,this.pixelRadius);t.zIndex=0;var o=d.relativeRadiusToValue(p.isNumber(s)?s:this.innerRadius,this.pixelRadius,!0);t.path=c.moveTo({x:o*u.cos(n),y:o*u.sin(n)})+c.lineTo({x:r*u.cos(n),y:r*u.sin(n)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var n=this.pixelRadius,r=u.DEGREES*Math.atan2(a.y,a.x),s=t.length;t.inside&&(s=-s),t.zIndex=1,t.path=c.moveTo({x:n*u.cos(r),y:n*u.sin(r)})+c.lineTo({x:(n+s)*u.cos(r),y:(n+s)*u.sin(r)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,a){p.hasValue(a)||(a=t.location),e+=(i-e)*a;var n=this.positionToPoint(e);t.fixPoint(n,this.pixelRadius),t.zIndex=2,this.positionItem(t,n),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e,i,a,n){var r="";if(p.isNumber(t)&&p.isNumber(e)){p.hasValue(i)||(i=this.radius),t=u.max(t,this.axis.start),(e=u.min(e,this.axis.end))<t&&(e=t);var s=d.relativeRadiusToValue(i,this.pixelRadius),o=d.relativeRadiusToValue(a,this.pixelRadius,!0),l=this.positionToAngle(t),h=this.positionToAngle(e)-l;r=c.arc(l,h,s,o,s,n)}return r},e.prototype.createGrid=function(){return new s.a},e.prototype.createFill=function(t){return new r.a(t)},e.prototype.createLabel=function(){return new o.a},e.prototype.pointToPosition=function(t){var e=u.fitAngleToRange(u.getAngle(t),this.startAngle,this.endAngle);return this.coordinateToPosition((e-this.startAngle)/360*this.axisLength)},e}(n.a);l.b.registeredClasses.AxisRendererCircular=y},212:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var a=i(0),n=i(152),r=i(8),s=i(1),o=i(3),l=function(t){function e(e){var i=t.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=Object(r.c)(100),i.applyTheme(),i}return a.c(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,o.hasValue(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.AxisFillCircular=l},213:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var a=i(0),n=i(103),r=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.GridCircular=s},215:function(t,e,i){"use strict";i.d(e,"b",function(){return x}),i.d(e,"a",function(){return v});var a=i(0),n=i(104),r=i(8),s=i(242),o=i(9),l=i(96),h=i(1),u=i(243),c=i(211),d=i(244),p=i(6),y=i(5),g=i(3),f=i(4),m=i(12),x=function(t){function e(){var e=t.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),v=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=c.a,e._axisRendererY=d.a,e.innerRadiusModifyer=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=Object(r.c)(80),e.innerRadius=0;var i=e.plotContainer.createChild(o.a);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e._cursorContainer=i,e._bulletMask=i.createChild(l.a),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),g.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},e.prototype.processAxis=function(e){t.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},e.prototype.handleXAxisRangeChange=function(){t.prototype.handleXAxisRangeChange.call(this),y.each(this.yAxes.iterator(),function(t){t.invalidate()})},e.prototype.handleYAxisRangeChange=function(){t.prototype.handleYAxisRangeChange.call(this),y.each(this.xAxes.iterator(),function(t){t.invalidate()})},e.prototype.createCursor=function(){return new u.a},e.prototype.processConfig=function(e){if(e&&(g.hasValue(e.cursor)&&!g.hasValue(e.cursor.type)&&(e.cursor.type="RadarCursor"),g.hasValue(e.series)&&g.isArray(e.series)))for(var i=0,a=e.series.length;i<a;i++)e.series[i].type=e.series[i].type||"RadarSeries";t.prototype.processConfig.call(this,e)},e.prototype.beforeDraw=function(){t.prototype.beforeDraw.call(this);this.radarContainer;var e=this.plotContainer,i=f.getArcRect(this.startAngle,this.endAngle,1),a={x:0,y:0,width:0,height:0},n=e.innerWidth/i.width,s=e.innerHeight/i.height,o=this.innerRadius;if(o instanceof r.a){var l=o.value,h=Math.min(n,s);l=Math.max(h*l,h-Math.min(e.innerHeight,e.innerWidth))/h,a=f.getArcRect(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/o.value,o=Object(r.c)(100*l)}i=f.getCommonRectangle([i,a]);var u=Math.min(e.innerWidth/i.width,e.innerHeight/i.height),c=2*p.relativeRadiusToValue(this.radius,u)||0,d=c/2,g=this.startAngle,x=this.endAngle;this._pixelInnerRadius=p.relativeRadiusToValue(o,d),this._bulletMask.path=m.arc(g,x-g,d,this._pixelInnerRadius),y.each(this.xAxes.iterator(),function(t){t.renderer.useChartAngles&&(t.renderer.startAngle=g,t.renderer.endAngle=x),t.width=c,t.height=c,t.renderer.pixelRadiusReal=d,t.renderer.innerRadius=o}),y.each(this.yAxes.iterator(),function(t){t.renderer.startAngle=g,t.renderer.endAngle=x,t.width=c,t.height=c,t.renderer.pixelRadiusReal=d,t.renderer.innerRadius=o});var v=this.cursor;v&&(v.width=c,v.height=c,v.startAngle=g,v.endAngle=x),this.radarContainer.definedBBox={x:d*i.x,y:d*i.y,width:d*i.width,height:d*i.height},this.radarContainer.validatePosition()},e.prototype.createSeries=function(){return new s.a},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.updateXAxis=function(t){t&&t.processRenderer()},e.prototype.updateYAxis=function(t){t&&t.processRenderer()},e}(n.a);h.b.registeredClasses.RadarChart=v},237:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var a=i(0),n=i(127),r=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="CategoryAxisBreak",e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(t){this.setPropertyValue("startCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(t){this.setPropertyValue("endCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startValue",{get:function(){var t=this.getPropertyValue("startCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){var t=this.getPropertyValue("endCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.CategoryAxisBreak=s},238:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var a=i(0),n=i(165),r=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(t){this.setPropertyValue("startDate",t)&&(this.startValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(t){this.setPropertyValue("endDate",t)&&(this.endValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.DateAxisBreak=s},239:function(t,e,i){"use strict";i.d(e,"a",function(){return d});var a=i(0),n=i(9),r=i(34),s=i(1),o=i(8),l=i(70),h=i(4),u=i(6),c=i(3),d=function(t){function e(){var e=t.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=Object(o.c)(100),e.height=Object(o.c)(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var i=Object(r.b)();return e._disposers.push(i.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(i.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(i.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return a.c(e,t),e.prototype.handleCursorMove=function(t){if(this.interactionsEnabled){if(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Object(r.b)().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=u.documentPointToSprite(t.pointer.point,this);return"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),"soft"==this._stick&&this._stickPoint&&(this.fitsToBounds(e)||(e=this._stickPoint)),this.triggerMove(e),e}this.isHidden&&this.isHiding||this.hide()}},e.prototype.hideReal=function(e){if("hard"!=this._stick&&"soft"!=this._stick||!this._stickPoint)return t.prototype.hideReal.call(this,e)},e.prototype.triggerMove=function(t,e){t.x=h.round(t.x,1),t.y=h.round(t.y,1),e&&(this._stick=e),"hard"!=e&&"soft"!=e||(this._stickPoint=t),this.triggerMoveReal(t)},e.prototype.triggerMoveReal=function(t){this.point.x==t.x&&this.point.y==t.y||(this.point=t,this.invalidatePosition(),this.fitsToBounds(t)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},e.prototype.triggerDown=function(t){this.triggerDownReal(t)},e.prototype.triggerDownReal=function(t){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),Object(r.b)().setGlobalStyle(l.a.grabbing)}},e.prototype.triggerUp=function(t){this.triggerUpReal(t)},e.prototype.triggerUpReal=function(t){this.updatePoint(this.upPoint);var e=Object(r.b)();if(h.getDistance(this.upPoint,this.downPoint)>e.getHitOption(this.interactions,"hitTolerance"))switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomended");break;case"select":this.dispatchImmediately("selectended");break;case"pan":this.dispatchImmediately("panended"),e.setGlobalStyle(l.a.default)}else this.dispatchImmediately("behaviorcanceled"),e.setGlobalStyle(l.a.default);this.downPoint=void 0,this.updateSelection()},e.prototype.updateSelection=function(){},e.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},e.prototype.handleCursorDown=function(t){if(this.interactionsEnabled&&Object(r.b)().isLocalElement(t.pointer,this.paper.svg,this.uid)){var e=u.documentPointToSprite(t.pointer.point,this);t.event.cancelable&&this.fitsToBounds(e)&&t.event.preventDefault(),this.triggerMove(e),this.triggerDown(e)}},e.prototype.updatePoint=function(t){},e.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&(("zoom"==this._generalBehavior||"pan"==this._generalBehavior)&&this.downPoint||Object(r.b)().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=u.documentPointToSprite(t.pointer.point,this);this.triggerMove(e),this.triggerUp(e)}},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,c.hasValue(this._chart.plotContainer)&&Object(r.b)().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.Cursor=d},241:function(t,e,i){"use strict";i.d(e,"a",function(){return g});var a=i(0),n=i(95),r=i(10),s=i(11),o=i(7),l=i(104),h=i(1),u=i(13),c=i(169),d=i(5),p=i(3),y=i(12),g=function(t){function e(){var e=t.call(this)||this;e._chart=new o.d,e.className="XYChartScrollbar";var i=new u.a;e.padding(0,0,0,0);var a=e.createChild(l.a);a.shouldClone=!1,a.margin(0,0,0,0),a.padding(0,0,0,0),a.interactionsEnabled=!1,e._scrollbarChart=a,e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var n=e.createChild(r.a);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.fill=i.getFor("background"),n.fillOpacity=.8,n.interactionsEnabled=!1,n.isMeasured=!1,n.toBack(),e._unselectedOverlay=n,e._disposers.push(e._unselectedOverlay),a.toBack(),e.background.cornerRadius(0,0,0,0);var s=e.thumb.background;s.cornerRadius(0,0,0,0),s.fillOpacity=0,s.fill=i.getFor("background");var h=s.states.getKey("hover");h&&(h.properties.fillOpacity=.2);var c=s.states.getKey("down");return c&&(c.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new s.b,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue,i=this.scrollbarChart;i.zoomOutButton.disabled=!0,this.chart=e.chart;var a=!0,n=!0;d.each(this.series.iterator(),function(t){t!=e&&(t.xAxis==e.xAxis&&(a=!1),t.yAxis==e.yAxis&&(n=!1))});var r=new u.a,s=e.clone();if(a){var o=e.xAxis.clone();i.xAxes.moveValue(o),o.title.disabled=!0,o.rangeChangeDuration=0,o.id=e.uid,o.title.disabled=!0,(l=o.renderer).ticks.template.disabled=!0,l.inside=!0,l.line.strokeOpacity=0,l.minLabelPosition=.02,l.maxLabelPosition=.98,l.line.disabled=!0,l.axisFills.template.disabled=!0,l.baseGrid.disabled=!0,l.grid.template.strokeOpacity=.05,l.labels.template.fillOpacity=.5,s.xAxis=o}if(n){var l,h=e.yAxis.clone();i.yAxes.moveValue(h),h.title.disabled=!0,h.rangeChangeDuration=0,(l=h.renderer).ticks.template.disabled=!0,l.inside=!0,l.line.strokeOpacity=0,l.minLabelPosition=.02,l.maxLabelPosition=.98,l.line.disabled=!0,l.axisFills.template.disabled=!0,l.grid.template.stroke=r.getFor("background"),l.baseGrid.disabled=!0,l.grid.template.strokeOpacity=.05,l.labels.template.fillOpacity=.5,s.yAxis=h}s.rangeChangeDuration=0,s.interpolationDuration=0,s.defaultState.transitionDuration=0,s.showOnInit=!1,this._disposers.push(s.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(e.events.on("datavalidated",function(){s.data!=e.data&&(s.data=e.data)},void 0,!1)),s.defaultState.properties.visible=!0,s.filters.push(new c.a),i.series.push(s),this.updateByOrientation()},e.prototype.updateByOrientation=function(){var t=this;d.each(this._scrollbarChart.xAxes.iterator(),function(e){if("vertical"==t.orientation){var i=e.renderer;i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10}}),d.each(this._scrollbarChart.yAxes.iterator(),function(e){if("horizontal"==t.orientation){var i=e.renderer;i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10}})},e.prototype.handleSeriesRemoved=function(t){t.oldValue.events.off("validated",this.zoomOutAxes,this)},Object.defineProperty(e.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.get()!==t&&(this._chart.set(t,t.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=t)},enumerable:!0,configurable:!0}),e.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data&&(this.scrollbarChart.data=this.chart.data)},e.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;d.each(t.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),d.each(t.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},e.prototype.updateThumb=function(){if(t.prototype.updateThumb.call(this),this._unselectedOverlay){var e=this.thumb,i=e.pixelX||0,a=e.pixelY||0,n=e.pixelWidth||0,r=e.pixelHeight||0,s="";"horizontal"==this.orientation?(s=y.rectToPath({x:-1,y:0,width:i,height:r}),s+=y.rectToPath({x:i+n,y:0,width:(this.pixelWidth||0)-i-n,height:r})):(s=y.rectToPath({x:0,y:0,width:n,height:a}),s+=y.rectToPath({x:0,y:a+r,width:n,height:(this.pixelHeight||0)-a-r})),this._unselectedOverlay.path=s}},e.prototype.processConfig=function(e){if(e&&p.hasValue(e.series)&&p.isArray(e.series))for(var i=0,a=e.series.length;i<a;i++){var n=e.series[i];if(p.hasValue(n)&&p.isString(n)){if(!this.map.hasKey(n))throw Error("XYChartScrollbar error: Series with id `"+n+"` does not exist.");e.series[i]=this.map.getKey(n)}}t.prototype.processConfig.call(this,e)},e}(n.a);h.b.registeredClasses.XYChartScrollbar=g},242:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return h});var a=i(0),n=i(170),r=i(1),s=i(4),o=i(12),l=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return a.c(e,t),e}(n.b),h=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return a.c(e,t),e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.createDataItem=function(){return new l},e.prototype.getPoint=function(t,e,i,a,n,r,o){r||(r="valueX"),o||(o="valueY");var l=this.yAxis.getX(t,i,n,o),h=this.yAxis.getY(t,i,n,o),u=s.getDistance({x:l,y:h});0==u&&(u=1e-5);var c=this.xAxis.getAngle(t,e,a,r),d=this.chart.startAngle,p=this.chart.endAngle;return c<d||c>p?void 0:{x:u*s.cos(c),y:u*s.sin(c)}},e.prototype.addPoints=function(t,e,i,a,n){var r=this.getPoint(e,i,a,e.locations[i],e.locations[a]);r&&t.push(r)},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return o.arc(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.drawSegment=function(e,i,a){var n=this.yAxis.renderer;this.connectEnds&&360==Math.abs(n.endAngle-n.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),a.length>0&&a.unshift(a[a.length-1])),t.prototype.drawSegment.call(this,e,i,a)},Object.defineProperty(e.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.RadarSeries=h,r.b.registeredClasses.RadarSeriesDataItem=l},243:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var a=i(0),n=i(167),r=i(8),s=i(1),o=i(12),l=i(4),h=i(6),u=i(3),c=function(t){function e(){var e=t.call(this)||this;return e.className="RadarCursor",e.radius=Object(r.c)(100),e.innerRadius=Object(r.c)(0),e.applyTheme(),e}return a.c(e,t),e.prototype.fitsToBounds=function(t){var e=l.getDistance(t);l.getAngle(t);return e<this.truePixelRadius+1&&e>this.pixelInnerRadius-1},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.triggerMoveReal=function(e){this.xAxis&&(!this.xAxis||this.xAxis.cursorTooltipEnabled&&!this.xAxis.tooltip.disabled)||this.updateLineX(this.point),this.yAxis&&(!this.yAxis||this.yAxis.cursorTooltipEnabled&&!this.yAxis.tooltip.disabled)||this.updateLineY(this.point),this.updateSelection(),t.prototype.triggerMoveReal.call(this,e)},e.prototype.updateLineX=function(t){var e=this.pixelRadius,i=this.startAngle,a=this.endAngle,n=this.pixelInnerRadius;if(e>0&&u.isNumber(i)&&u.isNumber(a)&&u.isNumber(n)){var r=l.fitAngleToRange(l.getAngle(t),i,a),s=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var h=this.xAxis.currentItemStartPoint,c=this.xAxis.currentItemEndPoint;if(h&&c){var d=l.fitAngleToRange(l.getAngle(h),i,a),p=l.fitAngleToRange(l.getAngle(c),i,a)-d;i<a?p<0&&(p+=360):p>0&&(p-=360),r-=p/2,s=o.moveTo({x:n*l.cos(r),y:n*l.sin(r)})+o.lineTo({x:e*l.cos(r),y:e*l.sin(r)})+o.arcTo(r,p,e)+o.lineTo({x:n*l.cos(r+p),y:n*l.sin(r+p)})+o.arcTo(r+p,-p,n)}}s||(s=o.moveTo({x:n*l.cos(r),y:n*l.sin(r)})+o.lineTo({x:e*l.cos(r),y:e*l.sin(r)})),this.lineX.path=s}}},e.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,i=this.endAngle,a=this.truePixelRadius,n=l.fitToRange(l.getDistance(t),0,this.truePixelRadius);if(u.isNumber(n)&&u.isNumber(e)){this.lineY.moveTo({x:0,y:0});var r=void 0,s=i-e;if(this.yAxis&&this.fullWidthLineY){var h=this.yAxis.currentItemStartPoint,c=this.yAxis.currentItemEndPoint;if(h&&c){var d=l.fitToRange(l.getDistance(h),0,a);n=l.fitToRange(l.getDistance(c),0,a),r=o.moveTo({x:n*l.cos(e),y:n*l.sin(e)})+o.arcTo(e,s,n),r+=o.moveTo({x:d*l.cos(i),y:d*l.sin(i)})+o.arcTo(i,-s,d)}}r||(r=o.moveTo({x:n*l.cos(e),y:n*l.sin(e)})+o.arcTo(e,i-e,n)),this.lineY.path=r}}},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,i=this.pixelRadius,a=this.truePixelRadius,n=this.pixelInnerRadius,r=Math.min(this.startAngle,this.endAngle),s=Math.max(this.startAngle,this.endAngle),h=l.fitAngleToRange(l.getAngle(t),r,s),u=l.fitAngleToRange(l.getAngle(e),r,s),c=l.getDistance(t);if(c<a){var d=l.fitToRange(l.getDistance(e),0,a);this._prevAngle=u;var p=o.moveTo({x:0,y:0}),y=l.sin(h),g=l.cos(h),f=l.sin(u),m=l.cos(u),x=this.behavior;"zoomX"==x||"selectX"==x?p+=o.lineTo({x:i*g,y:i*y})+o.arcTo(h,u-h,i)+o.lineTo({x:n*m,y:n*f})+o.arcTo(u,h-u,n):"zoomY"==x||"selectY"==x?p=o.moveTo({x:d*l.cos(r),y:d*l.sin(r)})+o.arcTo(r,s-r,d)+o.lineTo({x:c*l.cos(s),y:c*l.sin(s)})+o.arcTo(s,r-s,c)+o.closePath():"zoomXY"==x&&(p=o.moveTo({x:d*l.cos(h),y:d*l.sin(h)})+o.arcTo(h,u-h,d)+o.lineTo({x:c*l.cos(u),y:c*l.sin(u)})+o.arcTo(u,h-u,c)+o.closePath()),this.selection.path=p}this.selection.moveTo({x:0,y:0})}}},e.prototype.getPositions=function(){if(this.chart){var t=this.pixelInnerRadius,e=this.truePixelRadius-t,i=this.startAngle,a=this.endAngle,n=(l.fitAngleToRange(l.getAngle(this.point),i,a)-i)/(a-i);this.xPosition=n,this.yPosition=l.fitToRange((l.getDistance(this.point)-t)/e,0,1)}},e.prototype.updatePoint=function(t){},e.prototype.handleXTooltipPosition=function(t){if(this.xAxis.cursorTooltipEnabled){var e=this.xAxis.tooltip;this.updateLineX(h.svgPointToSprite({x:e.pixelX,y:e.pixelY},this))}},e.prototype.handleYTooltipPosition=function(t){if(this.yAxis.cursorTooltipEnabled){var e=this.yAxis.tooltip;this.updateLineY(h.svgPointToSprite({x:e.pixelX,y:e.pixelY},this))}},e.prototype.updateLinePositions=function(t){},e.prototype.getRanges=function(){var t=this.downPoint;if(t){var e=this.upPoint;if(this.chart){var i=this.pixelRadius,a=this.startAngle,n=this.endAngle,r=l.fitAngleToRange(l.getAngle(t),this.startAngle,this.endAngle),s=l.fitAngleToRange(l.getAngle(e),this.startAngle,this.endAngle),o=l.fitToRange(l.getDistance(t),0,i),h=l.fitToRange(l.getDistance(e),0,i),u=0,c=1,d=0,p=1,y=this.behavior;if("zoomX"==y||"selectX"==y||"zoomXY"==y||"selectXY"==y){var g=n-a;u=l.round((r-a)/g,5),c=l.round((s-a)/g,5)}"zoomY"!=y&&"selectY"!=y&&"zoomXY"!=y&&"selectXY"!=y||(d=l.round(o/i,5),p=l.round(h/i,5)),this.xRange={start:Math.min(u,c),end:Math.max(u,c)},this.yRange={start:Math.min(d,p),end:Math.max(d,p)},"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide()}}},e.prototype.updateSize=function(){},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return h.relativeRadiusToValue(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truePixelRadius",{get:function(){return h.relativeToValue(Object(r.c)(100),l.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){var t=this.innerRadius;return t instanceof r.a&&(t=Object(r.c)(100*t.value*this.chart.innerRadiusModifyer)),h.relativeRadiusToValue(t,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),e.prototype.fixPoint=function(t){return t},e}(n.a);s.b.registeredClasses.RadarCursor=c},244:function(t,e,i){"use strict";i.d(e,"a",function(){return y});var a=i(0),n=i(89),r=i(109),s=i(245),o=i(7),l=i(8),h=i(1),u=i(4),c=i(12),d=i(6),p=i(3),y=function(t){function e(){var e=t.call(this)||this;return e._chart=new o.d,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=Object(l.c)(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return a.c(e,t),e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return d.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return d.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=u.fitToRange(this.positionToCoordinate(t),0,1/0);return{x:e*u.cos(this.axisAngle),y:e*u.sin(this.axisAngle)}},e.prototype.updateAxisLine=function(){this.line.path=c.moveTo({x:this.pixelInnerRadius*u.cos(this.axisAngle),y:this.pixelInnerRadius*u.sin(this.axisAngle)})+c.lineTo({x:this.pixelRadius*u.cos(this.axisAngle),y:this.pixelRadius*u.sin(this.axisAngle)});var t=this.axis.title;t.valign="none",t.horizontalCenter="middle",t.verticalCenter="bottom",t.y=-this.axisLength/2;var e=90;this.opposite?this.inside||(e=-90):this.inside&&(e=-90),t.rotation=e},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a,n=this.positionToPoint(e),s=u.getDistance(n),o=this.startAngle,l=this.endAngle;if(p.isNumber(s)&&t.element){var h=this.chart,d=h.xAxes.getIndex(0),y=h.dataItems.length,g=h.series.getIndex(0);if("polygons"==this.gridType&&y>0&&g&&d&&d instanceof r.a){var f=d.renderer.grid.template.location,m=d.getAngle(g.dataItems.getIndex(0),"categoryX",f);a=c.moveTo({x:s*u.cos(m),y:s*u.sin(m)});for(var x=h.dataItems.length,v=1;v<x;v++)m=d.getAngle(g.dataItems.getIndex(v),"categoryX",f),a+=c.lineTo({x:s*u.cos(m),y:s*u.sin(m)});m=d.getAngle(g.dataItems.getIndex(x-1),"categoryX",d.renderer.cellEndLocation),a+=c.lineTo({x:s*u.cos(m),y:s*u.sin(m)})}else a=c.moveTo({x:s*u.cos(o),y:s*u.sin(o)})+c.arcTo(o,l-o,s,s);t.path=a}this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,a){p.hasValue(a)||(a=t.location),e+=(i-e)*a;var n=this.positionToPoint(e);this.positionItem(t,n),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBaseGridElement=function(){},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(t){this.setPropertyValue("axisAngle",u.normalizeAngle(t)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridType",{get:function(){return this.chart.xAxes.getIndex(0)instanceof r.a?this.getPropertyValue("gridType"):"circles"},set:function(t){this.setPropertyValue("gridType",t,!0)},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e){var i,a=this.pixelInnerRadius,n=this.axisLength+a,s=u.fitToRange(this.positionToCoordinate(t),a,n),o=u.fitToRange(this.positionToCoordinate(e),a,n),l=this.startAngle,h=this.endAngle-l,d=this.chart,p=d.xAxes.getIndex(0),y=d.dataItems.length,g=d.series.getIndex(0);if("polygons"==this.gridType&&y>0&&g&&p&&p instanceof r.a){var f=p.renderer.grid.template.location,m=p.getAngle(g.dataItems.getIndex(0),"categoryX",f);i=c.moveTo({x:o*u.cos(m),y:o*u.sin(m)});for(var x=d.dataItems.length,v=1;v<x;v++)m=p.getAngle(g.dataItems.getIndex(v),"categoryX",f),i+=c.lineTo({x:o*u.cos(m),y:o*u.sin(m)});m=p.getAngle(g.dataItems.getIndex(x-1),"categoryX",p.renderer.cellEndLocation),i+=c.lineTo({x:o*u.cos(m),y:o*u.sin(m)}),i+=c.moveTo({x:s*u.cos(m),y:s*u.sin(m)});for(v=x-1;v>=0;v--)m=p.getAngle(g.dataItems.getIndex(v),"categoryX",f),i+=c.lineTo({x:s*u.cos(m),y:s*u.sin(m)})}else i=c.arc(l,h,o,s);return i},e.prototype.updateBreakElement=function(t){var e=t.startLine,i=t.endLine,a=t.fillShape,n=t.startPoint,r=t.endPoint;e.radius=Math.abs(n.y),i.radius=Math.abs(r.y),a.radius=Math.abs(r.y),a.innerRadius=Math.abs(n.y)},e.prototype.createBreakSprites=function(t){t.startLine=new s.a,t.endLine=new s.a,t.fillShape=new s.a},e.prototype.updateTooltip=function(){if(this.axis){var t=this.axisAngle;t<0&&(t+=360);var e="vertical";(t>45&&t<135||t>225&&t<315)&&(e="horizontal"),this.axis.updateTooltip(e,{x:-4e3,y:-4e3,width:8e3,height:8e3})}},e.prototype.updateTickElement=function(t,e){var i=this.positionToPoint(e);if(t.element){var a=u.normalizeAngle(this.axisAngle+90);a/90!=Math.round(a/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var n=-t.length;t.inside&&(n*=-1),t.path=c.moveTo({x:0,y:0})+c.lineTo({x:n*u.cos(a),y:n*u.sin(a)})}this.positionItem(t,i),this.toggleVisibility(t,e,0,1)},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,a=i.axisFullLength,n=this.pixelInnerRadius;return e=i.renderer.inversed?(i.end-t)*a+n:(t-i.start)*a+n,u.round(e,1)},e.prototype.pointToPosition=function(t){var e=u.getDistance(t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},e}(n.a);h.b.registeredClasses.AxisRendererRadial=y},246:function(t,e,i){"use strict";i.d(e,"a",function(){return p});var a=i(0),n=i(9),r=i(96),s=i(247),o=i(7),l=i(8),h=i(1),u=i(13),c=i(6),d=i(3),p=function(t){function e(){var e=t.call(this)||this;e._axis=new o.d,e.className="ClockHand";var i=new u.a;e.fill=i.getFor("alternativeBackground"),e.stroke=e.fill;var a=new r.a;a.radius=5,e.pin=a,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=Object(l.c)(100),e.height=Object(l.c)(100),e.radius=Object(l.c)(100),e.innerRadius=Object(l.c)(0);var n=new s.a;return e.hand=n,e._disposers.push(e._axis),e.applyTheme(),e}return a.c(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var i=Math.max(this.startWidth,this.endWidth);if(e.height=i,e.leftSide=Object(l.c)(this.startWidth/i*100),e.rightSide=Object(l.c)(this.endWidth/i*100),this.axis){var a=this.axis.renderer,n=c.relativeRadiusToValue(this.innerRadius,a.pixelRadius),r=c.relativeRadiusToValue(this.radius,a.pixelRadius);e.x=n,e.y=-i/2,e.width=r-n}},Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},set:function(t){this._pin&&this.removeDispose(this._pin),t&&(this._pin=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return this._hand},set:function(t){this._hand&&this.removeDispose(this._hand),t&&(this._hand=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(t){this.setPropertyValue("startWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(t){this.setPropertyValue("endWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(t){this.setPropertyValue("rotationDirection",t)},enumerable:!0,configurable:!0}),e.prototype.showValue=function(t,e,i){if(this._value=t,void 0!=t&&(d.isNumber(e)||(e=0),this.axis)){var a=this.axis.renderer.positionToAngle(this.axis.anyToPosition(t)),n=this.rotation;"clockWise"==this.rotationDirection&&a<n&&(this.rotation=n-360),"counterClockWise"==this.rotationDirection&&a>n&&(this.rotation=n+360),this.animate({property:"rotation",to:a},e,i)}},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new o.c([t.events.on("datavalidated",this.updateValue,this,!1),t.events.on("datarangechanged",this.updateValue,this,!1),t.events.on("dataitemsvalidated",this.updateValue,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),t){var e=t.chart;e&&(this.rotation=e.startAngle)}this.parent=t.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),e.prototype.updateValue=function(){this.value=this.value},e.prototype.processConfig=function(e){e&&d.hasValue(e.axis)&&d.isString(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),t.prototype.processConfig.call(this,e)},e}(n.a);h.b.registeredClasses.ClockHand=p},248:function(t,e,i){"use strict";i.d(e,"b",function(){return d}),i.d(e,"a",function(){return p});var a=i(0),n=i(249),r=i(8),s=i(172),o=i(1),l=i(5),h=i(6),u=i(4),c=i(3),d=function(t){function e(){var e=t.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),p=function(t){function e(){var e=t.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=Object(r.c)(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),c.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.updateRadius()},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e),this.updateSeriesAngles()},e.prototype.updateSeriesAngles=function(){var t=this;this.series.each(function(e){e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.defaultState.properties.startAngle=t.startAngle,e.defaultState.properties.endAngle=t.endAngle})},e.prototype.updateRadius=function(){var t=this.chartContainer,e=u.getArcRect(this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},a=this.innerRadius;a instanceof r.a&&(i=u.getArcRect(this.startAngle,this.endAngle,a.value)),e=u.getCommonRectangle([e,i]);var n=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);c.isNumber(n)||(n=0);var s=h.relativeRadiusToValue(this.radius,n),o=h.relativeRadiusToValue(this.innerRadius,n),d=(s-o)/this.series.length;l.each(l.indexed(this.series.iterator()),function(t){var e=t[0],i=t[1],a=o+h.relativeRadiusToValue(i.radius,s-o),n=o+h.relativeRadiusToValue(i.innerRadius,s-o);c.isNumber(a)||(a=o+d*(e+1)),c.isNumber(n)||(n=o+d*e),i.pixelRadius=a,i.pixelInnerRadius=n}),this.seriesContainer.definedBBox={x:s*e.x,y:s*e.y,width:s*e.width,height:s*e.height},this.seriesContainer.invalidateLayout()},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new s.a},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),e}(n.a);o.b.registeredClasses.PieChart=p,o.b.registeredClasses.PieChartDataItem=d},249:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return h});var a=i(0),n=i(119),r=i(129),s=i(1),o=i(5),l=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),h=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return a.c(e,t),e.prototype.validateData=function(){t.prototype.validateData.call(this),this.feedLegend()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];o.each(this.series.iterator(),function(i){o.each(i.dataItems.iterator(),function(a){if(!a.hiddenInLegend){e.push(a);var n=i.legendSettings;n&&(n.labelText&&(t.labels.template.text=n.labelText),n.itemLabelText&&(t.labels.template.text=n.itemLabelText),n.valueText&&(t.valueLabels.template.text=n.valueText),n.itemValueText&&(t.valueLabels.template.text=n.itemValueText))}})}),t.data=e,t.dataFields.name="category"}},e.prototype.createSeries=function(){return new r.a},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0')}%",e.itemContainers.template.events.on("over",function(t){var e=t.target.dataItem.dataContext;e.visible&&!e.isHiding&&(e.slice.isHover=!0)}),e.itemContainers.template.events.on("out",function(t){t.target.dataItem.dataContext.slice.isHover=!1}))},e}(n.a);s.b.registeredClasses.PercentChart=h,s.b.registeredClasses.PercentChartDataItem=l},250:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(108),r=i(7),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e._label=new r.d,e._slice=new r.d,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return a.c(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=this.label,a=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var n=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,r=e.dy+e.slice.dy+e.pixelY+e.iy*e.radius*e.scale,s=void 0,o=void 0,l=void 0,h=void 0;if(a.alignLabels)s=i.pixelX-this.length,o=i.pixelY,l=i.pixelX,h=o,"right"==i.horizontalCenter&&(l=(s+=2*this.length)-this.length);else{var u=i.pixelRadius(e.radius);l=s=n+u*e.ix,h=o=r+u*e.iy}this.element.attr({points:[n,r,s,o,l,h]})}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new r.c([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.PieTick=o},251:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return h});var a=i(0),n=i(172),r=i(252),s=i(1),o=i(3),l=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),e}(n.b),h=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return a.c(e,t),e.prototype.createDataItem=function(){return new l},e.prototype.createSlice=function(){return new r.a},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.slice,a=this.depth;o.isNumber(a)||(a=this.chart.depth);var n=e.values.depthValue.percent;o.isNumber(n)||(n=100),i.depth=n*a/100;var r=this.angle;o.isNumber(r)||(r=this.chart.angle),i.angle=r},e.prototype.validate=function(){t.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e).slice,a=i.startAngle;a>=-90&&a<90?i.toFront():a>=90&&i.toBack()}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.PieSeries3D=h,s.b.registeredClasses.PieSeries3DDataItem=l},259:function(t,e,i){"use strict";i.d(e,"a",function(){return p});var a=i(0),n=i(130),r=i(115),s=i(1),o=i(75),l=i(13),h=i(5),u=i(4),c=i(3),d=i(74),p=function(t){function e(){var e=t.call(this)||this;e.className="ChordNode",e.label=e.createChild(r.a),e.label.location=.5,e.label.radius=5,e.label.text="{name}",e.label.zIndex=1,e.label.shouldClone=!1,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(o.a),e.slice.isMeasured=!1;var i=e.hiddenState;return i.properties.fill=(new l.a).getFor("disabledBackground"),i.properties.opacity=.5,i.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(t,e){return e.slice.ix*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(t,e){return e.slice.iy*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)}),e}return a.c(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this);var i=this.label,a=this.slice,n=this.chart;if(n&&a){var r=this.total,s=a.arc,o=a.startAngle;this.children.each(function(t){if(t instanceof d.a){var e=t.locationX;c.isNumber(e)||(e=.5);var i=t.locationY;c.isNumber(i)||(i=1);var n=o+s*e,r=i*a.radius;t.x=r*u.cos(n),t.y=r*u.sin(n)}});var l=o+s*i.location,p=o+(1-r/this.adjustedTotal)*s*.5;c.isNaN(p)&&(p=o);var y={x:a.radius*u.cos(l),y:a.radius*u.sin(l)};i.fixPoint(y,a.radius),i.moveTo(y),this.nextAngle=p,this._outgoingSorted&&h.each(this._outgoingSorted,function(t){var i=t.link;i.parent=e.chart.linksContainer;var r=t.getWorkingValue("value");if(c.isNumber(r)){if(n.nonRibbon){var l=i.percentWidth;c.isNumber(l)||(l=5),l/=100,i.startAngle=o+s/2-s/2*l,i.arc=s*l}else i.arc=r*n.valueAngle,i.startAngle=e.nextAngle,e.nextAngle+=i.arc;t.toNode||(i.endAngle=i.startAngle),i.radius=a.pixelInnerRadius}}),this._incomingSorted&&h.each(this._incomingSorted,function(t){var i=t.link;if(i.radius=a.pixelInnerRadius,n.nonRibbon){var r=i.percentWidth;c.isNumber(r)||(r=5),r/=100,i.endAngle=o+s/2-s/2*r,i.arc=s*r}else{i.endAngle=e.nextAngle;var l=t.getWorkingValue("value");c.isNumber(l)&&(i.arc=l*n.valueAngle,e.nextAngle+=i.arc)}t.fromNode||(i.startAngle=i.endAngle)})}},e.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,i=t.radius,a=i*u.cos(e),n=i*u.sin(e),r=u.getAngle({x:a+this.pixelX,y:n+this.pixelY});t.startAngle=this.trueStartAngle+(r-e),this.dx=-this.pixelX,this.dy=-this.pixelY},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},e}(n.a);s.b.registeredClasses.ChordNode=p},260:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var a=i(0),n=i(131),r=i(1),s=i(328),o=i(4),l=i(12),h=function(t){function e(){var e=t.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(s.a),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return a.c(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,a=this.arc,n=this.radius,r=this.dataItem.fromNode,s=this.dataItem.toNode,h=0,u=0;r&&(h=r.pixelX+r.dx,u=r.pixelY+r.dy);var c=0,d=0;if(s&&(c=s.pixelX+s.dx,d=s.pixelY+s.dy),n>0){var p=n*o.cos(e)+h,y=n*o.sin(e)+u,g=n*o.cos(i)+c,f=n*o.sin(i)+d,m=(o.cos(i+a),o.sin(i+a),o.cos(e+a),o.sin(e+a),{x:0,y:0}),x=l.moveTo({x:p,y:y});x+=l.arcTo(e,a,n),x+=l.quadraticCurveTo({x:g,y:f},m),x+=l.arcTo(i,a,n),x+=l.quadraticCurveTo({x:p,y:y},m),this.link.path=a>0?x:"",this.maskBullets&&(this.bulletsMask.path=x,this.bulletsContainer.mask=this.bulletsMask);var v=e+a/2,b=i+a/2,A=this.middleLine;A.x1=n*o.cos(v)+h,A.y1=n*o.sin(v)+u,A.x2=n*o.cos(b)+c,A.y2=n*o.sin(b)+d,A.cpx=0,A.cpy=0,A.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.ChordLink=h},261:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return d});var a=i(0),n=i(76),r=i(10),s=i(1),o=i(13),l=i(3),h=i(42),u=i(18),c=function(t){function e(){var e=t.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"parentName",{get:function(){var t=this.treeMapDataItem;if(t&&t.parent)return t.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.treeMapDataItem.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),e}(n.b),d=function(t){function e(){var e=t.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var i=new o.a;return e.stroke=i.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return a.c(e,t),e.prototype.processDataItem=function(e,i){i.seriesDataItem=e,t.prototype.processDataItem.call(this,e,i)},e.prototype.createDataItem=function(){return new c},e.prototype.show=function(e){var i=this.defaultState.transitionDuration;l.isNumber(e)&&(i=e),this.dataItems.each(function(t){t.treeMapDataItem.setWorkingValue("value",t.treeMapDataItem.values.value.value)});var a=t.prototype.showReal.call(this,i),n=this.chart;return n&&(a&&!a.isFinished()?a.events.on("animationended",function(){n.invalidateLayout()}):n.invalidateLayout(),n.invalidateLayout()),a},e.prototype.hide=function(e){var i=this.defaultState.transitionDuration;l.isNumber(e)&&(i=e);var a=t.prototype.hideReal.call(this,i);this.dataItems.each(function(t){t.treeMapDataItem.setWorkingValue("value",0)});var n=this.chart;return n&&(a&&!a.isFinished()?a.events.on("animationended",function(){n.invalidateLayout()}):n.invalidateLayout(),n.invalidateLayout()),a},e.prototype.processValues=function(){},e.prototype.dataChangeUpdate=function(){},e.prototype.processConfig=function(e){e&&(l.hasValue(e.dataFields)&&l.isObject(e.dataFields)||(e.dataFields={})),t.prototype.processConfig.call(this,e)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a=t.createChild(h.a);a.shouldClone=!1,u.copyProperties(this,a,r.b),a.padding(0,0,0,0),a.width=e,a.height=i},e}(n.a);s.b.registeredClasses.TreeMapSeries=d,s.b.registeredClasses.TreeMapSeriesDataItem=c},262:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var a=i(0),n=i(117),r=i(7),s=i(1),o=i(12),l=function(t){function e(){var e=t.call(this)||this;return e._chart=new r.d,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return a.c(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var n=this.chart.dx3D,r=this.chart.dy3D,s=this.getHeight();t.path=o.moveTo({x:n,y:r})+o.lineTo({x:n,y:s+r})+o.lineTo({x:0,y:s})}this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D,a=this.chart.dy3D;this.baseGrid.path=o.moveTo({x:i,y:a})+o.lineTo({x:i,y:e+a})+o.lineTo({x:0,y:e})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(n.a);s.b.registeredClasses.AxisRendererX3D=l},263:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(89),r=i(7),s=i(12),o=function(t){function e(){var e=t.call(this)||this;return e._chart=new r.d,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return a.c(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var a=this.positionToPoint(e);if(t.element){var n=this.chart.dx3D,r=this.chart.dy3D,o=this.getWidth();t.path=s.moveTo({x:0,y:0})+s.lineTo({x:n,y:r})+s.lineTo({x:o+n,y:r})}this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getWidth();this.baseGrid.path=s.moveTo({x:0,y:0})+s.lineTo({x:e,y:0})+s.lineTo({x:e+this.chart.dx3D,y:this.chart.dy3D})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(n.a)},264:function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return l});var a=i(0),n=i(76),r=i(176),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),l=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this.chart&&this.chart.columnsContainer?this.chart.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy)},e.prototype.validateDataElements=function(){t.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},e.prototype.createColumnTemplate=function(){return new r.a},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0),this.columns.template.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.columns.template.column3D.angle=t},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.ColumnSeries3D=l,s.b.registeredClasses.ColumnSeries3DDataItem=o},267:function(t,e,i){"use strict";i.d(e,"b",function(){return p}),i.d(e,"a",function(){return y});var a=i(0),n=i(76),r=i(10),s=i(177),o=i(1),l=i(13),h=i(6),u=i(18),c=i(5),d=i(3),p=function(t){function e(){var e=t.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(t){this.setValue("lowValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(t){this.setValue("lowValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(t){this.setValue("highValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(t){this.setValue("highValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),e}(n.b),y=function(t){function e(){var e=t.call(this)||this;e.className="CandlestickSeries",e.strokeOpacity=1;var i=new l.a,a=i.getFor("positive"),n=i.getFor("negative");return e.dropFromOpenState.properties.fill=n,e.dropFromOpenState.properties.stroke=n,e.riseFromOpenState.properties.fill=a,e.riseFromOpenState.properties.stroke=a,e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),d.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},e.prototype.createDataItem=function(){return new p},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.lowLine,a=e.highLine;if(this.baseAxis==this.xAxis){var n=e.pixelWidth/2;i.x=n,a.x=n;var r=t.getWorkingValue(this.yOpenField),s=t.getWorkingValue(this.yField),o=this.yAxis.getY(t,this.yOpenField),l=this.yAxis.getY(t,this.yField),h=this.yAxis.getY(t,this.yLowField),u=this.yAxis.getY(t,this.yHighField),d=e.pixelY;i.y1=h-d,a.y1=u-d,r<s?(i.y2=o-d,a.y2=l-d):(i.y2=l-d,a.y2=o-d)}if(this.baseAxis==this.yAxis){var p=e.pixelHeight/2;i.y=p,a.y=p;var y=t.getWorkingValue(this.xOpenField),g=t.getWorkingValue(this.xField),f=this.xAxis.getX(t,this.xOpenField),m=this.xAxis.getX(t,this.xField),x=this.xAxis.getX(t,this.xLowField),v=this.xAxis.getX(t,this.xHighField),b=e.pixelX;i.x1=x-b,a.x1=v-b,y<g?(i.x2=f-b,a.x2=m-b):(i.x2=m-b,a.x2=f-b)}c.each(this.axisRanges.iterator(),function(e){var n=t.rangesColumns.getKey(e.uid);if(n){var r=n.lowLine;r.x=i.x,r.y=i.y,r.x1=i.x1,r.x2=i.x2,r.y1=i.y1,r.y2=i.y2;var s=n.highLine;s.x=a.x,s.y=a.y,s.x1=a.x1,s.x2=a.x2,s.y1=a.y1,s.y2=a.y2}})}},Object.defineProperty(e.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),e.prototype.defineFields=function(){if(t.prototype.defineFields.call(this),this.baseAxis==this.xAxis){var e=h.capitalize(this.yAxis.axisFieldName);this._yLowField="low"+e+"Y",this._yHighField="high"+e+"Y"}if(this.baseAxis==this.yAxis){var i=h.capitalize(this.xAxis.axisFieldName);this._xLowField="low"+i+"X",this._xHighField="high"+i+"X"}this.addValueField(this.xAxis,this._xValueFields,this._xLowField),this.addValueField(this.xAxis,this._xValueFields,this._xHighField),this.addValueField(this.yAxis,this._yValueFields,this._yLowField),this.addValueField(this.yAxis,this._yValueFields,this._yHighField)},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a,n,o=t.createChild(s.a);o.shouldClone=!1,o.copyFrom(this.columns.template);var l=o.lowLine,h=o.highLine;this.baseAxis==this.yAxis?(a=e/3,n=i,l.y=i/2,h.y=i/2,l.x2=e/3,h.x2=e/3,h.x=e/3*2,o.column.x=e/3):(a=e,n=i/3,l.x=e/2,h.x=e/2,l.y2=i/3,h.y2=i/3,h.y=i/3*2,o.column.y=i/3),o.width=a,o.height=n,u.copyProperties(this,t,r.b),u.copyProperties(this.columns.template,o,r.b),o.stroke=this.riseFromOpenState.properties.stroke,o.fill=o.stroke},e.prototype.createColumnTemplate=function(){return new s.a},e}(n.a);o.b.registeredClasses.CandlestickSeries=y,o.b.registeredClasses.CandlestickSeriesDataItem=p},268:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(177),r=i(71),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="OHLC",e.layout="none",e}return a.c(e,t),e.prototype.createAssets=function(){this.openLine=this.createChild(r.a),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(r.a),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(r.a),this.closeLine.shouldClone=!1},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},e}(n.a);s.b.registeredClasses.OHLC=o},269:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var a=i(0),n=i(62),r=i(75),s=i(1),o=i(3),l=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumn",e}return a.c(e,t),e.prototype.createAssets=function(){this.radarColumn=this.createChild(r.a),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return o.isNumber(t)||(t=this.radarColumn.tooltipX),t},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return o.isNumber(t)||(t=this.radarColumn.tooltipY),t},e}(n.a);s.b.registeredClasses.RadarColumn=l},270:function(t,e,i){"use strict";i.d(e,"b",function(){return h}),i.d(e,"a",function(){return u});var a=i(0),n=i(178),r=i(1),s=i(3),o=i(6),l=i(8),h=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),u=function(t){function e(){var e=t.call(this)||this;return e.className="PyramidSeries",e.topWidth=Object(l.c)(0),e.bottomWidth=Object(l.c)(100),e.pyramidHeight=Object(l.c)(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),s.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new h},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextWidth=void 0},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");e<this.dataItems.length-1&&(i=this.dataItems.getIndex(e+1).getWorkingValue("value"));return 0==i&&(i=1e-6),i},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer.innerWidth,a=this.slicesContainer.innerHeight;if(this.dataItems.each(function(t){var n=t.getWorkingValue("value")/t.value,r=t.sliceLink;"vertical"==e.orientation?a-=r.pixelHeight*n:i-=r.pixelWidth*n}),this._pyramidHeight=o.relativeToValue(this.pyramidHeight,a),this._pyramidWidth=o.relativeToValue(this.pyramidHeight,i),"vertical"==this.orientation){var n=(a-this._pyramidHeight)/2;this.slicesContainer.y=n,this.labelsContainer.y=n,this.ticksContainer.y=n}else{var r=(i-this._pyramidWidth)/2;this.slicesContainer.x=r,this.labelsContainer.x=r,this.ticksContainer.x=r}t.prototype.validateDataElements.call(this)},e.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.sum;if(0!=e){var i=t.slice,a=t.sliceLink,n=t.label,r=t.tick,l=(this.getNextValue(t),t.getWorkingValue("value"));0==l&&(l=1e-6);var h=this._pyramidWidth,u=this._pyramidHeight,c=this.slicesContainer.innerWidth,d=this.slicesContainer.innerHeight,p=a.pixelWidth,y=a.pixelHeight;if("vertical"==this.orientation){var g=o.relativeToValue(this.topWidth,c);s.isNumber(this._nextWidth)||(this._nextWidth=g);var f=o.relativeToValue(this.bottomWidth,c),m=this._nextWidth,x=Math.atan2(u,g-f);0==(C=Math.tan(Math.PI/2-x))&&(C=1e-8);var v=void 0,b=void 0;if("area"==this.valueIs){var A=(g+f)/2*u*l/e,P=Math.abs(m*m-2*A*C);b=(2*A-(v=(m-Math.sqrt(P))/C)*m)/v}else{b=m-(v=u*l/this.dataItem.values.value.sum)*C}i.height=v,i.width=c,i.bottomWidth=b,i.topWidth=m,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.y=this._nextY,this.alignLabels?n.x=0:n.x=c/2,n.y=i.pixelY+i.pixelHeight*r.locationY,this._nextY+=i.pixelHeight+y*l/t.value,a.y=this._nextY-y,a.x=c/2}else{g=o.relativeToValue(this.topWidth,d);s.isNumber(this._nextWidth)||(this._nextWidth=g);var C;f=o.relativeToValue(this.bottomWidth,d),m=this._nextWidth,x=Math.atan2(h,g-f);0==(C=Math.tan(Math.PI/2-x))&&(C=1e-8);var _=void 0;b=void 0;if("area"==this.valueIs)b=(2*(A=(g+f)/2*h*l/this.dataItem.values.value.sum)-(_=(m-Math.sqrt(m*m-2*A*C))/C)*m)/_;else b=m-(_=h*l/this.dataItem.values.value.sum)*C;i.width=_,i.height=d,i.bottomWidth=b,i.topWidth=m,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.x=this._nextY,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=d/2,n.x=i.pixelX+i.pixelWidth*r.locationX,this._nextY+=i.pixelWidth+p*l/t.value,a.x=this._nextY-p,a.y=d/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(t){this.setPercentProperty("pyramidHeight",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e}(n.a);r.b.registeredClasses.PyramidSeries=u,r.b.registeredClasses.PyramidSeriesDataItem=h},271:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(62),r=i(272),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="ConeColumn",e}return a.c(e,t),e.prototype.createAssets=function(){this.coneColumn=this.createChild(r.a),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},e}(n.a);s.b.registeredClasses.ConeColumn=o},274:function(t,e,i){"use strict";i.d(e,"a",function(){return u});var a=i(0),n=i(62),r=i(10),s=i(12),o=i(1),l=i(72),h=i(8),u=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumn",e}return a.c(e,t),e.prototype.createAssets=function(){this.curvedColumn=this.createChild(r.a),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=Object(h.c)(120),this.height=Object(h.c)(120),this.column=this.curvedColumn},e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.realWidth,a=this.realHeight,n=this.realX-this.pixelX,r=this.realY-this.pixelY,o=(this.width,1),h=1;"vertical"==this.orientation?(o=this.tension,e=[{x:0,y:a+r},{x:i/2,y:r},{x:i,y:a+r}]):(h=this.tension,e=[{x:n,y:0},{x:n+i,y:a/2},{x:n,y:a}]);var u=s.moveTo(e[0])+new l.b(o,h).smooth(e);this.column.path=u},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(n.a);o.b.registeredClasses.CurvedColumn=u},319:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(320);window.am4charts=a},320:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(321);i.d(e,"GaugeChartDataItem",function(){return a.b}),i.d(e,"GaugeChart",function(){return a.a});var n=i(215);i.d(e,"RadarChartDataItem",function(){return n.b}),i.d(e,"RadarChart",function(){return n.a});var r=i(104);i.d(e,"XYChartDataItem",function(){return r.b}),i.d(e,"XYChart",function(){return r.a});var s=i(119);i.d(e,"SerialChartDataItem",function(){return s.b}),i.d(e,"SerialChart",function(){return s.a});var o=i(325);i.d(e,"PieChart3DDataItem",function(){return o.b}),i.d(e,"PieChart3D",function(){return o.a});var l=i(248);i.d(e,"PieChartDataItem",function(){return l.b}),i.d(e,"PieChart",function(){return l.a});var h=i(326);i.d(e,"SlicedChart",function(){return h.a}),i.d(e,"SlicedChartDataItem",function(){return h.b});var u=i(174);i.d(e,"FlowDiagramDataItem",function(){return u.b}),i.d(e,"FlowDiagram",function(){return u.a});var c=i(255);i.d(e,"SankeyDiagramDataItem",function(){return c.b}),i.d(e,"SankeyDiagram",function(){return c.a});var d=i(327);i.d(e,"ChordDiagramDataItem",function(){return d.b}),i.d(e,"ChordDiagram",function(){return d.a});var p=i(329);i.d(e,"TreeMapDataItem",function(){return p.b}),i.d(e,"TreeMap",function(){return p.a});var y=i(330);i.d(e,"XYChart3DDataItem",function(){return y.b}),i.d(e,"XYChart3D",function(){return y.a});var g=i(116);i.d(e,"ChartDataItem",function(){return g.b}),i.d(e,"Chart",function(){return g.a});var f=i(118);i.d(e,"LegendDataItem",function(){return f.b}),i.d(e,"Legend",function(){return f.a}),i.d(e,"LegendSettings",function(){return f.c});var m=i(266);i.d(e,"HeatLegend",function(){return m.a});var x=i(93);i.d(e,"SeriesDataItem",function(){return x.b}),i.d(e,"Series",function(){return x.a});var v=i(128);i.d(e,"XYSeriesDataItem",function(){return v.b}),i.d(e,"XYSeries",function(){return v.a});var b=i(170);i.d(e,"LineSeriesDataItem",function(){return b.b}),i.d(e,"LineSeries",function(){return b.a});var A=i(171);i.d(e,"LineSeriesSegment",function(){return A.a});var P=i(267);i.d(e,"CandlestickSeriesDataItem",function(){return P.b}),i.d(e,"CandlestickSeries",function(){return P.a});var C=i(331);i.d(e,"OHLCSeriesDataItem",function(){return C.b}),i.d(e,"OHLCSeries",function(){return C.a});var _=i(76);i.d(e,"ColumnSeriesDataItem",function(){return _.b}),i.d(e,"ColumnSeries",function(){return _.a});var I=i(332);i.d(e,"StepLineSeriesDataItem",function(){return I.b}),i.d(e,"StepLineSeries",function(){return I.a});var D=i(242);i.d(e,"RadarSeriesDataItem",function(){return D.b}),i.d(e,"RadarSeries",function(){return D.a});var T=i(334);i.d(e,"RadarColumnSeriesDataItem",function(){return T.b}),i.d(e,"RadarColumnSeries",function(){return T.a});var V=i(172);i.d(e,"PieSeriesDataItem",function(){return V.b}),i.d(e,"PieSeries",function(){return V.a});var S=i(178);i.d(e,"FunnelSeries",function(){return S.a}),i.d(e,"FunnelSeriesDataItem",function(){return S.b});var R=i(270);i.d(e,"PyramidSeries",function(){return R.a}),i.d(e,"PyramidSeriesDataItem",function(){return R.b});var F=i(336);i.d(e,"PictorialStackedSeries",function(){return F.a}),i.d(e,"PictorialStackedSeriesDataItem",function(){return F.b});var O=i(250);i.d(e,"PieTick",function(){return O.a});var k=i(179);i.d(e,"FunnelSlice",function(){return k.a});var w=i(251);i.d(e,"PieSeries3DDataItem",function(){return w.b}),i.d(e,"PieSeries3D",function(){return w.a});var L=i(261);i.d(e,"TreeMapSeriesDataItem",function(){return L.b}),i.d(e,"TreeMapSeries",function(){return L.a});var X=i(264);i.d(e,"ColumnSeries3DDataItem",function(){return X.b}),i.d(e,"ColumnSeries3D",function(){return X.a});var Y=i(337);i.d(e,"ConeSeriesDataItem",function(){return Y.b}),i.d(e,"ConeSeries",function(){return Y.a});var j=i(338);i.d(e,"CurvedColumnSeries",function(){return j.a}),i.d(e,"CurvedColumnSeriesDataItem",function(){return j.b});var N=i(164);i.d(e,"AxisDataItem",function(){return N.b}),i.d(e,"Axis",function(){return N.a});var M=i(103);i.d(e,"Grid",function(){return M.a});var B=i(233);i.d(e,"AxisTick",function(){return B.a});var W=i(153);i.d(e,"AxisLabel",function(){return W.a});var E=i(232);i.d(e,"AxisLine",function(){return E.a});var z=i(152);i.d(e,"AxisFill",function(){return z.a});var U=i(114);i.d(e,"AxisRenderer",function(){return U.a});var H=i(127);i.d(e,"AxisBreak",function(){return H.a});var K=i(61);i.d(e,"ValueAxisDataItem",function(){return K.b}),i.d(e,"ValueAxis",function(){return K.a});var G=i(109);i.d(e,"CategoryAxisDataItem",function(){return G.b}),i.d(e,"CategoryAxis",function(){return G.a});var Z=i(237);i.d(e,"CategoryAxisBreak",function(){return Z.a});var q=i(166);i.d(e,"DateAxisDataItem",function(){return q.b}),i.d(e,"DateAxis",function(){return q.a});var Q=i(339);i.d(e,"DurationAxisDataItem",function(){return Q.b}),i.d(e,"DurationAxis",function(){return Q.a});var J=i(238);i.d(e,"DateAxisBreak",function(){return J.a});var $=i(165);i.d(e,"ValueAxisBreak",function(){return $.a});var tt=i(117);i.d(e,"AxisRendererX",function(){return tt.a});var et=i(89);i.d(e,"AxisRendererY",function(){return et.a});var it=i(244);i.d(e,"AxisRendererRadial",function(){return it.a});var at=i(115);i.d(e,"AxisLabelCircular",function(){return at.a});var nt=i(211);i.d(e,"AxisRendererCircular",function(){return nt.a});var rt=i(212);i.d(e,"AxisFillCircular",function(){return rt.a});var st=i(213);i.d(e,"GridCircular",function(){return st.a});var ot=i(262);i.d(e,"AxisRendererX3D",function(){return ot.a});var lt=i(263);i.d(e,"AxisRendererY3D",function(){return lt.a});var ht=i(108);i.d(e,"Tick",function(){return ht.a});var ut=i(74);i.d(e,"Bullet",function(){return ut.a});var ct=i(257);i.d(e,"LabelBullet",function(){return ct.a});var dt=i(340);i.d(e,"CircleBullet",function(){return dt.a});var pt=i(341);i.d(e,"ErrorBullet",function(){return pt.a});var yt=i(241);i.d(e,"XYChartScrollbar",function(){return yt.a});var gt=i(246);i.d(e,"ClockHand",function(){return gt.a});var ft=i(130);i.d(e,"FlowDiagramNode",function(){return ft.a});var mt=i(131);i.d(e,"FlowDiagramLink",function(){return mt.a});var xt=i(256);i.d(e,"SankeyNode",function(){return xt.a});var vt=i(258);i.d(e,"SankeyLink",function(){return vt.a});var bt=i(259);i.d(e,"ChordNode",function(){return bt.a});var At=i(260);i.d(e,"ChordLink",function(){return At.a});var Pt=i(342);i.d(e,"NavigationBarDataItem",function(){return Pt.b}),i.d(e,"NavigationBar",function(){return Pt.a});var Ct=i(62);i.d(e,"Column",function(){return Ct.a});var _t=i(177);i.d(e,"Candlestick",function(){return _t.a});var It=i(268);i.d(e,"OHLC",function(){return It.a});var Dt=i(269);i.d(e,"RadarColumn",function(){return Dt.a});var Tt=i(176);i.d(e,"Column3D",function(){return Tt.a});var Vt=i(271);i.d(e,"ConeColumn",function(){return Vt.a});var St=i(274);i.d(e,"CurvedColumn",function(){return St.a});var Rt=i(167);i.d(e,"XYCursor",function(){return Rt.a});var Ft=i(239);i.d(e,"Cursor",function(){return Ft.a});var Ot=i(243);i.d(e,"RadarCursor",function(){return Ot.a})},321:function(t,e,i){"use strict";i.d(e,"b",function(){return h}),i.d(e,"a",function(){return u});var a=i(0),n=i(215),r=i(11),s=i(246),o=i(1),l=i(3),h=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),u=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new r.e(new s.a),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new r.c(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),l.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},e.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},e}(n.a);o.b.registeredClasses.GaugeChart=u},325:function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return l});var a=i(0),n=i(248),r=i(251),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),l=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new r.a},e}(n.a);s.b.registeredClasses.PieChart3D=l},326:function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return l});var a=i(0),n=i(249),r=i(1),s=i(3),o=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),l=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),s.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},e.prototype.validate=function(){t.prototype.validate.call(this)},e}(n.a);r.b.registeredClasses.SlicedChart=l,r.b.registeredClasses.SlicedChartDataItem=o},327:function(t,e,i){"use strict";i.d(e,"b",function(){return y}),i.d(e,"a",function(){return g});var a=i(0),n=i(174),r=i(8),s=i(9),o=i(1),l=i(259),h=i(260),u=i(5),c=i(4),d=i(3),p=i(6),y=function(t){function e(){var e=t.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),g=function(t){function e(){var e=t.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=Object(r.c)(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(s.a);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return a.c(e,t),e.prototype.validate=function(){var e=this,i=this.chartContainer,a=(this.nodesContainer,this.endAngle),n=this.startAngle+this.nodePadding/2,r=c.getArcRect(this.startAngle,this.endAngle,1);r=c.getCommonRectangle([r,{x:0,y:0,width:0,height:0}]);var s=Math.min(i.innerWidth/r.width,i.innerHeight/r.height);d.isNumber(s)||(s=0);p.relativeRadiusToValue(this.radius,s);var o=p.relativeRadiusToValue(this.radius,s),l=p.relativeRadiusToValue(this.innerRadius,o,!0),h=this.dataItem.values.value.sum,y=0,g=0;u.each(this._sorted,function(t){var i=t[1];e.getNodeValue(i),y++;var a=i.total;i.total/h<e.minNodeSize&&(a=h*e.minNodeSize),g+=a}),this.valueAngle=(a-this.startAngle-this.nodePadding*y)/g,u.each(this._sorted,function(t){var i=t[1],r=i.slice;r.radius=o,r.innerRadius=l;var s,u=i.total;i.total/h<e.minNodeSize&&(u=h*e.minNodeSize),i.adjustedTotal=u,s=e.nonRibbon?(a-e.startAngle)/y-e.nodePadding:e.valueAngle*u,r.arc=s,r.startAngle=n,i.trueStartAngle=n,i.parent=e.nodesContainer,i.validate(),n+=s+e.nodePadding}),this.chordContainer.definedBBox={x:o*r.x,y:o*r.y,width:o*r.width,height:o*r.height},this.chordContainer.invalidateLayout(),t.prototype.validate.call(this)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),d.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},e.prototype.createDataItem=function(){return new y},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(t){this.setPropertyValue("nonRibbon",t,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new l.a;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new h.a;return this._disposers.push(t),t},e}(n.a);o.b.registeredClasses.ChordDiagram=g},328:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var a=i(0),n=i(71),r=i(14),s=i(12),o=i(4),l=i(3),h=function(t){function e(){var e=t.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Object(r.c)(),e.applyTheme(),e}return a.c(e,t),e.prototype.draw=function(){if(l.isNumber(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2},i={x:this.cpx,y:this.cpy},a=s.moveTo(t)+s.quadraticCurveTo(e,i);this.path=a}},Object.defineProperty(e.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},a={x:this.x2,y:this.y2},n=o.getPointOnQuadraticCurve(e,a,i,t),r=o.getPointOnQuadraticCurve(e,a,i,t+.001);return{x:n.x,y:n.y,angle:o.getAngle(n,r)}},e}(n.a)},329:function(t,e,i){"use strict";i.d(e,"b",function(){return y}),i.d(e,"a",function(){return g});var a=i(0),n=i(104),r=i(1),s=i(26),o=i(61),l=i(261),h=i(30),u=i(70),c=i(5),d=i(3),p=i(16),y=function(t){function e(){var e=t.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.values.value.workingValue;return d.isNumber(t)||(t=0,this.children&&c.each(this.children.iterator(),function(e){d.isNumber(e.value)&&(t+=e.value)})),t},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x0",{get:function(){return this.values.x0.value},set:function(t){this.setValue("x0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x1",{get:function(){return this.values.x1.value},set:function(t){this.setValue("x1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y0",{get:function(){return this.values.y0.value},set:function(t){this.setValue("y0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.values.y1.value},set:function(t){this.setValue("y1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.properties.children},set:function(t){this.setProperty("children",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){var t=this.properties.color;return void 0==t&&this.parent&&(t=this.parent.color),void 0==t&&this.component&&(t=this.component.colors.getIndex(this.component.colors.step*this.index)),t},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=t,this._disposers.push(t)},enumerable:!0,configurable:!0}),e}(n.b),g=function(t){function e(){var e=t.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e.maxLevels=2,e.currentLevel=0,e.colors=new h.a,e.sorting="descending";var i=e.xAxes.push(new o.a);i.title.disabled=!0,i.strictMinMax=!0;var a=i.renderer;a.inside=!0,a.labels.template.disabled=!0,a.ticks.template.disabled=!0,a.grid.template.disabled=!0,a.axisFills.template.disabled=!0,a.minGridDistance=100,a.line.disabled=!0,a.baseGrid.disabled=!0;var n=e.yAxes.push(new o.a);n.title.disabled=!0,n.strictMinMax=!0;var r=n.renderer;r.inside=!0,r.labels.template.disabled=!0,r.ticks.template.disabled=!0,r.grid.template.disabled=!0,r.axisFills.template.disabled=!0,r.minGridDistance=100,r.line.disabled=!0,r.baseGrid.disabled=!0,r.inversed=!0,e.xAxis=i,e.yAxis=n;var u=new l.a;return e.seriesTemplates=new s.c(u),e._disposers.push(new s.b(e.seriesTemplates)),e._disposers.push(u),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(t){t.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(t){var e=this;this._navigationBar!=t&&(this._navigationBar=t,t.parent=this,t.toBack(),t.links.template.events.on("hit",function(t){var i=t.target.dataItem.dataContext;e.zoomToChartDataItem(i),e.createTreeSeries(i)},void 0,!0),this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.validateData=function(){this.series.clear(),t.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,c.each(this.dataItems.iterator(),function(t){t.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var i=1e3*this.pixelHeight/this.pixelWidth||1e3;e.x1=1e3,e.y1=i,this.xAxis.min=0,this.xAxis.max=1e3,this.yAxis.min=0,this.yAxis.max=i,this.layoutItems(e),this.createTreeSeries(e)},e.prototype.layoutItems=function(t,e){if(t){var i=t.children;e||(e=this.sorting),"ascending"==e&&i.values.sort(function(t,e){return t.value-e.value}),"descending"==e&&i.values.sort(function(t,e){return e.value-t.value}),this.layoutAlgorithm(t);for(var a=0,n=i.length;a<n;a++){var r=i.getIndex(a);r.children&&this.layoutItems(r)}}},e.prototype.createTreeSeries=function(t){var e=this;this._tempSeries=[];for(var i=[t],a=t.parent;void 0!=a;)this.initSeries(a),i.push(a),a=a.parent;i.reverse(),this.navigationBar&&(this.navigationBar.data=i),this.createTreeSeriesReal(t),p.each(this._tempSeries,function(t){-1==e.series.indexOf(t)&&e.series.push(t),t.zIndex=t.level})},e.prototype.createTreeSeriesReal=function(t){if(t.children&&t.level<this.currentLevel+this.maxLevels){this.initSeries(t);for(var e=0;e<t.children.length;e++){var i=t.children.getIndex(e);i.children&&this.createTreeSeriesReal(i)}}},e.prototype.seriesAppeared=function(){return!0},e.prototype.initSeries=function(t){var e=this;if(!t.series){var i=void 0,a=this.seriesTemplates.getKey(t.level.toString());(i=a?a.clone():this.series.create()).name=t.name,i.parentDataItem=t,t.series=i;var n=t.level;i.level=n;var r=t.dataContext;r&&(i.config=r.config),this.dataUsers.removeValue(i),i.data=t.children.values,i.fill=t.color,i.columnsContainer.hide(0),i.bulletsContainer.hide(0),i.columns.template.adapter.add("fill",function(t,e){var i=e.dataItem;if(i){var a=i.treeMapDataItem;if(a)return e.fill=a.color,e.adapter.remove("fill"),a.color}}),this.zoomable&&(t.level>this.currentLevel||t.children&&t.children.length>0)&&(i.columns.template.cursorOverStyle=u.a.pointer,this.zoomable&&i.columns.template.events.on("hit",function(i){var a=i.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(a.treeMapDataItem.parent):e.zoomToSeriesDataItem(a)},this,void 0))}this._tempSeries.push(t.series)},e.prototype.toggleBullets=function(t){var e=this;c.each(this.series.iterator(),function(i){-1==e._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(t)):(i.columnsContainer.show(),i.bulletsContainer.show(t),i.level<e.currentLevel&&i.bulletsContainer.hide(t))})},e.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},e.prototype.zoomToChartDataItem=function(t){var e=this;if(t&&t.children){this.xAxis.zoomToValues(t.x0,t.x1),this.yAxis.zoomToValues(t.y0,t.y1),this.currentLevel=t.level,this.currentlyZoomed=t,this.createTreeSeries(t);var i=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;i&&!i.isFinished()?(this._dataDisposers.push(i),i.events.once("animationended",function(){e.toggleBullets()})):this.toggleBullets()}},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),d.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},e.prototype.createDataItem=function(){return new y},Object.defineProperty(e.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new l.a},Object.defineProperty(e.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e){if(d.hasValue(e.layoutAlgorithm)&&d.isString(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm}d.hasValue(e.navigationBar)&&!d.hasValue(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),t.prototype.processConfig.call(this,e)}},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),c.each(this.series.iterator(),function(t){t.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},e.prototype.binaryTree=function(t){var e,i,a=t.children,n=a.length,r=new Array(n+1);for(r[0]=i=e=0;e<n;++e)r[e+1]=i+=a.getIndex(e).value;!function t(e,i,n,s,o,l,h){if(e>=i-1){var u=a.getIndex(e);return u.x0=s,u.y0=o,u.x1=l,void(u.y1=h)}var c=r[e],d=n/2+c,p=e+1,y=i-1;for(;p<y;){var g=p+y>>>1;r[g]<d?p=g+1:y=g}d-r[p-1]<r[p]-d&&e+1<p&&--p;var f=r[p]-c,m=n-f;if(l-s>h-o){var x=(s*m+l*f)/n;t(e,p,f,s,o,x,h),t(p,i,m,x,o,l,h)}else{var v=(o*m+h*f)/n;t(e,p,f,s,o,l,v),t(p,i,m,s,v,l,h)}}(0,n,t.value,t.x0,t.y0,t.x1,t.y1)},e.prototype.slice=function(t){for(var e,i=t.x0,a=t.x1,n=t.y0,r=t.y1,s=t.children,o=-1,l=s.length,h=t.value&&(r-n)/t.value;++o<l;)(e=s.getIndex(o)).x0=i,e.x1=a,e.y0=n,e.y1=n+=e.value*h},e.prototype.dice=function(t){for(var e,i=t.x0,a=t.x1,n=t.y0,r=t.y1,s=t.children,o=-1,l=s.length,h=t.value&&(a-i)/t.value;++o<l;)(e=s.getIndex(o)).y0=n,e.y1=r,e.x0=i,e.x1=i+=e.value*h},e.prototype.sliceDice=function(t){1&t.level?this.slice(t):this.dice(t)},e.prototype.squarify=function(t){for(var e,i,a,n,r,s,o,l,h,u,c=(1+Math.sqrt(5))/2,d=t.x0,p=t.x1,y=t.y0,g=t.y1,f=t.children,m=0,x=0,v=f.length,b=t.value;m<v;){i=p-d,a=g-y;do{n=f.getIndex(x++).value}while(!n&&x<v);for(r=s=n,u=n*n*(h=Math.max(a/i,i/a)/(b*c)),l=Math.max(s/u,u/r);x<v;++x){if(n+=e=f.getIndex(x).value,e<r&&(r=e),e>s&&(s=e),u=n*n*h,(o=Math.max(s/u,u/r))>l){n-=e;break}l=o}var A=this.dataItems.template.clone();A.value=n,A.dice=i<a,A.children=f.slice(m,x),A.x0=d,A.y0=y,A.x1=p,A.y1=g,A.dice?(A.y1=b?y+=a*n/b:g,this.dice(A)):(A.x1=b?d+=i*n/b:p,this.slice(A)),b-=n,m=x}},e.prototype.handleDataItemValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){"value"==e&&this.invalidateDataItems()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];c.each(this.series.iterator(),function(t){1==t.level&&(t.hiddenInLegend||e.push(t))}),t.dataFields.name="name",t.data=e}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},e}(n.a);r.b.registeredClasses.TreeMap=g},330:function(t,e,i){"use strict";i.d(e,"b",function(){return g}),i.d(e,"a",function(){return f});var a=i(0),n=i(104),r=i(9),s=i(10),o=i(262),l=i(263),h=i(264),u=i(1),c=i(5),d=i(4),p=i(3),y=i(12),g=function(t){function e(){var e=t.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),f=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=o.a,e._axisRendererY=l.a,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(r.a);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(s.a),e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx3D",{get:function(){return d.cos(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy3D",{get:function(){return-d.sin(this.angle)*this.depth},enumerable:!0,configurable:!0}),e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.fixLayout()},e.prototype.fixLayout=function(){this.chartContainer.marginTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns()},e.prototype.fixColumns=function(){var t=this,e=1,i=0;c.each(this.series.iterator(),function(t){t instanceof h.a&&(!t.clustered&&i>0&&e++,t.depthIndex=e-1,i++)});var a=0;c.each(this.series.iterator(),function(i){if(i instanceof h.a){i.depth=t.depth/e,i.angle=t.angle,i.dx=t.depth/e*d.cos(t.angle)*i.depthIndex,i.dy=-t.depth/e*d.sin(t.angle)*i.depthIndex;var n=1;i.columns.each(function(t){t.zIndex=1e3*n+a-100*i.depthIndex,n++}),a++}}),this.maskColumns()},e.prototype.processConfig=function(e){if(e&&p.hasValue(e.series)&&p.isArray(e.series))for(var i=0,a=e.series.length;i<a;i++)e.series[i].type=e.series[i].type||"ColumnSeries3D";t.prototype.processConfig.call(this,e)},e.prototype.maskColumns=function(){var t=this.plotContainer.pixelWidth,e=this.plotContainer.pixelHeight,i=this.dx3D,a=this.dy3D,n=y.moveTo({x:0,y:0})+y.lineTo({x:i,y:a})+y.lineTo({x:t+i,y:a})+y.lineTo({x:t+i,y:e+a})+y.lineTo({x:t,y:e})+y.lineTo({x:t,y:e})+y.lineTo({x:0,y:e})+y.closePath(),r=this.columnsContainer;r&&r.mask&&(r.mask.path=n)},e}(n.a);u.b.registeredClasses.XYChart3D=f},331:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return d});var a=i(0),n=i(267),r=i(10),s=i(268),o=i(1),l=i(18),h=i(5),u=i(3),c=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),d=function(t){function e(){var e=t.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return a.c(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),u.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},e.prototype.createDataItem=function(){return new c},e.prototype.validateCandlestick=function(t){var e=t.column;if(e){var i=e.openLine,a=e.highLowLine,n=e.closeLine;if(this.baseAxis==this.xAxis){var r=e.pixelWidth/2;a.x=r;t.getWorkingValue(this.yOpenField),t.getWorkingValue(this.yField);var s=this.yAxis.getY(t,this.yOpenField),o=this.yAxis.getY(t,this.yField),l=this.yAxis.getY(t,this.yLowField),u=this.yAxis.getY(t,this.yHighField),c=e.pixelY;i.y1=s-c,i.y2=s-c,i.x1=0,i.x2=r,n.y1=o-c,n.y2=o-c,n.x1=r,n.x2=2*r,a.y1=u-c,a.y2=l-c}if(this.baseAxis==this.yAxis){var d=e.pixelHeight/2;a.y=d;t.getWorkingValue(this.xOpenField),t.getWorkingValue(this.xField);var p=this.xAxis.getX(t,this.xOpenField),y=this.xAxis.getX(t,this.xField),g=this.xAxis.getX(t,this.xLowField),f=this.xAxis.getX(t,this.xHighField),m=e.pixelX;i.x1=p-m,i.x2=p-m,i.y1=d,i.y2=2*d,n.x1=y-m,n.x2=y-m,n.y1=0,n.y2=d,a.x1=f-m,a.x2=g-m}h.each(this.axisRanges.iterator(),function(e){var r=t.rangesColumns.getKey(e.uid);if(r){var s=r.openLine;s.x=i.x,s.y=i.y,s.x1=i.x1,s.x2=i.x2,s.y1=i.y1,s.y2=i.y2;var o=r.closeLine;o.x=n.x,o.y=n.y,o.x1=n.x1,o.x2=n.x2,o.y1=n.y1,o.y2=n.y2;var l=r.highLowLine;l.x=a.x,l.y=a.y,l.x1=a.x1,l.x2=a.x2,l.y1=a.y1,l.y2=a.y2}})}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a,n,o=t.createChild(s.a);o.shouldClone=!1,o.copyFrom(this.columns.template);var h=o.openLine,u=o.closeLine,c=o.highLowLine;this.baseAxis==this.yAxis?(a=e/3,n=i,c.y=i/2,c.x2=e,h.x=e/3*2,h.y2=i/2,u.x=e/3,u.y2=i,u.y1=i/2):(a=e,n=i/3,c.x=e/2,c.y2=i,h.y=i/3*2,h.x2=e/2,u.y=i/3,u.x2=e,u.x1=e/2),o.width=a,o.height=n,l.copyProperties(this,t,r.b),l.copyProperties(this.columns.template,o,r.b),o.stroke=this.riseFromOpenState.properties.stroke},e.prototype.createColumnTemplate=function(){return new s.a},e}(n.a);o.b.registeredClasses.OHLCSeries=d,o.b.registeredClasses.OHLCSeriesDataItem=c},332:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return h});var a=i(0),n=i(170),r=i(333),s=i(1),o=i(4),l=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),h=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return a.c(e,t),e.prototype.createDataItem=function(){return new l},e.prototype.addPoints=function(t,e,i,a,n){var r=this.startLocation,s=this.endLocation,l=this.xAxis.getX(e,i,r),h=this.yAxis.getY(e,a,r),u=this.xAxis.getX(e,i,s),c=this.yAxis.getY(e,a,s);if(l=o.fitToRange(l,-2e4,2e4),h=o.fitToRange(h,-2e4,2e4),u=o.fitToRange(u,-2e4,2e4),c=o.fitToRange(c,-2e4,2e4),!this.noRisers&&this.connect&&t.length>1){var d=t[t.length-1];this.baseAxis==this.xAxis&&(n?t.push({x:d.x,y:c}):t.push({x:l,y:d.y})),this.baseAxis==this.yAxis&&(n?t.push({x:u,y:d.y}):t.push({x:d.x,y:h}))}var p={x:l,y:h},y={x:u,y:c};n?t.push(y,p):t.push(p,y)},e.prototype.drawSegment=function(t,e,i){var a=!1;this.yAxis==this.baseAxis&&(a=!0),t.drawSegment(e,i,this.tensionX,this.tensionY,this.noRisers,a)},e.prototype.createSegment=function(){return new r.a},Object.defineProperty(e.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e}(n.a);s.b.registeredClasses.StepLineSeries=h,s.b.registeredClasses.StepLineSeriesDataItem=l},333:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(171),r=i(1),s=i(12),o=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesSegment",e}return a.c(e,t),e.prototype.drawSegment=function(t,e,i,a,n,r){if(t.length>0&&e.length>0)if(n){var o=s.moveTo(t[0]);if(t.length>0)for(var l=1;l<t.length;l++){var h=t[l];l/2==Math.round(l/2)?o+=s.moveTo(h):o+=s.lineTo(h)}this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o=s.moveTo(t[0])+s.polyline(t),o+=s.lineTo(e[0])+s.polyline(e),o+=s.lineTo(t[0]),o+=s.closePath(),this.fillSprite.path=o)}else{o=s.moveTo(t[0])+s.polyline(t);this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o+=s.lineTo(e[0])+s.polyline(e),o+=s.lineTo(t[0]),o+=s.closePath(),this.fillSprite.path=o)}},e}(n.a);r.b.registeredClasses.StepLineSeriesSegment=o},334:function(t,e,i){"use strict";i.d(e,"b",function(){return y}),i.d(e,"a",function(){return g});var a=i(0),n=i(76),r=i(10),s=i(269),o=i(1),l=i(12),h=i(4),u=i(18),c=i(3),d=i(5),p=i(16),y=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),g=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return a.c(e,t),e.prototype.createColumnTemplate=function(){return new s.a},e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.validateDataElementReal=function(t){var e,i,a,n,s=this,o=this.chart.startAngle,l=this.chart.endAngle,y=this.yField,g=this.yOpenField,f=this.xField,m=this.xOpenField,x=this.getStartLocation(t),v=this.getEndLocation(t),b=(l-o)/(this.dataItems.length*(this.end-this.start));o+=x*b,l-=(1-v)*b;var A=this.columns.template.percentWidth;c.isNaN(A)&&(A=100);var P=h.round((v-x)*(1-A/100)/2,5);if(x+=P,v-=P,this.baseAxis==this.xAxis?(a=h.getDistance({x:this.yAxis.getX(t,y,t.locations[y],"valueY"),y:this.yAxis.getY(t,y,t.locations[y],"valueY")}),n=h.getDistance({x:this.yAxis.getX(t,g,t.locations[g],"valueY"),y:this.yAxis.getY(t,g,t.locations[g],"valueY")}),e=this.xAxis.getAngle(t,m,x,"valueX"),i=this.xAxis.getAngle(t,f,v,"valueX")):(a=h.getDistance({x:this.yAxis.getX(t,y,x,"valueY"),y:this.yAxis.getY(t,y,x,"valueY")}),n=h.getDistance({x:this.yAxis.getX(t,g,v,"valueY"),y:this.yAxis.getY(t,g,v,"valueY")}),e=this.xAxis.getAngle(t,f,t.locations[f],"valueX"),i=this.xAxis.getAngle(t,m,t.locations[m],"valueX")),i<e){var C=i;i=e,e=C}e=h.fitToRange(e,o,l),i=h.fitToRange(i,o,l);var _=t.column;_||(_=this.columns.create(),t.column=_,u.forceCopyProperties(this.columns.template,_,r.b),t.addSprite(_),this.setColumnStates(_));var I=_.radarColumn;I.startAngle=e;var D=i-e;D>0?(I.arc=D,I.radius=a,I.innerRadius=n,_.__disabled=!1,_.parent=this.columnsContainer,d.each(this.axisRanges.iterator(),function(i){var o=t.rangesColumns.getKey(i.uid);o||(o=s.columns.create(),u.forceCopyProperties(s.columns.template,o,r.b),u.copyProperties(i.contents,o,r.b),o.dataItem&&p.remove(o.dataItem.sprites,o),t.addSprite(o),s.setColumnStates(o),t.rangesColumns.setKey(i.uid,o));var l=_.radarColumn;l.startAngle=e,l.arc=D,l.radius=a,l.innerRadius=n,l.invalid&&l.validate(),o.__disabled=!1,o.parent=s.columnsContainer})):this.disableUnusedColumns(t)},e.prototype.getPoint=function(t,e,i,a,n,r,s){r||(r="valueX"),s||(s="valueY");var o=this.yAxis.getX(t,i,n,s),l=this.yAxis.getY(t,i,n,s),u=h.getDistance({x:o,y:l});0==u&&(u=1e-5);var c=this.xAxis.getAngle(t,e,a,r);return{x:u*h.cos(c),y:u*h.sin(c)}},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return l.arc(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e}(n.a);o.b.registeredClasses.RadarColumnSeries=g,o.b.registeredClasses.RadarColumnSeriesDataItem=y},336:function(t,e,i){"use strict";i.d(e,"b",function(){return u}),i.d(e,"a",function(){return c});var a=i(0),n=i(270),r=i(10),s=i(1),o=i(4),l=i(3),h=i(8),u=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),c=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=Object(h.c)(100),e.bottomWidth=Object(h.c)(100),e.valueIs="height",e.applyTheme(),e._maskSprite=e.slicesContainer.createChild(r.a),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e}return a.c(e,t),e.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,a=this._maskSprite,n=a.measuredWidth/a.scale,r=a.measuredHeight/a.scale,s=o.min(i/r,e/n);s==1/0&&(s=1),s=o.max(.001,s);var l=o.min(e,n*s),h=o.min(i,r*s);a.scale=s,"vertical"==this.orientation?(this.topWidth=l+4,this.bottomWidth=l+4,this.pyramidHeight=h,a.x=e/2,a.y=h/2):(this.topWidth=h+4,this.bottomWidth=h+4,this.pyramidHeight=l,a.valign="middle",a.x=l/2,a.y=i/2),a.verticalCenter="middle",a.horizontalCenter="middle",this.slicesContainer.mask=this._maskSprite,t.prototype.validateDataElements.call(this)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),l.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new u},Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),e.prototype.initSlice=function(e){t.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},e}(n.a);s.b.registeredClasses.PictorialStackedSeries=c,s.b.registeredClasses.PictorialStackedSeriesDataItem=u},337:function(t,e,i){"use strict";i.d(e,"b",function(){return l}),i.d(e,"a",function(){return h});var a=i(0),n=i(76),r=i(271),s=i(1),o=i(12),l=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),h=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return a.c(e,t),e.prototype.createColumnTemplate=function(){return new r.a},e.prototype.getMaskPath=function(){var t=0,e=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?e=i.coneColumn.bottom.radiusY+1:t=i.coneColumn.bottom.radiusY+1,o.rectToPath({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},e.prototype.validateDataElementReal=function(e){if(t.prototype.validateDataElementReal.call(this,e),e.column){var i=e.column.coneColumn;i.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},e}(n.a);s.b.registeredClasses.ConeSeries=h,s.b.registeredClasses.ConeSeriesDataItem=l},338:function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return l});var a=i(0),n=i(76),r=i(274),s=i(1),o=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),l=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return a.c(e,t),e.prototype.createColumnTemplate=function(){return new r.a},e.prototype.validateDataElementReal=function(e){var i=e.column;i&&(e.column.curvedColumn.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical");t.prototype.validateDataElementReal.call(this,e)},e}(n.a);s.b.registeredClasses.CurvedColumnSeries=l,s.b.registeredClasses.CurvedColumnSeriesDataItem=o},339:function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return l});var a=i(0),n=i(61),r=i(1),s=i(4),o=function(t){function e(){var e=t.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return a.c(e,t),e}(n.b),l=function(t){function e(){var e=t.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return a.c(e,t),e.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},e.prototype.adjustMinMax=function(e,i,n,r,o){var l,h,u,c=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==c||"second"==c||"minute"==c||"hour"==c){r<=1&&(r=1),r=Math.round(r);var d=e,p=i;0===n&&(n=Math.abs(i));var y,g=[60,30,20,15,10,2,1],f=1;"hour"==c&&(g=[24,12,6,4,2,1]);try{for(var m=a.g(g),x=m.next();!x.done;x=m.next()){var v=x.value;if(n/v>r){f=v;break}}}catch(t){h={error:t}}finally{try{x&&!x.done&&(u=m.return)&&u.call(m)}finally{if(h)throw h.error}}var b=Math.ceil((i-e)/f/r),A=Math.log(Math.abs(b))*Math.LOG10E,P=Math.pow(10,Math.floor(A))/10,C=b/P;y=f*(b=s.closest(g,C)*P);this.durationFormatter.getValueUnit(y,this.baseUnit);e=Math.floor(e/y)*y,i=Math.ceil(i/y)*y,o&&((e-=y)<0&&d>=0&&(e=0),(i+=y)>0&&p<=0&&(i=0)),l={min:e,max:i,step:y}}else l=t.prototype.adjustMinMax.call(this,e,i,n,r,o);return this.axisDurationFormat=this.durationFormatter.getFormat(l.step,l.max,this.baseUnit),l},Object.defineProperty(e.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e=s.round(this.positionToValue(t),this._stepDecimalPlaces);return this.adapter.apply("getTooltipText",this.formatLabel(e,this.tooltipDurationFormat))},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit!=t&&(this._baseUnit=t,this.durationFormatter.baseUnit=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},e}(n.a);r.b.registeredClasses.DurationAxis=l,r.b.registeredClasses.DurationAxisDataItem=o},340:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var a=i(0),n=i(74),r=i(96),s=i(1),o=function(t){function e(){var e=t.call(this)||this;e.className="CircleBullet";var i=e.createChild(r.a);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e}return a.c(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},e}(n.a);s.b.registeredClasses.CircleBullet=o},341:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var a=i(0),n=i(74),r=i(10),s=i(1),o=i(12),l=function(t){function e(){var e=t.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(r.a),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return a.c(e,t),e.prototype.validatePosition=function(){t.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=o.moveTo({x:-e,y:-i})+o.lineTo({x:e,y:-i})+o.moveTo({x:0,y:-i})+o.lineTo({x:0,y:i})+o.moveTo({x:-e,y:i})+o.lineTo({x:e,y:i})},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},e}(n.a);s.b.registeredClasses.ErrorBullet=l},342:function(t,e,i){"use strict";i.d(e,"b",function(){return p}),i.d(e,"a",function(){return y});var a=i(0),n=i(56),r=i(73),s=i(11),o=i(275),l=i(133),h=i(1),u=i(13),c=i(8),d=i(5),p=function(t){function e(){var e=t.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),e}(r.a),y=function(t){function e(){var e=t.call(this)||this;e.className="NavigationBar";var i=new u.a,a=new o.a;a.valign="middle",a.paddingTop=8,a.paddingBottom=8,e.paddingBottom=2,e.links=new s.e(a),e._disposers.push(new s.c(e.links)),e._disposers.push(a),e._linksIterator=new d.ListIterator(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var n=new l.a;n.direction="right",n.width=8,n.height=12,n.fill=i.getFor("alternativeBackground"),n.fillOpacity=.5,n.valign="middle",n.marginLeft=10,n.marginRight=10,e.separators=new s.e(n),e._disposers.push(new s.c(e.separators)),e._disposers.push(n);var r=new o.a;return e.activeLink=r,r.copyFrom(a),r.valign="middle",r.fontWeight="bold",e.width=Object(c.c)(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return a.c(e,t),e.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){var i;if(t.prototype.validateDataElement.call(this,e),e.index<this.dataItems.length-1){(i=this._linksIterator.getLast()).parent=this;var a=this.separators.create();a.parent=this,a.valign="middle"}else(i=this.activeLink).events.copyFrom(this.links.template.events),i.hide(0),i.show(),i.parent=this;i.dataItem=e,i.text=e.name,i.validate()},e}(n.a);h.b.registeredClasses.NavigationBar=y,h.b.registeredClasses.NavigationBarDataItem=p},76:function(t,e,i){"use strict";i.d(e,"b",function(){return A}),i.d(e,"a",function(){return P});var a=i(0),n=i(128),r=i(10),s=i(9),o=i(11),l=i(26),h=i(61),u=i(109),c=i(1),d=i(62),p=i(42),y=i(8),g=i(4),f=i(18),m=i(5),x=i(16),v=i(3),b=i(7),A=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(t){this.setColumn(t)},enumerable:!0,configurable:!0}),e.prototype.setColumn=function(t){var e=this;if(this._column&&t!=this._column&&x.remove(this.sprites,this._column),this._column=t,t){var i=t.dataItem;i&&i!=this&&(i.column=void 0),this.addSprite(t),this._disposers.push(new b.b(function(){e.component.columns.removeValue(t)}))}},Object.defineProperty(e.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new l.a),this._rangesColumns},enumerable:!0,configurable:!0}),e}(n.b),P=function(t){function e(){var e=t.call(this)||this;e._startLocation=0,e._endLocation=1,e.simplifiedProcessing=!1,e.className="ColumnSeries",e.width=Object(y.c)(100),e.height=Object(y.c)(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var i=e.mainContainer.createChild(s.a);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e._columnsContainer=i,e.columns,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return a.c(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},e.prototype.createDataItem=function(){return new A},e.prototype.validate=function(){var i=this,a=this.chart.series,n=0,r=0;m.each(a.iterator(),function(t){t instanceof e&&i.baseAxis==t.baseAxis&&((!t.stacked&&t.clustered||0===n)&&n++,t==i&&(r=n-1))});var s=this.baseAxis.renderer,o=s.cellStartLocation,l=s.cellEndLocation;this._startLocation=o+r/n*(l-o),this._endLocation=o+(r+1)/n*(l-o),t.prototype.validate.call(this),this.dataItems.each(function(t){(t.index<i.startIndex||t.index>=i.endIndex)&&i.disableUnusedColumns(t)})},e.prototype.validateDataElement=function(e){this.validateDataElementReal(e),t.prototype.validateDataElement.call(this,e)},e.prototype.getStartLocation=function(t){var e=this._startLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xOpenField]-.5:e+=t.locations[this.yOpenField]-.5,e},e.prototype.handleDataItemWorkingValueChange=function(e,i){this.simplifiedProcessing?this.validateDataElement(e):t.prototype.handleDataItemWorkingValueChange.call(this,e,i)},e.prototype.getEndLocation=function(t){var e=this._endLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xField]-.5:e+=t.locations[this.yField]-.5,e},e.prototype.validateDataElementReal=function(t){var e,i,a,n,s=this,o=this.getStartLocation(t),l=this.getEndLocation(t),c=this.xField,d=this.xOpenField,p=this.yField,y=this.yOpenField,x=this.columns.template,b=x.percentWidth,A=x.percentHeight,P=x.pixelWidth,C=x.pixelHeight,_=x.maxWidth,I=x.maxHeight,D=x.pixelPaddingLeft,T=x.pixelPaddingRight,V=x.pixelPaddingTop,S=x.pixelPaddingBottom,R=!1;if(this.xAxis instanceof u.a&&this.yAxis instanceof u.a){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;if(o=0,l=1,!v.isNaN(b))o+=k=g.round((l-o)*(1-b/100)/2,5),l-=k;if(e=this.xAxis.getX(t,d,o),i=this.xAxis.getX(t,c,l),v.isNaN(b))e+=k=(i-e-P)/2,i-=k;if(!v.isNaN(_))e+=k=(i-e-_)/2,i-=k;if(o=0,l=1,!v.isNaN(A))o+=k=g.round((1-A/100)/2,5),l-=k;if(a=this.yAxis.getY(t,y,o),n=this.yAxis.getY(t,p,l),v.isNaN(A))n+=k=(n-a-C)/2,a-=k;if(!v.isNaN(I))n+=k=(n-a-I)/2,a-=k;i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),a=this.fixVerticalCoordinate(a),n=this.fixVerticalCoordinate(n)}else if(this.baseAxis==this.xAxis){if(!t.hasValue(this._yValueFields))return;if(!v.isNaN(b))o+=k=g.round((l-o)*(1-b/100)/2,5),l-=k;if(e=this.xAxis.getX(t,d,o),i=this.xAxis.getX(t,c,l),v.isNaN(b))e+=k=(i-e-P)/2,i-=k;if(!v.isNaN(_))e+=k=(i-e-_)/2,i-=k;var F=t.locations[y],O=t.locations[p];this.yAxis instanceof h.a&&(F=0,O=0),n=this.yAxis.getY(t,y,F),a=this.yAxis.getY(t,p,O),a=this.fixVerticalCoordinate(a),n=this.fixVerticalCoordinate(n),Math.abs(i-e)-D-T==0&&(R=!0)}else{if(!t.hasValue(this._xValueFields))return;var k;if(!v.isNaN(A))o+=k=g.round((1-A/100)/2,5),l-=k;if(a=this.yAxis.getY(t,y,o),n=this.yAxis.getY(t,p,l),v.isNaN(A))n-=k=(n-a-C)/2,a+=k;if(!v.isNaN(I))n-=k=(n-a-I)/2,a+=k;var w=t.locations[c],L=t.locations[d];this.xAxis instanceof h.a&&(w=0,L=0),i=this.xAxis.getX(t,c,w),e=this.xAxis.getX(t,d,L),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),Math.abs(a-n)-V-S==0&&(R=!0)}var X,Y=Math.abs(i-e),j=Math.abs(n-a),N=Math.min(e,i),M=Math.min(a,n);R?this.disableUnusedColumns(t):(t.column?X=t.column:(X=this.columns.create(),f.copyProperties(this,X,r.b),f.copyProperties(this.columns.template,X,r.b),t.addSprite(X),t.column=X,this.itemsFocusable()?(X.role="menuitem",X.focusable=!0):(X.role="listitem",X.focusable=!1),X.focusable&&(X.events.once("focus",function(e){X.readerTitle=s.populateString(s.itemReaderText,t)},void 0,!1),X.events.once("blur",function(t){X.readerTitle=""},void 0,!1)),X.hoverable&&(X.events.once("over",function(e){X.readerTitle=s.populateString(s.itemReaderText,t)},void 0,!1),X.events.once("out",function(t){X.readerTitle=""},void 0,!1))),X.width=Y,X.height=j,X.x=N,X.y=M,X.realX=e,X.realY=a,X.realWidth=i-e,X.realHeight=n-a,X.parent=this.columnsContainer,X.virtualParent=this,this.setColumnStates(X),X.invalid&&X.validate(),X.__disabled=!1,m.each(this.axisRanges.iterator(),function(e){var i=t.rangesColumns.getKey(e.uid);i||(i=s.columns.create(),f.copyProperties(e.contents,i,r.b),t.addSprite(i),t.rangesColumns.setKey(e.uid,i)),i.parent=e.contents,i.width=Y,i.height=j,i.x=N,i.y=M,s.setColumnStates(i),i.invalid&&i.validate(),i.__disabled=!1}));t.itemWidth=Y,t.itemHeight=j},e.prototype.disableUnusedColumns=function(t){t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),m.each(this.axisRanges.iterator(),function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)})},e.prototype.setColumnStates=function(t){var e=t.dataItem;if(this.xAxis instanceof h.a||this.yAxis instanceof h.a){var i,a=void 0,n=void 0;this.baseAxis==this.yAxis?this.xOpenField&&this.xField&&(i=e.getValue(this.xOpenField),a=e.getValue(this.xField),n=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):this.yOpenField&&this.yField&&(i=e.getValue(this.yOpenField),a=e.getValue(this.yField),n=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),a<i?(e.droppedFromOpen=!0,t.defaultState.copyFrom(this._dropFromOpenState),t.setState(this._dropFromOpenState,0)):(e.droppedFromOpen=!1,t.defaultState.copyFrom(this._riseFromOpenState),t.setState(this._riseFromOpenState,0)),n<0?(e.droppedFromPrevious=!0,t.defaultState.copyFrom(this._dropFromPreviousState),t.setState(this._dropFromPreviousState,0)):(e.droppedFromPrevious=!1,t.defaultState.copyFrom(this._riseFromPreviousState),t.setState(this._riseFromPreviousState,0))}},Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns||(this._columns=new o.e(this.createColumnTemplate()),this._disposers.push(new o.c(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),e.prototype.createColumnTemplate=function(){return new d.a},Object.defineProperty(e.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(t){this.setPropertyValue("clustered",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(e){var i=this;if(t.prototype.updateLegendValue.call(this,e),this.legendDataItem){var a,n,r=this.legendDataItem.marker;e&&(a=e.droppedFromOpen?this._dropFromOpenState:this._riseFromOpenState,n=e.droppedFromPrevious?this._dropFromPreviousState:this._riseFromPreviousState),m.each(r.children.iterator(),function(t){e?(t.setState(n),t.setState(a)):(t.setState(i._riseFromPreviousState),t.setState(i._riseFromOpenState))})}},e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var a=t.createChild(p.a);a.shouldClone=!1,f.copyProperties(this,a,r.b),a.copyFrom(this.columns.template),a.padding(0,0,0,0),a.width=e,a.height=i},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},e.prototype.getBulletLocationX=function(e,i){return this.baseAxis==this.xAxis?(this._startLocation+this._endLocation)/2:t.prototype.getBulletLocationX.call(this,e,i)},e.prototype.getBulletLocationY=function(e,i){return this.baseAxis==this.yAxis?(this._startLocation+this._endLocation)/2:t.prototype.getBulletLocationY.call(this,e,i)},e.prototype.fixVerticalCoordinate=function(t){var e=this.columns.template.pixelPaddingBottom,i=-this.columns.template.pixelPaddingTop,a=this.yAxis.axisLength+e;return g.fitToRange(t,i,a)},e.prototype.fixHorizontalCoordinate=function(t){var e=this.columns.template.pixelPaddingLeft,i=this.columns.template.pixelPaddingRight,a=-e,n=this.xAxis.axisLength+i;return g.fitToRange(t,a,n)},e}(n.a);c.b.registeredClasses.ColumnSeries=P,c.b.registeredClasses.ColumnSeriesDataItem=A}},[319]);
//# sourceMappingURL=charts.js.map